@ckeditor/ckeditor5-track-changes 48.0.0-alpha.7 → 48.0.0-alpha.8

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 (148) hide show
  1. package/dist/index.js +4 -4
  2. package/dist/translations/af.js +1 -1
  3. package/dist/translations/af.umd.js +1 -1
  4. package/dist/translations/ar.js +1 -1
  5. package/dist/translations/ar.umd.js +1 -1
  6. package/dist/translations/ast.js +1 -1
  7. package/dist/translations/ast.umd.js +1 -1
  8. package/dist/translations/az.js +1 -1
  9. package/dist/translations/az.umd.js +1 -1
  10. package/dist/translations/be.js +1 -1
  11. package/dist/translations/be.umd.js +1 -1
  12. package/dist/translations/bg.js +1 -1
  13. package/dist/translations/bg.umd.js +1 -1
  14. package/dist/translations/bn.js +1 -1
  15. package/dist/translations/bn.umd.js +1 -1
  16. package/dist/translations/bs.js +1 -1
  17. package/dist/translations/bs.umd.js +1 -1
  18. package/dist/translations/ca.js +1 -1
  19. package/dist/translations/ca.umd.js +1 -1
  20. package/dist/translations/cs.js +1 -1
  21. package/dist/translations/cs.umd.js +1 -1
  22. package/dist/translations/da.js +1 -1
  23. package/dist/translations/da.umd.js +1 -1
  24. package/dist/translations/de-ch.js +1 -1
  25. package/dist/translations/de-ch.umd.js +1 -1
  26. package/dist/translations/de.js +1 -1
  27. package/dist/translations/de.umd.js +1 -1
  28. package/dist/translations/el.js +1 -1
  29. package/dist/translations/el.umd.js +1 -1
  30. package/dist/translations/en-au.js +1 -1
  31. package/dist/translations/en-au.umd.js +1 -1
  32. package/dist/translations/en-gb.js +1 -1
  33. package/dist/translations/en-gb.umd.js +1 -1
  34. package/dist/translations/en.js +1 -1
  35. package/dist/translations/en.umd.js +1 -1
  36. package/dist/translations/eo.js +1 -1
  37. package/dist/translations/eo.umd.js +1 -1
  38. package/dist/translations/es-co.js +1 -1
  39. package/dist/translations/es-co.umd.js +1 -1
  40. package/dist/translations/es.js +1 -1
  41. package/dist/translations/es.umd.js +1 -1
  42. package/dist/translations/et.js +1 -1
  43. package/dist/translations/et.umd.js +1 -1
  44. package/dist/translations/eu.js +1 -1
  45. package/dist/translations/eu.umd.js +1 -1
  46. package/dist/translations/fa.js +1 -1
  47. package/dist/translations/fa.umd.js +1 -1
  48. package/dist/translations/fi.js +1 -1
  49. package/dist/translations/fi.umd.js +1 -1
  50. package/dist/translations/fr.js +1 -1
  51. package/dist/translations/fr.umd.js +1 -1
  52. package/dist/translations/gl.js +1 -1
  53. package/dist/translations/gl.umd.js +1 -1
  54. package/dist/translations/gu.js +1 -1
  55. package/dist/translations/gu.umd.js +1 -1
  56. package/dist/translations/he.js +1 -1
  57. package/dist/translations/he.umd.js +1 -1
  58. package/dist/translations/hi.js +1 -1
  59. package/dist/translations/hi.umd.js +1 -1
  60. package/dist/translations/hr.js +1 -1
  61. package/dist/translations/hr.umd.js +1 -1
  62. package/dist/translations/hu.js +1 -1
  63. package/dist/translations/hu.umd.js +1 -1
  64. package/dist/translations/hy.js +1 -1
  65. package/dist/translations/hy.umd.js +1 -1
  66. package/dist/translations/id.js +1 -1
  67. package/dist/translations/id.umd.js +1 -1
  68. package/dist/translations/it.js +1 -1
  69. package/dist/translations/it.umd.js +1 -1
  70. package/dist/translations/ja.js +1 -1
  71. package/dist/translations/ja.umd.js +1 -1
  72. package/dist/translations/jv.js +1 -1
  73. package/dist/translations/jv.umd.js +1 -1
  74. package/dist/translations/kk.js +1 -1
  75. package/dist/translations/kk.umd.js +1 -1
  76. package/dist/translations/km.js +1 -1
  77. package/dist/translations/km.umd.js +1 -1
  78. package/dist/translations/kn.js +1 -1
  79. package/dist/translations/kn.umd.js +1 -1
  80. package/dist/translations/ko.js +1 -1
  81. package/dist/translations/ko.umd.js +1 -1
  82. package/dist/translations/ku.js +1 -1
  83. package/dist/translations/ku.umd.js +1 -1
  84. package/dist/translations/lt.js +1 -1
  85. package/dist/translations/lt.umd.js +1 -1
  86. package/dist/translations/lv.js +1 -1
  87. package/dist/translations/lv.umd.js +1 -1
  88. package/dist/translations/ms.js +1 -1
  89. package/dist/translations/ms.umd.js +1 -1
  90. package/dist/translations/nb.js +1 -1
  91. package/dist/translations/nb.umd.js +1 -1
  92. package/dist/translations/ne.js +1 -1
  93. package/dist/translations/ne.umd.js +1 -1
  94. package/dist/translations/nl.js +1 -1
  95. package/dist/translations/nl.umd.js +1 -1
  96. package/dist/translations/no.js +1 -1
  97. package/dist/translations/no.umd.js +1 -1
  98. package/dist/translations/oc.js +1 -1
  99. package/dist/translations/oc.umd.js +1 -1
  100. package/dist/translations/pl.js +1 -1
  101. package/dist/translations/pl.umd.js +1 -1
  102. package/dist/translations/pt-br.js +1 -1
  103. package/dist/translations/pt-br.umd.js +1 -1
  104. package/dist/translations/pt.js +1 -1
  105. package/dist/translations/pt.umd.js +1 -1
  106. package/dist/translations/ro.js +1 -1
  107. package/dist/translations/ro.umd.js +1 -1
  108. package/dist/translations/ru.js +1 -1
  109. package/dist/translations/ru.umd.js +1 -1
  110. package/dist/translations/si.js +1 -1
  111. package/dist/translations/si.umd.js +1 -1
  112. package/dist/translations/sk.js +1 -1
  113. package/dist/translations/sk.umd.js +1 -1
  114. package/dist/translations/sl.js +1 -1
  115. package/dist/translations/sl.umd.js +1 -1
  116. package/dist/translations/sq.js +1 -1
  117. package/dist/translations/sq.umd.js +1 -1
  118. package/dist/translations/sr-latn.js +1 -1
  119. package/dist/translations/sr-latn.umd.js +1 -1
  120. package/dist/translations/sr.js +1 -1
  121. package/dist/translations/sr.umd.js +1 -1
  122. package/dist/translations/sv.js +1 -1
  123. package/dist/translations/sv.umd.js +1 -1
  124. package/dist/translations/th.js +1 -1
  125. package/dist/translations/th.umd.js +1 -1
  126. package/dist/translations/ti.js +1 -1
  127. package/dist/translations/ti.umd.js +1 -1
  128. package/dist/translations/tk.js +1 -1
  129. package/dist/translations/tk.umd.js +1 -1
  130. package/dist/translations/tr.js +1 -1
  131. package/dist/translations/tr.umd.js +1 -1
  132. package/dist/translations/tt.js +1 -1
  133. package/dist/translations/tt.umd.js +1 -1
  134. package/dist/translations/ug.js +1 -1
  135. package/dist/translations/ug.umd.js +1 -1
  136. package/dist/translations/uk.js +1 -1
  137. package/dist/translations/uk.umd.js +1 -1
  138. package/dist/translations/ur.js +1 -1
  139. package/dist/translations/ur.umd.js +1 -1
  140. package/dist/translations/uz.js +1 -1
  141. package/dist/translations/uz.umd.js +1 -1
  142. package/dist/translations/vi.js +1 -1
  143. package/dist/translations/vi.umd.js +1 -1
  144. package/dist/translations/zh-cn.js +1 -1
  145. package/dist/translations/zh-cn.umd.js +1 -1
  146. package/dist/translations/zh.js +1 -1
  147. package/dist/translations/zh.umd.js +1 -1
  148. package/package.json +25 -25
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x4bf56b,Plugin as _0x298b0c,PendingActions as _0x21440d}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0x361d9e,Annotations as _0xbd556d,EditorAnnotations as _0x1f3b9a,Comments as _0x17dfb2}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0x520897,ObservableMixin as _0x9eee31,uid as _0x12e742,priorities as _0x2043b9,insertToPriorityArray as _0x2527b5,logWarning as _0xf6ceae,getEnvKeystrokeText as _0x3cc1be,FocusTracker as _0xaf3886,KeystrokeHandler as _0x1205fe,Collection as _0x597581}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x3dfcb5,IconCancel as _0x172549,IconTrackChanges as _0x54b9af}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x4a7a34,View as _0x3a546b,ViewCollection as _0x3cd360,FocusCycler as _0x3ad658,UIModel as _0xda41c0,createDropdown as _0x3b3de9,SplitButtonView as _0x40fe71,addListToDropdown as _0x30e6c9,MenuBarMenuView as _0x4cb31a,MenuBarMenuListView as _0x152307,ListSeparatorView as _0x1d1410,MenuBarMenuListItemView as _0xb0da5,MenuBarMenuListItemButtonView as _0x5be5f1,BodyCollection as _0x1f0d88,Dialog as _0x44f644}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x438505,SuggestionsConversion as _0xfcbb62,Users as _0x3979,DocumentCompare as _0x6baf3d,fixElementSuggestionRange as _0x53d174,hashObject as _0x797f55,surroundingMarkersDetector as _0x3ac19f,FOCUS_ANNOTATION_KEYSTROKE as _0x23d49a,AriaDescriptionView as _0x56f83b,setupThreadKeyboardNavigation as _0x52cb00,trimHtml as _0x1bcc62,UserView as _0x271f5a,LateFocusButtonView as _0x396789,getDateTimeFormatter as _0x27106d,getAllMarkersDomElementsSorted as _0x29aa0f,sanitizeEditorConfig as _0x15eae0}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x1f0f7b,ModelLiveRange as _0x3756aa,ModelLivePosition as tt,ViewDowncastWriter as et}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as nt,set as it,isEqual as st,unset as rt,omit as ot}from'es-toolkit/compat';import{Delete as at,Input as ct}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as lt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as ut}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class ht extends _0x4bf56b{['_enabledCommands'];constructor(_0x52fa0f,_0x48b254){super(_0x52fa0f),this['_enabledCommands']=_0x48b254,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 _0x5aef44 of this['editor']['commands']['commands']())_0x5aef44['affectsData']&&!this['_enabledCommands']['has'](_0x5aef44)&&_0x5aef44['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2c071e of this['editor']['commands']['commands']())_0x2c071e['affectsData']&&!this['_enabledCommands']['has'](_0x2c071e)&&_0x2c071e['clearForceDisabled']('TrackChangesCommand');}}class dt extends _0x4bf56b{['_suggestions'];constructor(_0x1e0374,_0x1f8e4b){super(_0x1e0374),this['_suggestions']=_0x1f8e4b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x931cb1){const _0x5f4a06=this['_suggestions']['get'](_0x931cb1);if(!_0x5f4a06)throw new _0x520897('track-changes-accept-suggestion-not-found',this);const _0x2279b8=_0x5f4a06['getRanges']();this['editor']['model']['canEditAt'](_0x2279b8)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x5f4a06);}}class ft extends _0x4bf56b{['_suggestions'];constructor(_0x338003,_0x44d680){super(_0x338003),this['_suggestions']=_0x44d680,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2259ad){const _0x3b3735=this['_suggestions']['get'](_0x2259ad);if(!_0x3b3735)throw new _0x520897('track-changes-discard-suggestion-not-found',this);const _0x16d012=_0x3b3735['getRanges']();this['editor']['model']['canEditAt'](_0x16d012)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3b3735);}}function gt(_0x4048e7,_0x2e2739){let _0xe8bd33='';return _0xe8bd33+=_0x4048e7['split']('*')['map']((_0x3bf7c3,_0x489596)=>_0x489596%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+mt(_0x3bf7c3)+'</span>':mt(_0x3bf7c3))['join'](''),_0x2e2739&&(_0xe8bd33+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2e2739['value']+'\x22\x20title=\x22'+_0x2e2739['title']+'\x22></span>'),_0xe8bd33;}function mt(_0x39ecfe){const _0x4d1a26=document['createElement']('span');return _0x4d1a26['innerText']=_0x39ecfe,_0x4d1a26['innerHTML'];}function Et(_0x3ef3ce){return _0x3ef3ce['sort']((_0x3e499d,_0x1704fc)=>'attribute'===_0x3e499d['type']&&'attribute'!==_0x1704fc['type']?-0x1:'attribute'!==_0x3e499d['type']&&'attribute'===_0x1704fc['type']?0x1:'deletion'==_0x3e499d['type']&&'deletion'!=_0x1704fc['type']?-0x1:'deletion'!=_0x3e499d['type']&&'deletion'==_0x1704fc['type']?0x1:0x0);}function Tt(_0x2976ed,_0x37091e){let _0x101252,_0x2ef7ca=0x0;const _0x109f46=[],_0x2ae14a=_0x37091e['schema'];for(;_0x2ef7ca<_0x2976ed['length'];){const _0x193da7=_0x2976ed[_0x2ef7ca],_0x3556d2=_0x2976ed[_0x2ef7ca+0x1];_0x101252||(_0x101252=_0x37091e['createPositionBefore'](_0x193da7)),_t(_0x37091e,_0x193da7,_0x3556d2)||(_0x109f46['push'](_0x37091e['createRange'](_0x101252,_0x2ae14a['isObject'](_0x193da7)?_0x37091e['createPositionAfter'](_0x193da7):_0x37091e['createPositionAt'](_0x193da7,'end'))),_0x101252=null),_0x2ef7ca++;}return _0x109f46;}function _t(_0x31527a,_0x4a2454,_0x30d7fa){if(!_0x30d7fa)return!0x1;const _0x56a256=_0x31527a['createPositionAfter'](_0x4a2454),_0x5a0567=_0x31527a['createPositionBefore'](_0x30d7fa);return _0x56a256['isTouching'](_0x5a0567);}function pt(_0x2b449a,_0x56c812,_0x318df5){for(;_0x318df5['length'];){const _0x4bd2cc=_0x318df5['splice'](0x0,0x64);_0x2b449a['change'](()=>{for(const _0x2a9963 of _0x4bd2cc)_0x2a9963['isInContent']&&_0x56c812['execute'](_0x2a9963['id']);});}}class Lt extends _0x4bf56b{['_command'];['_suggestions'];constructor(_0x5d6547,_0x2f8348,_0x1d9883){super(_0x5d6547),this['_command']=_0x2f8348,this['_suggestions']=_0x1d9883,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3167de=Array['from'](this['_suggestions']['values']())['some'](_0x405b5a=>_0x405b5a['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3167de;}['execute'](){const _0x516017=Et(Array['from'](this['_suggestions']['values']()));for(const _0x2882fc of _0x516017){const _0x48e3de=_0x2882fc['getRanges']();if(!this['editor']['model']['canEditAt'](_0x48e3de))return;}pt(this['editor']['model'],this['_command'],_0x516017);}}class It extends _0x4bf56b{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1d5347,_0x46a899,_0x1d7e08){super(_0x1d5347),this['_command']=_0x46a899,this['_suggestions']=_0x1d7e08,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x16d730=this['editor']['model']['document']['selection'],_0x405b32=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x59770c,_0x21b98){const _0x3e2ca3=Array['from'](_0x59770c['getRanges']()),_0x3e25c4=new Set();for(const _0x1c91bb of _0x21b98)if(_0x1c91bb['isInContent']){for(const _0x3971b8 of _0x3e2ca3)for(const _0x260068 of _0x1c91bb['getRanges']())(_0x3971b8['isIntersecting'](_0x260068)||_0x59770c['isCollapsed']&&!_0x1c91bb['isMultiRange']&&_0x1c91bb['next']&&_0x260068['end']['isTouching'](_0x3971b8['start']))&&_0x3e25c4['add'](_0x1c91bb);}return _0x3e25c4;}(_0x16d730,_0x405b32),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1894b8=Et(Array['from'](this['_selectedSuggestions']));for(const _0x4693fe of _0x1894b8){const _0x49aa53=_0x4693fe['getRanges']();if(!this['editor']['model']['canEditAt'](_0x49aa53))return;}pt(this['editor']['model'],this['_command'],_0x1894b8);}}class bt extends/* #__PURE__ -- @preserve */
24
- _0x9eee31(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x304708,_0x2e7c21){super(),this['id']=_0x2e7c21['id'],this['type']=_0x2e7c21['type'],this['subType']=_0x2e7c21['subType']||null,this['author']=_0x2e7c21['author'],this['creator']=_0x2e7c21['creator']||_0x2e7c21['author'],this['isExternal']=Boolean(_0x2e7c21['attributes']&&_0x2e7c21['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x2e7c21['originalSuggestionId']||null,this['_model']=_0x304708,this['_onAccept']=_0x2e7c21['onAccept'],this['_onDiscard']=_0x2e7c21['onDiscard'],this['_onAttributesChange']=_0x2e7c21['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2e7c21['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 _0x3463a9=this;for(;_0x3463a9['previous'];)_0x3463a9=_0x3463a9['previous'];return _0x3463a9;}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'](_0x5d9fef){this['_markerNames']['add'](_0x5d9fef);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x44db2e=>this['_model']['markers']['get'](_0x44db2e))['filter'](_0x520c85=>_0x520c85);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x598652=>{for(const _0x584667 of this['getMarkers']())_0x598652['removeMarker'](_0x584667);}),this['_markerNames']['clear']();}['removeMarker'](_0x6a011c){this['_model']['change'](_0x2ea60f=>{_0x2ea60f['removeMarker'](_0x6a011c);}),this['_markerNames']['delete'](_0x6a011c);}['addRange'](_0x4f5c12){const _0x5f161c='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+bt['getMultiRangeId']();this['addMarkerName'](_0x5f161c),this['_model']['change'](_0x2a9f12=>{_0x2a9f12['addMarker'](_0x5f161c,{'range':_0x4f5c12,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x591254){for(const _0x347e2b of this['getRanges']())if(_0x347e2b['isIntersecting'](_0x591254))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1c8134=>_0x1c8134['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1d3868,_0x44dd1a)=>[..._0x1d3868,..._0x44dd1a['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4bcbb3=this['getRanges']();if(0x1!=_0x4bcbb3['length'])return null;const _0x44b71d=_0x4bcbb3[0x0],_0x28ab05=_0x44b71d['start']['nodeAfter'],_0x40a998=_0x44b71d['end']['nodeBefore'];return _0x28ab05 instanceof _0x1f0f7b?_0x28ab05!=_0x40a998?null:_0x28ab05: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 _0x2d969=[];let _0x1e02ff=this['head'];for(;_0x1e02ff;)_0x2d969['push'](_0x1e02ff),_0x1e02ff=_0x1e02ff['next'];return _0x2d969;}['setAttribute'](_0x17af7b,_0x253125){const _0x4be864=nt(this['attributes']);it(_0x4be864,_0x17af7b,_0x253125),st(_0x4be864,this['attributes'])||(this['attributes']=_0x4be864,this['_onAttributesChange'](_0x4be864));}['removeAttribute'](_0x1dfac8){const _0x20c5f4=nt(this['attributes']);rt(_0x20c5f4,_0x1dfac8),st(_0x20c5f4,this['attributes'])||(this['attributes']=_0x20c5f4,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 _0x12e742()['substr'](0x1,0x5);}}function At(_0x13510a,_0x42092a,_0x2fbbfe){const _0x246dab=_0x13510a['t'],t=_0x13510a['t'];switch(_0x42092a){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x2fbbfe);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2fbbfe);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2fbbfe);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2fbbfe);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2fbbfe);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',_0x2fbbfe);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2fbbfe);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2fbbfe);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2fbbfe);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2fbbfe);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2fbbfe);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2fbbfe);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2fbbfe);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2fbbfe);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2fbbfe);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2fbbfe);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2fbbfe);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2fbbfe);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2fbbfe);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2fbbfe);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2fbbfe);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2fbbfe);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2fbbfe);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2fbbfe);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2fbbfe);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'},_0x2fbbfe);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2fbbfe);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2fbbfe);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2fbbfe);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2fbbfe);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2fbbfe);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2fbbfe);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2fbbfe);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'},_0x2fbbfe);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2fbbfe);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2fbbfe);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2fbbfe);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2fbbfe);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x2fbbfe);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2fbbfe);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'},_0x2fbbfe);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_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x2fbbfe);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2fbbfe);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'},_0x2fbbfe);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2fbbfe);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'},_0x2fbbfe);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2fbbfe);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x2fbbfe);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x2fbbfe);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x2fbbfe);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2fbbfe);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'},_0x2fbbfe);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2fbbfe);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 _0x246dab({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2fbbfe);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x246dab({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2fbbfe);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2fbbfe);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'},_0x2fbbfe);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'},_0x2fbbfe);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'},_0x2fbbfe);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x42092a;}}class kt{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2256e9,_0x52d4cc){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2256e9,this['_locale']=_0x52d4cc;}['getDescriptions'](_0x59ba1b){const _0x19614f=[],_0x42286a=new Set(),_0x2571c5=new Set();for(let _0x491574=0x0;_0x491574<_0x59ba1b['length'];_0x491574++){const _0x20bffa=_0x59ba1b[_0x491574];if(!_0x20bffa['isInContent'])continue;const _0x47838c=this['_handleCustomCallbackDescription'](_0x20bffa);if(_0x47838c){if(null!=_0x20bffa['subType']){if(_0x42286a['has'](_0x20bffa['subType']))continue;_0x42286a['add'](_0x20bffa['subType']);}_0x19614f['push'](_0x47838c);}else{if('attribute'==_0x20bffa['type']){const _0x14c482=_0x20bffa['data']['key'];if(_0x2571c5['has'](_0x14c482))continue;_0x2571c5['add'](_0x20bffa['data']['key']),_0x14c482==Ke?this['_handleRenameSuggestionDescription'](_0x19614f,_0x20bffa):this['_handleAttributeSuggestionDescription'](_0x19614f,_0x20bffa);continue;}'insertion'!=_0x20bffa['type']&&'deletion'!=_0x20bffa['type']||this['_handleInsertRemoveSuggestionDescription'](_0x19614f,_0x20bffa,_0x59ba1b[_0x491574+0x1]);}}return this['_resolveDescriptionItems'](_0x19614f);}['registerDescriptionCallback'](_0x5310a3){this['_customCallbacks']['push'](_0x5310a3);}['registerElementLabel'](_0x2552c1,_0x463e72,_0x208857=_0x2043b9['normal']){'function'==typeof _0x2552c1?_0x2527b5(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2552c1,'label':_0x463e72,'priority':_0x208857}):this['_itemLabels']['set'](_0x2552c1,_0x463e72);}['registerAttributeLabel'](_0x1c4ea5,_0x145034){this['_attributeLabels']['set'](_0x1c4ea5,_0x145034);}['getItemLabel'](_0x5d3a62,_0x18dcac=0x1){let _0x235475;for(const _0xf5961f of this['_itemLabelsCallbacks'])if(_0xf5961f['matchingCallback'](_0x5d3a62)){_0x235475=_0xf5961f['label'];break;}return _0x235475||(_0x235475=this['_itemLabels']['get'](_0x5d3a62['name'])),_0x235475?_0x235475(_0x18dcac):0x1!==_0x18dcac?_0x18dcac+'\x20'+_0x5d3a62['name']+'s':''+_0x5d3a62['name'];}['_addDescriptionItems'](_0x3527ff,_0x13b2e4){const _0x212331=_0x13b2e4['getFirstRange']()['getWalker'](),_0xd05d21='insertion'==_0x13b2e4['type']?'add':'remove';for(const _0x437c58 of _0x212331){const _0x3906e9=_0x437c58['item'],_0xd19630=_0x3527ff[_0x3527ff['length']-0x1];if(_0x3906e9['is']('$textProxy'))_0xd19630&&_0xd19630['type']['indexOf']('Container')>-0x1&&_0x3527ff['pop'](),_0xd19630&&'text'==_0xd19630['type']?_0xd19630[_0xd05d21]+=_0x3906e9['data']:_0x3527ff['push']({'type':'text','add':'add'==_0xd05d21?_0x3906e9['data']:'','remove':'remove'==_0xd05d21?_0x3906e9['data']:''});else{if(this['_schema']['isObject'](_0x3906e9)){const _0x1969b8=_0x3906e9;if(_0xd19630&&_0xd19630['type']['indexOf']('Container')>-0x1&&_0x3527ff['pop'](),'elementEnd'==_0x437c58['type'])continue;_0xd19630&&_0xd19630['type']==_0xd05d21+'Object'&&_0xd19630['element']['name']==_0x1969b8['name']?_0xd19630['quantity']++:_0x3527ff['push']({'type':_0xd05d21+'Object','element':_0x1969b8,'quantity':0x1}),_0x212331['skip'](_0x7faef4=>!('elementEnd'==_0x7faef4['type']&&_0x7faef4['item']==_0x3906e9));}else{if(this['_schema']['checkChild'](_0x3906e9,'$text')||_0x3906e9['is']('element','softBreak')){const _0x2a4671=_0x3906e9;if('add'==_0xd05d21&&'elementStart'==_0x437c58['type']||'remove'==_0xd05d21&&'elementEnd'==_0x437c58['type'])continue;if(_0xd19630&&-0x1==_0xd19630['type']['indexOf']('Container')){'text'==_0xd19630['type']&&(_0xd19630[_0xd05d21]+='\x0a');continue;}let _0x206dc9;if(_0x206dc9='add'==_0xd05d21?_0x2a4671['nextSibling']&&!this['_schema']['isObject'](_0x2a4671['nextSibling'])?_0x2a4671['nextSibling']:null:_0x2a4671['previousSibling']&&!this['_schema']['isObject'](_0x2a4671['previousSibling'])?_0x2a4671['previousSibling']:null,_0x2a4671['isEmpty']||_0x206dc9&&_0x206dc9['isEmpty']){const _0x276a9b=_0x206dc9&&_0x206dc9['isEmpty']?_0x206dc9:_0x2a4671;_0xd19630&&_0xd19630['type']==_0xd05d21+'EmptyContainer'&&_0xd19630['element']['name']==_0x276a9b['name']?_0xd19630['quantity']++:_0x3527ff['push']({'type':_0xd05d21+'EmptyContainer','element':_0x276a9b,'quantity':0x1});}else _0x3527ff['push']({'type':_0xd05d21+'Container','element':_0x2a4671});}}}}}['_resolveDescriptionItems'](_0x9a65f){const _0x5c1e5a=this['_locale'],_0x23bd3a=[],_0x20043c=[],_0x3b2f4b=[];for(const _0x4f547d of _0x9a65f)switch(_0x4f547d['type']){case'text':if(_0x4f547d['add']=_0x4f547d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4f547d['remove']=_0x4f547d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4f547d['add']&&''!=_0x4f547d['remove']){_0x23bd3a['push']({'type':'replace','content':At(_0x5c1e5a,'REPLACE_TEXT',['\x22'+_0x4f547d['remove']+'\x22','\x22'+_0x4f547d['add']+'\x22'])});continue;}if(null!=_0x4f547d['add']['match'](/^ +$/)){_0x23bd3a['push']({'type':'insertion','content':At(_0x5c1e5a,'*Insert:*\x20%0',At(_0x5c1e5a,'ELEMENT_SPACE',_0x4f547d['add']['length']))});continue;}if(null!=_0x4f547d['remove']['match'](/^ +$/)){_0x23bd3a['push']({'type':'deletion','content':At(_0x5c1e5a,'*Remove:*\x20%0',At(_0x5c1e5a,'ELEMENT_SPACE',_0x4f547d['remove']['length']))});continue;}if(''!=_0x4f547d['add']){_0x23bd3a['push']({'type':'insertion','content':At(_0x5c1e5a,'*Insert:*\x20%0','\x22'+_0x4f547d['add']+'\x22')});continue;}_0x23bd3a['push']({'type':'deletion','content':At(_0x5c1e5a,'*Remove:*\x20%0','\x22'+_0x4f547d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x23bd3a['push']({'type':'insertion','content':At(_0x5c1e5a,'*Insert:*\x20%0',this['getItemLabel'](_0x4f547d['element'],_0x4f547d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x23bd3a['push']({'type':'deletion','content':At(_0x5c1e5a,'*Remove:*\x20%0',this['getItemLabel'](_0x4f547d['element'],_0x4f547d['quantity']))});continue;case'addContainer':_0x23bd3a['push']({'type':'insertion','content':At(_0x5c1e5a,'*Split:*\x20%0',this['getItemLabel'](_0x4f547d['element'],_0x4f547d['quantity']))});continue;case'removeContainer':_0x23bd3a['push']({'type':'deletion','content':At(_0x5c1e5a,'*Merge:*\x20%0',this['getItemLabel'](_0x4f547d['element'],_0x4f547d['quantity']))});continue;case'addFormat':_0x20043c['push'](_0x4f547d['key']);continue;case'removeFormat':_0x3b2f4b['push'](_0x4f547d['key']);continue;default:_0x23bd3a['push'](_0x4f547d);}if(_0x20043c['length']){const _0x37ae86=_0x20043c['map'](_0x2964f9=>this['_attributeLabels']['has'](_0x2964f9)?this['_attributeLabels']['get'](_0x2964f9):_0x2964f9)['join'](',\x20');_0x23bd3a['push']({'type':'format','content':At(this['_locale'],'*Set\x20format:*\x20%0',_0x37ae86)});}if(_0x3b2f4b['length']){const _0x21a373=_0x3b2f4b['map'](_0x17c12e=>this['_attributeLabels']['has'](_0x17c12e)?this['_attributeLabels']['get'](_0x17c12e):_0x17c12e)['join'](',\x20');_0x23bd3a['push']({'type':'format','content':At(this['_locale'],'*Remove\x20format:*\x20%0',_0x21a373)});}return _0x23bd3a;}['_handleCustomCallbackDescription'](_0x2ae7b8){for(const _0x580c10 of this['_customCallbacks']){const _0x4d5271=_0x580c10(_0x2ae7b8);if(_0x4d5271&&'type'in _0x4d5271)return _0x4d5271;}}['_handleAttributeSuggestionDescription'](_0x13a528,_0x434f72){const _0x3adb97=_0x434f72['data'],_0xa3905=void 0x0===_0x3adb97['newValue']?'removeFormat':'addFormat';_0x13a528['push']({'type':_0xa3905,'key':_0x3adb97['key']});}['_handleRenameSuggestionDescription'](_0x4c36af,_0x13dcb9){_0x4c36af['push']({'type':'format','content':At(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x13dcb9['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5b5a86,_0xdf7255,_0x412c46){if(this['_addDescriptionItems'](_0x5b5a86,_0xdf7255),_0x412c46&&_0x412c46['getFirstRange']()&&!_0xdf7255['getFirstRange']()['end']['isEqual'](_0x412c46['getFirstRange']()['start'])){const _0x4568ed=_0x5b5a86[_0x5b5a86['length']-0x1],_0x5cbb68='insertion'==_0xdf7255['type']?'add':'remove';_0x4568ed&&'text'==_0x4568ed['type']&&(_0x4568ed[_0x5cbb68]+='\x0a');}}}class Ct extends _0x298b0c{['afterInit'](){const _0x2b1555=this['editor'],_0x19f9b8=_0x2b1555['plugins']['get']('TrackChangesEditing');_0x2b1555['commands']['get']('showAIAssistant')&&_0x19f9b8['enableCommand']('showAIAssistant');}}class yt extends _0x298b0c{['afterInit'](){const _0x2f6109=this['editor'],_0x1ebdb4=_0x2f6109['plugins']['get']('TrackChangesEditing');_0x2f6109['commands']['get']('toggleAi')&&_0x1ebdb4['enableCommand']('toggleAi');}}class Nt extends _0x298b0c{['afterInit'](){const _0x3ca4f8=this['editor'],_0x2abe85=_0x3ca4f8['plugins']['get']('TrackChangesEditing');_0x3ca4f8['commands']['get']('aiQuickAction')&&_0x2abe85['enableCommand']('aiQuickAction');}}class Rt extends _0x298b0c{['afterInit'](){const _0x25db8b=this['editor'],_0x8be80a=_0x25db8b['locale'];if(!_0x25db8b['plugins']['has']('AlignmentEditing'))return;const _0x502ccd=_0x25db8b['plugins']['get']('TrackChangesEditing');_0x502ccd['enableDefaultAttributesIntegration']('alignment'),_0x502ccd['descriptionFactory']['registerAttributeLabel']('alignment',At(_0x8be80a,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14cc07=this['editor'],_0x46bc7a=_0x14cc07['locale'];_0x14cc07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x462093=>{if('formatBlock'!=_0x462093['type'])return;const {data:_0x96c205}=_0x462093;if(_0x96c205&&'alignment'==_0x96c205['commandName']){const _0x52aaa2=_0x96c205['commandParams'][0x0]['value'];return{'type':'format','content':At(_0x46bc7a,'*Format:*\x20%0',function(_0x174515){switch(_0x174515){case'left':return At(_0x46bc7a,'FORMAT_ALIGN_TO_LEFT');case'right':return At(_0x46bc7a,'FORMAT_ALIGN_TO_RIGHT');case'center':return At(_0x46bc7a,'FORMAT_ALIGN_TO_CENTER');case'justify':return At(_0x46bc7a,'FORMAT_JUSTIFY_TEXT');}}(_0x52aaa2))};}});}}const St=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Mt extends _0x298b0c{['afterInit'](){const _0x40e443=this['editor'],_0x4c0cd4=_0x40e443['plugins']['get']('TrackChangesEditing'),_0x5ee9ae=_0x40e443['locale'];for(const _0x3746b5 of St){if(!_0x40e443['plugins']['has'](_0x3746b5))continue;const _0x47ab40=_0x3746b5['slice'](0x0,-0x7)['toLowerCase'](),_0x1f5eb4='FORMAT_'+_0x47ab40['toUpperCase']();_0x4c0cd4['enableDefaultAttributesIntegration'](_0x47ab40),_0x4c0cd4['descriptionFactory']['registerAttributeLabel'](_0x47ab40,At(_0x5ee9ae,_0x1f5eb4));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a7b8b=this['editor'],_0x4808c4=_0x2a7b8b['locale'],_0x30e7b3=_0x2a7b8b['plugins']['get']('TrackChangesEditing');function _0x2c7c66(_0xedf1f,_0x53760e){_0x30e7b3['descriptionFactory']['registerDescriptionCallback'](_0xbf3c=>{if('formatInline'!=_0xbf3c['type'])return;const {data:_0x5cacdb}=_0xbf3c;return _0x5cacdb&&_0x5cacdb['commandName']===_0xedf1f?_0x5cacdb['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x4808c4,'*Format:*\x20%0',_0x53760e)}:{'type':'format','content':At(_0x4808c4,'*Remove\x20format:*\x20%0',_0x53760e)}:void 0x0;});}_0x2c7c66('bold',At(_0x4808c4,'FORMAT_BOLD')),_0x2c7c66('italic',At(_0x4808c4,'FORMAT_ITALIC')),_0x2c7c66('underline',At(_0x4808c4,'FORMAT_UNDERLINE')),_0x2c7c66('code',At(_0x4808c4,'FORMAT_CODE')),_0x2c7c66('strikethrough',At(_0x4808c4,'FORMAT_STRIKETHROUGH')),_0x2c7c66('subscript',At(_0x4808c4,'FORMAT_SUBSCRIPT')),_0x2c7c66('superscript',At(_0x4808c4,'FORMAT_SUPERSCRIPT'));}}class Ot extends _0x298b0c{['afterInit'](){const _0x4c5350=this['editor'],_0x30db99=_0x4c5350['locale'];if(!_0x4c5350['plugins']['has']('BlockQuoteEditing'))return;const _0x13e822=_0x4c5350['plugins']['get']('TrackChangesEditing'),_0x3e244e=this['editor']['commands']['get']('blockQuote');_0x13e822['enableCommand']('blockQuote',(_0x267d09,_0x4a9a85={})=>{const _0x1ca1c5=this['editor']['model']['document']['selection'],_0x25e729=_0x4a9a85&&void 0x0!==_0x4a9a85['forceValue']?_0x4a9a85['forceValue']:!_0x3e244e['value'];let _0x1c78e2=[];if(_0x25e729){const _0x460372=Array['from'](_0x1ca1c5['getSelectedBlocks']())['filter'](_0x39ecbb=>wt(_0x39ecbb)||function(_0x85090b,_0x145d3c){const _0x59efb3=_0x145d3c['checkChild'](_0x85090b['parent'],'blockQuote'),_0x317730=_0x145d3c['checkChild'](['$root','blockQuote'],_0x85090b);return _0x59efb3&&_0x317730;}(_0x39ecbb,this['editor']['model']['schema']));_0x1c78e2=Tt(_0x460372,_0x4c5350['model']);}else{const _0x4e5ac0=Array['from'](_0x1ca1c5['getSelectedBlocks']())['filter'](_0x2e56c7=>wt(_0x2e56c7));_0x1c78e2=Tt(_0x4e5ac0,_0x4c5350['model']);}_0x4c5350['model']['change'](()=>{for(const _0x485d7f of _0x1c78e2)_0x13e822['markBlockFormat'](_0x485d7f,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x25e729}]});});}),_0x13e822['descriptionFactory']['registerDescriptionCallback'](_0x4fb9cb=>{const {data:_0x135256}=_0x4fb9cb;if(_0x135256&&'blockQuote'==_0x135256['commandName']){const _0x4fb579=At(_0x30db99,'ELEMENT_BLOCK_QUOTE');return _0x135256['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x30db99,'*Set\x20format:*\x20%0',_0x4fb579)}:{'type':'format','content':At(_0x30db99,'*Remove\x20format:*\x20%0',_0x4fb579)};}});}}function wt(_0x9bf484){return'blockQuote'==_0x9bf484['parent']['name'];}class Bt extends _0x298b0c{['afterInit'](){const _0x302a4c=this['editor'],_0x417b5d=_0x302a4c['locale'],_0x5c2b18=_0x302a4c['plugins']['get']('TrackChangesEditing');_0x302a4c['plugins']['has']('BookmarkEditing')&&(_0x5c2b18['enableCommand']('insertBookmark'),_0x5c2b18['enableDefaultAttributesIntegration']('updateBookmark'),_0x5c2b18['descriptionFactory']['registerDescriptionCallback'](_0x5ee700=>{if('insertion'!=_0x5ee700['type']&&'deletion'!=_0x5ee700['type']&&'attribute'!=_0x5ee700['type'])return;const _0x2a1f93=_0x5ee700['getContainedElement']();if(null==_0x2a1f93)return;if(!_0x2a1f93['is']('element','bookmark'))return;const _0x100d53=_0x2a1f93['getAttribute']('bookmarkId');if('insertion'==_0x5ee700['type'])return{'type':'insertion','content':At(_0x417b5d,'*Insert:*\x20%0','\x22'+_0x100d53+'\x22\x20'+At(_0x417b5d,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5ee700['type'])return{'type':'deletion','content':At(_0x417b5d,'*Remove:*\x20%0','\x22'+_0x100d53+'\x22\x20'+At(_0x417b5d,'ELEMENT_BOOKMARK'))};const {data:_0x15d567}=_0x5ee700;if(!_0x15d567||'bookmarkId'!=_0x15d567['key'])return;return{'type':'format','content':At(_0x417b5d,'*Set\x20bookmark:*\x20%0','\x22'+_0x15d567['newValue']+'\x22')};}));}}class Ft extends _0x298b0c{['afterInit'](){const _0x879506=this['editor'];_0x879506['plugins']['has']('CaseChange')&&(_0x879506['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x879506['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x879506['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class Dt extends _0x298b0c{['afterInit'](){const _0x1e17e5=this['editor'];_0x1e17e5['commands']['get']('ckbox')&&_0x1e17e5['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class vt extends _0x298b0c{['afterInit'](){const _0x29aec5=this['editor'];if(!_0x29aec5['plugins']['has']('CodeBlock'))return;const _0xf8b1e1=_0x29aec5['plugins']['get']('TrackChangesEditing'),_0x5d3a96=_0x29aec5['locale'],_0x43022a=_0x29aec5['config']['get']('codeBlock')['languages'],_0x21b456=_0x29aec5['commands']['get']('codeBlock');_0xf8b1e1['enableCommand']('indentCodeBlock'),_0xf8b1e1['enableCommand']('outdentCodeBlock'),_0xf8b1e1['enableCommand']('codeBlock',(_0x19bb55,_0x554e46={})=>{const _0x386179=_0x29aec5['model'],_0x394f16=_0x29aec5['model']['document']['selection'],_0xb38dd1=_0x554e46&&void 0x0!==_0x554e46['forceValue']?_0x554e46['forceValue']:!_0x21b456['value'];let _0x263119;_0x554e46['language']||(_0x554e46['language']=_0x43022a[0x0]['language']),_0x263119=_0xb38dd1?Array['from'](_0x394f16['getSelectedBlocks']())['filter'](_0x4410f4=>xt(_0x4410f4)||function(_0x57e266,_0x376783){if(_0x57e266['is']('rootElement')||_0x376783['isLimit'](_0x57e266))return!0x1;return _0x376783['checkChild'](_0x57e266['parent'],'codeBlock');}(_0x4410f4,_0x386179['schema'])):Array['from'](_0x394f16['getSelectedBlocks']())['filter'](_0x147c7d=>xt(_0x147c7d));const _0x35ff0e=Tt(_0x263119,_0x386179);_0x386179['change'](()=>{for(const _0x5188c1 of _0x35ff0e)_0xf8b1e1['markBlockFormat'](_0x5188c1,{'commandName':'codeBlock','commandParams':[{..._0x554e46,'forceValue':_0xb38dd1}],'formatGroupId':'blockName'});});}),(_0xf8b1e1['descriptionFactory']['registerElementLabel']('codeBlock',_0x156da2=>At(_0x5d3a96,'ELEMENT_CODE_BLOCK',_0x156da2)),_0xf8b1e1['descriptionFactory']['registerDescriptionCallback'](_0x164a6b=>{if('formatBlock'!=_0x164a6b['type'])return;const _0x657e8e=_0x5d3a96['t'],{data:_0x33c0ef}=_0x164a6b;if(!_0x33c0ef||'codeBlock'!=_0x33c0ef['commandName'])return;const _0x35fff0=_0x33c0ef['commandParams'][0x0]['language'],_0x553893=_0x657e8e(_0x43022a['find'](_0x425556=>_0x425556['language']===_0x35fff0)['label'])['toLowerCase']();return _0x33c0ef['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x5d3a96,'*Set\x20format:*\x20%0',At(_0x5d3a96,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x553893+')')}:{'type':'format','content':At(_0x5d3a96,'*Remove\x20format:*\x20%0',At(_0x5d3a96,'ELEMENT_CODE_BLOCK',0x1))};}));}}function xt(_0x417961){return'codeBlock'==_0x417961['name'];}class Pt extends _0x298b0c{['afterInit'](){const _0x4caf32=this['editor'];if(!_0x4caf32['plugins']['has']('CommentsEditing'))return;_0x4caf32['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Ut extends _0x298b0c{static get['requires'](){return[at];}['init'](){const _0xa4473c=this['editor'],_0x4c17ed=_0xa4473c['plugins']['get']('TrackChangesEditing');_0x4c17ed['enableCommand']('delete');const _0x2c0629=_0xa4473c['commands']['get']('deleteForward');_0x4c17ed['enableCommand']('deleteForward',(_0x32423d,_0x5c1ffb={})=>{const _0x4f27b9=_0xa4473c['model']['createSelection'](_0xa4473c['model']['document']['selection']);_0x4f27b9['isCollapsed']&&_0xa4473c['model']['modifySelection'](_0x4f27b9,{'direction':'forward','unit':_0x5c1ffb['unit']});const _0x2ca242=_0x4f27b9['getFirstRange'](),_0x1be3f1=_0x3756aa['fromRange'](_0x2ca242);let _0x2cb5f1;_0x32423d(_0x5c1ffb),_0x2cb5f1='$graveyard'==_0x1be3f1['root']['rootName']?_0xa4473c['model']['createRange'](_0x2ca242['start']):_0xa4473c['model']['createRange'](_0x1be3f1['start'],_0x1be3f1['end']),_0x1be3f1['detach'](),_0xa4473c['model']['enqueueChange'](_0x2c0629['buffer']['batch'],_0xfbcdbb=>{_0x2c0629['buffer']['lock'](),_0xfbcdbb['setSelection'](_0xfbcdbb['createRange'](_0x2cb5f1['end'])),_0x2c0629['buffer']['unlock']();});});}}class Gt extends _0x298b0c{['afterInit'](){const _0x5aeb70=this['editor'];if(!_0x5aeb70['plugins']['has']('ListEditing'))return;const _0x5acc1d=_0x5aeb70['locale'],_0x4a3f47=_0x5aeb70['plugins']['get']('TrackChangesEditing'),_0x444450=_0x5aeb70['plugins']['has']('TodoListEditing'),_0x590f5a=!!_0x5aeb70['config']['get']('list.multiBlock');function _0x4e9450(_0x1c6195){return{'type':'format','content':''+At(_0x5acc1d,'*Set\x20format:*\x20%0',_0x1c6195)};}function _0x222f67(_0x47f812){return{'type':'format','content':''+At(_0x5acc1d,'*Remove\x20format:*\x20%0',_0x47f812)};}_0x4a3f47['enableDefaultAttributesIntegration']('numberedList'),_0x4a3f47['enableDefaultAttributesIntegration']('bulletedList'),_0x4a3f47['enableDefaultAttributesIntegration']('customNumberedList'),_0x4a3f47['enableDefaultAttributesIntegration']('customBulletedList'),_0x4a3f47['enableDefaultAttributesIntegration']('indentList'),_0x4a3f47['enableDefaultAttributesIntegration']('outdentList'),_0x4a3f47['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4a3f47['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x590f5a&&(_0x4a3f47['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4a3f47['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x444450&&(_0x4a3f47['enableDefaultAttributesIntegration']('todoList'),_0x4a3f47['enableDefaultAttributesIntegration']('checkTodoList'),_0x4a3f47['descriptionFactory']['registerDescriptionCallback'](_0x7414f2=>{const {data:_0x2d803d}=_0x7414f2;if(_0x2d803d&&'todoListChecked'==_0x2d803d['key'])return{'type':'format','content':_0x2d803d['newValue']?At(_0x5acc1d,'*Check\x20item*'):At(_0x5acc1d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x545422=>{if(_0x545422['batch']['isUndo'])return!0x1;let _0x2898db=!0x1;const _0x38f769=_0x4a3f47['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x59cccd=>'todoListChecked'===_0x4a3f47['_getAttributeKey'](_0x59cccd));for(const _0x48e10c of _0x38f769){'todo'!=_0x48e10c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4a3f47['_findSuggestions'](_0x48e10c['getFirstRange'](),'attribute')['find'](_0x56614d=>'listType'===_0x4a3f47['_getAttributeKey'](_0x56614d['suggestion']))||(_0x545422['removeMarker'](_0x48e10c['getFirstMarker']()),_0x2898db=!0x0));}return _0x2898db;})),_0x4a3f47['descriptionFactory']['registerAttributeLabel']('listIndent',At(_0x5acc1d,'FORMAT_INDENT'));const _0x18d160={'type':'format','content':''};_0x4a3f47['descriptionFactory']['registerDescriptionCallback'](_0xc5dec0=>{const {data:_0x36a1b9}=_0xc5dec0;if(!_0x36a1b9||'listType'!=_0x36a1b9['key'])return;let _0x5aaee1=_0xc5dec0['head'];for(;_0x5aaee1;){if(_0x5aaee1['data']&&(('listStyle'==_0x5aaee1['data']['key']||'listMarkerStyle'==_0x5aaee1['data']['key'])&&(_0x5aaee1['data']['newValue']&&'default'!=_0x5aaee1['data']['newValue']||'default'!=_0x5aaee1['data']['oldValue']&&!_0x36a1b9['newValue'])||!_0x590f5a&&_0x5aaee1['data']['key']==Ke))return _0x18d160;_0x5aaee1=_0x5aaee1['next'];}if(null==_0x36a1b9['newValue'])switch(_0x36a1b9['oldValue']){case'bulleted':return _0x222f67(At(_0x5acc1d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x222f67(At(_0x5acc1d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x222f67(At(_0x5acc1d,'ELEMENT_TODO_LIST'));}switch(_0x36a1b9['newValue']){case'bulleted':return _0x4e9450(At(_0x5acc1d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4e9450(At(_0x5acc1d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4e9450(At(_0x5acc1d,'ELEMENT_TODO_LIST'));}}),_0x4a3f47['descriptionFactory']['registerDescriptionCallback'](_0x16d8ad=>{const {data:_0x46e093}=_0x16d8ad;if(_0x46e093&&'listIndent'==_0x46e093['key'])return null==_0x46e093['newValue']||null==_0x46e093['oldValue']&&0x0==_0x46e093['newValue']?_0x18d160:void 0x0;}),_0x4a3f47['descriptionFactory']['registerDescriptionCallback'](_0x9fd034=>{if('attribute'!=_0x9fd034['type'])return;const {data:_0x3d34c3}=_0x9fd034;if(!_0x3d34c3||'listItemId'!=_0x3d34c3['key'])return;const _0x3d37ad=Ht(_0x9fd034);return'newValue'==_0x3d37ad?{'type':'format','content':At(_0x5acc1d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3d37ad?{'type':'format','content':At(_0x5acc1d,'*Split:*\x20list\x20item')}:_0x18d160;}),_0x5aeb70['model']['document']['registerPostFixer'](_0x143ea7=>this['listItemIdFixer'](_0x143ea7)),_0x5aeb70['model']['document']['registerPostFixer'](_0x30c0c4=>this['noTrackChangesFixer'](_0x30c0c4)),_0x5aeb70['model']['document']['on']('change:data',(_0x475d62,_0x21129c)=>{if(_0x21129c['isUndo']||!_0x21129c['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1395ee){if(_0x1395ee['batch']['isUndo']||!_0x1395ee['batch']['isLocal'])return!0x1;let _0xf7ee11=!0x1;const _0x50f80e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x57947c=>_0x57947c['data']&&'listItemId'==_0x57947c['data']['key'])['filter'](_0x1f9f4f=>_0x1f9f4f['data']['newValue']&&_0x1f9f4f['data']['oldValue']);for(const _0x45a696 of _0x50f80e)Ht(_0x45a696)||(_0x1395ee['removeMarker'](_0x45a696['getFirstMarker']()),_0xf7ee11=!0x0);return _0xf7ee11;}['noTrackChangesFixer'](_0x5eae55){if(_0x5eae55['batch']['isUndo']||!_0x5eae55['batch']['isLocal'])return!0x1;const _0x457977=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x457977['trackChangesCommand']['value'])return!0x1;let _0x1cc9c4=!0x1;const _0x5743ce=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x142374=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4b4d4b=>'attribute'==_0x4b4d4b['type'])['filter'](_0x2215e4=>_0x5743ce['includes'](_0x2215e4['attributeKey']));if(0x0==_0x142374['length'])return _0x1cc9c4;for(const _0xa83e04 of _0x142374){const _0x3e5b73=_0x457977['_findSuggestions'](_0xa83e04['range'],'attribute')['filter'](_0x22b191=>!_0x22b191['meta']['isNextTo'])['map'](_0x2a042a=>_0x2a042a['suggestion'])['filter'](_0x5b109f=>{const _0x432309=_0x457977['_getAttributeKey'](_0x5b109f);return _0x5743ce['includes'](_0x432309);});if(_0x3e5b73['length']){for(const _0x5baf23 of _0x3e5b73)_0x5eae55['removeMarker'](_0x5baf23['getFirstMarker']());_0x1cc9c4=!0x0;}}return _0x1cc9c4;}['assureChains'](){const _0x49b6a0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18bb16=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x27d368;const _0x1c3e81=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x126457=>{if(_0x126457['data']['oldRange']||!_0x126457['data']['newRange'])return null;if(!_0x126457['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2fafde}=_0x438505(_0x126457['name']);if(!_0x49b6a0['hasSuggestion'](_0x2fafde))return null;const _0x2cf1a8=_0x49b6a0['getSuggestion'](_0x2fafde);return _0x18bb16['includes'](_0x2cf1a8['data']['key']);})['map'](_0x4a274b=>{const {id:_0x161f1d}=_0x438505(_0x4a274b['name']),_0x51e761=_0x49b6a0['getSuggestion'](_0x161f1d);return _0x27d368=_0x51e761['attributes']['groupId'],_0x51e761['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1c3e81['size'])return;const _0x416f35=_0x49b6a0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x296520=>'attribute'==_0x296520['type']&&_0x296520['data']&&_0x18bb16['includes'](_0x296520['data']['key'])&&_0x296520['attributes']['groupId']!=_0x27d368)['map'](_0x12a9d4=>({'listItem':_0x12a9d4['getFirstRange']()['start']['nodeAfter'],'groupId':_0x12a9d4['attributes']['groupId']})),_0x4f66b3=new Set();for(const {groupId:_0x2d7b47,listItem:_0x58c7c8}of _0x416f35)_0x1c3e81['has'](_0x58c7c8)&&_0x4f66b3['add'](_0x2d7b47);for(const _0x30b6dd of _0x49b6a0['getSuggestions']())_0x4f66b3['has'](_0x30b6dd['attributes']['groupId'])&&_0x30b6dd['setAttribute']('groupId',_0x27d368);}['_supportLegacySuggestions'](){const _0x2e77f0=this['editor'],_0x349e70=_0x2e77f0['locale'],_0x165cd0=_0x2e77f0['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x165cd0['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2403f8,_0x13b5d9){const _0x5d6724=[];for(let _0x476553 of _0x2403f8)_0x476553['start']['nodeAfter']===_0x476553['end']['parent']&&(_0x476553=_0x2e77f0['model']['createRange'](_0x2e77f0['model']['createPositionAt'](_0x476553['start']['nodeAfter'],0x0))),_0x5d6724['push'](_0x476553);_0x2e77f0['model']['change'](_0x18bfa9=>{const _0x4e8fd1=_0x2e77f0['model']['document']['selection'],_0x3b894d=Array['from'](_0x4e8fd1['getRanges']())['map'](_0xa4cdc4=>_0x3756aa['fromRange'](_0xa4cdc4));_0x18bfa9['setSelection'](_0x5d6724),_0x2e77f0['commands']['get'](_0x13b5d9['commandName'])['refresh'](),_0x13b5d9['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2e77f0['execute'](_0x13b5d9['commandName'],..._0x13b5d9['commandParams']),_0x18bfa9['setSelection'](_0x3b894d);for(const _0xa4687c of _0x3b894d)_0xa4687c['detach']();});}),_0x165cd0['descriptionFactory']['registerElementLabel'](function(_0x365a9c){const _0x166d89=!_0x2e77f0['model']['schema']['isObject'](_0x365a9c),_0x48efc5=_0x365a9c['previousSibling'],_0x1f1754=_0x365a9c['nextSibling'],_0xd0e707=_0x365a9c['getAttribute']('listItemId'),_0x3392b9=!_0x48efc5||_0x48efc5['getAttribute']('listItemId')!==_0xd0e707,_0x47fbae=!_0x1f1754||_0x1f1754['getAttribute']('listItemId')!==_0xd0e707;return _0x166d89&&Boolean(_0xd0e707)&&_0x3392b9&&_0x47fbae;},_0x2fbc3f=>At(_0x349e70,'ELEMENT_LIST_ITEM',_0x2fbc3f));}['_registerLegacyDescription'](){const _0x282793=this['editor'],_0x57e4a5=_0x282793['locale'];function _0x5e95e5(_0x4ec740){const _0x5a049e=_0x282793['commands']['get']('bulletedList')['value'],_0x5e6951=_0x282793['commands']['get']('numberedList')['value'];return'numberedList'===_0x4ec740?_0x5a049e:_0x5e6951;}_0x282793['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3a87c5){if('formatBlock'!=_0x3a87c5['type'])return;const {data:_0x32ba0a}=_0x3a87c5;if(!_0x32ba0a)return;let _0x2399a8,_0xee042d,_0x569b15,_0x34a0ff;switch(_0x32ba0a['commandName']){case'bulletedList':_0x569b15=_0x32ba0a['commandParams'][0x0]['forceValue'],_0x34a0ff=_0x5e95e5(_0x32ba0a['commandName']),_0x2399a8=_0x569b15?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x34a0ff&&_0x282793['config']['get']('list.multiBlock')||(_0x2399a8='*Change\x20to:*\x20%0'),_0xee042d={'type':'format','content':At(_0x57e4a5,_0x2399a8,At(_0x57e4a5,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x569b15=_0x32ba0a['commandParams'][0x0]['forceValue'],_0x34a0ff=_0x5e95e5(_0x32ba0a['commandName']),_0x2399a8=_0x569b15?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x34a0ff&&_0x282793['config']['get']('list.multiBlock')||(_0x2399a8='*Change\x20to:*\x20%0'),_0xee042d={'type':'format','content':At(_0x57e4a5,_0x2399a8,At(_0x57e4a5,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2399a8='*Indent:*\x20%0',_0xee042d={'type':'format','content':At(_0x57e4a5,_0x2399a8,At(_0x57e4a5,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2399a8=function(_0xac6f3d){const _0x584896=_0xac6f3d['getFirstRange']();let _0x3e466b=_0x584896['start']['nodeAfter'];for(;_0x3e466b&&_0x584896['containsItem'](_0x3e466b);){if(_0x3e466b['getAttribute']('listIndent')>0x0)return!0x1;_0x3e466b=_0x3e466b['nextSibling'];}return!0x0;}(_0x3a87c5)?At(_0x57e4a5,'*Format:*\x20remove\x20from\x20%0',At(_0x57e4a5,function(_0x1f3a9a){return'ELEMENT_'+_0x1f3a9a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3a87c5))):At(_0x57e4a5,'*Outdent:*\x20%0',At(_0x57e4a5,'ELEMENT_LIST_ITEM')),_0xee042d={'type':'format','content':_0x2399a8};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x32ba0a['multipleBlocks']&&(_0x2399a8='*Merge:*\x20%0',_0xee042d={'type':'deletion','content':At(_0x57e4a5,_0x2399a8,At(_0x57e4a5,'ELEMENT_LIST_ITEM'))});}return _0xee042d;});}}function Ht(_0x350705){let _0x19acc5=_0x350705['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x19acc5;){const _0x332d94=_0x19acc5['getAttribute']('listItemId');if(!_0x332d94)return!0x1;if(_0x332d94==_0x350705['data']['newValue'])return'newValue';if(_0x332d94==_0x350705['data']['oldValue'])return'oldValue';_0x19acc5=_0x19acc5['previousSibling'];}return!0x1;}class $t extends _0x298b0c{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3c6d2d=this['editor']['config']['get']('list.properties'),_0x271afc=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c6d2d['styles']&&_0x271afc['enableDefaultAttributesIntegration']('listStyle'),_0x3c6d2d['reversed']&&_0x271afc['enableDefaultAttributesIntegration']('listReversed'),_0x3c6d2d['startIndex']&&_0x271afc['enableDefaultAttributesIntegration']('listStart');const _0x5515e4={'type':'format','content':''};_0x271afc['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x50f17b=this['editor']['locale'];_0x271afc['descriptionFactory']['registerAttributeLabel']('listReversed',At(_0x50f17b,'FORMAT_LIST_REVERSED')),_0x271afc['descriptionFactory']['registerDescriptionCallback'](_0xd1e0e7=>{const {data:_0x310988}=_0xd1e0e7;if(_0x310988&&'listReversed'==_0x310988['key'])return null==_0x310988['newValue']||0x0==_0x310988['newValue']&&null==_0x310988['oldValue']?_0x5515e4:void 0x0;}),_0x271afc['descriptionFactory']['registerAttributeLabel']('listStart',At(_0x50f17b,'FORMAT_LIST_START')),_0x271afc['descriptionFactory']['registerDescriptionCallback'](_0x422f1f=>{const {data:_0x57cd20}=_0x422f1f;if(_0x57cd20&&'listStart'==_0x57cd20['key'])return null==_0x57cd20['newValue']||0x1==_0x57cd20['newValue']&&null==_0x57cd20['oldValue']?_0x5515e4:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x451de9=>{if(_0x451de9['batch']['isUndo'])return!0x1;let _0x1070af=!0x1;const _0x1e325c=_0x271afc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x296b97=>{const _0x151044=_0x271afc['_getAttributeKey'](_0x296b97);return'listStart'==_0x151044||'listReversed'==_0x151044;});for(const _0x4cc14e of _0x1e325c){const _0x4d6fff=_0x4cc14e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4d6fff||'customNumbered'==_0x4d6fff)continue;_0x271afc['_findSuggestions'](_0x4cc14e['getFirstRange'](),'attribute')['find'](_0x48f15e=>'listType'==_0x271afc['_getAttributeKey'](_0x48f15e['suggestion']))||(_0x451de9['removeMarker'](_0x4cc14e['getFirstMarker']()),_0x1070af=!0x0);}return _0x1070af;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x183978){const _0x168374=this['editor']['locale'],{data:_0x10ea5c}=_0x183978,_0x1d1e24={'type':'format','content':''};if(!_0x10ea5c||'listStyle'!=_0x10ea5c['key'])return;if(!_0x10ea5c['oldValue'])return'default'==_0x10ea5c['newValue']?_0x1d1e24:{'type':'format','content':''+At(_0x168374,'*Set\x20format:*\x20%0',At(_0x168374,this['_getTranslationKeyForListStyle'](_0x10ea5c['newValue'])))};if(!_0x10ea5c['newValue']){if('default'==_0x10ea5c['oldValue'])return _0x1d1e24;let _0x544948=_0x183978['head'];for(;_0x544948;){if(_0x544948['data']&&'listType'==_0x544948['data']['key']&&_0x544948['data']['newValue'])return _0x1d1e24;_0x544948=_0x544948['next'];}return{'type':'format','content':''+At(_0x168374,'*Remove\x20format:*\x20%0',At(_0x168374,this['_getTranslationKeyForListStyle'](_0x10ea5c['oldValue'])))};}if('default'!=_0x10ea5c['newValue'])return{'type':'format','content':''+At(_0x168374,'*Set\x20format:*\x20%0',At(_0x168374,this['_getTranslationKeyForListStyle'](_0x10ea5c['newValue'])))};let _0x360fde=_0x183978['head'];for(;_0x360fde;){if(_0x360fde['data']&&'listType'==_0x360fde['data']['key']&&_0x360fde['data']['newValue']&&_0x360fde['data']['oldValue'])return _0x1d1e24;_0x360fde=_0x360fde['next'];}return{'type':'format','content':At(_0x168374,'*Set\x20format:*\x20%0',At(_0x168374,'ELEMENT_'+_0x183978['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x165de2=this['editor'],_0x473118=_0x165de2['locale'];_0x165de2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4dbdae=>{if('formatBlock'!=_0x4dbdae['type'])return;const {data:_0x243016}=_0x4dbdae;if(!_0x243016)return;let _0x2f1693,_0x39b0cf;switch(_0x243016['commandName']){case'listStyle':_0x2f1693='*Change\x20to:*\x20%0',_0x39b0cf={'type':'format','content':At(_0x473118,_0x2f1693,At(_0x473118,this['_getTranslationKeyForListStyle'](_0x243016['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2f1693=_0x243016['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x39b0cf={'type':'format','content':At(_0x473118,_0x2f1693)};break;case'listStart':_0x2f1693='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x39b0cf={'type':'format','content':At(_0x473118,_0x2f1693,_0x243016['commandParams'][0x0]['startIndex'])};}return _0x39b0cf;});}['_getTranslationKeyForListStyle'](_0x5ca053){return'ELEMENT_'+function(_0x48a913){if(Wt['includes'](_0x48a913))return'bulleted';if(Vt['includes'](_0x48a913))return'numbered';return null;}(_0x5ca053)['toUpperCase']()+'_LIST_'+_0x5ca053['toUpperCase']()['replace'](/-/g,'_');}}const Wt=['disc','circle','square'],Vt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class jt extends _0x298b0c{['afterInit'](){const _0x2e0165=this['editor'];_0x2e0165['commands']['get']('emoji')&&_0x2e0165['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class zt extends _0x298b0c{static get['requires'](){return[lt];}['init'](){const _0x595c17=this['editor'],_0x10c978=_0x595c17['plugins']['get']('TrackChangesEditing'),_0x11c90d=_0x595c17['commands']['get']('enter');_0x10c978['enableCommand']('enter',()=>{_0x595c17['model']['change'](_0x23b270=>{const _0x18ea4c=_0x595c17['model']['document']['selection'],_0x500420=_0x18ea4c['getFirstPosition'](),_0x16cdcd=_0x3756aa['fromRange'](_0x18ea4c['getFirstRange']());if(_0x11c90d['enterBlock'](_0x23b270)){const _0x3b26c1=_0x595c17['model']['createPositionAt'](_0x500420['parent']['nextSibling'],0x0),_0x171516=_0x23b270['createRange'](_0x500420,_0x3b26c1);_0x10c978['markInsertion'](_0x171516);}else _0x23b270['setSelection'](_0x23b270['createRange'](_0x16cdcd['end']));_0x16cdcd['detach'](),_0x11c90d['fire']('afterExecute',{'writer':_0x23b270});});});}}class Kt extends _0x298b0c{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4f68ed=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f68ed['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4f68ed['enableCommand']('findNext'),_0x4f68ed['enableCommand']('findPrevious'),_0x4f68ed['enableCommand']('replace'),_0x4f68ed['enableCommand']('replaceAll');}['handleFindCommand'](_0x582b32,_0x1464fd,_0x51266f={}){const _0x16fbc2=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x582b32(_0x4a66a0=>{let _0x3248bb=('string'==typeof _0x1464fd?_0x16fbc2['findByTextCallback'](_0x1464fd,_0x51266f):_0x1464fd)(_0x4a66a0);Array['isArray'](_0x3248bb)&&(_0x3248bb={'results':_0x3248bb,'searchText':'string'==typeof _0x1464fd?_0x1464fd:''});const _0x531fe5=_0x3248bb['results']['filter'](_0x491472=>!0x1===this['_isInDeletionRange'](_0x491472,_0x4a66a0['item']));return{..._0x3248bb,'results':_0x531fe5};},_0x51266f);}['_isInDeletionRange'](_0x19ed5e,_0x4c69f7){const _0xee0b85=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4c69f7,_0x19ed5e['start']),this['editor']['model']['createPositionAt'](_0x4c69f7,_0x19ed5e['end']));for(const _0x39fb7a of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xee0b85['getIntersection'](_0x39fb7a['getRange']()))return!0x0;return!0x1;}}const Xt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Yt extends _0x298b0c{['afterInit'](){const _0x4d971a=this['editor']['locale'],_0x543429=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x33f84f,commandName:_0x4d0b7b}of Xt)this['editor']['plugins']['has'](_0x33f84f)&&_0x543429['enableDefaultAttributesIntegration'](_0x4d0b7b);_0x543429['descriptionFactory']['registerAttributeLabel']('fontSize',At(_0x4d971a,'FORMAT_FONT_SIZE')),_0x543429['descriptionFactory']['registerAttributeLabel']('fontFamily',At(_0x4d971a,'FORMAT_FONT_FAMILY')),_0x543429['descriptionFactory']['registerAttributeLabel']('fontColor',At(_0x4d971a,'FORMAT_FONT_COLOR')),_0x543429['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',At(_0x4d971a,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47981f=this['editor'],_0x215356=_0x47981f['locale'];_0x47981f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bb276=>{const _0x1659d6=_0x215356['t'];if('formatInline'!=_0x2bb276['type'])return;const {data:_0x57f9c8}=_0x2bb276;if(null!=_0x57f9c8){if('fontSize'==_0x57f9c8['commandName']){const _0x53307f=_0x57f9c8['commandParams'][0x0]['value'];if(_0x53307f){const _0x412f50=_0x1659d6(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1c5497=>_0x1c5497['model']==_0x53307f)['title'])['toLowerCase']();return{'type':'format','content':At(_0x215356,'*Set\x20font\x20size:*\x20%0',_0x412f50)};}return{'type':'format','content':At(_0x215356,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x57f9c8['commandName']){const _0x44e22b=_0x57f9c8['commandParams'][0x0]['value'];return _0x44e22b?{'type':'format','content':At(_0x215356,'*Set\x20font\x20family:*\x20%0',_0x44e22b)}:{'type':'format','content':At(_0x215356,'*Reset\x20font\x20family*')};}if('fontColor'==_0x57f9c8['commandName']){const _0x31b107=_0x57f9c8['commandParams'][0x0]['value'];if(_0x31b107){const _0x404b53=_0x4a7a34(this['editor']['config']['get']('fontColor.colors'))['find'](_0xb2b13d=>_0xb2b13d['model']==_0x31b107);let _0x54b3af=_0x31b107,_0x38da22='';return _0x404b53&&(_0x54b3af=_0x404b53['label'],_0x38da22=_0x1659d6(_0x54b3af)['toLowerCase']()),{'type':'format','content':At(_0x215356,'*Set\x20font\x20color:*\x20%0',_0x38da22)['trim'](),'color':{'value':_0x31b107,'title':_0x38da22||_0x54b3af}};}return{'type':'format','content':At(_0x215356,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x57f9c8['commandName']){const _0x1e440f=_0x57f9c8['commandParams'][0x0]['value'];if(_0x1e440f){const _0x59d85d=_0x4a7a34(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2317b1=>_0x2317b1['model']==_0x1e440f);let _0x153050=_0x1e440f,_0xbb7f42='';return _0x59d85d&&(_0x153050=_0x59d85d['label'],_0xbb7f42=_0x1659d6(_0x153050)['toLowerCase']()),{'type':'format','content':At(_0x215356,'*Set\x20font\x20background\x20color:*\x20%0',_0xbb7f42)['trim'](),'color':{'value':_0x1e440f,'title':_0xbb7f42||_0x153050}};}return{'type':'format','content':At(_0x215356,'*Reset\x20font\x20background\x20color*')};}}});}}class qt extends _0x298b0c{['afterInit'](){const {plugins:_0x1d8d00}=this['editor'];_0x1d8d00['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x1d8d00['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0xcab82f,plugins:_0x51b8fd,commands:_0x18fda2}=this['editor'],_0x37d687=_0x51b8fd['get']('TrackChangesEditing');_0x18fda2['get']('footnotesStyle')&&_0x37d687['enableDefaultAttributesIntegration']('footnotesStyle'),_0x18fda2['get']('footnotesStart')&&_0x37d687['enableDefaultAttributesIntegration']('footnotesStart'),_0x37d687['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',At(_0xcab82f,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x37d687['descriptionFactory']['registerAttributeLabel']('footnotesListStart',At(_0xcab82f,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0xcdeb0f=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x4e79be,commands:_0x28af1d}=this['editor'];_0x28af1d['get']('insertFootnote')&&_0xcdeb0f['enableCommand']('insertFootnote'),_0xcdeb0f['descriptionFactory']['registerElementLabel']('footnoteRef',_0x261de0=>At(_0x4e79be,'ELEMENT_FOOTNOTE_REF',_0x261de0)),_0xcdeb0f['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0xb3ada7=>At(_0x4e79be,'ELEMENT_FOOTNOTE_DEFINITION',_0xb3ada7)),_0xcdeb0f['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x52d13f=>At(_0x4e79be,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x52d13f));}}class Qt extends _0x298b0c{['afterInit'](){const _0x3a2e61=this['editor'],_0x26a860=_0x3a2e61['plugins']['get']('TrackChangesEditing'),_0x24cff4=_0x3a2e61['commands']['get']('copyFormat'),_0x44f415=_0x3a2e61['commands']['get']('pasteFormat');_0x24cff4&&_0x44f415&&(_0x26a860['enableDefaultAttributesIntegration']('pasteFormat'),_0x26a860['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x10f455=this['editor'],_0x53c391=_0x10f455['locale'];_0x10f455['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ccb2f=>{if('formatBlock'!=_0x2ccb2f['type']&&'formatInline'!=_0x2ccb2f['type'])return;const {data:_0x26f274}=_0x2ccb2f;if(_0x26f274&&'pasteFormat'===_0x26f274['commandName']){const _0xff902e=[],_0x598282=_0x26f274['commandParams'][0x0];for(const [_0x299687,_0xc4db20]of Object['entries'](_0x598282))_0xff902e['push'](Zt(_0x10f455,_0x299687,_0xc4db20));return _0xff902e['length']?{'type':'format','content':At(_0x53c391,'*Set\x20format\x20to:*\x20%0',_0xff902e['join'](',\x20'))}:{'type':'format','content':At(_0x53c391,'*Remove\x20all\x20formatting*')};}});}}function Zt(_0x3089f8,_0x56165b,_0x71a268){const _0xbd2b30=_0x3089f8['locale']['t'],_0x3c1a24=_0x56165b['split'](/(?=[A-Z])/)['join']('\x20'),_0x1026d7=_0xbd2b30(_0x3c1a24['charAt'](0x0)['toUpperCase']()+_0x3c1a24['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x71a268)return _0x1026d7;if('fontColor'===_0x56165b||'fontBackgroundColor'===_0x56165b){const _0x5aeeeb=_0x4a7a34(_0x3089f8['config']['get']('fontColor.colors'))['find'](_0x447c5e=>_0x447c5e['model']==_0x71a268);return _0x1026d7+'\x20('+(_0x5aeeeb?_0xbd2b30(_0x5aeeeb['label'])['toLowerCase']():_0x71a268)+')';}if('fontSize'===_0x56165b&&isNaN(parseFloat(_0x71a268))){const _0x4110c4=_0x3089f8['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3089f8['config']['get']('fontSize.options'))['find'](_0x3982bb=>_0x3982bb['model']==_0x71a268);return _0x1026d7+'\x20('+(_0x4110c4?_0xbd2b30(_0x4110c4['title'])['toLowerCase']():_0x71a268)+')';}return _0x1026d7+'\x20('+_0x71a268+')';}class Jt extends _0x298b0c{['_headingOptions'];['afterInit'](){const _0xdd8bbc=this['editor'];if(!_0xdd8bbc['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xdd8bbc['config']['get']('heading.options');const _0x349d63=_0xdd8bbc['locale'],_0x4f65a5=_0xdd8bbc['plugins']['get']('TrackChangesEditing');_0x4f65a5['enableDefaultAttributesIntegration']('heading');for(const _0x3555ef of this['_headingOptions'])'paragraph'!=_0x3555ef['model']&&_0x4f65a5['descriptionFactory']['registerElementLabel'](_0x3555ef['model'],_0x4e45aa=>{const _0x499536=this['_getHeadingLevel'](_0x3555ef['model']);return null!==_0x499536?_0x4e0522(_0x4e45aa,_0x499536):_0x5a6f67(_0x4e45aa,_0x3555ef['title']);});function _0x4e0522(_0x4c0161,_0x5565c3){return At(_0x349d63,'ELEMENT_HEADING',[_0x4c0161,_0x5565c3]);}function _0x5a6f67(_0x4012db,_0x5e531a){return At(_0x349d63,'ELEMENT_HEADING_CUSTOM',[_0x4012db,_0x5e531a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54b47a=this['editor'],_0x3cb713=_0x54b47a['locale'];function _0x5c8137(_0x36b3fa,_0x36f267){return At(_0x3cb713,'ELEMENT_HEADING_CUSTOM',[_0x36b3fa,_0x36f267]);}_0x54b47a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1668bd=>{if('formatBlock'!=_0x1668bd['type'])return;const {data:_0x1cd9ff}=_0x1668bd;if(_0x1cd9ff&&'heading'==_0x1cd9ff['commandName']){const _0x16acff=_0x1cd9ff['commandParams'][0x0]['value'],_0x410baa=this['_getHeadingLevel'](_0x16acff);if(null!==_0x410baa)return{'type':'format','content':At(_0x3cb713,'*Change\x20to:*\x20%0',(_0x367fd4=0x1,_0xfbdd84=_0x410baa,At(_0x3cb713,'ELEMENT_HEADING',[_0x367fd4,_0xfbdd84])))};const _0x5792e1=this['_headingOptions']['find'](_0x2bb1a4=>_0x2bb1a4['model']===_0x16acff)['title'];return{'type':'format','content':At(_0x3cb713,'*Change\x20to:*\x20%0',_0x5c8137(0x1,_0x5792e1))};}var _0x367fd4,_0xfbdd84;});}['_getHeadingLevel'](_0xd9e32){const _0x2b73d9=_0xd9e32['match'](/^heading(\d+)/);if(_0x2b73d9)return _0x2b73d9[0x1];const _0x5b323e=this['_headingOptions']?.['find'](_0x3f06fe=>_0x3f06fe['model']==_0xd9e32);if(_0x5b323e&&_0x5b323e['view']){const _0x49eb68=_0x5b323e['view'],_0x4e283d=(_0x49eb68['name']??_0x49eb68)['match'](/^h(\d+)/);if(_0x4e283d)return _0x4e283d[0x1];}return null;}}class te extends _0x298b0c{['afterInit'](){const _0x10c98=this['editor'];if(!_0x10c98['plugins']['has']('HighlightEditing'))return;const _0x36c3d6=_0x10c98['plugins']['get']('TrackChangesEditing'),_0x3034fb=_0x10c98['locale'];_0x36c3d6['enableDefaultAttributesIntegration']('highlight'),_0x36c3d6['descriptionFactory']['registerAttributeLabel']('highlight',At(_0x3034fb,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x412971=this['editor'],_0x4bbc68=_0x412971['locale'];_0x412971['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6e7334=>{if('formatInline'!=_0x6e7334['type'])return;const {data:_0x47ed9b}=_0x6e7334;if(_0x47ed9b&&'highlight'==_0x47ed9b['commandName']){const _0xe65c93=_0x4bbc68['t'],_0x9cd86b=_0x47ed9b['commandParams'][0x0]['value'];if(_0x9cd86b){const _0x9bc8f9=_0x412971['config']['get']('highlight.options')['find'](_0x19745c=>_0x19745c['model']==_0x9cd86b),_0x4c8e3c=_0xe65c93(_0x9bc8f9['title'])['toLowerCase']();return{'type':'format','content':At(_0x4bbc68,'*Set\x20highlight:*\x20%0',_0x4c8e3c),'color':{'value':_0x9bc8f9['color'],'title':_0x9bc8f9['title']}};}return{'type':'format','content':At(_0x4bbc68,'*Remove\x20highlight*',At(_0x4bbc68,'FORMAT_HIGHLIGHT'))};}});}}class ee extends _0x298b0c{['afterInit'](){const _0x19f268=this['editor'];if(!_0x19f268['plugins']['has']('HorizontalLineEditing'))return;_0x19f268['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x13aa2e=_0x19f268['plugins']['get']('TrackChangesEditing'),_0x3589d1=_0x19f268['locale'];_0x13aa2e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1d6bc2=>At(_0x3589d1,'ELEMENT_HORIZONTAL_LINE',_0x1d6bc2));}}class ne extends _0x298b0c{['afterInit'](){const _0xe6f64=this['editor'];if(!_0xe6f64['plugins']['has']('HtmlEmbed'))return;const _0x3253f4=_0xe6f64['plugins']['get']('TrackChangesEditing'),_0x5d8270=_0xe6f64['locale'];_0x3253f4['descriptionFactory']['registerElementLabel']('rawHtml',_0x44a5a3=>At(_0x5d8270,'ELEMENT_HTML_EMBED',_0x44a5a3)),_0x3253f4['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3253f4['descriptionFactory']['registerDescriptionCallback'](_0x49f2a5=>{if('attribute'!=_0x49f2a5['type'])return;const {data:_0x20622c}=_0x49f2a5;if(_0x20622c&&'value'==_0x20622c['key']&&_0x49f2a5['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5e1086=At(_0x5d8270,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x5d8270,'*Change\x20%0\x20content*',_0x5e1086)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59d37a=this['editor'],_0x6d8778=_0x59d37a['locale'];_0x59d37a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x513546=>{if('formatBlock'!=_0x513546['type'])return;const {data:_0x3a43f1}=_0x513546;if(_0x3a43f1&&'htmlEmbed'==_0x3a43f1['commandName']){const _0x413fcd=At(_0x6d8778,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x6d8778,'*Change\x20%0\x20content*',_0x413fcd)};}});}}class ie extends _0x298b0c{['afterInit'](){const _0x2104c8=this['editor'];if(!_0x2104c8['plugins']['has']('ImageEditing'))return;const _0xacae75=_0x2104c8['plugins']['get']('TrackChangesEditing'),_0xf6d622=_0x2104c8['plugins']['get']('ImageUtils'),_0x28787c=_0x2104c8['locale'];_0xacae75['enableCommand']('insertImage'),_0xacae75['descriptionFactory']['registerElementLabel']('imageBlock',_0x1c268a=>At(_0x28787c,'ELEMENT_IMAGE',_0x1c268a)),_0xacae75['descriptionFactory']['registerElementLabel']('imageInline',_0x194aa5=>At(_0x28787c,'ELEMENT_INLINE_IMAGE',_0x194aa5)),_0xacae75['descriptionFactory']['registerElementLabel']('caption',()=>At(_0x28787c,'ELEMENT_CAPTION')),_0x2104c8['plugins']['has']('ImageUploadEditing')&&_0xacae75['enableCommand']('uploadImage'),_0x2104c8['plugins']['has']('ImageBlockEditing')&&_0x2104c8['plugins']['has']('ImageInlineEditing')&&(_0xacae75['enableCommand']('imageTypeInline',(_0x5ee55e,_0x10f6b1)=>{const _0x35ecc0=_0xf6d622['getClosestSelectedImageElement'](_0x2104c8['model']['document']['selection']);_0x2104c8['model']['change'](()=>{_0xacae75['markBlockFormat'](_0x35ecc0,{'commandName':'imageTypeInline','commandParams':[_0x10f6b1]},[],'convertBlockImageToInline');});}),_0xacae75['enableCommand']('imageTypeBlock',(_0x5a73ec,_0x1956b4)=>{_0x2104c8['model']['change'](_0x4b44fd=>{let _0x34b0d5=_0xf6d622['getClosestSelectedImageElement'](_0x2104c8['model']['document']['selection']),_0x4b7618=_0x4b44fd['createRangeOn'](_0x34b0d5);const _0x5cd2ce=tt['fromPosition'](_0x4b7618['start'],'toPrevious'),_0x2f9829=tt['fromPosition'](_0x4b7618['end'],'toNext');_0xacae75['forceDefaultExecution'](()=>_0x5a73ec(_0x1956b4)),_0x34b0d5=_0xf6d622['getClosestSelectedImageElement'](_0x2104c8['model']['document']['selection']),_0x4b7618=_0x4b44fd['createRangeOn'](_0x34b0d5);const _0x20f5bb=_0x4b44fd['createRange'](_0x5cd2ce,_0x2f9829);_0x5cd2ce['detach'](),_0x2f9829['detach'](),_0xacae75['markBlockFormat'](_0x34b0d5,{'commandName':'imageTypeInline','commandParams':[_0x1956b4]},[],'convertInlineImageToBlock'),_0x20f5bb['start']['isBefore'](_0x4b7618['start'])&&_0xacae75['markInsertion'](_0x4b44fd['createRange'](_0x20f5bb['start'],_0x4b7618['start']),'convertInlineImageToBlock'),_0x4b7618['end']['isBefore'](_0x20f5bb['end'])&&_0xacae75['markInsertion'](_0x4b44fd['createRange'](_0x4b7618['end'],_0x20f5bb['end']),'convertInlineImageToBlock');});}),_0xacae75['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xacae75['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xacae75['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xacae75['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xacae75['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xacae75['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x340e1d])=>{const _0x915108=_0xacae75['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x489d16=_0x340e1d['start'],_0xd4cfa0=_0x340e1d['end'];const _0x4bb520=_0x2104c8['model']['schema']['getNearestSelectionRange'](_0x489d16,'backward'),_0x154eb6=_0x2104c8['model']['schema']['getNearestSelectionRange'](_0xd4cfa0,'forward');_0x4bb520['isCollapsed']&&(_0x489d16=_0x4bb520['start']),_0x154eb6['isCollapsed']&&(_0xd4cfa0=_0x154eb6['end']),_0x915108([_0x2104c8['model']['createRange'](_0x489d16,_0xd4cfa0)]);}),_0xacae75['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x316a1e),_0xacae75['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x316a1e)),_0x2104c8['plugins']['has']('ImageCaptionEditing')&&(_0xacae75['enableCommand']('toggleImageCaption',(_0x1637f0,_0x395073)=>{const _0x5c0d28=_0x2104c8['plugins']['get']('ImageCaptionUtils');let _0x28d0f9=_0xf6d622['getClosestSelectedImageElement'](_0x2104c8['model']['document']['selection']),_0x5f0d2a=_0x5c0d28['getCaptionFromImageModelElement'](_0x28d0f9);_0x2104c8['model']['change'](()=>{if(_0x5f0d2a)return void _0xacae75['markDeletion'](_0x2104c8['model']['createRangeOn'](_0x5f0d2a));const _0x51e872=_0xf6d622['isBlockImage'](_0x28d0f9);_0x1637f0(_0x395073),_0x28d0f9=_0xf6d622['getClosestSelectedImageElement'](_0x2104c8['model']['document']['selection']),_0x5f0d2a=_0x5c0d28['getCaptionFromImageModelElement'](_0x28d0f9),_0xacae75['markInsertion'](_0x2104c8['model']['createRangeOn'](_0x5f0d2a),_0x51e872?null:'imageCaption');});}),_0xacae75['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x316a1e));const _0x446602=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x32ca33(_0x124791,_0x4f123c){const _0x31a02c=_0x446602['findIndex'](({type:_0x261784,subType:_0xdfd65c})=>_0x124791['type']==_0x261784&&_0x124791['subType']==_0xdfd65c),_0x52d15c=_0x446602['findIndex'](({type:_0x66894d,subType:_0xfb6558})=>_0x4f123c['type']==_0x66894d&&_0x4f123c['subType']==_0xfb6558);if(_0x31a02c<0x0||_0x52d15c<0x0)return!0x1;const _0x25f24c=_0x124791['getFirstRange'](),_0x1c031d=_0x4f123c['getFirstRange']();if((0x0==_0x31a02c||0x1==_0x31a02c)&&0x2==_0x52d15c&&_0x25f24c['isIntersecting'](_0x1c031d))return!0x0;if(0x2==_0x31a02c&&0x3==_0x52d15c){const _0x144142=_0xacae75['_findSuggestions'](_0x25f24c,'insertion')['filter'](({suggestion:_0x13d2d0,meta:_0x192c5c})=>_0x192c5c['isOwn']&&'convertInlineImageToBlock'==_0x13d2d0['subType']);if(_0x144142['length']>0x1&&_0x1c031d['end']['isEqual'](_0x25f24c['start']))return!0x0;if(0x1==_0x144142['length']&&(_0x25f24c['start']['isEqual'](_0x1c031d['end'])||_0x25f24c['end']['isEqual'](_0x1c031d['start'])))return!0x0;}if(0x3==_0x31a02c&&0x3==_0x52d15c&&_0x25f24c['start']['isBefore'](_0x1c031d['start'])){const _0x1fedc5=_0x25f24c['end']['nodeAfter'],_0x32e4be=_0x1c031d['start']['nodeBefore'];return _0xf6d622['isBlockImage'](_0x1fedc5)&&_0x1fedc5===_0x32e4be;}return!0x1;}function _0x316a1e(_0x325016,_0x168146){return _0x32ca33(_0x325016,_0x168146)?[_0x325016,_0x168146]:_0x32ca33(_0x168146,_0x325016)?[_0x168146,_0x325016]:null;}_0x2104c8['plugins']['has']('ImageResize')&&(_0xacae75['enableDefaultAttributesIntegration']('resizeImage'),_0xacae75['descriptionFactory']['registerAttributeLabel']('resizedWidth',At(_0x28787c,'FORMAT_IMAGE_SIZE'))),_0x2104c8['plugins']['has']('ImageTextAlternativeEditing')&&_0xacae75['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2104c8['plugins']['has']('PictureEditing')&&_0xacae75['descriptionFactory']['registerDescriptionCallback'](_0x54a4b4=>{if('attribute'!=_0x54a4b4['type'])return;const {data:_0x84f260}=_0x54a4b4;return _0x84f260&&'sources'==_0x84f260['key']?{'type':'format','content':''}:void 0x0;}),_0x2104c8['plugins']['has']('ImageSizeAttributes')&&_0xacae75['descriptionFactory']['registerDescriptionCallback'](_0x107a51=>{if('attribute'!=_0x107a51['type'])return;const {data:_0x42eee0}=_0x107a51;return!_0x42eee0||'width'!=_0x42eee0['key']&&'height'!=_0x42eee0['key']?void 0x0:{'type':'format','content':''};}),_0xacae75['descriptionFactory']['registerDescriptionCallback'](_0x23b3e3=>{if(!!_0x446602['find'](({type:_0x16b8cb,subType:_0x1c6434})=>_0x23b3e3['type']==_0x16b8cb&&_0x23b3e3['subType']==_0x1c6434))return _0x23b3e3['previous']?{}:void 0x0;}),_0xacae75['descriptionFactory']['registerDescriptionCallback'](_0xbf6d72=>{if('insertion'==_0xbf6d72['type']||'deletion'==_0xbf6d72['type']){const _0xb5881c=_0xbf6d72['getContainedElement']();if(_0xb5881c&&_0xb5881c['is']('element','caption'))return{'type':'insertion'==_0xbf6d72['type']?'addObject':'removeObject','element':_0xb5881c,'quantity':0x1};}}),_0xacae75['descriptionFactory']['registerDescriptionCallback'](_0x1d95cf=>'formatBlock'==_0x1d95cf['type']&&'convertInlineImageToBlock'==_0x1d95cf['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1d95cf['type']&&'convertBlockImageToInline'==_0x1d95cf['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xacae75['descriptionFactory']['registerDescriptionCallback'](_0x5e1932=>{if('attribute'!=_0x5e1932['type'])return;const {data:_0x41f891}=_0x5e1932;if(!_0x41f891||'alt'!=_0x41f891['key'])return;const _0x102bf6=_0x41f891['newValue'];return _0x102bf6?{'type':'format','content':At(_0x28787c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x102bf6+'\x22')}:{'type':'format','content':At(_0x28787c,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5eaeeb=this['editor'],_0x27923b=_0x5eaeeb['locale'];_0x5eaeeb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d3471=>{if('formatBlock'!=_0x5d3471['type']&&'formatInline'!=_0x5d3471['type'])return;const {data:_0x14d84f}=_0x5d3471;if(_0x14d84f){if('imageTextAlternative'==_0x14d84f['commandName']){const _0x31783b=_0x14d84f['commandParams'][0x0]['newValue'];return _0x31783b?{'type':'format','content':At(_0x27923b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x31783b+'\x22')}:{'type':'format','content':At(_0x27923b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x14d84f['commandName']){const _0x47432e=_0x14d84f['commandParams'][0x0]['width'];return _0x47432e?{'type':'format','content':At(_0x27923b,'*Set\x20image\x20width:*\x20%0',_0x47432e)}:{'type':'format','content':At(_0x27923b,'*Reset\x20image\x20width*')};}}});}}class se extends _0x298b0c{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x17d867=this['editor']['locale'],_0x28649d=this['editor']['plugins']['get']('TrackChangesEditing');_0x28649d['enableDefaultAttributesIntegration']('replaceImageSource'),_0x28649d['descriptionFactory']['registerDescriptionCallback'](_0x4a115a=>{if('attribute'!=_0x4a115a['type'])return;const {data:_0x1c3395}=_0x4a115a;return _0x1c3395&&'src'==_0x1c3395['key']?_0x1c3395['newValue']&&_0x1c3395['oldValue']?{'type':'format','content':At(_0x17d867,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3f4503=this['editor']['plugins']['get']('TrackChangesEditing');_0x3f4503['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3f4503['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3f4503['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3f4503['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2dc161=this['editor'],_0x3af539=_0x2dc161['locale'];_0x2dc161['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53f292=>{if('formatBlock'!=_0x53f292['type']&&'formatInline'!=_0x53f292['type'])return;const {data:_0x58e6ad}=_0x53f292;if(!_0x58e6ad||'replaceImageSource'!=_0x58e6ad['commandName'])return;return{'type':'format','content':At(_0x3af539,'*Format:*\x20replace\x20image\x20URL')};});}}class re extends _0x298b0c{['afterInit'](){const _0xdaf816=this['editor'];if(!_0xdaf816['plugins']['has']('ImageStyleEditing'))return;const _0x236caf=_0xdaf816['plugins']['get']('TrackChangesEditing'),_0x83de53=_0xdaf816['plugins']['get']('ImageUtils'),_0x2d6a60={};_0x236caf['enableCommand']('imageStyle',(_0x373103,_0x30a6de)=>{const _0x8ca716=_0xdaf816['plugins']['get']('Users')['me'],_0x34c86d=_0xdaf816['commands']['get']('imageStyle');let _0x1a5182=_0x83de53['getClosestSelectedImageElement'](_0xdaf816['model']['document']['selection']),_0x57159d=_0xdaf816['model']['createRangeOn'](_0x1a5182),_0x3f0018=_0x34c86d['value'];if(_0x3f0018==_0x30a6de['value'])return;const _0x46f24c={'commandName':'imageStyle','commandParams':[_0x30a6de],'formatGroupId':_0x12e742()};_0xdaf816['model']['change'](()=>{if(_0x236caf['getSuggestions']()['filter'](_0x365478=>_0x365478['isInContent']&&_0x8ca716==_0x365478['author']&&('formatBlock'==_0x365478['type']||'formatInline'==_0x365478['type'])&&('imageStylePreApply'==_0x365478['subType']||'imageStylePostApply'==_0x365478['subType'])&&_0x365478['getFirstRange']()['isEqual'](_0x57159d))['forEach'](_0x584113=>_0x236caf['discardSuggestion'](_0x584113['head'])),_0x1a5182=_0x83de53['getClosestSelectedImageElement'](_0xdaf816['model']['document']['selection']),_0x57159d=_0xdaf816['model']['createRangeOn'](_0x1a5182),_0x34c86d['refresh'](),_0xdaf816['commands']['get']('imageTypeInline')['refresh'](),_0xdaf816['commands']['get']('imageTypeBlock')['refresh'](),_0x3f0018=_0x34c86d['value'],_0x3f0018!=_0x30a6de['value'])return _0x83de53['isInlineImage'](_0x1a5182)&&_0x34c86d['shouldConvertImageType'](_0x30a6de['value'],_0x1a5182)?(_0x373103({..._0x30a6de,'setImageSizes':!0x1}),_0x1a5182=_0x83de53['getClosestSelectedImageElement'](_0xdaf816['model']['document']['selection']),void _0x236caf['markBlockFormat'](_0x1a5182,{..._0x46f24c,'commandReversedParams':[{'value':_0x3f0018||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x83de53['isBlockImage'](_0x1a5182)?_0x236caf['markBlockFormat'](_0x1a5182,_0x46f24c,[],'imageStylePostApply'):_0x236caf['markInlineFormat'](_0x57159d,_0x46f24c,'imageStylePostApply'));});});for(const _0x3bf7ac of _0xdaf816['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2d6a60[_0x3bf7ac['name']]=_0x3bf7ac['title']['toLowerCase']();_0x236caf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x236caf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x236caf['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x236caf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2cacff])=>{_0x83de53['setImageNaturalSizeAttributes'](_0x2cacff['getContainedElement']());}),_0x236caf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2ec623,_0x21c489)=>{_0x236caf['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2ec623,{'commandName':_0x21c489['commandName'],'commandParams':_0x21c489['commandReversedParams']});}),_0x236caf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x330de2,_0x236b9d){if(_0x377fda(_0x330de2,_0x236b9d))return[_0x330de2,_0x236b9d];if(_0x377fda(_0x236b9d,_0x330de2))return[_0x236b9d,_0x330de2];return null;});const _0x453bed=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x377fda(_0x1c3028,_0x4bb4e8){const _0x3ec313=_0x453bed['findIndex'](({type:_0x327e6f,subType:_0x4f3256})=>_0x1c3028['type']==_0x327e6f&&_0x1c3028['subType']==_0x4f3256),_0x1ff43d=_0x453bed['findIndex'](({type:_0x29dae5,subType:_0x1cf255})=>_0x4bb4e8['type']==_0x29dae5&&_0x4bb4e8['subType']==_0x1cf255);if(_0x3ec313<0x0||_0x1ff43d<0x0)return!0x1;const _0x495663=_0x1c3028['getFirstRange'](),_0x518c1f=_0x4bb4e8['getFirstRange']();if((0x0==_0x3ec313||0x1==_0x3ec313)&&0x2==_0x1ff43d&&_0x495663['isIntersecting'](_0x518c1f))return!0x0;if(0x2==_0x3ec313&&0x3==_0x1ff43d){const _0x5df1ca=_0x236caf['_findSuggestions'](_0x495663,'insertion')['filter'](({suggestion:_0x174eef,meta:_0x4b63fc})=>_0x4b63fc['isOwn']&&'convertInlineImageToBlock'==_0x174eef['subType']);if(_0x5df1ca['length']>0x1&&_0x518c1f['end']['isEqual'](_0x495663['start']))return!0x0;if(0x1==_0x5df1ca['length']&&(_0x495663['start']['isEqual'](_0x518c1f['end'])||_0x495663['end']['isEqual'](_0x518c1f['start'])))return!0x0;}if(0x3==_0x3ec313&&0x3==_0x1ff43d&&_0x495663['start']['isBefore'](_0x518c1f['start'])){const _0x55b46b=_0x495663['end']['nodeAfter'],_0x501246=_0x518c1f['start']['nodeBefore'];return _0x83de53['isBlockImage'](_0x55b46b)&&_0x55b46b===_0x501246;}return!0x1;}_0xdaf816['model']['document']['registerPostFixer'](()=>{let _0x2e5409=!0x1;const _0x1ca40d=Array['from'](_0xdaf816['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xf70e15,data:_0x1fcfc2}of _0x1ca40d){const {group:_0x3ac7a3,type:_0x1645e9,subType:_0x247875,id:_0x281ad1}=_0x438505(_0xf70e15);if('suggestion'==_0x3ac7a3&&_0x236caf['hasSuggestion'](_0x281ad1)){if('formatBlock'==_0x1645e9&&('imageStylePreApply'==_0x247875||'imageStylePostApply'==_0x247875)){const _0x41ffe2=_0x236caf['getSuggestion'](_0x281ad1);if(_0x1fcfc2['newRange']){const _0x202507=_0x41ffe2['getFirstRange']()['getContainedElement']();if(_0x83de53['isBlockImage'](_0x202507))continue;_0x236caf['discardSuggestion'](_0x41ffe2),_0x2e5409=!0x0;}}if('insertion'==_0x1645e9&&'imageCaption'==_0x247875&&!_0x1fcfc2['newRange']){const _0x5cb294=_0x236caf['getSuggestion'](_0x281ad1);_0x5cb294['next']&&_0x5cb294['next']['isInContent']&&(_0x236caf['discardSuggestion'](_0x5cb294['next']),_0x2e5409=!0x0);}}}return _0x2e5409;}),this['_registerLegacyDescription'](_0x2d6a60);}['_registerLegacyDescription'](_0x3eb227){const _0x227956=this['editor'],_0x459a1a=_0x227956['locale'];_0x227956['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4af3f7=>{if('formatBlock'!=_0x4af3f7['type']&&'formatInline'!=_0x4af3f7['type'])return;const {data:_0xc11f13}=_0x4af3f7;if(!_0xc11f13||'imageStyle'!=_0xc11f13['commandName'])return;const _0x2b3eab=_0xc11f13['commandParams'][0x0]['value'];return _0x43497d('side'===_0x2b3eab?At(_0x459a1a,'FORMAT_SIDE_IMAGE'):_0x3eb227[_0x2b3eab]||_0x2b3eab);function _0x43497d(_0x5d9bc7){return{'type':'format','content':At(_0x459a1a,'*Format:*\x20%0',_0x5d9bc7)};}});}}class oe extends _0x298b0c{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x551d56){super(_0x551d56),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2cb28d=this['editor'],_0x49d12f=_0x2cb28d['commands']['get']('importWord'),_0x4f54af=_0x2cb28d['commands']['get']('trackChanges');_0x49d12f&&(_0x49d12f['on']('execute',(_0x33181e,[,_0x5196f7])=>{this['_trackChangesValueDuringImport']=_0x4f54af['value'],_0x5196f7['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x49d12f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x49d12f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4f54af['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2cb28d['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x7fc398,_0x407cba){const {suggestions:_0x395bdb}=_0x407cba,_0x1b9528=this['editor']['commands']['get']('trackChanges'),_0x51252b=_0x1b9528['value'];this['_trackChangesValueDuringImport']!==_0x51252b&&(_0x1b9528['execute'](),this['_trackChangesExecuted']=!0x0),_0x395bdb&&_0x395bdb['forEach'](({id:_0x2ec973,type:_0x2474e6,author:_0x57f072,created_at:_0xc8c293})=>{const _0x432c46={'id':_0x2ec973,'type':_0x2474e6,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x57f072,'createdAt':_0xc8c293?new Date(_0xc8c293):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x432c46);});}}class ae extends _0x298b0c{['afterInit'](){const _0x53e957=this['editor'],_0x167fff=_0x53e957['plugins']['get']('TrackChangesEditing');if(_0x53e957['plugins']['has']('IndentEditing')&&(_0x167fff['enableCommand']('indent'),_0x167fff['enableCommand']('outdent')),_0x53e957['plugins']['has']('IndentBlock')){for(const _0x3b4106 of['indentBlock','outdentBlock'])_0x167fff['enableDefaultAttributesIntegration'](_0x3b4106);if(_0x53e957['plugins']['has']('ListEditing')){for(const _0x4d7b52 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x167fff['enableDefaultAttributesIntegration'](_0x4d7b52);}}const _0x20643f=_0x53e957['locale'];_0x167fff['descriptionFactory']['registerAttributeLabel']('blockIndent',At(_0x20643f,'FORMAT_INDENT')),_0x167fff['descriptionFactory']['registerAttributeLabel']('blockIndentList',At(_0x20643f,'FORMAT_INDENT')),_0x167fff['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',At(_0x20643f,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ab713=this['editor'],_0x157856=_0x1ab713['locale'],_0x28522d=_0x1ab713['plugins']['get']('TrackChangesEditing');_0x28522d['descriptionFactory']['registerDescriptionCallback'](_0x2e7ce6=>{if('formatBlock'!=_0x2e7ce6['type'])return;const {data:_0x1db366}=_0x2e7ce6;if(!_0x1db366)return;if('indentBlock'!=_0x1db366['commandName']&&'outdentBlock'!=_0x1db366['commandName'])return;const _0x151fec=_0x2e7ce6['getItems']()[0x0],_0x156887=_0x28522d['descriptionFactory']['getItemLabel'](_0x151fec);return'indentBlock'==_0x1db366['commandName']?{'type':'format','content':At(_0x157856,'*Indent:*\x20%0',_0x156887)}:'outdentBlock'==_0x1db366['commandName']?{'type':'format','content':At(_0x157856,'*Outdent:*\x20%0',_0x156887)}:void 0x0;});}}class ce extends _0x298b0c{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class le extends _0x298b0c{['afterInit'](){const _0x19e6fe=this['editor'];if(!_0x19e6fe['plugins']['has']('LinkEditing'))return;const _0x16ffbd=_0x19e6fe['plugins']['get']('TrackChangesEditing'),_0x158c0d=_0x19e6fe['commands']['get']('link');_0x16ffbd['enableDefaultAttributesIntegration']('link'),_0x16ffbd['enableDefaultAttributesIntegration']('unlink');for(const _0x59b207 of _0x158c0d['manualDecorators'])_0x16ffbd['descriptionFactory']['registerAttributeLabel'](_0x59b207['id'],'link\x20('+_0x59b207['label']['toLowerCase']()+')');_0x16ffbd['descriptionFactory']['registerDescriptionCallback'](_0xaf853d=>{if('attribute'!=_0xaf853d['type'])return;const {data:_0x3ba7b8}=_0xaf853d;if(!_0x3ba7b8||'linkHref'!=_0x3ba7b8['key'])return;const _0x2d2d9c=_0x3ba7b8['newValue'],_0x5dc49f=_0x19e6fe['locale'];return{'type':'format','content':null==_0x2d2d9c?At(_0x5dc49f,'*Remove\x20link*'):At(_0x5dc49f,'*Set\x20link:*\x20%0','\x22'+_0x2d2d9c+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x302797=this['editor'],_0x150cb8=_0x302797['locale'];_0x302797['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d8962=>{if('formatInline'!=_0x4d8962['type'])return;const {data:_0x1203a0}=_0x4d8962;if(_0x1203a0){if('link'==_0x1203a0['commandName']){const _0x16a64d=_0x1203a0['commandParams'][0x0];return{'type':'format','content':At(_0x150cb8,'*Set\x20link:*\x20%0','\x22'+_0x16a64d+'\x22')};}return'unlink'==_0x1203a0['commandName']?{'type':'format','content':At(_0x150cb8,'*Remove\x20link*')}:void 0x0;}});}}class ue extends _0x298b0c{['afterInit'](){const _0x342491=this['editor'],_0x923179=_0x342491['locale'];if(!_0x342491['plugins']['has']('LegacyListEditing'))return;const _0x1ca3dd=_0x342491['plugins']['get']('TrackChangesEditing'),_0x2bc4fc=_0x342491['plugins']['has']('LegacyTodoListEditing');function _0x7c178f(_0x1f07fd){return()=>{const _0x3c628e=_0x342491['model']['document']['selection'],_0x159057=_0x342491['commands']['get'](_0x1f07fd);if(_0x159057['value'])return void _0x342491['execute']('paragraph',{});const _0x280f12=_0x1f07fd['slice'](0x0,-0x4),_0x37e5a6=function(_0x56c958,_0x2df731,_0x441238){let _0x1581f8=Array['from'](_0x56c958)['filter'](_0x3e8808=>function(_0x211fff,_0xa2636){return _0xa2636['checkChild'](_0x211fff['parent'],'listItem')&&!_0xa2636['isObject'](_0x211fff);}(_0x3e8808,_0x441238));_0x1581f8=_0x1581f8['filter'](_0x244340=>!_0x244340['is']('element','listItem')||_0x244340['getAttribute']('listType')!=_0x2df731);const _0x3fdab3=new Set();for(const _0x24e8b3 of _0x1581f8)_0x24e8b3['is']('element','listItem')?_0x3fdab3['add'](he(_0x24e8b3)):_0x3fdab3['add'](_0x24e8b3);return Array['from'](_0x3fdab3);}(_0x3c628e['getSelectedBlocks'](),_0x280f12,_0x342491['model']['schema']);_0x342491['model']['change'](()=>{for(const _0x3e73ee of _0x37e5a6)_0x1ca3dd['markBlockFormat'](_0x3e73ee,{'commandName':_0x1f07fd,'commandParams':[{'forceValue':!_0x159057['value']}],'formatGroupId':'blockName'},de(_0x3e73ee));});};}function _0x11ac32(_0x2ec343){return()=>{const _0x39dcb1=function(_0x4cb53a){let _0x4dc4b8=Array['from'](_0x4cb53a);const _0xdfdaba=_0x4dc4b8['findIndex'](_0x5c80df=>'listItem'!=_0x5c80df['name']);return _0xdfdaba>-0x1&&(_0x4dc4b8=_0x4dc4b8['slice'](0x0,_0xdfdaba)),_0x4dc4b8;}(_0x342491['model']['document']['selection']['getSelectedBlocks']()),_0x1c30e4=_0x342491['model']['createRange'](_0x342491['model']['createPositionAt'](_0x39dcb1[0x0],'before'),_0x342491['model']['createPositionAt'](_0x39dcb1[_0x39dcb1['length']-0x1],'end'));_0x342491['model']['change'](()=>{_0x1ca3dd['markBlockFormat'](_0x1c30e4,{'commandName':_0x2ec343,'commandParams':[],'formatGroupId':'listIndent'},function(_0x318a63){const _0x599c1c=new Set();for(const _0x1f76cb of _0x318a63){let _0x3d636e=_0x1f76cb['nextSibling'];for(;_0x3d636e&&_0x3d636e['getAttribute']('listIndent')>_0x1f76cb['getAttribute']('listIndent');)_0x599c1c['add'](_0x3d636e),_0x3d636e=_0x3d636e['nextSibling'];}return Array['from'](_0x599c1c);}(_0x39dcb1));});};}_0x1ca3dd['enableCommand']('numberedList',_0x7c178f('numberedList')),_0x1ca3dd['enableCommand']('bulletedList',_0x7c178f('bulletedList')),_0x2bc4fc&&_0x1ca3dd['enableCommand']('todoList',_0x7c178f('todoList')),_0x1ca3dd['enableCommand']('indentList',_0x11ac32('indentList')),_0x1ca3dd['enableCommand']('outdentList',_0x11ac32('outdentList')),_0x2bc4fc&&_0x1ca3dd['enableCommand']('checkTodoList',()=>{const _0x5da1b9=_0x342491['commands']['get']('checkTodoList'),_0x2d5902=Array['from'](_0x5da1b9['_selectedElements']);_0x2d5902['filter'](_0x8beca6=>_0x8beca6['getAttribute']('todoListChecked')!=_0x5da1b9['value']),_0x342491['model']['change'](()=>{for(const _0xaaa4e5 of _0x2d5902)_0x1ca3dd['markBlockFormat'](_0xaaa4e5,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5da1b9['value']}]});});}),_0x1ca3dd['descriptionFactory']['registerElementLabel']('listItem',_0x117de8=>At(_0x923179,'ELEMENT_LIST_ITEM',_0x117de8)),_0x1ca3dd['descriptionFactory']['registerDescriptionCallback'](_0xfca32a=>{if('formatBlock'!=_0xfca32a['type']&&'formatInline'!=_0xfca32a['type'])return;const {data:_0x423a44}=_0xfca32a;if(_0x423a44){if('numberedList'==_0x423a44['commandName']||'bulletedList'==_0x423a44['commandName']||'todoList'==_0x423a44['commandName'])switch(_0x423a44['commandName']['replace']('List','')){case'bulleted':return _0x957d46(At(_0x923179,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x957d46(At(_0x923179,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x957d46(At(_0x923179,'ELEMENT_TODO_LIST'));}if('indentList'==_0x423a44['commandName'])return{'type':'format','content':At(_0x923179,'*Indent:*\x20%0',At(_0x923179,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x423a44['commandName'])return{'type':'format','content':At(_0x923179,'*Outdent:*\x20%0',At(_0x923179,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x423a44['commandName'])return _0x423a44['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x923179,'*Check\x20item*')}:{'type':'format','content':At(_0x923179,'*Uncheck\x20item*')};}function _0x957d46(_0x1e285c){return{'type':'format','content':At(_0x923179,'*Change\x20to:*\x20%0',_0x1e285c)};}});}}function he(_0xc05a84){const _0xa3842e=_0xc05a84['getAttribute']('listIndent');if(0x0==_0xa3842e)return _0xc05a84;let _0x18c8ba=_0xc05a84;for(;_0xc05a84['previousSibling']&&_0xc05a84['previousSibling']['is']('element','listItem');){const _0x4bfb26=_0xc05a84['previousSibling']['getAttribute']('listIndent');if(_0x4bfb26==_0xa3842e)_0x18c8ba=_0xc05a84['previousSibling'];else{if(_0x4bfb26<_0xa3842e)break;}_0xc05a84=_0xc05a84['previousSibling'];}return _0x18c8ba;}function de(_0x5b8d56){const _0x311dc5=[];if(_0x5b8d56['is']('element','listItem')&&_0x5b8d56['getAttribute']('listIndent')>0x0){let _0x414623=_0x5b8d56['nextSibling'];for(;_0x414623&&'listItem'==_0x414623['name']&&_0x414623['getAttribute']('listIndent')==_0x5b8d56['getAttribute']('listIndent');)_0x311dc5['push'](_0x414623),_0x414623=_0x414623['nextSibling'];}return _0x311dc5;}class fe extends _0x298b0c{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x36ac64=this['editor']['config']['get']('list.properties'),_0xa32111=this['editor']['plugins']['get']('TrackChangesEditing');_0x36ac64['styles']&&_0xa32111['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x36ac64['reversed']&&_0xa32111['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x36ac64['startIndex']&&_0xa32111['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xa32111['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3d5042,_0x5b526c={}){const _0x166e37=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32e42a=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x166e37['markMultiRangeBlockFormat'](_0x32e42a,{'commandName':'listStyle','commandParams':[{'type':_0x5b526c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x12548d,_0x286446={}){const _0x3c1545=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa079c=this['_getSuggestionBlocks'](_0x3b58f6=>_0x3b58f6['is']('element','listItem')&&'numbered'===_0x3b58f6['getAttribute']('listType'));if(_0xa079c['length']<0x1)return;const _0x2cb0f6=_0xa079c['map'](_0x286c7a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x286c7a,'before'),this['editor']['model']['createPositionAt'](_0x286c7a,0x0)));this['editor']['model']['change'](()=>{_0x3c1545['markMultiRangeBlockFormat'](_0x2cb0f6,{'commandName':'listReversed','commandParams':[{'reversed':_0x286446['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x550804,_0x1902e8={}){const _0x3909f7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41fb2b=this['_getSuggestionBlocks'](_0x1e3831=>_0x1e3831['is']('element','listItem')&&'numbered'===_0x1e3831['getAttribute']('listType'));if(_0x41fb2b['length']<0x1)return;const _0x35ccc6=_0x41fb2b['map'](_0x3fe2f7=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3fe2f7,'before'),this['editor']['model']['createPositionAt'](_0x3fe2f7,0x0)));this['editor']['model']['change'](()=>{_0x3909f7['markMultiRangeBlockFormat'](_0x35ccc6,{'commandName':'listStart','commandParams':[{'startIndex':_0x1902e8['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x55c105){if('formatBlock'!=_0x55c105['type']&&'formatInline'!=_0x55c105['type'])return;const _0x1370af=this['editor']['locale'],{data:_0x44889c}=_0x55c105;if(!_0x44889c)return;let _0x51e743,_0x287d79;switch(_0x44889c['commandName']){case'listStyle':_0x51e743='*Change\x20to:*\x20%0',_0x287d79={'type':'format','content':At(_0x1370af,_0x51e743,At(_0x1370af,this['_getTranslationKeyForListStyle'](_0x44889c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x51e743=_0x44889c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x287d79={'type':'format','content':At(_0x1370af,_0x51e743)};break;case'listStart':_0x51e743='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x287d79={'type':'format','content':At(_0x1370af,_0x51e743,_0x44889c['commandParams'][0x0]['startIndex'])};}return _0x287d79;}['_getSuggestionBlocksForListStyle'](){const _0x4ed137=this['editor']['plugins']['get']('LegacyListUtils');let _0x4cfd0b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4cfd0b[0x0]?.['is']('element','listItem')&&_0x4cfd0b['unshift'](..._0x4ed137['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4cfd0b[_0x4cfd0b['length']-0x1]?.['is']('element','listItem')&&_0x4cfd0b['push'](..._0x4ed137['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4cfd0b=[...new Set(_0x4cfd0b)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4cfd0b=_0x4cfd0b['filter'](_0xdb3683=>_0xdb3683['is']('element','listItem'))),_0x4cfd0b;}['_getSuggestionBlocks'](_0x2b43a3){const _0x35bfd5=this['editor']['plugins']['get']('LegacyListUtils');let _0x3a33b9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2b43a3)['map'](_0x426906=>{const _0x6e6b22=this['editor']['model']['createPositionAt'](_0x426906,0x0);return[..._0x35bfd5['getSiblingNodes'](_0x6e6b22,'backward'),..._0x35bfd5['getSiblingNodes'](_0x6e6b22,'forward')];})['flat']();return _0x3a33b9=[...new Set(_0x3a33b9)],_0x3a33b9;}['_getTranslationKeyForListStyle'](_0xb91c29){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xb91c29)||'default')['toUpperCase']()+'_LIST_'+_0xb91c29['toUpperCase']()['replace'](/-/g,'_');}}class ge extends _0x298b0c{['afterInit'](){const _0x47fded=this['editor'];if(!_0x47fded['plugins']['has']('MediaEmbedEditing'))return;const _0x32e24c=_0x47fded['plugins']['get']('TrackChangesEditing'),_0x1c7b2b=_0x47fded['locale'];_0x32e24c['enableCommand']('mediaEmbed'),_0x32e24c['descriptionFactory']['registerElementLabel']('media',_0x87509a=>At(_0x1c7b2b,'ELEMENT_MEDIA',_0x87509a));}}class me extends _0x298b0c{['afterInit'](){const _0x4b53cb=this['editor'];_0x4b53cb['plugins']['has']('MentionEditing')&&_0x4b53cb['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class Ee extends _0x298b0c{['afterInit'](){const _0x1cb3d9=this['editor'];if(!_0x1cb3d9['plugins']['has']('MergeFieldsEditing'))return;const _0x2fbd88=_0x1cb3d9['plugins']['get']('TrackChangesEditing'),_0x54d545=_0x1cb3d9['locale'];_0x2fbd88['enableCommand']('insertMergeField'),_0x2fbd88['enableCommand']('insertMergeFieldBlock'),_0x2fbd88['enableCommand']('insertMergeFieldImage'),_0x2fbd88['descriptionFactory']['registerElementLabel']('mergeField',_0x55bb26=>At(_0x54d545,'ELEMENT_MERGE_FIELD',_0x55bb26)),_0x2fbd88['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x32fe00=>At(_0x54d545,'ELEMENT_MERGE_FIELD',_0x32fe00)),_0x2fbd88['descriptionFactory']['registerDescriptionCallback'](_0x3966e1=>{if('insertion'!=_0x3966e1['type']&&'deletion'!=_0x3966e1['type'])return;const _0x23d8d8=_0x3966e1['getContainedElement']();if(null==_0x23d8d8)return;const _0x2decf6=_0x1cb3d9['plugins']['get']('MergeFieldsEditing');let _0x4110c0;switch(_0x2decf6['getMergeFieldType'](_0x23d8d8)){case null:return;case'image':{const _0x520df2=_0x2decf6['unwrapAffixes'](_0x23d8d8['getAttribute']('src'));_0x4110c0=_0x2decf6['getLabel'](_0x520df2)||_0x520df2;break;}default:{const _0x4a0e0a=_0x23d8d8['getAttribute']('id');_0x4110c0=_0x2decf6['getLabel'](_0x4a0e0a)||_0x4a0e0a;break;}}return'insertion'==_0x3966e1['type']?{'type':'insertion','content':At(_0x54d545,'*Insert:*\x20%0','\x22'+_0x4110c0+'\x22\x20'+At(_0x54d545,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':At(_0x54d545,'*Remove:*\x20%0','\x22'+_0x4110c0+'\x22\x20'+At(_0x54d545,'ELEMENT_MERGE_FIELD'))};});}}class Te extends _0x298b0c{['afterInit'](){const _0x3aada8=this['editor'],_0x5c29ca=_0x3aada8['plugins']['get']('TrackChangesEditing');_0x3aada8['plugins']['has']('MultiLevelList')&&(_0x5c29ca['enableDefaultAttributesIntegration']('multiLevelList'),_0x5c29ca['descriptionFactory']['registerDescriptionCallback'](_0x209052=>this['handleDescriptions'](_0x209052)));}['handleDescriptions'](_0x47e1c7){const _0x5f3ba4=this['editor']['locale'],{data:_0x30bea3}=_0x47e1c7,_0x7c9342={'type':'format','content':''};if(_0x30bea3&&'listMarkerStyle'==_0x30bea3['key']){if(!_0x30bea3['oldValue'])return{'type':'format','content':At(_0x5f3ba4,'*Set\x20format:*\x20%0',At(_0x5f3ba4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x30bea3['newValue']+')'};if(!_0x30bea3['newValue']){let _0x465e33=_0x47e1c7['head'];for(;_0x465e33;){if(_0x465e33['data']&&'listType'==_0x465e33['data']['key']&&_0x465e33['data']['newValue'])return _0x7c9342;_0x465e33=_0x465e33['next'];}return{'type':'format','content':At(_0x5f3ba4,'*Remove\x20format:*\x20%0',At(_0x5f3ba4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x30bea3['oldValue']+')'};}}}}class _e extends _0x298b0c{['afterInit'](){const _0x499a94=this['editor'];if(!_0x499a94['plugins']['has']('PageBreakEditing'))return;_0x499a94['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xb0f9a2=_0x499a94['plugins']['get']('TrackChangesEditing'),_0x50b192=_0x499a94['locale'];_0xb0f9a2['descriptionFactory']['registerElementLabel']('pageBreak',_0x280d48=>At(_0x50b192,'ELEMENT_PAGE_BREAK',_0x280d48));}}class pe extends _0x298b0c{['afterInit'](){const _0x126c37=this['editor'];if(!_0x126c37['plugins']['has']('Paragraph'))return;const _0x2b848f=_0x126c37['locale'],_0x221073=_0x126c37['plugins']['get']('TrackChangesEditing');_0x221073['descriptionFactory']['registerElementLabel']('paragraph',_0xb684b6=>At(_0x2b848f,'ELEMENT_PARAGRAPH',_0xb684b6)),_0x221073['enableDefaultAttributesIntegration']('paragraph'),_0x221073['enableCommand']('insertParagraph');const _0x44ab29=_0x221073['descriptionFactory'];_0x44ab29['registerDescriptionCallback'](_0x5cafbd=>{if('insertion'!==_0x5cafbd['type'])return;const {start:_0x28839b,end:_0x535e4b}=_0x5cafbd['getFirstRange']();if(!_0x28839b['isTouching'](_0x535e4b)||!_0x28839b['nodeAfter'])return;const _0x1ad4ff=_0x126c37['model']['schema'],_0x4af283=_0x28839b['nodeAfter'];return _0x1ad4ff['isBlock'](_0x4af283)&&!_0x1ad4ff['isLimit'](_0x4af283)&&_0x1ad4ff['checkChild'](_0x4af283,'$text')?{'type':'insertion','content':At(_0x2b848f,'*Insert:*\x20%0',_0x44ab29['getItemLabel'](_0x4af283,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x91ccb9=this['editor'],_0x476f2a=_0x91ccb9['locale'];_0x91ccb9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x357add=>{if('formatBlock'!=_0x357add['type'])return;const {data:_0x82670}=_0x357add;return _0x82670&&'paragraph'==_0x82670['commandName']?{'type':'format','content':At(_0x476f2a,'*Change\x20to:*\x20%0',At(_0x476f2a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class Le extends _0x298b0c{['afterInit'](){const _0x494ea1=this['editor'];_0x494ea1['commands']['get']('replaceSource')&&_0x494ea1['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class Ie extends _0x298b0c{['afterInit'](){const _0x2cf2c5=this['editor'];if(!_0x2cf2c5['plugins']['has']('RemoveFormatEditing'))return;_0x2cf2c5['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bf9dd=this['editor'];_0x4bf9dd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15a839=>{if('formatBlock'!=_0x15a839['type']&&'formatInline'!=_0x15a839['type'])return;const {data:_0x42ac8b}=_0x15a839;return _0x42ac8b&&'removeFormat'==_0x42ac8b['commandName']?{'type':'format','content':At(_0x4bf9dd['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class be extends _0x298b0c{['afterInit'](){const _0x3bf451=this['editor'];if(!_0x3bf451['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5a77dc=_0x3bf451['plugins']['get']('TrackChangesEditing');_0x5a77dc['enableCommand']('goToPreviousRestrictedEditingException'),_0x5a77dc['enableCommand']('goToNextRestrictedEditingException');const _0x2877f7=_0x3bf451['plugins']['get']('RestrictedEditingModeEditing');_0x2877f7['enableCommand']('trackChanges'),_0x2877f7['enableCommand']('acceptSuggestion'),_0x2877f7['enableCommand']('discardSuggestion'),_0x2877f7['enableCommand']('acceptAllSuggestions'),_0x2877f7['enableCommand']('discardAllSuggestions'),_0x2877f7['enableCommand']('acceptSelectedSuggestions'),_0x2877f7['enableCommand']('discardSelectedSuggestions');}}class Ae extends _0x298b0c{['afterInit'](){const _0x22a736=this['editor'];if(!_0x22a736['plugins']['has']('ShiftEnter'))return;const _0x3622f1=_0x22a736['plugins']['get']('TrackChangesEditing');_0x3622f1['enableCommand']('shiftEnter'),_0x3622f1['descriptionFactory']['registerElementLabel']('softBreak',_0x29c964=>At(_0x22a736['locale'],'ELEMENT_LINE_BREAK',_0x29c964));}}function ke(_0x20b553,_0x2cd13f,_0x347a7c){const _0x2df5ca=[];for(const _0x50c6b1 of _0x2cd13f['getItems']())_0x50c6b1['hasAttribute'](_0x20b553)&&_0x2df5ca['push'](_0x347a7c['createRangeOn'](_0x50c6b1));return _0x2df5ca;}class Ce extends _0x298b0c{['afterInit'](){const _0x237f16=this['editor'],_0x236a9e=_0x237f16['plugins']['get']('TrackChangesEditing');_0x237f16['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x236a9e['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x38232a=this['editor'],_0x2062dd=_0x38232a['model'],_0x64f722=_0x38232a['locale'],_0x112758=_0x38232a['plugins']['get']('TrackChangesEditing'),_0x5cad4d='restrictedEditingException',_0x2ca2a2=_0x38232a['commands']['get'](_0x5cad4d);_0x112758['enableCommand'](_0x5cad4d,(_0x105bf2,_0x4af546={})=>{const _0x5a2178=_0x2062dd['document']['selection'];if(_0x5a2178['isCollapsed'])return void _0x105bf2(_0x4af546);const _0x40fb5c=void 0x0!==_0x4af546['forceValue']?_0x4af546['forceValue']:!_0x2ca2a2['value'];_0x2062dd['change'](()=>{const _0x23df8b=Array['from'](_0x5a2178['getRanges']());for(const _0xfcf7b8 of _0x23df8b){const _0x1d279b=_0x40fb5c?[_0xfcf7b8]:ke(_0x5cad4d,_0xfcf7b8,_0x2062dd);for(const _0x1ef220 of _0x1d279b)_0x112758['markInlineFormat'](_0x1ef220,{'commandName':_0x5cad4d,'commandParams':[{'forceValue':_0x40fb5c}]});}});}),_0x112758['descriptionFactory']['registerDescriptionCallback'](_0x99c839=>{if('formatBlock'!=_0x99c839['type']&&'formatInline'!=_0x99c839['type'])return;const {data:_0x15e0e3}=_0x99c839;return _0x15e0e3&&_0x15e0e3['commandName']==_0x5cad4d?_0x15e0e3['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x64f722,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x64f722,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x155f1c=this['editor'],_0x2d5d55=_0x155f1c['locale'],_0x551df5=_0x155f1c['plugins']['get']('TrackChangesEditing'),_0x289634='restrictedEditingExceptionBlock',_0x47e86e=this['editor']['commands']['get'](_0x289634);_0x551df5['enableCommand'](_0x289634,(_0x226825,_0x3a051d={})=>{const _0x4d4ec7=this['editor']['model']['document']['selection'],_0x179508=_0x3a051d&&void 0x0!==_0x3a051d['forceValue']?_0x3a051d['forceValue']:!_0x47e86e['value'];let _0x32dfe5=[];if(_0x179508){const _0x54d71d=Array['from'](_0x4d4ec7['getSelectedBlocks']())['filter'](_0xb2539e=>function(_0x228e3a){return!!_0x228e3a['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0xb2539e)||function(_0x8609b1,_0x4db082){const _0x10def2=_0x4db082['createContext'](_0x8609b1['parent']);if(!_0x4db082['checkChild'](_0x10def2,'restrictedEditingException'))return!0x1;if(!_0x4db082['checkChild'](_0x10def2['push']('restrictedEditingException'),_0x8609b1))return!0x1;return!0x0;}(_0xb2539e,this['editor']['model']['schema']));_0x32dfe5=Tt(_0x54d71d,_0x155f1c['model']);}else{const _0x3dc34c=Array['from'](_0x4d4ec7['getSelectedBlocks']())['map'](_0x2ea159=>function(_0x41cd84){let _0x475b84=_0x41cd84;for(;_0x475b84['parent'];){if('restrictedEditingException'==_0x475b84['parent']['name'])return _0x475b84;_0x475b84=_0x475b84['parent'];}return null;}(_0x2ea159))['filter'](_0x5658ec=>!!_0x5658ec);_0x32dfe5=Tt(_0x3dc34c,_0x155f1c['model']);}_0x155f1c['model']['change'](()=>{for(const _0x328623 of _0x32dfe5)_0x551df5['markBlockFormat'](_0x328623,{'commandName':_0x289634,'commandParams':[{'forceValue':_0x179508}]});});}),_0x551df5['descriptionFactory']['registerDescriptionCallback'](_0x7e03f4=>{const {data:_0x64875b}=_0x7e03f4;if(_0x64875b&&_0x64875b['commandName']==_0x289634)return _0x64875b['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x2d5d55,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x2d5d55,'FORMAT_RESTRICTED_DISABLED')};});}}class ye extends _0x298b0c{['afterInit'](){const _0x35ab15=this['editor'];if(!_0x35ab15['plugins']['has']('Style')||!_0x35ab15['plugins']['has']('DataSchema'))return;const _0x1fc732=_0x35ab15['plugins']['get']('TrackChangesEditing'),_0x4f1240=_0x35ab15['locale'],_0x4d65fd=_0x35ab15['config']['get']('style')||{},_0x463e7f=_0x35ab15['plugins']['get']('GeneralHtmlSupport'),_0x2c29f6=_0x35ab15['plugins']['get']('StyleUtils')['normalizeConfig'](_0x35ab15['plugins']['get']('DataSchema'),_0x4d65fd['definitions']);_0x1fc732['enableDefaultAttributesIntegration']('style');const _0x2231a9=new Set();for(const _0x2897e2 of _0x2c29f6['block']){const _0x451972=_0x463e7f['getGhsAttributeNameForElement'](_0x2897e2['element']);_0x2231a9['add'](_0x451972);}const _0xda4a0f=new Set();for(const _0x28ecff of _0x2c29f6['inline']){const _0x4c192d=_0x463e7f['getGhsAttributeNameForElement'](_0x28ecff['element']);_0xda4a0f['add'](_0x4c192d);for(const _0x3a78d1 of _0x28ecff['ghsAttributes'])_0xda4a0f['add'](_0x3a78d1);}for(const _0x2a5397 of _0x2231a9)_0x1fc732['descriptionFactory']['registerAttributeLabel'](_0x2a5397,At(_0x4f1240,'FORMAT_STYLE'));for(const _0x5d7d2a of _0xda4a0f)_0x1fc732['descriptionFactory']['registerAttributeLabel'](_0x5d7d2a,At(_0x4f1240,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a59b1=this['editor'],_0x1b582e=_0x2a59b1['locale'];_0x2a59b1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b42e8=>{if('formatBlock'!=_0x4b42e8['type']&&'formatInline'!=_0x4b42e8['type'])return;const {data:_0x5c61db}=_0x4b42e8;return _0x5c61db&&'style'===_0x5c61db['commandName']?_0x5c61db['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x1b582e,'*Set\x20format:*\x20%0',_0x5c61db['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':At(_0x1b582e,'*Remove\x20format:*\x20%0',_0x5c61db['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ne extends _0x298b0c{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x57a28c){super(_0x57a28c),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2ccf5b=this['editor'],_0x564c36=_0x2ccf5b['model']['document']['selection'];if(!_0x2ccf5b['plugins']['has']('TableEditing'))return;const _0x4f3088=_0x2ccf5b['locale'],_0x56af95=_0x2ccf5b['plugins']['get']('TrackChangesEditing'),_0x3fc548=_0x2ccf5b['plugins']['get']('TableUtils');_0x56af95['descriptionFactory']['registerElementLabel']('table',_0xa68d0=>At(_0x4f3088,'ELEMENT_TABLE',_0xa68d0)),this['_setupColumnsRowsFixing'](),_0x56af95['enableCommand']('insertTable'),_0x56af95['enableCommand']('selectTableRow'),_0x56af95['enableCommand']('selectTableColumn');for(const _0x27ac7a of['insertTableRowAbove','insertTableRowBelow']){const _0x4bf8a9=_0x2ccf5b['commands']['get'](_0x27ac7a);_0x56af95['enableCommand'](_0x27ac7a,_0xd4d462=>{_0x2ccf5b['model']['change'](_0x162086=>{_0xd4d462();const _0xfc330e='above'===_0x4bf8a9['order'],_0x5bffde=_0x3fc548['getSelectionAffectedTableCells'](_0x564c36),_0x1b9040=_0x3fc548['getRowIndexes'](_0x5bffde),_0x472baf=_0xfc330e?_0x1b9040['first']-0x1:_0x1b9040['last']+0x1,_0x4dcc7b=_0x5bffde[0x0]['findAncestor']('table'),_0x1d3003=_0x3fc548['createTableWalker'](_0x4dcc7b,{'startRow':_0x472baf,'endRow':_0x472baf}),_0x2cc9f1=Array['from'](_0x1d3003)['map'](_0x1478f9=>_0x162086['createRangeOn'](_0x1478f9['cell']));_0x56af95['markMultiRangeInsertion'](_0x2cc9f1,'tableRow');});});}for(const _0x24a514 of['insertTableColumnLeft','insertTableColumnRight']){const _0x18b4d1=_0x2ccf5b['commands']['get'](_0x24a514);_0x56af95['enableCommand'](_0x24a514,_0x5c1390=>{_0x2ccf5b['model']['change'](_0xc43e1d=>{_0x5c1390();const _0x448169='left'===_0x18b4d1['order'],_0x8f1f14=_0x3fc548['getSelectionAffectedTableCells'](_0x564c36),_0x577cf0=_0x3fc548['getColumnIndexes'](_0x8f1f14),_0x43f0ec=_0x448169?_0x577cf0['first']-0x1:_0x577cf0['last']+0x1,_0x444afa=_0x8f1f14[0x0]['findAncestor']('table'),_0xfa8ac0=_0x3fc548['createTableWalker'](_0x444afa,{'startRow':0x0,'column':_0x43f0ec,'includeAllSlots':!0x1}),_0x1c5d08=Array['from'](_0xfa8ac0)['map'](_0x243297=>_0xc43e1d['createRangeOn'](_0x243297['cell']));_0x56af95['markMultiRangeInsertion'](_0x1c5d08,'tableColumn');});});}for(const _0x5d2ea6 of['removeTableRow','removeTableColumn']){const _0x4e4498=_0x5d2ea6['substr'](0xb),_0x3798f3=_0x4e4498['toLowerCase'](),_0x2db359=_0x3798f3['substr'](0x0,0x3)+'span',_0x13c86a='table'+_0x4e4498,_0x54bf70='min'+_0x4e4498,_0x187694='max'+_0x4e4498;_0x56af95['enableCommand'](_0x5d2ea6,()=>{_0x2ccf5b['model']['change'](_0x321e23=>{const _0x171527=_0x3fc548['getSelectionAffectedTableCells'](_0x564c36),_0x309e29=_0x171527[0x0]['findAncestor']('table');let _0x1ff906;if('removeTableRow'==_0x5d2ea6){const _0x64e497=_0x3fc548['getRowIndexes'](_0x171527);_0x1ff906={'startRow':_0x64e497['first'],'endRow':_0x64e497['last'],'includeAllSlots':!0x0};}else{const _0x411079=_0x3fc548['getColumnIndexes'](_0x171527);_0x1ff906={'startColumn':_0x411079['first'],'endColumn':_0x411079['last'],'includeAllSlots':!0x0};}const _0xa1d0f6=_0x3fc548['createTableWalker'](_0x309e29,_0x1ff906),_0x34f0ad=Array['from'](_0xa1d0f6)['map'](({cell:_0x2b47c5})=>_0x2b47c5),_0x126949=Re(_0x34f0ad['filter'](_0x1af8bf=>_0x1af8bf['hasAttribute'](_0x2db359))),_0x44c538=Re(_0x34f0ad['filter'](_0x3e91eb=>!_0x3e91eb['hasAttribute'](_0x2db359)))['map'](_0x5554ae=>_0x321e23['createRangeOn'](_0x5554ae)),_0x5add7d=_0x56af95['markMultiRangeDeletion'](_0x44c538,_0x13c86a);if(_0x5add7d&&('tableRow'==_0x5add7d['subType']||'tableColumn'==_0x5add7d['subType'])){const _0x2543e0=this['_getSuggestionCoords'](_0x5add7d);for(const _0x31788a of _0x126949){const _0x60cb66=_0x321e23['createRangeOn'](_0x31788a),_0x356d12=_0x3fc548['getCellLocation'](_0x31788a),_0x36d9ff=_0x31788a['getAttribute'](_0x2db359)-0x1,_0x451cc8=_0x2543e0[_0x54bf70],_0x178308=_0x2543e0[_0x187694];_0x451cc8<=_0x356d12[_0x3798f3]&&_0x356d12[_0x3798f3]+_0x36d9ff<=_0x178308&&_0x5add7d['addRange'](_0x60cb66);}}});});}function _0xb68af(_0x1d874a){const _0x161dde=Array['from'](_0x564c36['getRanges']())['map'](_0x4ef551=>_0x3756aa['fromRange'](_0x4ef551));_0x2ccf5b['model']['change'](_0x5926e7=>{const _0x4bd442=_0x5926e7['batch'];_0x1d874a=_0x1d874a['filter'](_0x1c304b=>'$graveyard'!=_0x1c304b['root']['rootName']),_0x5926e7['setSelection'](_0x1d874a),_0x2ccf5b['commands']['get']('removeTableRow')['refresh'](),_0x2ccf5b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2ccf5b['model']['enqueueChange'](()=>{_0x2ccf5b['model']['enqueueChange'](_0x4bd442,_0x492d57=>{const _0x3629e1=_0x161dde['filter'](_0x312f18=>'$graveyard'!=_0x312f18['root']['rootName']);_0x3629e1['length']>0x0&&_0x492d57['setSelection'](_0x3629e1);for(const _0x3dfe6b of _0x161dde)_0x3dfe6b['detach']();});});});}function _0x44d5fa(_0x5840d2){_0x2ccf5b['model']['change'](_0x37b083=>{const _0x49ca94=Array['from'](_0x564c36['getRanges']())['map'](_0x741f42=>_0x3756aa['fromRange'](_0x741f42)),_0x13cf23=[];for(const _0x408d51 of _0x5840d2)for(const _0x2c9354 of _0x408d51['getItems']({'shallow':!0x0}))_0x13cf23['push'](_0x2c9354);for(const _0x513162 of _0x13cf23)'$graveyard'!=_0x513162['root']['rootName']&&(_0x37b083['setSelection'](_0x37b083['createPositionAt'](_0x513162,0x0)),_0x2ccf5b['commands']['get']('removeTableColumn')['refresh'](),_0x2ccf5b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1b4809=_0x49ca94['filter'](_0x2ce43c=>'$graveyard'!=_0x2ce43c['root']['rootName']);_0x1b4809['length']>0x0&&_0x37b083['setSelection'](_0x1b4809);for(const _0x5c777a of _0x49ca94)_0x5c777a['detach']();});}function _0x554004(_0x487d38,_0x44be83){return _0x44be83['every'](_0x1b89e8=>_0x487d38['some'](_0x348a9d=>_0x348a9d['end']['isEqual'](_0x1b89e8['start'])||_0x1b89e8['end']['isEqual'](_0x348a9d['start'])));}function _0x31500f(_0x5e492d,_0x29bccb){return!_0x5e492d['some'](_0x32d443=>_0x29bccb['some'](_0x383dae=>_0x32d443['isIntersecting'](_0x383dae)))&&_0x5e492d['some'](_0x14c656=>_0x29bccb['some'](_0x4f176d=>_0x14c656['end']['isTouching'](_0x4f176d['start'])));}_0x56af95['descriptionFactory']['registerDescriptionCallback'](_0x52f52e=>{if('insertion'!=_0x52f52e['type']&&'deletion'!=_0x52f52e['type'])return;const _0x16f282=_0x52f52e['getContainedElement']();if(null!=_0x16f282&&_0x16f282['is']('element','table')){if('insertion'==_0x52f52e['type']){const _0x4ae743=_0x52f52e['getItems']()['filter'](_0x4539ad=>_0x4539ad['is']('$textProxy'))['map'](_0x3ff2ae=>_0x3ff2ae['data']);if(_0x4ae743['length'])return{'type':'insertion','content':At(_0x4f3088,'*Insert:*\x20%0',At(_0x4f3088,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4ae743['join']('\x20')+'\x22'))};}if('deletion'==_0x52f52e['type']){const _0x480970=_0x52f52e['getItems']()['filter'](_0x318f3d=>_0x318f3d['is']('$textProxy'))['map'](_0x56f9d6=>_0x56f9d6['data']);if(_0x480970['length'])return{'type':'deletion','content':At(_0x4f3088,'*Remove:*\x20%0',At(_0x4f3088,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x480970['join']('\x20')+'\x22'))};}}}),_0x56af95['descriptionFactory']['registerDescriptionCallback'](_0x54635f=>{if('tableRow'==_0x54635f['subType']){const _0x574024=_0x54635f['getItems']()['filter'](_0x1508c4=>_0x1508c4['is']('$textProxy'))['map'](_0x54025c=>_0x54025c['data']),_0x149604=this['_getSuggestionCoords'](_0x54635f),_0x38001f=_0x149604['maxRow']-_0x149604['minRow']+0x1;if('insertion'==_0x54635f['type'])return _0x574024['length']?{'type':'insertion','content':At(_0x4f3088,'*Insert:*\x20%0',At(_0x4f3088,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x38001f,'\x22'+_0x574024['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x4f3088,'*Insert:*\x20%0',At(_0x4f3088,'ELEMENT_TABLE_ROW',_0x38001f))};if('deletion'==_0x54635f['type'])return _0x574024['length']?{'type':'deletion','content':At(_0x4f3088,'*Remove:*\x20%0',At(_0x4f3088,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x38001f,'\x22'+_0x574024['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x4f3088,'*Remove:*\x20%0',At(_0x4f3088,'ELEMENT_TABLE_ROW',_0x38001f))};}if('tableColumn'==_0x54635f['subType']){const _0x495eb0=_0x54635f['getItems']()['filter'](_0x784f52=>_0x784f52['is']('$textProxy'))['map'](_0x5722a7=>_0x5722a7['data']),_0x319e34=this['_getSuggestionCoords'](_0x54635f),_0x33b0a4=_0x319e34['maxColumn']-_0x319e34['minColumn']+0x1;if('insertion'==_0x54635f['type'])return _0x495eb0['length']?{'type':'insertion','content':At(_0x4f3088,'*Insert:*\x20%0',At(_0x4f3088,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x33b0a4,'\x22'+_0x495eb0['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x4f3088,'*Insert:*\x20%0',At(_0x4f3088,'ELEMENT_TABLE_COLUMN',_0x33b0a4))};if('deletion'==_0x54635f['type'])return _0x495eb0['length']?{'type':'deletion','content':At(_0x4f3088,'*Remove:*\x20%0',At(_0x4f3088,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x33b0a4,'\x22'+_0x495eb0['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x4f3088,'*Remove:*\x20%0',At(_0x4f3088,'ELEMENT_TABLE_COLUMN',_0x33b0a4))};}}),_0x56af95['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xb68af),_0x56af95['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xb68af),_0x56af95['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x44d5fa),_0x56af95['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x44d5fa),_0x56af95['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x554004),_0x56af95['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x554004),_0x56af95['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x31500f),_0x56af95['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x31500f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5f0fa4=this['editor'],_0x3c20a8=_0x5f0fa4['model']['document']['selection'];return(_0x232ac8,_0x1cc6fa)=>{_0x5f0fa4['model']['change'](_0x2779de=>{const {commandName:_0x30de34,commandParams:_0xae8d82}=_0x1cc6fa;let _0x2c3cc9=_0x232ac8[0x0]['end']['nodeBefore'];_0xae8d82&&_0xae8d82[0x0]&&!0x1===_0xae8d82[0x0]['forceValue']&&(_0x2c3cc9=_0x232ac8[0x0]['start']['nodeAfter']);const _0x26ec0a=_0x2779de['createRangeIn'](_0x2c3cc9);if('$graveyard'==_0x26ec0a['root']['rootName'])return;const _0x546ddb=Array['from'](_0x3c20a8['getRanges']())['map'](_0x40fc6e=>_0x3756aa['fromRange'](_0x40fc6e));_0x2779de['setSelection'](_0x26ec0a),_0x5f0fa4['commands']['get'](_0x30de34)['refresh'](),_0xae8d82['push']({'forceDefaultExecution':!0x0}),_0x5f0fa4['execute'](_0x30de34,..._0xae8d82);const _0x5699f8=_0x546ddb['filter'](_0x31aedd=>'$graveyard'!=_0x31aedd['root']['rootName']);_0x5699f8['length']>0x0&&_0x2779de['setSelection'](_0x5699f8);for(const _0x324544 of _0x546ddb)_0x324544['detach']();});};}['_getCoordsForCells'](_0x1cae04){const _0x261719=this['editor']['plugins']['get']('TableUtils');let _0x2f8b88=Number['MAX_SAFE_INTEGER'],_0x1c83c7=Number['MIN_SAFE_INTEGER'],_0xb0b49b=Number['MAX_SAFE_INTEGER'],_0x59b349=Number['MIN_SAFE_INTEGER'];for(const _0x561880 of _0x1cae04){if('$graveyard'==_0x561880['root']['rootName'])continue;const {row:_0xdee17b,column:_0x3d4760}=_0x261719['getCellLocation'](_0x561880),_0x1378ac=_0x561880['hasAttribute']('rowspan')?_0x561880['getAttribute']('rowspan')-0x1:0x0,_0xdebc32=_0x561880['hasAttribute']('colspan')?_0x561880['getAttribute']('colspan')-0x1:0x0;_0x2f8b88=_0xdee17b<_0x2f8b88?_0xdee17b:_0x2f8b88,_0x1c83c7=_0xdee17b+_0x1378ac>_0x1c83c7?_0xdee17b+_0x1378ac:_0x1c83c7,_0xb0b49b=_0x3d4760<_0xb0b49b?_0x3d4760:_0xb0b49b,_0x59b349=_0x3d4760+_0xdebc32>_0x59b349?_0x3d4760+_0xdebc32:_0x59b349;}return{'minRow':_0x2f8b88,'maxRow':_0x1c83c7,'minColumn':_0xb0b49b,'maxColumn':_0x59b349};}['_setupColumnsRowsFixing'](){const _0x585afd=this['editor'],_0x1849c2=_0x585afd['plugins']['get']('TrackChangesEditing'),_0x10019d=_0x585afd['plugins']['get']('TableUtils');_0x585afd['model']['document']['on']('change:data',()=>{const _0x1cfc11=Array['from'](_0x585afd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x421b7b,data:_0x173e16}of _0x1cfc11){const {group:_0x75e007,id:_0x489834,subType:_0x367525}=_0x438505(_0x421b7b);if('suggestion'!=_0x75e007)continue;if(null!=_0x173e16['oldRange'])continue;const _0x2878c6=_0x1849c2['getSuggestion'](_0x489834);this['_tablePostFixingSubtypes']['includes'](_0x367525)&&this['_tableSuggestions']['add'](_0x2878c6);}},{'priority':'low'});const _0x50bee9=(_0x3b0883,_0x4392cd)=>{let _0x486701=!0x1;const _0x2a0176=_0x4392cd['createRangeOn'](_0x3b0883),_0x28a128=_0x3b0883['findAncestor']('table'),_0x12626f=_0x10019d['getCellLocation'](_0x3b0883);for(const _0x4a0c97 of this['_tableSuggestions']){const _0x34a52=_0x4a0c97['subType'],_0x249c03=_0x34a52['startsWith']('tablePaste'),_0x3eead0=_0x34a52['substr'](_0x249c03?0xa:0x5),_0x2ace79=_0x3eead0['toLowerCase'](),_0x527818=_0x2ace79['substr'](0x0,0x3)+'span',_0x1ee885='min'+_0x3eead0,_0xcdd9f5='max'+_0x3eead0;if(!_0x4a0c97['isInContent'])continue;if(_0x28a128!=_0x4a0c97['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4a0c97['isIntersectingWithRange'](_0x2a0176))continue;const _0x23393c=_0x3b0883['hasAttribute'](_0x527818)?_0x3b0883['getAttribute'](_0x527818)-0x1:0x0,_0x485840=this['_getSuggestionCoords'](_0x4a0c97),_0xfab86b=_0x485840[_0x1ee885],_0x412473=_0x485840[_0xcdd9f5];_0xfab86b<=_0x12626f[_0x2ace79]&&_0x12626f[_0x2ace79]+_0x23393c<=_0x412473&&(_0x4a0c97['addRange'](_0x2a0176),_0x486701=!0x0);}return _0x486701;};_0x585afd['model']['document']['registerPostFixer'](_0x507341=>{let _0x261c7b=!0x1;for(const _0x1573a of _0x585afd['model']['document']['differ']['getChanges']())if('insert'==_0x1573a['type']){if('tableRow'==_0x1573a['name']){for(const _0x33f2b5 of _0x1573a['position']['nodeAfter']['getChildren']())_0x261c7b=_0x261c7b||_0x50bee9(_0x33f2b5,_0x507341);}else'tableCell'==_0x1573a['name']&&(_0x261c7b=_0x261c7b||_0x50bee9(_0x1573a['position']['nodeAfter'],_0x507341));}return _0x261c7b;});}['_getSuggestionCoords'](_0x4519f){return this['_getCoordsForCells'](_0x4519f['getRanges']()['map'](_0x4ac39f=>_0x4ac39f['start']['nodeAfter']));}}function Re(_0x161c32){return Array['from'](new Set(_0x161c32)['values']());}class Se extends _0x298b0c{static get['requires'](){return[Ne];}['afterInit'](){const _0x5c6914=this['editor'],_0x333d9e=_0x5c6914['model']['document']['selection'],_0x36401c=_0x5c6914['locale'];if(!_0x5c6914['plugins']['has']('TableEditing'))return;const _0x5a0587=_0x5c6914['plugins']['get']('TrackChangesEditing'),_0x2a3dd0=_0x5c6914['plugins']['get']('TableUtils'),_0x210a9b=_0x5c6914['plugins']['get'](Ne);_0x210a9b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5a0587['enableCommand']('mergeTableCells',()=>{const _0x285690=_0x2a3dd0['getSelectionAffectedTableCells'](_0x5c6914['model']['document']['selection']);_0x5c6914['model']['change'](()=>{_0x5a0587['markMultiRangeBlockFormat'](_0x285690,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5c6914['commands']['get']('mergeTableCells')['on']('execute',(_0x4c848e,_0xe1375d)=>{_0x5c6914['commands']['get']('trackChanges')['value']&&(_0xe1375d['length']>0x0&&_0xe1375d[_0xe1375d['length']-0x1]&&_0xe1375d[_0xe1375d['length']-0x1]['forceDefaultExecution']||_0x5a0587['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4c848e['stop']());},{'priority':'highest'});for(const _0x15b783 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x301eb6=_0x5c6914['commands']['get'](_0x15b783);_0x5a0587['enableCommand'](_0x15b783,()=>{const _0x20ecda=_0x5c6914['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3db69e=>_0x3db69e['is']('element','tableCell')),_0x37ccd7=_0x301eb6['value'];_0x5c6914['model']['change'](()=>{_0x5a0587['markMultiRangeBlockFormat']([_0x20ecda,_0x37ccd7],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x30d3e5 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4f77fa=_0x5c6914['commands']['get'](_0x30d3e5);_0x5a0587['enableCommand'](_0x30d3e5,()=>{const _0x1fdfc5=_0x2a3dd0['getSelectionAffectedTableCells'](_0x5c6914['model']['document']['selection'])[0x0],_0x299827=_0x1fdfc5['findAncestor']('table'),{column:_0xac6cd0,row:_0x598765}=_0x2a3dd0['getCellLocation'](_0x1fdfc5);let _0x3d2575=[];if('horizontally'==_0x4f77fa['direction']){const _0x580d44=_0x2a3dd0['createTableWalker'](_0x299827,{'startRow':_0x598765,'endRow':_0x598765,'includeAllSlots':!0x0});_0x3d2575=Array['from'](_0x580d44)['map'](_0x170d44=>_0x170d44['cell']);}else{const _0x49dc1e=_0x2a3dd0['createTableWalker'](_0x299827,{'column':_0xac6cd0,'includeAllSlots':!0x0});_0x3d2575=Array['from'](_0x49dc1e)['map'](_0x4681ac=>_0x4681ac['cell']);}_0x5c6914['model']['change'](_0x227a21=>{_0x5a0587['markBlockFormat'](_0x227a21['createRangeOn'](_0x1fdfc5),{'commandName':_0x30d3e5,'commandParams':[]},_0x3d2575,_0x30d3e5);});});}_0x5a0587['descriptionFactory']['registerDescriptionCallback'](_0x7f6d52=>{if('formatBlock'!=_0x7f6d52['type']&&'formatInline'!=_0x7f6d52['type'])return;const {data:_0x1e1dac}=_0x7f6d52;return _0x1e1dac&&'mergeTableCells'==_0x1e1dac['commandName']?{'type':'format','content':At(_0x36401c,'*Merge\x20cells*')}:void 0x0;}),_0x5a0587['descriptionFactory']['registerDescriptionCallback'](_0x18b63b=>{if('formatBlock'!=_0x18b63b['type']&&'formatInline'!=_0x18b63b['type'])return;const {data:_0x8f3ebc}=_0x18b63b;return _0x8f3ebc?'splitTableCellVertically'==_0x8f3ebc['commandName']?{'type':'format','content':At(_0x36401c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x8f3ebc['commandName']?{'type':'format','content':At(_0x36401c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x70fb1e=_0x210a9b['_acceptFormatSuggestionCallbackFactory']();for(const _0x3a1ea6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5a0587['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3a1ea6,'accept',_0x70fb1e);for(const _0x151dc1 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5a0587['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x151dc1,'accept',_0x70fb1e);_0x5a0587['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2c608b=>{_0x5c6914['model']['change'](_0x1d12ac=>{const _0x8b0b64=Array['from'](_0x333d9e['getRanges']())['map'](_0x22189a=>_0x3756aa['fromRange'](_0x22189a));_0x1d12ac['setSelection'](_0x2c608b),_0x5c6914['commands']['get']('mergeTableCells')['refresh'](),_0x5c6914['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3744fa=_0x8b0b64['filter'](_0x32bcb7=>'$graveyard'!=_0x32bcb7['root']['rootName']);_0x3744fa['length']>0x0&&_0x1d12ac['setSelection'](_0x3744fa);for(const _0x4536ef of _0x8b0b64)_0x4536ef['detach']();});});for(const _0x147498 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2bc970=_0x5c6914['commands']['get'](_0x147498);_0x2bc970['on']('set:isEnabled',(_0x256a17,_0x30f4b8,_0x4da5e3)=>{if(_0x4da5e3){const _0x397be5=_0x5c6914['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x603823=>_0x603823['is']('element','tableCell'));this['_areMergableCells'](_0x2bc970['value'],_0x397be5)||(_0x256a17['return']=!0x1,_0x256a17['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xc67954=this['editor']['commands']['get']('mergeTableCells'),_0x116470=this['editor']['plugins']['get']('TableUtils');if(!_0xc67954['isEnabled'])return!0x1;const _0x33bb7a=_0x116470['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x107518 of _0x33bb7a)for(const _0x471e5f of _0x33bb7a)if(_0x107518!=_0x471e5f&&!this['_areMergableCells'](_0x107518,_0x471e5f))return!0x1;return!0x0;}['_areMergableCells'](_0x3efbdb,_0x481e08){const _0x3c1e2c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x171d66=this['editor']['model']['createRangeOn'](_0x3efbdb),_0x1fde9a=this['editor']['model']['createRangeOn'](_0x481e08),_0x4ab739=new Set(),_0x43f127=new Set();for(const _0xb84242 of _0x3c1e2c['getSuggestions']())if(('insertion'==_0xb84242['type']||'deletion'==_0xb84242['type']||'mergeTableCells'==_0xb84242['subType'])&&_0xb84242['isInContent']){for(const _0x26b51e of _0xb84242['getRanges']())_0x26b51e['containsRange'](_0x171d66,!0x0)&&_0x4ab739['add'](_0xb84242['type']+':'+_0xb84242['author']['id']),_0x26b51e['containsRange'](_0x1fde9a,!0x0)&&_0x43f127['add'](_0xb84242['type']+':'+_0xb84242['author']['id']);}if(_0x4ab739['size']!=_0x43f127['size'])return!0x1;for(const _0x57d62a of _0x4ab739)if(!_0x43f127['has'](_0x57d62a))return!0x1;return!0x0;}}class Me extends _0x298b0c{static get['requires'](){return[Ne];}['afterInit'](){const _0x84c8bc=this['editor'];if(!_0x84c8bc['plugins']['has']('TableEditing'))return;const _0x379256=_0x84c8bc['locale'],_0x252e98=_0x84c8bc['plugins']['get']('TrackChangesEditing');_0x252e98['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x252e98['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x252e98['descriptionFactory']['registerAttributeLabel']('headingRows',At(_0x379256,'FORMAT_HEADER_ROW')),_0x252e98['descriptionFactory']['registerAttributeLabel']('headingColumns',At(_0x379256,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2565ed=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5cfda8=this['editor']['plugins']['get'](Ne)['_acceptFormatSuggestionCallbackFactory']();_0x2565ed['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5cfda8),_0x2565ed['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5cfda8),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x2db156=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5deeea=this['editor']['plugins']['get']('TableUtils');function _0x40358f({showActiveMarker:_0x11b57f=!0x0,setDataAttribute:_0x273fcb=!0x0}={}){return(_0x180ff3,_0x2789ca,_0x2441d4)=>{const {type:_0x31888d,id:_0x2c1e46}=_0x438505(_0x2789ca['markerName']);if(!_0x2db156['hasSuggestion'](_0x2c1e46))return;const _0x224b63=_0x2db156['getSuggestion'](_0x2c1e46),_0x5aad58=_0x224b63['data'];if('formatBlock'!=_0x224b63['type']||!_0x5aad58||'setTableColumnHeader'!=_0x5aad58['commandName'])return;if(_0x2789ca['item'])return void _0x180ff3['stop']();if(!_0x2441d4['consumable']['consume'](_0x2789ca['markerRange'],_0x180ff3['name']))return;const _0x4701e3=_0x2789ca['markerRange']['start']['nodeAfter'],_0x4c8d8f=_0x2789ca['markerRange']['end']['nodeBefore'],_0x47d574=_0x4701e3['parent']['parent'],{column:_0x589679}=_0x5deeea['getCellLocation'](_0x4701e3),{column:_0x54f26c}=_0x5deeea['getCellLocation'](_0x4c8d8f);for(let _0x52c264=_0x589679;_0x52c264<=_0x54f26c;_0x52c264++){const _0xfb047f=_0x5deeea['createTableWalker'](_0x47d574,{'column':_0x52c264,'includeAllSlots':!0x1});for(const _0x387aa5 of _0xfb047f){const _0x577daf=_0x387aa5['cell'],_0x4b1a6c=_0x2441d4['mapper']['toViewElement'](_0x577daf);_0x2441d4['writer']['addClass']('ck-suggestion-marker-'+_0x31888d,_0x4b1a6c),_0x273fcb&&_0x2441d4['writer']['setAttribute']('data-suggestion',_0x2c1e46,_0x4b1a6c),_0x2441d4['mapper']['bindElementToMarker'](_0x4b1a6c,_0x2789ca['markerName']),_0x11b57f&&(_0x2db156['activeMarkers']['includes'](_0x2789ca['markerName'])?_0x2441d4['writer']['addClass']('ck-suggestion-marker--active',_0x4b1a6c):_0x2441d4['writer']['removeClass']('ck-suggestion-marker--active',_0x4b1a6c));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x40358f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xc89134,_0x2a40e7,_0x1d2e3c)=>{_0x1d2e3c['options']['showSuggestionHighlights']&&_0x40358f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xc89134,_0x2a40e7,_0x1d2e3c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x299012,_0x2fe39e,_0x186a31)=>{const {type:_0x5f07ac,id:_0x387bf7}=_0x438505(_0x2fe39e['markerName']);if(!_0x2db156['hasSuggestion'](_0x387bf7))return;const _0x5ed4e3=_0x2db156['getSuggestion'](_0x387bf7),_0x40a79a=_0x5ed4e3['data'];if('formatBlock'!=_0x5ed4e3['type']||!_0x40a79a||'setTableColumnHeader'!=_0x40a79a['commandName'])return;const _0x311815=_0x186a31['mapper']['markerNameToElements'](_0x2fe39e['markerName']);if(_0x311815){for(const _0x28003c of _0x311815)_0x186a31['writer']['removeClass']('ck-suggestion-marker-'+_0x5f07ac,_0x28003c),_0x186a31['writer']['removeClass']('ck-suggestion-marker--active',_0x28003c),_0x186a31['writer']['removeAttribute']('data-suggestion',_0x28003c),_0x186a31['mapper']['unbindElementFromMarkerName'](_0x28003c,_0x2fe39e['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x1d1ee9=this['editor'],_0x3c77f4=_0x1d1ee9['locale'];function _0x1e6151(_0x12578a){return{'type':'format','content':At(_0x3c77f4,'*Format:*\x20%0',_0x12578a)};}_0x1d1ee9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51f47c=>{if('formatBlock'!=_0x51f47c['type'])return;const {data:_0x572f8f}=_0x51f47c;if(_0x572f8f){if('setTableRowHeader'==_0x572f8f['commandName']){const _0xa1523b=_0x572f8f['commandParams'][0x0]['forceValue'];return _0x1e6151(At(_0x3c77f4,_0xa1523b?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x572f8f['commandName']){const _0x38ba53=_0x572f8f['commandParams'][0x0]['forceValue'];return _0x1e6151(At(_0x3c77f4,_0x38ba53?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Oe extends _0x298b0c{static get['requires'](){return[Ne];}['afterInit'](){const _0x164f2b=this['editor'];if(!_0x164f2b['plugins']['has']('TableEditing')||!_0x164f2b['config']['get']('table.enableFooters'))return;const _0x449289=_0x164f2b['locale'],_0x44e405=_0x164f2b['plugins']['get']('TrackChangesEditing');_0x44e405['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x44e405['descriptionFactory']['registerAttributeLabel']('footerRows',At(_0x449289,'FORMAT_FOOTER_ROW'));}}class we extends _0x298b0c{['afterInit'](){const _0xa916c7=this['editor'],_0x3a7959=_0xa916c7['locale'],_0x16c106=_0xa916c7['plugins']['get']('TrackChangesEditing');function _0x56edfb(_0x6c44ad){return{'type':'format','content':''+At(_0x3a7959,'*Set\x20table\x20type:*\x20%0',_0x6c44ad)};}_0xa916c7['plugins']['has']('TableLayout')&&(_0x16c106['enableCommand']('insertTableLayout'),_0x16c106['enableDefaultAttributesIntegration']('tableType'),_0x16c106['descriptionFactory']['registerElementLabel'](_0x3ce65d=>_0x3ce65d['is']('element','table')&&'layout'===_0x3ce65d['getAttribute']('tableType'),_0x363143=>At(_0x3a7959,'ELEMENT_LAYOUT_TABLE',_0x363143)),_0x16c106['descriptionFactory']['registerDescriptionCallback'](_0x4e8b43=>{const {data:_0x5d23ea}=_0x4e8b43;if(_0x5d23ea&&'tableType'==_0x5d23ea['key'])switch(_0x5d23ea['newValue']){case'layout':return _0x56edfb(At(_0x3a7959,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x56edfb(At(_0x3a7959,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Fe=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Be['map'](_0x642cf4=>[_0x642cf4,null]));class De extends _0x298b0c{static get['requires'](){return[Ne];}['afterInit'](){const _0x912a87=this['editor'];if(!_0x912a87['plugins']['has']('TableClipboard'))return;const _0x372673=_0x912a87['plugins']['get']('TrackChangesEditing'),_0x218bff=_0x912a87['plugins']['get']('TableUtils'),_0x4cb023=_0x912a87['plugins']['get'](Ne),_0x113cf7=_0x912a87['plugins']['get']('TableClipboard'),_0x7d541b=_0x912a87['plugins']['get']('TableSelection'),_0x1940c8=_0x912a87['plugins']['get'](ut);_0x4cb023['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x912a87['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x912a87['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x424f7f=null,_0x236687=!0x1;_0x1940c8['on']('contentInsertion',(_0x7d837a,_0x5de5d7)=>{_0x236687='paste'===_0x5de5d7['method'];}),_0x912a87['model']['on']('insertContent',(_0x580d47,_0x57f87d)=>{if(!_0x236687&&null===_0x7d541b['getSelectedTableCells']())return;const [_0x189fd3,_0x18ab15]=_0x57f87d,_0x35bda4=_0x57f87d[_0x57f87d['length']-0x1];_0x35bda4&&_0x35bda4['forceDefaultExecution']||_0x372673['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x17e0a4,_0x289ca4,_0x2055c7,_0x39e226,_0x4c4c7c){if(_0x289ca4&&!_0x289ca4['is']('documentSelection'))return!0x1;const _0x202267=_0x4c4c7c['getTableIfOnlyTableInContent'](_0x17e0a4,_0x2055c7);if(!_0x202267||!xe(_0x202267,void 0x0,_0x39e226))return!0x1;const _0x57b2d1=_0x39e226['getSelectionAffectedTableCells'](_0x2055c7['document']['selection']);if(!_0x57b2d1['length'])return!0x1;const _0x275370=_0x57b2d1[0x0]['findAncestor']('table'),_0x3b1ea0=_0x39e226['getRowIndexes'](_0x57b2d1),_0x108858=_0x39e226['getColumnIndexes'](_0x57b2d1),_0x273a56={'startRow':_0x3b1ea0['first'],'endRow':_0x3b1ea0['last'],'startColumn':_0x108858['first'],'endColumn':_0x108858['last']};return 0x1==_0x57b2d1['length']&&(_0x273a56['endRow']+=_0x39e226['getRows'](_0x202267)-0x1,_0x273a56['endColumn']+=_0x39e226['getColumns'](_0x202267)-0x1),xe(_0x275370,_0x273a56,_0x39e226);}(_0x189fd3,_0x18ab15,_0x912a87['model'],_0x218bff,_0x113cf7)&&(_0x580d47['stop'](),_0x424f7f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x912a87['model']['change'](()=>{_0x912a87['model']['insertContent'](_0x57f87d[0x0],_0x57f87d[0x1],_0x57f87d[0x2],{'forceDefaultExecution':!0x0});const _0x22e790=_0x12e742(),{rowInsertionRanges:_0x33049f,columnInsertionRanges:_0xccdce2,insertionRanges:_0x1e00b4,deletionRanges:_0x1bfc95,cells:_0x3111a4}=_0x424f7f;_0x33049f['length']&&_0x372673['markMultiRangeInsertion'](_0x33049f,'tablePasteRow',{'tablePasteChainId':_0x22e790}),_0xccdce2['length']&&_0x372673['markMultiRangeInsertion'](_0xccdce2,'tablePasteColumn',{'tablePasteChainId':_0x22e790}),_0x1e00b4['length']&&(_0x372673['markMultiRangeInsertion'](_0x1e00b4,'tablePaste',{'tablePasteChainId':_0x22e790,'skipNestingCheck':!0x0}),_0x1e00b4['forEach'](_0x5c13b8=>_0x5c13b8['detach']?.())),_0x1bfc95['length']&&(_0x372673['markMultiRangeDeletion'](_0x1bfc95,'tablePaste',{'tablePasteChainId':_0x22e790,'skipNestingCheck':!0x0}),_0x1bfc95['forEach'](_0xa6a640=>_0xa6a640['detach']?.()));const _0x5e5e0f=_0x372673['markMultiRangeBlockFormat'](_0x3111a4['map'](({element:_0x36ee2b})=>_0x36ee2b),{'formatGroupId':_0x12e742()},[],'tablePasteCell',{'tablePasteChainId':_0x22e790});if(_0x5e5e0f){const _0x251739=_0x5e5e0f['getMarkers'](),_0x48eee2=[];for(const {element:_0x14f9a3,attributes:_0x5f092c}of _0x3111a4){if(!_0x5f092c)continue;const _0x55cc19=_0x912a87['model']['createRangeOn'](_0x14f9a3),_0x368abc=_0x251739['find'](_0x15149b=>_0x15149b['getRange']()['isEqual'](_0x55cc19));_0x368abc&&_0x48eee2['push']([_0x368abc['name'],_0x5f092c]);}_0x48eee2['length']&&_0x5e5e0f['setAttribute']('markerAttributes',Object['fromEntries'](_0x48eee2));}_0x424f7f=null;}));},{'priority':_0x2043b9['high']+0xa}),_0x1940c8['on']('contentInsertion',()=>{_0x236687=!0x1;},{'priority':'lowest'}),_0x912a87['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x35336e,_0x444584)=>{const [_0x41b91e,_0x4ac30d,,_0x3c7546]=_0x444584;if(!_0x424f7f)return;_0x35336e['stop']();const _0x5739f2=_0x41b91e['cell'],_0x421d45=_0x4ac30d,_0x506322=ve(_0x5739f2),_0x4cb664=ve(_0x421d45);_0x35336e['return']=_0x5739f2;let _0x56e1a2=null,_0x26160a=null;if(_0x4cb664||_0x506322){if(_0x506322&&!_0x4cb664){_0x3c7546['remove'](_0x5739f2['getChild'](0x0));for(const _0x4826bc of Array['from'](_0x421d45['getChildren']()))_0x3c7546['insert'](_0x4826bc,_0x5739f2,'end');const _0x5880e4=_0x424f7f['rowInsertionIndexes']['includes'](_0x41b91e['row']),_0x13ce98=_0x424f7f['columnInsertionIndexes']['includes'](_0x41b91e['column']);_0x5880e4||_0x13ce98||(_0x56e1a2=_0x3756aa['fromRange'](_0x3c7546['createRangeIn'](_0x5739f2)));}else _0x4cb664&&!_0x506322&&(_0x26160a=_0x3c7546['createRangeIn'](_0x5739f2));}else{const _0x1afdb3=_0x3c7546['createElement']('tableCellSuggestion'),_0x253f6a=_0x3c7546['createElement']('tableCellSuggestion');_0x3c7546['wrap'](_0x3c7546['createRangeIn'](_0x5739f2),_0x253f6a),_0x3c7546['insert'](_0x1afdb3,_0x5739f2,0x0);for(const _0x15193a of Array['from'](_0x421d45['getChildren']()))_0x3c7546['insert'](_0x15193a,_0x1afdb3,'end');_0x56e1a2=_0x3756aa['fromRange'](_0x3c7546['createRangeOn'](_0x1afdb3)),_0x26160a=_0x3756aa['fromRange'](_0x3c7546['createRangeOn'](_0x253f6a));}const _0x4275b3=Array['from'](_0x421d45['getAttributes']())['filter'](([_0x38d69f])=>Be['includes'](_0x38d69f));_0x424f7f['cells']['push']({'element':_0x5739f2,'attributes':_0x4275b3['length']?Object['fromEntries'](_0x4275b3):null}),_0x56e1a2&&_0x424f7f['insertionRanges']['push'](_0x56e1a2),_0x26160a&&_0x424f7f['deletionRanges']['push'](_0x26160a);},{'priority':'high'}),_0x218bff['on']('insertColumns',(_0x3dc71d,_0x3f0239)=>{const [_0x34701d,_0x46ec6d={}]=_0x3f0239;if(!_0x424f7f)return;const _0x48e9ad=_0x46ec6d['at']||0x0,_0xd2b1a4=_0x46ec6d['columns']||0x1;_0x424f7f['columnInsertionIndexes']=new Array(_0xd2b1a4)['fill'](_0x48e9ad)['map']((_0x41ce72,_0x4c13e6)=>_0x41ce72+_0x4c13e6);for(const {cell:_0x49f7f9}of _0x218bff['createTableWalker'](_0x34701d,{'startColumn':_0x48e9ad,'endColumn':_0x48e9ad+_0xd2b1a4-0x1}))_0x424f7f['columnInsertionRanges']['push'](_0x912a87['model']['createRangeOn'](_0x49f7f9));},{'priority':'low'}),_0x218bff['on']('insertRows',(_0xb35073,_0x15fd70)=>{const [_0x587f56,_0x32c5f0={}]=_0x15fd70;if(!_0x424f7f)return;const _0x108375=_0x32c5f0['at']||0x0,_0x2493af=_0x32c5f0['rows']||0x1;_0x424f7f['rowInsertionIndexes']=new Array(_0x2493af)['fill'](_0x108375)['map']((_0x12a9f6,_0x4e1ab0)=>_0x12a9f6+_0x4e1ab0);for(const {cell:_0x1db99f}of _0x218bff['createTableWalker'](_0x587f56,{'startRow':_0x108375,'endRow':_0x108375+_0x2493af-0x1}))_0x424f7f['rowInsertionRanges']['push'](_0x912a87['model']['createRangeOn'](_0x1db99f));},{'priority':'low'}),_0x372673['descriptionFactory']['registerDescriptionCallback'](_0x5133a4=>{if(_0x5133a4['subType']&&_0x5133a4['subType']['startsWith']('tablePaste'))return _0x5133a4['previous']?{}:{'type':'insertion','content':At(_0x912a87['locale'],'*Replace\x20table\x20cells*')};});const _0x24feae=()=>!0x1;for(const _0x456c87 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x372673['_suggestionFactory']['registerCustomCallback']('insertion',_0x456c87,'join',_0x24feae),_0x372673['_suggestionFactory']['registerCustomCallback']('deletion',_0x456c87,'join',_0x24feae),_0x372673['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x456c87,'join',_0x24feae);_0x372673['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x24feae),_0x372673['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5ee769,_0x2277e6,_0x1558ca)=>{const _0x9f9f81=_0x5ee769['map'](_0x3f6870=>_0x3f6870['getContainedElement']())['filter'](_0x33f064=>_0x33f064),_0x3dee7c=new Map(_0x9f9f81['map'](_0x49732b=>[_0x49732b,null]));if(_0x424f7f){for(const {element:_0x258364,attributes:_0x3877f9}of _0x424f7f['cells'])_0x3877f9&&_0x3dee7c['set'](_0x258364,_0x3877f9);}else{if(_0x1558ca&&_0x1558ca['markerAttributes'])for(const [_0x50597a,_0x1df1f3]of Object['entries'](_0x1558ca['markerAttributes'])){const _0x31eecd=_0x912a87['model']['markers']['get'](_0x50597a),_0x269f3b=_0x31eecd?_0x31eecd['getRange']()['getContainedElement']():null;_0x269f3b&&_0x3dee7c['set'](_0x269f3b,_0x1df1f3);}}_0x912a87['model']['change'](_0x7fa08c=>{for(const [_0x13159f,_0x33d142]of _0x3dee7c)_0x7fa08c['setAttributes']({...Fe,..._0x33d142},_0x13159f);});});const _0x21f579=(_0x2e71f0,_0x152490)=>{_0x372673['_suggestionFactory']['registerCustomCallback'](_0x2e71f0,'tablePaste',_0x152490,(_0x54b148,_0x3f675c,_0x2df5c3)=>{_0x912a87['model']['change'](_0x20a805=>{const _0x55413c=[];for(const _0x2f5358 of _0x54b148){const _0x3f8de1=_0x2f5358['start']['nodeAfter'];_0x3f8de1['is']('element','tableCellSuggestion')&&_0x55413c['push'](_0x3f8de1);}_0x372673['_suggestionFactory']['getSuggestionCallback'](_0x2e71f0,null,_0x152490)(_0x54b148,_0x3f675c,_0x2df5c3);for(const _0x144d04 of _0x55413c)'$graveyard'!=_0x144d04['root']['rootName']&&_0x20a805['unwrap'](_0x144d04);});});};_0x21f579('insertion','accept'),_0x21f579('insertion','discard'),_0x21f579('deletion','accept'),_0x21f579('deletion','discard'),_0x372673['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3dca5e=>{const _0x4319d7=_0x3dca5e['map'](_0x13ba84=>_0x13ba84['getContainedElement']()),_0x13d05a=_0x4319d7[0x0]['findAncestor']('table'),{minRow:_0x146995,maxRow:_0x21af45}=_0x4cb023['_getCoordsForCells'](_0x4319d7);_0x218bff['removeRows'](_0x13d05a,{'at':_0x146995,'rows':_0x21af45-_0x146995+0x1});}),_0x372673['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2bce81=>{const _0x1fa37f=_0x2bce81['map'](_0x34407c=>_0x34407c['getContainedElement']()),_0x4c6f26=_0x1fa37f[0x0]['findAncestor']('table'),{minColumn:_0x12a9d2,maxColumn:_0x38ff1d}=_0x4cb023['_getCoordsForCells'](_0x1fa37f);_0x218bff['removeColumns'](_0x4c6f26,{'at':_0x12a9d2,'columns':_0x38ff1d-_0x12a9d2+0x1});});const _0x4ecac3=(_0x5bd158,_0x6091f9)=>{if(!_0x6091f9['subType']||!_0x6091f9['subType']['startsWith']('tablePaste'))return;const _0x5647d8=_0x6091f9['attributes']['tablePasteChainId'],_0x7057d6=_0x372673['getSuggestions']()['filter'](_0x284ce5=>_0x284ce5['isInContent']&&_0x284ce5['attributes']&&_0x284ce5['attributes']['tablePasteChainId']==_0x5647d8);_0x7057d6['length']&&_0x6091f9['getAllAdjacentSuggestions']()['length']!=_0x7057d6['length']&&_0x7057d6['reduce']((_0x3bbc59,_0x21270b)=>(_0x3bbc59['next']=_0x21270b,_0x21270b['previous']=_0x3bbc59,_0x21270b));};function _0xe00ffd(_0x50f21a,_0x387afb=!0x0){const {id:_0x45f568,authorId:_0x192ab1}=_0x438505(_0x50f21a['markerName']),_0x22d8de=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x316329=_0x372673['activeMarkers']['includes'](_0x50f21a['markerName']);return _0x316329&&_0x22d8de['push']('ck-suggestion-marker--active'),{'classes':_0x22d8de,'attributes':{'data-suggestion':_0x45f568,'data-author-id':_0x192ab1},'priority':_0x316329&&_0x387afb?0xbc2:0xbb8};}_0x372673['on']('suggestionLoaded',_0x4ecac3,{'priority':'high'}),_0x372673['on']('suggestionUnloaded',_0x4ecac3,{'priority':'high'}),_0x912a87['model']['document']['registerPostFixer'](()=>{let _0x49f50c=!0x1;const _0x45955a=Array['from'](_0x912a87['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x16c941,data:_0x32b85b}of _0x45955a){const {group:_0x495f17,type:_0x48fbcd,id:_0x4d097}=_0x438505(_0x16c941);if('suggestion'!=_0x495f17||'deletion'!=_0x48fbcd||_0x32b85b['oldRange'])continue;if(!_0x372673['hasSuggestion'](_0x4d097))continue;const _0x2adac5=_0x372673['getSuggestion'](_0x4d097)['getRanges'](),_0x2bc2b6=_0x912a87['plugins']['get']('Users')['me'];for(const _0x413fb5 of _0x372673['getSuggestions']()){if(!_0x413fb5['isInContent']||_0x413fb5['author']!=_0x2bc2b6)continue;if('formatBlock'!=_0x413fb5['type']||'tablePasteCell'!=_0x413fb5['subType'])continue;if(_0x413fb5['getRanges']()['every'](_0x5a0b67=>_0x2adac5['some'](_0x2dda79=>_0x2dda79['containsRange'](_0x5a0b67,!0x0)))){for(const _0x27b464 of _0x413fb5['getAllAdjacentSuggestions']())_0x27b464['isInContent']&&(_0x27b464['discard'](),_0x49f50c=!0x0);}}}return _0x49f50c;}),_0x912a87['model']['document']['registerPostFixer'](_0x4640d4=>{const _0x4f4e5f=_0x912a87['commands']['get']('redo');if(!_0x4f4e5f||!_0x4f4e5f['_createdBatches']['has'](_0x4640d4['batch']))return!0x1;let _0x29bc75=!0x1;const _0xbf8056=_0x912a87['plugins']['get']('Users')['me'],_0x3858d6=_0x912a87['model']['document']['differ']['getChanges'](),_0x3d6d00=Array['from'](_0x912a87['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4277dc,data:_0x560f7c})=>{const {group:_0x289e51,subType:_0x1d901d,authorId:_0x435733}=_0x438505(_0x4277dc);return'suggestion'==_0x289e51&&'tablePaste'==_0x1d901d&&_0x435733==_0xbf8056['id']&&!_0x560f7c['oldRange'];});for(const _0x59fed5 of _0x3858d6){if('insert'!=_0x59fed5['type']||'tableCellSuggestion'!=_0x59fed5['name']||0x1!=_0x59fed5['length'])continue;const _0x4904bc=_0x4640d4['createRange'](_0x59fed5['position'],_0x59fed5['position']['getShiftedBy'](0x1));if(!_0x3d6d00['find'](({data:_0x96e9bf})=>_0x96e9bf['newRange']['isEqual'](_0x4904bc))){for(const {name:_0x1bb546,data:_0x868ce8}of _0x3d6d00)if(_0x4904bc['containsRange'](_0x868ce8['newRange'])){_0x4640d4['updateMarker'](_0x1bb546,{'range':_0x4904bc}),_0x29bc75=!0x0;break;}}}return _0x29bc75;}),_0x912a87['model']['document']['registerPostFixer'](_0x511b93=>{let _0xcb649e=!0x1;const _0x301a2f=_0x912a87['plugins']['get']('Users')['me'],_0x1e8684=_0x372673['getSuggestions']()['filter'](_0x4cf7ee=>_0x4cf7ee['isInContent']&&_0x4cf7ee['author']==_0x301a2f),_0x617d75=new Set(),_0x370ffb=new Set();for(const _0x6917fc of _0x1e8684)if('tablePaste'==_0x6917fc['subType'])for(const _0x504496 of _0x6917fc['getMarkers']()){const _0xdcf2aa=_0x504496['getRange']()['getContainedElement']();if(_0xdcf2aa){if(_0xdcf2aa['is']('element','tableCellSuggestion')&&ve(_0xdcf2aa)){_0x6917fc['removeMarker'](_0x504496['name']),_0x617d75['add'](_0xdcf2aa),_0xcb649e=!0x0;const _0x4a362a=_0xdcf2aa['nextSibling'],_0x7bcd27=_0xdcf2aa['previousSibling'],_0x2b2491=_0x4a362a&&_0x4a362a['is']('element','tableCellSuggestion'),_0x5402f9=_0x7bcd27&&_0x7bcd27['is']('element','tableCellSuggestion');_0x2b2491&&!_0x617d75['has'](_0x4a362a)&&_0x370ffb['add'](_0x4a362a),_0x5402f9&&!_0x617d75['has'](_0x7bcd27)&&_0x370ffb['add'](_0x7bcd27);}else _0xdcf2aa['is']('element','paragraph')&&_0xdcf2aa['isEmpty']&&(_0x6917fc['removeMarker'](_0x504496['name']),_0xcb649e=!0x0);}}else{if('tablePasteCell'==_0x6917fc['subType']){if(!_0x6917fc['attributes']||!_0x6917fc['attributes']['tablePasteChainId'])continue;const _0x12ede1=_0x6917fc['attributes']['markerAttributes'];if(_0x12ede1&&Object['keys'](_0x12ede1)['length'])continue;const _0x27ced6=_0x6917fc['attributes']['tablePasteChainId'];let _0x4d8277=!0x0,_0x5b159f=!0x0;for(const _0x5bbefc of _0x1e8684)if(_0x5bbefc['subType']&&_0x5bbefc['subType']['startsWith']('tablePaste')){if(!_0x5bbefc['attributes']['tablePasteChainId']){_0x5b159f=!0x1;break;}if(_0x5bbefc['id']!=_0x6917fc['id']&&_0x5bbefc['attributes']['tablePasteChainId']==_0x27ced6){_0x4d8277=!0x1;break;}}_0x5b159f&&_0x4d8277&&(_0x6917fc['removeMarkers'](),_0xcb649e=!0x0);}}for(const _0x3efddf of _0x617d75)_0x511b93['remove'](_0x3efddf);for(const _0x355941 of _0x370ffb)_0x511b93['unwrap'](_0x355941);return _0xcb649e;}),_0x912a87['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4feb7e=>_0xe00ffd(_0x4feb7e),'converterPriority':'high'}),_0x912a87['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x185bfa,_0x13a9c8)=>_0x13a9c8['options']['showSuggestionHighlights']?_0xe00ffd(_0x185bfa,!0x1):null,'converterPriority':'high'});const _0x4b136b=_0x912a87['editing']['view'];this['listenTo'](_0x4b136b['document'],'clipboardOutput',(_0x6e3af0,_0x5b5bb6)=>{const _0x5e532b=[];for(const _0x31c0a4 of _0x4b136b['createRangeIn'](_0x5b5bb6['content'])['getItems']())_0x31c0a4['is']('element','suggestion-td')&&_0x5e532b['push'](_0x31c0a4);_0x4b136b['change'](_0x40f3b4=>{for(const _0x30a852 of _0x5e532b)_0x40f3b4['move'](_0x40f3b4['createRangeIn'](_0x30a852),_0x40f3b4['createPositionBefore'](_0x30a852)),_0x40f3b4['remove'](_0x30a852);});});}}function ve(_0x29c50a){if(_0x29c50a['isEmpty'])return!0x0;const _0x1568f9=_0x29c50a['getChild'](0x0);return _0x1568f9['is']('element','paragraph')&&_0x1568f9['isEmpty'];}function xe(_0x1359ad,_0x154762={},_0x18593b){for(const {isAnchor:_0x38bb08,cellHeight:_0x26f6d7,cellWidth:_0x448fdd}of _0x18593b['createTableWalker'](_0x1359ad,{'includeAllSlots':!0x0,..._0x154762}))if(!_0x38bb08||0x1!=_0x26f6d7||0x1!=_0x448fdd)return!0x1;return!0x0;}class Pe extends _0x298b0c{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x204115=this['editor']['plugins']['get']('TrackChangesEditing');_0x204115['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x204115['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x204115['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x204115['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x204115['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x204115['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3ed63d,_0x90139d){const _0x2f11f8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54c5ef=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x485f5f=_0x90139d['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x20518b=_0x54c5ef['getColumnGroupElement'](_0x485f5f);let _0x16e5fc=_0x20518b?_0x54c5ef['getTableColumnsWidths'](_0x20518b):null,_0x43c49e=_0x485f5f['getAttribute']('tableWidth')||null;const _0x3a9d27=_0x90139d['tableWidth']||_0x43c49e,_0x70cc8f=_0x90139d['columnWidths']||_0x16e5fc,_0x4cc3a7=this['editor']['plugins']['get']('Users')['me'];for(const _0x16e6b8 of _0x2f11f8['getSuggestions']()){const _0x5b5d57=_0x16e6b8['getContainedElement']();if('resizeTable'===_0x16e6b8['subType']&&_0x5b5d57===_0x485f5f){_0x16e6b8['author']!==_0x4cc3a7&&_0x16e6b8['discard']();const _0x101111=_0x16e6b8['data']['commandParams'];_0x43c49e=_0x101111[0x0]['tableWidth'],_0x16e5fc=_0x101111[0x0]['columnWidths'];break;}}_0x3ed63d({'table':_0x485f5f,'tableWidth':_0x3a9d27,'columnWidths':_0x70cc8f}),_0x2f11f8['markBlockFormat'](_0x485f5f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x43c49e,'columnWidths':_0x16e5fc}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x18303b){if('formatBlock'!=_0x18303b['type']&&'formatInline'!=_0x18303b['type'])return;const {data:_0x45b249}=_0x18303b;if(_0x45b249&&'resizeTable'===_0x45b249['formatGroupId']){const _0x4f86e4='*Format:*\x20resize\x20table';return{'type':'format','content':At(this['editor']['locale'],_0x4f86e4)};}}}class Ue extends _0x298b0c{['afterInit'](){const _0x4c93e4=this['editor'];_0x4c93e4['plugins']['has']('Template')&&_0x4c93e4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ge extends _0x298b0c{['afterInit'](){const _0x3169a8=this['editor'];if(!_0x3169a8['commands']['get']('insertTableOfContents'))return;_0x3169a8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x204ada=_0x3169a8['plugins']['get']('TrackChangesEditing'),_0x451e9f=_0x3169a8['locale'];_0x204ada['descriptionFactory']['registerElementLabel']('tableOfContents',_0x51fe2b=>At(_0x451e9f,'ELEMENT_TABLE_OF_CONTENTS',_0x51fe2b));}}class He extends _0x298b0c{['afterInit'](){const _0x42515e=this['editor'];if(!_0x42515e['plugins']['has']('Title'))return;_0x42515e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>At(_0x42515e['locale'],'ELEMENT_TITLE')),_0x42515e['model']['document']['registerPostFixer'](_0x328602=>{let _0x536b82=!0x1;const _0x27e611=Array['from'](_0x42515e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3a9a05,data:_0x17193e}of _0x27e611){const {group:_0x6fac08}=_0x438505(_0x3a9a05);if('suggestion'!==_0x6fac08||!_0x17193e['newRange'])continue;const _0x22d72d=_0x17193e['newRange'],_0x5cd018=_0x22d72d['end']['nodeBefore'];if(!_0x5cd018||!_0x5cd018['is']('element','title-content'))continue;if(!_0x22d72d['start']['isTouching'](_0x22d72d['end']))continue;const _0x5a738c=_0x42515e['model']['schema']['getNearestSelectionRange'](_0x22d72d['end'],'forward');if(_0x5a738c&&_0x5a738c['isCollapsed']){const _0x2806ce=_0x328602['createRange'](_0x22d72d['start'],_0x5a738c['start']);_0x2806ce['isEqual'](_0x22d72d)||(_0x328602['updateMarker'](_0x3a9a05,{'range':_0x2806ce}),_0x536b82=!0x0);}_0x536b82||(_0x328602['removeMarker'](_0x3a9a05),_0x536b82=!0x0);}return _0x536b82;});}}class $e extends _0x298b0c{['afterInit'](){const _0xd1aa55=this['editor'],_0x1ce5a1=_0xd1aa55['plugins']['get']('TrackChangesEditing');_0xd1aa55['plugins']['has']('Uploadcare')&&(_0x1ce5a1['enableCommand']('uploadcare'),_0xd1aa55['plugins']['has']('UploadcareImageEdit')&&(_0x1ce5a1['enableCommand']('uploadcareImageEdit'),_0x1ce5a1['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x1ce5a1['descriptionFactory']['registerDescriptionCallback'](_0x1e3045=>{if('attribute'!=_0x1e3045['type'])return;const {data:_0x3b8c64}=_0x1e3045;return _0x3b8c64&&'uploadcareImageId'==_0x3b8c64['key']?{'type':'format','content':''}:void 0x0;})));}}class We extends _0x298b0c{['afterInit'](){const _0x14ecd4=this['editor'],_0x4a0d27=_0x14ecd4['plugins']['get']('TrackChangesEditing');_0x14ecd4['plugins']['has']('UndoEditing')&&(_0x4a0d27['enableCommand']('undo'),_0x4a0d27['enableCommand']('redo'));}}class Ve extends _0x298b0c{static get['requires'](){return[Ne];}['afterInit'](){const _0x532463=this['editor'];if(!_0x532463['plugins']['has']('TableCaptionEditing'))return;_0x532463['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class je extends _0x298b0c{['tableProperties'];['tableCellProperties'];constructor(_0x1596b5){super(_0x1596b5),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x50faf7=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2b3bac of this['tableProperties'])_0x50faf7['enableCommand'](_0x2b3bac,(_0x5363f2,_0x169b04)=>{const _0x3a031c=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2b3bac,[_0x3a031c],this['tableProperties'],'tableProperties',_0x5363f2,_0x169b04);});_0x50faf7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x50faf7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x50faf7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x236486,_0x306bf1)=>this['handleDiscardAction'](this['tableProperties'],_0x236486,_0x306bf1)),_0x50faf7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5e880e of this['tableCellProperties'])this['editor']['commands']['get'](_0x5e880e)&&_0x50faf7['enableCommand'](_0x5e880e,(_0x78a51a,_0x3d0cfc)=>{const _0x3b35ba=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5e880e,_0x3b35ba,this['tableCellProperties'],'tableCellProperties',_0x78a51a,_0x3d0cfc);});_0x50faf7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x50faf7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x50faf7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4e1587,_0x1cf5a5)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4e1587,_0x1cf5a5)),_0x50faf7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x50faf7['descriptionFactory']['registerAttributeLabel']('tableCellType',At(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x50faf7['descriptionFactory']['registerDescriptionCallback'](_0x38fa5f=>this['handleSuggestionDescription'](_0x38fa5f)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x53c649,_0x79662b,_0x110642,_0x2a3d1e,_0x2028f1,_0x542e3c){const _0x139fa6=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x542e3c['batch'],()=>{for(const _0x2858dd of _0x79662b){if(this['_getSuggestion'](_0x2858dd,_0x2a3d1e))_0x2028f1(_0x542e3c);else{const _0x2e8a63={};for(const _0x142246 of _0x110642){const _0x433016=_0x2858dd['getAttribute'](_0x142246);void 0x0!==_0x433016&&(_0x2e8a63[_0x142246]=_0x433016);}_0x2028f1(_0x542e3c),_0x139fa6['markBlockFormat'](_0x2858dd,{'commandParams':[_0x2e8a63]},[],_0x2a3d1e);}}});}['handleDiscardAction'](_0x3e41a7,_0x3fabbb,_0x3240e0){const _0x2e996f=_0x3fabbb[0x0]['start']['nodeAfter'],_0xd80643=_0x3240e0['commandParams'][0x0];this['editor']['model']['change'](_0x6abcd=>{for(const _0x13d96f of _0x3e41a7)void 0x0!==_0xd80643[_0x13d96f]?_0x6abcd['setAttribute'](_0x13d96f,_0xd80643[_0x13d96f],_0x2e996f):_0x6abcd['removeAttribute'](_0x13d96f,_0x2e996f);});}['handleSuggestionDescription'](_0x412578){if(_0x412578['data'])switch(_0x412578['subType']){case'tableProperties':return{'type':'format','content':At(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':At(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x3a522a,_0x41d52f){const _0x16b035=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x299f77 of _0x16b035['getSuggestions']({'skipNotAttached':!0x0})){const _0x574337=_0x299f77['getContainedElement']();if(_0x299f77['subType']===_0x41d52f&&_0x574337===_0x3a522a)return _0x299f77;}return null;}['_registerTablePropertiesAttributes'](){const _0x5ba51c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x244026=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x4f20ac of _0x244026){const _0x142a5c=_0x4f20ac['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x5ba51c['descriptionFactory']['registerAttributeLabel'](_0x4f20ac,At(this['editor']['locale'],'FORMAT_'+_0x142a5c));}}}class ze extends _0x298b0c{['afterInit'](){const _0x3e33ab=this['editor'];if(!_0x3e33ab['plugins']['has']('LineHeight'))return;const _0x357db3=_0x3e33ab['plugins']['get']('TrackChangesEditing'),_0x5b049f=_0x3e33ab['locale'];_0x357db3['enableDefaultAttributesIntegration']('lineHeight'),_0x357db3['descriptionFactory']['registerAttributeLabel']('lineHeight',At(_0x5b049f,'FORMAT_LINE_HEIGHT'));}}const Ke='$elementName';class Xe extends _0x298b0c{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x361d9e,_0xfcbb62,_0x3979,_0x21440d,_0x6baf3d,Ct,yt,Nt,Rt,Mt,Ot,Bt,Dt,Ft,vt,Pt,Ut,jt,zt,Kt,Yt,qt,Qt,Jt,te,ee,ne,ie,re,se,oe,ae,ce,ue,fe,Te,le,Gt,ze,$t,ge,me,Ee,_e,pe,Le,Ie,be,Ae,Ce,ye,Ne,Se,Me,Oe,we,Ve,De,Pe,Ge,je,Ue,He,$e,We];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x341085){super(_0x341085),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3d75cf,_0x4d2830,_0x41d6b0,_0x69996f)=>{this['_model']['change'](()=>{for(const _0x535bea of[..._0x69996f,..._0x41d6b0])this['_model']['markers']['has'](_0x535bea)&&_0x341085['editing']['reconvertMarker'](_0x535bea);});}),this['descriptionFactory']=new kt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ye(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x341085['plugins']['get'](_0x361d9e),this['_suggestionsConversion']=_0x341085['plugins']['get'](_0xfcbb62),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x341085['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x341085['config']['get']('trackChanges.trackFormatChanges'),_0x341085['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x341085['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new ht(_0x341085,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x225f5d=this['editor'];_0x225f5d['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x215ea4,{writer:_0x4dc971})=>{let _0x356ff5='suggestion:'+_0x215ea4['getAttribute']('suggestion-type')+':'+_0x215ea4['getAttribute']('id');return _0x215ea4['getAttribute']('marker-count')&&(_0x356ff5+=':'+_0x215ea4['getAttribute']('marker-count')),_0x4dc971['createElement']('$marker',{'data-name':_0x356ff5});}}),_0x225f5d['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x225f5d['model']['document']['registerPostFixer'](_0x120149=>{let _0x5af674=!0x1;const _0x183c98=Array['from'](_0x225f5d['model']['document']['differ']['getChangedMarkers']()),_0x586be9=new Set();for(const {name:_0x385f31,data:_0x2134a7}of _0x183c98){const {group:_0x1204fc,type:_0x299d55,subType:_0x10aef0,id:_0x3e8351}=_0x438505(_0x385f31);if('suggestion'!==_0x1204fc)continue;const _0xfd403e=_0x10aef0?'suggestion:'+_0x299d55+':'+_0x10aef0+':'+_0x3e8351:'suggestion:'+_0x299d55+':'+_0x3e8351,_0x385511=_0x225f5d['model']['markers']['getMarkersGroup'](_0xfd403e),_0x5cd57f=_0x225f5d['model']['markers']['get'](_0x385f31),_0x455b29=this['_suggestions']['get'](_0x3e8351);if(null!=_0x2134a7['newRange']){'formatInline'==_0x299d55&&(_0x5af674=_0x5af674||Ze(_0x2134a7['newRange'],_0x385f31,_0x120149,_0x225f5d['model']['schema']));const _0x2a3114='attribute'==_0x299d55&&this['_suggestionsConversion']['isBlockAttribute'](un(_0x10aef0)),_0x5011e2='attribute'==_0x299d55&&this['_suggestionsConversion']['isInlineAttribute'](un(_0x10aef0));if(_0x2134a7['newRange']['isCollapsed']||'$graveyard'==_0x2134a7['newRange']['root']['rootName']||'formatBlock'==_0x299d55&&!tn(_0x2134a7['newRange'])||_0x2a3114&&!tn(_0x2134a7['newRange'])||_0x5011e2&&en(_0x2134a7['newRange'])||'deletion'==_0x299d55&&en(_0x2134a7['newRange'])||_0x5cd57f&&nn(_0x5cd57f,_0x385511))_0x120149['removeMarker'](_0x385f31),_0x5af674=!0x0;else{if(!_0x455b29||!_0x455b29['isInContent'])continue;if(_0x2134a7['newRange']&&_0x2134a7['oldRange']&&_0x2134a7['newRange']['isEqual'](_0x2134a7['oldRange']))continue;_0x586be9['add'](_0x455b29);}}}return _0x586be9['size']>0x0&&(_0x5af674=!!this['_joinWithAdjacentSuggestions'](_0x586be9)||_0x5af674),_0x5af674;}),_0x225f5d['model']['document']['registerPostFixer'](_0x198720=>{let _0x17dc21=!0x1;for(const _0x1aeea6 of _0x225f5d['model']['document']['differ']['getChanges']())if('insert'==_0x1aeea6['type'])for(const _0x29e072 of this['_suggestions']['values']()){if(_0x29e072['isMultiRange']||!_0x29e072['isInContent'])continue;const _0x59234c='formatBlock'==_0x29e072['type'],_0x53d4ac=this['_getAttributeKey'](_0x29e072),_0x4af4ca=_0x53d4ac&&this['_suggestionsConversion']['isBlockAttribute'](_0x53d4ac);if(!_0x59234c&&!_0x4af4ca)continue;const _0x3367b2=_0x29e072['getFirstRange']();if(_0x3367b2['start']['parent']!=_0x3367b2['end']['parent']&&!_0x3367b2['end']['isAtEnd']){const _0x2a183f=_0x225f5d['model']['createPositionAt'](_0x3367b2['start']['nodeAfter'],'end'),_0x2e9f4a=_0x225f5d['model']['createRange'](_0x3367b2['start'],_0x2a183f);_0x198720['updateMarker'](_0x29e072['getFirstMarker'](),{'range':_0x2e9f4a}),_0x17dc21=!0x0;}}return _0x17dc21;}),_0x225f5d['model']['document']['registerPostFixer'](_0x7c22ab=>this['_processAttributeChanges'](_0x7c22ab)),_0x225f5d['model']['document']['registerPostFixer'](_0x5dc6c4=>!_0x5dc6c4['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5dc6c4)),_0x225f5d['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x225f5d['model']['document']['on']('change:data',(_0xa97dc3,_0x48cd47)=>{if(!_0x48cd47['isLocal']||_0x48cd47['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x303442=_0x225f5d['model']['document']['differ']['getChanges']();if(0x0==_0x303442['length'])return;const _0x4d3805=[],_0x2c1a11=_0x303442['filter'](_0x4bd621=>'attribute'==_0x4bd621['type']),_0x7a5436=_0x303442['filter'](_0x22c6bd=>'insert'==_0x22c6bd['type']&&'$text'!=_0x22c6bd['name']);for(const _0x140c5a of _0x2c1a11)this['_suggestionsConversion']['isRegisteredAttribute'](_0x140c5a['attributeKey'])&&_0x4d3805['push']({'key':_0x140c5a['attributeKey'],'newValue':_0x140c5a['attributeNewValue'],'oldValue':_0x140c5a['attributeOldValue'],'range':sn(_0x140c5a['range'],_0x225f5d['model'])});for(const _0x3e346a of _0x7a5436){if('rename'!=_0x3e346a['action']&&'refresh'!=_0x3e346a['action'])continue;const _0x2f1207=rn(_0x3e346a['position']['nodeAfter'],_0x225f5d['model']),_0xc90d29=_0x3e346a['before'];'rename'==_0x3e346a['action']&&_0x4d3805['push']({'key':Ke,'newValue':_0x3e346a['name'],'oldValue':_0xc90d29['name'],'range':_0x2f1207});for(const [_0x280296,_0x1d4085]of _0xc90d29['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x280296))continue;const _0x5135e2=_0x3e346a['attributes']['get'](_0x280296);_0x1d4085!==_0x5135e2&&_0x4d3805['push']({'key':_0x280296,'newValue':_0x5135e2,'oldValue':_0x1d4085,'range':_0x2f1207});}for(const [_0x593f5d,_0x3df97c]of _0x3e346a['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x593f5d)&&(_0xc90d29['attributes']['has'](_0x593f5d)||_0x4d3805['push']({'key':_0x593f5d,'newValue':_0x3df97c,'oldValue':null,'range':_0x2f1207}));}0x0!=_0x4d3805['length']&&_0x225f5d['model']['enqueueChange'](_0x48cd47,_0x3ca58a=>{const _0xa0dfb7=_0x12e742();for(const {range:_0x1f6f30,key:_0x58703b,oldValue:_0xcf5a76,newValue:_0x54c922}of _0x4d3805)this['markAttributeChange'](_0x1f6f30,_0x58703b,_0xcf5a76,_0x54c922,{'groupId':_0xa0dfb7});this['_reduceExistingSuggestions'](_0x3ca58a,_0x4d3805);});},{'priority':'lowest'}),_0x225f5d['model']['markers']['on']('update:suggestion',(_0x24cc82,_0x548c79,_0x55ef06)=>{if(null==_0x55ef06){const {id:_0x113c5a}=_0x438505(_0x548c79['name']),_0x4ea952=this['_suggestions']['get'](_0x113c5a);_0x4ea952&&_0x4ea952['addMarkerName'](_0x548c79['name']);}}),_0x225f5d['model']['document']['on']('change:data',()=>{const _0x777361=Array['from'](_0x225f5d['model']['document']['differ']['getChangedMarkers']())['filter'](_0x23d021=>'suggestion'===_0x438505(_0x23d021['name'])['group']);if(0x0===_0x777361['length'])return;_0x777361['sort']((_0x5bdd58,_0x3e5f66)=>{const _0x5dc7bc=_0x5bdd58['data']['oldRange'],_0x7ccb72=_0x3e5f66['data']['oldRange'];return null===_0x5dc7bc&&null===_0x7ccb72?0x0:null===_0x5dc7bc&&null!==_0x7ccb72?-0x1:null!==_0x5dc7bc&&null===_0x7ccb72?0x1:_0x5dc7bc['start']['isBefore'](_0x7ccb72['start'])?-0x1:0x1;});const _0x584176=new Set(),_0x1f5586=new Set();for(const {name:_0x1a6b71,data:_0x30dc93}of _0x777361){const {id:_0x3a051c}=_0x438505(_0x1a6b71);if(null===_0x30dc93['oldRange']){const _0x406f45=this['_handleNewSuggestionMarker'](_0x1a6b71);_0x1f5586['add'](_0x406f45);}else{const _0x99701a=this['_suggestions']['get'](_0x3a051c);null!==_0x30dc93['newRange']||_0x99701a['isInContent']?(_0x584176['add'](_0x99701a['head']),_0x1f5586['add'](_0x99701a)):this['_removeSuggestion'](_0x99701a);}}_0x1f5586['size']>0x0&&this['_refreshSuggestionsChain'](_0x1f5586);for(const _0x5c1c3f of _0x584176)this['fire']('suggestionChanged',_0x5c1c3f);}),_0x225f5d['model']['on']('applyOperation',(_0x421ce3,_0x2ebf53)=>{const _0x2ca2b9=_0x2ebf53[0x0];if(!this['_suggestions']['size'])return;if(!_0x2ca2b9['isDocumentOperation'])return;if(_0x2ca2b9['batch']['isUndo']||!_0x2ca2b9['batch']['isLocal'])return;let _0x383ea4,_0x4fda7a;switch(_0x2ca2b9['type']){case'insert':_0x383ea4=_0x225f5d['model']['createPositionAt'](_0x2ca2b9['position']),_0x4fda7a=_0x383ea4['getShiftedBy'](_0x2ca2b9['howMany']);break;case'split':_0x383ea4=_0x225f5d['model']['createPositionAt'](_0x2ca2b9['splitPosition']),_0x4fda7a=_0x225f5d['model']['createPositionAt'](_0x2ca2b9['moveTargetPosition']);break;case'move':_0x383ea4=_0x225f5d['model']['createPositionAt'](_0x2ca2b9['targetPosition']),_0x4fda7a=_0x383ea4['getShiftedBy'](_0x2ca2b9['howMany']);break;default:return;}const _0x398475=_0x225f5d['model']['createRange'](_0x383ea4,_0x4fda7a);_0x225f5d['model']['change'](()=>{for(const {suggestion:_0x1ad499,meta:_0x59f740}of this['_findSuggestions'](_0x398475)){if(_0x1ad499['isMultiRange'])continue;if('formatInline'==_0x1ad499['type'])continue;const _0x593f08=this['_getAttributeKey'](_0x1ad499);if(_0x593f08&&this['_suggestionsConversion']['isBlockAttribute'](_0x593f08)&&'split'!=_0x2ca2b9['type'])continue;const _0x39d204=_0x1ad499['data']&&_0x1ad499['data']['multipleBlocks'];('formatBlock'!=_0x1ad499['type']||'split'==_0x2ca2b9['type']&&!_0x39d204)&&(_0x59f740['containsRangeInObject']||'insertion'==_0x1ad499['type']&&_0x59f740['isOwn']||_0x1ad499['getFirstRange']()['containsRange'](_0x398475)&&this['_breakSuggestionMarker'](_0x1ad499,_0x383ea4,_0x4fda7a));}});},{'priority':'lowest'}),_0x225f5d['model']['on']('deleteContent',(_0xa1a242,_0x55beba)=>{const _0x474607=_0x55beba[0x0],_0x192e02=_0x55beba[0x1];if(_0x192e02&&_0x192e02['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x474607['isCollapsed'])return;const _0x43c8cd=_0x225f5d['model']['schema'],{start:_0x70d83,end:_0x209813}=_0x474607['getFirstRange'](),_0x7c86a2=_0x70d83['nodeAfter']&&_0x43c8cd['isLimit'](_0x70d83['nodeAfter'])?null:_0x43c8cd['getNearestSelectionRange'](_0x70d83,'forward'),_0xe02871=_0x209813['nodeBefore']&&_0x43c8cd['isLimit'](_0x209813['nodeBefore'])?null:_0x43c8cd['getNearestSelectionRange'](_0x209813,'backward'),_0x1df423=_0x225f5d['model']['createRange'](_0x7c86a2?_0x7c86a2['start']:_0x70d83,_0xe02871?_0xe02871['end']:_0x209813);_0x225f5d['model']['change'](_0x21bcd2=>{this['markDeletion'](_0x1df423);const _0x49d834=_0x225f5d['model']['schema']['getNearestSelectionRange'](_0x1df423['start']);_0x474607['is']('documentSelection')?_0x21bcd2['setSelection'](_0x49d834):_0x474607['setTo'](_0x49d834);}),_0xa1a242['stop']();},{'priority':_0x2043b9['normal']+0xa}),_0x225f5d['model']['on']('insertContent',(_0x5a32f0,_0x33037c)=>{const _0xe8ec6b=_0x33037c[_0x33037c['length']-0x1];_0xe8ec6b&&_0xe8ec6b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x225f5d['model']['change'](()=>{let _0x87a5ea=_0x225f5d['model']['insertContent'](_0x33037c[0x0],_0x33037c[0x1],_0x33037c[0x2],{'forceDefaultExecution':!0x0});if(!_0x87a5ea)return;_0x5a32f0['return']=_0x87a5ea['clone']();const _0x8c3847=_0x87a5ea['end']['nodeBefore'],_0x5f64f3=_0x225f5d['model']['schema'];_0x8c3847&&_0x5f64f3['isBlock'](_0x8c3847)&&!_0x5f64f3['isObject'](_0x8c3847)&&(_0x87a5ea=_0x225f5d['model']['createRange'](_0x87a5ea['start'],_0x225f5d['model']['createPositionAt'](_0x8c3847,'end'))),this['markInsertion'](_0x87a5ea);}),_0x5a32f0['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x122192=new dt(_0x225f5d,this['_suggestions']);_0x225f5d['commands']['add']('acceptSuggestion',_0x122192),this['enableCommand']('acceptSuggestion');const _0x42eadc=new ft(_0x225f5d,this['_suggestions']);_0x225f5d['commands']['add']('discardSuggestion',_0x42eadc),this['enableCommand']('discardSuggestion'),_0x225f5d['commands']['add']('acceptAllSuggestions',new Lt(_0x225f5d,_0x122192,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x225f5d['commands']['add']('discardAllSuggestions',new Lt(_0x225f5d,_0x42eadc,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x225f5d['commands']['add']('acceptSelectedSuggestions',new It(_0x225f5d,_0x122192,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x225f5d['commands']['add']('discardSelectedSuggestions',new It(_0x225f5d,_0x42eadc,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5984ab=_0x225f5d['plugins']['get'](_0x361d9e);this['listenTo'](_0x5984ab,'addComment',(_0x45bca5,{threadId:_0x55d073})=>{const _0x5922ca=this['_suggestions']['get'](_0x55d073);_0x5922ca&&_0x5922ca['commentThread']&&0x1===_0x5922ca['commentThread']['length']&&this['_updateSuggestionData'](_0x55d073,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5984ab,'removeComment',(_0x15437a,{threadId:_0x26c469})=>{const _0x4243c5=this['_suggestions']['get'](_0x26c469);_0x4243c5&&_0x4243c5['commentThread']&&!_0x4243c5['commentThread']['length']&&this['_updateSuggestionData'](_0x26c469,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x49e4e4){const _0x5897b9=_0x29b95a([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x3985a4=0x3d8d0df,_0x53e7d0=0x3df55af^_0x3985a4,_0x2b58aa=window[_0x29b95a([0x44,0x61,0x74,0x65])][_0x29b95a([0x6e,0x6f,0x77])](),_0x3e5e26=_0x49e4e4[_0x29b95a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5c1264=new window[(_0x29b95a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33c3e0=>{_0x3e5e26[_0x29b95a([0x6f,0x6e,0x63,0x65])](_0x29b95a([0x72,0x65,0x61,0x64,0x79]),_0x33c3e0);}),_0x41a71f={[_0x29b95a([0x6b,0x74,0x79])]:_0x29b95a([0x45,0x43]),[_0x29b95a([0x75,0x73,0x65])]:_0x29b95a([0x73,0x69,0x67]),[_0x29b95a([0x63,0x72,0x76])]:_0x29b95a([0x50,0x2d,0x32,0x35,0x36]),[_0x29b95a([0x78])]:_0x29b95a([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]),[_0x29b95a([0x79])]:_0x29b95a([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]),[_0x29b95a([0x61,0x6c,0x67])]:_0x29b95a([0x45,0x53,0x32,0x35,0x36])},_0x45cddd=_0x3e5e26[_0x29b95a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x29b95a([0x67,0x65,0x74])](_0x29b95a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4cf85a(){let _0x104322,_0x24ed80=null,_0x206318=null;try{if(_0x45cddd==_0x29b95a([0x47,0x50,0x4c]))return _0x29b95a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x104322=_0x31ee50(),!_0x104322)return _0x29b95a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x104322[_0x29b95a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x206318=_0x801db8(_0x104322[_0x29b95a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x104322[_0x29b95a([0x6a,0x74,0x69])])),await _0x5cd5be()?_0x7def6e()?_0x260377()?_0x29b95a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x246f1f()?(_0x104322[_0x29b95a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x29b95a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x24ed80=_0x373672(_0x29b95a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1d767a()):_0x29b95a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x29b95a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x29b95a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x29b95a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x260377(){const _0x239692=[_0x29b95a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x29b95a([0x74,0x72,0x69,0x61,0x6c])][_0x29b95a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x104322[_0x29b95a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2b58aa/0x3e8:0xe10*_0x53e7d0;return _0x104322[_0x29b95a([0x65,0x78,0x70])]<_0x239692;}function _0x7def6e(){const _0x1c8321=_0x104322[_0x29b95a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1c8321)return!0x1;if(_0x1c8321[_0x29b95a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29b95a([0x2a])))return!0x0;if(_0x1c8321[_0x29b95a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29b95a([0x54,0x43])))return!0x0;if(_0x1c8321[_0x29b95a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29b95a([0x52,0x54,0x43]))){if(_0x1e36ea())return!0x0;if(_0x5951f6()||_0x8bd7d1())return!0x0;}return!0x1;}function _0x246f1f(){const _0x24ee78=_0x104322[_0x29b95a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x24ee78||0x0==_0x24ee78[_0x29b95a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2ec764}=new URL(window[_0x29b95a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x24ee78[_0x29b95a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ec764))return!0x0;const _0x5dd681=_0x2ec764[_0x29b95a([0x73,0x70,0x6c,0x69,0x74])](_0x29b95a([0x2e]));return _0x24ee78[_0x29b95a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x441727=>_0x441727[_0x29b95a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29b95a([0x2a])))[_0x29b95a([0x6d,0x61,0x70])](_0x558e41=>_0x558e41[_0x29b95a([0x73,0x70,0x6c,0x69,0x74])](_0x29b95a([0x2e])))[_0x29b95a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x526fdf=>_0x526fdf[_0x29b95a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5dd681[_0x29b95a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x29b95a([0x6d,0x61,0x70])](_0xf78a4d=>Array(_0x5dd681[_0x29b95a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xf78a4d[_0x29b95a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x29b95a([0x66,0x69,0x6c,0x6c])](_0xf78a4d[0x0]===_0x29b95a([0x2a])?_0x29b95a([0x2a]):'')[_0x29b95a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xf78a4d))[_0x29b95a([0x73,0x6f,0x6d,0x65])](_0x1885e5=>_0x5dd681[_0x29b95a([0x65,0x76,0x65,0x72,0x79])]((_0x413b1f,_0x5b09d9)=>_0x1885e5[_0x5b09d9]===_0x413b1f||_0x1885e5[_0x5b09d9]===_0x29b95a([0x2a])));}function _0x1d767a(){return _0x24ed80&&_0x206318?new window[(_0x29b95a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e5e25,_0xdc651d)=>{_0x24ed80[_0x29b95a([0x74,0x68,0x65,0x6e])](_0x5e5e25,_0xdc651d),_0x206318[_0x29b95a([0x74,0x68,0x65,0x6e])](_0x336155=>{_0x336155!=_0x29b95a([0x56,0x61,0x6c,0x69,0x64])&&_0x5e5e25(_0x336155);},_0xdc651d);}):_0x24ed80||_0x206318||_0x29b95a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x801db8(_0xc6d349,_0x542599){return new window[(_0x29b95a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47237e=>{if(_0x5cf79f())return _0x47237e(_0x29b95a([0x56,0x61,0x6c,0x69,0x64]));_0x24b091(),_0x3e5e26[_0x29b95a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x29b95a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5af62c=!0x1;const _0x2b787c=_0x12e742();function _0x54a04b(_0x46ba9a){return!!_0x46ba9a&&(typeof _0x46ba9a===_0x29b95a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x46ba9a===_0x29b95a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x46ba9a[_0x29b95a([0x74,0x68,0x65,0x6e])]===_0x29b95a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x46ba9a[_0x29b95a([0x63,0x61,0x74,0x63,0x68])]===_0x29b95a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1d0f91(_0x5a8d36){_0x12f053(_0x5a8d36)[_0x29b95a([0x74,0x68,0x65,0x6e])](_0x2f6527=>{if(!_0x2f6527||_0x2f6527[_0x29b95a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x29b95a([0x6f,0x6b]))return _0x29b95a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x9185f3(_0x2c9cb8(_0x2b787c+_0x542599))!=_0x2f6527[_0x29b95a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x29b95a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x29b95a([0x56,0x61,0x6c,0x69,0x64]);})[_0x29b95a([0x74,0x68,0x65,0x6e])](_0x38d54e=>(_0x112a9e(),_0x38d54e),()=>{const _0x520541=_0x5745b();return null==_0x520541?(_0x112a9e(),_0x29b95a([0x56,0x61,0x6c,0x69,0x64])):_0x29b95a(_0x2b58aa-_0x520541>(0x27d454df^_0x3985a4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x29b95a([0x74,0x68,0x65,0x6e])](_0x47237e)[_0x29b95a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x47237e(_0x29b95a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1d88b5=0x3ee3e5f^_0x3985a4;function _0x112a9e(){const _0x149d43=_0x29b95a([0x6c,0x6c,0x63,0x74,0x2d])+_0x9185f3(_0x2c9cb8(_0xc6d349)),_0x3cdccf=_0x199afd(_0x9185f3(window[_0x29b95a([0x4d,0x61,0x74,0x68])][_0x29b95a([0x63,0x65,0x69,0x6c])](_0x2b58aa/_0x1d88b5)));window[_0x29b95a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29b95a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x149d43,_0x3cdccf);}function _0x5745b(){const _0x55ef7=_0x29b95a([0x6c,0x6c,0x63,0x74,0x2d])+_0x9185f3(_0x2c9cb8(_0xc6d349)),_0x186e2c=window[_0x29b95a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29b95a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x55ef7);return _0x186e2c?window[_0x29b95a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x199afd(_0x186e2c),0x10)*_0x1d88b5:null;}function _0x12f053(_0x1b0be6){return new window[(_0x29b95a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4bf5cd,_0x29dd81)=>{_0x1b0be6[_0x29b95a([0x74,0x68,0x65,0x6e])](_0x4bf5cd,_0x29dd81),window[_0x29b95a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x29dd81,0x3d9041f^_0x3985a4);});}}_0x3e5e26[_0x29b95a([0x6f,0x6e])](_0x29b95a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x15afb4,_0x12184c)=>{if(_0x12184c[0x0]!=_0xc6d349)return _0x47237e(_0x29b95a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x12184c[0x1]={..._0x12184c[0x1],[_0x29b95a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2b787c};},{[_0x29b95a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29b95a([0x68,0x69,0x67,0x68])}),_0x3e5e26[_0x29b95a([0x6f,0x6e])](_0x29b95a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x9d0835=>{_0x54a04b(_0x9d0835[_0x29b95a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5af62c=!0x0,_0x1d0f91(_0x9d0835[_0x29b95a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x29b95a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29b95a([0x6c,0x6f,0x77])}),_0x5c1264[_0x29b95a([0x74,0x68,0x65,0x6e])](()=>{_0x5af62c||_0x47237e(_0x29b95a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5cf79f(){return _0x3e5e26[_0x29b95a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29b95a([0x76,0x69,0x65,0x77])][_0x29b95a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x29b95a([0x61,0x75,0x74,0x6f]);}function _0x24b091(){_0x3e5e26[_0x29b95a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29b95a([0x76,0x69,0x65,0x77])][_0x29b95a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x29b95a([0x61,0x75,0x74,0x6f]);}}function _0x373672(_0x5ac1b8){const _0x17a9cd=[new window[(_0x29b95a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14289d=>setTimeout(_0x14289d,0x3d1ee13^_0x3985a4)),_0x5c1264[_0x29b95a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x29b95a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f8154=>{let _0xa56e24=0x0;_0x3e5e26[_0x29b95a([0x6d,0x6f,0x64,0x65,0x6c])][_0x29b95a([0x6f,0x6e])](_0x29b95a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x406ae2,_0x1b6964)=>{_0x1b6964[0x0][_0x29b95a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xa56e24++,_0xa56e24==(0x3d8d537^_0x3985a4)&&(_0x3f8154(),_0x406ae2[_0x29b95a([0x6f,0x66,0x66])]());});}))];return window[_0x29b95a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x29b95a([0x72,0x61,0x63,0x65])](_0x17a9cd)[_0x29b95a([0x74,0x68,0x65,0x6e])](()=>_0x5ac1b8);}async function _0x5466b7(){await _0x5c1264,_0x3e5e26[_0x29b95a([0x6d,0x6f,0x64,0x65,0x6c])][_0x29b95a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x514fb2,_0x3e5e26[_0x29b95a([0x6d,0x6f,0x64,0x65,0x6c])][_0x29b95a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x514fb2,_0x3e5e26[_0x29b95a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x29b95a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1e36ea(){return _0x1e6810(_0x29b95a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4e2c6b(_0x29b95a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x29b95a([0x73,0x74,0x61,0x74,0x65])]==_0x29b95a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5951f6(){return _0x1e6810(_0x29b95a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x8bd7d1(){return _0x1e6810(_0x29b95a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2b0051(_0x19cec7){const _0x135391=_0x4b0ae4();_0x3e5e26[_0x135391]=_0x29b95a([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x19cec7,_0x19cec7!=_0x29b95a([0x56,0x61,0x6c,0x69,0x64])&&_0x5466b7();}function _0x4b0ae4(){const _0x5e360a=window[_0x29b95a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x29b95a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x29b95a([0x6e,0x6f,0x77])]())[_0x29b95a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x29b95a([0x2e]),'');let _0x5827e4=_0x29b95a([0x52]);for(let _0xab819f=0x0;_0xab819f<_0x5e360a[_0x29b95a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xab819f+=0x2){let _0xb23746=window[_0x29b95a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e360a[_0x29b95a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xab819f,_0xab819f+0x2));_0xb23746>=_0x5897b9[_0x29b95a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xb23746-=_0x5897b9[_0x29b95a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5827e4+=_0x5897b9[_0xb23746];}return _0x5827e4;}function _0x31ee50(){const _0x5d4946=_0x45cddd[_0x29b95a([0x73,0x70,0x6c,0x69,0x74])](_0x29b95a([0x2e]));if(0x3!=_0x5d4946[_0x29b95a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4bfad5(_0x5d4946[0x1]);function _0x4bfad5(_0x360c30){const _0x1be910=_0x462e30(_0x360c30);return _0x1be910&&_0x2b8fa3()?_0x1be910:null;function _0x2b8fa3(){const _0x5e6a07=_0x1be910[_0x29b95a([0x6a,0x74,0x69])],_0xe9a132=window[_0x29b95a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e6a07[_0x29b95a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e6a07[_0x29b95a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4e288d={..._0x1be910,[_0x29b95a([0x6a,0x74,0x69])]:_0x5e6a07[_0x29b95a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5e6a07[_0x29b95a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4e288d[_0x29b95a([0x76,0x63])],_0x2c9cb8(_0x4e288d)==_0xe9a132;}}}async function _0x5cd5be(){let _0x49ad49=!0x0;try{const _0x11e71a=_0x45cddd[_0x29b95a([0x73,0x70,0x6c,0x69,0x74])](_0x29b95a([0x2e])),[_0x2da303,_0xac9cf0,_0x47fb20]=_0x11e71a;return _0x11e1b5(_0x2da303),await _0x4b9201(_0x2da303,_0xac9cf0,_0x47fb20),_0x49ad49;}catch{return!0x1;}function _0x11e1b5(_0x522ea1){const _0x4affdc=_0x462e30(_0x522ea1);_0x4affdc&&_0x4affdc[_0x29b95a([0x61,0x6c,0x67])]==_0x29b95a([0x45,0x53,0x32,0x35,0x36])||(_0x49ad49=!0x1);}async function _0x4b9201(_0x428e27,_0x3afb5f,_0xc46ef2){const _0x34fae2=window[_0x29b95a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x29b95a([0x66,0x72,0x6f,0x6d])](_0x3d9b81(_0xc46ef2),_0x4424cc=>_0x4424cc[_0x29b95a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3e0f35=new window[(_0x29b95a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x29b95a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x428e27+_0x29b95a([0x2e])+_0x3afb5f),_0x1363f1=window[_0x29b95a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x29b95a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1363f1)return;const _0x53650c=await _0x1363f1[_0x29b95a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x29b95a([0x6a,0x77,0x6b]),_0x41a71f,{[_0x29b95a([0x6e,0x61,0x6d,0x65])]:_0x29b95a([0x45,0x43,0x44,0x53,0x41]),[_0x29b95a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x29b95a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x29b95a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1363f1[_0x29b95a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x29b95a([0x6e,0x61,0x6d,0x65])]:_0x29b95a([0x45,0x43,0x44,0x53,0x41]),[_0x29b95a([0x68,0x61,0x73,0x68])]:{[_0x29b95a([0x6e,0x61,0x6d,0x65])]:_0x29b95a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x53650c,_0x34fae2,_0x3e0f35)||(_0x49ad49=!0x1);}}function _0x462e30(_0x41f342){return _0x41f342[_0x29b95a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x29b95a([0x65,0x79]))?JSON[_0x29b95a([0x70,0x61,0x72,0x73,0x65])](_0x3d9b81(_0x41f342)):null;}function _0x3d9b81(_0x35b150){return window[_0x29b95a([0x61,0x74,0x6f,0x62])](_0x35b150[_0x29b95a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x29b95a([0x2b]))[_0x29b95a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x29b95a([0x2f])));}function _0x2c9cb8(_0x274724){let _0x2d5fc3=0x1505;function _0x310a2f(_0x1cc846){for(let _0x585b92=0x0;_0x585b92<_0x1cc846[_0x29b95a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x585b92++){const _0x1cdc07=_0x1cc846[_0x29b95a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x585b92);_0x2d5fc3=(_0x2d5fc3<<0x5)+_0x2d5fc3+_0x1cdc07,_0x2d5fc3&=_0x2d5fc3;}}function _0x3de927(_0x350ae4){Array[_0x29b95a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x350ae4)?_0x350ae4[_0x29b95a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3de927):_0x350ae4&&typeof _0x350ae4==_0x29b95a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x29b95a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x350ae4)[_0x29b95a([0x73,0x6f,0x72,0x74])]()[_0x29b95a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2d6e60,_0x33a6b6])=>{_0x310a2f(_0x2d6e60),_0x3de927(_0x33a6b6);}):_0x310a2f(window[_0x29b95a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x350ae4));}return _0x3de927(_0x274724),_0x2d5fc3>>>0x0;}function _0x9185f3(_0x43b255){return _0x43b255[_0x29b95a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x29b95a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x29b95a([0x30]));}function _0x199afd(_0x5d83cc){return _0x5d83cc[_0x29b95a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x29b95a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x29b95a([0x6a,0x6f,0x69,0x6e])]('');}function _0x1e6810(_0x2d713c){return _0x3e5e26[_0x29b95a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x29b95a([0x68,0x61,0x73])](_0x2d713c);}function _0x4e2c6b(_0x485b39){return _0x3e5e26[_0x29b95a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x29b95a([0x67,0x65,0x74])](_0x485b39);}function _0x514fb2(){}function _0x29b95a(_0x1fb6d7){return _0x1fb6d7['map'](_0x417306=>String['fromCharCode'](_0x417306))['join']('');}_0x2b0051(await _0x4cf85a());}(this);}set['adapter'](_0x1f035b){if(this['_adapter'])throw new _0x520897('track-changes-adapter-already-set',this);this['_adapter']=_0x1f035b;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5379bf=!0x1,toJSON:_0x4ec3e3=!0x1}={}){const _0x15b220=[];for(const _0x5699cd of this['_suggestions']['values']())_0x5379bf&&!_0x5699cd['isInContent']||_0x15b220['push'](_0x5699cd);return _0x4ec3e3?_0x15b220['map'](_0x3a62a6=>_0x3a62a6['toJSON']()):_0x15b220;}['getSuggestion'](_0x2cb576){const _0x387d1a=this['_suggestions']['get'](_0x2cb576);if(!_0x387d1a)throw new _0x520897('track-changes-suggestion-not-found',this);return _0x387d1a;}['hasSuggestion'](_0x4be4da){return this['_suggestions']['has'](_0x4be4da);}['addSuggestionData'](_0x1efd9e){const {authorId:_0x205fa9,id:_0x238b06,originalSuggestionId:_0x1757b2,attributes:_0x30097e}=_0x1efd9e,[_0x46a80a,_0x4839ca]=_0x1efd9e['type']['split'](':'),_0x4c90f8=this['_suggestions']['get'](_0x238b06)||this['_createSuggestion'](_0x46a80a,_0x4839ca,_0x238b06,_0x205fa9,_0x30097e,_0x1757b2);if(this['_addThreadToSuggestion'](_0x4c90f8),this['_checkSuggestionCorrectness'](_0x4c90f8,_0x46a80a,_0x4839ca||null,_0x205fa9),_0x4c90f8['createdAt']=_0x1efd9e['createdAt'],_0x4c90f8['_isDataLoaded']=!0x0,_0x30097e&&_0x30097e['@external']){const _0x579263=_0x30097e['@external'],_0x3327e5=this['_getExternalAuthor'](_0x579263['authorName']);_0x4c90f8['authoredAt']=_0x579263['createdAt'],_0x4c90f8['author']=_0x3327e5,_0x4c90f8['isExternal']=!0x0;}else _0x4c90f8['authoredAt']=_0x1efd9e['createdAt'];switch(_0x1efd9e['data']&&(_0x4c90f8['data']=_0x1efd9e['data']),_0x1efd9e['attributes']&&(_0x4c90f8['attributes']=_0x1efd9e['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4c90f8['_saved']=!0x0),this['_suggestionState']['get'](_0x4c90f8)){case'notReady':this['_suggestionState']['set'](_0x4c90f8,'dataReady');break;case'markerReady':_0x4c90f8['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4c90f8])),this['_refreshSuggestionsChain'](new Set([_0x4c90f8])),this['_suggestionState']['set'](_0x4c90f8,'ready'),this['fire']('suggestionLoaded',_0x4c90f8)):this['_suggestionState']['set'](_0x4c90f8,'removed');}return _0x4c90f8;}['acceptSuggestion'](_0x257461){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x17fbf9 of _0x257461['getAllAdjacentSuggestions']())_0x17fbf9['accept']();});});}['discardSuggestion'](_0x2d08e0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x7054fa of _0x2d08e0['getAllAdjacentSuggestions']())_0x7054fa['discard']();});});}['enableCommand'](_0x586a66,_0xd66184){const _0x17c9b7=this['editor']['commands']['get'](_0x586a66);if(!_0x17c9b7)throw new _0x520897('track-changes-command-not-found',this,{'commandName':_0x586a66});if(this['_enabledCommands']['has'](_0x17c9b7))throw new _0x520897('track-changes-enable-command-twice',this,{'commandName':_0x586a66});this['_enabledCommands']['add'](_0x17c9b7),_0xd66184&&_0x17c9b7['on']('execute',(_0x36b38a,_0x38cf0b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x38cf0b['length']>0x0&&_0x38cf0b[_0x38cf0b['length']-0x1]&&_0x38cf0b[_0x38cf0b['length']-0x1]['forceDefaultExecution']?_0x38cf0b['pop']():(_0x36b38a['return']=_0xd66184((..._0x5dc6bf)=>_0x17c9b7['execute'](..._0x5dc6bf,{'forceDefaultExecution':!0x0}),..._0x38cf0b),_0x36b38a['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x285ad5){let _0x25ac81,_0x360e2c;const _0x320f9d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x25ac81=_0x285ad5();}catch(_0x42f130){_0x360e2c=_0x42f130;}return _0x320f9d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x360e2c&&_0x520897['rethrowUnexpectedError'](_0x360e2c,this),_0x25ac81;}['markInsertion'](_0x406409,_0x26dbaa=null,_0x485188={}){if(_0x406409['isCollapsed'])return null;const _0x51887e=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x485188['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x29bac0,meta:_0x22f8b2}of this['_findSuggestions'](_0x406409,'insertion'))if(_0x22f8b2['isOwn']){if(!_0x22f8b2['isNextTo']){if(_0x22f8b2['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!cn(_0x29bac0,_0x485188))continue;return _0x29bac0;}if(cn(_0x29bac0,_0x485188))return _0x29bac0;this['_breakSuggestionMarker'](_0x29bac0,_0x406409['start'],_0x406409['end']);break;}if(_0x26dbaa==_0x29bac0['subType']&&cn(_0x29bac0,_0x485188)){const _0x81faed=_0x29bac0['getFirstRange']();return _0x81faed['start']['isEqual'](_0x406409['end'])?this['_setSuggestionRange'](_0x29bac0,this['_model']['createRange'](_0x406409['start'],_0x81faed['end'])):this['_setSuggestionRange'](_0x29bac0,this['_model']['createRange'](_0x81faed['start'],_0x406409['end'])),_0x29bac0;}}const _0x3d5f58=_0x12e742(),_0x46a748=_0x51887e['id'],_0x5f2bd7=_0x26dbaa?'insertion:'+_0x26dbaa:'insertion',_0x24b232=this['_setSuggestionData']({'id':_0x3d5f58,'type':_0x5f2bd7,'createdAt':new Date(),'authorId':_0x46a748,'attributes':_0x485188});return this['_addSuggestionMarker'](_0x5f2bd7,_0x3d5f58,_0x46a748,_0x406409),_0x24b232;}['markMultiRangeInsertion'](_0x4c6cbe,_0x2b2dc7='multi',_0x117585={}){const _0x483c76=this['editor']['plugins']['get']('Users')['me'],_0x3ef3e5=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2b2dc7,'join');this['_trackingSessionId']&&(_0x117585['trackingSessionId']=this['_trackingSessionId']);for(const _0x4bc81e of this['getSuggestions']())if(_0x4bc81e['author']['id']==_0x483c76['id']&&'insertion'==_0x4bc81e['type']&&_0x4bc81e['subType']==_0x2b2dc7&&cn(_0x4bc81e,_0x117585)&&(_0x3ef3e5(_0x4bc81e['getRanges'](),_0x4c6cbe)||_0x3ef3e5(_0x4c6cbe,_0x4bc81e['getRanges']()))){for(const _0x13e586 of _0x4c6cbe)_0x4bc81e['addRange'](_0x13e586);return _0x4bc81e;}for(const {suggestion:_0x57a6a1,meta:_0xe06d60}of this['_findSuggestions'](_0x4c6cbe,'insertion')){if(!_0xe06d60['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xe06d60['containsRangeInObject'])continue;if(!cn(_0x57a6a1,_0x117585))continue;let _0x1c5d50=!0x0;for(const _0x2c40a5 of _0x57a6a1['getRanges']())for(const _0x4c5c13 of _0x4c6cbe)if(!_0x2c40a5['containsRange'](_0x4c5c13)){_0x1c5d50=!0x1;break;}if(_0x1c5d50)return _0x57a6a1;}const _0x68c63f=_0x12e742(),_0x48ef37=_0x483c76['id'],_0x49066f='insertion:'+_0x2b2dc7,_0x4741c6=this['_setSuggestionData']({'id':_0x68c63f,'type':_0x49066f,'createdAt':new Date(),'authorId':_0x48ef37,'attributes':_0x117585});for(const _0x1d5d83 of _0x4c6cbe)this['_addSuggestionMarker'](_0x49066f,_0x68c63f,_0x48ef37,_0x1d5d83,bt['getMultiRangeId']());return _0x4741c6;}['markInlineFormat'](_0xb9362,_0x3e30c4,_0x4a3d5d=null,_0x4fca64={}){if(_0x4a3d5d=_0x4a3d5d||Je(_0x3e30c4),_0xb9362['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x4fca64['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x7a83a1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4a3d5d,'accept');return this['forceDefaultExecution'](()=>_0x7a83a1([_0xb9362],_0x3e30c4,_0x4fca64)),null;}const _0x52568b=this['editor']['plugins']['get']('Users')['me'],_0x273e18=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x51d6e0,meta:_0x38518a}of this['_findSuggestions'](_0xb9362,'insertion'))_0x38518a['isOwn']&&!_0x38518a['isInsideObject']&&_0x273e18['push'](..._0x51d6e0['getRanges']());}const _0x3cdecf=function(_0x490a0f,_0x3c576a){const _0x1636fe=[];for(const _0x4fe72a of _0x3c576a){const _0x34e509=_0x490a0f['getIntersection'](_0x4fe72a);_0x34e509&&_0x1636fe['push'](_0x34e509);}return _0x1636fe;}(_0xb9362,_0x273e18),_0x26ec44=function(_0x425b75,_0x2006d3){const _0x5b3346=[_0x425b75];for(const _0xfef0e7 of _0x2006d3){let _0x27fc66=0x0;for(;_0x27fc66<_0x5b3346['length'];){const _0x3a2b40=_0x5b3346[_0x27fc66]['getDifference'](_0xfef0e7);_0x5b3346['splice'](_0x27fc66,0x1,..._0x3a2b40),_0x27fc66+=_0x3a2b40['length'];}}return _0x5b3346;}(_0xb9362,_0x273e18);_0x3cdecf['length']&&this['_model']['change'](()=>{for(const _0x43d8cb of _0x3cdecf){const _0x17b1af=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4a3d5d,'accept');this['forceDefaultExecution'](()=>_0x17b1af([_0x43d8cb],_0x3e30c4,_0x4fca64));}});for(const _0x20aabe of _0x26ec44){let _0x3b7224=null,_0x2ece7f=_0x20aabe['start'],_0x29de35=_0x20aabe['end'];for(const {suggestion:_0x4c27de,meta:_0x37613a}of this['_findSuggestions'](_0x20aabe,'formatInline')){if(!_0x37613a['isOwn'])continue;if(_0x4c27de['subType']!=_0x4a3d5d)continue;if(!cn(_0x4c27de,_0x4fca64))continue;const _0x1069a1=_0x4c27de['getFirstRange']();if(_0x1069a1['containsRange'](_0x20aabe,!0x0))return null;_0x2ece7f=_0x2ece7f['isBefore'](_0x1069a1['start'])?_0x2ece7f:_0x1069a1['start'],_0x29de35=_0x29de35['isAfter'](_0x1069a1['end'])?_0x29de35:_0x1069a1['end'],_0x3b7224?_0x1069a1['start']['isBefore'](_0x3b7224['getFirstRange']()['start'])?(_0x3b7224['removeMarkers'](),_0x3b7224=_0x4c27de):_0x4c27de['removeMarkers']():_0x3b7224=_0x4c27de;}const _0x3fe7b0=this['_model']['createRange'](_0x2ece7f,_0x29de35);if(_0x3b7224)this['_setSuggestionRange'](_0x3b7224,_0x3fe7b0);else{const _0x593c79=_0x12e742(),_0x57a6f7=_0x52568b['id'];this['_setSuggestionData']({'id':_0x593c79,'type':'formatInline:'+_0x4a3d5d,'data':_0x3e30c4,'createdAt':new Date(),'authorId':_0x57a6f7,'attributes':_0x4fca64}),this['_addSuggestionMarker']('formatInline:'+_0x4a3d5d,_0x593c79,_0x57a6f7,_0x3fe7b0);}}return null;}['markBlockFormat'](_0x167be0,_0x842350,_0x1caed5=[],_0x26390a=null,_0x4fa8d1={}){_0x842350['formatGroupId']||(_0x842350['formatGroupId']=_0x842350['commandName']),_0x842350['multipleBlocks']=_0x167be0['is']('range'),_0x26390a=_0x26390a||Je(_0x842350);const _0x2bd6a0=_0x1caed5['map'](_0x58ce8e=>rn(_0x58ce8e,this['_model'])),_0x5e173d=_0x167be0['is']('range')?_0x167be0:rn(_0x167be0,this['_model']);if(this['_trackingSessionId']&&(_0x4fa8d1['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4679c4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x26390a,'accept');return this['forceDefaultExecution'](()=>_0x4679c4([_0x5e173d],_0x842350,_0x4fa8d1)),null;}_0x2bd6a0['push'](_0x5e173d);let _0x332407=!0x0;for(const _0x1d4701 of _0x2bd6a0)if(!this['_rangeIsInLocalUserInsertion'](_0x1d4701)){_0x332407=!0x1;break;}if(_0x332407&&'always'!==this['_trackFormatChanges']){const _0x406001=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x26390a,'accept');return this['forceDefaultExecution'](()=>_0x406001([_0x5e173d],_0x842350,_0x4fa8d1)),null;}let _0x4ce1ac=null,_0x5c0ceb=_0x5e173d['start'],_0x34d6c3=_0x5e173d['end'];for(const {suggestion:_0x2cfbec,meta:_0x237a27}of this['_findSuggestions'](_0x5e173d,'formatBlock')){if(!_0x237a27['isOwn'])continue;if(_0x237a27['isNextTo']||_0x237a27['containsRangeInObject']||_0x237a27['isInsideObject'])continue;if(_0x2cfbec['data']['formatGroupId']!=_0x842350['formatGroupId'])continue;if(!cn(_0x2cfbec,_0x4fa8d1))continue;const _0x5f5890=_0x2cfbec['getFirstRange']();if(_0x2cfbec['subType']==_0x26390a){if(_0x5f5890['containsRange'](_0x5e173d,!0x0))return null;_0x5c0ceb=_0x5c0ceb['isBefore'](_0x5f5890['start'])?_0x5c0ceb:_0x5f5890['start'],_0x34d6c3=_0x34d6c3['isAfter'](_0x5f5890['end'])?_0x34d6c3:_0x5f5890['end'],_0x4ce1ac?_0x5f5890['start']['isBefore'](_0x4ce1ac['getFirstRange']()['start'])?(_0x4ce1ac['removeMarkers'](),_0x4ce1ac=_0x2cfbec):_0x2cfbec['removeMarkers']():_0x4ce1ac=_0x2cfbec;}else{const _0x28ca15=_0x5e173d['getIntersection'](_0x5f5890);this['_cutOutSuggestionMarker'](_0x2cfbec,_0x28ca15);}}const _0x3ec5c8=this['editor']['plugins']['get']('Users')['me'],_0x2f96e2=_0x12e742(),_0x4a2f5f=_0x3ec5c8['id'];if(_0x4ce1ac)return this['_setSuggestionRange'](_0x4ce1ac,this['_model']['createRange'](_0x5c0ceb,_0x34d6c3)),_0x4ce1ac;{const _0x2e1cca=this['_setSuggestionData']({'id':_0x2f96e2,'type':'formatBlock:'+_0x26390a,'data':_0x842350,'createdAt':new Date(),'authorId':_0x4a2f5f,'attributes':_0x4fa8d1});return this['_addSuggestionMarker']('formatBlock:'+_0x26390a,_0x2f96e2,_0x4a2f5f,this['_model']['createRange'](_0x5c0ceb,_0x34d6c3)),_0x2e1cca;}}['markMultiRangeBlockFormat'](_0x393737,_0x34f9fa,_0x27e330=[],_0x2e559b=null,_0x67d724={}){_0x34f9fa['formatGroupId']||(_0x34f9fa['formatGroupId']=_0x34f9fa['commandName']);const _0x10d0e7=_0x393737[0x0];_0x34f9fa['multipleBlocks']=_0x10d0e7['is']('range'),_0x2e559b=_0x2e559b||Je(_0x34f9fa);const _0x5f4ac7=_0x27e330['map'](_0x3d4021=>rn(_0x3d4021,this['_model'])),_0x354ca4=_0x10d0e7['is']('range')?_0x393737:_0x393737['map'](_0x2c7720=>rn(_0x2c7720,this['_model']));if(this['_trackingSessionId']&&(_0x67d724['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4338a7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2e559b,'accept');return this['forceDefaultExecution'](()=>_0x4338a7(_0x354ca4,_0x34f9fa,_0x67d724)),null;}_0x5f4ac7['push'](..._0x354ca4);let _0xcd9937=!0x0;for(const _0x12469d of _0x5f4ac7)if(!this['_rangeIsInLocalUserInsertion'](_0x12469d)){_0xcd9937=!0x1;break;}if(_0xcd9937&&'always'!==this['_trackFormatChanges']){const _0x4c8896=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2e559b,'accept');return this['forceDefaultExecution'](()=>_0x4c8896(_0x354ca4,_0x34f9fa,_0x67d724)),null;}const _0x231cc7=this['editor']['plugins']['get']('Users')['me'];for(const _0x47c905 of this['getSuggestions']()){const _0x175bd3=_0x47c905['data'];if(_0x47c905['author']['id']!=_0x231cc7['id'])continue;if('formatBlock'!=_0x47c905['type']||_0x175bd3['formatGroupId']!=_0x34f9fa['formatGroupId'])continue;if(!cn(_0x47c905,_0x67d724))continue;const _0x1e144c=_0x47c905['subType']==_0x2e559b;for(let _0x47aab5=0x0;_0x47aab5<_0x354ca4['length'];_0x47aab5++){const _0x1d1f85=_0x354ca4[_0x47aab5];for(const _0x5e1e7e of _0x47c905['getMarkers']()){const _0x41c563=_0x5e1e7e['getRange']();if(_0x1d1f85['isEqual'](_0x41c563)){_0x1e144c?(_0x354ca4['splice'](_0x47aab5,0x1),_0x47aab5--):_0x47c905['removeMarker'](_0x5e1e7e['name']);break;}}}}if(0x0==_0x354ca4['length'])return null;const _0x524477=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2e559b,'join');for(const _0xf93880 of this['getSuggestions']()){const _0x566b25=_0xf93880['data'];if(_0xf93880['author']['id']==_0x231cc7['id']&&('formatBlock'==_0xf93880['type']&&_0x566b25['formatGroupId']==_0x34f9fa['formatGroupId']&&_0xf93880['subType']==_0x2e559b&&cn(_0xf93880,_0x67d724)&&(_0x524477(_0xf93880['getRanges'](),_0x354ca4)||_0x524477(_0x354ca4,_0xf93880['getRanges']())))){for(const _0x226f2c of _0x354ca4)_0xf93880['addRange'](_0x226f2c);return _0xf93880;}}const _0x103565=_0x12e742(),_0x4e166d=_0x231cc7['id'],_0xacabe='formatBlock:'+_0x2e559b,_0x999f0e=this['_setSuggestionData']({'id':_0x103565,'type':_0xacabe,'data':_0x34f9fa,'createdAt':new Date(),'authorId':_0x4e166d,'attributes':_0x67d724});for(const _0x10741a of _0x354ca4)this['_addSuggestionMarker'](_0xacabe,_0x103565,_0x4e166d,_0x10741a,bt['getMultiRangeId']());return _0x999f0e;}['markDeletion'](_0x2eea26,_0x249ad5=null,_0x3b3513={}){if(_0x2eea26['isCollapsed'])return null;const _0x4f58dd=this['editor']['plugins']['get']('Users')['me'],_0x5b3870=new _0x3756aa(_0x2eea26['start'],_0x2eea26['end']);this['_trackingSessionId']&&(_0x3b3513['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1c949f,meta:_0x54c907}of this['_findSuggestions'](_0x5b3870,'insertion'))if(_0x54c907['isOwn']&&!_0x54c907['isNextTo']){if(_0x1c949f['isMultiRange']){const _0x4f6772=_0x1c949f['getRanges']()['filter'](_0x2c82b4=>'$graveyard'!=_0x2c82b4['root']['rootName']);_0x4f6772['every'](_0xc12cf0=>_0x5b3870['containsRange'](_0xc12cf0,!0x0))&&_0x1c949f['discard']();if(_0x4f6772['some'](_0x270cc9=>_0x270cc9['containsRange'](_0x5b3870,!0x0))){const _0x36113f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x249ad5,'accept');return this['forceDefaultExecution'](()=>_0x36113f([_0x5b3870],null,_0x3b3513)),null;}}else{const _0xdfaa4b=_0x5b3870['getIntersection'](_0x1c949f['getFirstRange']());null!==_0xdfaa4b&&_0x1c949f['_onDiscard']([_0xdfaa4b],null,_0x3b3513);}}if(_0x5b3870['detach'](),_0x5b3870['isCollapsed']||'$graveyard'==_0x5b3870['root']['rootName'])return null;let _0x15c9f7=null,_0x5928c3=_0x5b3870['start'],_0x2d62d6=_0x5b3870['end'];const _0x5075dc=this['_findSuggestions'](_0x5b3870,'deletion');for(const {suggestion:_0x391e22,meta:_0x6d1fa1}of _0x5075dc){const _0x4431bb=this['_model']['createRange'](_0x5928c3,_0x2d62d6);if(_0x6d1fa1['isOwn']&&(this['_mergeNestedSuggestions']||!_0x6d1fa1['containsRangeInObject']&&!_0x6d1fa1['isInsideObject'])){if(_0x391e22['isMultiRange']){if(!cn(_0x391e22,_0x3b3513))continue;let _0x281de9=!0x0;for(const _0x565b11 of _0x391e22['getRanges']()){if(_0x565b11['containsRange'](_0x4431bb,!0x0))return _0x391e22;_0x4431bb['containsRange'](_0x565b11)||(_0x281de9=!0x1);}_0x281de9&&_0x391e22['discard']();}else{const _0x2aab1a=_0x391e22['getFirstRange']();if(_0x2aab1a['containsRange'](_0x4431bb,!0x0))return _0x391e22;if(!cn(_0x391e22,_0x3b3513)){_0x4431bb['containsRange'](_0x2aab1a)?_0x391e22['removeMarkers']():_0x2aab1a['containsPosition'](_0x5928c3)?_0x5928c3=_0x2aab1a['end']:_0x2aab1a['containsPosition'](_0x2d62d6)&&(_0x2d62d6=_0x2aab1a['start']);continue;}_0x5928c3=_0x5928c3['isBefore'](_0x2aab1a['start'])?_0x5928c3:_0x2aab1a['start'],_0x2d62d6=_0x2d62d6['isAfter'](_0x2aab1a['end'])?_0x2d62d6:_0x2aab1a['end'],_0x3b3513=Object['assign']({},_0x391e22['attributes']),_0x15c9f7?_0x2aab1a['start']['isBefore'](_0x15c9f7['getFirstRange']()['start'])?(_0x15c9f7['removeMarkers'](),_0x15c9f7=_0x391e22):_0x391e22['removeMarkers']():_0x15c9f7=_0x391e22;}}}if(_0x15c9f7)return this['_setSuggestionRange'](_0x15c9f7,this['_model']['createRange'](_0x5928c3,_0x2d62d6)),_0x15c9f7;{const _0x40cd9c=_0x12e742(),_0x1bb61f=this['_model']['createRange'](_0x5928c3,_0x2d62d6),_0x4a61e6=_0x4f58dd['id'],_0x374fd6=_0x249ad5?'deletion:'+_0x249ad5:'deletion',_0x2c5cf5=this['_setSuggestionData']({'id':_0x40cd9c,'type':_0x374fd6,'createdAt':new Date(),'authorId':_0x4a61e6,'attributes':_0x3b3513});return this['_addSuggestionMarker'](_0x374fd6,_0x40cd9c,_0x4a61e6,_0x1bb61f),_0x2c5cf5;}}['markMultiRangeDeletion'](_0x26d7b4,_0x617879='multi',_0xe40bf={}){const _0x1cd4a0=this['editor']['plugins']['get']('Users')['me'],_0x1904c2=_0x26d7b4['map'](_0x32e38f=>new _0x3756aa(_0x32e38f['start'],_0x32e38f['end'])),_0x595109=new Set();this['_trackingSessionId']&&(_0xe40bf['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2ee5c4,meta:_0x434f01}of this['_findSuggestions'](_0x1904c2,'insertion'))_0x434f01['isOwn']&&!_0x434f01['isNextTo']&&_0x595109['add'](_0x2ee5c4);for(const _0xde1111 of _0x595109)if(_0xde1111['isMultiRange']){const _0x325f45=_0xde1111['getRanges']();(!_0xde1111['attributes']||!_0xde1111['attributes']['skipNestingCheck'])&&(_0x325f45['every'](_0x33f410=>_0x1904c2['some'](_0x5b06df=>_0x5b06df['containsRange'](_0x33f410,!0x0)))&&_0xde1111['discard']());if(_0x1904c2['every'](_0x3fdd92=>_0x325f45['some'](_0x320789=>_0x320789['containsRange'](_0x3fdd92,!0x0)))){const _0x39e2f2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x617879,'accept');return this['forceDefaultExecution'](()=>_0x39e2f2(_0x26d7b4,null,_0xe40bf)),null;}}else{const _0xed700=_0xde1111['getFirstRange']();_0x1904c2['some'](_0x43143b=>_0x43143b['containsRange'](_0xed700,!0x0))&&_0xde1111['discard']();if(_0x1904c2['every'](_0x4346e2=>_0xed700['containsRange'](_0x4346e2,!0x0))){const _0x29e497=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x617879,'accept');return this['forceDefaultExecution'](()=>_0x29e497(_0x1904c2,null,_0xe40bf)),null;}}const _0x104b2a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x617879,'join');let _0xb4404c=null;for(const _0xb7be91 of this['getSuggestions']())if(_0xb7be91['author']['id']==_0x1cd4a0['id']&&_0xb7be91['isInContent']&&'deletion'==_0xb7be91['type']&&_0xb7be91['subType']==_0x617879&&cn(_0xb7be91,_0xe40bf)&&(_0x104b2a(_0xb7be91['getRanges'](),_0x1904c2)||_0x104b2a(_0x1904c2,_0xb7be91['getRanges']()))){if(_0xb4404c){if(_0xb7be91['commentThread']&&_0xb7be91['commentThread']['length'])continue;for(const _0x247b24 of _0xb7be91['getRanges']())_0xb4404c['isIntersectingWithRange'](_0x247b24)||_0xb4404c['addRange'](_0x247b24);_0xb7be91['removeMarkers']();}else{_0xb4404c=_0xb7be91;for(const _0x649739 of _0x1904c2)_0xb7be91['isIntersectingWithRange'](_0x649739)||_0xb7be91['addRange'](_0x649739);}}if(_0xb4404c)return _0xb4404c;_0x595109['clear']();for(const {suggestion:_0xa8fae0,meta:_0x106a37}of this['_findSuggestions'](_0x1904c2,'deletion'))_0x106a37['isOwn']&&(this['_mergeNestedSuggestions']||!_0x106a37['containsRangeInObject']&&!_0x106a37['isInsideObject'])&&cn(_0xa8fae0,_0xe40bf)&&_0x595109['add'](_0xa8fae0);for(const _0x41813e of _0x595109){const _0x41e677=_0x41813e['getRanges']();if(!_0xe40bf||!_0xe40bf['skipNestingCheck']){if(_0x1904c2['every'](_0x31922c=>_0x41e677['some'](_0x243a0b=>_0x243a0b['containsRange'](_0x31922c,!0x0))))return _0x41813e;}(!_0x41813e['attributes']||!_0x41813e['attributes']['skipNestingCheck'])&&(_0x41e677['every'](_0x8bacf9=>_0x1904c2['some'](_0x35dd5a=>_0x35dd5a['containsRange'](_0x8bacf9,!0x0)))&&_0x41813e['discard']());}const _0x5911ce=_0x12e742(),_0x672be0=_0x1cd4a0['id'],_0x2b9da3='deletion:'+_0x617879,_0x516620=this['_setSuggestionData']({'id':_0x5911ce,'type':_0x2b9da3,'createdAt':new Date(),'authorId':_0x672be0,'attributes':_0xe40bf});for(const _0x37688b of _0x1904c2)_0x37688b['detach'](),_0x37688b['isCollapsed']||'$graveyard'==_0x37688b['root']['rootName']||this['_addSuggestionMarker'](_0x2b9da3,_0x5911ce,_0x672be0,_0x37688b,bt['getMultiRangeId']());return _0x516620;}['markAttributeChange'](_0x32a6b8,_0xfadaaf,_0x3d9d30,_0x5bc79d,_0x170075){if(_0x32a6b8['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x30a8d3=this['editor']['plugins']['get']('Users')['me']['id'],_0x254534=Array['from'](this['_suggestions']['values']())['filter'](_0x164560=>'attribute'==_0x164560['type']&&_0x164560['data']['key']==_0xfadaaf&&_0x164560['isIntersectingWithRange'](_0x32a6b8));if(this['_trackingSessionId']&&(_0x170075['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x52a511=this['_findSuggestions'](_0x32a6b8,'insertion')['filter'](({meta:_0x51f064})=>_0x51f064['isOwn']&&!_0x51f064['isInsideObject']&&!_0x51f064['isNextTo'])['map'](({suggestion:_0x250757})=>_0x250757);_0x254534['unshift'](..._0x52a511);}const _0x4d3318=new Map([[_0x32a6b8,_0x3d9d30]]);for(const _0x433f6e of _0x254534){const _0x5cc380='attribute'==_0x433f6e['type']?_0x433f6e['data']['oldValue']:void 0x0,_0x4ec130=_0x433f6e['getFirstRange'](),_0x5dea69=Array['from'](_0x4d3318['keys']())['find'](_0x2425ac=>_0x2425ac['isIntersecting'](_0x4ec130));if(!_0x5dea69)continue;const _0x187a79=_0x5dea69['getDifference'](_0x4ec130);this['_suggestionsConversion']['isBlockAttribute'](_0xfadaaf)&&'insertion'==_0x433f6e['type']&&0x0!=_0x187a79['length']||(_0x4d3318['delete'](_0x5dea69),_0x187a79['forEach'](_0x28c7d9=>{_0x4d3318['set'](_0x28c7d9,_0x3d9d30);}),'insertion'!=_0x433f6e['type']&&_0x5cc380!=_0x5bc79d&&_0x4d3318['set'](_0x5dea69['getIntersection'](_0x4ec130),_0x5cc380));}const _0x3e5488=[];for(const [_0x43281d,_0x196e02]of _0x4d3318){const _0x4c8169=_0x12e742(),_0x5383ab={'key':_0xfadaaf,'oldValue':_0x196e02,'newValue':_0x5bc79d};_0xfadaaf['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':_0xfadaaf});const _0x588f2c=('attribute:'+(_0xfadaaf+'|'+Je({'newValue':_0x5bc79d})))['substring'](0x0,0x3c),_0x1002d9=this['_setSuggestionData']({'id':_0x4c8169,'type':_0x588f2c,'data':_0x5383ab,'createdAt':new Date(),'authorId':_0x30a8d3,'attributes':_0x170075});_0x3e5488['push'](_0x1002d9),this['_addSuggestionMarker'](_0x588f2c,_0x4c8169,_0x30a8d3,_0x43281d);}return _0x3e5488;}['enableDefaultAttributesIntegration'](_0x23a9c2){this['enableCommand'](_0x23a9c2,(_0x57d936,..._0x2f078f)=>{this['recordAttributeChanges'](()=>{_0x57d936(..._0x2f078f);});});}['startTrackingSession'](_0xf29c4a){return this['_trackingSessionId']=void 0x0!==_0xf29c4a?_0xf29c4a:_0x12e742(),this['_trackingSessionId'];}['_getAttributeKey'](_0x2e46ea){return'attribute'==_0x2e46ea['type']?un(_0x2e46ea['subType']):null;}['_applyOperationsAsSuggestions'](_0xee9355){if(0x0==_0xee9355['length'])return;const _0x5eba58=this['editor'],_0x2bca21=_0x5eba58['plugins']['get'](_0x6baf3d),_0x4e41de=[];_0x5eba58['model']['change'](_0x52bbd9=>{for(let _0x1e1377=0x0;_0x1e1377<_0xee9355['length'];_0x1e1377++){const _0x5b4598=_0xee9355[_0x1e1377];if(_0x5b4598['baseVersion']=_0x5eba58['model']['document']['version'],_0x5b4598['isDocumentOperation']=!0x0,_0x2bca21['isMarkedRemoveOperation'](_0x5b4598)){const _0x47e44d=_0x53d174(_0x5b4598['newRange'],_0x5eba58['model']);_0x4e41de['unshift'](_0x3756aa['fromRange'](_0x47e44d));}else switch(_0x5b4598['type']){case'rename':{const _0x54064a=_0x5b4598['oldName'],_0x501402=_0x5b4598['newName'];if(_0x54064a==_0x501402)break;_0x52bbd9['batch']['addOperation'](_0x5b4598),_0x5eba58['model']['applyOperation'](_0x5b4598);const _0x45ace8='$elementName',_0x22c19e=_0x5b4598['position'],_0x43a6cd=_0x5eba58['model']['createRange'](_0x22c19e,_0x5eba58['model']['createPositionAt'](_0x22c19e['nodeAfter'],'end'));this['markAttributeChange'](_0x43a6cd,_0x45ace8,_0x54064a,_0x501402,{'groupId':_0x12e742()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x415cd2=_0x5b4598['oldValue'],_0x3999ba=_0x5b4598['newValue'];if(_0x415cd2==_0x3999ba)break;_0x52bbd9['batch']['addOperation'](_0x5b4598),_0x5eba58['model']['applyOperation'](_0x5b4598);const _0x3dd184=_0x5b4598['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x3dd184))break;const _0x1124e2=_0x53d174(_0x5b4598['range'],_0x5eba58['model']);this['markAttributeChange'](_0x1124e2,_0x3dd184,_0x415cd2,_0x3999ba,{'groupId':_0x12e742()});break;}case'insert':{_0x52bbd9['batch']['addOperation'](_0x5b4598),_0x5eba58['model']['applyOperation'](_0x5b4598);if(_0xee9355[_0x1e1377+0x1]&&'move'==_0xee9355[_0x1e1377+0x1]['type'])break;const _0x24bd0a=_0x5b4598['position'],_0x11627a=_0x5b4598['howMany'],_0x450746=_0x53d174(_0x5eba58['model']['createRange'](_0x24bd0a,_0x24bd0a['getShiftedBy'](_0x11627a)),_0x5eba58['model']);this['markInsertion'](_0x450746);break;}case'split':{_0x52bbd9['batch']['addOperation'](_0x5b4598),_0x5eba58['model']['applyOperation'](_0x5b4598);const _0x596afc=_0x5b4598['splitPosition'],_0x570e54=_0x5b4598['moveTargetPosition'];this['markInsertion'](_0x5eba58['model']['createRange'](_0x596afc,_0x570e54));break;}case'move':case'remove':_0x52bbd9['batch']['addOperation'](_0x5b4598),_0x5eba58['model']['applyOperation'](_0x5b4598);}}for(const _0x241f60 of _0x4e41de)_0x241f60['detach'](),this['markDeletion'](_0x241f60);});}['_setSuggestionRange'](_0x3ee6a3,_0x3b36a2){const _0x1f3ad6=_0x3ee6a3['getFirstMarker']();this['_model']['change'](_0x443193=>{_0x443193['updateMarker'](_0x1f3ad6,{'range':_0x3b36a2});});}['_addThreadToSuggestion'](_0x2ba0a2){const _0x42cb77=_0x2ba0a2['id'],_0x52fdde=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x42cb77)||this['_commentsRepository']['addCommentThread']({'channelId':_0x52fdde,'threadId':_0x42cb77,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x86c4fe=this['_commentsRepository']['getCommentThread'](_0x42cb77);_0x86c4fe['unbind']('isRemovable'),_0x86c4fe['isRemovable']=!0x1,_0x2ba0a2['commentThread']=_0x86c4fe;}['_checkSuggestionCorrectness'](_0x44791f,_0x244a48,_0x364914,_0x31bea9){if(_0x44791f['type']!=_0x244a48||_0x44791f['subType']!=_0x364914||_0x44791f['creator']['id']!=_0x31bea9)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x520897('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x58c799,_0x5897ca){const _0x312b12=_0x58c799['getFirstRange']();if(_0x5897ca['isEqual'](_0x312b12))_0x58c799['removeMarkers']();else{if(_0x312b12['containsRange'](_0x5897ca)){const _0x2ed487=this['_model']['createPositionAt'](_0x5897ca['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x58c799,this['_model']['createRange'](_0x312b12['start'],_0x2ed487));const _0x207bb6=_0x12e742(),_0x42f462=_0x58c799['creator']['id'],_0x4a8613=_0x58c799['type']+':'+_0x58c799['subType'];this['_setSuggestionData']({'id':_0x207bb6,'type':_0x4a8613,'createdAt':new Date(),'authorId':_0x42f462,'data':_0x58c799['data'],'attributes':_0x58c799['attributes']});const _0xe374c=this['_model']['createPositionAt'](_0x5897ca['end']['parent'],'after'),_0x254732=this['_model']['createRange'](_0xe374c,_0x312b12['end']);this['_addSuggestionMarker'](_0x4a8613,_0x207bb6,_0x42f462,_0x254732);}else{if(_0x312b12['containsPosition'](_0x5897ca['start'])){const _0x54c21e=this['_model']['createPositionAt'](_0x5897ca['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x58c799,this['_model']['createRange'](_0x312b12['start'],_0x54c21e));}else{const _0x23b637=this['_model']['createPositionAt'](_0x5897ca['end']['parent'],'after');this['_setSuggestionRange'](_0x58c799,this['_model']['createRange'](_0x23b637,_0x312b12['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x351e74){for(const {suggestion:_0x295cfb,meta:_0x1e070f}of this['_findSuggestions'](_0x351e74,'insertion')){if(!_0x1e070f['isOwn'])continue;const _0x1ed0eb=_0x295cfb['getRanges']();for(const _0x204691 of _0x1ed0eb)if(!_0x351e74['getDifference'](_0x204691)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x260155){return this['editor']['plugins']['get']('Users')['getUser'](_0x260155);}['_getExternalAuthor'](_0x486a18){const _0x4178ea=this['editor']['plugins']['get']('Users'),_0x539db7=_0x797f55('external:'+_0x486a18),_0x1c4a45=_0x4178ea['getUser'](_0x539db7);return _0x1c4a45||_0x4178ea['addUser']({'id':_0x539db7,'name':_0x486a18});}['_createSuggestion'](_0x4d846f,_0x5bdf9d,_0x119dec,_0x93fd14,_0x227a5b,_0x568f62){const _0x334784=this['_getAuthorFromId'](_0x93fd14);if(!_0x334784)throw new _0x520897('track-changes-user-not-found',this,{'authorId':_0x93fd14,'suggestionId':_0x119dec});const _0x3e458c=this['_suggestionFactory']['buildSuggestion'](_0x4d846f,_0x5bdf9d,_0x119dec,_0x334784,_0x227a5b,_0x4ea3e6=>{this['_updateSuggestionData'](_0x119dec,{'attributes':_0x4ea3e6});const _0x2202c2=this['getSuggestion'](_0x119dec);this['_joinWithAdjacentSuggestions'](new Set([_0x2202c2])),this['_refreshSuggestionsChain'](new Set([_0x2202c2]));},_0x568f62);return this['listenTo'](_0x3e458c,'accept',()=>{this['_updateSuggestionData'](_0x119dec,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3e458c,'discard',()=>{this['_updateSuggestionData'](_0x119dec,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x119dec,_0x3e458c),this['_suggestionState']['set'](_0x3e458c,'notReady'),_0x3e458c;}['_breakSuggestionMarker'](_0x278fd7,_0x94e25d,_0x4047cc){const _0x5f0a76=_0x278fd7['getFirstRange'](),_0x4b7b88=_0x5f0a76['start'],_0x46cccc=_0x5f0a76['end'];this['_setSuggestionRange'](_0x278fd7,this['_model']['createRange'](_0x4b7b88,_0x94e25d));const _0x36576e=_0x12e742(),_0x2cdd09=_0x278fd7['creator']['id'],_0x393323=_0x278fd7['type']+(_0x278fd7['subType']?':'+_0x278fd7['subType']:'');this['_setSuggestionData']({'id':_0x36576e,'type':_0x393323,'createdAt':new Date(),'authorId':_0x2cdd09,'originalSuggestionId':_0x278fd7['_originalSuggestionId']||_0x278fd7['id'],'attributes':_0x278fd7['attributes'],'data':_0x278fd7['data']});const _0x5ad371=this['_getAttributeKey'](_0x278fd7);('formatBlock'==_0x278fd7['type']||_0x5ad371&&this['_suggestionsConversion']['isBlockAttribute'](_0x5ad371))&&(_0x4047cc=this['_model']['createPositionBefore'](_0x4047cc['parent'])),this['_addSuggestionMarker'](_0x393323,_0x36576e,_0x2cdd09,this['_model']['createRange'](_0x4047cc,_0x46cccc));}['_findSuggestions'](_0x22743b,_0x3af1e6=null){const _0x3c31c7=[],_0x44fc49=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x22743b)||(_0x22743b=[_0x22743b]);for(const _0xd27408 of this['getSuggestions']()){if(!_0xd27408['isInContent'])continue;if(_0x3af1e6&&_0xd27408['type']!=_0x3af1e6)continue;let _0x2af5bb=!0x1;for(const _0x38749e of _0xd27408['getRanges']()){for(const _0x26544c of _0x22743b){const _0x1df492=_0x26544c['start']['isEqual'](_0x38749e['end'])||_0x26544c['end']['isEqual'](_0x38749e['start']);if(_0x1df492||_0x26544c['getIntersection'](_0x38749e)){const _0x40daa0=_0x26544c['containsRange'](_0x38749e)&&qe(this['_model']['schema'],_0x38749e['start'],_0x26544c),_0xd464c0=_0x38749e['containsRange'](_0x26544c)&&qe(this['_model']['schema'],_0x26544c['start'],_0x38749e);_0x3c31c7['push']({'suggestion':_0xd27408,'meta':{'isOwn':_0x44fc49==_0xd27408['author'],'isNextTo':_0x1df492,'isInsideObject':_0x40daa0,'containsRangeInObject':_0xd464c0}}),_0x2af5bb=!0x0;break;}}if(_0x2af5bb)break;}}return _0x3c31c7;}['_addSuggestionMarker'](_0x310014,_0x5aae31,_0x2e6b94,_0x88dbbd,_0x315743){this['_model']['change'](_0x41aa8f=>{let _0x5a30f3='suggestion:'+_0x310014+':'+_0x5aae31+':'+_0x2e6b94;_0x315743&&(_0x5a30f3=_0x5a30f3+':'+_0x315743),_0x41aa8f['addMarker'](_0x5a30f3,{'range':_0x88dbbd,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4cd77d){const _0x1561f3=_0x4cd77d['previous'],_0x4be16e=_0x4cd77d['next'];_0x4cd77d['previous']=null,_0x4cd77d['next']=null,null!=_0x1561f3&&_0x1561f3['next']==_0x4cd77d&&(_0x1561f3['next']=_0x4be16e),null!=_0x4be16e&&_0x4be16e['previous']==_0x4cd77d&&(_0x4be16e['previous']=_0x1561f3),'ready'==this['_suggestionState']['get'](_0x4cd77d)&&(this['_suggestionState']['set'](_0x4cd77d,'removed'),this['fire']('suggestionUnloaded',_0x4cd77d,_0x1561f3,_0x4be16e));}['_setSuggestionData'](_0x33b502){const _0x5c019b=_0x33b502['id'],_0x32826=this['addSuggestionData'](_0x33b502);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x52556a=this['editor']['plugins']['get']('PendingActions'),_0x1fa014=_0x32826['hasComments'],_0x4229f4=_0x32826['subType']?_0x32826['type']+':'+_0x32826['subType']:_0x32826['type'],_0x2546c9=this['editor']['locale'],_0x1758c4=_0x52556a['add'](At(_0x2546c9,'PENDING_ACTION_SUGGESTION')),_0x5be3c6={'id':_0x5c019b,'type':_0x4229f4,'hasComments':_0x1fa014,'data':_0x33b502['data']||null,'originalSuggestionId':_0x33b502['originalSuggestionId']||null,'attributes':_0x32826['attributes']};this['_adapter']['addSuggestion'](_0x5be3c6)['then'](_0x27c766=>{_0x32826['_saved']=!0x0,_0x52556a['remove'](_0x1758c4),_0x27c766&&_0x27c766['createdAt']&&(this['_suggestions']['get'](_0x5c019b)['createdAt']=_0x27c766['createdAt']);})['catch'](_0x113600=>{throw _0xf6ceae('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x32826['discard']();}),_0x32826['stopListening'](),this['_suggestions']['delete'](_0x32826['id']),this['_suggestionState']['delete'](_0x32826),_0x113600;});}return _0x32826;}['_updateSuggestionData'](_0x20963f,_0x380e3f){const _0x4bc497=this['editor']['plugins']['get']('PendingActions'),_0x58efc7=this['getSuggestion'](_0x20963f);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x58efc7['_saved']){const _0x51c4e1=_0x4bc497['add'](At(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x20963f,_0x380e3f)['then'](()=>{_0x4bc497['remove'](_0x51c4e1);});}else _0x58efc7['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x20963f,_0x380e3f);});}}['_getSuggestionData'](_0x1ac9b9){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x520897('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1ac9b9);}['_handleNewSuggestionMarker'](_0x1e60ca){const {id:_0x582e63,type:_0x4b4562,subType:_0xcad5ff,authorId:_0x39aee9}=_0x438505(_0x1e60ca),_0x45e331=this['_suggestions']['get'](_0x582e63)||this['_createSuggestion'](_0x4b4562,_0xcad5ff,_0x582e63,_0x39aee9,{});switch(this['_checkSuggestionCorrectness'](_0x45e331,_0x4b4562,_0xcad5ff,_0x39aee9),this['_suggestionState']['get'](_0x45e331)){case'notReady':this['_getSuggestionData'](_0x582e63)['then'](_0x49bfe0=>{let _0x5c0b9c=Promise['resolve']();_0x49bfe0['hasComments']&&(_0x5c0b9c=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x582e63})),_0x5c0b9c['then'](()=>{this['addSuggestionData'](_0x49bfe0)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x45e331,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x582e63,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x45e331,'ready'),this['fire']('suggestionLoaded',_0x45e331);break;case'ready':this['fire']('suggestionChanged',_0x45e331);}return _0x45e331['addMarkerName'](_0x1e60ca),_0x45e331;}['_refreshSuggestionsChain'](_0xa40f1e){const _0x1ffa48=Array['from'](_0xa40f1e),_0x588cb1=_0x1ffa48['filter'](_0x30b2f6=>'attribute'==_0x30b2f6['type']);this['_refreshAttributeSuggestionsChain'](_0x588cb1);const _0x5961f0=_0x1ffa48['filter'](_0x285018=>!_0x285018['isMultiRange']&&'attribute'!=_0x285018['type']),_0x9831d4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f322b=>!_0x4f322b['isMultiRange']&&'attribute'!=_0x4f322b['type']),_0x4c0ee6=_0x9831d4['filter'](_0x24db69=>!_0xa40f1e['has'](_0x24db69)),_0x2b27e2=new Map(_0x9831d4['map'](_0x4a9f86=>[_0x4a9f86,this['_suggestionFactory']['getSuggestionCallback'](_0x4a9f86['type'],_0x4a9f86['subType'],'chain')])),_0x24ca1f=new Map(_0x9831d4['map'](_0x464ede=>[_0x464ede,_0x464ede['getFirstRange']()])),_0x300dbf=new Set(),_0x512f00=new Set();for(let _0x54b942=0x0;_0x54b942<_0x5961f0['length'];_0x54b942++)_0x1a27c8(_0x5961f0[_0x54b942],_0x5961f0,_0x54b942+0x1);for(let _0x141051=0x0;_0x141051<_0x5961f0['length'];_0x141051++)_0x1a27c8(_0x5961f0[_0x141051],_0x4c0ee6,0x0);const _0x4c075e=new Set();for(let _0x9d7daa=0x0;_0x9d7daa<_0x5961f0['length'];_0x9d7daa++){const _0x4cfd3a=_0x5961f0[_0x9d7daa];!_0x512f00['has'](_0x4cfd3a)&&_0x4cfd3a['previous']&&(_0x4c075e['add'](_0x4cfd3a['previous']),_0x4cfd3a['previous']['next']===_0x4cfd3a&&(_0x4cfd3a['previous']['next']=null),_0x4cfd3a['previous']=null),!_0x300dbf['has'](_0x4cfd3a)&&_0x4cfd3a['next']&&(_0x4c075e['add'](_0x4cfd3a['next']),_0x4cfd3a['next']['previous']===_0x4cfd3a&&(_0x4cfd3a['next']['previous']=null),_0x4cfd3a['next']=null);}function _0x1a27c8(_0x3eec72,_0x59572a,_0x575e9c){for(let _0x3bd828=_0x575e9c;_0x3bd828<_0x59572a['length'];_0x3bd828++){const _0xf60fd3=_0x5bff86(_0x3eec72,_0x59572a[_0x3bd828]);_0xf60fd3&&(_0xf60fd3[0x0]['next']=_0xf60fd3[0x1],_0xf60fd3[0x1]['previous']=_0xf60fd3[0x0],_0x300dbf['add'](_0xf60fd3[0x0]),_0x512f00['add'](_0xf60fd3[0x1]));}}function _0x5bff86(_0x125a55,_0x2faab2){if(_0x125a55['author']['id']!==_0x2faab2['author']['id'])return null;const _0x5ed04d=_0x2b27e2['get'](_0x125a55)(_0x125a55,_0x2faab2,_0x24ca1f['get'](_0x125a55),_0x24ca1f['get'](_0x2faab2));if(!_0x5ed04d)return null;return _0x2b27e2['get'](_0x2faab2)(_0x125a55,_0x2faab2,_0x24ca1f['get'](_0x125a55),_0x24ca1f['get'](_0x2faab2))?_0x5ed04d[0x1]['commentThread']&&_0x5ed04d[0x1]['commentThread']['length']?null:_0x5ed04d:null;}_0x4c075e['size']&&this['_refreshSuggestionsChain'](_0x4c075e);}['_refreshAttributeSuggestionsChain'](_0x2bd3ae){if(0x0==_0x2bd3ae['length'])return;const _0x2cf344=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x282410=>'attribute'==_0x282410['type']&&_0x282410['_isDataLoaded']),_0x30bf28=[],_0x13ab6b=new Map();for(const _0x139228 of _0x2cf344){const _0x103e6e=_0x797f55(_0x139228['attributes']);_0x13ab6b['has'](_0x103e6e)||(_0x13ab6b['set'](_0x103e6e,_0x30bf28['length']),_0x30bf28['push']([]));const _0x36024e=_0x13ab6b['get'](_0x103e6e);_0x30bf28[_0x36024e]['push'](_0x139228);}!(function(){_0x30bf28['sort']((_0x30af3c,_0x20a87d)=>{const _0x106b0a=_0x30af3c[0x0]['createdAt'],_0x38a3b7=_0x20a87d[0x0]['createdAt'];return _0x106b0a==_0x38a3b7?_0x30af3c[0x0]['attributes']['groupId']<_0x20a87d[0x0]['attributes']['groupId']?-0x1:0x1:_0x106b0a<_0x38a3b7?-0x1:0x1;});for(const _0x19e7d3 of _0x30bf28)_0x19e7d3['sort']((_0x4f40dc,_0x5ae14e)=>_0x4f40dc['id']<_0x5ae14e['id']?-0x1:0x1);}());for(let _0x50e45b=0x0;_0x50e45b<_0x30bf28['length'];_0x50e45b++){if(0x0==_0x30bf28[_0x50e45b]['length'])continue;const _0x35def3=[];for(let _0x4bb8e7=_0x50e45b+0x1;_0x4bb8e7<_0x30bf28['length'];_0x4bb8e7++)0x0!=_0x30bf28[_0x4bb8e7]['length']&&_0x51feed(_0x30bf28[_0x50e45b],_0x30bf28[_0x4bb8e7])&&_0x35def3['push'](_0x4bb8e7);for(const _0x213b31 of _0x35def3)_0x30bf28[_0x50e45b]=_0x30bf28[_0x50e45b]['concat'](_0x30bf28[_0x213b31]),_0x30bf28[_0x213b31]=[];}for(const _0x296b95 of _0x30bf28)for(let _0x40e61f=0x0;_0x40e61f<_0x296b95['length'];_0x40e61f++){const _0x8c633f=_0x296b95[_0x40e61f+0x1]||null;_0x296b95[_0x40e61f]['next']!==_0x8c633f&&(_0x296b95[_0x40e61f]['next']=_0x8c633f);}for(const _0x863845 of _0x30bf28)for(let _0x19b87c=0x0;_0x19b87c<_0x863845['length'];_0x19b87c++){const _0x238737=_0x863845[_0x19b87c-0x1]||null;_0x863845[_0x19b87c]['previous']!==_0x238737&&(_0x863845[_0x19b87c]['previous']=_0x238737);}function _0x51feed(_0xd39a88,_0x494bac){if(_0xd39a88[0x0]['attributes']['groupId']!==_0x494bac[0x0]['attributes']['groupId']&&_0xd39a88[0x0]['author']!==_0x494bac[0x0]['author'])return!0x1;if(!function(_0x45fdb1,_0x3c0523){if(!_0x45fdb1['hasComments']&&!_0x3c0523['hasComments'])return!0x0;if(_0x45fdb1['hasComments']&&_0x3c0523['hasComments'])return!0x1;if(_0x45fdb1['hasComments']&&_0x3c0523['createdAt']<_0x45fdb1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3c0523['hasComments']&&_0x45fdb1['createdAt']<_0x3c0523['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xd39a88[0x0],_0x494bac[0x0]))return!0x1;const _0x5566b7=ot(_0xd39a88[0x0]['attributes'],['groupId','trackingSessionId']),_0x2e578d=ot(_0x494bac[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x5566b7,_0x2e578d))return!0x1;if(_0xd39a88[0x0]['attributes']['groupId']==_0x494bac[0x0]['attributes']['groupId'])return!0x0;if(_0xd39a88[0x0]['attributes']['trackingSessionId']!==_0x494bac[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0xd39a88['every'](_0x236d06=>_0x494bac['some'](_0x4a215e=>_0x236d06['getFirstRange']()['isEqual'](_0x4a215e['getFirstRange']())))&&_0x494bac['every'](_0x5e7d1e=>_0xd39a88['some'](_0x92d968=>_0x5e7d1e['getFirstRange']()['isEqual'](_0x92d968['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x351cd4){const _0x5704f2=Array['from'](_0x351cd4),_0x36e4c5=this['getSuggestions']({'skipNotAttached':!0x0}),_0x38eda8=_0x36e4c5['filter'](_0xa073f2=>!_0x351cd4['has'](_0xa073f2)),_0x38c571=new Map(_0x5704f2['map'](_0x17197b=>[_0x17197b,this['_suggestionFactory']['getSuggestionCallback'](_0x17197b['type'],_0x17197b['subType'],'join')])),_0x4030bf=new Map(_0x36e4c5['map'](_0x2c6061=>[_0x2c6061,_0x2c6061['getRanges']()]));for(let _0x3a7d02=0x0;_0x3a7d02<_0x5704f2['length'];_0x3a7d02++){if(_0x336b47(this,_0x5704f2[_0x3a7d02],_0x5704f2,_0x3a7d02+0x1))return!0x0;}for(let _0x4ce237=0x0;_0x4ce237<_0x5704f2['length'];_0x4ce237++){if(_0x336b47(this,_0x5704f2[_0x4ce237],_0x38eda8,0x0))return!0x0;}return!0x1;function _0x336b47(_0x12d06e,_0xf49618,_0x4d3f84,_0x2cf845){for(let _0x8d308d=_0x2cf845;_0x8d308d<_0x4d3f84['length'];_0x8d308d++){const _0x1a1477=_0x4d3f84[_0x8d308d];if(_0x1a1477['type']!==_0xf49618['type']||_0x1a1477['author']['id']!==_0xf49618['author']['id']||_0x1a1477['subType']!==_0xf49618['subType'])continue;if(!an(_0xf49618,_0x1a1477))continue;if('attribute'==_0xf49618['type']&&_0xf49618['data']['oldValue']!=_0x1a1477['data']['oldValue'])continue;if('attribute'==_0xf49618['type']&&_0x12d06e['_suggestionsConversion']['isBlockAttribute'](_0xf49618['data']['key']))continue;if('formatBlock'==_0xf49618['type']){const _0x2f8ec6=_0x12d06e['editor']['model'],_0x21f52=_0xf49618['getContainedElement']();if(_0x21f52&&(_0x2f8ec6['schema']['isObject'](_0x21f52)||_0x2f8ec6['schema']['isLimit'](_0x21f52)))continue;}const _0x486a57=_0x38c571['get'](_0xf49618),_0x216fb4=_0x4030bf['get'](_0xf49618),_0x529b65=_0x4030bf['get'](_0x1a1477),_0x24525d=_0xf49618['commentThread']&&_0xf49618['commentThread']['length'],_0xb11177=_0x1a1477['commentThread']&&_0x1a1477['commentThread']['length'];if(!_0x24525d&&_0x486a57(_0x529b65,_0x216fb4))return _0x12d06e['_joinSuggestions'](_0x1a1477,_0xf49618),_0x4030bf['delete'](_0xf49618),!0x0;if(!_0xb11177&&_0x486a57(_0x216fb4,_0x529b65))return _0x12d06e['_joinSuggestions'](_0xf49618,_0x1a1477),_0x4030bf['delete'](_0x1a1477),!0x0;}return!0x1;}}['_joinSuggestions'](_0x42fc33,_0x3c9995){if(_0x42fc33['isMultiRange']){for(const _0x45a5dc of _0x3c9995['getRanges']())_0x42fc33['addRange'](_0x45a5dc);}else{const _0x9a7cf1=_0x3c9995['getFirstRange']()['end'];this['_setSuggestionRange'](_0x42fc33,this['_model']['createRange'](_0x42fc33['getFirstRange']()['start'],_0x9a7cf1));}_0x3c9995['removeMarkers']();}['_getMarkerAnnouncementText'](_0xbdb0a6,_0x2a0b20,_0x598a41){const _0x23c927=_0xbdb0a6['startsWith']('format')||_0xbdb0a6['startsWith']('attribute')?'FORMATTING':_0xbdb0a6['toUpperCase']();return At(this['editor']['locale'],_0x2a0b20+'_'+_0x23c927+'_SUGGESTION_ANNOUNCEMENT',_0x598a41);}['_initAriaMarkerChangeAnnouncements'](){const _0x3885bb=this['editor'];if(!_0x3885bb['ui'])return;const {ariaLiveAnnouncer:_0x2fc332}=_0x3885bb['ui'];_0x3ac19f(this['_model'],({left:_0x1efebf,entered:_0x44d416})=>{for(const _0x541034 of _0x1efebf){const {group:_0x232c75,type:_0x393c44}=_0x438505(_0x541034['name']);if('suggestion'===_0x232c75){_0x2fc332['announce'](this['_getMarkerAnnouncementText'](_0x393c44,'LEAVE'));break;}}for(const _0x5e8f42 of _0x44d416){const {group:_0x380b15,type:_0x23a450}=_0x438505(_0x5e8f42['name']);if('suggestion'===_0x380b15){_0x2fc332['announce'](this['_getMarkerAnnouncementText'](_0x23a450,'ENTER',_0x3cc1be(_0x23d49a)));break;}}});}['_processAttributeChanges'](_0x350bf6){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5f55fd=this['editor'],_0x18a9b9=_0x5f55fd['model']['document']['differ']['getChanges']();if(0x0==_0x18a9b9['length'])return!0x1;const _0x484340=[],_0x1c36fb=_0x18a9b9['filter'](_0x3cca9e=>'attribute'==_0x3cca9e['type']),_0x1976d1=_0x18a9b9['filter'](_0x49e6d9=>'insert'==_0x49e6d9['type']&&'$text'!=_0x49e6d9['name']),_0x670904=_0x18a9b9['filter'](_0x3963b8=>'remove'==_0x3963b8['type']&&'$text'!=_0x3963b8['name']);for(const _0x378a18 of _0x1c36fb)_0x484340['push']({'key':_0x378a18['attributeKey'],'newValue':_0x378a18['attributeNewValue'],'oldValue':_0x378a18['attributeOldValue'],'range':sn(_0x378a18['range'],_0x5f55fd['model'])});for(const _0x12ce73 of _0x1976d1){const _0x49170f=_0x670904['find'](_0x6f50af=>_0x6f50af['position']['isEqual'](_0x12ce73['position']));_0x49170f&&_0x484340['push']({'key':Ke,'newValue':_0x12ce73['name'],'oldValue':_0x49170f['name'],'range':_0x5f55fd['model']['createRangeOn'](_0x12ce73['position']['nodeAfter'])});}return 0x0!=_0x484340['length']&&this['_reduceExistingSuggestions'](_0x350bf6,_0x484340);}['_processAttributeSuggestions'](_0x3a4f84){let _0x4cad89=!0x1;const _0x443a4d=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x450318=>_0x450318['data']['newRange']&&_0x450318['name']['startsWith']('suggestion:attribute:'));for(const _0x35c008 of _0x443a4d){const {subType:_0x5591af,id:_0x1573b5}=_0x438505(_0x35c008['name']),_0x292e0e=_0x5591af['split']('|')[0x0];for(const _0x227ba7 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x227ba7['id']!=_0x1573b5&&'attribute'==_0x227ba7['type']&&_0x227ba7['data']&&_0x227ba7['data']['key']==_0x292e0e&&_0x227ba7['getFirstRange']()['isIntersecting'](_0x35c008['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x227ba7,_0x35c008['data']['newRange'],_0x3a4f84),_0x4cad89=!0x0);}return _0x4cad89;}['recordAttributeChanges'](_0x33415e){this['_recordAttributeSuggestions']=!0x0,_0x33415e();}['_reduceExistingSuggestions'](_0x4e1394,_0xfd8f15){if(0x0==_0xfd8f15['length'])return!0x1;let _0x232a80=!0x1;for(const _0x10d22a of _0xfd8f15){const _0x30f615=this['_findSuggestions'](_0x10d22a['range'],'attribute')['filter'](_0x523d4f=>!_0x523d4f['meta']['isNextTo'])['map'](_0x3de637=>_0x3de637['suggestion']),_0x2ff518=_0x797f55({'newValue':_0x10d22a['newValue']});_0x30f615['filter'](_0x537102=>{const [_0x2a6348,_0x444683]=_0x537102['subType']['split']('|');return _0x2a6348==_0x10d22a['key']&&_0x444683!=_0x2ff518;})['forEach'](_0x4ecbd6=>{this['_reduceSuggestionAttributeRange'](_0x4ecbd6,_0x10d22a['range'],_0x4e1394),_0x232a80=!0x0;});}return _0x232a80;}['_reduceSuggestionAttributeRange'](_0x1b8505,_0x15f52c,_0x12cf14){const _0x4b3328=_0x1b8505['getFirstRange']()['getDifference'](_0x15f52c);0x0!==_0x4b3328['length']?0x1!==_0x4b3328['length']?this['_breakSuggestionMarker'](_0x1b8505,_0x15f52c['start'],_0x15f52c['end']):this['_setSuggestionRange'](_0x1b8505,_0x4b3328[0x0]):_0x12cf14['removeMarker'](_0x1b8505['getFirstMarker']());}}class Ye{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5ab9be){this['_editor']=_0x5ab9be,this['_model']=_0x5ab9be['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x282e2f,_0x37b2fc,_0x905c4f,_0x224b10,_0x32ec95,_0x2ce138,_0x13d5e3){return new bt(this['_model'],{'type':_0x282e2f,'subType':_0x37b2fc,'id':_0x905c4f,'originalSuggestionId':_0x13d5e3,'author':_0x224b10,'creator':_0x224b10,'attributes':_0x32ec95,'onAttributesChange':_0x2ce138,'onAccept':(..._0x1c3d4e)=>this['getSuggestionCallback'](_0x282e2f,_0x37b2fc,'accept')(..._0x1c3d4e),'onDiscard':(..._0x275574)=>this['getSuggestionCallback'](_0x282e2f,_0x37b2fc,'discard')(..._0x275574)});}['registerCustomCallback'](_0x23c5f2,_0x474fe5,_0x4467b8,_0x3a5982){const _0x29b29b=_0x23c5f2+':'+_0x474fe5+':'+_0x4467b8;this['_customCallbacks']['set'](_0x29b29b,_0x3a5982);}['getSuggestionCallback'](_0x30e20a,_0x2a9657,_0x18a2db){const _0xb88e84=_0x30e20a+':'+_0x2a9657+':'+_0x18a2db;return this['_customCallbacks']['get'](_0xb88e84)||this['_defaultCallbacks']['get'](_0x30e20a+':'+_0x18a2db);}['_registerDefaultCallbacks'](){const _0x27bf8b=()=>!0x1,_0x4caad9=_0x4aad31=>{_0x4aad31['sort']((_0x1be937,_0x1f5ec7)=>_0x1be937['start']['isBefore'](_0x1f5ec7['start'])?0x1:-0x1),this['_model']['change'](_0x25a7ce=>{for(const _0x5e3db3 of _0x4aad31){let _0x3e0af1;_0x3e0af1=_0x5e3db3['end']['isAtEnd']&&_0x5e3db3['end']['parent']==_0x5e3db3['start']['nodeAfter']?_0x25a7ce['createSelection'](_0x5e3db3['start']['nodeAfter'],'on'):_0x25a7ce['createSelection'](_0x5e3db3),this['_model']['deleteContent'](_0x3e0af1,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x4301bc=(_0x22f18e,_0x1362a7)=>{_0x1362a7&&this['_model']['change'](_0x2a7867=>{const {commandName:_0x501d69,commandParams:_0x1850aa=[]}=_0x1362a7,_0x3cdc28=_0x22f18e['map'](_0x1a05a9=>(Qe(_0x1a05a9)&&(_0x1a05a9=this['_model']['createRange'](_0x1a05a9['end'])),_0x1a05a9))['filter'](_0x296ffa=>'$graveyard'!==_0x296ffa['root']['rootName']);if(_0x3cdc28['length']<0x1)return;const _0x16d8f8=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x48a060=>_0x3756aa['fromRange'](_0x48a060));_0x2a7867['setSelection'](_0x3cdc28);for(const _0xbdb0d7 of this['_editor']['commands']['commands']())_0xbdb0d7['refresh']();_0x1850aa['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x501d69,..._0x1850aa);const _0x5c25ab=_0x16d8f8['filter'](_0x3eee36=>'$graveyard'!=_0x3eee36['root']['rootName']);_0x5c25ab['length']>0x0&&_0x2a7867['setSelection'](_0x5c25ab);for(const _0x2468b3 of _0x16d8f8)_0x2468b3['detach']();});},_0x245029=(_0x3476f8,_0x58bacc)=>0x1==_0x3476f8['length']&&0x1==_0x58bacc['length']&&_0x3476f8[0x0]['end']['isEqual'](_0x58bacc[0x0]['start']),_0x34c708=(_0x40f4a7,_0x779a9c,_0x59dca9,_0x1ee8a8)=>on(_0x40f4a7,_0x779a9c,_0x59dca9,_0x1ee8a8)?[_0x40f4a7,_0x779a9c]:on(_0x779a9c,_0x40f4a7,_0x1ee8a8,_0x59dca9)?[_0x779a9c,_0x40f4a7]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x27bf8b),this['_defaultCallbacks']['set']('insertion:discard',_0x4caad9),this['_defaultCallbacks']['set']('insertion:join',_0x245029),this['_defaultCallbacks']['set']('insertion:chain',_0x34c708),this['_defaultCallbacks']['set']('deletion:accept',_0x4caad9),this['_defaultCallbacks']['set']('deletion:discard',_0x27bf8b),this['_defaultCallbacks']['set']('deletion:join',_0x245029),this['_defaultCallbacks']['set']('deletion:chain',_0x34c708),this['_defaultCallbacks']['set']('formatInline:accept',_0x4301bc),this['_defaultCallbacks']['set']('formatInline:discard',_0x27bf8b),this['_defaultCallbacks']['set']('formatInline:join',_0x245029),this['_defaultCallbacks']['set']('formatInline:chain',_0x27bf8b),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4301bc),this['_defaultCallbacks']['set']('formatBlock:discard',_0x27bf8b),this['_defaultCallbacks']['set']('formatBlock:join',_0x245029),this['_defaultCallbacks']['set']('formatBlock:chain',_0x27bf8b),this['_defaultCallbacks']['set']('attribute:accept',_0x27bf8b),this['_defaultCallbacks']['set']('attribute:discard',(_0x188c48,_0x4275c8)=>{if(!_0x4275c8)return;const _0x26dd5d=this['_editor']['plugins']['get'](_0xfcbb62);this['_model']['change'](_0x502e43=>{if(_0x4275c8['key']==Ke)for(const _0x2354fa of _0x188c48){const _0x5456af=_0x2354fa['start']['nodeAfter'],_0xbb4f7d=_0x4275c8['oldValue'];_0x502e43['rename'](_0x5456af,_0xbb4f7d);}else{if(_0x26dd5d['isBlockAttribute'](_0x4275c8['key'])){for(const _0x239802 of _0x188c48)void 0x0!==_0x4275c8['oldValue']?_0x502e43['setAttribute'](_0x4275c8['key'],_0x4275c8['oldValue'],_0x239802['start']['nodeAfter']):_0x502e43['removeAttribute'](_0x4275c8['key'],_0x239802['start']['nodeAfter']);}else{for(const _0x43b05a of _0x188c48)_0x4275c8['oldValue']?_0x502e43['setAttribute'](_0x4275c8['key'],_0x4275c8['oldValue'],_0x43b05a):_0x502e43['removeAttribute'](_0x4275c8['key'],_0x43b05a);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x245029);}}function qe(_0x12cb1c,_0x52b60b,_0x220d46){for(const _0x3b0ace of _0x52b60b['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3b0ace['root']==_0x3b0ace)return!0x1;if(!_0x220d46['containsItem'](_0x3b0ace))return!0x1;if(_0x12cb1c['isObject'](_0x3b0ace)||_0x12cb1c['isLimit'](_0x3b0ace))return!0x0;}return!0x1;}function Qe(_0x35bde9){return _0x35bde9['end']['parent']==_0x35bde9['start']['nodeAfter']&&_0x35bde9['end']['isAtStart'];}function Ze(_0x3d8787,_0x4c63e5,_0x577e1d,_0x1c6e88){const _0x5605ad=_0x5092c9=>!_0x5092c9['item']['is']('$textProxy')&&!_0x1c6e88['isObject'](_0x5092c9['item']),_0x57b8cd=_0x3d8787['start']['getLastMatchingPosition'](_0x5605ad),_0x128325=_0x3d8787['end']['getLastMatchingPosition'](_0x5605ad,{'direction':'backward'});return(!_0x3d8787['start']['isEqual'](_0x57b8cd)||!_0x3d8787['end']['isEqual'](_0x128325))&&(_0x57b8cd['isBefore'](_0x128325)?_0x577e1d['updateMarker'](_0x4c63e5,{'range':_0x577e1d['createRange'](_0x57b8cd,_0x128325)}):_0x577e1d['removeMarker'](_0x4c63e5),!0x0);}function Je(_0x599779){return _0x797f55(_0x599779);}function tn(_0x1ca3c5){const _0x25da31=_0x1ca3c5['start']['nodeAfter'];return _0x25da31&&_0x25da31['is']('element');}function en(_0x7ba296){return Qe(_0x7ba296)||function(_0x134c88){return _0x134c88['start']['parent']==_0x134c88['end']['nodeBefore']&&_0x134c88['start']['isAtEnd'];}(_0x7ba296);}function nn(_0x1190ca,_0x494c24){try{const _0x3cdd8c=_0x1190ca['getRange']();for(const _0x58c1a3 of _0x494c24)if(_0x1190ca!==_0x58c1a3&&_0x3cdd8c&&_0x3cdd8c['isIntersecting'](_0x58c1a3['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function sn(_0xdb3f59,_0x313dc5){return null==_0xdb3f59['end']['nodeBefore']&&_0xdb3f59['end']['parent']==_0xdb3f59['start']['nodeAfter']?rn(_0xdb3f59['start']['nodeAfter'],_0x313dc5):_0xdb3f59;}function rn(_0x284375,_0x59c58a){const _0x30b0ad=_0x59c58a['schema']['isObject'](_0x284375)||_0x59c58a['schema']['isSelectable'](_0x284375);return _0x59c58a['createRange'](_0x59c58a['createPositionAt'](_0x284375,'before'),_0x30b0ad?_0x59c58a['createPositionAfter'](_0x284375):_0x59c58a['createPositionAt'](_0x284375,'end'));}function on(_0x37443d,_0x29534f,_0x4105de,_0x93e06d){return!!an(_0x37443d,_0x29534f)&&_0x4105de['end']['isEqual'](_0x93e06d['start']);}function an(_0x347e03,_0x510000){if(!_0x347e03['_isDataLoaded']||!_0x510000['_isDataLoaded'])return!0x1;const _0x45505c=new Set(Object['keys'](_0x347e03['attributes'])),_0x2e3feb=new Set(Object['keys'](_0x510000['attributes']));if(_0x45505c['delete']('groupId'),_0x2e3feb['delete']('groupId'),0x0==_0x45505c['size']&&0x0==_0x2e3feb['size'])return!0x0;if(_0x45505c['size']!=_0x2e3feb['size'])return!0x1;const _0x547d78={..._0x347e03['attributes']},_0x282894={..._0x510000['attributes']};return delete _0x547d78['groupId'],delete _0x282894['groupId'],JSON['stringify'](_0x547d78)==JSON['stringify'](_0x282894);}function cn(_0x13d08a,_0x15b1c6){const _0x4b4e26=ln(_0x13d08a['attributes']),_0x32340d=ln(_0x15b1c6);if(!_0x13d08a['_isDataLoaded'])return!0x1;for(const _0x18f160 of Object['keys'](_0x32340d))if(!st(_0x4b4e26[_0x18f160],_0x32340d[_0x18f160]))return!0x1;return!0x0;}function ln(_0x3fa3ae){const _0x17e9b9=Object['assign']({},_0x3fa3ae);return delete _0x17e9b9['skipNestingCheck'],delete _0x17e9b9['tablePasteChainId'],_0x17e9b9;}function un(_0x5508ef){return _0x5508ef['split']('|')[0x0];}class hn extends/* #__PURE__ -- @preserve */
26
- _0x9eee31(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x40e75f,_0x4be97b,_0x2de0b0,_0x4604a9){super(),this['model']=_0x4be97b,this['view']=_0x2de0b0,this['commentThreadController']=_0x4604a9,this['_editor']=_0x40e75f,this['_acceptCommand']=_0x40e75f['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x40e75f['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x297aff,_0x1f32d2)=>_0x297aff||_0x1f32d2),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x140b68=>_0x140b68&&this['_editor']['model']['canEditAt'](_0x4be97b['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4619b1=>_0x4619b1&&this['_editor']['model']['canEditAt'](_0x4be97b['getRanges']())),this['_pendingAction']=null,_0x2de0b0['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2de0b0,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2de0b0,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2de0b0,'change:isDirty',()=>{_0x2de0b0['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 _0x431315=At(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x431315);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class dn extends _0x3a546b{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5ce0f5,_0x3c1de9,_0x8ffba3,_0x536c86){super(_0x5ce0f5),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x56f83b(_0x5ce0f5,At(_0x5ce0f5,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3c1de9['authoredAt']),this['bind']('authoredAt')['to'](_0x3c1de9),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',_0x3c1de9,'authoredAt',this,'descriptionParts',(_0xcb2357,_0x5b3ee7,_0x3ad249)=>{const _0x544bcd=_0x3ad249['map'](_0x39df26=>gt(_0x39df26['content']))['join']('.\x20')+'.';return At(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xcb2357-0x1,_0x3c1de9['author']['name'],_0x5b3ee7?_0x536c86['formatDateTime'](_0x5b3ee7):'',new DOMParser()['parseFromString'](_0x544bcd,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3cd360(),this['focusTracker']=new _0xaf3886(),this['keystrokes']=new _0x1205fe(),this['focusCycler']=new _0x3ad658({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x403a55=>_0x403a55['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3c1de9,this['_localUser']=_0x8ffba3,this['_config']=_0x536c86,_0x536c86['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x52cb00(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x326541}=this['_config'];this['commentsListView']=new _0x326541(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',_0x56f55a=>_0x56f55a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5754e8,_0x38764b)=>_0x5754e8||!!_0x38764b);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xb5b410}=this['_config'],_0x136428=new _0xb5b410(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5bc90c=_0x136428['commentInputView'];return _0x136428['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5bc90c,'value',(_0x12ef4b,_0xd849c8,_0x3c73c5)=>!!_0x3c73c5||_0x12ef4b&&!_0xd849c8),_0x5bc90c['on']('submit',(_0x2bd427,_0x203e4a)=>{this['fire']('addComment',_0x203e4a),_0x5bc90c['editor']['setData']('');}),_0x5bc90c['on']('cancel',()=>this['focus']()),_0x5bc90c['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x136428;}}class fn extends dn{['suggestionView'];['_descriptionElement'];constructor(_0x22e31a,_0x1e1ffe,_0x1b81b4,_0xe487e7){super(_0x22e31a,_0x1e1ffe,_0x1b81b4,_0xe487e7),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x152be5=>_0x152be5&&_0x152be5[0x0]?_0x152be5[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5aa56f,_0x5cfcdb)=>{let _0x17e597='';for(const _0x4c1382 of _0x5aa56f)_0x17e597+='<p>'+gt(_0x4c1382['content'],_0x4c1382['color'])+'</p>';return _0x5cfcdb?_0x17e597:_0x1bcc62(_0x17e597,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xe487e7['SuggestionView'](_0x22e31a,_0x1e1ffe,{'formatDateTime':_0xe487e7['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 _0x24d03c=this['bindTemplate'],_0x25b3c9=[this['suggestionView']];return this['commentsListView']&&_0x25b3c9['push'](this['commentsListView']),this['commentThreadInputView']&&_0x25b3c9['push'](this['commentThreadInputView']),_0x25b3c9['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x24d03c['if']('isActive','ck-suggestion-wrapper--active'),_0x24d03c['to']('type',_0x2d33e9=>'ck-suggestion-'+_0x2d33e9),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':_0x24d03c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x25b3c9};}['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 gn extends _0x3a546b{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x220a76,_0xfe51a0,_0x4a21c8){super(_0x220a76),this['_model']=_0xfe51a0,this['_config']=_0x4a21c8,this['set']('description',''),this['bind']('authoredAt')['to'](_0xfe51a0),this['acceptButton']=this['_createButton'](At(_0x220a76,'Accept\x20suggestion'),_0x3dfcb5,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](At(_0x220a76,'Discard\x20suggestion'),_0x172549,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x271f5a(_0x220a76,_0xfe51a0['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3cd360([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xaf3886(),this['keystrokes']=new _0x1205fe(),this['focusCycler']=new _0x3ad658({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x442433=>_0x442433['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5de657=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5de657['innerHTML']=this['description'],this['on']('change:description',(_0x443e3e,_0x3d5b47,_0x4a2990)=>{_0x5de657['innerHTML']=_0x4a2990;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2668b5=this['bindTemplate'],_0x24196a=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x2668b5['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2668b5['to']('authoredAt',_0x225191=>this['_config']['formatDateTime'](_0x225191))}]}]},{'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']&&_0x24196a['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':_0x24196a}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?At(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):At(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?At(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):At(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x102d8c,_0x2b7587,_0x55ed41,_0x3417cf,_0x4ec8d0){const _0x10c228=new _0x396789(this['locale']);return _0x10c228['set']({'label':_0x102d8c,'icon':_0x2b7587,'tooltip':!0x0,'tooltipPosition':_0x4ec8d0}),_0x10c228['extendTemplate']({'attributes':{'class':_0x55ed41}}),_0x10c228['on']('execute',()=>{this['fire'](_0x3417cf,this['_model']['id']);}),_0x10c228;}['_setupKeyboardNavigation'](){const _0x162cb9=this['element'];this['keystrokes']['listenTo'](_0x162cb9);for(const _0x376626 of this['focusables'])this['focusTracker']['add'](_0x376626['element']),this['keystrokes']['listenTo'](_0x376626['element']);this['keystrokes']['set']('enter',(_0xa9b9c5,_0x494848)=>{_0x162cb9===_0xa9b9c5['target']&&(this['focusCycler']['focusFirst'](),_0x494848());}),this['keystrokes']['set']('esc',(_0x5541e6,_0x162581)=>{_0x162cb9!==_0x5541e6['target']&&(this['focus'](),_0x162581());});}}class mn extends _0x298b0c{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[Xe,_0x3979,_0x361d9e,_0xbd556d,_0x1f3b9a];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x398a78){super(_0x398a78),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x28d7b5=this['editor']['config'];_0x28d7b5['define']('trackChanges.SuggestionThreadView',fn),_0x28d7b5['define']('trackChanges.SuggestionView',gn),_0x28d7b5['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x28d7b5['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x35209b,_0x39fdfa){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x589b87,_0x4b8067]of this['_handleControllerBuffer']){const _0x15efb0=this['_suggestionToController']['has'](_0x589b87);_0x15efb0||_0x4b8067?_0x15efb0&&_0x4b8067&&this['_destroyController'](_0x589b87):this['_initializeController'](_0x589b87);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x1f3b9a)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x35209b,_0x39fdfa);}['init'](){const _0x44973e=this['editor'],_0x16c755=_0x44973e['plugins']['get'](Xe),_0x4e2912=_0x44973e['plugins']['get'](_0xbd556d),_0x58b9ac=_0x44973e['plugins']['get'](_0x1f3b9a),_0x4de87b=_0x44973e['plugins']['get'](_0x361d9e);this['_addUIComponentsToFactory'](),_0x58b9ac['addSourceCollector'](()=>{const _0x1cce0e=[];for(const [_0x3da3c3,_0x29ac66]of Array['from'](this['_suggestionToController'])){const _0x28096d=_0x3da3c3['getAllAdjacentSuggestions'](),_0x4fd3f5=[];for(const _0x6dedfe of _0x28096d){if(!_0x6dedfe['isInContent'])continue;if(_0x6dedfe['isMultiRange']){_0x4fd3f5['push'](..._0x6dedfe['getRanges']());continue;}const _0x4b3c21=_0x6dedfe['getFirstRange']();if(_0x4fd3f5['length']>0x0){const _0x2dc330=_0x4fd3f5[0x0]['getJoined'](_0x4b3c21);if(_0x2dc330){_0x4fd3f5[0x0]=_0x2dc330;continue;}}_0x4fd3f5['push'](_0x4b3c21);}_0x1cce0e['push']([_0x29ac66['view'],_0x4fd3f5]);}return _0x1cce0e;}),this['listenTo'](_0x16c755,'suggestionLoaded',(_0x447b10,_0x364e99)=>{this['listenTo'](_0x364e99,'change:previous',(_0x466278,_0x50789f,_0x1fab6a,_0x351b33)=>{_0x364e99['isInContent']&&(null==_0x1fab6a?(this['_updateController'](_0x351b33['head']),this['_handleSuggestionControllerDelayed'](_0x364e99,!0x1)):(this['_updateController'](_0x1fab6a['head']),null==_0x351b33&&this['_handleSuggestionControllerDelayed'](_0x364e99,!0x0)));}),null!==_0x364e99['previous']?this['_updateController'](_0x364e99['head']):this['_handleSuggestionControllerDelayed'](_0x364e99,!0x1);}),this['listenTo'](_0x16c755,'suggestionUnloaded',(_0x5c1821,_0x3597cd,_0x27e1ca)=>{this['stopListening'](_0x3597cd,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3597cd),this['_suggestionToController']['has'](_0x3597cd)&&this['_destroyController'](_0x3597cd),_0x27e1ca&&this['_updateController'](_0x27e1ca['head']);}),this['listenTo'](_0x16c755,'suggestionChanged',(_0x32c449,_0x5638ae)=>{this['_updateController'](_0x5638ae);}),this['listenTo'](_0x4e2912,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4de87b,'addComment',(_0x239a44,{threadId:_0x507798,isFromAdapter:_0x4679ea})=>{if(_0x4679ea||!_0x16c755['hasSuggestion'](_0x507798))return;const _0x4ff63e=_0x16c755['getSuggestion'](_0x507798);this['_suggestionToController']['get'](_0x4ff63e)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5aed31=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5cbd7a;for(const _0xe6324a in _0x5aed31){const _0x2d7486=_0xe6324a,_0x1fabb3=_0x5aed31[_0x2d7486];if('trackChangesLicenseKeyValid'==_0x1fabb3||'trackChangesLicenseKeyInvalid'==_0x1fabb3||'trackChangesLicenseKeyExpired'==_0x1fabb3||'trackChangesLicenseKeyDomainLimit'==_0x1fabb3||'trackChangesLicenseKeyNotAllowed'==_0x1fabb3||'trackChangesLicenseKeyEvaluationLimit'==_0x1fabb3||'trackChangesLicenseKeyUsageLimit'==_0x1fabb3){delete _0x5aed31[_0x2d7486],_0x5cbd7a=_0x1fabb3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5cbd7a&&_0x5aed31['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5cbd7a&&_0x5aed31['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5cbd7a&&_0x5aed31['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5cbd7a&&_0x5aed31['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5cbd7a&&_0x5aed31['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5cbd7a&&_0x5aed31['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x459cbf){const _0x9e8ad6=this['_suggestionToController']['get'](_0x459cbf);if(!_0x9e8ad6)return null;return this['editor']['plugins']['get'](_0xbd556d)['getByInnerView'](_0x9e8ad6['view'])||null;}['getSuggestionForAnnotation'](_0x1a10af){const _0x5979c7=this['_viewToController']['get'](_0x1a10af['innerView']);return _0x5979c7?_0x5979c7['model']:null;}['_refreshActiveMarkers'](){const _0x1bdc0e=this['editor']['plugins']['get'](_0xbd556d),_0x3b91f6=this['editor']['plugins']['get'](Xe),_0x4d1cf7=Array['from'](_0x1bdc0e['activeAnnotations'],_0x58366e=>_0x58366e['innerView'])['filter'](_0x215fba=>this['_viewToController']['has'](_0x215fba)),_0x50d276=[];for(const _0x7a606a of _0x4d1cf7){const _0x107965=this['_viewToController']['get'](_0x7a606a)['model']['getAllAdjacentSuggestions']();_0x50d276['push'](..._0x107965['reduce']((_0x16c730,_0x324b23)=>[..._0x16c730,..._0x324b23['getMarkerNames']()],[]));}_0x3b91f6['activeMarkers']=_0x50d276;}['_addUIComponentsToFactory'](){const _0x592500=this['editor'],_0x1787d0=_0x592500['locale'],_0x52b5b0=At(_0x1787d0,'Track\x20changes'),_0x176d9b=new _0x597581([{'type':'switchbutton','model':new _0xda41c0({'withText':!0x0,'isToggleable':!0x0,'label':_0x52b5b0,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xda41c0({'withText':!0x0,'label':At(_0x1787d0,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xda41c0({'withText':!0x0,'label':At(_0x1787d0,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xda41c0({'withText':!0x0,'label':At(_0x1787d0,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xda41c0({'withText':!0x0,'label':At(_0x1787d0,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x592500['plugins']['has']('TrackChangesPreview')&&_0x176d9b['addMany']([{'type':'separator'},{'type':'button','model':new _0xda41c0({'withText':!0x0,'label':At(_0x1787d0,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x286d13 of _0x176d9b)if(En(_0x286d13)){const _0x3c619a=_0x592500['commands']['get'](_0x286d13['model']['commandName']);_0x286d13['model']['bind']('isOn','isEnabled')['to'](_0x3c619a,'value','isEnabled');}_0x592500['ui']['componentFactory']['add']('trackChanges',_0x64f1f4=>this['_createToolbarButton'](_0x64f1f4,_0x176d9b,_0x52b5b0)),_0x592500['ui']['componentFactory']['add']('menuBar:trackChanges',_0x357c55=>this['_createMenuBarMenu'](_0x357c55,_0x176d9b,_0x52b5b0));}['_createToolbarButton'](_0x4f4d54,_0x5b90c2,_0x2d016e){const _0x1dc3bd=_0x3b3de9(_0x4f4d54,_0x40fe71),_0x2e1b3e=this['editor']['commands']['get']('trackChanges');_0x1dc3bd['buttonView']['set']({'tooltip':_0x2d016e,'label':_0x2d016e,'icon':_0x54b9af}),_0x1dc3bd['buttonView']['bind']('isOn')['to'](_0x2e1b3e,'value'),_0x1dc3bd['buttonView']['on']('execute',()=>{_0x2e1b3e['execute'](),this['editor']['editing']['view']['focus']();}),_0x30e6c9(_0x1dc3bd,_0x5b90c2,{'role':'menu'});const _0x36c1ef=[];for(const _0x10dd59 of _0x5b90c2)En(_0x10dd59)&&_0x36c1ef['push'](this['editor']['commands']['get'](_0x10dd59['model']['commandName']));const _0x5b31ea=_0x1dc3bd['buttonView'];return _0x5b31ea['actionView']['unbind']('isEnabled'),_0x5b31ea['arrowView']['unbind']('isEnabled'),_0x5b31ea['actionView']['bind']('isEnabled')['to'](_0x2e1b3e,'isEnabled'),_0x5b31ea['arrowView']['bind']('isEnabled')['toMany'](_0x36c1ef,'isEnabled',(..._0x480dc8)=>_0x480dc8['some'](_0x3c9895=>_0x3c9895)),_0x1dc3bd['on']('execute',_0x112249=>{this['editor']['execute'](_0x112249['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1dc3bd;}['_createMenuBarMenu'](_0x8cfa0a,_0x566a8c,_0x4f1401){const _0x59fa3a=new _0x4cb31a(_0x8cfa0a),_0x5a5fd7=this['editor']['commands']['get']('trackChanges');_0x59fa3a['buttonView']['set']({'label':_0x4f1401,'icon':_0x54b9af});const _0x100625=new _0x152307(_0x8cfa0a);for(const _0x394daa of _0x566a8c){if('separator'==_0x394daa['type']){_0x100625['items']['add'](new _0x1d1410(_0x8cfa0a));continue;}const _0x193a43=new _0xb0da5(_0x8cfa0a,_0x59fa3a),_0x502718=new _0x5be5f1(_0x8cfa0a),_0x420d75=_0x394daa['model'];_0x502718['bind'](...Object['keys'](_0x420d75))['to'](_0x420d75),_0x502718['delegate']('execute')['to'](_0x59fa3a),_0x502718['on']('execute',()=>{this['editor']['execute'](_0x420d75['commandName']),this['editor']['editing']['view']['focus']();}),_0x193a43['children']['add'](_0x502718),_0x100625['items']['add'](_0x193a43);}return _0x59fa3a['bind']('isEnabled')['to'](_0x5a5fd7,'isEnabled'),_0x59fa3a['panelView']['children']['add'](_0x100625),_0x59fa3a;}['_initializeController'](_0x168a13){const _0x1b9c53=this['editor'],_0x5944bf=_0x1b9c53['config'],_0x4cc3e9=_0x1b9c53['plugins']['get'](_0xbd556d),_0x58b4ae=_0x1b9c53['plugins']['get'](_0x361d9e),_0x1f607f=_0x1b9c53['plugins']['get'](_0x1f3b9a),_0x3f32a1=_0x1b9c53['plugins']['get'](_0x3979)['me'],_0x4df0d1=_0x5944bf['get']('trackChanges')['SuggestionThreadView'],_0x558128=_0x5944bf['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x51be17,CommentThreadInputView:_0x398818}=_0x1b9c53['plugins']['get']('CommentsUI');let _0x367dd3,_0x4b8dac,_0x253a65;this['_annotationViews']['has'](_0x168a13['id'])?(_0x4b8dac=this['_annotationViews']['get'](_0x168a13['id']),_0x367dd3=_0x4b8dac['mainView']):(_0x367dd3=new _0x4df0d1(_0x1b9c53['locale'],_0x168a13,_0x3f32a1,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5944bf['get']('comments.editorConfig'),'licenseKey':_0x5944bf['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5944bf['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5944bf['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5944bf['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x27106d(_0x5944bf['get']('locale'),_0x1b9c53['locale']),'CommentView':_0x5944bf['get']('comments')['CommentView'],'CommentsListView':_0x51be17,'CommentThreadInputView':_0x398818,'SuggestionView':_0x558128}),_0x367dd3['suggestionView']['acceptButton']['on']('execute',()=>{_0x1b9c53['editing']['view']['focus']();}),_0x367dd3['suggestionView']['discardButton']['on']('execute',()=>{_0x1b9c53['editing']['view']['focus']();}),_0x4b8dac=_0x4cc3e9['createAnnotationView'](this['editor']['locale'],_0x367dd3),_0x4b8dac['bind']('isDirty')['to'](_0x367dd3,'isDirty'),_0x4b8dac['bind']('length')['to'](_0x367dd3),_0x4b8dac['bind']('type')['to'](_0x367dd3,'type',_0x54b4d0=>'suggestion-'+_0x54b4d0),_0x367dd3['on']('escape',()=>{_0x253a65['fire']('escape');}),this['_annotationViews']['set'](_0x168a13['id'],_0x4b8dac));const _0x4809aa=_0x58b4ae['createCommentThreadController'](_0x168a13['commentThread'],_0x367dd3),_0x1adb24=new hn(_0x1b9c53,_0x168a13,_0x367dd3,_0x4809aa),_0x37541c=_0x168a13['getAllAdjacentSuggestions']()['filter'](_0xe2eac2=>_0xe2eac2['isInContent']);_0x367dd3['descriptionParts']=_0x1b9c53['plugins']['get'](Xe)['descriptionFactory']['getDescriptions'](_0x37541c),this['_suggestionToController']['set'](_0x168a13,_0x1adb24),this['_viewToController']['set'](_0x367dd3,_0x1adb24);const _0x4f945a=()=>{const _0x366d37=[],_0x5b18c8=_0x168a13['getAllAdjacentSuggestions']()['filter'](_0x53b53f=>_0x53b53f['isInContent']);for(const _0xc4e413 of _0x5b18c8)_0x366d37['push'](..._0xc4e413['getMarkers']());return _0x29aa0f(_0x1b9c53['editing'],_0x366d37);};_0x253a65=_0x4cc3e9['createAnnotation']({'view':_0x4b8dac,'target':_0x4f945a,'type':()=>'suggestion-'+_0x1adb24['view']['type'],'isVisible':!!_0x4f945a()}),_0x58b4ae['_bindAnnotationToEditors'](_0x367dd3,_0x253a65),_0x4cc3e9['add'](_0x253a65),_0x1f607f['registerAnnotation'](_0x253a65);}['_destroyController'](_0x8e62bf){const _0x55719c=this['editor']['plugins']['get'](_0x361d9e),_0x59544d=this['editor']['plugins']['get'](_0xbd556d),_0x152af5=this['_suggestionToController']['get'](_0x8e62bf),_0x7a4539=_0x152af5['view'],_0x20b0b8=_0x59544d['getByInnerView'](_0x7a4539);_0x55719c['_unbindEditors'](_0x7a4539),_0x20b0b8&&_0x59544d['remove'](_0x20b0b8),this['_suggestionToController']['delete'](_0x8e62bf),this['_viewToController']['delete'](_0x7a4539),_0x152af5['destroy']();}['_updateController'](_0x59f670){if(!_0x59f670['isInContent']||!this['_suggestionToController']['has'](_0x59f670))return;const _0x3b1b45=this['editor']['plugins']['get'](Xe),_0x35ee07=this['_suggestionToController']['get'](_0x59f670),_0x45f7fc=_0x59f670['getAllAdjacentSuggestions']();_0x35ee07['view']['descriptionParts']=_0x3b1b45['descriptionFactory']['getDescriptions'](_0x45f7fc);}['destroy'](){for(const _0x3c6288 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3c6288);for(const _0x167b86 of this['_annotationViews']['values']())_0x167b86['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function En(_0x9133f5){return'model'in _0x9133f5;}class Tn extends _0x298b0c{static get['requires'](){return[Xe,mn,_0x17dfb2];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5424cd){this['editor']['plugins']['get'](Xe)['adapter']=_0x5424cd;}get['adapter'](){return this['editor']['plugins']['get'](Xe)['adapter'];}['addSuggestion'](_0x27422e){return this['editor']['plugins']['get'](Xe)['addSuggestionData'](_0x27422e);}['getSuggestions']({skipNotAttached:_0xb81bbb=!0x1,toJSON:_0x7f2ccb=!0x1}={}){return this['editor']['plugins']['get'](Xe)['getSuggestions']({'skipNotAttached':_0xb81bbb,'toJSON':_0x7f2ccb});}['getSuggestion'](_0x3112fc){return this['editor']['plugins']['get'](Xe)['getSuggestion'](_0x3112fc);}}const _n=['Pagination'];class pn extends _0x298b0c{static get['requires'](){return[Xe];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3c2b57=this['editor'];if(_0x3c2b57['config']['define']('trackChangesData.editorCreator',_0x41e2aa=>{const _0x40973c=_0x3c2b57['model']['document']['getRootNames']()['reduce']((_0x3bc1e2,_0x35b6de)=>(_0x3bc1e2[_0x35b6de]='',_0x3bc1e2),{});return _0x3c2b57['constructor']['create'](_0x40973c,_0x41e2aa);}),'function'!=typeof _0x3c2b57['config']['get']('trackChangesData')['editorCreator'])throw new _0x520897('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2a8d83){return bn(this['editor'],!0x0,_0x2a8d83);}['getDataWithDiscardedSuggestions'](_0x360482){return bn(this['editor'],!0x1,_0x360482);}}class Ln extends _0x298b0c{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x52b8bc){function _0x3dd257(_0x153180){return _0x153180['map'](_0xcce42b=>String['fromCharCode'](_0xcce42b))['join']('');}super(_0x52b8bc),this['result']='end',_0x52b8bc[_0x3dd257([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3dd257([0x76,0x69,0x65,0x77])][_0x3dd257([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3dd257([0x61,0x75,0x74,0x6f]),_0x52b8bc[_0x3dd257([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3dd257([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3dd257([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3dd257([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3dd257([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 In(_0x364ff9){return void 0x0!==_0x364ff9['getRootsAttributes'];}async function bn(_0xfe1935,_0x49ed55,_0x3a91c1){const _0x573919=_0x15eae0(_0xfe1935,_n);if(_0x573919['plugins']['push'](Xe,Ln),In(_0xfe1935)){_0x573919['roots']=Object['create'](null);for(const _0x28f225 of _0xfe1935['model']['document']['getRootNames']())_0x573919['roots'][_0x28f225]={'modelAttributes':_0xfe1935['getRootAttributes'](_0x28f225)};}const _0x12d341=document['createDocumentFragment'](),_0x459d43=_0xfe1935['config']['get']('trackChangesData')['editorCreator'],_0x47111d=await _0x459d43(_0x573919,()=>function(_0x536f06){const _0x593b5b=document['createElement']('div');return _0x536f06['appendChild'](_0x593b5b),_0x593b5b;}(_0x12d341));!function(_0x4befd4,_0x2edd7e){const _0x4248c3=_0x4befd4['model']['document']['getRootNames']()['reduce']((_0x27904c,_0x40fc54)=>(_0x27904c[_0x40fc54]=_0x4befd4['data']['get']({'rootName':_0x40fc54}),_0x27904c),{}),_0x38e39d=_0x4befd4['plugins']['get']('Users')['users']['map'](_0x500eab=>({'id':_0x500eab['id'],'name':_0x500eab['name']})),_0x3ded22=_0x4befd4['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x41ad93=_0x4befd4['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x471fe7=_0x2edd7e['plugins']['get']('Users'),_0x3e2789=_0x2edd7e['plugins']['get']('TrackChangesEditing'),_0x3dc660=_0x2edd7e['plugins']['get']('CommentsRepository');for(const _0x200946 of _0x3dc660['getCommentThreads']())_0x200946['remove']();for(const _0x56e427 of _0x38e39d)_0x471fe7['getUser'](_0x56e427['id'])||_0x471fe7['addUser'](_0x56e427);_0x471fe7['me']||_0x471fe7['useAnonymousUser']();for(const _0x45e139 of _0x41ad93)_0x3dc660['addCommentThread'](_0x45e139);for(const _0x5255ca of _0x3ded22)_0x3e2789['addSuggestionData'](_0x5255ca);_0x2edd7e['data']['set'](_0x4248c3);}(_0xfe1935,_0x47111d),_0x47111d['execute'](_0x49ed55?'acceptAllSuggestions':'discardAllSuggestions');const _0x336412=In(_0x47111d)?_0x47111d['getFullData'](_0x3a91c1):_0x47111d['data']['get'](_0x3a91c1);return await _0x47111d['destroy'](),_0x336412;}class An extends _0x3a546b{['options'];constructor(_0x31a3f3,_0x6f13a){super(_0x31a3f3),this['options']=_0x6f13a,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x1180ba,_0x3739d5){if(!this['element'])return;const _0x60c11f=[];for(const [_0x520179,_0x52d42d]of _0x1180ba){const _0x1a0c44=document['createElement']('div');_0x1a0c44['setAttribute']('data-ck-root-name',_0x520179),_0x1a0c44['className']=_0x52d42d['classes']+'\x20ck-track-changes-preview__root-container',_0x1a0c44['innerHTML']=_0x52d42d['content'],_0x60c11f['push'](_0x1a0c44);}_0x3739d5(this['element'],_0x60c11f),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class kn extends _0x4bf56b{constructor(_0x23eb87){super(_0x23eb87),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4e84a6=this['editor'],_0x394c69=_0x4e84a6['locale'],_0x28d6ec=_0x4e84a6['plugins']['get']('Dialog');let _0xa3a88d;const _0x54b9ea=function(_0x4108a6){const _0x2cbe84={};if('editables'in _0x4108a6['ui']['view']){for(const [_0x2baa11,_0x28e7e9]of Object['entries'](_0x4108a6['ui']['view']['editables']))_0x2cbe84[_0x2baa11]=_0x28e7e9['element'];}else _0x2cbe84[_0x4108a6['model']['document']['getRootNames']()[0x0]]=_0x4108a6['ui']['view']['editable']['element'];return _0x2cbe84;}(_0x4e84a6),_0x5ddaba=function(_0xd5bda7){let _0xbdd06a=0x0;for(const _0x2e16bf of Object['values'](_0xd5bda7))_0xbdd06a=Math['max'](_0xbdd06a,_0x2e16bf['getBoundingClientRect']()['width']);let _0x3a2de6=0x0;for(const _0x51f300 of Object['values'](_0xd5bda7))_0x3a2de6+=_0x51f300['getBoundingClientRect']()['height'];const _0x30cff9=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2c137a=Math['min'](_0x3a2de6,_0x30cff9);return{'width':_0xbdd06a,'height':_0x2c137a};}(_0x54b9ea);_0x28d6ec['show']({'id':'finalContentPreview','title':At(_0x394c69,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new An(_0x394c69,{'dialogRects':_0x5ddaba}),'onHide':()=>{_0xa3a88d['detachFromDom']();},'onShow':()=>{_0x4e84a6['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x24ce62=>{const _0x239ebc=this['_standarizeRootsData'](_0x24ce62,_0x4e84a6,_0x54b9ea);_0x28d6ec['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x239ebc,_0x4e84a6['config']['get']('trackChanges.preview.renderFunction'));}),_0xa3a88d=new _0x1f0d88(_0x394c69,[_0x28d6ec['view']]),_0xa3a88d['attachToDom'](),_0xa3a88d['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4e84a6['once']('destroy',()=>{_0xa3a88d['detachFromDom']();});const _0x414900=_0x28d6ec['view']['headerView']['class'];_0x28d6ec['view']['headerView']['class']=_0x414900?_0x414900+'\x20ck-reset_all':'ck-reset_all',_0x28d6ec['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x28d6ec['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x29fa0e=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x50c68c=_0x29fa0e['previewMode'],_0x3208ed={};if('$labels'===_0x50c68c){for(const _0x2f70fb of _0x29fa0e['getMergeFieldsIds']())_0x3208ed[_0x2f70fb]=_0x29fa0e['getLabel'](_0x2f70fb)||_0x2f70fb;}else{const _0x59800a='$defaultValues'===_0x50c68c?_0x29fa0e['getDefaultValues']():_0x29fa0e['getDataSetValues'](_0x50c68c,!0x0);for(const _0x43ada7 of Object['entries'](_0x59800a)){const [_0x5e1cd1,_0x3d5879]=_0x43ada7;_0x3208ed[_0x5e1cd1]=null!==_0x3d5879?_0x3d5879:_0x29fa0e['getLabel'](_0x5e1cd1)||_0x5e1cd1;}}return{'mergeFieldsData':_0x3208ed};}['_standarizeRootsData'](_0x44e2f5,_0x3f5573,_0x366dd5){let _0x136700;if('string'==typeof _0x44e2f5){const _0x484b00=_0x3f5573['model']['document']['getRootNames']()[0x0];_0x136700={[_0x484b00]:_0x44e2f5};}else _0x136700=_0x44e2f5;const _0x205109=this['_fixMediaEmbeds'](_0x136700,_0x3f5573),_0x16df65=function(_0x1f6784,_0xa4de56){for(const [_0x4db550,_0x1d8cd1]of _0x1f6784)_0x1d8cd1['classes']=_0xa4de56[_0x4db550]['classList']['value']['replace']('ck-focused','');return _0x1f6784;}(this['_sortRoots'](_0x3f5573)['reduce']((_0x1849dc,_0x12da04)=>(_0x1849dc['push']([_0x12da04,{'content':_0x205109[_0x12da04],'classes':''}]),_0x1849dc),[]),_0x366dd5);return _0x16df65;}['_fixMediaEmbeds'](_0x5886ed,_0x16310f){if(!_0x16310f['plugins']['has']('MediaEmbedEditing'))return _0x5886ed;const _0x526f4e=_0x16310f['plugins']['get']('MediaEmbedEditing');for(const [_0x5bb3f5,_0x3a3529]of Object['entries'](_0x5886ed)){const _0x216087=document['createElement']('div');_0x216087['innerHTML']=_0x3a3529,(_0x216087['querySelectorAll']('figure.media')['forEach'](_0x57f08d=>{const _0x2857f8=_0x57f08d['querySelector']('oembed');if(_0x2857f8){const _0x60391e=_0x2857f8['getAttribute']('url');if(_0x60391e){const _0x58ea7e=_0x526f4e['registry']['getMediaViewElement'](new et(_0x16310f['editing']['view']['document']),_0x60391e,{'elementName':'','renderForEditingView':!0x0}),_0x346a48=document['createElement']('div');_0x346a48['classList']['add']('ck-media__wrapper'),_0x58ea7e['render'](_0x346a48,_0x16310f['editing']['view']['domConverter']),_0x2857f8['replaceWith'](_0x346a48);}}}),_0x5886ed[_0x5bb3f5]=_0x216087['innerHTML']);}return _0x5886ed;}['_sortRoots'](_0x533d30){if(!function(_0x5cec83){return void 0x0!==_0x5cec83['getRootsAttributes'];}(_0x533d30))return _0x533d30['model']['document']['getRootNames']();const _0x16c1c4=[],_0x122cea=new Map();for(const _0x4bf037 of _0x533d30['model']['document']['getRootNames']()){const _0x38ff7d=_0x533d30['editing']['view']['getDomRoot'](_0x4bf037)['getClientRects']()['item'](0x0);_0x16c1c4['push'](_0x4bf037),_0x122cea['set'](_0x4bf037,_0x38ff7d);}return _0x16c1c4['sort']((_0xd1b3c6,_0x1a58a1)=>{const _0x324be5=_0x122cea['get'](_0xd1b3c6),_0x28b527=_0x122cea['get'](_0x1a58a1);return _0x324be5['y']-_0x28b527['y']||_0x324be5['x']-_0x28b527['x'];}),_0x16c1c4;}}class Cn extends _0x298b0c{static get['requires'](){return[pn,_0x44f644];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x32db6a){super(_0x32db6a),_0x32db6a['commands']['add']('previewFinalContent',new kn(this['editor'])),_0x32db6a['config']['define']('trackChanges.preview.renderFunction',(_0x3bcdf1,_0x36ff7b)=>{for(const _0x356de2 of _0x36ff7b)_0x3bcdf1['appendChild'](_0x356de2);});}}export{dt as AcceptSuggestionCommand,dn as BaseSuggestionThreadView,ft as DiscardSuggestionCommand,Lt as ExecuteOnAllSuggestionsCommand,It as ExecuteOnSelectedSuggestionsCommand,kn as PreviewFinalContentCommand,bt as Suggestion,kt as SuggestionDescriptionFactory,fn as SuggestionThreadView,gn as SuggestionView,Tn as TrackChanges,ht as TrackChangesCommand,pn as TrackChangesData,Ln as TrackChangesDataGetter,Xe as TrackChangesEditing,Cn as TrackChangesPreview,mn as TrackChangesUI};
23
+ import{Command as _0x2280b1,Plugin as _0x3c3277,PendingActions as _0x17008f}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0xeecc44,Annotations as _0xa2cb68,EditorAnnotations as _0x12f336,Comments as _0x41298b}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0x58c399,ObservableMixin as _0x464ae4,uid as _0x19019c,priorities as _0xb7cf38,insertToPriorityArray as _0x180b0a,logWarning as _0x32370b,getEnvKeystrokeText as _0x568c91,FocusTracker as _0x8e5424,KeystrokeHandler as _0x9c836,Collection as _0x511ffa}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x15ebb5,IconCancel as _0x5385aa,IconTrackChanges as _0xe4a7ea}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x44b977,View as _0x3a1821,ViewCollection as _0x9c0bc,FocusCycler as _0x406ced,UIModel as _0x53482d,createDropdown as _0xbe259c,SplitButtonView as _0x413e1b,addListToDropdown as _0x4f366d,MenuBarMenuView as _0x2bbc4a,MenuBarMenuListView as _0x39190f,ListSeparatorView as _0xca665c,MenuBarMenuListItemView as _0x4de169,MenuBarMenuListItemButtonView as _0x3f5ee5,BodyCollection as _0x2bfd40,Dialog as _0x5e8bf5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x2695e1,SuggestionsConversion as _0x27960a,Users as _0x255ceb,DocumentCompare as _0x4b6a3c,fixElementSuggestionRange as _0x5074fc,hashObject as _0x45797d,surroundingMarkersDetector as _0x344546,FOCUS_ANNOTATION_KEYSTROKE as _0x11000a,AriaDescriptionView as _0xfc786c,setupThreadKeyboardNavigation as _0x56e32f,trimHtml as _0x2a6db8,UserView as _0x4c6546,LateFocusButtonView as _0x2312ed,getDateTimeFormatter as _0x5ec8a3,getAllMarkersDomElementsSorted as _0x4070b8,sanitizeEditorConfig as _0x19628d}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x15d00b,ModelLiveRange as _0x2b4b27,ModelLivePosition as tt,ViewDowncastWriter as et}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as nt,set as it,isEqual as st,unset as rt,omit as ot}from'es-toolkit/compat';import{Delete as at,Input as ct}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as lt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as ut}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class ht extends _0x2280b1{['_enabledCommands'];constructor(_0x39422c,_0x1902cd){super(_0x39422c),this['_enabledCommands']=_0x1902cd,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 _0x6b2e2d of this['editor']['commands']['commands']())_0x6b2e2d['affectsData']&&!this['_enabledCommands']['has'](_0x6b2e2d)&&_0x6b2e2d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3b2aa2 of this['editor']['commands']['commands']())_0x3b2aa2['affectsData']&&!this['_enabledCommands']['has'](_0x3b2aa2)&&_0x3b2aa2['clearForceDisabled']('TrackChangesCommand');}}class dt extends _0x2280b1{['_suggestions'];constructor(_0xf64134,_0x3814a1){super(_0xf64134),this['_suggestions']=_0x3814a1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x52e58a){const _0xb46be3=this['_suggestions']['get'](_0x52e58a);if(!_0xb46be3)throw new _0x58c399('track-changes-accept-suggestion-not-found',this);const _0x4375b3=_0xb46be3['getRanges']();this['editor']['model']['canEditAt'](_0x4375b3)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xb46be3);}}class ft extends _0x2280b1{['_suggestions'];constructor(_0x35a962,_0x105878){super(_0x35a962),this['_suggestions']=_0x105878,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1820ad){const _0x177c09=this['_suggestions']['get'](_0x1820ad);if(!_0x177c09)throw new _0x58c399('track-changes-discard-suggestion-not-found',this);const _0xa0f454=_0x177c09['getRanges']();this['editor']['model']['canEditAt'](_0xa0f454)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x177c09);}}function gt(_0x588565,_0x306133){let _0x41641f='';return _0x41641f+=_0x588565['split']('*')['map']((_0x117265,_0x3b9381)=>_0x3b9381%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+mt(_0x117265)+'</span>':mt(_0x117265))['join'](''),_0x306133&&(_0x41641f+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x306133['value']+'\x22\x20title=\x22'+_0x306133['title']+'\x22></span>'),_0x41641f;}function mt(_0x260bce){const _0x24afc4=document['createElement']('span');return _0x24afc4['innerText']=_0x260bce,_0x24afc4['innerHTML'];}function Et(_0x1879d0){return _0x1879d0['sort']((_0x394192,_0x5629f2)=>'attribute'===_0x394192['type']&&'attribute'!==_0x5629f2['type']?-0x1:'attribute'!==_0x394192['type']&&'attribute'===_0x5629f2['type']?0x1:'deletion'==_0x394192['type']&&'deletion'!=_0x5629f2['type']?-0x1:'deletion'!=_0x394192['type']&&'deletion'==_0x5629f2['type']?0x1:0x0);}function Tt(_0x3bb89c,_0x2dabf8){let _0x1ac1b8,_0x3affac=0x0;const _0x4b5030=[],_0x5c7a9d=_0x2dabf8['schema'];for(;_0x3affac<_0x3bb89c['length'];){const _0x2216e4=_0x3bb89c[_0x3affac],_0x5da523=_0x3bb89c[_0x3affac+0x1];_0x1ac1b8||(_0x1ac1b8=_0x2dabf8['createPositionBefore'](_0x2216e4)),_t(_0x2dabf8,_0x2216e4,_0x5da523)||(_0x4b5030['push'](_0x2dabf8['createRange'](_0x1ac1b8,_0x5c7a9d['isObject'](_0x2216e4)?_0x2dabf8['createPositionAfter'](_0x2216e4):_0x2dabf8['createPositionAt'](_0x2216e4,'end'))),_0x1ac1b8=null),_0x3affac++;}return _0x4b5030;}function _t(_0x619658,_0x38b736,_0x395d7a){if(!_0x395d7a)return!0x1;const _0x45f59e=_0x619658['createPositionAfter'](_0x38b736),_0x465b9b=_0x619658['createPositionBefore'](_0x395d7a);return _0x45f59e['isTouching'](_0x465b9b);}function pt(_0x283edc,_0x13c843,_0x171047){for(;_0x171047['length'];){const _0x55dd0e=_0x171047['splice'](0x0,0x64);_0x283edc['change'](()=>{for(const _0x39cf54 of _0x55dd0e)_0x39cf54['isInContent']&&_0x13c843['execute'](_0x39cf54['id']);});}}class Lt extends _0x2280b1{['_command'];['_suggestions'];constructor(_0x591cba,_0x496e20,_0x812647){super(_0x591cba),this['_command']=_0x496e20,this['_suggestions']=_0x812647,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xac9d43=Array['from'](this['_suggestions']['values']())['some'](_0xfec1fb=>_0xfec1fb['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0xac9d43;}['execute'](){const _0x106c51=Et(Array['from'](this['_suggestions']['values']()));for(const _0xab626c of _0x106c51){const _0x6ab1d9=_0xab626c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x6ab1d9))return;}pt(this['editor']['model'],this['_command'],_0x106c51);}}class It extends _0x2280b1{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x56b082,_0x3740fa,_0x354381){super(_0x56b082),this['_command']=_0x3740fa,this['_suggestions']=_0x354381,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3fe090=this['editor']['model']['document']['selection'],_0x3fbeb8=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x36eeeb,_0x1a6e4c){const _0x2a29fb=Array['from'](_0x36eeeb['getRanges']()),_0x3dddd8=new Set();for(const _0x5e4d5f of _0x1a6e4c)if(_0x5e4d5f['isInContent']){for(const _0x37348d of _0x2a29fb)for(const _0x5290f2 of _0x5e4d5f['getRanges']())(_0x37348d['isIntersecting'](_0x5290f2)||_0x36eeeb['isCollapsed']&&!_0x5e4d5f['isMultiRange']&&_0x5e4d5f['next']&&_0x5290f2['end']['isTouching'](_0x37348d['start']))&&_0x3dddd8['add'](_0x5e4d5f);}return _0x3dddd8;}(_0x3fe090,_0x3fbeb8),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2b04d7=Et(Array['from'](this['_selectedSuggestions']));for(const _0x1ddb8d of _0x2b04d7){const _0xaec88f=_0x1ddb8d['getRanges']();if(!this['editor']['model']['canEditAt'](_0xaec88f))return;}pt(this['editor']['model'],this['_command'],_0x2b04d7);}}class bt extends/* #__PURE__ -- @preserve */
24
+ _0x464ae4(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x5b82b5,_0x125fd2){super(),this['id']=_0x125fd2['id'],this['type']=_0x125fd2['type'],this['subType']=_0x125fd2['subType']||null,this['author']=_0x125fd2['author'],this['creator']=_0x125fd2['creator']||_0x125fd2['author'],this['isExternal']=Boolean(_0x125fd2['attributes']&&_0x125fd2['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x125fd2['originalSuggestionId']||null,this['_model']=_0x5b82b5,this['_onAccept']=_0x125fd2['onAccept'],this['_onDiscard']=_0x125fd2['onDiscard'],this['_onAttributesChange']=_0x125fd2['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x125fd2['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 _0x50d8c5=this;for(;_0x50d8c5['previous'];)_0x50d8c5=_0x50d8c5['previous'];return _0x50d8c5;}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'](_0x1fa370){this['_markerNames']['add'](_0x1fa370);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x29a6b8=>this['_model']['markers']['get'](_0x29a6b8))['filter'](_0x178e2d=>_0x178e2d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5454e5=>{for(const _0x46bb75 of this['getMarkers']())_0x5454e5['removeMarker'](_0x46bb75);}),this['_markerNames']['clear']();}['removeMarker'](_0x2fde31){this['_model']['change'](_0x3237c6=>{_0x3237c6['removeMarker'](_0x2fde31);}),this['_markerNames']['delete'](_0x2fde31);}['addRange'](_0x9c7c80){const _0x59dfaf='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+bt['getMultiRangeId']();this['addMarkerName'](_0x59dfaf),this['_model']['change'](_0xd8d1be=>{_0xd8d1be['addMarker'](_0x59dfaf,{'range':_0x9c7c80,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x370ca2){for(const _0x2c4db3 of this['getRanges']())if(_0x2c4db3['isIntersecting'](_0x370ca2))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x319f1e=>_0x319f1e['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x23d79c,_0x5379ad)=>[..._0x23d79c,..._0x5379ad['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x371def=this['getRanges']();if(0x1!=_0x371def['length'])return null;const _0x3f5caa=_0x371def[0x0],_0x4d5115=_0x3f5caa['start']['nodeAfter'],_0x48e1d5=_0x3f5caa['end']['nodeBefore'];return _0x4d5115 instanceof _0x15d00b?_0x4d5115!=_0x48e1d5?null:_0x4d5115: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 _0x4db331=[];let _0xd6944d=this['head'];for(;_0xd6944d;)_0x4db331['push'](_0xd6944d),_0xd6944d=_0xd6944d['next'];return _0x4db331;}['setAttribute'](_0x31e359,_0x49170e){const _0xfadcb6=nt(this['attributes']);it(_0xfadcb6,_0x31e359,_0x49170e),st(_0xfadcb6,this['attributes'])||(this['attributes']=_0xfadcb6,this['_onAttributesChange'](_0xfadcb6));}['removeAttribute'](_0x37641f){const _0x5e80a6=nt(this['attributes']);rt(_0x5e80a6,_0x37641f),st(_0x5e80a6,this['attributes'])||(this['attributes']=_0x5e80a6,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 _0x19019c()['substr'](0x1,0x5);}}function At(_0x48a7b8,_0x1bb7e4,_0x2573b1){const _0x3bb507=_0x48a7b8['t'],t=_0x48a7b8['t'];switch(_0x1bb7e4){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x2573b1);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2573b1);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2573b1);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2573b1);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2573b1);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',_0x2573b1);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2573b1);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2573b1);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2573b1);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2573b1);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2573b1);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2573b1);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2573b1);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2573b1);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2573b1);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2573b1);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2573b1);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2573b1);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2573b1);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2573b1);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2573b1);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2573b1);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2573b1);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2573b1);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2573b1);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'},_0x2573b1);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2573b1);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2573b1);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2573b1);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2573b1);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2573b1);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2573b1);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2573b1);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'},_0x2573b1);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2573b1);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2573b1);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2573b1);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2573b1);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x2573b1);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2573b1);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'},_0x2573b1);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_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x2573b1);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2573b1);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'},_0x2573b1);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2573b1);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'},_0x2573b1);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2573b1);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x2573b1);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x2573b1);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x2573b1);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2573b1);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'},_0x2573b1);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2573b1);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 _0x3bb507({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2573b1);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x3bb507({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2573b1);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2573b1);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'},_0x2573b1);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'},_0x2573b1);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'},_0x2573b1);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1bb7e4;}}class kt{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5bf251,_0x4c25d7){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5bf251,this['_locale']=_0x4c25d7;}['getDescriptions'](_0x5584b9){const _0x40f431=[],_0x2c2702=new Set(),_0x31c77c=new Set();for(let _0x566b86=0x0;_0x566b86<_0x5584b9['length'];_0x566b86++){const _0x393688=_0x5584b9[_0x566b86];if(!_0x393688['isInContent'])continue;const _0x42d30a=this['_handleCustomCallbackDescription'](_0x393688);if(_0x42d30a){if(null!=_0x393688['subType']){if(_0x2c2702['has'](_0x393688['subType']))continue;_0x2c2702['add'](_0x393688['subType']);}_0x40f431['push'](_0x42d30a);}else{if('attribute'==_0x393688['type']){const _0x2ba886=_0x393688['data']['key'];if(_0x31c77c['has'](_0x2ba886))continue;_0x31c77c['add'](_0x393688['data']['key']),_0x2ba886==Ke?this['_handleRenameSuggestionDescription'](_0x40f431,_0x393688):this['_handleAttributeSuggestionDescription'](_0x40f431,_0x393688);continue;}'insertion'!=_0x393688['type']&&'deletion'!=_0x393688['type']||this['_handleInsertRemoveSuggestionDescription'](_0x40f431,_0x393688,_0x5584b9[_0x566b86+0x1]);}}return this['_resolveDescriptionItems'](_0x40f431);}['registerDescriptionCallback'](_0x1a1b3a){this['_customCallbacks']['push'](_0x1a1b3a);}['registerElementLabel'](_0x34a1ba,_0x3746f7,_0x54facc=_0xb7cf38['normal']){'function'==typeof _0x34a1ba?_0x180b0a(this['_itemLabelsCallbacks'],{'matchingCallback':_0x34a1ba,'label':_0x3746f7,'priority':_0x54facc}):this['_itemLabels']['set'](_0x34a1ba,_0x3746f7);}['registerAttributeLabel'](_0x1338ab,_0x4045d9){this['_attributeLabels']['set'](_0x1338ab,_0x4045d9);}['getItemLabel'](_0x5f25d7,_0x4e38ff=0x1){let _0x3e0cbc;for(const _0x5e183e of this['_itemLabelsCallbacks'])if(_0x5e183e['matchingCallback'](_0x5f25d7)){_0x3e0cbc=_0x5e183e['label'];break;}return _0x3e0cbc||(_0x3e0cbc=this['_itemLabels']['get'](_0x5f25d7['name'])),_0x3e0cbc?_0x3e0cbc(_0x4e38ff):0x1!==_0x4e38ff?_0x4e38ff+'\x20'+_0x5f25d7['name']+'s':''+_0x5f25d7['name'];}['_addDescriptionItems'](_0x2f646e,_0x3f4ff3){const _0x4fed73=_0x3f4ff3['getFirstRange']()['getWalker'](),_0x3e1792='insertion'==_0x3f4ff3['type']?'add':'remove';for(const _0x3998ac of _0x4fed73){const _0x1b280a=_0x3998ac['item'],_0x260fb0=_0x2f646e[_0x2f646e['length']-0x1];if(_0x1b280a['is']('$textProxy'))_0x260fb0&&_0x260fb0['type']['indexOf']('Container')>-0x1&&_0x2f646e['pop'](),_0x260fb0&&'text'==_0x260fb0['type']?_0x260fb0[_0x3e1792]+=_0x1b280a['data']:_0x2f646e['push']({'type':'text','add':'add'==_0x3e1792?_0x1b280a['data']:'','remove':'remove'==_0x3e1792?_0x1b280a['data']:''});else{if(this['_schema']['isObject'](_0x1b280a)){const _0x5baa48=_0x1b280a;if(_0x260fb0&&_0x260fb0['type']['indexOf']('Container')>-0x1&&_0x2f646e['pop'](),'elementEnd'==_0x3998ac['type'])continue;_0x260fb0&&_0x260fb0['type']==_0x3e1792+'Object'&&_0x260fb0['element']['name']==_0x5baa48['name']?_0x260fb0['quantity']++:_0x2f646e['push']({'type':_0x3e1792+'Object','element':_0x5baa48,'quantity':0x1}),_0x4fed73['skip'](_0x3814b6=>!('elementEnd'==_0x3814b6['type']&&_0x3814b6['item']==_0x1b280a));}else{if(this['_schema']['checkChild'](_0x1b280a,'$text')||_0x1b280a['is']('element','softBreak')){const _0x2ab9c0=_0x1b280a;if('add'==_0x3e1792&&'elementStart'==_0x3998ac['type']||'remove'==_0x3e1792&&'elementEnd'==_0x3998ac['type'])continue;if(_0x260fb0&&-0x1==_0x260fb0['type']['indexOf']('Container')){'text'==_0x260fb0['type']&&(_0x260fb0[_0x3e1792]+='\x0a');continue;}let _0x355cb3;if(_0x355cb3='add'==_0x3e1792?_0x2ab9c0['nextSibling']&&!this['_schema']['isObject'](_0x2ab9c0['nextSibling'])?_0x2ab9c0['nextSibling']:null:_0x2ab9c0['previousSibling']&&!this['_schema']['isObject'](_0x2ab9c0['previousSibling'])?_0x2ab9c0['previousSibling']:null,_0x2ab9c0['isEmpty']||_0x355cb3&&_0x355cb3['isEmpty']){const _0x1c7509=_0x355cb3&&_0x355cb3['isEmpty']?_0x355cb3:_0x2ab9c0;_0x260fb0&&_0x260fb0['type']==_0x3e1792+'EmptyContainer'&&_0x260fb0['element']['name']==_0x1c7509['name']?_0x260fb0['quantity']++:_0x2f646e['push']({'type':_0x3e1792+'EmptyContainer','element':_0x1c7509,'quantity':0x1});}else _0x2f646e['push']({'type':_0x3e1792+'Container','element':_0x2ab9c0});}}}}}['_resolveDescriptionItems'](_0x1e2e57){const _0x456f96=this['_locale'],_0x46f3df=[],_0x2e478c=[],_0x2f8e39=[];for(const _0x42fb67 of _0x1e2e57)switch(_0x42fb67['type']){case'text':if(_0x42fb67['add']=_0x42fb67['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x42fb67['remove']=_0x42fb67['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x42fb67['add']&&''!=_0x42fb67['remove']){_0x46f3df['push']({'type':'replace','content':At(_0x456f96,'REPLACE_TEXT',['\x22'+_0x42fb67['remove']+'\x22','\x22'+_0x42fb67['add']+'\x22'])});continue;}if(null!=_0x42fb67['add']['match'](/^ +$/)){_0x46f3df['push']({'type':'insertion','content':At(_0x456f96,'*Insert:*\x20%0',At(_0x456f96,'ELEMENT_SPACE',_0x42fb67['add']['length']))});continue;}if(null!=_0x42fb67['remove']['match'](/^ +$/)){_0x46f3df['push']({'type':'deletion','content':At(_0x456f96,'*Remove:*\x20%0',At(_0x456f96,'ELEMENT_SPACE',_0x42fb67['remove']['length']))});continue;}if(''!=_0x42fb67['add']){_0x46f3df['push']({'type':'insertion','content':At(_0x456f96,'*Insert:*\x20%0','\x22'+_0x42fb67['add']+'\x22')});continue;}_0x46f3df['push']({'type':'deletion','content':At(_0x456f96,'*Remove:*\x20%0','\x22'+_0x42fb67['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x46f3df['push']({'type':'insertion','content':At(_0x456f96,'*Insert:*\x20%0',this['getItemLabel'](_0x42fb67['element'],_0x42fb67['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x46f3df['push']({'type':'deletion','content':At(_0x456f96,'*Remove:*\x20%0',this['getItemLabel'](_0x42fb67['element'],_0x42fb67['quantity']))});continue;case'addContainer':_0x46f3df['push']({'type':'insertion','content':At(_0x456f96,'*Split:*\x20%0',this['getItemLabel'](_0x42fb67['element'],_0x42fb67['quantity']))});continue;case'removeContainer':_0x46f3df['push']({'type':'deletion','content':At(_0x456f96,'*Merge:*\x20%0',this['getItemLabel'](_0x42fb67['element'],_0x42fb67['quantity']))});continue;case'addFormat':_0x2e478c['push'](_0x42fb67['key']);continue;case'removeFormat':_0x2f8e39['push'](_0x42fb67['key']);continue;default:_0x46f3df['push'](_0x42fb67);}if(_0x2e478c['length']){const _0x280586=_0x2e478c['map'](_0x11ff7c=>this['_attributeLabels']['has'](_0x11ff7c)?this['_attributeLabels']['get'](_0x11ff7c):_0x11ff7c)['join'](',\x20');_0x46f3df['push']({'type':'format','content':At(this['_locale'],'*Set\x20format:*\x20%0',_0x280586)});}if(_0x2f8e39['length']){const _0x201242=_0x2f8e39['map'](_0x5118ee=>this['_attributeLabels']['has'](_0x5118ee)?this['_attributeLabels']['get'](_0x5118ee):_0x5118ee)['join'](',\x20');_0x46f3df['push']({'type':'format','content':At(this['_locale'],'*Remove\x20format:*\x20%0',_0x201242)});}return _0x46f3df;}['_handleCustomCallbackDescription'](_0x3c38a8){for(const _0x5438b3 of this['_customCallbacks']){const _0x2a5e1b=_0x5438b3(_0x3c38a8);if(_0x2a5e1b&&'type'in _0x2a5e1b)return _0x2a5e1b;}}['_handleAttributeSuggestionDescription'](_0x1c1bf5,_0x4d3c8a){const _0x448d5b=_0x4d3c8a['data'],_0x33703b=void 0x0===_0x448d5b['newValue']?'removeFormat':'addFormat';_0x1c1bf5['push']({'type':_0x33703b,'key':_0x448d5b['key']});}['_handleRenameSuggestionDescription'](_0x544923,_0x5f59f6){_0x544923['push']({'type':'format','content':At(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5f59f6['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x209980,_0x31dbba,_0x503e3e){if(this['_addDescriptionItems'](_0x209980,_0x31dbba),_0x503e3e&&_0x503e3e['getFirstRange']()&&!_0x31dbba['getFirstRange']()['end']['isEqual'](_0x503e3e['getFirstRange']()['start'])){const _0x18780a=_0x209980[_0x209980['length']-0x1],_0x2b5358='insertion'==_0x31dbba['type']?'add':'remove';_0x18780a&&'text'==_0x18780a['type']&&(_0x18780a[_0x2b5358]+='\x0a');}}}class Ct extends _0x3c3277{['afterInit'](){const _0xd0c2f2=this['editor'],_0x4d51f9=_0xd0c2f2['plugins']['get']('TrackChangesEditing');_0xd0c2f2['commands']['get']('showAIAssistant')&&_0x4d51f9['enableCommand']('showAIAssistant');}}class yt extends _0x3c3277{['afterInit'](){const _0x448eeb=this['editor'],_0x3c2b70=_0x448eeb['plugins']['get']('TrackChangesEditing');_0x448eeb['commands']['get']('toggleAi')&&_0x3c2b70['enableCommand']('toggleAi');}}class Nt extends _0x3c3277{['afterInit'](){const _0x39f41c=this['editor'],_0x441373=_0x39f41c['plugins']['get']('TrackChangesEditing');_0x39f41c['commands']['get']('aiQuickAction')&&_0x441373['enableCommand']('aiQuickAction');}}class Rt extends _0x3c3277{['afterInit'](){const _0x10f1db=this['editor'],_0xfa461d=_0x10f1db['locale'];if(!_0x10f1db['plugins']['has']('AlignmentEditing'))return;const _0xef1641=_0x10f1db['plugins']['get']('TrackChangesEditing');_0xef1641['enableDefaultAttributesIntegration']('alignment'),_0xef1641['descriptionFactory']['registerAttributeLabel']('alignment',At(_0xfa461d,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc785d8=this['editor'],_0x1d6b06=_0xc785d8['locale'];_0xc785d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1cf8c3=>{if('formatBlock'!=_0x1cf8c3['type'])return;const {data:_0x346a5d}=_0x1cf8c3;if(_0x346a5d&&'alignment'==_0x346a5d['commandName']){const _0x57b2a2=_0x346a5d['commandParams'][0x0]['value'];return{'type':'format','content':At(_0x1d6b06,'*Format:*\x20%0',function(_0x50201a){switch(_0x50201a){case'left':return At(_0x1d6b06,'FORMAT_ALIGN_TO_LEFT');case'right':return At(_0x1d6b06,'FORMAT_ALIGN_TO_RIGHT');case'center':return At(_0x1d6b06,'FORMAT_ALIGN_TO_CENTER');case'justify':return At(_0x1d6b06,'FORMAT_JUSTIFY_TEXT');}}(_0x57b2a2))};}});}}const St=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Mt extends _0x3c3277{['afterInit'](){const _0x118cea=this['editor'],_0xaed4ec=_0x118cea['plugins']['get']('TrackChangesEditing'),_0x1b8a16=_0x118cea['locale'];for(const _0x4ff1bc of St){if(!_0x118cea['plugins']['has'](_0x4ff1bc))continue;const _0xc7b0f8=_0x4ff1bc['slice'](0x0,-0x7)['toLowerCase'](),_0x1d0b41='FORMAT_'+_0xc7b0f8['toUpperCase']();_0xaed4ec['enableDefaultAttributesIntegration'](_0xc7b0f8),_0xaed4ec['descriptionFactory']['registerAttributeLabel'](_0xc7b0f8,At(_0x1b8a16,_0x1d0b41));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f135c=this['editor'],_0x380bb5=_0x4f135c['locale'],_0x1b98bd=_0x4f135c['plugins']['get']('TrackChangesEditing');function _0x24b240(_0x37a7ad,_0x21d03f){_0x1b98bd['descriptionFactory']['registerDescriptionCallback'](_0x56152a=>{if('formatInline'!=_0x56152a['type'])return;const {data:_0x330d8d}=_0x56152a;return _0x330d8d&&_0x330d8d['commandName']===_0x37a7ad?_0x330d8d['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x380bb5,'*Format:*\x20%0',_0x21d03f)}:{'type':'format','content':At(_0x380bb5,'*Remove\x20format:*\x20%0',_0x21d03f)}:void 0x0;});}_0x24b240('bold',At(_0x380bb5,'FORMAT_BOLD')),_0x24b240('italic',At(_0x380bb5,'FORMAT_ITALIC')),_0x24b240('underline',At(_0x380bb5,'FORMAT_UNDERLINE')),_0x24b240('code',At(_0x380bb5,'FORMAT_CODE')),_0x24b240('strikethrough',At(_0x380bb5,'FORMAT_STRIKETHROUGH')),_0x24b240('subscript',At(_0x380bb5,'FORMAT_SUBSCRIPT')),_0x24b240('superscript',At(_0x380bb5,'FORMAT_SUPERSCRIPT'));}}class Ot extends _0x3c3277{['afterInit'](){const _0x39e889=this['editor'],_0x3f3f0e=_0x39e889['locale'];if(!_0x39e889['plugins']['has']('BlockQuoteEditing'))return;const _0x33a47d=_0x39e889['plugins']['get']('TrackChangesEditing'),_0x495754=this['editor']['commands']['get']('blockQuote');_0x33a47d['enableCommand']('blockQuote',(_0x563328,_0x58f423={})=>{const _0x55806f=this['editor']['model']['document']['selection'],_0x288613=_0x58f423&&void 0x0!==_0x58f423['forceValue']?_0x58f423['forceValue']:!_0x495754['value'];let _0x52955e=[];if(_0x288613){const _0x20d6f8=Array['from'](_0x55806f['getSelectedBlocks']())['filter'](_0x1242ca=>wt(_0x1242ca)||function(_0x255845,_0x1c62aa){const _0x1533d=_0x1c62aa['checkChild'](_0x255845['parent'],'blockQuote'),_0x19453a=_0x1c62aa['checkChild'](['$root','blockQuote'],_0x255845);return _0x1533d&&_0x19453a;}(_0x1242ca,this['editor']['model']['schema']));_0x52955e=Tt(_0x20d6f8,_0x39e889['model']);}else{const _0x270293=Array['from'](_0x55806f['getSelectedBlocks']())['filter'](_0x4b7030=>wt(_0x4b7030));_0x52955e=Tt(_0x270293,_0x39e889['model']);}_0x39e889['model']['change'](()=>{for(const _0x577e0b of _0x52955e)_0x33a47d['markBlockFormat'](_0x577e0b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x288613}]});});}),_0x33a47d['descriptionFactory']['registerDescriptionCallback'](_0x1e2ed4=>{const {data:_0x41e314}=_0x1e2ed4;if(_0x41e314&&'blockQuote'==_0x41e314['commandName']){const _0x116a62=At(_0x3f3f0e,'ELEMENT_BLOCK_QUOTE');return _0x41e314['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x3f3f0e,'*Set\x20format:*\x20%0',_0x116a62)}:{'type':'format','content':At(_0x3f3f0e,'*Remove\x20format:*\x20%0',_0x116a62)};}});}}function wt(_0x17b942){return'blockQuote'==_0x17b942['parent']['name'];}class Bt extends _0x3c3277{['afterInit'](){const _0x11503d=this['editor'],_0x1b3b50=_0x11503d['locale'],_0x930044=_0x11503d['plugins']['get']('TrackChangesEditing');_0x11503d['plugins']['has']('BookmarkEditing')&&(_0x930044['enableCommand']('insertBookmark'),_0x930044['enableDefaultAttributesIntegration']('updateBookmark'),_0x930044['descriptionFactory']['registerDescriptionCallback'](_0x37335e=>{if('insertion'!=_0x37335e['type']&&'deletion'!=_0x37335e['type']&&'attribute'!=_0x37335e['type'])return;const _0x3e64f0=_0x37335e['getContainedElement']();if(null==_0x3e64f0)return;if(!_0x3e64f0['is']('element','bookmark'))return;const _0x2237cd=_0x3e64f0['getAttribute']('bookmarkId');if('insertion'==_0x37335e['type'])return{'type':'insertion','content':At(_0x1b3b50,'*Insert:*\x20%0','\x22'+_0x2237cd+'\x22\x20'+At(_0x1b3b50,'ELEMENT_BOOKMARK'))};if('deletion'==_0x37335e['type'])return{'type':'deletion','content':At(_0x1b3b50,'*Remove:*\x20%0','\x22'+_0x2237cd+'\x22\x20'+At(_0x1b3b50,'ELEMENT_BOOKMARK'))};const {data:_0x3af82e}=_0x37335e;if(!_0x3af82e||'bookmarkId'!=_0x3af82e['key'])return;return{'type':'format','content':At(_0x1b3b50,'*Set\x20bookmark:*\x20%0','\x22'+_0x3af82e['newValue']+'\x22')};}));}}class Ft extends _0x3c3277{['afterInit'](){const _0x2529c1=this['editor'];_0x2529c1['plugins']['has']('CaseChange')&&(_0x2529c1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2529c1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2529c1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class Dt extends _0x3c3277{['afterInit'](){const _0xdf5082=this['editor'];_0xdf5082['commands']['get']('ckbox')&&_0xdf5082['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class vt extends _0x3c3277{['afterInit'](){const _0x18ac41=this['editor'];if(!_0x18ac41['plugins']['has']('CodeBlock'))return;const _0x2b467f=_0x18ac41['plugins']['get']('TrackChangesEditing'),_0x3c0920=_0x18ac41['locale'],_0x20831e=_0x18ac41['config']['get']('codeBlock')['languages'],_0x4da394=_0x18ac41['commands']['get']('codeBlock');_0x2b467f['enableCommand']('indentCodeBlock'),_0x2b467f['enableCommand']('outdentCodeBlock'),_0x2b467f['enableCommand']('codeBlock',(_0x59dac6,_0x704801={})=>{const _0x247dc5=_0x18ac41['model'],_0x1c5d29=_0x18ac41['model']['document']['selection'],_0x1bff1f=_0x704801&&void 0x0!==_0x704801['forceValue']?_0x704801['forceValue']:!_0x4da394['value'];let _0x26e68b;_0x704801['language']||(_0x704801['language']=_0x20831e[0x0]['language']),_0x26e68b=_0x1bff1f?Array['from'](_0x1c5d29['getSelectedBlocks']())['filter'](_0x20cc66=>xt(_0x20cc66)||function(_0x55ae31,_0x5e66a5){if(_0x55ae31['is']('rootElement')||_0x5e66a5['isLimit'](_0x55ae31))return!0x1;return _0x5e66a5['checkChild'](_0x55ae31['parent'],'codeBlock');}(_0x20cc66,_0x247dc5['schema'])):Array['from'](_0x1c5d29['getSelectedBlocks']())['filter'](_0x2ab075=>xt(_0x2ab075));const _0x1393a9=Tt(_0x26e68b,_0x247dc5);_0x247dc5['change'](()=>{for(const _0x510c60 of _0x1393a9)_0x2b467f['markBlockFormat'](_0x510c60,{'commandName':'codeBlock','commandParams':[{..._0x704801,'forceValue':_0x1bff1f}],'formatGroupId':'blockName'});});}),(_0x2b467f['descriptionFactory']['registerElementLabel']('codeBlock',_0x689b34=>At(_0x3c0920,'ELEMENT_CODE_BLOCK',_0x689b34)),_0x2b467f['descriptionFactory']['registerDescriptionCallback'](_0x533f88=>{if('formatBlock'!=_0x533f88['type'])return;const _0x10e2a8=_0x3c0920['t'],{data:_0x4506dd}=_0x533f88;if(!_0x4506dd||'codeBlock'!=_0x4506dd['commandName'])return;const _0x390547=_0x4506dd['commandParams'][0x0]['language'],_0x1c43bb=_0x10e2a8(_0x20831e['find'](_0xbf0c48=>_0xbf0c48['language']===_0x390547)['label'])['toLowerCase']();return _0x4506dd['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x3c0920,'*Set\x20format:*\x20%0',At(_0x3c0920,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1c43bb+')')}:{'type':'format','content':At(_0x3c0920,'*Remove\x20format:*\x20%0',At(_0x3c0920,'ELEMENT_CODE_BLOCK',0x1))};}));}}function xt(_0x572fea){return'codeBlock'==_0x572fea['name'];}class Pt extends _0x3c3277{['afterInit'](){const _0x1f7441=this['editor'];if(!_0x1f7441['plugins']['has']('CommentsEditing'))return;_0x1f7441['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Ut extends _0x3c3277{static get['requires'](){return[at];}['init'](){const _0x98a378=this['editor'],_0x4a1e97=_0x98a378['plugins']['get']('TrackChangesEditing');_0x4a1e97['enableCommand']('delete');const _0x3bbad6=_0x98a378['commands']['get']('deleteForward');_0x4a1e97['enableCommand']('deleteForward',(_0x30c167,_0x275780={})=>{const _0x42e1d3=_0x98a378['model']['createSelection'](_0x98a378['model']['document']['selection']);_0x42e1d3['isCollapsed']&&_0x98a378['model']['modifySelection'](_0x42e1d3,{'direction':'forward','unit':_0x275780['unit']});const _0x4482d2=_0x42e1d3['getFirstRange'](),_0x22953b=_0x2b4b27['fromRange'](_0x4482d2);let _0x339d04;_0x30c167(_0x275780),_0x339d04='$graveyard'==_0x22953b['root']['rootName']?_0x98a378['model']['createRange'](_0x4482d2['start']):_0x98a378['model']['createRange'](_0x22953b['start'],_0x22953b['end']),_0x22953b['detach'](),_0x98a378['model']['enqueueChange'](_0x3bbad6['buffer']['batch'],_0xb3a49d=>{_0x3bbad6['buffer']['lock'](),_0xb3a49d['setSelection'](_0xb3a49d['createRange'](_0x339d04['end'])),_0x3bbad6['buffer']['unlock']();});});}}class Gt extends _0x3c3277{['afterInit'](){const _0x1c5ced=this['editor'];if(!_0x1c5ced['plugins']['has']('ListEditing'))return;const _0x1c79cc=_0x1c5ced['locale'],_0x89033a=_0x1c5ced['plugins']['get']('TrackChangesEditing'),_0x4ff7c8=_0x1c5ced['plugins']['has']('TodoListEditing'),_0xf950a4=!!_0x1c5ced['config']['get']('list.multiBlock');function _0x1c6030(_0x176980){return{'type':'format','content':''+At(_0x1c79cc,'*Set\x20format:*\x20%0',_0x176980)};}function _0x3f6c9e(_0x1b1419){return{'type':'format','content':''+At(_0x1c79cc,'*Remove\x20format:*\x20%0',_0x1b1419)};}_0x89033a['enableDefaultAttributesIntegration']('numberedList'),_0x89033a['enableDefaultAttributesIntegration']('bulletedList'),_0x89033a['enableDefaultAttributesIntegration']('customNumberedList'),_0x89033a['enableDefaultAttributesIntegration']('customBulletedList'),_0x89033a['enableDefaultAttributesIntegration']('indentList'),_0x89033a['enableDefaultAttributesIntegration']('outdentList'),_0x89033a['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x89033a['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xf950a4&&(_0x89033a['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x89033a['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4ff7c8&&(_0x89033a['enableDefaultAttributesIntegration']('todoList'),_0x89033a['enableDefaultAttributesIntegration']('checkTodoList'),_0x89033a['descriptionFactory']['registerDescriptionCallback'](_0xaa859f=>{const {data:_0x39fa88}=_0xaa859f;if(_0x39fa88&&'todoListChecked'==_0x39fa88['key'])return{'type':'format','content':_0x39fa88['newValue']?At(_0x1c79cc,'*Check\x20item*'):At(_0x1c79cc,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4c7a8b=>{if(_0x4c7a8b['batch']['isUndo'])return!0x1;let _0x61e6d2=!0x1;const _0x24d14a=_0x89033a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4380ea=>'todoListChecked'===_0x89033a['_getAttributeKey'](_0x4380ea));for(const _0x3e4435 of _0x24d14a){'todo'!=_0x3e4435['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x89033a['_findSuggestions'](_0x3e4435['getFirstRange'](),'attribute')['find'](_0x451937=>'listType'===_0x89033a['_getAttributeKey'](_0x451937['suggestion']))||(_0x4c7a8b['removeMarker'](_0x3e4435['getFirstMarker']()),_0x61e6d2=!0x0));}return _0x61e6d2;})),_0x89033a['descriptionFactory']['registerAttributeLabel']('listIndent',At(_0x1c79cc,'FORMAT_INDENT'));const _0x49527f={'type':'format','content':''};_0x89033a['descriptionFactory']['registerDescriptionCallback'](_0x5787f5=>{const {data:_0x9af5d1}=_0x5787f5;if(!_0x9af5d1||'listType'!=_0x9af5d1['key'])return;let _0x7283f3=_0x5787f5['head'];for(;_0x7283f3;){if(_0x7283f3['data']&&(('listStyle'==_0x7283f3['data']['key']||'listMarkerStyle'==_0x7283f3['data']['key'])&&(_0x7283f3['data']['newValue']&&'default'!=_0x7283f3['data']['newValue']||'default'!=_0x7283f3['data']['oldValue']&&!_0x9af5d1['newValue'])||!_0xf950a4&&_0x7283f3['data']['key']==Ke))return _0x49527f;_0x7283f3=_0x7283f3['next'];}if(null==_0x9af5d1['newValue'])switch(_0x9af5d1['oldValue']){case'bulleted':return _0x3f6c9e(At(_0x1c79cc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3f6c9e(At(_0x1c79cc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3f6c9e(At(_0x1c79cc,'ELEMENT_TODO_LIST'));}switch(_0x9af5d1['newValue']){case'bulleted':return _0x1c6030(At(_0x1c79cc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1c6030(At(_0x1c79cc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1c6030(At(_0x1c79cc,'ELEMENT_TODO_LIST'));}}),_0x89033a['descriptionFactory']['registerDescriptionCallback'](_0x348804=>{const {data:_0x3ed621}=_0x348804;if(_0x3ed621&&'listIndent'==_0x3ed621['key'])return null==_0x3ed621['newValue']||null==_0x3ed621['oldValue']&&0x0==_0x3ed621['newValue']?_0x49527f:void 0x0;}),_0x89033a['descriptionFactory']['registerDescriptionCallback'](_0x4ff971=>{if('attribute'!=_0x4ff971['type'])return;const {data:_0x5a717a}=_0x4ff971;if(!_0x5a717a||'listItemId'!=_0x5a717a['key'])return;const _0x2e8379=Ht(_0x4ff971);return'newValue'==_0x2e8379?{'type':'format','content':At(_0x1c79cc,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2e8379?{'type':'format','content':At(_0x1c79cc,'*Split:*\x20list\x20item')}:_0x49527f;}),_0x1c5ced['model']['document']['registerPostFixer'](_0x13f1df=>this['listItemIdFixer'](_0x13f1df)),_0x1c5ced['model']['document']['registerPostFixer'](_0x464af8=>this['noTrackChangesFixer'](_0x464af8)),_0x1c5ced['model']['document']['on']('change:data',(_0x5db092,_0x6d8c89)=>{if(_0x6d8c89['isUndo']||!_0x6d8c89['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4c9005){if(_0x4c9005['batch']['isUndo']||!_0x4c9005['batch']['isLocal'])return!0x1;let _0xad5fe0=!0x1;const _0x54b482=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x146f4e=>_0x146f4e['data']&&'listItemId'==_0x146f4e['data']['key'])['filter'](_0x1482bc=>_0x1482bc['data']['newValue']&&_0x1482bc['data']['oldValue']);for(const _0x1ea137 of _0x54b482)Ht(_0x1ea137)||(_0x4c9005['removeMarker'](_0x1ea137['getFirstMarker']()),_0xad5fe0=!0x0);return _0xad5fe0;}['noTrackChangesFixer'](_0x300215){if(_0x300215['batch']['isUndo']||!_0x300215['batch']['isLocal'])return!0x1;const _0x206208=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x206208['trackChangesCommand']['value'])return!0x1;let _0x17cbfe=!0x1;const _0x4732d7=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3f30bf=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x57ffb8=>'attribute'==_0x57ffb8['type'])['filter'](_0x106bc7=>_0x4732d7['includes'](_0x106bc7['attributeKey']));if(0x0==_0x3f30bf['length'])return _0x17cbfe;for(const _0x310b42 of _0x3f30bf){const _0x5eafc4=_0x206208['_findSuggestions'](_0x310b42['range'],'attribute')['filter'](_0x3649e1=>!_0x3649e1['meta']['isNextTo'])['map'](_0xc8bc88=>_0xc8bc88['suggestion'])['filter'](_0x47c854=>{const _0xe82c1b=_0x206208['_getAttributeKey'](_0x47c854);return _0x4732d7['includes'](_0xe82c1b);});if(_0x5eafc4['length']){for(const _0x2fcfea of _0x5eafc4)_0x300215['removeMarker'](_0x2fcfea['getFirstMarker']());_0x17cbfe=!0x0;}}return _0x17cbfe;}['assureChains'](){const _0x328ac1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x291a37=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3ce422;const _0x10d2ba=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x48bfe5=>{if(_0x48bfe5['data']['oldRange']||!_0x48bfe5['data']['newRange'])return null;if(!_0x48bfe5['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5c75c4}=_0x2695e1(_0x48bfe5['name']);if(!_0x328ac1['hasSuggestion'](_0x5c75c4))return null;const _0x34b224=_0x328ac1['getSuggestion'](_0x5c75c4);return _0x291a37['includes'](_0x34b224['data']['key']);})['map'](_0x2c88da=>{const {id:_0x3a139a}=_0x2695e1(_0x2c88da['name']),_0x3f56f4=_0x328ac1['getSuggestion'](_0x3a139a);return _0x3ce422=_0x3f56f4['attributes']['groupId'],_0x3f56f4['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x10d2ba['size'])return;const _0x525a63=_0x328ac1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2d3c0c=>'attribute'==_0x2d3c0c['type']&&_0x2d3c0c['data']&&_0x291a37['includes'](_0x2d3c0c['data']['key'])&&_0x2d3c0c['attributes']['groupId']!=_0x3ce422)['map'](_0x24c13d=>({'listItem':_0x24c13d['getFirstRange']()['start']['nodeAfter'],'groupId':_0x24c13d['attributes']['groupId']})),_0xfa5890=new Set();for(const {groupId:_0x1c9981,listItem:_0x56fb55}of _0x525a63)_0x10d2ba['has'](_0x56fb55)&&_0xfa5890['add'](_0x1c9981);for(const _0x1b21be of _0x328ac1['getSuggestions']())_0xfa5890['has'](_0x1b21be['attributes']['groupId'])&&_0x1b21be['setAttribute']('groupId',_0x3ce422);}['_supportLegacySuggestions'](){const _0x1d6f38=this['editor'],_0x237675=_0x1d6f38['locale'],_0x5e1731=_0x1d6f38['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5e1731['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x52557d,_0x4632fc){const _0x4747be=[];for(let _0xf2dd7a of _0x52557d)_0xf2dd7a['start']['nodeAfter']===_0xf2dd7a['end']['parent']&&(_0xf2dd7a=_0x1d6f38['model']['createRange'](_0x1d6f38['model']['createPositionAt'](_0xf2dd7a['start']['nodeAfter'],0x0))),_0x4747be['push'](_0xf2dd7a);_0x1d6f38['model']['change'](_0x4d751d=>{const _0x46fbce=_0x1d6f38['model']['document']['selection'],_0x32e4b2=Array['from'](_0x46fbce['getRanges']())['map'](_0x2016de=>_0x2b4b27['fromRange'](_0x2016de));_0x4d751d['setSelection'](_0x4747be),_0x1d6f38['commands']['get'](_0x4632fc['commandName'])['refresh'](),_0x4632fc['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1d6f38['execute'](_0x4632fc['commandName'],..._0x4632fc['commandParams']),_0x4d751d['setSelection'](_0x32e4b2);for(const _0x125aa7 of _0x32e4b2)_0x125aa7['detach']();});}),_0x5e1731['descriptionFactory']['registerElementLabel'](function(_0x25f606){const _0x399b55=!_0x1d6f38['model']['schema']['isObject'](_0x25f606),_0x1a07df=_0x25f606['previousSibling'],_0x145691=_0x25f606['nextSibling'],_0x5e7f09=_0x25f606['getAttribute']('listItemId'),_0x295f18=!_0x1a07df||_0x1a07df['getAttribute']('listItemId')!==_0x5e7f09,_0x8d99d6=!_0x145691||_0x145691['getAttribute']('listItemId')!==_0x5e7f09;return _0x399b55&&Boolean(_0x5e7f09)&&_0x295f18&&_0x8d99d6;},_0xc40bdb=>At(_0x237675,'ELEMENT_LIST_ITEM',_0xc40bdb));}['_registerLegacyDescription'](){const _0x34e7d2=this['editor'],_0x525f97=_0x34e7d2['locale'];function _0x31e1f4(_0x54f630){const _0x37d17e=_0x34e7d2['commands']['get']('bulletedList')['value'],_0x16a309=_0x34e7d2['commands']['get']('numberedList')['value'];return'numberedList'===_0x54f630?_0x37d17e:_0x16a309;}_0x34e7d2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x14dcca){if('formatBlock'!=_0x14dcca['type'])return;const {data:_0x3d4a11}=_0x14dcca;if(!_0x3d4a11)return;let _0x36595d,_0x3ffa7a,_0x738cc7,_0x42b885;switch(_0x3d4a11['commandName']){case'bulletedList':_0x738cc7=_0x3d4a11['commandParams'][0x0]['forceValue'],_0x42b885=_0x31e1f4(_0x3d4a11['commandName']),_0x36595d=_0x738cc7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x42b885&&_0x34e7d2['config']['get']('list.multiBlock')||(_0x36595d='*Change\x20to:*\x20%0'),_0x3ffa7a={'type':'format','content':At(_0x525f97,_0x36595d,At(_0x525f97,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x738cc7=_0x3d4a11['commandParams'][0x0]['forceValue'],_0x42b885=_0x31e1f4(_0x3d4a11['commandName']),_0x36595d=_0x738cc7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x42b885&&_0x34e7d2['config']['get']('list.multiBlock')||(_0x36595d='*Change\x20to:*\x20%0'),_0x3ffa7a={'type':'format','content':At(_0x525f97,_0x36595d,At(_0x525f97,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x36595d='*Indent:*\x20%0',_0x3ffa7a={'type':'format','content':At(_0x525f97,_0x36595d,At(_0x525f97,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x36595d=function(_0x45aeb0){const _0x4d6642=_0x45aeb0['getFirstRange']();let _0x502bf8=_0x4d6642['start']['nodeAfter'];for(;_0x502bf8&&_0x4d6642['containsItem'](_0x502bf8);){if(_0x502bf8['getAttribute']('listIndent')>0x0)return!0x1;_0x502bf8=_0x502bf8['nextSibling'];}return!0x0;}(_0x14dcca)?At(_0x525f97,'*Format:*\x20remove\x20from\x20%0',At(_0x525f97,function(_0x1db0eb){return'ELEMENT_'+_0x1db0eb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x14dcca))):At(_0x525f97,'*Outdent:*\x20%0',At(_0x525f97,'ELEMENT_LIST_ITEM')),_0x3ffa7a={'type':'format','content':_0x36595d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3d4a11['multipleBlocks']&&(_0x36595d='*Merge:*\x20%0',_0x3ffa7a={'type':'deletion','content':At(_0x525f97,_0x36595d,At(_0x525f97,'ELEMENT_LIST_ITEM'))});}return _0x3ffa7a;});}}function Ht(_0x49fa41){let _0xfce499=_0x49fa41['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xfce499;){const _0x4eedc1=_0xfce499['getAttribute']('listItemId');if(!_0x4eedc1)return!0x1;if(_0x4eedc1==_0x49fa41['data']['newValue'])return'newValue';if(_0x4eedc1==_0x49fa41['data']['oldValue'])return'oldValue';_0xfce499=_0xfce499['previousSibling'];}return!0x1;}class $t extends _0x3c3277{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x106b2b=this['editor']['config']['get']('list.properties'),_0x347f19=this['editor']['plugins']['get']('TrackChangesEditing');_0x106b2b['styles']&&_0x347f19['enableDefaultAttributesIntegration']('listStyle'),_0x106b2b['reversed']&&_0x347f19['enableDefaultAttributesIntegration']('listReversed'),_0x106b2b['startIndex']&&_0x347f19['enableDefaultAttributesIntegration']('listStart');const _0x2fe95c={'type':'format','content':''};_0x347f19['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5e7abd=this['editor']['locale'];_0x347f19['descriptionFactory']['registerAttributeLabel']('listReversed',At(_0x5e7abd,'FORMAT_LIST_REVERSED')),_0x347f19['descriptionFactory']['registerDescriptionCallback'](_0x15afcc=>{const {data:_0x19b369}=_0x15afcc;if(_0x19b369&&'listReversed'==_0x19b369['key'])return null==_0x19b369['newValue']||0x0==_0x19b369['newValue']&&null==_0x19b369['oldValue']?_0x2fe95c:void 0x0;}),_0x347f19['descriptionFactory']['registerAttributeLabel']('listStart',At(_0x5e7abd,'FORMAT_LIST_START')),_0x347f19['descriptionFactory']['registerDescriptionCallback'](_0x27368a=>{const {data:_0x200f95}=_0x27368a;if(_0x200f95&&'listStart'==_0x200f95['key'])return null==_0x200f95['newValue']||0x1==_0x200f95['newValue']&&null==_0x200f95['oldValue']?_0x2fe95c:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x27c7cd=>{if(_0x27c7cd['batch']['isUndo'])return!0x1;let _0x471264=!0x1;const _0x1b4e0e=_0x347f19['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5a4649=>{const _0x367d66=_0x347f19['_getAttributeKey'](_0x5a4649);return'listStart'==_0x367d66||'listReversed'==_0x367d66;});for(const _0x564af0 of _0x1b4e0e){const _0x50029f=_0x564af0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x50029f||'customNumbered'==_0x50029f)continue;_0x347f19['_findSuggestions'](_0x564af0['getFirstRange'](),'attribute')['find'](_0x27ecd8=>'listType'==_0x347f19['_getAttributeKey'](_0x27ecd8['suggestion']))||(_0x27c7cd['removeMarker'](_0x564af0['getFirstMarker']()),_0x471264=!0x0);}return _0x471264;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x558f6e){const _0xa9aba=this['editor']['locale'],{data:_0x1d9752}=_0x558f6e,_0xf44f24={'type':'format','content':''};if(!_0x1d9752||'listStyle'!=_0x1d9752['key'])return;if(!_0x1d9752['oldValue'])return'default'==_0x1d9752['newValue']?_0xf44f24:{'type':'format','content':''+At(_0xa9aba,'*Set\x20format:*\x20%0',At(_0xa9aba,this['_getTranslationKeyForListStyle'](_0x1d9752['newValue'])))};if(!_0x1d9752['newValue']){if('default'==_0x1d9752['oldValue'])return _0xf44f24;let _0x4c6ba6=_0x558f6e['head'];for(;_0x4c6ba6;){if(_0x4c6ba6['data']&&'listType'==_0x4c6ba6['data']['key']&&_0x4c6ba6['data']['newValue'])return _0xf44f24;_0x4c6ba6=_0x4c6ba6['next'];}return{'type':'format','content':''+At(_0xa9aba,'*Remove\x20format:*\x20%0',At(_0xa9aba,this['_getTranslationKeyForListStyle'](_0x1d9752['oldValue'])))};}if('default'!=_0x1d9752['newValue'])return{'type':'format','content':''+At(_0xa9aba,'*Set\x20format:*\x20%0',At(_0xa9aba,this['_getTranslationKeyForListStyle'](_0x1d9752['newValue'])))};let _0x1648ed=_0x558f6e['head'];for(;_0x1648ed;){if(_0x1648ed['data']&&'listType'==_0x1648ed['data']['key']&&_0x1648ed['data']['newValue']&&_0x1648ed['data']['oldValue'])return _0xf44f24;_0x1648ed=_0x1648ed['next'];}return{'type':'format','content':At(_0xa9aba,'*Set\x20format:*\x20%0',At(_0xa9aba,'ELEMENT_'+_0x558f6e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x400c03=this['editor'],_0x5484ad=_0x400c03['locale'];_0x400c03['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x988cb6=>{if('formatBlock'!=_0x988cb6['type'])return;const {data:_0x3df6d4}=_0x988cb6;if(!_0x3df6d4)return;let _0x1c7a2a,_0x556d00;switch(_0x3df6d4['commandName']){case'listStyle':_0x1c7a2a='*Change\x20to:*\x20%0',_0x556d00={'type':'format','content':At(_0x5484ad,_0x1c7a2a,At(_0x5484ad,this['_getTranslationKeyForListStyle'](_0x3df6d4['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1c7a2a=_0x3df6d4['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x556d00={'type':'format','content':At(_0x5484ad,_0x1c7a2a)};break;case'listStart':_0x1c7a2a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x556d00={'type':'format','content':At(_0x5484ad,_0x1c7a2a,_0x3df6d4['commandParams'][0x0]['startIndex'])};}return _0x556d00;});}['_getTranslationKeyForListStyle'](_0x2d53d1){return'ELEMENT_'+function(_0x3987f9){if(Wt['includes'](_0x3987f9))return'bulleted';if(Vt['includes'](_0x3987f9))return'numbered';return null;}(_0x2d53d1)['toUpperCase']()+'_LIST_'+_0x2d53d1['toUpperCase']()['replace'](/-/g,'_');}}const Wt=['disc','circle','square'],Vt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class jt extends _0x3c3277{['afterInit'](){const _0x26e361=this['editor'];_0x26e361['commands']['get']('emoji')&&_0x26e361['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class zt extends _0x3c3277{static get['requires'](){return[lt];}['init'](){const _0x122d6c=this['editor'],_0x3d85ad=_0x122d6c['plugins']['get']('TrackChangesEditing'),_0x51d9f3=_0x122d6c['commands']['get']('enter');_0x3d85ad['enableCommand']('enter',()=>{_0x122d6c['model']['change'](_0x128380=>{const _0x1deda1=_0x122d6c['model']['document']['selection'],_0x51e5cb=_0x1deda1['getFirstPosition'](),_0x257876=_0x2b4b27['fromRange'](_0x1deda1['getFirstRange']());if(_0x51d9f3['enterBlock'](_0x128380)){const _0x31dad2=_0x122d6c['model']['createPositionAt'](_0x51e5cb['parent']['nextSibling'],0x0),_0x25b476=_0x128380['createRange'](_0x51e5cb,_0x31dad2);_0x3d85ad['markInsertion'](_0x25b476);}else _0x128380['setSelection'](_0x128380['createRange'](_0x257876['end']));_0x257876['detach'](),_0x51d9f3['fire']('afterExecute',{'writer':_0x128380});});});}}class Kt extends _0x3c3277{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xd544ec=this['editor']['plugins']['get']('TrackChangesEditing');_0xd544ec['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xd544ec['enableCommand']('findNext'),_0xd544ec['enableCommand']('findPrevious'),_0xd544ec['enableCommand']('replace'),_0xd544ec['enableCommand']('replaceAll');}['handleFindCommand'](_0xcdeecc,_0x7e0d5b,_0x5be167={}){const _0x80dd14=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xcdeecc(_0x1c9fd3=>{let _0x20e800=('string'==typeof _0x7e0d5b?_0x80dd14['findByTextCallback'](_0x7e0d5b,_0x5be167):_0x7e0d5b)(_0x1c9fd3);Array['isArray'](_0x20e800)&&(_0x20e800={'results':_0x20e800,'searchText':'string'==typeof _0x7e0d5b?_0x7e0d5b:''});const _0x55825b=_0x20e800['results']['filter'](_0x5c1b27=>!0x1===this['_isInDeletionRange'](_0x5c1b27,_0x1c9fd3['item']));return{..._0x20e800,'results':_0x55825b};},_0x5be167);}['_isInDeletionRange'](_0x4c0ea6,_0x4ac7ad){const _0x5d5040=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4ac7ad,_0x4c0ea6['start']),this['editor']['model']['createPositionAt'](_0x4ac7ad,_0x4c0ea6['end']));for(const _0x4554ab of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5d5040['getIntersection'](_0x4554ab['getRange']()))return!0x0;return!0x1;}}const Xt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Yt extends _0x3c3277{['afterInit'](){const _0xc4c9f=this['editor']['locale'],_0x4b048b=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x538488,commandName:_0x5c1b44}of Xt)this['editor']['plugins']['has'](_0x538488)&&_0x4b048b['enableDefaultAttributesIntegration'](_0x5c1b44);_0x4b048b['descriptionFactory']['registerAttributeLabel']('fontSize',At(_0xc4c9f,'FORMAT_FONT_SIZE')),_0x4b048b['descriptionFactory']['registerAttributeLabel']('fontFamily',At(_0xc4c9f,'FORMAT_FONT_FAMILY')),_0x4b048b['descriptionFactory']['registerAttributeLabel']('fontColor',At(_0xc4c9f,'FORMAT_FONT_COLOR')),_0x4b048b['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',At(_0xc4c9f,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x474c50=this['editor'],_0x25e377=_0x474c50['locale'];_0x474c50['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ab476=>{const _0x19561d=_0x25e377['t'];if('formatInline'!=_0x2ab476['type'])return;const {data:_0x13c6f8}=_0x2ab476;if(null!=_0x13c6f8){if('fontSize'==_0x13c6f8['commandName']){const _0x4007ea=_0x13c6f8['commandParams'][0x0]['value'];if(_0x4007ea){const _0x17649d=_0x19561d(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x301052=>_0x301052['model']==_0x4007ea)['title'])['toLowerCase']();return{'type':'format','content':At(_0x25e377,'*Set\x20font\x20size:*\x20%0',_0x17649d)};}return{'type':'format','content':At(_0x25e377,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x13c6f8['commandName']){const _0x1f05d8=_0x13c6f8['commandParams'][0x0]['value'];return _0x1f05d8?{'type':'format','content':At(_0x25e377,'*Set\x20font\x20family:*\x20%0',_0x1f05d8)}:{'type':'format','content':At(_0x25e377,'*Reset\x20font\x20family*')};}if('fontColor'==_0x13c6f8['commandName']){const _0x59aa74=_0x13c6f8['commandParams'][0x0]['value'];if(_0x59aa74){const _0x1d2a46=_0x44b977(this['editor']['config']['get']('fontColor.colors'))['find'](_0x34b35a=>_0x34b35a['model']==_0x59aa74);let _0x46d852=_0x59aa74,_0x1dee85='';return _0x1d2a46&&(_0x46d852=_0x1d2a46['label'],_0x1dee85=_0x19561d(_0x46d852)['toLowerCase']()),{'type':'format','content':At(_0x25e377,'*Set\x20font\x20color:*\x20%0',_0x1dee85)['trim'](),'color':{'value':_0x59aa74,'title':_0x1dee85||_0x46d852}};}return{'type':'format','content':At(_0x25e377,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x13c6f8['commandName']){const _0x4a0477=_0x13c6f8['commandParams'][0x0]['value'];if(_0x4a0477){const _0x49cf0d=_0x44b977(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x36610e=>_0x36610e['model']==_0x4a0477);let _0x334ad7=_0x4a0477,_0x5ae593='';return _0x49cf0d&&(_0x334ad7=_0x49cf0d['label'],_0x5ae593=_0x19561d(_0x334ad7)['toLowerCase']()),{'type':'format','content':At(_0x25e377,'*Set\x20font\x20background\x20color:*\x20%0',_0x5ae593)['trim'](),'color':{'value':_0x4a0477,'title':_0x5ae593||_0x334ad7}};}return{'type':'format','content':At(_0x25e377,'*Reset\x20font\x20background\x20color*')};}}});}}class qt extends _0x3c3277{['afterInit'](){const {plugins:_0xd4067a}=this['editor'];_0xd4067a['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0xd4067a['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x1c326b,plugins:_0x1fb9b8,commands:_0x4469ef}=this['editor'],_0x52a2e6=_0x1fb9b8['get']('TrackChangesEditing');_0x4469ef['get']('footnotesStyle')&&_0x52a2e6['enableDefaultAttributesIntegration']('footnotesStyle'),_0x4469ef['get']('footnotesStart')&&_0x52a2e6['enableDefaultAttributesIntegration']('footnotesStart'),_0x52a2e6['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',At(_0x1c326b,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x52a2e6['descriptionFactory']['registerAttributeLabel']('footnotesListStart',At(_0x1c326b,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x51683a=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x12b169,commands:_0x3c4b00}=this['editor'];_0x3c4b00['get']('insertFootnote')&&_0x51683a['enableCommand']('insertFootnote'),_0x51683a['descriptionFactory']['registerElementLabel']('footnoteRef',_0x3372e9=>At(_0x12b169,'ELEMENT_FOOTNOTE_REF',_0x3372e9)),_0x51683a['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x58cefe=>At(_0x12b169,'ELEMENT_FOOTNOTE_DEFINITION',_0x58cefe)),_0x51683a['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x3c662b=>At(_0x12b169,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x3c662b));}}class Qt extends _0x3c3277{['afterInit'](){const _0x5c93dc=this['editor'],_0xfa2a7d=_0x5c93dc['plugins']['get']('TrackChangesEditing'),_0x259888=_0x5c93dc['commands']['get']('copyFormat'),_0x389bc9=_0x5c93dc['commands']['get']('pasteFormat');_0x259888&&_0x389bc9&&(_0xfa2a7d['enableDefaultAttributesIntegration']('pasteFormat'),_0xfa2a7d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2c3d36=this['editor'],_0x4ee162=_0x2c3d36['locale'];_0x2c3d36['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ea0d2=>{if('formatBlock'!=_0x5ea0d2['type']&&'formatInline'!=_0x5ea0d2['type'])return;const {data:_0x45207a}=_0x5ea0d2;if(_0x45207a&&'pasteFormat'===_0x45207a['commandName']){const _0x552d26=[],_0x4182c0=_0x45207a['commandParams'][0x0];for(const [_0x3c0bfd,_0x14925a]of Object['entries'](_0x4182c0))_0x552d26['push'](Zt(_0x2c3d36,_0x3c0bfd,_0x14925a));return _0x552d26['length']?{'type':'format','content':At(_0x4ee162,'*Set\x20format\x20to:*\x20%0',_0x552d26['join'](',\x20'))}:{'type':'format','content':At(_0x4ee162,'*Remove\x20all\x20formatting*')};}});}}function Zt(_0xed8ff4,_0x5a8101,_0x2a2485){const _0x5e5c0f=_0xed8ff4['locale']['t'],_0x4370d0=_0x5a8101['split'](/(?=[A-Z])/)['join']('\x20'),_0x480231=_0x5e5c0f(_0x4370d0['charAt'](0x0)['toUpperCase']()+_0x4370d0['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2a2485)return _0x480231;if('fontColor'===_0x5a8101||'fontBackgroundColor'===_0x5a8101){const _0x3f6ac1=_0x44b977(_0xed8ff4['config']['get']('fontColor.colors'))['find'](_0x1a9798=>_0x1a9798['model']==_0x2a2485);return _0x480231+'\x20('+(_0x3f6ac1?_0x5e5c0f(_0x3f6ac1['label'])['toLowerCase']():_0x2a2485)+')';}if('fontSize'===_0x5a8101&&isNaN(parseFloat(_0x2a2485))){const _0x5294c1=_0xed8ff4['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xed8ff4['config']['get']('fontSize.options'))['find'](_0x241df7=>_0x241df7['model']==_0x2a2485);return _0x480231+'\x20('+(_0x5294c1?_0x5e5c0f(_0x5294c1['title'])['toLowerCase']():_0x2a2485)+')';}return _0x480231+'\x20('+_0x2a2485+')';}class Jt extends _0x3c3277{['_headingOptions'];['afterInit'](){const _0xa7ba53=this['editor'];if(!_0xa7ba53['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xa7ba53['config']['get']('heading.options');const _0x374c0a=_0xa7ba53['locale'],_0x25d86f=_0xa7ba53['plugins']['get']('TrackChangesEditing');_0x25d86f['enableDefaultAttributesIntegration']('heading');for(const _0x2713aa of this['_headingOptions'])'paragraph'!=_0x2713aa['model']&&_0x25d86f['descriptionFactory']['registerElementLabel'](_0x2713aa['model'],_0x389c42=>{const _0x3f1220=this['_getHeadingLevel'](_0x2713aa['model']);return null!==_0x3f1220?_0x5337a1(_0x389c42,_0x3f1220):_0xc3751b(_0x389c42,_0x2713aa['title']);});function _0x5337a1(_0x1e2929,_0x313e01){return At(_0x374c0a,'ELEMENT_HEADING',[_0x1e2929,_0x313e01]);}function _0xc3751b(_0x5e2474,_0x53b0d1){return At(_0x374c0a,'ELEMENT_HEADING_CUSTOM',[_0x5e2474,_0x53b0d1]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb6e2a7=this['editor'],_0x3d2021=_0xb6e2a7['locale'];function _0x84e265(_0x151fe6,_0x5285ab){return At(_0x3d2021,'ELEMENT_HEADING_CUSTOM',[_0x151fe6,_0x5285ab]);}_0xb6e2a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2497ee=>{if('formatBlock'!=_0x2497ee['type'])return;const {data:_0x2d6b31}=_0x2497ee;if(_0x2d6b31&&'heading'==_0x2d6b31['commandName']){const _0xae3231=_0x2d6b31['commandParams'][0x0]['value'],_0x3d639c=this['_getHeadingLevel'](_0xae3231);if(null!==_0x3d639c)return{'type':'format','content':At(_0x3d2021,'*Change\x20to:*\x20%0',(_0x2a1152=0x1,_0x3121dd=_0x3d639c,At(_0x3d2021,'ELEMENT_HEADING',[_0x2a1152,_0x3121dd])))};const _0x5a1495=this['_headingOptions']['find'](_0x46cb24=>_0x46cb24['model']===_0xae3231)['title'];return{'type':'format','content':At(_0x3d2021,'*Change\x20to:*\x20%0',_0x84e265(0x1,_0x5a1495))};}var _0x2a1152,_0x3121dd;});}['_getHeadingLevel'](_0x38e556){const _0x3049e4=_0x38e556['match'](/^heading(\d+)/);if(_0x3049e4)return _0x3049e4[0x1];const _0x17ec43=this['_headingOptions']?.['find'](_0x1711da=>_0x1711da['model']==_0x38e556);if(_0x17ec43&&_0x17ec43['view']){const _0x5a4a6a=_0x17ec43['view'],_0x304b00=(_0x5a4a6a['name']??_0x5a4a6a)['match'](/^h(\d+)/);if(_0x304b00)return _0x304b00[0x1];}return null;}}class te extends _0x3c3277{['afterInit'](){const _0x166e44=this['editor'];if(!_0x166e44['plugins']['has']('HighlightEditing'))return;const _0x2f00df=_0x166e44['plugins']['get']('TrackChangesEditing'),_0x473abf=_0x166e44['locale'];_0x2f00df['enableDefaultAttributesIntegration']('highlight'),_0x2f00df['descriptionFactory']['registerAttributeLabel']('highlight',At(_0x473abf,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d0185=this['editor'],_0x334c5e=_0x1d0185['locale'];_0x1d0185['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1dcc4f=>{if('formatInline'!=_0x1dcc4f['type'])return;const {data:_0x4e4799}=_0x1dcc4f;if(_0x4e4799&&'highlight'==_0x4e4799['commandName']){const _0x392129=_0x334c5e['t'],_0x3b70ff=_0x4e4799['commandParams'][0x0]['value'];if(_0x3b70ff){const _0x45552b=_0x1d0185['config']['get']('highlight.options')['find'](_0xd267db=>_0xd267db['model']==_0x3b70ff),_0x4bf5b2=_0x392129(_0x45552b['title'])['toLowerCase']();return{'type':'format','content':At(_0x334c5e,'*Set\x20highlight:*\x20%0',_0x4bf5b2),'color':{'value':_0x45552b['color'],'title':_0x45552b['title']}};}return{'type':'format','content':At(_0x334c5e,'*Remove\x20highlight*',At(_0x334c5e,'FORMAT_HIGHLIGHT'))};}});}}class ee extends _0x3c3277{['afterInit'](){const _0x2c66f7=this['editor'];if(!_0x2c66f7['plugins']['has']('HorizontalLineEditing'))return;_0x2c66f7['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4a2e41=_0x2c66f7['plugins']['get']('TrackChangesEditing'),_0x1126f4=_0x2c66f7['locale'];_0x4a2e41['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5b0871=>At(_0x1126f4,'ELEMENT_HORIZONTAL_LINE',_0x5b0871));}}class ne extends _0x3c3277{['afterInit'](){const _0x465710=this['editor'];if(!_0x465710['plugins']['has']('HtmlEmbed'))return;const _0x23bbe6=_0x465710['plugins']['get']('TrackChangesEditing'),_0x5ad8ba=_0x465710['locale'];_0x23bbe6['descriptionFactory']['registerElementLabel']('rawHtml',_0x1135eb=>At(_0x5ad8ba,'ELEMENT_HTML_EMBED',_0x1135eb)),_0x23bbe6['enableDefaultAttributesIntegration']('htmlEmbed'),_0x23bbe6['descriptionFactory']['registerDescriptionCallback'](_0x20268b=>{if('attribute'!=_0x20268b['type'])return;const {data:_0x11f88e}=_0x20268b;if(_0x11f88e&&'value'==_0x11f88e['key']&&_0x20268b['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1bf5d4=At(_0x5ad8ba,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x5ad8ba,'*Change\x20%0\x20content*',_0x1bf5d4)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9a55b6=this['editor'],_0x16ccd8=_0x9a55b6['locale'];_0x9a55b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x329a93=>{if('formatBlock'!=_0x329a93['type'])return;const {data:_0x506150}=_0x329a93;if(_0x506150&&'htmlEmbed'==_0x506150['commandName']){const _0x451f83=At(_0x16ccd8,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x16ccd8,'*Change\x20%0\x20content*',_0x451f83)};}});}}class ie extends _0x3c3277{['afterInit'](){const _0x4ab478=this['editor'];if(!_0x4ab478['plugins']['has']('ImageEditing'))return;const _0x2fbffa=_0x4ab478['plugins']['get']('TrackChangesEditing'),_0x1e9adc=_0x4ab478['plugins']['get']('ImageUtils'),_0x122d5e=_0x4ab478['locale'];_0x2fbffa['enableCommand']('insertImage'),_0x2fbffa['descriptionFactory']['registerElementLabel']('imageBlock',_0x51a0a6=>At(_0x122d5e,'ELEMENT_IMAGE',_0x51a0a6)),_0x2fbffa['descriptionFactory']['registerElementLabel']('imageInline',_0x5544c3=>At(_0x122d5e,'ELEMENT_INLINE_IMAGE',_0x5544c3)),_0x2fbffa['descriptionFactory']['registerElementLabel']('caption',()=>At(_0x122d5e,'ELEMENT_CAPTION')),_0x4ab478['plugins']['has']('ImageUploadEditing')&&_0x2fbffa['enableCommand']('uploadImage'),_0x4ab478['plugins']['has']('ImageBlockEditing')&&_0x4ab478['plugins']['has']('ImageInlineEditing')&&(_0x2fbffa['enableCommand']('imageTypeInline',(_0x12f2f0,_0x30e571)=>{const _0x36746a=_0x1e9adc['getClosestSelectedImageElement'](_0x4ab478['model']['document']['selection']);_0x4ab478['model']['change'](()=>{_0x2fbffa['markBlockFormat'](_0x36746a,{'commandName':'imageTypeInline','commandParams':[_0x30e571]},[],'convertBlockImageToInline');});}),_0x2fbffa['enableCommand']('imageTypeBlock',(_0x17e906,_0x1edea4)=>{_0x4ab478['model']['change'](_0x5d0b80=>{let _0x40e1ab=_0x1e9adc['getClosestSelectedImageElement'](_0x4ab478['model']['document']['selection']),_0x2e7c75=_0x5d0b80['createRangeOn'](_0x40e1ab);const _0x4eccb5=tt['fromPosition'](_0x2e7c75['start'],'toPrevious'),_0x40631d=tt['fromPosition'](_0x2e7c75['end'],'toNext');_0x2fbffa['forceDefaultExecution'](()=>_0x17e906(_0x1edea4)),_0x40e1ab=_0x1e9adc['getClosestSelectedImageElement'](_0x4ab478['model']['document']['selection']),_0x2e7c75=_0x5d0b80['createRangeOn'](_0x40e1ab);const _0x5e0695=_0x5d0b80['createRange'](_0x4eccb5,_0x40631d);_0x4eccb5['detach'](),_0x40631d['detach'](),_0x2fbffa['markBlockFormat'](_0x40e1ab,{'commandName':'imageTypeInline','commandParams':[_0x1edea4]},[],'convertInlineImageToBlock'),_0x5e0695['start']['isBefore'](_0x2e7c75['start'])&&_0x2fbffa['markInsertion'](_0x5d0b80['createRange'](_0x5e0695['start'],_0x2e7c75['start']),'convertInlineImageToBlock'),_0x2e7c75['end']['isBefore'](_0x5e0695['end'])&&_0x2fbffa['markInsertion'](_0x5d0b80['createRange'](_0x2e7c75['end'],_0x5e0695['end']),'convertInlineImageToBlock');});}),_0x2fbffa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2fbffa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2fbffa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2fbffa['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2fbffa['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2fbffa['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x364046])=>{const _0x3597ca=_0x2fbffa['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5bcf6f=_0x364046['start'],_0x567db2=_0x364046['end'];const _0x668c9f=_0x4ab478['model']['schema']['getNearestSelectionRange'](_0x5bcf6f,'backward'),_0x3d928b=_0x4ab478['model']['schema']['getNearestSelectionRange'](_0x567db2,'forward');_0x668c9f['isCollapsed']&&(_0x5bcf6f=_0x668c9f['start']),_0x3d928b['isCollapsed']&&(_0x567db2=_0x3d928b['end']),_0x3597ca([_0x4ab478['model']['createRange'](_0x5bcf6f,_0x567db2)]);}),_0x2fbffa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3e2b1b),_0x2fbffa['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3e2b1b)),_0x4ab478['plugins']['has']('ImageCaptionEditing')&&(_0x2fbffa['enableCommand']('toggleImageCaption',(_0x47b1a3,_0x3e04f7)=>{const _0x352bed=_0x4ab478['plugins']['get']('ImageCaptionUtils');let _0x217fd3=_0x1e9adc['getClosestSelectedImageElement'](_0x4ab478['model']['document']['selection']),_0x514bd4=_0x352bed['getCaptionFromImageModelElement'](_0x217fd3);_0x4ab478['model']['change'](()=>{if(_0x514bd4)return void _0x2fbffa['markDeletion'](_0x4ab478['model']['createRangeOn'](_0x514bd4));const _0x3984e6=_0x1e9adc['isBlockImage'](_0x217fd3);_0x47b1a3(_0x3e04f7),_0x217fd3=_0x1e9adc['getClosestSelectedImageElement'](_0x4ab478['model']['document']['selection']),_0x514bd4=_0x352bed['getCaptionFromImageModelElement'](_0x217fd3),_0x2fbffa['markInsertion'](_0x4ab478['model']['createRangeOn'](_0x514bd4),_0x3984e6?null:'imageCaption');});}),_0x2fbffa['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3e2b1b));const _0x1068e0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x12ce81(_0x56446b,_0x19a89b){const _0x1ed9af=_0x1068e0['findIndex'](({type:_0x5bfe96,subType:_0x495d9f})=>_0x56446b['type']==_0x5bfe96&&_0x56446b['subType']==_0x495d9f),_0x35e5b6=_0x1068e0['findIndex'](({type:_0x1ee057,subType:_0x262899})=>_0x19a89b['type']==_0x1ee057&&_0x19a89b['subType']==_0x262899);if(_0x1ed9af<0x0||_0x35e5b6<0x0)return!0x1;const _0x22936e=_0x56446b['getFirstRange'](),_0x3f2055=_0x19a89b['getFirstRange']();if((0x0==_0x1ed9af||0x1==_0x1ed9af)&&0x2==_0x35e5b6&&_0x22936e['isIntersecting'](_0x3f2055))return!0x0;if(0x2==_0x1ed9af&&0x3==_0x35e5b6){const _0x407d76=_0x2fbffa['_findSuggestions'](_0x22936e,'insertion')['filter'](({suggestion:_0x3ad038,meta:_0x1b81bb})=>_0x1b81bb['isOwn']&&'convertInlineImageToBlock'==_0x3ad038['subType']);if(_0x407d76['length']>0x1&&_0x3f2055['end']['isEqual'](_0x22936e['start']))return!0x0;if(0x1==_0x407d76['length']&&(_0x22936e['start']['isEqual'](_0x3f2055['end'])||_0x22936e['end']['isEqual'](_0x3f2055['start'])))return!0x0;}if(0x3==_0x1ed9af&&0x3==_0x35e5b6&&_0x22936e['start']['isBefore'](_0x3f2055['start'])){const _0x41aa7b=_0x22936e['end']['nodeAfter'],_0x491502=_0x3f2055['start']['nodeBefore'];return _0x1e9adc['isBlockImage'](_0x41aa7b)&&_0x41aa7b===_0x491502;}return!0x1;}function _0x3e2b1b(_0x516b0f,_0xdbfcaa){return _0x12ce81(_0x516b0f,_0xdbfcaa)?[_0x516b0f,_0xdbfcaa]:_0x12ce81(_0xdbfcaa,_0x516b0f)?[_0xdbfcaa,_0x516b0f]:null;}_0x4ab478['plugins']['has']('ImageResize')&&(_0x2fbffa['enableDefaultAttributesIntegration']('resizeImage'),_0x2fbffa['descriptionFactory']['registerAttributeLabel']('resizedWidth',At(_0x122d5e,'FORMAT_IMAGE_SIZE'))),_0x4ab478['plugins']['has']('ImageTextAlternativeEditing')&&_0x2fbffa['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4ab478['plugins']['has']('PictureEditing')&&_0x2fbffa['descriptionFactory']['registerDescriptionCallback'](_0x5ecb8e=>{if('attribute'!=_0x5ecb8e['type'])return;const {data:_0xc9fa4f}=_0x5ecb8e;return _0xc9fa4f&&'sources'==_0xc9fa4f['key']?{'type':'format','content':''}:void 0x0;}),_0x4ab478['plugins']['has']('ImageSizeAttributes')&&_0x2fbffa['descriptionFactory']['registerDescriptionCallback'](_0x217a45=>{if('attribute'!=_0x217a45['type'])return;const {data:_0x3010de}=_0x217a45;return!_0x3010de||'width'!=_0x3010de['key']&&'height'!=_0x3010de['key']?void 0x0:{'type':'format','content':''};}),_0x2fbffa['descriptionFactory']['registerDescriptionCallback'](_0x409e3c=>{if(!!_0x1068e0['find'](({type:_0x3eef0e,subType:_0x298432})=>_0x409e3c['type']==_0x3eef0e&&_0x409e3c['subType']==_0x298432))return _0x409e3c['previous']?{}:void 0x0;}),_0x2fbffa['descriptionFactory']['registerDescriptionCallback'](_0x3ffcc9=>{if('insertion'==_0x3ffcc9['type']||'deletion'==_0x3ffcc9['type']){const _0x1eb34c=_0x3ffcc9['getContainedElement']();if(_0x1eb34c&&_0x1eb34c['is']('element','caption'))return{'type':'insertion'==_0x3ffcc9['type']?'addObject':'removeObject','element':_0x1eb34c,'quantity':0x1};}}),_0x2fbffa['descriptionFactory']['registerDescriptionCallback'](_0x462c3e=>'formatBlock'==_0x462c3e['type']&&'convertInlineImageToBlock'==_0x462c3e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x462c3e['type']&&'convertBlockImageToInline'==_0x462c3e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2fbffa['descriptionFactory']['registerDescriptionCallback'](_0x1e24ad=>{if('attribute'!=_0x1e24ad['type'])return;const {data:_0x4be3df}=_0x1e24ad;if(!_0x4be3df||'alt'!=_0x4be3df['key'])return;const _0x2bfa4f=_0x4be3df['newValue'];return _0x2bfa4f?{'type':'format','content':At(_0x122d5e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2bfa4f+'\x22')}:{'type':'format','content':At(_0x122d5e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10d44e=this['editor'],_0x25bb00=_0x10d44e['locale'];_0x10d44e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x470145=>{if('formatBlock'!=_0x470145['type']&&'formatInline'!=_0x470145['type'])return;const {data:_0x27f11b}=_0x470145;if(_0x27f11b){if('imageTextAlternative'==_0x27f11b['commandName']){const _0x2cf47c=_0x27f11b['commandParams'][0x0]['newValue'];return _0x2cf47c?{'type':'format','content':At(_0x25bb00,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2cf47c+'\x22')}:{'type':'format','content':At(_0x25bb00,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x27f11b['commandName']){const _0x2ea30b=_0x27f11b['commandParams'][0x0]['width'];return _0x2ea30b?{'type':'format','content':At(_0x25bb00,'*Set\x20image\x20width:*\x20%0',_0x2ea30b)}:{'type':'format','content':At(_0x25bb00,'*Reset\x20image\x20width*')};}}});}}class se extends _0x3c3277{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5b2d7d=this['editor']['locale'],_0x286470=this['editor']['plugins']['get']('TrackChangesEditing');_0x286470['enableDefaultAttributesIntegration']('replaceImageSource'),_0x286470['descriptionFactory']['registerDescriptionCallback'](_0x505c53=>{if('attribute'!=_0x505c53['type'])return;const {data:_0x39288e}=_0x505c53;return _0x39288e&&'src'==_0x39288e['key']?_0x39288e['newValue']&&_0x39288e['oldValue']?{'type':'format','content':At(_0x5b2d7d,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x11ff51=this['editor']['plugins']['get']('TrackChangesEditing');_0x11ff51['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x11ff51['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x11ff51['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x11ff51['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49983f=this['editor'],_0x350bcc=_0x49983f['locale'];_0x49983f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2433e3=>{if('formatBlock'!=_0x2433e3['type']&&'formatInline'!=_0x2433e3['type'])return;const {data:_0x4aa828}=_0x2433e3;if(!_0x4aa828||'replaceImageSource'!=_0x4aa828['commandName'])return;return{'type':'format','content':At(_0x350bcc,'*Format:*\x20replace\x20image\x20URL')};});}}class re extends _0x3c3277{['afterInit'](){const _0x427102=this['editor'];if(!_0x427102['plugins']['has']('ImageStyleEditing'))return;const _0x3298d5=_0x427102['plugins']['get']('TrackChangesEditing'),_0x1e0580=_0x427102['plugins']['get']('ImageUtils'),_0x46f43f={};_0x3298d5['enableCommand']('imageStyle',(_0x49b2ee,_0xfb2667)=>{const _0x5e58a7=_0x427102['plugins']['get']('Users')['me'],_0x5d8aac=_0x427102['commands']['get']('imageStyle');let _0x310966=_0x1e0580['getClosestSelectedImageElement'](_0x427102['model']['document']['selection']),_0x3bb565=_0x427102['model']['createRangeOn'](_0x310966),_0xdcbf47=_0x5d8aac['value'];if(_0xdcbf47==_0xfb2667['value'])return;const _0x39e7f6={'commandName':'imageStyle','commandParams':[_0xfb2667],'formatGroupId':_0x19019c()};_0x427102['model']['change'](()=>{if(_0x3298d5['getSuggestions']()['filter'](_0x48d2c5=>_0x48d2c5['isInContent']&&_0x5e58a7==_0x48d2c5['author']&&('formatBlock'==_0x48d2c5['type']||'formatInline'==_0x48d2c5['type'])&&('imageStylePreApply'==_0x48d2c5['subType']||'imageStylePostApply'==_0x48d2c5['subType'])&&_0x48d2c5['getFirstRange']()['isEqual'](_0x3bb565))['forEach'](_0x495308=>_0x3298d5['discardSuggestion'](_0x495308['head'])),_0x310966=_0x1e0580['getClosestSelectedImageElement'](_0x427102['model']['document']['selection']),_0x3bb565=_0x427102['model']['createRangeOn'](_0x310966),_0x5d8aac['refresh'](),_0x427102['commands']['get']('imageTypeInline')['refresh'](),_0x427102['commands']['get']('imageTypeBlock')['refresh'](),_0xdcbf47=_0x5d8aac['value'],_0xdcbf47!=_0xfb2667['value'])return _0x1e0580['isInlineImage'](_0x310966)&&_0x5d8aac['shouldConvertImageType'](_0xfb2667['value'],_0x310966)?(_0x49b2ee({..._0xfb2667,'setImageSizes':!0x1}),_0x310966=_0x1e0580['getClosestSelectedImageElement'](_0x427102['model']['document']['selection']),void _0x3298d5['markBlockFormat'](_0x310966,{..._0x39e7f6,'commandReversedParams':[{'value':_0xdcbf47||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1e0580['isBlockImage'](_0x310966)?_0x3298d5['markBlockFormat'](_0x310966,_0x39e7f6,[],'imageStylePostApply'):_0x3298d5['markInlineFormat'](_0x3bb565,_0x39e7f6,'imageStylePostApply'));});});for(const _0x493bfd of _0x427102['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x46f43f[_0x493bfd['name']]=_0x493bfd['title']['toLowerCase']();_0x3298d5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3298d5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3298d5['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3298d5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x23f796])=>{_0x1e0580['setImageNaturalSizeAttributes'](_0x23f796['getContainedElement']());}),_0x3298d5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x276a7a,_0x71384)=>{_0x3298d5['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x276a7a,{'commandName':_0x71384['commandName'],'commandParams':_0x71384['commandReversedParams']});}),_0x3298d5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xd50b6b,_0xa5ce2d){if(_0x5833fd(_0xd50b6b,_0xa5ce2d))return[_0xd50b6b,_0xa5ce2d];if(_0x5833fd(_0xa5ce2d,_0xd50b6b))return[_0xa5ce2d,_0xd50b6b];return null;});const _0x436ff4=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5833fd(_0x1d8955,_0x3f5013){const _0x2c70ab=_0x436ff4['findIndex'](({type:_0x4017cb,subType:_0x1feb17})=>_0x1d8955['type']==_0x4017cb&&_0x1d8955['subType']==_0x1feb17),_0x1b977e=_0x436ff4['findIndex'](({type:_0x1b359d,subType:_0x245c54})=>_0x3f5013['type']==_0x1b359d&&_0x3f5013['subType']==_0x245c54);if(_0x2c70ab<0x0||_0x1b977e<0x0)return!0x1;const _0x3b7f11=_0x1d8955['getFirstRange'](),_0x5ba3b7=_0x3f5013['getFirstRange']();if((0x0==_0x2c70ab||0x1==_0x2c70ab)&&0x2==_0x1b977e&&_0x3b7f11['isIntersecting'](_0x5ba3b7))return!0x0;if(0x2==_0x2c70ab&&0x3==_0x1b977e){const _0x5ac675=_0x3298d5['_findSuggestions'](_0x3b7f11,'insertion')['filter'](({suggestion:_0x2ac0fc,meta:_0x1dafed})=>_0x1dafed['isOwn']&&'convertInlineImageToBlock'==_0x2ac0fc['subType']);if(_0x5ac675['length']>0x1&&_0x5ba3b7['end']['isEqual'](_0x3b7f11['start']))return!0x0;if(0x1==_0x5ac675['length']&&(_0x3b7f11['start']['isEqual'](_0x5ba3b7['end'])||_0x3b7f11['end']['isEqual'](_0x5ba3b7['start'])))return!0x0;}if(0x3==_0x2c70ab&&0x3==_0x1b977e&&_0x3b7f11['start']['isBefore'](_0x5ba3b7['start'])){const _0x321590=_0x3b7f11['end']['nodeAfter'],_0x4e75a5=_0x5ba3b7['start']['nodeBefore'];return _0x1e0580['isBlockImage'](_0x321590)&&_0x321590===_0x4e75a5;}return!0x1;}_0x427102['model']['document']['registerPostFixer'](()=>{let _0x583ce6=!0x1;const _0x7244a8=Array['from'](_0x427102['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2c7793,data:_0x310451}of _0x7244a8){const {group:_0x603fec,type:_0x3c0ee7,subType:_0x19eb90,id:_0x5b532a}=_0x2695e1(_0x2c7793);if('suggestion'==_0x603fec&&_0x3298d5['hasSuggestion'](_0x5b532a)){if('formatBlock'==_0x3c0ee7&&('imageStylePreApply'==_0x19eb90||'imageStylePostApply'==_0x19eb90)){const _0x29754a=_0x3298d5['getSuggestion'](_0x5b532a);if(_0x310451['newRange']){const _0x3e944e=_0x29754a['getFirstRange']()['getContainedElement']();if(_0x1e0580['isBlockImage'](_0x3e944e))continue;_0x3298d5['discardSuggestion'](_0x29754a),_0x583ce6=!0x0;}}if('insertion'==_0x3c0ee7&&'imageCaption'==_0x19eb90&&!_0x310451['newRange']){const _0x21bf26=_0x3298d5['getSuggestion'](_0x5b532a);_0x21bf26['next']&&_0x21bf26['next']['isInContent']&&(_0x3298d5['discardSuggestion'](_0x21bf26['next']),_0x583ce6=!0x0);}}}return _0x583ce6;}),this['_registerLegacyDescription'](_0x46f43f);}['_registerLegacyDescription'](_0x28954f){const _0x3a6b97=this['editor'],_0x192483=_0x3a6b97['locale'];_0x3a6b97['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x384995=>{if('formatBlock'!=_0x384995['type']&&'formatInline'!=_0x384995['type'])return;const {data:_0x313503}=_0x384995;if(!_0x313503||'imageStyle'!=_0x313503['commandName'])return;const _0x1f49f9=_0x313503['commandParams'][0x0]['value'];return _0x4b97b7('side'===_0x1f49f9?At(_0x192483,'FORMAT_SIDE_IMAGE'):_0x28954f[_0x1f49f9]||_0x1f49f9);function _0x4b97b7(_0xf3fc5a){return{'type':'format','content':At(_0x192483,'*Format:*\x20%0',_0xf3fc5a)};}});}}class oe extends _0x3c3277{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2daba2){super(_0x2daba2),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xbe2e5=this['editor'],_0x388664=_0xbe2e5['commands']['get']('importWord'),_0x48652f=_0xbe2e5['commands']['get']('trackChanges');_0x388664&&(_0x388664['on']('execute',(_0x21adc2,[,_0xb871bf])=>{this['_trackChangesValueDuringImport']=_0x48652f['value'],_0xb871bf['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x388664,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x388664,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x48652f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xbe2e5['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xdcf1bb,_0x2c54aa){const {suggestions:_0x31cdda}=_0x2c54aa,_0xb6620=this['editor']['commands']['get']('trackChanges'),_0x34aca0=_0xb6620['value'];this['_trackChangesValueDuringImport']!==_0x34aca0&&(_0xb6620['execute'](),this['_trackChangesExecuted']=!0x0),_0x31cdda&&_0x31cdda['forEach'](({id:_0x2227de,type:_0x3bf9f4,author:_0x50621f,created_at:_0x22c17e})=>{const _0x227af0={'id':_0x2227de,'type':_0x3bf9f4,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x50621f,'createdAt':_0x22c17e?new Date(_0x22c17e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x227af0);});}}class ae extends _0x3c3277{['afterInit'](){const _0x4d6ca4=this['editor'],_0x133652=_0x4d6ca4['plugins']['get']('TrackChangesEditing');if(_0x4d6ca4['plugins']['has']('IndentEditing')&&(_0x133652['enableCommand']('indent'),_0x133652['enableCommand']('outdent')),_0x4d6ca4['plugins']['has']('IndentBlock')){for(const _0x35aff9 of['indentBlock','outdentBlock'])_0x133652['enableDefaultAttributesIntegration'](_0x35aff9);if(_0x4d6ca4['plugins']['has']('ListEditing')){for(const _0x2e700d of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x133652['enableDefaultAttributesIntegration'](_0x2e700d);}}const _0x557c00=_0x4d6ca4['locale'];_0x133652['descriptionFactory']['registerAttributeLabel']('blockIndent',At(_0x557c00,'FORMAT_INDENT')),_0x133652['descriptionFactory']['registerAttributeLabel']('blockIndentList',At(_0x557c00,'FORMAT_INDENT')),_0x133652['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',At(_0x557c00,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e9d9b=this['editor'],_0x539d0f=_0x1e9d9b['locale'],_0x47ce10=_0x1e9d9b['plugins']['get']('TrackChangesEditing');_0x47ce10['descriptionFactory']['registerDescriptionCallback'](_0xa134dc=>{if('formatBlock'!=_0xa134dc['type'])return;const {data:_0x139098}=_0xa134dc;if(!_0x139098)return;if('indentBlock'!=_0x139098['commandName']&&'outdentBlock'!=_0x139098['commandName'])return;const _0x2e1cd6=_0xa134dc['getItems']()[0x0],_0x2b0972=_0x47ce10['descriptionFactory']['getItemLabel'](_0x2e1cd6);return'indentBlock'==_0x139098['commandName']?{'type':'format','content':At(_0x539d0f,'*Indent:*\x20%0',_0x2b0972)}:'outdentBlock'==_0x139098['commandName']?{'type':'format','content':At(_0x539d0f,'*Outdent:*\x20%0',_0x2b0972)}:void 0x0;});}}class ce extends _0x3c3277{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class le extends _0x3c3277{['afterInit'](){const _0x4fea6b=this['editor'];if(!_0x4fea6b['plugins']['has']('LinkEditing'))return;const _0x1cf583=_0x4fea6b['plugins']['get']('TrackChangesEditing'),_0x5658fd=_0x4fea6b['commands']['get']('link');_0x1cf583['enableDefaultAttributesIntegration']('link'),_0x1cf583['enableDefaultAttributesIntegration']('unlink');for(const _0x35d5b8 of _0x5658fd['manualDecorators'])_0x1cf583['descriptionFactory']['registerAttributeLabel'](_0x35d5b8['id'],'link\x20('+_0x35d5b8['label']['toLowerCase']()+')');_0x1cf583['descriptionFactory']['registerDescriptionCallback'](_0x89a69c=>{if('attribute'!=_0x89a69c['type'])return;const {data:_0x4e9016}=_0x89a69c;if(!_0x4e9016||'linkHref'!=_0x4e9016['key'])return;const _0x339598=_0x4e9016['newValue'],_0xbc3a0a=_0x4fea6b['locale'];return{'type':'format','content':null==_0x339598?At(_0xbc3a0a,'*Remove\x20link*'):At(_0xbc3a0a,'*Set\x20link:*\x20%0','\x22'+_0x339598+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x476654=this['editor'],_0x1f9f9c=_0x476654['locale'];_0x476654['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23e231=>{if('formatInline'!=_0x23e231['type'])return;const {data:_0x1b5d9c}=_0x23e231;if(_0x1b5d9c){if('link'==_0x1b5d9c['commandName']){const _0x2e5d8a=_0x1b5d9c['commandParams'][0x0];return{'type':'format','content':At(_0x1f9f9c,'*Set\x20link:*\x20%0','\x22'+_0x2e5d8a+'\x22')};}return'unlink'==_0x1b5d9c['commandName']?{'type':'format','content':At(_0x1f9f9c,'*Remove\x20link*')}:void 0x0;}});}}class ue extends _0x3c3277{['afterInit'](){const _0x14a598=this['editor'],_0x25ec02=_0x14a598['locale'];if(!_0x14a598['plugins']['has']('LegacyListEditing'))return;const _0x5f11a8=_0x14a598['plugins']['get']('TrackChangesEditing'),_0x581f21=_0x14a598['plugins']['has']('LegacyTodoListEditing');function _0x1a60b9(_0x54ce24){return()=>{const _0x3b0dab=_0x14a598['model']['document']['selection'],_0x2fb9c9=_0x14a598['commands']['get'](_0x54ce24);if(_0x2fb9c9['value'])return void _0x14a598['execute']('paragraph',{});const _0xad49e=_0x54ce24['slice'](0x0,-0x4),_0x3c6730=function(_0x51a5b3,_0x5a83ee,_0x3c3126){let _0x25eea1=Array['from'](_0x51a5b3)['filter'](_0x4d91ed=>function(_0x57d75a,_0x239345){return _0x239345['checkChild'](_0x57d75a['parent'],'listItem')&&!_0x239345['isObject'](_0x57d75a);}(_0x4d91ed,_0x3c3126));_0x25eea1=_0x25eea1['filter'](_0x2da7c9=>!_0x2da7c9['is']('element','listItem')||_0x2da7c9['getAttribute']('listType')!=_0x5a83ee);const _0x1fecab=new Set();for(const _0x27384a of _0x25eea1)_0x27384a['is']('element','listItem')?_0x1fecab['add'](he(_0x27384a)):_0x1fecab['add'](_0x27384a);return Array['from'](_0x1fecab);}(_0x3b0dab['getSelectedBlocks'](),_0xad49e,_0x14a598['model']['schema']);_0x14a598['model']['change'](()=>{for(const _0x176466 of _0x3c6730)_0x5f11a8['markBlockFormat'](_0x176466,{'commandName':_0x54ce24,'commandParams':[{'forceValue':!_0x2fb9c9['value']}],'formatGroupId':'blockName'},de(_0x176466));});};}function _0x301487(_0x1fac98){return()=>{const _0x3ef994=function(_0x2244ef){let _0x4733b7=Array['from'](_0x2244ef);const _0x366dab=_0x4733b7['findIndex'](_0x52dd03=>'listItem'!=_0x52dd03['name']);return _0x366dab>-0x1&&(_0x4733b7=_0x4733b7['slice'](0x0,_0x366dab)),_0x4733b7;}(_0x14a598['model']['document']['selection']['getSelectedBlocks']()),_0x23c631=_0x14a598['model']['createRange'](_0x14a598['model']['createPositionAt'](_0x3ef994[0x0],'before'),_0x14a598['model']['createPositionAt'](_0x3ef994[_0x3ef994['length']-0x1],'end'));_0x14a598['model']['change'](()=>{_0x5f11a8['markBlockFormat'](_0x23c631,{'commandName':_0x1fac98,'commandParams':[],'formatGroupId':'listIndent'},function(_0x583c55){const _0x2ad462=new Set();for(const _0x1de134 of _0x583c55){let _0x463861=_0x1de134['nextSibling'];for(;_0x463861&&_0x463861['getAttribute']('listIndent')>_0x1de134['getAttribute']('listIndent');)_0x2ad462['add'](_0x463861),_0x463861=_0x463861['nextSibling'];}return Array['from'](_0x2ad462);}(_0x3ef994));});};}_0x5f11a8['enableCommand']('numberedList',_0x1a60b9('numberedList')),_0x5f11a8['enableCommand']('bulletedList',_0x1a60b9('bulletedList')),_0x581f21&&_0x5f11a8['enableCommand']('todoList',_0x1a60b9('todoList')),_0x5f11a8['enableCommand']('indentList',_0x301487('indentList')),_0x5f11a8['enableCommand']('outdentList',_0x301487('outdentList')),_0x581f21&&_0x5f11a8['enableCommand']('checkTodoList',()=>{const _0x2bce9d=_0x14a598['commands']['get']('checkTodoList'),_0x5ce440=Array['from'](_0x2bce9d['_selectedElements']);_0x5ce440['filter'](_0x5769ec=>_0x5769ec['getAttribute']('todoListChecked')!=_0x2bce9d['value']),_0x14a598['model']['change'](()=>{for(const _0x3fff60 of _0x5ce440)_0x5f11a8['markBlockFormat'](_0x3fff60,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2bce9d['value']}]});});}),_0x5f11a8['descriptionFactory']['registerElementLabel']('listItem',_0x4bc0de=>At(_0x25ec02,'ELEMENT_LIST_ITEM',_0x4bc0de)),_0x5f11a8['descriptionFactory']['registerDescriptionCallback'](_0x16a259=>{if('formatBlock'!=_0x16a259['type']&&'formatInline'!=_0x16a259['type'])return;const {data:_0x2466f7}=_0x16a259;if(_0x2466f7){if('numberedList'==_0x2466f7['commandName']||'bulletedList'==_0x2466f7['commandName']||'todoList'==_0x2466f7['commandName'])switch(_0x2466f7['commandName']['replace']('List','')){case'bulleted':return _0x36eeef(At(_0x25ec02,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x36eeef(At(_0x25ec02,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x36eeef(At(_0x25ec02,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2466f7['commandName'])return{'type':'format','content':At(_0x25ec02,'*Indent:*\x20%0',At(_0x25ec02,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2466f7['commandName'])return{'type':'format','content':At(_0x25ec02,'*Outdent:*\x20%0',At(_0x25ec02,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2466f7['commandName'])return _0x2466f7['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x25ec02,'*Check\x20item*')}:{'type':'format','content':At(_0x25ec02,'*Uncheck\x20item*')};}function _0x36eeef(_0xfbc547){return{'type':'format','content':At(_0x25ec02,'*Change\x20to:*\x20%0',_0xfbc547)};}});}}function he(_0x191dc7){const _0x76c184=_0x191dc7['getAttribute']('listIndent');if(0x0==_0x76c184)return _0x191dc7;let _0x3d5b94=_0x191dc7;for(;_0x191dc7['previousSibling']&&_0x191dc7['previousSibling']['is']('element','listItem');){const _0x3af374=_0x191dc7['previousSibling']['getAttribute']('listIndent');if(_0x3af374==_0x76c184)_0x3d5b94=_0x191dc7['previousSibling'];else{if(_0x3af374<_0x76c184)break;}_0x191dc7=_0x191dc7['previousSibling'];}return _0x3d5b94;}function de(_0x2b9a70){const _0x1cddc7=[];if(_0x2b9a70['is']('element','listItem')&&_0x2b9a70['getAttribute']('listIndent')>0x0){let _0x5d334c=_0x2b9a70['nextSibling'];for(;_0x5d334c&&'listItem'==_0x5d334c['name']&&_0x5d334c['getAttribute']('listIndent')==_0x2b9a70['getAttribute']('listIndent');)_0x1cddc7['push'](_0x5d334c),_0x5d334c=_0x5d334c['nextSibling'];}return _0x1cddc7;}class fe extends _0x3c3277{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x20846c=this['editor']['config']['get']('list.properties'),_0x515ce3=this['editor']['plugins']['get']('TrackChangesEditing');_0x20846c['styles']&&_0x515ce3['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x20846c['reversed']&&_0x515ce3['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x20846c['startIndex']&&_0x515ce3['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x515ce3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x18c002,_0x1a87e8={}){const _0x6dc406=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38f262=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x6dc406['markMultiRangeBlockFormat'](_0x38f262,{'commandName':'listStyle','commandParams':[{'type':_0x1a87e8['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x451373,_0x3d75a9={}){const _0x58886b=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb35745=this['_getSuggestionBlocks'](_0x271505=>_0x271505['is']('element','listItem')&&'numbered'===_0x271505['getAttribute']('listType'));if(_0xb35745['length']<0x1)return;const _0x3c7abb=_0xb35745['map'](_0xfccab7=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xfccab7,'before'),this['editor']['model']['createPositionAt'](_0xfccab7,0x0)));this['editor']['model']['change'](()=>{_0x58886b['markMultiRangeBlockFormat'](_0x3c7abb,{'commandName':'listReversed','commandParams':[{'reversed':_0x3d75a9['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5577f6,_0x451488={}){const _0x2edb58=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f30b9=this['_getSuggestionBlocks'](_0x51d2ad=>_0x51d2ad['is']('element','listItem')&&'numbered'===_0x51d2ad['getAttribute']('listType'));if(_0x1f30b9['length']<0x1)return;const _0x377de1=_0x1f30b9['map'](_0xf72c6f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xf72c6f,'before'),this['editor']['model']['createPositionAt'](_0xf72c6f,0x0)));this['editor']['model']['change'](()=>{_0x2edb58['markMultiRangeBlockFormat'](_0x377de1,{'commandName':'listStart','commandParams':[{'startIndex':_0x451488['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x55e06d){if('formatBlock'!=_0x55e06d['type']&&'formatInline'!=_0x55e06d['type'])return;const _0x2898ce=this['editor']['locale'],{data:_0x8970fa}=_0x55e06d;if(!_0x8970fa)return;let _0x56e6de,_0x4655a6;switch(_0x8970fa['commandName']){case'listStyle':_0x56e6de='*Change\x20to:*\x20%0',_0x4655a6={'type':'format','content':At(_0x2898ce,_0x56e6de,At(_0x2898ce,this['_getTranslationKeyForListStyle'](_0x8970fa['commandParams'][0x0]['type'])))};break;case'listReversed':_0x56e6de=_0x8970fa['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4655a6={'type':'format','content':At(_0x2898ce,_0x56e6de)};break;case'listStart':_0x56e6de='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4655a6={'type':'format','content':At(_0x2898ce,_0x56e6de,_0x8970fa['commandParams'][0x0]['startIndex'])};}return _0x4655a6;}['_getSuggestionBlocksForListStyle'](){const _0x4e0678=this['editor']['plugins']['get']('LegacyListUtils');let _0x5cfc9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5cfc9[0x0]?.['is']('element','listItem')&&_0x5cfc9['unshift'](..._0x4e0678['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5cfc9[_0x5cfc9['length']-0x1]?.['is']('element','listItem')&&_0x5cfc9['push'](..._0x4e0678['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5cfc9=[...new Set(_0x5cfc9)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5cfc9=_0x5cfc9['filter'](_0x393dce=>_0x393dce['is']('element','listItem'))),_0x5cfc9;}['_getSuggestionBlocks'](_0x312621){const _0x8e8fc1=this['editor']['plugins']['get']('LegacyListUtils');let _0x87f4d7=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x312621)['map'](_0x354420=>{const _0x58475d=this['editor']['model']['createPositionAt'](_0x354420,0x0);return[..._0x8e8fc1['getSiblingNodes'](_0x58475d,'backward'),..._0x8e8fc1['getSiblingNodes'](_0x58475d,'forward')];})['flat']();return _0x87f4d7=[...new Set(_0x87f4d7)],_0x87f4d7;}['_getTranslationKeyForListStyle'](_0x54b637){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x54b637)||'default')['toUpperCase']()+'_LIST_'+_0x54b637['toUpperCase']()['replace'](/-/g,'_');}}class ge extends _0x3c3277{['afterInit'](){const _0x15d036=this['editor'];if(!_0x15d036['plugins']['has']('MediaEmbedEditing'))return;const _0x5bf979=_0x15d036['plugins']['get']('TrackChangesEditing'),_0x73ef2b=_0x15d036['locale'];_0x5bf979['enableCommand']('mediaEmbed'),_0x5bf979['descriptionFactory']['registerElementLabel']('media',_0x5a6665=>At(_0x73ef2b,'ELEMENT_MEDIA',_0x5a6665));}}class me extends _0x3c3277{['afterInit'](){const _0x2cdc27=this['editor'];_0x2cdc27['plugins']['has']('MentionEditing')&&_0x2cdc27['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class Ee extends _0x3c3277{['afterInit'](){const _0x82ccee=this['editor'];if(!_0x82ccee['plugins']['has']('MergeFieldsEditing'))return;const _0xc43464=_0x82ccee['plugins']['get']('TrackChangesEditing'),_0x5b4b9f=_0x82ccee['locale'];_0xc43464['enableCommand']('insertMergeField'),_0xc43464['enableCommand']('insertMergeFieldBlock'),_0xc43464['enableCommand']('insertMergeFieldImage'),_0xc43464['descriptionFactory']['registerElementLabel']('mergeField',_0x5328ad=>At(_0x5b4b9f,'ELEMENT_MERGE_FIELD',_0x5328ad)),_0xc43464['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1b53ac=>At(_0x5b4b9f,'ELEMENT_MERGE_FIELD',_0x1b53ac)),_0xc43464['descriptionFactory']['registerDescriptionCallback'](_0x48e8a8=>{if('insertion'!=_0x48e8a8['type']&&'deletion'!=_0x48e8a8['type'])return;const _0xb00a88=_0x48e8a8['getContainedElement']();if(null==_0xb00a88)return;const _0xaa824c=_0x82ccee['plugins']['get']('MergeFieldsEditing');let _0x47fe58;switch(_0xaa824c['getMergeFieldType'](_0xb00a88)){case null:return;case'image':{const _0x47cfa1=_0xaa824c['unwrapAffixes'](_0xb00a88['getAttribute']('src'));_0x47fe58=_0xaa824c['getLabel'](_0x47cfa1)||_0x47cfa1;break;}default:{const _0x3424d2=_0xb00a88['getAttribute']('id');_0x47fe58=_0xaa824c['getLabel'](_0x3424d2)||_0x3424d2;break;}}return'insertion'==_0x48e8a8['type']?{'type':'insertion','content':At(_0x5b4b9f,'*Insert:*\x20%0','\x22'+_0x47fe58+'\x22\x20'+At(_0x5b4b9f,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':At(_0x5b4b9f,'*Remove:*\x20%0','\x22'+_0x47fe58+'\x22\x20'+At(_0x5b4b9f,'ELEMENT_MERGE_FIELD'))};});}}class Te extends _0x3c3277{['afterInit'](){const _0x1e1b6d=this['editor'],_0x246ebb=_0x1e1b6d['plugins']['get']('TrackChangesEditing');_0x1e1b6d['plugins']['has']('MultiLevelList')&&(_0x246ebb['enableDefaultAttributesIntegration']('multiLevelList'),_0x246ebb['descriptionFactory']['registerDescriptionCallback'](_0x38759f=>this['handleDescriptions'](_0x38759f)));}['handleDescriptions'](_0x3e50ca){const _0x42ace0=this['editor']['locale'],{data:_0x1e8108}=_0x3e50ca,_0x1b7737={'type':'format','content':''};if(_0x1e8108&&'listMarkerStyle'==_0x1e8108['key']){if(!_0x1e8108['oldValue'])return{'type':'format','content':At(_0x42ace0,'*Set\x20format:*\x20%0',At(_0x42ace0,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1e8108['newValue']+')'};if(!_0x1e8108['newValue']){let _0x1c6c2f=_0x3e50ca['head'];for(;_0x1c6c2f;){if(_0x1c6c2f['data']&&'listType'==_0x1c6c2f['data']['key']&&_0x1c6c2f['data']['newValue'])return _0x1b7737;_0x1c6c2f=_0x1c6c2f['next'];}return{'type':'format','content':At(_0x42ace0,'*Remove\x20format:*\x20%0',At(_0x42ace0,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1e8108['oldValue']+')'};}}}}class _e extends _0x3c3277{['afterInit'](){const _0x3fafd2=this['editor'];if(!_0x3fafd2['plugins']['has']('PageBreakEditing'))return;_0x3fafd2['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x13f68b=_0x3fafd2['plugins']['get']('TrackChangesEditing'),_0x3f7648=_0x3fafd2['locale'];_0x13f68b['descriptionFactory']['registerElementLabel']('pageBreak',_0x16d821=>At(_0x3f7648,'ELEMENT_PAGE_BREAK',_0x16d821));}}class pe extends _0x3c3277{['afterInit'](){const _0x59227c=this['editor'];if(!_0x59227c['plugins']['has']('Paragraph'))return;const _0x3f87b3=_0x59227c['locale'],_0x1a8ded=_0x59227c['plugins']['get']('TrackChangesEditing');_0x1a8ded['descriptionFactory']['registerElementLabel']('paragraph',_0x486a52=>At(_0x3f87b3,'ELEMENT_PARAGRAPH',_0x486a52)),_0x1a8ded['enableDefaultAttributesIntegration']('paragraph'),_0x1a8ded['enableCommand']('insertParagraph');const _0x301add=_0x1a8ded['descriptionFactory'];_0x301add['registerDescriptionCallback'](_0xd4d24f=>{if('insertion'!==_0xd4d24f['type'])return;const {start:_0x40e28b,end:_0x47ee70}=_0xd4d24f['getFirstRange']();if(!_0x40e28b['isTouching'](_0x47ee70)||!_0x40e28b['nodeAfter'])return;const _0x2b3e31=_0x59227c['model']['schema'],_0x103496=_0x40e28b['nodeAfter'];return _0x2b3e31['isBlock'](_0x103496)&&!_0x2b3e31['isLimit'](_0x103496)&&_0x2b3e31['checkChild'](_0x103496,'$text')?{'type':'insertion','content':At(_0x3f87b3,'*Insert:*\x20%0',_0x301add['getItemLabel'](_0x103496,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x91f53e=this['editor'],_0x330d91=_0x91f53e['locale'];_0x91f53e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b7759=>{if('formatBlock'!=_0x3b7759['type'])return;const {data:_0x277cdc}=_0x3b7759;return _0x277cdc&&'paragraph'==_0x277cdc['commandName']?{'type':'format','content':At(_0x330d91,'*Change\x20to:*\x20%0',At(_0x330d91,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class Le extends _0x3c3277{['afterInit'](){const _0x105503=this['editor'];_0x105503['commands']['get']('replaceSource')&&_0x105503['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class Ie extends _0x3c3277{['afterInit'](){const _0x6c778a=this['editor'];if(!_0x6c778a['plugins']['has']('RemoveFormatEditing'))return;_0x6c778a['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16c099=this['editor'];_0x16c099['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42d991=>{if('formatBlock'!=_0x42d991['type']&&'formatInline'!=_0x42d991['type'])return;const {data:_0x56f5ba}=_0x42d991;return _0x56f5ba&&'removeFormat'==_0x56f5ba['commandName']?{'type':'format','content':At(_0x16c099['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class be extends _0x3c3277{['afterInit'](){const _0x5045f7=this['editor'];if(!_0x5045f7['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xadd2db=_0x5045f7['plugins']['get']('TrackChangesEditing');_0xadd2db['enableCommand']('goToPreviousRestrictedEditingException'),_0xadd2db['enableCommand']('goToNextRestrictedEditingException');const _0x1897e0=_0x5045f7['plugins']['get']('RestrictedEditingModeEditing');_0x1897e0['enableCommand']('trackChanges'),_0x1897e0['enableCommand']('acceptSuggestion'),_0x1897e0['enableCommand']('discardSuggestion'),_0x1897e0['enableCommand']('acceptAllSuggestions'),_0x1897e0['enableCommand']('discardAllSuggestions'),_0x1897e0['enableCommand']('acceptSelectedSuggestions'),_0x1897e0['enableCommand']('discardSelectedSuggestions');}}class Ae extends _0x3c3277{['afterInit'](){const _0x54fc1b=this['editor'];if(!_0x54fc1b['plugins']['has']('ShiftEnter'))return;const _0x2f5dc7=_0x54fc1b['plugins']['get']('TrackChangesEditing');_0x2f5dc7['enableCommand']('shiftEnter'),_0x2f5dc7['descriptionFactory']['registerElementLabel']('softBreak',_0x385fe9=>At(_0x54fc1b['locale'],'ELEMENT_LINE_BREAK',_0x385fe9));}}function ke(_0x1e2fa3,_0x3e04be,_0x4f34ad){const _0x32c503=[];for(const _0x235a8e of _0x3e04be['getItems']())_0x235a8e['hasAttribute'](_0x1e2fa3)&&_0x32c503['push'](_0x4f34ad['createRangeOn'](_0x235a8e));return _0x32c503;}class Ce extends _0x3c3277{['afterInit'](){const _0x4db2ae=this['editor'],_0x35938f=_0x4db2ae['plugins']['get']('TrackChangesEditing');_0x4db2ae['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x35938f['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x5d40f4=this['editor'],_0x4e2438=_0x5d40f4['model'],_0x5a73bf=_0x5d40f4['locale'],_0x23df2e=_0x5d40f4['plugins']['get']('TrackChangesEditing'),_0x3326dc='restrictedEditingException',_0x52030a=_0x5d40f4['commands']['get'](_0x3326dc);_0x23df2e['enableCommand'](_0x3326dc,(_0x341563,_0x3169ec={})=>{const _0xcf04c5=_0x4e2438['document']['selection'];if(_0xcf04c5['isCollapsed'])return void _0x341563(_0x3169ec);const _0x543cda=void 0x0!==_0x3169ec['forceValue']?_0x3169ec['forceValue']:!_0x52030a['value'];_0x4e2438['change'](()=>{const _0x513195=Array['from'](_0xcf04c5['getRanges']());for(const _0x1a6e3c of _0x513195){const _0x523d1a=_0x543cda?[_0x1a6e3c]:ke(_0x3326dc,_0x1a6e3c,_0x4e2438);for(const _0x42fe83 of _0x523d1a)_0x23df2e['markInlineFormat'](_0x42fe83,{'commandName':_0x3326dc,'commandParams':[{'forceValue':_0x543cda}]});}});}),_0x23df2e['descriptionFactory']['registerDescriptionCallback'](_0x581701=>{if('formatBlock'!=_0x581701['type']&&'formatInline'!=_0x581701['type'])return;const {data:_0x3152b3}=_0x581701;return _0x3152b3&&_0x3152b3['commandName']==_0x3326dc?_0x3152b3['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x5a73bf,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x5a73bf,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x5841f9=this['editor'],_0x53af77=_0x5841f9['locale'],_0x230759=_0x5841f9['plugins']['get']('TrackChangesEditing'),_0x358b85='restrictedEditingExceptionBlock',_0x2c6964=this['editor']['commands']['get'](_0x358b85);_0x230759['enableCommand'](_0x358b85,(_0x183424,_0x4d7a73={})=>{const _0x56151f=this['editor']['model']['document']['selection'],_0x4d949e=_0x4d7a73&&void 0x0!==_0x4d7a73['forceValue']?_0x4d7a73['forceValue']:!_0x2c6964['value'];let _0x58f9a6=[];if(_0x4d949e){const _0x4f72ec=Array['from'](_0x56151f['getSelectedBlocks']())['filter'](_0x5f4818=>function(_0x42ecbb){return!!_0x42ecbb['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x5f4818)||function(_0x1152f8,_0x500e3e){const _0x7afed3=_0x500e3e['createContext'](_0x1152f8['parent']);if(!_0x500e3e['checkChild'](_0x7afed3,'restrictedEditingException'))return!0x1;if(!_0x500e3e['checkChild'](_0x7afed3['push']('restrictedEditingException'),_0x1152f8))return!0x1;return!0x0;}(_0x5f4818,this['editor']['model']['schema']));_0x58f9a6=Tt(_0x4f72ec,_0x5841f9['model']);}else{const _0x1bf5d7=Array['from'](_0x56151f['getSelectedBlocks']())['map'](_0x26aff6=>function(_0x2ba5f4){let _0x57084d=_0x2ba5f4;for(;_0x57084d['parent'];){if('restrictedEditingException'==_0x57084d['parent']['name'])return _0x57084d;_0x57084d=_0x57084d['parent'];}return null;}(_0x26aff6))['filter'](_0x1fcfc2=>!!_0x1fcfc2);_0x58f9a6=Tt(_0x1bf5d7,_0x5841f9['model']);}_0x5841f9['model']['change'](()=>{for(const _0x367f0f of _0x58f9a6)_0x230759['markBlockFormat'](_0x367f0f,{'commandName':_0x358b85,'commandParams':[{'forceValue':_0x4d949e}]});});}),_0x230759['descriptionFactory']['registerDescriptionCallback'](_0x55a988=>{const {data:_0x2aec01}=_0x55a988;if(_0x2aec01&&_0x2aec01['commandName']==_0x358b85)return _0x2aec01['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x53af77,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x53af77,'FORMAT_RESTRICTED_DISABLED')};});}}class ye extends _0x3c3277{['afterInit'](){const _0x225871=this['editor'];if(!_0x225871['plugins']['has']('Style')||!_0x225871['plugins']['has']('DataSchema'))return;const _0x649f1f=_0x225871['plugins']['get']('TrackChangesEditing'),_0x1d3a6f=_0x225871['locale'],_0x1cfec7=_0x225871['config']['get']('style')||{},_0x1aff05=_0x225871['plugins']['get']('GeneralHtmlSupport'),_0x34fab4=_0x225871['plugins']['get']('StyleUtils')['normalizeConfig'](_0x225871['plugins']['get']('DataSchema'),_0x1cfec7['definitions']);_0x649f1f['enableDefaultAttributesIntegration']('style');const _0x3a60d4=new Set();for(const _0x329018 of _0x34fab4['block']){const _0x451e0b=_0x1aff05['getGhsAttributeNameForElement'](_0x329018['element']);_0x3a60d4['add'](_0x451e0b);}const _0x2fa6bf=new Set();for(const _0x2ae9c4 of _0x34fab4['inline']){const _0xe871eb=_0x1aff05['getGhsAttributeNameForElement'](_0x2ae9c4['element']);_0x2fa6bf['add'](_0xe871eb);for(const _0x4f20b8 of _0x2ae9c4['ghsAttributes'])_0x2fa6bf['add'](_0x4f20b8);}for(const _0x514f79 of _0x3a60d4)_0x649f1f['descriptionFactory']['registerAttributeLabel'](_0x514f79,At(_0x1d3a6f,'FORMAT_STYLE'));for(const _0x4adae1 of _0x2fa6bf)_0x649f1f['descriptionFactory']['registerAttributeLabel'](_0x4adae1,At(_0x1d3a6f,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e0696=this['editor'],_0x162e58=_0x2e0696['locale'];_0x2e0696['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46c1c7=>{if('formatBlock'!=_0x46c1c7['type']&&'formatInline'!=_0x46c1c7['type'])return;const {data:_0x2d8678}=_0x46c1c7;return _0x2d8678&&'style'===_0x2d8678['commandName']?_0x2d8678['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x162e58,'*Set\x20format:*\x20%0',_0x2d8678['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':At(_0x162e58,'*Remove\x20format:*\x20%0',_0x2d8678['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ne extends _0x3c3277{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x128323){super(_0x128323),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4974cd=this['editor'],_0x3dd18d=_0x4974cd['model']['document']['selection'];if(!_0x4974cd['plugins']['has']('TableEditing'))return;const _0x196eae=_0x4974cd['locale'],_0x257634=_0x4974cd['plugins']['get']('TrackChangesEditing'),_0x32c804=_0x4974cd['plugins']['get']('TableUtils');_0x257634['descriptionFactory']['registerElementLabel']('table',_0x42e763=>At(_0x196eae,'ELEMENT_TABLE',_0x42e763)),this['_setupColumnsRowsFixing'](),_0x257634['enableCommand']('insertTable'),_0x257634['enableCommand']('selectTableRow'),_0x257634['enableCommand']('selectTableColumn');for(const _0x1519fc of['insertTableRowAbove','insertTableRowBelow']){const _0xa5838e=_0x4974cd['commands']['get'](_0x1519fc);_0x257634['enableCommand'](_0x1519fc,_0x8c7b1d=>{_0x4974cd['model']['change'](_0x365bb2=>{_0x8c7b1d();const _0x273d88='above'===_0xa5838e['order'],_0x1bf654=_0x32c804['getSelectionAffectedTableCells'](_0x3dd18d),_0x2e1dc9=_0x32c804['getRowIndexes'](_0x1bf654),_0x12ecdf=_0x273d88?_0x2e1dc9['first']-0x1:_0x2e1dc9['last']+0x1,_0xe5bab0=_0x1bf654[0x0]['findAncestor']('table'),_0x73a94c=_0x32c804['createTableWalker'](_0xe5bab0,{'startRow':_0x12ecdf,'endRow':_0x12ecdf}),_0x2b027f=Array['from'](_0x73a94c)['map'](_0x3c4f88=>_0x365bb2['createRangeOn'](_0x3c4f88['cell']));_0x257634['markMultiRangeInsertion'](_0x2b027f,'tableRow');});});}for(const _0x3ac9c6 of['insertTableColumnLeft','insertTableColumnRight']){const _0x256375=_0x4974cd['commands']['get'](_0x3ac9c6);_0x257634['enableCommand'](_0x3ac9c6,_0x4e99d5=>{_0x4974cd['model']['change'](_0x38259d=>{_0x4e99d5();const _0x110031='left'===_0x256375['order'],_0x15d76c=_0x32c804['getSelectionAffectedTableCells'](_0x3dd18d),_0x2a4736=_0x32c804['getColumnIndexes'](_0x15d76c),_0x3e5cbf=_0x110031?_0x2a4736['first']-0x1:_0x2a4736['last']+0x1,_0x49a9d3=_0x15d76c[0x0]['findAncestor']('table'),_0xb4c266=_0x32c804['createTableWalker'](_0x49a9d3,{'startRow':0x0,'column':_0x3e5cbf,'includeAllSlots':!0x1}),_0xb8bd08=Array['from'](_0xb4c266)['map'](_0x378af6=>_0x38259d['createRangeOn'](_0x378af6['cell']));_0x257634['markMultiRangeInsertion'](_0xb8bd08,'tableColumn');});});}for(const _0xec1624 of['removeTableRow','removeTableColumn']){const _0x46d6b6=_0xec1624['substr'](0xb),_0x18732d=_0x46d6b6['toLowerCase'](),_0x27de3b=_0x18732d['substr'](0x0,0x3)+'span',_0x1f0cee='table'+_0x46d6b6,_0x4c73f7='min'+_0x46d6b6,_0x36fed7='max'+_0x46d6b6;_0x257634['enableCommand'](_0xec1624,()=>{_0x4974cd['model']['change'](_0x1b3287=>{const _0x2bafac=_0x32c804['getSelectionAffectedTableCells'](_0x3dd18d),_0x5cd2eb=_0x2bafac[0x0]['findAncestor']('table');let _0x439ddc;if('removeTableRow'==_0xec1624){const _0x5d2197=_0x32c804['getRowIndexes'](_0x2bafac);_0x439ddc={'startRow':_0x5d2197['first'],'endRow':_0x5d2197['last'],'includeAllSlots':!0x0};}else{const _0x1aff71=_0x32c804['getColumnIndexes'](_0x2bafac);_0x439ddc={'startColumn':_0x1aff71['first'],'endColumn':_0x1aff71['last'],'includeAllSlots':!0x0};}const _0x5d4f63=_0x32c804['createTableWalker'](_0x5cd2eb,_0x439ddc),_0x41960b=Array['from'](_0x5d4f63)['map'](({cell:_0x26b21d})=>_0x26b21d),_0x13dde8=Re(_0x41960b['filter'](_0x2a069f=>_0x2a069f['hasAttribute'](_0x27de3b))),_0x18b892=Re(_0x41960b['filter'](_0x39bb85=>!_0x39bb85['hasAttribute'](_0x27de3b)))['map'](_0x1de917=>_0x1b3287['createRangeOn'](_0x1de917)),_0x2a0e23=_0x257634['markMultiRangeDeletion'](_0x18b892,_0x1f0cee);if(_0x2a0e23&&('tableRow'==_0x2a0e23['subType']||'tableColumn'==_0x2a0e23['subType'])){const _0x3dd778=this['_getSuggestionCoords'](_0x2a0e23);for(const _0xd7279c of _0x13dde8){const _0x107094=_0x1b3287['createRangeOn'](_0xd7279c),_0x17eb16=_0x32c804['getCellLocation'](_0xd7279c),_0xf213c7=_0xd7279c['getAttribute'](_0x27de3b)-0x1,_0x2c87e9=_0x3dd778[_0x4c73f7],_0x11709b=_0x3dd778[_0x36fed7];_0x2c87e9<=_0x17eb16[_0x18732d]&&_0x17eb16[_0x18732d]+_0xf213c7<=_0x11709b&&_0x2a0e23['addRange'](_0x107094);}}});});}function _0x5e9888(_0x2a91f0){const _0x237864=Array['from'](_0x3dd18d['getRanges']())['map'](_0x8eff37=>_0x2b4b27['fromRange'](_0x8eff37));_0x4974cd['model']['change'](_0x3ef83d=>{const _0x5ef4bd=_0x3ef83d['batch'];_0x2a91f0=_0x2a91f0['filter'](_0x5406ae=>'$graveyard'!=_0x5406ae['root']['rootName']),_0x3ef83d['setSelection'](_0x2a91f0),_0x4974cd['commands']['get']('removeTableRow')['refresh'](),_0x4974cd['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4974cd['model']['enqueueChange'](()=>{_0x4974cd['model']['enqueueChange'](_0x5ef4bd,_0x42f24b=>{const _0x23043b=_0x237864['filter'](_0x296ec6=>'$graveyard'!=_0x296ec6['root']['rootName']);_0x23043b['length']>0x0&&_0x42f24b['setSelection'](_0x23043b);for(const _0xb26e29 of _0x237864)_0xb26e29['detach']();});});});}function _0x383f97(_0x414734){_0x4974cd['model']['change'](_0x492255=>{const _0x4f760f=Array['from'](_0x3dd18d['getRanges']())['map'](_0x271330=>_0x2b4b27['fromRange'](_0x271330)),_0xb1b424=[];for(const _0x19b601 of _0x414734)for(const _0x16f79a of _0x19b601['getItems']({'shallow':!0x0}))_0xb1b424['push'](_0x16f79a);for(const _0x36c46f of _0xb1b424)'$graveyard'!=_0x36c46f['root']['rootName']&&(_0x492255['setSelection'](_0x492255['createPositionAt'](_0x36c46f,0x0)),_0x4974cd['commands']['get']('removeTableColumn')['refresh'](),_0x4974cd['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x58d996=_0x4f760f['filter'](_0x348ddf=>'$graveyard'!=_0x348ddf['root']['rootName']);_0x58d996['length']>0x0&&_0x492255['setSelection'](_0x58d996);for(const _0x2efa5e of _0x4f760f)_0x2efa5e['detach']();});}function _0x2a963d(_0x217fe7,_0x7274f){return _0x7274f['every'](_0x20bbb6=>_0x217fe7['some'](_0x42e9f6=>_0x42e9f6['end']['isEqual'](_0x20bbb6['start'])||_0x20bbb6['end']['isEqual'](_0x42e9f6['start'])));}function _0x2dbcd7(_0x5344b7,_0x4bb53c){return!_0x5344b7['some'](_0x35156d=>_0x4bb53c['some'](_0x37f4b=>_0x35156d['isIntersecting'](_0x37f4b)))&&_0x5344b7['some'](_0x4a9a57=>_0x4bb53c['some'](_0x3e3819=>_0x4a9a57['end']['isTouching'](_0x3e3819['start'])));}_0x257634['descriptionFactory']['registerDescriptionCallback'](_0x57c58f=>{if('insertion'!=_0x57c58f['type']&&'deletion'!=_0x57c58f['type'])return;const _0x38d3a5=_0x57c58f['getContainedElement']();if(null!=_0x38d3a5&&_0x38d3a5['is']('element','table')){if('insertion'==_0x57c58f['type']){const _0x1d4b5c=_0x57c58f['getItems']()['filter'](_0x54a5ac=>_0x54a5ac['is']('$textProxy'))['map'](_0x2850f1=>_0x2850f1['data']);if(_0x1d4b5c['length'])return{'type':'insertion','content':At(_0x196eae,'*Insert:*\x20%0',At(_0x196eae,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1d4b5c['join']('\x20')+'\x22'))};}if('deletion'==_0x57c58f['type']){const _0x1bb827=_0x57c58f['getItems']()['filter'](_0xa6d20e=>_0xa6d20e['is']('$textProxy'))['map'](_0x56547c=>_0x56547c['data']);if(_0x1bb827['length'])return{'type':'deletion','content':At(_0x196eae,'*Remove:*\x20%0',At(_0x196eae,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1bb827['join']('\x20')+'\x22'))};}}}),_0x257634['descriptionFactory']['registerDescriptionCallback'](_0x34b4d6=>{if('tableRow'==_0x34b4d6['subType']){const _0x331297=_0x34b4d6['getItems']()['filter'](_0x1cb8bb=>_0x1cb8bb['is']('$textProxy'))['map'](_0x551430=>_0x551430['data']),_0x1e211f=this['_getSuggestionCoords'](_0x34b4d6),_0x1a10d7=_0x1e211f['maxRow']-_0x1e211f['minRow']+0x1;if('insertion'==_0x34b4d6['type'])return _0x331297['length']?{'type':'insertion','content':At(_0x196eae,'*Insert:*\x20%0',At(_0x196eae,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1a10d7,'\x22'+_0x331297['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x196eae,'*Insert:*\x20%0',At(_0x196eae,'ELEMENT_TABLE_ROW',_0x1a10d7))};if('deletion'==_0x34b4d6['type'])return _0x331297['length']?{'type':'deletion','content':At(_0x196eae,'*Remove:*\x20%0',At(_0x196eae,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1a10d7,'\x22'+_0x331297['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x196eae,'*Remove:*\x20%0',At(_0x196eae,'ELEMENT_TABLE_ROW',_0x1a10d7))};}if('tableColumn'==_0x34b4d6['subType']){const _0x2653a7=_0x34b4d6['getItems']()['filter'](_0x5c6fdd=>_0x5c6fdd['is']('$textProxy'))['map'](_0x21a987=>_0x21a987['data']),_0x25906f=this['_getSuggestionCoords'](_0x34b4d6),_0x4952ba=_0x25906f['maxColumn']-_0x25906f['minColumn']+0x1;if('insertion'==_0x34b4d6['type'])return _0x2653a7['length']?{'type':'insertion','content':At(_0x196eae,'*Insert:*\x20%0',At(_0x196eae,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4952ba,'\x22'+_0x2653a7['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x196eae,'*Insert:*\x20%0',At(_0x196eae,'ELEMENT_TABLE_COLUMN',_0x4952ba))};if('deletion'==_0x34b4d6['type'])return _0x2653a7['length']?{'type':'deletion','content':At(_0x196eae,'*Remove:*\x20%0',At(_0x196eae,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4952ba,'\x22'+_0x2653a7['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x196eae,'*Remove:*\x20%0',At(_0x196eae,'ELEMENT_TABLE_COLUMN',_0x4952ba))};}}),_0x257634['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5e9888),_0x257634['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5e9888),_0x257634['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x383f97),_0x257634['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x383f97),_0x257634['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2a963d),_0x257634['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2a963d),_0x257634['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2dbcd7),_0x257634['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2dbcd7);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1415a0=this['editor'],_0x26d9ea=_0x1415a0['model']['document']['selection'];return(_0x592334,_0x3b781b)=>{_0x1415a0['model']['change'](_0x29cad2=>{const {commandName:_0x930865,commandParams:_0x4ecd5d}=_0x3b781b;let _0x682149=_0x592334[0x0]['end']['nodeBefore'];_0x4ecd5d&&_0x4ecd5d[0x0]&&!0x1===_0x4ecd5d[0x0]['forceValue']&&(_0x682149=_0x592334[0x0]['start']['nodeAfter']);const _0x118e78=_0x29cad2['createRangeIn'](_0x682149);if('$graveyard'==_0x118e78['root']['rootName'])return;const _0x24e0c8=Array['from'](_0x26d9ea['getRanges']())['map'](_0x35bac5=>_0x2b4b27['fromRange'](_0x35bac5));_0x29cad2['setSelection'](_0x118e78),_0x1415a0['commands']['get'](_0x930865)['refresh'](),_0x4ecd5d['push']({'forceDefaultExecution':!0x0}),_0x1415a0['execute'](_0x930865,..._0x4ecd5d);const _0x63377=_0x24e0c8['filter'](_0x34e5eb=>'$graveyard'!=_0x34e5eb['root']['rootName']);_0x63377['length']>0x0&&_0x29cad2['setSelection'](_0x63377);for(const _0x3986f3 of _0x24e0c8)_0x3986f3['detach']();});};}['_getCoordsForCells'](_0x2c8cc2){const _0x379dac=this['editor']['plugins']['get']('TableUtils');let _0x42236c=Number['MAX_SAFE_INTEGER'],_0x377d45=Number['MIN_SAFE_INTEGER'],_0x4d50d2=Number['MAX_SAFE_INTEGER'],_0x4d2c0d=Number['MIN_SAFE_INTEGER'];for(const _0x492beb of _0x2c8cc2){if('$graveyard'==_0x492beb['root']['rootName'])continue;const {row:_0x5210f2,column:_0x3becd0}=_0x379dac['getCellLocation'](_0x492beb),_0x5e34b9=_0x492beb['hasAttribute']('rowspan')?_0x492beb['getAttribute']('rowspan')-0x1:0x0,_0x456ce7=_0x492beb['hasAttribute']('colspan')?_0x492beb['getAttribute']('colspan')-0x1:0x0;_0x42236c=_0x5210f2<_0x42236c?_0x5210f2:_0x42236c,_0x377d45=_0x5210f2+_0x5e34b9>_0x377d45?_0x5210f2+_0x5e34b9:_0x377d45,_0x4d50d2=_0x3becd0<_0x4d50d2?_0x3becd0:_0x4d50d2,_0x4d2c0d=_0x3becd0+_0x456ce7>_0x4d2c0d?_0x3becd0+_0x456ce7:_0x4d2c0d;}return{'minRow':_0x42236c,'maxRow':_0x377d45,'minColumn':_0x4d50d2,'maxColumn':_0x4d2c0d};}['_setupColumnsRowsFixing'](){const _0x3eed8b=this['editor'],_0x5c3875=_0x3eed8b['plugins']['get']('TrackChangesEditing'),_0x53dc3a=_0x3eed8b['plugins']['get']('TableUtils');_0x3eed8b['model']['document']['on']('change:data',()=>{const _0x452772=Array['from'](_0x3eed8b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x59d4b3,data:_0x3fa6d5}of _0x452772){const {group:_0x18a414,id:_0x40bbcd,subType:_0x31fd08}=_0x2695e1(_0x59d4b3);if('suggestion'!=_0x18a414)continue;if(null!=_0x3fa6d5['oldRange'])continue;const _0x235654=_0x5c3875['getSuggestion'](_0x40bbcd);this['_tablePostFixingSubtypes']['includes'](_0x31fd08)&&this['_tableSuggestions']['add'](_0x235654);}},{'priority':'low'});const _0x150c18=(_0xaa2c01,_0x4b04a5)=>{let _0x4ca5bf=!0x1;const _0x17218c=_0x4b04a5['createRangeOn'](_0xaa2c01),_0x241679=_0xaa2c01['findAncestor']('table'),_0x1cf3bb=_0x53dc3a['getCellLocation'](_0xaa2c01);for(const _0x15f0c1 of this['_tableSuggestions']){const _0x6e5d4=_0x15f0c1['subType'],_0x4b9674=_0x6e5d4['startsWith']('tablePaste'),_0x5bf85b=_0x6e5d4['substr'](_0x4b9674?0xa:0x5),_0x5b16e6=_0x5bf85b['toLowerCase'](),_0x218cc5=_0x5b16e6['substr'](0x0,0x3)+'span',_0x3fc329='min'+_0x5bf85b,_0x4de1e3='max'+_0x5bf85b;if(!_0x15f0c1['isInContent'])continue;if(_0x241679!=_0x15f0c1['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x15f0c1['isIntersectingWithRange'](_0x17218c))continue;const _0x4dc6a6=_0xaa2c01['hasAttribute'](_0x218cc5)?_0xaa2c01['getAttribute'](_0x218cc5)-0x1:0x0,_0x49db38=this['_getSuggestionCoords'](_0x15f0c1),_0xe74de=_0x49db38[_0x3fc329],_0x51642a=_0x49db38[_0x4de1e3];_0xe74de<=_0x1cf3bb[_0x5b16e6]&&_0x1cf3bb[_0x5b16e6]+_0x4dc6a6<=_0x51642a&&(_0x15f0c1['addRange'](_0x17218c),_0x4ca5bf=!0x0);}return _0x4ca5bf;};_0x3eed8b['model']['document']['registerPostFixer'](_0x80a1e4=>{let _0x20644c=!0x1;for(const _0x22d306 of _0x3eed8b['model']['document']['differ']['getChanges']())if('insert'==_0x22d306['type']){if('tableRow'==_0x22d306['name']){for(const _0x2d6faa of _0x22d306['position']['nodeAfter']['getChildren']())_0x20644c=_0x20644c||_0x150c18(_0x2d6faa,_0x80a1e4);}else'tableCell'==_0x22d306['name']&&(_0x20644c=_0x20644c||_0x150c18(_0x22d306['position']['nodeAfter'],_0x80a1e4));}return _0x20644c;});}['_getSuggestionCoords'](_0x2afc7f){return this['_getCoordsForCells'](_0x2afc7f['getRanges']()['map'](_0x21ff49=>_0x21ff49['start']['nodeAfter']));}}function Re(_0x1b3c9f){return Array['from'](new Set(_0x1b3c9f)['values']());}class Se extends _0x3c3277{static get['requires'](){return[Ne];}['afterInit'](){const _0x266d2c=this['editor'],_0x12bf17=_0x266d2c['model']['document']['selection'],_0x20b3ec=_0x266d2c['locale'];if(!_0x266d2c['plugins']['has']('TableEditing'))return;const _0x4b9ab3=_0x266d2c['plugins']['get']('TrackChangesEditing'),_0x1918ab=_0x266d2c['plugins']['get']('TableUtils'),_0x28d0de=_0x266d2c['plugins']['get'](Ne);_0x28d0de['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4b9ab3['enableCommand']('mergeTableCells',()=>{const _0x33b027=_0x1918ab['getSelectionAffectedTableCells'](_0x266d2c['model']['document']['selection']);_0x266d2c['model']['change'](()=>{_0x4b9ab3['markMultiRangeBlockFormat'](_0x33b027,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x266d2c['commands']['get']('mergeTableCells')['on']('execute',(_0x1796ed,_0x639f6)=>{_0x266d2c['commands']['get']('trackChanges')['value']&&(_0x639f6['length']>0x0&&_0x639f6[_0x639f6['length']-0x1]&&_0x639f6[_0x639f6['length']-0x1]['forceDefaultExecution']||_0x4b9ab3['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1796ed['stop']());},{'priority':'highest'});for(const _0x3e9079 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4422b0=_0x266d2c['commands']['get'](_0x3e9079);_0x4b9ab3['enableCommand'](_0x3e9079,()=>{const _0xa93303=_0x266d2c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xf6b777=>_0xf6b777['is']('element','tableCell')),_0x28eaaa=_0x4422b0['value'];_0x266d2c['model']['change'](()=>{_0x4b9ab3['markMultiRangeBlockFormat']([_0xa93303,_0x28eaaa],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2dcfab of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4655d3=_0x266d2c['commands']['get'](_0x2dcfab);_0x4b9ab3['enableCommand'](_0x2dcfab,()=>{const _0x3cec09=_0x1918ab['getSelectionAffectedTableCells'](_0x266d2c['model']['document']['selection'])[0x0],_0x1802e5=_0x3cec09['findAncestor']('table'),{column:_0x2d8438,row:_0xfaaf6f}=_0x1918ab['getCellLocation'](_0x3cec09);let _0x657942=[];if('horizontally'==_0x4655d3['direction']){const _0x6a871b=_0x1918ab['createTableWalker'](_0x1802e5,{'startRow':_0xfaaf6f,'endRow':_0xfaaf6f,'includeAllSlots':!0x0});_0x657942=Array['from'](_0x6a871b)['map'](_0x17d32f=>_0x17d32f['cell']);}else{const _0x494a96=_0x1918ab['createTableWalker'](_0x1802e5,{'column':_0x2d8438,'includeAllSlots':!0x0});_0x657942=Array['from'](_0x494a96)['map'](_0x59613c=>_0x59613c['cell']);}_0x266d2c['model']['change'](_0x3a64cb=>{_0x4b9ab3['markBlockFormat'](_0x3a64cb['createRangeOn'](_0x3cec09),{'commandName':_0x2dcfab,'commandParams':[]},_0x657942,_0x2dcfab);});});}_0x4b9ab3['descriptionFactory']['registerDescriptionCallback'](_0x25110b=>{if('formatBlock'!=_0x25110b['type']&&'formatInline'!=_0x25110b['type'])return;const {data:_0x5d577c}=_0x25110b;return _0x5d577c&&'mergeTableCells'==_0x5d577c['commandName']?{'type':'format','content':At(_0x20b3ec,'*Merge\x20cells*')}:void 0x0;}),_0x4b9ab3['descriptionFactory']['registerDescriptionCallback'](_0x1edc20=>{if('formatBlock'!=_0x1edc20['type']&&'formatInline'!=_0x1edc20['type'])return;const {data:_0x42f7d9}=_0x1edc20;return _0x42f7d9?'splitTableCellVertically'==_0x42f7d9['commandName']?{'type':'format','content':At(_0x20b3ec,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x42f7d9['commandName']?{'type':'format','content':At(_0x20b3ec,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x42fd46=_0x28d0de['_acceptFormatSuggestionCallbackFactory']();for(const _0x2de3b3 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4b9ab3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2de3b3,'accept',_0x42fd46);for(const _0x813fcd of['splitTableCellVertically','splitTableCellHorizontally'])_0x4b9ab3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x813fcd,'accept',_0x42fd46);_0x4b9ab3['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x56cb9b=>{_0x266d2c['model']['change'](_0x8c4f5e=>{const _0x535714=Array['from'](_0x12bf17['getRanges']())['map'](_0x2b4d05=>_0x2b4b27['fromRange'](_0x2b4d05));_0x8c4f5e['setSelection'](_0x56cb9b),_0x266d2c['commands']['get']('mergeTableCells')['refresh'](),_0x266d2c['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x545f9d=_0x535714['filter'](_0x3cffe5=>'$graveyard'!=_0x3cffe5['root']['rootName']);_0x545f9d['length']>0x0&&_0x8c4f5e['setSelection'](_0x545f9d);for(const _0x4aef5f of _0x535714)_0x4aef5f['detach']();});});for(const _0x298f5b of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3b1fa6=_0x266d2c['commands']['get'](_0x298f5b);_0x3b1fa6['on']('set:isEnabled',(_0x495c07,_0x4e7ff1,_0x536007)=>{if(_0x536007){const _0x34768f=_0x266d2c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3cfa1f=>_0x3cfa1f['is']('element','tableCell'));this['_areMergableCells'](_0x3b1fa6['value'],_0x34768f)||(_0x495c07['return']=!0x1,_0x495c07['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x472b02=this['editor']['commands']['get']('mergeTableCells'),_0x113810=this['editor']['plugins']['get']('TableUtils');if(!_0x472b02['isEnabled'])return!0x1;const _0x34c758=_0x113810['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4f4178 of _0x34c758)for(const _0x19bb2b of _0x34c758)if(_0x4f4178!=_0x19bb2b&&!this['_areMergableCells'](_0x4f4178,_0x19bb2b))return!0x1;return!0x0;}['_areMergableCells'](_0x4ff8e7,_0x50b893){const _0x42eb85=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ee7fb=this['editor']['model']['createRangeOn'](_0x4ff8e7),_0x48addf=this['editor']['model']['createRangeOn'](_0x50b893),_0x193b92=new Set(),_0x593844=new Set();for(const _0x127702 of _0x42eb85['getSuggestions']())if(('insertion'==_0x127702['type']||'deletion'==_0x127702['type']||'mergeTableCells'==_0x127702['subType'])&&_0x127702['isInContent']){for(const _0x146fef of _0x127702['getRanges']())_0x146fef['containsRange'](_0x2ee7fb,!0x0)&&_0x193b92['add'](_0x127702['type']+':'+_0x127702['author']['id']),_0x146fef['containsRange'](_0x48addf,!0x0)&&_0x593844['add'](_0x127702['type']+':'+_0x127702['author']['id']);}if(_0x193b92['size']!=_0x593844['size'])return!0x1;for(const _0x3f315c of _0x193b92)if(!_0x593844['has'](_0x3f315c))return!0x1;return!0x0;}}class Me extends _0x3c3277{static get['requires'](){return[Ne];}['afterInit'](){const _0x11c6c3=this['editor'];if(!_0x11c6c3['plugins']['has']('TableEditing'))return;const _0x56054b=_0x11c6c3['locale'],_0x15e658=_0x11c6c3['plugins']['get']('TrackChangesEditing');_0x15e658['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x15e658['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x15e658['descriptionFactory']['registerAttributeLabel']('headingRows',At(_0x56054b,'FORMAT_HEADER_ROW')),_0x15e658['descriptionFactory']['registerAttributeLabel']('headingColumns',At(_0x56054b,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x465efd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b8bf9=this['editor']['plugins']['get'](Ne)['_acceptFormatSuggestionCallbackFactory']();_0x465efd['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4b8bf9),_0x465efd['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4b8bf9),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0xf22822=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d9660=this['editor']['plugins']['get']('TableUtils');function _0x1afbf2({showActiveMarker:_0x31cd73=!0x0,setDataAttribute:_0x3f57fb=!0x0}={}){return(_0x188009,_0x274728,_0x517c67)=>{const {type:_0x2b8c77,id:_0x17047d}=_0x2695e1(_0x274728['markerName']);if(!_0xf22822['hasSuggestion'](_0x17047d))return;const _0x8e0de6=_0xf22822['getSuggestion'](_0x17047d),_0x9170=_0x8e0de6['data'];if('formatBlock'!=_0x8e0de6['type']||!_0x9170||'setTableColumnHeader'!=_0x9170['commandName'])return;if(_0x274728['item'])return void _0x188009['stop']();if(!_0x517c67['consumable']['consume'](_0x274728['markerRange'],_0x188009['name']))return;const _0x3d8170=_0x274728['markerRange']['start']['nodeAfter'],_0x479a72=_0x274728['markerRange']['end']['nodeBefore'],_0x1f6ca9=_0x3d8170['parent']['parent'],{column:_0x11cd13}=_0x2d9660['getCellLocation'](_0x3d8170),{column:_0x21654e}=_0x2d9660['getCellLocation'](_0x479a72);for(let _0x53972e=_0x11cd13;_0x53972e<=_0x21654e;_0x53972e++){const _0x590a6b=_0x2d9660['createTableWalker'](_0x1f6ca9,{'column':_0x53972e,'includeAllSlots':!0x1});for(const _0x4558c1 of _0x590a6b){const _0x1d7b18=_0x4558c1['cell'],_0x2bdd41=_0x517c67['mapper']['toViewElement'](_0x1d7b18);_0x517c67['writer']['addClass']('ck-suggestion-marker-'+_0x2b8c77,_0x2bdd41),_0x3f57fb&&_0x517c67['writer']['setAttribute']('data-suggestion',_0x17047d,_0x2bdd41),_0x517c67['mapper']['bindElementToMarker'](_0x2bdd41,_0x274728['markerName']),_0x31cd73&&(_0xf22822['activeMarkers']['includes'](_0x274728['markerName'])?_0x517c67['writer']['addClass']('ck-suggestion-marker--active',_0x2bdd41):_0x517c67['writer']['removeClass']('ck-suggestion-marker--active',_0x2bdd41));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1afbf2(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x40865f,_0x2919c9,_0x1fd64c)=>{_0x1fd64c['options']['showSuggestionHighlights']&&_0x1afbf2({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x40865f,_0x2919c9,_0x1fd64c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x56b7a3,_0x5404e9,_0x8f7dce)=>{const {type:_0x3368e6,id:_0x30a4a5}=_0x2695e1(_0x5404e9['markerName']);if(!_0xf22822['hasSuggestion'](_0x30a4a5))return;const _0x57f185=_0xf22822['getSuggestion'](_0x30a4a5),_0x3ad112=_0x57f185['data'];if('formatBlock'!=_0x57f185['type']||!_0x3ad112||'setTableColumnHeader'!=_0x3ad112['commandName'])return;const _0x4ea898=_0x8f7dce['mapper']['markerNameToElements'](_0x5404e9['markerName']);if(_0x4ea898){for(const _0x81d35d of _0x4ea898)_0x8f7dce['writer']['removeClass']('ck-suggestion-marker-'+_0x3368e6,_0x81d35d),_0x8f7dce['writer']['removeClass']('ck-suggestion-marker--active',_0x81d35d),_0x8f7dce['writer']['removeAttribute']('data-suggestion',_0x81d35d),_0x8f7dce['mapper']['unbindElementFromMarkerName'](_0x81d35d,_0x5404e9['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x47cc39=this['editor'],_0x424235=_0x47cc39['locale'];function _0x3c54ea(_0x474e5f){return{'type':'format','content':At(_0x424235,'*Format:*\x20%0',_0x474e5f)};}_0x47cc39['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x368777=>{if('formatBlock'!=_0x368777['type'])return;const {data:_0x1c9cf4}=_0x368777;if(_0x1c9cf4){if('setTableRowHeader'==_0x1c9cf4['commandName']){const _0x5a9bac=_0x1c9cf4['commandParams'][0x0]['forceValue'];return _0x3c54ea(At(_0x424235,_0x5a9bac?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1c9cf4['commandName']){const _0x3e6e80=_0x1c9cf4['commandParams'][0x0]['forceValue'];return _0x3c54ea(At(_0x424235,_0x3e6e80?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Oe extends _0x3c3277{static get['requires'](){return[Ne];}['afterInit'](){const _0x2159b5=this['editor'];if(!_0x2159b5['plugins']['has']('TableEditing')||!_0x2159b5['config']['get']('table.enableFooters'))return;const _0x454890=_0x2159b5['locale'],_0x20c711=_0x2159b5['plugins']['get']('TrackChangesEditing');_0x20c711['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x20c711['descriptionFactory']['registerAttributeLabel']('footerRows',At(_0x454890,'FORMAT_FOOTER_ROW'));}}class we extends _0x3c3277{['afterInit'](){const _0x49698e=this['editor'],_0x195315=_0x49698e['locale'],_0x33db42=_0x49698e['plugins']['get']('TrackChangesEditing');function _0xf25bf(_0x647672){return{'type':'format','content':''+At(_0x195315,'*Set\x20table\x20type:*\x20%0',_0x647672)};}_0x49698e['plugins']['has']('TableLayout')&&(_0x33db42['enableCommand']('insertTableLayout'),_0x33db42['enableDefaultAttributesIntegration']('tableType'),_0x33db42['descriptionFactory']['registerElementLabel'](_0x84da0a=>_0x84da0a['is']('element','table')&&'layout'===_0x84da0a['getAttribute']('tableType'),_0x54b71c=>At(_0x195315,'ELEMENT_LAYOUT_TABLE',_0x54b71c)),_0x33db42['descriptionFactory']['registerDescriptionCallback'](_0x45b9f8=>{const {data:_0x45fe63}=_0x45b9f8;if(_0x45fe63&&'tableType'==_0x45fe63['key'])switch(_0x45fe63['newValue']){case'layout':return _0xf25bf(At(_0x195315,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xf25bf(At(_0x195315,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Fe=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Be['map'](_0x4a3b9a=>[_0x4a3b9a,null]));class De extends _0x3c3277{static get['requires'](){return[Ne];}['afterInit'](){const _0x2134b4=this['editor'];if(!_0x2134b4['plugins']['has']('TableClipboard'))return;const _0x7cf8e1=_0x2134b4['plugins']['get']('TrackChangesEditing'),_0x21765d=_0x2134b4['plugins']['get']('TableUtils'),_0x183e31=_0x2134b4['plugins']['get'](Ne),_0x25d909=_0x2134b4['plugins']['get']('TableClipboard'),_0x1ac25b=_0x2134b4['plugins']['get']('TableSelection'),_0x1a0aa2=_0x2134b4['plugins']['get'](ut);_0x183e31['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2134b4['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2134b4['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4645a5=null,_0x22a1d4=!0x1;_0x1a0aa2['on']('contentInsertion',(_0x197c9f,_0x2adc36)=>{_0x22a1d4='paste'===_0x2adc36['method'];}),_0x2134b4['model']['on']('insertContent',(_0x53acfa,_0x2049b2)=>{if(!_0x22a1d4&&null===_0x1ac25b['getSelectedTableCells']())return;const [_0x98f8d7,_0x313a7e]=_0x2049b2,_0x2c2cd5=_0x2049b2[_0x2049b2['length']-0x1];_0x2c2cd5&&_0x2c2cd5['forceDefaultExecution']||_0x7cf8e1['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3baf1f,_0x3e139e,_0x2e6ca9,_0x51ecfc,_0x115ecf){if(_0x3e139e&&!_0x3e139e['is']('documentSelection'))return!0x1;const _0x138328=_0x115ecf['getTableIfOnlyTableInContent'](_0x3baf1f,_0x2e6ca9);if(!_0x138328||!xe(_0x138328,void 0x0,_0x51ecfc))return!0x1;const _0x4ee9db=_0x51ecfc['getSelectionAffectedTableCells'](_0x2e6ca9['document']['selection']);if(!_0x4ee9db['length'])return!0x1;const _0x436ea8=_0x4ee9db[0x0]['findAncestor']('table'),_0x4bfa08=_0x51ecfc['getRowIndexes'](_0x4ee9db),_0x5c59d5=_0x51ecfc['getColumnIndexes'](_0x4ee9db),_0x2354a5={'startRow':_0x4bfa08['first'],'endRow':_0x4bfa08['last'],'startColumn':_0x5c59d5['first'],'endColumn':_0x5c59d5['last']};return 0x1==_0x4ee9db['length']&&(_0x2354a5['endRow']+=_0x51ecfc['getRows'](_0x138328)-0x1,_0x2354a5['endColumn']+=_0x51ecfc['getColumns'](_0x138328)-0x1),xe(_0x436ea8,_0x2354a5,_0x51ecfc);}(_0x98f8d7,_0x313a7e,_0x2134b4['model'],_0x21765d,_0x25d909)&&(_0x53acfa['stop'](),_0x4645a5={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2134b4['model']['change'](()=>{_0x2134b4['model']['insertContent'](_0x2049b2[0x0],_0x2049b2[0x1],_0x2049b2[0x2],{'forceDefaultExecution':!0x0});const _0x4ece0b=_0x19019c(),{rowInsertionRanges:_0x36eea3,columnInsertionRanges:_0xb80ac6,insertionRanges:_0x2759fa,deletionRanges:_0x265f15,cells:_0x934ae5}=_0x4645a5;_0x36eea3['length']&&_0x7cf8e1['markMultiRangeInsertion'](_0x36eea3,'tablePasteRow',{'tablePasteChainId':_0x4ece0b}),_0xb80ac6['length']&&_0x7cf8e1['markMultiRangeInsertion'](_0xb80ac6,'tablePasteColumn',{'tablePasteChainId':_0x4ece0b}),_0x2759fa['length']&&(_0x7cf8e1['markMultiRangeInsertion'](_0x2759fa,'tablePaste',{'tablePasteChainId':_0x4ece0b,'skipNestingCheck':!0x0}),_0x2759fa['forEach'](_0x33f1f1=>_0x33f1f1['detach']?.())),_0x265f15['length']&&(_0x7cf8e1['markMultiRangeDeletion'](_0x265f15,'tablePaste',{'tablePasteChainId':_0x4ece0b,'skipNestingCheck':!0x0}),_0x265f15['forEach'](_0x3a2f63=>_0x3a2f63['detach']?.()));const _0x2b5f9a=_0x7cf8e1['markMultiRangeBlockFormat'](_0x934ae5['map'](({element:_0x116135})=>_0x116135),{'formatGroupId':_0x19019c()},[],'tablePasteCell',{'tablePasteChainId':_0x4ece0b});if(_0x2b5f9a){const _0x23136b=_0x2b5f9a['getMarkers'](),_0x494624=[];for(const {element:_0x262cf1,attributes:_0x195a32}of _0x934ae5){if(!_0x195a32)continue;const _0x30d339=_0x2134b4['model']['createRangeOn'](_0x262cf1),_0x45e403=_0x23136b['find'](_0x4e573e=>_0x4e573e['getRange']()['isEqual'](_0x30d339));_0x45e403&&_0x494624['push']([_0x45e403['name'],_0x195a32]);}_0x494624['length']&&_0x2b5f9a['setAttribute']('markerAttributes',Object['fromEntries'](_0x494624));}_0x4645a5=null;}));},{'priority':_0xb7cf38['high']+0xa}),_0x1a0aa2['on']('contentInsertion',()=>{_0x22a1d4=!0x1;},{'priority':'lowest'}),_0x2134b4['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xa98580,_0x290efe)=>{const [_0x495e6f,_0x3221fb,,_0x4e8dd1]=_0x290efe;if(!_0x4645a5)return;_0xa98580['stop']();const _0x412f24=_0x495e6f['cell'],_0x3206f8=_0x3221fb,_0x223772=ve(_0x412f24),_0x5ec733=ve(_0x3206f8);_0xa98580['return']=_0x412f24;let _0x3f580c=null,_0x90640f=null;if(_0x5ec733||_0x223772){if(_0x223772&&!_0x5ec733){_0x4e8dd1['remove'](_0x412f24['getChild'](0x0));for(const _0x233f97 of Array['from'](_0x3206f8['getChildren']()))_0x4e8dd1['insert'](_0x233f97,_0x412f24,'end');const _0x5213d7=_0x4645a5['rowInsertionIndexes']['includes'](_0x495e6f['row']),_0x55bef6=_0x4645a5['columnInsertionIndexes']['includes'](_0x495e6f['column']);_0x5213d7||_0x55bef6||(_0x3f580c=_0x2b4b27['fromRange'](_0x4e8dd1['createRangeIn'](_0x412f24)));}else _0x5ec733&&!_0x223772&&(_0x90640f=_0x4e8dd1['createRangeIn'](_0x412f24));}else{const _0x537333=_0x4e8dd1['createElement']('tableCellSuggestion'),_0x382aab=_0x4e8dd1['createElement']('tableCellSuggestion');_0x4e8dd1['wrap'](_0x4e8dd1['createRangeIn'](_0x412f24),_0x382aab),_0x4e8dd1['insert'](_0x537333,_0x412f24,0x0);for(const _0x30040b of Array['from'](_0x3206f8['getChildren']()))_0x4e8dd1['insert'](_0x30040b,_0x537333,'end');_0x3f580c=_0x2b4b27['fromRange'](_0x4e8dd1['createRangeOn'](_0x537333)),_0x90640f=_0x2b4b27['fromRange'](_0x4e8dd1['createRangeOn'](_0x382aab));}const _0x504d3c=Array['from'](_0x3206f8['getAttributes']())['filter'](([_0x4e6a28])=>Be['includes'](_0x4e6a28));_0x4645a5['cells']['push']({'element':_0x412f24,'attributes':_0x504d3c['length']?Object['fromEntries'](_0x504d3c):null}),_0x3f580c&&_0x4645a5['insertionRanges']['push'](_0x3f580c),_0x90640f&&_0x4645a5['deletionRanges']['push'](_0x90640f);},{'priority':'high'}),_0x21765d['on']('insertColumns',(_0x53a7b6,_0xdbcbfc)=>{const [_0x1dd04a,_0x26ecfa={}]=_0xdbcbfc;if(!_0x4645a5)return;const _0x1be28c=_0x26ecfa['at']||0x0,_0x45256c=_0x26ecfa['columns']||0x1;_0x4645a5['columnInsertionIndexes']=new Array(_0x45256c)['fill'](_0x1be28c)['map']((_0x3bdae7,_0xb5ac56)=>_0x3bdae7+_0xb5ac56);for(const {cell:_0x32fb0d}of _0x21765d['createTableWalker'](_0x1dd04a,{'startColumn':_0x1be28c,'endColumn':_0x1be28c+_0x45256c-0x1}))_0x4645a5['columnInsertionRanges']['push'](_0x2134b4['model']['createRangeOn'](_0x32fb0d));},{'priority':'low'}),_0x21765d['on']('insertRows',(_0x183881,_0xc49fd0)=>{const [_0x3868d9,_0x5752be={}]=_0xc49fd0;if(!_0x4645a5)return;const _0x4c3733=_0x5752be['at']||0x0,_0x5c322b=_0x5752be['rows']||0x1;_0x4645a5['rowInsertionIndexes']=new Array(_0x5c322b)['fill'](_0x4c3733)['map']((_0x5d796a,_0x272644)=>_0x5d796a+_0x272644);for(const {cell:_0xc395af}of _0x21765d['createTableWalker'](_0x3868d9,{'startRow':_0x4c3733,'endRow':_0x4c3733+_0x5c322b-0x1}))_0x4645a5['rowInsertionRanges']['push'](_0x2134b4['model']['createRangeOn'](_0xc395af));},{'priority':'low'}),_0x7cf8e1['descriptionFactory']['registerDescriptionCallback'](_0x2bfaa9=>{if(_0x2bfaa9['subType']&&_0x2bfaa9['subType']['startsWith']('tablePaste'))return _0x2bfaa9['previous']?{}:{'type':'insertion','content':At(_0x2134b4['locale'],'*Replace\x20table\x20cells*')};});const _0x12cc6f=()=>!0x1;for(const _0x531431 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x7cf8e1['_suggestionFactory']['registerCustomCallback']('insertion',_0x531431,'join',_0x12cc6f),_0x7cf8e1['_suggestionFactory']['registerCustomCallback']('deletion',_0x531431,'join',_0x12cc6f),_0x7cf8e1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x531431,'join',_0x12cc6f);_0x7cf8e1['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x12cc6f),_0x7cf8e1['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xc6e52d,_0x4b1dfa,_0x9174bc)=>{const _0x149295=_0xc6e52d['map'](_0xa379f6=>_0xa379f6['getContainedElement']())['filter'](_0x43d634=>_0x43d634),_0x50f2ac=new Map(_0x149295['map'](_0x161c27=>[_0x161c27,null]));if(_0x4645a5){for(const {element:_0x1448c9,attributes:_0x2e5954}of _0x4645a5['cells'])_0x2e5954&&_0x50f2ac['set'](_0x1448c9,_0x2e5954);}else{if(_0x9174bc&&_0x9174bc['markerAttributes'])for(const [_0x5e924f,_0x403942]of Object['entries'](_0x9174bc['markerAttributes'])){const _0x467142=_0x2134b4['model']['markers']['get'](_0x5e924f),_0x2d7280=_0x467142?_0x467142['getRange']()['getContainedElement']():null;_0x2d7280&&_0x50f2ac['set'](_0x2d7280,_0x403942);}}_0x2134b4['model']['change'](_0x2149ab=>{for(const [_0x45ef59,_0x2c2cd7]of _0x50f2ac)_0x2149ab['setAttributes']({...Fe,..._0x2c2cd7},_0x45ef59);});});const _0x51fb3a=(_0x489be4,_0x4bda9e)=>{_0x7cf8e1['_suggestionFactory']['registerCustomCallback'](_0x489be4,'tablePaste',_0x4bda9e,(_0x58bde3,_0x3ea755,_0x2dea0c)=>{_0x2134b4['model']['change'](_0x2a2c7e=>{const _0x2323eb=[];for(const _0x478a1c of _0x58bde3){const _0x3bd076=_0x478a1c['start']['nodeAfter'];_0x3bd076['is']('element','tableCellSuggestion')&&_0x2323eb['push'](_0x3bd076);}_0x7cf8e1['_suggestionFactory']['getSuggestionCallback'](_0x489be4,null,_0x4bda9e)(_0x58bde3,_0x3ea755,_0x2dea0c);for(const _0x572b1c of _0x2323eb)'$graveyard'!=_0x572b1c['root']['rootName']&&_0x2a2c7e['unwrap'](_0x572b1c);});});};_0x51fb3a('insertion','accept'),_0x51fb3a('insertion','discard'),_0x51fb3a('deletion','accept'),_0x51fb3a('deletion','discard'),_0x7cf8e1['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4e71e7=>{const _0x214fbd=_0x4e71e7['map'](_0x7fb25=>_0x7fb25['getContainedElement']()),_0xba1035=_0x214fbd[0x0]['findAncestor']('table'),{minRow:_0x5341f9,maxRow:_0x40a9f4}=_0x183e31['_getCoordsForCells'](_0x214fbd);_0x21765d['removeRows'](_0xba1035,{'at':_0x5341f9,'rows':_0x40a9f4-_0x5341f9+0x1});}),_0x7cf8e1['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5bb43e=>{const _0x1beb95=_0x5bb43e['map'](_0x4fa7c5=>_0x4fa7c5['getContainedElement']()),_0x552cb0=_0x1beb95[0x0]['findAncestor']('table'),{minColumn:_0x25befd,maxColumn:_0x1ec9d8}=_0x183e31['_getCoordsForCells'](_0x1beb95);_0x21765d['removeColumns'](_0x552cb0,{'at':_0x25befd,'columns':_0x1ec9d8-_0x25befd+0x1});});const _0x17ad8a=(_0x1e0dc1,_0x1bfe97)=>{if(!_0x1bfe97['subType']||!_0x1bfe97['subType']['startsWith']('tablePaste'))return;const _0x135df6=_0x1bfe97['attributes']['tablePasteChainId'],_0x49dc14=_0x7cf8e1['getSuggestions']()['filter'](_0x2f7357=>_0x2f7357['isInContent']&&_0x2f7357['attributes']&&_0x2f7357['attributes']['tablePasteChainId']==_0x135df6);_0x49dc14['length']&&_0x1bfe97['getAllAdjacentSuggestions']()['length']!=_0x49dc14['length']&&_0x49dc14['reduce']((_0x2f74ea,_0x352f6f)=>(_0x2f74ea['next']=_0x352f6f,_0x352f6f['previous']=_0x2f74ea,_0x352f6f));};function _0x31daae(_0x283049,_0xfd4d02=!0x0){const {id:_0x5d54d5,authorId:_0x2f10c2}=_0x2695e1(_0x283049['markerName']),_0x1c99e5=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x53c13b=_0x7cf8e1['activeMarkers']['includes'](_0x283049['markerName']);return _0x53c13b&&_0x1c99e5['push']('ck-suggestion-marker--active'),{'classes':_0x1c99e5,'attributes':{'data-suggestion':_0x5d54d5,'data-author-id':_0x2f10c2},'priority':_0x53c13b&&_0xfd4d02?0xbc2:0xbb8};}_0x7cf8e1['on']('suggestionLoaded',_0x17ad8a,{'priority':'high'}),_0x7cf8e1['on']('suggestionUnloaded',_0x17ad8a,{'priority':'high'}),_0x2134b4['model']['document']['registerPostFixer'](()=>{let _0x361124=!0x1;const _0x396852=Array['from'](_0x2134b4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x467945,data:_0x52a2c7}of _0x396852){const {group:_0x27ffc4,type:_0x5c4e23,id:_0x4013d3}=_0x2695e1(_0x467945);if('suggestion'!=_0x27ffc4||'deletion'!=_0x5c4e23||_0x52a2c7['oldRange'])continue;if(!_0x7cf8e1['hasSuggestion'](_0x4013d3))continue;const _0x302915=_0x7cf8e1['getSuggestion'](_0x4013d3)['getRanges'](),_0x505fec=_0x2134b4['plugins']['get']('Users')['me'];for(const _0x316b9d of _0x7cf8e1['getSuggestions']()){if(!_0x316b9d['isInContent']||_0x316b9d['author']!=_0x505fec)continue;if('formatBlock'!=_0x316b9d['type']||'tablePasteCell'!=_0x316b9d['subType'])continue;if(_0x316b9d['getRanges']()['every'](_0x37963f=>_0x302915['some'](_0x394ebb=>_0x394ebb['containsRange'](_0x37963f,!0x0)))){for(const _0x7df6d8 of _0x316b9d['getAllAdjacentSuggestions']())_0x7df6d8['isInContent']&&(_0x7df6d8['discard'](),_0x361124=!0x0);}}}return _0x361124;}),_0x2134b4['model']['document']['registerPostFixer'](_0x25f7bb=>{const _0x6e143c=_0x2134b4['commands']['get']('redo');if(!_0x6e143c||!_0x6e143c['_createdBatches']['has'](_0x25f7bb['batch']))return!0x1;let _0x305c38=!0x1;const _0x45aecc=_0x2134b4['plugins']['get']('Users')['me'],_0x1ff815=_0x2134b4['model']['document']['differ']['getChanges'](),_0x18655f=Array['from'](_0x2134b4['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4545fc,data:_0x3a8e29})=>{const {group:_0x173f7e,subType:_0x2d7365,authorId:_0x39a4ce}=_0x2695e1(_0x4545fc);return'suggestion'==_0x173f7e&&'tablePaste'==_0x2d7365&&_0x39a4ce==_0x45aecc['id']&&!_0x3a8e29['oldRange'];});for(const _0x42c2c2 of _0x1ff815){if('insert'!=_0x42c2c2['type']||'tableCellSuggestion'!=_0x42c2c2['name']||0x1!=_0x42c2c2['length'])continue;const _0x4dcb1e=_0x25f7bb['createRange'](_0x42c2c2['position'],_0x42c2c2['position']['getShiftedBy'](0x1));if(!_0x18655f['find'](({data:_0x4454dd})=>_0x4454dd['newRange']['isEqual'](_0x4dcb1e))){for(const {name:_0x32fa08,data:_0x466e1a}of _0x18655f)if(_0x4dcb1e['containsRange'](_0x466e1a['newRange'])){_0x25f7bb['updateMarker'](_0x32fa08,{'range':_0x4dcb1e}),_0x305c38=!0x0;break;}}}return _0x305c38;}),_0x2134b4['model']['document']['registerPostFixer'](_0x2f4fe7=>{let _0x318e81=!0x1;const _0x2702e2=_0x2134b4['plugins']['get']('Users')['me'],_0x2b2479=_0x7cf8e1['getSuggestions']()['filter'](_0x1d0391=>_0x1d0391['isInContent']&&_0x1d0391['author']==_0x2702e2),_0x5682d6=new Set(),_0x2d06ac=new Set();for(const _0x4ae609 of _0x2b2479)if('tablePaste'==_0x4ae609['subType'])for(const _0x4f7416 of _0x4ae609['getMarkers']()){const _0x13ec67=_0x4f7416['getRange']()['getContainedElement']();if(_0x13ec67){if(_0x13ec67['is']('element','tableCellSuggestion')&&ve(_0x13ec67)){_0x4ae609['removeMarker'](_0x4f7416['name']),_0x5682d6['add'](_0x13ec67),_0x318e81=!0x0;const _0x4303cc=_0x13ec67['nextSibling'],_0x778351=_0x13ec67['previousSibling'],_0x1483f8=_0x4303cc&&_0x4303cc['is']('element','tableCellSuggestion'),_0x4dc900=_0x778351&&_0x778351['is']('element','tableCellSuggestion');_0x1483f8&&!_0x5682d6['has'](_0x4303cc)&&_0x2d06ac['add'](_0x4303cc),_0x4dc900&&!_0x5682d6['has'](_0x778351)&&_0x2d06ac['add'](_0x778351);}else _0x13ec67['is']('element','paragraph')&&_0x13ec67['isEmpty']&&(_0x4ae609['removeMarker'](_0x4f7416['name']),_0x318e81=!0x0);}}else{if('tablePasteCell'==_0x4ae609['subType']){if(!_0x4ae609['attributes']||!_0x4ae609['attributes']['tablePasteChainId'])continue;const _0x422d71=_0x4ae609['attributes']['markerAttributes'];if(_0x422d71&&Object['keys'](_0x422d71)['length'])continue;const _0x4f97f4=_0x4ae609['attributes']['tablePasteChainId'];let _0x5e9747=!0x0,_0xb374fa=!0x0;for(const _0x55c081 of _0x2b2479)if(_0x55c081['subType']&&_0x55c081['subType']['startsWith']('tablePaste')){if(!_0x55c081['attributes']['tablePasteChainId']){_0xb374fa=!0x1;break;}if(_0x55c081['id']!=_0x4ae609['id']&&_0x55c081['attributes']['tablePasteChainId']==_0x4f97f4){_0x5e9747=!0x1;break;}}_0xb374fa&&_0x5e9747&&(_0x4ae609['removeMarkers'](),_0x318e81=!0x0);}}for(const _0x279a53 of _0x5682d6)_0x2f4fe7['remove'](_0x279a53);for(const _0x10b51a of _0x2d06ac)_0x2f4fe7['unwrap'](_0x10b51a);return _0x318e81;}),_0x2134b4['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2b1cf3=>_0x31daae(_0x2b1cf3),'converterPriority':'high'}),_0x2134b4['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x385de8,_0x49e704)=>_0x49e704['options']['showSuggestionHighlights']?_0x31daae(_0x385de8,!0x1):null,'converterPriority':'high'});const _0x5ceb03=_0x2134b4['editing']['view'];this['listenTo'](_0x5ceb03['document'],'clipboardOutput',(_0x39e3e4,_0x19dd72)=>{const _0x1d5d49=[];for(const _0x48609d of _0x5ceb03['createRangeIn'](_0x19dd72['content'])['getItems']())_0x48609d['is']('element','suggestion-td')&&_0x1d5d49['push'](_0x48609d);_0x5ceb03['change'](_0x720dd4=>{for(const _0x161a03 of _0x1d5d49)_0x720dd4['move'](_0x720dd4['createRangeIn'](_0x161a03),_0x720dd4['createPositionBefore'](_0x161a03)),_0x720dd4['remove'](_0x161a03);});});}}function ve(_0xdd082f){if(_0xdd082f['isEmpty'])return!0x0;const _0x3a90b6=_0xdd082f['getChild'](0x0);return _0x3a90b6['is']('element','paragraph')&&_0x3a90b6['isEmpty'];}function xe(_0x154b40,_0x476a40={},_0x38c56f){for(const {isAnchor:_0x59bf12,cellHeight:_0x542551,cellWidth:_0xa27fbd}of _0x38c56f['createTableWalker'](_0x154b40,{'includeAllSlots':!0x0,..._0x476a40}))if(!_0x59bf12||0x1!=_0x542551||0x1!=_0xa27fbd)return!0x1;return!0x0;}class Pe extends _0x3c3277{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1cdbda=this['editor']['plugins']['get']('TrackChangesEditing');_0x1cdbda['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1cdbda['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1cdbda['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1cdbda['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1cdbda['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1cdbda['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x14670e,_0x3c3ad3){const _0x498a33=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3137bd=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5a6141=_0x3c3ad3['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2b0d08=_0x3137bd['getColumnGroupElement'](_0x5a6141);let _0x30a0b3=_0x2b0d08?_0x3137bd['getTableColumnsWidths'](_0x2b0d08):null,_0xf6c8f2=_0x5a6141['getAttribute']('tableWidth')||null;const _0xf55d04=_0x3c3ad3['tableWidth']||_0xf6c8f2,_0x155fc3=_0x3c3ad3['columnWidths']||_0x30a0b3,_0x361e17=this['editor']['plugins']['get']('Users')['me'];for(const _0x1d32ac of _0x498a33['getSuggestions']()){const _0x212eac=_0x1d32ac['getContainedElement']();if('resizeTable'===_0x1d32ac['subType']&&_0x212eac===_0x5a6141){_0x1d32ac['author']!==_0x361e17&&_0x1d32ac['discard']();const _0xd6d226=_0x1d32ac['data']['commandParams'];_0xf6c8f2=_0xd6d226[0x0]['tableWidth'],_0x30a0b3=_0xd6d226[0x0]['columnWidths'];break;}}_0x14670e({'table':_0x5a6141,'tableWidth':_0xf55d04,'columnWidths':_0x155fc3}),_0x498a33['markBlockFormat'](_0x5a6141,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xf6c8f2,'columnWidths':_0x30a0b3}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x17c5b5){if('formatBlock'!=_0x17c5b5['type']&&'formatInline'!=_0x17c5b5['type'])return;const {data:_0x3140c7}=_0x17c5b5;if(_0x3140c7&&'resizeTable'===_0x3140c7['formatGroupId']){const _0xf9f7c7='*Format:*\x20resize\x20table';return{'type':'format','content':At(this['editor']['locale'],_0xf9f7c7)};}}}class Ue extends _0x3c3277{['afterInit'](){const _0x1d1c7e=this['editor'];_0x1d1c7e['plugins']['has']('Template')&&_0x1d1c7e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ge extends _0x3c3277{['afterInit'](){const _0x5c6a6e=this['editor'];if(!_0x5c6a6e['commands']['get']('insertTableOfContents'))return;_0x5c6a6e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1dcb87=_0x5c6a6e['plugins']['get']('TrackChangesEditing'),_0x528c2f=_0x5c6a6e['locale'];_0x1dcb87['descriptionFactory']['registerElementLabel']('tableOfContents',_0x494081=>At(_0x528c2f,'ELEMENT_TABLE_OF_CONTENTS',_0x494081));}}class He extends _0x3c3277{['afterInit'](){const _0x3480f3=this['editor'];if(!_0x3480f3['plugins']['has']('Title'))return;_0x3480f3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>At(_0x3480f3['locale'],'ELEMENT_TITLE')),_0x3480f3['model']['document']['registerPostFixer'](_0x5e9c57=>{let _0x150c38=!0x1;const _0x4d7314=Array['from'](_0x3480f3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5afc45,data:_0x6ef342}of _0x4d7314){const {group:_0x251510}=_0x2695e1(_0x5afc45);if('suggestion'!==_0x251510||!_0x6ef342['newRange'])continue;const _0x3f9c29=_0x6ef342['newRange'],_0x453641=_0x3f9c29['end']['nodeBefore'];if(!_0x453641||!_0x453641['is']('element','title-content'))continue;if(!_0x3f9c29['start']['isTouching'](_0x3f9c29['end']))continue;const _0x4de5bc=_0x3480f3['model']['schema']['getNearestSelectionRange'](_0x3f9c29['end'],'forward');if(_0x4de5bc&&_0x4de5bc['isCollapsed']){const _0x54d8ae=_0x5e9c57['createRange'](_0x3f9c29['start'],_0x4de5bc['start']);_0x54d8ae['isEqual'](_0x3f9c29)||(_0x5e9c57['updateMarker'](_0x5afc45,{'range':_0x54d8ae}),_0x150c38=!0x0);}_0x150c38||(_0x5e9c57['removeMarker'](_0x5afc45),_0x150c38=!0x0);}return _0x150c38;});}}class $e extends _0x3c3277{['afterInit'](){const _0x201742=this['editor'],_0x4ae803=_0x201742['plugins']['get']('TrackChangesEditing');_0x201742['plugins']['has']('Uploadcare')&&(_0x4ae803['enableCommand']('uploadcare'),_0x201742['plugins']['has']('UploadcareImageEdit')&&(_0x4ae803['enableCommand']('uploadcareImageEdit'),_0x4ae803['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4ae803['descriptionFactory']['registerDescriptionCallback'](_0x30fbe5=>{if('attribute'!=_0x30fbe5['type'])return;const {data:_0x2041f4}=_0x30fbe5;return _0x2041f4&&'uploadcareImageId'==_0x2041f4['key']?{'type':'format','content':''}:void 0x0;})));}}class We extends _0x3c3277{['afterInit'](){const _0x62c4f5=this['editor'],_0x417b8b=_0x62c4f5['plugins']['get']('TrackChangesEditing');_0x62c4f5['plugins']['has']('UndoEditing')&&(_0x417b8b['enableCommand']('undo'),_0x417b8b['enableCommand']('redo'));}}class Ve extends _0x3c3277{static get['requires'](){return[Ne];}['afterInit'](){const _0xf7a287=this['editor'];if(!_0xf7a287['plugins']['has']('TableCaptionEditing'))return;_0xf7a287['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class je extends _0x3c3277{['tableProperties'];['tableCellProperties'];constructor(_0x4909cc){super(_0x4909cc),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x55ac37=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5527ea of this['tableProperties'])_0x55ac37['enableCommand'](_0x5527ea,(_0x423287,_0x2468c5)=>{const _0x30de45=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5527ea,[_0x30de45],this['tableProperties'],'tableProperties',_0x423287,_0x2468c5);});_0x55ac37['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x55ac37['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x55ac37['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1def2c,_0x6c0c7c)=>this['handleDiscardAction'](this['tableProperties'],_0x1def2c,_0x6c0c7c)),_0x55ac37['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xbeb866 of this['tableCellProperties'])this['editor']['commands']['get'](_0xbeb866)&&_0x55ac37['enableCommand'](_0xbeb866,(_0x5620d5,_0x481d67)=>{const _0x2a81f0=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xbeb866,_0x2a81f0,this['tableCellProperties'],'tableCellProperties',_0x5620d5,_0x481d67);});_0x55ac37['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x55ac37['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x55ac37['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x25446a,_0x55a50a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x25446a,_0x55a50a)),_0x55ac37['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x55ac37['descriptionFactory']['registerAttributeLabel']('tableCellType',At(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x55ac37['descriptionFactory']['registerDescriptionCallback'](_0x4feb54=>this['handleSuggestionDescription'](_0x4feb54)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x16b394,_0x3aafca,_0x2e0ffe,_0x353f01,_0x4f1015,_0x5bbd17){const _0x20e59c=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5bbd17['batch'],()=>{for(const _0x143480 of _0x3aafca){if(this['_getSuggestion'](_0x143480,_0x353f01))_0x4f1015(_0x5bbd17);else{const _0x5603b9={};for(const _0xead090 of _0x2e0ffe){const _0x22b942=_0x143480['getAttribute'](_0xead090);void 0x0!==_0x22b942&&(_0x5603b9[_0xead090]=_0x22b942);}_0x4f1015(_0x5bbd17),_0x20e59c['markBlockFormat'](_0x143480,{'commandParams':[_0x5603b9]},[],_0x353f01);}}});}['handleDiscardAction'](_0x53bfba,_0xd1941c,_0x2c4090){const _0x40fa6e=_0xd1941c[0x0]['start']['nodeAfter'],_0x54c32f=_0x2c4090['commandParams'][0x0];this['editor']['model']['change'](_0x36ecdf=>{for(const _0xf9d871 of _0x53bfba)void 0x0!==_0x54c32f[_0xf9d871]?_0x36ecdf['setAttribute'](_0xf9d871,_0x54c32f[_0xf9d871],_0x40fa6e):_0x36ecdf['removeAttribute'](_0xf9d871,_0x40fa6e);});}['handleSuggestionDescription'](_0x1ae929){if(_0x1ae929['data'])switch(_0x1ae929['subType']){case'tableProperties':return{'type':'format','content':At(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':At(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x2e6c72,_0x3f6bb5){const _0x1021ee=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x47a81d of _0x1021ee['getSuggestions']({'skipNotAttached':!0x0})){const _0x177dc9=_0x47a81d['getContainedElement']();if(_0x47a81d['subType']===_0x3f6bb5&&_0x177dc9===_0x2e6c72)return _0x47a81d;}return null;}['_registerTablePropertiesAttributes'](){const _0xf11f5a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52494c=[...this['tableProperties'],...this['tableCellProperties']];for(const _0xa71d60 of _0x52494c){const _0x55dc75=_0xa71d60['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0xf11f5a['descriptionFactory']['registerAttributeLabel'](_0xa71d60,At(this['editor']['locale'],'FORMAT_'+_0x55dc75));}}}class ze extends _0x3c3277{['afterInit'](){const _0x1d4df3=this['editor'];if(!_0x1d4df3['plugins']['has']('LineHeight'))return;const _0x5a743f=_0x1d4df3['plugins']['get']('TrackChangesEditing'),_0x2919ce=_0x1d4df3['locale'];_0x5a743f['enableDefaultAttributesIntegration']('lineHeight'),_0x5a743f['descriptionFactory']['registerAttributeLabel']('lineHeight',At(_0x2919ce,'FORMAT_LINE_HEIGHT'));}}const Ke='$elementName';class Xe extends _0x3c3277{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0xeecc44,_0x27960a,_0x255ceb,_0x17008f,_0x4b6a3c,Ct,yt,Nt,Rt,Mt,Ot,Bt,Dt,Ft,vt,Pt,Ut,jt,zt,Kt,Yt,qt,Qt,Jt,te,ee,ne,ie,re,se,oe,ae,ce,ue,fe,Te,le,Gt,ze,$t,ge,me,Ee,_e,pe,Le,Ie,be,Ae,Ce,ye,Ne,Se,Me,Oe,we,Ve,De,Pe,Ge,je,Ue,He,$e,We];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4bc0b8){super(_0x4bc0b8),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x40bc96,_0x25d977,_0x9ad457,_0x5a16cd)=>{this['_model']['change'](()=>{for(const _0x549edf of[..._0x5a16cd,..._0x9ad457])this['_model']['markers']['has'](_0x549edf)&&_0x4bc0b8['editing']['reconvertMarker'](_0x549edf);});}),this['descriptionFactory']=new kt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ye(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4bc0b8['plugins']['get'](_0xeecc44),this['_suggestionsConversion']=_0x4bc0b8['plugins']['get'](_0x27960a),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x4bc0b8['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4bc0b8['config']['get']('trackChanges.trackFormatChanges'),_0x4bc0b8['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4bc0b8['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new ht(_0x4bc0b8,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x15d65=this['editor'];_0x15d65['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x28cda0,{writer:_0x27843e})=>{let _0x57328c='suggestion:'+_0x28cda0['getAttribute']('suggestion-type')+':'+_0x28cda0['getAttribute']('id');return _0x28cda0['getAttribute']('marker-count')&&(_0x57328c+=':'+_0x28cda0['getAttribute']('marker-count')),_0x27843e['createElement']('$marker',{'data-name':_0x57328c});}}),_0x15d65['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x15d65['model']['document']['registerPostFixer'](_0x16648a=>{let _0x2dcfa3=!0x1;const _0x6dc88b=Array['from'](_0x15d65['model']['document']['differ']['getChangedMarkers']()),_0x1cea09=new Set();for(const {name:_0x440fb1,data:_0x4421d8}of _0x6dc88b){const {group:_0x19df29,type:_0x5b4b4a,subType:_0x23c087,id:_0x571355}=_0x2695e1(_0x440fb1);if('suggestion'!==_0x19df29)continue;const _0x404521=_0x23c087?'suggestion:'+_0x5b4b4a+':'+_0x23c087+':'+_0x571355:'suggestion:'+_0x5b4b4a+':'+_0x571355,_0x20668b=_0x15d65['model']['markers']['getMarkersGroup'](_0x404521),_0x380c64=_0x15d65['model']['markers']['get'](_0x440fb1),_0x410e4c=this['_suggestions']['get'](_0x571355);if(null!=_0x4421d8['newRange']){'formatInline'==_0x5b4b4a&&(_0x2dcfa3=_0x2dcfa3||Ze(_0x4421d8['newRange'],_0x440fb1,_0x16648a,_0x15d65['model']['schema']));const _0x151b3e='attribute'==_0x5b4b4a&&this['_suggestionsConversion']['isBlockAttribute'](un(_0x23c087)),_0x214a0d='attribute'==_0x5b4b4a&&this['_suggestionsConversion']['isInlineAttribute'](un(_0x23c087));if(_0x4421d8['newRange']['isCollapsed']||'$graveyard'==_0x4421d8['newRange']['root']['rootName']||'formatBlock'==_0x5b4b4a&&!tn(_0x4421d8['newRange'])||_0x151b3e&&!tn(_0x4421d8['newRange'])||_0x214a0d&&en(_0x4421d8['newRange'])||'deletion'==_0x5b4b4a&&en(_0x4421d8['newRange'])||_0x380c64&&nn(_0x380c64,_0x20668b))_0x16648a['removeMarker'](_0x440fb1),_0x2dcfa3=!0x0;else{if(!_0x410e4c||!_0x410e4c['isInContent'])continue;if(_0x4421d8['newRange']&&_0x4421d8['oldRange']&&_0x4421d8['newRange']['isEqual'](_0x4421d8['oldRange']))continue;_0x1cea09['add'](_0x410e4c);}}}return _0x1cea09['size']>0x0&&(_0x2dcfa3=!!this['_joinWithAdjacentSuggestions'](_0x1cea09)||_0x2dcfa3),_0x2dcfa3;}),_0x15d65['model']['document']['registerPostFixer'](_0x524abc=>{let _0x4044b5=!0x1;for(const _0x2ab10a of _0x15d65['model']['document']['differ']['getChanges']())if('insert'==_0x2ab10a['type'])for(const _0x53c0dc of this['_suggestions']['values']()){if(_0x53c0dc['isMultiRange']||!_0x53c0dc['isInContent'])continue;const _0x3d7eb1='formatBlock'==_0x53c0dc['type'],_0x235412=this['_getAttributeKey'](_0x53c0dc),_0x337d6c=_0x235412&&this['_suggestionsConversion']['isBlockAttribute'](_0x235412);if(!_0x3d7eb1&&!_0x337d6c)continue;const _0x48a7c7=_0x53c0dc['getFirstRange']();if(_0x48a7c7['start']['parent']!=_0x48a7c7['end']['parent']&&!_0x48a7c7['end']['isAtEnd']){const _0x22887d=_0x15d65['model']['createPositionAt'](_0x48a7c7['start']['nodeAfter'],'end'),_0x14070b=_0x15d65['model']['createRange'](_0x48a7c7['start'],_0x22887d);_0x524abc['updateMarker'](_0x53c0dc['getFirstMarker'](),{'range':_0x14070b}),_0x4044b5=!0x0;}}return _0x4044b5;}),_0x15d65['model']['document']['registerPostFixer'](_0x217e58=>this['_processAttributeChanges'](_0x217e58)),_0x15d65['model']['document']['registerPostFixer'](_0xa62bf6=>!_0xa62bf6['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xa62bf6)),_0x15d65['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x15d65['model']['document']['on']('change:data',(_0x1b2eea,_0xf6def5)=>{if(!_0xf6def5['isLocal']||_0xf6def5['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x39bcc6=_0x15d65['model']['document']['differ']['getChanges']();if(0x0==_0x39bcc6['length'])return;const _0x319d96=[],_0x5013d0=_0x39bcc6['filter'](_0x1fedea=>'attribute'==_0x1fedea['type']),_0x2b3dd3=_0x39bcc6['filter'](_0x45f808=>'insert'==_0x45f808['type']&&'$text'!=_0x45f808['name']);for(const _0x4f7049 of _0x5013d0)this['_suggestionsConversion']['isRegisteredAttribute'](_0x4f7049['attributeKey'])&&_0x319d96['push']({'key':_0x4f7049['attributeKey'],'newValue':_0x4f7049['attributeNewValue'],'oldValue':_0x4f7049['attributeOldValue'],'range':sn(_0x4f7049['range'],_0x15d65['model'])});for(const _0x12bf61 of _0x2b3dd3){if('rename'!=_0x12bf61['action']&&'refresh'!=_0x12bf61['action'])continue;const _0x251267=rn(_0x12bf61['position']['nodeAfter'],_0x15d65['model']),_0x129777=_0x12bf61['before'];'rename'==_0x12bf61['action']&&_0x319d96['push']({'key':Ke,'newValue':_0x12bf61['name'],'oldValue':_0x129777['name'],'range':_0x251267});for(const [_0x3b7cd6,_0x33e642]of _0x129777['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x3b7cd6))continue;const _0xa02c3f=_0x12bf61['attributes']['get'](_0x3b7cd6);_0x33e642!==_0xa02c3f&&_0x319d96['push']({'key':_0x3b7cd6,'newValue':_0xa02c3f,'oldValue':_0x33e642,'range':_0x251267});}for(const [_0x16f9f0,_0x1a52ac]of _0x12bf61['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x16f9f0)&&(_0x129777['attributes']['has'](_0x16f9f0)||_0x319d96['push']({'key':_0x16f9f0,'newValue':_0x1a52ac,'oldValue':null,'range':_0x251267}));}0x0!=_0x319d96['length']&&_0x15d65['model']['enqueueChange'](_0xf6def5,_0x3a9b7d=>{const _0x564c2f=_0x19019c();for(const {range:_0x337f0e,key:_0x4f9525,oldValue:_0x1b251c,newValue:_0x11a9fe}of _0x319d96)this['markAttributeChange'](_0x337f0e,_0x4f9525,_0x1b251c,_0x11a9fe,{'groupId':_0x564c2f});this['_reduceExistingSuggestions'](_0x3a9b7d,_0x319d96);});},{'priority':'lowest'}),_0x15d65['model']['markers']['on']('update:suggestion',(_0x3c0de1,_0xf6c653,_0xdfbb9b)=>{if(null==_0xdfbb9b){const {id:_0x3ea706}=_0x2695e1(_0xf6c653['name']),_0x2116ab=this['_suggestions']['get'](_0x3ea706);_0x2116ab&&_0x2116ab['addMarkerName'](_0xf6c653['name']);}}),_0x15d65['model']['document']['on']('change:data',()=>{const _0x501bd1=Array['from'](_0x15d65['model']['document']['differ']['getChangedMarkers']())['filter'](_0x47a0a0=>'suggestion'===_0x2695e1(_0x47a0a0['name'])['group']);if(0x0===_0x501bd1['length'])return;_0x501bd1['sort']((_0x343fe4,_0xf3c128)=>{const _0x770010=_0x343fe4['data']['oldRange'],_0x510301=_0xf3c128['data']['oldRange'];return null===_0x770010&&null===_0x510301?0x0:null===_0x770010&&null!==_0x510301?-0x1:null!==_0x770010&&null===_0x510301?0x1:_0x770010['start']['isBefore'](_0x510301['start'])?-0x1:0x1;});const _0x1c93b1=new Set(),_0xe5b7f9=new Set();for(const {name:_0xe4e962,data:_0x38cab6}of _0x501bd1){const {id:_0x39123f}=_0x2695e1(_0xe4e962);if(null===_0x38cab6['oldRange']){const _0xb28a27=this['_handleNewSuggestionMarker'](_0xe4e962);_0xe5b7f9['add'](_0xb28a27);}else{const _0x43ed2b=this['_suggestions']['get'](_0x39123f);null!==_0x38cab6['newRange']||_0x43ed2b['isInContent']?(_0x1c93b1['add'](_0x43ed2b['head']),_0xe5b7f9['add'](_0x43ed2b)):this['_removeSuggestion'](_0x43ed2b);}}_0xe5b7f9['size']>0x0&&this['_refreshSuggestionsChain'](_0xe5b7f9);for(const _0x154fb0 of _0x1c93b1)this['fire']('suggestionChanged',_0x154fb0);}),_0x15d65['model']['on']('applyOperation',(_0x5e9f5d,_0x804535)=>{const _0x182743=_0x804535[0x0];if(!this['_suggestions']['size'])return;if(!_0x182743['isDocumentOperation'])return;if(_0x182743['batch']['isUndo']||!_0x182743['batch']['isLocal'])return;let _0x13c6db,_0x3667b4;switch(_0x182743['type']){case'insert':_0x13c6db=_0x15d65['model']['createPositionAt'](_0x182743['position']),_0x3667b4=_0x13c6db['getShiftedBy'](_0x182743['howMany']);break;case'split':_0x13c6db=_0x15d65['model']['createPositionAt'](_0x182743['splitPosition']),_0x3667b4=_0x15d65['model']['createPositionAt'](_0x182743['moveTargetPosition']);break;case'move':_0x13c6db=_0x15d65['model']['createPositionAt'](_0x182743['targetPosition']),_0x3667b4=_0x13c6db['getShiftedBy'](_0x182743['howMany']);break;default:return;}const _0x5ab95c=_0x15d65['model']['createRange'](_0x13c6db,_0x3667b4);_0x15d65['model']['change'](()=>{for(const {suggestion:_0x190bb6,meta:_0x28e15c}of this['_findSuggestions'](_0x5ab95c)){if(_0x190bb6['isMultiRange'])continue;if('formatInline'==_0x190bb6['type'])continue;const _0x34d5c4=this['_getAttributeKey'](_0x190bb6);if(_0x34d5c4&&this['_suggestionsConversion']['isBlockAttribute'](_0x34d5c4)&&'split'!=_0x182743['type'])continue;const _0x440d2c=_0x190bb6['data']&&_0x190bb6['data']['multipleBlocks'];('formatBlock'!=_0x190bb6['type']||'split'==_0x182743['type']&&!_0x440d2c)&&(_0x28e15c['containsRangeInObject']||'insertion'==_0x190bb6['type']&&_0x28e15c['isOwn']||_0x190bb6['getFirstRange']()['containsRange'](_0x5ab95c)&&this['_breakSuggestionMarker'](_0x190bb6,_0x13c6db,_0x3667b4));}});},{'priority':'lowest'}),_0x15d65['model']['on']('deleteContent',(_0x339274,_0x4da7ed)=>{const _0x1aa7ff=_0x4da7ed[0x0],_0x2da2f3=_0x4da7ed[0x1];if(_0x2da2f3&&_0x2da2f3['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1aa7ff['isCollapsed'])return;const _0x23d312=_0x15d65['model']['schema'],{start:_0x87160f,end:_0x3e4b5e}=_0x1aa7ff['getFirstRange'](),_0x5e46a4=_0x87160f['nodeAfter']&&_0x23d312['isLimit'](_0x87160f['nodeAfter'])?null:_0x23d312['getNearestSelectionRange'](_0x87160f,'forward'),_0x3a93b2=_0x3e4b5e['nodeBefore']&&_0x23d312['isLimit'](_0x3e4b5e['nodeBefore'])?null:_0x23d312['getNearestSelectionRange'](_0x3e4b5e,'backward'),_0x1fa7a8=_0x15d65['model']['createRange'](_0x5e46a4?_0x5e46a4['start']:_0x87160f,_0x3a93b2?_0x3a93b2['end']:_0x3e4b5e);_0x15d65['model']['change'](_0x1c1080=>{this['markDeletion'](_0x1fa7a8);const _0x56a726=_0x15d65['model']['schema']['getNearestSelectionRange'](_0x1fa7a8['start']);_0x1aa7ff['is']('documentSelection')?_0x1c1080['setSelection'](_0x56a726):_0x1aa7ff['setTo'](_0x56a726);}),_0x339274['stop']();},{'priority':_0xb7cf38['normal']+0xa}),_0x15d65['model']['on']('insertContent',(_0x5ed912,_0x12eec6)=>{const _0x4ab64d=_0x12eec6[_0x12eec6['length']-0x1];_0x4ab64d&&_0x4ab64d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x15d65['model']['change'](()=>{let _0x1f39a8=_0x15d65['model']['insertContent'](_0x12eec6[0x0],_0x12eec6[0x1],_0x12eec6[0x2],{'forceDefaultExecution':!0x0});if(!_0x1f39a8)return;_0x5ed912['return']=_0x1f39a8['clone']();const _0x155c38=_0x1f39a8['end']['nodeBefore'],_0x17c42a=_0x15d65['model']['schema'];_0x155c38&&_0x17c42a['isBlock'](_0x155c38)&&!_0x17c42a['isObject'](_0x155c38)&&(_0x1f39a8=_0x15d65['model']['createRange'](_0x1f39a8['start'],_0x15d65['model']['createPositionAt'](_0x155c38,'end'))),this['markInsertion'](_0x1f39a8);}),_0x5ed912['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1aca97=new dt(_0x15d65,this['_suggestions']);_0x15d65['commands']['add']('acceptSuggestion',_0x1aca97),this['enableCommand']('acceptSuggestion');const _0xef020f=new ft(_0x15d65,this['_suggestions']);_0x15d65['commands']['add']('discardSuggestion',_0xef020f),this['enableCommand']('discardSuggestion'),_0x15d65['commands']['add']('acceptAllSuggestions',new Lt(_0x15d65,_0x1aca97,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x15d65['commands']['add']('discardAllSuggestions',new Lt(_0x15d65,_0xef020f,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x15d65['commands']['add']('acceptSelectedSuggestions',new It(_0x15d65,_0x1aca97,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x15d65['commands']['add']('discardSelectedSuggestions',new It(_0x15d65,_0xef020f,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1a4de6=_0x15d65['plugins']['get'](_0xeecc44);this['listenTo'](_0x1a4de6,'addComment',(_0x3b97da,{threadId:_0xe1495d})=>{const _0x5297f4=this['_suggestions']['get'](_0xe1495d);_0x5297f4&&_0x5297f4['commentThread']&&0x1===_0x5297f4['commentThread']['length']&&this['_updateSuggestionData'](_0xe1495d,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1a4de6,'removeComment',(_0x176af5,{threadId:_0x2d6a9f})=>{const _0x12346b=this['_suggestions']['get'](_0x2d6a9f);_0x12346b&&_0x12346b['commentThread']&&!_0x12346b['commentThread']['length']&&this['_updateSuggestionData'](_0x2d6a9f,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0xe963fb){const _0x45044b=_0x5238b3([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x18fc2f=0x3d8d0df,_0x4a8389=0x3df5557^_0x18fc2f,_0x1c3c8b=window[_0x5238b3([0x44,0x61,0x74,0x65])][_0x5238b3([0x6e,0x6f,0x77])](),_0x36d73f=_0xe963fb[_0x5238b3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1e7d39=new window[(_0x5238b3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x359cd4=>{_0x36d73f[_0x5238b3([0x6f,0x6e,0x63,0x65])](_0x5238b3([0x72,0x65,0x61,0x64,0x79]),_0x359cd4);}),_0x3537fb={[_0x5238b3([0x6b,0x74,0x79])]:_0x5238b3([0x45,0x43]),[_0x5238b3([0x75,0x73,0x65])]:_0x5238b3([0x73,0x69,0x67]),[_0x5238b3([0x63,0x72,0x76])]:_0x5238b3([0x50,0x2d,0x32,0x35,0x36]),[_0x5238b3([0x78])]:_0x5238b3([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]),[_0x5238b3([0x79])]:_0x5238b3([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]),[_0x5238b3([0x61,0x6c,0x67])]:_0x5238b3([0x45,0x53,0x32,0x35,0x36])},_0x53c009=_0x36d73f[_0x5238b3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5238b3([0x67,0x65,0x74])](_0x5238b3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5b6c3f(){let _0x1128d8,_0xb0e914=null,_0x4de6b3=null;try{if(_0x53c009==_0x5238b3([0x47,0x50,0x4c]))return _0x5238b3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1128d8=_0x586165(),!_0x1128d8)return _0x5238b3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1128d8[_0x5238b3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4de6b3=_0x9b519a(_0x1128d8[_0x5238b3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1128d8[_0x5238b3([0x6a,0x74,0x69])])),await _0x4eb5e4()?_0x4c0904()?_0x523623()?_0x5238b3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5291c2()?(_0x1128d8[_0x5238b3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5238b3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xb0e914=_0x52207a(_0x5238b3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1c08c8()):_0x5238b3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5238b3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5238b3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5238b3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x523623(){const _0x17b402=[_0x5238b3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5238b3([0x74,0x72,0x69,0x61,0x6c])][_0x5238b3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1128d8[_0x5238b3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1c3c8b/0x3e8:0xe10*_0x4a8389;return _0x1128d8[_0x5238b3([0x65,0x78,0x70])]<_0x17b402;}function _0x4c0904(){const _0x3d0251=_0x1128d8[_0x5238b3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3d0251)return!0x1;if(_0x3d0251[_0x5238b3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5238b3([0x2a])))return!0x0;if(_0x3d0251[_0x5238b3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5238b3([0x54,0x43])))return!0x0;if(_0x3d0251[_0x5238b3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5238b3([0x52,0x54,0x43]))){if(_0x50af2b())return!0x0;if(_0x4b163()||_0x20062d())return!0x0;}return!0x1;}function _0x5291c2(){const _0x21f30c=_0x1128d8[_0x5238b3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x21f30c||0x0==_0x21f30c[_0x5238b3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x55dabf}=new URL(window[_0x5238b3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x21f30c[_0x5238b3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55dabf))return!0x0;const _0x2e921b=_0x55dabf[_0x5238b3([0x73,0x70,0x6c,0x69,0x74])](_0x5238b3([0x2e]));return _0x21f30c[_0x5238b3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1b1d67=>_0x1b1d67[_0x5238b3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5238b3([0x2a])))[_0x5238b3([0x6d,0x61,0x70])](_0x25afa2=>_0x25afa2[_0x5238b3([0x73,0x70,0x6c,0x69,0x74])](_0x5238b3([0x2e])))[_0x5238b3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1812ac=>_0x1812ac[_0x5238b3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2e921b[_0x5238b3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5238b3([0x6d,0x61,0x70])](_0x5ac4d5=>Array(_0x2e921b[_0x5238b3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5ac4d5[_0x5238b3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5238b3([0x66,0x69,0x6c,0x6c])](_0x5ac4d5[0x0]===_0x5238b3([0x2a])?_0x5238b3([0x2a]):'')[_0x5238b3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5ac4d5))[_0x5238b3([0x73,0x6f,0x6d,0x65])](_0x5c17a6=>_0x2e921b[_0x5238b3([0x65,0x76,0x65,0x72,0x79])]((_0xda5c59,_0x356152)=>_0x5c17a6[_0x356152]===_0xda5c59||_0x5c17a6[_0x356152]===_0x5238b3([0x2a])));}function _0x1c08c8(){return _0xb0e914&&_0x4de6b3?new window[(_0x5238b3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x369eba,_0x544106)=>{_0xb0e914[_0x5238b3([0x74,0x68,0x65,0x6e])](_0x369eba,_0x544106),_0x4de6b3[_0x5238b3([0x74,0x68,0x65,0x6e])](_0x3a738a=>{_0x3a738a!=_0x5238b3([0x56,0x61,0x6c,0x69,0x64])&&_0x369eba(_0x3a738a);},_0x544106);}):_0xb0e914||_0x4de6b3||_0x5238b3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x9b519a(_0x6c445b,_0x12b7ff){return new window[(_0x5238b3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2083b4=>{if(_0xe1216c())return _0x2083b4(_0x5238b3([0x56,0x61,0x6c,0x69,0x64]));_0x591327(),_0x36d73f[_0x5238b3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5238b3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1b8077=!0x1;const _0x3f2d03=_0x19019c();function _0x369428(_0x157ef4){return!!_0x157ef4&&(typeof _0x157ef4===_0x5238b3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x157ef4===_0x5238b3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x157ef4[_0x5238b3([0x74,0x68,0x65,0x6e])]===_0x5238b3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x157ef4[_0x5238b3([0x63,0x61,0x74,0x63,0x68])]===_0x5238b3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x6f1010(_0x51faac){_0x175292(_0x51faac)[_0x5238b3([0x74,0x68,0x65,0x6e])](_0x20223e=>{if(!_0x20223e||_0x20223e[_0x5238b3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5238b3([0x6f,0x6b]))return _0x5238b3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x381ae7(_0x5c5995(_0x3f2d03+_0x12b7ff))!=_0x20223e[_0x5238b3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5238b3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5238b3([0x56,0x61,0x6c,0x69,0x64]);})[_0x5238b3([0x74,0x68,0x65,0x6e])](_0xf4174=>(_0x5b34d9(),_0xf4174),()=>{const _0x3055b6=_0x2813d0();return null==_0x3055b6?(_0x5b34d9(),_0x5238b3([0x56,0x61,0x6c,0x69,0x64])):_0x5238b3(_0x1c3c8b-_0x3055b6>(0x27d454df^_0x18fc2f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5238b3([0x74,0x68,0x65,0x6e])](_0x2083b4)[_0x5238b3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2083b4(_0x5238b3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x6c9da7=0x3ee3e5f^_0x18fc2f;function _0x5b34d9(){const _0x500f96=_0x5238b3([0x6c,0x6c,0x63,0x74,0x2d])+_0x381ae7(_0x5c5995(_0x6c445b)),_0x52d6bc=_0x383b70(_0x381ae7(window[_0x5238b3([0x4d,0x61,0x74,0x68])][_0x5238b3([0x63,0x65,0x69,0x6c])](_0x1c3c8b/_0x6c9da7)));window[_0x5238b3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5238b3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x500f96,_0x52d6bc);}function _0x2813d0(){const _0x1198c2=_0x5238b3([0x6c,0x6c,0x63,0x74,0x2d])+_0x381ae7(_0x5c5995(_0x6c445b)),_0x2604a9=window[_0x5238b3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5238b3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1198c2);return _0x2604a9?window[_0x5238b3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x383b70(_0x2604a9),0x10)*_0x6c9da7:null;}function _0x175292(_0x45ca2a){return new window[(_0x5238b3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48b60f,_0xc13090)=>{_0x45ca2a[_0x5238b3([0x74,0x68,0x65,0x6e])](_0x48b60f,_0xc13090),window[_0x5238b3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc13090,0x3d9041f^_0x18fc2f);});}}_0x36d73f[_0x5238b3([0x6f,0x6e])](_0x5238b3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x993e97,_0x1531c5)=>{if(_0x1531c5[0x0]!=_0x6c445b)return _0x2083b4(_0x5238b3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1531c5[0x1]={..._0x1531c5[0x1],[_0x5238b3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3f2d03};},{[_0x5238b3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5238b3([0x68,0x69,0x67,0x68])}),_0x36d73f[_0x5238b3([0x6f,0x6e])](_0x5238b3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x45df17=>{_0x369428(_0x45df17[_0x5238b3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1b8077=!0x0,_0x6f1010(_0x45df17[_0x5238b3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5238b3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5238b3([0x6c,0x6f,0x77])}),_0x1e7d39[_0x5238b3([0x74,0x68,0x65,0x6e])](()=>{_0x1b8077||_0x2083b4(_0x5238b3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xe1216c(){return _0x36d73f[_0x5238b3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5238b3([0x76,0x69,0x65,0x77])][_0x5238b3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5238b3([0x61,0x75,0x74,0x6f]);}function _0x591327(){_0x36d73f[_0x5238b3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5238b3([0x76,0x69,0x65,0x77])][_0x5238b3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5238b3([0x61,0x75,0x74,0x6f]);}}function _0x52207a(_0x1900d4){const _0x5dd93d=[new window[(_0x5238b3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f5963=>setTimeout(_0x1f5963,0x3d1ee13^_0x18fc2f)),_0x1e7d39[_0x5238b3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5238b3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4071e6=>{let _0x291909=0x0;_0x36d73f[_0x5238b3([0x6d,0x6f,0x64,0x65,0x6c])][_0x5238b3([0x6f,0x6e])](_0x5238b3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1093aa,_0x556a60)=>{_0x556a60[0x0][_0x5238b3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x291909++,_0x291909==(0x3d8d537^_0x18fc2f)&&(_0x4071e6(),_0x1093aa[_0x5238b3([0x6f,0x66,0x66])]());});}))];return window[_0x5238b3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5238b3([0x72,0x61,0x63,0x65])](_0x5dd93d)[_0x5238b3([0x74,0x68,0x65,0x6e])](()=>_0x1900d4);}async function _0x1b8b5d(){await _0x1e7d39,_0x36d73f[_0x5238b3([0x6d,0x6f,0x64,0x65,0x6c])][_0x5238b3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5379d9,_0x36d73f[_0x5238b3([0x6d,0x6f,0x64,0x65,0x6c])][_0x5238b3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5379d9,_0x36d73f[_0x5238b3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5238b3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x50af2b(){return _0xa1b3d0(_0x5238b3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3296d5(_0x5238b3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5238b3([0x73,0x74,0x61,0x74,0x65])]==_0x5238b3([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4b163(){return _0xa1b3d0(_0x5238b3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x20062d(){return _0xa1b3d0(_0x5238b3([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4b463a(_0xe7248a){const _0x311bda=_0x196eea();_0x36d73f[_0x311bda]=_0x5238b3([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xe7248a,_0xe7248a!=_0x5238b3([0x56,0x61,0x6c,0x69,0x64])&&_0x1b8b5d();}function _0x196eea(){const _0x59fecf=window[_0x5238b3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5238b3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5238b3([0x6e,0x6f,0x77])]())[_0x5238b3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5238b3([0x2e]),'');let _0x4f6055=_0x5238b3([0x52]);for(let _0x517d63=0x0;_0x517d63<_0x59fecf[_0x5238b3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x517d63+=0x2){let _0x2bd45c=window[_0x5238b3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59fecf[_0x5238b3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x517d63,_0x517d63+0x2));_0x2bd45c>=_0x45044b[_0x5238b3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2bd45c-=_0x45044b[_0x5238b3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4f6055+=_0x45044b[_0x2bd45c];}return _0x4f6055;}function _0x586165(){const _0x5265cd=_0x53c009[_0x5238b3([0x73,0x70,0x6c,0x69,0x74])](_0x5238b3([0x2e]));if(0x3!=_0x5265cd[_0x5238b3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4a541b(_0x5265cd[0x1]);function _0x4a541b(_0x354d06){const _0xe8cc41=_0x2fccbf(_0x354d06);return _0xe8cc41&&_0x15fff8()?_0xe8cc41:null;function _0x15fff8(){const _0x58782f=_0xe8cc41[_0x5238b3([0x6a,0x74,0x69])],_0x39310a=window[_0x5238b3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58782f[_0x5238b3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x58782f[_0x5238b3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x17f8bd={..._0xe8cc41,[_0x5238b3([0x6a,0x74,0x69])]:_0x58782f[_0x5238b3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x58782f[_0x5238b3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x17f8bd[_0x5238b3([0x76,0x63])],_0x5c5995(_0x17f8bd)==_0x39310a;}}}async function _0x4eb5e4(){let _0xa22551=!0x0;try{const _0x1bfde9=_0x53c009[_0x5238b3([0x73,0x70,0x6c,0x69,0x74])](_0x5238b3([0x2e])),[_0x347daf,_0xb4da28,_0x654409]=_0x1bfde9;return _0x4c4b9a(_0x347daf),await _0xdfe1a3(_0x347daf,_0xb4da28,_0x654409),_0xa22551;}catch{return!0x1;}function _0x4c4b9a(_0x49ca61){const _0x2ad8f1=_0x2fccbf(_0x49ca61);_0x2ad8f1&&_0x2ad8f1[_0x5238b3([0x61,0x6c,0x67])]==_0x5238b3([0x45,0x53,0x32,0x35,0x36])||(_0xa22551=!0x1);}async function _0xdfe1a3(_0x1e01f7,_0x289d16,_0x4e38d6){const _0x771fee=window[_0x5238b3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5238b3([0x66,0x72,0x6f,0x6d])](_0x42db65(_0x4e38d6),_0x47b891=>_0x47b891[_0x5238b3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4b1413=new window[(_0x5238b3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5238b3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1e01f7+_0x5238b3([0x2e])+_0x289d16),_0x4e1922=window[_0x5238b3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5238b3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4e1922)return;const _0x29d257=await _0x4e1922[_0x5238b3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5238b3([0x6a,0x77,0x6b]),_0x3537fb,{[_0x5238b3([0x6e,0x61,0x6d,0x65])]:_0x5238b3([0x45,0x43,0x44,0x53,0x41]),[_0x5238b3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5238b3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5238b3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4e1922[_0x5238b3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5238b3([0x6e,0x61,0x6d,0x65])]:_0x5238b3([0x45,0x43,0x44,0x53,0x41]),[_0x5238b3([0x68,0x61,0x73,0x68])]:{[_0x5238b3([0x6e,0x61,0x6d,0x65])]:_0x5238b3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x29d257,_0x771fee,_0x4b1413)||(_0xa22551=!0x1);}}function _0x2fccbf(_0x504551){return _0x504551[_0x5238b3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5238b3([0x65,0x79]))?JSON[_0x5238b3([0x70,0x61,0x72,0x73,0x65])](_0x42db65(_0x504551)):null;}function _0x42db65(_0x319dda){return window[_0x5238b3([0x61,0x74,0x6f,0x62])](_0x319dda[_0x5238b3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5238b3([0x2b]))[_0x5238b3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5238b3([0x2f])));}function _0x5c5995(_0x5106c6){let _0x187860=0x1505;function _0x27ea6c(_0x35e4a9){for(let _0x3b9675=0x0;_0x3b9675<_0x35e4a9[_0x5238b3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b9675++){const _0x39e0c4=_0x35e4a9[_0x5238b3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3b9675);_0x187860=(_0x187860<<0x5)+_0x187860+_0x39e0c4,_0x187860&=_0x187860;}}function _0x1bb915(_0x20cf68){Array[_0x5238b3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x20cf68)?_0x20cf68[_0x5238b3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1bb915):_0x20cf68&&typeof _0x20cf68==_0x5238b3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5238b3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x20cf68)[_0x5238b3([0x73,0x6f,0x72,0x74])]()[_0x5238b3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2f3778,_0x175e02])=>{_0x27ea6c(_0x2f3778),_0x1bb915(_0x175e02);}):_0x27ea6c(window[_0x5238b3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x20cf68));}return _0x1bb915(_0x5106c6),_0x187860>>>0x0;}function _0x381ae7(_0x15a225){return _0x15a225[_0x5238b3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5238b3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5238b3([0x30]));}function _0x383b70(_0x413164){return _0x413164[_0x5238b3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5238b3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5238b3([0x6a,0x6f,0x69,0x6e])]('');}function _0xa1b3d0(_0x1f1694){return _0x36d73f[_0x5238b3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5238b3([0x68,0x61,0x73])](_0x1f1694);}function _0x3296d5(_0x1e5190){return _0x36d73f[_0x5238b3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5238b3([0x67,0x65,0x74])](_0x1e5190);}function _0x5379d9(){}function _0x5238b3(_0x2d6e35){return _0x2d6e35['map'](_0x78ee86=>String['fromCharCode'](_0x78ee86))['join']('');}_0x4b463a(await _0x5b6c3f());}(this);}set['adapter'](_0x2b791a){if(this['_adapter'])throw new _0x58c399('track-changes-adapter-already-set',this);this['_adapter']=_0x2b791a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x238e75=!0x1,toJSON:_0x161208=!0x1}={}){const _0xf66752=[];for(const _0x426209 of this['_suggestions']['values']())_0x238e75&&!_0x426209['isInContent']||_0xf66752['push'](_0x426209);return _0x161208?_0xf66752['map'](_0x5dd976=>_0x5dd976['toJSON']()):_0xf66752;}['getSuggestion'](_0xa2e060){const _0x320272=this['_suggestions']['get'](_0xa2e060);if(!_0x320272)throw new _0x58c399('track-changes-suggestion-not-found',this);return _0x320272;}['hasSuggestion'](_0x55af62){return this['_suggestions']['has'](_0x55af62);}['addSuggestionData'](_0x449214){const {authorId:_0x152b8a,id:_0xf1a2c9,originalSuggestionId:_0x496f3f,attributes:_0x10d262}=_0x449214,[_0x4fd0b9,_0x4e0762]=_0x449214['type']['split'](':'),_0x8bbcf=this['_suggestions']['get'](_0xf1a2c9)||this['_createSuggestion'](_0x4fd0b9,_0x4e0762,_0xf1a2c9,_0x152b8a,_0x10d262,_0x496f3f);if(this['_addThreadToSuggestion'](_0x8bbcf),this['_checkSuggestionCorrectness'](_0x8bbcf,_0x4fd0b9,_0x4e0762||null,_0x152b8a),_0x8bbcf['createdAt']=_0x449214['createdAt'],_0x8bbcf['_isDataLoaded']=!0x0,_0x10d262&&_0x10d262['@external']){const _0x1be1eb=_0x10d262['@external'],_0x24a807=this['_getExternalAuthor'](_0x1be1eb['authorName']);_0x8bbcf['authoredAt']=_0x1be1eb['createdAt'],_0x8bbcf['author']=_0x24a807,_0x8bbcf['isExternal']=!0x0;}else _0x8bbcf['authoredAt']=_0x449214['createdAt'];switch(_0x449214['data']&&(_0x8bbcf['data']=_0x449214['data']),_0x449214['attributes']&&(_0x8bbcf['attributes']=_0x449214['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x8bbcf['_saved']=!0x0),this['_suggestionState']['get'](_0x8bbcf)){case'notReady':this['_suggestionState']['set'](_0x8bbcf,'dataReady');break;case'markerReady':_0x8bbcf['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x8bbcf])),this['_refreshSuggestionsChain'](new Set([_0x8bbcf])),this['_suggestionState']['set'](_0x8bbcf,'ready'),this['fire']('suggestionLoaded',_0x8bbcf)):this['_suggestionState']['set'](_0x8bbcf,'removed');}return _0x8bbcf;}['acceptSuggestion'](_0x12d092){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x226898 of _0x12d092['getAllAdjacentSuggestions']())_0x226898['accept']();});});}['discardSuggestion'](_0x27854e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x111423 of _0x27854e['getAllAdjacentSuggestions']())_0x111423['discard']();});});}['enableCommand'](_0xbd7035,_0x1c4f62){const _0x59acf5=this['editor']['commands']['get'](_0xbd7035);if(!_0x59acf5)throw new _0x58c399('track-changes-command-not-found',this,{'commandName':_0xbd7035});if(this['_enabledCommands']['has'](_0x59acf5))throw new _0x58c399('track-changes-enable-command-twice',this,{'commandName':_0xbd7035});this['_enabledCommands']['add'](_0x59acf5),_0x1c4f62&&_0x59acf5['on']('execute',(_0x514d22,_0x53c72a)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x53c72a['length']>0x0&&_0x53c72a[_0x53c72a['length']-0x1]&&_0x53c72a[_0x53c72a['length']-0x1]['forceDefaultExecution']?_0x53c72a['pop']():(_0x514d22['return']=_0x1c4f62((..._0xc1647c)=>_0x59acf5['execute'](..._0xc1647c,{'forceDefaultExecution':!0x0}),..._0x53c72a),_0x514d22['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1f38d9){let _0x3d449c,_0x10080b;const _0x26767b=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3d449c=_0x1f38d9();}catch(_0x3d73bd){_0x10080b=_0x3d73bd;}return _0x26767b||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x10080b&&_0x58c399['rethrowUnexpectedError'](_0x10080b,this),_0x3d449c;}['markInsertion'](_0x1d6680,_0x37f7b1=null,_0x135fea={}){if(_0x1d6680['isCollapsed'])return null;const _0x14c7a2=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x135fea['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x37957a,meta:_0x3bded3}of this['_findSuggestions'](_0x1d6680,'insertion'))if(_0x3bded3['isOwn']){if(!_0x3bded3['isNextTo']){if(_0x3bded3['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!cn(_0x37957a,_0x135fea))continue;return _0x37957a;}if(cn(_0x37957a,_0x135fea))return _0x37957a;this['_breakSuggestionMarker'](_0x37957a,_0x1d6680['start'],_0x1d6680['end']);break;}if(_0x37f7b1==_0x37957a['subType']&&cn(_0x37957a,_0x135fea)){const _0xecc926=_0x37957a['getFirstRange']();return _0xecc926['start']['isEqual'](_0x1d6680['end'])?this['_setSuggestionRange'](_0x37957a,this['_model']['createRange'](_0x1d6680['start'],_0xecc926['end'])):this['_setSuggestionRange'](_0x37957a,this['_model']['createRange'](_0xecc926['start'],_0x1d6680['end'])),_0x37957a;}}const _0x39e018=_0x19019c(),_0x29e25a=_0x14c7a2['id'],_0x40dc2d=_0x37f7b1?'insertion:'+_0x37f7b1:'insertion',_0x24805b=this['_setSuggestionData']({'id':_0x39e018,'type':_0x40dc2d,'createdAt':new Date(),'authorId':_0x29e25a,'attributes':_0x135fea});return this['_addSuggestionMarker'](_0x40dc2d,_0x39e018,_0x29e25a,_0x1d6680),_0x24805b;}['markMultiRangeInsertion'](_0x5a7240,_0x53908a='multi',_0xd7ffc7={}){const _0x54df9a=this['editor']['plugins']['get']('Users')['me'],_0x1ce6e5=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x53908a,'join');this['_trackingSessionId']&&(_0xd7ffc7['trackingSessionId']=this['_trackingSessionId']);for(const _0x279fd2 of this['getSuggestions']())if(_0x279fd2['author']['id']==_0x54df9a['id']&&'insertion'==_0x279fd2['type']&&_0x279fd2['subType']==_0x53908a&&cn(_0x279fd2,_0xd7ffc7)&&(_0x1ce6e5(_0x279fd2['getRanges'](),_0x5a7240)||_0x1ce6e5(_0x5a7240,_0x279fd2['getRanges']()))){for(const _0x2aac7c of _0x5a7240)_0x279fd2['addRange'](_0x2aac7c);return _0x279fd2;}for(const {suggestion:_0x2ae99f,meta:_0x28ce32}of this['_findSuggestions'](_0x5a7240,'insertion')){if(!_0x28ce32['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x28ce32['containsRangeInObject'])continue;if(!cn(_0x2ae99f,_0xd7ffc7))continue;let _0x231845=!0x0;for(const _0x28fd16 of _0x2ae99f['getRanges']())for(const _0x4480aa of _0x5a7240)if(!_0x28fd16['containsRange'](_0x4480aa)){_0x231845=!0x1;break;}if(_0x231845)return _0x2ae99f;}const _0x53c90b=_0x19019c(),_0x46f93f=_0x54df9a['id'],_0x5da1ef='insertion:'+_0x53908a,_0x1950f8=this['_setSuggestionData']({'id':_0x53c90b,'type':_0x5da1ef,'createdAt':new Date(),'authorId':_0x46f93f,'attributes':_0xd7ffc7});for(const _0x569e81 of _0x5a7240)this['_addSuggestionMarker'](_0x5da1ef,_0x53c90b,_0x46f93f,_0x569e81,bt['getMultiRangeId']());return _0x1950f8;}['markInlineFormat'](_0x315207,_0x4c444f,_0xebd159=null,_0x1f33e6={}){if(_0xebd159=_0xebd159||Je(_0x4c444f),_0x315207['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x1f33e6['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1a9a0e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xebd159,'accept');return this['forceDefaultExecution'](()=>_0x1a9a0e([_0x315207],_0x4c444f,_0x1f33e6)),null;}const _0x240e48=this['editor']['plugins']['get']('Users')['me'],_0xeadf17=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4688b5,meta:_0x2914b8}of this['_findSuggestions'](_0x315207,'insertion'))_0x2914b8['isOwn']&&!_0x2914b8['isInsideObject']&&_0xeadf17['push'](..._0x4688b5['getRanges']());}const _0x49bce3=function(_0x1eee4e,_0x44b3ad){const _0x170c1a=[];for(const _0x49e422 of _0x44b3ad){const _0x5d7cf2=_0x1eee4e['getIntersection'](_0x49e422);_0x5d7cf2&&_0x170c1a['push'](_0x5d7cf2);}return _0x170c1a;}(_0x315207,_0xeadf17),_0x29d478=function(_0x51930a,_0x46c0e6){const _0x367bf5=[_0x51930a];for(const _0x54eff5 of _0x46c0e6){let _0x2279ca=0x0;for(;_0x2279ca<_0x367bf5['length'];){const _0x14b777=_0x367bf5[_0x2279ca]['getDifference'](_0x54eff5);_0x367bf5['splice'](_0x2279ca,0x1,..._0x14b777),_0x2279ca+=_0x14b777['length'];}}return _0x367bf5;}(_0x315207,_0xeadf17);_0x49bce3['length']&&this['_model']['change'](()=>{for(const _0x512d11 of _0x49bce3){const _0x2722b4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xebd159,'accept');this['forceDefaultExecution'](()=>_0x2722b4([_0x512d11],_0x4c444f,_0x1f33e6));}});for(const _0x1b234c of _0x29d478){let _0x380064=null,_0x33a824=_0x1b234c['start'],_0x1d1236=_0x1b234c['end'];for(const {suggestion:_0x225726,meta:_0x4cea42}of this['_findSuggestions'](_0x1b234c,'formatInline')){if(!_0x4cea42['isOwn'])continue;if(_0x225726['subType']!=_0xebd159)continue;if(!cn(_0x225726,_0x1f33e6))continue;const _0x4c799a=_0x225726['getFirstRange']();if(_0x4c799a['containsRange'](_0x1b234c,!0x0))return null;_0x33a824=_0x33a824['isBefore'](_0x4c799a['start'])?_0x33a824:_0x4c799a['start'],_0x1d1236=_0x1d1236['isAfter'](_0x4c799a['end'])?_0x1d1236:_0x4c799a['end'],_0x380064?_0x4c799a['start']['isBefore'](_0x380064['getFirstRange']()['start'])?(_0x380064['removeMarkers'](),_0x380064=_0x225726):_0x225726['removeMarkers']():_0x380064=_0x225726;}const _0x4c708e=this['_model']['createRange'](_0x33a824,_0x1d1236);if(_0x380064)this['_setSuggestionRange'](_0x380064,_0x4c708e);else{const _0x2ad50b=_0x19019c(),_0x2e8855=_0x240e48['id'];this['_setSuggestionData']({'id':_0x2ad50b,'type':'formatInline:'+_0xebd159,'data':_0x4c444f,'createdAt':new Date(),'authorId':_0x2e8855,'attributes':_0x1f33e6}),this['_addSuggestionMarker']('formatInline:'+_0xebd159,_0x2ad50b,_0x2e8855,_0x4c708e);}}return null;}['markBlockFormat'](_0x2779bf,_0x5b4cb9,_0x272b17=[],_0xceecc8=null,_0x5d6dd1={}){_0x5b4cb9['formatGroupId']||(_0x5b4cb9['formatGroupId']=_0x5b4cb9['commandName']),_0x5b4cb9['multipleBlocks']=_0x2779bf['is']('range'),_0xceecc8=_0xceecc8||Je(_0x5b4cb9);const _0x40dfd1=_0x272b17['map'](_0x5d5cf3=>rn(_0x5d5cf3,this['_model'])),_0x251df1=_0x2779bf['is']('range')?_0x2779bf:rn(_0x2779bf,this['_model']);if(this['_trackingSessionId']&&(_0x5d6dd1['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x340797=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xceecc8,'accept');return this['forceDefaultExecution'](()=>_0x340797([_0x251df1],_0x5b4cb9,_0x5d6dd1)),null;}_0x40dfd1['push'](_0x251df1);let _0x1a6d1e=!0x0;for(const _0x40cfd7 of _0x40dfd1)if(!this['_rangeIsInLocalUserInsertion'](_0x40cfd7)){_0x1a6d1e=!0x1;break;}if(_0x1a6d1e&&'always'!==this['_trackFormatChanges']){const _0x8acee2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xceecc8,'accept');return this['forceDefaultExecution'](()=>_0x8acee2([_0x251df1],_0x5b4cb9,_0x5d6dd1)),null;}let _0x1f0286=null,_0x263079=_0x251df1['start'],_0x3fcf54=_0x251df1['end'];for(const {suggestion:_0x216942,meta:_0x1f2c75}of this['_findSuggestions'](_0x251df1,'formatBlock')){if(!_0x1f2c75['isOwn'])continue;if(_0x1f2c75['isNextTo']||_0x1f2c75['containsRangeInObject']||_0x1f2c75['isInsideObject'])continue;if(_0x216942['data']['formatGroupId']!=_0x5b4cb9['formatGroupId'])continue;if(!cn(_0x216942,_0x5d6dd1))continue;const _0xfbe067=_0x216942['getFirstRange']();if(_0x216942['subType']==_0xceecc8){if(_0xfbe067['containsRange'](_0x251df1,!0x0))return null;_0x263079=_0x263079['isBefore'](_0xfbe067['start'])?_0x263079:_0xfbe067['start'],_0x3fcf54=_0x3fcf54['isAfter'](_0xfbe067['end'])?_0x3fcf54:_0xfbe067['end'],_0x1f0286?_0xfbe067['start']['isBefore'](_0x1f0286['getFirstRange']()['start'])?(_0x1f0286['removeMarkers'](),_0x1f0286=_0x216942):_0x216942['removeMarkers']():_0x1f0286=_0x216942;}else{const _0x2d8b04=_0x251df1['getIntersection'](_0xfbe067);this['_cutOutSuggestionMarker'](_0x216942,_0x2d8b04);}}const _0x81a19f=this['editor']['plugins']['get']('Users')['me'],_0x390a37=_0x19019c(),_0x3cb290=_0x81a19f['id'];if(_0x1f0286)return this['_setSuggestionRange'](_0x1f0286,this['_model']['createRange'](_0x263079,_0x3fcf54)),_0x1f0286;{const _0x1c1a3b=this['_setSuggestionData']({'id':_0x390a37,'type':'formatBlock:'+_0xceecc8,'data':_0x5b4cb9,'createdAt':new Date(),'authorId':_0x3cb290,'attributes':_0x5d6dd1});return this['_addSuggestionMarker']('formatBlock:'+_0xceecc8,_0x390a37,_0x3cb290,this['_model']['createRange'](_0x263079,_0x3fcf54)),_0x1c1a3b;}}['markMultiRangeBlockFormat'](_0x9fba0c,_0x174b5f,_0x47022c=[],_0x1ca9a9=null,_0x150ae0={}){_0x174b5f['formatGroupId']||(_0x174b5f['formatGroupId']=_0x174b5f['commandName']);const _0x271bc7=_0x9fba0c[0x0];_0x174b5f['multipleBlocks']=_0x271bc7['is']('range'),_0x1ca9a9=_0x1ca9a9||Je(_0x174b5f);const _0x7748e9=_0x47022c['map'](_0x4aec1b=>rn(_0x4aec1b,this['_model'])),_0x2e033b=_0x271bc7['is']('range')?_0x9fba0c:_0x9fba0c['map'](_0x35eb15=>rn(_0x35eb15,this['_model']));if(this['_trackingSessionId']&&(_0x150ae0['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x126cbd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ca9a9,'accept');return this['forceDefaultExecution'](()=>_0x126cbd(_0x2e033b,_0x174b5f,_0x150ae0)),null;}_0x7748e9['push'](..._0x2e033b);let _0x20d1f7=!0x0;for(const _0x381144 of _0x7748e9)if(!this['_rangeIsInLocalUserInsertion'](_0x381144)){_0x20d1f7=!0x1;break;}if(_0x20d1f7&&'always'!==this['_trackFormatChanges']){const _0x217a60=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ca9a9,'accept');return this['forceDefaultExecution'](()=>_0x217a60(_0x2e033b,_0x174b5f,_0x150ae0)),null;}const _0xa7a42b=this['editor']['plugins']['get']('Users')['me'];for(const _0xa03503 of this['getSuggestions']()){const _0x5957e6=_0xa03503['data'];if(_0xa03503['author']['id']!=_0xa7a42b['id'])continue;if('formatBlock'!=_0xa03503['type']||_0x5957e6['formatGroupId']!=_0x174b5f['formatGroupId'])continue;if(!cn(_0xa03503,_0x150ae0))continue;const _0x3fcccd=_0xa03503['subType']==_0x1ca9a9;for(let _0x5eab07=0x0;_0x5eab07<_0x2e033b['length'];_0x5eab07++){const _0x1a168c=_0x2e033b[_0x5eab07];for(const _0x37c287 of _0xa03503['getMarkers']()){const _0x3fe203=_0x37c287['getRange']();if(_0x1a168c['isEqual'](_0x3fe203)){_0x3fcccd?(_0x2e033b['splice'](_0x5eab07,0x1),_0x5eab07--):_0xa03503['removeMarker'](_0x37c287['name']);break;}}}}if(0x0==_0x2e033b['length'])return null;const _0x110575=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ca9a9,'join');for(const _0x2f39fe of this['getSuggestions']()){const _0x4f0085=_0x2f39fe['data'];if(_0x2f39fe['author']['id']==_0xa7a42b['id']&&('formatBlock'==_0x2f39fe['type']&&_0x4f0085['formatGroupId']==_0x174b5f['formatGroupId']&&_0x2f39fe['subType']==_0x1ca9a9&&cn(_0x2f39fe,_0x150ae0)&&(_0x110575(_0x2f39fe['getRanges'](),_0x2e033b)||_0x110575(_0x2e033b,_0x2f39fe['getRanges']())))){for(const _0xfb782b of _0x2e033b)_0x2f39fe['addRange'](_0xfb782b);return _0x2f39fe;}}const _0x3d59bd=_0x19019c(),_0x498ac6=_0xa7a42b['id'],_0x316458='formatBlock:'+_0x1ca9a9,_0x5d6772=this['_setSuggestionData']({'id':_0x3d59bd,'type':_0x316458,'data':_0x174b5f,'createdAt':new Date(),'authorId':_0x498ac6,'attributes':_0x150ae0});for(const _0x960d42 of _0x2e033b)this['_addSuggestionMarker'](_0x316458,_0x3d59bd,_0x498ac6,_0x960d42,bt['getMultiRangeId']());return _0x5d6772;}['markDeletion'](_0x4c9c47,_0x16e9ee=null,_0x5c0536={}){if(_0x4c9c47['isCollapsed'])return null;const _0x1655b3=this['editor']['plugins']['get']('Users')['me'],_0x248fcb=new _0x2b4b27(_0x4c9c47['start'],_0x4c9c47['end']);this['_trackingSessionId']&&(_0x5c0536['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x128087,meta:_0x3dcf22}of this['_findSuggestions'](_0x248fcb,'insertion'))if(_0x3dcf22['isOwn']&&!_0x3dcf22['isNextTo']){if(_0x128087['isMultiRange']){const _0x26dcd8=_0x128087['getRanges']()['filter'](_0x4abe9f=>'$graveyard'!=_0x4abe9f['root']['rootName']);_0x26dcd8['every'](_0x391659=>_0x248fcb['containsRange'](_0x391659,!0x0))&&_0x128087['discard']();if(_0x26dcd8['some'](_0xa7da20=>_0xa7da20['containsRange'](_0x248fcb,!0x0))){const _0x2405ea=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x16e9ee,'accept');return this['forceDefaultExecution'](()=>_0x2405ea([_0x248fcb],null,_0x5c0536)),null;}}else{const _0x3e6f7=_0x248fcb['getIntersection'](_0x128087['getFirstRange']());null!==_0x3e6f7&&_0x128087['_onDiscard']([_0x3e6f7],null,_0x5c0536);}}if(_0x248fcb['detach'](),_0x248fcb['isCollapsed']||'$graveyard'==_0x248fcb['root']['rootName'])return null;let _0x201b39=null,_0x1d4e4e=_0x248fcb['start'],_0x3a1847=_0x248fcb['end'];const _0x32e278=this['_findSuggestions'](_0x248fcb,'deletion');for(const {suggestion:_0x17bbcf,meta:_0x32e39f}of _0x32e278){const _0x3b5d74=this['_model']['createRange'](_0x1d4e4e,_0x3a1847);if(_0x32e39f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x32e39f['containsRangeInObject']&&!_0x32e39f['isInsideObject'])){if(_0x17bbcf['isMultiRange']){if(!cn(_0x17bbcf,_0x5c0536))continue;let _0x4d71a9=!0x0;for(const _0x5c113e of _0x17bbcf['getRanges']()){if(_0x5c113e['containsRange'](_0x3b5d74,!0x0))return _0x17bbcf;_0x3b5d74['containsRange'](_0x5c113e)||(_0x4d71a9=!0x1);}_0x4d71a9&&_0x17bbcf['discard']();}else{const _0x3ebcf2=_0x17bbcf['getFirstRange']();if(_0x3ebcf2['containsRange'](_0x3b5d74,!0x0))return _0x17bbcf;if(!cn(_0x17bbcf,_0x5c0536)){_0x3b5d74['containsRange'](_0x3ebcf2)?_0x17bbcf['removeMarkers']():_0x3ebcf2['containsPosition'](_0x1d4e4e)?_0x1d4e4e=_0x3ebcf2['end']:_0x3ebcf2['containsPosition'](_0x3a1847)&&(_0x3a1847=_0x3ebcf2['start']);continue;}_0x1d4e4e=_0x1d4e4e['isBefore'](_0x3ebcf2['start'])?_0x1d4e4e:_0x3ebcf2['start'],_0x3a1847=_0x3a1847['isAfter'](_0x3ebcf2['end'])?_0x3a1847:_0x3ebcf2['end'],_0x5c0536=Object['assign']({},_0x17bbcf['attributes']),_0x201b39?_0x3ebcf2['start']['isBefore'](_0x201b39['getFirstRange']()['start'])?(_0x201b39['removeMarkers'](),_0x201b39=_0x17bbcf):_0x17bbcf['removeMarkers']():_0x201b39=_0x17bbcf;}}}if(_0x201b39)return this['_setSuggestionRange'](_0x201b39,this['_model']['createRange'](_0x1d4e4e,_0x3a1847)),_0x201b39;{const _0x515029=_0x19019c(),_0x23b6ac=this['_model']['createRange'](_0x1d4e4e,_0x3a1847),_0x5ade3b=_0x1655b3['id'],_0x1947b3=_0x16e9ee?'deletion:'+_0x16e9ee:'deletion',_0x15b49d=this['_setSuggestionData']({'id':_0x515029,'type':_0x1947b3,'createdAt':new Date(),'authorId':_0x5ade3b,'attributes':_0x5c0536});return this['_addSuggestionMarker'](_0x1947b3,_0x515029,_0x5ade3b,_0x23b6ac),_0x15b49d;}}['markMultiRangeDeletion'](_0x40b32f,_0x2c5d74='multi',_0x3807bd={}){const _0x5ab14c=this['editor']['plugins']['get']('Users')['me'],_0xb3711b=_0x40b32f['map'](_0x5bcbdd=>new _0x2b4b27(_0x5bcbdd['start'],_0x5bcbdd['end'])),_0x2b69ed=new Set();this['_trackingSessionId']&&(_0x3807bd['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2a2cb7,meta:_0x1ca755}of this['_findSuggestions'](_0xb3711b,'insertion'))_0x1ca755['isOwn']&&!_0x1ca755['isNextTo']&&_0x2b69ed['add'](_0x2a2cb7);for(const _0x26ce86 of _0x2b69ed)if(_0x26ce86['isMultiRange']){const _0x3557f6=_0x26ce86['getRanges']();(!_0x26ce86['attributes']||!_0x26ce86['attributes']['skipNestingCheck'])&&(_0x3557f6['every'](_0x4f07de=>_0xb3711b['some'](_0x273a8b=>_0x273a8b['containsRange'](_0x4f07de,!0x0)))&&_0x26ce86['discard']());if(_0xb3711b['every'](_0x2dc665=>_0x3557f6['some'](_0x6169b=>_0x6169b['containsRange'](_0x2dc665,!0x0)))){const _0x32aef8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2c5d74,'accept');return this['forceDefaultExecution'](()=>_0x32aef8(_0x40b32f,null,_0x3807bd)),null;}}else{const _0x3fad58=_0x26ce86['getFirstRange']();_0xb3711b['some'](_0x3a50bc=>_0x3a50bc['containsRange'](_0x3fad58,!0x0))&&_0x26ce86['discard']();if(_0xb3711b['every'](_0x4e6019=>_0x3fad58['containsRange'](_0x4e6019,!0x0))){const _0x1d1a98=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2c5d74,'accept');return this['forceDefaultExecution'](()=>_0x1d1a98(_0xb3711b,null,_0x3807bd)),null;}}const _0x1f4296=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2c5d74,'join');let _0xf25925=null;for(const _0x578680 of this['getSuggestions']())if(_0x578680['author']['id']==_0x5ab14c['id']&&_0x578680['isInContent']&&'deletion'==_0x578680['type']&&_0x578680['subType']==_0x2c5d74&&cn(_0x578680,_0x3807bd)&&(_0x1f4296(_0x578680['getRanges'](),_0xb3711b)||_0x1f4296(_0xb3711b,_0x578680['getRanges']()))){if(_0xf25925){if(_0x578680['commentThread']&&_0x578680['commentThread']['length'])continue;for(const _0x7e03ba of _0x578680['getRanges']())_0xf25925['isIntersectingWithRange'](_0x7e03ba)||_0xf25925['addRange'](_0x7e03ba);_0x578680['removeMarkers']();}else{_0xf25925=_0x578680;for(const _0x53c0bd of _0xb3711b)_0x578680['isIntersectingWithRange'](_0x53c0bd)||_0x578680['addRange'](_0x53c0bd);}}if(_0xf25925)return _0xf25925;_0x2b69ed['clear']();for(const {suggestion:_0x507211,meta:_0x2d70c8}of this['_findSuggestions'](_0xb3711b,'deletion'))_0x2d70c8['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2d70c8['containsRangeInObject']&&!_0x2d70c8['isInsideObject'])&&cn(_0x507211,_0x3807bd)&&_0x2b69ed['add'](_0x507211);for(const _0x55be77 of _0x2b69ed){const _0x47a43d=_0x55be77['getRanges']();if(!_0x3807bd||!_0x3807bd['skipNestingCheck']){if(_0xb3711b['every'](_0x35b8a0=>_0x47a43d['some'](_0x20cd13=>_0x20cd13['containsRange'](_0x35b8a0,!0x0))))return _0x55be77;}(!_0x55be77['attributes']||!_0x55be77['attributes']['skipNestingCheck'])&&(_0x47a43d['every'](_0x383c38=>_0xb3711b['some'](_0x49768a=>_0x49768a['containsRange'](_0x383c38,!0x0)))&&_0x55be77['discard']());}const _0x47f415=_0x19019c(),_0x9fe592=_0x5ab14c['id'],_0x2a34d1='deletion:'+_0x2c5d74,_0x54c53e=this['_setSuggestionData']({'id':_0x47f415,'type':_0x2a34d1,'createdAt':new Date(),'authorId':_0x9fe592,'attributes':_0x3807bd});for(const _0x135898 of _0xb3711b)_0x135898['detach'](),_0x135898['isCollapsed']||'$graveyard'==_0x135898['root']['rootName']||this['_addSuggestionMarker'](_0x2a34d1,_0x47f415,_0x9fe592,_0x135898,bt['getMultiRangeId']());return _0x54c53e;}['markAttributeChange'](_0x203ccd,_0x32faba,_0x4e817d,_0x3a9579,_0x1f555a){if(_0x203ccd['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2eb1b4=this['editor']['plugins']['get']('Users')['me']['id'],_0x3ad028=Array['from'](this['_suggestions']['values']())['filter'](_0x5585a0=>'attribute'==_0x5585a0['type']&&_0x5585a0['data']['key']==_0x32faba&&_0x5585a0['isIntersectingWithRange'](_0x203ccd));if(this['_trackingSessionId']&&(_0x1f555a['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x2c897c=this['_findSuggestions'](_0x203ccd,'insertion')['filter'](({meta:_0x29c83b})=>_0x29c83b['isOwn']&&!_0x29c83b['isInsideObject']&&!_0x29c83b['isNextTo'])['map'](({suggestion:_0x184f47})=>_0x184f47);_0x3ad028['unshift'](..._0x2c897c);}const _0x1ccba3=new Map([[_0x203ccd,_0x4e817d]]);for(const _0x55d18a of _0x3ad028){const _0x4d8c73='attribute'==_0x55d18a['type']?_0x55d18a['data']['oldValue']:void 0x0,_0x2b6378=_0x55d18a['getFirstRange'](),_0x159a0e=Array['from'](_0x1ccba3['keys']())['find'](_0x3a645b=>_0x3a645b['isIntersecting'](_0x2b6378));if(!_0x159a0e)continue;const _0x44ad90=_0x159a0e['getDifference'](_0x2b6378);this['_suggestionsConversion']['isBlockAttribute'](_0x32faba)&&'insertion'==_0x55d18a['type']&&0x0!=_0x44ad90['length']||(_0x1ccba3['delete'](_0x159a0e),_0x44ad90['forEach'](_0x322e5f=>{_0x1ccba3['set'](_0x322e5f,_0x4e817d);}),'insertion'!=_0x55d18a['type']&&_0x4d8c73!=_0x3a9579&&_0x1ccba3['set'](_0x159a0e['getIntersection'](_0x2b6378),_0x4d8c73));}const _0x29e75b=[];for(const [_0x1591de,_0x30ab7d]of _0x1ccba3){const _0x4daf0e=_0x19019c(),_0x4d0021={'key':_0x32faba,'oldValue':_0x30ab7d,'newValue':_0x3a9579};_0x32faba['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':_0x32faba});const _0x5cc4b0=('attribute:'+(_0x32faba+'|'+Je({'newValue':_0x3a9579})))['substring'](0x0,0x3c),_0x4f0429=this['_setSuggestionData']({'id':_0x4daf0e,'type':_0x5cc4b0,'data':_0x4d0021,'createdAt':new Date(),'authorId':_0x2eb1b4,'attributes':_0x1f555a});_0x29e75b['push'](_0x4f0429),this['_addSuggestionMarker'](_0x5cc4b0,_0x4daf0e,_0x2eb1b4,_0x1591de);}return _0x29e75b;}['enableDefaultAttributesIntegration'](_0x1475a8){this['enableCommand'](_0x1475a8,(_0x5da54c,..._0x1c5301)=>{this['recordAttributeChanges'](()=>{_0x5da54c(..._0x1c5301);});});}['startTrackingSession'](_0x430319){return this['_trackingSessionId']=void 0x0!==_0x430319?_0x430319:_0x19019c(),this['_trackingSessionId'];}['_getAttributeKey'](_0x2d3fe5){return'attribute'==_0x2d3fe5['type']?un(_0x2d3fe5['subType']):null;}['_applyOperationsAsSuggestions'](_0x44f3e5){if(0x0==_0x44f3e5['length'])return;const _0x15083b=this['editor'],_0x56e243=_0x15083b['plugins']['get'](_0x4b6a3c),_0x354a4e=[];_0x15083b['model']['change'](_0x296313=>{for(let _0x1df296=0x0;_0x1df296<_0x44f3e5['length'];_0x1df296++){const _0x42c083=_0x44f3e5[_0x1df296];if(_0x42c083['baseVersion']=_0x15083b['model']['document']['version'],_0x42c083['isDocumentOperation']=!0x0,_0x56e243['isMarkedRemoveOperation'](_0x42c083)){const _0x2d2dd9=_0x5074fc(_0x42c083['newRange'],_0x15083b['model']);_0x354a4e['unshift'](_0x2b4b27['fromRange'](_0x2d2dd9));}else switch(_0x42c083['type']){case'rename':{const _0x3e862b=_0x42c083['oldName'],_0x50d84c=_0x42c083['newName'];if(_0x3e862b==_0x50d84c)break;_0x296313['batch']['addOperation'](_0x42c083),_0x15083b['model']['applyOperation'](_0x42c083);const _0x58010a='$elementName',_0x2fad77=_0x42c083['position'],_0x39977a=_0x15083b['model']['createRange'](_0x2fad77,_0x15083b['model']['createPositionAt'](_0x2fad77['nodeAfter'],'end'));this['markAttributeChange'](_0x39977a,_0x58010a,_0x3e862b,_0x50d84c,{'groupId':_0x19019c()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x4d1652=_0x42c083['oldValue'],_0x347efa=_0x42c083['newValue'];if(_0x4d1652==_0x347efa)break;_0x296313['batch']['addOperation'](_0x42c083),_0x15083b['model']['applyOperation'](_0x42c083);const _0x378f77=_0x42c083['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x378f77))break;const _0x849378=_0x5074fc(_0x42c083['range'],_0x15083b['model']);this['markAttributeChange'](_0x849378,_0x378f77,_0x4d1652,_0x347efa,{'groupId':_0x19019c()});break;}case'insert':{_0x296313['batch']['addOperation'](_0x42c083),_0x15083b['model']['applyOperation'](_0x42c083);if(_0x44f3e5[_0x1df296+0x1]&&'move'==_0x44f3e5[_0x1df296+0x1]['type'])break;const _0x5a5834=_0x42c083['position'],_0xe038db=_0x42c083['howMany'],_0x3562a5=_0x5074fc(_0x15083b['model']['createRange'](_0x5a5834,_0x5a5834['getShiftedBy'](_0xe038db)),_0x15083b['model']);this['markInsertion'](_0x3562a5);break;}case'split':{_0x296313['batch']['addOperation'](_0x42c083),_0x15083b['model']['applyOperation'](_0x42c083);const _0x4fa5b0=_0x42c083['splitPosition'],_0x3de48d=_0x42c083['moveTargetPosition'];this['markInsertion'](_0x15083b['model']['createRange'](_0x4fa5b0,_0x3de48d));break;}case'move':case'remove':_0x296313['batch']['addOperation'](_0x42c083),_0x15083b['model']['applyOperation'](_0x42c083);}}for(const _0x42a70c of _0x354a4e)_0x42a70c['detach'](),this['markDeletion'](_0x42a70c);});}['_setSuggestionRange'](_0x6403cb,_0x54e94e){const _0x1f0cdb=_0x6403cb['getFirstMarker']();this['_model']['change'](_0x4fd016=>{_0x4fd016['updateMarker'](_0x1f0cdb,{'range':_0x54e94e});});}['_addThreadToSuggestion'](_0x1db2c5){const _0x313b63=_0x1db2c5['id'],_0x5384cd=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x313b63)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5384cd,'threadId':_0x313b63,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3250c0=this['_commentsRepository']['getCommentThread'](_0x313b63);_0x3250c0['unbind']('isRemovable'),_0x3250c0['isRemovable']=!0x1,_0x1db2c5['commentThread']=_0x3250c0;}['_checkSuggestionCorrectness'](_0x3b672a,_0x24d8a5,_0x43d011,_0x598348){if(_0x3b672a['type']!=_0x24d8a5||_0x3b672a['subType']!=_0x43d011||_0x3b672a['creator']['id']!=_0x598348)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x58c399('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5e56c9,_0x34852f){const _0x21010d=_0x5e56c9['getFirstRange']();if(_0x34852f['isEqual'](_0x21010d))_0x5e56c9['removeMarkers']();else{if(_0x21010d['containsRange'](_0x34852f)){const _0x298db7=this['_model']['createPositionAt'](_0x34852f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5e56c9,this['_model']['createRange'](_0x21010d['start'],_0x298db7));const _0x3044b4=_0x19019c(),_0x509fe2=_0x5e56c9['creator']['id'],_0x155a39=_0x5e56c9['type']+':'+_0x5e56c9['subType'];this['_setSuggestionData']({'id':_0x3044b4,'type':_0x155a39,'createdAt':new Date(),'authorId':_0x509fe2,'data':_0x5e56c9['data'],'attributes':_0x5e56c9['attributes']});const _0x1039d6=this['_model']['createPositionAt'](_0x34852f['end']['parent'],'after'),_0xd77e01=this['_model']['createRange'](_0x1039d6,_0x21010d['end']);this['_addSuggestionMarker'](_0x155a39,_0x3044b4,_0x509fe2,_0xd77e01);}else{if(_0x21010d['containsPosition'](_0x34852f['start'])){const _0x20023b=this['_model']['createPositionAt'](_0x34852f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5e56c9,this['_model']['createRange'](_0x21010d['start'],_0x20023b));}else{const _0x4fb9a0=this['_model']['createPositionAt'](_0x34852f['end']['parent'],'after');this['_setSuggestionRange'](_0x5e56c9,this['_model']['createRange'](_0x4fb9a0,_0x21010d['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x25f910){for(const {suggestion:_0x3b7958,meta:_0x4e6aea}of this['_findSuggestions'](_0x25f910,'insertion')){if(!_0x4e6aea['isOwn'])continue;const _0x588f47=_0x3b7958['getRanges']();for(const _0x5e2efe of _0x588f47)if(!_0x25f910['getDifference'](_0x5e2efe)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2519fe){return this['editor']['plugins']['get']('Users')['getUser'](_0x2519fe);}['_getExternalAuthor'](_0x1e0162){const _0x313c52=this['editor']['plugins']['get']('Users'),_0x591cf4=_0x45797d('external:'+_0x1e0162),_0x32dbd1=_0x313c52['getUser'](_0x591cf4);return _0x32dbd1||_0x313c52['addUser']({'id':_0x591cf4,'name':_0x1e0162});}['_createSuggestion'](_0x418089,_0x561f74,_0x250b9a,_0x415274,_0x32dbad,_0x4f7e7e){const _0x3e412a=this['_getAuthorFromId'](_0x415274);if(!_0x3e412a)throw new _0x58c399('track-changes-user-not-found',this,{'authorId':_0x415274,'suggestionId':_0x250b9a});const _0x36780e=this['_suggestionFactory']['buildSuggestion'](_0x418089,_0x561f74,_0x250b9a,_0x3e412a,_0x32dbad,_0x36e96a=>{this['_updateSuggestionData'](_0x250b9a,{'attributes':_0x36e96a});const _0x10a6c3=this['getSuggestion'](_0x250b9a);this['_joinWithAdjacentSuggestions'](new Set([_0x10a6c3])),this['_refreshSuggestionsChain'](new Set([_0x10a6c3]));},_0x4f7e7e);return this['listenTo'](_0x36780e,'accept',()=>{this['_updateSuggestionData'](_0x250b9a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x36780e,'discard',()=>{this['_updateSuggestionData'](_0x250b9a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x250b9a,_0x36780e),this['_suggestionState']['set'](_0x36780e,'notReady'),_0x36780e;}['_breakSuggestionMarker'](_0x46372e,_0x52e036,_0x4e6f76){const _0x541b15=_0x46372e['getFirstRange'](),_0x74a81f=_0x541b15['start'],_0x45ef3a=_0x541b15['end'];this['_setSuggestionRange'](_0x46372e,this['_model']['createRange'](_0x74a81f,_0x52e036));const _0x562b2c=_0x19019c(),_0x9b872=_0x46372e['creator']['id'],_0x2ca79f=_0x46372e['type']+(_0x46372e['subType']?':'+_0x46372e['subType']:'');this['_setSuggestionData']({'id':_0x562b2c,'type':_0x2ca79f,'createdAt':new Date(),'authorId':_0x9b872,'originalSuggestionId':_0x46372e['_originalSuggestionId']||_0x46372e['id'],'attributes':_0x46372e['attributes'],'data':_0x46372e['data']});const _0x5a25ce=this['_getAttributeKey'](_0x46372e);('formatBlock'==_0x46372e['type']||_0x5a25ce&&this['_suggestionsConversion']['isBlockAttribute'](_0x5a25ce))&&(_0x4e6f76=this['_model']['createPositionBefore'](_0x4e6f76['parent'])),this['_addSuggestionMarker'](_0x2ca79f,_0x562b2c,_0x9b872,this['_model']['createRange'](_0x4e6f76,_0x45ef3a));}['_findSuggestions'](_0x44bc2b,_0x4065ad=null){const _0x21a4bb=[],_0xe2db72=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x44bc2b)||(_0x44bc2b=[_0x44bc2b]);for(const _0x4bd4a5 of this['getSuggestions']()){if(!_0x4bd4a5['isInContent'])continue;if(_0x4065ad&&_0x4bd4a5['type']!=_0x4065ad)continue;let _0x428dbc=!0x1;for(const _0x565e24 of _0x4bd4a5['getRanges']()){for(const _0x5ebc71 of _0x44bc2b){const _0x348ee2=_0x5ebc71['start']['isEqual'](_0x565e24['end'])||_0x5ebc71['end']['isEqual'](_0x565e24['start']);if(_0x348ee2||_0x5ebc71['getIntersection'](_0x565e24)){const _0x4af681=_0x5ebc71['containsRange'](_0x565e24)&&qe(this['_model']['schema'],_0x565e24['start'],_0x5ebc71),_0x589cb5=_0x565e24['containsRange'](_0x5ebc71)&&qe(this['_model']['schema'],_0x5ebc71['start'],_0x565e24);_0x21a4bb['push']({'suggestion':_0x4bd4a5,'meta':{'isOwn':_0xe2db72==_0x4bd4a5['author'],'isNextTo':_0x348ee2,'isInsideObject':_0x4af681,'containsRangeInObject':_0x589cb5}}),_0x428dbc=!0x0;break;}}if(_0x428dbc)break;}}return _0x21a4bb;}['_addSuggestionMarker'](_0x35bb2b,_0x2c4335,_0x115b5e,_0x3a2a70,_0x5ee5f1){this['_model']['change'](_0x581d59=>{let _0x17a941='suggestion:'+_0x35bb2b+':'+_0x2c4335+':'+_0x115b5e;_0x5ee5f1&&(_0x17a941=_0x17a941+':'+_0x5ee5f1),_0x581d59['addMarker'](_0x17a941,{'range':_0x3a2a70,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3ec485){const _0x4c962c=_0x3ec485['previous'],_0x44edcf=_0x3ec485['next'];_0x3ec485['previous']=null,_0x3ec485['next']=null,null!=_0x4c962c&&_0x4c962c['next']==_0x3ec485&&(_0x4c962c['next']=_0x44edcf),null!=_0x44edcf&&_0x44edcf['previous']==_0x3ec485&&(_0x44edcf['previous']=_0x4c962c),'ready'==this['_suggestionState']['get'](_0x3ec485)&&(this['_suggestionState']['set'](_0x3ec485,'removed'),this['fire']('suggestionUnloaded',_0x3ec485,_0x4c962c,_0x44edcf));}['_setSuggestionData'](_0xbb8afc){const _0x3d6d42=_0xbb8afc['id'],_0xcbed05=this['addSuggestionData'](_0xbb8afc);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x487e60=this['editor']['plugins']['get']('PendingActions'),_0x38afbc=_0xcbed05['hasComments'],_0x341493=_0xcbed05['subType']?_0xcbed05['type']+':'+_0xcbed05['subType']:_0xcbed05['type'],_0x2ededa=this['editor']['locale'],_0x5a96d3=_0x487e60['add'](At(_0x2ededa,'PENDING_ACTION_SUGGESTION')),_0x261c3e={'id':_0x3d6d42,'type':_0x341493,'hasComments':_0x38afbc,'data':_0xbb8afc['data']||null,'originalSuggestionId':_0xbb8afc['originalSuggestionId']||null,'attributes':_0xcbed05['attributes']};this['_adapter']['addSuggestion'](_0x261c3e)['then'](_0x42372b=>{_0xcbed05['_saved']=!0x0,_0x487e60['remove'](_0x5a96d3),_0x42372b&&_0x42372b['createdAt']&&(this['_suggestions']['get'](_0x3d6d42)['createdAt']=_0x42372b['createdAt']);})['catch'](_0x4fb971=>{throw _0x32370b('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xcbed05['discard']();}),_0xcbed05['stopListening'](),this['_suggestions']['delete'](_0xcbed05['id']),this['_suggestionState']['delete'](_0xcbed05),_0x4fb971;});}return _0xcbed05;}['_updateSuggestionData'](_0x6ac1f4,_0x37a58e){const _0x50acbd=this['editor']['plugins']['get']('PendingActions'),_0x2ff70f=this['getSuggestion'](_0x6ac1f4);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2ff70f['_saved']){const _0x6c94c6=_0x50acbd['add'](At(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x6ac1f4,_0x37a58e)['then'](()=>{_0x50acbd['remove'](_0x6c94c6);});}else _0x2ff70f['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x6ac1f4,_0x37a58e);});}}['_getSuggestionData'](_0x5cde08){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x58c399('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5cde08);}['_handleNewSuggestionMarker'](_0x2e5e5b){const {id:_0x45809a,type:_0x6bd70e,subType:_0x3fcd53,authorId:_0x465171}=_0x2695e1(_0x2e5e5b),_0x2b3b91=this['_suggestions']['get'](_0x45809a)||this['_createSuggestion'](_0x6bd70e,_0x3fcd53,_0x45809a,_0x465171,{});switch(this['_checkSuggestionCorrectness'](_0x2b3b91,_0x6bd70e,_0x3fcd53,_0x465171),this['_suggestionState']['get'](_0x2b3b91)){case'notReady':this['_getSuggestionData'](_0x45809a)['then'](_0x27de5c=>{let _0x2613aa=Promise['resolve']();_0x27de5c['hasComments']&&(_0x2613aa=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x45809a})),_0x2613aa['then'](()=>{this['addSuggestionData'](_0x27de5c)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2b3b91,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x45809a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2b3b91,'ready'),this['fire']('suggestionLoaded',_0x2b3b91);break;case'ready':this['fire']('suggestionChanged',_0x2b3b91);}return _0x2b3b91['addMarkerName'](_0x2e5e5b),_0x2b3b91;}['_refreshSuggestionsChain'](_0x1b66df){const _0x7df891=Array['from'](_0x1b66df),_0x2393c6=_0x7df891['filter'](_0x404f2a=>'attribute'==_0x404f2a['type']);this['_refreshAttributeSuggestionsChain'](_0x2393c6);const _0xbba4ed=_0x7df891['filter'](_0x4521b9=>!_0x4521b9['isMultiRange']&&'attribute'!=_0x4521b9['type']),_0x2fb320=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a3130=>!_0x4a3130['isMultiRange']&&'attribute'!=_0x4a3130['type']),_0x865d35=_0x2fb320['filter'](_0x303c87=>!_0x1b66df['has'](_0x303c87)),_0x35d1a3=new Map(_0x2fb320['map'](_0x10cf87=>[_0x10cf87,this['_suggestionFactory']['getSuggestionCallback'](_0x10cf87['type'],_0x10cf87['subType'],'chain')])),_0x54d4da=new Map(_0x2fb320['map'](_0x2a5530=>[_0x2a5530,_0x2a5530['getFirstRange']()])),_0x291a8c=new Set(),_0x2b848d=new Set();for(let _0x42183d=0x0;_0x42183d<_0xbba4ed['length'];_0x42183d++)_0x47f9a3(_0xbba4ed[_0x42183d],_0xbba4ed,_0x42183d+0x1);for(let _0x3147ec=0x0;_0x3147ec<_0xbba4ed['length'];_0x3147ec++)_0x47f9a3(_0xbba4ed[_0x3147ec],_0x865d35,0x0);const _0x4c31d3=new Set();for(let _0x182928=0x0;_0x182928<_0xbba4ed['length'];_0x182928++){const _0x22734f=_0xbba4ed[_0x182928];!_0x2b848d['has'](_0x22734f)&&_0x22734f['previous']&&(_0x4c31d3['add'](_0x22734f['previous']),_0x22734f['previous']['next']===_0x22734f&&(_0x22734f['previous']['next']=null),_0x22734f['previous']=null),!_0x291a8c['has'](_0x22734f)&&_0x22734f['next']&&(_0x4c31d3['add'](_0x22734f['next']),_0x22734f['next']['previous']===_0x22734f&&(_0x22734f['next']['previous']=null),_0x22734f['next']=null);}function _0x47f9a3(_0x7d4302,_0x150338,_0x2248b7){for(let _0x5d4a75=_0x2248b7;_0x5d4a75<_0x150338['length'];_0x5d4a75++){const _0x466346=_0x392395(_0x7d4302,_0x150338[_0x5d4a75]);_0x466346&&(_0x466346[0x0]['next']=_0x466346[0x1],_0x466346[0x1]['previous']=_0x466346[0x0],_0x291a8c['add'](_0x466346[0x0]),_0x2b848d['add'](_0x466346[0x1]));}}function _0x392395(_0x24ea55,_0x55b1e5){if(_0x24ea55['author']['id']!==_0x55b1e5['author']['id'])return null;const _0x4c7f83=_0x35d1a3['get'](_0x24ea55)(_0x24ea55,_0x55b1e5,_0x54d4da['get'](_0x24ea55),_0x54d4da['get'](_0x55b1e5));if(!_0x4c7f83)return null;return _0x35d1a3['get'](_0x55b1e5)(_0x24ea55,_0x55b1e5,_0x54d4da['get'](_0x24ea55),_0x54d4da['get'](_0x55b1e5))?_0x4c7f83[0x1]['commentThread']&&_0x4c7f83[0x1]['commentThread']['length']?null:_0x4c7f83:null;}_0x4c31d3['size']&&this['_refreshSuggestionsChain'](_0x4c31d3);}['_refreshAttributeSuggestionsChain'](_0x2752bd){if(0x0==_0x2752bd['length'])return;const _0x39b810=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x342463=>'attribute'==_0x342463['type']&&_0x342463['_isDataLoaded']),_0x2fbcda=[],_0x4eaa23=new Map();for(const _0x218f9d of _0x39b810){const _0x5716c7=_0x45797d(_0x218f9d['attributes']);_0x4eaa23['has'](_0x5716c7)||(_0x4eaa23['set'](_0x5716c7,_0x2fbcda['length']),_0x2fbcda['push']([]));const _0x4c985f=_0x4eaa23['get'](_0x5716c7);_0x2fbcda[_0x4c985f]['push'](_0x218f9d);}!(function(){_0x2fbcda['sort']((_0x3ee1c6,_0x4c7a85)=>{const _0x871365=_0x3ee1c6[0x0]['createdAt'],_0xb0e1ff=_0x4c7a85[0x0]['createdAt'];return _0x871365==_0xb0e1ff?_0x3ee1c6[0x0]['attributes']['groupId']<_0x4c7a85[0x0]['attributes']['groupId']?-0x1:0x1:_0x871365<_0xb0e1ff?-0x1:0x1;});for(const _0x3bf591 of _0x2fbcda)_0x3bf591['sort']((_0x5cec94,_0x3d8d3b)=>_0x5cec94['id']<_0x3d8d3b['id']?-0x1:0x1);}());for(let _0x4231b0=0x0;_0x4231b0<_0x2fbcda['length'];_0x4231b0++){if(0x0==_0x2fbcda[_0x4231b0]['length'])continue;const _0x364543=[];for(let _0x368e9a=_0x4231b0+0x1;_0x368e9a<_0x2fbcda['length'];_0x368e9a++)0x0!=_0x2fbcda[_0x368e9a]['length']&&_0x4765de(_0x2fbcda[_0x4231b0],_0x2fbcda[_0x368e9a])&&_0x364543['push'](_0x368e9a);for(const _0x5e7b89 of _0x364543)_0x2fbcda[_0x4231b0]=_0x2fbcda[_0x4231b0]['concat'](_0x2fbcda[_0x5e7b89]),_0x2fbcda[_0x5e7b89]=[];}for(const _0x881bc0 of _0x2fbcda)for(let _0x32ba74=0x0;_0x32ba74<_0x881bc0['length'];_0x32ba74++){const _0x6ab2bf=_0x881bc0[_0x32ba74+0x1]||null;_0x881bc0[_0x32ba74]['next']!==_0x6ab2bf&&(_0x881bc0[_0x32ba74]['next']=_0x6ab2bf);}for(const _0x46a09b of _0x2fbcda)for(let _0x50a244=0x0;_0x50a244<_0x46a09b['length'];_0x50a244++){const _0x237f06=_0x46a09b[_0x50a244-0x1]||null;_0x46a09b[_0x50a244]['previous']!==_0x237f06&&(_0x46a09b[_0x50a244]['previous']=_0x237f06);}function _0x4765de(_0x106fb4,_0x1f5cd1){if(_0x106fb4[0x0]['attributes']['groupId']!==_0x1f5cd1[0x0]['attributes']['groupId']&&_0x106fb4[0x0]['author']!==_0x1f5cd1[0x0]['author'])return!0x1;if(!function(_0x1a2dc5,_0x42edff){if(!_0x1a2dc5['hasComments']&&!_0x42edff['hasComments'])return!0x0;if(_0x1a2dc5['hasComments']&&_0x42edff['hasComments'])return!0x1;if(_0x1a2dc5['hasComments']&&_0x42edff['createdAt']<_0x1a2dc5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x42edff['hasComments']&&_0x1a2dc5['createdAt']<_0x42edff['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x106fb4[0x0],_0x1f5cd1[0x0]))return!0x1;const _0x3dc3f4=ot(_0x106fb4[0x0]['attributes'],['groupId','trackingSessionId']),_0x1d697e=ot(_0x1f5cd1[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x3dc3f4,_0x1d697e))return!0x1;if(_0x106fb4[0x0]['attributes']['groupId']==_0x1f5cd1[0x0]['attributes']['groupId'])return!0x0;if(_0x106fb4[0x0]['attributes']['trackingSessionId']!==_0x1f5cd1[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x106fb4['every'](_0x4fad92=>_0x1f5cd1['some'](_0x546d27=>_0x4fad92['getFirstRange']()['isEqual'](_0x546d27['getFirstRange']())))&&_0x1f5cd1['every'](_0x1aafe9=>_0x106fb4['some'](_0x27283a=>_0x1aafe9['getFirstRange']()['isEqual'](_0x27283a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3ba254){const _0x8f72b3=Array['from'](_0x3ba254),_0x414f7e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x120cf7=_0x414f7e['filter'](_0xe23874=>!_0x3ba254['has'](_0xe23874)),_0x512683=new Map(_0x8f72b3['map'](_0x279fbd=>[_0x279fbd,this['_suggestionFactory']['getSuggestionCallback'](_0x279fbd['type'],_0x279fbd['subType'],'join')])),_0x5ad519=new Map(_0x414f7e['map'](_0x39d17a=>[_0x39d17a,_0x39d17a['getRanges']()]));for(let _0x594546=0x0;_0x594546<_0x8f72b3['length'];_0x594546++){if(_0x969cb5(this,_0x8f72b3[_0x594546],_0x8f72b3,_0x594546+0x1))return!0x0;}for(let _0x9bca54=0x0;_0x9bca54<_0x8f72b3['length'];_0x9bca54++){if(_0x969cb5(this,_0x8f72b3[_0x9bca54],_0x120cf7,0x0))return!0x0;}return!0x1;function _0x969cb5(_0x11487d,_0x248d22,_0x2d17b4,_0x3c0dc4){for(let _0x555726=_0x3c0dc4;_0x555726<_0x2d17b4['length'];_0x555726++){const _0x1a9dad=_0x2d17b4[_0x555726];if(_0x1a9dad['type']!==_0x248d22['type']||_0x1a9dad['author']['id']!==_0x248d22['author']['id']||_0x1a9dad['subType']!==_0x248d22['subType'])continue;if(!an(_0x248d22,_0x1a9dad))continue;if('attribute'==_0x248d22['type']&&_0x248d22['data']['oldValue']!=_0x1a9dad['data']['oldValue'])continue;if('attribute'==_0x248d22['type']&&_0x11487d['_suggestionsConversion']['isBlockAttribute'](_0x248d22['data']['key']))continue;if('formatBlock'==_0x248d22['type']){const _0x5caf2d=_0x11487d['editor']['model'],_0x5ce167=_0x248d22['getContainedElement']();if(_0x5ce167&&(_0x5caf2d['schema']['isObject'](_0x5ce167)||_0x5caf2d['schema']['isLimit'](_0x5ce167)))continue;}const _0x9c5851=_0x512683['get'](_0x248d22),_0x288cad=_0x5ad519['get'](_0x248d22),_0x4341cc=_0x5ad519['get'](_0x1a9dad),_0x4a5f2c=_0x248d22['commentThread']&&_0x248d22['commentThread']['length'],_0x1bf786=_0x1a9dad['commentThread']&&_0x1a9dad['commentThread']['length'];if(!_0x4a5f2c&&_0x9c5851(_0x4341cc,_0x288cad))return _0x11487d['_joinSuggestions'](_0x1a9dad,_0x248d22),_0x5ad519['delete'](_0x248d22),!0x0;if(!_0x1bf786&&_0x9c5851(_0x288cad,_0x4341cc))return _0x11487d['_joinSuggestions'](_0x248d22,_0x1a9dad),_0x5ad519['delete'](_0x1a9dad),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2f8713,_0x13c372){if(_0x2f8713['isMultiRange']){for(const _0x10b593 of _0x13c372['getRanges']())_0x2f8713['addRange'](_0x10b593);}else{const _0x46b758=_0x13c372['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2f8713,this['_model']['createRange'](_0x2f8713['getFirstRange']()['start'],_0x46b758));}_0x13c372['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1a0e05,_0x46126d,_0x1ff2ef){const _0x4172e0=_0x1a0e05['startsWith']('format')||_0x1a0e05['startsWith']('attribute')?'FORMATTING':_0x1a0e05['toUpperCase']();return At(this['editor']['locale'],_0x46126d+'_'+_0x4172e0+'_SUGGESTION_ANNOUNCEMENT',_0x1ff2ef);}['_initAriaMarkerChangeAnnouncements'](){const _0x398bfb=this['editor'];if(!_0x398bfb['ui'])return;const {ariaLiveAnnouncer:_0x9dfe02}=_0x398bfb['ui'];_0x344546(this['_model'],({left:_0x5228cd,entered:_0x2855a0})=>{for(const _0x322235 of _0x5228cd){const {group:_0x40e05e,type:_0x2b67b2}=_0x2695e1(_0x322235['name']);if('suggestion'===_0x40e05e){_0x9dfe02['announce'](this['_getMarkerAnnouncementText'](_0x2b67b2,'LEAVE'));break;}}for(const _0x1e061e of _0x2855a0){const {group:_0x524ae1,type:_0x25a45d}=_0x2695e1(_0x1e061e['name']);if('suggestion'===_0x524ae1){_0x9dfe02['announce'](this['_getMarkerAnnouncementText'](_0x25a45d,'ENTER',_0x568c91(_0x11000a)));break;}}});}['_processAttributeChanges'](_0x4bde25){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3a989b=this['editor'],_0x4b6d9e=_0x3a989b['model']['document']['differ']['getChanges']();if(0x0==_0x4b6d9e['length'])return!0x1;const _0x1f09d5=[],_0x3c7df7=_0x4b6d9e['filter'](_0x4f389d=>'attribute'==_0x4f389d['type']),_0x2b7a80=_0x4b6d9e['filter'](_0xb78d34=>'insert'==_0xb78d34['type']&&'$text'!=_0xb78d34['name']),_0x268cfc=_0x4b6d9e['filter'](_0x2e14cb=>'remove'==_0x2e14cb['type']&&'$text'!=_0x2e14cb['name']);for(const _0x26f4ba of _0x3c7df7)_0x1f09d5['push']({'key':_0x26f4ba['attributeKey'],'newValue':_0x26f4ba['attributeNewValue'],'oldValue':_0x26f4ba['attributeOldValue'],'range':sn(_0x26f4ba['range'],_0x3a989b['model'])});for(const _0x36f385 of _0x2b7a80){const _0x10d7a7=_0x268cfc['find'](_0x3b13cf=>_0x3b13cf['position']['isEqual'](_0x36f385['position']));_0x10d7a7&&_0x1f09d5['push']({'key':Ke,'newValue':_0x36f385['name'],'oldValue':_0x10d7a7['name'],'range':_0x3a989b['model']['createRangeOn'](_0x36f385['position']['nodeAfter'])});}return 0x0!=_0x1f09d5['length']&&this['_reduceExistingSuggestions'](_0x4bde25,_0x1f09d5);}['_processAttributeSuggestions'](_0x4781b6){let _0x8fa773=!0x1;const _0x96b744=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x43e8a9=>_0x43e8a9['data']['newRange']&&_0x43e8a9['name']['startsWith']('suggestion:attribute:'));for(const _0x20b452 of _0x96b744){const {subType:_0x20412c,id:_0x3fd4a4}=_0x2695e1(_0x20b452['name']),_0x4d62eb=_0x20412c['split']('|')[0x0];for(const _0x4e4047 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4e4047['id']!=_0x3fd4a4&&'attribute'==_0x4e4047['type']&&_0x4e4047['data']&&_0x4e4047['data']['key']==_0x4d62eb&&_0x4e4047['getFirstRange']()['isIntersecting'](_0x20b452['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4e4047,_0x20b452['data']['newRange'],_0x4781b6),_0x8fa773=!0x0);}return _0x8fa773;}['recordAttributeChanges'](_0x47c986){this['_recordAttributeSuggestions']=!0x0,_0x47c986();}['_reduceExistingSuggestions'](_0x35ab34,_0x43a417){if(0x0==_0x43a417['length'])return!0x1;let _0x3a973b=!0x1;for(const _0xc89c1a of _0x43a417){const _0x1a9837=this['_findSuggestions'](_0xc89c1a['range'],'attribute')['filter'](_0x236e12=>!_0x236e12['meta']['isNextTo'])['map'](_0x321805=>_0x321805['suggestion']),_0x48b6d9=_0x45797d({'newValue':_0xc89c1a['newValue']});_0x1a9837['filter'](_0x42f106=>{const [_0x2457a2,_0x44e23e]=_0x42f106['subType']['split']('|');return _0x2457a2==_0xc89c1a['key']&&_0x44e23e!=_0x48b6d9;})['forEach'](_0x4527c2=>{this['_reduceSuggestionAttributeRange'](_0x4527c2,_0xc89c1a['range'],_0x35ab34),_0x3a973b=!0x0;});}return _0x3a973b;}['_reduceSuggestionAttributeRange'](_0x3562eb,_0x14adf8,_0x1de280){const _0xf19f26=_0x3562eb['getFirstRange']()['getDifference'](_0x14adf8);0x0!==_0xf19f26['length']?0x1!==_0xf19f26['length']?this['_breakSuggestionMarker'](_0x3562eb,_0x14adf8['start'],_0x14adf8['end']):this['_setSuggestionRange'](_0x3562eb,_0xf19f26[0x0]):_0x1de280['removeMarker'](_0x3562eb['getFirstMarker']());}}class Ye{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3eefca){this['_editor']=_0x3eefca,this['_model']=_0x3eefca['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xb6d311,_0x352d6f,_0x749cb8,_0x478747,_0x49543d,_0x1b054c,_0xa22122){return new bt(this['_model'],{'type':_0xb6d311,'subType':_0x352d6f,'id':_0x749cb8,'originalSuggestionId':_0xa22122,'author':_0x478747,'creator':_0x478747,'attributes':_0x49543d,'onAttributesChange':_0x1b054c,'onAccept':(..._0x156061)=>this['getSuggestionCallback'](_0xb6d311,_0x352d6f,'accept')(..._0x156061),'onDiscard':(..._0x32780f)=>this['getSuggestionCallback'](_0xb6d311,_0x352d6f,'discard')(..._0x32780f)});}['registerCustomCallback'](_0x393731,_0x4752a7,_0x432913,_0x361dc6){const _0x338317=_0x393731+':'+_0x4752a7+':'+_0x432913;this['_customCallbacks']['set'](_0x338317,_0x361dc6);}['getSuggestionCallback'](_0x21b922,_0x3a159b,_0x4166e2){const _0xdc6909=_0x21b922+':'+_0x3a159b+':'+_0x4166e2;return this['_customCallbacks']['get'](_0xdc6909)||this['_defaultCallbacks']['get'](_0x21b922+':'+_0x4166e2);}['_registerDefaultCallbacks'](){const _0x142bcb=()=>!0x1,_0xd561ed=_0x1f8db4=>{_0x1f8db4['sort']((_0x5c43ad,_0x1b8e3e)=>_0x5c43ad['start']['isBefore'](_0x1b8e3e['start'])?0x1:-0x1),this['_model']['change'](_0x45f7bc=>{for(const _0xd2fc90 of _0x1f8db4){let _0x699862;_0x699862=_0xd2fc90['end']['isAtEnd']&&_0xd2fc90['end']['parent']==_0xd2fc90['start']['nodeAfter']?_0x45f7bc['createSelection'](_0xd2fc90['start']['nodeAfter'],'on'):_0x45f7bc['createSelection'](_0xd2fc90),this['_model']['deleteContent'](_0x699862,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x1a375e=(_0x3e8c92,_0xa90c37)=>{_0xa90c37&&this['_model']['change'](_0x598a80=>{const {commandName:_0x38dd68,commandParams:_0x5f4aa6=[]}=_0xa90c37,_0x5ba055=_0x3e8c92['map'](_0x57347a=>(Qe(_0x57347a)&&(_0x57347a=this['_model']['createRange'](_0x57347a['end'])),_0x57347a))['filter'](_0x4ad2b2=>'$graveyard'!==_0x4ad2b2['root']['rootName']);if(_0x5ba055['length']<0x1)return;const _0x331416=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4381b6=>_0x2b4b27['fromRange'](_0x4381b6));_0x598a80['setSelection'](_0x5ba055);for(const _0xa45d5d of this['_editor']['commands']['commands']())_0xa45d5d['refresh']();_0x5f4aa6['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x38dd68,..._0x5f4aa6);const _0x48e385=_0x331416['filter'](_0x6b4c56=>'$graveyard'!=_0x6b4c56['root']['rootName']);_0x48e385['length']>0x0&&_0x598a80['setSelection'](_0x48e385);for(const _0x56a6d0 of _0x331416)_0x56a6d0['detach']();});},_0x2104a4=(_0xe8033b,_0x168558)=>0x1==_0xe8033b['length']&&0x1==_0x168558['length']&&_0xe8033b[0x0]['end']['isEqual'](_0x168558[0x0]['start']),_0x12c747=(_0xb77500,_0x1d8b2f,_0x160547,_0xef904a)=>on(_0xb77500,_0x1d8b2f,_0x160547,_0xef904a)?[_0xb77500,_0x1d8b2f]:on(_0x1d8b2f,_0xb77500,_0xef904a,_0x160547)?[_0x1d8b2f,_0xb77500]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x142bcb),this['_defaultCallbacks']['set']('insertion:discard',_0xd561ed),this['_defaultCallbacks']['set']('insertion:join',_0x2104a4),this['_defaultCallbacks']['set']('insertion:chain',_0x12c747),this['_defaultCallbacks']['set']('deletion:accept',_0xd561ed),this['_defaultCallbacks']['set']('deletion:discard',_0x142bcb),this['_defaultCallbacks']['set']('deletion:join',_0x2104a4),this['_defaultCallbacks']['set']('deletion:chain',_0x12c747),this['_defaultCallbacks']['set']('formatInline:accept',_0x1a375e),this['_defaultCallbacks']['set']('formatInline:discard',_0x142bcb),this['_defaultCallbacks']['set']('formatInline:join',_0x2104a4),this['_defaultCallbacks']['set']('formatInline:chain',_0x142bcb),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1a375e),this['_defaultCallbacks']['set']('formatBlock:discard',_0x142bcb),this['_defaultCallbacks']['set']('formatBlock:join',_0x2104a4),this['_defaultCallbacks']['set']('formatBlock:chain',_0x142bcb),this['_defaultCallbacks']['set']('attribute:accept',_0x142bcb),this['_defaultCallbacks']['set']('attribute:discard',(_0x137e0c,_0x16717e)=>{if(!_0x16717e)return;const _0x5404ae=this['_editor']['plugins']['get'](_0x27960a);this['_model']['change'](_0x3291db=>{if(_0x16717e['key']==Ke)for(const _0x5f4f6e of _0x137e0c){const _0x104944=_0x5f4f6e['start']['nodeAfter'],_0x22ecb5=_0x16717e['oldValue'];_0x3291db['rename'](_0x104944,_0x22ecb5);}else{if(_0x5404ae['isBlockAttribute'](_0x16717e['key'])){for(const _0x1fc0dc of _0x137e0c)void 0x0!==_0x16717e['oldValue']?_0x3291db['setAttribute'](_0x16717e['key'],_0x16717e['oldValue'],_0x1fc0dc['start']['nodeAfter']):_0x3291db['removeAttribute'](_0x16717e['key'],_0x1fc0dc['start']['nodeAfter']);}else{for(const _0x5bea7e of _0x137e0c)_0x16717e['oldValue']?_0x3291db['setAttribute'](_0x16717e['key'],_0x16717e['oldValue'],_0x5bea7e):_0x3291db['removeAttribute'](_0x16717e['key'],_0x5bea7e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2104a4);}}function qe(_0x5d7ae8,_0x2d6957,_0x5e10ec){for(const _0x3a00ea of _0x2d6957['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3a00ea['root']==_0x3a00ea)return!0x1;if(!_0x5e10ec['containsItem'](_0x3a00ea))return!0x1;if(_0x5d7ae8['isObject'](_0x3a00ea)||_0x5d7ae8['isLimit'](_0x3a00ea))return!0x0;}return!0x1;}function Qe(_0x2ce6b9){return _0x2ce6b9['end']['parent']==_0x2ce6b9['start']['nodeAfter']&&_0x2ce6b9['end']['isAtStart'];}function Ze(_0x167aec,_0x1e53a6,_0x3b87e1,_0x3b4959){const _0x57a456=_0x21631e=>!_0x21631e['item']['is']('$textProxy')&&!_0x3b4959['isObject'](_0x21631e['item']),_0x5e4db5=_0x167aec['start']['getLastMatchingPosition'](_0x57a456),_0x296c62=_0x167aec['end']['getLastMatchingPosition'](_0x57a456,{'direction':'backward'});return(!_0x167aec['start']['isEqual'](_0x5e4db5)||!_0x167aec['end']['isEqual'](_0x296c62))&&(_0x5e4db5['isBefore'](_0x296c62)?_0x3b87e1['updateMarker'](_0x1e53a6,{'range':_0x3b87e1['createRange'](_0x5e4db5,_0x296c62)}):_0x3b87e1['removeMarker'](_0x1e53a6),!0x0);}function Je(_0x199813){return _0x45797d(_0x199813);}function tn(_0x3b1c8b){const _0x4609d6=_0x3b1c8b['start']['nodeAfter'];return _0x4609d6&&_0x4609d6['is']('element');}function en(_0x4d2b40){return Qe(_0x4d2b40)||function(_0x24f93c){return _0x24f93c['start']['parent']==_0x24f93c['end']['nodeBefore']&&_0x24f93c['start']['isAtEnd'];}(_0x4d2b40);}function nn(_0x186f2b,_0x324b61){try{const _0x636a9d=_0x186f2b['getRange']();for(const _0x5967b4 of _0x324b61)if(_0x186f2b!==_0x5967b4&&_0x636a9d&&_0x636a9d['isIntersecting'](_0x5967b4['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function sn(_0x2df607,_0xc8785c){return null==_0x2df607['end']['nodeBefore']&&_0x2df607['end']['parent']==_0x2df607['start']['nodeAfter']?rn(_0x2df607['start']['nodeAfter'],_0xc8785c):_0x2df607;}function rn(_0x192a9e,_0x5121c1){const _0x404272=_0x5121c1['schema']['isObject'](_0x192a9e)||_0x5121c1['schema']['isSelectable'](_0x192a9e);return _0x5121c1['createRange'](_0x5121c1['createPositionAt'](_0x192a9e,'before'),_0x404272?_0x5121c1['createPositionAfter'](_0x192a9e):_0x5121c1['createPositionAt'](_0x192a9e,'end'));}function on(_0x2c0e06,_0x3492f3,_0x298ab2,_0x3a62fc){return!!an(_0x2c0e06,_0x3492f3)&&_0x298ab2['end']['isEqual'](_0x3a62fc['start']);}function an(_0xdacc12,_0x4ee2ad){if(!_0xdacc12['_isDataLoaded']||!_0x4ee2ad['_isDataLoaded'])return!0x1;const _0x127164=new Set(Object['keys'](_0xdacc12['attributes'])),_0x482b63=new Set(Object['keys'](_0x4ee2ad['attributes']));if(_0x127164['delete']('groupId'),_0x482b63['delete']('groupId'),0x0==_0x127164['size']&&0x0==_0x482b63['size'])return!0x0;if(_0x127164['size']!=_0x482b63['size'])return!0x1;const _0x2b8586={..._0xdacc12['attributes']},_0x590cc7={..._0x4ee2ad['attributes']};return delete _0x2b8586['groupId'],delete _0x590cc7['groupId'],JSON['stringify'](_0x2b8586)==JSON['stringify'](_0x590cc7);}function cn(_0x9af28f,_0x30bd05){const _0xaee2d3=ln(_0x9af28f['attributes']),_0x4f6d24=ln(_0x30bd05);if(!_0x9af28f['_isDataLoaded'])return!0x1;for(const _0x18cb28 of Object['keys'](_0x4f6d24))if(!st(_0xaee2d3[_0x18cb28],_0x4f6d24[_0x18cb28]))return!0x1;return!0x0;}function ln(_0x1a9c2c){const _0x30a00c=Object['assign']({},_0x1a9c2c);return delete _0x30a00c['skipNestingCheck'],delete _0x30a00c['tablePasteChainId'],_0x30a00c;}function un(_0x360845){return _0x360845['split']('|')[0x0];}class hn extends/* #__PURE__ -- @preserve */
26
+ _0x464ae4(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2913bb,_0x5a6fa0,_0x4ea9af,_0x3494e1){super(),this['model']=_0x5a6fa0,this['view']=_0x4ea9af,this['commentThreadController']=_0x3494e1,this['_editor']=_0x2913bb,this['_acceptCommand']=_0x2913bb['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2913bb['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2d9a95,_0x566850)=>_0x2d9a95||_0x566850),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x107ce4=>_0x107ce4&&this['_editor']['model']['canEditAt'](_0x5a6fa0['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x26183f=>_0x26183f&&this['_editor']['model']['canEditAt'](_0x5a6fa0['getRanges']())),this['_pendingAction']=null,_0x4ea9af['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4ea9af,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4ea9af,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4ea9af,'change:isDirty',()=>{_0x4ea9af['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 _0x4fdb44=At(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4fdb44);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class dn extends _0x3a1821{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x58712d,_0x2005a0,_0x2572a5,_0x1fd382){super(_0x58712d),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xfc786c(_0x58712d,At(_0x58712d,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2005a0['authoredAt']),this['bind']('authoredAt')['to'](_0x2005a0),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',_0x2005a0,'authoredAt',this,'descriptionParts',(_0x1af7a2,_0x5e1620,_0x55c297)=>{const _0x543ff5=_0x55c297['map'](_0x4a2479=>gt(_0x4a2479['content']))['join']('.\x20')+'.';return At(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1af7a2-0x1,_0x2005a0['author']['name'],_0x5e1620?_0x1fd382['formatDateTime'](_0x5e1620):'',new DOMParser()['parseFromString'](_0x543ff5,'text/html')['body']['textContent']]);}),this['focusables']=new _0x9c0bc(),this['focusTracker']=new _0x8e5424(),this['keystrokes']=new _0x9c836(),this['focusCycler']=new _0x406ced({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x140dc8=>_0x140dc8['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2005a0,this['_localUser']=_0x2572a5,this['_config']=_0x1fd382,_0x1fd382['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x56e32f(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x179420}=this['_config'];this['commentsListView']=new _0x179420(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',_0x3a83a9=>_0x3a83a9+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x291809,_0x2f962d)=>_0x291809||!!_0x2f962d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2d907b}=this['_config'],_0x3279c0=new _0x2d907b(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x15f086=_0x3279c0['commentInputView'];return _0x3279c0['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x15f086,'value',(_0xacee41,_0x565923,_0x18538e)=>!!_0x18538e||_0xacee41&&!_0x565923),_0x15f086['on']('submit',(_0x2a707e,_0x7475a6)=>{this['fire']('addComment',_0x7475a6),_0x15f086['editor']['setData']('');}),_0x15f086['on']('cancel',()=>this['focus']()),_0x15f086['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3279c0;}}class fn extends dn{['suggestionView'];['_descriptionElement'];constructor(_0x10e1df,_0x2594fa,_0x34dd61,_0x33ea1d){super(_0x10e1df,_0x2594fa,_0x34dd61,_0x33ea1d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x258c5c=>_0x258c5c&&_0x258c5c[0x0]?_0x258c5c[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2b199a,_0x3b64fe)=>{let _0x443e8b='';for(const _0x59009a of _0x2b199a)_0x443e8b+='<p>'+gt(_0x59009a['content'],_0x59009a['color'])+'</p>';return _0x3b64fe?_0x443e8b:_0x2a6db8(_0x443e8b,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x33ea1d['SuggestionView'](_0x10e1df,_0x2594fa,{'formatDateTime':_0x33ea1d['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 _0x2c4478=this['bindTemplate'],_0x2d3512=[this['suggestionView']];return this['commentsListView']&&_0x2d3512['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2d3512['push'](this['commentThreadInputView']),_0x2d3512['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2c4478['if']('isActive','ck-suggestion-wrapper--active'),_0x2c4478['to']('type',_0x50ad15=>'ck-suggestion-'+_0x50ad15),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':_0x2c4478['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2d3512};}['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 gn extends _0x3a1821{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4f1486,_0x29fa30,_0x5a88ad){super(_0x4f1486),this['_model']=_0x29fa30,this['_config']=_0x5a88ad,this['set']('description',''),this['bind']('authoredAt')['to'](_0x29fa30),this['acceptButton']=this['_createButton'](At(_0x4f1486,'Accept\x20suggestion'),_0x15ebb5,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](At(_0x4f1486,'Discard\x20suggestion'),_0x5385aa,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4c6546(_0x4f1486,_0x29fa30['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x9c0bc([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x8e5424(),this['keystrokes']=new _0x9c836(),this['focusCycler']=new _0x406ced({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x43f8c1=>_0x43f8c1['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x505ebb=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x505ebb['innerHTML']=this['description'],this['on']('change:description',(_0x4fc3a5,_0x1ad019,_0x56e536)=>{_0x505ebb['innerHTML']=_0x56e536;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x311a3a=this['bindTemplate'],_0x190f71=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x311a3a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x311a3a['to']('authoredAt',_0x3b533c=>this['_config']['formatDateTime'](_0x3b533c))}]}]},{'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']&&_0x190f71['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':_0x190f71}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?At(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):At(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?At(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):At(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0xaf5e13,_0x581b62,_0x5e3ea7,_0x342aa2,_0xcbac9){const _0xa7fc6d=new _0x2312ed(this['locale']);return _0xa7fc6d['set']({'label':_0xaf5e13,'icon':_0x581b62,'tooltip':!0x0,'tooltipPosition':_0xcbac9}),_0xa7fc6d['extendTemplate']({'attributes':{'class':_0x5e3ea7}}),_0xa7fc6d['on']('execute',()=>{this['fire'](_0x342aa2,this['_model']['id']);}),_0xa7fc6d;}['_setupKeyboardNavigation'](){const _0x2aa4c6=this['element'];this['keystrokes']['listenTo'](_0x2aa4c6);for(const _0x1fb40b of this['focusables'])this['focusTracker']['add'](_0x1fb40b['element']),this['keystrokes']['listenTo'](_0x1fb40b['element']);this['keystrokes']['set']('enter',(_0x14d416,_0x57f399)=>{_0x2aa4c6===_0x14d416['target']&&(this['focusCycler']['focusFirst'](),_0x57f399());}),this['keystrokes']['set']('esc',(_0x54973d,_0x38c31f)=>{_0x2aa4c6!==_0x54973d['target']&&(this['focus'](),_0x38c31f());});}}class mn extends _0x3c3277{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[Xe,_0x255ceb,_0xeecc44,_0xa2cb68,_0x12f336];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4e230b){super(_0x4e230b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1a32f3=this['editor']['config'];_0x1a32f3['define']('trackChanges.SuggestionThreadView',fn),_0x1a32f3['define']('trackChanges.SuggestionView',gn),_0x1a32f3['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1a32f3['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x305027,_0x242634){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x423101,_0x20caef]of this['_handleControllerBuffer']){const _0x1bd4db=this['_suggestionToController']['has'](_0x423101);_0x1bd4db||_0x20caef?_0x1bd4db&&_0x20caef&&this['_destroyController'](_0x423101):this['_initializeController'](_0x423101);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x12f336)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x305027,_0x242634);}['init'](){const _0x406850=this['editor'],_0x21fc36=_0x406850['plugins']['get'](Xe),_0x2d494a=_0x406850['plugins']['get'](_0xa2cb68),_0xf52cb9=_0x406850['plugins']['get'](_0x12f336),_0x39072e=_0x406850['plugins']['get'](_0xeecc44);this['_addUIComponentsToFactory'](),_0xf52cb9['addSourceCollector'](()=>{const _0x42c774=[];for(const [_0x428b70,_0xfe8f12]of Array['from'](this['_suggestionToController'])){const _0x3086fa=_0x428b70['getAllAdjacentSuggestions'](),_0x489b95=[];for(const _0x12beb2 of _0x3086fa){if(!_0x12beb2['isInContent'])continue;if(_0x12beb2['isMultiRange']){_0x489b95['push'](..._0x12beb2['getRanges']());continue;}const _0x456ab0=_0x12beb2['getFirstRange']();if(_0x489b95['length']>0x0){const _0x319581=_0x489b95[0x0]['getJoined'](_0x456ab0);if(_0x319581){_0x489b95[0x0]=_0x319581;continue;}}_0x489b95['push'](_0x456ab0);}_0x42c774['push']([_0xfe8f12['view'],_0x489b95]);}return _0x42c774;}),this['listenTo'](_0x21fc36,'suggestionLoaded',(_0x58c171,_0x35725c)=>{this['listenTo'](_0x35725c,'change:previous',(_0x35ed6f,_0x3e5a4f,_0xfaed2a,_0x8505d1)=>{_0x35725c['isInContent']&&(null==_0xfaed2a?(this['_updateController'](_0x8505d1['head']),this['_handleSuggestionControllerDelayed'](_0x35725c,!0x1)):(this['_updateController'](_0xfaed2a['head']),null==_0x8505d1&&this['_handleSuggestionControllerDelayed'](_0x35725c,!0x0)));}),null!==_0x35725c['previous']?this['_updateController'](_0x35725c['head']):this['_handleSuggestionControllerDelayed'](_0x35725c,!0x1);}),this['listenTo'](_0x21fc36,'suggestionUnloaded',(_0x583df6,_0xe58e4e,_0x319d9a)=>{this['stopListening'](_0xe58e4e,'change:previous'),this['_handleControllerBuffer']['delete'](_0xe58e4e),this['_suggestionToController']['has'](_0xe58e4e)&&this['_destroyController'](_0xe58e4e),_0x319d9a&&this['_updateController'](_0x319d9a['head']);}),this['listenTo'](_0x21fc36,'suggestionChanged',(_0x312ed5,_0x5eb4a5)=>{this['_updateController'](_0x5eb4a5);}),this['listenTo'](_0x2d494a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x39072e,'addComment',(_0x25267,{threadId:_0x154128,isFromAdapter:_0x2ed788})=>{if(_0x2ed788||!_0x21fc36['hasSuggestion'](_0x154128))return;const _0x3fb130=_0x21fc36['getSuggestion'](_0x154128);this['_suggestionToController']['get'](_0x3fb130)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4d1c22=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x335fb6;for(const _0x5cff58 in _0x4d1c22){const _0x4c09c6=_0x5cff58,_0x4a1aea=_0x4d1c22[_0x4c09c6];if('trackChangesLicenseKeyValid'==_0x4a1aea||'trackChangesLicenseKeyInvalid'==_0x4a1aea||'trackChangesLicenseKeyExpired'==_0x4a1aea||'trackChangesLicenseKeyDomainLimit'==_0x4a1aea||'trackChangesLicenseKeyNotAllowed'==_0x4a1aea||'trackChangesLicenseKeyEvaluationLimit'==_0x4a1aea||'trackChangesLicenseKeyUsageLimit'==_0x4a1aea){delete _0x4d1c22[_0x4c09c6],_0x335fb6=_0x4a1aea,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x335fb6&&_0x4d1c22['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x335fb6&&_0x4d1c22['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x335fb6&&_0x4d1c22['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x335fb6&&_0x4d1c22['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x335fb6&&_0x4d1c22['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x335fb6&&_0x4d1c22['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x12ddc6){const _0x198392=this['_suggestionToController']['get'](_0x12ddc6);if(!_0x198392)return null;return this['editor']['plugins']['get'](_0xa2cb68)['getByInnerView'](_0x198392['view'])||null;}['getSuggestionForAnnotation'](_0x3c74aa){const _0x4088dc=this['_viewToController']['get'](_0x3c74aa['innerView']);return _0x4088dc?_0x4088dc['model']:null;}['_refreshActiveMarkers'](){const _0x46092d=this['editor']['plugins']['get'](_0xa2cb68),_0x333d07=this['editor']['plugins']['get'](Xe),_0x1900a8=Array['from'](_0x46092d['activeAnnotations'],_0x260b53=>_0x260b53['innerView'])['filter'](_0x595547=>this['_viewToController']['has'](_0x595547)),_0x23ed39=[];for(const _0x12c307 of _0x1900a8){const _0x11923b=this['_viewToController']['get'](_0x12c307)['model']['getAllAdjacentSuggestions']();_0x23ed39['push'](..._0x11923b['reduce']((_0x5b67d6,_0x8bd2ff)=>[..._0x5b67d6,..._0x8bd2ff['getMarkerNames']()],[]));}_0x333d07['activeMarkers']=_0x23ed39;}['_addUIComponentsToFactory'](){const _0x4ee73a=this['editor'],_0x4f0a46=_0x4ee73a['locale'],_0x301398=At(_0x4f0a46,'Track\x20changes'),_0x4ba515=new _0x511ffa([{'type':'switchbutton','model':new _0x53482d({'withText':!0x0,'isToggleable':!0x0,'label':_0x301398,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x53482d({'withText':!0x0,'label':At(_0x4f0a46,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x53482d({'withText':!0x0,'label':At(_0x4f0a46,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x53482d({'withText':!0x0,'label':At(_0x4f0a46,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x53482d({'withText':!0x0,'label':At(_0x4f0a46,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4ee73a['plugins']['has']('TrackChangesPreview')&&_0x4ba515['addMany']([{'type':'separator'},{'type':'button','model':new _0x53482d({'withText':!0x0,'label':At(_0x4f0a46,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0xf2e881 of _0x4ba515)if(En(_0xf2e881)){const _0x5aecb4=_0x4ee73a['commands']['get'](_0xf2e881['model']['commandName']);_0xf2e881['model']['bind']('isOn','isEnabled')['to'](_0x5aecb4,'value','isEnabled');}_0x4ee73a['ui']['componentFactory']['add']('trackChanges',_0x4356bd=>this['_createToolbarButton'](_0x4356bd,_0x4ba515,_0x301398)),_0x4ee73a['ui']['componentFactory']['add']('menuBar:trackChanges',_0x10b7d4=>this['_createMenuBarMenu'](_0x10b7d4,_0x4ba515,_0x301398));}['_createToolbarButton'](_0x5ee15b,_0x5d3cb3,_0x37cfb4){const _0x201a7e=_0xbe259c(_0x5ee15b,_0x413e1b),_0x2ad9a8=this['editor']['commands']['get']('trackChanges');_0x201a7e['buttonView']['set']({'tooltip':_0x37cfb4,'label':_0x37cfb4,'icon':_0xe4a7ea}),_0x201a7e['buttonView']['bind']('isOn')['to'](_0x2ad9a8,'value'),_0x201a7e['buttonView']['on']('execute',()=>{_0x2ad9a8['execute'](),this['editor']['editing']['view']['focus']();}),_0x4f366d(_0x201a7e,_0x5d3cb3,{'role':'menu'});const _0x2c5f8c=[];for(const _0x373c61 of _0x5d3cb3)En(_0x373c61)&&_0x2c5f8c['push'](this['editor']['commands']['get'](_0x373c61['model']['commandName']));const _0x3e3ba3=_0x201a7e['buttonView'];return _0x3e3ba3['actionView']['unbind']('isEnabled'),_0x3e3ba3['arrowView']['unbind']('isEnabled'),_0x3e3ba3['actionView']['bind']('isEnabled')['to'](_0x2ad9a8,'isEnabled'),_0x3e3ba3['arrowView']['bind']('isEnabled')['toMany'](_0x2c5f8c,'isEnabled',(..._0x4cc5b1)=>_0x4cc5b1['some'](_0x1ac90e=>_0x1ac90e)),_0x201a7e['on']('execute',_0x173258=>{this['editor']['execute'](_0x173258['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x201a7e;}['_createMenuBarMenu'](_0x1613a0,_0x1a7e23,_0x27326c){const _0x185abf=new _0x2bbc4a(_0x1613a0),_0x3f00c8=this['editor']['commands']['get']('trackChanges');_0x185abf['buttonView']['set']({'label':_0x27326c,'icon':_0xe4a7ea});const _0x529e9d=new _0x39190f(_0x1613a0);for(const _0x85031d of _0x1a7e23){if('separator'==_0x85031d['type']){_0x529e9d['items']['add'](new _0xca665c(_0x1613a0));continue;}const _0xd2f441=new _0x4de169(_0x1613a0,_0x185abf),_0x4ccbff=new _0x3f5ee5(_0x1613a0),_0x3b142f=_0x85031d['model'];_0x4ccbff['bind'](...Object['keys'](_0x3b142f))['to'](_0x3b142f),_0x4ccbff['delegate']('execute')['to'](_0x185abf),_0x4ccbff['on']('execute',()=>{this['editor']['execute'](_0x3b142f['commandName']),this['editor']['editing']['view']['focus']();}),_0xd2f441['children']['add'](_0x4ccbff),_0x529e9d['items']['add'](_0xd2f441);}return _0x185abf['bind']('isEnabled')['to'](_0x3f00c8,'isEnabled'),_0x185abf['panelView']['children']['add'](_0x529e9d),_0x185abf;}['_initializeController'](_0x427293){const _0xf04c11=this['editor'],_0x4ffb2b=_0xf04c11['config'],_0x3aea2e=_0xf04c11['plugins']['get'](_0xa2cb68),_0x2f426a=_0xf04c11['plugins']['get'](_0xeecc44),_0x42e44b=_0xf04c11['plugins']['get'](_0x12f336),_0x222b87=_0xf04c11['plugins']['get'](_0x255ceb)['me'],_0x7602b1=_0x4ffb2b['get']('trackChanges')['SuggestionThreadView'],_0x2ae5b8=_0x4ffb2b['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2a2a80,CommentThreadInputView:_0x142491}=_0xf04c11['plugins']['get']('CommentsUI');let _0x2e536c,_0x338f44,_0x3adac9;this['_annotationViews']['has'](_0x427293['id'])?(_0x338f44=this['_annotationViews']['get'](_0x427293['id']),_0x2e536c=_0x338f44['mainView']):(_0x2e536c=new _0x7602b1(_0xf04c11['locale'],_0x427293,_0x222b87,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4ffb2b['get']('comments.editorConfig'),'licenseKey':_0x4ffb2b['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4ffb2b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4ffb2b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4ffb2b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5ec8a3(_0x4ffb2b['get']('locale'),_0xf04c11['locale']),'CommentView':_0x4ffb2b['get']('comments')['CommentView'],'CommentsListView':_0x2a2a80,'CommentThreadInputView':_0x142491,'SuggestionView':_0x2ae5b8}),_0x2e536c['suggestionView']['acceptButton']['on']('execute',()=>{_0xf04c11['editing']['view']['focus']();}),_0x2e536c['suggestionView']['discardButton']['on']('execute',()=>{_0xf04c11['editing']['view']['focus']();}),_0x338f44=_0x3aea2e['createAnnotationView'](this['editor']['locale'],_0x2e536c),_0x338f44['bind']('isDirty')['to'](_0x2e536c,'isDirty'),_0x338f44['bind']('length')['to'](_0x2e536c),_0x338f44['bind']('type')['to'](_0x2e536c,'type',_0x1b4da7=>'suggestion-'+_0x1b4da7),_0x2e536c['on']('escape',()=>{_0x3adac9['fire']('escape');}),this['_annotationViews']['set'](_0x427293['id'],_0x338f44));const _0x202257=_0x2f426a['createCommentThreadController'](_0x427293['commentThread'],_0x2e536c),_0x5ca3da=new hn(_0xf04c11,_0x427293,_0x2e536c,_0x202257),_0x31b67e=_0x427293['getAllAdjacentSuggestions']()['filter'](_0x24ef6e=>_0x24ef6e['isInContent']);_0x2e536c['descriptionParts']=_0xf04c11['plugins']['get'](Xe)['descriptionFactory']['getDescriptions'](_0x31b67e),this['_suggestionToController']['set'](_0x427293,_0x5ca3da),this['_viewToController']['set'](_0x2e536c,_0x5ca3da);const _0x2f515a=()=>{const _0x115de5=[],_0x153e41=_0x427293['getAllAdjacentSuggestions']()['filter'](_0x1092c1=>_0x1092c1['isInContent']);for(const _0xc86b9d of _0x153e41)_0x115de5['push'](..._0xc86b9d['getMarkers']());return _0x4070b8(_0xf04c11['editing'],_0x115de5);};_0x3adac9=_0x3aea2e['createAnnotation']({'view':_0x338f44,'target':_0x2f515a,'type':()=>'suggestion-'+_0x5ca3da['view']['type'],'isVisible':!!_0x2f515a()}),_0x2f426a['_bindAnnotationToEditors'](_0x2e536c,_0x3adac9),_0x3aea2e['add'](_0x3adac9),_0x42e44b['registerAnnotation'](_0x3adac9);}['_destroyController'](_0x702459){const _0x34c4f1=this['editor']['plugins']['get'](_0xeecc44),_0x403c5e=this['editor']['plugins']['get'](_0xa2cb68),_0x3f777e=this['_suggestionToController']['get'](_0x702459),_0x45e77c=_0x3f777e['view'],_0x2bcab8=_0x403c5e['getByInnerView'](_0x45e77c);_0x34c4f1['_unbindEditors'](_0x45e77c),_0x2bcab8&&_0x403c5e['remove'](_0x2bcab8),this['_suggestionToController']['delete'](_0x702459),this['_viewToController']['delete'](_0x45e77c),_0x3f777e['destroy']();}['_updateController'](_0x21633d){if(!_0x21633d['isInContent']||!this['_suggestionToController']['has'](_0x21633d))return;const _0x15676d=this['editor']['plugins']['get'](Xe),_0xff5db3=this['_suggestionToController']['get'](_0x21633d),_0x32bf43=_0x21633d['getAllAdjacentSuggestions']();_0xff5db3['view']['descriptionParts']=_0x15676d['descriptionFactory']['getDescriptions'](_0x32bf43);}['destroy'](){for(const _0x338d48 of this['_suggestionToController']['keys']())this['_destroyController'](_0x338d48);for(const _0x2780e6 of this['_annotationViews']['values']())_0x2780e6['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function En(_0x271404){return'model'in _0x271404;}class Tn extends _0x3c3277{static get['requires'](){return[Xe,mn,_0x41298b];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x33e1a7){this['editor']['plugins']['get'](Xe)['adapter']=_0x33e1a7;}get['adapter'](){return this['editor']['plugins']['get'](Xe)['adapter'];}['addSuggestion'](_0x45fddb){return this['editor']['plugins']['get'](Xe)['addSuggestionData'](_0x45fddb);}['getSuggestions']({skipNotAttached:_0x30ab94=!0x1,toJSON:_0x5aaaf5=!0x1}={}){return this['editor']['plugins']['get'](Xe)['getSuggestions']({'skipNotAttached':_0x30ab94,'toJSON':_0x5aaaf5});}['getSuggestion'](_0x4b5c48){return this['editor']['plugins']['get'](Xe)['getSuggestion'](_0x4b5c48);}}const _n=['Pagination'];class pn extends _0x3c3277{static get['requires'](){return[Xe];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x28181c=this['editor'];if(_0x28181c['config']['define']('trackChangesData.editorCreator',_0x25dd0e=>{const _0x1e8d85=_0x28181c['model']['document']['getRootNames']()['reduce']((_0x262623,_0x4a4cc2)=>(_0x262623[_0x4a4cc2]='',_0x262623),{});return _0x28181c['constructor']['create'](_0x1e8d85,_0x25dd0e);}),'function'!=typeof _0x28181c['config']['get']('trackChangesData')['editorCreator'])throw new _0x58c399('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x408c12){return bn(this['editor'],!0x0,_0x408c12);}['getDataWithDiscardedSuggestions'](_0x205e28){return bn(this['editor'],!0x1,_0x205e28);}}class Ln extends _0x3c3277{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xf9acfc){function _0x2785a(_0x300ec9){return _0x300ec9['map'](_0x31fe46=>String['fromCharCode'](_0x31fe46))['join']('');}super(_0xf9acfc),this['result']='end',_0xf9acfc[_0x2785a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2785a([0x76,0x69,0x65,0x77])][_0x2785a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2785a([0x61,0x75,0x74,0x6f]),_0xf9acfc[_0x2785a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2785a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2785a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2785a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2785a([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 In(_0x56af45){return void 0x0!==_0x56af45['getRootsAttributes'];}async function bn(_0x392a76,_0x477093,_0x24532e){const _0x2f38f5=_0x19628d(_0x392a76,_n);if(_0x2f38f5['plugins']['push'](Xe,Ln),In(_0x392a76)){_0x2f38f5['roots']=Object['create'](null);for(const _0x4ac5e8 of _0x392a76['model']['document']['getRootNames']())_0x2f38f5['roots'][_0x4ac5e8]={'modelAttributes':_0x392a76['getRootAttributes'](_0x4ac5e8)};}const _0x259a1a=document['createDocumentFragment'](),_0x5a44bf=_0x392a76['config']['get']('trackChangesData')['editorCreator'],_0x5ac49e=await _0x5a44bf(_0x2f38f5,()=>function(_0x111915){const _0xf7318a=document['createElement']('div');return _0x111915['appendChild'](_0xf7318a),_0xf7318a;}(_0x259a1a));!function(_0x3953d1,_0x1b4d17){const _0xfd58c4=_0x3953d1['model']['document']['getRootNames']()['reduce']((_0x36a77b,_0x5b7069)=>(_0x36a77b[_0x5b7069]=_0x3953d1['data']['get']({'rootName':_0x5b7069}),_0x36a77b),{}),_0x2cc7b5=_0x3953d1['plugins']['get']('Users')['users']['map'](_0x741b62=>({'id':_0x741b62['id'],'name':_0x741b62['name']})),_0x35ca1e=_0x3953d1['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x238ed3=_0x3953d1['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x21570a=_0x1b4d17['plugins']['get']('Users'),_0xc6f427=_0x1b4d17['plugins']['get']('TrackChangesEditing'),_0x4e50d5=_0x1b4d17['plugins']['get']('CommentsRepository');for(const _0x2ab697 of _0x4e50d5['getCommentThreads']())_0x2ab697['remove']();for(const _0x33e386 of _0x2cc7b5)_0x21570a['getUser'](_0x33e386['id'])||_0x21570a['addUser'](_0x33e386);_0x21570a['me']||_0x21570a['useAnonymousUser']();for(const _0x13016e of _0x238ed3)_0x4e50d5['addCommentThread'](_0x13016e);for(const _0x4bf209 of _0x35ca1e)_0xc6f427['addSuggestionData'](_0x4bf209);_0x1b4d17['data']['set'](_0xfd58c4);}(_0x392a76,_0x5ac49e),_0x5ac49e['execute'](_0x477093?'acceptAllSuggestions':'discardAllSuggestions');const _0x43bb90=In(_0x5ac49e)?_0x5ac49e['getFullData'](_0x24532e):_0x5ac49e['data']['get'](_0x24532e);return await _0x5ac49e['destroy'](),_0x43bb90;}class An extends _0x3a1821{['options'];constructor(_0x15a115,_0xd9a613){super(_0x15a115),this['options']=_0xd9a613,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x5c1e11,_0xe39255){if(!this['element'])return;const _0x10ef51=[];for(const [_0x3af07b,_0xb6e3fb]of _0x5c1e11){const _0x10e01=document['createElement']('div');_0x10e01['setAttribute']('data-ck-root-name',_0x3af07b),_0x10e01['className']=_0xb6e3fb['classes']+'\x20ck-track-changes-preview__root-container',_0x10e01['innerHTML']=_0xb6e3fb['content'],_0x10ef51['push'](_0x10e01);}_0xe39255(this['element'],_0x10ef51),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class kn extends _0x2280b1{constructor(_0x453b2c){super(_0x453b2c),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x299cc0=this['editor'],_0x2ce8e5=_0x299cc0['locale'],_0x4734c1=_0x299cc0['plugins']['get']('Dialog');let _0x4f93d0;const _0x10283f=function(_0x56c20a){const _0x523f93={};if('editables'in _0x56c20a['ui']['view']){for(const [_0x1a6721,_0x4a633a]of Object['entries'](_0x56c20a['ui']['view']['editables']))_0x523f93[_0x1a6721]=_0x4a633a['element'];}else _0x523f93[_0x56c20a['model']['document']['getRootNames']()[0x0]]=_0x56c20a['ui']['view']['editable']['element'];return _0x523f93;}(_0x299cc0),_0x1fcf9a=function(_0x5391a5){let _0x2e9c09=0x0;for(const _0x155ac0 of Object['values'](_0x5391a5))_0x2e9c09=Math['max'](_0x2e9c09,_0x155ac0['getBoundingClientRect']()['width']);let _0x58e8e3=0x0;for(const _0x35eb90 of Object['values'](_0x5391a5))_0x58e8e3+=_0x35eb90['getBoundingClientRect']()['height'];const _0x30c430=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x1fa9fd=Math['min'](_0x58e8e3,_0x30c430);return{'width':_0x2e9c09,'height':_0x1fa9fd};}(_0x10283f);_0x4734c1['show']({'id':'finalContentPreview','title':At(_0x2ce8e5,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new An(_0x2ce8e5,{'dialogRects':_0x1fcf9a}),'onHide':()=>{_0x4f93d0['detachFromDom']();},'onShow':()=>{_0x299cc0['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x46c7c7=>{const _0x18737a=this['_standarizeRootsData'](_0x46c7c7,_0x299cc0,_0x10283f);_0x4734c1['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x18737a,_0x299cc0['config']['get']('trackChanges.preview.renderFunction'));}),_0x4f93d0=new _0x2bfd40(_0x2ce8e5,[_0x4734c1['view']]),_0x4f93d0['attachToDom'](),_0x4f93d0['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x299cc0['once']('destroy',()=>{_0x4f93d0['detachFromDom']();});const _0x371de6=_0x4734c1['view']['headerView']['class'];_0x4734c1['view']['headerView']['class']=_0x371de6?_0x371de6+'\x20ck-reset_all':'ck-reset_all',_0x4734c1['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4734c1['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x41eddc=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x170663=_0x41eddc['previewMode'],_0x294be7={};if('$labels'===_0x170663){for(const _0x3f9ffd of _0x41eddc['getMergeFieldsIds']())_0x294be7[_0x3f9ffd]=_0x41eddc['getLabel'](_0x3f9ffd)||_0x3f9ffd;}else{const _0x978191='$defaultValues'===_0x170663?_0x41eddc['getDefaultValues']():_0x41eddc['getDataSetValues'](_0x170663,!0x0);for(const _0x4e8feb of Object['entries'](_0x978191)){const [_0x56cef1,_0x11912b]=_0x4e8feb;_0x294be7[_0x56cef1]=null!==_0x11912b?_0x11912b:_0x41eddc['getLabel'](_0x56cef1)||_0x56cef1;}}return{'mergeFieldsData':_0x294be7};}['_standarizeRootsData'](_0x45069b,_0x135035,_0x5dd460){let _0x44f62d;if('string'==typeof _0x45069b){const _0x117a57=_0x135035['model']['document']['getRootNames']()[0x0];_0x44f62d={[_0x117a57]:_0x45069b};}else _0x44f62d=_0x45069b;const _0x19b371=this['_fixMediaEmbeds'](_0x44f62d,_0x135035),_0x591209=function(_0x40bbef,_0x1ee2b4){for(const [_0x51fc0a,_0x41f8c8]of _0x40bbef)_0x41f8c8['classes']=_0x1ee2b4[_0x51fc0a]['classList']['value']['replace']('ck-focused','');return _0x40bbef;}(this['_sortRoots'](_0x135035)['reduce']((_0xd6f121,_0x27927a)=>(_0xd6f121['push']([_0x27927a,{'content':_0x19b371[_0x27927a],'classes':''}]),_0xd6f121),[]),_0x5dd460);return _0x591209;}['_fixMediaEmbeds'](_0x514d54,_0x335507){if(!_0x335507['plugins']['has']('MediaEmbedEditing'))return _0x514d54;const _0x22569e=_0x335507['plugins']['get']('MediaEmbedEditing');for(const [_0x4a1433,_0x11258e]of Object['entries'](_0x514d54)){const _0x3535d6=document['createElement']('div');_0x3535d6['innerHTML']=_0x11258e,(_0x3535d6['querySelectorAll']('figure.media')['forEach'](_0x5dc185=>{const _0x34a005=_0x5dc185['querySelector']('oembed');if(_0x34a005){const _0x3820eb=_0x34a005['getAttribute']('url');if(_0x3820eb){const _0x29ce19=_0x22569e['registry']['getMediaViewElement'](new et(_0x335507['editing']['view']['document']),_0x3820eb,{'elementName':'','renderForEditingView':!0x0}),_0x3c7ba6=document['createElement']('div');_0x3c7ba6['classList']['add']('ck-media__wrapper'),_0x29ce19['render'](_0x3c7ba6,_0x335507['editing']['view']['domConverter']),_0x34a005['replaceWith'](_0x3c7ba6);}}}),_0x514d54[_0x4a1433]=_0x3535d6['innerHTML']);}return _0x514d54;}['_sortRoots'](_0x23506e){if(!function(_0x4ed98a){return void 0x0!==_0x4ed98a['getRootsAttributes'];}(_0x23506e))return _0x23506e['model']['document']['getRootNames']();const _0x3585fb=[],_0x29b65d=new Map();for(const _0x5580ae of _0x23506e['model']['document']['getRootNames']()){const _0x533ba9=_0x23506e['editing']['view']['getDomRoot'](_0x5580ae)['getClientRects']()['item'](0x0);_0x3585fb['push'](_0x5580ae),_0x29b65d['set'](_0x5580ae,_0x533ba9);}return _0x3585fb['sort']((_0x52c692,_0x1926a7)=>{const _0x35e024=_0x29b65d['get'](_0x52c692),_0x52d335=_0x29b65d['get'](_0x1926a7);return _0x35e024['y']-_0x52d335['y']||_0x35e024['x']-_0x52d335['x'];}),_0x3585fb;}}class Cn extends _0x3c3277{static get['requires'](){return[pn,_0x5e8bf5];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x113bcb){super(_0x113bcb),_0x113bcb['commands']['add']('previewFinalContent',new kn(this['editor'])),_0x113bcb['config']['define']('trackChanges.preview.renderFunction',(_0x54d441,_0x3f1d08)=>{for(const _0x548426 of _0x3f1d08)_0x54d441['appendChild'](_0x548426);});}}export{dt as AcceptSuggestionCommand,dn as BaseSuggestionThreadView,ft as DiscardSuggestionCommand,Lt as ExecuteOnAllSuggestionsCommand,It as ExecuteOnSelectedSuggestionsCommand,kn as PreviewFinalContentCommand,bt as Suggestion,kt as SuggestionDescriptionFactory,fn as SuggestionThreadView,gn as SuggestionView,Tn as TrackChanges,ht as TrackChangesCommand,pn as TrackChangesData,Ln as TrackChangesDataGetter,Xe as TrackChangesEditing,Cn as TrackChangesPreview,mn as TrackChangesUI};