@ckeditor/ckeditor5-track-changes 44.0.0-alpha.4 → 44.0.0-alpha.6

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 (217) hide show
  1. package/build/track-changes.js +1 -1
  2. package/dist/index.js +3 -3
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +10 -10
  148. package/src/commands/acceptsuggestioncommand.js +1 -1
  149. package/src/commands/discardsuggestioncommand.js +1 -1
  150. package/src/commands/executeonallsuggestionscommand.js +1 -1
  151. package/src/commands/executeonselectedsuggestionscommand.js +1 -1
  152. package/src/commands/trackchangescommand.js +1 -1
  153. package/src/index.js +1 -1
  154. package/src/integrations/aiassistant.js +1 -1
  155. package/src/integrations/alignment.js +1 -1
  156. package/src/integrations/basicstyles.js +1 -1
  157. package/src/integrations/blockquote.js +1 -1
  158. package/src/integrations/bookmark.js +1 -1
  159. package/src/integrations/casechange.js +1 -1
  160. package/src/integrations/ckbox.js +1 -1
  161. package/src/integrations/codeblock.js +1 -1
  162. package/src/integrations/comments.js +1 -1
  163. package/src/integrations/deletecommand.js +1 -1
  164. package/src/integrations/entercommand.js +1 -1
  165. package/src/integrations/findandreplace.js +1 -1
  166. package/src/integrations/font.js +1 -1
  167. package/src/integrations/formatpainter.js +1 -1
  168. package/src/integrations/heading.js +1 -1
  169. package/src/integrations/highlight.js +1 -1
  170. package/src/integrations/horizontalline.js +1 -1
  171. package/src/integrations/htmlembed.js +1 -1
  172. package/src/integrations/image.js +1 -1
  173. package/src/integrations/imagereplace.js +1 -1
  174. package/src/integrations/imagestyle.js +1 -1
  175. package/src/integrations/importword.js +1 -1
  176. package/src/integrations/indent.js +1 -1
  177. package/src/integrations/inputcommand.js +1 -1
  178. package/src/integrations/legacylist.js +1 -1
  179. package/src/integrations/legacylistproperties.js +1 -1
  180. package/src/integrations/link.js +1 -1
  181. package/src/integrations/list.js +1 -1
  182. package/src/integrations/listproperties.js +1 -1
  183. package/src/integrations/mediaembed.js +1 -1
  184. package/src/integrations/mention.js +1 -1
  185. package/src/integrations/mergefields.js +1 -1
  186. package/src/integrations/multilevellist.js +1 -1
  187. package/src/integrations/pagebreak.js +1 -1
  188. package/src/integrations/paragraph.js +1 -1
  189. package/src/integrations/removeformat.js +1 -1
  190. package/src/integrations/restrictededitingmode.js +1 -1
  191. package/src/integrations/shiftentercommand.js +1 -1
  192. package/src/integrations/standardeditingmode.js +1 -1
  193. package/src/integrations/style.js +1 -1
  194. package/src/integrations/table.js +1 -1
  195. package/src/integrations/tablecaption.js +1 -1
  196. package/src/integrations/tableclipboard.js +1 -1
  197. package/src/integrations/tablecolumnresize.js +1 -1
  198. package/src/integrations/tableheadings.js +1 -1
  199. package/src/integrations/tablemergesplit.js +1 -1
  200. package/src/integrations/tableofcontents.js +1 -1
  201. package/src/integrations/tableproperties.js +1 -1
  202. package/src/integrations/template.js +1 -1
  203. package/src/integrations/title.js +1 -1
  204. package/src/integrations/undo.js +1 -1
  205. package/src/integrations/utils.js +1 -1
  206. package/src/suggestion.js +2 -2
  207. package/src/suggestiondescriptionfactory.js +1 -1
  208. package/src/trackchanges.js +1 -1
  209. package/src/trackchangesdata.js +1 -1
  210. package/src/trackchangesediting.js +1 -1
  211. package/src/trackchangesui.js +1 -1
  212. package/src/ui/suggestioncontroller.js +2 -2
  213. package/src/ui/view/basesuggestionthreadview.js +1 -1
  214. package/src/ui/view/suggestionthreadview.js +1 -1
  215. package/src/ui/view/suggestionview.js +1 -1
  216. package/src/utils/common-translations.js +1 -1
  217. package/src/utils/utils.js +1 -1
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as Qt,Plugin as _0x336f7e,PendingActions as _0x35d7c8,icons as _0x44a34f}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x351529,ObservableMixin as _0x5ab72a,uid as _0x5a6ab6,insertToPriorityArray as _0x358aa8,priorities as _0x300b65,logWarning as _0x3fd0c4,getEnvKeystrokeText as _0x3bc5a0,FocusTracker as _0x44c5ef,KeystrokeHandler as _0xa2b3da,Collection as _0x116e4e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x199577,View as _0x5af940,ViewCollection as _0xba2b67,FocusCycler as ts,ViewModel as _0x5f3a17,createDropdown as _0x5728c9,SplitButtonView as _0x2c22cd,addListToDropdown as te,MenuBarMenuView as _0x3b793f,MenuBarMenuListView as _0xcb737a,ListSeparatorView as _0x278654,MenuBarMenuListItemView as _0x3ba036,MenuBarMenuListItemButtonView as _0x2e2721}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x237037,hashObject as _0x29356c,surroundingMarkersDetector as _0x50b575,FOCUS_ANNOTATION_KEYSTROKE as _0x1208b8,AriaDescriptionView as _0x10e774,setupThreadKeyboardNavigation as _0x4fc018,trimHtml as ti,UserView as _0x154975,LateFocusButtonView as _0x4d7497,getDateTimeFormatter as _0x325f94,getAllMarkersDomElementsSorted as _0x2a1e63,sanitizeEditorConfig as _0x39159e}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x5e937c,LiveRange as _0x252b19,LivePosition as _0xd3f805}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x21fc5b,toWidget as _0x2ed4ad}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0xbb6633,set as _0x59c7ac,isEqual as _0x12e3f4,unset as _0xc7cb86,omit as xt}from'lodash-es';import{Delete as _0x478d7b,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1b49c3,ShiftEnter as _0x538d8a}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x4b74ec,_0xdcf2e1){super(_0x4b74ec),this['_enabledCommands']=_0xdcf2e1,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 _0x58e3c6 of this['editor']['commands']['commands']())_0x58e3c6['affectsData']&&!this['_enabledCommands']['has'](_0x58e3c6)&&_0x58e3c6['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4cb06a of this['editor']['commands']['commands']())_0x4cb06a['affectsData']&&!this['_enabledCommands']['has'](_0x4cb06a)&&_0x4cb06a['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0xe0e395,_0x5f42f6){super(_0xe0e395),this['_suggestions']=_0x5f42f6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3567f5){const _0x467571=this['_suggestions']['get'](_0x3567f5);if(!_0x467571)throw new _0x351529('track-changes-accept-suggestion-not-found',this);const _0x5bccef=_0x467571['getRanges']();this['editor']['model']['canEditAt'](_0x5bccef)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x467571);}}class R extends Qt{['_suggestions'];constructor(_0x53b94f,_0x435dce){super(_0x53b94f),this['_suggestions']=_0x435dce,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4d4bf6){const _0x18de40=this['_suggestions']['get'](_0x4d4bf6);if(!_0x18de40)throw new _0x351529('track-changes-discard-suggestion-not-found',this);const _0x25ca9c=_0x18de40['getRanges']();this['editor']['model']['canEditAt'](_0x25ca9c)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x18de40);}}function ns(_0x535771,_0x98df45){let _0x15a064='';return _0x15a064+=_0x535771['split']('*')['map']((_0xcd8cae,_0x5c6140)=>_0x5c6140%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0xcd8cae)+'</span>':nn(_0xcd8cae))['join'](''),_0x98df45&&(_0x15a064+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x98df45['value']+'\x22\x20title=\x22'+_0x98df45['title']+'\x22></span>'),_0x15a064;}function nn(_0x596eaa){const _0x1c6a89=document['createElement']('span');return _0x1c6a89['innerText']=_0x596eaa,_0x1c6a89['innerHTML'];}function Wt(_0xbb9c10){return _0xbb9c10['sort']((_0x161e7f,_0x4372ad)=>'deletion'==_0x161e7f['type']&&'deletion'!=_0x4372ad['type']?-0x1:'deletion'!=_0x161e7f['type']&&'deletion'==_0x4372ad['type']?0x1:0x0);}function to(_0x440b0e,_0x2b8277){let _0xaad833,_0x51ca37=0x0;const _0xe2dc67=[],_0x20ee74=_0x2b8277['schema'];for(;_0x51ca37<_0x440b0e['length'];){const _0x275457=_0x440b0e[_0x51ca37],_0x3515cd=_0x440b0e[_0x51ca37+0x1];_0xaad833||(_0xaad833=_0x2b8277['createPositionBefore'](_0x275457)),on(_0x2b8277,_0x275457,_0x3515cd)||(_0xe2dc67['push'](_0x2b8277['createRange'](_0xaad833,_0x20ee74['isObject'](_0x275457)?_0x2b8277['createPositionAfter'](_0x275457):_0x2b8277['createPositionAt'](_0x275457,'end'))),_0xaad833=null),_0x51ca37++;}return _0xe2dc67;}function on(_0x569e69,_0x46ee2f,_0xd74176){if(!_0xd74176)return!0x1;const _0x3c4640=_0x569e69['createPositionAfter'](_0x46ee2f),_0xeece29=_0x569e69['createPositionBefore'](_0xd74176);return _0x3c4640['isTouching'](_0xeece29);}function Xt(_0x217ea7,_0x495ddb,_0x2011cd){for(;_0x2011cd['length'];){const _0x386878=_0x2011cd['splice'](0x0,0x64);_0x217ea7['change'](()=>{for(const _0x23a92d of _0x386878)_0x23a92d['isInContent']&&_0x495ddb['execute'](_0x23a92d['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x17bb80,_0x3d907e,_0x1ba7be){super(_0x17bb80),this['_command']=_0x3d907e,this['_suggestions']=_0x1ba7be,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x151f56=Array['from'](this['_suggestions']['values']())['some'](_0x27c904=>_0x27c904['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x151f56;}['execute'](){const _0x227a44=Wt(Array['from'](this['_suggestions']['values']()));for(const _0xa8bcf6 of _0x227a44){const _0x1d6206=_0xa8bcf6['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1d6206))return;}Xt(this['editor']['model'],this['_command'],_0x227a44);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x534cb8,_0x1c0e04,_0x5807dd){super(_0x534cb8),this['_command']=_0x1c0e04,this['_suggestions']=_0x5807dd,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x294bca=this['editor']['model']['document']['selection'],_0x2d35a2=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3d2f18,_0x2a9912){const _0xa3b9ee=Array['from'](_0x3d2f18['getRanges']()),_0x86e52c=new Set();for(const _0x32d738 of _0x2a9912)if(_0x32d738['isInContent']){for(const _0x108f1e of _0xa3b9ee)for(const _0x3a67c8 of _0x32d738['getRanges']())(_0x108f1e['isIntersecting'](_0x3a67c8)||_0x3d2f18['isCollapsed']&&!_0x32d738['isMultiRange']&&_0x32d738['next']&&_0x3a67c8['end']['isTouching'](_0x108f1e['start']))&&_0x86e52c['add'](_0x32d738);}return _0x86e52c;}(_0x294bca,_0x2d35a2),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x388c7a=Wt(Array['from'](this['_selectedSuggestions']));for(const _0x53924a of _0x388c7a){const _0x3e585f=_0x53924a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3e585f))return;}Xt(this['editor']['model'],this['_command'],_0x388c7a);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x5ab72a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1da632,_0x1b500c){super(),this['id']=_0x1b500c['id'],this['type']=_0x1b500c['type'],this['subType']=_0x1b500c['subType']||null,this['author']=_0x1b500c['author'],this['creator']=_0x1b500c['creator']||_0x1b500c['author'],this['isExternal']=Boolean(_0x1b500c['attributes']&&_0x1b500c['attributes']['@external']),this['data']=null,this['_model']=_0x1da632,this['_onAccept']=_0x1b500c['onAccept'],this['_onDiscard']=_0x1b500c['onDiscard'],this['_onAttributesChange']=_0x1b500c['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1b500c['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 _0x25c9ba=this;for(;_0x25c9ba['previous'];)_0x25c9ba=_0x25c9ba['previous'];return _0x25c9ba;}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'](_0x15829d){this['_markerNames']['add'](_0x15829d);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5c60a5=>this['_model']['markers']['get'](_0x5c60a5))['filter'](_0x1131cf=>_0x1131cf);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x54e77a=>{for(const _0x2885e8 of this['getMarkers']())_0x54e77a['removeMarker'](_0x2885e8);}),this['_markerNames']['clear']();}['removeMarker'](_0x34588a){this['_model']['change'](_0x1fbbab=>{_0x1fbbab['removeMarker'](_0x34588a);}),this['_markerNames']['delete'](_0x34588a);}['addRange'](_0x17fac6){const _0x14426d='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x14426d),this['_model']['change'](_0x92fc81=>{_0x92fc81['addMarker'](_0x14426d,{'range':_0x17fac6,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x280e2c){for(const _0x296ed7 of this['getRanges']())if(_0x296ed7['isIntersecting'](_0x280e2c))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3bd987=>_0x3bd987['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5b658d,_0x1eb8fe)=>[..._0x5b658d,..._0x1eb8fe['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2509d9=this['getRanges']();if(0x1!=_0x2509d9['length'])return null;const _0x145c72=_0x2509d9[0x0],_0x51785a=_0x145c72['start']['nodeAfter'],_0x575f1e=_0x145c72['end']['nodeBefore'];return _0x51785a instanceof _0x5e937c?_0x51785a!=_0x575f1e?null:_0x51785a: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 _0x443da1=[];let _0x391aa0=this['head'];for(;_0x391aa0;)_0x443da1['push'](_0x391aa0),_0x391aa0=_0x391aa0['next'];return _0x443da1;}['setAttribute'](_0x20949d,_0x36d211){const _0x39b100=_0xbb6633(this['attributes']);_0x59c7ac(_0x39b100,_0x20949d,_0x36d211),_0x12e3f4(_0x39b100,this['attributes'])||(this['attributes']=_0x39b100,this['_onAttributesChange'](_0x39b100));}['removeAttribute'](_0x240125){const _0x38aa54=_0xbb6633(this['attributes']);_0xc7cb86(_0x38aa54,_0x240125),_0x12e3f4(_0x38aa54,this['attributes'])||(this['attributes']=_0x38aa54,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 _0x5a6ab6()['substr'](0x1,0x5);}}function o(_0x2dca37,_0x333963,_0x92223d){const _0x31cc84=_0x2dca37['t'],t=_0x2dca37['t'];switch(_0x333963){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'*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',_0x92223d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x92223d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x92223d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x92223d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x92223d);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',_0x92223d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x92223d);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x92223d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x92223d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x92223d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x92223d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x92223d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x92223d);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x92223d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x92223d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x92223d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x92223d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x92223d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x92223d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x92223d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x92223d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x92223d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x92223d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x92223d);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'},_0x92223d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x92223d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x92223d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x92223d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x92223d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x92223d);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'},_0x92223d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x92223d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x92223d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x92223d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x92223d);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'},_0x92223d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x92223d);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'},_0x92223d);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x92223d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x92223d);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'},_0x92223d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x92223d);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'},_0x92223d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x92223d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x92223d);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'},_0x92223d);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x92223d);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 _0x31cc84({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x92223d);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x31cc84({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x92223d);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x92223d);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'},_0x92223d);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'},_0x92223d);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'},_0x92223d);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x333963;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1b6f63,_0xccdeb6){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1b6f63,this['_locale']=_0xccdeb6;}['getDescriptions'](_0x1a6307){const _0x35a46d=[],_0x35eda8=new Set(),_0x1c1d42=new Set();for(let _0x20a69d=0x0;_0x20a69d<_0x1a6307['length'];_0x20a69d++){const _0x4e3a1b=_0x1a6307[_0x20a69d];if(!_0x4e3a1b['isInContent'])continue;const _0x271004=this['_handleCustomCallbackDescription'](_0x4e3a1b);if(_0x271004){if(null!=_0x4e3a1b['subType']){if(_0x35eda8['has'](_0x4e3a1b['subType']))continue;_0x35eda8['add'](_0x4e3a1b['subType']);}_0x35a46d['push'](_0x271004);}else{if('attribute'!=_0x4e3a1b['type'])'insertion'!=_0x4e3a1b['type']&&'deletion'!=_0x4e3a1b['type']||this['_handleInsertRemoveSuggestionDescription'](_0x35a46d,_0x4e3a1b,_0x1a6307[_0x20a69d+0x1]);else{const _0x302ad1=_0x4e3a1b['data']['key'];if(_0x1c1d42['has'](_0x302ad1))continue;_0x1c1d42['add'](_0x4e3a1b['data']['key']),_0x302ad1==m?this['_handleRenameSuggestionDescription'](_0x35a46d,_0x4e3a1b):this['_handleAttributeSuggestionDescription'](_0x35a46d,_0x4e3a1b);}}}return this['_resolveDescriptionItems'](_0x35a46d);}['registerDescriptionCallback'](_0x263fcc){this['_customCallbacks']['push'](_0x263fcc);}['registerElementLabel'](_0x1f53c7,_0x290381,_0x4feb9d=_0x300b65['normal']){'function'==typeof _0x1f53c7?_0x358aa8(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1f53c7,'label':_0x290381,'priority':_0x4feb9d}):this['_itemLabels']['set'](_0x1f53c7,_0x290381);}['registerAttributeLabel'](_0x523713,_0x4ef106){this['_attributeLabels']['set'](_0x523713,_0x4ef106);}['getItemLabel'](_0x3e720a,_0x402a61=0x1){let _0x53ad65;for(const _0x48552e of this['_itemLabelsCallbacks'])if(_0x48552e['matchingCallback'](_0x3e720a)){_0x53ad65=_0x48552e['label'];break;}return _0x53ad65||(_0x53ad65=this['_itemLabels']['get'](_0x3e720a['name'])),_0x53ad65?_0x53ad65(_0x402a61):0x1!==_0x402a61?_0x402a61+'\x20'+_0x3e720a['name']+'s':''+_0x3e720a['name'];}['_addDescriptionItems'](_0x2f46df,_0x37b8e1){const _0x42bfd7=_0x37b8e1['getFirstRange']()['getWalker'](),_0x2dac88='insertion'==_0x37b8e1['type']?'add':'remove';for(const _0x2bb964 of _0x42bfd7){const _0x4e9f58=_0x2bb964['item'],_0x5e3969=_0x2f46df[_0x2f46df['length']-0x1];if(_0x4e9f58['is']('$textProxy'))_0x5e3969&&_0x5e3969['type']['indexOf']('Container')>-0x1&&_0x2f46df['pop'](),_0x5e3969&&'text'==_0x5e3969['type']?_0x5e3969[_0x2dac88]+=_0x4e9f58['data']:_0x2f46df['push']({'type':'text','add':'add'==_0x2dac88?_0x4e9f58['data']:'','remove':'remove'==_0x2dac88?_0x4e9f58['data']:''});else{if(this['_schema']['isObject'](_0x4e9f58)){const _0x162f49=_0x4e9f58;if(_0x5e3969&&_0x5e3969['type']['indexOf']('Container')>-0x1&&_0x2f46df['pop'](),'elementEnd'==_0x2bb964['type'])continue;_0x5e3969&&_0x5e3969['type']==_0x2dac88+'Object'&&_0x5e3969['element']['name']==_0x162f49['name']?_0x5e3969['quantity']++:_0x2f46df['push']({'type':_0x2dac88+'Object','element':_0x162f49,'quantity':0x1}),_0x42bfd7['skip'](_0x53557f=>!('elementEnd'==_0x53557f['type']&&_0x53557f['item']==_0x4e9f58));}else{if(this['_schema']['checkChild'](_0x4e9f58,'$text')||_0x4e9f58['is']('element','softBreak')){const _0x24c204=_0x4e9f58;if('add'==_0x2dac88&&'elementStart'==_0x2bb964['type']||'remove'==_0x2dac88&&'elementEnd'==_0x2bb964['type'])continue;if(_0x5e3969&&-0x1==_0x5e3969['type']['indexOf']('Container')){'text'==_0x5e3969['type']&&(_0x5e3969[_0x2dac88]+='\x0a');continue;}let _0x54c5d1;if(_0x54c5d1='add'==_0x2dac88?_0x24c204['nextSibling']&&!this['_schema']['isObject'](_0x24c204['nextSibling'])?_0x24c204['nextSibling']:null:_0x24c204['previousSibling']&&!this['_schema']['isObject'](_0x24c204['previousSibling'])?_0x24c204['previousSibling']:null,_0x24c204['isEmpty']||_0x54c5d1&&_0x54c5d1['isEmpty']){const _0x129462=_0x54c5d1&&_0x54c5d1['isEmpty']?_0x54c5d1:_0x24c204;_0x5e3969&&_0x5e3969['type']==_0x2dac88+'EmptyContainer'&&_0x5e3969['element']['name']==_0x129462['name']?_0x5e3969['quantity']++:_0x2f46df['push']({'type':_0x2dac88+'EmptyContainer','element':_0x129462,'quantity':0x1});}else _0x2f46df['push']({'type':_0x2dac88+'Container','element':_0x24c204});}}}}}['_resolveDescriptionItems'](_0x50a670){const _0x30f63f=this['_locale'],_0x4c3d05=[],_0x17027b=[],_0x5c4481=[];for(const _0x24c0c5 of _0x50a670)switch(_0x24c0c5['type']){case'text':if(_0x24c0c5['add']=_0x24c0c5['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x24c0c5['remove']=_0x24c0c5['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x24c0c5['add']&&''!=_0x24c0c5['remove']){_0x4c3d05['push']({'type':'replace','content':o(_0x30f63f,'REPLACE_TEXT',['\x22'+_0x24c0c5['remove']+'\x22','\x22'+_0x24c0c5['add']+'\x22'])});continue;}if(null!=_0x24c0c5['add']['match'](/^ +$/)){_0x4c3d05['push']({'type':'insertion','content':o(_0x30f63f,'*Insert:*\x20%0',o(_0x30f63f,'ELEMENT_SPACE',_0x24c0c5['add']['length']))});continue;}if(null!=_0x24c0c5['remove']['match'](/^ +$/)){_0x4c3d05['push']({'type':'deletion','content':o(_0x30f63f,'*Remove:*\x20%0',o(_0x30f63f,'ELEMENT_SPACE',_0x24c0c5['remove']['length']))});continue;}if(''!=_0x24c0c5['add']){_0x4c3d05['push']({'type':'insertion','content':o(_0x30f63f,'*Insert:*\x20%0','\x22'+_0x24c0c5['add']+'\x22')});continue;}_0x4c3d05['push']({'type':'deletion','content':o(_0x30f63f,'*Remove:*\x20%0','\x22'+_0x24c0c5['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4c3d05['push']({'type':'insertion','content':o(_0x30f63f,'*Insert:*\x20%0',this['getItemLabel'](_0x24c0c5['element'],_0x24c0c5['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4c3d05['push']({'type':'deletion','content':o(_0x30f63f,'*Remove:*\x20%0',this['getItemLabel'](_0x24c0c5['element'],_0x24c0c5['quantity']))});continue;case'addContainer':_0x4c3d05['push']({'type':'insertion','content':o(_0x30f63f,'*Split:*\x20%0',this['getItemLabel'](_0x24c0c5['element'],_0x24c0c5['quantity']))});continue;case'removeContainer':_0x4c3d05['push']({'type':'deletion','content':o(_0x30f63f,'*Merge:*\x20%0',this['getItemLabel'](_0x24c0c5['element'],_0x24c0c5['quantity']))});continue;case'addFormat':_0x17027b['push'](_0x24c0c5['key']);continue;case'removeFormat':_0x5c4481['push'](_0x24c0c5['key']);continue;default:_0x4c3d05['push'](_0x24c0c5);}if(_0x17027b['length']){const _0x468abf=_0x17027b['map'](_0x4f8f3a=>this['_attributeLabels']['has'](_0x4f8f3a)?this['_attributeLabels']['get'](_0x4f8f3a):_0x4f8f3a)['join'](',\x20');_0x4c3d05['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x468abf)});}if(_0x5c4481['length']){const _0x127f81=_0x5c4481['map'](_0x13ae48=>this['_attributeLabels']['has'](_0x13ae48)?this['_attributeLabels']['get'](_0x13ae48):_0x13ae48)['join'](',\x20');_0x4c3d05['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x127f81)});}return _0x4c3d05;}['_handleCustomCallbackDescription'](_0x3e70f7){for(const _0x1b90da of this['_customCallbacks']){const _0x1ffa31=_0x1b90da(_0x3e70f7);if(_0x1ffa31&&'type'in _0x1ffa31)return _0x1ffa31;}}['_handleAttributeSuggestionDescription'](_0x21e397,_0xddd385){const _0x1b341b=_0xddd385['data'],_0x3f90d8=void 0x0===_0x1b341b['newValue']?'removeFormat':'addFormat';_0x21e397['push']({'type':_0x3f90d8,'key':_0x1b341b['key']});}['_handleRenameSuggestionDescription'](_0x3ff6f5,_0x574197){_0x3ff6f5['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x574197['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3f2ffa,_0xb60067,_0x22880e){if(this['_addDescriptionItems'](_0x3f2ffa,_0xb60067),_0x22880e&&_0x22880e['getFirstRange']()&&!_0xb60067['getFirstRange']()['end']['isEqual'](_0x22880e['getFirstRange']()['start'])){const _0x2cf997=_0x3f2ffa[_0x3f2ffa['length']-0x1],_0x42cdac='insertion'==_0xb60067['type']?'add':'remove';_0x2cf997&&'text'==_0x2cf997['type']&&(_0x2cf997[_0x42cdac]+='\x0a');}}}class U extends _0x336f7e{['afterInit'](){const _0x4df7f1=this['editor'],_0x47c74e=_0x4df7f1['plugins']['get']('TrackChangesEditing');_0x4df7f1['commands']['get']('showAIAssistant')&&_0x47c74e['enableCommand']('showAIAssistant');}}class V extends _0x336f7e{['afterInit'](){const _0x459687=this['editor'],_0x3ff86d=_0x459687['locale'];if(!_0x459687['plugins']['has']('AlignmentEditing'))return;const _0x166ce9=_0x459687['plugins']['get']('TrackChangesEditing');_0x166ce9['enableDefaultAttributesIntegration']('alignment'),_0x166ce9['registerBlockAttribute']('alignment'),_0x166ce9['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3ff86d,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x397006=this['editor'],_0x1bc29f=_0x397006['locale'];_0x397006['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59ab63=>{if('formatBlock'!=_0x59ab63['type'])return;const {data:_0x9cdc7}=_0x59ab63;if(_0x9cdc7&&'alignment'==_0x9cdc7['commandName']){const _0x3d1e4d=_0x9cdc7['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1bc29f,'*Format:*\x20%0',function(_0x59bf95){switch(_0x59bf95){case'left':return o(_0x1bc29f,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1bc29f,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1bc29f,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1bc29f,'FORMAT_JUSTIFY_TEXT');}}(_0x3d1e4d))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x336f7e{['afterInit'](){const _0x13a984=this['editor'],_0x5922ff=_0x13a984['plugins']['get']('TrackChangesEditing'),_0x548236=_0x13a984['locale'];for(const _0x1d4906 of Zt){if(!_0x13a984['plugins']['has'](_0x1d4906))continue;const _0x2dee22=_0x1d4906['slice'](0x0,-0x7)['toLowerCase'](),_0x23b95c='FORMAT_'+_0x2dee22['toUpperCase']();_0x5922ff['enableDefaultAttributesIntegration'](_0x2dee22),_0x5922ff['registerInlineAttribute'](_0x2dee22),_0x5922ff['descriptionFactory']['registerAttributeLabel'](_0x2dee22,o(_0x548236,_0x23b95c));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fb634=this['editor'],_0x2ac650=_0x1fb634['locale'],_0x11738a=_0x1fb634['plugins']['get']('TrackChangesEditing');function _0x2a284b(_0x462797,_0x54cdbf){_0x11738a['descriptionFactory']['registerDescriptionCallback'](_0x307b09=>{if('formatInline'!=_0x307b09['type'])return;const {data:_0x521519}=_0x307b09;return _0x521519&&_0x521519['commandName']===_0x462797?_0x521519['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2ac650,'*Format:*\x20%0',_0x54cdbf)}:{'type':'format','content':o(_0x2ac650,'*Remove\x20format:*\x20%0',_0x54cdbf)}:void 0x0;});}_0x2a284b('bold',o(_0x2ac650,'FORMAT_BOLD')),_0x2a284b('italic',o(_0x2ac650,'FORMAT_ITALIC')),_0x2a284b('underline',o(_0x2ac650,'FORMAT_UNDERLINE')),_0x2a284b('code',o(_0x2ac650,'FORMAT_CODE')),_0x2a284b('strikethrough',o(_0x2ac650,'FORMAT_STRIKETHROUGH')),_0x2a284b('subscript',o(_0x2ac650,'FORMAT_SUBSCRIPT')),_0x2a284b('superscript',o(_0x2ac650,'FORMAT_SUPERSCRIPT'));}}class F extends _0x336f7e{['afterInit'](){const _0x29fa84=this['editor'],_0x635539=_0x29fa84['locale'];if(!_0x29fa84['plugins']['has']('BlockQuoteEditing'))return;const _0x119b4=_0x29fa84['plugins']['get']('TrackChangesEditing'),_0x13cce0=this['editor']['commands']['get']('blockQuote');_0x119b4['enableCommand']('blockQuote',(_0x39aebc,_0x51e83f={})=>{const _0x7454e2=this['editor']['model']['document']['selection'],_0x4c38f4=_0x51e83f&&void 0x0!==_0x51e83f['forceValue']?_0x51e83f['forceValue']:!_0x13cce0['value'];let _0x262a78=[];if(_0x4c38f4){const _0x191d80=Array['from'](_0x7454e2['getSelectedBlocks']())['filter'](_0x2708cf=>oo(_0x2708cf)||function(_0x555d87,_0xf5aeed){const _0x90fe75=_0xf5aeed['checkChild'](_0x555d87['parent'],'blockQuote'),_0x5c55b1=_0xf5aeed['checkChild'](['$root','blockQuote'],_0x555d87);return _0x90fe75&&_0x5c55b1;}(_0x2708cf,this['editor']['model']['schema']));_0x262a78=to(_0x191d80,_0x29fa84['model']);}else{const _0x3ee352=Array['from'](_0x7454e2['getSelectedBlocks']())['filter'](_0x37768a=>oo(_0x37768a));_0x262a78=to(_0x3ee352,_0x29fa84['model']);}_0x29fa84['model']['change'](()=>{for(const _0x49a729 of _0x262a78)_0x119b4['markBlockFormat'](_0x49a729,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4c38f4}]});});}),_0x119b4['descriptionFactory']['registerDescriptionCallback'](_0x3634f3=>{const {data:_0x577236}=_0x3634f3;if(_0x577236&&'blockQuote'==_0x577236['commandName']){const _0x5b5768=o(_0x635539,'ELEMENT_BLOCK_QUOTE');return _0x577236['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x635539,'*Set\x20format:*\x20%0',_0x5b5768)}:{'type':'format','content':o(_0x635539,'*Remove\x20format:*\x20%0',_0x5b5768)};}});}}function oo(_0x2d8929){return'blockQuote'==_0x2d8929['parent']['name'];}class L extends _0x336f7e{['afterInit'](){const _0x40ae1e=this['editor'],_0x54a522=_0x40ae1e['locale'],_0x8e84f=_0x40ae1e['plugins']['get']('TrackChangesEditing');_0x40ae1e['plugins']['has']('BookmarkEditing')&&(_0x8e84f['enableCommand']('insertBookmark'),_0x8e84f['enableDefaultAttributesIntegration']('updateBookmark'),_0x8e84f['registerBlockAttribute']('bookmarkId'),_0x8e84f['descriptionFactory']['registerDescriptionCallback'](_0x30e417=>{if('insertion'!=_0x30e417['type']&&'deletion'!=_0x30e417['type']&&'attribute'!=_0x30e417['type'])return;const _0x166988=_0x30e417['getContainedElement']();if(null==_0x166988)return;if(!_0x166988['is']('element','bookmark'))return;const _0x215302=_0x166988['getAttribute']('bookmarkId');if('insertion'==_0x30e417['type'])return{'type':'insertion','content':o(_0x54a522,'*Insert:*\x20%0','\x22'+_0x215302+'\x22\x20'+o(_0x54a522,'ELEMENT_BOOKMARK'))};if('deletion'==_0x30e417['type'])return{'type':'deletion','content':o(_0x54a522,'*Remove:*\x20%0','\x22'+_0x215302+'\x22\x20'+o(_0x54a522,'ELEMENT_BOOKMARK'))};const {data:_0xd056c4}=_0x30e417;if(!_0xd056c4||'bookmarkId'!=_0xd056c4['key'])return;return{'type':'format','content':o(_0x54a522,'*Set\x20bookmark:*\x20%0','\x22'+_0xd056c4['newValue']+'\x22')};}));}}class J extends _0x336f7e{['afterInit'](){const _0x51cb31=this['editor'];_0x51cb31['plugins']['has']('CaseChange')&&(_0x51cb31['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x51cb31['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x51cb31['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x336f7e{['afterInit'](){const _0x4aa542=this['editor'];_0x4aa542['commands']['get']('ckbox')&&_0x4aa542['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x336f7e{['afterInit'](){const _0x5000ec=this['editor'];if(!_0x5000ec['plugins']['has']('CodeBlock'))return;const _0xec1404=_0x5000ec['plugins']['get']('TrackChangesEditing'),_0x104517=_0x5000ec['locale'],_0x345bb0=_0x5000ec['config']['get']('codeBlock')['languages'],_0x1a85bc=_0x5000ec['commands']['get']('codeBlock');_0xec1404['enableCommand']('indentCodeBlock'),_0xec1404['enableCommand']('outdentCodeBlock'),_0xec1404['enableCommand']('codeBlock',(_0x20fc9e,_0x582c88={})=>{const _0x6da2=_0x5000ec['model'],_0x80b3dc=_0x5000ec['model']['document']['selection'],_0x4fc8cb=_0x582c88&&void 0x0!==_0x582c88['forceValue']?_0x582c88['forceValue']:!_0x1a85bc['value'];let _0x1076ea;_0x582c88['language']||(_0x582c88['language']=_0x345bb0[0x0]['language']),_0x1076ea=_0x4fc8cb?Array['from'](_0x80b3dc['getSelectedBlocks']())['filter'](_0x102b27=>eo(_0x102b27)||function(_0x273f1e,_0x17eafe){if(_0x273f1e['is']('rootElement')||_0x17eafe['isLimit'](_0x273f1e))return!0x1;return _0x17eafe['checkChild'](_0x273f1e['parent'],'codeBlock');}(_0x102b27,_0x6da2['schema'])):Array['from'](_0x80b3dc['getSelectedBlocks']())['filter'](_0x118009=>eo(_0x118009));const _0xd4906d=to(_0x1076ea,_0x6da2);_0x6da2['change'](()=>{for(const _0x33e016 of _0xd4906d)_0xec1404['markBlockFormat'](_0x33e016,{'commandName':'codeBlock','commandParams':[{..._0x582c88,'forceValue':_0x4fc8cb}],'formatGroupId':'blockName'});});}),(_0xec1404['descriptionFactory']['registerElementLabel']('codeBlock',_0x209497=>o(_0x104517,'ELEMENT_CODE_BLOCK',_0x209497)),_0xec1404['descriptionFactory']['registerDescriptionCallback'](_0x31701a=>{if('formatBlock'!=_0x31701a['type'])return;const _0x3af63a=_0x104517['t'],{data:_0x1e704b}=_0x31701a;if(!_0x1e704b||'codeBlock'!=_0x1e704b['commandName'])return;const _0x455b40=_0x1e704b['commandParams'][0x0]['language'],_0x2fb883=_0x3af63a(_0x345bb0['find'](_0x11f962=>_0x11f962['language']===_0x455b40)['label'])['toLowerCase']();return _0x1e704b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x104517,'*Set\x20format:*\x20%0',o(_0x104517,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2fb883+')')}:{'type':'format','content':o(_0x104517,'*Remove\x20format:*\x20%0',o(_0x104517,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3b2d4d){return'codeBlock'==_0x3b2d4d['name'];}class z extends _0x336f7e{['afterInit'](){const _0x4e5bda=this['editor'];if(!_0x4e5bda['plugins']['has']('CommentsEditing'))return;_0x4e5bda['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x363347,_0x22d1e0,_0x119eb8){const _0x425c02=[];for(const _0x1f78c0 of _0x22d1e0['getItems']())_0x1f78c0['hasAttribute'](_0x363347)&&_0x425c02['push'](_0x119eb8['createRangeOn'](_0x1f78c0));return _0x425c02;}function Ne(_0x57fd94,_0x539ee9,{showActiveMarker:_0x1375a6=!0x0}={}){const _0x940ee1=_0x57fd94['plugins']['get']('TrackChangesEditing');return(_0x2a9b12,_0x419ba8,_0x85424)=>{if(!_0x85424['consumable']['test'](_0x419ba8['markerRange'],_0x2a9b12['name']))return;const _0x20d4c3=_0x419ba8['markerRange']['getWalker'](),_0x522675=_0x419ba8['markerRange']['start'],_0x2cc1fd=_0x57fd94['model']['schema'];let _0x55785f=null,_0x484512=null,_0x4f9aef=!0x1,_0x10a9c0=!0x1;for(const _0x4fc8a3 of _0x20d4c3){const _0x2cbbdb=_0x4fc8a3['item'];_0x4f9aef=_0x4f9aef||_0x2cc1fd['isContent'](_0x2cbbdb);const _0x21119e=_0x85424['mapper']['toViewElement'](_0x2cbbdb);if(_0x21119e&&_0x21119e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4fc8a3['type']&&(_0x2cc1fd['isBlock'](_0x2cbbdb)&&!_0x2cc1fd['isLimit'](_0x2cbbdb)&&(_0x2cbbdb['nextSibling']||_0x522675['isAtEnd']?_0x55785f&&_0x55785f['parent']==_0x2cbbdb||(_0x55785f=_0x2cbbdb,_0x5e5116(_0x4fc8a3['previousPosition']),_0x10a9c0=!0x0):_0x484512=_0x484512||_0x4fc8a3['previousPosition']));}function _0x5e5116(_0x4dfc55){const {authorId:_0x2fd414}=_0x940ee1['_splitMarkerName'](_0x419ba8['markerName']),_0x189303=_0x85424['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x539ee9,'data-author-id':_0x2fd414}),_0x81301f=_0x85424['mapper']['toViewPosition'](_0x4dfc55);_0x1375a6&&_0x940ee1['activeMarkers']['includes'](_0x419ba8['markerName'])&&_0x85424['writer']['addClass']('ck-suggestion-marker--active',_0x189303),_0x85424['writer']['insert'](_0x81301f,_0x189303),_0x85424['mapper']['bindElementToMarker'](_0x189303,_0x419ba8['markerName']);}_0x4f9aef||_0x10a9c0||!_0x484512||_0x5e5116(_0x484512);};}class K extends _0x336f7e{static get['requires'](){return[_0x478d7b];}['init'](){const _0x106ec3=this['editor'],_0x30941b=_0x106ec3['plugins']['get']('TrackChangesEditing');_0x30941b['enableCommand']('delete');const _0x3e251a=_0x106ec3['commands']['get']('deleteForward');_0x30941b['enableCommand']('deleteForward',(_0x59ab48,_0x34a499={})=>{const _0x394d76=_0x106ec3['model']['createSelection'](_0x106ec3['model']['document']['selection']);_0x394d76['isCollapsed']&&_0x106ec3['model']['modifySelection'](_0x394d76,{'direction':'forward','unit':_0x34a499['unit']});const _0x597785=_0x394d76['getFirstRange'](),_0xff495f=_0x252b19['fromRange'](_0x597785);let _0x22e5a7;_0x59ab48(_0x34a499),_0x22e5a7='$graveyard'==_0xff495f['root']['rootName']?_0x106ec3['model']['createRange'](_0x597785['start']):_0x106ec3['model']['createRange'](_0xff495f['start'],_0xff495f['end']),_0xff495f['detach'](),_0x106ec3['model']['enqueueChange'](_0x3e251a['buffer']['batch'],_0x175bc5=>{_0x3e251a['buffer']['lock'](),_0x175bc5['setSelection'](_0x175bc5['createRange'](_0x22e5a7['end'])),_0x3e251a['buffer']['unlock']();});}),_0x106ec3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0x106ec3,'merge'),{'priority':'high'}),_0x106ec3['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x33df3e,_0x533ff5,_0x223c08)=>{_0x223c08['options']['showSuggestionHighlights']&&Ne(_0x106ec3,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x33df3e,_0x533ff5,_0x223c08);},{'priority':'high'}),_0x106ec3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5d2c9a,_0x4e6a39,_0x2b0140)=>{const _0x9fa7f8=_0x2b0140['mapper']['markerNameToElements'](_0x4e6a39['markerName']);if(_0x9fa7f8){for(const _0x4422ba of _0x9fa7f8)_0x4422ba['is']('uiElement')&&(_0x2b0140['mapper']['unbindElementFromMarkerName'](_0x4422ba,_0x4e6a39['markerName']),_0x2b0140['writer']['remove'](_0x4422ba));}},{'priority':'high'});}}class W extends _0x336f7e{['afterInit'](){const _0x5aa40d=this['editor'];if(!_0x5aa40d['plugins']['has']('ListEditing'))return;const _0x2af2a3=_0x5aa40d['locale'],_0x1d2b8f=_0x5aa40d['plugins']['get']('TrackChangesEditing'),_0x38e6ee=_0x5aa40d['plugins']['has']('TodoListEditing'),_0x30df47=!!_0x5aa40d['config']['get']('list.multiBlock');function _0x5caef2(_0x225e83){return{'type':'format','content':''+o(_0x2af2a3,'*Set\x20format:*\x20%0',_0x225e83)};}function _0x10fd9f(_0x4606fb){return{'type':'format','content':''+o(_0x2af2a3,'*Remove\x20format:*\x20%0',_0x4606fb)};}_0x1d2b8f['enableDefaultAttributesIntegration']('numberedList'),_0x1d2b8f['enableDefaultAttributesIntegration']('bulletedList'),_0x1d2b8f['enableDefaultAttributesIntegration']('customNumberedList'),_0x1d2b8f['enableDefaultAttributesIntegration']('customBulletedList'),_0x1d2b8f['enableDefaultAttributesIntegration']('indentList'),_0x1d2b8f['enableDefaultAttributesIntegration']('outdentList'),_0x1d2b8f['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1d2b8f['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1d2b8f['registerBlockAttribute']('listItemId'),_0x1d2b8f['registerBlockAttribute']('listType'),_0x1d2b8f['registerBlockAttribute']('listIndent'),_0x30df47&&(_0x1d2b8f['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1d2b8f['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x38e6ee&&(_0x1d2b8f['enableDefaultAttributesIntegration']('todoList'),_0x1d2b8f['enableDefaultAttributesIntegration']('checkTodoList'),_0x1d2b8f['registerBlockAttribute']('todoListChecked'),_0x1d2b8f['descriptionFactory']['registerDescriptionCallback'](_0x3f6a12=>{const {data:_0x231bbe}=_0x3f6a12;if(_0x231bbe&&'todoListChecked'==_0x231bbe['key'])return{'type':'format','content':_0x231bbe['newValue']?o(_0x2af2a3,'*Check\x20item*'):o(_0x2af2a3,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5707bd=>{if(_0x5707bd['batch']['isUndo'])return!0x1;let _0x12902c=!0x1;const _0x3b1a75=_0x1d2b8f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x27ffdd=>'todoListChecked'===_0x1d2b8f['_getAttributeKey'](_0x27ffdd));for(const _0x324d7d of _0x3b1a75){'todo'!=_0x324d7d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1d2b8f['_findSuggestions'](_0x324d7d['getFirstRange'](),'attribute')['find'](_0x106bb1=>'listType'===_0x1d2b8f['_getAttributeKey'](_0x106bb1['suggestion']))||(_0x5707bd['removeMarker'](_0x324d7d['getFirstMarker']()),_0x12902c=!0x0));}return _0x12902c;})),_0x1d2b8f['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2af2a3,'FORMAT_INDENT'));const _0x5ae07c={'type':'format','content':''};_0x1d2b8f['descriptionFactory']['registerDescriptionCallback'](_0x15f521=>{const {data:_0x4c82ff}=_0x15f521;if(!_0x4c82ff||'listType'!=_0x4c82ff['key'])return;let _0x242707=_0x15f521['head'];for(;_0x242707;){if(_0x242707['data']&&(('listStyle'==_0x242707['data']['key']||'listMarkerStyle'==_0x242707['data']['key'])&&(_0x242707['data']['newValue']&&'default'!=_0x242707['data']['newValue']||'default'!=_0x242707['data']['oldValue']&&!_0x4c82ff['newValue'])||!_0x30df47&&_0x242707['data']['key']==m))return _0x5ae07c;_0x242707=_0x242707['next'];}if(null==_0x4c82ff['newValue'])switch(_0x4c82ff['oldValue']){case'bulleted':return _0x10fd9f(o(_0x2af2a3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x10fd9f(o(_0x2af2a3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x10fd9f(o(_0x2af2a3,'ELEMENT_TODO_LIST'));}switch(_0x4c82ff['newValue']){case'bulleted':return _0x5caef2(o(_0x2af2a3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5caef2(o(_0x2af2a3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5caef2(o(_0x2af2a3,'ELEMENT_TODO_LIST'));}}),_0x1d2b8f['descriptionFactory']['registerDescriptionCallback'](_0x4aa818=>{const {data:_0x2c8265}=_0x4aa818;if(_0x2c8265&&'listIndent'==_0x2c8265['key'])return null==_0x2c8265['newValue']||null==_0x2c8265['oldValue']&&0x0==_0x2c8265['newValue']?_0x5ae07c:void 0x0;}),_0x1d2b8f['descriptionFactory']['registerDescriptionCallback'](_0x4d9998=>{if('attribute'!=_0x4d9998['type'])return;const {data:_0x3fc166}=_0x4d9998;if(!_0x3fc166||'listItemId'!=_0x3fc166['key'])return;const _0x64148f=Te(_0x4d9998);return'newValue'==_0x64148f?{'type':'format','content':o(_0x2af2a3,'*Merge:*\x20list\x20item')}:'oldValue'==_0x64148f?{'type':'format','content':o(_0x2af2a3,'*Split:*\x20list\x20item')}:_0x5ae07c;}),_0x5aa40d['model']['document']['registerPostFixer'](_0x289743=>this['listItemIdFixer'](_0x289743)),_0x5aa40d['model']['document']['registerPostFixer'](_0xbe2f18=>this['noTrackChangesFixer'](_0xbe2f18)),_0x5aa40d['model']['document']['on']('change:data',(_0x4b8bde,_0x31d456)=>{if(_0x31d456['isUndo']||!_0x31d456['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2a0d97){if(_0x2a0d97['batch']['isUndo']||!_0x2a0d97['batch']['isLocal'])return!0x1;let _0x418723=!0x1;const _0x5e7ec5=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2b76fb=>_0x2b76fb['data']&&'listItemId'==_0x2b76fb['data']['key'])['filter'](_0x926edb=>_0x926edb['data']['newValue']&&_0x926edb['data']['oldValue']);for(const _0x40d498 of _0x5e7ec5)Te(_0x40d498)||(_0x2a0d97['removeMarker'](_0x40d498['getFirstMarker']()),_0x418723=!0x0);return _0x418723;}['noTrackChangesFixer'](_0x545752){if(_0x545752['batch']['isUndo']||!_0x545752['batch']['isLocal'])return!0x1;const _0x27857b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x27857b['trackChangesCommand']['value'])return!0x1;let _0x46c565=!0x1;const _0x5d0825=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x231ee1=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x48836e=>'attribute'==_0x48836e['type'])['filter'](_0x23b06c=>_0x5d0825['includes'](_0x23b06c['attributeKey']));if(0x0==_0x231ee1['length'])return _0x46c565;for(const _0x3c964e of _0x231ee1){const _0x49fcd2=_0x27857b['_findSuggestions'](_0x3c964e['range'],'attribute')['filter'](_0x270284=>!_0x270284['meta']['isNextTo'])['map'](_0x16de13=>_0x16de13['suggestion'])['filter'](_0x5e02b8=>{const _0x52f2d8=_0x27857b['_getAttributeKey'](_0x5e02b8);return _0x5d0825['includes'](_0x52f2d8);});if(_0x49fcd2['length']){for(const _0x20de98 of _0x49fcd2)_0x545752['removeMarker'](_0x20de98['getFirstMarker']());_0x46c565=!0x0;}}return _0x46c565;}['assureChains'](){const _0x429b33=this['editor']['plugins']['get']('TrackChangesEditing'),_0x325f0a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1c8810;const _0x4aaf95=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xa77631=>{if(_0xa77631['data']['oldRange']||!_0xa77631['data']['newRange'])return null;if(!_0xa77631['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2ab64b}=_0x429b33['_splitMarkerName'](_0xa77631['name']);if(!_0x429b33['hasSuggestion'](_0x2ab64b))return null;const _0x30fcfb=_0x429b33['getSuggestion'](_0x2ab64b);return _0x325f0a['includes'](_0x30fcfb['data']['key']);})['map'](_0x1427b8=>{const {id:_0x5494ae}=_0x429b33['_splitMarkerName'](_0x1427b8['name']),_0x5db368=_0x429b33['getSuggestion'](_0x5494ae);return _0x1c8810=_0x5db368['attributes']['groupId'],_0x5db368['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4aaf95['size'])return;const _0x528439=_0x429b33['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x33b66f=>'attribute'==_0x33b66f['type']&&_0x33b66f['data']&&_0x325f0a['includes'](_0x33b66f['data']['key'])&&_0x33b66f['attributes']['groupId']!=_0x1c8810)['map'](_0x4282c7=>({'listItem':_0x4282c7['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4282c7['attributes']['groupId']})),_0x58a13e=new Set();for(const {groupId:_0x764c44,listItem:_0x2da126}of _0x528439)_0x4aaf95['has'](_0x2da126)&&_0x58a13e['add'](_0x764c44);for(const _0x3d5e53 of _0x429b33['getSuggestions']())_0x58a13e['has'](_0x3d5e53['attributes']['groupId'])&&_0x3d5e53['setAttribute']('groupId',_0x1c8810);}['_supportLegacySuggestions'](){const _0x47cb34=this['editor'],_0x4d7784=_0x47cb34['locale'],_0x41bf4a=_0x47cb34['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x41bf4a['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x562161,_0x5c4887){const _0x2dd48c=[];for(let _0x3252b9 of _0x562161)_0x3252b9['start']['nodeAfter']===_0x3252b9['end']['parent']&&(_0x3252b9=_0x47cb34['model']['createRange'](_0x47cb34['model']['createPositionAt'](_0x3252b9['start']['nodeAfter'],0x0))),_0x2dd48c['push'](_0x3252b9);_0x47cb34['model']['change'](_0x18ca2a=>{const _0x3748d0=_0x47cb34['model']['document']['selection'],_0x333d62=Array['from'](_0x3748d0['getRanges']())['map'](_0x5148ce=>_0x252b19['fromRange'](_0x5148ce));_0x18ca2a['setSelection'](_0x2dd48c),_0x47cb34['commands']['get'](_0x5c4887['commandName'])['refresh'](),_0x5c4887['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x47cb34['execute'](_0x5c4887['commandName'],..._0x5c4887['commandParams']),_0x18ca2a['setSelection'](_0x333d62);for(const _0x33d8d9 of _0x333d62)_0x33d8d9['detach']();});}),_0x41bf4a['descriptionFactory']['registerElementLabel'](function(_0x2ba131){const _0x570555=!_0x47cb34['model']['schema']['isObject'](_0x2ba131),_0x21fff2=_0x2ba131['previousSibling'],_0x59b055=_0x2ba131['nextSibling'],_0x1fe4ec=_0x2ba131['getAttribute']('listItemId'),_0x57c288=!_0x21fff2||_0x21fff2['getAttribute']('listItemId')!==_0x1fe4ec,_0x7dd87a=!_0x59b055||_0x59b055['getAttribute']('listItemId')!==_0x1fe4ec;return _0x570555&&Boolean(_0x1fe4ec)&&_0x57c288&&_0x7dd87a;},_0x519426=>o(_0x4d7784,'ELEMENT_LIST_ITEM',_0x519426));}['_registerLegacyDescription'](){const _0x14978b=this['editor'],_0x219539=_0x14978b['locale'];function _0x2d54e6(_0x4a71c6){const _0x4e2f60=_0x14978b['commands']['get']('bulletedList')['value'],_0x3d83d1=_0x14978b['commands']['get']('numberedList')['value'];return'numberedList'===_0x4a71c6?_0x4e2f60:_0x3d83d1;}_0x14978b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x26049e){if('formatBlock'!=_0x26049e['type'])return;const {data:_0x1d44c7}=_0x26049e;if(!_0x1d44c7)return;let _0x36966a,_0x588f24,_0x31f62e,_0xaf7139;switch(_0x1d44c7['commandName']){case'bulletedList':_0x31f62e=_0x1d44c7['commandParams'][0x0]['forceValue'],_0xaf7139=_0x2d54e6(_0x1d44c7['commandName']),_0x36966a=_0x31f62e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xaf7139&&_0x14978b['config']['get']('list.multiBlock')||(_0x36966a='*Change\x20to:*\x20%0'),_0x588f24={'type':'format','content':o(_0x219539,_0x36966a,o(_0x219539,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x31f62e=_0x1d44c7['commandParams'][0x0]['forceValue'],_0xaf7139=_0x2d54e6(_0x1d44c7['commandName']),_0x36966a=_0x31f62e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xaf7139&&_0x14978b['config']['get']('list.multiBlock')||(_0x36966a='*Change\x20to:*\x20%0'),_0x588f24={'type':'format','content':o(_0x219539,_0x36966a,o(_0x219539,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x36966a='*Indent:*\x20%0',_0x588f24={'type':'format','content':o(_0x219539,_0x36966a,o(_0x219539,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x36966a=function(_0x5cd7a4){const _0x2ccd9f=_0x5cd7a4['getFirstRange']();let _0x4fd069=_0x2ccd9f['start']['nodeAfter'];for(;_0x4fd069&&_0x2ccd9f['containsItem'](_0x4fd069);){if(_0x4fd069['getAttribute']('listIndent')>0x0)return!0x1;_0x4fd069=_0x4fd069['nextSibling'];}return!0x0;}(_0x26049e)?o(_0x219539,'*Format:*\x20remove\x20from\x20%0',o(_0x219539,function(_0xde44b5){return'ELEMENT_'+_0xde44b5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x26049e))):o(_0x219539,'*Outdent:*\x20%0',o(_0x219539,'ELEMENT_LIST_ITEM')),_0x588f24={'type':'format','content':_0x36966a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1d44c7['multipleBlocks']&&(_0x36966a='*Merge:*\x20%0',_0x588f24={'type':'deletion','content':o(_0x219539,_0x36966a,o(_0x219539,'ELEMENT_LIST_ITEM'))});}return _0x588f24;});}}function Te(_0x114c51){let _0x269d8f=_0x114c51['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x269d8f;){const _0x48d015=_0x269d8f['getAttribute']('listItemId');if(!_0x48d015)return!0x1;if(_0x48d015==_0x114c51['data']['newValue'])return'newValue';if(_0x48d015==_0x114c51['data']['oldValue'])return'oldValue';_0x269d8f=_0x269d8f['previousSibling'];}return!0x1;}class ye extends _0x336f7e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x51d89d=this['editor']['config']['get']('list.properties'),_0x1e023c=this['editor']['plugins']['get']('TrackChangesEditing');_0x51d89d['styles']&&(_0x1e023c['enableDefaultAttributesIntegration']('listStyle'),_0x1e023c['registerBlockAttribute']('listStyle')),_0x51d89d['reversed']&&(_0x1e023c['enableDefaultAttributesIntegration']('listReversed'),_0x1e023c['registerBlockAttribute']('listReversed')),_0x51d89d['startIndex']&&(_0x1e023c['enableDefaultAttributesIntegration']('listStart'),_0x1e023c['registerBlockAttribute']('listStart'));const _0x347306={'type':'format','content':''};_0x1e023c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3b7795=this['editor']['locale'];_0x1e023c['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3b7795,'FORMAT_LIST_REVERSED')),_0x1e023c['descriptionFactory']['registerDescriptionCallback'](_0x4d6dc5=>{const {data:_0xcd260}=_0x4d6dc5;if(_0xcd260&&'listReversed'==_0xcd260['key'])return null==_0xcd260['newValue']||0x0==_0xcd260['newValue']&&null==_0xcd260['oldValue']?_0x347306:void 0x0;}),_0x1e023c['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3b7795,'FORMAT_LIST_START')),_0x1e023c['descriptionFactory']['registerDescriptionCallback'](_0x4a8aa7=>{const {data:_0x5b04fd}=_0x4a8aa7;if(_0x5b04fd&&'listStart'==_0x5b04fd['key'])return null==_0x5b04fd['newValue']||0x1==_0x5b04fd['newValue']&&null==_0x5b04fd['oldValue']?_0x347306:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x20c799=>{if(_0x20c799['batch']['isUndo'])return!0x1;let _0xe74071=!0x1;const _0x41d975=_0x1e023c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x144d28=>{const _0x1c570a=_0x1e023c['_getAttributeKey'](_0x144d28);return'listStart'==_0x1c570a||'listReversed'==_0x1c570a;});for(const _0x831cf1 of _0x41d975){const _0xaf4f65=_0x831cf1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xaf4f65||'customNumbered'==_0xaf4f65)continue;_0x1e023c['_findSuggestions'](_0x831cf1['getFirstRange'](),'attribute')['find'](_0x2de727=>'listType'==_0x1e023c['_getAttributeKey'](_0x2de727['suggestion']))||(_0x20c799['removeMarker'](_0x831cf1['getFirstMarker']()),_0xe74071=!0x0);}return _0xe74071;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x11e9e0){const _0x3058af=this['editor']['locale'],{data:_0x4aa053}=_0x11e9e0,_0x4d0791={'type':'format','content':''};if(!_0x4aa053||'listStyle'!=_0x4aa053['key'])return;if(!_0x4aa053['oldValue'])return'default'==_0x4aa053['newValue']?_0x4d0791:{'type':'format','content':''+o(_0x3058af,'*Set\x20format:*\x20%0',o(_0x3058af,this['_getTranslationKeyForListStyle'](_0x4aa053['newValue'])))};if(!_0x4aa053['newValue']){if('default'==_0x4aa053['oldValue'])return _0x4d0791;let _0x45211c=_0x11e9e0['head'];for(;_0x45211c;){if(_0x45211c['data']&&'listType'==_0x45211c['data']['key']&&_0x45211c['data']['newValue'])return _0x4d0791;_0x45211c=_0x45211c['next'];}return{'type':'format','content':''+o(_0x3058af,'*Remove\x20format:*\x20%0',o(_0x3058af,this['_getTranslationKeyForListStyle'](_0x4aa053['oldValue'])))};}if('default'!=_0x4aa053['newValue'])return{'type':'format','content':''+o(_0x3058af,'*Set\x20format:*\x20%0',o(_0x3058af,this['_getTranslationKeyForListStyle'](_0x4aa053['newValue'])))};let _0x448586=_0x11e9e0['head'];for(;_0x448586;){if(_0x448586['data']&&'listType'==_0x448586['data']['key']&&_0x448586['data']['newValue']&&_0x448586['data']['oldValue'])return _0x4d0791;_0x448586=_0x448586['next'];}return{'type':'format','content':o(_0x3058af,'*Set\x20format:*\x20%0',o(_0x3058af,'ELEMENT_'+_0x11e9e0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x25234c=this['editor'],_0xe395ee=_0x25234c['locale'];_0x25234c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4024b6=>{if('formatBlock'!=_0x4024b6['type'])return;const {data:_0x178431}=_0x4024b6;if(!_0x178431)return;let _0x31e35e,_0x14d6d1;switch(_0x178431['commandName']){case'listStyle':_0x31e35e='*Change\x20to:*\x20%0',_0x14d6d1={'type':'format','content':o(_0xe395ee,_0x31e35e,o(_0xe395ee,this['_getTranslationKeyForListStyle'](_0x178431['commandParams'][0x0]['type'])))};break;case'listReversed':_0x31e35e=_0x178431['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x14d6d1={'type':'format','content':o(_0xe395ee,_0x31e35e)};break;case'listStart':_0x31e35e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x14d6d1={'type':'format','content':o(_0xe395ee,_0x31e35e,_0x178431['commandParams'][0x0]['startIndex'])};}return _0x14d6d1;});}['_getTranslationKeyForListStyle'](_0x5bb87e){return'ELEMENT_'+function(_0x59945d){if(Se['includes'](_0x59945d))return'bulleted';if(_e['includes'](_0x59945d))return'numbered';return null;}(_0x5bb87e)['toUpperCase']()+'_LIST_'+_0x5bb87e['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x336f7e{static get['requires'](){return[_0x1b49c3];}['init'](){const _0x1c5bcd=this['editor'],_0x1b971f=_0x1c5bcd['plugins']['get']('TrackChangesEditing'),_0x37a33e=_0x1c5bcd['commands']['get']('enter');_0x1b971f['enableCommand']('enter',()=>{_0x1c5bcd['model']['change'](_0x3127a2=>{const _0x3cc116=_0x1c5bcd['model']['document']['selection'],_0x661caf=_0x3cc116['getFirstPosition'](),_0x2edb82=_0x252b19['fromRange'](_0x3cc116['getFirstRange']());if(_0x37a33e['enterBlock'](_0x3127a2)){const _0x3fb58b=_0x1c5bcd['model']['createPositionAt'](_0x661caf['parent']['nextSibling'],0x0),_0x55336a=_0x3127a2['createRange'](_0x661caf,_0x3fb58b);_0x1b971f['markInsertion'](_0x55336a);}else _0x3127a2['setSelection'](_0x3127a2['createRange'](_0x2edb82['end']));_0x2edb82['detach'](),_0x37a33e['fire']('afterExecute',{'writer':_0x3127a2});});}),_0x1c5bcd['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x1c5bcd,'split'),{'priority':'high'}),_0x1c5bcd['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1406fb,_0x1dcb0e,_0x348773)=>{const _0x45ae37=_0x348773['mapper']['markerNameToElements'](_0x1dcb0e['markerName']);if(_0x45ae37){for(const _0x617d62 of _0x45ae37)_0x617d62['hasClass']('ck-suggestion-marker-split')&&(_0x348773['mapper']['unbindElementFromMarkerName'](_0x617d62,_0x1dcb0e['markerName']),_0x348773['writer']['remove'](_0x617d62));}},{'priority':'high'}),_0x1c5bcd['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4adc4b,_0x23a7f3,_0xd81b04)=>{_0xd81b04['options']['showSuggestionHighlights']&&Ne(_0x1c5bcd,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4adc4b,_0x23a7f3,_0xd81b04);},{'priority':'high'});}}class Y extends _0x336f7e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x231261=this['editor']['plugins']['get']('TrackChangesEditing');_0x231261['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x231261['enableCommand']('findNext'),_0x231261['enableCommand']('findPrevious'),_0x231261['enableCommand']('replace'),_0x231261['enableCommand']('replaceAll');}['handleFindCommand'](_0x3f61a3,_0x56b6e5,_0x5d60ca={}){const _0x11f978=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3f61a3(_0x56eb9c=>{let _0x1fca61=('string'==typeof _0x56b6e5?_0x11f978['findByTextCallback'](_0x56b6e5,_0x5d60ca):_0x56b6e5)(_0x56eb9c);Array['isArray'](_0x1fca61)&&(_0x1fca61={'results':_0x1fca61,'searchText':'string'==typeof _0x56b6e5?_0x56b6e5:''});const _0x2da4ea=_0x1fca61['results']['filter'](_0x3a3ffc=>!0x1===this['_isInDeletionRange'](_0x3a3ffc,_0x56eb9c['item']));return{..._0x1fca61,'results':_0x2da4ea};},_0x5d60ca);}['_isInDeletionRange'](_0x10d03a,_0x3e2e10){const _0x8f7380=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3e2e10,_0x10d03a['start']),this['editor']['model']['createPositionAt'](_0x3e2e10,_0x10d03a['end']));for(const _0x22b403 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x8f7380['getIntersection'](_0x22b403['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x336f7e{['afterInit'](){const _0x158d14=this['editor']['locale'],_0x2c8abe=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x46d7a2,commandName:_0x524a35}of ro)this['editor']['plugins']['has'](_0x46d7a2)&&(_0x2c8abe['enableDefaultAttributesIntegration'](_0x524a35),_0x2c8abe['registerInlineAttribute'](_0x524a35));_0x2c8abe['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x158d14,'FORMAT_FONT_SIZE')),_0x2c8abe['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x158d14,'FORMAT_FONT_FAMILY')),_0x2c8abe['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x158d14,'FORMAT_FONT_COLOR')),_0x2c8abe['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x158d14,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x105b88=this['editor'],_0x187edf=_0x105b88['locale'];_0x105b88['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a6e7b=>{const _0x5b8525=_0x187edf['t'];if('formatInline'!=_0x5a6e7b['type'])return;const {data:_0x1d7def}=_0x5a6e7b;if(null!=_0x1d7def){if('fontSize'==_0x1d7def['commandName']){const _0x3c9185=_0x1d7def['commandParams'][0x0]['value'];if(_0x3c9185){const _0x42d9ef=_0x5b8525(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x592314=>_0x592314['model']==_0x3c9185)['title'])['toLowerCase']();return{'type':'format','content':o(_0x187edf,'*Set\x20font\x20size:*\x20%0',_0x42d9ef)};}return{'type':'format','content':o(_0x187edf,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1d7def['commandName']){const _0x335122=_0x1d7def['commandParams'][0x0]['value'];return _0x335122?{'type':'format','content':o(_0x187edf,'*Set\x20font\x20family:*\x20%0',_0x335122)}:{'type':'format','content':o(_0x187edf,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1d7def['commandName']){const _0x148b8e=_0x1d7def['commandParams'][0x0]['value'];if(_0x148b8e){const _0x2d6e4e=_0x199577(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4d53c3=>_0x4d53c3['model']==_0x148b8e);let _0x525eee=_0x148b8e,_0x9aa5ca='';return _0x2d6e4e&&(_0x525eee=_0x2d6e4e['label'],_0x9aa5ca=_0x5b8525(_0x525eee)['toLowerCase']()),{'type':'format','content':o(_0x187edf,'*Set\x20font\x20color:*\x20%0',_0x9aa5ca)['trim'](),'color':{'value':_0x148b8e,'title':_0x9aa5ca||_0x525eee}};}return{'type':'format','content':o(_0x187edf,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1d7def['commandName']){const _0x304698=_0x1d7def['commandParams'][0x0]['value'];if(_0x304698){const _0x3a716c=_0x199577(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x37a8b8=>_0x37a8b8['model']==_0x304698);let _0x5b8729=_0x304698,_0x4eb51b='';return _0x3a716c&&(_0x5b8729=_0x3a716c['label'],_0x4eb51b=_0x5b8525(_0x5b8729)['toLowerCase']()),{'type':'format','content':o(_0x187edf,'*Set\x20font\x20background\x20color:*\x20%0',_0x4eb51b)['trim'](),'color':{'value':_0x304698,'title':_0x4eb51b||_0x5b8729}};}return{'type':'format','content':o(_0x187edf,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x336f7e{['afterInit'](){const _0x296f44=this['editor'],_0x3752a9=_0x296f44['plugins']['get']('TrackChangesEditing'),_0x41f281=_0x296f44['commands']['get']('copyFormat'),_0x5901ef=_0x296f44['commands']['get']('pasteFormat');_0x41f281&&_0x5901ef&&(_0x3752a9['enableDefaultAttributesIntegration']('pasteFormat'),_0x3752a9['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x19374d=this['editor'],_0x457a09=_0x19374d['locale'];_0x19374d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a6f85=>{if('formatBlock'!=_0x3a6f85['type']&&'formatInline'!=_0x3a6f85['type'])return;const {data:_0x2348fb}=_0x3a6f85;if(_0x2348fb&&'pasteFormat'===_0x2348fb['commandName']){const _0x182dc7=[],_0x3f2ab9=_0x2348fb['commandParams'][0x0];for(const [_0x54adb6,_0x594b8a]of Object['entries'](_0x3f2ab9))_0x182dc7['push'](so(_0x19374d,_0x54adb6,_0x594b8a));return _0x182dc7['length']?{'type':'format','content':o(_0x457a09,'*Set\x20format\x20to:*\x20%0',_0x182dc7['join'](',\x20'))}:{'type':'format','content':o(_0x457a09,'*Remove\x20all\x20formatting*')};}});}}function so(_0x358d9e,_0x126b36,_0x13e249){const _0xce85d6=_0x358d9e['locale']['t'],_0x5d5ce5=_0x126b36['split'](/(?=[A-Z])/)['join']('\x20'),_0xb8b1f7=_0xce85d6(_0x5d5ce5['charAt'](0x0)['toUpperCase']()+_0x5d5ce5['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x13e249)return _0xb8b1f7;if('fontColor'===_0x126b36||'fontBackgroundColor'===_0x126b36){const _0x262e22=_0x199577(_0x358d9e['config']['get']('fontColor.colors'))['find'](_0x30115d=>_0x30115d['model']==_0x13e249);return _0xb8b1f7+'\x20('+(_0x262e22?_0xce85d6(_0x262e22['label'])['toLowerCase']():_0x13e249)+')';}if('fontSize'===_0x126b36&&isNaN(parseFloat(_0x13e249))){const _0x588afa=_0x358d9e['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x358d9e['config']['get']('fontSize.options'))['find'](_0x506651=>_0x506651['model']==_0x13e249);return _0xb8b1f7+'\x20('+(_0x588afa?_0xce85d6(_0x588afa['title'])['toLowerCase']():_0x13e249)+')';}return _0xb8b1f7+'\x20('+_0x13e249+')';}class nt extends _0x336f7e{['_headingOptions'];['afterInit'](){const _0x71ef30=this['editor'];if(!_0x71ef30['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x71ef30['config']['get']('heading.options');const _0x546f7a=_0x71ef30['locale'],_0x53000b=_0x71ef30['plugins']['get']('TrackChangesEditing');_0x53000b['enableDefaultAttributesIntegration']('heading');for(const _0x21d70a of this['_headingOptions'])'paragraph'!=_0x21d70a['model']&&_0x53000b['descriptionFactory']['registerElementLabel'](_0x21d70a['model'],_0x51c748=>{const _0x396fdf=this['_getHeadingLevel'](_0x21d70a['model']);return null!==_0x396fdf?_0x27b9af(_0x51c748,_0x396fdf):_0x305415(_0x51c748,_0x21d70a['title']);});function _0x27b9af(_0x3f626d,_0x3ab9b7){return o(_0x546f7a,'ELEMENT_HEADING',[_0x3f626d,_0x3ab9b7]);}function _0x305415(_0x1bd641,_0x5395ce){return o(_0x546f7a,'ELEMENT_HEADING_CUSTOM',[_0x1bd641,_0x5395ce]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x338dd3=this['editor'],_0x267329=_0x338dd3['locale'];function _0x629eb9(_0xcf38a9,_0x38a187){return o(_0x267329,'ELEMENT_HEADING_CUSTOM',[_0xcf38a9,_0x38a187]);}_0x338dd3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x310e6a=>{if('formatBlock'!=_0x310e6a['type'])return;const {data:_0x3cafc2}=_0x310e6a;if(_0x3cafc2&&'heading'==_0x3cafc2['commandName']){const _0x2bf9d0=_0x3cafc2['commandParams'][0x0]['value'],_0x29c973=this['_getHeadingLevel'](_0x2bf9d0);if(null!==_0x29c973)return{'type':'format','content':o(_0x267329,'*Change\x20to:*\x20%0',(_0x40a716=0x1,_0x2d4cfa=_0x29c973,o(_0x267329,'ELEMENT_HEADING',[_0x40a716,_0x2d4cfa])))};const _0x4ce504=this['_headingOptions']['find'](_0x50ae7f=>_0x50ae7f['model']===_0x2bf9d0)['title'];return{'type':'format','content':o(_0x267329,'*Change\x20to:*\x20%0',_0x629eb9(0x1,_0x4ce504))};}var _0x40a716,_0x2d4cfa;});}['_getHeadingLevel'](_0x8d8edf){const _0x13af4e=_0x8d8edf['match'](/^heading(\d+)/);if(_0x13af4e)return _0x13af4e[0x1];const _0x1b29eb=this['_headingOptions']?.['find'](_0xabd016=>_0xabd016['model']==_0x8d8edf);if(_0x1b29eb&&_0x1b29eb['view']){const _0x216e9b=_0x1b29eb['view'],_0x5c2129=(_0x216e9b['name']??_0x216e9b)['match'](/^h(\d+)/);if(_0x5c2129)return _0x5c2129[0x1];}return null;}}class it extends _0x336f7e{['afterInit'](){const _0x14ae00=this['editor'];if(!_0x14ae00['plugins']['has']('HighlightEditing'))return;const _0x46dfe3=_0x14ae00['plugins']['get']('TrackChangesEditing'),_0x2d40c6=_0x14ae00['locale'];_0x46dfe3['enableDefaultAttributesIntegration']('highlight'),_0x46dfe3['registerInlineAttribute']('highlight'),_0x46dfe3['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2d40c6,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5fc6d0=this['editor'],_0x1d6d2f=_0x5fc6d0['locale'];_0x5fc6d0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15d5e4=>{if('formatInline'!=_0x15d5e4['type'])return;const {data:_0x322588}=_0x15d5e4;if(_0x322588&&'highlight'==_0x322588['commandName']){const _0x2d65ae=_0x1d6d2f['t'],_0x1342c4=_0x322588['commandParams'][0x0]['value'];if(_0x1342c4){const _0x2cb1c6=_0x5fc6d0['config']['get']('highlight.options')['find'](_0x5643d3=>_0x5643d3['model']==_0x1342c4),_0x4d53fb=_0x2d65ae(_0x2cb1c6['title'])['toLowerCase']();return{'type':'format','content':o(_0x1d6d2f,'*Set\x20highlight:*\x20%0',_0x4d53fb),'color':{'value':_0x2cb1c6['color'],'title':_0x2cb1c6['title']}};}return{'type':'format','content':o(_0x1d6d2f,'*Remove\x20highlight*',o(_0x1d6d2f,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x336f7e{['afterInit'](){const _0x3f78f6=this['editor'];if(!_0x3f78f6['plugins']['has']('HorizontalLineEditing'))return;_0x3f78f6['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5ac990=_0x3f78f6['plugins']['get']('TrackChangesEditing'),_0x1bea2c=_0x3f78f6['locale'];_0x5ac990['descriptionFactory']['registerElementLabel']('horizontalLine',_0x30a6b0=>o(_0x1bea2c,'ELEMENT_HORIZONTAL_LINE',_0x30a6b0)),_0x3f78f6['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x11c863,{writer:_0x3e42ea,options:_0x53c530})=>{if(!_0x53c530['showSuggestionHighlights'])return null;const _0x11c20d=_0x3e42ea['createContainerElement']('div'),_0x71249e=_0x3e42ea['createEmptyElement']('hr');return _0x3e42ea['addClass']('ck-horizontal-line',_0x11c20d),_0x3e42ea['insert'](_0x3e42ea['createPositionAt'](_0x11c20d,0x0),_0x71249e),_0x11c20d;},'converterPriority':'high'});}}class st extends _0x336f7e{['afterInit'](){const _0x59efbe=this['editor'];if(!_0x59efbe['plugins']['has']('HtmlEmbed'))return;const _0x2ea718=_0x59efbe['plugins']['get']('TrackChangesEditing'),_0x322d71=_0x59efbe['locale'];_0x2ea718['descriptionFactory']['registerElementLabel']('rawHtml',_0x577e4a=>o(_0x322d71,'ELEMENT_HTML_EMBED',_0x577e4a)),_0x2ea718['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2ea718['registerBlockAttribute']('value'),_0x2ea718['descriptionFactory']['registerDescriptionCallback'](_0x3c8f24=>{if('attribute'!=_0x3c8f24['type'])return;const {data:_0x1b7068}=_0x3c8f24;if(_0x1b7068&&'value'==_0x1b7068['key']&&_0x3c8f24['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x8b0c54=o(_0x322d71,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x322d71,'*Change\x20%0\x20content*',_0x8b0c54)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b4e15=this['editor'],_0x186815=_0x5b4e15['locale'];_0x5b4e15['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fafd6=>{if('formatBlock'!=_0x2fafd6['type'])return;const {data:_0x23c8b0}=_0x2fafd6;if(_0x23c8b0&&'htmlEmbed'==_0x23c8b0['commandName']){const _0x17fb9b=o(_0x186815,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x186815,'*Change\x20%0\x20content*',_0x17fb9b)};}});}}class ot extends _0x336f7e{['afterInit'](){const _0x3720bf=this['editor'];if(!_0x3720bf['plugins']['has']('ImageEditing'))return;const _0x5a07c6=_0x3720bf['plugins']['get']('TrackChangesEditing'),_0x460475=_0x3720bf['plugins']['get']('ImageUtils'),_0x4d6c35=_0x3720bf['locale'];_0x5a07c6['enableCommand']('insertImage'),_0x5a07c6['descriptionFactory']['registerElementLabel']('imageBlock',_0x2b735c=>o(_0x4d6c35,'ELEMENT_IMAGE',_0x2b735c)),_0x5a07c6['descriptionFactory']['registerElementLabel']('imageInline',_0x3b9dcf=>o(_0x4d6c35,'ELEMENT_INLINE_IMAGE',_0x3b9dcf)),_0x5a07c6['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4d6c35,'ELEMENT_CAPTION')),_0x3720bf['plugins']['has']('ImageUploadEditing')&&_0x5a07c6['enableCommand']('uploadImage'),_0x3720bf['plugins']['has']('ImageBlockEditing')&&_0x3720bf['plugins']['has']('ImageInlineEditing')&&(_0x5a07c6['enableCommand']('imageTypeInline',(_0x3edb11,_0x30cec9)=>{const _0x1188cd=_0x460475['getClosestSelectedImageElement'](_0x3720bf['model']['document']['selection']);_0x3720bf['model']['change'](()=>{_0x5a07c6['markBlockFormat'](_0x1188cd,{'commandName':'imageTypeInline','commandParams':[_0x30cec9]},[],'convertBlockImageToInline');});}),_0x5a07c6['enableCommand']('imageTypeBlock',(_0x3891d4,_0x2b88ea)=>{_0x3720bf['model']['change'](_0x3db7e4=>{let _0x674a29=_0x460475['getClosestSelectedImageElement'](_0x3720bf['model']['document']['selection']),_0x522e1c=_0x3db7e4['createRangeOn'](_0x674a29);const _0x4e8e06=_0xd3f805['fromPosition'](_0x522e1c['start'],'toPrevious'),_0x2ad7bb=_0xd3f805['fromPosition'](_0x522e1c['end'],'toNext');_0x5a07c6['forceDefaultExecution'](()=>_0x3891d4(_0x2b88ea)),_0x674a29=_0x460475['getClosestSelectedImageElement'](_0x3720bf['model']['document']['selection']),_0x522e1c=_0x3db7e4['createRangeOn'](_0x674a29);const _0x58ecc7=_0x3db7e4['createRange'](_0x4e8e06,_0x2ad7bb);_0x4e8e06['detach'](),_0x2ad7bb['detach'](),_0x5a07c6['markBlockFormat'](_0x674a29,{'commandName':'imageTypeInline','commandParams':[_0x2b88ea]},[],'convertInlineImageToBlock'),_0x58ecc7['start']['isBefore'](_0x522e1c['start'])&&_0x5a07c6['markInsertion'](_0x3db7e4['createRange'](_0x58ecc7['start'],_0x522e1c['start']),'convertInlineImageToBlock'),_0x522e1c['end']['isBefore'](_0x58ecc7['end'])&&_0x5a07c6['markInsertion'](_0x3db7e4['createRange'](_0x522e1c['end'],_0x58ecc7['end']),'convertInlineImageToBlock');});}),_0x5a07c6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5a07c6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5a07c6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5a07c6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5a07c6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5a07c6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xbad226])=>{const _0x3417de=_0x5a07c6['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x514cda=_0xbad226['start'],_0x1a0b1f=_0xbad226['end'];const _0x3b28a9=_0x3720bf['model']['schema']['getNearestSelectionRange'](_0x514cda,'backward'),_0x934e=_0x3720bf['model']['schema']['getNearestSelectionRange'](_0x1a0b1f,'forward');_0x3b28a9['isCollapsed']&&(_0x514cda=_0x3b28a9['start']),_0x934e['isCollapsed']&&(_0x1a0b1f=_0x934e['end']),_0x3417de([_0x3720bf['model']['createRange'](_0x514cda,_0x1a0b1f)]);}),_0x5a07c6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4eb8cc),_0x5a07c6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4eb8cc)),_0x3720bf['plugins']['has']('ImageCaptionEditing')&&(_0x5a07c6['enableCommand']('toggleImageCaption',(_0xa3d378,_0x3a71fa)=>{const _0x161620=_0x3720bf['plugins']['get']('ImageCaptionUtils');let _0xe26e8b=_0x460475['getClosestSelectedImageElement'](_0x3720bf['model']['document']['selection']),_0x1753ab=_0x161620['getCaptionFromImageModelElement'](_0xe26e8b);_0x3720bf['model']['change'](()=>{if(_0x1753ab)return void _0x5a07c6['markDeletion'](_0x3720bf['model']['createRangeOn'](_0x1753ab));const _0x5680b5=_0x460475['isBlockImage'](_0xe26e8b);_0xa3d378(_0x3a71fa),_0xe26e8b=_0x460475['getClosestSelectedImageElement'](_0x3720bf['model']['document']['selection']),_0x1753ab=_0x161620['getCaptionFromImageModelElement'](_0xe26e8b),_0x5a07c6['markInsertion'](_0x3720bf['model']['createRangeOn'](_0x1753ab),_0x5680b5?null:'imageCaption');});}),_0x5a07c6['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4eb8cc));const _0x26b685=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x573991(_0x3e1556,_0x1ebcc1){const _0x2c1c2f=_0x26b685['findIndex'](({type:_0x3ba428,subType:_0x44681b})=>_0x3e1556['type']==_0x3ba428&&_0x3e1556['subType']==_0x44681b),_0x826254=_0x26b685['findIndex'](({type:_0x47aadb,subType:_0x4d58a8})=>_0x1ebcc1['type']==_0x47aadb&&_0x1ebcc1['subType']==_0x4d58a8);if(_0x2c1c2f<0x0||_0x826254<0x0)return!0x1;const _0x532c0b=_0x3e1556['getFirstRange'](),_0x347ecf=_0x1ebcc1['getFirstRange']();if((0x0==_0x2c1c2f||0x1==_0x2c1c2f)&&0x2==_0x826254&&_0x532c0b['isIntersecting'](_0x347ecf))return!0x0;if(0x2==_0x2c1c2f&&0x3==_0x826254){const _0x21024f=_0x5a07c6['_findSuggestions'](_0x532c0b,'insertion')['filter'](({suggestion:_0x309de8,meta:_0xbaf8e2})=>_0xbaf8e2['isOwn']&&'convertInlineImageToBlock'==_0x309de8['subType']);if(_0x21024f['length']>0x1&&_0x347ecf['end']['isEqual'](_0x532c0b['start']))return!0x0;if(0x1==_0x21024f['length']&&(_0x532c0b['start']['isEqual'](_0x347ecf['end'])||_0x532c0b['end']['isEqual'](_0x347ecf['start'])))return!0x0;}if(0x3==_0x2c1c2f&&0x3==_0x826254&&_0x532c0b['start']['isBefore'](_0x347ecf['start'])){const _0x13c695=_0x532c0b['end']['nodeAfter'],_0x70047d=_0x347ecf['start']['nodeBefore'];return _0x460475['isBlockImage'](_0x13c695)&&_0x13c695===_0x70047d;}return!0x1;}function _0x4eb8cc(_0x29a85e,_0x41a540){return _0x573991(_0x29a85e,_0x41a540)?[_0x29a85e,_0x41a540]:_0x573991(_0x41a540,_0x29a85e)?[_0x41a540,_0x29a85e]:null;}_0x3720bf['plugins']['has']('ImageResize')&&(_0x5a07c6['enableDefaultAttributesIntegration']('resizeImage'),_0x5a07c6['registerBlockAttribute']('resizedWidth'),_0x5a07c6['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4d6c35,'FORMAT_IMAGE_SIZE'))),_0x3720bf['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5a07c6['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5a07c6['registerBlockAttribute']('alt')),_0x5a07c6['descriptionFactory']['registerDescriptionCallback'](_0x1721e5=>{if(!!_0x26b685['find'](({type:_0x3a3fc6,subType:_0x3df46c})=>_0x1721e5['type']==_0x3a3fc6&&_0x1721e5['subType']==_0x3df46c))return _0x1721e5['previous']?{}:void 0x0;}),_0x5a07c6['descriptionFactory']['registerDescriptionCallback'](_0x1b88d3=>{if('insertion'==_0x1b88d3['type']||'deletion'==_0x1b88d3['type']){const _0xa065bc=_0x1b88d3['getContainedElement']();if(_0xa065bc&&_0xa065bc['is']('element','caption'))return{'type':'insertion'==_0x1b88d3['type']?'addObject':'removeObject','element':_0xa065bc,'quantity':0x1};}}),_0x5a07c6['descriptionFactory']['registerDescriptionCallback'](_0x26ca61=>'formatBlock'==_0x26ca61['type']&&'convertInlineImageToBlock'==_0x26ca61['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x26ca61['type']&&'convertBlockImageToInline'==_0x26ca61['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5a07c6['descriptionFactory']['registerDescriptionCallback'](_0x30d0ef=>{if('attribute'!=_0x30d0ef['type'])return;const {data:_0x597d32}=_0x30d0ef;if(!_0x597d32||'alt'!=_0x597d32['key'])return;const _0x939cd=_0x597d32['newValue'];return _0x939cd?{'type':'format','content':o(_0x4d6c35,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x939cd+'\x22')}:{'type':'format','content':o(_0x4d6c35,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c3281=this['editor'],_0x3f8e42=_0x1c3281['locale'];_0x1c3281['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cf1b9=>{if('formatBlock'!=_0x2cf1b9['type']&&'formatInline'!=_0x2cf1b9['type'])return;const {data:_0x2cca29}=_0x2cf1b9;if(_0x2cca29){if('imageTextAlternative'==_0x2cca29['commandName']){const _0x12c7d8=_0x2cca29['commandParams'][0x0]['newValue'];return _0x12c7d8?{'type':'format','content':o(_0x3f8e42,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x12c7d8+'\x22')}:{'type':'format','content':o(_0x3f8e42,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2cca29['commandName']){const _0x5c8507=_0x2cca29['commandParams'][0x0]['width'];return _0x5c8507?{'type':'format','content':o(_0x3f8e42,'*Set\x20image\x20width:*\x20%0',_0x5c8507)}:{'type':'format','content':o(_0x3f8e42,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x336f7e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x18f2da=this['editor']['locale'],_0x50bf84=this['editor']['plugins']['get']('TrackChangesEditing');_0x50bf84['enableDefaultAttributesIntegration']('replaceImageSource'),_0x50bf84['registerBlockAttribute']('src'),_0x50bf84['descriptionFactory']['registerDescriptionCallback'](_0x556516=>{if('attribute'!=_0x556516['type'])return;const {data:_0x23d738}=_0x556516;return _0x23d738&&'src'==_0x23d738['key']?_0x23d738['newValue']&&_0x23d738['oldValue']?{'type':'format','content':o(_0x18f2da,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x496d51=this['editor']['plugins']['get']('TrackChangesEditing');_0x496d51['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x496d51['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x496d51['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x496d51['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x372ef2=this['editor'],_0x5845eb=_0x372ef2['locale'];_0x372ef2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49b9bd=>{if('formatBlock'!=_0x49b9bd['type']&&'formatInline'!=_0x49b9bd['type'])return;const {data:_0x6d6598}=_0x49b9bd;if(!_0x6d6598||'replaceImageSource'!=_0x6d6598['commandName'])return;return{'type':'format','content':o(_0x5845eb,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x336f7e{['afterInit'](){const _0x3bdd05=this['editor'];if(!_0x3bdd05['plugins']['has']('ImageStyleEditing'))return;const _0x536722=_0x3bdd05['plugins']['get']('TrackChangesEditing'),_0x5d849d=_0x3bdd05['plugins']['get']('ImageUtils'),_0x5ba183={};_0x536722['enableCommand']('imageStyle',(_0x2d58e6,_0x1ff0c1)=>{const _0x4894e6=_0x3bdd05['plugins']['get']('Users')['me'],_0x51f8ab=_0x3bdd05['commands']['get']('imageStyle');let _0x315612=_0x5d849d['getClosestSelectedImageElement'](_0x3bdd05['model']['document']['selection']),_0x1d5ba7=_0x3bdd05['model']['createRangeOn'](_0x315612),_0x3f3386=_0x51f8ab['value'];if(_0x3f3386==_0x1ff0c1['value'])return;const _0x4564ea={'commandName':'imageStyle','commandParams':[_0x1ff0c1],'formatGroupId':_0x5a6ab6()};_0x3bdd05['model']['change'](()=>{if(_0x536722['getSuggestions']()['filter'](_0x3a3fbf=>_0x3a3fbf['isInContent']&&_0x4894e6==_0x3a3fbf['author']&&('formatBlock'==_0x3a3fbf['type']||'formatInline'==_0x3a3fbf['type'])&&('imageStylePreApply'==_0x3a3fbf['subType']||'imageStylePostApply'==_0x3a3fbf['subType'])&&_0x3a3fbf['getFirstRange']()['isEqual'](_0x1d5ba7))['forEach'](_0x11178e=>_0x536722['discardSuggestion'](_0x11178e['head'])),_0x315612=_0x5d849d['getClosestSelectedImageElement'](_0x3bdd05['model']['document']['selection']),_0x1d5ba7=_0x3bdd05['model']['createRangeOn'](_0x315612),_0x51f8ab['refresh'](),_0x3bdd05['commands']['get']('imageTypeInline')['refresh'](),_0x3bdd05['commands']['get']('imageTypeBlock')['refresh'](),_0x3f3386=_0x51f8ab['value'],_0x3f3386!=_0x1ff0c1['value'])return _0x5d849d['isInlineImage'](_0x315612)&&_0x51f8ab['shouldConvertImageType'](_0x1ff0c1['value'],_0x315612)?(_0x2d58e6({..._0x1ff0c1,'setImageSizes':!0x1}),_0x315612=_0x5d849d['getClosestSelectedImageElement'](_0x3bdd05['model']['document']['selection']),void _0x536722['markBlockFormat'](_0x315612,{..._0x4564ea,'commandReversedParams':[{'value':_0x3f3386||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5d849d['isBlockImage'](_0x315612)?_0x536722['markBlockFormat'](_0x315612,_0x4564ea,[],'imageStylePostApply'):_0x536722['markInlineFormat'](_0x1d5ba7,_0x4564ea,'imageStylePostApply'));});});for(const _0x188ac1 of _0x3bdd05['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5ba183[_0x188ac1['name']]=_0x188ac1['title']['toLowerCase']();_0x536722['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x536722['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x536722['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x536722['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x38cfc4])=>{_0x5d849d['setImageNaturalSizeAttributes'](_0x38cfc4['getContainedElement']());}),_0x536722['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3fe134,_0x5dc58f)=>{_0x536722['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3fe134,{'commandName':_0x5dc58f['commandName'],'commandParams':_0x5dc58f['commandReversedParams']});}),_0x536722['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x40f243,_0x248cd2){if(_0x456c12(_0x40f243,_0x248cd2))return[_0x40f243,_0x248cd2];if(_0x456c12(_0x248cd2,_0x40f243))return[_0x248cd2,_0x40f243];return null;});const _0x292155=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x456c12(_0x42c6f7,_0x41cefa){const _0x4801b7=_0x292155['findIndex'](({type:_0x1f606d,subType:_0x5ed6a5})=>_0x42c6f7['type']==_0x1f606d&&_0x42c6f7['subType']==_0x5ed6a5),_0x213588=_0x292155['findIndex'](({type:_0x2be370,subType:_0x344124})=>_0x41cefa['type']==_0x2be370&&_0x41cefa['subType']==_0x344124);if(_0x4801b7<0x0||_0x213588<0x0)return!0x1;const _0x5b630a=_0x42c6f7['getFirstRange'](),_0x16d5a5=_0x41cefa['getFirstRange']();if((0x0==_0x4801b7||0x1==_0x4801b7)&&0x2==_0x213588&&_0x5b630a['isIntersecting'](_0x16d5a5))return!0x0;if(0x2==_0x4801b7&&0x3==_0x213588){const _0x4f06af=_0x536722['_findSuggestions'](_0x5b630a,'insertion')['filter'](({suggestion:_0x51a8bd,meta:_0x51ff3e})=>_0x51ff3e['isOwn']&&'convertInlineImageToBlock'==_0x51a8bd['subType']);if(_0x4f06af['length']>0x1&&_0x16d5a5['end']['isEqual'](_0x5b630a['start']))return!0x0;if(0x1==_0x4f06af['length']&&(_0x5b630a['start']['isEqual'](_0x16d5a5['end'])||_0x5b630a['end']['isEqual'](_0x16d5a5['start'])))return!0x0;}if(0x3==_0x4801b7&&0x3==_0x213588&&_0x5b630a['start']['isBefore'](_0x16d5a5['start'])){const _0x36b62a=_0x5b630a['end']['nodeAfter'],_0x41e893=_0x16d5a5['start']['nodeBefore'];return _0x5d849d['isBlockImage'](_0x36b62a)&&_0x36b62a===_0x41e893;}return!0x1;}_0x3bdd05['model']['document']['registerPostFixer'](()=>{let _0x3e29aa=!0x1;const _0x5c2e23=Array['from'](_0x3bdd05['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xbcae7,data:_0x20a6b7}of _0x5c2e23){const {group:_0x515963,type:_0x396659,subType:_0x504188,id:_0x379de4}=_0x536722['_splitMarkerName'](_0xbcae7);if('suggestion'==_0x515963&&_0x536722['hasSuggestion'](_0x379de4)){if('formatBlock'==_0x396659&&('imageStylePreApply'==_0x504188||'imageStylePostApply'==_0x504188)){const _0x424c58=_0x536722['getSuggestion'](_0x379de4);if(_0x20a6b7['newRange']){const _0x2d0827=_0x424c58['getFirstRange']()['getContainedElement']();if(_0x5d849d['isBlockImage'](_0x2d0827))continue;_0x536722['discardSuggestion'](_0x424c58),_0x3e29aa=!0x0;}}if('insertion'==_0x396659&&'imageCaption'==_0x504188&&!_0x20a6b7['newRange']){const _0x408328=_0x536722['getSuggestion'](_0x379de4);_0x408328['next']&&_0x408328['next']['isInContent']&&(_0x536722['discardSuggestion'](_0x408328['next']),_0x3e29aa=!0x0);}}}return _0x3e29aa;}),this['_registerLegacyDescription'](_0x5ba183);}['_registerLegacyDescription'](_0x25f908){const _0x1d8db0=this['editor'],_0x543710=_0x1d8db0['locale'];_0x1d8db0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x131fa7=>{if('formatBlock'!=_0x131fa7['type']&&'formatInline'!=_0x131fa7['type'])return;const {data:_0xda1f72}=_0x131fa7;if(!_0xda1f72||'imageStyle'!=_0xda1f72['commandName'])return;const _0x2457b0=_0xda1f72['commandParams'][0x0]['value'];return _0x363142('side'===_0x2457b0?o(_0x543710,'FORMAT_SIDE_IMAGE'):_0x25f908[_0x2457b0]||_0x2457b0);function _0x363142(_0x2a6ebd){return{'type':'format','content':o(_0x543710,'*Format:*\x20%0',_0x2a6ebd)};}});}}class ct extends _0x336f7e{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1a8fcd){super(_0x1a8fcd),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x153e6c=this['editor'],_0xe86b64=_0x153e6c['commands']['get']('importWord'),_0x27bcf8=_0x153e6c['commands']['get']('trackChanges');_0xe86b64&&(_0xe86b64['on']('execute',(_0x2cb492,[,_0xe0a51e])=>{this['_trackChangesValueDuringImport']=_0x27bcf8['value'],_0xe0a51e['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xe86b64,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xe86b64,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x27bcf8['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x153e6c['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x114703,_0x2204d7){const {suggestions:_0x4d1014}=_0x2204d7,_0x212627=this['editor']['commands']['get']('trackChanges'),_0x227875=_0x212627['value'];this['_trackChangesValueDuringImport']!==_0x227875&&(_0x212627['execute'](),this['_trackChangesExecuted']=!0x0),_0x4d1014&&_0x4d1014['forEach'](({id:_0x5a7402,type:_0xc43336,author:_0x7980b2,created_at:_0x233c12})=>{const _0x6d8014={'id':_0x5a7402,'type':_0xc43336,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x7980b2,'createdAt':_0x233c12?new Date(_0x233c12):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x6d8014);});}}class ut extends _0x336f7e{['afterInit'](){const _0x131e4d=this['editor'],_0x4d2129=_0x131e4d['plugins']['get']('TrackChangesEditing');if(_0x131e4d['plugins']['has']('IndentEditing')&&(_0x4d2129['enableCommand']('indent'),_0x4d2129['enableCommand']('outdent')),_0x131e4d['plugins']['has']('IndentBlock')){for(const _0x3bd74f of['indentBlock','outdentBlock'])_0x4d2129['enableDefaultAttributesIntegration'](_0x3bd74f);}const _0x4546ce=_0x131e4d['locale'];_0x4d2129['registerBlockAttribute']('blockIndent'),_0x4d2129['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4546ce,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x147f9b=this['editor'],_0x484186=_0x147f9b['locale'],_0x1f8101=_0x147f9b['plugins']['get']('TrackChangesEditing');_0x1f8101['descriptionFactory']['registerDescriptionCallback'](_0x5089c6=>{if('formatBlock'!=_0x5089c6['type'])return;const {data:_0x5614a1}=_0x5089c6;if(!_0x5614a1)return;if('indentBlock'!=_0x5614a1['commandName']&&'outdentBlock'!=_0x5614a1['commandName'])return;const _0x2dc62c=_0x5089c6['getItems']()[0x0],_0x5ee332=_0x1f8101['descriptionFactory']['getItemLabel'](_0x2dc62c);return'indentBlock'==_0x5614a1['commandName']?{'type':'format','content':o(_0x484186,'*Indent:*\x20%0',_0x5ee332)}:'outdentBlock'==_0x5614a1['commandName']?{'type':'format','content':o(_0x484186,'*Outdent:*\x20%0',_0x5ee332)}:void 0x0;});}}class ft extends _0x336f7e{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x336f7e{['afterInit'](){const _0x697de3=this['editor'];if(!_0x697de3['plugins']['has']('LinkEditing'))return;const _0x2eff8e=_0x697de3['plugins']['get']('TrackChangesEditing'),_0x57be5f=_0x697de3['commands']['get']('link');_0x2eff8e['enableDefaultAttributesIntegration']('link'),_0x2eff8e['enableDefaultAttributesIntegration']('unlink'),_0x2eff8e['registerInlineAttribute']('linkHref');for(const _0x28d641 of _0x57be5f['manualDecorators'])_0x2eff8e['registerInlineAttribute'](_0x28d641['id']),_0x2eff8e['descriptionFactory']['registerAttributeLabel'](_0x28d641['id'],'link\x20('+_0x28d641['label']['toLowerCase']()+')');_0x2eff8e['descriptionFactory']['registerDescriptionCallback'](_0x2c6ec0=>{if('attribute'!=_0x2c6ec0['type'])return;const {data:_0x41dac7}=_0x2c6ec0;if(!_0x41dac7||'linkHref'!=_0x41dac7['key'])return;const _0x3bab07=_0x41dac7['newValue'],_0x3b9b79=_0x697de3['locale'];return{'type':'format','content':null==_0x3bab07?o(_0x3b9b79,'*Remove\x20link*'):o(_0x3b9b79,'*Set\x20link:*\x20%0','\x22'+_0x3bab07+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3dae19=this['editor'],_0xf41450=_0x3dae19['locale'];_0x3dae19['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c6702=>{if('formatInline'!=_0x1c6702['type'])return;const {data:_0x2c1f0f}=_0x1c6702;if(_0x2c1f0f){if('link'==_0x2c1f0f['commandName']){const _0x56aef8=_0x2c1f0f['commandParams'][0x0];return{'type':'format','content':o(_0xf41450,'*Set\x20link:*\x20%0','\x22'+_0x56aef8+'\x22')};}return'unlink'==_0x2c1f0f['commandName']?{'type':'format','content':o(_0xf41450,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x336f7e{['afterInit'](){const _0x20c154=this['editor'],_0x5bfad4=_0x20c154['locale'];if(!_0x20c154['plugins']['has']('LegacyListEditing'))return;const _0x43581d=_0x20c154['plugins']['get']('TrackChangesEditing'),_0x361f22=_0x20c154['plugins']['has']('LegacyTodoListEditing');function _0x98e4a8(_0x5826f3){return()=>{const _0x28fef2=_0x20c154['model']['document']['selection'],_0x469d35=_0x20c154['commands']['get'](_0x5826f3);if(_0x469d35['value'])return void _0x20c154['execute']('paragraph',{});const _0x445042=_0x5826f3['slice'](0x0,-0x4),_0xef551=function(_0x2e2613,_0x408b7b,_0x2ba4d1){let _0x1ac61f=Array['from'](_0x2e2613)['filter'](_0x262747=>function(_0xebfa1c,_0x5729be){return _0x5729be['checkChild'](_0xebfa1c['parent'],'listItem')&&!_0x5729be['isObject'](_0xebfa1c);}(_0x262747,_0x2ba4d1));_0x1ac61f=_0x1ac61f['filter'](_0xd04e30=>!_0xd04e30['is']('element','listItem')||_0xd04e30['getAttribute']('listType')!=_0x408b7b);const _0x4cf813=new Set();for(const _0x1e1de1 of _0x1ac61f)_0x1e1de1['is']('element','listItem')?_0x4cf813['add'](Le(_0x1e1de1)):_0x4cf813['add'](_0x1e1de1);return Array['from'](_0x4cf813);}(_0x28fef2['getSelectedBlocks'](),_0x445042,_0x20c154['model']['schema']);_0x20c154['model']['change'](()=>{for(const _0x24ec4e of _0xef551)_0x43581d['markBlockFormat'](_0x24ec4e,{'commandName':_0x5826f3,'commandParams':[{'forceValue':!_0x469d35['value']}],'formatGroupId':'blockName'},Ee(_0x24ec4e));});};}function _0xa1b3d9(_0x35ad18){return()=>{const _0x2c5632=function(_0x3f5209){let _0x2d495f=Array['from'](_0x3f5209);const _0x86737f=_0x2d495f['findIndex'](_0x49076f=>'listItem'!=_0x49076f['name']);return _0x86737f>-0x1&&(_0x2d495f=_0x2d495f['slice'](0x0,_0x86737f)),_0x2d495f;}(_0x20c154['model']['document']['selection']['getSelectedBlocks']()),_0x57927a=_0x20c154['model']['createRange'](_0x20c154['model']['createPositionAt'](_0x2c5632[0x0],'before'),_0x20c154['model']['createPositionAt'](_0x2c5632[_0x2c5632['length']-0x1],'end'));_0x20c154['model']['change'](()=>{_0x43581d['markBlockFormat'](_0x57927a,{'commandName':_0x35ad18,'commandParams':[],'formatGroupId':'listIndent'},function(_0x558c08){const _0x3da1ff=new Set();for(const _0x479f79 of _0x558c08){let _0x590c2d=_0x479f79['nextSibling'];for(;_0x590c2d&&_0x590c2d['getAttribute']('listIndent')>_0x479f79['getAttribute']('listIndent');)_0x3da1ff['add'](_0x590c2d),_0x590c2d=_0x590c2d['nextSibling'];}return Array['from'](_0x3da1ff);}(_0x2c5632));});};}_0x43581d['enableCommand']('numberedList',_0x98e4a8('numberedList')),_0x43581d['enableCommand']('bulletedList',_0x98e4a8('bulletedList')),_0x361f22&&_0x43581d['enableCommand']('todoList',_0x98e4a8('todoList')),_0x43581d['enableCommand']('indentList',_0xa1b3d9('indentList')),_0x43581d['enableCommand']('outdentList',_0xa1b3d9('outdentList')),_0x361f22&&_0x43581d['enableCommand']('checkTodoList',()=>{const _0x3cf376=_0x20c154['commands']['get']('checkTodoList'),_0x2205a3=Array['from'](_0x3cf376['_selectedElements']);_0x2205a3['filter'](_0x16a4ed=>_0x16a4ed['getAttribute']('todoListChecked')!=_0x3cf376['value']),_0x20c154['model']['change'](()=>{for(const _0x211084 of _0x2205a3)_0x43581d['markBlockFormat'](_0x211084,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3cf376['value']}]});});}),_0x43581d['descriptionFactory']['registerElementLabel']('listItem',_0x350b9c=>o(_0x5bfad4,'ELEMENT_LIST_ITEM',_0x350b9c)),_0x43581d['descriptionFactory']['registerDescriptionCallback'](_0x26201e=>{if('formatBlock'!=_0x26201e['type']&&'formatInline'!=_0x26201e['type'])return;const {data:_0x8f9462}=_0x26201e;if(_0x8f9462){if('numberedList'==_0x8f9462['commandName']||'bulletedList'==_0x8f9462['commandName']||'todoList'==_0x8f9462['commandName'])switch(_0x8f9462['commandName']['replace']('List','')){case'bulleted':return _0x47cc3c(o(_0x5bfad4,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x47cc3c(o(_0x5bfad4,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x47cc3c(o(_0x5bfad4,'ELEMENT_TODO_LIST'));}if('indentList'==_0x8f9462['commandName'])return{'type':'format','content':o(_0x5bfad4,'*Indent:*\x20%0',o(_0x5bfad4,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x8f9462['commandName'])return{'type':'format','content':o(_0x5bfad4,'*Outdent:*\x20%0',o(_0x5bfad4,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x8f9462['commandName'])return _0x8f9462['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5bfad4,'*Check\x20item*')}:{'type':'format','content':o(_0x5bfad4,'*Uncheck\x20item*')};}function _0x47cc3c(_0x5d3607){return{'type':'format','content':o(_0x5bfad4,'*Change\x20to:*\x20%0',_0x5d3607)};}});}}function Le(_0x2f80c6){const _0x1676e9=_0x2f80c6['getAttribute']('listIndent');if(0x0==_0x1676e9)return _0x2f80c6;let _0x31bc78=_0x2f80c6;for(;_0x2f80c6['previousSibling']&&_0x2f80c6['previousSibling']['is']('element','listItem');){const _0x521be2=_0x2f80c6['previousSibling']['getAttribute']('listIndent');if(_0x521be2==_0x1676e9)_0x31bc78=_0x2f80c6['previousSibling'];else{if(_0x521be2<_0x1676e9)break;}_0x2f80c6=_0x2f80c6['previousSibling'];}return _0x31bc78;}function Ee(_0x46ddc8){const _0x268462=[];if(_0x46ddc8['is']('element','listItem')&&_0x46ddc8['getAttribute']('listIndent')>0x0){let _0x56f46c=_0x46ddc8['nextSibling'];for(;_0x56f46c&&'listItem'==_0x56f46c['name']&&_0x56f46c['getAttribute']('listIndent')==_0x46ddc8['getAttribute']('listIndent');)_0x268462['push'](_0x56f46c),_0x56f46c=_0x56f46c['nextSibling'];}return _0x268462;}class Q extends _0x336f7e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xe94b0f=this['editor']['config']['get']('list.properties'),_0x123db4=this['editor']['plugins']['get']('TrackChangesEditing');_0xe94b0f['styles']&&_0x123db4['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xe94b0f['reversed']&&_0x123db4['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xe94b0f['startIndex']&&_0x123db4['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x123db4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1e09f2,_0x559551={}){const _0x167622=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49bba3=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x167622['markMultiRangeBlockFormat'](_0x49bba3,{'commandName':'listStyle','commandParams':[{'type':_0x559551['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3a28de,_0x406beb={}){const _0xc421b3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d3d07=this['_getSuggestionBlocks'](_0x1f7e59=>_0x1f7e59['is']('element','listItem')&&'numbered'===_0x1f7e59['getAttribute']('listType'));if(_0x3d3d07['length']<0x1)return;const _0x40dac9=_0x3d3d07['map'](_0x54f3d2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x54f3d2,'before'),this['editor']['model']['createPositionAt'](_0x54f3d2,0x0)));this['editor']['model']['change'](()=>{_0xc421b3['markMultiRangeBlockFormat'](_0x40dac9,{'commandName':'listReversed','commandParams':[{'reversed':_0x406beb['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2030e9,_0x51bfb8={}){const _0x54e567=this['editor']['plugins']['get']('TrackChangesEditing'),_0x402833=this['_getSuggestionBlocks'](_0x183157=>_0x183157['is']('element','listItem')&&'numbered'===_0x183157['getAttribute']('listType'));if(_0x402833['length']<0x1)return;const _0x527b85=_0x402833['map'](_0x5431c8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5431c8,'before'),this['editor']['model']['createPositionAt'](_0x5431c8,0x0)));this['editor']['model']['change'](()=>{_0x54e567['markMultiRangeBlockFormat'](_0x527b85,{'commandName':'listStart','commandParams':[{'startIndex':_0x51bfb8['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x11f8b6){if('formatBlock'!=_0x11f8b6['type']&&'formatInline'!=_0x11f8b6['type'])return;const _0x521704=this['editor']['locale'],{data:_0x5290e5}=_0x11f8b6;if(!_0x5290e5)return;let _0x2fc8cf,_0x74f212;switch(_0x5290e5['commandName']){case'listStyle':_0x2fc8cf='*Change\x20to:*\x20%0',_0x74f212={'type':'format','content':o(_0x521704,_0x2fc8cf,o(_0x521704,this['_getTranslationKeyForListStyle'](_0x5290e5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2fc8cf=_0x5290e5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x74f212={'type':'format','content':o(_0x521704,_0x2fc8cf)};break;case'listStart':_0x2fc8cf='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x74f212={'type':'format','content':o(_0x521704,_0x2fc8cf,_0x5290e5['commandParams'][0x0]['startIndex'])};}return _0x74f212;}['_getSuggestionBlocksForListStyle'](){const _0xec0ed0=this['editor']['plugins']['get']('LegacyListUtils');let _0x17ec4e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x17ec4e[0x0]?.['is']('element','listItem')&&_0x17ec4e['unshift'](..._0xec0ed0['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x17ec4e[_0x17ec4e['length']-0x1]?.['is']('element','listItem')&&_0x17ec4e['push'](..._0xec0ed0['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x17ec4e=[...new Set(_0x17ec4e)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x17ec4e=_0x17ec4e['filter'](_0x527d6c=>_0x527d6c['is']('element','listItem'))),_0x17ec4e;}['_getSuggestionBlocks'](_0x490ca8){const _0x2262a1=this['editor']['plugins']['get']('LegacyListUtils');let _0x1f228a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x490ca8)['map'](_0x28e868=>{const _0xa33bd6=this['editor']['model']['createPositionAt'](_0x28e868,0x0);return[..._0x2262a1['getSiblingNodes'](_0xa33bd6,'backward'),..._0x2262a1['getSiblingNodes'](_0xa33bd6,'forward')];})['flat']();return _0x1f228a=[...new Set(_0x1f228a)],_0x1f228a;}['_getTranslationKeyForListStyle'](_0x1b2db6){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1b2db6)||'default')['toUpperCase']()+'_LIST_'+_0x1b2db6['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x336f7e{['afterInit'](){const _0x487c13=this['editor'];if(!_0x487c13['plugins']['has']('MediaEmbedEditing'))return;const _0x2822d1=_0x487c13['plugins']['get']('TrackChangesEditing'),_0x2bc1cd=_0x487c13['locale'];_0x2822d1['enableCommand']('mediaEmbed'),_0x2822d1['descriptionFactory']['registerElementLabel']('media',_0x3d6ae0=>o(_0x2bc1cd,'ELEMENT_MEDIA',_0x3d6ae0)),_0x487c13['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x323e18,{writer:_0x31f7df,options:_0x292ab5})=>{if(_0x292ab5['showSuggestionHighlights'])return _0x31f7df['createEmptyElement']('div');},'converterPriority':'high'}),_0x487c13['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3ec362,_0x41c5c1,_0x3679a7)=>{_0x3679a7['options']['showSuggestionHighlights']&&_0x3ec362['stop']();},{'priority':'high'});}}class mt extends _0x336f7e{['afterInit'](){const _0x122978=this['editor'];_0x122978['plugins']['has']('MentionEditing')&&_0x122978['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x336f7e{['afterInit'](){const _0x3b227d=this['editor'];if(!_0x3b227d['plugins']['has']('MergeFieldsEditing'))return;_0x3b227d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x3b227d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x14f5c9=_0x3b227d['plugins']['get']('TrackChangesEditing'),_0x3c4061=_0x3b227d['locale'];_0x14f5c9['descriptionFactory']['registerElementLabel']('mergeField',_0x1e7d63=>o(_0x3c4061,'ELEMENT_MERGE_FIELD',_0x1e7d63)),_0x14f5c9['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1d3056=>o(_0x3c4061,'ELEMENT_MERGE_FIELD',_0x1d3056)),_0x14f5c9['descriptionFactory']['registerDescriptionCallback'](_0x4b18d5=>{if('insertion'!=_0x4b18d5['type']&&'deletion'!=_0x4b18d5['type'])return;const _0x1afefa=_0x4b18d5['getContainedElement']();if(null==_0x1afefa)return;if(!_0x1afefa['is']('element','mergeField')&&!_0x1afefa['is']('element','mergeFieldBlock'))return;const _0x5bb360=_0x3b227d['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x1afefa['getAttribute']('id'));return'insertion'==_0x4b18d5['type']?{'type':'insertion','content':o(_0x3c4061,'*Insert:*\x20%0','\x22'+_0x5bb360+'\x22\x20'+o(_0x3c4061,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3c4061,'*Remove:*\x20%0','\x22'+_0x5bb360+'\x22\x20'+o(_0x3c4061,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x336f7e{['afterInit'](){const _0x59e472=this['editor'],_0xcf5c62=_0x59e472['plugins']['get']('TrackChangesEditing');_0x59e472['plugins']['has']('MultiLevelList')&&(_0xcf5c62['enableDefaultAttributesIntegration']('multiLevelList'),_0xcf5c62['registerBlockAttribute']('listMarkerStyle'),_0xcf5c62['descriptionFactory']['registerDescriptionCallback'](_0x3bef72=>this['handleDescriptions'](_0x3bef72)));}['handleDescriptions'](_0x26223a){const _0x27b962=this['editor']['locale'],{data:_0x3863e0}=_0x26223a,_0x20cd00={'type':'format','content':''};if(_0x3863e0&&'listMarkerStyle'==_0x3863e0['key']){if(!_0x3863e0['oldValue'])return{'type':'format','content':o(_0x27b962,'*Set\x20format:*\x20%0',o(_0x27b962,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3863e0['newValue']+')'};if(!_0x3863e0['newValue']){let _0x29e25b=_0x26223a['head'];for(;_0x29e25b;){if(_0x29e25b['data']&&'listType'==_0x29e25b['data']['key']&&_0x29e25b['data']['newValue'])return _0x20cd00;_0x29e25b=_0x29e25b['next'];}return{'type':'format','content':o(_0x27b962,'*Remove\x20format:*\x20%0',o(_0x27b962,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3863e0['oldValue']+')'};}}}}class kt extends _0x336f7e{['afterInit'](){const _0x3c6925=this['editor'];if(!_0x3c6925['plugins']['has']('PageBreakEditing'))return;_0x3c6925['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x113f17=_0x3c6925['plugins']['get']('TrackChangesEditing'),_0x46f2cd=_0x3c6925['locale'];_0x113f17['descriptionFactory']['registerElementLabel']('pageBreak',_0x2c93d9=>o(_0x46f2cd,'ELEMENT_PAGE_BREAK',_0x2c93d9));}}class bt extends _0x336f7e{['afterInit'](){const _0x5718d2=this['editor'];if(!_0x5718d2['plugins']['has']('Paragraph'))return;const _0x1627c8=_0x5718d2['locale'],_0x10045e=_0x5718d2['plugins']['get']('TrackChangesEditing');_0x10045e['descriptionFactory']['registerElementLabel']('paragraph',_0x2bc84e=>o(_0x1627c8,'ELEMENT_PARAGRAPH',_0x2bc84e)),_0x10045e['enableDefaultAttributesIntegration']('paragraph'),_0x10045e['enableCommand']('insertParagraph'),_0x5718d2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5718d2),{'priority':'highest'}),_0x5718d2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x527686,_0x99394e,_0x3bb6ca)=>{_0x3bb6ca['options']['showSuggestionHighlights']&&nr(_0x5718d2,{'showActiveMarker':!0x1})(_0x527686,_0x99394e,_0x3bb6ca);},{'priority':'highest'});const _0xda920a=_0x10045e['descriptionFactory'];_0xda920a['registerDescriptionCallback'](_0x20d83f=>{if('insertion'!==_0x20d83f['type'])return;const {start:_0x27b453,end:_0x240ec4}=_0x20d83f['getFirstRange']();if(!_0x27b453['isTouching'](_0x240ec4)||!_0x27b453['nodeAfter'])return;const _0x2d8835=_0x5718d2['model']['schema'],_0x1997fa=_0x27b453['nodeAfter'];return _0x2d8835['isBlock'](_0x1997fa)&&!_0x2d8835['isLimit'](_0x1997fa)&&_0x2d8835['checkChild'](_0x1997fa,'$text')?{'type':'insertion','content':o(_0x1627c8,'*Insert:*\x20%0',_0xda920a['getItemLabel'](_0x1997fa,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25407f=this['editor'],_0x16c15a=_0x25407f['locale'];_0x25407f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x259328=>{if('formatBlock'!=_0x259328['type'])return;const {data:_0x2901a7}=_0x259328;return _0x2901a7&&'paragraph'==_0x2901a7['commandName']?{'type':'format','content':o(_0x16c15a,'*Change\x20to:*\x20%0',o(_0x16c15a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x246f01,{showActiveMarker:_0x559aae=!0x0}={}){return(_0x43b429,_0x19af68,_0x244910)=>{const _0x174da1=_0x246f01['plugins']['get']('TrackChangesEditing'),_0x1fa585=_0x19af68['markerRange']['start'],_0x36d649=_0x19af68['markerRange']['end'],_0x29abd5=_0x246f01['model']['schema'];if(!_0x1fa585['isTouching'](_0x36d649)||!_0x1fa585['nodeAfter'])return;const _0xc386c6=_0x1fa585['nodeAfter'];if(_0x29abd5['isBlock'](_0xc386c6)&&!_0x29abd5['isLimit'](_0xc386c6)&&_0x29abd5['checkChild'](_0xc386c6,'$text')){if(!_0x244910['consumable']['consume'](_0x19af68['markerRange'],_0x43b429['name']))return;const {authorId:_0x263f65}=_0x174da1['_splitMarkerName'](_0x19af68['markerName']),_0x177571=_0x244910['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x263f65}),_0x2aece5=_0x244910['mapper']['toViewPosition'](_0x36d649);_0x559aae&&_0x174da1['activeMarkers']['includes'](_0x19af68['markerName'])&&_0x244910['writer']['addClass']('ck-suggestion-marker--active',_0x177571),_0x244910['writer']['insert'](_0x2aece5,_0x177571),_0x244910['mapper']['bindElementToMarker'](_0x177571,_0x19af68['markerName']);}};}class yt extends _0x336f7e{['afterInit'](){const _0x2ec424=this['editor'];if(!_0x2ec424['plugins']['has']('RemoveFormatEditing'))return;_0x2ec424['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b1772=this['editor'];_0x2b1772['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c723b=>{if('formatBlock'!=_0x4c723b['type']&&'formatInline'!=_0x4c723b['type'])return;const {data:_0x3f9882}=_0x4c723b;return _0x3f9882&&'removeFormat'==_0x3f9882['commandName']?{'type':'format','content':o(_0x2b1772['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x336f7e{['afterInit'](){const _0x3330ff=this['editor'];if(!_0x3330ff['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x47d1cc=_0x3330ff['plugins']['get']('TrackChangesEditing');_0x47d1cc['enableCommand']('goToPreviousRestrictedEditingException'),_0x47d1cc['enableCommand']('goToNextRestrictedEditingException');const _0x116999=_0x3330ff['plugins']['get']('RestrictedEditingModeEditing');_0x116999['enableCommand']('trackChanges'),_0x116999['enableCommand']('acceptSuggestion'),_0x116999['enableCommand']('discardSuggestion'),_0x116999['enableCommand']('acceptAllSuggestions'),_0x116999['enableCommand']('discardAllSuggestions'),_0x116999['enableCommand']('acceptSelectedSuggestions'),_0x116999['enableCommand']('discardSelectedSuggestions');}}class St extends _0x336f7e{static get['requires'](){return[_0x538d8a];}['init'](){const _0x15e9e7=this['editor'],_0x40558b=_0x15e9e7['plugins']['get']('TrackChangesEditing');_0x40558b['enableCommand']('shiftEnter'),_0x15e9e7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x15e9e7),{'priority':'high'}),_0x15e9e7['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x15e9e7),{'priority':'high'}),_0x15e9e7['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x24a08c,_0x30428c,_0x28bfc0)=>{_0x28bfc0['options']['showSuggestionHighlights']&&ke(_0x15e9e7,{'showActiveMarker':!0x1})(_0x24a08c,_0x30428c,_0x28bfc0);}),_0x40558b['descriptionFactory']['registerElementLabel']('softBreak',_0x2e2ca2=>o(_0x15e9e7['locale'],'ELEMENT_LINE_BREAK',_0x2e2ca2));}}function ke(_0x36876f,{showActiveMarker:_0x2fffff=!0x0}={}){return(_0xae99d5,_0x16b4f9,_0x314d2d)=>{const _0x73a8b5=_0x36876f['plugins']['get']('TrackChangesEditing');if(!_0x314d2d['consumable']['test'](_0x16b4f9['markerRange'],_0xae99d5['name']))return;const _0x550752=_0x36876f['model'];for(const _0x241195 of _0x16b4f9['markerRange']['getItems']()){if(!_0x241195['is']('element','softBreak'))continue;const _0x307c4b='deletion'==_0x16b4f9['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x3a200a}=_0x73a8b5['_splitMarkerName'](_0x16b4f9['markerName']),_0x4f9d4b=_0x314d2d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x307c4b,'data-author-id':_0x3a200a}),_0x3fe10f=_0x314d2d['mapper']['toViewPosition'](_0x550752['createPositionBefore'](_0x241195));_0x2fffff&&_0x73a8b5['activeMarkers']['includes'](_0x16b4f9['markerName'])&&_0x314d2d['writer']['addClass']('ck-suggestion-marker--active',_0x4f9d4b),_0x314d2d['writer']['insert'](_0x3fe10f,_0x4f9d4b),_0x314d2d['mapper']['bindElementToMarker'](_0x4f9d4b,_0x16b4f9['markerName']);}};}class At extends _0x336f7e{['afterInit'](){const _0x23fe05=this['editor'],_0x3970e7=_0x23fe05['model'],_0x2dedff=_0x23fe05['locale'];if(!_0x23fe05['plugins']['has']('StandardEditingModeEditing'))return;const _0x24ea1b=_0x23fe05['plugins']['get']('TrackChangesEditing'),_0x3706ad='restrictedEditingException',_0x2394ea=_0x23fe05['commands']['get'](_0x3706ad);_0x24ea1b['enableCommand'](_0x3706ad,(_0x4e8302,_0x200e58={})=>{const _0x33e165=_0x3970e7['document']['selection'];if(_0x33e165['isCollapsed'])return void _0x4e8302(_0x200e58);const _0x876339=void 0x0!==_0x200e58['forceValue']?_0x200e58['forceValue']:!_0x2394ea['value'];_0x3970e7['change'](()=>{const _0x1c92d5=Array['from'](_0x33e165['getRanges']());for(const _0x4d924b of _0x1c92d5){const _0x2702c0=_0x876339?[_0x4d924b]:io(_0x3706ad,_0x4d924b,_0x3970e7);for(const _0x4b52af of _0x2702c0)_0x24ea1b['markInlineFormat'](_0x4b52af,{'commandName':_0x3706ad,'commandParams':[{'forceValue':_0x876339}]});}});}),_0x24ea1b['descriptionFactory']['registerDescriptionCallback'](_0x94a64f=>{if('formatBlock'!=_0x94a64f['type']&&'formatInline'!=_0x94a64f['type'])return;const {data:_0x1f7e2f}=_0x94a64f;return _0x1f7e2f&&_0x1f7e2f['commandName']==_0x3706ad?_0x1f7e2f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2dedff,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2dedff,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x336f7e{['afterInit'](){const _0x23551c=this['editor'];if(!_0x23551c['plugins']['has']('Style')||!_0x23551c['plugins']['has']('DataSchema'))return;const _0x382033=_0x23551c['plugins']['get']('TrackChangesEditing'),_0x5f07f6=_0x23551c['locale'],_0x541914=_0x23551c['config']['get']('style')||{},_0x18f641=_0x23551c['plugins']['get']('GeneralHtmlSupport'),_0x222c70=_0x23551c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x23551c['plugins']['get']('DataSchema'),_0x541914['definitions']);_0x382033['enableDefaultAttributesIntegration']('style');const _0x3bb932=new Set();for(const _0x4a7a7b of _0x222c70['block']){const _0x468244=_0x18f641['getGhsAttributeNameForElement'](_0x4a7a7b['element']);_0x3bb932['add'](_0x468244);}const _0x2674bb=new Set();for(const _0x30e3cf of _0x222c70['inline']){const _0xcdd67e=_0x18f641['getGhsAttributeNameForElement'](_0x30e3cf['element']);_0x2674bb['add'](_0xcdd67e);for(const _0x438f06 of _0x30e3cf['ghsAttributes'])_0x2674bb['add'](_0x438f06);}for(const _0x53146c of _0x3bb932)_0x382033['registerBlockAttribute'](_0x53146c),_0x382033['descriptionFactory']['registerAttributeLabel'](_0x53146c,o(_0x5f07f6,'FORMAT_STYLE'));for(const _0x5599a7 of _0x2674bb)_0x382033['registerInlineAttribute'](_0x5599a7),_0x382033['descriptionFactory']['registerAttributeLabel'](_0x5599a7,o(_0x5f07f6,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7fe289=this['editor'],_0x1ceac6=_0x7fe289['locale'];_0x7fe289['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18689e=>{if('formatBlock'!=_0x18689e['type']&&'formatInline'!=_0x18689e['type'])return;const {data:_0x24524a}=_0x18689e;return _0x24524a&&'style'===_0x24524a['commandName']?_0x24524a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1ceac6,'*Set\x20format:*\x20%0',_0x24524a['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1ceac6,'*Remove\x20format:*\x20%0',_0x24524a['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x336f7e{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xce6702){super(_0xce6702),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2fbd28=this['editor'],_0x19a9e9=_0x2fbd28['model']['document']['selection'];if(!_0x2fbd28['plugins']['has']('TableEditing'))return;const _0x549755=_0x2fbd28['locale'],_0x477cf4=_0x2fbd28['plugins']['get']('TrackChangesEditing'),_0x8bb822=_0x2fbd28['plugins']['get']('TableUtils');_0x477cf4['descriptionFactory']['registerElementLabel']('table',_0x55519a=>o(_0x549755,'ELEMENT_TABLE',_0x55519a)),this['_setupColumnsRowsFixing'](),_0x477cf4['enableCommand']('insertTable'),_0x477cf4['enableCommand']('selectTableRow'),_0x477cf4['enableCommand']('selectTableColumn');for(const _0x330816 of['insertTableRowAbove','insertTableRowBelow']){const _0x2afa5b=_0x2fbd28['commands']['get'](_0x330816);_0x477cf4['enableCommand'](_0x330816,_0x2e3d0a=>{_0x2fbd28['model']['change'](_0x4c057e=>{_0x2e3d0a();const _0x58a611='above'===_0x2afa5b['order'],_0x4bb8df=_0x8bb822['getSelectionAffectedTableCells'](_0x19a9e9),_0x31cf7a=_0x8bb822['getRowIndexes'](_0x4bb8df),_0x578930=_0x58a611?_0x31cf7a['first']-0x1:_0x31cf7a['last']+0x1,_0x27e13b=_0x4bb8df[0x0]['findAncestor']('table'),_0x1fc1db=_0x8bb822['createTableWalker'](_0x27e13b,{'startRow':_0x578930,'endRow':_0x578930}),_0x563567=Array['from'](_0x1fc1db)['map'](_0x379aa0=>_0x4c057e['createRangeOn'](_0x379aa0['cell']));_0x477cf4['markMultiRangeInsertion'](_0x563567,'tableRow');});});}for(const _0x1bc8a0 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5d2551=_0x2fbd28['commands']['get'](_0x1bc8a0);_0x477cf4['enableCommand'](_0x1bc8a0,_0x58ff02=>{_0x2fbd28['model']['change'](_0x27ef6e=>{_0x58ff02();const _0x14b954='left'===_0x5d2551['order'],_0x11316d=_0x8bb822['getSelectionAffectedTableCells'](_0x19a9e9),_0x41a2dd=_0x8bb822['getColumnIndexes'](_0x11316d),_0x23e62e=_0x14b954?_0x41a2dd['first']-0x1:_0x41a2dd['last']+0x1,_0x41fe11=_0x11316d[0x0]['findAncestor']('table'),_0x402164=_0x8bb822['createTableWalker'](_0x41fe11,{'startRow':0x0,'column':_0x23e62e,'includeAllSlots':!0x1}),_0x487787=Array['from'](_0x402164)['map'](_0x5ab9ed=>_0x27ef6e['createRangeOn'](_0x5ab9ed['cell']));_0x477cf4['markMultiRangeInsertion'](_0x487787,'tableColumn');});});}for(const _0x24d94a of['removeTableRow','removeTableColumn']){const _0x22ccbb=_0x24d94a['substr'](0xb),_0x902d34=_0x22ccbb['toLowerCase'](),_0x254ee1=_0x902d34['substr'](0x0,0x3)+'span',_0x19e20a='table'+_0x22ccbb,_0x667527='min'+_0x22ccbb,_0x12d594='max'+_0x22ccbb;_0x477cf4['enableCommand'](_0x24d94a,()=>{_0x2fbd28['model']['change'](_0x2e9ec9=>{const _0x27fe48=_0x8bb822['getSelectionAffectedTableCells'](_0x19a9e9),_0x1612a0=_0x27fe48[0x0]['findAncestor']('table');let _0x50ce3e;if('removeTableRow'==_0x24d94a){const _0x36561e=_0x8bb822['getRowIndexes'](_0x27fe48);_0x50ce3e={'startRow':_0x36561e['first'],'endRow':_0x36561e['last'],'includeAllSlots':!0x0};}else{const _0x590ec2=_0x8bb822['getColumnIndexes'](_0x27fe48);_0x50ce3e={'startColumn':_0x590ec2['first'],'endColumn':_0x590ec2['last'],'includeAllSlots':!0x0};}const _0x330859=_0x8bb822['createTableWalker'](_0x1612a0,_0x50ce3e),_0x523559=Array['from'](_0x330859)['map'](({cell:_0x776093})=>_0x776093),_0x4331c4=Re(_0x523559['filter'](_0x284847=>_0x284847['hasAttribute'](_0x254ee1))),_0x4e86b0=Re(_0x523559['filter'](_0x3cd7a6=>!_0x3cd7a6['hasAttribute'](_0x254ee1)))['map'](_0x2cb152=>_0x2e9ec9['createRangeOn'](_0x2cb152)),_0x149b3f=_0x477cf4['markMultiRangeDeletion'](_0x4e86b0,_0x19e20a);if(_0x149b3f&&('tableRow'==_0x149b3f['subType']||'tableColumn'==_0x149b3f['subType'])){const _0x2df08a=this['_getSuggestionCoords'](_0x149b3f);for(const _0x51348b of _0x4331c4){const _0x22a5f8=_0x2e9ec9['createRangeOn'](_0x51348b),_0x23f69f=_0x8bb822['getCellLocation'](_0x51348b),_0x3eb7e7=_0x51348b['getAttribute'](_0x254ee1)-0x1,_0xb58c1b=_0x2df08a[_0x667527],_0x50c31e=_0x2df08a[_0x12d594];_0xb58c1b<=_0x23f69f[_0x902d34]&&_0x23f69f[_0x902d34]+_0x3eb7e7<=_0x50c31e&&_0x149b3f['addRange'](_0x22a5f8);}}});});}function _0x477c12(_0x332528){const _0x35031a=Array['from'](_0x19a9e9['getRanges']())['map'](_0x18e070=>_0x252b19['fromRange'](_0x18e070));_0x2fbd28['model']['change'](_0x4b0ef0=>{const _0x2a67ff=_0x4b0ef0['batch'];_0x332528=_0x332528['filter'](_0x53a4cf=>'$graveyard'!=_0x53a4cf['root']['rootName']),_0x4b0ef0['setSelection'](_0x332528),_0x2fbd28['commands']['get']('removeTableRow')['refresh'](),_0x2fbd28['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2fbd28['model']['enqueueChange'](()=>{_0x2fbd28['model']['enqueueChange'](_0x2a67ff,_0x1e41a5=>{const _0x56188a=_0x35031a['filter'](_0x33caeb=>'$graveyard'!=_0x33caeb['root']['rootName']);_0x56188a['length']>0x0&&_0x1e41a5['setSelection'](_0x56188a);for(const _0x44f0a6 of _0x35031a)_0x44f0a6['detach']();});});});}function _0x5d168c(_0x4304b9){_0x2fbd28['model']['change'](_0x1f8a64=>{const _0x5eae28=Array['from'](_0x19a9e9['getRanges']())['map'](_0x166263=>_0x252b19['fromRange'](_0x166263)),_0x1166bf=[];for(const _0x3196c3 of _0x4304b9)for(const _0x27bb25 of _0x3196c3['getItems']({'shallow':!0x0}))_0x1166bf['push'](_0x27bb25);for(const _0xcbfb61 of _0x1166bf)'$graveyard'!=_0xcbfb61['root']['rootName']&&(_0x1f8a64['setSelection'](_0x1f8a64['createPositionAt'](_0xcbfb61,0x0)),_0x2fbd28['commands']['get']('removeTableColumn')['refresh'](),_0x2fbd28['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4b24de=_0x5eae28['filter'](_0x228dcc=>'$graveyard'!=_0x228dcc['root']['rootName']);_0x4b24de['length']>0x0&&_0x1f8a64['setSelection'](_0x4b24de);for(const _0x36f96a of _0x5eae28)_0x36f96a['detach']();});}function _0x3f0c5a(_0x3840da,_0x3d1e0e){return _0x3d1e0e['every'](_0x47ea6d=>_0x3840da['some'](_0x5cb8b8=>_0x5cb8b8['end']['isEqual'](_0x47ea6d['start'])||_0x47ea6d['end']['isEqual'](_0x5cb8b8['start'])));}function _0x4a40af(_0xf2d059,_0x14deed){return!_0xf2d059['some'](_0x17f476=>_0x14deed['some'](_0x3cc935=>_0x17f476['isIntersecting'](_0x3cc935)))&&_0xf2d059['some'](_0x4f5981=>_0x14deed['some'](_0x41ef76=>_0x4f5981['end']['isTouching'](_0x41ef76['start'])));}_0x2fbd28['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x42c957,_0x1e97af,_0x3e9989)=>{if(!_0x3e9989['options']['showSuggestionHighlights'])return;const _0x363235=_0x1e97af['item'];if(!_0x363235)return;const _0x53fc98=_0x3e9989['mapper']['toViewElement'](_0x363235);function _0x398b4a(_0x52f1b5){return Array['isArray'](_0x52f1b5)?_0x52f1b5:[_0x52f1b5];}_0x53fc98&&'tableCell'===_0x363235['name']&&_0x21fc5b(_0x53fc98,_0x3e9989['writer'],(_0xdea776,_0x57daad,_0x39e9ef)=>_0x39e9ef['addClass'](_0x398b4a(_0x57daad['classes']),_0xdea776),(_0x376738,_0x4bcb8b,_0x105e9f)=>_0x105e9f['removeClass'](_0x398b4a(_0x4bcb8b['classes']),_0x376738));},{'priority':'highest'}),_0x477cf4['descriptionFactory']['registerDescriptionCallback'](_0x5a4c2b=>{if('insertion'!=_0x5a4c2b['type']&&'deletion'!=_0x5a4c2b['type'])return;const _0x47cf4f=_0x5a4c2b['getContainedElement']();if(null!=_0x47cf4f&&_0x47cf4f['is']('element','table')){if('insertion'==_0x5a4c2b['type']){const _0x1edce4=_0x5a4c2b['getItems']()['filter'](_0x407881=>_0x407881['is']('$textProxy'))['map'](_0x286ea6=>_0x286ea6['data']);if(_0x1edce4['length'])return{'type':'insertion','content':o(_0x549755,'*Insert:*\x20%0',o(_0x549755,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1edce4['join']('\x20')+'\x22'))};}if('deletion'==_0x5a4c2b['type']){const _0x5d9c16=_0x5a4c2b['getItems']()['filter'](_0x1316a2=>_0x1316a2['is']('$textProxy'))['map'](_0x9d6773=>_0x9d6773['data']);if(_0x5d9c16['length'])return{'type':'deletion','content':o(_0x549755,'*Remove:*\x20%0',o(_0x549755,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5d9c16['join']('\x20')+'\x22'))};}}}),_0x477cf4['descriptionFactory']['registerDescriptionCallback'](_0x46bc4e=>{if('tableRow'==_0x46bc4e['subType']){const _0xfd1e57=_0x46bc4e['getItems']()['filter'](_0x4328f7=>_0x4328f7['is']('$textProxy'))['map'](_0x3c9568=>_0x3c9568['data']),_0x3cb14d=this['_getSuggestionCoords'](_0x46bc4e),_0x19ed5e=_0x3cb14d['maxRow']-_0x3cb14d['minRow']+0x1;if('insertion'==_0x46bc4e['type'])return _0xfd1e57['length']?{'type':'insertion','content':o(_0x549755,'*Insert:*\x20%0',o(_0x549755,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x19ed5e,'\x22'+_0xfd1e57['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x549755,'*Insert:*\x20%0',o(_0x549755,'ELEMENT_TABLE_ROW',_0x19ed5e))};if('deletion'==_0x46bc4e['type'])return _0xfd1e57['length']?{'type':'deletion','content':o(_0x549755,'*Remove:*\x20%0',o(_0x549755,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x19ed5e,'\x22'+_0xfd1e57['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x549755,'*Remove:*\x20%0',o(_0x549755,'ELEMENT_TABLE_ROW',_0x19ed5e))};}if('tableColumn'==_0x46bc4e['subType']){const _0x16e5a7=_0x46bc4e['getItems']()['filter'](_0x385320=>_0x385320['is']('$textProxy'))['map'](_0xe2f8a6=>_0xe2f8a6['data']),_0x1c8b84=this['_getSuggestionCoords'](_0x46bc4e),_0x5afb1a=_0x1c8b84['maxColumn']-_0x1c8b84['minColumn']+0x1;if('insertion'==_0x46bc4e['type'])return _0x16e5a7['length']?{'type':'insertion','content':o(_0x549755,'*Insert:*\x20%0',o(_0x549755,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5afb1a,'\x22'+_0x16e5a7['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x549755,'*Insert:*\x20%0',o(_0x549755,'ELEMENT_TABLE_COLUMN',_0x5afb1a))};if('deletion'==_0x46bc4e['type'])return _0x16e5a7['length']?{'type':'deletion','content':o(_0x549755,'*Remove:*\x20%0',o(_0x549755,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5afb1a,'\x22'+_0x16e5a7['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x549755,'*Remove:*\x20%0',o(_0x549755,'ELEMENT_TABLE_COLUMN',_0x5afb1a))};}}),_0x477cf4['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x477c12),_0x477cf4['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x477c12),_0x477cf4['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5d168c),_0x477cf4['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5d168c),_0x477cf4['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3f0c5a),_0x477cf4['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3f0c5a),_0x477cf4['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4a40af),_0x477cf4['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4a40af);}['_acceptFormatSuggestionCallbackFactory'](){const _0x339811=this['editor'],_0x6e7dd2=_0x339811['model']['document']['selection'];return(_0x3fa7ba,_0x223413)=>{_0x339811['model']['change'](_0x4a8215=>{const {commandName:_0x314134,commandParams:_0x296a51}=_0x223413;let _0x8d8731=_0x3fa7ba[0x0]['end']['nodeBefore'];_0x296a51&&_0x296a51[0x0]&&!0x1===_0x296a51[0x0]['forceValue']&&(_0x8d8731=_0x3fa7ba[0x0]['start']['nodeAfter']);const _0x344c1f=_0x4a8215['createRangeIn'](_0x8d8731);if('$graveyard'==_0x344c1f['root']['rootName'])return;const _0x21e473=Array['from'](_0x6e7dd2['getRanges']())['map'](_0x1d9c2c=>_0x252b19['fromRange'](_0x1d9c2c));_0x4a8215['setSelection'](_0x344c1f),_0x339811['commands']['get'](_0x314134)['refresh'](),_0x296a51['push']({'forceDefaultExecution':!0x0}),_0x339811['execute'](_0x314134,..._0x296a51);const _0x203e19=_0x21e473['filter'](_0x40fa8d=>'$graveyard'!=_0x40fa8d['root']['rootName']);_0x203e19['length']>0x0&&_0x4a8215['setSelection'](_0x203e19);for(const _0xf575b7 of _0x21e473)_0xf575b7['detach']();});};}['_getCoordsForCells'](_0x1774e8){const _0x44bcf3=this['editor']['plugins']['get']('TableUtils');let _0x1a6d34=Number['MAX_SAFE_INTEGER'],_0x5ca4dc=Number['MIN_SAFE_INTEGER'],_0x3207ee=Number['MAX_SAFE_INTEGER'],_0x594aad=Number['MIN_SAFE_INTEGER'];for(const _0x55de21 of _0x1774e8){if('$graveyard'==_0x55de21['root']['rootName'])continue;const {row:_0x38477e,column:_0x285707}=_0x44bcf3['getCellLocation'](_0x55de21),_0x197430=_0x55de21['hasAttribute']('rowspan')?_0x55de21['getAttribute']('rowspan')-0x1:0x0,_0xa8da9f=_0x55de21['hasAttribute']('colspan')?_0x55de21['getAttribute']('colspan')-0x1:0x0;_0x1a6d34=_0x38477e<_0x1a6d34?_0x38477e:_0x1a6d34,_0x5ca4dc=_0x38477e+_0x197430>_0x5ca4dc?_0x38477e+_0x197430:_0x5ca4dc,_0x3207ee=_0x285707<_0x3207ee?_0x285707:_0x3207ee,_0x594aad=_0x285707+_0xa8da9f>_0x594aad?_0x285707+_0xa8da9f:_0x594aad;}return{'minRow':_0x1a6d34,'maxRow':_0x5ca4dc,'minColumn':_0x3207ee,'maxColumn':_0x594aad};}['_setupColumnsRowsFixing'](){const _0x4b9f23=this['editor'],_0xd2e2eb=_0x4b9f23['plugins']['get']('TrackChangesEditing'),_0x2ca848=_0x4b9f23['plugins']['get']('TableUtils');_0x4b9f23['model']['document']['on']('change:data',()=>{const _0xff873f=Array['from'](_0x4b9f23['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4c2df2,data:_0xcbf3c0}of _0xff873f){const {group:_0x5ebed8,id:_0x121cbf,subType:_0x2d5971}=_0xd2e2eb['_splitMarkerName'](_0x4c2df2);if('suggestion'!=_0x5ebed8)continue;if(null!=_0xcbf3c0['oldRange'])continue;const _0x1f06e0=_0xd2e2eb['getSuggestion'](_0x121cbf);this['_tablePostFixingSubtypes']['includes'](_0x2d5971)&&this['_tableSuggestions']['add'](_0x1f06e0);}},{'priority':'low'});const _0x3fd642=(_0x38af83,_0x1f6421)=>{let _0x2edfab=!0x1;const _0x5899a1=_0x1f6421['createRangeOn'](_0x38af83),_0xbac0da=_0x38af83['findAncestor']('table'),_0x5a3763=_0x2ca848['getCellLocation'](_0x38af83);for(const _0x3a85b1 of this['_tableSuggestions']){const _0x3ac0e0=_0x3a85b1['subType'],_0xf7c89e=_0x3ac0e0['startsWith']('tablePaste'),_0x30e122=_0x3ac0e0['substr'](_0xf7c89e?0xa:0x5),_0x26fa2e=_0x30e122['toLowerCase'](),_0x374aeb=_0x26fa2e['substr'](0x0,0x3)+'span',_0x289438='min'+_0x30e122,_0x11cff4='max'+_0x30e122;if(!_0x3a85b1['isInContent'])continue;if(_0xbac0da!=_0x3a85b1['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3a85b1['isIntersectingWithRange'](_0x5899a1))continue;const _0x44ac24=_0x38af83['hasAttribute'](_0x374aeb)?_0x38af83['getAttribute'](_0x374aeb)-0x1:0x0,_0x577785=this['_getSuggestionCoords'](_0x3a85b1),_0x5cdbd9=_0x577785[_0x289438],_0x190327=_0x577785[_0x11cff4];_0x5cdbd9<=_0x5a3763[_0x26fa2e]&&_0x5a3763[_0x26fa2e]+_0x44ac24<=_0x190327&&(_0x3a85b1['addRange'](_0x5899a1),_0x2edfab=!0x0);}return _0x2edfab;};_0x4b9f23['model']['document']['registerPostFixer'](_0x43925e=>{let _0x378734=!0x1;for(const _0x3059ef of _0x4b9f23['model']['document']['differ']['getChanges']())if('insert'==_0x3059ef['type']){if('tableRow'==_0x3059ef['name']){for(const _0x396030 of _0x3059ef['position']['nodeAfter']['getChildren']())_0x378734=_0x378734||_0x3fd642(_0x396030,_0x43925e);}else'tableCell'==_0x3059ef['name']&&(_0x378734=_0x378734||_0x3fd642(_0x3059ef['position']['nodeAfter'],_0x43925e));}return _0x378734;});}['_getSuggestionCoords'](_0x36f5c3){return this['_getCoordsForCells'](_0x36f5c3['getRanges']()['map'](_0x1769a0=>_0x1769a0['start']['nodeAfter']));}}function Re(_0x5079cb){return Array['from'](new Set(_0x5079cb)['values']());}class _t extends _0x336f7e{static get['requires'](){return[vt];}['afterInit'](){const _0x2dca5f=this['editor'],_0x87961b=_0x2dca5f['model']['document']['selection'],_0x33ad03=_0x2dca5f['locale'];if(!_0x2dca5f['plugins']['has']('TableEditing'))return;const _0x45924f=_0x2dca5f['plugins']['get']('TrackChangesEditing'),_0x45023d=_0x2dca5f['plugins']['get']('TableUtils'),_0x2757b9=_0x2dca5f['plugins']['get'](vt);_0x2757b9['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x45924f['enableCommand']('mergeTableCells',()=>{const _0x67f62c=_0x45023d['getSelectionAffectedTableCells'](_0x2dca5f['model']['document']['selection']);_0x2dca5f['model']['change'](()=>{_0x45924f['markMultiRangeBlockFormat'](_0x67f62c,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2dca5f['commands']['get']('mergeTableCells')['on']('execute',(_0x3b475,_0xec2314)=>{_0x2dca5f['commands']['get']('trackChanges')['value']&&(_0xec2314['length']>0x0&&_0xec2314[_0xec2314['length']-0x1]&&_0xec2314[_0xec2314['length']-0x1]['forceDefaultExecution']||_0x45924f['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3b475['stop']());},{'priority':'highest'});for(const _0x1f1e43 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x48d6b0=_0x2dca5f['commands']['get'](_0x1f1e43);_0x45924f['enableCommand'](_0x1f1e43,()=>{const _0x25b158=_0x2dca5f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x392d0e=>_0x392d0e['is']('element','tableCell')),_0xc3102e=_0x48d6b0['value'];_0x2dca5f['model']['change'](()=>{_0x45924f['markMultiRangeBlockFormat']([_0x25b158,_0xc3102e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5c690c of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3021ab=_0x2dca5f['commands']['get'](_0x5c690c);_0x45924f['enableCommand'](_0x5c690c,()=>{const _0x17e207=_0x45023d['getSelectionAffectedTableCells'](_0x2dca5f['model']['document']['selection'])[0x0],_0x598f92=_0x17e207['findAncestor']('table'),{column:_0x2fa172,row:_0x83f7b2}=_0x45023d['getCellLocation'](_0x17e207);let _0x506217=[];if('horizontally'==_0x3021ab['direction']){const _0xfc7429=_0x45023d['createTableWalker'](_0x598f92,{'startRow':_0x83f7b2,'endRow':_0x83f7b2,'includeAllSlots':!0x0});_0x506217=Array['from'](_0xfc7429)['map'](_0x211e72=>_0x211e72['cell']);}else{const _0x1610e0=_0x45023d['createTableWalker'](_0x598f92,{'column':_0x2fa172,'includeAllSlots':!0x0});_0x506217=Array['from'](_0x1610e0)['map'](_0x1d07e8=>_0x1d07e8['cell']);}_0x2dca5f['model']['change'](_0x816a48=>{_0x45924f['markBlockFormat'](_0x816a48['createRangeOn'](_0x17e207),{'commandName':_0x5c690c,'commandParams':[]},_0x506217,_0x5c690c);});});}_0x45924f['descriptionFactory']['registerDescriptionCallback'](_0x34baad=>{if('formatBlock'!=_0x34baad['type']&&'formatInline'!=_0x34baad['type'])return;const {data:_0x21770e}=_0x34baad;return _0x21770e&&'mergeTableCells'==_0x21770e['commandName']?{'type':'format','content':o(_0x33ad03,'*Merge\x20cells*')}:void 0x0;}),_0x45924f['descriptionFactory']['registerDescriptionCallback'](_0x4f762d=>{if('formatBlock'!=_0x4f762d['type']&&'formatInline'!=_0x4f762d['type'])return;const {data:_0x587c13}=_0x4f762d;return _0x587c13?'splitTableCellVertically'==_0x587c13['commandName']?{'type':'format','content':o(_0x33ad03,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x587c13['commandName']?{'type':'format','content':o(_0x33ad03,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x57cb82=_0x2757b9['_acceptFormatSuggestionCallbackFactory']();for(const _0x3e4035 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x45924f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3e4035,'accept',_0x57cb82);for(const _0x5762c7 of['splitTableCellVertically','splitTableCellHorizontally'])_0x45924f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5762c7,'accept',_0x57cb82);_0x45924f['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2f301e=>{_0x2dca5f['model']['change'](_0xc7de7c=>{const _0x10dd2c=Array['from'](_0x87961b['getRanges']())['map'](_0x2ecf75=>_0x252b19['fromRange'](_0x2ecf75));_0xc7de7c['setSelection'](_0x2f301e),_0x2dca5f['commands']['get']('mergeTableCells')['refresh'](),_0x2dca5f['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x31ebed=_0x10dd2c['filter'](_0x54a83e=>'$graveyard'!=_0x54a83e['root']['rootName']);_0x31ebed['length']>0x0&&_0xc7de7c['setSelection'](_0x31ebed);for(const _0x5abef2 of _0x10dd2c)_0x5abef2['detach']();});});for(const _0x276cbb of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3da449=_0x2dca5f['commands']['get'](_0x276cbb);_0x3da449['on']('set:isEnabled',(_0x4d7f44,_0x52840b,_0x7243a)=>{if(_0x7243a){const _0x1d530d=_0x2dca5f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1428d6=>_0x1428d6['is']('element','tableCell'));this['_areMergableCells'](_0x3da449['value'],_0x1d530d)||(_0x4d7f44['return']=!0x1,_0x4d7f44['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5f457e=this['editor']['commands']['get']('mergeTableCells'),_0x245f86=this['editor']['plugins']['get']('TableUtils');if(!_0x5f457e['isEnabled'])return!0x1;const _0x236c26=_0x245f86['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x12768d of _0x236c26)for(const _0x3d4591 of _0x236c26)if(_0x12768d!=_0x3d4591&&!this['_areMergableCells'](_0x12768d,_0x3d4591))return!0x1;return!0x0;}['_areMergableCells'](_0x5dad73,_0x3137ed){const _0x19b4f0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x323613=this['editor']['model']['createRangeOn'](_0x5dad73),_0xfb0a1b=this['editor']['model']['createRangeOn'](_0x3137ed),_0x106599=new Set(),_0x19a9c8=new Set();for(const _0x4c97ac of _0x19b4f0['getSuggestions']())if(('insertion'==_0x4c97ac['type']||'deletion'==_0x4c97ac['type']||'mergeTableCells'==_0x4c97ac['subType'])&&_0x4c97ac['isInContent']){for(const _0x3ac7ec of _0x4c97ac['getRanges']())_0x3ac7ec['containsRange'](_0x323613,!0x0)&&_0x106599['add'](_0x4c97ac['type']+':'+_0x4c97ac['author']['id']),_0x3ac7ec['containsRange'](_0xfb0a1b,!0x0)&&_0x19a9c8['add'](_0x4c97ac['type']+':'+_0x4c97ac['author']['id']);}if(_0x106599['size']!=_0x19a9c8['size'])return!0x1;for(const _0x254a3c of _0x106599)if(!_0x19a9c8['has'](_0x254a3c))return!0x1;return!0x0;}}class Ct extends _0x336f7e{static get['requires'](){return[vt];}['afterInit'](){const _0x3eb58d=this['editor'];if(!_0x3eb58d['plugins']['has']('TableEditing'))return;const _0x2c7609=_0x3eb58d['locale'],_0x597c0f=_0x3eb58d['plugins']['get']('TrackChangesEditing');_0x597c0f['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x597c0f['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x597c0f['registerBlockAttribute']('headingRows'),_0x597c0f['registerBlockAttribute']('headingColumns'),_0x597c0f['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2c7609,'FORMAT_HEADER_ROW')),_0x597c0f['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2c7609,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x43c786=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5abe23=this['editor']['plugins']['get']('TableUtils'),_0x5adbbd=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x2a1c21({showActiveMarker:_0x23a1dc=!0x0,setDataAttribute:_0x11b1f8=!0x0}={}){return(_0x2b3327,_0xe6bb00,_0x49aa8d)=>{const {type:_0x4e5ba5,id:_0x2baaef}=_0x43c786['_splitMarkerName'](_0xe6bb00['markerName']),_0x547ba5=_0x43c786['getSuggestion'](_0x2baaef),_0x5f5b38=_0x547ba5['data'];if('formatBlock'!=_0x547ba5['type']||!_0x5f5b38||'setTableColumnHeader'!=_0x5f5b38['commandName'])return;if(_0xe6bb00['item'])return void _0x2b3327['stop']();if(!_0x49aa8d['consumable']['consume'](_0xe6bb00['markerRange'],_0x2b3327['name']))return;const _0x57045f=_0xe6bb00['markerRange']['start']['nodeAfter'],_0x7d713c=_0xe6bb00['markerRange']['end']['nodeBefore'],_0x42bf04=_0x57045f['parent']['parent'],{column:_0x3ac54e}=_0x5abe23['getCellLocation'](_0x57045f),{column:_0x23769b}=_0x5abe23['getCellLocation'](_0x7d713c);for(let _0x565560=_0x3ac54e;_0x565560<=_0x23769b;_0x565560++){const _0x78e782=_0x5abe23['createTableWalker'](_0x42bf04,{'column':_0x565560,'includeAllSlots':!0x1});for(const _0x32e50c of _0x78e782){const _0x7eb9f5=_0x32e50c['cell'],_0x57a557=_0x49aa8d['mapper']['toViewElement'](_0x7eb9f5);_0x49aa8d['writer']['addClass']('ck-suggestion-marker-'+_0x4e5ba5,_0x57a557),_0x11b1f8&&_0x49aa8d['writer']['setAttribute']('data-suggestion',_0x2baaef,_0x57a557),_0x49aa8d['mapper']['bindElementToMarker'](_0x57a557,_0xe6bb00['markerName']),_0x23a1dc&&(_0x43c786['activeMarkers']['includes'](_0xe6bb00['markerName'])?_0x49aa8d['writer']['addClass']('ck-suggestion-marker--active',_0x57a557):_0x49aa8d['writer']['removeClass']('ck-suggestion-marker--active',_0x57a557));}}};}_0x43c786['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5adbbd),_0x43c786['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5adbbd),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2a1c21(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x569219,_0x443e21,_0x43ef06)=>{_0x43ef06['options']['showSuggestionHighlights']&&_0x2a1c21({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x569219,_0x443e21,_0x43ef06);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x381802,_0x516624,_0x40bbb3)=>{const {type:_0x2e3c05,id:_0x254a96}=_0x43c786['_splitMarkerName'](_0x516624['markerName']),_0x3f0a1c=_0x43c786['getSuggestion'](_0x254a96),_0x14b56d=_0x3f0a1c['data'];if('formatBlock'!=_0x3f0a1c['type']||!_0x14b56d||'setTableColumnHeader'!=_0x14b56d['commandName'])return;const _0x47cba1=_0x40bbb3['mapper']['markerNameToElements'](_0x516624['markerName']);if(_0x47cba1){for(const _0x5be0b4 of _0x47cba1)_0x40bbb3['writer']['removeClass']('ck-suggestion-marker-'+_0x2e3c05,_0x5be0b4),_0x40bbb3['writer']['removeClass']('ck-suggestion-marker--active',_0x5be0b4),_0x40bbb3['writer']['removeAttribute']('data-suggestion',_0x5be0b4),_0x40bbb3['mapper']['unbindElementFromMarkerName'](_0x5be0b4,_0x516624['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5fdad2=this['editor'],_0xa7a1b9=_0x5fdad2['locale'];function _0x35a9a6(_0x13699b){return{'type':'format','content':o(_0xa7a1b9,'*Format:*\x20%0',_0x13699b)};}_0x5fdad2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4298dd=>{if('formatBlock'!=_0x4298dd['type'])return;const {data:_0x4e85af}=_0x4298dd;if(_0x4e85af){if('setTableRowHeader'==_0x4e85af['commandName']){const _0x464b18=_0x4e85af['commandParams'][0x0]['forceValue'];return _0x35a9a6(o(_0xa7a1b9,_0x464b18?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4e85af['commandName']){const _0x547c4c=_0x4e85af['commandParams'][0x0]['forceValue'];return _0x35a9a6(o(_0xa7a1b9,_0x547c4c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0x137c89=>[_0x137c89,null]));class Nt extends _0x336f7e{static get['requires'](){return[vt];}['afterInit'](){const _0x2b0589=this['editor'];if(!_0x2b0589['plugins']['has']('TableClipboard'))return;const _0x349aeb=_0x2b0589['plugins']['get']('TrackChangesEditing'),_0x18e6d5=_0x2b0589['plugins']['get']('TableUtils'),_0x5b49d6=_0x2b0589['plugins']['get'](vt),_0x171078=_0x2b0589['plugins']['get']('TableClipboard');_0x5b49d6['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2b0589['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2b0589['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xe1046e=null;_0x2b0589['model']['on']('insertContent',(_0x394fd0,_0x22c257)=>{const [_0x2c7dda,_0x1e7ca8]=_0x22c257,_0x2db3fc=_0x22c257[_0x22c257['length']-0x1];_0x2db3fc&&_0x2db3fc['forceDefaultExecution']||_0x349aeb['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x201f44,_0x4e4543,_0x3637ea,_0x1f8955,_0x1ba74a){if(_0x4e4543&&!_0x4e4543['is']('documentSelection'))return!0x1;const _0x47b477=_0x1ba74a['getTableIfOnlyTableInContent'](_0x201f44,_0x3637ea);if(!_0x47b477||!Ae(_0x47b477,void 0x0,_0x1f8955))return!0x1;const _0x1ff856=_0x1f8955['getSelectionAffectedTableCells'](_0x3637ea['document']['selection']);if(!_0x1ff856['length'])return!0x1;const _0x47ba7c=_0x1ff856[0x0]['findAncestor']('table'),_0x2ae524=_0x1f8955['getRowIndexes'](_0x1ff856),_0x35d19f=_0x1f8955['getColumnIndexes'](_0x1ff856),_0x4edf89={'startRow':_0x2ae524['first'],'endRow':_0x2ae524['last'],'startColumn':_0x35d19f['first'],'endColumn':_0x35d19f['last']};return 0x1==_0x1ff856['length']&&(_0x4edf89['endRow']+=_0x1f8955['getRows'](_0x47b477)-0x1,_0x4edf89['endColumn']+=_0x1f8955['getColumns'](_0x47b477)-0x1),Ae(_0x47ba7c,_0x4edf89,_0x1f8955);}(_0x2c7dda,_0x1e7ca8,_0x2b0589['model'],_0x18e6d5,_0x171078)&&(_0x394fd0['stop'](),_0xe1046e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2b0589['model']['change'](()=>{_0x2b0589['model']['insertContent'](_0x22c257[0x0],_0x22c257[0x1],_0x22c257[0x2],{'forceDefaultExecution':!0x0});const _0x29bf30=_0x5a6ab6(),{rowInsertionRanges:_0x59d79b,columnInsertionRanges:_0x204bc1,insertionRanges:_0x5f2c8e,deletionRanges:_0x1f16e9,cells:_0x1ea60b}=_0xe1046e;_0x59d79b['length']&&_0x349aeb['markMultiRangeInsertion'](_0x59d79b,'tablePasteRow',{'tablePasteChainId':_0x29bf30}),_0x204bc1['length']&&_0x349aeb['markMultiRangeInsertion'](_0x204bc1,'tablePasteColumn',{'tablePasteChainId':_0x29bf30}),_0x5f2c8e['length']&&(_0x349aeb['markMultiRangeInsertion'](_0x5f2c8e,'tablePaste',{'tablePasteChainId':_0x29bf30,'skipNestingCheck':!0x0}),_0x5f2c8e['forEach'](_0x170af8=>_0x170af8['detach']?.())),_0x1f16e9['length']&&(_0x349aeb['markMultiRangeDeletion'](_0x1f16e9,'tablePaste',{'tablePasteChainId':_0x29bf30,'skipNestingCheck':!0x0}),_0x1f16e9['forEach'](_0x524770=>_0x524770['detach']?.()));const _0x40da42=_0x349aeb['markMultiRangeBlockFormat'](_0x1ea60b['map'](({element:_0x3484a1})=>_0x3484a1),{'formatGroupId':_0x5a6ab6()},[],'tablePasteCell',{'tablePasteChainId':_0x29bf30});if(_0x40da42){const _0x2fdaf9=_0x40da42['getMarkers'](),_0x1c63e0=[];for(const {element:_0x45a884,attributes:_0x4f0517}of _0x1ea60b){if(!_0x4f0517)continue;const _0x84ab9e=_0x2b0589['model']['createRangeOn'](_0x45a884),_0x583790=_0x2fdaf9['find'](_0x35174d=>_0x35174d['getRange']()['isEqual'](_0x84ab9e));_0x583790&&_0x1c63e0['push']([_0x583790['name'],_0x4f0517]);}_0x1c63e0['length']&&_0x40da42['setAttribute']('markerAttributes',Object['fromEntries'](_0x1c63e0));}_0xe1046e=null;}));},{'priority':_0x300b65['high']+0xa}),_0x2b0589['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x33485d,_0x110757)=>{const [_0x539513,_0x5b09de,,_0x3f052c]=_0x110757;if(!_0xe1046e)return;_0x33485d['stop']();const _0x28b751=_0x539513['cell'],_0x24d0ab=_0x5b09de,_0x48a71f=je(_0x28b751),_0x4d882f=je(_0x24d0ab);_0x33485d['return']=_0x28b751;let _0x24a731=null,_0x2e926c=null;if(_0x4d882f||_0x48a71f){if(_0x48a71f&&!_0x4d882f){_0x3f052c['remove'](_0x28b751['getChild'](0x0));for(const _0x19b48b of Array['from'](_0x24d0ab['getChildren']()))_0x3f052c['insert'](_0x19b48b,_0x28b751,'end');const _0x21ebea=_0xe1046e['rowInsertionIndexes']['includes'](_0x539513['row']),_0x237973=_0xe1046e['columnInsertionIndexes']['includes'](_0x539513['column']);_0x21ebea||_0x237973||(_0x24a731=_0x252b19['fromRange'](_0x3f052c['createRangeIn'](_0x28b751)));}else _0x4d882f&&!_0x48a71f&&(_0x2e926c=_0x3f052c['createRangeIn'](_0x28b751));}else{const _0xa3bf6e=_0x3f052c['createElement']('tableCellSuggestion'),_0x4587d1=_0x3f052c['createElement']('tableCellSuggestion');_0x3f052c['wrap'](_0x3f052c['createRangeIn'](_0x28b751),_0x4587d1),_0x3f052c['insert'](_0xa3bf6e,_0x28b751,0x0);for(const _0x529e74 of Array['from'](_0x24d0ab['getChildren']()))_0x3f052c['insert'](_0x529e74,_0xa3bf6e,'end');_0x24a731=_0x252b19['fromRange'](_0x3f052c['createRangeOn'](_0xa3bf6e)),_0x2e926c=_0x252b19['fromRange'](_0x3f052c['createRangeOn'](_0x4587d1));}const _0x26b46b=Array['from'](_0x24d0ab['getAttributes']())['filter'](([_0x1a735e])=>we['includes'](_0x1a735e));_0xe1046e['cells']['push']({'element':_0x28b751,'attributes':_0x26b46b['length']?Object['fromEntries'](_0x26b46b):null}),_0x24a731&&_0xe1046e['insertionRanges']['push'](_0x24a731),_0x2e926c&&_0xe1046e['deletionRanges']['push'](_0x2e926c);},{'priority':'high'}),_0x18e6d5['on']('insertColumns',(_0x3585fc,_0x25a012)=>{const [_0x132ced,_0x17739d={}]=_0x25a012;if(!_0xe1046e)return;const _0x588b40=_0x17739d['at']||0x0,_0x1ddde8=_0x17739d['columns']||0x1;_0xe1046e['columnInsertionIndexes']=new Array(_0x1ddde8)['fill'](_0x588b40)['map']((_0x2ec901,_0x1a564c)=>_0x2ec901+_0x1a564c);for(const {cell:_0x54fe14}of _0x18e6d5['createTableWalker'](_0x132ced,{'startColumn':_0x588b40,'endColumn':_0x588b40+_0x1ddde8-0x1}))_0xe1046e['columnInsertionRanges']['push'](_0x2b0589['model']['createRangeOn'](_0x54fe14));},{'priority':'low'}),_0x18e6d5['on']('insertRows',(_0x118850,_0x1e9d69)=>{const [_0x1456a2,_0x2c3ffc={}]=_0x1e9d69;if(!_0xe1046e)return;const _0x15b60a=_0x2c3ffc['at']||0x0,_0x22f6ea=_0x2c3ffc['rows']||0x1;_0xe1046e['rowInsertionIndexes']=new Array(_0x22f6ea)['fill'](_0x15b60a)['map']((_0x6dfc4d,_0x2665ce)=>_0x6dfc4d+_0x2665ce);for(const {cell:_0x3c7e81}of _0x18e6d5['createTableWalker'](_0x1456a2,{'startRow':_0x15b60a,'endRow':_0x15b60a+_0x22f6ea-0x1}))_0xe1046e['rowInsertionRanges']['push'](_0x2b0589['model']['createRangeOn'](_0x3c7e81));},{'priority':'low'}),_0x349aeb['descriptionFactory']['registerDescriptionCallback'](_0x5d5c73=>{if(_0x5d5c73['subType']&&_0x5d5c73['subType']['startsWith']('tablePaste'))return _0x5d5c73['previous']?{}:{'type':'insertion','content':o(_0x2b0589['locale'],'*Replace\x20table\x20cells*')};});const _0x104f93=()=>!0x1;for(const _0x4d5ae2 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x349aeb['_suggestionFactory']['registerCustomCallback']('insertion',_0x4d5ae2,'join',_0x104f93),_0x349aeb['_suggestionFactory']['registerCustomCallback']('deletion',_0x4d5ae2,'join',_0x104f93),_0x349aeb['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4d5ae2,'join',_0x104f93);_0x349aeb['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x104f93),_0x349aeb['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4ed88e,_0x4bc4b6,_0x2b3bbe)=>{const _0x4fb851=_0x4ed88e['map'](_0x597f8f=>_0x597f8f['getContainedElement']())['filter'](_0x23bfa1=>_0x23bfa1),_0x162dd6=new Map(_0x4fb851['map'](_0x108bcf=>[_0x108bcf,null]));if(_0xe1046e){for(const {element:_0x4869e4,attributes:_0x457eb4}of _0xe1046e['cells'])_0x457eb4&&_0x162dd6['set'](_0x4869e4,_0x457eb4);}else{if(_0x2b3bbe&&_0x2b3bbe['markerAttributes'])for(const [_0x58b933,_0x367df9]of Object['entries'](_0x2b3bbe['markerAttributes'])){const _0x371c18=_0x2b0589['model']['markers']['get'](_0x58b933),_0x228a34=_0x371c18?_0x371c18['getRange']()['getContainedElement']():null;_0x228a34&&_0x162dd6['set'](_0x228a34,_0x367df9);}}_0x2b0589['model']['change'](_0x5014f7=>{for(const [_0x3ba4ab,_0x416dc4]of _0x162dd6)_0x5014f7['setAttributes']({...ve,..._0x416dc4},_0x3ba4ab);});});const _0x50bb12=(_0x5c39e4,_0x2ac219)=>{_0x349aeb['_suggestionFactory']['registerCustomCallback'](_0x5c39e4,'tablePaste',_0x2ac219,(_0x3c9871,_0x40820a,_0x413d0c)=>{_0x2b0589['model']['change'](_0x23075e=>{const _0x36778d=[];for(const _0x2eaec5 of _0x3c9871){const _0x372784=_0x2eaec5['start']['nodeAfter'];_0x372784['is']('element','tableCellSuggestion')&&_0x36778d['push'](_0x372784);}_0x349aeb['_suggestionFactory']['getSuggestionCallback'](_0x5c39e4,null,_0x2ac219)(_0x3c9871,_0x40820a,_0x413d0c);for(const _0x5f3dec of _0x36778d)'$graveyard'!=_0x5f3dec['root']['rootName']&&_0x23075e['unwrap'](_0x5f3dec);});});};_0x50bb12('insertion','accept'),_0x50bb12('insertion','discard'),_0x50bb12('deletion','accept'),_0x50bb12('deletion','discard'),_0x349aeb['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xd0947a=>{const _0x5d3a16=_0xd0947a['map'](_0x34a8f1=>_0x34a8f1['getContainedElement']()),_0x8dbd18=_0x5d3a16[0x0]['findAncestor']('table'),{minRow:_0xf0fe09,maxRow:_0x264170}=_0x5b49d6['_getCoordsForCells'](_0x5d3a16);_0x18e6d5['removeRows'](_0x8dbd18,{'at':_0xf0fe09,'rows':_0x264170-_0xf0fe09+0x1});}),_0x349aeb['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x20afb7=>{const _0x44b76b=_0x20afb7['map'](_0x19a039=>_0x19a039['getContainedElement']()),_0x7b2c74=_0x44b76b[0x0]['findAncestor']('table'),{minColumn:_0x3b9f34,maxColumn:_0x47c6da}=_0x5b49d6['_getCoordsForCells'](_0x44b76b);_0x18e6d5['removeColumns'](_0x7b2c74,{'at':_0x3b9f34,'columns':_0x47c6da-_0x3b9f34+0x1});});const _0x2d25fa=(_0x5e80af,_0x39d94f)=>{if(!_0x39d94f['subType']||!_0x39d94f['subType']['startsWith']('tablePaste'))return;const _0x392460=_0x39d94f['attributes']['tablePasteChainId'],_0x34203c=_0x349aeb['getSuggestions']()['filter'](_0x31f5a2=>_0x31f5a2['isInContent']&&_0x31f5a2['attributes']&&_0x31f5a2['attributes']['tablePasteChainId']==_0x392460);_0x34203c['length']&&_0x39d94f['getAllAdjacentSuggestions']()['length']!=_0x34203c['length']&&_0x34203c['reduce']((_0x2fac7e,_0x28b1d4)=>(_0x2fac7e['next']=_0x28b1d4,_0x28b1d4['previous']=_0x2fac7e,_0x28b1d4));};function _0x406413(_0x5a08f2,_0x11a314=!0x0){const {id:_0x1b6527,authorId:_0x272dba}=_0x349aeb['_splitMarkerName'](_0x5a08f2['markerName']),_0x55e4d4=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x452b75=_0x349aeb['activeMarkers']['includes'](_0x5a08f2['markerName']);return _0x452b75&&_0x55e4d4['push']('ck-suggestion-marker--active'),{'classes':_0x55e4d4,'attributes':{'data-suggestion':_0x1b6527,'data-author-id':_0x272dba},'priority':_0x452b75&&_0x11a314?0xbc2:0xbb8};}_0x349aeb['on']('suggestionLoaded',_0x2d25fa,{'priority':'high'}),_0x349aeb['on']('suggestionUnloaded',_0x2d25fa,{'priority':'high'}),_0x2b0589['model']['document']['registerPostFixer'](()=>{let _0x5352ff=!0x1;const _0x4333c2=Array['from'](_0x2b0589['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x362e38,data:_0x21dd34}of _0x4333c2){const {group:_0x30ff00,type:_0x107877,id:_0x522011}=_0x349aeb['_splitMarkerName'](_0x362e38);if('suggestion'!=_0x30ff00||'deletion'!=_0x107877||_0x21dd34['oldRange'])continue;if(!_0x349aeb['hasSuggestion'](_0x522011))continue;const _0xcc6833=_0x349aeb['getSuggestion'](_0x522011)['getRanges'](),_0x4f5b08=_0x2b0589['plugins']['get']('Users')['me'];for(const _0x5f499f of _0x349aeb['getSuggestions']()){if(!_0x5f499f['isInContent']||_0x5f499f['author']!=_0x4f5b08)continue;if('formatBlock'!=_0x5f499f['type']||'tablePasteCell'!=_0x5f499f['subType'])continue;if(_0x5f499f['getRanges']()['every'](_0x19aacd=>_0xcc6833['some'](_0x5f3674=>_0x5f3674['containsRange'](_0x19aacd,!0x0)))){for(const _0x5d1dd0 of _0x5f499f['getAllAdjacentSuggestions']())_0x5d1dd0['isInContent']&&(_0x5d1dd0['discard'](),_0x5352ff=!0x0);}}}return _0x5352ff;}),_0x2b0589['model']['document']['registerPostFixer'](_0x5d37a1=>{const _0x56b9d1=_0x2b0589['commands']['get']('redo');if(!_0x56b9d1||!_0x56b9d1['_createdBatches']['has'](_0x5d37a1['batch']))return!0x1;let _0x2a3abe=!0x1;const _0x59a346=_0x2b0589['plugins']['get']('Users')['me'],_0x175f8f=_0x2b0589['model']['document']['differ']['getChanges'](),_0x2e41cf=Array['from'](_0x2b0589['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x507c6f,data:_0x5b2090})=>{const {group:_0x31a803,subType:_0x2c75d1,authorId:_0x473943}=_0x349aeb['_splitMarkerName'](_0x507c6f);return'suggestion'==_0x31a803&&'tablePaste'==_0x2c75d1&&_0x473943==_0x59a346['id']&&!_0x5b2090['oldRange'];});for(const _0x418fdd of _0x175f8f){if('insert'!=_0x418fdd['type']||'tableCellSuggestion'!=_0x418fdd['name']||0x1!=_0x418fdd['length'])continue;const _0x5df8bf=_0x5d37a1['createRange'](_0x418fdd['position'],_0x418fdd['position']['getShiftedBy'](0x1));if(!_0x2e41cf['find'](({data:_0x3ed22e})=>_0x3ed22e['newRange']['isEqual'](_0x5df8bf))){for(const {name:_0x3fda52,data:_0x31e6c9}of _0x2e41cf)if(_0x5df8bf['containsRange'](_0x31e6c9['newRange'])){_0x5d37a1['updateMarker'](_0x3fda52,{'range':_0x5df8bf}),_0x2a3abe=!0x0;break;}}}return _0x2a3abe;}),_0x2b0589['model']['document']['registerPostFixer'](_0x4d3e1e=>{let _0x2910e6=!0x1;const _0x26d9df=_0x2b0589['plugins']['get']('Users')['me'],_0x445b4e=_0x349aeb['getSuggestions']()['filter'](_0x5db418=>_0x5db418['isInContent']&&_0x5db418['author']==_0x26d9df),_0x45d139=new Set(),_0x2bfb77=new Set();for(const _0x3440ba of _0x445b4e)if('tablePaste'==_0x3440ba['subType'])for(const _0x4c2a88 of _0x3440ba['getMarkers']()){const _0x3e5739=_0x4c2a88['getRange']()['getContainedElement']();if(_0x3e5739){if(_0x3e5739['is']('element','tableCellSuggestion')&&je(_0x3e5739)){_0x3440ba['removeMarker'](_0x4c2a88['name']),_0x45d139['add'](_0x3e5739),_0x2910e6=!0x0;const _0x42c3a1=_0x3e5739['nextSibling'],_0x47b094=_0x3e5739['previousSibling'],_0x757a22=_0x42c3a1&&_0x42c3a1['is']('element','tableCellSuggestion'),_0x760442=_0x47b094&&_0x47b094['is']('element','tableCellSuggestion');_0x757a22&&!_0x45d139['has'](_0x42c3a1)&&_0x2bfb77['add'](_0x42c3a1),_0x760442&&!_0x45d139['has'](_0x47b094)&&_0x2bfb77['add'](_0x47b094);}else _0x3e5739['is']('element','paragraph')&&_0x3e5739['isEmpty']&&(_0x3440ba['removeMarker'](_0x4c2a88['name']),_0x2910e6=!0x0);}}else{if('tablePasteCell'==_0x3440ba['subType']){if(!_0x3440ba['attributes']||!_0x3440ba['attributes']['tablePasteChainId'])continue;const _0x12c23e=_0x3440ba['attributes']['markerAttributes'];if(_0x12c23e&&Object['keys'](_0x12c23e)['length'])continue;const _0x53b0f1=_0x3440ba['attributes']['tablePasteChainId'];let _0x18d6f9=!0x0,_0x5b874c=!0x0;for(const _0x225598 of _0x445b4e)if(_0x225598['subType']&&_0x225598['subType']['startsWith']('tablePaste')){if(!_0x225598['attributes']['tablePasteChainId']){_0x5b874c=!0x1;break;}if(_0x225598['id']!=_0x3440ba['id']&&_0x225598['attributes']['tablePasteChainId']==_0x53b0f1){_0x18d6f9=!0x1;break;}}_0x5b874c&&_0x18d6f9&&(_0x3440ba['removeMarkers'](),_0x2910e6=!0x0);}}for(const _0xbedb27 of _0x45d139)_0x4d3e1e['remove'](_0xbedb27);for(const _0x25fd54 of _0x2bfb77)_0x4d3e1e['unwrap'](_0x25fd54);return _0x2910e6;}),_0x2b0589['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x43c1f8=>_0x406413(_0x43c1f8),'converterPriority':'high'}),_0x2b0589['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x31b7ac,_0x452fc6)=>_0x452fc6['options']['showSuggestionHighlights']?_0x406413(_0x31b7ac,!0x1):null,'converterPriority':'high'});const _0x23372f=_0x2b0589['editing']['view'];this['listenTo'](_0x23372f['document'],'clipboardOutput',(_0x261e4b,_0x430f84)=>{const _0x46c740=[];for(const _0x2fc95a of _0x23372f['createRangeIn'](_0x430f84['content'])['getItems']())_0x2fc95a['is']('element','suggestion-td')&&_0x46c740['push'](_0x2fc95a);_0x23372f['change'](_0x396cd2=>{for(const _0x183fff of _0x46c740)_0x396cd2['move'](_0x396cd2['createRangeIn'](_0x183fff),_0x396cd2['createPositionBefore'](_0x183fff)),_0x396cd2['remove'](_0x183fff);});});}}function je(_0x2db924){if(_0x2db924['isEmpty'])return!0x0;const _0x464a04=_0x2db924['getChild'](0x0);return _0x464a04['is']('element','paragraph')&&_0x464a04['isEmpty'];}function Ae(_0x1e2547,_0x43f297={},_0x579e07){for(const {isAnchor:_0x45a619,cellHeight:_0x49a540,cellWidth:_0xe97fce}of _0x579e07['createTableWalker'](_0x1e2547,{'includeAllSlots':!0x0,..._0x43f297}))if(!_0x45a619||0x1!=_0x49a540||0x1!=_0xe97fce)return!0x1;return!0x0;}class Dt extends _0x336f7e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2c1cb2=this['editor']['plugins']['get']('TrackChangesEditing');_0x2c1cb2['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2c1cb2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2c1cb2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2c1cb2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2c1cb2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2c1cb2['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x55caf5,_0x2a20ed){const _0x5cdda7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34c9c3=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x200640=_0x2a20ed['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x15c14f=_0x34c9c3['getColumnGroupElement'](_0x200640);let _0x8cbcaa=_0x15c14f?_0x34c9c3['getTableColumnsWidths'](_0x15c14f):null,_0x3ec8bd=_0x200640['getAttribute']('tableWidth')||null;const _0x14141c=_0x2a20ed['tableWidth']||_0x3ec8bd,_0x134355=_0x2a20ed['columnWidths']||_0x8cbcaa,_0x48e4c5=this['editor']['plugins']['get']('Users')['me'];for(const _0x23b33d of _0x5cdda7['getSuggestions']()){const _0x22c5cf=_0x23b33d['getContainedElement']();if('resizeTable'===_0x23b33d['subType']&&_0x22c5cf===_0x200640){_0x23b33d['author']!==_0x48e4c5&&_0x23b33d['discard']();const _0xde57d3=_0x23b33d['data']['commandParams'];_0x3ec8bd=_0xde57d3[0x0]['tableWidth'],_0x8cbcaa=_0xde57d3[0x0]['columnWidths'];break;}}_0x55caf5({'table':_0x200640,'tableWidth':_0x14141c,'columnWidths':_0x134355}),_0x5cdda7['markBlockFormat'](_0x200640,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3ec8bd,'columnWidths':_0x8cbcaa}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2f882a){if('formatBlock'!=_0x2f882a['type']&&'formatInline'!=_0x2f882a['type'])return;const {data:_0x554cd5}=_0x2f882a;if(_0x554cd5&&'resizeTable'===_0x554cd5['formatGroupId']){const _0x2b520f='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2b520f)};}}}class Mt extends _0x336f7e{['afterInit'](){const _0x333930=this['editor'];_0x333930['plugins']['has']('Template')&&_0x333930['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x336f7e{['afterInit'](){const _0x469fc4=this['editor'];if(!_0x469fc4['commands']['get']('insertTableOfContents'))return;_0x469fc4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5f5d2a=_0x469fc4['plugins']['get']('TrackChangesEditing'),_0x55a5b9=_0x469fc4['locale'];_0x5f5d2a['descriptionFactory']['registerElementLabel']('tableOfContents',_0x358de3=>o(_0x55a5b9,'ELEMENT_TABLE_OF_CONTENTS',_0x358de3));}}class Bt extends _0x336f7e{['afterInit'](){const _0x2c7302=this['editor'];if(!_0x2c7302['plugins']['has']('Title'))return;const _0x4a0090=_0x2c7302['plugins']['get']('TrackChangesEditing');_0x4a0090['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2c7302['locale'],'ELEMENT_TITLE')),_0x2c7302['model']['document']['registerPostFixer'](_0x56523c=>{let _0x4bb46a=!0x1;const _0x13240c=Array['from'](_0x2c7302['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x23f11b,data:_0x5ac924}of _0x13240c){const {group:_0x600878}=_0x4a0090['_splitMarkerName'](_0x23f11b);if('suggestion'!==_0x600878||!_0x5ac924['newRange'])continue;const _0xa5cf91=_0x5ac924['newRange'],_0x1cc5c4=_0xa5cf91['end']['nodeBefore'];if(!_0x1cc5c4||!_0x1cc5c4['is']('element','title-content'))continue;if(!_0xa5cf91['start']['isTouching'](_0xa5cf91['end']))continue;const _0x2e255b=_0x2c7302['model']['schema']['getNearestSelectionRange'](_0xa5cf91['end'],'forward');if(_0x2e255b&&_0x2e255b['isCollapsed']){const _0x565ba3=_0x56523c['createRange'](_0xa5cf91['start'],_0x2e255b['start']);_0x565ba3['isEqual'](_0xa5cf91)||(_0x56523c['updateMarker'](_0x23f11b,{'range':_0x565ba3}),_0x4bb46a=!0x0);}_0x4bb46a||(_0x56523c['removeMarker'](_0x23f11b),_0x4bb46a=!0x0);}return _0x4bb46a;});}}class Ot extends _0x336f7e{['afterInit'](){const _0x235052=this['editor'],_0xa781=_0x235052['plugins']['get']('TrackChangesEditing');_0x235052['plugins']['has']('UndoEditing')&&(_0xa781['enableCommand']('undo'),_0xa781['enableCommand']('redo'));}}class Rt extends _0x336f7e{static get['requires'](){return[vt];}['afterInit'](){const _0x1549fa=this['editor'];if(!_0x1549fa['plugins']['has']('TableCaptionEditing'))return;_0x1549fa['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x336f7e{['tableProperties'];['tableCellProperties'];constructor(_0x302f52){super(_0x302f52),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 _0x59c216=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x7dd87e of this['tableProperties'])_0x59c216['enableCommand'](_0x7dd87e,(_0x203a5d,_0x3c1341)=>{const _0x46cfc8=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x7dd87e,[_0x46cfc8],this['tableProperties'],'tableProperties',_0x203a5d,_0x3c1341);});_0x59c216['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x59c216['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x59c216['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3bb7b9,_0x43fad4)=>this['handleDiscardAction'](this['tableProperties'],_0x3bb7b9,_0x43fad4)),_0x59c216['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x398db4 of this['tableCellProperties'])_0x59c216['enableCommand'](_0x398db4,(_0x17a794,_0x110309)=>{const _0x27c0a9=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x398db4,_0x27c0a9,this['tableCellProperties'],'tableCellProperties',_0x17a794,_0x110309);});_0x59c216['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x59c216['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x59c216['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x43ad16,_0x131f39)=>this['handleDiscardAction'](this['tableCellProperties'],_0x43ad16,_0x131f39)),_0x59c216['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x59c216['descriptionFactory']['registerDescriptionCallback'](_0x2b05a5=>this['handleSuggestionDescription'](_0x2b05a5));}['_handlePropertyChange'](_0x32843a,_0x7740a8,_0x55d5c9,_0x49aced,_0x1ed9d5,_0x2926e5){const _0x3720da=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2926e5['batch'],()=>{for(const _0x4c29ba of _0x7740a8){if(this['_getSuggestion'](_0x4c29ba,_0x49aced))_0x1ed9d5(_0x2926e5);else{const _0x13a5b3={};for(const _0x466c48 of _0x55d5c9){const _0x3dafb8=_0x4c29ba['getAttribute'](_0x466c48);void 0x0!==_0x3dafb8&&(_0x13a5b3[_0x466c48]=_0x3dafb8);}_0x1ed9d5(_0x2926e5),_0x3720da['markBlockFormat'](_0x4c29ba,{'commandParams':[_0x13a5b3]},[],_0x49aced);}}});}['handleDiscardAction'](_0x416e99,_0x431b8c,_0x9f01f0){const _0x2ed229=_0x431b8c[0x0]['start']['nodeAfter'],_0x134e1f=_0x9f01f0['commandParams'][0x0];this['editor']['model']['change'](_0x3d4b22=>{for(const _0x551196 of _0x416e99)void 0x0!==_0x134e1f[_0x551196]?_0x3d4b22['setAttribute'](_0x551196,_0x134e1f[_0x551196],_0x2ed229):_0x3d4b22['removeAttribute'](_0x551196,_0x2ed229);});}['handleSuggestionDescription'](_0x46c74f){if(_0x46c74f['data'])switch(_0x46c74f['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'](_0x4f0d9b,_0x20397e){const _0x1982fe=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5bce64 of _0x1982fe['getSuggestions']({'skipNotAttached':!0x0})){const _0x359f5e=_0x5bce64['getContainedElement']();if(_0x5bce64['subType']===_0x20397e&&_0x359f5e===_0x4f0d9b)return _0x5bce64;}return null;}}const m='$elementName';class p extends _0x336f7e{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x237037,_0x35d7c8,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x596b0d){super(_0x596b0d),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x6f43df,_0x117b61,_0x342e91,_0xbc3445)=>{this['_model']['change'](()=>{for(const _0x1390e1 of[..._0xbc3445,..._0x342e91])this['_model']['markers']['has'](_0x1390e1)&&_0x596b0d['editing']['reconvertMarker'](_0x1390e1);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x596b0d['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(),_0x596b0d['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x596b0d['config']['get']('trackChanges.trackFormatChanges'),_0x596b0d['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x596b0d['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x596b0d,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1e8bb7=this['editor'],_0x11c873=(_0x439a27,_0x594753)=>{if('attribute'!=_0x439a27)return'ck-suggestion-marker-'+_0x439a27;const _0x46210c=_0x594753['split']('|')[0x0];return this['_isBlockAttribute'](_0x46210c)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1e8bb7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x37c0ba=>{const {id:_0x109f11,authorId:_0x4817e9,type:_0x5c302b,subType:_0x5b3606}=this['_splitMarkerName'](_0x37c0ba['markerName']),_0x47f9b0=['ck-suggestion-marker',_0x11c873(_0x5c302b,_0x5b3606)];let _0x97836e=0xbb8;return this['activeMarkers']['includes'](_0x37c0ba['markerName'])&&(_0x47f9b0['push']('ck-suggestion-marker--active'),_0x97836e=0xbc2),'deletion'==_0x5c302b&&(_0x97836e+=0x5),{'classes':_0x47f9b0,'attributes':{'data-suggestion':_0x109f11,'data-author-id':_0x4817e9},'priority':_0x97836e};}}),_0x1e8bb7['conversion']['for']('dataDowncast')['add'](_0x2e377b=>{_0x2e377b['on']('addMarker:suggestion',(_0x619b03,_0x11e361,_0x11dd0c)=>{if(!_0x11dd0c['options']['showSuggestionHighlights'])return;const _0xe3808=_0x11e361['item'];if(!_0xe3808)return;const _0x346243=_0x11dd0c['mapper']['toViewElement'](_0xe3808);_0x1e8bb7['model']['schema']['isObject'](_0xe3808)&&_0x346243&&!_0x346243['getCustomProperty']('widget')&&_0x346243['is']('containerElement')&&_0x2ed4ad(_0x346243,_0x11dd0c['writer']);},{'priority':'high'});}),_0x1e8bb7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5d1847,_0x556b1f)=>{if(!_0x556b1f['options']['showSuggestionHighlights'])return null;const {type:_0x413183,subType:_0x4f8294}=this['_splitMarkerName'](_0x5d1847['markerName']);return{'classes':['ck-suggestion-marker',_0x11c873(_0x413183,_0x4f8294)],'priority':0xbb8};}});const _0x108fce=({showActiveMarkers:_0x54790b=!0x0,isAttributeSuggestion:_0x112e7a=!0x1}={})=>(_0x5939e2,_0x2fc4f4,_0x5e71ad)=>{if(!_0x2fc4f4['item'])return;const {id:_0xb70a7a,authorId:_0x6d09d6}=this['_splitMarkerName'](_0x2fc4f4['markerName']);if(_0x112e7a){const _0x566f49=this['_suggestions']['get'](_0xb70a7a),_0x1dd627=this['_getAttributeKey'](_0x566f49);if(!this['_isBlockAttribute'](_0x1dd627))return;}if(_0x2fc4f4['item']['is']('selection'))return void _0x5e71ad['consumable']['consume'](_0x2fc4f4['item'],_0x5939e2['name']);const _0x1fcde5=_0x5e71ad['mapper']['toViewElement'](_0x2fc4f4['item']);if(_0x2fc4f4['item']['is']('element')&&_0x1e8bb7['model']['schema']['isBlock'](_0x2fc4f4['item'])&&!_0x1fcde5['getCustomProperty']('addHighlight')){_0x5e71ad['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1fcde5),_0x5e71ad['writer']['setAttribute']('data-suggestion',_0xb70a7a,_0x1fcde5),_0x5e71ad['writer']['setAttribute']('data-author-id',_0x6d09d6,_0x1fcde5),_0x5e71ad['mapper']['bindElementToMarker'](_0x1fcde5,_0x2fc4f4['markerName']),_0x54790b&&(this['activeMarkers']['includes'](_0x2fc4f4['markerName'])?_0x5e71ad['writer']['addClass']('ck-suggestion-marker--active',_0x1fcde5):_0x5e71ad['writer']['removeClass']('ck-suggestion-marker--active',_0x1fcde5));for(const _0x2010ea of _0x1e8bb7['model']['createRangeIn'](_0x2fc4f4['item'])['getItems']())_0x5e71ad['consumable']['consume'](_0x2010ea,_0x5939e2['name']);_0x5e71ad['consumable']['consume'](_0x2fc4f4['item'],_0x5939e2['name']);}};_0x1e8bb7['conversion']['for']('dataDowncast')['add'](_0x22d342=>{_0x22d342['on']('addMarker:suggestion:formatBlock',(_0x38baf4,_0x4d9eb3,_0x4b018b)=>{_0x4b018b['options']['showSuggestionHighlights']&&_0x108fce({'showActiveMarkers':!0x1})(_0x38baf4,_0x4d9eb3,_0x4b018b);},{'priority':'highest'});}),_0x1e8bb7['conversion']['for']('dataDowncast')['add'](_0x5c3468=>{_0x5c3468['on']('addMarker:suggestion:attribute',(_0x413235,_0x5315e9,_0x2042b7)=>{_0x2042b7['options']['showSuggestionHighlights']&&_0x108fce({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x413235,_0x5315e9,_0x2042b7);},{'priority':'highest'});}),_0x1e8bb7['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x79a631,_0x46ef99)=>_0x46ef99['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x79a631['substr'](0xb)}}),_0x1e8bb7['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x48e2ff,{writer:_0x211a2e})=>{let _0x94b94e='suggestion:'+_0x48e2ff['getAttribute']('suggestion-type')+':'+_0x48e2ff['getAttribute']('id');return _0x48e2ff['getAttribute']('marker-count')&&(_0x94b94e+=':'+_0x48e2ff['getAttribute']('marker-count')),_0x211a2e['createElement']('$marker',{'data-name':_0x94b94e});}}),_0x1e8bb7['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1e8bb7['conversion']['for']('editingDowncast')['add'](_0x2095b8=>{_0x2095b8['on']('addMarker:suggestion:formatBlock',_0x108fce(),{'priority':'high'});}),_0x1e8bb7['conversion']['for']('editingDowncast')['add'](_0x2711d2=>{_0x2711d2['on']('addMarker:suggestion:attribute',_0x108fce({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1e8bb7['conversion']['for']('editingDowncast')['add'](_0x5523e3=>{_0x5523e3['on']('removeMarker:suggestion:formatBlock',(_0x46bca2,_0x1ee75a,_0x41d657)=>{const _0x16c9c2=_0x41d657['mapper']['markerNameToElements'](_0x1ee75a['markerName']);if(_0x16c9c2){for(const _0x3c2099 of _0x16c9c2)_0x3c2099['getCustomProperty']('addHighlight')||(_0x41d657['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3c2099),_0x41d657['writer']['removeAttribute']('data-suggestion',_0x3c2099),_0x41d657['writer']['removeAttribute']('data-author-id',_0x3c2099),_0x41d657['mapper']['unbindElementFromMarkerName'](_0x3c2099,_0x1ee75a['markerName']));}},{'priority':'high'});}),_0x1e8bb7['conversion']['for']('editingDowncast')['add'](_0x5b9297=>{_0x5b9297['on']('removeMarker:suggestion:attribute',(_0x3ff97b,_0x4a9de5,_0x49071e)=>{const _0x443853=_0x49071e['mapper']['markerNameToElements'](_0x4a9de5['markerName']);if(!_0x443853)return;const {id:_0x273820}=this['_splitMarkerName'](_0x4a9de5['markerName']),_0x5e47f6=this['_suggestions']['get'](_0x273820),_0xb67aba=this['_getAttributeKey'](_0x5e47f6);if(this['_isBlockAttribute'](_0xb67aba)){for(const _0x539c38 of _0x443853)_0x539c38['getCustomProperty']('addHighlight')||(_0x49071e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x539c38),_0x49071e['writer']['removeAttribute']('data-suggestion',_0x539c38),_0x49071e['writer']['removeAttribute']('data-author-id',_0x539c38),_0x49071e['mapper']['unbindElementFromMarkerName'](_0x539c38,_0x4a9de5['markerName']));}},{'priority':'high'});}),_0x1e8bb7['model']['document']['registerPostFixer'](_0x4f1f0d=>{let _0x49da8e=!0x1;const _0x4cf26e=Array['from'](_0x1e8bb7['model']['document']['differ']['getChangedMarkers']()),_0x22edfd=new Set();for(const {name:_0x576f30,data:_0x214cfd}of _0x4cf26e){const {group:_0x2b0ba6,type:_0x3b4054,subType:_0x20b3eb,id:_0x26ed01}=this['_splitMarkerName'](_0x576f30);if('suggestion'!==_0x2b0ba6)continue;const _0x19502a=this['_suggestions']['get'](_0x26ed01);if(null!=_0x214cfd['newRange']){'formatInline'==_0x3b4054&&(_0x49da8e=_0x49da8e||Pt(_0x214cfd['newRange'],_0x576f30,_0x4f1f0d,_0x1e8bb7['model']['schema']));const _0x2c8f0c='attribute'==_0x3b4054&&this['_isBlockAttribute'](_0x20b3eb['split']('|')[0x0]);if(_0x214cfd['newRange']['isCollapsed']||'$graveyard'==_0x214cfd['newRange']['root']['rootName']||'formatBlock'==_0x3b4054&&!Ft(_0x214cfd['newRange'])||_0x2c8f0c&&!Ft(_0x214cfd['newRange'])||'deletion'==_0x3b4054&&!(!Vt(_0x276f62=_0x214cfd['newRange'])&&!function(_0x26c3ca){return _0x26c3ca['start']['parent']==_0x26c3ca['end']['nodeBefore']&&_0x26c3ca['start']['isAtEnd'];}(_0x276f62)))_0x4f1f0d['removeMarker'](_0x576f30),_0x49da8e=!0x0;else{if(!_0x19502a||!_0x19502a['isInContent'])continue;if(_0x214cfd['newRange']&&_0x214cfd['oldRange']&&_0x214cfd['newRange']['isEqual'](_0x214cfd['oldRange']))continue;_0x22edfd['add'](_0x19502a);}}}var _0x276f62;return _0x22edfd['size']>0x0&&(_0x49da8e=!!this['_joinWithAdjacentSuggestions'](_0x22edfd)||_0x49da8e),_0x49da8e;}),_0x1e8bb7['model']['document']['registerPostFixer'](_0x1e0963=>{let _0x9cc70e=!0x1;for(const _0x72b80e of _0x1e8bb7['model']['document']['differ']['getChanges']())if('insert'==_0x72b80e['type'])for(const _0x5105ae of this['_suggestions']['values']()){if(_0x5105ae['isMultiRange']||!_0x5105ae['isInContent'])continue;const _0x232560='formatBlock'==_0x5105ae['type'],_0x494212=this['_getAttributeKey'](_0x5105ae),_0x421a6a=_0x494212&&this['_isBlockAttribute'](_0x494212);if(!_0x232560&&!_0x421a6a)continue;const _0x487cd2=_0x5105ae['getFirstRange']();if(_0x487cd2['start']['parent']!=_0x487cd2['end']['parent']&&!_0x487cd2['end']['isAtEnd']){const _0x4c36bc=_0x1e8bb7['model']['createPositionAt'](_0x487cd2['start']['nodeAfter'],'end'),_0x5edfe9=_0x1e8bb7['model']['createRange'](_0x487cd2['start'],_0x4c36bc);_0x1e0963['updateMarker'](_0x5105ae['getFirstMarker'](),{'range':_0x5edfe9}),_0x9cc70e=!0x0;}}return _0x9cc70e;}),_0x1e8bb7['model']['document']['registerPostFixer'](_0x5cba21=>this['_processAttributeChanges'](_0x5cba21)),_0x1e8bb7['model']['document']['registerPostFixer'](_0x494456=>!_0x494456['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x494456)),_0x1e8bb7['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1e8bb7['model']['document']['on']('change:data',(_0x2eb655,_0xdf04f3)=>{if(!_0xdf04f3['isLocal']||_0xdf04f3['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x78b3b2=_0x1e8bb7['model']['document']['differ']['getChanges']();if(0x0==_0x78b3b2['length'])return;const _0xdfe6fc=[],_0x2279f5=_0x78b3b2['filter'](_0x42d008=>'attribute'==_0x42d008['type']),_0xe5500=_0x78b3b2['filter'](_0x4c9b04=>'insert'==_0x4c9b04['type']&&'$text'!=_0x4c9b04['name']);for(const _0x5b8966 of _0x2279f5)this['_isRegisteredAttribute'](_0x5b8966['attributeKey'])&&_0xdfe6fc['push']({'key':_0x5b8966['attributeKey'],'newValue':_0x5b8966['attributeNewValue'],'oldValue':_0x5b8966['attributeOldValue'],'range':Lt(_0x5b8966['range'],_0x1e8bb7['model'])});for(const _0xaa63e3 of _0xe5500){if('rename'!=_0xaa63e3['action']&&'refresh'!=_0xaa63e3['action'])continue;const _0x4fa9d5=Jt(_0xaa63e3['position']['nodeAfter'],_0x1e8bb7['model']),_0x1f75fc=_0xaa63e3['before'];'rename'==_0xaa63e3['action']&&_0xdfe6fc['push']({'key':m,'newValue':_0xaa63e3['name'],'oldValue':_0x1f75fc['name'],'range':_0x4fa9d5});for(const [_0x212b61,_0x2a45e1]of _0x1f75fc['attributes']){if(!this['_isRegisteredAttribute'](_0x212b61))continue;const _0x1478c6=_0xaa63e3['attributes']['get'](_0x212b61);_0x2a45e1!==_0x1478c6&&_0xdfe6fc['push']({'key':_0x212b61,'newValue':_0x1478c6,'oldValue':_0x2a45e1,'range':_0x4fa9d5});}for(const [_0x58e155,_0xb7213e]of _0xaa63e3['attributes'])this['_isRegisteredAttribute'](_0x58e155)&&(_0x1f75fc['attributes']['has'](_0x58e155)||_0xdfe6fc['push']({'key':_0x58e155,'newValue':_0xb7213e,'oldValue':null,'range':_0x4fa9d5}));}0x0!=_0xdfe6fc['length']&&_0x1e8bb7['model']['enqueueChange'](_0xdf04f3,_0x261cd0=>{const _0x407827=_0x5a6ab6();for(const {range:_0x50b989,key:_0xcf1a50,oldValue:_0x27d4cc,newValue:_0x5db3cd}of _0xdfe6fc)this['markAttributeChange'](_0x50b989,_0xcf1a50,_0x27d4cc,_0x5db3cd,{'groupId':_0x407827});this['_reduceExistingSuggestions'](_0x261cd0,_0xdfe6fc);});},{'priority':'lowest'}),_0x1e8bb7['model']['markers']['on']('update:suggestion',(_0x592dd6,_0x2755b9,_0x6857de)=>{if(null==_0x6857de){const {id:_0x3ad458}=this['_splitMarkerName'](_0x2755b9['name']),_0x111338=this['_suggestions']['get'](_0x3ad458);_0x111338&&_0x111338['addMarkerName'](_0x2755b9['name']);}}),_0x1e8bb7['model']['document']['on']('change:data',()=>{const _0x375169=Array['from'](_0x1e8bb7['model']['document']['differ']['getChangedMarkers']())['filter'](_0x57c99a=>'suggestion'===this['_splitMarkerName'](_0x57c99a['name'])['group']);if(0x0===_0x375169['length'])return;_0x375169['sort']((_0x2fc8f8,_0x202148)=>{const _0x573513=_0x2fc8f8['data']['oldRange'],_0x1b3b0e=_0x202148['data']['oldRange'];return null===_0x573513&&null===_0x1b3b0e?0x0:null===_0x573513&&null!==_0x1b3b0e?-0x1:null!==_0x573513&&null===_0x1b3b0e?0x1:_0x573513['start']['isBefore'](_0x1b3b0e['start'])?-0x1:0x1;});const _0x5a4bb6=new Set(),_0x418912=new Set();for(const {name:_0x147766,data:_0xeb672b}of _0x375169){const {id:_0x3589df}=this['_splitMarkerName'](_0x147766);if(null===_0xeb672b['oldRange']){const _0x11fbff=this['_handleNewSuggestionMarker'](_0x147766);_0x418912['add'](_0x11fbff);}else{const _0x42c7c5=this['_suggestions']['get'](_0x3589df);null!==_0xeb672b['newRange']||_0x42c7c5['isInContent']?(_0x5a4bb6['add'](_0x42c7c5['head']),_0x418912['add'](_0x42c7c5)):this['_removeSuggestion'](_0x42c7c5);}}_0x418912['size']>0x0&&this['_refreshSuggestionsChain'](_0x418912);for(const _0x54d377 of _0x5a4bb6)this['fire']('suggestionChanged',_0x54d377);}),_0x1e8bb7['model']['on']('applyOperation',(_0x18b9d7,_0x483240)=>{const _0x3fcf74=_0x483240[0x0];if(!this['_suggestions']['size'])return;if(!_0x3fcf74['isDocumentOperation'])return;if(_0x3fcf74['batch']['isUndo']||!_0x3fcf74['batch']['isLocal'])return;let _0x41f898,_0x5f7813;switch(_0x3fcf74['type']){case'insert':_0x41f898=_0x1e8bb7['model']['createPositionAt'](_0x3fcf74['position']),_0x5f7813=_0x41f898['getShiftedBy'](_0x3fcf74['howMany']);break;case'split':_0x41f898=_0x1e8bb7['model']['createPositionAt'](_0x3fcf74['splitPosition']),_0x5f7813=_0x1e8bb7['model']['createPositionAt'](_0x3fcf74['moveTargetPosition']);break;case'move':_0x41f898=_0x1e8bb7['model']['createPositionAt'](_0x3fcf74['targetPosition']),_0x5f7813=_0x41f898['getShiftedBy'](_0x3fcf74['howMany']);break;default:return;}const _0x22679d=_0x1e8bb7['model']['createRange'](_0x41f898,_0x5f7813);_0x1e8bb7['model']['change'](()=>{for(const {suggestion:_0x11c839,meta:_0x4fde03}of this['_findSuggestions'](_0x22679d)){if(_0x11c839['isMultiRange'])continue;if('formatInline'==_0x11c839['type'])continue;const _0x15ef00=this['_getAttributeKey'](_0x11c839);if(_0x15ef00&&this['_isBlockAttribute'](_0x15ef00)&&'split'!=_0x3fcf74['type'])continue;const _0x514f9b=_0x11c839['data']&&_0x11c839['data']['multipleBlocks'];('formatBlock'!=_0x11c839['type']||'split'==_0x3fcf74['type']&&!_0x514f9b)&&(_0x4fde03['containsRangeInObject']||'insertion'==_0x11c839['type']&&_0x4fde03['isOwn']||_0x11c839['getFirstRange']()['containsRange'](_0x22679d)&&this['_breakSuggestionMarker'](_0x11c839,_0x41f898,_0x5f7813));}});},{'priority':'lowest'}),_0x1e8bb7['model']['on']('deleteContent',(_0x3332d0,_0x5df47b)=>{const _0x197b02=_0x5df47b[0x0],_0x3c3e4b=_0x5df47b[0x1];if(_0x3c3e4b&&_0x3c3e4b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x197b02['isCollapsed'])return;const _0x4d5b9d=_0x1e8bb7['model']['schema'],{start:_0x5934b6,end:_0x361716}=_0x197b02['getFirstRange'](),_0x39b4b7=_0x5934b6['nodeAfter']&&_0x4d5b9d['isLimit'](_0x5934b6['nodeAfter'])?null:_0x4d5b9d['getNearestSelectionRange'](_0x5934b6,'forward'),_0x161f5d=_0x361716['nodeBefore']&&_0x4d5b9d['isLimit'](_0x361716['nodeBefore'])?null:_0x4d5b9d['getNearestSelectionRange'](_0x361716,'backward'),_0x28829e=_0x1e8bb7['model']['createRange'](_0x39b4b7?_0x39b4b7['start']:_0x5934b6,_0x161f5d?_0x161f5d['end']:_0x361716);_0x1e8bb7['model']['change'](_0x2a0cf4=>{this['markDeletion'](_0x28829e);const _0xc6fdad=_0x1e8bb7['model']['schema']['getNearestSelectionRange'](_0x28829e['start']);_0x197b02['is']('documentSelection')?_0x2a0cf4['setSelection'](_0xc6fdad):_0x197b02['setTo'](_0xc6fdad);}),_0x3332d0['stop']();},{'priority':_0x300b65['normal']+0xa}),_0x1e8bb7['model']['on']('insertContent',(_0x3039a0,_0x384384)=>{const _0x2b1bf5=_0x384384[_0x384384['length']-0x1];_0x2b1bf5&&_0x2b1bf5['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1e8bb7['model']['change'](()=>{let _0x4b7f82=_0x1e8bb7['model']['insertContent'](_0x384384[0x0],_0x384384[0x1],_0x384384[0x2],{'forceDefaultExecution':!0x0});if(!_0x4b7f82)return;_0x3039a0['return']=_0x4b7f82['clone']();const _0x33170f=_0x4b7f82['end']['nodeBefore'],_0x1fdc6e=_0x1e8bb7['model']['schema'];_0x33170f&&_0x1fdc6e['isBlock'](_0x33170f)&&!_0x1fdc6e['isObject'](_0x33170f)&&(_0x4b7f82=_0x1e8bb7['model']['createRange'](_0x4b7f82['start'],_0x1e8bb7['model']['createPositionAt'](_0x33170f,'end'))),this['markInsertion'](_0x4b7f82);}),_0x3039a0['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5b06e9=new O(_0x1e8bb7,this['_suggestions']);_0x1e8bb7['commands']['add']('acceptSuggestion',_0x5b06e9),this['enableCommand']('acceptSuggestion');const _0x31fb26=new R(_0x1e8bb7,this['_suggestions']);_0x1e8bb7['commands']['add']('discardSuggestion',_0x31fb26),this['enableCommand']('discardSuggestion'),_0x1e8bb7['commands']['add']('acceptAllSuggestions',new x(_0x1e8bb7,_0x5b06e9,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1e8bb7['commands']['add']('discardAllSuggestions',new x(_0x1e8bb7,_0x31fb26,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1e8bb7['commands']['add']('acceptSelectedSuggestions',new E(_0x1e8bb7,_0x5b06e9,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1e8bb7['commands']['add']('discardSelectedSuggestions',new E(_0x1e8bb7,_0x31fb26,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1a8373=_0x1e8bb7['plugins']['get']('CommentsRepository');this['listenTo'](_0x1a8373,'addComment',(_0x53f452,{threadId:_0x17936b})=>{const _0x362c54=this['_suggestions']['get'](_0x17936b);_0x362c54&&_0x362c54['commentThread']&&0x1===_0x362c54['commentThread']['length']&&this['_updateSuggestionData'](_0x17936b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1a8373,'removeComment',(_0x55db03,{threadId:_0x3786fe})=>{const _0x179df6=this['_suggestions']['get'](_0x3786fe);_0x179df6&&_0x179df6['commentThread']&&!_0x179df6['commentThread']['length']&&this['_updateSuggestionData'](_0x3786fe,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x64b183){const _0x55a945=_0x59e3e9([0x67,0x4f,0x4d,0x66,0x35,0x75,0x50,0x79,0x33,0x55,0x76,0x49,0x48,0x57,0x39,0x31,0x52,0x5a,0x44,0x30,0x6a,0x77,0x59,0x7a,0x42,0x51,0x37,0x4a,0x65,0x32,0x58,0x6c,0x41,0x73,0x43,0x36,0x61,0x6f,0x70,0x78,0x47,0x69,0x6b,0x4b,0x53,0x64,0x56,0x6e,0x68,0x54,0x4c,0x46,0x34,0x72,0x45,0x74,0x63,0x6d,0x62,0x38,0x71,0x4e]),_0x12c84e=0x68b2fdd5,_0x28708e=0x68b5aa1d^_0x12c84e,_0x1e79c6=window[_0x59e3e9([0x44,0x61,0x74,0x65])][_0x59e3e9([0x6e,0x6f,0x77])](),_0x35d866=_0x64b183[_0x59e3e9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x207f6f=new window[(_0x59e3e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3445d7=>{_0x35d866[_0x59e3e9([0x6f,0x6e,0x63,0x65])](_0x59e3e9([0x72,0x65,0x61,0x64,0x79]),_0x3445d7);}),_0x4d2beb={[_0x59e3e9([0x6b,0x74,0x79])]:_0x59e3e9([0x45,0x43]),[_0x59e3e9([0x75,0x73,0x65])]:_0x59e3e9([0x73,0x69,0x67]),[_0x59e3e9([0x63,0x72,0x76])]:_0x59e3e9([0x50,0x2d,0x32,0x35,0x36]),[_0x59e3e9([0x78])]:_0x59e3e9([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]),[_0x59e3e9([0x79])]:_0x59e3e9([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]),[_0x59e3e9([0x61,0x6c,0x67])]:_0x59e3e9([0x45,0x53,0x32,0x35,0x36])},_0xa5b69a=_0x35d866[_0x59e3e9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x59e3e9([0x67,0x65,0x74])](_0x59e3e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3d0039(){let _0x557909,_0x21117f=null,_0xcf8294=null;try{if(_0xa5b69a==_0x59e3e9([0x47,0x50,0x4c]))return _0x59e3e9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x557909=_0x1670a4(),!_0x557909)return _0x59e3e9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x557909[_0x59e3e9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xcf8294=_0x48c972(_0x557909[_0x59e3e9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x557909[_0x59e3e9([0x6a,0x74,0x69])])),await _0x537caf()?_0x4bda7b()?_0x32bc03()?_0x59e3e9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x201941()?(_0x557909[_0x59e3e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59e3e9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x21117f=_0x3af264(_0x59e3e9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x557909[_0x59e3e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59e3e9([0x74,0x72,0x69,0x61,0x6c])&&(_0x21117f=_0x3af264(_0x59e3e9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x557909[_0x59e3e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x59e3e9([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x21117f=_0x3af264(_0x59e3e9([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x25787c()):_0x59e3e9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x59e3e9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x59e3e9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1658d4){return _0x59e3e9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x32bc03(){const _0x39039a=[_0x59e3e9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x59e3e9([0x74,0x72,0x69,0x61,0x6c])][_0x59e3e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x557909[_0x59e3e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1e79c6/0x3e8:0xe10*_0x28708e;return _0x557909[_0x59e3e9([0x65,0x78,0x70])]<_0x39039a;}function _0x4bda7b(){const _0x18af36=_0x557909[_0x59e3e9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x18af36&&(!!_0x18af36[_0x59e3e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59e3e9([0x2a]))||(!!_0x18af36[_0x59e3e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59e3e9([0x54,0x43]))||!(!_0x18af36[_0x59e3e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59e3e9([0x52,0x54,0x43]))||!_0x4be7b3())));}function _0x201941(){const _0x59adb3=_0x557909[_0x59e3e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x59adb3||0x0==_0x59adb3[_0x59e3e9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x15a942}=new URL(window[_0x59e3e9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x59adb3[_0x59e3e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15a942))return!0x0;const _0x4e8ebf=_0x15a942[_0x59e3e9([0x73,0x70,0x6c,0x69,0x74])](_0x59e3e9([0x2e]));return _0x59adb3[_0x59e3e9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3e5e43=>_0x3e5e43[_0x59e3e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59e3e9([0x2a])))[_0x59e3e9([0x6d,0x61,0x70])](_0x4a131e=>_0x4a131e[_0x59e3e9([0x73,0x70,0x6c,0x69,0x74])](_0x59e3e9([0x2e])))[_0x59e3e9([0x73,0x6f,0x6d,0x65])](_0x4740e1=>_0x4e8ebf[_0x59e3e9([0x65,0x76,0x65,0x72,0x79])]((_0x4eb258,_0x2c9a4e)=>_0x4740e1[_0x2c9a4e]===_0x4eb258||_0x4740e1[_0x2c9a4e]===_0x59e3e9([0x2a])));}function _0x25787c(){return _0x21117f&&_0xcf8294?new window[(_0x59e3e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x584595,_0x2b7ddc)=>{_0x21117f[_0x59e3e9([0x74,0x68,0x65,0x6e])](_0x584595,_0x2b7ddc),_0xcf8294[_0x59e3e9([0x74,0x68,0x65,0x6e])](_0x374403=>{_0x374403!=_0x59e3e9([0x56,0x61,0x6c,0x69,0x64])&&_0x584595(_0x374403);},_0x2b7ddc);}):_0x21117f||_0xcf8294||_0x59e3e9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x48c972(_0x33f83c,_0x3b6f42){return new window[(_0x59e3e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4afe82=>{if(_0x250266())return _0x4afe82(_0x59e3e9([0x56,0x61,0x6c,0x69,0x64]));_0x213505(),_0x35d866[_0x59e3e9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x59e3e9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2c2c4c=!0x1;const _0x3f2dd1=_0x5a6ab6();function _0x428ec9(_0x3a74a2){return!!_0x3a74a2&&(typeof _0x3a74a2===_0x59e3e9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3a74a2===_0x59e3e9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3a74a2[_0x59e3e9([0x74,0x68,0x65,0x6e])]===_0x59e3e9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3a74a2[_0x59e3e9([0x63,0x61,0x74,0x63,0x68])]===_0x59e3e9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5e1b38(_0x2b9dd2){_0x51a3ff(_0x2b9dd2)[_0x59e3e9([0x74,0x68,0x65,0x6e])](_0x2cbdf5=>{if(!_0x2cbdf5||_0x2cbdf5[_0x59e3e9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x59e3e9([0x6f,0x6b]))return _0x59e3e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1dae3c(_0x370a80(_0x3f2dd1+_0x3b6f42))!=_0x2cbdf5[_0x59e3e9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x59e3e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x59e3e9([0x56,0x61,0x6c,0x69,0x64]);})[_0x59e3e9([0x74,0x68,0x65,0x6e])](_0x595ff7=>(_0x42c0ce(),_0x595ff7),()=>{const _0x158e32=_0x41bdb3();return null==_0x158e32?(_0x42c0ce(),_0x59e3e9([0x56,0x61,0x6c,0x69,0x64])):_0x59e3e9(_0x1e79c6-_0x158e32>(0x4cbe79d5^_0x12c84e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x59e3e9([0x74,0x68,0x65,0x6e])](_0x4afe82)[_0x59e3e9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4afe82(_0x59e3e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x39a8b9=0x68841355^_0x12c84e;function _0x42c0ce(){const _0x2c454f=_0x59e3e9([0x6c,0x6c,0x63,0x74,0x2d])+_0x1dae3c(_0x370a80(_0x33f83c)),_0x1a0a67=_0x376501(_0x1dae3c(window[_0x59e3e9([0x4d,0x61,0x74,0x68])][_0x59e3e9([0x63,0x65,0x69,0x6c])](_0x1e79c6/_0x39a8b9)));window[_0x59e3e9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59e3e9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2c454f,_0x1a0a67);}function _0x41bdb3(){const _0x1c0ff6=_0x59e3e9([0x6c,0x6c,0x63,0x74,0x2d])+_0x1dae3c(_0x370a80(_0x33f83c)),_0x40595c=window[_0x59e3e9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x59e3e9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c0ff6);return _0x40595c?window[_0x59e3e9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x376501(_0x40595c),0x10)*_0x39a8b9:null;}function _0x51a3ff(_0x5c7b84){return new window[(_0x59e3e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc60687,_0x6fa022)=>{_0x5c7b84[_0x59e3e9([0x74,0x68,0x65,0x6e])](_0xc60687,_0x6fa022),window[_0x59e3e9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x6fa022,0x68b32915^_0x12c84e);});}}_0x35d866[_0x59e3e9([0x6f,0x6e])](_0x59e3e9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x454365,_0x20bf26)=>{if(_0x20bf26[0x0]!=_0x33f83c)return _0x4afe82(_0x59e3e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x20bf26[0x1]={..._0x20bf26[0x1],[_0x59e3e9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3f2dd1};},{[_0x59e3e9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59e3e9([0x68,0x69,0x67,0x68])}),_0x35d866[_0x59e3e9([0x6f,0x6e])](_0x59e3e9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2537c7=>{_0x428ec9(_0x2537c7[_0x59e3e9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2c2c4c=!0x0,_0x5e1b38(_0x2537c7[_0x59e3e9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x59e3e9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x59e3e9([0x6c,0x6f,0x77])}),_0x207f6f[_0x59e3e9([0x74,0x68,0x65,0x6e])](()=>{_0x2c2c4c||_0x4afe82(_0x59e3e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x250266(){return _0x35d866[_0x59e3e9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59e3e9([0x76,0x69,0x65,0x77])][_0x59e3e9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x59e3e9([0x61,0x75,0x74,0x6f]);}function _0x213505(){_0x35d866[_0x59e3e9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59e3e9([0x76,0x69,0x65,0x77])][_0x59e3e9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x59e3e9([0x61,0x75,0x74,0x6f]);}}function _0x3af264(_0x348096){const _0x1edfe6=[new window[(_0x59e3e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d6a5c=>setTimeout(_0x5d6a5c,0x68bbc319^_0x12c84e)),_0x207f6f[_0x59e3e9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x59e3e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x236a5d=>{let _0x5662cc=0x0;_0x35d866[_0x59e3e9([0x6d,0x6f,0x64,0x65,0x6c])][_0x59e3e9([0x6f,0x6e])](_0x59e3e9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2891fe,_0x3a3cfa)=>{_0x3a3cfa[0x0][_0x59e3e9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5662cc++,_0x5662cc==(0x68b2fc2d^_0x12c84e)&&(_0x236a5d(),_0x2891fe[_0x59e3e9([0x6f,0x66,0x66])]());});}))];return window[_0x59e3e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x59e3e9([0x72,0x61,0x63,0x65])](_0x1edfe6)[_0x59e3e9([0x74,0x68,0x65,0x6e])](()=>_0x348096);}async function _0x56e76e(){await _0x207f6f,_0x35d866[_0x59e3e9([0x6d,0x6f,0x64,0x65,0x6c])][_0x59e3e9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3ed70b,_0x35d866[_0x59e3e9([0x6d,0x6f,0x64,0x65,0x6c])][_0x59e3e9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3ed70b,_0x35d866[_0x59e3e9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x59e3e9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4be7b3(){return _0xf62935(_0x59e3e9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x536aeb(_0x59e3e9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x59e3e9([0x73,0x74,0x61,0x74,0x65])]==_0x59e3e9([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x807bfa(_0x236373){const _0x2c87bd=_0x56e15e();_0x35d866[_0x2c87bd]=_0x59e3e9([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x236373,_0x236373!=_0x59e3e9([0x56,0x61,0x6c,0x69,0x64])&&_0x56e76e();}function _0x56e15e(){const _0x1bc45c=window[_0x59e3e9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x59e3e9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x59e3e9([0x6e,0x6f,0x77])]())[_0x59e3e9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x59e3e9([0x2e]),'');let _0x250dce=_0x59e3e9([0x67]);for(let _0x37e3b2=0x0;_0x37e3b2<_0x1bc45c[_0x59e3e9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x37e3b2+=0x2){let _0x206a55=window[_0x59e3e9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1bc45c[_0x59e3e9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x37e3b2,_0x37e3b2+0x2));_0x206a55>=_0x55a945[_0x59e3e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x206a55-=_0x55a945[_0x59e3e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x250dce+=_0x55a945[_0x206a55];}return _0x250dce;}function _0x1670a4(){const _0x556756=_0xa5b69a[_0x59e3e9([0x73,0x70,0x6c,0x69,0x74])](_0x59e3e9([0x2e]));if(0x3!=_0x556756[_0x59e3e9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x316791(_0x556756[0x1]);function _0x316791(_0x292f21){const _0x342ea4=_0x30c847(_0x292f21);return _0x342ea4&&_0x1d5c9f()?_0x342ea4:null;function _0x1d5c9f(){const _0x27e555=_0x342ea4[_0x59e3e9([0x6a,0x74,0x69])],_0x2e475e=window[_0x59e3e9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27e555[_0x59e3e9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x27e555[_0x59e3e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x58f105={..._0x342ea4,[_0x59e3e9([0x6a,0x74,0x69])]:_0x27e555[_0x59e3e9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x27e555[_0x59e3e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x58f105[_0x59e3e9([0x76,0x63])],_0x370a80(_0x58f105)==_0x2e475e;}}}async function _0x537caf(){let _0x351100=!0x0;try{const _0xc6b19d=_0xa5b69a[_0x59e3e9([0x73,0x70,0x6c,0x69,0x74])](_0x59e3e9([0x2e])),[_0x5cf5b5,_0x29d971,_0x5eaa5f]=_0xc6b19d;return _0x42b955(_0x5cf5b5),await _0x6513e1(_0x5cf5b5,_0x29d971,_0x5eaa5f),_0x351100;}catch(_0x2b9b2b){return!0x1;}function _0x42b955(_0x3ae350){const _0x10023e=_0x30c847(_0x3ae350);_0x10023e&&_0x10023e[_0x59e3e9([0x61,0x6c,0x67])]==_0x59e3e9([0x45,0x53,0x32,0x35,0x36])||(_0x351100=!0x1);}async function _0x6513e1(_0x59dd76,_0x48957b,_0x7ede88){const _0x4012a7=window[_0x59e3e9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x59e3e9([0x66,0x72,0x6f,0x6d])](_0x2e1cd5(_0x7ede88),_0x1d3bac=>_0x1d3bac[_0x59e3e9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x56ff02=new window[(_0x59e3e9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x59e3e9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x59dd76+_0x59e3e9([0x2e])+_0x48957b),_0x4149b0=window[_0x59e3e9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x59e3e9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4149b0)return;const _0x10cb10=await _0x4149b0[_0x59e3e9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x59e3e9([0x6a,0x77,0x6b]),_0x4d2beb,{[_0x59e3e9([0x6e,0x61,0x6d,0x65])]:_0x59e3e9([0x45,0x43,0x44,0x53,0x41]),[_0x59e3e9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x59e3e9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x59e3e9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4149b0[_0x59e3e9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x59e3e9([0x6e,0x61,0x6d,0x65])]:_0x59e3e9([0x45,0x43,0x44,0x53,0x41]),[_0x59e3e9([0x68,0x61,0x73,0x68])]:{[_0x59e3e9([0x6e,0x61,0x6d,0x65])]:_0x59e3e9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x10cb10,_0x4012a7,_0x56ff02)||(_0x351100=!0x1);}}function _0x30c847(_0x480718){return _0x480718[_0x59e3e9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x59e3e9([0x65,0x79]))?JSON[_0x59e3e9([0x70,0x61,0x72,0x73,0x65])](_0x2e1cd5(_0x480718)):null;}function _0x2e1cd5(_0x2174d0){return window[_0x59e3e9([0x61,0x74,0x6f,0x62])](_0x2174d0[_0x59e3e9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x59e3e9([0x2b]))[_0x59e3e9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x59e3e9([0x2f])));}function _0x370a80(_0x38c051){let _0x5c9437=0x1505;function _0x41a52e(_0xaafb10){for(let _0x28a767=0x0;_0x28a767<_0xaafb10[_0x59e3e9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x28a767++){const _0x3aa86d=_0xaafb10[_0x59e3e9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x28a767);_0x5c9437=(_0x5c9437<<0x5)+_0x5c9437+_0x3aa86d,_0x5c9437&=_0x5c9437;}}function _0x455d84(_0x339d38){Array[_0x59e3e9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x339d38)?_0x339d38[_0x59e3e9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x455d84):_0x339d38&&typeof _0x339d38==_0x59e3e9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x59e3e9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x339d38)[_0x59e3e9([0x73,0x6f,0x72,0x74])]()[_0x59e3e9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3b5270,_0x714080])=>{_0x41a52e(_0x3b5270),_0x455d84(_0x714080);}):_0x41a52e(window[_0x59e3e9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x339d38));}return _0x455d84(_0x38c051),_0x5c9437>>>0x0;}function _0x1dae3c(_0x3f1821){return _0x3f1821[_0x59e3e9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x59e3e9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x59e3e9([0x30]));}function _0x376501(_0x33302f){return _0x33302f[_0x59e3e9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x59e3e9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x59e3e9([0x6a,0x6f,0x69,0x6e])]('');}function _0xf62935(_0x54209e){return _0x35d866[_0x59e3e9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x59e3e9([0x68,0x61,0x73])](_0x54209e);}function _0x536aeb(_0x407a2f){return _0x35d866[_0x59e3e9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x59e3e9([0x67,0x65,0x74])](_0x407a2f);}function _0x3ed70b(){}function _0x59e3e9(_0xc02a4b){return _0xc02a4b['map'](_0x555f0a=>String['fromCharCode'](_0x555f0a))['join']('');}_0x807bfa(await _0x3d0039());}(this);}set['adapter'](_0x3fdc10){if(this['_adapter'])throw new _0x351529('track-changes-adapter-already-set',this);this['_adapter']=_0x3fdc10;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x437c10=!0x1,toJSON:_0x3a15d1=!0x1}={}){const _0x3183c2=[];for(const _0x471523 of this['_suggestions']['values']())_0x437c10&&!_0x471523['isInContent']||_0x3183c2['push'](_0x471523);return _0x3a15d1?_0x3183c2['map'](_0xaff411=>_0xaff411['toJSON']()):_0x3183c2;}['getSuggestion'](_0x4ae5c4){const _0x584afb=this['_suggestions']['get'](_0x4ae5c4);if(!_0x584afb)throw new _0x351529('track-changes-suggestion-not-found',this);return _0x584afb;}['hasSuggestion'](_0x247b24){return this['_suggestions']['has'](_0x247b24);}['addSuggestionData'](_0xff6779){const {authorId:_0x229ed4,id:_0x132786,attributes:_0x4ecf44}=_0xff6779,[_0x6ab575,_0x4febfa]=_0xff6779['type']['split'](':'),_0x4325e3=this['_suggestions']['get'](_0x132786)||this['_createSuggestion'](_0x6ab575,_0x4febfa,_0x132786,_0x229ed4,_0x4ecf44);if(this['_addThreadToSuggestion'](_0x4325e3),this['_checkSuggestionCorrectness'](_0x4325e3,_0x6ab575,_0x4febfa||null,_0x229ed4),_0x4325e3['createdAt']=_0xff6779['createdAt'],_0x4325e3['_isDataLoaded']=!0x0,_0x4ecf44&&_0x4ecf44['@external']){const _0x135a89=_0x4ecf44['@external'],_0x1c64ba=this['_getExternalAuthor'](_0x135a89['authorName']);_0x4325e3['authoredAt']=_0x135a89['createdAt'],_0x4325e3['author']=_0x1c64ba,_0x4325e3['isExternal']=!0x0;}else _0x4325e3['authoredAt']=_0xff6779['createdAt'];switch(_0xff6779['data']&&(_0x4325e3['data']=_0xff6779['data']),_0xff6779['attributes']&&(_0x4325e3['attributes']=_0xff6779['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4325e3['_saved']=!0x0),this['_suggestionState']['get'](_0x4325e3)){case'notReady':this['_suggestionState']['set'](_0x4325e3,'dataReady');break;case'markerReady':_0x4325e3['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4325e3])),this['_refreshSuggestionsChain'](new Set([_0x4325e3])),this['_suggestionState']['set'](_0x4325e3,'ready'),this['fire']('suggestionLoaded',_0x4325e3)):this['_suggestionState']['set'](_0x4325e3,'removed');}return _0x4325e3;}['acceptSuggestion'](_0x5381ab){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x13c713 of _0x5381ab['getAllAdjacentSuggestions']())_0x13c713['accept']();});});}['discardSuggestion'](_0xa18451){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x19e199 of _0xa18451['getAllAdjacentSuggestions']())_0x19e199['discard']();});});}['enableCommand'](_0xa96245,_0x43c94c){const _0x1734e1=this['editor']['commands']['get'](_0xa96245);if(!_0x1734e1)throw new _0x351529('track-changes-command-not-found',this,{'commandName':_0xa96245});if(this['_enabledCommands']['has'](_0x1734e1))throw new _0x351529('track-changes-enable-command-twice',this,{'commandName':_0xa96245});this['_enabledCommands']['add'](_0x1734e1),_0x43c94c&&_0x1734e1['on']('execute',(_0x5633eb,_0x1a6451)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1a6451['length']>0x0&&_0x1a6451[_0x1a6451['length']-0x1]&&_0x1a6451[_0x1a6451['length']-0x1]['forceDefaultExecution']?_0x1a6451['pop']():(_0x5633eb['return']=_0x43c94c((..._0x4a3e04)=>_0x1734e1['execute'](..._0x4a3e04,{'forceDefaultExecution':!0x0}),..._0x1a6451),_0x5633eb['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4f7daa){let _0x526eb6,_0x100df8;const _0x322929=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x526eb6=_0x4f7daa();}catch(_0x1a145f){_0x100df8=_0x1a145f;}return _0x322929||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x100df8&&_0x351529['rethrowUnexpectedError'](_0x100df8,this),_0x526eb6;}['markInsertion'](_0x35e628,_0x399b70=null,_0x59cfab={}){if(_0x35e628['isCollapsed'])return null;const _0x4c96c4=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0xbec0b7,meta:_0x1346dd}of this['_findSuggestions'](_0x35e628,'insertion'))if(_0x1346dd['isOwn']){if(!_0x1346dd['isNextTo']){if(_0x1346dd['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0xbec0b7,_0x59cfab))continue;return _0xbec0b7;}if(zt(_0xbec0b7,_0x59cfab))return _0xbec0b7;this['_breakSuggestionMarker'](_0xbec0b7,_0x35e628['start'],_0x35e628['end']);break;}if(_0x399b70==_0xbec0b7['subType']&&zt(_0xbec0b7,_0x59cfab)){const _0x470f27=_0xbec0b7['getFirstRange']();return _0x470f27['start']['isEqual'](_0x35e628['end'])?this['_setSuggestionRange'](_0xbec0b7,this['_model']['createRange'](_0x35e628['start'],_0x470f27['end'])):this['_setSuggestionRange'](_0xbec0b7,this['_model']['createRange'](_0x470f27['start'],_0x35e628['end'])),_0xbec0b7;}}const _0x3c7b77=_0x5a6ab6(),_0x67582a=_0x4c96c4['id'],_0x4eb5fa=_0x399b70?'insertion:'+_0x399b70:'insertion',_0x545433=this['_setSuggestionData']({'id':_0x3c7b77,'type':_0x4eb5fa,'createdAt':new Date(),'authorId':_0x67582a,'attributes':_0x59cfab});return this['_addSuggestionMarker'](_0x4eb5fa,_0x3c7b77,_0x67582a,_0x35e628),_0x545433;}['markMultiRangeInsertion'](_0x160808,_0x5a6568='multi',_0xcc4843={}){const _0x424074=this['editor']['plugins']['get']('Users')['me'],_0x4eef1f=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5a6568,'join');for(const _0x13c4f4 of this['getSuggestions']())if(_0x13c4f4['author']['id']==_0x424074['id']&&'insertion'==_0x13c4f4['type']&&_0x13c4f4['subType']==_0x5a6568&&zt(_0x13c4f4,_0xcc4843)&&(_0x4eef1f(_0x13c4f4['getRanges'](),_0x160808)||_0x4eef1f(_0x160808,_0x13c4f4['getRanges']()))){for(const _0x2e93e0 of _0x160808)_0x13c4f4['addRange'](_0x2e93e0);return _0x13c4f4;}for(const {suggestion:_0x254086,meta:_0x5a1309}of this['_findSuggestions'](_0x160808,'insertion')){if(!_0x5a1309['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5a1309['containsRangeInObject'])continue;if(!zt(_0x254086,_0xcc4843))continue;let _0xb2dec6=!0x0;for(const _0x116a28 of _0x254086['getRanges']())for(const _0x519a87 of _0x160808)if(!_0x116a28['containsRange'](_0x519a87)){_0xb2dec6=!0x1;break;}if(_0xb2dec6)return _0x254086;}const _0x11c37f=_0x5a6ab6(),_0x2d7d1f=_0x424074['id'],_0x2aa491='insertion:'+_0x5a6568,_0x481e05=this['_setSuggestionData']({'id':_0x11c37f,'type':_0x2aa491,'createdAt':new Date(),'authorId':_0x2d7d1f,'attributes':_0xcc4843});for(const _0xd6c8f7 of _0x160808)this['_addSuggestionMarker'](_0x2aa491,_0x11c37f,_0x2d7d1f,_0xd6c8f7,u['getMultiRangeId']());return _0x481e05;}['markInlineFormat'](_0x14d331,_0x149c27,_0x39cf8d=null,_0x195e68={}){if(_0x39cf8d=_0x39cf8d||Gt(_0x149c27),_0x14d331['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2ef0b7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x39cf8d,'accept');return this['forceDefaultExecution'](()=>_0x2ef0b7([_0x14d331],_0x149c27,_0x195e68)),null;}const _0x16b35c=this['editor']['plugins']['get']('Users')['me'],_0x3da647=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x53dd9b,meta:_0x35cc54}of this['_findSuggestions'](_0x14d331,'insertion'))_0x35cc54['isOwn']&&!_0x35cc54['isInsideObject']&&_0x3da647['push'](..._0x53dd9b['getRanges']());}const _0x2ac84f=function(_0x4152dd,_0x2a657f){const _0x1fa43b=[];for(const _0x156421 of _0x2a657f){const _0xcdcf98=_0x4152dd['getIntersection'](_0x156421);_0xcdcf98&&_0x1fa43b['push'](_0xcdcf98);}return _0x1fa43b;}(_0x14d331,_0x3da647),_0x3c6bdb=function(_0x254dc1,_0x1fd83a){const _0x4ad9a4=[_0x254dc1];for(const _0x3cf242 of _0x1fd83a){let _0x3e1320=0x0;for(;_0x3e1320<_0x4ad9a4['length'];){const _0x43e27f=_0x4ad9a4[_0x3e1320]['getDifference'](_0x3cf242);_0x4ad9a4['splice'](_0x3e1320,0x1,..._0x43e27f),_0x3e1320+=_0x43e27f['length'];}}return _0x4ad9a4;}(_0x14d331,_0x3da647);_0x2ac84f['length']&&this['_model']['change'](()=>{for(const _0x449229 of _0x2ac84f){const _0x1913ba=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x39cf8d,'accept');this['forceDefaultExecution'](()=>_0x1913ba([_0x449229],_0x149c27,_0x195e68));}});for(const _0x4fbcfe of _0x3c6bdb){let _0x4a469f=null,_0x3c03f3=_0x4fbcfe['start'],_0x4ea397=_0x4fbcfe['end'];for(const {suggestion:_0x1ce643,meta:_0x577e28}of this['_findSuggestions'](_0x4fbcfe,'formatInline')){if(!_0x577e28['isOwn'])continue;if(_0x1ce643['subType']!=_0x39cf8d)continue;if(!zt(_0x1ce643,_0x195e68))continue;const _0x1fd51f=_0x1ce643['getFirstRange']();if(_0x1fd51f['containsRange'](_0x4fbcfe,!0x0))return null;_0x3c03f3=_0x3c03f3['isBefore'](_0x1fd51f['start'])?_0x3c03f3:_0x1fd51f['start'],_0x4ea397=_0x4ea397['isAfter'](_0x1fd51f['end'])?_0x4ea397:_0x1fd51f['end'],_0x4a469f?_0x1fd51f['start']['isBefore'](_0x4a469f['getFirstRange']()['start'])?(_0x4a469f['removeMarkers'](),_0x4a469f=_0x1ce643):_0x1ce643['removeMarkers']():_0x4a469f=_0x1ce643;}const _0x4b542c=this['_model']['createRange'](_0x3c03f3,_0x4ea397);if(_0x4a469f)this['_setSuggestionRange'](_0x4a469f,_0x4b542c);else{const _0x11618e=_0x5a6ab6(),_0x2230e3=_0x16b35c['id'];this['_setSuggestionData']({'id':_0x11618e,'type':'formatInline:'+_0x39cf8d,'data':_0x149c27,'createdAt':new Date(),'authorId':_0x2230e3,'attributes':_0x195e68}),this['_addSuggestionMarker']('formatInline:'+_0x39cf8d,_0x11618e,_0x2230e3,_0x4b542c);}}return null;}['markBlockFormat'](_0x53b4a8,_0x338723,_0x55eeeb=[],_0x55edc7=null,_0x43f1f4={}){_0x338723['formatGroupId']||(_0x338723['formatGroupId']=_0x338723['commandName']),_0x338723['multipleBlocks']=_0x53b4a8['is']('range'),_0x55edc7=_0x55edc7||Gt(_0x338723);const _0x5f04c8=_0x55eeeb['map'](_0xd942e4=>Jt(_0xd942e4,this['_model'])),_0x1f7e4c=_0x53b4a8['is']('range')?_0x53b4a8:Jt(_0x53b4a8,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5b5fa8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x55edc7,'accept');return this['forceDefaultExecution'](()=>_0x5b5fa8([_0x1f7e4c],_0x338723,_0x43f1f4)),null;}_0x5f04c8['push'](_0x1f7e4c);let _0x1ad080=!0x0;for(const _0x33b6fc of _0x5f04c8)if(!this['_rangeIsInLocalUserInsertion'](_0x33b6fc)){_0x1ad080=!0x1;break;}if(_0x1ad080&&'always'!==this['_trackFormatChanges']){const _0x12e743=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x55edc7,'accept');return this['forceDefaultExecution'](()=>_0x12e743([_0x1f7e4c],_0x338723,_0x43f1f4)),null;}let _0x5745b3=null,_0x38dc7d=_0x1f7e4c['start'],_0x7aea44=_0x1f7e4c['end'];for(const {suggestion:_0x838f49,meta:_0x217fa4}of this['_findSuggestions'](_0x1f7e4c,'formatBlock')){if(!_0x217fa4['isOwn'])continue;if(_0x217fa4['isNextTo']||_0x217fa4['containsRangeInObject']||_0x217fa4['isInsideObject'])continue;if(_0x838f49['data']['formatGroupId']!=_0x338723['formatGroupId'])continue;if(!zt(_0x838f49,_0x43f1f4))continue;const _0x4fc606=_0x838f49['getFirstRange']();if(_0x838f49['subType']==_0x55edc7){if(_0x4fc606['containsRange'](_0x1f7e4c,!0x0))return null;_0x38dc7d=_0x38dc7d['isBefore'](_0x4fc606['start'])?_0x38dc7d:_0x4fc606['start'],_0x7aea44=_0x7aea44['isAfter'](_0x4fc606['end'])?_0x7aea44:_0x4fc606['end'],_0x5745b3?_0x4fc606['start']['isBefore'](_0x5745b3['getFirstRange']()['start'])?(_0x5745b3['removeMarkers'](),_0x5745b3=_0x838f49):_0x838f49['removeMarkers']():_0x5745b3=_0x838f49;}else{const _0x10da05=_0x1f7e4c['getIntersection'](_0x4fc606);this['_cutOutSuggestionMarker'](_0x838f49,_0x10da05);}}const _0x167cd6=this['editor']['plugins']['get']('Users')['me'],_0x56f808=_0x5a6ab6(),_0x11d4b8=_0x167cd6['id'];if(_0x5745b3)return this['_setSuggestionRange'](_0x5745b3,this['_model']['createRange'](_0x38dc7d,_0x7aea44)),_0x5745b3;{const _0x3751c=this['_setSuggestionData']({'id':_0x56f808,'type':'formatBlock:'+_0x55edc7,'data':_0x338723,'createdAt':new Date(),'authorId':_0x11d4b8,'attributes':_0x43f1f4});return this['_addSuggestionMarker']('formatBlock:'+_0x55edc7,_0x56f808,_0x11d4b8,this['_model']['createRange'](_0x38dc7d,_0x7aea44)),_0x3751c;}}['markMultiRangeBlockFormat'](_0x5cff5,_0x49e3a1,_0x4e6453=[],_0x43d2aa=null,_0x5f14e0={}){_0x49e3a1['formatGroupId']||(_0x49e3a1['formatGroupId']=_0x49e3a1['commandName']);const _0x2edad4=_0x5cff5[0x0];_0x49e3a1['multipleBlocks']=_0x2edad4['is']('range'),_0x43d2aa=_0x43d2aa||Gt(_0x49e3a1);const _0x25b217=_0x4e6453['map'](_0x15ba8e=>Jt(_0x15ba8e,this['_model'])),_0x2b2512=_0x2edad4['is']('range')?_0x5cff5:_0x5cff5['map'](_0x4a2c0a=>Jt(_0x4a2c0a,this['_model']));if('never'===this['_trackFormatChanges']){const _0x290f25=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x43d2aa,'accept');return this['forceDefaultExecution'](()=>_0x290f25(_0x2b2512,_0x49e3a1,_0x5f14e0)),null;}_0x25b217['push'](..._0x2b2512);let _0x3f8ef1=!0x0;for(const _0x5afc96 of _0x25b217)if(!this['_rangeIsInLocalUserInsertion'](_0x5afc96)){_0x3f8ef1=!0x1;break;}if(_0x3f8ef1&&'always'!==this['_trackFormatChanges']){const _0x55fdb3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x43d2aa,'accept');return this['forceDefaultExecution'](()=>_0x55fdb3(_0x2b2512,_0x49e3a1,_0x5f14e0)),null;}const _0x5b50f9=this['editor']['plugins']['get']('Users')['me'];for(const _0x3d4f15 of this['getSuggestions']()){if(_0x3d4f15['author']['id']!=_0x5b50f9['id'])continue;if('formatBlock'!=_0x3d4f15['type']||_0x3d4f15['data']['formatGroupId']!=_0x49e3a1['formatGroupId'])continue;if(!zt(_0x3d4f15,_0x5f14e0))continue;const _0x4c3878=_0x3d4f15['subType']==_0x43d2aa;for(let _0x5ca391=0x0;_0x5ca391<_0x2b2512['length'];_0x5ca391++){const _0x1882ce=_0x2b2512[_0x5ca391];for(const _0x561c20 of _0x3d4f15['getMarkers']()){const _0x55831d=_0x561c20['getRange']();if(_0x1882ce['isEqual'](_0x55831d)){_0x4c3878?(_0x2b2512['splice'](_0x5ca391,0x1),_0x5ca391--):_0x3d4f15['removeMarker'](_0x561c20['name']);break;}}}}if(0x0==_0x2b2512['length'])return null;const _0x5d8f13=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x43d2aa,'join');for(const _0x4d443a of this['getSuggestions']())if(_0x4d443a['author']['id']==_0x5b50f9['id']&&'formatBlock'==_0x4d443a['type']&&_0x4d443a['data']['formatGroupId']==_0x49e3a1['formatGroupId']&&_0x4d443a['subType']==_0x43d2aa&&zt(_0x4d443a,_0x5f14e0)&&(_0x5d8f13(_0x4d443a['getRanges'](),_0x2b2512)||_0x5d8f13(_0x2b2512,_0x4d443a['getRanges']()))){for(const _0x1d142c of _0x2b2512)_0x4d443a['addRange'](_0x1d142c);return _0x4d443a;}const _0x2de603=_0x5a6ab6(),_0x3202f2=_0x5b50f9['id'],_0x1c0046='formatBlock:'+_0x43d2aa,_0x1c783f=this['_setSuggestionData']({'id':_0x2de603,'type':_0x1c0046,'data':_0x49e3a1,'createdAt':new Date(),'authorId':_0x3202f2,'attributes':_0x5f14e0});for(const _0x7eb019 of _0x2b2512)this['_addSuggestionMarker'](_0x1c0046,_0x2de603,_0x3202f2,_0x7eb019,u['getMultiRangeId']());return _0x1c783f;}['markDeletion'](_0x49c3c9,_0x580869=null,_0x203ca8={}){if(_0x49c3c9['isCollapsed'])return null;const _0x3583a8=this['editor']['plugins']['get']('Users')['me'],_0x9ee6d0=new _0x252b19(_0x49c3c9['start'],_0x49c3c9['end']);for(const {suggestion:_0x1b1466,meta:_0x4511aa}of this['_findSuggestions'](_0x9ee6d0,'insertion'))if(_0x4511aa['isOwn']&&!_0x4511aa['isNextTo']){if(_0x1b1466['isMultiRange']){const _0x2f66ad=_0x1b1466['getRanges']()['filter'](_0x157db9=>'$graveyard'!=_0x157db9['root']['rootName']);_0x2f66ad['every'](_0x72734b=>_0x9ee6d0['containsRange'](_0x72734b,!0x0))&&_0x1b1466['discard']();if(_0x2f66ad['some'](_0x1e9f3a=>_0x1e9f3a['containsRange'](_0x9ee6d0,!0x0))){const _0xf8a33c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x580869,'accept');return this['forceDefaultExecution'](()=>_0xf8a33c([_0x9ee6d0],null,_0x203ca8)),null;}}else{const _0x46e283=_0x9ee6d0['getIntersection'](_0x1b1466['getFirstRange']());null!==_0x46e283&&_0x1b1466['_onDiscard']([_0x46e283],null,_0x203ca8);}}if(_0x9ee6d0['detach'](),_0x9ee6d0['isCollapsed']||'$graveyard'==_0x9ee6d0['root']['rootName'])return null;let _0x854244=null,_0x3010ae=_0x9ee6d0['start'],_0x521994=_0x9ee6d0['end'];const _0x34118d=this['_findSuggestions'](_0x9ee6d0,'deletion');for(const {suggestion:_0x1f83be,meta:_0x2bedfd}of _0x34118d){const _0x2b22c9=this['_model']['createRange'](_0x3010ae,_0x521994);if(_0x2bedfd['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2bedfd['containsRangeInObject']&&!_0x2bedfd['isInsideObject'])){if(_0x1f83be['isMultiRange']){if(!zt(_0x1f83be,_0x203ca8))continue;let _0x520fd9=!0x0;for(const _0x20b4a2 of _0x1f83be['getRanges']()){if(_0x20b4a2['containsRange'](_0x2b22c9,!0x0))return _0x1f83be;_0x2b22c9['containsRange'](_0x20b4a2)||(_0x520fd9=!0x1);}_0x520fd9&&_0x1f83be['discard']();}else{const _0x568a75=_0x1f83be['getFirstRange']();if(_0x568a75['containsRange'](_0x2b22c9,!0x0))return _0x1f83be;if(!zt(_0x1f83be,_0x203ca8)){_0x2b22c9['containsRange'](_0x568a75)?_0x1f83be['removeMarkers']():_0x568a75['containsPosition'](_0x3010ae)?_0x3010ae=_0x568a75['end']:_0x568a75['containsPosition'](_0x521994)&&(_0x521994=_0x568a75['start']);continue;}_0x3010ae=_0x3010ae['isBefore'](_0x568a75['start'])?_0x3010ae:_0x568a75['start'],_0x521994=_0x521994['isAfter'](_0x568a75['end'])?_0x521994:_0x568a75['end'],_0x203ca8=Object['assign']({},_0x1f83be['attributes']),_0x854244?_0x568a75['start']['isBefore'](_0x854244['getFirstRange']()['start'])?(_0x854244['removeMarkers'](),_0x854244=_0x1f83be):_0x1f83be['removeMarkers']():_0x854244=_0x1f83be;}}}if(_0x854244)return this['_setSuggestionRange'](_0x854244,this['_model']['createRange'](_0x3010ae,_0x521994)),_0x854244;{const _0x100e03=_0x5a6ab6(),_0x4348a0=this['_model']['createRange'](_0x3010ae,_0x521994),_0xa32308=_0x3583a8['id'],_0x319213=_0x580869?'deletion:'+_0x580869:'deletion',_0x4afd6e=this['_setSuggestionData']({'id':_0x100e03,'type':_0x319213,'createdAt':new Date(),'authorId':_0xa32308,'attributes':_0x203ca8});return this['_addSuggestionMarker'](_0x319213,_0x100e03,_0xa32308,_0x4348a0),_0x4afd6e;}}['markMultiRangeDeletion'](_0x1bc777,_0x254bac='multi',_0x59a6fd={}){const _0x4b2a9d=this['editor']['plugins']['get']('Users')['me'],_0x5d9a3f=_0x1bc777['map'](_0x37f4ff=>new _0x252b19(_0x37f4ff['start'],_0x37f4ff['end'])),_0x1bfc99=new Set();for(const {suggestion:_0x560f95,meta:_0xab7e59}of this['_findSuggestions'](_0x5d9a3f,'insertion'))_0xab7e59['isOwn']&&!_0xab7e59['isNextTo']&&_0x1bfc99['add'](_0x560f95);for(const _0xbebc2f of _0x1bfc99)if(_0xbebc2f['isMultiRange']){const _0x218c43=_0xbebc2f['getRanges']();(!_0xbebc2f['attributes']||!_0xbebc2f['attributes']['skipNestingCheck'])&&(_0x218c43['every'](_0x5c7110=>_0x5d9a3f['some'](_0x193bbc=>_0x193bbc['containsRange'](_0x5c7110,!0x0)))&&_0xbebc2f['discard']());if(_0x5d9a3f['every'](_0x1bffed=>_0x218c43['some'](_0x2d0d5e=>_0x2d0d5e['containsRange'](_0x1bffed,!0x0)))){const _0x14b0ee=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x254bac,'accept');return this['forceDefaultExecution'](()=>_0x14b0ee(_0x1bc777,null,_0x59a6fd)),null;}}else{const _0x6d5be1=_0xbebc2f['getFirstRange']();_0x5d9a3f['some'](_0x3c196f=>_0x3c196f['containsRange'](_0x6d5be1,!0x0))&&_0xbebc2f['discard']();if(_0x5d9a3f['every'](_0x5cd294=>_0x6d5be1['containsRange'](_0x5cd294,!0x0))){const _0x26b518=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x254bac,'accept');return this['forceDefaultExecution'](()=>_0x26b518(_0x5d9a3f,null,_0x59a6fd)),null;}}const _0x3c5de3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x254bac,'join');let _0x2b51ac=null;for(const _0x49b374 of this['getSuggestions']())if(_0x49b374['author']['id']==_0x4b2a9d['id']&&_0x49b374['isInContent']&&'deletion'==_0x49b374['type']&&_0x49b374['subType']==_0x254bac&&zt(_0x49b374,_0x59a6fd)&&(_0x3c5de3(_0x49b374['getRanges'](),_0x5d9a3f)||_0x3c5de3(_0x5d9a3f,_0x49b374['getRanges']()))){if(_0x2b51ac){if(_0x49b374['commentThread']&&_0x49b374['commentThread']['length'])continue;for(const _0x2598cd of _0x49b374['getRanges']())_0x2b51ac['isIntersectingWithRange'](_0x2598cd)||_0x2b51ac['addRange'](_0x2598cd);_0x49b374['removeMarkers']();}else{_0x2b51ac=_0x49b374;for(const _0x293c12 of _0x5d9a3f)_0x49b374['isIntersectingWithRange'](_0x293c12)||_0x49b374['addRange'](_0x293c12);}}if(_0x2b51ac)return _0x2b51ac;_0x1bfc99['clear']();for(const {suggestion:_0x11fd3d,meta:_0x233cb3}of this['_findSuggestions'](_0x5d9a3f,'deletion'))_0x233cb3['isOwn']&&(this['_mergeNestedSuggestions']||!_0x233cb3['containsRangeInObject']&&!_0x233cb3['isInsideObject'])&&zt(_0x11fd3d,_0x59a6fd)&&_0x1bfc99['add'](_0x11fd3d);for(const _0x1a9b25 of _0x1bfc99){const _0x1b2fb2=_0x1a9b25['getRanges']();if(!_0x59a6fd||!_0x59a6fd['skipNestingCheck']){if(_0x5d9a3f['every'](_0xe7242b=>_0x1b2fb2['some'](_0xc0277b=>_0xc0277b['containsRange'](_0xe7242b,!0x0))))return _0x1a9b25;}(!_0x1a9b25['attributes']||!_0x1a9b25['attributes']['skipNestingCheck'])&&(_0x1b2fb2['every'](_0x353449=>_0x5d9a3f['some'](_0x181c04=>_0x181c04['containsRange'](_0x353449,!0x0)))&&_0x1a9b25['discard']());}const _0x5ef634=_0x5a6ab6(),_0x58438f=_0x4b2a9d['id'],_0x378de3='deletion:'+_0x254bac,_0x5246cc=this['_setSuggestionData']({'id':_0x5ef634,'type':_0x378de3,'createdAt':new Date(),'authorId':_0x58438f,'attributes':_0x59a6fd});for(const _0xdfe6c8 of _0x5d9a3f)_0xdfe6c8['detach'](),_0xdfe6c8['isCollapsed']||'$graveyard'==_0xdfe6c8['root']['rootName']||this['_addSuggestionMarker'](_0x378de3,_0x5ef634,_0x58438f,_0xdfe6c8,u['getMultiRangeId']());return _0x5246cc;}['markAttributeChange'](_0x504874,_0x3ad9ad,_0x38f903,_0x1ed3a1,_0x1a9aee){if(_0x504874['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x521bea=this['editor']['plugins']['get']('Users')['me']['id'],_0x57e4e9=Array['from'](this['_suggestions']['values']())['filter'](_0x48456c=>'attribute'==_0x48456c['type']&&_0x48456c['data']['key']==_0x3ad9ad&&_0x48456c['isIntersectingWithRange'](_0x504874));if('default'===this['_trackFormatChanges']){const _0x1b45f0=this['_findSuggestions'](_0x504874,'insertion')['filter'](({meta:_0x40bd59})=>_0x40bd59['isOwn']&&!_0x40bd59['isInsideObject']&&!_0x40bd59['isNextTo'])['map'](({suggestion:_0x39546e})=>_0x39546e);_0x57e4e9['unshift'](..._0x1b45f0);}const _0x497651=new Map([[_0x504874,_0x38f903]]);for(const _0x3607c7 of _0x57e4e9){const _0x1ecf11='attribute'==_0x3607c7['type']?_0x3607c7['data']['oldValue']:void 0x0,_0x264e21=_0x3607c7['getFirstRange'](),_0x1eaaeb=Array['from'](_0x497651['keys']())['find'](_0x483cea=>_0x483cea['isIntersecting'](_0x264e21));if(!_0x1eaaeb)continue;const _0x18fed2=_0x1eaaeb['getDifference'](_0x264e21);this['_isBlockAttribute'](_0x3ad9ad)&&'insertion'==_0x3607c7['type']&&0x0!=_0x18fed2['length']||(_0x497651['delete'](_0x1eaaeb),_0x18fed2['forEach'](_0x525984=>{_0x497651['set'](_0x525984,_0x38f903);}),'insertion'!=_0x3607c7['type']&&_0x1ecf11!=_0x1ed3a1&&_0x497651['set'](_0x1eaaeb['getIntersection'](_0x264e21),_0x1ecf11));}const _0x3bce84=[];for(const [_0x1f52c9,_0x3fb773]of _0x497651){const _0x1fed1b=_0x5a6ab6(),_0x187a35={'key':_0x3ad9ad,'oldValue':_0x3fb773,'newValue':_0x1ed3a1};_0x3ad9ad['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':_0x3ad9ad});const _0x481433=('attribute:'+(_0x3ad9ad+'|'+Gt({'newValue':_0x1ed3a1})))['substring'](0x0,0x3c),_0x2634c3=this['_setSuggestionData']({'id':_0x1fed1b,'type':_0x481433,'data':_0x187a35,'createdAt':new Date(),'authorId':_0x521bea,'attributes':_0x1a9aee});_0x3bce84['push'](_0x2634c3),this['_addSuggestionMarker'](_0x481433,_0x1fed1b,_0x521bea,_0x1f52c9);}return _0x3bce84;}['enableDefaultAttributesIntegration'](_0x14050a){this['enableCommand'](_0x14050a,(_0x5e69d7,..._0x10f05b)=>{this['_recordAttributeChanges'](()=>{_0x5e69d7(..._0x10f05b);});});}['registerBlockAttribute'](_0x5be042){this['_blockAttributeKeys']['add'](_0x5be042);}['registerInlineAttribute'](_0x462ebf){this['_inlineAttributeKeys']['add'](_0x462ebf);}['_getAttributeKey'](_0x46f180){return'attribute'==_0x46f180['type']?_0x46f180['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2f4272,_0x4f0999){const _0x3efdbd=_0x2f4272['getFirstMarker']();this['_model']['change'](_0x2aacbe=>{_0x2aacbe['updateMarker'](_0x3efdbd,{'range':_0x4f0999});});}['_addThreadToSuggestion'](_0x5839a7){const _0x3b0931=_0x5839a7['id'],_0x3cffce=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3b0931)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3cffce,'threadId':_0x3b0931,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1accde=this['_commentsRepository']['getCommentThread'](_0x3b0931);_0x1accde['unbind']('isRemovable'),_0x1accde['isRemovable']=!0x1,_0x5839a7['commentThread']=_0x1accde;}['_checkSuggestionCorrectness'](_0x1e071d,_0x5749e7,_0x259aa6,_0x4f47fa){if(_0x1e071d['type']!=_0x5749e7||_0x1e071d['subType']!=_0x259aa6||_0x1e071d['creator']['id']!=_0x4f47fa)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x351529('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4da009,_0x1189fc){const _0x5d7f19=_0x4da009['getFirstRange']();if(_0x1189fc['isEqual'](_0x5d7f19))_0x4da009['removeMarkers']();else{if(_0x5d7f19['containsRange'](_0x1189fc)){const _0x4c8f0a=this['_model']['createPositionAt'](_0x1189fc['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4da009,this['_model']['createRange'](_0x5d7f19['start'],_0x4c8f0a));const _0x1d7328=_0x5a6ab6(),_0x5a57c1=_0x4da009['creator']['id'],_0x2ff67f=_0x4da009['type']+':'+_0x4da009['subType'];this['_setSuggestionData']({'id':_0x1d7328,'type':_0x2ff67f,'createdAt':new Date(),'authorId':_0x5a57c1,'data':_0x4da009['data'],'attributes':_0x4da009['attributes']});const _0x4136a2=this['_model']['createPositionAt'](_0x1189fc['end']['parent'],'after'),_0x542459=this['_model']['createRange'](_0x4136a2,_0x5d7f19['end']);this['_addSuggestionMarker'](_0x2ff67f,_0x1d7328,_0x5a57c1,_0x542459);}else{if(_0x5d7f19['containsPosition'](_0x1189fc['start'])){const _0x45d718=this['_model']['createPositionAt'](_0x1189fc['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4da009,this['_model']['createRange'](_0x5d7f19['start'],_0x45d718));}else{const _0x3e2c3e=this['_model']['createPositionAt'](_0x1189fc['end']['parent'],'after');this['_setSuggestionRange'](_0x4da009,this['_model']['createRange'](_0x3e2c3e,_0x5d7f19['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x24c54b){for(const {suggestion:_0x29370f,meta:_0x297d03}of this['_findSuggestions'](_0x24c54b,'insertion')){if(!_0x297d03['isOwn'])continue;const _0x5e406f=_0x29370f['getRanges']();for(const _0x1cc8cf of _0x5e406f)if(!_0x24c54b['getDifference'](_0x1cc8cf)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x498f6b){const _0x34f5c9=this['editor']['plugins']['get']('Users')['getUser'](_0x498f6b);if(!_0x34f5c9)throw new _0x351529('track-changes-user-not-found',this);return _0x34f5c9;}['_getExternalAuthor'](_0x57107f){const _0x20a790=this['editor']['plugins']['get']('Users'),_0x1eafac=_0x29356c('external:'+_0x57107f),_0x82ccb=_0x20a790['getUser'](_0x1eafac);return _0x82ccb||_0x20a790['addUser']({'id':_0x1eafac,'name':_0x57107f});}['_createSuggestion'](_0x4f7565,_0x4d0fe1,_0x227fb2,_0x58c676,_0x58d7a4){const _0x22e043=this['_getAuthorFromId'](_0x58c676),_0x2ee53a=this['_suggestionFactory']['buildSuggestion'](_0x4f7565,_0x4d0fe1,_0x227fb2,_0x22e043,_0x58d7a4,_0x10bff2=>{this['_updateSuggestionData'](_0x227fb2,{'attributes':_0x10bff2});const _0x1e5e19=this['getSuggestion'](_0x227fb2);this['_joinWithAdjacentSuggestions'](new Set([_0x1e5e19])),this['_refreshSuggestionsChain'](new Set([_0x1e5e19]));});return this['listenTo'](_0x2ee53a,'accept',()=>{this['_updateSuggestionData'](_0x227fb2,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2ee53a,'discard',()=>{this['_updateSuggestionData'](_0x227fb2,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x227fb2,_0x2ee53a),this['_suggestionState']['set'](_0x2ee53a,'notReady'),_0x2ee53a;}['_splitMarkerName'](_0x2caaaa){const _0x21a8b5=_0x2caaaa['split'](':');return{'group':_0x21a8b5[0x0],'type':_0x21a8b5[0x1],'subType':_0x21a8b5['length']>=0x5?_0x21a8b5[0x2]:null,'id':_0x21a8b5['length']<0x5?_0x21a8b5[0x2]:_0x21a8b5[0x3],'authorId':_0x21a8b5['length']<0x5?_0x21a8b5[0x3]:_0x21a8b5[0x4],'markerCount':0x6==_0x21a8b5['length']?_0x21a8b5[0x5]:null};}['_breakSuggestionMarker'](_0x495503,_0x439425,_0x4336e5){const _0x404527=_0x495503['getFirstRange'](),_0x2728f2=_0x404527['start'],_0x170704=_0x404527['end'];this['_setSuggestionRange'](_0x495503,this['_model']['createRange'](_0x2728f2,_0x439425));const _0x9e8b36=_0x5a6ab6(),_0xe7d2f8=_0x495503['creator']['id'],_0x396d17=_0x495503['type']+(_0x495503['subType']?':'+_0x495503['subType']:'');this['_setSuggestionData']({'id':_0x9e8b36,'type':_0x396d17,'createdAt':new Date(),'authorId':_0xe7d2f8,'originalSuggestionId':_0x495503['id'],'attributes':_0x495503['attributes'],'data':_0x495503['data']});const _0x43cdde=this['_getAttributeKey'](_0x495503);('formatBlock'==_0x495503['type']||_0x43cdde&&this['_isBlockAttribute'](_0x43cdde))&&(_0x4336e5=this['_model']['createPositionBefore'](_0x4336e5['parent'])),this['_addSuggestionMarker'](_0x396d17,_0x9e8b36,_0xe7d2f8,this['_model']['createRange'](_0x4336e5,_0x170704));}['_findSuggestions'](_0x2c4bba,_0x562121=null){const _0x1a92bc=[],_0x3b54f8=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2c4bba)||(_0x2c4bba=[_0x2c4bba]);for(const _0x3f7b00 of this['getSuggestions']()){if(!_0x3f7b00['isInContent'])continue;if(_0x562121&&_0x3f7b00['type']!=_0x562121)continue;let _0x18760a=!0x1;for(const _0x215011 of _0x3f7b00['getRanges']()){for(const _0x205da1 of _0x2c4bba){const _0x5efc73=_0x205da1['start']['isEqual'](_0x215011['end'])||_0x205da1['end']['isEqual'](_0x215011['start']);if(_0x5efc73||_0x205da1['getIntersection'](_0x215011)){const _0x592d22=_0x205da1['containsRange'](_0x215011)&&Ut(this['_model']['schema'],_0x215011['start'],_0x205da1),_0x588363=_0x215011['containsRange'](_0x205da1)&&Ut(this['_model']['schema'],_0x205da1['start'],_0x215011);_0x1a92bc['push']({'suggestion':_0x3f7b00,'meta':{'isOwn':_0x3b54f8==_0x3f7b00['author'],'isNextTo':_0x5efc73,'isInsideObject':_0x592d22,'containsRangeInObject':_0x588363}}),_0x18760a=!0x0;break;}}if(_0x18760a)break;}}return _0x1a92bc;}['_addSuggestionMarker'](_0x4d14eb,_0x2d7f34,_0x1ea0a5,_0x542c15,_0x80f598){this['_model']['change'](_0x4909e5=>{let _0x26f9ff='suggestion:'+_0x4d14eb+':'+_0x2d7f34+':'+_0x1ea0a5;_0x80f598&&(_0x26f9ff=_0x26f9ff+':'+_0x80f598),_0x4909e5['addMarker'](_0x26f9ff,{'range':_0x542c15,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2e2422){const _0x5219a3=_0x2e2422['previous'],_0x573e19=_0x2e2422['next'];_0x2e2422['previous']=null,_0x2e2422['next']=null,null!=_0x5219a3&&_0x5219a3['next']==_0x2e2422&&(_0x5219a3['next']=_0x573e19),null!=_0x573e19&&_0x573e19['previous']==_0x2e2422&&(_0x573e19['previous']=_0x5219a3),'ready'==this['_suggestionState']['get'](_0x2e2422)&&(this['_suggestionState']['set'](_0x2e2422,'removed'),this['fire']('suggestionUnloaded',_0x2e2422,_0x5219a3,_0x573e19));}['_setSuggestionData'](_0x11168d){const _0x524f15=_0x11168d['id'],_0x4a90ca=this['addSuggestionData'](_0x11168d);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1df49d=this['editor']['plugins']['get']('PendingActions'),_0x3857dd=_0x4a90ca['hasComments'],_0x6798c=_0x4a90ca['subType']?_0x4a90ca['type']+':'+_0x4a90ca['subType']:_0x4a90ca['type'],_0x55f0c4=this['editor']['locale'],_0x236df9=_0x1df49d['add'](o(_0x55f0c4,'PENDING_ACTION_SUGGESTION')),_0x17c88d={'id':_0x524f15,'type':_0x6798c,'hasComments':_0x3857dd,'data':_0x11168d['data']||null,'originalSuggestionId':_0x11168d['originalSuggestionId']||null,'attributes':_0x4a90ca['attributes']};this['_adapter']['addSuggestion'](_0x17c88d)['then'](_0x5999d5=>{_0x4a90ca['_saved']=!0x0,_0x1df49d['remove'](_0x236df9),_0x5999d5&&_0x5999d5['createdAt']&&(this['_suggestions']['get'](_0x524f15)['createdAt']=_0x5999d5['createdAt']);})['catch'](_0x1da652=>{throw _0x3fd0c4('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4a90ca['discard']();}),_0x4a90ca['stopListening'](),this['_suggestions']['delete'](_0x4a90ca['id']),this['_suggestionState']['delete'](_0x4a90ca),_0x1da652;});}return _0x4a90ca;}['_isBlockAttribute'](_0x32f764){return this['_blockAttributeKeys']['has'](_0x32f764);}['_updateSuggestionData'](_0x34dd93,_0xd4a126){const _0x327e0c=this['editor']['plugins']['get']('PendingActions'),_0x4d9b63=this['getSuggestion'](_0x34dd93);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4d9b63['_saved']){const _0x26a131=_0x327e0c['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x34dd93,_0xd4a126)['then'](()=>{_0x327e0c['remove'](_0x26a131);});}else _0x4d9b63['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x34dd93,_0xd4a126);});}}['_getSuggestionData'](_0x2b581b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x351529('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2b581b);}['_handleNewSuggestionMarker'](_0x44ebe2){const {id:_0x259171,type:_0x49a88b,subType:_0x4dc1d6,authorId:_0xc607e7}=this['_splitMarkerName'](_0x44ebe2),_0x594d97=this['_suggestions']['get'](_0x259171)||this['_createSuggestion'](_0x49a88b,_0x4dc1d6,_0x259171,_0xc607e7,{});switch(this['_checkSuggestionCorrectness'](_0x594d97,_0x49a88b,_0x4dc1d6,_0xc607e7),this['_suggestionState']['get'](_0x594d97)){case'notReady':this['_getSuggestionData'](_0x259171)['then'](_0x3c23fe=>{let _0x85c1aa=Promise['resolve']();_0x3c23fe['hasComments']&&(_0x85c1aa=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x259171})),_0x85c1aa['then'](()=>{this['addSuggestionData'](_0x3c23fe)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x594d97,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x259171,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x594d97,'ready'),this['fire']('suggestionLoaded',_0x594d97);break;case'ready':this['fire']('suggestionChanged',_0x594d97);}return _0x594d97['addMarkerName'](_0x44ebe2),_0x594d97;}['_refreshSuggestionsChain'](_0x300d05){const _0x31a1e9=Array['from'](_0x300d05),_0x457c4e=_0x31a1e9['filter'](_0x530f29=>'attribute'==_0x530f29['type']);this['_refreshAttributeSuggestionsChain'](_0x457c4e);const _0x70f3f8=_0x31a1e9['filter'](_0x19b206=>!_0x19b206['isMultiRange']&&'attribute'!=_0x19b206['type']),_0x17d9d7=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x51689d=>!_0x51689d['isMultiRange']&&'attribute'!=_0x51689d['type']),_0x2d03f4=_0x17d9d7['filter'](_0x262023=>!_0x300d05['has'](_0x262023)),_0x48e27d=new Map(_0x17d9d7['map'](_0x4cb1c0=>[_0x4cb1c0,this['_suggestionFactory']['getSuggestionCallback'](_0x4cb1c0['type'],_0x4cb1c0['subType'],'chain')])),_0x4df26d=new Map(_0x17d9d7['map'](_0x1e3ab4=>[_0x1e3ab4,_0x1e3ab4['getFirstRange']()])),_0x371933=new Set(),_0x129703=new Set();for(let _0x269d03=0x0;_0x269d03<_0x70f3f8['length'];_0x269d03++)_0x5284d4(_0x70f3f8[_0x269d03],_0x70f3f8,_0x269d03+0x1);for(let _0x1ed712=0x0;_0x1ed712<_0x70f3f8['length'];_0x1ed712++)_0x5284d4(_0x70f3f8[_0x1ed712],_0x2d03f4,0x0);const _0x27bfde=new Set();for(let _0x5ced9c=0x0;_0x5ced9c<_0x70f3f8['length'];_0x5ced9c++){const _0x314d03=_0x70f3f8[_0x5ced9c];!_0x129703['has'](_0x314d03)&&_0x314d03['previous']&&(_0x27bfde['add'](_0x314d03['previous']),_0x314d03['previous']['next']===_0x314d03&&(_0x314d03['previous']['next']=null),_0x314d03['previous']=null),!_0x371933['has'](_0x314d03)&&_0x314d03['next']&&(_0x27bfde['add'](_0x314d03['next']),_0x314d03['next']['previous']===_0x314d03&&(_0x314d03['next']['previous']=null),_0x314d03['next']=null);}function _0x5284d4(_0x1aabac,_0x36219b,_0x5cb5cc){for(let _0x2c6bf0=_0x5cb5cc;_0x2c6bf0<_0x36219b['length'];_0x2c6bf0++){const _0x115e92=_0x3dd71a(_0x1aabac,_0x36219b[_0x2c6bf0]);_0x115e92&&(_0x115e92[0x0]['next']=_0x115e92[0x1],_0x115e92[0x1]['previous']=_0x115e92[0x0],_0x371933['add'](_0x115e92[0x0]),_0x129703['add'](_0x115e92[0x1]));}}function _0x3dd71a(_0x264a66,_0x243a22){if(_0x264a66['author']['id']!==_0x243a22['author']['id'])return null;const _0x243eea=_0x48e27d['get'](_0x264a66)(_0x264a66,_0x243a22,_0x4df26d['get'](_0x264a66),_0x4df26d['get'](_0x243a22));if(!_0x243eea)return null;return _0x48e27d['get'](_0x243a22)(_0x264a66,_0x243a22,_0x4df26d['get'](_0x264a66),_0x4df26d['get'](_0x243a22))?_0x243eea[0x1]['commentThread']&&_0x243eea[0x1]['commentThread']['length']?null:_0x243eea:null;}_0x27bfde['size']&&this['_refreshSuggestionsChain'](_0x27bfde);}['_refreshAttributeSuggestionsChain'](_0x4c3e21){if(0x0==_0x4c3e21['length'])return;const _0x2dd0f8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x37d138=>'attribute'==_0x37d138['type']&&_0x37d138['_isDataLoaded']),_0x273c3e=[],_0x2573b0=new Map();for(const _0x2009f5 of _0x2dd0f8){const _0x1f5a17=_0x29356c(_0x2009f5['attributes']);_0x2573b0['has'](_0x1f5a17)||(_0x2573b0['set'](_0x1f5a17,_0x273c3e['length']),_0x273c3e['push']([]));const _0x5c51e4=_0x2573b0['get'](_0x1f5a17);_0x273c3e[_0x5c51e4]['push'](_0x2009f5);}!(function(){_0x273c3e['sort']((_0x82136e,_0x31f558)=>{const _0x396b12=_0x82136e[0x0]['createdAt'],_0x342ae2=_0x31f558[0x0]['createdAt'];return _0x396b12==_0x342ae2?_0x82136e[0x0]['attributes']['groupId']<_0x31f558[0x0]['attributes']['groupId']?-0x1:0x1:_0x396b12<_0x342ae2?-0x1:0x1;});for(const _0x24fc98 of _0x273c3e)_0x24fc98['sort']((_0x13062c,_0x55503c)=>_0x13062c['id']<_0x55503c['id']?-0x1:0x1);}());for(let _0x5778f0=0x0;_0x5778f0<_0x273c3e['length'];_0x5778f0++){if(0x0==_0x273c3e[_0x5778f0]['length'])continue;const _0x27c9e7=[];for(let _0x32f7ad=_0x5778f0+0x1;_0x32f7ad<_0x273c3e['length'];_0x32f7ad++)0x0!=_0x273c3e[_0x32f7ad]['length']&&_0x3b5f34(_0x273c3e[_0x5778f0],_0x273c3e[_0x32f7ad])&&_0x27c9e7['push'](_0x32f7ad);for(const _0x125ad0 of _0x27c9e7)_0x273c3e[_0x5778f0]=_0x273c3e[_0x5778f0]['concat'](_0x273c3e[_0x125ad0]),_0x273c3e[_0x125ad0]=[];}for(const _0x399fa5 of _0x273c3e)for(let _0x291d61=0x0;_0x291d61<_0x399fa5['length'];_0x291d61++){const _0x4889d7=_0x399fa5[_0x291d61+0x1]||null;_0x399fa5[_0x291d61]['next']!==_0x4889d7&&(_0x399fa5[_0x291d61]['next']=_0x4889d7);}for(const _0x34fbe7 of _0x273c3e)for(let _0x5981ea=0x0;_0x5981ea<_0x34fbe7['length'];_0x5981ea++){const _0xa165f5=_0x34fbe7[_0x5981ea-0x1]||null;_0x34fbe7[_0x5981ea]['previous']!==_0xa165f5&&(_0x34fbe7[_0x5981ea]['previous']=_0xa165f5);}function _0x3b5f34(_0x4db3a9,_0x556448){if(_0x4db3a9[0x0]['attributes']['groupId']!==_0x556448[0x0]['attributes']['groupId']&&_0x4db3a9[0x0]['author']!==_0x556448[0x0]['author'])return!0x1;if(!function(_0x7e4fda,_0xe81ef2){if(!_0x7e4fda['hasComments']&&!_0xe81ef2['hasComments'])return!0x0;if(_0x7e4fda['hasComments']&&_0xe81ef2['hasComments'])return!0x1;if(_0x7e4fda['hasComments']&&_0xe81ef2['createdAt']<_0x7e4fda['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xe81ef2['hasComments']&&_0x7e4fda['createdAt']<_0xe81ef2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4db3a9[0x0],_0x556448[0x0]))return!0x1;const _0x458b37=xt(_0x4db3a9[0x0]['attributes'],'groupId'),_0x1aa269=xt(_0x556448[0x0]['attributes'],'groupId');if(!_0x12e3f4(_0x458b37,_0x1aa269))return!0x1;return!!_0x4db3a9['every'](_0x46ac76=>_0x556448['some'](_0xc8aa52=>_0x46ac76['getFirstRange']()['isEqual'](_0xc8aa52['getFirstRange']())))&&_0x556448['every'](_0x469d58=>_0x4db3a9['some'](_0x549805=>_0x469d58['getFirstRange']()['isEqual'](_0x549805['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x398508){const _0xe40edf=Array['from'](_0x398508),_0x1a954e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x418653=_0x1a954e['filter'](_0x492c3c=>!_0x398508['has'](_0x492c3c)),_0x111120=new Map(_0xe40edf['map'](_0x392df7=>[_0x392df7,this['_suggestionFactory']['getSuggestionCallback'](_0x392df7['type'],_0x392df7['subType'],'join')])),_0x25622a=new Map(_0x1a954e['map'](_0x2a89d1=>[_0x2a89d1,_0x2a89d1['getRanges']()]));for(let _0x56bc2c=0x0;_0x56bc2c<_0xe40edf['length'];_0x56bc2c++){if(_0x2da09a(this,_0xe40edf[_0x56bc2c],_0xe40edf,_0x56bc2c+0x1))return!0x0;}for(let _0x8462d9=0x0;_0x8462d9<_0xe40edf['length'];_0x8462d9++){if(_0x2da09a(this,_0xe40edf[_0x8462d9],_0x418653,0x0))return!0x0;}return!0x1;function _0x2da09a(_0x5bfc51,_0xca5b14,_0x5d22b6,_0x1ff805){for(let _0x20b891=_0x1ff805;_0x20b891<_0x5d22b6['length'];_0x20b891++){const _0x53195c=_0x5d22b6[_0x20b891];if(_0x53195c['type']!==_0xca5b14['type']||_0x53195c['author']['id']!==_0xca5b14['author']['id']||_0x53195c['subType']!==_0xca5b14['subType'])continue;if(!qt(_0xca5b14,_0x53195c))continue;if('attribute'==_0xca5b14['type']&&_0xca5b14['data']['oldValue']!=_0x53195c['data']['oldValue'])continue;if('attribute'==_0xca5b14['type']&&_0x5bfc51['_isBlockAttribute'](_0xca5b14['data']['key']))continue;if('formatBlock'==_0xca5b14['type']){const _0x3f3d51=_0x5bfc51['editor']['model'],_0xf0fb0e=_0xca5b14['getContainedElement']();if(_0xf0fb0e&&(_0x3f3d51['schema']['isObject'](_0xf0fb0e)||_0x3f3d51['schema']['isLimit'](_0xf0fb0e)))continue;}const _0x23f3e5=_0x111120['get'](_0xca5b14),_0x1be47a=_0x25622a['get'](_0xca5b14),_0x46c8d1=_0x25622a['get'](_0x53195c),_0x6021c2=_0xca5b14['commentThread']&&_0xca5b14['commentThread']['length'],_0x48076f=_0x53195c['commentThread']&&_0x53195c['commentThread']['length'];if(!_0x6021c2&&_0x23f3e5(_0x46c8d1,_0x1be47a))return _0x5bfc51['_joinSuggestions'](_0x53195c,_0xca5b14),_0x25622a['delete'](_0xca5b14),!0x0;if(!_0x48076f&&_0x23f3e5(_0x1be47a,_0x46c8d1))return _0x5bfc51['_joinSuggestions'](_0xca5b14,_0x53195c),_0x25622a['delete'](_0x53195c),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1c487f,_0x4e58c3){if(_0x1c487f['isMultiRange']){for(const _0x5ce459 of _0x4e58c3['getRanges']())_0x1c487f['addRange'](_0x5ce459);}else{const _0x32f25a=_0x4e58c3['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1c487f,this['_model']['createRange'](_0x1c487f['getFirstRange']()['start'],_0x32f25a));}_0x4e58c3['removeMarkers']();}['_getMarkerAnnouncementText'](_0x207f35,_0x455590,_0x543c91){const _0x1a3de0=_0x207f35['startsWith']('format')||_0x207f35['startsWith']('attribute')?'FORMATTING':_0x207f35['toUpperCase']();return o(this['editor']['locale'],_0x455590+'_'+_0x1a3de0+'_SUGGESTION_ANNOUNCEMENT',_0x543c91);}['_initAriaMarkerChangeAnnouncements'](){const _0x25167d=this['editor'];if(!_0x25167d['ui'])return;const {ariaLiveAnnouncer:_0x45bc45}=_0x25167d['ui'];_0x50b575(this['_model'],({left:_0x5765c2,entered:_0xb5026c})=>{for(const _0x5b07c2 of _0x5765c2){const {group:_0xd232ce,type:_0xf1204a}=this['_splitMarkerName'](_0x5b07c2['name']);if('suggestion'===_0xd232ce){_0x45bc45['announce'](this['_getMarkerAnnouncementText'](_0xf1204a,'LEAVE'));break;}}for(const _0x33f1d8 of _0xb5026c){const {group:_0x4b8c4f,type:_0x436729}=this['_splitMarkerName'](_0x33f1d8['name']);if('suggestion'===_0x4b8c4f){_0x45bc45['announce'](this['_getMarkerAnnouncementText'](_0x436729,'ENTER',_0x3bc5a0(_0x1208b8)));break;}}});}['_processAttributeChanges'](_0x14fde5){if(this['_recordAttributeSuggestions'])return!0x1;const _0x121376=this['editor'],_0x4beead=_0x121376['model']['document']['differ']['getChanges']();if(0x0==_0x4beead['length'])return!0x1;const _0x2574c2=[],_0x1ac832=_0x4beead['filter'](_0x1f0a0b=>'attribute'==_0x1f0a0b['type']),_0xac116=_0x4beead['filter'](_0x1fa1be=>'insert'==_0x1fa1be['type']&&'$text'!=_0x1fa1be['name']),_0x12e730=_0x4beead['filter'](_0x395c17=>'remove'==_0x395c17['type']&&'$text'!=_0x395c17['name']);for(const _0x31b11e of _0x1ac832)_0x2574c2['push']({'key':_0x31b11e['attributeKey'],'newValue':_0x31b11e['attributeNewValue'],'oldValue':_0x31b11e['attributeOldValue'],'range':Lt(_0x31b11e['range'],_0x121376['model'])});for(const _0xdc9df0 of _0xac116){const _0x125050=_0x12e730['find'](_0xb36691=>_0xb36691['position']['isEqual'](_0xdc9df0['position']));_0x125050&&_0x2574c2['push']({'key':m,'newValue':_0xdc9df0['name'],'oldValue':_0x125050['name'],'range':_0x121376['model']['createRangeOn'](_0xdc9df0['position']['nodeAfter'])});}return 0x0!=_0x2574c2['length']&&this['_reduceExistingSuggestions'](_0x14fde5,_0x2574c2);}['_processAttributeSuggestions'](_0x65d037){let _0x39b4e4=!0x1;const _0x3683a1=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x34a02d=>_0x34a02d['data']['newRange']&&_0x34a02d['name']['startsWith']('suggestion:attribute:'));for(const _0xea5623 of _0x3683a1){const {subType:_0xf903ae,id:_0x3b97e8}=this['_splitMarkerName'](_0xea5623['name']),_0x197420=_0xf903ae['split']('|')[0x0];for(const _0x4fe5e7 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4fe5e7['id']!=_0x3b97e8&&'attribute'==_0x4fe5e7['type']&&_0x4fe5e7['data']&&_0x4fe5e7['data']['key']==_0x197420&&_0x4fe5e7['getFirstRange']()['isIntersecting'](_0xea5623['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4fe5e7,_0xea5623['data']['newRange'],_0x65d037),_0x39b4e4=!0x0);}return _0x39b4e4;}['_recordAttributeChanges'](_0x57afef){this['_recordAttributeSuggestions']=!0x0,_0x57afef();}['_isRegisteredAttribute'](_0x54a56e){const _0x269acf=this['_isBlockAttribute'](_0x54a56e),_0x8a57c4=this['_inlineAttributeKeys']['has'](_0x54a56e);return _0x269acf||_0x8a57c4;}['_reduceExistingSuggestions'](_0x5c29a7,_0x1ccc21){if(0x0==_0x1ccc21['length'])return!0x1;let _0x4cc142=!0x1;for(const _0xa43b24 of _0x1ccc21){const _0x3bd217=this['_findSuggestions'](_0xa43b24['range'],'attribute')['filter'](_0x210d5a=>!_0x210d5a['meta']['isNextTo'])['map'](_0x2af76d=>_0x2af76d['suggestion']),_0x5a9d67=_0x29356c({'newValue':_0xa43b24['newValue']});_0x3bd217['filter'](_0x12411d=>{const [_0x580161,_0x4334e5]=_0x12411d['subType']['split']('|');return _0x580161==_0xa43b24['key']&&_0x4334e5!=_0x5a9d67;})['forEach'](_0x2484e1=>{this['_reduceSuggestionAttributeRange'](_0x2484e1,_0xa43b24['range'],_0x5c29a7),_0x4cc142=!0x0;});}return _0x4cc142;}['_reduceSuggestionAttributeRange'](_0x5f4946,_0x378681,_0x397dd5){const _0x43370f=_0x5f4946['getFirstRange']()['getDifference'](_0x378681);0x0!==_0x43370f['length']?0x1!==_0x43370f['length']?this['_breakSuggestionMarker'](_0x5f4946,_0x378681['start'],_0x378681['end']):this['_setSuggestionRange'](_0x5f4946,_0x43370f[0x0]):_0x397dd5['removeMarker'](_0x5f4946['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x42fe73){this['_editor']=_0x42fe73,this['_model']=_0x42fe73['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x161a80,_0x437720,_0x302095,_0x522e5e,_0x231831,_0x52add3){return new u(this['_model'],{'type':_0x161a80,'subType':_0x437720,'id':_0x302095,'author':_0x522e5e,'creator':_0x522e5e,'attributes':_0x231831,'onAttributesChange':_0x52add3,'onAccept':(..._0x27f76e)=>this['getSuggestionCallback'](_0x161a80,_0x437720,'accept')(..._0x27f76e),'onDiscard':(..._0x5a3ef3)=>this['getSuggestionCallback'](_0x161a80,_0x437720,'discard')(..._0x5a3ef3)});}['registerCustomCallback'](_0x4f62fd,_0x1f0f8b,_0x44758f,_0x3d2af3){const _0x316619=_0x4f62fd+':'+_0x1f0f8b+':'+_0x44758f;this['_customCallbacks']['set'](_0x316619,_0x3d2af3);}['getSuggestionCallback'](_0x3ea401,_0x3bdde7,_0x452741){const _0x4db012=_0x3ea401+':'+_0x3bdde7+':'+_0x452741;return this['_customCallbacks']['get'](_0x4db012)||this['_defaultCallbacks']['get'](_0x3ea401+':'+_0x452741);}['_registerDefaultCallbacks'](){const _0x27eb00=()=>!0x1,_0x1745a8=_0x33f57a=>{_0x33f57a['sort']((_0x32dc23,_0x529553)=>_0x32dc23['start']['isBefore'](_0x529553['start'])?0x1:-0x1),this['_model']['change'](_0xa64e2=>{for(const _0x59160e of _0x33f57a){let _0x224fef;_0x224fef=_0x59160e['end']['isAtEnd']&&_0x59160e['end']['parent']==_0x59160e['start']['nodeAfter']?_0xa64e2['createSelection'](_0x59160e['start']['nodeAfter'],'on'):_0xa64e2['createSelection'](_0x59160e),this['_model']['deleteContent'](_0x224fef,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x10e88d=(_0x24d5b7,_0x2933bd)=>{_0x2933bd&&this['_model']['change'](_0x5d228b=>{const {commandName:_0x4aec00,commandParams:_0x248b1a=[]}=_0x2933bd,_0xeb08c1=_0x24d5b7['map'](_0x3f8d3c=>(Vt(_0x3f8d3c)&&(_0x3f8d3c=this['_model']['createRange'](_0x3f8d3c['end'])),_0x3f8d3c))['filter'](_0x10eeef=>'$graveyard'!==_0x10eeef['root']['rootName']);if(_0xeb08c1['length']<0x1)return;const _0x430215=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x33d89b=>_0x252b19['fromRange'](_0x33d89b));_0x5d228b['setSelection'](_0xeb08c1);for(const _0x5e8419 of this['_editor']['commands']['commands']())_0x5e8419['refresh']();_0x248b1a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4aec00,..._0x248b1a);const _0x33aeae=_0x430215['filter'](_0x328489=>'$graveyard'!=_0x328489['root']['rootName']);_0x33aeae['length']>0x0&&_0x5d228b['setSelection'](_0x33aeae);for(const _0x3240a4 of _0x430215)_0x3240a4['detach']();});},_0x582c56=(_0x31906e,_0x1836c4)=>0x1==_0x31906e['length']&&0x1==_0x1836c4['length']&&_0x31906e[0x0]['end']['isEqual'](_0x1836c4[0x0]['start']),_0x2a80e0=(_0x409cbb,_0x1d6bd8,_0x3c404c,_0x39a9ca)=>Ht(_0x409cbb,_0x1d6bd8,_0x3c404c,_0x39a9ca)?[_0x409cbb,_0x1d6bd8]:Ht(_0x1d6bd8,_0x409cbb,_0x39a9ca,_0x3c404c)?[_0x1d6bd8,_0x409cbb]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x27eb00),this['_defaultCallbacks']['set']('insertion:discard',_0x1745a8),this['_defaultCallbacks']['set']('insertion:join',_0x582c56),this['_defaultCallbacks']['set']('insertion:chain',_0x2a80e0),this['_defaultCallbacks']['set']('deletion:accept',_0x1745a8),this['_defaultCallbacks']['set']('deletion:discard',_0x27eb00),this['_defaultCallbacks']['set']('deletion:join',_0x582c56),this['_defaultCallbacks']['set']('deletion:chain',_0x2a80e0),this['_defaultCallbacks']['set']('formatInline:accept',_0x10e88d),this['_defaultCallbacks']['set']('formatInline:discard',_0x27eb00),this['_defaultCallbacks']['set']('formatInline:join',_0x582c56),this['_defaultCallbacks']['set']('formatInline:chain',_0x27eb00),this['_defaultCallbacks']['set']('formatBlock:accept',_0x10e88d),this['_defaultCallbacks']['set']('formatBlock:discard',_0x27eb00),this['_defaultCallbacks']['set']('formatBlock:join',_0x582c56),this['_defaultCallbacks']['set']('formatBlock:chain',_0x27eb00),this['_defaultCallbacks']['set']('attribute:accept',_0x27eb00),this['_defaultCallbacks']['set']('attribute:discard',(_0x1d5450,_0x362423)=>{if(!_0x362423)return;const _0x5e0a76=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x46f83b=>{if(_0x362423['key']==m)for(const _0x38a137 of _0x1d5450){const _0x4afec0=_0x38a137['start']['nodeAfter'],_0x4bac16=_0x362423['oldValue'];_0x46f83b['rename'](_0x4afec0,_0x4bac16);}else{if(_0x5e0a76['_isBlockAttribute'](_0x362423['key'])){for(const _0x1562c0 of _0x1d5450)void 0x0!==_0x362423['oldValue']?_0x46f83b['setAttribute'](_0x362423['key'],_0x362423['oldValue'],_0x1562c0['start']['nodeAfter']):_0x46f83b['removeAttribute'](_0x362423['key'],_0x1562c0['start']['nodeAfter']);}else{for(const _0x42c467 of _0x1d5450)_0x362423['oldValue']?_0x46f83b['setAttribute'](_0x362423['key'],_0x362423['oldValue'],_0x42c467):_0x46f83b['removeAttribute'](_0x362423['key'],_0x42c467);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x582c56);}}function Ut(_0x151673,_0x27305f,_0x1fdbec){for(const _0x358793 of _0x27305f['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x358793['root']==_0x358793)return!0x1;if(!_0x1fdbec['containsItem'](_0x358793))return!0x1;if(_0x151673['isObject'](_0x358793)||_0x151673['isLimit'](_0x358793))return!0x0;}return!0x1;}function Vt(_0x53e669){return _0x53e669['end']['parent']==_0x53e669['start']['nodeAfter']&&_0x53e669['end']['isAtStart'];}function Pt(_0x4a783c,_0x2b9c9b,_0x3cc4ef,_0x336bb0){const _0x13fa1d=_0x4ab1a8=>!_0x4ab1a8['item']['is']('$textProxy')&&!_0x336bb0['isObject'](_0x4ab1a8['item']),_0x236e7c=_0x4a783c['start']['getLastMatchingPosition'](_0x13fa1d),_0x241c06=_0x4a783c['end']['getLastMatchingPosition'](_0x13fa1d,{'direction':'backward'});return(!_0x4a783c['start']['isEqual'](_0x236e7c)||!_0x4a783c['end']['isEqual'](_0x241c06))&&(_0x236e7c['isBefore'](_0x241c06)?_0x3cc4ef['updateMarker'](_0x2b9c9b,{'range':_0x3cc4ef['createRange'](_0x236e7c,_0x241c06)}):_0x3cc4ef['removeMarker'](_0x2b9c9b),!0x0);}function Gt(_0x52fe90){return _0x29356c(_0x52fe90);}function Ft(_0x5acdd6){const _0x5975d1=_0x5acdd6['start']['nodeAfter'];return _0x5975d1&&_0x5975d1['is']('element');}function Lt(_0x472fd2,_0x3b1462){return null==_0x472fd2['end']['nodeBefore']&&_0x472fd2['end']['parent']==_0x472fd2['start']['nodeAfter']?Jt(_0x472fd2['start']['nodeAfter'],_0x3b1462):_0x472fd2;}function Jt(_0x2a9d13,_0x3a17f7){const _0x42fa52=_0x3a17f7['schema']['isObject'](_0x2a9d13)||_0x3a17f7['schema']['isSelectable'](_0x2a9d13);return _0x3a17f7['createRange'](_0x3a17f7['createPositionAt'](_0x2a9d13,'before'),_0x42fa52?_0x3a17f7['createPositionAfter'](_0x2a9d13):_0x3a17f7['createPositionAt'](_0x2a9d13,'end'));}function Ht(_0x341313,_0x19766b,_0x58fb8c,_0xe23b45){return!!qt(_0x341313,_0x19766b)&&_0x58fb8c['end']['isEqual'](_0xe23b45['start']);}function qt(_0x1fb349,_0x382252){if(!_0x1fb349['_isDataLoaded']||!_0x382252['_isDataLoaded'])return!0x1;const _0x5652db=new Set(Object['keys'](_0x1fb349['attributes'])),_0x426dc2=new Set(Object['keys'](_0x382252['attributes']));if(_0x5652db['delete']('groupId'),_0x426dc2['delete']('groupId'),0x0==_0x5652db['size']&&0x0==_0x426dc2['size'])return!0x0;if(_0x5652db['size']!=_0x426dc2['size'])return!0x1;const _0x21672d={..._0x1fb349['attributes']},_0x29b710={..._0x382252['attributes']};return delete _0x21672d['groupId'],delete _0x29b710['groupId'],JSON['stringify'](_0x21672d)==JSON['stringify'](_0x29b710);}function zt(_0x333ffc,_0x225a78){const _0x4a2c20=Kt(_0x333ffc['attributes']),_0x2effa4=Kt(_0x225a78);if(!_0x333ffc['_isDataLoaded'])return!0x1;for(const _0x1e16a4 of Object['keys'](_0x2effa4))if(!_0x12e3f4(_0x4a2c20[_0x1e16a4],_0x2effa4[_0x1e16a4]))return!0x1;return!0x0;}function Kt(_0x10005f){const _0x478d56=Object['assign']({},_0x10005f);return delete _0x478d56['skipNestingCheck'],delete _0x478d56['tablePasteChainId'],_0x478d56;}class ge extends/* #__PURE__ -- @preserve */
25
- _0x5ab72a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1f6d10,_0x3f0550,_0x3985b9,_0x8c7541){super(),this['model']=_0x3f0550,this['view']=_0x3985b9,this['commentThreadController']=_0x8c7541,this['_editor']=_0x1f6d10,this['_acceptCommand']=_0x1f6d10['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1f6d10['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x68c4a1,_0x15f0c5)=>_0x68c4a1||_0x15f0c5),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5a0cc9=>_0x5a0cc9&&this['_editor']['model']['canEditAt'](_0x3f0550['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1f8019=>_0x1f8019&&this['_editor']['model']['canEditAt'](_0x3f0550['getRanges']())),this['_pendingAction']=null,_0x3985b9['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3985b9,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3985b9,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3985b9,'change:isDirty',()=>{_0x3985b9['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 _0x286e47=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x286e47);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x5af940{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5b4728,_0xf504a0,_0x3a0554,_0x53f579){super(_0x5b4728),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x10e774(_0x5b4728,o(_0x5b4728,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xf504a0['authoredAt']),this['bind']('authoredAt')['to'](_0xf504a0),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',_0xf504a0,'authoredAt',this,'descriptionParts',(_0x4f491b,_0x1db639,_0x3ef297)=>{const _0x5dfc58=_0x3ef297['map'](_0xc43868=>ns(_0xc43868['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4f491b-0x1,_0xf504a0['author']['name'],_0x1db639?_0x53f579['formatDateTime'](_0x1db639):'',new DOMParser()['parseFromString'](_0x5dfc58,'text/html')['body']['textContent']]);}),this['focusables']=new _0xba2b67(),this['focusTracker']=new _0x44c5ef(),this['keystrokes']=new _0xa2b3da(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x379794=>_0x379794['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xf504a0,this['_localUser']=_0x3a0554,this['_config']=_0x53f579,_0x53f579['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4fc018(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x19ecf2}=this['_config'];this['commentsListView']=new _0x19ecf2(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',_0x429e91=>_0x429e91+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5f097c,_0x4fb548)=>_0x5f097c||!!_0x4fb548);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x36ed45}=this['_config'],_0x16a8eb=new _0x36ed45(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3185fc=_0x16a8eb['commentInputView'];return _0x16a8eb['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3185fc,'value',(_0x1fc4e7,_0x3f286f,_0x3f4cda)=>!!_0x3f4cda||_0x1fc4e7&&!_0x3f286f),_0x3185fc['on']('submit',(_0x31b22b,_0x49fdc8)=>{this['fire']('addComment',_0x49fdc8),_0x3185fc['editor']['setData']('');}),_0x3185fc['on']('cancel',()=>this['focus']()),_0x3185fc['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x16a8eb;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x38fa12,_0x91a14e,_0x64dd36,_0x247309){super(_0x38fa12,_0x91a14e,_0x64dd36,_0x247309),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4306d9=>_0x4306d9&&_0x4306d9[0x0]?_0x4306d9[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4c6541,_0x4de368)=>{let _0x1c5a3d='';for(const _0x36703d of _0x4c6541)_0x1c5a3d+='<p>'+ns(_0x36703d['content'],_0x36703d['color'])+'</p>';return _0x4de368?_0x1c5a3d:ti(_0x1c5a3d,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x247309['SuggestionView'](_0x38fa12,_0x91a14e,{'formatDateTime':_0x247309['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 _0x3a9b25=this['bindTemplate'],_0x3cc9f4=[this['suggestionView']];return this['commentsListView']&&_0x3cc9f4['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3cc9f4['push'](this['commentThreadInputView']),_0x3cc9f4['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3a9b25['if']('isActive','ck-suggestion-wrapper--active'),_0x3a9b25['to']('type',_0x27f3f6=>'ck-suggestion-'+_0x27f3f6),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':_0x3a9b25['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3cc9f4};}['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 ue extends _0x5af940{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4c1fd0,_0x468af5,_0x39e365){super(_0x4c1fd0),this['_model']=_0x468af5,this['_config']=_0x39e365,this['set']('description',''),this['bind']('authoredAt')['to'](_0x468af5),this['acceptButton']=this['_createButton'](o(_0x4c1fd0,'Accept\x20suggestion'),_0x44a34f['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x4c1fd0,'Discard\x20suggestion'),_0x44a34f['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x154975(_0x4c1fd0,_0x468af5['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xba2b67([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x44c5ef(),this['keystrokes']=new _0xa2b3da(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x54c0f1=>_0x54c0f1['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x289469=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x289469['innerHTML']=this['description'],this['on']('change:description',(_0x18a063,_0x4eb59e,_0x14bc93)=>{_0x289469['innerHTML']=_0x14bc93;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x27a63d=this['bindTemplate'],_0x5ed851=[{'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']}},{'tag':'time','attributes':{'datetime':_0x27a63d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x27a63d['to']('authoredAt',_0x1e41bc=>this['_config']['formatDateTime'](_0x1e41bc))}]}]},{'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']&&_0x5ed851['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':_0x5ed851}]};}['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'](_0x3d58e2,_0x4dc19d,_0x487660,_0x32409c,_0x4cf973){const _0x5c11e1=new _0x4d7497(this['locale']);return _0x5c11e1['set']({'label':_0x3d58e2,'icon':_0x4dc19d,'tooltip':!0x0,'tooltipPosition':_0x4cf973}),_0x5c11e1['extendTemplate']({'attributes':{'class':_0x487660}}),_0x5c11e1['on']('execute',()=>{this['fire'](_0x32409c,this['_model']['id']);}),_0x5c11e1;}['_setupKeyboardNavigation'](){const _0xce3cf6=this['element'];this['keystrokes']['listenTo'](_0xce3cf6);for(const _0x4058a5 of this['focusables'])this['focusTracker']['add'](_0x4058a5['element']),this['keystrokes']['listenTo'](_0x4058a5['element']);this['keystrokes']['set']('enter',(_0x4b3628,_0x44219a)=>{_0xce3cf6===_0x4b3628['target']&&(this['focusCycler']['focusFirst'](),_0x44219a());}),this['keystrokes']['set']('esc',(_0x44f45f,_0x2555dc)=>{_0xce3cf6!==_0x44f45f['target']&&(this['focus'](),_0x2555dc());});}}var Ce='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x336f7e{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x237037,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f1c49){super(_0x4f1c49),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x27e865=this['editor']['config'];_0x27e865['define']('trackChanges.SuggestionThreadView',de),_0x27e865['define']('trackChanges.SuggestionView',ue),_0x27e865['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x27e865['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x6deb5a,_0x4c0487){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x187257,_0x502c38]of this['_handleControllerBuffer']){const _0x17633e=this['_suggestionToController']['has'](_0x187257);_0x17633e||_0x502c38?_0x17633e&&_0x502c38&&this['_destroyController'](_0x187257):this['_initializeController'](_0x187257);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x6deb5a,_0x4c0487);}['init'](){const _0x402377=this['editor'],_0x3ac809=_0x402377['plugins']['get']('TrackChangesEditing'),_0x50a0cc=_0x402377['plugins']['get']('Annotations'),_0x3fcf30=_0x402377['plugins']['get']('EditorAnnotations'),_0x2e4a67=_0x402377['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3fcf30['addSourceCollector'](()=>{const _0x338040=[];for(const [_0x3f7a66,_0x5f35cb]of Array['from'](this['_suggestionToController'])){const _0x71758a=_0x3f7a66['getAllAdjacentSuggestions'](),_0x4a8ff1=[];for(const _0x2635b9 of _0x71758a){if(!_0x2635b9['isInContent'])continue;if(_0x2635b9['isMultiRange']){_0x4a8ff1['push'](..._0x2635b9['getRanges']());continue;}const _0x6584c=_0x2635b9['getFirstRange']();if(_0x4a8ff1['length']>0x0){const _0x3900e9=_0x4a8ff1[0x0]['getJoined'](_0x6584c);if(_0x3900e9){_0x4a8ff1[0x0]=_0x3900e9;continue;}}_0x4a8ff1['push'](_0x6584c);}_0x338040['push']([_0x5f35cb['view'],_0x4a8ff1]);}return _0x338040;}),this['listenTo'](_0x3ac809,'suggestionLoaded',(_0x183cc8,_0x217655)=>{this['listenTo'](_0x217655,'change:previous',(_0x4b4342,_0x5cbe3f,_0x5d2f7e,_0x343e01)=>{_0x217655['isInContent']&&(null==_0x5d2f7e?(this['_updateController'](_0x343e01['head']),this['_handleSuggestionControllerDelayed'](_0x217655,!0x1)):(this['_updateController'](_0x5d2f7e['head']),null==_0x343e01&&this['_handleSuggestionControllerDelayed'](_0x217655,!0x0)));}),null!==_0x217655['previous']?this['_updateController'](_0x217655['head']):this['_handleSuggestionControllerDelayed'](_0x217655,!0x1);}),this['listenTo'](_0x3ac809,'suggestionUnloaded',(_0x1cf3b9,_0x5398ad,_0x7d9e8c)=>{this['stopListening'](_0x5398ad,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5398ad),this['_suggestionToController']['has'](_0x5398ad)&&this['_destroyController'](_0x5398ad),_0x7d9e8c&&this['_updateController'](_0x7d9e8c['head']);}),this['listenTo'](_0x3ac809,'suggestionChanged',(_0x3886b8,_0x140612)=>{this['_updateController'](_0x140612);}),this['listenTo'](_0x50a0cc,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2e4a67,'addComment',(_0x37630d,{threadId:_0x3183ce,isFromAdapter:_0x4e7a30})=>{if(_0x4e7a30||!_0x3ac809['hasSuggestion'](_0x3183ce))return;const _0x27cfc7=_0x3ac809['getSuggestion'](_0x3183ce);this['_suggestionToController']['get'](_0x27cfc7)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x32cf4d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4d920d;for(const _0xe0746a in _0x32cf4d){const _0x6d95a5=_0xe0746a,_0x47a84b=_0x32cf4d[_0x6d95a5];if('trackChangesLicenseKeyValid'==_0x47a84b||'trackChangesLicenseKeyInvalid'==_0x47a84b||'trackChangesLicenseKeyExpired'==_0x47a84b||'trackChangesLicenseKeyDomainLimit'==_0x47a84b||'trackChangesLicenseKeyNotAllowed'==_0x47a84b||'trackChangesLicenseKeyEvaluationLimit'==_0x47a84b||'trackChangesLicenseKeyTrialLimit'==_0x47a84b||'trackChangesLicenseKeyDevelopmentLimit'==_0x47a84b||'trackChangesLicenseKeyUsageLimit'==_0x47a84b){delete _0x32cf4d[_0x6d95a5],_0x4d920d=_0x47a84b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4d920d&&_0x32cf4d['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4d920d&&_0x32cf4d['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4d920d&&_0x32cf4d['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4d920d&&_0x32cf4d['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4d920d&&_0x32cf4d['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x4d920d&&_0x32cf4d['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x4d920d&&_0x32cf4d['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4d920d&&_0x32cf4d['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x3aa0ba=this['editor']['plugins']['get']('Annotations'),_0x20c70a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x175794=Array['from'](_0x3aa0ba['activeAnnotations'],_0x487119=>_0x487119['innerView'])['filter'](_0x26d257=>this['_viewToController']['has'](_0x26d257)),_0x3fe436=[];for(const _0x355b95 of _0x175794){const _0x5a64bc=this['_viewToController']['get'](_0x355b95)['model']['getAllAdjacentSuggestions']();_0x3fe436['push'](..._0x5a64bc['reduce']((_0xe9d52e,_0x1551b7)=>[..._0xe9d52e,..._0x1551b7['getMarkerNames']()],[]));}_0x20c70a['activeMarkers']=_0x3fe436;}['_addUIComponentsToFactory'](){const _0x14a4bd=this['editor'],_0x32c7eb=_0x14a4bd['locale'],_0x3f4a17=o(_0x32c7eb,'Track\x20changes'),_0x28c5a3=new _0x116e4e([{'type':'switchbutton','model':new _0x5f3a17({'withText':!0x0,'isToggleable':!0x0,'label':_0x3f4a17,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5f3a17({'withText':!0x0,'label':o(_0x32c7eb,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5f3a17({'withText':!0x0,'label':o(_0x32c7eb,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5f3a17({'withText':!0x0,'label':o(_0x32c7eb,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5f3a17({'withText':!0x0,'label':o(_0x32c7eb,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x12740e of _0x28c5a3)if(pe(_0x12740e)){const _0x2cdd7d=_0x14a4bd['commands']['get'](_0x12740e['model']['commandName']);_0x12740e['model']['bind']('isOn','isEnabled')['to'](_0x2cdd7d,'value','isEnabled');}_0x14a4bd['ui']['componentFactory']['add']('trackChanges',_0x4cf5a7=>this['_createToolbarButton'](_0x4cf5a7,_0x28c5a3,_0x3f4a17)),_0x14a4bd['ui']['componentFactory']['add']('menuBar:trackChanges',_0x20af3a=>this['_createMenuBarMenu'](_0x20af3a,_0x28c5a3,_0x3f4a17));}['_createToolbarButton'](_0x1f677b,_0x37460c,_0x45bfb7){const _0x10ef07=_0x5728c9(_0x1f677b,_0x2c22cd),_0x4a8089=this['editor']['commands']['get']('trackChanges');_0x10ef07['buttonView']['set']({'tooltip':_0x45bfb7,'label':_0x45bfb7,'icon':Ce}),_0x10ef07['buttonView']['bind']('isOn')['to'](_0x4a8089,'value'),_0x10ef07['buttonView']['on']('execute',()=>{_0x4a8089['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x10ef07,_0x37460c,{'role':'menu'});const _0x2b1598=[];for(const _0x382f1a of _0x37460c)pe(_0x382f1a)&&_0x2b1598['push'](this['editor']['commands']['get'](_0x382f1a['model']['commandName']));const _0x1a2f21=_0x10ef07['buttonView'];return _0x1a2f21['actionView']['unbind']('isEnabled'),_0x1a2f21['arrowView']['unbind']('isEnabled'),_0x1a2f21['actionView']['bind']('isEnabled')['to'](_0x4a8089,'isEnabled'),_0x1a2f21['arrowView']['bind']('isEnabled')['toMany'](_0x2b1598,'isEnabled',(..._0x474a5f)=>_0x474a5f['some'](_0x165e1a=>_0x165e1a)),_0x10ef07['on']('execute',_0x8cd404=>{this['editor']['execute'](_0x8cd404['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x10ef07;}['_createMenuBarMenu'](_0x4ff337,_0x4b9a7d,_0x5a19ac){const _0x19a9dc=new _0x3b793f(_0x4ff337),_0x3aaab2=this['editor']['commands']['get']('trackChanges');_0x19a9dc['buttonView']['set']({'label':_0x5a19ac,'icon':Ce});const _0x3ff20a=new _0xcb737a(_0x4ff337);for(const _0x454d80 of _0x4b9a7d){if('separator'==_0x454d80['type']){_0x3ff20a['items']['add'](new _0x278654(_0x4ff337));continue;}const _0x2fa3bf=new _0x3ba036(_0x4ff337,_0x19a9dc),_0x5827a6=new _0x2e2721(_0x4ff337),_0x4796de=_0x454d80['model'];_0x5827a6['bind'](...Object['keys'](_0x4796de))['to'](_0x4796de),_0x5827a6['delegate']('execute')['to'](_0x19a9dc),_0x5827a6['on']('execute',()=>{this['editor']['execute'](_0x4796de['commandName']),this['editor']['editing']['view']['focus']();}),_0x2fa3bf['children']['add'](_0x5827a6),_0x3ff20a['items']['add'](_0x2fa3bf);}return _0x19a9dc['bind']('isEnabled')['to'](_0x3aaab2,'isEnabled'),_0x19a9dc['panelView']['children']['add'](_0x3ff20a),_0x19a9dc;}['_initializeController'](_0x1c75cd){const _0x197cba=this['editor'],_0x2b4b75=_0x197cba['config'],_0x15cf6f=_0x197cba['plugins']['get']('Annotations'),_0x4c0d57=_0x197cba['plugins']['get']('CommentsRepository'),_0x4d4dd1=_0x197cba['plugins']['get']('EditorAnnotations'),_0x20aeae=_0x197cba['plugins']['get'](_0x237037)['me'],_0x1c9a8b=_0x2b4b75['get']('trackChanges')['SuggestionThreadView'],_0x2d8ecc=_0x2b4b75['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xdcc9be,CommentThreadInputView:_0xcdb3e8}=_0x197cba['plugins']['get']('CommentsUI');let _0xb87024,_0x389997,_0x343ccd;this['_annotationViews']['has'](_0x1c75cd['id'])?(_0x389997=this['_annotationViews']['get'](_0x1c75cd['id']),_0xb87024=_0x389997['mainView']):(_0xb87024=new _0x1c9a8b(_0x197cba['locale'],_0x1c75cd,_0x20aeae,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2b4b75['get']('comments.editorConfig'),'licenseKey':_0x2b4b75['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2b4b75['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2b4b75['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2b4b75['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x325f94(_0x2b4b75['get']('locale')),'CommentView':_0x2b4b75['get']('comments')['CommentView'],'CommentsListView':_0xdcc9be,'CommentThreadInputView':_0xcdb3e8,'SuggestionView':_0x2d8ecc}),_0xb87024['suggestionView']['acceptButton']['on']('execute',()=>{_0x197cba['editing']['view']['focus']();}),_0xb87024['suggestionView']['discardButton']['on']('execute',()=>{_0x197cba['editing']['view']['focus']();}),_0x389997=_0x15cf6f['createAnnotationView'](this['editor']['locale'],_0xb87024),_0x389997['bind']('isDirty')['to'](_0xb87024,'isDirty'),_0x389997['bind']('length')['to'](_0xb87024),_0x389997['bind']('type')['to'](_0xb87024,'type',_0x1ee4b9=>'suggestion-'+_0x1ee4b9),_0xb87024['on']('escape',()=>{_0x343ccd['fire']('escape');}),this['_annotationViews']['set'](_0x1c75cd['id'],_0x389997));const _0x493c51=_0x4c0d57['createCommentThreadController'](_0x1c75cd['commentThread'],_0xb87024),_0x6f6459=new ge(_0x197cba,_0x1c75cd,_0xb87024,_0x493c51),_0x4e8447=_0x1c75cd['getAllAdjacentSuggestions']()['filter'](_0x522655=>_0x522655['isInContent']);_0xb87024['descriptionParts']=_0x197cba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4e8447),this['_suggestionToController']['set'](_0x1c75cd,_0x6f6459),this['_viewToController']['set'](_0xb87024,_0x6f6459),_0x343ccd=_0x15cf6f['createAnnotation']({'view':_0x389997,'target':()=>{const _0x46e007=[],_0x99f00f=_0x1c75cd['getAllAdjacentSuggestions']()['filter'](_0x4702d=>_0x4702d['isInContent']);for(const _0x32623d of _0x99f00f)_0x46e007['push'](..._0x32623d['getMarkers']());return _0x2a1e63(_0x197cba['editing'],_0x46e007);},'type':()=>'suggestion-'+_0x6f6459['view']['type']}),_0x4c0d57['_bindAnnotationToEditors'](_0xb87024,_0x343ccd),_0x15cf6f['add'](_0x343ccd),_0x4d4dd1['registerAnnotation'](_0x343ccd);}['_destroyController'](_0x5033ee){const _0x92284f=this['editor']['plugins']['get']('CommentsRepository'),_0x23c5ef=this['editor']['plugins']['get']('Annotations'),_0xe37627=this['_suggestionToController']['get'](_0x5033ee),_0x1a760b=_0xe37627['view'],_0x5d5099=_0x23c5ef['getByInnerView'](_0x1a760b);_0x92284f['_unbindEditors'](_0x1a760b),_0x5d5099&&_0x23c5ef['remove'](_0x5d5099),this['_suggestionToController']['delete'](_0x5033ee),this['_viewToController']['delete'](_0x1a760b),_0xe37627['destroy']();}['_updateController'](_0x49e994){if(!_0x49e994['isInContent']||!this['_suggestionToController']['has'](_0x49e994))return;const _0x58a0aa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15e904=this['_suggestionToController']['get'](_0x49e994),_0x1cb339=_0x49e994['getAllAdjacentSuggestions']();_0x15e904['view']['descriptionParts']=_0x58a0aa['descriptionFactory']['getDescriptions'](_0x1cb339);}['destroy'](){for(const _0x5cfa99 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5cfa99);for(const _0x5c7f33 of this['_annotationViews']['values']())_0x5c7f33['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x152c7f){return'model'in _0x152c7f;}class k extends _0x336f7e{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1f7348){this['editor']['plugins']['get'](p)['adapter']=_0x1f7348;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2e909d){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2e909d);}['getSuggestions']({skipNotAttached:_0x287136=!0x1,toJSON:_0x5229e8=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x287136,'toJSON':_0x5229e8});}['getSuggestion'](_0x2f1b2a){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2f1b2a);}}const w=['Pagination'];class T extends _0x336f7e{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2fd56c=this['editor'];if(_0x2fd56c['config']['define']('trackChangesData.editorCreator',_0x148d0a=>{const _0x2f58f4=_0x2fd56c['model']['document']['getRootNames']()['reduce']((_0x36e4ac,_0x134c26)=>(_0x36e4ac[_0x134c26]='',_0x36e4ac),{});return _0x2fd56c['constructor']['create'](_0x2f58f4,_0x148d0a);}),'function'!=typeof _0x2fd56c['config']['get']('trackChangesData')['editorCreator'])throw new _0x351529('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2a71d5){return N(this['editor'],!0x0,_0x2a71d5);}['getDataWithDiscardedSuggestions'](_0xd61da){return N(this['editor'],!0x1,_0xd61da);}}class D extends _0x336f7e{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4a25c7){function _0x585e8f(_0x58e3f2){return _0x58e3f2['map'](_0x3d9cc0=>String['fromCharCode'](_0x3d9cc0))['join']('');}super(_0x4a25c7),this['result']='end',_0x4a25c7[_0x585e8f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x585e8f([0x76,0x69,0x65,0x77])][_0x585e8f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x585e8f([0x61,0x75,0x74,0x6f]),_0x4a25c7[_0x585e8f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x585e8f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x585e8f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x585e8f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x585e8f([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 v(_0x3c6240){return void 0x0!==_0x3c6240['getRootsAttributes'];}async function N(_0x145209,_0x2c2473,_0x4b7f06){const _0x5db504=_0x39159e(_0x145209,w);_0x5db504['plugins']['push'](p,D),_0x5db504['rootsAttributes']=v(_0x145209)?_0x145209['getRootsAttributes']():void 0x0;const _0x305290=document['createDocumentFragment'](),_0x2572ac=_0x145209['config']['get']('trackChangesData')['editorCreator'],_0x40389c=await _0x2572ac(_0x5db504,()=>function(_0x434dd9){const _0x33fe40=document['createElement']('div');return _0x434dd9['appendChild'](_0x33fe40),_0x33fe40;}(_0x305290));!function(_0x501848,_0x262c6c){const _0x962d7f=_0x501848['model']['document']['getRootNames']()['reduce']((_0x287f5a,_0xe80117)=>(_0x287f5a[_0xe80117]=_0x501848['data']['get']({'rootName':_0xe80117}),_0x287f5a),{}),_0x1585b8=_0x501848['plugins']['get']('Users')['users']['map'](_0x2c4f1e=>({'id':_0x2c4f1e['id'],'name':_0x2c4f1e['name']})),_0x57e820=_0x501848['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1c5db4=_0x501848['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5c6e79=_0x262c6c['plugins']['get']('Users'),_0x584db4=_0x262c6c['plugins']['get']('TrackChangesEditing'),_0x3c94d3=_0x262c6c['plugins']['get']('CommentsRepository');for(const _0x5bede1 of _0x3c94d3['getCommentThreads']())_0x5bede1['remove']();for(const _0x3db780 of _0x1585b8)_0x5c6e79['getUser'](_0x3db780['id'])||_0x5c6e79['addUser'](_0x3db780);_0x5c6e79['me']||_0x5c6e79['useAnonymousUser']();for(const _0x4a0bcb of _0x1c5db4)_0x3c94d3['addCommentThread'](_0x4a0bcb);for(const _0x552796 of _0x57e820)_0x584db4['addSuggestionData'](_0x552796);_0x262c6c['data']['set'](_0x962d7f);}(_0x145209,_0x40389c),_0x40389c['execute'](_0x2c2473?'acceptAllSuggestions':'discardAllSuggestions');const _0x36e5c0=v(_0x40389c)?_0x40389c['getFullData'](_0x4b7f06):_0x40389c['data']['get'](_0x4b7f06);return await _0x40389c['destroy'](),_0x36e5c0;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as Qt,Plugin as _0x522036,PendingActions as _0x50247b,icons as _0xa3c9d2}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1ac58c,ObservableMixin as _0x5de982,uid as _0xb9e80,insertToPriorityArray as _0x520d8b,priorities as _0xe00547,logWarning as _0x42f00c,getEnvKeystrokeText as _0xfda364,FocusTracker as _0x5756c4,KeystrokeHandler as _0x15b293,Collection as _0x248b58}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x26d584,View as _0x37fcbe,ViewCollection as _0x53b401,FocusCycler as ts,ViewModel as _0x579f53,createDropdown as _0x361bdb,SplitButtonView as _0x303ad8,addListToDropdown as te,MenuBarMenuView as _0x510e7f,MenuBarMenuListView as _0x960e20,ListSeparatorView as _0x4b7899,MenuBarMenuListItemView as _0x2c05e2,MenuBarMenuListItemButtonView as _0x49a471}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x32d02e,hashObject as _0x3d1978,surroundingMarkersDetector as _0x487918,FOCUS_ANNOTATION_KEYSTROKE as _0x218fe9,AriaDescriptionView as _0x229945,setupThreadKeyboardNavigation as _0x14e6ed,trimHtml as ti,UserView as _0x24bd63,LateFocusButtonView as _0x14c4a1,getDateTimeFormatter as _0x5006a4,getAllMarkersDomElementsSorted as _0x44803c,sanitizeEditorConfig as _0x57fa87}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x508285,LiveRange as _0x582953,LivePosition as _0x3a3fe2}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2b23c9,toWidget as _0x27f6ef}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x255812,set as _0x2156dd,isEqual as _0x4dfac2,unset as _0xa93136,omit as xt}from'lodash-es';import{Delete as _0x14b539,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x58ae15,ShiftEnter as _0x2b6dac}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x3e7682,_0x366324){super(_0x3e7682),this['_enabledCommands']=_0x366324,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 _0x434749 of this['editor']['commands']['commands']())_0x434749['affectsData']&&!this['_enabledCommands']['has'](_0x434749)&&_0x434749['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1e6bcd of this['editor']['commands']['commands']())_0x1e6bcd['affectsData']&&!this['_enabledCommands']['has'](_0x1e6bcd)&&_0x1e6bcd['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x20a1ab,_0x53b249){super(_0x20a1ab),this['_suggestions']=_0x53b249,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3aad08){const _0x3c382e=this['_suggestions']['get'](_0x3aad08);if(!_0x3c382e)throw new _0x1ac58c('track-changes-accept-suggestion-not-found',this);const _0x53e8f1=_0x3c382e['getRanges']();this['editor']['model']['canEditAt'](_0x53e8f1)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3c382e);}}class R extends Qt{['_suggestions'];constructor(_0x20514a,_0x1f8cba){super(_0x20514a),this['_suggestions']=_0x1f8cba,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x452a19){const _0x4f24a8=this['_suggestions']['get'](_0x452a19);if(!_0x4f24a8)throw new _0x1ac58c('track-changes-discard-suggestion-not-found',this);const _0x2c969b=_0x4f24a8['getRanges']();this['editor']['model']['canEditAt'](_0x2c969b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4f24a8);}}function ns(_0x586b26,_0x15cc6a){let _0x276df6='';return _0x276df6+=_0x586b26['split']('*')['map']((_0x4a2543,_0x5607f3)=>_0x5607f3%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x4a2543)+'</span>':nn(_0x4a2543))['join'](''),_0x15cc6a&&(_0x276df6+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x15cc6a['value']+'\x22\x20title=\x22'+_0x15cc6a['title']+'\x22></span>'),_0x276df6;}function nn(_0xbd21da){const _0x23ba87=document['createElement']('span');return _0x23ba87['innerText']=_0xbd21da,_0x23ba87['innerHTML'];}function Wt(_0x43969d){return _0x43969d['sort']((_0x44b7bd,_0x4c7d9b)=>'deletion'==_0x44b7bd['type']&&'deletion'!=_0x4c7d9b['type']?-0x1:'deletion'!=_0x44b7bd['type']&&'deletion'==_0x4c7d9b['type']?0x1:0x0);}function to(_0x431573,_0x395c9c){let _0x5b2247,_0x25bba0=0x0;const _0x12502e=[],_0x31051d=_0x395c9c['schema'];for(;_0x25bba0<_0x431573['length'];){const _0x31c8ff=_0x431573[_0x25bba0],_0x399801=_0x431573[_0x25bba0+0x1];_0x5b2247||(_0x5b2247=_0x395c9c['createPositionBefore'](_0x31c8ff)),on(_0x395c9c,_0x31c8ff,_0x399801)||(_0x12502e['push'](_0x395c9c['createRange'](_0x5b2247,_0x31051d['isObject'](_0x31c8ff)?_0x395c9c['createPositionAfter'](_0x31c8ff):_0x395c9c['createPositionAt'](_0x31c8ff,'end'))),_0x5b2247=null),_0x25bba0++;}return _0x12502e;}function on(_0x23c9d2,_0x5937e3,_0x5ea811){if(!_0x5ea811)return!0x1;const _0x2090dd=_0x23c9d2['createPositionAfter'](_0x5937e3),_0x210a24=_0x23c9d2['createPositionBefore'](_0x5ea811);return _0x2090dd['isTouching'](_0x210a24);}function Xt(_0x419220,_0x1eb58,_0x2dd2b1){for(;_0x2dd2b1['length'];){const _0x47a678=_0x2dd2b1['splice'](0x0,0x64);_0x419220['change'](()=>{for(const _0x566775 of _0x47a678)_0x566775['isInContent']&&_0x1eb58['execute'](_0x566775['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x1fc7b3,_0x2414c0,_0x793426){super(_0x1fc7b3),this['_command']=_0x2414c0,this['_suggestions']=_0x793426,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x19f36f=Array['from'](this['_suggestions']['values']())['some'](_0x519363=>_0x519363['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x19f36f;}['execute'](){const _0x14d2de=Wt(Array['from'](this['_suggestions']['values']()));for(const _0xb3e7ae of _0x14d2de){const _0x26b8a7=_0xb3e7ae['getRanges']();if(!this['editor']['model']['canEditAt'](_0x26b8a7))return;}Xt(this['editor']['model'],this['_command'],_0x14d2de);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1803ed,_0x2d36bb,_0x26e4ff){super(_0x1803ed),this['_command']=_0x2d36bb,this['_suggestions']=_0x26e4ff,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x40f293=this['editor']['model']['document']['selection'],_0x1ff648=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xdf25cc,_0x4f7dec){const _0x21e40a=Array['from'](_0xdf25cc['getRanges']()),_0x22040d=new Set();for(const _0x5c633f of _0x4f7dec)if(_0x5c633f['isInContent']){for(const _0x18bda0 of _0x21e40a)for(const _0x3572bb of _0x5c633f['getRanges']())(_0x18bda0['isIntersecting'](_0x3572bb)||_0xdf25cc['isCollapsed']&&!_0x5c633f['isMultiRange']&&_0x5c633f['next']&&_0x3572bb['end']['isTouching'](_0x18bda0['start']))&&_0x22040d['add'](_0x5c633f);}return _0x22040d;}(_0x40f293,_0x1ff648),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x33305f=Wt(Array['from'](this['_selectedSuggestions']));for(const _0x4a6cc3 of _0x33305f){const _0x9e6e81=_0x4a6cc3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x9e6e81))return;}Xt(this['editor']['model'],this['_command'],_0x33305f);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x5de982(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1989db,_0x128b41){super(),this['id']=_0x128b41['id'],this['type']=_0x128b41['type'],this['subType']=_0x128b41['subType']||null,this['author']=_0x128b41['author'],this['creator']=_0x128b41['creator']||_0x128b41['author'],this['isExternal']=Boolean(_0x128b41['attributes']&&_0x128b41['attributes']['@external']),this['data']=null,this['_model']=_0x1989db,this['_onAccept']=_0x128b41['onAccept'],this['_onDiscard']=_0x128b41['onDiscard'],this['_onAttributesChange']=_0x128b41['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x128b41['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 _0x176475=this;for(;_0x176475['previous'];)_0x176475=_0x176475['previous'];return _0x176475;}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'](_0x47015d){this['_markerNames']['add'](_0x47015d);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x59aec2=>this['_model']['markers']['get'](_0x59aec2))['filter'](_0x2c52fa=>_0x2c52fa);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2a4fa9=>{for(const _0x14cd45 of this['getMarkers']())_0x2a4fa9['removeMarker'](_0x14cd45);}),this['_markerNames']['clear']();}['removeMarker'](_0xb6bf59){this['_model']['change'](_0x4edcaf=>{_0x4edcaf['removeMarker'](_0xb6bf59);}),this['_markerNames']['delete'](_0xb6bf59);}['addRange'](_0x13f326){const _0x34746a='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x34746a),this['_model']['change'](_0x5810b0=>{_0x5810b0['addMarker'](_0x34746a,{'range':_0x13f326,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x129d23){for(const _0x2d97cf of this['getRanges']())if(_0x2d97cf['isIntersecting'](_0x129d23))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xf1dd5b=>_0xf1dd5b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x27dd79,_0x4b8a94)=>[..._0x27dd79,..._0x4b8a94['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x7ccbfb=this['getRanges']();if(0x1!=_0x7ccbfb['length'])return null;const _0x5c6d3c=_0x7ccbfb[0x0],_0x410d34=_0x5c6d3c['start']['nodeAfter'],_0x43ac04=_0x5c6d3c['end']['nodeBefore'];return _0x410d34 instanceof _0x508285?_0x410d34!=_0x43ac04?null:_0x410d34: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 _0x1c8975=[];let _0x3b5366=this['head'];for(;_0x3b5366;)_0x1c8975['push'](_0x3b5366),_0x3b5366=_0x3b5366['next'];return _0x1c8975;}['setAttribute'](_0x3f5dd7,_0x405669){const _0x2c5ea8=_0x255812(this['attributes']);_0x2156dd(_0x2c5ea8,_0x3f5dd7,_0x405669),_0x4dfac2(_0x2c5ea8,this['attributes'])||(this['attributes']=_0x2c5ea8,this['_onAttributesChange'](_0x2c5ea8));}['removeAttribute'](_0x51e416){const _0x386486=_0x255812(this['attributes']);_0xa93136(_0x386486,_0x51e416),_0x4dfac2(_0x386486,this['attributes'])||(this['attributes']=_0x386486,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 _0xb9e80()['substr'](0x1,0x5);}}function o(_0x5ab091,_0x150fe7,_0x4a597d){const _0x1842b3=_0x5ab091['t'],t=_0x5ab091['t'];switch(_0x150fe7){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'*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',_0x4a597d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4a597d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4a597d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4a597d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4a597d);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',_0x4a597d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4a597d);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x4a597d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4a597d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4a597d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4a597d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4a597d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4a597d);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4a597d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4a597d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4a597d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4a597d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4a597d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4a597d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4a597d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4a597d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4a597d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4a597d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4a597d);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'},_0x4a597d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4a597d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4a597d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4a597d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4a597d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4a597d);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'},_0x4a597d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4a597d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4a597d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4a597d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4a597d);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'},_0x4a597d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4a597d);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'},_0x4a597d);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x4a597d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4a597d);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'},_0x4a597d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4a597d);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'},_0x4a597d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4a597d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4a597d);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'},_0x4a597d);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4a597d);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 _0x1842b3({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4a597d);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1842b3({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4a597d);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4a597d);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'},_0x4a597d);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'},_0x4a597d);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'},_0x4a597d);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x150fe7;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3450b2,_0x1f141e){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3450b2,this['_locale']=_0x1f141e;}['getDescriptions'](_0xb46d4){const _0x3bbf54=[],_0xfa88bb=new Set(),_0x34cce2=new Set();for(let _0x291c9a=0x0;_0x291c9a<_0xb46d4['length'];_0x291c9a++){const _0x3d785e=_0xb46d4[_0x291c9a];if(!_0x3d785e['isInContent'])continue;const _0x3f44e2=this['_handleCustomCallbackDescription'](_0x3d785e);if(_0x3f44e2){if(null!=_0x3d785e['subType']){if(_0xfa88bb['has'](_0x3d785e['subType']))continue;_0xfa88bb['add'](_0x3d785e['subType']);}_0x3bbf54['push'](_0x3f44e2);}else{if('attribute'!=_0x3d785e['type'])'insertion'!=_0x3d785e['type']&&'deletion'!=_0x3d785e['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3bbf54,_0x3d785e,_0xb46d4[_0x291c9a+0x1]);else{const _0x41ac70=_0x3d785e['data']['key'];if(_0x34cce2['has'](_0x41ac70))continue;_0x34cce2['add'](_0x3d785e['data']['key']),_0x41ac70==m?this['_handleRenameSuggestionDescription'](_0x3bbf54,_0x3d785e):this['_handleAttributeSuggestionDescription'](_0x3bbf54,_0x3d785e);}}}return this['_resolveDescriptionItems'](_0x3bbf54);}['registerDescriptionCallback'](_0x4c0eb7){this['_customCallbacks']['push'](_0x4c0eb7);}['registerElementLabel'](_0x2ea48c,_0x7286e8,_0x2b2ce2=_0xe00547['normal']){'function'==typeof _0x2ea48c?_0x520d8b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2ea48c,'label':_0x7286e8,'priority':_0x2b2ce2}):this['_itemLabels']['set'](_0x2ea48c,_0x7286e8);}['registerAttributeLabel'](_0x4b09d0,_0x496135){this['_attributeLabels']['set'](_0x4b09d0,_0x496135);}['getItemLabel'](_0x43c8fc,_0x318a1a=0x1){let _0x1a2aef;for(const _0x23fd62 of this['_itemLabelsCallbacks'])if(_0x23fd62['matchingCallback'](_0x43c8fc)){_0x1a2aef=_0x23fd62['label'];break;}return _0x1a2aef||(_0x1a2aef=this['_itemLabels']['get'](_0x43c8fc['name'])),_0x1a2aef?_0x1a2aef(_0x318a1a):0x1!==_0x318a1a?_0x318a1a+'\x20'+_0x43c8fc['name']+'s':''+_0x43c8fc['name'];}['_addDescriptionItems'](_0xaca27e,_0x3ac6af){const _0x221da3=_0x3ac6af['getFirstRange']()['getWalker'](),_0x3f8e85='insertion'==_0x3ac6af['type']?'add':'remove';for(const _0x1f5e77 of _0x221da3){const _0x5f04fb=_0x1f5e77['item'],_0x10b7b0=_0xaca27e[_0xaca27e['length']-0x1];if(_0x5f04fb['is']('$textProxy'))_0x10b7b0&&_0x10b7b0['type']['indexOf']('Container')>-0x1&&_0xaca27e['pop'](),_0x10b7b0&&'text'==_0x10b7b0['type']?_0x10b7b0[_0x3f8e85]+=_0x5f04fb['data']:_0xaca27e['push']({'type':'text','add':'add'==_0x3f8e85?_0x5f04fb['data']:'','remove':'remove'==_0x3f8e85?_0x5f04fb['data']:''});else{if(this['_schema']['isObject'](_0x5f04fb)){const _0xd5b169=_0x5f04fb;if(_0x10b7b0&&_0x10b7b0['type']['indexOf']('Container')>-0x1&&_0xaca27e['pop'](),'elementEnd'==_0x1f5e77['type'])continue;_0x10b7b0&&_0x10b7b0['type']==_0x3f8e85+'Object'&&_0x10b7b0['element']['name']==_0xd5b169['name']?_0x10b7b0['quantity']++:_0xaca27e['push']({'type':_0x3f8e85+'Object','element':_0xd5b169,'quantity':0x1}),_0x221da3['skip'](_0xc7a641=>!('elementEnd'==_0xc7a641['type']&&_0xc7a641['item']==_0x5f04fb));}else{if(this['_schema']['checkChild'](_0x5f04fb,'$text')||_0x5f04fb['is']('element','softBreak')){const _0x36fc54=_0x5f04fb;if('add'==_0x3f8e85&&'elementStart'==_0x1f5e77['type']||'remove'==_0x3f8e85&&'elementEnd'==_0x1f5e77['type'])continue;if(_0x10b7b0&&-0x1==_0x10b7b0['type']['indexOf']('Container')){'text'==_0x10b7b0['type']&&(_0x10b7b0[_0x3f8e85]+='\x0a');continue;}let _0x339a9e;if(_0x339a9e='add'==_0x3f8e85?_0x36fc54['nextSibling']&&!this['_schema']['isObject'](_0x36fc54['nextSibling'])?_0x36fc54['nextSibling']:null:_0x36fc54['previousSibling']&&!this['_schema']['isObject'](_0x36fc54['previousSibling'])?_0x36fc54['previousSibling']:null,_0x36fc54['isEmpty']||_0x339a9e&&_0x339a9e['isEmpty']){const _0x42caa2=_0x339a9e&&_0x339a9e['isEmpty']?_0x339a9e:_0x36fc54;_0x10b7b0&&_0x10b7b0['type']==_0x3f8e85+'EmptyContainer'&&_0x10b7b0['element']['name']==_0x42caa2['name']?_0x10b7b0['quantity']++:_0xaca27e['push']({'type':_0x3f8e85+'EmptyContainer','element':_0x42caa2,'quantity':0x1});}else _0xaca27e['push']({'type':_0x3f8e85+'Container','element':_0x36fc54});}}}}}['_resolveDescriptionItems'](_0x1c957b){const _0x1a7c08=this['_locale'],_0x2a568f=[],_0x3fb453=[],_0x4d93fc=[];for(const _0x38cf1e of _0x1c957b)switch(_0x38cf1e['type']){case'text':if(_0x38cf1e['add']=_0x38cf1e['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x38cf1e['remove']=_0x38cf1e['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x38cf1e['add']&&''!=_0x38cf1e['remove']){_0x2a568f['push']({'type':'replace','content':o(_0x1a7c08,'REPLACE_TEXT',['\x22'+_0x38cf1e['remove']+'\x22','\x22'+_0x38cf1e['add']+'\x22'])});continue;}if(null!=_0x38cf1e['add']['match'](/^ +$/)){_0x2a568f['push']({'type':'insertion','content':o(_0x1a7c08,'*Insert:*\x20%0',o(_0x1a7c08,'ELEMENT_SPACE',_0x38cf1e['add']['length']))});continue;}if(null!=_0x38cf1e['remove']['match'](/^ +$/)){_0x2a568f['push']({'type':'deletion','content':o(_0x1a7c08,'*Remove:*\x20%0',o(_0x1a7c08,'ELEMENT_SPACE',_0x38cf1e['remove']['length']))});continue;}if(''!=_0x38cf1e['add']){_0x2a568f['push']({'type':'insertion','content':o(_0x1a7c08,'*Insert:*\x20%0','\x22'+_0x38cf1e['add']+'\x22')});continue;}_0x2a568f['push']({'type':'deletion','content':o(_0x1a7c08,'*Remove:*\x20%0','\x22'+_0x38cf1e['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2a568f['push']({'type':'insertion','content':o(_0x1a7c08,'*Insert:*\x20%0',this['getItemLabel'](_0x38cf1e['element'],_0x38cf1e['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2a568f['push']({'type':'deletion','content':o(_0x1a7c08,'*Remove:*\x20%0',this['getItemLabel'](_0x38cf1e['element'],_0x38cf1e['quantity']))});continue;case'addContainer':_0x2a568f['push']({'type':'insertion','content':o(_0x1a7c08,'*Split:*\x20%0',this['getItemLabel'](_0x38cf1e['element'],_0x38cf1e['quantity']))});continue;case'removeContainer':_0x2a568f['push']({'type':'deletion','content':o(_0x1a7c08,'*Merge:*\x20%0',this['getItemLabel'](_0x38cf1e['element'],_0x38cf1e['quantity']))});continue;case'addFormat':_0x3fb453['push'](_0x38cf1e['key']);continue;case'removeFormat':_0x4d93fc['push'](_0x38cf1e['key']);continue;default:_0x2a568f['push'](_0x38cf1e);}if(_0x3fb453['length']){const _0x40768d=_0x3fb453['map'](_0x54d4c4=>this['_attributeLabels']['has'](_0x54d4c4)?this['_attributeLabels']['get'](_0x54d4c4):_0x54d4c4)['join'](',\x20');_0x2a568f['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x40768d)});}if(_0x4d93fc['length']){const _0x2f422d=_0x4d93fc['map'](_0x3cdd63=>this['_attributeLabels']['has'](_0x3cdd63)?this['_attributeLabels']['get'](_0x3cdd63):_0x3cdd63)['join'](',\x20');_0x2a568f['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2f422d)});}return _0x2a568f;}['_handleCustomCallbackDescription'](_0x591aaa){for(const _0x41b9f2 of this['_customCallbacks']){const _0x3fd01b=_0x41b9f2(_0x591aaa);if(_0x3fd01b&&'type'in _0x3fd01b)return _0x3fd01b;}}['_handleAttributeSuggestionDescription'](_0x322bdd,_0x44118a){const _0x56d9a1=_0x44118a['data'],_0x1255dd=void 0x0===_0x56d9a1['newValue']?'removeFormat':'addFormat';_0x322bdd['push']({'type':_0x1255dd,'key':_0x56d9a1['key']});}['_handleRenameSuggestionDescription'](_0x1f3403,_0x2575f4){_0x1f3403['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2575f4['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x51290d,_0x467629,_0x35cd39){if(this['_addDescriptionItems'](_0x51290d,_0x467629),_0x35cd39&&_0x35cd39['getFirstRange']()&&!_0x467629['getFirstRange']()['end']['isEqual'](_0x35cd39['getFirstRange']()['start'])){const _0x239300=_0x51290d[_0x51290d['length']-0x1],_0x584bb2='insertion'==_0x467629['type']?'add':'remove';_0x239300&&'text'==_0x239300['type']&&(_0x239300[_0x584bb2]+='\x0a');}}}class U extends _0x522036{['afterInit'](){const _0x11e2b8=this['editor'],_0x4b3b4c=_0x11e2b8['plugins']['get']('TrackChangesEditing');_0x11e2b8['commands']['get']('showAIAssistant')&&_0x4b3b4c['enableCommand']('showAIAssistant');}}class V extends _0x522036{['afterInit'](){const _0x581961=this['editor'],_0x4b0c03=_0x581961['locale'];if(!_0x581961['plugins']['has']('AlignmentEditing'))return;const _0x57dd1c=_0x581961['plugins']['get']('TrackChangesEditing');_0x57dd1c['enableDefaultAttributesIntegration']('alignment'),_0x57dd1c['registerBlockAttribute']('alignment'),_0x57dd1c['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4b0c03,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x482482=this['editor'],_0x48ff7d=_0x482482['locale'];_0x482482['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4de303=>{if('formatBlock'!=_0x4de303['type'])return;const {data:_0x3ebb7d}=_0x4de303;if(_0x3ebb7d&&'alignment'==_0x3ebb7d['commandName']){const _0x27e580=_0x3ebb7d['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x48ff7d,'*Format:*\x20%0',function(_0x592697){switch(_0x592697){case'left':return o(_0x48ff7d,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x48ff7d,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x48ff7d,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x48ff7d,'FORMAT_JUSTIFY_TEXT');}}(_0x27e580))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x522036{['afterInit'](){const _0x3e88cd=this['editor'],_0x1b3f9a=_0x3e88cd['plugins']['get']('TrackChangesEditing'),_0x36a2b1=_0x3e88cd['locale'];for(const _0x5d12cf of Zt){if(!_0x3e88cd['plugins']['has'](_0x5d12cf))continue;const _0x139701=_0x5d12cf['slice'](0x0,-0x7)['toLowerCase'](),_0xe8f36c='FORMAT_'+_0x139701['toUpperCase']();_0x1b3f9a['enableDefaultAttributesIntegration'](_0x139701),_0x1b3f9a['registerInlineAttribute'](_0x139701),_0x1b3f9a['descriptionFactory']['registerAttributeLabel'](_0x139701,o(_0x36a2b1,_0xe8f36c));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe0838d=this['editor'],_0xd0b14=_0xe0838d['locale'],_0x4356f7=_0xe0838d['plugins']['get']('TrackChangesEditing');function _0x2d63e4(_0x4b1e8c,_0x36ce13){_0x4356f7['descriptionFactory']['registerDescriptionCallback'](_0x1da0c8=>{if('formatInline'!=_0x1da0c8['type'])return;const {data:_0x575f2c}=_0x1da0c8;return _0x575f2c&&_0x575f2c['commandName']===_0x4b1e8c?_0x575f2c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xd0b14,'*Format:*\x20%0',_0x36ce13)}:{'type':'format','content':o(_0xd0b14,'*Remove\x20format:*\x20%0',_0x36ce13)}:void 0x0;});}_0x2d63e4('bold',o(_0xd0b14,'FORMAT_BOLD')),_0x2d63e4('italic',o(_0xd0b14,'FORMAT_ITALIC')),_0x2d63e4('underline',o(_0xd0b14,'FORMAT_UNDERLINE')),_0x2d63e4('code',o(_0xd0b14,'FORMAT_CODE')),_0x2d63e4('strikethrough',o(_0xd0b14,'FORMAT_STRIKETHROUGH')),_0x2d63e4('subscript',o(_0xd0b14,'FORMAT_SUBSCRIPT')),_0x2d63e4('superscript',o(_0xd0b14,'FORMAT_SUPERSCRIPT'));}}class F extends _0x522036{['afterInit'](){const _0x36a3e0=this['editor'],_0x3dd906=_0x36a3e0['locale'];if(!_0x36a3e0['plugins']['has']('BlockQuoteEditing'))return;const _0x19fe5d=_0x36a3e0['plugins']['get']('TrackChangesEditing'),_0x4abff3=this['editor']['commands']['get']('blockQuote');_0x19fe5d['enableCommand']('blockQuote',(_0x5a5022,_0x5425c6={})=>{const _0x53e800=this['editor']['model']['document']['selection'],_0x5cd5d9=_0x5425c6&&void 0x0!==_0x5425c6['forceValue']?_0x5425c6['forceValue']:!_0x4abff3['value'];let _0xfe5ff6=[];if(_0x5cd5d9){const _0x5bde2f=Array['from'](_0x53e800['getSelectedBlocks']())['filter'](_0x4477cf=>oo(_0x4477cf)||function(_0x1b8eef,_0x364e83){const _0x2fb774=_0x364e83['checkChild'](_0x1b8eef['parent'],'blockQuote'),_0x23b438=_0x364e83['checkChild'](['$root','blockQuote'],_0x1b8eef);return _0x2fb774&&_0x23b438;}(_0x4477cf,this['editor']['model']['schema']));_0xfe5ff6=to(_0x5bde2f,_0x36a3e0['model']);}else{const _0x38cd2b=Array['from'](_0x53e800['getSelectedBlocks']())['filter'](_0x5b85f4=>oo(_0x5b85f4));_0xfe5ff6=to(_0x38cd2b,_0x36a3e0['model']);}_0x36a3e0['model']['change'](()=>{for(const _0x3a284c of _0xfe5ff6)_0x19fe5d['markBlockFormat'](_0x3a284c,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5cd5d9}]});});}),_0x19fe5d['descriptionFactory']['registerDescriptionCallback'](_0x501628=>{const {data:_0x49c3f2}=_0x501628;if(_0x49c3f2&&'blockQuote'==_0x49c3f2['commandName']){const _0x168da9=o(_0x3dd906,'ELEMENT_BLOCK_QUOTE');return _0x49c3f2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3dd906,'*Set\x20format:*\x20%0',_0x168da9)}:{'type':'format','content':o(_0x3dd906,'*Remove\x20format:*\x20%0',_0x168da9)};}});}}function oo(_0x4ab776){return'blockQuote'==_0x4ab776['parent']['name'];}class L extends _0x522036{['afterInit'](){const _0x236dd0=this['editor'],_0x5a14fe=_0x236dd0['locale'],_0x206832=_0x236dd0['plugins']['get']('TrackChangesEditing');_0x236dd0['plugins']['has']('BookmarkEditing')&&(_0x206832['enableCommand']('insertBookmark'),_0x206832['enableDefaultAttributesIntegration']('updateBookmark'),_0x206832['registerBlockAttribute']('bookmarkId'),_0x206832['descriptionFactory']['registerDescriptionCallback'](_0x1a2b40=>{if('insertion'!=_0x1a2b40['type']&&'deletion'!=_0x1a2b40['type']&&'attribute'!=_0x1a2b40['type'])return;const _0xeb374a=_0x1a2b40['getContainedElement']();if(null==_0xeb374a)return;if(!_0xeb374a['is']('element','bookmark'))return;const _0x324c4e=_0xeb374a['getAttribute']('bookmarkId');if('insertion'==_0x1a2b40['type'])return{'type':'insertion','content':o(_0x5a14fe,'*Insert:*\x20%0','\x22'+_0x324c4e+'\x22\x20'+o(_0x5a14fe,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1a2b40['type'])return{'type':'deletion','content':o(_0x5a14fe,'*Remove:*\x20%0','\x22'+_0x324c4e+'\x22\x20'+o(_0x5a14fe,'ELEMENT_BOOKMARK'))};const {data:_0x3a0bf4}=_0x1a2b40;if(!_0x3a0bf4||'bookmarkId'!=_0x3a0bf4['key'])return;return{'type':'format','content':o(_0x5a14fe,'*Set\x20bookmark:*\x20%0','\x22'+_0x3a0bf4['newValue']+'\x22')};}));}}class J extends _0x522036{['afterInit'](){const _0x3abdf6=this['editor'];_0x3abdf6['plugins']['has']('CaseChange')&&(_0x3abdf6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3abdf6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3abdf6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x522036{['afterInit'](){const _0x10b99a=this['editor'];_0x10b99a['commands']['get']('ckbox')&&_0x10b99a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x522036{['afterInit'](){const _0x4d350e=this['editor'];if(!_0x4d350e['plugins']['has']('CodeBlock'))return;const _0x258632=_0x4d350e['plugins']['get']('TrackChangesEditing'),_0x19cabc=_0x4d350e['locale'],_0x13019a=_0x4d350e['config']['get']('codeBlock')['languages'],_0x3fd3fa=_0x4d350e['commands']['get']('codeBlock');_0x258632['enableCommand']('indentCodeBlock'),_0x258632['enableCommand']('outdentCodeBlock'),_0x258632['enableCommand']('codeBlock',(_0x3ea5f0,_0x1e70ad={})=>{const _0x3f3193=_0x4d350e['model'],_0x3a7613=_0x4d350e['model']['document']['selection'],_0x1cbbc0=_0x1e70ad&&void 0x0!==_0x1e70ad['forceValue']?_0x1e70ad['forceValue']:!_0x3fd3fa['value'];let _0x318a17;_0x1e70ad['language']||(_0x1e70ad['language']=_0x13019a[0x0]['language']),_0x318a17=_0x1cbbc0?Array['from'](_0x3a7613['getSelectedBlocks']())['filter'](_0x53975c=>eo(_0x53975c)||function(_0x2a5266,_0x3d8902){if(_0x2a5266['is']('rootElement')||_0x3d8902['isLimit'](_0x2a5266))return!0x1;return _0x3d8902['checkChild'](_0x2a5266['parent'],'codeBlock');}(_0x53975c,_0x3f3193['schema'])):Array['from'](_0x3a7613['getSelectedBlocks']())['filter'](_0x4a5aa8=>eo(_0x4a5aa8));const _0x5caaed=to(_0x318a17,_0x3f3193);_0x3f3193['change'](()=>{for(const _0x7c0cd6 of _0x5caaed)_0x258632['markBlockFormat'](_0x7c0cd6,{'commandName':'codeBlock','commandParams':[{..._0x1e70ad,'forceValue':_0x1cbbc0}],'formatGroupId':'blockName'});});}),(_0x258632['descriptionFactory']['registerElementLabel']('codeBlock',_0x2cfaeb=>o(_0x19cabc,'ELEMENT_CODE_BLOCK',_0x2cfaeb)),_0x258632['descriptionFactory']['registerDescriptionCallback'](_0x4201b3=>{if('formatBlock'!=_0x4201b3['type'])return;const _0x10aa89=_0x19cabc['t'],{data:_0x521039}=_0x4201b3;if(!_0x521039||'codeBlock'!=_0x521039['commandName'])return;const _0x57f7d7=_0x521039['commandParams'][0x0]['language'],_0x25ac62=_0x10aa89(_0x13019a['find'](_0x50fe21=>_0x50fe21['language']===_0x57f7d7)['label'])['toLowerCase']();return _0x521039['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x19cabc,'*Set\x20format:*\x20%0',o(_0x19cabc,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x25ac62+')')}:{'type':'format','content':o(_0x19cabc,'*Remove\x20format:*\x20%0',o(_0x19cabc,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x26312c){return'codeBlock'==_0x26312c['name'];}class z extends _0x522036{['afterInit'](){const _0x13f586=this['editor'];if(!_0x13f586['plugins']['has']('CommentsEditing'))return;_0x13f586['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x325ba5,_0x35c1cd,_0x5926b2){const _0x4e0e4c=[];for(const _0x309c1e of _0x35c1cd['getItems']())_0x309c1e['hasAttribute'](_0x325ba5)&&_0x4e0e4c['push'](_0x5926b2['createRangeOn'](_0x309c1e));return _0x4e0e4c;}function Ne(_0x180f1d,_0x42a8d2,{showActiveMarker:_0x4e97d7=!0x0}={}){const _0x2e907c=_0x180f1d['plugins']['get']('TrackChangesEditing');return(_0xa0d2a1,_0x233679,_0x3fdc8e)=>{if(!_0x3fdc8e['consumable']['test'](_0x233679['markerRange'],_0xa0d2a1['name']))return;const _0xb3aa32=_0x233679['markerRange']['getWalker'](),_0x4bd259=_0x233679['markerRange']['start'],_0x26110b=_0x180f1d['model']['schema'];let _0x5e4eaf=null,_0x58c75e=null,_0x1b15ed=!0x1,_0x593857=!0x1;for(const _0x1ff5db of _0xb3aa32){const _0x461d26=_0x1ff5db['item'];_0x1b15ed=_0x1b15ed||_0x26110b['isContent'](_0x461d26);const _0x246b21=_0x3fdc8e['mapper']['toViewElement'](_0x461d26);if(_0x246b21&&_0x246b21['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1ff5db['type']&&(_0x26110b['isBlock'](_0x461d26)&&!_0x26110b['isLimit'](_0x461d26)&&(_0x461d26['nextSibling']||_0x4bd259['isAtEnd']?_0x5e4eaf&&_0x5e4eaf['parent']==_0x461d26||(_0x5e4eaf=_0x461d26,_0x53568d(_0x1ff5db['previousPosition']),_0x593857=!0x0):_0x58c75e=_0x58c75e||_0x1ff5db['previousPosition']));}function _0x53568d(_0x19bd76){const {authorId:_0x384eed}=_0x2e907c['_splitMarkerName'](_0x233679['markerName']),_0x30af1f=_0x3fdc8e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x42a8d2,'data-author-id':_0x384eed}),_0x33b3c0=_0x3fdc8e['mapper']['toViewPosition'](_0x19bd76);_0x4e97d7&&_0x2e907c['activeMarkers']['includes'](_0x233679['markerName'])&&_0x3fdc8e['writer']['addClass']('ck-suggestion-marker--active',_0x30af1f),_0x3fdc8e['writer']['insert'](_0x33b3c0,_0x30af1f),_0x3fdc8e['mapper']['bindElementToMarker'](_0x30af1f,_0x233679['markerName']);}_0x1b15ed||_0x593857||!_0x58c75e||_0x53568d(_0x58c75e);};}class K extends _0x522036{static get['requires'](){return[_0x14b539];}['init'](){const _0xe3d267=this['editor'],_0xf2b541=_0xe3d267['plugins']['get']('TrackChangesEditing');_0xf2b541['enableCommand']('delete');const _0x496ef3=_0xe3d267['commands']['get']('deleteForward');_0xf2b541['enableCommand']('deleteForward',(_0x2ee9d9,_0x4b852f={})=>{const _0x398506=_0xe3d267['model']['createSelection'](_0xe3d267['model']['document']['selection']);_0x398506['isCollapsed']&&_0xe3d267['model']['modifySelection'](_0x398506,{'direction':'forward','unit':_0x4b852f['unit']});const _0x31743b=_0x398506['getFirstRange'](),_0x3e1c4a=_0x582953['fromRange'](_0x31743b);let _0x3869ca;_0x2ee9d9(_0x4b852f),_0x3869ca='$graveyard'==_0x3e1c4a['root']['rootName']?_0xe3d267['model']['createRange'](_0x31743b['start']):_0xe3d267['model']['createRange'](_0x3e1c4a['start'],_0x3e1c4a['end']),_0x3e1c4a['detach'](),_0xe3d267['model']['enqueueChange'](_0x496ef3['buffer']['batch'],_0x244480=>{_0x496ef3['buffer']['lock'](),_0x244480['setSelection'](_0x244480['createRange'](_0x3869ca['end'])),_0x496ef3['buffer']['unlock']();});}),_0xe3d267['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0xe3d267,'merge'),{'priority':'high'}),_0xe3d267['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3ad258,_0x18e8c6,_0x511ddf)=>{_0x511ddf['options']['showSuggestionHighlights']&&Ne(_0xe3d267,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3ad258,_0x18e8c6,_0x511ddf);},{'priority':'high'}),_0xe3d267['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4c215f,_0x169e5e,_0x2b8c74)=>{const _0x193460=_0x2b8c74['mapper']['markerNameToElements'](_0x169e5e['markerName']);if(_0x193460){for(const _0x582d15 of _0x193460)_0x582d15['is']('uiElement')&&(_0x2b8c74['mapper']['unbindElementFromMarkerName'](_0x582d15,_0x169e5e['markerName']),_0x2b8c74['writer']['remove'](_0x582d15));}},{'priority':'high'});}}class W extends _0x522036{['afterInit'](){const _0x1a30f3=this['editor'];if(!_0x1a30f3['plugins']['has']('ListEditing'))return;const _0x158422=_0x1a30f3['locale'],_0x31a92e=_0x1a30f3['plugins']['get']('TrackChangesEditing'),_0x4bc614=_0x1a30f3['plugins']['has']('TodoListEditing'),_0x5ad645=!!_0x1a30f3['config']['get']('list.multiBlock');function _0xa26b1e(_0x3321ae){return{'type':'format','content':''+o(_0x158422,'*Set\x20format:*\x20%0',_0x3321ae)};}function _0x19772e(_0x512bf5){return{'type':'format','content':''+o(_0x158422,'*Remove\x20format:*\x20%0',_0x512bf5)};}_0x31a92e['enableDefaultAttributesIntegration']('numberedList'),_0x31a92e['enableDefaultAttributesIntegration']('bulletedList'),_0x31a92e['enableDefaultAttributesIntegration']('customNumberedList'),_0x31a92e['enableDefaultAttributesIntegration']('customBulletedList'),_0x31a92e['enableDefaultAttributesIntegration']('indentList'),_0x31a92e['enableDefaultAttributesIntegration']('outdentList'),_0x31a92e['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x31a92e['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x31a92e['registerBlockAttribute']('listItemId'),_0x31a92e['registerBlockAttribute']('listType'),_0x31a92e['registerBlockAttribute']('listIndent'),_0x5ad645&&(_0x31a92e['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x31a92e['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4bc614&&(_0x31a92e['enableDefaultAttributesIntegration']('todoList'),_0x31a92e['enableDefaultAttributesIntegration']('checkTodoList'),_0x31a92e['registerBlockAttribute']('todoListChecked'),_0x31a92e['descriptionFactory']['registerDescriptionCallback'](_0x508f3e=>{const {data:_0x582945}=_0x508f3e;if(_0x582945&&'todoListChecked'==_0x582945['key'])return{'type':'format','content':_0x582945['newValue']?o(_0x158422,'*Check\x20item*'):o(_0x158422,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x590db5=>{if(_0x590db5['batch']['isUndo'])return!0x1;let _0x3c21b1=!0x1;const _0x56b74c=_0x31a92e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ea3b4=>'todoListChecked'===_0x31a92e['_getAttributeKey'](_0x3ea3b4));for(const _0x2b98cb of _0x56b74c){'todo'!=_0x2b98cb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x31a92e['_findSuggestions'](_0x2b98cb['getFirstRange'](),'attribute')['find'](_0x513293=>'listType'===_0x31a92e['_getAttributeKey'](_0x513293['suggestion']))||(_0x590db5['removeMarker'](_0x2b98cb['getFirstMarker']()),_0x3c21b1=!0x0));}return _0x3c21b1;})),_0x31a92e['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x158422,'FORMAT_INDENT'));const _0x4e5098={'type':'format','content':''};_0x31a92e['descriptionFactory']['registerDescriptionCallback'](_0x56d127=>{const {data:_0x52e170}=_0x56d127;if(!_0x52e170||'listType'!=_0x52e170['key'])return;let _0x57ef55=_0x56d127['head'];for(;_0x57ef55;){if(_0x57ef55['data']&&(('listStyle'==_0x57ef55['data']['key']||'listMarkerStyle'==_0x57ef55['data']['key'])&&(_0x57ef55['data']['newValue']&&'default'!=_0x57ef55['data']['newValue']||'default'!=_0x57ef55['data']['oldValue']&&!_0x52e170['newValue'])||!_0x5ad645&&_0x57ef55['data']['key']==m))return _0x4e5098;_0x57ef55=_0x57ef55['next'];}if(null==_0x52e170['newValue'])switch(_0x52e170['oldValue']){case'bulleted':return _0x19772e(o(_0x158422,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x19772e(o(_0x158422,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x19772e(o(_0x158422,'ELEMENT_TODO_LIST'));}switch(_0x52e170['newValue']){case'bulleted':return _0xa26b1e(o(_0x158422,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xa26b1e(o(_0x158422,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xa26b1e(o(_0x158422,'ELEMENT_TODO_LIST'));}}),_0x31a92e['descriptionFactory']['registerDescriptionCallback'](_0x2492ab=>{const {data:_0x23932b}=_0x2492ab;if(_0x23932b&&'listIndent'==_0x23932b['key'])return null==_0x23932b['newValue']||null==_0x23932b['oldValue']&&0x0==_0x23932b['newValue']?_0x4e5098:void 0x0;}),_0x31a92e['descriptionFactory']['registerDescriptionCallback'](_0x9e8c0d=>{if('attribute'!=_0x9e8c0d['type'])return;const {data:_0x17b08f}=_0x9e8c0d;if(!_0x17b08f||'listItemId'!=_0x17b08f['key'])return;const _0x8d400b=Te(_0x9e8c0d);return'newValue'==_0x8d400b?{'type':'format','content':o(_0x158422,'*Merge:*\x20list\x20item')}:'oldValue'==_0x8d400b?{'type':'format','content':o(_0x158422,'*Split:*\x20list\x20item')}:_0x4e5098;}),_0x1a30f3['model']['document']['registerPostFixer'](_0x37f73a=>this['listItemIdFixer'](_0x37f73a)),_0x1a30f3['model']['document']['registerPostFixer'](_0x101984=>this['noTrackChangesFixer'](_0x101984)),_0x1a30f3['model']['document']['on']('change:data',(_0x2e17c4,_0x22a03b)=>{if(_0x22a03b['isUndo']||!_0x22a03b['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3b7127){if(_0x3b7127['batch']['isUndo']||!_0x3b7127['batch']['isLocal'])return!0x1;let _0x20281d=!0x1;const _0x2b652f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1325e8=>_0x1325e8['data']&&'listItemId'==_0x1325e8['data']['key'])['filter'](_0x7c9d64=>_0x7c9d64['data']['newValue']&&_0x7c9d64['data']['oldValue']);for(const _0x4bb462 of _0x2b652f)Te(_0x4bb462)||(_0x3b7127['removeMarker'](_0x4bb462['getFirstMarker']()),_0x20281d=!0x0);return _0x20281d;}['noTrackChangesFixer'](_0x2e1899){if(_0x2e1899['batch']['isUndo']||!_0x2e1899['batch']['isLocal'])return!0x1;const _0x6af2f2=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x6af2f2['trackChangesCommand']['value'])return!0x1;let _0x3bd6f8=!0x1;const _0x328fb0=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x46295d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x34da2c=>'attribute'==_0x34da2c['type'])['filter'](_0x32a916=>_0x328fb0['includes'](_0x32a916['attributeKey']));if(0x0==_0x46295d['length'])return _0x3bd6f8;for(const _0x18fe56 of _0x46295d){const _0x285287=_0x6af2f2['_findSuggestions'](_0x18fe56['range'],'attribute')['filter'](_0x511a52=>!_0x511a52['meta']['isNextTo'])['map'](_0x3ff4b3=>_0x3ff4b3['suggestion'])['filter'](_0xb3bffe=>{const _0x37e1cd=_0x6af2f2['_getAttributeKey'](_0xb3bffe);return _0x328fb0['includes'](_0x37e1cd);});if(_0x285287['length']){for(const _0x290c31 of _0x285287)_0x2e1899['removeMarker'](_0x290c31['getFirstMarker']());_0x3bd6f8=!0x0;}}return _0x3bd6f8;}['assureChains'](){const _0xb3266a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c714a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x95cfba;const _0x981665=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5425d2=>{if(_0x5425d2['data']['oldRange']||!_0x5425d2['data']['newRange'])return null;if(!_0x5425d2['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x479b39}=_0xb3266a['_splitMarkerName'](_0x5425d2['name']);if(!_0xb3266a['hasSuggestion'](_0x479b39))return null;const _0x62fcc1=_0xb3266a['getSuggestion'](_0x479b39);return _0x5c714a['includes'](_0x62fcc1['data']['key']);})['map'](_0x2dea50=>{const {id:_0x439506}=_0xb3266a['_splitMarkerName'](_0x2dea50['name']),_0x28e183=_0xb3266a['getSuggestion'](_0x439506);return _0x95cfba=_0x28e183['attributes']['groupId'],_0x28e183['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x981665['size'])return;const _0x1e3fe4=_0xb3266a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x20d898=>'attribute'==_0x20d898['type']&&_0x20d898['data']&&_0x5c714a['includes'](_0x20d898['data']['key'])&&_0x20d898['attributes']['groupId']!=_0x95cfba)['map'](_0x4fdfff=>({'listItem':_0x4fdfff['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4fdfff['attributes']['groupId']})),_0x51b1a7=new Set();for(const {groupId:_0x1cd4e6,listItem:_0x271a54}of _0x1e3fe4)_0x981665['has'](_0x271a54)&&_0x51b1a7['add'](_0x1cd4e6);for(const _0x1c5d6c of _0xb3266a['getSuggestions']())_0x51b1a7['has'](_0x1c5d6c['attributes']['groupId'])&&_0x1c5d6c['setAttribute']('groupId',_0x95cfba);}['_supportLegacySuggestions'](){const _0x369f65=this['editor'],_0x103b0a=_0x369f65['locale'],_0x3f41ca=_0x369f65['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3f41ca['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5010f8,_0x36e85f){const _0x51dc28=[];for(let _0x538cb8 of _0x5010f8)_0x538cb8['start']['nodeAfter']===_0x538cb8['end']['parent']&&(_0x538cb8=_0x369f65['model']['createRange'](_0x369f65['model']['createPositionAt'](_0x538cb8['start']['nodeAfter'],0x0))),_0x51dc28['push'](_0x538cb8);_0x369f65['model']['change'](_0xcd42d1=>{const _0x58c20f=_0x369f65['model']['document']['selection'],_0x585bb3=Array['from'](_0x58c20f['getRanges']())['map'](_0xf67031=>_0x582953['fromRange'](_0xf67031));_0xcd42d1['setSelection'](_0x51dc28),_0x369f65['commands']['get'](_0x36e85f['commandName'])['refresh'](),_0x36e85f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x369f65['execute'](_0x36e85f['commandName'],..._0x36e85f['commandParams']),_0xcd42d1['setSelection'](_0x585bb3);for(const _0x2ea6da of _0x585bb3)_0x2ea6da['detach']();});}),_0x3f41ca['descriptionFactory']['registerElementLabel'](function(_0x213f9e){const _0x233671=!_0x369f65['model']['schema']['isObject'](_0x213f9e),_0x3f415f=_0x213f9e['previousSibling'],_0x36d375=_0x213f9e['nextSibling'],_0x53f806=_0x213f9e['getAttribute']('listItemId'),_0x155e30=!_0x3f415f||_0x3f415f['getAttribute']('listItemId')!==_0x53f806,_0x1a1a31=!_0x36d375||_0x36d375['getAttribute']('listItemId')!==_0x53f806;return _0x233671&&Boolean(_0x53f806)&&_0x155e30&&_0x1a1a31;},_0x2adb68=>o(_0x103b0a,'ELEMENT_LIST_ITEM',_0x2adb68));}['_registerLegacyDescription'](){const _0x578685=this['editor'],_0x4775f4=_0x578685['locale'];function _0x8cade2(_0x2a8588){const _0x855f14=_0x578685['commands']['get']('bulletedList')['value'],_0x1eae19=_0x578685['commands']['get']('numberedList')['value'];return'numberedList'===_0x2a8588?_0x855f14:_0x1eae19;}_0x578685['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3e9985){if('formatBlock'!=_0x3e9985['type'])return;const {data:_0xfa6703}=_0x3e9985;if(!_0xfa6703)return;let _0x3b9175,_0x57904c,_0x909988,_0xfe3a80;switch(_0xfa6703['commandName']){case'bulletedList':_0x909988=_0xfa6703['commandParams'][0x0]['forceValue'],_0xfe3a80=_0x8cade2(_0xfa6703['commandName']),_0x3b9175=_0x909988?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xfe3a80&&_0x578685['config']['get']('list.multiBlock')||(_0x3b9175='*Change\x20to:*\x20%0'),_0x57904c={'type':'format','content':o(_0x4775f4,_0x3b9175,o(_0x4775f4,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x909988=_0xfa6703['commandParams'][0x0]['forceValue'],_0xfe3a80=_0x8cade2(_0xfa6703['commandName']),_0x3b9175=_0x909988?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xfe3a80&&_0x578685['config']['get']('list.multiBlock')||(_0x3b9175='*Change\x20to:*\x20%0'),_0x57904c={'type':'format','content':o(_0x4775f4,_0x3b9175,o(_0x4775f4,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3b9175='*Indent:*\x20%0',_0x57904c={'type':'format','content':o(_0x4775f4,_0x3b9175,o(_0x4775f4,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3b9175=function(_0xdb6d59){const _0x430b35=_0xdb6d59['getFirstRange']();let _0x37680c=_0x430b35['start']['nodeAfter'];for(;_0x37680c&&_0x430b35['containsItem'](_0x37680c);){if(_0x37680c['getAttribute']('listIndent')>0x0)return!0x1;_0x37680c=_0x37680c['nextSibling'];}return!0x0;}(_0x3e9985)?o(_0x4775f4,'*Format:*\x20remove\x20from\x20%0',o(_0x4775f4,function(_0x22407d){return'ELEMENT_'+_0x22407d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3e9985))):o(_0x4775f4,'*Outdent:*\x20%0',o(_0x4775f4,'ELEMENT_LIST_ITEM')),_0x57904c={'type':'format','content':_0x3b9175};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xfa6703['multipleBlocks']&&(_0x3b9175='*Merge:*\x20%0',_0x57904c={'type':'deletion','content':o(_0x4775f4,_0x3b9175,o(_0x4775f4,'ELEMENT_LIST_ITEM'))});}return _0x57904c;});}}function Te(_0x1a1343){let _0x5da567=_0x1a1343['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5da567;){const _0x3791ea=_0x5da567['getAttribute']('listItemId');if(!_0x3791ea)return!0x1;if(_0x3791ea==_0x1a1343['data']['newValue'])return'newValue';if(_0x3791ea==_0x1a1343['data']['oldValue'])return'oldValue';_0x5da567=_0x5da567['previousSibling'];}return!0x1;}class ye extends _0x522036{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x76e053=this['editor']['config']['get']('list.properties'),_0x2992fb=this['editor']['plugins']['get']('TrackChangesEditing');_0x76e053['styles']&&(_0x2992fb['enableDefaultAttributesIntegration']('listStyle'),_0x2992fb['registerBlockAttribute']('listStyle')),_0x76e053['reversed']&&(_0x2992fb['enableDefaultAttributesIntegration']('listReversed'),_0x2992fb['registerBlockAttribute']('listReversed')),_0x76e053['startIndex']&&(_0x2992fb['enableDefaultAttributesIntegration']('listStart'),_0x2992fb['registerBlockAttribute']('listStart'));const _0xaedc39={'type':'format','content':''};_0x2992fb['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x22e5f8=this['editor']['locale'];_0x2992fb['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x22e5f8,'FORMAT_LIST_REVERSED')),_0x2992fb['descriptionFactory']['registerDescriptionCallback'](_0x12f0fd=>{const {data:_0x17786b}=_0x12f0fd;if(_0x17786b&&'listReversed'==_0x17786b['key'])return null==_0x17786b['newValue']||0x0==_0x17786b['newValue']&&null==_0x17786b['oldValue']?_0xaedc39:void 0x0;}),_0x2992fb['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x22e5f8,'FORMAT_LIST_START')),_0x2992fb['descriptionFactory']['registerDescriptionCallback'](_0x12283d=>{const {data:_0x501ae0}=_0x12283d;if(_0x501ae0&&'listStart'==_0x501ae0['key'])return null==_0x501ae0['newValue']||0x1==_0x501ae0['newValue']&&null==_0x501ae0['oldValue']?_0xaedc39:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x242f42=>{if(_0x242f42['batch']['isUndo'])return!0x1;let _0x15435b=!0x1;const _0x39e093=_0x2992fb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x21975e=>{const _0x5ab895=_0x2992fb['_getAttributeKey'](_0x21975e);return'listStart'==_0x5ab895||'listReversed'==_0x5ab895;});for(const _0x4c9aa1 of _0x39e093){const _0x36c061=_0x4c9aa1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x36c061||'customNumbered'==_0x36c061)continue;_0x2992fb['_findSuggestions'](_0x4c9aa1['getFirstRange'](),'attribute')['find'](_0x316e30=>'listType'==_0x2992fb['_getAttributeKey'](_0x316e30['suggestion']))||(_0x242f42['removeMarker'](_0x4c9aa1['getFirstMarker']()),_0x15435b=!0x0);}return _0x15435b;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x58a865){const _0x3e9cbd=this['editor']['locale'],{data:_0x2f9213}=_0x58a865,_0x49997a={'type':'format','content':''};if(!_0x2f9213||'listStyle'!=_0x2f9213['key'])return;if(!_0x2f9213['oldValue'])return'default'==_0x2f9213['newValue']?_0x49997a:{'type':'format','content':''+o(_0x3e9cbd,'*Set\x20format:*\x20%0',o(_0x3e9cbd,this['_getTranslationKeyForListStyle'](_0x2f9213['newValue'])))};if(!_0x2f9213['newValue']){if('default'==_0x2f9213['oldValue'])return _0x49997a;let _0x3f3214=_0x58a865['head'];for(;_0x3f3214;){if(_0x3f3214['data']&&'listType'==_0x3f3214['data']['key']&&_0x3f3214['data']['newValue'])return _0x49997a;_0x3f3214=_0x3f3214['next'];}return{'type':'format','content':''+o(_0x3e9cbd,'*Remove\x20format:*\x20%0',o(_0x3e9cbd,this['_getTranslationKeyForListStyle'](_0x2f9213['oldValue'])))};}if('default'!=_0x2f9213['newValue'])return{'type':'format','content':''+o(_0x3e9cbd,'*Set\x20format:*\x20%0',o(_0x3e9cbd,this['_getTranslationKeyForListStyle'](_0x2f9213['newValue'])))};let _0x134daf=_0x58a865['head'];for(;_0x134daf;){if(_0x134daf['data']&&'listType'==_0x134daf['data']['key']&&_0x134daf['data']['newValue']&&_0x134daf['data']['oldValue'])return _0x49997a;_0x134daf=_0x134daf['next'];}return{'type':'format','content':o(_0x3e9cbd,'*Set\x20format:*\x20%0',o(_0x3e9cbd,'ELEMENT_'+_0x58a865['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x548f4e=this['editor'],_0x2eaebe=_0x548f4e['locale'];_0x548f4e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x535bf0=>{if('formatBlock'!=_0x535bf0['type'])return;const {data:_0x3d8cc8}=_0x535bf0;if(!_0x3d8cc8)return;let _0x4d0491,_0x147656;switch(_0x3d8cc8['commandName']){case'listStyle':_0x4d0491='*Change\x20to:*\x20%0',_0x147656={'type':'format','content':o(_0x2eaebe,_0x4d0491,o(_0x2eaebe,this['_getTranslationKeyForListStyle'](_0x3d8cc8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4d0491=_0x3d8cc8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x147656={'type':'format','content':o(_0x2eaebe,_0x4d0491)};break;case'listStart':_0x4d0491='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x147656={'type':'format','content':o(_0x2eaebe,_0x4d0491,_0x3d8cc8['commandParams'][0x0]['startIndex'])};}return _0x147656;});}['_getTranslationKeyForListStyle'](_0x39cb85){return'ELEMENT_'+function(_0x1eb685){if(Se['includes'](_0x1eb685))return'bulleted';if(_e['includes'](_0x1eb685))return'numbered';return null;}(_0x39cb85)['toUpperCase']()+'_LIST_'+_0x39cb85['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x522036{static get['requires'](){return[_0x58ae15];}['init'](){const _0x1b64ca=this['editor'],_0x51f395=_0x1b64ca['plugins']['get']('TrackChangesEditing'),_0x42f6ca=_0x1b64ca['commands']['get']('enter');_0x51f395['enableCommand']('enter',()=>{_0x1b64ca['model']['change'](_0x398a88=>{const _0x548cbd=_0x1b64ca['model']['document']['selection'],_0x284a60=_0x548cbd['getFirstPosition'](),_0x4d3b0c=_0x582953['fromRange'](_0x548cbd['getFirstRange']());if(_0x42f6ca['enterBlock'](_0x398a88)){const _0x207d88=_0x1b64ca['model']['createPositionAt'](_0x284a60['parent']['nextSibling'],0x0),_0x15a558=_0x398a88['createRange'](_0x284a60,_0x207d88);_0x51f395['markInsertion'](_0x15a558);}else _0x398a88['setSelection'](_0x398a88['createRange'](_0x4d3b0c['end']));_0x4d3b0c['detach'](),_0x42f6ca['fire']('afterExecute',{'writer':_0x398a88});});}),_0x1b64ca['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x1b64ca,'split'),{'priority':'high'}),_0x1b64ca['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3b307c,_0x457e46,_0x4131da)=>{const _0x125112=_0x4131da['mapper']['markerNameToElements'](_0x457e46['markerName']);if(_0x125112){for(const _0x28d29b of _0x125112)_0x28d29b['hasClass']('ck-suggestion-marker-split')&&(_0x4131da['mapper']['unbindElementFromMarkerName'](_0x28d29b,_0x457e46['markerName']),_0x4131da['writer']['remove'](_0x28d29b));}},{'priority':'high'}),_0x1b64ca['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x475647,_0x45de3b,_0x5cc718)=>{_0x5cc718['options']['showSuggestionHighlights']&&Ne(_0x1b64ca,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x475647,_0x45de3b,_0x5cc718);},{'priority':'high'});}}class Y extends _0x522036{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1f94e2=this['editor']['plugins']['get']('TrackChangesEditing');_0x1f94e2['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1f94e2['enableCommand']('findNext'),_0x1f94e2['enableCommand']('findPrevious'),_0x1f94e2['enableCommand']('replace'),_0x1f94e2['enableCommand']('replaceAll');}['handleFindCommand'](_0x1f548c,_0x552b7d,_0x684904={}){const _0x1dd3b6=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1f548c(_0x485941=>{let _0x594b91=('string'==typeof _0x552b7d?_0x1dd3b6['findByTextCallback'](_0x552b7d,_0x684904):_0x552b7d)(_0x485941);Array['isArray'](_0x594b91)&&(_0x594b91={'results':_0x594b91,'searchText':'string'==typeof _0x552b7d?_0x552b7d:''});const _0x32945d=_0x594b91['results']['filter'](_0x2d7e14=>!0x1===this['_isInDeletionRange'](_0x2d7e14,_0x485941['item']));return{..._0x594b91,'results':_0x32945d};},_0x684904);}['_isInDeletionRange'](_0x21e912,_0x311da7){const _0x5224b7=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x311da7,_0x21e912['start']),this['editor']['model']['createPositionAt'](_0x311da7,_0x21e912['end']));for(const _0x40ad33 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5224b7['getIntersection'](_0x40ad33['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x522036{['afterInit'](){const _0x754756=this['editor']['locale'],_0x3f600e=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x477ad4,commandName:_0x3745dc}of ro)this['editor']['plugins']['has'](_0x477ad4)&&(_0x3f600e['enableDefaultAttributesIntegration'](_0x3745dc),_0x3f600e['registerInlineAttribute'](_0x3745dc));_0x3f600e['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x754756,'FORMAT_FONT_SIZE')),_0x3f600e['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x754756,'FORMAT_FONT_FAMILY')),_0x3f600e['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x754756,'FORMAT_FONT_COLOR')),_0x3f600e['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x754756,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1aa576=this['editor'],_0x5ba74c=_0x1aa576['locale'];_0x1aa576['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cb26b=>{const _0x2110a6=_0x5ba74c['t'];if('formatInline'!=_0x3cb26b['type'])return;const {data:_0x27e4bb}=_0x3cb26b;if(null!=_0x27e4bb){if('fontSize'==_0x27e4bb['commandName']){const _0xc0a7d=_0x27e4bb['commandParams'][0x0]['value'];if(_0xc0a7d){const _0x4cfe0a=_0x2110a6(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4e3484=>_0x4e3484['model']==_0xc0a7d)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5ba74c,'*Set\x20font\x20size:*\x20%0',_0x4cfe0a)};}return{'type':'format','content':o(_0x5ba74c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x27e4bb['commandName']){const _0x5bbdcb=_0x27e4bb['commandParams'][0x0]['value'];return _0x5bbdcb?{'type':'format','content':o(_0x5ba74c,'*Set\x20font\x20family:*\x20%0',_0x5bbdcb)}:{'type':'format','content':o(_0x5ba74c,'*Reset\x20font\x20family*')};}if('fontColor'==_0x27e4bb['commandName']){const _0xe874c1=_0x27e4bb['commandParams'][0x0]['value'];if(_0xe874c1){const _0x381037=_0x26d584(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3e00e0=>_0x3e00e0['model']==_0xe874c1);let _0x2f2844=_0xe874c1,_0x4fcaea='';return _0x381037&&(_0x2f2844=_0x381037['label'],_0x4fcaea=_0x2110a6(_0x2f2844)['toLowerCase']()),{'type':'format','content':o(_0x5ba74c,'*Set\x20font\x20color:*\x20%0',_0x4fcaea)['trim'](),'color':{'value':_0xe874c1,'title':_0x4fcaea||_0x2f2844}};}return{'type':'format','content':o(_0x5ba74c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x27e4bb['commandName']){const _0x117039=_0x27e4bb['commandParams'][0x0]['value'];if(_0x117039){const _0x2497c8=_0x26d584(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x316ce5=>_0x316ce5['model']==_0x117039);let _0x18df4d=_0x117039,_0x373667='';return _0x2497c8&&(_0x18df4d=_0x2497c8['label'],_0x373667=_0x2110a6(_0x18df4d)['toLowerCase']()),{'type':'format','content':o(_0x5ba74c,'*Set\x20font\x20background\x20color:*\x20%0',_0x373667)['trim'](),'color':{'value':_0x117039,'title':_0x373667||_0x18df4d}};}return{'type':'format','content':o(_0x5ba74c,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x522036{['afterInit'](){const _0xc6d8ad=this['editor'],_0xc6ec17=_0xc6d8ad['plugins']['get']('TrackChangesEditing'),_0x156e3d=_0xc6d8ad['commands']['get']('copyFormat'),_0x2df0fb=_0xc6d8ad['commands']['get']('pasteFormat');_0x156e3d&&_0x2df0fb&&(_0xc6ec17['enableDefaultAttributesIntegration']('pasteFormat'),_0xc6ec17['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3f23da=this['editor'],_0x95e7fb=_0x3f23da['locale'];_0x3f23da['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x350fe7=>{if('formatBlock'!=_0x350fe7['type']&&'formatInline'!=_0x350fe7['type'])return;const {data:_0x2381f5}=_0x350fe7;if(_0x2381f5&&'pasteFormat'===_0x2381f5['commandName']){const _0x5d1104=[],_0x331548=_0x2381f5['commandParams'][0x0];for(const [_0x188177,_0x598465]of Object['entries'](_0x331548))_0x5d1104['push'](so(_0x3f23da,_0x188177,_0x598465));return _0x5d1104['length']?{'type':'format','content':o(_0x95e7fb,'*Set\x20format\x20to:*\x20%0',_0x5d1104['join'](',\x20'))}:{'type':'format','content':o(_0x95e7fb,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5751e9,_0x3c956f,_0x4498d0){const _0x4b9ee9=_0x5751e9['locale']['t'],_0xe4b3c=_0x3c956f['split'](/(?=[A-Z])/)['join']('\x20'),_0x27ad9b=_0x4b9ee9(_0xe4b3c['charAt'](0x0)['toUpperCase']()+_0xe4b3c['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4498d0)return _0x27ad9b;if('fontColor'===_0x3c956f||'fontBackgroundColor'===_0x3c956f){const _0x29cba3=_0x26d584(_0x5751e9['config']['get']('fontColor.colors'))['find'](_0x49ad6f=>_0x49ad6f['model']==_0x4498d0);return _0x27ad9b+'\x20('+(_0x29cba3?_0x4b9ee9(_0x29cba3['label'])['toLowerCase']():_0x4498d0)+')';}if('fontSize'===_0x3c956f&&isNaN(parseFloat(_0x4498d0))){const _0x3a7f4b=_0x5751e9['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5751e9['config']['get']('fontSize.options'))['find'](_0x186b68=>_0x186b68['model']==_0x4498d0);return _0x27ad9b+'\x20('+(_0x3a7f4b?_0x4b9ee9(_0x3a7f4b['title'])['toLowerCase']():_0x4498d0)+')';}return _0x27ad9b+'\x20('+_0x4498d0+')';}class nt extends _0x522036{['_headingOptions'];['afterInit'](){const _0x15e544=this['editor'];if(!_0x15e544['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x15e544['config']['get']('heading.options');const _0x1f51a5=_0x15e544['locale'],_0x3676c8=_0x15e544['plugins']['get']('TrackChangesEditing');_0x3676c8['enableDefaultAttributesIntegration']('heading');for(const _0x5d2778 of this['_headingOptions'])'paragraph'!=_0x5d2778['model']&&_0x3676c8['descriptionFactory']['registerElementLabel'](_0x5d2778['model'],_0x8d8c49=>{const _0x49a465=this['_getHeadingLevel'](_0x5d2778['model']);return null!==_0x49a465?_0x37059b(_0x8d8c49,_0x49a465):_0x561793(_0x8d8c49,_0x5d2778['title']);});function _0x37059b(_0x1ae8ec,_0x31bfd3){return o(_0x1f51a5,'ELEMENT_HEADING',[_0x1ae8ec,_0x31bfd3]);}function _0x561793(_0x1a6f56,_0x18c113){return o(_0x1f51a5,'ELEMENT_HEADING_CUSTOM',[_0x1a6f56,_0x18c113]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5cd1d1=this['editor'],_0x41009f=_0x5cd1d1['locale'];function _0x1dac4f(_0x43442c,_0x420bd2){return o(_0x41009f,'ELEMENT_HEADING_CUSTOM',[_0x43442c,_0x420bd2]);}_0x5cd1d1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x150204=>{if('formatBlock'!=_0x150204['type'])return;const {data:_0x19c8d3}=_0x150204;if(_0x19c8d3&&'heading'==_0x19c8d3['commandName']){const _0x105389=_0x19c8d3['commandParams'][0x0]['value'],_0x21dc74=this['_getHeadingLevel'](_0x105389);if(null!==_0x21dc74)return{'type':'format','content':o(_0x41009f,'*Change\x20to:*\x20%0',(_0x235ad8=0x1,_0x26503d=_0x21dc74,o(_0x41009f,'ELEMENT_HEADING',[_0x235ad8,_0x26503d])))};const _0x7b74ce=this['_headingOptions']['find'](_0x173ade=>_0x173ade['model']===_0x105389)['title'];return{'type':'format','content':o(_0x41009f,'*Change\x20to:*\x20%0',_0x1dac4f(0x1,_0x7b74ce))};}var _0x235ad8,_0x26503d;});}['_getHeadingLevel'](_0x3dad53){const _0x138bff=_0x3dad53['match'](/^heading(\d+)/);if(_0x138bff)return _0x138bff[0x1];const _0x508add=this['_headingOptions']?.['find'](_0x5a406=>_0x5a406['model']==_0x3dad53);if(_0x508add&&_0x508add['view']){const _0x1801f2=_0x508add['view'],_0x4dd651=(_0x1801f2['name']??_0x1801f2)['match'](/^h(\d+)/);if(_0x4dd651)return _0x4dd651[0x1];}return null;}}class it extends _0x522036{['afterInit'](){const _0xf9a452=this['editor'];if(!_0xf9a452['plugins']['has']('HighlightEditing'))return;const _0x2ba7d6=_0xf9a452['plugins']['get']('TrackChangesEditing'),_0x116411=_0xf9a452['locale'];_0x2ba7d6['enableDefaultAttributesIntegration']('highlight'),_0x2ba7d6['registerInlineAttribute']('highlight'),_0x2ba7d6['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x116411,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c3644=this['editor'],_0x2cfd00=_0x5c3644['locale'];_0x5c3644['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1aab71=>{if('formatInline'!=_0x1aab71['type'])return;const {data:_0x2e21e7}=_0x1aab71;if(_0x2e21e7&&'highlight'==_0x2e21e7['commandName']){const _0x829c77=_0x2cfd00['t'],_0x1128c4=_0x2e21e7['commandParams'][0x0]['value'];if(_0x1128c4){const _0x1e69c7=_0x5c3644['config']['get']('highlight.options')['find'](_0x14737f=>_0x14737f['model']==_0x1128c4),_0x5e8a89=_0x829c77(_0x1e69c7['title'])['toLowerCase']();return{'type':'format','content':o(_0x2cfd00,'*Set\x20highlight:*\x20%0',_0x5e8a89),'color':{'value':_0x1e69c7['color'],'title':_0x1e69c7['title']}};}return{'type':'format','content':o(_0x2cfd00,'*Remove\x20highlight*',o(_0x2cfd00,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x522036{['afterInit'](){const _0x466a24=this['editor'];if(!_0x466a24['plugins']['has']('HorizontalLineEditing'))return;_0x466a24['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x592ea1=_0x466a24['plugins']['get']('TrackChangesEditing'),_0x4ab553=_0x466a24['locale'];_0x592ea1['descriptionFactory']['registerElementLabel']('horizontalLine',_0x256764=>o(_0x4ab553,'ELEMENT_HORIZONTAL_LINE',_0x256764)),_0x466a24['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x180193,{writer:_0x511e5a,options:_0x204883})=>{if(!_0x204883['showSuggestionHighlights'])return null;const _0x32884f=_0x511e5a['createContainerElement']('div'),_0x44c811=_0x511e5a['createEmptyElement']('hr');return _0x511e5a['addClass']('ck-horizontal-line',_0x32884f),_0x511e5a['insert'](_0x511e5a['createPositionAt'](_0x32884f,0x0),_0x44c811),_0x32884f;},'converterPriority':'high'});}}class st extends _0x522036{['afterInit'](){const _0x5420c7=this['editor'];if(!_0x5420c7['plugins']['has']('HtmlEmbed'))return;const _0x34fd62=_0x5420c7['plugins']['get']('TrackChangesEditing'),_0x25c647=_0x5420c7['locale'];_0x34fd62['descriptionFactory']['registerElementLabel']('rawHtml',_0x193cc9=>o(_0x25c647,'ELEMENT_HTML_EMBED',_0x193cc9)),_0x34fd62['enableDefaultAttributesIntegration']('htmlEmbed'),_0x34fd62['registerBlockAttribute']('value'),_0x34fd62['descriptionFactory']['registerDescriptionCallback'](_0x53435a=>{if('attribute'!=_0x53435a['type'])return;const {data:_0x39459c}=_0x53435a;if(_0x39459c&&'value'==_0x39459c['key']&&_0x53435a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x34af47=o(_0x25c647,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x25c647,'*Change\x20%0\x20content*',_0x34af47)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ad7a2=this['editor'],_0x4cf915=_0x5ad7a2['locale'];_0x5ad7a2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x225dec=>{if('formatBlock'!=_0x225dec['type'])return;const {data:_0x1dc02a}=_0x225dec;if(_0x1dc02a&&'htmlEmbed'==_0x1dc02a['commandName']){const _0x3dae1f=o(_0x4cf915,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4cf915,'*Change\x20%0\x20content*',_0x3dae1f)};}});}}class ot extends _0x522036{['afterInit'](){const _0x4a4179=this['editor'];if(!_0x4a4179['plugins']['has']('ImageEditing'))return;const _0x336d30=_0x4a4179['plugins']['get']('TrackChangesEditing'),_0x5d8fd0=_0x4a4179['plugins']['get']('ImageUtils'),_0x418263=_0x4a4179['locale'];_0x336d30['enableCommand']('insertImage'),_0x336d30['descriptionFactory']['registerElementLabel']('imageBlock',_0x63e97d=>o(_0x418263,'ELEMENT_IMAGE',_0x63e97d)),_0x336d30['descriptionFactory']['registerElementLabel']('imageInline',_0x2b1b32=>o(_0x418263,'ELEMENT_INLINE_IMAGE',_0x2b1b32)),_0x336d30['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x418263,'ELEMENT_CAPTION')),_0x4a4179['plugins']['has']('ImageUploadEditing')&&_0x336d30['enableCommand']('uploadImage'),_0x4a4179['plugins']['has']('ImageBlockEditing')&&_0x4a4179['plugins']['has']('ImageInlineEditing')&&(_0x336d30['enableCommand']('imageTypeInline',(_0x71603f,_0x58ff4c)=>{const _0x47a48a=_0x5d8fd0['getClosestSelectedImageElement'](_0x4a4179['model']['document']['selection']);_0x4a4179['model']['change'](()=>{_0x336d30['markBlockFormat'](_0x47a48a,{'commandName':'imageTypeInline','commandParams':[_0x58ff4c]},[],'convertBlockImageToInline');});}),_0x336d30['enableCommand']('imageTypeBlock',(_0x41cb25,_0x3f4e3b)=>{_0x4a4179['model']['change'](_0x488b7d=>{let _0xa09c2e=_0x5d8fd0['getClosestSelectedImageElement'](_0x4a4179['model']['document']['selection']),_0x53062d=_0x488b7d['createRangeOn'](_0xa09c2e);const _0x4d60f2=_0x3a3fe2['fromPosition'](_0x53062d['start'],'toPrevious'),_0x3c4be1=_0x3a3fe2['fromPosition'](_0x53062d['end'],'toNext');_0x336d30['forceDefaultExecution'](()=>_0x41cb25(_0x3f4e3b)),_0xa09c2e=_0x5d8fd0['getClosestSelectedImageElement'](_0x4a4179['model']['document']['selection']),_0x53062d=_0x488b7d['createRangeOn'](_0xa09c2e);const _0xe1bf71=_0x488b7d['createRange'](_0x4d60f2,_0x3c4be1);_0x4d60f2['detach'](),_0x3c4be1['detach'](),_0x336d30['markBlockFormat'](_0xa09c2e,{'commandName':'imageTypeInline','commandParams':[_0x3f4e3b]},[],'convertInlineImageToBlock'),_0xe1bf71['start']['isBefore'](_0x53062d['start'])&&_0x336d30['markInsertion'](_0x488b7d['createRange'](_0xe1bf71['start'],_0x53062d['start']),'convertInlineImageToBlock'),_0x53062d['end']['isBefore'](_0xe1bf71['end'])&&_0x336d30['markInsertion'](_0x488b7d['createRange'](_0x53062d['end'],_0xe1bf71['end']),'convertInlineImageToBlock');});}),_0x336d30['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x336d30['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x336d30['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x336d30['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x336d30['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x336d30['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x122185])=>{const _0x5a2997=_0x336d30['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1af0a8=_0x122185['start'],_0x274078=_0x122185['end'];const _0x2fc538=_0x4a4179['model']['schema']['getNearestSelectionRange'](_0x1af0a8,'backward'),_0x27c137=_0x4a4179['model']['schema']['getNearestSelectionRange'](_0x274078,'forward');_0x2fc538['isCollapsed']&&(_0x1af0a8=_0x2fc538['start']),_0x27c137['isCollapsed']&&(_0x274078=_0x27c137['end']),_0x5a2997([_0x4a4179['model']['createRange'](_0x1af0a8,_0x274078)]);}),_0x336d30['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x34107f),_0x336d30['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x34107f)),_0x4a4179['plugins']['has']('ImageCaptionEditing')&&(_0x336d30['enableCommand']('toggleImageCaption',(_0x9043c3,_0x2f9fb5)=>{const _0x5bd455=_0x4a4179['plugins']['get']('ImageCaptionUtils');let _0x16fac4=_0x5d8fd0['getClosestSelectedImageElement'](_0x4a4179['model']['document']['selection']),_0x2e9729=_0x5bd455['getCaptionFromImageModelElement'](_0x16fac4);_0x4a4179['model']['change'](()=>{if(_0x2e9729)return void _0x336d30['markDeletion'](_0x4a4179['model']['createRangeOn'](_0x2e9729));const _0x23f210=_0x5d8fd0['isBlockImage'](_0x16fac4);_0x9043c3(_0x2f9fb5),_0x16fac4=_0x5d8fd0['getClosestSelectedImageElement'](_0x4a4179['model']['document']['selection']),_0x2e9729=_0x5bd455['getCaptionFromImageModelElement'](_0x16fac4),_0x336d30['markInsertion'](_0x4a4179['model']['createRangeOn'](_0x2e9729),_0x23f210?null:'imageCaption');});}),_0x336d30['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x34107f));const _0x4ff802=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1ef427(_0x38aad8,_0x446780){const _0x81f695=_0x4ff802['findIndex'](({type:_0x136f9b,subType:_0x5f36ef})=>_0x38aad8['type']==_0x136f9b&&_0x38aad8['subType']==_0x5f36ef),_0x44dd5d=_0x4ff802['findIndex'](({type:_0x4a6304,subType:_0x2a4951})=>_0x446780['type']==_0x4a6304&&_0x446780['subType']==_0x2a4951);if(_0x81f695<0x0||_0x44dd5d<0x0)return!0x1;const _0x5816d4=_0x38aad8['getFirstRange'](),_0x2f1868=_0x446780['getFirstRange']();if((0x0==_0x81f695||0x1==_0x81f695)&&0x2==_0x44dd5d&&_0x5816d4['isIntersecting'](_0x2f1868))return!0x0;if(0x2==_0x81f695&&0x3==_0x44dd5d){const _0x2bf133=_0x336d30['_findSuggestions'](_0x5816d4,'insertion')['filter'](({suggestion:_0x22cea2,meta:_0x25dafb})=>_0x25dafb['isOwn']&&'convertInlineImageToBlock'==_0x22cea2['subType']);if(_0x2bf133['length']>0x1&&_0x2f1868['end']['isEqual'](_0x5816d4['start']))return!0x0;if(0x1==_0x2bf133['length']&&(_0x5816d4['start']['isEqual'](_0x2f1868['end'])||_0x5816d4['end']['isEqual'](_0x2f1868['start'])))return!0x0;}if(0x3==_0x81f695&&0x3==_0x44dd5d&&_0x5816d4['start']['isBefore'](_0x2f1868['start'])){const _0x284b16=_0x5816d4['end']['nodeAfter'],_0x55181=_0x2f1868['start']['nodeBefore'];return _0x5d8fd0['isBlockImage'](_0x284b16)&&_0x284b16===_0x55181;}return!0x1;}function _0x34107f(_0x52b9bf,_0x671d3a){return _0x1ef427(_0x52b9bf,_0x671d3a)?[_0x52b9bf,_0x671d3a]:_0x1ef427(_0x671d3a,_0x52b9bf)?[_0x671d3a,_0x52b9bf]:null;}_0x4a4179['plugins']['has']('ImageResize')&&(_0x336d30['enableDefaultAttributesIntegration']('resizeImage'),_0x336d30['registerBlockAttribute']('resizedWidth'),_0x336d30['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x418263,'FORMAT_IMAGE_SIZE'))),_0x4a4179['plugins']['has']('ImageTextAlternativeEditing')&&(_0x336d30['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x336d30['registerBlockAttribute']('alt')),_0x336d30['descriptionFactory']['registerDescriptionCallback'](_0x2e3bd4=>{if(!!_0x4ff802['find'](({type:_0x3538be,subType:_0x5ce557})=>_0x2e3bd4['type']==_0x3538be&&_0x2e3bd4['subType']==_0x5ce557))return _0x2e3bd4['previous']?{}:void 0x0;}),_0x336d30['descriptionFactory']['registerDescriptionCallback'](_0x13db35=>{if('insertion'==_0x13db35['type']||'deletion'==_0x13db35['type']){const _0x52994e=_0x13db35['getContainedElement']();if(_0x52994e&&_0x52994e['is']('element','caption'))return{'type':'insertion'==_0x13db35['type']?'addObject':'removeObject','element':_0x52994e,'quantity':0x1};}}),_0x336d30['descriptionFactory']['registerDescriptionCallback'](_0x212c80=>'formatBlock'==_0x212c80['type']&&'convertInlineImageToBlock'==_0x212c80['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x212c80['type']&&'convertBlockImageToInline'==_0x212c80['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x336d30['descriptionFactory']['registerDescriptionCallback'](_0x3cfc98=>{if('attribute'!=_0x3cfc98['type'])return;const {data:_0x186cea}=_0x3cfc98;if(!_0x186cea||'alt'!=_0x186cea['key'])return;const _0xd34608=_0x186cea['newValue'];return _0xd34608?{'type':'format','content':o(_0x418263,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xd34608+'\x22')}:{'type':'format','content':o(_0x418263,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58588c=this['editor'],_0x5d675f=_0x58588c['locale'];_0x58588c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33ca7e=>{if('formatBlock'!=_0x33ca7e['type']&&'formatInline'!=_0x33ca7e['type'])return;const {data:_0x599e4f}=_0x33ca7e;if(_0x599e4f){if('imageTextAlternative'==_0x599e4f['commandName']){const _0x358efb=_0x599e4f['commandParams'][0x0]['newValue'];return _0x358efb?{'type':'format','content':o(_0x5d675f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x358efb+'\x22')}:{'type':'format','content':o(_0x5d675f,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x599e4f['commandName']){const _0x4d0834=_0x599e4f['commandParams'][0x0]['width'];return _0x4d0834?{'type':'format','content':o(_0x5d675f,'*Set\x20image\x20width:*\x20%0',_0x4d0834)}:{'type':'format','content':o(_0x5d675f,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x522036{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x171d24=this['editor']['locale'],_0x7b7fac=this['editor']['plugins']['get']('TrackChangesEditing');_0x7b7fac['enableDefaultAttributesIntegration']('replaceImageSource'),_0x7b7fac['registerBlockAttribute']('src'),_0x7b7fac['descriptionFactory']['registerDescriptionCallback'](_0x17b5fb=>{if('attribute'!=_0x17b5fb['type'])return;const {data:_0x500d1d}=_0x17b5fb;return _0x500d1d&&'src'==_0x500d1d['key']?_0x500d1d['newValue']&&_0x500d1d['oldValue']?{'type':'format','content':o(_0x171d24,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x54b579=this['editor']['plugins']['get']('TrackChangesEditing');_0x54b579['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x54b579['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x54b579['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x54b579['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x662e9d=this['editor'],_0xd34757=_0x662e9d['locale'];_0x662e9d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19015f=>{if('formatBlock'!=_0x19015f['type']&&'formatInline'!=_0x19015f['type'])return;const {data:_0x4367cd}=_0x19015f;if(!_0x4367cd||'replaceImageSource'!=_0x4367cd['commandName'])return;return{'type':'format','content':o(_0xd34757,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x522036{['afterInit'](){const _0x1cec72=this['editor'];if(!_0x1cec72['plugins']['has']('ImageStyleEditing'))return;const _0x1ccf88=_0x1cec72['plugins']['get']('TrackChangesEditing'),_0x42b497=_0x1cec72['plugins']['get']('ImageUtils'),_0x5523b5={};_0x1ccf88['enableCommand']('imageStyle',(_0x4c3af2,_0x282b48)=>{const _0x5c2a5c=_0x1cec72['plugins']['get']('Users')['me'],_0x296074=_0x1cec72['commands']['get']('imageStyle');let _0x1d1747=_0x42b497['getClosestSelectedImageElement'](_0x1cec72['model']['document']['selection']),_0x1670a1=_0x1cec72['model']['createRangeOn'](_0x1d1747),_0x5f1efa=_0x296074['value'];if(_0x5f1efa==_0x282b48['value'])return;const _0x62fd66={'commandName':'imageStyle','commandParams':[_0x282b48],'formatGroupId':_0xb9e80()};_0x1cec72['model']['change'](()=>{if(_0x1ccf88['getSuggestions']()['filter'](_0x5493a1=>_0x5493a1['isInContent']&&_0x5c2a5c==_0x5493a1['author']&&('formatBlock'==_0x5493a1['type']||'formatInline'==_0x5493a1['type'])&&('imageStylePreApply'==_0x5493a1['subType']||'imageStylePostApply'==_0x5493a1['subType'])&&_0x5493a1['getFirstRange']()['isEqual'](_0x1670a1))['forEach'](_0x2291c4=>_0x1ccf88['discardSuggestion'](_0x2291c4['head'])),_0x1d1747=_0x42b497['getClosestSelectedImageElement'](_0x1cec72['model']['document']['selection']),_0x1670a1=_0x1cec72['model']['createRangeOn'](_0x1d1747),_0x296074['refresh'](),_0x1cec72['commands']['get']('imageTypeInline')['refresh'](),_0x1cec72['commands']['get']('imageTypeBlock')['refresh'](),_0x5f1efa=_0x296074['value'],_0x5f1efa!=_0x282b48['value'])return _0x42b497['isInlineImage'](_0x1d1747)&&_0x296074['shouldConvertImageType'](_0x282b48['value'],_0x1d1747)?(_0x4c3af2({..._0x282b48,'setImageSizes':!0x1}),_0x1d1747=_0x42b497['getClosestSelectedImageElement'](_0x1cec72['model']['document']['selection']),void _0x1ccf88['markBlockFormat'](_0x1d1747,{..._0x62fd66,'commandReversedParams':[{'value':_0x5f1efa||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x42b497['isBlockImage'](_0x1d1747)?_0x1ccf88['markBlockFormat'](_0x1d1747,_0x62fd66,[],'imageStylePostApply'):_0x1ccf88['markInlineFormat'](_0x1670a1,_0x62fd66,'imageStylePostApply'));});});for(const _0x27a6ac of _0x1cec72['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5523b5[_0x27a6ac['name']]=_0x27a6ac['title']['toLowerCase']();_0x1ccf88['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1ccf88['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1ccf88['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1ccf88['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x25aa82])=>{_0x42b497['setImageNaturalSizeAttributes'](_0x25aa82['getContainedElement']());}),_0x1ccf88['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x15ce1f,_0x50d400)=>{_0x1ccf88['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x15ce1f,{'commandName':_0x50d400['commandName'],'commandParams':_0x50d400['commandReversedParams']});}),_0x1ccf88['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x13b05f,_0x5c0893){if(_0x68225d(_0x13b05f,_0x5c0893))return[_0x13b05f,_0x5c0893];if(_0x68225d(_0x5c0893,_0x13b05f))return[_0x5c0893,_0x13b05f];return null;});const _0x4243bd=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x68225d(_0x2aaa43,_0x5d7f51){const _0x6639f5=_0x4243bd['findIndex'](({type:_0x40ee83,subType:_0x3d3a3f})=>_0x2aaa43['type']==_0x40ee83&&_0x2aaa43['subType']==_0x3d3a3f),_0x2d861d=_0x4243bd['findIndex'](({type:_0x4c2cbf,subType:_0x5c53b3})=>_0x5d7f51['type']==_0x4c2cbf&&_0x5d7f51['subType']==_0x5c53b3);if(_0x6639f5<0x0||_0x2d861d<0x0)return!0x1;const _0x3bf258=_0x2aaa43['getFirstRange'](),_0xcb2214=_0x5d7f51['getFirstRange']();if((0x0==_0x6639f5||0x1==_0x6639f5)&&0x2==_0x2d861d&&_0x3bf258['isIntersecting'](_0xcb2214))return!0x0;if(0x2==_0x6639f5&&0x3==_0x2d861d){const _0x26937c=_0x1ccf88['_findSuggestions'](_0x3bf258,'insertion')['filter'](({suggestion:_0x2403b9,meta:_0x30bb93})=>_0x30bb93['isOwn']&&'convertInlineImageToBlock'==_0x2403b9['subType']);if(_0x26937c['length']>0x1&&_0xcb2214['end']['isEqual'](_0x3bf258['start']))return!0x0;if(0x1==_0x26937c['length']&&(_0x3bf258['start']['isEqual'](_0xcb2214['end'])||_0x3bf258['end']['isEqual'](_0xcb2214['start'])))return!0x0;}if(0x3==_0x6639f5&&0x3==_0x2d861d&&_0x3bf258['start']['isBefore'](_0xcb2214['start'])){const _0x836b1a=_0x3bf258['end']['nodeAfter'],_0x3fb85f=_0xcb2214['start']['nodeBefore'];return _0x42b497['isBlockImage'](_0x836b1a)&&_0x836b1a===_0x3fb85f;}return!0x1;}_0x1cec72['model']['document']['registerPostFixer'](()=>{let _0x578a8e=!0x1;const _0x3eee4b=Array['from'](_0x1cec72['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x521351,data:_0x580c17}of _0x3eee4b){const {group:_0x373de7,type:_0x5a7f69,subType:_0x5ed572,id:_0x39444a}=_0x1ccf88['_splitMarkerName'](_0x521351);if('suggestion'==_0x373de7&&_0x1ccf88['hasSuggestion'](_0x39444a)){if('formatBlock'==_0x5a7f69&&('imageStylePreApply'==_0x5ed572||'imageStylePostApply'==_0x5ed572)){const _0x447e5c=_0x1ccf88['getSuggestion'](_0x39444a);if(_0x580c17['newRange']){const _0x38a6fe=_0x447e5c['getFirstRange']()['getContainedElement']();if(_0x42b497['isBlockImage'](_0x38a6fe))continue;_0x1ccf88['discardSuggestion'](_0x447e5c),_0x578a8e=!0x0;}}if('insertion'==_0x5a7f69&&'imageCaption'==_0x5ed572&&!_0x580c17['newRange']){const _0x3dcdd1=_0x1ccf88['getSuggestion'](_0x39444a);_0x3dcdd1['next']&&_0x3dcdd1['next']['isInContent']&&(_0x1ccf88['discardSuggestion'](_0x3dcdd1['next']),_0x578a8e=!0x0);}}}return _0x578a8e;}),this['_registerLegacyDescription'](_0x5523b5);}['_registerLegacyDescription'](_0x5de361){const _0x377cd1=this['editor'],_0x449718=_0x377cd1['locale'];_0x377cd1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x208809=>{if('formatBlock'!=_0x208809['type']&&'formatInline'!=_0x208809['type'])return;const {data:_0x53eba9}=_0x208809;if(!_0x53eba9||'imageStyle'!=_0x53eba9['commandName'])return;const _0x1885e7=_0x53eba9['commandParams'][0x0]['value'];return _0x2427ff('side'===_0x1885e7?o(_0x449718,'FORMAT_SIDE_IMAGE'):_0x5de361[_0x1885e7]||_0x1885e7);function _0x2427ff(_0x4e7b64){return{'type':'format','content':o(_0x449718,'*Format:*\x20%0',_0x4e7b64)};}});}}class ct extends _0x522036{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x14030f){super(_0x14030f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xab0401=this['editor'],_0x64a159=_0xab0401['commands']['get']('importWord'),_0x5df6ae=_0xab0401['commands']['get']('trackChanges');_0x64a159&&(_0x64a159['on']('execute',(_0x3954a2,[,_0x41df04])=>{this['_trackChangesValueDuringImport']=_0x5df6ae['value'],_0x41df04['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x64a159,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x64a159,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5df6ae['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xab0401['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5ed014,_0x32e932){const {suggestions:_0x16d1f0}=_0x32e932,_0x276c75=this['editor']['commands']['get']('trackChanges'),_0x88466e=_0x276c75['value'];this['_trackChangesValueDuringImport']!==_0x88466e&&(_0x276c75['execute'](),this['_trackChangesExecuted']=!0x0),_0x16d1f0&&_0x16d1f0['forEach'](({id:_0x244ab3,type:_0x1c73f8,author:_0x1c0f05,created_at:_0x578044})=>{const _0x4ebaf8={'id':_0x244ab3,'type':_0x1c73f8,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1c0f05,'createdAt':_0x578044?new Date(_0x578044):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4ebaf8);});}}class ut extends _0x522036{['afterInit'](){const _0x427e1b=this['editor'],_0x353be6=_0x427e1b['plugins']['get']('TrackChangesEditing');if(_0x427e1b['plugins']['has']('IndentEditing')&&(_0x353be6['enableCommand']('indent'),_0x353be6['enableCommand']('outdent')),_0x427e1b['plugins']['has']('IndentBlock')){for(const _0x29c08f of['indentBlock','outdentBlock'])_0x353be6['enableDefaultAttributesIntegration'](_0x29c08f);}const _0x4d54c0=_0x427e1b['locale'];_0x353be6['registerBlockAttribute']('blockIndent'),_0x353be6['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4d54c0,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3357fd=this['editor'],_0x3f9f88=_0x3357fd['locale'],_0x4fbe05=_0x3357fd['plugins']['get']('TrackChangesEditing');_0x4fbe05['descriptionFactory']['registerDescriptionCallback'](_0xf0a993=>{if('formatBlock'!=_0xf0a993['type'])return;const {data:_0x598bc7}=_0xf0a993;if(!_0x598bc7)return;if('indentBlock'!=_0x598bc7['commandName']&&'outdentBlock'!=_0x598bc7['commandName'])return;const _0x34ed7d=_0xf0a993['getItems']()[0x0],_0x5bb7d6=_0x4fbe05['descriptionFactory']['getItemLabel'](_0x34ed7d);return'indentBlock'==_0x598bc7['commandName']?{'type':'format','content':o(_0x3f9f88,'*Indent:*\x20%0',_0x5bb7d6)}:'outdentBlock'==_0x598bc7['commandName']?{'type':'format','content':o(_0x3f9f88,'*Outdent:*\x20%0',_0x5bb7d6)}:void 0x0;});}}class ft extends _0x522036{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x522036{['afterInit'](){const _0x31c90b=this['editor'];if(!_0x31c90b['plugins']['has']('LinkEditing'))return;const _0x2328ae=_0x31c90b['plugins']['get']('TrackChangesEditing'),_0x2ab15b=_0x31c90b['commands']['get']('link');_0x2328ae['enableDefaultAttributesIntegration']('link'),_0x2328ae['enableDefaultAttributesIntegration']('unlink'),_0x2328ae['registerInlineAttribute']('linkHref');for(const _0x55ef42 of _0x2ab15b['manualDecorators'])_0x2328ae['registerInlineAttribute'](_0x55ef42['id']),_0x2328ae['descriptionFactory']['registerAttributeLabel'](_0x55ef42['id'],'link\x20('+_0x55ef42['label']['toLowerCase']()+')');_0x2328ae['descriptionFactory']['registerDescriptionCallback'](_0x2853b2=>{if('attribute'!=_0x2853b2['type'])return;const {data:_0x4ca9e4}=_0x2853b2;if(!_0x4ca9e4||'linkHref'!=_0x4ca9e4['key'])return;const _0x25d67f=_0x4ca9e4['newValue'],_0x4ce87c=_0x31c90b['locale'];return{'type':'format','content':null==_0x25d67f?o(_0x4ce87c,'*Remove\x20link*'):o(_0x4ce87c,'*Set\x20link:*\x20%0','\x22'+_0x25d67f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53e46b=this['editor'],_0x55e53a=_0x53e46b['locale'];_0x53e46b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20d20b=>{if('formatInline'!=_0x20d20b['type'])return;const {data:_0x4236b8}=_0x20d20b;if(_0x4236b8){if('link'==_0x4236b8['commandName']){const _0xcad376=_0x4236b8['commandParams'][0x0];return{'type':'format','content':o(_0x55e53a,'*Set\x20link:*\x20%0','\x22'+_0xcad376+'\x22')};}return'unlink'==_0x4236b8['commandName']?{'type':'format','content':o(_0x55e53a,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x522036{['afterInit'](){const _0x539f09=this['editor'],_0x5ea4ed=_0x539f09['locale'];if(!_0x539f09['plugins']['has']('LegacyListEditing'))return;const _0x51bf7c=_0x539f09['plugins']['get']('TrackChangesEditing'),_0x4239ee=_0x539f09['plugins']['has']('LegacyTodoListEditing');function _0x339fc5(_0xe261fb){return()=>{const _0x5d468b=_0x539f09['model']['document']['selection'],_0x18e492=_0x539f09['commands']['get'](_0xe261fb);if(_0x18e492['value'])return void _0x539f09['execute']('paragraph',{});const _0x1e1702=_0xe261fb['slice'](0x0,-0x4),_0x42f324=function(_0x2e244a,_0x573f6d,_0xefe871){let _0x59a0c4=Array['from'](_0x2e244a)['filter'](_0x27ea2f=>function(_0x3d96b1,_0x3f2253){return _0x3f2253['checkChild'](_0x3d96b1['parent'],'listItem')&&!_0x3f2253['isObject'](_0x3d96b1);}(_0x27ea2f,_0xefe871));_0x59a0c4=_0x59a0c4['filter'](_0x33d92e=>!_0x33d92e['is']('element','listItem')||_0x33d92e['getAttribute']('listType')!=_0x573f6d);const _0xef037=new Set();for(const _0x5913d0 of _0x59a0c4)_0x5913d0['is']('element','listItem')?_0xef037['add'](Le(_0x5913d0)):_0xef037['add'](_0x5913d0);return Array['from'](_0xef037);}(_0x5d468b['getSelectedBlocks'](),_0x1e1702,_0x539f09['model']['schema']);_0x539f09['model']['change'](()=>{for(const _0x45bb59 of _0x42f324)_0x51bf7c['markBlockFormat'](_0x45bb59,{'commandName':_0xe261fb,'commandParams':[{'forceValue':!_0x18e492['value']}],'formatGroupId':'blockName'},Ee(_0x45bb59));});};}function _0x4c4c7e(_0x7460f5){return()=>{const _0x864c36=function(_0x54e373){let _0xcbc205=Array['from'](_0x54e373);const _0x166ee2=_0xcbc205['findIndex'](_0x1397f5=>'listItem'!=_0x1397f5['name']);return _0x166ee2>-0x1&&(_0xcbc205=_0xcbc205['slice'](0x0,_0x166ee2)),_0xcbc205;}(_0x539f09['model']['document']['selection']['getSelectedBlocks']()),_0x3a9d8c=_0x539f09['model']['createRange'](_0x539f09['model']['createPositionAt'](_0x864c36[0x0],'before'),_0x539f09['model']['createPositionAt'](_0x864c36[_0x864c36['length']-0x1],'end'));_0x539f09['model']['change'](()=>{_0x51bf7c['markBlockFormat'](_0x3a9d8c,{'commandName':_0x7460f5,'commandParams':[],'formatGroupId':'listIndent'},function(_0x18ea5c){const _0x4b5e2b=new Set();for(const _0x633b77 of _0x18ea5c){let _0x574d29=_0x633b77['nextSibling'];for(;_0x574d29&&_0x574d29['getAttribute']('listIndent')>_0x633b77['getAttribute']('listIndent');)_0x4b5e2b['add'](_0x574d29),_0x574d29=_0x574d29['nextSibling'];}return Array['from'](_0x4b5e2b);}(_0x864c36));});};}_0x51bf7c['enableCommand']('numberedList',_0x339fc5('numberedList')),_0x51bf7c['enableCommand']('bulletedList',_0x339fc5('bulletedList')),_0x4239ee&&_0x51bf7c['enableCommand']('todoList',_0x339fc5('todoList')),_0x51bf7c['enableCommand']('indentList',_0x4c4c7e('indentList')),_0x51bf7c['enableCommand']('outdentList',_0x4c4c7e('outdentList')),_0x4239ee&&_0x51bf7c['enableCommand']('checkTodoList',()=>{const _0x1a04da=_0x539f09['commands']['get']('checkTodoList'),_0x88bae4=Array['from'](_0x1a04da['_selectedElements']);_0x88bae4['filter'](_0x485a4f=>_0x485a4f['getAttribute']('todoListChecked')!=_0x1a04da['value']),_0x539f09['model']['change'](()=>{for(const _0x575534 of _0x88bae4)_0x51bf7c['markBlockFormat'](_0x575534,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1a04da['value']}]});});}),_0x51bf7c['descriptionFactory']['registerElementLabel']('listItem',_0x5b44f7=>o(_0x5ea4ed,'ELEMENT_LIST_ITEM',_0x5b44f7)),_0x51bf7c['descriptionFactory']['registerDescriptionCallback'](_0x286e6e=>{if('formatBlock'!=_0x286e6e['type']&&'formatInline'!=_0x286e6e['type'])return;const {data:_0x523ed8}=_0x286e6e;if(_0x523ed8){if('numberedList'==_0x523ed8['commandName']||'bulletedList'==_0x523ed8['commandName']||'todoList'==_0x523ed8['commandName'])switch(_0x523ed8['commandName']['replace']('List','')){case'bulleted':return _0x3625e7(o(_0x5ea4ed,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3625e7(o(_0x5ea4ed,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3625e7(o(_0x5ea4ed,'ELEMENT_TODO_LIST'));}if('indentList'==_0x523ed8['commandName'])return{'type':'format','content':o(_0x5ea4ed,'*Indent:*\x20%0',o(_0x5ea4ed,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x523ed8['commandName'])return{'type':'format','content':o(_0x5ea4ed,'*Outdent:*\x20%0',o(_0x5ea4ed,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x523ed8['commandName'])return _0x523ed8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5ea4ed,'*Check\x20item*')}:{'type':'format','content':o(_0x5ea4ed,'*Uncheck\x20item*')};}function _0x3625e7(_0x5a20fb){return{'type':'format','content':o(_0x5ea4ed,'*Change\x20to:*\x20%0',_0x5a20fb)};}});}}function Le(_0x370eec){const _0x2689a8=_0x370eec['getAttribute']('listIndent');if(0x0==_0x2689a8)return _0x370eec;let _0x1d0999=_0x370eec;for(;_0x370eec['previousSibling']&&_0x370eec['previousSibling']['is']('element','listItem');){const _0x335ec1=_0x370eec['previousSibling']['getAttribute']('listIndent');if(_0x335ec1==_0x2689a8)_0x1d0999=_0x370eec['previousSibling'];else{if(_0x335ec1<_0x2689a8)break;}_0x370eec=_0x370eec['previousSibling'];}return _0x1d0999;}function Ee(_0x39d83d){const _0x3b6597=[];if(_0x39d83d['is']('element','listItem')&&_0x39d83d['getAttribute']('listIndent')>0x0){let _0x365379=_0x39d83d['nextSibling'];for(;_0x365379&&'listItem'==_0x365379['name']&&_0x365379['getAttribute']('listIndent')==_0x39d83d['getAttribute']('listIndent');)_0x3b6597['push'](_0x365379),_0x365379=_0x365379['nextSibling'];}return _0x3b6597;}class Q extends _0x522036{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4f18de=this['editor']['config']['get']('list.properties'),_0x245504=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f18de['styles']&&_0x245504['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4f18de['reversed']&&_0x245504['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4f18de['startIndex']&&_0x245504['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x245504['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x6eaf28,_0x31f6bd={}){const _0x52dbf8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x350a29=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x52dbf8['markMultiRangeBlockFormat'](_0x350a29,{'commandName':'listStyle','commandParams':[{'type':_0x31f6bd['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x9f01fd,_0x2c8fa5={}){const _0xc35447=this['editor']['plugins']['get']('TrackChangesEditing'),_0x274adb=this['_getSuggestionBlocks'](_0x668706=>_0x668706['is']('element','listItem')&&'numbered'===_0x668706['getAttribute']('listType'));if(_0x274adb['length']<0x1)return;const _0x1f9ece=_0x274adb['map'](_0x10cedf=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x10cedf,'before'),this['editor']['model']['createPositionAt'](_0x10cedf,0x0)));this['editor']['model']['change'](()=>{_0xc35447['markMultiRangeBlockFormat'](_0x1f9ece,{'commandName':'listReversed','commandParams':[{'reversed':_0x2c8fa5['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4ff657,_0x28b694={}){const _0x1fd480=this['editor']['plugins']['get']('TrackChangesEditing'),_0x249b27=this['_getSuggestionBlocks'](_0x4b3f47=>_0x4b3f47['is']('element','listItem')&&'numbered'===_0x4b3f47['getAttribute']('listType'));if(_0x249b27['length']<0x1)return;const _0x3cd5b3=_0x249b27['map'](_0x5bb5cb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5bb5cb,'before'),this['editor']['model']['createPositionAt'](_0x5bb5cb,0x0)));this['editor']['model']['change'](()=>{_0x1fd480['markMultiRangeBlockFormat'](_0x3cd5b3,{'commandName':'listStart','commandParams':[{'startIndex':_0x28b694['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4f2b36){if('formatBlock'!=_0x4f2b36['type']&&'formatInline'!=_0x4f2b36['type'])return;const _0x42468c=this['editor']['locale'],{data:_0x46faa3}=_0x4f2b36;if(!_0x46faa3)return;let _0x10c89e,_0x21d59c;switch(_0x46faa3['commandName']){case'listStyle':_0x10c89e='*Change\x20to:*\x20%0',_0x21d59c={'type':'format','content':o(_0x42468c,_0x10c89e,o(_0x42468c,this['_getTranslationKeyForListStyle'](_0x46faa3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x10c89e=_0x46faa3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x21d59c={'type':'format','content':o(_0x42468c,_0x10c89e)};break;case'listStart':_0x10c89e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x21d59c={'type':'format','content':o(_0x42468c,_0x10c89e,_0x46faa3['commandParams'][0x0]['startIndex'])};}return _0x21d59c;}['_getSuggestionBlocksForListStyle'](){const _0x4ae6bf=this['editor']['plugins']['get']('LegacyListUtils');let _0x993c8f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x993c8f[0x0]?.['is']('element','listItem')&&_0x993c8f['unshift'](..._0x4ae6bf['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x993c8f[_0x993c8f['length']-0x1]?.['is']('element','listItem')&&_0x993c8f['push'](..._0x4ae6bf['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x993c8f=[...new Set(_0x993c8f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x993c8f=_0x993c8f['filter'](_0x571611=>_0x571611['is']('element','listItem'))),_0x993c8f;}['_getSuggestionBlocks'](_0x5daf5c){const _0x2d5a18=this['editor']['plugins']['get']('LegacyListUtils');let _0xbc6125=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5daf5c)['map'](_0x3d7249=>{const _0x2cac46=this['editor']['model']['createPositionAt'](_0x3d7249,0x0);return[..._0x2d5a18['getSiblingNodes'](_0x2cac46,'backward'),..._0x2d5a18['getSiblingNodes'](_0x2cac46,'forward')];})['flat']();return _0xbc6125=[...new Set(_0xbc6125)],_0xbc6125;}['_getTranslationKeyForListStyle'](_0x2aaf3c){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2aaf3c)||'default')['toUpperCase']()+'_LIST_'+_0x2aaf3c['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x522036{['afterInit'](){const _0x3f2545=this['editor'];if(!_0x3f2545['plugins']['has']('MediaEmbedEditing'))return;const _0x15571d=_0x3f2545['plugins']['get']('TrackChangesEditing'),_0x1b318c=_0x3f2545['locale'];_0x15571d['enableCommand']('mediaEmbed'),_0x15571d['descriptionFactory']['registerElementLabel']('media',_0x55a4ff=>o(_0x1b318c,'ELEMENT_MEDIA',_0x55a4ff)),_0x3f2545['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x151dec,{writer:_0xc752d6,options:_0x207ba8})=>{if(_0x207ba8['showSuggestionHighlights'])return _0xc752d6['createEmptyElement']('div');},'converterPriority':'high'}),_0x3f2545['data']['downcastDispatcher']['on']('attribute:url:media',(_0x539893,_0x9b225b,_0xeb02d7)=>{_0xeb02d7['options']['showSuggestionHighlights']&&_0x539893['stop']();},{'priority':'high'});}}class mt extends _0x522036{['afterInit'](){const _0x393ccd=this['editor'];_0x393ccd['plugins']['has']('MentionEditing')&&_0x393ccd['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x522036{['afterInit'](){const _0x443ed8=this['editor'];if(!_0x443ed8['plugins']['has']('MergeFieldsEditing'))return;_0x443ed8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x443ed8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x212ecc=_0x443ed8['plugins']['get']('TrackChangesEditing'),_0x148856=_0x443ed8['locale'];_0x212ecc['descriptionFactory']['registerElementLabel']('mergeField',_0x5667e0=>o(_0x148856,'ELEMENT_MERGE_FIELD',_0x5667e0)),_0x212ecc['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x188d72=>o(_0x148856,'ELEMENT_MERGE_FIELD',_0x188d72)),_0x212ecc['descriptionFactory']['registerDescriptionCallback'](_0x1aacae=>{if('insertion'!=_0x1aacae['type']&&'deletion'!=_0x1aacae['type'])return;const _0x5b076e=_0x1aacae['getContainedElement']();if(null==_0x5b076e)return;if(!_0x5b076e['is']('element','mergeField')&&!_0x5b076e['is']('element','mergeFieldBlock'))return;const _0x11ea4e=_0x443ed8['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x5b076e['getAttribute']('id'));return'insertion'==_0x1aacae['type']?{'type':'insertion','content':o(_0x148856,'*Insert:*\x20%0','\x22'+_0x11ea4e+'\x22\x20'+o(_0x148856,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x148856,'*Remove:*\x20%0','\x22'+_0x11ea4e+'\x22\x20'+o(_0x148856,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x522036{['afterInit'](){const _0x296c09=this['editor'],_0x32ceef=_0x296c09['plugins']['get']('TrackChangesEditing');_0x296c09['plugins']['has']('MultiLevelList')&&(_0x32ceef['enableDefaultAttributesIntegration']('multiLevelList'),_0x32ceef['registerBlockAttribute']('listMarkerStyle'),_0x32ceef['descriptionFactory']['registerDescriptionCallback'](_0x588b9f=>this['handleDescriptions'](_0x588b9f)));}['handleDescriptions'](_0x294897){const _0x46c257=this['editor']['locale'],{data:_0x165fcb}=_0x294897,_0x3f2fb1={'type':'format','content':''};if(_0x165fcb&&'listMarkerStyle'==_0x165fcb['key']){if(!_0x165fcb['oldValue'])return{'type':'format','content':o(_0x46c257,'*Set\x20format:*\x20%0',o(_0x46c257,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x165fcb['newValue']+')'};if(!_0x165fcb['newValue']){let _0xea70ff=_0x294897['head'];for(;_0xea70ff;){if(_0xea70ff['data']&&'listType'==_0xea70ff['data']['key']&&_0xea70ff['data']['newValue'])return _0x3f2fb1;_0xea70ff=_0xea70ff['next'];}return{'type':'format','content':o(_0x46c257,'*Remove\x20format:*\x20%0',o(_0x46c257,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x165fcb['oldValue']+')'};}}}}class kt extends _0x522036{['afterInit'](){const _0x5f6f8b=this['editor'];if(!_0x5f6f8b['plugins']['has']('PageBreakEditing'))return;_0x5f6f8b['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1262a7=_0x5f6f8b['plugins']['get']('TrackChangesEditing'),_0x48196e=_0x5f6f8b['locale'];_0x1262a7['descriptionFactory']['registerElementLabel']('pageBreak',_0x1c0858=>o(_0x48196e,'ELEMENT_PAGE_BREAK',_0x1c0858));}}class bt extends _0x522036{['afterInit'](){const _0x580e35=this['editor'];if(!_0x580e35['plugins']['has']('Paragraph'))return;const _0x5cdb5a=_0x580e35['locale'],_0x1d9a4a=_0x580e35['plugins']['get']('TrackChangesEditing');_0x1d9a4a['descriptionFactory']['registerElementLabel']('paragraph',_0x152afe=>o(_0x5cdb5a,'ELEMENT_PARAGRAPH',_0x152afe)),_0x1d9a4a['enableDefaultAttributesIntegration']('paragraph'),_0x1d9a4a['enableCommand']('insertParagraph'),_0x580e35['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x580e35),{'priority':'highest'}),_0x580e35['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4ca336,_0xb7be17,_0x59e0e5)=>{_0x59e0e5['options']['showSuggestionHighlights']&&nr(_0x580e35,{'showActiveMarker':!0x1})(_0x4ca336,_0xb7be17,_0x59e0e5);},{'priority':'highest'});const _0x377473=_0x1d9a4a['descriptionFactory'];_0x377473['registerDescriptionCallback'](_0xb5abe=>{if('insertion'!==_0xb5abe['type'])return;const {start:_0xa4260f,end:_0x4fb058}=_0xb5abe['getFirstRange']();if(!_0xa4260f['isTouching'](_0x4fb058)||!_0xa4260f['nodeAfter'])return;const _0x13389e=_0x580e35['model']['schema'],_0x2666f2=_0xa4260f['nodeAfter'];return _0x13389e['isBlock'](_0x2666f2)&&!_0x13389e['isLimit'](_0x2666f2)&&_0x13389e['checkChild'](_0x2666f2,'$text')?{'type':'insertion','content':o(_0x5cdb5a,'*Insert:*\x20%0',_0x377473['getItemLabel'](_0x2666f2,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xae5fe4=this['editor'],_0x380bc0=_0xae5fe4['locale'];_0xae5fe4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c756a=>{if('formatBlock'!=_0x1c756a['type'])return;const {data:_0x126111}=_0x1c756a;return _0x126111&&'paragraph'==_0x126111['commandName']?{'type':'format','content':o(_0x380bc0,'*Change\x20to:*\x20%0',o(_0x380bc0,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xcc8d83,{showActiveMarker:_0x5a1515=!0x0}={}){return(_0x397cd9,_0x4d7303,_0x4f23e4)=>{const _0x187114=_0xcc8d83['plugins']['get']('TrackChangesEditing'),_0x44b3da=_0x4d7303['markerRange']['start'],_0x251066=_0x4d7303['markerRange']['end'],_0x19dcfc=_0xcc8d83['model']['schema'];if(!_0x44b3da['isTouching'](_0x251066)||!_0x44b3da['nodeAfter'])return;const _0x489dd7=_0x44b3da['nodeAfter'];if(_0x19dcfc['isBlock'](_0x489dd7)&&!_0x19dcfc['isLimit'](_0x489dd7)&&_0x19dcfc['checkChild'](_0x489dd7,'$text')){if(!_0x4f23e4['consumable']['consume'](_0x4d7303['markerRange'],_0x397cd9['name']))return;const {authorId:_0x4e2a20}=_0x187114['_splitMarkerName'](_0x4d7303['markerName']),_0xedbd1c=_0x4f23e4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x4e2a20}),_0x3f1954=_0x4f23e4['mapper']['toViewPosition'](_0x251066);_0x5a1515&&_0x187114['activeMarkers']['includes'](_0x4d7303['markerName'])&&_0x4f23e4['writer']['addClass']('ck-suggestion-marker--active',_0xedbd1c),_0x4f23e4['writer']['insert'](_0x3f1954,_0xedbd1c),_0x4f23e4['mapper']['bindElementToMarker'](_0xedbd1c,_0x4d7303['markerName']);}};}class yt extends _0x522036{['afterInit'](){const _0x5cf0cd=this['editor'];if(!_0x5cf0cd['plugins']['has']('RemoveFormatEditing'))return;_0x5cf0cd['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b5586=this['editor'];_0x2b5586['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x236f08=>{if('formatBlock'!=_0x236f08['type']&&'formatInline'!=_0x236f08['type'])return;const {data:_0x21a104}=_0x236f08;return _0x21a104&&'removeFormat'==_0x21a104['commandName']?{'type':'format','content':o(_0x2b5586['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x522036{['afterInit'](){const _0x155414=this['editor'];if(!_0x155414['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x516348=_0x155414['plugins']['get']('TrackChangesEditing');_0x516348['enableCommand']('goToPreviousRestrictedEditingException'),_0x516348['enableCommand']('goToNextRestrictedEditingException');const _0x1aacff=_0x155414['plugins']['get']('RestrictedEditingModeEditing');_0x1aacff['enableCommand']('trackChanges'),_0x1aacff['enableCommand']('acceptSuggestion'),_0x1aacff['enableCommand']('discardSuggestion'),_0x1aacff['enableCommand']('acceptAllSuggestions'),_0x1aacff['enableCommand']('discardAllSuggestions'),_0x1aacff['enableCommand']('acceptSelectedSuggestions'),_0x1aacff['enableCommand']('discardSelectedSuggestions');}}class St extends _0x522036{static get['requires'](){return[_0x2b6dac];}['init'](){const _0x513015=this['editor'],_0x4d7958=_0x513015['plugins']['get']('TrackChangesEditing');_0x4d7958['enableCommand']('shiftEnter'),_0x513015['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x513015),{'priority':'high'}),_0x513015['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x513015),{'priority':'high'}),_0x513015['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x272185,_0x1baef0,_0x4ab319)=>{_0x4ab319['options']['showSuggestionHighlights']&&ke(_0x513015,{'showActiveMarker':!0x1})(_0x272185,_0x1baef0,_0x4ab319);}),_0x4d7958['descriptionFactory']['registerElementLabel']('softBreak',_0x6db6bf=>o(_0x513015['locale'],'ELEMENT_LINE_BREAK',_0x6db6bf));}}function ke(_0x959100,{showActiveMarker:_0xe37909=!0x0}={}){return(_0x3293bd,_0x1bfb9b,_0x3d760f)=>{const _0x83d6d8=_0x959100['plugins']['get']('TrackChangesEditing');if(!_0x3d760f['consumable']['test'](_0x1bfb9b['markerRange'],_0x3293bd['name']))return;const _0x126470=_0x959100['model'];for(const _0x1adfac of _0x1bfb9b['markerRange']['getItems']()){if(!_0x1adfac['is']('element','softBreak'))continue;const _0xb5f71b='deletion'==_0x1bfb9b['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x226d06}=_0x83d6d8['_splitMarkerName'](_0x1bfb9b['markerName']),_0x38f6fb=_0x3d760f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xb5f71b,'data-author-id':_0x226d06}),_0x23f658=_0x3d760f['mapper']['toViewPosition'](_0x126470['createPositionBefore'](_0x1adfac));_0xe37909&&_0x83d6d8['activeMarkers']['includes'](_0x1bfb9b['markerName'])&&_0x3d760f['writer']['addClass']('ck-suggestion-marker--active',_0x38f6fb),_0x3d760f['writer']['insert'](_0x23f658,_0x38f6fb),_0x3d760f['mapper']['bindElementToMarker'](_0x38f6fb,_0x1bfb9b['markerName']);}};}class At extends _0x522036{['afterInit'](){const _0x257496=this['editor'],_0x52ffa8=_0x257496['model'],_0x1e97c7=_0x257496['locale'];if(!_0x257496['plugins']['has']('StandardEditingModeEditing'))return;const _0x196ea8=_0x257496['plugins']['get']('TrackChangesEditing'),_0x3e79ee='restrictedEditingException',_0x357a76=_0x257496['commands']['get'](_0x3e79ee);_0x196ea8['enableCommand'](_0x3e79ee,(_0x384f30,_0x5664fd={})=>{const _0xc8d8a3=_0x52ffa8['document']['selection'];if(_0xc8d8a3['isCollapsed'])return void _0x384f30(_0x5664fd);const _0x324af4=void 0x0!==_0x5664fd['forceValue']?_0x5664fd['forceValue']:!_0x357a76['value'];_0x52ffa8['change'](()=>{const _0x3dd6e3=Array['from'](_0xc8d8a3['getRanges']());for(const _0x5bb967 of _0x3dd6e3){const _0x39391f=_0x324af4?[_0x5bb967]:io(_0x3e79ee,_0x5bb967,_0x52ffa8);for(const _0x47dee8 of _0x39391f)_0x196ea8['markInlineFormat'](_0x47dee8,{'commandName':_0x3e79ee,'commandParams':[{'forceValue':_0x324af4}]});}});}),_0x196ea8['descriptionFactory']['registerDescriptionCallback'](_0x57e920=>{if('formatBlock'!=_0x57e920['type']&&'formatInline'!=_0x57e920['type'])return;const {data:_0x1a1afb}=_0x57e920;return _0x1a1afb&&_0x1a1afb['commandName']==_0x3e79ee?_0x1a1afb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1e97c7,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1e97c7,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x522036{['afterInit'](){const _0x2fe6a5=this['editor'];if(!_0x2fe6a5['plugins']['has']('Style')||!_0x2fe6a5['plugins']['has']('DataSchema'))return;const _0xfaedfb=_0x2fe6a5['plugins']['get']('TrackChangesEditing'),_0x38ae56=_0x2fe6a5['locale'],_0x3dc05e=_0x2fe6a5['config']['get']('style')||{},_0x55fa57=_0x2fe6a5['plugins']['get']('GeneralHtmlSupport'),_0x444c50=_0x2fe6a5['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2fe6a5['plugins']['get']('DataSchema'),_0x3dc05e['definitions']);_0xfaedfb['enableDefaultAttributesIntegration']('style');const _0x43e95a=new Set();for(const _0x5744fc of _0x444c50['block']){const _0x556645=_0x55fa57['getGhsAttributeNameForElement'](_0x5744fc['element']);_0x43e95a['add'](_0x556645);}const _0x4b1f23=new Set();for(const _0x542d5f of _0x444c50['inline']){const _0x17e91e=_0x55fa57['getGhsAttributeNameForElement'](_0x542d5f['element']);_0x4b1f23['add'](_0x17e91e);for(const _0x5e0d70 of _0x542d5f['ghsAttributes'])_0x4b1f23['add'](_0x5e0d70);}for(const _0x109f9d of _0x43e95a)_0xfaedfb['registerBlockAttribute'](_0x109f9d),_0xfaedfb['descriptionFactory']['registerAttributeLabel'](_0x109f9d,o(_0x38ae56,'FORMAT_STYLE'));for(const _0xb6aaee of _0x4b1f23)_0xfaedfb['registerInlineAttribute'](_0xb6aaee),_0xfaedfb['descriptionFactory']['registerAttributeLabel'](_0xb6aaee,o(_0x38ae56,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcf1129=this['editor'],_0x5c9a91=_0xcf1129['locale'];_0xcf1129['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x173320=>{if('formatBlock'!=_0x173320['type']&&'formatInline'!=_0x173320['type'])return;const {data:_0xa9b90e}=_0x173320;return _0xa9b90e&&'style'===_0xa9b90e['commandName']?_0xa9b90e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5c9a91,'*Set\x20format:*\x20%0',_0xa9b90e['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x5c9a91,'*Remove\x20format:*\x20%0',_0xa9b90e['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x522036{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2332e7){super(_0x2332e7),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x269c01=this['editor'],_0x416eb1=_0x269c01['model']['document']['selection'];if(!_0x269c01['plugins']['has']('TableEditing'))return;const _0x246c49=_0x269c01['locale'],_0x56c36c=_0x269c01['plugins']['get']('TrackChangesEditing'),_0xa009c0=_0x269c01['plugins']['get']('TableUtils');_0x56c36c['descriptionFactory']['registerElementLabel']('table',_0x1fecca=>o(_0x246c49,'ELEMENT_TABLE',_0x1fecca)),this['_setupColumnsRowsFixing'](),_0x56c36c['enableCommand']('insertTable'),_0x56c36c['enableCommand']('selectTableRow'),_0x56c36c['enableCommand']('selectTableColumn');for(const _0xd0cedf of['insertTableRowAbove','insertTableRowBelow']){const _0xa12e90=_0x269c01['commands']['get'](_0xd0cedf);_0x56c36c['enableCommand'](_0xd0cedf,_0x353ace=>{_0x269c01['model']['change'](_0x5f1949=>{_0x353ace();const _0x2b6faf='above'===_0xa12e90['order'],_0x30b5a1=_0xa009c0['getSelectionAffectedTableCells'](_0x416eb1),_0x180494=_0xa009c0['getRowIndexes'](_0x30b5a1),_0x30c288=_0x2b6faf?_0x180494['first']-0x1:_0x180494['last']+0x1,_0x254e9d=_0x30b5a1[0x0]['findAncestor']('table'),_0x47245d=_0xa009c0['createTableWalker'](_0x254e9d,{'startRow':_0x30c288,'endRow':_0x30c288}),_0x1508dd=Array['from'](_0x47245d)['map'](_0x33cf4b=>_0x5f1949['createRangeOn'](_0x33cf4b['cell']));_0x56c36c['markMultiRangeInsertion'](_0x1508dd,'tableRow');});});}for(const _0x11ebbc of['insertTableColumnLeft','insertTableColumnRight']){const _0x53a61d=_0x269c01['commands']['get'](_0x11ebbc);_0x56c36c['enableCommand'](_0x11ebbc,_0x44fee0=>{_0x269c01['model']['change'](_0x3fa8b1=>{_0x44fee0();const _0x1ce3d7='left'===_0x53a61d['order'],_0x59e4c8=_0xa009c0['getSelectionAffectedTableCells'](_0x416eb1),_0x27d553=_0xa009c0['getColumnIndexes'](_0x59e4c8),_0x3ca77f=_0x1ce3d7?_0x27d553['first']-0x1:_0x27d553['last']+0x1,_0x197c3b=_0x59e4c8[0x0]['findAncestor']('table'),_0x2655de=_0xa009c0['createTableWalker'](_0x197c3b,{'startRow':0x0,'column':_0x3ca77f,'includeAllSlots':!0x1}),_0x5712e1=Array['from'](_0x2655de)['map'](_0x2b919d=>_0x3fa8b1['createRangeOn'](_0x2b919d['cell']));_0x56c36c['markMultiRangeInsertion'](_0x5712e1,'tableColumn');});});}for(const _0x443656 of['removeTableRow','removeTableColumn']){const _0x255b39=_0x443656['substr'](0xb),_0x42e510=_0x255b39['toLowerCase'](),_0x18bd90=_0x42e510['substr'](0x0,0x3)+'span',_0x1092bc='table'+_0x255b39,_0x3d545a='min'+_0x255b39,_0x3099e6='max'+_0x255b39;_0x56c36c['enableCommand'](_0x443656,()=>{_0x269c01['model']['change'](_0x47f03b=>{const _0x4cbc12=_0xa009c0['getSelectionAffectedTableCells'](_0x416eb1),_0x30902b=_0x4cbc12[0x0]['findAncestor']('table');let _0x97b34b;if('removeTableRow'==_0x443656){const _0x523305=_0xa009c0['getRowIndexes'](_0x4cbc12);_0x97b34b={'startRow':_0x523305['first'],'endRow':_0x523305['last'],'includeAllSlots':!0x0};}else{const _0x5122f6=_0xa009c0['getColumnIndexes'](_0x4cbc12);_0x97b34b={'startColumn':_0x5122f6['first'],'endColumn':_0x5122f6['last'],'includeAllSlots':!0x0};}const _0x44fa68=_0xa009c0['createTableWalker'](_0x30902b,_0x97b34b),_0x8e5829=Array['from'](_0x44fa68)['map'](({cell:_0x548658})=>_0x548658),_0x2fbc2f=Re(_0x8e5829['filter'](_0x34eb4f=>_0x34eb4f['hasAttribute'](_0x18bd90))),_0x2ca9b1=Re(_0x8e5829['filter'](_0x4b81de=>!_0x4b81de['hasAttribute'](_0x18bd90)))['map'](_0x234f68=>_0x47f03b['createRangeOn'](_0x234f68)),_0x4bf89a=_0x56c36c['markMultiRangeDeletion'](_0x2ca9b1,_0x1092bc);if(_0x4bf89a&&('tableRow'==_0x4bf89a['subType']||'tableColumn'==_0x4bf89a['subType'])){const _0xd822af=this['_getSuggestionCoords'](_0x4bf89a);for(const _0x49867b of _0x2fbc2f){const _0x573201=_0x47f03b['createRangeOn'](_0x49867b),_0x1454d9=_0xa009c0['getCellLocation'](_0x49867b),_0x5dda98=_0x49867b['getAttribute'](_0x18bd90)-0x1,_0x17bd6f=_0xd822af[_0x3d545a],_0x125d27=_0xd822af[_0x3099e6];_0x17bd6f<=_0x1454d9[_0x42e510]&&_0x1454d9[_0x42e510]+_0x5dda98<=_0x125d27&&_0x4bf89a['addRange'](_0x573201);}}});});}function _0x23f5a0(_0xaa98f1){const _0x76e7a7=Array['from'](_0x416eb1['getRanges']())['map'](_0x5cddf4=>_0x582953['fromRange'](_0x5cddf4));_0x269c01['model']['change'](_0x4ec3ea=>{const _0x3b1837=_0x4ec3ea['batch'];_0xaa98f1=_0xaa98f1['filter'](_0x4d15e=>'$graveyard'!=_0x4d15e['root']['rootName']),_0x4ec3ea['setSelection'](_0xaa98f1),_0x269c01['commands']['get']('removeTableRow')['refresh'](),_0x269c01['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x269c01['model']['enqueueChange'](()=>{_0x269c01['model']['enqueueChange'](_0x3b1837,_0x1bc7b0=>{const _0x5bb98f=_0x76e7a7['filter'](_0x53b0b4=>'$graveyard'!=_0x53b0b4['root']['rootName']);_0x5bb98f['length']>0x0&&_0x1bc7b0['setSelection'](_0x5bb98f);for(const _0xb0e987 of _0x76e7a7)_0xb0e987['detach']();});});});}function _0x43030f(_0x2c7129){_0x269c01['model']['change'](_0x1e0ac6=>{const _0xbcd336=Array['from'](_0x416eb1['getRanges']())['map'](_0x419e49=>_0x582953['fromRange'](_0x419e49)),_0x38ed8d=[];for(const _0x178db8 of _0x2c7129)for(const _0x1bf9c5 of _0x178db8['getItems']({'shallow':!0x0}))_0x38ed8d['push'](_0x1bf9c5);for(const _0x41bfff of _0x38ed8d)'$graveyard'!=_0x41bfff['root']['rootName']&&(_0x1e0ac6['setSelection'](_0x1e0ac6['createPositionAt'](_0x41bfff,0x0)),_0x269c01['commands']['get']('removeTableColumn')['refresh'](),_0x269c01['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x47ab24=_0xbcd336['filter'](_0x50ac62=>'$graveyard'!=_0x50ac62['root']['rootName']);_0x47ab24['length']>0x0&&_0x1e0ac6['setSelection'](_0x47ab24);for(const _0x445a3c of _0xbcd336)_0x445a3c['detach']();});}function _0x46fd8d(_0x545b31,_0x35d026){return _0x35d026['every'](_0xa1099b=>_0x545b31['some'](_0x4b5e3b=>_0x4b5e3b['end']['isEqual'](_0xa1099b['start'])||_0xa1099b['end']['isEqual'](_0x4b5e3b['start'])));}function _0x3801df(_0x97e8b4,_0x2a2672){return!_0x97e8b4['some'](_0x1866f5=>_0x2a2672['some'](_0x307a0f=>_0x1866f5['isIntersecting'](_0x307a0f)))&&_0x97e8b4['some'](_0x251e2b=>_0x2a2672['some'](_0x1a6d18=>_0x251e2b['end']['isTouching'](_0x1a6d18['start'])));}_0x269c01['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x45eb40,_0x14a4b2,_0x180b0e)=>{if(!_0x180b0e['options']['showSuggestionHighlights'])return;const _0x3db14f=_0x14a4b2['item'];if(!_0x3db14f)return;const _0x172821=_0x180b0e['mapper']['toViewElement'](_0x3db14f);function _0x3ee851(_0x1cc846){return Array['isArray'](_0x1cc846)?_0x1cc846:[_0x1cc846];}_0x172821&&'tableCell'===_0x3db14f['name']&&_0x2b23c9(_0x172821,_0x180b0e['writer'],(_0x47b472,_0x58a70e,_0x14efd7)=>_0x14efd7['addClass'](_0x3ee851(_0x58a70e['classes']),_0x47b472),(_0x542a4e,_0x517c69,_0x527354)=>_0x527354['removeClass'](_0x3ee851(_0x517c69['classes']),_0x542a4e));},{'priority':'highest'}),_0x56c36c['descriptionFactory']['registerDescriptionCallback'](_0x5009b4=>{if('insertion'!=_0x5009b4['type']&&'deletion'!=_0x5009b4['type'])return;const _0x3461e7=_0x5009b4['getContainedElement']();if(null!=_0x3461e7&&_0x3461e7['is']('element','table')){if('insertion'==_0x5009b4['type']){const _0x3ff191=_0x5009b4['getItems']()['filter'](_0x592540=>_0x592540['is']('$textProxy'))['map'](_0x3ac56c=>_0x3ac56c['data']);if(_0x3ff191['length'])return{'type':'insertion','content':o(_0x246c49,'*Insert:*\x20%0',o(_0x246c49,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3ff191['join']('\x20')+'\x22'))};}if('deletion'==_0x5009b4['type']){const _0x340028=_0x5009b4['getItems']()['filter'](_0x552a7e=>_0x552a7e['is']('$textProxy'))['map'](_0x214b6b=>_0x214b6b['data']);if(_0x340028['length'])return{'type':'deletion','content':o(_0x246c49,'*Remove:*\x20%0',o(_0x246c49,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x340028['join']('\x20')+'\x22'))};}}}),_0x56c36c['descriptionFactory']['registerDescriptionCallback'](_0x1c46a7=>{if('tableRow'==_0x1c46a7['subType']){const _0x4c8cd9=_0x1c46a7['getItems']()['filter'](_0x12c6a2=>_0x12c6a2['is']('$textProxy'))['map'](_0x4cd6ae=>_0x4cd6ae['data']),_0xd53e5b=this['_getSuggestionCoords'](_0x1c46a7),_0x138901=_0xd53e5b['maxRow']-_0xd53e5b['minRow']+0x1;if('insertion'==_0x1c46a7['type'])return _0x4c8cd9['length']?{'type':'insertion','content':o(_0x246c49,'*Insert:*\x20%0',o(_0x246c49,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x138901,'\x22'+_0x4c8cd9['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x246c49,'*Insert:*\x20%0',o(_0x246c49,'ELEMENT_TABLE_ROW',_0x138901))};if('deletion'==_0x1c46a7['type'])return _0x4c8cd9['length']?{'type':'deletion','content':o(_0x246c49,'*Remove:*\x20%0',o(_0x246c49,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x138901,'\x22'+_0x4c8cd9['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x246c49,'*Remove:*\x20%0',o(_0x246c49,'ELEMENT_TABLE_ROW',_0x138901))};}if('tableColumn'==_0x1c46a7['subType']){const _0x213623=_0x1c46a7['getItems']()['filter'](_0x53720a=>_0x53720a['is']('$textProxy'))['map'](_0x359cb3=>_0x359cb3['data']),_0x8ea13b=this['_getSuggestionCoords'](_0x1c46a7),_0x346f6e=_0x8ea13b['maxColumn']-_0x8ea13b['minColumn']+0x1;if('insertion'==_0x1c46a7['type'])return _0x213623['length']?{'type':'insertion','content':o(_0x246c49,'*Insert:*\x20%0',o(_0x246c49,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x346f6e,'\x22'+_0x213623['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x246c49,'*Insert:*\x20%0',o(_0x246c49,'ELEMENT_TABLE_COLUMN',_0x346f6e))};if('deletion'==_0x1c46a7['type'])return _0x213623['length']?{'type':'deletion','content':o(_0x246c49,'*Remove:*\x20%0',o(_0x246c49,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x346f6e,'\x22'+_0x213623['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x246c49,'*Remove:*\x20%0',o(_0x246c49,'ELEMENT_TABLE_COLUMN',_0x346f6e))};}}),_0x56c36c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x23f5a0),_0x56c36c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x23f5a0),_0x56c36c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x43030f),_0x56c36c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x43030f),_0x56c36c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x46fd8d),_0x56c36c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x46fd8d),_0x56c36c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3801df),_0x56c36c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3801df);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2faef0=this['editor'],_0x5934dd=_0x2faef0['model']['document']['selection'];return(_0x277fb5,_0xce8931)=>{_0x2faef0['model']['change'](_0x4a05cd=>{const {commandName:_0x5a4532,commandParams:_0x2d4e18}=_0xce8931;let _0x50890b=_0x277fb5[0x0]['end']['nodeBefore'];_0x2d4e18&&_0x2d4e18[0x0]&&!0x1===_0x2d4e18[0x0]['forceValue']&&(_0x50890b=_0x277fb5[0x0]['start']['nodeAfter']);const _0x14a04e=_0x4a05cd['createRangeIn'](_0x50890b);if('$graveyard'==_0x14a04e['root']['rootName'])return;const _0x3264fc=Array['from'](_0x5934dd['getRanges']())['map'](_0x55316b=>_0x582953['fromRange'](_0x55316b));_0x4a05cd['setSelection'](_0x14a04e),_0x2faef0['commands']['get'](_0x5a4532)['refresh'](),_0x2d4e18['push']({'forceDefaultExecution':!0x0}),_0x2faef0['execute'](_0x5a4532,..._0x2d4e18);const _0x57f42a=_0x3264fc['filter'](_0x1b68c4=>'$graveyard'!=_0x1b68c4['root']['rootName']);_0x57f42a['length']>0x0&&_0x4a05cd['setSelection'](_0x57f42a);for(const _0x3a47cf of _0x3264fc)_0x3a47cf['detach']();});};}['_getCoordsForCells'](_0x50aeb1){const _0x365972=this['editor']['plugins']['get']('TableUtils');let _0x4e5d89=Number['MAX_SAFE_INTEGER'],_0x55d00c=Number['MIN_SAFE_INTEGER'],_0xf954b8=Number['MAX_SAFE_INTEGER'],_0xf30bb6=Number['MIN_SAFE_INTEGER'];for(const _0x4a3a8e of _0x50aeb1){if('$graveyard'==_0x4a3a8e['root']['rootName'])continue;const {row:_0x55f3a6,column:_0x1eed6a}=_0x365972['getCellLocation'](_0x4a3a8e),_0xa53836=_0x4a3a8e['hasAttribute']('rowspan')?_0x4a3a8e['getAttribute']('rowspan')-0x1:0x0,_0x162c2b=_0x4a3a8e['hasAttribute']('colspan')?_0x4a3a8e['getAttribute']('colspan')-0x1:0x0;_0x4e5d89=_0x55f3a6<_0x4e5d89?_0x55f3a6:_0x4e5d89,_0x55d00c=_0x55f3a6+_0xa53836>_0x55d00c?_0x55f3a6+_0xa53836:_0x55d00c,_0xf954b8=_0x1eed6a<_0xf954b8?_0x1eed6a:_0xf954b8,_0xf30bb6=_0x1eed6a+_0x162c2b>_0xf30bb6?_0x1eed6a+_0x162c2b:_0xf30bb6;}return{'minRow':_0x4e5d89,'maxRow':_0x55d00c,'minColumn':_0xf954b8,'maxColumn':_0xf30bb6};}['_setupColumnsRowsFixing'](){const _0x3071d9=this['editor'],_0x5c41ca=_0x3071d9['plugins']['get']('TrackChangesEditing'),_0x1df16d=_0x3071d9['plugins']['get']('TableUtils');_0x3071d9['model']['document']['on']('change:data',()=>{const _0x4ef8ab=Array['from'](_0x3071d9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x30cd27,data:_0x2823bc}of _0x4ef8ab){const {group:_0x2e3927,id:_0x119438,subType:_0x803320}=_0x5c41ca['_splitMarkerName'](_0x30cd27);if('suggestion'!=_0x2e3927)continue;if(null!=_0x2823bc['oldRange'])continue;const _0x1d1691=_0x5c41ca['getSuggestion'](_0x119438);this['_tablePostFixingSubtypes']['includes'](_0x803320)&&this['_tableSuggestions']['add'](_0x1d1691);}},{'priority':'low'});const _0x4c0584=(_0x42b7bd,_0x5009fc)=>{let _0x5bf8c1=!0x1;const _0x120906=_0x5009fc['createRangeOn'](_0x42b7bd),_0x29ecea=_0x42b7bd['findAncestor']('table'),_0x4bb46b=_0x1df16d['getCellLocation'](_0x42b7bd);for(const _0x1734db of this['_tableSuggestions']){const _0x5c0b82=_0x1734db['subType'],_0x5acab5=_0x5c0b82['startsWith']('tablePaste'),_0x539488=_0x5c0b82['substr'](_0x5acab5?0xa:0x5),_0xcab077=_0x539488['toLowerCase'](),_0x1333cb=_0xcab077['substr'](0x0,0x3)+'span',_0xdfbc1c='min'+_0x539488,_0x28f042='max'+_0x539488;if(!_0x1734db['isInContent'])continue;if(_0x29ecea!=_0x1734db['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1734db['isIntersectingWithRange'](_0x120906))continue;const _0x50f5e1=_0x42b7bd['hasAttribute'](_0x1333cb)?_0x42b7bd['getAttribute'](_0x1333cb)-0x1:0x0,_0xc63e90=this['_getSuggestionCoords'](_0x1734db),_0x14cf92=_0xc63e90[_0xdfbc1c],_0x9ef51e=_0xc63e90[_0x28f042];_0x14cf92<=_0x4bb46b[_0xcab077]&&_0x4bb46b[_0xcab077]+_0x50f5e1<=_0x9ef51e&&(_0x1734db['addRange'](_0x120906),_0x5bf8c1=!0x0);}return _0x5bf8c1;};_0x3071d9['model']['document']['registerPostFixer'](_0x25db76=>{let _0x394f72=!0x1;for(const _0x7bdd2c of _0x3071d9['model']['document']['differ']['getChanges']())if('insert'==_0x7bdd2c['type']){if('tableRow'==_0x7bdd2c['name']){for(const _0x27c460 of _0x7bdd2c['position']['nodeAfter']['getChildren']())_0x394f72=_0x394f72||_0x4c0584(_0x27c460,_0x25db76);}else'tableCell'==_0x7bdd2c['name']&&(_0x394f72=_0x394f72||_0x4c0584(_0x7bdd2c['position']['nodeAfter'],_0x25db76));}return _0x394f72;});}['_getSuggestionCoords'](_0x3ab293){return this['_getCoordsForCells'](_0x3ab293['getRanges']()['map'](_0x43c8a4=>_0x43c8a4['start']['nodeAfter']));}}function Re(_0x55add5){return Array['from'](new Set(_0x55add5)['values']());}class _t extends _0x522036{static get['requires'](){return[vt];}['afterInit'](){const _0xb882c9=this['editor'],_0x57beec=_0xb882c9['model']['document']['selection'],_0x56066f=_0xb882c9['locale'];if(!_0xb882c9['plugins']['has']('TableEditing'))return;const _0x41fa7d=_0xb882c9['plugins']['get']('TrackChangesEditing'),_0x2f4eb2=_0xb882c9['plugins']['get']('TableUtils'),_0x1c1f90=_0xb882c9['plugins']['get'](vt);_0x1c1f90['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x41fa7d['enableCommand']('mergeTableCells',()=>{const _0x4cc699=_0x2f4eb2['getSelectionAffectedTableCells'](_0xb882c9['model']['document']['selection']);_0xb882c9['model']['change'](()=>{_0x41fa7d['markMultiRangeBlockFormat'](_0x4cc699,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xb882c9['commands']['get']('mergeTableCells')['on']('execute',(_0x8021ab,_0xb1f81d)=>{_0xb882c9['commands']['get']('trackChanges')['value']&&(_0xb1f81d['length']>0x0&&_0xb1f81d[_0xb1f81d['length']-0x1]&&_0xb1f81d[_0xb1f81d['length']-0x1]['forceDefaultExecution']||_0x41fa7d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x8021ab['stop']());},{'priority':'highest'});for(const _0x261b11 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x6c79bd=_0xb882c9['commands']['get'](_0x261b11);_0x41fa7d['enableCommand'](_0x261b11,()=>{const _0x4a0bdb=_0xb882c9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x24f5e4=>_0x24f5e4['is']('element','tableCell')),_0x31f511=_0x6c79bd['value'];_0xb882c9['model']['change'](()=>{_0x41fa7d['markMultiRangeBlockFormat']([_0x4a0bdb,_0x31f511],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3c6b9a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x385838=_0xb882c9['commands']['get'](_0x3c6b9a);_0x41fa7d['enableCommand'](_0x3c6b9a,()=>{const _0x20dc45=_0x2f4eb2['getSelectionAffectedTableCells'](_0xb882c9['model']['document']['selection'])[0x0],_0xf75cef=_0x20dc45['findAncestor']('table'),{column:_0x3fcddf,row:_0x45c933}=_0x2f4eb2['getCellLocation'](_0x20dc45);let _0xb957ca=[];if('horizontally'==_0x385838['direction']){const _0x3cf38c=_0x2f4eb2['createTableWalker'](_0xf75cef,{'startRow':_0x45c933,'endRow':_0x45c933,'includeAllSlots':!0x0});_0xb957ca=Array['from'](_0x3cf38c)['map'](_0x569625=>_0x569625['cell']);}else{const _0x3e4168=_0x2f4eb2['createTableWalker'](_0xf75cef,{'column':_0x3fcddf,'includeAllSlots':!0x0});_0xb957ca=Array['from'](_0x3e4168)['map'](_0x41eb7f=>_0x41eb7f['cell']);}_0xb882c9['model']['change'](_0x135b42=>{_0x41fa7d['markBlockFormat'](_0x135b42['createRangeOn'](_0x20dc45),{'commandName':_0x3c6b9a,'commandParams':[]},_0xb957ca,_0x3c6b9a);});});}_0x41fa7d['descriptionFactory']['registerDescriptionCallback'](_0x29ef8b=>{if('formatBlock'!=_0x29ef8b['type']&&'formatInline'!=_0x29ef8b['type'])return;const {data:_0x5e5288}=_0x29ef8b;return _0x5e5288&&'mergeTableCells'==_0x5e5288['commandName']?{'type':'format','content':o(_0x56066f,'*Merge\x20cells*')}:void 0x0;}),_0x41fa7d['descriptionFactory']['registerDescriptionCallback'](_0x36d350=>{if('formatBlock'!=_0x36d350['type']&&'formatInline'!=_0x36d350['type'])return;const {data:_0x1206b2}=_0x36d350;return _0x1206b2?'splitTableCellVertically'==_0x1206b2['commandName']?{'type':'format','content':o(_0x56066f,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1206b2['commandName']?{'type':'format','content':o(_0x56066f,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x147ecc=_0x1c1f90['_acceptFormatSuggestionCallbackFactory']();for(const _0x5b997d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x41fa7d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5b997d,'accept',_0x147ecc);for(const _0x246e39 of['splitTableCellVertically','splitTableCellHorizontally'])_0x41fa7d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x246e39,'accept',_0x147ecc);_0x41fa7d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2fd672=>{_0xb882c9['model']['change'](_0x4d2a33=>{const _0x39974a=Array['from'](_0x57beec['getRanges']())['map'](_0x190002=>_0x582953['fromRange'](_0x190002));_0x4d2a33['setSelection'](_0x2fd672),_0xb882c9['commands']['get']('mergeTableCells')['refresh'](),_0xb882c9['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3c6d6a=_0x39974a['filter'](_0x2adbf4=>'$graveyard'!=_0x2adbf4['root']['rootName']);_0x3c6d6a['length']>0x0&&_0x4d2a33['setSelection'](_0x3c6d6a);for(const _0x57e8d0 of _0x39974a)_0x57e8d0['detach']();});});for(const _0x58e555 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x570176=_0xb882c9['commands']['get'](_0x58e555);_0x570176['on']('set:isEnabled',(_0x448770,_0x26d401,_0x555282)=>{if(_0x555282){const _0x5922dd=_0xb882c9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x375083=>_0x375083['is']('element','tableCell'));this['_areMergableCells'](_0x570176['value'],_0x5922dd)||(_0x448770['return']=!0x1,_0x448770['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x157ed7=this['editor']['commands']['get']('mergeTableCells'),_0x490253=this['editor']['plugins']['get']('TableUtils');if(!_0x157ed7['isEnabled'])return!0x1;const _0xd92a48=_0x490253['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x47e9a3 of _0xd92a48)for(const _0x404418 of _0xd92a48)if(_0x47e9a3!=_0x404418&&!this['_areMergableCells'](_0x47e9a3,_0x404418))return!0x1;return!0x0;}['_areMergableCells'](_0x3f9a96,_0x396c7d){const _0x173be0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24bdfe=this['editor']['model']['createRangeOn'](_0x3f9a96),_0x1c4196=this['editor']['model']['createRangeOn'](_0x396c7d),_0x3f2292=new Set(),_0x4760f7=new Set();for(const _0x29f494 of _0x173be0['getSuggestions']())if(('insertion'==_0x29f494['type']||'deletion'==_0x29f494['type']||'mergeTableCells'==_0x29f494['subType'])&&_0x29f494['isInContent']){for(const _0x21bdc4 of _0x29f494['getRanges']())_0x21bdc4['containsRange'](_0x24bdfe,!0x0)&&_0x3f2292['add'](_0x29f494['type']+':'+_0x29f494['author']['id']),_0x21bdc4['containsRange'](_0x1c4196,!0x0)&&_0x4760f7['add'](_0x29f494['type']+':'+_0x29f494['author']['id']);}if(_0x3f2292['size']!=_0x4760f7['size'])return!0x1;for(const _0x290c2d of _0x3f2292)if(!_0x4760f7['has'](_0x290c2d))return!0x1;return!0x0;}}class Ct extends _0x522036{static get['requires'](){return[vt];}['afterInit'](){const _0x47e83c=this['editor'];if(!_0x47e83c['plugins']['has']('TableEditing'))return;const _0x404931=_0x47e83c['locale'],_0x543bc6=_0x47e83c['plugins']['get']('TrackChangesEditing');_0x543bc6['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x543bc6['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x543bc6['registerBlockAttribute']('headingRows'),_0x543bc6['registerBlockAttribute']('headingColumns'),_0x543bc6['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x404931,'FORMAT_HEADER_ROW')),_0x543bc6['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x404931,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x32b9fa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f9ecd=this['editor']['plugins']['get']('TableUtils'),_0x1cdbf7=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x1c1799({showActiveMarker:_0x29ff2c=!0x0,setDataAttribute:_0x1fe0ca=!0x0}={}){return(_0x555754,_0x308a2e,_0x5d9774)=>{const {type:_0x1dbfd1,id:_0x1f9ce8}=_0x32b9fa['_splitMarkerName'](_0x308a2e['markerName']),_0x2cf33d=_0x32b9fa['getSuggestion'](_0x1f9ce8),_0x1250ae=_0x2cf33d['data'];if('formatBlock'!=_0x2cf33d['type']||!_0x1250ae||'setTableColumnHeader'!=_0x1250ae['commandName'])return;if(_0x308a2e['item'])return void _0x555754['stop']();if(!_0x5d9774['consumable']['consume'](_0x308a2e['markerRange'],_0x555754['name']))return;const _0x4ada1e=_0x308a2e['markerRange']['start']['nodeAfter'],_0x3d346a=_0x308a2e['markerRange']['end']['nodeBefore'],_0xb0bd2=_0x4ada1e['parent']['parent'],{column:_0x56022c}=_0x4f9ecd['getCellLocation'](_0x4ada1e),{column:_0x5b196d}=_0x4f9ecd['getCellLocation'](_0x3d346a);for(let _0x25ab9b=_0x56022c;_0x25ab9b<=_0x5b196d;_0x25ab9b++){const _0x2d35c3=_0x4f9ecd['createTableWalker'](_0xb0bd2,{'column':_0x25ab9b,'includeAllSlots':!0x1});for(const _0x56115d of _0x2d35c3){const _0x4b2c1a=_0x56115d['cell'],_0x2eb71b=_0x5d9774['mapper']['toViewElement'](_0x4b2c1a);_0x5d9774['writer']['addClass']('ck-suggestion-marker-'+_0x1dbfd1,_0x2eb71b),_0x1fe0ca&&_0x5d9774['writer']['setAttribute']('data-suggestion',_0x1f9ce8,_0x2eb71b),_0x5d9774['mapper']['bindElementToMarker'](_0x2eb71b,_0x308a2e['markerName']),_0x29ff2c&&(_0x32b9fa['activeMarkers']['includes'](_0x308a2e['markerName'])?_0x5d9774['writer']['addClass']('ck-suggestion-marker--active',_0x2eb71b):_0x5d9774['writer']['removeClass']('ck-suggestion-marker--active',_0x2eb71b));}}};}_0x32b9fa['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1cdbf7),_0x32b9fa['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1cdbf7),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1c1799(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5a11e2,_0x3ac8e7,_0x3d6586)=>{_0x3d6586['options']['showSuggestionHighlights']&&_0x1c1799({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5a11e2,_0x3ac8e7,_0x3d6586);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x45d84c,_0x197de0,_0x4311bc)=>{const {type:_0x323ce3,id:_0xda72d2}=_0x32b9fa['_splitMarkerName'](_0x197de0['markerName']),_0x5ebfff=_0x32b9fa['getSuggestion'](_0xda72d2),_0x55b714=_0x5ebfff['data'];if('formatBlock'!=_0x5ebfff['type']||!_0x55b714||'setTableColumnHeader'!=_0x55b714['commandName'])return;const _0x230db6=_0x4311bc['mapper']['markerNameToElements'](_0x197de0['markerName']);if(_0x230db6){for(const _0x3d1f9b of _0x230db6)_0x4311bc['writer']['removeClass']('ck-suggestion-marker-'+_0x323ce3,_0x3d1f9b),_0x4311bc['writer']['removeClass']('ck-suggestion-marker--active',_0x3d1f9b),_0x4311bc['writer']['removeAttribute']('data-suggestion',_0x3d1f9b),_0x4311bc['mapper']['unbindElementFromMarkerName'](_0x3d1f9b,_0x197de0['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b1c5f=this['editor'],_0x5b1468=_0x1b1c5f['locale'];function _0x27133e(_0x361619){return{'type':'format','content':o(_0x5b1468,'*Format:*\x20%0',_0x361619)};}_0x1b1c5f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36d951=>{if('formatBlock'!=_0x36d951['type'])return;const {data:_0x379f27}=_0x36d951;if(_0x379f27){if('setTableRowHeader'==_0x379f27['commandName']){const _0x321a09=_0x379f27['commandParams'][0x0]['forceValue'];return _0x27133e(o(_0x5b1468,_0x321a09?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x379f27['commandName']){const _0x4d18f2=_0x379f27['commandParams'][0x0]['forceValue'];return _0x27133e(o(_0x5b1468,_0x4d18f2?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0x583d72=>[_0x583d72,null]));class Nt extends _0x522036{static get['requires'](){return[vt];}['afterInit'](){const _0x208036=this['editor'];if(!_0x208036['plugins']['has']('TableClipboard'))return;const _0x565e5a=_0x208036['plugins']['get']('TrackChangesEditing'),_0x3f2562=_0x208036['plugins']['get']('TableUtils'),_0xf334de=_0x208036['plugins']['get'](vt),_0x3c411f=_0x208036['plugins']['get']('TableClipboard');_0xf334de['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x208036['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x208036['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3d8255=null;_0x208036['model']['on']('insertContent',(_0x32aa59,_0x46bd9a)=>{const [_0x7edf5a,_0x2385d3]=_0x46bd9a,_0xeeed1f=_0x46bd9a[_0x46bd9a['length']-0x1];_0xeeed1f&&_0xeeed1f['forceDefaultExecution']||_0x565e5a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x14670c,_0x2609fb,_0x46abec,_0x3031c2,_0x5ba45f){if(_0x2609fb&&!_0x2609fb['is']('documentSelection'))return!0x1;const _0x53644f=_0x5ba45f['getTableIfOnlyTableInContent'](_0x14670c,_0x46abec);if(!_0x53644f||!Ae(_0x53644f,void 0x0,_0x3031c2))return!0x1;const _0x7356db=_0x3031c2['getSelectionAffectedTableCells'](_0x46abec['document']['selection']);if(!_0x7356db['length'])return!0x1;const _0x59d5fc=_0x7356db[0x0]['findAncestor']('table'),_0x5ae052=_0x3031c2['getRowIndexes'](_0x7356db),_0x440dfb=_0x3031c2['getColumnIndexes'](_0x7356db),_0x4a933c={'startRow':_0x5ae052['first'],'endRow':_0x5ae052['last'],'startColumn':_0x440dfb['first'],'endColumn':_0x440dfb['last']};return 0x1==_0x7356db['length']&&(_0x4a933c['endRow']+=_0x3031c2['getRows'](_0x53644f)-0x1,_0x4a933c['endColumn']+=_0x3031c2['getColumns'](_0x53644f)-0x1),Ae(_0x59d5fc,_0x4a933c,_0x3031c2);}(_0x7edf5a,_0x2385d3,_0x208036['model'],_0x3f2562,_0x3c411f)&&(_0x32aa59['stop'](),_0x3d8255={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x208036['model']['change'](()=>{_0x208036['model']['insertContent'](_0x46bd9a[0x0],_0x46bd9a[0x1],_0x46bd9a[0x2],{'forceDefaultExecution':!0x0});const _0x342f9c=_0xb9e80(),{rowInsertionRanges:_0xe07632,columnInsertionRanges:_0x3682c6,insertionRanges:_0x29acc5,deletionRanges:_0x1183c9,cells:_0x45328e}=_0x3d8255;_0xe07632['length']&&_0x565e5a['markMultiRangeInsertion'](_0xe07632,'tablePasteRow',{'tablePasteChainId':_0x342f9c}),_0x3682c6['length']&&_0x565e5a['markMultiRangeInsertion'](_0x3682c6,'tablePasteColumn',{'tablePasteChainId':_0x342f9c}),_0x29acc5['length']&&(_0x565e5a['markMultiRangeInsertion'](_0x29acc5,'tablePaste',{'tablePasteChainId':_0x342f9c,'skipNestingCheck':!0x0}),_0x29acc5['forEach'](_0x158901=>_0x158901['detach']?.())),_0x1183c9['length']&&(_0x565e5a['markMultiRangeDeletion'](_0x1183c9,'tablePaste',{'tablePasteChainId':_0x342f9c,'skipNestingCheck':!0x0}),_0x1183c9['forEach'](_0x404048=>_0x404048['detach']?.()));const _0x5345c2=_0x565e5a['markMultiRangeBlockFormat'](_0x45328e['map'](({element:_0x13a597})=>_0x13a597),{'formatGroupId':_0xb9e80()},[],'tablePasteCell',{'tablePasteChainId':_0x342f9c});if(_0x5345c2){const _0x43783e=_0x5345c2['getMarkers'](),_0x418f1c=[];for(const {element:_0x564bf3,attributes:_0x16ff59}of _0x45328e){if(!_0x16ff59)continue;const _0x156549=_0x208036['model']['createRangeOn'](_0x564bf3),_0x1a36b3=_0x43783e['find'](_0x5dbb1a=>_0x5dbb1a['getRange']()['isEqual'](_0x156549));_0x1a36b3&&_0x418f1c['push']([_0x1a36b3['name'],_0x16ff59]);}_0x418f1c['length']&&_0x5345c2['setAttribute']('markerAttributes',Object['fromEntries'](_0x418f1c));}_0x3d8255=null;}));},{'priority':_0xe00547['high']+0xa}),_0x208036['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x476295,_0x5a66ec)=>{const [_0x333457,_0x4f3e2b,,_0x125a7c]=_0x5a66ec;if(!_0x3d8255)return;_0x476295['stop']();const _0x463b02=_0x333457['cell'],_0x1f82f7=_0x4f3e2b,_0xc8b405=je(_0x463b02),_0x1ff3a1=je(_0x1f82f7);_0x476295['return']=_0x463b02;let _0x18df9a=null,_0x450ce7=null;if(_0x1ff3a1||_0xc8b405){if(_0xc8b405&&!_0x1ff3a1){_0x125a7c['remove'](_0x463b02['getChild'](0x0));for(const _0x323a04 of Array['from'](_0x1f82f7['getChildren']()))_0x125a7c['insert'](_0x323a04,_0x463b02,'end');const _0x8b6b2a=_0x3d8255['rowInsertionIndexes']['includes'](_0x333457['row']),_0x27a67d=_0x3d8255['columnInsertionIndexes']['includes'](_0x333457['column']);_0x8b6b2a||_0x27a67d||(_0x18df9a=_0x582953['fromRange'](_0x125a7c['createRangeIn'](_0x463b02)));}else _0x1ff3a1&&!_0xc8b405&&(_0x450ce7=_0x125a7c['createRangeIn'](_0x463b02));}else{const _0x3a7f07=_0x125a7c['createElement']('tableCellSuggestion'),_0x4cef78=_0x125a7c['createElement']('tableCellSuggestion');_0x125a7c['wrap'](_0x125a7c['createRangeIn'](_0x463b02),_0x4cef78),_0x125a7c['insert'](_0x3a7f07,_0x463b02,0x0);for(const _0x5d4783 of Array['from'](_0x1f82f7['getChildren']()))_0x125a7c['insert'](_0x5d4783,_0x3a7f07,'end');_0x18df9a=_0x582953['fromRange'](_0x125a7c['createRangeOn'](_0x3a7f07)),_0x450ce7=_0x582953['fromRange'](_0x125a7c['createRangeOn'](_0x4cef78));}const _0x5dcac9=Array['from'](_0x1f82f7['getAttributes']())['filter'](([_0x29ef27])=>we['includes'](_0x29ef27));_0x3d8255['cells']['push']({'element':_0x463b02,'attributes':_0x5dcac9['length']?Object['fromEntries'](_0x5dcac9):null}),_0x18df9a&&_0x3d8255['insertionRanges']['push'](_0x18df9a),_0x450ce7&&_0x3d8255['deletionRanges']['push'](_0x450ce7);},{'priority':'high'}),_0x3f2562['on']('insertColumns',(_0xe93ba0,_0x3e4b6e)=>{const [_0x1eab06,_0x4181a5={}]=_0x3e4b6e;if(!_0x3d8255)return;const _0x38f6f7=_0x4181a5['at']||0x0,_0x438f57=_0x4181a5['columns']||0x1;_0x3d8255['columnInsertionIndexes']=new Array(_0x438f57)['fill'](_0x38f6f7)['map']((_0x27bfab,_0x3016fc)=>_0x27bfab+_0x3016fc);for(const {cell:_0x4d6536}of _0x3f2562['createTableWalker'](_0x1eab06,{'startColumn':_0x38f6f7,'endColumn':_0x38f6f7+_0x438f57-0x1}))_0x3d8255['columnInsertionRanges']['push'](_0x208036['model']['createRangeOn'](_0x4d6536));},{'priority':'low'}),_0x3f2562['on']('insertRows',(_0x3143ba,_0x190659)=>{const [_0x15a45c,_0x5625d3={}]=_0x190659;if(!_0x3d8255)return;const _0x4349e3=_0x5625d3['at']||0x0,_0x588f3c=_0x5625d3['rows']||0x1;_0x3d8255['rowInsertionIndexes']=new Array(_0x588f3c)['fill'](_0x4349e3)['map']((_0x264788,_0x36b162)=>_0x264788+_0x36b162);for(const {cell:_0x4a99b5}of _0x3f2562['createTableWalker'](_0x15a45c,{'startRow':_0x4349e3,'endRow':_0x4349e3+_0x588f3c-0x1}))_0x3d8255['rowInsertionRanges']['push'](_0x208036['model']['createRangeOn'](_0x4a99b5));},{'priority':'low'}),_0x565e5a['descriptionFactory']['registerDescriptionCallback'](_0x110cc0=>{if(_0x110cc0['subType']&&_0x110cc0['subType']['startsWith']('tablePaste'))return _0x110cc0['previous']?{}:{'type':'insertion','content':o(_0x208036['locale'],'*Replace\x20table\x20cells*')};});const _0x24904a=()=>!0x1;for(const _0x36ca95 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x565e5a['_suggestionFactory']['registerCustomCallback']('insertion',_0x36ca95,'join',_0x24904a),_0x565e5a['_suggestionFactory']['registerCustomCallback']('deletion',_0x36ca95,'join',_0x24904a),_0x565e5a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x36ca95,'join',_0x24904a);_0x565e5a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x24904a),_0x565e5a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3fbcb1,_0xdcb249,_0x297aa4)=>{const _0x23ca06=_0x3fbcb1['map'](_0x4300e0=>_0x4300e0['getContainedElement']())['filter'](_0x5ccb17=>_0x5ccb17),_0x1cab62=new Map(_0x23ca06['map'](_0x4a3065=>[_0x4a3065,null]));if(_0x3d8255){for(const {element:_0x537139,attributes:_0x4d435f}of _0x3d8255['cells'])_0x4d435f&&_0x1cab62['set'](_0x537139,_0x4d435f);}else{if(_0x297aa4&&_0x297aa4['markerAttributes'])for(const [_0x53bb07,_0x1abaf4]of Object['entries'](_0x297aa4['markerAttributes'])){const _0x5d5930=_0x208036['model']['markers']['get'](_0x53bb07),_0x3027b2=_0x5d5930?_0x5d5930['getRange']()['getContainedElement']():null;_0x3027b2&&_0x1cab62['set'](_0x3027b2,_0x1abaf4);}}_0x208036['model']['change'](_0x20e6d3=>{for(const [_0x4323a3,_0x5b3686]of _0x1cab62)_0x20e6d3['setAttributes']({...ve,..._0x5b3686},_0x4323a3);});});const _0xd8a219=(_0x5544a2,_0x961434)=>{_0x565e5a['_suggestionFactory']['registerCustomCallback'](_0x5544a2,'tablePaste',_0x961434,(_0x1b24d3,_0x1f3ce5,_0x3aad3e)=>{_0x208036['model']['change'](_0x4c6d31=>{const _0x4f4647=[];for(const _0x4f2690 of _0x1b24d3){const _0xf955a9=_0x4f2690['start']['nodeAfter'];_0xf955a9['is']('element','tableCellSuggestion')&&_0x4f4647['push'](_0xf955a9);}_0x565e5a['_suggestionFactory']['getSuggestionCallback'](_0x5544a2,null,_0x961434)(_0x1b24d3,_0x1f3ce5,_0x3aad3e);for(const _0x273052 of _0x4f4647)'$graveyard'!=_0x273052['root']['rootName']&&_0x4c6d31['unwrap'](_0x273052);});});};_0xd8a219('insertion','accept'),_0xd8a219('insertion','discard'),_0xd8a219('deletion','accept'),_0xd8a219('deletion','discard'),_0x565e5a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x29202d=>{const _0x418ab2=_0x29202d['map'](_0x3dacb7=>_0x3dacb7['getContainedElement']()),_0x54c606=_0x418ab2[0x0]['findAncestor']('table'),{minRow:_0x45bcb3,maxRow:_0x1e5652}=_0xf334de['_getCoordsForCells'](_0x418ab2);_0x3f2562['removeRows'](_0x54c606,{'at':_0x45bcb3,'rows':_0x1e5652-_0x45bcb3+0x1});}),_0x565e5a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2d8eec=>{const _0x137bf5=_0x2d8eec['map'](_0x5249bd=>_0x5249bd['getContainedElement']()),_0x14e466=_0x137bf5[0x0]['findAncestor']('table'),{minColumn:_0x4ae719,maxColumn:_0x25e41f}=_0xf334de['_getCoordsForCells'](_0x137bf5);_0x3f2562['removeColumns'](_0x14e466,{'at':_0x4ae719,'columns':_0x25e41f-_0x4ae719+0x1});});const _0x430c98=(_0x3290bc,_0x1af9dc)=>{if(!_0x1af9dc['subType']||!_0x1af9dc['subType']['startsWith']('tablePaste'))return;const _0x21ce3f=_0x1af9dc['attributes']['tablePasteChainId'],_0x4a51f9=_0x565e5a['getSuggestions']()['filter'](_0x1fbadc=>_0x1fbadc['isInContent']&&_0x1fbadc['attributes']&&_0x1fbadc['attributes']['tablePasteChainId']==_0x21ce3f);_0x4a51f9['length']&&_0x1af9dc['getAllAdjacentSuggestions']()['length']!=_0x4a51f9['length']&&_0x4a51f9['reduce']((_0x2cbfb5,_0x38bfe6)=>(_0x2cbfb5['next']=_0x38bfe6,_0x38bfe6['previous']=_0x2cbfb5,_0x38bfe6));};function _0x57038b(_0x530b55,_0x1002dd=!0x0){const {id:_0x296477,authorId:_0x5ad6cd}=_0x565e5a['_splitMarkerName'](_0x530b55['markerName']),_0x10e98b=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2b7f0d=_0x565e5a['activeMarkers']['includes'](_0x530b55['markerName']);return _0x2b7f0d&&_0x10e98b['push']('ck-suggestion-marker--active'),{'classes':_0x10e98b,'attributes':{'data-suggestion':_0x296477,'data-author-id':_0x5ad6cd},'priority':_0x2b7f0d&&_0x1002dd?0xbc2:0xbb8};}_0x565e5a['on']('suggestionLoaded',_0x430c98,{'priority':'high'}),_0x565e5a['on']('suggestionUnloaded',_0x430c98,{'priority':'high'}),_0x208036['model']['document']['registerPostFixer'](()=>{let _0x381e7f=!0x1;const _0x8c35ed=Array['from'](_0x208036['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x328486,data:_0x3715cf}of _0x8c35ed){const {group:_0x5d8d2b,type:_0x2e0428,id:_0x3707b0}=_0x565e5a['_splitMarkerName'](_0x328486);if('suggestion'!=_0x5d8d2b||'deletion'!=_0x2e0428||_0x3715cf['oldRange'])continue;if(!_0x565e5a['hasSuggestion'](_0x3707b0))continue;const _0x2c1eed=_0x565e5a['getSuggestion'](_0x3707b0)['getRanges'](),_0x5cf92a=_0x208036['plugins']['get']('Users')['me'];for(const _0x2b7a36 of _0x565e5a['getSuggestions']()){if(!_0x2b7a36['isInContent']||_0x2b7a36['author']!=_0x5cf92a)continue;if('formatBlock'!=_0x2b7a36['type']||'tablePasteCell'!=_0x2b7a36['subType'])continue;if(_0x2b7a36['getRanges']()['every'](_0x3d4df9=>_0x2c1eed['some'](_0x5a4dfd=>_0x5a4dfd['containsRange'](_0x3d4df9,!0x0)))){for(const _0xf6f86a of _0x2b7a36['getAllAdjacentSuggestions']())_0xf6f86a['isInContent']&&(_0xf6f86a['discard'](),_0x381e7f=!0x0);}}}return _0x381e7f;}),_0x208036['model']['document']['registerPostFixer'](_0x454c11=>{const _0x3fc152=_0x208036['commands']['get']('redo');if(!_0x3fc152||!_0x3fc152['_createdBatches']['has'](_0x454c11['batch']))return!0x1;let _0x4ba84f=!0x1;const _0x180057=_0x208036['plugins']['get']('Users')['me'],_0x422828=_0x208036['model']['document']['differ']['getChanges'](),_0x173876=Array['from'](_0x208036['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x450b49,data:_0x1ba2fa})=>{const {group:_0x2b333f,subType:_0x57bfff,authorId:_0x37aa69}=_0x565e5a['_splitMarkerName'](_0x450b49);return'suggestion'==_0x2b333f&&'tablePaste'==_0x57bfff&&_0x37aa69==_0x180057['id']&&!_0x1ba2fa['oldRange'];});for(const _0xdd06d3 of _0x422828){if('insert'!=_0xdd06d3['type']||'tableCellSuggestion'!=_0xdd06d3['name']||0x1!=_0xdd06d3['length'])continue;const _0x503649=_0x454c11['createRange'](_0xdd06d3['position'],_0xdd06d3['position']['getShiftedBy'](0x1));if(!_0x173876['find'](({data:_0xacc756})=>_0xacc756['newRange']['isEqual'](_0x503649))){for(const {name:_0x211ee6,data:_0x51ce10}of _0x173876)if(_0x503649['containsRange'](_0x51ce10['newRange'])){_0x454c11['updateMarker'](_0x211ee6,{'range':_0x503649}),_0x4ba84f=!0x0;break;}}}return _0x4ba84f;}),_0x208036['model']['document']['registerPostFixer'](_0x1fb513=>{let _0x278989=!0x1;const _0x53312b=_0x208036['plugins']['get']('Users')['me'],_0x49ab74=_0x565e5a['getSuggestions']()['filter'](_0x387c5e=>_0x387c5e['isInContent']&&_0x387c5e['author']==_0x53312b),_0x7291d9=new Set(),_0x3d7fee=new Set();for(const _0x5a47e4 of _0x49ab74)if('tablePaste'==_0x5a47e4['subType'])for(const _0x19dfb2 of _0x5a47e4['getMarkers']()){const _0xd4bee2=_0x19dfb2['getRange']()['getContainedElement']();if(_0xd4bee2){if(_0xd4bee2['is']('element','tableCellSuggestion')&&je(_0xd4bee2)){_0x5a47e4['removeMarker'](_0x19dfb2['name']),_0x7291d9['add'](_0xd4bee2),_0x278989=!0x0;const _0x3e18f2=_0xd4bee2['nextSibling'],_0x1150d3=_0xd4bee2['previousSibling'],_0x2f0e3a=_0x3e18f2&&_0x3e18f2['is']('element','tableCellSuggestion'),_0x33897f=_0x1150d3&&_0x1150d3['is']('element','tableCellSuggestion');_0x2f0e3a&&!_0x7291d9['has'](_0x3e18f2)&&_0x3d7fee['add'](_0x3e18f2),_0x33897f&&!_0x7291d9['has'](_0x1150d3)&&_0x3d7fee['add'](_0x1150d3);}else _0xd4bee2['is']('element','paragraph')&&_0xd4bee2['isEmpty']&&(_0x5a47e4['removeMarker'](_0x19dfb2['name']),_0x278989=!0x0);}}else{if('tablePasteCell'==_0x5a47e4['subType']){if(!_0x5a47e4['attributes']||!_0x5a47e4['attributes']['tablePasteChainId'])continue;const _0x344365=_0x5a47e4['attributes']['markerAttributes'];if(_0x344365&&Object['keys'](_0x344365)['length'])continue;const _0x1cd2d5=_0x5a47e4['attributes']['tablePasteChainId'];let _0x23a4c9=!0x0,_0x446dad=!0x0;for(const _0x183c8d of _0x49ab74)if(_0x183c8d['subType']&&_0x183c8d['subType']['startsWith']('tablePaste')){if(!_0x183c8d['attributes']['tablePasteChainId']){_0x446dad=!0x1;break;}if(_0x183c8d['id']!=_0x5a47e4['id']&&_0x183c8d['attributes']['tablePasteChainId']==_0x1cd2d5){_0x23a4c9=!0x1;break;}}_0x446dad&&_0x23a4c9&&(_0x5a47e4['removeMarkers'](),_0x278989=!0x0);}}for(const _0xc8355e of _0x7291d9)_0x1fb513['remove'](_0xc8355e);for(const _0x2fb1d2 of _0x3d7fee)_0x1fb513['unwrap'](_0x2fb1d2);return _0x278989;}),_0x208036['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xc3445f=>_0x57038b(_0xc3445f),'converterPriority':'high'}),_0x208036['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4404ed,_0x3df1d2)=>_0x3df1d2['options']['showSuggestionHighlights']?_0x57038b(_0x4404ed,!0x1):null,'converterPriority':'high'});const _0x2dd6e8=_0x208036['editing']['view'];this['listenTo'](_0x2dd6e8['document'],'clipboardOutput',(_0x1cc3e7,_0x499ef2)=>{const _0x1b7ef1=[];for(const _0x427616 of _0x2dd6e8['createRangeIn'](_0x499ef2['content'])['getItems']())_0x427616['is']('element','suggestion-td')&&_0x1b7ef1['push'](_0x427616);_0x2dd6e8['change'](_0x3cfd52=>{for(const _0x2b103f of _0x1b7ef1)_0x3cfd52['move'](_0x3cfd52['createRangeIn'](_0x2b103f),_0x3cfd52['createPositionBefore'](_0x2b103f)),_0x3cfd52['remove'](_0x2b103f);});});}}function je(_0x3a5d2a){if(_0x3a5d2a['isEmpty'])return!0x0;const _0x5a33d4=_0x3a5d2a['getChild'](0x0);return _0x5a33d4['is']('element','paragraph')&&_0x5a33d4['isEmpty'];}function Ae(_0x5a1fd4,_0x36603d={},_0x19b7ef){for(const {isAnchor:_0x3e3a41,cellHeight:_0x2bba1c,cellWidth:_0x25f118}of _0x19b7ef['createTableWalker'](_0x5a1fd4,{'includeAllSlots':!0x0,..._0x36603d}))if(!_0x3e3a41||0x1!=_0x2bba1c||0x1!=_0x25f118)return!0x1;return!0x0;}class Dt extends _0x522036{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2c8c11=this['editor']['plugins']['get']('TrackChangesEditing');_0x2c8c11['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2c8c11['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2c8c11['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2c8c11['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2c8c11['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2c8c11['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1a791b,_0x285862){const _0x45a235=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d8df4=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x301067=_0x285862['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x395cbc=_0x2d8df4['getColumnGroupElement'](_0x301067);let _0x4bd6e8=_0x395cbc?_0x2d8df4['getTableColumnsWidths'](_0x395cbc):null,_0x4e0cf9=_0x301067['getAttribute']('tableWidth')||null;const _0x39246c=_0x285862['tableWidth']||_0x4e0cf9,_0xf84cac=_0x285862['columnWidths']||_0x4bd6e8,_0x3f599f=this['editor']['plugins']['get']('Users')['me'];for(const _0x563c64 of _0x45a235['getSuggestions']()){const _0x3d9d82=_0x563c64['getContainedElement']();if('resizeTable'===_0x563c64['subType']&&_0x3d9d82===_0x301067){_0x563c64['author']!==_0x3f599f&&_0x563c64['discard']();const _0x329d7e=_0x563c64['data']['commandParams'];_0x4e0cf9=_0x329d7e[0x0]['tableWidth'],_0x4bd6e8=_0x329d7e[0x0]['columnWidths'];break;}}_0x1a791b({'table':_0x301067,'tableWidth':_0x39246c,'columnWidths':_0xf84cac}),_0x45a235['markBlockFormat'](_0x301067,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4e0cf9,'columnWidths':_0x4bd6e8}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x276673){if('formatBlock'!=_0x276673['type']&&'formatInline'!=_0x276673['type'])return;const {data:_0x299962}=_0x276673;if(_0x299962&&'resizeTable'===_0x299962['formatGroupId']){const _0x26d8dc='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x26d8dc)};}}}class Mt extends _0x522036{['afterInit'](){const _0x4ed730=this['editor'];_0x4ed730['plugins']['has']('Template')&&_0x4ed730['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x522036{['afterInit'](){const _0x35951d=this['editor'];if(!_0x35951d['commands']['get']('insertTableOfContents'))return;_0x35951d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4d9c27=_0x35951d['plugins']['get']('TrackChangesEditing'),_0x3fd0d8=_0x35951d['locale'];_0x4d9c27['descriptionFactory']['registerElementLabel']('tableOfContents',_0x169312=>o(_0x3fd0d8,'ELEMENT_TABLE_OF_CONTENTS',_0x169312));}}class Bt extends _0x522036{['afterInit'](){const _0x56ab4d=this['editor'];if(!_0x56ab4d['plugins']['has']('Title'))return;const _0x141417=_0x56ab4d['plugins']['get']('TrackChangesEditing');_0x141417['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x56ab4d['locale'],'ELEMENT_TITLE')),_0x56ab4d['model']['document']['registerPostFixer'](_0x341020=>{let _0x54b2a0=!0x1;const _0x3f91be=Array['from'](_0x56ab4d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2c8ff8,data:_0xe4a331}of _0x3f91be){const {group:_0x5319ea}=_0x141417['_splitMarkerName'](_0x2c8ff8);if('suggestion'!==_0x5319ea||!_0xe4a331['newRange'])continue;const _0x51b8e6=_0xe4a331['newRange'],_0x41c5d9=_0x51b8e6['end']['nodeBefore'];if(!_0x41c5d9||!_0x41c5d9['is']('element','title-content'))continue;if(!_0x51b8e6['start']['isTouching'](_0x51b8e6['end']))continue;const _0x300cbb=_0x56ab4d['model']['schema']['getNearestSelectionRange'](_0x51b8e6['end'],'forward');if(_0x300cbb&&_0x300cbb['isCollapsed']){const _0x1e2705=_0x341020['createRange'](_0x51b8e6['start'],_0x300cbb['start']);_0x1e2705['isEqual'](_0x51b8e6)||(_0x341020['updateMarker'](_0x2c8ff8,{'range':_0x1e2705}),_0x54b2a0=!0x0);}_0x54b2a0||(_0x341020['removeMarker'](_0x2c8ff8),_0x54b2a0=!0x0);}return _0x54b2a0;});}}class Ot extends _0x522036{['afterInit'](){const _0x46c14f=this['editor'],_0x15e2d4=_0x46c14f['plugins']['get']('TrackChangesEditing');_0x46c14f['plugins']['has']('UndoEditing')&&(_0x15e2d4['enableCommand']('undo'),_0x15e2d4['enableCommand']('redo'));}}class Rt extends _0x522036{static get['requires'](){return[vt];}['afterInit'](){const _0x21ada0=this['editor'];if(!_0x21ada0['plugins']['has']('TableCaptionEditing'))return;_0x21ada0['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x522036{['tableProperties'];['tableCellProperties'];constructor(_0x5b509e){super(_0x5b509e),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 _0x4fea30=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x125506 of this['tableProperties'])_0x4fea30['enableCommand'](_0x125506,(_0x389938,_0x2c92a7)=>{const _0x5aeff8=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x125506,[_0x5aeff8],this['tableProperties'],'tableProperties',_0x389938,_0x2c92a7);});_0x4fea30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4fea30['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4fea30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x183981,_0x1e10b9)=>this['handleDiscardAction'](this['tableProperties'],_0x183981,_0x1e10b9)),_0x4fea30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x114694 of this['tableCellProperties'])_0x4fea30['enableCommand'](_0x114694,(_0x3c75ff,_0x736c46)=>{const _0x58947b=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x114694,_0x58947b,this['tableCellProperties'],'tableCellProperties',_0x3c75ff,_0x736c46);});_0x4fea30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4fea30['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4fea30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3afd51,_0x54a114)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3afd51,_0x54a114)),_0x4fea30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4fea30['descriptionFactory']['registerDescriptionCallback'](_0x51f669=>this['handleSuggestionDescription'](_0x51f669));}['_handlePropertyChange'](_0x1bfa08,_0x30497e,_0x755569,_0xd6384,_0x5cda85,_0x6d2419){const _0x476f60=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x6d2419['batch'],()=>{for(const _0x55ded1 of _0x30497e){if(this['_getSuggestion'](_0x55ded1,_0xd6384))_0x5cda85(_0x6d2419);else{const _0x4b610b={};for(const _0x28b96c of _0x755569){const _0x3a22f1=_0x55ded1['getAttribute'](_0x28b96c);void 0x0!==_0x3a22f1&&(_0x4b610b[_0x28b96c]=_0x3a22f1);}_0x5cda85(_0x6d2419),_0x476f60['markBlockFormat'](_0x55ded1,{'commandParams':[_0x4b610b]},[],_0xd6384);}}});}['handleDiscardAction'](_0x4d408e,_0x550889,_0x1eaff4){const _0xd91e60=_0x550889[0x0]['start']['nodeAfter'],_0x4790f1=_0x1eaff4['commandParams'][0x0];this['editor']['model']['change'](_0x561fab=>{for(const _0x5abcea of _0x4d408e)void 0x0!==_0x4790f1[_0x5abcea]?_0x561fab['setAttribute'](_0x5abcea,_0x4790f1[_0x5abcea],_0xd91e60):_0x561fab['removeAttribute'](_0x5abcea,_0xd91e60);});}['handleSuggestionDescription'](_0xd5ac28){if(_0xd5ac28['data'])switch(_0xd5ac28['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'](_0x587c1a,_0x33e7ab){const _0x1059f3=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x22e261 of _0x1059f3['getSuggestions']({'skipNotAttached':!0x0})){const _0x4a2f6b=_0x22e261['getContainedElement']();if(_0x22e261['subType']===_0x33e7ab&&_0x4a2f6b===_0x587c1a)return _0x22e261;}return null;}}const m='$elementName';class p extends _0x522036{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x32d02e,_0x50247b,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x410426){super(_0x410426),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x139f11,_0x4c20af,_0x3882d7,_0x1e229a)=>{this['_model']['change'](()=>{for(const _0x7a1de4 of[..._0x1e229a,..._0x3882d7])this['_model']['markers']['has'](_0x7a1de4)&&_0x410426['editing']['reconvertMarker'](_0x7a1de4);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x410426['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(),_0x410426['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x410426['config']['get']('trackChanges.trackFormatChanges'),_0x410426['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x410426['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x410426,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x35e383=this['editor'],_0x5e90b9=(_0x23bd44,_0x42454b)=>{if('attribute'!=_0x23bd44)return'ck-suggestion-marker-'+_0x23bd44;const _0x3d6dbd=_0x42454b['split']('|')[0x0];return this['_isBlockAttribute'](_0x3d6dbd)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x35e383['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3ca556=>{const {id:_0x320449,authorId:_0x207d99,type:_0x541f5d,subType:_0xded13c}=this['_splitMarkerName'](_0x3ca556['markerName']),_0x2cc7d5=['ck-suggestion-marker',_0x5e90b9(_0x541f5d,_0xded13c)];let _0x3e8281=0xbb8;return this['activeMarkers']['includes'](_0x3ca556['markerName'])&&(_0x2cc7d5['push']('ck-suggestion-marker--active'),_0x3e8281=0xbc2),'deletion'==_0x541f5d&&(_0x3e8281+=0x5),{'classes':_0x2cc7d5,'attributes':{'data-suggestion':_0x320449,'data-author-id':_0x207d99},'priority':_0x3e8281};}}),_0x35e383['conversion']['for']('dataDowncast')['add'](_0xabd2f4=>{_0xabd2f4['on']('addMarker:suggestion',(_0xc68f8,_0x1c23bd,_0x58b1a5)=>{if(!_0x58b1a5['options']['showSuggestionHighlights'])return;const _0x5f455b=_0x1c23bd['item'];if(!_0x5f455b)return;const _0x293e20=_0x58b1a5['mapper']['toViewElement'](_0x5f455b);_0x35e383['model']['schema']['isObject'](_0x5f455b)&&_0x293e20&&!_0x293e20['getCustomProperty']('widget')&&_0x293e20['is']('containerElement')&&_0x27f6ef(_0x293e20,_0x58b1a5['writer']);},{'priority':'high'});}),_0x35e383['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x57704d,_0x1208cc)=>{if(!_0x1208cc['options']['showSuggestionHighlights'])return null;const {type:_0x24a896,subType:_0x178be6}=this['_splitMarkerName'](_0x57704d['markerName']);return{'classes':['ck-suggestion-marker',_0x5e90b9(_0x24a896,_0x178be6)],'priority':0xbb8};}});const _0xdcbe89=({showActiveMarkers:_0x299853=!0x0,isAttributeSuggestion:_0x5a4f95=!0x1}={})=>(_0xa64946,_0x37d74c,_0x5a0da4)=>{if(!_0x37d74c['item'])return;const {id:_0x5240f1,authorId:_0x3df530}=this['_splitMarkerName'](_0x37d74c['markerName']);if(_0x5a4f95){const _0x1227ca=this['_suggestions']['get'](_0x5240f1),_0x3b321f=this['_getAttributeKey'](_0x1227ca);if(!this['_isBlockAttribute'](_0x3b321f))return;}if(_0x37d74c['item']['is']('selection'))return void _0x5a0da4['consumable']['consume'](_0x37d74c['item'],_0xa64946['name']);const _0x1bc32f=_0x5a0da4['mapper']['toViewElement'](_0x37d74c['item']);if(_0x37d74c['item']['is']('element')&&_0x35e383['model']['schema']['isBlock'](_0x37d74c['item'])&&!_0x1bc32f['getCustomProperty']('addHighlight')){_0x5a0da4['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1bc32f),_0x5a0da4['writer']['setAttribute']('data-suggestion',_0x5240f1,_0x1bc32f),_0x5a0da4['writer']['setAttribute']('data-author-id',_0x3df530,_0x1bc32f),_0x5a0da4['mapper']['bindElementToMarker'](_0x1bc32f,_0x37d74c['markerName']),_0x299853&&(this['activeMarkers']['includes'](_0x37d74c['markerName'])?_0x5a0da4['writer']['addClass']('ck-suggestion-marker--active',_0x1bc32f):_0x5a0da4['writer']['removeClass']('ck-suggestion-marker--active',_0x1bc32f));for(const _0x185065 of _0x35e383['model']['createRangeIn'](_0x37d74c['item'])['getItems']())_0x5a0da4['consumable']['consume'](_0x185065,_0xa64946['name']);_0x5a0da4['consumable']['consume'](_0x37d74c['item'],_0xa64946['name']);}};_0x35e383['conversion']['for']('dataDowncast')['add'](_0x5847b5=>{_0x5847b5['on']('addMarker:suggestion:formatBlock',(_0x5f4d1a,_0x50e9dd,_0x34a7d9)=>{_0x34a7d9['options']['showSuggestionHighlights']&&_0xdcbe89({'showActiveMarkers':!0x1})(_0x5f4d1a,_0x50e9dd,_0x34a7d9);},{'priority':'highest'});}),_0x35e383['conversion']['for']('dataDowncast')['add'](_0x3ebf9f=>{_0x3ebf9f['on']('addMarker:suggestion:attribute',(_0x2d1984,_0x22d350,_0x580e20)=>{_0x580e20['options']['showSuggestionHighlights']&&_0xdcbe89({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2d1984,_0x22d350,_0x580e20);},{'priority':'highest'});}),_0x35e383['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2a39b9,_0x10e1f1)=>_0x10e1f1['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2a39b9['substr'](0xb)}}),_0x35e383['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1c2988,{writer:_0x5179a3})=>{let _0x926cc='suggestion:'+_0x1c2988['getAttribute']('suggestion-type')+':'+_0x1c2988['getAttribute']('id');return _0x1c2988['getAttribute']('marker-count')&&(_0x926cc+=':'+_0x1c2988['getAttribute']('marker-count')),_0x5179a3['createElement']('$marker',{'data-name':_0x926cc});}}),_0x35e383['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x35e383['conversion']['for']('editingDowncast')['add'](_0x2ed3ab=>{_0x2ed3ab['on']('addMarker:suggestion:formatBlock',_0xdcbe89(),{'priority':'high'});}),_0x35e383['conversion']['for']('editingDowncast')['add'](_0x6e2ff3=>{_0x6e2ff3['on']('addMarker:suggestion:attribute',_0xdcbe89({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x35e383['conversion']['for']('editingDowncast')['add'](_0x472672=>{_0x472672['on']('removeMarker:suggestion:formatBlock',(_0x1bb9f7,_0x526605,_0x563f83)=>{const _0x336a10=_0x563f83['mapper']['markerNameToElements'](_0x526605['markerName']);if(_0x336a10){for(const _0x3e4225 of _0x336a10)_0x3e4225['getCustomProperty']('addHighlight')||(_0x563f83['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3e4225),_0x563f83['writer']['removeAttribute']('data-suggestion',_0x3e4225),_0x563f83['writer']['removeAttribute']('data-author-id',_0x3e4225),_0x563f83['mapper']['unbindElementFromMarkerName'](_0x3e4225,_0x526605['markerName']));}},{'priority':'high'});}),_0x35e383['conversion']['for']('editingDowncast')['add'](_0x1d403d=>{_0x1d403d['on']('removeMarker:suggestion:attribute',(_0x1e44ef,_0x340a40,_0x3dd99f)=>{const _0x429659=_0x3dd99f['mapper']['markerNameToElements'](_0x340a40['markerName']);if(!_0x429659)return;const {id:_0x442c1c}=this['_splitMarkerName'](_0x340a40['markerName']),_0x3d2998=this['_suggestions']['get'](_0x442c1c),_0x226cf8=this['_getAttributeKey'](_0x3d2998);if(this['_isBlockAttribute'](_0x226cf8)){for(const _0x3750a9 of _0x429659)_0x3750a9['getCustomProperty']('addHighlight')||(_0x3dd99f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3750a9),_0x3dd99f['writer']['removeAttribute']('data-suggestion',_0x3750a9),_0x3dd99f['writer']['removeAttribute']('data-author-id',_0x3750a9),_0x3dd99f['mapper']['unbindElementFromMarkerName'](_0x3750a9,_0x340a40['markerName']));}},{'priority':'high'});}),_0x35e383['model']['document']['registerPostFixer'](_0x52bca0=>{let _0x46d4a8=!0x1;const _0xe6803d=Array['from'](_0x35e383['model']['document']['differ']['getChangedMarkers']()),_0x23d33e=new Set();for(const {name:_0x2064ae,data:_0x5d31ec}of _0xe6803d){const {group:_0x4bf46d,type:_0x8ef09b,subType:_0x395cc5,id:_0xe60221}=this['_splitMarkerName'](_0x2064ae);if('suggestion'!==_0x4bf46d)continue;const _0x23ab16=this['_suggestions']['get'](_0xe60221);if(null!=_0x5d31ec['newRange']){'formatInline'==_0x8ef09b&&(_0x46d4a8=_0x46d4a8||Pt(_0x5d31ec['newRange'],_0x2064ae,_0x52bca0,_0x35e383['model']['schema']));const _0x39495f='attribute'==_0x8ef09b&&this['_isBlockAttribute'](_0x395cc5['split']('|')[0x0]);if(_0x5d31ec['newRange']['isCollapsed']||'$graveyard'==_0x5d31ec['newRange']['root']['rootName']||'formatBlock'==_0x8ef09b&&!Ft(_0x5d31ec['newRange'])||_0x39495f&&!Ft(_0x5d31ec['newRange'])||'deletion'==_0x8ef09b&&!(!Vt(_0x374016=_0x5d31ec['newRange'])&&!function(_0x8d139e){return _0x8d139e['start']['parent']==_0x8d139e['end']['nodeBefore']&&_0x8d139e['start']['isAtEnd'];}(_0x374016)))_0x52bca0['removeMarker'](_0x2064ae),_0x46d4a8=!0x0;else{if(!_0x23ab16||!_0x23ab16['isInContent'])continue;if(_0x5d31ec['newRange']&&_0x5d31ec['oldRange']&&_0x5d31ec['newRange']['isEqual'](_0x5d31ec['oldRange']))continue;_0x23d33e['add'](_0x23ab16);}}}var _0x374016;return _0x23d33e['size']>0x0&&(_0x46d4a8=!!this['_joinWithAdjacentSuggestions'](_0x23d33e)||_0x46d4a8),_0x46d4a8;}),_0x35e383['model']['document']['registerPostFixer'](_0x2d0918=>{let _0x53b8e2=!0x1;for(const _0x2a73e8 of _0x35e383['model']['document']['differ']['getChanges']())if('insert'==_0x2a73e8['type'])for(const _0x5404fd of this['_suggestions']['values']()){if(_0x5404fd['isMultiRange']||!_0x5404fd['isInContent'])continue;const _0x5b16a1='formatBlock'==_0x5404fd['type'],_0xd82ddd=this['_getAttributeKey'](_0x5404fd),_0x3fee6b=_0xd82ddd&&this['_isBlockAttribute'](_0xd82ddd);if(!_0x5b16a1&&!_0x3fee6b)continue;const _0x103404=_0x5404fd['getFirstRange']();if(_0x103404['start']['parent']!=_0x103404['end']['parent']&&!_0x103404['end']['isAtEnd']){const _0x5ca1f5=_0x35e383['model']['createPositionAt'](_0x103404['start']['nodeAfter'],'end'),_0xd0c82d=_0x35e383['model']['createRange'](_0x103404['start'],_0x5ca1f5);_0x2d0918['updateMarker'](_0x5404fd['getFirstMarker'](),{'range':_0xd0c82d}),_0x53b8e2=!0x0;}}return _0x53b8e2;}),_0x35e383['model']['document']['registerPostFixer'](_0x1579fb=>this['_processAttributeChanges'](_0x1579fb)),_0x35e383['model']['document']['registerPostFixer'](_0x577533=>!_0x577533['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x577533)),_0x35e383['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x35e383['model']['document']['on']('change:data',(_0x4f83cf,_0x2846e3)=>{if(!_0x2846e3['isLocal']||_0x2846e3['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x567598=_0x35e383['model']['document']['differ']['getChanges']();if(0x0==_0x567598['length'])return;const _0x3aee84=[],_0x113c8a=_0x567598['filter'](_0x7dbdce=>'attribute'==_0x7dbdce['type']),_0x4a57d0=_0x567598['filter'](_0x4aefa1=>'insert'==_0x4aefa1['type']&&'$text'!=_0x4aefa1['name']);for(const _0x2360bb of _0x113c8a)this['_isRegisteredAttribute'](_0x2360bb['attributeKey'])&&_0x3aee84['push']({'key':_0x2360bb['attributeKey'],'newValue':_0x2360bb['attributeNewValue'],'oldValue':_0x2360bb['attributeOldValue'],'range':Lt(_0x2360bb['range'],_0x35e383['model'])});for(const _0x43934a of _0x4a57d0){if('rename'!=_0x43934a['action']&&'refresh'!=_0x43934a['action'])continue;const _0x552ab9=Jt(_0x43934a['position']['nodeAfter'],_0x35e383['model']),_0x23d7be=_0x43934a['before'];'rename'==_0x43934a['action']&&_0x3aee84['push']({'key':m,'newValue':_0x43934a['name'],'oldValue':_0x23d7be['name'],'range':_0x552ab9});for(const [_0x6630c5,_0x2b5d38]of _0x23d7be['attributes']){if(!this['_isRegisteredAttribute'](_0x6630c5))continue;const _0x210a62=_0x43934a['attributes']['get'](_0x6630c5);_0x2b5d38!==_0x210a62&&_0x3aee84['push']({'key':_0x6630c5,'newValue':_0x210a62,'oldValue':_0x2b5d38,'range':_0x552ab9});}for(const [_0x17054b,_0x41f9f2]of _0x43934a['attributes'])this['_isRegisteredAttribute'](_0x17054b)&&(_0x23d7be['attributes']['has'](_0x17054b)||_0x3aee84['push']({'key':_0x17054b,'newValue':_0x41f9f2,'oldValue':null,'range':_0x552ab9}));}0x0!=_0x3aee84['length']&&_0x35e383['model']['enqueueChange'](_0x2846e3,_0x3e109c=>{const _0x9da7f4=_0xb9e80();for(const {range:_0x25b838,key:_0x4db716,oldValue:_0x5eb0f3,newValue:_0x1af549}of _0x3aee84)this['markAttributeChange'](_0x25b838,_0x4db716,_0x5eb0f3,_0x1af549,{'groupId':_0x9da7f4});this['_reduceExistingSuggestions'](_0x3e109c,_0x3aee84);});},{'priority':'lowest'}),_0x35e383['model']['markers']['on']('update:suggestion',(_0x4ef97e,_0x59f38d,_0x4fb1f9)=>{if(null==_0x4fb1f9){const {id:_0x587c2a}=this['_splitMarkerName'](_0x59f38d['name']),_0x3bc427=this['_suggestions']['get'](_0x587c2a);_0x3bc427&&_0x3bc427['addMarkerName'](_0x59f38d['name']);}}),_0x35e383['model']['document']['on']('change:data',()=>{const _0x6cb04f=Array['from'](_0x35e383['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4390cd=>'suggestion'===this['_splitMarkerName'](_0x4390cd['name'])['group']);if(0x0===_0x6cb04f['length'])return;_0x6cb04f['sort']((_0x47e4ae,_0x6b84)=>{const _0x2f26f4=_0x47e4ae['data']['oldRange'],_0x458124=_0x6b84['data']['oldRange'];return null===_0x2f26f4&&null===_0x458124?0x0:null===_0x2f26f4&&null!==_0x458124?-0x1:null!==_0x2f26f4&&null===_0x458124?0x1:_0x2f26f4['start']['isBefore'](_0x458124['start'])?-0x1:0x1;});const _0x4d0486=new Set(),_0x426bd7=new Set();for(const {name:_0x6b21e8,data:_0x29b3a0}of _0x6cb04f){const {id:_0x355596}=this['_splitMarkerName'](_0x6b21e8);if(null===_0x29b3a0['oldRange']){const _0x334db7=this['_handleNewSuggestionMarker'](_0x6b21e8);_0x426bd7['add'](_0x334db7);}else{const _0x397431=this['_suggestions']['get'](_0x355596);null!==_0x29b3a0['newRange']||_0x397431['isInContent']?(_0x4d0486['add'](_0x397431['head']),_0x426bd7['add'](_0x397431)):this['_removeSuggestion'](_0x397431);}}_0x426bd7['size']>0x0&&this['_refreshSuggestionsChain'](_0x426bd7);for(const _0x2eab37 of _0x4d0486)this['fire']('suggestionChanged',_0x2eab37);}),_0x35e383['model']['on']('applyOperation',(_0x2866b2,_0x30d64f)=>{const _0xf5381f=_0x30d64f[0x0];if(!this['_suggestions']['size'])return;if(!_0xf5381f['isDocumentOperation'])return;if(_0xf5381f['batch']['isUndo']||!_0xf5381f['batch']['isLocal'])return;let _0x4c5e7c,_0x4b20a0;switch(_0xf5381f['type']){case'insert':_0x4c5e7c=_0x35e383['model']['createPositionAt'](_0xf5381f['position']),_0x4b20a0=_0x4c5e7c['getShiftedBy'](_0xf5381f['howMany']);break;case'split':_0x4c5e7c=_0x35e383['model']['createPositionAt'](_0xf5381f['splitPosition']),_0x4b20a0=_0x35e383['model']['createPositionAt'](_0xf5381f['moveTargetPosition']);break;case'move':_0x4c5e7c=_0x35e383['model']['createPositionAt'](_0xf5381f['targetPosition']),_0x4b20a0=_0x4c5e7c['getShiftedBy'](_0xf5381f['howMany']);break;default:return;}const _0x45b449=_0x35e383['model']['createRange'](_0x4c5e7c,_0x4b20a0);_0x35e383['model']['change'](()=>{for(const {suggestion:_0x4c016d,meta:_0x50c536}of this['_findSuggestions'](_0x45b449)){if(_0x4c016d['isMultiRange'])continue;if('formatInline'==_0x4c016d['type'])continue;const _0xf08f68=this['_getAttributeKey'](_0x4c016d);if(_0xf08f68&&this['_isBlockAttribute'](_0xf08f68)&&'split'!=_0xf5381f['type'])continue;const _0x1a92e8=_0x4c016d['data']&&_0x4c016d['data']['multipleBlocks'];('formatBlock'!=_0x4c016d['type']||'split'==_0xf5381f['type']&&!_0x1a92e8)&&(_0x50c536['containsRangeInObject']||'insertion'==_0x4c016d['type']&&_0x50c536['isOwn']||_0x4c016d['getFirstRange']()['containsRange'](_0x45b449)&&this['_breakSuggestionMarker'](_0x4c016d,_0x4c5e7c,_0x4b20a0));}});},{'priority':'lowest'}),_0x35e383['model']['on']('deleteContent',(_0x37c930,_0x2776cc)=>{const _0x33152f=_0x2776cc[0x0],_0x36d29a=_0x2776cc[0x1];if(_0x36d29a&&_0x36d29a['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x33152f['isCollapsed'])return;const _0x409e4c=_0x35e383['model']['schema'],{start:_0x4b19e6,end:_0x9f7042}=_0x33152f['getFirstRange'](),_0x1ba93b=_0x4b19e6['nodeAfter']&&_0x409e4c['isLimit'](_0x4b19e6['nodeAfter'])?null:_0x409e4c['getNearestSelectionRange'](_0x4b19e6,'forward'),_0x1cd3fb=_0x9f7042['nodeBefore']&&_0x409e4c['isLimit'](_0x9f7042['nodeBefore'])?null:_0x409e4c['getNearestSelectionRange'](_0x9f7042,'backward'),_0x1f8c5b=_0x35e383['model']['createRange'](_0x1ba93b?_0x1ba93b['start']:_0x4b19e6,_0x1cd3fb?_0x1cd3fb['end']:_0x9f7042);_0x35e383['model']['change'](_0x1c1c5a=>{this['markDeletion'](_0x1f8c5b);const _0x18a269=_0x35e383['model']['schema']['getNearestSelectionRange'](_0x1f8c5b['start']);_0x33152f['is']('documentSelection')?_0x1c1c5a['setSelection'](_0x18a269):_0x33152f['setTo'](_0x18a269);}),_0x37c930['stop']();},{'priority':_0xe00547['normal']+0xa}),_0x35e383['model']['on']('insertContent',(_0x332494,_0x6c6abd)=>{const _0x52e8a8=_0x6c6abd[_0x6c6abd['length']-0x1];_0x52e8a8&&_0x52e8a8['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x35e383['model']['change'](()=>{let _0x59a814=_0x35e383['model']['insertContent'](_0x6c6abd[0x0],_0x6c6abd[0x1],_0x6c6abd[0x2],{'forceDefaultExecution':!0x0});if(!_0x59a814)return;_0x332494['return']=_0x59a814['clone']();const _0x289e5c=_0x59a814['end']['nodeBefore'],_0x1b61f4=_0x35e383['model']['schema'];_0x289e5c&&_0x1b61f4['isBlock'](_0x289e5c)&&!_0x1b61f4['isObject'](_0x289e5c)&&(_0x59a814=_0x35e383['model']['createRange'](_0x59a814['start'],_0x35e383['model']['createPositionAt'](_0x289e5c,'end'))),this['markInsertion'](_0x59a814);}),_0x332494['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4da723=new O(_0x35e383,this['_suggestions']);_0x35e383['commands']['add']('acceptSuggestion',_0x4da723),this['enableCommand']('acceptSuggestion');const _0x5c1ba9=new R(_0x35e383,this['_suggestions']);_0x35e383['commands']['add']('discardSuggestion',_0x5c1ba9),this['enableCommand']('discardSuggestion'),_0x35e383['commands']['add']('acceptAllSuggestions',new x(_0x35e383,_0x4da723,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x35e383['commands']['add']('discardAllSuggestions',new x(_0x35e383,_0x5c1ba9,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x35e383['commands']['add']('acceptSelectedSuggestions',new E(_0x35e383,_0x4da723,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x35e383['commands']['add']('discardSelectedSuggestions',new E(_0x35e383,_0x5c1ba9,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x20cf2e=_0x35e383['plugins']['get']('CommentsRepository');this['listenTo'](_0x20cf2e,'addComment',(_0x21b22c,{threadId:_0xbfbceb})=>{const _0x4e2f4c=this['_suggestions']['get'](_0xbfbceb);_0x4e2f4c&&_0x4e2f4c['commentThread']&&0x1===_0x4e2f4c['commentThread']['length']&&this['_updateSuggestionData'](_0xbfbceb,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x20cf2e,'removeComment',(_0x14fd50,{threadId:_0x3bf6c2})=>{const _0x58561d=this['_suggestions']['get'](_0x3bf6c2);_0x58561d&&_0x58561d['commentThread']&&!_0x58561d['commentThread']['length']&&this['_updateSuggestionData'](_0x3bf6c2,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x960b53){const _0x2e7386=_0x76c1ec([0x31,0x6e,0x53,0x6a,0x4c,0x4e,0x32,0x39,0x62,0x6f,0x52,0x4b,0x30,0x48,0x71,0x65,0x58,0x6b,0x77,0x47,0x44,0x7a,0x6d,0x33,0x54,0x74,0x42,0x37,0x56,0x5a,0x72,0x45,0x36,0x51,0x61,0x66,0x79,0x67,0x69,0x4a,0x68,0x63,0x75,0x35,0x4f,0x38,0x49,0x64,0x57,0x43,0x76,0x55,0x34,0x73,0x4d,0x46,0x6c,0x59,0x50,0x70,0x78,0x41]),_0x16d4dc=0x3786288c,_0x5da60a=0x37817f74^_0x16d4dc,_0xe1a5eb=window[_0x76c1ec([0x44,0x61,0x74,0x65])][_0x76c1ec([0x6e,0x6f,0x77])](),_0xdb9936=_0x960b53[_0x76c1ec([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x472c76=new window[(_0x76c1ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b5dbe=>{_0xdb9936[_0x76c1ec([0x6f,0x6e,0x63,0x65])](_0x76c1ec([0x72,0x65,0x61,0x64,0x79]),_0x2b5dbe);}),_0x1cc9ae={[_0x76c1ec([0x6b,0x74,0x79])]:_0x76c1ec([0x45,0x43]),[_0x76c1ec([0x75,0x73,0x65])]:_0x76c1ec([0x73,0x69,0x67]),[_0x76c1ec([0x63,0x72,0x76])]:_0x76c1ec([0x50,0x2d,0x32,0x35,0x36]),[_0x76c1ec([0x78])]:_0x76c1ec([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]),[_0x76c1ec([0x79])]:_0x76c1ec([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]),[_0x76c1ec([0x61,0x6c,0x67])]:_0x76c1ec([0x45,0x53,0x32,0x35,0x36])},_0x4beee1=_0xdb9936[_0x76c1ec([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x76c1ec([0x67,0x65,0x74])](_0x76c1ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x33048f(){let _0x135c6f,_0x4e230e=null,_0x32feec=null;try{if(_0x4beee1==_0x76c1ec([0x47,0x50,0x4c]))return _0x76c1ec([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x135c6f=_0x12651c(),!_0x135c6f)return _0x76c1ec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x135c6f[_0x76c1ec([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x32feec=_0x9860ea(_0x135c6f[_0x76c1ec([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x135c6f[_0x76c1ec([0x6a,0x74,0x69])])),await _0x578564()?_0x2d4571()?_0x238ef8()?_0x76c1ec([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x407571()?(_0x135c6f[_0x76c1ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x76c1ec([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4e230e=_0x4a2491(_0x76c1ec([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x135c6f[_0x76c1ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x76c1ec([0x74,0x72,0x69,0x61,0x6c])&&(_0x4e230e=_0x4a2491(_0x76c1ec([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x135c6f[_0x76c1ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x76c1ec([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x4e230e=_0x4a2491(_0x76c1ec([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x318083()):_0x76c1ec([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x76c1ec([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x76c1ec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x382c5b){return _0x76c1ec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x238ef8(){const _0x153826=[_0x76c1ec([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x76c1ec([0x74,0x72,0x69,0x61,0x6c])][_0x76c1ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x135c6f[_0x76c1ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xe1a5eb/0x3e8:0xe10*_0x5da60a;return _0x135c6f[_0x76c1ec([0x65,0x78,0x70])]<_0x153826;}function _0x2d4571(){const _0x1973a0=_0x135c6f[_0x76c1ec([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1973a0&&(!!_0x1973a0[_0x76c1ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x76c1ec([0x2a]))||(!!_0x1973a0[_0x76c1ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x76c1ec([0x54,0x43]))||!(!_0x1973a0[_0x76c1ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x76c1ec([0x52,0x54,0x43]))||!_0x337dd3())));}function _0x407571(){const _0x4fb7ff=_0x135c6f[_0x76c1ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4fb7ff||0x0==_0x4fb7ff[_0x76c1ec([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1f93fa}=new URL(window[_0x76c1ec([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4fb7ff[_0x76c1ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f93fa))return!0x0;const _0x288b10=_0x1f93fa[_0x76c1ec([0x73,0x70,0x6c,0x69,0x74])](_0x76c1ec([0x2e]));return _0x4fb7ff[_0x76c1ec([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x93cf97=>_0x93cf97[_0x76c1ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x76c1ec([0x2a])))[_0x76c1ec([0x6d,0x61,0x70])](_0x4f9532=>_0x4f9532[_0x76c1ec([0x73,0x70,0x6c,0x69,0x74])](_0x76c1ec([0x2e])))[_0x76c1ec([0x73,0x6f,0x6d,0x65])](_0x91ed6f=>_0x288b10[_0x76c1ec([0x65,0x76,0x65,0x72,0x79])]((_0x21651e,_0x3b235e)=>_0x91ed6f[_0x3b235e]===_0x21651e||_0x91ed6f[_0x3b235e]===_0x76c1ec([0x2a])));}function _0x318083(){return _0x4e230e&&_0x32feec?new window[(_0x76c1ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x25b141,_0x7525ee)=>{_0x4e230e[_0x76c1ec([0x74,0x68,0x65,0x6e])](_0x25b141,_0x7525ee),_0x32feec[_0x76c1ec([0x74,0x68,0x65,0x6e])](_0x40d684=>{_0x40d684!=_0x76c1ec([0x56,0x61,0x6c,0x69,0x64])&&_0x25b141(_0x40d684);},_0x7525ee);}):_0x4e230e||_0x32feec||_0x76c1ec([0x56,0x61,0x6c,0x69,0x64]);}}function _0x9860ea(_0x4cbb4c,_0x57db82){return new window[(_0x76c1ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x196da9=>{if(_0x2f9fe3())return _0x196da9(_0x76c1ec([0x56,0x61,0x6c,0x69,0x64]));_0x17a7ae(),_0xdb9936[_0x76c1ec([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x76c1ec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x14b644=!0x1;const _0x29095c=_0xb9e80();function _0x2ef64b(_0x4904f1){return!!_0x4904f1&&(typeof _0x4904f1===_0x76c1ec([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4904f1===_0x76c1ec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4904f1[_0x76c1ec([0x74,0x68,0x65,0x6e])]===_0x76c1ec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4904f1[_0x76c1ec([0x63,0x61,0x74,0x63,0x68])]===_0x76c1ec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x24090d(_0x34af2b){_0x7fb535(_0x34af2b)[_0x76c1ec([0x74,0x68,0x65,0x6e])](_0x57fadf=>{if(!_0x57fadf||_0x57fadf[_0x76c1ec([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x76c1ec([0x6f,0x6b]))return _0x76c1ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x17c61a(_0x3c1342(_0x29095c+_0x57db82))!=_0x57fadf[_0x76c1ec([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x76c1ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x76c1ec([0x56,0x61,0x6c,0x69,0x64]);})[_0x76c1ec([0x74,0x68,0x65,0x6e])](_0xfbe5b8=>(_0x2cde41(),_0xfbe5b8),()=>{const _0x58ee8e=_0x4812d7();return null==_0x58ee8e?(_0x2cde41(),_0x76c1ec([0x56,0x61,0x6c,0x69,0x64])):_0x76c1ec(_0xe1a5eb-_0x58ee8e>(0x138aac8c^_0x16d4dc)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x76c1ec([0x74,0x68,0x65,0x6e])](_0x196da9)[_0x76c1ec([0x63,0x61,0x74,0x63,0x68])](()=>{_0x196da9(_0x76c1ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x21434d=0x37b0c60c^_0x16d4dc;function _0x2cde41(){const _0x466b67=_0x76c1ec([0x6c,0x6c,0x63,0x74,0x2d])+_0x17c61a(_0x3c1342(_0x4cbb4c)),_0x44a863=_0x716317(_0x17c61a(window[_0x76c1ec([0x4d,0x61,0x74,0x68])][_0x76c1ec([0x63,0x65,0x69,0x6c])](_0xe1a5eb/_0x21434d)));window[_0x76c1ec([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x76c1ec([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x466b67,_0x44a863);}function _0x4812d7(){const _0x171dfe=_0x76c1ec([0x6c,0x6c,0x63,0x74,0x2d])+_0x17c61a(_0x3c1342(_0x4cbb4c)),_0x3d623a=window[_0x76c1ec([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x76c1ec([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x171dfe);return _0x3d623a?window[_0x76c1ec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x716317(_0x3d623a),0x10)*_0x21434d:null;}function _0x7fb535(_0x125608){return new window[(_0x76c1ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6d7710,_0x4ee1ea)=>{_0x125608[_0x76c1ec([0x74,0x68,0x65,0x6e])](_0x6d7710,_0x4ee1ea),window[_0x76c1ec([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4ee1ea,0x3787fc4c^_0x16d4dc);});}}_0xdb9936[_0x76c1ec([0x6f,0x6e])](_0x76c1ec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4f1a9e,_0xc52306)=>{if(_0xc52306[0x0]!=_0x4cbb4c)return _0x196da9(_0x76c1ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xc52306[0x1]={..._0xc52306[0x1],[_0x76c1ec([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x29095c};},{[_0x76c1ec([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x76c1ec([0x68,0x69,0x67,0x68])}),_0xdb9936[_0x76c1ec([0x6f,0x6e])](_0x76c1ec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x411424=>{_0x2ef64b(_0x411424[_0x76c1ec([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x14b644=!0x0,_0x24090d(_0x411424[_0x76c1ec([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x76c1ec([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x76c1ec([0x6c,0x6f,0x77])}),_0x472c76[_0x76c1ec([0x74,0x68,0x65,0x6e])](()=>{_0x14b644||_0x196da9(_0x76c1ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2f9fe3(){return _0xdb9936[_0x76c1ec([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x76c1ec([0x76,0x69,0x65,0x77])][_0x76c1ec([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x76c1ec([0x61,0x75,0x74,0x6f]);}function _0x17a7ae(){_0xdb9936[_0x76c1ec([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x76c1ec([0x76,0x69,0x65,0x77])][_0x76c1ec([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x76c1ec([0x61,0x75,0x74,0x6f]);}}function _0x4a2491(_0x210330){const _0x280b46=[new window[(_0x76c1ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d12ea=>setTimeout(_0x4d12ea,0x378f1640^_0x16d4dc)),_0x472c76[_0x76c1ec([0x74,0x68,0x65,0x6e])](()=>new window[(_0x76c1ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe5ce37=>{let _0x3f8231=0x0;_0xdb9936[_0x76c1ec([0x6d,0x6f,0x64,0x65,0x6c])][_0x76c1ec([0x6f,0x6e])](_0x76c1ec([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x25bd2b,_0x1a83f9)=>{_0x1a83f9[0x0][_0x76c1ec([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3f8231++,_0x3f8231==(0x37862974^_0x16d4dc)&&(_0xe5ce37(),_0x25bd2b[_0x76c1ec([0x6f,0x66,0x66])]());});}))];return window[_0x76c1ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x76c1ec([0x72,0x61,0x63,0x65])](_0x280b46)[_0x76c1ec([0x74,0x68,0x65,0x6e])](()=>_0x210330);}async function _0x40d6f3(){await _0x472c76,_0xdb9936[_0x76c1ec([0x6d,0x6f,0x64,0x65,0x6c])][_0x76c1ec([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x63c05b,_0xdb9936[_0x76c1ec([0x6d,0x6f,0x64,0x65,0x6c])][_0x76c1ec([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x63c05b,_0xdb9936[_0x76c1ec([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x76c1ec([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x337dd3(){return _0x50eb6b(_0x76c1ec([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x250daf(_0x76c1ec([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x76c1ec([0x73,0x74,0x61,0x74,0x65])]==_0x76c1ec([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4d666e(_0x578510){const _0x20d30e=_0x46bd5f();_0xdb9936[_0x20d30e]=_0x76c1ec([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x578510,_0x578510!=_0x76c1ec([0x56,0x61,0x6c,0x69,0x64])&&_0x40d6f3();}function _0x46bd5f(){const _0x496692=window[_0x76c1ec([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x76c1ec([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x76c1ec([0x6e,0x6f,0x77])]())[_0x76c1ec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x76c1ec([0x2e]),'');let _0x13f39d=_0x76c1ec([0x6e]);for(let _0x4433cb=0x0;_0x4433cb<_0x496692[_0x76c1ec([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4433cb+=0x2){let _0x1aab7c=window[_0x76c1ec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x496692[_0x76c1ec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4433cb,_0x4433cb+0x2));_0x1aab7c>=_0x2e7386[_0x76c1ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1aab7c-=_0x2e7386[_0x76c1ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x13f39d+=_0x2e7386[_0x1aab7c];}return _0x13f39d;}function _0x12651c(){const _0x4a2b3f=_0x4beee1[_0x76c1ec([0x73,0x70,0x6c,0x69,0x74])](_0x76c1ec([0x2e]));if(0x3!=_0x4a2b3f[_0x76c1ec([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x311da8(_0x4a2b3f[0x1]);function _0x311da8(_0x36d873){const _0x7755c0=_0x1cc9db(_0x36d873);return _0x7755c0&&_0x11bff7()?_0x7755c0:null;function _0x11bff7(){const _0x309d90=_0x7755c0[_0x76c1ec([0x6a,0x74,0x69])],_0x4d28d4=window[_0x76c1ec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x309d90[_0x76c1ec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x309d90[_0x76c1ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4451cd={..._0x7755c0,[_0x76c1ec([0x6a,0x74,0x69])]:_0x309d90[_0x76c1ec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x309d90[_0x76c1ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4451cd[_0x76c1ec([0x76,0x63])],_0x3c1342(_0x4451cd)==_0x4d28d4;}}}async function _0x578564(){let _0x2f7974=!0x0;try{const _0x500558=_0x4beee1[_0x76c1ec([0x73,0x70,0x6c,0x69,0x74])](_0x76c1ec([0x2e])),[_0x48369d,_0x406d29,_0x10aabe]=_0x500558;return _0x313e13(_0x48369d),await _0x23a4de(_0x48369d,_0x406d29,_0x10aabe),_0x2f7974;}catch(_0x7e900a){return!0x1;}function _0x313e13(_0x4eb5bc){const _0x280364=_0x1cc9db(_0x4eb5bc);_0x280364&&_0x280364[_0x76c1ec([0x61,0x6c,0x67])]==_0x76c1ec([0x45,0x53,0x32,0x35,0x36])||(_0x2f7974=!0x1);}async function _0x23a4de(_0x3a898f,_0x10c31d,_0x48566f){const _0x231278=window[_0x76c1ec([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x76c1ec([0x66,0x72,0x6f,0x6d])](_0x15fa56(_0x48566f),_0x4252f0=>_0x4252f0[_0x76c1ec([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x18b66a=new window[(_0x76c1ec([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x76c1ec([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3a898f+_0x76c1ec([0x2e])+_0x10c31d),_0x250c82=window[_0x76c1ec([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x76c1ec([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x250c82)return;const _0x22dcee=await _0x250c82[_0x76c1ec([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x76c1ec([0x6a,0x77,0x6b]),_0x1cc9ae,{[_0x76c1ec([0x6e,0x61,0x6d,0x65])]:_0x76c1ec([0x45,0x43,0x44,0x53,0x41]),[_0x76c1ec([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x76c1ec([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x76c1ec([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x250c82[_0x76c1ec([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x76c1ec([0x6e,0x61,0x6d,0x65])]:_0x76c1ec([0x45,0x43,0x44,0x53,0x41]),[_0x76c1ec([0x68,0x61,0x73,0x68])]:{[_0x76c1ec([0x6e,0x61,0x6d,0x65])]:_0x76c1ec([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x22dcee,_0x231278,_0x18b66a)||(_0x2f7974=!0x1);}}function _0x1cc9db(_0x56ab08){return _0x56ab08[_0x76c1ec([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x76c1ec([0x65,0x79]))?JSON[_0x76c1ec([0x70,0x61,0x72,0x73,0x65])](_0x15fa56(_0x56ab08)):null;}function _0x15fa56(_0x1d39f8){return window[_0x76c1ec([0x61,0x74,0x6f,0x62])](_0x1d39f8[_0x76c1ec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x76c1ec([0x2b]))[_0x76c1ec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x76c1ec([0x2f])));}function _0x3c1342(_0x9b1ecd){let _0x24de80=0x1505;function _0x30223e(_0x12e6ef){for(let _0x123405=0x0;_0x123405<_0x12e6ef[_0x76c1ec([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x123405++){const _0x35ae9d=_0x12e6ef[_0x76c1ec([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x123405);_0x24de80=(_0x24de80<<0x5)+_0x24de80+_0x35ae9d,_0x24de80&=_0x24de80;}}function _0x47d368(_0x542072){Array[_0x76c1ec([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x542072)?_0x542072[_0x76c1ec([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x47d368):_0x542072&&typeof _0x542072==_0x76c1ec([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x76c1ec([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x542072)[_0x76c1ec([0x73,0x6f,0x72,0x74])]()[_0x76c1ec([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1b5729,_0x481b67])=>{_0x30223e(_0x1b5729),_0x47d368(_0x481b67);}):_0x30223e(window[_0x76c1ec([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x542072));}return _0x47d368(_0x9b1ecd),_0x24de80>>>0x0;}function _0x17c61a(_0x271e7d){return _0x271e7d[_0x76c1ec([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x76c1ec([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x76c1ec([0x30]));}function _0x716317(_0x518e10){return _0x518e10[_0x76c1ec([0x73,0x70,0x6c,0x69,0x74])]('')[_0x76c1ec([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x76c1ec([0x6a,0x6f,0x69,0x6e])]('');}function _0x50eb6b(_0x3a71e3){return _0xdb9936[_0x76c1ec([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x76c1ec([0x68,0x61,0x73])](_0x3a71e3);}function _0x250daf(_0x2995bc){return _0xdb9936[_0x76c1ec([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x76c1ec([0x67,0x65,0x74])](_0x2995bc);}function _0x63c05b(){}function _0x76c1ec(_0x7e69d5){return _0x7e69d5['map'](_0xfd7570=>String['fromCharCode'](_0xfd7570))['join']('');}_0x4d666e(await _0x33048f());}(this);}set['adapter'](_0xab7028){if(this['_adapter'])throw new _0x1ac58c('track-changes-adapter-already-set',this);this['_adapter']=_0xab7028;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1529ce=!0x1,toJSON:_0x5518f3=!0x1}={}){const _0x5ecfc4=[];for(const _0x52192a of this['_suggestions']['values']())_0x1529ce&&!_0x52192a['isInContent']||_0x5ecfc4['push'](_0x52192a);return _0x5518f3?_0x5ecfc4['map'](_0x57d02b=>_0x57d02b['toJSON']()):_0x5ecfc4;}['getSuggestion'](_0x3f32bc){const _0x12def5=this['_suggestions']['get'](_0x3f32bc);if(!_0x12def5)throw new _0x1ac58c('track-changes-suggestion-not-found',this);return _0x12def5;}['hasSuggestion'](_0xd0a9ab){return this['_suggestions']['has'](_0xd0a9ab);}['addSuggestionData'](_0x1cfd7c){const {authorId:_0x7a3535,id:_0x12db86,attributes:_0x41479c}=_0x1cfd7c,[_0x1049bc,_0xdb93e3]=_0x1cfd7c['type']['split'](':'),_0x3103eb=this['_suggestions']['get'](_0x12db86)||this['_createSuggestion'](_0x1049bc,_0xdb93e3,_0x12db86,_0x7a3535,_0x41479c);if(this['_addThreadToSuggestion'](_0x3103eb),this['_checkSuggestionCorrectness'](_0x3103eb,_0x1049bc,_0xdb93e3||null,_0x7a3535),_0x3103eb['createdAt']=_0x1cfd7c['createdAt'],_0x3103eb['_isDataLoaded']=!0x0,_0x41479c&&_0x41479c['@external']){const _0x353cde=_0x41479c['@external'],_0x3464ea=this['_getExternalAuthor'](_0x353cde['authorName']);_0x3103eb['authoredAt']=_0x353cde['createdAt'],_0x3103eb['author']=_0x3464ea,_0x3103eb['isExternal']=!0x0;}else _0x3103eb['authoredAt']=_0x1cfd7c['createdAt'];switch(_0x1cfd7c['data']&&(_0x3103eb['data']=_0x1cfd7c['data']),_0x1cfd7c['attributes']&&(_0x3103eb['attributes']=_0x1cfd7c['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3103eb['_saved']=!0x0),this['_suggestionState']['get'](_0x3103eb)){case'notReady':this['_suggestionState']['set'](_0x3103eb,'dataReady');break;case'markerReady':_0x3103eb['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3103eb])),this['_refreshSuggestionsChain'](new Set([_0x3103eb])),this['_suggestionState']['set'](_0x3103eb,'ready'),this['fire']('suggestionLoaded',_0x3103eb)):this['_suggestionState']['set'](_0x3103eb,'removed');}return _0x3103eb;}['acceptSuggestion'](_0x120d15){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x58762e of _0x120d15['getAllAdjacentSuggestions']())_0x58762e['accept']();});});}['discardSuggestion'](_0x3a16f9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x16cc9e of _0x3a16f9['getAllAdjacentSuggestions']())_0x16cc9e['discard']();});});}['enableCommand'](_0x1b130e,_0x11d776){const _0x3bd327=this['editor']['commands']['get'](_0x1b130e);if(!_0x3bd327)throw new _0x1ac58c('track-changes-command-not-found',this,{'commandName':_0x1b130e});if(this['_enabledCommands']['has'](_0x3bd327))throw new _0x1ac58c('track-changes-enable-command-twice',this,{'commandName':_0x1b130e});this['_enabledCommands']['add'](_0x3bd327),_0x11d776&&_0x3bd327['on']('execute',(_0x518cd4,_0x8ad2a3)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x8ad2a3['length']>0x0&&_0x8ad2a3[_0x8ad2a3['length']-0x1]&&_0x8ad2a3[_0x8ad2a3['length']-0x1]['forceDefaultExecution']?_0x8ad2a3['pop']():(_0x518cd4['return']=_0x11d776((..._0xec6a43)=>_0x3bd327['execute'](..._0xec6a43,{'forceDefaultExecution':!0x0}),..._0x8ad2a3),_0x518cd4['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4a36b6){let _0x586619,_0x4d34ba;const _0x965703=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x586619=_0x4a36b6();}catch(_0x21d1b7){_0x4d34ba=_0x21d1b7;}return _0x965703||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4d34ba&&_0x1ac58c['rethrowUnexpectedError'](_0x4d34ba,this),_0x586619;}['markInsertion'](_0x1441ed,_0x5e94f9=null,_0x55557a={}){if(_0x1441ed['isCollapsed'])return null;const _0x286975=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x109c3b,meta:_0x1d2c16}of this['_findSuggestions'](_0x1441ed,'insertion'))if(_0x1d2c16['isOwn']){if(!_0x1d2c16['isNextTo']){if(_0x1d2c16['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x109c3b,_0x55557a))continue;return _0x109c3b;}if(zt(_0x109c3b,_0x55557a))return _0x109c3b;this['_breakSuggestionMarker'](_0x109c3b,_0x1441ed['start'],_0x1441ed['end']);break;}if(_0x5e94f9==_0x109c3b['subType']&&zt(_0x109c3b,_0x55557a)){const _0x2a1967=_0x109c3b['getFirstRange']();return _0x2a1967['start']['isEqual'](_0x1441ed['end'])?this['_setSuggestionRange'](_0x109c3b,this['_model']['createRange'](_0x1441ed['start'],_0x2a1967['end'])):this['_setSuggestionRange'](_0x109c3b,this['_model']['createRange'](_0x2a1967['start'],_0x1441ed['end'])),_0x109c3b;}}const _0x11f172=_0xb9e80(),_0xb4b92d=_0x286975['id'],_0x19530a=_0x5e94f9?'insertion:'+_0x5e94f9:'insertion',_0x17d097=this['_setSuggestionData']({'id':_0x11f172,'type':_0x19530a,'createdAt':new Date(),'authorId':_0xb4b92d,'attributes':_0x55557a});return this['_addSuggestionMarker'](_0x19530a,_0x11f172,_0xb4b92d,_0x1441ed),_0x17d097;}['markMultiRangeInsertion'](_0x3fb594,_0x4a70d8='multi',_0x6bc1c9={}){const _0x8b723c=this['editor']['plugins']['get']('Users')['me'],_0x2929c7=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4a70d8,'join');for(const _0x37fca3 of this['getSuggestions']())if(_0x37fca3['author']['id']==_0x8b723c['id']&&'insertion'==_0x37fca3['type']&&_0x37fca3['subType']==_0x4a70d8&&zt(_0x37fca3,_0x6bc1c9)&&(_0x2929c7(_0x37fca3['getRanges'](),_0x3fb594)||_0x2929c7(_0x3fb594,_0x37fca3['getRanges']()))){for(const _0x42a639 of _0x3fb594)_0x37fca3['addRange'](_0x42a639);return _0x37fca3;}for(const {suggestion:_0xe04321,meta:_0x17489e}of this['_findSuggestions'](_0x3fb594,'insertion')){if(!_0x17489e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x17489e['containsRangeInObject'])continue;if(!zt(_0xe04321,_0x6bc1c9))continue;let _0x26d4d0=!0x0;for(const _0xbfec45 of _0xe04321['getRanges']())for(const _0x228f44 of _0x3fb594)if(!_0xbfec45['containsRange'](_0x228f44)){_0x26d4d0=!0x1;break;}if(_0x26d4d0)return _0xe04321;}const _0x554758=_0xb9e80(),_0x247888=_0x8b723c['id'],_0x46cc21='insertion:'+_0x4a70d8,_0x2ac967=this['_setSuggestionData']({'id':_0x554758,'type':_0x46cc21,'createdAt':new Date(),'authorId':_0x247888,'attributes':_0x6bc1c9});for(const _0x1e8e2f of _0x3fb594)this['_addSuggestionMarker'](_0x46cc21,_0x554758,_0x247888,_0x1e8e2f,u['getMultiRangeId']());return _0x2ac967;}['markInlineFormat'](_0x4dd38e,_0x2b2f9a,_0x460fdc=null,_0x5be923={}){if(_0x460fdc=_0x460fdc||Gt(_0x2b2f9a),_0x4dd38e['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5c0e79=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x460fdc,'accept');return this['forceDefaultExecution'](()=>_0x5c0e79([_0x4dd38e],_0x2b2f9a,_0x5be923)),null;}const _0x442f74=this['editor']['plugins']['get']('Users')['me'],_0x331812=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5bc958,meta:_0xe9c38a}of this['_findSuggestions'](_0x4dd38e,'insertion'))_0xe9c38a['isOwn']&&!_0xe9c38a['isInsideObject']&&_0x331812['push'](..._0x5bc958['getRanges']());}const _0xe3379e=function(_0x3495d0,_0x5bb00d){const _0x34331f=[];for(const _0x545bd4 of _0x5bb00d){const _0x464ced=_0x3495d0['getIntersection'](_0x545bd4);_0x464ced&&_0x34331f['push'](_0x464ced);}return _0x34331f;}(_0x4dd38e,_0x331812),_0x3a7969=function(_0x16db2d,_0x137e97){const _0x456ec3=[_0x16db2d];for(const _0x8f2b76 of _0x137e97){let _0x146fa0=0x0;for(;_0x146fa0<_0x456ec3['length'];){const _0x35e29c=_0x456ec3[_0x146fa0]['getDifference'](_0x8f2b76);_0x456ec3['splice'](_0x146fa0,0x1,..._0x35e29c),_0x146fa0+=_0x35e29c['length'];}}return _0x456ec3;}(_0x4dd38e,_0x331812);_0xe3379e['length']&&this['_model']['change'](()=>{for(const _0x151c94 of _0xe3379e){const _0x5d20cf=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x460fdc,'accept');this['forceDefaultExecution'](()=>_0x5d20cf([_0x151c94],_0x2b2f9a,_0x5be923));}});for(const _0x4ce756 of _0x3a7969){let _0x4aaadf=null,_0xf3c447=_0x4ce756['start'],_0xf60c3=_0x4ce756['end'];for(const {suggestion:_0x203789,meta:_0x10bf06}of this['_findSuggestions'](_0x4ce756,'formatInline')){if(!_0x10bf06['isOwn'])continue;if(_0x203789['subType']!=_0x460fdc)continue;if(!zt(_0x203789,_0x5be923))continue;const _0x1865a4=_0x203789['getFirstRange']();if(_0x1865a4['containsRange'](_0x4ce756,!0x0))return null;_0xf3c447=_0xf3c447['isBefore'](_0x1865a4['start'])?_0xf3c447:_0x1865a4['start'],_0xf60c3=_0xf60c3['isAfter'](_0x1865a4['end'])?_0xf60c3:_0x1865a4['end'],_0x4aaadf?_0x1865a4['start']['isBefore'](_0x4aaadf['getFirstRange']()['start'])?(_0x4aaadf['removeMarkers'](),_0x4aaadf=_0x203789):_0x203789['removeMarkers']():_0x4aaadf=_0x203789;}const _0xd77b32=this['_model']['createRange'](_0xf3c447,_0xf60c3);if(_0x4aaadf)this['_setSuggestionRange'](_0x4aaadf,_0xd77b32);else{const _0x33fab6=_0xb9e80(),_0x581a80=_0x442f74['id'];this['_setSuggestionData']({'id':_0x33fab6,'type':'formatInline:'+_0x460fdc,'data':_0x2b2f9a,'createdAt':new Date(),'authorId':_0x581a80,'attributes':_0x5be923}),this['_addSuggestionMarker']('formatInline:'+_0x460fdc,_0x33fab6,_0x581a80,_0xd77b32);}}return null;}['markBlockFormat'](_0x3991ef,_0x267560,_0x3e220d=[],_0x146442=null,_0x94b190={}){_0x267560['formatGroupId']||(_0x267560['formatGroupId']=_0x267560['commandName']),_0x267560['multipleBlocks']=_0x3991ef['is']('range'),_0x146442=_0x146442||Gt(_0x267560);const _0x152d3d=_0x3e220d['map'](_0x711904=>Jt(_0x711904,this['_model'])),_0x10e788=_0x3991ef['is']('range')?_0x3991ef:Jt(_0x3991ef,this['_model']);if('never'===this['_trackFormatChanges']){const _0x260288=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x146442,'accept');return this['forceDefaultExecution'](()=>_0x260288([_0x10e788],_0x267560,_0x94b190)),null;}_0x152d3d['push'](_0x10e788);let _0x568074=!0x0;for(const _0x494ef1 of _0x152d3d)if(!this['_rangeIsInLocalUserInsertion'](_0x494ef1)){_0x568074=!0x1;break;}if(_0x568074&&'always'!==this['_trackFormatChanges']){const _0x4ed6f2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x146442,'accept');return this['forceDefaultExecution'](()=>_0x4ed6f2([_0x10e788],_0x267560,_0x94b190)),null;}let _0xe8be4f=null,_0x45cee4=_0x10e788['start'],_0x51c95b=_0x10e788['end'];for(const {suggestion:_0x1fe0a1,meta:_0x5b09e9}of this['_findSuggestions'](_0x10e788,'formatBlock')){if(!_0x5b09e9['isOwn'])continue;if(_0x5b09e9['isNextTo']||_0x5b09e9['containsRangeInObject']||_0x5b09e9['isInsideObject'])continue;if(_0x1fe0a1['data']['formatGroupId']!=_0x267560['formatGroupId'])continue;if(!zt(_0x1fe0a1,_0x94b190))continue;const _0x23efb0=_0x1fe0a1['getFirstRange']();if(_0x1fe0a1['subType']==_0x146442){if(_0x23efb0['containsRange'](_0x10e788,!0x0))return null;_0x45cee4=_0x45cee4['isBefore'](_0x23efb0['start'])?_0x45cee4:_0x23efb0['start'],_0x51c95b=_0x51c95b['isAfter'](_0x23efb0['end'])?_0x51c95b:_0x23efb0['end'],_0xe8be4f?_0x23efb0['start']['isBefore'](_0xe8be4f['getFirstRange']()['start'])?(_0xe8be4f['removeMarkers'](),_0xe8be4f=_0x1fe0a1):_0x1fe0a1['removeMarkers']():_0xe8be4f=_0x1fe0a1;}else{const _0x947ced=_0x10e788['getIntersection'](_0x23efb0);this['_cutOutSuggestionMarker'](_0x1fe0a1,_0x947ced);}}const _0xc16e5d=this['editor']['plugins']['get']('Users')['me'],_0x31a7e6=_0xb9e80(),_0x3c65a3=_0xc16e5d['id'];if(_0xe8be4f)return this['_setSuggestionRange'](_0xe8be4f,this['_model']['createRange'](_0x45cee4,_0x51c95b)),_0xe8be4f;{const _0x5d1f56=this['_setSuggestionData']({'id':_0x31a7e6,'type':'formatBlock:'+_0x146442,'data':_0x267560,'createdAt':new Date(),'authorId':_0x3c65a3,'attributes':_0x94b190});return this['_addSuggestionMarker']('formatBlock:'+_0x146442,_0x31a7e6,_0x3c65a3,this['_model']['createRange'](_0x45cee4,_0x51c95b)),_0x5d1f56;}}['markMultiRangeBlockFormat'](_0x36d445,_0x36dd11,_0x43ac73=[],_0x56a57c=null,_0x52f760={}){_0x36dd11['formatGroupId']||(_0x36dd11['formatGroupId']=_0x36dd11['commandName']);const _0x86122e=_0x36d445[0x0];_0x36dd11['multipleBlocks']=_0x86122e['is']('range'),_0x56a57c=_0x56a57c||Gt(_0x36dd11);const _0x54e27d=_0x43ac73['map'](_0x33fe34=>Jt(_0x33fe34,this['_model'])),_0x69c33f=_0x86122e['is']('range')?_0x36d445:_0x36d445['map'](_0x5151ab=>Jt(_0x5151ab,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2e4a0d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x56a57c,'accept');return this['forceDefaultExecution'](()=>_0x2e4a0d(_0x69c33f,_0x36dd11,_0x52f760)),null;}_0x54e27d['push'](..._0x69c33f);let _0x527fd3=!0x0;for(const _0x43427f of _0x54e27d)if(!this['_rangeIsInLocalUserInsertion'](_0x43427f)){_0x527fd3=!0x1;break;}if(_0x527fd3&&'always'!==this['_trackFormatChanges']){const _0x3913b7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x56a57c,'accept');return this['forceDefaultExecution'](()=>_0x3913b7(_0x69c33f,_0x36dd11,_0x52f760)),null;}const _0x5ca16c=this['editor']['plugins']['get']('Users')['me'];for(const _0x202ea9 of this['getSuggestions']()){if(_0x202ea9['author']['id']!=_0x5ca16c['id'])continue;if('formatBlock'!=_0x202ea9['type']||_0x202ea9['data']['formatGroupId']!=_0x36dd11['formatGroupId'])continue;if(!zt(_0x202ea9,_0x52f760))continue;const _0x6cc88a=_0x202ea9['subType']==_0x56a57c;for(let _0x3dcddb=0x0;_0x3dcddb<_0x69c33f['length'];_0x3dcddb++){const _0x4c0bdf=_0x69c33f[_0x3dcddb];for(const _0x5f1cf4 of _0x202ea9['getMarkers']()){const _0x5251b2=_0x5f1cf4['getRange']();if(_0x4c0bdf['isEqual'](_0x5251b2)){_0x6cc88a?(_0x69c33f['splice'](_0x3dcddb,0x1),_0x3dcddb--):_0x202ea9['removeMarker'](_0x5f1cf4['name']);break;}}}}if(0x0==_0x69c33f['length'])return null;const _0x3b5557=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x56a57c,'join');for(const _0x5530a5 of this['getSuggestions']())if(_0x5530a5['author']['id']==_0x5ca16c['id']&&'formatBlock'==_0x5530a5['type']&&_0x5530a5['data']['formatGroupId']==_0x36dd11['formatGroupId']&&_0x5530a5['subType']==_0x56a57c&&zt(_0x5530a5,_0x52f760)&&(_0x3b5557(_0x5530a5['getRanges'](),_0x69c33f)||_0x3b5557(_0x69c33f,_0x5530a5['getRanges']()))){for(const _0x1b359d of _0x69c33f)_0x5530a5['addRange'](_0x1b359d);return _0x5530a5;}const _0x48e440=_0xb9e80(),_0x1caa83=_0x5ca16c['id'],_0x50dfd5='formatBlock:'+_0x56a57c,_0x473e68=this['_setSuggestionData']({'id':_0x48e440,'type':_0x50dfd5,'data':_0x36dd11,'createdAt':new Date(),'authorId':_0x1caa83,'attributes':_0x52f760});for(const _0x4baf13 of _0x69c33f)this['_addSuggestionMarker'](_0x50dfd5,_0x48e440,_0x1caa83,_0x4baf13,u['getMultiRangeId']());return _0x473e68;}['markDeletion'](_0x46ce34,_0x2bdab5=null,_0x1f8d99={}){if(_0x46ce34['isCollapsed'])return null;const _0x2484aa=this['editor']['plugins']['get']('Users')['me'],_0x2d28aa=new _0x582953(_0x46ce34['start'],_0x46ce34['end']);for(const {suggestion:_0x1cbd71,meta:_0x10100f}of this['_findSuggestions'](_0x2d28aa,'insertion'))if(_0x10100f['isOwn']&&!_0x10100f['isNextTo']){if(_0x1cbd71['isMultiRange']){const _0x4e5dd7=_0x1cbd71['getRanges']()['filter'](_0x3fa537=>'$graveyard'!=_0x3fa537['root']['rootName']);_0x4e5dd7['every'](_0xac9295=>_0x2d28aa['containsRange'](_0xac9295,!0x0))&&_0x1cbd71['discard']();if(_0x4e5dd7['some'](_0x4dbc58=>_0x4dbc58['containsRange'](_0x2d28aa,!0x0))){const _0x1456c3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2bdab5,'accept');return this['forceDefaultExecution'](()=>_0x1456c3([_0x2d28aa],null,_0x1f8d99)),null;}}else{const _0xbe4650=_0x2d28aa['getIntersection'](_0x1cbd71['getFirstRange']());null!==_0xbe4650&&_0x1cbd71['_onDiscard']([_0xbe4650],null,_0x1f8d99);}}if(_0x2d28aa['detach'](),_0x2d28aa['isCollapsed']||'$graveyard'==_0x2d28aa['root']['rootName'])return null;let _0x55cff1=null,_0x44e1c5=_0x2d28aa['start'],_0x27eb52=_0x2d28aa['end'];const _0x1f8b43=this['_findSuggestions'](_0x2d28aa,'deletion');for(const {suggestion:_0x138a40,meta:_0xe12380}of _0x1f8b43){const _0x46143c=this['_model']['createRange'](_0x44e1c5,_0x27eb52);if(_0xe12380['isOwn']&&(this['_mergeNestedSuggestions']||!_0xe12380['containsRangeInObject']&&!_0xe12380['isInsideObject'])){if(_0x138a40['isMultiRange']){if(!zt(_0x138a40,_0x1f8d99))continue;let _0x3872eb=!0x0;for(const _0x6d85e7 of _0x138a40['getRanges']()){if(_0x6d85e7['containsRange'](_0x46143c,!0x0))return _0x138a40;_0x46143c['containsRange'](_0x6d85e7)||(_0x3872eb=!0x1);}_0x3872eb&&_0x138a40['discard']();}else{const _0x3629c0=_0x138a40['getFirstRange']();if(_0x3629c0['containsRange'](_0x46143c,!0x0))return _0x138a40;if(!zt(_0x138a40,_0x1f8d99)){_0x46143c['containsRange'](_0x3629c0)?_0x138a40['removeMarkers']():_0x3629c0['containsPosition'](_0x44e1c5)?_0x44e1c5=_0x3629c0['end']:_0x3629c0['containsPosition'](_0x27eb52)&&(_0x27eb52=_0x3629c0['start']);continue;}_0x44e1c5=_0x44e1c5['isBefore'](_0x3629c0['start'])?_0x44e1c5:_0x3629c0['start'],_0x27eb52=_0x27eb52['isAfter'](_0x3629c0['end'])?_0x27eb52:_0x3629c0['end'],_0x1f8d99=Object['assign']({},_0x138a40['attributes']),_0x55cff1?_0x3629c0['start']['isBefore'](_0x55cff1['getFirstRange']()['start'])?(_0x55cff1['removeMarkers'](),_0x55cff1=_0x138a40):_0x138a40['removeMarkers']():_0x55cff1=_0x138a40;}}}if(_0x55cff1)return this['_setSuggestionRange'](_0x55cff1,this['_model']['createRange'](_0x44e1c5,_0x27eb52)),_0x55cff1;{const _0x5e5b18=_0xb9e80(),_0x2d2693=this['_model']['createRange'](_0x44e1c5,_0x27eb52),_0x3aabb4=_0x2484aa['id'],_0x7b100b=_0x2bdab5?'deletion:'+_0x2bdab5:'deletion',_0xc4a1d9=this['_setSuggestionData']({'id':_0x5e5b18,'type':_0x7b100b,'createdAt':new Date(),'authorId':_0x3aabb4,'attributes':_0x1f8d99});return this['_addSuggestionMarker'](_0x7b100b,_0x5e5b18,_0x3aabb4,_0x2d2693),_0xc4a1d9;}}['markMultiRangeDeletion'](_0x4cd747,_0x515909='multi',_0x2f3904={}){const _0x3d0cb6=this['editor']['plugins']['get']('Users')['me'],_0x45c6ac=_0x4cd747['map'](_0x15e2b3=>new _0x582953(_0x15e2b3['start'],_0x15e2b3['end'])),_0x1bce74=new Set();for(const {suggestion:_0x4c0aa6,meta:_0x490027}of this['_findSuggestions'](_0x45c6ac,'insertion'))_0x490027['isOwn']&&!_0x490027['isNextTo']&&_0x1bce74['add'](_0x4c0aa6);for(const _0x25129d of _0x1bce74)if(_0x25129d['isMultiRange']){const _0x1d0cf0=_0x25129d['getRanges']();(!_0x25129d['attributes']||!_0x25129d['attributes']['skipNestingCheck'])&&(_0x1d0cf0['every'](_0x1e4e5a=>_0x45c6ac['some'](_0xcb209f=>_0xcb209f['containsRange'](_0x1e4e5a,!0x0)))&&_0x25129d['discard']());if(_0x45c6ac['every'](_0x1de499=>_0x1d0cf0['some'](_0xdf9ade=>_0xdf9ade['containsRange'](_0x1de499,!0x0)))){const _0x46e58f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x515909,'accept');return this['forceDefaultExecution'](()=>_0x46e58f(_0x4cd747,null,_0x2f3904)),null;}}else{const _0x8c5376=_0x25129d['getFirstRange']();_0x45c6ac['some'](_0x7ac22b=>_0x7ac22b['containsRange'](_0x8c5376,!0x0))&&_0x25129d['discard']();if(_0x45c6ac['every'](_0xada043=>_0x8c5376['containsRange'](_0xada043,!0x0))){const _0x578bd0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x515909,'accept');return this['forceDefaultExecution'](()=>_0x578bd0(_0x45c6ac,null,_0x2f3904)),null;}}const _0x3223cd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x515909,'join');let _0x4ef038=null;for(const _0x2e0808 of this['getSuggestions']())if(_0x2e0808['author']['id']==_0x3d0cb6['id']&&_0x2e0808['isInContent']&&'deletion'==_0x2e0808['type']&&_0x2e0808['subType']==_0x515909&&zt(_0x2e0808,_0x2f3904)&&(_0x3223cd(_0x2e0808['getRanges'](),_0x45c6ac)||_0x3223cd(_0x45c6ac,_0x2e0808['getRanges']()))){if(_0x4ef038){if(_0x2e0808['commentThread']&&_0x2e0808['commentThread']['length'])continue;for(const _0x467a42 of _0x2e0808['getRanges']())_0x4ef038['isIntersectingWithRange'](_0x467a42)||_0x4ef038['addRange'](_0x467a42);_0x2e0808['removeMarkers']();}else{_0x4ef038=_0x2e0808;for(const _0x4fed6b of _0x45c6ac)_0x2e0808['isIntersectingWithRange'](_0x4fed6b)||_0x2e0808['addRange'](_0x4fed6b);}}if(_0x4ef038)return _0x4ef038;_0x1bce74['clear']();for(const {suggestion:_0x9eee91,meta:_0xad0d3b}of this['_findSuggestions'](_0x45c6ac,'deletion'))_0xad0d3b['isOwn']&&(this['_mergeNestedSuggestions']||!_0xad0d3b['containsRangeInObject']&&!_0xad0d3b['isInsideObject'])&&zt(_0x9eee91,_0x2f3904)&&_0x1bce74['add'](_0x9eee91);for(const _0x1c590b of _0x1bce74){const _0x5e19dc=_0x1c590b['getRanges']();if(!_0x2f3904||!_0x2f3904['skipNestingCheck']){if(_0x45c6ac['every'](_0x40c083=>_0x5e19dc['some'](_0x48506e=>_0x48506e['containsRange'](_0x40c083,!0x0))))return _0x1c590b;}(!_0x1c590b['attributes']||!_0x1c590b['attributes']['skipNestingCheck'])&&(_0x5e19dc['every'](_0x187e47=>_0x45c6ac['some'](_0x1636ce=>_0x1636ce['containsRange'](_0x187e47,!0x0)))&&_0x1c590b['discard']());}const _0x1ca76a=_0xb9e80(),_0x1e49c4=_0x3d0cb6['id'],_0x39f73b='deletion:'+_0x515909,_0x120f6e=this['_setSuggestionData']({'id':_0x1ca76a,'type':_0x39f73b,'createdAt':new Date(),'authorId':_0x1e49c4,'attributes':_0x2f3904});for(const _0x187726 of _0x45c6ac)_0x187726['detach'](),_0x187726['isCollapsed']||'$graveyard'==_0x187726['root']['rootName']||this['_addSuggestionMarker'](_0x39f73b,_0x1ca76a,_0x1e49c4,_0x187726,u['getMultiRangeId']());return _0x120f6e;}['markAttributeChange'](_0x262594,_0x1aa7be,_0x14ddc9,_0x240751,_0x27bbae){if(_0x262594['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x8445f4=this['editor']['plugins']['get']('Users')['me']['id'],_0x12109e=Array['from'](this['_suggestions']['values']())['filter'](_0x1e94fe=>'attribute'==_0x1e94fe['type']&&_0x1e94fe['data']['key']==_0x1aa7be&&_0x1e94fe['isIntersectingWithRange'](_0x262594));if('default'===this['_trackFormatChanges']){const _0xbfb22b=this['_findSuggestions'](_0x262594,'insertion')['filter'](({meta:_0x221cf0})=>_0x221cf0['isOwn']&&!_0x221cf0['isInsideObject']&&!_0x221cf0['isNextTo'])['map'](({suggestion:_0x2d1fa9})=>_0x2d1fa9);_0x12109e['unshift'](..._0xbfb22b);}const _0x4e519e=new Map([[_0x262594,_0x14ddc9]]);for(const _0x38919d of _0x12109e){const _0x5cd32c='attribute'==_0x38919d['type']?_0x38919d['data']['oldValue']:void 0x0,_0x31bcce=_0x38919d['getFirstRange'](),_0x1bdcdc=Array['from'](_0x4e519e['keys']())['find'](_0x53997a=>_0x53997a['isIntersecting'](_0x31bcce));if(!_0x1bdcdc)continue;const _0x3a98c5=_0x1bdcdc['getDifference'](_0x31bcce);this['_isBlockAttribute'](_0x1aa7be)&&'insertion'==_0x38919d['type']&&0x0!=_0x3a98c5['length']||(_0x4e519e['delete'](_0x1bdcdc),_0x3a98c5['forEach'](_0xb4b9f1=>{_0x4e519e['set'](_0xb4b9f1,_0x14ddc9);}),'insertion'!=_0x38919d['type']&&_0x5cd32c!=_0x240751&&_0x4e519e['set'](_0x1bdcdc['getIntersection'](_0x31bcce),_0x5cd32c));}const _0x38eef5=[];for(const [_0x46ad88,_0x532ecd]of _0x4e519e){const _0x207374=_0xb9e80(),_0x15d88a={'key':_0x1aa7be,'oldValue':_0x532ecd,'newValue':_0x240751};_0x1aa7be['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':_0x1aa7be});const _0x292199=('attribute:'+(_0x1aa7be+'|'+Gt({'newValue':_0x240751})))['substring'](0x0,0x3c),_0x2fe88e=this['_setSuggestionData']({'id':_0x207374,'type':_0x292199,'data':_0x15d88a,'createdAt':new Date(),'authorId':_0x8445f4,'attributes':_0x27bbae});_0x38eef5['push'](_0x2fe88e),this['_addSuggestionMarker'](_0x292199,_0x207374,_0x8445f4,_0x46ad88);}return _0x38eef5;}['enableDefaultAttributesIntegration'](_0x2751ea){this['enableCommand'](_0x2751ea,(_0xbc7a12,..._0xbe6a29)=>{this['_recordAttributeChanges'](()=>{_0xbc7a12(..._0xbe6a29);});});}['registerBlockAttribute'](_0x58dc27){this['_blockAttributeKeys']['add'](_0x58dc27);}['registerInlineAttribute'](_0x25a79e){this['_inlineAttributeKeys']['add'](_0x25a79e);}['_getAttributeKey'](_0x85a089){return'attribute'==_0x85a089['type']?_0x85a089['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2f7f01,_0x23f4f3){const _0x4e3ebb=_0x2f7f01['getFirstMarker']();this['_model']['change'](_0x114818=>{_0x114818['updateMarker'](_0x4e3ebb,{'range':_0x23f4f3});});}['_addThreadToSuggestion'](_0x10caf4){const _0x1ac476=_0x10caf4['id'],_0x22ec79=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1ac476)||this['_commentsRepository']['addCommentThread']({'channelId':_0x22ec79,'threadId':_0x1ac476,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5c9b7c=this['_commentsRepository']['getCommentThread'](_0x1ac476);_0x5c9b7c['unbind']('isRemovable'),_0x5c9b7c['isRemovable']=!0x1,_0x10caf4['commentThread']=_0x5c9b7c;}['_checkSuggestionCorrectness'](_0x139ba2,_0x4950ab,_0x2e6ee2,_0xf58cca){if(_0x139ba2['type']!=_0x4950ab||_0x139ba2['subType']!=_0x2e6ee2||_0x139ba2['creator']['id']!=_0xf58cca)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1ac58c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1a3365,_0xca2416){const _0x113b38=_0x1a3365['getFirstRange']();if(_0xca2416['isEqual'](_0x113b38))_0x1a3365['removeMarkers']();else{if(_0x113b38['containsRange'](_0xca2416)){const _0x103d37=this['_model']['createPositionAt'](_0xca2416['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1a3365,this['_model']['createRange'](_0x113b38['start'],_0x103d37));const _0x5009b1=_0xb9e80(),_0x5ddfcc=_0x1a3365['creator']['id'],_0x13548f=_0x1a3365['type']+':'+_0x1a3365['subType'];this['_setSuggestionData']({'id':_0x5009b1,'type':_0x13548f,'createdAt':new Date(),'authorId':_0x5ddfcc,'data':_0x1a3365['data'],'attributes':_0x1a3365['attributes']});const _0x45cd32=this['_model']['createPositionAt'](_0xca2416['end']['parent'],'after'),_0x30deed=this['_model']['createRange'](_0x45cd32,_0x113b38['end']);this['_addSuggestionMarker'](_0x13548f,_0x5009b1,_0x5ddfcc,_0x30deed);}else{if(_0x113b38['containsPosition'](_0xca2416['start'])){const _0x458a5d=this['_model']['createPositionAt'](_0xca2416['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1a3365,this['_model']['createRange'](_0x113b38['start'],_0x458a5d));}else{const _0x306e8d=this['_model']['createPositionAt'](_0xca2416['end']['parent'],'after');this['_setSuggestionRange'](_0x1a3365,this['_model']['createRange'](_0x306e8d,_0x113b38['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x6da2d3){for(const {suggestion:_0x4a60c4,meta:_0x1c4a29}of this['_findSuggestions'](_0x6da2d3,'insertion')){if(!_0x1c4a29['isOwn'])continue;const _0x54ed9a=_0x4a60c4['getRanges']();for(const _0x3a819e of _0x54ed9a)if(!_0x6da2d3['getDifference'](_0x3a819e)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x190f0b){const _0xed6c00=this['editor']['plugins']['get']('Users')['getUser'](_0x190f0b);if(!_0xed6c00)throw new _0x1ac58c('track-changes-user-not-found',this);return _0xed6c00;}['_getExternalAuthor'](_0x49a0db){const _0x90cf67=this['editor']['plugins']['get']('Users'),_0x23a824=_0x3d1978('external:'+_0x49a0db),_0x22170b=_0x90cf67['getUser'](_0x23a824);return _0x22170b||_0x90cf67['addUser']({'id':_0x23a824,'name':_0x49a0db});}['_createSuggestion'](_0x323883,_0x354952,_0x28c231,_0x233cf5,_0x431707){const _0x4ff951=this['_getAuthorFromId'](_0x233cf5),_0x4de63e=this['_suggestionFactory']['buildSuggestion'](_0x323883,_0x354952,_0x28c231,_0x4ff951,_0x431707,_0x3cadae=>{this['_updateSuggestionData'](_0x28c231,{'attributes':_0x3cadae});const _0x111f60=this['getSuggestion'](_0x28c231);this['_joinWithAdjacentSuggestions'](new Set([_0x111f60])),this['_refreshSuggestionsChain'](new Set([_0x111f60]));});return this['listenTo'](_0x4de63e,'accept',()=>{this['_updateSuggestionData'](_0x28c231,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4de63e,'discard',()=>{this['_updateSuggestionData'](_0x28c231,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x28c231,_0x4de63e),this['_suggestionState']['set'](_0x4de63e,'notReady'),_0x4de63e;}['_splitMarkerName'](_0x38a47f){const _0x149e96=_0x38a47f['split'](':');return{'group':_0x149e96[0x0],'type':_0x149e96[0x1],'subType':_0x149e96['length']>=0x5?_0x149e96[0x2]:null,'id':_0x149e96['length']<0x5?_0x149e96[0x2]:_0x149e96[0x3],'authorId':_0x149e96['length']<0x5?_0x149e96[0x3]:_0x149e96[0x4],'markerCount':0x6==_0x149e96['length']?_0x149e96[0x5]:null};}['_breakSuggestionMarker'](_0x127d8e,_0x2b44ce,_0x2e7243){const _0x118536=_0x127d8e['getFirstRange'](),_0x4b891b=_0x118536['start'],_0x2ded0b=_0x118536['end'];this['_setSuggestionRange'](_0x127d8e,this['_model']['createRange'](_0x4b891b,_0x2b44ce));const _0x2f550f=_0xb9e80(),_0x19cd06=_0x127d8e['creator']['id'],_0x38c0a2=_0x127d8e['type']+(_0x127d8e['subType']?':'+_0x127d8e['subType']:'');this['_setSuggestionData']({'id':_0x2f550f,'type':_0x38c0a2,'createdAt':new Date(),'authorId':_0x19cd06,'originalSuggestionId':_0x127d8e['id'],'attributes':_0x127d8e['attributes'],'data':_0x127d8e['data']});const _0x3dea7b=this['_getAttributeKey'](_0x127d8e);('formatBlock'==_0x127d8e['type']||_0x3dea7b&&this['_isBlockAttribute'](_0x3dea7b))&&(_0x2e7243=this['_model']['createPositionBefore'](_0x2e7243['parent'])),this['_addSuggestionMarker'](_0x38c0a2,_0x2f550f,_0x19cd06,this['_model']['createRange'](_0x2e7243,_0x2ded0b));}['_findSuggestions'](_0x531294,_0x261ed8=null){const _0x2ec77f=[],_0x52d728=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x531294)||(_0x531294=[_0x531294]);for(const _0x22137b of this['getSuggestions']()){if(!_0x22137b['isInContent'])continue;if(_0x261ed8&&_0x22137b['type']!=_0x261ed8)continue;let _0x319fa2=!0x1;for(const _0x1af4c4 of _0x22137b['getRanges']()){for(const _0x5407fe of _0x531294){const _0x139001=_0x5407fe['start']['isEqual'](_0x1af4c4['end'])||_0x5407fe['end']['isEqual'](_0x1af4c4['start']);if(_0x139001||_0x5407fe['getIntersection'](_0x1af4c4)){const _0x2df442=_0x5407fe['containsRange'](_0x1af4c4)&&Ut(this['_model']['schema'],_0x1af4c4['start'],_0x5407fe),_0x2afd44=_0x1af4c4['containsRange'](_0x5407fe)&&Ut(this['_model']['schema'],_0x5407fe['start'],_0x1af4c4);_0x2ec77f['push']({'suggestion':_0x22137b,'meta':{'isOwn':_0x52d728==_0x22137b['author'],'isNextTo':_0x139001,'isInsideObject':_0x2df442,'containsRangeInObject':_0x2afd44}}),_0x319fa2=!0x0;break;}}if(_0x319fa2)break;}}return _0x2ec77f;}['_addSuggestionMarker'](_0x5cf1eb,_0x5418f2,_0x1a619c,_0x54d742,_0x3bef08){this['_model']['change'](_0x479e1d=>{let _0x101d91='suggestion:'+_0x5cf1eb+':'+_0x5418f2+':'+_0x1a619c;_0x3bef08&&(_0x101d91=_0x101d91+':'+_0x3bef08),_0x479e1d['addMarker'](_0x101d91,{'range':_0x54d742,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x45183a){const _0x516105=_0x45183a['previous'],_0xf7ffff=_0x45183a['next'];_0x45183a['previous']=null,_0x45183a['next']=null,null!=_0x516105&&_0x516105['next']==_0x45183a&&(_0x516105['next']=_0xf7ffff),null!=_0xf7ffff&&_0xf7ffff['previous']==_0x45183a&&(_0xf7ffff['previous']=_0x516105),'ready'==this['_suggestionState']['get'](_0x45183a)&&(this['_suggestionState']['set'](_0x45183a,'removed'),this['fire']('suggestionUnloaded',_0x45183a,_0x516105,_0xf7ffff));}['_setSuggestionData'](_0x11d8ba){const _0x5a9a55=_0x11d8ba['id'],_0x3877c4=this['addSuggestionData'](_0x11d8ba);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x53f4a2=this['editor']['plugins']['get']('PendingActions'),_0x28a477=_0x3877c4['hasComments'],_0x111824=_0x3877c4['subType']?_0x3877c4['type']+':'+_0x3877c4['subType']:_0x3877c4['type'],_0xa88fcf=this['editor']['locale'],_0x13280f=_0x53f4a2['add'](o(_0xa88fcf,'PENDING_ACTION_SUGGESTION')),_0x33c904={'id':_0x5a9a55,'type':_0x111824,'hasComments':_0x28a477,'data':_0x11d8ba['data']||null,'originalSuggestionId':_0x11d8ba['originalSuggestionId']||null,'attributes':_0x3877c4['attributes']};this['_adapter']['addSuggestion'](_0x33c904)['then'](_0x271afe=>{_0x3877c4['_saved']=!0x0,_0x53f4a2['remove'](_0x13280f),_0x271afe&&_0x271afe['createdAt']&&(this['_suggestions']['get'](_0x5a9a55)['createdAt']=_0x271afe['createdAt']);})['catch'](_0x53dbf7=>{throw _0x42f00c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3877c4['discard']();}),_0x3877c4['stopListening'](),this['_suggestions']['delete'](_0x3877c4['id']),this['_suggestionState']['delete'](_0x3877c4),_0x53dbf7;});}return _0x3877c4;}['_isBlockAttribute'](_0x24b1c4){return this['_blockAttributeKeys']['has'](_0x24b1c4);}['_updateSuggestionData'](_0x3738a4,_0x41c610){const _0xc9d91f=this['editor']['plugins']['get']('PendingActions'),_0x12e4c=this['getSuggestion'](_0x3738a4);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x12e4c['_saved']){const _0x48825c=_0xc9d91f['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3738a4,_0x41c610)['then'](()=>{_0xc9d91f['remove'](_0x48825c);});}else _0x12e4c['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3738a4,_0x41c610);});}}['_getSuggestionData'](_0x2549fe){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1ac58c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2549fe);}['_handleNewSuggestionMarker'](_0x317926){const {id:_0x28c70f,type:_0x139bb3,subType:_0x41d4f1,authorId:_0x26f04c}=this['_splitMarkerName'](_0x317926),_0x1bf65e=this['_suggestions']['get'](_0x28c70f)||this['_createSuggestion'](_0x139bb3,_0x41d4f1,_0x28c70f,_0x26f04c,{});switch(this['_checkSuggestionCorrectness'](_0x1bf65e,_0x139bb3,_0x41d4f1,_0x26f04c),this['_suggestionState']['get'](_0x1bf65e)){case'notReady':this['_getSuggestionData'](_0x28c70f)['then'](_0x246069=>{let _0x21c703=Promise['resolve']();_0x246069['hasComments']&&(_0x21c703=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x28c70f})),_0x21c703['then'](()=>{this['addSuggestionData'](_0x246069)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1bf65e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x28c70f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1bf65e,'ready'),this['fire']('suggestionLoaded',_0x1bf65e);break;case'ready':this['fire']('suggestionChanged',_0x1bf65e);}return _0x1bf65e['addMarkerName'](_0x317926),_0x1bf65e;}['_refreshSuggestionsChain'](_0x28fc0b){const _0x2fcb17=Array['from'](_0x28fc0b),_0x36255e=_0x2fcb17['filter'](_0x3cd65e=>'attribute'==_0x3cd65e['type']);this['_refreshAttributeSuggestionsChain'](_0x36255e);const _0x225107=_0x2fcb17['filter'](_0x3b90fe=>!_0x3b90fe['isMultiRange']&&'attribute'!=_0x3b90fe['type']),_0x46ea70=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xaf788f=>!_0xaf788f['isMultiRange']&&'attribute'!=_0xaf788f['type']),_0x7f1b9e=_0x46ea70['filter'](_0x45afca=>!_0x28fc0b['has'](_0x45afca)),_0x4d4242=new Map(_0x46ea70['map'](_0x42a63a=>[_0x42a63a,this['_suggestionFactory']['getSuggestionCallback'](_0x42a63a['type'],_0x42a63a['subType'],'chain')])),_0x85156b=new Map(_0x46ea70['map'](_0x429fb1=>[_0x429fb1,_0x429fb1['getFirstRange']()])),_0x562fa8=new Set(),_0x3a34cd=new Set();for(let _0x463701=0x0;_0x463701<_0x225107['length'];_0x463701++)_0x57d9b8(_0x225107[_0x463701],_0x225107,_0x463701+0x1);for(let _0x266c05=0x0;_0x266c05<_0x225107['length'];_0x266c05++)_0x57d9b8(_0x225107[_0x266c05],_0x7f1b9e,0x0);const _0x481dcd=new Set();for(let _0x66495f=0x0;_0x66495f<_0x225107['length'];_0x66495f++){const _0x523d54=_0x225107[_0x66495f];!_0x3a34cd['has'](_0x523d54)&&_0x523d54['previous']&&(_0x481dcd['add'](_0x523d54['previous']),_0x523d54['previous']['next']===_0x523d54&&(_0x523d54['previous']['next']=null),_0x523d54['previous']=null),!_0x562fa8['has'](_0x523d54)&&_0x523d54['next']&&(_0x481dcd['add'](_0x523d54['next']),_0x523d54['next']['previous']===_0x523d54&&(_0x523d54['next']['previous']=null),_0x523d54['next']=null);}function _0x57d9b8(_0x554596,_0x3db827,_0x3bf8b2){for(let _0x298d03=_0x3bf8b2;_0x298d03<_0x3db827['length'];_0x298d03++){const _0x38041a=_0x35c050(_0x554596,_0x3db827[_0x298d03]);_0x38041a&&(_0x38041a[0x0]['next']=_0x38041a[0x1],_0x38041a[0x1]['previous']=_0x38041a[0x0],_0x562fa8['add'](_0x38041a[0x0]),_0x3a34cd['add'](_0x38041a[0x1]));}}function _0x35c050(_0x242b35,_0x2bbb98){if(_0x242b35['author']['id']!==_0x2bbb98['author']['id'])return null;const _0x499191=_0x4d4242['get'](_0x242b35)(_0x242b35,_0x2bbb98,_0x85156b['get'](_0x242b35),_0x85156b['get'](_0x2bbb98));if(!_0x499191)return null;return _0x4d4242['get'](_0x2bbb98)(_0x242b35,_0x2bbb98,_0x85156b['get'](_0x242b35),_0x85156b['get'](_0x2bbb98))?_0x499191[0x1]['commentThread']&&_0x499191[0x1]['commentThread']['length']?null:_0x499191:null;}_0x481dcd['size']&&this['_refreshSuggestionsChain'](_0x481dcd);}['_refreshAttributeSuggestionsChain'](_0x5e172f){if(0x0==_0x5e172f['length'])return;const _0x457454=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x40de3d=>'attribute'==_0x40de3d['type']&&_0x40de3d['_isDataLoaded']),_0x249303=[],_0xd4d5eb=new Map();for(const _0xc73ebf of _0x457454){const _0x2ee849=_0x3d1978(_0xc73ebf['attributes']);_0xd4d5eb['has'](_0x2ee849)||(_0xd4d5eb['set'](_0x2ee849,_0x249303['length']),_0x249303['push']([]));const _0x213c48=_0xd4d5eb['get'](_0x2ee849);_0x249303[_0x213c48]['push'](_0xc73ebf);}!(function(){_0x249303['sort']((_0x219078,_0x1bd12a)=>{const _0x5b21cf=_0x219078[0x0]['createdAt'],_0x276641=_0x1bd12a[0x0]['createdAt'];return _0x5b21cf==_0x276641?_0x219078[0x0]['attributes']['groupId']<_0x1bd12a[0x0]['attributes']['groupId']?-0x1:0x1:_0x5b21cf<_0x276641?-0x1:0x1;});for(const _0x15739c of _0x249303)_0x15739c['sort']((_0x81bc2b,_0x1d468b)=>_0x81bc2b['id']<_0x1d468b['id']?-0x1:0x1);}());for(let _0x45a4a5=0x0;_0x45a4a5<_0x249303['length'];_0x45a4a5++){if(0x0==_0x249303[_0x45a4a5]['length'])continue;const _0x513042=[];for(let _0x1a09c4=_0x45a4a5+0x1;_0x1a09c4<_0x249303['length'];_0x1a09c4++)0x0!=_0x249303[_0x1a09c4]['length']&&_0x34fa19(_0x249303[_0x45a4a5],_0x249303[_0x1a09c4])&&_0x513042['push'](_0x1a09c4);for(const _0x17a8a5 of _0x513042)_0x249303[_0x45a4a5]=_0x249303[_0x45a4a5]['concat'](_0x249303[_0x17a8a5]),_0x249303[_0x17a8a5]=[];}for(const _0x282cd4 of _0x249303)for(let _0x4eeba9=0x0;_0x4eeba9<_0x282cd4['length'];_0x4eeba9++){const _0x29fda9=_0x282cd4[_0x4eeba9+0x1]||null;_0x282cd4[_0x4eeba9]['next']!==_0x29fda9&&(_0x282cd4[_0x4eeba9]['next']=_0x29fda9);}for(const _0x3d805f of _0x249303)for(let _0x516231=0x0;_0x516231<_0x3d805f['length'];_0x516231++){const _0x1c4da5=_0x3d805f[_0x516231-0x1]||null;_0x3d805f[_0x516231]['previous']!==_0x1c4da5&&(_0x3d805f[_0x516231]['previous']=_0x1c4da5);}function _0x34fa19(_0x157b7b,_0x536ce1){if(_0x157b7b[0x0]['attributes']['groupId']!==_0x536ce1[0x0]['attributes']['groupId']&&_0x157b7b[0x0]['author']!==_0x536ce1[0x0]['author'])return!0x1;if(!function(_0x30d6ef,_0x28e925){if(!_0x30d6ef['hasComments']&&!_0x28e925['hasComments'])return!0x0;if(_0x30d6ef['hasComments']&&_0x28e925['hasComments'])return!0x1;if(_0x30d6ef['hasComments']&&_0x28e925['createdAt']<_0x30d6ef['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x28e925['hasComments']&&_0x30d6ef['createdAt']<_0x28e925['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x157b7b[0x0],_0x536ce1[0x0]))return!0x1;const _0xdf332a=xt(_0x157b7b[0x0]['attributes'],'groupId'),_0x3e3392=xt(_0x536ce1[0x0]['attributes'],'groupId');if(!_0x4dfac2(_0xdf332a,_0x3e3392))return!0x1;return!!_0x157b7b['every'](_0x2bf6e5=>_0x536ce1['some'](_0x123324=>_0x2bf6e5['getFirstRange']()['isEqual'](_0x123324['getFirstRange']())))&&_0x536ce1['every'](_0x11eeaa=>_0x157b7b['some'](_0x3cab5a=>_0x11eeaa['getFirstRange']()['isEqual'](_0x3cab5a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x30af77){const _0x3f0410=Array['from'](_0x30af77),_0x4c2e48=this['getSuggestions']({'skipNotAttached':!0x0}),_0x28bde1=_0x4c2e48['filter'](_0x2a68a9=>!_0x30af77['has'](_0x2a68a9)),_0x40281f=new Map(_0x3f0410['map'](_0x553bd0=>[_0x553bd0,this['_suggestionFactory']['getSuggestionCallback'](_0x553bd0['type'],_0x553bd0['subType'],'join')])),_0x59efcc=new Map(_0x4c2e48['map'](_0x3e80ff=>[_0x3e80ff,_0x3e80ff['getRanges']()]));for(let _0xa5998a=0x0;_0xa5998a<_0x3f0410['length'];_0xa5998a++){if(_0x3e4847(this,_0x3f0410[_0xa5998a],_0x3f0410,_0xa5998a+0x1))return!0x0;}for(let _0x1fc0eb=0x0;_0x1fc0eb<_0x3f0410['length'];_0x1fc0eb++){if(_0x3e4847(this,_0x3f0410[_0x1fc0eb],_0x28bde1,0x0))return!0x0;}return!0x1;function _0x3e4847(_0x4ae7bc,_0x5d5ad3,_0x3656fd,_0x525fed){for(let _0x558df1=_0x525fed;_0x558df1<_0x3656fd['length'];_0x558df1++){const _0x47c9a7=_0x3656fd[_0x558df1];if(_0x47c9a7['type']!==_0x5d5ad3['type']||_0x47c9a7['author']['id']!==_0x5d5ad3['author']['id']||_0x47c9a7['subType']!==_0x5d5ad3['subType'])continue;if(!qt(_0x5d5ad3,_0x47c9a7))continue;if('attribute'==_0x5d5ad3['type']&&_0x5d5ad3['data']['oldValue']!=_0x47c9a7['data']['oldValue'])continue;if('attribute'==_0x5d5ad3['type']&&_0x4ae7bc['_isBlockAttribute'](_0x5d5ad3['data']['key']))continue;if('formatBlock'==_0x5d5ad3['type']){const _0x1fedc1=_0x4ae7bc['editor']['model'],_0x2d5416=_0x5d5ad3['getContainedElement']();if(_0x2d5416&&(_0x1fedc1['schema']['isObject'](_0x2d5416)||_0x1fedc1['schema']['isLimit'](_0x2d5416)))continue;}const _0x45b0e0=_0x40281f['get'](_0x5d5ad3),_0x4c30e3=_0x59efcc['get'](_0x5d5ad3),_0x552598=_0x59efcc['get'](_0x47c9a7),_0x5528ae=_0x5d5ad3['commentThread']&&_0x5d5ad3['commentThread']['length'],_0x1eb156=_0x47c9a7['commentThread']&&_0x47c9a7['commentThread']['length'];if(!_0x5528ae&&_0x45b0e0(_0x552598,_0x4c30e3))return _0x4ae7bc['_joinSuggestions'](_0x47c9a7,_0x5d5ad3),_0x59efcc['delete'](_0x5d5ad3),!0x0;if(!_0x1eb156&&_0x45b0e0(_0x4c30e3,_0x552598))return _0x4ae7bc['_joinSuggestions'](_0x5d5ad3,_0x47c9a7),_0x59efcc['delete'](_0x47c9a7),!0x0;}return!0x1;}}['_joinSuggestions'](_0x15c1d8,_0x2e3b66){if(_0x15c1d8['isMultiRange']){for(const _0x47e52a of _0x2e3b66['getRanges']())_0x15c1d8['addRange'](_0x47e52a);}else{const _0x565d8e=_0x2e3b66['getFirstRange']()['end'];this['_setSuggestionRange'](_0x15c1d8,this['_model']['createRange'](_0x15c1d8['getFirstRange']()['start'],_0x565d8e));}_0x2e3b66['removeMarkers']();}['_getMarkerAnnouncementText'](_0x275551,_0x4ff2d9,_0x4b8e27){const _0x55f434=_0x275551['startsWith']('format')||_0x275551['startsWith']('attribute')?'FORMATTING':_0x275551['toUpperCase']();return o(this['editor']['locale'],_0x4ff2d9+'_'+_0x55f434+'_SUGGESTION_ANNOUNCEMENT',_0x4b8e27);}['_initAriaMarkerChangeAnnouncements'](){const _0x2a6d83=this['editor'];if(!_0x2a6d83['ui'])return;const {ariaLiveAnnouncer:_0x58b1c1}=_0x2a6d83['ui'];_0x487918(this['_model'],({left:_0x1cddb7,entered:_0x480a1e})=>{for(const _0x2a0f01 of _0x1cddb7){const {group:_0x420dac,type:_0x18423f}=this['_splitMarkerName'](_0x2a0f01['name']);if('suggestion'===_0x420dac){_0x58b1c1['announce'](this['_getMarkerAnnouncementText'](_0x18423f,'LEAVE'));break;}}for(const _0x9cf40e of _0x480a1e){const {group:_0x47e449,type:_0x3ca8af}=this['_splitMarkerName'](_0x9cf40e['name']);if('suggestion'===_0x47e449){_0x58b1c1['announce'](this['_getMarkerAnnouncementText'](_0x3ca8af,'ENTER',_0xfda364(_0x218fe9)));break;}}});}['_processAttributeChanges'](_0x4ad0a1){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2e4228=this['editor'],_0x248c8c=_0x2e4228['model']['document']['differ']['getChanges']();if(0x0==_0x248c8c['length'])return!0x1;const _0x2c5859=[],_0x347e6b=_0x248c8c['filter'](_0x3a4c85=>'attribute'==_0x3a4c85['type']),_0x3a2f61=_0x248c8c['filter'](_0x343151=>'insert'==_0x343151['type']&&'$text'!=_0x343151['name']),_0x8f6cf4=_0x248c8c['filter'](_0x18281e=>'remove'==_0x18281e['type']&&'$text'!=_0x18281e['name']);for(const _0x49739c of _0x347e6b)_0x2c5859['push']({'key':_0x49739c['attributeKey'],'newValue':_0x49739c['attributeNewValue'],'oldValue':_0x49739c['attributeOldValue'],'range':Lt(_0x49739c['range'],_0x2e4228['model'])});for(const _0xc83bee of _0x3a2f61){const _0x5a1e24=_0x8f6cf4['find'](_0x364741=>_0x364741['position']['isEqual'](_0xc83bee['position']));_0x5a1e24&&_0x2c5859['push']({'key':m,'newValue':_0xc83bee['name'],'oldValue':_0x5a1e24['name'],'range':_0x2e4228['model']['createRangeOn'](_0xc83bee['position']['nodeAfter'])});}return 0x0!=_0x2c5859['length']&&this['_reduceExistingSuggestions'](_0x4ad0a1,_0x2c5859);}['_processAttributeSuggestions'](_0xd03e5e){let _0x315acb=!0x1;const _0x1ecda3=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3ff037=>_0x3ff037['data']['newRange']&&_0x3ff037['name']['startsWith']('suggestion:attribute:'));for(const _0x2d5499 of _0x1ecda3){const {subType:_0x109ab7,id:_0x30931b}=this['_splitMarkerName'](_0x2d5499['name']),_0x35afb9=_0x109ab7['split']('|')[0x0];for(const _0x410d0d of this['getSuggestions']({'skipNotAttached':!0x0}))_0x410d0d['id']!=_0x30931b&&'attribute'==_0x410d0d['type']&&_0x410d0d['data']&&_0x410d0d['data']['key']==_0x35afb9&&_0x410d0d['getFirstRange']()['isIntersecting'](_0x2d5499['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x410d0d,_0x2d5499['data']['newRange'],_0xd03e5e),_0x315acb=!0x0);}return _0x315acb;}['_recordAttributeChanges'](_0x41bc7d){this['_recordAttributeSuggestions']=!0x0,_0x41bc7d();}['_isRegisteredAttribute'](_0x1bc441){const _0x507459=this['_isBlockAttribute'](_0x1bc441),_0x5a8443=this['_inlineAttributeKeys']['has'](_0x1bc441);return _0x507459||_0x5a8443;}['_reduceExistingSuggestions'](_0x45fb41,_0x227705){if(0x0==_0x227705['length'])return!0x1;let _0x531894=!0x1;for(const _0xdeb8e4 of _0x227705){const _0x10944a=this['_findSuggestions'](_0xdeb8e4['range'],'attribute')['filter'](_0x36f29f=>!_0x36f29f['meta']['isNextTo'])['map'](_0x2b1373=>_0x2b1373['suggestion']),_0x47901d=_0x3d1978({'newValue':_0xdeb8e4['newValue']});_0x10944a['filter'](_0x19318f=>{const [_0x211272,_0x418327]=_0x19318f['subType']['split']('|');return _0x211272==_0xdeb8e4['key']&&_0x418327!=_0x47901d;})['forEach'](_0x1fdff1=>{this['_reduceSuggestionAttributeRange'](_0x1fdff1,_0xdeb8e4['range'],_0x45fb41),_0x531894=!0x0;});}return _0x531894;}['_reduceSuggestionAttributeRange'](_0x436e3c,_0xc9ff42,_0x181617){const _0x7c0a36=_0x436e3c['getFirstRange']()['getDifference'](_0xc9ff42);0x0!==_0x7c0a36['length']?0x1!==_0x7c0a36['length']?this['_breakSuggestionMarker'](_0x436e3c,_0xc9ff42['start'],_0xc9ff42['end']):this['_setSuggestionRange'](_0x436e3c,_0x7c0a36[0x0]):_0x181617['removeMarker'](_0x436e3c['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x527ebf){this['_editor']=_0x527ebf,this['_model']=_0x527ebf['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4773af,_0x139d70,_0x55ef83,_0x246f89,_0x1672ec,_0x26e18e){return new u(this['_model'],{'type':_0x4773af,'subType':_0x139d70,'id':_0x55ef83,'author':_0x246f89,'creator':_0x246f89,'attributes':_0x1672ec,'onAttributesChange':_0x26e18e,'onAccept':(..._0x210812)=>this['getSuggestionCallback'](_0x4773af,_0x139d70,'accept')(..._0x210812),'onDiscard':(..._0x1c7b31)=>this['getSuggestionCallback'](_0x4773af,_0x139d70,'discard')(..._0x1c7b31)});}['registerCustomCallback'](_0x235484,_0x24e595,_0x7e2814,_0x957de8){const _0x518499=_0x235484+':'+_0x24e595+':'+_0x7e2814;this['_customCallbacks']['set'](_0x518499,_0x957de8);}['getSuggestionCallback'](_0x4ebdc4,_0x4b3b98,_0x4e6cd3){const _0x52ee4e=_0x4ebdc4+':'+_0x4b3b98+':'+_0x4e6cd3;return this['_customCallbacks']['get'](_0x52ee4e)||this['_defaultCallbacks']['get'](_0x4ebdc4+':'+_0x4e6cd3);}['_registerDefaultCallbacks'](){const _0xfc48c3=()=>!0x1,_0x1077e7=_0x540a4b=>{_0x540a4b['sort']((_0x130930,_0x2495dd)=>_0x130930['start']['isBefore'](_0x2495dd['start'])?0x1:-0x1),this['_model']['change'](_0x265d12=>{for(const _0x2cd345 of _0x540a4b){let _0x486faa;_0x486faa=_0x2cd345['end']['isAtEnd']&&_0x2cd345['end']['parent']==_0x2cd345['start']['nodeAfter']?_0x265d12['createSelection'](_0x2cd345['start']['nodeAfter'],'on'):_0x265d12['createSelection'](_0x2cd345),this['_model']['deleteContent'](_0x486faa,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x25c6a6=(_0x121e65,_0x28649a)=>{_0x28649a&&this['_model']['change'](_0x381a9e=>{const {commandName:_0x392463,commandParams:_0x4949a9=[]}=_0x28649a,_0x511fee=_0x121e65['map'](_0x239f91=>(Vt(_0x239f91)&&(_0x239f91=this['_model']['createRange'](_0x239f91['end'])),_0x239f91))['filter'](_0x2273e4=>'$graveyard'!==_0x2273e4['root']['rootName']);if(_0x511fee['length']<0x1)return;const _0x5bf83c=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1f7cdb=>_0x582953['fromRange'](_0x1f7cdb));_0x381a9e['setSelection'](_0x511fee);for(const _0x321d6b of this['_editor']['commands']['commands']())_0x321d6b['refresh']();_0x4949a9['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x392463,..._0x4949a9);const _0x56b8fa=_0x5bf83c['filter'](_0x48ff19=>'$graveyard'!=_0x48ff19['root']['rootName']);_0x56b8fa['length']>0x0&&_0x381a9e['setSelection'](_0x56b8fa);for(const _0x5467a8 of _0x5bf83c)_0x5467a8['detach']();});},_0x3d61d0=(_0x1700e0,_0xb900ab)=>0x1==_0x1700e0['length']&&0x1==_0xb900ab['length']&&_0x1700e0[0x0]['end']['isEqual'](_0xb900ab[0x0]['start']),_0x3da956=(_0x3397a4,_0x4b3801,_0x13feb3,_0x354aad)=>Ht(_0x3397a4,_0x4b3801,_0x13feb3,_0x354aad)?[_0x3397a4,_0x4b3801]:Ht(_0x4b3801,_0x3397a4,_0x354aad,_0x13feb3)?[_0x4b3801,_0x3397a4]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xfc48c3),this['_defaultCallbacks']['set']('insertion:discard',_0x1077e7),this['_defaultCallbacks']['set']('insertion:join',_0x3d61d0),this['_defaultCallbacks']['set']('insertion:chain',_0x3da956),this['_defaultCallbacks']['set']('deletion:accept',_0x1077e7),this['_defaultCallbacks']['set']('deletion:discard',_0xfc48c3),this['_defaultCallbacks']['set']('deletion:join',_0x3d61d0),this['_defaultCallbacks']['set']('deletion:chain',_0x3da956),this['_defaultCallbacks']['set']('formatInline:accept',_0x25c6a6),this['_defaultCallbacks']['set']('formatInline:discard',_0xfc48c3),this['_defaultCallbacks']['set']('formatInline:join',_0x3d61d0),this['_defaultCallbacks']['set']('formatInline:chain',_0xfc48c3),this['_defaultCallbacks']['set']('formatBlock:accept',_0x25c6a6),this['_defaultCallbacks']['set']('formatBlock:discard',_0xfc48c3),this['_defaultCallbacks']['set']('formatBlock:join',_0x3d61d0),this['_defaultCallbacks']['set']('formatBlock:chain',_0xfc48c3),this['_defaultCallbacks']['set']('attribute:accept',_0xfc48c3),this['_defaultCallbacks']['set']('attribute:discard',(_0x6626b0,_0x4b21e1)=>{if(!_0x4b21e1)return;const _0x54f616=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x4d644c=>{if(_0x4b21e1['key']==m)for(const _0x3f8c13 of _0x6626b0){const _0x182487=_0x3f8c13['start']['nodeAfter'],_0x214160=_0x4b21e1['oldValue'];_0x4d644c['rename'](_0x182487,_0x214160);}else{if(_0x54f616['_isBlockAttribute'](_0x4b21e1['key'])){for(const _0x40d202 of _0x6626b0)void 0x0!==_0x4b21e1['oldValue']?_0x4d644c['setAttribute'](_0x4b21e1['key'],_0x4b21e1['oldValue'],_0x40d202['start']['nodeAfter']):_0x4d644c['removeAttribute'](_0x4b21e1['key'],_0x40d202['start']['nodeAfter']);}else{for(const _0xa1a6a9 of _0x6626b0)_0x4b21e1['oldValue']?_0x4d644c['setAttribute'](_0x4b21e1['key'],_0x4b21e1['oldValue'],_0xa1a6a9):_0x4d644c['removeAttribute'](_0x4b21e1['key'],_0xa1a6a9);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3d61d0);}}function Ut(_0x2ef4a7,_0x5486d1,_0x43503f){for(const _0x3c51a6 of _0x5486d1['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3c51a6['root']==_0x3c51a6)return!0x1;if(!_0x43503f['containsItem'](_0x3c51a6))return!0x1;if(_0x2ef4a7['isObject'](_0x3c51a6)||_0x2ef4a7['isLimit'](_0x3c51a6))return!0x0;}return!0x1;}function Vt(_0x26c14f){return _0x26c14f['end']['parent']==_0x26c14f['start']['nodeAfter']&&_0x26c14f['end']['isAtStart'];}function Pt(_0x5a7c12,_0x2802d5,_0x27cd67,_0x43ff97){const _0x4f62ca=_0x53fe09=>!_0x53fe09['item']['is']('$textProxy')&&!_0x43ff97['isObject'](_0x53fe09['item']),_0x1ebc2d=_0x5a7c12['start']['getLastMatchingPosition'](_0x4f62ca),_0x2abf13=_0x5a7c12['end']['getLastMatchingPosition'](_0x4f62ca,{'direction':'backward'});return(!_0x5a7c12['start']['isEqual'](_0x1ebc2d)||!_0x5a7c12['end']['isEqual'](_0x2abf13))&&(_0x1ebc2d['isBefore'](_0x2abf13)?_0x27cd67['updateMarker'](_0x2802d5,{'range':_0x27cd67['createRange'](_0x1ebc2d,_0x2abf13)}):_0x27cd67['removeMarker'](_0x2802d5),!0x0);}function Gt(_0x1e2b81){return _0x3d1978(_0x1e2b81);}function Ft(_0x32aded){const _0x44f804=_0x32aded['start']['nodeAfter'];return _0x44f804&&_0x44f804['is']('element');}function Lt(_0x351bd6,_0x25e870){return null==_0x351bd6['end']['nodeBefore']&&_0x351bd6['end']['parent']==_0x351bd6['start']['nodeAfter']?Jt(_0x351bd6['start']['nodeAfter'],_0x25e870):_0x351bd6;}function Jt(_0x5b954d,_0x20050b){const _0x3500a6=_0x20050b['schema']['isObject'](_0x5b954d)||_0x20050b['schema']['isSelectable'](_0x5b954d);return _0x20050b['createRange'](_0x20050b['createPositionAt'](_0x5b954d,'before'),_0x3500a6?_0x20050b['createPositionAfter'](_0x5b954d):_0x20050b['createPositionAt'](_0x5b954d,'end'));}function Ht(_0x3afca0,_0x55aba5,_0x12809d,_0x89c882){return!!qt(_0x3afca0,_0x55aba5)&&_0x12809d['end']['isEqual'](_0x89c882['start']);}function qt(_0x8d3787,_0x5d9a43){if(!_0x8d3787['_isDataLoaded']||!_0x5d9a43['_isDataLoaded'])return!0x1;const _0x240874=new Set(Object['keys'](_0x8d3787['attributes'])),_0x4fdcbe=new Set(Object['keys'](_0x5d9a43['attributes']));if(_0x240874['delete']('groupId'),_0x4fdcbe['delete']('groupId'),0x0==_0x240874['size']&&0x0==_0x4fdcbe['size'])return!0x0;if(_0x240874['size']!=_0x4fdcbe['size'])return!0x1;const _0x41a310={..._0x8d3787['attributes']},_0x56e319={..._0x5d9a43['attributes']};return delete _0x41a310['groupId'],delete _0x56e319['groupId'],JSON['stringify'](_0x41a310)==JSON['stringify'](_0x56e319);}function zt(_0x372a1a,_0x43c3f8){const _0x5edf59=Kt(_0x372a1a['attributes']),_0x1fa517=Kt(_0x43c3f8);if(!_0x372a1a['_isDataLoaded'])return!0x1;for(const _0x14d82e of Object['keys'](_0x1fa517))if(!_0x4dfac2(_0x5edf59[_0x14d82e],_0x1fa517[_0x14d82e]))return!0x1;return!0x0;}function Kt(_0x53a1ea){const _0x2e6548=Object['assign']({},_0x53a1ea);return delete _0x2e6548['skipNestingCheck'],delete _0x2e6548['tablePasteChainId'],_0x2e6548;}class ge extends/* #__PURE__ -- @preserve */
25
+ _0x5de982(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x129475,_0x16b91f,_0x37ae2d,_0x24d691){super(),this['model']=_0x16b91f,this['view']=_0x37ae2d,this['commentThreadController']=_0x24d691,this['_editor']=_0x129475,this['_acceptCommand']=_0x129475['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x129475['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x433813,_0xdc168f)=>_0x433813||_0xdc168f),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x45402e=>_0x45402e&&this['_editor']['model']['canEditAt'](_0x16b91f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xf064f3=>_0xf064f3&&this['_editor']['model']['canEditAt'](_0x16b91f['getRanges']())),this['_pendingAction']=null,_0x37ae2d['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x37ae2d,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x37ae2d,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x37ae2d,'change:isDirty',()=>{_0x37ae2d['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 _0x2f83d5=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2f83d5);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x37fcbe{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x24c36a,_0x4fe0c1,_0x2ae5d6,_0x54f1af){super(_0x24c36a),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x229945(_0x24c36a,o(_0x24c36a,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4fe0c1['authoredAt']),this['bind']('authoredAt')['to'](_0x4fe0c1),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',_0x4fe0c1,'authoredAt',this,'descriptionParts',(_0x4f52ab,_0x3b1cc4,_0x10c19e)=>{const _0x10a0d3=_0x10c19e['map'](_0x4e969f=>ns(_0x4e969f['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4f52ab-0x1,_0x4fe0c1['author']['name'],_0x3b1cc4?_0x54f1af['formatDateTime'](_0x3b1cc4):'',new DOMParser()['parseFromString'](_0x10a0d3,'text/html')['body']['textContent']]);}),this['focusables']=new _0x53b401(),this['focusTracker']=new _0x5756c4(),this['keystrokes']=new _0x15b293(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x383255=>_0x383255['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4fe0c1,this['_localUser']=_0x2ae5d6,this['_config']=_0x54f1af,_0x54f1af['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x14e6ed(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2c95a4}=this['_config'];this['commentsListView']=new _0x2c95a4(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',_0x3ff27f=>_0x3ff27f+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x157330,_0x402263)=>_0x157330||!!_0x402263);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x427241}=this['_config'],_0x1ba024=new _0x427241(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xafbb5a=_0x1ba024['commentInputView'];return _0x1ba024['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xafbb5a,'value',(_0x17777a,_0x541c39,_0x10795f)=>!!_0x10795f||_0x17777a&&!_0x541c39),_0xafbb5a['on']('submit',(_0x10b992,_0x56b577)=>{this['fire']('addComment',_0x56b577),_0xafbb5a['editor']['setData']('');}),_0xafbb5a['on']('cancel',()=>this['focus']()),_0xafbb5a['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1ba024;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x3502cc,_0x701c55,_0x535cbb,_0x3ea77a){super(_0x3502cc,_0x701c55,_0x535cbb,_0x3ea77a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x51143d=>_0x51143d&&_0x51143d[0x0]?_0x51143d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x172164,_0x4bc1bd)=>{let _0x58d29a='';for(const _0x2edecc of _0x172164)_0x58d29a+='<p>'+ns(_0x2edecc['content'],_0x2edecc['color'])+'</p>';return _0x4bc1bd?_0x58d29a:ti(_0x58d29a,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3ea77a['SuggestionView'](_0x3502cc,_0x701c55,{'formatDateTime':_0x3ea77a['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 _0x3c851e=this['bindTemplate'],_0xb663fe=[this['suggestionView']];return this['commentsListView']&&_0xb663fe['push'](this['commentsListView']),this['commentThreadInputView']&&_0xb663fe['push'](this['commentThreadInputView']),_0xb663fe['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3c851e['if']('isActive','ck-suggestion-wrapper--active'),_0x3c851e['to']('type',_0x2a9e8a=>'ck-suggestion-'+_0x2a9e8a),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':_0x3c851e['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xb663fe};}['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 ue extends _0x37fcbe{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5368ce,_0x4478e4,_0x46be33){super(_0x5368ce),this['_model']=_0x4478e4,this['_config']=_0x46be33,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4478e4),this['acceptButton']=this['_createButton'](o(_0x5368ce,'Accept\x20suggestion'),_0xa3c9d2['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5368ce,'Discard\x20suggestion'),_0xa3c9d2['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x24bd63(_0x5368ce,_0x4478e4['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x53b401([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5756c4(),this['keystrokes']=new _0x15b293(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x39decc=>_0x39decc['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x218994=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x218994['innerHTML']=this['description'],this['on']('change:description',(_0x432d37,_0xe29eeb,_0x39939e)=>{_0x218994['innerHTML']=_0x39939e;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x57897c=this['bindTemplate'],_0x5eab43=[{'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']}},{'tag':'time','attributes':{'datetime':_0x57897c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x57897c['to']('authoredAt',_0x4e81e7=>this['_config']['formatDateTime'](_0x4e81e7))}]}]},{'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']&&_0x5eab43['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':_0x5eab43}]};}['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'](_0xe2b937,_0x2d0cd7,_0x1bae04,_0x1cbce6,_0x3d826b){const _0xa1e777=new _0x14c4a1(this['locale']);return _0xa1e777['set']({'label':_0xe2b937,'icon':_0x2d0cd7,'tooltip':!0x0,'tooltipPosition':_0x3d826b}),_0xa1e777['extendTemplate']({'attributes':{'class':_0x1bae04}}),_0xa1e777['on']('execute',()=>{this['fire'](_0x1cbce6,this['_model']['id']);}),_0xa1e777;}['_setupKeyboardNavigation'](){const _0x2fd3fb=this['element'];this['keystrokes']['listenTo'](_0x2fd3fb);for(const _0xd6bf3a of this['focusables'])this['focusTracker']['add'](_0xd6bf3a['element']),this['keystrokes']['listenTo'](_0xd6bf3a['element']);this['keystrokes']['set']('enter',(_0x302349,_0x38e3d2)=>{_0x2fd3fb===_0x302349['target']&&(this['focusCycler']['focusFirst'](),_0x38e3d2());}),this['keystrokes']['set']('esc',(_0x4ed42b,_0x532b84)=>{_0x2fd3fb!==_0x4ed42b['target']&&(this['focus'](),_0x532b84());});}}var Ce='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x522036{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x32d02e,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x221386){super(_0x221386),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x269f6d=this['editor']['config'];_0x269f6d['define']('trackChanges.SuggestionThreadView',de),_0x269f6d['define']('trackChanges.SuggestionView',ue),_0x269f6d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x269f6d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2dc481,_0x45c61b){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5389af,_0x42abad]of this['_handleControllerBuffer']){const _0x236b41=this['_suggestionToController']['has'](_0x5389af);_0x236b41||_0x42abad?_0x236b41&&_0x42abad&&this['_destroyController'](_0x5389af):this['_initializeController'](_0x5389af);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2dc481,_0x45c61b);}['init'](){const _0x532118=this['editor'],_0x53155f=_0x532118['plugins']['get']('TrackChangesEditing'),_0x3a225e=_0x532118['plugins']['get']('Annotations'),_0x3c3c61=_0x532118['plugins']['get']('EditorAnnotations'),_0x599ca7=_0x532118['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3c3c61['addSourceCollector'](()=>{const _0x42dbb2=[];for(const [_0xf0b3cf,_0x47c655]of Array['from'](this['_suggestionToController'])){const _0x675071=_0xf0b3cf['getAllAdjacentSuggestions'](),_0x1958fa=[];for(const _0x10fd79 of _0x675071){if(!_0x10fd79['isInContent'])continue;if(_0x10fd79['isMultiRange']){_0x1958fa['push'](..._0x10fd79['getRanges']());continue;}const _0xe7272d=_0x10fd79['getFirstRange']();if(_0x1958fa['length']>0x0){const _0x5e2c1c=_0x1958fa[0x0]['getJoined'](_0xe7272d);if(_0x5e2c1c){_0x1958fa[0x0]=_0x5e2c1c;continue;}}_0x1958fa['push'](_0xe7272d);}_0x42dbb2['push']([_0x47c655['view'],_0x1958fa]);}return _0x42dbb2;}),this['listenTo'](_0x53155f,'suggestionLoaded',(_0x593751,_0x2bde1b)=>{this['listenTo'](_0x2bde1b,'change:previous',(_0x5098b3,_0x388d0a,_0x222f01,_0x2af0da)=>{_0x2bde1b['isInContent']&&(null==_0x222f01?(this['_updateController'](_0x2af0da['head']),this['_handleSuggestionControllerDelayed'](_0x2bde1b,!0x1)):(this['_updateController'](_0x222f01['head']),null==_0x2af0da&&this['_handleSuggestionControllerDelayed'](_0x2bde1b,!0x0)));}),null!==_0x2bde1b['previous']?this['_updateController'](_0x2bde1b['head']):this['_handleSuggestionControllerDelayed'](_0x2bde1b,!0x1);}),this['listenTo'](_0x53155f,'suggestionUnloaded',(_0x39ebff,_0xaacd3e,_0x37256b)=>{this['stopListening'](_0xaacd3e,'change:previous'),this['_handleControllerBuffer']['delete'](_0xaacd3e),this['_suggestionToController']['has'](_0xaacd3e)&&this['_destroyController'](_0xaacd3e),_0x37256b&&this['_updateController'](_0x37256b['head']);}),this['listenTo'](_0x53155f,'suggestionChanged',(_0x45ef98,_0x44ac02)=>{this['_updateController'](_0x44ac02);}),this['listenTo'](_0x3a225e,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x599ca7,'addComment',(_0x8f3813,{threadId:_0x33210a,isFromAdapter:_0x1f0a71})=>{if(_0x1f0a71||!_0x53155f['hasSuggestion'](_0x33210a))return;const _0x11a0f2=_0x53155f['getSuggestion'](_0x33210a);this['_suggestionToController']['get'](_0x11a0f2)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3a2c83=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x41dc33;for(const _0x3a1b85 in _0x3a2c83){const _0x449ee5=_0x3a1b85,_0xe47f66=_0x3a2c83[_0x449ee5];if('trackChangesLicenseKeyValid'==_0xe47f66||'trackChangesLicenseKeyInvalid'==_0xe47f66||'trackChangesLicenseKeyExpired'==_0xe47f66||'trackChangesLicenseKeyDomainLimit'==_0xe47f66||'trackChangesLicenseKeyNotAllowed'==_0xe47f66||'trackChangesLicenseKeyEvaluationLimit'==_0xe47f66||'trackChangesLicenseKeyTrialLimit'==_0xe47f66||'trackChangesLicenseKeyDevelopmentLimit'==_0xe47f66||'trackChangesLicenseKeyUsageLimit'==_0xe47f66){delete _0x3a2c83[_0x449ee5],_0x41dc33=_0xe47f66,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x41dc33&&_0x3a2c83['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x41dc33&&_0x3a2c83['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x41dc33&&_0x3a2c83['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x41dc33&&_0x3a2c83['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x41dc33&&_0x3a2c83['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x41dc33&&_0x3a2c83['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x41dc33&&_0x3a2c83['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x41dc33&&_0x3a2c83['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x5e9442=this['editor']['plugins']['get']('Annotations'),_0x30df3e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c6bf8=Array['from'](_0x5e9442['activeAnnotations'],_0xf5037b=>_0xf5037b['innerView'])['filter'](_0x372fef=>this['_viewToController']['has'](_0x372fef)),_0x2dc5c3=[];for(const _0x53e38c of _0x2c6bf8){const _0x19589d=this['_viewToController']['get'](_0x53e38c)['model']['getAllAdjacentSuggestions']();_0x2dc5c3['push'](..._0x19589d['reduce']((_0x118a1c,_0x300a4c)=>[..._0x118a1c,..._0x300a4c['getMarkerNames']()],[]));}_0x30df3e['activeMarkers']=_0x2dc5c3;}['_addUIComponentsToFactory'](){const _0x57b30d=this['editor'],_0xaf744e=_0x57b30d['locale'],_0x472119=o(_0xaf744e,'Track\x20changes'),_0x32bd0d=new _0x248b58([{'type':'switchbutton','model':new _0x579f53({'withText':!0x0,'isToggleable':!0x0,'label':_0x472119,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x579f53({'withText':!0x0,'label':o(_0xaf744e,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x579f53({'withText':!0x0,'label':o(_0xaf744e,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x579f53({'withText':!0x0,'label':o(_0xaf744e,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x579f53({'withText':!0x0,'label':o(_0xaf744e,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x137b07 of _0x32bd0d)if(pe(_0x137b07)){const _0x5ded11=_0x57b30d['commands']['get'](_0x137b07['model']['commandName']);_0x137b07['model']['bind']('isOn','isEnabled')['to'](_0x5ded11,'value','isEnabled');}_0x57b30d['ui']['componentFactory']['add']('trackChanges',_0x4ff5f3=>this['_createToolbarButton'](_0x4ff5f3,_0x32bd0d,_0x472119)),_0x57b30d['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1e691f=>this['_createMenuBarMenu'](_0x1e691f,_0x32bd0d,_0x472119));}['_createToolbarButton'](_0xebc93c,_0x5306fe,_0x13fee2){const _0x4e64b9=_0x361bdb(_0xebc93c,_0x303ad8),_0xd6eb02=this['editor']['commands']['get']('trackChanges');_0x4e64b9['buttonView']['set']({'tooltip':_0x13fee2,'label':_0x13fee2,'icon':Ce}),_0x4e64b9['buttonView']['bind']('isOn')['to'](_0xd6eb02,'value'),_0x4e64b9['buttonView']['on']('execute',()=>{_0xd6eb02['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x4e64b9,_0x5306fe,{'role':'menu'});const _0x556f39=[];for(const _0x2437ed of _0x5306fe)pe(_0x2437ed)&&_0x556f39['push'](this['editor']['commands']['get'](_0x2437ed['model']['commandName']));const _0x9df6e9=_0x4e64b9['buttonView'];return _0x9df6e9['actionView']['unbind']('isEnabled'),_0x9df6e9['arrowView']['unbind']('isEnabled'),_0x9df6e9['actionView']['bind']('isEnabled')['to'](_0xd6eb02,'isEnabled'),_0x9df6e9['arrowView']['bind']('isEnabled')['toMany'](_0x556f39,'isEnabled',(..._0x252ab1)=>_0x252ab1['some'](_0x2e5340=>_0x2e5340)),_0x4e64b9['on']('execute',_0x51757a=>{this['editor']['execute'](_0x51757a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4e64b9;}['_createMenuBarMenu'](_0x503525,_0x4bf694,_0x7065b7){const _0x436580=new _0x510e7f(_0x503525),_0x439659=this['editor']['commands']['get']('trackChanges');_0x436580['buttonView']['set']({'label':_0x7065b7,'icon':Ce});const _0x27bc22=new _0x960e20(_0x503525);for(const _0x3d6a57 of _0x4bf694){if('separator'==_0x3d6a57['type']){_0x27bc22['items']['add'](new _0x4b7899(_0x503525));continue;}const _0x470223=new _0x2c05e2(_0x503525,_0x436580),_0x46d0de=new _0x49a471(_0x503525),_0x506bb3=_0x3d6a57['model'];_0x46d0de['bind'](...Object['keys'](_0x506bb3))['to'](_0x506bb3),_0x46d0de['delegate']('execute')['to'](_0x436580),_0x46d0de['on']('execute',()=>{this['editor']['execute'](_0x506bb3['commandName']),this['editor']['editing']['view']['focus']();}),_0x470223['children']['add'](_0x46d0de),_0x27bc22['items']['add'](_0x470223);}return _0x436580['bind']('isEnabled')['to'](_0x439659,'isEnabled'),_0x436580['panelView']['children']['add'](_0x27bc22),_0x436580;}['_initializeController'](_0x3b4f8b){const _0x225ee6=this['editor'],_0x48ed55=_0x225ee6['config'],_0x480e9b=_0x225ee6['plugins']['get']('Annotations'),_0xd60fd5=_0x225ee6['plugins']['get']('CommentsRepository'),_0x10e7ab=_0x225ee6['plugins']['get']('EditorAnnotations'),_0x32fd1b=_0x225ee6['plugins']['get'](_0x32d02e)['me'],_0x5587e9=_0x48ed55['get']('trackChanges')['SuggestionThreadView'],_0x39f937=_0x48ed55['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4331f2,CommentThreadInputView:_0x9363f0}=_0x225ee6['plugins']['get']('CommentsUI');let _0x41bacf,_0x50a4d3,_0x2e043e;this['_annotationViews']['has'](_0x3b4f8b['id'])?(_0x50a4d3=this['_annotationViews']['get'](_0x3b4f8b['id']),_0x41bacf=_0x50a4d3['mainView']):(_0x41bacf=new _0x5587e9(_0x225ee6['locale'],_0x3b4f8b,_0x32fd1b,{'disableComments':this['_disableComments'],'editorConfig':{..._0x48ed55['get']('comments.editorConfig'),'licenseKey':_0x48ed55['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x48ed55['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x48ed55['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x48ed55['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5006a4(_0x48ed55['get']('locale')),'CommentView':_0x48ed55['get']('comments')['CommentView'],'CommentsListView':_0x4331f2,'CommentThreadInputView':_0x9363f0,'SuggestionView':_0x39f937}),_0x41bacf['suggestionView']['acceptButton']['on']('execute',()=>{_0x225ee6['editing']['view']['focus']();}),_0x41bacf['suggestionView']['discardButton']['on']('execute',()=>{_0x225ee6['editing']['view']['focus']();}),_0x50a4d3=_0x480e9b['createAnnotationView'](this['editor']['locale'],_0x41bacf),_0x50a4d3['bind']('isDirty')['to'](_0x41bacf,'isDirty'),_0x50a4d3['bind']('length')['to'](_0x41bacf),_0x50a4d3['bind']('type')['to'](_0x41bacf,'type',_0x1939ac=>'suggestion-'+_0x1939ac),_0x41bacf['on']('escape',()=>{_0x2e043e['fire']('escape');}),this['_annotationViews']['set'](_0x3b4f8b['id'],_0x50a4d3));const _0x1ab86b=_0xd60fd5['createCommentThreadController'](_0x3b4f8b['commentThread'],_0x41bacf),_0x13db53=new ge(_0x225ee6,_0x3b4f8b,_0x41bacf,_0x1ab86b),_0x4b1230=_0x3b4f8b['getAllAdjacentSuggestions']()['filter'](_0x3ea84a=>_0x3ea84a['isInContent']);_0x41bacf['descriptionParts']=_0x225ee6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4b1230),this['_suggestionToController']['set'](_0x3b4f8b,_0x13db53),this['_viewToController']['set'](_0x41bacf,_0x13db53),_0x2e043e=_0x480e9b['createAnnotation']({'view':_0x50a4d3,'target':()=>{const _0x3207b6=[],_0x1bf600=_0x3b4f8b['getAllAdjacentSuggestions']()['filter'](_0x2ce6b8=>_0x2ce6b8['isInContent']);for(const _0x41f54a of _0x1bf600)_0x3207b6['push'](..._0x41f54a['getMarkers']());return _0x44803c(_0x225ee6['editing'],_0x3207b6);},'type':()=>'suggestion-'+_0x13db53['view']['type']}),_0xd60fd5['_bindAnnotationToEditors'](_0x41bacf,_0x2e043e),_0x480e9b['add'](_0x2e043e),_0x10e7ab['registerAnnotation'](_0x2e043e);}['_destroyController'](_0x388005){const _0x52cbab=this['editor']['plugins']['get']('CommentsRepository'),_0x16dcf9=this['editor']['plugins']['get']('Annotations'),_0x5f523a=this['_suggestionToController']['get'](_0x388005),_0x409172=_0x5f523a['view'],_0x3e3c3d=_0x16dcf9['getByInnerView'](_0x409172);_0x52cbab['_unbindEditors'](_0x409172),_0x3e3c3d&&_0x16dcf9['remove'](_0x3e3c3d),this['_suggestionToController']['delete'](_0x388005),this['_viewToController']['delete'](_0x409172),_0x5f523a['destroy']();}['_updateController'](_0x42e225){if(!_0x42e225['isInContent']||!this['_suggestionToController']['has'](_0x42e225))return;const _0x16d66a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b4c77=this['_suggestionToController']['get'](_0x42e225),_0x2a54a3=_0x42e225['getAllAdjacentSuggestions']();_0x4b4c77['view']['descriptionParts']=_0x16d66a['descriptionFactory']['getDescriptions'](_0x2a54a3);}['destroy'](){for(const _0xf9c510 of this['_suggestionToController']['keys']())this['_destroyController'](_0xf9c510);for(const _0xe15380 of this['_annotationViews']['values']())_0xe15380['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x31f9a4){return'model'in _0x31f9a4;}class k extends _0x522036{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x56b4bd){this['editor']['plugins']['get'](p)['adapter']=_0x56b4bd;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2ad9d4){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2ad9d4);}['getSuggestions']({skipNotAttached:_0x4c7124=!0x1,toJSON:_0x327ba2=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4c7124,'toJSON':_0x327ba2});}['getSuggestion'](_0x4900d2){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4900d2);}}const w=['Pagination'];class T extends _0x522036{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x45008e=this['editor'];if(_0x45008e['config']['define']('trackChangesData.editorCreator',_0x478a58=>{const _0x4dd320=_0x45008e['model']['document']['getRootNames']()['reduce']((_0x542e74,_0x4ce5c1)=>(_0x542e74[_0x4ce5c1]='',_0x542e74),{});return _0x45008e['constructor']['create'](_0x4dd320,_0x478a58);}),'function'!=typeof _0x45008e['config']['get']('trackChangesData')['editorCreator'])throw new _0x1ac58c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x418b34){return N(this['editor'],!0x0,_0x418b34);}['getDataWithDiscardedSuggestions'](_0x2f2048){return N(this['editor'],!0x1,_0x2f2048);}}class D extends _0x522036{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b1cd5){function _0x1c9dee(_0x58f1cf){return _0x58f1cf['map'](_0x8a1ba6=>String['fromCharCode'](_0x8a1ba6))['join']('');}super(_0x4b1cd5),this['result']='end',_0x4b1cd5[_0x1c9dee([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c9dee([0x76,0x69,0x65,0x77])][_0x1c9dee([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1c9dee([0x61,0x75,0x74,0x6f]),_0x4b1cd5[_0x1c9dee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1c9dee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1c9dee([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1c9dee([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1c9dee([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 v(_0xa4997c){return void 0x0!==_0xa4997c['getRootsAttributes'];}async function N(_0x332acb,_0x24adaf,_0x32dcba){const _0x5a580d=_0x57fa87(_0x332acb,w);_0x5a580d['plugins']['push'](p,D),_0x5a580d['rootsAttributes']=v(_0x332acb)?_0x332acb['getRootsAttributes']():void 0x0;const _0xd1ab4c=document['createDocumentFragment'](),_0x2aa054=_0x332acb['config']['get']('trackChangesData')['editorCreator'],_0x1086a5=await _0x2aa054(_0x5a580d,()=>function(_0x4e5c6f){const _0x315339=document['createElement']('div');return _0x4e5c6f['appendChild'](_0x315339),_0x315339;}(_0xd1ab4c));!function(_0x12dab4,_0x1e15e1){const _0x3fe744=_0x12dab4['model']['document']['getRootNames']()['reduce']((_0x164ff2,_0x48ab92)=>(_0x164ff2[_0x48ab92]=_0x12dab4['data']['get']({'rootName':_0x48ab92}),_0x164ff2),{}),_0x2a58b2=_0x12dab4['plugins']['get']('Users')['users']['map'](_0x315566=>({'id':_0x315566['id'],'name':_0x315566['name']})),_0x4dd14c=_0x12dab4['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x182c9b=_0x12dab4['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1d2845=_0x1e15e1['plugins']['get']('Users'),_0x3b2fbe=_0x1e15e1['plugins']['get']('TrackChangesEditing'),_0x38d168=_0x1e15e1['plugins']['get']('CommentsRepository');for(const _0x3c19d2 of _0x38d168['getCommentThreads']())_0x3c19d2['remove']();for(const _0x337cf6 of _0x2a58b2)_0x1d2845['getUser'](_0x337cf6['id'])||_0x1d2845['addUser'](_0x337cf6);_0x1d2845['me']||_0x1d2845['useAnonymousUser']();for(const _0x5aafd9 of _0x182c9b)_0x38d168['addCommentThread'](_0x5aafd9);for(const _0x4ee006 of _0x4dd14c)_0x3b2fbe['addSuggestionData'](_0x4ee006);_0x1e15e1['data']['set'](_0x3fe744);}(_0x332acb,_0x1086a5),_0x1086a5['execute'](_0x24adaf?'acceptAllSuggestions':'discardAllSuggestions');const _0x424628=v(_0x1086a5)?_0x1086a5['getFullData'](_0x32dcba):_0x1086a5['data']['get'](_0x32dcba);return await _0x1086a5['destroy'](),_0x424628;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};