@ckeditor/ckeditor5-track-changes 48.0.0-alpha.0 → 48.0.0-alpha.10

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 _0x4e34c9,Plugin as _0x415703,PendingActions as _0x386e8c}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0x46ca9b,Annotations as _0x2df29c,EditorAnnotations as _0xb33161,Comments as _0x4645f8}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0x6f5b5c,ObservableMixin as _0x77f08d,uid as _0x1b4051,priorities as _0x4c7b2c,insertToPriorityArray as _0x5de656,logWarning as _0x3fe394,getEnvKeystrokeText as _0x27c93c,FocusTracker as _0x1be3ed,KeystrokeHandler as _0xcaced1,Collection as _0xa2a2df}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x1525c2,IconCancel as _0x1caf14,IconTrackChanges as _0x442a35}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x1014bc,View as _0x59921f,ViewCollection as _0x2a12e6,FocusCycler as _0x1f4f0e,UIModel as _0x1c710a,createDropdown as _0x3a323a,SplitButtonView as _0x17ee78,addListToDropdown as _0x442d8a,MenuBarMenuView as _0x5458f7,MenuBarMenuListView as _0x5c6839,ListSeparatorView as _0x17664c,MenuBarMenuListItemView as _0xcfe264,MenuBarMenuListItemButtonView as _0x47a0b7,BodyCollection as _0x5abfab,Dialog as _0x106427}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x4fd2b2,SuggestionsConversion as _0x1d1da3,Users as _0x5e36d7,DocumentCompare as _0x31f3f8,fixElementSuggestionRange as _0x3de9f1,hashObject as _0x1f82ff,surroundingMarkersDetector as _0x57ec00,FOCUS_ANNOTATION_KEYSTROKE as _0x4b5228,AriaDescriptionView as _0x33b0b8,setupThreadKeyboardNavigation as _0x5d021a,trimHtml as _0x435809,UserView as _0x22fded,LateFocusButtonView as _0x8557f,getDateTimeFormatter as _0x38da10,getAllMarkersDomElementsSorted as _0x1ada61,sanitizeEditorConfig as _0x264e57}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x967e5b,ModelLiveRange as _0x3aace6,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 _0x4e34c9{['_enabledCommands'];constructor(_0x280b11,_0x4d9027){super(_0x280b11),this['_enabledCommands']=_0x4d9027,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 _0x168df5 of this['editor']['commands']['commands']())_0x168df5['affectsData']&&!this['_enabledCommands']['has'](_0x168df5)&&_0x168df5['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xd40ee6 of this['editor']['commands']['commands']())_0xd40ee6['affectsData']&&!this['_enabledCommands']['has'](_0xd40ee6)&&_0xd40ee6['clearForceDisabled']('TrackChangesCommand');}}class dt extends _0x4e34c9{['_suggestions'];constructor(_0x5d2798,_0x5c6e0c){super(_0x5d2798),this['_suggestions']=_0x5c6e0c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x35efd2){const _0x63b4ea=this['_suggestions']['get'](_0x35efd2);if(!_0x63b4ea)throw new _0x6f5b5c('track-changes-accept-suggestion-not-found',this);const _0x52d8cb=_0x63b4ea['getRanges']();this['editor']['model']['canEditAt'](_0x52d8cb)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x63b4ea);}}class ft extends _0x4e34c9{['_suggestions'];constructor(_0x55f2a7,_0x4bee97){super(_0x55f2a7),this['_suggestions']=_0x4bee97,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3f25d1){const _0x57c00b=this['_suggestions']['get'](_0x3f25d1);if(!_0x57c00b)throw new _0x6f5b5c('track-changes-discard-suggestion-not-found',this);const _0x5566a2=_0x57c00b['getRanges']();this['editor']['model']['canEditAt'](_0x5566a2)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x57c00b);}}function gt(_0x5fc0f2,_0xacc777){let _0x41160e='';return _0x41160e+=_0x5fc0f2['split']('*')['map']((_0x248afb,_0x556332)=>_0x556332%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+mt(_0x248afb)+'</span>':mt(_0x248afb))['join'](''),_0xacc777&&(_0x41160e+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xacc777['value']+'\x22\x20title=\x22'+_0xacc777['title']+'\x22></span>'),_0x41160e;}function mt(_0x2723c4){const _0x18db09=document['createElement']('span');return _0x18db09['innerText']=_0x2723c4,_0x18db09['innerHTML'];}function Et(_0x41001f){return _0x41001f['sort']((_0x2e47d8,_0x1b3616)=>'attribute'===_0x2e47d8['type']&&'attribute'!==_0x1b3616['type']?-0x1:'attribute'!==_0x2e47d8['type']&&'attribute'===_0x1b3616['type']?0x1:'deletion'==_0x2e47d8['type']&&'deletion'!=_0x1b3616['type']?-0x1:'deletion'!=_0x2e47d8['type']&&'deletion'==_0x1b3616['type']?0x1:0x0);}function Tt(_0x3b1a13,_0x15f0d7){let _0x12afea,_0x2c55f5=0x0;const _0x5f19c1=[],_0x45b9e3=_0x15f0d7['schema'];for(;_0x2c55f5<_0x3b1a13['length'];){const _0x287c22=_0x3b1a13[_0x2c55f5],_0x214ade=_0x3b1a13[_0x2c55f5+0x1];_0x12afea||(_0x12afea=_0x15f0d7['createPositionBefore'](_0x287c22)),_t(_0x15f0d7,_0x287c22,_0x214ade)||(_0x5f19c1['push'](_0x15f0d7['createRange'](_0x12afea,_0x45b9e3['isObject'](_0x287c22)?_0x15f0d7['createPositionAfter'](_0x287c22):_0x15f0d7['createPositionAt'](_0x287c22,'end'))),_0x12afea=null),_0x2c55f5++;}return _0x5f19c1;}function _t(_0x8f4ca5,_0x5ab75d,_0x53891a){if(!_0x53891a)return!0x1;const _0x3be28b=_0x8f4ca5['createPositionAfter'](_0x5ab75d),_0x53efea=_0x8f4ca5['createPositionBefore'](_0x53891a);return _0x3be28b['isTouching'](_0x53efea);}function pt(_0x314c16,_0x3e16db,_0x41800a){for(;_0x41800a['length'];){const _0x164a95=_0x41800a['splice'](0x0,0x64);_0x314c16['change'](()=>{for(const _0x2f60a2 of _0x164a95)_0x2f60a2['isInContent']&&_0x3e16db['execute'](_0x2f60a2['id']);});}}class Lt extends _0x4e34c9{['_command'];['_suggestions'];constructor(_0x4c6a03,_0x2ceb1c,_0x5874a4){super(_0x4c6a03),this['_command']=_0x2ceb1c,this['_suggestions']=_0x5874a4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x124155=Array['from'](this['_suggestions']['values']())['some'](_0x2c626c=>_0x2c626c['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x124155;}['execute'](){const _0x3c7d72=Et(Array['from'](this['_suggestions']['values']()));for(const _0x4ae47e of _0x3c7d72){const _0x56ad5b=_0x4ae47e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x56ad5b))return;}pt(this['editor']['model'],this['_command'],_0x3c7d72);}}class It extends _0x4e34c9{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4366e3,_0x376c1a,_0x501290){super(_0x4366e3),this['_command']=_0x376c1a,this['_suggestions']=_0x501290,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4fe8f6=this['editor']['model']['document']['selection'],_0x41e8f9=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5c9a61,_0x128201){const _0x4c5300=Array['from'](_0x5c9a61['getRanges']()),_0x237ead=new Set();for(const _0x1b631c of _0x128201)if(_0x1b631c['isInContent']){for(const _0x2cd6db of _0x4c5300)for(const _0x2ce3ab of _0x1b631c['getRanges']())(_0x2cd6db['isIntersecting'](_0x2ce3ab)||_0x5c9a61['isCollapsed']&&!_0x1b631c['isMultiRange']&&_0x1b631c['next']&&_0x2ce3ab['end']['isTouching'](_0x2cd6db['start']))&&_0x237ead['add'](_0x1b631c);}return _0x237ead;}(_0x4fe8f6,_0x41e8f9),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xce524=Et(Array['from'](this['_selectedSuggestions']));for(const _0x59b169 of _0xce524){const _0x42d68a=_0x59b169['getRanges']();if(!this['editor']['model']['canEditAt'](_0x42d68a))return;}pt(this['editor']['model'],this['_command'],_0xce524);}}class bt extends/* #__PURE__ -- @preserve */
24
- _0x77f08d(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1545e7,_0x4586c7){super(),this['id']=_0x4586c7['id'],this['type']=_0x4586c7['type'],this['subType']=_0x4586c7['subType']||null,this['author']=_0x4586c7['author'],this['creator']=_0x4586c7['creator']||_0x4586c7['author'],this['isExternal']=Boolean(_0x4586c7['attributes']&&_0x4586c7['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x4586c7['originalSuggestionId']||null,this['_model']=_0x1545e7,this['_onAccept']=_0x4586c7['onAccept'],this['_onDiscard']=_0x4586c7['onDiscard'],this['_onAttributesChange']=_0x4586c7['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4586c7['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 _0x3b3e97=this;for(;_0x3b3e97['previous'];)_0x3b3e97=_0x3b3e97['previous'];return _0x3b3e97;}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'](_0x3e1015){this['_markerNames']['add'](_0x3e1015);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x46ef95=>this['_model']['markers']['get'](_0x46ef95))['filter'](_0x358ca6=>_0x358ca6);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x51b842=>{for(const _0x41fb0c of this['getMarkers']())_0x51b842['removeMarker'](_0x41fb0c);}),this['_markerNames']['clear']();}['removeMarker'](_0x56e1ce){this['_model']['change'](_0x2be416=>{_0x2be416['removeMarker'](_0x56e1ce);}),this['_markerNames']['delete'](_0x56e1ce);}['addRange'](_0x3ab35f){const _0x253275='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+bt['getMultiRangeId']();this['addMarkerName'](_0x253275),this['_model']['change'](_0x4771bb=>{_0x4771bb['addMarker'](_0x253275,{'range':_0x3ab35f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xa4eace){for(const _0x40df7a of this['getRanges']())if(_0x40df7a['isIntersecting'](_0xa4eace))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x27cec8=>_0x27cec8['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x581bdd,_0x33d3ff)=>[..._0x581bdd,..._0x33d3ff['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x39b73d=this['getRanges']();if(0x1!=_0x39b73d['length'])return null;const _0x3dd1a7=_0x39b73d[0x0],_0x3e52d8=_0x3dd1a7['start']['nodeAfter'],_0x285995=_0x3dd1a7['end']['nodeBefore'];return _0x3e52d8 instanceof _0x967e5b?_0x3e52d8!=_0x285995?null:_0x3e52d8: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 _0x559090=[];let _0x3544cc=this['head'];for(;_0x3544cc;)_0x559090['push'](_0x3544cc),_0x3544cc=_0x3544cc['next'];return _0x559090;}['setAttribute'](_0x4728ef,_0x5b9329){const _0x1a08dd=nt(this['attributes']);it(_0x1a08dd,_0x4728ef,_0x5b9329),st(_0x1a08dd,this['attributes'])||(this['attributes']=_0x1a08dd,this['_onAttributesChange'](_0x1a08dd));}['removeAttribute'](_0x3b0452){const _0x5cd6e2=nt(this['attributes']);rt(_0x5cd6e2,_0x3b0452),st(_0x5cd6e2,this['attributes'])||(this['attributes']=_0x5cd6e2,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 _0x1b4051()['substr'](0x1,0x5);}}function At(_0x131f0f,_0x5b6cba,_0x2bbaf0){const _0x7f2878=_0x131f0f['t'],t=_0x131f0f['t'];switch(_0x5b6cba){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',_0x2bbaf0);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2bbaf0);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2bbaf0);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2bbaf0);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2bbaf0);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',_0x2bbaf0);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2bbaf0);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',_0x2bbaf0);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2bbaf0);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2bbaf0);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2bbaf0);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2bbaf0);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2bbaf0);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2bbaf0);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2bbaf0);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2bbaf0);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2bbaf0);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2bbaf0);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2bbaf0);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2bbaf0);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2bbaf0);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2bbaf0);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2bbaf0);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2bbaf0);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2bbaf0);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'},_0x2bbaf0);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2bbaf0);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2bbaf0);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2bbaf0);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2bbaf0);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2bbaf0);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2bbaf0);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2bbaf0);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'},_0x2bbaf0);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2bbaf0);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2bbaf0);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2bbaf0);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2bbaf0);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'},_0x2bbaf0);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2bbaf0);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'},_0x2bbaf0);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'},_0x2bbaf0);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2bbaf0);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'},_0x2bbaf0);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2bbaf0);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'},_0x2bbaf0);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2bbaf0);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x2bbaf0);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x2bbaf0);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x2bbaf0);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2bbaf0);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'},_0x2bbaf0);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2bbaf0);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 _0x7f2878({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2bbaf0);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x7f2878({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2bbaf0);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2bbaf0);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'},_0x2bbaf0);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'},_0x2bbaf0);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'},_0x2bbaf0);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5b6cba;}}class kt{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2e00a0,_0x1ead38){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2e00a0,this['_locale']=_0x1ead38;}['getDescriptions'](_0x4ffc21){const _0xa106c5=[],_0x1749c4=new Set(),_0x3387c6=new Set();for(let _0x11e50b=0x0;_0x11e50b<_0x4ffc21['length'];_0x11e50b++){const _0x5381aa=_0x4ffc21[_0x11e50b];if(!_0x5381aa['isInContent'])continue;const _0x4ad8f1=this['_handleCustomCallbackDescription'](_0x5381aa);if(_0x4ad8f1){if(null!=_0x5381aa['subType']){if(_0x1749c4['has'](_0x5381aa['subType']))continue;_0x1749c4['add'](_0x5381aa['subType']);}_0xa106c5['push'](_0x4ad8f1);}else{if('attribute'==_0x5381aa['type']){const _0x16e0d1=_0x5381aa['data']['key'];if(_0x3387c6['has'](_0x16e0d1))continue;_0x3387c6['add'](_0x5381aa['data']['key']),_0x16e0d1==Ke?this['_handleRenameSuggestionDescription'](_0xa106c5,_0x5381aa):this['_handleAttributeSuggestionDescription'](_0xa106c5,_0x5381aa);continue;}'insertion'!=_0x5381aa['type']&&'deletion'!=_0x5381aa['type']||this['_handleInsertRemoveSuggestionDescription'](_0xa106c5,_0x5381aa,_0x4ffc21[_0x11e50b+0x1]);}}return this['_resolveDescriptionItems'](_0xa106c5);}['registerDescriptionCallback'](_0x21fe85){this['_customCallbacks']['push'](_0x21fe85);}['registerElementLabel'](_0x5ed098,_0x3a6ebe,_0x222988=_0x4c7b2c['normal']){'function'==typeof _0x5ed098?_0x5de656(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5ed098,'label':_0x3a6ebe,'priority':_0x222988}):this['_itemLabels']['set'](_0x5ed098,_0x3a6ebe);}['registerAttributeLabel'](_0x4db118,_0x55244e){this['_attributeLabels']['set'](_0x4db118,_0x55244e);}['getItemLabel'](_0x15a2da,_0x44970b=0x1){let _0x472251;for(const _0x1060d3 of this['_itemLabelsCallbacks'])if(_0x1060d3['matchingCallback'](_0x15a2da)){_0x472251=_0x1060d3['label'];break;}return _0x472251||(_0x472251=this['_itemLabels']['get'](_0x15a2da['name'])),_0x472251?_0x472251(_0x44970b):0x1!==_0x44970b?_0x44970b+'\x20'+_0x15a2da['name']+'s':''+_0x15a2da['name'];}['_addDescriptionItems'](_0x45083d,_0x399763){const _0x4d60f8=_0x399763['getFirstRange']()['getWalker'](),_0x32ded6='insertion'==_0x399763['type']?'add':'remove';for(const _0x3d37b0 of _0x4d60f8){const _0x2c17db=_0x3d37b0['item'],_0x4c8108=_0x45083d[_0x45083d['length']-0x1];if(_0x2c17db['is']('$textProxy'))_0x4c8108&&_0x4c8108['type']['indexOf']('Container')>-0x1&&_0x45083d['pop'](),_0x4c8108&&'text'==_0x4c8108['type']?_0x4c8108[_0x32ded6]+=_0x2c17db['data']:_0x45083d['push']({'type':'text','add':'add'==_0x32ded6?_0x2c17db['data']:'','remove':'remove'==_0x32ded6?_0x2c17db['data']:''});else{if(this['_schema']['isObject'](_0x2c17db)){const _0x33d89e=_0x2c17db;if(_0x4c8108&&_0x4c8108['type']['indexOf']('Container')>-0x1&&_0x45083d['pop'](),'elementEnd'==_0x3d37b0['type'])continue;_0x4c8108&&_0x4c8108['type']==_0x32ded6+'Object'&&_0x4c8108['element']['name']==_0x33d89e['name']?_0x4c8108['quantity']++:_0x45083d['push']({'type':_0x32ded6+'Object','element':_0x33d89e,'quantity':0x1}),_0x4d60f8['skip'](_0x4a567f=>!('elementEnd'==_0x4a567f['type']&&_0x4a567f['item']==_0x2c17db));}else{if(this['_schema']['checkChild'](_0x2c17db,'$text')||_0x2c17db['is']('element','softBreak')){const _0x15c77e=_0x2c17db;if('add'==_0x32ded6&&'elementStart'==_0x3d37b0['type']||'remove'==_0x32ded6&&'elementEnd'==_0x3d37b0['type'])continue;if(_0x4c8108&&-0x1==_0x4c8108['type']['indexOf']('Container')){'text'==_0x4c8108['type']&&(_0x4c8108[_0x32ded6]+='\x0a');continue;}let _0xeea8f8;if(_0xeea8f8='add'==_0x32ded6?_0x15c77e['nextSibling']&&!this['_schema']['isObject'](_0x15c77e['nextSibling'])?_0x15c77e['nextSibling']:null:_0x15c77e['previousSibling']&&!this['_schema']['isObject'](_0x15c77e['previousSibling'])?_0x15c77e['previousSibling']:null,_0x15c77e['isEmpty']||_0xeea8f8&&_0xeea8f8['isEmpty']){const _0x9ef52a=_0xeea8f8&&_0xeea8f8['isEmpty']?_0xeea8f8:_0x15c77e;_0x4c8108&&_0x4c8108['type']==_0x32ded6+'EmptyContainer'&&_0x4c8108['element']['name']==_0x9ef52a['name']?_0x4c8108['quantity']++:_0x45083d['push']({'type':_0x32ded6+'EmptyContainer','element':_0x9ef52a,'quantity':0x1});}else _0x45083d['push']({'type':_0x32ded6+'Container','element':_0x15c77e});}}}}}['_resolveDescriptionItems'](_0xcac9ae){const _0x2dc253=this['_locale'],_0x1ad8e0=[],_0x59598e=[],_0x532cd2=[];for(const _0x36d014 of _0xcac9ae)switch(_0x36d014['type']){case'text':if(_0x36d014['add']=_0x36d014['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x36d014['remove']=_0x36d014['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x36d014['add']&&''!=_0x36d014['remove']){_0x1ad8e0['push']({'type':'replace','content':At(_0x2dc253,'REPLACE_TEXT',['\x22'+_0x36d014['remove']+'\x22','\x22'+_0x36d014['add']+'\x22'])});continue;}if(null!=_0x36d014['add']['match'](/^ +$/)){_0x1ad8e0['push']({'type':'insertion','content':At(_0x2dc253,'*Insert:*\x20%0',At(_0x2dc253,'ELEMENT_SPACE',_0x36d014['add']['length']))});continue;}if(null!=_0x36d014['remove']['match'](/^ +$/)){_0x1ad8e0['push']({'type':'deletion','content':At(_0x2dc253,'*Remove:*\x20%0',At(_0x2dc253,'ELEMENT_SPACE',_0x36d014['remove']['length']))});continue;}if(''!=_0x36d014['add']){_0x1ad8e0['push']({'type':'insertion','content':At(_0x2dc253,'*Insert:*\x20%0','\x22'+_0x36d014['add']+'\x22')});continue;}_0x1ad8e0['push']({'type':'deletion','content':At(_0x2dc253,'*Remove:*\x20%0','\x22'+_0x36d014['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1ad8e0['push']({'type':'insertion','content':At(_0x2dc253,'*Insert:*\x20%0',this['getItemLabel'](_0x36d014['element'],_0x36d014['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1ad8e0['push']({'type':'deletion','content':At(_0x2dc253,'*Remove:*\x20%0',this['getItemLabel'](_0x36d014['element'],_0x36d014['quantity']))});continue;case'addContainer':_0x1ad8e0['push']({'type':'insertion','content':At(_0x2dc253,'*Split:*\x20%0',this['getItemLabel'](_0x36d014['element'],_0x36d014['quantity']))});continue;case'removeContainer':_0x1ad8e0['push']({'type':'deletion','content':At(_0x2dc253,'*Merge:*\x20%0',this['getItemLabel'](_0x36d014['element'],_0x36d014['quantity']))});continue;case'addFormat':_0x59598e['push'](_0x36d014['key']);continue;case'removeFormat':_0x532cd2['push'](_0x36d014['key']);continue;default:_0x1ad8e0['push'](_0x36d014);}if(_0x59598e['length']){const _0x2e07b8=_0x59598e['map'](_0x49fb7d=>this['_attributeLabels']['has'](_0x49fb7d)?this['_attributeLabels']['get'](_0x49fb7d):_0x49fb7d)['join'](',\x20');_0x1ad8e0['push']({'type':'format','content':At(this['_locale'],'*Set\x20format:*\x20%0',_0x2e07b8)});}if(_0x532cd2['length']){const _0x20af05=_0x532cd2['map'](_0x5e7668=>this['_attributeLabels']['has'](_0x5e7668)?this['_attributeLabels']['get'](_0x5e7668):_0x5e7668)['join'](',\x20');_0x1ad8e0['push']({'type':'format','content':At(this['_locale'],'*Remove\x20format:*\x20%0',_0x20af05)});}return _0x1ad8e0;}['_handleCustomCallbackDescription'](_0x5cf549){for(const _0x729874 of this['_customCallbacks']){const _0x5473fb=_0x729874(_0x5cf549);if(_0x5473fb&&'type'in _0x5473fb)return _0x5473fb;}}['_handleAttributeSuggestionDescription'](_0x4b1e8d,_0x4e2ed2){const _0x56f976=_0x4e2ed2['data'],_0x26103f=void 0x0===_0x56f976['newValue']?'removeFormat':'addFormat';_0x4b1e8d['push']({'type':_0x26103f,'key':_0x56f976['key']});}['_handleRenameSuggestionDescription'](_0x564c4e,_0x562fb5){_0x564c4e['push']({'type':'format','content':At(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x562fb5['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x30c7a1,_0x1da474,_0x2cd69e){if(this['_addDescriptionItems'](_0x30c7a1,_0x1da474),_0x2cd69e&&_0x2cd69e['getFirstRange']()&&!_0x1da474['getFirstRange']()['end']['isEqual'](_0x2cd69e['getFirstRange']()['start'])){const _0x20a97a=_0x30c7a1[_0x30c7a1['length']-0x1],_0x44a6dc='insertion'==_0x1da474['type']?'add':'remove';_0x20a97a&&'text'==_0x20a97a['type']&&(_0x20a97a[_0x44a6dc]+='\x0a');}}}class Ct extends _0x415703{['afterInit'](){const _0xc37100=this['editor'],_0x3119d5=_0xc37100['plugins']['get']('TrackChangesEditing');_0xc37100['commands']['get']('showAIAssistant')&&_0x3119d5['enableCommand']('showAIAssistant');}}class yt extends _0x415703{['afterInit'](){const _0xc3ac67=this['editor'],_0x8d1116=_0xc3ac67['plugins']['get']('TrackChangesEditing');_0xc3ac67['commands']['get']('toggleAi')&&_0x8d1116['enableCommand']('toggleAi');}}class Nt extends _0x415703{['afterInit'](){const _0x437eac=this['editor'],_0x3f3f5e=_0x437eac['plugins']['get']('TrackChangesEditing');_0x437eac['commands']['get']('aiQuickAction')&&_0x3f3f5e['enableCommand']('aiQuickAction');}}class Rt extends _0x415703{['afterInit'](){const _0x38b276=this['editor'],_0x41c0f9=_0x38b276['locale'];if(!_0x38b276['plugins']['has']('AlignmentEditing'))return;const _0x48302f=_0x38b276['plugins']['get']('TrackChangesEditing');_0x48302f['enableDefaultAttributesIntegration']('alignment'),_0x48302f['descriptionFactory']['registerAttributeLabel']('alignment',At(_0x41c0f9,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e2a5f=this['editor'],_0x480af2=_0x4e2a5f['locale'];_0x4e2a5f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47702b=>{if('formatBlock'!=_0x47702b['type'])return;const {data:_0x23f792}=_0x47702b;if(_0x23f792&&'alignment'==_0x23f792['commandName']){const _0x31f5c7=_0x23f792['commandParams'][0x0]['value'];return{'type':'format','content':At(_0x480af2,'*Format:*\x20%0',function(_0xc69dc7){switch(_0xc69dc7){case'left':return At(_0x480af2,'FORMAT_ALIGN_TO_LEFT');case'right':return At(_0x480af2,'FORMAT_ALIGN_TO_RIGHT');case'center':return At(_0x480af2,'FORMAT_ALIGN_TO_CENTER');case'justify':return At(_0x480af2,'FORMAT_JUSTIFY_TEXT');}}(_0x31f5c7))};}});}}const St=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Mt extends _0x415703{['afterInit'](){const _0x2eed26=this['editor'],_0x419778=_0x2eed26['plugins']['get']('TrackChangesEditing'),_0x2d1f15=_0x2eed26['locale'];for(const _0x18dfc9 of St){if(!_0x2eed26['plugins']['has'](_0x18dfc9))continue;const _0x499303=_0x18dfc9['slice'](0x0,-0x7)['toLowerCase'](),_0x1eec25='FORMAT_'+_0x499303['toUpperCase']();_0x419778['enableDefaultAttributesIntegration'](_0x499303),_0x419778['descriptionFactory']['registerAttributeLabel'](_0x499303,At(_0x2d1f15,_0x1eec25));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16569b=this['editor'],_0xea6495=_0x16569b['locale'],_0x5a20c4=_0x16569b['plugins']['get']('TrackChangesEditing');function _0x30b698(_0x4fdc89,_0x9f9927){_0x5a20c4['descriptionFactory']['registerDescriptionCallback'](_0xbb1288=>{if('formatInline'!=_0xbb1288['type'])return;const {data:_0x4e531a}=_0xbb1288;return _0x4e531a&&_0x4e531a['commandName']===_0x4fdc89?_0x4e531a['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0xea6495,'*Format:*\x20%0',_0x9f9927)}:{'type':'format','content':At(_0xea6495,'*Remove\x20format:*\x20%0',_0x9f9927)}:void 0x0;});}_0x30b698('bold',At(_0xea6495,'FORMAT_BOLD')),_0x30b698('italic',At(_0xea6495,'FORMAT_ITALIC')),_0x30b698('underline',At(_0xea6495,'FORMAT_UNDERLINE')),_0x30b698('code',At(_0xea6495,'FORMAT_CODE')),_0x30b698('strikethrough',At(_0xea6495,'FORMAT_STRIKETHROUGH')),_0x30b698('subscript',At(_0xea6495,'FORMAT_SUBSCRIPT')),_0x30b698('superscript',At(_0xea6495,'FORMAT_SUPERSCRIPT'));}}class Ot extends _0x415703{['afterInit'](){const _0x29ceb8=this['editor'],_0x365417=_0x29ceb8['locale'];if(!_0x29ceb8['plugins']['has']('BlockQuoteEditing'))return;const _0x1e7aa0=_0x29ceb8['plugins']['get']('TrackChangesEditing'),_0x3fb1e6=this['editor']['commands']['get']('blockQuote');_0x1e7aa0['enableCommand']('blockQuote',(_0x2c4a19,_0x9588d4={})=>{const _0x1682f4=this['editor']['model']['document']['selection'],_0x405600=_0x9588d4&&void 0x0!==_0x9588d4['forceValue']?_0x9588d4['forceValue']:!_0x3fb1e6['value'];let _0xd14335=[];if(_0x405600){const _0x1a8ab3=Array['from'](_0x1682f4['getSelectedBlocks']())['filter'](_0x4e0cb7=>wt(_0x4e0cb7)||function(_0x3d42aa,_0x1c3e24){const _0x2129f6=_0x1c3e24['checkChild'](_0x3d42aa['parent'],'blockQuote'),_0x186db6=_0x1c3e24['checkChild'](['$root','blockQuote'],_0x3d42aa);return _0x2129f6&&_0x186db6;}(_0x4e0cb7,this['editor']['model']['schema']));_0xd14335=Tt(_0x1a8ab3,_0x29ceb8['model']);}else{const _0x1696cc=Array['from'](_0x1682f4['getSelectedBlocks']())['filter'](_0x2d93c9=>wt(_0x2d93c9));_0xd14335=Tt(_0x1696cc,_0x29ceb8['model']);}_0x29ceb8['model']['change'](()=>{for(const _0x558c22 of _0xd14335)_0x1e7aa0['markBlockFormat'](_0x558c22,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x405600}]});});}),_0x1e7aa0['descriptionFactory']['registerDescriptionCallback'](_0x44f25f=>{const {data:_0x574f14}=_0x44f25f;if(_0x574f14&&'blockQuote'==_0x574f14['commandName']){const _0x1a188c=At(_0x365417,'ELEMENT_BLOCK_QUOTE');return _0x574f14['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x365417,'*Set\x20format:*\x20%0',_0x1a188c)}:{'type':'format','content':At(_0x365417,'*Remove\x20format:*\x20%0',_0x1a188c)};}});}}function wt(_0x210f90){return'blockQuote'==_0x210f90['parent']['name'];}class Bt extends _0x415703{['afterInit'](){const _0x1252e3=this['editor'],_0x395d1c=_0x1252e3['locale'],_0x845bfa=_0x1252e3['plugins']['get']('TrackChangesEditing');_0x1252e3['plugins']['has']('BookmarkEditing')&&(_0x845bfa['enableCommand']('insertBookmark'),_0x845bfa['enableDefaultAttributesIntegration']('updateBookmark'),_0x845bfa['descriptionFactory']['registerDescriptionCallback'](_0x1c853a=>{if('insertion'!=_0x1c853a['type']&&'deletion'!=_0x1c853a['type']&&'attribute'!=_0x1c853a['type'])return;const _0x51e81c=_0x1c853a['getContainedElement']();if(null==_0x51e81c)return;if(!_0x51e81c['is']('element','bookmark'))return;const _0x545210=_0x51e81c['getAttribute']('bookmarkId');if('insertion'==_0x1c853a['type'])return{'type':'insertion','content':At(_0x395d1c,'*Insert:*\x20%0','\x22'+_0x545210+'\x22\x20'+At(_0x395d1c,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1c853a['type'])return{'type':'deletion','content':At(_0x395d1c,'*Remove:*\x20%0','\x22'+_0x545210+'\x22\x20'+At(_0x395d1c,'ELEMENT_BOOKMARK'))};const {data:_0x28f8b6}=_0x1c853a;if(!_0x28f8b6||'bookmarkId'!=_0x28f8b6['key'])return;return{'type':'format','content':At(_0x395d1c,'*Set\x20bookmark:*\x20%0','\x22'+_0x28f8b6['newValue']+'\x22')};}));}}class Ft extends _0x415703{['afterInit'](){const _0x21a148=this['editor'];_0x21a148['plugins']['has']('CaseChange')&&(_0x21a148['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x21a148['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x21a148['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class Dt extends _0x415703{['afterInit'](){const _0x239f22=this['editor'];_0x239f22['commands']['get']('ckbox')&&_0x239f22['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class vt extends _0x415703{['afterInit'](){const _0x5cf3e8=this['editor'];if(!_0x5cf3e8['plugins']['has']('CodeBlock'))return;const _0x3e8eea=_0x5cf3e8['plugins']['get']('TrackChangesEditing'),_0x5b27af=_0x5cf3e8['locale'],_0x5ee91f=_0x5cf3e8['config']['get']('codeBlock')['languages'],_0x10ecd4=_0x5cf3e8['commands']['get']('codeBlock');_0x3e8eea['enableCommand']('indentCodeBlock'),_0x3e8eea['enableCommand']('outdentCodeBlock'),_0x3e8eea['enableCommand']('codeBlock',(_0x59932d,_0x758c0b={})=>{const _0x9951de=_0x5cf3e8['model'],_0x2c4408=_0x5cf3e8['model']['document']['selection'],_0x22dde4=_0x758c0b&&void 0x0!==_0x758c0b['forceValue']?_0x758c0b['forceValue']:!_0x10ecd4['value'];let _0x10766f;_0x758c0b['language']||(_0x758c0b['language']=_0x5ee91f[0x0]['language']),_0x10766f=_0x22dde4?Array['from'](_0x2c4408['getSelectedBlocks']())['filter'](_0x3981f9=>xt(_0x3981f9)||function(_0x38767c,_0x4a0057){if(_0x38767c['is']('rootElement')||_0x4a0057['isLimit'](_0x38767c))return!0x1;return _0x4a0057['checkChild'](_0x38767c['parent'],'codeBlock');}(_0x3981f9,_0x9951de['schema'])):Array['from'](_0x2c4408['getSelectedBlocks']())['filter'](_0x198e72=>xt(_0x198e72));const _0x3e6fef=Tt(_0x10766f,_0x9951de);_0x9951de['change'](()=>{for(const _0x5225eb of _0x3e6fef)_0x3e8eea['markBlockFormat'](_0x5225eb,{'commandName':'codeBlock','commandParams':[{..._0x758c0b,'forceValue':_0x22dde4}],'formatGroupId':'blockName'});});}),(_0x3e8eea['descriptionFactory']['registerElementLabel']('codeBlock',_0x24c5a2=>At(_0x5b27af,'ELEMENT_CODE_BLOCK',_0x24c5a2)),_0x3e8eea['descriptionFactory']['registerDescriptionCallback'](_0x1f1069=>{if('formatBlock'!=_0x1f1069['type'])return;const _0x1c5023=_0x5b27af['t'],{data:_0x47a8b3}=_0x1f1069;if(!_0x47a8b3||'codeBlock'!=_0x47a8b3['commandName'])return;const _0x4b7e39=_0x47a8b3['commandParams'][0x0]['language'],_0x4c109a=_0x1c5023(_0x5ee91f['find'](_0x5b0d00=>_0x5b0d00['language']===_0x4b7e39)['label'])['toLowerCase']();return _0x47a8b3['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x5b27af,'*Set\x20format:*\x20%0',At(_0x5b27af,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4c109a+')')}:{'type':'format','content':At(_0x5b27af,'*Remove\x20format:*\x20%0',At(_0x5b27af,'ELEMENT_CODE_BLOCK',0x1))};}));}}function xt(_0x365835){return'codeBlock'==_0x365835['name'];}class Pt extends _0x415703{['afterInit'](){const _0x369dfb=this['editor'];if(!_0x369dfb['plugins']['has']('CommentsEditing'))return;_0x369dfb['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Ut extends _0x415703{static get['requires'](){return[at];}['init'](){const _0x20064b=this['editor'],_0x35381d=_0x20064b['plugins']['get']('TrackChangesEditing');_0x35381d['enableCommand']('delete');const _0x361829=_0x20064b['commands']['get']('deleteForward');_0x35381d['enableCommand']('deleteForward',(_0x490db0,_0xdfe713={})=>{const _0x557234=_0x20064b['model']['createSelection'](_0x20064b['model']['document']['selection']);_0x557234['isCollapsed']&&_0x20064b['model']['modifySelection'](_0x557234,{'direction':'forward','unit':_0xdfe713['unit']});const _0x7d1444=_0x557234['getFirstRange'](),_0x3e4439=_0x3aace6['fromRange'](_0x7d1444);let _0x312552;_0x490db0(_0xdfe713),_0x312552='$graveyard'==_0x3e4439['root']['rootName']?_0x20064b['model']['createRange'](_0x7d1444['start']):_0x20064b['model']['createRange'](_0x3e4439['start'],_0x3e4439['end']),_0x3e4439['detach'](),_0x20064b['model']['enqueueChange'](_0x361829['buffer']['batch'],_0x2b5836=>{_0x361829['buffer']['lock'](),_0x2b5836['setSelection'](_0x2b5836['createRange'](_0x312552['end'])),_0x361829['buffer']['unlock']();});});}}class Gt extends _0x415703{['afterInit'](){const _0x5459e5=this['editor'];if(!_0x5459e5['plugins']['has']('ListEditing'))return;const _0x5e5ecf=_0x5459e5['locale'],_0x2af965=_0x5459e5['plugins']['get']('TrackChangesEditing'),_0x1a860c=_0x5459e5['plugins']['has']('TodoListEditing'),_0x1c152f=!!_0x5459e5['config']['get']('list.multiBlock');function _0x2c3f53(_0x9d7975){return{'type':'format','content':''+At(_0x5e5ecf,'*Set\x20format:*\x20%0',_0x9d7975)};}function _0x1e7d4(_0x51a0fc){return{'type':'format','content':''+At(_0x5e5ecf,'*Remove\x20format:*\x20%0',_0x51a0fc)};}_0x2af965['enableDefaultAttributesIntegration']('numberedList'),_0x2af965['enableDefaultAttributesIntegration']('bulletedList'),_0x2af965['enableDefaultAttributesIntegration']('customNumberedList'),_0x2af965['enableDefaultAttributesIntegration']('customBulletedList'),_0x2af965['enableDefaultAttributesIntegration']('indentList'),_0x2af965['enableDefaultAttributesIntegration']('outdentList'),_0x2af965['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2af965['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1c152f&&(_0x2af965['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2af965['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1a860c&&(_0x2af965['enableDefaultAttributesIntegration']('todoList'),_0x2af965['enableDefaultAttributesIntegration']('checkTodoList'),_0x2af965['descriptionFactory']['registerDescriptionCallback'](_0x4b17fb=>{const {data:_0x16e1b8}=_0x4b17fb;if(_0x16e1b8&&'todoListChecked'==_0x16e1b8['key'])return{'type':'format','content':_0x16e1b8['newValue']?At(_0x5e5ecf,'*Check\x20item*'):At(_0x5e5ecf,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x55ef5a=>{if(_0x55ef5a['batch']['isUndo'])return!0x1;let _0x36b71c=!0x1;const _0x9b423b=_0x2af965['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c7960=>'todoListChecked'===_0x2af965['_getAttributeKey'](_0x1c7960));for(const _0x2e760d of _0x9b423b){'todo'!=_0x2e760d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2af965['_findSuggestions'](_0x2e760d['getFirstRange'](),'attribute')['find'](_0x3e299d=>'listType'===_0x2af965['_getAttributeKey'](_0x3e299d['suggestion']))||(_0x55ef5a['removeMarker'](_0x2e760d['getFirstMarker']()),_0x36b71c=!0x0));}return _0x36b71c;})),_0x2af965['descriptionFactory']['registerAttributeLabel']('listIndent',At(_0x5e5ecf,'FORMAT_INDENT'));const _0xd623f3={'type':'format','content':''};_0x2af965['descriptionFactory']['registerDescriptionCallback'](_0x3296d0=>{const {data:_0x67742}=_0x3296d0;if(!_0x67742||'listType'!=_0x67742['key'])return;let _0x155474=_0x3296d0['head'];for(;_0x155474;){if(_0x155474['data']&&(('listStyle'==_0x155474['data']['key']||'listMarkerStyle'==_0x155474['data']['key'])&&(_0x155474['data']['newValue']&&'default'!=_0x155474['data']['newValue']||'default'!=_0x155474['data']['oldValue']&&!_0x67742['newValue'])||!_0x1c152f&&_0x155474['data']['key']==Ke))return _0xd623f3;_0x155474=_0x155474['next'];}if(null==_0x67742['newValue'])switch(_0x67742['oldValue']){case'bulleted':return _0x1e7d4(At(_0x5e5ecf,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1e7d4(At(_0x5e5ecf,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1e7d4(At(_0x5e5ecf,'ELEMENT_TODO_LIST'));}switch(_0x67742['newValue']){case'bulleted':return _0x2c3f53(At(_0x5e5ecf,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2c3f53(At(_0x5e5ecf,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2c3f53(At(_0x5e5ecf,'ELEMENT_TODO_LIST'));}}),_0x2af965['descriptionFactory']['registerDescriptionCallback'](_0x1ade9e=>{const {data:_0x378a90}=_0x1ade9e;if(_0x378a90&&'listIndent'==_0x378a90['key'])return null==_0x378a90['newValue']||null==_0x378a90['oldValue']&&0x0==_0x378a90['newValue']?_0xd623f3:void 0x0;}),_0x2af965['descriptionFactory']['registerDescriptionCallback'](_0xdf622=>{if('attribute'!=_0xdf622['type'])return;const {data:_0x57eb04}=_0xdf622;if(!_0x57eb04||'listItemId'!=_0x57eb04['key'])return;const _0x26d657=Ht(_0xdf622);return'newValue'==_0x26d657?{'type':'format','content':At(_0x5e5ecf,'*Merge:*\x20list\x20item')}:'oldValue'==_0x26d657?{'type':'format','content':At(_0x5e5ecf,'*Split:*\x20list\x20item')}:_0xd623f3;}),_0x5459e5['model']['document']['registerPostFixer'](_0x35e9f2=>this['listItemIdFixer'](_0x35e9f2)),_0x5459e5['model']['document']['registerPostFixer'](_0x532b5d=>this['noTrackChangesFixer'](_0x532b5d)),_0x5459e5['model']['document']['on']('change:data',(_0xa7b25b,_0x1bb30a)=>{if(_0x1bb30a['isUndo']||!_0x1bb30a['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x43a727){if(_0x43a727['batch']['isUndo']||!_0x43a727['batch']['isLocal'])return!0x1;let _0x2f5ce5=!0x1;const _0x1c55f6=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1c2538=>_0x1c2538['data']&&'listItemId'==_0x1c2538['data']['key'])['filter'](_0x1e631a=>_0x1e631a['data']['newValue']&&_0x1e631a['data']['oldValue']);for(const _0xa5c2cd of _0x1c55f6)Ht(_0xa5c2cd)||(_0x43a727['removeMarker'](_0xa5c2cd['getFirstMarker']()),_0x2f5ce5=!0x0);return _0x2f5ce5;}['noTrackChangesFixer'](_0x1c43e2){if(_0x1c43e2['batch']['isUndo']||!_0x1c43e2['batch']['isLocal'])return!0x1;const _0x4650ea=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4650ea['trackChangesCommand']['value'])return!0x1;let _0x286546=!0x1;const _0x1b5740=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x593a7d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4c735d=>'attribute'==_0x4c735d['type'])['filter'](_0x5b2613=>_0x1b5740['includes'](_0x5b2613['attributeKey']));if(0x0==_0x593a7d['length'])return _0x286546;for(const _0x3ddc5e of _0x593a7d){const _0x5067d2=_0x4650ea['_findSuggestions'](_0x3ddc5e['range'],'attribute')['filter'](_0xc5f7c9=>!_0xc5f7c9['meta']['isNextTo'])['map'](_0x27aa60=>_0x27aa60['suggestion'])['filter'](_0xd71f09=>{const _0x370ba1=_0x4650ea['_getAttributeKey'](_0xd71f09);return _0x1b5740['includes'](_0x370ba1);});if(_0x5067d2['length']){for(const _0x12f095 of _0x5067d2)_0x1c43e2['removeMarker'](_0x12f095['getFirstMarker']());_0x286546=!0x0;}}return _0x286546;}['assureChains'](){const _0x1cae51=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e6f58=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x725067;const _0x44b3bb=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x27ec89=>{if(_0x27ec89['data']['oldRange']||!_0x27ec89['data']['newRange'])return null;if(!_0x27ec89['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x120668}=_0x4fd2b2(_0x27ec89['name']);if(!_0x1cae51['hasSuggestion'](_0x120668))return null;const _0x33003c=_0x1cae51['getSuggestion'](_0x120668);return _0x5e6f58['includes'](_0x33003c['data']['key']);})['map'](_0x445d0a=>{const {id:_0x4a1d6c}=_0x4fd2b2(_0x445d0a['name']),_0x23d646=_0x1cae51['getSuggestion'](_0x4a1d6c);return _0x725067=_0x23d646['attributes']['groupId'],_0x23d646['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x44b3bb['size'])return;const _0x2c0b58=_0x1cae51['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2ce80d=>'attribute'==_0x2ce80d['type']&&_0x2ce80d['data']&&_0x5e6f58['includes'](_0x2ce80d['data']['key'])&&_0x2ce80d['attributes']['groupId']!=_0x725067)['map'](_0x30c915=>({'listItem':_0x30c915['getFirstRange']()['start']['nodeAfter'],'groupId':_0x30c915['attributes']['groupId']})),_0x291e28=new Set();for(const {groupId:_0x1e8335,listItem:_0x2323dd}of _0x2c0b58)_0x44b3bb['has'](_0x2323dd)&&_0x291e28['add'](_0x1e8335);for(const _0x152045 of _0x1cae51['getSuggestions']())_0x291e28['has'](_0x152045['attributes']['groupId'])&&_0x152045['setAttribute']('groupId',_0x725067);}['_supportLegacySuggestions'](){const _0x211bb2=this['editor'],_0x5a9ad4=_0x211bb2['locale'],_0x521a35=_0x211bb2['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x521a35['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xe06468,_0x3cd07e){const _0x2db012=[];for(let _0x12e673 of _0xe06468)_0x12e673['start']['nodeAfter']===_0x12e673['end']['parent']&&(_0x12e673=_0x211bb2['model']['createRange'](_0x211bb2['model']['createPositionAt'](_0x12e673['start']['nodeAfter'],0x0))),_0x2db012['push'](_0x12e673);_0x211bb2['model']['change'](_0x2bf934=>{const _0x3c9820=_0x211bb2['model']['document']['selection'],_0x239b6e=Array['from'](_0x3c9820['getRanges']())['map'](_0x1568d2=>_0x3aace6['fromRange'](_0x1568d2));_0x2bf934['setSelection'](_0x2db012),_0x211bb2['commands']['get'](_0x3cd07e['commandName'])['refresh'](),_0x3cd07e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x211bb2['execute'](_0x3cd07e['commandName'],..._0x3cd07e['commandParams']),_0x2bf934['setSelection'](_0x239b6e);for(const _0x535de0 of _0x239b6e)_0x535de0['detach']();});}),_0x521a35['descriptionFactory']['registerElementLabel'](function(_0x58880a){const _0x2c844b=!_0x211bb2['model']['schema']['isObject'](_0x58880a),_0x3bd563=_0x58880a['previousSibling'],_0x278059=_0x58880a['nextSibling'],_0xc06e5a=_0x58880a['getAttribute']('listItemId'),_0x1c084d=!_0x3bd563||_0x3bd563['getAttribute']('listItemId')!==_0xc06e5a,_0xefc7d0=!_0x278059||_0x278059['getAttribute']('listItemId')!==_0xc06e5a;return _0x2c844b&&Boolean(_0xc06e5a)&&_0x1c084d&&_0xefc7d0;},_0x4ee2ba=>At(_0x5a9ad4,'ELEMENT_LIST_ITEM',_0x4ee2ba));}['_registerLegacyDescription'](){const _0x2b5d2d=this['editor'],_0xad6216=_0x2b5d2d['locale'];function _0x51561d(_0x443207){const _0x3f9754=_0x2b5d2d['commands']['get']('bulletedList')['value'],_0x1b8c4b=_0x2b5d2d['commands']['get']('numberedList')['value'];return'numberedList'===_0x443207?_0x3f9754:_0x1b8c4b;}_0x2b5d2d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x504939){if('formatBlock'!=_0x504939['type'])return;const {data:_0x163a44}=_0x504939;if(!_0x163a44)return;let _0x2920c0,_0x3b906b,_0x20c1eb,_0x36ae24;switch(_0x163a44['commandName']){case'bulletedList':_0x20c1eb=_0x163a44['commandParams'][0x0]['forceValue'],_0x36ae24=_0x51561d(_0x163a44['commandName']),_0x2920c0=_0x20c1eb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x36ae24&&_0x2b5d2d['config']['get']('list.multiBlock')||(_0x2920c0='*Change\x20to:*\x20%0'),_0x3b906b={'type':'format','content':At(_0xad6216,_0x2920c0,At(_0xad6216,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x20c1eb=_0x163a44['commandParams'][0x0]['forceValue'],_0x36ae24=_0x51561d(_0x163a44['commandName']),_0x2920c0=_0x20c1eb?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x36ae24&&_0x2b5d2d['config']['get']('list.multiBlock')||(_0x2920c0='*Change\x20to:*\x20%0'),_0x3b906b={'type':'format','content':At(_0xad6216,_0x2920c0,At(_0xad6216,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2920c0='*Indent:*\x20%0',_0x3b906b={'type':'format','content':At(_0xad6216,_0x2920c0,At(_0xad6216,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2920c0=function(_0x28df6f){const _0x6208cd=_0x28df6f['getFirstRange']();let _0xabcc19=_0x6208cd['start']['nodeAfter'];for(;_0xabcc19&&_0x6208cd['containsItem'](_0xabcc19);){if(_0xabcc19['getAttribute']('listIndent')>0x0)return!0x1;_0xabcc19=_0xabcc19['nextSibling'];}return!0x0;}(_0x504939)?At(_0xad6216,'*Format:*\x20remove\x20from\x20%0',At(_0xad6216,function(_0x904270){return'ELEMENT_'+_0x904270['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x504939))):At(_0xad6216,'*Outdent:*\x20%0',At(_0xad6216,'ELEMENT_LIST_ITEM')),_0x3b906b={'type':'format','content':_0x2920c0};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x163a44['multipleBlocks']&&(_0x2920c0='*Merge:*\x20%0',_0x3b906b={'type':'deletion','content':At(_0xad6216,_0x2920c0,At(_0xad6216,'ELEMENT_LIST_ITEM'))});}return _0x3b906b;});}}function Ht(_0x172f65){let _0xdd4fe7=_0x172f65['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xdd4fe7;){const _0xa7bc79=_0xdd4fe7['getAttribute']('listItemId');if(!_0xa7bc79)return!0x1;if(_0xa7bc79==_0x172f65['data']['newValue'])return'newValue';if(_0xa7bc79==_0x172f65['data']['oldValue'])return'oldValue';_0xdd4fe7=_0xdd4fe7['previousSibling'];}return!0x1;}class $t extends _0x415703{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x259642=this['editor']['config']['get']('list.properties'),_0x9ed474=this['editor']['plugins']['get']('TrackChangesEditing');_0x259642['styles']&&_0x9ed474['enableDefaultAttributesIntegration']('listStyle'),_0x259642['reversed']&&_0x9ed474['enableDefaultAttributesIntegration']('listReversed'),_0x259642['startIndex']&&_0x9ed474['enableDefaultAttributesIntegration']('listStart');const _0x5c636c={'type':'format','content':''};_0x9ed474['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x376f33=this['editor']['locale'];_0x9ed474['descriptionFactory']['registerAttributeLabel']('listReversed',At(_0x376f33,'FORMAT_LIST_REVERSED')),_0x9ed474['descriptionFactory']['registerDescriptionCallback'](_0x4ebab9=>{const {data:_0x5265cb}=_0x4ebab9;if(_0x5265cb&&'listReversed'==_0x5265cb['key'])return null==_0x5265cb['newValue']||0x0==_0x5265cb['newValue']&&null==_0x5265cb['oldValue']?_0x5c636c:void 0x0;}),_0x9ed474['descriptionFactory']['registerAttributeLabel']('listStart',At(_0x376f33,'FORMAT_LIST_START')),_0x9ed474['descriptionFactory']['registerDescriptionCallback'](_0x27ae0f=>{const {data:_0x1c752f}=_0x27ae0f;if(_0x1c752f&&'listStart'==_0x1c752f['key'])return null==_0x1c752f['newValue']||0x1==_0x1c752f['newValue']&&null==_0x1c752f['oldValue']?_0x5c636c:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1a110b=>{if(_0x1a110b['batch']['isUndo'])return!0x1;let _0x58d758=!0x1;const _0x4320a6=_0x9ed474['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x548a31=>{const _0x51ff0f=_0x9ed474['_getAttributeKey'](_0x548a31);return'listStart'==_0x51ff0f||'listReversed'==_0x51ff0f;});for(const _0x593d3f of _0x4320a6){const _0x4780a3=_0x593d3f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4780a3||'customNumbered'==_0x4780a3)continue;_0x9ed474['_findSuggestions'](_0x593d3f['getFirstRange'](),'attribute')['find'](_0xa473a6=>'listType'==_0x9ed474['_getAttributeKey'](_0xa473a6['suggestion']))||(_0x1a110b['removeMarker'](_0x593d3f['getFirstMarker']()),_0x58d758=!0x0);}return _0x58d758;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x54f180){const _0x4f8bbe=this['editor']['locale'],{data:_0x40d3cc}=_0x54f180,_0x2fd405={'type':'format','content':''};if(!_0x40d3cc||'listStyle'!=_0x40d3cc['key'])return;if(!_0x40d3cc['oldValue'])return'default'==_0x40d3cc['newValue']?_0x2fd405:{'type':'format','content':''+At(_0x4f8bbe,'*Set\x20format:*\x20%0',At(_0x4f8bbe,this['_getTranslationKeyForListStyle'](_0x40d3cc['newValue'])))};if(!_0x40d3cc['newValue']){if('default'==_0x40d3cc['oldValue'])return _0x2fd405;let _0x13b392=_0x54f180['head'];for(;_0x13b392;){if(_0x13b392['data']&&'listType'==_0x13b392['data']['key']&&_0x13b392['data']['newValue'])return _0x2fd405;_0x13b392=_0x13b392['next'];}return{'type':'format','content':''+At(_0x4f8bbe,'*Remove\x20format:*\x20%0',At(_0x4f8bbe,this['_getTranslationKeyForListStyle'](_0x40d3cc['oldValue'])))};}if('default'!=_0x40d3cc['newValue'])return{'type':'format','content':''+At(_0x4f8bbe,'*Set\x20format:*\x20%0',At(_0x4f8bbe,this['_getTranslationKeyForListStyle'](_0x40d3cc['newValue'])))};let _0x8a2671=_0x54f180['head'];for(;_0x8a2671;){if(_0x8a2671['data']&&'listType'==_0x8a2671['data']['key']&&_0x8a2671['data']['newValue']&&_0x8a2671['data']['oldValue'])return _0x2fd405;_0x8a2671=_0x8a2671['next'];}return{'type':'format','content':At(_0x4f8bbe,'*Set\x20format:*\x20%0',At(_0x4f8bbe,'ELEMENT_'+_0x54f180['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3da2e5=this['editor'],_0x76c790=_0x3da2e5['locale'];_0x3da2e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50fc13=>{if('formatBlock'!=_0x50fc13['type'])return;const {data:_0x36616a}=_0x50fc13;if(!_0x36616a)return;let _0x281591,_0x464efb;switch(_0x36616a['commandName']){case'listStyle':_0x281591='*Change\x20to:*\x20%0',_0x464efb={'type':'format','content':At(_0x76c790,_0x281591,At(_0x76c790,this['_getTranslationKeyForListStyle'](_0x36616a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x281591=_0x36616a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x464efb={'type':'format','content':At(_0x76c790,_0x281591)};break;case'listStart':_0x281591='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x464efb={'type':'format','content':At(_0x76c790,_0x281591,_0x36616a['commandParams'][0x0]['startIndex'])};}return _0x464efb;});}['_getTranslationKeyForListStyle'](_0x9315dd){return'ELEMENT_'+function(_0x842937){if(Wt['includes'](_0x842937))return'bulleted';if(Vt['includes'](_0x842937))return'numbered';return null;}(_0x9315dd)['toUpperCase']()+'_LIST_'+_0x9315dd['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 _0x415703{['afterInit'](){const _0x5770ce=this['editor'];_0x5770ce['commands']['get']('emoji')&&_0x5770ce['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class zt extends _0x415703{static get['requires'](){return[lt];}['init'](){const _0x55df45=this['editor'],_0x17554c=_0x55df45['plugins']['get']('TrackChangesEditing'),_0x624bc1=_0x55df45['commands']['get']('enter');_0x17554c['enableCommand']('enter',()=>{_0x55df45['model']['change'](_0x112f8a=>{const _0x490677=_0x55df45['model']['document']['selection'],_0x424eb2=_0x490677['getFirstPosition'](),_0x19af49=_0x3aace6['fromRange'](_0x490677['getFirstRange']());if(_0x624bc1['enterBlock'](_0x112f8a)){const _0x505445=_0x55df45['model']['createPositionAt'](_0x424eb2['parent']['nextSibling'],0x0),_0x3ed398=_0x112f8a['createRange'](_0x424eb2,_0x505445);_0x17554c['markInsertion'](_0x3ed398);}else _0x112f8a['setSelection'](_0x112f8a['createRange'](_0x19af49['end']));_0x19af49['detach'](),_0x624bc1['fire']('afterExecute',{'writer':_0x112f8a});});});}}class Kt extends _0x415703{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x508b80=this['editor']['plugins']['get']('TrackChangesEditing');_0x508b80['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x508b80['enableCommand']('findNext'),_0x508b80['enableCommand']('findPrevious'),_0x508b80['enableCommand']('replace'),_0x508b80['enableCommand']('replaceAll');}['handleFindCommand'](_0x25eab4,_0x3422da,_0x1fe525={}){const _0x25b26c=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x25eab4(_0x45684b=>{let _0x1427a0=('string'==typeof _0x3422da?_0x25b26c['findByTextCallback'](_0x3422da,_0x1fe525):_0x3422da)(_0x45684b);Array['isArray'](_0x1427a0)&&(_0x1427a0={'results':_0x1427a0,'searchText':'string'==typeof _0x3422da?_0x3422da:''});const _0x58e164=_0x1427a0['results']['filter'](_0x330990=>!0x1===this['_isInDeletionRange'](_0x330990,_0x45684b['item']));return{..._0x1427a0,'results':_0x58e164};},_0x1fe525);}['_isInDeletionRange'](_0x8b72cb,_0xabd32a){const _0x21fdba=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xabd32a,_0x8b72cb['start']),this['editor']['model']['createPositionAt'](_0xabd32a,_0x8b72cb['end']));for(const _0x2ada19 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x21fdba['getIntersection'](_0x2ada19['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 _0x415703{['afterInit'](){const _0x3e1793=this['editor']['locale'],_0x134a25=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1b48d9,commandName:_0x730a25}of Xt)this['editor']['plugins']['has'](_0x1b48d9)&&_0x134a25['enableDefaultAttributesIntegration'](_0x730a25);_0x134a25['descriptionFactory']['registerAttributeLabel']('fontSize',At(_0x3e1793,'FORMAT_FONT_SIZE')),_0x134a25['descriptionFactory']['registerAttributeLabel']('fontFamily',At(_0x3e1793,'FORMAT_FONT_FAMILY')),_0x134a25['descriptionFactory']['registerAttributeLabel']('fontColor',At(_0x3e1793,'FORMAT_FONT_COLOR')),_0x134a25['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',At(_0x3e1793,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30ce97=this['editor'],_0x3cf2df=_0x30ce97['locale'];_0x30ce97['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xaf3fe1=>{const _0x452d68=_0x3cf2df['t'];if('formatInline'!=_0xaf3fe1['type'])return;const {data:_0x2bd511}=_0xaf3fe1;if(null!=_0x2bd511){if('fontSize'==_0x2bd511['commandName']){const _0x34ca8a=_0x2bd511['commandParams'][0x0]['value'];if(_0x34ca8a){const _0x470892=_0x452d68(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xccee3f=>_0xccee3f['model']==_0x34ca8a)['title'])['toLowerCase']();return{'type':'format','content':At(_0x3cf2df,'*Set\x20font\x20size:*\x20%0',_0x470892)};}return{'type':'format','content':At(_0x3cf2df,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2bd511['commandName']){const _0x22a5fd=_0x2bd511['commandParams'][0x0]['value'];return _0x22a5fd?{'type':'format','content':At(_0x3cf2df,'*Set\x20font\x20family:*\x20%0',_0x22a5fd)}:{'type':'format','content':At(_0x3cf2df,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2bd511['commandName']){const _0x33c268=_0x2bd511['commandParams'][0x0]['value'];if(_0x33c268){const _0x4da5a8=_0x1014bc(this['editor']['config']['get']('fontColor.colors'))['find'](_0x16b904=>_0x16b904['model']==_0x33c268);let _0x385f7e=_0x33c268,_0x35d198='';return _0x4da5a8&&(_0x385f7e=_0x4da5a8['label'],_0x35d198=_0x452d68(_0x385f7e)['toLowerCase']()),{'type':'format','content':At(_0x3cf2df,'*Set\x20font\x20color:*\x20%0',_0x35d198)['trim'](),'color':{'value':_0x33c268,'title':_0x35d198||_0x385f7e}};}return{'type':'format','content':At(_0x3cf2df,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2bd511['commandName']){const _0x10d9db=_0x2bd511['commandParams'][0x0]['value'];if(_0x10d9db){const _0x4e9a76=_0x1014bc(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5ca55a=>_0x5ca55a['model']==_0x10d9db);let _0x149b03=_0x10d9db,_0x14c48d='';return _0x4e9a76&&(_0x149b03=_0x4e9a76['label'],_0x14c48d=_0x452d68(_0x149b03)['toLowerCase']()),{'type':'format','content':At(_0x3cf2df,'*Set\x20font\x20background\x20color:*\x20%0',_0x14c48d)['trim'](),'color':{'value':_0x10d9db,'title':_0x14c48d||_0x149b03}};}return{'type':'format','content':At(_0x3cf2df,'*Reset\x20font\x20background\x20color*')};}}});}}class qt extends _0x415703{['afterInit'](){const {plugins:_0x19f102}=this['editor'];_0x19f102['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x19f102['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x369a7a,plugins:_0x5bfeb6,commands:_0x10470d}=this['editor'],_0x593536=_0x5bfeb6['get']('TrackChangesEditing');_0x10470d['get']('footnotesStyle')&&_0x593536['enableDefaultAttributesIntegration']('footnotesStyle'),_0x10470d['get']('footnotesStart')&&_0x593536['enableDefaultAttributesIntegration']('footnotesStart'),_0x593536['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',At(_0x369a7a,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x593536['descriptionFactory']['registerAttributeLabel']('footnotesListStart',At(_0x369a7a,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x15af1a=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x48d339,commands:_0x1bd803}=this['editor'];_0x1bd803['get']('insertFootnote')&&_0x15af1a['enableCommand']('insertFootnote'),_0x15af1a['descriptionFactory']['registerElementLabel']('footnoteRef',_0xb4bbdb=>At(_0x48d339,'ELEMENT_FOOTNOTE_REF',_0xb4bbdb)),_0x15af1a['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x3bb484=>At(_0x48d339,'ELEMENT_FOOTNOTE_DEFINITION',_0x3bb484)),_0x15af1a['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x1f0eb0=>At(_0x48d339,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x1f0eb0));}}class Qt extends _0x415703{['afterInit'](){const _0x391134=this['editor'],_0xf26a7=_0x391134['plugins']['get']('TrackChangesEditing'),_0x217d65=_0x391134['commands']['get']('copyFormat'),_0x5037fe=_0x391134['commands']['get']('pasteFormat');_0x217d65&&_0x5037fe&&(_0xf26a7['enableDefaultAttributesIntegration']('pasteFormat'),_0xf26a7['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4e2c9b=this['editor'],_0xcc0fc2=_0x4e2c9b['locale'];_0x4e2c9b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28797=>{if('formatBlock'!=_0x28797['type']&&'formatInline'!=_0x28797['type'])return;const {data:_0x2876d8}=_0x28797;if(_0x2876d8&&'pasteFormat'===_0x2876d8['commandName']){const _0x20bc12=[],_0x359d96=_0x2876d8['commandParams'][0x0];for(const [_0x186c7b,_0x234a99]of Object['entries'](_0x359d96))_0x20bc12['push'](Zt(_0x4e2c9b,_0x186c7b,_0x234a99));return _0x20bc12['length']?{'type':'format','content':At(_0xcc0fc2,'*Set\x20format\x20to:*\x20%0',_0x20bc12['join'](',\x20'))}:{'type':'format','content':At(_0xcc0fc2,'*Remove\x20all\x20formatting*')};}});}}function Zt(_0x592619,_0x557774,_0x5e826b){const _0x352089=_0x592619['locale']['t'],_0x38adb0=_0x557774['split'](/(?=[A-Z])/)['join']('\x20'),_0x4bc1d1=_0x352089(_0x38adb0['charAt'](0x0)['toUpperCase']()+_0x38adb0['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5e826b)return _0x4bc1d1;if('fontColor'===_0x557774||'fontBackgroundColor'===_0x557774){const _0x5b01f2=_0x1014bc(_0x592619['config']['get']('fontColor.colors'))['find'](_0x27fea6=>_0x27fea6['model']==_0x5e826b);return _0x4bc1d1+'\x20('+(_0x5b01f2?_0x352089(_0x5b01f2['label'])['toLowerCase']():_0x5e826b)+')';}if('fontSize'===_0x557774&&isNaN(parseFloat(_0x5e826b))){const _0x5a64e2=_0x592619['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x592619['config']['get']('fontSize.options'))['find'](_0x5f012e=>_0x5f012e['model']==_0x5e826b);return _0x4bc1d1+'\x20('+(_0x5a64e2?_0x352089(_0x5a64e2['title'])['toLowerCase']():_0x5e826b)+')';}return _0x4bc1d1+'\x20('+_0x5e826b+')';}class Jt extends _0x415703{['_headingOptions'];['afterInit'](){const _0x189f02=this['editor'];if(!_0x189f02['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x189f02['config']['get']('heading.options');const _0x2a6906=_0x189f02['locale'],_0x4567e5=_0x189f02['plugins']['get']('TrackChangesEditing');_0x4567e5['enableDefaultAttributesIntegration']('heading');for(const _0x349752 of this['_headingOptions'])'paragraph'!=_0x349752['model']&&_0x4567e5['descriptionFactory']['registerElementLabel'](_0x349752['model'],_0x476d83=>{const _0x410e78=this['_getHeadingLevel'](_0x349752['model']);return null!==_0x410e78?_0x344017(_0x476d83,_0x410e78):_0x6ec9f3(_0x476d83,_0x349752['title']);});function _0x344017(_0xd9f4e2,_0xd692da){return At(_0x2a6906,'ELEMENT_HEADING',[_0xd9f4e2,_0xd692da]);}function _0x6ec9f3(_0x56ae96,_0x278ffa){return At(_0x2a6906,'ELEMENT_HEADING_CUSTOM',[_0x56ae96,_0x278ffa]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37f310=this['editor'],_0x15d22c=_0x37f310['locale'];function _0x458b80(_0x29eaa6,_0x373a2a){return At(_0x15d22c,'ELEMENT_HEADING_CUSTOM',[_0x29eaa6,_0x373a2a]);}_0x37f310['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e43f2=>{if('formatBlock'!=_0x3e43f2['type'])return;const {data:_0x3f9555}=_0x3e43f2;if(_0x3f9555&&'heading'==_0x3f9555['commandName']){const _0x409e5a=_0x3f9555['commandParams'][0x0]['value'],_0x5cdbdb=this['_getHeadingLevel'](_0x409e5a);if(null!==_0x5cdbdb)return{'type':'format','content':At(_0x15d22c,'*Change\x20to:*\x20%0',(_0x33515e=0x1,_0x41db50=_0x5cdbdb,At(_0x15d22c,'ELEMENT_HEADING',[_0x33515e,_0x41db50])))};const _0x5b9db2=this['_headingOptions']['find'](_0x5e321e=>_0x5e321e['model']===_0x409e5a)['title'];return{'type':'format','content':At(_0x15d22c,'*Change\x20to:*\x20%0',_0x458b80(0x1,_0x5b9db2))};}var _0x33515e,_0x41db50;});}['_getHeadingLevel'](_0x37962d){const _0x48ea22=_0x37962d['match'](/^heading(\d+)/);if(_0x48ea22)return _0x48ea22[0x1];const _0x57366b=this['_headingOptions']?.['find'](_0x2f1959=>_0x2f1959['model']==_0x37962d);if(_0x57366b&&_0x57366b['view']){const _0x135804=_0x57366b['view'],_0x5cb2bb=(_0x135804['name']??_0x135804)['match'](/^h(\d+)/);if(_0x5cb2bb)return _0x5cb2bb[0x1];}return null;}}class te extends _0x415703{['afterInit'](){const _0x464b12=this['editor'];if(!_0x464b12['plugins']['has']('HighlightEditing'))return;const _0x1b3b5c=_0x464b12['plugins']['get']('TrackChangesEditing'),_0x7d43d4=_0x464b12['locale'];_0x1b3b5c['enableDefaultAttributesIntegration']('highlight'),_0x1b3b5c['descriptionFactory']['registerAttributeLabel']('highlight',At(_0x7d43d4,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c73ab=this['editor'],_0xd686ee=_0x1c73ab['locale'];_0x1c73ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x214002=>{if('formatInline'!=_0x214002['type'])return;const {data:_0x550db2}=_0x214002;if(_0x550db2&&'highlight'==_0x550db2['commandName']){const _0x39c9=_0xd686ee['t'],_0x37a07b=_0x550db2['commandParams'][0x0]['value'];if(_0x37a07b){const _0x4484fd=_0x1c73ab['config']['get']('highlight.options')['find'](_0x22d97b=>_0x22d97b['model']==_0x37a07b),_0x45901b=_0x39c9(_0x4484fd['title'])['toLowerCase']();return{'type':'format','content':At(_0xd686ee,'*Set\x20highlight:*\x20%0',_0x45901b),'color':{'value':_0x4484fd['color'],'title':_0x4484fd['title']}};}return{'type':'format','content':At(_0xd686ee,'*Remove\x20highlight*',At(_0xd686ee,'FORMAT_HIGHLIGHT'))};}});}}class ee extends _0x415703{['afterInit'](){const _0x25b46c=this['editor'];if(!_0x25b46c['plugins']['has']('HorizontalLineEditing'))return;_0x25b46c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4c00eb=_0x25b46c['plugins']['get']('TrackChangesEditing'),_0x3b48eb=_0x25b46c['locale'];_0x4c00eb['descriptionFactory']['registerElementLabel']('horizontalLine',_0x56c5fa=>At(_0x3b48eb,'ELEMENT_HORIZONTAL_LINE',_0x56c5fa));}}class ne extends _0x415703{['afterInit'](){const _0x3b5615=this['editor'];if(!_0x3b5615['plugins']['has']('HtmlEmbed'))return;const _0x4bc8b7=_0x3b5615['plugins']['get']('TrackChangesEditing'),_0x50666b=_0x3b5615['locale'];_0x4bc8b7['descriptionFactory']['registerElementLabel']('rawHtml',_0x5cdbb1=>At(_0x50666b,'ELEMENT_HTML_EMBED',_0x5cdbb1)),_0x4bc8b7['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4bc8b7['descriptionFactory']['registerDescriptionCallback'](_0x1519ad=>{if('attribute'!=_0x1519ad['type'])return;const {data:_0x5a6e4d}=_0x1519ad;if(_0x5a6e4d&&'value'==_0x5a6e4d['key']&&_0x1519ad['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4b8cab=At(_0x50666b,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x50666b,'*Change\x20%0\x20content*',_0x4b8cab)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ec217=this['editor'],_0xd7a71e=_0x2ec217['locale'];_0x2ec217['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57a834=>{if('formatBlock'!=_0x57a834['type'])return;const {data:_0x26b358}=_0x57a834;if(_0x26b358&&'htmlEmbed'==_0x26b358['commandName']){const _0x55b44e=At(_0xd7a71e,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0xd7a71e,'*Change\x20%0\x20content*',_0x55b44e)};}});}}class ie extends _0x415703{['afterInit'](){const _0x159ebf=this['editor'];if(!_0x159ebf['plugins']['has']('ImageEditing'))return;const _0x1b299c=_0x159ebf['plugins']['get']('TrackChangesEditing'),_0x231f24=_0x159ebf['plugins']['get']('ImageUtils'),_0x47af7a=_0x159ebf['locale'];_0x1b299c['enableCommand']('insertImage'),_0x1b299c['descriptionFactory']['registerElementLabel']('imageBlock',_0xc5d801=>At(_0x47af7a,'ELEMENT_IMAGE',_0xc5d801)),_0x1b299c['descriptionFactory']['registerElementLabel']('imageInline',_0x345e77=>At(_0x47af7a,'ELEMENT_INLINE_IMAGE',_0x345e77)),_0x1b299c['descriptionFactory']['registerElementLabel']('caption',()=>At(_0x47af7a,'ELEMENT_CAPTION')),_0x159ebf['plugins']['has']('ImageUploadEditing')&&_0x1b299c['enableCommand']('uploadImage'),_0x159ebf['plugins']['has']('ImageBlockEditing')&&_0x159ebf['plugins']['has']('ImageInlineEditing')&&(_0x1b299c['enableCommand']('imageTypeInline',(_0x38547e,_0x27452c)=>{const _0x224991=_0x231f24['getClosestSelectedImageElement'](_0x159ebf['model']['document']['selection']);_0x159ebf['model']['change'](()=>{_0x1b299c['markBlockFormat'](_0x224991,{'commandName':'imageTypeInline','commandParams':[_0x27452c]},[],'convertBlockImageToInline');});}),_0x1b299c['enableCommand']('imageTypeBlock',(_0x370659,_0x503768)=>{_0x159ebf['model']['change'](_0x257473=>{let _0x3f1c85=_0x231f24['getClosestSelectedImageElement'](_0x159ebf['model']['document']['selection']),_0x340e17=_0x257473['createRangeOn'](_0x3f1c85);const _0x580db3=tt['fromPosition'](_0x340e17['start'],'toPrevious'),_0x27aeb0=tt['fromPosition'](_0x340e17['end'],'toNext');_0x1b299c['forceDefaultExecution'](()=>_0x370659(_0x503768)),_0x3f1c85=_0x231f24['getClosestSelectedImageElement'](_0x159ebf['model']['document']['selection']),_0x340e17=_0x257473['createRangeOn'](_0x3f1c85);const _0x246304=_0x257473['createRange'](_0x580db3,_0x27aeb0);_0x580db3['detach'](),_0x27aeb0['detach'](),_0x1b299c['markBlockFormat'](_0x3f1c85,{'commandName':'imageTypeInline','commandParams':[_0x503768]},[],'convertInlineImageToBlock'),_0x246304['start']['isBefore'](_0x340e17['start'])&&_0x1b299c['markInsertion'](_0x257473['createRange'](_0x246304['start'],_0x340e17['start']),'convertInlineImageToBlock'),_0x340e17['end']['isBefore'](_0x246304['end'])&&_0x1b299c['markInsertion'](_0x257473['createRange'](_0x340e17['end'],_0x246304['end']),'convertInlineImageToBlock');});}),_0x1b299c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1b299c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1b299c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1b299c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1b299c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1b299c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5f06b9])=>{const _0x122f51=_0x1b299c['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x36f49a=_0x5f06b9['start'],_0x28ac4f=_0x5f06b9['end'];const _0x34391e=_0x159ebf['model']['schema']['getNearestSelectionRange'](_0x36f49a,'backward'),_0xe18fa2=_0x159ebf['model']['schema']['getNearestSelectionRange'](_0x28ac4f,'forward');_0x34391e['isCollapsed']&&(_0x36f49a=_0x34391e['start']),_0xe18fa2['isCollapsed']&&(_0x28ac4f=_0xe18fa2['end']),_0x122f51([_0x159ebf['model']['createRange'](_0x36f49a,_0x28ac4f)]);}),_0x1b299c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5195d8),_0x1b299c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5195d8)),_0x159ebf['plugins']['has']('ImageCaptionEditing')&&(_0x1b299c['enableCommand']('toggleImageCaption',(_0x13c831,_0xa27e49)=>{const _0x3e3eaa=_0x159ebf['plugins']['get']('ImageCaptionUtils');let _0x1f71a9=_0x231f24['getClosestSelectedImageElement'](_0x159ebf['model']['document']['selection']),_0x4aa21c=_0x3e3eaa['getCaptionFromImageModelElement'](_0x1f71a9);_0x159ebf['model']['change'](()=>{if(_0x4aa21c)return void _0x1b299c['markDeletion'](_0x159ebf['model']['createRangeOn'](_0x4aa21c));const _0x16f306=_0x231f24['isBlockImage'](_0x1f71a9);_0x13c831(_0xa27e49),_0x1f71a9=_0x231f24['getClosestSelectedImageElement'](_0x159ebf['model']['document']['selection']),_0x4aa21c=_0x3e3eaa['getCaptionFromImageModelElement'](_0x1f71a9),_0x1b299c['markInsertion'](_0x159ebf['model']['createRangeOn'](_0x4aa21c),_0x16f306?null:'imageCaption');});}),_0x1b299c['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5195d8));const _0x115600=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xca858b(_0x55d26c,_0x248a59){const _0x507b9f=_0x115600['findIndex'](({type:_0xaacd5a,subType:_0x209008})=>_0x55d26c['type']==_0xaacd5a&&_0x55d26c['subType']==_0x209008),_0x2f647a=_0x115600['findIndex'](({type:_0x4f36f7,subType:_0x32f54e})=>_0x248a59['type']==_0x4f36f7&&_0x248a59['subType']==_0x32f54e);if(_0x507b9f<0x0||_0x2f647a<0x0)return!0x1;const _0x43b9bb=_0x55d26c['getFirstRange'](),_0x3be800=_0x248a59['getFirstRange']();if((0x0==_0x507b9f||0x1==_0x507b9f)&&0x2==_0x2f647a&&_0x43b9bb['isIntersecting'](_0x3be800))return!0x0;if(0x2==_0x507b9f&&0x3==_0x2f647a){const _0x9cba14=_0x1b299c['_findSuggestions'](_0x43b9bb,'insertion')['filter'](({suggestion:_0x1fc49f,meta:_0x34773b})=>_0x34773b['isOwn']&&'convertInlineImageToBlock'==_0x1fc49f['subType']);if(_0x9cba14['length']>0x1&&_0x3be800['end']['isEqual'](_0x43b9bb['start']))return!0x0;if(0x1==_0x9cba14['length']&&(_0x43b9bb['start']['isEqual'](_0x3be800['end'])||_0x43b9bb['end']['isEqual'](_0x3be800['start'])))return!0x0;}if(0x3==_0x507b9f&&0x3==_0x2f647a&&_0x43b9bb['start']['isBefore'](_0x3be800['start'])){const _0x267505=_0x43b9bb['end']['nodeAfter'],_0x434e66=_0x3be800['start']['nodeBefore'];return _0x231f24['isBlockImage'](_0x267505)&&_0x267505===_0x434e66;}return!0x1;}function _0x5195d8(_0x5487ce,_0x99ce3b){return _0xca858b(_0x5487ce,_0x99ce3b)?[_0x5487ce,_0x99ce3b]:_0xca858b(_0x99ce3b,_0x5487ce)?[_0x99ce3b,_0x5487ce]:null;}_0x159ebf['plugins']['has']('ImageResize')&&(_0x1b299c['enableDefaultAttributesIntegration']('resizeImage'),_0x1b299c['descriptionFactory']['registerAttributeLabel']('resizedWidth',At(_0x47af7a,'FORMAT_IMAGE_SIZE'))),_0x159ebf['plugins']['has']('ImageTextAlternativeEditing')&&_0x1b299c['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x159ebf['plugins']['has']('PictureEditing')&&_0x1b299c['descriptionFactory']['registerDescriptionCallback'](_0x25bee2=>{if('attribute'!=_0x25bee2['type'])return;const {data:_0x2e8afd}=_0x25bee2;return _0x2e8afd&&'sources'==_0x2e8afd['key']?{'type':'format','content':''}:void 0x0;}),_0x159ebf['plugins']['has']('ImageSizeAttributes')&&_0x1b299c['descriptionFactory']['registerDescriptionCallback'](_0x43a2ae=>{if('attribute'!=_0x43a2ae['type'])return;const {data:_0x3aa7a5}=_0x43a2ae;return!_0x3aa7a5||'width'!=_0x3aa7a5['key']&&'height'!=_0x3aa7a5['key']?void 0x0:{'type':'format','content':''};}),_0x1b299c['descriptionFactory']['registerDescriptionCallback'](_0x50316a=>{if(!!_0x115600['find'](({type:_0x14c0c2,subType:_0x53ef64})=>_0x50316a['type']==_0x14c0c2&&_0x50316a['subType']==_0x53ef64))return _0x50316a['previous']?{}:void 0x0;}),_0x1b299c['descriptionFactory']['registerDescriptionCallback'](_0x45a085=>{if('insertion'==_0x45a085['type']||'deletion'==_0x45a085['type']){const _0x1c4095=_0x45a085['getContainedElement']();if(_0x1c4095&&_0x1c4095['is']('element','caption'))return{'type':'insertion'==_0x45a085['type']?'addObject':'removeObject','element':_0x1c4095,'quantity':0x1};}}),_0x1b299c['descriptionFactory']['registerDescriptionCallback'](_0x523d10=>'formatBlock'==_0x523d10['type']&&'convertInlineImageToBlock'==_0x523d10['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x523d10['type']&&'convertBlockImageToInline'==_0x523d10['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1b299c['descriptionFactory']['registerDescriptionCallback'](_0xdf406=>{if('attribute'!=_0xdf406['type'])return;const {data:_0x22a4de}=_0xdf406;if(!_0x22a4de||'alt'!=_0x22a4de['key'])return;const _0x490fa3=_0x22a4de['newValue'];return _0x490fa3?{'type':'format','content':At(_0x47af7a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x490fa3+'\x22')}:{'type':'format','content':At(_0x47af7a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x526cd9=this['editor'],_0x412ea0=_0x526cd9['locale'];_0x526cd9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x422c79=>{if('formatBlock'!=_0x422c79['type']&&'formatInline'!=_0x422c79['type'])return;const {data:_0x4607e3}=_0x422c79;if(_0x4607e3){if('imageTextAlternative'==_0x4607e3['commandName']){const _0x2e14e5=_0x4607e3['commandParams'][0x0]['newValue'];return _0x2e14e5?{'type':'format','content':At(_0x412ea0,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2e14e5+'\x22')}:{'type':'format','content':At(_0x412ea0,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4607e3['commandName']){const _0x4f78f3=_0x4607e3['commandParams'][0x0]['width'];return _0x4f78f3?{'type':'format','content':At(_0x412ea0,'*Set\x20image\x20width:*\x20%0',_0x4f78f3)}:{'type':'format','content':At(_0x412ea0,'*Reset\x20image\x20width*')};}}});}}class se extends _0x415703{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x6bf323=this['editor']['locale'],_0x3cddb8=this['editor']['plugins']['get']('TrackChangesEditing');_0x3cddb8['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3cddb8['descriptionFactory']['registerDescriptionCallback'](_0x3455a5=>{if('attribute'!=_0x3455a5['type'])return;const {data:_0x44bd54}=_0x3455a5;return _0x44bd54&&'src'==_0x44bd54['key']?_0x44bd54['newValue']&&_0x44bd54['oldValue']?{'type':'format','content':At(_0x6bf323,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1b6b1a=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b6b1a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1b6b1a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1b6b1a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1b6b1a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ca3f6=this['editor'],_0x28a7b0=_0x2ca3f6['locale'];_0x2ca3f6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30ee15=>{if('formatBlock'!=_0x30ee15['type']&&'formatInline'!=_0x30ee15['type'])return;const {data:_0x58a16e}=_0x30ee15;if(!_0x58a16e||'replaceImageSource'!=_0x58a16e['commandName'])return;return{'type':'format','content':At(_0x28a7b0,'*Format:*\x20replace\x20image\x20URL')};});}}class re extends _0x415703{['afterInit'](){const _0x5af871=this['editor'];if(!_0x5af871['plugins']['has']('ImageStyleEditing'))return;const _0xfc3f74=_0x5af871['plugins']['get']('TrackChangesEditing'),_0x444db2=_0x5af871['plugins']['get']('ImageUtils'),_0x4d01c8={};_0xfc3f74['enableCommand']('imageStyle',(_0x532e39,_0x106915)=>{const _0x5a2d6a=_0x5af871['plugins']['get']('Users')['me'],_0x4351ee=_0x5af871['commands']['get']('imageStyle');let _0x2ccf1c=_0x444db2['getClosestSelectedImageElement'](_0x5af871['model']['document']['selection']),_0x42a32f=_0x5af871['model']['createRangeOn'](_0x2ccf1c),_0x36d49d=_0x4351ee['value'];if(_0x36d49d==_0x106915['value'])return;const _0x424b62={'commandName':'imageStyle','commandParams':[_0x106915],'formatGroupId':_0x1b4051()};_0x5af871['model']['change'](()=>{if(_0xfc3f74['getSuggestions']()['filter'](_0x5b6a4a=>_0x5b6a4a['isInContent']&&_0x5a2d6a==_0x5b6a4a['author']&&('formatBlock'==_0x5b6a4a['type']||'formatInline'==_0x5b6a4a['type'])&&('imageStylePreApply'==_0x5b6a4a['subType']||'imageStylePostApply'==_0x5b6a4a['subType'])&&_0x5b6a4a['getFirstRange']()['isEqual'](_0x42a32f))['forEach'](_0x39cef8=>_0xfc3f74['discardSuggestion'](_0x39cef8['head'])),_0x2ccf1c=_0x444db2['getClosestSelectedImageElement'](_0x5af871['model']['document']['selection']),_0x42a32f=_0x5af871['model']['createRangeOn'](_0x2ccf1c),_0x4351ee['refresh'](),_0x5af871['commands']['get']('imageTypeInline')['refresh'](),_0x5af871['commands']['get']('imageTypeBlock')['refresh'](),_0x36d49d=_0x4351ee['value'],_0x36d49d!=_0x106915['value'])return _0x444db2['isInlineImage'](_0x2ccf1c)&&_0x4351ee['shouldConvertImageType'](_0x106915['value'],_0x2ccf1c)?(_0x532e39({..._0x106915,'setImageSizes':!0x1}),_0x2ccf1c=_0x444db2['getClosestSelectedImageElement'](_0x5af871['model']['document']['selection']),void _0xfc3f74['markBlockFormat'](_0x2ccf1c,{..._0x424b62,'commandReversedParams':[{'value':_0x36d49d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x444db2['isBlockImage'](_0x2ccf1c)?_0xfc3f74['markBlockFormat'](_0x2ccf1c,_0x424b62,[],'imageStylePostApply'):_0xfc3f74['markInlineFormat'](_0x42a32f,_0x424b62,'imageStylePostApply'));});});for(const _0x557626 of _0x5af871['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4d01c8[_0x557626['name']]=_0x557626['title']['toLowerCase']();_0xfc3f74['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xfc3f74['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xfc3f74['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xfc3f74['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x55e0c3])=>{_0x444db2['setImageNaturalSizeAttributes'](_0x55e0c3['getContainedElement']());}),_0xfc3f74['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x217753,_0x51ac2f)=>{_0xfc3f74['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x217753,{'commandName':_0x51ac2f['commandName'],'commandParams':_0x51ac2f['commandReversedParams']});}),_0xfc3f74['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xc2142a,_0x4867ec){if(_0xb2e2d0(_0xc2142a,_0x4867ec))return[_0xc2142a,_0x4867ec];if(_0xb2e2d0(_0x4867ec,_0xc2142a))return[_0x4867ec,_0xc2142a];return null;});const _0x1fb7af=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xb2e2d0(_0x1f5163,_0x364100){const _0x13dc89=_0x1fb7af['findIndex'](({type:_0x4f8471,subType:_0x2e2e98})=>_0x1f5163['type']==_0x4f8471&&_0x1f5163['subType']==_0x2e2e98),_0x56a718=_0x1fb7af['findIndex'](({type:_0x2e9228,subType:_0x5dccaa})=>_0x364100['type']==_0x2e9228&&_0x364100['subType']==_0x5dccaa);if(_0x13dc89<0x0||_0x56a718<0x0)return!0x1;const _0x112919=_0x1f5163['getFirstRange'](),_0xf8b7d8=_0x364100['getFirstRange']();if((0x0==_0x13dc89||0x1==_0x13dc89)&&0x2==_0x56a718&&_0x112919['isIntersecting'](_0xf8b7d8))return!0x0;if(0x2==_0x13dc89&&0x3==_0x56a718){const _0x46e151=_0xfc3f74['_findSuggestions'](_0x112919,'insertion')['filter'](({suggestion:_0x2743d3,meta:_0x5268c4})=>_0x5268c4['isOwn']&&'convertInlineImageToBlock'==_0x2743d3['subType']);if(_0x46e151['length']>0x1&&_0xf8b7d8['end']['isEqual'](_0x112919['start']))return!0x0;if(0x1==_0x46e151['length']&&(_0x112919['start']['isEqual'](_0xf8b7d8['end'])||_0x112919['end']['isEqual'](_0xf8b7d8['start'])))return!0x0;}if(0x3==_0x13dc89&&0x3==_0x56a718&&_0x112919['start']['isBefore'](_0xf8b7d8['start'])){const _0xd69450=_0x112919['end']['nodeAfter'],_0x692238=_0xf8b7d8['start']['nodeBefore'];return _0x444db2['isBlockImage'](_0xd69450)&&_0xd69450===_0x692238;}return!0x1;}_0x5af871['model']['document']['registerPostFixer'](()=>{let _0x35a4a4=!0x1;const _0x5990d9=Array['from'](_0x5af871['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x114b79,data:_0x15a836}of _0x5990d9){const {group:_0x4afa8f,type:_0x2f7a50,subType:_0x22ce2d,id:_0x40ebcd}=_0x4fd2b2(_0x114b79);if('suggestion'==_0x4afa8f&&_0xfc3f74['hasSuggestion'](_0x40ebcd)){if('formatBlock'==_0x2f7a50&&('imageStylePreApply'==_0x22ce2d||'imageStylePostApply'==_0x22ce2d)){const _0x286b5d=_0xfc3f74['getSuggestion'](_0x40ebcd);if(_0x15a836['newRange']){const _0x58b8a4=_0x286b5d['getFirstRange']()['getContainedElement']();if(_0x444db2['isBlockImage'](_0x58b8a4))continue;_0xfc3f74['discardSuggestion'](_0x286b5d),_0x35a4a4=!0x0;}}if('insertion'==_0x2f7a50&&'imageCaption'==_0x22ce2d&&!_0x15a836['newRange']){const _0x11d2ec=_0xfc3f74['getSuggestion'](_0x40ebcd);_0x11d2ec['next']&&_0x11d2ec['next']['isInContent']&&(_0xfc3f74['discardSuggestion'](_0x11d2ec['next']),_0x35a4a4=!0x0);}}}return _0x35a4a4;}),this['_registerLegacyDescription'](_0x4d01c8);}['_registerLegacyDescription'](_0x3a7087){const _0xcb4861=this['editor'],_0x2e7aa3=_0xcb4861['locale'];_0xcb4861['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f453a=>{if('formatBlock'!=_0x2f453a['type']&&'formatInline'!=_0x2f453a['type'])return;const {data:_0x5f4819}=_0x2f453a;if(!_0x5f4819||'imageStyle'!=_0x5f4819['commandName'])return;const _0x415b5c=_0x5f4819['commandParams'][0x0]['value'];return _0x4596da('side'===_0x415b5c?At(_0x2e7aa3,'FORMAT_SIDE_IMAGE'):_0x3a7087[_0x415b5c]||_0x415b5c);function _0x4596da(_0x5a8ea1){return{'type':'format','content':At(_0x2e7aa3,'*Format:*\x20%0',_0x5a8ea1)};}});}}class oe extends _0x415703{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4e8fe9){super(_0x4e8fe9),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5e1dcb=this['editor'],_0x59d69b=_0x5e1dcb['commands']['get']('importWord'),_0x214243=_0x5e1dcb['commands']['get']('trackChanges');_0x59d69b&&(_0x59d69b['on']('execute',(_0x5df64c,[,_0x91535])=>{this['_trackChangesValueDuringImport']=_0x214243['value'],_0x91535['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x59d69b,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x59d69b,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x214243['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5e1dcb['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1ec914,_0x6d686d){const {suggestions:_0x5d2707}=_0x6d686d,_0x21e692=this['editor']['commands']['get']('trackChanges'),_0x5e1d27=_0x21e692['value'];this['_trackChangesValueDuringImport']!==_0x5e1d27&&(_0x21e692['execute'](),this['_trackChangesExecuted']=!0x0),_0x5d2707&&_0x5d2707['forEach'](({id:_0x1f6ba2,type:_0x369115,author:_0x5f2f1e,created_at:_0x456515})=>{const _0x566fb8={'id':_0x1f6ba2,'type':_0x369115,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5f2f1e,'createdAt':_0x456515?new Date(_0x456515):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x566fb8);});}}class ae extends _0x415703{['afterInit'](){const _0x31dbc2=this['editor'],_0x2b53aa=_0x31dbc2['plugins']['get']('TrackChangesEditing');if(_0x31dbc2['plugins']['has']('IndentEditing')&&(_0x2b53aa['enableCommand']('indent'),_0x2b53aa['enableCommand']('outdent')),_0x31dbc2['plugins']['has']('IndentBlock')){for(const _0x22816c of['indentBlock','outdentBlock'])_0x2b53aa['enableDefaultAttributesIntegration'](_0x22816c);if(_0x31dbc2['plugins']['has']('ListEditing')){for(const _0x565661 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x2b53aa['enableDefaultAttributesIntegration'](_0x565661);}}const _0x1d0d11=_0x31dbc2['locale'];_0x2b53aa['descriptionFactory']['registerAttributeLabel']('blockIndent',At(_0x1d0d11,'FORMAT_INDENT')),_0x2b53aa['descriptionFactory']['registerAttributeLabel']('blockIndentList',At(_0x1d0d11,'FORMAT_INDENT')),_0x2b53aa['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',At(_0x1d0d11,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe396cc=this['editor'],_0x6660b7=_0xe396cc['locale'],_0x5def6f=_0xe396cc['plugins']['get']('TrackChangesEditing');_0x5def6f['descriptionFactory']['registerDescriptionCallback'](_0x1714dc=>{if('formatBlock'!=_0x1714dc['type'])return;const {data:_0x50ef3a}=_0x1714dc;if(!_0x50ef3a)return;if('indentBlock'!=_0x50ef3a['commandName']&&'outdentBlock'!=_0x50ef3a['commandName'])return;const _0x1cf1bb=_0x1714dc['getItems']()[0x0],_0x537b06=_0x5def6f['descriptionFactory']['getItemLabel'](_0x1cf1bb);return'indentBlock'==_0x50ef3a['commandName']?{'type':'format','content':At(_0x6660b7,'*Indent:*\x20%0',_0x537b06)}:'outdentBlock'==_0x50ef3a['commandName']?{'type':'format','content':At(_0x6660b7,'*Outdent:*\x20%0',_0x537b06)}:void 0x0;});}}class ce extends _0x415703{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class le extends _0x415703{['afterInit'](){const _0x3c6e3e=this['editor'];if(!_0x3c6e3e['plugins']['has']('LinkEditing'))return;const _0x541841=_0x3c6e3e['plugins']['get']('TrackChangesEditing'),_0x40b047=_0x3c6e3e['commands']['get']('link');_0x541841['enableDefaultAttributesIntegration']('link'),_0x541841['enableDefaultAttributesIntegration']('unlink');for(const _0x2f88ea of _0x40b047['manualDecorators'])_0x541841['descriptionFactory']['registerAttributeLabel'](_0x2f88ea['id'],'link\x20('+_0x2f88ea['label']['toLowerCase']()+')');_0x541841['descriptionFactory']['registerDescriptionCallback'](_0x231320=>{if('attribute'!=_0x231320['type'])return;const {data:_0x2f0e63}=_0x231320;if(!_0x2f0e63||'linkHref'!=_0x2f0e63['key'])return;const _0x13b761=_0x2f0e63['newValue'],_0x1e0c00=_0x3c6e3e['locale'];return{'type':'format','content':null==_0x13b761?At(_0x1e0c00,'*Remove\x20link*'):At(_0x1e0c00,'*Set\x20link:*\x20%0','\x22'+_0x13b761+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58f31a=this['editor'],_0x4080f0=_0x58f31a['locale'];_0x58f31a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e2418=>{if('formatInline'!=_0x5e2418['type'])return;const {data:_0x130588}=_0x5e2418;if(_0x130588){if('link'==_0x130588['commandName']){const _0x336424=_0x130588['commandParams'][0x0];return{'type':'format','content':At(_0x4080f0,'*Set\x20link:*\x20%0','\x22'+_0x336424+'\x22')};}return'unlink'==_0x130588['commandName']?{'type':'format','content':At(_0x4080f0,'*Remove\x20link*')}:void 0x0;}});}}class ue extends _0x415703{['afterInit'](){const _0x30dfee=this['editor'],_0x466525=_0x30dfee['locale'];if(!_0x30dfee['plugins']['has']('LegacyListEditing'))return;const _0x56de02=_0x30dfee['plugins']['get']('TrackChangesEditing'),_0x1d2c3f=_0x30dfee['plugins']['has']('LegacyTodoListEditing');function _0x20ba14(_0x529304){return()=>{const _0x55e120=_0x30dfee['model']['document']['selection'],_0x13c019=_0x30dfee['commands']['get'](_0x529304);if(_0x13c019['value'])return void _0x30dfee['execute']('paragraph',{});const _0x1b9a7a=_0x529304['slice'](0x0,-0x4),_0x5c84da=function(_0x3f4353,_0x54cc44,_0xbfbe9b){let _0x427564=Array['from'](_0x3f4353)['filter'](_0x2e72f3=>function(_0x4207c3,_0x4b6962){return _0x4b6962['checkChild'](_0x4207c3['parent'],'listItem')&&!_0x4b6962['isObject'](_0x4207c3);}(_0x2e72f3,_0xbfbe9b));_0x427564=_0x427564['filter'](_0x2f0c5b=>!_0x2f0c5b['is']('element','listItem')||_0x2f0c5b['getAttribute']('listType')!=_0x54cc44);const _0x2d93cb=new Set();for(const _0xd8940b of _0x427564)_0xd8940b['is']('element','listItem')?_0x2d93cb['add'](he(_0xd8940b)):_0x2d93cb['add'](_0xd8940b);return Array['from'](_0x2d93cb);}(_0x55e120['getSelectedBlocks'](),_0x1b9a7a,_0x30dfee['model']['schema']);_0x30dfee['model']['change'](()=>{for(const _0x5c52f0 of _0x5c84da)_0x56de02['markBlockFormat'](_0x5c52f0,{'commandName':_0x529304,'commandParams':[{'forceValue':!_0x13c019['value']}],'formatGroupId':'blockName'},de(_0x5c52f0));});};}function _0x1e1333(_0x27a726){return()=>{const _0x52b297=function(_0x274b35){let _0x36c679=Array['from'](_0x274b35);const _0x2c24f3=_0x36c679['findIndex'](_0x2bfd65=>'listItem'!=_0x2bfd65['name']);return _0x2c24f3>-0x1&&(_0x36c679=_0x36c679['slice'](0x0,_0x2c24f3)),_0x36c679;}(_0x30dfee['model']['document']['selection']['getSelectedBlocks']()),_0x42cdd9=_0x30dfee['model']['createRange'](_0x30dfee['model']['createPositionAt'](_0x52b297[0x0],'before'),_0x30dfee['model']['createPositionAt'](_0x52b297[_0x52b297['length']-0x1],'end'));_0x30dfee['model']['change'](()=>{_0x56de02['markBlockFormat'](_0x42cdd9,{'commandName':_0x27a726,'commandParams':[],'formatGroupId':'listIndent'},function(_0x248af5){const _0x240bb9=new Set();for(const _0x55d60b of _0x248af5){let _0x4d9154=_0x55d60b['nextSibling'];for(;_0x4d9154&&_0x4d9154['getAttribute']('listIndent')>_0x55d60b['getAttribute']('listIndent');)_0x240bb9['add'](_0x4d9154),_0x4d9154=_0x4d9154['nextSibling'];}return Array['from'](_0x240bb9);}(_0x52b297));});};}_0x56de02['enableCommand']('numberedList',_0x20ba14('numberedList')),_0x56de02['enableCommand']('bulletedList',_0x20ba14('bulletedList')),_0x1d2c3f&&_0x56de02['enableCommand']('todoList',_0x20ba14('todoList')),_0x56de02['enableCommand']('indentList',_0x1e1333('indentList')),_0x56de02['enableCommand']('outdentList',_0x1e1333('outdentList')),_0x1d2c3f&&_0x56de02['enableCommand']('checkTodoList',()=>{const _0xed9d63=_0x30dfee['commands']['get']('checkTodoList'),_0x4ca25e=Array['from'](_0xed9d63['_selectedElements']);_0x4ca25e['filter'](_0x5aa8f9=>_0x5aa8f9['getAttribute']('todoListChecked')!=_0xed9d63['value']),_0x30dfee['model']['change'](()=>{for(const _0x5d903e of _0x4ca25e)_0x56de02['markBlockFormat'](_0x5d903e,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xed9d63['value']}]});});}),_0x56de02['descriptionFactory']['registerElementLabel']('listItem',_0x121a39=>At(_0x466525,'ELEMENT_LIST_ITEM',_0x121a39)),_0x56de02['descriptionFactory']['registerDescriptionCallback'](_0xcef6bd=>{if('formatBlock'!=_0xcef6bd['type']&&'formatInline'!=_0xcef6bd['type'])return;const {data:_0x52d97b}=_0xcef6bd;if(_0x52d97b){if('numberedList'==_0x52d97b['commandName']||'bulletedList'==_0x52d97b['commandName']||'todoList'==_0x52d97b['commandName'])switch(_0x52d97b['commandName']['replace']('List','')){case'bulleted':return _0x160727(At(_0x466525,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x160727(At(_0x466525,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x160727(At(_0x466525,'ELEMENT_TODO_LIST'));}if('indentList'==_0x52d97b['commandName'])return{'type':'format','content':At(_0x466525,'*Indent:*\x20%0',At(_0x466525,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x52d97b['commandName'])return{'type':'format','content':At(_0x466525,'*Outdent:*\x20%0',At(_0x466525,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x52d97b['commandName'])return _0x52d97b['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x466525,'*Check\x20item*')}:{'type':'format','content':At(_0x466525,'*Uncheck\x20item*')};}function _0x160727(_0x56ccc2){return{'type':'format','content':At(_0x466525,'*Change\x20to:*\x20%0',_0x56ccc2)};}});}}function he(_0x566fbb){const _0x50a003=_0x566fbb['getAttribute']('listIndent');if(0x0==_0x50a003)return _0x566fbb;let _0x53c2c4=_0x566fbb;for(;_0x566fbb['previousSibling']&&_0x566fbb['previousSibling']['is']('element','listItem');){const _0x2bd43c=_0x566fbb['previousSibling']['getAttribute']('listIndent');if(_0x2bd43c==_0x50a003)_0x53c2c4=_0x566fbb['previousSibling'];else{if(_0x2bd43c<_0x50a003)break;}_0x566fbb=_0x566fbb['previousSibling'];}return _0x53c2c4;}function de(_0x3cfcb5){const _0x46c04b=[];if(_0x3cfcb5['is']('element','listItem')&&_0x3cfcb5['getAttribute']('listIndent')>0x0){let _0x5e47de=_0x3cfcb5['nextSibling'];for(;_0x5e47de&&'listItem'==_0x5e47de['name']&&_0x5e47de['getAttribute']('listIndent')==_0x3cfcb5['getAttribute']('listIndent');)_0x46c04b['push'](_0x5e47de),_0x5e47de=_0x5e47de['nextSibling'];}return _0x46c04b;}class fe extends _0x415703{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x122339=this['editor']['config']['get']('list.properties'),_0x332b76=this['editor']['plugins']['get']('TrackChangesEditing');_0x122339['styles']&&_0x332b76['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x122339['reversed']&&_0x332b76['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x122339['startIndex']&&_0x332b76['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x332b76['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2e10f2,_0x13b1ee={}){const _0x845274=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb3788d=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x845274['markMultiRangeBlockFormat'](_0xb3788d,{'commandName':'listStyle','commandParams':[{'type':_0x13b1ee['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x40cf7e,_0x1b36e5={}){const _0x414c9f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x206d72=this['_getSuggestionBlocks'](_0xdf594a=>_0xdf594a['is']('element','listItem')&&'numbered'===_0xdf594a['getAttribute']('listType'));if(_0x206d72['length']<0x1)return;const _0x53331b=_0x206d72['map'](_0x225914=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x225914,'before'),this['editor']['model']['createPositionAt'](_0x225914,0x0)));this['editor']['model']['change'](()=>{_0x414c9f['markMultiRangeBlockFormat'](_0x53331b,{'commandName':'listReversed','commandParams':[{'reversed':_0x1b36e5['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3353ec,_0x2a4b92={}){const _0x4cdb0f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x48b51a=this['_getSuggestionBlocks'](_0x20c52f=>_0x20c52f['is']('element','listItem')&&'numbered'===_0x20c52f['getAttribute']('listType'));if(_0x48b51a['length']<0x1)return;const _0x15bc70=_0x48b51a['map'](_0xaf387d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xaf387d,'before'),this['editor']['model']['createPositionAt'](_0xaf387d,0x0)));this['editor']['model']['change'](()=>{_0x4cdb0f['markMultiRangeBlockFormat'](_0x15bc70,{'commandName':'listStart','commandParams':[{'startIndex':_0x2a4b92['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x47150e){if('formatBlock'!=_0x47150e['type']&&'formatInline'!=_0x47150e['type'])return;const _0x1d292c=this['editor']['locale'],{data:_0x10e234}=_0x47150e;if(!_0x10e234)return;let _0x251a4b,_0x1a6cbc;switch(_0x10e234['commandName']){case'listStyle':_0x251a4b='*Change\x20to:*\x20%0',_0x1a6cbc={'type':'format','content':At(_0x1d292c,_0x251a4b,At(_0x1d292c,this['_getTranslationKeyForListStyle'](_0x10e234['commandParams'][0x0]['type'])))};break;case'listReversed':_0x251a4b=_0x10e234['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1a6cbc={'type':'format','content':At(_0x1d292c,_0x251a4b)};break;case'listStart':_0x251a4b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1a6cbc={'type':'format','content':At(_0x1d292c,_0x251a4b,_0x10e234['commandParams'][0x0]['startIndex'])};}return _0x1a6cbc;}['_getSuggestionBlocksForListStyle'](){const _0x3f05df=this['editor']['plugins']['get']('LegacyListUtils');let _0xd02b0f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xd02b0f[0x0]?.['is']('element','listItem')&&_0xd02b0f['unshift'](..._0x3f05df['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xd02b0f[_0xd02b0f['length']-0x1]?.['is']('element','listItem')&&_0xd02b0f['push'](..._0x3f05df['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xd02b0f=[...new Set(_0xd02b0f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xd02b0f=_0xd02b0f['filter'](_0x38094a=>_0x38094a['is']('element','listItem'))),_0xd02b0f;}['_getSuggestionBlocks'](_0x988e37){const _0x2f3af8=this['editor']['plugins']['get']('LegacyListUtils');let _0x40fefb=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x988e37)['map'](_0x339f06=>{const _0x1b03fe=this['editor']['model']['createPositionAt'](_0x339f06,0x0);return[..._0x2f3af8['getSiblingNodes'](_0x1b03fe,'backward'),..._0x2f3af8['getSiblingNodes'](_0x1b03fe,'forward')];})['flat']();return _0x40fefb=[...new Set(_0x40fefb)],_0x40fefb;}['_getTranslationKeyForListStyle'](_0x3a386c){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3a386c)||'default')['toUpperCase']()+'_LIST_'+_0x3a386c['toUpperCase']()['replace'](/-/g,'_');}}class ge extends _0x415703{['afterInit'](){const _0x595c97=this['editor'];if(!_0x595c97['plugins']['has']('MediaEmbedEditing'))return;const _0x982c99=_0x595c97['plugins']['get']('TrackChangesEditing'),_0x533a99=_0x595c97['locale'];_0x982c99['enableCommand']('mediaEmbed'),_0x982c99['descriptionFactory']['registerElementLabel']('media',_0x43e5db=>At(_0x533a99,'ELEMENT_MEDIA',_0x43e5db));}}class me extends _0x415703{['afterInit'](){const _0x2da873=this['editor'];_0x2da873['plugins']['has']('MentionEditing')&&_0x2da873['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class Ee extends _0x415703{['afterInit'](){const _0x24fa9b=this['editor'];if(!_0x24fa9b['plugins']['has']('MergeFieldsEditing'))return;const _0x391882=_0x24fa9b['plugins']['get']('TrackChangesEditing'),_0x235d1d=_0x24fa9b['locale'];_0x391882['enableCommand']('insertMergeField'),_0x391882['enableCommand']('insertMergeFieldBlock'),_0x391882['enableCommand']('insertMergeFieldImage'),_0x391882['descriptionFactory']['registerElementLabel']('mergeField',_0x4d313a=>At(_0x235d1d,'ELEMENT_MERGE_FIELD',_0x4d313a)),_0x391882['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2e0c62=>At(_0x235d1d,'ELEMENT_MERGE_FIELD',_0x2e0c62)),_0x391882['descriptionFactory']['registerDescriptionCallback'](_0x4d44d6=>{if('insertion'!=_0x4d44d6['type']&&'deletion'!=_0x4d44d6['type'])return;const _0x5152e1=_0x4d44d6['getContainedElement']();if(null==_0x5152e1)return;const _0x5e32cd=_0x24fa9b['plugins']['get']('MergeFieldsEditing');let _0x3cb2d4;switch(_0x5e32cd['getMergeFieldType'](_0x5152e1)){case null:return;case'image':{const _0x5d39aa=_0x5e32cd['unwrapAffixes'](_0x5152e1['getAttribute']('src'));_0x3cb2d4=_0x5e32cd['getLabel'](_0x5d39aa)||_0x5d39aa;break;}default:{const _0x126e26=_0x5152e1['getAttribute']('id');_0x3cb2d4=_0x5e32cd['getLabel'](_0x126e26)||_0x126e26;break;}}return'insertion'==_0x4d44d6['type']?{'type':'insertion','content':At(_0x235d1d,'*Insert:*\x20%0','\x22'+_0x3cb2d4+'\x22\x20'+At(_0x235d1d,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':At(_0x235d1d,'*Remove:*\x20%0','\x22'+_0x3cb2d4+'\x22\x20'+At(_0x235d1d,'ELEMENT_MERGE_FIELD'))};});}}class Te extends _0x415703{['afterInit'](){const _0x2456a9=this['editor'],_0x330fe6=_0x2456a9['plugins']['get']('TrackChangesEditing');_0x2456a9['plugins']['has']('MultiLevelList')&&(_0x330fe6['enableDefaultAttributesIntegration']('multiLevelList'),_0x330fe6['descriptionFactory']['registerDescriptionCallback'](_0x5ddb22=>this['handleDescriptions'](_0x5ddb22)));}['handleDescriptions'](_0x43d461){const _0x23e603=this['editor']['locale'],{data:_0x560ee5}=_0x43d461,_0x52e0ca={'type':'format','content':''};if(_0x560ee5&&'listMarkerStyle'==_0x560ee5['key']){if(!_0x560ee5['oldValue'])return{'type':'format','content':At(_0x23e603,'*Set\x20format:*\x20%0',At(_0x23e603,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x560ee5['newValue']+')'};if(!_0x560ee5['newValue']){let _0x3bf40b=_0x43d461['head'];for(;_0x3bf40b;){if(_0x3bf40b['data']&&'listType'==_0x3bf40b['data']['key']&&_0x3bf40b['data']['newValue'])return _0x52e0ca;_0x3bf40b=_0x3bf40b['next'];}return{'type':'format','content':At(_0x23e603,'*Remove\x20format:*\x20%0',At(_0x23e603,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x560ee5['oldValue']+')'};}}}}class _e extends _0x415703{['afterInit'](){const _0x43c162=this['editor'];if(!_0x43c162['plugins']['has']('PageBreakEditing'))return;_0x43c162['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x58ab2f=_0x43c162['plugins']['get']('TrackChangesEditing'),_0x32c998=_0x43c162['locale'];_0x58ab2f['descriptionFactory']['registerElementLabel']('pageBreak',_0x3e6228=>At(_0x32c998,'ELEMENT_PAGE_BREAK',_0x3e6228));}}class pe extends _0x415703{['afterInit'](){const _0x1eb90f=this['editor'];if(!_0x1eb90f['plugins']['has']('Paragraph'))return;const _0x493fc3=_0x1eb90f['locale'],_0x57b2ae=_0x1eb90f['plugins']['get']('TrackChangesEditing');_0x57b2ae['descriptionFactory']['registerElementLabel']('paragraph',_0x464e33=>At(_0x493fc3,'ELEMENT_PARAGRAPH',_0x464e33)),_0x57b2ae['enableDefaultAttributesIntegration']('paragraph'),_0x57b2ae['enableCommand']('insertParagraph');const _0x5f9eff=_0x57b2ae['descriptionFactory'];_0x5f9eff['registerDescriptionCallback'](_0x95dbdf=>{if('insertion'!==_0x95dbdf['type'])return;const {start:_0x56aeb2,end:_0x39be2e}=_0x95dbdf['getFirstRange']();if(!_0x56aeb2['isTouching'](_0x39be2e)||!_0x56aeb2['nodeAfter'])return;const _0x2d6328=_0x1eb90f['model']['schema'],_0x38157e=_0x56aeb2['nodeAfter'];return _0x2d6328['isBlock'](_0x38157e)&&!_0x2d6328['isLimit'](_0x38157e)&&_0x2d6328['checkChild'](_0x38157e,'$text')?{'type':'insertion','content':At(_0x493fc3,'*Insert:*\x20%0',_0x5f9eff['getItemLabel'](_0x38157e,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1108cf=this['editor'],_0x3ab32f=_0x1108cf['locale'];_0x1108cf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25cae8=>{if('formatBlock'!=_0x25cae8['type'])return;const {data:_0x55de0c}=_0x25cae8;return _0x55de0c&&'paragraph'==_0x55de0c['commandName']?{'type':'format','content':At(_0x3ab32f,'*Change\x20to:*\x20%0',At(_0x3ab32f,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class Le extends _0x415703{['afterInit'](){const _0x156563=this['editor'];_0x156563['commands']['get']('replaceSource')&&_0x156563['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class Ie extends _0x415703{['afterInit'](){const _0x2eb3ef=this['editor'];if(!_0x2eb3ef['plugins']['has']('RemoveFormatEditing'))return;_0x2eb3ef['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30e602=this['editor'];_0x30e602['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x387b17=>{if('formatBlock'!=_0x387b17['type']&&'formatInline'!=_0x387b17['type'])return;const {data:_0x37ecb1}=_0x387b17;return _0x37ecb1&&'removeFormat'==_0x37ecb1['commandName']?{'type':'format','content':At(_0x30e602['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class be extends _0x415703{['afterInit'](){const _0x3387a8=this['editor'];if(!_0x3387a8['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x475082=_0x3387a8['plugins']['get']('TrackChangesEditing');_0x475082['enableCommand']('goToPreviousRestrictedEditingException'),_0x475082['enableCommand']('goToNextRestrictedEditingException');const _0x281d9e=_0x3387a8['plugins']['get']('RestrictedEditingModeEditing');_0x281d9e['enableCommand']('trackChanges'),_0x281d9e['enableCommand']('acceptSuggestion'),_0x281d9e['enableCommand']('discardSuggestion'),_0x281d9e['enableCommand']('acceptAllSuggestions'),_0x281d9e['enableCommand']('discardAllSuggestions'),_0x281d9e['enableCommand']('acceptSelectedSuggestions'),_0x281d9e['enableCommand']('discardSelectedSuggestions');}}class Ae extends _0x415703{['afterInit'](){const _0x3ef305=this['editor'];if(!_0x3ef305['plugins']['has']('ShiftEnter'))return;const _0x3688dc=_0x3ef305['plugins']['get']('TrackChangesEditing');_0x3688dc['enableCommand']('shiftEnter'),_0x3688dc['descriptionFactory']['registerElementLabel']('softBreak',_0x405dce=>At(_0x3ef305['locale'],'ELEMENT_LINE_BREAK',_0x405dce));}}function ke(_0x30ecb3,_0x1942c2,_0x489bfc){const _0x4ee48b=[];for(const _0x541993 of _0x1942c2['getItems']())_0x541993['hasAttribute'](_0x30ecb3)&&_0x4ee48b['push'](_0x489bfc['createRangeOn'](_0x541993));return _0x4ee48b;}class Ce extends _0x415703{['afterInit'](){const _0x1d7cd3=this['editor'],_0x27f708=_0x1d7cd3['plugins']['get']('TrackChangesEditing');_0x1d7cd3['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x27f708['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x4e063f=this['editor'],_0x162c15=_0x4e063f['model'],_0x57d586=_0x4e063f['locale'],_0x56c097=_0x4e063f['plugins']['get']('TrackChangesEditing'),_0x54d7e1='restrictedEditingException',_0x2dd80c=_0x4e063f['commands']['get'](_0x54d7e1);_0x56c097['enableCommand'](_0x54d7e1,(_0x59845b,_0x5d58c5={})=>{const _0x22a236=_0x162c15['document']['selection'];if(_0x22a236['isCollapsed'])return void _0x59845b(_0x5d58c5);const _0x144582=void 0x0!==_0x5d58c5['forceValue']?_0x5d58c5['forceValue']:!_0x2dd80c['value'];_0x162c15['change'](()=>{const _0x443fe4=Array['from'](_0x22a236['getRanges']());for(const _0x369e4e of _0x443fe4){const _0x161e81=_0x144582?[_0x369e4e]:ke(_0x54d7e1,_0x369e4e,_0x162c15);for(const _0x17dc90 of _0x161e81)_0x56c097['markInlineFormat'](_0x17dc90,{'commandName':_0x54d7e1,'commandParams':[{'forceValue':_0x144582}]});}});}),_0x56c097['descriptionFactory']['registerDescriptionCallback'](_0x233384=>{if('formatBlock'!=_0x233384['type']&&'formatInline'!=_0x233384['type'])return;const {data:_0xef336d}=_0x233384;return _0xef336d&&_0xef336d['commandName']==_0x54d7e1?_0xef336d['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x57d586,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x57d586,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0xd17dbc=this['editor'],_0xa30a09=_0xd17dbc['locale'],_0x206bdd=_0xd17dbc['plugins']['get']('TrackChangesEditing'),_0x1a8148='restrictedEditingExceptionBlock',_0x4155c1=this['editor']['commands']['get'](_0x1a8148);_0x206bdd['enableCommand'](_0x1a8148,(_0x932935,_0x5d0cc7={})=>{const _0xdd2c41=this['editor']['model']['document']['selection'],_0x595c24=_0x5d0cc7&&void 0x0!==_0x5d0cc7['forceValue']?_0x5d0cc7['forceValue']:!_0x4155c1['value'];let _0xea7fd=[];if(_0x595c24){const _0x4b8197=Array['from'](_0xdd2c41['getSelectedBlocks']())['filter'](_0xa39309=>function(_0x170849){return!!_0x170849['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0xa39309)||function(_0x5eaa47,_0x5d3e2c){const _0x2cd626=_0x5d3e2c['createContext'](_0x5eaa47['parent']);if(!_0x5d3e2c['checkChild'](_0x2cd626,'restrictedEditingException'))return!0x1;if(!_0x5d3e2c['checkChild'](_0x2cd626['push']('restrictedEditingException'),_0x5eaa47))return!0x1;return!0x0;}(_0xa39309,this['editor']['model']['schema']));_0xea7fd=Tt(_0x4b8197,_0xd17dbc['model']);}else{const _0x3c7487=Array['from'](_0xdd2c41['getSelectedBlocks']())['map'](_0x2533db=>function(_0x47d1e0){let _0x5ceefb=_0x47d1e0;for(;_0x5ceefb['parent'];){if('restrictedEditingException'==_0x5ceefb['parent']['name'])return _0x5ceefb;_0x5ceefb=_0x5ceefb['parent'];}return null;}(_0x2533db))['filter'](_0x136e8a=>!!_0x136e8a);_0xea7fd=Tt(_0x3c7487,_0xd17dbc['model']);}_0xd17dbc['model']['change'](()=>{for(const _0x1fd354 of _0xea7fd)_0x206bdd['markBlockFormat'](_0x1fd354,{'commandName':_0x1a8148,'commandParams':[{'forceValue':_0x595c24}]});});}),_0x206bdd['descriptionFactory']['registerDescriptionCallback'](_0x4cf597=>{const {data:_0x475dbe}=_0x4cf597;if(_0x475dbe&&_0x475dbe['commandName']==_0x1a8148)return _0x475dbe['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0xa30a09,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0xa30a09,'FORMAT_RESTRICTED_DISABLED')};});}}class ye extends _0x415703{['afterInit'](){const _0x2fa075=this['editor'];if(!_0x2fa075['plugins']['has']('Style')||!_0x2fa075['plugins']['has']('DataSchema'))return;const _0x3469a0=_0x2fa075['plugins']['get']('TrackChangesEditing'),_0x475e16=_0x2fa075['locale'],_0x10b9d1=_0x2fa075['config']['get']('style')||{},_0x48785b=_0x2fa075['plugins']['get']('GeneralHtmlSupport'),_0xd3d880=_0x2fa075['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2fa075['plugins']['get']('DataSchema'),_0x10b9d1['definitions']);_0x3469a0['enableDefaultAttributesIntegration']('style');const _0x1ce46f=new Set();for(const _0x3ca8b1 of _0xd3d880['block']){const _0x1e2c4a=_0x48785b['getGhsAttributeNameForElement'](_0x3ca8b1['element']);_0x1ce46f['add'](_0x1e2c4a);}const _0x4454fe=new Set();for(const _0xe9847c of _0xd3d880['inline']){const _0x2a33f4=_0x48785b['getGhsAttributeNameForElement'](_0xe9847c['element']);_0x4454fe['add'](_0x2a33f4);for(const _0x18ddaf of _0xe9847c['ghsAttributes'])_0x4454fe['add'](_0x18ddaf);}for(const _0x56151c of _0x1ce46f)_0x3469a0['descriptionFactory']['registerAttributeLabel'](_0x56151c,At(_0x475e16,'FORMAT_STYLE'));for(const _0xfa5cd6 of _0x4454fe)_0x3469a0['descriptionFactory']['registerAttributeLabel'](_0xfa5cd6,At(_0x475e16,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b2926=this['editor'],_0x157419=_0x1b2926['locale'];_0x1b2926['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x505158=>{if('formatBlock'!=_0x505158['type']&&'formatInline'!=_0x505158['type'])return;const {data:_0x47a26f}=_0x505158;return _0x47a26f&&'style'===_0x47a26f['commandName']?_0x47a26f['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x157419,'*Set\x20format:*\x20%0',_0x47a26f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':At(_0x157419,'*Remove\x20format:*\x20%0',_0x47a26f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ne extends _0x415703{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x36c10b){super(_0x36c10b),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x16e742=this['editor'],_0x82cd37=_0x16e742['model']['document']['selection'];if(!_0x16e742['plugins']['has']('TableEditing'))return;const _0x2c8e75=_0x16e742['locale'],_0x273523=_0x16e742['plugins']['get']('TrackChangesEditing'),_0x50743d=_0x16e742['plugins']['get']('TableUtils');_0x273523['descriptionFactory']['registerElementLabel']('table',_0x9dfa98=>At(_0x2c8e75,'ELEMENT_TABLE',_0x9dfa98)),this['_setupColumnsRowsFixing'](),_0x273523['enableCommand']('insertTable'),_0x273523['enableCommand']('selectTableRow'),_0x273523['enableCommand']('selectTableColumn');for(const _0xa5e05a of['insertTableRowAbove','insertTableRowBelow']){const _0x38434a=_0x16e742['commands']['get'](_0xa5e05a);_0x273523['enableCommand'](_0xa5e05a,_0x50273d=>{_0x16e742['model']['change'](_0x213da0=>{_0x50273d();const _0x20bc2a='above'===_0x38434a['order'],_0x326040=_0x50743d['getSelectionAffectedTableCells'](_0x82cd37),_0x564ec9=_0x50743d['getRowIndexes'](_0x326040),_0x11eb43=_0x20bc2a?_0x564ec9['first']-0x1:_0x564ec9['last']+0x1,_0x1fc5ee=_0x326040[0x0]['findAncestor']('table'),_0x2fb0c6=_0x50743d['createTableWalker'](_0x1fc5ee,{'startRow':_0x11eb43,'endRow':_0x11eb43}),_0x3228d4=Array['from'](_0x2fb0c6)['map'](_0x285147=>_0x213da0['createRangeOn'](_0x285147['cell']));_0x273523['markMultiRangeInsertion'](_0x3228d4,'tableRow');});});}for(const _0x18020a of['insertTableColumnLeft','insertTableColumnRight']){const _0x8f59b1=_0x16e742['commands']['get'](_0x18020a);_0x273523['enableCommand'](_0x18020a,_0x7e717f=>{_0x16e742['model']['change'](_0x5e6b44=>{_0x7e717f();const _0x44f8d4='left'===_0x8f59b1['order'],_0x545681=_0x50743d['getSelectionAffectedTableCells'](_0x82cd37),_0x4f433e=_0x50743d['getColumnIndexes'](_0x545681),_0x330d91=_0x44f8d4?_0x4f433e['first']-0x1:_0x4f433e['last']+0x1,_0x267c3f=_0x545681[0x0]['findAncestor']('table'),_0x33b891=_0x50743d['createTableWalker'](_0x267c3f,{'startRow':0x0,'column':_0x330d91,'includeAllSlots':!0x1}),_0x1c811a=Array['from'](_0x33b891)['map'](_0x6b06d=>_0x5e6b44['createRangeOn'](_0x6b06d['cell']));_0x273523['markMultiRangeInsertion'](_0x1c811a,'tableColumn');});});}for(const _0x412bf7 of['removeTableRow','removeTableColumn']){const _0x251708=_0x412bf7['substr'](0xb),_0x30286d=_0x251708['toLowerCase'](),_0x576b8d=_0x30286d['substr'](0x0,0x3)+'span',_0x565fe0='table'+_0x251708,_0x9aa31b='min'+_0x251708,_0x21588a='max'+_0x251708;_0x273523['enableCommand'](_0x412bf7,()=>{_0x16e742['model']['change'](_0x17e45b=>{const _0x15edb2=_0x50743d['getSelectionAffectedTableCells'](_0x82cd37),_0x4e3f3a=_0x15edb2[0x0]['findAncestor']('table');let _0x331f5f;if('removeTableRow'==_0x412bf7){const _0x101e3c=_0x50743d['getRowIndexes'](_0x15edb2);_0x331f5f={'startRow':_0x101e3c['first'],'endRow':_0x101e3c['last'],'includeAllSlots':!0x0};}else{const _0x1ebaa7=_0x50743d['getColumnIndexes'](_0x15edb2);_0x331f5f={'startColumn':_0x1ebaa7['first'],'endColumn':_0x1ebaa7['last'],'includeAllSlots':!0x0};}const _0x3c41ae=_0x50743d['createTableWalker'](_0x4e3f3a,_0x331f5f),_0xd80870=Array['from'](_0x3c41ae)['map'](({cell:_0x5e5b7a})=>_0x5e5b7a),_0xb6eac6=Re(_0xd80870['filter'](_0x49a402=>_0x49a402['hasAttribute'](_0x576b8d))),_0x3743f1=Re(_0xd80870['filter'](_0x2b69b0=>!_0x2b69b0['hasAttribute'](_0x576b8d)))['map'](_0x81a1f8=>_0x17e45b['createRangeOn'](_0x81a1f8)),_0x482029=_0x273523['markMultiRangeDeletion'](_0x3743f1,_0x565fe0);if(_0x482029&&('tableRow'==_0x482029['subType']||'tableColumn'==_0x482029['subType'])){const _0x56b4fb=this['_getSuggestionCoords'](_0x482029);for(const _0xc92618 of _0xb6eac6){const _0x6261fd=_0x17e45b['createRangeOn'](_0xc92618),_0x27ef87=_0x50743d['getCellLocation'](_0xc92618),_0xa0b382=_0xc92618['getAttribute'](_0x576b8d)-0x1,_0x2782dd=_0x56b4fb[_0x9aa31b],_0x3ad7e5=_0x56b4fb[_0x21588a];_0x2782dd<=_0x27ef87[_0x30286d]&&_0x27ef87[_0x30286d]+_0xa0b382<=_0x3ad7e5&&_0x482029['addRange'](_0x6261fd);}}});});}function _0x38118c(_0x4c9ff5){const _0x1b4826=Array['from'](_0x82cd37['getRanges']())['map'](_0x8bb85a=>_0x3aace6['fromRange'](_0x8bb85a));_0x16e742['model']['change'](_0x9960b3=>{const _0x2e0537=_0x9960b3['batch'];_0x4c9ff5=_0x4c9ff5['filter'](_0x353826=>'$graveyard'!=_0x353826['root']['rootName']),_0x9960b3['setSelection'](_0x4c9ff5),_0x16e742['commands']['get']('removeTableRow')['refresh'](),_0x16e742['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x16e742['model']['enqueueChange'](()=>{_0x16e742['model']['enqueueChange'](_0x2e0537,_0x3eb3cd=>{const _0x44437d=_0x1b4826['filter'](_0x5268c7=>'$graveyard'!=_0x5268c7['root']['rootName']);_0x44437d['length']>0x0&&_0x3eb3cd['setSelection'](_0x44437d);for(const _0x25df8a of _0x1b4826)_0x25df8a['detach']();});});});}function _0x3bbc75(_0x258bf9){_0x16e742['model']['change'](_0x5c9235=>{const _0x214929=Array['from'](_0x82cd37['getRanges']())['map'](_0x96aef5=>_0x3aace6['fromRange'](_0x96aef5)),_0x471d68=[];for(const _0x246c78 of _0x258bf9)for(const _0x41d9c4 of _0x246c78['getItems']({'shallow':!0x0}))_0x471d68['push'](_0x41d9c4);for(const _0x379024 of _0x471d68)'$graveyard'!=_0x379024['root']['rootName']&&(_0x5c9235['setSelection'](_0x5c9235['createPositionAt'](_0x379024,0x0)),_0x16e742['commands']['get']('removeTableColumn')['refresh'](),_0x16e742['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5246d1=_0x214929['filter'](_0x3cdeea=>'$graveyard'!=_0x3cdeea['root']['rootName']);_0x5246d1['length']>0x0&&_0x5c9235['setSelection'](_0x5246d1);for(const _0x37f9f5 of _0x214929)_0x37f9f5['detach']();});}function _0x4066a2(_0x4fc862,_0x1cbc15){return _0x1cbc15['every'](_0x4456b5=>_0x4fc862['some'](_0x45d260=>_0x45d260['end']['isEqual'](_0x4456b5['start'])||_0x4456b5['end']['isEqual'](_0x45d260['start'])));}function _0x264d64(_0x58b20d,_0x5e1c25){return!_0x58b20d['some'](_0x3559fd=>_0x5e1c25['some'](_0x4a7cc9=>_0x3559fd['isIntersecting'](_0x4a7cc9)))&&_0x58b20d['some'](_0x3020ba=>_0x5e1c25['some'](_0xec71c8=>_0x3020ba['end']['isTouching'](_0xec71c8['start'])));}_0x273523['descriptionFactory']['registerDescriptionCallback'](_0x93323a=>{if('insertion'!=_0x93323a['type']&&'deletion'!=_0x93323a['type'])return;const _0x37e446=_0x93323a['getContainedElement']();if(null!=_0x37e446&&_0x37e446['is']('element','table')){if('insertion'==_0x93323a['type']){const _0x2e14ae=_0x93323a['getItems']()['filter'](_0x2894ba=>_0x2894ba['is']('$textProxy'))['map'](_0x42bf37=>_0x42bf37['data']);if(_0x2e14ae['length'])return{'type':'insertion','content':At(_0x2c8e75,'*Insert:*\x20%0',At(_0x2c8e75,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2e14ae['join']('\x20')+'\x22'))};}if('deletion'==_0x93323a['type']){const _0x1d13c4=_0x93323a['getItems']()['filter'](_0x32e943=>_0x32e943['is']('$textProxy'))['map'](_0x2a7924=>_0x2a7924['data']);if(_0x1d13c4['length'])return{'type':'deletion','content':At(_0x2c8e75,'*Remove:*\x20%0',At(_0x2c8e75,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1d13c4['join']('\x20')+'\x22'))};}}}),_0x273523['descriptionFactory']['registerDescriptionCallback'](_0x1b9948=>{if('tableRow'==_0x1b9948['subType']){const _0x4b5314=_0x1b9948['getItems']()['filter'](_0x2130d1=>_0x2130d1['is']('$textProxy'))['map'](_0xd899c5=>_0xd899c5['data']),_0x366a6a=this['_getSuggestionCoords'](_0x1b9948),_0x348c0e=_0x366a6a['maxRow']-_0x366a6a['minRow']+0x1;if('insertion'==_0x1b9948['type'])return _0x4b5314['length']?{'type':'insertion','content':At(_0x2c8e75,'*Insert:*\x20%0',At(_0x2c8e75,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x348c0e,'\x22'+_0x4b5314['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x2c8e75,'*Insert:*\x20%0',At(_0x2c8e75,'ELEMENT_TABLE_ROW',_0x348c0e))};if('deletion'==_0x1b9948['type'])return _0x4b5314['length']?{'type':'deletion','content':At(_0x2c8e75,'*Remove:*\x20%0',At(_0x2c8e75,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x348c0e,'\x22'+_0x4b5314['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x2c8e75,'*Remove:*\x20%0',At(_0x2c8e75,'ELEMENT_TABLE_ROW',_0x348c0e))};}if('tableColumn'==_0x1b9948['subType']){const _0x2d563f=_0x1b9948['getItems']()['filter'](_0x4ae403=>_0x4ae403['is']('$textProxy'))['map'](_0x20d4fd=>_0x20d4fd['data']),_0x121380=this['_getSuggestionCoords'](_0x1b9948),_0x2e9dfc=_0x121380['maxColumn']-_0x121380['minColumn']+0x1;if('insertion'==_0x1b9948['type'])return _0x2d563f['length']?{'type':'insertion','content':At(_0x2c8e75,'*Insert:*\x20%0',At(_0x2c8e75,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2e9dfc,'\x22'+_0x2d563f['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x2c8e75,'*Insert:*\x20%0',At(_0x2c8e75,'ELEMENT_TABLE_COLUMN',_0x2e9dfc))};if('deletion'==_0x1b9948['type'])return _0x2d563f['length']?{'type':'deletion','content':At(_0x2c8e75,'*Remove:*\x20%0',At(_0x2c8e75,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2e9dfc,'\x22'+_0x2d563f['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x2c8e75,'*Remove:*\x20%0',At(_0x2c8e75,'ELEMENT_TABLE_COLUMN',_0x2e9dfc))};}}),_0x273523['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x38118c),_0x273523['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x38118c),_0x273523['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3bbc75),_0x273523['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3bbc75),_0x273523['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4066a2),_0x273523['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4066a2),_0x273523['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x264d64),_0x273523['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x264d64);}['_acceptFormatSuggestionCallbackFactory'](){const _0x107cd4=this['editor'],_0x22feb6=_0x107cd4['model']['document']['selection'];return(_0x232e6c,_0x35ed2d)=>{_0x107cd4['model']['change'](_0x5ba0ca=>{const {commandName:_0x23d3fd,commandParams:_0x49fd77}=_0x35ed2d;let _0x2b6984=_0x232e6c[0x0]['end']['nodeBefore'];_0x49fd77&&_0x49fd77[0x0]&&!0x1===_0x49fd77[0x0]['forceValue']&&(_0x2b6984=_0x232e6c[0x0]['start']['nodeAfter']);const _0x1f0c45=_0x5ba0ca['createRangeIn'](_0x2b6984);if('$graveyard'==_0x1f0c45['root']['rootName'])return;const _0x5e8fc0=Array['from'](_0x22feb6['getRanges']())['map'](_0x5381a0=>_0x3aace6['fromRange'](_0x5381a0));_0x5ba0ca['setSelection'](_0x1f0c45),_0x107cd4['commands']['get'](_0x23d3fd)['refresh'](),_0x49fd77['push']({'forceDefaultExecution':!0x0}),_0x107cd4['execute'](_0x23d3fd,..._0x49fd77);const _0x5d58d6=_0x5e8fc0['filter'](_0xc01b6d=>'$graveyard'!=_0xc01b6d['root']['rootName']);_0x5d58d6['length']>0x0&&_0x5ba0ca['setSelection'](_0x5d58d6);for(const _0x59de4e of _0x5e8fc0)_0x59de4e['detach']();});};}['_getCoordsForCells'](_0x3357b2){const _0x27cedd=this['editor']['plugins']['get']('TableUtils');let _0x43132d=Number['MAX_SAFE_INTEGER'],_0x187b94=Number['MIN_SAFE_INTEGER'],_0x3b6ad0=Number['MAX_SAFE_INTEGER'],_0x441565=Number['MIN_SAFE_INTEGER'];for(const _0x524a7f of _0x3357b2){if('$graveyard'==_0x524a7f['root']['rootName'])continue;const {row:_0x40e14b,column:_0x4cfc2d}=_0x27cedd['getCellLocation'](_0x524a7f),_0x56572d=_0x524a7f['hasAttribute']('rowspan')?_0x524a7f['getAttribute']('rowspan')-0x1:0x0,_0x528163=_0x524a7f['hasAttribute']('colspan')?_0x524a7f['getAttribute']('colspan')-0x1:0x0;_0x43132d=_0x40e14b<_0x43132d?_0x40e14b:_0x43132d,_0x187b94=_0x40e14b+_0x56572d>_0x187b94?_0x40e14b+_0x56572d:_0x187b94,_0x3b6ad0=_0x4cfc2d<_0x3b6ad0?_0x4cfc2d:_0x3b6ad0,_0x441565=_0x4cfc2d+_0x528163>_0x441565?_0x4cfc2d+_0x528163:_0x441565;}return{'minRow':_0x43132d,'maxRow':_0x187b94,'minColumn':_0x3b6ad0,'maxColumn':_0x441565};}['_setupColumnsRowsFixing'](){const _0x23745e=this['editor'],_0x289e3c=_0x23745e['plugins']['get']('TrackChangesEditing'),_0x1f57b3=_0x23745e['plugins']['get']('TableUtils');_0x23745e['model']['document']['on']('change:data',()=>{const _0x1b54ef=Array['from'](_0x23745e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5c617b,data:_0x5041a0}of _0x1b54ef){const {group:_0x2063df,id:_0x2bc690,subType:_0x477fa8}=_0x4fd2b2(_0x5c617b);if('suggestion'!=_0x2063df)continue;if(null!=_0x5041a0['oldRange'])continue;const _0x5c2f6f=_0x289e3c['getSuggestion'](_0x2bc690);this['_tablePostFixingSubtypes']['includes'](_0x477fa8)&&this['_tableSuggestions']['add'](_0x5c2f6f);}},{'priority':'low'});const _0x4556d4=(_0x4690b5,_0x50e2d8)=>{let _0x3c6154=!0x1;const _0x5c4bb1=_0x50e2d8['createRangeOn'](_0x4690b5),_0x76d7f9=_0x4690b5['findAncestor']('table'),_0x26b641=_0x1f57b3['getCellLocation'](_0x4690b5);for(const _0x2d9697 of this['_tableSuggestions']){const _0x1a2eaf=_0x2d9697['subType'],_0x54e048=_0x1a2eaf['startsWith']('tablePaste'),_0x57d898=_0x1a2eaf['substr'](_0x54e048?0xa:0x5),_0x25a44b=_0x57d898['toLowerCase'](),_0x207866=_0x25a44b['substr'](0x0,0x3)+'span',_0xb7eb86='min'+_0x57d898,_0x24e35f='max'+_0x57d898;if(!_0x2d9697['isInContent'])continue;if(_0x76d7f9!=_0x2d9697['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2d9697['isIntersectingWithRange'](_0x5c4bb1))continue;const _0x23c1a2=_0x4690b5['hasAttribute'](_0x207866)?_0x4690b5['getAttribute'](_0x207866)-0x1:0x0,_0x1e5971=this['_getSuggestionCoords'](_0x2d9697),_0x540ace=_0x1e5971[_0xb7eb86],_0x46a1d1=_0x1e5971[_0x24e35f];_0x540ace<=_0x26b641[_0x25a44b]&&_0x26b641[_0x25a44b]+_0x23c1a2<=_0x46a1d1&&(_0x2d9697['addRange'](_0x5c4bb1),_0x3c6154=!0x0);}return _0x3c6154;};_0x23745e['model']['document']['registerPostFixer'](_0x3d6946=>{let _0x491524=!0x1;for(const _0x52624a of _0x23745e['model']['document']['differ']['getChanges']())if('insert'==_0x52624a['type']){if('tableRow'==_0x52624a['name']){for(const _0x2464c of _0x52624a['position']['nodeAfter']['getChildren']())_0x491524=_0x491524||_0x4556d4(_0x2464c,_0x3d6946);}else'tableCell'==_0x52624a['name']&&(_0x491524=_0x491524||_0x4556d4(_0x52624a['position']['nodeAfter'],_0x3d6946));}return _0x491524;});}['_getSuggestionCoords'](_0x222870){return this['_getCoordsForCells'](_0x222870['getRanges']()['map'](_0x4740cc=>_0x4740cc['start']['nodeAfter']));}}function Re(_0x301c73){return Array['from'](new Set(_0x301c73)['values']());}class Se extends _0x415703{static get['requires'](){return[Ne];}['afterInit'](){const _0x13f750=this['editor'],_0x4f3e25=_0x13f750['model']['document']['selection'],_0x5ba921=_0x13f750['locale'];if(!_0x13f750['plugins']['has']('TableEditing'))return;const _0x149a91=_0x13f750['plugins']['get']('TrackChangesEditing'),_0x3d5b89=_0x13f750['plugins']['get']('TableUtils'),_0xab6c13=_0x13f750['plugins']['get'](Ne);_0xab6c13['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x149a91['enableCommand']('mergeTableCells',()=>{const _0x341daf=_0x3d5b89['getSelectionAffectedTableCells'](_0x13f750['model']['document']['selection']);_0x13f750['model']['change'](()=>{_0x149a91['markMultiRangeBlockFormat'](_0x341daf,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x13f750['commands']['get']('mergeTableCells')['on']('execute',(_0x19a4fc,_0x5f2212)=>{_0x13f750['commands']['get']('trackChanges')['value']&&(_0x5f2212['length']>0x0&&_0x5f2212[_0x5f2212['length']-0x1]&&_0x5f2212[_0x5f2212['length']-0x1]['forceDefaultExecution']||_0x149a91['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x19a4fc['stop']());},{'priority':'highest'});for(const _0x4032fc of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x380b17=_0x13f750['commands']['get'](_0x4032fc);_0x149a91['enableCommand'](_0x4032fc,()=>{const _0x2dd29=_0x13f750['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xb9167f=>_0xb9167f['is']('element','tableCell')),_0x217948=_0x380b17['value'];_0x13f750['model']['change'](()=>{_0x149a91['markMultiRangeBlockFormat']([_0x2dd29,_0x217948],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3569ba of['splitTableCellVertically','splitTableCellHorizontally']){const _0x351ca4=_0x13f750['commands']['get'](_0x3569ba);_0x149a91['enableCommand'](_0x3569ba,()=>{const _0x4fe176=_0x3d5b89['getSelectionAffectedTableCells'](_0x13f750['model']['document']['selection'])[0x0],_0x3e5b30=_0x4fe176['findAncestor']('table'),{column:_0x58e4c5,row:_0x4b37dc}=_0x3d5b89['getCellLocation'](_0x4fe176);let _0x347530=[];if('horizontally'==_0x351ca4['direction']){const _0x35e16f=_0x3d5b89['createTableWalker'](_0x3e5b30,{'startRow':_0x4b37dc,'endRow':_0x4b37dc,'includeAllSlots':!0x0});_0x347530=Array['from'](_0x35e16f)['map'](_0x557cb7=>_0x557cb7['cell']);}else{const _0x42ef9e=_0x3d5b89['createTableWalker'](_0x3e5b30,{'column':_0x58e4c5,'includeAllSlots':!0x0});_0x347530=Array['from'](_0x42ef9e)['map'](_0x3d4ed5=>_0x3d4ed5['cell']);}_0x13f750['model']['change'](_0x2bbae3=>{_0x149a91['markBlockFormat'](_0x2bbae3['createRangeOn'](_0x4fe176),{'commandName':_0x3569ba,'commandParams':[]},_0x347530,_0x3569ba);});});}_0x149a91['descriptionFactory']['registerDescriptionCallback'](_0x4959f1=>{if('formatBlock'!=_0x4959f1['type']&&'formatInline'!=_0x4959f1['type'])return;const {data:_0x4dbc4e}=_0x4959f1;return _0x4dbc4e&&'mergeTableCells'==_0x4dbc4e['commandName']?{'type':'format','content':At(_0x5ba921,'*Merge\x20cells*')}:void 0x0;}),_0x149a91['descriptionFactory']['registerDescriptionCallback'](_0x1cbb06=>{if('formatBlock'!=_0x1cbb06['type']&&'formatInline'!=_0x1cbb06['type'])return;const {data:_0x3720bf}=_0x1cbb06;return _0x3720bf?'splitTableCellVertically'==_0x3720bf['commandName']?{'type':'format','content':At(_0x5ba921,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3720bf['commandName']?{'type':'format','content':At(_0x5ba921,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x306e87=_0xab6c13['_acceptFormatSuggestionCallbackFactory']();for(const _0xcb96de of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x149a91['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xcb96de,'accept',_0x306e87);for(const _0x2554a9 of['splitTableCellVertically','splitTableCellHorizontally'])_0x149a91['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2554a9,'accept',_0x306e87);_0x149a91['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3226fc=>{_0x13f750['model']['change'](_0xadbb4a=>{const _0x1e8c64=Array['from'](_0x4f3e25['getRanges']())['map'](_0x4b85d4=>_0x3aace6['fromRange'](_0x4b85d4));_0xadbb4a['setSelection'](_0x3226fc),_0x13f750['commands']['get']('mergeTableCells')['refresh'](),_0x13f750['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3fb806=_0x1e8c64['filter'](_0x546dec=>'$graveyard'!=_0x546dec['root']['rootName']);_0x3fb806['length']>0x0&&_0xadbb4a['setSelection'](_0x3fb806);for(const _0x3a0f32 of _0x1e8c64)_0x3a0f32['detach']();});});for(const _0x149da5 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x519276=_0x13f750['commands']['get'](_0x149da5);_0x519276['on']('set:isEnabled',(_0x2d5688,_0x4448fc,_0x4a823b)=>{if(_0x4a823b){const _0x59d311=_0x13f750['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1d47b1=>_0x1d47b1['is']('element','tableCell'));this['_areMergableCells'](_0x519276['value'],_0x59d311)||(_0x2d5688['return']=!0x1,_0x2d5688['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x49412a=this['editor']['commands']['get']('mergeTableCells'),_0x9763b2=this['editor']['plugins']['get']('TableUtils');if(!_0x49412a['isEnabled'])return!0x1;const _0x226465=_0x9763b2['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x49adaa of _0x226465)for(const _0x1701b0 of _0x226465)if(_0x49adaa!=_0x1701b0&&!this['_areMergableCells'](_0x49adaa,_0x1701b0))return!0x1;return!0x0;}['_areMergableCells'](_0x3b82cc,_0xfbce93){const _0x657e09=this['editor']['plugins']['get']('TrackChangesEditing'),_0x340512=this['editor']['model']['createRangeOn'](_0x3b82cc),_0x4449f7=this['editor']['model']['createRangeOn'](_0xfbce93),_0x13cd8a=new Set(),_0x39e018=new Set();for(const _0x40daa7 of _0x657e09['getSuggestions']())if(('insertion'==_0x40daa7['type']||'deletion'==_0x40daa7['type']||'mergeTableCells'==_0x40daa7['subType'])&&_0x40daa7['isInContent']){for(const _0x1ae5b8 of _0x40daa7['getRanges']())_0x1ae5b8['containsRange'](_0x340512,!0x0)&&_0x13cd8a['add'](_0x40daa7['type']+':'+_0x40daa7['author']['id']),_0x1ae5b8['containsRange'](_0x4449f7,!0x0)&&_0x39e018['add'](_0x40daa7['type']+':'+_0x40daa7['author']['id']);}if(_0x13cd8a['size']!=_0x39e018['size'])return!0x1;for(const _0xdc87ed of _0x13cd8a)if(!_0x39e018['has'](_0xdc87ed))return!0x1;return!0x0;}}class Me extends _0x415703{static get['requires'](){return[Ne];}['afterInit'](){const _0x2f6175=this['editor'];if(!_0x2f6175['plugins']['has']('TableEditing'))return;const _0x37933c=_0x2f6175['locale'],_0x14625d=_0x2f6175['plugins']['get']('TrackChangesEditing');_0x14625d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x14625d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x14625d['descriptionFactory']['registerAttributeLabel']('headingRows',At(_0x37933c,'FORMAT_HEADER_ROW')),_0x14625d['descriptionFactory']['registerAttributeLabel']('headingColumns',At(_0x37933c,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2d2f2f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3354fd=this['editor']['plugins']['get'](Ne)['_acceptFormatSuggestionCallbackFactory']();_0x2d2f2f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3354fd),_0x2d2f2f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3354fd),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x4721d0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x377f52=this['editor']['plugins']['get']('TableUtils');function _0x112a64({showActiveMarker:_0x164b98=!0x0,setDataAttribute:_0x3d4a81=!0x0}={}){return(_0x5035f6,_0x1c80c0,_0x460946)=>{const {type:_0xeefec8,id:_0x35210c}=_0x4fd2b2(_0x1c80c0['markerName']);if(!_0x4721d0['hasSuggestion'](_0x35210c))return;const _0xaccc3f=_0x4721d0['getSuggestion'](_0x35210c),_0x3285f3=_0xaccc3f['data'];if('formatBlock'!=_0xaccc3f['type']||!_0x3285f3||'setTableColumnHeader'!=_0x3285f3['commandName'])return;if(_0x1c80c0['item'])return void _0x5035f6['stop']();if(!_0x460946['consumable']['consume'](_0x1c80c0['markerRange'],_0x5035f6['name']))return;const _0x199bd0=_0x1c80c0['markerRange']['start']['nodeAfter'],_0x5e474f=_0x1c80c0['markerRange']['end']['nodeBefore'],_0x3f3671=_0x199bd0['parent']['parent'],{column:_0x5e9c81}=_0x377f52['getCellLocation'](_0x199bd0),{column:_0x38cc5d}=_0x377f52['getCellLocation'](_0x5e474f);for(let _0x515f51=_0x5e9c81;_0x515f51<=_0x38cc5d;_0x515f51++){const _0x332c94=_0x377f52['createTableWalker'](_0x3f3671,{'column':_0x515f51,'includeAllSlots':!0x1});for(const _0x59f40e of _0x332c94){const _0x5a3701=_0x59f40e['cell'],_0x17f847=_0x460946['mapper']['toViewElement'](_0x5a3701);_0x460946['writer']['addClass']('ck-suggestion-marker-'+_0xeefec8,_0x17f847),_0x3d4a81&&_0x460946['writer']['setAttribute']('data-suggestion',_0x35210c,_0x17f847),_0x460946['mapper']['bindElementToMarker'](_0x17f847,_0x1c80c0['markerName']),_0x164b98&&(_0x4721d0['activeMarkers']['includes'](_0x1c80c0['markerName'])?_0x460946['writer']['addClass']('ck-suggestion-marker--active',_0x17f847):_0x460946['writer']['removeClass']('ck-suggestion-marker--active',_0x17f847));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x112a64(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xe23edc,_0x25c02f,_0x17e598)=>{_0x17e598['options']['showSuggestionHighlights']&&_0x112a64({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xe23edc,_0x25c02f,_0x17e598);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x24c4fe,_0x132609,_0xd1b328)=>{const {type:_0x3c5a0e,id:_0x106dc2}=_0x4fd2b2(_0x132609['markerName']);if(!_0x4721d0['hasSuggestion'](_0x106dc2))return;const _0xcb8515=_0x4721d0['getSuggestion'](_0x106dc2),_0x42d9e3=_0xcb8515['data'];if('formatBlock'!=_0xcb8515['type']||!_0x42d9e3||'setTableColumnHeader'!=_0x42d9e3['commandName'])return;const _0x5bb765=_0xd1b328['mapper']['markerNameToElements'](_0x132609['markerName']);if(_0x5bb765){for(const _0x50bcf1 of _0x5bb765)_0xd1b328['writer']['removeClass']('ck-suggestion-marker-'+_0x3c5a0e,_0x50bcf1),_0xd1b328['writer']['removeClass']('ck-suggestion-marker--active',_0x50bcf1),_0xd1b328['writer']['removeAttribute']('data-suggestion',_0x50bcf1),_0xd1b328['mapper']['unbindElementFromMarkerName'](_0x50bcf1,_0x132609['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x4bf60c=this['editor'],_0x4bcadc=_0x4bf60c['locale'];function _0x5cb3bf(_0x19bbe6){return{'type':'format','content':At(_0x4bcadc,'*Format:*\x20%0',_0x19bbe6)};}_0x4bf60c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b9755=>{if('formatBlock'!=_0x5b9755['type'])return;const {data:_0x223533}=_0x5b9755;if(_0x223533){if('setTableRowHeader'==_0x223533['commandName']){const _0x5a6675=_0x223533['commandParams'][0x0]['forceValue'];return _0x5cb3bf(At(_0x4bcadc,_0x5a6675?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x223533['commandName']){const _0x1e2747=_0x223533['commandParams'][0x0]['forceValue'];return _0x5cb3bf(At(_0x4bcadc,_0x1e2747?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Oe extends _0x415703{static get['requires'](){return[Ne];}['afterInit'](){const _0x947ecc=this['editor'];if(!_0x947ecc['plugins']['has']('TableEditing')||!_0x947ecc['config']['get']('table.enableFooters'))return;const _0x5c7ba8=_0x947ecc['locale'],_0x40c7ea=_0x947ecc['plugins']['get']('TrackChangesEditing');_0x40c7ea['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x40c7ea['descriptionFactory']['registerAttributeLabel']('footerRows',At(_0x5c7ba8,'FORMAT_FOOTER_ROW'));}}class we extends _0x415703{['afterInit'](){const _0x4e496e=this['editor'],_0x221ec5=_0x4e496e['locale'],_0x591f8c=_0x4e496e['plugins']['get']('TrackChangesEditing');function _0x43ab60(_0x5354b9){return{'type':'format','content':''+At(_0x221ec5,'*Set\x20table\x20type:*\x20%0',_0x5354b9)};}_0x4e496e['plugins']['has']('TableLayout')&&(_0x591f8c['enableCommand']('insertTableLayout'),_0x591f8c['enableDefaultAttributesIntegration']('tableType'),_0x591f8c['descriptionFactory']['registerElementLabel'](_0x3dabea=>_0x3dabea['is']('element','table')&&'layout'===_0x3dabea['getAttribute']('tableType'),_0x21d7d6=>At(_0x221ec5,'ELEMENT_LAYOUT_TABLE',_0x21d7d6)),_0x591f8c['descriptionFactory']['registerDescriptionCallback'](_0x520cc4=>{const {data:_0x53c149}=_0x520cc4;if(_0x53c149&&'tableType'==_0x53c149['key'])switch(_0x53c149['newValue']){case'layout':return _0x43ab60(At(_0x221ec5,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x43ab60(At(_0x221ec5,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Fe=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Be['map'](_0x9b911c=>[_0x9b911c,null]));class De extends _0x415703{static get['requires'](){return[Ne];}['afterInit'](){const _0x41e40e=this['editor'];if(!_0x41e40e['plugins']['has']('TableClipboard'))return;const _0x480520=_0x41e40e['plugins']['get']('TrackChangesEditing'),_0x3861ba=_0x41e40e['plugins']['get']('TableUtils'),_0x24e125=_0x41e40e['plugins']['get'](Ne),_0x4e1ad4=_0x41e40e['plugins']['get']('TableClipboard'),_0x3acb96=_0x41e40e['plugins']['get']('TableSelection'),_0x2ebbed=_0x41e40e['plugins']['get'](ut);_0x24e125['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x41e40e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x41e40e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xecc81d=null,_0x33bf21=!0x1;_0x2ebbed['on']('contentInsertion',(_0x2658b4,_0x3d6a1b)=>{_0x33bf21='paste'===_0x3d6a1b['method'];}),_0x41e40e['model']['on']('insertContent',(_0x4f21f5,_0x52ca9b)=>{if(!_0x33bf21&&null===_0x3acb96['getSelectedTableCells']())return;const [_0x363b5c,_0x5e2030]=_0x52ca9b,_0x97ddb6=_0x52ca9b[_0x52ca9b['length']-0x1];_0x97ddb6&&_0x97ddb6['forceDefaultExecution']||_0x480520['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3e38b8,_0x19a4e5,_0x480ef7,_0x48fd6a,_0x2fd4fd){if(_0x19a4e5&&!_0x19a4e5['is']('documentSelection'))return!0x1;const _0x3b0aa4=_0x2fd4fd['getTableIfOnlyTableInContent'](_0x3e38b8,_0x480ef7);if(!_0x3b0aa4||!xe(_0x3b0aa4,void 0x0,_0x48fd6a))return!0x1;const _0x2611e4=_0x48fd6a['getSelectionAffectedTableCells'](_0x480ef7['document']['selection']);if(!_0x2611e4['length'])return!0x1;const _0x3e8c48=_0x2611e4[0x0]['findAncestor']('table'),_0x2d13c1=_0x48fd6a['getRowIndexes'](_0x2611e4),_0x7509d=_0x48fd6a['getColumnIndexes'](_0x2611e4),_0x286bec={'startRow':_0x2d13c1['first'],'endRow':_0x2d13c1['last'],'startColumn':_0x7509d['first'],'endColumn':_0x7509d['last']};return 0x1==_0x2611e4['length']&&(_0x286bec['endRow']+=_0x48fd6a['getRows'](_0x3b0aa4)-0x1,_0x286bec['endColumn']+=_0x48fd6a['getColumns'](_0x3b0aa4)-0x1),xe(_0x3e8c48,_0x286bec,_0x48fd6a);}(_0x363b5c,_0x5e2030,_0x41e40e['model'],_0x3861ba,_0x4e1ad4)&&(_0x4f21f5['stop'](),_0xecc81d={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x41e40e['model']['change'](()=>{_0x41e40e['model']['insertContent'](_0x52ca9b[0x0],_0x52ca9b[0x1],_0x52ca9b[0x2],{'forceDefaultExecution':!0x0});const _0x1b0f0e=_0x1b4051(),{rowInsertionRanges:_0xd4a3d6,columnInsertionRanges:_0x45cbe9,insertionRanges:_0x26c942,deletionRanges:_0x797e0a,cells:_0x1f37d0}=_0xecc81d;_0xd4a3d6['length']&&_0x480520['markMultiRangeInsertion'](_0xd4a3d6,'tablePasteRow',{'tablePasteChainId':_0x1b0f0e}),_0x45cbe9['length']&&_0x480520['markMultiRangeInsertion'](_0x45cbe9,'tablePasteColumn',{'tablePasteChainId':_0x1b0f0e}),_0x26c942['length']&&(_0x480520['markMultiRangeInsertion'](_0x26c942,'tablePaste',{'tablePasteChainId':_0x1b0f0e,'skipNestingCheck':!0x0}),_0x26c942['forEach'](_0x50d929=>_0x50d929['detach']?.())),_0x797e0a['length']&&(_0x480520['markMultiRangeDeletion'](_0x797e0a,'tablePaste',{'tablePasteChainId':_0x1b0f0e,'skipNestingCheck':!0x0}),_0x797e0a['forEach'](_0x57567d=>_0x57567d['detach']?.()));const _0x68318e=_0x480520['markMultiRangeBlockFormat'](_0x1f37d0['map'](({element:_0x12cdec})=>_0x12cdec),{'formatGroupId':_0x1b4051()},[],'tablePasteCell',{'tablePasteChainId':_0x1b0f0e});if(_0x68318e){const _0x1561e7=_0x68318e['getMarkers'](),_0x2089aa=[];for(const {element:_0x1f9098,attributes:_0xddf008}of _0x1f37d0){if(!_0xddf008)continue;const _0x11cbef=_0x41e40e['model']['createRangeOn'](_0x1f9098),_0x3f5d81=_0x1561e7['find'](_0x177ec8=>_0x177ec8['getRange']()['isEqual'](_0x11cbef));_0x3f5d81&&_0x2089aa['push']([_0x3f5d81['name'],_0xddf008]);}_0x2089aa['length']&&_0x68318e['setAttribute']('markerAttributes',Object['fromEntries'](_0x2089aa));}_0xecc81d=null;}));},{'priority':_0x4c7b2c['high']+0xa}),_0x2ebbed['on']('contentInsertion',()=>{_0x33bf21=!0x1;},{'priority':'lowest'}),_0x41e40e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x28d7de,_0x5f5ca2)=>{const [_0x5f0b17,_0x570bb9,,_0x2eecbf]=_0x5f5ca2;if(!_0xecc81d)return;_0x28d7de['stop']();const _0x290111=_0x5f0b17['cell'],_0x616068=_0x570bb9,_0xa47fee=ve(_0x290111),_0x345c5e=ve(_0x616068);_0x28d7de['return']=_0x290111;let _0x574396=null,_0x1d3b95=null;if(_0x345c5e||_0xa47fee){if(_0xa47fee&&!_0x345c5e){_0x2eecbf['remove'](_0x290111['getChild'](0x0));for(const _0x353d90 of Array['from'](_0x616068['getChildren']()))_0x2eecbf['insert'](_0x353d90,_0x290111,'end');const _0x389169=_0xecc81d['rowInsertionIndexes']['includes'](_0x5f0b17['row']),_0x30642d=_0xecc81d['columnInsertionIndexes']['includes'](_0x5f0b17['column']);_0x389169||_0x30642d||(_0x574396=_0x3aace6['fromRange'](_0x2eecbf['createRangeIn'](_0x290111)));}else _0x345c5e&&!_0xa47fee&&(_0x1d3b95=_0x2eecbf['createRangeIn'](_0x290111));}else{const _0xd77b7b=_0x2eecbf['createElement']('tableCellSuggestion'),_0x495b5e=_0x2eecbf['createElement']('tableCellSuggestion');_0x2eecbf['wrap'](_0x2eecbf['createRangeIn'](_0x290111),_0x495b5e),_0x2eecbf['insert'](_0xd77b7b,_0x290111,0x0);for(const _0x3c08c6 of Array['from'](_0x616068['getChildren']()))_0x2eecbf['insert'](_0x3c08c6,_0xd77b7b,'end');_0x574396=_0x3aace6['fromRange'](_0x2eecbf['createRangeOn'](_0xd77b7b)),_0x1d3b95=_0x3aace6['fromRange'](_0x2eecbf['createRangeOn'](_0x495b5e));}const _0x5472f2=Array['from'](_0x616068['getAttributes']())['filter'](([_0x20d402])=>Be['includes'](_0x20d402));_0xecc81d['cells']['push']({'element':_0x290111,'attributes':_0x5472f2['length']?Object['fromEntries'](_0x5472f2):null}),_0x574396&&_0xecc81d['insertionRanges']['push'](_0x574396),_0x1d3b95&&_0xecc81d['deletionRanges']['push'](_0x1d3b95);},{'priority':'high'}),_0x3861ba['on']('insertColumns',(_0x57dead,_0x2e3284)=>{const [_0x1901e1,_0x250430={}]=_0x2e3284;if(!_0xecc81d)return;const _0x2489d8=_0x250430['at']||0x0,_0x2a9fcd=_0x250430['columns']||0x1;_0xecc81d['columnInsertionIndexes']=new Array(_0x2a9fcd)['fill'](_0x2489d8)['map']((_0x463ace,_0x32c526)=>_0x463ace+_0x32c526);for(const {cell:_0x5e5024}of _0x3861ba['createTableWalker'](_0x1901e1,{'startColumn':_0x2489d8,'endColumn':_0x2489d8+_0x2a9fcd-0x1}))_0xecc81d['columnInsertionRanges']['push'](_0x41e40e['model']['createRangeOn'](_0x5e5024));},{'priority':'low'}),_0x3861ba['on']('insertRows',(_0x5da209,_0x52a8fc)=>{const [_0x5a122f,_0x55e8ae={}]=_0x52a8fc;if(!_0xecc81d)return;const _0xb44d81=_0x55e8ae['at']||0x0,_0x241152=_0x55e8ae['rows']||0x1;_0xecc81d['rowInsertionIndexes']=new Array(_0x241152)['fill'](_0xb44d81)['map']((_0x4e6cf1,_0x30c4ac)=>_0x4e6cf1+_0x30c4ac);for(const {cell:_0x12c51a}of _0x3861ba['createTableWalker'](_0x5a122f,{'startRow':_0xb44d81,'endRow':_0xb44d81+_0x241152-0x1}))_0xecc81d['rowInsertionRanges']['push'](_0x41e40e['model']['createRangeOn'](_0x12c51a));},{'priority':'low'}),_0x480520['descriptionFactory']['registerDescriptionCallback'](_0x339d64=>{if(_0x339d64['subType']&&_0x339d64['subType']['startsWith']('tablePaste'))return _0x339d64['previous']?{}:{'type':'insertion','content':At(_0x41e40e['locale'],'*Replace\x20table\x20cells*')};});const _0x276cae=()=>!0x1;for(const _0x213e3f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x480520['_suggestionFactory']['registerCustomCallback']('insertion',_0x213e3f,'join',_0x276cae),_0x480520['_suggestionFactory']['registerCustomCallback']('deletion',_0x213e3f,'join',_0x276cae),_0x480520['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x213e3f,'join',_0x276cae);_0x480520['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x276cae),_0x480520['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xc6d372,_0x4e89c2,_0x38afe9)=>{const _0x339f09=_0xc6d372['map'](_0x3be4c0=>_0x3be4c0['getContainedElement']())['filter'](_0x573df1=>_0x573df1),_0xbf43ca=new Map(_0x339f09['map'](_0x14dedc=>[_0x14dedc,null]));if(_0xecc81d){for(const {element:_0x192b8a,attributes:_0x3c61fe}of _0xecc81d['cells'])_0x3c61fe&&_0xbf43ca['set'](_0x192b8a,_0x3c61fe);}else{if(_0x38afe9&&_0x38afe9['markerAttributes'])for(const [_0x414779,_0x47b665]of Object['entries'](_0x38afe9['markerAttributes'])){const _0x14078d=_0x41e40e['model']['markers']['get'](_0x414779),_0x558b71=_0x14078d?_0x14078d['getRange']()['getContainedElement']():null;_0x558b71&&_0xbf43ca['set'](_0x558b71,_0x47b665);}}_0x41e40e['model']['change'](_0x413755=>{for(const [_0x429a3e,_0x3b18be]of _0xbf43ca)_0x413755['setAttributes']({...Fe,..._0x3b18be},_0x429a3e);});});const _0x4239e6=(_0x151076,_0x249f0b)=>{_0x480520['_suggestionFactory']['registerCustomCallback'](_0x151076,'tablePaste',_0x249f0b,(_0x4cb982,_0xa5beff,_0xe3be5b)=>{_0x41e40e['model']['change'](_0x29b457=>{const _0xadaf3d=[];for(const _0xf5d4b of _0x4cb982){const _0x2226a2=_0xf5d4b['start']['nodeAfter'];_0x2226a2['is']('element','tableCellSuggestion')&&_0xadaf3d['push'](_0x2226a2);}_0x480520['_suggestionFactory']['getSuggestionCallback'](_0x151076,null,_0x249f0b)(_0x4cb982,_0xa5beff,_0xe3be5b);for(const _0x344061 of _0xadaf3d)'$graveyard'!=_0x344061['root']['rootName']&&_0x29b457['unwrap'](_0x344061);});});};_0x4239e6('insertion','accept'),_0x4239e6('insertion','discard'),_0x4239e6('deletion','accept'),_0x4239e6('deletion','discard'),_0x480520['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x525904=>{const _0x285b6b=_0x525904['map'](_0x518b24=>_0x518b24['getContainedElement']()),_0x3803aa=_0x285b6b[0x0]['findAncestor']('table'),{minRow:_0x2e9f5f,maxRow:_0xe57df0}=_0x24e125['_getCoordsForCells'](_0x285b6b);_0x3861ba['removeRows'](_0x3803aa,{'at':_0x2e9f5f,'rows':_0xe57df0-_0x2e9f5f+0x1});}),_0x480520['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x344c06=>{const _0x86dba7=_0x344c06['map'](_0xbb8a32=>_0xbb8a32['getContainedElement']()),_0x360352=_0x86dba7[0x0]['findAncestor']('table'),{minColumn:_0x59937e,maxColumn:_0x285fe8}=_0x24e125['_getCoordsForCells'](_0x86dba7);_0x3861ba['removeColumns'](_0x360352,{'at':_0x59937e,'columns':_0x285fe8-_0x59937e+0x1});});const _0xf17523=(_0x5759f3,_0x31be36)=>{if(!_0x31be36['subType']||!_0x31be36['subType']['startsWith']('tablePaste'))return;const _0x15cd58=_0x31be36['attributes']['tablePasteChainId'],_0x566930=_0x480520['getSuggestions']()['filter'](_0x3840a7=>_0x3840a7['isInContent']&&_0x3840a7['attributes']&&_0x3840a7['attributes']['tablePasteChainId']==_0x15cd58);_0x566930['length']&&_0x31be36['getAllAdjacentSuggestions']()['length']!=_0x566930['length']&&_0x566930['reduce']((_0x30eb92,_0x5392ed)=>(_0x30eb92['next']=_0x5392ed,_0x5392ed['previous']=_0x30eb92,_0x5392ed));};function _0x960b0e(_0x9bcf8,_0x4057e4=!0x0){const {id:_0x22ee43,authorId:_0x51f488}=_0x4fd2b2(_0x9bcf8['markerName']),_0x1292df=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3de203=_0x480520['activeMarkers']['includes'](_0x9bcf8['markerName']);return _0x3de203&&_0x1292df['push']('ck-suggestion-marker--active'),{'classes':_0x1292df,'attributes':{'data-suggestion':_0x22ee43,'data-author-id':_0x51f488},'priority':_0x3de203&&_0x4057e4?0xbc2:0xbb8};}_0x480520['on']('suggestionLoaded',_0xf17523,{'priority':'high'}),_0x480520['on']('suggestionUnloaded',_0xf17523,{'priority':'high'}),_0x41e40e['model']['document']['registerPostFixer'](()=>{let _0x2b6a5e=!0x1;const _0x24d211=Array['from'](_0x41e40e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5993b0,data:_0x1c1bae}of _0x24d211){const {group:_0x75e595,type:_0x622620,id:_0x3278b7}=_0x4fd2b2(_0x5993b0);if('suggestion'!=_0x75e595||'deletion'!=_0x622620||_0x1c1bae['oldRange'])continue;if(!_0x480520['hasSuggestion'](_0x3278b7))continue;const _0x2cf752=_0x480520['getSuggestion'](_0x3278b7)['getRanges'](),_0x1b9b94=_0x41e40e['plugins']['get']('Users')['me'];for(const _0x106e56 of _0x480520['getSuggestions']()){if(!_0x106e56['isInContent']||_0x106e56['author']!=_0x1b9b94)continue;if('formatBlock'!=_0x106e56['type']||'tablePasteCell'!=_0x106e56['subType'])continue;if(_0x106e56['getRanges']()['every'](_0x29f50e=>_0x2cf752['some'](_0x50eaa8=>_0x50eaa8['containsRange'](_0x29f50e,!0x0)))){for(const _0x3e3d09 of _0x106e56['getAllAdjacentSuggestions']())_0x3e3d09['isInContent']&&(_0x3e3d09['discard'](),_0x2b6a5e=!0x0);}}}return _0x2b6a5e;}),_0x41e40e['model']['document']['registerPostFixer'](_0x573301=>{const _0x35e0aa=_0x41e40e['commands']['get']('redo');if(!_0x35e0aa||!_0x35e0aa['_createdBatches']['has'](_0x573301['batch']))return!0x1;let _0x2b1f18=!0x1;const _0x25fd14=_0x41e40e['plugins']['get']('Users')['me'],_0x154c63=_0x41e40e['model']['document']['differ']['getChanges'](),_0x4abeda=Array['from'](_0x41e40e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xf662e,data:_0x58c28b})=>{const {group:_0x2b88ea,subType:_0x2e9ce4,authorId:_0x333ee5}=_0x4fd2b2(_0xf662e);return'suggestion'==_0x2b88ea&&'tablePaste'==_0x2e9ce4&&_0x333ee5==_0x25fd14['id']&&!_0x58c28b['oldRange'];});for(const _0x34c263 of _0x154c63){if('insert'!=_0x34c263['type']||'tableCellSuggestion'!=_0x34c263['name']||0x1!=_0x34c263['length'])continue;const _0x302599=_0x573301['createRange'](_0x34c263['position'],_0x34c263['position']['getShiftedBy'](0x1));if(!_0x4abeda['find'](({data:_0x35f8e8})=>_0x35f8e8['newRange']['isEqual'](_0x302599))){for(const {name:_0x3188e3,data:_0x5caf75}of _0x4abeda)if(_0x302599['containsRange'](_0x5caf75['newRange'])){_0x573301['updateMarker'](_0x3188e3,{'range':_0x302599}),_0x2b1f18=!0x0;break;}}}return _0x2b1f18;}),_0x41e40e['model']['document']['registerPostFixer'](_0x18465c=>{let _0x5a8aee=!0x1;const _0x3d3aa1=_0x41e40e['plugins']['get']('Users')['me'],_0x42eb9f=_0x480520['getSuggestions']()['filter'](_0x1ea458=>_0x1ea458['isInContent']&&_0x1ea458['author']==_0x3d3aa1),_0x359b9c=new Set(),_0x239235=new Set();for(const _0x690a11 of _0x42eb9f)if('tablePaste'==_0x690a11['subType'])for(const _0x377f23 of _0x690a11['getMarkers']()){const _0x4ab08a=_0x377f23['getRange']()['getContainedElement']();if(_0x4ab08a){if(_0x4ab08a['is']('element','tableCellSuggestion')&&ve(_0x4ab08a)){_0x690a11['removeMarker'](_0x377f23['name']),_0x359b9c['add'](_0x4ab08a),_0x5a8aee=!0x0;const _0x20e498=_0x4ab08a['nextSibling'],_0x2af8dc=_0x4ab08a['previousSibling'],_0x57f760=_0x20e498&&_0x20e498['is']('element','tableCellSuggestion'),_0x5796e9=_0x2af8dc&&_0x2af8dc['is']('element','tableCellSuggestion');_0x57f760&&!_0x359b9c['has'](_0x20e498)&&_0x239235['add'](_0x20e498),_0x5796e9&&!_0x359b9c['has'](_0x2af8dc)&&_0x239235['add'](_0x2af8dc);}else _0x4ab08a['is']('element','paragraph')&&_0x4ab08a['isEmpty']&&(_0x690a11['removeMarker'](_0x377f23['name']),_0x5a8aee=!0x0);}}else{if('tablePasteCell'==_0x690a11['subType']){if(!_0x690a11['attributes']||!_0x690a11['attributes']['tablePasteChainId'])continue;const _0x131a9b=_0x690a11['attributes']['markerAttributes'];if(_0x131a9b&&Object['keys'](_0x131a9b)['length'])continue;const _0x371dbc=_0x690a11['attributes']['tablePasteChainId'];let _0x2a192f=!0x0,_0x4061ee=!0x0;for(const _0xe0d6eb of _0x42eb9f)if(_0xe0d6eb['subType']&&_0xe0d6eb['subType']['startsWith']('tablePaste')){if(!_0xe0d6eb['attributes']['tablePasteChainId']){_0x4061ee=!0x1;break;}if(_0xe0d6eb['id']!=_0x690a11['id']&&_0xe0d6eb['attributes']['tablePasteChainId']==_0x371dbc){_0x2a192f=!0x1;break;}}_0x4061ee&&_0x2a192f&&(_0x690a11['removeMarkers'](),_0x5a8aee=!0x0);}}for(const _0x454db4 of _0x359b9c)_0x18465c['remove'](_0x454db4);for(const _0x462ed3 of _0x239235)_0x18465c['unwrap'](_0x462ed3);return _0x5a8aee;}),_0x41e40e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3a3084=>_0x960b0e(_0x3a3084),'converterPriority':'high'}),_0x41e40e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3748e3,_0x253ce6)=>_0x253ce6['options']['showSuggestionHighlights']?_0x960b0e(_0x3748e3,!0x1):null,'converterPriority':'high'});const _0x3eec2b=_0x41e40e['editing']['view'];this['listenTo'](_0x3eec2b['document'],'clipboardOutput',(_0x1e28bf,_0x424b60)=>{const _0x3f53e4=[];for(const _0x3fee3e of _0x3eec2b['createRangeIn'](_0x424b60['content'])['getItems']())_0x3fee3e['is']('element','suggestion-td')&&_0x3f53e4['push'](_0x3fee3e);_0x3eec2b['change'](_0x1a993f=>{for(const _0x313ea2 of _0x3f53e4)_0x1a993f['move'](_0x1a993f['createRangeIn'](_0x313ea2),_0x1a993f['createPositionBefore'](_0x313ea2)),_0x1a993f['remove'](_0x313ea2);});});}}function ve(_0x953062){if(_0x953062['isEmpty'])return!0x0;const _0xecdc7c=_0x953062['getChild'](0x0);return _0xecdc7c['is']('element','paragraph')&&_0xecdc7c['isEmpty'];}function xe(_0x3f4381,_0x2a9c7f={},_0x4e0cf7){for(const {isAnchor:_0x1fb6c5,cellHeight:_0xf2ce92,cellWidth:_0x23f210}of _0x4e0cf7['createTableWalker'](_0x3f4381,{'includeAllSlots':!0x0,..._0x2a9c7f}))if(!_0x1fb6c5||0x1!=_0xf2ce92||0x1!=_0x23f210)return!0x1;return!0x0;}class Pe extends _0x415703{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x35ff50=this['editor']['plugins']['get']('TrackChangesEditing');_0x35ff50['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x35ff50['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x35ff50['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x35ff50['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x35ff50['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x35ff50['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1205cf,_0x4631f8){const _0x10ea3c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4635a1=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x29f780=_0x4631f8['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3a8126=_0x4635a1['getColumnGroupElement'](_0x29f780);let _0xfe6d20=_0x3a8126?_0x4635a1['getTableColumnsWidths'](_0x3a8126):null,_0x207998=_0x29f780['getAttribute']('tableWidth')||null;const _0x5f2453=_0x4631f8['tableWidth']||_0x207998,_0x5eb2d6=_0x4631f8['columnWidths']||_0xfe6d20,_0x1712dd=this['editor']['plugins']['get']('Users')['me'];for(const _0x3155e1 of _0x10ea3c['getSuggestions']()){const _0x2f0d7c=_0x3155e1['getContainedElement']();if('resizeTable'===_0x3155e1['subType']&&_0x2f0d7c===_0x29f780){_0x3155e1['author']!==_0x1712dd&&_0x3155e1['discard']();const _0x4fc037=_0x3155e1['data']['commandParams'];_0x207998=_0x4fc037[0x0]['tableWidth'],_0xfe6d20=_0x4fc037[0x0]['columnWidths'];break;}}_0x1205cf({'table':_0x29f780,'tableWidth':_0x5f2453,'columnWidths':_0x5eb2d6}),_0x10ea3c['markBlockFormat'](_0x29f780,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x207998,'columnWidths':_0xfe6d20}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4f4391){if('formatBlock'!=_0x4f4391['type']&&'formatInline'!=_0x4f4391['type'])return;const {data:_0x53ae51}=_0x4f4391;if(_0x53ae51&&'resizeTable'===_0x53ae51['formatGroupId']){const _0x47d77c='*Format:*\x20resize\x20table';return{'type':'format','content':At(this['editor']['locale'],_0x47d77c)};}}}class Ue extends _0x415703{['afterInit'](){const _0x525cf2=this['editor'];_0x525cf2['plugins']['has']('Template')&&_0x525cf2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ge extends _0x415703{['afterInit'](){const _0x2020db=this['editor'];if(!_0x2020db['commands']['get']('insertTableOfContents'))return;_0x2020db['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xa51a57=_0x2020db['plugins']['get']('TrackChangesEditing'),_0x4dc09a=_0x2020db['locale'];_0xa51a57['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3490b8=>At(_0x4dc09a,'ELEMENT_TABLE_OF_CONTENTS',_0x3490b8));}}class He extends _0x415703{['afterInit'](){const _0x34bf3f=this['editor'];if(!_0x34bf3f['plugins']['has']('Title'))return;_0x34bf3f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>At(_0x34bf3f['locale'],'ELEMENT_TITLE')),_0x34bf3f['model']['document']['registerPostFixer'](_0xb394fa=>{let _0x2115c6=!0x1;const _0x5e25b8=Array['from'](_0x34bf3f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x15e678,data:_0x495e7a}of _0x5e25b8){const {group:_0x1e3fd9}=_0x4fd2b2(_0x15e678);if('suggestion'!==_0x1e3fd9||!_0x495e7a['newRange'])continue;const _0x3f3c65=_0x495e7a['newRange'],_0x449202=_0x3f3c65['end']['nodeBefore'];if(!_0x449202||!_0x449202['is']('element','title-content'))continue;if(!_0x3f3c65['start']['isTouching'](_0x3f3c65['end']))continue;const _0x1e2209=_0x34bf3f['model']['schema']['getNearestSelectionRange'](_0x3f3c65['end'],'forward');if(_0x1e2209&&_0x1e2209['isCollapsed']){const _0xa153b7=_0xb394fa['createRange'](_0x3f3c65['start'],_0x1e2209['start']);_0xa153b7['isEqual'](_0x3f3c65)||(_0xb394fa['updateMarker'](_0x15e678,{'range':_0xa153b7}),_0x2115c6=!0x0);}_0x2115c6||(_0xb394fa['removeMarker'](_0x15e678),_0x2115c6=!0x0);}return _0x2115c6;});}}class $e extends _0x415703{['afterInit'](){const _0x4ed488=this['editor'],_0x1cbc90=_0x4ed488['plugins']['get']('TrackChangesEditing');_0x4ed488['plugins']['has']('Uploadcare')&&(_0x1cbc90['enableCommand']('uploadcare'),_0x4ed488['plugins']['has']('UploadcareImageEdit')&&(_0x1cbc90['enableCommand']('uploadcareImageEdit'),_0x1cbc90['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x1cbc90['descriptionFactory']['registerDescriptionCallback'](_0x167fb3=>{if('attribute'!=_0x167fb3['type'])return;const {data:_0x369d85}=_0x167fb3;return _0x369d85&&'uploadcareImageId'==_0x369d85['key']?{'type':'format','content':''}:void 0x0;})));}}class We extends _0x415703{['afterInit'](){const _0x3e6fa9=this['editor'],_0x568075=_0x3e6fa9['plugins']['get']('TrackChangesEditing');_0x3e6fa9['plugins']['has']('UndoEditing')&&(_0x568075['enableCommand']('undo'),_0x568075['enableCommand']('redo'));}}class Ve extends _0x415703{static get['requires'](){return[Ne];}['afterInit'](){const _0x39d934=this['editor'];if(!_0x39d934['plugins']['has']('TableCaptionEditing'))return;_0x39d934['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class je extends _0x415703{['tableProperties'];['tableCellProperties'];constructor(_0x3b0648){super(_0x3b0648),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 _0x3b81d5=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x24f56a of this['tableProperties'])_0x3b81d5['enableCommand'](_0x24f56a,(_0x81ab7e,_0x3758c0)=>{const _0x3a61c2=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x24f56a,[_0x3a61c2],this['tableProperties'],'tableProperties',_0x81ab7e,_0x3758c0);});_0x3b81d5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3b81d5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3b81d5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x10b4c6,_0x8cdaf)=>this['handleDiscardAction'](this['tableProperties'],_0x10b4c6,_0x8cdaf)),_0x3b81d5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xab5fb9 of this['tableCellProperties'])this['editor']['commands']['get'](_0xab5fb9)&&_0x3b81d5['enableCommand'](_0xab5fb9,(_0x4512b5,_0x212280)=>{const _0x299312=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xab5fb9,_0x299312,this['tableCellProperties'],'tableCellProperties',_0x4512b5,_0x212280);});_0x3b81d5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3b81d5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3b81d5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2e8933,_0x5792c2)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2e8933,_0x5792c2)),_0x3b81d5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x3b81d5['descriptionFactory']['registerAttributeLabel']('tableCellType',At(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x3b81d5['descriptionFactory']['registerDescriptionCallback'](_0x2494f9=>this['handleSuggestionDescription'](_0x2494f9)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x222ea2,_0x2b6f12,_0x59745b,_0x364f55,_0xfa83e3,_0x44bd30){const _0x1396c9=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x44bd30['batch'],()=>{for(const _0x10420a of _0x2b6f12){if(this['_getSuggestion'](_0x10420a,_0x364f55))_0xfa83e3(_0x44bd30);else{const _0x646d59={};for(const _0x5e8951 of _0x59745b){const _0x222ad4=_0x10420a['getAttribute'](_0x5e8951);void 0x0!==_0x222ad4&&(_0x646d59[_0x5e8951]=_0x222ad4);}_0xfa83e3(_0x44bd30),_0x1396c9['markBlockFormat'](_0x10420a,{'commandParams':[_0x646d59]},[],_0x364f55);}}});}['handleDiscardAction'](_0x5d4103,_0x2aa765,_0x4a69a5){const _0x2dd565=_0x2aa765[0x0]['start']['nodeAfter'],_0x22f512=_0x4a69a5['commandParams'][0x0];this['editor']['model']['change'](_0x3f7de2=>{for(const _0x43a49a of _0x5d4103)void 0x0!==_0x22f512[_0x43a49a]?_0x3f7de2['setAttribute'](_0x43a49a,_0x22f512[_0x43a49a],_0x2dd565):_0x3f7de2['removeAttribute'](_0x43a49a,_0x2dd565);});}['handleSuggestionDescription'](_0x5e7a1d){if(_0x5e7a1d['data'])switch(_0x5e7a1d['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'](_0x61eeb4,_0x1db954){const _0x853be2=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x39f243 of _0x853be2['getSuggestions']({'skipNotAttached':!0x0})){const _0x45897b=_0x39f243['getContainedElement']();if(_0x39f243['subType']===_0x1db954&&_0x45897b===_0x61eeb4)return _0x39f243;}return null;}['_registerTablePropertiesAttributes'](){const _0x4b5602=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d15cd=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x5100f3 of _0x3d15cd){const _0x58d778=_0x5100f3['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x4b5602['descriptionFactory']['registerAttributeLabel'](_0x5100f3,At(this['editor']['locale'],'FORMAT_'+_0x58d778));}}}class ze extends _0x415703{['afterInit'](){const _0x47d888=this['editor'];if(!_0x47d888['plugins']['has']('LineHeight'))return;const _0x1698c1=_0x47d888['plugins']['get']('TrackChangesEditing'),_0x5af3ee=_0x47d888['locale'];_0x1698c1['enableDefaultAttributesIntegration']('lineHeight'),_0x1698c1['descriptionFactory']['registerAttributeLabel']('lineHeight',At(_0x5af3ee,'FORMAT_LINE_HEIGHT'));}}const Ke='$elementName';class Xe extends _0x415703{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x46ca9b,_0x1d1da3,_0x5e36d7,_0x386e8c,_0x31f3f8,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(_0x5eaee4){super(_0x5eaee4),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x29e36b,_0x3c8209,_0x41a8a5,_0x4e4ba1)=>{this['_model']['change'](()=>{for(const _0x26a535 of[..._0x4e4ba1,..._0x41a8a5])this['_model']['markers']['has'](_0x26a535)&&_0x5eaee4['editing']['reconvertMarker'](_0x26a535);});}),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']=_0x5eaee4['plugins']['get'](_0x46ca9b),this['_suggestionsConversion']=_0x5eaee4['plugins']['get'](_0x1d1da3),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x5eaee4['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5eaee4['config']['get']('trackChanges.trackFormatChanges'),_0x5eaee4['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5eaee4['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new ht(_0x5eaee4,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x16d4a6=this['editor'];_0x16d4a6['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x545658,{writer:_0x27464d})=>{let _0x202f45='suggestion:'+_0x545658['getAttribute']('suggestion-type')+':'+_0x545658['getAttribute']('id');return _0x545658['getAttribute']('marker-count')&&(_0x202f45+=':'+_0x545658['getAttribute']('marker-count')),_0x27464d['createElement']('$marker',{'data-name':_0x202f45});}}),_0x16d4a6['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x16d4a6['model']['document']['registerPostFixer'](_0x2218c4=>{let _0x7e8e26=!0x1;const _0x39f458=Array['from'](_0x16d4a6['model']['document']['differ']['getChangedMarkers']()),_0x5bdb6b=new Set();for(const {name:_0x5a9b3e,data:_0x40b507}of _0x39f458){const {group:_0x532d2e,type:_0x32f251,subType:_0xf8aba4,id:_0x5998e7}=_0x4fd2b2(_0x5a9b3e);if('suggestion'!==_0x532d2e)continue;const _0x45f1a3=_0xf8aba4?'suggestion:'+_0x32f251+':'+_0xf8aba4+':'+_0x5998e7:'suggestion:'+_0x32f251+':'+_0x5998e7,_0x50580f=_0x16d4a6['model']['markers']['getMarkersGroup'](_0x45f1a3),_0x2d75d5=_0x16d4a6['model']['markers']['get'](_0x5a9b3e),_0x3699b4=this['_suggestions']['get'](_0x5998e7);if(null!=_0x40b507['newRange']){'formatInline'==_0x32f251&&(_0x7e8e26=_0x7e8e26||Ze(_0x40b507['newRange'],_0x5a9b3e,_0x2218c4,_0x16d4a6['model']['schema']));const _0x20d167='attribute'==_0x32f251&&this['_suggestionsConversion']['isBlockAttribute'](un(_0xf8aba4)),_0x2d15aa='attribute'==_0x32f251&&this['_suggestionsConversion']['isInlineAttribute'](un(_0xf8aba4));if(_0x40b507['newRange']['isCollapsed']||'$graveyard'==_0x40b507['newRange']['root']['rootName']||'formatBlock'==_0x32f251&&!tn(_0x40b507['newRange'])||_0x20d167&&!tn(_0x40b507['newRange'])||_0x2d15aa&&en(_0x40b507['newRange'])||'deletion'==_0x32f251&&en(_0x40b507['newRange'])||_0x2d75d5&&nn(_0x2d75d5,_0x50580f))_0x2218c4['removeMarker'](_0x5a9b3e),_0x7e8e26=!0x0;else{if(!_0x3699b4||!_0x3699b4['isInContent'])continue;if(_0x40b507['newRange']&&_0x40b507['oldRange']&&_0x40b507['newRange']['isEqual'](_0x40b507['oldRange']))continue;_0x5bdb6b['add'](_0x3699b4);}}}return _0x5bdb6b['size']>0x0&&(_0x7e8e26=!!this['_joinWithAdjacentSuggestions'](_0x5bdb6b)||_0x7e8e26),_0x7e8e26;}),_0x16d4a6['model']['document']['registerPostFixer'](_0x4f0761=>{let _0x38ddea=!0x1;for(const _0x35f650 of _0x16d4a6['model']['document']['differ']['getChanges']())if('insert'==_0x35f650['type'])for(const _0x4890c6 of this['_suggestions']['values']()){if(_0x4890c6['isMultiRange']||!_0x4890c6['isInContent'])continue;const _0x3ed695='formatBlock'==_0x4890c6['type'],_0x37b09b=this['_getAttributeKey'](_0x4890c6),_0x1685ec=_0x37b09b&&this['_suggestionsConversion']['isBlockAttribute'](_0x37b09b);if(!_0x3ed695&&!_0x1685ec)continue;const _0x38cd1f=_0x4890c6['getFirstRange']();if(_0x38cd1f['start']['parent']!=_0x38cd1f['end']['parent']&&!_0x38cd1f['end']['isAtEnd']){const _0x13a95c=_0x16d4a6['model']['createPositionAt'](_0x38cd1f['start']['nodeAfter'],'end'),_0x434729=_0x16d4a6['model']['createRange'](_0x38cd1f['start'],_0x13a95c);_0x4f0761['updateMarker'](_0x4890c6['getFirstMarker'](),{'range':_0x434729}),_0x38ddea=!0x0;}}return _0x38ddea;}),_0x16d4a6['model']['document']['registerPostFixer'](_0x394bed=>this['_processAttributeChanges'](_0x394bed)),_0x16d4a6['model']['document']['registerPostFixer'](_0x9b8850=>!_0x9b8850['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x9b8850)),_0x16d4a6['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x16d4a6['model']['document']['on']('change:data',(_0xbdfc12,_0x5d055c)=>{if(!_0x5d055c['isLocal']||_0x5d055c['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x23fcc9=_0x16d4a6['model']['document']['differ']['getChanges']();if(0x0==_0x23fcc9['length'])return;const _0x23e6d5=[],_0x5c8234=_0x23fcc9['filter'](_0x35ebdc=>'attribute'==_0x35ebdc['type']),_0x1dd16b=_0x23fcc9['filter'](_0x22d17d=>'insert'==_0x22d17d['type']&&'$text'!=_0x22d17d['name']);for(const _0x501cf3 of _0x5c8234)this['_suggestionsConversion']['isRegisteredAttribute'](_0x501cf3['attributeKey'])&&_0x23e6d5['push']({'key':_0x501cf3['attributeKey'],'newValue':_0x501cf3['attributeNewValue'],'oldValue':_0x501cf3['attributeOldValue'],'range':sn(_0x501cf3['range'],_0x16d4a6['model'])});for(const _0x2bec6 of _0x1dd16b){if('rename'!=_0x2bec6['action']&&'refresh'!=_0x2bec6['action'])continue;const _0xe58c61=rn(_0x2bec6['position']['nodeAfter'],_0x16d4a6['model']),_0x4eccad=_0x2bec6['before'];'rename'==_0x2bec6['action']&&_0x23e6d5['push']({'key':Ke,'newValue':_0x2bec6['name'],'oldValue':_0x4eccad['name'],'range':_0xe58c61});for(const [_0x41c274,_0x4da4b0]of _0x4eccad['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x41c274))continue;const _0xe8b435=_0x2bec6['attributes']['get'](_0x41c274);_0x4da4b0!==_0xe8b435&&_0x23e6d5['push']({'key':_0x41c274,'newValue':_0xe8b435,'oldValue':_0x4da4b0,'range':_0xe58c61});}for(const [_0x12b9ae,_0x2ae95e]of _0x2bec6['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x12b9ae)&&(_0x4eccad['attributes']['has'](_0x12b9ae)||_0x23e6d5['push']({'key':_0x12b9ae,'newValue':_0x2ae95e,'oldValue':null,'range':_0xe58c61}));}0x0!=_0x23e6d5['length']&&_0x16d4a6['model']['enqueueChange'](_0x5d055c,_0x40d8e6=>{const _0x57f5a2=_0x1b4051();for(const {range:_0x52d306,key:_0x10a962,oldValue:_0x590d45,newValue:_0x15bd10}of _0x23e6d5)this['markAttributeChange'](_0x52d306,_0x10a962,_0x590d45,_0x15bd10,{'groupId':_0x57f5a2});this['_reduceExistingSuggestions'](_0x40d8e6,_0x23e6d5);});},{'priority':'lowest'}),_0x16d4a6['model']['markers']['on']('update:suggestion',(_0x10d95c,_0x5b6919,_0x4cf3ca)=>{if(null==_0x4cf3ca){const {id:_0x12917a}=_0x4fd2b2(_0x5b6919['name']),_0xae1700=this['_suggestions']['get'](_0x12917a);_0xae1700&&_0xae1700['addMarkerName'](_0x5b6919['name']);}}),_0x16d4a6['model']['document']['on']('change:data',()=>{const _0x423029=Array['from'](_0x16d4a6['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4ddc85=>'suggestion'===_0x4fd2b2(_0x4ddc85['name'])['group']);if(0x0===_0x423029['length'])return;_0x423029['sort']((_0x3a9072,_0x3aed91)=>{const _0x47284a=_0x3a9072['data']['oldRange'],_0x1fe3cd=_0x3aed91['data']['oldRange'];return null===_0x47284a&&null===_0x1fe3cd?0x0:null===_0x47284a&&null!==_0x1fe3cd?-0x1:null!==_0x47284a&&null===_0x1fe3cd?0x1:_0x47284a['start']['isBefore'](_0x1fe3cd['start'])?-0x1:0x1;});const _0x223ea1=new Set(),_0x1bb281=new Set();for(const {name:_0x165194,data:_0x4af8ef}of _0x423029){const {id:_0x1898b9}=_0x4fd2b2(_0x165194);if(null===_0x4af8ef['oldRange']){const _0x544516=this['_handleNewSuggestionMarker'](_0x165194);_0x1bb281['add'](_0x544516);}else{const _0x3efe49=this['_suggestions']['get'](_0x1898b9);null!==_0x4af8ef['newRange']||_0x3efe49['isInContent']?(_0x223ea1['add'](_0x3efe49['head']),_0x1bb281['add'](_0x3efe49)):this['_removeSuggestion'](_0x3efe49);}}_0x1bb281['size']>0x0&&this['_refreshSuggestionsChain'](_0x1bb281);for(const _0x388e3e of _0x223ea1)this['fire']('suggestionChanged',_0x388e3e);}),_0x16d4a6['model']['on']('applyOperation',(_0x2d0adb,_0x10b0ab)=>{const _0x5168eb=_0x10b0ab[0x0];if(!this['_suggestions']['size'])return;if(!_0x5168eb['isDocumentOperation'])return;if(_0x5168eb['batch']['isUndo']||!_0x5168eb['batch']['isLocal'])return;let _0x548a87,_0x17ddb0;switch(_0x5168eb['type']){case'insert':_0x548a87=_0x16d4a6['model']['createPositionAt'](_0x5168eb['position']),_0x17ddb0=_0x548a87['getShiftedBy'](_0x5168eb['howMany']);break;case'split':_0x548a87=_0x16d4a6['model']['createPositionAt'](_0x5168eb['splitPosition']),_0x17ddb0=_0x16d4a6['model']['createPositionAt'](_0x5168eb['moveTargetPosition']);break;case'move':_0x548a87=_0x16d4a6['model']['createPositionAt'](_0x5168eb['targetPosition']),_0x17ddb0=_0x548a87['getShiftedBy'](_0x5168eb['howMany']);break;default:return;}const _0x16e78f=_0x16d4a6['model']['createRange'](_0x548a87,_0x17ddb0);_0x16d4a6['model']['change'](()=>{for(const {suggestion:_0x2e6905,meta:_0x931db0}of this['_findSuggestions'](_0x16e78f)){if(_0x2e6905['isMultiRange'])continue;if('formatInline'==_0x2e6905['type'])continue;const _0x5d1fc9=this['_getAttributeKey'](_0x2e6905);if(_0x5d1fc9&&this['_suggestionsConversion']['isBlockAttribute'](_0x5d1fc9)&&'split'!=_0x5168eb['type'])continue;const _0xe4c845=_0x2e6905['data']&&_0x2e6905['data']['multipleBlocks'];('formatBlock'!=_0x2e6905['type']||'split'==_0x5168eb['type']&&!_0xe4c845)&&(_0x931db0['containsRangeInObject']||'insertion'==_0x2e6905['type']&&_0x931db0['isOwn']||_0x2e6905['getFirstRange']()['containsRange'](_0x16e78f)&&this['_breakSuggestionMarker'](_0x2e6905,_0x548a87,_0x17ddb0));}});},{'priority':'lowest'}),_0x16d4a6['model']['on']('deleteContent',(_0x44d6f0,_0x55185f)=>{const _0x3dbe19=_0x55185f[0x0],_0x4ebc7d=_0x55185f[0x1];if(_0x4ebc7d&&_0x4ebc7d['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3dbe19['isCollapsed'])return;const _0x21fa0e=_0x16d4a6['model']['schema'],{start:_0x55c58b,end:_0x49216a}=_0x3dbe19['getFirstRange'](),_0x56a9c4=_0x55c58b['nodeAfter']&&_0x21fa0e['isLimit'](_0x55c58b['nodeAfter'])?null:_0x21fa0e['getNearestSelectionRange'](_0x55c58b,'forward'),_0x45f7d9=_0x49216a['nodeBefore']&&_0x21fa0e['isLimit'](_0x49216a['nodeBefore'])?null:_0x21fa0e['getNearestSelectionRange'](_0x49216a,'backward'),_0x160a72=_0x16d4a6['model']['createRange'](_0x56a9c4?_0x56a9c4['start']:_0x55c58b,_0x45f7d9?_0x45f7d9['end']:_0x49216a);_0x16d4a6['model']['change'](_0x31f5e9=>{this['markDeletion'](_0x160a72);const _0x42b2c2=_0x16d4a6['model']['schema']['getNearestSelectionRange'](_0x160a72['start']);_0x3dbe19['is']('documentSelection')?_0x31f5e9['setSelection'](_0x42b2c2):_0x3dbe19['setTo'](_0x42b2c2);}),_0x44d6f0['stop']();},{'priority':_0x4c7b2c['normal']+0xa}),_0x16d4a6['model']['on']('insertContent',(_0x3c9379,_0x50b167)=>{const _0x342b80=_0x50b167[_0x50b167['length']-0x1];_0x342b80&&_0x342b80['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x16d4a6['model']['change'](()=>{let _0x44200a=_0x16d4a6['model']['insertContent'](_0x50b167[0x0],_0x50b167[0x1],_0x50b167[0x2],{'forceDefaultExecution':!0x0});if(!_0x44200a)return;_0x3c9379['return']=_0x44200a['clone']();const _0x1bff6a=_0x44200a['end']['nodeBefore'],_0x15ebe6=_0x16d4a6['model']['schema'];_0x1bff6a&&_0x15ebe6['isBlock'](_0x1bff6a)&&!_0x15ebe6['isObject'](_0x1bff6a)&&(_0x44200a=_0x16d4a6['model']['createRange'](_0x44200a['start'],_0x16d4a6['model']['createPositionAt'](_0x1bff6a,'end'))),this['markInsertion'](_0x44200a);}),_0x3c9379['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3c7f79=new dt(_0x16d4a6,this['_suggestions']);_0x16d4a6['commands']['add']('acceptSuggestion',_0x3c7f79),this['enableCommand']('acceptSuggestion');const _0x3c540e=new ft(_0x16d4a6,this['_suggestions']);_0x16d4a6['commands']['add']('discardSuggestion',_0x3c540e),this['enableCommand']('discardSuggestion'),_0x16d4a6['commands']['add']('acceptAllSuggestions',new Lt(_0x16d4a6,_0x3c7f79,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x16d4a6['commands']['add']('discardAllSuggestions',new Lt(_0x16d4a6,_0x3c540e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x16d4a6['commands']['add']('acceptSelectedSuggestions',new It(_0x16d4a6,_0x3c7f79,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x16d4a6['commands']['add']('discardSelectedSuggestions',new It(_0x16d4a6,_0x3c540e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2ca9d5=_0x16d4a6['plugins']['get'](_0x46ca9b);this['listenTo'](_0x2ca9d5,'addComment',(_0x5a5e53,{threadId:_0x6671d4})=>{const _0x3bd498=this['_suggestions']['get'](_0x6671d4);_0x3bd498&&_0x3bd498['commentThread']&&0x1===_0x3bd498['commentThread']['length']&&this['_updateSuggestionData'](_0x6671d4,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2ca9d5,'removeComment',(_0x47dc84,{threadId:_0x4ed07e})=>{const _0x8c0ad4=this['_suggestions']['get'](_0x4ed07e);_0x8c0ad4&&_0x8c0ad4['commentThread']&&!_0x8c0ad4['commentThread']['length']&&this['_updateSuggestionData'](_0x4ed07e,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x29372b){const _0x47e73b=_0xd76668([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]),_0x50db01=0x3d8d0df,_0x4710ee=0x3df5417^_0x50db01,_0x43e2ae=window[_0xd76668([0x44,0x61,0x74,0x65])][_0xd76668([0x6e,0x6f,0x77])](),_0x5466b3=_0x29372b[_0xd76668([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe5da36=new window[(_0xd76668([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ec0aa=>{_0x5466b3[_0xd76668([0x6f,0x6e,0x63,0x65])](_0xd76668([0x72,0x65,0x61,0x64,0x79]),_0x1ec0aa);}),_0x3a03d4={[_0xd76668([0x6b,0x74,0x79])]:_0xd76668([0x45,0x43]),[_0xd76668([0x75,0x73,0x65])]:_0xd76668([0x73,0x69,0x67]),[_0xd76668([0x63,0x72,0x76])]:_0xd76668([0x50,0x2d,0x32,0x35,0x36]),[_0xd76668([0x78])]:_0xd76668([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]),[_0xd76668([0x79])]:_0xd76668([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]),[_0xd76668([0x61,0x6c,0x67])]:_0xd76668([0x45,0x53,0x32,0x35,0x36])},_0x30014e=_0x5466b3[_0xd76668([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xd76668([0x67,0x65,0x74])](_0xd76668([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x366b42(){let _0x4e584d,_0x5751f0=null,_0x42d239=null;try{if(_0x30014e==_0xd76668([0x47,0x50,0x4c]))return _0xd76668([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4e584d=_0x31b78c(),!_0x4e584d)return _0xd76668([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4e584d[_0xd76668([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x42d239=_0x88ef97(_0x4e584d[_0xd76668([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4e584d[_0xd76668([0x6a,0x74,0x69])])),await _0x4cd86f()?_0xa865db()?_0x473faa()?_0xd76668([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xf35a7f()?(_0x4e584d[_0xd76668([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd76668([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5751f0=_0x9da26c(_0xd76668([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4f2c3f()):_0xd76668([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xd76668([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xd76668([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xd76668([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x473faa(){const _0x3249ac=[_0xd76668([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xd76668([0x74,0x72,0x69,0x61,0x6c])][_0xd76668([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e584d[_0xd76668([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x43e2ae/0x3e8:0xe10*_0x4710ee;return _0x4e584d[_0xd76668([0x65,0x78,0x70])]<_0x3249ac;}function _0xa865db(){const _0x513c29=_0x4e584d[_0xd76668([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x513c29)return!0x1;if(_0x513c29[_0xd76668([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd76668([0x2a])))return!0x0;if(_0x513c29[_0xd76668([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd76668([0x54,0x43])))return!0x0;if(_0x513c29[_0xd76668([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd76668([0x52,0x54,0x43]))){if(_0x5a7211())return!0x0;if(_0x40dbf2()||_0x109bae())return!0x0;}return!0x1;}function _0xf35a7f(){const _0x2cce98=_0x4e584d[_0xd76668([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2cce98||0x0==_0x2cce98[_0xd76668([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4dc0f6}=new URL(window[_0xd76668([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2cce98[_0xd76668([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4dc0f6))return!0x0;const _0x354138=_0x4dc0f6[_0xd76668([0x73,0x70,0x6c,0x69,0x74])](_0xd76668([0x2e]));return _0x2cce98[_0xd76668([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x218ed3=>_0x218ed3[_0xd76668([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd76668([0x2a])))[_0xd76668([0x6d,0x61,0x70])](_0x272274=>_0x272274[_0xd76668([0x73,0x70,0x6c,0x69,0x74])](_0xd76668([0x2e])))[_0xd76668([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x36f135=>_0x36f135[_0xd76668([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x354138[_0xd76668([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd76668([0x6d,0x61,0x70])](_0x57788e=>Array(_0x354138[_0xd76668([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x57788e[_0xd76668([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd76668([0x66,0x69,0x6c,0x6c])](_0x57788e[0x0]===_0xd76668([0x2a])?_0xd76668([0x2a]):'')[_0xd76668([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x57788e))[_0xd76668([0x73,0x6f,0x6d,0x65])](_0x594fe4=>_0x354138[_0xd76668([0x65,0x76,0x65,0x72,0x79])]((_0x5e4350,_0xaad1d0)=>_0x594fe4[_0xaad1d0]===_0x5e4350||_0x594fe4[_0xaad1d0]===_0xd76668([0x2a])));}function _0x4f2c3f(){return _0x5751f0&&_0x42d239?new window[(_0xd76668([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x298b0c,_0x15c27c)=>{_0x5751f0[_0xd76668([0x74,0x68,0x65,0x6e])](_0x298b0c,_0x15c27c),_0x42d239[_0xd76668([0x74,0x68,0x65,0x6e])](_0x287b98=>{_0x287b98!=_0xd76668([0x56,0x61,0x6c,0x69,0x64])&&_0x298b0c(_0x287b98);},_0x15c27c);}):_0x5751f0||_0x42d239||_0xd76668([0x56,0x61,0x6c,0x69,0x64]);}}function _0x88ef97(_0x50fcc5,_0x3eb9b1){return new window[(_0xd76668([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5347f2=>{if(_0x4f9385())return _0x5347f2(_0xd76668([0x56,0x61,0x6c,0x69,0x64]));_0x4c3f29(),_0x5466b3[_0xd76668([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xd76668([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x18283c=!0x1;const _0x6e78db=_0x1b4051();function _0x30af1b(_0x181bb8){return!!_0x181bb8&&(typeof _0x181bb8===_0xd76668([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x181bb8===_0xd76668([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x181bb8[_0xd76668([0x74,0x68,0x65,0x6e])]===_0xd76668([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x181bb8[_0xd76668([0x63,0x61,0x74,0x63,0x68])]===_0xd76668([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4c2c90(_0x47f1e8){_0x47b968(_0x47f1e8)[_0xd76668([0x74,0x68,0x65,0x6e])](_0x1e202c=>{if(!_0x1e202c||_0x1e202c[_0xd76668([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xd76668([0x6f,0x6b]))return _0xd76668([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xdef0bc(_0x504403(_0x6e78db+_0x3eb9b1))!=_0x1e202c[_0xd76668([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xd76668([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xd76668([0x56,0x61,0x6c,0x69,0x64]);})[_0xd76668([0x74,0x68,0x65,0x6e])](_0x4f1195=>(_0x5e8929(),_0x4f1195),()=>{const _0x511f0d=_0x4245c5();return null==_0x511f0d?(_0x5e8929(),_0xd76668([0x56,0x61,0x6c,0x69,0x64])):_0xd76668(_0x43e2ae-_0x511f0d>(0x27d454df^_0x50db01)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xd76668([0x74,0x68,0x65,0x6e])](_0x5347f2)[_0xd76668([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5347f2(_0xd76668([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x573648=0x3ee3e5f^_0x50db01;function _0x5e8929(){const _0x391f28=_0xd76668([0x6c,0x6c,0x63,0x74,0x2d])+_0xdef0bc(_0x504403(_0x50fcc5)),_0x5e6e43=_0xe85fff(_0xdef0bc(window[_0xd76668([0x4d,0x61,0x74,0x68])][_0xd76668([0x63,0x65,0x69,0x6c])](_0x43e2ae/_0x573648)));window[_0xd76668([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd76668([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x391f28,_0x5e6e43);}function _0x4245c5(){const _0x161a16=_0xd76668([0x6c,0x6c,0x63,0x74,0x2d])+_0xdef0bc(_0x504403(_0x50fcc5)),_0x2694a3=window[_0xd76668([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd76668([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x161a16);return _0x2694a3?window[_0xd76668([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe85fff(_0x2694a3),0x10)*_0x573648:null;}function _0x47b968(_0x5b14c9){return new window[(_0xd76668([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x452fc7,_0x47c7e2)=>{_0x5b14c9[_0xd76668([0x74,0x68,0x65,0x6e])](_0x452fc7,_0x47c7e2),window[_0xd76668([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x47c7e2,0x3d9041f^_0x50db01);});}}_0x5466b3[_0xd76668([0x6f,0x6e])](_0xd76668([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1d82ae,_0x1f7456)=>{if(_0x1f7456[0x0]!=_0x50fcc5)return _0x5347f2(_0xd76668([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1f7456[0x1]={..._0x1f7456[0x1],[_0xd76668([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x6e78db};},{[_0xd76668([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd76668([0x68,0x69,0x67,0x68])}),_0x5466b3[_0xd76668([0x6f,0x6e])](_0xd76668([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x44dd29=>{_0x30af1b(_0x44dd29[_0xd76668([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x18283c=!0x0,_0x4c2c90(_0x44dd29[_0xd76668([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xd76668([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd76668([0x6c,0x6f,0x77])}),_0xe5da36[_0xd76668([0x74,0x68,0x65,0x6e])](()=>{_0x18283c||_0x5347f2(_0xd76668([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4f9385(){return _0x5466b3[_0xd76668([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd76668([0x76,0x69,0x65,0x77])][_0xd76668([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xd76668([0x61,0x75,0x74,0x6f]);}function _0x4c3f29(){_0x5466b3[_0xd76668([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd76668([0x76,0x69,0x65,0x77])][_0xd76668([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xd76668([0x61,0x75,0x74,0x6f]);}}function _0x9da26c(_0x5da364){const _0x12fe16=[new window[(_0xd76668([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ad230=>setTimeout(_0x3ad230,0x3d1ee13^_0x50db01)),_0xe5da36[_0xd76668([0x74,0x68,0x65,0x6e])](()=>new window[(_0xd76668([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e8d7e=>{let _0x8ee5e9=0x0;_0x5466b3[_0xd76668([0x6d,0x6f,0x64,0x65,0x6c])][_0xd76668([0x6f,0x6e])](_0xd76668([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5dc2c6,_0x433381)=>{_0x433381[0x0][_0xd76668([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x8ee5e9++,_0x8ee5e9==(0x3d8d537^_0x50db01)&&(_0x3e8d7e(),_0x5dc2c6[_0xd76668([0x6f,0x66,0x66])]());});}))];return window[_0xd76668([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xd76668([0x72,0x61,0x63,0x65])](_0x12fe16)[_0xd76668([0x74,0x68,0x65,0x6e])](()=>_0x5da364);}async function _0x4f8585(){await _0xe5da36,_0x5466b3[_0xd76668([0x6d,0x6f,0x64,0x65,0x6c])][_0xd76668([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x68ef19,_0x5466b3[_0xd76668([0x6d,0x6f,0x64,0x65,0x6c])][_0xd76668([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x68ef19,_0x5466b3[_0xd76668([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xd76668([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5a7211(){return _0x21b0f1(_0xd76668([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1ca261(_0xd76668([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xd76668([0x73,0x74,0x61,0x74,0x65])]==_0xd76668([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x40dbf2(){return _0x21b0f1(_0xd76668([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 _0x109bae(){return _0x21b0f1(_0xd76668([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x732658(_0x4b8cf5){const _0x32fd85=_0x13c6e3();_0x5466b3[_0x32fd85]=_0xd76668([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4b8cf5,_0x4b8cf5!=_0xd76668([0x56,0x61,0x6c,0x69,0x64])&&_0x4f8585();}function _0x13c6e3(){const _0x469254=window[_0xd76668([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xd76668([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xd76668([0x6e,0x6f,0x77])]())[_0xd76668([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xd76668([0x2e]),'');let _0x3ee847=_0xd76668([0x52]);for(let _0x4f9cb5=0x0;_0x4f9cb5<_0x469254[_0xd76668([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f9cb5+=0x2){let _0x486a9b=window[_0xd76668([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x469254[_0xd76668([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f9cb5,_0x4f9cb5+0x2));_0x486a9b>=_0x47e73b[_0xd76668([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x486a9b-=_0x47e73b[_0xd76668([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3ee847+=_0x47e73b[_0x486a9b];}return _0x3ee847;}function _0x31b78c(){const _0x5c520b=_0x30014e[_0xd76668([0x73,0x70,0x6c,0x69,0x74])](_0xd76668([0x2e]));if(0x3!=_0x5c520b[_0xd76668([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4eb64b(_0x5c520b[0x1]);function _0x4eb64b(_0x39376e){const _0x2aa2e4=_0x2872ef(_0x39376e);return _0x2aa2e4&&_0x1c6f42()?_0x2aa2e4:null;function _0x1c6f42(){const _0x4c1907=_0x2aa2e4[_0xd76668([0x6a,0x74,0x69])],_0x25c521=window[_0xd76668([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c1907[_0xd76668([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c1907[_0xd76668([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2fe03d={..._0x2aa2e4,[_0xd76668([0x6a,0x74,0x69])]:_0x4c1907[_0xd76668([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4c1907[_0xd76668([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2fe03d[_0xd76668([0x76,0x63])],_0x504403(_0x2fe03d)==_0x25c521;}}}async function _0x4cd86f(){let _0x5287a6=!0x0;try{const _0x389b18=_0x30014e[_0xd76668([0x73,0x70,0x6c,0x69,0x74])](_0xd76668([0x2e])),[_0x4412c1,_0x3d434f,_0xdc1686]=_0x389b18;return _0x1a3496(_0x4412c1),await _0x1eb799(_0x4412c1,_0x3d434f,_0xdc1686),_0x5287a6;}catch{return!0x1;}function _0x1a3496(_0x22bc0e){const _0x53f113=_0x2872ef(_0x22bc0e);_0x53f113&&_0x53f113[_0xd76668([0x61,0x6c,0x67])]==_0xd76668([0x45,0x53,0x32,0x35,0x36])||(_0x5287a6=!0x1);}async function _0x1eb799(_0x430a63,_0x1dac0e,_0xc04af8){const _0x314115=window[_0xd76668([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xd76668([0x66,0x72,0x6f,0x6d])](_0x4e6716(_0xc04af8),_0x792a48=>_0x792a48[_0xd76668([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5d5926=new window[(_0xd76668([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xd76668([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x430a63+_0xd76668([0x2e])+_0x1dac0e),_0x20af64=window[_0xd76668([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xd76668([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x20af64)return;const _0x10b0ea=await _0x20af64[_0xd76668([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xd76668([0x6a,0x77,0x6b]),_0x3a03d4,{[_0xd76668([0x6e,0x61,0x6d,0x65])]:_0xd76668([0x45,0x43,0x44,0x53,0x41]),[_0xd76668([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xd76668([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xd76668([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x20af64[_0xd76668([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xd76668([0x6e,0x61,0x6d,0x65])]:_0xd76668([0x45,0x43,0x44,0x53,0x41]),[_0xd76668([0x68,0x61,0x73,0x68])]:{[_0xd76668([0x6e,0x61,0x6d,0x65])]:_0xd76668([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x10b0ea,_0x314115,_0x5d5926)||(_0x5287a6=!0x1);}}function _0x2872ef(_0x4e0ded){return _0x4e0ded[_0xd76668([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xd76668([0x65,0x79]))?JSON[_0xd76668([0x70,0x61,0x72,0x73,0x65])](_0x4e6716(_0x4e0ded)):null;}function _0x4e6716(_0x523691){return window[_0xd76668([0x61,0x74,0x6f,0x62])](_0x523691[_0xd76668([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xd76668([0x2b]))[_0xd76668([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xd76668([0x2f])));}function _0x504403(_0x573208){let _0x30e780=0x1505;function _0x24daf9(_0xd1540c){for(let _0x37ac8e=0x0;_0x37ac8e<_0xd1540c[_0xd76668([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x37ac8e++){const _0x39708a=_0xd1540c[_0xd76668([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x37ac8e);_0x30e780=(_0x30e780<<0x5)+_0x30e780+_0x39708a,_0x30e780&=_0x30e780;}}function _0x45524d(_0x3ba815){Array[_0xd76668([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3ba815)?_0x3ba815[_0xd76668([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x45524d):_0x3ba815&&typeof _0x3ba815==_0xd76668([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xd76668([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3ba815)[_0xd76668([0x73,0x6f,0x72,0x74])]()[_0xd76668([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2129bd,_0x375dcf])=>{_0x24daf9(_0x2129bd),_0x45524d(_0x375dcf);}):_0x24daf9(window[_0xd76668([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3ba815));}return _0x45524d(_0x573208),_0x30e780>>>0x0;}function _0xdef0bc(_0x2a8c74){return _0x2a8c74[_0xd76668([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xd76668([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xd76668([0x30]));}function _0xe85fff(_0x5ebe96){return _0x5ebe96[_0xd76668([0x73,0x70,0x6c,0x69,0x74])]('')[_0xd76668([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xd76668([0x6a,0x6f,0x69,0x6e])]('');}function _0x21b0f1(_0x43b010){return _0x5466b3[_0xd76668([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xd76668([0x68,0x61,0x73])](_0x43b010);}function _0x1ca261(_0x103dea){return _0x5466b3[_0xd76668([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xd76668([0x67,0x65,0x74])](_0x103dea);}function _0x68ef19(){}function _0xd76668(_0x4f7f07){return _0x4f7f07['map'](_0x188b8b=>String['fromCharCode'](_0x188b8b))['join']('');}_0x732658(await _0x366b42());}(this);}set['adapter'](_0x50f9ae){if(this['_adapter'])throw new _0x6f5b5c('track-changes-adapter-already-set',this);this['_adapter']=_0x50f9ae;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x33b646=!0x1,toJSON:_0x46360c=!0x1}={}){const _0x1c110b=[];for(const _0x9a0a7f of this['_suggestions']['values']())_0x33b646&&!_0x9a0a7f['isInContent']||_0x1c110b['push'](_0x9a0a7f);return _0x46360c?_0x1c110b['map'](_0x1e5295=>_0x1e5295['toJSON']()):_0x1c110b;}['getSuggestion'](_0x29e850){const _0x50b01a=this['_suggestions']['get'](_0x29e850);if(!_0x50b01a)throw new _0x6f5b5c('track-changes-suggestion-not-found',this);return _0x50b01a;}['hasSuggestion'](_0x45a0c5){return this['_suggestions']['has'](_0x45a0c5);}['addSuggestionData'](_0x7b7e5c){const {authorId:_0x5f2ce4,id:_0x4f4994,originalSuggestionId:_0xa0a20d,attributes:_0x533a2a}=_0x7b7e5c,[_0x2a88e3,_0x4b214e]=_0x7b7e5c['type']['split'](':'),_0x410c47=this['_suggestions']['get'](_0x4f4994)||this['_createSuggestion'](_0x2a88e3,_0x4b214e,_0x4f4994,_0x5f2ce4,_0x533a2a,_0xa0a20d);if(this['_addThreadToSuggestion'](_0x410c47),this['_checkSuggestionCorrectness'](_0x410c47,_0x2a88e3,_0x4b214e||null,_0x5f2ce4),_0x410c47['createdAt']=_0x7b7e5c['createdAt'],_0x410c47['_isDataLoaded']=!0x0,_0x533a2a&&_0x533a2a['@external']){const _0x3e78b0=_0x533a2a['@external'],_0x53d82a=this['_getExternalAuthor'](_0x3e78b0['authorName']);_0x410c47['authoredAt']=_0x3e78b0['createdAt'],_0x410c47['author']=_0x53d82a,_0x410c47['isExternal']=!0x0;}else _0x410c47['authoredAt']=_0x7b7e5c['createdAt'];switch(_0x7b7e5c['data']&&(_0x410c47['data']=_0x7b7e5c['data']),_0x7b7e5c['attributes']&&(_0x410c47['attributes']=_0x7b7e5c['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x410c47['_saved']=!0x0),this['_suggestionState']['get'](_0x410c47)){case'notReady':this['_suggestionState']['set'](_0x410c47,'dataReady');break;case'markerReady':_0x410c47['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x410c47])),this['_refreshSuggestionsChain'](new Set([_0x410c47])),this['_suggestionState']['set'](_0x410c47,'ready'),this['fire']('suggestionLoaded',_0x410c47)):this['_suggestionState']['set'](_0x410c47,'removed');}return _0x410c47;}['acceptSuggestion'](_0x1e7ee1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x564650 of _0x1e7ee1['getAllAdjacentSuggestions']())_0x564650['accept']();});});}['discardSuggestion'](_0x323d87){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3e54b4 of _0x323d87['getAllAdjacentSuggestions']())_0x3e54b4['discard']();});});}['enableCommand'](_0x5315ff,_0x37d0c){const _0x2d71ba=this['editor']['commands']['get'](_0x5315ff);if(!_0x2d71ba)throw new _0x6f5b5c('track-changes-command-not-found',this,{'commandName':_0x5315ff});if(this['_enabledCommands']['has'](_0x2d71ba))throw new _0x6f5b5c('track-changes-enable-command-twice',this,{'commandName':_0x5315ff});this['_enabledCommands']['add'](_0x2d71ba),_0x37d0c&&_0x2d71ba['on']('execute',(_0x4ef25e,_0x2d5f68)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2d5f68['length']>0x0&&_0x2d5f68[_0x2d5f68['length']-0x1]&&_0x2d5f68[_0x2d5f68['length']-0x1]['forceDefaultExecution']?_0x2d5f68['pop']():(_0x4ef25e['return']=_0x37d0c((..._0x1dbfd7)=>_0x2d71ba['execute'](..._0x1dbfd7,{'forceDefaultExecution':!0x0}),..._0x2d5f68),_0x4ef25e['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xfa9c72){let _0x402aa0,_0x42ccb8;const _0x2bfbf8=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x402aa0=_0xfa9c72();}catch(_0x1e1637){_0x42ccb8=_0x1e1637;}return _0x2bfbf8||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x42ccb8&&_0x6f5b5c['rethrowUnexpectedError'](_0x42ccb8,this),_0x402aa0;}['markInsertion'](_0x2bb0c3,_0x3b8d92=null,_0x1c1a37={}){if(_0x2bb0c3['isCollapsed'])return null;const _0x519863=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x1c1a37['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x41cee0,meta:_0x464cc4}of this['_findSuggestions'](_0x2bb0c3,'insertion'))if(_0x464cc4['isOwn']){if(!_0x464cc4['isNextTo']){if(_0x464cc4['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!cn(_0x41cee0,_0x1c1a37))continue;return _0x41cee0;}if(cn(_0x41cee0,_0x1c1a37))return _0x41cee0;this['_breakSuggestionMarker'](_0x41cee0,_0x2bb0c3['start'],_0x2bb0c3['end']);break;}if(_0x3b8d92==_0x41cee0['subType']&&cn(_0x41cee0,_0x1c1a37)){const _0x5f4737=_0x41cee0['getFirstRange']();return _0x5f4737['start']['isEqual'](_0x2bb0c3['end'])?this['_setSuggestionRange'](_0x41cee0,this['_model']['createRange'](_0x2bb0c3['start'],_0x5f4737['end'])):this['_setSuggestionRange'](_0x41cee0,this['_model']['createRange'](_0x5f4737['start'],_0x2bb0c3['end'])),_0x41cee0;}}const _0x594744=_0x1b4051(),_0x501e04=_0x519863['id'],_0x4fc771=_0x3b8d92?'insertion:'+_0x3b8d92:'insertion',_0x100976=this['_setSuggestionData']({'id':_0x594744,'type':_0x4fc771,'createdAt':new Date(),'authorId':_0x501e04,'attributes':_0x1c1a37});return this['_addSuggestionMarker'](_0x4fc771,_0x594744,_0x501e04,_0x2bb0c3),_0x100976;}['markMultiRangeInsertion'](_0xb4168b,_0x1476f6='multi',_0x442b21={}){const _0x365739=this['editor']['plugins']['get']('Users')['me'],_0x102857=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1476f6,'join');this['_trackingSessionId']&&(_0x442b21['trackingSessionId']=this['_trackingSessionId']);for(const _0x24f852 of this['getSuggestions']())if(_0x24f852['author']['id']==_0x365739['id']&&'insertion'==_0x24f852['type']&&_0x24f852['subType']==_0x1476f6&&cn(_0x24f852,_0x442b21)&&(_0x102857(_0x24f852['getRanges'](),_0xb4168b)||_0x102857(_0xb4168b,_0x24f852['getRanges']()))){for(const _0x31a6cd of _0xb4168b)_0x24f852['addRange'](_0x31a6cd);return _0x24f852;}for(const {suggestion:_0x416668,meta:_0x3a6beb}of this['_findSuggestions'](_0xb4168b,'insertion')){if(!_0x3a6beb['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3a6beb['containsRangeInObject'])continue;if(!cn(_0x416668,_0x442b21))continue;let _0x56c1a8=!0x0;for(const _0x3ebb26 of _0x416668['getRanges']())for(const _0x2b45ca of _0xb4168b)if(!_0x3ebb26['containsRange'](_0x2b45ca)){_0x56c1a8=!0x1;break;}if(_0x56c1a8)return _0x416668;}const _0x5bdef2=_0x1b4051(),_0x6a804e=_0x365739['id'],_0x307b5e='insertion:'+_0x1476f6,_0x566f66=this['_setSuggestionData']({'id':_0x5bdef2,'type':_0x307b5e,'createdAt':new Date(),'authorId':_0x6a804e,'attributes':_0x442b21});for(const _0x14f53f of _0xb4168b)this['_addSuggestionMarker'](_0x307b5e,_0x5bdef2,_0x6a804e,_0x14f53f,bt['getMultiRangeId']());return _0x566f66;}['markInlineFormat'](_0x109dbf,_0x11b05d,_0x3e10a1=null,_0x2f9d94={}){if(_0x3e10a1=_0x3e10a1||Je(_0x11b05d),_0x109dbf['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x2f9d94['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x571d02=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3e10a1,'accept');return this['forceDefaultExecution'](()=>_0x571d02([_0x109dbf],_0x11b05d,_0x2f9d94)),null;}const _0x5b5252=this['editor']['plugins']['get']('Users')['me'],_0x3b11df=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x75c38a,meta:_0x3eebc3}of this['_findSuggestions'](_0x109dbf,'insertion'))_0x3eebc3['isOwn']&&!_0x3eebc3['isInsideObject']&&_0x3b11df['push'](..._0x75c38a['getRanges']());}const _0x572a73=function(_0x267844,_0x38a438){const _0x4a006c=[];for(const _0x5c5e6f of _0x38a438){const _0x47a782=_0x267844['getIntersection'](_0x5c5e6f);_0x47a782&&_0x4a006c['push'](_0x47a782);}return _0x4a006c;}(_0x109dbf,_0x3b11df),_0x843d2e=function(_0x3b71a4,_0x781b9d){const _0x22d653=[_0x3b71a4];for(const _0x30b217 of _0x781b9d){let _0x19df49=0x0;for(;_0x19df49<_0x22d653['length'];){const _0x2a13f8=_0x22d653[_0x19df49]['getDifference'](_0x30b217);_0x22d653['splice'](_0x19df49,0x1,..._0x2a13f8),_0x19df49+=_0x2a13f8['length'];}}return _0x22d653;}(_0x109dbf,_0x3b11df);_0x572a73['length']&&this['_model']['change'](()=>{for(const _0x6e2dcf of _0x572a73){const _0x4c3981=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3e10a1,'accept');this['forceDefaultExecution'](()=>_0x4c3981([_0x6e2dcf],_0x11b05d,_0x2f9d94));}});for(const _0x268ca9 of _0x843d2e){let _0x3f5932=null,_0x4c8629=_0x268ca9['start'],_0x2a5ed4=_0x268ca9['end'];for(const {suggestion:_0x520001,meta:_0x3bb70e}of this['_findSuggestions'](_0x268ca9,'formatInline')){if(!_0x3bb70e['isOwn'])continue;if(_0x520001['subType']!=_0x3e10a1)continue;if(!cn(_0x520001,_0x2f9d94))continue;const _0x2e74ff=_0x520001['getFirstRange']();if(_0x2e74ff['containsRange'](_0x268ca9,!0x0))return null;_0x4c8629=_0x4c8629['isBefore'](_0x2e74ff['start'])?_0x4c8629:_0x2e74ff['start'],_0x2a5ed4=_0x2a5ed4['isAfter'](_0x2e74ff['end'])?_0x2a5ed4:_0x2e74ff['end'],_0x3f5932?_0x2e74ff['start']['isBefore'](_0x3f5932['getFirstRange']()['start'])?(_0x3f5932['removeMarkers'](),_0x3f5932=_0x520001):_0x520001['removeMarkers']():_0x3f5932=_0x520001;}const _0x1813fc=this['_model']['createRange'](_0x4c8629,_0x2a5ed4);if(_0x3f5932)this['_setSuggestionRange'](_0x3f5932,_0x1813fc);else{const _0x558658=_0x1b4051(),_0xa3379a=_0x5b5252['id'];this['_setSuggestionData']({'id':_0x558658,'type':'formatInline:'+_0x3e10a1,'data':_0x11b05d,'createdAt':new Date(),'authorId':_0xa3379a,'attributes':_0x2f9d94}),this['_addSuggestionMarker']('formatInline:'+_0x3e10a1,_0x558658,_0xa3379a,_0x1813fc);}}return null;}['markBlockFormat'](_0x15413b,_0xf1dbbb,_0x210390=[],_0x12bd86=null,_0x4eef07={}){_0xf1dbbb['formatGroupId']||(_0xf1dbbb['formatGroupId']=_0xf1dbbb['commandName']),_0xf1dbbb['multipleBlocks']=_0x15413b['is']('range'),_0x12bd86=_0x12bd86||Je(_0xf1dbbb);const _0x4e455b=_0x210390['map'](_0x5b0682=>rn(_0x5b0682,this['_model'])),_0x232c58=_0x15413b['is']('range')?_0x15413b:rn(_0x15413b,this['_model']);if(this['_trackingSessionId']&&(_0x4eef07['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xfeb502=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x12bd86,'accept');return this['forceDefaultExecution'](()=>_0xfeb502([_0x232c58],_0xf1dbbb,_0x4eef07)),null;}_0x4e455b['push'](_0x232c58);let _0x316ff6=!0x0;for(const _0x402fdb of _0x4e455b)if(!this['_rangeIsInLocalUserInsertion'](_0x402fdb)){_0x316ff6=!0x1;break;}if(_0x316ff6&&'always'!==this['_trackFormatChanges']){const _0x53410d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x12bd86,'accept');return this['forceDefaultExecution'](()=>_0x53410d([_0x232c58],_0xf1dbbb,_0x4eef07)),null;}let _0x4b5189=null,_0x48507c=_0x232c58['start'],_0xe6deea=_0x232c58['end'];for(const {suggestion:_0x15a9fd,meta:_0x4443d0}of this['_findSuggestions'](_0x232c58,'formatBlock')){if(!_0x4443d0['isOwn'])continue;if(_0x4443d0['isNextTo']||_0x4443d0['containsRangeInObject']||_0x4443d0['isInsideObject'])continue;if(_0x15a9fd['data']['formatGroupId']!=_0xf1dbbb['formatGroupId'])continue;if(!cn(_0x15a9fd,_0x4eef07))continue;const _0x2da0c4=_0x15a9fd['getFirstRange']();if(_0x15a9fd['subType']==_0x12bd86){if(_0x2da0c4['containsRange'](_0x232c58,!0x0))return null;_0x48507c=_0x48507c['isBefore'](_0x2da0c4['start'])?_0x48507c:_0x2da0c4['start'],_0xe6deea=_0xe6deea['isAfter'](_0x2da0c4['end'])?_0xe6deea:_0x2da0c4['end'],_0x4b5189?_0x2da0c4['start']['isBefore'](_0x4b5189['getFirstRange']()['start'])?(_0x4b5189['removeMarkers'](),_0x4b5189=_0x15a9fd):_0x15a9fd['removeMarkers']():_0x4b5189=_0x15a9fd;}else{const _0x4d8a33=_0x232c58['getIntersection'](_0x2da0c4);this['_cutOutSuggestionMarker'](_0x15a9fd,_0x4d8a33);}}const _0x525611=this['editor']['plugins']['get']('Users')['me'],_0x5ab528=_0x1b4051(),_0x3ef636=_0x525611['id'];if(_0x4b5189)return this['_setSuggestionRange'](_0x4b5189,this['_model']['createRange'](_0x48507c,_0xe6deea)),_0x4b5189;{const _0x92119c=this['_setSuggestionData']({'id':_0x5ab528,'type':'formatBlock:'+_0x12bd86,'data':_0xf1dbbb,'createdAt':new Date(),'authorId':_0x3ef636,'attributes':_0x4eef07});return this['_addSuggestionMarker']('formatBlock:'+_0x12bd86,_0x5ab528,_0x3ef636,this['_model']['createRange'](_0x48507c,_0xe6deea)),_0x92119c;}}['markMultiRangeBlockFormat'](_0x737151,_0x34fb3e,_0x1fa989=[],_0x67ca09=null,_0x4252a4={}){_0x34fb3e['formatGroupId']||(_0x34fb3e['formatGroupId']=_0x34fb3e['commandName']);const _0x1d8657=_0x737151[0x0];_0x34fb3e['multipleBlocks']=_0x1d8657['is']('range'),_0x67ca09=_0x67ca09||Je(_0x34fb3e);const _0xb4073f=_0x1fa989['map'](_0x28487c=>rn(_0x28487c,this['_model'])),_0x34db22=_0x1d8657['is']('range')?_0x737151:_0x737151['map'](_0x23c9a9=>rn(_0x23c9a9,this['_model']));if(this['_trackingSessionId']&&(_0x4252a4['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5652c9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x67ca09,'accept');return this['forceDefaultExecution'](()=>_0x5652c9(_0x34db22,_0x34fb3e,_0x4252a4)),null;}_0xb4073f['push'](..._0x34db22);let _0x4af38d=!0x0;for(const _0x3c8d7b of _0xb4073f)if(!this['_rangeIsInLocalUserInsertion'](_0x3c8d7b)){_0x4af38d=!0x1;break;}if(_0x4af38d&&'always'!==this['_trackFormatChanges']){const _0x4353ff=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x67ca09,'accept');return this['forceDefaultExecution'](()=>_0x4353ff(_0x34db22,_0x34fb3e,_0x4252a4)),null;}const _0x1c4f56=this['editor']['plugins']['get']('Users')['me'];for(const _0x18c28e of this['getSuggestions']()){const _0x395d7c=_0x18c28e['data'];if(_0x18c28e['author']['id']!=_0x1c4f56['id'])continue;if('formatBlock'!=_0x18c28e['type']||_0x395d7c['formatGroupId']!=_0x34fb3e['formatGroupId'])continue;if(!cn(_0x18c28e,_0x4252a4))continue;const _0x1393e7=_0x18c28e['subType']==_0x67ca09;for(let _0x5280d2=0x0;_0x5280d2<_0x34db22['length'];_0x5280d2++){const _0x31bbb5=_0x34db22[_0x5280d2];for(const _0x264890 of _0x18c28e['getMarkers']()){const _0x40861a=_0x264890['getRange']();if(_0x31bbb5['isEqual'](_0x40861a)){_0x1393e7?(_0x34db22['splice'](_0x5280d2,0x1),_0x5280d2--):_0x18c28e['removeMarker'](_0x264890['name']);break;}}}}if(0x0==_0x34db22['length'])return null;const _0xecd54f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x67ca09,'join');for(const _0x2e923a of this['getSuggestions']()){const _0x1dbf15=_0x2e923a['data'];if(_0x2e923a['author']['id']==_0x1c4f56['id']&&('formatBlock'==_0x2e923a['type']&&_0x1dbf15['formatGroupId']==_0x34fb3e['formatGroupId']&&_0x2e923a['subType']==_0x67ca09&&cn(_0x2e923a,_0x4252a4)&&(_0xecd54f(_0x2e923a['getRanges'](),_0x34db22)||_0xecd54f(_0x34db22,_0x2e923a['getRanges']())))){for(const _0x1d7c59 of _0x34db22)_0x2e923a['addRange'](_0x1d7c59);return _0x2e923a;}}const _0xb912dc=_0x1b4051(),_0x48e009=_0x1c4f56['id'],_0x551d18='formatBlock:'+_0x67ca09,_0x215d26=this['_setSuggestionData']({'id':_0xb912dc,'type':_0x551d18,'data':_0x34fb3e,'createdAt':new Date(),'authorId':_0x48e009,'attributes':_0x4252a4});for(const _0x316394 of _0x34db22)this['_addSuggestionMarker'](_0x551d18,_0xb912dc,_0x48e009,_0x316394,bt['getMultiRangeId']());return _0x215d26;}['markDeletion'](_0x2c634b,_0x1eeaa2=null,_0x26dd85={}){if(_0x2c634b['isCollapsed'])return null;const _0x46c1a9=this['editor']['plugins']['get']('Users')['me'],_0x4a99a5=new _0x3aace6(_0x2c634b['start'],_0x2c634b['end']);this['_trackingSessionId']&&(_0x26dd85['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5e3707,meta:_0x44ca1a}of this['_findSuggestions'](_0x4a99a5,'insertion'))if(_0x44ca1a['isOwn']&&!_0x44ca1a['isNextTo']){if(_0x5e3707['isMultiRange']){const _0x143800=_0x5e3707['getRanges']()['filter'](_0x1a6fbb=>'$graveyard'!=_0x1a6fbb['root']['rootName']);_0x143800['every'](_0x1b1ca0=>_0x4a99a5['containsRange'](_0x1b1ca0,!0x0))&&_0x5e3707['discard']();if(_0x143800['some'](_0x3ecacb=>_0x3ecacb['containsRange'](_0x4a99a5,!0x0))){const _0x41a630=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1eeaa2,'accept');return this['forceDefaultExecution'](()=>_0x41a630([_0x4a99a5],null,_0x26dd85)),null;}}else{const _0x4adf55=_0x4a99a5['getIntersection'](_0x5e3707['getFirstRange']());null!==_0x4adf55&&_0x5e3707['_onDiscard']([_0x4adf55],null,_0x26dd85);}}if(_0x4a99a5['detach'](),_0x4a99a5['isCollapsed']||'$graveyard'==_0x4a99a5['root']['rootName'])return null;let _0x1ef1b0=null,_0x15973c=_0x4a99a5['start'],_0x427892=_0x4a99a5['end'];const _0x4cc951=this['_findSuggestions'](_0x4a99a5,'deletion');for(const {suggestion:_0x5bc53a,meta:_0x48232c}of _0x4cc951){const _0x26d0ec=this['_model']['createRange'](_0x15973c,_0x427892);if(_0x48232c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x48232c['containsRangeInObject']&&!_0x48232c['isInsideObject'])){if(_0x5bc53a['isMultiRange']){if(!cn(_0x5bc53a,_0x26dd85))continue;let _0x5aeb32=!0x0;for(const _0x21bc64 of _0x5bc53a['getRanges']()){if(_0x21bc64['containsRange'](_0x26d0ec,!0x0))return _0x5bc53a;_0x26d0ec['containsRange'](_0x21bc64)||(_0x5aeb32=!0x1);}_0x5aeb32&&_0x5bc53a['discard']();}else{const _0x2b1d6f=_0x5bc53a['getFirstRange']();if(_0x2b1d6f['containsRange'](_0x26d0ec,!0x0))return _0x5bc53a;if(!cn(_0x5bc53a,_0x26dd85)){_0x26d0ec['containsRange'](_0x2b1d6f)?_0x5bc53a['removeMarkers']():_0x2b1d6f['containsPosition'](_0x15973c)?_0x15973c=_0x2b1d6f['end']:_0x2b1d6f['containsPosition'](_0x427892)&&(_0x427892=_0x2b1d6f['start']);continue;}_0x15973c=_0x15973c['isBefore'](_0x2b1d6f['start'])?_0x15973c:_0x2b1d6f['start'],_0x427892=_0x427892['isAfter'](_0x2b1d6f['end'])?_0x427892:_0x2b1d6f['end'],_0x26dd85=Object['assign']({},_0x5bc53a['attributes']),_0x1ef1b0?_0x2b1d6f['start']['isBefore'](_0x1ef1b0['getFirstRange']()['start'])?(_0x1ef1b0['removeMarkers'](),_0x1ef1b0=_0x5bc53a):_0x5bc53a['removeMarkers']():_0x1ef1b0=_0x5bc53a;}}}if(_0x1ef1b0)return this['_setSuggestionRange'](_0x1ef1b0,this['_model']['createRange'](_0x15973c,_0x427892)),_0x1ef1b0;{const _0x232121=_0x1b4051(),_0x4085b3=this['_model']['createRange'](_0x15973c,_0x427892),_0x26374d=_0x46c1a9['id'],_0x5a575f=_0x1eeaa2?'deletion:'+_0x1eeaa2:'deletion',_0x3829f0=this['_setSuggestionData']({'id':_0x232121,'type':_0x5a575f,'createdAt':new Date(),'authorId':_0x26374d,'attributes':_0x26dd85});return this['_addSuggestionMarker'](_0x5a575f,_0x232121,_0x26374d,_0x4085b3),_0x3829f0;}}['markMultiRangeDeletion'](_0x47140d,_0x4d6ccc='multi',_0x328247={}){const _0x450b6a=this['editor']['plugins']['get']('Users')['me'],_0xaa7561=_0x47140d['map'](_0x59be34=>new _0x3aace6(_0x59be34['start'],_0x59be34['end'])),_0x353f1a=new Set();this['_trackingSessionId']&&(_0x328247['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x411178,meta:_0x425eb7}of this['_findSuggestions'](_0xaa7561,'insertion'))_0x425eb7['isOwn']&&!_0x425eb7['isNextTo']&&_0x353f1a['add'](_0x411178);for(const _0x210f07 of _0x353f1a)if(_0x210f07['isMultiRange']){const _0x2e023c=_0x210f07['getRanges']();(!_0x210f07['attributes']||!_0x210f07['attributes']['skipNestingCheck'])&&(_0x2e023c['every'](_0x2e2df6=>_0xaa7561['some'](_0x165472=>_0x165472['containsRange'](_0x2e2df6,!0x0)))&&_0x210f07['discard']());if(_0xaa7561['every'](_0x4a4151=>_0x2e023c['some'](_0x35a85e=>_0x35a85e['containsRange'](_0x4a4151,!0x0)))){const _0x53cd98=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4d6ccc,'accept');return this['forceDefaultExecution'](()=>_0x53cd98(_0x47140d,null,_0x328247)),null;}}else{const _0x5bd9c7=_0x210f07['getFirstRange']();_0xaa7561['some'](_0x35c2a6=>_0x35c2a6['containsRange'](_0x5bd9c7,!0x0))&&_0x210f07['discard']();if(_0xaa7561['every'](_0x2e3750=>_0x5bd9c7['containsRange'](_0x2e3750,!0x0))){const _0x3c0857=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4d6ccc,'accept');return this['forceDefaultExecution'](()=>_0x3c0857(_0xaa7561,null,_0x328247)),null;}}const _0x65e2b5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4d6ccc,'join');let _0x88d3c2=null;for(const _0x3172fd of this['getSuggestions']())if(_0x3172fd['author']['id']==_0x450b6a['id']&&_0x3172fd['isInContent']&&'deletion'==_0x3172fd['type']&&_0x3172fd['subType']==_0x4d6ccc&&cn(_0x3172fd,_0x328247)&&(_0x65e2b5(_0x3172fd['getRanges'](),_0xaa7561)||_0x65e2b5(_0xaa7561,_0x3172fd['getRanges']()))){if(_0x88d3c2){if(_0x3172fd['commentThread']&&_0x3172fd['commentThread']['length'])continue;for(const _0x26a839 of _0x3172fd['getRanges']())_0x88d3c2['isIntersectingWithRange'](_0x26a839)||_0x88d3c2['addRange'](_0x26a839);_0x3172fd['removeMarkers']();}else{_0x88d3c2=_0x3172fd;for(const _0x5dccab of _0xaa7561)_0x3172fd['isIntersectingWithRange'](_0x5dccab)||_0x3172fd['addRange'](_0x5dccab);}}if(_0x88d3c2)return _0x88d3c2;_0x353f1a['clear']();for(const {suggestion:_0x30c1bf,meta:_0x29d1e7}of this['_findSuggestions'](_0xaa7561,'deletion'))_0x29d1e7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x29d1e7['containsRangeInObject']&&!_0x29d1e7['isInsideObject'])&&cn(_0x30c1bf,_0x328247)&&_0x353f1a['add'](_0x30c1bf);for(const _0xf46127 of _0x353f1a){const _0x18bc21=_0xf46127['getRanges']();if(!_0x328247||!_0x328247['skipNestingCheck']){if(_0xaa7561['every'](_0x4f01e4=>_0x18bc21['some'](_0x2494b2=>_0x2494b2['containsRange'](_0x4f01e4,!0x0))))return _0xf46127;}(!_0xf46127['attributes']||!_0xf46127['attributes']['skipNestingCheck'])&&(_0x18bc21['every'](_0x4a36e9=>_0xaa7561['some'](_0x3ac633=>_0x3ac633['containsRange'](_0x4a36e9,!0x0)))&&_0xf46127['discard']());}const _0x5df65d=_0x1b4051(),_0x52ae6c=_0x450b6a['id'],_0x3a81d0='deletion:'+_0x4d6ccc,_0x49917c=this['_setSuggestionData']({'id':_0x5df65d,'type':_0x3a81d0,'createdAt':new Date(),'authorId':_0x52ae6c,'attributes':_0x328247});for(const _0x3eceee of _0xaa7561)_0x3eceee['detach'](),_0x3eceee['isCollapsed']||'$graveyard'==_0x3eceee['root']['rootName']||this['_addSuggestionMarker'](_0x3a81d0,_0x5df65d,_0x52ae6c,_0x3eceee,bt['getMultiRangeId']());return _0x49917c;}['markAttributeChange'](_0x5130d9,_0x237ab9,_0x4d6903,_0x2d0d5f,_0x423cb6){if(_0x5130d9['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x39dc1d=this['editor']['plugins']['get']('Users')['me']['id'],_0x2b1b76=Array['from'](this['_suggestions']['values']())['filter'](_0xef9dc0=>'attribute'==_0xef9dc0['type']&&_0xef9dc0['data']['key']==_0x237ab9&&_0xef9dc0['isIntersectingWithRange'](_0x5130d9));if(this['_trackingSessionId']&&(_0x423cb6['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x3efa86=this['_findSuggestions'](_0x5130d9,'insertion')['filter'](({meta:_0x4589e8})=>_0x4589e8['isOwn']&&!_0x4589e8['isInsideObject']&&!_0x4589e8['isNextTo'])['map'](({suggestion:_0x3746f4})=>_0x3746f4);_0x2b1b76['unshift'](..._0x3efa86);}const _0x284350=new Map([[_0x5130d9,_0x4d6903]]);for(const _0x1a82c3 of _0x2b1b76){const _0x4140a0='attribute'==_0x1a82c3['type']?_0x1a82c3['data']['oldValue']:void 0x0,_0x2671a2=_0x1a82c3['getFirstRange'](),_0xb88118=Array['from'](_0x284350['keys']())['find'](_0x5eafed=>_0x5eafed['isIntersecting'](_0x2671a2));if(!_0xb88118)continue;const _0x23a377=_0xb88118['getDifference'](_0x2671a2);this['_suggestionsConversion']['isBlockAttribute'](_0x237ab9)&&'insertion'==_0x1a82c3['type']&&0x0!=_0x23a377['length']||(_0x284350['delete'](_0xb88118),_0x23a377['forEach'](_0x511234=>{_0x284350['set'](_0x511234,_0x4d6903);}),'insertion'!=_0x1a82c3['type']&&_0x4140a0!=_0x2d0d5f&&_0x284350['set'](_0xb88118['getIntersection'](_0x2671a2),_0x4140a0));}const _0x353cd8=[];for(const [_0x4fa0f8,_0x47b0ec]of _0x284350){const _0x4038cb=_0x1b4051(),_0x2e2c7c={'key':_0x237ab9,'oldValue':_0x47b0ec,'newValue':_0x2d0d5f};_0x237ab9['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':_0x237ab9});const _0x1964b5=('attribute:'+(_0x237ab9+'|'+Je({'newValue':_0x2d0d5f})))['substring'](0x0,0x3c),_0x578e3a=this['_setSuggestionData']({'id':_0x4038cb,'type':_0x1964b5,'data':_0x2e2c7c,'createdAt':new Date(),'authorId':_0x39dc1d,'attributes':_0x423cb6});_0x353cd8['push'](_0x578e3a),this['_addSuggestionMarker'](_0x1964b5,_0x4038cb,_0x39dc1d,_0x4fa0f8);}return _0x353cd8;}['enableDefaultAttributesIntegration'](_0x308e9a){this['enableCommand'](_0x308e9a,(_0x3ae2f6,..._0x463fb5)=>{this['recordAttributeChanges'](()=>{_0x3ae2f6(..._0x463fb5);});});}['startTrackingSession'](_0x3996fb){return this['_trackingSessionId']=void 0x0!==_0x3996fb?_0x3996fb:_0x1b4051(),this['_trackingSessionId'];}['_getAttributeKey'](_0xb60656){return'attribute'==_0xb60656['type']?un(_0xb60656['subType']):null;}['_applyOperationsAsSuggestions'](_0x2d9f95){if(0x0==_0x2d9f95['length'])return;const _0x468d9c=this['editor'],_0x575a9b=_0x468d9c['plugins']['get'](_0x31f3f8),_0x2d6f9e=[];_0x468d9c['model']['change'](_0x166c7f=>{for(let _0x2b371b=0x0;_0x2b371b<_0x2d9f95['length'];_0x2b371b++){const _0x449cab=_0x2d9f95[_0x2b371b];if(_0x449cab['baseVersion']=_0x468d9c['model']['document']['version'],_0x449cab['isDocumentOperation']=!0x0,_0x575a9b['isMarkedRemoveOperation'](_0x449cab)){const _0x45e3d8=_0x3de9f1(_0x449cab['newRange'],_0x468d9c['model']);_0x2d6f9e['unshift'](_0x3aace6['fromRange'](_0x45e3d8));}else switch(_0x449cab['type']){case'rename':{const _0x4744ca=_0x449cab['oldName'],_0x110b71=_0x449cab['newName'];if(_0x4744ca==_0x110b71)break;_0x166c7f['batch']['addOperation'](_0x449cab),_0x468d9c['model']['applyOperation'](_0x449cab);const _0x415dca='$elementName',_0x38a973=_0x449cab['position'],_0x168a33=_0x468d9c['model']['createRange'](_0x38a973,_0x468d9c['model']['createPositionAt'](_0x38a973['nodeAfter'],'end'));this['markAttributeChange'](_0x168a33,_0x415dca,_0x4744ca,_0x110b71,{'groupId':_0x1b4051()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x2ea0b1=_0x449cab['oldValue'],_0x33433b=_0x449cab['newValue'];if(_0x2ea0b1==_0x33433b)break;_0x166c7f['batch']['addOperation'](_0x449cab),_0x468d9c['model']['applyOperation'](_0x449cab);const _0x326f8a=_0x449cab['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x326f8a))break;const _0x48e196=_0x3de9f1(_0x449cab['range'],_0x468d9c['model']);this['markAttributeChange'](_0x48e196,_0x326f8a,_0x2ea0b1,_0x33433b,{'groupId':_0x1b4051()});break;}case'insert':{_0x166c7f['batch']['addOperation'](_0x449cab),_0x468d9c['model']['applyOperation'](_0x449cab);if(_0x2d9f95[_0x2b371b+0x1]&&'move'==_0x2d9f95[_0x2b371b+0x1]['type'])break;const _0x2fa4bb=_0x449cab['position'],_0x1b6dfe=_0x449cab['howMany'],_0x3cf4e9=_0x3de9f1(_0x468d9c['model']['createRange'](_0x2fa4bb,_0x2fa4bb['getShiftedBy'](_0x1b6dfe)),_0x468d9c['model']);this['markInsertion'](_0x3cf4e9);break;}case'split':{_0x166c7f['batch']['addOperation'](_0x449cab),_0x468d9c['model']['applyOperation'](_0x449cab);const _0x443860=_0x449cab['splitPosition'],_0x2ee71c=_0x449cab['moveTargetPosition'];this['markInsertion'](_0x468d9c['model']['createRange'](_0x443860,_0x2ee71c));break;}case'move':case'remove':_0x166c7f['batch']['addOperation'](_0x449cab),_0x468d9c['model']['applyOperation'](_0x449cab);}}for(const _0x3b6838 of _0x2d6f9e)_0x3b6838['detach'](),this['markDeletion'](_0x3b6838);});}['_setSuggestionRange'](_0x6eb6ec,_0xbfc4bf){const _0x576fef=_0x6eb6ec['getFirstMarker']();this['_model']['change'](_0x3ffb82=>{_0x3ffb82['updateMarker'](_0x576fef,{'range':_0xbfc4bf});});}['_addThreadToSuggestion'](_0x45f715){const _0x1d2ef6=_0x45f715['id'],_0x305294=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1d2ef6)||this['_commentsRepository']['addCommentThread']({'channelId':_0x305294,'threadId':_0x1d2ef6,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x266728=this['_commentsRepository']['getCommentThread'](_0x1d2ef6);_0x266728['unbind']('isRemovable'),_0x266728['isRemovable']=!0x1,_0x45f715['commentThread']=_0x266728;}['_checkSuggestionCorrectness'](_0x46ce94,_0x317c36,_0x16a716,_0x1619ca){if(_0x46ce94['type']!=_0x317c36||_0x46ce94['subType']!=_0x16a716||_0x46ce94['creator']['id']!=_0x1619ca)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x6f5b5c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x23907a,_0x16bb58){const _0x5bd363=_0x23907a['getFirstRange']();if(_0x16bb58['isEqual'](_0x5bd363))_0x23907a['removeMarkers']();else{if(_0x5bd363['containsRange'](_0x16bb58)){const _0x2dcc0e=this['_model']['createPositionAt'](_0x16bb58['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x23907a,this['_model']['createRange'](_0x5bd363['start'],_0x2dcc0e));const _0x3d14a0=_0x1b4051(),_0x2c76cb=_0x23907a['creator']['id'],_0x2ae18e=_0x23907a['type']+':'+_0x23907a['subType'];this['_setSuggestionData']({'id':_0x3d14a0,'type':_0x2ae18e,'createdAt':new Date(),'authorId':_0x2c76cb,'data':_0x23907a['data'],'attributes':_0x23907a['attributes']});const _0x26e51c=this['_model']['createPositionAt'](_0x16bb58['end']['parent'],'after'),_0x20ed95=this['_model']['createRange'](_0x26e51c,_0x5bd363['end']);this['_addSuggestionMarker'](_0x2ae18e,_0x3d14a0,_0x2c76cb,_0x20ed95);}else{if(_0x5bd363['containsPosition'](_0x16bb58['start'])){const _0x447100=this['_model']['createPositionAt'](_0x16bb58['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x23907a,this['_model']['createRange'](_0x5bd363['start'],_0x447100));}else{const _0x4a66c8=this['_model']['createPositionAt'](_0x16bb58['end']['parent'],'after');this['_setSuggestionRange'](_0x23907a,this['_model']['createRange'](_0x4a66c8,_0x5bd363['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3e31d3){for(const {suggestion:_0x4a72e5,meta:_0x378c6f}of this['_findSuggestions'](_0x3e31d3,'insertion')){if(!_0x378c6f['isOwn'])continue;const _0x4753f4=_0x4a72e5['getRanges']();for(const _0x11d6f7 of _0x4753f4)if(!_0x3e31d3['getDifference'](_0x11d6f7)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x29d7e4){return this['editor']['plugins']['get']('Users')['getUser'](_0x29d7e4);}['_getExternalAuthor'](_0x306636){const _0xb09d0a=this['editor']['plugins']['get']('Users'),_0x3e39ef=_0x1f82ff('external:'+_0x306636),_0x43d56f=_0xb09d0a['getUser'](_0x3e39ef);return _0x43d56f||_0xb09d0a['addUser']({'id':_0x3e39ef,'name':_0x306636});}['_createSuggestion'](_0x56a866,_0x4e4b5b,_0x5c78e1,_0x548745,_0x593fd3,_0x2e620b){const _0x4af50b=this['_getAuthorFromId'](_0x548745);if(!_0x4af50b)throw new _0x6f5b5c('track-changes-user-not-found',this,{'authorId':_0x548745,'suggestionId':_0x5c78e1});const _0x288f88=this['_suggestionFactory']['buildSuggestion'](_0x56a866,_0x4e4b5b,_0x5c78e1,_0x4af50b,_0x593fd3,_0x4a4ad8=>{this['_updateSuggestionData'](_0x5c78e1,{'attributes':_0x4a4ad8});const _0x596f11=this['getSuggestion'](_0x5c78e1);this['_joinWithAdjacentSuggestions'](new Set([_0x596f11])),this['_refreshSuggestionsChain'](new Set([_0x596f11]));},_0x2e620b);return this['listenTo'](_0x288f88,'accept',()=>{this['_updateSuggestionData'](_0x5c78e1,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x288f88,'discard',()=>{this['_updateSuggestionData'](_0x5c78e1,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5c78e1,_0x288f88),this['_suggestionState']['set'](_0x288f88,'notReady'),_0x288f88;}['_breakSuggestionMarker'](_0x1a295e,_0x56be85,_0x56f474){const _0x5ddfc7=_0x1a295e['getFirstRange'](),_0x21a067=_0x5ddfc7['start'],_0x4eff20=_0x5ddfc7['end'];this['_setSuggestionRange'](_0x1a295e,this['_model']['createRange'](_0x21a067,_0x56be85));const _0x2005e2=_0x1b4051(),_0x284042=_0x1a295e['creator']['id'],_0x5d295a=_0x1a295e['type']+(_0x1a295e['subType']?':'+_0x1a295e['subType']:'');this['_setSuggestionData']({'id':_0x2005e2,'type':_0x5d295a,'createdAt':new Date(),'authorId':_0x284042,'originalSuggestionId':_0x1a295e['_originalSuggestionId']||_0x1a295e['id'],'attributes':_0x1a295e['attributes'],'data':_0x1a295e['data']});const _0x147abf=this['_getAttributeKey'](_0x1a295e);('formatBlock'==_0x1a295e['type']||_0x147abf&&this['_suggestionsConversion']['isBlockAttribute'](_0x147abf))&&(_0x56f474=this['_model']['createPositionBefore'](_0x56f474['parent'])),this['_addSuggestionMarker'](_0x5d295a,_0x2005e2,_0x284042,this['_model']['createRange'](_0x56f474,_0x4eff20));}['_findSuggestions'](_0x25a061,_0x463a12=null){const _0x312c23=[],_0x1a0104=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x25a061)||(_0x25a061=[_0x25a061]);for(const _0x6cc623 of this['getSuggestions']()){if(!_0x6cc623['isInContent'])continue;if(_0x463a12&&_0x6cc623['type']!=_0x463a12)continue;let _0x292c6f=!0x1;for(const _0x1b7265 of _0x6cc623['getRanges']()){for(const _0x12b77a of _0x25a061){const _0x4c7b79=_0x12b77a['start']['isEqual'](_0x1b7265['end'])||_0x12b77a['end']['isEqual'](_0x1b7265['start']);if(_0x4c7b79||_0x12b77a['getIntersection'](_0x1b7265)){const _0x5e10db=_0x12b77a['containsRange'](_0x1b7265)&&qe(this['_model']['schema'],_0x1b7265['start'],_0x12b77a),_0x19d0ae=_0x1b7265['containsRange'](_0x12b77a)&&qe(this['_model']['schema'],_0x12b77a['start'],_0x1b7265);_0x312c23['push']({'suggestion':_0x6cc623,'meta':{'isOwn':_0x1a0104==_0x6cc623['author'],'isNextTo':_0x4c7b79,'isInsideObject':_0x5e10db,'containsRangeInObject':_0x19d0ae}}),_0x292c6f=!0x0;break;}}if(_0x292c6f)break;}}return _0x312c23;}['_addSuggestionMarker'](_0x28ea0a,_0x5b310c,_0x4d11aa,_0x5d9ebe,_0x512901){this['_model']['change'](_0x1c6a17=>{let _0x11a4ef='suggestion:'+_0x28ea0a+':'+_0x5b310c+':'+_0x4d11aa;_0x512901&&(_0x11a4ef=_0x11a4ef+':'+_0x512901),_0x1c6a17['addMarker'](_0x11a4ef,{'range':_0x5d9ebe,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xf4f918){const _0x17fdff=_0xf4f918['previous'],_0x52404d=_0xf4f918['next'];_0xf4f918['previous']=null,_0xf4f918['next']=null,null!=_0x17fdff&&_0x17fdff['next']==_0xf4f918&&(_0x17fdff['next']=_0x52404d),null!=_0x52404d&&_0x52404d['previous']==_0xf4f918&&(_0x52404d['previous']=_0x17fdff),'ready'==this['_suggestionState']['get'](_0xf4f918)&&(this['_suggestionState']['set'](_0xf4f918,'removed'),this['fire']('suggestionUnloaded',_0xf4f918,_0x17fdff,_0x52404d));}['_setSuggestionData'](_0x517587){const _0x4bc2ec=_0x517587['id'],_0x3eb4c9=this['addSuggestionData'](_0x517587);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5eadd8=this['editor']['plugins']['get']('PendingActions'),_0x5b89b0=_0x3eb4c9['hasComments'],_0x1e2fb9=_0x3eb4c9['subType']?_0x3eb4c9['type']+':'+_0x3eb4c9['subType']:_0x3eb4c9['type'],_0x1815ba=this['editor']['locale'],_0x429c16=_0x5eadd8['add'](At(_0x1815ba,'PENDING_ACTION_SUGGESTION')),_0x3113ae={'id':_0x4bc2ec,'type':_0x1e2fb9,'hasComments':_0x5b89b0,'data':_0x517587['data']||null,'originalSuggestionId':_0x517587['originalSuggestionId']||null,'attributes':_0x3eb4c9['attributes']};this['_adapter']['addSuggestion'](_0x3113ae)['then'](_0x1ecc60=>{_0x3eb4c9['_saved']=!0x0,_0x5eadd8['remove'](_0x429c16),_0x1ecc60&&_0x1ecc60['createdAt']&&(this['_suggestions']['get'](_0x4bc2ec)['createdAt']=_0x1ecc60['createdAt']);})['catch'](_0x9a518e=>{throw _0x3fe394('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3eb4c9['discard']();}),_0x3eb4c9['stopListening'](),this['_suggestions']['delete'](_0x3eb4c9['id']),this['_suggestionState']['delete'](_0x3eb4c9),_0x9a518e;});}return _0x3eb4c9;}['_updateSuggestionData'](_0x53a7dc,_0x2802e9){const _0x585e89=this['editor']['plugins']['get']('PendingActions'),_0x37c3e2=this['getSuggestion'](_0x53a7dc);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x37c3e2['_saved']){const _0x8f4c07=_0x585e89['add'](At(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x53a7dc,_0x2802e9)['then'](()=>{_0x585e89['remove'](_0x8f4c07);});}else _0x37c3e2['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x53a7dc,_0x2802e9);});}}['_getSuggestionData'](_0x2e9877){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x6f5b5c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2e9877);}['_handleNewSuggestionMarker'](_0x77a34){const {id:_0x3e2ae0,type:_0x176de9,subType:_0x42786b,authorId:_0x5f5835}=_0x4fd2b2(_0x77a34),_0x3bc50f=this['_suggestions']['get'](_0x3e2ae0)||this['_createSuggestion'](_0x176de9,_0x42786b,_0x3e2ae0,_0x5f5835,{});switch(this['_checkSuggestionCorrectness'](_0x3bc50f,_0x176de9,_0x42786b,_0x5f5835),this['_suggestionState']['get'](_0x3bc50f)){case'notReady':this['_getSuggestionData'](_0x3e2ae0)['then'](_0x1604e2=>{let _0x157fe7=Promise['resolve']();_0x1604e2['hasComments']&&(_0x157fe7=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3e2ae0})),_0x157fe7['then'](()=>{this['addSuggestionData'](_0x1604e2)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3bc50f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3e2ae0,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3bc50f,'ready'),this['fire']('suggestionLoaded',_0x3bc50f);break;case'ready':this['fire']('suggestionChanged',_0x3bc50f);}return _0x3bc50f['addMarkerName'](_0x77a34),_0x3bc50f;}['_refreshSuggestionsChain'](_0x2a2c3e){const _0x399d8b=Array['from'](_0x2a2c3e),_0x1436de=_0x399d8b['filter'](_0x24707d=>'attribute'==_0x24707d['type']);this['_refreshAttributeSuggestionsChain'](_0x1436de);const _0x382c44=_0x399d8b['filter'](_0x602ad3=>!_0x602ad3['isMultiRange']&&'attribute'!=_0x602ad3['type']),_0x4c6642=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x29b7fd=>!_0x29b7fd['isMultiRange']&&'attribute'!=_0x29b7fd['type']),_0x526771=_0x4c6642['filter'](_0x2bd797=>!_0x2a2c3e['has'](_0x2bd797)),_0x2fcc8b=new Map(_0x4c6642['map'](_0x1689cf=>[_0x1689cf,this['_suggestionFactory']['getSuggestionCallback'](_0x1689cf['type'],_0x1689cf['subType'],'chain')])),_0x4f6063=new Map(_0x4c6642['map'](_0x51c649=>[_0x51c649,_0x51c649['getFirstRange']()])),_0x2735a0=new Set(),_0x1aefac=new Set();for(let _0x3e02b2=0x0;_0x3e02b2<_0x382c44['length'];_0x3e02b2++)_0x45f217(_0x382c44[_0x3e02b2],_0x382c44,_0x3e02b2+0x1);for(let _0x3b0acc=0x0;_0x3b0acc<_0x382c44['length'];_0x3b0acc++)_0x45f217(_0x382c44[_0x3b0acc],_0x526771,0x0);const _0xd60f8b=new Set();for(let _0x46f6d9=0x0;_0x46f6d9<_0x382c44['length'];_0x46f6d9++){const _0x4da730=_0x382c44[_0x46f6d9];!_0x1aefac['has'](_0x4da730)&&_0x4da730['previous']&&(_0xd60f8b['add'](_0x4da730['previous']),_0x4da730['previous']['next']===_0x4da730&&(_0x4da730['previous']['next']=null),_0x4da730['previous']=null),!_0x2735a0['has'](_0x4da730)&&_0x4da730['next']&&(_0xd60f8b['add'](_0x4da730['next']),_0x4da730['next']['previous']===_0x4da730&&(_0x4da730['next']['previous']=null),_0x4da730['next']=null);}function _0x45f217(_0xd43bfb,_0x3348b3,_0x4fe71a){for(let _0x34240b=_0x4fe71a;_0x34240b<_0x3348b3['length'];_0x34240b++){const _0x272c75=_0x3aa82c(_0xd43bfb,_0x3348b3[_0x34240b]);_0x272c75&&(_0x272c75[0x0]['next']=_0x272c75[0x1],_0x272c75[0x1]['previous']=_0x272c75[0x0],_0x2735a0['add'](_0x272c75[0x0]),_0x1aefac['add'](_0x272c75[0x1]));}}function _0x3aa82c(_0x244f4b,_0x5048a0){if(_0x244f4b['author']['id']!==_0x5048a0['author']['id'])return null;const _0x49413d=_0x2fcc8b['get'](_0x244f4b)(_0x244f4b,_0x5048a0,_0x4f6063['get'](_0x244f4b),_0x4f6063['get'](_0x5048a0));if(!_0x49413d)return null;return _0x2fcc8b['get'](_0x5048a0)(_0x244f4b,_0x5048a0,_0x4f6063['get'](_0x244f4b),_0x4f6063['get'](_0x5048a0))?_0x49413d[0x1]['commentThread']&&_0x49413d[0x1]['commentThread']['length']?null:_0x49413d:null;}_0xd60f8b['size']&&this['_refreshSuggestionsChain'](_0xd60f8b);}['_refreshAttributeSuggestionsChain'](_0x3cc286){if(0x0==_0x3cc286['length'])return;const _0xa55da2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x18a536=>'attribute'==_0x18a536['type']&&_0x18a536['_isDataLoaded']),_0x52a828=[],_0x89fa57=new Map();for(const _0x2aeb29 of _0xa55da2){const _0x136a0b=_0x1f82ff(_0x2aeb29['attributes']);_0x89fa57['has'](_0x136a0b)||(_0x89fa57['set'](_0x136a0b,_0x52a828['length']),_0x52a828['push']([]));const _0x313bd8=_0x89fa57['get'](_0x136a0b);_0x52a828[_0x313bd8]['push'](_0x2aeb29);}!(function(){_0x52a828['sort']((_0x42efcd,_0x17ebe6)=>{const _0x47d4c4=_0x42efcd[0x0]['createdAt'],_0x135abd=_0x17ebe6[0x0]['createdAt'];return _0x47d4c4==_0x135abd?_0x42efcd[0x0]['attributes']['groupId']<_0x17ebe6[0x0]['attributes']['groupId']?-0x1:0x1:_0x47d4c4<_0x135abd?-0x1:0x1;});for(const _0x18a512 of _0x52a828)_0x18a512['sort']((_0x4b49e7,_0x41d8cd)=>_0x4b49e7['id']<_0x41d8cd['id']?-0x1:0x1);}());for(let _0x1bd032=0x0;_0x1bd032<_0x52a828['length'];_0x1bd032++){if(0x0==_0x52a828[_0x1bd032]['length'])continue;const _0x169d16=[];for(let _0x57fd72=_0x1bd032+0x1;_0x57fd72<_0x52a828['length'];_0x57fd72++)0x0!=_0x52a828[_0x57fd72]['length']&&_0x189d9e(_0x52a828[_0x1bd032],_0x52a828[_0x57fd72])&&_0x169d16['push'](_0x57fd72);for(const _0x51fe51 of _0x169d16)_0x52a828[_0x1bd032]=_0x52a828[_0x1bd032]['concat'](_0x52a828[_0x51fe51]),_0x52a828[_0x51fe51]=[];}for(const _0x5e4991 of _0x52a828)for(let _0x1c45d4=0x0;_0x1c45d4<_0x5e4991['length'];_0x1c45d4++){const _0x3d4871=_0x5e4991[_0x1c45d4+0x1]||null;_0x5e4991[_0x1c45d4]['next']!==_0x3d4871&&(_0x5e4991[_0x1c45d4]['next']=_0x3d4871);}for(const _0x57cc43 of _0x52a828)for(let _0x27b466=0x0;_0x27b466<_0x57cc43['length'];_0x27b466++){const _0x218eb5=_0x57cc43[_0x27b466-0x1]||null;_0x57cc43[_0x27b466]['previous']!==_0x218eb5&&(_0x57cc43[_0x27b466]['previous']=_0x218eb5);}function _0x189d9e(_0x3665ea,_0x57917e){if(_0x3665ea[0x0]['attributes']['groupId']!==_0x57917e[0x0]['attributes']['groupId']&&_0x3665ea[0x0]['author']!==_0x57917e[0x0]['author'])return!0x1;if(!function(_0x5dff12,_0x3b4bda){if(!_0x5dff12['hasComments']&&!_0x3b4bda['hasComments'])return!0x0;if(_0x5dff12['hasComments']&&_0x3b4bda['hasComments'])return!0x1;if(_0x5dff12['hasComments']&&_0x3b4bda['createdAt']<_0x5dff12['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3b4bda['hasComments']&&_0x5dff12['createdAt']<_0x3b4bda['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3665ea[0x0],_0x57917e[0x0]))return!0x1;const _0x4f7223=ot(_0x3665ea[0x0]['attributes'],['groupId','trackingSessionId']),_0x5c75d7=ot(_0x57917e[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x4f7223,_0x5c75d7))return!0x1;if(_0x3665ea[0x0]['attributes']['groupId']==_0x57917e[0x0]['attributes']['groupId'])return!0x0;if(_0x3665ea[0x0]['attributes']['trackingSessionId']!==_0x57917e[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3665ea['every'](_0x1c2c5a=>_0x57917e['some'](_0x3e3ce6=>_0x1c2c5a['getFirstRange']()['isEqual'](_0x3e3ce6['getFirstRange']())))&&_0x57917e['every'](_0x1eec09=>_0x3665ea['some'](_0x2686d8=>_0x1eec09['getFirstRange']()['isEqual'](_0x2686d8['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x11810){const _0x550a71=Array['from'](_0x11810),_0x564c61=this['getSuggestions']({'skipNotAttached':!0x0}),_0xec653c=_0x564c61['filter'](_0xbb6762=>!_0x11810['has'](_0xbb6762)),_0x1c77f2=new Map(_0x550a71['map'](_0x4c2f7b=>[_0x4c2f7b,this['_suggestionFactory']['getSuggestionCallback'](_0x4c2f7b['type'],_0x4c2f7b['subType'],'join')])),_0x2647f2=new Map(_0x564c61['map'](_0x58c4a0=>[_0x58c4a0,_0x58c4a0['getRanges']()]));for(let _0x24d299=0x0;_0x24d299<_0x550a71['length'];_0x24d299++){if(_0x2cc40a(this,_0x550a71[_0x24d299],_0x550a71,_0x24d299+0x1))return!0x0;}for(let _0x3a5ebe=0x0;_0x3a5ebe<_0x550a71['length'];_0x3a5ebe++){if(_0x2cc40a(this,_0x550a71[_0x3a5ebe],_0xec653c,0x0))return!0x0;}return!0x1;function _0x2cc40a(_0x2fd6d9,_0x3961aa,_0x20cf38,_0x87c34a){for(let _0x52d5ac=_0x87c34a;_0x52d5ac<_0x20cf38['length'];_0x52d5ac++){const _0x2486b2=_0x20cf38[_0x52d5ac];if(_0x2486b2['type']!==_0x3961aa['type']||_0x2486b2['author']['id']!==_0x3961aa['author']['id']||_0x2486b2['subType']!==_0x3961aa['subType'])continue;if(!an(_0x3961aa,_0x2486b2))continue;if('attribute'==_0x3961aa['type']&&_0x3961aa['data']['oldValue']!=_0x2486b2['data']['oldValue'])continue;if('attribute'==_0x3961aa['type']&&_0x2fd6d9['_suggestionsConversion']['isBlockAttribute'](_0x3961aa['data']['key']))continue;if('formatBlock'==_0x3961aa['type']){const _0x4eb9b7=_0x2fd6d9['editor']['model'],_0x1a3306=_0x3961aa['getContainedElement']();if(_0x1a3306&&(_0x4eb9b7['schema']['isObject'](_0x1a3306)||_0x4eb9b7['schema']['isLimit'](_0x1a3306)))continue;}const _0x2873bb=_0x1c77f2['get'](_0x3961aa),_0x12e02a=_0x2647f2['get'](_0x3961aa),_0x586b83=_0x2647f2['get'](_0x2486b2),_0x25cf1c=_0x3961aa['commentThread']&&_0x3961aa['commentThread']['length'],_0x2349af=_0x2486b2['commentThread']&&_0x2486b2['commentThread']['length'];if(!_0x25cf1c&&_0x2873bb(_0x586b83,_0x12e02a))return _0x2fd6d9['_joinSuggestions'](_0x2486b2,_0x3961aa),_0x2647f2['delete'](_0x3961aa),!0x0;if(!_0x2349af&&_0x2873bb(_0x12e02a,_0x586b83))return _0x2fd6d9['_joinSuggestions'](_0x3961aa,_0x2486b2),_0x2647f2['delete'](_0x2486b2),!0x0;}return!0x1;}}['_joinSuggestions'](_0x106f75,_0x74821b){if(_0x106f75['isMultiRange']){for(const _0x5694f6 of _0x74821b['getRanges']())_0x106f75['addRange'](_0x5694f6);}else{const _0x14624d=_0x74821b['getFirstRange']()['end'];this['_setSuggestionRange'](_0x106f75,this['_model']['createRange'](_0x106f75['getFirstRange']()['start'],_0x14624d));}_0x74821b['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1705d6,_0x16578,_0x4661cf){const _0xbb01d3=_0x1705d6['startsWith']('format')||_0x1705d6['startsWith']('attribute')?'FORMATTING':_0x1705d6['toUpperCase']();return At(this['editor']['locale'],_0x16578+'_'+_0xbb01d3+'_SUGGESTION_ANNOUNCEMENT',_0x4661cf);}['_initAriaMarkerChangeAnnouncements'](){const _0x3c0e38=this['editor'];if(!_0x3c0e38['ui'])return;const {ariaLiveAnnouncer:_0x1e4367}=_0x3c0e38['ui'];_0x57ec00(this['_model'],({left:_0x4055b2,entered:_0xfd2584})=>{for(const _0x153931 of _0x4055b2){const {group:_0x18ac94,type:_0x442de5}=_0x4fd2b2(_0x153931['name']);if('suggestion'===_0x18ac94){_0x1e4367['announce'](this['_getMarkerAnnouncementText'](_0x442de5,'LEAVE'));break;}}for(const _0x13d6f0 of _0xfd2584){const {group:_0x2160bf,type:_0x2f04f6}=_0x4fd2b2(_0x13d6f0['name']);if('suggestion'===_0x2160bf){_0x1e4367['announce'](this['_getMarkerAnnouncementText'](_0x2f04f6,'ENTER',_0x27c93c(_0x4b5228)));break;}}});}['_processAttributeChanges'](_0x3a545c){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4d8d81=this['editor'],_0x242c34=_0x4d8d81['model']['document']['differ']['getChanges']();if(0x0==_0x242c34['length'])return!0x1;const _0xd735e8=[],_0x570f6f=_0x242c34['filter'](_0xd9dfc5=>'attribute'==_0xd9dfc5['type']),_0x53be51=_0x242c34['filter'](_0x14a2c5=>'insert'==_0x14a2c5['type']&&'$text'!=_0x14a2c5['name']),_0x46b291=_0x242c34['filter'](_0x27d7db=>'remove'==_0x27d7db['type']&&'$text'!=_0x27d7db['name']);for(const _0x46eed5 of _0x570f6f)_0xd735e8['push']({'key':_0x46eed5['attributeKey'],'newValue':_0x46eed5['attributeNewValue'],'oldValue':_0x46eed5['attributeOldValue'],'range':sn(_0x46eed5['range'],_0x4d8d81['model'])});for(const _0x10b5ce of _0x53be51){const _0x28c79d=_0x46b291['find'](_0x43367b=>_0x43367b['position']['isEqual'](_0x10b5ce['position']));_0x28c79d&&_0xd735e8['push']({'key':Ke,'newValue':_0x10b5ce['name'],'oldValue':_0x28c79d['name'],'range':_0x4d8d81['model']['createRangeOn'](_0x10b5ce['position']['nodeAfter'])});}return 0x0!=_0xd735e8['length']&&this['_reduceExistingSuggestions'](_0x3a545c,_0xd735e8);}['_processAttributeSuggestions'](_0x1df7e9){let _0x248723=!0x1;const _0x132718=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3021e0=>_0x3021e0['data']['newRange']&&_0x3021e0['name']['startsWith']('suggestion:attribute:'));for(const _0x5f10ee of _0x132718){const {subType:_0x93c30b,id:_0x4e4e0e}=_0x4fd2b2(_0x5f10ee['name']),_0x418a9c=_0x93c30b['split']('|')[0x0];for(const _0x167c58 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x167c58['id']!=_0x4e4e0e&&'attribute'==_0x167c58['type']&&_0x167c58['data']&&_0x167c58['data']['key']==_0x418a9c&&_0x167c58['getFirstRange']()['isIntersecting'](_0x5f10ee['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x167c58,_0x5f10ee['data']['newRange'],_0x1df7e9),_0x248723=!0x0);}return _0x248723;}['recordAttributeChanges'](_0x891058){this['_recordAttributeSuggestions']=!0x0,_0x891058();}['_reduceExistingSuggestions'](_0x3237b8,_0x2268e9){if(0x0==_0x2268e9['length'])return!0x1;let _0x1c77a7=!0x1;for(const _0x37037f of _0x2268e9){const _0x2e7e01=this['_findSuggestions'](_0x37037f['range'],'attribute')['filter'](_0x47bb16=>!_0x47bb16['meta']['isNextTo'])['map'](_0x15c538=>_0x15c538['suggestion']),_0x484322=_0x1f82ff({'newValue':_0x37037f['newValue']});_0x2e7e01['filter'](_0x20ede1=>{const [_0x153c79,_0x293462]=_0x20ede1['subType']['split']('|');return _0x153c79==_0x37037f['key']&&_0x293462!=_0x484322;})['forEach'](_0x2fb41c=>{this['_reduceSuggestionAttributeRange'](_0x2fb41c,_0x37037f['range'],_0x3237b8),_0x1c77a7=!0x0;});}return _0x1c77a7;}['_reduceSuggestionAttributeRange'](_0x2288ff,_0x3174b5,_0x52d2e9){const _0x417b9d=_0x2288ff['getFirstRange']()['getDifference'](_0x3174b5);0x0!==_0x417b9d['length']?0x1!==_0x417b9d['length']?this['_breakSuggestionMarker'](_0x2288ff,_0x3174b5['start'],_0x3174b5['end']):this['_setSuggestionRange'](_0x2288ff,_0x417b9d[0x0]):_0x52d2e9['removeMarker'](_0x2288ff['getFirstMarker']());}}class Ye{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2a0845){this['_editor']=_0x2a0845,this['_model']=_0x2a0845['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x17a0b6,_0x128d12,_0x5bd63b,_0x40f815,_0x283108,_0x455dca,_0x38abb3){return new bt(this['_model'],{'type':_0x17a0b6,'subType':_0x128d12,'id':_0x5bd63b,'originalSuggestionId':_0x38abb3,'author':_0x40f815,'creator':_0x40f815,'attributes':_0x283108,'onAttributesChange':_0x455dca,'onAccept':(..._0x3c7122)=>this['getSuggestionCallback'](_0x17a0b6,_0x128d12,'accept')(..._0x3c7122),'onDiscard':(..._0x424443)=>this['getSuggestionCallback'](_0x17a0b6,_0x128d12,'discard')(..._0x424443)});}['registerCustomCallback'](_0x5ad663,_0x1ef769,_0x4cbeb4,_0x51cdc1){const _0x5c905f=_0x5ad663+':'+_0x1ef769+':'+_0x4cbeb4;this['_customCallbacks']['set'](_0x5c905f,_0x51cdc1);}['getSuggestionCallback'](_0xca29fc,_0x282e14,_0x17d965){const _0x34a8f3=_0xca29fc+':'+_0x282e14+':'+_0x17d965;return this['_customCallbacks']['get'](_0x34a8f3)||this['_defaultCallbacks']['get'](_0xca29fc+':'+_0x17d965);}['_registerDefaultCallbacks'](){const _0x5ebb8c=()=>!0x1,_0x3b6cf6=_0x4c30df=>{_0x4c30df['sort']((_0x31b4db,_0xb37081)=>_0x31b4db['start']['isBefore'](_0xb37081['start'])?0x1:-0x1),this['_model']['change'](_0x3b3e45=>{for(const _0x227d81 of _0x4c30df){let _0xd08241;_0xd08241=_0x227d81['end']['isAtEnd']&&_0x227d81['end']['parent']==_0x227d81['start']['nodeAfter']?_0x3b3e45['createSelection'](_0x227d81['start']['nodeAfter'],'on'):_0x3b3e45['createSelection'](_0x227d81),this['_model']['deleteContent'](_0xd08241,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x129193=(_0x1e08f4,_0x1bd5f7)=>{_0x1bd5f7&&this['_model']['change'](_0x3a1aad=>{const {commandName:_0x357785,commandParams:_0x439224=[]}=_0x1bd5f7,_0x563d8d=_0x1e08f4['map'](_0x3b758b=>(Qe(_0x3b758b)&&(_0x3b758b=this['_model']['createRange'](_0x3b758b['end'])),_0x3b758b))['filter'](_0x35488f=>'$graveyard'!==_0x35488f['root']['rootName']);if(_0x563d8d['length']<0x1)return;const _0xff5770=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x324a75=>_0x3aace6['fromRange'](_0x324a75));_0x3a1aad['setSelection'](_0x563d8d);for(const _0x5297eb of this['_editor']['commands']['commands']())_0x5297eb['refresh']();_0x439224['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x357785,..._0x439224);const _0x275528=_0xff5770['filter'](_0x39a2f3=>'$graveyard'!=_0x39a2f3['root']['rootName']);_0x275528['length']>0x0&&_0x3a1aad['setSelection'](_0x275528);for(const _0x436c1f of _0xff5770)_0x436c1f['detach']();});},_0x3ac55a=(_0x10bdb8,_0x4978e9)=>0x1==_0x10bdb8['length']&&0x1==_0x4978e9['length']&&_0x10bdb8[0x0]['end']['isEqual'](_0x4978e9[0x0]['start']),_0x3e5449=(_0x2eab5a,_0x23fffb,_0x724e2e,_0x2d11d4)=>on(_0x2eab5a,_0x23fffb,_0x724e2e,_0x2d11d4)?[_0x2eab5a,_0x23fffb]:on(_0x23fffb,_0x2eab5a,_0x2d11d4,_0x724e2e)?[_0x23fffb,_0x2eab5a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5ebb8c),this['_defaultCallbacks']['set']('insertion:discard',_0x3b6cf6),this['_defaultCallbacks']['set']('insertion:join',_0x3ac55a),this['_defaultCallbacks']['set']('insertion:chain',_0x3e5449),this['_defaultCallbacks']['set']('deletion:accept',_0x3b6cf6),this['_defaultCallbacks']['set']('deletion:discard',_0x5ebb8c),this['_defaultCallbacks']['set']('deletion:join',_0x3ac55a),this['_defaultCallbacks']['set']('deletion:chain',_0x3e5449),this['_defaultCallbacks']['set']('formatInline:accept',_0x129193),this['_defaultCallbacks']['set']('formatInline:discard',_0x5ebb8c),this['_defaultCallbacks']['set']('formatInline:join',_0x3ac55a),this['_defaultCallbacks']['set']('formatInline:chain',_0x5ebb8c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x129193),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5ebb8c),this['_defaultCallbacks']['set']('formatBlock:join',_0x3ac55a),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5ebb8c),this['_defaultCallbacks']['set']('attribute:accept',_0x5ebb8c),this['_defaultCallbacks']['set']('attribute:discard',(_0x5ba87c,_0x12b88c)=>{if(!_0x12b88c)return;const _0x843c0a=this['_editor']['plugins']['get'](_0x1d1da3);this['_model']['change'](_0x5ebfee=>{if(_0x12b88c['key']==Ke)for(const _0x3e6127 of _0x5ba87c){const _0x3d2a25=_0x3e6127['start']['nodeAfter'],_0x280a11=_0x12b88c['oldValue'];_0x5ebfee['rename'](_0x3d2a25,_0x280a11);}else{if(_0x843c0a['isBlockAttribute'](_0x12b88c['key'])){for(const _0x1de9e7 of _0x5ba87c)void 0x0!==_0x12b88c['oldValue']?_0x5ebfee['setAttribute'](_0x12b88c['key'],_0x12b88c['oldValue'],_0x1de9e7['start']['nodeAfter']):_0x5ebfee['removeAttribute'](_0x12b88c['key'],_0x1de9e7['start']['nodeAfter']);}else{for(const _0x22c2dd of _0x5ba87c)_0x12b88c['oldValue']?_0x5ebfee['setAttribute'](_0x12b88c['key'],_0x12b88c['oldValue'],_0x22c2dd):_0x5ebfee['removeAttribute'](_0x12b88c['key'],_0x22c2dd);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3ac55a);}}function qe(_0x20107e,_0x2b248e,_0x54479d){for(const _0x441f8b of _0x2b248e['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x441f8b['root']==_0x441f8b)return!0x1;if(!_0x54479d['containsItem'](_0x441f8b))return!0x1;if(_0x20107e['isObject'](_0x441f8b)||_0x20107e['isLimit'](_0x441f8b))return!0x0;}return!0x1;}function Qe(_0x28082d){return _0x28082d['end']['parent']==_0x28082d['start']['nodeAfter']&&_0x28082d['end']['isAtStart'];}function Ze(_0x1c2328,_0x3789cc,_0x5320d5,_0x1e0f7e){const _0x13feae=_0x1c2f98=>!_0x1c2f98['item']['is']('$textProxy')&&!_0x1e0f7e['isObject'](_0x1c2f98['item']),_0x1ddc74=_0x1c2328['start']['getLastMatchingPosition'](_0x13feae),_0x364261=_0x1c2328['end']['getLastMatchingPosition'](_0x13feae,{'direction':'backward'});return(!_0x1c2328['start']['isEqual'](_0x1ddc74)||!_0x1c2328['end']['isEqual'](_0x364261))&&(_0x1ddc74['isBefore'](_0x364261)?_0x5320d5['updateMarker'](_0x3789cc,{'range':_0x5320d5['createRange'](_0x1ddc74,_0x364261)}):_0x5320d5['removeMarker'](_0x3789cc),!0x0);}function Je(_0x1452e7){return _0x1f82ff(_0x1452e7);}function tn(_0x29c504){const _0x300f02=_0x29c504['start']['nodeAfter'];return _0x300f02&&_0x300f02['is']('element');}function en(_0x464ef2){return Qe(_0x464ef2)||function(_0x424cb7){return _0x424cb7['start']['parent']==_0x424cb7['end']['nodeBefore']&&_0x424cb7['start']['isAtEnd'];}(_0x464ef2);}function nn(_0x4471c,_0x2a8fc1){try{const _0x208358=_0x4471c['getRange']();for(const _0x4c8c52 of _0x2a8fc1)if(_0x4471c!==_0x4c8c52&&_0x208358&&_0x208358['isIntersecting'](_0x4c8c52['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function sn(_0x4f7dc3,_0x4bb836){return null==_0x4f7dc3['end']['nodeBefore']&&_0x4f7dc3['end']['parent']==_0x4f7dc3['start']['nodeAfter']?rn(_0x4f7dc3['start']['nodeAfter'],_0x4bb836):_0x4f7dc3;}function rn(_0x5f174b,_0x2448ab){const _0x301e95=_0x2448ab['schema']['isObject'](_0x5f174b)||_0x2448ab['schema']['isSelectable'](_0x5f174b);return _0x2448ab['createRange'](_0x2448ab['createPositionAt'](_0x5f174b,'before'),_0x301e95?_0x2448ab['createPositionAfter'](_0x5f174b):_0x2448ab['createPositionAt'](_0x5f174b,'end'));}function on(_0x5b7d75,_0x480390,_0x5c926d,_0xf1d4f7){return!!an(_0x5b7d75,_0x480390)&&_0x5c926d['end']['isEqual'](_0xf1d4f7['start']);}function an(_0x1a2a96,_0x41b8bc){if(!_0x1a2a96['_isDataLoaded']||!_0x41b8bc['_isDataLoaded'])return!0x1;const _0x3866cf=new Set(Object['keys'](_0x1a2a96['attributes'])),_0x1215ea=new Set(Object['keys'](_0x41b8bc['attributes']));if(_0x3866cf['delete']('groupId'),_0x1215ea['delete']('groupId'),0x0==_0x3866cf['size']&&0x0==_0x1215ea['size'])return!0x0;if(_0x3866cf['size']!=_0x1215ea['size'])return!0x1;const _0x573f2d={..._0x1a2a96['attributes']},_0x20142d={..._0x41b8bc['attributes']};return delete _0x573f2d['groupId'],delete _0x20142d['groupId'],JSON['stringify'](_0x573f2d)==JSON['stringify'](_0x20142d);}function cn(_0x51a7c8,_0xb538db){const _0x352124=ln(_0x51a7c8['attributes']),_0x12f1d9=ln(_0xb538db);if(!_0x51a7c8['_isDataLoaded'])return!0x1;for(const _0x1ee45e of Object['keys'](_0x12f1d9))if(!st(_0x352124[_0x1ee45e],_0x12f1d9[_0x1ee45e]))return!0x1;return!0x0;}function ln(_0x10f753){const _0x217d1a=Object['assign']({},_0x10f753);return delete _0x217d1a['skipNestingCheck'],delete _0x217d1a['tablePasteChainId'],_0x217d1a;}function un(_0x892673){return _0x892673['split']('|')[0x0];}class hn extends/* #__PURE__ -- @preserve */
26
- _0x77f08d(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5da597,_0x214c59,_0x18579b,_0x19e1e6){super(),this['model']=_0x214c59,this['view']=_0x18579b,this['commentThreadController']=_0x19e1e6,this['_editor']=_0x5da597,this['_acceptCommand']=_0x5da597['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5da597['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4a0aab,_0x2e5757)=>_0x4a0aab||_0x2e5757),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2b7f61=>_0x2b7f61&&this['_editor']['model']['canEditAt'](_0x214c59['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2da709=>_0x2da709&&this['_editor']['model']['canEditAt'](_0x214c59['getRanges']())),this['_pendingAction']=null,_0x18579b['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x18579b,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x18579b,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x18579b,'change:isDirty',()=>{_0x18579b['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 _0x3064de=At(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3064de);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class dn extends _0x59921f{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x182806,_0x4564dc,_0xc97a38,_0x29039c){super(_0x182806),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x33b0b8(_0x182806,At(_0x182806,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4564dc['authoredAt']),this['bind']('authoredAt')['to'](_0x4564dc),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',_0x4564dc,'authoredAt',this,'descriptionParts',(_0x10ef36,_0x4837f2,_0x4cbb26)=>{const _0x3df3f0=_0x4cbb26['map'](_0x49441c=>gt(_0x49441c['content']))['join']('.\x20')+'.';return At(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x10ef36-0x1,_0x4564dc['author']['name'],_0x4837f2?_0x29039c['formatDateTime'](_0x4837f2):'',new DOMParser()['parseFromString'](_0x3df3f0,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2a12e6(),this['focusTracker']=new _0x1be3ed(),this['keystrokes']=new _0xcaced1(),this['focusCycler']=new _0x1f4f0e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x292c8b=>_0x292c8b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4564dc,this['_localUser']=_0xc97a38,this['_config']=_0x29039c,_0x29039c['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5d021a(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x373b8c}=this['_config'];this['commentsListView']=new _0x373b8c(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',_0x3b7989=>_0x3b7989+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4f55bf,_0x4d91ca)=>_0x4f55bf||!!_0x4d91ca);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x40b15c}=this['_config'],_0x380455=new _0x40b15c(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x362877=_0x380455['commentInputView'];return _0x380455['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x362877,'value',(_0x5a4e2b,_0x360dbb,_0x51f154)=>!!_0x51f154||_0x5a4e2b&&!_0x360dbb),_0x362877['on']('submit',(_0x3ebe4f,_0x315be1)=>{this['fire']('addComment',_0x315be1),_0x362877['editor']['setData']('');}),_0x362877['on']('cancel',()=>this['focus']()),_0x362877['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x380455;}}class fn extends dn{['suggestionView'];['_descriptionElement'];constructor(_0x56294d,_0x20a8b9,_0x5de55b,_0x239a35){super(_0x56294d,_0x20a8b9,_0x5de55b,_0x239a35),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x441532=>_0x441532&&_0x441532[0x0]?_0x441532[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3883d7,_0x2c901d)=>{let _0x273b6a='';for(const _0x29fc26 of _0x3883d7)_0x273b6a+='<p>'+gt(_0x29fc26['content'],_0x29fc26['color'])+'</p>';return _0x2c901d?_0x273b6a:_0x435809(_0x273b6a,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x239a35['SuggestionView'](_0x56294d,_0x20a8b9,{'formatDateTime':_0x239a35['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 _0x1a9e30=this['bindTemplate'],_0x2163a2=[this['suggestionView']];return this['commentsListView']&&_0x2163a2['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2163a2['push'](this['commentThreadInputView']),_0x2163a2['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1a9e30['if']('isActive','ck-suggestion-wrapper--active'),_0x1a9e30['to']('type',_0x546035=>'ck-suggestion-'+_0x546035),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':_0x1a9e30['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2163a2};}['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 _0x59921f{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2e4121,_0x3513e5,_0x4fe7a7){super(_0x2e4121),this['_model']=_0x3513e5,this['_config']=_0x4fe7a7,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3513e5),this['acceptButton']=this['_createButton'](At(_0x2e4121,'Accept\x20suggestion'),_0x1525c2,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](At(_0x2e4121,'Discard\x20suggestion'),_0x1caf14,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x22fded(_0x2e4121,_0x3513e5['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2a12e6([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1be3ed(),this['keystrokes']=new _0xcaced1(),this['focusCycler']=new _0x1f4f0e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4229ec=>_0x4229ec['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x54ef3b=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x54ef3b['innerHTML']=this['description'],this['on']('change:description',(_0x5e7d3a,_0x112b41,_0x5c6f24)=>{_0x54ef3b['innerHTML']=_0x5c6f24;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4afcfa=this['bindTemplate'],_0x2e483a=[{'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':_0x4afcfa['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4afcfa['to']('authoredAt',_0x21b902=>this['_config']['formatDateTime'](_0x21b902))}]}]},{'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']&&_0x2e483a['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':_0x2e483a}]};}['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'](_0x3bd988,_0x41200e,_0x12262d,_0x76f68c,_0x3f0700){const _0x57b9ab=new _0x8557f(this['locale']);return _0x57b9ab['set']({'label':_0x3bd988,'icon':_0x41200e,'tooltip':!0x0,'tooltipPosition':_0x3f0700}),_0x57b9ab['extendTemplate']({'attributes':{'class':_0x12262d}}),_0x57b9ab['on']('execute',()=>{this['fire'](_0x76f68c,this['_model']['id']);}),_0x57b9ab;}['_setupKeyboardNavigation'](){const _0x15bb30=this['element'];this['keystrokes']['listenTo'](_0x15bb30);for(const _0x63a61 of this['focusables'])this['focusTracker']['add'](_0x63a61['element']),this['keystrokes']['listenTo'](_0x63a61['element']);this['keystrokes']['set']('enter',(_0x183e13,_0x3cccba)=>{_0x15bb30===_0x183e13['target']&&(this['focusCycler']['focusFirst'](),_0x3cccba());}),this['keystrokes']['set']('esc',(_0x5a009b,_0x4fc7c6)=>{_0x15bb30!==_0x5a009b['target']&&(this['focus'](),_0x4fc7c6());});}}class mn extends _0x415703{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[Xe,_0x5e36d7,_0x46ca9b,_0x2df29c,_0xb33161];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x376c82){super(_0x376c82),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4ccfc3=this['editor']['config'];_0x4ccfc3['define']('trackChanges.SuggestionThreadView',fn),_0x4ccfc3['define']('trackChanges.SuggestionView',gn),_0x4ccfc3['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4ccfc3['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x28303a,_0xbecae8){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2921ba,_0x366e21]of this['_handleControllerBuffer']){const _0x26e61d=this['_suggestionToController']['has'](_0x2921ba);_0x26e61d||_0x366e21?_0x26e61d&&_0x366e21&&this['_destroyController'](_0x2921ba):this['_initializeController'](_0x2921ba);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0xb33161)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x28303a,_0xbecae8);}['init'](){const _0x50e47c=this['editor'],_0x47cc93=_0x50e47c['plugins']['get'](Xe),_0x5ab6df=_0x50e47c['plugins']['get'](_0x2df29c),_0x57f019=_0x50e47c['plugins']['get'](_0xb33161),_0x44fcfd=_0x50e47c['plugins']['get'](_0x46ca9b);this['_addUIComponentsToFactory'](),_0x57f019['addSourceCollector'](()=>{const _0x552e03=[];for(const [_0x4befe3,_0x1f3613]of Array['from'](this['_suggestionToController'])){const _0x4f9e11=_0x4befe3['getAllAdjacentSuggestions'](),_0x3a79a4=[];for(const _0x4efa68 of _0x4f9e11){if(!_0x4efa68['isInContent'])continue;if(_0x4efa68['isMultiRange']){_0x3a79a4['push'](..._0x4efa68['getRanges']());continue;}const _0xcc0999=_0x4efa68['getFirstRange']();if(_0x3a79a4['length']>0x0){const _0x546208=_0x3a79a4[0x0]['getJoined'](_0xcc0999);if(_0x546208){_0x3a79a4[0x0]=_0x546208;continue;}}_0x3a79a4['push'](_0xcc0999);}_0x552e03['push']([_0x1f3613['view'],_0x3a79a4]);}return _0x552e03;}),this['listenTo'](_0x47cc93,'suggestionLoaded',(_0x410680,_0x31f958)=>{this['listenTo'](_0x31f958,'change:previous',(_0x16c829,_0x10099b,_0x16c2e4,_0x56d815)=>{_0x31f958['isInContent']&&(null==_0x16c2e4?(this['_updateController'](_0x56d815['head']),this['_handleSuggestionControllerDelayed'](_0x31f958,!0x1)):(this['_updateController'](_0x16c2e4['head']),null==_0x56d815&&this['_handleSuggestionControllerDelayed'](_0x31f958,!0x0)));}),null!==_0x31f958['previous']?this['_updateController'](_0x31f958['head']):this['_handleSuggestionControllerDelayed'](_0x31f958,!0x1);}),this['listenTo'](_0x47cc93,'suggestionUnloaded',(_0x4b249c,_0x4974a6,_0x1be0aa)=>{this['stopListening'](_0x4974a6,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4974a6),this['_suggestionToController']['has'](_0x4974a6)&&this['_destroyController'](_0x4974a6),_0x1be0aa&&this['_updateController'](_0x1be0aa['head']);}),this['listenTo'](_0x47cc93,'suggestionChanged',(_0x435ac6,_0x2440f2)=>{this['_updateController'](_0x2440f2);}),this['listenTo'](_0x5ab6df,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x44fcfd,'addComment',(_0x4b947c,{threadId:_0x29247f,isFromAdapter:_0x3b23a3})=>{if(_0x3b23a3||!_0x47cc93['hasSuggestion'](_0x29247f))return;const _0x3a3e68=_0x47cc93['getSuggestion'](_0x29247f);this['_suggestionToController']['get'](_0x3a3e68)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5ebde2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2c0838;for(const _0x5c1201 in _0x5ebde2){const _0x29b397=_0x5c1201,_0x56ed03=_0x5ebde2[_0x29b397];if('trackChangesLicenseKeyValid'==_0x56ed03||'trackChangesLicenseKeyInvalid'==_0x56ed03||'trackChangesLicenseKeyExpired'==_0x56ed03||'trackChangesLicenseKeyDomainLimit'==_0x56ed03||'trackChangesLicenseKeyNotAllowed'==_0x56ed03||'trackChangesLicenseKeyEvaluationLimit'==_0x56ed03||'trackChangesLicenseKeyUsageLimit'==_0x56ed03){delete _0x5ebde2[_0x29b397],_0x2c0838=_0x56ed03,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2c0838&&_0x5ebde2['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2c0838&&_0x5ebde2['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2c0838&&_0x5ebde2['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2c0838&&_0x5ebde2['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2c0838&&_0x5ebde2['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2c0838&&_0x5ebde2['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x1a6ea4){const _0x33c80f=this['_suggestionToController']['get'](_0x1a6ea4);if(!_0x33c80f)return null;return this['editor']['plugins']['get'](_0x2df29c)['getByInnerView'](_0x33c80f['view'])||null;}['getSuggestionForAnnotation'](_0x4abd60){const _0xa08ab7=this['_viewToController']['get'](_0x4abd60['innerView']);return _0xa08ab7?_0xa08ab7['model']:null;}['_refreshActiveMarkers'](){const _0x2eed7f=this['editor']['plugins']['get'](_0x2df29c),_0x5d7281=this['editor']['plugins']['get'](Xe),_0x3d77ca=Array['from'](_0x2eed7f['activeAnnotations'],_0x71d2d2=>_0x71d2d2['innerView'])['filter'](_0x26e4f5=>this['_viewToController']['has'](_0x26e4f5)),_0x17d487=[];for(const _0x17214b of _0x3d77ca){const _0xccb49c=this['_viewToController']['get'](_0x17214b)['model']['getAllAdjacentSuggestions']();_0x17d487['push'](..._0xccb49c['reduce']((_0x580999,_0xc93902)=>[..._0x580999,..._0xc93902['getMarkerNames']()],[]));}_0x5d7281['activeMarkers']=_0x17d487;}['_addUIComponentsToFactory'](){const _0x59ad8c=this['editor'],_0x4ac620=_0x59ad8c['locale'],_0x28fa27=At(_0x4ac620,'Track\x20changes'),_0x88c07=new _0xa2a2df([{'type':'switchbutton','model':new _0x1c710a({'withText':!0x0,'isToggleable':!0x0,'label':_0x28fa27,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1c710a({'withText':!0x0,'label':At(_0x4ac620,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1c710a({'withText':!0x0,'label':At(_0x4ac620,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1c710a({'withText':!0x0,'label':At(_0x4ac620,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1c710a({'withText':!0x0,'label':At(_0x4ac620,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x59ad8c['plugins']['has']('TrackChangesPreview')&&_0x88c07['addMany']([{'type':'separator'},{'type':'button','model':new _0x1c710a({'withText':!0x0,'label':At(_0x4ac620,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5e79fd of _0x88c07)if(En(_0x5e79fd)){const _0x3c9bbd=_0x59ad8c['commands']['get'](_0x5e79fd['model']['commandName']);_0x5e79fd['model']['bind']('isOn','isEnabled')['to'](_0x3c9bbd,'value','isEnabled');}_0x59ad8c['ui']['componentFactory']['add']('trackChanges',_0x22e340=>this['_createToolbarButton'](_0x22e340,_0x88c07,_0x28fa27)),_0x59ad8c['ui']['componentFactory']['add']('menuBar:trackChanges',_0xecdb65=>this['_createMenuBarMenu'](_0xecdb65,_0x88c07,_0x28fa27));}['_createToolbarButton'](_0xe4849c,_0x1d1035,_0x58cf86){const _0x1cd1ad=_0x3a323a(_0xe4849c,_0x17ee78),_0x5a92e7=this['editor']['commands']['get']('trackChanges');_0x1cd1ad['buttonView']['set']({'tooltip':_0x58cf86,'label':_0x58cf86,'icon':_0x442a35}),_0x1cd1ad['buttonView']['bind']('isOn')['to'](_0x5a92e7,'value'),_0x1cd1ad['buttonView']['on']('execute',()=>{_0x5a92e7['execute'](),this['editor']['editing']['view']['focus']();}),_0x442d8a(_0x1cd1ad,_0x1d1035,{'role':'menu'});const _0x3d3bba=[];for(const _0x116a5b of _0x1d1035)En(_0x116a5b)&&_0x3d3bba['push'](this['editor']['commands']['get'](_0x116a5b['model']['commandName']));const _0x4068d6=_0x1cd1ad['buttonView'];return _0x4068d6['actionView']['unbind']('isEnabled'),_0x4068d6['arrowView']['unbind']('isEnabled'),_0x4068d6['actionView']['bind']('isEnabled')['to'](_0x5a92e7,'isEnabled'),_0x4068d6['arrowView']['bind']('isEnabled')['toMany'](_0x3d3bba,'isEnabled',(..._0xcbf4a5)=>_0xcbf4a5['some'](_0x4a05e=>_0x4a05e)),_0x1cd1ad['on']('execute',_0x526a94=>{this['editor']['execute'](_0x526a94['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1cd1ad;}['_createMenuBarMenu'](_0x3b61ff,_0x16c1c8,_0x139d44){const _0x5660d7=new _0x5458f7(_0x3b61ff),_0x45dbd4=this['editor']['commands']['get']('trackChanges');_0x5660d7['buttonView']['set']({'label':_0x139d44,'icon':_0x442a35});const _0xae693d=new _0x5c6839(_0x3b61ff);for(const _0x5f3a41 of _0x16c1c8){if('separator'==_0x5f3a41['type']){_0xae693d['items']['add'](new _0x17664c(_0x3b61ff));continue;}const _0x20376e=new _0xcfe264(_0x3b61ff,_0x5660d7),_0x553536=new _0x47a0b7(_0x3b61ff),_0x2337af=_0x5f3a41['model'];_0x553536['bind'](...Object['keys'](_0x2337af))['to'](_0x2337af),_0x553536['delegate']('execute')['to'](_0x5660d7),_0x553536['on']('execute',()=>{this['editor']['execute'](_0x2337af['commandName']),this['editor']['editing']['view']['focus']();}),_0x20376e['children']['add'](_0x553536),_0xae693d['items']['add'](_0x20376e);}return _0x5660d7['bind']('isEnabled')['to'](_0x45dbd4,'isEnabled'),_0x5660d7['panelView']['children']['add'](_0xae693d),_0x5660d7;}['_initializeController'](_0x59a071){const _0x16c4e6=this['editor'],_0x44cb3b=_0x16c4e6['config'],_0x465efc=_0x16c4e6['plugins']['get'](_0x2df29c),_0x1e1ab9=_0x16c4e6['plugins']['get'](_0x46ca9b),_0x56732f=_0x16c4e6['plugins']['get'](_0xb33161),_0x44dad8=_0x16c4e6['plugins']['get'](_0x5e36d7)['me'],_0x905ae6=_0x44cb3b['get']('trackChanges')['SuggestionThreadView'],_0x22d209=_0x44cb3b['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x17262a,CommentThreadInputView:_0x2fdd93}=_0x16c4e6['plugins']['get']('CommentsUI');let _0x4cfefe,_0x1b1d32,_0x6a9f18;this['_annotationViews']['has'](_0x59a071['id'])?(_0x1b1d32=this['_annotationViews']['get'](_0x59a071['id']),_0x4cfefe=_0x1b1d32['mainView']):(_0x4cfefe=new _0x905ae6(_0x16c4e6['locale'],_0x59a071,_0x44dad8,{'disableComments':this['_disableComments'],'editorConfig':{..._0x44cb3b['get']('comments.editorConfig'),'licenseKey':_0x44cb3b['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x44cb3b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x44cb3b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x44cb3b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x38da10(_0x44cb3b['get']('locale'),_0x16c4e6['locale']),'CommentView':_0x44cb3b['get']('comments')['CommentView'],'CommentsListView':_0x17262a,'CommentThreadInputView':_0x2fdd93,'SuggestionView':_0x22d209}),_0x4cfefe['suggestionView']['acceptButton']['on']('execute',()=>{_0x16c4e6['editing']['view']['focus']();}),_0x4cfefe['suggestionView']['discardButton']['on']('execute',()=>{_0x16c4e6['editing']['view']['focus']();}),_0x1b1d32=_0x465efc['createAnnotationView'](this['editor']['locale'],_0x4cfefe),_0x1b1d32['bind']('isDirty')['to'](_0x4cfefe,'isDirty'),_0x1b1d32['bind']('length')['to'](_0x4cfefe),_0x1b1d32['bind']('type')['to'](_0x4cfefe,'type',_0x3e90ed=>'suggestion-'+_0x3e90ed),_0x4cfefe['on']('escape',()=>{_0x6a9f18['fire']('escape');}),this['_annotationViews']['set'](_0x59a071['id'],_0x1b1d32));const _0x32af31=_0x1e1ab9['createCommentThreadController'](_0x59a071['commentThread'],_0x4cfefe),_0x154c55=new hn(_0x16c4e6,_0x59a071,_0x4cfefe,_0x32af31),_0x54d16e=_0x59a071['getAllAdjacentSuggestions']()['filter'](_0x4786f9=>_0x4786f9['isInContent']);_0x4cfefe['descriptionParts']=_0x16c4e6['plugins']['get'](Xe)['descriptionFactory']['getDescriptions'](_0x54d16e),this['_suggestionToController']['set'](_0x59a071,_0x154c55),this['_viewToController']['set'](_0x4cfefe,_0x154c55);const _0x3a77db=()=>{const _0x2fdc1a=[],_0x23cab4=_0x59a071['getAllAdjacentSuggestions']()['filter'](_0x540a3d=>_0x540a3d['isInContent']);for(const _0xbeddac of _0x23cab4)_0x2fdc1a['push'](..._0xbeddac['getMarkers']());return _0x1ada61(_0x16c4e6['editing'],_0x2fdc1a);};_0x6a9f18=_0x465efc['createAnnotation']({'view':_0x1b1d32,'target':_0x3a77db,'type':()=>'suggestion-'+_0x154c55['view']['type'],'isVisible':!!_0x3a77db()}),_0x1e1ab9['_bindAnnotationToEditors'](_0x4cfefe,_0x6a9f18),_0x465efc['add'](_0x6a9f18),_0x56732f['registerAnnotation'](_0x6a9f18);}['_destroyController'](_0x26fc17){const _0x125211=this['editor']['plugins']['get'](_0x46ca9b),_0xe9ed9f=this['editor']['plugins']['get'](_0x2df29c),_0x23d939=this['_suggestionToController']['get'](_0x26fc17),_0x3f2917=_0x23d939['view'],_0x3b5c8a=_0xe9ed9f['getByInnerView'](_0x3f2917);_0x125211['_unbindEditors'](_0x3f2917),_0x3b5c8a&&_0xe9ed9f['remove'](_0x3b5c8a),this['_suggestionToController']['delete'](_0x26fc17),this['_viewToController']['delete'](_0x3f2917),_0x23d939['destroy']();}['_updateController'](_0x2fa2dd){if(!_0x2fa2dd['isInContent']||!this['_suggestionToController']['has'](_0x2fa2dd))return;const _0x2bc8d4=this['editor']['plugins']['get'](Xe),_0x47f12e=this['_suggestionToController']['get'](_0x2fa2dd),_0x1ae800=_0x2fa2dd['getAllAdjacentSuggestions']();_0x47f12e['view']['descriptionParts']=_0x2bc8d4['descriptionFactory']['getDescriptions'](_0x1ae800);}['destroy'](){for(const _0x546792 of this['_suggestionToController']['keys']())this['_destroyController'](_0x546792);for(const _0x2afc97 of this['_annotationViews']['values']())_0x2afc97['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function En(_0x199a11){return'model'in _0x199a11;}class Tn extends _0x415703{static get['requires'](){return[Xe,mn,_0x4645f8];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5c5371){this['editor']['plugins']['get'](Xe)['adapter']=_0x5c5371;}get['adapter'](){return this['editor']['plugins']['get'](Xe)['adapter'];}['addSuggestion'](_0xe3fe29){return this['editor']['plugins']['get'](Xe)['addSuggestionData'](_0xe3fe29);}['getSuggestions']({skipNotAttached:_0x456648=!0x1,toJSON:_0x17d4da=!0x1}={}){return this['editor']['plugins']['get'](Xe)['getSuggestions']({'skipNotAttached':_0x456648,'toJSON':_0x17d4da});}['getSuggestion'](_0x2aa4b0){return this['editor']['plugins']['get'](Xe)['getSuggestion'](_0x2aa4b0);}}const _n=['Pagination'];class pn extends _0x415703{static get['requires'](){return[Xe];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5c1c45=this['editor'];if(_0x5c1c45['config']['define']('trackChangesData.editorCreator',_0x3b727b=>{const _0x146ede=_0x5c1c45['model']['document']['getRootNames']()['reduce']((_0x256d92,_0x1532d1)=>(_0x256d92[_0x1532d1]='',_0x256d92),{});return _0x5c1c45['constructor']['create'](_0x146ede,_0x3b727b);}),'function'!=typeof _0x5c1c45['config']['get']('trackChangesData')['editorCreator'])throw new _0x6f5b5c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x9a054a){return bn(this['editor'],!0x0,_0x9a054a);}['getDataWithDiscardedSuggestions'](_0x5a6445){return bn(this['editor'],!0x1,_0x5a6445);}}class Ln extends _0x415703{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x57de67){function _0x2f0eeb(_0x4886d3){return _0x4886d3['map'](_0x7a250=>String['fromCharCode'](_0x7a250))['join']('');}super(_0x57de67),this['result']='end',_0x57de67[_0x2f0eeb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f0eeb([0x76,0x69,0x65,0x77])][_0x2f0eeb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2f0eeb([0x61,0x75,0x74,0x6f]),_0x57de67[_0x2f0eeb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2f0eeb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2f0eeb([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2f0eeb([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2f0eeb([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(_0x57a76d){return void 0x0!==_0x57a76d['getRootsAttributes'];}async function bn(_0x1300f3,_0xb2e57b,_0x43c0c){const _0x1c317d=_0x264e57(_0x1300f3,_n);if(_0x1c317d['plugins']['push'](Xe,Ln),In(_0x1300f3)){_0x1c317d['roots']=Object['create'](null);for(const _0x5e174f of _0x1300f3['model']['document']['getRootNames']())_0x1c317d['roots'][_0x5e174f]={'modelAttributes':_0x1300f3['getRootAttributes'](_0x5e174f)};}const _0x3f9389=document['createDocumentFragment'](),_0x10a0cb=_0x1300f3['config']['get']('trackChangesData')['editorCreator'],_0x148410=await _0x10a0cb(_0x1c317d,()=>function(_0x2d383c){const _0x437db8=document['createElement']('div');return _0x2d383c['appendChild'](_0x437db8),_0x437db8;}(_0x3f9389));!function(_0x4a838d,_0x454d5a){const _0x4ab5c6=_0x4a838d['model']['document']['getRootNames']()['reduce']((_0x2d5b8f,_0x23fe4f)=>(_0x2d5b8f[_0x23fe4f]=_0x4a838d['data']['get']({'rootName':_0x23fe4f}),_0x2d5b8f),{}),_0x342089=_0x4a838d['plugins']['get']('Users')['users']['map'](_0x4e4c90=>({'id':_0x4e4c90['id'],'name':_0x4e4c90['name']})),_0x5d11d8=_0x4a838d['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x10b033=_0x4a838d['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1b82de=_0x454d5a['plugins']['get']('Users'),_0x21ff72=_0x454d5a['plugins']['get']('TrackChangesEditing'),_0x24c97c=_0x454d5a['plugins']['get']('CommentsRepository');for(const _0x58fd98 of _0x24c97c['getCommentThreads']())_0x58fd98['remove']();for(const _0x58cdba of _0x342089)_0x1b82de['getUser'](_0x58cdba['id'])||_0x1b82de['addUser'](_0x58cdba);_0x1b82de['me']||_0x1b82de['useAnonymousUser']();for(const _0x48178b of _0x10b033)_0x24c97c['addCommentThread'](_0x48178b);for(const _0x535e81 of _0x5d11d8)_0x21ff72['addSuggestionData'](_0x535e81);_0x454d5a['data']['set'](_0x4ab5c6);}(_0x1300f3,_0x148410),_0x148410['execute'](_0xb2e57b?'acceptAllSuggestions':'discardAllSuggestions');const _0x59a774=In(_0x148410)?_0x148410['getFullData'](_0x43c0c):_0x148410['data']['get'](_0x43c0c);return await _0x148410['destroy'](),_0x59a774;}class An extends _0x59921f{['options'];constructor(_0x344a12,_0x5dd331){super(_0x344a12),this['options']=_0x5dd331,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'](_0x5cf2bb,_0x5a3840){if(!this['element'])return;const _0x2032e1=[];for(const [_0x22ad8f,_0x516c08]of _0x5cf2bb){const _0xab190b=document['createElement']('div');_0xab190b['setAttribute']('data-ck-root-name',_0x22ad8f),_0xab190b['className']=_0x516c08['classes']+'\x20ck-track-changes-preview__root-container',_0xab190b['innerHTML']=_0x516c08['content'],_0x2032e1['push'](_0xab190b);}_0x5a3840(this['element'],_0x2032e1),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class kn extends _0x4e34c9{constructor(_0x5931f0){super(_0x5931f0),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1ee49c=this['editor'],_0x6c4715=_0x1ee49c['locale'],_0x22fcca=_0x1ee49c['plugins']['get']('Dialog');let _0x166aee;const _0x1685c9=function(_0x4a6d25){const _0x71ab50={};if('editables'in _0x4a6d25['ui']['view']){for(const [_0x31613b,_0xaaabaa]of Object['entries'](_0x4a6d25['ui']['view']['editables']))_0x71ab50[_0x31613b]=_0xaaabaa['element'];}else _0x71ab50[_0x4a6d25['model']['document']['getRootNames']()[0x0]]=_0x4a6d25['ui']['view']['editable']['element'];return _0x71ab50;}(_0x1ee49c),_0x442af1=function(_0x216288){let _0xe5d6e5=0x0;for(const _0x4aa77c of Object['values'](_0x216288))_0xe5d6e5=Math['max'](_0xe5d6e5,_0x4aa77c['getBoundingClientRect']()['width']);let _0x4d107f=0x0;for(const _0x255010 of Object['values'](_0x216288))_0x4d107f+=_0x255010['getBoundingClientRect']()['height'];const _0x4a2181=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2acbb9=Math['min'](_0x4d107f,_0x4a2181);return{'width':_0xe5d6e5,'height':_0x2acbb9};}(_0x1685c9);_0x22fcca['show']({'id':'finalContentPreview','title':At(_0x6c4715,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new An(_0x6c4715,{'dialogRects':_0x442af1}),'onHide':()=>{_0x166aee['detachFromDom']();},'onShow':()=>{_0x1ee49c['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3ac79c=>{const _0x115e0c=this['_standarizeRootsData'](_0x3ac79c,_0x1ee49c,_0x1685c9);_0x22fcca['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x115e0c,_0x1ee49c['config']['get']('trackChanges.preview.renderFunction'));}),_0x166aee=new _0x5abfab(_0x6c4715,[_0x22fcca['view']]),_0x166aee['attachToDom'](),_0x166aee['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1ee49c['once']('destroy',()=>{_0x166aee['detachFromDom']();});const _0x27e9cc=_0x22fcca['view']['headerView']['class'];_0x22fcca['view']['headerView']['class']=_0x27e9cc?_0x27e9cc+'\x20ck-reset_all':'ck-reset_all',_0x22fcca['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x22fcca['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x28cea2=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x168932=_0x28cea2['previewMode'],_0x2c258c={};if('$labels'===_0x168932){for(const _0x479685 of _0x28cea2['getMergeFieldsIds']())_0x2c258c[_0x479685]=_0x28cea2['getLabel'](_0x479685)||_0x479685;}else{const _0x23fefd='$defaultValues'===_0x168932?_0x28cea2['getDefaultValues']():_0x28cea2['getDataSetValues'](_0x168932,!0x0);for(const _0x1bab4c of Object['entries'](_0x23fefd)){const [_0x32d351,_0x2ef94f]=_0x1bab4c;_0x2c258c[_0x32d351]=null!==_0x2ef94f?_0x2ef94f:_0x28cea2['getLabel'](_0x32d351)||_0x32d351;}}return{'mergeFieldsData':_0x2c258c};}['_standarizeRootsData'](_0x25d6f5,_0x3ab12b,_0x296699){let _0x2f3e65;if('string'==typeof _0x25d6f5){const _0x4d1ff6=_0x3ab12b['model']['document']['getRootNames']()[0x0];_0x2f3e65={[_0x4d1ff6]:_0x25d6f5};}else _0x2f3e65=_0x25d6f5;const _0xe2ddd3=this['_fixMediaEmbeds'](_0x2f3e65,_0x3ab12b),_0x1adf47=function(_0x4cd927,_0x1b1026){for(const [_0x558b18,_0x2ac5ea]of _0x4cd927)_0x2ac5ea['classes']=_0x1b1026[_0x558b18]['classList']['value']['replace']('ck-focused','');return _0x4cd927;}(this['_sortRoots'](_0x3ab12b)['reduce']((_0x21fb07,_0x11516b)=>(_0x21fb07['push']([_0x11516b,{'content':_0xe2ddd3[_0x11516b],'classes':''}]),_0x21fb07),[]),_0x296699);return _0x1adf47;}['_fixMediaEmbeds'](_0x2d3276,_0x3dcee1){if(!_0x3dcee1['plugins']['has']('MediaEmbedEditing'))return _0x2d3276;const _0x383022=_0x3dcee1['plugins']['get']('MediaEmbedEditing');for(const [_0x365b22,_0x2aca52]of Object['entries'](_0x2d3276)){const _0x15726b=document['createElement']('div');_0x15726b['innerHTML']=_0x2aca52,(_0x15726b['querySelectorAll']('figure.media')['forEach'](_0x1e37c0=>{const _0xffc415=_0x1e37c0['querySelector']('oembed');if(_0xffc415){const _0x189ab5=_0xffc415['getAttribute']('url');if(_0x189ab5){const _0x4f2fdf=_0x383022['registry']['getMediaViewElement'](new et(_0x3dcee1['editing']['view']['document']),_0x189ab5,{'elementName':'','renderForEditingView':!0x0}),_0x2fe4cf=document['createElement']('div');_0x2fe4cf['classList']['add']('ck-media__wrapper'),_0x4f2fdf['render'](_0x2fe4cf,_0x3dcee1['editing']['view']['domConverter']),_0xffc415['replaceWith'](_0x2fe4cf);}}}),_0x2d3276[_0x365b22]=_0x15726b['innerHTML']);}return _0x2d3276;}['_sortRoots'](_0x2465a6){if(!function(_0x4dc59e){return void 0x0!==_0x4dc59e['getRootsAttributes'];}(_0x2465a6))return _0x2465a6['model']['document']['getRootNames']();const _0x3ff593=[],_0x58e6ec=new Map();for(const _0x4ac1d0 of _0x2465a6['model']['document']['getRootNames']()){const _0x4913d3=_0x2465a6['editing']['view']['getDomRoot'](_0x4ac1d0)['getClientRects']()['item'](0x0);_0x3ff593['push'](_0x4ac1d0),_0x58e6ec['set'](_0x4ac1d0,_0x4913d3);}return _0x3ff593['sort']((_0x4b388f,_0x788dc0)=>{const _0x4c236f=_0x58e6ec['get'](_0x4b388f),_0x2e2922=_0x58e6ec['get'](_0x788dc0);return _0x4c236f['y']-_0x2e2922['y']||_0x4c236f['x']-_0x2e2922['x'];}),_0x3ff593;}}class Cn extends _0x415703{static get['requires'](){return[pn,_0x106427];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xee8436){super(_0xee8436),_0xee8436['commands']['add']('previewFinalContent',new kn(this['editor'])),_0xee8436['config']['define']('trackChanges.preview.renderFunction',(_0x4a7933,_0x398d86)=>{for(const _0x5f4cd9 of _0x398d86)_0x4a7933['appendChild'](_0x5f4cd9);});}}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 _0x153246,Plugin as _0x4a3826,PendingActions as _0x667652}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0x4551a9,Annotations as _0x2cf822,EditorAnnotations as _0x2a0fbe,Comments as _0x54bb3d}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0x3800a1,ObservableMixin as _0x4582eb,uid as _0x15ca27,priorities as _0x3cf629,insertToPriorityArray as _0x3cc95d,logWarning as _0x3947bb,getEnvKeystrokeText as _0x3d8a09,FocusTracker as _0x185cee,KeystrokeHandler as _0x160fe5,Collection as _0x361311}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x1f783a,IconCancel as _0x5388f,IconTrackChanges as _0x304c98}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x191951,View as _0x4aba25,ViewCollection as _0x29597e,FocusCycler as _0x418e2b,UIModel as _0x5c6bce,createDropdown as _0x34283a,SplitButtonView as _0x4dd119,addListToDropdown as _0x258fd4,MenuBarMenuView as _0xf70dcc,MenuBarMenuListView as _0x534bac,ListSeparatorView as _0x5ee576,MenuBarMenuListItemView as _0x4c4846,MenuBarMenuListItemButtonView as _0x32f6de,BodyCollection as _0x565982,Dialog as _0x2841a9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x475a96,SuggestionsConversion as _0x16b695,Users as _0x218a55,DocumentCompare as _0xed69f8,fixElementSuggestionRange as _0x699eae,hashObject as _0x21f52c,surroundingMarkersDetector as _0x4a098b,FOCUS_ANNOTATION_KEYSTROKE as _0x19606d,AriaDescriptionView as _0x54fb01,setupThreadKeyboardNavigation as _0x2f0355,trimHtml as _0x433d71,UserView as _0x35731a,LateFocusButtonView as _0x5a04b9,getDateTimeFormatter as _0x3a327e,getAllMarkersDomElementsSorted as _0x1cc54b,sanitizeEditorConfig as _0x243ea7}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x22b33b,ModelLiveRange as _0x4f8349,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 _0x153246{['_enabledCommands'];constructor(_0x2b495d,_0x231b38){super(_0x2b495d),this['_enabledCommands']=_0x231b38,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 _0xf8a9f5 of this['editor']['commands']['commands']())_0xf8a9f5['affectsData']&&!this['_enabledCommands']['has'](_0xf8a9f5)&&_0xf8a9f5['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x6eb7f8 of this['editor']['commands']['commands']())_0x6eb7f8['affectsData']&&!this['_enabledCommands']['has'](_0x6eb7f8)&&_0x6eb7f8['clearForceDisabled']('TrackChangesCommand');}}class dt extends _0x153246{['_suggestions'];constructor(_0x27b450,_0x4f03b3){super(_0x27b450),this['_suggestions']=_0x4f03b3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1236b5){const _0x1cf8eb=this['_suggestions']['get'](_0x1236b5);if(!_0x1cf8eb)throw new _0x3800a1('track-changes-accept-suggestion-not-found',this);const _0x45d6bc=_0x1cf8eb['getRanges']();this['editor']['model']['canEditAt'](_0x45d6bc)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1cf8eb);}}class ft extends _0x153246{['_suggestions'];constructor(_0x2c840c,_0x286bbf){super(_0x2c840c),this['_suggestions']=_0x286bbf,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x445b33){const _0x56594f=this['_suggestions']['get'](_0x445b33);if(!_0x56594f)throw new _0x3800a1('track-changes-discard-suggestion-not-found',this);const _0x3ed143=_0x56594f['getRanges']();this['editor']['model']['canEditAt'](_0x3ed143)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x56594f);}}function gt(_0x4fd20c,_0x132c8a){let _0x536849='';return _0x536849+=_0x4fd20c['split']('*')['map']((_0x16b372,_0x3ee541)=>_0x3ee541%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+mt(_0x16b372)+'</span>':mt(_0x16b372))['join'](''),_0x132c8a&&(_0x536849+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x132c8a['value']+'\x22\x20title=\x22'+_0x132c8a['title']+'\x22></span>'),_0x536849;}function mt(_0x489ff7){const _0x317005=document['createElement']('span');return _0x317005['innerText']=_0x489ff7,_0x317005['innerHTML'];}function Et(_0xb46c42){return _0xb46c42['sort']((_0x5e6fc0,_0xb3baf3)=>'attribute'===_0x5e6fc0['type']&&'attribute'!==_0xb3baf3['type']?-0x1:'attribute'!==_0x5e6fc0['type']&&'attribute'===_0xb3baf3['type']?0x1:'deletion'==_0x5e6fc0['type']&&'deletion'!=_0xb3baf3['type']?-0x1:'deletion'!=_0x5e6fc0['type']&&'deletion'==_0xb3baf3['type']?0x1:0x0);}function Tt(_0x35f967,_0xa0b827){let _0x4c45cb,_0x7b2cd2=0x0;const _0x4d47ca=[],_0x59c3a6=_0xa0b827['schema'];for(;_0x7b2cd2<_0x35f967['length'];){const _0x1a29d4=_0x35f967[_0x7b2cd2],_0x7ccf6c=_0x35f967[_0x7b2cd2+0x1];_0x4c45cb||(_0x4c45cb=_0xa0b827['createPositionBefore'](_0x1a29d4)),_t(_0xa0b827,_0x1a29d4,_0x7ccf6c)||(_0x4d47ca['push'](_0xa0b827['createRange'](_0x4c45cb,_0x59c3a6['isObject'](_0x1a29d4)?_0xa0b827['createPositionAfter'](_0x1a29d4):_0xa0b827['createPositionAt'](_0x1a29d4,'end'))),_0x4c45cb=null),_0x7b2cd2++;}return _0x4d47ca;}function _t(_0x431540,_0x50eef4,_0x18e74d){if(!_0x18e74d)return!0x1;const _0x1b1d78=_0x431540['createPositionAfter'](_0x50eef4),_0x123cfb=_0x431540['createPositionBefore'](_0x18e74d);return _0x1b1d78['isTouching'](_0x123cfb);}function pt(_0x1a44a5,_0x128c62,_0x5e11d7){for(;_0x5e11d7['length'];){const _0x5ade3b=_0x5e11d7['splice'](0x0,0x64);_0x1a44a5['change'](()=>{for(const _0x258c06 of _0x5ade3b)_0x258c06['isInContent']&&_0x128c62['execute'](_0x258c06['id']);});}}class Lt extends _0x153246{['_command'];['_suggestions'];constructor(_0x5e519c,_0x2d2137,_0x23a259){super(_0x5e519c),this['_command']=_0x2d2137,this['_suggestions']=_0x23a259,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3fd561=Array['from'](this['_suggestions']['values']())['some'](_0x367c6c=>_0x367c6c['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3fd561;}['execute'](){const _0x308a31=Et(Array['from'](this['_suggestions']['values']()));for(const _0x1a7a9c of _0x308a31){const _0x42ecde=_0x1a7a9c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x42ecde))return;}pt(this['editor']['model'],this['_command'],_0x308a31);}}class It extends _0x153246{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x243507,_0x566592,_0x20c8c1){super(_0x243507),this['_command']=_0x566592,this['_suggestions']=_0x20c8c1,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3405f6=this['editor']['model']['document']['selection'],_0x4dfd30=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x12186f,_0x22b818){const _0x4ea3a8=Array['from'](_0x12186f['getRanges']()),_0x19b115=new Set();for(const _0x4dc17a of _0x22b818)if(_0x4dc17a['isInContent']){for(const _0x139ff1 of _0x4ea3a8)for(const _0x149938 of _0x4dc17a['getRanges']())(_0x139ff1['isIntersecting'](_0x149938)||_0x12186f['isCollapsed']&&!_0x4dc17a['isMultiRange']&&_0x4dc17a['next']&&_0x149938['end']['isTouching'](_0x139ff1['start']))&&_0x19b115['add'](_0x4dc17a);}return _0x19b115;}(_0x3405f6,_0x4dfd30),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5a164f=Et(Array['from'](this['_selectedSuggestions']));for(const _0x160a41 of _0x5a164f){const _0x4ae1bc=_0x160a41['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4ae1bc))return;}pt(this['editor']['model'],this['_command'],_0x5a164f);}}class bt extends/* #__PURE__ -- @preserve */
24
+ _0x4582eb(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3022c6,_0x4a328){super(),this['id']=_0x4a328['id'],this['type']=_0x4a328['type'],this['subType']=_0x4a328['subType']||null,this['author']=_0x4a328['author'],this['creator']=_0x4a328['creator']||_0x4a328['author'],this['isExternal']=Boolean(_0x4a328['attributes']&&_0x4a328['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x4a328['originalSuggestionId']||null,this['_model']=_0x3022c6,this['_onAccept']=_0x4a328['onAccept'],this['_onDiscard']=_0x4a328['onDiscard'],this['_onAttributesChange']=_0x4a328['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4a328['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 _0x1fe9ed=this;for(;_0x1fe9ed['previous'];)_0x1fe9ed=_0x1fe9ed['previous'];return _0x1fe9ed;}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'](_0x5f456a){this['_markerNames']['add'](_0x5f456a);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x95b2c7=>this['_model']['markers']['get'](_0x95b2c7))['filter'](_0x1bdc21=>_0x1bdc21);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x45206c=>{for(const _0x527104 of this['getMarkers']())_0x45206c['removeMarker'](_0x527104);}),this['_markerNames']['clear']();}['removeMarker'](_0x3c89e4){this['_model']['change'](_0x4494b2=>{_0x4494b2['removeMarker'](_0x3c89e4);}),this['_markerNames']['delete'](_0x3c89e4);}['addRange'](_0x205037){const _0x1879a2='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+bt['getMultiRangeId']();this['addMarkerName'](_0x1879a2),this['_model']['change'](_0x30fbd8=>{_0x30fbd8['addMarker'](_0x1879a2,{'range':_0x205037,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5b5a73){for(const _0xbaa526 of this['getRanges']())if(_0xbaa526['isIntersecting'](_0x5b5a73))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x49f8e2=>_0x49f8e2['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1158e7,_0x512db2)=>[..._0x1158e7,..._0x512db2['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x55db20=this['getRanges']();if(0x1!=_0x55db20['length'])return null;const _0xebc139=_0x55db20[0x0],_0x55fda9=_0xebc139['start']['nodeAfter'],_0x526b58=_0xebc139['end']['nodeBefore'];return _0x55fda9 instanceof _0x22b33b?_0x55fda9!=_0x526b58?null:_0x55fda9: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 _0x14c491=[];let _0x3c3123=this['head'];for(;_0x3c3123;)_0x14c491['push'](_0x3c3123),_0x3c3123=_0x3c3123['next'];return _0x14c491;}['setAttribute'](_0x2ba326,_0x2d14cb){const _0x43e306=nt(this['attributes']);it(_0x43e306,_0x2ba326,_0x2d14cb),st(_0x43e306,this['attributes'])||(this['attributes']=_0x43e306,this['_onAttributesChange'](_0x43e306));}['removeAttribute'](_0x48764b){const _0x1d1314=nt(this['attributes']);rt(_0x1d1314,_0x48764b),st(_0x1d1314,this['attributes'])||(this['attributes']=_0x1d1314,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 _0x15ca27()['substr'](0x1,0x5);}}function At(_0x15e624,_0x4a2380,_0x56878d){const _0x5353ab=_0x15e624['t'],t=_0x15e624['t'];switch(_0x4a2380){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',_0x56878d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x56878d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x56878d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x56878d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x56878d);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',_0x56878d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x56878d);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',_0x56878d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x56878d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x56878d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x56878d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x56878d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x56878d);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x56878d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x56878d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x56878d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x56878d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x56878d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x56878d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x56878d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x56878d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x56878d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x56878d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x56878d);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x56878d);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'},_0x56878d);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x56878d);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x56878d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x56878d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x56878d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x56878d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x56878d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x56878d);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'},_0x56878d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x56878d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x56878d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x56878d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x56878d);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'},_0x56878d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x56878d);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'},_0x56878d);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'},_0x56878d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x56878d);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'},_0x56878d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x56878d);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'},_0x56878d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x56878d);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x56878d);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x56878d);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x56878d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x56878d);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'},_0x56878d);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x56878d);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 _0x5353ab({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x56878d);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5353ab({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x56878d);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x56878d);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'},_0x56878d);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'},_0x56878d);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'},_0x56878d);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4a2380;}}class kt{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xbab749,_0x45a079){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xbab749,this['_locale']=_0x45a079;}['getDescriptions'](_0x4f882e){const _0x5eac3a=[],_0x537d8f=new Set(),_0x49294d=new Set();for(let _0xb3590c=0x0;_0xb3590c<_0x4f882e['length'];_0xb3590c++){const _0x275931=_0x4f882e[_0xb3590c];if(!_0x275931['isInContent'])continue;const _0xacb45a=this['_handleCustomCallbackDescription'](_0x275931);if(_0xacb45a){if(null!=_0x275931['subType']){if(_0x537d8f['has'](_0x275931['subType']))continue;_0x537d8f['add'](_0x275931['subType']);}_0x5eac3a['push'](_0xacb45a);}else{if('attribute'==_0x275931['type']){const _0x2050a0=_0x275931['data']['key'];if(_0x49294d['has'](_0x2050a0))continue;_0x49294d['add'](_0x275931['data']['key']),_0x2050a0==Ke?this['_handleRenameSuggestionDescription'](_0x5eac3a,_0x275931):this['_handleAttributeSuggestionDescription'](_0x5eac3a,_0x275931);continue;}'insertion'!=_0x275931['type']&&'deletion'!=_0x275931['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5eac3a,_0x275931,_0x4f882e[_0xb3590c+0x1]);}}return this['_resolveDescriptionItems'](_0x5eac3a);}['registerDescriptionCallback'](_0x254d17){this['_customCallbacks']['push'](_0x254d17);}['registerElementLabel'](_0x276eba,_0x2ff2f8,_0x2b72e6=_0x3cf629['normal']){'function'==typeof _0x276eba?_0x3cc95d(this['_itemLabelsCallbacks'],{'matchingCallback':_0x276eba,'label':_0x2ff2f8,'priority':_0x2b72e6}):this['_itemLabels']['set'](_0x276eba,_0x2ff2f8);}['registerAttributeLabel'](_0x80a62b,_0x944616){this['_attributeLabels']['set'](_0x80a62b,_0x944616);}['getItemLabel'](_0x8084f0,_0x301019=0x1){let _0x3b5af9;for(const _0x1ae830 of this['_itemLabelsCallbacks'])if(_0x1ae830['matchingCallback'](_0x8084f0)){_0x3b5af9=_0x1ae830['label'];break;}return _0x3b5af9||(_0x3b5af9=this['_itemLabels']['get'](_0x8084f0['name'])),_0x3b5af9?_0x3b5af9(_0x301019):0x1!==_0x301019?_0x301019+'\x20'+_0x8084f0['name']+'s':''+_0x8084f0['name'];}['_addDescriptionItems'](_0x173ca7,_0x164dda){const _0x18f8ee=_0x164dda['getFirstRange']()['getWalker'](),_0x435949='insertion'==_0x164dda['type']?'add':'remove';for(const _0x4a19b1 of _0x18f8ee){const _0x169d0c=_0x4a19b1['item'],_0x5b2ef2=_0x173ca7[_0x173ca7['length']-0x1];if(_0x169d0c['is']('$textProxy'))_0x5b2ef2&&_0x5b2ef2['type']['indexOf']('Container')>-0x1&&_0x173ca7['pop'](),_0x5b2ef2&&'text'==_0x5b2ef2['type']?_0x5b2ef2[_0x435949]+=_0x169d0c['data']:_0x173ca7['push']({'type':'text','add':'add'==_0x435949?_0x169d0c['data']:'','remove':'remove'==_0x435949?_0x169d0c['data']:''});else{if(this['_schema']['isObject'](_0x169d0c)){const _0x44a0d2=_0x169d0c;if(_0x5b2ef2&&_0x5b2ef2['type']['indexOf']('Container')>-0x1&&_0x173ca7['pop'](),'elementEnd'==_0x4a19b1['type'])continue;_0x5b2ef2&&_0x5b2ef2['type']==_0x435949+'Object'&&_0x5b2ef2['element']['name']==_0x44a0d2['name']?_0x5b2ef2['quantity']++:_0x173ca7['push']({'type':_0x435949+'Object','element':_0x44a0d2,'quantity':0x1}),_0x18f8ee['skip'](_0x5593b4=>!('elementEnd'==_0x5593b4['type']&&_0x5593b4['item']==_0x169d0c));}else{if(this['_schema']['checkChild'](_0x169d0c,'$text')||_0x169d0c['is']('element','softBreak')){const _0xf72e63=_0x169d0c;if('add'==_0x435949&&'elementStart'==_0x4a19b1['type']||'remove'==_0x435949&&'elementEnd'==_0x4a19b1['type'])continue;if(_0x5b2ef2&&-0x1==_0x5b2ef2['type']['indexOf']('Container')){'text'==_0x5b2ef2['type']&&(_0x5b2ef2[_0x435949]+='\x0a');continue;}let _0x5b79d3;if(_0x5b79d3='add'==_0x435949?_0xf72e63['nextSibling']&&!this['_schema']['isObject'](_0xf72e63['nextSibling'])?_0xf72e63['nextSibling']:null:_0xf72e63['previousSibling']&&!this['_schema']['isObject'](_0xf72e63['previousSibling'])?_0xf72e63['previousSibling']:null,_0xf72e63['isEmpty']||_0x5b79d3&&_0x5b79d3['isEmpty']){const _0x151da0=_0x5b79d3&&_0x5b79d3['isEmpty']?_0x5b79d3:_0xf72e63;_0x5b2ef2&&_0x5b2ef2['type']==_0x435949+'EmptyContainer'&&_0x5b2ef2['element']['name']==_0x151da0['name']?_0x5b2ef2['quantity']++:_0x173ca7['push']({'type':_0x435949+'EmptyContainer','element':_0x151da0,'quantity':0x1});}else _0x173ca7['push']({'type':_0x435949+'Container','element':_0xf72e63});}}}}}['_resolveDescriptionItems'](_0x1a6e32){const _0x14e062=this['_locale'],_0x427578=[],_0x293803=[],_0x270da4=[];for(const _0x504e27 of _0x1a6e32)switch(_0x504e27['type']){case'text':if(_0x504e27['add']=_0x504e27['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x504e27['remove']=_0x504e27['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x504e27['add']&&''!=_0x504e27['remove']){_0x427578['push']({'type':'replace','content':At(_0x14e062,'REPLACE_TEXT',['\x22'+_0x504e27['remove']+'\x22','\x22'+_0x504e27['add']+'\x22'])});continue;}if(null!=_0x504e27['add']['match'](/^ +$/)){_0x427578['push']({'type':'insertion','content':At(_0x14e062,'*Insert:*\x20%0',At(_0x14e062,'ELEMENT_SPACE',_0x504e27['add']['length']))});continue;}if(null!=_0x504e27['remove']['match'](/^ +$/)){_0x427578['push']({'type':'deletion','content':At(_0x14e062,'*Remove:*\x20%0',At(_0x14e062,'ELEMENT_SPACE',_0x504e27['remove']['length']))});continue;}if(''!=_0x504e27['add']){_0x427578['push']({'type':'insertion','content':At(_0x14e062,'*Insert:*\x20%0','\x22'+_0x504e27['add']+'\x22')});continue;}_0x427578['push']({'type':'deletion','content':At(_0x14e062,'*Remove:*\x20%0','\x22'+_0x504e27['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x427578['push']({'type':'insertion','content':At(_0x14e062,'*Insert:*\x20%0',this['getItemLabel'](_0x504e27['element'],_0x504e27['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x427578['push']({'type':'deletion','content':At(_0x14e062,'*Remove:*\x20%0',this['getItemLabel'](_0x504e27['element'],_0x504e27['quantity']))});continue;case'addContainer':_0x427578['push']({'type':'insertion','content':At(_0x14e062,'*Split:*\x20%0',this['getItemLabel'](_0x504e27['element'],_0x504e27['quantity']))});continue;case'removeContainer':_0x427578['push']({'type':'deletion','content':At(_0x14e062,'*Merge:*\x20%0',this['getItemLabel'](_0x504e27['element'],_0x504e27['quantity']))});continue;case'addFormat':_0x293803['push'](_0x504e27['key']);continue;case'removeFormat':_0x270da4['push'](_0x504e27['key']);continue;default:_0x427578['push'](_0x504e27);}if(_0x293803['length']){const _0x455155=_0x293803['map'](_0x33c34d=>this['_attributeLabels']['has'](_0x33c34d)?this['_attributeLabels']['get'](_0x33c34d):_0x33c34d)['join'](',\x20');_0x427578['push']({'type':'format','content':At(this['_locale'],'*Set\x20format:*\x20%0',_0x455155)});}if(_0x270da4['length']){const _0xc7d854=_0x270da4['map'](_0x328500=>this['_attributeLabels']['has'](_0x328500)?this['_attributeLabels']['get'](_0x328500):_0x328500)['join'](',\x20');_0x427578['push']({'type':'format','content':At(this['_locale'],'*Remove\x20format:*\x20%0',_0xc7d854)});}return _0x427578;}['_handleCustomCallbackDescription'](_0x5cca5b){for(const _0x1ed702 of this['_customCallbacks']){const _0x1976ac=_0x1ed702(_0x5cca5b);if(_0x1976ac&&'type'in _0x1976ac)return _0x1976ac;}}['_handleAttributeSuggestionDescription'](_0x102250,_0x5a9565){const _0x121fd4=_0x5a9565['data'],_0x49b9f5=void 0x0===_0x121fd4['newValue']?'removeFormat':'addFormat';_0x102250['push']({'type':_0x49b9f5,'key':_0x121fd4['key']});}['_handleRenameSuggestionDescription'](_0x33c8d9,_0x4dabae){_0x33c8d9['push']({'type':'format','content':At(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4dabae['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x236277,_0x2be2f4,_0x7b3746){if(this['_addDescriptionItems'](_0x236277,_0x2be2f4),_0x7b3746&&_0x7b3746['getFirstRange']()&&!_0x2be2f4['getFirstRange']()['end']['isEqual'](_0x7b3746['getFirstRange']()['start'])){const _0x479f0d=_0x236277[_0x236277['length']-0x1],_0x343a6b='insertion'==_0x2be2f4['type']?'add':'remove';_0x479f0d&&'text'==_0x479f0d['type']&&(_0x479f0d[_0x343a6b]+='\x0a');}}}class Ct extends _0x4a3826{['afterInit'](){const _0x2d2d59=this['editor'],_0x4d5cdd=_0x2d2d59['plugins']['get']('TrackChangesEditing');_0x2d2d59['commands']['get']('showAIAssistant')&&_0x4d5cdd['enableCommand']('showAIAssistant');}}class yt extends _0x4a3826{['afterInit'](){const _0x14963e=this['editor'],_0x1309c6=_0x14963e['plugins']['get']('TrackChangesEditing');_0x14963e['commands']['get']('toggleAi')&&_0x1309c6['enableCommand']('toggleAi');}}class Nt extends _0x4a3826{['afterInit'](){const _0x37e7c4=this['editor'],_0x54f77e=_0x37e7c4['plugins']['get']('TrackChangesEditing');_0x37e7c4['commands']['get']('aiQuickAction')&&_0x54f77e['enableCommand']('aiQuickAction');}}class Rt extends _0x4a3826{['afterInit'](){const _0x5d2cdc=this['editor'],_0x1583d6=_0x5d2cdc['locale'];if(!_0x5d2cdc['plugins']['has']('AlignmentEditing'))return;const _0x165fc1=_0x5d2cdc['plugins']['get']('TrackChangesEditing');_0x165fc1['enableDefaultAttributesIntegration']('alignment'),_0x165fc1['descriptionFactory']['registerAttributeLabel']('alignment',At(_0x1583d6,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b1b73=this['editor'],_0x2f38af=_0x1b1b73['locale'];_0x1b1b73['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x395182=>{if('formatBlock'!=_0x395182['type'])return;const {data:_0x14fc68}=_0x395182;if(_0x14fc68&&'alignment'==_0x14fc68['commandName']){const _0x458464=_0x14fc68['commandParams'][0x0]['value'];return{'type':'format','content':At(_0x2f38af,'*Format:*\x20%0',function(_0x24eaf2){switch(_0x24eaf2){case'left':return At(_0x2f38af,'FORMAT_ALIGN_TO_LEFT');case'right':return At(_0x2f38af,'FORMAT_ALIGN_TO_RIGHT');case'center':return At(_0x2f38af,'FORMAT_ALIGN_TO_CENTER');case'justify':return At(_0x2f38af,'FORMAT_JUSTIFY_TEXT');}}(_0x458464))};}});}}const St=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Mt extends _0x4a3826{['afterInit'](){const _0x91fa5c=this['editor'],_0x366ba7=_0x91fa5c['plugins']['get']('TrackChangesEditing'),_0x33c758=_0x91fa5c['locale'];for(const _0x19df80 of St){if(!_0x91fa5c['plugins']['has'](_0x19df80))continue;const _0x45908c=_0x19df80['slice'](0x0,-0x7)['toLowerCase'](),_0x5eb9fc='FORMAT_'+_0x45908c['toUpperCase']();_0x366ba7['enableDefaultAttributesIntegration'](_0x45908c),_0x366ba7['descriptionFactory']['registerAttributeLabel'](_0x45908c,At(_0x33c758,_0x5eb9fc));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51d842=this['editor'],_0x34707e=_0x51d842['locale'],_0x572d1e=_0x51d842['plugins']['get']('TrackChangesEditing');function _0x44c93b(_0x4fc317,_0x533f27){_0x572d1e['descriptionFactory']['registerDescriptionCallback'](_0x57e6b2=>{if('formatInline'!=_0x57e6b2['type'])return;const {data:_0x2695a7}=_0x57e6b2;return _0x2695a7&&_0x2695a7['commandName']===_0x4fc317?_0x2695a7['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x34707e,'*Format:*\x20%0',_0x533f27)}:{'type':'format','content':At(_0x34707e,'*Remove\x20format:*\x20%0',_0x533f27)}:void 0x0;});}_0x44c93b('bold',At(_0x34707e,'FORMAT_BOLD')),_0x44c93b('italic',At(_0x34707e,'FORMAT_ITALIC')),_0x44c93b('underline',At(_0x34707e,'FORMAT_UNDERLINE')),_0x44c93b('code',At(_0x34707e,'FORMAT_CODE')),_0x44c93b('strikethrough',At(_0x34707e,'FORMAT_STRIKETHROUGH')),_0x44c93b('subscript',At(_0x34707e,'FORMAT_SUBSCRIPT')),_0x44c93b('superscript',At(_0x34707e,'FORMAT_SUPERSCRIPT'));}}class Ot extends _0x4a3826{['afterInit'](){const _0x4b1869=this['editor'],_0x5f4805=_0x4b1869['locale'];if(!_0x4b1869['plugins']['has']('BlockQuoteEditing'))return;const _0x2c7b0b=_0x4b1869['plugins']['get']('TrackChangesEditing'),_0x1a6759=this['editor']['commands']['get']('blockQuote');_0x2c7b0b['enableCommand']('blockQuote',(_0x2380c5,_0x566238={})=>{const _0x25557e=this['editor']['model']['document']['selection'],_0x4782dd=_0x566238&&void 0x0!==_0x566238['forceValue']?_0x566238['forceValue']:!_0x1a6759['value'];let _0xab9d0c=[];if(_0x4782dd){const _0x381cc8=Array['from'](_0x25557e['getSelectedBlocks']())['filter'](_0x4e0d32=>wt(_0x4e0d32)||function(_0x3e9853,_0x3ce21d){const _0x40411f=_0x3ce21d['checkChild'](_0x3e9853['parent'],'blockQuote'),_0x450109=_0x3ce21d['checkChild'](['$root','blockQuote'],_0x3e9853);return _0x40411f&&_0x450109;}(_0x4e0d32,this['editor']['model']['schema']));_0xab9d0c=Tt(_0x381cc8,_0x4b1869['model']);}else{const _0x3b7d7e=Array['from'](_0x25557e['getSelectedBlocks']())['filter'](_0x86dabe=>wt(_0x86dabe));_0xab9d0c=Tt(_0x3b7d7e,_0x4b1869['model']);}_0x4b1869['model']['change'](()=>{for(const _0x15ff8d of _0xab9d0c)_0x2c7b0b['markBlockFormat'](_0x15ff8d,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4782dd}]});});}),_0x2c7b0b['descriptionFactory']['registerDescriptionCallback'](_0x49090e=>{const {data:_0x51cdc0}=_0x49090e;if(_0x51cdc0&&'blockQuote'==_0x51cdc0['commandName']){const _0x255145=At(_0x5f4805,'ELEMENT_BLOCK_QUOTE');return _0x51cdc0['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x5f4805,'*Set\x20format:*\x20%0',_0x255145)}:{'type':'format','content':At(_0x5f4805,'*Remove\x20format:*\x20%0',_0x255145)};}});}}function wt(_0x41e61e){return'blockQuote'==_0x41e61e['parent']['name'];}class Bt extends _0x4a3826{['afterInit'](){const _0x2aa888=this['editor'],_0x4ae64f=_0x2aa888['locale'],_0x403b0d=_0x2aa888['plugins']['get']('TrackChangesEditing');_0x2aa888['plugins']['has']('BookmarkEditing')&&(_0x403b0d['enableCommand']('insertBookmark'),_0x403b0d['enableDefaultAttributesIntegration']('updateBookmark'),_0x403b0d['descriptionFactory']['registerDescriptionCallback'](_0x323327=>{if('insertion'!=_0x323327['type']&&'deletion'!=_0x323327['type']&&'attribute'!=_0x323327['type'])return;const _0x4fc3a2=_0x323327['getContainedElement']();if(null==_0x4fc3a2)return;if(!_0x4fc3a2['is']('element','bookmark'))return;const _0x5f1db1=_0x4fc3a2['getAttribute']('bookmarkId');if('insertion'==_0x323327['type'])return{'type':'insertion','content':At(_0x4ae64f,'*Insert:*\x20%0','\x22'+_0x5f1db1+'\x22\x20'+At(_0x4ae64f,'ELEMENT_BOOKMARK'))};if('deletion'==_0x323327['type'])return{'type':'deletion','content':At(_0x4ae64f,'*Remove:*\x20%0','\x22'+_0x5f1db1+'\x22\x20'+At(_0x4ae64f,'ELEMENT_BOOKMARK'))};const {data:_0x7b4431}=_0x323327;if(!_0x7b4431||'bookmarkId'!=_0x7b4431['key'])return;return{'type':'format','content':At(_0x4ae64f,'*Set\x20bookmark:*\x20%0','\x22'+_0x7b4431['newValue']+'\x22')};}));}}class Ft extends _0x4a3826{['afterInit'](){const _0x14e3a1=this['editor'];_0x14e3a1['plugins']['has']('CaseChange')&&(_0x14e3a1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x14e3a1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x14e3a1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class Dt extends _0x4a3826{['afterInit'](){const _0x2bde51=this['editor'];_0x2bde51['commands']['get']('ckbox')&&_0x2bde51['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class vt extends _0x4a3826{['afterInit'](){const _0xb6c60f=this['editor'];if(!_0xb6c60f['plugins']['has']('CodeBlock'))return;const _0x47b1c9=_0xb6c60f['plugins']['get']('TrackChangesEditing'),_0x1f9038=_0xb6c60f['locale'],_0x581526=_0xb6c60f['config']['get']('codeBlock')['languages'],_0x22ba5d=_0xb6c60f['commands']['get']('codeBlock');_0x47b1c9['enableCommand']('indentCodeBlock'),_0x47b1c9['enableCommand']('outdentCodeBlock'),_0x47b1c9['enableCommand']('codeBlock',(_0x47bf69,_0xb2a090={})=>{const _0x51d624=_0xb6c60f['model'],_0x45c93a=_0xb6c60f['model']['document']['selection'],_0x5f1084=_0xb2a090&&void 0x0!==_0xb2a090['forceValue']?_0xb2a090['forceValue']:!_0x22ba5d['value'];let _0x2f68e9;_0xb2a090['language']||(_0xb2a090['language']=_0x581526[0x0]['language']),_0x2f68e9=_0x5f1084?Array['from'](_0x45c93a['getSelectedBlocks']())['filter'](_0x36ea02=>xt(_0x36ea02)||function(_0x5b25fc,_0x25741){if(_0x5b25fc['is']('rootElement')||_0x25741['isLimit'](_0x5b25fc))return!0x1;return _0x25741['checkChild'](_0x5b25fc['parent'],'codeBlock');}(_0x36ea02,_0x51d624['schema'])):Array['from'](_0x45c93a['getSelectedBlocks']())['filter'](_0x489d7c=>xt(_0x489d7c));const _0x54c163=Tt(_0x2f68e9,_0x51d624);_0x51d624['change'](()=>{for(const _0x3b7ef9 of _0x54c163)_0x47b1c9['markBlockFormat'](_0x3b7ef9,{'commandName':'codeBlock','commandParams':[{..._0xb2a090,'forceValue':_0x5f1084}],'formatGroupId':'blockName'});});}),(_0x47b1c9['descriptionFactory']['registerElementLabel']('codeBlock',_0x21cfc8=>At(_0x1f9038,'ELEMENT_CODE_BLOCK',_0x21cfc8)),_0x47b1c9['descriptionFactory']['registerDescriptionCallback'](_0x253af4=>{if('formatBlock'!=_0x253af4['type'])return;const _0x2026ec=_0x1f9038['t'],{data:_0x588532}=_0x253af4;if(!_0x588532||'codeBlock'!=_0x588532['commandName'])return;const _0x46f046=_0x588532['commandParams'][0x0]['language'],_0x288463=_0x2026ec(_0x581526['find'](_0x17b264=>_0x17b264['language']===_0x46f046)['label'])['toLowerCase']();return _0x588532['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x1f9038,'*Set\x20format:*\x20%0',At(_0x1f9038,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x288463+')')}:{'type':'format','content':At(_0x1f9038,'*Remove\x20format:*\x20%0',At(_0x1f9038,'ELEMENT_CODE_BLOCK',0x1))};}));}}function xt(_0x41e7e7){return'codeBlock'==_0x41e7e7['name'];}class Pt extends _0x4a3826{['afterInit'](){const _0x523974=this['editor'];if(!_0x523974['plugins']['has']('CommentsEditing'))return;_0x523974['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Ut extends _0x4a3826{static get['requires'](){return[at];}['init'](){const _0x22928a=this['editor'],_0x567697=_0x22928a['plugins']['get']('TrackChangesEditing');_0x567697['enableCommand']('delete');const _0x5bda76=_0x22928a['commands']['get']('deleteForward');_0x567697['enableCommand']('deleteForward',(_0x18b911,_0x4421e7={})=>{const _0x1ea39e=_0x22928a['model']['createSelection'](_0x22928a['model']['document']['selection']);_0x1ea39e['isCollapsed']&&_0x22928a['model']['modifySelection'](_0x1ea39e,{'direction':'forward','unit':_0x4421e7['unit']});const _0x571851=_0x1ea39e['getFirstRange'](),_0x138092=_0x4f8349['fromRange'](_0x571851);let _0x30bac0;_0x18b911(_0x4421e7),_0x30bac0='$graveyard'==_0x138092['root']['rootName']?_0x22928a['model']['createRange'](_0x571851['start']):_0x22928a['model']['createRange'](_0x138092['start'],_0x138092['end']),_0x138092['detach'](),_0x22928a['model']['enqueueChange'](_0x5bda76['buffer']['batch'],_0x3a32da=>{_0x5bda76['buffer']['lock'](),_0x3a32da['setSelection'](_0x3a32da['createRange'](_0x30bac0['end'])),_0x5bda76['buffer']['unlock']();});});}}class Gt extends _0x4a3826{['afterInit'](){const _0x1eec2d=this['editor'];if(!_0x1eec2d['plugins']['has']('ListEditing'))return;const _0x3e3248=_0x1eec2d['locale'],_0x4e4287=_0x1eec2d['plugins']['get']('TrackChangesEditing'),_0x46c6c1=_0x1eec2d['plugins']['has']('TodoListEditing'),_0xbf303e=!!_0x1eec2d['config']['get']('list.multiBlock');function _0x49476f(_0x34d67b){return{'type':'format','content':''+At(_0x3e3248,'*Set\x20format:*\x20%0',_0x34d67b)};}function _0x2986d3(_0x497f77){return{'type':'format','content':''+At(_0x3e3248,'*Remove\x20format:*\x20%0',_0x497f77)};}_0x4e4287['enableDefaultAttributesIntegration']('numberedList'),_0x4e4287['enableDefaultAttributesIntegration']('bulletedList'),_0x4e4287['enableDefaultAttributesIntegration']('customNumberedList'),_0x4e4287['enableDefaultAttributesIntegration']('customBulletedList'),_0x4e4287['enableDefaultAttributesIntegration']('indentList'),_0x4e4287['enableDefaultAttributesIntegration']('outdentList'),_0x4e4287['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4e4287['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xbf303e&&(_0x4e4287['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4e4287['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x46c6c1&&(_0x4e4287['enableDefaultAttributesIntegration']('todoList'),_0x4e4287['enableDefaultAttributesIntegration']('checkTodoList'),_0x4e4287['descriptionFactory']['registerDescriptionCallback'](_0x30b68c=>{const {data:_0xcf4c89}=_0x30b68c;if(_0xcf4c89&&'todoListChecked'==_0xcf4c89['key'])return{'type':'format','content':_0xcf4c89['newValue']?At(_0x3e3248,'*Check\x20item*'):At(_0x3e3248,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x42d3dc=>{if(_0x42d3dc['batch']['isUndo'])return!0x1;let _0x16051f=!0x1;const _0x5bca83=_0x4e4287['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7bd431=>'todoListChecked'===_0x4e4287['_getAttributeKey'](_0x7bd431));for(const _0x3cdd41 of _0x5bca83){'todo'!=_0x3cdd41['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4e4287['_findSuggestions'](_0x3cdd41['getFirstRange'](),'attribute')['find'](_0x23dde2=>'listType'===_0x4e4287['_getAttributeKey'](_0x23dde2['suggestion']))||(_0x42d3dc['removeMarker'](_0x3cdd41['getFirstMarker']()),_0x16051f=!0x0));}return _0x16051f;})),_0x4e4287['descriptionFactory']['registerAttributeLabel']('listIndent',At(_0x3e3248,'FORMAT_INDENT'));const _0x4b84c5={'type':'format','content':''};_0x4e4287['descriptionFactory']['registerDescriptionCallback'](_0x439aae=>{const {data:_0x32f567}=_0x439aae;if(!_0x32f567||'listType'!=_0x32f567['key'])return;let _0x20e89c=_0x439aae['head'];for(;_0x20e89c;){if(_0x20e89c['data']&&(('listStyle'==_0x20e89c['data']['key']||'listMarkerStyle'==_0x20e89c['data']['key'])&&(_0x20e89c['data']['newValue']&&'default'!=_0x20e89c['data']['newValue']||'default'!=_0x20e89c['data']['oldValue']&&!_0x32f567['newValue'])||!_0xbf303e&&_0x20e89c['data']['key']==Ke))return _0x4b84c5;_0x20e89c=_0x20e89c['next'];}if(null==_0x32f567['newValue'])switch(_0x32f567['oldValue']){case'bulleted':return _0x2986d3(At(_0x3e3248,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2986d3(At(_0x3e3248,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2986d3(At(_0x3e3248,'ELEMENT_TODO_LIST'));}switch(_0x32f567['newValue']){case'bulleted':return _0x49476f(At(_0x3e3248,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x49476f(At(_0x3e3248,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x49476f(At(_0x3e3248,'ELEMENT_TODO_LIST'));}}),_0x4e4287['descriptionFactory']['registerDescriptionCallback'](_0x1c86a0=>{const {data:_0x49a785}=_0x1c86a0;if(_0x49a785&&'listIndent'==_0x49a785['key'])return null==_0x49a785['newValue']||null==_0x49a785['oldValue']&&0x0==_0x49a785['newValue']?_0x4b84c5:void 0x0;}),_0x4e4287['descriptionFactory']['registerDescriptionCallback'](_0x31884e=>{if('attribute'!=_0x31884e['type'])return;const {data:_0x1365c3}=_0x31884e;if(!_0x1365c3||'listItemId'!=_0x1365c3['key'])return;const _0x3c2579=Ht(_0x31884e);return'newValue'==_0x3c2579?{'type':'format','content':At(_0x3e3248,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3c2579?{'type':'format','content':At(_0x3e3248,'*Split:*\x20list\x20item')}:_0x4b84c5;}),_0x1eec2d['model']['document']['registerPostFixer'](_0x58cd91=>this['listItemIdFixer'](_0x58cd91)),_0x1eec2d['model']['document']['registerPostFixer'](_0x40da7c=>this['noTrackChangesFixer'](_0x40da7c)),_0x1eec2d['model']['document']['on']('change:data',(_0x3390fe,_0x1a5e56)=>{if(_0x1a5e56['isUndo']||!_0x1a5e56['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3a9855){if(_0x3a9855['batch']['isUndo']||!_0x3a9855['batch']['isLocal'])return!0x1;let _0x3017ce=!0x1;const _0x123d65=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x53c3d6=>_0x53c3d6['data']&&'listItemId'==_0x53c3d6['data']['key'])['filter'](_0x23147a=>_0x23147a['data']['newValue']&&_0x23147a['data']['oldValue']);for(const _0x27e75 of _0x123d65)Ht(_0x27e75)||(_0x3a9855['removeMarker'](_0x27e75['getFirstMarker']()),_0x3017ce=!0x0);return _0x3017ce;}['noTrackChangesFixer'](_0x5ad9f3){if(_0x5ad9f3['batch']['isUndo']||!_0x5ad9f3['batch']['isLocal'])return!0x1;const _0x2ab0be=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2ab0be['trackChangesCommand']['value'])return!0x1;let _0x249db1=!0x1;const _0x53f03b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1d1806=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x543c16=>'attribute'==_0x543c16['type'])['filter'](_0x5a3065=>_0x53f03b['includes'](_0x5a3065['attributeKey']));if(0x0==_0x1d1806['length'])return _0x249db1;for(const _0x2b62da of _0x1d1806){const _0x32264e=_0x2ab0be['_findSuggestions'](_0x2b62da['range'],'attribute')['filter'](_0xfccf7a=>!_0xfccf7a['meta']['isNextTo'])['map'](_0x22e8dc=>_0x22e8dc['suggestion'])['filter'](_0x59c081=>{const _0x4a1d89=_0x2ab0be['_getAttributeKey'](_0x59c081);return _0x53f03b['includes'](_0x4a1d89);});if(_0x32264e['length']){for(const _0x95e939 of _0x32264e)_0x5ad9f3['removeMarker'](_0x95e939['getFirstMarker']());_0x249db1=!0x0;}}return _0x249db1;}['assureChains'](){const _0x3419ec=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ce2c5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3ae7db;const _0x3bbd94=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x160218=>{if(_0x160218['data']['oldRange']||!_0x160218['data']['newRange'])return null;if(!_0x160218['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x59886}=_0x475a96(_0x160218['name']);if(!_0x3419ec['hasSuggestion'](_0x59886))return null;const _0x3dd43d=_0x3419ec['getSuggestion'](_0x59886);return _0x4ce2c5['includes'](_0x3dd43d['data']['key']);})['map'](_0x3ee966=>{const {id:_0x3db7cf}=_0x475a96(_0x3ee966['name']),_0x342b56=_0x3419ec['getSuggestion'](_0x3db7cf);return _0x3ae7db=_0x342b56['attributes']['groupId'],_0x342b56['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3bbd94['size'])return;const _0x522c7b=_0x3419ec['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x457af7=>'attribute'==_0x457af7['type']&&_0x457af7['data']&&_0x4ce2c5['includes'](_0x457af7['data']['key'])&&_0x457af7['attributes']['groupId']!=_0x3ae7db)['map'](_0x12d9b0=>({'listItem':_0x12d9b0['getFirstRange']()['start']['nodeAfter'],'groupId':_0x12d9b0['attributes']['groupId']})),_0x58ab42=new Set();for(const {groupId:_0x54ceb5,listItem:_0x2c134e}of _0x522c7b)_0x3bbd94['has'](_0x2c134e)&&_0x58ab42['add'](_0x54ceb5);for(const _0x3373c0 of _0x3419ec['getSuggestions']())_0x58ab42['has'](_0x3373c0['attributes']['groupId'])&&_0x3373c0['setAttribute']('groupId',_0x3ae7db);}['_supportLegacySuggestions'](){const _0x3db4ea=this['editor'],_0x1ae337=_0x3db4ea['locale'],_0x2595eb=_0x3db4ea['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2595eb['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x820893,_0x254bb6){const _0x1de5dd=[];for(let _0x24a110 of _0x820893)_0x24a110['start']['nodeAfter']===_0x24a110['end']['parent']&&(_0x24a110=_0x3db4ea['model']['createRange'](_0x3db4ea['model']['createPositionAt'](_0x24a110['start']['nodeAfter'],0x0))),_0x1de5dd['push'](_0x24a110);_0x3db4ea['model']['change'](_0x16d014=>{const _0x502718=_0x3db4ea['model']['document']['selection'],_0x25db00=Array['from'](_0x502718['getRanges']())['map'](_0x1340f=>_0x4f8349['fromRange'](_0x1340f));_0x16d014['setSelection'](_0x1de5dd),_0x3db4ea['commands']['get'](_0x254bb6['commandName'])['refresh'](),_0x254bb6['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3db4ea['execute'](_0x254bb6['commandName'],..._0x254bb6['commandParams']),_0x16d014['setSelection'](_0x25db00);for(const _0xe31cfb of _0x25db00)_0xe31cfb['detach']();});}),_0x2595eb['descriptionFactory']['registerElementLabel'](function(_0x5acea9){const _0x20f55a=!_0x3db4ea['model']['schema']['isObject'](_0x5acea9),_0x560fe4=_0x5acea9['previousSibling'],_0x178894=_0x5acea9['nextSibling'],_0x440257=_0x5acea9['getAttribute']('listItemId'),_0x6fcb3f=!_0x560fe4||_0x560fe4['getAttribute']('listItemId')!==_0x440257,_0x43b305=!_0x178894||_0x178894['getAttribute']('listItemId')!==_0x440257;return _0x20f55a&&Boolean(_0x440257)&&_0x6fcb3f&&_0x43b305;},_0x560302=>At(_0x1ae337,'ELEMENT_LIST_ITEM',_0x560302));}['_registerLegacyDescription'](){const _0x3da95a=this['editor'],_0x3a733c=_0x3da95a['locale'];function _0x485186(_0x33aeaa){const _0x243b21=_0x3da95a['commands']['get']('bulletedList')['value'],_0x350f5d=_0x3da95a['commands']['get']('numberedList')['value'];return'numberedList'===_0x33aeaa?_0x243b21:_0x350f5d;}_0x3da95a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x390f25){if('formatBlock'!=_0x390f25['type'])return;const {data:_0x30f350}=_0x390f25;if(!_0x30f350)return;let _0x1b7ac4,_0x21762e,_0x61451d,_0x1df028;switch(_0x30f350['commandName']){case'bulletedList':_0x61451d=_0x30f350['commandParams'][0x0]['forceValue'],_0x1df028=_0x485186(_0x30f350['commandName']),_0x1b7ac4=_0x61451d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1df028&&_0x3da95a['config']['get']('list.multiBlock')||(_0x1b7ac4='*Change\x20to:*\x20%0'),_0x21762e={'type':'format','content':At(_0x3a733c,_0x1b7ac4,At(_0x3a733c,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x61451d=_0x30f350['commandParams'][0x0]['forceValue'],_0x1df028=_0x485186(_0x30f350['commandName']),_0x1b7ac4=_0x61451d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1df028&&_0x3da95a['config']['get']('list.multiBlock')||(_0x1b7ac4='*Change\x20to:*\x20%0'),_0x21762e={'type':'format','content':At(_0x3a733c,_0x1b7ac4,At(_0x3a733c,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1b7ac4='*Indent:*\x20%0',_0x21762e={'type':'format','content':At(_0x3a733c,_0x1b7ac4,At(_0x3a733c,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1b7ac4=function(_0x224534){const _0x34e277=_0x224534['getFirstRange']();let _0xee2a1=_0x34e277['start']['nodeAfter'];for(;_0xee2a1&&_0x34e277['containsItem'](_0xee2a1);){if(_0xee2a1['getAttribute']('listIndent')>0x0)return!0x1;_0xee2a1=_0xee2a1['nextSibling'];}return!0x0;}(_0x390f25)?At(_0x3a733c,'*Format:*\x20remove\x20from\x20%0',At(_0x3a733c,function(_0x1f0d09){return'ELEMENT_'+_0x1f0d09['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x390f25))):At(_0x3a733c,'*Outdent:*\x20%0',At(_0x3a733c,'ELEMENT_LIST_ITEM')),_0x21762e={'type':'format','content':_0x1b7ac4};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x30f350['multipleBlocks']&&(_0x1b7ac4='*Merge:*\x20%0',_0x21762e={'type':'deletion','content':At(_0x3a733c,_0x1b7ac4,At(_0x3a733c,'ELEMENT_LIST_ITEM'))});}return _0x21762e;});}}function Ht(_0x1c740a){let _0x2e37ea=_0x1c740a['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2e37ea;){const _0x23bce9=_0x2e37ea['getAttribute']('listItemId');if(!_0x23bce9)return!0x1;if(_0x23bce9==_0x1c740a['data']['newValue'])return'newValue';if(_0x23bce9==_0x1c740a['data']['oldValue'])return'oldValue';_0x2e37ea=_0x2e37ea['previousSibling'];}return!0x1;}class $t extends _0x4a3826{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x575a26=this['editor']['config']['get']('list.properties'),_0x95c084=this['editor']['plugins']['get']('TrackChangesEditing');_0x575a26['styles']&&_0x95c084['enableDefaultAttributesIntegration']('listStyle'),_0x575a26['reversed']&&_0x95c084['enableDefaultAttributesIntegration']('listReversed'),_0x575a26['startIndex']&&_0x95c084['enableDefaultAttributesIntegration']('listStart');const _0x192778={'type':'format','content':''};_0x95c084['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xba9559=this['editor']['locale'];_0x95c084['descriptionFactory']['registerAttributeLabel']('listReversed',At(_0xba9559,'FORMAT_LIST_REVERSED')),_0x95c084['descriptionFactory']['registerDescriptionCallback'](_0x4346a5=>{const {data:_0x478e0c}=_0x4346a5;if(_0x478e0c&&'listReversed'==_0x478e0c['key'])return null==_0x478e0c['newValue']||0x0==_0x478e0c['newValue']&&null==_0x478e0c['oldValue']?_0x192778:void 0x0;}),_0x95c084['descriptionFactory']['registerAttributeLabel']('listStart',At(_0xba9559,'FORMAT_LIST_START')),_0x95c084['descriptionFactory']['registerDescriptionCallback'](_0x10a9a1=>{const {data:_0xb5a6fb}=_0x10a9a1;if(_0xb5a6fb&&'listStart'==_0xb5a6fb['key'])return null==_0xb5a6fb['newValue']||0x1==_0xb5a6fb['newValue']&&null==_0xb5a6fb['oldValue']?_0x192778:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x56744a=>{if(_0x56744a['batch']['isUndo'])return!0x1;let _0xed9513=!0x1;const _0x36c4f2=_0x95c084['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4ce9de=>{const _0x2bd1db=_0x95c084['_getAttributeKey'](_0x4ce9de);return'listStart'==_0x2bd1db||'listReversed'==_0x2bd1db;});for(const _0x25003e of _0x36c4f2){const _0x5dd926=_0x25003e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5dd926||'customNumbered'==_0x5dd926)continue;_0x95c084['_findSuggestions'](_0x25003e['getFirstRange'](),'attribute')['find'](_0x193897=>'listType'==_0x95c084['_getAttributeKey'](_0x193897['suggestion']))||(_0x56744a['removeMarker'](_0x25003e['getFirstMarker']()),_0xed9513=!0x0);}return _0xed9513;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x45b051){const _0x1dbbae=this['editor']['locale'],{data:_0x5656db}=_0x45b051,_0x2ddc61={'type':'format','content':''};if(!_0x5656db||'listStyle'!=_0x5656db['key'])return;if(!_0x5656db['oldValue'])return'default'==_0x5656db['newValue']?_0x2ddc61:{'type':'format','content':''+At(_0x1dbbae,'*Set\x20format:*\x20%0',At(_0x1dbbae,this['_getTranslationKeyForListStyle'](_0x5656db['newValue'])))};if(!_0x5656db['newValue']){if('default'==_0x5656db['oldValue'])return _0x2ddc61;let _0x2f52b7=_0x45b051['head'];for(;_0x2f52b7;){if(_0x2f52b7['data']&&'listType'==_0x2f52b7['data']['key']&&_0x2f52b7['data']['newValue'])return _0x2ddc61;_0x2f52b7=_0x2f52b7['next'];}return{'type':'format','content':''+At(_0x1dbbae,'*Remove\x20format:*\x20%0',At(_0x1dbbae,this['_getTranslationKeyForListStyle'](_0x5656db['oldValue'])))};}if('default'!=_0x5656db['newValue'])return{'type':'format','content':''+At(_0x1dbbae,'*Set\x20format:*\x20%0',At(_0x1dbbae,this['_getTranslationKeyForListStyle'](_0x5656db['newValue'])))};let _0x29ed95=_0x45b051['head'];for(;_0x29ed95;){if(_0x29ed95['data']&&'listType'==_0x29ed95['data']['key']&&_0x29ed95['data']['newValue']&&_0x29ed95['data']['oldValue'])return _0x2ddc61;_0x29ed95=_0x29ed95['next'];}return{'type':'format','content':At(_0x1dbbae,'*Set\x20format:*\x20%0',At(_0x1dbbae,'ELEMENT_'+_0x45b051['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x8d5ba2=this['editor'],_0x35a903=_0x8d5ba2['locale'];_0x8d5ba2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13c052=>{if('formatBlock'!=_0x13c052['type'])return;const {data:_0x321621}=_0x13c052;if(!_0x321621)return;let _0x35a134,_0x3bd1d5;switch(_0x321621['commandName']){case'listStyle':_0x35a134='*Change\x20to:*\x20%0',_0x3bd1d5={'type':'format','content':At(_0x35a903,_0x35a134,At(_0x35a903,this['_getTranslationKeyForListStyle'](_0x321621['commandParams'][0x0]['type'])))};break;case'listReversed':_0x35a134=_0x321621['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3bd1d5={'type':'format','content':At(_0x35a903,_0x35a134)};break;case'listStart':_0x35a134='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3bd1d5={'type':'format','content':At(_0x35a903,_0x35a134,_0x321621['commandParams'][0x0]['startIndex'])};}return _0x3bd1d5;});}['_getTranslationKeyForListStyle'](_0x20e276){return'ELEMENT_'+function(_0x149f88){if(Wt['includes'](_0x149f88))return'bulleted';if(Vt['includes'](_0x149f88))return'numbered';return null;}(_0x20e276)['toUpperCase']()+'_LIST_'+_0x20e276['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 _0x4a3826{['afterInit'](){const _0x851167=this['editor'];_0x851167['commands']['get']('emoji')&&_0x851167['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class zt extends _0x4a3826{static get['requires'](){return[lt];}['init'](){const _0x37d1a0=this['editor'],_0x41a7cb=_0x37d1a0['plugins']['get']('TrackChangesEditing'),_0x3e3414=_0x37d1a0['commands']['get']('enter');_0x41a7cb['enableCommand']('enter',()=>{_0x37d1a0['model']['change'](_0xad4b30=>{const _0x3f1e3e=_0x37d1a0['model']['document']['selection'],_0x1eaf5a=_0x3f1e3e['getFirstPosition'](),_0x767343=_0x4f8349['fromRange'](_0x3f1e3e['getFirstRange']());if(_0x3e3414['enterBlock'](_0xad4b30)){const _0x5130d8=_0x37d1a0['model']['createPositionAt'](_0x1eaf5a['parent']['nextSibling'],0x0),_0x2f412a=_0xad4b30['createRange'](_0x1eaf5a,_0x5130d8);_0x41a7cb['markInsertion'](_0x2f412a);}else _0xad4b30['setSelection'](_0xad4b30['createRange'](_0x767343['end']));_0x767343['detach'](),_0x3e3414['fire']('afterExecute',{'writer':_0xad4b30});});});}}class Kt extends _0x4a3826{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x98c3d6=this['editor']['plugins']['get']('TrackChangesEditing');_0x98c3d6['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x98c3d6['enableCommand']('findNext'),_0x98c3d6['enableCommand']('findPrevious'),_0x98c3d6['enableCommand']('replace'),_0x98c3d6['enableCommand']('replaceAll');}['handleFindCommand'](_0x2a3d10,_0x296371,_0x4bbbdb={}){const _0x318214=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2a3d10(_0x2f1b6d=>{let _0x169a72=('string'==typeof _0x296371?_0x318214['findByTextCallback'](_0x296371,_0x4bbbdb):_0x296371)(_0x2f1b6d);Array['isArray'](_0x169a72)&&(_0x169a72={'results':_0x169a72,'searchText':'string'==typeof _0x296371?_0x296371:''});const _0x57e3d6=_0x169a72['results']['filter'](_0x5bf6a9=>!0x1===this['_isInDeletionRange'](_0x5bf6a9,_0x2f1b6d['item']));return{..._0x169a72,'results':_0x57e3d6};},_0x4bbbdb);}['_isInDeletionRange'](_0x3227c1,_0x332d39){const _0x528150=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x332d39,_0x3227c1['start']),this['editor']['model']['createPositionAt'](_0x332d39,_0x3227c1['end']));for(const _0x530dc6 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x528150['getIntersection'](_0x530dc6['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 _0x4a3826{['afterInit'](){const _0x3a9e71=this['editor']['locale'],_0x39be74=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x54ec63,commandName:_0x3c6ddb}of Xt)this['editor']['plugins']['has'](_0x54ec63)&&_0x39be74['enableDefaultAttributesIntegration'](_0x3c6ddb);_0x39be74['descriptionFactory']['registerAttributeLabel']('fontSize',At(_0x3a9e71,'FORMAT_FONT_SIZE')),_0x39be74['descriptionFactory']['registerAttributeLabel']('fontFamily',At(_0x3a9e71,'FORMAT_FONT_FAMILY')),_0x39be74['descriptionFactory']['registerAttributeLabel']('fontColor',At(_0x3a9e71,'FORMAT_FONT_COLOR')),_0x39be74['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',At(_0x3a9e71,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32feaf=this['editor'],_0x2cc258=_0x32feaf['locale'];_0x32feaf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4106ae=>{const _0x1c72ef=_0x2cc258['t'];if('formatInline'!=_0x4106ae['type'])return;const {data:_0x2e4db5}=_0x4106ae;if(null!=_0x2e4db5){if('fontSize'==_0x2e4db5['commandName']){const _0x1e329e=_0x2e4db5['commandParams'][0x0]['value'];if(_0x1e329e){const _0x23c2ec=_0x1c72ef(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3dc6c6=>_0x3dc6c6['model']==_0x1e329e)['title'])['toLowerCase']();return{'type':'format','content':At(_0x2cc258,'*Set\x20font\x20size:*\x20%0',_0x23c2ec)};}return{'type':'format','content':At(_0x2cc258,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2e4db5['commandName']){const _0x47141f=_0x2e4db5['commandParams'][0x0]['value'];return _0x47141f?{'type':'format','content':At(_0x2cc258,'*Set\x20font\x20family:*\x20%0',_0x47141f)}:{'type':'format','content':At(_0x2cc258,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2e4db5['commandName']){const _0x1a7ea3=_0x2e4db5['commandParams'][0x0]['value'];if(_0x1a7ea3){const _0x59e5ba=_0x191951(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2a4c61=>_0x2a4c61['model']==_0x1a7ea3);let _0x27bff1=_0x1a7ea3,_0x11e39e='';return _0x59e5ba&&(_0x27bff1=_0x59e5ba['label'],_0x11e39e=_0x1c72ef(_0x27bff1)['toLowerCase']()),{'type':'format','content':At(_0x2cc258,'*Set\x20font\x20color:*\x20%0',_0x11e39e)['trim'](),'color':{'value':_0x1a7ea3,'title':_0x11e39e||_0x27bff1}};}return{'type':'format','content':At(_0x2cc258,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2e4db5['commandName']){const _0x1cc2fd=_0x2e4db5['commandParams'][0x0]['value'];if(_0x1cc2fd){const _0xae2fcf=_0x191951(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x144c5a=>_0x144c5a['model']==_0x1cc2fd);let _0x2c1ccd=_0x1cc2fd,_0x333909='';return _0xae2fcf&&(_0x2c1ccd=_0xae2fcf['label'],_0x333909=_0x1c72ef(_0x2c1ccd)['toLowerCase']()),{'type':'format','content':At(_0x2cc258,'*Set\x20font\x20background\x20color:*\x20%0',_0x333909)['trim'](),'color':{'value':_0x1cc2fd,'title':_0x333909||_0x2c1ccd}};}return{'type':'format','content':At(_0x2cc258,'*Reset\x20font\x20background\x20color*')};}}});}}class qt extends _0x4a3826{['afterInit'](){const {plugins:_0x54fa7b}=this['editor'];_0x54fa7b['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x54fa7b['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x218184,plugins:_0x2ff483,commands:_0x46b185}=this['editor'],_0x1119bf=_0x2ff483['get']('TrackChangesEditing');_0x46b185['get']('footnotesStyle')&&_0x1119bf['enableDefaultAttributesIntegration']('footnotesStyle'),_0x46b185['get']('footnotesStart')&&_0x1119bf['enableDefaultAttributesIntegration']('footnotesStart'),_0x1119bf['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',At(_0x218184,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x1119bf['descriptionFactory']['registerAttributeLabel']('footnotesListStart',At(_0x218184,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x30aefb=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x37a7b6,commands:_0x11a2f8}=this['editor'];_0x11a2f8['get']('insertFootnote')&&_0x30aefb['enableCommand']('insertFootnote'),_0x30aefb['descriptionFactory']['registerElementLabel']('footnoteRef',_0x40006c=>At(_0x37a7b6,'ELEMENT_FOOTNOTE_REF',_0x40006c)),_0x30aefb['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x53fec1=>At(_0x37a7b6,'ELEMENT_FOOTNOTE_DEFINITION',_0x53fec1)),_0x30aefb['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x399ec9=>At(_0x37a7b6,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x399ec9));}}class Qt extends _0x4a3826{['afterInit'](){const _0x39bfc3=this['editor'],_0x2206bc=_0x39bfc3['plugins']['get']('TrackChangesEditing'),_0x311b6f=_0x39bfc3['commands']['get']('copyFormat'),_0x3cd9b7=_0x39bfc3['commands']['get']('pasteFormat');_0x311b6f&&_0x3cd9b7&&(_0x2206bc['enableDefaultAttributesIntegration']('pasteFormat'),_0x2206bc['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x46a8c3=this['editor'],_0x3ad4cb=_0x46a8c3['locale'];_0x46a8c3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56f772=>{if('formatBlock'!=_0x56f772['type']&&'formatInline'!=_0x56f772['type'])return;const {data:_0x1974d5}=_0x56f772;if(_0x1974d5&&'pasteFormat'===_0x1974d5['commandName']){const _0x21913c=[],_0x3fed55=_0x1974d5['commandParams'][0x0];for(const [_0x3849ea,_0x35fe60]of Object['entries'](_0x3fed55))_0x21913c['push'](Zt(_0x46a8c3,_0x3849ea,_0x35fe60));return _0x21913c['length']?{'type':'format','content':At(_0x3ad4cb,'*Set\x20format\x20to:*\x20%0',_0x21913c['join'](',\x20'))}:{'type':'format','content':At(_0x3ad4cb,'*Remove\x20all\x20formatting*')};}});}}function Zt(_0x3a4e4e,_0x2bbbf6,_0x5dceb9){const _0x2ae9d6=_0x3a4e4e['locale']['t'],_0x4800a9=_0x2bbbf6['split'](/(?=[A-Z])/)['join']('\x20'),_0x4687d0=_0x2ae9d6(_0x4800a9['charAt'](0x0)['toUpperCase']()+_0x4800a9['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5dceb9)return _0x4687d0;if('fontColor'===_0x2bbbf6||'fontBackgroundColor'===_0x2bbbf6){const _0x57563c=_0x191951(_0x3a4e4e['config']['get']('fontColor.colors'))['find'](_0x5c7a76=>_0x5c7a76['model']==_0x5dceb9);return _0x4687d0+'\x20('+(_0x57563c?_0x2ae9d6(_0x57563c['label'])['toLowerCase']():_0x5dceb9)+')';}if('fontSize'===_0x2bbbf6&&isNaN(parseFloat(_0x5dceb9))){const _0x5242a5=_0x3a4e4e['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3a4e4e['config']['get']('fontSize.options'))['find'](_0x4697dd=>_0x4697dd['model']==_0x5dceb9);return _0x4687d0+'\x20('+(_0x5242a5?_0x2ae9d6(_0x5242a5['title'])['toLowerCase']():_0x5dceb9)+')';}return _0x4687d0+'\x20('+_0x5dceb9+')';}class Jt extends _0x4a3826{['_headingOptions'];['afterInit'](){const _0x320d66=this['editor'];if(!_0x320d66['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x320d66['config']['get']('heading.options');const _0x343b68=_0x320d66['locale'],_0x14ffbe=_0x320d66['plugins']['get']('TrackChangesEditing');_0x14ffbe['enableDefaultAttributesIntegration']('heading');for(const _0x504d82 of this['_headingOptions'])'paragraph'!=_0x504d82['model']&&_0x14ffbe['descriptionFactory']['registerElementLabel'](_0x504d82['model'],_0x51a7c2=>{const _0x13c44e=this['_getHeadingLevel'](_0x504d82['model']);return null!==_0x13c44e?_0x3751e0(_0x51a7c2,_0x13c44e):_0x966370(_0x51a7c2,_0x504d82['title']);});function _0x3751e0(_0x543526,_0x166a47){return At(_0x343b68,'ELEMENT_HEADING',[_0x543526,_0x166a47]);}function _0x966370(_0x559185,_0x55189c){return At(_0x343b68,'ELEMENT_HEADING_CUSTOM',[_0x559185,_0x55189c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5af739=this['editor'],_0x4d6d0c=_0x5af739['locale'];function _0x2b1a0c(_0xe5b7da,_0xe43999){return At(_0x4d6d0c,'ELEMENT_HEADING_CUSTOM',[_0xe5b7da,_0xe43999]);}_0x5af739['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d43e0=>{if('formatBlock'!=_0x2d43e0['type'])return;const {data:_0x56a15f}=_0x2d43e0;if(_0x56a15f&&'heading'==_0x56a15f['commandName']){const _0x4588f6=_0x56a15f['commandParams'][0x0]['value'],_0xbaca6c=this['_getHeadingLevel'](_0x4588f6);if(null!==_0xbaca6c)return{'type':'format','content':At(_0x4d6d0c,'*Change\x20to:*\x20%0',(_0x34e501=0x1,_0x3e4924=_0xbaca6c,At(_0x4d6d0c,'ELEMENT_HEADING',[_0x34e501,_0x3e4924])))};const _0x1ec93c=this['_headingOptions']['find'](_0x54e700=>_0x54e700['model']===_0x4588f6)['title'];return{'type':'format','content':At(_0x4d6d0c,'*Change\x20to:*\x20%0',_0x2b1a0c(0x1,_0x1ec93c))};}var _0x34e501,_0x3e4924;});}['_getHeadingLevel'](_0x7d8ff){const _0x474c56=_0x7d8ff['match'](/^heading(\d+)/);if(_0x474c56)return _0x474c56[0x1];const _0x57cb78=this['_headingOptions']?.['find'](_0x369bb5=>_0x369bb5['model']==_0x7d8ff);if(_0x57cb78&&_0x57cb78['view']){const _0x50144a=_0x57cb78['view'],_0x440724=(_0x50144a['name']??_0x50144a)['match'](/^h(\d+)/);if(_0x440724)return _0x440724[0x1];}return null;}}class te extends _0x4a3826{['afterInit'](){const _0xb9c350=this['editor'];if(!_0xb9c350['plugins']['has']('HighlightEditing'))return;const _0xc81176=_0xb9c350['plugins']['get']('TrackChangesEditing'),_0x1d844a=_0xb9c350['locale'];_0xc81176['enableDefaultAttributesIntegration']('highlight'),_0xc81176['descriptionFactory']['registerAttributeLabel']('highlight',At(_0x1d844a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b5171=this['editor'],_0xfd70bd=_0x1b5171['locale'];_0x1b5171['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x539dc5=>{if('formatInline'!=_0x539dc5['type'])return;const {data:_0xf45f73}=_0x539dc5;if(_0xf45f73&&'highlight'==_0xf45f73['commandName']){const _0x5d3959=_0xfd70bd['t'],_0x5cabd3=_0xf45f73['commandParams'][0x0]['value'];if(_0x5cabd3){const _0x3787ef=_0x1b5171['config']['get']('highlight.options')['find'](_0x1ffb56=>_0x1ffb56['model']==_0x5cabd3),_0x193cf4=_0x5d3959(_0x3787ef['title'])['toLowerCase']();return{'type':'format','content':At(_0xfd70bd,'*Set\x20highlight:*\x20%0',_0x193cf4),'color':{'value':_0x3787ef['color'],'title':_0x3787ef['title']}};}return{'type':'format','content':At(_0xfd70bd,'*Remove\x20highlight*',At(_0xfd70bd,'FORMAT_HIGHLIGHT'))};}});}}class ee extends _0x4a3826{['afterInit'](){const _0x200b28=this['editor'];if(!_0x200b28['plugins']['has']('HorizontalLineEditing'))return;_0x200b28['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4a1766=_0x200b28['plugins']['get']('TrackChangesEditing'),_0x540db8=_0x200b28['locale'];_0x4a1766['descriptionFactory']['registerElementLabel']('horizontalLine',_0x16f03a=>At(_0x540db8,'ELEMENT_HORIZONTAL_LINE',_0x16f03a));}}class ne extends _0x4a3826{['afterInit'](){const _0x7c0b85=this['editor'];if(!_0x7c0b85['plugins']['has']('HtmlEmbed'))return;const _0x5c86aa=_0x7c0b85['plugins']['get']('TrackChangesEditing'),_0x47a4fc=_0x7c0b85['locale'];_0x5c86aa['descriptionFactory']['registerElementLabel']('rawHtml',_0x1509ce=>At(_0x47a4fc,'ELEMENT_HTML_EMBED',_0x1509ce)),_0x5c86aa['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5c86aa['descriptionFactory']['registerDescriptionCallback'](_0x58c26f=>{if('attribute'!=_0x58c26f['type'])return;const {data:_0x2d052a}=_0x58c26f;if(_0x2d052a&&'value'==_0x2d052a['key']&&_0x58c26f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x393600=At(_0x47a4fc,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x47a4fc,'*Change\x20%0\x20content*',_0x393600)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2682d9=this['editor'],_0x2d50c6=_0x2682d9['locale'];_0x2682d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2056e9=>{if('formatBlock'!=_0x2056e9['type'])return;const {data:_0x9caca2}=_0x2056e9;if(_0x9caca2&&'htmlEmbed'==_0x9caca2['commandName']){const _0xf547a4=At(_0x2d50c6,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x2d50c6,'*Change\x20%0\x20content*',_0xf547a4)};}});}}class ie extends _0x4a3826{['afterInit'](){const _0x5228e4=this['editor'];if(!_0x5228e4['plugins']['has']('ImageEditing'))return;const _0x52e93f=_0x5228e4['plugins']['get']('TrackChangesEditing'),_0x8bfd48=_0x5228e4['plugins']['get']('ImageUtils'),_0x46e9ea=_0x5228e4['locale'];_0x52e93f['enableCommand']('insertImage'),_0x52e93f['descriptionFactory']['registerElementLabel']('imageBlock',_0x3246ff=>At(_0x46e9ea,'ELEMENT_IMAGE',_0x3246ff)),_0x52e93f['descriptionFactory']['registerElementLabel']('imageInline',_0x31befb=>At(_0x46e9ea,'ELEMENT_INLINE_IMAGE',_0x31befb)),_0x52e93f['descriptionFactory']['registerElementLabel']('caption',()=>At(_0x46e9ea,'ELEMENT_CAPTION')),_0x5228e4['plugins']['has']('ImageUploadEditing')&&_0x52e93f['enableCommand']('uploadImage'),_0x5228e4['plugins']['has']('ImageBlockEditing')&&_0x5228e4['plugins']['has']('ImageInlineEditing')&&(_0x52e93f['enableCommand']('imageTypeInline',(_0x274d27,_0x5bc4c2)=>{const _0x5632fa=_0x8bfd48['getClosestSelectedImageElement'](_0x5228e4['model']['document']['selection']);_0x5228e4['model']['change'](()=>{_0x52e93f['markBlockFormat'](_0x5632fa,{'commandName':'imageTypeInline','commandParams':[_0x5bc4c2]},[],'convertBlockImageToInline');});}),_0x52e93f['enableCommand']('imageTypeBlock',(_0x38848d,_0x599254)=>{_0x5228e4['model']['change'](_0x5ae11c=>{let _0x29d25c=_0x8bfd48['getClosestSelectedImageElement'](_0x5228e4['model']['document']['selection']),_0x1631a5=_0x5ae11c['createRangeOn'](_0x29d25c);const _0x1caf53=tt['fromPosition'](_0x1631a5['start'],'toPrevious'),_0x2e8442=tt['fromPosition'](_0x1631a5['end'],'toNext');_0x52e93f['forceDefaultExecution'](()=>_0x38848d(_0x599254)),_0x29d25c=_0x8bfd48['getClosestSelectedImageElement'](_0x5228e4['model']['document']['selection']),_0x1631a5=_0x5ae11c['createRangeOn'](_0x29d25c);const _0x1e1712=_0x5ae11c['createRange'](_0x1caf53,_0x2e8442);_0x1caf53['detach'](),_0x2e8442['detach'](),_0x52e93f['markBlockFormat'](_0x29d25c,{'commandName':'imageTypeInline','commandParams':[_0x599254]},[],'convertInlineImageToBlock'),_0x1e1712['start']['isBefore'](_0x1631a5['start'])&&_0x52e93f['markInsertion'](_0x5ae11c['createRange'](_0x1e1712['start'],_0x1631a5['start']),'convertInlineImageToBlock'),_0x1631a5['end']['isBefore'](_0x1e1712['end'])&&_0x52e93f['markInsertion'](_0x5ae11c['createRange'](_0x1631a5['end'],_0x1e1712['end']),'convertInlineImageToBlock');});}),_0x52e93f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x52e93f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x52e93f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x52e93f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x52e93f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x52e93f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1cd3f8])=>{const _0x595074=_0x52e93f['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xbcb53c=_0x1cd3f8['start'],_0x5474f3=_0x1cd3f8['end'];const _0x27b4b8=_0x5228e4['model']['schema']['getNearestSelectionRange'](_0xbcb53c,'backward'),_0x24bc06=_0x5228e4['model']['schema']['getNearestSelectionRange'](_0x5474f3,'forward');_0x27b4b8['isCollapsed']&&(_0xbcb53c=_0x27b4b8['start']),_0x24bc06['isCollapsed']&&(_0x5474f3=_0x24bc06['end']),_0x595074([_0x5228e4['model']['createRange'](_0xbcb53c,_0x5474f3)]);}),_0x52e93f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x57fe87),_0x52e93f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x57fe87)),_0x5228e4['plugins']['has']('ImageCaptionEditing')&&(_0x52e93f['enableCommand']('toggleImageCaption',(_0x3ab8ba,_0xce625)=>{const _0x22ad03=_0x5228e4['plugins']['get']('ImageCaptionUtils');let _0x4e09dc=_0x8bfd48['getClosestSelectedImageElement'](_0x5228e4['model']['document']['selection']),_0x8dc8f6=_0x22ad03['getCaptionFromImageModelElement'](_0x4e09dc);_0x5228e4['model']['change'](()=>{if(_0x8dc8f6)return void _0x52e93f['markDeletion'](_0x5228e4['model']['createRangeOn'](_0x8dc8f6));const _0x4d1281=_0x8bfd48['isBlockImage'](_0x4e09dc);_0x3ab8ba(_0xce625),_0x4e09dc=_0x8bfd48['getClosestSelectedImageElement'](_0x5228e4['model']['document']['selection']),_0x8dc8f6=_0x22ad03['getCaptionFromImageModelElement'](_0x4e09dc),_0x52e93f['markInsertion'](_0x5228e4['model']['createRangeOn'](_0x8dc8f6),_0x4d1281?null:'imageCaption');});}),_0x52e93f['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x57fe87));const _0x315451=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2fbb79(_0x50fa9e,_0x331d07){const _0x1b27ac=_0x315451['findIndex'](({type:_0x3a9865,subType:_0x31bbf2})=>_0x50fa9e['type']==_0x3a9865&&_0x50fa9e['subType']==_0x31bbf2),_0x3774d3=_0x315451['findIndex'](({type:_0x20c171,subType:_0x4c6e7a})=>_0x331d07['type']==_0x20c171&&_0x331d07['subType']==_0x4c6e7a);if(_0x1b27ac<0x0||_0x3774d3<0x0)return!0x1;const _0x886592=_0x50fa9e['getFirstRange'](),_0x430bb8=_0x331d07['getFirstRange']();if((0x0==_0x1b27ac||0x1==_0x1b27ac)&&0x2==_0x3774d3&&_0x886592['isIntersecting'](_0x430bb8))return!0x0;if(0x2==_0x1b27ac&&0x3==_0x3774d3){const _0x4d11eb=_0x52e93f['_findSuggestions'](_0x886592,'insertion')['filter'](({suggestion:_0x4d1346,meta:_0x4c957e})=>_0x4c957e['isOwn']&&'convertInlineImageToBlock'==_0x4d1346['subType']);if(_0x4d11eb['length']>0x1&&_0x430bb8['end']['isEqual'](_0x886592['start']))return!0x0;if(0x1==_0x4d11eb['length']&&(_0x886592['start']['isEqual'](_0x430bb8['end'])||_0x886592['end']['isEqual'](_0x430bb8['start'])))return!0x0;}if(0x3==_0x1b27ac&&0x3==_0x3774d3&&_0x886592['start']['isBefore'](_0x430bb8['start'])){const _0x2b7f98=_0x886592['end']['nodeAfter'],_0x487649=_0x430bb8['start']['nodeBefore'];return _0x8bfd48['isBlockImage'](_0x2b7f98)&&_0x2b7f98===_0x487649;}return!0x1;}function _0x57fe87(_0x31b208,_0x3b2090){return _0x2fbb79(_0x31b208,_0x3b2090)?[_0x31b208,_0x3b2090]:_0x2fbb79(_0x3b2090,_0x31b208)?[_0x3b2090,_0x31b208]:null;}_0x5228e4['plugins']['has']('ImageResize')&&(_0x52e93f['enableDefaultAttributesIntegration']('resizeImage'),_0x52e93f['descriptionFactory']['registerAttributeLabel']('resizedWidth',At(_0x46e9ea,'FORMAT_IMAGE_SIZE'))),_0x5228e4['plugins']['has']('ImageTextAlternativeEditing')&&_0x52e93f['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5228e4['plugins']['has']('PictureEditing')&&_0x52e93f['descriptionFactory']['registerDescriptionCallback'](_0x4d5d99=>{if('attribute'!=_0x4d5d99['type'])return;const {data:_0x517d62}=_0x4d5d99;return _0x517d62&&'sources'==_0x517d62['key']?{'type':'format','content':''}:void 0x0;}),_0x5228e4['plugins']['has']('ImageSizeAttributes')&&_0x52e93f['descriptionFactory']['registerDescriptionCallback'](_0x470f46=>{if('attribute'!=_0x470f46['type'])return;const {data:_0x3c63f6}=_0x470f46;return!_0x3c63f6||'width'!=_0x3c63f6['key']&&'height'!=_0x3c63f6['key']?void 0x0:{'type':'format','content':''};}),_0x52e93f['descriptionFactory']['registerDescriptionCallback'](_0x17dfc7=>{if(!!_0x315451['find'](({type:_0xcfe038,subType:_0xbe3feb})=>_0x17dfc7['type']==_0xcfe038&&_0x17dfc7['subType']==_0xbe3feb))return _0x17dfc7['previous']?{}:void 0x0;}),_0x52e93f['descriptionFactory']['registerDescriptionCallback'](_0xff3547=>{if('insertion'==_0xff3547['type']||'deletion'==_0xff3547['type']){const _0x378712=_0xff3547['getContainedElement']();if(_0x378712&&_0x378712['is']('element','caption'))return{'type':'insertion'==_0xff3547['type']?'addObject':'removeObject','element':_0x378712,'quantity':0x1};}}),_0x52e93f['descriptionFactory']['registerDescriptionCallback'](_0x1d13ff=>'formatBlock'==_0x1d13ff['type']&&'convertInlineImageToBlock'==_0x1d13ff['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1d13ff['type']&&'convertBlockImageToInline'==_0x1d13ff['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x52e93f['descriptionFactory']['registerDescriptionCallback'](_0x3a56fa=>{if('attribute'!=_0x3a56fa['type'])return;const {data:_0x298b64}=_0x3a56fa;if(!_0x298b64||'alt'!=_0x298b64['key'])return;const _0x29b335=_0x298b64['newValue'];return _0x29b335?{'type':'format','content':At(_0x46e9ea,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x29b335+'\x22')}:{'type':'format','content':At(_0x46e9ea,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a11cc=this['editor'],_0xfd0457=_0x3a11cc['locale'];_0x3a11cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x129b26=>{if('formatBlock'!=_0x129b26['type']&&'formatInline'!=_0x129b26['type'])return;const {data:_0x3e4db9}=_0x129b26;if(_0x3e4db9){if('imageTextAlternative'==_0x3e4db9['commandName']){const _0x1dc474=_0x3e4db9['commandParams'][0x0]['newValue'];return _0x1dc474?{'type':'format','content':At(_0xfd0457,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1dc474+'\x22')}:{'type':'format','content':At(_0xfd0457,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3e4db9['commandName']){const _0x29ee10=_0x3e4db9['commandParams'][0x0]['width'];return _0x29ee10?{'type':'format','content':At(_0xfd0457,'*Set\x20image\x20width:*\x20%0',_0x29ee10)}:{'type':'format','content':At(_0xfd0457,'*Reset\x20image\x20width*')};}}});}}class se extends _0x4a3826{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x515ed8=this['editor']['locale'],_0x5260be=this['editor']['plugins']['get']('TrackChangesEditing');_0x5260be['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5260be['descriptionFactory']['registerDescriptionCallback'](_0x11aff8=>{if('attribute'!=_0x11aff8['type'])return;const {data:_0x348f73}=_0x11aff8;return _0x348f73&&'src'==_0x348f73['key']?_0x348f73['newValue']&&_0x348f73['oldValue']?{'type':'format','content':At(_0x515ed8,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x814a2a=this['editor']['plugins']['get']('TrackChangesEditing');_0x814a2a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x814a2a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x814a2a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x814a2a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x589aec=this['editor'],_0x1fc96c=_0x589aec['locale'];_0x589aec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e9d87=>{if('formatBlock'!=_0x1e9d87['type']&&'formatInline'!=_0x1e9d87['type'])return;const {data:_0x213f46}=_0x1e9d87;if(!_0x213f46||'replaceImageSource'!=_0x213f46['commandName'])return;return{'type':'format','content':At(_0x1fc96c,'*Format:*\x20replace\x20image\x20URL')};});}}class re extends _0x4a3826{['afterInit'](){const _0x5f5b95=this['editor'];if(!_0x5f5b95['plugins']['has']('ImageStyleEditing'))return;const _0x591654=_0x5f5b95['plugins']['get']('TrackChangesEditing'),_0x15e951=_0x5f5b95['plugins']['get']('ImageUtils'),_0x10f92e={};_0x591654['enableCommand']('imageStyle',(_0x17cb1c,_0x4aaadd)=>{const _0x3cdc0b=_0x5f5b95['plugins']['get']('Users')['me'],_0x3d988d=_0x5f5b95['commands']['get']('imageStyle');let _0xcf13c7=_0x15e951['getClosestSelectedImageElement'](_0x5f5b95['model']['document']['selection']),_0xefc475=_0x5f5b95['model']['createRangeOn'](_0xcf13c7),_0x2064c6=_0x3d988d['value'];if(_0x2064c6==_0x4aaadd['value'])return;const _0x53cefa={'commandName':'imageStyle','commandParams':[_0x4aaadd],'formatGroupId':_0x15ca27()};_0x5f5b95['model']['change'](()=>{if(_0x591654['getSuggestions']()['filter'](_0x1205bd=>_0x1205bd['isInContent']&&_0x3cdc0b==_0x1205bd['author']&&('formatBlock'==_0x1205bd['type']||'formatInline'==_0x1205bd['type'])&&('imageStylePreApply'==_0x1205bd['subType']||'imageStylePostApply'==_0x1205bd['subType'])&&_0x1205bd['getFirstRange']()['isEqual'](_0xefc475))['forEach'](_0x58bf13=>_0x591654['discardSuggestion'](_0x58bf13['head'])),_0xcf13c7=_0x15e951['getClosestSelectedImageElement'](_0x5f5b95['model']['document']['selection']),_0xefc475=_0x5f5b95['model']['createRangeOn'](_0xcf13c7),_0x3d988d['refresh'](),_0x5f5b95['commands']['get']('imageTypeInline')['refresh'](),_0x5f5b95['commands']['get']('imageTypeBlock')['refresh'](),_0x2064c6=_0x3d988d['value'],_0x2064c6!=_0x4aaadd['value'])return _0x15e951['isInlineImage'](_0xcf13c7)&&_0x3d988d['shouldConvertImageType'](_0x4aaadd['value'],_0xcf13c7)?(_0x17cb1c({..._0x4aaadd,'setImageSizes':!0x1}),_0xcf13c7=_0x15e951['getClosestSelectedImageElement'](_0x5f5b95['model']['document']['selection']),void _0x591654['markBlockFormat'](_0xcf13c7,{..._0x53cefa,'commandReversedParams':[{'value':_0x2064c6||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x15e951['isBlockImage'](_0xcf13c7)?_0x591654['markBlockFormat'](_0xcf13c7,_0x53cefa,[],'imageStylePostApply'):_0x591654['markInlineFormat'](_0xefc475,_0x53cefa,'imageStylePostApply'));});});for(const _0x32b20f of _0x5f5b95['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x10f92e[_0x32b20f['name']]=_0x32b20f['title']['toLowerCase']();_0x591654['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x591654['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x591654['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x591654['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5a83da])=>{_0x15e951['setImageNaturalSizeAttributes'](_0x5a83da['getContainedElement']());}),_0x591654['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x45599c,_0x3f0a23)=>{_0x591654['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x45599c,{'commandName':_0x3f0a23['commandName'],'commandParams':_0x3f0a23['commandReversedParams']});}),_0x591654['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4ff72d,_0x2ae057){if(_0x134f7f(_0x4ff72d,_0x2ae057))return[_0x4ff72d,_0x2ae057];if(_0x134f7f(_0x2ae057,_0x4ff72d))return[_0x2ae057,_0x4ff72d];return null;});const _0x22cdfa=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x134f7f(_0x24abc8,_0x3b746b){const _0x13e9ef=_0x22cdfa['findIndex'](({type:_0x1036d0,subType:_0x2efb24})=>_0x24abc8['type']==_0x1036d0&&_0x24abc8['subType']==_0x2efb24),_0x491980=_0x22cdfa['findIndex'](({type:_0x3d2b28,subType:_0x7bcaaf})=>_0x3b746b['type']==_0x3d2b28&&_0x3b746b['subType']==_0x7bcaaf);if(_0x13e9ef<0x0||_0x491980<0x0)return!0x1;const _0x2302f4=_0x24abc8['getFirstRange'](),_0x14aded=_0x3b746b['getFirstRange']();if((0x0==_0x13e9ef||0x1==_0x13e9ef)&&0x2==_0x491980&&_0x2302f4['isIntersecting'](_0x14aded))return!0x0;if(0x2==_0x13e9ef&&0x3==_0x491980){const _0x4e5d5e=_0x591654['_findSuggestions'](_0x2302f4,'insertion')['filter'](({suggestion:_0x439482,meta:_0x2ac00b})=>_0x2ac00b['isOwn']&&'convertInlineImageToBlock'==_0x439482['subType']);if(_0x4e5d5e['length']>0x1&&_0x14aded['end']['isEqual'](_0x2302f4['start']))return!0x0;if(0x1==_0x4e5d5e['length']&&(_0x2302f4['start']['isEqual'](_0x14aded['end'])||_0x2302f4['end']['isEqual'](_0x14aded['start'])))return!0x0;}if(0x3==_0x13e9ef&&0x3==_0x491980&&_0x2302f4['start']['isBefore'](_0x14aded['start'])){const _0x12c2c1=_0x2302f4['end']['nodeAfter'],_0x476301=_0x14aded['start']['nodeBefore'];return _0x15e951['isBlockImage'](_0x12c2c1)&&_0x12c2c1===_0x476301;}return!0x1;}_0x5f5b95['model']['document']['registerPostFixer'](()=>{let _0x304300=!0x1;const _0x175cb7=Array['from'](_0x5f5b95['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x16af45,data:_0x34f1f4}of _0x175cb7){const {group:_0x123a14,type:_0x268684,subType:_0x436524,id:_0x19d833}=_0x475a96(_0x16af45);if('suggestion'==_0x123a14&&_0x591654['hasSuggestion'](_0x19d833)){if('formatBlock'==_0x268684&&('imageStylePreApply'==_0x436524||'imageStylePostApply'==_0x436524)){const _0x5d544e=_0x591654['getSuggestion'](_0x19d833);if(_0x34f1f4['newRange']){const _0x18bae4=_0x5d544e['getFirstRange']()['getContainedElement']();if(_0x15e951['isBlockImage'](_0x18bae4))continue;_0x591654['discardSuggestion'](_0x5d544e),_0x304300=!0x0;}}if('insertion'==_0x268684&&'imageCaption'==_0x436524&&!_0x34f1f4['newRange']){const _0x13495d=_0x591654['getSuggestion'](_0x19d833);_0x13495d['next']&&_0x13495d['next']['isInContent']&&(_0x591654['discardSuggestion'](_0x13495d['next']),_0x304300=!0x0);}}}return _0x304300;}),this['_registerLegacyDescription'](_0x10f92e);}['_registerLegacyDescription'](_0x2a661d){const _0x2b22cf=this['editor'],_0x1badf1=_0x2b22cf['locale'];_0x2b22cf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d7993=>{if('formatBlock'!=_0x4d7993['type']&&'formatInline'!=_0x4d7993['type'])return;const {data:_0x4ec496}=_0x4d7993;if(!_0x4ec496||'imageStyle'!=_0x4ec496['commandName'])return;const _0x955fab=_0x4ec496['commandParams'][0x0]['value'];return _0x2db263('side'===_0x955fab?At(_0x1badf1,'FORMAT_SIDE_IMAGE'):_0x2a661d[_0x955fab]||_0x955fab);function _0x2db263(_0x15fde9){return{'type':'format','content':At(_0x1badf1,'*Format:*\x20%0',_0x15fde9)};}});}}class oe extends _0x4a3826{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x434a14){super(_0x434a14),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5158a9=this['editor'],_0x522e09=_0x5158a9['commands']['get']('importWord'),_0x34b81e=_0x5158a9['commands']['get']('trackChanges');_0x522e09&&(_0x522e09['on']('execute',(_0x5eb6a6,[,_0x3de818])=>{this['_trackChangesValueDuringImport']=_0x34b81e['value'],_0x3de818['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x522e09,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x522e09,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x34b81e['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5158a9['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x46a95e,_0xe88d3c){const {suggestions:_0x467a0a}=_0xe88d3c,_0x1e944a=this['editor']['commands']['get']('trackChanges'),_0x5b8051=_0x1e944a['value'];this['_trackChangesValueDuringImport']!==_0x5b8051&&(_0x1e944a['execute'](),this['_trackChangesExecuted']=!0x0),_0x467a0a&&_0x467a0a['forEach'](({id:_0x543f0e,type:_0x2066b4,author:_0x51d901,created_at:_0x211248})=>{const _0x23942c={'id':_0x543f0e,'type':_0x2066b4,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x51d901,'createdAt':_0x211248?new Date(_0x211248):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x23942c);});}}class ae extends _0x4a3826{['afterInit'](){const _0x4b6e14=this['editor'],_0x5bb6db=_0x4b6e14['plugins']['get']('TrackChangesEditing');if(_0x4b6e14['plugins']['has']('IndentEditing')&&(_0x5bb6db['enableCommand']('indent'),_0x5bb6db['enableCommand']('outdent')),_0x4b6e14['plugins']['has']('IndentBlock')){for(const _0x13fe08 of['indentBlock','outdentBlock'])_0x5bb6db['enableDefaultAttributesIntegration'](_0x13fe08);if(_0x4b6e14['plugins']['has']('ListEditing')){for(const _0x2ec180 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x5bb6db['enableDefaultAttributesIntegration'](_0x2ec180);}}const _0x5478d4=_0x4b6e14['locale'];_0x5bb6db['descriptionFactory']['registerAttributeLabel']('blockIndent',At(_0x5478d4,'FORMAT_INDENT')),_0x5bb6db['descriptionFactory']['registerAttributeLabel']('blockIndentList',At(_0x5478d4,'FORMAT_INDENT')),_0x5bb6db['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',At(_0x5478d4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x340a87=this['editor'],_0x2aa1b6=_0x340a87['locale'],_0x26a694=_0x340a87['plugins']['get']('TrackChangesEditing');_0x26a694['descriptionFactory']['registerDescriptionCallback'](_0x1327a7=>{if('formatBlock'!=_0x1327a7['type'])return;const {data:_0x330f7c}=_0x1327a7;if(!_0x330f7c)return;if('indentBlock'!=_0x330f7c['commandName']&&'outdentBlock'!=_0x330f7c['commandName'])return;const _0x47b2df=_0x1327a7['getItems']()[0x0],_0x366b79=_0x26a694['descriptionFactory']['getItemLabel'](_0x47b2df);return'indentBlock'==_0x330f7c['commandName']?{'type':'format','content':At(_0x2aa1b6,'*Indent:*\x20%0',_0x366b79)}:'outdentBlock'==_0x330f7c['commandName']?{'type':'format','content':At(_0x2aa1b6,'*Outdent:*\x20%0',_0x366b79)}:void 0x0;});}}class ce extends _0x4a3826{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class le extends _0x4a3826{['afterInit'](){const _0x11bcec=this['editor'];if(!_0x11bcec['plugins']['has']('LinkEditing'))return;const _0x45a60f=_0x11bcec['plugins']['get']('TrackChangesEditing'),_0x4bbce8=_0x11bcec['commands']['get']('link');_0x45a60f['enableDefaultAttributesIntegration']('link'),_0x45a60f['enableDefaultAttributesIntegration']('unlink');for(const _0x191a24 of _0x4bbce8['manualDecorators'])_0x45a60f['descriptionFactory']['registerAttributeLabel'](_0x191a24['id'],'link\x20('+_0x191a24['label']['toLowerCase']()+')');_0x45a60f['descriptionFactory']['registerDescriptionCallback'](_0x2f8d15=>{if('attribute'!=_0x2f8d15['type'])return;const {data:_0x22beab}=_0x2f8d15;if(!_0x22beab||'linkHref'!=_0x22beab['key'])return;const _0x516642=_0x22beab['newValue'],_0x420f5a=_0x11bcec['locale'];return{'type':'format','content':null==_0x516642?At(_0x420f5a,'*Remove\x20link*'):At(_0x420f5a,'*Set\x20link:*\x20%0','\x22'+_0x516642+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20efd4=this['editor'],_0x527e5b=_0x20efd4['locale'];_0x20efd4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x340bd7=>{if('formatInline'!=_0x340bd7['type'])return;const {data:_0x28b235}=_0x340bd7;if(_0x28b235){if('link'==_0x28b235['commandName']){const _0x5a80d6=_0x28b235['commandParams'][0x0];return{'type':'format','content':At(_0x527e5b,'*Set\x20link:*\x20%0','\x22'+_0x5a80d6+'\x22')};}return'unlink'==_0x28b235['commandName']?{'type':'format','content':At(_0x527e5b,'*Remove\x20link*')}:void 0x0;}});}}class ue extends _0x4a3826{['afterInit'](){const _0x5001ac=this['editor'],_0x3a573c=_0x5001ac['locale'];if(!_0x5001ac['plugins']['has']('LegacyListEditing'))return;const _0x11261d=_0x5001ac['plugins']['get']('TrackChangesEditing'),_0xa425f=_0x5001ac['plugins']['has']('LegacyTodoListEditing');function _0x166203(_0x563402){return()=>{const _0x2634b9=_0x5001ac['model']['document']['selection'],_0x402314=_0x5001ac['commands']['get'](_0x563402);if(_0x402314['value'])return void _0x5001ac['execute']('paragraph',{});const _0x5405e0=_0x563402['slice'](0x0,-0x4),_0x4eb206=function(_0x40aab4,_0x6d3cd6,_0x4d2520){let _0xdc8e60=Array['from'](_0x40aab4)['filter'](_0x214c63=>function(_0x24ca0d,_0x4b59be){return _0x4b59be['checkChild'](_0x24ca0d['parent'],'listItem')&&!_0x4b59be['isObject'](_0x24ca0d);}(_0x214c63,_0x4d2520));_0xdc8e60=_0xdc8e60['filter'](_0x53f59a=>!_0x53f59a['is']('element','listItem')||_0x53f59a['getAttribute']('listType')!=_0x6d3cd6);const _0x13623f=new Set();for(const _0x4d7515 of _0xdc8e60)_0x4d7515['is']('element','listItem')?_0x13623f['add'](he(_0x4d7515)):_0x13623f['add'](_0x4d7515);return Array['from'](_0x13623f);}(_0x2634b9['getSelectedBlocks'](),_0x5405e0,_0x5001ac['model']['schema']);_0x5001ac['model']['change'](()=>{for(const _0x3a435b of _0x4eb206)_0x11261d['markBlockFormat'](_0x3a435b,{'commandName':_0x563402,'commandParams':[{'forceValue':!_0x402314['value']}],'formatGroupId':'blockName'},de(_0x3a435b));});};}function _0x5378e8(_0x5c7c1f){return()=>{const _0x3c45ec=function(_0x2addf4){let _0x37d02f=Array['from'](_0x2addf4);const _0xdf9e4a=_0x37d02f['findIndex'](_0xe93745=>'listItem'!=_0xe93745['name']);return _0xdf9e4a>-0x1&&(_0x37d02f=_0x37d02f['slice'](0x0,_0xdf9e4a)),_0x37d02f;}(_0x5001ac['model']['document']['selection']['getSelectedBlocks']()),_0x5c754b=_0x5001ac['model']['createRange'](_0x5001ac['model']['createPositionAt'](_0x3c45ec[0x0],'before'),_0x5001ac['model']['createPositionAt'](_0x3c45ec[_0x3c45ec['length']-0x1],'end'));_0x5001ac['model']['change'](()=>{_0x11261d['markBlockFormat'](_0x5c754b,{'commandName':_0x5c7c1f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x87aa5c){const _0x5b425f=new Set();for(const _0xee727 of _0x87aa5c){let _0x5364c2=_0xee727['nextSibling'];for(;_0x5364c2&&_0x5364c2['getAttribute']('listIndent')>_0xee727['getAttribute']('listIndent');)_0x5b425f['add'](_0x5364c2),_0x5364c2=_0x5364c2['nextSibling'];}return Array['from'](_0x5b425f);}(_0x3c45ec));});};}_0x11261d['enableCommand']('numberedList',_0x166203('numberedList')),_0x11261d['enableCommand']('bulletedList',_0x166203('bulletedList')),_0xa425f&&_0x11261d['enableCommand']('todoList',_0x166203('todoList')),_0x11261d['enableCommand']('indentList',_0x5378e8('indentList')),_0x11261d['enableCommand']('outdentList',_0x5378e8('outdentList')),_0xa425f&&_0x11261d['enableCommand']('checkTodoList',()=>{const _0x5e1dcd=_0x5001ac['commands']['get']('checkTodoList'),_0x4df762=Array['from'](_0x5e1dcd['_selectedElements']);_0x4df762['filter'](_0x652f34=>_0x652f34['getAttribute']('todoListChecked')!=_0x5e1dcd['value']),_0x5001ac['model']['change'](()=>{for(const _0x44c6b3 of _0x4df762)_0x11261d['markBlockFormat'](_0x44c6b3,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5e1dcd['value']}]});});}),_0x11261d['descriptionFactory']['registerElementLabel']('listItem',_0x45bdf2=>At(_0x3a573c,'ELEMENT_LIST_ITEM',_0x45bdf2)),_0x11261d['descriptionFactory']['registerDescriptionCallback'](_0x378f5b=>{if('formatBlock'!=_0x378f5b['type']&&'formatInline'!=_0x378f5b['type'])return;const {data:_0x115804}=_0x378f5b;if(_0x115804){if('numberedList'==_0x115804['commandName']||'bulletedList'==_0x115804['commandName']||'todoList'==_0x115804['commandName'])switch(_0x115804['commandName']['replace']('List','')){case'bulleted':return _0x4a4369(At(_0x3a573c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4a4369(At(_0x3a573c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4a4369(At(_0x3a573c,'ELEMENT_TODO_LIST'));}if('indentList'==_0x115804['commandName'])return{'type':'format','content':At(_0x3a573c,'*Indent:*\x20%0',At(_0x3a573c,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x115804['commandName'])return{'type':'format','content':At(_0x3a573c,'*Outdent:*\x20%0',At(_0x3a573c,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x115804['commandName'])return _0x115804['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x3a573c,'*Check\x20item*')}:{'type':'format','content':At(_0x3a573c,'*Uncheck\x20item*')};}function _0x4a4369(_0x3c4f8f){return{'type':'format','content':At(_0x3a573c,'*Change\x20to:*\x20%0',_0x3c4f8f)};}});}}function he(_0x2305d3){const _0x2cf287=_0x2305d3['getAttribute']('listIndent');if(0x0==_0x2cf287)return _0x2305d3;let _0x35d647=_0x2305d3;for(;_0x2305d3['previousSibling']&&_0x2305d3['previousSibling']['is']('element','listItem');){const _0x28d382=_0x2305d3['previousSibling']['getAttribute']('listIndent');if(_0x28d382==_0x2cf287)_0x35d647=_0x2305d3['previousSibling'];else{if(_0x28d382<_0x2cf287)break;}_0x2305d3=_0x2305d3['previousSibling'];}return _0x35d647;}function de(_0x2f8767){const _0x10d985=[];if(_0x2f8767['is']('element','listItem')&&_0x2f8767['getAttribute']('listIndent')>0x0){let _0x4d6745=_0x2f8767['nextSibling'];for(;_0x4d6745&&'listItem'==_0x4d6745['name']&&_0x4d6745['getAttribute']('listIndent')==_0x2f8767['getAttribute']('listIndent');)_0x10d985['push'](_0x4d6745),_0x4d6745=_0x4d6745['nextSibling'];}return _0x10d985;}class fe extends _0x4a3826{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x21cf16=this['editor']['config']['get']('list.properties'),_0x3a6fe9=this['editor']['plugins']['get']('TrackChangesEditing');_0x21cf16['styles']&&_0x3a6fe9['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x21cf16['reversed']&&_0x3a6fe9['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x21cf16['startIndex']&&_0x3a6fe9['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3a6fe9['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x360c56,_0x2ca967={}){const _0x517c4f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3db923=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x517c4f['markMultiRangeBlockFormat'](_0x3db923,{'commandName':'listStyle','commandParams':[{'type':_0x2ca967['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x226ade,_0xcf1d5f={}){const _0x1999e5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x129459=this['_getSuggestionBlocks'](_0x48548d=>_0x48548d['is']('element','listItem')&&'numbered'===_0x48548d['getAttribute']('listType'));if(_0x129459['length']<0x1)return;const _0x82fb96=_0x129459['map'](_0x30d611=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x30d611,'before'),this['editor']['model']['createPositionAt'](_0x30d611,0x0)));this['editor']['model']['change'](()=>{_0x1999e5['markMultiRangeBlockFormat'](_0x82fb96,{'commandName':'listReversed','commandParams':[{'reversed':_0xcf1d5f['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x49ee56,_0x2f60dc={}){const _0x1e15a5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1cfcd4=this['_getSuggestionBlocks'](_0x11c1b8=>_0x11c1b8['is']('element','listItem')&&'numbered'===_0x11c1b8['getAttribute']('listType'));if(_0x1cfcd4['length']<0x1)return;const _0x1d1dc1=_0x1cfcd4['map'](_0x11c9a2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x11c9a2,'before'),this['editor']['model']['createPositionAt'](_0x11c9a2,0x0)));this['editor']['model']['change'](()=>{_0x1e15a5['markMultiRangeBlockFormat'](_0x1d1dc1,{'commandName':'listStart','commandParams':[{'startIndex':_0x2f60dc['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x427fc8){if('formatBlock'!=_0x427fc8['type']&&'formatInline'!=_0x427fc8['type'])return;const _0x580cb4=this['editor']['locale'],{data:_0x1a7df8}=_0x427fc8;if(!_0x1a7df8)return;let _0x81584d,_0x25799d;switch(_0x1a7df8['commandName']){case'listStyle':_0x81584d='*Change\x20to:*\x20%0',_0x25799d={'type':'format','content':At(_0x580cb4,_0x81584d,At(_0x580cb4,this['_getTranslationKeyForListStyle'](_0x1a7df8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x81584d=_0x1a7df8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x25799d={'type':'format','content':At(_0x580cb4,_0x81584d)};break;case'listStart':_0x81584d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x25799d={'type':'format','content':At(_0x580cb4,_0x81584d,_0x1a7df8['commandParams'][0x0]['startIndex'])};}return _0x25799d;}['_getSuggestionBlocksForListStyle'](){const _0x235920=this['editor']['plugins']['get']('LegacyListUtils');let _0x1f5c3f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1f5c3f[0x0]?.['is']('element','listItem')&&_0x1f5c3f['unshift'](..._0x235920['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1f5c3f[_0x1f5c3f['length']-0x1]?.['is']('element','listItem')&&_0x1f5c3f['push'](..._0x235920['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1f5c3f=[...new Set(_0x1f5c3f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1f5c3f=_0x1f5c3f['filter'](_0x4fda8a=>_0x4fda8a['is']('element','listItem'))),_0x1f5c3f;}['_getSuggestionBlocks'](_0x2e9771){const _0x2ce9d1=this['editor']['plugins']['get']('LegacyListUtils');let _0x1c27e4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2e9771)['map'](_0x4f12d6=>{const _0x445cb4=this['editor']['model']['createPositionAt'](_0x4f12d6,0x0);return[..._0x2ce9d1['getSiblingNodes'](_0x445cb4,'backward'),..._0x2ce9d1['getSiblingNodes'](_0x445cb4,'forward')];})['flat']();return _0x1c27e4=[...new Set(_0x1c27e4)],_0x1c27e4;}['_getTranslationKeyForListStyle'](_0x30f228){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x30f228)||'default')['toUpperCase']()+'_LIST_'+_0x30f228['toUpperCase']()['replace'](/-/g,'_');}}class ge extends _0x4a3826{['afterInit'](){const _0x196737=this['editor'];if(!_0x196737['plugins']['has']('MediaEmbedEditing'))return;const _0x513ec3=_0x196737['plugins']['get']('TrackChangesEditing'),_0x4dc35d=_0x196737['locale'];_0x513ec3['enableCommand']('mediaEmbed'),_0x513ec3['descriptionFactory']['registerElementLabel']('media',_0x11a408=>At(_0x4dc35d,'ELEMENT_MEDIA',_0x11a408));}}class me extends _0x4a3826{['afterInit'](){const _0xa797c5=this['editor'];_0xa797c5['plugins']['has']('MentionEditing')&&_0xa797c5['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class Ee extends _0x4a3826{['afterInit'](){const _0x17e2c1=this['editor'];if(!_0x17e2c1['plugins']['has']('MergeFieldsEditing'))return;const _0x741baf=_0x17e2c1['plugins']['get']('TrackChangesEditing'),_0x462fc1=_0x17e2c1['locale'];_0x741baf['enableCommand']('insertMergeField'),_0x741baf['enableCommand']('insertMergeFieldBlock'),_0x741baf['enableCommand']('insertMergeFieldImage'),_0x741baf['descriptionFactory']['registerElementLabel']('mergeField',_0x3f8f05=>At(_0x462fc1,'ELEMENT_MERGE_FIELD',_0x3f8f05)),_0x741baf['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2b41b3=>At(_0x462fc1,'ELEMENT_MERGE_FIELD',_0x2b41b3)),_0x741baf['descriptionFactory']['registerDescriptionCallback'](_0x3bf0c8=>{if('insertion'!=_0x3bf0c8['type']&&'deletion'!=_0x3bf0c8['type'])return;const _0x4df089=_0x3bf0c8['getContainedElement']();if(null==_0x4df089)return;const _0x1573a8=_0x17e2c1['plugins']['get']('MergeFieldsEditing');let _0x5e84de;switch(_0x1573a8['getMergeFieldType'](_0x4df089)){case null:return;case'image':{const _0x1ee20d=_0x1573a8['unwrapAffixes'](_0x4df089['getAttribute']('src'));_0x5e84de=_0x1573a8['getLabel'](_0x1ee20d)||_0x1ee20d;break;}default:{const _0x2b1e81=_0x4df089['getAttribute']('id');_0x5e84de=_0x1573a8['getLabel'](_0x2b1e81)||_0x2b1e81;break;}}return'insertion'==_0x3bf0c8['type']?{'type':'insertion','content':At(_0x462fc1,'*Insert:*\x20%0','\x22'+_0x5e84de+'\x22\x20'+At(_0x462fc1,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':At(_0x462fc1,'*Remove:*\x20%0','\x22'+_0x5e84de+'\x22\x20'+At(_0x462fc1,'ELEMENT_MERGE_FIELD'))};});}}class Te extends _0x4a3826{['afterInit'](){const _0x28b92c=this['editor'],_0x57949d=_0x28b92c['plugins']['get']('TrackChangesEditing');_0x28b92c['plugins']['has']('MultiLevelList')&&(_0x57949d['enableDefaultAttributesIntegration']('multiLevelList'),_0x57949d['descriptionFactory']['registerDescriptionCallback'](_0x2fbd15=>this['handleDescriptions'](_0x2fbd15)));}['handleDescriptions'](_0xab5420){const _0x588fc1=this['editor']['locale'],{data:_0x5dbb7b}=_0xab5420,_0x573f00={'type':'format','content':''};if(_0x5dbb7b&&'listMarkerStyle'==_0x5dbb7b['key']){if(!_0x5dbb7b['oldValue'])return{'type':'format','content':At(_0x588fc1,'*Set\x20format:*\x20%0',At(_0x588fc1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5dbb7b['newValue']+')'};if(!_0x5dbb7b['newValue']){let _0x56a1b2=_0xab5420['head'];for(;_0x56a1b2;){if(_0x56a1b2['data']&&'listType'==_0x56a1b2['data']['key']&&_0x56a1b2['data']['newValue'])return _0x573f00;_0x56a1b2=_0x56a1b2['next'];}return{'type':'format','content':At(_0x588fc1,'*Remove\x20format:*\x20%0',At(_0x588fc1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5dbb7b['oldValue']+')'};}}}}class _e extends _0x4a3826{['afterInit'](){const _0x10e4d5=this['editor'];if(!_0x10e4d5['plugins']['has']('PageBreakEditing'))return;_0x10e4d5['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x99abff=_0x10e4d5['plugins']['get']('TrackChangesEditing'),_0x4a96d6=_0x10e4d5['locale'];_0x99abff['descriptionFactory']['registerElementLabel']('pageBreak',_0x2c38cc=>At(_0x4a96d6,'ELEMENT_PAGE_BREAK',_0x2c38cc));}}class pe extends _0x4a3826{['afterInit'](){const _0x93cdf9=this['editor'];if(!_0x93cdf9['plugins']['has']('Paragraph'))return;const _0x3733bd=_0x93cdf9['locale'],_0x4bca67=_0x93cdf9['plugins']['get']('TrackChangesEditing');_0x4bca67['descriptionFactory']['registerElementLabel']('paragraph',_0x5d26ac=>At(_0x3733bd,'ELEMENT_PARAGRAPH',_0x5d26ac)),_0x4bca67['enableDefaultAttributesIntegration']('paragraph'),_0x4bca67['enableCommand']('insertParagraph');const _0x4b7905=_0x4bca67['descriptionFactory'];_0x4b7905['registerDescriptionCallback'](_0x58faf8=>{if('insertion'!==_0x58faf8['type'])return;const {start:_0x32ea34,end:_0x3bdd43}=_0x58faf8['getFirstRange']();if(!_0x32ea34['isTouching'](_0x3bdd43)||!_0x32ea34['nodeAfter'])return;const _0x1b4e3d=_0x93cdf9['model']['schema'],_0x5ac904=_0x32ea34['nodeAfter'];return _0x1b4e3d['isBlock'](_0x5ac904)&&!_0x1b4e3d['isLimit'](_0x5ac904)&&_0x1b4e3d['checkChild'](_0x5ac904,'$text')?{'type':'insertion','content':At(_0x3733bd,'*Insert:*\x20%0',_0x4b7905['getItemLabel'](_0x5ac904,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35e922=this['editor'],_0x43728b=_0x35e922['locale'];_0x35e922['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cd6fd=>{if('formatBlock'!=_0x2cd6fd['type'])return;const {data:_0x1c5bf1}=_0x2cd6fd;return _0x1c5bf1&&'paragraph'==_0x1c5bf1['commandName']?{'type':'format','content':At(_0x43728b,'*Change\x20to:*\x20%0',At(_0x43728b,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class Le extends _0x4a3826{['afterInit'](){const _0xa67a93=this['editor'];_0xa67a93['commands']['get']('replaceSource')&&_0xa67a93['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class Ie extends _0x4a3826{['afterInit'](){const _0x59118d=this['editor'];if(!_0x59118d['plugins']['has']('RemoveFormatEditing'))return;_0x59118d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38ed3d=this['editor'];_0x38ed3d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36b4ff=>{if('formatBlock'!=_0x36b4ff['type']&&'formatInline'!=_0x36b4ff['type'])return;const {data:_0x2d0716}=_0x36b4ff;return _0x2d0716&&'removeFormat'==_0x2d0716['commandName']?{'type':'format','content':At(_0x38ed3d['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class be extends _0x4a3826{['afterInit'](){const _0x448bd7=this['editor'];if(!_0x448bd7['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x543a76=_0x448bd7['plugins']['get']('TrackChangesEditing');_0x543a76['enableCommand']('goToPreviousRestrictedEditingException'),_0x543a76['enableCommand']('goToNextRestrictedEditingException');const _0x4a12d2=_0x448bd7['plugins']['get']('RestrictedEditingModeEditing');_0x4a12d2['enableCommand']('trackChanges'),_0x4a12d2['enableCommand']('acceptSuggestion'),_0x4a12d2['enableCommand']('discardSuggestion'),_0x4a12d2['enableCommand']('acceptAllSuggestions'),_0x4a12d2['enableCommand']('discardAllSuggestions'),_0x4a12d2['enableCommand']('acceptSelectedSuggestions'),_0x4a12d2['enableCommand']('discardSelectedSuggestions');}}class Ae extends _0x4a3826{['afterInit'](){const _0x3d60bf=this['editor'];if(!_0x3d60bf['plugins']['has']('ShiftEnter'))return;const _0x10f19c=_0x3d60bf['plugins']['get']('TrackChangesEditing');_0x10f19c['enableCommand']('shiftEnter'),_0x10f19c['descriptionFactory']['registerElementLabel']('softBreak',_0x232734=>At(_0x3d60bf['locale'],'ELEMENT_LINE_BREAK',_0x232734));}}function ke(_0x24c7ab,_0x42e028,_0x3e37e9){const _0x5896e1=[];for(const _0xbd6fda of _0x42e028['getItems']())_0xbd6fda['hasAttribute'](_0x24c7ab)&&_0x5896e1['push'](_0x3e37e9['createRangeOn'](_0xbd6fda));return _0x5896e1;}class Ce extends _0x4a3826{['afterInit'](){const _0x1abf02=this['editor'],_0x175694=_0x1abf02['plugins']['get']('TrackChangesEditing');_0x1abf02['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x175694['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x2585c0=this['editor'],_0x4864ff=_0x2585c0['model'],_0x3ad8d=_0x2585c0['locale'],_0x44b80c=_0x2585c0['plugins']['get']('TrackChangesEditing'),_0x2a2fd9='restrictedEditingException',_0x763c6=_0x2585c0['commands']['get'](_0x2a2fd9);_0x44b80c['enableCommand'](_0x2a2fd9,(_0x38ef33,_0x4170d6={})=>{const _0x463fec=_0x4864ff['document']['selection'];if(_0x463fec['isCollapsed'])return void _0x38ef33(_0x4170d6);const _0x3f8dcf=void 0x0!==_0x4170d6['forceValue']?_0x4170d6['forceValue']:!_0x763c6['value'];_0x4864ff['change'](()=>{const _0x32a07a=Array['from'](_0x463fec['getRanges']());for(const _0x42f095 of _0x32a07a){const _0x4d4ddc=_0x3f8dcf?[_0x42f095]:ke(_0x2a2fd9,_0x42f095,_0x4864ff);for(const _0x1f1723 of _0x4d4ddc)_0x44b80c['markInlineFormat'](_0x1f1723,{'commandName':_0x2a2fd9,'commandParams':[{'forceValue':_0x3f8dcf}]});}});}),_0x44b80c['descriptionFactory']['registerDescriptionCallback'](_0x2311b2=>{if('formatBlock'!=_0x2311b2['type']&&'formatInline'!=_0x2311b2['type'])return;const {data:_0x51e80}=_0x2311b2;return _0x51e80&&_0x51e80['commandName']==_0x2a2fd9?_0x51e80['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x3ad8d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x3ad8d,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x510e57=this['editor'],_0xf5d262=_0x510e57['locale'],_0x4277c9=_0x510e57['plugins']['get']('TrackChangesEditing'),_0x359281='restrictedEditingExceptionBlock',_0x5624c1=this['editor']['commands']['get'](_0x359281);_0x4277c9['enableCommand'](_0x359281,(_0x4dd232,_0x241550={})=>{const _0x3523b5=this['editor']['model']['document']['selection'],_0x33c566=_0x241550&&void 0x0!==_0x241550['forceValue']?_0x241550['forceValue']:!_0x5624c1['value'];let _0x2dfefc=[];if(_0x33c566){const _0x4af375=Array['from'](_0x3523b5['getSelectedBlocks']())['filter'](_0x46a439=>function(_0xd38275){return!!_0xd38275['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x46a439)||function(_0x497258,_0x18a9b0){const _0x5187a4=_0x18a9b0['createContext'](_0x497258['parent']);if(!_0x18a9b0['checkChild'](_0x5187a4,'restrictedEditingException'))return!0x1;if(!_0x18a9b0['checkChild'](_0x5187a4['push']('restrictedEditingException'),_0x497258))return!0x1;return!0x0;}(_0x46a439,this['editor']['model']['schema']));_0x2dfefc=Tt(_0x4af375,_0x510e57['model']);}else{const _0x200a73=Array['from'](_0x3523b5['getSelectedBlocks']())['map'](_0x193d67=>function(_0x172ed7){let _0x1fbf2e=_0x172ed7;for(;_0x1fbf2e['parent'];){if('restrictedEditingException'==_0x1fbf2e['parent']['name'])return _0x1fbf2e;_0x1fbf2e=_0x1fbf2e['parent'];}return null;}(_0x193d67))['filter'](_0x982539=>!!_0x982539);_0x2dfefc=Tt(_0x200a73,_0x510e57['model']);}_0x510e57['model']['change'](()=>{for(const _0x162621 of _0x2dfefc)_0x4277c9['markBlockFormat'](_0x162621,{'commandName':_0x359281,'commandParams':[{'forceValue':_0x33c566}]});});}),_0x4277c9['descriptionFactory']['registerDescriptionCallback'](_0x398930=>{const {data:_0x5df82b}=_0x398930;if(_0x5df82b&&_0x5df82b['commandName']==_0x359281)return _0x5df82b['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0xf5d262,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0xf5d262,'FORMAT_RESTRICTED_DISABLED')};});}}class ye extends _0x4a3826{['afterInit'](){const _0x2b3025=this['editor'];if(!_0x2b3025['plugins']['has']('Style')||!_0x2b3025['plugins']['has']('DataSchema'))return;const _0x1d600c=_0x2b3025['plugins']['get']('TrackChangesEditing'),_0x308009=_0x2b3025['locale'],_0x15d8db=_0x2b3025['config']['get']('style')||{},_0x21fa20=_0x2b3025['plugins']['get']('GeneralHtmlSupport'),_0x180a19=_0x2b3025['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2b3025['plugins']['get']('DataSchema'),_0x15d8db['definitions']);_0x1d600c['enableDefaultAttributesIntegration']('style');const _0x4ce60b=new Set();for(const _0x1d17f0 of _0x180a19['block']){const _0x701348=_0x21fa20['getGhsAttributeNameForElement'](_0x1d17f0['element']);_0x4ce60b['add'](_0x701348);}const _0x1bcd23=new Set();for(const _0x22f617 of _0x180a19['inline']){const _0x75eaf2=_0x21fa20['getGhsAttributeNameForElement'](_0x22f617['element']);_0x1bcd23['add'](_0x75eaf2);for(const _0x38a5df of _0x22f617['ghsAttributes'])_0x1bcd23['add'](_0x38a5df);}for(const _0x15f0a4 of _0x4ce60b)_0x1d600c['descriptionFactory']['registerAttributeLabel'](_0x15f0a4,At(_0x308009,'FORMAT_STYLE'));for(const _0x1aff58 of _0x1bcd23)_0x1d600c['descriptionFactory']['registerAttributeLabel'](_0x1aff58,At(_0x308009,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f1098=this['editor'],_0x1e93a4=_0x2f1098['locale'];_0x2f1098['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ea59a=>{if('formatBlock'!=_0x1ea59a['type']&&'formatInline'!=_0x1ea59a['type'])return;const {data:_0x3c3a46}=_0x1ea59a;return _0x3c3a46&&'style'===_0x3c3a46['commandName']?_0x3c3a46['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x1e93a4,'*Set\x20format:*\x20%0',_0x3c3a46['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':At(_0x1e93a4,'*Remove\x20format:*\x20%0',_0x3c3a46['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ne extends _0x4a3826{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4a7b18){super(_0x4a7b18),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5791d5=this['editor'],_0x324b92=_0x5791d5['model']['document']['selection'];if(!_0x5791d5['plugins']['has']('TableEditing'))return;const _0x244679=_0x5791d5['locale'],_0x5f1220=_0x5791d5['plugins']['get']('TrackChangesEditing'),_0x28c6f6=_0x5791d5['plugins']['get']('TableUtils');_0x5f1220['descriptionFactory']['registerElementLabel']('table',_0x51977f=>At(_0x244679,'ELEMENT_TABLE',_0x51977f)),this['_setupColumnsRowsFixing'](),_0x5f1220['enableCommand']('insertTable'),_0x5f1220['enableCommand']('selectTableRow'),_0x5f1220['enableCommand']('selectTableColumn');for(const _0x15c31f of['insertTableRowAbove','insertTableRowBelow']){const _0x1243ad=_0x5791d5['commands']['get'](_0x15c31f);_0x5f1220['enableCommand'](_0x15c31f,_0x33e615=>{_0x5791d5['model']['change'](_0x3f2697=>{_0x33e615();const _0x3ebd2c='above'===_0x1243ad['order'],_0x1bb9b6=_0x28c6f6['getSelectionAffectedTableCells'](_0x324b92),_0xff8310=_0x28c6f6['getRowIndexes'](_0x1bb9b6),_0x1f1d92=_0x3ebd2c?_0xff8310['first']-0x1:_0xff8310['last']+0x1,_0x13a4b3=_0x1bb9b6[0x0]['findAncestor']('table'),_0x2ccaf8=_0x28c6f6['createTableWalker'](_0x13a4b3,{'startRow':_0x1f1d92,'endRow':_0x1f1d92}),_0x56f566=Array['from'](_0x2ccaf8)['map'](_0x45f91e=>_0x3f2697['createRangeOn'](_0x45f91e['cell']));_0x5f1220['markMultiRangeInsertion'](_0x56f566,'tableRow');});});}for(const _0x222e2e of['insertTableColumnLeft','insertTableColumnRight']){const _0x5d61f6=_0x5791d5['commands']['get'](_0x222e2e);_0x5f1220['enableCommand'](_0x222e2e,_0x5b345c=>{_0x5791d5['model']['change'](_0x3c05a7=>{_0x5b345c();const _0xc1dcfc='left'===_0x5d61f6['order'],_0x4a8d25=_0x28c6f6['getSelectionAffectedTableCells'](_0x324b92),_0x508782=_0x28c6f6['getColumnIndexes'](_0x4a8d25),_0x1c5076=_0xc1dcfc?_0x508782['first']-0x1:_0x508782['last']+0x1,_0x119bf2=_0x4a8d25[0x0]['findAncestor']('table'),_0x14c7df=_0x28c6f6['createTableWalker'](_0x119bf2,{'startRow':0x0,'column':_0x1c5076,'includeAllSlots':!0x1}),_0x37789f=Array['from'](_0x14c7df)['map'](_0x4a53e9=>_0x3c05a7['createRangeOn'](_0x4a53e9['cell']));_0x5f1220['markMultiRangeInsertion'](_0x37789f,'tableColumn');});});}for(const _0x31bc96 of['removeTableRow','removeTableColumn']){const _0x6f8f4d=_0x31bc96['substr'](0xb),_0x440ee1=_0x6f8f4d['toLowerCase'](),_0x4cd156=_0x440ee1['substr'](0x0,0x3)+'span',_0x1f86cd='table'+_0x6f8f4d,_0xdc2c3b='min'+_0x6f8f4d,_0x2a9e8b='max'+_0x6f8f4d;_0x5f1220['enableCommand'](_0x31bc96,()=>{_0x5791d5['model']['change'](_0x4347f5=>{const _0x5b56af=_0x28c6f6['getSelectionAffectedTableCells'](_0x324b92),_0x5475c9=_0x5b56af[0x0]['findAncestor']('table');let _0x2e260d;if('removeTableRow'==_0x31bc96){const _0xb50c39=_0x28c6f6['getRowIndexes'](_0x5b56af);_0x2e260d={'startRow':_0xb50c39['first'],'endRow':_0xb50c39['last'],'includeAllSlots':!0x0};}else{const _0x493ff0=_0x28c6f6['getColumnIndexes'](_0x5b56af);_0x2e260d={'startColumn':_0x493ff0['first'],'endColumn':_0x493ff0['last'],'includeAllSlots':!0x0};}const _0x268a45=_0x28c6f6['createTableWalker'](_0x5475c9,_0x2e260d),_0x441798=Array['from'](_0x268a45)['map'](({cell:_0xdf1067})=>_0xdf1067),_0x588eda=Re(_0x441798['filter'](_0x449dc0=>_0x449dc0['hasAttribute'](_0x4cd156))),_0x13fc91=Re(_0x441798['filter'](_0x46d49c=>!_0x46d49c['hasAttribute'](_0x4cd156)))['map'](_0x571a2b=>_0x4347f5['createRangeOn'](_0x571a2b)),_0x1f33f0=_0x5f1220['markMultiRangeDeletion'](_0x13fc91,_0x1f86cd);if(_0x1f33f0&&('tableRow'==_0x1f33f0['subType']||'tableColumn'==_0x1f33f0['subType'])){const _0x1005fa=this['_getSuggestionCoords'](_0x1f33f0);for(const _0x318dca of _0x588eda){const _0x5e2107=_0x4347f5['createRangeOn'](_0x318dca),_0x4c4641=_0x28c6f6['getCellLocation'](_0x318dca),_0x9d64bb=_0x318dca['getAttribute'](_0x4cd156)-0x1,_0x195f2c=_0x1005fa[_0xdc2c3b],_0x5a9c55=_0x1005fa[_0x2a9e8b];_0x195f2c<=_0x4c4641[_0x440ee1]&&_0x4c4641[_0x440ee1]+_0x9d64bb<=_0x5a9c55&&_0x1f33f0['addRange'](_0x5e2107);}}});});}function _0x2d81a3(_0x1bfad1){const _0x578447=Array['from'](_0x324b92['getRanges']())['map'](_0x3158b7=>_0x4f8349['fromRange'](_0x3158b7));_0x5791d5['model']['change'](_0x43bd6a=>{const _0x40c65d=_0x43bd6a['batch'];_0x1bfad1=_0x1bfad1['filter'](_0x18ce68=>'$graveyard'!=_0x18ce68['root']['rootName']),_0x43bd6a['setSelection'](_0x1bfad1),_0x5791d5['commands']['get']('removeTableRow')['refresh'](),_0x5791d5['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5791d5['model']['enqueueChange'](()=>{_0x5791d5['model']['enqueueChange'](_0x40c65d,_0x5b9dae=>{const _0x1f7738=_0x578447['filter'](_0x128a43=>'$graveyard'!=_0x128a43['root']['rootName']);_0x1f7738['length']>0x0&&_0x5b9dae['setSelection'](_0x1f7738);for(const _0x52d4fe of _0x578447)_0x52d4fe['detach']();});});});}function _0x3c500d(_0x4bb06d){_0x5791d5['model']['change'](_0x5db08a=>{const _0x242713=Array['from'](_0x324b92['getRanges']())['map'](_0xb34ce6=>_0x4f8349['fromRange'](_0xb34ce6)),_0x13f809=[];for(const _0x43a251 of _0x4bb06d)for(const _0x51f0bf of _0x43a251['getItems']({'shallow':!0x0}))_0x13f809['push'](_0x51f0bf);for(const _0x3640e3 of _0x13f809)'$graveyard'!=_0x3640e3['root']['rootName']&&(_0x5db08a['setSelection'](_0x5db08a['createPositionAt'](_0x3640e3,0x0)),_0x5791d5['commands']['get']('removeTableColumn')['refresh'](),_0x5791d5['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x153fcd=_0x242713['filter'](_0x192386=>'$graveyard'!=_0x192386['root']['rootName']);_0x153fcd['length']>0x0&&_0x5db08a['setSelection'](_0x153fcd);for(const _0x574216 of _0x242713)_0x574216['detach']();});}function _0x5c9c6c(_0x3ce976,_0x541505){return _0x541505['every'](_0xadc429=>_0x3ce976['some'](_0x50eb29=>_0x50eb29['end']['isEqual'](_0xadc429['start'])||_0xadc429['end']['isEqual'](_0x50eb29['start'])));}function _0x29f762(_0x10de60,_0x11c03d){return!_0x10de60['some'](_0x30f371=>_0x11c03d['some'](_0x42c8fe=>_0x30f371['isIntersecting'](_0x42c8fe)))&&_0x10de60['some'](_0x4b6688=>_0x11c03d['some'](_0x5eef94=>_0x4b6688['end']['isTouching'](_0x5eef94['start'])));}_0x5f1220['descriptionFactory']['registerDescriptionCallback'](_0x2872a5=>{if('insertion'!=_0x2872a5['type']&&'deletion'!=_0x2872a5['type'])return;const _0xccc822=_0x2872a5['getContainedElement']();if(null!=_0xccc822&&_0xccc822['is']('element','table')){if('insertion'==_0x2872a5['type']){const _0x5b9c43=_0x2872a5['getItems']()['filter'](_0x510eb5=>_0x510eb5['is']('$textProxy'))['map'](_0x505413=>_0x505413['data']);if(_0x5b9c43['length'])return{'type':'insertion','content':At(_0x244679,'*Insert:*\x20%0',At(_0x244679,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5b9c43['join']('\x20')+'\x22'))};}if('deletion'==_0x2872a5['type']){const _0x57e146=_0x2872a5['getItems']()['filter'](_0xce433e=>_0xce433e['is']('$textProxy'))['map'](_0x3e2002=>_0x3e2002['data']);if(_0x57e146['length'])return{'type':'deletion','content':At(_0x244679,'*Remove:*\x20%0',At(_0x244679,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x57e146['join']('\x20')+'\x22'))};}}}),_0x5f1220['descriptionFactory']['registerDescriptionCallback'](_0x550adc=>{if('tableRow'==_0x550adc['subType']){const _0x1367c6=_0x550adc['getItems']()['filter'](_0x30339d=>_0x30339d['is']('$textProxy'))['map'](_0x275b33=>_0x275b33['data']),_0x2c57eb=this['_getSuggestionCoords'](_0x550adc),_0x1f4ac=_0x2c57eb['maxRow']-_0x2c57eb['minRow']+0x1;if('insertion'==_0x550adc['type'])return _0x1367c6['length']?{'type':'insertion','content':At(_0x244679,'*Insert:*\x20%0',At(_0x244679,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1f4ac,'\x22'+_0x1367c6['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x244679,'*Insert:*\x20%0',At(_0x244679,'ELEMENT_TABLE_ROW',_0x1f4ac))};if('deletion'==_0x550adc['type'])return _0x1367c6['length']?{'type':'deletion','content':At(_0x244679,'*Remove:*\x20%0',At(_0x244679,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1f4ac,'\x22'+_0x1367c6['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x244679,'*Remove:*\x20%0',At(_0x244679,'ELEMENT_TABLE_ROW',_0x1f4ac))};}if('tableColumn'==_0x550adc['subType']){const _0x53ab23=_0x550adc['getItems']()['filter'](_0x2bf42a=>_0x2bf42a['is']('$textProxy'))['map'](_0xf425a=>_0xf425a['data']),_0x54935a=this['_getSuggestionCoords'](_0x550adc),_0x109e8=_0x54935a['maxColumn']-_0x54935a['minColumn']+0x1;if('insertion'==_0x550adc['type'])return _0x53ab23['length']?{'type':'insertion','content':At(_0x244679,'*Insert:*\x20%0',At(_0x244679,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x109e8,'\x22'+_0x53ab23['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x244679,'*Insert:*\x20%0',At(_0x244679,'ELEMENT_TABLE_COLUMN',_0x109e8))};if('deletion'==_0x550adc['type'])return _0x53ab23['length']?{'type':'deletion','content':At(_0x244679,'*Remove:*\x20%0',At(_0x244679,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x109e8,'\x22'+_0x53ab23['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x244679,'*Remove:*\x20%0',At(_0x244679,'ELEMENT_TABLE_COLUMN',_0x109e8))};}}),_0x5f1220['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2d81a3),_0x5f1220['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2d81a3),_0x5f1220['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3c500d),_0x5f1220['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3c500d),_0x5f1220['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5c9c6c),_0x5f1220['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5c9c6c),_0x5f1220['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x29f762),_0x5f1220['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x29f762);}['_acceptFormatSuggestionCallbackFactory'](){const _0x24a1b8=this['editor'],_0x4c0f5e=_0x24a1b8['model']['document']['selection'];return(_0x36a185,_0x2668c6)=>{_0x24a1b8['model']['change'](_0x57e183=>{const {commandName:_0x509765,commandParams:_0x19d3e6}=_0x2668c6;let _0x2831ab=_0x36a185[0x0]['end']['nodeBefore'];_0x19d3e6&&_0x19d3e6[0x0]&&!0x1===_0x19d3e6[0x0]['forceValue']&&(_0x2831ab=_0x36a185[0x0]['start']['nodeAfter']);const _0x475c16=_0x57e183['createRangeIn'](_0x2831ab);if('$graveyard'==_0x475c16['root']['rootName'])return;const _0x3d8ff2=Array['from'](_0x4c0f5e['getRanges']())['map'](_0x52d8ed=>_0x4f8349['fromRange'](_0x52d8ed));_0x57e183['setSelection'](_0x475c16),_0x24a1b8['commands']['get'](_0x509765)['refresh'](),_0x19d3e6['push']({'forceDefaultExecution':!0x0}),_0x24a1b8['execute'](_0x509765,..._0x19d3e6);const _0x3d586c=_0x3d8ff2['filter'](_0x1a5e7e=>'$graveyard'!=_0x1a5e7e['root']['rootName']);_0x3d586c['length']>0x0&&_0x57e183['setSelection'](_0x3d586c);for(const _0x1e26d1 of _0x3d8ff2)_0x1e26d1['detach']();});};}['_getCoordsForCells'](_0x5afbc5){const _0x2ba56b=this['editor']['plugins']['get']('TableUtils');let _0x4ac90d=Number['MAX_SAFE_INTEGER'],_0x28b75e=Number['MIN_SAFE_INTEGER'],_0x1de8d2=Number['MAX_SAFE_INTEGER'],_0x2cf869=Number['MIN_SAFE_INTEGER'];for(const _0x13f09a of _0x5afbc5){if('$graveyard'==_0x13f09a['root']['rootName'])continue;const {row:_0x22ce02,column:_0x6127dd}=_0x2ba56b['getCellLocation'](_0x13f09a),_0x33637f=_0x13f09a['hasAttribute']('rowspan')?_0x13f09a['getAttribute']('rowspan')-0x1:0x0,_0x2bbbb1=_0x13f09a['hasAttribute']('colspan')?_0x13f09a['getAttribute']('colspan')-0x1:0x0;_0x4ac90d=_0x22ce02<_0x4ac90d?_0x22ce02:_0x4ac90d,_0x28b75e=_0x22ce02+_0x33637f>_0x28b75e?_0x22ce02+_0x33637f:_0x28b75e,_0x1de8d2=_0x6127dd<_0x1de8d2?_0x6127dd:_0x1de8d2,_0x2cf869=_0x6127dd+_0x2bbbb1>_0x2cf869?_0x6127dd+_0x2bbbb1:_0x2cf869;}return{'minRow':_0x4ac90d,'maxRow':_0x28b75e,'minColumn':_0x1de8d2,'maxColumn':_0x2cf869};}['_setupColumnsRowsFixing'](){const _0x3af3da=this['editor'],_0x2b0052=_0x3af3da['plugins']['get']('TrackChangesEditing'),_0xba9165=_0x3af3da['plugins']['get']('TableUtils');_0x3af3da['model']['document']['on']('change:data',()=>{const _0x1ee4b6=Array['from'](_0x3af3da['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2d6618,data:_0x786806}of _0x1ee4b6){const {group:_0x314cba,id:_0x26dacc,subType:_0x544db4}=_0x475a96(_0x2d6618);if('suggestion'!=_0x314cba)continue;if(null!=_0x786806['oldRange'])continue;const _0x5eedec=_0x2b0052['getSuggestion'](_0x26dacc);this['_tablePostFixingSubtypes']['includes'](_0x544db4)&&this['_tableSuggestions']['add'](_0x5eedec);}},{'priority':'low'});const _0x2eccbb=(_0x336922,_0x4a12bf)=>{let _0x461db1=!0x1;const _0x268d19=_0x4a12bf['createRangeOn'](_0x336922),_0x19ee63=_0x336922['findAncestor']('table'),_0x1be8e6=_0xba9165['getCellLocation'](_0x336922);for(const _0x505c2d of this['_tableSuggestions']){const _0x4486c5=_0x505c2d['subType'],_0x5ac576=_0x4486c5['startsWith']('tablePaste'),_0x3678d4=_0x4486c5['substr'](_0x5ac576?0xa:0x5),_0x8c6039=_0x3678d4['toLowerCase'](),_0x5da801=_0x8c6039['substr'](0x0,0x3)+'span',_0x21980f='min'+_0x3678d4,_0x558739='max'+_0x3678d4;if(!_0x505c2d['isInContent'])continue;if(_0x19ee63!=_0x505c2d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x505c2d['isIntersectingWithRange'](_0x268d19))continue;const _0x20fd7a=_0x336922['hasAttribute'](_0x5da801)?_0x336922['getAttribute'](_0x5da801)-0x1:0x0,_0x4735d6=this['_getSuggestionCoords'](_0x505c2d),_0x5ece45=_0x4735d6[_0x21980f],_0x385375=_0x4735d6[_0x558739];_0x5ece45<=_0x1be8e6[_0x8c6039]&&_0x1be8e6[_0x8c6039]+_0x20fd7a<=_0x385375&&(_0x505c2d['addRange'](_0x268d19),_0x461db1=!0x0);}return _0x461db1;};_0x3af3da['model']['document']['registerPostFixer'](_0x2a061b=>{let _0x5c415e=!0x1;for(const _0x358239 of _0x3af3da['model']['document']['differ']['getChanges']())if('insert'==_0x358239['type']){if('tableRow'==_0x358239['name']){for(const _0x4ff126 of _0x358239['position']['nodeAfter']['getChildren']())_0x5c415e=_0x5c415e||_0x2eccbb(_0x4ff126,_0x2a061b);}else'tableCell'==_0x358239['name']&&(_0x5c415e=_0x5c415e||_0x2eccbb(_0x358239['position']['nodeAfter'],_0x2a061b));}return _0x5c415e;});}['_getSuggestionCoords'](_0x12b647){return this['_getCoordsForCells'](_0x12b647['getRanges']()['map'](_0x33692e=>_0x33692e['start']['nodeAfter']));}}function Re(_0x4ddeb8){return Array['from'](new Set(_0x4ddeb8)['values']());}class Se extends _0x4a3826{static get['requires'](){return[Ne];}['afterInit'](){const _0xe6d2e8=this['editor'],_0x2f35ad=_0xe6d2e8['model']['document']['selection'],_0x511ea5=_0xe6d2e8['locale'];if(!_0xe6d2e8['plugins']['has']('TableEditing'))return;const _0x541761=_0xe6d2e8['plugins']['get']('TrackChangesEditing'),_0x10af8d=_0xe6d2e8['plugins']['get']('TableUtils'),_0x21f918=_0xe6d2e8['plugins']['get'](Ne);_0x21f918['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x541761['enableCommand']('mergeTableCells',()=>{const _0x5b3a29=_0x10af8d['getSelectionAffectedTableCells'](_0xe6d2e8['model']['document']['selection']);_0xe6d2e8['model']['change'](()=>{_0x541761['markMultiRangeBlockFormat'](_0x5b3a29,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xe6d2e8['commands']['get']('mergeTableCells')['on']('execute',(_0x1aa34d,_0x4535f7)=>{_0xe6d2e8['commands']['get']('trackChanges')['value']&&(_0x4535f7['length']>0x0&&_0x4535f7[_0x4535f7['length']-0x1]&&_0x4535f7[_0x4535f7['length']-0x1]['forceDefaultExecution']||_0x541761['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1aa34d['stop']());},{'priority':'highest'});for(const _0x509c9c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1b820c=_0xe6d2e8['commands']['get'](_0x509c9c);_0x541761['enableCommand'](_0x509c9c,()=>{const _0x2bc9c4=_0xe6d2e8['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x19c9a7=>_0x19c9a7['is']('element','tableCell')),_0x508f87=_0x1b820c['value'];_0xe6d2e8['model']['change'](()=>{_0x541761['markMultiRangeBlockFormat']([_0x2bc9c4,_0x508f87],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3d8e25 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4234e4=_0xe6d2e8['commands']['get'](_0x3d8e25);_0x541761['enableCommand'](_0x3d8e25,()=>{const _0x1a4f93=_0x10af8d['getSelectionAffectedTableCells'](_0xe6d2e8['model']['document']['selection'])[0x0],_0x46bdd0=_0x1a4f93['findAncestor']('table'),{column:_0x562ba1,row:_0x158c0a}=_0x10af8d['getCellLocation'](_0x1a4f93);let _0x23e679=[];if('horizontally'==_0x4234e4['direction']){const _0x3d93bc=_0x10af8d['createTableWalker'](_0x46bdd0,{'startRow':_0x158c0a,'endRow':_0x158c0a,'includeAllSlots':!0x0});_0x23e679=Array['from'](_0x3d93bc)['map'](_0x203d1f=>_0x203d1f['cell']);}else{const _0x8aead2=_0x10af8d['createTableWalker'](_0x46bdd0,{'column':_0x562ba1,'includeAllSlots':!0x0});_0x23e679=Array['from'](_0x8aead2)['map'](_0x220bb0=>_0x220bb0['cell']);}_0xe6d2e8['model']['change'](_0x11d868=>{_0x541761['markBlockFormat'](_0x11d868['createRangeOn'](_0x1a4f93),{'commandName':_0x3d8e25,'commandParams':[]},_0x23e679,_0x3d8e25);});});}_0x541761['descriptionFactory']['registerDescriptionCallback'](_0x413977=>{if('formatBlock'!=_0x413977['type']&&'formatInline'!=_0x413977['type'])return;const {data:_0x2a3d34}=_0x413977;return _0x2a3d34&&'mergeTableCells'==_0x2a3d34['commandName']?{'type':'format','content':At(_0x511ea5,'*Merge\x20cells*')}:void 0x0;}),_0x541761['descriptionFactory']['registerDescriptionCallback'](_0x463855=>{if('formatBlock'!=_0x463855['type']&&'formatInline'!=_0x463855['type'])return;const {data:_0xdeccfe}=_0x463855;return _0xdeccfe?'splitTableCellVertically'==_0xdeccfe['commandName']?{'type':'format','content':At(_0x511ea5,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xdeccfe['commandName']?{'type':'format','content':At(_0x511ea5,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x488260=_0x21f918['_acceptFormatSuggestionCallbackFactory']();for(const _0x3b1b95 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x541761['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3b1b95,'accept',_0x488260);for(const _0x56ddb9 of['splitTableCellVertically','splitTableCellHorizontally'])_0x541761['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x56ddb9,'accept',_0x488260);_0x541761['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x45c3b5=>{_0xe6d2e8['model']['change'](_0x421934=>{const _0x401bf3=Array['from'](_0x2f35ad['getRanges']())['map'](_0x42050f=>_0x4f8349['fromRange'](_0x42050f));_0x421934['setSelection'](_0x45c3b5),_0xe6d2e8['commands']['get']('mergeTableCells')['refresh'](),_0xe6d2e8['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x22faa5=_0x401bf3['filter'](_0x1d6887=>'$graveyard'!=_0x1d6887['root']['rootName']);_0x22faa5['length']>0x0&&_0x421934['setSelection'](_0x22faa5);for(const _0x4bf71a of _0x401bf3)_0x4bf71a['detach']();});});for(const _0x573aba of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2f08c6=_0xe6d2e8['commands']['get'](_0x573aba);_0x2f08c6['on']('set:isEnabled',(_0x134bcc,_0x5dc546,_0x50a356)=>{if(_0x50a356){const _0xbdb7a5=_0xe6d2e8['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x37c36c=>_0x37c36c['is']('element','tableCell'));this['_areMergableCells'](_0x2f08c6['value'],_0xbdb7a5)||(_0x134bcc['return']=!0x1,_0x134bcc['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x37a9f0=this['editor']['commands']['get']('mergeTableCells'),_0x437a32=this['editor']['plugins']['get']('TableUtils');if(!_0x37a9f0['isEnabled'])return!0x1;const _0x26b031=_0x437a32['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x41a7d2 of _0x26b031)for(const _0x13d049 of _0x26b031)if(_0x41a7d2!=_0x13d049&&!this['_areMergableCells'](_0x41a7d2,_0x13d049))return!0x1;return!0x0;}['_areMergableCells'](_0x57c991,_0x5d3edc){const _0x179d2f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e7b01=this['editor']['model']['createRangeOn'](_0x57c991),_0x2f2626=this['editor']['model']['createRangeOn'](_0x5d3edc),_0x38a1e5=new Set(),_0x509ee4=new Set();for(const _0x2c4f56 of _0x179d2f['getSuggestions']())if(('insertion'==_0x2c4f56['type']||'deletion'==_0x2c4f56['type']||'mergeTableCells'==_0x2c4f56['subType'])&&_0x2c4f56['isInContent']){for(const _0x2e7a1e of _0x2c4f56['getRanges']())_0x2e7a1e['containsRange'](_0x1e7b01,!0x0)&&_0x38a1e5['add'](_0x2c4f56['type']+':'+_0x2c4f56['author']['id']),_0x2e7a1e['containsRange'](_0x2f2626,!0x0)&&_0x509ee4['add'](_0x2c4f56['type']+':'+_0x2c4f56['author']['id']);}if(_0x38a1e5['size']!=_0x509ee4['size'])return!0x1;for(const _0x1c81cd of _0x38a1e5)if(!_0x509ee4['has'](_0x1c81cd))return!0x1;return!0x0;}}class Me extends _0x4a3826{static get['requires'](){return[Ne];}['afterInit'](){const _0x14ac16=this['editor'];if(!_0x14ac16['plugins']['has']('TableEditing'))return;const _0x423fdb=_0x14ac16['locale'],_0x3b8d13=_0x14ac16['plugins']['get']('TrackChangesEditing');_0x3b8d13['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3b8d13['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3b8d13['descriptionFactory']['registerAttributeLabel']('headingRows',At(_0x423fdb,'FORMAT_HEADER_ROW')),_0x3b8d13['descriptionFactory']['registerAttributeLabel']('headingColumns',At(_0x423fdb,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5ecd94=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ca207=this['editor']['plugins']['get'](Ne)['_acceptFormatSuggestionCallbackFactory']();_0x5ecd94['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3ca207),_0x5ecd94['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3ca207),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0xa09b8e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c4875=this['editor']['plugins']['get']('TableUtils');function _0x1f25c({showActiveMarker:_0x13da08=!0x0,setDataAttribute:_0x107db9=!0x0}={}){return(_0x2025bb,_0x48a0da,_0x20100b)=>{const {type:_0x336413,id:_0x8d2331}=_0x475a96(_0x48a0da['markerName']);if(!_0xa09b8e['hasSuggestion'](_0x8d2331))return;const _0x44c9eb=_0xa09b8e['getSuggestion'](_0x8d2331),_0x3691fe=_0x44c9eb['data'];if('formatBlock'!=_0x44c9eb['type']||!_0x3691fe||'setTableColumnHeader'!=_0x3691fe['commandName'])return;if(_0x48a0da['item'])return void _0x2025bb['stop']();if(!_0x20100b['consumable']['consume'](_0x48a0da['markerRange'],_0x2025bb['name']))return;const _0x25fd11=_0x48a0da['markerRange']['start']['nodeAfter'],_0x375b13=_0x48a0da['markerRange']['end']['nodeBefore'],_0x1d007a=_0x25fd11['parent']['parent'],{column:_0x329b94}=_0x4c4875['getCellLocation'](_0x25fd11),{column:_0x1e81a1}=_0x4c4875['getCellLocation'](_0x375b13);for(let _0x119292=_0x329b94;_0x119292<=_0x1e81a1;_0x119292++){const _0x3a5a36=_0x4c4875['createTableWalker'](_0x1d007a,{'column':_0x119292,'includeAllSlots':!0x1});for(const _0x20ac6a of _0x3a5a36){const _0x6bf4e8=_0x20ac6a['cell'],_0x2826dd=_0x20100b['mapper']['toViewElement'](_0x6bf4e8);_0x20100b['writer']['addClass']('ck-suggestion-marker-'+_0x336413,_0x2826dd),_0x107db9&&_0x20100b['writer']['setAttribute']('data-suggestion',_0x8d2331,_0x2826dd),_0x20100b['mapper']['bindElementToMarker'](_0x2826dd,_0x48a0da['markerName']),_0x13da08&&(_0xa09b8e['activeMarkers']['includes'](_0x48a0da['markerName'])?_0x20100b['writer']['addClass']('ck-suggestion-marker--active',_0x2826dd):_0x20100b['writer']['removeClass']('ck-suggestion-marker--active',_0x2826dd));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1f25c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xe8d4b,_0x9da8,_0x36a2a4)=>{_0x36a2a4['options']['showSuggestionHighlights']&&_0x1f25c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xe8d4b,_0x9da8,_0x36a2a4);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1f4498,_0x52bea2,_0x19d335)=>{const {type:_0x1cf853,id:_0x2af7ce}=_0x475a96(_0x52bea2['markerName']);if(!_0xa09b8e['hasSuggestion'](_0x2af7ce))return;const _0x2c4ff3=_0xa09b8e['getSuggestion'](_0x2af7ce),_0x9880e5=_0x2c4ff3['data'];if('formatBlock'!=_0x2c4ff3['type']||!_0x9880e5||'setTableColumnHeader'!=_0x9880e5['commandName'])return;const _0x4e2ec2=_0x19d335['mapper']['markerNameToElements'](_0x52bea2['markerName']);if(_0x4e2ec2){for(const _0x64ca7d of _0x4e2ec2)_0x19d335['writer']['removeClass']('ck-suggestion-marker-'+_0x1cf853,_0x64ca7d),_0x19d335['writer']['removeClass']('ck-suggestion-marker--active',_0x64ca7d),_0x19d335['writer']['removeAttribute']('data-suggestion',_0x64ca7d),_0x19d335['mapper']['unbindElementFromMarkerName'](_0x64ca7d,_0x52bea2['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x5d5443=this['editor'],_0xc4ad82=_0x5d5443['locale'];function _0x13e410(_0x49a910){return{'type':'format','content':At(_0xc4ad82,'*Format:*\x20%0',_0x49a910)};}_0x5d5443['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4221a4=>{if('formatBlock'!=_0x4221a4['type'])return;const {data:_0x175e86}=_0x4221a4;if(_0x175e86){if('setTableRowHeader'==_0x175e86['commandName']){const _0x12f31f=_0x175e86['commandParams'][0x0]['forceValue'];return _0x13e410(At(_0xc4ad82,_0x12f31f?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x175e86['commandName']){const _0x2dd802=_0x175e86['commandParams'][0x0]['forceValue'];return _0x13e410(At(_0xc4ad82,_0x2dd802?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Oe extends _0x4a3826{static get['requires'](){return[Ne];}['afterInit'](){const _0x4b4639=this['editor'];if(!_0x4b4639['plugins']['has']('TableEditing')||!_0x4b4639['config']['get']('table.enableFooters'))return;const _0xc57876=_0x4b4639['locale'],_0x5d4a84=_0x4b4639['plugins']['get']('TrackChangesEditing');_0x5d4a84['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x5d4a84['descriptionFactory']['registerAttributeLabel']('footerRows',At(_0xc57876,'FORMAT_FOOTER_ROW'));}}class we extends _0x4a3826{['afterInit'](){const _0x263b82=this['editor'],_0x5e0d06=_0x263b82['locale'],_0x10646f=_0x263b82['plugins']['get']('TrackChangesEditing');function _0xb266e(_0x5571e3){return{'type':'format','content':''+At(_0x5e0d06,'*Set\x20table\x20type:*\x20%0',_0x5571e3)};}_0x263b82['plugins']['has']('TableLayout')&&(_0x10646f['enableCommand']('insertTableLayout'),_0x10646f['enableDefaultAttributesIntegration']('tableType'),_0x10646f['descriptionFactory']['registerElementLabel'](_0xaa881e=>_0xaa881e['is']('element','table')&&'layout'===_0xaa881e['getAttribute']('tableType'),_0x219283=>At(_0x5e0d06,'ELEMENT_LAYOUT_TABLE',_0x219283)),_0x10646f['descriptionFactory']['registerDescriptionCallback'](_0x1cc7b7=>{const {data:_0x5f244f}=_0x1cc7b7;if(_0x5f244f&&'tableType'==_0x5f244f['key'])switch(_0x5f244f['newValue']){case'layout':return _0xb266e(At(_0x5e0d06,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xb266e(At(_0x5e0d06,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Fe=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Be['map'](_0x37a77e=>[_0x37a77e,null]));class De extends _0x4a3826{static get['requires'](){return[Ne];}['afterInit'](){const _0xac8bf0=this['editor'];if(!_0xac8bf0['plugins']['has']('TableClipboard'))return;const _0x105d9a=_0xac8bf0['plugins']['get']('TrackChangesEditing'),_0x69d832=_0xac8bf0['plugins']['get']('TableUtils'),_0x4d2233=_0xac8bf0['plugins']['get'](Ne),_0x24093f=_0xac8bf0['plugins']['get']('TableClipboard'),_0x37d2e4=_0xac8bf0['plugins']['get']('TableSelection'),_0x2bf80e=_0xac8bf0['plugins']['get'](ut);_0x4d2233['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xac8bf0['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xac8bf0['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3280f2=null,_0x9b9d24=!0x1;_0x2bf80e['on']('contentInsertion',(_0x332572,_0x58b46d)=>{_0x9b9d24='paste'===_0x58b46d['method'];}),_0xac8bf0['model']['on']('insertContent',(_0x13cb63,_0x5b43ce)=>{if(!_0x9b9d24&&null===_0x37d2e4['getSelectedTableCells']())return;const [_0x452e76,_0x185ca1]=_0x5b43ce,_0x4a6fb0=_0x5b43ce[_0x5b43ce['length']-0x1];_0x4a6fb0&&_0x4a6fb0['forceDefaultExecution']||_0x105d9a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2151bf,_0x460a1b,_0x3cb8b4,_0x2baf8a,_0x3be64a){if(_0x460a1b&&!_0x460a1b['is']('documentSelection'))return!0x1;const _0x18f777=_0x3be64a['getTableIfOnlyTableInContent'](_0x2151bf,_0x3cb8b4);if(!_0x18f777||!xe(_0x18f777,void 0x0,_0x2baf8a))return!0x1;const _0x49c42b=_0x2baf8a['getSelectionAffectedTableCells'](_0x3cb8b4['document']['selection']);if(!_0x49c42b['length'])return!0x1;const _0x59720e=_0x49c42b[0x0]['findAncestor']('table'),_0x3a95a8=_0x2baf8a['getRowIndexes'](_0x49c42b),_0x6209d=_0x2baf8a['getColumnIndexes'](_0x49c42b),_0x42917a={'startRow':_0x3a95a8['first'],'endRow':_0x3a95a8['last'],'startColumn':_0x6209d['first'],'endColumn':_0x6209d['last']};return 0x1==_0x49c42b['length']&&(_0x42917a['endRow']+=_0x2baf8a['getRows'](_0x18f777)-0x1,_0x42917a['endColumn']+=_0x2baf8a['getColumns'](_0x18f777)-0x1),xe(_0x59720e,_0x42917a,_0x2baf8a);}(_0x452e76,_0x185ca1,_0xac8bf0['model'],_0x69d832,_0x24093f)&&(_0x13cb63['stop'](),_0x3280f2={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xac8bf0['model']['change'](()=>{_0xac8bf0['model']['insertContent'](_0x5b43ce[0x0],_0x5b43ce[0x1],_0x5b43ce[0x2],{'forceDefaultExecution':!0x0});const _0x2b74da=_0x15ca27(),{rowInsertionRanges:_0x361c12,columnInsertionRanges:_0x1c5cc8,insertionRanges:_0x62d7d1,deletionRanges:_0x218f7d,cells:_0x2f87ce}=_0x3280f2;_0x361c12['length']&&_0x105d9a['markMultiRangeInsertion'](_0x361c12,'tablePasteRow',{'tablePasteChainId':_0x2b74da}),_0x1c5cc8['length']&&_0x105d9a['markMultiRangeInsertion'](_0x1c5cc8,'tablePasteColumn',{'tablePasteChainId':_0x2b74da}),_0x62d7d1['length']&&(_0x105d9a['markMultiRangeInsertion'](_0x62d7d1,'tablePaste',{'tablePasteChainId':_0x2b74da,'skipNestingCheck':!0x0}),_0x62d7d1['forEach'](_0x25f9f=>_0x25f9f['detach']?.())),_0x218f7d['length']&&(_0x105d9a['markMultiRangeDeletion'](_0x218f7d,'tablePaste',{'tablePasteChainId':_0x2b74da,'skipNestingCheck':!0x0}),_0x218f7d['forEach'](_0x101091=>_0x101091['detach']?.()));const _0x840b67=_0x105d9a['markMultiRangeBlockFormat'](_0x2f87ce['map'](({element:_0x5bb669})=>_0x5bb669),{'formatGroupId':_0x15ca27()},[],'tablePasteCell',{'tablePasteChainId':_0x2b74da});if(_0x840b67){const _0x4e600b=_0x840b67['getMarkers'](),_0x555e9a=[];for(const {element:_0x4084d2,attributes:_0x1773d3}of _0x2f87ce){if(!_0x1773d3)continue;const _0x69ed4f=_0xac8bf0['model']['createRangeOn'](_0x4084d2),_0x17f6c2=_0x4e600b['find'](_0x110b5e=>_0x110b5e['getRange']()['isEqual'](_0x69ed4f));_0x17f6c2&&_0x555e9a['push']([_0x17f6c2['name'],_0x1773d3]);}_0x555e9a['length']&&_0x840b67['setAttribute']('markerAttributes',Object['fromEntries'](_0x555e9a));}_0x3280f2=null;}));},{'priority':_0x3cf629['high']+0xa}),_0x2bf80e['on']('contentInsertion',()=>{_0x9b9d24=!0x1;},{'priority':'lowest'}),_0xac8bf0['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x522039,_0x2f5b3f)=>{const [_0x312a94,_0x1dcac3,,_0x368c9a]=_0x2f5b3f;if(!_0x3280f2)return;_0x522039['stop']();const _0x2b42c5=_0x312a94['cell'],_0x4090b9=_0x1dcac3,_0x5ef056=ve(_0x2b42c5),_0x16b118=ve(_0x4090b9);_0x522039['return']=_0x2b42c5;let _0x3f052b=null,_0x441bc0=null;if(_0x16b118||_0x5ef056){if(_0x5ef056&&!_0x16b118){_0x368c9a['remove'](_0x2b42c5['getChild'](0x0));for(const _0x1dfc42 of Array['from'](_0x4090b9['getChildren']()))_0x368c9a['insert'](_0x1dfc42,_0x2b42c5,'end');const _0x8c5662=_0x3280f2['rowInsertionIndexes']['includes'](_0x312a94['row']),_0x2cfcd4=_0x3280f2['columnInsertionIndexes']['includes'](_0x312a94['column']);_0x8c5662||_0x2cfcd4||(_0x3f052b=_0x4f8349['fromRange'](_0x368c9a['createRangeIn'](_0x2b42c5)));}else _0x16b118&&!_0x5ef056&&(_0x441bc0=_0x368c9a['createRangeIn'](_0x2b42c5));}else{const _0x51d18f=_0x368c9a['createElement']('tableCellSuggestion'),_0x2d8394=_0x368c9a['createElement']('tableCellSuggestion');_0x368c9a['wrap'](_0x368c9a['createRangeIn'](_0x2b42c5),_0x2d8394),_0x368c9a['insert'](_0x51d18f,_0x2b42c5,0x0);for(const _0x513907 of Array['from'](_0x4090b9['getChildren']()))_0x368c9a['insert'](_0x513907,_0x51d18f,'end');_0x3f052b=_0x4f8349['fromRange'](_0x368c9a['createRangeOn'](_0x51d18f)),_0x441bc0=_0x4f8349['fromRange'](_0x368c9a['createRangeOn'](_0x2d8394));}const _0x39dc77=Array['from'](_0x4090b9['getAttributes']())['filter'](([_0x472a88])=>Be['includes'](_0x472a88));_0x3280f2['cells']['push']({'element':_0x2b42c5,'attributes':_0x39dc77['length']?Object['fromEntries'](_0x39dc77):null}),_0x3f052b&&_0x3280f2['insertionRanges']['push'](_0x3f052b),_0x441bc0&&_0x3280f2['deletionRanges']['push'](_0x441bc0);},{'priority':'high'}),_0x69d832['on']('insertColumns',(_0x384233,_0x435ab1)=>{const [_0x1f4c37,_0x2c88da={}]=_0x435ab1;if(!_0x3280f2)return;const _0xfcfa28=_0x2c88da['at']||0x0,_0x21d64=_0x2c88da['columns']||0x1;_0x3280f2['columnInsertionIndexes']=new Array(_0x21d64)['fill'](_0xfcfa28)['map']((_0x3c12aa,_0x230bfd)=>_0x3c12aa+_0x230bfd);for(const {cell:_0x2945b8}of _0x69d832['createTableWalker'](_0x1f4c37,{'startColumn':_0xfcfa28,'endColumn':_0xfcfa28+_0x21d64-0x1}))_0x3280f2['columnInsertionRanges']['push'](_0xac8bf0['model']['createRangeOn'](_0x2945b8));},{'priority':'low'}),_0x69d832['on']('insertRows',(_0x26ecba,_0x1e6544)=>{const [_0x1fdeed,_0x124a82={}]=_0x1e6544;if(!_0x3280f2)return;const _0xe04948=_0x124a82['at']||0x0,_0x4ac133=_0x124a82['rows']||0x1;_0x3280f2['rowInsertionIndexes']=new Array(_0x4ac133)['fill'](_0xe04948)['map']((_0x290b49,_0x3f6ba3)=>_0x290b49+_0x3f6ba3);for(const {cell:_0xed1e1f}of _0x69d832['createTableWalker'](_0x1fdeed,{'startRow':_0xe04948,'endRow':_0xe04948+_0x4ac133-0x1}))_0x3280f2['rowInsertionRanges']['push'](_0xac8bf0['model']['createRangeOn'](_0xed1e1f));},{'priority':'low'}),_0x105d9a['descriptionFactory']['registerDescriptionCallback'](_0x303bb7=>{if(_0x303bb7['subType']&&_0x303bb7['subType']['startsWith']('tablePaste'))return _0x303bb7['previous']?{}:{'type':'insertion','content':At(_0xac8bf0['locale'],'*Replace\x20table\x20cells*')};});const _0x53e3f3=()=>!0x1;for(const _0x4d1c08 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x105d9a['_suggestionFactory']['registerCustomCallback']('insertion',_0x4d1c08,'join',_0x53e3f3),_0x105d9a['_suggestionFactory']['registerCustomCallback']('deletion',_0x4d1c08,'join',_0x53e3f3),_0x105d9a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4d1c08,'join',_0x53e3f3);_0x105d9a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x53e3f3),_0x105d9a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1a7ca4,_0x443492,_0x50b802)=>{const _0x54d95d=_0x1a7ca4['map'](_0x4ed95e=>_0x4ed95e['getContainedElement']())['filter'](_0xdb5e5f=>_0xdb5e5f),_0x2b4e94=new Map(_0x54d95d['map'](_0x6b6817=>[_0x6b6817,null]));if(_0x3280f2){for(const {element:_0x5428a9,attributes:_0x124269}of _0x3280f2['cells'])_0x124269&&_0x2b4e94['set'](_0x5428a9,_0x124269);}else{if(_0x50b802&&_0x50b802['markerAttributes'])for(const [_0x4031d3,_0x1670d5]of Object['entries'](_0x50b802['markerAttributes'])){const _0x1d16cd=_0xac8bf0['model']['markers']['get'](_0x4031d3),_0x42f758=_0x1d16cd?_0x1d16cd['getRange']()['getContainedElement']():null;_0x42f758&&_0x2b4e94['set'](_0x42f758,_0x1670d5);}}_0xac8bf0['model']['change'](_0x4fffea=>{for(const [_0x5b8a67,_0x244747]of _0x2b4e94)_0x4fffea['setAttributes']({...Fe,..._0x244747},_0x5b8a67);});});const _0x2c37ae=(_0x4a9f6b,_0x2aa231)=>{_0x105d9a['_suggestionFactory']['registerCustomCallback'](_0x4a9f6b,'tablePaste',_0x2aa231,(_0x4a0b69,_0x19ce31,_0x919648)=>{_0xac8bf0['model']['change'](_0x3cc7f0=>{const _0x139458=[];for(const _0x8af08b of _0x4a0b69){const _0x5d9a0b=_0x8af08b['start']['nodeAfter'];_0x5d9a0b['is']('element','tableCellSuggestion')&&_0x139458['push'](_0x5d9a0b);}_0x105d9a['_suggestionFactory']['getSuggestionCallback'](_0x4a9f6b,null,_0x2aa231)(_0x4a0b69,_0x19ce31,_0x919648);for(const _0x55af6f of _0x139458)'$graveyard'!=_0x55af6f['root']['rootName']&&_0x3cc7f0['unwrap'](_0x55af6f);});});};_0x2c37ae('insertion','accept'),_0x2c37ae('insertion','discard'),_0x2c37ae('deletion','accept'),_0x2c37ae('deletion','discard'),_0x105d9a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2b5539=>{const _0x2b8f90=_0x2b5539['map'](_0x2a7187=>_0x2a7187['getContainedElement']()),_0x426c32=_0x2b8f90[0x0]['findAncestor']('table'),{minRow:_0x57b3a3,maxRow:_0x25de56}=_0x4d2233['_getCoordsForCells'](_0x2b8f90);_0x69d832['removeRows'](_0x426c32,{'at':_0x57b3a3,'rows':_0x25de56-_0x57b3a3+0x1});}),_0x105d9a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x378db4=>{const _0x17eea3=_0x378db4['map'](_0x1ac393=>_0x1ac393['getContainedElement']()),_0x44c1c1=_0x17eea3[0x0]['findAncestor']('table'),{minColumn:_0x34da22,maxColumn:_0x406e58}=_0x4d2233['_getCoordsForCells'](_0x17eea3);_0x69d832['removeColumns'](_0x44c1c1,{'at':_0x34da22,'columns':_0x406e58-_0x34da22+0x1});});const _0x5b6b7e=(_0x2dc0a9,_0x2d8a29)=>{if(!_0x2d8a29['subType']||!_0x2d8a29['subType']['startsWith']('tablePaste'))return;const _0x34257a=_0x2d8a29['attributes']['tablePasteChainId'],_0x16ce80=_0x105d9a['getSuggestions']()['filter'](_0x2a53c5=>_0x2a53c5['isInContent']&&_0x2a53c5['attributes']&&_0x2a53c5['attributes']['tablePasteChainId']==_0x34257a);_0x16ce80['length']&&_0x2d8a29['getAllAdjacentSuggestions']()['length']!=_0x16ce80['length']&&_0x16ce80['reduce']((_0x138bcf,_0x546324)=>(_0x138bcf['next']=_0x546324,_0x546324['previous']=_0x138bcf,_0x546324));};function _0x3a5e9c(_0x12be4f,_0x2262de=!0x0){const {id:_0x5f1216,authorId:_0x818e39}=_0x475a96(_0x12be4f['markerName']),_0x43cbee=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x36f10d=_0x105d9a['activeMarkers']['includes'](_0x12be4f['markerName']);return _0x36f10d&&_0x43cbee['push']('ck-suggestion-marker--active'),{'classes':_0x43cbee,'attributes':{'data-suggestion':_0x5f1216,'data-author-id':_0x818e39},'priority':_0x36f10d&&_0x2262de?0xbc2:0xbb8};}_0x105d9a['on']('suggestionLoaded',_0x5b6b7e,{'priority':'high'}),_0x105d9a['on']('suggestionUnloaded',_0x5b6b7e,{'priority':'high'}),_0xac8bf0['model']['document']['registerPostFixer'](()=>{let _0x590baa=!0x1;const _0x3c858b=Array['from'](_0xac8bf0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x245657,data:_0xee3ab4}of _0x3c858b){const {group:_0x1f6327,type:_0x35ad25,id:_0x58f084}=_0x475a96(_0x245657);if('suggestion'!=_0x1f6327||'deletion'!=_0x35ad25||_0xee3ab4['oldRange'])continue;if(!_0x105d9a['hasSuggestion'](_0x58f084))continue;const _0xc4fc22=_0x105d9a['getSuggestion'](_0x58f084)['getRanges'](),_0x54212c=_0xac8bf0['plugins']['get']('Users')['me'];for(const _0xa4946a of _0x105d9a['getSuggestions']()){if(!_0xa4946a['isInContent']||_0xa4946a['author']!=_0x54212c)continue;if('formatBlock'!=_0xa4946a['type']||'tablePasteCell'!=_0xa4946a['subType'])continue;if(_0xa4946a['getRanges']()['every'](_0x62aed2=>_0xc4fc22['some'](_0x31c24e=>_0x31c24e['containsRange'](_0x62aed2,!0x0)))){for(const _0x3fe1bc of _0xa4946a['getAllAdjacentSuggestions']())_0x3fe1bc['isInContent']&&(_0x3fe1bc['discard'](),_0x590baa=!0x0);}}}return _0x590baa;}),_0xac8bf0['model']['document']['registerPostFixer'](_0x3190cd=>{const _0x13c6ba=_0xac8bf0['commands']['get']('redo');if(!_0x13c6ba||!_0x13c6ba['_createdBatches']['has'](_0x3190cd['batch']))return!0x1;let _0x59e5d1=!0x1;const _0x1e0059=_0xac8bf0['plugins']['get']('Users')['me'],_0x47b507=_0xac8bf0['model']['document']['differ']['getChanges'](),_0x24075d=Array['from'](_0xac8bf0['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3d2e6a,data:_0x5f42b7})=>{const {group:_0x57c4df,subType:_0x38f32c,authorId:_0x411002}=_0x475a96(_0x3d2e6a);return'suggestion'==_0x57c4df&&'tablePaste'==_0x38f32c&&_0x411002==_0x1e0059['id']&&!_0x5f42b7['oldRange'];});for(const _0x4d4c43 of _0x47b507){if('insert'!=_0x4d4c43['type']||'tableCellSuggestion'!=_0x4d4c43['name']||0x1!=_0x4d4c43['length'])continue;const _0x22090f=_0x3190cd['createRange'](_0x4d4c43['position'],_0x4d4c43['position']['getShiftedBy'](0x1));if(!_0x24075d['find'](({data:_0x5eb4b4})=>_0x5eb4b4['newRange']['isEqual'](_0x22090f))){for(const {name:_0x37a2ae,data:_0x2b90cc}of _0x24075d)if(_0x22090f['containsRange'](_0x2b90cc['newRange'])){_0x3190cd['updateMarker'](_0x37a2ae,{'range':_0x22090f}),_0x59e5d1=!0x0;break;}}}return _0x59e5d1;}),_0xac8bf0['model']['document']['registerPostFixer'](_0x57a22e=>{let _0x45fb90=!0x1;const _0x1704d3=_0xac8bf0['plugins']['get']('Users')['me'],_0x211d16=_0x105d9a['getSuggestions']()['filter'](_0x4c0e54=>_0x4c0e54['isInContent']&&_0x4c0e54['author']==_0x1704d3),_0x44afa0=new Set(),_0x4c24b7=new Set();for(const _0x194e63 of _0x211d16)if('tablePaste'==_0x194e63['subType'])for(const _0x277175 of _0x194e63['getMarkers']()){const _0x426c68=_0x277175['getRange']()['getContainedElement']();if(_0x426c68){if(_0x426c68['is']('element','tableCellSuggestion')&&ve(_0x426c68)){_0x194e63['removeMarker'](_0x277175['name']),_0x44afa0['add'](_0x426c68),_0x45fb90=!0x0;const _0x3f3090=_0x426c68['nextSibling'],_0x2c5e75=_0x426c68['previousSibling'],_0x466672=_0x3f3090&&_0x3f3090['is']('element','tableCellSuggestion'),_0x56bbd3=_0x2c5e75&&_0x2c5e75['is']('element','tableCellSuggestion');_0x466672&&!_0x44afa0['has'](_0x3f3090)&&_0x4c24b7['add'](_0x3f3090),_0x56bbd3&&!_0x44afa0['has'](_0x2c5e75)&&_0x4c24b7['add'](_0x2c5e75);}else _0x426c68['is']('element','paragraph')&&_0x426c68['isEmpty']&&(_0x194e63['removeMarker'](_0x277175['name']),_0x45fb90=!0x0);}}else{if('tablePasteCell'==_0x194e63['subType']){if(!_0x194e63['attributes']||!_0x194e63['attributes']['tablePasteChainId'])continue;const _0x444764=_0x194e63['attributes']['markerAttributes'];if(_0x444764&&Object['keys'](_0x444764)['length'])continue;const _0x53a7b9=_0x194e63['attributes']['tablePasteChainId'];let _0x425943=!0x0,_0x169c0d=!0x0;for(const _0x1ea2fe of _0x211d16)if(_0x1ea2fe['subType']&&_0x1ea2fe['subType']['startsWith']('tablePaste')){if(!_0x1ea2fe['attributes']['tablePasteChainId']){_0x169c0d=!0x1;break;}if(_0x1ea2fe['id']!=_0x194e63['id']&&_0x1ea2fe['attributes']['tablePasteChainId']==_0x53a7b9){_0x425943=!0x1;break;}}_0x169c0d&&_0x425943&&(_0x194e63['removeMarkers'](),_0x45fb90=!0x0);}}for(const _0x4cf408 of _0x44afa0)_0x57a22e['remove'](_0x4cf408);for(const _0x556238 of _0x4c24b7)_0x57a22e['unwrap'](_0x556238);return _0x45fb90;}),_0xac8bf0['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3432bf=>_0x3a5e9c(_0x3432bf),'converterPriority':'high'}),_0xac8bf0['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x9712aa,_0x2ca28b)=>_0x2ca28b['options']['showSuggestionHighlights']?_0x3a5e9c(_0x9712aa,!0x1):null,'converterPriority':'high'});const _0x404bd2=_0xac8bf0['editing']['view'];this['listenTo'](_0x404bd2['document'],'clipboardOutput',(_0x501c0c,_0xc0c2d2)=>{const _0x22f473=[];for(const _0x460d55 of _0x404bd2['createRangeIn'](_0xc0c2d2['content'])['getItems']())_0x460d55['is']('element','suggestion-td')&&_0x22f473['push'](_0x460d55);_0x404bd2['change'](_0x2458df=>{for(const _0x516ea1 of _0x22f473)_0x2458df['move'](_0x2458df['createRangeIn'](_0x516ea1),_0x2458df['createPositionBefore'](_0x516ea1)),_0x2458df['remove'](_0x516ea1);});});}}function ve(_0x3e1732){if(_0x3e1732['isEmpty'])return!0x0;const _0x467e65=_0x3e1732['getChild'](0x0);return _0x467e65['is']('element','paragraph')&&_0x467e65['isEmpty'];}function xe(_0x1cc9ed,_0x1fbc63={},_0x586be7){for(const {isAnchor:_0x3ea0fe,cellHeight:_0x16d5f3,cellWidth:_0x34d2c1}of _0x586be7['createTableWalker'](_0x1cc9ed,{'includeAllSlots':!0x0,..._0x1fbc63}))if(!_0x3ea0fe||0x1!=_0x16d5f3||0x1!=_0x34d2c1)return!0x1;return!0x0;}class Pe extends _0x4a3826{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5d6c00=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d6c00['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5d6c00['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5d6c00['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5d6c00['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5d6c00['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5d6c00['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x51171c,_0x1e6204){const _0x5cc447=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34b126=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x29a72d=_0x1e6204['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x527edf=_0x34b126['getColumnGroupElement'](_0x29a72d);let _0x140cbb=_0x527edf?_0x34b126['getTableColumnsWidths'](_0x527edf):null,_0x1c9066=_0x29a72d['getAttribute']('tableWidth')||null;const _0x4cf455=_0x1e6204['tableWidth']||_0x1c9066,_0x236798=_0x1e6204['columnWidths']||_0x140cbb,_0x34d11b=this['editor']['plugins']['get']('Users')['me'];for(const _0x1ae565 of _0x5cc447['getSuggestions']()){const _0x2dcbb3=_0x1ae565['getContainedElement']();if('resizeTable'===_0x1ae565['subType']&&_0x2dcbb3===_0x29a72d){_0x1ae565['author']!==_0x34d11b&&_0x1ae565['discard']();const _0x2e6dbd=_0x1ae565['data']['commandParams'];_0x1c9066=_0x2e6dbd[0x0]['tableWidth'],_0x140cbb=_0x2e6dbd[0x0]['columnWidths'];break;}}_0x51171c({'table':_0x29a72d,'tableWidth':_0x4cf455,'columnWidths':_0x236798}),_0x5cc447['markBlockFormat'](_0x29a72d,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1c9066,'columnWidths':_0x140cbb}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x14b1ac){if('formatBlock'!=_0x14b1ac['type']&&'formatInline'!=_0x14b1ac['type'])return;const {data:_0x18e57c}=_0x14b1ac;if(_0x18e57c&&'resizeTable'===_0x18e57c['formatGroupId']){const _0x2ebbb1='*Format:*\x20resize\x20table';return{'type':'format','content':At(this['editor']['locale'],_0x2ebbb1)};}}}class Ue extends _0x4a3826{['afterInit'](){const _0x422542=this['editor'];_0x422542['plugins']['has']('Template')&&_0x422542['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ge extends _0x4a3826{['afterInit'](){const _0x53584e=this['editor'];if(!_0x53584e['commands']['get']('insertTableOfContents'))return;_0x53584e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5e2438=_0x53584e['plugins']['get']('TrackChangesEditing'),_0x3e379d=_0x53584e['locale'];_0x5e2438['descriptionFactory']['registerElementLabel']('tableOfContents',_0x373a79=>At(_0x3e379d,'ELEMENT_TABLE_OF_CONTENTS',_0x373a79));}}class He extends _0x4a3826{['afterInit'](){const _0x43cd17=this['editor'];if(!_0x43cd17['plugins']['has']('Title'))return;_0x43cd17['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>At(_0x43cd17['locale'],'ELEMENT_TITLE')),_0x43cd17['model']['document']['registerPostFixer'](_0x5ccc14=>{let _0x331c9c=!0x1;const _0x17a33c=Array['from'](_0x43cd17['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x64eb62,data:_0xe24c87}of _0x17a33c){const {group:_0x59a136}=_0x475a96(_0x64eb62);if('suggestion'!==_0x59a136||!_0xe24c87['newRange'])continue;const _0x3451fc=_0xe24c87['newRange'],_0x3168ce=_0x3451fc['end']['nodeBefore'];if(!_0x3168ce||!_0x3168ce['is']('element','title-content'))continue;if(!_0x3451fc['start']['isTouching'](_0x3451fc['end']))continue;const _0x25a3d8=_0x43cd17['model']['schema']['getNearestSelectionRange'](_0x3451fc['end'],'forward');if(_0x25a3d8&&_0x25a3d8['isCollapsed']){const _0x5bf2ef=_0x5ccc14['createRange'](_0x3451fc['start'],_0x25a3d8['start']);_0x5bf2ef['isEqual'](_0x3451fc)||(_0x5ccc14['updateMarker'](_0x64eb62,{'range':_0x5bf2ef}),_0x331c9c=!0x0);}_0x331c9c||(_0x5ccc14['removeMarker'](_0x64eb62),_0x331c9c=!0x0);}return _0x331c9c;});}}class $e extends _0x4a3826{['afterInit'](){const _0x276e13=this['editor'],_0x50d34a=_0x276e13['plugins']['get']('TrackChangesEditing');_0x276e13['plugins']['has']('Uploadcare')&&(_0x50d34a['enableCommand']('uploadcare'),_0x276e13['plugins']['has']('UploadcareImageEdit')&&(_0x50d34a['enableCommand']('uploadcareImageEdit'),_0x50d34a['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x50d34a['descriptionFactory']['registerDescriptionCallback'](_0x57f1de=>{if('attribute'!=_0x57f1de['type'])return;const {data:_0x12c851}=_0x57f1de;return _0x12c851&&'uploadcareImageId'==_0x12c851['key']?{'type':'format','content':''}:void 0x0;})));}}class We extends _0x4a3826{['afterInit'](){const _0x221a60=this['editor'],_0x4e53a2=_0x221a60['plugins']['get']('TrackChangesEditing');_0x221a60['plugins']['has']('UndoEditing')&&(_0x4e53a2['enableCommand']('undo'),_0x4e53a2['enableCommand']('redo'));}}class Ve extends _0x4a3826{static get['requires'](){return[Ne];}['afterInit'](){const _0x1e9610=this['editor'];if(!_0x1e9610['plugins']['has']('TableCaptionEditing'))return;_0x1e9610['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class je extends _0x4a3826{['tableProperties'];['tableCellProperties'];constructor(_0x26d20e){super(_0x26d20e),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 _0x345926=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x36c5fd of this['tableProperties'])_0x345926['enableCommand'](_0x36c5fd,(_0x39afe0,_0x2ef026)=>{const _0x2c70b9=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x36c5fd,[_0x2c70b9],this['tableProperties'],'tableProperties',_0x39afe0,_0x2ef026);});_0x345926['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x345926['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x345926['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x89b928,_0x8fe62a)=>this['handleDiscardAction'](this['tableProperties'],_0x89b928,_0x8fe62a)),_0x345926['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2be747 of this['tableCellProperties'])this['editor']['commands']['get'](_0x2be747)&&_0x345926['enableCommand'](_0x2be747,(_0x18952a,_0x4f786e)=>{const _0x2bdad9=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2be747,_0x2bdad9,this['tableCellProperties'],'tableCellProperties',_0x18952a,_0x4f786e);});_0x345926['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x345926['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x345926['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2de109,_0x1bb0ff)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2de109,_0x1bb0ff)),_0x345926['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x345926['descriptionFactory']['registerAttributeLabel']('tableCellType',At(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x345926['descriptionFactory']['registerDescriptionCallback'](_0x1c0a77=>this['handleSuggestionDescription'](_0x1c0a77)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x9646cd,_0x129792,_0x43399c,_0x46acc9,_0x138ac2,_0x346faa){const _0x5db56e=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x346faa['batch'],()=>{for(const _0x2fbf3d of _0x129792){if(this['_getSuggestion'](_0x2fbf3d,_0x46acc9))_0x138ac2(_0x346faa);else{const _0x1a3154={};for(const _0x1bcc6e of _0x43399c){const _0x5ef53e=_0x2fbf3d['getAttribute'](_0x1bcc6e);void 0x0!==_0x5ef53e&&(_0x1a3154[_0x1bcc6e]=_0x5ef53e);}_0x138ac2(_0x346faa),_0x5db56e['markBlockFormat'](_0x2fbf3d,{'commandParams':[_0x1a3154]},[],_0x46acc9);}}});}['handleDiscardAction'](_0x16b68f,_0x458bf8,_0x543c02){const _0x5026fd=_0x458bf8[0x0]['start']['nodeAfter'],_0x196034=_0x543c02['commandParams'][0x0];this['editor']['model']['change'](_0x2909cb=>{for(const _0x2c83d1 of _0x16b68f)void 0x0!==_0x196034[_0x2c83d1]?_0x2909cb['setAttribute'](_0x2c83d1,_0x196034[_0x2c83d1],_0x5026fd):_0x2909cb['removeAttribute'](_0x2c83d1,_0x5026fd);});}['handleSuggestionDescription'](_0x4d3807){if(_0x4d3807['data'])switch(_0x4d3807['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'](_0x2f91ff,_0x1a961b){const _0x30f029=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3a93a3 of _0x30f029['getSuggestions']({'skipNotAttached':!0x0})){const _0x18ac18=_0x3a93a3['getContainedElement']();if(_0x3a93a3['subType']===_0x1a961b&&_0x18ac18===_0x2f91ff)return _0x3a93a3;}return null;}['_registerTablePropertiesAttributes'](){const _0x6623e8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x248bd5=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x2823f6 of _0x248bd5){const _0x42adf5=_0x2823f6['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x6623e8['descriptionFactory']['registerAttributeLabel'](_0x2823f6,At(this['editor']['locale'],'FORMAT_'+_0x42adf5));}}}class ze extends _0x4a3826{['afterInit'](){const _0x558623=this['editor'];if(!_0x558623['plugins']['has']('LineHeight'))return;const _0x4ae5a8=_0x558623['plugins']['get']('TrackChangesEditing'),_0x11e9a7=_0x558623['locale'];_0x4ae5a8['enableDefaultAttributesIntegration']('lineHeight'),_0x4ae5a8['descriptionFactory']['registerAttributeLabel']('lineHeight',At(_0x11e9a7,'FORMAT_LINE_HEIGHT'));}}const Ke='$elementName';class Xe extends _0x4a3826{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x4551a9,_0x16b695,_0x218a55,_0x667652,_0xed69f8,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(_0x5c8999){super(_0x5c8999),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x98f841,_0x50d918,_0x10b778,_0xb58325)=>{this['_model']['change'](()=>{for(const _0x203c13 of[..._0xb58325,..._0x10b778])this['_model']['markers']['has'](_0x203c13)&&_0x5c8999['editing']['reconvertMarker'](_0x203c13);});}),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']=_0x5c8999['plugins']['get'](_0x4551a9),this['_suggestionsConversion']=_0x5c8999['plugins']['get'](_0x16b695),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x5c8999['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5c8999['config']['get']('trackChanges.trackFormatChanges'),_0x5c8999['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5c8999['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new ht(_0x5c8999,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3c79ea=this['editor'];_0x3c79ea['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x366b8f,{writer:_0x103bbd})=>{let _0x4fe06d='suggestion:'+_0x366b8f['getAttribute']('suggestion-type')+':'+_0x366b8f['getAttribute']('id');return _0x366b8f['getAttribute']('marker-count')&&(_0x4fe06d+=':'+_0x366b8f['getAttribute']('marker-count')),_0x103bbd['createElement']('$marker',{'data-name':_0x4fe06d});}}),_0x3c79ea['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3c79ea['model']['document']['registerPostFixer'](_0x1cd079=>{let _0x5a841e=!0x1;const _0x59d8a7=Array['from'](_0x3c79ea['model']['document']['differ']['getChangedMarkers']()),_0x1d6f85=new Set();for(const {name:_0x12faac,data:_0x46e01d}of _0x59d8a7){const {group:_0x203e77,type:_0x55f740,subType:_0x19c9c2,id:_0x1ea75d}=_0x475a96(_0x12faac);if('suggestion'!==_0x203e77)continue;const _0x163569=_0x19c9c2?'suggestion:'+_0x55f740+':'+_0x19c9c2+':'+_0x1ea75d:'suggestion:'+_0x55f740+':'+_0x1ea75d,_0x4f34ef=_0x3c79ea['model']['markers']['getMarkersGroup'](_0x163569),_0x363ead=_0x3c79ea['model']['markers']['get'](_0x12faac),_0x3a1116=this['_suggestions']['get'](_0x1ea75d);if(null!=_0x46e01d['newRange']){'formatInline'==_0x55f740&&(_0x5a841e=_0x5a841e||Ze(_0x46e01d['newRange'],_0x12faac,_0x1cd079,_0x3c79ea['model']['schema']));const _0x290023='attribute'==_0x55f740&&this['_suggestionsConversion']['isBlockAttribute'](un(_0x19c9c2)),_0x41b672='attribute'==_0x55f740&&this['_suggestionsConversion']['isInlineAttribute'](un(_0x19c9c2));if(_0x46e01d['newRange']['isCollapsed']||'$graveyard'==_0x46e01d['newRange']['root']['rootName']||'formatBlock'==_0x55f740&&!tn(_0x46e01d['newRange'])||_0x290023&&!tn(_0x46e01d['newRange'])||_0x41b672&&en(_0x46e01d['newRange'])||'deletion'==_0x55f740&&en(_0x46e01d['newRange'])||_0x363ead&&nn(_0x363ead,_0x4f34ef))_0x1cd079['removeMarker'](_0x12faac),_0x5a841e=!0x0;else{if(!_0x3a1116||!_0x3a1116['isInContent'])continue;if(_0x46e01d['newRange']&&_0x46e01d['oldRange']&&_0x46e01d['newRange']['isEqual'](_0x46e01d['oldRange']))continue;_0x1d6f85['add'](_0x3a1116);}}}return _0x1d6f85['size']>0x0&&(_0x5a841e=!!this['_joinWithAdjacentSuggestions'](_0x1d6f85)||_0x5a841e),_0x5a841e;}),_0x3c79ea['model']['document']['registerPostFixer'](_0x1b1324=>{let _0x1ebf5e=!0x1;for(const _0x55fd57 of _0x3c79ea['model']['document']['differ']['getChanges']())if('insert'==_0x55fd57['type'])for(const _0x38571d of this['_suggestions']['values']()){if(_0x38571d['isMultiRange']||!_0x38571d['isInContent'])continue;const _0xc0bf0f='formatBlock'==_0x38571d['type'],_0x2f8256=this['_getAttributeKey'](_0x38571d),_0x41fa99=_0x2f8256&&this['_suggestionsConversion']['isBlockAttribute'](_0x2f8256);if(!_0xc0bf0f&&!_0x41fa99)continue;const _0x446ed4=_0x38571d['getFirstRange']();if(_0x446ed4['start']['parent']!=_0x446ed4['end']['parent']&&!_0x446ed4['end']['isAtEnd']){const _0x350e87=_0x3c79ea['model']['createPositionAt'](_0x446ed4['start']['nodeAfter'],'end'),_0x4ca3bf=_0x3c79ea['model']['createRange'](_0x446ed4['start'],_0x350e87);_0x1b1324['updateMarker'](_0x38571d['getFirstMarker'](),{'range':_0x4ca3bf}),_0x1ebf5e=!0x0;}}return _0x1ebf5e;}),_0x3c79ea['model']['document']['registerPostFixer'](_0x36377b=>this['_processAttributeChanges'](_0x36377b)),_0x3c79ea['model']['document']['registerPostFixer'](_0x28aaee=>!_0x28aaee['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x28aaee)),_0x3c79ea['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3c79ea['model']['document']['on']('change:data',(_0x21aa2c,_0xae4491)=>{if(!_0xae4491['isLocal']||_0xae4491['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x59b713=_0x3c79ea['model']['document']['differ']['getChanges']();if(0x0==_0x59b713['length'])return;const _0x1c906c=[],_0x455173=_0x59b713['filter'](_0xcc2c7f=>'attribute'==_0xcc2c7f['type']),_0x4bb592=_0x59b713['filter'](_0x1550a2=>'insert'==_0x1550a2['type']&&'$text'!=_0x1550a2['name']);for(const _0x43c3a2 of _0x455173)this['_suggestionsConversion']['isRegisteredAttribute'](_0x43c3a2['attributeKey'])&&_0x1c906c['push']({'key':_0x43c3a2['attributeKey'],'newValue':_0x43c3a2['attributeNewValue'],'oldValue':_0x43c3a2['attributeOldValue'],'range':sn(_0x43c3a2['range'],_0x3c79ea['model'])});for(const _0x125e9f of _0x4bb592){if('rename'!=_0x125e9f['action']&&'refresh'!=_0x125e9f['action'])continue;const _0xa7670c=rn(_0x125e9f['position']['nodeAfter'],_0x3c79ea['model']),_0x4de0da=_0x125e9f['before'];'rename'==_0x125e9f['action']&&_0x1c906c['push']({'key':Ke,'newValue':_0x125e9f['name'],'oldValue':_0x4de0da['name'],'range':_0xa7670c});for(const [_0x443491,_0x3e6e05]of _0x4de0da['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x443491))continue;const _0x19a583=_0x125e9f['attributes']['get'](_0x443491);_0x3e6e05!==_0x19a583&&_0x1c906c['push']({'key':_0x443491,'newValue':_0x19a583,'oldValue':_0x3e6e05,'range':_0xa7670c});}for(const [_0x1f9e03,_0x392b34]of _0x125e9f['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x1f9e03)&&(_0x4de0da['attributes']['has'](_0x1f9e03)||_0x1c906c['push']({'key':_0x1f9e03,'newValue':_0x392b34,'oldValue':null,'range':_0xa7670c}));}0x0!=_0x1c906c['length']&&_0x3c79ea['model']['enqueueChange'](_0xae4491,_0x13987c=>{const _0x21eca7=_0x15ca27();for(const {range:_0x4c9c69,key:_0x4902d1,oldValue:_0x14d4d7,newValue:_0x490a1}of _0x1c906c)this['markAttributeChange'](_0x4c9c69,_0x4902d1,_0x14d4d7,_0x490a1,{'groupId':_0x21eca7});this['_reduceExistingSuggestions'](_0x13987c,_0x1c906c);});},{'priority':'lowest'}),_0x3c79ea['model']['markers']['on']('update:suggestion',(_0x169423,_0x515af2,_0x74ffad)=>{if(null==_0x74ffad){const {id:_0x2dbc7e}=_0x475a96(_0x515af2['name']),_0x2bbe83=this['_suggestions']['get'](_0x2dbc7e);_0x2bbe83&&_0x2bbe83['addMarkerName'](_0x515af2['name']);}}),_0x3c79ea['model']['document']['on']('change:data',()=>{const _0x5839c3=Array['from'](_0x3c79ea['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4330e5=>'suggestion'===_0x475a96(_0x4330e5['name'])['group']);if(0x0===_0x5839c3['length'])return;_0x5839c3['sort']((_0x10fd69,_0x2a70d3)=>{const _0x232a1d=_0x10fd69['data']['oldRange'],_0x5c9036=_0x2a70d3['data']['oldRange'];return null===_0x232a1d&&null===_0x5c9036?0x0:null===_0x232a1d&&null!==_0x5c9036?-0x1:null!==_0x232a1d&&null===_0x5c9036?0x1:_0x232a1d['start']['isBefore'](_0x5c9036['start'])?-0x1:0x1;});const _0x586f10=new Set(),_0x13d4e7=new Set();for(const {name:_0x282907,data:_0x2ee26d}of _0x5839c3){const {id:_0x24157d}=_0x475a96(_0x282907);if(null===_0x2ee26d['oldRange']){const _0x3d1b7c=this['_handleNewSuggestionMarker'](_0x282907);_0x13d4e7['add'](_0x3d1b7c);}else{const _0x43819a=this['_suggestions']['get'](_0x24157d);null!==_0x2ee26d['newRange']||_0x43819a['isInContent']?(_0x586f10['add'](_0x43819a['head']),_0x13d4e7['add'](_0x43819a)):this['_removeSuggestion'](_0x43819a);}}_0x13d4e7['size']>0x0&&this['_refreshSuggestionsChain'](_0x13d4e7);for(const _0x1dca78 of _0x586f10)this['fire']('suggestionChanged',_0x1dca78);}),_0x3c79ea['model']['on']('applyOperation',(_0x1aa4dc,_0x2b1b32)=>{const _0x1b750=_0x2b1b32[0x0];if(!this['_suggestions']['size'])return;if(!_0x1b750['isDocumentOperation'])return;if(_0x1b750['batch']['isUndo']||!_0x1b750['batch']['isLocal'])return;let _0x5eb942,_0xd2405;switch(_0x1b750['type']){case'insert':_0x5eb942=_0x3c79ea['model']['createPositionAt'](_0x1b750['position']),_0xd2405=_0x5eb942['getShiftedBy'](_0x1b750['howMany']);break;case'split':_0x5eb942=_0x3c79ea['model']['createPositionAt'](_0x1b750['splitPosition']),_0xd2405=_0x3c79ea['model']['createPositionAt'](_0x1b750['moveTargetPosition']);break;case'move':_0x5eb942=_0x3c79ea['model']['createPositionAt'](_0x1b750['targetPosition']),_0xd2405=_0x5eb942['getShiftedBy'](_0x1b750['howMany']);break;default:return;}const _0x212faa=_0x3c79ea['model']['createRange'](_0x5eb942,_0xd2405);_0x3c79ea['model']['change'](()=>{for(const {suggestion:_0x33eb19,meta:_0x2927e2}of this['_findSuggestions'](_0x212faa)){if(_0x33eb19['isMultiRange'])continue;if('formatInline'==_0x33eb19['type'])continue;const _0x31531c=this['_getAttributeKey'](_0x33eb19);if(_0x31531c&&this['_suggestionsConversion']['isBlockAttribute'](_0x31531c)&&'split'!=_0x1b750['type'])continue;const _0x99f8b7=_0x33eb19['data']&&_0x33eb19['data']['multipleBlocks'];('formatBlock'!=_0x33eb19['type']||'split'==_0x1b750['type']&&!_0x99f8b7)&&(_0x2927e2['containsRangeInObject']||'insertion'==_0x33eb19['type']&&_0x2927e2['isOwn']||_0x33eb19['getFirstRange']()['containsRange'](_0x212faa)&&this['_breakSuggestionMarker'](_0x33eb19,_0x5eb942,_0xd2405));}});},{'priority':'lowest'}),_0x3c79ea['model']['on']('deleteContent',(_0x37cd09,_0x4bac94)=>{const _0x305d86=_0x4bac94[0x0],_0x13d017=_0x4bac94[0x1];if(_0x13d017&&_0x13d017['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x305d86['isCollapsed'])return;const _0x7b2f1c=_0x3c79ea['model']['schema'],{start:_0x4f89c1,end:_0x4cf216}=_0x305d86['getFirstRange'](),_0x3bcbf9=_0x4f89c1['nodeAfter']&&_0x7b2f1c['isLimit'](_0x4f89c1['nodeAfter'])?null:_0x7b2f1c['getNearestSelectionRange'](_0x4f89c1,'forward'),_0xf9338=_0x4cf216['nodeBefore']&&_0x7b2f1c['isLimit'](_0x4cf216['nodeBefore'])?null:_0x7b2f1c['getNearestSelectionRange'](_0x4cf216,'backward'),_0xa3fe80=_0x3c79ea['model']['createRange'](_0x3bcbf9?_0x3bcbf9['start']:_0x4f89c1,_0xf9338?_0xf9338['end']:_0x4cf216);_0x3c79ea['model']['change'](_0x376fd0=>{this['markDeletion'](_0xa3fe80);const _0x1fdad1=_0x3c79ea['model']['schema']['getNearestSelectionRange'](_0xa3fe80['start']);_0x305d86['is']('documentSelection')?_0x376fd0['setSelection'](_0x1fdad1):_0x305d86['setTo'](_0x1fdad1);}),_0x37cd09['stop']();},{'priority':_0x3cf629['normal']+0xa}),_0x3c79ea['model']['on']('insertContent',(_0x9dafe3,_0x520ee1)=>{const _0x312494=_0x520ee1[_0x520ee1['length']-0x1];_0x312494&&_0x312494['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3c79ea['model']['change'](()=>{let _0x4906f8=_0x3c79ea['model']['insertContent'](_0x520ee1[0x0],_0x520ee1[0x1],_0x520ee1[0x2],{'forceDefaultExecution':!0x0});if(!_0x4906f8)return;_0x9dafe3['return']=_0x4906f8['clone']();const _0x175bd2=_0x4906f8['end']['nodeBefore'],_0x358bc6=_0x3c79ea['model']['schema'];_0x175bd2&&_0x358bc6['isBlock'](_0x175bd2)&&!_0x358bc6['isObject'](_0x175bd2)&&(_0x4906f8=_0x3c79ea['model']['createRange'](_0x4906f8['start'],_0x3c79ea['model']['createPositionAt'](_0x175bd2,'end'))),this['markInsertion'](_0x4906f8);}),_0x9dafe3['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x374ac1=new dt(_0x3c79ea,this['_suggestions']);_0x3c79ea['commands']['add']('acceptSuggestion',_0x374ac1),this['enableCommand']('acceptSuggestion');const _0x540a0d=new ft(_0x3c79ea,this['_suggestions']);_0x3c79ea['commands']['add']('discardSuggestion',_0x540a0d),this['enableCommand']('discardSuggestion'),_0x3c79ea['commands']['add']('acceptAllSuggestions',new Lt(_0x3c79ea,_0x374ac1,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3c79ea['commands']['add']('discardAllSuggestions',new Lt(_0x3c79ea,_0x540a0d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3c79ea['commands']['add']('acceptSelectedSuggestions',new It(_0x3c79ea,_0x374ac1,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3c79ea['commands']['add']('discardSelectedSuggestions',new It(_0x3c79ea,_0x540a0d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xda00fb=_0x3c79ea['plugins']['get'](_0x4551a9);this['listenTo'](_0xda00fb,'addComment',(_0x4affbd,{threadId:_0x1f9a8})=>{const _0x255a91=this['_suggestions']['get'](_0x1f9a8);_0x255a91&&_0x255a91['commentThread']&&0x1===_0x255a91['commentThread']['length']&&this['_updateSuggestionData'](_0x1f9a8,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xda00fb,'removeComment',(_0x5eaabb,{threadId:_0x34a5b8})=>{const _0x44ca36=this['_suggestions']['get'](_0x34a5b8);_0x44ca36&&_0x44ca36['commentThread']&&!_0x44ca36['commentThread']['length']&&this['_updateSuggestionData'](_0x34a5b8,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2eb504){const _0x3e4a1a=_0x3600e2([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]),_0x2804ac=0x3d8d0df,_0x675403=0x3df5567^_0x2804ac,_0x545e77=window[_0x3600e2([0x44,0x61,0x74,0x65])][_0x3600e2([0x6e,0x6f,0x77])](),_0x8b2964=_0x2eb504[_0x3600e2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4ad173=new window[(_0x3600e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x158129=>{_0x8b2964[_0x3600e2([0x6f,0x6e,0x63,0x65])](_0x3600e2([0x72,0x65,0x61,0x64,0x79]),_0x158129);}),_0x39b03d={[_0x3600e2([0x6b,0x74,0x79])]:_0x3600e2([0x45,0x43]),[_0x3600e2([0x75,0x73,0x65])]:_0x3600e2([0x73,0x69,0x67]),[_0x3600e2([0x63,0x72,0x76])]:_0x3600e2([0x50,0x2d,0x32,0x35,0x36]),[_0x3600e2([0x78])]:_0x3600e2([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]),[_0x3600e2([0x79])]:_0x3600e2([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]),[_0x3600e2([0x61,0x6c,0x67])]:_0x3600e2([0x45,0x53,0x32,0x35,0x36])},_0x35a736=_0x8b2964[_0x3600e2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3600e2([0x67,0x65,0x74])](_0x3600e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x195f99(){let _0xeeb4e9,_0x3d7417=null,_0x31e041=null;try{if(_0x35a736==_0x3600e2([0x47,0x50,0x4c]))return _0x3600e2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xeeb4e9=_0x1c19c6(),!_0xeeb4e9)return _0x3600e2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xeeb4e9[_0x3600e2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x31e041=_0xc0c96e(_0xeeb4e9[_0x3600e2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xeeb4e9[_0x3600e2([0x6a,0x74,0x69])])),await _0x2392ba()?_0x476a18()?_0x38926b()?_0x3600e2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x18665c()?(_0xeeb4e9[_0x3600e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3600e2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3d7417=_0x555958(_0x3600e2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4e0d15()):_0x3600e2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3600e2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3600e2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3600e2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x38926b(){const _0x190092=[_0x3600e2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3600e2([0x74,0x72,0x69,0x61,0x6c])][_0x3600e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xeeb4e9[_0x3600e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x545e77/0x3e8:0xe10*_0x675403;return _0xeeb4e9[_0x3600e2([0x65,0x78,0x70])]<_0x190092;}function _0x476a18(){const _0x351465=_0xeeb4e9[_0x3600e2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x351465)return!0x1;if(_0x351465[_0x3600e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3600e2([0x2a])))return!0x0;if(_0x351465[_0x3600e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3600e2([0x54,0x43])))return!0x0;if(_0x351465[_0x3600e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3600e2([0x52,0x54,0x43]))){if(_0x36e599())return!0x0;if(_0x7baf4b()||_0x56479b())return!0x0;}return!0x1;}function _0x18665c(){const _0x378eee=_0xeeb4e9[_0x3600e2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x378eee||0x0==_0x378eee[_0x3600e2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xabba87}=new URL(window[_0x3600e2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x378eee[_0x3600e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xabba87))return!0x0;const _0x28149c=_0xabba87[_0x3600e2([0x73,0x70,0x6c,0x69,0x74])](_0x3600e2([0x2e]));return _0x378eee[_0x3600e2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1cc0f7=>_0x1cc0f7[_0x3600e2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3600e2([0x2a])))[_0x3600e2([0x6d,0x61,0x70])](_0x435373=>_0x435373[_0x3600e2([0x73,0x70,0x6c,0x69,0x74])](_0x3600e2([0x2e])))[_0x3600e2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x14fb70=>_0x14fb70[_0x3600e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x28149c[_0x3600e2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3600e2([0x6d,0x61,0x70])](_0x2d996b=>Array(_0x28149c[_0x3600e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2d996b[_0x3600e2([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3600e2([0x66,0x69,0x6c,0x6c])](_0x2d996b[0x0]===_0x3600e2([0x2a])?_0x3600e2([0x2a]):'')[_0x3600e2([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2d996b))[_0x3600e2([0x73,0x6f,0x6d,0x65])](_0x402e00=>_0x28149c[_0x3600e2([0x65,0x76,0x65,0x72,0x79])]((_0x51b2f1,_0x35ae71)=>_0x402e00[_0x35ae71]===_0x51b2f1||_0x402e00[_0x35ae71]===_0x3600e2([0x2a])));}function _0x4e0d15(){return _0x3d7417&&_0x31e041?new window[(_0x3600e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23b96a,_0x8d9020)=>{_0x3d7417[_0x3600e2([0x74,0x68,0x65,0x6e])](_0x23b96a,_0x8d9020),_0x31e041[_0x3600e2([0x74,0x68,0x65,0x6e])](_0x20dc2e=>{_0x20dc2e!=_0x3600e2([0x56,0x61,0x6c,0x69,0x64])&&_0x23b96a(_0x20dc2e);},_0x8d9020);}):_0x3d7417||_0x31e041||_0x3600e2([0x56,0x61,0x6c,0x69,0x64]);}}function _0xc0c96e(_0x10865a,_0x112855){return new window[(_0x3600e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13bc02=>{if(_0x34e452())return _0x13bc02(_0x3600e2([0x56,0x61,0x6c,0x69,0x64]));_0x5db9dc(),_0x8b2964[_0x3600e2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3600e2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x523483=!0x1;const _0x1e8cfb=_0x15ca27();function _0xdc3aa5(_0x2e671a){return!!_0x2e671a&&(typeof _0x2e671a===_0x3600e2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2e671a===_0x3600e2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2e671a[_0x3600e2([0x74,0x68,0x65,0x6e])]===_0x3600e2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2e671a[_0x3600e2([0x63,0x61,0x74,0x63,0x68])]===_0x3600e2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1b5c8b(_0x44fc56){_0x9619dc(_0x44fc56)[_0x3600e2([0x74,0x68,0x65,0x6e])](_0x457ac8=>{if(!_0x457ac8||_0x457ac8[_0x3600e2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3600e2([0x6f,0x6b]))return _0x3600e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4066a2(_0xc270b5(_0x1e8cfb+_0x112855))!=_0x457ac8[_0x3600e2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3600e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3600e2([0x56,0x61,0x6c,0x69,0x64]);})[_0x3600e2([0x74,0x68,0x65,0x6e])](_0x229583=>(_0x245689(),_0x229583),()=>{const _0x5a0c48=_0x3c3ec8();return null==_0x5a0c48?(_0x245689(),_0x3600e2([0x56,0x61,0x6c,0x69,0x64])):_0x3600e2(_0x545e77-_0x5a0c48>(0x27d454df^_0x2804ac)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3600e2([0x74,0x68,0x65,0x6e])](_0x13bc02)[_0x3600e2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x13bc02(_0x3600e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x306ad4=0x3ee3e5f^_0x2804ac;function _0x245689(){const _0x3ddedd=_0x3600e2([0x6c,0x6c,0x63,0x74,0x2d])+_0x4066a2(_0xc270b5(_0x10865a)),_0x20d777=_0xb47eaa(_0x4066a2(window[_0x3600e2([0x4d,0x61,0x74,0x68])][_0x3600e2([0x63,0x65,0x69,0x6c])](_0x545e77/_0x306ad4)));window[_0x3600e2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3600e2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ddedd,_0x20d777);}function _0x3c3ec8(){const _0x11f5be=_0x3600e2([0x6c,0x6c,0x63,0x74,0x2d])+_0x4066a2(_0xc270b5(_0x10865a)),_0x57fc45=window[_0x3600e2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3600e2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x11f5be);return _0x57fc45?window[_0x3600e2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb47eaa(_0x57fc45),0x10)*_0x306ad4:null;}function _0x9619dc(_0x4511cb){return new window[(_0x3600e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44eba3,_0x257956)=>{_0x4511cb[_0x3600e2([0x74,0x68,0x65,0x6e])](_0x44eba3,_0x257956),window[_0x3600e2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x257956,0x3d9041f^_0x2804ac);});}}_0x8b2964[_0x3600e2([0x6f,0x6e])](_0x3600e2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x58586b,_0x2fa583)=>{if(_0x2fa583[0x0]!=_0x10865a)return _0x13bc02(_0x3600e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2fa583[0x1]={..._0x2fa583[0x1],[_0x3600e2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1e8cfb};},{[_0x3600e2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3600e2([0x68,0x69,0x67,0x68])}),_0x8b2964[_0x3600e2([0x6f,0x6e])](_0x3600e2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xfc711a=>{_0xdc3aa5(_0xfc711a[_0x3600e2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x523483=!0x0,_0x1b5c8b(_0xfc711a[_0x3600e2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3600e2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3600e2([0x6c,0x6f,0x77])}),_0x4ad173[_0x3600e2([0x74,0x68,0x65,0x6e])](()=>{_0x523483||_0x13bc02(_0x3600e2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x34e452(){return _0x8b2964[_0x3600e2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3600e2([0x76,0x69,0x65,0x77])][_0x3600e2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3600e2([0x61,0x75,0x74,0x6f]);}function _0x5db9dc(){_0x8b2964[_0x3600e2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3600e2([0x76,0x69,0x65,0x77])][_0x3600e2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3600e2([0x61,0x75,0x74,0x6f]);}}function _0x555958(_0x48fbb8){const _0x28a6db=[new window[(_0x3600e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x198ebb=>setTimeout(_0x198ebb,0x3d1ee13^_0x2804ac)),_0x4ad173[_0x3600e2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3600e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36f50a=>{let _0x3d101d=0x0;_0x8b2964[_0x3600e2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3600e2([0x6f,0x6e])](_0x3600e2([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x48f8a5,_0x17bc17)=>{_0x17bc17[0x0][_0x3600e2([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3d101d++,_0x3d101d==(0x3d8d537^_0x2804ac)&&(_0x36f50a(),_0x48f8a5[_0x3600e2([0x6f,0x66,0x66])]());});}))];return window[_0x3600e2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3600e2([0x72,0x61,0x63,0x65])](_0x28a6db)[_0x3600e2([0x74,0x68,0x65,0x6e])](()=>_0x48fbb8);}async function _0x23f105(){await _0x4ad173,_0x8b2964[_0x3600e2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3600e2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x389f5f,_0x8b2964[_0x3600e2([0x6d,0x6f,0x64,0x65,0x6c])][_0x3600e2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x389f5f,_0x8b2964[_0x3600e2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3600e2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x36e599(){return _0x3a3b66(_0x3600e2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5c8823(_0x3600e2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3600e2([0x73,0x74,0x61,0x74,0x65])]==_0x3600e2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x7baf4b(){return _0x3a3b66(_0x3600e2([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 _0x56479b(){return _0x3a3b66(_0x3600e2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x282cc2(_0x2f2b1e){const _0x5926a4=_0x2159e8();_0x8b2964[_0x5926a4]=_0x3600e2([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2f2b1e,_0x2f2b1e!=_0x3600e2([0x56,0x61,0x6c,0x69,0x64])&&_0x23f105();}function _0x2159e8(){const _0x410e86=window[_0x3600e2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3600e2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3600e2([0x6e,0x6f,0x77])]())[_0x3600e2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3600e2([0x2e]),'');let _0x5b7974=_0x3600e2([0x52]);for(let _0x1874d0=0x0;_0x1874d0<_0x410e86[_0x3600e2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1874d0+=0x2){let _0x3a28be=window[_0x3600e2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x410e86[_0x3600e2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1874d0,_0x1874d0+0x2));_0x3a28be>=_0x3e4a1a[_0x3600e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3a28be-=_0x3e4a1a[_0x3600e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5b7974+=_0x3e4a1a[_0x3a28be];}return _0x5b7974;}function _0x1c19c6(){const _0x3bb7aa=_0x35a736[_0x3600e2([0x73,0x70,0x6c,0x69,0x74])](_0x3600e2([0x2e]));if(0x3!=_0x3bb7aa[_0x3600e2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xf6447(_0x3bb7aa[0x1]);function _0xf6447(_0x1e642c){const _0x1bf7a0=_0x281d25(_0x1e642c);return _0x1bf7a0&&_0x2d57c8()?_0x1bf7a0:null;function _0x2d57c8(){const _0x3be41e=_0x1bf7a0[_0x3600e2([0x6a,0x74,0x69])],_0xfcf059=window[_0x3600e2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3be41e[_0x3600e2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3be41e[_0x3600e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4d4cf2={..._0x1bf7a0,[_0x3600e2([0x6a,0x74,0x69])]:_0x3be41e[_0x3600e2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3be41e[_0x3600e2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4d4cf2[_0x3600e2([0x76,0x63])],_0xc270b5(_0x4d4cf2)==_0xfcf059;}}}async function _0x2392ba(){let _0x51d378=!0x0;try{const _0x58cb61=_0x35a736[_0x3600e2([0x73,0x70,0x6c,0x69,0x74])](_0x3600e2([0x2e])),[_0x130aa4,_0x221d3e,_0x18babb]=_0x58cb61;return _0x150b5f(_0x130aa4),await _0x340969(_0x130aa4,_0x221d3e,_0x18babb),_0x51d378;}catch{return!0x1;}function _0x150b5f(_0x26a3cf){const _0x2b6ac6=_0x281d25(_0x26a3cf);_0x2b6ac6&&_0x2b6ac6[_0x3600e2([0x61,0x6c,0x67])]==_0x3600e2([0x45,0x53,0x32,0x35,0x36])||(_0x51d378=!0x1);}async function _0x340969(_0x4c0923,_0x5e4dd3,_0x1133d1){const _0x4495ab=window[_0x3600e2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3600e2([0x66,0x72,0x6f,0x6d])](_0x4d1dab(_0x1133d1),_0x51426e=>_0x51426e[_0x3600e2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x386c37=new window[(_0x3600e2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3600e2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4c0923+_0x3600e2([0x2e])+_0x5e4dd3),_0x3eb8f9=window[_0x3600e2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3600e2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3eb8f9)return;const _0x363d44=await _0x3eb8f9[_0x3600e2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3600e2([0x6a,0x77,0x6b]),_0x39b03d,{[_0x3600e2([0x6e,0x61,0x6d,0x65])]:_0x3600e2([0x45,0x43,0x44,0x53,0x41]),[_0x3600e2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3600e2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3600e2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3eb8f9[_0x3600e2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3600e2([0x6e,0x61,0x6d,0x65])]:_0x3600e2([0x45,0x43,0x44,0x53,0x41]),[_0x3600e2([0x68,0x61,0x73,0x68])]:{[_0x3600e2([0x6e,0x61,0x6d,0x65])]:_0x3600e2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x363d44,_0x4495ab,_0x386c37)||(_0x51d378=!0x1);}}function _0x281d25(_0x3df2b3){return _0x3df2b3[_0x3600e2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3600e2([0x65,0x79]))?JSON[_0x3600e2([0x70,0x61,0x72,0x73,0x65])](_0x4d1dab(_0x3df2b3)):null;}function _0x4d1dab(_0x84264b){return window[_0x3600e2([0x61,0x74,0x6f,0x62])](_0x84264b[_0x3600e2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3600e2([0x2b]))[_0x3600e2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3600e2([0x2f])));}function _0xc270b5(_0x58dcd0){let _0x1e820b=0x1505;function _0x72fd87(_0x267a3d){for(let _0x143a6c=0x0;_0x143a6c<_0x267a3d[_0x3600e2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x143a6c++){const _0x55ab27=_0x267a3d[_0x3600e2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x143a6c);_0x1e820b=(_0x1e820b<<0x5)+_0x1e820b+_0x55ab27,_0x1e820b&=_0x1e820b;}}function _0x445e0c(_0x23be99){Array[_0x3600e2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x23be99)?_0x23be99[_0x3600e2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x445e0c):_0x23be99&&typeof _0x23be99==_0x3600e2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3600e2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x23be99)[_0x3600e2([0x73,0x6f,0x72,0x74])]()[_0x3600e2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x57039d,_0x552fb6])=>{_0x72fd87(_0x57039d),_0x445e0c(_0x552fb6);}):_0x72fd87(window[_0x3600e2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x23be99));}return _0x445e0c(_0x58dcd0),_0x1e820b>>>0x0;}function _0x4066a2(_0x25d0f3){return _0x25d0f3[_0x3600e2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3600e2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3600e2([0x30]));}function _0xb47eaa(_0x5d915b){return _0x5d915b[_0x3600e2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3600e2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3600e2([0x6a,0x6f,0x69,0x6e])]('');}function _0x3a3b66(_0x4e678c){return _0x8b2964[_0x3600e2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3600e2([0x68,0x61,0x73])](_0x4e678c);}function _0x5c8823(_0x368d11){return _0x8b2964[_0x3600e2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3600e2([0x67,0x65,0x74])](_0x368d11);}function _0x389f5f(){}function _0x3600e2(_0x43ab62){return _0x43ab62['map'](_0x279484=>String['fromCharCode'](_0x279484))['join']('');}_0x282cc2(await _0x195f99());}(this);}set['adapter'](_0x24e58a){if(this['_adapter'])throw new _0x3800a1('track-changes-adapter-already-set',this);this['_adapter']=_0x24e58a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4cd471=!0x1,toJSON:_0x151910=!0x1}={}){const _0x469cc7=[];for(const _0x4c72c3 of this['_suggestions']['values']())_0x4cd471&&!_0x4c72c3['isInContent']||_0x469cc7['push'](_0x4c72c3);return _0x151910?_0x469cc7['map'](_0x24f580=>_0x24f580['toJSON']()):_0x469cc7;}['getSuggestion'](_0xd8cf82){const _0x391528=this['_suggestions']['get'](_0xd8cf82);if(!_0x391528)throw new _0x3800a1('track-changes-suggestion-not-found',this);return _0x391528;}['hasSuggestion'](_0x120942){return this['_suggestions']['has'](_0x120942);}['addSuggestionData'](_0x3fc34a){const {authorId:_0xd13302,id:_0x1235b6,originalSuggestionId:_0x1b75b9,attributes:_0x5670ae}=_0x3fc34a,[_0x26797b,_0x53ccb7]=_0x3fc34a['type']['split'](':'),_0x2dcb40=this['_suggestions']['get'](_0x1235b6)||this['_createSuggestion'](_0x26797b,_0x53ccb7,_0x1235b6,_0xd13302,_0x5670ae,_0x1b75b9);if(this['_addThreadToSuggestion'](_0x2dcb40),this['_checkSuggestionCorrectness'](_0x2dcb40,_0x26797b,_0x53ccb7||null,_0xd13302),_0x2dcb40['createdAt']=_0x3fc34a['createdAt'],_0x2dcb40['_isDataLoaded']=!0x0,_0x5670ae&&_0x5670ae['@external']){const _0x5870bd=_0x5670ae['@external'],_0x4afab1=this['_getExternalAuthor'](_0x5870bd['authorName']);_0x2dcb40['authoredAt']=_0x5870bd['createdAt'],_0x2dcb40['author']=_0x4afab1,_0x2dcb40['isExternal']=!0x0;}else _0x2dcb40['authoredAt']=_0x3fc34a['createdAt'];switch(_0x3fc34a['data']&&(_0x2dcb40['data']=_0x3fc34a['data']),_0x3fc34a['attributes']&&(_0x2dcb40['attributes']=_0x3fc34a['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2dcb40['_saved']=!0x0),this['_suggestionState']['get'](_0x2dcb40)){case'notReady':this['_suggestionState']['set'](_0x2dcb40,'dataReady');break;case'markerReady':_0x2dcb40['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2dcb40])),this['_refreshSuggestionsChain'](new Set([_0x2dcb40])),this['_suggestionState']['set'](_0x2dcb40,'ready'),this['fire']('suggestionLoaded',_0x2dcb40)):this['_suggestionState']['set'](_0x2dcb40,'removed');}return _0x2dcb40;}['acceptSuggestion'](_0x26a6fb){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x10b32d of _0x26a6fb['getAllAdjacentSuggestions']())_0x10b32d['accept']();});});}['discardSuggestion'](_0x5b01f2){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x297fcc of _0x5b01f2['getAllAdjacentSuggestions']())_0x297fcc['discard']();});});}['enableCommand'](_0x4bb554,_0x3c4726){const _0x19e720=this['editor']['commands']['get'](_0x4bb554);if(!_0x19e720)throw new _0x3800a1('track-changes-command-not-found',this,{'commandName':_0x4bb554});if(this['_enabledCommands']['has'](_0x19e720))throw new _0x3800a1('track-changes-enable-command-twice',this,{'commandName':_0x4bb554});this['_enabledCommands']['add'](_0x19e720),_0x3c4726&&_0x19e720['on']('execute',(_0x2601dd,_0x36ea96)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x36ea96['length']>0x0&&_0x36ea96[_0x36ea96['length']-0x1]&&_0x36ea96[_0x36ea96['length']-0x1]['forceDefaultExecution']?_0x36ea96['pop']():(_0x2601dd['return']=_0x3c4726((..._0x1bff41)=>_0x19e720['execute'](..._0x1bff41,{'forceDefaultExecution':!0x0}),..._0x36ea96),_0x2601dd['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x7d6728){let _0x5ecff3,_0x6bc2d8;const _0x5e30f2=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5ecff3=_0x7d6728();}catch(_0x60fc53){_0x6bc2d8=_0x60fc53;}return _0x5e30f2||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x6bc2d8&&_0x3800a1['rethrowUnexpectedError'](_0x6bc2d8,this),_0x5ecff3;}['markInsertion'](_0x25b555,_0x32eb5b=null,_0x17faca={}){if(_0x25b555['isCollapsed'])return null;const _0x471d5e=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x17faca['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x14fd65,meta:_0x212833}of this['_findSuggestions'](_0x25b555,'insertion'))if(_0x212833['isOwn']){if(!_0x212833['isNextTo']){if(_0x212833['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!cn(_0x14fd65,_0x17faca))continue;return _0x14fd65;}if(cn(_0x14fd65,_0x17faca))return _0x14fd65;this['_breakSuggestionMarker'](_0x14fd65,_0x25b555['start'],_0x25b555['end']);break;}if(_0x32eb5b==_0x14fd65['subType']&&cn(_0x14fd65,_0x17faca)){const _0x4ea8aa=_0x14fd65['getFirstRange']();return _0x4ea8aa['start']['isEqual'](_0x25b555['end'])?this['_setSuggestionRange'](_0x14fd65,this['_model']['createRange'](_0x25b555['start'],_0x4ea8aa['end'])):this['_setSuggestionRange'](_0x14fd65,this['_model']['createRange'](_0x4ea8aa['start'],_0x25b555['end'])),_0x14fd65;}}const _0x66f0b7=_0x15ca27(),_0x22f79c=_0x471d5e['id'],_0x5ba1d8=_0x32eb5b?'insertion:'+_0x32eb5b:'insertion',_0x32540c=this['_setSuggestionData']({'id':_0x66f0b7,'type':_0x5ba1d8,'createdAt':new Date(),'authorId':_0x22f79c,'attributes':_0x17faca});return this['_addSuggestionMarker'](_0x5ba1d8,_0x66f0b7,_0x22f79c,_0x25b555),_0x32540c;}['markMultiRangeInsertion'](_0x4c78d5,_0x416695='multi',_0x72e2c7={}){const _0x2cbad4=this['editor']['plugins']['get']('Users')['me'],_0x157352=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x416695,'join');this['_trackingSessionId']&&(_0x72e2c7['trackingSessionId']=this['_trackingSessionId']);for(const _0x2e53cc of this['getSuggestions']())if(_0x2e53cc['author']['id']==_0x2cbad4['id']&&'insertion'==_0x2e53cc['type']&&_0x2e53cc['subType']==_0x416695&&cn(_0x2e53cc,_0x72e2c7)&&(_0x157352(_0x2e53cc['getRanges'](),_0x4c78d5)||_0x157352(_0x4c78d5,_0x2e53cc['getRanges']()))){for(const _0x4f6b9f of _0x4c78d5)_0x2e53cc['addRange'](_0x4f6b9f);return _0x2e53cc;}for(const {suggestion:_0xae3e9d,meta:_0x466588}of this['_findSuggestions'](_0x4c78d5,'insertion')){if(!_0x466588['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x466588['containsRangeInObject'])continue;if(!cn(_0xae3e9d,_0x72e2c7))continue;let _0x276df0=!0x0;for(const _0x2f1007 of _0xae3e9d['getRanges']())for(const _0x1b75d5 of _0x4c78d5)if(!_0x2f1007['containsRange'](_0x1b75d5)){_0x276df0=!0x1;break;}if(_0x276df0)return _0xae3e9d;}const _0x4eaee=_0x15ca27(),_0x4dad69=_0x2cbad4['id'],_0x1df0ac='insertion:'+_0x416695,_0x5a7f94=this['_setSuggestionData']({'id':_0x4eaee,'type':_0x1df0ac,'createdAt':new Date(),'authorId':_0x4dad69,'attributes':_0x72e2c7});for(const _0x4eb24a of _0x4c78d5)this['_addSuggestionMarker'](_0x1df0ac,_0x4eaee,_0x4dad69,_0x4eb24a,bt['getMultiRangeId']());return _0x5a7f94;}['markInlineFormat'](_0x4c6c31,_0x5eab94,_0x29810c=null,_0x254d56={}){if(_0x29810c=_0x29810c||Je(_0x5eab94),_0x4c6c31['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x254d56['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3a864e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x29810c,'accept');return this['forceDefaultExecution'](()=>_0x3a864e([_0x4c6c31],_0x5eab94,_0x254d56)),null;}const _0x5e1cd4=this['editor']['plugins']['get']('Users')['me'],_0x3672b0=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x798cfd,meta:_0x7d8c9f}of this['_findSuggestions'](_0x4c6c31,'insertion'))_0x7d8c9f['isOwn']&&!_0x7d8c9f['isInsideObject']&&_0x3672b0['push'](..._0x798cfd['getRanges']());}const _0x34b1aa=function(_0x277d80,_0x5e28cb){const _0x1d6d7c=[];for(const _0x52ea19 of _0x5e28cb){const _0x4f5c2d=_0x277d80['getIntersection'](_0x52ea19);_0x4f5c2d&&_0x1d6d7c['push'](_0x4f5c2d);}return _0x1d6d7c;}(_0x4c6c31,_0x3672b0),_0x9afc7f=function(_0x3a0e0d,_0x249fe8){const _0x41b1ff=[_0x3a0e0d];for(const _0x5123d7 of _0x249fe8){let _0x21cc09=0x0;for(;_0x21cc09<_0x41b1ff['length'];){const _0x6abbc4=_0x41b1ff[_0x21cc09]['getDifference'](_0x5123d7);_0x41b1ff['splice'](_0x21cc09,0x1,..._0x6abbc4),_0x21cc09+=_0x6abbc4['length'];}}return _0x41b1ff;}(_0x4c6c31,_0x3672b0);_0x34b1aa['length']&&this['_model']['change'](()=>{for(const _0x488175 of _0x34b1aa){const _0x2370c2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x29810c,'accept');this['forceDefaultExecution'](()=>_0x2370c2([_0x488175],_0x5eab94,_0x254d56));}});for(const _0x591827 of _0x9afc7f){let _0x511b66=null,_0x22f744=_0x591827['start'],_0x251127=_0x591827['end'];for(const {suggestion:_0x295fcc,meta:_0x2e9f0b}of this['_findSuggestions'](_0x591827,'formatInline')){if(!_0x2e9f0b['isOwn'])continue;if(_0x295fcc['subType']!=_0x29810c)continue;if(!cn(_0x295fcc,_0x254d56))continue;const _0x4328e2=_0x295fcc['getFirstRange']();if(_0x4328e2['containsRange'](_0x591827,!0x0))return null;_0x22f744=_0x22f744['isBefore'](_0x4328e2['start'])?_0x22f744:_0x4328e2['start'],_0x251127=_0x251127['isAfter'](_0x4328e2['end'])?_0x251127:_0x4328e2['end'],_0x511b66?_0x4328e2['start']['isBefore'](_0x511b66['getFirstRange']()['start'])?(_0x511b66['removeMarkers'](),_0x511b66=_0x295fcc):_0x295fcc['removeMarkers']():_0x511b66=_0x295fcc;}const _0x316468=this['_model']['createRange'](_0x22f744,_0x251127);if(_0x511b66)this['_setSuggestionRange'](_0x511b66,_0x316468);else{const _0x3cab16=_0x15ca27(),_0x4a6bbb=_0x5e1cd4['id'];this['_setSuggestionData']({'id':_0x3cab16,'type':'formatInline:'+_0x29810c,'data':_0x5eab94,'createdAt':new Date(),'authorId':_0x4a6bbb,'attributes':_0x254d56}),this['_addSuggestionMarker']('formatInline:'+_0x29810c,_0x3cab16,_0x4a6bbb,_0x316468);}}return null;}['markBlockFormat'](_0x2dbaec,_0x473248,_0x2a1229=[],_0x16cbd9=null,_0x4862e0={}){_0x473248['formatGroupId']||(_0x473248['formatGroupId']=_0x473248['commandName']),_0x473248['multipleBlocks']=_0x2dbaec['is']('range'),_0x16cbd9=_0x16cbd9||Je(_0x473248);const _0x58b7ec=_0x2a1229['map'](_0xae50e8=>rn(_0xae50e8,this['_model'])),_0x587472=_0x2dbaec['is']('range')?_0x2dbaec:rn(_0x2dbaec,this['_model']);if(this['_trackingSessionId']&&(_0x4862e0['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xa2dc89=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x16cbd9,'accept');return this['forceDefaultExecution'](()=>_0xa2dc89([_0x587472],_0x473248,_0x4862e0)),null;}_0x58b7ec['push'](_0x587472);let _0x3c8b2d=!0x0;for(const _0x14cc5b of _0x58b7ec)if(!this['_rangeIsInLocalUserInsertion'](_0x14cc5b)){_0x3c8b2d=!0x1;break;}if(_0x3c8b2d&&'always'!==this['_trackFormatChanges']){const _0xd9d17c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x16cbd9,'accept');return this['forceDefaultExecution'](()=>_0xd9d17c([_0x587472],_0x473248,_0x4862e0)),null;}let _0x8d6274=null,_0x394094=_0x587472['start'],_0x8eedb9=_0x587472['end'];for(const {suggestion:_0x12c667,meta:_0x1159ae}of this['_findSuggestions'](_0x587472,'formatBlock')){if(!_0x1159ae['isOwn'])continue;if(_0x1159ae['isNextTo']||_0x1159ae['containsRangeInObject']||_0x1159ae['isInsideObject'])continue;if(_0x12c667['data']['formatGroupId']!=_0x473248['formatGroupId'])continue;if(!cn(_0x12c667,_0x4862e0))continue;const _0x1a7333=_0x12c667['getFirstRange']();if(_0x12c667['subType']==_0x16cbd9){if(_0x1a7333['containsRange'](_0x587472,!0x0))return null;_0x394094=_0x394094['isBefore'](_0x1a7333['start'])?_0x394094:_0x1a7333['start'],_0x8eedb9=_0x8eedb9['isAfter'](_0x1a7333['end'])?_0x8eedb9:_0x1a7333['end'],_0x8d6274?_0x1a7333['start']['isBefore'](_0x8d6274['getFirstRange']()['start'])?(_0x8d6274['removeMarkers'](),_0x8d6274=_0x12c667):_0x12c667['removeMarkers']():_0x8d6274=_0x12c667;}else{const _0x1fb062=_0x587472['getIntersection'](_0x1a7333);this['_cutOutSuggestionMarker'](_0x12c667,_0x1fb062);}}const _0x48fe0b=this['editor']['plugins']['get']('Users')['me'],_0x388069=_0x15ca27(),_0x2279eb=_0x48fe0b['id'];if(_0x8d6274)return this['_setSuggestionRange'](_0x8d6274,this['_model']['createRange'](_0x394094,_0x8eedb9)),_0x8d6274;{const _0x200403=this['_setSuggestionData']({'id':_0x388069,'type':'formatBlock:'+_0x16cbd9,'data':_0x473248,'createdAt':new Date(),'authorId':_0x2279eb,'attributes':_0x4862e0});return this['_addSuggestionMarker']('formatBlock:'+_0x16cbd9,_0x388069,_0x2279eb,this['_model']['createRange'](_0x394094,_0x8eedb9)),_0x200403;}}['markMultiRangeBlockFormat'](_0x1d97a1,_0x3fb8e7,_0x27af58=[],_0x185f38=null,_0x3fe32f={}){_0x3fb8e7['formatGroupId']||(_0x3fb8e7['formatGroupId']=_0x3fb8e7['commandName']);const _0x9c245f=_0x1d97a1[0x0];_0x3fb8e7['multipleBlocks']=_0x9c245f['is']('range'),_0x185f38=_0x185f38||Je(_0x3fb8e7);const _0x1cc64e=_0x27af58['map'](_0x2269af=>rn(_0x2269af,this['_model'])),_0x353f6a=_0x9c245f['is']('range')?_0x1d97a1:_0x1d97a1['map'](_0x5cadae=>rn(_0x5cadae,this['_model']));if(this['_trackingSessionId']&&(_0x3fe32f['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3cc6a8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x185f38,'accept');return this['forceDefaultExecution'](()=>_0x3cc6a8(_0x353f6a,_0x3fb8e7,_0x3fe32f)),null;}_0x1cc64e['push'](..._0x353f6a);let _0x46ab99=!0x0;for(const _0x53d788 of _0x1cc64e)if(!this['_rangeIsInLocalUserInsertion'](_0x53d788)){_0x46ab99=!0x1;break;}if(_0x46ab99&&'always'!==this['_trackFormatChanges']){const _0x1da423=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x185f38,'accept');return this['forceDefaultExecution'](()=>_0x1da423(_0x353f6a,_0x3fb8e7,_0x3fe32f)),null;}const _0x46bb9e=this['editor']['plugins']['get']('Users')['me'];for(const _0x1f176b of this['getSuggestions']()){const _0x15b707=_0x1f176b['data'];if(_0x1f176b['author']['id']!=_0x46bb9e['id'])continue;if('formatBlock'!=_0x1f176b['type']||_0x15b707['formatGroupId']!=_0x3fb8e7['formatGroupId'])continue;if(!cn(_0x1f176b,_0x3fe32f))continue;const _0x526f71=_0x1f176b['subType']==_0x185f38;for(let _0x5ef930=0x0;_0x5ef930<_0x353f6a['length'];_0x5ef930++){const _0x300ca8=_0x353f6a[_0x5ef930];for(const _0x4446cd of _0x1f176b['getMarkers']()){const _0xa8f56c=_0x4446cd['getRange']();if(_0x300ca8['isEqual'](_0xa8f56c)){_0x526f71?(_0x353f6a['splice'](_0x5ef930,0x1),_0x5ef930--):_0x1f176b['removeMarker'](_0x4446cd['name']);break;}}}}if(0x0==_0x353f6a['length'])return null;const _0x1bfbfc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x185f38,'join');for(const _0x56aebc of this['getSuggestions']()){const _0x595d76=_0x56aebc['data'];if(_0x56aebc['author']['id']==_0x46bb9e['id']&&('formatBlock'==_0x56aebc['type']&&_0x595d76['formatGroupId']==_0x3fb8e7['formatGroupId']&&_0x56aebc['subType']==_0x185f38&&cn(_0x56aebc,_0x3fe32f)&&(_0x1bfbfc(_0x56aebc['getRanges'](),_0x353f6a)||_0x1bfbfc(_0x353f6a,_0x56aebc['getRanges']())))){for(const _0xb8686e of _0x353f6a)_0x56aebc['addRange'](_0xb8686e);return _0x56aebc;}}const _0x2d521c=_0x15ca27(),_0x4aafe2=_0x46bb9e['id'],_0x501568='formatBlock:'+_0x185f38,_0x2c7133=this['_setSuggestionData']({'id':_0x2d521c,'type':_0x501568,'data':_0x3fb8e7,'createdAt':new Date(),'authorId':_0x4aafe2,'attributes':_0x3fe32f});for(const _0x54fc4b of _0x353f6a)this['_addSuggestionMarker'](_0x501568,_0x2d521c,_0x4aafe2,_0x54fc4b,bt['getMultiRangeId']());return _0x2c7133;}['markDeletion'](_0xa4355b,_0x1044f5=null,_0x2635b7={}){if(_0xa4355b['isCollapsed'])return null;const _0x2e30b9=this['editor']['plugins']['get']('Users')['me'],_0x24a68d=new _0x4f8349(_0xa4355b['start'],_0xa4355b['end']);this['_trackingSessionId']&&(_0x2635b7['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4d200c,meta:_0x16d293}of this['_findSuggestions'](_0x24a68d,'insertion'))if(_0x16d293['isOwn']&&!_0x16d293['isNextTo']){if(_0x4d200c['isMultiRange']){const _0x4a08bc=_0x4d200c['getRanges']()['filter'](_0x43719b=>'$graveyard'!=_0x43719b['root']['rootName']);_0x4a08bc['every'](_0x161e1f=>_0x24a68d['containsRange'](_0x161e1f,!0x0))&&_0x4d200c['discard']();if(_0x4a08bc['some'](_0x143032=>_0x143032['containsRange'](_0x24a68d,!0x0))){const _0x5f07e5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1044f5,'accept');return this['forceDefaultExecution'](()=>_0x5f07e5([_0x24a68d],null,_0x2635b7)),null;}}else{const _0x2c9f54=_0x24a68d['getIntersection'](_0x4d200c['getFirstRange']());null!==_0x2c9f54&&_0x4d200c['_onDiscard']([_0x2c9f54],null,_0x2635b7);}}if(_0x24a68d['detach'](),_0x24a68d['isCollapsed']||'$graveyard'==_0x24a68d['root']['rootName'])return null;let _0x19b90d=null,_0x26085d=_0x24a68d['start'],_0x4c4212=_0x24a68d['end'];const _0x4c945c=this['_findSuggestions'](_0x24a68d,'deletion');for(const {suggestion:_0x5cb003,meta:_0x4b308b}of _0x4c945c){const _0x1f7eb3=this['_model']['createRange'](_0x26085d,_0x4c4212);if(_0x4b308b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4b308b['containsRangeInObject']&&!_0x4b308b['isInsideObject'])){if(_0x5cb003['isMultiRange']){if(!cn(_0x5cb003,_0x2635b7))continue;let _0xe9dce4=!0x0;for(const _0x2feef5 of _0x5cb003['getRanges']()){if(_0x2feef5['containsRange'](_0x1f7eb3,!0x0))return _0x5cb003;_0x1f7eb3['containsRange'](_0x2feef5)||(_0xe9dce4=!0x1);}_0xe9dce4&&_0x5cb003['discard']();}else{const _0x5339d6=_0x5cb003['getFirstRange']();if(_0x5339d6['containsRange'](_0x1f7eb3,!0x0))return _0x5cb003;if(!cn(_0x5cb003,_0x2635b7)){_0x1f7eb3['containsRange'](_0x5339d6)?_0x5cb003['removeMarkers']():_0x5339d6['containsPosition'](_0x26085d)?_0x26085d=_0x5339d6['end']:_0x5339d6['containsPosition'](_0x4c4212)&&(_0x4c4212=_0x5339d6['start']);continue;}_0x26085d=_0x26085d['isBefore'](_0x5339d6['start'])?_0x26085d:_0x5339d6['start'],_0x4c4212=_0x4c4212['isAfter'](_0x5339d6['end'])?_0x4c4212:_0x5339d6['end'],_0x2635b7=Object['assign']({},_0x5cb003['attributes']),_0x19b90d?_0x5339d6['start']['isBefore'](_0x19b90d['getFirstRange']()['start'])?(_0x19b90d['removeMarkers'](),_0x19b90d=_0x5cb003):_0x5cb003['removeMarkers']():_0x19b90d=_0x5cb003;}}}if(_0x19b90d)return this['_setSuggestionRange'](_0x19b90d,this['_model']['createRange'](_0x26085d,_0x4c4212)),_0x19b90d;{const _0x23c6d0=_0x15ca27(),_0x139e78=this['_model']['createRange'](_0x26085d,_0x4c4212),_0x39bb63=_0x2e30b9['id'],_0x4c218c=_0x1044f5?'deletion:'+_0x1044f5:'deletion',_0x55c580=this['_setSuggestionData']({'id':_0x23c6d0,'type':_0x4c218c,'createdAt':new Date(),'authorId':_0x39bb63,'attributes':_0x2635b7});return this['_addSuggestionMarker'](_0x4c218c,_0x23c6d0,_0x39bb63,_0x139e78),_0x55c580;}}['markMultiRangeDeletion'](_0x28344e,_0x4b1e37='multi',_0x2ec64b={}){const _0x3da729=this['editor']['plugins']['get']('Users')['me'],_0x5c411f=_0x28344e['map'](_0x341d86=>new _0x4f8349(_0x341d86['start'],_0x341d86['end'])),_0x572c89=new Set();this['_trackingSessionId']&&(_0x2ec64b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x348fb3,meta:_0x568020}of this['_findSuggestions'](_0x5c411f,'insertion'))_0x568020['isOwn']&&!_0x568020['isNextTo']&&_0x572c89['add'](_0x348fb3);for(const _0x259318 of _0x572c89)if(_0x259318['isMultiRange']){const _0x3fb481=_0x259318['getRanges']();(!_0x259318['attributes']||!_0x259318['attributes']['skipNestingCheck'])&&(_0x3fb481['every'](_0x268ea8=>_0x5c411f['some'](_0x35a996=>_0x35a996['containsRange'](_0x268ea8,!0x0)))&&_0x259318['discard']());if(_0x5c411f['every'](_0x10bb50=>_0x3fb481['some'](_0x4bf9a6=>_0x4bf9a6['containsRange'](_0x10bb50,!0x0)))){const _0x5381da=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b1e37,'accept');return this['forceDefaultExecution'](()=>_0x5381da(_0x28344e,null,_0x2ec64b)),null;}}else{const _0x422679=_0x259318['getFirstRange']();_0x5c411f['some'](_0x487e4d=>_0x487e4d['containsRange'](_0x422679,!0x0))&&_0x259318['discard']();if(_0x5c411f['every'](_0x3d9e2c=>_0x422679['containsRange'](_0x3d9e2c,!0x0))){const _0x176f46=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b1e37,'accept');return this['forceDefaultExecution'](()=>_0x176f46(_0x5c411f,null,_0x2ec64b)),null;}}const _0xf47c7e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b1e37,'join');let _0x27b9fc=null;for(const _0x36c084 of this['getSuggestions']())if(_0x36c084['author']['id']==_0x3da729['id']&&_0x36c084['isInContent']&&'deletion'==_0x36c084['type']&&_0x36c084['subType']==_0x4b1e37&&cn(_0x36c084,_0x2ec64b)&&(_0xf47c7e(_0x36c084['getRanges'](),_0x5c411f)||_0xf47c7e(_0x5c411f,_0x36c084['getRanges']()))){if(_0x27b9fc){if(_0x36c084['commentThread']&&_0x36c084['commentThread']['length'])continue;for(const _0x12740c of _0x36c084['getRanges']())_0x27b9fc['isIntersectingWithRange'](_0x12740c)||_0x27b9fc['addRange'](_0x12740c);_0x36c084['removeMarkers']();}else{_0x27b9fc=_0x36c084;for(const _0xffc089 of _0x5c411f)_0x36c084['isIntersectingWithRange'](_0xffc089)||_0x36c084['addRange'](_0xffc089);}}if(_0x27b9fc)return _0x27b9fc;_0x572c89['clear']();for(const {suggestion:_0x518745,meta:_0x4c0fbb}of this['_findSuggestions'](_0x5c411f,'deletion'))_0x4c0fbb['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4c0fbb['containsRangeInObject']&&!_0x4c0fbb['isInsideObject'])&&cn(_0x518745,_0x2ec64b)&&_0x572c89['add'](_0x518745);for(const _0x2a8683 of _0x572c89){const _0x44de43=_0x2a8683['getRanges']();if(!_0x2ec64b||!_0x2ec64b['skipNestingCheck']){if(_0x5c411f['every'](_0x3a5e96=>_0x44de43['some'](_0x5c0c85=>_0x5c0c85['containsRange'](_0x3a5e96,!0x0))))return _0x2a8683;}(!_0x2a8683['attributes']||!_0x2a8683['attributes']['skipNestingCheck'])&&(_0x44de43['every'](_0x46937f=>_0x5c411f['some'](_0x54fbd8=>_0x54fbd8['containsRange'](_0x46937f,!0x0)))&&_0x2a8683['discard']());}const _0x368695=_0x15ca27(),_0x4694f9=_0x3da729['id'],_0x2f5724='deletion:'+_0x4b1e37,_0x1c3a33=this['_setSuggestionData']({'id':_0x368695,'type':_0x2f5724,'createdAt':new Date(),'authorId':_0x4694f9,'attributes':_0x2ec64b});for(const _0x5d7e97 of _0x5c411f)_0x5d7e97['detach'](),_0x5d7e97['isCollapsed']||'$graveyard'==_0x5d7e97['root']['rootName']||this['_addSuggestionMarker'](_0x2f5724,_0x368695,_0x4694f9,_0x5d7e97,bt['getMultiRangeId']());return _0x1c3a33;}['markAttributeChange'](_0x1379fd,_0xa5b7cb,_0xe7e39,_0x5483b5,_0x299fa8){if(_0x1379fd['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2cda52=this['editor']['plugins']['get']('Users')['me']['id'],_0x570834=Array['from'](this['_suggestions']['values']())['filter'](_0x21fd5c=>'attribute'==_0x21fd5c['type']&&_0x21fd5c['data']['key']==_0xa5b7cb&&_0x21fd5c['isIntersectingWithRange'](_0x1379fd));if(this['_trackingSessionId']&&(_0x299fa8['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x523ced=this['_findSuggestions'](_0x1379fd,'insertion')['filter'](({meta:_0x45f299})=>_0x45f299['isOwn']&&!_0x45f299['isInsideObject']&&!_0x45f299['isNextTo'])['map'](({suggestion:_0x88b42e})=>_0x88b42e);_0x570834['unshift'](..._0x523ced);}const _0x1f017e=new Map([[_0x1379fd,_0xe7e39]]);for(const _0xb0522d of _0x570834){const _0x31c988='attribute'==_0xb0522d['type']?_0xb0522d['data']['oldValue']:void 0x0,_0x18c3a1=_0xb0522d['getFirstRange'](),_0x26a416=Array['from'](_0x1f017e['keys']())['find'](_0x13bfb1=>_0x13bfb1['isIntersecting'](_0x18c3a1));if(!_0x26a416)continue;const _0x34d968=_0x26a416['getDifference'](_0x18c3a1);this['_suggestionsConversion']['isBlockAttribute'](_0xa5b7cb)&&'insertion'==_0xb0522d['type']&&0x0!=_0x34d968['length']||(_0x1f017e['delete'](_0x26a416),_0x34d968['forEach'](_0x5a49f8=>{_0x1f017e['set'](_0x5a49f8,_0xe7e39);}),'insertion'!=_0xb0522d['type']&&_0x31c988!=_0x5483b5&&_0x1f017e['set'](_0x26a416['getIntersection'](_0x18c3a1),_0x31c988));}const _0x5e7c06=[];for(const [_0x1ea83c,_0x5afd06]of _0x1f017e){const _0x285818=_0x15ca27(),_0x2781cd={'key':_0xa5b7cb,'oldValue':_0x5afd06,'newValue':_0x5483b5};_0xa5b7cb['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':_0xa5b7cb});const _0x136e12=('attribute:'+(_0xa5b7cb+'|'+Je({'newValue':_0x5483b5})))['substring'](0x0,0x3c),_0x191cd9=this['_setSuggestionData']({'id':_0x285818,'type':_0x136e12,'data':_0x2781cd,'createdAt':new Date(),'authorId':_0x2cda52,'attributes':_0x299fa8});_0x5e7c06['push'](_0x191cd9),this['_addSuggestionMarker'](_0x136e12,_0x285818,_0x2cda52,_0x1ea83c);}return _0x5e7c06;}['enableDefaultAttributesIntegration'](_0x49c51a){this['enableCommand'](_0x49c51a,(_0x397905,..._0x5b3593)=>{this['recordAttributeChanges'](()=>{_0x397905(..._0x5b3593);});});}['startTrackingSession'](_0x9e014f){return this['_trackingSessionId']=void 0x0!==_0x9e014f?_0x9e014f:_0x15ca27(),this['_trackingSessionId'];}['_getAttributeKey'](_0x54faf0){return'attribute'==_0x54faf0['type']?un(_0x54faf0['subType']):null;}['_applyOperationsAsSuggestions'](_0xd0942c){if(0x0==_0xd0942c['length'])return;const _0x354b4c=this['editor'],_0x586bdc=_0x354b4c['plugins']['get'](_0xed69f8),_0x48b4a3=[];_0x354b4c['model']['change'](_0x8b8be8=>{for(let _0x45c417=0x0;_0x45c417<_0xd0942c['length'];_0x45c417++){const _0x3a33a4=_0xd0942c[_0x45c417];if(_0x3a33a4['baseVersion']=_0x354b4c['model']['document']['version'],_0x3a33a4['isDocumentOperation']=!0x0,_0x586bdc['isMarkedRemoveOperation'](_0x3a33a4)){const _0x7866ba=_0x699eae(_0x3a33a4['newRange'],_0x354b4c['model']);_0x48b4a3['unshift'](_0x4f8349['fromRange'](_0x7866ba));}else switch(_0x3a33a4['type']){case'rename':{const _0x5ab29b=_0x3a33a4['oldName'],_0x58d84f=_0x3a33a4['newName'];if(_0x5ab29b==_0x58d84f)break;_0x8b8be8['batch']['addOperation'](_0x3a33a4),_0x354b4c['model']['applyOperation'](_0x3a33a4);const _0x5bea35='$elementName',_0x51a279=_0x3a33a4['position'],_0x2cddb4=_0x354b4c['model']['createRange'](_0x51a279,_0x354b4c['model']['createPositionAt'](_0x51a279['nodeAfter'],'end'));this['markAttributeChange'](_0x2cddb4,_0x5bea35,_0x5ab29b,_0x58d84f,{'groupId':_0x15ca27()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x738817=_0x3a33a4['oldValue'],_0x224962=_0x3a33a4['newValue'];if(_0x738817==_0x224962)break;_0x8b8be8['batch']['addOperation'](_0x3a33a4),_0x354b4c['model']['applyOperation'](_0x3a33a4);const _0x431687=_0x3a33a4['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x431687))break;const _0x522558=_0x699eae(_0x3a33a4['range'],_0x354b4c['model']);this['markAttributeChange'](_0x522558,_0x431687,_0x738817,_0x224962,{'groupId':_0x15ca27()});break;}case'insert':{_0x8b8be8['batch']['addOperation'](_0x3a33a4),_0x354b4c['model']['applyOperation'](_0x3a33a4);if(_0xd0942c[_0x45c417+0x1]&&'move'==_0xd0942c[_0x45c417+0x1]['type'])break;const _0x1470ff=_0x3a33a4['position'],_0x20dbd1=_0x3a33a4['howMany'],_0x570946=_0x699eae(_0x354b4c['model']['createRange'](_0x1470ff,_0x1470ff['getShiftedBy'](_0x20dbd1)),_0x354b4c['model']);this['markInsertion'](_0x570946);break;}case'split':{_0x8b8be8['batch']['addOperation'](_0x3a33a4),_0x354b4c['model']['applyOperation'](_0x3a33a4);const _0x54855a=_0x3a33a4['splitPosition'],_0x5c84e5=_0x3a33a4['moveTargetPosition'];this['markInsertion'](_0x354b4c['model']['createRange'](_0x54855a,_0x5c84e5));break;}case'move':case'remove':_0x8b8be8['batch']['addOperation'](_0x3a33a4),_0x354b4c['model']['applyOperation'](_0x3a33a4);}}for(const _0x334bb6 of _0x48b4a3)_0x334bb6['detach'](),this['markDeletion'](_0x334bb6);});}['_setSuggestionRange'](_0x13696c,_0x4e62e4){const _0x5c974d=_0x13696c['getFirstMarker']();this['_model']['change'](_0x57722d=>{_0x57722d['updateMarker'](_0x5c974d,{'range':_0x4e62e4});});}['_addThreadToSuggestion'](_0xdcd32e){const _0x1c7b87=_0xdcd32e['id'],_0x18873c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1c7b87)||this['_commentsRepository']['addCommentThread']({'channelId':_0x18873c,'threadId':_0x1c7b87,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1a40c9=this['_commentsRepository']['getCommentThread'](_0x1c7b87);_0x1a40c9['unbind']('isRemovable'),_0x1a40c9['isRemovable']=!0x1,_0xdcd32e['commentThread']=_0x1a40c9;}['_checkSuggestionCorrectness'](_0x4058e8,_0x4abafc,_0x18c3b1,_0x513c17){if(_0x4058e8['type']!=_0x4abafc||_0x4058e8['subType']!=_0x18c3b1||_0x4058e8['creator']['id']!=_0x513c17)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3800a1('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1f5865,_0x49c605){const _0x21e4eb=_0x1f5865['getFirstRange']();if(_0x49c605['isEqual'](_0x21e4eb))_0x1f5865['removeMarkers']();else{if(_0x21e4eb['containsRange'](_0x49c605)){const _0x883f1d=this['_model']['createPositionAt'](_0x49c605['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1f5865,this['_model']['createRange'](_0x21e4eb['start'],_0x883f1d));const _0x1b27e4=_0x15ca27(),_0x235ba2=_0x1f5865['creator']['id'],_0x552d54=_0x1f5865['type']+':'+_0x1f5865['subType'];this['_setSuggestionData']({'id':_0x1b27e4,'type':_0x552d54,'createdAt':new Date(),'authorId':_0x235ba2,'data':_0x1f5865['data'],'attributes':_0x1f5865['attributes']});const _0x113c9f=this['_model']['createPositionAt'](_0x49c605['end']['parent'],'after'),_0x5b14bc=this['_model']['createRange'](_0x113c9f,_0x21e4eb['end']);this['_addSuggestionMarker'](_0x552d54,_0x1b27e4,_0x235ba2,_0x5b14bc);}else{if(_0x21e4eb['containsPosition'](_0x49c605['start'])){const _0x4f8fbb=this['_model']['createPositionAt'](_0x49c605['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1f5865,this['_model']['createRange'](_0x21e4eb['start'],_0x4f8fbb));}else{const _0x101df5=this['_model']['createPositionAt'](_0x49c605['end']['parent'],'after');this['_setSuggestionRange'](_0x1f5865,this['_model']['createRange'](_0x101df5,_0x21e4eb['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x45fc89){for(const {suggestion:_0xbdeead,meta:_0x2641d6}of this['_findSuggestions'](_0x45fc89,'insertion')){if(!_0x2641d6['isOwn'])continue;const _0x309b79=_0xbdeead['getRanges']();for(const _0x644c0c of _0x309b79)if(!_0x45fc89['getDifference'](_0x644c0c)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x452ad6){return this['editor']['plugins']['get']('Users')['getUser'](_0x452ad6);}['_getExternalAuthor'](_0x35f47e){const _0x4522ef=this['editor']['plugins']['get']('Users'),_0x55b7a4=_0x21f52c('external:'+_0x35f47e),_0x1dc608=_0x4522ef['getUser'](_0x55b7a4);return _0x1dc608||_0x4522ef['addUser']({'id':_0x55b7a4,'name':_0x35f47e});}['_createSuggestion'](_0x4ba48f,_0x527bdb,_0x17f37a,_0x4ce079,_0x29c92a,_0x32ccc4){const _0x47478e=this['_getAuthorFromId'](_0x4ce079);if(!_0x47478e)throw new _0x3800a1('track-changes-user-not-found',this,{'authorId':_0x4ce079,'suggestionId':_0x17f37a});const _0xfb0c3b=this['_suggestionFactory']['buildSuggestion'](_0x4ba48f,_0x527bdb,_0x17f37a,_0x47478e,_0x29c92a,_0x313f10=>{this['_updateSuggestionData'](_0x17f37a,{'attributes':_0x313f10});const _0xeb089f=this['getSuggestion'](_0x17f37a);this['_joinWithAdjacentSuggestions'](new Set([_0xeb089f])),this['_refreshSuggestionsChain'](new Set([_0xeb089f]));},_0x32ccc4);return this['listenTo'](_0xfb0c3b,'accept',()=>{this['_updateSuggestionData'](_0x17f37a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xfb0c3b,'discard',()=>{this['_updateSuggestionData'](_0x17f37a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x17f37a,_0xfb0c3b),this['_suggestionState']['set'](_0xfb0c3b,'notReady'),_0xfb0c3b;}['_breakSuggestionMarker'](_0x4bb4cf,_0x12a633,_0x5b2aa5){const _0x1db035=_0x4bb4cf['getFirstRange'](),_0x4b7194=_0x1db035['start'],_0x1e7f45=_0x1db035['end'];this['_setSuggestionRange'](_0x4bb4cf,this['_model']['createRange'](_0x4b7194,_0x12a633));const _0x29db91=_0x15ca27(),_0x2ebfab=_0x4bb4cf['creator']['id'],_0x4db14=_0x4bb4cf['type']+(_0x4bb4cf['subType']?':'+_0x4bb4cf['subType']:'');this['_setSuggestionData']({'id':_0x29db91,'type':_0x4db14,'createdAt':new Date(),'authorId':_0x2ebfab,'originalSuggestionId':_0x4bb4cf['_originalSuggestionId']||_0x4bb4cf['id'],'attributes':_0x4bb4cf['attributes'],'data':_0x4bb4cf['data']});const _0x2dae5d=this['_getAttributeKey'](_0x4bb4cf);('formatBlock'==_0x4bb4cf['type']||_0x2dae5d&&this['_suggestionsConversion']['isBlockAttribute'](_0x2dae5d))&&(_0x5b2aa5=this['_model']['createPositionBefore'](_0x5b2aa5['parent'])),this['_addSuggestionMarker'](_0x4db14,_0x29db91,_0x2ebfab,this['_model']['createRange'](_0x5b2aa5,_0x1e7f45));}['_findSuggestions'](_0x50d1ff,_0x873569=null){const _0x3116d1=[],_0x5ded86=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x50d1ff)||(_0x50d1ff=[_0x50d1ff]);for(const _0x1e7fa8 of this['getSuggestions']()){if(!_0x1e7fa8['isInContent'])continue;if(_0x873569&&_0x1e7fa8['type']!=_0x873569)continue;let _0x332721=!0x1;for(const _0x5d0023 of _0x1e7fa8['getRanges']()){for(const _0x13cdc0 of _0x50d1ff){const _0x4bf25e=_0x13cdc0['start']['isEqual'](_0x5d0023['end'])||_0x13cdc0['end']['isEqual'](_0x5d0023['start']);if(_0x4bf25e||_0x13cdc0['getIntersection'](_0x5d0023)){const _0x253a24=_0x13cdc0['containsRange'](_0x5d0023)&&qe(this['_model']['schema'],_0x5d0023['start'],_0x13cdc0),_0x32285f=_0x5d0023['containsRange'](_0x13cdc0)&&qe(this['_model']['schema'],_0x13cdc0['start'],_0x5d0023);_0x3116d1['push']({'suggestion':_0x1e7fa8,'meta':{'isOwn':_0x5ded86==_0x1e7fa8['author'],'isNextTo':_0x4bf25e,'isInsideObject':_0x253a24,'containsRangeInObject':_0x32285f}}),_0x332721=!0x0;break;}}if(_0x332721)break;}}return _0x3116d1;}['_addSuggestionMarker'](_0x365ff4,_0x2d8443,_0x408763,_0x182beb,_0x39f8a3){this['_model']['change'](_0x4010f5=>{let _0x3aa45b='suggestion:'+_0x365ff4+':'+_0x2d8443+':'+_0x408763;_0x39f8a3&&(_0x3aa45b=_0x3aa45b+':'+_0x39f8a3),_0x4010f5['addMarker'](_0x3aa45b,{'range':_0x182beb,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x762305){const _0x2830b5=_0x762305['previous'],_0x1f5b80=_0x762305['next'];_0x762305['previous']=null,_0x762305['next']=null,null!=_0x2830b5&&_0x2830b5['next']==_0x762305&&(_0x2830b5['next']=_0x1f5b80),null!=_0x1f5b80&&_0x1f5b80['previous']==_0x762305&&(_0x1f5b80['previous']=_0x2830b5),'ready'==this['_suggestionState']['get'](_0x762305)&&(this['_suggestionState']['set'](_0x762305,'removed'),this['fire']('suggestionUnloaded',_0x762305,_0x2830b5,_0x1f5b80));}['_setSuggestionData'](_0x5065fa){const _0x3e113d=_0x5065fa['id'],_0x2ad241=this['addSuggestionData'](_0x5065fa);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4cb54a=this['editor']['plugins']['get']('PendingActions'),_0x43b35c=_0x2ad241['hasComments'],_0xfe4fae=_0x2ad241['subType']?_0x2ad241['type']+':'+_0x2ad241['subType']:_0x2ad241['type'],_0x25be81=this['editor']['locale'],_0x12cfff=_0x4cb54a['add'](At(_0x25be81,'PENDING_ACTION_SUGGESTION')),_0x1eae3e={'id':_0x3e113d,'type':_0xfe4fae,'hasComments':_0x43b35c,'data':_0x5065fa['data']||null,'originalSuggestionId':_0x5065fa['originalSuggestionId']||null,'attributes':_0x2ad241['attributes']};this['_adapter']['addSuggestion'](_0x1eae3e)['then'](_0x5ac15a=>{_0x2ad241['_saved']=!0x0,_0x4cb54a['remove'](_0x12cfff),_0x5ac15a&&_0x5ac15a['createdAt']&&(this['_suggestions']['get'](_0x3e113d)['createdAt']=_0x5ac15a['createdAt']);})['catch'](_0x42df27=>{throw _0x3947bb('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2ad241['discard']();}),_0x2ad241['stopListening'](),this['_suggestions']['delete'](_0x2ad241['id']),this['_suggestionState']['delete'](_0x2ad241),_0x42df27;});}return _0x2ad241;}['_updateSuggestionData'](_0x2ce5dd,_0x5b397e){const _0x11bf38=this['editor']['plugins']['get']('PendingActions'),_0x2ac7c1=this['getSuggestion'](_0x2ce5dd);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2ac7c1['_saved']){const _0x11b355=_0x11bf38['add'](At(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2ce5dd,_0x5b397e)['then'](()=>{_0x11bf38['remove'](_0x11b355);});}else _0x2ac7c1['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2ce5dd,_0x5b397e);});}}['_getSuggestionData'](_0xed32c8){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3800a1('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xed32c8);}['_handleNewSuggestionMarker'](_0x3295f5){const {id:_0x53208f,type:_0x5cb103,subType:_0x14def1,authorId:_0x478942}=_0x475a96(_0x3295f5),_0x352784=this['_suggestions']['get'](_0x53208f)||this['_createSuggestion'](_0x5cb103,_0x14def1,_0x53208f,_0x478942,{});switch(this['_checkSuggestionCorrectness'](_0x352784,_0x5cb103,_0x14def1,_0x478942),this['_suggestionState']['get'](_0x352784)){case'notReady':this['_getSuggestionData'](_0x53208f)['then'](_0x27f965=>{let _0x2bbc02=Promise['resolve']();_0x27f965['hasComments']&&(_0x2bbc02=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x53208f})),_0x2bbc02['then'](()=>{this['addSuggestionData'](_0x27f965)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x352784,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x53208f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x352784,'ready'),this['fire']('suggestionLoaded',_0x352784);break;case'ready':this['fire']('suggestionChanged',_0x352784);}return _0x352784['addMarkerName'](_0x3295f5),_0x352784;}['_refreshSuggestionsChain'](_0x1207f5){const _0x5d2e06=Array['from'](_0x1207f5),_0x19b8f4=_0x5d2e06['filter'](_0x6a1fa=>'attribute'==_0x6a1fa['type']);this['_refreshAttributeSuggestionsChain'](_0x19b8f4);const _0x119b4d=_0x5d2e06['filter'](_0x1eb72f=>!_0x1eb72f['isMultiRange']&&'attribute'!=_0x1eb72f['type']),_0x503dca=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3a219d=>!_0x3a219d['isMultiRange']&&'attribute'!=_0x3a219d['type']),_0x5b42ab=_0x503dca['filter'](_0xe3370e=>!_0x1207f5['has'](_0xe3370e)),_0x33c1ce=new Map(_0x503dca['map'](_0x22ef02=>[_0x22ef02,this['_suggestionFactory']['getSuggestionCallback'](_0x22ef02['type'],_0x22ef02['subType'],'chain')])),_0x259196=new Map(_0x503dca['map'](_0x1ce5d9=>[_0x1ce5d9,_0x1ce5d9['getFirstRange']()])),_0x3ee06b=new Set(),_0x1edf3e=new Set();for(let _0x16d370=0x0;_0x16d370<_0x119b4d['length'];_0x16d370++)_0x40425d(_0x119b4d[_0x16d370],_0x119b4d,_0x16d370+0x1);for(let _0x5725e8=0x0;_0x5725e8<_0x119b4d['length'];_0x5725e8++)_0x40425d(_0x119b4d[_0x5725e8],_0x5b42ab,0x0);const _0x18ab4d=new Set();for(let _0x18dcc6=0x0;_0x18dcc6<_0x119b4d['length'];_0x18dcc6++){const _0x5f2e6d=_0x119b4d[_0x18dcc6];!_0x1edf3e['has'](_0x5f2e6d)&&_0x5f2e6d['previous']&&(_0x18ab4d['add'](_0x5f2e6d['previous']),_0x5f2e6d['previous']['next']===_0x5f2e6d&&(_0x5f2e6d['previous']['next']=null),_0x5f2e6d['previous']=null),!_0x3ee06b['has'](_0x5f2e6d)&&_0x5f2e6d['next']&&(_0x18ab4d['add'](_0x5f2e6d['next']),_0x5f2e6d['next']['previous']===_0x5f2e6d&&(_0x5f2e6d['next']['previous']=null),_0x5f2e6d['next']=null);}function _0x40425d(_0x825364,_0xb72583,_0x3c4c2c){for(let _0x590ae9=_0x3c4c2c;_0x590ae9<_0xb72583['length'];_0x590ae9++){const _0x42dfac=_0x3d8f88(_0x825364,_0xb72583[_0x590ae9]);_0x42dfac&&(_0x42dfac[0x0]['next']=_0x42dfac[0x1],_0x42dfac[0x1]['previous']=_0x42dfac[0x0],_0x3ee06b['add'](_0x42dfac[0x0]),_0x1edf3e['add'](_0x42dfac[0x1]));}}function _0x3d8f88(_0x343214,_0x1712a2){if(_0x343214['author']['id']!==_0x1712a2['author']['id'])return null;const _0x542a59=_0x33c1ce['get'](_0x343214)(_0x343214,_0x1712a2,_0x259196['get'](_0x343214),_0x259196['get'](_0x1712a2));if(!_0x542a59)return null;return _0x33c1ce['get'](_0x1712a2)(_0x343214,_0x1712a2,_0x259196['get'](_0x343214),_0x259196['get'](_0x1712a2))?_0x542a59[0x1]['commentThread']&&_0x542a59[0x1]['commentThread']['length']?null:_0x542a59:null;}_0x18ab4d['size']&&this['_refreshSuggestionsChain'](_0x18ab4d);}['_refreshAttributeSuggestionsChain'](_0x4ec509){if(0x0==_0x4ec509['length'])return;const _0x3ee081=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x34427d=>'attribute'==_0x34427d['type']&&_0x34427d['_isDataLoaded']),_0x42ef21=[],_0x5c4d40=new Map();for(const _0x42c841 of _0x3ee081){const _0x1913e8=_0x21f52c(_0x42c841['attributes']);_0x5c4d40['has'](_0x1913e8)||(_0x5c4d40['set'](_0x1913e8,_0x42ef21['length']),_0x42ef21['push']([]));const _0x521b53=_0x5c4d40['get'](_0x1913e8);_0x42ef21[_0x521b53]['push'](_0x42c841);}!(function(){_0x42ef21['sort']((_0x39ccc8,_0x33b4ca)=>{const _0x346945=_0x39ccc8[0x0]['createdAt'],_0x29e1eb=_0x33b4ca[0x0]['createdAt'];return _0x346945==_0x29e1eb?_0x39ccc8[0x0]['attributes']['groupId']<_0x33b4ca[0x0]['attributes']['groupId']?-0x1:0x1:_0x346945<_0x29e1eb?-0x1:0x1;});for(const _0x241ce0 of _0x42ef21)_0x241ce0['sort']((_0x3f2bb0,_0x2263c3)=>_0x3f2bb0['id']<_0x2263c3['id']?-0x1:0x1);}());for(let _0x173804=0x0;_0x173804<_0x42ef21['length'];_0x173804++){if(0x0==_0x42ef21[_0x173804]['length'])continue;const _0x4c9c4=[];for(let _0x2853b4=_0x173804+0x1;_0x2853b4<_0x42ef21['length'];_0x2853b4++)0x0!=_0x42ef21[_0x2853b4]['length']&&_0x39734a(_0x42ef21[_0x173804],_0x42ef21[_0x2853b4])&&_0x4c9c4['push'](_0x2853b4);for(const _0x496957 of _0x4c9c4)_0x42ef21[_0x173804]=_0x42ef21[_0x173804]['concat'](_0x42ef21[_0x496957]),_0x42ef21[_0x496957]=[];}for(const _0x58481a of _0x42ef21)for(let _0x4f4403=0x0;_0x4f4403<_0x58481a['length'];_0x4f4403++){const _0x56799a=_0x58481a[_0x4f4403+0x1]||null;_0x58481a[_0x4f4403]['next']!==_0x56799a&&(_0x58481a[_0x4f4403]['next']=_0x56799a);}for(const _0x34cd6b of _0x42ef21)for(let _0x38ffed=0x0;_0x38ffed<_0x34cd6b['length'];_0x38ffed++){const _0xbc2b98=_0x34cd6b[_0x38ffed-0x1]||null;_0x34cd6b[_0x38ffed]['previous']!==_0xbc2b98&&(_0x34cd6b[_0x38ffed]['previous']=_0xbc2b98);}function _0x39734a(_0x3c522f,_0x3222f5){if(_0x3c522f[0x0]['attributes']['groupId']!==_0x3222f5[0x0]['attributes']['groupId']&&_0x3c522f[0x0]['author']!==_0x3222f5[0x0]['author'])return!0x1;if(!function(_0x103ac5,_0x2b9a22){if(!_0x103ac5['hasComments']&&!_0x2b9a22['hasComments'])return!0x0;if(_0x103ac5['hasComments']&&_0x2b9a22['hasComments'])return!0x1;if(_0x103ac5['hasComments']&&_0x2b9a22['createdAt']<_0x103ac5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2b9a22['hasComments']&&_0x103ac5['createdAt']<_0x2b9a22['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3c522f[0x0],_0x3222f5[0x0]))return!0x1;const _0x352b1a=ot(_0x3c522f[0x0]['attributes'],['groupId','trackingSessionId']),_0x2bb4b7=ot(_0x3222f5[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x352b1a,_0x2bb4b7))return!0x1;if(_0x3c522f[0x0]['attributes']['groupId']==_0x3222f5[0x0]['attributes']['groupId'])return!0x0;if(_0x3c522f[0x0]['attributes']['trackingSessionId']!==_0x3222f5[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3c522f['every'](_0x2321c9=>_0x3222f5['some'](_0x1595db=>_0x2321c9['getFirstRange']()['isEqual'](_0x1595db['getFirstRange']())))&&_0x3222f5['every'](_0xf515fc=>_0x3c522f['some'](_0xff6cdb=>_0xf515fc['getFirstRange']()['isEqual'](_0xff6cdb['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x845f67){const _0x49f390=Array['from'](_0x845f67),_0x234732=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3be20d=_0x234732['filter'](_0x2faecd=>!_0x845f67['has'](_0x2faecd)),_0x1ff8ab=new Map(_0x49f390['map'](_0x161e22=>[_0x161e22,this['_suggestionFactory']['getSuggestionCallback'](_0x161e22['type'],_0x161e22['subType'],'join')])),_0x2875ed=new Map(_0x234732['map'](_0x1755e5=>[_0x1755e5,_0x1755e5['getRanges']()]));for(let _0x458f78=0x0;_0x458f78<_0x49f390['length'];_0x458f78++){if(_0x363d7c(this,_0x49f390[_0x458f78],_0x49f390,_0x458f78+0x1))return!0x0;}for(let _0x3c89c4=0x0;_0x3c89c4<_0x49f390['length'];_0x3c89c4++){if(_0x363d7c(this,_0x49f390[_0x3c89c4],_0x3be20d,0x0))return!0x0;}return!0x1;function _0x363d7c(_0x16cfae,_0x269440,_0x470cf8,_0x4a39ea){for(let _0x341a8c=_0x4a39ea;_0x341a8c<_0x470cf8['length'];_0x341a8c++){const _0x2dbb0e=_0x470cf8[_0x341a8c];if(_0x2dbb0e['type']!==_0x269440['type']||_0x2dbb0e['author']['id']!==_0x269440['author']['id']||_0x2dbb0e['subType']!==_0x269440['subType'])continue;if(!an(_0x269440,_0x2dbb0e))continue;if('attribute'==_0x269440['type']&&_0x269440['data']['oldValue']!=_0x2dbb0e['data']['oldValue'])continue;if('attribute'==_0x269440['type']&&_0x16cfae['_suggestionsConversion']['isBlockAttribute'](_0x269440['data']['key']))continue;if('formatBlock'==_0x269440['type']){const _0x277dc7=_0x16cfae['editor']['model'],_0x7a047a=_0x269440['getContainedElement']();if(_0x7a047a&&(_0x277dc7['schema']['isObject'](_0x7a047a)||_0x277dc7['schema']['isLimit'](_0x7a047a)))continue;}const _0x55e21c=_0x1ff8ab['get'](_0x269440),_0x2d5fa3=_0x2875ed['get'](_0x269440),_0x47c3b8=_0x2875ed['get'](_0x2dbb0e),_0x445491=_0x269440['commentThread']&&_0x269440['commentThread']['length'],_0x181d6b=_0x2dbb0e['commentThread']&&_0x2dbb0e['commentThread']['length'];if(!_0x445491&&_0x55e21c(_0x47c3b8,_0x2d5fa3))return _0x16cfae['_joinSuggestions'](_0x2dbb0e,_0x269440),_0x2875ed['delete'](_0x269440),!0x0;if(!_0x181d6b&&_0x55e21c(_0x2d5fa3,_0x47c3b8))return _0x16cfae['_joinSuggestions'](_0x269440,_0x2dbb0e),_0x2875ed['delete'](_0x2dbb0e),!0x0;}return!0x1;}}['_joinSuggestions'](_0x17df99,_0x2e6284){if(_0x17df99['isMultiRange']){for(const _0x1647fb of _0x2e6284['getRanges']())_0x17df99['addRange'](_0x1647fb);}else{const _0x15d0ea=_0x2e6284['getFirstRange']()['end'];this['_setSuggestionRange'](_0x17df99,this['_model']['createRange'](_0x17df99['getFirstRange']()['start'],_0x15d0ea));}_0x2e6284['removeMarkers']();}['_getMarkerAnnouncementText'](_0xcba285,_0x397f5b,_0x3922cb){const _0x2346ef=_0xcba285['startsWith']('format')||_0xcba285['startsWith']('attribute')?'FORMATTING':_0xcba285['toUpperCase']();return At(this['editor']['locale'],_0x397f5b+'_'+_0x2346ef+'_SUGGESTION_ANNOUNCEMENT',_0x3922cb);}['_initAriaMarkerChangeAnnouncements'](){const _0x473e19=this['editor'];if(!_0x473e19['ui'])return;const {ariaLiveAnnouncer:_0x531c6d}=_0x473e19['ui'];_0x4a098b(this['_model'],({left:_0x51b9aa,entered:_0x34aa37})=>{for(const _0x26a5b8 of _0x51b9aa){const {group:_0x25f9db,type:_0x4115f7}=_0x475a96(_0x26a5b8['name']);if('suggestion'===_0x25f9db){_0x531c6d['announce'](this['_getMarkerAnnouncementText'](_0x4115f7,'LEAVE'));break;}}for(const _0x408d5d of _0x34aa37){const {group:_0x34e849,type:_0x48c453}=_0x475a96(_0x408d5d['name']);if('suggestion'===_0x34e849){_0x531c6d['announce'](this['_getMarkerAnnouncementText'](_0x48c453,'ENTER',_0x3d8a09(_0x19606d)));break;}}});}['_processAttributeChanges'](_0x223d9c){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4bf88f=this['editor'],_0x11e151=_0x4bf88f['model']['document']['differ']['getChanges']();if(0x0==_0x11e151['length'])return!0x1;const _0x127885=[],_0x5fb145=_0x11e151['filter'](_0x56afc9=>'attribute'==_0x56afc9['type']),_0x5bf5e4=_0x11e151['filter'](_0x6e9a3a=>'insert'==_0x6e9a3a['type']&&'$text'!=_0x6e9a3a['name']),_0x2b9a59=_0x11e151['filter'](_0x1718b4=>'remove'==_0x1718b4['type']&&'$text'!=_0x1718b4['name']);for(const _0x1d2bae of _0x5fb145)_0x127885['push']({'key':_0x1d2bae['attributeKey'],'newValue':_0x1d2bae['attributeNewValue'],'oldValue':_0x1d2bae['attributeOldValue'],'range':sn(_0x1d2bae['range'],_0x4bf88f['model'])});for(const _0x302e90 of _0x5bf5e4){const _0x2208d5=_0x2b9a59['find'](_0x261e6d=>_0x261e6d['position']['isEqual'](_0x302e90['position']));_0x2208d5&&_0x127885['push']({'key':Ke,'newValue':_0x302e90['name'],'oldValue':_0x2208d5['name'],'range':_0x4bf88f['model']['createRangeOn'](_0x302e90['position']['nodeAfter'])});}return 0x0!=_0x127885['length']&&this['_reduceExistingSuggestions'](_0x223d9c,_0x127885);}['_processAttributeSuggestions'](_0x35b568){let _0x549e9e=!0x1;const _0x2db53f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x29ea29=>_0x29ea29['data']['newRange']&&_0x29ea29['name']['startsWith']('suggestion:attribute:'));for(const _0x58ac28 of _0x2db53f){const {subType:_0xc91faa,id:_0x2b8dc4}=_0x475a96(_0x58ac28['name']),_0x1f8436=_0xc91faa['split']('|')[0x0];for(const _0x4730d9 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4730d9['id']!=_0x2b8dc4&&'attribute'==_0x4730d9['type']&&_0x4730d9['data']&&_0x4730d9['data']['key']==_0x1f8436&&_0x4730d9['getFirstRange']()['isIntersecting'](_0x58ac28['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4730d9,_0x58ac28['data']['newRange'],_0x35b568),_0x549e9e=!0x0);}return _0x549e9e;}['recordAttributeChanges'](_0x29d751){this['_recordAttributeSuggestions']=!0x0,_0x29d751();}['_reduceExistingSuggestions'](_0x398038,_0x5b952e){if(0x0==_0x5b952e['length'])return!0x1;let _0x56e336=!0x1;for(const _0x1119ee of _0x5b952e){const _0x32e61f=this['_findSuggestions'](_0x1119ee['range'],'attribute')['filter'](_0x44bd0d=>!_0x44bd0d['meta']['isNextTo'])['map'](_0x56a278=>_0x56a278['suggestion']),_0x50d156=_0x21f52c({'newValue':_0x1119ee['newValue']});_0x32e61f['filter'](_0x41044f=>{const [_0x18f965,_0x1027f1]=_0x41044f['subType']['split']('|');return _0x18f965==_0x1119ee['key']&&_0x1027f1!=_0x50d156;})['forEach'](_0x4a09a7=>{this['_reduceSuggestionAttributeRange'](_0x4a09a7,_0x1119ee['range'],_0x398038),_0x56e336=!0x0;});}return _0x56e336;}['_reduceSuggestionAttributeRange'](_0x3df275,_0x5ed0a8,_0x300180){const _0x56c7a2=_0x3df275['getFirstRange']()['getDifference'](_0x5ed0a8);0x0!==_0x56c7a2['length']?0x1!==_0x56c7a2['length']?this['_breakSuggestionMarker'](_0x3df275,_0x5ed0a8['start'],_0x5ed0a8['end']):this['_setSuggestionRange'](_0x3df275,_0x56c7a2[0x0]):_0x300180['removeMarker'](_0x3df275['getFirstMarker']());}}class Ye{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4395ca){this['_editor']=_0x4395ca,this['_model']=_0x4395ca['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x58a6fa,_0x41cfb4,_0x33d5b3,_0x8b923f,_0x4145a4,_0x32c6e0,_0x134d8d){return new bt(this['_model'],{'type':_0x58a6fa,'subType':_0x41cfb4,'id':_0x33d5b3,'originalSuggestionId':_0x134d8d,'author':_0x8b923f,'creator':_0x8b923f,'attributes':_0x4145a4,'onAttributesChange':_0x32c6e0,'onAccept':(..._0x1ec7d9)=>this['getSuggestionCallback'](_0x58a6fa,_0x41cfb4,'accept')(..._0x1ec7d9),'onDiscard':(..._0x56114c)=>this['getSuggestionCallback'](_0x58a6fa,_0x41cfb4,'discard')(..._0x56114c)});}['registerCustomCallback'](_0x220387,_0x460479,_0x872dd2,_0x551b15){const _0x17882d=_0x220387+':'+_0x460479+':'+_0x872dd2;this['_customCallbacks']['set'](_0x17882d,_0x551b15);}['getSuggestionCallback'](_0x241a94,_0x32dff6,_0x53b84){const _0x1a0acd=_0x241a94+':'+_0x32dff6+':'+_0x53b84;return this['_customCallbacks']['get'](_0x1a0acd)||this['_defaultCallbacks']['get'](_0x241a94+':'+_0x53b84);}['_registerDefaultCallbacks'](){const _0x43446f=()=>!0x1,_0xfb17c6=_0x5cd26b=>{_0x5cd26b['sort']((_0x4d3f95,_0x399b01)=>_0x4d3f95['start']['isBefore'](_0x399b01['start'])?0x1:-0x1),this['_model']['change'](_0x76fcf2=>{for(const _0x20bcdd of _0x5cd26b){let _0x4a83e2;_0x4a83e2=_0x20bcdd['end']['isAtEnd']&&_0x20bcdd['end']['parent']==_0x20bcdd['start']['nodeAfter']?_0x76fcf2['createSelection'](_0x20bcdd['start']['nodeAfter'],'on'):_0x76fcf2['createSelection'](_0x20bcdd),this['_model']['deleteContent'](_0x4a83e2,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x4f4054=(_0xf78677,_0xd9f00f)=>{_0xd9f00f&&this['_model']['change'](_0x339f5b=>{const {commandName:_0xce3798,commandParams:_0x34cea8=[]}=_0xd9f00f,_0x192ad1=_0xf78677['map'](_0x137e45=>(Qe(_0x137e45)&&(_0x137e45=this['_model']['createRange'](_0x137e45['end'])),_0x137e45))['filter'](_0x5dc4ab=>'$graveyard'!==_0x5dc4ab['root']['rootName']);if(_0x192ad1['length']<0x1)return;const _0x445563=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1b240e=>_0x4f8349['fromRange'](_0x1b240e));_0x339f5b['setSelection'](_0x192ad1);for(const _0x489a66 of this['_editor']['commands']['commands']())_0x489a66['refresh']();_0x34cea8['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xce3798,..._0x34cea8);const _0x492271=_0x445563['filter'](_0x7553a0=>'$graveyard'!=_0x7553a0['root']['rootName']);_0x492271['length']>0x0&&_0x339f5b['setSelection'](_0x492271);for(const _0x5e7764 of _0x445563)_0x5e7764['detach']();});},_0x2072f9=(_0x263c55,_0x5c5b46)=>0x1==_0x263c55['length']&&0x1==_0x5c5b46['length']&&_0x263c55[0x0]['end']['isEqual'](_0x5c5b46[0x0]['start']),_0x57aa8a=(_0x56fd89,_0x3bd952,_0x3c405d,_0x494ec0)=>on(_0x56fd89,_0x3bd952,_0x3c405d,_0x494ec0)?[_0x56fd89,_0x3bd952]:on(_0x3bd952,_0x56fd89,_0x494ec0,_0x3c405d)?[_0x3bd952,_0x56fd89]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x43446f),this['_defaultCallbacks']['set']('insertion:discard',_0xfb17c6),this['_defaultCallbacks']['set']('insertion:join',_0x2072f9),this['_defaultCallbacks']['set']('insertion:chain',_0x57aa8a),this['_defaultCallbacks']['set']('deletion:accept',_0xfb17c6),this['_defaultCallbacks']['set']('deletion:discard',_0x43446f),this['_defaultCallbacks']['set']('deletion:join',_0x2072f9),this['_defaultCallbacks']['set']('deletion:chain',_0x57aa8a),this['_defaultCallbacks']['set']('formatInline:accept',_0x4f4054),this['_defaultCallbacks']['set']('formatInline:discard',_0x43446f),this['_defaultCallbacks']['set']('formatInline:join',_0x2072f9),this['_defaultCallbacks']['set']('formatInline:chain',_0x43446f),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4f4054),this['_defaultCallbacks']['set']('formatBlock:discard',_0x43446f),this['_defaultCallbacks']['set']('formatBlock:join',_0x2072f9),this['_defaultCallbacks']['set']('formatBlock:chain',_0x43446f),this['_defaultCallbacks']['set']('attribute:accept',_0x43446f),this['_defaultCallbacks']['set']('attribute:discard',(_0x4fbfc0,_0x38ff62)=>{if(!_0x38ff62)return;const _0x1f8374=this['_editor']['plugins']['get'](_0x16b695);this['_model']['change'](_0x3a84b8=>{if(_0x38ff62['key']==Ke)for(const _0x3d4ecd of _0x4fbfc0){const _0x1a18b0=_0x3d4ecd['start']['nodeAfter'],_0x3cf00a=_0x38ff62['oldValue'];_0x3a84b8['rename'](_0x1a18b0,_0x3cf00a);}else{if(_0x1f8374['isBlockAttribute'](_0x38ff62['key'])){for(const _0x27a9d3 of _0x4fbfc0)void 0x0!==_0x38ff62['oldValue']?_0x3a84b8['setAttribute'](_0x38ff62['key'],_0x38ff62['oldValue'],_0x27a9d3['start']['nodeAfter']):_0x3a84b8['removeAttribute'](_0x38ff62['key'],_0x27a9d3['start']['nodeAfter']);}else{for(const _0x19ffc8 of _0x4fbfc0)_0x38ff62['oldValue']?_0x3a84b8['setAttribute'](_0x38ff62['key'],_0x38ff62['oldValue'],_0x19ffc8):_0x3a84b8['removeAttribute'](_0x38ff62['key'],_0x19ffc8);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2072f9);}}function qe(_0x12d680,_0x140f91,_0x3b6bb8){for(const _0x1e9a8e of _0x140f91['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1e9a8e['root']==_0x1e9a8e)return!0x1;if(!_0x3b6bb8['containsItem'](_0x1e9a8e))return!0x1;if(_0x12d680['isObject'](_0x1e9a8e)||_0x12d680['isLimit'](_0x1e9a8e))return!0x0;}return!0x1;}function Qe(_0x24c114){return _0x24c114['end']['parent']==_0x24c114['start']['nodeAfter']&&_0x24c114['end']['isAtStart'];}function Ze(_0x124535,_0x1ae435,_0x419f5d,_0x21efa7){const _0x35d4e2=_0x9465b4=>!_0x9465b4['item']['is']('$textProxy')&&!_0x21efa7['isObject'](_0x9465b4['item']),_0x12b306=_0x124535['start']['getLastMatchingPosition'](_0x35d4e2),_0x5c29b9=_0x124535['end']['getLastMatchingPosition'](_0x35d4e2,{'direction':'backward'});return(!_0x124535['start']['isEqual'](_0x12b306)||!_0x124535['end']['isEqual'](_0x5c29b9))&&(_0x12b306['isBefore'](_0x5c29b9)?_0x419f5d['updateMarker'](_0x1ae435,{'range':_0x419f5d['createRange'](_0x12b306,_0x5c29b9)}):_0x419f5d['removeMarker'](_0x1ae435),!0x0);}function Je(_0x6dd421){return _0x21f52c(_0x6dd421);}function tn(_0x25a832){const _0x1c35bc=_0x25a832['start']['nodeAfter'];return _0x1c35bc&&_0x1c35bc['is']('element');}function en(_0xcf2672){return Qe(_0xcf2672)||function(_0x5a9f2d){return _0x5a9f2d['start']['parent']==_0x5a9f2d['end']['nodeBefore']&&_0x5a9f2d['start']['isAtEnd'];}(_0xcf2672);}function nn(_0x47e5f3,_0x2eda97){try{const _0x3ffe6c=_0x47e5f3['getRange']();for(const _0x396f23 of _0x2eda97)if(_0x47e5f3!==_0x396f23&&_0x3ffe6c&&_0x3ffe6c['isIntersecting'](_0x396f23['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function sn(_0x5cad81,_0x444af0){return null==_0x5cad81['end']['nodeBefore']&&_0x5cad81['end']['parent']==_0x5cad81['start']['nodeAfter']?rn(_0x5cad81['start']['nodeAfter'],_0x444af0):_0x5cad81;}function rn(_0x442319,_0x276fd4){const _0x224b9d=_0x276fd4['schema']['isObject'](_0x442319)||_0x276fd4['schema']['isSelectable'](_0x442319);return _0x276fd4['createRange'](_0x276fd4['createPositionAt'](_0x442319,'before'),_0x224b9d?_0x276fd4['createPositionAfter'](_0x442319):_0x276fd4['createPositionAt'](_0x442319,'end'));}function on(_0x28c250,_0x89d226,_0x751783,_0x511bc1){return!!an(_0x28c250,_0x89d226)&&_0x751783['end']['isEqual'](_0x511bc1['start']);}function an(_0xfff6c4,_0x15006e){if(!_0xfff6c4['_isDataLoaded']||!_0x15006e['_isDataLoaded'])return!0x1;const _0x38d5df=new Set(Object['keys'](_0xfff6c4['attributes'])),_0x99ce40=new Set(Object['keys'](_0x15006e['attributes']));if(_0x38d5df['delete']('groupId'),_0x99ce40['delete']('groupId'),0x0==_0x38d5df['size']&&0x0==_0x99ce40['size'])return!0x0;if(_0x38d5df['size']!=_0x99ce40['size'])return!0x1;const _0x4def5b={..._0xfff6c4['attributes']},_0x26c89c={..._0x15006e['attributes']};return delete _0x4def5b['groupId'],delete _0x26c89c['groupId'],JSON['stringify'](_0x4def5b)==JSON['stringify'](_0x26c89c);}function cn(_0x4d2d38,_0x499353){const _0x4eaed3=ln(_0x4d2d38['attributes']),_0x231733=ln(_0x499353);if(!_0x4d2d38['_isDataLoaded'])return!0x1;for(const _0x369ffc of Object['keys'](_0x231733))if(!st(_0x4eaed3[_0x369ffc],_0x231733[_0x369ffc]))return!0x1;return!0x0;}function ln(_0x2b9b24){const _0x145e36=Object['assign']({},_0x2b9b24);return delete _0x145e36['skipNestingCheck'],delete _0x145e36['tablePasteChainId'],_0x145e36;}function un(_0x3fdc1b){return _0x3fdc1b['split']('|')[0x0];}class hn extends/* #__PURE__ -- @preserve */
26
+ _0x4582eb(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x14e219,_0xe5c036,_0x40768f,_0x20eebb){super(),this['model']=_0xe5c036,this['view']=_0x40768f,this['commentThreadController']=_0x20eebb,this['_editor']=_0x14e219,this['_acceptCommand']=_0x14e219['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x14e219['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x478ee2,_0x16e203)=>_0x478ee2||_0x16e203),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4a999d=>_0x4a999d&&this['_editor']['model']['canEditAt'](_0xe5c036['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x31aaee=>_0x31aaee&&this['_editor']['model']['canEditAt'](_0xe5c036['getRanges']())),this['_pendingAction']=null,_0x40768f['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x40768f,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x40768f,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x40768f,'change:isDirty',()=>{_0x40768f['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 _0x35ff0a=At(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x35ff0a);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class dn extends _0x4aba25{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x53a062,_0x2e6619,_0x46faa9,_0x2bf049){super(_0x53a062),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x54fb01(_0x53a062,At(_0x53a062,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2e6619['authoredAt']),this['bind']('authoredAt')['to'](_0x2e6619),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',_0x2e6619,'authoredAt',this,'descriptionParts',(_0x506e37,_0x36c52c,_0x5f13a1)=>{const _0x5ce19d=_0x5f13a1['map'](_0x60d10c=>gt(_0x60d10c['content']))['join']('.\x20')+'.';return At(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x506e37-0x1,_0x2e6619['author']['name'],_0x36c52c?_0x2bf049['formatDateTime'](_0x36c52c):'',new DOMParser()['parseFromString'](_0x5ce19d,'text/html')['body']['textContent']]);}),this['focusables']=new _0x29597e(),this['focusTracker']=new _0x185cee(),this['keystrokes']=new _0x160fe5(),this['focusCycler']=new _0x418e2b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2279a5=>_0x2279a5['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2e6619,this['_localUser']=_0x46faa9,this['_config']=_0x2bf049,_0x2bf049['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2f0355(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5b354b}=this['_config'];this['commentsListView']=new _0x5b354b(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',_0x5f58e3=>_0x5f58e3+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x343dd0,_0x3724a8)=>_0x343dd0||!!_0x3724a8);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x14e150}=this['_config'],_0x4538ac=new _0x14e150(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x492cb2=_0x4538ac['commentInputView'];return _0x4538ac['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x492cb2,'value',(_0xcc09c9,_0x18e1af,_0x22c540)=>!!_0x22c540||_0xcc09c9&&!_0x18e1af),_0x492cb2['on']('submit',(_0x2f42f9,_0x36e29f)=>{this['fire']('addComment',_0x36e29f),_0x492cb2['editor']['setData']('');}),_0x492cb2['on']('cancel',()=>this['focus']()),_0x492cb2['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4538ac;}}class fn extends dn{['suggestionView'];['_descriptionElement'];constructor(_0x53b65,_0x5894c4,_0x568a57,_0x104048){super(_0x53b65,_0x5894c4,_0x568a57,_0x104048),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3f4d12=>_0x3f4d12&&_0x3f4d12[0x0]?_0x3f4d12[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xaf4b2f,_0x3b71e7)=>{let _0x59f0e2='';for(const _0x534d27 of _0xaf4b2f)_0x59f0e2+='<p>'+gt(_0x534d27['content'],_0x534d27['color'])+'</p>';return _0x3b71e7?_0x59f0e2:_0x433d71(_0x59f0e2,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x104048['SuggestionView'](_0x53b65,_0x5894c4,{'formatDateTime':_0x104048['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 _0xbff588=this['bindTemplate'],_0x3cfdfe=[this['suggestionView']];return this['commentsListView']&&_0x3cfdfe['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3cfdfe['push'](this['commentThreadInputView']),_0x3cfdfe['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xbff588['if']('isActive','ck-suggestion-wrapper--active'),_0xbff588['to']('type',_0x4d1062=>'ck-suggestion-'+_0x4d1062),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':_0xbff588['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3cfdfe};}['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 _0x4aba25{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2279f9,_0x548a68,_0x3315d4){super(_0x2279f9),this['_model']=_0x548a68,this['_config']=_0x3315d4,this['set']('description',''),this['bind']('authoredAt')['to'](_0x548a68),this['acceptButton']=this['_createButton'](At(_0x2279f9,'Accept\x20suggestion'),_0x1f783a,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](At(_0x2279f9,'Discard\x20suggestion'),_0x5388f,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x35731a(_0x2279f9,_0x548a68['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x29597e([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x185cee(),this['keystrokes']=new _0x160fe5(),this['focusCycler']=new _0x418e2b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x324941=>_0x324941['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4340e0=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4340e0['innerHTML']=this['description'],this['on']('change:description',(_0x266d52,_0x2bd96c,_0x218248)=>{_0x4340e0['innerHTML']=_0x218248;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x19c7b6=this['bindTemplate'],_0x3ed0ef=[{'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':_0x19c7b6['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x19c7b6['to']('authoredAt',_0x508f18=>this['_config']['formatDateTime'](_0x508f18))}]}]},{'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']&&_0x3ed0ef['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':_0x3ed0ef}]};}['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'](_0x4eb1e8,_0x28a7bc,_0x58a246,_0x2ef437,_0x2691d6){const _0x4a11bb=new _0x5a04b9(this['locale']);return _0x4a11bb['set']({'label':_0x4eb1e8,'icon':_0x28a7bc,'tooltip':!0x0,'tooltipPosition':_0x2691d6}),_0x4a11bb['extendTemplate']({'attributes':{'class':_0x58a246}}),_0x4a11bb['on']('execute',()=>{this['fire'](_0x2ef437,this['_model']['id']);}),_0x4a11bb;}['_setupKeyboardNavigation'](){const _0x56e71f=this['element'];this['keystrokes']['listenTo'](_0x56e71f);for(const _0x114e8a of this['focusables'])this['focusTracker']['add'](_0x114e8a['element']),this['keystrokes']['listenTo'](_0x114e8a['element']);this['keystrokes']['set']('enter',(_0x15f359,_0x1543d2)=>{_0x56e71f===_0x15f359['target']&&(this['focusCycler']['focusFirst'](),_0x1543d2());}),this['keystrokes']['set']('esc',(_0x1058d0,_0x2c7793)=>{_0x56e71f!==_0x1058d0['target']&&(this['focus'](),_0x2c7793());});}}class mn extends _0x4a3826{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[Xe,_0x218a55,_0x4551a9,_0x2cf822,_0x2a0fbe];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ec932){super(_0x4ec932),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xd6a75d=this['editor']['config'];_0xd6a75d['define']('trackChanges.SuggestionThreadView',fn),_0xd6a75d['define']('trackChanges.SuggestionView',gn),_0xd6a75d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xd6a75d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x23c7a1,_0x10fd03){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x56320d,_0x44451f]of this['_handleControllerBuffer']){const _0x3e67fd=this['_suggestionToController']['has'](_0x56320d);_0x3e67fd||_0x44451f?_0x3e67fd&&_0x44451f&&this['_destroyController'](_0x56320d):this['_initializeController'](_0x56320d);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x2a0fbe)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x23c7a1,_0x10fd03);}['init'](){const _0x454f5a=this['editor'],_0x4bcbe7=_0x454f5a['plugins']['get'](Xe),_0x38e633=_0x454f5a['plugins']['get'](_0x2cf822),_0x299864=_0x454f5a['plugins']['get'](_0x2a0fbe),_0x4c92d8=_0x454f5a['plugins']['get'](_0x4551a9);this['_addUIComponentsToFactory'](),_0x299864['addSourceCollector'](()=>{const _0x5207bd=[];for(const [_0x29e628,_0x14f711]of Array['from'](this['_suggestionToController'])){const _0x4b7b90=_0x29e628['getAllAdjacentSuggestions'](),_0x416727=[];for(const _0x9d27b7 of _0x4b7b90){if(!_0x9d27b7['isInContent'])continue;if(_0x9d27b7['isMultiRange']){_0x416727['push'](..._0x9d27b7['getRanges']());continue;}const _0x1f86e1=_0x9d27b7['getFirstRange']();if(_0x416727['length']>0x0){const _0x24f997=_0x416727[0x0]['getJoined'](_0x1f86e1);if(_0x24f997){_0x416727[0x0]=_0x24f997;continue;}}_0x416727['push'](_0x1f86e1);}_0x5207bd['push']([_0x14f711['view'],_0x416727]);}return _0x5207bd;}),this['listenTo'](_0x4bcbe7,'suggestionLoaded',(_0x52e820,_0x14263f)=>{this['listenTo'](_0x14263f,'change:previous',(_0x1604ee,_0x55d29c,_0x2e763c,_0x4c227f)=>{_0x14263f['isInContent']&&(null==_0x2e763c?(this['_updateController'](_0x4c227f['head']),this['_handleSuggestionControllerDelayed'](_0x14263f,!0x1)):(this['_updateController'](_0x2e763c['head']),null==_0x4c227f&&this['_handleSuggestionControllerDelayed'](_0x14263f,!0x0)));}),null!==_0x14263f['previous']?this['_updateController'](_0x14263f['head']):this['_handleSuggestionControllerDelayed'](_0x14263f,!0x1);}),this['listenTo'](_0x4bcbe7,'suggestionUnloaded',(_0x43bd47,_0x2c1f6f,_0x43e256)=>{this['stopListening'](_0x2c1f6f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2c1f6f),this['_suggestionToController']['has'](_0x2c1f6f)&&this['_destroyController'](_0x2c1f6f),_0x43e256&&this['_updateController'](_0x43e256['head']);}),this['listenTo'](_0x4bcbe7,'suggestionChanged',(_0x1dade0,_0x46d6d8)=>{this['_updateController'](_0x46d6d8);}),this['listenTo'](_0x38e633,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4c92d8,'addComment',(_0x374c77,{threadId:_0x176206,isFromAdapter:_0x4123e7})=>{if(_0x4123e7||!_0x4bcbe7['hasSuggestion'](_0x176206))return;const _0x58b5f9=_0x4bcbe7['getSuggestion'](_0x176206);this['_suggestionToController']['get'](_0x58b5f9)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4001db=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1b6907;for(const _0x356639 in _0x4001db){const _0x48aacd=_0x356639,_0x4d1818=_0x4001db[_0x48aacd];if('trackChangesLicenseKeyValid'==_0x4d1818||'trackChangesLicenseKeyInvalid'==_0x4d1818||'trackChangesLicenseKeyExpired'==_0x4d1818||'trackChangesLicenseKeyDomainLimit'==_0x4d1818||'trackChangesLicenseKeyNotAllowed'==_0x4d1818||'trackChangesLicenseKeyEvaluationLimit'==_0x4d1818||'trackChangesLicenseKeyUsageLimit'==_0x4d1818){delete _0x4001db[_0x48aacd],_0x1b6907=_0x4d1818,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1b6907&&_0x4001db['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1b6907&&_0x4001db['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1b6907&&_0x4001db['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1b6907&&_0x4001db['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1b6907&&_0x4001db['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1b6907&&_0x4001db['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x5274dc){const _0x5e1983=this['_suggestionToController']['get'](_0x5274dc);if(!_0x5e1983)return null;return this['editor']['plugins']['get'](_0x2cf822)['getByInnerView'](_0x5e1983['view'])||null;}['getSuggestionForAnnotation'](_0x1f8103){const _0x432f2d=this['_viewToController']['get'](_0x1f8103['innerView']);return _0x432f2d?_0x432f2d['model']:null;}['_refreshActiveMarkers'](){const _0x11d140=this['editor']['plugins']['get'](_0x2cf822),_0x36bc42=this['editor']['plugins']['get'](Xe),_0x495b21=Array['from'](_0x11d140['activeAnnotations'],_0x18e248=>_0x18e248['innerView'])['filter'](_0x313baa=>this['_viewToController']['has'](_0x313baa)),_0x440c59=[];for(const _0x1a72d4 of _0x495b21){const _0x127d90=this['_viewToController']['get'](_0x1a72d4)['model']['getAllAdjacentSuggestions']();_0x440c59['push'](..._0x127d90['reduce']((_0xa1da10,_0x37c174)=>[..._0xa1da10,..._0x37c174['getMarkerNames']()],[]));}_0x36bc42['activeMarkers']=_0x440c59;}['_addUIComponentsToFactory'](){const _0x2cc691=this['editor'],_0x346d4e=_0x2cc691['locale'],_0x49573a=At(_0x346d4e,'Track\x20changes'),_0x5a7bd4=new _0x361311([{'type':'switchbutton','model':new _0x5c6bce({'withText':!0x0,'isToggleable':!0x0,'label':_0x49573a,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5c6bce({'withText':!0x0,'label':At(_0x346d4e,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5c6bce({'withText':!0x0,'label':At(_0x346d4e,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5c6bce({'withText':!0x0,'label':At(_0x346d4e,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5c6bce({'withText':!0x0,'label':At(_0x346d4e,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2cc691['plugins']['has']('TrackChangesPreview')&&_0x5a7bd4['addMany']([{'type':'separator'},{'type':'button','model':new _0x5c6bce({'withText':!0x0,'label':At(_0x346d4e,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x19566f of _0x5a7bd4)if(En(_0x19566f)){const _0x27c656=_0x2cc691['commands']['get'](_0x19566f['model']['commandName']);_0x19566f['model']['bind']('isOn','isEnabled')['to'](_0x27c656,'value','isEnabled');}_0x2cc691['ui']['componentFactory']['add']('trackChanges',_0x2b8cee=>this['_createToolbarButton'](_0x2b8cee,_0x5a7bd4,_0x49573a)),_0x2cc691['ui']['componentFactory']['add']('menuBar:trackChanges',_0x9cc63c=>this['_createMenuBarMenu'](_0x9cc63c,_0x5a7bd4,_0x49573a));}['_createToolbarButton'](_0x2e320c,_0x34d29e,_0x2134a3){const _0x47518b=_0x34283a(_0x2e320c,_0x4dd119),_0x17d389=this['editor']['commands']['get']('trackChanges');_0x47518b['buttonView']['set']({'tooltip':_0x2134a3,'label':_0x2134a3,'icon':_0x304c98}),_0x47518b['buttonView']['bind']('isOn')['to'](_0x17d389,'value'),_0x47518b['buttonView']['on']('execute',()=>{_0x17d389['execute'](),this['editor']['editing']['view']['focus']();}),_0x258fd4(_0x47518b,_0x34d29e,{'role':'menu'});const _0x120a66=[];for(const _0x41542a of _0x34d29e)En(_0x41542a)&&_0x120a66['push'](this['editor']['commands']['get'](_0x41542a['model']['commandName']));const _0x24fc90=_0x47518b['buttonView'];return _0x24fc90['actionView']['unbind']('isEnabled'),_0x24fc90['arrowView']['unbind']('isEnabled'),_0x24fc90['actionView']['bind']('isEnabled')['to'](_0x17d389,'isEnabled'),_0x24fc90['arrowView']['bind']('isEnabled')['toMany'](_0x120a66,'isEnabled',(..._0x42278f)=>_0x42278f['some'](_0x260312=>_0x260312)),_0x47518b['on']('execute',_0x4cd418=>{this['editor']['execute'](_0x4cd418['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x47518b;}['_createMenuBarMenu'](_0x5197d5,_0x41a005,_0x473573){const _0x5277fa=new _0xf70dcc(_0x5197d5),_0x392b1=this['editor']['commands']['get']('trackChanges');_0x5277fa['buttonView']['set']({'label':_0x473573,'icon':_0x304c98});const _0x1d8899=new _0x534bac(_0x5197d5);for(const _0x1a6d74 of _0x41a005){if('separator'==_0x1a6d74['type']){_0x1d8899['items']['add'](new _0x5ee576(_0x5197d5));continue;}const _0x11078e=new _0x4c4846(_0x5197d5,_0x5277fa),_0x42338d=new _0x32f6de(_0x5197d5),_0x217709=_0x1a6d74['model'];_0x42338d['bind'](...Object['keys'](_0x217709))['to'](_0x217709),_0x42338d['delegate']('execute')['to'](_0x5277fa),_0x42338d['on']('execute',()=>{this['editor']['execute'](_0x217709['commandName']),this['editor']['editing']['view']['focus']();}),_0x11078e['children']['add'](_0x42338d),_0x1d8899['items']['add'](_0x11078e);}return _0x5277fa['bind']('isEnabled')['to'](_0x392b1,'isEnabled'),_0x5277fa['panelView']['children']['add'](_0x1d8899),_0x5277fa;}['_initializeController'](_0x34d8b9){const _0x124c53=this['editor'],_0x15aed5=_0x124c53['config'],_0x32cea1=_0x124c53['plugins']['get'](_0x2cf822),_0x32759e=_0x124c53['plugins']['get'](_0x4551a9),_0xc25aa4=_0x124c53['plugins']['get'](_0x2a0fbe),_0x407024=_0x124c53['plugins']['get'](_0x218a55)['me'],_0x57c05c=_0x15aed5['get']('trackChanges')['SuggestionThreadView'],_0x1391b8=_0x15aed5['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5f42ce,CommentThreadInputView:_0x58aa7f}=_0x124c53['plugins']['get']('CommentsUI');let _0x2b60b2,_0x443fb3,_0x20b308;this['_annotationViews']['has'](_0x34d8b9['id'])?(_0x443fb3=this['_annotationViews']['get'](_0x34d8b9['id']),_0x2b60b2=_0x443fb3['mainView']):(_0x2b60b2=new _0x57c05c(_0x124c53['locale'],_0x34d8b9,_0x407024,{'disableComments':this['_disableComments'],'editorConfig':{..._0x15aed5['get']('comments.editorConfig'),'licenseKey':_0x15aed5['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x15aed5['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x15aed5['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x15aed5['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3a327e(_0x15aed5['get']('locale'),_0x124c53['locale']),'CommentView':_0x15aed5['get']('comments')['CommentView'],'CommentsListView':_0x5f42ce,'CommentThreadInputView':_0x58aa7f,'SuggestionView':_0x1391b8}),_0x2b60b2['suggestionView']['acceptButton']['on']('execute',()=>{_0x124c53['editing']['view']['focus']();}),_0x2b60b2['suggestionView']['discardButton']['on']('execute',()=>{_0x124c53['editing']['view']['focus']();}),_0x443fb3=_0x32cea1['createAnnotationView'](this['editor']['locale'],_0x2b60b2),_0x443fb3['bind']('isDirty')['to'](_0x2b60b2,'isDirty'),_0x443fb3['bind']('length')['to'](_0x2b60b2),_0x443fb3['bind']('type')['to'](_0x2b60b2,'type',_0x433ff1=>'suggestion-'+_0x433ff1),_0x2b60b2['on']('escape',()=>{_0x20b308['fire']('escape');}),this['_annotationViews']['set'](_0x34d8b9['id'],_0x443fb3));const _0x2f66e4=_0x32759e['createCommentThreadController'](_0x34d8b9['commentThread'],_0x2b60b2),_0x527d19=new hn(_0x124c53,_0x34d8b9,_0x2b60b2,_0x2f66e4),_0x1155f8=_0x34d8b9['getAllAdjacentSuggestions']()['filter'](_0xbd7cf4=>_0xbd7cf4['isInContent']);_0x2b60b2['descriptionParts']=_0x124c53['plugins']['get'](Xe)['descriptionFactory']['getDescriptions'](_0x1155f8),this['_suggestionToController']['set'](_0x34d8b9,_0x527d19),this['_viewToController']['set'](_0x2b60b2,_0x527d19);const _0x38d288=()=>{const _0x381c6e=[],_0x45ab73=_0x34d8b9['getAllAdjacentSuggestions']()['filter'](_0x2f2361=>_0x2f2361['isInContent']);for(const _0xc0f42b of _0x45ab73)_0x381c6e['push'](..._0xc0f42b['getMarkers']());return _0x1cc54b(_0x124c53['editing'],_0x381c6e);};_0x20b308=_0x32cea1['createAnnotation']({'view':_0x443fb3,'target':_0x38d288,'type':()=>'suggestion-'+_0x527d19['view']['type'],'isVisible':!!_0x38d288()}),_0x32759e['_bindAnnotationToEditors'](_0x2b60b2,_0x20b308),_0x32cea1['add'](_0x20b308),_0xc25aa4['registerAnnotation'](_0x20b308);}['_destroyController'](_0x355e64){const _0x37ec4c=this['editor']['plugins']['get'](_0x4551a9),_0x1b653a=this['editor']['plugins']['get'](_0x2cf822),_0x451124=this['_suggestionToController']['get'](_0x355e64),_0x2958e0=_0x451124['view'],_0x570393=_0x1b653a['getByInnerView'](_0x2958e0);_0x37ec4c['_unbindEditors'](_0x2958e0),_0x570393&&_0x1b653a['remove'](_0x570393),this['_suggestionToController']['delete'](_0x355e64),this['_viewToController']['delete'](_0x2958e0),_0x451124['destroy']();}['_updateController'](_0x1fbba1){if(!_0x1fbba1['isInContent']||!this['_suggestionToController']['has'](_0x1fbba1))return;const _0x54b237=this['editor']['plugins']['get'](Xe),_0x64639b=this['_suggestionToController']['get'](_0x1fbba1),_0x469129=_0x1fbba1['getAllAdjacentSuggestions']();_0x64639b['view']['descriptionParts']=_0x54b237['descriptionFactory']['getDescriptions'](_0x469129);}['destroy'](){for(const _0x50e79 of this['_suggestionToController']['keys']())this['_destroyController'](_0x50e79);for(const _0x2ff842 of this['_annotationViews']['values']())_0x2ff842['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function En(_0x26c2c0){return'model'in _0x26c2c0;}class Tn extends _0x4a3826{static get['requires'](){return[Xe,mn,_0x54bb3d];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x7ac7){this['editor']['plugins']['get'](Xe)['adapter']=_0x7ac7;}get['adapter'](){return this['editor']['plugins']['get'](Xe)['adapter'];}['addSuggestion'](_0x4cdee5){return this['editor']['plugins']['get'](Xe)['addSuggestionData'](_0x4cdee5);}['getSuggestions']({skipNotAttached:_0x5511e2=!0x1,toJSON:_0x11948b=!0x1}={}){return this['editor']['plugins']['get'](Xe)['getSuggestions']({'skipNotAttached':_0x5511e2,'toJSON':_0x11948b});}['getSuggestion'](_0x5aeda9){return this['editor']['plugins']['get'](Xe)['getSuggestion'](_0x5aeda9);}}const _n=['Pagination'];class pn extends _0x4a3826{static get['requires'](){return[Xe];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x46e729=this['editor'];if(_0x46e729['config']['define']('trackChangesData.editorCreator',_0x25cfaf=>{const _0x2063c2=_0x46e729['model']['document']['getRootNames']()['reduce']((_0x5a8ff8,_0xdc972e)=>(_0x5a8ff8[_0xdc972e]='',_0x5a8ff8),{});return _0x46e729['constructor']['create'](_0x2063c2,_0x25cfaf);}),'function'!=typeof _0x46e729['config']['get']('trackChangesData')['editorCreator'])throw new _0x3800a1('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4e175d){return bn(this['editor'],!0x0,_0x4e175d);}['getDataWithDiscardedSuggestions'](_0x5accec){return bn(this['editor'],!0x1,_0x5accec);}}class Ln extends _0x4a3826{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x10c1cf){function _0xdb5a67(_0x4fc9c2){return _0x4fc9c2['map'](_0xab9e83=>String['fromCharCode'](_0xab9e83))['join']('');}super(_0x10c1cf),this['result']='end',_0x10c1cf[_0xdb5a67([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xdb5a67([0x76,0x69,0x65,0x77])][_0xdb5a67([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xdb5a67([0x61,0x75,0x74,0x6f]),_0x10c1cf[_0xdb5a67([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xdb5a67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xdb5a67([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xdb5a67([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xdb5a67([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(_0x466abb){return void 0x0!==_0x466abb['getRootsAttributes'];}async function bn(_0x58c197,_0x5e3373,_0x39a67c){const _0x4b3471=_0x243ea7(_0x58c197,_n);if(_0x4b3471['plugins']['push'](Xe,Ln),In(_0x58c197)){_0x4b3471['roots']=Object['create'](null);for(const _0x590e75 of _0x58c197['model']['document']['getRootNames']())_0x4b3471['roots'][_0x590e75]={'modelAttributes':_0x58c197['getRootAttributes'](_0x590e75)};}const _0x39771d=document['createDocumentFragment'](),_0x2779d0=_0x58c197['config']['get']('trackChangesData')['editorCreator'],_0x37b80e=await _0x2779d0(_0x4b3471,()=>function(_0x47357a){const _0x1f56e4=document['createElement']('div');return _0x47357a['appendChild'](_0x1f56e4),_0x1f56e4;}(_0x39771d));!function(_0x18c14b,_0x2d72b0){const _0x3e8408=_0x18c14b['model']['document']['getRootNames']()['reduce']((_0x259e9c,_0x580346)=>(_0x259e9c[_0x580346]=_0x18c14b['data']['get']({'rootName':_0x580346}),_0x259e9c),{}),_0x549e76=_0x18c14b['plugins']['get']('Users')['users']['map'](_0x123ab8=>({'id':_0x123ab8['id'],'name':_0x123ab8['name']})),_0x1426b5=_0x18c14b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3fe89e=_0x18c14b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x115c7a=_0x2d72b0['plugins']['get']('Users'),_0xbae503=_0x2d72b0['plugins']['get']('TrackChangesEditing'),_0x42e540=_0x2d72b0['plugins']['get']('CommentsRepository');for(const _0x45d256 of _0x42e540['getCommentThreads']())_0x45d256['remove']();for(const _0x3f2935 of _0x549e76)_0x115c7a['getUser'](_0x3f2935['id'])||_0x115c7a['addUser'](_0x3f2935);_0x115c7a['me']||_0x115c7a['useAnonymousUser']();for(const _0x5d5560 of _0x3fe89e)_0x42e540['addCommentThread'](_0x5d5560);for(const _0x41c447 of _0x1426b5)_0xbae503['addSuggestionData'](_0x41c447);_0x2d72b0['data']['set'](_0x3e8408);}(_0x58c197,_0x37b80e),_0x37b80e['execute'](_0x5e3373?'acceptAllSuggestions':'discardAllSuggestions');const _0x2bd48c=In(_0x37b80e)?_0x37b80e['getFullData'](_0x39a67c):_0x37b80e['data']['get'](_0x39a67c);return await _0x37b80e['destroy'](),_0x2bd48c;}class An extends _0x4aba25{['options'];constructor(_0xf4de9b,_0x490a7c){super(_0xf4de9b),this['options']=_0x490a7c,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'](_0x1835da,_0x3a231a){if(!this['element'])return;const _0x140057=[];for(const [_0x37aed1,_0xb725e2]of _0x1835da){const _0x1b5f06=document['createElement']('div');_0x1b5f06['setAttribute']('data-ck-root-name',_0x37aed1),_0x1b5f06['className']=_0xb725e2['classes']+'\x20ck-track-changes-preview__root-container',_0x1b5f06['innerHTML']=_0xb725e2['content'],_0x140057['push'](_0x1b5f06);}_0x3a231a(this['element'],_0x140057),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class kn extends _0x153246{constructor(_0x4a7ecf){super(_0x4a7ecf),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x22febc=this['editor'],_0x589826=_0x22febc['locale'],_0x348224=_0x22febc['plugins']['get']('Dialog');let _0x343752;const _0x45bae5=function(_0x4848df){const _0x4b4a92={};if('editables'in _0x4848df['ui']['view']){for(const [_0x3016f4,_0x18a597]of Object['entries'](_0x4848df['ui']['view']['editables']))_0x4b4a92[_0x3016f4]=_0x18a597['element'];}else _0x4b4a92[_0x4848df['model']['document']['getRootNames']()[0x0]]=_0x4848df['ui']['view']['editable']['element'];return _0x4b4a92;}(_0x22febc),_0x4ba6cb=function(_0x29ec3d){let _0x410bb8=0x0;for(const _0x4cf50c of Object['values'](_0x29ec3d))_0x410bb8=Math['max'](_0x410bb8,_0x4cf50c['getBoundingClientRect']()['width']);let _0x1e4d91=0x0;for(const _0x42b73c of Object['values'](_0x29ec3d))_0x1e4d91+=_0x42b73c['getBoundingClientRect']()['height'];const _0x1b05f3=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3961bc=Math['min'](_0x1e4d91,_0x1b05f3);return{'width':_0x410bb8,'height':_0x3961bc};}(_0x45bae5);_0x348224['show']({'id':'finalContentPreview','title':At(_0x589826,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new An(_0x589826,{'dialogRects':_0x4ba6cb}),'onHide':()=>{_0x343752['detachFromDom']();},'onShow':()=>{_0x22febc['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4f702f=>{const _0x34d13d=this['_standarizeRootsData'](_0x4f702f,_0x22febc,_0x45bae5);_0x348224['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x34d13d,_0x22febc['config']['get']('trackChanges.preview.renderFunction'));}),_0x343752=new _0x565982(_0x589826,[_0x348224['view']]),_0x343752['attachToDom'](),_0x343752['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x22febc['once']('destroy',()=>{_0x343752['detachFromDom']();});const _0x252b52=_0x348224['view']['headerView']['class'];_0x348224['view']['headerView']['class']=_0x252b52?_0x252b52+'\x20ck-reset_all':'ck-reset_all',_0x348224['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x348224['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x27a74a=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x266b06=_0x27a74a['previewMode'],_0x12708f={};if('$labels'===_0x266b06){for(const _0x16eb1c of _0x27a74a['getMergeFieldsIds']())_0x12708f[_0x16eb1c]=_0x27a74a['getLabel'](_0x16eb1c)||_0x16eb1c;}else{const _0xa5302='$defaultValues'===_0x266b06?_0x27a74a['getDefaultValues']():_0x27a74a['getDataSetValues'](_0x266b06,!0x0);for(const _0x3a541d of Object['entries'](_0xa5302)){const [_0x4f0783,_0x5f1842]=_0x3a541d;_0x12708f[_0x4f0783]=null!==_0x5f1842?_0x5f1842:_0x27a74a['getLabel'](_0x4f0783)||_0x4f0783;}}return{'mergeFieldsData':_0x12708f};}['_standarizeRootsData'](_0x3db10f,_0x24aaae,_0x1b5323){let _0x17ac2e;if('string'==typeof _0x3db10f){const _0x27ca84=_0x24aaae['model']['document']['getRootNames']()[0x0];_0x17ac2e={[_0x27ca84]:_0x3db10f};}else _0x17ac2e=_0x3db10f;const _0x110c63=this['_fixMediaEmbeds'](_0x17ac2e,_0x24aaae),_0x1ca137=function(_0x44b53f,_0x1441e9){for(const [_0x3739af,_0x45c604]of _0x44b53f)_0x45c604['classes']=_0x1441e9[_0x3739af]['classList']['value']['replace']('ck-focused','');return _0x44b53f;}(this['_sortRoots'](_0x24aaae)['reduce']((_0x22492c,_0x2807ac)=>(_0x22492c['push']([_0x2807ac,{'content':_0x110c63[_0x2807ac],'classes':''}]),_0x22492c),[]),_0x1b5323);return _0x1ca137;}['_fixMediaEmbeds'](_0x43199d,_0x1e7c73){if(!_0x1e7c73['plugins']['has']('MediaEmbedEditing'))return _0x43199d;const _0x39d672=_0x1e7c73['plugins']['get']('MediaEmbedEditing');for(const [_0x1a6d01,_0x4b03c4]of Object['entries'](_0x43199d)){const _0x2e019a=document['createElement']('div');_0x2e019a['innerHTML']=_0x4b03c4,(_0x2e019a['querySelectorAll']('figure.media')['forEach'](_0x466cf4=>{const _0xcff181=_0x466cf4['querySelector']('oembed');if(_0xcff181){const _0x3a210f=_0xcff181['getAttribute']('url');if(_0x3a210f){const _0x5923ab=_0x39d672['registry']['getMediaViewElement'](new et(_0x1e7c73['editing']['view']['document']),_0x3a210f,{'elementName':'','renderForEditingView':!0x0}),_0x3d1788=document['createElement']('div');_0x3d1788['classList']['add']('ck-media__wrapper'),_0x5923ab['render'](_0x3d1788,_0x1e7c73['editing']['view']['domConverter']),_0xcff181['replaceWith'](_0x3d1788);}}}),_0x43199d[_0x1a6d01]=_0x2e019a['innerHTML']);}return _0x43199d;}['_sortRoots'](_0x17c8ee){if(!function(_0xe4b343){return void 0x0!==_0xe4b343['getRootsAttributes'];}(_0x17c8ee))return _0x17c8ee['model']['document']['getRootNames']();const _0x50b545=[],_0x5a2f56=new Map();for(const _0x43cede of _0x17c8ee['model']['document']['getRootNames']()){const _0x2a47b9=_0x17c8ee['editing']['view']['getDomRoot'](_0x43cede)['getClientRects']()['item'](0x0);_0x50b545['push'](_0x43cede),_0x5a2f56['set'](_0x43cede,_0x2a47b9);}return _0x50b545['sort']((_0x1af550,_0x164964)=>{const _0x303cb8=_0x5a2f56['get'](_0x1af550),_0x6c292=_0x5a2f56['get'](_0x164964);return _0x303cb8['y']-_0x6c292['y']||_0x303cb8['x']-_0x6c292['x'];}),_0x50b545;}}class Cn extends _0x4a3826{static get['requires'](){return[pn,_0x2841a9];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x257153){super(_0x257153),_0x257153['commands']['add']('previewFinalContent',new kn(this['editor'])),_0x257153['config']['define']('trackChanges.preview.renderFunction',(_0x4f1c69,_0x57daca)=>{for(const _0x5e3693 of _0x57daca)_0x4f1c69['appendChild'](_0x5e3693);});}}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};