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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 _0x5cdbec,Plugin as _0x35090c,PendingActions as _0x24aa37}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0x2eae3a,Annotations as _0xebf6bb,EditorAnnotations as _0x247ffd,Comments as _0x1bac76}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0x25a256,ObservableMixin as _0x13164b,uid as _0x5b022c,priorities as _0x581032,insertToPriorityArray as _0x1e9237,logWarning as _0x30e13e,getEnvKeystrokeText as _0x3a30ad,FocusTracker as _0x1fa383,KeystrokeHandler as _0x50001b,Collection as _0x3a7659}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x48a691,IconCancel as _0x16672d,IconTrackChanges as _0x47323e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x3a0b9c,View as _0x15b561,ViewCollection as _0x57967f,FocusCycler as _0x31168b,UIModel as _0x4c15d6,createDropdown as _0x1ca2a3,SplitButtonView as _0xb73ea4,addListToDropdown as _0x4b1022,MenuBarMenuView as _0x53b008,MenuBarMenuListView as _0x5b9248,ListSeparatorView as _0xb56894,MenuBarMenuListItemView as _0x5df59b,MenuBarMenuListItemButtonView as _0x3fd53b,BodyCollection as _0xa8b6e0,Dialog as _0x540a6c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x4dc3a3,SuggestionsConversion as _0x495abb,Users as _0x5afd1d,DocumentCompare as _0x188216,fixElementSuggestionRange as _0x710431,hashObject as _0x550e9b,surroundingMarkersDetector as _0x4daed7,FOCUS_ANNOTATION_KEYSTROKE as _0x43e6c0,AriaDescriptionView as _0x92fd7d,setupThreadKeyboardNavigation as _0x116b50,trimHtml as _0x282f4f,UserView as _0x256fbc,LateFocusButtonView as _0x1ac658,getDateTimeFormatter as _0x3466ab,getAllMarkersDomElementsSorted as _0x1193f2,sanitizeEditorConfig as _0x50ee42}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x17629a,ModelLiveRange as _0x5817c4,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 _0x5cdbec{['_enabledCommands'];constructor(_0x26be8f,_0x5687b6){super(_0x26be8f),this['_enabledCommands']=_0x5687b6,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 _0x1f8cbf of this['editor']['commands']['commands']())_0x1f8cbf['affectsData']&&!this['_enabledCommands']['has'](_0x1f8cbf)&&_0x1f8cbf['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1c7ff3 of this['editor']['commands']['commands']())_0x1c7ff3['affectsData']&&!this['_enabledCommands']['has'](_0x1c7ff3)&&_0x1c7ff3['clearForceDisabled']('TrackChangesCommand');}}class dt extends _0x5cdbec{['_suggestions'];constructor(_0x33bef6,_0x127d72){super(_0x33bef6),this['_suggestions']=_0x127d72,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x34e517){const _0x11441f=this['_suggestions']['get'](_0x34e517);if(!_0x11441f)throw new _0x25a256('track-changes-accept-suggestion-not-found',this);const _0x446d95=_0x11441f['getRanges']();this['editor']['model']['canEditAt'](_0x446d95)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x11441f);}}class ft extends _0x5cdbec{['_suggestions'];constructor(_0x98e03c,_0x2ee0e3){super(_0x98e03c),this['_suggestions']=_0x2ee0e3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5c0db1){const _0x7700ad=this['_suggestions']['get'](_0x5c0db1);if(!_0x7700ad)throw new _0x25a256('track-changes-discard-suggestion-not-found',this);const _0x5f51c6=_0x7700ad['getRanges']();this['editor']['model']['canEditAt'](_0x5f51c6)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x7700ad);}}function gt(_0x171b34,_0x268c64){let _0x30fb6a='';return _0x30fb6a+=_0x171b34['split']('*')['map']((_0x2fd1d6,_0x193e32)=>_0x193e32%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+mt(_0x2fd1d6)+'</span>':mt(_0x2fd1d6))['join'](''),_0x268c64&&(_0x30fb6a+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x268c64['value']+'\x22\x20title=\x22'+_0x268c64['title']+'\x22></span>'),_0x30fb6a;}function mt(_0x3d4e43){const _0x13a23c=document['createElement']('span');return _0x13a23c['innerText']=_0x3d4e43,_0x13a23c['innerHTML'];}function Et(_0x5e7be8){return _0x5e7be8['sort']((_0xece526,_0x4f3170)=>'attribute'===_0xece526['type']&&'attribute'!==_0x4f3170['type']?-0x1:'attribute'!==_0xece526['type']&&'attribute'===_0x4f3170['type']?0x1:'deletion'==_0xece526['type']&&'deletion'!=_0x4f3170['type']?-0x1:'deletion'!=_0xece526['type']&&'deletion'==_0x4f3170['type']?0x1:0x0);}function Tt(_0x85e1bf,_0x2570c1){let _0x1f117a,_0x22a631=0x0;const _0x190cb2=[],_0x41d461=_0x2570c1['schema'];for(;_0x22a631<_0x85e1bf['length'];){const _0x4786ce=_0x85e1bf[_0x22a631],_0x3df393=_0x85e1bf[_0x22a631+0x1];_0x1f117a||(_0x1f117a=_0x2570c1['createPositionBefore'](_0x4786ce)),_t(_0x2570c1,_0x4786ce,_0x3df393)||(_0x190cb2['push'](_0x2570c1['createRange'](_0x1f117a,_0x41d461['isObject'](_0x4786ce)?_0x2570c1['createPositionAfter'](_0x4786ce):_0x2570c1['createPositionAt'](_0x4786ce,'end'))),_0x1f117a=null),_0x22a631++;}return _0x190cb2;}function _t(_0x2ed98c,_0x4e9b03,_0x407480){if(!_0x407480)return!0x1;const _0x5e89b5=_0x2ed98c['createPositionAfter'](_0x4e9b03),_0x5d99d4=_0x2ed98c['createPositionBefore'](_0x407480);return _0x5e89b5['isTouching'](_0x5d99d4);}function pt(_0x33691c,_0x44335a,_0x5de651){for(;_0x5de651['length'];){const _0x23a1c2=_0x5de651['splice'](0x0,0x64);_0x33691c['change'](()=>{for(const _0x4a6302 of _0x23a1c2)_0x4a6302['isInContent']&&_0x44335a['execute'](_0x4a6302['id']);});}}class Lt extends _0x5cdbec{['_command'];['_suggestions'];constructor(_0x105725,_0x536590,_0x407a0f){super(_0x105725),this['_command']=_0x536590,this['_suggestions']=_0x407a0f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x480529=Array['from'](this['_suggestions']['values']())['some'](_0x58f4fb=>_0x58f4fb['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x480529;}['execute'](){const _0x353fa9=Et(Array['from'](this['_suggestions']['values']()));for(const _0x1da80a of _0x353fa9){const _0x25b4fe=_0x1da80a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x25b4fe))return;}pt(this['editor']['model'],this['_command'],_0x353fa9);}}class It extends _0x5cdbec{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x459492,_0x1d54a3,_0x3556ed){super(_0x459492),this['_command']=_0x1d54a3,this['_suggestions']=_0x3556ed,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3226ec=this['editor']['model']['document']['selection'],_0x53528f=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1d3406,_0x5a0a9e){const _0x18e95f=Array['from'](_0x1d3406['getRanges']()),_0xa74d96=new Set();for(const _0xa9391a of _0x5a0a9e)if(_0xa9391a['isInContent']){for(const _0x463ef9 of _0x18e95f)for(const _0x5b2f45 of _0xa9391a['getRanges']())(_0x463ef9['isIntersecting'](_0x5b2f45)||_0x1d3406['isCollapsed']&&!_0xa9391a['isMultiRange']&&_0xa9391a['next']&&_0x5b2f45['end']['isTouching'](_0x463ef9['start']))&&_0xa74d96['add'](_0xa9391a);}return _0xa74d96;}(_0x3226ec,_0x53528f),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xee7062=Et(Array['from'](this['_selectedSuggestions']));for(const _0x2a43bd of _0xee7062){const _0x4a60c8=_0x2a43bd['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4a60c8))return;}pt(this['editor']['model'],this['_command'],_0xee7062);}}class bt extends/* #__PURE__ -- @preserve */
24
- _0x13164b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x584def,_0xc766a9){super(),this['id']=_0xc766a9['id'],this['type']=_0xc766a9['type'],this['subType']=_0xc766a9['subType']||null,this['author']=_0xc766a9['author'],this['creator']=_0xc766a9['creator']||_0xc766a9['author'],this['isExternal']=Boolean(_0xc766a9['attributes']&&_0xc766a9['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0xc766a9['originalSuggestionId']||null,this['_model']=_0x584def,this['_onAccept']=_0xc766a9['onAccept'],this['_onDiscard']=_0xc766a9['onDiscard'],this['_onAttributesChange']=_0xc766a9['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xc766a9['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 _0x2ca48f=this;for(;_0x2ca48f['previous'];)_0x2ca48f=_0x2ca48f['previous'];return _0x2ca48f;}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'](_0x3e0ba8){this['_markerNames']['add'](_0x3e0ba8);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x501a16=>this['_model']['markers']['get'](_0x501a16))['filter'](_0x455d56=>_0x455d56);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x263f41=>{for(const _0x3da4f0 of this['getMarkers']())_0x263f41['removeMarker'](_0x3da4f0);}),this['_markerNames']['clear']();}['removeMarker'](_0x1b4d0f){this['_model']['change'](_0x249b5a=>{_0x249b5a['removeMarker'](_0x1b4d0f);}),this['_markerNames']['delete'](_0x1b4d0f);}['addRange'](_0x3c0a5f){const _0x587669='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+bt['getMultiRangeId']();this['addMarkerName'](_0x587669),this['_model']['change'](_0x5c77b4=>{_0x5c77b4['addMarker'](_0x587669,{'range':_0x3c0a5f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x353499){for(const _0x5c6934 of this['getRanges']())if(_0x5c6934['isIntersecting'](_0x353499))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xd9edf8=>_0xd9edf8['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x15bf5e,_0x421d71)=>[..._0x15bf5e,..._0x421d71['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x34823e=this['getRanges']();if(0x1!=_0x34823e['length'])return null;const _0x93d082=_0x34823e[0x0],_0xf07227=_0x93d082['start']['nodeAfter'],_0x37b001=_0x93d082['end']['nodeBefore'];return _0xf07227 instanceof _0x17629a?_0xf07227!=_0x37b001?null:_0xf07227: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 _0x3263db=[];let _0x52330a=this['head'];for(;_0x52330a;)_0x3263db['push'](_0x52330a),_0x52330a=_0x52330a['next'];return _0x3263db;}['setAttribute'](_0x10e5e2,_0x36797a){const _0x1892a8=nt(this['attributes']);it(_0x1892a8,_0x10e5e2,_0x36797a),st(_0x1892a8,this['attributes'])||(this['attributes']=_0x1892a8,this['_onAttributesChange'](_0x1892a8));}['removeAttribute'](_0x52f3f5){const _0x31707d=nt(this['attributes']);rt(_0x31707d,_0x52f3f5),st(_0x31707d,this['attributes'])||(this['attributes']=_0x31707d,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 _0x5b022c()['substr'](0x1,0x5);}}function At(_0x41ed91,_0x3459d8,_0x125306){const _0x45aed6=_0x41ed91['t'],t=_0x41ed91['t'];switch(_0x3459d8){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',_0x125306);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x125306);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x125306);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x125306);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x125306);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',_0x125306);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x125306);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',_0x125306);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x125306);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x125306);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x125306);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x125306);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x125306);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x125306);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x125306);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x125306);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x125306);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x125306);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x125306);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x125306);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x125306);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x125306);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x125306);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x125306);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x125306);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'},_0x125306);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x125306);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x125306);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x125306);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x125306);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x125306);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x125306);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x125306);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'},_0x125306);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x125306);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x125306);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x125306);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x125306);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'},_0x125306);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x125306);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'},_0x125306);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'},_0x125306);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x125306);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'},_0x125306);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x125306);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'},_0x125306);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x125306);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x125306);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x125306);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x125306);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x125306);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'},_0x125306);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x125306);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 _0x45aed6({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x125306);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x45aed6({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x125306);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x125306);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'},_0x125306);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'},_0x125306);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'},_0x125306);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3459d8;}}class kt{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5eacbc,_0x374052){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5eacbc,this['_locale']=_0x374052;}['getDescriptions'](_0x483f36){const _0x51e339=[],_0x5e4472=new Set(),_0x52a8a6=new Set();for(let _0x172449=0x0;_0x172449<_0x483f36['length'];_0x172449++){const _0x1e31c3=_0x483f36[_0x172449];if(!_0x1e31c3['isInContent'])continue;const _0x37595f=this['_handleCustomCallbackDescription'](_0x1e31c3);if(_0x37595f){if(null!=_0x1e31c3['subType']){if(_0x5e4472['has'](_0x1e31c3['subType']))continue;_0x5e4472['add'](_0x1e31c3['subType']);}_0x51e339['push'](_0x37595f);}else{if('attribute'==_0x1e31c3['type']){const _0x20fdaf=_0x1e31c3['data']['key'];if(_0x52a8a6['has'](_0x20fdaf))continue;_0x52a8a6['add'](_0x1e31c3['data']['key']),_0x20fdaf==Ke?this['_handleRenameSuggestionDescription'](_0x51e339,_0x1e31c3):this['_handleAttributeSuggestionDescription'](_0x51e339,_0x1e31c3);continue;}'insertion'!=_0x1e31c3['type']&&'deletion'!=_0x1e31c3['type']||this['_handleInsertRemoveSuggestionDescription'](_0x51e339,_0x1e31c3,_0x483f36[_0x172449+0x1]);}}return this['_resolveDescriptionItems'](_0x51e339);}['registerDescriptionCallback'](_0x40d361){this['_customCallbacks']['push'](_0x40d361);}['registerElementLabel'](_0x2c9a1a,_0x19c268,_0x77423a=_0x581032['normal']){'function'==typeof _0x2c9a1a?_0x1e9237(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2c9a1a,'label':_0x19c268,'priority':_0x77423a}):this['_itemLabels']['set'](_0x2c9a1a,_0x19c268);}['registerAttributeLabel'](_0x54a1d8,_0x5a24b1){this['_attributeLabels']['set'](_0x54a1d8,_0x5a24b1);}['getItemLabel'](_0x2675a4,_0x4ea23a=0x1){let _0x36c0e9;for(const _0x2abedc of this['_itemLabelsCallbacks'])if(_0x2abedc['matchingCallback'](_0x2675a4)){_0x36c0e9=_0x2abedc['label'];break;}return _0x36c0e9||(_0x36c0e9=this['_itemLabels']['get'](_0x2675a4['name'])),_0x36c0e9?_0x36c0e9(_0x4ea23a):0x1!==_0x4ea23a?_0x4ea23a+'\x20'+_0x2675a4['name']+'s':''+_0x2675a4['name'];}['_addDescriptionItems'](_0x33c5b5,_0x352886){const _0x2d41ea=_0x352886['getFirstRange']()['getWalker'](),_0x63ad85='insertion'==_0x352886['type']?'add':'remove';for(const _0x403bf9 of _0x2d41ea){const _0x220338=_0x403bf9['item'],_0x98a904=_0x33c5b5[_0x33c5b5['length']-0x1];if(_0x220338['is']('$textProxy'))_0x98a904&&_0x98a904['type']['indexOf']('Container')>-0x1&&_0x33c5b5['pop'](),_0x98a904&&'text'==_0x98a904['type']?_0x98a904[_0x63ad85]+=_0x220338['data']:_0x33c5b5['push']({'type':'text','add':'add'==_0x63ad85?_0x220338['data']:'','remove':'remove'==_0x63ad85?_0x220338['data']:''});else{if(this['_schema']['isObject'](_0x220338)){const _0x205db7=_0x220338;if(_0x98a904&&_0x98a904['type']['indexOf']('Container')>-0x1&&_0x33c5b5['pop'](),'elementEnd'==_0x403bf9['type'])continue;_0x98a904&&_0x98a904['type']==_0x63ad85+'Object'&&_0x98a904['element']['name']==_0x205db7['name']?_0x98a904['quantity']++:_0x33c5b5['push']({'type':_0x63ad85+'Object','element':_0x205db7,'quantity':0x1}),_0x2d41ea['skip'](_0x4561ef=>!('elementEnd'==_0x4561ef['type']&&_0x4561ef['item']==_0x220338));}else{if(this['_schema']['checkChild'](_0x220338,'$text')||_0x220338['is']('element','softBreak')){const _0x200bac=_0x220338;if('add'==_0x63ad85&&'elementStart'==_0x403bf9['type']||'remove'==_0x63ad85&&'elementEnd'==_0x403bf9['type'])continue;if(_0x98a904&&-0x1==_0x98a904['type']['indexOf']('Container')){'text'==_0x98a904['type']&&(_0x98a904[_0x63ad85]+='\x0a');continue;}let _0x2026e4;if(_0x2026e4='add'==_0x63ad85?_0x200bac['nextSibling']&&!this['_schema']['isObject'](_0x200bac['nextSibling'])?_0x200bac['nextSibling']:null:_0x200bac['previousSibling']&&!this['_schema']['isObject'](_0x200bac['previousSibling'])?_0x200bac['previousSibling']:null,_0x200bac['isEmpty']||_0x2026e4&&_0x2026e4['isEmpty']){const _0x4fc153=_0x2026e4&&_0x2026e4['isEmpty']?_0x2026e4:_0x200bac;_0x98a904&&_0x98a904['type']==_0x63ad85+'EmptyContainer'&&_0x98a904['element']['name']==_0x4fc153['name']?_0x98a904['quantity']++:_0x33c5b5['push']({'type':_0x63ad85+'EmptyContainer','element':_0x4fc153,'quantity':0x1});}else _0x33c5b5['push']({'type':_0x63ad85+'Container','element':_0x200bac});}}}}}['_resolveDescriptionItems'](_0x2caa1c){const _0x3560f4=this['_locale'],_0x4c4fe4=[],_0x2c03b4=[],_0x55a62e=[];for(const _0x45ee0e of _0x2caa1c)switch(_0x45ee0e['type']){case'text':if(_0x45ee0e['add']=_0x45ee0e['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x45ee0e['remove']=_0x45ee0e['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x45ee0e['add']&&''!=_0x45ee0e['remove']){_0x4c4fe4['push']({'type':'replace','content':At(_0x3560f4,'REPLACE_TEXT',['\x22'+_0x45ee0e['remove']+'\x22','\x22'+_0x45ee0e['add']+'\x22'])});continue;}if(null!=_0x45ee0e['add']['match'](/^ +$/)){_0x4c4fe4['push']({'type':'insertion','content':At(_0x3560f4,'*Insert:*\x20%0',At(_0x3560f4,'ELEMENT_SPACE',_0x45ee0e['add']['length']))});continue;}if(null!=_0x45ee0e['remove']['match'](/^ +$/)){_0x4c4fe4['push']({'type':'deletion','content':At(_0x3560f4,'*Remove:*\x20%0',At(_0x3560f4,'ELEMENT_SPACE',_0x45ee0e['remove']['length']))});continue;}if(''!=_0x45ee0e['add']){_0x4c4fe4['push']({'type':'insertion','content':At(_0x3560f4,'*Insert:*\x20%0','\x22'+_0x45ee0e['add']+'\x22')});continue;}_0x4c4fe4['push']({'type':'deletion','content':At(_0x3560f4,'*Remove:*\x20%0','\x22'+_0x45ee0e['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4c4fe4['push']({'type':'insertion','content':At(_0x3560f4,'*Insert:*\x20%0',this['getItemLabel'](_0x45ee0e['element'],_0x45ee0e['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4c4fe4['push']({'type':'deletion','content':At(_0x3560f4,'*Remove:*\x20%0',this['getItemLabel'](_0x45ee0e['element'],_0x45ee0e['quantity']))});continue;case'addContainer':_0x4c4fe4['push']({'type':'insertion','content':At(_0x3560f4,'*Split:*\x20%0',this['getItemLabel'](_0x45ee0e['element'],_0x45ee0e['quantity']))});continue;case'removeContainer':_0x4c4fe4['push']({'type':'deletion','content':At(_0x3560f4,'*Merge:*\x20%0',this['getItemLabel'](_0x45ee0e['element'],_0x45ee0e['quantity']))});continue;case'addFormat':_0x2c03b4['push'](_0x45ee0e['key']);continue;case'removeFormat':_0x55a62e['push'](_0x45ee0e['key']);continue;default:_0x4c4fe4['push'](_0x45ee0e);}if(_0x2c03b4['length']){const _0x11a8b6=_0x2c03b4['map'](_0x47c4c9=>this['_attributeLabels']['has'](_0x47c4c9)?this['_attributeLabels']['get'](_0x47c4c9):_0x47c4c9)['join'](',\x20');_0x4c4fe4['push']({'type':'format','content':At(this['_locale'],'*Set\x20format:*\x20%0',_0x11a8b6)});}if(_0x55a62e['length']){const _0x156a61=_0x55a62e['map'](_0x45d563=>this['_attributeLabels']['has'](_0x45d563)?this['_attributeLabels']['get'](_0x45d563):_0x45d563)['join'](',\x20');_0x4c4fe4['push']({'type':'format','content':At(this['_locale'],'*Remove\x20format:*\x20%0',_0x156a61)});}return _0x4c4fe4;}['_handleCustomCallbackDescription'](_0x5dc6b1){for(const _0x2ec3f2 of this['_customCallbacks']){const _0x1dfb40=_0x2ec3f2(_0x5dc6b1);if(_0x1dfb40&&'type'in _0x1dfb40)return _0x1dfb40;}}['_handleAttributeSuggestionDescription'](_0x5ad91d,_0x466f97){const _0x22afa3=_0x466f97['data'],_0x4d1f0d=void 0x0===_0x22afa3['newValue']?'removeFormat':'addFormat';_0x5ad91d['push']({'type':_0x4d1f0d,'key':_0x22afa3['key']});}['_handleRenameSuggestionDescription'](_0x310d1b,_0x40a501){_0x310d1b['push']({'type':'format','content':At(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x40a501['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5cc48f,_0x5e2fe6,_0x571414){if(this['_addDescriptionItems'](_0x5cc48f,_0x5e2fe6),_0x571414&&_0x571414['getFirstRange']()&&!_0x5e2fe6['getFirstRange']()['end']['isEqual'](_0x571414['getFirstRange']()['start'])){const _0x2ba28b=_0x5cc48f[_0x5cc48f['length']-0x1],_0x2fe340='insertion'==_0x5e2fe6['type']?'add':'remove';_0x2ba28b&&'text'==_0x2ba28b['type']&&(_0x2ba28b[_0x2fe340]+='\x0a');}}}class Ct extends _0x35090c{['afterInit'](){const _0xccf217=this['editor'],_0x309b2f=_0xccf217['plugins']['get']('TrackChangesEditing');_0xccf217['commands']['get']('showAIAssistant')&&_0x309b2f['enableCommand']('showAIAssistant');}}class yt extends _0x35090c{['afterInit'](){const _0xae984c=this['editor'],_0x5a1b79=_0xae984c['plugins']['get']('TrackChangesEditing');_0xae984c['commands']['get']('toggleAi')&&_0x5a1b79['enableCommand']('toggleAi');}}class Nt extends _0x35090c{['afterInit'](){const _0x5ae8ec=this['editor'],_0x536637=_0x5ae8ec['plugins']['get']('TrackChangesEditing');_0x5ae8ec['commands']['get']('aiQuickAction')&&_0x536637['enableCommand']('aiQuickAction');}}class Rt extends _0x35090c{['afterInit'](){const _0x2b01b3=this['editor'],_0x118fbe=_0x2b01b3['locale'];if(!_0x2b01b3['plugins']['has']('AlignmentEditing'))return;const _0x3c9920=_0x2b01b3['plugins']['get']('TrackChangesEditing');_0x3c9920['enableDefaultAttributesIntegration']('alignment'),_0x3c9920['descriptionFactory']['registerAttributeLabel']('alignment',At(_0x118fbe,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26840a=this['editor'],_0x5ea6b1=_0x26840a['locale'];_0x26840a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f2332=>{if('formatBlock'!=_0x5f2332['type'])return;const {data:_0x1ef916}=_0x5f2332;if(_0x1ef916&&'alignment'==_0x1ef916['commandName']){const _0x6effc9=_0x1ef916['commandParams'][0x0]['value'];return{'type':'format','content':At(_0x5ea6b1,'*Format:*\x20%0',function(_0x36066d){switch(_0x36066d){case'left':return At(_0x5ea6b1,'FORMAT_ALIGN_TO_LEFT');case'right':return At(_0x5ea6b1,'FORMAT_ALIGN_TO_RIGHT');case'center':return At(_0x5ea6b1,'FORMAT_ALIGN_TO_CENTER');case'justify':return At(_0x5ea6b1,'FORMAT_JUSTIFY_TEXT');}}(_0x6effc9))};}});}}const St=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Mt extends _0x35090c{['afterInit'](){const _0x8b8b92=this['editor'],_0x23dff4=_0x8b8b92['plugins']['get']('TrackChangesEditing'),_0x2fd415=_0x8b8b92['locale'];for(const _0x48c5ed of St){if(!_0x8b8b92['plugins']['has'](_0x48c5ed))continue;const _0x4c51e7=_0x48c5ed['slice'](0x0,-0x7)['toLowerCase'](),_0x3f1e83='FORMAT_'+_0x4c51e7['toUpperCase']();_0x23dff4['enableDefaultAttributesIntegration'](_0x4c51e7),_0x23dff4['descriptionFactory']['registerAttributeLabel'](_0x4c51e7,At(_0x2fd415,_0x3f1e83));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2364dd=this['editor'],_0x404612=_0x2364dd['locale'],_0x4163f2=_0x2364dd['plugins']['get']('TrackChangesEditing');function _0x1f7767(_0xf1d898,_0x366db0){_0x4163f2['descriptionFactory']['registerDescriptionCallback'](_0x25b01b=>{if('formatInline'!=_0x25b01b['type'])return;const {data:_0x4d4518}=_0x25b01b;return _0x4d4518&&_0x4d4518['commandName']===_0xf1d898?_0x4d4518['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x404612,'*Format:*\x20%0',_0x366db0)}:{'type':'format','content':At(_0x404612,'*Remove\x20format:*\x20%0',_0x366db0)}:void 0x0;});}_0x1f7767('bold',At(_0x404612,'FORMAT_BOLD')),_0x1f7767('italic',At(_0x404612,'FORMAT_ITALIC')),_0x1f7767('underline',At(_0x404612,'FORMAT_UNDERLINE')),_0x1f7767('code',At(_0x404612,'FORMAT_CODE')),_0x1f7767('strikethrough',At(_0x404612,'FORMAT_STRIKETHROUGH')),_0x1f7767('subscript',At(_0x404612,'FORMAT_SUBSCRIPT')),_0x1f7767('superscript',At(_0x404612,'FORMAT_SUPERSCRIPT'));}}class Ot extends _0x35090c{['afterInit'](){const _0x362931=this['editor'],_0x2d9a46=_0x362931['locale'];if(!_0x362931['plugins']['has']('BlockQuoteEditing'))return;const _0x925620=_0x362931['plugins']['get']('TrackChangesEditing'),_0x162fcf=this['editor']['commands']['get']('blockQuote');_0x925620['enableCommand']('blockQuote',(_0x8ca8de,_0x5c70fc={})=>{const _0x527036=this['editor']['model']['document']['selection'],_0x280ca5=_0x5c70fc&&void 0x0!==_0x5c70fc['forceValue']?_0x5c70fc['forceValue']:!_0x162fcf['value'];let _0x49fb4f=[];if(_0x280ca5){const _0x1f6e51=Array['from'](_0x527036['getSelectedBlocks']())['filter'](_0x1c2a03=>wt(_0x1c2a03)||function(_0x5d5396,_0x3a6b11){const _0x1c4588=_0x3a6b11['checkChild'](_0x5d5396['parent'],'blockQuote'),_0x279156=_0x3a6b11['checkChild'](['$root','blockQuote'],_0x5d5396);return _0x1c4588&&_0x279156;}(_0x1c2a03,this['editor']['model']['schema']));_0x49fb4f=Tt(_0x1f6e51,_0x362931['model']);}else{const _0x1c9a9e=Array['from'](_0x527036['getSelectedBlocks']())['filter'](_0x413a18=>wt(_0x413a18));_0x49fb4f=Tt(_0x1c9a9e,_0x362931['model']);}_0x362931['model']['change'](()=>{for(const _0x5a4a98 of _0x49fb4f)_0x925620['markBlockFormat'](_0x5a4a98,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x280ca5}]});});}),_0x925620['descriptionFactory']['registerDescriptionCallback'](_0x5d0e61=>{const {data:_0x40f734}=_0x5d0e61;if(_0x40f734&&'blockQuote'==_0x40f734['commandName']){const _0x2ee9f1=At(_0x2d9a46,'ELEMENT_BLOCK_QUOTE');return _0x40f734['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x2d9a46,'*Set\x20format:*\x20%0',_0x2ee9f1)}:{'type':'format','content':At(_0x2d9a46,'*Remove\x20format:*\x20%0',_0x2ee9f1)};}});}}function wt(_0xdeefc0){return'blockQuote'==_0xdeefc0['parent']['name'];}class Bt extends _0x35090c{['afterInit'](){const _0x469c97=this['editor'],_0x2c1761=_0x469c97['locale'],_0x4799f3=_0x469c97['plugins']['get']('TrackChangesEditing');_0x469c97['plugins']['has']('BookmarkEditing')&&(_0x4799f3['enableCommand']('insertBookmark'),_0x4799f3['enableDefaultAttributesIntegration']('updateBookmark'),_0x4799f3['descriptionFactory']['registerDescriptionCallback'](_0x44dc3b=>{if('insertion'!=_0x44dc3b['type']&&'deletion'!=_0x44dc3b['type']&&'attribute'!=_0x44dc3b['type'])return;const _0x503a32=_0x44dc3b['getContainedElement']();if(null==_0x503a32)return;if(!_0x503a32['is']('element','bookmark'))return;const _0xc5d1fa=_0x503a32['getAttribute']('bookmarkId');if('insertion'==_0x44dc3b['type'])return{'type':'insertion','content':At(_0x2c1761,'*Insert:*\x20%0','\x22'+_0xc5d1fa+'\x22\x20'+At(_0x2c1761,'ELEMENT_BOOKMARK'))};if('deletion'==_0x44dc3b['type'])return{'type':'deletion','content':At(_0x2c1761,'*Remove:*\x20%0','\x22'+_0xc5d1fa+'\x22\x20'+At(_0x2c1761,'ELEMENT_BOOKMARK'))};const {data:_0x3a5c2f}=_0x44dc3b;if(!_0x3a5c2f||'bookmarkId'!=_0x3a5c2f['key'])return;return{'type':'format','content':At(_0x2c1761,'*Set\x20bookmark:*\x20%0','\x22'+_0x3a5c2f['newValue']+'\x22')};}));}}class Ft extends _0x35090c{['afterInit'](){const _0x6a0761=this['editor'];_0x6a0761['plugins']['has']('CaseChange')&&(_0x6a0761['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x6a0761['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x6a0761['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class Dt extends _0x35090c{['afterInit'](){const _0xf34fe3=this['editor'];_0xf34fe3['commands']['get']('ckbox')&&_0xf34fe3['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class vt extends _0x35090c{['afterInit'](){const _0x5d3104=this['editor'];if(!_0x5d3104['plugins']['has']('CodeBlock'))return;const _0x2b0831=_0x5d3104['plugins']['get']('TrackChangesEditing'),_0x5b6674=_0x5d3104['locale'],_0x16d065=_0x5d3104['config']['get']('codeBlock')['languages'],_0x33400e=_0x5d3104['commands']['get']('codeBlock');_0x2b0831['enableCommand']('indentCodeBlock'),_0x2b0831['enableCommand']('outdentCodeBlock'),_0x2b0831['enableCommand']('codeBlock',(_0x1a1735,_0xa6d88c={})=>{const _0x2260d8=_0x5d3104['model'],_0x53f877=_0x5d3104['model']['document']['selection'],_0x399b19=_0xa6d88c&&void 0x0!==_0xa6d88c['forceValue']?_0xa6d88c['forceValue']:!_0x33400e['value'];let _0x49f3eb;_0xa6d88c['language']||(_0xa6d88c['language']=_0x16d065[0x0]['language']),_0x49f3eb=_0x399b19?Array['from'](_0x53f877['getSelectedBlocks']())['filter'](_0x5848b1=>xt(_0x5848b1)||function(_0x1d24ea,_0x3e4598){if(_0x1d24ea['is']('rootElement')||_0x3e4598['isLimit'](_0x1d24ea))return!0x1;return _0x3e4598['checkChild'](_0x1d24ea['parent'],'codeBlock');}(_0x5848b1,_0x2260d8['schema'])):Array['from'](_0x53f877['getSelectedBlocks']())['filter'](_0x51a0e9=>xt(_0x51a0e9));const _0x8eee39=Tt(_0x49f3eb,_0x2260d8);_0x2260d8['change'](()=>{for(const _0x1b670 of _0x8eee39)_0x2b0831['markBlockFormat'](_0x1b670,{'commandName':'codeBlock','commandParams':[{..._0xa6d88c,'forceValue':_0x399b19}],'formatGroupId':'blockName'});});}),(_0x2b0831['descriptionFactory']['registerElementLabel']('codeBlock',_0x4080b7=>At(_0x5b6674,'ELEMENT_CODE_BLOCK',_0x4080b7)),_0x2b0831['descriptionFactory']['registerDescriptionCallback'](_0x1e2dab=>{if('formatBlock'!=_0x1e2dab['type'])return;const _0x565ce3=_0x5b6674['t'],{data:_0x519127}=_0x1e2dab;if(!_0x519127||'codeBlock'!=_0x519127['commandName'])return;const _0x2a0359=_0x519127['commandParams'][0x0]['language'],_0xdd149e=_0x565ce3(_0x16d065['find'](_0x3f7f1e=>_0x3f7f1e['language']===_0x2a0359)['label'])['toLowerCase']();return _0x519127['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x5b6674,'*Set\x20format:*\x20%0',At(_0x5b6674,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xdd149e+')')}:{'type':'format','content':At(_0x5b6674,'*Remove\x20format:*\x20%0',At(_0x5b6674,'ELEMENT_CODE_BLOCK',0x1))};}));}}function xt(_0x174e76){return'codeBlock'==_0x174e76['name'];}class Pt extends _0x35090c{['afterInit'](){const _0x5417c1=this['editor'];if(!_0x5417c1['plugins']['has']('CommentsEditing'))return;_0x5417c1['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Ut extends _0x35090c{static get['requires'](){return[at];}['init'](){const _0x428d9a=this['editor'],_0xec2dc8=_0x428d9a['plugins']['get']('TrackChangesEditing');_0xec2dc8['enableCommand']('delete');const _0x32db49=_0x428d9a['commands']['get']('deleteForward');_0xec2dc8['enableCommand']('deleteForward',(_0x441c2a,_0x1360df={})=>{const _0x4c265d=_0x428d9a['model']['createSelection'](_0x428d9a['model']['document']['selection']);_0x4c265d['isCollapsed']&&_0x428d9a['model']['modifySelection'](_0x4c265d,{'direction':'forward','unit':_0x1360df['unit']});const _0x353626=_0x4c265d['getFirstRange'](),_0x3cb899=_0x5817c4['fromRange'](_0x353626);let _0x59e776;_0x441c2a(_0x1360df),_0x59e776='$graveyard'==_0x3cb899['root']['rootName']?_0x428d9a['model']['createRange'](_0x353626['start']):_0x428d9a['model']['createRange'](_0x3cb899['start'],_0x3cb899['end']),_0x3cb899['detach'](),_0x428d9a['model']['enqueueChange'](_0x32db49['buffer']['batch'],_0x557f7a=>{_0x32db49['buffer']['lock'](),_0x557f7a['setSelection'](_0x557f7a['createRange'](_0x59e776['end'])),_0x32db49['buffer']['unlock']();});});}}class Gt extends _0x35090c{['afterInit'](){const _0x43a375=this['editor'];if(!_0x43a375['plugins']['has']('ListEditing'))return;const _0x4efe21=_0x43a375['locale'],_0x1da0fc=_0x43a375['plugins']['get']('TrackChangesEditing'),_0x3032f1=_0x43a375['plugins']['has']('TodoListEditing'),_0x1b0f67=!!_0x43a375['config']['get']('list.multiBlock');function _0x1dcc63(_0x2dc6bd){return{'type':'format','content':''+At(_0x4efe21,'*Set\x20format:*\x20%0',_0x2dc6bd)};}function _0x4442b7(_0x53c9b5){return{'type':'format','content':''+At(_0x4efe21,'*Remove\x20format:*\x20%0',_0x53c9b5)};}_0x1da0fc['enableDefaultAttributesIntegration']('numberedList'),_0x1da0fc['enableDefaultAttributesIntegration']('bulletedList'),_0x1da0fc['enableDefaultAttributesIntegration']('customNumberedList'),_0x1da0fc['enableDefaultAttributesIntegration']('customBulletedList'),_0x1da0fc['enableDefaultAttributesIntegration']('indentList'),_0x1da0fc['enableDefaultAttributesIntegration']('outdentList'),_0x1da0fc['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1da0fc['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1b0f67&&(_0x1da0fc['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1da0fc['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3032f1&&(_0x1da0fc['enableDefaultAttributesIntegration']('todoList'),_0x1da0fc['enableDefaultAttributesIntegration']('checkTodoList'),_0x1da0fc['descriptionFactory']['registerDescriptionCallback'](_0x58a569=>{const {data:_0x4a33ba}=_0x58a569;if(_0x4a33ba&&'todoListChecked'==_0x4a33ba['key'])return{'type':'format','content':_0x4a33ba['newValue']?At(_0x4efe21,'*Check\x20item*'):At(_0x4efe21,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x15c057=>{if(_0x15c057['batch']['isUndo'])return!0x1;let _0x377405=!0x1;const _0x3aff6b=_0x1da0fc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xdbbac9=>'todoListChecked'===_0x1da0fc['_getAttributeKey'](_0xdbbac9));for(const _0xf1af37 of _0x3aff6b){'todo'!=_0xf1af37['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1da0fc['_findSuggestions'](_0xf1af37['getFirstRange'](),'attribute')['find'](_0xedf9d5=>'listType'===_0x1da0fc['_getAttributeKey'](_0xedf9d5['suggestion']))||(_0x15c057['removeMarker'](_0xf1af37['getFirstMarker']()),_0x377405=!0x0));}return _0x377405;})),_0x1da0fc['descriptionFactory']['registerAttributeLabel']('listIndent',At(_0x4efe21,'FORMAT_INDENT'));const _0x221fe8={'type':'format','content':''};_0x1da0fc['descriptionFactory']['registerDescriptionCallback'](_0x11be19=>{const {data:_0x1f81e6}=_0x11be19;if(!_0x1f81e6||'listType'!=_0x1f81e6['key'])return;let _0x493e17=_0x11be19['head'];for(;_0x493e17;){if(_0x493e17['data']&&(('listStyle'==_0x493e17['data']['key']||'listMarkerStyle'==_0x493e17['data']['key'])&&(_0x493e17['data']['newValue']&&'default'!=_0x493e17['data']['newValue']||'default'!=_0x493e17['data']['oldValue']&&!_0x1f81e6['newValue'])||!_0x1b0f67&&_0x493e17['data']['key']==Ke))return _0x221fe8;_0x493e17=_0x493e17['next'];}if(null==_0x1f81e6['newValue'])switch(_0x1f81e6['oldValue']){case'bulleted':return _0x4442b7(At(_0x4efe21,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4442b7(At(_0x4efe21,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4442b7(At(_0x4efe21,'ELEMENT_TODO_LIST'));}switch(_0x1f81e6['newValue']){case'bulleted':return _0x1dcc63(At(_0x4efe21,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1dcc63(At(_0x4efe21,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1dcc63(At(_0x4efe21,'ELEMENT_TODO_LIST'));}}),_0x1da0fc['descriptionFactory']['registerDescriptionCallback'](_0x2dfb63=>{const {data:_0x1dba5a}=_0x2dfb63;if(_0x1dba5a&&'listIndent'==_0x1dba5a['key'])return null==_0x1dba5a['newValue']||null==_0x1dba5a['oldValue']&&0x0==_0x1dba5a['newValue']?_0x221fe8:void 0x0;}),_0x1da0fc['descriptionFactory']['registerDescriptionCallback'](_0xd16e38=>{if('attribute'!=_0xd16e38['type'])return;const {data:_0x65e7fa}=_0xd16e38;if(!_0x65e7fa||'listItemId'!=_0x65e7fa['key'])return;const _0x56e6ce=Ht(_0xd16e38);return'newValue'==_0x56e6ce?{'type':'format','content':At(_0x4efe21,'*Merge:*\x20list\x20item')}:'oldValue'==_0x56e6ce?{'type':'format','content':At(_0x4efe21,'*Split:*\x20list\x20item')}:_0x221fe8;}),_0x43a375['model']['document']['registerPostFixer'](_0x26d731=>this['listItemIdFixer'](_0x26d731)),_0x43a375['model']['document']['registerPostFixer'](_0x4d5b40=>this['noTrackChangesFixer'](_0x4d5b40)),_0x43a375['model']['document']['on']('change:data',(_0x22ee0f,_0xa28523)=>{if(_0xa28523['isUndo']||!_0xa28523['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2060c7){if(_0x2060c7['batch']['isUndo']||!_0x2060c7['batch']['isLocal'])return!0x1;let _0x17a9ad=!0x1;const _0xc1008e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x8ee1f9=>_0x8ee1f9['data']&&'listItemId'==_0x8ee1f9['data']['key'])['filter'](_0x22610e=>_0x22610e['data']['newValue']&&_0x22610e['data']['oldValue']);for(const _0x2b0b11 of _0xc1008e)Ht(_0x2b0b11)||(_0x2060c7['removeMarker'](_0x2b0b11['getFirstMarker']()),_0x17a9ad=!0x0);return _0x17a9ad;}['noTrackChangesFixer'](_0x3381a3){if(_0x3381a3['batch']['isUndo']||!_0x3381a3['batch']['isLocal'])return!0x1;const _0x2007c2=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2007c2['trackChangesCommand']['value'])return!0x1;let _0x6c7fe6=!0x1;const _0x972e74=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1a6609=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2f3f64=>'attribute'==_0x2f3f64['type'])['filter'](_0x20318b=>_0x972e74['includes'](_0x20318b['attributeKey']));if(0x0==_0x1a6609['length'])return _0x6c7fe6;for(const _0x47d1b5 of _0x1a6609){const _0x2727a6=_0x2007c2['_findSuggestions'](_0x47d1b5['range'],'attribute')['filter'](_0x74c899=>!_0x74c899['meta']['isNextTo'])['map'](_0x2a6dc9=>_0x2a6dc9['suggestion'])['filter'](_0x274f53=>{const _0x1bef80=_0x2007c2['_getAttributeKey'](_0x274f53);return _0x972e74['includes'](_0x1bef80);});if(_0x2727a6['length']){for(const _0x3988f6 of _0x2727a6)_0x3381a3['removeMarker'](_0x3988f6['getFirstMarker']());_0x6c7fe6=!0x0;}}return _0x6c7fe6;}['assureChains'](){const _0x6af9c7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x347ad7=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5c32fd;const _0x28b04b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1b8d85=>{if(_0x1b8d85['data']['oldRange']||!_0x1b8d85['data']['newRange'])return null;if(!_0x1b8d85['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x51beea}=_0x4dc3a3(_0x1b8d85['name']);if(!_0x6af9c7['hasSuggestion'](_0x51beea))return null;const _0x451e9d=_0x6af9c7['getSuggestion'](_0x51beea);return _0x347ad7['includes'](_0x451e9d['data']['key']);})['map'](_0x102c01=>{const {id:_0x153d8c}=_0x4dc3a3(_0x102c01['name']),_0x4c40d7=_0x6af9c7['getSuggestion'](_0x153d8c);return _0x5c32fd=_0x4c40d7['attributes']['groupId'],_0x4c40d7['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x28b04b['size'])return;const _0x6da18=_0x6af9c7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x434f02=>'attribute'==_0x434f02['type']&&_0x434f02['data']&&_0x347ad7['includes'](_0x434f02['data']['key'])&&_0x434f02['attributes']['groupId']!=_0x5c32fd)['map'](_0x880796=>({'listItem':_0x880796['getFirstRange']()['start']['nodeAfter'],'groupId':_0x880796['attributes']['groupId']})),_0x1ae6dd=new Set();for(const {groupId:_0x2930f3,listItem:_0x4d529c}of _0x6da18)_0x28b04b['has'](_0x4d529c)&&_0x1ae6dd['add'](_0x2930f3);for(const _0x5d0dd6 of _0x6af9c7['getSuggestions']())_0x1ae6dd['has'](_0x5d0dd6['attributes']['groupId'])&&_0x5d0dd6['setAttribute']('groupId',_0x5c32fd);}['_supportLegacySuggestions'](){const _0x34d73b=this['editor'],_0x5f20aa=_0x34d73b['locale'],_0xc1c279=_0x34d73b['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xc1c279['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x562c65,_0x375f16){const _0x5e6460=[];for(let _0x569199 of _0x562c65)_0x569199['start']['nodeAfter']===_0x569199['end']['parent']&&(_0x569199=_0x34d73b['model']['createRange'](_0x34d73b['model']['createPositionAt'](_0x569199['start']['nodeAfter'],0x0))),_0x5e6460['push'](_0x569199);_0x34d73b['model']['change'](_0x2d45f2=>{const _0x212ed9=_0x34d73b['model']['document']['selection'],_0x587dbe=Array['from'](_0x212ed9['getRanges']())['map'](_0x59b405=>_0x5817c4['fromRange'](_0x59b405));_0x2d45f2['setSelection'](_0x5e6460),_0x34d73b['commands']['get'](_0x375f16['commandName'])['refresh'](),_0x375f16['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x34d73b['execute'](_0x375f16['commandName'],..._0x375f16['commandParams']),_0x2d45f2['setSelection'](_0x587dbe);for(const _0x2851a7 of _0x587dbe)_0x2851a7['detach']();});}),_0xc1c279['descriptionFactory']['registerElementLabel'](function(_0x5070a4){const _0x1b314d=!_0x34d73b['model']['schema']['isObject'](_0x5070a4),_0x31a102=_0x5070a4['previousSibling'],_0x16a543=_0x5070a4['nextSibling'],_0x268ee3=_0x5070a4['getAttribute']('listItemId'),_0x2b3929=!_0x31a102||_0x31a102['getAttribute']('listItemId')!==_0x268ee3,_0x4f9ca5=!_0x16a543||_0x16a543['getAttribute']('listItemId')!==_0x268ee3;return _0x1b314d&&Boolean(_0x268ee3)&&_0x2b3929&&_0x4f9ca5;},_0x1fbed2=>At(_0x5f20aa,'ELEMENT_LIST_ITEM',_0x1fbed2));}['_registerLegacyDescription'](){const _0x13e67d=this['editor'],_0x388193=_0x13e67d['locale'];function _0x2f3a24(_0x145a76){const _0x457540=_0x13e67d['commands']['get']('bulletedList')['value'],_0x201c70=_0x13e67d['commands']['get']('numberedList')['value'];return'numberedList'===_0x145a76?_0x457540:_0x201c70;}_0x13e67d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x46bace){if('formatBlock'!=_0x46bace['type'])return;const {data:_0xe3de42}=_0x46bace;if(!_0xe3de42)return;let _0x30a165,_0x51f317,_0x7758f7,_0x570b45;switch(_0xe3de42['commandName']){case'bulletedList':_0x7758f7=_0xe3de42['commandParams'][0x0]['forceValue'],_0x570b45=_0x2f3a24(_0xe3de42['commandName']),_0x30a165=_0x7758f7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x570b45&&_0x13e67d['config']['get']('list.multiBlock')||(_0x30a165='*Change\x20to:*\x20%0'),_0x51f317={'type':'format','content':At(_0x388193,_0x30a165,At(_0x388193,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x7758f7=_0xe3de42['commandParams'][0x0]['forceValue'],_0x570b45=_0x2f3a24(_0xe3de42['commandName']),_0x30a165=_0x7758f7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x570b45&&_0x13e67d['config']['get']('list.multiBlock')||(_0x30a165='*Change\x20to:*\x20%0'),_0x51f317={'type':'format','content':At(_0x388193,_0x30a165,At(_0x388193,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x30a165='*Indent:*\x20%0',_0x51f317={'type':'format','content':At(_0x388193,_0x30a165,At(_0x388193,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x30a165=function(_0x247caa){const _0x31166b=_0x247caa['getFirstRange']();let _0x5c32b0=_0x31166b['start']['nodeAfter'];for(;_0x5c32b0&&_0x31166b['containsItem'](_0x5c32b0);){if(_0x5c32b0['getAttribute']('listIndent')>0x0)return!0x1;_0x5c32b0=_0x5c32b0['nextSibling'];}return!0x0;}(_0x46bace)?At(_0x388193,'*Format:*\x20remove\x20from\x20%0',At(_0x388193,function(_0x7dc5aa){return'ELEMENT_'+_0x7dc5aa['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x46bace))):At(_0x388193,'*Outdent:*\x20%0',At(_0x388193,'ELEMENT_LIST_ITEM')),_0x51f317={'type':'format','content':_0x30a165};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xe3de42['multipleBlocks']&&(_0x30a165='*Merge:*\x20%0',_0x51f317={'type':'deletion','content':At(_0x388193,_0x30a165,At(_0x388193,'ELEMENT_LIST_ITEM'))});}return _0x51f317;});}}function Ht(_0x3aba35){let _0x3b69ac=_0x3aba35['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3b69ac;){const _0x1bbf24=_0x3b69ac['getAttribute']('listItemId');if(!_0x1bbf24)return!0x1;if(_0x1bbf24==_0x3aba35['data']['newValue'])return'newValue';if(_0x1bbf24==_0x3aba35['data']['oldValue'])return'oldValue';_0x3b69ac=_0x3b69ac['previousSibling'];}return!0x1;}class $t extends _0x35090c{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x378199=this['editor']['config']['get']('list.properties'),_0x129992=this['editor']['plugins']['get']('TrackChangesEditing');_0x378199['styles']&&_0x129992['enableDefaultAttributesIntegration']('listStyle'),_0x378199['reversed']&&_0x129992['enableDefaultAttributesIntegration']('listReversed'),_0x378199['startIndex']&&_0x129992['enableDefaultAttributesIntegration']('listStart');const _0x4fe135={'type':'format','content':''};_0x129992['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x156adf=this['editor']['locale'];_0x129992['descriptionFactory']['registerAttributeLabel']('listReversed',At(_0x156adf,'FORMAT_LIST_REVERSED')),_0x129992['descriptionFactory']['registerDescriptionCallback'](_0x5bed18=>{const {data:_0x5d3de2}=_0x5bed18;if(_0x5d3de2&&'listReversed'==_0x5d3de2['key'])return null==_0x5d3de2['newValue']||0x0==_0x5d3de2['newValue']&&null==_0x5d3de2['oldValue']?_0x4fe135:void 0x0;}),_0x129992['descriptionFactory']['registerAttributeLabel']('listStart',At(_0x156adf,'FORMAT_LIST_START')),_0x129992['descriptionFactory']['registerDescriptionCallback'](_0x564f23=>{const {data:_0x1dea01}=_0x564f23;if(_0x1dea01&&'listStart'==_0x1dea01['key'])return null==_0x1dea01['newValue']||0x1==_0x1dea01['newValue']&&null==_0x1dea01['oldValue']?_0x4fe135:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5a6b73=>{if(_0x5a6b73['batch']['isUndo'])return!0x1;let _0x3bb094=!0x1;const _0x13abae=_0x129992['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2d8164=>{const _0x4e66c9=_0x129992['_getAttributeKey'](_0x2d8164);return'listStart'==_0x4e66c9||'listReversed'==_0x4e66c9;});for(const _0x19a6c4 of _0x13abae){const _0x4db392=_0x19a6c4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4db392||'customNumbered'==_0x4db392)continue;_0x129992['_findSuggestions'](_0x19a6c4['getFirstRange'](),'attribute')['find'](_0x3a8645=>'listType'==_0x129992['_getAttributeKey'](_0x3a8645['suggestion']))||(_0x5a6b73['removeMarker'](_0x19a6c4['getFirstMarker']()),_0x3bb094=!0x0);}return _0x3bb094;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x15b202){const _0x2c5762=this['editor']['locale'],{data:_0x2a7536}=_0x15b202,_0x355224={'type':'format','content':''};if(!_0x2a7536||'listStyle'!=_0x2a7536['key'])return;if(!_0x2a7536['oldValue'])return'default'==_0x2a7536['newValue']?_0x355224:{'type':'format','content':''+At(_0x2c5762,'*Set\x20format:*\x20%0',At(_0x2c5762,this['_getTranslationKeyForListStyle'](_0x2a7536['newValue'])))};if(!_0x2a7536['newValue']){if('default'==_0x2a7536['oldValue'])return _0x355224;let _0x37cea5=_0x15b202['head'];for(;_0x37cea5;){if(_0x37cea5['data']&&'listType'==_0x37cea5['data']['key']&&_0x37cea5['data']['newValue'])return _0x355224;_0x37cea5=_0x37cea5['next'];}return{'type':'format','content':''+At(_0x2c5762,'*Remove\x20format:*\x20%0',At(_0x2c5762,this['_getTranslationKeyForListStyle'](_0x2a7536['oldValue'])))};}if('default'!=_0x2a7536['newValue'])return{'type':'format','content':''+At(_0x2c5762,'*Set\x20format:*\x20%0',At(_0x2c5762,this['_getTranslationKeyForListStyle'](_0x2a7536['newValue'])))};let _0x49f555=_0x15b202['head'];for(;_0x49f555;){if(_0x49f555['data']&&'listType'==_0x49f555['data']['key']&&_0x49f555['data']['newValue']&&_0x49f555['data']['oldValue'])return _0x355224;_0x49f555=_0x49f555['next'];}return{'type':'format','content':At(_0x2c5762,'*Set\x20format:*\x20%0',At(_0x2c5762,'ELEMENT_'+_0x15b202['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x319c69=this['editor'],_0x14c115=_0x319c69['locale'];_0x319c69['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34f775=>{if('formatBlock'!=_0x34f775['type'])return;const {data:_0x860292}=_0x34f775;if(!_0x860292)return;let _0x3072f0,_0x4bc156;switch(_0x860292['commandName']){case'listStyle':_0x3072f0='*Change\x20to:*\x20%0',_0x4bc156={'type':'format','content':At(_0x14c115,_0x3072f0,At(_0x14c115,this['_getTranslationKeyForListStyle'](_0x860292['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3072f0=_0x860292['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4bc156={'type':'format','content':At(_0x14c115,_0x3072f0)};break;case'listStart':_0x3072f0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4bc156={'type':'format','content':At(_0x14c115,_0x3072f0,_0x860292['commandParams'][0x0]['startIndex'])};}return _0x4bc156;});}['_getTranslationKeyForListStyle'](_0x430bcd){return'ELEMENT_'+function(_0x282188){if(Wt['includes'](_0x282188))return'bulleted';if(Vt['includes'](_0x282188))return'numbered';return null;}(_0x430bcd)['toUpperCase']()+'_LIST_'+_0x430bcd['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 _0x35090c{['afterInit'](){const _0x44ac39=this['editor'];_0x44ac39['commands']['get']('emoji')&&_0x44ac39['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class zt extends _0x35090c{static get['requires'](){return[lt];}['init'](){const _0x34e3f3=this['editor'],_0x5410cc=_0x34e3f3['plugins']['get']('TrackChangesEditing'),_0x263172=_0x34e3f3['commands']['get']('enter');_0x5410cc['enableCommand']('enter',()=>{_0x34e3f3['model']['change'](_0x3fca8d=>{const _0xb0a107=_0x34e3f3['model']['document']['selection'],_0x2feac7=_0xb0a107['getFirstPosition'](),_0x2c14f5=_0x5817c4['fromRange'](_0xb0a107['getFirstRange']());if(_0x263172['enterBlock'](_0x3fca8d)){const _0x6d3220=_0x34e3f3['model']['createPositionAt'](_0x2feac7['parent']['nextSibling'],0x0),_0x1215e9=_0x3fca8d['createRange'](_0x2feac7,_0x6d3220);_0x5410cc['markInsertion'](_0x1215e9);}else _0x3fca8d['setSelection'](_0x3fca8d['createRange'](_0x2c14f5['end']));_0x2c14f5['detach'](),_0x263172['fire']('afterExecute',{'writer':_0x3fca8d});});});}}class Kt extends _0x35090c{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5d77c2=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d77c2['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5d77c2['enableCommand']('findNext'),_0x5d77c2['enableCommand']('findPrevious'),_0x5d77c2['enableCommand']('replace'),_0x5d77c2['enableCommand']('replaceAll');}['handleFindCommand'](_0x4cfa48,_0x1abc1e,_0x242ccd={}){const _0x42d2b5=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4cfa48(_0x1ae8ef=>{let _0x2a7d8f=('string'==typeof _0x1abc1e?_0x42d2b5['findByTextCallback'](_0x1abc1e,_0x242ccd):_0x1abc1e)(_0x1ae8ef);Array['isArray'](_0x2a7d8f)&&(_0x2a7d8f={'results':_0x2a7d8f,'searchText':'string'==typeof _0x1abc1e?_0x1abc1e:''});const _0x29fed8=_0x2a7d8f['results']['filter'](_0x320bd4=>!0x1===this['_isInDeletionRange'](_0x320bd4,_0x1ae8ef['item']));return{..._0x2a7d8f,'results':_0x29fed8};},_0x242ccd);}['_isInDeletionRange'](_0x45d9fb,_0x30174e){const _0x1579e1=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x30174e,_0x45d9fb['start']),this['editor']['model']['createPositionAt'](_0x30174e,_0x45d9fb['end']));for(const _0x1f961f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1579e1['getIntersection'](_0x1f961f['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 _0x35090c{['afterInit'](){const _0x1260aa=this['editor']['locale'],_0x3dc29b=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4ec8fc,commandName:_0x209e20}of Xt)this['editor']['plugins']['has'](_0x4ec8fc)&&_0x3dc29b['enableDefaultAttributesIntegration'](_0x209e20);_0x3dc29b['descriptionFactory']['registerAttributeLabel']('fontSize',At(_0x1260aa,'FORMAT_FONT_SIZE')),_0x3dc29b['descriptionFactory']['registerAttributeLabel']('fontFamily',At(_0x1260aa,'FORMAT_FONT_FAMILY')),_0x3dc29b['descriptionFactory']['registerAttributeLabel']('fontColor',At(_0x1260aa,'FORMAT_FONT_COLOR')),_0x3dc29b['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',At(_0x1260aa,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcdb08a=this['editor'],_0x3d7529=_0xcdb08a['locale'];_0xcdb08a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14aea1=>{const _0x62123a=_0x3d7529['t'];if('formatInline'!=_0x14aea1['type'])return;const {data:_0x409bee}=_0x14aea1;if(null!=_0x409bee){if('fontSize'==_0x409bee['commandName']){const _0x348e62=_0x409bee['commandParams'][0x0]['value'];if(_0x348e62){const _0xf8094=_0x62123a(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2087ea=>_0x2087ea['model']==_0x348e62)['title'])['toLowerCase']();return{'type':'format','content':At(_0x3d7529,'*Set\x20font\x20size:*\x20%0',_0xf8094)};}return{'type':'format','content':At(_0x3d7529,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x409bee['commandName']){const _0x269cd5=_0x409bee['commandParams'][0x0]['value'];return _0x269cd5?{'type':'format','content':At(_0x3d7529,'*Set\x20font\x20family:*\x20%0',_0x269cd5)}:{'type':'format','content':At(_0x3d7529,'*Reset\x20font\x20family*')};}if('fontColor'==_0x409bee['commandName']){const _0x84df62=_0x409bee['commandParams'][0x0]['value'];if(_0x84df62){const _0x3fefab=_0x3a0b9c(this['editor']['config']['get']('fontColor.colors'))['find'](_0x319c62=>_0x319c62['model']==_0x84df62);let _0x2bba3c=_0x84df62,_0x40ef40='';return _0x3fefab&&(_0x2bba3c=_0x3fefab['label'],_0x40ef40=_0x62123a(_0x2bba3c)['toLowerCase']()),{'type':'format','content':At(_0x3d7529,'*Set\x20font\x20color:*\x20%0',_0x40ef40)['trim'](),'color':{'value':_0x84df62,'title':_0x40ef40||_0x2bba3c}};}return{'type':'format','content':At(_0x3d7529,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x409bee['commandName']){const _0x33768a=_0x409bee['commandParams'][0x0]['value'];if(_0x33768a){const _0x273336=_0x3a0b9c(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x6b296c=>_0x6b296c['model']==_0x33768a);let _0x9e725f=_0x33768a,_0x5f04fc='';return _0x273336&&(_0x9e725f=_0x273336['label'],_0x5f04fc=_0x62123a(_0x9e725f)['toLowerCase']()),{'type':'format','content':At(_0x3d7529,'*Set\x20font\x20background\x20color:*\x20%0',_0x5f04fc)['trim'](),'color':{'value':_0x33768a,'title':_0x5f04fc||_0x9e725f}};}return{'type':'format','content':At(_0x3d7529,'*Reset\x20font\x20background\x20color*')};}}});}}class qt extends _0x35090c{['afterInit'](){const {plugins:_0x566888}=this['editor'];_0x566888['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x566888['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x80a2d8,plugins:_0x1e170e,commands:_0x5b1e55}=this['editor'],_0x34fcd3=_0x1e170e['get']('TrackChangesEditing');_0x5b1e55['get']('footnotesStyle')&&_0x34fcd3['enableDefaultAttributesIntegration']('footnotesStyle'),_0x5b1e55['get']('footnotesStart')&&_0x34fcd3['enableDefaultAttributesIntegration']('footnotesStart'),_0x34fcd3['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',At(_0x80a2d8,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x34fcd3['descriptionFactory']['registerAttributeLabel']('footnotesListStart',At(_0x80a2d8,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0xf8b8e6=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x3c315b,commands:_0x1da5fc}=this['editor'];_0x1da5fc['get']('insertFootnote')&&_0xf8b8e6['enableCommand']('insertFootnote'),_0xf8b8e6['descriptionFactory']['registerElementLabel']('footnoteRef',_0x1f1ea8=>At(_0x3c315b,'ELEMENT_FOOTNOTE_REF',_0x1f1ea8)),_0xf8b8e6['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0xc09619=>At(_0x3c315b,'ELEMENT_FOOTNOTE_DEFINITION',_0xc09619)),_0xf8b8e6['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x3c7d26=>At(_0x3c315b,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x3c7d26));}}class Qt extends _0x35090c{['afterInit'](){const _0x258d48=this['editor'],_0x2a648d=_0x258d48['plugins']['get']('TrackChangesEditing'),_0x4e0400=_0x258d48['commands']['get']('copyFormat'),_0xc15311=_0x258d48['commands']['get']('pasteFormat');_0x4e0400&&_0xc15311&&(_0x2a648d['enableDefaultAttributesIntegration']('pasteFormat'),_0x2a648d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x25f153=this['editor'],_0x2e058f=_0x25f153['locale'];_0x25f153['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3698b8=>{if('formatBlock'!=_0x3698b8['type']&&'formatInline'!=_0x3698b8['type'])return;const {data:_0x2627d4}=_0x3698b8;if(_0x2627d4&&'pasteFormat'===_0x2627d4['commandName']){const _0x5b0098=[],_0x424c39=_0x2627d4['commandParams'][0x0];for(const [_0x5a21be,_0x296d4b]of Object['entries'](_0x424c39))_0x5b0098['push'](Zt(_0x25f153,_0x5a21be,_0x296d4b));return _0x5b0098['length']?{'type':'format','content':At(_0x2e058f,'*Set\x20format\x20to:*\x20%0',_0x5b0098['join'](',\x20'))}:{'type':'format','content':At(_0x2e058f,'*Remove\x20all\x20formatting*')};}});}}function Zt(_0x105965,_0x1463f3,_0x282977){const _0x2277d8=_0x105965['locale']['t'],_0x3f9e52=_0x1463f3['split'](/(?=[A-Z])/)['join']('\x20'),_0x5e0f98=_0x2277d8(_0x3f9e52['charAt'](0x0)['toUpperCase']()+_0x3f9e52['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x282977)return _0x5e0f98;if('fontColor'===_0x1463f3||'fontBackgroundColor'===_0x1463f3){const _0x201096=_0x3a0b9c(_0x105965['config']['get']('fontColor.colors'))['find'](_0x485398=>_0x485398['model']==_0x282977);return _0x5e0f98+'\x20('+(_0x201096?_0x2277d8(_0x201096['label'])['toLowerCase']():_0x282977)+')';}if('fontSize'===_0x1463f3&&isNaN(parseFloat(_0x282977))){const _0x3cee3b=_0x105965['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x105965['config']['get']('fontSize.options'))['find'](_0x59ee83=>_0x59ee83['model']==_0x282977);return _0x5e0f98+'\x20('+(_0x3cee3b?_0x2277d8(_0x3cee3b['title'])['toLowerCase']():_0x282977)+')';}return _0x5e0f98+'\x20('+_0x282977+')';}class Jt extends _0x35090c{['_headingOptions'];['afterInit'](){const _0x3a25c3=this['editor'];if(!_0x3a25c3['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3a25c3['config']['get']('heading.options');const _0xa23550=_0x3a25c3['locale'],_0x32806e=_0x3a25c3['plugins']['get']('TrackChangesEditing');_0x32806e['enableDefaultAttributesIntegration']('heading');for(const _0x1e43b0 of this['_headingOptions'])'paragraph'!=_0x1e43b0['model']&&_0x32806e['descriptionFactory']['registerElementLabel'](_0x1e43b0['model'],_0x3eadbb=>{const _0x2569c8=this['_getHeadingLevel'](_0x1e43b0['model']);return null!==_0x2569c8?_0x46aded(_0x3eadbb,_0x2569c8):_0x5ba12a(_0x3eadbb,_0x1e43b0['title']);});function _0x46aded(_0x28e4c0,_0x1cf3bd){return At(_0xa23550,'ELEMENT_HEADING',[_0x28e4c0,_0x1cf3bd]);}function _0x5ba12a(_0x360e6d,_0x14bc5e){return At(_0xa23550,'ELEMENT_HEADING_CUSTOM',[_0x360e6d,_0x14bc5e]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a09ee=this['editor'],_0x39028e=_0x5a09ee['locale'];function _0x585925(_0xbf8953,_0xf77df5){return At(_0x39028e,'ELEMENT_HEADING_CUSTOM',[_0xbf8953,_0xf77df5]);}_0x5a09ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26f547=>{if('formatBlock'!=_0x26f547['type'])return;const {data:_0x370df8}=_0x26f547;if(_0x370df8&&'heading'==_0x370df8['commandName']){const _0x42778a=_0x370df8['commandParams'][0x0]['value'],_0x4c3111=this['_getHeadingLevel'](_0x42778a);if(null!==_0x4c3111)return{'type':'format','content':At(_0x39028e,'*Change\x20to:*\x20%0',(_0x3b62e5=0x1,_0x37560a=_0x4c3111,At(_0x39028e,'ELEMENT_HEADING',[_0x3b62e5,_0x37560a])))};const _0x17bafb=this['_headingOptions']['find'](_0x2f0b0a=>_0x2f0b0a['model']===_0x42778a)['title'];return{'type':'format','content':At(_0x39028e,'*Change\x20to:*\x20%0',_0x585925(0x1,_0x17bafb))};}var _0x3b62e5,_0x37560a;});}['_getHeadingLevel'](_0x3078ee){const _0x3be8d1=_0x3078ee['match'](/^heading(\d+)/);if(_0x3be8d1)return _0x3be8d1[0x1];const _0x1561d0=this['_headingOptions']?.['find'](_0x5a92c3=>_0x5a92c3['model']==_0x3078ee);if(_0x1561d0&&_0x1561d0['view']){const _0x5a6882=_0x1561d0['view'],_0x3c2931=(_0x5a6882['name']??_0x5a6882)['match'](/^h(\d+)/);if(_0x3c2931)return _0x3c2931[0x1];}return null;}}class te extends _0x35090c{['afterInit'](){const _0x22f821=this['editor'];if(!_0x22f821['plugins']['has']('HighlightEditing'))return;const _0x3f67e5=_0x22f821['plugins']['get']('TrackChangesEditing'),_0x1a9d22=_0x22f821['locale'];_0x3f67e5['enableDefaultAttributesIntegration']('highlight'),_0x3f67e5['descriptionFactory']['registerAttributeLabel']('highlight',At(_0x1a9d22,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ded03=this['editor'],_0x28cc90=_0x4ded03['locale'];_0x4ded03['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x305fea=>{if('formatInline'!=_0x305fea['type'])return;const {data:_0x6d0158}=_0x305fea;if(_0x6d0158&&'highlight'==_0x6d0158['commandName']){const _0x4e6218=_0x28cc90['t'],_0x417ede=_0x6d0158['commandParams'][0x0]['value'];if(_0x417ede){const _0x1a9162=_0x4ded03['config']['get']('highlight.options')['find'](_0x578f15=>_0x578f15['model']==_0x417ede),_0xe0f28a=_0x4e6218(_0x1a9162['title'])['toLowerCase']();return{'type':'format','content':At(_0x28cc90,'*Set\x20highlight:*\x20%0',_0xe0f28a),'color':{'value':_0x1a9162['color'],'title':_0x1a9162['title']}};}return{'type':'format','content':At(_0x28cc90,'*Remove\x20highlight*',At(_0x28cc90,'FORMAT_HIGHLIGHT'))};}});}}class ee extends _0x35090c{['afterInit'](){const _0x425b3e=this['editor'];if(!_0x425b3e['plugins']['has']('HorizontalLineEditing'))return;_0x425b3e['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x39a8d4=_0x425b3e['plugins']['get']('TrackChangesEditing'),_0x226b89=_0x425b3e['locale'];_0x39a8d4['descriptionFactory']['registerElementLabel']('horizontalLine',_0x119658=>At(_0x226b89,'ELEMENT_HORIZONTAL_LINE',_0x119658));}}class ne extends _0x35090c{['afterInit'](){const _0x173d98=this['editor'];if(!_0x173d98['plugins']['has']('HtmlEmbed'))return;const _0x427a1a=_0x173d98['plugins']['get']('TrackChangesEditing'),_0x683d52=_0x173d98['locale'];_0x427a1a['descriptionFactory']['registerElementLabel']('rawHtml',_0x25ec83=>At(_0x683d52,'ELEMENT_HTML_EMBED',_0x25ec83)),_0x427a1a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x427a1a['descriptionFactory']['registerDescriptionCallback'](_0x422d04=>{if('attribute'!=_0x422d04['type'])return;const {data:_0x1c5953}=_0x422d04;if(_0x1c5953&&'value'==_0x1c5953['key']&&_0x422d04['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3b6895=At(_0x683d52,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x683d52,'*Change\x20%0\x20content*',_0x3b6895)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd07f81=this['editor'],_0x4fe038=_0xd07f81['locale'];_0xd07f81['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2127bf=>{if('formatBlock'!=_0x2127bf['type'])return;const {data:_0x27e961}=_0x2127bf;if(_0x27e961&&'htmlEmbed'==_0x27e961['commandName']){const _0xb61813=At(_0x4fe038,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x4fe038,'*Change\x20%0\x20content*',_0xb61813)};}});}}class ie extends _0x35090c{['afterInit'](){const _0x2b6947=this['editor'];if(!_0x2b6947['plugins']['has']('ImageEditing'))return;const _0x8da502=_0x2b6947['plugins']['get']('TrackChangesEditing'),_0x3317ae=_0x2b6947['plugins']['get']('ImageUtils'),_0x3bcbec=_0x2b6947['locale'];_0x8da502['enableCommand']('insertImage'),_0x8da502['descriptionFactory']['registerElementLabel']('imageBlock',_0x46bde9=>At(_0x3bcbec,'ELEMENT_IMAGE',_0x46bde9)),_0x8da502['descriptionFactory']['registerElementLabel']('imageInline',_0xf73599=>At(_0x3bcbec,'ELEMENT_INLINE_IMAGE',_0xf73599)),_0x8da502['descriptionFactory']['registerElementLabel']('caption',()=>At(_0x3bcbec,'ELEMENT_CAPTION')),_0x2b6947['plugins']['has']('ImageUploadEditing')&&_0x8da502['enableCommand']('uploadImage'),_0x2b6947['plugins']['has']('ImageBlockEditing')&&_0x2b6947['plugins']['has']('ImageInlineEditing')&&(_0x8da502['enableCommand']('imageTypeInline',(_0x543df3,_0x18ab3d)=>{const _0x2df795=_0x3317ae['getClosestSelectedImageElement'](_0x2b6947['model']['document']['selection']);_0x2b6947['model']['change'](()=>{_0x8da502['markBlockFormat'](_0x2df795,{'commandName':'imageTypeInline','commandParams':[_0x18ab3d]},[],'convertBlockImageToInline');});}),_0x8da502['enableCommand']('imageTypeBlock',(_0x2d0cf6,_0x4889c2)=>{_0x2b6947['model']['change'](_0x9c4d91=>{let _0x403ba4=_0x3317ae['getClosestSelectedImageElement'](_0x2b6947['model']['document']['selection']),_0x192a00=_0x9c4d91['createRangeOn'](_0x403ba4);const _0xc41854=tt['fromPosition'](_0x192a00['start'],'toPrevious'),_0x39754d=tt['fromPosition'](_0x192a00['end'],'toNext');_0x8da502['forceDefaultExecution'](()=>_0x2d0cf6(_0x4889c2)),_0x403ba4=_0x3317ae['getClosestSelectedImageElement'](_0x2b6947['model']['document']['selection']),_0x192a00=_0x9c4d91['createRangeOn'](_0x403ba4);const _0xc1a6fd=_0x9c4d91['createRange'](_0xc41854,_0x39754d);_0xc41854['detach'](),_0x39754d['detach'](),_0x8da502['markBlockFormat'](_0x403ba4,{'commandName':'imageTypeInline','commandParams':[_0x4889c2]},[],'convertInlineImageToBlock'),_0xc1a6fd['start']['isBefore'](_0x192a00['start'])&&_0x8da502['markInsertion'](_0x9c4d91['createRange'](_0xc1a6fd['start'],_0x192a00['start']),'convertInlineImageToBlock'),_0x192a00['end']['isBefore'](_0xc1a6fd['end'])&&_0x8da502['markInsertion'](_0x9c4d91['createRange'](_0x192a00['end'],_0xc1a6fd['end']),'convertInlineImageToBlock');});}),_0x8da502['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x8da502['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x8da502['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x8da502['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x8da502['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x8da502['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x421e9d])=>{const _0x3c82dc=_0x8da502['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x132014=_0x421e9d['start'],_0x37b1c2=_0x421e9d['end'];const _0x34f684=_0x2b6947['model']['schema']['getNearestSelectionRange'](_0x132014,'backward'),_0x26451f=_0x2b6947['model']['schema']['getNearestSelectionRange'](_0x37b1c2,'forward');_0x34f684['isCollapsed']&&(_0x132014=_0x34f684['start']),_0x26451f['isCollapsed']&&(_0x37b1c2=_0x26451f['end']),_0x3c82dc([_0x2b6947['model']['createRange'](_0x132014,_0x37b1c2)]);}),_0x8da502['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xa03f79),_0x8da502['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xa03f79)),_0x2b6947['plugins']['has']('ImageCaptionEditing')&&(_0x8da502['enableCommand']('toggleImageCaption',(_0x5b1ac9,_0x2e9a9b)=>{const _0xb719e5=_0x2b6947['plugins']['get']('ImageCaptionUtils');let _0x1e6685=_0x3317ae['getClosestSelectedImageElement'](_0x2b6947['model']['document']['selection']),_0x2d3ac5=_0xb719e5['getCaptionFromImageModelElement'](_0x1e6685);_0x2b6947['model']['change'](()=>{if(_0x2d3ac5)return void _0x8da502['markDeletion'](_0x2b6947['model']['createRangeOn'](_0x2d3ac5));const _0xfebdcf=_0x3317ae['isBlockImage'](_0x1e6685);_0x5b1ac9(_0x2e9a9b),_0x1e6685=_0x3317ae['getClosestSelectedImageElement'](_0x2b6947['model']['document']['selection']),_0x2d3ac5=_0xb719e5['getCaptionFromImageModelElement'](_0x1e6685),_0x8da502['markInsertion'](_0x2b6947['model']['createRangeOn'](_0x2d3ac5),_0xfebdcf?null:'imageCaption');});}),_0x8da502['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xa03f79));const _0x4dcf59=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4e4d91(_0x5cf5fc,_0x1cdcf3){const _0x5227ac=_0x4dcf59['findIndex'](({type:_0x33a4df,subType:_0x466c89})=>_0x5cf5fc['type']==_0x33a4df&&_0x5cf5fc['subType']==_0x466c89),_0x537e6c=_0x4dcf59['findIndex'](({type:_0x361d6b,subType:_0x3359e9})=>_0x1cdcf3['type']==_0x361d6b&&_0x1cdcf3['subType']==_0x3359e9);if(_0x5227ac<0x0||_0x537e6c<0x0)return!0x1;const _0x3570e2=_0x5cf5fc['getFirstRange'](),_0x42a5f9=_0x1cdcf3['getFirstRange']();if((0x0==_0x5227ac||0x1==_0x5227ac)&&0x2==_0x537e6c&&_0x3570e2['isIntersecting'](_0x42a5f9))return!0x0;if(0x2==_0x5227ac&&0x3==_0x537e6c){const _0x5ac1c4=_0x8da502['_findSuggestions'](_0x3570e2,'insertion')['filter'](({suggestion:_0x254363,meta:_0x5aede6})=>_0x5aede6['isOwn']&&'convertInlineImageToBlock'==_0x254363['subType']);if(_0x5ac1c4['length']>0x1&&_0x42a5f9['end']['isEqual'](_0x3570e2['start']))return!0x0;if(0x1==_0x5ac1c4['length']&&(_0x3570e2['start']['isEqual'](_0x42a5f9['end'])||_0x3570e2['end']['isEqual'](_0x42a5f9['start'])))return!0x0;}if(0x3==_0x5227ac&&0x3==_0x537e6c&&_0x3570e2['start']['isBefore'](_0x42a5f9['start'])){const _0x34d09e=_0x3570e2['end']['nodeAfter'],_0x48477f=_0x42a5f9['start']['nodeBefore'];return _0x3317ae['isBlockImage'](_0x34d09e)&&_0x34d09e===_0x48477f;}return!0x1;}function _0xa03f79(_0x5bfb50,_0x17201d){return _0x4e4d91(_0x5bfb50,_0x17201d)?[_0x5bfb50,_0x17201d]:_0x4e4d91(_0x17201d,_0x5bfb50)?[_0x17201d,_0x5bfb50]:null;}_0x2b6947['plugins']['has']('ImageResize')&&(_0x8da502['enableDefaultAttributesIntegration']('resizeImage'),_0x8da502['descriptionFactory']['registerAttributeLabel']('resizedWidth',At(_0x3bcbec,'FORMAT_IMAGE_SIZE'))),_0x2b6947['plugins']['has']('ImageTextAlternativeEditing')&&_0x8da502['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2b6947['plugins']['has']('PictureEditing')&&_0x8da502['descriptionFactory']['registerDescriptionCallback'](_0x52f7f4=>{if('attribute'!=_0x52f7f4['type'])return;const {data:_0xd3e7ef}=_0x52f7f4;return _0xd3e7ef&&'sources'==_0xd3e7ef['key']?{'type':'format','content':''}:void 0x0;}),_0x2b6947['plugins']['has']('ImageSizeAttributes')&&_0x8da502['descriptionFactory']['registerDescriptionCallback'](_0x4940df=>{if('attribute'!=_0x4940df['type'])return;const {data:_0x477ff8}=_0x4940df;return!_0x477ff8||'width'!=_0x477ff8['key']&&'height'!=_0x477ff8['key']?void 0x0:{'type':'format','content':''};}),_0x8da502['descriptionFactory']['registerDescriptionCallback'](_0x37f479=>{if(!!_0x4dcf59['find'](({type:_0x483ecc,subType:_0x10add8})=>_0x37f479['type']==_0x483ecc&&_0x37f479['subType']==_0x10add8))return _0x37f479['previous']?{}:void 0x0;}),_0x8da502['descriptionFactory']['registerDescriptionCallback'](_0x274066=>{if('insertion'==_0x274066['type']||'deletion'==_0x274066['type']){const _0x5b9911=_0x274066['getContainedElement']();if(_0x5b9911&&_0x5b9911['is']('element','caption'))return{'type':'insertion'==_0x274066['type']?'addObject':'removeObject','element':_0x5b9911,'quantity':0x1};}}),_0x8da502['descriptionFactory']['registerDescriptionCallback'](_0x3a5994=>'formatBlock'==_0x3a5994['type']&&'convertInlineImageToBlock'==_0x3a5994['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3a5994['type']&&'convertBlockImageToInline'==_0x3a5994['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x8da502['descriptionFactory']['registerDescriptionCallback'](_0x51a271=>{if('attribute'!=_0x51a271['type'])return;const {data:_0x2d3c61}=_0x51a271;if(!_0x2d3c61||'alt'!=_0x2d3c61['key'])return;const _0x3c47b1=_0x2d3c61['newValue'];return _0x3c47b1?{'type':'format','content':At(_0x3bcbec,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3c47b1+'\x22')}:{'type':'format','content':At(_0x3bcbec,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3410cc=this['editor'],_0x29c600=_0x3410cc['locale'];_0x3410cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1371bf=>{if('formatBlock'!=_0x1371bf['type']&&'formatInline'!=_0x1371bf['type'])return;const {data:_0x538aa6}=_0x1371bf;if(_0x538aa6){if('imageTextAlternative'==_0x538aa6['commandName']){const _0x48237b=_0x538aa6['commandParams'][0x0]['newValue'];return _0x48237b?{'type':'format','content':At(_0x29c600,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x48237b+'\x22')}:{'type':'format','content':At(_0x29c600,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x538aa6['commandName']){const _0x5a60c8=_0x538aa6['commandParams'][0x0]['width'];return _0x5a60c8?{'type':'format','content':At(_0x29c600,'*Set\x20image\x20width:*\x20%0',_0x5a60c8)}:{'type':'format','content':At(_0x29c600,'*Reset\x20image\x20width*')};}}});}}class se extends _0x35090c{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1fe3a2=this['editor']['locale'],_0x5919a3=this['editor']['plugins']['get']('TrackChangesEditing');_0x5919a3['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5919a3['descriptionFactory']['registerDescriptionCallback'](_0x4c1cc2=>{if('attribute'!=_0x4c1cc2['type'])return;const {data:_0x5448f9}=_0x4c1cc2;return _0x5448f9&&'src'==_0x5448f9['key']?_0x5448f9['newValue']&&_0x5448f9['oldValue']?{'type':'format','content':At(_0x1fe3a2,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x34ee6f=this['editor']['plugins']['get']('TrackChangesEditing');_0x34ee6f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x34ee6f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x34ee6f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x34ee6f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42eaee=this['editor'],_0x409096=_0x42eaee['locale'];_0x42eaee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x299410=>{if('formatBlock'!=_0x299410['type']&&'formatInline'!=_0x299410['type'])return;const {data:_0x15533d}=_0x299410;if(!_0x15533d||'replaceImageSource'!=_0x15533d['commandName'])return;return{'type':'format','content':At(_0x409096,'*Format:*\x20replace\x20image\x20URL')};});}}class re extends _0x35090c{['afterInit'](){const _0xead71e=this['editor'];if(!_0xead71e['plugins']['has']('ImageStyleEditing'))return;const _0x4057ff=_0xead71e['plugins']['get']('TrackChangesEditing'),_0x20a004=_0xead71e['plugins']['get']('ImageUtils'),_0x27069a={};_0x4057ff['enableCommand']('imageStyle',(_0x606f4,_0x1d3655)=>{const _0x5d28d5=_0xead71e['plugins']['get']('Users')['me'],_0x133350=_0xead71e['commands']['get']('imageStyle');let _0x5c33e4=_0x20a004['getClosestSelectedImageElement'](_0xead71e['model']['document']['selection']),_0x196db5=_0xead71e['model']['createRangeOn'](_0x5c33e4),_0xce4321=_0x133350['value'];if(_0xce4321==_0x1d3655['value'])return;const _0x34db3a={'commandName':'imageStyle','commandParams':[_0x1d3655],'formatGroupId':_0x5b022c()};_0xead71e['model']['change'](()=>{if(_0x4057ff['getSuggestions']()['filter'](_0xfc50a=>_0xfc50a['isInContent']&&_0x5d28d5==_0xfc50a['author']&&('formatBlock'==_0xfc50a['type']||'formatInline'==_0xfc50a['type'])&&('imageStylePreApply'==_0xfc50a['subType']||'imageStylePostApply'==_0xfc50a['subType'])&&_0xfc50a['getFirstRange']()['isEqual'](_0x196db5))['forEach'](_0x1861b5=>_0x4057ff['discardSuggestion'](_0x1861b5['head'])),_0x5c33e4=_0x20a004['getClosestSelectedImageElement'](_0xead71e['model']['document']['selection']),_0x196db5=_0xead71e['model']['createRangeOn'](_0x5c33e4),_0x133350['refresh'](),_0xead71e['commands']['get']('imageTypeInline')['refresh'](),_0xead71e['commands']['get']('imageTypeBlock')['refresh'](),_0xce4321=_0x133350['value'],_0xce4321!=_0x1d3655['value'])return _0x20a004['isInlineImage'](_0x5c33e4)&&_0x133350['shouldConvertImageType'](_0x1d3655['value'],_0x5c33e4)?(_0x606f4({..._0x1d3655,'setImageSizes':!0x1}),_0x5c33e4=_0x20a004['getClosestSelectedImageElement'](_0xead71e['model']['document']['selection']),void _0x4057ff['markBlockFormat'](_0x5c33e4,{..._0x34db3a,'commandReversedParams':[{'value':_0xce4321||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x20a004['isBlockImage'](_0x5c33e4)?_0x4057ff['markBlockFormat'](_0x5c33e4,_0x34db3a,[],'imageStylePostApply'):_0x4057ff['markInlineFormat'](_0x196db5,_0x34db3a,'imageStylePostApply'));});});for(const _0x4c2e93 of _0xead71e['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x27069a[_0x4c2e93['name']]=_0x4c2e93['title']['toLowerCase']();_0x4057ff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4057ff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4057ff['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4057ff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xb52a80])=>{_0x20a004['setImageNaturalSizeAttributes'](_0xb52a80['getContainedElement']());}),_0x4057ff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x12505c,_0xeab9cd)=>{_0x4057ff['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x12505c,{'commandName':_0xeab9cd['commandName'],'commandParams':_0xeab9cd['commandReversedParams']});}),_0x4057ff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5e922c,_0x54f9aa){if(_0x460acc(_0x5e922c,_0x54f9aa))return[_0x5e922c,_0x54f9aa];if(_0x460acc(_0x54f9aa,_0x5e922c))return[_0x54f9aa,_0x5e922c];return null;});const _0x1ef304=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x460acc(_0x6f945,_0x347a87){const _0x4b2a1b=_0x1ef304['findIndex'](({type:_0x436ae0,subType:_0xb9050a})=>_0x6f945['type']==_0x436ae0&&_0x6f945['subType']==_0xb9050a),_0x2694fe=_0x1ef304['findIndex'](({type:_0x55769b,subType:_0x952c7f})=>_0x347a87['type']==_0x55769b&&_0x347a87['subType']==_0x952c7f);if(_0x4b2a1b<0x0||_0x2694fe<0x0)return!0x1;const _0x30cfa3=_0x6f945['getFirstRange'](),_0x182129=_0x347a87['getFirstRange']();if((0x0==_0x4b2a1b||0x1==_0x4b2a1b)&&0x2==_0x2694fe&&_0x30cfa3['isIntersecting'](_0x182129))return!0x0;if(0x2==_0x4b2a1b&&0x3==_0x2694fe){const _0x3ef0e8=_0x4057ff['_findSuggestions'](_0x30cfa3,'insertion')['filter'](({suggestion:_0x2c4fdb,meta:_0x12f6dd})=>_0x12f6dd['isOwn']&&'convertInlineImageToBlock'==_0x2c4fdb['subType']);if(_0x3ef0e8['length']>0x1&&_0x182129['end']['isEqual'](_0x30cfa3['start']))return!0x0;if(0x1==_0x3ef0e8['length']&&(_0x30cfa3['start']['isEqual'](_0x182129['end'])||_0x30cfa3['end']['isEqual'](_0x182129['start'])))return!0x0;}if(0x3==_0x4b2a1b&&0x3==_0x2694fe&&_0x30cfa3['start']['isBefore'](_0x182129['start'])){const _0xf1bc54=_0x30cfa3['end']['nodeAfter'],_0x3ae048=_0x182129['start']['nodeBefore'];return _0x20a004['isBlockImage'](_0xf1bc54)&&_0xf1bc54===_0x3ae048;}return!0x1;}_0xead71e['model']['document']['registerPostFixer'](()=>{let _0x174322=!0x1;const _0x65f549=Array['from'](_0xead71e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x39d5d2,data:_0xfe69c3}of _0x65f549){const {group:_0x64e727,type:_0x263f77,subType:_0x27b1bc,id:_0x3c1dc9}=_0x4dc3a3(_0x39d5d2);if('suggestion'==_0x64e727&&_0x4057ff['hasSuggestion'](_0x3c1dc9)){if('formatBlock'==_0x263f77&&('imageStylePreApply'==_0x27b1bc||'imageStylePostApply'==_0x27b1bc)){const _0x4b5ee0=_0x4057ff['getSuggestion'](_0x3c1dc9);if(_0xfe69c3['newRange']){const _0x325913=_0x4b5ee0['getFirstRange']()['getContainedElement']();if(_0x20a004['isBlockImage'](_0x325913))continue;_0x4057ff['discardSuggestion'](_0x4b5ee0),_0x174322=!0x0;}}if('insertion'==_0x263f77&&'imageCaption'==_0x27b1bc&&!_0xfe69c3['newRange']){const _0xcdfc6a=_0x4057ff['getSuggestion'](_0x3c1dc9);_0xcdfc6a['next']&&_0xcdfc6a['next']['isInContent']&&(_0x4057ff['discardSuggestion'](_0xcdfc6a['next']),_0x174322=!0x0);}}}return _0x174322;}),this['_registerLegacyDescription'](_0x27069a);}['_registerLegacyDescription'](_0xc1ad5f){const _0x28bbf9=this['editor'],_0x22d110=_0x28bbf9['locale'];_0x28bbf9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e74e5=>{if('formatBlock'!=_0x1e74e5['type']&&'formatInline'!=_0x1e74e5['type'])return;const {data:_0x183393}=_0x1e74e5;if(!_0x183393||'imageStyle'!=_0x183393['commandName'])return;const _0xe6b608=_0x183393['commandParams'][0x0]['value'];return _0x4c3821('side'===_0xe6b608?At(_0x22d110,'FORMAT_SIDE_IMAGE'):_0xc1ad5f[_0xe6b608]||_0xe6b608);function _0x4c3821(_0x5be3bb){return{'type':'format','content':At(_0x22d110,'*Format:*\x20%0',_0x5be3bb)};}});}}class oe extends _0x35090c{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xa38f9b){super(_0xa38f9b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2a8393=this['editor'],_0x195f11=_0x2a8393['commands']['get']('importWord'),_0x275dcb=_0x2a8393['commands']['get']('trackChanges');_0x195f11&&(_0x195f11['on']('execute',(_0x54f4cc,[,_0x21a8dc])=>{this['_trackChangesValueDuringImport']=_0x275dcb['value'],_0x21a8dc['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x195f11,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x195f11,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x275dcb['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2a8393['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x61ca0b,_0x2c5c47){const {suggestions:_0x1e85bb}=_0x2c5c47,_0xca1f6f=this['editor']['commands']['get']('trackChanges'),_0x121c37=_0xca1f6f['value'];this['_trackChangesValueDuringImport']!==_0x121c37&&(_0xca1f6f['execute'](),this['_trackChangesExecuted']=!0x0),_0x1e85bb&&_0x1e85bb['forEach'](({id:_0x37e2d8,type:_0x420bf6,author:_0x59f4ef,created_at:_0xde584c})=>{const _0x453ae1={'id':_0x37e2d8,'type':_0x420bf6,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x59f4ef,'createdAt':_0xde584c?new Date(_0xde584c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x453ae1);});}}class ae extends _0x35090c{['afterInit'](){const _0x403932=this['editor'],_0x26348c=_0x403932['plugins']['get']('TrackChangesEditing');if(_0x403932['plugins']['has']('IndentEditing')&&(_0x26348c['enableCommand']('indent'),_0x26348c['enableCommand']('outdent')),_0x403932['plugins']['has']('IndentBlock')){for(const _0x58ef18 of['indentBlock','outdentBlock'])_0x26348c['enableDefaultAttributesIntegration'](_0x58ef18);if(_0x403932['plugins']['has']('ListEditing')){for(const _0x4d5221 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x26348c['enableDefaultAttributesIntegration'](_0x4d5221);}}const _0x2fcd0f=_0x403932['locale'];_0x26348c['descriptionFactory']['registerAttributeLabel']('blockIndent',At(_0x2fcd0f,'FORMAT_INDENT')),_0x26348c['descriptionFactory']['registerAttributeLabel']('blockIndentList',At(_0x2fcd0f,'FORMAT_INDENT')),_0x26348c['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',At(_0x2fcd0f,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x537485=this['editor'],_0x2693a7=_0x537485['locale'],_0x45fdf9=_0x537485['plugins']['get']('TrackChangesEditing');_0x45fdf9['descriptionFactory']['registerDescriptionCallback'](_0x43dc6d=>{if('formatBlock'!=_0x43dc6d['type'])return;const {data:_0x2c8064}=_0x43dc6d;if(!_0x2c8064)return;if('indentBlock'!=_0x2c8064['commandName']&&'outdentBlock'!=_0x2c8064['commandName'])return;const _0x5c3a86=_0x43dc6d['getItems']()[0x0],_0x712de9=_0x45fdf9['descriptionFactory']['getItemLabel'](_0x5c3a86);return'indentBlock'==_0x2c8064['commandName']?{'type':'format','content':At(_0x2693a7,'*Indent:*\x20%0',_0x712de9)}:'outdentBlock'==_0x2c8064['commandName']?{'type':'format','content':At(_0x2693a7,'*Outdent:*\x20%0',_0x712de9)}:void 0x0;});}}class ce extends _0x35090c{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class le extends _0x35090c{['afterInit'](){const _0x40d0cb=this['editor'];if(!_0x40d0cb['plugins']['has']('LinkEditing'))return;const _0x467f8a=_0x40d0cb['plugins']['get']('TrackChangesEditing'),_0x465ca0=_0x40d0cb['commands']['get']('link');_0x467f8a['enableDefaultAttributesIntegration']('link'),_0x467f8a['enableDefaultAttributesIntegration']('unlink');for(const _0x5de084 of _0x465ca0['manualDecorators'])_0x467f8a['descriptionFactory']['registerAttributeLabel'](_0x5de084['id'],'link\x20('+_0x5de084['label']['toLowerCase']()+')');_0x467f8a['descriptionFactory']['registerDescriptionCallback'](_0x1f5615=>{if('attribute'!=_0x1f5615['type'])return;const {data:_0xf4e9f8}=_0x1f5615;if(!_0xf4e9f8||'linkHref'!=_0xf4e9f8['key'])return;const _0x5cfd9a=_0xf4e9f8['newValue'],_0x492b24=_0x40d0cb['locale'];return{'type':'format','content':null==_0x5cfd9a?At(_0x492b24,'*Remove\x20link*'):At(_0x492b24,'*Set\x20link:*\x20%0','\x22'+_0x5cfd9a+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d05cd=this['editor'],_0x3b267c=_0x5d05cd['locale'];_0x5d05cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55c331=>{if('formatInline'!=_0x55c331['type'])return;const {data:_0x224ee2}=_0x55c331;if(_0x224ee2){if('link'==_0x224ee2['commandName']){const _0x1d6c9a=_0x224ee2['commandParams'][0x0];return{'type':'format','content':At(_0x3b267c,'*Set\x20link:*\x20%0','\x22'+_0x1d6c9a+'\x22')};}return'unlink'==_0x224ee2['commandName']?{'type':'format','content':At(_0x3b267c,'*Remove\x20link*')}:void 0x0;}});}}class ue extends _0x35090c{['afterInit'](){const _0x20ac12=this['editor'],_0x1898a=_0x20ac12['locale'];if(!_0x20ac12['plugins']['has']('LegacyListEditing'))return;const _0x364805=_0x20ac12['plugins']['get']('TrackChangesEditing'),_0x40b7fc=_0x20ac12['plugins']['has']('LegacyTodoListEditing');function _0x5dae24(_0x42191a){return()=>{const _0x59d6c5=_0x20ac12['model']['document']['selection'],_0x5b484a=_0x20ac12['commands']['get'](_0x42191a);if(_0x5b484a['value'])return void _0x20ac12['execute']('paragraph',{});const _0x2be702=_0x42191a['slice'](0x0,-0x4),_0x2f1217=function(_0x384a10,_0x13d68f,_0x5e2438){let _0x1cc75b=Array['from'](_0x384a10)['filter'](_0x870b6=>function(_0x597efc,_0x5baf6f){return _0x5baf6f['checkChild'](_0x597efc['parent'],'listItem')&&!_0x5baf6f['isObject'](_0x597efc);}(_0x870b6,_0x5e2438));_0x1cc75b=_0x1cc75b['filter'](_0x3c2e1f=>!_0x3c2e1f['is']('element','listItem')||_0x3c2e1f['getAttribute']('listType')!=_0x13d68f);const _0x1be390=new Set();for(const _0x2e64cd of _0x1cc75b)_0x2e64cd['is']('element','listItem')?_0x1be390['add'](he(_0x2e64cd)):_0x1be390['add'](_0x2e64cd);return Array['from'](_0x1be390);}(_0x59d6c5['getSelectedBlocks'](),_0x2be702,_0x20ac12['model']['schema']);_0x20ac12['model']['change'](()=>{for(const _0x3152b1 of _0x2f1217)_0x364805['markBlockFormat'](_0x3152b1,{'commandName':_0x42191a,'commandParams':[{'forceValue':!_0x5b484a['value']}],'formatGroupId':'blockName'},de(_0x3152b1));});};}function _0x152650(_0x4fda06){return()=>{const _0xa7aff0=function(_0x5c6f1e){let _0x5520cb=Array['from'](_0x5c6f1e);const _0x43f734=_0x5520cb['findIndex'](_0x539d41=>'listItem'!=_0x539d41['name']);return _0x43f734>-0x1&&(_0x5520cb=_0x5520cb['slice'](0x0,_0x43f734)),_0x5520cb;}(_0x20ac12['model']['document']['selection']['getSelectedBlocks']()),_0x5342a8=_0x20ac12['model']['createRange'](_0x20ac12['model']['createPositionAt'](_0xa7aff0[0x0],'before'),_0x20ac12['model']['createPositionAt'](_0xa7aff0[_0xa7aff0['length']-0x1],'end'));_0x20ac12['model']['change'](()=>{_0x364805['markBlockFormat'](_0x5342a8,{'commandName':_0x4fda06,'commandParams':[],'formatGroupId':'listIndent'},function(_0x16f60d){const _0x324156=new Set();for(const _0x33317f of _0x16f60d){let _0x3e6a46=_0x33317f['nextSibling'];for(;_0x3e6a46&&_0x3e6a46['getAttribute']('listIndent')>_0x33317f['getAttribute']('listIndent');)_0x324156['add'](_0x3e6a46),_0x3e6a46=_0x3e6a46['nextSibling'];}return Array['from'](_0x324156);}(_0xa7aff0));});};}_0x364805['enableCommand']('numberedList',_0x5dae24('numberedList')),_0x364805['enableCommand']('bulletedList',_0x5dae24('bulletedList')),_0x40b7fc&&_0x364805['enableCommand']('todoList',_0x5dae24('todoList')),_0x364805['enableCommand']('indentList',_0x152650('indentList')),_0x364805['enableCommand']('outdentList',_0x152650('outdentList')),_0x40b7fc&&_0x364805['enableCommand']('checkTodoList',()=>{const _0x47a564=_0x20ac12['commands']['get']('checkTodoList'),_0xbf845a=Array['from'](_0x47a564['_selectedElements']);_0xbf845a['filter'](_0x43cc44=>_0x43cc44['getAttribute']('todoListChecked')!=_0x47a564['value']),_0x20ac12['model']['change'](()=>{for(const _0x44cd3d of _0xbf845a)_0x364805['markBlockFormat'](_0x44cd3d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x47a564['value']}]});});}),_0x364805['descriptionFactory']['registerElementLabel']('listItem',_0x1d54ac=>At(_0x1898a,'ELEMENT_LIST_ITEM',_0x1d54ac)),_0x364805['descriptionFactory']['registerDescriptionCallback'](_0x1c8b94=>{if('formatBlock'!=_0x1c8b94['type']&&'formatInline'!=_0x1c8b94['type'])return;const {data:_0x14220a}=_0x1c8b94;if(_0x14220a){if('numberedList'==_0x14220a['commandName']||'bulletedList'==_0x14220a['commandName']||'todoList'==_0x14220a['commandName'])switch(_0x14220a['commandName']['replace']('List','')){case'bulleted':return _0x5c18ca(At(_0x1898a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5c18ca(At(_0x1898a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5c18ca(At(_0x1898a,'ELEMENT_TODO_LIST'));}if('indentList'==_0x14220a['commandName'])return{'type':'format','content':At(_0x1898a,'*Indent:*\x20%0',At(_0x1898a,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x14220a['commandName'])return{'type':'format','content':At(_0x1898a,'*Outdent:*\x20%0',At(_0x1898a,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x14220a['commandName'])return _0x14220a['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x1898a,'*Check\x20item*')}:{'type':'format','content':At(_0x1898a,'*Uncheck\x20item*')};}function _0x5c18ca(_0x90752){return{'type':'format','content':At(_0x1898a,'*Change\x20to:*\x20%0',_0x90752)};}});}}function he(_0x2ac333){const _0x4f42c8=_0x2ac333['getAttribute']('listIndent');if(0x0==_0x4f42c8)return _0x2ac333;let _0x3e417a=_0x2ac333;for(;_0x2ac333['previousSibling']&&_0x2ac333['previousSibling']['is']('element','listItem');){const _0x2258ee=_0x2ac333['previousSibling']['getAttribute']('listIndent');if(_0x2258ee==_0x4f42c8)_0x3e417a=_0x2ac333['previousSibling'];else{if(_0x2258ee<_0x4f42c8)break;}_0x2ac333=_0x2ac333['previousSibling'];}return _0x3e417a;}function de(_0xb86052){const _0x438ff6=[];if(_0xb86052['is']('element','listItem')&&_0xb86052['getAttribute']('listIndent')>0x0){let _0x44e792=_0xb86052['nextSibling'];for(;_0x44e792&&'listItem'==_0x44e792['name']&&_0x44e792['getAttribute']('listIndent')==_0xb86052['getAttribute']('listIndent');)_0x438ff6['push'](_0x44e792),_0x44e792=_0x44e792['nextSibling'];}return _0x438ff6;}class fe extends _0x35090c{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x52061c=this['editor']['config']['get']('list.properties'),_0x2d4ef3=this['editor']['plugins']['get']('TrackChangesEditing');_0x52061c['styles']&&_0x2d4ef3['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x52061c['reversed']&&_0x2d4ef3['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x52061c['startIndex']&&_0x2d4ef3['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2d4ef3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4a8738,_0x2eb780={}){const _0x4c082d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x779a37=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4c082d['markMultiRangeBlockFormat'](_0x779a37,{'commandName':'listStyle','commandParams':[{'type':_0x2eb780['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1251e7,_0x17b360={}){const _0x1e289f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f7785=this['_getSuggestionBlocks'](_0x5f2d72=>_0x5f2d72['is']('element','listItem')&&'numbered'===_0x5f2d72['getAttribute']('listType'));if(_0x3f7785['length']<0x1)return;const _0x4ac1c5=_0x3f7785['map'](_0x4db8c1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4db8c1,'before'),this['editor']['model']['createPositionAt'](_0x4db8c1,0x0)));this['editor']['model']['change'](()=>{_0x1e289f['markMultiRangeBlockFormat'](_0x4ac1c5,{'commandName':'listReversed','commandParams':[{'reversed':_0x17b360['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x59b30c,_0x11e930={}){const _0x45157c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x256ac5=this['_getSuggestionBlocks'](_0x4135a7=>_0x4135a7['is']('element','listItem')&&'numbered'===_0x4135a7['getAttribute']('listType'));if(_0x256ac5['length']<0x1)return;const _0x4bcb99=_0x256ac5['map'](_0x53f149=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x53f149,'before'),this['editor']['model']['createPositionAt'](_0x53f149,0x0)));this['editor']['model']['change'](()=>{_0x45157c['markMultiRangeBlockFormat'](_0x4bcb99,{'commandName':'listStart','commandParams':[{'startIndex':_0x11e930['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1ad18d){if('formatBlock'!=_0x1ad18d['type']&&'formatInline'!=_0x1ad18d['type'])return;const _0x29b19e=this['editor']['locale'],{data:_0x4e94a0}=_0x1ad18d;if(!_0x4e94a0)return;let _0x4b0ee4,_0x102fe4;switch(_0x4e94a0['commandName']){case'listStyle':_0x4b0ee4='*Change\x20to:*\x20%0',_0x102fe4={'type':'format','content':At(_0x29b19e,_0x4b0ee4,At(_0x29b19e,this['_getTranslationKeyForListStyle'](_0x4e94a0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4b0ee4=_0x4e94a0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x102fe4={'type':'format','content':At(_0x29b19e,_0x4b0ee4)};break;case'listStart':_0x4b0ee4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x102fe4={'type':'format','content':At(_0x29b19e,_0x4b0ee4,_0x4e94a0['commandParams'][0x0]['startIndex'])};}return _0x102fe4;}['_getSuggestionBlocksForListStyle'](){const _0x174bf6=this['editor']['plugins']['get']('LegacyListUtils');let _0x2ac72d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2ac72d[0x0]?.['is']('element','listItem')&&_0x2ac72d['unshift'](..._0x174bf6['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2ac72d[_0x2ac72d['length']-0x1]?.['is']('element','listItem')&&_0x2ac72d['push'](..._0x174bf6['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2ac72d=[...new Set(_0x2ac72d)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2ac72d=_0x2ac72d['filter'](_0x3a4ff1=>_0x3a4ff1['is']('element','listItem'))),_0x2ac72d;}['_getSuggestionBlocks'](_0x441bf8){const _0x14f1d0=this['editor']['plugins']['get']('LegacyListUtils');let _0x33d1b2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x441bf8)['map'](_0x5da4c4=>{const _0x19590f=this['editor']['model']['createPositionAt'](_0x5da4c4,0x0);return[..._0x14f1d0['getSiblingNodes'](_0x19590f,'backward'),..._0x14f1d0['getSiblingNodes'](_0x19590f,'forward')];})['flat']();return _0x33d1b2=[...new Set(_0x33d1b2)],_0x33d1b2;}['_getTranslationKeyForListStyle'](_0x21af3e){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x21af3e)||'default')['toUpperCase']()+'_LIST_'+_0x21af3e['toUpperCase']()['replace'](/-/g,'_');}}class ge extends _0x35090c{['afterInit'](){const _0x3ef1d3=this['editor'];if(!_0x3ef1d3['plugins']['has']('MediaEmbedEditing'))return;const _0x32fb27=_0x3ef1d3['plugins']['get']('TrackChangesEditing'),_0x62a177=_0x3ef1d3['locale'];_0x32fb27['enableCommand']('mediaEmbed'),_0x32fb27['descriptionFactory']['registerElementLabel']('media',_0x1fc0fa=>At(_0x62a177,'ELEMENT_MEDIA',_0x1fc0fa));}}class me extends _0x35090c{['afterInit'](){const _0x49a386=this['editor'];_0x49a386['plugins']['has']('MentionEditing')&&_0x49a386['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class Ee extends _0x35090c{['afterInit'](){const _0x32bd87=this['editor'];if(!_0x32bd87['plugins']['has']('MergeFieldsEditing'))return;const _0x24a518=_0x32bd87['plugins']['get']('TrackChangesEditing'),_0x31fd62=_0x32bd87['locale'];_0x24a518['enableCommand']('insertMergeField'),_0x24a518['enableCommand']('insertMergeFieldBlock'),_0x24a518['enableCommand']('insertMergeFieldImage'),_0x24a518['descriptionFactory']['registerElementLabel']('mergeField',_0x55c07d=>At(_0x31fd62,'ELEMENT_MERGE_FIELD',_0x55c07d)),_0x24a518['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x375623=>At(_0x31fd62,'ELEMENT_MERGE_FIELD',_0x375623)),_0x24a518['descriptionFactory']['registerDescriptionCallback'](_0x317555=>{if('insertion'!=_0x317555['type']&&'deletion'!=_0x317555['type'])return;const _0x99f1e9=_0x317555['getContainedElement']();if(null==_0x99f1e9)return;const _0x2edb62=_0x32bd87['plugins']['get']('MergeFieldsEditing');let _0x1933b6;switch(_0x2edb62['getMergeFieldType'](_0x99f1e9)){case null:return;case'image':{const _0x454398=_0x2edb62['unwrapAffixes'](_0x99f1e9['getAttribute']('src'));_0x1933b6=_0x2edb62['getLabel'](_0x454398)||_0x454398;break;}default:{const _0x55f323=_0x99f1e9['getAttribute']('id');_0x1933b6=_0x2edb62['getLabel'](_0x55f323)||_0x55f323;break;}}return'insertion'==_0x317555['type']?{'type':'insertion','content':At(_0x31fd62,'*Insert:*\x20%0','\x22'+_0x1933b6+'\x22\x20'+At(_0x31fd62,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':At(_0x31fd62,'*Remove:*\x20%0','\x22'+_0x1933b6+'\x22\x20'+At(_0x31fd62,'ELEMENT_MERGE_FIELD'))};});}}class Te extends _0x35090c{['afterInit'](){const _0x16ccc5=this['editor'],_0x56016b=_0x16ccc5['plugins']['get']('TrackChangesEditing');_0x16ccc5['plugins']['has']('MultiLevelList')&&(_0x56016b['enableDefaultAttributesIntegration']('multiLevelList'),_0x56016b['descriptionFactory']['registerDescriptionCallback'](_0x5c9914=>this['handleDescriptions'](_0x5c9914)));}['handleDescriptions'](_0x3b5ce8){const _0x1752ce=this['editor']['locale'],{data:_0x4df0f5}=_0x3b5ce8,_0x610edb={'type':'format','content':''};if(_0x4df0f5&&'listMarkerStyle'==_0x4df0f5['key']){if(!_0x4df0f5['oldValue'])return{'type':'format','content':At(_0x1752ce,'*Set\x20format:*\x20%0',At(_0x1752ce,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4df0f5['newValue']+')'};if(!_0x4df0f5['newValue']){let _0x5b0641=_0x3b5ce8['head'];for(;_0x5b0641;){if(_0x5b0641['data']&&'listType'==_0x5b0641['data']['key']&&_0x5b0641['data']['newValue'])return _0x610edb;_0x5b0641=_0x5b0641['next'];}return{'type':'format','content':At(_0x1752ce,'*Remove\x20format:*\x20%0',At(_0x1752ce,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4df0f5['oldValue']+')'};}}}}class _e extends _0x35090c{['afterInit'](){const _0x2be774=this['editor'];if(!_0x2be774['plugins']['has']('PageBreakEditing'))return;_0x2be774['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2207b3=_0x2be774['plugins']['get']('TrackChangesEditing'),_0x46cd0a=_0x2be774['locale'];_0x2207b3['descriptionFactory']['registerElementLabel']('pageBreak',_0x1e5b53=>At(_0x46cd0a,'ELEMENT_PAGE_BREAK',_0x1e5b53));}}class pe extends _0x35090c{['afterInit'](){const _0x103558=this['editor'];if(!_0x103558['plugins']['has']('Paragraph'))return;const _0x5c810a=_0x103558['locale'],_0x19e659=_0x103558['plugins']['get']('TrackChangesEditing');_0x19e659['descriptionFactory']['registerElementLabel']('paragraph',_0x37dbdb=>At(_0x5c810a,'ELEMENT_PARAGRAPH',_0x37dbdb)),_0x19e659['enableDefaultAttributesIntegration']('paragraph'),_0x19e659['enableCommand']('insertParagraph');const _0x4ae943=_0x19e659['descriptionFactory'];_0x4ae943['registerDescriptionCallback'](_0x58c002=>{if('insertion'!==_0x58c002['type'])return;const {start:_0x4d6a21,end:_0x2332c5}=_0x58c002['getFirstRange']();if(!_0x4d6a21['isTouching'](_0x2332c5)||!_0x4d6a21['nodeAfter'])return;const _0x193c22=_0x103558['model']['schema'],_0x63dbee=_0x4d6a21['nodeAfter'];return _0x193c22['isBlock'](_0x63dbee)&&!_0x193c22['isLimit'](_0x63dbee)&&_0x193c22['checkChild'](_0x63dbee,'$text')?{'type':'insertion','content':At(_0x5c810a,'*Insert:*\x20%0',_0x4ae943['getItemLabel'](_0x63dbee,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1533cf=this['editor'],_0x240038=_0x1533cf['locale'];_0x1533cf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a4772=>{if('formatBlock'!=_0x5a4772['type'])return;const {data:_0x3b2c52}=_0x5a4772;return _0x3b2c52&&'paragraph'==_0x3b2c52['commandName']?{'type':'format','content':At(_0x240038,'*Change\x20to:*\x20%0',At(_0x240038,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class Le extends _0x35090c{['afterInit'](){const _0x53fe78=this['editor'];_0x53fe78['commands']['get']('replaceSource')&&_0x53fe78['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class Ie extends _0x35090c{['afterInit'](){const _0x378f5d=this['editor'];if(!_0x378f5d['plugins']['has']('RemoveFormatEditing'))return;_0x378f5d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15de6c=this['editor'];_0x15de6c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a7cb1=>{if('formatBlock'!=_0x3a7cb1['type']&&'formatInline'!=_0x3a7cb1['type'])return;const {data:_0x493d1c}=_0x3a7cb1;return _0x493d1c&&'removeFormat'==_0x493d1c['commandName']?{'type':'format','content':At(_0x15de6c['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class be extends _0x35090c{['afterInit'](){const _0x1bdc04=this['editor'];if(!_0x1bdc04['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xba394e=_0x1bdc04['plugins']['get']('TrackChangesEditing');_0xba394e['enableCommand']('goToPreviousRestrictedEditingException'),_0xba394e['enableCommand']('goToNextRestrictedEditingException');const _0x4a7b27=_0x1bdc04['plugins']['get']('RestrictedEditingModeEditing');_0x4a7b27['enableCommand']('trackChanges'),_0x4a7b27['enableCommand']('acceptSuggestion'),_0x4a7b27['enableCommand']('discardSuggestion'),_0x4a7b27['enableCommand']('acceptAllSuggestions'),_0x4a7b27['enableCommand']('discardAllSuggestions'),_0x4a7b27['enableCommand']('acceptSelectedSuggestions'),_0x4a7b27['enableCommand']('discardSelectedSuggestions');}}class Ae extends _0x35090c{['afterInit'](){const _0x4a3337=this['editor'];if(!_0x4a3337['plugins']['has']('ShiftEnter'))return;const _0xd5688a=_0x4a3337['plugins']['get']('TrackChangesEditing');_0xd5688a['enableCommand']('shiftEnter'),_0xd5688a['descriptionFactory']['registerElementLabel']('softBreak',_0xc64930=>At(_0x4a3337['locale'],'ELEMENT_LINE_BREAK',_0xc64930));}}function ke(_0x305c45,_0x34c0bc,_0x4ae8ff){const _0x11803e=[];for(const _0x77b587 of _0x34c0bc['getItems']())_0x77b587['hasAttribute'](_0x305c45)&&_0x11803e['push'](_0x4ae8ff['createRangeOn'](_0x77b587));return _0x11803e;}class Ce extends _0x35090c{['afterInit'](){const _0x4d78f0=this['editor'],_0x203797=_0x4d78f0['plugins']['get']('TrackChangesEditing');_0x4d78f0['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x203797['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x37c715=this['editor'],_0x132a52=_0x37c715['model'],_0x1899c1=_0x37c715['locale'],_0x19028c=_0x37c715['plugins']['get']('TrackChangesEditing'),_0x593dec='restrictedEditingException',_0x23fa1f=_0x37c715['commands']['get'](_0x593dec);_0x19028c['enableCommand'](_0x593dec,(_0x494a7a,_0x2af4d6={})=>{const _0x1c0019=_0x132a52['document']['selection'];if(_0x1c0019['isCollapsed'])return void _0x494a7a(_0x2af4d6);const _0x54fa89=void 0x0!==_0x2af4d6['forceValue']?_0x2af4d6['forceValue']:!_0x23fa1f['value'];_0x132a52['change'](()=>{const _0x197faf=Array['from'](_0x1c0019['getRanges']());for(const _0x447cca of _0x197faf){const _0x585388=_0x54fa89?[_0x447cca]:ke(_0x593dec,_0x447cca,_0x132a52);for(const _0x432781 of _0x585388)_0x19028c['markInlineFormat'](_0x432781,{'commandName':_0x593dec,'commandParams':[{'forceValue':_0x54fa89}]});}});}),_0x19028c['descriptionFactory']['registerDescriptionCallback'](_0x224dac=>{if('formatBlock'!=_0x224dac['type']&&'formatInline'!=_0x224dac['type'])return;const {data:_0x245fbf}=_0x224dac;return _0x245fbf&&_0x245fbf['commandName']==_0x593dec?_0x245fbf['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x1899c1,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x1899c1,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x56b7b3=this['editor'],_0x199839=_0x56b7b3['locale'],_0x2f78d4=_0x56b7b3['plugins']['get']('TrackChangesEditing'),_0x1ade12='restrictedEditingExceptionBlock',_0x2df18e=this['editor']['commands']['get'](_0x1ade12);_0x2f78d4['enableCommand'](_0x1ade12,(_0xc3925a,_0xe6b71f={})=>{const _0x36e1c2=this['editor']['model']['document']['selection'],_0x4434d3=_0xe6b71f&&void 0x0!==_0xe6b71f['forceValue']?_0xe6b71f['forceValue']:!_0x2df18e['value'];let _0x1ee8ef=[];if(_0x4434d3){const _0x520459=Array['from'](_0x36e1c2['getSelectedBlocks']())['filter'](_0x1f6a0b=>function(_0x1e7d01){return!!_0x1e7d01['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x1f6a0b)||function(_0x2e4f84,_0x2fcad5){const _0x34c7c9=_0x2fcad5['createContext'](_0x2e4f84['parent']);if(!_0x2fcad5['checkChild'](_0x34c7c9,'restrictedEditingException'))return!0x1;if(!_0x2fcad5['checkChild'](_0x34c7c9['push']('restrictedEditingException'),_0x2e4f84))return!0x1;return!0x0;}(_0x1f6a0b,this['editor']['model']['schema']));_0x1ee8ef=Tt(_0x520459,_0x56b7b3['model']);}else{const _0x3161e7=Array['from'](_0x36e1c2['getSelectedBlocks']())['map'](_0x4db61d=>function(_0x431a11){let _0x4b8961=_0x431a11;for(;_0x4b8961['parent'];){if('restrictedEditingException'==_0x4b8961['parent']['name'])return _0x4b8961;_0x4b8961=_0x4b8961['parent'];}return null;}(_0x4db61d))['filter'](_0x1172a5=>!!_0x1172a5);_0x1ee8ef=Tt(_0x3161e7,_0x56b7b3['model']);}_0x56b7b3['model']['change'](()=>{for(const _0x27f2be of _0x1ee8ef)_0x2f78d4['markBlockFormat'](_0x27f2be,{'commandName':_0x1ade12,'commandParams':[{'forceValue':_0x4434d3}]});});}),_0x2f78d4['descriptionFactory']['registerDescriptionCallback'](_0x37c465=>{const {data:_0x1adcb7}=_0x37c465;if(_0x1adcb7&&_0x1adcb7['commandName']==_0x1ade12)return _0x1adcb7['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x199839,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x199839,'FORMAT_RESTRICTED_DISABLED')};});}}class ye extends _0x35090c{['afterInit'](){const _0x1d5883=this['editor'];if(!_0x1d5883['plugins']['has']('Style')||!_0x1d5883['plugins']['has']('DataSchema'))return;const _0x50c465=_0x1d5883['plugins']['get']('TrackChangesEditing'),_0x2c6d17=_0x1d5883['locale'],_0x1d1e8d=_0x1d5883['config']['get']('style')||{},_0x3d5a99=_0x1d5883['plugins']['get']('GeneralHtmlSupport'),_0x3a1375=_0x1d5883['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1d5883['plugins']['get']('DataSchema'),_0x1d1e8d['definitions']);_0x50c465['enableDefaultAttributesIntegration']('style');const _0x713feb=new Set();for(const _0x20afed of _0x3a1375['block']){const _0xe2bea4=_0x3d5a99['getGhsAttributeNameForElement'](_0x20afed['element']);_0x713feb['add'](_0xe2bea4);}const _0x25c944=new Set();for(const _0xad68b7 of _0x3a1375['inline']){const _0x3410b9=_0x3d5a99['getGhsAttributeNameForElement'](_0xad68b7['element']);_0x25c944['add'](_0x3410b9);for(const _0x16ce4b of _0xad68b7['ghsAttributes'])_0x25c944['add'](_0x16ce4b);}for(const _0x8322ca of _0x713feb)_0x50c465['descriptionFactory']['registerAttributeLabel'](_0x8322ca,At(_0x2c6d17,'FORMAT_STYLE'));for(const _0x564530 of _0x25c944)_0x50c465['descriptionFactory']['registerAttributeLabel'](_0x564530,At(_0x2c6d17,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x243d12=this['editor'],_0x1bdb20=_0x243d12['locale'];_0x243d12['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15a68b=>{if('formatBlock'!=_0x15a68b['type']&&'formatInline'!=_0x15a68b['type'])return;const {data:_0x1512fc}=_0x15a68b;return _0x1512fc&&'style'===_0x1512fc['commandName']?_0x1512fc['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x1bdb20,'*Set\x20format:*\x20%0',_0x1512fc['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':At(_0x1bdb20,'*Remove\x20format:*\x20%0',_0x1512fc['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ne extends _0x35090c{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xf37e79){super(_0xf37e79),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xa24db9=this['editor'],_0x49ada1=_0xa24db9['model']['document']['selection'];if(!_0xa24db9['plugins']['has']('TableEditing'))return;const _0x38fd60=_0xa24db9['locale'],_0x276ea6=_0xa24db9['plugins']['get']('TrackChangesEditing'),_0xaad5ec=_0xa24db9['plugins']['get']('TableUtils');_0x276ea6['descriptionFactory']['registerElementLabel']('table',_0x4c1d42=>At(_0x38fd60,'ELEMENT_TABLE',_0x4c1d42)),this['_setupColumnsRowsFixing'](),_0x276ea6['enableCommand']('insertTable'),_0x276ea6['enableCommand']('selectTableRow'),_0x276ea6['enableCommand']('selectTableColumn');for(const _0x15de8f of['insertTableRowAbove','insertTableRowBelow']){const _0x40bda4=_0xa24db9['commands']['get'](_0x15de8f);_0x276ea6['enableCommand'](_0x15de8f,_0x490d45=>{_0xa24db9['model']['change'](_0x1c4031=>{_0x490d45();const _0x127672='above'===_0x40bda4['order'],_0x5a654d=_0xaad5ec['getSelectionAffectedTableCells'](_0x49ada1),_0x28f86f=_0xaad5ec['getRowIndexes'](_0x5a654d),_0x41e9a5=_0x127672?_0x28f86f['first']-0x1:_0x28f86f['last']+0x1,_0x25c71b=_0x5a654d[0x0]['findAncestor']('table'),_0x1df8f5=_0xaad5ec['createTableWalker'](_0x25c71b,{'startRow':_0x41e9a5,'endRow':_0x41e9a5}),_0x171759=Array['from'](_0x1df8f5)['map'](_0x3d35ce=>_0x1c4031['createRangeOn'](_0x3d35ce['cell']));_0x276ea6['markMultiRangeInsertion'](_0x171759,'tableRow');});});}for(const _0x8b4578 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5f25d6=_0xa24db9['commands']['get'](_0x8b4578);_0x276ea6['enableCommand'](_0x8b4578,_0x59ea5a=>{_0xa24db9['model']['change'](_0x116490=>{_0x59ea5a();const _0x54d8d7='left'===_0x5f25d6['order'],_0x165594=_0xaad5ec['getSelectionAffectedTableCells'](_0x49ada1),_0x2ce39c=_0xaad5ec['getColumnIndexes'](_0x165594),_0x69e9bd=_0x54d8d7?_0x2ce39c['first']-0x1:_0x2ce39c['last']+0x1,_0x3faa04=_0x165594[0x0]['findAncestor']('table'),_0x2e758e=_0xaad5ec['createTableWalker'](_0x3faa04,{'startRow':0x0,'column':_0x69e9bd,'includeAllSlots':!0x1}),_0x2c926b=Array['from'](_0x2e758e)['map'](_0x3a9112=>_0x116490['createRangeOn'](_0x3a9112['cell']));_0x276ea6['markMultiRangeInsertion'](_0x2c926b,'tableColumn');});});}for(const _0x42de9e of['removeTableRow','removeTableColumn']){const _0x331071=_0x42de9e['substr'](0xb),_0x1bcba2=_0x331071['toLowerCase'](),_0x5b7d27=_0x1bcba2['substr'](0x0,0x3)+'span',_0x47c3d9='table'+_0x331071,_0xcc60e6='min'+_0x331071,_0x4d1abe='max'+_0x331071;_0x276ea6['enableCommand'](_0x42de9e,()=>{_0xa24db9['model']['change'](_0x38ba5d=>{const _0x42878d=_0xaad5ec['getSelectionAffectedTableCells'](_0x49ada1),_0x1e2b9f=_0x42878d[0x0]['findAncestor']('table');let _0x305f82;if('removeTableRow'==_0x42de9e){const _0x2a6de5=_0xaad5ec['getRowIndexes'](_0x42878d);_0x305f82={'startRow':_0x2a6de5['first'],'endRow':_0x2a6de5['last'],'includeAllSlots':!0x0};}else{const _0x57b3ea=_0xaad5ec['getColumnIndexes'](_0x42878d);_0x305f82={'startColumn':_0x57b3ea['first'],'endColumn':_0x57b3ea['last'],'includeAllSlots':!0x0};}const _0x4524e2=_0xaad5ec['createTableWalker'](_0x1e2b9f,_0x305f82),_0x49f7cb=Array['from'](_0x4524e2)['map'](({cell:_0x5dc417})=>_0x5dc417),_0x29ab7c=Re(_0x49f7cb['filter'](_0xcf1018=>_0xcf1018['hasAttribute'](_0x5b7d27))),_0x1223a4=Re(_0x49f7cb['filter'](_0x420c40=>!_0x420c40['hasAttribute'](_0x5b7d27)))['map'](_0x42ed80=>_0x38ba5d['createRangeOn'](_0x42ed80)),_0x57a3f1=_0x276ea6['markMultiRangeDeletion'](_0x1223a4,_0x47c3d9);if(_0x57a3f1&&('tableRow'==_0x57a3f1['subType']||'tableColumn'==_0x57a3f1['subType'])){const _0x571a15=this['_getSuggestionCoords'](_0x57a3f1);for(const _0x4b7c5b of _0x29ab7c){const _0xf6a5f0=_0x38ba5d['createRangeOn'](_0x4b7c5b),_0x9a1102=_0xaad5ec['getCellLocation'](_0x4b7c5b),_0x4825a7=_0x4b7c5b['getAttribute'](_0x5b7d27)-0x1,_0x50c598=_0x571a15[_0xcc60e6],_0x517a5d=_0x571a15[_0x4d1abe];_0x50c598<=_0x9a1102[_0x1bcba2]&&_0x9a1102[_0x1bcba2]+_0x4825a7<=_0x517a5d&&_0x57a3f1['addRange'](_0xf6a5f0);}}});});}function _0x5e84ce(_0x31993f){const _0x3511f8=Array['from'](_0x49ada1['getRanges']())['map'](_0x2cb842=>_0x5817c4['fromRange'](_0x2cb842));_0xa24db9['model']['change'](_0x168efe=>{const _0x2d4ff7=_0x168efe['batch'];_0x31993f=_0x31993f['filter'](_0x2a37aa=>'$graveyard'!=_0x2a37aa['root']['rootName']),_0x168efe['setSelection'](_0x31993f),_0xa24db9['commands']['get']('removeTableRow')['refresh'](),_0xa24db9['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xa24db9['model']['enqueueChange'](()=>{_0xa24db9['model']['enqueueChange'](_0x2d4ff7,_0x20a58a=>{const _0x2c2e56=_0x3511f8['filter'](_0xdaec8a=>'$graveyard'!=_0xdaec8a['root']['rootName']);_0x2c2e56['length']>0x0&&_0x20a58a['setSelection'](_0x2c2e56);for(const _0x3db2c9 of _0x3511f8)_0x3db2c9['detach']();});});});}function _0x4ca8a4(_0x479fe9){_0xa24db9['model']['change'](_0x5f4eae=>{const _0x1c7bdc=Array['from'](_0x49ada1['getRanges']())['map'](_0x5019ba=>_0x5817c4['fromRange'](_0x5019ba)),_0x6e3f69=[];for(const _0x2ae2ee of _0x479fe9)for(const _0x793b35 of _0x2ae2ee['getItems']({'shallow':!0x0}))_0x6e3f69['push'](_0x793b35);for(const _0x28c705 of _0x6e3f69)'$graveyard'!=_0x28c705['root']['rootName']&&(_0x5f4eae['setSelection'](_0x5f4eae['createPositionAt'](_0x28c705,0x0)),_0xa24db9['commands']['get']('removeTableColumn')['refresh'](),_0xa24db9['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5e5eba=_0x1c7bdc['filter'](_0x2c69f3=>'$graveyard'!=_0x2c69f3['root']['rootName']);_0x5e5eba['length']>0x0&&_0x5f4eae['setSelection'](_0x5e5eba);for(const _0x365234 of _0x1c7bdc)_0x365234['detach']();});}function _0x238fa4(_0x2e3cfe,_0x2fa515){return _0x2fa515['every'](_0x43c77c=>_0x2e3cfe['some'](_0x19d66b=>_0x19d66b['end']['isEqual'](_0x43c77c['start'])||_0x43c77c['end']['isEqual'](_0x19d66b['start'])));}function _0x1e0f38(_0x13ebc8,_0x5a9dcb){return!_0x13ebc8['some'](_0x3d9453=>_0x5a9dcb['some'](_0x18d5e1=>_0x3d9453['isIntersecting'](_0x18d5e1)))&&_0x13ebc8['some'](_0xd1a667=>_0x5a9dcb['some'](_0x3d77d5=>_0xd1a667['end']['isTouching'](_0x3d77d5['start'])));}_0x276ea6['descriptionFactory']['registerDescriptionCallback'](_0x4a3fed=>{if('insertion'!=_0x4a3fed['type']&&'deletion'!=_0x4a3fed['type'])return;const _0x122575=_0x4a3fed['getContainedElement']();if(null!=_0x122575&&_0x122575['is']('element','table')){if('insertion'==_0x4a3fed['type']){const _0x2f7150=_0x4a3fed['getItems']()['filter'](_0x5c098c=>_0x5c098c['is']('$textProxy'))['map'](_0x4b8240=>_0x4b8240['data']);if(_0x2f7150['length'])return{'type':'insertion','content':At(_0x38fd60,'*Insert:*\x20%0',At(_0x38fd60,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2f7150['join']('\x20')+'\x22'))};}if('deletion'==_0x4a3fed['type']){const _0x36b868=_0x4a3fed['getItems']()['filter'](_0x537758=>_0x537758['is']('$textProxy'))['map'](_0x329298=>_0x329298['data']);if(_0x36b868['length'])return{'type':'deletion','content':At(_0x38fd60,'*Remove:*\x20%0',At(_0x38fd60,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x36b868['join']('\x20')+'\x22'))};}}}),_0x276ea6['descriptionFactory']['registerDescriptionCallback'](_0x4cfb4a=>{if('tableRow'==_0x4cfb4a['subType']){const _0x51b591=_0x4cfb4a['getItems']()['filter'](_0x3104fe=>_0x3104fe['is']('$textProxy'))['map'](_0x2b7b48=>_0x2b7b48['data']),_0x31b4ce=this['_getSuggestionCoords'](_0x4cfb4a),_0x105012=_0x31b4ce['maxRow']-_0x31b4ce['minRow']+0x1;if('insertion'==_0x4cfb4a['type'])return _0x51b591['length']?{'type':'insertion','content':At(_0x38fd60,'*Insert:*\x20%0',At(_0x38fd60,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x105012,'\x22'+_0x51b591['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x38fd60,'*Insert:*\x20%0',At(_0x38fd60,'ELEMENT_TABLE_ROW',_0x105012))};if('deletion'==_0x4cfb4a['type'])return _0x51b591['length']?{'type':'deletion','content':At(_0x38fd60,'*Remove:*\x20%0',At(_0x38fd60,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x105012,'\x22'+_0x51b591['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x38fd60,'*Remove:*\x20%0',At(_0x38fd60,'ELEMENT_TABLE_ROW',_0x105012))};}if('tableColumn'==_0x4cfb4a['subType']){const _0x2a7486=_0x4cfb4a['getItems']()['filter'](_0x303233=>_0x303233['is']('$textProxy'))['map'](_0x21b8f4=>_0x21b8f4['data']),_0x2ff7a6=this['_getSuggestionCoords'](_0x4cfb4a),_0x1a225b=_0x2ff7a6['maxColumn']-_0x2ff7a6['minColumn']+0x1;if('insertion'==_0x4cfb4a['type'])return _0x2a7486['length']?{'type':'insertion','content':At(_0x38fd60,'*Insert:*\x20%0',At(_0x38fd60,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1a225b,'\x22'+_0x2a7486['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x38fd60,'*Insert:*\x20%0',At(_0x38fd60,'ELEMENT_TABLE_COLUMN',_0x1a225b))};if('deletion'==_0x4cfb4a['type'])return _0x2a7486['length']?{'type':'deletion','content':At(_0x38fd60,'*Remove:*\x20%0',At(_0x38fd60,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1a225b,'\x22'+_0x2a7486['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x38fd60,'*Remove:*\x20%0',At(_0x38fd60,'ELEMENT_TABLE_COLUMN',_0x1a225b))};}}),_0x276ea6['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5e84ce),_0x276ea6['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5e84ce),_0x276ea6['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4ca8a4),_0x276ea6['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4ca8a4),_0x276ea6['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x238fa4),_0x276ea6['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x238fa4),_0x276ea6['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1e0f38),_0x276ea6['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1e0f38);}['_acceptFormatSuggestionCallbackFactory'](){const _0x37dc31=this['editor'],_0x2f49c0=_0x37dc31['model']['document']['selection'];return(_0x5e148e,_0x206dd7)=>{_0x37dc31['model']['change'](_0x1980d2=>{const {commandName:_0x2870ad,commandParams:_0x1cce61}=_0x206dd7;let _0x59cce6=_0x5e148e[0x0]['end']['nodeBefore'];_0x1cce61&&_0x1cce61[0x0]&&!0x1===_0x1cce61[0x0]['forceValue']&&(_0x59cce6=_0x5e148e[0x0]['start']['nodeAfter']);const _0x12cbe1=_0x1980d2['createRangeIn'](_0x59cce6);if('$graveyard'==_0x12cbe1['root']['rootName'])return;const _0x494bec=Array['from'](_0x2f49c0['getRanges']())['map'](_0x5f2d6b=>_0x5817c4['fromRange'](_0x5f2d6b));_0x1980d2['setSelection'](_0x12cbe1),_0x37dc31['commands']['get'](_0x2870ad)['refresh'](),_0x1cce61['push']({'forceDefaultExecution':!0x0}),_0x37dc31['execute'](_0x2870ad,..._0x1cce61);const _0x15d7d9=_0x494bec['filter'](_0x17ed84=>'$graveyard'!=_0x17ed84['root']['rootName']);_0x15d7d9['length']>0x0&&_0x1980d2['setSelection'](_0x15d7d9);for(const _0x2f06cc of _0x494bec)_0x2f06cc['detach']();});};}['_getCoordsForCells'](_0x7112e5){const _0x2d3a0b=this['editor']['plugins']['get']('TableUtils');let _0x4371f4=Number['MAX_SAFE_INTEGER'],_0x1e17d0=Number['MIN_SAFE_INTEGER'],_0x439e15=Number['MAX_SAFE_INTEGER'],_0x125373=Number['MIN_SAFE_INTEGER'];for(const _0xa41f66 of _0x7112e5){if('$graveyard'==_0xa41f66['root']['rootName'])continue;const {row:_0x28e518,column:_0x18c0f9}=_0x2d3a0b['getCellLocation'](_0xa41f66),_0x12017f=_0xa41f66['hasAttribute']('rowspan')?_0xa41f66['getAttribute']('rowspan')-0x1:0x0,_0x343600=_0xa41f66['hasAttribute']('colspan')?_0xa41f66['getAttribute']('colspan')-0x1:0x0;_0x4371f4=_0x28e518<_0x4371f4?_0x28e518:_0x4371f4,_0x1e17d0=_0x28e518+_0x12017f>_0x1e17d0?_0x28e518+_0x12017f:_0x1e17d0,_0x439e15=_0x18c0f9<_0x439e15?_0x18c0f9:_0x439e15,_0x125373=_0x18c0f9+_0x343600>_0x125373?_0x18c0f9+_0x343600:_0x125373;}return{'minRow':_0x4371f4,'maxRow':_0x1e17d0,'minColumn':_0x439e15,'maxColumn':_0x125373};}['_setupColumnsRowsFixing'](){const _0x34f0e0=this['editor'],_0x2fc544=_0x34f0e0['plugins']['get']('TrackChangesEditing'),_0x563778=_0x34f0e0['plugins']['get']('TableUtils');_0x34f0e0['model']['document']['on']('change:data',()=>{const _0x2c2d79=Array['from'](_0x34f0e0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x28bf55,data:_0x1fa0ed}of _0x2c2d79){const {group:_0x2c7d20,id:_0x24c371,subType:_0x22c13f}=_0x4dc3a3(_0x28bf55);if('suggestion'!=_0x2c7d20)continue;if(null!=_0x1fa0ed['oldRange'])continue;const _0x4df739=_0x2fc544['getSuggestion'](_0x24c371);this['_tablePostFixingSubtypes']['includes'](_0x22c13f)&&this['_tableSuggestions']['add'](_0x4df739);}},{'priority':'low'});const _0x4977b6=(_0x48650d,_0x4098f1)=>{let _0x4d8150=!0x1;const _0x5834ef=_0x4098f1['createRangeOn'](_0x48650d),_0x308645=_0x48650d['findAncestor']('table'),_0x4f37d8=_0x563778['getCellLocation'](_0x48650d);for(const _0x59edd9 of this['_tableSuggestions']){const _0x27156a=_0x59edd9['subType'],_0x38c341=_0x27156a['startsWith']('tablePaste'),_0x3ee16d=_0x27156a['substr'](_0x38c341?0xa:0x5),_0x462280=_0x3ee16d['toLowerCase'](),_0x5cdb9e=_0x462280['substr'](0x0,0x3)+'span',_0x315ac4='min'+_0x3ee16d,_0xf85e10='max'+_0x3ee16d;if(!_0x59edd9['isInContent'])continue;if(_0x308645!=_0x59edd9['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x59edd9['isIntersectingWithRange'](_0x5834ef))continue;const _0x3dae6b=_0x48650d['hasAttribute'](_0x5cdb9e)?_0x48650d['getAttribute'](_0x5cdb9e)-0x1:0x0,_0x3c721c=this['_getSuggestionCoords'](_0x59edd9),_0x407239=_0x3c721c[_0x315ac4],_0x3b3eec=_0x3c721c[_0xf85e10];_0x407239<=_0x4f37d8[_0x462280]&&_0x4f37d8[_0x462280]+_0x3dae6b<=_0x3b3eec&&(_0x59edd9['addRange'](_0x5834ef),_0x4d8150=!0x0);}return _0x4d8150;};_0x34f0e0['model']['document']['registerPostFixer'](_0x301286=>{let _0x28f9a6=!0x1;for(const _0x157d3a of _0x34f0e0['model']['document']['differ']['getChanges']())if('insert'==_0x157d3a['type']){if('tableRow'==_0x157d3a['name']){for(const _0x322863 of _0x157d3a['position']['nodeAfter']['getChildren']())_0x28f9a6=_0x28f9a6||_0x4977b6(_0x322863,_0x301286);}else'tableCell'==_0x157d3a['name']&&(_0x28f9a6=_0x28f9a6||_0x4977b6(_0x157d3a['position']['nodeAfter'],_0x301286));}return _0x28f9a6;});}['_getSuggestionCoords'](_0x51f4e5){return this['_getCoordsForCells'](_0x51f4e5['getRanges']()['map'](_0xcd475e=>_0xcd475e['start']['nodeAfter']));}}function Re(_0xa6ad09){return Array['from'](new Set(_0xa6ad09)['values']());}class Se extends _0x35090c{static get['requires'](){return[Ne];}['afterInit'](){const _0x31396c=this['editor'],_0x440be9=_0x31396c['model']['document']['selection'],_0x71bcec=_0x31396c['locale'];if(!_0x31396c['plugins']['has']('TableEditing'))return;const _0x2ff2f1=_0x31396c['plugins']['get']('TrackChangesEditing'),_0x4c3f2d=_0x31396c['plugins']['get']('TableUtils'),_0x4c7e3d=_0x31396c['plugins']['get'](Ne);_0x4c7e3d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2ff2f1['enableCommand']('mergeTableCells',()=>{const _0x3a0930=_0x4c3f2d['getSelectionAffectedTableCells'](_0x31396c['model']['document']['selection']);_0x31396c['model']['change'](()=>{_0x2ff2f1['markMultiRangeBlockFormat'](_0x3a0930,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x31396c['commands']['get']('mergeTableCells')['on']('execute',(_0x49ab9d,_0xe640e0)=>{_0x31396c['commands']['get']('trackChanges')['value']&&(_0xe640e0['length']>0x0&&_0xe640e0[_0xe640e0['length']-0x1]&&_0xe640e0[_0xe640e0['length']-0x1]['forceDefaultExecution']||_0x2ff2f1['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x49ab9d['stop']());},{'priority':'highest'});for(const _0x5b8ff9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x128ce6=_0x31396c['commands']['get'](_0x5b8ff9);_0x2ff2f1['enableCommand'](_0x5b8ff9,()=>{const _0x1fba3a=_0x31396c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x42fe0d=>_0x42fe0d['is']('element','tableCell')),_0x596d17=_0x128ce6['value'];_0x31396c['model']['change'](()=>{_0x2ff2f1['markMultiRangeBlockFormat']([_0x1fba3a,_0x596d17],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5af2df of['splitTableCellVertically','splitTableCellHorizontally']){const _0x275562=_0x31396c['commands']['get'](_0x5af2df);_0x2ff2f1['enableCommand'](_0x5af2df,()=>{const _0x1644fb=_0x4c3f2d['getSelectionAffectedTableCells'](_0x31396c['model']['document']['selection'])[0x0],_0x31a97b=_0x1644fb['findAncestor']('table'),{column:_0x4e2571,row:_0x1909b3}=_0x4c3f2d['getCellLocation'](_0x1644fb);let _0x1abd54=[];if('horizontally'==_0x275562['direction']){const _0x4a27bc=_0x4c3f2d['createTableWalker'](_0x31a97b,{'startRow':_0x1909b3,'endRow':_0x1909b3,'includeAllSlots':!0x0});_0x1abd54=Array['from'](_0x4a27bc)['map'](_0x1063fc=>_0x1063fc['cell']);}else{const _0x456510=_0x4c3f2d['createTableWalker'](_0x31a97b,{'column':_0x4e2571,'includeAllSlots':!0x0});_0x1abd54=Array['from'](_0x456510)['map'](_0x3f33cd=>_0x3f33cd['cell']);}_0x31396c['model']['change'](_0x5aa3fe=>{_0x2ff2f1['markBlockFormat'](_0x5aa3fe['createRangeOn'](_0x1644fb),{'commandName':_0x5af2df,'commandParams':[]},_0x1abd54,_0x5af2df);});});}_0x2ff2f1['descriptionFactory']['registerDescriptionCallback'](_0x3d9626=>{if('formatBlock'!=_0x3d9626['type']&&'formatInline'!=_0x3d9626['type'])return;const {data:_0x4de460}=_0x3d9626;return _0x4de460&&'mergeTableCells'==_0x4de460['commandName']?{'type':'format','content':At(_0x71bcec,'*Merge\x20cells*')}:void 0x0;}),_0x2ff2f1['descriptionFactory']['registerDescriptionCallback'](_0x19689b=>{if('formatBlock'!=_0x19689b['type']&&'formatInline'!=_0x19689b['type'])return;const {data:_0x2711f0}=_0x19689b;return _0x2711f0?'splitTableCellVertically'==_0x2711f0['commandName']?{'type':'format','content':At(_0x71bcec,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2711f0['commandName']?{'type':'format','content':At(_0x71bcec,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4713d6=_0x4c7e3d['_acceptFormatSuggestionCallbackFactory']();for(const _0x45222f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2ff2f1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x45222f,'accept',_0x4713d6);for(const _0x2fc2fa of['splitTableCellVertically','splitTableCellHorizontally'])_0x2ff2f1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2fc2fa,'accept',_0x4713d6);_0x2ff2f1['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2f3ed7=>{_0x31396c['model']['change'](_0x1bc7da=>{const _0xc11003=Array['from'](_0x440be9['getRanges']())['map'](_0x5a3436=>_0x5817c4['fromRange'](_0x5a3436));_0x1bc7da['setSelection'](_0x2f3ed7),_0x31396c['commands']['get']('mergeTableCells')['refresh'](),_0x31396c['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x50333f=_0xc11003['filter'](_0x41be0a=>'$graveyard'!=_0x41be0a['root']['rootName']);_0x50333f['length']>0x0&&_0x1bc7da['setSelection'](_0x50333f);for(const _0x13bce7 of _0xc11003)_0x13bce7['detach']();});});for(const _0x24c85f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x57d37c=_0x31396c['commands']['get'](_0x24c85f);_0x57d37c['on']('set:isEnabled',(_0x49d548,_0x3c6394,_0xb7877)=>{if(_0xb7877){const _0x3f836c=_0x31396c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x537c0a=>_0x537c0a['is']('element','tableCell'));this['_areMergableCells'](_0x57d37c['value'],_0x3f836c)||(_0x49d548['return']=!0x1,_0x49d548['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1c3369=this['editor']['commands']['get']('mergeTableCells'),_0x4221a0=this['editor']['plugins']['get']('TableUtils');if(!_0x1c3369['isEnabled'])return!0x1;const _0x24073f=_0x4221a0['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5752bd of _0x24073f)for(const _0x3e3929 of _0x24073f)if(_0x5752bd!=_0x3e3929&&!this['_areMergableCells'](_0x5752bd,_0x3e3929))return!0x1;return!0x0;}['_areMergableCells'](_0xd6ea5b,_0x56157d){const _0x22bb69=this['editor']['plugins']['get']('TrackChangesEditing'),_0x247bca=this['editor']['model']['createRangeOn'](_0xd6ea5b),_0x1b7370=this['editor']['model']['createRangeOn'](_0x56157d),_0x1e412c=new Set(),_0x43c5e6=new Set();for(const _0x447b01 of _0x22bb69['getSuggestions']())if(('insertion'==_0x447b01['type']||'deletion'==_0x447b01['type']||'mergeTableCells'==_0x447b01['subType'])&&_0x447b01['isInContent']){for(const _0x19c83b of _0x447b01['getRanges']())_0x19c83b['containsRange'](_0x247bca,!0x0)&&_0x1e412c['add'](_0x447b01['type']+':'+_0x447b01['author']['id']),_0x19c83b['containsRange'](_0x1b7370,!0x0)&&_0x43c5e6['add'](_0x447b01['type']+':'+_0x447b01['author']['id']);}if(_0x1e412c['size']!=_0x43c5e6['size'])return!0x1;for(const _0x20d038 of _0x1e412c)if(!_0x43c5e6['has'](_0x20d038))return!0x1;return!0x0;}}class Me extends _0x35090c{static get['requires'](){return[Ne];}['afterInit'](){const _0x73de7d=this['editor'];if(!_0x73de7d['plugins']['has']('TableEditing'))return;const _0x38eb40=_0x73de7d['locale'],_0x5b8fe=_0x73de7d['plugins']['get']('TrackChangesEditing');_0x5b8fe['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5b8fe['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5b8fe['descriptionFactory']['registerAttributeLabel']('headingRows',At(_0x38eb40,'FORMAT_HEADER_ROW')),_0x5b8fe['descriptionFactory']['registerAttributeLabel']('headingColumns',At(_0x38eb40,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x148828=this['editor']['plugins']['get']('TrackChangesEditing'),_0x223cbc=this['editor']['plugins']['get'](Ne)['_acceptFormatSuggestionCallbackFactory']();_0x148828['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x223cbc),_0x148828['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x223cbc),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x41ffb3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e0ef9=this['editor']['plugins']['get']('TableUtils');function _0x1b3d9a({showActiveMarker:_0x141864=!0x0,setDataAttribute:_0x1e4164=!0x0}={}){return(_0x6ea2c3,_0x12e04b,_0x16bfb6)=>{const {type:_0x531941,id:_0x223d5a}=_0x4dc3a3(_0x12e04b['markerName']);if(!_0x41ffb3['hasSuggestion'](_0x223d5a))return;const _0x21ac0e=_0x41ffb3['getSuggestion'](_0x223d5a),_0x13640c=_0x21ac0e['data'];if('formatBlock'!=_0x21ac0e['type']||!_0x13640c||'setTableColumnHeader'!=_0x13640c['commandName'])return;if(_0x12e04b['item'])return void _0x6ea2c3['stop']();if(!_0x16bfb6['consumable']['consume'](_0x12e04b['markerRange'],_0x6ea2c3['name']))return;const _0x5353bc=_0x12e04b['markerRange']['start']['nodeAfter'],_0x321be6=_0x12e04b['markerRange']['end']['nodeBefore'],_0x5e5524=_0x5353bc['parent']['parent'],{column:_0x1a5f80}=_0x1e0ef9['getCellLocation'](_0x5353bc),{column:_0x4a056d}=_0x1e0ef9['getCellLocation'](_0x321be6);for(let _0x2cc0de=_0x1a5f80;_0x2cc0de<=_0x4a056d;_0x2cc0de++){const _0xd400a5=_0x1e0ef9['createTableWalker'](_0x5e5524,{'column':_0x2cc0de,'includeAllSlots':!0x1});for(const _0x51c535 of _0xd400a5){const _0x288579=_0x51c535['cell'],_0x2a8fee=_0x16bfb6['mapper']['toViewElement'](_0x288579);_0x16bfb6['writer']['addClass']('ck-suggestion-marker-'+_0x531941,_0x2a8fee),_0x1e4164&&_0x16bfb6['writer']['setAttribute']('data-suggestion',_0x223d5a,_0x2a8fee),_0x16bfb6['mapper']['bindElementToMarker'](_0x2a8fee,_0x12e04b['markerName']),_0x141864&&(_0x41ffb3['activeMarkers']['includes'](_0x12e04b['markerName'])?_0x16bfb6['writer']['addClass']('ck-suggestion-marker--active',_0x2a8fee):_0x16bfb6['writer']['removeClass']('ck-suggestion-marker--active',_0x2a8fee));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1b3d9a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x47217b,_0x41bbfd,_0x27b8d8)=>{_0x27b8d8['options']['showSuggestionHighlights']&&_0x1b3d9a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x47217b,_0x41bbfd,_0x27b8d8);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x34bdf5,_0x4dc769,_0x12674d)=>{const {type:_0x331218,id:_0x5527b7}=_0x4dc3a3(_0x4dc769['markerName']);if(!_0x41ffb3['hasSuggestion'](_0x5527b7))return;const _0x31a15d=_0x41ffb3['getSuggestion'](_0x5527b7),_0x3f67e2=_0x31a15d['data'];if('formatBlock'!=_0x31a15d['type']||!_0x3f67e2||'setTableColumnHeader'!=_0x3f67e2['commandName'])return;const _0x7365f2=_0x12674d['mapper']['markerNameToElements'](_0x4dc769['markerName']);if(_0x7365f2){for(const _0x207d46 of _0x7365f2)_0x12674d['writer']['removeClass']('ck-suggestion-marker-'+_0x331218,_0x207d46),_0x12674d['writer']['removeClass']('ck-suggestion-marker--active',_0x207d46),_0x12674d['writer']['removeAttribute']('data-suggestion',_0x207d46),_0x12674d['mapper']['unbindElementFromMarkerName'](_0x207d46,_0x4dc769['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x1140f4=this['editor'],_0x1df175=_0x1140f4['locale'];function _0x2aa3cd(_0x465ac9){return{'type':'format','content':At(_0x1df175,'*Format:*\x20%0',_0x465ac9)};}_0x1140f4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d7889=>{if('formatBlock'!=_0x1d7889['type'])return;const {data:_0x46385f}=_0x1d7889;if(_0x46385f){if('setTableRowHeader'==_0x46385f['commandName']){const _0x411cb8=_0x46385f['commandParams'][0x0]['forceValue'];return _0x2aa3cd(At(_0x1df175,_0x411cb8?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x46385f['commandName']){const _0x4ab930=_0x46385f['commandParams'][0x0]['forceValue'];return _0x2aa3cd(At(_0x1df175,_0x4ab930?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Oe extends _0x35090c{static get['requires'](){return[Ne];}['afterInit'](){const _0x3dd7ca=this['editor'];if(!_0x3dd7ca['plugins']['has']('TableEditing')||!_0x3dd7ca['config']['get']('table.enableFooters'))return;const _0x189a77=_0x3dd7ca['locale'],_0x1ed143=_0x3dd7ca['plugins']['get']('TrackChangesEditing');_0x1ed143['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x1ed143['descriptionFactory']['registerAttributeLabel']('footerRows',At(_0x189a77,'FORMAT_FOOTER_ROW'));}}class we extends _0x35090c{['afterInit'](){const _0x118ec0=this['editor'],_0x441752=_0x118ec0['locale'],_0x74a10d=_0x118ec0['plugins']['get']('TrackChangesEditing');function _0x11d658(_0x4171a5){return{'type':'format','content':''+At(_0x441752,'*Set\x20table\x20type:*\x20%0',_0x4171a5)};}_0x118ec0['plugins']['has']('TableLayout')&&(_0x74a10d['enableCommand']('insertTableLayout'),_0x74a10d['enableDefaultAttributesIntegration']('tableType'),_0x74a10d['descriptionFactory']['registerElementLabel'](_0x35a89b=>_0x35a89b['is']('element','table')&&'layout'===_0x35a89b['getAttribute']('tableType'),_0x241a33=>At(_0x441752,'ELEMENT_LAYOUT_TABLE',_0x241a33)),_0x74a10d['descriptionFactory']['registerDescriptionCallback'](_0x7ed990=>{const {data:_0x41d726}=_0x7ed990;if(_0x41d726&&'tableType'==_0x41d726['key'])switch(_0x41d726['newValue']){case'layout':return _0x11d658(At(_0x441752,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x11d658(At(_0x441752,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Fe=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Be['map'](_0x34e04a=>[_0x34e04a,null]));class De extends _0x35090c{static get['requires'](){return[Ne];}['afterInit'](){const _0x6a30a3=this['editor'];if(!_0x6a30a3['plugins']['has']('TableClipboard'))return;const _0x384754=_0x6a30a3['plugins']['get']('TrackChangesEditing'),_0x296a8a=_0x6a30a3['plugins']['get']('TableUtils'),_0x504e41=_0x6a30a3['plugins']['get'](Ne),_0x3f1d96=_0x6a30a3['plugins']['get']('TableClipboard'),_0x1295e4=_0x6a30a3['plugins']['get']('TableSelection'),_0x544cf5=_0x6a30a3['plugins']['get'](ut);_0x504e41['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x6a30a3['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x6a30a3['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x294806=null,_0x3d93e9=!0x1;_0x544cf5['on']('contentInsertion',(_0x43549d,_0x2316e2)=>{_0x3d93e9='paste'===_0x2316e2['method'];}),_0x6a30a3['model']['on']('insertContent',(_0x514254,_0x58fa27)=>{if(!_0x3d93e9&&null===_0x1295e4['getSelectedTableCells']())return;const [_0xb40365,_0x1a2379]=_0x58fa27,_0x155150=_0x58fa27[_0x58fa27['length']-0x1];_0x155150&&_0x155150['forceDefaultExecution']||_0x384754['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x64d8a1,_0x4e675b,_0x217f2c,_0x10d155,_0x1f6936){if(_0x4e675b&&!_0x4e675b['is']('documentSelection'))return!0x1;const _0x314956=_0x1f6936['getTableIfOnlyTableInContent'](_0x64d8a1,_0x217f2c);if(!_0x314956||!xe(_0x314956,void 0x0,_0x10d155))return!0x1;const _0x11ec7c=_0x10d155['getSelectionAffectedTableCells'](_0x217f2c['document']['selection']);if(!_0x11ec7c['length'])return!0x1;const _0x1db1cc=_0x11ec7c[0x0]['findAncestor']('table'),_0x4a13c3=_0x10d155['getRowIndexes'](_0x11ec7c),_0x34a789=_0x10d155['getColumnIndexes'](_0x11ec7c),_0x5534d4={'startRow':_0x4a13c3['first'],'endRow':_0x4a13c3['last'],'startColumn':_0x34a789['first'],'endColumn':_0x34a789['last']};return 0x1==_0x11ec7c['length']&&(_0x5534d4['endRow']+=_0x10d155['getRows'](_0x314956)-0x1,_0x5534d4['endColumn']+=_0x10d155['getColumns'](_0x314956)-0x1),xe(_0x1db1cc,_0x5534d4,_0x10d155);}(_0xb40365,_0x1a2379,_0x6a30a3['model'],_0x296a8a,_0x3f1d96)&&(_0x514254['stop'](),_0x294806={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x6a30a3['model']['change'](()=>{_0x6a30a3['model']['insertContent'](_0x58fa27[0x0],_0x58fa27[0x1],_0x58fa27[0x2],{'forceDefaultExecution':!0x0});const _0x13d54e=_0x5b022c(),{rowInsertionRanges:_0x12658f,columnInsertionRanges:_0x4fae9c,insertionRanges:_0x56ca20,deletionRanges:_0x181372,cells:_0x4ffbbf}=_0x294806;_0x12658f['length']&&_0x384754['markMultiRangeInsertion'](_0x12658f,'tablePasteRow',{'tablePasteChainId':_0x13d54e}),_0x4fae9c['length']&&_0x384754['markMultiRangeInsertion'](_0x4fae9c,'tablePasteColumn',{'tablePasteChainId':_0x13d54e}),_0x56ca20['length']&&(_0x384754['markMultiRangeInsertion'](_0x56ca20,'tablePaste',{'tablePasteChainId':_0x13d54e,'skipNestingCheck':!0x0}),_0x56ca20['forEach'](_0x176b68=>_0x176b68['detach']?.())),_0x181372['length']&&(_0x384754['markMultiRangeDeletion'](_0x181372,'tablePaste',{'tablePasteChainId':_0x13d54e,'skipNestingCheck':!0x0}),_0x181372['forEach'](_0x2ef575=>_0x2ef575['detach']?.()));const _0x1f037c=_0x384754['markMultiRangeBlockFormat'](_0x4ffbbf['map'](({element:_0xb5d1a3})=>_0xb5d1a3),{'formatGroupId':_0x5b022c()},[],'tablePasteCell',{'tablePasteChainId':_0x13d54e});if(_0x1f037c){const _0x37f9db=_0x1f037c['getMarkers'](),_0x1349bd=[];for(const {element:_0x5ac987,attributes:_0x51ddd0}of _0x4ffbbf){if(!_0x51ddd0)continue;const _0x2410a4=_0x6a30a3['model']['createRangeOn'](_0x5ac987),_0x2952cb=_0x37f9db['find'](_0x32a6ed=>_0x32a6ed['getRange']()['isEqual'](_0x2410a4));_0x2952cb&&_0x1349bd['push']([_0x2952cb['name'],_0x51ddd0]);}_0x1349bd['length']&&_0x1f037c['setAttribute']('markerAttributes',Object['fromEntries'](_0x1349bd));}_0x294806=null;}));},{'priority':_0x581032['high']+0xa}),_0x544cf5['on']('contentInsertion',()=>{_0x3d93e9=!0x1;},{'priority':'lowest'}),_0x6a30a3['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3f011a,_0x5af484)=>{const [_0x5380d9,_0x839681,,_0x3ce425]=_0x5af484;if(!_0x294806)return;_0x3f011a['stop']();const _0x209f84=_0x5380d9['cell'],_0x1dad07=_0x839681,_0x437adc=ve(_0x209f84),_0x5017d8=ve(_0x1dad07);_0x3f011a['return']=_0x209f84;let _0x556958=null,_0x5371e0=null;if(_0x5017d8||_0x437adc){if(_0x437adc&&!_0x5017d8){_0x3ce425['remove'](_0x209f84['getChild'](0x0));for(const _0x20bc6c of Array['from'](_0x1dad07['getChildren']()))_0x3ce425['insert'](_0x20bc6c,_0x209f84,'end');const _0x1fdad3=_0x294806['rowInsertionIndexes']['includes'](_0x5380d9['row']),_0x2bfa43=_0x294806['columnInsertionIndexes']['includes'](_0x5380d9['column']);_0x1fdad3||_0x2bfa43||(_0x556958=_0x5817c4['fromRange'](_0x3ce425['createRangeIn'](_0x209f84)));}else _0x5017d8&&!_0x437adc&&(_0x5371e0=_0x3ce425['createRangeIn'](_0x209f84));}else{const _0x7fd1=_0x3ce425['createElement']('tableCellSuggestion'),_0x5c3c6c=_0x3ce425['createElement']('tableCellSuggestion');_0x3ce425['wrap'](_0x3ce425['createRangeIn'](_0x209f84),_0x5c3c6c),_0x3ce425['insert'](_0x7fd1,_0x209f84,0x0);for(const _0x1b0e74 of Array['from'](_0x1dad07['getChildren']()))_0x3ce425['insert'](_0x1b0e74,_0x7fd1,'end');_0x556958=_0x5817c4['fromRange'](_0x3ce425['createRangeOn'](_0x7fd1)),_0x5371e0=_0x5817c4['fromRange'](_0x3ce425['createRangeOn'](_0x5c3c6c));}const _0x31d3ab=Array['from'](_0x1dad07['getAttributes']())['filter'](([_0x41097d])=>Be['includes'](_0x41097d));_0x294806['cells']['push']({'element':_0x209f84,'attributes':_0x31d3ab['length']?Object['fromEntries'](_0x31d3ab):null}),_0x556958&&_0x294806['insertionRanges']['push'](_0x556958),_0x5371e0&&_0x294806['deletionRanges']['push'](_0x5371e0);},{'priority':'high'}),_0x296a8a['on']('insertColumns',(_0x33fa53,_0x5cf71d)=>{const [_0x306af9,_0x1fca8f={}]=_0x5cf71d;if(!_0x294806)return;const _0x399cde=_0x1fca8f['at']||0x0,_0x4b8697=_0x1fca8f['columns']||0x1;_0x294806['columnInsertionIndexes']=new Array(_0x4b8697)['fill'](_0x399cde)['map']((_0x26dc59,_0x31dad3)=>_0x26dc59+_0x31dad3);for(const {cell:_0xf78267}of _0x296a8a['createTableWalker'](_0x306af9,{'startColumn':_0x399cde,'endColumn':_0x399cde+_0x4b8697-0x1}))_0x294806['columnInsertionRanges']['push'](_0x6a30a3['model']['createRangeOn'](_0xf78267));},{'priority':'low'}),_0x296a8a['on']('insertRows',(_0x138ad0,_0x142cca)=>{const [_0x205cd6,_0x3c8fd8={}]=_0x142cca;if(!_0x294806)return;const _0x25529c=_0x3c8fd8['at']||0x0,_0x52dda9=_0x3c8fd8['rows']||0x1;_0x294806['rowInsertionIndexes']=new Array(_0x52dda9)['fill'](_0x25529c)['map']((_0x4e374c,_0x15d3c1)=>_0x4e374c+_0x15d3c1);for(const {cell:_0x45ee07}of _0x296a8a['createTableWalker'](_0x205cd6,{'startRow':_0x25529c,'endRow':_0x25529c+_0x52dda9-0x1}))_0x294806['rowInsertionRanges']['push'](_0x6a30a3['model']['createRangeOn'](_0x45ee07));},{'priority':'low'}),_0x384754['descriptionFactory']['registerDescriptionCallback'](_0x13554f=>{if(_0x13554f['subType']&&_0x13554f['subType']['startsWith']('tablePaste'))return _0x13554f['previous']?{}:{'type':'insertion','content':At(_0x6a30a3['locale'],'*Replace\x20table\x20cells*')};});const _0x53c6f3=()=>!0x1;for(const _0x3958f2 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x384754['_suggestionFactory']['registerCustomCallback']('insertion',_0x3958f2,'join',_0x53c6f3),_0x384754['_suggestionFactory']['registerCustomCallback']('deletion',_0x3958f2,'join',_0x53c6f3),_0x384754['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3958f2,'join',_0x53c6f3);_0x384754['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x53c6f3),_0x384754['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x48f861,_0x934b10,_0x23bdae)=>{const _0xaf52e6=_0x48f861['map'](_0x1a74f5=>_0x1a74f5['getContainedElement']())['filter'](_0x5e2654=>_0x5e2654),_0x50717f=new Map(_0xaf52e6['map'](_0x5dccd3=>[_0x5dccd3,null]));if(_0x294806){for(const {element:_0x2e2d73,attributes:_0x89d1f8}of _0x294806['cells'])_0x89d1f8&&_0x50717f['set'](_0x2e2d73,_0x89d1f8);}else{if(_0x23bdae&&_0x23bdae['markerAttributes'])for(const [_0x250721,_0x40cb68]of Object['entries'](_0x23bdae['markerAttributes'])){const _0x136546=_0x6a30a3['model']['markers']['get'](_0x250721),_0x466943=_0x136546?_0x136546['getRange']()['getContainedElement']():null;_0x466943&&_0x50717f['set'](_0x466943,_0x40cb68);}}_0x6a30a3['model']['change'](_0x141631=>{for(const [_0x4a8b43,_0x40ca46]of _0x50717f)_0x141631['setAttributes']({...Fe,..._0x40ca46},_0x4a8b43);});});const _0x275a6e=(_0x902902,_0x4a7b86)=>{_0x384754['_suggestionFactory']['registerCustomCallback'](_0x902902,'tablePaste',_0x4a7b86,(_0x4d43ba,_0x33370d,_0x3bb409)=>{_0x6a30a3['model']['change'](_0x527345=>{const _0x4a9265=[];for(const _0x315c02 of _0x4d43ba){const _0x2b879e=_0x315c02['start']['nodeAfter'];_0x2b879e['is']('element','tableCellSuggestion')&&_0x4a9265['push'](_0x2b879e);}_0x384754['_suggestionFactory']['getSuggestionCallback'](_0x902902,null,_0x4a7b86)(_0x4d43ba,_0x33370d,_0x3bb409);for(const _0x486cf7 of _0x4a9265)'$graveyard'!=_0x486cf7['root']['rootName']&&_0x527345['unwrap'](_0x486cf7);});});};_0x275a6e('insertion','accept'),_0x275a6e('insertion','discard'),_0x275a6e('deletion','accept'),_0x275a6e('deletion','discard'),_0x384754['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x169800=>{const _0x3f2415=_0x169800['map'](_0x48b65d=>_0x48b65d['getContainedElement']()),_0x4a298e=_0x3f2415[0x0]['findAncestor']('table'),{minRow:_0x256833,maxRow:_0x8b5c27}=_0x504e41['_getCoordsForCells'](_0x3f2415);_0x296a8a['removeRows'](_0x4a298e,{'at':_0x256833,'rows':_0x8b5c27-_0x256833+0x1});}),_0x384754['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5ac990=>{const _0x4ed4df=_0x5ac990['map'](_0x297065=>_0x297065['getContainedElement']()),_0x495c18=_0x4ed4df[0x0]['findAncestor']('table'),{minColumn:_0xc8a13f,maxColumn:_0x538026}=_0x504e41['_getCoordsForCells'](_0x4ed4df);_0x296a8a['removeColumns'](_0x495c18,{'at':_0xc8a13f,'columns':_0x538026-_0xc8a13f+0x1});});const _0xfbfa24=(_0x2c39b7,_0x2b5943)=>{if(!_0x2b5943['subType']||!_0x2b5943['subType']['startsWith']('tablePaste'))return;const _0x32b6f2=_0x2b5943['attributes']['tablePasteChainId'],_0x65234c=_0x384754['getSuggestions']()['filter'](_0x122dcc=>_0x122dcc['isInContent']&&_0x122dcc['attributes']&&_0x122dcc['attributes']['tablePasteChainId']==_0x32b6f2);_0x65234c['length']&&_0x2b5943['getAllAdjacentSuggestions']()['length']!=_0x65234c['length']&&_0x65234c['reduce']((_0x436b7e,_0x234231)=>(_0x436b7e['next']=_0x234231,_0x234231['previous']=_0x436b7e,_0x234231));};function _0x1212e3(_0x4204e6,_0x1a9e14=!0x0){const {id:_0x33c9f9,authorId:_0x37c16f}=_0x4dc3a3(_0x4204e6['markerName']),_0x2d32d3=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xbf82bd=_0x384754['activeMarkers']['includes'](_0x4204e6['markerName']);return _0xbf82bd&&_0x2d32d3['push']('ck-suggestion-marker--active'),{'classes':_0x2d32d3,'attributes':{'data-suggestion':_0x33c9f9,'data-author-id':_0x37c16f},'priority':_0xbf82bd&&_0x1a9e14?0xbc2:0xbb8};}_0x384754['on']('suggestionLoaded',_0xfbfa24,{'priority':'high'}),_0x384754['on']('suggestionUnloaded',_0xfbfa24,{'priority':'high'}),_0x6a30a3['model']['document']['registerPostFixer'](()=>{let _0x147005=!0x1;const _0x174dfe=Array['from'](_0x6a30a3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x48f8cf,data:_0x37b2e0}of _0x174dfe){const {group:_0x558ac2,type:_0x1a6f1f,id:_0x38b6c9}=_0x4dc3a3(_0x48f8cf);if('suggestion'!=_0x558ac2||'deletion'!=_0x1a6f1f||_0x37b2e0['oldRange'])continue;if(!_0x384754['hasSuggestion'](_0x38b6c9))continue;const _0x5724ef=_0x384754['getSuggestion'](_0x38b6c9)['getRanges'](),_0x77664c=_0x6a30a3['plugins']['get']('Users')['me'];for(const _0x1ae498 of _0x384754['getSuggestions']()){if(!_0x1ae498['isInContent']||_0x1ae498['author']!=_0x77664c)continue;if('formatBlock'!=_0x1ae498['type']||'tablePasteCell'!=_0x1ae498['subType'])continue;if(_0x1ae498['getRanges']()['every'](_0x3f8e94=>_0x5724ef['some'](_0x1b5247=>_0x1b5247['containsRange'](_0x3f8e94,!0x0)))){for(const _0x4ea4e0 of _0x1ae498['getAllAdjacentSuggestions']())_0x4ea4e0['isInContent']&&(_0x4ea4e0['discard'](),_0x147005=!0x0);}}}return _0x147005;}),_0x6a30a3['model']['document']['registerPostFixer'](_0x375235=>{const _0x4717b3=_0x6a30a3['commands']['get']('redo');if(!_0x4717b3||!_0x4717b3['_createdBatches']['has'](_0x375235['batch']))return!0x1;let _0x469300=!0x1;const _0x3fb428=_0x6a30a3['plugins']['get']('Users')['me'],_0x52e5c4=_0x6a30a3['model']['document']['differ']['getChanges'](),_0x4dace7=Array['from'](_0x6a30a3['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x50100e,data:_0x10e16f})=>{const {group:_0x1c5539,subType:_0x4dade7,authorId:_0x2d7734}=_0x4dc3a3(_0x50100e);return'suggestion'==_0x1c5539&&'tablePaste'==_0x4dade7&&_0x2d7734==_0x3fb428['id']&&!_0x10e16f['oldRange'];});for(const _0x584d87 of _0x52e5c4){if('insert'!=_0x584d87['type']||'tableCellSuggestion'!=_0x584d87['name']||0x1!=_0x584d87['length'])continue;const _0x3ce2ad=_0x375235['createRange'](_0x584d87['position'],_0x584d87['position']['getShiftedBy'](0x1));if(!_0x4dace7['find'](({data:_0x2d81e4})=>_0x2d81e4['newRange']['isEqual'](_0x3ce2ad))){for(const {name:_0x73e624,data:_0x204ee5}of _0x4dace7)if(_0x3ce2ad['containsRange'](_0x204ee5['newRange'])){_0x375235['updateMarker'](_0x73e624,{'range':_0x3ce2ad}),_0x469300=!0x0;break;}}}return _0x469300;}),_0x6a30a3['model']['document']['registerPostFixer'](_0x297236=>{let _0x1a0901=!0x1;const _0x4c4b76=_0x6a30a3['plugins']['get']('Users')['me'],_0x488d80=_0x384754['getSuggestions']()['filter'](_0x365fd4=>_0x365fd4['isInContent']&&_0x365fd4['author']==_0x4c4b76),_0x556b3d=new Set(),_0x42ba17=new Set();for(const _0x5a57ca of _0x488d80)if('tablePaste'==_0x5a57ca['subType'])for(const _0xb3fb5d of _0x5a57ca['getMarkers']()){const _0x2c8897=_0xb3fb5d['getRange']()['getContainedElement']();if(_0x2c8897){if(_0x2c8897['is']('element','tableCellSuggestion')&&ve(_0x2c8897)){_0x5a57ca['removeMarker'](_0xb3fb5d['name']),_0x556b3d['add'](_0x2c8897),_0x1a0901=!0x0;const _0x161520=_0x2c8897['nextSibling'],_0x597ea6=_0x2c8897['previousSibling'],_0x1e678d=_0x161520&&_0x161520['is']('element','tableCellSuggestion'),_0x4c3b03=_0x597ea6&&_0x597ea6['is']('element','tableCellSuggestion');_0x1e678d&&!_0x556b3d['has'](_0x161520)&&_0x42ba17['add'](_0x161520),_0x4c3b03&&!_0x556b3d['has'](_0x597ea6)&&_0x42ba17['add'](_0x597ea6);}else _0x2c8897['is']('element','paragraph')&&_0x2c8897['isEmpty']&&(_0x5a57ca['removeMarker'](_0xb3fb5d['name']),_0x1a0901=!0x0);}}else{if('tablePasteCell'==_0x5a57ca['subType']){if(!_0x5a57ca['attributes']||!_0x5a57ca['attributes']['tablePasteChainId'])continue;const _0x4ca395=_0x5a57ca['attributes']['markerAttributes'];if(_0x4ca395&&Object['keys'](_0x4ca395)['length'])continue;const _0xcb38cc=_0x5a57ca['attributes']['tablePasteChainId'];let _0x391251=!0x0,_0x594cd9=!0x0;for(const _0xcb9e47 of _0x488d80)if(_0xcb9e47['subType']&&_0xcb9e47['subType']['startsWith']('tablePaste')){if(!_0xcb9e47['attributes']['tablePasteChainId']){_0x594cd9=!0x1;break;}if(_0xcb9e47['id']!=_0x5a57ca['id']&&_0xcb9e47['attributes']['tablePasteChainId']==_0xcb38cc){_0x391251=!0x1;break;}}_0x594cd9&&_0x391251&&(_0x5a57ca['removeMarkers'](),_0x1a0901=!0x0);}}for(const _0x20d5ae of _0x556b3d)_0x297236['remove'](_0x20d5ae);for(const _0x78d53a of _0x42ba17)_0x297236['unwrap'](_0x78d53a);return _0x1a0901;}),_0x6a30a3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x279a49=>_0x1212e3(_0x279a49),'converterPriority':'high'}),_0x6a30a3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x101bbf,_0x555c1e)=>_0x555c1e['options']['showSuggestionHighlights']?_0x1212e3(_0x101bbf,!0x1):null,'converterPriority':'high'});const _0x18f984=_0x6a30a3['editing']['view'];this['listenTo'](_0x18f984['document'],'clipboardOutput',(_0xd1f830,_0x1b8380)=>{const _0x759fb3=[];for(const _0x343ea3 of _0x18f984['createRangeIn'](_0x1b8380['content'])['getItems']())_0x343ea3['is']('element','suggestion-td')&&_0x759fb3['push'](_0x343ea3);_0x18f984['change'](_0x2c497c=>{for(const _0x10a208 of _0x759fb3)_0x2c497c['move'](_0x2c497c['createRangeIn'](_0x10a208),_0x2c497c['createPositionBefore'](_0x10a208)),_0x2c497c['remove'](_0x10a208);});});}}function ve(_0x3f45fb){if(_0x3f45fb['isEmpty'])return!0x0;const _0x42ecae=_0x3f45fb['getChild'](0x0);return _0x42ecae['is']('element','paragraph')&&_0x42ecae['isEmpty'];}function xe(_0x43dc3c,_0x2eea85={},_0x1b9fee){for(const {isAnchor:_0x1b257e,cellHeight:_0x1a77d6,cellWidth:_0x30b362}of _0x1b9fee['createTableWalker'](_0x43dc3c,{'includeAllSlots':!0x0,..._0x2eea85}))if(!_0x1b257e||0x1!=_0x1a77d6||0x1!=_0x30b362)return!0x1;return!0x0;}class Pe extends _0x35090c{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2090fb=this['editor']['plugins']['get']('TrackChangesEditing');_0x2090fb['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2090fb['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2090fb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2090fb['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2090fb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2090fb['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3b6004,_0x3f091e){const _0x1f610c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ee8c7=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xb6ed8d=_0x3f091e['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x35c4a5=_0x3ee8c7['getColumnGroupElement'](_0xb6ed8d);let _0x4b6f3f=_0x35c4a5?_0x3ee8c7['getTableColumnsWidths'](_0x35c4a5):null,_0x58c665=_0xb6ed8d['getAttribute']('tableWidth')||null;const _0xbfefe6=_0x3f091e['tableWidth']||_0x58c665,_0x59cbd9=_0x3f091e['columnWidths']||_0x4b6f3f,_0x5d4313=this['editor']['plugins']['get']('Users')['me'];for(const _0x549990 of _0x1f610c['getSuggestions']()){const _0x2aad92=_0x549990['getContainedElement']();if('resizeTable'===_0x549990['subType']&&_0x2aad92===_0xb6ed8d){_0x549990['author']!==_0x5d4313&&_0x549990['discard']();const _0xb68ec3=_0x549990['data']['commandParams'];_0x58c665=_0xb68ec3[0x0]['tableWidth'],_0x4b6f3f=_0xb68ec3[0x0]['columnWidths'];break;}}_0x3b6004({'table':_0xb6ed8d,'tableWidth':_0xbfefe6,'columnWidths':_0x59cbd9}),_0x1f610c['markBlockFormat'](_0xb6ed8d,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x58c665,'columnWidths':_0x4b6f3f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x26b99f){if('formatBlock'!=_0x26b99f['type']&&'formatInline'!=_0x26b99f['type'])return;const {data:_0x48ccb3}=_0x26b99f;if(_0x48ccb3&&'resizeTable'===_0x48ccb3['formatGroupId']){const _0x4136d8='*Format:*\x20resize\x20table';return{'type':'format','content':At(this['editor']['locale'],_0x4136d8)};}}}class Ue extends _0x35090c{['afterInit'](){const _0x5cfe91=this['editor'];_0x5cfe91['plugins']['has']('Template')&&_0x5cfe91['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ge extends _0x35090c{['afterInit'](){const _0x45960d=this['editor'];if(!_0x45960d['commands']['get']('insertTableOfContents'))return;_0x45960d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3d38a9=_0x45960d['plugins']['get']('TrackChangesEditing'),_0x4737f3=_0x45960d['locale'];_0x3d38a9['descriptionFactory']['registerElementLabel']('tableOfContents',_0x419c95=>At(_0x4737f3,'ELEMENT_TABLE_OF_CONTENTS',_0x419c95));}}class He extends _0x35090c{['afterInit'](){const _0x4c7fb9=this['editor'];if(!_0x4c7fb9['plugins']['has']('Title'))return;_0x4c7fb9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>At(_0x4c7fb9['locale'],'ELEMENT_TITLE')),_0x4c7fb9['model']['document']['registerPostFixer'](_0x3d1e9e=>{let _0x59bfdc=!0x1;const _0x387b31=Array['from'](_0x4c7fb9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1bc375,data:_0x22f9b2}of _0x387b31){const {group:_0x2e7a06}=_0x4dc3a3(_0x1bc375);if('suggestion'!==_0x2e7a06||!_0x22f9b2['newRange'])continue;const _0x5934c8=_0x22f9b2['newRange'],_0x5a32dc=_0x5934c8['end']['nodeBefore'];if(!_0x5a32dc||!_0x5a32dc['is']('element','title-content'))continue;if(!_0x5934c8['start']['isTouching'](_0x5934c8['end']))continue;const _0x39e3cb=_0x4c7fb9['model']['schema']['getNearestSelectionRange'](_0x5934c8['end'],'forward');if(_0x39e3cb&&_0x39e3cb['isCollapsed']){const _0x485bc2=_0x3d1e9e['createRange'](_0x5934c8['start'],_0x39e3cb['start']);_0x485bc2['isEqual'](_0x5934c8)||(_0x3d1e9e['updateMarker'](_0x1bc375,{'range':_0x485bc2}),_0x59bfdc=!0x0);}_0x59bfdc||(_0x3d1e9e['removeMarker'](_0x1bc375),_0x59bfdc=!0x0);}return _0x59bfdc;});}}class $e extends _0x35090c{['afterInit'](){const _0x588188=this['editor'],_0x49d892=_0x588188['plugins']['get']('TrackChangesEditing');_0x588188['plugins']['has']('Uploadcare')&&(_0x49d892['enableCommand']('uploadcare'),_0x588188['plugins']['has']('UploadcareImageEdit')&&(_0x49d892['enableCommand']('uploadcareImageEdit'),_0x49d892['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x49d892['descriptionFactory']['registerDescriptionCallback'](_0x15486e=>{if('attribute'!=_0x15486e['type'])return;const {data:_0x310ef6}=_0x15486e;return _0x310ef6&&'uploadcareImageId'==_0x310ef6['key']?{'type':'format','content':''}:void 0x0;})));}}class We extends _0x35090c{['afterInit'](){const _0x43d40b=this['editor'],_0x1b3ef3=_0x43d40b['plugins']['get']('TrackChangesEditing');_0x43d40b['plugins']['has']('UndoEditing')&&(_0x1b3ef3['enableCommand']('undo'),_0x1b3ef3['enableCommand']('redo'));}}class Ve extends _0x35090c{static get['requires'](){return[Ne];}['afterInit'](){const _0x225911=this['editor'];if(!_0x225911['plugins']['has']('TableCaptionEditing'))return;_0x225911['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class je extends _0x35090c{['tableProperties'];['tableCellProperties'];constructor(_0x5a4751){super(_0x5a4751),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 _0x399123=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1d0995 of this['tableProperties'])_0x399123['enableCommand'](_0x1d0995,(_0x5b794e,_0x5240df)=>{const _0x2da26d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1d0995,[_0x2da26d],this['tableProperties'],'tableProperties',_0x5b794e,_0x5240df);});_0x399123['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x399123['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x399123['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x6bddfa,_0x281b0a)=>this['handleDiscardAction'](this['tableProperties'],_0x6bddfa,_0x281b0a)),_0x399123['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x29c301 of this['tableCellProperties'])this['editor']['commands']['get'](_0x29c301)&&_0x399123['enableCommand'](_0x29c301,(_0x4a20fe,_0x25a6ac)=>{const _0x31e52d=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x29c301,_0x31e52d,this['tableCellProperties'],'tableCellProperties',_0x4a20fe,_0x25a6ac);});_0x399123['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x399123['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x399123['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2f9bd6,_0x373fd7)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2f9bd6,_0x373fd7)),_0x399123['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x399123['descriptionFactory']['registerAttributeLabel']('tableCellType',At(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x399123['descriptionFactory']['registerDescriptionCallback'](_0x250f66=>this['handleSuggestionDescription'](_0x250f66)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x5b09cb,_0x82bf4e,_0x46f5d5,_0x3e6c54,_0x215032,_0x8b971c){const _0x1c636c=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x8b971c['batch'],()=>{for(const _0x2bf55c of _0x82bf4e){if(this['_getSuggestion'](_0x2bf55c,_0x3e6c54))_0x215032(_0x8b971c);else{const _0x45d111={};for(const _0x259e6b of _0x46f5d5){const _0x4471ae=_0x2bf55c['getAttribute'](_0x259e6b);void 0x0!==_0x4471ae&&(_0x45d111[_0x259e6b]=_0x4471ae);}_0x215032(_0x8b971c),_0x1c636c['markBlockFormat'](_0x2bf55c,{'commandParams':[_0x45d111]},[],_0x3e6c54);}}});}['handleDiscardAction'](_0x19046c,_0x969a72,_0x55c418){const _0x5eee31=_0x969a72[0x0]['start']['nodeAfter'],_0x28af89=_0x55c418['commandParams'][0x0];this['editor']['model']['change'](_0x8958a5=>{for(const _0x30db25 of _0x19046c)void 0x0!==_0x28af89[_0x30db25]?_0x8958a5['setAttribute'](_0x30db25,_0x28af89[_0x30db25],_0x5eee31):_0x8958a5['removeAttribute'](_0x30db25,_0x5eee31);});}['handleSuggestionDescription'](_0xc8a779){if(_0xc8a779['data'])switch(_0xc8a779['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'](_0x2bfcee,_0xd985e9){const _0x4baf09=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4ed210 of _0x4baf09['getSuggestions']({'skipNotAttached':!0x0})){const _0x450af9=_0x4ed210['getContainedElement']();if(_0x4ed210['subType']===_0xd985e9&&_0x450af9===_0x2bfcee)return _0x4ed210;}return null;}['_registerTablePropertiesAttributes'](){const _0xe0ae7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ab9cc=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x20f38a of _0x1ab9cc){const _0x139a22=_0x20f38a['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0xe0ae7['descriptionFactory']['registerAttributeLabel'](_0x20f38a,At(this['editor']['locale'],'FORMAT_'+_0x139a22));}}}class ze extends _0x35090c{['afterInit'](){const _0xa5aa0c=this['editor'];if(!_0xa5aa0c['plugins']['has']('LineHeight'))return;const _0x16b5a9=_0xa5aa0c['plugins']['get']('TrackChangesEditing'),_0xdc7669=_0xa5aa0c['locale'];_0x16b5a9['enableDefaultAttributesIntegration']('lineHeight'),_0x16b5a9['descriptionFactory']['registerAttributeLabel']('lineHeight',At(_0xdc7669,'FORMAT_LINE_HEIGHT'));}}const Ke='$elementName';class Xe extends _0x35090c{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x2eae3a,_0x495abb,_0x5afd1d,_0x24aa37,_0x188216,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(_0x10f97b){super(_0x10f97b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xac9ce9,_0x1ff33c,_0x7bc7f,_0x16cb44)=>{this['_model']['change'](()=>{for(const _0x4d964c of[..._0x16cb44,..._0x7bc7f])this['_model']['markers']['has'](_0x4d964c)&&_0x10f97b['editing']['reconvertMarker'](_0x4d964c);});}),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']=_0x10f97b['plugins']['get'](_0x2eae3a),this['_suggestionsConversion']=_0x10f97b['plugins']['get'](_0x495abb),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x10f97b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x10f97b['config']['get']('trackChanges.trackFormatChanges'),_0x10f97b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x10f97b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new ht(_0x10f97b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x538830=this['editor'];_0x538830['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2b39c7,{writer:_0x411f6d})=>{let _0x30a2fe='suggestion:'+_0x2b39c7['getAttribute']('suggestion-type')+':'+_0x2b39c7['getAttribute']('id');return _0x2b39c7['getAttribute']('marker-count')&&(_0x30a2fe+=':'+_0x2b39c7['getAttribute']('marker-count')),_0x411f6d['createElement']('$marker',{'data-name':_0x30a2fe});}}),_0x538830['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x538830['model']['document']['registerPostFixer'](_0xa03365=>{let _0x3aedfc=!0x1;const _0x3501cf=Array['from'](_0x538830['model']['document']['differ']['getChangedMarkers']()),_0xc6e8fe=new Set();for(const {name:_0x18a4b6,data:_0x519c35}of _0x3501cf){const {group:_0x245947,type:_0x3ec323,subType:_0x20c5fc,id:_0x2a8768}=_0x4dc3a3(_0x18a4b6);if('suggestion'!==_0x245947)continue;const _0x2791d3=_0x20c5fc?'suggestion:'+_0x3ec323+':'+_0x20c5fc+':'+_0x2a8768:'suggestion:'+_0x3ec323+':'+_0x2a8768,_0x43fd90=_0x538830['model']['markers']['getMarkersGroup'](_0x2791d3),_0x347dac=_0x538830['model']['markers']['get'](_0x18a4b6),_0x2ddcc9=this['_suggestions']['get'](_0x2a8768);if(null!=_0x519c35['newRange']){'formatInline'==_0x3ec323&&(_0x3aedfc=_0x3aedfc||Ze(_0x519c35['newRange'],_0x18a4b6,_0xa03365,_0x538830['model']['schema']));const _0x2d38f5='attribute'==_0x3ec323&&this['_suggestionsConversion']['isBlockAttribute'](un(_0x20c5fc)),_0x12a188='attribute'==_0x3ec323&&this['_suggestionsConversion']['isInlineAttribute'](un(_0x20c5fc));if(_0x519c35['newRange']['isCollapsed']||'$graveyard'==_0x519c35['newRange']['root']['rootName']||'formatBlock'==_0x3ec323&&!tn(_0x519c35['newRange'])||_0x2d38f5&&!tn(_0x519c35['newRange'])||_0x12a188&&en(_0x519c35['newRange'])||'deletion'==_0x3ec323&&en(_0x519c35['newRange'])||_0x347dac&&nn(_0x347dac,_0x43fd90))_0xa03365['removeMarker'](_0x18a4b6),_0x3aedfc=!0x0;else{if(!_0x2ddcc9||!_0x2ddcc9['isInContent'])continue;if(_0x519c35['newRange']&&_0x519c35['oldRange']&&_0x519c35['newRange']['isEqual'](_0x519c35['oldRange']))continue;_0xc6e8fe['add'](_0x2ddcc9);}}}return _0xc6e8fe['size']>0x0&&(_0x3aedfc=!!this['_joinWithAdjacentSuggestions'](_0xc6e8fe)||_0x3aedfc),_0x3aedfc;}),_0x538830['model']['document']['registerPostFixer'](_0x513d7d=>{let _0x5613ee=!0x1;for(const _0x20fc93 of _0x538830['model']['document']['differ']['getChanges']())if('insert'==_0x20fc93['type'])for(const _0x37cf96 of this['_suggestions']['values']()){if(_0x37cf96['isMultiRange']||!_0x37cf96['isInContent'])continue;const _0x4f3213='formatBlock'==_0x37cf96['type'],_0x36eacd=this['_getAttributeKey'](_0x37cf96),_0x2126ec=_0x36eacd&&this['_suggestionsConversion']['isBlockAttribute'](_0x36eacd);if(!_0x4f3213&&!_0x2126ec)continue;const _0x16cca6=_0x37cf96['getFirstRange']();if(_0x16cca6['start']['parent']!=_0x16cca6['end']['parent']&&!_0x16cca6['end']['isAtEnd']){const _0x59f614=_0x538830['model']['createPositionAt'](_0x16cca6['start']['nodeAfter'],'end'),_0x54a376=_0x538830['model']['createRange'](_0x16cca6['start'],_0x59f614);_0x513d7d['updateMarker'](_0x37cf96['getFirstMarker'](),{'range':_0x54a376}),_0x5613ee=!0x0;}}return _0x5613ee;}),_0x538830['model']['document']['registerPostFixer'](_0x27c19d=>this['_processAttributeChanges'](_0x27c19d)),_0x538830['model']['document']['registerPostFixer'](_0x4566c2=>!_0x4566c2['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4566c2)),_0x538830['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x538830['model']['document']['on']('change:data',(_0x4aaaf6,_0x2a2da0)=>{if(!_0x2a2da0['isLocal']||_0x2a2da0['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x183799=_0x538830['model']['document']['differ']['getChanges']();if(0x0==_0x183799['length'])return;const _0x502cad=[],_0x391f2d=_0x183799['filter'](_0x38c66c=>'attribute'==_0x38c66c['type']),_0x5c0b01=_0x183799['filter'](_0x3f2108=>'insert'==_0x3f2108['type']&&'$text'!=_0x3f2108['name']);for(const _0x50e60c of _0x391f2d)this['_suggestionsConversion']['isRegisteredAttribute'](_0x50e60c['attributeKey'])&&_0x502cad['push']({'key':_0x50e60c['attributeKey'],'newValue':_0x50e60c['attributeNewValue'],'oldValue':_0x50e60c['attributeOldValue'],'range':sn(_0x50e60c['range'],_0x538830['model'])});for(const _0x2d712e of _0x5c0b01){if('rename'!=_0x2d712e['action']&&'refresh'!=_0x2d712e['action'])continue;const _0x57ef7f=rn(_0x2d712e['position']['nodeAfter'],_0x538830['model']),_0x5376f2=_0x2d712e['before'];'rename'==_0x2d712e['action']&&_0x502cad['push']({'key':Ke,'newValue':_0x2d712e['name'],'oldValue':_0x5376f2['name'],'range':_0x57ef7f});for(const [_0x45e56d,_0x4fc956]of _0x5376f2['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x45e56d))continue;const _0x471c2b=_0x2d712e['attributes']['get'](_0x45e56d);_0x4fc956!==_0x471c2b&&_0x502cad['push']({'key':_0x45e56d,'newValue':_0x471c2b,'oldValue':_0x4fc956,'range':_0x57ef7f});}for(const [_0x382bbd,_0x4e1323]of _0x2d712e['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x382bbd)&&(_0x5376f2['attributes']['has'](_0x382bbd)||_0x502cad['push']({'key':_0x382bbd,'newValue':_0x4e1323,'oldValue':null,'range':_0x57ef7f}));}0x0!=_0x502cad['length']&&_0x538830['model']['enqueueChange'](_0x2a2da0,_0x230e31=>{const _0x399652=_0x5b022c();for(const {range:_0x3ac5d1,key:_0x139683,oldValue:_0x490cac,newValue:_0x4ac07d}of _0x502cad)this['markAttributeChange'](_0x3ac5d1,_0x139683,_0x490cac,_0x4ac07d,{'groupId':_0x399652});this['_reduceExistingSuggestions'](_0x230e31,_0x502cad);});},{'priority':'lowest'}),_0x538830['model']['markers']['on']('update:suggestion',(_0x682439,_0x556920,_0x3e5aa7)=>{if(null==_0x3e5aa7){const {id:_0x29168b}=_0x4dc3a3(_0x556920['name']),_0x564dbb=this['_suggestions']['get'](_0x29168b);_0x564dbb&&_0x564dbb['addMarkerName'](_0x556920['name']);}}),_0x538830['model']['document']['on']('change:data',()=>{const _0x5669fb=Array['from'](_0x538830['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5686a4=>'suggestion'===_0x4dc3a3(_0x5686a4['name'])['group']);if(0x0===_0x5669fb['length'])return;_0x5669fb['sort']((_0xcf7477,_0x3d45da)=>{const _0xadd7d6=_0xcf7477['data']['oldRange'],_0x3ccff9=_0x3d45da['data']['oldRange'];return null===_0xadd7d6&&null===_0x3ccff9?0x0:null===_0xadd7d6&&null!==_0x3ccff9?-0x1:null!==_0xadd7d6&&null===_0x3ccff9?0x1:_0xadd7d6['start']['isBefore'](_0x3ccff9['start'])?-0x1:0x1;});const _0x1a27b0=new Set(),_0x1f81fb=new Set();for(const {name:_0x3cbd0d,data:_0x485601}of _0x5669fb){const {id:_0x2905b5}=_0x4dc3a3(_0x3cbd0d);if(null===_0x485601['oldRange']){const _0xade496=this['_handleNewSuggestionMarker'](_0x3cbd0d);_0x1f81fb['add'](_0xade496);}else{const _0x52afbe=this['_suggestions']['get'](_0x2905b5);null!==_0x485601['newRange']||_0x52afbe['isInContent']?(_0x1a27b0['add'](_0x52afbe['head']),_0x1f81fb['add'](_0x52afbe)):this['_removeSuggestion'](_0x52afbe);}}_0x1f81fb['size']>0x0&&this['_refreshSuggestionsChain'](_0x1f81fb);for(const _0x2f26f9 of _0x1a27b0)this['fire']('suggestionChanged',_0x2f26f9);}),_0x538830['model']['on']('applyOperation',(_0x5594f9,_0x2cb96d)=>{const _0x10b20f=_0x2cb96d[0x0];if(!this['_suggestions']['size'])return;if(!_0x10b20f['isDocumentOperation'])return;if(_0x10b20f['batch']['isUndo']||!_0x10b20f['batch']['isLocal'])return;let _0x4e9052,_0x292972;switch(_0x10b20f['type']){case'insert':_0x4e9052=_0x538830['model']['createPositionAt'](_0x10b20f['position']),_0x292972=_0x4e9052['getShiftedBy'](_0x10b20f['howMany']);break;case'split':_0x4e9052=_0x538830['model']['createPositionAt'](_0x10b20f['splitPosition']),_0x292972=_0x538830['model']['createPositionAt'](_0x10b20f['moveTargetPosition']);break;case'move':_0x4e9052=_0x538830['model']['createPositionAt'](_0x10b20f['targetPosition']),_0x292972=_0x4e9052['getShiftedBy'](_0x10b20f['howMany']);break;default:return;}const _0x37b357=_0x538830['model']['createRange'](_0x4e9052,_0x292972);_0x538830['model']['change'](()=>{for(const {suggestion:_0x47ef51,meta:_0x36d4dc}of this['_findSuggestions'](_0x37b357)){if(_0x47ef51['isMultiRange'])continue;if('formatInline'==_0x47ef51['type'])continue;const _0x49efb2=this['_getAttributeKey'](_0x47ef51);if(_0x49efb2&&this['_suggestionsConversion']['isBlockAttribute'](_0x49efb2)&&'split'!=_0x10b20f['type'])continue;const _0x2ae299=_0x47ef51['data']&&_0x47ef51['data']['multipleBlocks'];('formatBlock'!=_0x47ef51['type']||'split'==_0x10b20f['type']&&!_0x2ae299)&&(_0x36d4dc['containsRangeInObject']||'insertion'==_0x47ef51['type']&&_0x36d4dc['isOwn']||_0x47ef51['getFirstRange']()['containsRange'](_0x37b357)&&this['_breakSuggestionMarker'](_0x47ef51,_0x4e9052,_0x292972));}});},{'priority':'lowest'}),_0x538830['model']['on']('deleteContent',(_0x58d618,_0x3f50fe)=>{const _0x5d4ff5=_0x3f50fe[0x0],_0x52da41=_0x3f50fe[0x1];if(_0x52da41&&_0x52da41['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5d4ff5['isCollapsed'])return;const _0x8e5396=_0x538830['model']['schema'],{start:_0x2239fd,end:_0x36c1a0}=_0x5d4ff5['getFirstRange'](),_0x5217c2=_0x2239fd['nodeAfter']&&_0x8e5396['isLimit'](_0x2239fd['nodeAfter'])?null:_0x8e5396['getNearestSelectionRange'](_0x2239fd,'forward'),_0x217137=_0x36c1a0['nodeBefore']&&_0x8e5396['isLimit'](_0x36c1a0['nodeBefore'])?null:_0x8e5396['getNearestSelectionRange'](_0x36c1a0,'backward'),_0x1121a4=_0x538830['model']['createRange'](_0x5217c2?_0x5217c2['start']:_0x2239fd,_0x217137?_0x217137['end']:_0x36c1a0);_0x538830['model']['change'](_0xbedd89=>{this['markDeletion'](_0x1121a4);const _0xf67ea6=_0x538830['model']['schema']['getNearestSelectionRange'](_0x1121a4['start']);_0x5d4ff5['is']('documentSelection')?_0xbedd89['setSelection'](_0xf67ea6):_0x5d4ff5['setTo'](_0xf67ea6);}),_0x58d618['stop']();},{'priority':_0x581032['normal']+0xa}),_0x538830['model']['on']('insertContent',(_0xa26cf9,_0x5f0e12)=>{const _0x5816a9=_0x5f0e12[_0x5f0e12['length']-0x1];_0x5816a9&&_0x5816a9['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x538830['model']['change'](()=>{let _0xaaafe5=_0x538830['model']['insertContent'](_0x5f0e12[0x0],_0x5f0e12[0x1],_0x5f0e12[0x2],{'forceDefaultExecution':!0x0});if(!_0xaaafe5)return;_0xa26cf9['return']=_0xaaafe5['clone']();const _0x4abed2=_0xaaafe5['end']['nodeBefore'],_0x85bf16=_0x538830['model']['schema'];_0x4abed2&&_0x85bf16['isBlock'](_0x4abed2)&&!_0x85bf16['isObject'](_0x4abed2)&&(_0xaaafe5=_0x538830['model']['createRange'](_0xaaafe5['start'],_0x538830['model']['createPositionAt'](_0x4abed2,'end'))),this['markInsertion'](_0xaaafe5);}),_0xa26cf9['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3b8e69=new dt(_0x538830,this['_suggestions']);_0x538830['commands']['add']('acceptSuggestion',_0x3b8e69),this['enableCommand']('acceptSuggestion');const _0x13a3f2=new ft(_0x538830,this['_suggestions']);_0x538830['commands']['add']('discardSuggestion',_0x13a3f2),this['enableCommand']('discardSuggestion'),_0x538830['commands']['add']('acceptAllSuggestions',new Lt(_0x538830,_0x3b8e69,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x538830['commands']['add']('discardAllSuggestions',new Lt(_0x538830,_0x13a3f2,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x538830['commands']['add']('acceptSelectedSuggestions',new It(_0x538830,_0x3b8e69,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x538830['commands']['add']('discardSelectedSuggestions',new It(_0x538830,_0x13a3f2,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2447f4=_0x538830['plugins']['get'](_0x2eae3a);this['listenTo'](_0x2447f4,'addComment',(_0x2cd90b,{threadId:_0x16b1df})=>{const _0x37cd08=this['_suggestions']['get'](_0x16b1df);_0x37cd08&&_0x37cd08['commentThread']&&0x1===_0x37cd08['commentThread']['length']&&this['_updateSuggestionData'](_0x16b1df,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2447f4,'removeComment',(_0x18436d,{threadId:_0x26235f})=>{const _0x5df966=this['_suggestions']['get'](_0x26235f);_0x5df966&&_0x5df966['commentThread']&&!_0x5df966['commentThread']['length']&&this['_updateSuggestionData'](_0x26235f,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x53bd76){const _0x244b67=_0x213f98([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]),_0x4e0cee=0x3d8d0df,_0x21517b=0x3df55cf^_0x4e0cee,_0x51ce47=window[_0x213f98([0x44,0x61,0x74,0x65])][_0x213f98([0x6e,0x6f,0x77])](),_0x316416=_0x53bd76[_0x213f98([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x29cb8d=new window[(_0x213f98([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55cc7c=>{_0x316416[_0x213f98([0x6f,0x6e,0x63,0x65])](_0x213f98([0x72,0x65,0x61,0x64,0x79]),_0x55cc7c);}),_0x3aa49f={[_0x213f98([0x6b,0x74,0x79])]:_0x213f98([0x45,0x43]),[_0x213f98([0x75,0x73,0x65])]:_0x213f98([0x73,0x69,0x67]),[_0x213f98([0x63,0x72,0x76])]:_0x213f98([0x50,0x2d,0x32,0x35,0x36]),[_0x213f98([0x78])]:_0x213f98([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]),[_0x213f98([0x79])]:_0x213f98([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]),[_0x213f98([0x61,0x6c,0x67])]:_0x213f98([0x45,0x53,0x32,0x35,0x36])},_0x2ffeb4=_0x316416[_0x213f98([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x213f98([0x67,0x65,0x74])](_0x213f98([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3c8651(){let _0x428808,_0x3e480e=null,_0x4f9289=null;try{if(_0x2ffeb4==_0x213f98([0x47,0x50,0x4c]))return _0x213f98([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x428808=_0x712f06(),!_0x428808)return _0x213f98([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x428808[_0x213f98([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4f9289=_0x42d5ae(_0x428808[_0x213f98([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x428808[_0x213f98([0x6a,0x74,0x69])])),await _0x2a6548()?_0x275db3()?_0x39c37c()?_0x213f98([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5c9d15()?(_0x428808[_0x213f98([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x213f98([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3e480e=_0x59b2d4(_0x213f98([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1b9a39()):_0x213f98([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x213f98([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x213f98([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x213f98([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x39c37c(){const _0x404bf5=[_0x213f98([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x213f98([0x74,0x72,0x69,0x61,0x6c])][_0x213f98([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x428808[_0x213f98([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x51ce47/0x3e8:0xe10*_0x21517b;return _0x428808[_0x213f98([0x65,0x78,0x70])]<_0x404bf5;}function _0x275db3(){const _0x5046a3=_0x428808[_0x213f98([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5046a3)return!0x1;if(_0x5046a3[_0x213f98([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x213f98([0x2a])))return!0x0;if(_0x5046a3[_0x213f98([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x213f98([0x54,0x43])))return!0x0;if(_0x5046a3[_0x213f98([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x213f98([0x52,0x54,0x43]))){if(_0x98d89f())return!0x0;if(_0x114b48()||_0x302ba9())return!0x0;}return!0x1;}function _0x5c9d15(){const _0x7b6c4b=_0x428808[_0x213f98([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x7b6c4b||0x0==_0x7b6c4b[_0x213f98([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x202b29}=new URL(window[_0x213f98([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x7b6c4b[_0x213f98([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x202b29))return!0x0;const _0x588da9=_0x202b29[_0x213f98([0x73,0x70,0x6c,0x69,0x74])](_0x213f98([0x2e]));return _0x7b6c4b[_0x213f98([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x42a903=>_0x42a903[_0x213f98([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x213f98([0x2a])))[_0x213f98([0x6d,0x61,0x70])](_0x4a2a42=>_0x4a2a42[_0x213f98([0x73,0x70,0x6c,0x69,0x74])](_0x213f98([0x2e])))[_0x213f98([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x589111=>_0x589111[_0x213f98([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x588da9[_0x213f98([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x213f98([0x6d,0x61,0x70])](_0x365046=>Array(_0x588da9[_0x213f98([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x365046[_0x213f98([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x213f98([0x66,0x69,0x6c,0x6c])](_0x365046[0x0]===_0x213f98([0x2a])?_0x213f98([0x2a]):'')[_0x213f98([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x365046))[_0x213f98([0x73,0x6f,0x6d,0x65])](_0x45dffc=>_0x588da9[_0x213f98([0x65,0x76,0x65,0x72,0x79])]((_0x141b2c,_0x271287)=>_0x45dffc[_0x271287]===_0x141b2c||_0x45dffc[_0x271287]===_0x213f98([0x2a])));}function _0x1b9a39(){return _0x3e480e&&_0x4f9289?new window[(_0x213f98([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4a1854,_0x4d0415)=>{_0x3e480e[_0x213f98([0x74,0x68,0x65,0x6e])](_0x4a1854,_0x4d0415),_0x4f9289[_0x213f98([0x74,0x68,0x65,0x6e])](_0x20db4b=>{_0x20db4b!=_0x213f98([0x56,0x61,0x6c,0x69,0x64])&&_0x4a1854(_0x20db4b);},_0x4d0415);}):_0x3e480e||_0x4f9289||_0x213f98([0x56,0x61,0x6c,0x69,0x64]);}}function _0x42d5ae(_0x363323,_0x485c91){return new window[(_0x213f98([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12af8b=>{if(_0x5bff4e())return _0x12af8b(_0x213f98([0x56,0x61,0x6c,0x69,0x64]));_0xb2a2a7(),_0x316416[_0x213f98([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x213f98([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4b7dee=!0x1;const _0x43cc4f=_0x5b022c();function _0x2022b1(_0x2cb0aa){return!!_0x2cb0aa&&(typeof _0x2cb0aa===_0x213f98([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2cb0aa===_0x213f98([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2cb0aa[_0x213f98([0x74,0x68,0x65,0x6e])]===_0x213f98([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2cb0aa[_0x213f98([0x63,0x61,0x74,0x63,0x68])]===_0x213f98([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x388ba6(_0x28c090){_0x182d88(_0x28c090)[_0x213f98([0x74,0x68,0x65,0x6e])](_0x2ed966=>{if(!_0x2ed966||_0x2ed966[_0x213f98([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x213f98([0x6f,0x6b]))return _0x213f98([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x106f9b(_0x1ff5f8(_0x43cc4f+_0x485c91))!=_0x2ed966[_0x213f98([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x213f98([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x213f98([0x56,0x61,0x6c,0x69,0x64]);})[_0x213f98([0x74,0x68,0x65,0x6e])](_0x4ebbbf=>(_0x3401a1(),_0x4ebbbf),()=>{const _0x2599c8=_0x1435ca();return null==_0x2599c8?(_0x3401a1(),_0x213f98([0x56,0x61,0x6c,0x69,0x64])):_0x213f98(_0x51ce47-_0x2599c8>(0x27d454df^_0x4e0cee)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x213f98([0x74,0x68,0x65,0x6e])](_0x12af8b)[_0x213f98([0x63,0x61,0x74,0x63,0x68])](()=>{_0x12af8b(_0x213f98([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x13ca6f=0x3ee3e5f^_0x4e0cee;function _0x3401a1(){const _0x2dded2=_0x213f98([0x6c,0x6c,0x63,0x74,0x2d])+_0x106f9b(_0x1ff5f8(_0x363323)),_0xf44b60=_0x476ac9(_0x106f9b(window[_0x213f98([0x4d,0x61,0x74,0x68])][_0x213f98([0x63,0x65,0x69,0x6c])](_0x51ce47/_0x13ca6f)));window[_0x213f98([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x213f98([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2dded2,_0xf44b60);}function _0x1435ca(){const _0x5c67b1=_0x213f98([0x6c,0x6c,0x63,0x74,0x2d])+_0x106f9b(_0x1ff5f8(_0x363323)),_0x88f737=window[_0x213f98([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x213f98([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c67b1);return _0x88f737?window[_0x213f98([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x476ac9(_0x88f737),0x10)*_0x13ca6f:null;}function _0x182d88(_0x448f91){return new window[(_0x213f98([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x377700,_0x18d569)=>{_0x448f91[_0x213f98([0x74,0x68,0x65,0x6e])](_0x377700,_0x18d569),window[_0x213f98([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x18d569,0x3d9041f^_0x4e0cee);});}}_0x316416[_0x213f98([0x6f,0x6e])](_0x213f98([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1d5fd1,_0x4430cb)=>{if(_0x4430cb[0x0]!=_0x363323)return _0x12af8b(_0x213f98([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4430cb[0x1]={..._0x4430cb[0x1],[_0x213f98([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x43cc4f};},{[_0x213f98([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x213f98([0x68,0x69,0x67,0x68])}),_0x316416[_0x213f98([0x6f,0x6e])](_0x213f98([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3cb0cd=>{_0x2022b1(_0x3cb0cd[_0x213f98([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4b7dee=!0x0,_0x388ba6(_0x3cb0cd[_0x213f98([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x213f98([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x213f98([0x6c,0x6f,0x77])}),_0x29cb8d[_0x213f98([0x74,0x68,0x65,0x6e])](()=>{_0x4b7dee||_0x12af8b(_0x213f98([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5bff4e(){return _0x316416[_0x213f98([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x213f98([0x76,0x69,0x65,0x77])][_0x213f98([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x213f98([0x61,0x75,0x74,0x6f]);}function _0xb2a2a7(){_0x316416[_0x213f98([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x213f98([0x76,0x69,0x65,0x77])][_0x213f98([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x213f98([0x61,0x75,0x74,0x6f]);}}function _0x59b2d4(_0x2cd3c0){const _0x3b9b14=[new window[(_0x213f98([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f6bd3=>setTimeout(_0x2f6bd3,0x3d1ee13^_0x4e0cee)),_0x29cb8d[_0x213f98([0x74,0x68,0x65,0x6e])](()=>new window[(_0x213f98([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24822b=>{let _0xe646e5=0x0;_0x316416[_0x213f98([0x6d,0x6f,0x64,0x65,0x6c])][_0x213f98([0x6f,0x6e])](_0x213f98([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x471615,_0x2b4112)=>{_0x2b4112[0x0][_0x213f98([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xe646e5++,_0xe646e5==(0x3d8d537^_0x4e0cee)&&(_0x24822b(),_0x471615[_0x213f98([0x6f,0x66,0x66])]());});}))];return window[_0x213f98([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x213f98([0x72,0x61,0x63,0x65])](_0x3b9b14)[_0x213f98([0x74,0x68,0x65,0x6e])](()=>_0x2cd3c0);}async function _0x451e0f(){await _0x29cb8d,_0x316416[_0x213f98([0x6d,0x6f,0x64,0x65,0x6c])][_0x213f98([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xf41899,_0x316416[_0x213f98([0x6d,0x6f,0x64,0x65,0x6c])][_0x213f98([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xf41899,_0x316416[_0x213f98([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x213f98([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x98d89f(){return _0x3b5a5a(_0x213f98([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x573396(_0x213f98([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x213f98([0x73,0x74,0x61,0x74,0x65])]==_0x213f98([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x114b48(){return _0x3b5a5a(_0x213f98([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 _0x302ba9(){return _0x3b5a5a(_0x213f98([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x22b238(_0x5a7938){const _0x783e78=_0x1eb6c6();_0x316416[_0x783e78]=_0x213f98([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5a7938,_0x5a7938!=_0x213f98([0x56,0x61,0x6c,0x69,0x64])&&_0x451e0f();}function _0x1eb6c6(){const _0x1c8e06=window[_0x213f98([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x213f98([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x213f98([0x6e,0x6f,0x77])]())[_0x213f98([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x213f98([0x2e]),'');let _0x1e313c=_0x213f98([0x52]);for(let _0x2e2d13=0x0;_0x2e2d13<_0x1c8e06[_0x213f98([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e2d13+=0x2){let _0x5093d5=window[_0x213f98([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c8e06[_0x213f98([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e2d13,_0x2e2d13+0x2));_0x5093d5>=_0x244b67[_0x213f98([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5093d5-=_0x244b67[_0x213f98([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1e313c+=_0x244b67[_0x5093d5];}return _0x1e313c;}function _0x712f06(){const _0x13bfdf=_0x2ffeb4[_0x213f98([0x73,0x70,0x6c,0x69,0x74])](_0x213f98([0x2e]));if(0x3!=_0x13bfdf[_0x213f98([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x568876(_0x13bfdf[0x1]);function _0x568876(_0x5c7b3b){const _0x58ff5e=_0x46a5cf(_0x5c7b3b);return _0x58ff5e&&_0x113415()?_0x58ff5e:null;function _0x113415(){const _0x3a797f=_0x58ff5e[_0x213f98([0x6a,0x74,0x69])],_0x5bfe6=window[_0x213f98([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a797f[_0x213f98([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a797f[_0x213f98([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x20afe3={..._0x58ff5e,[_0x213f98([0x6a,0x74,0x69])]:_0x3a797f[_0x213f98([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3a797f[_0x213f98([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x20afe3[_0x213f98([0x76,0x63])],_0x1ff5f8(_0x20afe3)==_0x5bfe6;}}}async function _0x2a6548(){let _0xf6e43f=!0x0;try{const _0xd1eded=_0x2ffeb4[_0x213f98([0x73,0x70,0x6c,0x69,0x74])](_0x213f98([0x2e])),[_0x2ee24f,_0x38d69f,_0x5769ab]=_0xd1eded;return _0x27e00a(_0x2ee24f),await _0x47f897(_0x2ee24f,_0x38d69f,_0x5769ab),_0xf6e43f;}catch{return!0x1;}function _0x27e00a(_0xa8a055){const _0x1ad4b6=_0x46a5cf(_0xa8a055);_0x1ad4b6&&_0x1ad4b6[_0x213f98([0x61,0x6c,0x67])]==_0x213f98([0x45,0x53,0x32,0x35,0x36])||(_0xf6e43f=!0x1);}async function _0x47f897(_0x4eca2d,_0x3f77a1,_0x43757e){const _0xc9ca80=window[_0x213f98([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x213f98([0x66,0x72,0x6f,0x6d])](_0x596945(_0x43757e),_0x3c17de=>_0x3c17de[_0x213f98([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3403f9=new window[(_0x213f98([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x213f98([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4eca2d+_0x213f98([0x2e])+_0x3f77a1),_0xf3c21e=window[_0x213f98([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x213f98([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xf3c21e)return;const _0xaca971=await _0xf3c21e[_0x213f98([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x213f98([0x6a,0x77,0x6b]),_0x3aa49f,{[_0x213f98([0x6e,0x61,0x6d,0x65])]:_0x213f98([0x45,0x43,0x44,0x53,0x41]),[_0x213f98([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x213f98([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x213f98([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xf3c21e[_0x213f98([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x213f98([0x6e,0x61,0x6d,0x65])]:_0x213f98([0x45,0x43,0x44,0x53,0x41]),[_0x213f98([0x68,0x61,0x73,0x68])]:{[_0x213f98([0x6e,0x61,0x6d,0x65])]:_0x213f98([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xaca971,_0xc9ca80,_0x3403f9)||(_0xf6e43f=!0x1);}}function _0x46a5cf(_0x2eb076){return _0x2eb076[_0x213f98([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x213f98([0x65,0x79]))?JSON[_0x213f98([0x70,0x61,0x72,0x73,0x65])](_0x596945(_0x2eb076)):null;}function _0x596945(_0x3373a2){return window[_0x213f98([0x61,0x74,0x6f,0x62])](_0x3373a2[_0x213f98([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x213f98([0x2b]))[_0x213f98([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x213f98([0x2f])));}function _0x1ff5f8(_0x4599b4){let _0x256622=0x1505;function _0x5ca06e(_0x762019){for(let _0x2c2caf=0x0;_0x2c2caf<_0x762019[_0x213f98([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c2caf++){const _0x166569=_0x762019[_0x213f98([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2c2caf);_0x256622=(_0x256622<<0x5)+_0x256622+_0x166569,_0x256622&=_0x256622;}}function _0x59a9ce(_0xc305db){Array[_0x213f98([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xc305db)?_0xc305db[_0x213f98([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x59a9ce):_0xc305db&&typeof _0xc305db==_0x213f98([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x213f98([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xc305db)[_0x213f98([0x73,0x6f,0x72,0x74])]()[_0x213f98([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4d6e4b,_0x68d3ec])=>{_0x5ca06e(_0x4d6e4b),_0x59a9ce(_0x68d3ec);}):_0x5ca06e(window[_0x213f98([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xc305db));}return _0x59a9ce(_0x4599b4),_0x256622>>>0x0;}function _0x106f9b(_0x28242d){return _0x28242d[_0x213f98([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x213f98([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x213f98([0x30]));}function _0x476ac9(_0x2182b9){return _0x2182b9[_0x213f98([0x73,0x70,0x6c,0x69,0x74])]('')[_0x213f98([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x213f98([0x6a,0x6f,0x69,0x6e])]('');}function _0x3b5a5a(_0x58ce9f){return _0x316416[_0x213f98([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x213f98([0x68,0x61,0x73])](_0x58ce9f);}function _0x573396(_0xab651a){return _0x316416[_0x213f98([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x213f98([0x67,0x65,0x74])](_0xab651a);}function _0xf41899(){}function _0x213f98(_0x151b9f){return _0x151b9f['map'](_0x267e86=>String['fromCharCode'](_0x267e86))['join']('');}_0x22b238(await _0x3c8651());}(this);}set['adapter'](_0x39c8db){if(this['_adapter'])throw new _0x25a256('track-changes-adapter-already-set',this);this['_adapter']=_0x39c8db;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4b4730=!0x1,toJSON:_0xb5bc4d=!0x1}={}){const _0x2b21f4=[];for(const _0x441297 of this['_suggestions']['values']())_0x4b4730&&!_0x441297['isInContent']||_0x2b21f4['push'](_0x441297);return _0xb5bc4d?_0x2b21f4['map'](_0x269d35=>_0x269d35['toJSON']()):_0x2b21f4;}['getSuggestion'](_0x20d50b){const _0x482e6e=this['_suggestions']['get'](_0x20d50b);if(!_0x482e6e)throw new _0x25a256('track-changes-suggestion-not-found',this);return _0x482e6e;}['hasSuggestion'](_0x488e87){return this['_suggestions']['has'](_0x488e87);}['addSuggestionData'](_0x4a5301){const {authorId:_0x5c6599,id:_0x1ef7cb,originalSuggestionId:_0x25cea7,attributes:_0x38601e}=_0x4a5301,[_0x49334a,_0x212086]=_0x4a5301['type']['split'](':'),_0xf1efdf=this['_suggestions']['get'](_0x1ef7cb)||this['_createSuggestion'](_0x49334a,_0x212086,_0x1ef7cb,_0x5c6599,_0x38601e,_0x25cea7);if(this['_addThreadToSuggestion'](_0xf1efdf),this['_checkSuggestionCorrectness'](_0xf1efdf,_0x49334a,_0x212086||null,_0x5c6599),_0xf1efdf['createdAt']=_0x4a5301['createdAt'],_0xf1efdf['_isDataLoaded']=!0x0,_0x38601e&&_0x38601e['@external']){const _0x5ce649=_0x38601e['@external'],_0x52d64b=this['_getExternalAuthor'](_0x5ce649['authorName']);_0xf1efdf['authoredAt']=_0x5ce649['createdAt'],_0xf1efdf['author']=_0x52d64b,_0xf1efdf['isExternal']=!0x0;}else _0xf1efdf['authoredAt']=_0x4a5301['createdAt'];switch(_0x4a5301['data']&&(_0xf1efdf['data']=_0x4a5301['data']),_0x4a5301['attributes']&&(_0xf1efdf['attributes']=_0x4a5301['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xf1efdf['_saved']=!0x0),this['_suggestionState']['get'](_0xf1efdf)){case'notReady':this['_suggestionState']['set'](_0xf1efdf,'dataReady');break;case'markerReady':_0xf1efdf['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xf1efdf])),this['_refreshSuggestionsChain'](new Set([_0xf1efdf])),this['_suggestionState']['set'](_0xf1efdf,'ready'),this['fire']('suggestionLoaded',_0xf1efdf)):this['_suggestionState']['set'](_0xf1efdf,'removed');}return _0xf1efdf;}['acceptSuggestion'](_0x4e7f77){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x163139 of _0x4e7f77['getAllAdjacentSuggestions']())_0x163139['accept']();});});}['discardSuggestion'](_0x241e6a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x36ccf8 of _0x241e6a['getAllAdjacentSuggestions']())_0x36ccf8['discard']();});});}['enableCommand'](_0x9e8bd0,_0x6108dc){const _0x1ed6b4=this['editor']['commands']['get'](_0x9e8bd0);if(!_0x1ed6b4)throw new _0x25a256('track-changes-command-not-found',this,{'commandName':_0x9e8bd0});if(this['_enabledCommands']['has'](_0x1ed6b4))throw new _0x25a256('track-changes-enable-command-twice',this,{'commandName':_0x9e8bd0});this['_enabledCommands']['add'](_0x1ed6b4),_0x6108dc&&_0x1ed6b4['on']('execute',(_0x6b7a3d,_0x30dea2)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x30dea2['length']>0x0&&_0x30dea2[_0x30dea2['length']-0x1]&&_0x30dea2[_0x30dea2['length']-0x1]['forceDefaultExecution']?_0x30dea2['pop']():(_0x6b7a3d['return']=_0x6108dc((..._0x27a45b)=>_0x1ed6b4['execute'](..._0x27a45b,{'forceDefaultExecution':!0x0}),..._0x30dea2),_0x6b7a3d['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x58c8c5){let _0x345565,_0x349acb;const _0x354d48=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x345565=_0x58c8c5();}catch(_0x438fff){_0x349acb=_0x438fff;}return _0x354d48||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x349acb&&_0x25a256['rethrowUnexpectedError'](_0x349acb,this),_0x345565;}['markInsertion'](_0x4db01c,_0x2a870c=null,_0x401e31={}){if(_0x4db01c['isCollapsed'])return null;const _0x44d03c=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x401e31['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5be4e9,meta:_0x108759}of this['_findSuggestions'](_0x4db01c,'insertion'))if(_0x108759['isOwn']){if(!_0x108759['isNextTo']){if(_0x108759['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!cn(_0x5be4e9,_0x401e31))continue;return _0x5be4e9;}if(cn(_0x5be4e9,_0x401e31))return _0x5be4e9;this['_breakSuggestionMarker'](_0x5be4e9,_0x4db01c['start'],_0x4db01c['end']);break;}if(_0x2a870c==_0x5be4e9['subType']&&cn(_0x5be4e9,_0x401e31)){const _0x44ff13=_0x5be4e9['getFirstRange']();return _0x44ff13['start']['isEqual'](_0x4db01c['end'])?this['_setSuggestionRange'](_0x5be4e9,this['_model']['createRange'](_0x4db01c['start'],_0x44ff13['end'])):this['_setSuggestionRange'](_0x5be4e9,this['_model']['createRange'](_0x44ff13['start'],_0x4db01c['end'])),_0x5be4e9;}}const _0xcf11c7=_0x5b022c(),_0xd8009d=_0x44d03c['id'],_0x58c2f1=_0x2a870c?'insertion:'+_0x2a870c:'insertion',_0xefbccc=this['_setSuggestionData']({'id':_0xcf11c7,'type':_0x58c2f1,'createdAt':new Date(),'authorId':_0xd8009d,'attributes':_0x401e31});return this['_addSuggestionMarker'](_0x58c2f1,_0xcf11c7,_0xd8009d,_0x4db01c),_0xefbccc;}['markMultiRangeInsertion'](_0x46262a,_0x5728ed='multi',_0xc07286={}){const _0x3d78ae=this['editor']['plugins']['get']('Users')['me'],_0x2f896b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5728ed,'join');this['_trackingSessionId']&&(_0xc07286['trackingSessionId']=this['_trackingSessionId']);for(const _0x470811 of this['getSuggestions']())if(_0x470811['author']['id']==_0x3d78ae['id']&&'insertion'==_0x470811['type']&&_0x470811['subType']==_0x5728ed&&cn(_0x470811,_0xc07286)&&(_0x2f896b(_0x470811['getRanges'](),_0x46262a)||_0x2f896b(_0x46262a,_0x470811['getRanges']()))){for(const _0x5243c5 of _0x46262a)_0x470811['addRange'](_0x5243c5);return _0x470811;}for(const {suggestion:_0x2b18bd,meta:_0x37430b}of this['_findSuggestions'](_0x46262a,'insertion')){if(!_0x37430b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x37430b['containsRangeInObject'])continue;if(!cn(_0x2b18bd,_0xc07286))continue;let _0x5b6592=!0x0;for(const _0x42dc63 of _0x2b18bd['getRanges']())for(const _0xbd9c11 of _0x46262a)if(!_0x42dc63['containsRange'](_0xbd9c11)){_0x5b6592=!0x1;break;}if(_0x5b6592)return _0x2b18bd;}const _0x70b53f=_0x5b022c(),_0x310a7f=_0x3d78ae['id'],_0x3ef0dd='insertion:'+_0x5728ed,_0x4a745f=this['_setSuggestionData']({'id':_0x70b53f,'type':_0x3ef0dd,'createdAt':new Date(),'authorId':_0x310a7f,'attributes':_0xc07286});for(const _0x1868b1 of _0x46262a)this['_addSuggestionMarker'](_0x3ef0dd,_0x70b53f,_0x310a7f,_0x1868b1,bt['getMultiRangeId']());return _0x4a745f;}['markInlineFormat'](_0x27c3cf,_0x1bcc3d,_0x53b9c9=null,_0x240f03={}){if(_0x53b9c9=_0x53b9c9||Je(_0x1bcc3d),_0x27c3cf['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x240f03['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x40b6e1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x53b9c9,'accept');return this['forceDefaultExecution'](()=>_0x40b6e1([_0x27c3cf],_0x1bcc3d,_0x240f03)),null;}const _0x16201f=this['editor']['plugins']['get']('Users')['me'],_0x178f0a=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4ea107,meta:_0x17cc8e}of this['_findSuggestions'](_0x27c3cf,'insertion'))_0x17cc8e['isOwn']&&!_0x17cc8e['isInsideObject']&&_0x178f0a['push'](..._0x4ea107['getRanges']());}const _0x40b6bf=function(_0x1a3bcf,_0x3a5b7b){const _0x58f3d6=[];for(const _0x436bbc of _0x3a5b7b){const _0x542b85=_0x1a3bcf['getIntersection'](_0x436bbc);_0x542b85&&_0x58f3d6['push'](_0x542b85);}return _0x58f3d6;}(_0x27c3cf,_0x178f0a),_0x4e1e74=function(_0x81375a,_0x1e1a1c){const _0x2cec11=[_0x81375a];for(const _0x1c651b of _0x1e1a1c){let _0x382c34=0x0;for(;_0x382c34<_0x2cec11['length'];){const _0x2040ec=_0x2cec11[_0x382c34]['getDifference'](_0x1c651b);_0x2cec11['splice'](_0x382c34,0x1,..._0x2040ec),_0x382c34+=_0x2040ec['length'];}}return _0x2cec11;}(_0x27c3cf,_0x178f0a);_0x40b6bf['length']&&this['_model']['change'](()=>{for(const _0xd99aa1 of _0x40b6bf){const _0x5b530f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x53b9c9,'accept');this['forceDefaultExecution'](()=>_0x5b530f([_0xd99aa1],_0x1bcc3d,_0x240f03));}});for(const _0x2f95e2 of _0x4e1e74){let _0x13d895=null,_0x1b2913=_0x2f95e2['start'],_0x387818=_0x2f95e2['end'];for(const {suggestion:_0x3e4424,meta:_0x1cfed1}of this['_findSuggestions'](_0x2f95e2,'formatInline')){if(!_0x1cfed1['isOwn'])continue;if(_0x3e4424['subType']!=_0x53b9c9)continue;if(!cn(_0x3e4424,_0x240f03))continue;const _0x102e65=_0x3e4424['getFirstRange']();if(_0x102e65['containsRange'](_0x2f95e2,!0x0))return null;_0x1b2913=_0x1b2913['isBefore'](_0x102e65['start'])?_0x1b2913:_0x102e65['start'],_0x387818=_0x387818['isAfter'](_0x102e65['end'])?_0x387818:_0x102e65['end'],_0x13d895?_0x102e65['start']['isBefore'](_0x13d895['getFirstRange']()['start'])?(_0x13d895['removeMarkers'](),_0x13d895=_0x3e4424):_0x3e4424['removeMarkers']():_0x13d895=_0x3e4424;}const _0x492801=this['_model']['createRange'](_0x1b2913,_0x387818);if(_0x13d895)this['_setSuggestionRange'](_0x13d895,_0x492801);else{const _0x13c622=_0x5b022c(),_0x11ed49=_0x16201f['id'];this['_setSuggestionData']({'id':_0x13c622,'type':'formatInline:'+_0x53b9c9,'data':_0x1bcc3d,'createdAt':new Date(),'authorId':_0x11ed49,'attributes':_0x240f03}),this['_addSuggestionMarker']('formatInline:'+_0x53b9c9,_0x13c622,_0x11ed49,_0x492801);}}return null;}['markBlockFormat'](_0x31341b,_0x30afb7,_0x40de66=[],_0x152779=null,_0x37c3e3={}){_0x30afb7['formatGroupId']||(_0x30afb7['formatGroupId']=_0x30afb7['commandName']),_0x30afb7['multipleBlocks']=_0x31341b['is']('range'),_0x152779=_0x152779||Je(_0x30afb7);const _0x2bf0e1=_0x40de66['map'](_0x8ef399=>rn(_0x8ef399,this['_model'])),_0x1a3b54=_0x31341b['is']('range')?_0x31341b:rn(_0x31341b,this['_model']);if(this['_trackingSessionId']&&(_0x37c3e3['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3470f7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x152779,'accept');return this['forceDefaultExecution'](()=>_0x3470f7([_0x1a3b54],_0x30afb7,_0x37c3e3)),null;}_0x2bf0e1['push'](_0x1a3b54);let _0x4ec6e0=!0x0;for(const _0x172ad8 of _0x2bf0e1)if(!this['_rangeIsInLocalUserInsertion'](_0x172ad8)){_0x4ec6e0=!0x1;break;}if(_0x4ec6e0&&'always'!==this['_trackFormatChanges']){const _0x1b0d7d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x152779,'accept');return this['forceDefaultExecution'](()=>_0x1b0d7d([_0x1a3b54],_0x30afb7,_0x37c3e3)),null;}let _0x2a07f9=null,_0x4f60c0=_0x1a3b54['start'],_0x54e20d=_0x1a3b54['end'];for(const {suggestion:_0x5a5b54,meta:_0x4ed322}of this['_findSuggestions'](_0x1a3b54,'formatBlock')){if(!_0x4ed322['isOwn'])continue;if(_0x4ed322['isNextTo']||_0x4ed322['containsRangeInObject']||_0x4ed322['isInsideObject'])continue;if(_0x5a5b54['data']['formatGroupId']!=_0x30afb7['formatGroupId'])continue;if(!cn(_0x5a5b54,_0x37c3e3))continue;const _0x567453=_0x5a5b54['getFirstRange']();if(_0x5a5b54['subType']==_0x152779){if(_0x567453['containsRange'](_0x1a3b54,!0x0))return null;_0x4f60c0=_0x4f60c0['isBefore'](_0x567453['start'])?_0x4f60c0:_0x567453['start'],_0x54e20d=_0x54e20d['isAfter'](_0x567453['end'])?_0x54e20d:_0x567453['end'],_0x2a07f9?_0x567453['start']['isBefore'](_0x2a07f9['getFirstRange']()['start'])?(_0x2a07f9['removeMarkers'](),_0x2a07f9=_0x5a5b54):_0x5a5b54['removeMarkers']():_0x2a07f9=_0x5a5b54;}else{const _0x8256bb=_0x1a3b54['getIntersection'](_0x567453);this['_cutOutSuggestionMarker'](_0x5a5b54,_0x8256bb);}}const _0x4481e6=this['editor']['plugins']['get']('Users')['me'],_0x2b71d3=_0x5b022c(),_0x38f60f=_0x4481e6['id'];if(_0x2a07f9)return this['_setSuggestionRange'](_0x2a07f9,this['_model']['createRange'](_0x4f60c0,_0x54e20d)),_0x2a07f9;{const _0x51c461=this['_setSuggestionData']({'id':_0x2b71d3,'type':'formatBlock:'+_0x152779,'data':_0x30afb7,'createdAt':new Date(),'authorId':_0x38f60f,'attributes':_0x37c3e3});return this['_addSuggestionMarker']('formatBlock:'+_0x152779,_0x2b71d3,_0x38f60f,this['_model']['createRange'](_0x4f60c0,_0x54e20d)),_0x51c461;}}['markMultiRangeBlockFormat'](_0x308137,_0x430028,_0x3129aa=[],_0x520c73=null,_0x522a25={}){_0x430028['formatGroupId']||(_0x430028['formatGroupId']=_0x430028['commandName']);const _0x4ff446=_0x308137[0x0];_0x430028['multipleBlocks']=_0x4ff446['is']('range'),_0x520c73=_0x520c73||Je(_0x430028);const _0x526053=_0x3129aa['map'](_0xe1861e=>rn(_0xe1861e,this['_model'])),_0x4dfcda=_0x4ff446['is']('range')?_0x308137:_0x308137['map'](_0x17a64d=>rn(_0x17a64d,this['_model']));if(this['_trackingSessionId']&&(_0x522a25['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2a6230=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x520c73,'accept');return this['forceDefaultExecution'](()=>_0x2a6230(_0x4dfcda,_0x430028,_0x522a25)),null;}_0x526053['push'](..._0x4dfcda);let _0x4fca43=!0x0;for(const _0x514528 of _0x526053)if(!this['_rangeIsInLocalUserInsertion'](_0x514528)){_0x4fca43=!0x1;break;}if(_0x4fca43&&'always'!==this['_trackFormatChanges']){const _0x34b189=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x520c73,'accept');return this['forceDefaultExecution'](()=>_0x34b189(_0x4dfcda,_0x430028,_0x522a25)),null;}const _0x3d8b3c=this['editor']['plugins']['get']('Users')['me'];for(const _0x3937e9 of this['getSuggestions']()){const _0x294c9f=_0x3937e9['data'];if(_0x3937e9['author']['id']!=_0x3d8b3c['id'])continue;if('formatBlock'!=_0x3937e9['type']||_0x294c9f['formatGroupId']!=_0x430028['formatGroupId'])continue;if(!cn(_0x3937e9,_0x522a25))continue;const _0x2203d8=_0x3937e9['subType']==_0x520c73;for(let _0x2b9049=0x0;_0x2b9049<_0x4dfcda['length'];_0x2b9049++){const _0x7422fc=_0x4dfcda[_0x2b9049];for(const _0x27929d of _0x3937e9['getMarkers']()){const _0x46112e=_0x27929d['getRange']();if(_0x7422fc['isEqual'](_0x46112e)){_0x2203d8?(_0x4dfcda['splice'](_0x2b9049,0x1),_0x2b9049--):_0x3937e9['removeMarker'](_0x27929d['name']);break;}}}}if(0x0==_0x4dfcda['length'])return null;const _0x3b1ed5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x520c73,'join');for(const _0x130232 of this['getSuggestions']()){const _0x15e141=_0x130232['data'];if(_0x130232['author']['id']==_0x3d8b3c['id']&&('formatBlock'==_0x130232['type']&&_0x15e141['formatGroupId']==_0x430028['formatGroupId']&&_0x130232['subType']==_0x520c73&&cn(_0x130232,_0x522a25)&&(_0x3b1ed5(_0x130232['getRanges'](),_0x4dfcda)||_0x3b1ed5(_0x4dfcda,_0x130232['getRanges']())))){for(const _0x244dd9 of _0x4dfcda)_0x130232['addRange'](_0x244dd9);return _0x130232;}}const _0x531ab6=_0x5b022c(),_0x45a4fb=_0x3d8b3c['id'],_0x178618='formatBlock:'+_0x520c73,_0x5e9c6f=this['_setSuggestionData']({'id':_0x531ab6,'type':_0x178618,'data':_0x430028,'createdAt':new Date(),'authorId':_0x45a4fb,'attributes':_0x522a25});for(const _0xeb6e15 of _0x4dfcda)this['_addSuggestionMarker'](_0x178618,_0x531ab6,_0x45a4fb,_0xeb6e15,bt['getMultiRangeId']());return _0x5e9c6f;}['markDeletion'](_0x3bd45d,_0xaadd7e=null,_0x3fdece={}){if(_0x3bd45d['isCollapsed'])return null;const _0x62a23d=this['editor']['plugins']['get']('Users')['me'],_0xf0da3a=new _0x5817c4(_0x3bd45d['start'],_0x3bd45d['end']);this['_trackingSessionId']&&(_0x3fdece['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2d196b,meta:_0x5850f1}of this['_findSuggestions'](_0xf0da3a,'insertion'))if(_0x5850f1['isOwn']&&!_0x5850f1['isNextTo']){if(_0x2d196b['isMultiRange']){const _0x363d8c=_0x2d196b['getRanges']()['filter'](_0x5adbce=>'$graveyard'!=_0x5adbce['root']['rootName']);_0x363d8c['every'](_0xfafc12=>_0xf0da3a['containsRange'](_0xfafc12,!0x0))&&_0x2d196b['discard']();if(_0x363d8c['some'](_0xe64947=>_0xe64947['containsRange'](_0xf0da3a,!0x0))){const _0x25a249=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xaadd7e,'accept');return this['forceDefaultExecution'](()=>_0x25a249([_0xf0da3a],null,_0x3fdece)),null;}}else{const _0x4f714b=_0xf0da3a['getIntersection'](_0x2d196b['getFirstRange']());null!==_0x4f714b&&_0x2d196b['_onDiscard']([_0x4f714b],null,_0x3fdece);}}if(_0xf0da3a['detach'](),_0xf0da3a['isCollapsed']||'$graveyard'==_0xf0da3a['root']['rootName'])return null;let _0x189566=null,_0x446c5e=_0xf0da3a['start'],_0x232315=_0xf0da3a['end'];const _0x14ad71=this['_findSuggestions'](_0xf0da3a,'deletion');for(const {suggestion:_0x1d0543,meta:_0x44ee05}of _0x14ad71){const _0x1abf81=this['_model']['createRange'](_0x446c5e,_0x232315);if(_0x44ee05['isOwn']&&(this['_mergeNestedSuggestions']||!_0x44ee05['containsRangeInObject']&&!_0x44ee05['isInsideObject'])){if(_0x1d0543['isMultiRange']){if(!cn(_0x1d0543,_0x3fdece))continue;let _0x534b10=!0x0;for(const _0x414fb0 of _0x1d0543['getRanges']()){if(_0x414fb0['containsRange'](_0x1abf81,!0x0))return _0x1d0543;_0x1abf81['containsRange'](_0x414fb0)||(_0x534b10=!0x1);}_0x534b10&&_0x1d0543['discard']();}else{const _0xb53472=_0x1d0543['getFirstRange']();if(_0xb53472['containsRange'](_0x1abf81,!0x0))return _0x1d0543;if(!cn(_0x1d0543,_0x3fdece)){_0x1abf81['containsRange'](_0xb53472)?_0x1d0543['removeMarkers']():_0xb53472['containsPosition'](_0x446c5e)?_0x446c5e=_0xb53472['end']:_0xb53472['containsPosition'](_0x232315)&&(_0x232315=_0xb53472['start']);continue;}_0x446c5e=_0x446c5e['isBefore'](_0xb53472['start'])?_0x446c5e:_0xb53472['start'],_0x232315=_0x232315['isAfter'](_0xb53472['end'])?_0x232315:_0xb53472['end'],_0x3fdece=Object['assign']({},_0x1d0543['attributes']),_0x189566?_0xb53472['start']['isBefore'](_0x189566['getFirstRange']()['start'])?(_0x189566['removeMarkers'](),_0x189566=_0x1d0543):_0x1d0543['removeMarkers']():_0x189566=_0x1d0543;}}}if(_0x189566)return this['_setSuggestionRange'](_0x189566,this['_model']['createRange'](_0x446c5e,_0x232315)),_0x189566;{const _0x159db8=_0x5b022c(),_0x1221dc=this['_model']['createRange'](_0x446c5e,_0x232315),_0x2be5ab=_0x62a23d['id'],_0x327af6=_0xaadd7e?'deletion:'+_0xaadd7e:'deletion',_0x14eff7=this['_setSuggestionData']({'id':_0x159db8,'type':_0x327af6,'createdAt':new Date(),'authorId':_0x2be5ab,'attributes':_0x3fdece});return this['_addSuggestionMarker'](_0x327af6,_0x159db8,_0x2be5ab,_0x1221dc),_0x14eff7;}}['markMultiRangeDeletion'](_0x1c6675,_0x4457a='multi',_0x1fc451={}){const _0x314e3c=this['editor']['plugins']['get']('Users')['me'],_0xd5360a=_0x1c6675['map'](_0x4ec4ac=>new _0x5817c4(_0x4ec4ac['start'],_0x4ec4ac['end'])),_0x3fc047=new Set();this['_trackingSessionId']&&(_0x1fc451['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x14bc06,meta:_0x145572}of this['_findSuggestions'](_0xd5360a,'insertion'))_0x145572['isOwn']&&!_0x145572['isNextTo']&&_0x3fc047['add'](_0x14bc06);for(const _0x298cee of _0x3fc047)if(_0x298cee['isMultiRange']){const _0x15724a=_0x298cee['getRanges']();(!_0x298cee['attributes']||!_0x298cee['attributes']['skipNestingCheck'])&&(_0x15724a['every'](_0x5ab9c0=>_0xd5360a['some'](_0x2d9048=>_0x2d9048['containsRange'](_0x5ab9c0,!0x0)))&&_0x298cee['discard']());if(_0xd5360a['every'](_0x2dcfaa=>_0x15724a['some'](_0x4106c6=>_0x4106c6['containsRange'](_0x2dcfaa,!0x0)))){const _0x261c46=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4457a,'accept');return this['forceDefaultExecution'](()=>_0x261c46(_0x1c6675,null,_0x1fc451)),null;}}else{const _0x5f0710=_0x298cee['getFirstRange']();_0xd5360a['some'](_0x43bc93=>_0x43bc93['containsRange'](_0x5f0710,!0x0))&&_0x298cee['discard']();if(_0xd5360a['every'](_0x484fec=>_0x5f0710['containsRange'](_0x484fec,!0x0))){const _0x217091=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4457a,'accept');return this['forceDefaultExecution'](()=>_0x217091(_0xd5360a,null,_0x1fc451)),null;}}const _0x2fdf35=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4457a,'join');let _0x398eb1=null;for(const _0x551e02 of this['getSuggestions']())if(_0x551e02['author']['id']==_0x314e3c['id']&&_0x551e02['isInContent']&&'deletion'==_0x551e02['type']&&_0x551e02['subType']==_0x4457a&&cn(_0x551e02,_0x1fc451)&&(_0x2fdf35(_0x551e02['getRanges'](),_0xd5360a)||_0x2fdf35(_0xd5360a,_0x551e02['getRanges']()))){if(_0x398eb1){if(_0x551e02['commentThread']&&_0x551e02['commentThread']['length'])continue;for(const _0x5b5554 of _0x551e02['getRanges']())_0x398eb1['isIntersectingWithRange'](_0x5b5554)||_0x398eb1['addRange'](_0x5b5554);_0x551e02['removeMarkers']();}else{_0x398eb1=_0x551e02;for(const _0x2dc023 of _0xd5360a)_0x551e02['isIntersectingWithRange'](_0x2dc023)||_0x551e02['addRange'](_0x2dc023);}}if(_0x398eb1)return _0x398eb1;_0x3fc047['clear']();for(const {suggestion:_0x3ae281,meta:_0x91b621}of this['_findSuggestions'](_0xd5360a,'deletion'))_0x91b621['isOwn']&&(this['_mergeNestedSuggestions']||!_0x91b621['containsRangeInObject']&&!_0x91b621['isInsideObject'])&&cn(_0x3ae281,_0x1fc451)&&_0x3fc047['add'](_0x3ae281);for(const _0xf83c4f of _0x3fc047){const _0x382fde=_0xf83c4f['getRanges']();if(!_0x1fc451||!_0x1fc451['skipNestingCheck']){if(_0xd5360a['every'](_0x25ecf9=>_0x382fde['some'](_0xb3abe8=>_0xb3abe8['containsRange'](_0x25ecf9,!0x0))))return _0xf83c4f;}(!_0xf83c4f['attributes']||!_0xf83c4f['attributes']['skipNestingCheck'])&&(_0x382fde['every'](_0x281d01=>_0xd5360a['some'](_0x17d926=>_0x17d926['containsRange'](_0x281d01,!0x0)))&&_0xf83c4f['discard']());}const _0x395b68=_0x5b022c(),_0x591ab3=_0x314e3c['id'],_0x1d0713='deletion:'+_0x4457a,_0x4b0154=this['_setSuggestionData']({'id':_0x395b68,'type':_0x1d0713,'createdAt':new Date(),'authorId':_0x591ab3,'attributes':_0x1fc451});for(const _0x22ed8c of _0xd5360a)_0x22ed8c['detach'](),_0x22ed8c['isCollapsed']||'$graveyard'==_0x22ed8c['root']['rootName']||this['_addSuggestionMarker'](_0x1d0713,_0x395b68,_0x591ab3,_0x22ed8c,bt['getMultiRangeId']());return _0x4b0154;}['markAttributeChange'](_0x5cb94d,_0x26c975,_0x4a9db7,_0x1a1571,_0x5e2e03){if(_0x5cb94d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x8e9d9d=this['editor']['plugins']['get']('Users')['me']['id'],_0x178b89=Array['from'](this['_suggestions']['values']())['filter'](_0x34f13d=>'attribute'==_0x34f13d['type']&&_0x34f13d['data']['key']==_0x26c975&&_0x34f13d['isIntersectingWithRange'](_0x5cb94d));if(this['_trackingSessionId']&&(_0x5e2e03['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4784b3=this['_findSuggestions'](_0x5cb94d,'insertion')['filter'](({meta:_0x1ffb60})=>_0x1ffb60['isOwn']&&!_0x1ffb60['isInsideObject']&&!_0x1ffb60['isNextTo'])['map'](({suggestion:_0x3afcc9})=>_0x3afcc9);_0x178b89['unshift'](..._0x4784b3);}const _0x1cba87=new Map([[_0x5cb94d,_0x4a9db7]]);for(const _0x346233 of _0x178b89){const _0x538e19='attribute'==_0x346233['type']?_0x346233['data']['oldValue']:void 0x0,_0x364960=_0x346233['getFirstRange'](),_0x566561=Array['from'](_0x1cba87['keys']())['find'](_0x126115=>_0x126115['isIntersecting'](_0x364960));if(!_0x566561)continue;const _0x5be531=_0x566561['getDifference'](_0x364960);this['_suggestionsConversion']['isBlockAttribute'](_0x26c975)&&'insertion'==_0x346233['type']&&0x0!=_0x5be531['length']||(_0x1cba87['delete'](_0x566561),_0x5be531['forEach'](_0x4a86de=>{_0x1cba87['set'](_0x4a86de,_0x4a9db7);}),'insertion'!=_0x346233['type']&&_0x538e19!=_0x1a1571&&_0x1cba87['set'](_0x566561['getIntersection'](_0x364960),_0x538e19));}const _0x4717eb=[];for(const [_0x1f8e52,_0x196172]of _0x1cba87){const _0x58b8df=_0x5b022c(),_0x5cbd0f={'key':_0x26c975,'oldValue':_0x196172,'newValue':_0x1a1571};_0x26c975['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':_0x26c975});const _0x3d524a=('attribute:'+(_0x26c975+'|'+Je({'newValue':_0x1a1571})))['substring'](0x0,0x3c),_0x509179=this['_setSuggestionData']({'id':_0x58b8df,'type':_0x3d524a,'data':_0x5cbd0f,'createdAt':new Date(),'authorId':_0x8e9d9d,'attributes':_0x5e2e03});_0x4717eb['push'](_0x509179),this['_addSuggestionMarker'](_0x3d524a,_0x58b8df,_0x8e9d9d,_0x1f8e52);}return _0x4717eb;}['enableDefaultAttributesIntegration'](_0x53d338){this['enableCommand'](_0x53d338,(_0x1c7ae2,..._0x46d660)=>{this['recordAttributeChanges'](()=>{_0x1c7ae2(..._0x46d660);});});}['startTrackingSession'](_0x24746e){return this['_trackingSessionId']=void 0x0!==_0x24746e?_0x24746e:_0x5b022c(),this['_trackingSessionId'];}['_getAttributeKey'](_0x4f216c){return'attribute'==_0x4f216c['type']?un(_0x4f216c['subType']):null;}['_applyOperationsAsSuggestions'](_0x381549){if(0x0==_0x381549['length'])return;const _0x5bbfdb=this['editor'],_0x152305=_0x5bbfdb['plugins']['get'](_0x188216),_0xabfa5=[];_0x5bbfdb['model']['change'](_0x4b31b7=>{for(let _0x2fa06a=0x0;_0x2fa06a<_0x381549['length'];_0x2fa06a++){const _0x2c4232=_0x381549[_0x2fa06a];if(_0x2c4232['baseVersion']=_0x5bbfdb['model']['document']['version'],_0x2c4232['isDocumentOperation']=!0x0,_0x152305['isMarkedRemoveOperation'](_0x2c4232)){const _0xc99140=_0x710431(_0x2c4232['newRange'],_0x5bbfdb['model']);_0xabfa5['unshift'](_0x5817c4['fromRange'](_0xc99140));}else switch(_0x2c4232['type']){case'rename':{const _0x124da9=_0x2c4232['oldName'],_0x4dcfb0=_0x2c4232['newName'];if(_0x124da9==_0x4dcfb0)break;_0x4b31b7['batch']['addOperation'](_0x2c4232),_0x5bbfdb['model']['applyOperation'](_0x2c4232);const _0x40c6c6='$elementName',_0x240212=_0x2c4232['position'],_0x1fdecd=_0x5bbfdb['model']['createRange'](_0x240212,_0x5bbfdb['model']['createPositionAt'](_0x240212['nodeAfter'],'end'));this['markAttributeChange'](_0x1fdecd,_0x40c6c6,_0x124da9,_0x4dcfb0,{'groupId':_0x5b022c()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x4d5e27=_0x2c4232['oldValue'],_0x4db7e9=_0x2c4232['newValue'];if(_0x4d5e27==_0x4db7e9)break;_0x4b31b7['batch']['addOperation'](_0x2c4232),_0x5bbfdb['model']['applyOperation'](_0x2c4232);const _0x814d75=_0x2c4232['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x814d75))break;const _0x5a7b72=_0x710431(_0x2c4232['range'],_0x5bbfdb['model']);this['markAttributeChange'](_0x5a7b72,_0x814d75,_0x4d5e27,_0x4db7e9,{'groupId':_0x5b022c()});break;}case'insert':{_0x4b31b7['batch']['addOperation'](_0x2c4232),_0x5bbfdb['model']['applyOperation'](_0x2c4232);if(_0x381549[_0x2fa06a+0x1]&&'move'==_0x381549[_0x2fa06a+0x1]['type'])break;const _0x274ddf=_0x2c4232['position'],_0x3e772b=_0x2c4232['howMany'],_0x4e9613=_0x710431(_0x5bbfdb['model']['createRange'](_0x274ddf,_0x274ddf['getShiftedBy'](_0x3e772b)),_0x5bbfdb['model']);this['markInsertion'](_0x4e9613);break;}case'split':{_0x4b31b7['batch']['addOperation'](_0x2c4232),_0x5bbfdb['model']['applyOperation'](_0x2c4232);const _0x4dc7f6=_0x2c4232['splitPosition'],_0x10ad48=_0x2c4232['moveTargetPosition'];this['markInsertion'](_0x5bbfdb['model']['createRange'](_0x4dc7f6,_0x10ad48));break;}case'move':case'remove':_0x4b31b7['batch']['addOperation'](_0x2c4232),_0x5bbfdb['model']['applyOperation'](_0x2c4232);}}for(const _0x22d106 of _0xabfa5)_0x22d106['detach'](),this['markDeletion'](_0x22d106);});}['_setSuggestionRange'](_0x59e0a7,_0xac47d8){const _0xa77f33=_0x59e0a7['getFirstMarker']();this['_model']['change'](_0x2a9d8d=>{_0x2a9d8d['updateMarker'](_0xa77f33,{'range':_0xac47d8});});}['_addThreadToSuggestion'](_0x2916e5){const _0xd3d67a=_0x2916e5['id'],_0x463eba=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xd3d67a)||this['_commentsRepository']['addCommentThread']({'channelId':_0x463eba,'threadId':_0xd3d67a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1e0143=this['_commentsRepository']['getCommentThread'](_0xd3d67a);_0x1e0143['unbind']('isRemovable'),_0x1e0143['isRemovable']=!0x1,_0x2916e5['commentThread']=_0x1e0143;}['_checkSuggestionCorrectness'](_0x2531f0,_0x4d8049,_0x32c841,_0x162f42){if(_0x2531f0['type']!=_0x4d8049||_0x2531f0['subType']!=_0x32c841||_0x2531f0['creator']['id']!=_0x162f42)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x25a256('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xb7eb9a,_0x5699f6){const _0xd98e3e=_0xb7eb9a['getFirstRange']();if(_0x5699f6['isEqual'](_0xd98e3e))_0xb7eb9a['removeMarkers']();else{if(_0xd98e3e['containsRange'](_0x5699f6)){const _0x2341b0=this['_model']['createPositionAt'](_0x5699f6['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xb7eb9a,this['_model']['createRange'](_0xd98e3e['start'],_0x2341b0));const _0x29fc30=_0x5b022c(),_0x2654b7=_0xb7eb9a['creator']['id'],_0x33ec73=_0xb7eb9a['type']+':'+_0xb7eb9a['subType'];this['_setSuggestionData']({'id':_0x29fc30,'type':_0x33ec73,'createdAt':new Date(),'authorId':_0x2654b7,'data':_0xb7eb9a['data'],'attributes':_0xb7eb9a['attributes']});const _0x19f963=this['_model']['createPositionAt'](_0x5699f6['end']['parent'],'after'),_0x253571=this['_model']['createRange'](_0x19f963,_0xd98e3e['end']);this['_addSuggestionMarker'](_0x33ec73,_0x29fc30,_0x2654b7,_0x253571);}else{if(_0xd98e3e['containsPosition'](_0x5699f6['start'])){const _0x243e0b=this['_model']['createPositionAt'](_0x5699f6['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xb7eb9a,this['_model']['createRange'](_0xd98e3e['start'],_0x243e0b));}else{const _0x10bbce=this['_model']['createPositionAt'](_0x5699f6['end']['parent'],'after');this['_setSuggestionRange'](_0xb7eb9a,this['_model']['createRange'](_0x10bbce,_0xd98e3e['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xaf5bcd){for(const {suggestion:_0x458e5f,meta:_0x53e016}of this['_findSuggestions'](_0xaf5bcd,'insertion')){if(!_0x53e016['isOwn'])continue;const _0x32200c=_0x458e5f['getRanges']();for(const _0x3da6fa of _0x32200c)if(!_0xaf5bcd['getDifference'](_0x3da6fa)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x36afba){return this['editor']['plugins']['get']('Users')['getUser'](_0x36afba);}['_getExternalAuthor'](_0x4a8e11){const _0x5574c6=this['editor']['plugins']['get']('Users'),_0x28fd1d=_0x550e9b('external:'+_0x4a8e11),_0x2a99b0=_0x5574c6['getUser'](_0x28fd1d);return _0x2a99b0||_0x5574c6['addUser']({'id':_0x28fd1d,'name':_0x4a8e11});}['_createSuggestion'](_0x268c74,_0x2ebe35,_0x5b318b,_0x1de338,_0x28ef34,_0x5a0358){const _0x40504a=this['_getAuthorFromId'](_0x1de338);if(!_0x40504a)throw new _0x25a256('track-changes-user-not-found',this,{'authorId':_0x1de338,'suggestionId':_0x5b318b});const _0x12ce5f=this['_suggestionFactory']['buildSuggestion'](_0x268c74,_0x2ebe35,_0x5b318b,_0x40504a,_0x28ef34,_0x36b689=>{this['_updateSuggestionData'](_0x5b318b,{'attributes':_0x36b689});const _0x1daea2=this['getSuggestion'](_0x5b318b);this['_joinWithAdjacentSuggestions'](new Set([_0x1daea2])),this['_refreshSuggestionsChain'](new Set([_0x1daea2]));},_0x5a0358);return this['listenTo'](_0x12ce5f,'accept',()=>{this['_updateSuggestionData'](_0x5b318b,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x12ce5f,'discard',()=>{this['_updateSuggestionData'](_0x5b318b,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5b318b,_0x12ce5f),this['_suggestionState']['set'](_0x12ce5f,'notReady'),_0x12ce5f;}['_breakSuggestionMarker'](_0x6a4dd,_0x459a7e,_0x31cc77){const _0x529800=_0x6a4dd['getFirstRange'](),_0x2a7598=_0x529800['start'],_0x5a43d6=_0x529800['end'];this['_setSuggestionRange'](_0x6a4dd,this['_model']['createRange'](_0x2a7598,_0x459a7e));const _0x1c2e0d=_0x5b022c(),_0x40c185=_0x6a4dd['creator']['id'],_0x15c0f5=_0x6a4dd['type']+(_0x6a4dd['subType']?':'+_0x6a4dd['subType']:'');this['_setSuggestionData']({'id':_0x1c2e0d,'type':_0x15c0f5,'createdAt':new Date(),'authorId':_0x40c185,'originalSuggestionId':_0x6a4dd['_originalSuggestionId']||_0x6a4dd['id'],'attributes':_0x6a4dd['attributes'],'data':_0x6a4dd['data']});const _0xc47c95=this['_getAttributeKey'](_0x6a4dd);('formatBlock'==_0x6a4dd['type']||_0xc47c95&&this['_suggestionsConversion']['isBlockAttribute'](_0xc47c95))&&(_0x31cc77=this['_model']['createPositionBefore'](_0x31cc77['parent'])),this['_addSuggestionMarker'](_0x15c0f5,_0x1c2e0d,_0x40c185,this['_model']['createRange'](_0x31cc77,_0x5a43d6));}['_findSuggestions'](_0x382f77,_0x3572ed=null){const _0x534357=[],_0x5ae0e7=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x382f77)||(_0x382f77=[_0x382f77]);for(const _0x3941c9 of this['getSuggestions']()){if(!_0x3941c9['isInContent'])continue;if(_0x3572ed&&_0x3941c9['type']!=_0x3572ed)continue;let _0x442489=!0x1;for(const _0x271210 of _0x3941c9['getRanges']()){for(const _0x39b7ae of _0x382f77){const _0x24d594=_0x39b7ae['start']['isEqual'](_0x271210['end'])||_0x39b7ae['end']['isEqual'](_0x271210['start']);if(_0x24d594||_0x39b7ae['getIntersection'](_0x271210)){const _0x2c9a00=_0x39b7ae['containsRange'](_0x271210)&&qe(this['_model']['schema'],_0x271210['start'],_0x39b7ae),_0x26ead4=_0x271210['containsRange'](_0x39b7ae)&&qe(this['_model']['schema'],_0x39b7ae['start'],_0x271210);_0x534357['push']({'suggestion':_0x3941c9,'meta':{'isOwn':_0x5ae0e7==_0x3941c9['author'],'isNextTo':_0x24d594,'isInsideObject':_0x2c9a00,'containsRangeInObject':_0x26ead4}}),_0x442489=!0x0;break;}}if(_0x442489)break;}}return _0x534357;}['_addSuggestionMarker'](_0x5c1ad1,_0xb5f360,_0x15f5c9,_0x3ffa2a,_0x51e041){this['_model']['change'](_0x5da951=>{let _0x41e827='suggestion:'+_0x5c1ad1+':'+_0xb5f360+':'+_0x15f5c9;_0x51e041&&(_0x41e827=_0x41e827+':'+_0x51e041),_0x5da951['addMarker'](_0x41e827,{'range':_0x3ffa2a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xaee796){const _0x28de5f=_0xaee796['previous'],_0x4f06e7=_0xaee796['next'];_0xaee796['previous']=null,_0xaee796['next']=null,null!=_0x28de5f&&_0x28de5f['next']==_0xaee796&&(_0x28de5f['next']=_0x4f06e7),null!=_0x4f06e7&&_0x4f06e7['previous']==_0xaee796&&(_0x4f06e7['previous']=_0x28de5f),'ready'==this['_suggestionState']['get'](_0xaee796)&&(this['_suggestionState']['set'](_0xaee796,'removed'),this['fire']('suggestionUnloaded',_0xaee796,_0x28de5f,_0x4f06e7));}['_setSuggestionData'](_0x35428c){const _0x5b351e=_0x35428c['id'],_0x24654b=this['addSuggestionData'](_0x35428c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x143eaa=this['editor']['plugins']['get']('PendingActions'),_0x5463ff=_0x24654b['hasComments'],_0x3620ba=_0x24654b['subType']?_0x24654b['type']+':'+_0x24654b['subType']:_0x24654b['type'],_0x9c61df=this['editor']['locale'],_0xde21f9=_0x143eaa['add'](At(_0x9c61df,'PENDING_ACTION_SUGGESTION')),_0x2949d9={'id':_0x5b351e,'type':_0x3620ba,'hasComments':_0x5463ff,'data':_0x35428c['data']||null,'originalSuggestionId':_0x35428c['originalSuggestionId']||null,'attributes':_0x24654b['attributes']};this['_adapter']['addSuggestion'](_0x2949d9)['then'](_0x29e8f7=>{_0x24654b['_saved']=!0x0,_0x143eaa['remove'](_0xde21f9),_0x29e8f7&&_0x29e8f7['createdAt']&&(this['_suggestions']['get'](_0x5b351e)['createdAt']=_0x29e8f7['createdAt']);})['catch'](_0x1e1401=>{throw _0x30e13e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x24654b['discard']();}),_0x24654b['stopListening'](),this['_suggestions']['delete'](_0x24654b['id']),this['_suggestionState']['delete'](_0x24654b),_0x1e1401;});}return _0x24654b;}['_updateSuggestionData'](_0x4037e2,_0x3b9d46){const _0x2a2858=this['editor']['plugins']['get']('PendingActions'),_0x3dda19=this['getSuggestion'](_0x4037e2);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3dda19['_saved']){const _0xc7aa07=_0x2a2858['add'](At(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4037e2,_0x3b9d46)['then'](()=>{_0x2a2858['remove'](_0xc7aa07);});}else _0x3dda19['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4037e2,_0x3b9d46);});}}['_getSuggestionData'](_0x2e2613){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x25a256('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2e2613);}['_handleNewSuggestionMarker'](_0x3e902b){const {id:_0x352d1b,type:_0x372073,subType:_0x1718af,authorId:_0x547d65}=_0x4dc3a3(_0x3e902b),_0x519ea6=this['_suggestions']['get'](_0x352d1b)||this['_createSuggestion'](_0x372073,_0x1718af,_0x352d1b,_0x547d65,{});switch(this['_checkSuggestionCorrectness'](_0x519ea6,_0x372073,_0x1718af,_0x547d65),this['_suggestionState']['get'](_0x519ea6)){case'notReady':this['_getSuggestionData'](_0x352d1b)['then'](_0x5c2461=>{let _0x1db10f=Promise['resolve']();_0x5c2461['hasComments']&&(_0x1db10f=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x352d1b})),_0x1db10f['then'](()=>{this['addSuggestionData'](_0x5c2461)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x519ea6,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x352d1b,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x519ea6,'ready'),this['fire']('suggestionLoaded',_0x519ea6);break;case'ready':this['fire']('suggestionChanged',_0x519ea6);}return _0x519ea6['addMarkerName'](_0x3e902b),_0x519ea6;}['_refreshSuggestionsChain'](_0xb84422){const _0x3407ad=Array['from'](_0xb84422),_0x2481ee=_0x3407ad['filter'](_0x15e8db=>'attribute'==_0x15e8db['type']);this['_refreshAttributeSuggestionsChain'](_0x2481ee);const _0x3b2cd6=_0x3407ad['filter'](_0x4a58f5=>!_0x4a58f5['isMultiRange']&&'attribute'!=_0x4a58f5['type']),_0x423ad2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x40c3bc=>!_0x40c3bc['isMultiRange']&&'attribute'!=_0x40c3bc['type']),_0x2dc71d=_0x423ad2['filter'](_0x488d40=>!_0xb84422['has'](_0x488d40)),_0x3a20d2=new Map(_0x423ad2['map'](_0x35f9ed=>[_0x35f9ed,this['_suggestionFactory']['getSuggestionCallback'](_0x35f9ed['type'],_0x35f9ed['subType'],'chain')])),_0x3009d5=new Map(_0x423ad2['map'](_0x460a53=>[_0x460a53,_0x460a53['getFirstRange']()])),_0x43e755=new Set(),_0x3af192=new Set();for(let _0x226770=0x0;_0x226770<_0x3b2cd6['length'];_0x226770++)_0x25154d(_0x3b2cd6[_0x226770],_0x3b2cd6,_0x226770+0x1);for(let _0x1237f7=0x0;_0x1237f7<_0x3b2cd6['length'];_0x1237f7++)_0x25154d(_0x3b2cd6[_0x1237f7],_0x2dc71d,0x0);const _0x577a23=new Set();for(let _0x2bf8aa=0x0;_0x2bf8aa<_0x3b2cd6['length'];_0x2bf8aa++){const _0x567ad3=_0x3b2cd6[_0x2bf8aa];!_0x3af192['has'](_0x567ad3)&&_0x567ad3['previous']&&(_0x577a23['add'](_0x567ad3['previous']),_0x567ad3['previous']['next']===_0x567ad3&&(_0x567ad3['previous']['next']=null),_0x567ad3['previous']=null),!_0x43e755['has'](_0x567ad3)&&_0x567ad3['next']&&(_0x577a23['add'](_0x567ad3['next']),_0x567ad3['next']['previous']===_0x567ad3&&(_0x567ad3['next']['previous']=null),_0x567ad3['next']=null);}function _0x25154d(_0x121807,_0x3fef76,_0x5406e0){for(let _0x4a7de8=_0x5406e0;_0x4a7de8<_0x3fef76['length'];_0x4a7de8++){const _0x2a1a3f=_0x4df269(_0x121807,_0x3fef76[_0x4a7de8]);_0x2a1a3f&&(_0x2a1a3f[0x0]['next']=_0x2a1a3f[0x1],_0x2a1a3f[0x1]['previous']=_0x2a1a3f[0x0],_0x43e755['add'](_0x2a1a3f[0x0]),_0x3af192['add'](_0x2a1a3f[0x1]));}}function _0x4df269(_0x4ba139,_0x17a117){if(_0x4ba139['author']['id']!==_0x17a117['author']['id'])return null;const _0x3cc8b9=_0x3a20d2['get'](_0x4ba139)(_0x4ba139,_0x17a117,_0x3009d5['get'](_0x4ba139),_0x3009d5['get'](_0x17a117));if(!_0x3cc8b9)return null;return _0x3a20d2['get'](_0x17a117)(_0x4ba139,_0x17a117,_0x3009d5['get'](_0x4ba139),_0x3009d5['get'](_0x17a117))?_0x3cc8b9[0x1]['commentThread']&&_0x3cc8b9[0x1]['commentThread']['length']?null:_0x3cc8b9:null;}_0x577a23['size']&&this['_refreshSuggestionsChain'](_0x577a23);}['_refreshAttributeSuggestionsChain'](_0x2e5de3){if(0x0==_0x2e5de3['length'])return;const _0x1c4f85=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x31d3c0=>'attribute'==_0x31d3c0['type']&&_0x31d3c0['_isDataLoaded']),_0x38d924=[],_0x33d297=new Map();for(const _0x3e9450 of _0x1c4f85){const _0x560876=_0x550e9b(_0x3e9450['attributes']);_0x33d297['has'](_0x560876)||(_0x33d297['set'](_0x560876,_0x38d924['length']),_0x38d924['push']([]));const _0x7eaffa=_0x33d297['get'](_0x560876);_0x38d924[_0x7eaffa]['push'](_0x3e9450);}!(function(){_0x38d924['sort']((_0x4643b3,_0x2b79a1)=>{const _0x3b64a9=_0x4643b3[0x0]['createdAt'],_0x4963be=_0x2b79a1[0x0]['createdAt'];return _0x3b64a9==_0x4963be?_0x4643b3[0x0]['attributes']['groupId']<_0x2b79a1[0x0]['attributes']['groupId']?-0x1:0x1:_0x3b64a9<_0x4963be?-0x1:0x1;});for(const _0x544c78 of _0x38d924)_0x544c78['sort']((_0xfba49d,_0x412b58)=>_0xfba49d['id']<_0x412b58['id']?-0x1:0x1);}());for(let _0x28d621=0x0;_0x28d621<_0x38d924['length'];_0x28d621++){if(0x0==_0x38d924[_0x28d621]['length'])continue;const _0x38d8b8=[];for(let _0x299194=_0x28d621+0x1;_0x299194<_0x38d924['length'];_0x299194++)0x0!=_0x38d924[_0x299194]['length']&&_0x35921f(_0x38d924[_0x28d621],_0x38d924[_0x299194])&&_0x38d8b8['push'](_0x299194);for(const _0x13c8c2 of _0x38d8b8)_0x38d924[_0x28d621]=_0x38d924[_0x28d621]['concat'](_0x38d924[_0x13c8c2]),_0x38d924[_0x13c8c2]=[];}for(const _0x461542 of _0x38d924)for(let _0x3813a7=0x0;_0x3813a7<_0x461542['length'];_0x3813a7++){const _0x2bdb16=_0x461542[_0x3813a7+0x1]||null;_0x461542[_0x3813a7]['next']!==_0x2bdb16&&(_0x461542[_0x3813a7]['next']=_0x2bdb16);}for(const _0x108ebf of _0x38d924)for(let _0x5ab510=0x0;_0x5ab510<_0x108ebf['length'];_0x5ab510++){const _0x13180b=_0x108ebf[_0x5ab510-0x1]||null;_0x108ebf[_0x5ab510]['previous']!==_0x13180b&&(_0x108ebf[_0x5ab510]['previous']=_0x13180b);}function _0x35921f(_0x4d6e2a,_0x5c70b5){if(_0x4d6e2a[0x0]['attributes']['groupId']!==_0x5c70b5[0x0]['attributes']['groupId']&&_0x4d6e2a[0x0]['author']!==_0x5c70b5[0x0]['author'])return!0x1;if(!function(_0x2a0765,_0x54e9ec){if(!_0x2a0765['hasComments']&&!_0x54e9ec['hasComments'])return!0x0;if(_0x2a0765['hasComments']&&_0x54e9ec['hasComments'])return!0x1;if(_0x2a0765['hasComments']&&_0x54e9ec['createdAt']<_0x2a0765['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x54e9ec['hasComments']&&_0x2a0765['createdAt']<_0x54e9ec['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4d6e2a[0x0],_0x5c70b5[0x0]))return!0x1;const _0x3e7682=ot(_0x4d6e2a[0x0]['attributes'],['groupId','trackingSessionId']),_0x8527a3=ot(_0x5c70b5[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x3e7682,_0x8527a3))return!0x1;if(_0x4d6e2a[0x0]['attributes']['groupId']==_0x5c70b5[0x0]['attributes']['groupId'])return!0x0;if(_0x4d6e2a[0x0]['attributes']['trackingSessionId']!==_0x5c70b5[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x4d6e2a['every'](_0x180229=>_0x5c70b5['some'](_0x3cda74=>_0x180229['getFirstRange']()['isEqual'](_0x3cda74['getFirstRange']())))&&_0x5c70b5['every'](_0x14eccd=>_0x4d6e2a['some'](_0x1c00c4=>_0x14eccd['getFirstRange']()['isEqual'](_0x1c00c4['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xdd764e){const _0x349fc0=Array['from'](_0xdd764e),_0x4de859=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5c829d=_0x4de859['filter'](_0x49b664=>!_0xdd764e['has'](_0x49b664)),_0x58a821=new Map(_0x349fc0['map'](_0x2f14b1=>[_0x2f14b1,this['_suggestionFactory']['getSuggestionCallback'](_0x2f14b1['type'],_0x2f14b1['subType'],'join')])),_0x1d023f=new Map(_0x4de859['map'](_0x349239=>[_0x349239,_0x349239['getRanges']()]));for(let _0x4d1c0a=0x0;_0x4d1c0a<_0x349fc0['length'];_0x4d1c0a++){if(_0x4986cc(this,_0x349fc0[_0x4d1c0a],_0x349fc0,_0x4d1c0a+0x1))return!0x0;}for(let _0x84c0e1=0x0;_0x84c0e1<_0x349fc0['length'];_0x84c0e1++){if(_0x4986cc(this,_0x349fc0[_0x84c0e1],_0x5c829d,0x0))return!0x0;}return!0x1;function _0x4986cc(_0x37673a,_0x276e6d,_0x1c35cf,_0x1e1615){for(let _0x4004d9=_0x1e1615;_0x4004d9<_0x1c35cf['length'];_0x4004d9++){const _0x39ecf8=_0x1c35cf[_0x4004d9];if(_0x39ecf8['type']!==_0x276e6d['type']||_0x39ecf8['author']['id']!==_0x276e6d['author']['id']||_0x39ecf8['subType']!==_0x276e6d['subType'])continue;if(!an(_0x276e6d,_0x39ecf8))continue;if('attribute'==_0x276e6d['type']&&_0x276e6d['data']['oldValue']!=_0x39ecf8['data']['oldValue'])continue;if('attribute'==_0x276e6d['type']&&_0x37673a['_suggestionsConversion']['isBlockAttribute'](_0x276e6d['data']['key']))continue;if('formatBlock'==_0x276e6d['type']){const _0x533063=_0x37673a['editor']['model'],_0x4c09ad=_0x276e6d['getContainedElement']();if(_0x4c09ad&&(_0x533063['schema']['isObject'](_0x4c09ad)||_0x533063['schema']['isLimit'](_0x4c09ad)))continue;}const _0x113fbd=_0x58a821['get'](_0x276e6d),_0x1ec472=_0x1d023f['get'](_0x276e6d),_0x5d17d4=_0x1d023f['get'](_0x39ecf8),_0x385fbb=_0x276e6d['commentThread']&&_0x276e6d['commentThread']['length'],_0xe6ed8=_0x39ecf8['commentThread']&&_0x39ecf8['commentThread']['length'];if(!_0x385fbb&&_0x113fbd(_0x5d17d4,_0x1ec472))return _0x37673a['_joinSuggestions'](_0x39ecf8,_0x276e6d),_0x1d023f['delete'](_0x276e6d),!0x0;if(!_0xe6ed8&&_0x113fbd(_0x1ec472,_0x5d17d4))return _0x37673a['_joinSuggestions'](_0x276e6d,_0x39ecf8),_0x1d023f['delete'](_0x39ecf8),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5623b3,_0x39bbc5){if(_0x5623b3['isMultiRange']){for(const _0x3aa7e7 of _0x39bbc5['getRanges']())_0x5623b3['addRange'](_0x3aa7e7);}else{const _0x3ad37e=_0x39bbc5['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5623b3,this['_model']['createRange'](_0x5623b3['getFirstRange']()['start'],_0x3ad37e));}_0x39bbc5['removeMarkers']();}['_getMarkerAnnouncementText'](_0x47382a,_0x2a525b,_0x2dc8b7){const _0x5449d9=_0x47382a['startsWith']('format')||_0x47382a['startsWith']('attribute')?'FORMATTING':_0x47382a['toUpperCase']();return At(this['editor']['locale'],_0x2a525b+'_'+_0x5449d9+'_SUGGESTION_ANNOUNCEMENT',_0x2dc8b7);}['_initAriaMarkerChangeAnnouncements'](){const _0x194492=this['editor'];if(!_0x194492['ui'])return;const {ariaLiveAnnouncer:_0x513b80}=_0x194492['ui'];_0x4daed7(this['_model'],({left:_0x18732f,entered:_0x210437})=>{for(const _0x5db26c of _0x18732f){const {group:_0x23e9ed,type:_0x145558}=_0x4dc3a3(_0x5db26c['name']);if('suggestion'===_0x23e9ed){_0x513b80['announce'](this['_getMarkerAnnouncementText'](_0x145558,'LEAVE'));break;}}for(const _0x13ed05 of _0x210437){const {group:_0x130d41,type:_0x508323}=_0x4dc3a3(_0x13ed05['name']);if('suggestion'===_0x130d41){_0x513b80['announce'](this['_getMarkerAnnouncementText'](_0x508323,'ENTER',_0x3a30ad(_0x43e6c0)));break;}}});}['_processAttributeChanges'](_0x40ad78){if(this['_recordAttributeSuggestions'])return!0x1;const _0xd07a5a=this['editor'],_0x10064c=_0xd07a5a['model']['document']['differ']['getChanges']();if(0x0==_0x10064c['length'])return!0x1;const _0x39bc8f=[],_0x466831=_0x10064c['filter'](_0x43e620=>'attribute'==_0x43e620['type']),_0x59d174=_0x10064c['filter'](_0x7dfd30=>'insert'==_0x7dfd30['type']&&'$text'!=_0x7dfd30['name']),_0x1c536d=_0x10064c['filter'](_0x36e112=>'remove'==_0x36e112['type']&&'$text'!=_0x36e112['name']);for(const _0x1d8aff of _0x466831)_0x39bc8f['push']({'key':_0x1d8aff['attributeKey'],'newValue':_0x1d8aff['attributeNewValue'],'oldValue':_0x1d8aff['attributeOldValue'],'range':sn(_0x1d8aff['range'],_0xd07a5a['model'])});for(const _0x5e62e4 of _0x59d174){const _0x133122=_0x1c536d['find'](_0x26f96c=>_0x26f96c['position']['isEqual'](_0x5e62e4['position']));_0x133122&&_0x39bc8f['push']({'key':Ke,'newValue':_0x5e62e4['name'],'oldValue':_0x133122['name'],'range':_0xd07a5a['model']['createRangeOn'](_0x5e62e4['position']['nodeAfter'])});}return 0x0!=_0x39bc8f['length']&&this['_reduceExistingSuggestions'](_0x40ad78,_0x39bc8f);}['_processAttributeSuggestions'](_0x999b3a){let _0x2799ef=!0x1;const _0x4dccb8=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x20e716=>_0x20e716['data']['newRange']&&_0x20e716['name']['startsWith']('suggestion:attribute:'));for(const _0x2e3933 of _0x4dccb8){const {subType:_0x46a674,id:_0x44d38b}=_0x4dc3a3(_0x2e3933['name']),_0x10bc10=_0x46a674['split']('|')[0x0];for(const _0x27c47b of this['getSuggestions']({'skipNotAttached':!0x0}))_0x27c47b['id']!=_0x44d38b&&'attribute'==_0x27c47b['type']&&_0x27c47b['data']&&_0x27c47b['data']['key']==_0x10bc10&&_0x27c47b['getFirstRange']()['isIntersecting'](_0x2e3933['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x27c47b,_0x2e3933['data']['newRange'],_0x999b3a),_0x2799ef=!0x0);}return _0x2799ef;}['recordAttributeChanges'](_0x568ff3){this['_recordAttributeSuggestions']=!0x0,_0x568ff3();}['_reduceExistingSuggestions'](_0x5228f5,_0x1bbf3a){if(0x0==_0x1bbf3a['length'])return!0x1;let _0x413ded=!0x1;for(const _0x430eed of _0x1bbf3a){const _0x22fccd=this['_findSuggestions'](_0x430eed['range'],'attribute')['filter'](_0x2f1fe2=>!_0x2f1fe2['meta']['isNextTo'])['map'](_0x4b12ff=>_0x4b12ff['suggestion']),_0x950139=_0x550e9b({'newValue':_0x430eed['newValue']});_0x22fccd['filter'](_0x125a41=>{const [_0x1074b7,_0x4544d5]=_0x125a41['subType']['split']('|');return _0x1074b7==_0x430eed['key']&&_0x4544d5!=_0x950139;})['forEach'](_0x51f6f1=>{this['_reduceSuggestionAttributeRange'](_0x51f6f1,_0x430eed['range'],_0x5228f5),_0x413ded=!0x0;});}return _0x413ded;}['_reduceSuggestionAttributeRange'](_0x5f2ca2,_0xef110e,_0xc041fb){const _0x227dfc=_0x5f2ca2['getFirstRange']()['getDifference'](_0xef110e);0x0!==_0x227dfc['length']?0x1!==_0x227dfc['length']?this['_breakSuggestionMarker'](_0x5f2ca2,_0xef110e['start'],_0xef110e['end']):this['_setSuggestionRange'](_0x5f2ca2,_0x227dfc[0x0]):_0xc041fb['removeMarker'](_0x5f2ca2['getFirstMarker']());}}class Ye{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x185415){this['_editor']=_0x185415,this['_model']=_0x185415['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x118bc0,_0x5723af,_0xcc4b3a,_0x5d3e0a,_0x3279ff,_0x444cc2,_0x361c59){return new bt(this['_model'],{'type':_0x118bc0,'subType':_0x5723af,'id':_0xcc4b3a,'originalSuggestionId':_0x361c59,'author':_0x5d3e0a,'creator':_0x5d3e0a,'attributes':_0x3279ff,'onAttributesChange':_0x444cc2,'onAccept':(..._0x1d5846)=>this['getSuggestionCallback'](_0x118bc0,_0x5723af,'accept')(..._0x1d5846),'onDiscard':(..._0x417bbf)=>this['getSuggestionCallback'](_0x118bc0,_0x5723af,'discard')(..._0x417bbf)});}['registerCustomCallback'](_0x1273e9,_0x5cb750,_0x119760,_0x5094ad){const _0x5ce984=_0x1273e9+':'+_0x5cb750+':'+_0x119760;this['_customCallbacks']['set'](_0x5ce984,_0x5094ad);}['getSuggestionCallback'](_0x5a6b30,_0xd0a0d3,_0x4b1c83){const _0x2db86f=_0x5a6b30+':'+_0xd0a0d3+':'+_0x4b1c83;return this['_customCallbacks']['get'](_0x2db86f)||this['_defaultCallbacks']['get'](_0x5a6b30+':'+_0x4b1c83);}['_registerDefaultCallbacks'](){const _0xe260e8=()=>!0x1,_0x1a16da=_0x4de91f=>{_0x4de91f['sort']((_0x1c308b,_0x40cc17)=>_0x1c308b['start']['isBefore'](_0x40cc17['start'])?0x1:-0x1),this['_model']['change'](_0x424bd1=>{for(const _0xc1ba83 of _0x4de91f){let _0x38a06a;_0x38a06a=_0xc1ba83['end']['isAtEnd']&&_0xc1ba83['end']['parent']==_0xc1ba83['start']['nodeAfter']?_0x424bd1['createSelection'](_0xc1ba83['start']['nodeAfter'],'on'):_0x424bd1['createSelection'](_0xc1ba83),this['_model']['deleteContent'](_0x38a06a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x429b0f=(_0x1514c9,_0x2c60d7)=>{_0x2c60d7&&this['_model']['change'](_0xf8e240=>{const {commandName:_0x4342b8,commandParams:_0x21db12=[]}=_0x2c60d7,_0x27d979=_0x1514c9['map'](_0x20c979=>(Qe(_0x20c979)&&(_0x20c979=this['_model']['createRange'](_0x20c979['end'])),_0x20c979))['filter'](_0x3c6d73=>'$graveyard'!==_0x3c6d73['root']['rootName']);if(_0x27d979['length']<0x1)return;const _0x5ed777=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1e2f00=>_0x5817c4['fromRange'](_0x1e2f00));_0xf8e240['setSelection'](_0x27d979);for(const _0x16ecd1 of this['_editor']['commands']['commands']())_0x16ecd1['refresh']();_0x21db12['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4342b8,..._0x21db12);const _0x9385ff=_0x5ed777['filter'](_0x3fe53a=>'$graveyard'!=_0x3fe53a['root']['rootName']);_0x9385ff['length']>0x0&&_0xf8e240['setSelection'](_0x9385ff);for(const _0x2bfb93 of _0x5ed777)_0x2bfb93['detach']();});},_0x1d6a25=(_0x41535b,_0x187157)=>0x1==_0x41535b['length']&&0x1==_0x187157['length']&&_0x41535b[0x0]['end']['isEqual'](_0x187157[0x0]['start']),_0x3c0e69=(_0x5e0c3a,_0x189855,_0x3e6c94,_0x332756)=>on(_0x5e0c3a,_0x189855,_0x3e6c94,_0x332756)?[_0x5e0c3a,_0x189855]:on(_0x189855,_0x5e0c3a,_0x332756,_0x3e6c94)?[_0x189855,_0x5e0c3a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xe260e8),this['_defaultCallbacks']['set']('insertion:discard',_0x1a16da),this['_defaultCallbacks']['set']('insertion:join',_0x1d6a25),this['_defaultCallbacks']['set']('insertion:chain',_0x3c0e69),this['_defaultCallbacks']['set']('deletion:accept',_0x1a16da),this['_defaultCallbacks']['set']('deletion:discard',_0xe260e8),this['_defaultCallbacks']['set']('deletion:join',_0x1d6a25),this['_defaultCallbacks']['set']('deletion:chain',_0x3c0e69),this['_defaultCallbacks']['set']('formatInline:accept',_0x429b0f),this['_defaultCallbacks']['set']('formatInline:discard',_0xe260e8),this['_defaultCallbacks']['set']('formatInline:join',_0x1d6a25),this['_defaultCallbacks']['set']('formatInline:chain',_0xe260e8),this['_defaultCallbacks']['set']('formatBlock:accept',_0x429b0f),this['_defaultCallbacks']['set']('formatBlock:discard',_0xe260e8),this['_defaultCallbacks']['set']('formatBlock:join',_0x1d6a25),this['_defaultCallbacks']['set']('formatBlock:chain',_0xe260e8),this['_defaultCallbacks']['set']('attribute:accept',_0xe260e8),this['_defaultCallbacks']['set']('attribute:discard',(_0x1ac68d,_0x420cd9)=>{if(!_0x420cd9)return;const _0xdf2660=this['_editor']['plugins']['get'](_0x495abb);this['_model']['change'](_0x4cb680=>{if(_0x420cd9['key']==Ke)for(const _0x43224f of _0x1ac68d){const _0x551dcf=_0x43224f['start']['nodeAfter'],_0x309ef0=_0x420cd9['oldValue'];_0x4cb680['rename'](_0x551dcf,_0x309ef0);}else{if(_0xdf2660['isBlockAttribute'](_0x420cd9['key'])){for(const _0x598c82 of _0x1ac68d)void 0x0!==_0x420cd9['oldValue']?_0x4cb680['setAttribute'](_0x420cd9['key'],_0x420cd9['oldValue'],_0x598c82['start']['nodeAfter']):_0x4cb680['removeAttribute'](_0x420cd9['key'],_0x598c82['start']['nodeAfter']);}else{for(const _0xc789d4 of _0x1ac68d)_0x420cd9['oldValue']?_0x4cb680['setAttribute'](_0x420cd9['key'],_0x420cd9['oldValue'],_0xc789d4):_0x4cb680['removeAttribute'](_0x420cd9['key'],_0xc789d4);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1d6a25);}}function qe(_0x5530c6,_0x3096dd,_0x46cb6e){for(const _0x3ca612 of _0x3096dd['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3ca612['root']==_0x3ca612)return!0x1;if(!_0x46cb6e['containsItem'](_0x3ca612))return!0x1;if(_0x5530c6['isObject'](_0x3ca612)||_0x5530c6['isLimit'](_0x3ca612))return!0x0;}return!0x1;}function Qe(_0x116e93){return _0x116e93['end']['parent']==_0x116e93['start']['nodeAfter']&&_0x116e93['end']['isAtStart'];}function Ze(_0x4f6f79,_0x53129c,_0x5bd7d0,_0xf51066){const _0x5cd3bc=_0x56f28d=>!_0x56f28d['item']['is']('$textProxy')&&!_0xf51066['isObject'](_0x56f28d['item']),_0x426add=_0x4f6f79['start']['getLastMatchingPosition'](_0x5cd3bc),_0x3c8f92=_0x4f6f79['end']['getLastMatchingPosition'](_0x5cd3bc,{'direction':'backward'});return(!_0x4f6f79['start']['isEqual'](_0x426add)||!_0x4f6f79['end']['isEqual'](_0x3c8f92))&&(_0x426add['isBefore'](_0x3c8f92)?_0x5bd7d0['updateMarker'](_0x53129c,{'range':_0x5bd7d0['createRange'](_0x426add,_0x3c8f92)}):_0x5bd7d0['removeMarker'](_0x53129c),!0x0);}function Je(_0x260ced){return _0x550e9b(_0x260ced);}function tn(_0x308c6b){const _0x528444=_0x308c6b['start']['nodeAfter'];return _0x528444&&_0x528444['is']('element');}function en(_0x2fda8b){return Qe(_0x2fda8b)||function(_0x932c62){return _0x932c62['start']['parent']==_0x932c62['end']['nodeBefore']&&_0x932c62['start']['isAtEnd'];}(_0x2fda8b);}function nn(_0x4968d6,_0x1470d6){try{const _0x3fecbd=_0x4968d6['getRange']();for(const _0xc898af of _0x1470d6)if(_0x4968d6!==_0xc898af&&_0x3fecbd&&_0x3fecbd['isIntersecting'](_0xc898af['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function sn(_0x5b3735,_0x2faa25){return null==_0x5b3735['end']['nodeBefore']&&_0x5b3735['end']['parent']==_0x5b3735['start']['nodeAfter']?rn(_0x5b3735['start']['nodeAfter'],_0x2faa25):_0x5b3735;}function rn(_0x119682,_0x629eae){const _0x4cc504=_0x629eae['schema']['isObject'](_0x119682)||_0x629eae['schema']['isSelectable'](_0x119682);return _0x629eae['createRange'](_0x629eae['createPositionAt'](_0x119682,'before'),_0x4cc504?_0x629eae['createPositionAfter'](_0x119682):_0x629eae['createPositionAt'](_0x119682,'end'));}function on(_0x48f886,_0x305811,_0x2fd1a6,_0x37f36e){return!!an(_0x48f886,_0x305811)&&_0x2fd1a6['end']['isEqual'](_0x37f36e['start']);}function an(_0x1e5ba8,_0xac4f74){if(!_0x1e5ba8['_isDataLoaded']||!_0xac4f74['_isDataLoaded'])return!0x1;const _0x31f298=new Set(Object['keys'](_0x1e5ba8['attributes'])),_0x42c8b7=new Set(Object['keys'](_0xac4f74['attributes']));if(_0x31f298['delete']('groupId'),_0x42c8b7['delete']('groupId'),0x0==_0x31f298['size']&&0x0==_0x42c8b7['size'])return!0x0;if(_0x31f298['size']!=_0x42c8b7['size'])return!0x1;const _0x14ad73={..._0x1e5ba8['attributes']},_0x1c9742={..._0xac4f74['attributes']};return delete _0x14ad73['groupId'],delete _0x1c9742['groupId'],JSON['stringify'](_0x14ad73)==JSON['stringify'](_0x1c9742);}function cn(_0x3aac63,_0x400bcd){const _0x157333=ln(_0x3aac63['attributes']),_0x207827=ln(_0x400bcd);if(!_0x3aac63['_isDataLoaded'])return!0x1;for(const _0x1a9adc of Object['keys'](_0x207827))if(!st(_0x157333[_0x1a9adc],_0x207827[_0x1a9adc]))return!0x1;return!0x0;}function ln(_0x5e6184){const _0x2e56d2=Object['assign']({},_0x5e6184);return delete _0x2e56d2['skipNestingCheck'],delete _0x2e56d2['tablePasteChainId'],_0x2e56d2;}function un(_0x4d3dfe){return _0x4d3dfe['split']('|')[0x0];}class hn extends/* #__PURE__ -- @preserve */
26
- _0x13164b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x14eda2,_0x1c7fbd,_0x8a34f1,_0x5b5d8b){super(),this['model']=_0x1c7fbd,this['view']=_0x8a34f1,this['commentThreadController']=_0x5b5d8b,this['_editor']=_0x14eda2,this['_acceptCommand']=_0x14eda2['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x14eda2['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x44f694,_0x41bd71)=>_0x44f694||_0x41bd71),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4f8e08=>_0x4f8e08&&this['_editor']['model']['canEditAt'](_0x1c7fbd['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2bd32f=>_0x2bd32f&&this['_editor']['model']['canEditAt'](_0x1c7fbd['getRanges']())),this['_pendingAction']=null,_0x8a34f1['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x8a34f1,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x8a34f1,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x8a34f1,'change:isDirty',()=>{_0x8a34f1['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 _0x5e4bf4=At(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5e4bf4);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class dn extends _0x15b561{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x23ad6c,_0x3dc6bc,_0x579768,_0x55b396){super(_0x23ad6c),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x92fd7d(_0x23ad6c,At(_0x23ad6c,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3dc6bc['authoredAt']),this['bind']('authoredAt')['to'](_0x3dc6bc),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',_0x3dc6bc,'authoredAt',this,'descriptionParts',(_0x158ee6,_0x324dc0,_0x3c2955)=>{const _0x907f91=_0x3c2955['map'](_0xbfdb40=>gt(_0xbfdb40['content']))['join']('.\x20')+'.';return At(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x158ee6-0x1,_0x3dc6bc['author']['name'],_0x324dc0?_0x55b396['formatDateTime'](_0x324dc0):'',new DOMParser()['parseFromString'](_0x907f91,'text/html')['body']['textContent']]);}),this['focusables']=new _0x57967f(),this['focusTracker']=new _0x1fa383(),this['keystrokes']=new _0x50001b(),this['focusCycler']=new _0x31168b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2cdbb9=>_0x2cdbb9['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3dc6bc,this['_localUser']=_0x579768,this['_config']=_0x55b396,_0x55b396['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x116b50(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x575bc1}=this['_config'];this['commentsListView']=new _0x575bc1(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',_0x1bd990=>_0x1bd990+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x413683,_0x218174)=>_0x413683||!!_0x218174);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x8d950f}=this['_config'],_0x4ba6e3=new _0x8d950f(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x168bde=_0x4ba6e3['commentInputView'];return _0x4ba6e3['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x168bde,'value',(_0x295794,_0x3b4328,_0x464e00)=>!!_0x464e00||_0x295794&&!_0x3b4328),_0x168bde['on']('submit',(_0x562480,_0x4a769d)=>{this['fire']('addComment',_0x4a769d),_0x168bde['editor']['setData']('');}),_0x168bde['on']('cancel',()=>this['focus']()),_0x168bde['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4ba6e3;}}class fn extends dn{['suggestionView'];['_descriptionElement'];constructor(_0x166b3a,_0x14fcbc,_0x5ea010,_0x2c57a9){super(_0x166b3a,_0x14fcbc,_0x5ea010,_0x2c57a9),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xb6d07f=>_0xb6d07f&&_0xb6d07f[0x0]?_0xb6d07f[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x511018,_0x177d0c)=>{let _0x133ccd='';for(const _0xbdf11e of _0x511018)_0x133ccd+='<p>'+gt(_0xbdf11e['content'],_0xbdf11e['color'])+'</p>';return _0x177d0c?_0x133ccd:_0x282f4f(_0x133ccd,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2c57a9['SuggestionView'](_0x166b3a,_0x14fcbc,{'formatDateTime':_0x2c57a9['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 _0x34aec1=this['bindTemplate'],_0x1bb182=[this['suggestionView']];return this['commentsListView']&&_0x1bb182['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1bb182['push'](this['commentThreadInputView']),_0x1bb182['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x34aec1['if']('isActive','ck-suggestion-wrapper--active'),_0x34aec1['to']('type',_0x135eec=>'ck-suggestion-'+_0x135eec),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':_0x34aec1['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1bb182};}['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 _0x15b561{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x134f4d,_0xb66556,_0x47bcde){super(_0x134f4d),this['_model']=_0xb66556,this['_config']=_0x47bcde,this['set']('description',''),this['bind']('authoredAt')['to'](_0xb66556),this['acceptButton']=this['_createButton'](At(_0x134f4d,'Accept\x20suggestion'),_0x48a691,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](At(_0x134f4d,'Discard\x20suggestion'),_0x16672d,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x256fbc(_0x134f4d,_0xb66556['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x57967f([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1fa383(),this['keystrokes']=new _0x50001b(),this['focusCycler']=new _0x31168b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x167c1e=>_0x167c1e['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x441995=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x441995['innerHTML']=this['description'],this['on']('change:description',(_0x232d73,_0x2b91af,_0x17315f)=>{_0x441995['innerHTML']=_0x17315f;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x8f3c8=this['bindTemplate'],_0x391156=[{'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':_0x8f3c8['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x8f3c8['to']('authoredAt',_0x3aafd1=>this['_config']['formatDateTime'](_0x3aafd1))}]}]},{'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']&&_0x391156['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':_0x391156}]};}['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'](_0x3d7159,_0x52fda9,_0x224343,_0x330099,_0x27b47b){const _0x3dc2b0=new _0x1ac658(this['locale']);return _0x3dc2b0['set']({'label':_0x3d7159,'icon':_0x52fda9,'tooltip':!0x0,'tooltipPosition':_0x27b47b}),_0x3dc2b0['extendTemplate']({'attributes':{'class':_0x224343}}),_0x3dc2b0['on']('execute',()=>{this['fire'](_0x330099,this['_model']['id']);}),_0x3dc2b0;}['_setupKeyboardNavigation'](){const _0x6ccabb=this['element'];this['keystrokes']['listenTo'](_0x6ccabb);for(const _0x376c72 of this['focusables'])this['focusTracker']['add'](_0x376c72['element']),this['keystrokes']['listenTo'](_0x376c72['element']);this['keystrokes']['set']('enter',(_0x2de601,_0x545f2c)=>{_0x6ccabb===_0x2de601['target']&&(this['focusCycler']['focusFirst'](),_0x545f2c());}),this['keystrokes']['set']('esc',(_0x508b35,_0x26912c)=>{_0x6ccabb!==_0x508b35['target']&&(this['focus'](),_0x26912c());});}}class mn extends _0x35090c{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[Xe,_0x5afd1d,_0x2eae3a,_0xebf6bb,_0x247ffd];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5ce84f){super(_0x5ce84f),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xfd6554=this['editor']['config'];_0xfd6554['define']('trackChanges.SuggestionThreadView',fn),_0xfd6554['define']('trackChanges.SuggestionView',gn),_0xfd6554['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xfd6554['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x341489,_0x49ea4b){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xa08885,_0xb6d354]of this['_handleControllerBuffer']){const _0x5fbc87=this['_suggestionToController']['has'](_0xa08885);_0x5fbc87||_0xb6d354?_0x5fbc87&&_0xb6d354&&this['_destroyController'](_0xa08885):this['_initializeController'](_0xa08885);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x247ffd)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x341489,_0x49ea4b);}['init'](){const _0x422247=this['editor'],_0x247c95=_0x422247['plugins']['get'](Xe),_0x52315b=_0x422247['plugins']['get'](_0xebf6bb),_0x385553=_0x422247['plugins']['get'](_0x247ffd),_0x395e8c=_0x422247['plugins']['get'](_0x2eae3a);this['_addUIComponentsToFactory'](),_0x385553['addSourceCollector'](()=>{const _0x43899b=[];for(const [_0x40d757,_0x12f435]of Array['from'](this['_suggestionToController'])){const _0x1d4e79=_0x40d757['getAllAdjacentSuggestions'](),_0x5cc9c7=[];for(const _0x1901be of _0x1d4e79){if(!_0x1901be['isInContent'])continue;if(_0x1901be['isMultiRange']){_0x5cc9c7['push'](..._0x1901be['getRanges']());continue;}const _0x1a07e7=_0x1901be['getFirstRange']();if(_0x5cc9c7['length']>0x0){const _0x36fd61=_0x5cc9c7[0x0]['getJoined'](_0x1a07e7);if(_0x36fd61){_0x5cc9c7[0x0]=_0x36fd61;continue;}}_0x5cc9c7['push'](_0x1a07e7);}_0x43899b['push']([_0x12f435['view'],_0x5cc9c7]);}return _0x43899b;}),this['listenTo'](_0x247c95,'suggestionLoaded',(_0x131de9,_0x497372)=>{this['listenTo'](_0x497372,'change:previous',(_0x4cac5f,_0x4da6f6,_0x43b2f4,_0x5abee2)=>{_0x497372['isInContent']&&(null==_0x43b2f4?(this['_updateController'](_0x5abee2['head']),this['_handleSuggestionControllerDelayed'](_0x497372,!0x1)):(this['_updateController'](_0x43b2f4['head']),null==_0x5abee2&&this['_handleSuggestionControllerDelayed'](_0x497372,!0x0)));}),null!==_0x497372['previous']?this['_updateController'](_0x497372['head']):this['_handleSuggestionControllerDelayed'](_0x497372,!0x1);}),this['listenTo'](_0x247c95,'suggestionUnloaded',(_0x21eb09,_0x37d866,_0x418234)=>{this['stopListening'](_0x37d866,'change:previous'),this['_handleControllerBuffer']['delete'](_0x37d866),this['_suggestionToController']['has'](_0x37d866)&&this['_destroyController'](_0x37d866),_0x418234&&this['_updateController'](_0x418234['head']);}),this['listenTo'](_0x247c95,'suggestionChanged',(_0x414225,_0x548286)=>{this['_updateController'](_0x548286);}),this['listenTo'](_0x52315b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x395e8c,'addComment',(_0x4ef90b,{threadId:_0x44011d,isFromAdapter:_0x3f1ba5})=>{if(_0x3f1ba5||!_0x247c95['hasSuggestion'](_0x44011d))return;const _0x330965=_0x247c95['getSuggestion'](_0x44011d);this['_suggestionToController']['get'](_0x330965)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xd95ee4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2dbc80;for(const _0x283f49 in _0xd95ee4){const _0x2f5702=_0x283f49,_0x31e6a0=_0xd95ee4[_0x2f5702];if('trackChangesLicenseKeyValid'==_0x31e6a0||'trackChangesLicenseKeyInvalid'==_0x31e6a0||'trackChangesLicenseKeyExpired'==_0x31e6a0||'trackChangesLicenseKeyDomainLimit'==_0x31e6a0||'trackChangesLicenseKeyNotAllowed'==_0x31e6a0||'trackChangesLicenseKeyEvaluationLimit'==_0x31e6a0||'trackChangesLicenseKeyUsageLimit'==_0x31e6a0){delete _0xd95ee4[_0x2f5702],_0x2dbc80=_0x31e6a0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2dbc80&&_0xd95ee4['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2dbc80&&_0xd95ee4['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2dbc80&&_0xd95ee4['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2dbc80&&_0xd95ee4['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2dbc80&&_0xd95ee4['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2dbc80&&_0xd95ee4['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x431c43){const _0x56af63=this['_suggestionToController']['get'](_0x431c43);if(!_0x56af63)return null;return this['editor']['plugins']['get'](_0xebf6bb)['getByInnerView'](_0x56af63['view'])||null;}['getSuggestionForAnnotation'](_0x16c7ec){const _0x518410=this['_viewToController']['get'](_0x16c7ec['innerView']);return _0x518410?_0x518410['model']:null;}['_refreshActiveMarkers'](){const _0x12b27c=this['editor']['plugins']['get'](_0xebf6bb),_0x27f2c3=this['editor']['plugins']['get'](Xe),_0x2894f8=Array['from'](_0x12b27c['activeAnnotations'],_0x94d5a2=>_0x94d5a2['innerView'])['filter'](_0x251f44=>this['_viewToController']['has'](_0x251f44)),_0x5bca18=[];for(const _0x841411 of _0x2894f8){const _0x47e251=this['_viewToController']['get'](_0x841411)['model']['getAllAdjacentSuggestions']();_0x5bca18['push'](..._0x47e251['reduce']((_0x43f594,_0xb1b61e)=>[..._0x43f594,..._0xb1b61e['getMarkerNames']()],[]));}_0x27f2c3['activeMarkers']=_0x5bca18;}['_addUIComponentsToFactory'](){const _0x5ee272=this['editor'],_0x2683f6=_0x5ee272['locale'],_0x457f36=At(_0x2683f6,'Track\x20changes'),_0x7ee6fb=new _0x3a7659([{'type':'switchbutton','model':new _0x4c15d6({'withText':!0x0,'isToggleable':!0x0,'label':_0x457f36,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4c15d6({'withText':!0x0,'label':At(_0x2683f6,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4c15d6({'withText':!0x0,'label':At(_0x2683f6,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4c15d6({'withText':!0x0,'label':At(_0x2683f6,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4c15d6({'withText':!0x0,'label':At(_0x2683f6,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x5ee272['plugins']['has']('TrackChangesPreview')&&_0x7ee6fb['addMany']([{'type':'separator'},{'type':'button','model':new _0x4c15d6({'withText':!0x0,'label':At(_0x2683f6,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x406048 of _0x7ee6fb)if(En(_0x406048)){const _0x52b463=_0x5ee272['commands']['get'](_0x406048['model']['commandName']);_0x406048['model']['bind']('isOn','isEnabled')['to'](_0x52b463,'value','isEnabled');}_0x5ee272['ui']['componentFactory']['add']('trackChanges',_0x5197d0=>this['_createToolbarButton'](_0x5197d0,_0x7ee6fb,_0x457f36)),_0x5ee272['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5c5e6c=>this['_createMenuBarMenu'](_0x5c5e6c,_0x7ee6fb,_0x457f36));}['_createToolbarButton'](_0x157993,_0x19cd00,_0xa0646d){const _0x718f59=_0x1ca2a3(_0x157993,_0xb73ea4),_0xf28eab=this['editor']['commands']['get']('trackChanges');_0x718f59['buttonView']['set']({'tooltip':_0xa0646d,'label':_0xa0646d,'icon':_0x47323e}),_0x718f59['buttonView']['bind']('isOn')['to'](_0xf28eab,'value'),_0x718f59['buttonView']['on']('execute',()=>{_0xf28eab['execute'](),this['editor']['editing']['view']['focus']();}),_0x4b1022(_0x718f59,_0x19cd00,{'role':'menu'});const _0x408d78=[];for(const _0x2ea952 of _0x19cd00)En(_0x2ea952)&&_0x408d78['push'](this['editor']['commands']['get'](_0x2ea952['model']['commandName']));const _0x3cbf38=_0x718f59['buttonView'];return _0x3cbf38['actionView']['unbind']('isEnabled'),_0x3cbf38['arrowView']['unbind']('isEnabled'),_0x3cbf38['actionView']['bind']('isEnabled')['to'](_0xf28eab,'isEnabled'),_0x3cbf38['arrowView']['bind']('isEnabled')['toMany'](_0x408d78,'isEnabled',(..._0x2334a0)=>_0x2334a0['some'](_0x256d61=>_0x256d61)),_0x718f59['on']('execute',_0x44e149=>{this['editor']['execute'](_0x44e149['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x718f59;}['_createMenuBarMenu'](_0x4d6317,_0x923036,_0x31f6d2){const _0x5114ed=new _0x53b008(_0x4d6317),_0x395c84=this['editor']['commands']['get']('trackChanges');_0x5114ed['buttonView']['set']({'label':_0x31f6d2,'icon':_0x47323e});const _0x3c2962=new _0x5b9248(_0x4d6317);for(const _0x1afacb of _0x923036){if('separator'==_0x1afacb['type']){_0x3c2962['items']['add'](new _0xb56894(_0x4d6317));continue;}const _0x439f1e=new _0x5df59b(_0x4d6317,_0x5114ed),_0x59c990=new _0x3fd53b(_0x4d6317),_0xc61761=_0x1afacb['model'];_0x59c990['bind'](...Object['keys'](_0xc61761))['to'](_0xc61761),_0x59c990['delegate']('execute')['to'](_0x5114ed),_0x59c990['on']('execute',()=>{this['editor']['execute'](_0xc61761['commandName']),this['editor']['editing']['view']['focus']();}),_0x439f1e['children']['add'](_0x59c990),_0x3c2962['items']['add'](_0x439f1e);}return _0x5114ed['bind']('isEnabled')['to'](_0x395c84,'isEnabled'),_0x5114ed['panelView']['children']['add'](_0x3c2962),_0x5114ed;}['_initializeController'](_0x492d8a){const _0x332b1b=this['editor'],_0x47af02=_0x332b1b['config'],_0x5ca02c=_0x332b1b['plugins']['get'](_0xebf6bb),_0x32398f=_0x332b1b['plugins']['get'](_0x2eae3a),_0x45ad5e=_0x332b1b['plugins']['get'](_0x247ffd),_0x5e03fd=_0x332b1b['plugins']['get'](_0x5afd1d)['me'],_0x54268c=_0x47af02['get']('trackChanges')['SuggestionThreadView'],_0x1d4fab=_0x47af02['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1b0b10,CommentThreadInputView:_0x5f06ce}=_0x332b1b['plugins']['get']('CommentsUI');let _0x227a05,_0x1bce57,_0x41cb7f;this['_annotationViews']['has'](_0x492d8a['id'])?(_0x1bce57=this['_annotationViews']['get'](_0x492d8a['id']),_0x227a05=_0x1bce57['mainView']):(_0x227a05=new _0x54268c(_0x332b1b['locale'],_0x492d8a,_0x5e03fd,{'disableComments':this['_disableComments'],'editorConfig':{..._0x47af02['get']('comments.editorConfig'),'licenseKey':_0x47af02['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x47af02['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x47af02['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x47af02['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3466ab(_0x47af02['get']('locale'),_0x332b1b['locale']),'CommentView':_0x47af02['get']('comments')['CommentView'],'CommentsListView':_0x1b0b10,'CommentThreadInputView':_0x5f06ce,'SuggestionView':_0x1d4fab}),_0x227a05['suggestionView']['acceptButton']['on']('execute',()=>{_0x332b1b['editing']['view']['focus']();}),_0x227a05['suggestionView']['discardButton']['on']('execute',()=>{_0x332b1b['editing']['view']['focus']();}),_0x1bce57=_0x5ca02c['createAnnotationView'](this['editor']['locale'],_0x227a05),_0x1bce57['bind']('isDirty')['to'](_0x227a05,'isDirty'),_0x1bce57['bind']('length')['to'](_0x227a05),_0x1bce57['bind']('type')['to'](_0x227a05,'type',_0x3464e0=>'suggestion-'+_0x3464e0),_0x227a05['on']('escape',()=>{_0x41cb7f['fire']('escape');}),this['_annotationViews']['set'](_0x492d8a['id'],_0x1bce57));const _0x5ee832=_0x32398f['createCommentThreadController'](_0x492d8a['commentThread'],_0x227a05),_0x2eec36=new hn(_0x332b1b,_0x492d8a,_0x227a05,_0x5ee832),_0xd598da=_0x492d8a['getAllAdjacentSuggestions']()['filter'](_0x25b24b=>_0x25b24b['isInContent']);_0x227a05['descriptionParts']=_0x332b1b['plugins']['get'](Xe)['descriptionFactory']['getDescriptions'](_0xd598da),this['_suggestionToController']['set'](_0x492d8a,_0x2eec36),this['_viewToController']['set'](_0x227a05,_0x2eec36);const _0x2bd0cd=()=>{const _0x40d782=[],_0x2809ac=_0x492d8a['getAllAdjacentSuggestions']()['filter'](_0xef5161=>_0xef5161['isInContent']);for(const _0x14ee45 of _0x2809ac)_0x40d782['push'](..._0x14ee45['getMarkers']());return _0x1193f2(_0x332b1b['editing'],_0x40d782);};_0x41cb7f=_0x5ca02c['createAnnotation']({'view':_0x1bce57,'target':_0x2bd0cd,'type':()=>'suggestion-'+_0x2eec36['view']['type'],'isVisible':!!_0x2bd0cd()}),_0x32398f['_bindAnnotationToEditors'](_0x227a05,_0x41cb7f),_0x5ca02c['add'](_0x41cb7f),_0x45ad5e['registerAnnotation'](_0x41cb7f);}['_destroyController'](_0x39c796){const _0x1ae1ab=this['editor']['plugins']['get'](_0x2eae3a),_0x269384=this['editor']['plugins']['get'](_0xebf6bb),_0x22096a=this['_suggestionToController']['get'](_0x39c796),_0x2c8369=_0x22096a['view'],_0x4ec89d=_0x269384['getByInnerView'](_0x2c8369);_0x1ae1ab['_unbindEditors'](_0x2c8369),_0x4ec89d&&_0x269384['remove'](_0x4ec89d),this['_suggestionToController']['delete'](_0x39c796),this['_viewToController']['delete'](_0x2c8369),_0x22096a['destroy']();}['_updateController'](_0x1d2714){if(!_0x1d2714['isInContent']||!this['_suggestionToController']['has'](_0x1d2714))return;const _0xd2d935=this['editor']['plugins']['get'](Xe),_0x531dbc=this['_suggestionToController']['get'](_0x1d2714),_0x4abe2c=_0x1d2714['getAllAdjacentSuggestions']();_0x531dbc['view']['descriptionParts']=_0xd2d935['descriptionFactory']['getDescriptions'](_0x4abe2c);}['destroy'](){for(const _0x537642 of this['_suggestionToController']['keys']())this['_destroyController'](_0x537642);for(const _0x3090d7 of this['_annotationViews']['values']())_0x3090d7['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function En(_0x2f92c0){return'model'in _0x2f92c0;}class Tn extends _0x35090c{static get['requires'](){return[Xe,mn,_0x1bac76];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1b35c2){this['editor']['plugins']['get'](Xe)['adapter']=_0x1b35c2;}get['adapter'](){return this['editor']['plugins']['get'](Xe)['adapter'];}['addSuggestion'](_0x3b8a64){return this['editor']['plugins']['get'](Xe)['addSuggestionData'](_0x3b8a64);}['getSuggestions']({skipNotAttached:_0x4ad498=!0x1,toJSON:_0x3ad44d=!0x1}={}){return this['editor']['plugins']['get'](Xe)['getSuggestions']({'skipNotAttached':_0x4ad498,'toJSON':_0x3ad44d});}['getSuggestion'](_0x4ed428){return this['editor']['plugins']['get'](Xe)['getSuggestion'](_0x4ed428);}}const _n=['Pagination'];class pn extends _0x35090c{static get['requires'](){return[Xe];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x595569=this['editor'];if(_0x595569['config']['define']('trackChangesData.editorCreator',_0x151316=>{const _0x3d78f4=_0x595569['model']['document']['getRootNames']()['reduce']((_0x4bf1da,_0x188330)=>(_0x4bf1da[_0x188330]='',_0x4bf1da),{});return _0x595569['constructor']['create'](_0x3d78f4,_0x151316);}),'function'!=typeof _0x595569['config']['get']('trackChangesData')['editorCreator'])throw new _0x25a256('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x23f9ac){return bn(this['editor'],!0x0,_0x23f9ac);}['getDataWithDiscardedSuggestions'](_0x2c3dbe){return bn(this['editor'],!0x1,_0x2c3dbe);}}class Ln extends _0x35090c{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x34c8c0){function _0x20e3c2(_0x5d65d6){return _0x5d65d6['map'](_0x27c034=>String['fromCharCode'](_0x27c034))['join']('');}super(_0x34c8c0),this['result']='end',_0x34c8c0[_0x20e3c2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20e3c2([0x76,0x69,0x65,0x77])][_0x20e3c2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x20e3c2([0x61,0x75,0x74,0x6f]),_0x34c8c0[_0x20e3c2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x20e3c2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x20e3c2([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x20e3c2([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x20e3c2([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(_0x58f074){return void 0x0!==_0x58f074['getRootsAttributes'];}async function bn(_0x47d52c,_0x2e4be9,_0x199f7f){const _0xf04e1f=_0x50ee42(_0x47d52c,_n);if(_0xf04e1f['plugins']['push'](Xe,Ln),In(_0x47d52c)){_0xf04e1f['roots']=Object['create'](null);for(const _0x187767 of _0x47d52c['model']['document']['getRootNames']())_0xf04e1f['roots'][_0x187767]={'modelAttributes':_0x47d52c['getRootAttributes'](_0x187767)};}const _0x24021a=document['createDocumentFragment'](),_0x40449c=_0x47d52c['config']['get']('trackChangesData')['editorCreator'],_0x4184e2=await _0x40449c(_0xf04e1f,()=>function(_0x410568){const _0x38dba6=document['createElement']('div');return _0x410568['appendChild'](_0x38dba6),_0x38dba6;}(_0x24021a));!function(_0x2d72a5,_0x526669){const _0xd7a2c9=_0x2d72a5['model']['document']['getRootNames']()['reduce']((_0x477c50,_0x452e64)=>(_0x477c50[_0x452e64]=_0x2d72a5['data']['get']({'rootName':_0x452e64}),_0x477c50),{}),_0x1e4c27=_0x2d72a5['plugins']['get']('Users')['users']['map'](_0x30dd48=>({'id':_0x30dd48['id'],'name':_0x30dd48['name']})),_0x578552=_0x2d72a5['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x291b3a=_0x2d72a5['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x19e3a0=_0x526669['plugins']['get']('Users'),_0x28e351=_0x526669['plugins']['get']('TrackChangesEditing'),_0x3d6b89=_0x526669['plugins']['get']('CommentsRepository');for(const _0x519191 of _0x3d6b89['getCommentThreads']())_0x519191['remove']();for(const _0x47c860 of _0x1e4c27)_0x19e3a0['getUser'](_0x47c860['id'])||_0x19e3a0['addUser'](_0x47c860);_0x19e3a0['me']||_0x19e3a0['useAnonymousUser']();for(const _0x596184 of _0x291b3a)_0x3d6b89['addCommentThread'](_0x596184);for(const _0x20ca58 of _0x578552)_0x28e351['addSuggestionData'](_0x20ca58);_0x526669['data']['set'](_0xd7a2c9);}(_0x47d52c,_0x4184e2),_0x4184e2['execute'](_0x2e4be9?'acceptAllSuggestions':'discardAllSuggestions');const _0x1a5994=In(_0x4184e2)?_0x4184e2['getFullData'](_0x199f7f):_0x4184e2['data']['get'](_0x199f7f);return await _0x4184e2['destroy'](),_0x1a5994;}class An extends _0x15b561{['options'];constructor(_0xc2f4b0,_0x579791){super(_0xc2f4b0),this['options']=_0x579791,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'](_0x52c5ca,_0x17b0e3){if(!this['element'])return;const _0x127f49=[];for(const [_0x583ecf,_0x4fd836]of _0x52c5ca){const _0x2b2a9e=document['createElement']('div');_0x2b2a9e['setAttribute']('data-ck-root-name',_0x583ecf),_0x2b2a9e['className']=_0x4fd836['classes']+'\x20ck-track-changes-preview__root-container',_0x2b2a9e['innerHTML']=_0x4fd836['content'],_0x127f49['push'](_0x2b2a9e);}_0x17b0e3(this['element'],_0x127f49),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class kn extends _0x5cdbec{constructor(_0x15927d){super(_0x15927d),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1de76c=this['editor'],_0x17e186=_0x1de76c['locale'],_0x5d149e=_0x1de76c['plugins']['get']('Dialog');let _0x192ad5;const _0x41286b=function(_0x1b9833){const _0x5c4991={};if('editables'in _0x1b9833['ui']['view']){for(const [_0x1138ef,_0x5b2d82]of Object['entries'](_0x1b9833['ui']['view']['editables']))_0x5c4991[_0x1138ef]=_0x5b2d82['element'];}else _0x5c4991[_0x1b9833['model']['document']['getRootNames']()[0x0]]=_0x1b9833['ui']['view']['editable']['element'];return _0x5c4991;}(_0x1de76c),_0x207ab2=function(_0x4440f4){let _0x420c92=0x0;for(const _0x17bcc3 of Object['values'](_0x4440f4))_0x420c92=Math['max'](_0x420c92,_0x17bcc3['getBoundingClientRect']()['width']);let _0x395cf5=0x0;for(const _0x22f53f of Object['values'](_0x4440f4))_0x395cf5+=_0x22f53f['getBoundingClientRect']()['height'];const _0x4eb494=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x1cb10f=Math['min'](_0x395cf5,_0x4eb494);return{'width':_0x420c92,'height':_0x1cb10f};}(_0x41286b);_0x5d149e['show']({'id':'finalContentPreview','title':At(_0x17e186,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new An(_0x17e186,{'dialogRects':_0x207ab2}),'onHide':()=>{_0x192ad5['detachFromDom']();},'onShow':()=>{_0x1de76c['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2f728b=>{const _0x43f588=this['_standarizeRootsData'](_0x2f728b,_0x1de76c,_0x41286b);_0x5d149e['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x43f588,_0x1de76c['config']['get']('trackChanges.preview.renderFunction'));}),_0x192ad5=new _0xa8b6e0(_0x17e186,[_0x5d149e['view']]),_0x192ad5['attachToDom'](),_0x192ad5['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1de76c['once']('destroy',()=>{_0x192ad5['detachFromDom']();});const _0x420e27=_0x5d149e['view']['headerView']['class'];_0x5d149e['view']['headerView']['class']=_0x420e27?_0x420e27+'\x20ck-reset_all':'ck-reset_all',_0x5d149e['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5d149e['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x66607f=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2d5788=_0x66607f['previewMode'],_0x54d9ba={};if('$labels'===_0x2d5788){for(const _0x242d8d of _0x66607f['getMergeFieldsIds']())_0x54d9ba[_0x242d8d]=_0x66607f['getLabel'](_0x242d8d)||_0x242d8d;}else{const _0x2cbac5='$defaultValues'===_0x2d5788?_0x66607f['getDefaultValues']():_0x66607f['getDataSetValues'](_0x2d5788,!0x0);for(const _0x52b639 of Object['entries'](_0x2cbac5)){const [_0x133be7,_0x4485f1]=_0x52b639;_0x54d9ba[_0x133be7]=null!==_0x4485f1?_0x4485f1:_0x66607f['getLabel'](_0x133be7)||_0x133be7;}}return{'mergeFieldsData':_0x54d9ba};}['_standarizeRootsData'](_0x152961,_0x401284,_0x1bc36f){let _0x351f82;if('string'==typeof _0x152961){const _0xeafa9d=_0x401284['model']['document']['getRootNames']()[0x0];_0x351f82={[_0xeafa9d]:_0x152961};}else _0x351f82=_0x152961;const _0x1ca0f8=this['_fixMediaEmbeds'](_0x351f82,_0x401284),_0x8adfa1=function(_0x307b83,_0x5919cf){for(const [_0x21f83c,_0x459708]of _0x307b83)_0x459708['classes']=_0x5919cf[_0x21f83c]['classList']['value']['replace']('ck-focused','');return _0x307b83;}(this['_sortRoots'](_0x401284)['reduce']((_0x668bdb,_0x4d149f)=>(_0x668bdb['push']([_0x4d149f,{'content':_0x1ca0f8[_0x4d149f],'classes':''}]),_0x668bdb),[]),_0x1bc36f);return _0x8adfa1;}['_fixMediaEmbeds'](_0x54c0db,_0x2b227b){if(!_0x2b227b['plugins']['has']('MediaEmbedEditing'))return _0x54c0db;const _0x593149=_0x2b227b['plugins']['get']('MediaEmbedEditing');for(const [_0xa0034c,_0x3ba8be]of Object['entries'](_0x54c0db)){const _0x1f0610=document['createElement']('div');_0x1f0610['innerHTML']=_0x3ba8be,(_0x1f0610['querySelectorAll']('figure.media')['forEach'](_0x378a09=>{const _0x5ee1e0=_0x378a09['querySelector']('oembed');if(_0x5ee1e0){const _0x16b262=_0x5ee1e0['getAttribute']('url');if(_0x16b262){const _0x5360eb=_0x593149['registry']['getMediaViewElement'](new et(_0x2b227b['editing']['view']['document']),_0x16b262,{'elementName':'','renderForEditingView':!0x0}),_0x14d080=document['createElement']('div');_0x14d080['classList']['add']('ck-media__wrapper'),_0x5360eb['render'](_0x14d080,_0x2b227b['editing']['view']['domConverter']),_0x5ee1e0['replaceWith'](_0x14d080);}}}),_0x54c0db[_0xa0034c]=_0x1f0610['innerHTML']);}return _0x54c0db;}['_sortRoots'](_0x3167c7){if(!function(_0x31e816){return void 0x0!==_0x31e816['getRootsAttributes'];}(_0x3167c7))return _0x3167c7['model']['document']['getRootNames']();const _0xb686f7=[],_0x59ff93=new Map();for(const _0x186019 of _0x3167c7['model']['document']['getRootNames']()){const _0x3f7f71=_0x3167c7['editing']['view']['getDomRoot'](_0x186019)['getClientRects']()['item'](0x0);_0xb686f7['push'](_0x186019),_0x59ff93['set'](_0x186019,_0x3f7f71);}return _0xb686f7['sort']((_0x22e33e,_0x5b3191)=>{const _0x1f5d30=_0x59ff93['get'](_0x22e33e),_0x33da48=_0x59ff93['get'](_0x5b3191);return _0x1f5d30['y']-_0x33da48['y']||_0x1f5d30['x']-_0x33da48['x'];}),_0xb686f7;}}class Cn extends _0x35090c{static get['requires'](){return[pn,_0x540a6c];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xb2d310){super(_0xb2d310),_0xb2d310['commands']['add']('previewFinalContent',new kn(this['editor'])),_0xb2d310['config']['define']('trackChanges.preview.renderFunction',(_0xfdd5b4,_0x21786)=>{for(const _0x57e0f1 of _0x21786)_0xfdd5b4['appendChild'](_0x57e0f1);});}}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 _0xec382e,Plugin as _0x55ebc7,PendingActions as _0x3baa53}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0x3c2b56,Annotations as _0x13902d,EditorAnnotations as _0x1121a4,Comments as _0x3cc10d}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0x160e83,ObservableMixin as _0x13e55e,uid as _0x493bce,priorities as _0x58c127,insertToPriorityArray as _0x2a63f5,logWarning as _0x102b77,getEnvKeystrokeText as _0x20aee3,FocusTracker as _0x5f3c33,KeystrokeHandler as _0x5b9390,Collection as _0x810344}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x1adb84,IconCancel as _0x35103b,IconTrackChanges as _0x35f55e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x2dde84,View as _0xd16ce8,ViewCollection as _0x5d830e,FocusCycler as _0x4d88fb,UIModel as _0x26339d,createDropdown as _0x222c55,SplitButtonView as _0x3307d2,addListToDropdown as _0x5511b6,MenuBarMenuView as _0xef9624,MenuBarMenuListView as _0xeffb36,ListSeparatorView as _0x3a5db9,MenuBarMenuListItemView as _0x5293f1,MenuBarMenuListItemButtonView as _0x3a6084,BodyCollection as _0x431aa3,Dialog as _0x405d92}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x413c95,SuggestionsConversion as _0x3517fc,Users as _0x4c8879,DocumentCompare as _0x3c2b55,fixElementSuggestionRange as _0x365bc8,hashObject as _0x408f0f,surroundingMarkersDetector as _0x497775,FOCUS_ANNOTATION_KEYSTROKE as _0x523eff,AriaDescriptionView as _0xb8c91,setupThreadKeyboardNavigation as _0x244efc,trimHtml as _0x40ae59,UserView as _0x5dedc4,LateFocusButtonView as _0x51a132,getDateTimeFormatter as _0x347435,getAllMarkersDomElementsSorted as _0x35c07e,sanitizeEditorConfig as _0x5b458b}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x84f35,ModelLiveRange as _0x3e26ed,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 _0xec382e{['_enabledCommands'];constructor(_0x500522,_0x539a00){super(_0x500522),this['_enabledCommands']=_0x539a00,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 _0x47b726 of this['editor']['commands']['commands']())_0x47b726['affectsData']&&!this['_enabledCommands']['has'](_0x47b726)&&_0x47b726['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4d611e of this['editor']['commands']['commands']())_0x4d611e['affectsData']&&!this['_enabledCommands']['has'](_0x4d611e)&&_0x4d611e['clearForceDisabled']('TrackChangesCommand');}}class dt extends _0xec382e{['_suggestions'];constructor(_0x13c728,_0x49fb5d){super(_0x13c728),this['_suggestions']=_0x49fb5d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4db7d2){const _0xffa080=this['_suggestions']['get'](_0x4db7d2);if(!_0xffa080)throw new _0x160e83('track-changes-accept-suggestion-not-found',this);const _0x53b348=_0xffa080['getRanges']();this['editor']['model']['canEditAt'](_0x53b348)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xffa080);}}class ft extends _0xec382e{['_suggestions'];constructor(_0x305aff,_0x45db93){super(_0x305aff),this['_suggestions']=_0x45db93,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5b38fd){const _0x462093=this['_suggestions']['get'](_0x5b38fd);if(!_0x462093)throw new _0x160e83('track-changes-discard-suggestion-not-found',this);const _0x3ba175=_0x462093['getRanges']();this['editor']['model']['canEditAt'](_0x3ba175)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x462093);}}function gt(_0x40a5ab,_0x297cfe){let _0x2412b0='';return _0x2412b0+=_0x40a5ab['split']('*')['map']((_0x56dc44,_0x76e662)=>_0x76e662%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+mt(_0x56dc44)+'</span>':mt(_0x56dc44))['join'](''),_0x297cfe&&(_0x2412b0+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x297cfe['value']+'\x22\x20title=\x22'+_0x297cfe['title']+'\x22></span>'),_0x2412b0;}function mt(_0x1be24d){const _0x5167f9=document['createElement']('span');return _0x5167f9['innerText']=_0x1be24d,_0x5167f9['innerHTML'];}function Et(_0x5d2687){return _0x5d2687['sort']((_0x126dbe,_0x5e7880)=>'attribute'===_0x126dbe['type']&&'attribute'!==_0x5e7880['type']?-0x1:'attribute'!==_0x126dbe['type']&&'attribute'===_0x5e7880['type']?0x1:'deletion'==_0x126dbe['type']&&'deletion'!=_0x5e7880['type']?-0x1:'deletion'!=_0x126dbe['type']&&'deletion'==_0x5e7880['type']?0x1:0x0);}function Tt(_0x3a25db,_0xc91c8e){let _0x2eabff,_0x106f85=0x0;const _0x4eabdf=[],_0x488b3d=_0xc91c8e['schema'];for(;_0x106f85<_0x3a25db['length'];){const _0x3d388a=_0x3a25db[_0x106f85],_0x274c5b=_0x3a25db[_0x106f85+0x1];_0x2eabff||(_0x2eabff=_0xc91c8e['createPositionBefore'](_0x3d388a)),_t(_0xc91c8e,_0x3d388a,_0x274c5b)||(_0x4eabdf['push'](_0xc91c8e['createRange'](_0x2eabff,_0x488b3d['isObject'](_0x3d388a)?_0xc91c8e['createPositionAfter'](_0x3d388a):_0xc91c8e['createPositionAt'](_0x3d388a,'end'))),_0x2eabff=null),_0x106f85++;}return _0x4eabdf;}function _t(_0x2ddbe2,_0x542cf6,_0x49b1bc){if(!_0x49b1bc)return!0x1;const _0x299d9e=_0x2ddbe2['createPositionAfter'](_0x542cf6),_0x362631=_0x2ddbe2['createPositionBefore'](_0x49b1bc);return _0x299d9e['isTouching'](_0x362631);}function pt(_0x3a3de0,_0x1e74f2,_0x2cb1f7){for(;_0x2cb1f7['length'];){const _0x14f590=_0x2cb1f7['splice'](0x0,0x64);_0x3a3de0['change'](()=>{for(const _0x40d267 of _0x14f590)_0x40d267['isInContent']&&_0x1e74f2['execute'](_0x40d267['id']);});}}class Lt extends _0xec382e{['_command'];['_suggestions'];constructor(_0x17cae1,_0x14c410,_0x146d4f){super(_0x17cae1),this['_command']=_0x14c410,this['_suggestions']=_0x146d4f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x35a3b8=Array['from'](this['_suggestions']['values']())['some'](_0x55b073=>_0x55b073['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x35a3b8;}['execute'](){const _0x41755e=Et(Array['from'](this['_suggestions']['values']()));for(const _0x5c27c2 of _0x41755e){const _0x4e98da=_0x5c27c2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4e98da))return;}pt(this['editor']['model'],this['_command'],_0x41755e);}}class It extends _0xec382e{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2cb5d7,_0x4365ae,_0x1c6d4b){super(_0x2cb5d7),this['_command']=_0x4365ae,this['_suggestions']=_0x1c6d4b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x376960=this['editor']['model']['document']['selection'],_0xec0924=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x453cd9,_0x245401){const _0x325ab3=Array['from'](_0x453cd9['getRanges']()),_0x459eb1=new Set();for(const _0x1912ac of _0x245401)if(_0x1912ac['isInContent']){for(const _0x3dbb68 of _0x325ab3)for(const _0x5bfe9d of _0x1912ac['getRanges']())(_0x3dbb68['isIntersecting'](_0x5bfe9d)||_0x453cd9['isCollapsed']&&!_0x1912ac['isMultiRange']&&_0x1912ac['next']&&_0x5bfe9d['end']['isTouching'](_0x3dbb68['start']))&&_0x459eb1['add'](_0x1912ac);}return _0x459eb1;}(_0x376960,_0xec0924),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x37cfa9=Et(Array['from'](this['_selectedSuggestions']));for(const _0x521300 of _0x37cfa9){const _0x5652ae=_0x521300['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5652ae))return;}pt(this['editor']['model'],this['_command'],_0x37cfa9);}}class bt extends/* #__PURE__ -- @preserve */
24
+ _0x13e55e(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x232d7f,_0x18e27f){super(),this['id']=_0x18e27f['id'],this['type']=_0x18e27f['type'],this['subType']=_0x18e27f['subType']||null,this['author']=_0x18e27f['author'],this['creator']=_0x18e27f['creator']||_0x18e27f['author'],this['isExternal']=Boolean(_0x18e27f['attributes']&&_0x18e27f['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x18e27f['originalSuggestionId']||null,this['_model']=_0x232d7f,this['_onAccept']=_0x18e27f['onAccept'],this['_onDiscard']=_0x18e27f['onDiscard'],this['_onAttributesChange']=_0x18e27f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x18e27f['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 _0x5df8d0=this;for(;_0x5df8d0['previous'];)_0x5df8d0=_0x5df8d0['previous'];return _0x5df8d0;}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'](_0x42d622){this['_markerNames']['add'](_0x42d622);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3128b7=>this['_model']['markers']['get'](_0x3128b7))['filter'](_0x3cdcc1=>_0x3cdcc1);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xe50e38=>{for(const _0x269b01 of this['getMarkers']())_0xe50e38['removeMarker'](_0x269b01);}),this['_markerNames']['clear']();}['removeMarker'](_0x487e25){this['_model']['change'](_0x3ce7f8=>{_0x3ce7f8['removeMarker'](_0x487e25);}),this['_markerNames']['delete'](_0x487e25);}['addRange'](_0x42c6d2){const _0x527a18='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+bt['getMultiRangeId']();this['addMarkerName'](_0x527a18),this['_model']['change'](_0x2ac8bf=>{_0x2ac8bf['addMarker'](_0x527a18,{'range':_0x42c6d2,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1bfb80){for(const _0x5ab0da of this['getRanges']())if(_0x5ab0da['isIntersecting'](_0x1bfb80))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4a1889=>_0x4a1889['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x21e701,_0x45d51b)=>[..._0x21e701,..._0x45d51b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x30dc8a=this['getRanges']();if(0x1!=_0x30dc8a['length'])return null;const _0x28a022=_0x30dc8a[0x0],_0x33d8bc=_0x28a022['start']['nodeAfter'],_0x492dae=_0x28a022['end']['nodeBefore'];return _0x33d8bc instanceof _0x84f35?_0x33d8bc!=_0x492dae?null:_0x33d8bc: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 _0x3d0429=[];let _0x6fe73=this['head'];for(;_0x6fe73;)_0x3d0429['push'](_0x6fe73),_0x6fe73=_0x6fe73['next'];return _0x3d0429;}['setAttribute'](_0x5186c4,_0x27e555){const _0x2f3ce0=nt(this['attributes']);it(_0x2f3ce0,_0x5186c4,_0x27e555),st(_0x2f3ce0,this['attributes'])||(this['attributes']=_0x2f3ce0,this['_onAttributesChange'](_0x2f3ce0));}['removeAttribute'](_0x335994){const _0xb4c58b=nt(this['attributes']);rt(_0xb4c58b,_0x335994),st(_0xb4c58b,this['attributes'])||(this['attributes']=_0xb4c58b,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 _0x493bce()['substr'](0x1,0x5);}}function At(_0xc45018,_0x57c904,_0x46406d){const _0x176014=_0xc45018['t'],t=_0xc45018['t'];switch(_0x57c904){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',_0x46406d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x46406d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x46406d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x46406d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x46406d);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',_0x46406d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x46406d);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',_0x46406d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x46406d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x46406d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x46406d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x46406d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x46406d);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x46406d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x46406d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x46406d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x46406d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x46406d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x46406d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x46406d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x46406d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x46406d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x46406d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x46406d);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x46406d);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'},_0x46406d);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x46406d);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x46406d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x46406d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x46406d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x46406d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x46406d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x46406d);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'},_0x46406d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x46406d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x46406d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x46406d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x46406d);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'},_0x46406d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x46406d);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'},_0x46406d);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'},_0x46406d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x46406d);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'},_0x46406d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x46406d);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'},_0x46406d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x46406d);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x46406d);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x46406d);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x46406d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x46406d);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'},_0x46406d);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x46406d);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 _0x176014({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x46406d);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x176014({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x46406d);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x46406d);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'},_0x46406d);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'},_0x46406d);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'},_0x46406d);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x57c904;}}class kt{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x43f14c,_0x27006c){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x43f14c,this['_locale']=_0x27006c;}['getDescriptions'](_0x8542ef){const _0x22751e=[],_0x32b6a0=new Set(),_0x122f72=new Set();for(let _0x190f75=0x0;_0x190f75<_0x8542ef['length'];_0x190f75++){const _0x528f33=_0x8542ef[_0x190f75];if(!_0x528f33['isInContent'])continue;const _0x3d4daa=this['_handleCustomCallbackDescription'](_0x528f33);if(_0x3d4daa){if(null!=_0x528f33['subType']){if(_0x32b6a0['has'](_0x528f33['subType']))continue;_0x32b6a0['add'](_0x528f33['subType']);}_0x22751e['push'](_0x3d4daa);}else{if('attribute'==_0x528f33['type']){const _0x1a3de9=_0x528f33['data']['key'];if(_0x122f72['has'](_0x1a3de9))continue;_0x122f72['add'](_0x528f33['data']['key']),_0x1a3de9==Ke?this['_handleRenameSuggestionDescription'](_0x22751e,_0x528f33):this['_handleAttributeSuggestionDescription'](_0x22751e,_0x528f33);continue;}'insertion'!=_0x528f33['type']&&'deletion'!=_0x528f33['type']||this['_handleInsertRemoveSuggestionDescription'](_0x22751e,_0x528f33,_0x8542ef[_0x190f75+0x1]);}}return this['_resolveDescriptionItems'](_0x22751e);}['registerDescriptionCallback'](_0x3f17e7){this['_customCallbacks']['push'](_0x3f17e7);}['registerElementLabel'](_0x14c861,_0x3f23eb,_0xd8e25f=_0x58c127['normal']){'function'==typeof _0x14c861?_0x2a63f5(this['_itemLabelsCallbacks'],{'matchingCallback':_0x14c861,'label':_0x3f23eb,'priority':_0xd8e25f}):this['_itemLabels']['set'](_0x14c861,_0x3f23eb);}['registerAttributeLabel'](_0x5d7804,_0x3648ae){this['_attributeLabels']['set'](_0x5d7804,_0x3648ae);}['getItemLabel'](_0x590170,_0x303abc=0x1){let _0x568480;for(const _0x3b655b of this['_itemLabelsCallbacks'])if(_0x3b655b['matchingCallback'](_0x590170)){_0x568480=_0x3b655b['label'];break;}return _0x568480||(_0x568480=this['_itemLabels']['get'](_0x590170['name'])),_0x568480?_0x568480(_0x303abc):0x1!==_0x303abc?_0x303abc+'\x20'+_0x590170['name']+'s':''+_0x590170['name'];}['_addDescriptionItems'](_0x436cee,_0x3859b2){const _0xf6a7ac=_0x3859b2['getFirstRange']()['getWalker'](),_0x9b2651='insertion'==_0x3859b2['type']?'add':'remove';for(const _0x205e93 of _0xf6a7ac){const _0xacd6fc=_0x205e93['item'],_0x3e7312=_0x436cee[_0x436cee['length']-0x1];if(_0xacd6fc['is']('$textProxy'))_0x3e7312&&_0x3e7312['type']['indexOf']('Container')>-0x1&&_0x436cee['pop'](),_0x3e7312&&'text'==_0x3e7312['type']?_0x3e7312[_0x9b2651]+=_0xacd6fc['data']:_0x436cee['push']({'type':'text','add':'add'==_0x9b2651?_0xacd6fc['data']:'','remove':'remove'==_0x9b2651?_0xacd6fc['data']:''});else{if(this['_schema']['isObject'](_0xacd6fc)){const _0x3551e0=_0xacd6fc;if(_0x3e7312&&_0x3e7312['type']['indexOf']('Container')>-0x1&&_0x436cee['pop'](),'elementEnd'==_0x205e93['type'])continue;_0x3e7312&&_0x3e7312['type']==_0x9b2651+'Object'&&_0x3e7312['element']['name']==_0x3551e0['name']?_0x3e7312['quantity']++:_0x436cee['push']({'type':_0x9b2651+'Object','element':_0x3551e0,'quantity':0x1}),_0xf6a7ac['skip'](_0x1140e4=>!('elementEnd'==_0x1140e4['type']&&_0x1140e4['item']==_0xacd6fc));}else{if(this['_schema']['checkChild'](_0xacd6fc,'$text')||_0xacd6fc['is']('element','softBreak')){const _0x25ab9f=_0xacd6fc;if('add'==_0x9b2651&&'elementStart'==_0x205e93['type']||'remove'==_0x9b2651&&'elementEnd'==_0x205e93['type'])continue;if(_0x3e7312&&-0x1==_0x3e7312['type']['indexOf']('Container')){'text'==_0x3e7312['type']&&(_0x3e7312[_0x9b2651]+='\x0a');continue;}let _0x5873a5;if(_0x5873a5='add'==_0x9b2651?_0x25ab9f['nextSibling']&&!this['_schema']['isObject'](_0x25ab9f['nextSibling'])?_0x25ab9f['nextSibling']:null:_0x25ab9f['previousSibling']&&!this['_schema']['isObject'](_0x25ab9f['previousSibling'])?_0x25ab9f['previousSibling']:null,_0x25ab9f['isEmpty']||_0x5873a5&&_0x5873a5['isEmpty']){const _0x59674c=_0x5873a5&&_0x5873a5['isEmpty']?_0x5873a5:_0x25ab9f;_0x3e7312&&_0x3e7312['type']==_0x9b2651+'EmptyContainer'&&_0x3e7312['element']['name']==_0x59674c['name']?_0x3e7312['quantity']++:_0x436cee['push']({'type':_0x9b2651+'EmptyContainer','element':_0x59674c,'quantity':0x1});}else _0x436cee['push']({'type':_0x9b2651+'Container','element':_0x25ab9f});}}}}}['_resolveDescriptionItems'](_0x20f5c3){const _0x18a50d=this['_locale'],_0x450490=[],_0x23cc15=[],_0x32502a=[];for(const _0xf1cdab of _0x20f5c3)switch(_0xf1cdab['type']){case'text':if(_0xf1cdab['add']=_0xf1cdab['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xf1cdab['remove']=_0xf1cdab['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xf1cdab['add']&&''!=_0xf1cdab['remove']){_0x450490['push']({'type':'replace','content':At(_0x18a50d,'REPLACE_TEXT',['\x22'+_0xf1cdab['remove']+'\x22','\x22'+_0xf1cdab['add']+'\x22'])});continue;}if(null!=_0xf1cdab['add']['match'](/^ +$/)){_0x450490['push']({'type':'insertion','content':At(_0x18a50d,'*Insert:*\x20%0',At(_0x18a50d,'ELEMENT_SPACE',_0xf1cdab['add']['length']))});continue;}if(null!=_0xf1cdab['remove']['match'](/^ +$/)){_0x450490['push']({'type':'deletion','content':At(_0x18a50d,'*Remove:*\x20%0',At(_0x18a50d,'ELEMENT_SPACE',_0xf1cdab['remove']['length']))});continue;}if(''!=_0xf1cdab['add']){_0x450490['push']({'type':'insertion','content':At(_0x18a50d,'*Insert:*\x20%0','\x22'+_0xf1cdab['add']+'\x22')});continue;}_0x450490['push']({'type':'deletion','content':At(_0x18a50d,'*Remove:*\x20%0','\x22'+_0xf1cdab['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x450490['push']({'type':'insertion','content':At(_0x18a50d,'*Insert:*\x20%0',this['getItemLabel'](_0xf1cdab['element'],_0xf1cdab['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x450490['push']({'type':'deletion','content':At(_0x18a50d,'*Remove:*\x20%0',this['getItemLabel'](_0xf1cdab['element'],_0xf1cdab['quantity']))});continue;case'addContainer':_0x450490['push']({'type':'insertion','content':At(_0x18a50d,'*Split:*\x20%0',this['getItemLabel'](_0xf1cdab['element'],_0xf1cdab['quantity']))});continue;case'removeContainer':_0x450490['push']({'type':'deletion','content':At(_0x18a50d,'*Merge:*\x20%0',this['getItemLabel'](_0xf1cdab['element'],_0xf1cdab['quantity']))});continue;case'addFormat':_0x23cc15['push'](_0xf1cdab['key']);continue;case'removeFormat':_0x32502a['push'](_0xf1cdab['key']);continue;default:_0x450490['push'](_0xf1cdab);}if(_0x23cc15['length']){const _0x35aa17=_0x23cc15['map'](_0x1cd3a6=>this['_attributeLabels']['has'](_0x1cd3a6)?this['_attributeLabels']['get'](_0x1cd3a6):_0x1cd3a6)['join'](',\x20');_0x450490['push']({'type':'format','content':At(this['_locale'],'*Set\x20format:*\x20%0',_0x35aa17)});}if(_0x32502a['length']){const _0x3efdb6=_0x32502a['map'](_0x47037d=>this['_attributeLabels']['has'](_0x47037d)?this['_attributeLabels']['get'](_0x47037d):_0x47037d)['join'](',\x20');_0x450490['push']({'type':'format','content':At(this['_locale'],'*Remove\x20format:*\x20%0',_0x3efdb6)});}return _0x450490;}['_handleCustomCallbackDescription'](_0x211686){for(const _0x2c62a4 of this['_customCallbacks']){const _0xa2e742=_0x2c62a4(_0x211686);if(_0xa2e742&&'type'in _0xa2e742)return _0xa2e742;}}['_handleAttributeSuggestionDescription'](_0x691d4f,_0x3d5943){const _0x2b01db=_0x3d5943['data'],_0x1c2258=void 0x0===_0x2b01db['newValue']?'removeFormat':'addFormat';_0x691d4f['push']({'type':_0x1c2258,'key':_0x2b01db['key']});}['_handleRenameSuggestionDescription'](_0x39a47c,_0x459401){_0x39a47c['push']({'type':'format','content':At(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x459401['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x53c151,_0x4dc1ce,_0x15a3c9){if(this['_addDescriptionItems'](_0x53c151,_0x4dc1ce),_0x15a3c9&&_0x15a3c9['getFirstRange']()&&!_0x4dc1ce['getFirstRange']()['end']['isEqual'](_0x15a3c9['getFirstRange']()['start'])){const _0x560f07=_0x53c151[_0x53c151['length']-0x1],_0x48eeb0='insertion'==_0x4dc1ce['type']?'add':'remove';_0x560f07&&'text'==_0x560f07['type']&&(_0x560f07[_0x48eeb0]+='\x0a');}}}class Ct extends _0x55ebc7{['afterInit'](){const _0x44ba83=this['editor'],_0x23fbe7=_0x44ba83['plugins']['get']('TrackChangesEditing');_0x44ba83['commands']['get']('showAIAssistant')&&_0x23fbe7['enableCommand']('showAIAssistant');}}class yt extends _0x55ebc7{['afterInit'](){const _0x3546f4=this['editor'],_0x5dc440=_0x3546f4['plugins']['get']('TrackChangesEditing');_0x3546f4['commands']['get']('toggleAi')&&_0x5dc440['enableCommand']('toggleAi');}}class Nt extends _0x55ebc7{['afterInit'](){const _0x16ac6c=this['editor'],_0x2d7a6f=_0x16ac6c['plugins']['get']('TrackChangesEditing');_0x16ac6c['commands']['get']('aiQuickAction')&&_0x2d7a6f['enableCommand']('aiQuickAction');}}class Rt extends _0x55ebc7{['afterInit'](){const _0x115cd5=this['editor'],_0x45a344=_0x115cd5['locale'];if(!_0x115cd5['plugins']['has']('AlignmentEditing'))return;const _0x3262fe=_0x115cd5['plugins']['get']('TrackChangesEditing');_0x3262fe['enableDefaultAttributesIntegration']('alignment'),_0x3262fe['descriptionFactory']['registerAttributeLabel']('alignment',At(_0x45a344,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17bc23=this['editor'],_0x37c011=_0x17bc23['locale'];_0x17bc23['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d44d5=>{if('formatBlock'!=_0x3d44d5['type'])return;const {data:_0x30caa3}=_0x3d44d5;if(_0x30caa3&&'alignment'==_0x30caa3['commandName']){const _0x6917ce=_0x30caa3['commandParams'][0x0]['value'];return{'type':'format','content':At(_0x37c011,'*Format:*\x20%0',function(_0x5019fe){switch(_0x5019fe){case'left':return At(_0x37c011,'FORMAT_ALIGN_TO_LEFT');case'right':return At(_0x37c011,'FORMAT_ALIGN_TO_RIGHT');case'center':return At(_0x37c011,'FORMAT_ALIGN_TO_CENTER');case'justify':return At(_0x37c011,'FORMAT_JUSTIFY_TEXT');}}(_0x6917ce))};}});}}const St=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Mt extends _0x55ebc7{['afterInit'](){const _0x316358=this['editor'],_0x56b1a9=_0x316358['plugins']['get']('TrackChangesEditing'),_0x49dc2=_0x316358['locale'];for(const _0x3d4b56 of St){if(!_0x316358['plugins']['has'](_0x3d4b56))continue;const _0x455d0e=_0x3d4b56['slice'](0x0,-0x7)['toLowerCase'](),_0x21c5ff='FORMAT_'+_0x455d0e['toUpperCase']();_0x56b1a9['enableDefaultAttributesIntegration'](_0x455d0e),_0x56b1a9['descriptionFactory']['registerAttributeLabel'](_0x455d0e,At(_0x49dc2,_0x21c5ff));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcd0ca9=this['editor'],_0x306300=_0xcd0ca9['locale'],_0x286a94=_0xcd0ca9['plugins']['get']('TrackChangesEditing');function _0x2eeaa3(_0xc7ecfd,_0x2d346a){_0x286a94['descriptionFactory']['registerDescriptionCallback'](_0x1a5118=>{if('formatInline'!=_0x1a5118['type'])return;const {data:_0x2f580b}=_0x1a5118;return _0x2f580b&&_0x2f580b['commandName']===_0xc7ecfd?_0x2f580b['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x306300,'*Format:*\x20%0',_0x2d346a)}:{'type':'format','content':At(_0x306300,'*Remove\x20format:*\x20%0',_0x2d346a)}:void 0x0;});}_0x2eeaa3('bold',At(_0x306300,'FORMAT_BOLD')),_0x2eeaa3('italic',At(_0x306300,'FORMAT_ITALIC')),_0x2eeaa3('underline',At(_0x306300,'FORMAT_UNDERLINE')),_0x2eeaa3('code',At(_0x306300,'FORMAT_CODE')),_0x2eeaa3('strikethrough',At(_0x306300,'FORMAT_STRIKETHROUGH')),_0x2eeaa3('subscript',At(_0x306300,'FORMAT_SUBSCRIPT')),_0x2eeaa3('superscript',At(_0x306300,'FORMAT_SUPERSCRIPT'));}}class Ot extends _0x55ebc7{['afterInit'](){const _0xc5e561=this['editor'],_0xd64983=_0xc5e561['locale'];if(!_0xc5e561['plugins']['has']('BlockQuoteEditing'))return;const _0x5b22d8=_0xc5e561['plugins']['get']('TrackChangesEditing'),_0x2be51a=this['editor']['commands']['get']('blockQuote');_0x5b22d8['enableCommand']('blockQuote',(_0x1798cd,_0x477d43={})=>{const _0x1c6086=this['editor']['model']['document']['selection'],_0x183ff7=_0x477d43&&void 0x0!==_0x477d43['forceValue']?_0x477d43['forceValue']:!_0x2be51a['value'];let _0x1a5550=[];if(_0x183ff7){const _0x410e1c=Array['from'](_0x1c6086['getSelectedBlocks']())['filter'](_0x2b22be=>wt(_0x2b22be)||function(_0x4f3535,_0x6d95b8){const _0x2bddca=_0x6d95b8['checkChild'](_0x4f3535['parent'],'blockQuote'),_0x470d0d=_0x6d95b8['checkChild'](['$root','blockQuote'],_0x4f3535);return _0x2bddca&&_0x470d0d;}(_0x2b22be,this['editor']['model']['schema']));_0x1a5550=Tt(_0x410e1c,_0xc5e561['model']);}else{const _0x22865f=Array['from'](_0x1c6086['getSelectedBlocks']())['filter'](_0x2a2da7=>wt(_0x2a2da7));_0x1a5550=Tt(_0x22865f,_0xc5e561['model']);}_0xc5e561['model']['change'](()=>{for(const _0x2d8dcc of _0x1a5550)_0x5b22d8['markBlockFormat'](_0x2d8dcc,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x183ff7}]});});}),_0x5b22d8['descriptionFactory']['registerDescriptionCallback'](_0x1ca9f2=>{const {data:_0x6a3131}=_0x1ca9f2;if(_0x6a3131&&'blockQuote'==_0x6a3131['commandName']){const _0x237b2d=At(_0xd64983,'ELEMENT_BLOCK_QUOTE');return _0x6a3131['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0xd64983,'*Set\x20format:*\x20%0',_0x237b2d)}:{'type':'format','content':At(_0xd64983,'*Remove\x20format:*\x20%0',_0x237b2d)};}});}}function wt(_0x3409f4){return'blockQuote'==_0x3409f4['parent']['name'];}class Bt extends _0x55ebc7{['afterInit'](){const _0x1060d3=this['editor'],_0x50371d=_0x1060d3['locale'],_0x2f993b=_0x1060d3['plugins']['get']('TrackChangesEditing');_0x1060d3['plugins']['has']('BookmarkEditing')&&(_0x2f993b['enableCommand']('insertBookmark'),_0x2f993b['enableDefaultAttributesIntegration']('updateBookmark'),_0x2f993b['descriptionFactory']['registerDescriptionCallback'](_0xdc1448=>{if('insertion'!=_0xdc1448['type']&&'deletion'!=_0xdc1448['type']&&'attribute'!=_0xdc1448['type'])return;const _0x5c5a48=_0xdc1448['getContainedElement']();if(null==_0x5c5a48)return;if(!_0x5c5a48['is']('element','bookmark'))return;const _0x64c262=_0x5c5a48['getAttribute']('bookmarkId');if('insertion'==_0xdc1448['type'])return{'type':'insertion','content':At(_0x50371d,'*Insert:*\x20%0','\x22'+_0x64c262+'\x22\x20'+At(_0x50371d,'ELEMENT_BOOKMARK'))};if('deletion'==_0xdc1448['type'])return{'type':'deletion','content':At(_0x50371d,'*Remove:*\x20%0','\x22'+_0x64c262+'\x22\x20'+At(_0x50371d,'ELEMENT_BOOKMARK'))};const {data:_0x34622d}=_0xdc1448;if(!_0x34622d||'bookmarkId'!=_0x34622d['key'])return;return{'type':'format','content':At(_0x50371d,'*Set\x20bookmark:*\x20%0','\x22'+_0x34622d['newValue']+'\x22')};}));}}class Ft extends _0x55ebc7{['afterInit'](){const _0xa81bc=this['editor'];_0xa81bc['plugins']['has']('CaseChange')&&(_0xa81bc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xa81bc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xa81bc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class Dt extends _0x55ebc7{['afterInit'](){const _0x576cb8=this['editor'];_0x576cb8['commands']['get']('ckbox')&&_0x576cb8['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class vt extends _0x55ebc7{['afterInit'](){const _0x1fc13d=this['editor'];if(!_0x1fc13d['plugins']['has']('CodeBlock'))return;const _0x308608=_0x1fc13d['plugins']['get']('TrackChangesEditing'),_0x5d35a3=_0x1fc13d['locale'],_0xae6ab2=_0x1fc13d['config']['get']('codeBlock')['languages'],_0x3f1a27=_0x1fc13d['commands']['get']('codeBlock');_0x308608['enableCommand']('indentCodeBlock'),_0x308608['enableCommand']('outdentCodeBlock'),_0x308608['enableCommand']('codeBlock',(_0x5d30d7,_0x6eab07={})=>{const _0x19ad5f=_0x1fc13d['model'],_0x56ff4c=_0x1fc13d['model']['document']['selection'],_0x5d68ba=_0x6eab07&&void 0x0!==_0x6eab07['forceValue']?_0x6eab07['forceValue']:!_0x3f1a27['value'];let _0xec3fd1;_0x6eab07['language']||(_0x6eab07['language']=_0xae6ab2[0x0]['language']),_0xec3fd1=_0x5d68ba?Array['from'](_0x56ff4c['getSelectedBlocks']())['filter'](_0xe581d3=>xt(_0xe581d3)||function(_0x31bb7e,_0x23791f){if(_0x31bb7e['is']('rootElement')||_0x23791f['isLimit'](_0x31bb7e))return!0x1;return _0x23791f['checkChild'](_0x31bb7e['parent'],'codeBlock');}(_0xe581d3,_0x19ad5f['schema'])):Array['from'](_0x56ff4c['getSelectedBlocks']())['filter'](_0x55b65a=>xt(_0x55b65a));const _0x3b250b=Tt(_0xec3fd1,_0x19ad5f);_0x19ad5f['change'](()=>{for(const _0x42aace of _0x3b250b)_0x308608['markBlockFormat'](_0x42aace,{'commandName':'codeBlock','commandParams':[{..._0x6eab07,'forceValue':_0x5d68ba}],'formatGroupId':'blockName'});});}),(_0x308608['descriptionFactory']['registerElementLabel']('codeBlock',_0x22127a=>At(_0x5d35a3,'ELEMENT_CODE_BLOCK',_0x22127a)),_0x308608['descriptionFactory']['registerDescriptionCallback'](_0xcb340c=>{if('formatBlock'!=_0xcb340c['type'])return;const _0x613769=_0x5d35a3['t'],{data:_0x15647d}=_0xcb340c;if(!_0x15647d||'codeBlock'!=_0x15647d['commandName'])return;const _0x17b2a3=_0x15647d['commandParams'][0x0]['language'],_0x3a3578=_0x613769(_0xae6ab2['find'](_0x13242f=>_0x13242f['language']===_0x17b2a3)['label'])['toLowerCase']();return _0x15647d['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x5d35a3,'*Set\x20format:*\x20%0',At(_0x5d35a3,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3a3578+')')}:{'type':'format','content':At(_0x5d35a3,'*Remove\x20format:*\x20%0',At(_0x5d35a3,'ELEMENT_CODE_BLOCK',0x1))};}));}}function xt(_0x146515){return'codeBlock'==_0x146515['name'];}class Pt extends _0x55ebc7{['afterInit'](){const _0x1a6df7=this['editor'];if(!_0x1a6df7['plugins']['has']('CommentsEditing'))return;_0x1a6df7['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Ut extends _0x55ebc7{static get['requires'](){return[at];}['init'](){const _0x3ec3b5=this['editor'],_0x13293a=_0x3ec3b5['plugins']['get']('TrackChangesEditing');_0x13293a['enableCommand']('delete');const _0x308f72=_0x3ec3b5['commands']['get']('deleteForward');_0x13293a['enableCommand']('deleteForward',(_0x2b3dd1,_0x535906={})=>{const _0x35f15d=_0x3ec3b5['model']['createSelection'](_0x3ec3b5['model']['document']['selection']);_0x35f15d['isCollapsed']&&_0x3ec3b5['model']['modifySelection'](_0x35f15d,{'direction':'forward','unit':_0x535906['unit']});const _0x3b2b1e=_0x35f15d['getFirstRange'](),_0x28283b=_0x3e26ed['fromRange'](_0x3b2b1e);let _0x1e9f55;_0x2b3dd1(_0x535906),_0x1e9f55='$graveyard'==_0x28283b['root']['rootName']?_0x3ec3b5['model']['createRange'](_0x3b2b1e['start']):_0x3ec3b5['model']['createRange'](_0x28283b['start'],_0x28283b['end']),_0x28283b['detach'](),_0x3ec3b5['model']['enqueueChange'](_0x308f72['buffer']['batch'],_0x5f42cb=>{_0x308f72['buffer']['lock'](),_0x5f42cb['setSelection'](_0x5f42cb['createRange'](_0x1e9f55['end'])),_0x308f72['buffer']['unlock']();});});}}class Gt extends _0x55ebc7{['afterInit'](){const _0xffb392=this['editor'];if(!_0xffb392['plugins']['has']('ListEditing'))return;const _0x5da35d=_0xffb392['locale'],_0x39c537=_0xffb392['plugins']['get']('TrackChangesEditing'),_0x599f7d=_0xffb392['plugins']['has']('TodoListEditing'),_0x412005=!!_0xffb392['config']['get']('list.multiBlock');function _0x229d69(_0x5d1bea){return{'type':'format','content':''+At(_0x5da35d,'*Set\x20format:*\x20%0',_0x5d1bea)};}function _0x517a3(_0x318806){return{'type':'format','content':''+At(_0x5da35d,'*Remove\x20format:*\x20%0',_0x318806)};}_0x39c537['enableDefaultAttributesIntegration']('numberedList'),_0x39c537['enableDefaultAttributesIntegration']('bulletedList'),_0x39c537['enableDefaultAttributesIntegration']('customNumberedList'),_0x39c537['enableDefaultAttributesIntegration']('customBulletedList'),_0x39c537['enableDefaultAttributesIntegration']('indentList'),_0x39c537['enableDefaultAttributesIntegration']('outdentList'),_0x39c537['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x39c537['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x412005&&(_0x39c537['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x39c537['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x599f7d&&(_0x39c537['enableDefaultAttributesIntegration']('todoList'),_0x39c537['enableDefaultAttributesIntegration']('checkTodoList'),_0x39c537['descriptionFactory']['registerDescriptionCallback'](_0x544e40=>{const {data:_0x14da99}=_0x544e40;if(_0x14da99&&'todoListChecked'==_0x14da99['key'])return{'type':'format','content':_0x14da99['newValue']?At(_0x5da35d,'*Check\x20item*'):At(_0x5da35d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3c7bff=>{if(_0x3c7bff['batch']['isUndo'])return!0x1;let _0x21798b=!0x1;const _0x277aa1=_0x39c537['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x18e569=>'todoListChecked'===_0x39c537['_getAttributeKey'](_0x18e569));for(const _0x198772 of _0x277aa1){'todo'!=_0x198772['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x39c537['_findSuggestions'](_0x198772['getFirstRange'](),'attribute')['find'](_0x3dc037=>'listType'===_0x39c537['_getAttributeKey'](_0x3dc037['suggestion']))||(_0x3c7bff['removeMarker'](_0x198772['getFirstMarker']()),_0x21798b=!0x0));}return _0x21798b;})),_0x39c537['descriptionFactory']['registerAttributeLabel']('listIndent',At(_0x5da35d,'FORMAT_INDENT'));const _0x1f283c={'type':'format','content':''};_0x39c537['descriptionFactory']['registerDescriptionCallback'](_0x77e69=>{const {data:_0x4cb9f9}=_0x77e69;if(!_0x4cb9f9||'listType'!=_0x4cb9f9['key'])return;let _0x4ecdc6=_0x77e69['head'];for(;_0x4ecdc6;){if(_0x4ecdc6['data']&&(('listStyle'==_0x4ecdc6['data']['key']||'listMarkerStyle'==_0x4ecdc6['data']['key'])&&(_0x4ecdc6['data']['newValue']&&'default'!=_0x4ecdc6['data']['newValue']||'default'!=_0x4ecdc6['data']['oldValue']&&!_0x4cb9f9['newValue'])||!_0x412005&&_0x4ecdc6['data']['key']==Ke))return _0x1f283c;_0x4ecdc6=_0x4ecdc6['next'];}if(null==_0x4cb9f9['newValue'])switch(_0x4cb9f9['oldValue']){case'bulleted':return _0x517a3(At(_0x5da35d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x517a3(At(_0x5da35d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x517a3(At(_0x5da35d,'ELEMENT_TODO_LIST'));}switch(_0x4cb9f9['newValue']){case'bulleted':return _0x229d69(At(_0x5da35d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x229d69(At(_0x5da35d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x229d69(At(_0x5da35d,'ELEMENT_TODO_LIST'));}}),_0x39c537['descriptionFactory']['registerDescriptionCallback'](_0x5698cd=>{const {data:_0x2ca9ed}=_0x5698cd;if(_0x2ca9ed&&'listIndent'==_0x2ca9ed['key'])return null==_0x2ca9ed['newValue']||null==_0x2ca9ed['oldValue']&&0x0==_0x2ca9ed['newValue']?_0x1f283c:void 0x0;}),_0x39c537['descriptionFactory']['registerDescriptionCallback'](_0x1b7a85=>{if('attribute'!=_0x1b7a85['type'])return;const {data:_0x5ab6b6}=_0x1b7a85;if(!_0x5ab6b6||'listItemId'!=_0x5ab6b6['key'])return;const _0x4adc2e=Ht(_0x1b7a85);return'newValue'==_0x4adc2e?{'type':'format','content':At(_0x5da35d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4adc2e?{'type':'format','content':At(_0x5da35d,'*Split:*\x20list\x20item')}:_0x1f283c;}),_0xffb392['model']['document']['registerPostFixer'](_0xaca644=>this['listItemIdFixer'](_0xaca644)),_0xffb392['model']['document']['registerPostFixer'](_0x12cb34=>this['noTrackChangesFixer'](_0x12cb34)),_0xffb392['model']['document']['on']('change:data',(_0x53eff6,_0x259335)=>{if(_0x259335['isUndo']||!_0x259335['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x17a682){if(_0x17a682['batch']['isUndo']||!_0x17a682['batch']['isLocal'])return!0x1;let _0x117708=!0x1;const _0x3cb0f4=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5af947=>_0x5af947['data']&&'listItemId'==_0x5af947['data']['key'])['filter'](_0x561580=>_0x561580['data']['newValue']&&_0x561580['data']['oldValue']);for(const _0xf96a96 of _0x3cb0f4)Ht(_0xf96a96)||(_0x17a682['removeMarker'](_0xf96a96['getFirstMarker']()),_0x117708=!0x0);return _0x117708;}['noTrackChangesFixer'](_0x29d2f4){if(_0x29d2f4['batch']['isUndo']||!_0x29d2f4['batch']['isLocal'])return!0x1;const _0x8cdcd=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x8cdcd['trackChangesCommand']['value'])return!0x1;let _0x146456=!0x1;const _0x15ac67=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x21b849=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5ad59b=>'attribute'==_0x5ad59b['type'])['filter'](_0x327c57=>_0x15ac67['includes'](_0x327c57['attributeKey']));if(0x0==_0x21b849['length'])return _0x146456;for(const _0x28da21 of _0x21b849){const _0x214b0=_0x8cdcd['_findSuggestions'](_0x28da21['range'],'attribute')['filter'](_0x311870=>!_0x311870['meta']['isNextTo'])['map'](_0x582fa6=>_0x582fa6['suggestion'])['filter'](_0x627ddc=>{const _0x48b475=_0x8cdcd['_getAttributeKey'](_0x627ddc);return _0x15ac67['includes'](_0x48b475);});if(_0x214b0['length']){for(const _0x48872b of _0x214b0)_0x29d2f4['removeMarker'](_0x48872b['getFirstMarker']());_0x146456=!0x0;}}return _0x146456;}['assureChains'](){const _0x2b4f46=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34076e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x14b908;const _0x2a7d7f=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x568820=>{if(_0x568820['data']['oldRange']||!_0x568820['data']['newRange'])return null;if(!_0x568820['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x393e91}=_0x413c95(_0x568820['name']);if(!_0x2b4f46['hasSuggestion'](_0x393e91))return null;const _0x23a44f=_0x2b4f46['getSuggestion'](_0x393e91);return _0x34076e['includes'](_0x23a44f['data']['key']);})['map'](_0x2fa635=>{const {id:_0x525aa5}=_0x413c95(_0x2fa635['name']),_0x5e1009=_0x2b4f46['getSuggestion'](_0x525aa5);return _0x14b908=_0x5e1009['attributes']['groupId'],_0x5e1009['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2a7d7f['size'])return;const _0x509af7=_0x2b4f46['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f7bbe=>'attribute'==_0x4f7bbe['type']&&_0x4f7bbe['data']&&_0x34076e['includes'](_0x4f7bbe['data']['key'])&&_0x4f7bbe['attributes']['groupId']!=_0x14b908)['map'](_0x430cd8=>({'listItem':_0x430cd8['getFirstRange']()['start']['nodeAfter'],'groupId':_0x430cd8['attributes']['groupId']})),_0x75719f=new Set();for(const {groupId:_0x14329c,listItem:_0x12afa1}of _0x509af7)_0x2a7d7f['has'](_0x12afa1)&&_0x75719f['add'](_0x14329c);for(const _0x3e9c9d of _0x2b4f46['getSuggestions']())_0x75719f['has'](_0x3e9c9d['attributes']['groupId'])&&_0x3e9c9d['setAttribute']('groupId',_0x14b908);}['_supportLegacySuggestions'](){const _0x375709=this['editor'],_0x8aeb3d=_0x375709['locale'],_0x98c6ab=_0x375709['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x98c6ab['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x25d40c,_0x338fce){const _0x44d47c=[];for(let _0x11d055 of _0x25d40c)_0x11d055['start']['nodeAfter']===_0x11d055['end']['parent']&&(_0x11d055=_0x375709['model']['createRange'](_0x375709['model']['createPositionAt'](_0x11d055['start']['nodeAfter'],0x0))),_0x44d47c['push'](_0x11d055);_0x375709['model']['change'](_0x34db73=>{const _0x17775b=_0x375709['model']['document']['selection'],_0x5c6d7f=Array['from'](_0x17775b['getRanges']())['map'](_0x403a5a=>_0x3e26ed['fromRange'](_0x403a5a));_0x34db73['setSelection'](_0x44d47c),_0x375709['commands']['get'](_0x338fce['commandName'])['refresh'](),_0x338fce['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x375709['execute'](_0x338fce['commandName'],..._0x338fce['commandParams']),_0x34db73['setSelection'](_0x5c6d7f);for(const _0x49f7c3 of _0x5c6d7f)_0x49f7c3['detach']();});}),_0x98c6ab['descriptionFactory']['registerElementLabel'](function(_0x3c9cfe){const _0x28469b=!_0x375709['model']['schema']['isObject'](_0x3c9cfe),_0x18c124=_0x3c9cfe['previousSibling'],_0x10ce09=_0x3c9cfe['nextSibling'],_0x3e6eb5=_0x3c9cfe['getAttribute']('listItemId'),_0x4daa9b=!_0x18c124||_0x18c124['getAttribute']('listItemId')!==_0x3e6eb5,_0x27dab7=!_0x10ce09||_0x10ce09['getAttribute']('listItemId')!==_0x3e6eb5;return _0x28469b&&Boolean(_0x3e6eb5)&&_0x4daa9b&&_0x27dab7;},_0x1affac=>At(_0x8aeb3d,'ELEMENT_LIST_ITEM',_0x1affac));}['_registerLegacyDescription'](){const _0x46d4f2=this['editor'],_0x496ed2=_0x46d4f2['locale'];function _0x3e508b(_0x712a71){const _0x4f819b=_0x46d4f2['commands']['get']('bulletedList')['value'],_0x7b0f3b=_0x46d4f2['commands']['get']('numberedList')['value'];return'numberedList'===_0x712a71?_0x4f819b:_0x7b0f3b;}_0x46d4f2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x93ba4){if('formatBlock'!=_0x93ba4['type'])return;const {data:_0x53b8d2}=_0x93ba4;if(!_0x53b8d2)return;let _0x56c7a7,_0x10964e,_0x16625a,_0x5f22ed;switch(_0x53b8d2['commandName']){case'bulletedList':_0x16625a=_0x53b8d2['commandParams'][0x0]['forceValue'],_0x5f22ed=_0x3e508b(_0x53b8d2['commandName']),_0x56c7a7=_0x16625a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5f22ed&&_0x46d4f2['config']['get']('list.multiBlock')||(_0x56c7a7='*Change\x20to:*\x20%0'),_0x10964e={'type':'format','content':At(_0x496ed2,_0x56c7a7,At(_0x496ed2,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x16625a=_0x53b8d2['commandParams'][0x0]['forceValue'],_0x5f22ed=_0x3e508b(_0x53b8d2['commandName']),_0x56c7a7=_0x16625a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5f22ed&&_0x46d4f2['config']['get']('list.multiBlock')||(_0x56c7a7='*Change\x20to:*\x20%0'),_0x10964e={'type':'format','content':At(_0x496ed2,_0x56c7a7,At(_0x496ed2,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x56c7a7='*Indent:*\x20%0',_0x10964e={'type':'format','content':At(_0x496ed2,_0x56c7a7,At(_0x496ed2,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x56c7a7=function(_0x3763c0){const _0x7a511f=_0x3763c0['getFirstRange']();let _0x550090=_0x7a511f['start']['nodeAfter'];for(;_0x550090&&_0x7a511f['containsItem'](_0x550090);){if(_0x550090['getAttribute']('listIndent')>0x0)return!0x1;_0x550090=_0x550090['nextSibling'];}return!0x0;}(_0x93ba4)?At(_0x496ed2,'*Format:*\x20remove\x20from\x20%0',At(_0x496ed2,function(_0x5907e0){return'ELEMENT_'+_0x5907e0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x93ba4))):At(_0x496ed2,'*Outdent:*\x20%0',At(_0x496ed2,'ELEMENT_LIST_ITEM')),_0x10964e={'type':'format','content':_0x56c7a7};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x53b8d2['multipleBlocks']&&(_0x56c7a7='*Merge:*\x20%0',_0x10964e={'type':'deletion','content':At(_0x496ed2,_0x56c7a7,At(_0x496ed2,'ELEMENT_LIST_ITEM'))});}return _0x10964e;});}}function Ht(_0x4e1045){let _0x492db3=_0x4e1045['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x492db3;){const _0x4ca3f0=_0x492db3['getAttribute']('listItemId');if(!_0x4ca3f0)return!0x1;if(_0x4ca3f0==_0x4e1045['data']['newValue'])return'newValue';if(_0x4ca3f0==_0x4e1045['data']['oldValue'])return'oldValue';_0x492db3=_0x492db3['previousSibling'];}return!0x1;}class $t extends _0x55ebc7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x8b797a=this['editor']['config']['get']('list.properties'),_0x399f14=this['editor']['plugins']['get']('TrackChangesEditing');_0x8b797a['styles']&&_0x399f14['enableDefaultAttributesIntegration']('listStyle'),_0x8b797a['reversed']&&_0x399f14['enableDefaultAttributesIntegration']('listReversed'),_0x8b797a['startIndex']&&_0x399f14['enableDefaultAttributesIntegration']('listStart');const _0x1bd02e={'type':'format','content':''};_0x399f14['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xf2786f=this['editor']['locale'];_0x399f14['descriptionFactory']['registerAttributeLabel']('listReversed',At(_0xf2786f,'FORMAT_LIST_REVERSED')),_0x399f14['descriptionFactory']['registerDescriptionCallback'](_0x1097ea=>{const {data:_0x2290e6}=_0x1097ea;if(_0x2290e6&&'listReversed'==_0x2290e6['key'])return null==_0x2290e6['newValue']||0x0==_0x2290e6['newValue']&&null==_0x2290e6['oldValue']?_0x1bd02e:void 0x0;}),_0x399f14['descriptionFactory']['registerAttributeLabel']('listStart',At(_0xf2786f,'FORMAT_LIST_START')),_0x399f14['descriptionFactory']['registerDescriptionCallback'](_0x4e111c=>{const {data:_0x150242}=_0x4e111c;if(_0x150242&&'listStart'==_0x150242['key'])return null==_0x150242['newValue']||0x1==_0x150242['newValue']&&null==_0x150242['oldValue']?_0x1bd02e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x319194=>{if(_0x319194['batch']['isUndo'])return!0x1;let _0x95c14e=!0x1;const _0x725294=_0x399f14['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c17b1=>{const _0x48f7ad=_0x399f14['_getAttributeKey'](_0x1c17b1);return'listStart'==_0x48f7ad||'listReversed'==_0x48f7ad;});for(const _0x24a74a of _0x725294){const _0x2eef56=_0x24a74a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2eef56||'customNumbered'==_0x2eef56)continue;_0x399f14['_findSuggestions'](_0x24a74a['getFirstRange'](),'attribute')['find'](_0x529229=>'listType'==_0x399f14['_getAttributeKey'](_0x529229['suggestion']))||(_0x319194['removeMarker'](_0x24a74a['getFirstMarker']()),_0x95c14e=!0x0);}return _0x95c14e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x584ef0){const _0x58619d=this['editor']['locale'],{data:_0x2f71a7}=_0x584ef0,_0x2ed428={'type':'format','content':''};if(!_0x2f71a7||'listStyle'!=_0x2f71a7['key'])return;if(!_0x2f71a7['oldValue'])return'default'==_0x2f71a7['newValue']?_0x2ed428:{'type':'format','content':''+At(_0x58619d,'*Set\x20format:*\x20%0',At(_0x58619d,this['_getTranslationKeyForListStyle'](_0x2f71a7['newValue'])))};if(!_0x2f71a7['newValue']){if('default'==_0x2f71a7['oldValue'])return _0x2ed428;let _0x42ba45=_0x584ef0['head'];for(;_0x42ba45;){if(_0x42ba45['data']&&'listType'==_0x42ba45['data']['key']&&_0x42ba45['data']['newValue'])return _0x2ed428;_0x42ba45=_0x42ba45['next'];}return{'type':'format','content':''+At(_0x58619d,'*Remove\x20format:*\x20%0',At(_0x58619d,this['_getTranslationKeyForListStyle'](_0x2f71a7['oldValue'])))};}if('default'!=_0x2f71a7['newValue'])return{'type':'format','content':''+At(_0x58619d,'*Set\x20format:*\x20%0',At(_0x58619d,this['_getTranslationKeyForListStyle'](_0x2f71a7['newValue'])))};let _0x5d954a=_0x584ef0['head'];for(;_0x5d954a;){if(_0x5d954a['data']&&'listType'==_0x5d954a['data']['key']&&_0x5d954a['data']['newValue']&&_0x5d954a['data']['oldValue'])return _0x2ed428;_0x5d954a=_0x5d954a['next'];}return{'type':'format','content':At(_0x58619d,'*Set\x20format:*\x20%0',At(_0x58619d,'ELEMENT_'+_0x584ef0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x358e43=this['editor'],_0x93cc2b=_0x358e43['locale'];_0x358e43['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c197d=>{if('formatBlock'!=_0x4c197d['type'])return;const {data:_0x285e2c}=_0x4c197d;if(!_0x285e2c)return;let _0x1d8c96,_0x1c5619;switch(_0x285e2c['commandName']){case'listStyle':_0x1d8c96='*Change\x20to:*\x20%0',_0x1c5619={'type':'format','content':At(_0x93cc2b,_0x1d8c96,At(_0x93cc2b,this['_getTranslationKeyForListStyle'](_0x285e2c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1d8c96=_0x285e2c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1c5619={'type':'format','content':At(_0x93cc2b,_0x1d8c96)};break;case'listStart':_0x1d8c96='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1c5619={'type':'format','content':At(_0x93cc2b,_0x1d8c96,_0x285e2c['commandParams'][0x0]['startIndex'])};}return _0x1c5619;});}['_getTranslationKeyForListStyle'](_0x45dd63){return'ELEMENT_'+function(_0x24a9b8){if(Wt['includes'](_0x24a9b8))return'bulleted';if(Vt['includes'](_0x24a9b8))return'numbered';return null;}(_0x45dd63)['toUpperCase']()+'_LIST_'+_0x45dd63['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 _0x55ebc7{['afterInit'](){const _0x32508f=this['editor'];_0x32508f['commands']['get']('emoji')&&_0x32508f['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class zt extends _0x55ebc7{static get['requires'](){return[lt];}['init'](){const _0x7e5134=this['editor'],_0x44dee5=_0x7e5134['plugins']['get']('TrackChangesEditing'),_0x486fda=_0x7e5134['commands']['get']('enter');_0x44dee5['enableCommand']('enter',()=>{_0x7e5134['model']['change'](_0x1cb74c=>{const _0x3e3a7d=_0x7e5134['model']['document']['selection'],_0x51656d=_0x3e3a7d['getFirstPosition'](),_0x4ebfdc=_0x3e26ed['fromRange'](_0x3e3a7d['getFirstRange']());if(_0x486fda['enterBlock'](_0x1cb74c)){const _0x19aa07=_0x7e5134['model']['createPositionAt'](_0x51656d['parent']['nextSibling'],0x0),_0x2fc3dd=_0x1cb74c['createRange'](_0x51656d,_0x19aa07);_0x44dee5['markInsertion'](_0x2fc3dd);}else _0x1cb74c['setSelection'](_0x1cb74c['createRange'](_0x4ebfdc['end']));_0x4ebfdc['detach'](),_0x486fda['fire']('afterExecute',{'writer':_0x1cb74c});});});}}class Kt extends _0x55ebc7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4eb05d=this['editor']['plugins']['get']('TrackChangesEditing');_0x4eb05d['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4eb05d['enableCommand']('findNext'),_0x4eb05d['enableCommand']('findPrevious'),_0x4eb05d['enableCommand']('replace'),_0x4eb05d['enableCommand']('replaceAll');}['handleFindCommand'](_0x8672b4,_0x1454a6,_0x3c3824={}){const _0x4b7b1e=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x8672b4(_0x343f09=>{let _0x3e42de=('string'==typeof _0x1454a6?_0x4b7b1e['findByTextCallback'](_0x1454a6,_0x3c3824):_0x1454a6)(_0x343f09);Array['isArray'](_0x3e42de)&&(_0x3e42de={'results':_0x3e42de,'searchText':'string'==typeof _0x1454a6?_0x1454a6:''});const _0x543fd6=_0x3e42de['results']['filter'](_0x3f6e31=>!0x1===this['_isInDeletionRange'](_0x3f6e31,_0x343f09['item']));return{..._0x3e42de,'results':_0x543fd6};},_0x3c3824);}['_isInDeletionRange'](_0x1d531f,_0x153450){const _0x59df25=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x153450,_0x1d531f['start']),this['editor']['model']['createPositionAt'](_0x153450,_0x1d531f['end']));for(const _0x26ba61 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x59df25['getIntersection'](_0x26ba61['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 _0x55ebc7{['afterInit'](){const _0xc8b9ae=this['editor']['locale'],_0x3f1d96=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1ecf80,commandName:_0x25cb3b}of Xt)this['editor']['plugins']['has'](_0x1ecf80)&&_0x3f1d96['enableDefaultAttributesIntegration'](_0x25cb3b);_0x3f1d96['descriptionFactory']['registerAttributeLabel']('fontSize',At(_0xc8b9ae,'FORMAT_FONT_SIZE')),_0x3f1d96['descriptionFactory']['registerAttributeLabel']('fontFamily',At(_0xc8b9ae,'FORMAT_FONT_FAMILY')),_0x3f1d96['descriptionFactory']['registerAttributeLabel']('fontColor',At(_0xc8b9ae,'FORMAT_FONT_COLOR')),_0x3f1d96['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',At(_0xc8b9ae,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42409a=this['editor'],_0x399dee=_0x42409a['locale'];_0x42409a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19a780=>{const _0x509950=_0x399dee['t'];if('formatInline'!=_0x19a780['type'])return;const {data:_0x35028f}=_0x19a780;if(null!=_0x35028f){if('fontSize'==_0x35028f['commandName']){const _0x38c3ec=_0x35028f['commandParams'][0x0]['value'];if(_0x38c3ec){const _0x204243=_0x509950(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x540e18=>_0x540e18['model']==_0x38c3ec)['title'])['toLowerCase']();return{'type':'format','content':At(_0x399dee,'*Set\x20font\x20size:*\x20%0',_0x204243)};}return{'type':'format','content':At(_0x399dee,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x35028f['commandName']){const _0x359562=_0x35028f['commandParams'][0x0]['value'];return _0x359562?{'type':'format','content':At(_0x399dee,'*Set\x20font\x20family:*\x20%0',_0x359562)}:{'type':'format','content':At(_0x399dee,'*Reset\x20font\x20family*')};}if('fontColor'==_0x35028f['commandName']){const _0x472d65=_0x35028f['commandParams'][0x0]['value'];if(_0x472d65){const _0xc7ddde=_0x2dde84(this['editor']['config']['get']('fontColor.colors'))['find'](_0x168705=>_0x168705['model']==_0x472d65);let _0x3d447a=_0x472d65,_0x1e1ca7='';return _0xc7ddde&&(_0x3d447a=_0xc7ddde['label'],_0x1e1ca7=_0x509950(_0x3d447a)['toLowerCase']()),{'type':'format','content':At(_0x399dee,'*Set\x20font\x20color:*\x20%0',_0x1e1ca7)['trim'](),'color':{'value':_0x472d65,'title':_0x1e1ca7||_0x3d447a}};}return{'type':'format','content':At(_0x399dee,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x35028f['commandName']){const _0x5e3a02=_0x35028f['commandParams'][0x0]['value'];if(_0x5e3a02){const _0x2908cc=_0x2dde84(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x84f3b9=>_0x84f3b9['model']==_0x5e3a02);let _0x53b890=_0x5e3a02,_0xe45d98='';return _0x2908cc&&(_0x53b890=_0x2908cc['label'],_0xe45d98=_0x509950(_0x53b890)['toLowerCase']()),{'type':'format','content':At(_0x399dee,'*Set\x20font\x20background\x20color:*\x20%0',_0xe45d98)['trim'](),'color':{'value':_0x5e3a02,'title':_0xe45d98||_0x53b890}};}return{'type':'format','content':At(_0x399dee,'*Reset\x20font\x20background\x20color*')};}}});}}class qt extends _0x55ebc7{['afterInit'](){const {plugins:_0x51fb81}=this['editor'];_0x51fb81['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x51fb81['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0xce4552,plugins:_0x5009cb,commands:_0x35e286}=this['editor'],_0x2f3cda=_0x5009cb['get']('TrackChangesEditing');_0x35e286['get']('footnotesStyle')&&_0x2f3cda['enableDefaultAttributesIntegration']('footnotesStyle'),_0x35e286['get']('footnotesStart')&&_0x2f3cda['enableDefaultAttributesIntegration']('footnotesStart'),_0x2f3cda['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',At(_0xce4552,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x2f3cda['descriptionFactory']['registerAttributeLabel']('footnotesListStart',At(_0xce4552,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x24f8e8=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x15c080,commands:_0x68c254}=this['editor'];_0x68c254['get']('insertFootnote')&&_0x24f8e8['enableCommand']('insertFootnote'),_0x24f8e8['descriptionFactory']['registerElementLabel']('footnoteRef',_0x2c707e=>At(_0x15c080,'ELEMENT_FOOTNOTE_REF',_0x2c707e)),_0x24f8e8['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x4fb145=>At(_0x15c080,'ELEMENT_FOOTNOTE_DEFINITION',_0x4fb145)),_0x24f8e8['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x2e2edb=>At(_0x15c080,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x2e2edb));}}class Qt extends _0x55ebc7{['afterInit'](){const _0x273e07=this['editor'],_0x5dbc42=_0x273e07['plugins']['get']('TrackChangesEditing'),_0x7317e=_0x273e07['commands']['get']('copyFormat'),_0x4770f4=_0x273e07['commands']['get']('pasteFormat');_0x7317e&&_0x4770f4&&(_0x5dbc42['enableDefaultAttributesIntegration']('pasteFormat'),_0x5dbc42['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4bed91=this['editor'],_0x20aeaa=_0x4bed91['locale'];_0x4bed91['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f1ff0=>{if('formatBlock'!=_0x4f1ff0['type']&&'formatInline'!=_0x4f1ff0['type'])return;const {data:_0x5047c0}=_0x4f1ff0;if(_0x5047c0&&'pasteFormat'===_0x5047c0['commandName']){const _0x5763d5=[],_0x9878cc=_0x5047c0['commandParams'][0x0];for(const [_0xb86f89,_0x5389e2]of Object['entries'](_0x9878cc))_0x5763d5['push'](Zt(_0x4bed91,_0xb86f89,_0x5389e2));return _0x5763d5['length']?{'type':'format','content':At(_0x20aeaa,'*Set\x20format\x20to:*\x20%0',_0x5763d5['join'](',\x20'))}:{'type':'format','content':At(_0x20aeaa,'*Remove\x20all\x20formatting*')};}});}}function Zt(_0x5c397f,_0x3e7a83,_0x52162c){const _0x47ce36=_0x5c397f['locale']['t'],_0x34ca14=_0x3e7a83['split'](/(?=[A-Z])/)['join']('\x20'),_0x2ecd59=_0x47ce36(_0x34ca14['charAt'](0x0)['toUpperCase']()+_0x34ca14['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x52162c)return _0x2ecd59;if('fontColor'===_0x3e7a83||'fontBackgroundColor'===_0x3e7a83){const _0x3f0b80=_0x2dde84(_0x5c397f['config']['get']('fontColor.colors'))['find'](_0x3a11dd=>_0x3a11dd['model']==_0x52162c);return _0x2ecd59+'\x20('+(_0x3f0b80?_0x47ce36(_0x3f0b80['label'])['toLowerCase']():_0x52162c)+')';}if('fontSize'===_0x3e7a83&&isNaN(parseFloat(_0x52162c))){const _0x12cec7=_0x5c397f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5c397f['config']['get']('fontSize.options'))['find'](_0x2439be=>_0x2439be['model']==_0x52162c);return _0x2ecd59+'\x20('+(_0x12cec7?_0x47ce36(_0x12cec7['title'])['toLowerCase']():_0x52162c)+')';}return _0x2ecd59+'\x20('+_0x52162c+')';}class Jt extends _0x55ebc7{['_headingOptions'];['afterInit'](){const _0x2393b9=this['editor'];if(!_0x2393b9['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2393b9['config']['get']('heading.options');const _0x1e1648=_0x2393b9['locale'],_0x1f855f=_0x2393b9['plugins']['get']('TrackChangesEditing');_0x1f855f['enableDefaultAttributesIntegration']('heading');for(const _0x4c80b4 of this['_headingOptions'])'paragraph'!=_0x4c80b4['model']&&_0x1f855f['descriptionFactory']['registerElementLabel'](_0x4c80b4['model'],_0x5da449=>{const _0xa75c8a=this['_getHeadingLevel'](_0x4c80b4['model']);return null!==_0xa75c8a?_0x3f0564(_0x5da449,_0xa75c8a):_0x626719(_0x5da449,_0x4c80b4['title']);});function _0x3f0564(_0x211083,_0x3d05e8){return At(_0x1e1648,'ELEMENT_HEADING',[_0x211083,_0x3d05e8]);}function _0x626719(_0x5df9a6,_0x32d20e){return At(_0x1e1648,'ELEMENT_HEADING_CUSTOM',[_0x5df9a6,_0x32d20e]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa9d973=this['editor'],_0xf8a05=_0xa9d973['locale'];function _0x4da585(_0x389180,_0x12fce3){return At(_0xf8a05,'ELEMENT_HEADING_CUSTOM',[_0x389180,_0x12fce3]);}_0xa9d973['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13ba85=>{if('formatBlock'!=_0x13ba85['type'])return;const {data:_0x48b91d}=_0x13ba85;if(_0x48b91d&&'heading'==_0x48b91d['commandName']){const _0x275e2d=_0x48b91d['commandParams'][0x0]['value'],_0x48e4f2=this['_getHeadingLevel'](_0x275e2d);if(null!==_0x48e4f2)return{'type':'format','content':At(_0xf8a05,'*Change\x20to:*\x20%0',(_0x43a5ca=0x1,_0x5f2f6c=_0x48e4f2,At(_0xf8a05,'ELEMENT_HEADING',[_0x43a5ca,_0x5f2f6c])))};const _0x33022c=this['_headingOptions']['find'](_0x1efdf8=>_0x1efdf8['model']===_0x275e2d)['title'];return{'type':'format','content':At(_0xf8a05,'*Change\x20to:*\x20%0',_0x4da585(0x1,_0x33022c))};}var _0x43a5ca,_0x5f2f6c;});}['_getHeadingLevel'](_0x1baadb){const _0x5389bd=_0x1baadb['match'](/^heading(\d+)/);if(_0x5389bd)return _0x5389bd[0x1];const _0x4d3798=this['_headingOptions']?.['find'](_0x1594db=>_0x1594db['model']==_0x1baadb);if(_0x4d3798&&_0x4d3798['view']){const _0x4b5b89=_0x4d3798['view'],_0xcf7fe6=(_0x4b5b89['name']??_0x4b5b89)['match'](/^h(\d+)/);if(_0xcf7fe6)return _0xcf7fe6[0x1];}return null;}}class te extends _0x55ebc7{['afterInit'](){const _0x23f380=this['editor'];if(!_0x23f380['plugins']['has']('HighlightEditing'))return;const _0x42a29b=_0x23f380['plugins']['get']('TrackChangesEditing'),_0x2c502d=_0x23f380['locale'];_0x42a29b['enableDefaultAttributesIntegration']('highlight'),_0x42a29b['descriptionFactory']['registerAttributeLabel']('highlight',At(_0x2c502d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30bcbd=this['editor'],_0x5a32ce=_0x30bcbd['locale'];_0x30bcbd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a18ab=>{if('formatInline'!=_0x1a18ab['type'])return;const {data:_0x282559}=_0x1a18ab;if(_0x282559&&'highlight'==_0x282559['commandName']){const _0x934e8f=_0x5a32ce['t'],_0x1d7e45=_0x282559['commandParams'][0x0]['value'];if(_0x1d7e45){const _0x50e752=_0x30bcbd['config']['get']('highlight.options')['find'](_0x1f7a7e=>_0x1f7a7e['model']==_0x1d7e45),_0xeb9832=_0x934e8f(_0x50e752['title'])['toLowerCase']();return{'type':'format','content':At(_0x5a32ce,'*Set\x20highlight:*\x20%0',_0xeb9832),'color':{'value':_0x50e752['color'],'title':_0x50e752['title']}};}return{'type':'format','content':At(_0x5a32ce,'*Remove\x20highlight*',At(_0x5a32ce,'FORMAT_HIGHLIGHT'))};}});}}class ee extends _0x55ebc7{['afterInit'](){const _0x4e9e41=this['editor'];if(!_0x4e9e41['plugins']['has']('HorizontalLineEditing'))return;_0x4e9e41['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5d2df5=_0x4e9e41['plugins']['get']('TrackChangesEditing'),_0x5d6eea=_0x4e9e41['locale'];_0x5d2df5['descriptionFactory']['registerElementLabel']('horizontalLine',_0x69a3fe=>At(_0x5d6eea,'ELEMENT_HORIZONTAL_LINE',_0x69a3fe));}}class ne extends _0x55ebc7{['afterInit'](){const _0x1c22d7=this['editor'];if(!_0x1c22d7['plugins']['has']('HtmlEmbed'))return;const _0x2bfd25=_0x1c22d7['plugins']['get']('TrackChangesEditing'),_0x55d8a4=_0x1c22d7['locale'];_0x2bfd25['descriptionFactory']['registerElementLabel']('rawHtml',_0x2be421=>At(_0x55d8a4,'ELEMENT_HTML_EMBED',_0x2be421)),_0x2bfd25['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2bfd25['descriptionFactory']['registerDescriptionCallback'](_0x221976=>{if('attribute'!=_0x221976['type'])return;const {data:_0x5e43c2}=_0x221976;if(_0x5e43c2&&'value'==_0x5e43c2['key']&&_0x221976['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5604f6=At(_0x55d8a4,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x55d8a4,'*Change\x20%0\x20content*',_0x5604f6)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2659db=this['editor'],_0x183e59=_0x2659db['locale'];_0x2659db['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b0e15=>{if('formatBlock'!=_0x1b0e15['type'])return;const {data:_0x3e1ec4}=_0x1b0e15;if(_0x3e1ec4&&'htmlEmbed'==_0x3e1ec4['commandName']){const _0x1bd2e0=At(_0x183e59,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x183e59,'*Change\x20%0\x20content*',_0x1bd2e0)};}});}}class ie extends _0x55ebc7{['afterInit'](){const _0x38c654=this['editor'];if(!_0x38c654['plugins']['has']('ImageEditing'))return;const _0x2907e6=_0x38c654['plugins']['get']('TrackChangesEditing'),_0xbf28c6=_0x38c654['plugins']['get']('ImageUtils'),_0x5b25d7=_0x38c654['locale'];_0x2907e6['enableCommand']('insertImage'),_0x2907e6['descriptionFactory']['registerElementLabel']('imageBlock',_0x4fdf44=>At(_0x5b25d7,'ELEMENT_IMAGE',_0x4fdf44)),_0x2907e6['descriptionFactory']['registerElementLabel']('imageInline',_0x299d88=>At(_0x5b25d7,'ELEMENT_INLINE_IMAGE',_0x299d88)),_0x2907e6['descriptionFactory']['registerElementLabel']('caption',()=>At(_0x5b25d7,'ELEMENT_CAPTION')),_0x38c654['plugins']['has']('ImageUploadEditing')&&_0x2907e6['enableCommand']('uploadImage'),_0x38c654['plugins']['has']('ImageBlockEditing')&&_0x38c654['plugins']['has']('ImageInlineEditing')&&(_0x2907e6['enableCommand']('imageTypeInline',(_0x40f6c2,_0x5db84c)=>{const _0x3b9f3c=_0xbf28c6['getClosestSelectedImageElement'](_0x38c654['model']['document']['selection']);_0x38c654['model']['change'](()=>{_0x2907e6['markBlockFormat'](_0x3b9f3c,{'commandName':'imageTypeInline','commandParams':[_0x5db84c]},[],'convertBlockImageToInline');});}),_0x2907e6['enableCommand']('imageTypeBlock',(_0x3ebba3,_0x391621)=>{_0x38c654['model']['change'](_0x29e8f6=>{let _0xf415e0=_0xbf28c6['getClosestSelectedImageElement'](_0x38c654['model']['document']['selection']),_0x58b507=_0x29e8f6['createRangeOn'](_0xf415e0);const _0x53a065=tt['fromPosition'](_0x58b507['start'],'toPrevious'),_0xd53fdd=tt['fromPosition'](_0x58b507['end'],'toNext');_0x2907e6['forceDefaultExecution'](()=>_0x3ebba3(_0x391621)),_0xf415e0=_0xbf28c6['getClosestSelectedImageElement'](_0x38c654['model']['document']['selection']),_0x58b507=_0x29e8f6['createRangeOn'](_0xf415e0);const _0x228df7=_0x29e8f6['createRange'](_0x53a065,_0xd53fdd);_0x53a065['detach'](),_0xd53fdd['detach'](),_0x2907e6['markBlockFormat'](_0xf415e0,{'commandName':'imageTypeInline','commandParams':[_0x391621]},[],'convertInlineImageToBlock'),_0x228df7['start']['isBefore'](_0x58b507['start'])&&_0x2907e6['markInsertion'](_0x29e8f6['createRange'](_0x228df7['start'],_0x58b507['start']),'convertInlineImageToBlock'),_0x58b507['end']['isBefore'](_0x228df7['end'])&&_0x2907e6['markInsertion'](_0x29e8f6['createRange'](_0x58b507['end'],_0x228df7['end']),'convertInlineImageToBlock');});}),_0x2907e6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2907e6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2907e6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2907e6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2907e6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2907e6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x975fcd])=>{const _0x5721c5=_0x2907e6['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x11bf0b=_0x975fcd['start'],_0x31e99e=_0x975fcd['end'];const _0x1633da=_0x38c654['model']['schema']['getNearestSelectionRange'](_0x11bf0b,'backward'),_0x377d8e=_0x38c654['model']['schema']['getNearestSelectionRange'](_0x31e99e,'forward');_0x1633da['isCollapsed']&&(_0x11bf0b=_0x1633da['start']),_0x377d8e['isCollapsed']&&(_0x31e99e=_0x377d8e['end']),_0x5721c5([_0x38c654['model']['createRange'](_0x11bf0b,_0x31e99e)]);}),_0x2907e6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xf5aef6),_0x2907e6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xf5aef6)),_0x38c654['plugins']['has']('ImageCaptionEditing')&&(_0x2907e6['enableCommand']('toggleImageCaption',(_0x60ddfa,_0x5baa32)=>{const _0x1b5620=_0x38c654['plugins']['get']('ImageCaptionUtils');let _0x11aa7a=_0xbf28c6['getClosestSelectedImageElement'](_0x38c654['model']['document']['selection']),_0x3b3f55=_0x1b5620['getCaptionFromImageModelElement'](_0x11aa7a);_0x38c654['model']['change'](()=>{if(_0x3b3f55)return void _0x2907e6['markDeletion'](_0x38c654['model']['createRangeOn'](_0x3b3f55));const _0x5dcfb4=_0xbf28c6['isBlockImage'](_0x11aa7a);_0x60ddfa(_0x5baa32),_0x11aa7a=_0xbf28c6['getClosestSelectedImageElement'](_0x38c654['model']['document']['selection']),_0x3b3f55=_0x1b5620['getCaptionFromImageModelElement'](_0x11aa7a),_0x2907e6['markInsertion'](_0x38c654['model']['createRangeOn'](_0x3b3f55),_0x5dcfb4?null:'imageCaption');});}),_0x2907e6['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xf5aef6));const _0x18f3bd=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xd4bbb4(_0x2db653,_0x26433c){const _0x2d962c=_0x18f3bd['findIndex'](({type:_0x3a753b,subType:_0x357f5})=>_0x2db653['type']==_0x3a753b&&_0x2db653['subType']==_0x357f5),_0x45176e=_0x18f3bd['findIndex'](({type:_0x3c9450,subType:_0x295ad2})=>_0x26433c['type']==_0x3c9450&&_0x26433c['subType']==_0x295ad2);if(_0x2d962c<0x0||_0x45176e<0x0)return!0x1;const _0x47ccbd=_0x2db653['getFirstRange'](),_0x2cdd4f=_0x26433c['getFirstRange']();if((0x0==_0x2d962c||0x1==_0x2d962c)&&0x2==_0x45176e&&_0x47ccbd['isIntersecting'](_0x2cdd4f))return!0x0;if(0x2==_0x2d962c&&0x3==_0x45176e){const _0x15b165=_0x2907e6['_findSuggestions'](_0x47ccbd,'insertion')['filter'](({suggestion:_0x5be9e1,meta:_0x31c7d0})=>_0x31c7d0['isOwn']&&'convertInlineImageToBlock'==_0x5be9e1['subType']);if(_0x15b165['length']>0x1&&_0x2cdd4f['end']['isEqual'](_0x47ccbd['start']))return!0x0;if(0x1==_0x15b165['length']&&(_0x47ccbd['start']['isEqual'](_0x2cdd4f['end'])||_0x47ccbd['end']['isEqual'](_0x2cdd4f['start'])))return!0x0;}if(0x3==_0x2d962c&&0x3==_0x45176e&&_0x47ccbd['start']['isBefore'](_0x2cdd4f['start'])){const _0x521201=_0x47ccbd['end']['nodeAfter'],_0xcd79b2=_0x2cdd4f['start']['nodeBefore'];return _0xbf28c6['isBlockImage'](_0x521201)&&_0x521201===_0xcd79b2;}return!0x1;}function _0xf5aef6(_0x4e4be2,_0x3a9afb){return _0xd4bbb4(_0x4e4be2,_0x3a9afb)?[_0x4e4be2,_0x3a9afb]:_0xd4bbb4(_0x3a9afb,_0x4e4be2)?[_0x3a9afb,_0x4e4be2]:null;}_0x38c654['plugins']['has']('ImageResize')&&(_0x2907e6['enableDefaultAttributesIntegration']('resizeImage'),_0x2907e6['descriptionFactory']['registerAttributeLabel']('resizedWidth',At(_0x5b25d7,'FORMAT_IMAGE_SIZE'))),_0x38c654['plugins']['has']('ImageTextAlternativeEditing')&&_0x2907e6['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x38c654['plugins']['has']('PictureEditing')&&_0x2907e6['descriptionFactory']['registerDescriptionCallback'](_0x5ba353=>{if('attribute'!=_0x5ba353['type'])return;const {data:_0x2faa61}=_0x5ba353;return _0x2faa61&&'sources'==_0x2faa61['key']?{'type':'format','content':''}:void 0x0;}),_0x38c654['plugins']['has']('ImageSizeAttributes')&&_0x2907e6['descriptionFactory']['registerDescriptionCallback'](_0x1077f0=>{if('attribute'!=_0x1077f0['type'])return;const {data:_0x5c265c}=_0x1077f0;return!_0x5c265c||'width'!=_0x5c265c['key']&&'height'!=_0x5c265c['key']?void 0x0:{'type':'format','content':''};}),_0x2907e6['descriptionFactory']['registerDescriptionCallback'](_0x33eb65=>{if(!!_0x18f3bd['find'](({type:_0x52c075,subType:_0x492f5f})=>_0x33eb65['type']==_0x52c075&&_0x33eb65['subType']==_0x492f5f))return _0x33eb65['previous']?{}:void 0x0;}),_0x2907e6['descriptionFactory']['registerDescriptionCallback'](_0x44423d=>{if('insertion'==_0x44423d['type']||'deletion'==_0x44423d['type']){const _0x504927=_0x44423d['getContainedElement']();if(_0x504927&&_0x504927['is']('element','caption'))return{'type':'insertion'==_0x44423d['type']?'addObject':'removeObject','element':_0x504927,'quantity':0x1};}}),_0x2907e6['descriptionFactory']['registerDescriptionCallback'](_0x58fd5f=>'formatBlock'==_0x58fd5f['type']&&'convertInlineImageToBlock'==_0x58fd5f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x58fd5f['type']&&'convertBlockImageToInline'==_0x58fd5f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2907e6['descriptionFactory']['registerDescriptionCallback'](_0x27cae8=>{if('attribute'!=_0x27cae8['type'])return;const {data:_0x4b34a1}=_0x27cae8;if(!_0x4b34a1||'alt'!=_0x4b34a1['key'])return;const _0x50e97c=_0x4b34a1['newValue'];return _0x50e97c?{'type':'format','content':At(_0x5b25d7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x50e97c+'\x22')}:{'type':'format','content':At(_0x5b25d7,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45a61=this['editor'],_0x11aec7=_0x45a61['locale'];_0x45a61['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59074c=>{if('formatBlock'!=_0x59074c['type']&&'formatInline'!=_0x59074c['type'])return;const {data:_0x2897ad}=_0x59074c;if(_0x2897ad){if('imageTextAlternative'==_0x2897ad['commandName']){const _0x5a3bc0=_0x2897ad['commandParams'][0x0]['newValue'];return _0x5a3bc0?{'type':'format','content':At(_0x11aec7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5a3bc0+'\x22')}:{'type':'format','content':At(_0x11aec7,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2897ad['commandName']){const _0xbb6d76=_0x2897ad['commandParams'][0x0]['width'];return _0xbb6d76?{'type':'format','content':At(_0x11aec7,'*Set\x20image\x20width:*\x20%0',_0xbb6d76)}:{'type':'format','content':At(_0x11aec7,'*Reset\x20image\x20width*')};}}});}}class se extends _0x55ebc7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xa8943f=this['editor']['locale'],_0x550493=this['editor']['plugins']['get']('TrackChangesEditing');_0x550493['enableDefaultAttributesIntegration']('replaceImageSource'),_0x550493['descriptionFactory']['registerDescriptionCallback'](_0xc491e9=>{if('attribute'!=_0xc491e9['type'])return;const {data:_0x12ea94}=_0xc491e9;return _0x12ea94&&'src'==_0x12ea94['key']?_0x12ea94['newValue']&&_0x12ea94['oldValue']?{'type':'format','content':At(_0xa8943f,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5ac332=this['editor']['plugins']['get']('TrackChangesEditing');_0x5ac332['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5ac332['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5ac332['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5ac332['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f0dbc=this['editor'],_0x5382f4=_0x5f0dbc['locale'];_0x5f0dbc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5bd38b=>{if('formatBlock'!=_0x5bd38b['type']&&'formatInline'!=_0x5bd38b['type'])return;const {data:_0x3b427a}=_0x5bd38b;if(!_0x3b427a||'replaceImageSource'!=_0x3b427a['commandName'])return;return{'type':'format','content':At(_0x5382f4,'*Format:*\x20replace\x20image\x20URL')};});}}class re extends _0x55ebc7{['afterInit'](){const _0x230dd1=this['editor'];if(!_0x230dd1['plugins']['has']('ImageStyleEditing'))return;const _0x28c4ce=_0x230dd1['plugins']['get']('TrackChangesEditing'),_0x5a84bb=_0x230dd1['plugins']['get']('ImageUtils'),_0x2b5927={};_0x28c4ce['enableCommand']('imageStyle',(_0xc08c6a,_0x5872bb)=>{const _0x141790=_0x230dd1['plugins']['get']('Users')['me'],_0x7a1a26=_0x230dd1['commands']['get']('imageStyle');let _0xc2e573=_0x5a84bb['getClosestSelectedImageElement'](_0x230dd1['model']['document']['selection']),_0x257edd=_0x230dd1['model']['createRangeOn'](_0xc2e573),_0x4074d7=_0x7a1a26['value'];if(_0x4074d7==_0x5872bb['value'])return;const _0x7d42e1={'commandName':'imageStyle','commandParams':[_0x5872bb],'formatGroupId':_0x493bce()};_0x230dd1['model']['change'](()=>{if(_0x28c4ce['getSuggestions']()['filter'](_0x3e96ac=>_0x3e96ac['isInContent']&&_0x141790==_0x3e96ac['author']&&('formatBlock'==_0x3e96ac['type']||'formatInline'==_0x3e96ac['type'])&&('imageStylePreApply'==_0x3e96ac['subType']||'imageStylePostApply'==_0x3e96ac['subType'])&&_0x3e96ac['getFirstRange']()['isEqual'](_0x257edd))['forEach'](_0x39c751=>_0x28c4ce['discardSuggestion'](_0x39c751['head'])),_0xc2e573=_0x5a84bb['getClosestSelectedImageElement'](_0x230dd1['model']['document']['selection']),_0x257edd=_0x230dd1['model']['createRangeOn'](_0xc2e573),_0x7a1a26['refresh'](),_0x230dd1['commands']['get']('imageTypeInline')['refresh'](),_0x230dd1['commands']['get']('imageTypeBlock')['refresh'](),_0x4074d7=_0x7a1a26['value'],_0x4074d7!=_0x5872bb['value'])return _0x5a84bb['isInlineImage'](_0xc2e573)&&_0x7a1a26['shouldConvertImageType'](_0x5872bb['value'],_0xc2e573)?(_0xc08c6a({..._0x5872bb,'setImageSizes':!0x1}),_0xc2e573=_0x5a84bb['getClosestSelectedImageElement'](_0x230dd1['model']['document']['selection']),void _0x28c4ce['markBlockFormat'](_0xc2e573,{..._0x7d42e1,'commandReversedParams':[{'value':_0x4074d7||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5a84bb['isBlockImage'](_0xc2e573)?_0x28c4ce['markBlockFormat'](_0xc2e573,_0x7d42e1,[],'imageStylePostApply'):_0x28c4ce['markInlineFormat'](_0x257edd,_0x7d42e1,'imageStylePostApply'));});});for(const _0x248fa2 of _0x230dd1['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2b5927[_0x248fa2['name']]=_0x248fa2['title']['toLowerCase']();_0x28c4ce['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x28c4ce['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x28c4ce['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x28c4ce['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4dd7da])=>{_0x5a84bb['setImageNaturalSizeAttributes'](_0x4dd7da['getContainedElement']());}),_0x28c4ce['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2cb265,_0x1d744d)=>{_0x28c4ce['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2cb265,{'commandName':_0x1d744d['commandName'],'commandParams':_0x1d744d['commandReversedParams']});}),_0x28c4ce['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x132730,_0x2bdd82){if(_0x37275d(_0x132730,_0x2bdd82))return[_0x132730,_0x2bdd82];if(_0x37275d(_0x2bdd82,_0x132730))return[_0x2bdd82,_0x132730];return null;});const _0x6f2c87=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x37275d(_0x180a59,_0x5a2ac6){const _0x48e626=_0x6f2c87['findIndex'](({type:_0x8f836a,subType:_0x27076a})=>_0x180a59['type']==_0x8f836a&&_0x180a59['subType']==_0x27076a),_0x6a21c8=_0x6f2c87['findIndex'](({type:_0x5b8474,subType:_0x548127})=>_0x5a2ac6['type']==_0x5b8474&&_0x5a2ac6['subType']==_0x548127);if(_0x48e626<0x0||_0x6a21c8<0x0)return!0x1;const _0x38b679=_0x180a59['getFirstRange'](),_0x43c665=_0x5a2ac6['getFirstRange']();if((0x0==_0x48e626||0x1==_0x48e626)&&0x2==_0x6a21c8&&_0x38b679['isIntersecting'](_0x43c665))return!0x0;if(0x2==_0x48e626&&0x3==_0x6a21c8){const _0x2a6fe0=_0x28c4ce['_findSuggestions'](_0x38b679,'insertion')['filter'](({suggestion:_0x4746ec,meta:_0x4ac636})=>_0x4ac636['isOwn']&&'convertInlineImageToBlock'==_0x4746ec['subType']);if(_0x2a6fe0['length']>0x1&&_0x43c665['end']['isEqual'](_0x38b679['start']))return!0x0;if(0x1==_0x2a6fe0['length']&&(_0x38b679['start']['isEqual'](_0x43c665['end'])||_0x38b679['end']['isEqual'](_0x43c665['start'])))return!0x0;}if(0x3==_0x48e626&&0x3==_0x6a21c8&&_0x38b679['start']['isBefore'](_0x43c665['start'])){const _0x2b3102=_0x38b679['end']['nodeAfter'],_0xfec85c=_0x43c665['start']['nodeBefore'];return _0x5a84bb['isBlockImage'](_0x2b3102)&&_0x2b3102===_0xfec85c;}return!0x1;}_0x230dd1['model']['document']['registerPostFixer'](()=>{let _0x49862e=!0x1;const _0x203ab0=Array['from'](_0x230dd1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x54fdaa,data:_0x21103d}of _0x203ab0){const {group:_0x1d3cf8,type:_0x12fd33,subType:_0x489d4f,id:_0x56663f}=_0x413c95(_0x54fdaa);if('suggestion'==_0x1d3cf8&&_0x28c4ce['hasSuggestion'](_0x56663f)){if('formatBlock'==_0x12fd33&&('imageStylePreApply'==_0x489d4f||'imageStylePostApply'==_0x489d4f)){const _0x5886a0=_0x28c4ce['getSuggestion'](_0x56663f);if(_0x21103d['newRange']){const _0x557f9f=_0x5886a0['getFirstRange']()['getContainedElement']();if(_0x5a84bb['isBlockImage'](_0x557f9f))continue;_0x28c4ce['discardSuggestion'](_0x5886a0),_0x49862e=!0x0;}}if('insertion'==_0x12fd33&&'imageCaption'==_0x489d4f&&!_0x21103d['newRange']){const _0x4d1abb=_0x28c4ce['getSuggestion'](_0x56663f);_0x4d1abb['next']&&_0x4d1abb['next']['isInContent']&&(_0x28c4ce['discardSuggestion'](_0x4d1abb['next']),_0x49862e=!0x0);}}}return _0x49862e;}),this['_registerLegacyDescription'](_0x2b5927);}['_registerLegacyDescription'](_0x2e453b){const _0x436f0f=this['editor'],_0x114e48=_0x436f0f['locale'];_0x436f0f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x329b2a=>{if('formatBlock'!=_0x329b2a['type']&&'formatInline'!=_0x329b2a['type'])return;const {data:_0x223654}=_0x329b2a;if(!_0x223654||'imageStyle'!=_0x223654['commandName'])return;const _0x30d5da=_0x223654['commandParams'][0x0]['value'];return _0x23bb2d('side'===_0x30d5da?At(_0x114e48,'FORMAT_SIDE_IMAGE'):_0x2e453b[_0x30d5da]||_0x30d5da);function _0x23bb2d(_0x47f794){return{'type':'format','content':At(_0x114e48,'*Format:*\x20%0',_0x47f794)};}});}}class oe extends _0x55ebc7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x98f786){super(_0x98f786),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4b6e9d=this['editor'],_0x4fe22e=_0x4b6e9d['commands']['get']('importWord'),_0x15b8e5=_0x4b6e9d['commands']['get']('trackChanges');_0x4fe22e&&(_0x4fe22e['on']('execute',(_0x55a56a,[,_0x438fe5])=>{this['_trackChangesValueDuringImport']=_0x15b8e5['value'],_0x438fe5['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4fe22e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4fe22e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x15b8e5['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4b6e9d['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5a485d,_0x516e77){const {suggestions:_0x56a15b}=_0x516e77,_0x1af080=this['editor']['commands']['get']('trackChanges'),_0x235732=_0x1af080['value'];this['_trackChangesValueDuringImport']!==_0x235732&&(_0x1af080['execute'](),this['_trackChangesExecuted']=!0x0),_0x56a15b&&_0x56a15b['forEach'](({id:_0x2a558a,type:_0x584c42,author:_0x28fa09,created_at:_0x5def77})=>{const _0x596b3a={'id':_0x2a558a,'type':_0x584c42,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x28fa09,'createdAt':_0x5def77?new Date(_0x5def77):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x596b3a);});}}class ae extends _0x55ebc7{['afterInit'](){const _0x5c09e4=this['editor'],_0x18fe7d=_0x5c09e4['plugins']['get']('TrackChangesEditing');if(_0x5c09e4['plugins']['has']('IndentEditing')&&(_0x18fe7d['enableCommand']('indent'),_0x18fe7d['enableCommand']('outdent')),_0x5c09e4['plugins']['has']('IndentBlock')){for(const _0x963d9 of['indentBlock','outdentBlock'])_0x18fe7d['enableDefaultAttributesIntegration'](_0x963d9);if(_0x5c09e4['plugins']['has']('ListEditing')){for(const _0x2f1c5c of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x18fe7d['enableDefaultAttributesIntegration'](_0x2f1c5c);}}const _0x285e90=_0x5c09e4['locale'];_0x18fe7d['descriptionFactory']['registerAttributeLabel']('blockIndent',At(_0x285e90,'FORMAT_INDENT')),_0x18fe7d['descriptionFactory']['registerAttributeLabel']('blockIndentList',At(_0x285e90,'FORMAT_INDENT')),_0x18fe7d['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',At(_0x285e90,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e12ba=this['editor'],_0x2b54e9=_0x3e12ba['locale'],_0x3027b0=_0x3e12ba['plugins']['get']('TrackChangesEditing');_0x3027b0['descriptionFactory']['registerDescriptionCallback'](_0x4c8794=>{if('formatBlock'!=_0x4c8794['type'])return;const {data:_0x16c54a}=_0x4c8794;if(!_0x16c54a)return;if('indentBlock'!=_0x16c54a['commandName']&&'outdentBlock'!=_0x16c54a['commandName'])return;const _0x49aabf=_0x4c8794['getItems']()[0x0],_0x21be86=_0x3027b0['descriptionFactory']['getItemLabel'](_0x49aabf);return'indentBlock'==_0x16c54a['commandName']?{'type':'format','content':At(_0x2b54e9,'*Indent:*\x20%0',_0x21be86)}:'outdentBlock'==_0x16c54a['commandName']?{'type':'format','content':At(_0x2b54e9,'*Outdent:*\x20%0',_0x21be86)}:void 0x0;});}}class ce extends _0x55ebc7{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class le extends _0x55ebc7{['afterInit'](){const _0x137c4e=this['editor'];if(!_0x137c4e['plugins']['has']('LinkEditing'))return;const _0x459739=_0x137c4e['plugins']['get']('TrackChangesEditing'),_0x4b9b0f=_0x137c4e['commands']['get']('link');_0x459739['enableDefaultAttributesIntegration']('link'),_0x459739['enableDefaultAttributesIntegration']('unlink');for(const _0x411bab of _0x4b9b0f['manualDecorators'])_0x459739['descriptionFactory']['registerAttributeLabel'](_0x411bab['id'],'link\x20('+_0x411bab['label']['toLowerCase']()+')');_0x459739['descriptionFactory']['registerDescriptionCallback'](_0x5044aa=>{if('attribute'!=_0x5044aa['type'])return;const {data:_0x51b4cd}=_0x5044aa;if(!_0x51b4cd||'linkHref'!=_0x51b4cd['key'])return;const _0x21f39f=_0x51b4cd['newValue'],_0x1bfe5e=_0x137c4e['locale'];return{'type':'format','content':null==_0x21f39f?At(_0x1bfe5e,'*Remove\x20link*'):At(_0x1bfe5e,'*Set\x20link:*\x20%0','\x22'+_0x21f39f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39423a=this['editor'],_0x170382=_0x39423a['locale'];_0x39423a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38659c=>{if('formatInline'!=_0x38659c['type'])return;const {data:_0x511e31}=_0x38659c;if(_0x511e31){if('link'==_0x511e31['commandName']){const _0x4a15a0=_0x511e31['commandParams'][0x0];return{'type':'format','content':At(_0x170382,'*Set\x20link:*\x20%0','\x22'+_0x4a15a0+'\x22')};}return'unlink'==_0x511e31['commandName']?{'type':'format','content':At(_0x170382,'*Remove\x20link*')}:void 0x0;}});}}class ue extends _0x55ebc7{['afterInit'](){const _0x5516e1=this['editor'],_0xb0892e=_0x5516e1['locale'];if(!_0x5516e1['plugins']['has']('LegacyListEditing'))return;const _0x5e03d8=_0x5516e1['plugins']['get']('TrackChangesEditing'),_0x372b9d=_0x5516e1['plugins']['has']('LegacyTodoListEditing');function _0x319eba(_0x4eb97e){return()=>{const _0x31c768=_0x5516e1['model']['document']['selection'],_0x1000dc=_0x5516e1['commands']['get'](_0x4eb97e);if(_0x1000dc['value'])return void _0x5516e1['execute']('paragraph',{});const _0x389010=_0x4eb97e['slice'](0x0,-0x4),_0x3c0ebf=function(_0x5032d6,_0x3b5bdf,_0x4aa902){let _0x556db7=Array['from'](_0x5032d6)['filter'](_0x17c9a=>function(_0xf83e60,_0x50a740){return _0x50a740['checkChild'](_0xf83e60['parent'],'listItem')&&!_0x50a740['isObject'](_0xf83e60);}(_0x17c9a,_0x4aa902));_0x556db7=_0x556db7['filter'](_0x45f144=>!_0x45f144['is']('element','listItem')||_0x45f144['getAttribute']('listType')!=_0x3b5bdf);const _0x462663=new Set();for(const _0x3ed048 of _0x556db7)_0x3ed048['is']('element','listItem')?_0x462663['add'](he(_0x3ed048)):_0x462663['add'](_0x3ed048);return Array['from'](_0x462663);}(_0x31c768['getSelectedBlocks'](),_0x389010,_0x5516e1['model']['schema']);_0x5516e1['model']['change'](()=>{for(const _0x5207db of _0x3c0ebf)_0x5e03d8['markBlockFormat'](_0x5207db,{'commandName':_0x4eb97e,'commandParams':[{'forceValue':!_0x1000dc['value']}],'formatGroupId':'blockName'},de(_0x5207db));});};}function _0x21333d(_0x5bb75b){return()=>{const _0x272724=function(_0x421f8c){let _0x272f87=Array['from'](_0x421f8c);const _0x31cd78=_0x272f87['findIndex'](_0x47777b=>'listItem'!=_0x47777b['name']);return _0x31cd78>-0x1&&(_0x272f87=_0x272f87['slice'](0x0,_0x31cd78)),_0x272f87;}(_0x5516e1['model']['document']['selection']['getSelectedBlocks']()),_0x41102a=_0x5516e1['model']['createRange'](_0x5516e1['model']['createPositionAt'](_0x272724[0x0],'before'),_0x5516e1['model']['createPositionAt'](_0x272724[_0x272724['length']-0x1],'end'));_0x5516e1['model']['change'](()=>{_0x5e03d8['markBlockFormat'](_0x41102a,{'commandName':_0x5bb75b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x14e88f){const _0xaa33ce=new Set();for(const _0x1c3473 of _0x14e88f){let _0x8cac59=_0x1c3473['nextSibling'];for(;_0x8cac59&&_0x8cac59['getAttribute']('listIndent')>_0x1c3473['getAttribute']('listIndent');)_0xaa33ce['add'](_0x8cac59),_0x8cac59=_0x8cac59['nextSibling'];}return Array['from'](_0xaa33ce);}(_0x272724));});};}_0x5e03d8['enableCommand']('numberedList',_0x319eba('numberedList')),_0x5e03d8['enableCommand']('bulletedList',_0x319eba('bulletedList')),_0x372b9d&&_0x5e03d8['enableCommand']('todoList',_0x319eba('todoList')),_0x5e03d8['enableCommand']('indentList',_0x21333d('indentList')),_0x5e03d8['enableCommand']('outdentList',_0x21333d('outdentList')),_0x372b9d&&_0x5e03d8['enableCommand']('checkTodoList',()=>{const _0x2b0eb5=_0x5516e1['commands']['get']('checkTodoList'),_0x418325=Array['from'](_0x2b0eb5['_selectedElements']);_0x418325['filter'](_0x5c6071=>_0x5c6071['getAttribute']('todoListChecked')!=_0x2b0eb5['value']),_0x5516e1['model']['change'](()=>{for(const _0x3bba14 of _0x418325)_0x5e03d8['markBlockFormat'](_0x3bba14,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2b0eb5['value']}]});});}),_0x5e03d8['descriptionFactory']['registerElementLabel']('listItem',_0x5c673d=>At(_0xb0892e,'ELEMENT_LIST_ITEM',_0x5c673d)),_0x5e03d8['descriptionFactory']['registerDescriptionCallback'](_0x36c309=>{if('formatBlock'!=_0x36c309['type']&&'formatInline'!=_0x36c309['type'])return;const {data:_0x1cf0a2}=_0x36c309;if(_0x1cf0a2){if('numberedList'==_0x1cf0a2['commandName']||'bulletedList'==_0x1cf0a2['commandName']||'todoList'==_0x1cf0a2['commandName'])switch(_0x1cf0a2['commandName']['replace']('List','')){case'bulleted':return _0x1d1f5e(At(_0xb0892e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1d1f5e(At(_0xb0892e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1d1f5e(At(_0xb0892e,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1cf0a2['commandName'])return{'type':'format','content':At(_0xb0892e,'*Indent:*\x20%0',At(_0xb0892e,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1cf0a2['commandName'])return{'type':'format','content':At(_0xb0892e,'*Outdent:*\x20%0',At(_0xb0892e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1cf0a2['commandName'])return _0x1cf0a2['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0xb0892e,'*Check\x20item*')}:{'type':'format','content':At(_0xb0892e,'*Uncheck\x20item*')};}function _0x1d1f5e(_0x3e9678){return{'type':'format','content':At(_0xb0892e,'*Change\x20to:*\x20%0',_0x3e9678)};}});}}function he(_0x4aa802){const _0xd5580f=_0x4aa802['getAttribute']('listIndent');if(0x0==_0xd5580f)return _0x4aa802;let _0x1ba5dd=_0x4aa802;for(;_0x4aa802['previousSibling']&&_0x4aa802['previousSibling']['is']('element','listItem');){const _0x4cad8c=_0x4aa802['previousSibling']['getAttribute']('listIndent');if(_0x4cad8c==_0xd5580f)_0x1ba5dd=_0x4aa802['previousSibling'];else{if(_0x4cad8c<_0xd5580f)break;}_0x4aa802=_0x4aa802['previousSibling'];}return _0x1ba5dd;}function de(_0x55ab90){const _0x46cfd7=[];if(_0x55ab90['is']('element','listItem')&&_0x55ab90['getAttribute']('listIndent')>0x0){let _0x38026d=_0x55ab90['nextSibling'];for(;_0x38026d&&'listItem'==_0x38026d['name']&&_0x38026d['getAttribute']('listIndent')==_0x55ab90['getAttribute']('listIndent');)_0x46cfd7['push'](_0x38026d),_0x38026d=_0x38026d['nextSibling'];}return _0x46cfd7;}class fe extends _0x55ebc7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x328017=this['editor']['config']['get']('list.properties'),_0x2082b6=this['editor']['plugins']['get']('TrackChangesEditing');_0x328017['styles']&&_0x2082b6['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x328017['reversed']&&_0x2082b6['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x328017['startIndex']&&_0x2082b6['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2082b6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5bf332,_0x41042f={}){const _0x17584a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b192f=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x17584a['markMultiRangeBlockFormat'](_0x4b192f,{'commandName':'listStyle','commandParams':[{'type':_0x41042f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3fa824,_0x17f2ca={}){const _0x530a6f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c2faa=this['_getSuggestionBlocks'](_0x9e84a6=>_0x9e84a6['is']('element','listItem')&&'numbered'===_0x9e84a6['getAttribute']('listType'));if(_0x4c2faa['length']<0x1)return;const _0x28869=_0x4c2faa['map'](_0x4f991c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4f991c,'before'),this['editor']['model']['createPositionAt'](_0x4f991c,0x0)));this['editor']['model']['change'](()=>{_0x530a6f['markMultiRangeBlockFormat'](_0x28869,{'commandName':'listReversed','commandParams':[{'reversed':_0x17f2ca['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3492ff,_0x2ca1de={}){const _0x5da18a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58289c=this['_getSuggestionBlocks'](_0x437ad8=>_0x437ad8['is']('element','listItem')&&'numbered'===_0x437ad8['getAttribute']('listType'));if(_0x58289c['length']<0x1)return;const _0x1a885f=_0x58289c['map'](_0x57e08a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x57e08a,'before'),this['editor']['model']['createPositionAt'](_0x57e08a,0x0)));this['editor']['model']['change'](()=>{_0x5da18a['markMultiRangeBlockFormat'](_0x1a885f,{'commandName':'listStart','commandParams':[{'startIndex':_0x2ca1de['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4b1ff8){if('formatBlock'!=_0x4b1ff8['type']&&'formatInline'!=_0x4b1ff8['type'])return;const _0x350608=this['editor']['locale'],{data:_0x3fb097}=_0x4b1ff8;if(!_0x3fb097)return;let _0x15256b,_0x4c329e;switch(_0x3fb097['commandName']){case'listStyle':_0x15256b='*Change\x20to:*\x20%0',_0x4c329e={'type':'format','content':At(_0x350608,_0x15256b,At(_0x350608,this['_getTranslationKeyForListStyle'](_0x3fb097['commandParams'][0x0]['type'])))};break;case'listReversed':_0x15256b=_0x3fb097['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4c329e={'type':'format','content':At(_0x350608,_0x15256b)};break;case'listStart':_0x15256b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4c329e={'type':'format','content':At(_0x350608,_0x15256b,_0x3fb097['commandParams'][0x0]['startIndex'])};}return _0x4c329e;}['_getSuggestionBlocksForListStyle'](){const _0x147811=this['editor']['plugins']['get']('LegacyListUtils');let _0x2bfcda=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2bfcda[0x0]?.['is']('element','listItem')&&_0x2bfcda['unshift'](..._0x147811['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2bfcda[_0x2bfcda['length']-0x1]?.['is']('element','listItem')&&_0x2bfcda['push'](..._0x147811['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2bfcda=[...new Set(_0x2bfcda)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2bfcda=_0x2bfcda['filter'](_0xea4de8=>_0xea4de8['is']('element','listItem'))),_0x2bfcda;}['_getSuggestionBlocks'](_0xa91a4a){const _0x262b07=this['editor']['plugins']['get']('LegacyListUtils');let _0x450626=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xa91a4a)['map'](_0x4b1afe=>{const _0x2cddfa=this['editor']['model']['createPositionAt'](_0x4b1afe,0x0);return[..._0x262b07['getSiblingNodes'](_0x2cddfa,'backward'),..._0x262b07['getSiblingNodes'](_0x2cddfa,'forward')];})['flat']();return _0x450626=[...new Set(_0x450626)],_0x450626;}['_getTranslationKeyForListStyle'](_0x5a3835){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5a3835)||'default')['toUpperCase']()+'_LIST_'+_0x5a3835['toUpperCase']()['replace'](/-/g,'_');}}class ge extends _0x55ebc7{['afterInit'](){const _0x4ae402=this['editor'];if(!_0x4ae402['plugins']['has']('MediaEmbedEditing'))return;const _0x454056=_0x4ae402['plugins']['get']('TrackChangesEditing'),_0x2a1d96=_0x4ae402['locale'];_0x454056['enableCommand']('mediaEmbed'),_0x454056['descriptionFactory']['registerElementLabel']('media',_0x874028=>At(_0x2a1d96,'ELEMENT_MEDIA',_0x874028));}}class me extends _0x55ebc7{['afterInit'](){const _0x15d862=this['editor'];_0x15d862['plugins']['has']('MentionEditing')&&_0x15d862['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class Ee extends _0x55ebc7{['afterInit'](){const _0x5875c0=this['editor'];if(!_0x5875c0['plugins']['has']('MergeFieldsEditing'))return;const _0x4a8711=_0x5875c0['plugins']['get']('TrackChangesEditing'),_0xd03786=_0x5875c0['locale'];_0x4a8711['enableCommand']('insertMergeField'),_0x4a8711['enableCommand']('insertMergeFieldBlock'),_0x4a8711['enableCommand']('insertMergeFieldImage'),_0x4a8711['descriptionFactory']['registerElementLabel']('mergeField',_0x2e6163=>At(_0xd03786,'ELEMENT_MERGE_FIELD',_0x2e6163)),_0x4a8711['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3edaf3=>At(_0xd03786,'ELEMENT_MERGE_FIELD',_0x3edaf3)),_0x4a8711['descriptionFactory']['registerDescriptionCallback'](_0x2dece0=>{if('insertion'!=_0x2dece0['type']&&'deletion'!=_0x2dece0['type'])return;const _0x98dba0=_0x2dece0['getContainedElement']();if(null==_0x98dba0)return;const _0x103ab5=_0x5875c0['plugins']['get']('MergeFieldsEditing');let _0x4e5bf9;switch(_0x103ab5['getMergeFieldType'](_0x98dba0)){case null:return;case'image':{const _0x2b36dd=_0x103ab5['unwrapAffixes'](_0x98dba0['getAttribute']('src'));_0x4e5bf9=_0x103ab5['getLabel'](_0x2b36dd)||_0x2b36dd;break;}default:{const _0x4c5215=_0x98dba0['getAttribute']('id');_0x4e5bf9=_0x103ab5['getLabel'](_0x4c5215)||_0x4c5215;break;}}return'insertion'==_0x2dece0['type']?{'type':'insertion','content':At(_0xd03786,'*Insert:*\x20%0','\x22'+_0x4e5bf9+'\x22\x20'+At(_0xd03786,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':At(_0xd03786,'*Remove:*\x20%0','\x22'+_0x4e5bf9+'\x22\x20'+At(_0xd03786,'ELEMENT_MERGE_FIELD'))};});}}class Te extends _0x55ebc7{['afterInit'](){const _0x7e5cc4=this['editor'],_0x2c9d89=_0x7e5cc4['plugins']['get']('TrackChangesEditing');_0x7e5cc4['plugins']['has']('MultiLevelList')&&(_0x2c9d89['enableDefaultAttributesIntegration']('multiLevelList'),_0x2c9d89['descriptionFactory']['registerDescriptionCallback'](_0x55e27d=>this['handleDescriptions'](_0x55e27d)));}['handleDescriptions'](_0x5c26ac){const _0x2cad30=this['editor']['locale'],{data:_0x3af64a}=_0x5c26ac,_0x558536={'type':'format','content':''};if(_0x3af64a&&'listMarkerStyle'==_0x3af64a['key']){if(!_0x3af64a['oldValue'])return{'type':'format','content':At(_0x2cad30,'*Set\x20format:*\x20%0',At(_0x2cad30,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3af64a['newValue']+')'};if(!_0x3af64a['newValue']){let _0x479ff5=_0x5c26ac['head'];for(;_0x479ff5;){if(_0x479ff5['data']&&'listType'==_0x479ff5['data']['key']&&_0x479ff5['data']['newValue'])return _0x558536;_0x479ff5=_0x479ff5['next'];}return{'type':'format','content':At(_0x2cad30,'*Remove\x20format:*\x20%0',At(_0x2cad30,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3af64a['oldValue']+')'};}}}}class _e extends _0x55ebc7{['afterInit'](){const _0x14e1b5=this['editor'];if(!_0x14e1b5['plugins']['has']('PageBreakEditing'))return;_0x14e1b5['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xa77709=_0x14e1b5['plugins']['get']('TrackChangesEditing'),_0x4a8565=_0x14e1b5['locale'];_0xa77709['descriptionFactory']['registerElementLabel']('pageBreak',_0x342e41=>At(_0x4a8565,'ELEMENT_PAGE_BREAK',_0x342e41));}}class pe extends _0x55ebc7{['afterInit'](){const _0x25d52c=this['editor'];if(!_0x25d52c['plugins']['has']('Paragraph'))return;const _0x49b491=_0x25d52c['locale'],_0x382ff9=_0x25d52c['plugins']['get']('TrackChangesEditing');_0x382ff9['descriptionFactory']['registerElementLabel']('paragraph',_0x499ddd=>At(_0x49b491,'ELEMENT_PARAGRAPH',_0x499ddd)),_0x382ff9['enableDefaultAttributesIntegration']('paragraph'),_0x382ff9['enableCommand']('insertParagraph');const _0x39ba0b=_0x382ff9['descriptionFactory'];_0x39ba0b['registerDescriptionCallback'](_0x396765=>{if('insertion'!==_0x396765['type'])return;const {start:_0x16b24f,end:_0x34722d}=_0x396765['getFirstRange']();if(!_0x16b24f['isTouching'](_0x34722d)||!_0x16b24f['nodeAfter'])return;const _0x2ab5df=_0x25d52c['model']['schema'],_0x5bfd63=_0x16b24f['nodeAfter'];return _0x2ab5df['isBlock'](_0x5bfd63)&&!_0x2ab5df['isLimit'](_0x5bfd63)&&_0x2ab5df['checkChild'](_0x5bfd63,'$text')?{'type':'insertion','content':At(_0x49b491,'*Insert:*\x20%0',_0x39ba0b['getItemLabel'](_0x5bfd63,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c1032=this['editor'],_0x34836d=_0x4c1032['locale'];_0x4c1032['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ae871=>{if('formatBlock'!=_0x2ae871['type'])return;const {data:_0x5b16cb}=_0x2ae871;return _0x5b16cb&&'paragraph'==_0x5b16cb['commandName']?{'type':'format','content':At(_0x34836d,'*Change\x20to:*\x20%0',At(_0x34836d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class Le extends _0x55ebc7{['afterInit'](){const _0x9dc3d6=this['editor'];_0x9dc3d6['commands']['get']('replaceSource')&&_0x9dc3d6['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class Ie extends _0x55ebc7{['afterInit'](){const _0x52c266=this['editor'];if(!_0x52c266['plugins']['has']('RemoveFormatEditing'))return;_0x52c266['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2689dd=this['editor'];_0x2689dd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4aeeeb=>{if('formatBlock'!=_0x4aeeeb['type']&&'formatInline'!=_0x4aeeeb['type'])return;const {data:_0x2e67a2}=_0x4aeeeb;return _0x2e67a2&&'removeFormat'==_0x2e67a2['commandName']?{'type':'format','content':At(_0x2689dd['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class be extends _0x55ebc7{['afterInit'](){const _0x9887ad=this['editor'];if(!_0x9887ad['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1c4dd6=_0x9887ad['plugins']['get']('TrackChangesEditing');_0x1c4dd6['enableCommand']('goToPreviousRestrictedEditingException'),_0x1c4dd6['enableCommand']('goToNextRestrictedEditingException');const _0x30b115=_0x9887ad['plugins']['get']('RestrictedEditingModeEditing');_0x30b115['enableCommand']('trackChanges'),_0x30b115['enableCommand']('acceptSuggestion'),_0x30b115['enableCommand']('discardSuggestion'),_0x30b115['enableCommand']('acceptAllSuggestions'),_0x30b115['enableCommand']('discardAllSuggestions'),_0x30b115['enableCommand']('acceptSelectedSuggestions'),_0x30b115['enableCommand']('discardSelectedSuggestions');}}class Ae extends _0x55ebc7{['afterInit'](){const _0x17f917=this['editor'];if(!_0x17f917['plugins']['has']('ShiftEnter'))return;const _0x137d66=_0x17f917['plugins']['get']('TrackChangesEditing');_0x137d66['enableCommand']('shiftEnter'),_0x137d66['descriptionFactory']['registerElementLabel']('softBreak',_0x316f7d=>At(_0x17f917['locale'],'ELEMENT_LINE_BREAK',_0x316f7d));}}function ke(_0x32a94d,_0x3635f2,_0x50a64d){const _0x40580e=[];for(const _0x11f95e of _0x3635f2['getItems']())_0x11f95e['hasAttribute'](_0x32a94d)&&_0x40580e['push'](_0x50a64d['createRangeOn'](_0x11f95e));return _0x40580e;}class Ce extends _0x55ebc7{['afterInit'](){const _0x529b90=this['editor'],_0x12b24e=_0x529b90['plugins']['get']('TrackChangesEditing');_0x529b90['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x12b24e['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x51f5d2=this['editor'],_0x49ec75=_0x51f5d2['model'],_0x56fe60=_0x51f5d2['locale'],_0x8c3648=_0x51f5d2['plugins']['get']('TrackChangesEditing'),_0x5b242f='restrictedEditingException',_0x4e8ff0=_0x51f5d2['commands']['get'](_0x5b242f);_0x8c3648['enableCommand'](_0x5b242f,(_0x2eefef,_0xaae940={})=>{const _0x2b6989=_0x49ec75['document']['selection'];if(_0x2b6989['isCollapsed'])return void _0x2eefef(_0xaae940);const _0x5d7928=void 0x0!==_0xaae940['forceValue']?_0xaae940['forceValue']:!_0x4e8ff0['value'];_0x49ec75['change'](()=>{const _0x1cac8c=Array['from'](_0x2b6989['getRanges']());for(const _0x267a4e of _0x1cac8c){const _0x1f922c=_0x5d7928?[_0x267a4e]:ke(_0x5b242f,_0x267a4e,_0x49ec75);for(const _0x4ae840 of _0x1f922c)_0x8c3648['markInlineFormat'](_0x4ae840,{'commandName':_0x5b242f,'commandParams':[{'forceValue':_0x5d7928}]});}});}),_0x8c3648['descriptionFactory']['registerDescriptionCallback'](_0x59259c=>{if('formatBlock'!=_0x59259c['type']&&'formatInline'!=_0x59259c['type'])return;const {data:_0xfe2c8}=_0x59259c;return _0xfe2c8&&_0xfe2c8['commandName']==_0x5b242f?_0xfe2c8['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x56fe60,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x56fe60,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x46f1b3=this['editor'],_0x18032e=_0x46f1b3['locale'],_0x4a3918=_0x46f1b3['plugins']['get']('TrackChangesEditing'),_0x1145ed='restrictedEditingExceptionBlock',_0x2f9600=this['editor']['commands']['get'](_0x1145ed);_0x4a3918['enableCommand'](_0x1145ed,(_0xc77e43,_0x181943={})=>{const _0x2c730c=this['editor']['model']['document']['selection'],_0x1bdc7d=_0x181943&&void 0x0!==_0x181943['forceValue']?_0x181943['forceValue']:!_0x2f9600['value'];let _0x29910a=[];if(_0x1bdc7d){const _0x17f96e=Array['from'](_0x2c730c['getSelectedBlocks']())['filter'](_0x16063a=>function(_0x4b4725){return!!_0x4b4725['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x16063a)||function(_0x4dcbdf,_0x4d2ec9){const _0x567e46=_0x4d2ec9['createContext'](_0x4dcbdf['parent']);if(!_0x4d2ec9['checkChild'](_0x567e46,'restrictedEditingException'))return!0x1;if(!_0x4d2ec9['checkChild'](_0x567e46['push']('restrictedEditingException'),_0x4dcbdf))return!0x1;return!0x0;}(_0x16063a,this['editor']['model']['schema']));_0x29910a=Tt(_0x17f96e,_0x46f1b3['model']);}else{const _0x460273=Array['from'](_0x2c730c['getSelectedBlocks']())['map'](_0x2ffa44=>function(_0x1dd978){let _0x108e6c=_0x1dd978;for(;_0x108e6c['parent'];){if('restrictedEditingException'==_0x108e6c['parent']['name'])return _0x108e6c;_0x108e6c=_0x108e6c['parent'];}return null;}(_0x2ffa44))['filter'](_0x37ed20=>!!_0x37ed20);_0x29910a=Tt(_0x460273,_0x46f1b3['model']);}_0x46f1b3['model']['change'](()=>{for(const _0x67bf6e of _0x29910a)_0x4a3918['markBlockFormat'](_0x67bf6e,{'commandName':_0x1145ed,'commandParams':[{'forceValue':_0x1bdc7d}]});});}),_0x4a3918['descriptionFactory']['registerDescriptionCallback'](_0x478663=>{const {data:_0xd89f8}=_0x478663;if(_0xd89f8&&_0xd89f8['commandName']==_0x1145ed)return _0xd89f8['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x18032e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x18032e,'FORMAT_RESTRICTED_DISABLED')};});}}class ye extends _0x55ebc7{['afterInit'](){const _0x2bde94=this['editor'];if(!_0x2bde94['plugins']['has']('Style')||!_0x2bde94['plugins']['has']('DataSchema'))return;const _0x48139f=_0x2bde94['plugins']['get']('TrackChangesEditing'),_0x28a874=_0x2bde94['locale'],_0x184156=_0x2bde94['config']['get']('style')||{},_0x24d506=_0x2bde94['plugins']['get']('GeneralHtmlSupport'),_0x2263e3=_0x2bde94['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2bde94['plugins']['get']('DataSchema'),_0x184156['definitions']);_0x48139f['enableDefaultAttributesIntegration']('style');const _0x141d72=new Set();for(const _0x4ad3a9 of _0x2263e3['block']){const _0x8443db=_0x24d506['getGhsAttributeNameForElement'](_0x4ad3a9['element']);_0x141d72['add'](_0x8443db);}const _0x2ff5ce=new Set();for(const _0x2815d2 of _0x2263e3['inline']){const _0x52bf17=_0x24d506['getGhsAttributeNameForElement'](_0x2815d2['element']);_0x2ff5ce['add'](_0x52bf17);for(const _0x56d115 of _0x2815d2['ghsAttributes'])_0x2ff5ce['add'](_0x56d115);}for(const _0x4f70d7 of _0x141d72)_0x48139f['descriptionFactory']['registerAttributeLabel'](_0x4f70d7,At(_0x28a874,'FORMAT_STYLE'));for(const _0x2b02a2 of _0x2ff5ce)_0x48139f['descriptionFactory']['registerAttributeLabel'](_0x2b02a2,At(_0x28a874,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf24311=this['editor'],_0x1baa58=_0xf24311['locale'];_0xf24311['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34ff92=>{if('formatBlock'!=_0x34ff92['type']&&'formatInline'!=_0x34ff92['type'])return;const {data:_0x421692}=_0x34ff92;return _0x421692&&'style'===_0x421692['commandName']?_0x421692['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x1baa58,'*Set\x20format:*\x20%0',_0x421692['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':At(_0x1baa58,'*Remove\x20format:*\x20%0',_0x421692['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ne extends _0x55ebc7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xb9334b){super(_0xb9334b),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3a3cfc=this['editor'],_0x3f6fbc=_0x3a3cfc['model']['document']['selection'];if(!_0x3a3cfc['plugins']['has']('TableEditing'))return;const _0x43cc43=_0x3a3cfc['locale'],_0x453edc=_0x3a3cfc['plugins']['get']('TrackChangesEditing'),_0x47c1c7=_0x3a3cfc['plugins']['get']('TableUtils');_0x453edc['descriptionFactory']['registerElementLabel']('table',_0xd541b5=>At(_0x43cc43,'ELEMENT_TABLE',_0xd541b5)),this['_setupColumnsRowsFixing'](),_0x453edc['enableCommand']('insertTable'),_0x453edc['enableCommand']('selectTableRow'),_0x453edc['enableCommand']('selectTableColumn');for(const _0x29923b of['insertTableRowAbove','insertTableRowBelow']){const _0x3ca0d0=_0x3a3cfc['commands']['get'](_0x29923b);_0x453edc['enableCommand'](_0x29923b,_0x5600f4=>{_0x3a3cfc['model']['change'](_0x5a7ed9=>{_0x5600f4();const _0x1d2d69='above'===_0x3ca0d0['order'],_0x5a9c6f=_0x47c1c7['getSelectionAffectedTableCells'](_0x3f6fbc),_0x344a00=_0x47c1c7['getRowIndexes'](_0x5a9c6f),_0x1ae0fb=_0x1d2d69?_0x344a00['first']-0x1:_0x344a00['last']+0x1,_0x216f41=_0x5a9c6f[0x0]['findAncestor']('table'),_0x3dc2ac=_0x47c1c7['createTableWalker'](_0x216f41,{'startRow':_0x1ae0fb,'endRow':_0x1ae0fb}),_0x34976a=Array['from'](_0x3dc2ac)['map'](_0xee5331=>_0x5a7ed9['createRangeOn'](_0xee5331['cell']));_0x453edc['markMultiRangeInsertion'](_0x34976a,'tableRow');});});}for(const _0x5e2951 of['insertTableColumnLeft','insertTableColumnRight']){const _0x570452=_0x3a3cfc['commands']['get'](_0x5e2951);_0x453edc['enableCommand'](_0x5e2951,_0x196533=>{_0x3a3cfc['model']['change'](_0x3898b8=>{_0x196533();const _0x10b982='left'===_0x570452['order'],_0x50325=_0x47c1c7['getSelectionAffectedTableCells'](_0x3f6fbc),_0x231ab0=_0x47c1c7['getColumnIndexes'](_0x50325),_0x59d4dc=_0x10b982?_0x231ab0['first']-0x1:_0x231ab0['last']+0x1,_0xae2ed6=_0x50325[0x0]['findAncestor']('table'),_0x5ebde4=_0x47c1c7['createTableWalker'](_0xae2ed6,{'startRow':0x0,'column':_0x59d4dc,'includeAllSlots':!0x1}),_0x12d9e9=Array['from'](_0x5ebde4)['map'](_0x4caf81=>_0x3898b8['createRangeOn'](_0x4caf81['cell']));_0x453edc['markMultiRangeInsertion'](_0x12d9e9,'tableColumn');});});}for(const _0x4f87fe of['removeTableRow','removeTableColumn']){const _0x323cca=_0x4f87fe['substr'](0xb),_0x51ce5d=_0x323cca['toLowerCase'](),_0xb8030=_0x51ce5d['substr'](0x0,0x3)+'span',_0x202de2='table'+_0x323cca,_0x31dd70='min'+_0x323cca,_0x1e3437='max'+_0x323cca;_0x453edc['enableCommand'](_0x4f87fe,()=>{_0x3a3cfc['model']['change'](_0x58e62d=>{const _0x3db566=_0x47c1c7['getSelectionAffectedTableCells'](_0x3f6fbc),_0xe12d19=_0x3db566[0x0]['findAncestor']('table');let _0x172d22;if('removeTableRow'==_0x4f87fe){const _0x48db7a=_0x47c1c7['getRowIndexes'](_0x3db566);_0x172d22={'startRow':_0x48db7a['first'],'endRow':_0x48db7a['last'],'includeAllSlots':!0x0};}else{const _0x304667=_0x47c1c7['getColumnIndexes'](_0x3db566);_0x172d22={'startColumn':_0x304667['first'],'endColumn':_0x304667['last'],'includeAllSlots':!0x0};}const _0x1e20b1=_0x47c1c7['createTableWalker'](_0xe12d19,_0x172d22),_0x24ca2b=Array['from'](_0x1e20b1)['map'](({cell:_0xaaa947})=>_0xaaa947),_0x2204a0=Re(_0x24ca2b['filter'](_0xad5f93=>_0xad5f93['hasAttribute'](_0xb8030))),_0x14fd8d=Re(_0x24ca2b['filter'](_0x2d7bd7=>!_0x2d7bd7['hasAttribute'](_0xb8030)))['map'](_0x5906b3=>_0x58e62d['createRangeOn'](_0x5906b3)),_0x9fe28=_0x453edc['markMultiRangeDeletion'](_0x14fd8d,_0x202de2);if(_0x9fe28&&('tableRow'==_0x9fe28['subType']||'tableColumn'==_0x9fe28['subType'])){const _0x1f43ad=this['_getSuggestionCoords'](_0x9fe28);for(const _0x2e0ab2 of _0x2204a0){const _0x2113a1=_0x58e62d['createRangeOn'](_0x2e0ab2),_0x33ffa2=_0x47c1c7['getCellLocation'](_0x2e0ab2),_0x22a48d=_0x2e0ab2['getAttribute'](_0xb8030)-0x1,_0x4a9451=_0x1f43ad[_0x31dd70],_0x450c7f=_0x1f43ad[_0x1e3437];_0x4a9451<=_0x33ffa2[_0x51ce5d]&&_0x33ffa2[_0x51ce5d]+_0x22a48d<=_0x450c7f&&_0x9fe28['addRange'](_0x2113a1);}}});});}function _0x1dd544(_0x38b1dc){const _0x4edf6b=Array['from'](_0x3f6fbc['getRanges']())['map'](_0x5065c7=>_0x3e26ed['fromRange'](_0x5065c7));_0x3a3cfc['model']['change'](_0x37853b=>{const _0x1b8102=_0x37853b['batch'];_0x38b1dc=_0x38b1dc['filter'](_0x3999f6=>'$graveyard'!=_0x3999f6['root']['rootName']),_0x37853b['setSelection'](_0x38b1dc),_0x3a3cfc['commands']['get']('removeTableRow')['refresh'](),_0x3a3cfc['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3a3cfc['model']['enqueueChange'](()=>{_0x3a3cfc['model']['enqueueChange'](_0x1b8102,_0x3606fe=>{const _0x2d6598=_0x4edf6b['filter'](_0x2b4e24=>'$graveyard'!=_0x2b4e24['root']['rootName']);_0x2d6598['length']>0x0&&_0x3606fe['setSelection'](_0x2d6598);for(const _0x29a5c6 of _0x4edf6b)_0x29a5c6['detach']();});});});}function _0x2d1776(_0x4dbe16){_0x3a3cfc['model']['change'](_0x4e6e7f=>{const _0x55843f=Array['from'](_0x3f6fbc['getRanges']())['map'](_0x1cea22=>_0x3e26ed['fromRange'](_0x1cea22)),_0x575e82=[];for(const _0x1525d5 of _0x4dbe16)for(const _0x46be56 of _0x1525d5['getItems']({'shallow':!0x0}))_0x575e82['push'](_0x46be56);for(const _0xce0858 of _0x575e82)'$graveyard'!=_0xce0858['root']['rootName']&&(_0x4e6e7f['setSelection'](_0x4e6e7f['createPositionAt'](_0xce0858,0x0)),_0x3a3cfc['commands']['get']('removeTableColumn')['refresh'](),_0x3a3cfc['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1e7112=_0x55843f['filter'](_0x337e66=>'$graveyard'!=_0x337e66['root']['rootName']);_0x1e7112['length']>0x0&&_0x4e6e7f['setSelection'](_0x1e7112);for(const _0x41525d of _0x55843f)_0x41525d['detach']();});}function _0x3e76d9(_0x250f1a,_0x1a9a2b){return _0x1a9a2b['every'](_0x16b167=>_0x250f1a['some'](_0x162057=>_0x162057['end']['isEqual'](_0x16b167['start'])||_0x16b167['end']['isEqual'](_0x162057['start'])));}function _0x9586f0(_0x10cc40,_0x1e9e72){return!_0x10cc40['some'](_0x4e9018=>_0x1e9e72['some'](_0x1de748=>_0x4e9018['isIntersecting'](_0x1de748)))&&_0x10cc40['some'](_0x4aeeb0=>_0x1e9e72['some'](_0x357f4a=>_0x4aeeb0['end']['isTouching'](_0x357f4a['start'])));}_0x453edc['descriptionFactory']['registerDescriptionCallback'](_0x456e90=>{if('insertion'!=_0x456e90['type']&&'deletion'!=_0x456e90['type'])return;const _0x2cee16=_0x456e90['getContainedElement']();if(null!=_0x2cee16&&_0x2cee16['is']('element','table')){if('insertion'==_0x456e90['type']){const _0x32ffed=_0x456e90['getItems']()['filter'](_0x5580b1=>_0x5580b1['is']('$textProxy'))['map'](_0x11d3e3=>_0x11d3e3['data']);if(_0x32ffed['length'])return{'type':'insertion','content':At(_0x43cc43,'*Insert:*\x20%0',At(_0x43cc43,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x32ffed['join']('\x20')+'\x22'))};}if('deletion'==_0x456e90['type']){const _0x49edc9=_0x456e90['getItems']()['filter'](_0xb8f29=>_0xb8f29['is']('$textProxy'))['map'](_0x1e8610=>_0x1e8610['data']);if(_0x49edc9['length'])return{'type':'deletion','content':At(_0x43cc43,'*Remove:*\x20%0',At(_0x43cc43,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x49edc9['join']('\x20')+'\x22'))};}}}),_0x453edc['descriptionFactory']['registerDescriptionCallback'](_0x398299=>{if('tableRow'==_0x398299['subType']){const _0x47e8e4=_0x398299['getItems']()['filter'](_0x3916c6=>_0x3916c6['is']('$textProxy'))['map'](_0x198d9c=>_0x198d9c['data']),_0x5d7ae8=this['_getSuggestionCoords'](_0x398299),_0x3dcf9d=_0x5d7ae8['maxRow']-_0x5d7ae8['minRow']+0x1;if('insertion'==_0x398299['type'])return _0x47e8e4['length']?{'type':'insertion','content':At(_0x43cc43,'*Insert:*\x20%0',At(_0x43cc43,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3dcf9d,'\x22'+_0x47e8e4['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x43cc43,'*Insert:*\x20%0',At(_0x43cc43,'ELEMENT_TABLE_ROW',_0x3dcf9d))};if('deletion'==_0x398299['type'])return _0x47e8e4['length']?{'type':'deletion','content':At(_0x43cc43,'*Remove:*\x20%0',At(_0x43cc43,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3dcf9d,'\x22'+_0x47e8e4['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x43cc43,'*Remove:*\x20%0',At(_0x43cc43,'ELEMENT_TABLE_ROW',_0x3dcf9d))};}if('tableColumn'==_0x398299['subType']){const _0x475373=_0x398299['getItems']()['filter'](_0x63f284=>_0x63f284['is']('$textProxy'))['map'](_0x2d4369=>_0x2d4369['data']),_0x10221d=this['_getSuggestionCoords'](_0x398299),_0x26a796=_0x10221d['maxColumn']-_0x10221d['minColumn']+0x1;if('insertion'==_0x398299['type'])return _0x475373['length']?{'type':'insertion','content':At(_0x43cc43,'*Insert:*\x20%0',At(_0x43cc43,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x26a796,'\x22'+_0x475373['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x43cc43,'*Insert:*\x20%0',At(_0x43cc43,'ELEMENT_TABLE_COLUMN',_0x26a796))};if('deletion'==_0x398299['type'])return _0x475373['length']?{'type':'deletion','content':At(_0x43cc43,'*Remove:*\x20%0',At(_0x43cc43,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x26a796,'\x22'+_0x475373['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x43cc43,'*Remove:*\x20%0',At(_0x43cc43,'ELEMENT_TABLE_COLUMN',_0x26a796))};}}),_0x453edc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1dd544),_0x453edc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1dd544),_0x453edc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2d1776),_0x453edc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2d1776),_0x453edc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3e76d9),_0x453edc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3e76d9),_0x453edc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x9586f0),_0x453edc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x9586f0);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1d6e86=this['editor'],_0x453fbf=_0x1d6e86['model']['document']['selection'];return(_0x187f6e,_0x2077a5)=>{_0x1d6e86['model']['change'](_0x254977=>{const {commandName:_0x47370d,commandParams:_0x45a862}=_0x2077a5;let _0x43fe54=_0x187f6e[0x0]['end']['nodeBefore'];_0x45a862&&_0x45a862[0x0]&&!0x1===_0x45a862[0x0]['forceValue']&&(_0x43fe54=_0x187f6e[0x0]['start']['nodeAfter']);const _0x5b128c=_0x254977['createRangeIn'](_0x43fe54);if('$graveyard'==_0x5b128c['root']['rootName'])return;const _0x331028=Array['from'](_0x453fbf['getRanges']())['map'](_0x58f2c4=>_0x3e26ed['fromRange'](_0x58f2c4));_0x254977['setSelection'](_0x5b128c),_0x1d6e86['commands']['get'](_0x47370d)['refresh'](),_0x45a862['push']({'forceDefaultExecution':!0x0}),_0x1d6e86['execute'](_0x47370d,..._0x45a862);const _0x561aec=_0x331028['filter'](_0x3dc916=>'$graveyard'!=_0x3dc916['root']['rootName']);_0x561aec['length']>0x0&&_0x254977['setSelection'](_0x561aec);for(const _0x5a05df of _0x331028)_0x5a05df['detach']();});};}['_getCoordsForCells'](_0x2b4508){const _0x118300=this['editor']['plugins']['get']('TableUtils');let _0x2521eb=Number['MAX_SAFE_INTEGER'],_0x4c053b=Number['MIN_SAFE_INTEGER'],_0x50f175=Number['MAX_SAFE_INTEGER'],_0x3fde4c=Number['MIN_SAFE_INTEGER'];for(const _0x489417 of _0x2b4508){if('$graveyard'==_0x489417['root']['rootName'])continue;const {row:_0x1b6099,column:_0x47eb62}=_0x118300['getCellLocation'](_0x489417),_0x214cac=_0x489417['hasAttribute']('rowspan')?_0x489417['getAttribute']('rowspan')-0x1:0x0,_0x5f55b8=_0x489417['hasAttribute']('colspan')?_0x489417['getAttribute']('colspan')-0x1:0x0;_0x2521eb=_0x1b6099<_0x2521eb?_0x1b6099:_0x2521eb,_0x4c053b=_0x1b6099+_0x214cac>_0x4c053b?_0x1b6099+_0x214cac:_0x4c053b,_0x50f175=_0x47eb62<_0x50f175?_0x47eb62:_0x50f175,_0x3fde4c=_0x47eb62+_0x5f55b8>_0x3fde4c?_0x47eb62+_0x5f55b8:_0x3fde4c;}return{'minRow':_0x2521eb,'maxRow':_0x4c053b,'minColumn':_0x50f175,'maxColumn':_0x3fde4c};}['_setupColumnsRowsFixing'](){const _0x22234b=this['editor'],_0x38c583=_0x22234b['plugins']['get']('TrackChangesEditing'),_0x1ace54=_0x22234b['plugins']['get']('TableUtils');_0x22234b['model']['document']['on']('change:data',()=>{const _0x15a92b=Array['from'](_0x22234b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x13bf78,data:_0x4963b1}of _0x15a92b){const {group:_0x29db48,id:_0x2a637b,subType:_0x20a93a}=_0x413c95(_0x13bf78);if('suggestion'!=_0x29db48)continue;if(null!=_0x4963b1['oldRange'])continue;const _0x2cf4b1=_0x38c583['getSuggestion'](_0x2a637b);this['_tablePostFixingSubtypes']['includes'](_0x20a93a)&&this['_tableSuggestions']['add'](_0x2cf4b1);}},{'priority':'low'});const _0x5af8ea=(_0x28304e,_0x1fbb3f)=>{let _0x135650=!0x1;const _0x233e07=_0x1fbb3f['createRangeOn'](_0x28304e),_0x2a0ea0=_0x28304e['findAncestor']('table'),_0x30770f=_0x1ace54['getCellLocation'](_0x28304e);for(const _0x352a05 of this['_tableSuggestions']){const _0x3254a0=_0x352a05['subType'],_0x2c78d7=_0x3254a0['startsWith']('tablePaste'),_0x367056=_0x3254a0['substr'](_0x2c78d7?0xa:0x5),_0x343aca=_0x367056['toLowerCase'](),_0x107f31=_0x343aca['substr'](0x0,0x3)+'span',_0x2d2b36='min'+_0x367056,_0x513a92='max'+_0x367056;if(!_0x352a05['isInContent'])continue;if(_0x2a0ea0!=_0x352a05['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x352a05['isIntersectingWithRange'](_0x233e07))continue;const _0x1fd0fd=_0x28304e['hasAttribute'](_0x107f31)?_0x28304e['getAttribute'](_0x107f31)-0x1:0x0,_0x456404=this['_getSuggestionCoords'](_0x352a05),_0x44b22d=_0x456404[_0x2d2b36],_0x146c5a=_0x456404[_0x513a92];_0x44b22d<=_0x30770f[_0x343aca]&&_0x30770f[_0x343aca]+_0x1fd0fd<=_0x146c5a&&(_0x352a05['addRange'](_0x233e07),_0x135650=!0x0);}return _0x135650;};_0x22234b['model']['document']['registerPostFixer'](_0x6d10fb=>{let _0x22598f=!0x1;for(const _0x280841 of _0x22234b['model']['document']['differ']['getChanges']())if('insert'==_0x280841['type']){if('tableRow'==_0x280841['name']){for(const _0xc4a605 of _0x280841['position']['nodeAfter']['getChildren']())_0x22598f=_0x22598f||_0x5af8ea(_0xc4a605,_0x6d10fb);}else'tableCell'==_0x280841['name']&&(_0x22598f=_0x22598f||_0x5af8ea(_0x280841['position']['nodeAfter'],_0x6d10fb));}return _0x22598f;});}['_getSuggestionCoords'](_0x579b82){return this['_getCoordsForCells'](_0x579b82['getRanges']()['map'](_0x1fc8f1=>_0x1fc8f1['start']['nodeAfter']));}}function Re(_0x2c747e){return Array['from'](new Set(_0x2c747e)['values']());}class Se extends _0x55ebc7{static get['requires'](){return[Ne];}['afterInit'](){const _0x5084cb=this['editor'],_0x43574d=_0x5084cb['model']['document']['selection'],_0x2427ab=_0x5084cb['locale'];if(!_0x5084cb['plugins']['has']('TableEditing'))return;const _0x2c9005=_0x5084cb['plugins']['get']('TrackChangesEditing'),_0x4e82b6=_0x5084cb['plugins']['get']('TableUtils'),_0x2c2c1d=_0x5084cb['plugins']['get'](Ne);_0x2c2c1d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2c9005['enableCommand']('mergeTableCells',()=>{const _0x4f2f5a=_0x4e82b6['getSelectionAffectedTableCells'](_0x5084cb['model']['document']['selection']);_0x5084cb['model']['change'](()=>{_0x2c9005['markMultiRangeBlockFormat'](_0x4f2f5a,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5084cb['commands']['get']('mergeTableCells')['on']('execute',(_0x416849,_0x18b03a)=>{_0x5084cb['commands']['get']('trackChanges')['value']&&(_0x18b03a['length']>0x0&&_0x18b03a[_0x18b03a['length']-0x1]&&_0x18b03a[_0x18b03a['length']-0x1]['forceDefaultExecution']||_0x2c9005['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x416849['stop']());},{'priority':'highest'});for(const _0xc84daf of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x20f7cc=_0x5084cb['commands']['get'](_0xc84daf);_0x2c9005['enableCommand'](_0xc84daf,()=>{const _0x2a9f0c=_0x5084cb['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x36d965=>_0x36d965['is']('element','tableCell')),_0xbfaa96=_0x20f7cc['value'];_0x5084cb['model']['change'](()=>{_0x2c9005['markMultiRangeBlockFormat']([_0x2a9f0c,_0xbfaa96],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x376a07 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x34a4de=_0x5084cb['commands']['get'](_0x376a07);_0x2c9005['enableCommand'](_0x376a07,()=>{const _0x55a1c3=_0x4e82b6['getSelectionAffectedTableCells'](_0x5084cb['model']['document']['selection'])[0x0],_0x460541=_0x55a1c3['findAncestor']('table'),{column:_0x4f9d73,row:_0x2579b4}=_0x4e82b6['getCellLocation'](_0x55a1c3);let _0x1a34ed=[];if('horizontally'==_0x34a4de['direction']){const _0x2c4b2f=_0x4e82b6['createTableWalker'](_0x460541,{'startRow':_0x2579b4,'endRow':_0x2579b4,'includeAllSlots':!0x0});_0x1a34ed=Array['from'](_0x2c4b2f)['map'](_0x8b94b=>_0x8b94b['cell']);}else{const _0x4b612e=_0x4e82b6['createTableWalker'](_0x460541,{'column':_0x4f9d73,'includeAllSlots':!0x0});_0x1a34ed=Array['from'](_0x4b612e)['map'](_0x408325=>_0x408325['cell']);}_0x5084cb['model']['change'](_0x41e93b=>{_0x2c9005['markBlockFormat'](_0x41e93b['createRangeOn'](_0x55a1c3),{'commandName':_0x376a07,'commandParams':[]},_0x1a34ed,_0x376a07);});});}_0x2c9005['descriptionFactory']['registerDescriptionCallback'](_0x5d261e=>{if('formatBlock'!=_0x5d261e['type']&&'formatInline'!=_0x5d261e['type'])return;const {data:_0x32d18d}=_0x5d261e;return _0x32d18d&&'mergeTableCells'==_0x32d18d['commandName']?{'type':'format','content':At(_0x2427ab,'*Merge\x20cells*')}:void 0x0;}),_0x2c9005['descriptionFactory']['registerDescriptionCallback'](_0x2efa15=>{if('formatBlock'!=_0x2efa15['type']&&'formatInline'!=_0x2efa15['type'])return;const {data:_0x3beb10}=_0x2efa15;return _0x3beb10?'splitTableCellVertically'==_0x3beb10['commandName']?{'type':'format','content':At(_0x2427ab,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3beb10['commandName']?{'type':'format','content':At(_0x2427ab,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1faae7=_0x2c2c1d['_acceptFormatSuggestionCallbackFactory']();for(const _0x2fdad6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2c9005['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2fdad6,'accept',_0x1faae7);for(const _0x2267b1 of['splitTableCellVertically','splitTableCellHorizontally'])_0x2c9005['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2267b1,'accept',_0x1faae7);_0x2c9005['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5c8bcb=>{_0x5084cb['model']['change'](_0x59d485=>{const _0x3ec6b9=Array['from'](_0x43574d['getRanges']())['map'](_0x1b1795=>_0x3e26ed['fromRange'](_0x1b1795));_0x59d485['setSelection'](_0x5c8bcb),_0x5084cb['commands']['get']('mergeTableCells')['refresh'](),_0x5084cb['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x43d66b=_0x3ec6b9['filter'](_0x2ff131=>'$graveyard'!=_0x2ff131['root']['rootName']);_0x43d66b['length']>0x0&&_0x59d485['setSelection'](_0x43d66b);for(const _0x288984 of _0x3ec6b9)_0x288984['detach']();});});for(const _0x4d809c of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5bdea3=_0x5084cb['commands']['get'](_0x4d809c);_0x5bdea3['on']('set:isEnabled',(_0x5be500,_0x5a37a2,_0x3da332)=>{if(_0x3da332){const _0x47774b=_0x5084cb['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x293b05=>_0x293b05['is']('element','tableCell'));this['_areMergableCells'](_0x5bdea3['value'],_0x47774b)||(_0x5be500['return']=!0x1,_0x5be500['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1d5461=this['editor']['commands']['get']('mergeTableCells'),_0x2cca40=this['editor']['plugins']['get']('TableUtils');if(!_0x1d5461['isEnabled'])return!0x1;const _0x15edb4=_0x2cca40['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2d0011 of _0x15edb4)for(const _0x21d67c of _0x15edb4)if(_0x2d0011!=_0x21d67c&&!this['_areMergableCells'](_0x2d0011,_0x21d67c))return!0x1;return!0x0;}['_areMergableCells'](_0x21e2ca,_0x16aa26){const _0x5ce962=this['editor']['plugins']['get']('TrackChangesEditing'),_0x43d4d9=this['editor']['model']['createRangeOn'](_0x21e2ca),_0x2fafd8=this['editor']['model']['createRangeOn'](_0x16aa26),_0x3701f1=new Set(),_0x5e6d96=new Set();for(const _0x26f578 of _0x5ce962['getSuggestions']())if(('insertion'==_0x26f578['type']||'deletion'==_0x26f578['type']||'mergeTableCells'==_0x26f578['subType'])&&_0x26f578['isInContent']){for(const _0x4a90b6 of _0x26f578['getRanges']())_0x4a90b6['containsRange'](_0x43d4d9,!0x0)&&_0x3701f1['add'](_0x26f578['type']+':'+_0x26f578['author']['id']),_0x4a90b6['containsRange'](_0x2fafd8,!0x0)&&_0x5e6d96['add'](_0x26f578['type']+':'+_0x26f578['author']['id']);}if(_0x3701f1['size']!=_0x5e6d96['size'])return!0x1;for(const _0x2245fe of _0x3701f1)if(!_0x5e6d96['has'](_0x2245fe))return!0x1;return!0x0;}}class Me extends _0x55ebc7{static get['requires'](){return[Ne];}['afterInit'](){const _0x3a7b3d=this['editor'];if(!_0x3a7b3d['plugins']['has']('TableEditing'))return;const _0x41a180=_0x3a7b3d['locale'],_0x38a34e=_0x3a7b3d['plugins']['get']('TrackChangesEditing');_0x38a34e['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x38a34e['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x38a34e['descriptionFactory']['registerAttributeLabel']('headingRows',At(_0x41a180,'FORMAT_HEADER_ROW')),_0x38a34e['descriptionFactory']['registerAttributeLabel']('headingColumns',At(_0x41a180,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3eecee=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52a7ca=this['editor']['plugins']['get'](Ne)['_acceptFormatSuggestionCallbackFactory']();_0x3eecee['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x52a7ca),_0x3eecee['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x52a7ca),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x499be5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x362201=this['editor']['plugins']['get']('TableUtils');function _0x35e0d8({showActiveMarker:_0x3ba4d8=!0x0,setDataAttribute:_0x41abf3=!0x0}={}){return(_0x4c03cf,_0x389fda,_0x4239f8)=>{const {type:_0x197f95,id:_0x58ff54}=_0x413c95(_0x389fda['markerName']);if(!_0x499be5['hasSuggestion'](_0x58ff54))return;const _0x5c3a36=_0x499be5['getSuggestion'](_0x58ff54),_0x18c7e1=_0x5c3a36['data'];if('formatBlock'!=_0x5c3a36['type']||!_0x18c7e1||'setTableColumnHeader'!=_0x18c7e1['commandName'])return;if(_0x389fda['item'])return void _0x4c03cf['stop']();if(!_0x4239f8['consumable']['consume'](_0x389fda['markerRange'],_0x4c03cf['name']))return;const _0x1520e0=_0x389fda['markerRange']['start']['nodeAfter'],_0x128c9f=_0x389fda['markerRange']['end']['nodeBefore'],_0x335bee=_0x1520e0['parent']['parent'],{column:_0x26a4fa}=_0x362201['getCellLocation'](_0x1520e0),{column:_0x47ff64}=_0x362201['getCellLocation'](_0x128c9f);for(let _0x1bd366=_0x26a4fa;_0x1bd366<=_0x47ff64;_0x1bd366++){const _0x918d9a=_0x362201['createTableWalker'](_0x335bee,{'column':_0x1bd366,'includeAllSlots':!0x1});for(const _0x52d69c of _0x918d9a){const _0x2193a4=_0x52d69c['cell'],_0x2418aa=_0x4239f8['mapper']['toViewElement'](_0x2193a4);_0x4239f8['writer']['addClass']('ck-suggestion-marker-'+_0x197f95,_0x2418aa),_0x41abf3&&_0x4239f8['writer']['setAttribute']('data-suggestion',_0x58ff54,_0x2418aa),_0x4239f8['mapper']['bindElementToMarker'](_0x2418aa,_0x389fda['markerName']),_0x3ba4d8&&(_0x499be5['activeMarkers']['includes'](_0x389fda['markerName'])?_0x4239f8['writer']['addClass']('ck-suggestion-marker--active',_0x2418aa):_0x4239f8['writer']['removeClass']('ck-suggestion-marker--active',_0x2418aa));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x35e0d8(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xc52b88,_0xd9313a,_0x30286e)=>{_0x30286e['options']['showSuggestionHighlights']&&_0x35e0d8({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xc52b88,_0xd9313a,_0x30286e);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x362a09,_0x2d7d1d,_0x1bf0ae)=>{const {type:_0x1027f5,id:_0x5a37a1}=_0x413c95(_0x2d7d1d['markerName']);if(!_0x499be5['hasSuggestion'](_0x5a37a1))return;const _0x9a89f7=_0x499be5['getSuggestion'](_0x5a37a1),_0x467d4f=_0x9a89f7['data'];if('formatBlock'!=_0x9a89f7['type']||!_0x467d4f||'setTableColumnHeader'!=_0x467d4f['commandName'])return;const _0x2b5a68=_0x1bf0ae['mapper']['markerNameToElements'](_0x2d7d1d['markerName']);if(_0x2b5a68){for(const _0x2112e2 of _0x2b5a68)_0x1bf0ae['writer']['removeClass']('ck-suggestion-marker-'+_0x1027f5,_0x2112e2),_0x1bf0ae['writer']['removeClass']('ck-suggestion-marker--active',_0x2112e2),_0x1bf0ae['writer']['removeAttribute']('data-suggestion',_0x2112e2),_0x1bf0ae['mapper']['unbindElementFromMarkerName'](_0x2112e2,_0x2d7d1d['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x4a7606=this['editor'],_0xb6e220=_0x4a7606['locale'];function _0x1929b7(_0x3df098){return{'type':'format','content':At(_0xb6e220,'*Format:*\x20%0',_0x3df098)};}_0x4a7606['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x357c20=>{if('formatBlock'!=_0x357c20['type'])return;const {data:_0x28ff59}=_0x357c20;if(_0x28ff59){if('setTableRowHeader'==_0x28ff59['commandName']){const _0x649eb2=_0x28ff59['commandParams'][0x0]['forceValue'];return _0x1929b7(At(_0xb6e220,_0x649eb2?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x28ff59['commandName']){const _0x2f73f8=_0x28ff59['commandParams'][0x0]['forceValue'];return _0x1929b7(At(_0xb6e220,_0x2f73f8?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Oe extends _0x55ebc7{static get['requires'](){return[Ne];}['afterInit'](){const _0x4249f6=this['editor'];if(!_0x4249f6['plugins']['has']('TableEditing')||!_0x4249f6['config']['get']('table.enableFooters'))return;const _0x33eff3=_0x4249f6['locale'],_0x5d6c7c=_0x4249f6['plugins']['get']('TrackChangesEditing');_0x5d6c7c['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x5d6c7c['descriptionFactory']['registerAttributeLabel']('footerRows',At(_0x33eff3,'FORMAT_FOOTER_ROW'));}}class we extends _0x55ebc7{['afterInit'](){const _0x3ac592=this['editor'],_0x5a8bda=_0x3ac592['locale'],_0x5d1bb1=_0x3ac592['plugins']['get']('TrackChangesEditing');function _0x46f3a4(_0x450e2e){return{'type':'format','content':''+At(_0x5a8bda,'*Set\x20table\x20type:*\x20%0',_0x450e2e)};}_0x3ac592['plugins']['has']('TableLayout')&&(_0x5d1bb1['enableCommand']('insertTableLayout'),_0x5d1bb1['enableDefaultAttributesIntegration']('tableType'),_0x5d1bb1['descriptionFactory']['registerElementLabel'](_0x58c8df=>_0x58c8df['is']('element','table')&&'layout'===_0x58c8df['getAttribute']('tableType'),_0x236147=>At(_0x5a8bda,'ELEMENT_LAYOUT_TABLE',_0x236147)),_0x5d1bb1['descriptionFactory']['registerDescriptionCallback'](_0x18a9d4=>{const {data:_0x43eff9}=_0x18a9d4;if(_0x43eff9&&'tableType'==_0x43eff9['key'])switch(_0x43eff9['newValue']){case'layout':return _0x46f3a4(At(_0x5a8bda,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x46f3a4(At(_0x5a8bda,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Fe=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Be['map'](_0x47778c=>[_0x47778c,null]));class De extends _0x55ebc7{static get['requires'](){return[Ne];}['afterInit'](){const _0x5ad045=this['editor'];if(!_0x5ad045['plugins']['has']('TableClipboard'))return;const _0x216e99=_0x5ad045['plugins']['get']('TrackChangesEditing'),_0x5eb85c=_0x5ad045['plugins']['get']('TableUtils'),_0x54c103=_0x5ad045['plugins']['get'](Ne),_0x39f1d7=_0x5ad045['plugins']['get']('TableClipboard'),_0x31be4b=_0x5ad045['plugins']['get']('TableSelection'),_0x1a3e8d=_0x5ad045['plugins']['get'](ut);_0x54c103['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5ad045['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5ad045['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x36dcf9=null,_0x2f28e2=!0x1;_0x1a3e8d['on']('contentInsertion',(_0x28eeb0,_0x4bb3ab)=>{_0x2f28e2='paste'===_0x4bb3ab['method'];}),_0x5ad045['model']['on']('insertContent',(_0x15e980,_0x515d20)=>{if(!_0x2f28e2&&null===_0x31be4b['getSelectedTableCells']())return;const [_0x4203b5,_0x5732b0]=_0x515d20,_0x5ae607=_0x515d20[_0x515d20['length']-0x1];_0x5ae607&&_0x5ae607['forceDefaultExecution']||_0x216e99['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3b53a5,_0x4eab1a,_0x1850a9,_0x399fa5,_0x2b02e1){if(_0x4eab1a&&!_0x4eab1a['is']('documentSelection'))return!0x1;const _0x421794=_0x2b02e1['getTableIfOnlyTableInContent'](_0x3b53a5,_0x1850a9);if(!_0x421794||!xe(_0x421794,void 0x0,_0x399fa5))return!0x1;const _0x3998be=_0x399fa5['getSelectionAffectedTableCells'](_0x1850a9['document']['selection']);if(!_0x3998be['length'])return!0x1;const _0x5745f1=_0x3998be[0x0]['findAncestor']('table'),_0x405257=_0x399fa5['getRowIndexes'](_0x3998be),_0x122d11=_0x399fa5['getColumnIndexes'](_0x3998be),_0x8cd498={'startRow':_0x405257['first'],'endRow':_0x405257['last'],'startColumn':_0x122d11['first'],'endColumn':_0x122d11['last']};return 0x1==_0x3998be['length']&&(_0x8cd498['endRow']+=_0x399fa5['getRows'](_0x421794)-0x1,_0x8cd498['endColumn']+=_0x399fa5['getColumns'](_0x421794)-0x1),xe(_0x5745f1,_0x8cd498,_0x399fa5);}(_0x4203b5,_0x5732b0,_0x5ad045['model'],_0x5eb85c,_0x39f1d7)&&(_0x15e980['stop'](),_0x36dcf9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5ad045['model']['change'](()=>{_0x5ad045['model']['insertContent'](_0x515d20[0x0],_0x515d20[0x1],_0x515d20[0x2],{'forceDefaultExecution':!0x0});const _0x26d20e=_0x493bce(),{rowInsertionRanges:_0x33279d,columnInsertionRanges:_0x2d7a53,insertionRanges:_0x51b7e2,deletionRanges:_0x1fff4f,cells:_0x4c3a83}=_0x36dcf9;_0x33279d['length']&&_0x216e99['markMultiRangeInsertion'](_0x33279d,'tablePasteRow',{'tablePasteChainId':_0x26d20e}),_0x2d7a53['length']&&_0x216e99['markMultiRangeInsertion'](_0x2d7a53,'tablePasteColumn',{'tablePasteChainId':_0x26d20e}),_0x51b7e2['length']&&(_0x216e99['markMultiRangeInsertion'](_0x51b7e2,'tablePaste',{'tablePasteChainId':_0x26d20e,'skipNestingCheck':!0x0}),_0x51b7e2['forEach'](_0x5e4771=>_0x5e4771['detach']?.())),_0x1fff4f['length']&&(_0x216e99['markMultiRangeDeletion'](_0x1fff4f,'tablePaste',{'tablePasteChainId':_0x26d20e,'skipNestingCheck':!0x0}),_0x1fff4f['forEach'](_0x1ca8e9=>_0x1ca8e9['detach']?.()));const _0x558854=_0x216e99['markMultiRangeBlockFormat'](_0x4c3a83['map'](({element:_0x242cb4})=>_0x242cb4),{'formatGroupId':_0x493bce()},[],'tablePasteCell',{'tablePasteChainId':_0x26d20e});if(_0x558854){const _0x43c16a=_0x558854['getMarkers'](),_0x425c99=[];for(const {element:_0xadfe61,attributes:_0x3edc5b}of _0x4c3a83){if(!_0x3edc5b)continue;const _0x10bd8b=_0x5ad045['model']['createRangeOn'](_0xadfe61),_0xebc842=_0x43c16a['find'](_0x3be8d4=>_0x3be8d4['getRange']()['isEqual'](_0x10bd8b));_0xebc842&&_0x425c99['push']([_0xebc842['name'],_0x3edc5b]);}_0x425c99['length']&&_0x558854['setAttribute']('markerAttributes',Object['fromEntries'](_0x425c99));}_0x36dcf9=null;}));},{'priority':_0x58c127['high']+0xa}),_0x1a3e8d['on']('contentInsertion',()=>{_0x2f28e2=!0x1;},{'priority':'lowest'}),_0x5ad045['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x33cfca,_0x370e4a)=>{const [_0x59d10a,_0x374183,,_0x316789]=_0x370e4a;if(!_0x36dcf9)return;_0x33cfca['stop']();const _0xa8788c=_0x59d10a['cell'],_0x171fe7=_0x374183,_0x1811a8=ve(_0xa8788c),_0x1babfe=ve(_0x171fe7);_0x33cfca['return']=_0xa8788c;let _0x3d9d4b=null,_0x139f19=null;if(_0x1babfe||_0x1811a8){if(_0x1811a8&&!_0x1babfe){_0x316789['remove'](_0xa8788c['getChild'](0x0));for(const _0x570026 of Array['from'](_0x171fe7['getChildren']()))_0x316789['insert'](_0x570026,_0xa8788c,'end');const _0x194691=_0x36dcf9['rowInsertionIndexes']['includes'](_0x59d10a['row']),_0x15efab=_0x36dcf9['columnInsertionIndexes']['includes'](_0x59d10a['column']);_0x194691||_0x15efab||(_0x3d9d4b=_0x3e26ed['fromRange'](_0x316789['createRangeIn'](_0xa8788c)));}else _0x1babfe&&!_0x1811a8&&(_0x139f19=_0x316789['createRangeIn'](_0xa8788c));}else{const _0x196304=_0x316789['createElement']('tableCellSuggestion'),_0xa7944b=_0x316789['createElement']('tableCellSuggestion');_0x316789['wrap'](_0x316789['createRangeIn'](_0xa8788c),_0xa7944b),_0x316789['insert'](_0x196304,_0xa8788c,0x0);for(const _0x319166 of Array['from'](_0x171fe7['getChildren']()))_0x316789['insert'](_0x319166,_0x196304,'end');_0x3d9d4b=_0x3e26ed['fromRange'](_0x316789['createRangeOn'](_0x196304)),_0x139f19=_0x3e26ed['fromRange'](_0x316789['createRangeOn'](_0xa7944b));}const _0x9209cf=Array['from'](_0x171fe7['getAttributes']())['filter'](([_0x48a141])=>Be['includes'](_0x48a141));_0x36dcf9['cells']['push']({'element':_0xa8788c,'attributes':_0x9209cf['length']?Object['fromEntries'](_0x9209cf):null}),_0x3d9d4b&&_0x36dcf9['insertionRanges']['push'](_0x3d9d4b),_0x139f19&&_0x36dcf9['deletionRanges']['push'](_0x139f19);},{'priority':'high'}),_0x5eb85c['on']('insertColumns',(_0x559490,_0x5f28af)=>{const [_0x356d42,_0x23efc5={}]=_0x5f28af;if(!_0x36dcf9)return;const _0x3da18b=_0x23efc5['at']||0x0,_0x51adbc=_0x23efc5['columns']||0x1;_0x36dcf9['columnInsertionIndexes']=new Array(_0x51adbc)['fill'](_0x3da18b)['map']((_0x3a5df8,_0x240bdb)=>_0x3a5df8+_0x240bdb);for(const {cell:_0x182d45}of _0x5eb85c['createTableWalker'](_0x356d42,{'startColumn':_0x3da18b,'endColumn':_0x3da18b+_0x51adbc-0x1}))_0x36dcf9['columnInsertionRanges']['push'](_0x5ad045['model']['createRangeOn'](_0x182d45));},{'priority':'low'}),_0x5eb85c['on']('insertRows',(_0x16e6e5,_0x1d0fff)=>{const [_0x589f66,_0x734b11={}]=_0x1d0fff;if(!_0x36dcf9)return;const _0x57e659=_0x734b11['at']||0x0,_0x4e74c3=_0x734b11['rows']||0x1;_0x36dcf9['rowInsertionIndexes']=new Array(_0x4e74c3)['fill'](_0x57e659)['map']((_0x17e1aa,_0xf50503)=>_0x17e1aa+_0xf50503);for(const {cell:_0x5d1218}of _0x5eb85c['createTableWalker'](_0x589f66,{'startRow':_0x57e659,'endRow':_0x57e659+_0x4e74c3-0x1}))_0x36dcf9['rowInsertionRanges']['push'](_0x5ad045['model']['createRangeOn'](_0x5d1218));},{'priority':'low'}),_0x216e99['descriptionFactory']['registerDescriptionCallback'](_0x158316=>{if(_0x158316['subType']&&_0x158316['subType']['startsWith']('tablePaste'))return _0x158316['previous']?{}:{'type':'insertion','content':At(_0x5ad045['locale'],'*Replace\x20table\x20cells*')};});const _0x42b4d4=()=>!0x1;for(const _0x5cb7d1 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x216e99['_suggestionFactory']['registerCustomCallback']('insertion',_0x5cb7d1,'join',_0x42b4d4),_0x216e99['_suggestionFactory']['registerCustomCallback']('deletion',_0x5cb7d1,'join',_0x42b4d4),_0x216e99['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5cb7d1,'join',_0x42b4d4);_0x216e99['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x42b4d4),_0x216e99['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x416c24,_0x488e85,_0x1da5f1)=>{const _0x45a6fa=_0x416c24['map'](_0xac8639=>_0xac8639['getContainedElement']())['filter'](_0x380604=>_0x380604),_0x598a57=new Map(_0x45a6fa['map'](_0x1dfce8=>[_0x1dfce8,null]));if(_0x36dcf9){for(const {element:_0x5a0465,attributes:_0x1b92e1}of _0x36dcf9['cells'])_0x1b92e1&&_0x598a57['set'](_0x5a0465,_0x1b92e1);}else{if(_0x1da5f1&&_0x1da5f1['markerAttributes'])for(const [_0x426c7e,_0x4a7dd3]of Object['entries'](_0x1da5f1['markerAttributes'])){const _0x15bb72=_0x5ad045['model']['markers']['get'](_0x426c7e),_0x406531=_0x15bb72?_0x15bb72['getRange']()['getContainedElement']():null;_0x406531&&_0x598a57['set'](_0x406531,_0x4a7dd3);}}_0x5ad045['model']['change'](_0x380908=>{for(const [_0x2066da,_0x2861bc]of _0x598a57)_0x380908['setAttributes']({...Fe,..._0x2861bc},_0x2066da);});});const _0x406cfa=(_0x57357b,_0x44c703)=>{_0x216e99['_suggestionFactory']['registerCustomCallback'](_0x57357b,'tablePaste',_0x44c703,(_0x4bd613,_0x27321f,_0x3f6687)=>{_0x5ad045['model']['change'](_0x251552=>{const _0x599ba2=[];for(const _0x2b1044 of _0x4bd613){const _0x439018=_0x2b1044['start']['nodeAfter'];_0x439018['is']('element','tableCellSuggestion')&&_0x599ba2['push'](_0x439018);}_0x216e99['_suggestionFactory']['getSuggestionCallback'](_0x57357b,null,_0x44c703)(_0x4bd613,_0x27321f,_0x3f6687);for(const _0x226f71 of _0x599ba2)'$graveyard'!=_0x226f71['root']['rootName']&&_0x251552['unwrap'](_0x226f71);});});};_0x406cfa('insertion','accept'),_0x406cfa('insertion','discard'),_0x406cfa('deletion','accept'),_0x406cfa('deletion','discard'),_0x216e99['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4ebcb1=>{const _0x57127f=_0x4ebcb1['map'](_0x114213=>_0x114213['getContainedElement']()),_0x50e960=_0x57127f[0x0]['findAncestor']('table'),{minRow:_0x245982,maxRow:_0x43bbf9}=_0x54c103['_getCoordsForCells'](_0x57127f);_0x5eb85c['removeRows'](_0x50e960,{'at':_0x245982,'rows':_0x43bbf9-_0x245982+0x1});}),_0x216e99['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x57d8a0=>{const _0x94b74f=_0x57d8a0['map'](_0x1d5917=>_0x1d5917['getContainedElement']()),_0x58481a=_0x94b74f[0x0]['findAncestor']('table'),{minColumn:_0x46ce91,maxColumn:_0x5f5a1e}=_0x54c103['_getCoordsForCells'](_0x94b74f);_0x5eb85c['removeColumns'](_0x58481a,{'at':_0x46ce91,'columns':_0x5f5a1e-_0x46ce91+0x1});});const _0x3eb138=(_0x987503,_0x1e193c)=>{if(!_0x1e193c['subType']||!_0x1e193c['subType']['startsWith']('tablePaste'))return;const _0x20b0d3=_0x1e193c['attributes']['tablePasteChainId'],_0xe48b19=_0x216e99['getSuggestions']()['filter'](_0x4b7606=>_0x4b7606['isInContent']&&_0x4b7606['attributes']&&_0x4b7606['attributes']['tablePasteChainId']==_0x20b0d3);_0xe48b19['length']&&_0x1e193c['getAllAdjacentSuggestions']()['length']!=_0xe48b19['length']&&_0xe48b19['reduce']((_0x2a160e,_0x3642bf)=>(_0x2a160e['next']=_0x3642bf,_0x3642bf['previous']=_0x2a160e,_0x3642bf));};function _0x54974f(_0x2c3ce4,_0x36a4aa=!0x0){const {id:_0xf71d2b,authorId:_0x16c8e5}=_0x413c95(_0x2c3ce4['markerName']),_0x48f864=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x21abd5=_0x216e99['activeMarkers']['includes'](_0x2c3ce4['markerName']);return _0x21abd5&&_0x48f864['push']('ck-suggestion-marker--active'),{'classes':_0x48f864,'attributes':{'data-suggestion':_0xf71d2b,'data-author-id':_0x16c8e5},'priority':_0x21abd5&&_0x36a4aa?0xbc2:0xbb8};}_0x216e99['on']('suggestionLoaded',_0x3eb138,{'priority':'high'}),_0x216e99['on']('suggestionUnloaded',_0x3eb138,{'priority':'high'}),_0x5ad045['model']['document']['registerPostFixer'](()=>{let _0x110890=!0x1;const _0x68ea29=Array['from'](_0x5ad045['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x58c303,data:_0x4d1d43}of _0x68ea29){const {group:_0x49f639,type:_0x50c90e,id:_0x3f65c3}=_0x413c95(_0x58c303);if('suggestion'!=_0x49f639||'deletion'!=_0x50c90e||_0x4d1d43['oldRange'])continue;if(!_0x216e99['hasSuggestion'](_0x3f65c3))continue;const _0xc041c2=_0x216e99['getSuggestion'](_0x3f65c3)['getRanges'](),_0x5dbd5d=_0x5ad045['plugins']['get']('Users')['me'];for(const _0x3b540f of _0x216e99['getSuggestions']()){if(!_0x3b540f['isInContent']||_0x3b540f['author']!=_0x5dbd5d)continue;if('formatBlock'!=_0x3b540f['type']||'tablePasteCell'!=_0x3b540f['subType'])continue;if(_0x3b540f['getRanges']()['every'](_0x170fb5=>_0xc041c2['some'](_0x1ce3bf=>_0x1ce3bf['containsRange'](_0x170fb5,!0x0)))){for(const _0x4ecda3 of _0x3b540f['getAllAdjacentSuggestions']())_0x4ecda3['isInContent']&&(_0x4ecda3['discard'](),_0x110890=!0x0);}}}return _0x110890;}),_0x5ad045['model']['document']['registerPostFixer'](_0x16288f=>{const _0x199ed1=_0x5ad045['commands']['get']('redo');if(!_0x199ed1||!_0x199ed1['_createdBatches']['has'](_0x16288f['batch']))return!0x1;let _0x4266d1=!0x1;const _0xbc9788=_0x5ad045['plugins']['get']('Users')['me'],_0x3b8eee=_0x5ad045['model']['document']['differ']['getChanges'](),_0x482045=Array['from'](_0x5ad045['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x43c4a4,data:_0x14803e})=>{const {group:_0x179ee8,subType:_0x6b925,authorId:_0x5f380a}=_0x413c95(_0x43c4a4);return'suggestion'==_0x179ee8&&'tablePaste'==_0x6b925&&_0x5f380a==_0xbc9788['id']&&!_0x14803e['oldRange'];});for(const _0x516948 of _0x3b8eee){if('insert'!=_0x516948['type']||'tableCellSuggestion'!=_0x516948['name']||0x1!=_0x516948['length'])continue;const _0x11cf9a=_0x16288f['createRange'](_0x516948['position'],_0x516948['position']['getShiftedBy'](0x1));if(!_0x482045['find'](({data:_0x167f50})=>_0x167f50['newRange']['isEqual'](_0x11cf9a))){for(const {name:_0x5a5e8b,data:_0x4cb0e7}of _0x482045)if(_0x11cf9a['containsRange'](_0x4cb0e7['newRange'])){_0x16288f['updateMarker'](_0x5a5e8b,{'range':_0x11cf9a}),_0x4266d1=!0x0;break;}}}return _0x4266d1;}),_0x5ad045['model']['document']['registerPostFixer'](_0x316c9c=>{let _0x541392=!0x1;const _0x423a02=_0x5ad045['plugins']['get']('Users')['me'],_0x4b6500=_0x216e99['getSuggestions']()['filter'](_0x22ae34=>_0x22ae34['isInContent']&&_0x22ae34['author']==_0x423a02),_0x2c2be7=new Set(),_0x10e88c=new Set();for(const _0x5a3ae4 of _0x4b6500)if('tablePaste'==_0x5a3ae4['subType'])for(const _0x37b000 of _0x5a3ae4['getMarkers']()){const _0x201b27=_0x37b000['getRange']()['getContainedElement']();if(_0x201b27){if(_0x201b27['is']('element','tableCellSuggestion')&&ve(_0x201b27)){_0x5a3ae4['removeMarker'](_0x37b000['name']),_0x2c2be7['add'](_0x201b27),_0x541392=!0x0;const _0x1e8bc2=_0x201b27['nextSibling'],_0x545131=_0x201b27['previousSibling'],_0x51189=_0x1e8bc2&&_0x1e8bc2['is']('element','tableCellSuggestion'),_0x3ac89=_0x545131&&_0x545131['is']('element','tableCellSuggestion');_0x51189&&!_0x2c2be7['has'](_0x1e8bc2)&&_0x10e88c['add'](_0x1e8bc2),_0x3ac89&&!_0x2c2be7['has'](_0x545131)&&_0x10e88c['add'](_0x545131);}else _0x201b27['is']('element','paragraph')&&_0x201b27['isEmpty']&&(_0x5a3ae4['removeMarker'](_0x37b000['name']),_0x541392=!0x0);}}else{if('tablePasteCell'==_0x5a3ae4['subType']){if(!_0x5a3ae4['attributes']||!_0x5a3ae4['attributes']['tablePasteChainId'])continue;const _0x52c766=_0x5a3ae4['attributes']['markerAttributes'];if(_0x52c766&&Object['keys'](_0x52c766)['length'])continue;const _0x291f55=_0x5a3ae4['attributes']['tablePasteChainId'];let _0xb0a62=!0x0,_0x5aba6e=!0x0;for(const _0x10e2b3 of _0x4b6500)if(_0x10e2b3['subType']&&_0x10e2b3['subType']['startsWith']('tablePaste')){if(!_0x10e2b3['attributes']['tablePasteChainId']){_0x5aba6e=!0x1;break;}if(_0x10e2b3['id']!=_0x5a3ae4['id']&&_0x10e2b3['attributes']['tablePasteChainId']==_0x291f55){_0xb0a62=!0x1;break;}}_0x5aba6e&&_0xb0a62&&(_0x5a3ae4['removeMarkers'](),_0x541392=!0x0);}}for(const _0x3eb259 of _0x2c2be7)_0x316c9c['remove'](_0x3eb259);for(const _0x21b58c of _0x10e88c)_0x316c9c['unwrap'](_0x21b58c);return _0x541392;}),_0x5ad045['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x43b794=>_0x54974f(_0x43b794),'converterPriority':'high'}),_0x5ad045['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x131c94,_0x1f6dc7)=>_0x1f6dc7['options']['showSuggestionHighlights']?_0x54974f(_0x131c94,!0x1):null,'converterPriority':'high'});const _0x3ac61e=_0x5ad045['editing']['view'];this['listenTo'](_0x3ac61e['document'],'clipboardOutput',(_0xdb4c90,_0x1c6c1a)=>{const _0x3f5d7c=[];for(const _0x4ea1e5 of _0x3ac61e['createRangeIn'](_0x1c6c1a['content'])['getItems']())_0x4ea1e5['is']('element','suggestion-td')&&_0x3f5d7c['push'](_0x4ea1e5);_0x3ac61e['change'](_0x30b96c=>{for(const _0x2ef6b3 of _0x3f5d7c)_0x30b96c['move'](_0x30b96c['createRangeIn'](_0x2ef6b3),_0x30b96c['createPositionBefore'](_0x2ef6b3)),_0x30b96c['remove'](_0x2ef6b3);});});}}function ve(_0x108369){if(_0x108369['isEmpty'])return!0x0;const _0x454283=_0x108369['getChild'](0x0);return _0x454283['is']('element','paragraph')&&_0x454283['isEmpty'];}function xe(_0x1c95c6,_0x5c8ee5={},_0x45901a){for(const {isAnchor:_0x37aa51,cellHeight:_0x53dd0f,cellWidth:_0x151e4d}of _0x45901a['createTableWalker'](_0x1c95c6,{'includeAllSlots':!0x0,..._0x5c8ee5}))if(!_0x37aa51||0x1!=_0x53dd0f||0x1!=_0x151e4d)return!0x1;return!0x0;}class Pe extends _0x55ebc7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x323a8e=this['editor']['plugins']['get']('TrackChangesEditing');_0x323a8e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x323a8e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x323a8e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x323a8e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x323a8e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x323a8e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4611ab,_0x3731f7){const _0x43bdf3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41c64e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x80b530=_0x3731f7['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3f72fc=_0x41c64e['getColumnGroupElement'](_0x80b530);let _0x5804c1=_0x3f72fc?_0x41c64e['getTableColumnsWidths'](_0x3f72fc):null,_0x494709=_0x80b530['getAttribute']('tableWidth')||null;const _0x4ccaaf=_0x3731f7['tableWidth']||_0x494709,_0x1c359d=_0x3731f7['columnWidths']||_0x5804c1,_0x2b0203=this['editor']['plugins']['get']('Users')['me'];for(const _0x163c28 of _0x43bdf3['getSuggestions']()){const _0x4e3101=_0x163c28['getContainedElement']();if('resizeTable'===_0x163c28['subType']&&_0x4e3101===_0x80b530){_0x163c28['author']!==_0x2b0203&&_0x163c28['discard']();const _0x4b7b9b=_0x163c28['data']['commandParams'];_0x494709=_0x4b7b9b[0x0]['tableWidth'],_0x5804c1=_0x4b7b9b[0x0]['columnWidths'];break;}}_0x4611ab({'table':_0x80b530,'tableWidth':_0x4ccaaf,'columnWidths':_0x1c359d}),_0x43bdf3['markBlockFormat'](_0x80b530,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x494709,'columnWidths':_0x5804c1}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1db59b){if('formatBlock'!=_0x1db59b['type']&&'formatInline'!=_0x1db59b['type'])return;const {data:_0x2c1fac}=_0x1db59b;if(_0x2c1fac&&'resizeTable'===_0x2c1fac['formatGroupId']){const _0x151298='*Format:*\x20resize\x20table';return{'type':'format','content':At(this['editor']['locale'],_0x151298)};}}}class Ue extends _0x55ebc7{['afterInit'](){const _0x325fc2=this['editor'];_0x325fc2['plugins']['has']('Template')&&_0x325fc2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ge extends _0x55ebc7{['afterInit'](){const _0x23f2da=this['editor'];if(!_0x23f2da['commands']['get']('insertTableOfContents'))return;_0x23f2da['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x13faa1=_0x23f2da['plugins']['get']('TrackChangesEditing'),_0x4051e2=_0x23f2da['locale'];_0x13faa1['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3aa7fa=>At(_0x4051e2,'ELEMENT_TABLE_OF_CONTENTS',_0x3aa7fa));}}class He extends _0x55ebc7{['afterInit'](){const _0x23fd14=this['editor'];if(!_0x23fd14['plugins']['has']('Title'))return;_0x23fd14['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>At(_0x23fd14['locale'],'ELEMENT_TITLE')),_0x23fd14['model']['document']['registerPostFixer'](_0x4a384c=>{let _0x209d9b=!0x1;const _0x108dee=Array['from'](_0x23fd14['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1bbf2d,data:_0x122c61}of _0x108dee){const {group:_0x4e9afd}=_0x413c95(_0x1bbf2d);if('suggestion'!==_0x4e9afd||!_0x122c61['newRange'])continue;const _0x5bb90b=_0x122c61['newRange'],_0x3e1b69=_0x5bb90b['end']['nodeBefore'];if(!_0x3e1b69||!_0x3e1b69['is']('element','title-content'))continue;if(!_0x5bb90b['start']['isTouching'](_0x5bb90b['end']))continue;const _0x2e306e=_0x23fd14['model']['schema']['getNearestSelectionRange'](_0x5bb90b['end'],'forward');if(_0x2e306e&&_0x2e306e['isCollapsed']){const _0x4b3bfa=_0x4a384c['createRange'](_0x5bb90b['start'],_0x2e306e['start']);_0x4b3bfa['isEqual'](_0x5bb90b)||(_0x4a384c['updateMarker'](_0x1bbf2d,{'range':_0x4b3bfa}),_0x209d9b=!0x0);}_0x209d9b||(_0x4a384c['removeMarker'](_0x1bbf2d),_0x209d9b=!0x0);}return _0x209d9b;});}}class $e extends _0x55ebc7{['afterInit'](){const _0x5a846c=this['editor'],_0x520a22=_0x5a846c['plugins']['get']('TrackChangesEditing');_0x5a846c['plugins']['has']('Uploadcare')&&(_0x520a22['enableCommand']('uploadcare'),_0x5a846c['plugins']['has']('UploadcareImageEdit')&&(_0x520a22['enableCommand']('uploadcareImageEdit'),_0x520a22['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x520a22['descriptionFactory']['registerDescriptionCallback'](_0x27c07d=>{if('attribute'!=_0x27c07d['type'])return;const {data:_0x2eab39}=_0x27c07d;return _0x2eab39&&'uploadcareImageId'==_0x2eab39['key']?{'type':'format','content':''}:void 0x0;})));}}class We extends _0x55ebc7{['afterInit'](){const _0x1977c9=this['editor'],_0x5aed46=_0x1977c9['plugins']['get']('TrackChangesEditing');_0x1977c9['plugins']['has']('UndoEditing')&&(_0x5aed46['enableCommand']('undo'),_0x5aed46['enableCommand']('redo'));}}class Ve extends _0x55ebc7{static get['requires'](){return[Ne];}['afterInit'](){const _0x28190b=this['editor'];if(!_0x28190b['plugins']['has']('TableCaptionEditing'))return;_0x28190b['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class je extends _0x55ebc7{['tableProperties'];['tableCellProperties'];constructor(_0x5be6e7){super(_0x5be6e7),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 _0x2180f3=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x278efc of this['tableProperties'])_0x2180f3['enableCommand'](_0x278efc,(_0x2eeeeb,_0x4dae4d)=>{const _0x50bb58=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x278efc,[_0x50bb58],this['tableProperties'],'tableProperties',_0x2eeeeb,_0x4dae4d);});_0x2180f3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2180f3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2180f3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4b0ff2,_0x309eef)=>this['handleDiscardAction'](this['tableProperties'],_0x4b0ff2,_0x309eef)),_0x2180f3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1cbb97 of this['tableCellProperties'])this['editor']['commands']['get'](_0x1cbb97)&&_0x2180f3['enableCommand'](_0x1cbb97,(_0x21b690,_0x2612e6)=>{const _0x5101b6=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1cbb97,_0x5101b6,this['tableCellProperties'],'tableCellProperties',_0x21b690,_0x2612e6);});_0x2180f3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2180f3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2180f3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1e0044,_0x4fb820)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1e0044,_0x4fb820)),_0x2180f3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x2180f3['descriptionFactory']['registerAttributeLabel']('tableCellType',At(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x2180f3['descriptionFactory']['registerDescriptionCallback'](_0x5ee2a2=>this['handleSuggestionDescription'](_0x5ee2a2)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x1f2134,_0x288025,_0x3b76b2,_0x48f1eb,_0x1e0f8f,_0x29a280){const _0x47ec2f=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x29a280['batch'],()=>{for(const _0x5f2157 of _0x288025){if(this['_getSuggestion'](_0x5f2157,_0x48f1eb))_0x1e0f8f(_0x29a280);else{const _0x3b31d1={};for(const _0x3b765f of _0x3b76b2){const _0x5e57a5=_0x5f2157['getAttribute'](_0x3b765f);void 0x0!==_0x5e57a5&&(_0x3b31d1[_0x3b765f]=_0x5e57a5);}_0x1e0f8f(_0x29a280),_0x47ec2f['markBlockFormat'](_0x5f2157,{'commandParams':[_0x3b31d1]},[],_0x48f1eb);}}});}['handleDiscardAction'](_0x23c728,_0x61d13a,_0xf4b86d){const _0x28bf61=_0x61d13a[0x0]['start']['nodeAfter'],_0x1fcb47=_0xf4b86d['commandParams'][0x0];this['editor']['model']['change'](_0x1411b6=>{for(const _0x17a117 of _0x23c728)void 0x0!==_0x1fcb47[_0x17a117]?_0x1411b6['setAttribute'](_0x17a117,_0x1fcb47[_0x17a117],_0x28bf61):_0x1411b6['removeAttribute'](_0x17a117,_0x28bf61);});}['handleSuggestionDescription'](_0x133a31){if(_0x133a31['data'])switch(_0x133a31['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'](_0x381005,_0x4cd5cb){const _0x268fbe=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4285a7 of _0x268fbe['getSuggestions']({'skipNotAttached':!0x0})){const _0x35ecf8=_0x4285a7['getContainedElement']();if(_0x4285a7['subType']===_0x4cd5cb&&_0x35ecf8===_0x381005)return _0x4285a7;}return null;}['_registerTablePropertiesAttributes'](){const _0x4f6205=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d9bf4=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x15c5c1 of _0x5d9bf4){const _0x3a016a=_0x15c5c1['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x4f6205['descriptionFactory']['registerAttributeLabel'](_0x15c5c1,At(this['editor']['locale'],'FORMAT_'+_0x3a016a));}}}class ze extends _0x55ebc7{['afterInit'](){const _0x31eac9=this['editor'];if(!_0x31eac9['plugins']['has']('LineHeight'))return;const _0x2338f8=_0x31eac9['plugins']['get']('TrackChangesEditing'),_0x3d6736=_0x31eac9['locale'];_0x2338f8['enableDefaultAttributesIntegration']('lineHeight'),_0x2338f8['descriptionFactory']['registerAttributeLabel']('lineHeight',At(_0x3d6736,'FORMAT_LINE_HEIGHT'));}}const Ke='$elementName';class Xe extends _0x55ebc7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x3c2b56,_0x3517fc,_0x4c8879,_0x3baa53,_0x3c2b55,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(_0x579589){super(_0x579589),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x31e9de,_0x3d23e5,_0x487334,_0x144893)=>{this['_model']['change'](()=>{for(const _0x28a540 of[..._0x144893,..._0x487334])this['_model']['markers']['has'](_0x28a540)&&_0x579589['editing']['reconvertMarker'](_0x28a540);});}),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']=_0x579589['plugins']['get'](_0x3c2b56),this['_suggestionsConversion']=_0x579589['plugins']['get'](_0x3517fc),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x579589['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x579589['config']['get']('trackChanges.trackFormatChanges'),_0x579589['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x579589['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new ht(_0x579589,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x513cc7=this['editor'];_0x513cc7['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2448cf,{writer:_0xe071d8})=>{let _0x2a152a='suggestion:'+_0x2448cf['getAttribute']('suggestion-type')+':'+_0x2448cf['getAttribute']('id');return _0x2448cf['getAttribute']('marker-count')&&(_0x2a152a+=':'+_0x2448cf['getAttribute']('marker-count')),_0xe071d8['createElement']('$marker',{'data-name':_0x2a152a});}}),_0x513cc7['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x513cc7['model']['document']['registerPostFixer'](_0x5ac4df=>{let _0x252cda=!0x1;const _0x4ae4c7=Array['from'](_0x513cc7['model']['document']['differ']['getChangedMarkers']()),_0x340957=new Set();for(const {name:_0x2ae5d3,data:_0xa06969}of _0x4ae4c7){const {group:_0x546a27,type:_0x10378e,subType:_0x60a8a6,id:_0x301557}=_0x413c95(_0x2ae5d3);if('suggestion'!==_0x546a27)continue;const _0x203c66=_0x60a8a6?'suggestion:'+_0x10378e+':'+_0x60a8a6+':'+_0x301557:'suggestion:'+_0x10378e+':'+_0x301557,_0xffdebd=_0x513cc7['model']['markers']['getMarkersGroup'](_0x203c66),_0x6d43e9=_0x513cc7['model']['markers']['get'](_0x2ae5d3),_0x280b0e=this['_suggestions']['get'](_0x301557);if(null!=_0xa06969['newRange']){'formatInline'==_0x10378e&&(_0x252cda=_0x252cda||Ze(_0xa06969['newRange'],_0x2ae5d3,_0x5ac4df,_0x513cc7['model']['schema']));const _0x1834c8='attribute'==_0x10378e&&this['_suggestionsConversion']['isBlockAttribute'](un(_0x60a8a6)),_0xe00882='attribute'==_0x10378e&&this['_suggestionsConversion']['isInlineAttribute'](un(_0x60a8a6));if(_0xa06969['newRange']['isCollapsed']||'$graveyard'==_0xa06969['newRange']['root']['rootName']||'formatBlock'==_0x10378e&&!tn(_0xa06969['newRange'])||_0x1834c8&&!tn(_0xa06969['newRange'])||_0xe00882&&en(_0xa06969['newRange'])||'deletion'==_0x10378e&&en(_0xa06969['newRange'])||_0x6d43e9&&nn(_0x6d43e9,_0xffdebd))_0x5ac4df['removeMarker'](_0x2ae5d3),_0x252cda=!0x0;else{if(!_0x280b0e||!_0x280b0e['isInContent'])continue;if(_0xa06969['newRange']&&_0xa06969['oldRange']&&_0xa06969['newRange']['isEqual'](_0xa06969['oldRange']))continue;_0x340957['add'](_0x280b0e);}}}return _0x340957['size']>0x0&&(_0x252cda=!!this['_joinWithAdjacentSuggestions'](_0x340957)||_0x252cda),_0x252cda;}),_0x513cc7['model']['document']['registerPostFixer'](_0x209315=>{let _0x259689=!0x1;for(const _0x43ca9d of _0x513cc7['model']['document']['differ']['getChanges']())if('insert'==_0x43ca9d['type'])for(const _0x22587e of this['_suggestions']['values']()){if(_0x22587e['isMultiRange']||!_0x22587e['isInContent'])continue;const _0x36ccfb='formatBlock'==_0x22587e['type'],_0x22074f=this['_getAttributeKey'](_0x22587e),_0x1538a9=_0x22074f&&this['_suggestionsConversion']['isBlockAttribute'](_0x22074f);if(!_0x36ccfb&&!_0x1538a9)continue;const _0x4cce9c=_0x22587e['getFirstRange']();if(_0x4cce9c['start']['parent']!=_0x4cce9c['end']['parent']&&!_0x4cce9c['end']['isAtEnd']){const _0x2f27f3=_0x513cc7['model']['createPositionAt'](_0x4cce9c['start']['nodeAfter'],'end'),_0x21289b=_0x513cc7['model']['createRange'](_0x4cce9c['start'],_0x2f27f3);_0x209315['updateMarker'](_0x22587e['getFirstMarker'](),{'range':_0x21289b}),_0x259689=!0x0;}}return _0x259689;}),_0x513cc7['model']['document']['registerPostFixer'](_0x4069cb=>this['_processAttributeChanges'](_0x4069cb)),_0x513cc7['model']['document']['registerPostFixer'](_0x2feb60=>!_0x2feb60['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2feb60)),_0x513cc7['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x513cc7['model']['document']['on']('change:data',(_0x385045,_0x66b138)=>{if(!_0x66b138['isLocal']||_0x66b138['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x93ca75=_0x513cc7['model']['document']['differ']['getChanges']();if(0x0==_0x93ca75['length'])return;const _0x54fda1=[],_0x4a27b7=_0x93ca75['filter'](_0x3ee798=>'attribute'==_0x3ee798['type']),_0x334afd=_0x93ca75['filter'](_0x943739=>'insert'==_0x943739['type']&&'$text'!=_0x943739['name']);for(const _0x1b2e97 of _0x4a27b7)this['_suggestionsConversion']['isRegisteredAttribute'](_0x1b2e97['attributeKey'])&&_0x54fda1['push']({'key':_0x1b2e97['attributeKey'],'newValue':_0x1b2e97['attributeNewValue'],'oldValue':_0x1b2e97['attributeOldValue'],'range':sn(_0x1b2e97['range'],_0x513cc7['model'])});for(const _0x5c50fa of _0x334afd){if('rename'!=_0x5c50fa['action']&&'refresh'!=_0x5c50fa['action'])continue;const _0x3e468f=rn(_0x5c50fa['position']['nodeAfter'],_0x513cc7['model']),_0xd7e36c=_0x5c50fa['before'];'rename'==_0x5c50fa['action']&&_0x54fda1['push']({'key':Ke,'newValue':_0x5c50fa['name'],'oldValue':_0xd7e36c['name'],'range':_0x3e468f});for(const [_0x1c1729,_0x56f11c]of _0xd7e36c['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x1c1729))continue;const _0xc22241=_0x5c50fa['attributes']['get'](_0x1c1729);_0x56f11c!==_0xc22241&&_0x54fda1['push']({'key':_0x1c1729,'newValue':_0xc22241,'oldValue':_0x56f11c,'range':_0x3e468f});}for(const [_0x26a8c8,_0x5ebfb5]of _0x5c50fa['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x26a8c8)&&(_0xd7e36c['attributes']['has'](_0x26a8c8)||_0x54fda1['push']({'key':_0x26a8c8,'newValue':_0x5ebfb5,'oldValue':null,'range':_0x3e468f}));}0x0!=_0x54fda1['length']&&_0x513cc7['model']['enqueueChange'](_0x66b138,_0x33ff35=>{const _0x3dbfc8=_0x493bce();for(const {range:_0x5a2b01,key:_0x48fe0b,oldValue:_0x472354,newValue:_0x3a1498}of _0x54fda1)this['markAttributeChange'](_0x5a2b01,_0x48fe0b,_0x472354,_0x3a1498,{'groupId':_0x3dbfc8});this['_reduceExistingSuggestions'](_0x33ff35,_0x54fda1);});},{'priority':'lowest'}),_0x513cc7['model']['markers']['on']('update:suggestion',(_0x5d6356,_0x392859,_0x3e6642)=>{if(null==_0x3e6642){const {id:_0x3456f7}=_0x413c95(_0x392859['name']),_0x154e9d=this['_suggestions']['get'](_0x3456f7);_0x154e9d&&_0x154e9d['addMarkerName'](_0x392859['name']);}}),_0x513cc7['model']['document']['on']('change:data',()=>{const _0x505795=Array['from'](_0x513cc7['model']['document']['differ']['getChangedMarkers']())['filter'](_0xf740a3=>'suggestion'===_0x413c95(_0xf740a3['name'])['group']);if(0x0===_0x505795['length'])return;_0x505795['sort']((_0x523e36,_0xca067b)=>{const _0xffce41=_0x523e36['data']['oldRange'],_0x571e32=_0xca067b['data']['oldRange'];return null===_0xffce41&&null===_0x571e32?0x0:null===_0xffce41&&null!==_0x571e32?-0x1:null!==_0xffce41&&null===_0x571e32?0x1:_0xffce41['start']['isBefore'](_0x571e32['start'])?-0x1:0x1;});const _0x4ee1aa=new Set(),_0x4748c1=new Set();for(const {name:_0x56a68e,data:_0x249796}of _0x505795){const {id:_0x3bae94}=_0x413c95(_0x56a68e);if(null===_0x249796['oldRange']){const _0x298568=this['_handleNewSuggestionMarker'](_0x56a68e);_0x4748c1['add'](_0x298568);}else{const _0x353e84=this['_suggestions']['get'](_0x3bae94);null!==_0x249796['newRange']||_0x353e84['isInContent']?(_0x4ee1aa['add'](_0x353e84['head']),_0x4748c1['add'](_0x353e84)):this['_removeSuggestion'](_0x353e84);}}_0x4748c1['size']>0x0&&this['_refreshSuggestionsChain'](_0x4748c1);for(const _0x14e8c6 of _0x4ee1aa)this['fire']('suggestionChanged',_0x14e8c6);}),_0x513cc7['model']['on']('applyOperation',(_0x3d25d7,_0x5ea338)=>{const _0x2f2577=_0x5ea338[0x0];if(!this['_suggestions']['size'])return;if(!_0x2f2577['isDocumentOperation'])return;if(_0x2f2577['batch']['isUndo']||!_0x2f2577['batch']['isLocal'])return;let _0x45161d,_0x58e598;switch(_0x2f2577['type']){case'insert':_0x45161d=_0x513cc7['model']['createPositionAt'](_0x2f2577['position']),_0x58e598=_0x45161d['getShiftedBy'](_0x2f2577['howMany']);break;case'split':_0x45161d=_0x513cc7['model']['createPositionAt'](_0x2f2577['splitPosition']),_0x58e598=_0x513cc7['model']['createPositionAt'](_0x2f2577['moveTargetPosition']);break;case'move':_0x45161d=_0x513cc7['model']['createPositionAt'](_0x2f2577['targetPosition']),_0x58e598=_0x45161d['getShiftedBy'](_0x2f2577['howMany']);break;default:return;}const _0x4146b4=_0x513cc7['model']['createRange'](_0x45161d,_0x58e598);_0x513cc7['model']['change'](()=>{for(const {suggestion:_0x2ea478,meta:_0x427c0e}of this['_findSuggestions'](_0x4146b4)){if(_0x2ea478['isMultiRange'])continue;if('formatInline'==_0x2ea478['type'])continue;const _0x1fc42a=this['_getAttributeKey'](_0x2ea478);if(_0x1fc42a&&this['_suggestionsConversion']['isBlockAttribute'](_0x1fc42a)&&'split'!=_0x2f2577['type'])continue;const _0x10902b=_0x2ea478['data']&&_0x2ea478['data']['multipleBlocks'];('formatBlock'!=_0x2ea478['type']||'split'==_0x2f2577['type']&&!_0x10902b)&&(_0x427c0e['containsRangeInObject']||'insertion'==_0x2ea478['type']&&_0x427c0e['isOwn']||_0x2ea478['getFirstRange']()['containsRange'](_0x4146b4)&&this['_breakSuggestionMarker'](_0x2ea478,_0x45161d,_0x58e598));}});},{'priority':'lowest'}),_0x513cc7['model']['on']('deleteContent',(_0x36791f,_0x226fd6)=>{const _0x5604f8=_0x226fd6[0x0],_0x2c4cba=_0x226fd6[0x1];if(_0x2c4cba&&_0x2c4cba['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5604f8['isCollapsed'])return;const _0x51e7b1=_0x513cc7['model']['schema'],{start:_0x471c3d,end:_0x33afc8}=_0x5604f8['getFirstRange'](),_0x234f82=_0x471c3d['nodeAfter']&&_0x51e7b1['isLimit'](_0x471c3d['nodeAfter'])?null:_0x51e7b1['getNearestSelectionRange'](_0x471c3d,'forward'),_0x5a6a3f=_0x33afc8['nodeBefore']&&_0x51e7b1['isLimit'](_0x33afc8['nodeBefore'])?null:_0x51e7b1['getNearestSelectionRange'](_0x33afc8,'backward'),_0x2333e1=_0x513cc7['model']['createRange'](_0x234f82?_0x234f82['start']:_0x471c3d,_0x5a6a3f?_0x5a6a3f['end']:_0x33afc8);_0x513cc7['model']['change'](_0x3d5718=>{this['markDeletion'](_0x2333e1);const _0xb2f1d5=_0x513cc7['model']['schema']['getNearestSelectionRange'](_0x2333e1['start']);_0x5604f8['is']('documentSelection')?_0x3d5718['setSelection'](_0xb2f1d5):_0x5604f8['setTo'](_0xb2f1d5);}),_0x36791f['stop']();},{'priority':_0x58c127['normal']+0xa}),_0x513cc7['model']['on']('insertContent',(_0x3e9a9e,_0x135561)=>{const _0x24c1b5=_0x135561[_0x135561['length']-0x1];_0x24c1b5&&_0x24c1b5['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x513cc7['model']['change'](()=>{let _0x26e4dd=_0x513cc7['model']['insertContent'](_0x135561[0x0],_0x135561[0x1],_0x135561[0x2],{'forceDefaultExecution':!0x0});if(!_0x26e4dd)return;_0x3e9a9e['return']=_0x26e4dd['clone']();const _0x1995a7=_0x26e4dd['end']['nodeBefore'],_0x45dd3a=_0x513cc7['model']['schema'];_0x1995a7&&_0x45dd3a['isBlock'](_0x1995a7)&&!_0x45dd3a['isObject'](_0x1995a7)&&(_0x26e4dd=_0x513cc7['model']['createRange'](_0x26e4dd['start'],_0x513cc7['model']['createPositionAt'](_0x1995a7,'end'))),this['markInsertion'](_0x26e4dd);}),_0x3e9a9e['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5c50c1=new dt(_0x513cc7,this['_suggestions']);_0x513cc7['commands']['add']('acceptSuggestion',_0x5c50c1),this['enableCommand']('acceptSuggestion');const _0x243335=new ft(_0x513cc7,this['_suggestions']);_0x513cc7['commands']['add']('discardSuggestion',_0x243335),this['enableCommand']('discardSuggestion'),_0x513cc7['commands']['add']('acceptAllSuggestions',new Lt(_0x513cc7,_0x5c50c1,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x513cc7['commands']['add']('discardAllSuggestions',new Lt(_0x513cc7,_0x243335,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x513cc7['commands']['add']('acceptSelectedSuggestions',new It(_0x513cc7,_0x5c50c1,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x513cc7['commands']['add']('discardSelectedSuggestions',new It(_0x513cc7,_0x243335,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x155ce3=_0x513cc7['plugins']['get'](_0x3c2b56);this['listenTo'](_0x155ce3,'addComment',(_0x54d670,{threadId:_0x27b43e})=>{const _0x471abe=this['_suggestions']['get'](_0x27b43e);_0x471abe&&_0x471abe['commentThread']&&0x1===_0x471abe['commentThread']['length']&&this['_updateSuggestionData'](_0x27b43e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x155ce3,'removeComment',(_0x59d638,{threadId:_0x7472e6})=>{const _0x407e42=this['_suggestions']['get'](_0x7472e6);_0x407e42&&_0x407e42['commentThread']&&!_0x407e42['commentThread']['length']&&this['_updateSuggestionData'](_0x7472e6,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x10910b){const _0x49a2b0=_0x22fed6([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]),_0x340d11=0x3d8d0df,_0x3d9aa8=0x3df559f^_0x340d11,_0x456c67=window[_0x22fed6([0x44,0x61,0x74,0x65])][_0x22fed6([0x6e,0x6f,0x77])](),_0x1ae7d7=_0x10910b[_0x22fed6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x35c5e2=new window[(_0x22fed6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x158563=>{_0x1ae7d7[_0x22fed6([0x6f,0x6e,0x63,0x65])](_0x22fed6([0x72,0x65,0x61,0x64,0x79]),_0x158563);}),_0x29c2be={[_0x22fed6([0x6b,0x74,0x79])]:_0x22fed6([0x45,0x43]),[_0x22fed6([0x75,0x73,0x65])]:_0x22fed6([0x73,0x69,0x67]),[_0x22fed6([0x63,0x72,0x76])]:_0x22fed6([0x50,0x2d,0x32,0x35,0x36]),[_0x22fed6([0x78])]:_0x22fed6([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]),[_0x22fed6([0x79])]:_0x22fed6([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]),[_0x22fed6([0x61,0x6c,0x67])]:_0x22fed6([0x45,0x53,0x32,0x35,0x36])},_0xecaf7d=_0x1ae7d7[_0x22fed6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x22fed6([0x67,0x65,0x74])](_0x22fed6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xc1b2e(){let _0x1be70,_0x333e15=null,_0x3d0b39=null;try{if(_0xecaf7d==_0x22fed6([0x47,0x50,0x4c]))return _0x22fed6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1be70=_0x533021(),!_0x1be70)return _0x22fed6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1be70[_0x22fed6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3d0b39=_0x425827(_0x1be70[_0x22fed6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1be70[_0x22fed6([0x6a,0x74,0x69])])),await _0x22cc42()?_0x51d96b()?_0x449145()?_0x22fed6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1624b5()?(_0x1be70[_0x22fed6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x22fed6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x333e15=_0x5660c9(_0x22fed6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3b565c()):_0x22fed6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x22fed6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x22fed6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x22fed6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x449145(){const _0x2b058a=[_0x22fed6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x22fed6([0x74,0x72,0x69,0x61,0x6c])][_0x22fed6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1be70[_0x22fed6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x456c67/0x3e8:0xe10*_0x3d9aa8;return _0x1be70[_0x22fed6([0x65,0x78,0x70])]<_0x2b058a;}function _0x51d96b(){const _0x2c6efa=_0x1be70[_0x22fed6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2c6efa)return!0x1;if(_0x2c6efa[_0x22fed6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22fed6([0x2a])))return!0x0;if(_0x2c6efa[_0x22fed6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22fed6([0x54,0x43])))return!0x0;if(_0x2c6efa[_0x22fed6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22fed6([0x52,0x54,0x43]))){if(_0x4b37d0())return!0x0;if(_0x578ee2()||_0x2ba196())return!0x0;}return!0x1;}function _0x1624b5(){const _0x579326=_0x1be70[_0x22fed6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x579326||0x0==_0x579326[_0x22fed6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x31389d}=new URL(window[_0x22fed6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x579326[_0x22fed6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31389d))return!0x0;const _0x4add2c=_0x31389d[_0x22fed6([0x73,0x70,0x6c,0x69,0x74])](_0x22fed6([0x2e]));return _0x579326[_0x22fed6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x6ce43=>_0x6ce43[_0x22fed6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22fed6([0x2a])))[_0x22fed6([0x6d,0x61,0x70])](_0x5605ee=>_0x5605ee[_0x22fed6([0x73,0x70,0x6c,0x69,0x74])](_0x22fed6([0x2e])))[_0x22fed6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x456fdb=>_0x456fdb[_0x22fed6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4add2c[_0x22fed6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x22fed6([0x6d,0x61,0x70])](_0x893f4=>Array(_0x4add2c[_0x22fed6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x893f4[_0x22fed6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x22fed6([0x66,0x69,0x6c,0x6c])](_0x893f4[0x0]===_0x22fed6([0x2a])?_0x22fed6([0x2a]):'')[_0x22fed6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x893f4))[_0x22fed6([0x73,0x6f,0x6d,0x65])](_0x364c97=>_0x4add2c[_0x22fed6([0x65,0x76,0x65,0x72,0x79])]((_0x1be5d8,_0x50301f)=>_0x364c97[_0x50301f]===_0x1be5d8||_0x364c97[_0x50301f]===_0x22fed6([0x2a])));}function _0x3b565c(){return _0x333e15&&_0x3d0b39?new window[(_0x22fed6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x39bbe3,_0x553558)=>{_0x333e15[_0x22fed6([0x74,0x68,0x65,0x6e])](_0x39bbe3,_0x553558),_0x3d0b39[_0x22fed6([0x74,0x68,0x65,0x6e])](_0x259e0e=>{_0x259e0e!=_0x22fed6([0x56,0x61,0x6c,0x69,0x64])&&_0x39bbe3(_0x259e0e);},_0x553558);}):_0x333e15||_0x3d0b39||_0x22fed6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x425827(_0x218ef7,_0xda4f72){return new window[(_0x22fed6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4379cb=>{if(_0x4842c6())return _0x4379cb(_0x22fed6([0x56,0x61,0x6c,0x69,0x64]));_0x21809a(),_0x1ae7d7[_0x22fed6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x22fed6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x253ac2=!0x1;const _0x2b7e97=_0x493bce();function _0x16e3b5(_0x1b7763){return!!_0x1b7763&&(typeof _0x1b7763===_0x22fed6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1b7763===_0x22fed6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1b7763[_0x22fed6([0x74,0x68,0x65,0x6e])]===_0x22fed6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1b7763[_0x22fed6([0x63,0x61,0x74,0x63,0x68])]===_0x22fed6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x15fa49(_0xcf1b9b){_0x30e3c2(_0xcf1b9b)[_0x22fed6([0x74,0x68,0x65,0x6e])](_0x5c9bf8=>{if(!_0x5c9bf8||_0x5c9bf8[_0x22fed6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x22fed6([0x6f,0x6b]))return _0x22fed6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x27e8b9(_0x1b15a0(_0x2b7e97+_0xda4f72))!=_0x5c9bf8[_0x22fed6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x22fed6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x22fed6([0x56,0x61,0x6c,0x69,0x64]);})[_0x22fed6([0x74,0x68,0x65,0x6e])](_0x508bb5=>(_0x40195b(),_0x508bb5),()=>{const _0x548801=_0x1df06d();return null==_0x548801?(_0x40195b(),_0x22fed6([0x56,0x61,0x6c,0x69,0x64])):_0x22fed6(_0x456c67-_0x548801>(0x27d454df^_0x340d11)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x22fed6([0x74,0x68,0x65,0x6e])](_0x4379cb)[_0x22fed6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4379cb(_0x22fed6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x18d5bc=0x3ee3e5f^_0x340d11;function _0x40195b(){const _0x8455fd=_0x22fed6([0x6c,0x6c,0x63,0x74,0x2d])+_0x27e8b9(_0x1b15a0(_0x218ef7)),_0x4fcea6=_0x3d62d5(_0x27e8b9(window[_0x22fed6([0x4d,0x61,0x74,0x68])][_0x22fed6([0x63,0x65,0x69,0x6c])](_0x456c67/_0x18d5bc)));window[_0x22fed6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22fed6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8455fd,_0x4fcea6);}function _0x1df06d(){const _0x1a92eb=_0x22fed6([0x6c,0x6c,0x63,0x74,0x2d])+_0x27e8b9(_0x1b15a0(_0x218ef7)),_0x41d112=window[_0x22fed6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22fed6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a92eb);return _0x41d112?window[_0x22fed6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d62d5(_0x41d112),0x10)*_0x18d5bc:null;}function _0x30e3c2(_0x4f7677){return new window[(_0x22fed6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4cb332,_0x2419e4)=>{_0x4f7677[_0x22fed6([0x74,0x68,0x65,0x6e])](_0x4cb332,_0x2419e4),window[_0x22fed6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2419e4,0x3d9041f^_0x340d11);});}}_0x1ae7d7[_0x22fed6([0x6f,0x6e])](_0x22fed6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2c4a58,_0x53f4c5)=>{if(_0x53f4c5[0x0]!=_0x218ef7)return _0x4379cb(_0x22fed6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x53f4c5[0x1]={..._0x53f4c5[0x1],[_0x22fed6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2b7e97};},{[_0x22fed6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22fed6([0x68,0x69,0x67,0x68])}),_0x1ae7d7[_0x22fed6([0x6f,0x6e])](_0x22fed6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2362f3=>{_0x16e3b5(_0x2362f3[_0x22fed6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x253ac2=!0x0,_0x15fa49(_0x2362f3[_0x22fed6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x22fed6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22fed6([0x6c,0x6f,0x77])}),_0x35c5e2[_0x22fed6([0x74,0x68,0x65,0x6e])](()=>{_0x253ac2||_0x4379cb(_0x22fed6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4842c6(){return _0x1ae7d7[_0x22fed6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22fed6([0x76,0x69,0x65,0x77])][_0x22fed6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x22fed6([0x61,0x75,0x74,0x6f]);}function _0x21809a(){_0x1ae7d7[_0x22fed6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22fed6([0x76,0x69,0x65,0x77])][_0x22fed6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x22fed6([0x61,0x75,0x74,0x6f]);}}function _0x5660c9(_0x1f3dc3){const _0x2c664f=[new window[(_0x22fed6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a08e9=>setTimeout(_0x1a08e9,0x3d1ee13^_0x340d11)),_0x35c5e2[_0x22fed6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x22fed6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f7d49=>{let _0x342814=0x0;_0x1ae7d7[_0x22fed6([0x6d,0x6f,0x64,0x65,0x6c])][_0x22fed6([0x6f,0x6e])](_0x22fed6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x30fa2f,_0xbaed05)=>{_0xbaed05[0x0][_0x22fed6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x342814++,_0x342814==(0x3d8d537^_0x340d11)&&(_0x3f7d49(),_0x30fa2f[_0x22fed6([0x6f,0x66,0x66])]());});}))];return window[_0x22fed6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x22fed6([0x72,0x61,0x63,0x65])](_0x2c664f)[_0x22fed6([0x74,0x68,0x65,0x6e])](()=>_0x1f3dc3);}async function _0x3b90d2(){await _0x35c5e2,_0x1ae7d7[_0x22fed6([0x6d,0x6f,0x64,0x65,0x6c])][_0x22fed6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x369ad0,_0x1ae7d7[_0x22fed6([0x6d,0x6f,0x64,0x65,0x6c])][_0x22fed6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x369ad0,_0x1ae7d7[_0x22fed6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x22fed6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4b37d0(){return _0x228dfd(_0x22fed6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5f2c3e(_0x22fed6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x22fed6([0x73,0x74,0x61,0x74,0x65])]==_0x22fed6([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x578ee2(){return _0x228dfd(_0x22fed6([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 _0x2ba196(){return _0x228dfd(_0x22fed6([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x46fef5(_0x28f2d3){const _0x4ec3f7=_0x17e9f1();_0x1ae7d7[_0x4ec3f7]=_0x22fed6([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x28f2d3,_0x28f2d3!=_0x22fed6([0x56,0x61,0x6c,0x69,0x64])&&_0x3b90d2();}function _0x17e9f1(){const _0x1af3cf=window[_0x22fed6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x22fed6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x22fed6([0x6e,0x6f,0x77])]())[_0x22fed6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x22fed6([0x2e]),'');let _0x266ed8=_0x22fed6([0x52]);for(let _0x186da0=0x0;_0x186da0<_0x1af3cf[_0x22fed6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x186da0+=0x2){let _0x4e959d=window[_0x22fed6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1af3cf[_0x22fed6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x186da0,_0x186da0+0x2));_0x4e959d>=_0x49a2b0[_0x22fed6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4e959d-=_0x49a2b0[_0x22fed6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x266ed8+=_0x49a2b0[_0x4e959d];}return _0x266ed8;}function _0x533021(){const _0x247ea2=_0xecaf7d[_0x22fed6([0x73,0x70,0x6c,0x69,0x74])](_0x22fed6([0x2e]));if(0x3!=_0x247ea2[_0x22fed6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x62c70d(_0x247ea2[0x1]);function _0x62c70d(_0x4be8e8){const _0x3a36a0=_0x1abb44(_0x4be8e8);return _0x3a36a0&&_0x3d9230()?_0x3a36a0:null;function _0x3d9230(){const _0x5e3f80=_0x3a36a0[_0x22fed6([0x6a,0x74,0x69])],_0x509ae7=window[_0x22fed6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e3f80[_0x22fed6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e3f80[_0x22fed6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x6814c3={..._0x3a36a0,[_0x22fed6([0x6a,0x74,0x69])]:_0x5e3f80[_0x22fed6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5e3f80[_0x22fed6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x6814c3[_0x22fed6([0x76,0x63])],_0x1b15a0(_0x6814c3)==_0x509ae7;}}}async function _0x22cc42(){let _0x180ffb=!0x0;try{const _0x602978=_0xecaf7d[_0x22fed6([0x73,0x70,0x6c,0x69,0x74])](_0x22fed6([0x2e])),[_0x46aa63,_0x5303f8,_0x13342f]=_0x602978;return _0x175901(_0x46aa63),await _0x445501(_0x46aa63,_0x5303f8,_0x13342f),_0x180ffb;}catch{return!0x1;}function _0x175901(_0x58f725){const _0x11f7c0=_0x1abb44(_0x58f725);_0x11f7c0&&_0x11f7c0[_0x22fed6([0x61,0x6c,0x67])]==_0x22fed6([0x45,0x53,0x32,0x35,0x36])||(_0x180ffb=!0x1);}async function _0x445501(_0x47679b,_0x1a8a6a,_0x1fc295){const _0x4d220e=window[_0x22fed6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x22fed6([0x66,0x72,0x6f,0x6d])](_0x3738f2(_0x1fc295),_0x5a8d4f=>_0x5a8d4f[_0x22fed6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2eac94=new window[(_0x22fed6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x22fed6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x47679b+_0x22fed6([0x2e])+_0x1a8a6a),_0x43578b=window[_0x22fed6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x22fed6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x43578b)return;const _0x26c357=await _0x43578b[_0x22fed6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x22fed6([0x6a,0x77,0x6b]),_0x29c2be,{[_0x22fed6([0x6e,0x61,0x6d,0x65])]:_0x22fed6([0x45,0x43,0x44,0x53,0x41]),[_0x22fed6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x22fed6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x22fed6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x43578b[_0x22fed6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x22fed6([0x6e,0x61,0x6d,0x65])]:_0x22fed6([0x45,0x43,0x44,0x53,0x41]),[_0x22fed6([0x68,0x61,0x73,0x68])]:{[_0x22fed6([0x6e,0x61,0x6d,0x65])]:_0x22fed6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x26c357,_0x4d220e,_0x2eac94)||(_0x180ffb=!0x1);}}function _0x1abb44(_0x45b9be){return _0x45b9be[_0x22fed6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x22fed6([0x65,0x79]))?JSON[_0x22fed6([0x70,0x61,0x72,0x73,0x65])](_0x3738f2(_0x45b9be)):null;}function _0x3738f2(_0x47c210){return window[_0x22fed6([0x61,0x74,0x6f,0x62])](_0x47c210[_0x22fed6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x22fed6([0x2b]))[_0x22fed6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x22fed6([0x2f])));}function _0x1b15a0(_0x37ae3d){let _0x21db48=0x1505;function _0x783d7f(_0x7125ae){for(let _0x3dbe4e=0x0;_0x3dbe4e<_0x7125ae[_0x22fed6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3dbe4e++){const _0x476547=_0x7125ae[_0x22fed6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3dbe4e);_0x21db48=(_0x21db48<<0x5)+_0x21db48+_0x476547,_0x21db48&=_0x21db48;}}function _0x2dc6a4(_0x5f2cc8){Array[_0x22fed6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5f2cc8)?_0x5f2cc8[_0x22fed6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2dc6a4):_0x5f2cc8&&typeof _0x5f2cc8==_0x22fed6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x22fed6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5f2cc8)[_0x22fed6([0x73,0x6f,0x72,0x74])]()[_0x22fed6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3e5e8d,_0x27e2e8])=>{_0x783d7f(_0x3e5e8d),_0x2dc6a4(_0x27e2e8);}):_0x783d7f(window[_0x22fed6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5f2cc8));}return _0x2dc6a4(_0x37ae3d),_0x21db48>>>0x0;}function _0x27e8b9(_0x417228){return _0x417228[_0x22fed6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x22fed6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x22fed6([0x30]));}function _0x3d62d5(_0x4aeeca){return _0x4aeeca[_0x22fed6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x22fed6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x22fed6([0x6a,0x6f,0x69,0x6e])]('');}function _0x228dfd(_0x1340c3){return _0x1ae7d7[_0x22fed6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x22fed6([0x68,0x61,0x73])](_0x1340c3);}function _0x5f2c3e(_0x2db1d8){return _0x1ae7d7[_0x22fed6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x22fed6([0x67,0x65,0x74])](_0x2db1d8);}function _0x369ad0(){}function _0x22fed6(_0x5a7870){return _0x5a7870['map'](_0xc09b18=>String['fromCharCode'](_0xc09b18))['join']('');}_0x46fef5(await _0xc1b2e());}(this);}set['adapter'](_0x20d3b9){if(this['_adapter'])throw new _0x160e83('track-changes-adapter-already-set',this);this['_adapter']=_0x20d3b9;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1907f1=!0x1,toJSON:_0x4d00a8=!0x1}={}){const _0xb71e95=[];for(const _0x32c33f of this['_suggestions']['values']())_0x1907f1&&!_0x32c33f['isInContent']||_0xb71e95['push'](_0x32c33f);return _0x4d00a8?_0xb71e95['map'](_0x585525=>_0x585525['toJSON']()):_0xb71e95;}['getSuggestion'](_0x5ce77e){const _0x555ce3=this['_suggestions']['get'](_0x5ce77e);if(!_0x555ce3)throw new _0x160e83('track-changes-suggestion-not-found',this);return _0x555ce3;}['hasSuggestion'](_0x5a47b4){return this['_suggestions']['has'](_0x5a47b4);}['addSuggestionData'](_0x564f14){const {authorId:_0x447aba,id:_0x1b992e,originalSuggestionId:_0x45e9b5,attributes:_0x47ec19}=_0x564f14,[_0x16076c,_0x2468eb]=_0x564f14['type']['split'](':'),_0x384c88=this['_suggestions']['get'](_0x1b992e)||this['_createSuggestion'](_0x16076c,_0x2468eb,_0x1b992e,_0x447aba,_0x47ec19,_0x45e9b5);if(this['_addThreadToSuggestion'](_0x384c88),this['_checkSuggestionCorrectness'](_0x384c88,_0x16076c,_0x2468eb||null,_0x447aba),_0x384c88['createdAt']=_0x564f14['createdAt'],_0x384c88['_isDataLoaded']=!0x0,_0x47ec19&&_0x47ec19['@external']){const _0x3ac6dc=_0x47ec19['@external'],_0x22a151=this['_getExternalAuthor'](_0x3ac6dc['authorName']);_0x384c88['authoredAt']=_0x3ac6dc['createdAt'],_0x384c88['author']=_0x22a151,_0x384c88['isExternal']=!0x0;}else _0x384c88['authoredAt']=_0x564f14['createdAt'];switch(_0x564f14['data']&&(_0x384c88['data']=_0x564f14['data']),_0x564f14['attributes']&&(_0x384c88['attributes']=_0x564f14['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x384c88['_saved']=!0x0),this['_suggestionState']['get'](_0x384c88)){case'notReady':this['_suggestionState']['set'](_0x384c88,'dataReady');break;case'markerReady':_0x384c88['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x384c88])),this['_refreshSuggestionsChain'](new Set([_0x384c88])),this['_suggestionState']['set'](_0x384c88,'ready'),this['fire']('suggestionLoaded',_0x384c88)):this['_suggestionState']['set'](_0x384c88,'removed');}return _0x384c88;}['acceptSuggestion'](_0x1c34bf){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x51b52e of _0x1c34bf['getAllAdjacentSuggestions']())_0x51b52e['accept']();});});}['discardSuggestion'](_0x466900){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x415a66 of _0x466900['getAllAdjacentSuggestions']())_0x415a66['discard']();});});}['enableCommand'](_0x4a6d2d,_0x4bdfcb){const _0x71bf15=this['editor']['commands']['get'](_0x4a6d2d);if(!_0x71bf15)throw new _0x160e83('track-changes-command-not-found',this,{'commandName':_0x4a6d2d});if(this['_enabledCommands']['has'](_0x71bf15))throw new _0x160e83('track-changes-enable-command-twice',this,{'commandName':_0x4a6d2d});this['_enabledCommands']['add'](_0x71bf15),_0x4bdfcb&&_0x71bf15['on']('execute',(_0x4f5968,_0x267389)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x267389['length']>0x0&&_0x267389[_0x267389['length']-0x1]&&_0x267389[_0x267389['length']-0x1]['forceDefaultExecution']?_0x267389['pop']():(_0x4f5968['return']=_0x4bdfcb((..._0x2b80b0)=>_0x71bf15['execute'](..._0x2b80b0,{'forceDefaultExecution':!0x0}),..._0x267389),_0x4f5968['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xf68533){let _0x173630,_0x29fdad;const _0x22b59c=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x173630=_0xf68533();}catch(_0x3f9485){_0x29fdad=_0x3f9485;}return _0x22b59c||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x29fdad&&_0x160e83['rethrowUnexpectedError'](_0x29fdad,this),_0x173630;}['markInsertion'](_0x361481,_0x17202d=null,_0x4e5201={}){if(_0x361481['isCollapsed'])return null;const _0x2ed73a=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x4e5201['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1ff1f1,meta:_0x4dbe08}of this['_findSuggestions'](_0x361481,'insertion'))if(_0x4dbe08['isOwn']){if(!_0x4dbe08['isNextTo']){if(_0x4dbe08['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!cn(_0x1ff1f1,_0x4e5201))continue;return _0x1ff1f1;}if(cn(_0x1ff1f1,_0x4e5201))return _0x1ff1f1;this['_breakSuggestionMarker'](_0x1ff1f1,_0x361481['start'],_0x361481['end']);break;}if(_0x17202d==_0x1ff1f1['subType']&&cn(_0x1ff1f1,_0x4e5201)){const _0x5b159e=_0x1ff1f1['getFirstRange']();return _0x5b159e['start']['isEqual'](_0x361481['end'])?this['_setSuggestionRange'](_0x1ff1f1,this['_model']['createRange'](_0x361481['start'],_0x5b159e['end'])):this['_setSuggestionRange'](_0x1ff1f1,this['_model']['createRange'](_0x5b159e['start'],_0x361481['end'])),_0x1ff1f1;}}const _0x25a392=_0x493bce(),_0x16bce5=_0x2ed73a['id'],_0x40c011=_0x17202d?'insertion:'+_0x17202d:'insertion',_0x22d49d=this['_setSuggestionData']({'id':_0x25a392,'type':_0x40c011,'createdAt':new Date(),'authorId':_0x16bce5,'attributes':_0x4e5201});return this['_addSuggestionMarker'](_0x40c011,_0x25a392,_0x16bce5,_0x361481),_0x22d49d;}['markMultiRangeInsertion'](_0x3523f6,_0x182fe5='multi',_0x3819be={}){const _0x1c09b2=this['editor']['plugins']['get']('Users')['me'],_0x427c7b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x182fe5,'join');this['_trackingSessionId']&&(_0x3819be['trackingSessionId']=this['_trackingSessionId']);for(const _0x3e1351 of this['getSuggestions']())if(_0x3e1351['author']['id']==_0x1c09b2['id']&&'insertion'==_0x3e1351['type']&&_0x3e1351['subType']==_0x182fe5&&cn(_0x3e1351,_0x3819be)&&(_0x427c7b(_0x3e1351['getRanges'](),_0x3523f6)||_0x427c7b(_0x3523f6,_0x3e1351['getRanges']()))){for(const _0x1b55d6 of _0x3523f6)_0x3e1351['addRange'](_0x1b55d6);return _0x3e1351;}for(const {suggestion:_0x2c32dd,meta:_0x1b401f}of this['_findSuggestions'](_0x3523f6,'insertion')){if(!_0x1b401f['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1b401f['containsRangeInObject'])continue;if(!cn(_0x2c32dd,_0x3819be))continue;let _0x3f152f=!0x0;for(const _0x114e4b of _0x2c32dd['getRanges']())for(const _0x342955 of _0x3523f6)if(!_0x114e4b['containsRange'](_0x342955)){_0x3f152f=!0x1;break;}if(_0x3f152f)return _0x2c32dd;}const _0x542349=_0x493bce(),_0x1b3371=_0x1c09b2['id'],_0x50bad0='insertion:'+_0x182fe5,_0x4b6f92=this['_setSuggestionData']({'id':_0x542349,'type':_0x50bad0,'createdAt':new Date(),'authorId':_0x1b3371,'attributes':_0x3819be});for(const _0x2444c2 of _0x3523f6)this['_addSuggestionMarker'](_0x50bad0,_0x542349,_0x1b3371,_0x2444c2,bt['getMultiRangeId']());return _0x4b6f92;}['markInlineFormat'](_0x9fa553,_0x1fd64e,_0x3a8766=null,_0x39e504={}){if(_0x3a8766=_0x3a8766||Je(_0x1fd64e),_0x9fa553['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x39e504['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x310a1d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3a8766,'accept');return this['forceDefaultExecution'](()=>_0x310a1d([_0x9fa553],_0x1fd64e,_0x39e504)),null;}const _0x52c554=this['editor']['plugins']['get']('Users')['me'],_0x1a743c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x38d4f0,meta:_0x46b08f}of this['_findSuggestions'](_0x9fa553,'insertion'))_0x46b08f['isOwn']&&!_0x46b08f['isInsideObject']&&_0x1a743c['push'](..._0x38d4f0['getRanges']());}const _0x211ab8=function(_0xb0a325,_0x367ae3){const _0x3585fd=[];for(const _0x51653a of _0x367ae3){const _0x483d1a=_0xb0a325['getIntersection'](_0x51653a);_0x483d1a&&_0x3585fd['push'](_0x483d1a);}return _0x3585fd;}(_0x9fa553,_0x1a743c),_0xb1ef0a=function(_0x5dc1b6,_0x1112c4){const _0x2ff899=[_0x5dc1b6];for(const _0x4040ad of _0x1112c4){let _0x448043=0x0;for(;_0x448043<_0x2ff899['length'];){const _0x537a9d=_0x2ff899[_0x448043]['getDifference'](_0x4040ad);_0x2ff899['splice'](_0x448043,0x1,..._0x537a9d),_0x448043+=_0x537a9d['length'];}}return _0x2ff899;}(_0x9fa553,_0x1a743c);_0x211ab8['length']&&this['_model']['change'](()=>{for(const _0x423c3b of _0x211ab8){const _0xf3f4db=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3a8766,'accept');this['forceDefaultExecution'](()=>_0xf3f4db([_0x423c3b],_0x1fd64e,_0x39e504));}});for(const _0x4c3b6f of _0xb1ef0a){let _0x56a98a=null,_0x3e36ef=_0x4c3b6f['start'],_0x5f920e=_0x4c3b6f['end'];for(const {suggestion:_0x5f213e,meta:_0x5935ac}of this['_findSuggestions'](_0x4c3b6f,'formatInline')){if(!_0x5935ac['isOwn'])continue;if(_0x5f213e['subType']!=_0x3a8766)continue;if(!cn(_0x5f213e,_0x39e504))continue;const _0x3b962c=_0x5f213e['getFirstRange']();if(_0x3b962c['containsRange'](_0x4c3b6f,!0x0))return null;_0x3e36ef=_0x3e36ef['isBefore'](_0x3b962c['start'])?_0x3e36ef:_0x3b962c['start'],_0x5f920e=_0x5f920e['isAfter'](_0x3b962c['end'])?_0x5f920e:_0x3b962c['end'],_0x56a98a?_0x3b962c['start']['isBefore'](_0x56a98a['getFirstRange']()['start'])?(_0x56a98a['removeMarkers'](),_0x56a98a=_0x5f213e):_0x5f213e['removeMarkers']():_0x56a98a=_0x5f213e;}const _0x3bd8f9=this['_model']['createRange'](_0x3e36ef,_0x5f920e);if(_0x56a98a)this['_setSuggestionRange'](_0x56a98a,_0x3bd8f9);else{const _0x24f8d4=_0x493bce(),_0x10fbee=_0x52c554['id'];this['_setSuggestionData']({'id':_0x24f8d4,'type':'formatInline:'+_0x3a8766,'data':_0x1fd64e,'createdAt':new Date(),'authorId':_0x10fbee,'attributes':_0x39e504}),this['_addSuggestionMarker']('formatInline:'+_0x3a8766,_0x24f8d4,_0x10fbee,_0x3bd8f9);}}return null;}['markBlockFormat'](_0x23bc4b,_0xd89c17,_0x2a05ee=[],_0xa9d2fb=null,_0x56873c={}){_0xd89c17['formatGroupId']||(_0xd89c17['formatGroupId']=_0xd89c17['commandName']),_0xd89c17['multipleBlocks']=_0x23bc4b['is']('range'),_0xa9d2fb=_0xa9d2fb||Je(_0xd89c17);const _0x49ba44=_0x2a05ee['map'](_0x2096e1=>rn(_0x2096e1,this['_model'])),_0x48f13c=_0x23bc4b['is']('range')?_0x23bc4b:rn(_0x23bc4b,this['_model']);if(this['_trackingSessionId']&&(_0x56873c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5bc60c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xa9d2fb,'accept');return this['forceDefaultExecution'](()=>_0x5bc60c([_0x48f13c],_0xd89c17,_0x56873c)),null;}_0x49ba44['push'](_0x48f13c);let _0x926831=!0x0;for(const _0xcd73bb of _0x49ba44)if(!this['_rangeIsInLocalUserInsertion'](_0xcd73bb)){_0x926831=!0x1;break;}if(_0x926831&&'always'!==this['_trackFormatChanges']){const _0x2ed7e0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xa9d2fb,'accept');return this['forceDefaultExecution'](()=>_0x2ed7e0([_0x48f13c],_0xd89c17,_0x56873c)),null;}let _0x569681=null,_0x268518=_0x48f13c['start'],_0x59d51e=_0x48f13c['end'];for(const {suggestion:_0x2ea45e,meta:_0xa8bd77}of this['_findSuggestions'](_0x48f13c,'formatBlock')){if(!_0xa8bd77['isOwn'])continue;if(_0xa8bd77['isNextTo']||_0xa8bd77['containsRangeInObject']||_0xa8bd77['isInsideObject'])continue;if(_0x2ea45e['data']['formatGroupId']!=_0xd89c17['formatGroupId'])continue;if(!cn(_0x2ea45e,_0x56873c))continue;const _0x583879=_0x2ea45e['getFirstRange']();if(_0x2ea45e['subType']==_0xa9d2fb){if(_0x583879['containsRange'](_0x48f13c,!0x0))return null;_0x268518=_0x268518['isBefore'](_0x583879['start'])?_0x268518:_0x583879['start'],_0x59d51e=_0x59d51e['isAfter'](_0x583879['end'])?_0x59d51e:_0x583879['end'],_0x569681?_0x583879['start']['isBefore'](_0x569681['getFirstRange']()['start'])?(_0x569681['removeMarkers'](),_0x569681=_0x2ea45e):_0x2ea45e['removeMarkers']():_0x569681=_0x2ea45e;}else{const _0x5ccc5b=_0x48f13c['getIntersection'](_0x583879);this['_cutOutSuggestionMarker'](_0x2ea45e,_0x5ccc5b);}}const _0x15434a=this['editor']['plugins']['get']('Users')['me'],_0x15a569=_0x493bce(),_0x3fda94=_0x15434a['id'];if(_0x569681)return this['_setSuggestionRange'](_0x569681,this['_model']['createRange'](_0x268518,_0x59d51e)),_0x569681;{const _0x473e32=this['_setSuggestionData']({'id':_0x15a569,'type':'formatBlock:'+_0xa9d2fb,'data':_0xd89c17,'createdAt':new Date(),'authorId':_0x3fda94,'attributes':_0x56873c});return this['_addSuggestionMarker']('formatBlock:'+_0xa9d2fb,_0x15a569,_0x3fda94,this['_model']['createRange'](_0x268518,_0x59d51e)),_0x473e32;}}['markMultiRangeBlockFormat'](_0xd7baab,_0x289e59,_0x2bd32b=[],_0x541456=null,_0x38c2e7={}){_0x289e59['formatGroupId']||(_0x289e59['formatGroupId']=_0x289e59['commandName']);const _0x4dda47=_0xd7baab[0x0];_0x289e59['multipleBlocks']=_0x4dda47['is']('range'),_0x541456=_0x541456||Je(_0x289e59);const _0x131304=_0x2bd32b['map'](_0x47464f=>rn(_0x47464f,this['_model'])),_0x4cae64=_0x4dda47['is']('range')?_0xd7baab:_0xd7baab['map'](_0x42a4e3=>rn(_0x42a4e3,this['_model']));if(this['_trackingSessionId']&&(_0x38c2e7['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x580eb4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x541456,'accept');return this['forceDefaultExecution'](()=>_0x580eb4(_0x4cae64,_0x289e59,_0x38c2e7)),null;}_0x131304['push'](..._0x4cae64);let _0x4366e4=!0x0;for(const _0x40f7c3 of _0x131304)if(!this['_rangeIsInLocalUserInsertion'](_0x40f7c3)){_0x4366e4=!0x1;break;}if(_0x4366e4&&'always'!==this['_trackFormatChanges']){const _0x2b7658=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x541456,'accept');return this['forceDefaultExecution'](()=>_0x2b7658(_0x4cae64,_0x289e59,_0x38c2e7)),null;}const _0x4aff61=this['editor']['plugins']['get']('Users')['me'];for(const _0x221610 of this['getSuggestions']()){const _0xfcde1e=_0x221610['data'];if(_0x221610['author']['id']!=_0x4aff61['id'])continue;if('formatBlock'!=_0x221610['type']||_0xfcde1e['formatGroupId']!=_0x289e59['formatGroupId'])continue;if(!cn(_0x221610,_0x38c2e7))continue;const _0x1fb9a9=_0x221610['subType']==_0x541456;for(let _0xc60fc0=0x0;_0xc60fc0<_0x4cae64['length'];_0xc60fc0++){const _0x5e05a0=_0x4cae64[_0xc60fc0];for(const _0x1609a8 of _0x221610['getMarkers']()){const _0x4a6cf2=_0x1609a8['getRange']();if(_0x5e05a0['isEqual'](_0x4a6cf2)){_0x1fb9a9?(_0x4cae64['splice'](_0xc60fc0,0x1),_0xc60fc0--):_0x221610['removeMarker'](_0x1609a8['name']);break;}}}}if(0x0==_0x4cae64['length'])return null;const _0x2bd7ed=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x541456,'join');for(const _0x4d6ecd of this['getSuggestions']()){const _0x46b4ff=_0x4d6ecd['data'];if(_0x4d6ecd['author']['id']==_0x4aff61['id']&&('formatBlock'==_0x4d6ecd['type']&&_0x46b4ff['formatGroupId']==_0x289e59['formatGroupId']&&_0x4d6ecd['subType']==_0x541456&&cn(_0x4d6ecd,_0x38c2e7)&&(_0x2bd7ed(_0x4d6ecd['getRanges'](),_0x4cae64)||_0x2bd7ed(_0x4cae64,_0x4d6ecd['getRanges']())))){for(const _0x3452b9 of _0x4cae64)_0x4d6ecd['addRange'](_0x3452b9);return _0x4d6ecd;}}const _0x7410ff=_0x493bce(),_0x398c59=_0x4aff61['id'],_0x790995='formatBlock:'+_0x541456,_0x128bc1=this['_setSuggestionData']({'id':_0x7410ff,'type':_0x790995,'data':_0x289e59,'createdAt':new Date(),'authorId':_0x398c59,'attributes':_0x38c2e7});for(const _0x1d09b8 of _0x4cae64)this['_addSuggestionMarker'](_0x790995,_0x7410ff,_0x398c59,_0x1d09b8,bt['getMultiRangeId']());return _0x128bc1;}['markDeletion'](_0x39a2c5,_0x23d16d=null,_0x18d161={}){if(_0x39a2c5['isCollapsed'])return null;const _0x3edb5c=this['editor']['plugins']['get']('Users')['me'],_0x53c731=new _0x3e26ed(_0x39a2c5['start'],_0x39a2c5['end']);this['_trackingSessionId']&&(_0x18d161['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x560f9c,meta:_0x339479}of this['_findSuggestions'](_0x53c731,'insertion'))if(_0x339479['isOwn']&&!_0x339479['isNextTo']){if(_0x560f9c['isMultiRange']){const _0x3cde81=_0x560f9c['getRanges']()['filter'](_0x5188cd=>'$graveyard'!=_0x5188cd['root']['rootName']);_0x3cde81['every'](_0xcab28b=>_0x53c731['containsRange'](_0xcab28b,!0x0))&&_0x560f9c['discard']();if(_0x3cde81['some'](_0x2f5fa4=>_0x2f5fa4['containsRange'](_0x53c731,!0x0))){const _0x24c50b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x23d16d,'accept');return this['forceDefaultExecution'](()=>_0x24c50b([_0x53c731],null,_0x18d161)),null;}}else{const _0x49a44b=_0x53c731['getIntersection'](_0x560f9c['getFirstRange']());null!==_0x49a44b&&_0x560f9c['_onDiscard']([_0x49a44b],null,_0x18d161);}}if(_0x53c731['detach'](),_0x53c731['isCollapsed']||'$graveyard'==_0x53c731['root']['rootName'])return null;let _0x393f29=null,_0x5a6ccc=_0x53c731['start'],_0x326abd=_0x53c731['end'];const _0x4e4154=this['_findSuggestions'](_0x53c731,'deletion');for(const {suggestion:_0x20efb0,meta:_0x43a1f8}of _0x4e4154){const _0x423cb4=this['_model']['createRange'](_0x5a6ccc,_0x326abd);if(_0x43a1f8['isOwn']&&(this['_mergeNestedSuggestions']||!_0x43a1f8['containsRangeInObject']&&!_0x43a1f8['isInsideObject'])){if(_0x20efb0['isMultiRange']){if(!cn(_0x20efb0,_0x18d161))continue;let _0x288157=!0x0;for(const _0x2825b9 of _0x20efb0['getRanges']()){if(_0x2825b9['containsRange'](_0x423cb4,!0x0))return _0x20efb0;_0x423cb4['containsRange'](_0x2825b9)||(_0x288157=!0x1);}_0x288157&&_0x20efb0['discard']();}else{const _0x382911=_0x20efb0['getFirstRange']();if(_0x382911['containsRange'](_0x423cb4,!0x0))return _0x20efb0;if(!cn(_0x20efb0,_0x18d161)){_0x423cb4['containsRange'](_0x382911)?_0x20efb0['removeMarkers']():_0x382911['containsPosition'](_0x5a6ccc)?_0x5a6ccc=_0x382911['end']:_0x382911['containsPosition'](_0x326abd)&&(_0x326abd=_0x382911['start']);continue;}_0x5a6ccc=_0x5a6ccc['isBefore'](_0x382911['start'])?_0x5a6ccc:_0x382911['start'],_0x326abd=_0x326abd['isAfter'](_0x382911['end'])?_0x326abd:_0x382911['end'],_0x18d161=Object['assign']({},_0x20efb0['attributes']),_0x393f29?_0x382911['start']['isBefore'](_0x393f29['getFirstRange']()['start'])?(_0x393f29['removeMarkers'](),_0x393f29=_0x20efb0):_0x20efb0['removeMarkers']():_0x393f29=_0x20efb0;}}}if(_0x393f29)return this['_setSuggestionRange'](_0x393f29,this['_model']['createRange'](_0x5a6ccc,_0x326abd)),_0x393f29;{const _0x466253=_0x493bce(),_0x187636=this['_model']['createRange'](_0x5a6ccc,_0x326abd),_0x5dca5b=_0x3edb5c['id'],_0xdb2118=_0x23d16d?'deletion:'+_0x23d16d:'deletion',_0x2a7cb6=this['_setSuggestionData']({'id':_0x466253,'type':_0xdb2118,'createdAt':new Date(),'authorId':_0x5dca5b,'attributes':_0x18d161});return this['_addSuggestionMarker'](_0xdb2118,_0x466253,_0x5dca5b,_0x187636),_0x2a7cb6;}}['markMultiRangeDeletion'](_0x446ff0,_0x46485e='multi',_0x45c609={}){const _0x289488=this['editor']['plugins']['get']('Users')['me'],_0x2d6f28=_0x446ff0['map'](_0x6b6e0d=>new _0x3e26ed(_0x6b6e0d['start'],_0x6b6e0d['end'])),_0x570d50=new Set();this['_trackingSessionId']&&(_0x45c609['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x10ec65,meta:_0x1b3291}of this['_findSuggestions'](_0x2d6f28,'insertion'))_0x1b3291['isOwn']&&!_0x1b3291['isNextTo']&&_0x570d50['add'](_0x10ec65);for(const _0x15e761 of _0x570d50)if(_0x15e761['isMultiRange']){const _0x15de4e=_0x15e761['getRanges']();(!_0x15e761['attributes']||!_0x15e761['attributes']['skipNestingCheck'])&&(_0x15de4e['every'](_0x58a1c4=>_0x2d6f28['some'](_0x3b6a10=>_0x3b6a10['containsRange'](_0x58a1c4,!0x0)))&&_0x15e761['discard']());if(_0x2d6f28['every'](_0x5820cf=>_0x15de4e['some'](_0x136808=>_0x136808['containsRange'](_0x5820cf,!0x0)))){const _0x11284c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46485e,'accept');return this['forceDefaultExecution'](()=>_0x11284c(_0x446ff0,null,_0x45c609)),null;}}else{const _0xbc9b97=_0x15e761['getFirstRange']();_0x2d6f28['some'](_0x3a9031=>_0x3a9031['containsRange'](_0xbc9b97,!0x0))&&_0x15e761['discard']();if(_0x2d6f28['every'](_0x29319e=>_0xbc9b97['containsRange'](_0x29319e,!0x0))){const _0x29d09f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46485e,'accept');return this['forceDefaultExecution'](()=>_0x29d09f(_0x2d6f28,null,_0x45c609)),null;}}const _0x19bf6b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46485e,'join');let _0x51148b=null;for(const _0x2f6e59 of this['getSuggestions']())if(_0x2f6e59['author']['id']==_0x289488['id']&&_0x2f6e59['isInContent']&&'deletion'==_0x2f6e59['type']&&_0x2f6e59['subType']==_0x46485e&&cn(_0x2f6e59,_0x45c609)&&(_0x19bf6b(_0x2f6e59['getRanges'](),_0x2d6f28)||_0x19bf6b(_0x2d6f28,_0x2f6e59['getRanges']()))){if(_0x51148b){if(_0x2f6e59['commentThread']&&_0x2f6e59['commentThread']['length'])continue;for(const _0x36dc4b of _0x2f6e59['getRanges']())_0x51148b['isIntersectingWithRange'](_0x36dc4b)||_0x51148b['addRange'](_0x36dc4b);_0x2f6e59['removeMarkers']();}else{_0x51148b=_0x2f6e59;for(const _0x1e4a7c of _0x2d6f28)_0x2f6e59['isIntersectingWithRange'](_0x1e4a7c)||_0x2f6e59['addRange'](_0x1e4a7c);}}if(_0x51148b)return _0x51148b;_0x570d50['clear']();for(const {suggestion:_0x194455,meta:_0x253455}of this['_findSuggestions'](_0x2d6f28,'deletion'))_0x253455['isOwn']&&(this['_mergeNestedSuggestions']||!_0x253455['containsRangeInObject']&&!_0x253455['isInsideObject'])&&cn(_0x194455,_0x45c609)&&_0x570d50['add'](_0x194455);for(const _0x46d2c5 of _0x570d50){const _0x192e42=_0x46d2c5['getRanges']();if(!_0x45c609||!_0x45c609['skipNestingCheck']){if(_0x2d6f28['every'](_0x510f73=>_0x192e42['some'](_0x327c44=>_0x327c44['containsRange'](_0x510f73,!0x0))))return _0x46d2c5;}(!_0x46d2c5['attributes']||!_0x46d2c5['attributes']['skipNestingCheck'])&&(_0x192e42['every'](_0x274362=>_0x2d6f28['some'](_0x38dd1=>_0x38dd1['containsRange'](_0x274362,!0x0)))&&_0x46d2c5['discard']());}const _0x3e86e0=_0x493bce(),_0x567436=_0x289488['id'],_0x182160='deletion:'+_0x46485e,_0x449aff=this['_setSuggestionData']({'id':_0x3e86e0,'type':_0x182160,'createdAt':new Date(),'authorId':_0x567436,'attributes':_0x45c609});for(const _0x711eae of _0x2d6f28)_0x711eae['detach'](),_0x711eae['isCollapsed']||'$graveyard'==_0x711eae['root']['rootName']||this['_addSuggestionMarker'](_0x182160,_0x3e86e0,_0x567436,_0x711eae,bt['getMultiRangeId']());return _0x449aff;}['markAttributeChange'](_0x24956f,_0x5d7d26,_0x5a2ab3,_0x252d79,_0x10e45e){if(_0x24956f['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x43237f=this['editor']['plugins']['get']('Users')['me']['id'],_0x413be2=Array['from'](this['_suggestions']['values']())['filter'](_0xacfc9a=>'attribute'==_0xacfc9a['type']&&_0xacfc9a['data']['key']==_0x5d7d26&&_0xacfc9a['isIntersectingWithRange'](_0x24956f));if(this['_trackingSessionId']&&(_0x10e45e['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x21b05e=this['_findSuggestions'](_0x24956f,'insertion')['filter'](({meta:_0x362d12})=>_0x362d12['isOwn']&&!_0x362d12['isInsideObject']&&!_0x362d12['isNextTo'])['map'](({suggestion:_0x50a632})=>_0x50a632);_0x413be2['unshift'](..._0x21b05e);}const _0x291923=new Map([[_0x24956f,_0x5a2ab3]]);for(const _0xd1b606 of _0x413be2){const _0x340c28='attribute'==_0xd1b606['type']?_0xd1b606['data']['oldValue']:void 0x0,_0x481b10=_0xd1b606['getFirstRange'](),_0x534c27=Array['from'](_0x291923['keys']())['find'](_0x56e31a=>_0x56e31a['isIntersecting'](_0x481b10));if(!_0x534c27)continue;const _0x5dd20d=_0x534c27['getDifference'](_0x481b10);this['_suggestionsConversion']['isBlockAttribute'](_0x5d7d26)&&'insertion'==_0xd1b606['type']&&0x0!=_0x5dd20d['length']||(_0x291923['delete'](_0x534c27),_0x5dd20d['forEach'](_0xad11e7=>{_0x291923['set'](_0xad11e7,_0x5a2ab3);}),'insertion'!=_0xd1b606['type']&&_0x340c28!=_0x252d79&&_0x291923['set'](_0x534c27['getIntersection'](_0x481b10),_0x340c28));}const _0x20a3e5=[];for(const [_0x5bb940,_0x2b0d2a]of _0x291923){const _0x41c2a7=_0x493bce(),_0x4cedcf={'key':_0x5d7d26,'oldValue':_0x2b0d2a,'newValue':_0x252d79};_0x5d7d26['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':_0x5d7d26});const _0x49ffa5=('attribute:'+(_0x5d7d26+'|'+Je({'newValue':_0x252d79})))['substring'](0x0,0x3c),_0x81267f=this['_setSuggestionData']({'id':_0x41c2a7,'type':_0x49ffa5,'data':_0x4cedcf,'createdAt':new Date(),'authorId':_0x43237f,'attributes':_0x10e45e});_0x20a3e5['push'](_0x81267f),this['_addSuggestionMarker'](_0x49ffa5,_0x41c2a7,_0x43237f,_0x5bb940);}return _0x20a3e5;}['enableDefaultAttributesIntegration'](_0x23b584){this['enableCommand'](_0x23b584,(_0xbf1f8b,..._0xaffff7)=>{this['recordAttributeChanges'](()=>{_0xbf1f8b(..._0xaffff7);});});}['startTrackingSession'](_0x12ba7c){return this['_trackingSessionId']=void 0x0!==_0x12ba7c?_0x12ba7c:_0x493bce(),this['_trackingSessionId'];}['_getAttributeKey'](_0x50e6c0){return'attribute'==_0x50e6c0['type']?un(_0x50e6c0['subType']):null;}['_applyOperationsAsSuggestions'](_0x5c9137){if(0x0==_0x5c9137['length'])return;const _0x3995ba=this['editor'],_0x26324a=_0x3995ba['plugins']['get'](_0x3c2b55),_0xe14788=[];_0x3995ba['model']['change'](_0x2ce5c8=>{for(let _0x5da32b=0x0;_0x5da32b<_0x5c9137['length'];_0x5da32b++){const _0x101d66=_0x5c9137[_0x5da32b];if(_0x101d66['baseVersion']=_0x3995ba['model']['document']['version'],_0x101d66['isDocumentOperation']=!0x0,_0x26324a['isMarkedRemoveOperation'](_0x101d66)){const _0x5cab30=_0x365bc8(_0x101d66['newRange'],_0x3995ba['model']);_0xe14788['unshift'](_0x3e26ed['fromRange'](_0x5cab30));}else switch(_0x101d66['type']){case'rename':{const _0x2d701e=_0x101d66['oldName'],_0x3c5c9c=_0x101d66['newName'];if(_0x2d701e==_0x3c5c9c)break;_0x2ce5c8['batch']['addOperation'](_0x101d66),_0x3995ba['model']['applyOperation'](_0x101d66);const _0x4e4ac2='$elementName',_0xcf4419=_0x101d66['position'],_0x2cc0e4=_0x3995ba['model']['createRange'](_0xcf4419,_0x3995ba['model']['createPositionAt'](_0xcf4419['nodeAfter'],'end'));this['markAttributeChange'](_0x2cc0e4,_0x4e4ac2,_0x2d701e,_0x3c5c9c,{'groupId':_0x493bce()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x2e89d3=_0x101d66['oldValue'],_0x14d74b=_0x101d66['newValue'];if(_0x2e89d3==_0x14d74b)break;_0x2ce5c8['batch']['addOperation'](_0x101d66),_0x3995ba['model']['applyOperation'](_0x101d66);const _0xbedcaf=_0x101d66['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0xbedcaf))break;const _0x3935b4=_0x365bc8(_0x101d66['range'],_0x3995ba['model']);this['markAttributeChange'](_0x3935b4,_0xbedcaf,_0x2e89d3,_0x14d74b,{'groupId':_0x493bce()});break;}case'insert':{_0x2ce5c8['batch']['addOperation'](_0x101d66),_0x3995ba['model']['applyOperation'](_0x101d66);if(_0x5c9137[_0x5da32b+0x1]&&'move'==_0x5c9137[_0x5da32b+0x1]['type'])break;const _0x2dea98=_0x101d66['position'],_0x37e404=_0x101d66['howMany'],_0x128972=_0x365bc8(_0x3995ba['model']['createRange'](_0x2dea98,_0x2dea98['getShiftedBy'](_0x37e404)),_0x3995ba['model']);this['markInsertion'](_0x128972);break;}case'split':{_0x2ce5c8['batch']['addOperation'](_0x101d66),_0x3995ba['model']['applyOperation'](_0x101d66);const _0x551b89=_0x101d66['splitPosition'],_0x48bb24=_0x101d66['moveTargetPosition'];this['markInsertion'](_0x3995ba['model']['createRange'](_0x551b89,_0x48bb24));break;}case'move':case'remove':_0x2ce5c8['batch']['addOperation'](_0x101d66),_0x3995ba['model']['applyOperation'](_0x101d66);}}for(const _0x19bd37 of _0xe14788)_0x19bd37['detach'](),this['markDeletion'](_0x19bd37);});}['_setSuggestionRange'](_0x1f979d,_0x20e0b6){const _0x44d6e=_0x1f979d['getFirstMarker']();this['_model']['change'](_0xcdfcbd=>{_0xcdfcbd['updateMarker'](_0x44d6e,{'range':_0x20e0b6});});}['_addThreadToSuggestion'](_0x2ded38){const _0x25a314=_0x2ded38['id'],_0x429add=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x25a314)||this['_commentsRepository']['addCommentThread']({'channelId':_0x429add,'threadId':_0x25a314,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x371050=this['_commentsRepository']['getCommentThread'](_0x25a314);_0x371050['unbind']('isRemovable'),_0x371050['isRemovable']=!0x1,_0x2ded38['commentThread']=_0x371050;}['_checkSuggestionCorrectness'](_0x496d8a,_0x5cccbf,_0x40815b,_0x15db40){if(_0x496d8a['type']!=_0x5cccbf||_0x496d8a['subType']!=_0x40815b||_0x496d8a['creator']['id']!=_0x15db40)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x160e83('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1e2375,_0x4e54c6){const _0x1735a0=_0x1e2375['getFirstRange']();if(_0x4e54c6['isEqual'](_0x1735a0))_0x1e2375['removeMarkers']();else{if(_0x1735a0['containsRange'](_0x4e54c6)){const _0x28c2cb=this['_model']['createPositionAt'](_0x4e54c6['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1e2375,this['_model']['createRange'](_0x1735a0['start'],_0x28c2cb));const _0x4e8d83=_0x493bce(),_0x22c2a8=_0x1e2375['creator']['id'],_0x43895f=_0x1e2375['type']+':'+_0x1e2375['subType'];this['_setSuggestionData']({'id':_0x4e8d83,'type':_0x43895f,'createdAt':new Date(),'authorId':_0x22c2a8,'data':_0x1e2375['data'],'attributes':_0x1e2375['attributes']});const _0x4b6f4d=this['_model']['createPositionAt'](_0x4e54c6['end']['parent'],'after'),_0x2cc5e2=this['_model']['createRange'](_0x4b6f4d,_0x1735a0['end']);this['_addSuggestionMarker'](_0x43895f,_0x4e8d83,_0x22c2a8,_0x2cc5e2);}else{if(_0x1735a0['containsPosition'](_0x4e54c6['start'])){const _0x27aa29=this['_model']['createPositionAt'](_0x4e54c6['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1e2375,this['_model']['createRange'](_0x1735a0['start'],_0x27aa29));}else{const _0x5856d5=this['_model']['createPositionAt'](_0x4e54c6['end']['parent'],'after');this['_setSuggestionRange'](_0x1e2375,this['_model']['createRange'](_0x5856d5,_0x1735a0['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2f698e){for(const {suggestion:_0x1ff106,meta:_0x2d4515}of this['_findSuggestions'](_0x2f698e,'insertion')){if(!_0x2d4515['isOwn'])continue;const _0x2ad0aa=_0x1ff106['getRanges']();for(const _0x50befe of _0x2ad0aa)if(!_0x2f698e['getDifference'](_0x50befe)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2386e2){return this['editor']['plugins']['get']('Users')['getUser'](_0x2386e2);}['_getExternalAuthor'](_0x1ba15f){const _0x2ec133=this['editor']['plugins']['get']('Users'),_0x5a36f0=_0x408f0f('external:'+_0x1ba15f),_0x4c73dd=_0x2ec133['getUser'](_0x5a36f0);return _0x4c73dd||_0x2ec133['addUser']({'id':_0x5a36f0,'name':_0x1ba15f});}['_createSuggestion'](_0x292e0b,_0x3bdcc4,_0x575eb5,_0x17b83f,_0x567f95,_0x56b4c6){const _0x5eb7e9=this['_getAuthorFromId'](_0x17b83f);if(!_0x5eb7e9)throw new _0x160e83('track-changes-user-not-found',this,{'authorId':_0x17b83f,'suggestionId':_0x575eb5});const _0x2ddeed=this['_suggestionFactory']['buildSuggestion'](_0x292e0b,_0x3bdcc4,_0x575eb5,_0x5eb7e9,_0x567f95,_0x438d95=>{this['_updateSuggestionData'](_0x575eb5,{'attributes':_0x438d95});const _0xce2ae3=this['getSuggestion'](_0x575eb5);this['_joinWithAdjacentSuggestions'](new Set([_0xce2ae3])),this['_refreshSuggestionsChain'](new Set([_0xce2ae3]));},_0x56b4c6);return this['listenTo'](_0x2ddeed,'accept',()=>{this['_updateSuggestionData'](_0x575eb5,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2ddeed,'discard',()=>{this['_updateSuggestionData'](_0x575eb5,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x575eb5,_0x2ddeed),this['_suggestionState']['set'](_0x2ddeed,'notReady'),_0x2ddeed;}['_breakSuggestionMarker'](_0x48c242,_0x3ddb4c,_0x3dc0ed){const _0x17d759=_0x48c242['getFirstRange'](),_0x4b120d=_0x17d759['start'],_0x3a4d0d=_0x17d759['end'];this['_setSuggestionRange'](_0x48c242,this['_model']['createRange'](_0x4b120d,_0x3ddb4c));const _0x262bd4=_0x493bce(),_0x168bdf=_0x48c242['creator']['id'],_0x54b1c7=_0x48c242['type']+(_0x48c242['subType']?':'+_0x48c242['subType']:'');this['_setSuggestionData']({'id':_0x262bd4,'type':_0x54b1c7,'createdAt':new Date(),'authorId':_0x168bdf,'originalSuggestionId':_0x48c242['_originalSuggestionId']||_0x48c242['id'],'attributes':_0x48c242['attributes'],'data':_0x48c242['data']});const _0x34a63c=this['_getAttributeKey'](_0x48c242);('formatBlock'==_0x48c242['type']||_0x34a63c&&this['_suggestionsConversion']['isBlockAttribute'](_0x34a63c))&&(_0x3dc0ed=this['_model']['createPositionBefore'](_0x3dc0ed['parent'])),this['_addSuggestionMarker'](_0x54b1c7,_0x262bd4,_0x168bdf,this['_model']['createRange'](_0x3dc0ed,_0x3a4d0d));}['_findSuggestions'](_0x38181b,_0x49500d=null){const _0x2b42c6=[],_0x361a91=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x38181b)||(_0x38181b=[_0x38181b]);for(const _0x1ad037 of this['getSuggestions']()){if(!_0x1ad037['isInContent'])continue;if(_0x49500d&&_0x1ad037['type']!=_0x49500d)continue;let _0x130b20=!0x1;for(const _0x2f2a68 of _0x1ad037['getRanges']()){for(const _0x3a5db7 of _0x38181b){const _0x65222e=_0x3a5db7['start']['isEqual'](_0x2f2a68['end'])||_0x3a5db7['end']['isEqual'](_0x2f2a68['start']);if(_0x65222e||_0x3a5db7['getIntersection'](_0x2f2a68)){const _0x1b6628=_0x3a5db7['containsRange'](_0x2f2a68)&&qe(this['_model']['schema'],_0x2f2a68['start'],_0x3a5db7),_0x59f54e=_0x2f2a68['containsRange'](_0x3a5db7)&&qe(this['_model']['schema'],_0x3a5db7['start'],_0x2f2a68);_0x2b42c6['push']({'suggestion':_0x1ad037,'meta':{'isOwn':_0x361a91==_0x1ad037['author'],'isNextTo':_0x65222e,'isInsideObject':_0x1b6628,'containsRangeInObject':_0x59f54e}}),_0x130b20=!0x0;break;}}if(_0x130b20)break;}}return _0x2b42c6;}['_addSuggestionMarker'](_0x386702,_0x3c5340,_0x5e4270,_0x3b634b,_0x430afe){this['_model']['change'](_0x5c2199=>{let _0x40b741='suggestion:'+_0x386702+':'+_0x3c5340+':'+_0x5e4270;_0x430afe&&(_0x40b741=_0x40b741+':'+_0x430afe),_0x5c2199['addMarker'](_0x40b741,{'range':_0x3b634b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x33059d){const _0x2f3ce7=_0x33059d['previous'],_0xa57c59=_0x33059d['next'];_0x33059d['previous']=null,_0x33059d['next']=null,null!=_0x2f3ce7&&_0x2f3ce7['next']==_0x33059d&&(_0x2f3ce7['next']=_0xa57c59),null!=_0xa57c59&&_0xa57c59['previous']==_0x33059d&&(_0xa57c59['previous']=_0x2f3ce7),'ready'==this['_suggestionState']['get'](_0x33059d)&&(this['_suggestionState']['set'](_0x33059d,'removed'),this['fire']('suggestionUnloaded',_0x33059d,_0x2f3ce7,_0xa57c59));}['_setSuggestionData'](_0x10fe54){const _0x2e9881=_0x10fe54['id'],_0x29a5f5=this['addSuggestionData'](_0x10fe54);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5e0c54=this['editor']['plugins']['get']('PendingActions'),_0x24aa92=_0x29a5f5['hasComments'],_0xa85744=_0x29a5f5['subType']?_0x29a5f5['type']+':'+_0x29a5f5['subType']:_0x29a5f5['type'],_0x502ef4=this['editor']['locale'],_0x34323f=_0x5e0c54['add'](At(_0x502ef4,'PENDING_ACTION_SUGGESTION')),_0x2fdaca={'id':_0x2e9881,'type':_0xa85744,'hasComments':_0x24aa92,'data':_0x10fe54['data']||null,'originalSuggestionId':_0x10fe54['originalSuggestionId']||null,'attributes':_0x29a5f5['attributes']};this['_adapter']['addSuggestion'](_0x2fdaca)['then'](_0x58f530=>{_0x29a5f5['_saved']=!0x0,_0x5e0c54['remove'](_0x34323f),_0x58f530&&_0x58f530['createdAt']&&(this['_suggestions']['get'](_0x2e9881)['createdAt']=_0x58f530['createdAt']);})['catch'](_0x5b9bcf=>{throw _0x102b77('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x29a5f5['discard']();}),_0x29a5f5['stopListening'](),this['_suggestions']['delete'](_0x29a5f5['id']),this['_suggestionState']['delete'](_0x29a5f5),_0x5b9bcf;});}return _0x29a5f5;}['_updateSuggestionData'](_0x29b1c0,_0x474717){const _0x3c1bef=this['editor']['plugins']['get']('PendingActions'),_0xa66dff=this['getSuggestion'](_0x29b1c0);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xa66dff['_saved']){const _0x383c1e=_0x3c1bef['add'](At(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x29b1c0,_0x474717)['then'](()=>{_0x3c1bef['remove'](_0x383c1e);});}else _0xa66dff['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x29b1c0,_0x474717);});}}['_getSuggestionData'](_0x54f733){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x160e83('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x54f733);}['_handleNewSuggestionMarker'](_0x1f36b5){const {id:_0x3afb5e,type:_0x168ca7,subType:_0x558406,authorId:_0x6672a0}=_0x413c95(_0x1f36b5),_0x11bf8a=this['_suggestions']['get'](_0x3afb5e)||this['_createSuggestion'](_0x168ca7,_0x558406,_0x3afb5e,_0x6672a0,{});switch(this['_checkSuggestionCorrectness'](_0x11bf8a,_0x168ca7,_0x558406,_0x6672a0),this['_suggestionState']['get'](_0x11bf8a)){case'notReady':this['_getSuggestionData'](_0x3afb5e)['then'](_0x38da3f=>{let _0x58a217=Promise['resolve']();_0x38da3f['hasComments']&&(_0x58a217=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3afb5e})),_0x58a217['then'](()=>{this['addSuggestionData'](_0x38da3f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x11bf8a,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3afb5e,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x11bf8a,'ready'),this['fire']('suggestionLoaded',_0x11bf8a);break;case'ready':this['fire']('suggestionChanged',_0x11bf8a);}return _0x11bf8a['addMarkerName'](_0x1f36b5),_0x11bf8a;}['_refreshSuggestionsChain'](_0x49e999){const _0x286e32=Array['from'](_0x49e999),_0x1ba37b=_0x286e32['filter'](_0x2cfff1=>'attribute'==_0x2cfff1['type']);this['_refreshAttributeSuggestionsChain'](_0x1ba37b);const _0x8c71f2=_0x286e32['filter'](_0x525f82=>!_0x525f82['isMultiRange']&&'attribute'!=_0x525f82['type']),_0x4dfa87=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3910a2=>!_0x3910a2['isMultiRange']&&'attribute'!=_0x3910a2['type']),_0x3c007a=_0x4dfa87['filter'](_0x1d09df=>!_0x49e999['has'](_0x1d09df)),_0x2d8dc7=new Map(_0x4dfa87['map'](_0x55d3d7=>[_0x55d3d7,this['_suggestionFactory']['getSuggestionCallback'](_0x55d3d7['type'],_0x55d3d7['subType'],'chain')])),_0x4ff0f3=new Map(_0x4dfa87['map'](_0xd5416=>[_0xd5416,_0xd5416['getFirstRange']()])),_0x5b4d3f=new Set(),_0x55ad16=new Set();for(let _0x3ff8ef=0x0;_0x3ff8ef<_0x8c71f2['length'];_0x3ff8ef++)_0x5b80a2(_0x8c71f2[_0x3ff8ef],_0x8c71f2,_0x3ff8ef+0x1);for(let _0x4eea89=0x0;_0x4eea89<_0x8c71f2['length'];_0x4eea89++)_0x5b80a2(_0x8c71f2[_0x4eea89],_0x3c007a,0x0);const _0x476cc0=new Set();for(let _0x59aaca=0x0;_0x59aaca<_0x8c71f2['length'];_0x59aaca++){const _0x12d541=_0x8c71f2[_0x59aaca];!_0x55ad16['has'](_0x12d541)&&_0x12d541['previous']&&(_0x476cc0['add'](_0x12d541['previous']),_0x12d541['previous']['next']===_0x12d541&&(_0x12d541['previous']['next']=null),_0x12d541['previous']=null),!_0x5b4d3f['has'](_0x12d541)&&_0x12d541['next']&&(_0x476cc0['add'](_0x12d541['next']),_0x12d541['next']['previous']===_0x12d541&&(_0x12d541['next']['previous']=null),_0x12d541['next']=null);}function _0x5b80a2(_0x1b2396,_0x1c4cfe,_0x282ed3){for(let _0x4acee2=_0x282ed3;_0x4acee2<_0x1c4cfe['length'];_0x4acee2++){const _0x5091e2=_0x192e5a(_0x1b2396,_0x1c4cfe[_0x4acee2]);_0x5091e2&&(_0x5091e2[0x0]['next']=_0x5091e2[0x1],_0x5091e2[0x1]['previous']=_0x5091e2[0x0],_0x5b4d3f['add'](_0x5091e2[0x0]),_0x55ad16['add'](_0x5091e2[0x1]));}}function _0x192e5a(_0x132480,_0xfee16a){if(_0x132480['author']['id']!==_0xfee16a['author']['id'])return null;const _0x319bb5=_0x2d8dc7['get'](_0x132480)(_0x132480,_0xfee16a,_0x4ff0f3['get'](_0x132480),_0x4ff0f3['get'](_0xfee16a));if(!_0x319bb5)return null;return _0x2d8dc7['get'](_0xfee16a)(_0x132480,_0xfee16a,_0x4ff0f3['get'](_0x132480),_0x4ff0f3['get'](_0xfee16a))?_0x319bb5[0x1]['commentThread']&&_0x319bb5[0x1]['commentThread']['length']?null:_0x319bb5:null;}_0x476cc0['size']&&this['_refreshSuggestionsChain'](_0x476cc0);}['_refreshAttributeSuggestionsChain'](_0x154f8f){if(0x0==_0x154f8f['length'])return;const _0x26b6ab=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ac236=>'attribute'==_0x3ac236['type']&&_0x3ac236['_isDataLoaded']),_0x59647d=[],_0xea88a0=new Map();for(const _0x2fc6cf of _0x26b6ab){const _0x2d7120=_0x408f0f(_0x2fc6cf['attributes']);_0xea88a0['has'](_0x2d7120)||(_0xea88a0['set'](_0x2d7120,_0x59647d['length']),_0x59647d['push']([]));const _0x1d280f=_0xea88a0['get'](_0x2d7120);_0x59647d[_0x1d280f]['push'](_0x2fc6cf);}!(function(){_0x59647d['sort']((_0x24eb44,_0x2f8aa0)=>{const _0x46c94e=_0x24eb44[0x0]['createdAt'],_0x2a169e=_0x2f8aa0[0x0]['createdAt'];return _0x46c94e==_0x2a169e?_0x24eb44[0x0]['attributes']['groupId']<_0x2f8aa0[0x0]['attributes']['groupId']?-0x1:0x1:_0x46c94e<_0x2a169e?-0x1:0x1;});for(const _0x17de30 of _0x59647d)_0x17de30['sort']((_0x938658,_0x46c163)=>_0x938658['id']<_0x46c163['id']?-0x1:0x1);}());for(let _0x550624=0x0;_0x550624<_0x59647d['length'];_0x550624++){if(0x0==_0x59647d[_0x550624]['length'])continue;const _0xa922c5=[];for(let _0x67feae=_0x550624+0x1;_0x67feae<_0x59647d['length'];_0x67feae++)0x0!=_0x59647d[_0x67feae]['length']&&_0x2d7a05(_0x59647d[_0x550624],_0x59647d[_0x67feae])&&_0xa922c5['push'](_0x67feae);for(const _0x441f0d of _0xa922c5)_0x59647d[_0x550624]=_0x59647d[_0x550624]['concat'](_0x59647d[_0x441f0d]),_0x59647d[_0x441f0d]=[];}for(const _0x222794 of _0x59647d)for(let _0x4e6145=0x0;_0x4e6145<_0x222794['length'];_0x4e6145++){const _0x5b5f0f=_0x222794[_0x4e6145+0x1]||null;_0x222794[_0x4e6145]['next']!==_0x5b5f0f&&(_0x222794[_0x4e6145]['next']=_0x5b5f0f);}for(const _0x46349a of _0x59647d)for(let _0x4a21cd=0x0;_0x4a21cd<_0x46349a['length'];_0x4a21cd++){const _0xc3fe06=_0x46349a[_0x4a21cd-0x1]||null;_0x46349a[_0x4a21cd]['previous']!==_0xc3fe06&&(_0x46349a[_0x4a21cd]['previous']=_0xc3fe06);}function _0x2d7a05(_0x27d689,_0x5c94c0){if(_0x27d689[0x0]['attributes']['groupId']!==_0x5c94c0[0x0]['attributes']['groupId']&&_0x27d689[0x0]['author']!==_0x5c94c0[0x0]['author'])return!0x1;if(!function(_0x23d883,_0x4bdeee){if(!_0x23d883['hasComments']&&!_0x4bdeee['hasComments'])return!0x0;if(_0x23d883['hasComments']&&_0x4bdeee['hasComments'])return!0x1;if(_0x23d883['hasComments']&&_0x4bdeee['createdAt']<_0x23d883['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4bdeee['hasComments']&&_0x23d883['createdAt']<_0x4bdeee['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x27d689[0x0],_0x5c94c0[0x0]))return!0x1;const _0x206941=ot(_0x27d689[0x0]['attributes'],['groupId','trackingSessionId']),_0x136666=ot(_0x5c94c0[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x206941,_0x136666))return!0x1;if(_0x27d689[0x0]['attributes']['groupId']==_0x5c94c0[0x0]['attributes']['groupId'])return!0x0;if(_0x27d689[0x0]['attributes']['trackingSessionId']!==_0x5c94c0[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x27d689['every'](_0x2f646c=>_0x5c94c0['some'](_0x26360a=>_0x2f646c['getFirstRange']()['isEqual'](_0x26360a['getFirstRange']())))&&_0x5c94c0['every'](_0x1f1e79=>_0x27d689['some'](_0x492744=>_0x1f1e79['getFirstRange']()['isEqual'](_0x492744['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x26ce4d){const _0x402c78=Array['from'](_0x26ce4d),_0x33e2d1=this['getSuggestions']({'skipNotAttached':!0x0}),_0x51445d=_0x33e2d1['filter'](_0x245e2b=>!_0x26ce4d['has'](_0x245e2b)),_0x1809d0=new Map(_0x402c78['map'](_0x1a798a=>[_0x1a798a,this['_suggestionFactory']['getSuggestionCallback'](_0x1a798a['type'],_0x1a798a['subType'],'join')])),_0x50ea26=new Map(_0x33e2d1['map'](_0x94ad0c=>[_0x94ad0c,_0x94ad0c['getRanges']()]));for(let _0x11cdaa=0x0;_0x11cdaa<_0x402c78['length'];_0x11cdaa++){if(_0x5f1aec(this,_0x402c78[_0x11cdaa],_0x402c78,_0x11cdaa+0x1))return!0x0;}for(let _0x35f1eb=0x0;_0x35f1eb<_0x402c78['length'];_0x35f1eb++){if(_0x5f1aec(this,_0x402c78[_0x35f1eb],_0x51445d,0x0))return!0x0;}return!0x1;function _0x5f1aec(_0x17d272,_0x65acd9,_0x5df68a,_0x12f62c){for(let _0x2ec767=_0x12f62c;_0x2ec767<_0x5df68a['length'];_0x2ec767++){const _0x40300d=_0x5df68a[_0x2ec767];if(_0x40300d['type']!==_0x65acd9['type']||_0x40300d['author']['id']!==_0x65acd9['author']['id']||_0x40300d['subType']!==_0x65acd9['subType'])continue;if(!an(_0x65acd9,_0x40300d))continue;if('attribute'==_0x65acd9['type']&&_0x65acd9['data']['oldValue']!=_0x40300d['data']['oldValue'])continue;if('attribute'==_0x65acd9['type']&&_0x17d272['_suggestionsConversion']['isBlockAttribute'](_0x65acd9['data']['key']))continue;if('formatBlock'==_0x65acd9['type']){const _0xc8b642=_0x17d272['editor']['model'],_0x546b82=_0x65acd9['getContainedElement']();if(_0x546b82&&(_0xc8b642['schema']['isObject'](_0x546b82)||_0xc8b642['schema']['isLimit'](_0x546b82)))continue;}const _0x294c46=_0x1809d0['get'](_0x65acd9),_0xeb1713=_0x50ea26['get'](_0x65acd9),_0x5e226d=_0x50ea26['get'](_0x40300d),_0x5be92d=_0x65acd9['commentThread']&&_0x65acd9['commentThread']['length'],_0xc273a2=_0x40300d['commentThread']&&_0x40300d['commentThread']['length'];if(!_0x5be92d&&_0x294c46(_0x5e226d,_0xeb1713))return _0x17d272['_joinSuggestions'](_0x40300d,_0x65acd9),_0x50ea26['delete'](_0x65acd9),!0x0;if(!_0xc273a2&&_0x294c46(_0xeb1713,_0x5e226d))return _0x17d272['_joinSuggestions'](_0x65acd9,_0x40300d),_0x50ea26['delete'](_0x40300d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3b756f,_0x3827a8){if(_0x3b756f['isMultiRange']){for(const _0xcbd005 of _0x3827a8['getRanges']())_0x3b756f['addRange'](_0xcbd005);}else{const _0x3e1c24=_0x3827a8['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3b756f,this['_model']['createRange'](_0x3b756f['getFirstRange']()['start'],_0x3e1c24));}_0x3827a8['removeMarkers']();}['_getMarkerAnnouncementText'](_0xb6d6ba,_0x10f7f1,_0x5e8400){const _0x39ecd1=_0xb6d6ba['startsWith']('format')||_0xb6d6ba['startsWith']('attribute')?'FORMATTING':_0xb6d6ba['toUpperCase']();return At(this['editor']['locale'],_0x10f7f1+'_'+_0x39ecd1+'_SUGGESTION_ANNOUNCEMENT',_0x5e8400);}['_initAriaMarkerChangeAnnouncements'](){const _0x411d52=this['editor'];if(!_0x411d52['ui'])return;const {ariaLiveAnnouncer:_0x1ec603}=_0x411d52['ui'];_0x497775(this['_model'],({left:_0x5a750a,entered:_0x508ac2})=>{for(const _0x1ac326 of _0x5a750a){const {group:_0xb9c022,type:_0x1f9a39}=_0x413c95(_0x1ac326['name']);if('suggestion'===_0xb9c022){_0x1ec603['announce'](this['_getMarkerAnnouncementText'](_0x1f9a39,'LEAVE'));break;}}for(const _0x3acb09 of _0x508ac2){const {group:_0xefce03,type:_0x34e5a8}=_0x413c95(_0x3acb09['name']);if('suggestion'===_0xefce03){_0x1ec603['announce'](this['_getMarkerAnnouncementText'](_0x34e5a8,'ENTER',_0x20aee3(_0x523eff)));break;}}});}['_processAttributeChanges'](_0x226267){if(this['_recordAttributeSuggestions'])return!0x1;const _0x883840=this['editor'],_0x50a1fd=_0x883840['model']['document']['differ']['getChanges']();if(0x0==_0x50a1fd['length'])return!0x1;const _0x185a07=[],_0x2b927c=_0x50a1fd['filter'](_0x34f076=>'attribute'==_0x34f076['type']),_0x3bad28=_0x50a1fd['filter'](_0x37d92c=>'insert'==_0x37d92c['type']&&'$text'!=_0x37d92c['name']),_0x47f0a5=_0x50a1fd['filter'](_0x4fbca2=>'remove'==_0x4fbca2['type']&&'$text'!=_0x4fbca2['name']);for(const _0x5d813c of _0x2b927c)_0x185a07['push']({'key':_0x5d813c['attributeKey'],'newValue':_0x5d813c['attributeNewValue'],'oldValue':_0x5d813c['attributeOldValue'],'range':sn(_0x5d813c['range'],_0x883840['model'])});for(const _0x258498 of _0x3bad28){const _0x28112c=_0x47f0a5['find'](_0x44fe64=>_0x44fe64['position']['isEqual'](_0x258498['position']));_0x28112c&&_0x185a07['push']({'key':Ke,'newValue':_0x258498['name'],'oldValue':_0x28112c['name'],'range':_0x883840['model']['createRangeOn'](_0x258498['position']['nodeAfter'])});}return 0x0!=_0x185a07['length']&&this['_reduceExistingSuggestions'](_0x226267,_0x185a07);}['_processAttributeSuggestions'](_0x1a1446){let _0x436c31=!0x1;const _0x5e6fbd=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4ce461=>_0x4ce461['data']['newRange']&&_0x4ce461['name']['startsWith']('suggestion:attribute:'));for(const _0x31140a of _0x5e6fbd){const {subType:_0x21757c,id:_0xc48f5c}=_0x413c95(_0x31140a['name']),_0x318a67=_0x21757c['split']('|')[0x0];for(const _0x1c3b10 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1c3b10['id']!=_0xc48f5c&&'attribute'==_0x1c3b10['type']&&_0x1c3b10['data']&&_0x1c3b10['data']['key']==_0x318a67&&_0x1c3b10['getFirstRange']()['isIntersecting'](_0x31140a['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1c3b10,_0x31140a['data']['newRange'],_0x1a1446),_0x436c31=!0x0);}return _0x436c31;}['recordAttributeChanges'](_0x512817){this['_recordAttributeSuggestions']=!0x0,_0x512817();}['_reduceExistingSuggestions'](_0x30f8c3,_0x2f31f5){if(0x0==_0x2f31f5['length'])return!0x1;let _0x3d9086=!0x1;for(const _0xd4b121 of _0x2f31f5){const _0x4ac173=this['_findSuggestions'](_0xd4b121['range'],'attribute')['filter'](_0x2eef33=>!_0x2eef33['meta']['isNextTo'])['map'](_0x4b85cc=>_0x4b85cc['suggestion']),_0x4e306f=_0x408f0f({'newValue':_0xd4b121['newValue']});_0x4ac173['filter'](_0x255e12=>{const [_0xcf0b84,_0x407c19]=_0x255e12['subType']['split']('|');return _0xcf0b84==_0xd4b121['key']&&_0x407c19!=_0x4e306f;})['forEach'](_0x92541b=>{this['_reduceSuggestionAttributeRange'](_0x92541b,_0xd4b121['range'],_0x30f8c3),_0x3d9086=!0x0;});}return _0x3d9086;}['_reduceSuggestionAttributeRange'](_0x11d3e7,_0x328409,_0x34d83f){const _0x60511a=_0x11d3e7['getFirstRange']()['getDifference'](_0x328409);0x0!==_0x60511a['length']?0x1!==_0x60511a['length']?this['_breakSuggestionMarker'](_0x11d3e7,_0x328409['start'],_0x328409['end']):this['_setSuggestionRange'](_0x11d3e7,_0x60511a[0x0]):_0x34d83f['removeMarker'](_0x11d3e7['getFirstMarker']());}}class Ye{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2c19a7){this['_editor']=_0x2c19a7,this['_model']=_0x2c19a7['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4caf00,_0x23c78d,_0x48b9a5,_0x595f00,_0x2d84f2,_0x42e768,_0x320f78){return new bt(this['_model'],{'type':_0x4caf00,'subType':_0x23c78d,'id':_0x48b9a5,'originalSuggestionId':_0x320f78,'author':_0x595f00,'creator':_0x595f00,'attributes':_0x2d84f2,'onAttributesChange':_0x42e768,'onAccept':(..._0xe9f442)=>this['getSuggestionCallback'](_0x4caf00,_0x23c78d,'accept')(..._0xe9f442),'onDiscard':(..._0x5ba50c)=>this['getSuggestionCallback'](_0x4caf00,_0x23c78d,'discard')(..._0x5ba50c)});}['registerCustomCallback'](_0x4298d7,_0x653f71,_0x13b1ad,_0x1af61f){const _0xbdc4e=_0x4298d7+':'+_0x653f71+':'+_0x13b1ad;this['_customCallbacks']['set'](_0xbdc4e,_0x1af61f);}['getSuggestionCallback'](_0x45323f,_0x53c17f,_0x227a8c){const _0x1788b2=_0x45323f+':'+_0x53c17f+':'+_0x227a8c;return this['_customCallbacks']['get'](_0x1788b2)||this['_defaultCallbacks']['get'](_0x45323f+':'+_0x227a8c);}['_registerDefaultCallbacks'](){const _0x428047=()=>!0x1,_0xae91f4=_0x3d6d60=>{_0x3d6d60['sort']((_0x238e9e,_0x4d91ca)=>_0x238e9e['start']['isBefore'](_0x4d91ca['start'])?0x1:-0x1),this['_model']['change'](_0x3f17c2=>{for(const _0x53356a of _0x3d6d60){let _0x322b1f;_0x322b1f=_0x53356a['end']['isAtEnd']&&_0x53356a['end']['parent']==_0x53356a['start']['nodeAfter']?_0x3f17c2['createSelection'](_0x53356a['start']['nodeAfter'],'on'):_0x3f17c2['createSelection'](_0x53356a),this['_model']['deleteContent'](_0x322b1f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x327eb1=(_0xb3b4b1,_0x390262)=>{_0x390262&&this['_model']['change'](_0x1d3b4c=>{const {commandName:_0x586de7,commandParams:_0x5d1283=[]}=_0x390262,_0x248491=_0xb3b4b1['map'](_0xd60c2=>(Qe(_0xd60c2)&&(_0xd60c2=this['_model']['createRange'](_0xd60c2['end'])),_0xd60c2))['filter'](_0x44c900=>'$graveyard'!==_0x44c900['root']['rootName']);if(_0x248491['length']<0x1)return;const _0x20334d=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2d1c18=>_0x3e26ed['fromRange'](_0x2d1c18));_0x1d3b4c['setSelection'](_0x248491);for(const _0x2bcdc0 of this['_editor']['commands']['commands']())_0x2bcdc0['refresh']();_0x5d1283['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x586de7,..._0x5d1283);const _0x47e388=_0x20334d['filter'](_0x1f3e27=>'$graveyard'!=_0x1f3e27['root']['rootName']);_0x47e388['length']>0x0&&_0x1d3b4c['setSelection'](_0x47e388);for(const _0x334114 of _0x20334d)_0x334114['detach']();});},_0x1e29ac=(_0x88cab9,_0x38cb87)=>0x1==_0x88cab9['length']&&0x1==_0x38cb87['length']&&_0x88cab9[0x0]['end']['isEqual'](_0x38cb87[0x0]['start']),_0x3d23c5=(_0x19018a,_0x588b51,_0x219927,_0x4a1d2d)=>on(_0x19018a,_0x588b51,_0x219927,_0x4a1d2d)?[_0x19018a,_0x588b51]:on(_0x588b51,_0x19018a,_0x4a1d2d,_0x219927)?[_0x588b51,_0x19018a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x428047),this['_defaultCallbacks']['set']('insertion:discard',_0xae91f4),this['_defaultCallbacks']['set']('insertion:join',_0x1e29ac),this['_defaultCallbacks']['set']('insertion:chain',_0x3d23c5),this['_defaultCallbacks']['set']('deletion:accept',_0xae91f4),this['_defaultCallbacks']['set']('deletion:discard',_0x428047),this['_defaultCallbacks']['set']('deletion:join',_0x1e29ac),this['_defaultCallbacks']['set']('deletion:chain',_0x3d23c5),this['_defaultCallbacks']['set']('formatInline:accept',_0x327eb1),this['_defaultCallbacks']['set']('formatInline:discard',_0x428047),this['_defaultCallbacks']['set']('formatInline:join',_0x1e29ac),this['_defaultCallbacks']['set']('formatInline:chain',_0x428047),this['_defaultCallbacks']['set']('formatBlock:accept',_0x327eb1),this['_defaultCallbacks']['set']('formatBlock:discard',_0x428047),this['_defaultCallbacks']['set']('formatBlock:join',_0x1e29ac),this['_defaultCallbacks']['set']('formatBlock:chain',_0x428047),this['_defaultCallbacks']['set']('attribute:accept',_0x428047),this['_defaultCallbacks']['set']('attribute:discard',(_0x3a5581,_0x215421)=>{if(!_0x215421)return;const _0x373d12=this['_editor']['plugins']['get'](_0x3517fc);this['_model']['change'](_0x218b33=>{if(_0x215421['key']==Ke)for(const _0x4dee45 of _0x3a5581){const _0x57deba=_0x4dee45['start']['nodeAfter'],_0x3ecd53=_0x215421['oldValue'];_0x218b33['rename'](_0x57deba,_0x3ecd53);}else{if(_0x373d12['isBlockAttribute'](_0x215421['key'])){for(const _0x21c37a of _0x3a5581)void 0x0!==_0x215421['oldValue']?_0x218b33['setAttribute'](_0x215421['key'],_0x215421['oldValue'],_0x21c37a['start']['nodeAfter']):_0x218b33['removeAttribute'](_0x215421['key'],_0x21c37a['start']['nodeAfter']);}else{for(const _0x3e0b21 of _0x3a5581)_0x215421['oldValue']?_0x218b33['setAttribute'](_0x215421['key'],_0x215421['oldValue'],_0x3e0b21):_0x218b33['removeAttribute'](_0x215421['key'],_0x3e0b21);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1e29ac);}}function qe(_0xb67597,_0x323d95,_0x1b27e3){for(const _0x5f2cf8 of _0x323d95['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5f2cf8['root']==_0x5f2cf8)return!0x1;if(!_0x1b27e3['containsItem'](_0x5f2cf8))return!0x1;if(_0xb67597['isObject'](_0x5f2cf8)||_0xb67597['isLimit'](_0x5f2cf8))return!0x0;}return!0x1;}function Qe(_0x41f845){return _0x41f845['end']['parent']==_0x41f845['start']['nodeAfter']&&_0x41f845['end']['isAtStart'];}function Ze(_0x221687,_0x1ab8d1,_0x528bf2,_0x3b232e){const _0x43696b=_0x407f18=>!_0x407f18['item']['is']('$textProxy')&&!_0x3b232e['isObject'](_0x407f18['item']),_0xba2c80=_0x221687['start']['getLastMatchingPosition'](_0x43696b),_0x57ec5a=_0x221687['end']['getLastMatchingPosition'](_0x43696b,{'direction':'backward'});return(!_0x221687['start']['isEqual'](_0xba2c80)||!_0x221687['end']['isEqual'](_0x57ec5a))&&(_0xba2c80['isBefore'](_0x57ec5a)?_0x528bf2['updateMarker'](_0x1ab8d1,{'range':_0x528bf2['createRange'](_0xba2c80,_0x57ec5a)}):_0x528bf2['removeMarker'](_0x1ab8d1),!0x0);}function Je(_0x1b1168){return _0x408f0f(_0x1b1168);}function tn(_0x4250b2){const _0x49c5b6=_0x4250b2['start']['nodeAfter'];return _0x49c5b6&&_0x49c5b6['is']('element');}function en(_0x214081){return Qe(_0x214081)||function(_0x3d97ca){return _0x3d97ca['start']['parent']==_0x3d97ca['end']['nodeBefore']&&_0x3d97ca['start']['isAtEnd'];}(_0x214081);}function nn(_0x4a5daf,_0xd182bc){try{const _0x56731a=_0x4a5daf['getRange']();for(const _0x13a3c6 of _0xd182bc)if(_0x4a5daf!==_0x13a3c6&&_0x56731a&&_0x56731a['isIntersecting'](_0x13a3c6['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function sn(_0x4dd297,_0x187176){return null==_0x4dd297['end']['nodeBefore']&&_0x4dd297['end']['parent']==_0x4dd297['start']['nodeAfter']?rn(_0x4dd297['start']['nodeAfter'],_0x187176):_0x4dd297;}function rn(_0x34958d,_0x287667){const _0x3f66c6=_0x287667['schema']['isObject'](_0x34958d)||_0x287667['schema']['isSelectable'](_0x34958d);return _0x287667['createRange'](_0x287667['createPositionAt'](_0x34958d,'before'),_0x3f66c6?_0x287667['createPositionAfter'](_0x34958d):_0x287667['createPositionAt'](_0x34958d,'end'));}function on(_0x4c520f,_0x44da1f,_0x2a8ada,_0x357fe8){return!!an(_0x4c520f,_0x44da1f)&&_0x2a8ada['end']['isEqual'](_0x357fe8['start']);}function an(_0x297ef5,_0x588226){if(!_0x297ef5['_isDataLoaded']||!_0x588226['_isDataLoaded'])return!0x1;const _0x5aa235=new Set(Object['keys'](_0x297ef5['attributes'])),_0x455aa0=new Set(Object['keys'](_0x588226['attributes']));if(_0x5aa235['delete']('groupId'),_0x455aa0['delete']('groupId'),0x0==_0x5aa235['size']&&0x0==_0x455aa0['size'])return!0x0;if(_0x5aa235['size']!=_0x455aa0['size'])return!0x1;const _0x5b0790={..._0x297ef5['attributes']},_0x1a3bab={..._0x588226['attributes']};return delete _0x5b0790['groupId'],delete _0x1a3bab['groupId'],JSON['stringify'](_0x5b0790)==JSON['stringify'](_0x1a3bab);}function cn(_0x2127f6,_0x3a6e31){const _0x5e5860=ln(_0x2127f6['attributes']),_0x9e0e8a=ln(_0x3a6e31);if(!_0x2127f6['_isDataLoaded'])return!0x1;for(const _0x3f3321 of Object['keys'](_0x9e0e8a))if(!st(_0x5e5860[_0x3f3321],_0x9e0e8a[_0x3f3321]))return!0x1;return!0x0;}function ln(_0x415a97){const _0x2d2873=Object['assign']({},_0x415a97);return delete _0x2d2873['skipNestingCheck'],delete _0x2d2873['tablePasteChainId'],_0x2d2873;}function un(_0x33635f){return _0x33635f['split']('|')[0x0];}class hn extends/* #__PURE__ -- @preserve */
26
+ _0x13e55e(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5b4fca,_0x2b308f,_0x5509ff,_0x21da8c){super(),this['model']=_0x2b308f,this['view']=_0x5509ff,this['commentThreadController']=_0x21da8c,this['_editor']=_0x5b4fca,this['_acceptCommand']=_0x5b4fca['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5b4fca['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4bbf92,_0xece23d)=>_0x4bbf92||_0xece23d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4897d3=>_0x4897d3&&this['_editor']['model']['canEditAt'](_0x2b308f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x35a451=>_0x35a451&&this['_editor']['model']['canEditAt'](_0x2b308f['getRanges']())),this['_pendingAction']=null,_0x5509ff['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5509ff,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5509ff,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5509ff,'change:isDirty',()=>{_0x5509ff['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 _0x34326e=At(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x34326e);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class dn extends _0xd16ce8{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4de053,_0x41843e,_0x437939,_0x13d0cc){super(_0x4de053),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xb8c91(_0x4de053,At(_0x4de053,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x41843e['authoredAt']),this['bind']('authoredAt')['to'](_0x41843e),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',_0x41843e,'authoredAt',this,'descriptionParts',(_0x134f9e,_0x847d4,_0xc9190a)=>{const _0x39581f=_0xc9190a['map'](_0x5d38c1=>gt(_0x5d38c1['content']))['join']('.\x20')+'.';return At(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x134f9e-0x1,_0x41843e['author']['name'],_0x847d4?_0x13d0cc['formatDateTime'](_0x847d4):'',new DOMParser()['parseFromString'](_0x39581f,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5d830e(),this['focusTracker']=new _0x5f3c33(),this['keystrokes']=new _0x5b9390(),this['focusCycler']=new _0x4d88fb({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x534b1a=>_0x534b1a['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x41843e,this['_localUser']=_0x437939,this['_config']=_0x13d0cc,_0x13d0cc['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x244efc(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2a536c}=this['_config'];this['commentsListView']=new _0x2a536c(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',_0x26c22a=>_0x26c22a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x128555,_0x5d3dad)=>_0x128555||!!_0x5d3dad);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x21474d}=this['_config'],_0x41012e=new _0x21474d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x6150cb=_0x41012e['commentInputView'];return _0x41012e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x6150cb,'value',(_0x165d5f,_0x461c3d,_0x16b46a)=>!!_0x16b46a||_0x165d5f&&!_0x461c3d),_0x6150cb['on']('submit',(_0x546b1c,_0x13dca8)=>{this['fire']('addComment',_0x13dca8),_0x6150cb['editor']['setData']('');}),_0x6150cb['on']('cancel',()=>this['focus']()),_0x6150cb['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x41012e;}}class fn extends dn{['suggestionView'];['_descriptionElement'];constructor(_0x41c11b,_0x1d2266,_0x1647cb,_0x167a2a){super(_0x41c11b,_0x1d2266,_0x1647cb,_0x167a2a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x15cf92=>_0x15cf92&&_0x15cf92[0x0]?_0x15cf92[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5e4cb2,_0x18b534)=>{let _0x205f6c='';for(const _0x174f75 of _0x5e4cb2)_0x205f6c+='<p>'+gt(_0x174f75['content'],_0x174f75['color'])+'</p>';return _0x18b534?_0x205f6c:_0x40ae59(_0x205f6c,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x167a2a['SuggestionView'](_0x41c11b,_0x1d2266,{'formatDateTime':_0x167a2a['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 _0x28b32e=this['bindTemplate'],_0x2e1f61=[this['suggestionView']];return this['commentsListView']&&_0x2e1f61['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2e1f61['push'](this['commentThreadInputView']),_0x2e1f61['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x28b32e['if']('isActive','ck-suggestion-wrapper--active'),_0x28b32e['to']('type',_0x3dc9fe=>'ck-suggestion-'+_0x3dc9fe),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':_0x28b32e['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2e1f61};}['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 _0xd16ce8{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x446640,_0x7aa21f,_0x1fab4a){super(_0x446640),this['_model']=_0x7aa21f,this['_config']=_0x1fab4a,this['set']('description',''),this['bind']('authoredAt')['to'](_0x7aa21f),this['acceptButton']=this['_createButton'](At(_0x446640,'Accept\x20suggestion'),_0x1adb84,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](At(_0x446640,'Discard\x20suggestion'),_0x35103b,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5dedc4(_0x446640,_0x7aa21f['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5d830e([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5f3c33(),this['keystrokes']=new _0x5b9390(),this['focusCycler']=new _0x4d88fb({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x119dd1=>_0x119dd1['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x6a287a=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x6a287a['innerHTML']=this['description'],this['on']('change:description',(_0x5de8c1,_0x1ac707,_0x49f7b0)=>{_0x6a287a['innerHTML']=_0x49f7b0;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x282108=this['bindTemplate'],_0xd3f088=[{'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':_0x282108['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x282108['to']('authoredAt',_0x646bd3=>this['_config']['formatDateTime'](_0x646bd3))}]}]},{'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']&&_0xd3f088['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':_0xd3f088}]};}['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'](_0xf7d61e,_0x3d72e6,_0x2c1ede,_0x232c1d,_0x86d228){const _0x81410b=new _0x51a132(this['locale']);return _0x81410b['set']({'label':_0xf7d61e,'icon':_0x3d72e6,'tooltip':!0x0,'tooltipPosition':_0x86d228}),_0x81410b['extendTemplate']({'attributes':{'class':_0x2c1ede}}),_0x81410b['on']('execute',()=>{this['fire'](_0x232c1d,this['_model']['id']);}),_0x81410b;}['_setupKeyboardNavigation'](){const _0x10dec6=this['element'];this['keystrokes']['listenTo'](_0x10dec6);for(const _0x4d308c of this['focusables'])this['focusTracker']['add'](_0x4d308c['element']),this['keystrokes']['listenTo'](_0x4d308c['element']);this['keystrokes']['set']('enter',(_0x5ed3e8,_0x442a3f)=>{_0x10dec6===_0x5ed3e8['target']&&(this['focusCycler']['focusFirst'](),_0x442a3f());}),this['keystrokes']['set']('esc',(_0x43c2d0,_0x3da507)=>{_0x10dec6!==_0x43c2d0['target']&&(this['focus'](),_0x3da507());});}}class mn extends _0x55ebc7{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[Xe,_0x4c8879,_0x3c2b56,_0x13902d,_0x1121a4];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1fd7ad){super(_0x1fd7ad),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x73260e=this['editor']['config'];_0x73260e['define']('trackChanges.SuggestionThreadView',fn),_0x73260e['define']('trackChanges.SuggestionView',gn),_0x73260e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x73260e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x47ffb1,_0x2c7638){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2ffe0e,_0x572bca]of this['_handleControllerBuffer']){const _0x54b5cf=this['_suggestionToController']['has'](_0x2ffe0e);_0x54b5cf||_0x572bca?_0x54b5cf&&_0x572bca&&this['_destroyController'](_0x2ffe0e):this['_initializeController'](_0x2ffe0e);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x1121a4)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x47ffb1,_0x2c7638);}['init'](){const _0x493919=this['editor'],_0x35f54d=_0x493919['plugins']['get'](Xe),_0x11a6d0=_0x493919['plugins']['get'](_0x13902d),_0x2825c2=_0x493919['plugins']['get'](_0x1121a4),_0x526f15=_0x493919['plugins']['get'](_0x3c2b56);this['_addUIComponentsToFactory'](),_0x2825c2['addSourceCollector'](()=>{const _0x541759=[];for(const [_0x541c26,_0x4cecd2]of Array['from'](this['_suggestionToController'])){const _0x1fc170=_0x541c26['getAllAdjacentSuggestions'](),_0x410029=[];for(const _0x1bd0bc of _0x1fc170){if(!_0x1bd0bc['isInContent'])continue;if(_0x1bd0bc['isMultiRange']){_0x410029['push'](..._0x1bd0bc['getRanges']());continue;}const _0x423b1e=_0x1bd0bc['getFirstRange']();if(_0x410029['length']>0x0){const _0x100ba6=_0x410029[0x0]['getJoined'](_0x423b1e);if(_0x100ba6){_0x410029[0x0]=_0x100ba6;continue;}}_0x410029['push'](_0x423b1e);}_0x541759['push']([_0x4cecd2['view'],_0x410029]);}return _0x541759;}),this['listenTo'](_0x35f54d,'suggestionLoaded',(_0x53ba77,_0x3ae97b)=>{this['listenTo'](_0x3ae97b,'change:previous',(_0x2d4038,_0x4f306b,_0x562dfd,_0x7e91a7)=>{_0x3ae97b['isInContent']&&(null==_0x562dfd?(this['_updateController'](_0x7e91a7['head']),this['_handleSuggestionControllerDelayed'](_0x3ae97b,!0x1)):(this['_updateController'](_0x562dfd['head']),null==_0x7e91a7&&this['_handleSuggestionControllerDelayed'](_0x3ae97b,!0x0)));}),null!==_0x3ae97b['previous']?this['_updateController'](_0x3ae97b['head']):this['_handleSuggestionControllerDelayed'](_0x3ae97b,!0x1);}),this['listenTo'](_0x35f54d,'suggestionUnloaded',(_0x4d02fb,_0xebc814,_0x18d110)=>{this['stopListening'](_0xebc814,'change:previous'),this['_handleControllerBuffer']['delete'](_0xebc814),this['_suggestionToController']['has'](_0xebc814)&&this['_destroyController'](_0xebc814),_0x18d110&&this['_updateController'](_0x18d110['head']);}),this['listenTo'](_0x35f54d,'suggestionChanged',(_0x403893,_0x3c7bd2)=>{this['_updateController'](_0x3c7bd2);}),this['listenTo'](_0x11a6d0,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x526f15,'addComment',(_0x3f9513,{threadId:_0x389b91,isFromAdapter:_0x4a2bc1})=>{if(_0x4a2bc1||!_0x35f54d['hasSuggestion'](_0x389b91))return;const _0x21c58e=_0x35f54d['getSuggestion'](_0x389b91);this['_suggestionToController']['get'](_0x21c58e)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4ae491=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x280e95;for(const _0x19cb15 in _0x4ae491){const _0x2c6ddb=_0x19cb15,_0x2dfb8f=_0x4ae491[_0x2c6ddb];if('trackChangesLicenseKeyValid'==_0x2dfb8f||'trackChangesLicenseKeyInvalid'==_0x2dfb8f||'trackChangesLicenseKeyExpired'==_0x2dfb8f||'trackChangesLicenseKeyDomainLimit'==_0x2dfb8f||'trackChangesLicenseKeyNotAllowed'==_0x2dfb8f||'trackChangesLicenseKeyEvaluationLimit'==_0x2dfb8f||'trackChangesLicenseKeyUsageLimit'==_0x2dfb8f){delete _0x4ae491[_0x2c6ddb],_0x280e95=_0x2dfb8f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x280e95&&_0x4ae491['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x280e95&&_0x4ae491['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x280e95&&_0x4ae491['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x280e95&&_0x4ae491['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x280e95&&_0x4ae491['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x280e95&&_0x4ae491['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x1babe9){const _0x5c44d1=this['_suggestionToController']['get'](_0x1babe9);if(!_0x5c44d1)return null;return this['editor']['plugins']['get'](_0x13902d)['getByInnerView'](_0x5c44d1['view'])||null;}['getSuggestionForAnnotation'](_0xb2820a){const _0xc4ca90=this['_viewToController']['get'](_0xb2820a['innerView']);return _0xc4ca90?_0xc4ca90['model']:null;}['_refreshActiveMarkers'](){const _0x275f35=this['editor']['plugins']['get'](_0x13902d),_0x4a2043=this['editor']['plugins']['get'](Xe),_0x4f8f8d=Array['from'](_0x275f35['activeAnnotations'],_0x273a9f=>_0x273a9f['innerView'])['filter'](_0x14c2e5=>this['_viewToController']['has'](_0x14c2e5)),_0x59fa79=[];for(const _0x345944 of _0x4f8f8d){const _0x2c0362=this['_viewToController']['get'](_0x345944)['model']['getAllAdjacentSuggestions']();_0x59fa79['push'](..._0x2c0362['reduce']((_0x5991e1,_0x24bd16)=>[..._0x5991e1,..._0x24bd16['getMarkerNames']()],[]));}_0x4a2043['activeMarkers']=_0x59fa79;}['_addUIComponentsToFactory'](){const _0x16b8ed=this['editor'],_0x1a196d=_0x16b8ed['locale'],_0x53a1c1=At(_0x1a196d,'Track\x20changes'),_0xa1b02f=new _0x810344([{'type':'switchbutton','model':new _0x26339d({'withText':!0x0,'isToggleable':!0x0,'label':_0x53a1c1,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x26339d({'withText':!0x0,'label':At(_0x1a196d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x26339d({'withText':!0x0,'label':At(_0x1a196d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x26339d({'withText':!0x0,'label':At(_0x1a196d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x26339d({'withText':!0x0,'label':At(_0x1a196d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x16b8ed['plugins']['has']('TrackChangesPreview')&&_0xa1b02f['addMany']([{'type':'separator'},{'type':'button','model':new _0x26339d({'withText':!0x0,'label':At(_0x1a196d,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x555bb6 of _0xa1b02f)if(En(_0x555bb6)){const _0x3a8ef1=_0x16b8ed['commands']['get'](_0x555bb6['model']['commandName']);_0x555bb6['model']['bind']('isOn','isEnabled')['to'](_0x3a8ef1,'value','isEnabled');}_0x16b8ed['ui']['componentFactory']['add']('trackChanges',_0x176e14=>this['_createToolbarButton'](_0x176e14,_0xa1b02f,_0x53a1c1)),_0x16b8ed['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1646ae=>this['_createMenuBarMenu'](_0x1646ae,_0xa1b02f,_0x53a1c1));}['_createToolbarButton'](_0x3d7bbb,_0xc21095,_0x1c3138){const _0x530a72=_0x222c55(_0x3d7bbb,_0x3307d2),_0x5855b0=this['editor']['commands']['get']('trackChanges');_0x530a72['buttonView']['set']({'tooltip':_0x1c3138,'label':_0x1c3138,'icon':_0x35f55e}),_0x530a72['buttonView']['bind']('isOn')['to'](_0x5855b0,'value'),_0x530a72['buttonView']['on']('execute',()=>{_0x5855b0['execute'](),this['editor']['editing']['view']['focus']();}),_0x5511b6(_0x530a72,_0xc21095,{'role':'menu'});const _0x2340ec=[];for(const _0x5f1ad9 of _0xc21095)En(_0x5f1ad9)&&_0x2340ec['push'](this['editor']['commands']['get'](_0x5f1ad9['model']['commandName']));const _0x5e4a58=_0x530a72['buttonView'];return _0x5e4a58['actionView']['unbind']('isEnabled'),_0x5e4a58['arrowView']['unbind']('isEnabled'),_0x5e4a58['actionView']['bind']('isEnabled')['to'](_0x5855b0,'isEnabled'),_0x5e4a58['arrowView']['bind']('isEnabled')['toMany'](_0x2340ec,'isEnabled',(..._0x2a767e)=>_0x2a767e['some'](_0x1142d7=>_0x1142d7)),_0x530a72['on']('execute',_0x2ca55b=>{this['editor']['execute'](_0x2ca55b['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x530a72;}['_createMenuBarMenu'](_0xc0f641,_0x22eec3,_0x23d125){const _0x213a82=new _0xef9624(_0xc0f641),_0x317a6d=this['editor']['commands']['get']('trackChanges');_0x213a82['buttonView']['set']({'label':_0x23d125,'icon':_0x35f55e});const _0x5c2efb=new _0xeffb36(_0xc0f641);for(const _0x4c5579 of _0x22eec3){if('separator'==_0x4c5579['type']){_0x5c2efb['items']['add'](new _0x3a5db9(_0xc0f641));continue;}const _0x400b25=new _0x5293f1(_0xc0f641,_0x213a82),_0x1bb723=new _0x3a6084(_0xc0f641),_0x475689=_0x4c5579['model'];_0x1bb723['bind'](...Object['keys'](_0x475689))['to'](_0x475689),_0x1bb723['delegate']('execute')['to'](_0x213a82),_0x1bb723['on']('execute',()=>{this['editor']['execute'](_0x475689['commandName']),this['editor']['editing']['view']['focus']();}),_0x400b25['children']['add'](_0x1bb723),_0x5c2efb['items']['add'](_0x400b25);}return _0x213a82['bind']('isEnabled')['to'](_0x317a6d,'isEnabled'),_0x213a82['panelView']['children']['add'](_0x5c2efb),_0x213a82;}['_initializeController'](_0x53c75c){const _0x3beb8c=this['editor'],_0x24279d=_0x3beb8c['config'],_0x25858d=_0x3beb8c['plugins']['get'](_0x13902d),_0x4dab68=_0x3beb8c['plugins']['get'](_0x3c2b56),_0x2af6b6=_0x3beb8c['plugins']['get'](_0x1121a4),_0x45a076=_0x3beb8c['plugins']['get'](_0x4c8879)['me'],_0xf04492=_0x24279d['get']('trackChanges')['SuggestionThreadView'],_0x3acb4a=_0x24279d['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x361a30,CommentThreadInputView:_0x191557}=_0x3beb8c['plugins']['get']('CommentsUI');let _0x4c53bf,_0x452fb3,_0x3cf622;this['_annotationViews']['has'](_0x53c75c['id'])?(_0x452fb3=this['_annotationViews']['get'](_0x53c75c['id']),_0x4c53bf=_0x452fb3['mainView']):(_0x4c53bf=new _0xf04492(_0x3beb8c['locale'],_0x53c75c,_0x45a076,{'disableComments':this['_disableComments'],'editorConfig':{..._0x24279d['get']('comments.editorConfig'),'licenseKey':_0x24279d['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x24279d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x24279d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x24279d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x347435(_0x24279d['get']('locale'),_0x3beb8c['locale']),'CommentView':_0x24279d['get']('comments')['CommentView'],'CommentsListView':_0x361a30,'CommentThreadInputView':_0x191557,'SuggestionView':_0x3acb4a}),_0x4c53bf['suggestionView']['acceptButton']['on']('execute',()=>{_0x3beb8c['editing']['view']['focus']();}),_0x4c53bf['suggestionView']['discardButton']['on']('execute',()=>{_0x3beb8c['editing']['view']['focus']();}),_0x452fb3=_0x25858d['createAnnotationView'](this['editor']['locale'],_0x4c53bf),_0x452fb3['bind']('isDirty')['to'](_0x4c53bf,'isDirty'),_0x452fb3['bind']('length')['to'](_0x4c53bf),_0x452fb3['bind']('type')['to'](_0x4c53bf,'type',_0x134966=>'suggestion-'+_0x134966),_0x4c53bf['on']('escape',()=>{_0x3cf622['fire']('escape');}),this['_annotationViews']['set'](_0x53c75c['id'],_0x452fb3));const _0x293685=_0x4dab68['createCommentThreadController'](_0x53c75c['commentThread'],_0x4c53bf),_0x5ecd8e=new hn(_0x3beb8c,_0x53c75c,_0x4c53bf,_0x293685),_0x5f2de3=_0x53c75c['getAllAdjacentSuggestions']()['filter'](_0x1ee4bd=>_0x1ee4bd['isInContent']);_0x4c53bf['descriptionParts']=_0x3beb8c['plugins']['get'](Xe)['descriptionFactory']['getDescriptions'](_0x5f2de3),this['_suggestionToController']['set'](_0x53c75c,_0x5ecd8e),this['_viewToController']['set'](_0x4c53bf,_0x5ecd8e);const _0x95c4aa=()=>{const _0x598896=[],_0x2ec0d8=_0x53c75c['getAllAdjacentSuggestions']()['filter'](_0x1be63d=>_0x1be63d['isInContent']);for(const _0x20b8cc of _0x2ec0d8)_0x598896['push'](..._0x20b8cc['getMarkers']());return _0x35c07e(_0x3beb8c['editing'],_0x598896);};_0x3cf622=_0x25858d['createAnnotation']({'view':_0x452fb3,'target':_0x95c4aa,'type':()=>'suggestion-'+_0x5ecd8e['view']['type'],'isVisible':!!_0x95c4aa()}),_0x4dab68['_bindAnnotationToEditors'](_0x4c53bf,_0x3cf622),_0x25858d['add'](_0x3cf622),_0x2af6b6['registerAnnotation'](_0x3cf622);}['_destroyController'](_0x29a89f){const _0x27faf1=this['editor']['plugins']['get'](_0x3c2b56),_0x1e2490=this['editor']['plugins']['get'](_0x13902d),_0x295e53=this['_suggestionToController']['get'](_0x29a89f),_0x5aff7d=_0x295e53['view'],_0x51056a=_0x1e2490['getByInnerView'](_0x5aff7d);_0x27faf1['_unbindEditors'](_0x5aff7d),_0x51056a&&_0x1e2490['remove'](_0x51056a),this['_suggestionToController']['delete'](_0x29a89f),this['_viewToController']['delete'](_0x5aff7d),_0x295e53['destroy']();}['_updateController'](_0x255a4c){if(!_0x255a4c['isInContent']||!this['_suggestionToController']['has'](_0x255a4c))return;const _0x56abf2=this['editor']['plugins']['get'](Xe),_0x2b2142=this['_suggestionToController']['get'](_0x255a4c),_0x33a7a9=_0x255a4c['getAllAdjacentSuggestions']();_0x2b2142['view']['descriptionParts']=_0x56abf2['descriptionFactory']['getDescriptions'](_0x33a7a9);}['destroy'](){for(const _0x2d79d1 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2d79d1);for(const _0x4f3a76 of this['_annotationViews']['values']())_0x4f3a76['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function En(_0x3e06a5){return'model'in _0x3e06a5;}class Tn extends _0x55ebc7{static get['requires'](){return[Xe,mn,_0x3cc10d];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5ca751){this['editor']['plugins']['get'](Xe)['adapter']=_0x5ca751;}get['adapter'](){return this['editor']['plugins']['get'](Xe)['adapter'];}['addSuggestion'](_0x2abd57){return this['editor']['plugins']['get'](Xe)['addSuggestionData'](_0x2abd57);}['getSuggestions']({skipNotAttached:_0x137d24=!0x1,toJSON:_0x5e99fa=!0x1}={}){return this['editor']['plugins']['get'](Xe)['getSuggestions']({'skipNotAttached':_0x137d24,'toJSON':_0x5e99fa});}['getSuggestion'](_0x3d2d6c){return this['editor']['plugins']['get'](Xe)['getSuggestion'](_0x3d2d6c);}}const _n=['Pagination'];class pn extends _0x55ebc7{static get['requires'](){return[Xe];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x592313=this['editor'];if(_0x592313['config']['define']('trackChangesData.editorCreator',_0x2d6d8f=>{const _0x31f119=_0x592313['model']['document']['getRootNames']()['reduce']((_0x57716f,_0x3bd1c5)=>(_0x57716f[_0x3bd1c5]='',_0x57716f),{});return _0x592313['constructor']['create'](_0x31f119,_0x2d6d8f);}),'function'!=typeof _0x592313['config']['get']('trackChangesData')['editorCreator'])throw new _0x160e83('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1cbca7){return bn(this['editor'],!0x0,_0x1cbca7);}['getDataWithDiscardedSuggestions'](_0x54efed){return bn(this['editor'],!0x1,_0x54efed);}}class Ln extends _0x55ebc7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2d923d){function _0x4b2bae(_0x733857){return _0x733857['map'](_0xde37b8=>String['fromCharCode'](_0xde37b8))['join']('');}super(_0x2d923d),this['result']='end',_0x2d923d[_0x4b2bae([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b2bae([0x76,0x69,0x65,0x77])][_0x4b2bae([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4b2bae([0x61,0x75,0x74,0x6f]),_0x2d923d[_0x4b2bae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4b2bae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4b2bae([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4b2bae([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4b2bae([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(_0x5f2771){return void 0x0!==_0x5f2771['getRootsAttributes'];}async function bn(_0x365109,_0x463a5a,_0x6063e4){const _0x238364=_0x5b458b(_0x365109,_n);if(_0x238364['plugins']['push'](Xe,Ln),In(_0x365109)){_0x238364['roots']=Object['create'](null);for(const _0x4d07d2 of _0x365109['model']['document']['getRootNames']())_0x238364['roots'][_0x4d07d2]={'modelAttributes':_0x365109['getRootAttributes'](_0x4d07d2)};}const _0x4cd74e=document['createDocumentFragment'](),_0x1a83f7=_0x365109['config']['get']('trackChangesData')['editorCreator'],_0x692fb9=await _0x1a83f7(_0x238364,()=>function(_0x37c3ef){const _0x5955ee=document['createElement']('div');return _0x37c3ef['appendChild'](_0x5955ee),_0x5955ee;}(_0x4cd74e));!function(_0xc4da03,_0x3833cf){const _0x5e3dc8=_0xc4da03['model']['document']['getRootNames']()['reduce']((_0x1464a7,_0xe708ce)=>(_0x1464a7[_0xe708ce]=_0xc4da03['data']['get']({'rootName':_0xe708ce}),_0x1464a7),{}),_0x380999=_0xc4da03['plugins']['get']('Users')['users']['map'](_0x577e36=>({'id':_0x577e36['id'],'name':_0x577e36['name']})),_0x534902=_0xc4da03['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2ca262=_0xc4da03['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5dd5c4=_0x3833cf['plugins']['get']('Users'),_0x49c273=_0x3833cf['plugins']['get']('TrackChangesEditing'),_0x590e7e=_0x3833cf['plugins']['get']('CommentsRepository');for(const _0x348e81 of _0x590e7e['getCommentThreads']())_0x348e81['remove']();for(const _0xeebac8 of _0x380999)_0x5dd5c4['getUser'](_0xeebac8['id'])||_0x5dd5c4['addUser'](_0xeebac8);_0x5dd5c4['me']||_0x5dd5c4['useAnonymousUser']();for(const _0x3e9728 of _0x2ca262)_0x590e7e['addCommentThread'](_0x3e9728);for(const _0x5c6905 of _0x534902)_0x49c273['addSuggestionData'](_0x5c6905);_0x3833cf['data']['set'](_0x5e3dc8);}(_0x365109,_0x692fb9),_0x692fb9['execute'](_0x463a5a?'acceptAllSuggestions':'discardAllSuggestions');const _0x463299=In(_0x692fb9)?_0x692fb9['getFullData'](_0x6063e4):_0x692fb9['data']['get'](_0x6063e4);return await _0x692fb9['destroy'](),_0x463299;}class An extends _0xd16ce8{['options'];constructor(_0x2b6c33,_0x5ddb6d){super(_0x2b6c33),this['options']=_0x5ddb6d,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'](_0x5a8024,_0x298983){if(!this['element'])return;const _0x5a23d7=[];for(const [_0x46887f,_0xeffba3]of _0x5a8024){const _0x16e884=document['createElement']('div');_0x16e884['setAttribute']('data-ck-root-name',_0x46887f),_0x16e884['className']=_0xeffba3['classes']+'\x20ck-track-changes-preview__root-container',_0x16e884['innerHTML']=_0xeffba3['content'],_0x5a23d7['push'](_0x16e884);}_0x298983(this['element'],_0x5a23d7),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class kn extends _0xec382e{constructor(_0x19b66f){super(_0x19b66f),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3023fb=this['editor'],_0x48bc94=_0x3023fb['locale'],_0x2ae225=_0x3023fb['plugins']['get']('Dialog');let _0x3bffd9;const _0x251798=function(_0x486e2d){const _0x1ab630={};if('editables'in _0x486e2d['ui']['view']){for(const [_0x4edbf2,_0x392dcd]of Object['entries'](_0x486e2d['ui']['view']['editables']))_0x1ab630[_0x4edbf2]=_0x392dcd['element'];}else _0x1ab630[_0x486e2d['model']['document']['getRootNames']()[0x0]]=_0x486e2d['ui']['view']['editable']['element'];return _0x1ab630;}(_0x3023fb),_0x3bff44=function(_0x4a517c){let _0x25a15f=0x0;for(const _0x1acbd5 of Object['values'](_0x4a517c))_0x25a15f=Math['max'](_0x25a15f,_0x1acbd5['getBoundingClientRect']()['width']);let _0x4afad8=0x0;for(const _0x53b5f0 of Object['values'](_0x4a517c))_0x4afad8+=_0x53b5f0['getBoundingClientRect']()['height'];const _0xf4cde6=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x30eac1=Math['min'](_0x4afad8,_0xf4cde6);return{'width':_0x25a15f,'height':_0x30eac1};}(_0x251798);_0x2ae225['show']({'id':'finalContentPreview','title':At(_0x48bc94,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new An(_0x48bc94,{'dialogRects':_0x3bff44}),'onHide':()=>{_0x3bffd9['detachFromDom']();},'onShow':()=>{_0x3023fb['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x7b0237=>{const _0x4ae4f4=this['_standarizeRootsData'](_0x7b0237,_0x3023fb,_0x251798);_0x2ae225['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4ae4f4,_0x3023fb['config']['get']('trackChanges.preview.renderFunction'));}),_0x3bffd9=new _0x431aa3(_0x48bc94,[_0x2ae225['view']]),_0x3bffd9['attachToDom'](),_0x3bffd9['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3023fb['once']('destroy',()=>{_0x3bffd9['detachFromDom']();});const _0xef23a3=_0x2ae225['view']['headerView']['class'];_0x2ae225['view']['headerView']['class']=_0xef23a3?_0xef23a3+'\x20ck-reset_all':'ck-reset_all',_0x2ae225['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2ae225['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x140560=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4db1ba=_0x140560['previewMode'],_0x10248f={};if('$labels'===_0x4db1ba){for(const _0x3a60c8 of _0x140560['getMergeFieldsIds']())_0x10248f[_0x3a60c8]=_0x140560['getLabel'](_0x3a60c8)||_0x3a60c8;}else{const _0x56dd80='$defaultValues'===_0x4db1ba?_0x140560['getDefaultValues']():_0x140560['getDataSetValues'](_0x4db1ba,!0x0);for(const _0x1f6a75 of Object['entries'](_0x56dd80)){const [_0x2fe388,_0xbc3a17]=_0x1f6a75;_0x10248f[_0x2fe388]=null!==_0xbc3a17?_0xbc3a17:_0x140560['getLabel'](_0x2fe388)||_0x2fe388;}}return{'mergeFieldsData':_0x10248f};}['_standarizeRootsData'](_0x334d84,_0x4b4131,_0x1da81d){let _0x42c8bf;if('string'==typeof _0x334d84){const _0x482c25=_0x4b4131['model']['document']['getRootNames']()[0x0];_0x42c8bf={[_0x482c25]:_0x334d84};}else _0x42c8bf=_0x334d84;const _0x439af4=this['_fixMediaEmbeds'](_0x42c8bf,_0x4b4131),_0x51b7db=function(_0x130f63,_0x51a2a0){for(const [_0x1fa343,_0x5e97ba]of _0x130f63)_0x5e97ba['classes']=_0x51a2a0[_0x1fa343]['classList']['value']['replace']('ck-focused','');return _0x130f63;}(this['_sortRoots'](_0x4b4131)['reduce']((_0xa2c0d2,_0x357f76)=>(_0xa2c0d2['push']([_0x357f76,{'content':_0x439af4[_0x357f76],'classes':''}]),_0xa2c0d2),[]),_0x1da81d);return _0x51b7db;}['_fixMediaEmbeds'](_0x209d8a,_0xf85837){if(!_0xf85837['plugins']['has']('MediaEmbedEditing'))return _0x209d8a;const _0x3b0223=_0xf85837['plugins']['get']('MediaEmbedEditing');for(const [_0x3d5ef0,_0x3b62ca]of Object['entries'](_0x209d8a)){const _0x872b9e=document['createElement']('div');_0x872b9e['innerHTML']=_0x3b62ca,(_0x872b9e['querySelectorAll']('figure.media')['forEach'](_0x417055=>{const _0x48ec1d=_0x417055['querySelector']('oembed');if(_0x48ec1d){const _0x40243d=_0x48ec1d['getAttribute']('url');if(_0x40243d){const _0x2419a6=_0x3b0223['registry']['getMediaViewElement'](new et(_0xf85837['editing']['view']['document']),_0x40243d,{'elementName':'','renderForEditingView':!0x0}),_0x22dc5c=document['createElement']('div');_0x22dc5c['classList']['add']('ck-media__wrapper'),_0x2419a6['render'](_0x22dc5c,_0xf85837['editing']['view']['domConverter']),_0x48ec1d['replaceWith'](_0x22dc5c);}}}),_0x209d8a[_0x3d5ef0]=_0x872b9e['innerHTML']);}return _0x209d8a;}['_sortRoots'](_0x44dffb){if(!function(_0x34f726){return void 0x0!==_0x34f726['getRootsAttributes'];}(_0x44dffb))return _0x44dffb['model']['document']['getRootNames']();const _0x37ab55=[],_0x444d8c=new Map();for(const _0x2ba91f of _0x44dffb['model']['document']['getRootNames']()){const _0x11dc58=_0x44dffb['editing']['view']['getDomRoot'](_0x2ba91f)['getClientRects']()['item'](0x0);_0x37ab55['push'](_0x2ba91f),_0x444d8c['set'](_0x2ba91f,_0x11dc58);}return _0x37ab55['sort']((_0x149e27,_0xe13a28)=>{const _0x167fba=_0x444d8c['get'](_0x149e27),_0x439521=_0x444d8c['get'](_0xe13a28);return _0x167fba['y']-_0x439521['y']||_0x167fba['x']-_0x439521['x'];}),_0x37ab55;}}class Cn extends _0x55ebc7{static get['requires'](){return[pn,_0x405d92];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xf7c628){super(_0xf7c628),_0xf7c628['commands']['add']('previewFinalContent',new kn(this['editor'])),_0xf7c628['config']['define']('trackChanges.preview.renderFunction',(_0x7ad3d,_0x479b49)=>{for(const _0x22f73f of _0x479b49)_0x7ad3d['appendChild'](_0x22f73f);});}}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};