@ckeditor/ckeditor5-track-changes 48.2.0-alpha.4 → 48.2.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +4 -4
  2. package/package.json +25 -25
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x2a8e78,Plugin as _0x203e6b,PendingActions as _0x226c6a}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0x300715,Annotations as _0x18743c,EditorAnnotations as _0x183fc3,Comments as _0x142b0b}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0x2618c5,ObservableMixin as _0x1ca856,uid as _0x1e5a7d,priorities as _0xcf8801,insertToPriorityArray as _0x24355e,logWarning as _0x39db6c,getEnvKeystrokeText as _0x1d258e,FocusTracker as _0x5def1f,KeystrokeHandler as _0x7c07a3,Collection as _0xa0bdb5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x4931a8,IconCancel as _0x39c270,IconTrackChanges as _0xefeca6}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x513476,View as _0x7acdaf,ViewCollection as _0x47db65,FocusCycler as _0x5602a4,UIModel as _0x3d4a24,createDropdown as _0x56fb5d,SplitButtonView as _0x1fc7da,addListToDropdown as _0x8a0123,MenuBarMenuView as _0x10e4a3,MenuBarMenuListView as _0x481bf4,ListSeparatorView as _0x1e805e,MenuBarMenuListItemView as _0x18a5b5,MenuBarMenuListItemButtonView as _0x47e243,BodyCollection as _0x234ad1,Dialog as _0x6c10b8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x4f787f,SuggestionsConversion as _0x540837,Users as _0x3771e4,DocumentCompare as _0x319f4e,fixElementSuggestionRange as _0x494da1,hashObject as _0x1fc623,surroundingMarkersDetector as _0x1a4c74,FOCUS_ANNOTATION_KEYSTROKE as _0x4eb651,AriaDescriptionView as _0x5b849f,setupThreadKeyboardNavigation as _0xdc32b2,trimHtml as _0x4e34a1,UserView as _0x15cd9a,LateFocusButtonView as _0x1f4595,getDateTimeFormatter as _0x59dff4,getAllMarkersDomElementsSorted as _0x521940,sanitizeEditorConfig as _0x49f7c3}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x10ec21,ModelLiveRange as _0x4c6b54,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 TrackChangesCommand extends _0x2a8e78{['_enabledCommands'];constructor(_0x420d3c,_0x348497){super(_0x420d3c),this['_enabledCommands']=_0x348497,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 _0x159b5e of this['editor']['commands']['commands']())_0x159b5e['affectsData']&&!this['_enabledCommands']['has'](_0x159b5e)&&_0x159b5e['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3608b4 of this['editor']['commands']['commands']())_0x3608b4['affectsData']&&!this['_enabledCommands']['has'](_0x3608b4)&&_0x3608b4['clearForceDisabled']('TrackChangesCommand');}}class AcceptSuggestionCommand extends _0x2a8e78{['_suggestions'];constructor(_0x20de2d,_0x481ad3){super(_0x20de2d),this['_suggestions']=_0x481ad3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xd4cd9e){const _0x223362=this['_suggestions']['get'](_0xd4cd9e);if(!_0x223362)throw new _0x2618c5('track-changes-accept-suggestion-not-found',this);const _0x5a919a=_0x223362['getRanges']();this['editor']['model']['canEditAt'](_0x5a919a)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x223362);}}class DiscardSuggestionCommand extends _0x2a8e78{['_suggestions'];constructor(_0x315661,_0x920a3){super(_0x315661),this['_suggestions']=_0x920a3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3db907){const _0x279829=this['_suggestions']['get'](_0x3db907);if(!_0x279829)throw new _0x2618c5('track-changes-discard-suggestion-not-found',this);const _0x4c5df9=_0x279829['getRanges']();this['editor']['model']['canEditAt'](_0x4c5df9)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x279829);}}function ht(_0x588296,_0x1e22b3){let _0x4855d8='';return _0x4855d8+=_0x588296['split']('*')['map']((_0x1bcb51,_0x1a3748)=>_0x1a3748%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+dt(_0x1bcb51)+'</span>':dt(_0x1bcb51))['join'](''),_0x1e22b3&&(_0x4855d8+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1e22b3['value']+'\x22\x20title=\x22'+_0x1e22b3['title']+'\x22></span>'),_0x4855d8;}function dt(_0x2445f0){const _0x199c14=document['createElement']('span');return _0x199c14['innerText']=_0x2445f0,_0x199c14['innerHTML'];}function gt(_0x4dc144){return _0x4dc144['sort']((_0x25b1d1,_0x2b3fe3)=>'attribute'===_0x25b1d1['type']&&'attribute'!==_0x2b3fe3['type']?-0x1:'attribute'!==_0x25b1d1['type']&&'attribute'===_0x2b3fe3['type']?0x1:'deletion'==_0x25b1d1['type']&&'deletion'!=_0x2b3fe3['type']?-0x1:'deletion'!=_0x25b1d1['type']&&'deletion'==_0x2b3fe3['type']?0x1:0x0);}function ft(_0x3dea80,_0x51b5ac){let _0x3fd6d1,_0x2ca768=0x0;const _0x23a6d1=[],_0xcb93a7=_0x51b5ac['schema'];for(;_0x2ca768<_0x3dea80['length'];){const _0x400723=_0x3dea80[_0x2ca768],_0x5daf53=_0x3dea80[_0x2ca768+0x1];_0x3fd6d1||(_0x3fd6d1=_0x51b5ac['createPositionBefore'](_0x400723)),mt(_0x51b5ac,_0x400723,_0x5daf53)||(_0x23a6d1['push'](_0x51b5ac['createRange'](_0x3fd6d1,_0xcb93a7['isObject'](_0x400723)?_0x51b5ac['createPositionAfter'](_0x400723):_0x51b5ac['createPositionAt'](_0x400723,'end'))),_0x3fd6d1=null),_0x2ca768++;}return _0x23a6d1;}function mt(_0x283ec4,_0x2b1260,_0x525667){if(!_0x525667)return!0x1;const _0x113ba8=_0x283ec4['createPositionAfter'](_0x2b1260),_0x1ddfe4=_0x283ec4['createPositionBefore'](_0x525667);return _0x113ba8['isTouching'](_0x1ddfe4);}function Et(_0x9b73ca,_0x5b7dbb,_0x52801a){for(;_0x52801a['length'];){const _0x136a3a=_0x52801a['splice'](0x0,0x64);_0x9b73ca['change'](()=>{for(const _0x14a661 of _0x136a3a)_0x14a661['isInContent']&&_0x5b7dbb['execute'](_0x14a661['id']);});}}class ExecuteOnAllSuggestionsCommand extends _0x2a8e78{['_command'];['_suggestions'];constructor(_0x877118,_0x3b2878,_0x53657c){super(_0x877118),this['_command']=_0x3b2878,this['_suggestions']=_0x53657c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x267d1d=Array['from'](this['_suggestions']['values']())['some'](_0xc94ee9=>_0xc94ee9['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x267d1d;}['execute'](){const _0x460686=gt(Array['from'](this['_suggestions']['values']()));for(const _0x51df12 of _0x460686){const _0x3833e7=_0x51df12['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3833e7))return;}Et(this['editor']['model'],this['_command'],_0x460686);}}class ExecuteOnSelectedSuggestionsCommand extends _0x2a8e78{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x213bef,_0x32f54a,_0x137f0d){super(_0x213bef),this['_command']=_0x32f54a,this['_suggestions']=_0x137f0d,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5582a0=this['editor']['model']['document']['selection'],_0x52a9aa=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x352311,_0x1b1eb2){const _0x2ff8ac=Array['from'](_0x352311['getRanges']()),_0x4dfb0a=new Set();for(const _0x1ebd83 of _0x1b1eb2)if(_0x1ebd83['isInContent']){for(const _0x50b6e2 of _0x2ff8ac)for(const _0x123274 of _0x1ebd83['getRanges']())(_0x50b6e2['isIntersecting'](_0x123274)||_0x352311['isCollapsed']&&!_0x1ebd83['isMultiRange']&&_0x1ebd83['next']&&_0x123274['end']['isTouching'](_0x50b6e2['start']))&&_0x4dfb0a['add'](_0x1ebd83);}return _0x4dfb0a;}(_0x5582a0,_0x52a9aa),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3491cf=gt(Array['from'](this['_selectedSuggestions']));for(const _0x450f28 of _0x3491cf){const _0x424296=_0x450f28['getRanges']();if(!this['editor']['model']['canEditAt'](_0x424296))return;}Et(this['editor']['model'],this['_command'],_0x3491cf);}}class Suggestion extends/* #__PURE__ -- @preserve */
24
- _0x1ca856(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x28e10c,_0x139d6f){super(),this['id']=_0x139d6f['id'],this['type']=_0x139d6f['type'],this['subType']=_0x139d6f['subType']||null,this['author']=_0x139d6f['author'],this['creator']=_0x139d6f['creator']||_0x139d6f['author'],this['isExternal']=Boolean(_0x139d6f['attributes']&&_0x139d6f['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x139d6f['originalSuggestionId']||null,this['_model']=_0x28e10c,this['_onAccept']=_0x139d6f['onAccept'],this['_onDiscard']=_0x139d6f['onDiscard'],this['_onAttributesChange']=_0x139d6f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x139d6f['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 _0x41de64=this;for(;_0x41de64['previous'];)_0x41de64=_0x41de64['previous'];return _0x41de64;}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'](_0x27c09b){this['_markerNames']['add'](_0x27c09b);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x32a0dd=>this['_model']['markers']['get'](_0x32a0dd))['filter'](_0x4ecc2a=>_0x4ecc2a);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2fe05a=>{for(const _0x2ac0a8 of this['getMarkers']())_0x2fe05a['removeMarker'](_0x2ac0a8);}),this['_markerNames']['clear']();}['removeMarker'](_0x5d91d4){this['_model']['change'](_0x3f2766=>{_0x3f2766['removeMarker'](_0x5d91d4);}),this['_markerNames']['delete'](_0x5d91d4);}['addRange'](_0x282278){const _0x58f606='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x58f606),this['_model']['change'](_0x375949=>{_0x375949['addMarker'](_0x58f606,{'range':_0x282278,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5e9edf){for(const _0x4e14bc of this['getRanges']())if(_0x4e14bc['isIntersecting'](_0x5e9edf))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x245a3c=>_0x245a3c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x17c831,_0x305854)=>[..._0x17c831,..._0x305854['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x377a42=this['getRanges']();if(0x1!=_0x377a42['length'])return null;const _0x4ce950=_0x377a42[0x0],_0x53a4e0=_0x4ce950['start']['nodeAfter'],_0x5d683d=_0x4ce950['end']['nodeBefore'];return _0x53a4e0 instanceof _0x10ec21?_0x53a4e0!=_0x5d683d?null:_0x53a4e0: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 _0x55b339=[];let _0x52c775=this['head'];for(;_0x52c775;)_0x55b339['push'](_0x52c775),_0x52c775=_0x52c775['next'];return _0x55b339;}['setAttribute'](_0x53fc3c,_0x101846){const _0x4852e7=nt(this['attributes']);it(_0x4852e7,_0x53fc3c,_0x101846),st(_0x4852e7,this['attributes'])||(this['attributes']=_0x4852e7,this['_onAttributesChange'](_0x4852e7));}['removeAttribute'](_0x5b261d){const _0x30e93e=nt(this['attributes']);rt(_0x30e93e,_0x5b261d),st(_0x30e93e,this['attributes'])||(this['attributes']=_0x30e93e,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 _0x1e5a7d()['substr'](0x1,0x5);}}function Tt(_0xddc335,_0x1d41c2,_0x186c98){const _0xe41321=_0xddc335['t'],t=_0xddc335['t'];switch(_0x1d41c2){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',_0x186c98);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x186c98);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x186c98);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x186c98);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x186c98);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',_0x186c98);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x186c98);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',_0x186c98);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x186c98);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x186c98);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x186c98);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x186c98);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x186c98);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x186c98);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x186c98);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x186c98);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x186c98);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x186c98);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x186c98);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x186c98);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x186c98);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x186c98);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x186c98);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x186c98);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x186c98);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'},_0x186c98);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x186c98);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x186c98);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x186c98);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x186c98);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x186c98);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x186c98);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x186c98);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x186c98);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});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'},_0x186c98);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x186c98);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x186c98);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x186c98);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x186c98);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'},_0x186c98);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x186c98);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'},_0x186c98);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_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});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'},_0x186c98);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x186c98);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'},_0x186c98);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x186c98);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'},_0x186c98);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x186c98);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x186c98);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x186c98);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x186c98);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x186c98);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'},_0x186c98);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x186c98);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 _0xe41321({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x186c98);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0xe41321({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x186c98);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x186c98);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'},_0x186c98);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'},_0x186c98);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'},_0x186c98);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1d41c2;}}class SuggestionDescriptionFactory{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x21e598,_0x246dcf){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x21e598,this['_locale']=_0x246dcf;}['getDescriptions'](_0x4b4293){const _0xfe95f4=[],_0x435a6b=new Set(),_0x2412f8=new Set();for(let _0x3d1971=0x0;_0x3d1971<_0x4b4293['length'];_0x3d1971++){const _0x1854cb=_0x4b4293[_0x3d1971];if(!_0x1854cb['isInContent'])continue;const _0x14e44c=this['_handleCustomCallbackDescription'](_0x1854cb);if(_0x14e44c){if(null!=_0x1854cb['subType']){if(_0x435a6b['has'](_0x1854cb['subType']))continue;_0x435a6b['add'](_0x1854cb['subType']);}_0xfe95f4['push'](_0x14e44c);}else{if('attribute'==_0x1854cb['type']){const _0x185448=_0x1854cb['data']['key'];if(_0x2412f8['has'](_0x185448))continue;_0x2412f8['add'](_0x1854cb['data']['key']),_0x185448==Bt?this['_handleRenameSuggestionDescription'](_0xfe95f4,_0x1854cb):this['_handleAttributeSuggestionDescription'](_0xfe95f4,_0x1854cb);continue;}'insertion'!=_0x1854cb['type']&&'deletion'!=_0x1854cb['type']||this['_handleInsertRemoveSuggestionDescription'](_0xfe95f4,_0x1854cb,_0x4b4293[_0x3d1971+0x1]);}}return this['_resolveDescriptionItems'](_0xfe95f4);}['registerDescriptionCallback'](_0x2a5dfa){this['_customCallbacks']['push'](_0x2a5dfa);}['registerElementLabel'](_0x1c80e4,_0x38854a,_0x506dd2=_0xcf8801['normal']){'function'==typeof _0x1c80e4?_0x24355e(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1c80e4,'label':_0x38854a,'priority':_0x506dd2}):this['_itemLabels']['set'](_0x1c80e4,_0x38854a);}['registerAttributeLabel'](_0xf871cc,_0x490db1){this['_attributeLabels']['set'](_0xf871cc,_0x490db1);}['getItemLabel'](_0x71a8de,_0x319003=0x1){let _0x2242c3;for(const _0x39f7fe of this['_itemLabelsCallbacks'])if(_0x39f7fe['matchingCallback'](_0x71a8de)){_0x2242c3=_0x39f7fe['label'];break;}return _0x2242c3||(_0x2242c3=this['_itemLabels']['get'](_0x71a8de['name'])),_0x2242c3?_0x2242c3(_0x319003):0x1!==_0x319003?_0x319003+'\x20'+_0x71a8de['name']+'s':''+_0x71a8de['name'];}['_addDescriptionItems'](_0x30f4fb,_0x385e62){const _0x66b532=_0x385e62['getFirstRange']()['getWalker'](),_0x135b49='insertion'==_0x385e62['type']?'add':'remove';for(const _0x14ff36 of _0x66b532){const _0x4ca69f=_0x14ff36['item'],_0x45cf8f=_0x30f4fb[_0x30f4fb['length']-0x1];if(_0x4ca69f['is']('$textProxy'))_0x45cf8f&&_0x45cf8f['type']['indexOf']('Container')>-0x1&&_0x30f4fb['pop'](),_0x45cf8f&&'text'==_0x45cf8f['type']?_0x45cf8f[_0x135b49]+=_0x4ca69f['data']:_0x30f4fb['push']({'type':'text','add':'add'==_0x135b49?_0x4ca69f['data']:'','remove':'remove'==_0x135b49?_0x4ca69f['data']:''});else{if(this['_schema']['isObject'](_0x4ca69f)){const _0x39c732=_0x4ca69f;if(_0x45cf8f&&_0x45cf8f['type']['indexOf']('Container')>-0x1&&_0x30f4fb['pop'](),'elementEnd'==_0x14ff36['type'])continue;_0x45cf8f&&_0x45cf8f['type']==_0x135b49+'Object'&&_0x45cf8f['element']['name']==_0x39c732['name']?_0x45cf8f['quantity']++:_0x30f4fb['push']({'type':_0x135b49+'Object','element':_0x39c732,'quantity':0x1}),_0x66b532['skip'](_0x408331=>!('elementEnd'==_0x408331['type']&&_0x408331['item']==_0x4ca69f));}else{if(this['_schema']['checkChild'](_0x4ca69f,'$text')||_0x4ca69f['is']('element','softBreak')){const _0x533899=_0x4ca69f;if('add'==_0x135b49&&'elementStart'==_0x14ff36['type']||'remove'==_0x135b49&&'elementEnd'==_0x14ff36['type'])continue;if(_0x45cf8f&&-0x1==_0x45cf8f['type']['indexOf']('Container')){'text'==_0x45cf8f['type']&&(_0x45cf8f[_0x135b49]+='\x0a');continue;}let _0x244799;if(_0x244799='add'==_0x135b49?_0x533899['nextSibling']&&!this['_schema']['isObject'](_0x533899['nextSibling'])?_0x533899['nextSibling']:null:_0x533899['previousSibling']&&!this['_schema']['isObject'](_0x533899['previousSibling'])?_0x533899['previousSibling']:null,_0x533899['isEmpty']||_0x244799&&_0x244799['isEmpty']){const _0x111629=_0x244799&&_0x244799['isEmpty']?_0x244799:_0x533899;_0x45cf8f&&_0x45cf8f['type']==_0x135b49+'EmptyContainer'&&_0x45cf8f['element']['name']==_0x111629['name']?_0x45cf8f['quantity']++:_0x30f4fb['push']({'type':_0x135b49+'EmptyContainer','element':_0x111629,'quantity':0x1});}else _0x30f4fb['push']({'type':_0x135b49+'Container','element':_0x533899});}}}}}['_resolveDescriptionItems'](_0x326cbd){const _0x3225ca=this['_locale'],_0x33b0ab=[],_0x232c20=[],_0xcac0a6=[];for(const _0x51ff49 of _0x326cbd)switch(_0x51ff49['type']){case'text':if(_0x51ff49['add']=_0x51ff49['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x51ff49['remove']=_0x51ff49['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x51ff49['add']&&''!=_0x51ff49['remove']){_0x33b0ab['push']({'type':'replace','content':Tt(_0x3225ca,'REPLACE_TEXT',['\x22'+_0x51ff49['remove']+'\x22','\x22'+_0x51ff49['add']+'\x22'])});continue;}if(null!=_0x51ff49['add']['match'](/^ +$/)){_0x33b0ab['push']({'type':'insertion','content':Tt(_0x3225ca,'*Insert:*\x20%0',Tt(_0x3225ca,'ELEMENT_SPACE',_0x51ff49['add']['length']))});continue;}if(null!=_0x51ff49['remove']['match'](/^ +$/)){_0x33b0ab['push']({'type':'deletion','content':Tt(_0x3225ca,'*Remove:*\x20%0',Tt(_0x3225ca,'ELEMENT_SPACE',_0x51ff49['remove']['length']))});continue;}if(''!=_0x51ff49['add']){_0x33b0ab['push']({'type':'insertion','content':Tt(_0x3225ca,'*Insert:*\x20%0','\x22'+_0x51ff49['add']+'\x22')});continue;}_0x33b0ab['push']({'type':'deletion','content':Tt(_0x3225ca,'*Remove:*\x20%0','\x22'+_0x51ff49['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x33b0ab['push']({'type':'insertion','content':Tt(_0x3225ca,'*Insert:*\x20%0',this['getItemLabel'](_0x51ff49['element'],_0x51ff49['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x33b0ab['push']({'type':'deletion','content':Tt(_0x3225ca,'*Remove:*\x20%0',this['getItemLabel'](_0x51ff49['element'],_0x51ff49['quantity']))});continue;case'addContainer':_0x33b0ab['push']({'type':'insertion','content':Tt(_0x3225ca,'*Split:*\x20%0',this['getItemLabel'](_0x51ff49['element'],_0x51ff49['quantity']))});continue;case'removeContainer':_0x33b0ab['push']({'type':'deletion','content':Tt(_0x3225ca,'*Merge:*\x20%0',this['getItemLabel'](_0x51ff49['element'],_0x51ff49['quantity']))});continue;case'addFormat':_0x232c20['push'](_0x51ff49['key']);continue;case'removeFormat':_0xcac0a6['push'](_0x51ff49['key']);continue;default:_0x33b0ab['push'](_0x51ff49);}if(_0x232c20['length']){const _0x1c7c11=_0x232c20['map'](_0x5dcf23=>this['_attributeLabels']['has'](_0x5dcf23)?this['_attributeLabels']['get'](_0x5dcf23):_0x5dcf23)['join'](',\x20');_0x33b0ab['push']({'type':'format','content':Tt(this['_locale'],'*Set\x20format:*\x20%0',_0x1c7c11)});}if(_0xcac0a6['length']){const _0x4c1d5b=_0xcac0a6['map'](_0x51cab7=>this['_attributeLabels']['has'](_0x51cab7)?this['_attributeLabels']['get'](_0x51cab7):_0x51cab7)['join'](',\x20');_0x33b0ab['push']({'type':'format','content':Tt(this['_locale'],'*Remove\x20format:*\x20%0',_0x4c1d5b)});}return _0x33b0ab;}['_handleCustomCallbackDescription'](_0xefef9d){for(const _0x3a7565 of this['_customCallbacks']){const _0x29bb29=_0x3a7565(_0xefef9d);if(_0x29bb29&&'type'in _0x29bb29)return _0x29bb29;}}['_handleAttributeSuggestionDescription'](_0x4a79ab,_0x511a36){const _0xed0815=_0x511a36['data'],_0x252cdd=void 0x0===_0xed0815['newValue']?'removeFormat':'addFormat';_0x4a79ab['push']({'type':_0x252cdd,'key':_0xed0815['key']});}['_handleRenameSuggestionDescription'](_0x42264a,_0x50e134){_0x42264a['push']({'type':'format','content':Tt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x50e134['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3ad2e2,_0x302342,_0x2ec368){if(this['_addDescriptionItems'](_0x3ad2e2,_0x302342),_0x2ec368&&_0x2ec368['getFirstRange']()&&!_0x302342['getFirstRange']()['end']['isEqual'](_0x2ec368['getFirstRange']()['start'])){const _0x22f79c=_0x3ad2e2[_0x3ad2e2['length']-0x1],_0x5ce050='insertion'==_0x302342['type']?'add':'remove';_0x22f79c&&'text'==_0x22f79c['type']&&(_0x22f79c[_0x5ce050]+='\x0a');}}}class TrackChangesAIAssistant extends _0x203e6b{['afterInit'](){const _0x5ee61e=this['editor'],_0x35f327=_0x5ee61e['plugins']['get']('TrackChangesEditing');_0x5ee61e['commands']['get']('showAIAssistant')&&_0x35f327['enableCommand']('showAIAssistant');}}class TrackChangesAI extends _0x203e6b{['afterInit'](){const _0x4425af=this['editor'],_0xe6095=_0x4425af['plugins']['get']('TrackChangesEditing');_0x4425af['commands']['get']('toggleAi')&&_0xe6095['enableCommand']('toggleAi');}}class TrackChangesAIQuickActions extends _0x203e6b{['afterInit'](){const _0x27c643=this['editor'],_0x1c7371=_0x27c643['plugins']['get']('TrackChangesEditing');_0x27c643['commands']['get']('aiQuickAction')&&_0x1c7371['enableCommand']('aiQuickAction');}}class TrackChangesAlignment extends _0x203e6b{['afterInit'](){const _0x1d68f7=this['editor'],_0x4a59dc=_0x1d68f7['locale'];if(!_0x1d68f7['plugins']['has']('AlignmentEditing'))return;const _0x28c2c4=_0x1d68f7['plugins']['get']('TrackChangesEditing');_0x28c2c4['enableDefaultAttributesIntegration']('alignment'),_0x28c2c4['descriptionFactory']['registerAttributeLabel']('alignment',Tt(_0x4a59dc,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x700f2a=this['editor'],_0xca5749=_0x700f2a['locale'];_0x700f2a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f6876=>{if('formatBlock'!=_0x4f6876['type'])return;const {data:_0x470658}=_0x4f6876;if(_0x470658&&'alignment'==_0x470658['commandName']){const _0x5161db=_0x470658['commandParams'][0x0]['value'];return{'type':'format','content':Tt(_0xca5749,'*Format:*\x20%0',function(_0x30d21b){switch(_0x30d21b){case'left':return Tt(_0xca5749,'FORMAT_ALIGN_TO_LEFT');case'right':return Tt(_0xca5749,'FORMAT_ALIGN_TO_RIGHT');case'center':return Tt(_0xca5749,'FORMAT_ALIGN_TO_CENTER');case'justify':return Tt(_0xca5749,'FORMAT_JUSTIFY_TEXT');}}(_0x5161db))};}});}}const _t=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class TrackChangesBasicStyles extends _0x203e6b{['afterInit'](){const _0x4ff137=this['editor'],_0x1ed1a1=_0x4ff137['plugins']['get']('TrackChangesEditing'),_0x3a5e26=_0x4ff137['locale'];for(const _0x40eaf2 of _t){if(!_0x4ff137['plugins']['has'](_0x40eaf2))continue;const _0x2e1cb0=_0x40eaf2['slice'](0x0,-0x7)['toLowerCase'](),_0x4c6b01='FORMAT_'+_0x2e1cb0['toUpperCase']();_0x1ed1a1['enableDefaultAttributesIntegration'](_0x2e1cb0),_0x1ed1a1['descriptionFactory']['registerAttributeLabel'](_0x2e1cb0,Tt(_0x3a5e26,_0x4c6b01));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c60e9=this['editor'],_0x1e860d=_0x4c60e9['locale'],_0x9053a6=_0x4c60e9['plugins']['get']('TrackChangesEditing');function _0x13ec36(_0x4a8df9,_0x4fba11){_0x9053a6['descriptionFactory']['registerDescriptionCallback'](_0x3674aa=>{if('formatInline'!=_0x3674aa['type'])return;const {data:_0x45b25a}=_0x3674aa;return _0x45b25a&&_0x45b25a['commandName']===_0x4a8df9?_0x45b25a['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x1e860d,'*Format:*\x20%0',_0x4fba11)}:{'type':'format','content':Tt(_0x1e860d,'*Remove\x20format:*\x20%0',_0x4fba11)}:void 0x0;});}_0x13ec36('bold',Tt(_0x1e860d,'FORMAT_BOLD')),_0x13ec36('italic',Tt(_0x1e860d,'FORMAT_ITALIC')),_0x13ec36('underline',Tt(_0x1e860d,'FORMAT_UNDERLINE')),_0x13ec36('code',Tt(_0x1e860d,'FORMAT_CODE')),_0x13ec36('strikethrough',Tt(_0x1e860d,'FORMAT_STRIKETHROUGH')),_0x13ec36('subscript',Tt(_0x1e860d,'FORMAT_SUBSCRIPT')),_0x13ec36('superscript',Tt(_0x1e860d,'FORMAT_SUPERSCRIPT'));}}class TrackChangesBlockQuote extends _0x203e6b{['afterInit'](){const _0x579510=this['editor'],_0x37cd0b=_0x579510['locale'];if(!_0x579510['plugins']['has']('BlockQuoteEditing'))return;const _0x570c1e=_0x579510['plugins']['get']('TrackChangesEditing'),_0x5014dc=this['editor']['commands']['get']('blockQuote');_0x570c1e['enableCommand']('blockQuote',(_0x1d2800,_0x44ee74={})=>{const _0xdb01cb=this['editor']['model']['document']['selection'],_0xde64a3=_0x44ee74&&void 0x0!==_0x44ee74['forceValue']?_0x44ee74['forceValue']:!_0x5014dc['value'];let _0x225d49=[];if(_0xde64a3){const _0x5d51e8=Array['from'](_0xdb01cb['getSelectedBlocks']())['filter'](_0xf83566=>pt(_0xf83566)||function(_0x4663fc,_0x27adc6){const _0x24f5d8=_0x27adc6['createContext'](_0x4663fc['parent']);if(!_0x27adc6['checkChild'](_0x24f5d8,'blockQuote'))return!0x1;if(!_0x27adc6['checkChild'](_0x24f5d8['push']('blockQuote'),_0x4663fc))return!0x1;return!0x0;}(_0xf83566,this['editor']['model']['schema']));_0x225d49=ft(_0x5d51e8,_0x579510['model']);}else{const _0x288000=Array['from'](_0xdb01cb['getSelectedBlocks']())['filter'](_0x13ae09=>pt(_0x13ae09));_0x225d49=ft(_0x288000,_0x579510['model']);}_0x579510['model']['change'](()=>{for(const _0x286f78 of _0x225d49)_0x570c1e['markBlockFormat'](_0x286f78,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xde64a3}]});});}),_0x570c1e['descriptionFactory']['registerDescriptionCallback'](_0x2c75de=>{const {data:_0x29a76c}=_0x2c75de;if(_0x29a76c&&'blockQuote'==_0x29a76c['commandName']){const _0x1520fb=Tt(_0x37cd0b,'ELEMENT_BLOCK_QUOTE');return _0x29a76c['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x37cd0b,'*Set\x20format:*\x20%0',_0x1520fb)}:{'type':'format','content':Tt(_0x37cd0b,'*Remove\x20format:*\x20%0',_0x1520fb)};}});}}function pt(_0x5f421a){return'blockQuote'==_0x5f421a['parent']['name'];}class TrackChangesBookmark extends _0x203e6b{['afterInit'](){const _0x1d140e=this['editor'],_0x4fb4a2=_0x1d140e['locale'],_0xf60d9e=_0x1d140e['plugins']['get']('TrackChangesEditing');_0x1d140e['plugins']['has']('BookmarkEditing')&&(_0xf60d9e['enableCommand']('insertBookmark'),_0xf60d9e['enableDefaultAttributesIntegration']('updateBookmark'),_0xf60d9e['descriptionFactory']['registerDescriptionCallback'](_0x50235d=>{if('insertion'!=_0x50235d['type']&&'deletion'!=_0x50235d['type']&&'attribute'!=_0x50235d['type'])return;const _0x491d99=_0x50235d['getContainedElement']();if(null==_0x491d99)return;if(!_0x491d99['is']('element','bookmark'))return;const _0x3b1917=_0x491d99['getAttribute']('bookmarkId');if('insertion'==_0x50235d['type'])return{'type':'insertion','content':Tt(_0x4fb4a2,'*Insert:*\x20%0','\x22'+_0x3b1917+'\x22\x20'+Tt(_0x4fb4a2,'ELEMENT_BOOKMARK'))};if('deletion'==_0x50235d['type'])return{'type':'deletion','content':Tt(_0x4fb4a2,'*Remove:*\x20%0','\x22'+_0x3b1917+'\x22\x20'+Tt(_0x4fb4a2,'ELEMENT_BOOKMARK'))};const {data:_0x321011}=_0x50235d;if(!_0x321011||'bookmarkId'!=_0x321011['key'])return;return{'type':'format','content':Tt(_0x4fb4a2,'*Set\x20bookmark:*\x20%0','\x22'+_0x321011['newValue']+'\x22')};}));}}class TrackChangesCaseChange extends _0x203e6b{['afterInit'](){const _0x595d1c=this['editor'];_0x595d1c['plugins']['has']('CaseChange')&&(_0x595d1c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x595d1c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x595d1c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class TrackChangesCKBox extends _0x203e6b{['afterInit'](){const _0x337df5=this['editor'];_0x337df5['commands']['get']('ckbox')&&_0x337df5['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class TrackChangesCodeBlock extends _0x203e6b{['afterInit'](){const _0xe4d1a4=this['editor'];if(!_0xe4d1a4['plugins']['has']('CodeBlock'))return;const _0x59d792=_0xe4d1a4['plugins']['get']('TrackChangesEditing'),_0x4e2e1c=_0xe4d1a4['locale'],_0x330c4d=_0xe4d1a4['config']['get']('codeBlock')['languages'],_0x43fc07=_0xe4d1a4['commands']['get']('codeBlock');_0x59d792['enableCommand']('indentCodeBlock'),_0x59d792['enableCommand']('outdentCodeBlock'),_0x59d792['enableCommand']('codeBlock',(_0x48d200,_0xf92f13={})=>{const _0x5c02c8=_0xe4d1a4['model'],_0x5e862a=_0xe4d1a4['model']['document']['selection'],_0x216bdb=_0xf92f13&&void 0x0!==_0xf92f13['forceValue']?_0xf92f13['forceValue']:!_0x43fc07['value'];let _0x3c6445;_0xf92f13['language']||(_0xf92f13['language']=_0x330c4d[0x0]['language']),_0x3c6445=_0x216bdb?Array['from'](_0x5e862a['getSelectedBlocks']())['filter'](_0x47e06a=>Ct(_0x47e06a)||function(_0x4e1f7f,_0x3092a){if(_0x4e1f7f['is']('rootElement')||_0x3092a['isLimit'](_0x4e1f7f))return!0x1;return _0x3092a['checkChild'](_0x4e1f7f['parent'],'codeBlock');}(_0x47e06a,_0x5c02c8['schema'])):Array['from'](_0x5e862a['getSelectedBlocks']())['filter'](_0x42f0da=>Ct(_0x42f0da));const _0x467daa=ft(_0x3c6445,_0x5c02c8);_0x5c02c8['change'](()=>{for(const _0x5e609f of _0x467daa)_0x59d792['markBlockFormat'](_0x5e609f,{'commandName':'codeBlock','commandParams':[{..._0xf92f13,'forceValue':_0x216bdb}],'formatGroupId':'blockName'});});}),(_0x59d792['descriptionFactory']['registerElementLabel']('codeBlock',_0x4ea565=>Tt(_0x4e2e1c,'ELEMENT_CODE_BLOCK',_0x4ea565)),_0x59d792['descriptionFactory']['registerDescriptionCallback'](_0xbfe060=>{if('formatBlock'!=_0xbfe060['type'])return;const _0x217330=_0x4e2e1c['t'],{data:_0x1036a1}=_0xbfe060;if(!_0x1036a1||'codeBlock'!=_0x1036a1['commandName'])return;const _0x358181=_0x1036a1['commandParams'][0x0]['language'],_0x717c2a=_0x217330(_0x330c4d['find'](_0x54a427=>_0x54a427['language']===_0x358181)['label'])['toLowerCase']();return _0x1036a1['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x4e2e1c,'*Set\x20format:*\x20%0',Tt(_0x4e2e1c,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x717c2a+')')}:{'type':'format','content':Tt(_0x4e2e1c,'*Remove\x20format:*\x20%0',Tt(_0x4e2e1c,'ELEMENT_CODE_BLOCK',0x1))};}));}}function Ct(_0x414b1b){return'codeBlock'==_0x414b1b['name'];}class TrackChangesComments extends _0x203e6b{['afterInit'](){const _0x17a6ca=this['editor'];if(!_0x17a6ca['plugins']['has']('CommentsEditing'))return;_0x17a6ca['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class TrackChangesDeleteCommand extends _0x203e6b{static get['requires'](){return[at];}['init'](){const _0x56a41e=this['editor'],_0x592345=_0x56a41e['plugins']['get']('TrackChangesEditing');_0x592345['enableCommand']('delete');const _0x65e4bf=_0x56a41e['commands']['get']('deleteForward');_0x592345['enableCommand']('deleteForward',(_0x1fab1a,_0x2a4b70={})=>{const _0x12cc7c=_0x56a41e['model']['createSelection'](_0x56a41e['model']['document']['selection']);_0x12cc7c['isCollapsed']&&_0x56a41e['model']['modifySelection'](_0x12cc7c,{'direction':'forward','unit':_0x2a4b70['unit']});const _0x5ceda3=_0x12cc7c['getFirstRange'](),_0xfcdb9f=_0x4c6b54['fromRange'](_0x5ceda3);let _0x39c640;_0x1fab1a(_0x2a4b70),_0x39c640='$graveyard'==_0xfcdb9f['root']['rootName']?_0x56a41e['model']['createRange'](_0x5ceda3['start']):_0x56a41e['model']['createRange'](_0xfcdb9f['start'],_0xfcdb9f['end']),_0xfcdb9f['detach'](),_0x56a41e['model']['enqueueChange'](_0x65e4bf['buffer']['batch'],_0x54bd0e=>{_0x65e4bf['buffer']['lock'](),_0x54bd0e['setSelection'](_0x54bd0e['createRange'](_0x39c640['end'])),_0x65e4bf['buffer']['unlock']();});});}}class TrackChangesList extends _0x203e6b{['afterInit'](){const _0x104654=this['editor'];if(!_0x104654['plugins']['has']('ListEditing'))return;const _0x24f731=_0x104654['locale'],_0x29cc3a=_0x104654['plugins']['get']('TrackChangesEditing'),_0x2be960=_0x104654['plugins']['has']('TodoListEditing'),_0x33673f=!!_0x104654['config']['get']('list.multiBlock');function _0x56661f(_0xcf652a){return{'type':'format','content':''+Tt(_0x24f731,'*Set\x20format:*\x20%0',_0xcf652a)};}function _0xe6cef7(_0x344764){return{'type':'format','content':''+Tt(_0x24f731,'*Remove\x20format:*\x20%0',_0x344764)};}_0x29cc3a['enableDefaultAttributesIntegration']('numberedList'),_0x29cc3a['enableDefaultAttributesIntegration']('bulletedList'),_0x29cc3a['enableDefaultAttributesIntegration']('customNumberedList'),_0x29cc3a['enableDefaultAttributesIntegration']('customBulletedList'),_0x29cc3a['enableDefaultAttributesIntegration']('indentList'),_0x29cc3a['enableDefaultAttributesIntegration']('outdentList'),_0x29cc3a['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x29cc3a['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x33673f&&(_0x29cc3a['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x29cc3a['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2be960&&(_0x29cc3a['enableDefaultAttributesIntegration']('todoList'),_0x29cc3a['enableDefaultAttributesIntegration']('checkTodoList'),_0x29cc3a['descriptionFactory']['registerDescriptionCallback'](_0x1a101a=>{const {data:_0x44af8f}=_0x1a101a;if(_0x44af8f&&'todoListChecked'==_0x44af8f['key'])return{'type':'format','content':_0x44af8f['newValue']?Tt(_0x24f731,'*Check\x20item*'):Tt(_0x24f731,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2a8701=>{if(_0x2a8701['batch']['isUndo'])return!0x1;let _0xe4f725=!0x1;const _0x272ef3=_0x29cc3a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x563b96=>'todoListChecked'===_0x29cc3a['_getAttributeKey'](_0x563b96));for(const _0x478fab of _0x272ef3){'todo'!=_0x478fab['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x29cc3a['_findSuggestions'](_0x478fab['getFirstRange'](),'attribute')['find'](_0x2ac3ce=>'listType'===_0x29cc3a['_getAttributeKey'](_0x2ac3ce['suggestion']))||(_0x2a8701['removeMarker'](_0x478fab['getFirstMarker']()),_0xe4f725=!0x0));}return _0xe4f725;})),_0x29cc3a['descriptionFactory']['registerAttributeLabel']('listIndent',Tt(_0x24f731,'FORMAT_INDENT'));const _0x14d2ac={'type':'format','content':''};_0x29cc3a['descriptionFactory']['registerDescriptionCallback'](_0x374a0a=>{const {data:_0x371823}=_0x374a0a;if(!_0x371823||'listType'!=_0x371823['key'])return;let _0xe7231a=_0x374a0a['head'];for(;_0xe7231a;){if(_0xe7231a['data']&&(('listStyle'==_0xe7231a['data']['key']||'listMarkerStyle'==_0xe7231a['data']['key'])&&(_0xe7231a['data']['newValue']&&'default'!=_0xe7231a['data']['newValue']||'default'!=_0xe7231a['data']['oldValue']&&!_0x371823['newValue'])||!_0x33673f&&_0xe7231a['data']['key']==Bt))return _0x14d2ac;_0xe7231a=_0xe7231a['next'];}if(null==_0x371823['newValue'])switch(_0x371823['oldValue']){case'bulleted':return _0xe6cef7(Tt(_0x24f731,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xe6cef7(Tt(_0x24f731,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xe6cef7(Tt(_0x24f731,'ELEMENT_TODO_LIST'));}switch(_0x371823['newValue']){case'bulleted':return _0x56661f(Tt(_0x24f731,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x56661f(Tt(_0x24f731,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x56661f(Tt(_0x24f731,'ELEMENT_TODO_LIST'));}}),_0x29cc3a['descriptionFactory']['registerDescriptionCallback'](_0x51341c=>{const {data:_0x1cd3a6}=_0x51341c;if(_0x1cd3a6&&'listIndent'==_0x1cd3a6['key'])return null==_0x1cd3a6['newValue']||null==_0x1cd3a6['oldValue']&&0x0==_0x1cd3a6['newValue']?_0x14d2ac:void 0x0;}),_0x29cc3a['descriptionFactory']['registerDescriptionCallback'](_0x4ee13c=>{if('attribute'!=_0x4ee13c['type'])return;const {data:_0x47edbe}=_0x4ee13c;if(!_0x47edbe||'listItemId'!=_0x47edbe['key'])return;const _0x1ec3da=kt(_0x4ee13c);return'newValue'==_0x1ec3da?{'type':'format','content':Tt(_0x24f731,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1ec3da?{'type':'format','content':Tt(_0x24f731,'*Split:*\x20list\x20item')}:_0x14d2ac;}),_0x104654['model']['document']['registerPostFixer'](_0x51333d=>this['listItemIdFixer'](_0x51333d)),_0x104654['model']['document']['registerPostFixer'](_0x1d2a85=>this['noTrackChangesFixer'](_0x1d2a85)),_0x104654['model']['document']['on']('change:data',(_0x31878d,_0x42df03)=>{if(_0x42df03['isUndo']||!_0x42df03['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x29db7d){if(_0x29db7d['batch']['isUndo']||!_0x29db7d['batch']['isLocal'])return!0x1;let _0x523f8f=!0x1;const _0x411127=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x27fc03=>_0x27fc03['data']&&'listItemId'==_0x27fc03['data']['key'])['filter'](_0x9e6cb2=>_0x9e6cb2['data']['newValue']&&_0x9e6cb2['data']['oldValue']);for(const _0x3fc03f of _0x411127)kt(_0x3fc03f)||(_0x29db7d['removeMarker'](_0x3fc03f['getFirstMarker']()),_0x523f8f=!0x0);return _0x523f8f;}['noTrackChangesFixer'](_0x29f9dd){if(_0x29f9dd['batch']['isUndo']||!_0x29f9dd['batch']['isLocal'])return!0x1;const _0x218419=this['editor']['model']['document']['differ'],_0x394a66=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x394a66['trackChangesCommand']['value'])return!0x1;let _0x1ce0df=!0x1;const _0xaaa6b=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle']),_0x444492=_0x218419['getChanges']()['filter'](_0x2b1c87=>'attribute'==_0x2b1c87['type'])['filter'](_0x5bcbef=>_0xaaa6b['has'](_0x5bcbef['attributeKey']));if(0x0==_0x444492['length'])return _0x1ce0df;const _0x78f407=new Set(_0x218419['getMarkersToAdd']()['filter'](_0x3e5ac4=>{if(!_0x3e5ac4['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x24b0a1=_0x4f787f(_0x3e5ac4['name'])['subType']['split']('|')[0x0];return _0xaaa6b['has'](_0x24b0a1);})['map'](_0x4fd549=>_0x4f787f(_0x4fd549['name'])['id']));for(const _0x1e23f7 of _0x444492){const _0x3723e7=_0x394a66['_findSuggestions'](_0x1e23f7['range'],'attribute')['filter'](_0x2684c1=>{if(_0x2684c1['meta']['isNextTo'])return!0x1;if(_0x78f407['has'](_0x2684c1['suggestion']['id']))return!0x1;const _0x106f10=_0x394a66['_getAttributeKey'](_0x2684c1['suggestion']);return _0xaaa6b['has'](_0x106f10);})['map'](_0x2eef70=>_0x2eef70['suggestion']);if(_0x3723e7['length']){for(const _0x31296c of _0x3723e7)_0x29f9dd['removeMarker'](_0x31296c['getFirstMarker']());_0x1ce0df=!0x0;}}return _0x1ce0df;}['assureChains'](){const _0x98ad=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb3ce92=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x57e591;const _0x153d8f=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x55e455=>{if(_0x55e455['data']['oldRange']||!_0x55e455['data']['newRange'])return null;if(!_0x55e455['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x281ea5}=_0x4f787f(_0x55e455['name']);if(!_0x98ad['hasSuggestion'](_0x281ea5))return null;const _0x5cdca1=_0x98ad['getSuggestion'](_0x281ea5);return _0xb3ce92['includes'](_0x5cdca1['data']['key']);})['map'](_0x3cc939=>{const {id:_0x27af3e}=_0x4f787f(_0x3cc939['name']),_0x2ed59f=_0x98ad['getSuggestion'](_0x27af3e);return _0x57e591=_0x2ed59f['attributes']['groupId'],_0x2ed59f['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x153d8f['size'])return;const _0x1f32ce=_0x98ad['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x42158f=>'attribute'==_0x42158f['type']&&_0x42158f['data']&&_0xb3ce92['includes'](_0x42158f['data']['key'])&&_0x42158f['attributes']['groupId']!=_0x57e591)['map'](_0xf6a803=>({'listItem':_0xf6a803['getFirstRange']()['start']['nodeAfter'],'groupId':_0xf6a803['attributes']['groupId']})),_0x14018d=new Set();for(const {groupId:_0x57bd18,listItem:_0x149713}of _0x1f32ce)_0x153d8f['has'](_0x149713)&&_0x14018d['add'](_0x57bd18);for(const _0x2f5cd8 of _0x98ad['getSuggestions']())_0x14018d['has'](_0x2f5cd8['attributes']['groupId'])&&_0x2f5cd8['setAttribute']('groupId',_0x57e591);}['_supportLegacySuggestions'](){const _0x562b72=this['editor'],_0x701f37=_0x562b72['locale'],_0x1fd51d=_0x562b72['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1fd51d['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x42c29a,_0x4c9e38){const _0x4f1c51=[];for(let _0x10882d of _0x42c29a)_0x10882d['start']['nodeAfter']===_0x10882d['end']['parent']&&(_0x10882d=_0x562b72['model']['createRange'](_0x562b72['model']['createPositionAt'](_0x10882d['start']['nodeAfter'],0x0))),_0x4f1c51['push'](_0x10882d);_0x562b72['model']['change'](_0x4644e9=>{const _0x2f5ffe=_0x562b72['model']['document']['selection'],_0x36433b=Array['from'](_0x2f5ffe['getRanges']())['map'](_0x3a951d=>_0x4c6b54['fromRange'](_0x3a951d));_0x4644e9['setSelection'](_0x4f1c51),_0x562b72['commands']['get'](_0x4c9e38['commandName'])['refresh'](),_0x4c9e38['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x562b72['execute'](_0x4c9e38['commandName'],..._0x4c9e38['commandParams']),_0x4644e9['setSelection'](_0x36433b);for(const _0x4ddb03 of _0x36433b)_0x4ddb03['detach']();});}),_0x1fd51d['descriptionFactory']['registerElementLabel'](function(_0x3df6ae){const _0x358381=!_0x562b72['model']['schema']['isObject'](_0x3df6ae),_0x4f8761=_0x3df6ae['previousSibling'],_0x5dcbad=_0x3df6ae['nextSibling'],_0x107fa9=_0x3df6ae['getAttribute']('listItemId'),_0x1c09c5=!_0x4f8761||_0x4f8761['getAttribute']('listItemId')!==_0x107fa9,_0x33453d=!_0x5dcbad||_0x5dcbad['getAttribute']('listItemId')!==_0x107fa9;return _0x358381&&Boolean(_0x107fa9)&&_0x1c09c5&&_0x33453d;},_0x4f67b4=>Tt(_0x701f37,'ELEMENT_LIST_ITEM',_0x4f67b4));}['_registerLegacyDescription'](){const _0x5f5d00=this['editor'],_0x15ab9d=_0x5f5d00['locale'];function _0x8c46c1(_0x5326b1){const _0x1ef9df=_0x5f5d00['commands']['get']('bulletedList')['value'],_0x275837=_0x5f5d00['commands']['get']('numberedList')['value'];return'numberedList'===_0x5326b1?_0x1ef9df:_0x275837;}_0x5f5d00['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x497079){if('formatBlock'!=_0x497079['type'])return;const {data:_0x20c87d}=_0x497079;if(!_0x20c87d)return;let _0x4bd86c,_0x4d0a71,_0x560604,_0x1964d6;switch(_0x20c87d['commandName']){case'bulletedList':_0x560604=_0x20c87d['commandParams'][0x0]['forceValue'],_0x1964d6=_0x8c46c1(_0x20c87d['commandName']),_0x4bd86c=_0x560604?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1964d6&&_0x5f5d00['config']['get']('list.multiBlock')||(_0x4bd86c='*Change\x20to:*\x20%0'),_0x4d0a71={'type':'format','content':Tt(_0x15ab9d,_0x4bd86c,Tt(_0x15ab9d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x560604=_0x20c87d['commandParams'][0x0]['forceValue'],_0x1964d6=_0x8c46c1(_0x20c87d['commandName']),_0x4bd86c=_0x560604?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1964d6&&_0x5f5d00['config']['get']('list.multiBlock')||(_0x4bd86c='*Change\x20to:*\x20%0'),_0x4d0a71={'type':'format','content':Tt(_0x15ab9d,_0x4bd86c,Tt(_0x15ab9d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4bd86c='*Indent:*\x20%0',_0x4d0a71={'type':'format','content':Tt(_0x15ab9d,_0x4bd86c,Tt(_0x15ab9d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4bd86c=function(_0x259062){const _0x4c7b05=_0x259062['getFirstRange']();let _0x41be49=_0x4c7b05['start']['nodeAfter'];for(;_0x41be49&&_0x4c7b05['containsItem'](_0x41be49);){if(_0x41be49['getAttribute']('listIndent')>0x0)return!0x1;_0x41be49=_0x41be49['nextSibling'];}return!0x0;}(_0x497079)?Tt(_0x15ab9d,'*Format:*\x20remove\x20from\x20%0',Tt(_0x15ab9d,function(_0x5b3d6e){return'ELEMENT_'+_0x5b3d6e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x497079))):Tt(_0x15ab9d,'*Outdent:*\x20%0',Tt(_0x15ab9d,'ELEMENT_LIST_ITEM')),_0x4d0a71={'type':'format','content':_0x4bd86c};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x20c87d['multipleBlocks']&&(_0x4bd86c='*Merge:*\x20%0',_0x4d0a71={'type':'deletion','content':Tt(_0x15ab9d,_0x4bd86c,Tt(_0x15ab9d,'ELEMENT_LIST_ITEM'))});}return _0x4d0a71;});}}function kt(_0x27aebb){let _0x584d6b=_0x27aebb['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x584d6b;){const _0x16899b=_0x584d6b['getAttribute']('listItemId');if(!_0x16899b)return!0x1;if(_0x16899b==_0x27aebb['data']['newValue'])return'newValue';if(_0x16899b==_0x27aebb['data']['oldValue'])return'oldValue';_0x584d6b=_0x584d6b['previousSibling'];}return!0x1;}class TrackChangesDocumentListProperties extends _0x203e6b{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4384f7=this['editor']['config']['get']('list.properties'),_0xf08031=this['editor']['plugins']['get']('TrackChangesEditing');_0x4384f7['styles']&&_0xf08031['enableDefaultAttributesIntegration']('listStyle'),_0x4384f7['reversed']&&_0xf08031['enableDefaultAttributesIntegration']('listReversed'),_0x4384f7['startIndex']&&_0xf08031['enableDefaultAttributesIntegration']('listStart');const _0x4d3629={'type':'format','content':''};_0xf08031['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4ca609=this['editor']['locale'];_0xf08031['descriptionFactory']['registerAttributeLabel']('listReversed',Tt(_0x4ca609,'FORMAT_LIST_REVERSED')),_0xf08031['descriptionFactory']['registerDescriptionCallback'](_0x2ba2b2=>{const {data:_0x295b91}=_0x2ba2b2;if(_0x295b91&&'listReversed'==_0x295b91['key'])return null==_0x295b91['newValue']||0x0==_0x295b91['newValue']&&null==_0x295b91['oldValue']?_0x4d3629:void 0x0;}),_0xf08031['descriptionFactory']['registerAttributeLabel']('listStart',Tt(_0x4ca609,'FORMAT_LIST_START')),_0xf08031['descriptionFactory']['registerDescriptionCallback'](_0x5c8d25=>{const {data:_0x6c6385}=_0x5c8d25;if(_0x6c6385&&'listStart'==_0x6c6385['key'])return null==_0x6c6385['newValue']||0x1==_0x6c6385['newValue']&&null==_0x6c6385['oldValue']?_0x4d3629:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x14b916=>{if(_0x14b916['batch']['isUndo'])return!0x1;let _0x1cb123=!0x1;const _0x2906f3=_0xf08031['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x281945=>{const _0x28d016=_0xf08031['_getAttributeKey'](_0x281945);return'listStart'==_0x28d016||'listReversed'==_0x28d016;});for(const _0x1d2156 of _0x2906f3){const _0x5537f2=_0x1d2156['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5537f2||'customNumbered'==_0x5537f2)continue;_0xf08031['_findSuggestions'](_0x1d2156['getFirstRange'](),'attribute')['find'](_0x54917b=>'listType'==_0xf08031['_getAttributeKey'](_0x54917b['suggestion']))||(_0x14b916['removeMarker'](_0x1d2156['getFirstMarker']()),_0x1cb123=!0x0);}return _0x1cb123;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x22d7a1){const _0x50644f=this['editor']['locale'],{data:_0x2b7976}=_0x22d7a1,_0x4239fa={'type':'format','content':''};if(!_0x2b7976||'listStyle'!=_0x2b7976['key'])return;if(!_0x2b7976['oldValue'])return'default'==_0x2b7976['newValue']?_0x4239fa:{'type':'format','content':''+Tt(_0x50644f,'*Set\x20format:*\x20%0',Tt(_0x50644f,this['_getTranslationKeyForListStyle'](_0x2b7976['newValue'])))};if(!_0x2b7976['newValue']){if('default'==_0x2b7976['oldValue'])return _0x4239fa;let _0x50505a=_0x22d7a1['head'];for(;_0x50505a;){if(_0x50505a['data']&&'listType'==_0x50505a['data']['key']&&_0x50505a['data']['newValue'])return _0x4239fa;_0x50505a=_0x50505a['next'];}return{'type':'format','content':''+Tt(_0x50644f,'*Remove\x20format:*\x20%0',Tt(_0x50644f,this['_getTranslationKeyForListStyle'](_0x2b7976['oldValue'])))};}if('default'!=_0x2b7976['newValue'])return{'type':'format','content':''+Tt(_0x50644f,'*Set\x20format:*\x20%0',Tt(_0x50644f,this['_getTranslationKeyForListStyle'](_0x2b7976['newValue'])))};let _0x5f20af=_0x22d7a1['head'];for(;_0x5f20af;){if(_0x5f20af['data']&&'listType'==_0x5f20af['data']['key']&&_0x5f20af['data']['newValue']&&_0x5f20af['data']['oldValue'])return _0x4239fa;_0x5f20af=_0x5f20af['next'];}return{'type':'format','content':Tt(_0x50644f,'*Set\x20format:*\x20%0',Tt(_0x50644f,'ELEMENT_'+_0x22d7a1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x27c597=this['editor'],_0x1fffde=_0x27c597['locale'];_0x27c597['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43dfcb=>{if('formatBlock'!=_0x43dfcb['type'])return;const {data:_0x20fcc9}=_0x43dfcb;if(!_0x20fcc9)return;let _0x5e21ed,_0x23067f;switch(_0x20fcc9['commandName']){case'listStyle':_0x5e21ed='*Change\x20to:*\x20%0',_0x23067f={'type':'format','content':Tt(_0x1fffde,_0x5e21ed,Tt(_0x1fffde,this['_getTranslationKeyForListStyle'](_0x20fcc9['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5e21ed=_0x20fcc9['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x23067f={'type':'format','content':Tt(_0x1fffde,_0x5e21ed)};break;case'listStart':_0x5e21ed='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x23067f={'type':'format','content':Tt(_0x1fffde,_0x5e21ed,_0x20fcc9['commandParams'][0x0]['startIndex'])};}return _0x23067f;});}['_getTranslationKeyForListStyle'](_0x479f09){return'ELEMENT_'+function(_0x45ed41){if(Lt['includes'](_0x45ed41))return'bulleted';if(It['includes'](_0x45ed41))return'numbered';return null;}(_0x479f09)['toUpperCase']()+'_LIST_'+_0x479f09['toUpperCase']()['replace'](/-/g,'_');}}const Lt=['disc','circle','square'],It=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class TrackChangesEmoji extends _0x203e6b{['afterInit'](){const _0x10aab6=this['editor'];_0x10aab6['commands']['get']('emoji')&&_0x10aab6['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class TrackChangesEnterCommand extends _0x203e6b{static get['requires'](){return[lt];}['init'](){const _0x5e9b5e=this['editor'],_0x16d2a5=_0x5e9b5e['plugins']['get']('TrackChangesEditing'),_0x168ba9=_0x5e9b5e['commands']['get']('enter');_0x16d2a5['enableCommand']('enter',()=>{_0x5e9b5e['model']['change'](_0x2e230e=>{const _0x1c7e93=_0x5e9b5e['model']['document']['selection'],_0x18160c=_0x1c7e93['getFirstPosition'](),_0x52b751=_0x4c6b54['fromRange'](_0x1c7e93['getFirstRange']());if(_0x168ba9['enterBlock'](_0x2e230e)){const _0x1e194d=_0x5e9b5e['model']['createPositionAt'](_0x18160c['parent']['nextSibling'],0x0),_0x41bc41=_0x2e230e['createRange'](_0x18160c,_0x1e194d);_0x16d2a5['markInsertion'](_0x41bc41);}else _0x2e230e['setSelection'](_0x2e230e['createRange'](_0x52b751['end']));_0x52b751['detach'](),_0x168ba9['fire']('afterExecute',{'writer':_0x2e230e});});});}}class TrackChangesFindAndReplace extends _0x203e6b{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x7dae51=this['editor']['plugins']['get']('TrackChangesEditing');_0x7dae51['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x7dae51['enableCommand']('findNext'),_0x7dae51['enableCommand']('findPrevious'),_0x7dae51['enableCommand']('replace'),_0x7dae51['enableCommand']('replaceAll');}['handleFindCommand'](_0x2963da,_0x3408d0,_0x2d14fe={}){const _0x1083c9=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2963da(_0x2be892=>{let _0x33c646=('string'==typeof _0x3408d0?_0x1083c9['findByTextCallback'](_0x3408d0,_0x2d14fe):_0x3408d0)(_0x2be892);Array['isArray'](_0x33c646)&&(_0x33c646={'results':_0x33c646,'searchText':'string'==typeof _0x3408d0?_0x3408d0:''});const _0x2eed8b=_0x33c646['results']['filter'](_0x76a001=>!0x1===this['_isInDeletionRange'](_0x76a001,_0x2be892['item']));return{..._0x33c646,'results':_0x2eed8b};},_0x2d14fe);}['_isInDeletionRange'](_0x56c964,_0x25cbb2){const _0x4075c1=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x25cbb2,_0x56c964['start']),this['editor']['model']['createPositionAt'](_0x25cbb2,_0x56c964['end']));for(const _0x38740d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4075c1['getIntersection'](_0x38740d['getRange']()))return!0x0;return!0x1;}}const At=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class TrackChangesFont extends _0x203e6b{['afterInit'](){const _0x3eb47c=this['editor']['locale'],_0x3778f5=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x15ffdb,commandName:_0x31372f}of At)this['editor']['plugins']['has'](_0x15ffdb)&&_0x3778f5['enableDefaultAttributesIntegration'](_0x31372f);_0x3778f5['descriptionFactory']['registerAttributeLabel']('fontSize',Tt(_0x3eb47c,'FORMAT_FONT_SIZE')),_0x3778f5['descriptionFactory']['registerAttributeLabel']('fontFamily',Tt(_0x3eb47c,'FORMAT_FONT_FAMILY')),_0x3778f5['descriptionFactory']['registerAttributeLabel']('fontColor',Tt(_0x3eb47c,'FORMAT_FONT_COLOR')),_0x3778f5['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Tt(_0x3eb47c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x931a92=this['editor'],_0x15be9a=_0x931a92['locale'];_0x931a92['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b3eb0=>{const _0x59b9fe=_0x15be9a['t'];if('formatInline'!=_0x5b3eb0['type'])return;const {data:_0x573625}=_0x5b3eb0;if(null!=_0x573625){if('fontSize'==_0x573625['commandName']){const _0x50eaa2=_0x573625['commandParams'][0x0]['value'];if(_0x50eaa2){const _0x4a7d57=_0x59b9fe(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3e351b=>_0x3e351b['model']==_0x50eaa2)['title'])['toLowerCase']();return{'type':'format','content':Tt(_0x15be9a,'*Set\x20font\x20size:*\x20%0',_0x4a7d57)};}return{'type':'format','content':Tt(_0x15be9a,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x573625['commandName']){const _0x13d00c=_0x573625['commandParams'][0x0]['value'];return _0x13d00c?{'type':'format','content':Tt(_0x15be9a,'*Set\x20font\x20family:*\x20%0',_0x13d00c)}:{'type':'format','content':Tt(_0x15be9a,'*Reset\x20font\x20family*')};}if('fontColor'==_0x573625['commandName']){const _0x1cb26c=_0x573625['commandParams'][0x0]['value'];if(_0x1cb26c){const _0x342ab4=_0x513476(this['editor']['config']['get']('fontColor.colors'))['find'](_0x29956d=>_0x29956d['model']==_0x1cb26c);let _0x450816=_0x1cb26c,_0x3da329='';return _0x342ab4&&(_0x450816=_0x342ab4['label'],_0x3da329=_0x59b9fe(_0x450816)['toLowerCase']()),{'type':'format','content':Tt(_0x15be9a,'*Set\x20font\x20color:*\x20%0',_0x3da329)['trim'](),'color':{'value':_0x1cb26c,'title':_0x3da329||_0x450816}};}return{'type':'format','content':Tt(_0x15be9a,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x573625['commandName']){const _0x3e96b6=_0x573625['commandParams'][0x0]['value'];if(_0x3e96b6){const _0x1c3bf0=_0x513476(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x11f833=>_0x11f833['model']==_0x3e96b6);let _0x40679e=_0x3e96b6,_0x366420='';return _0x1c3bf0&&(_0x40679e=_0x1c3bf0['label'],_0x366420=_0x59b9fe(_0x40679e)['toLowerCase']()),{'type':'format','content':Tt(_0x15be9a,'*Set\x20font\x20background\x20color:*\x20%0',_0x366420)['trim'](),'color':{'value':_0x3e96b6,'title':_0x366420||_0x40679e}};}return{'type':'format','content':Tt(_0x15be9a,'*Reset\x20font\x20background\x20color*')};}}});}}class TrackChangesFootnotes extends _0x203e6b{['afterInit'](){const {plugins:_0x2b0347}=this['editor'];_0x2b0347['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x2b0347['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x236ae7,plugins:_0x5417d7,commands:_0x434d23}=this['editor'],_0x4a55b2=_0x5417d7['get']('TrackChangesEditing');_0x434d23['get']('footnotesStyle')&&_0x4a55b2['enableDefaultAttributesIntegration']('footnotesStyle'),_0x434d23['get']('footnotesStart')&&_0x4a55b2['enableDefaultAttributesIntegration']('footnotesStart'),_0x4a55b2['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Tt(_0x236ae7,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x4a55b2['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Tt(_0x236ae7,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x3e63c0=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x57c125,commands:_0x187870}=this['editor'];_0x187870['get']('insertFootnote')&&_0x3e63c0['enableCommand']('insertFootnote'),_0x3e63c0['descriptionFactory']['registerElementLabel']('footnoteRef',_0x1b30f6=>Tt(_0x57c125,'ELEMENT_FOOTNOTE_REF',_0x1b30f6)),_0x3e63c0['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x766278=>Tt(_0x57c125,'ELEMENT_FOOTNOTE_DEFINITION',_0x766278)),_0x3e63c0['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x498a9e=>Tt(_0x57c125,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x498a9e));}}class TrackChangesFormatPainter extends _0x203e6b{['afterInit'](){const _0x49b387=this['editor'],_0x57b4be=_0x49b387['plugins']['get']('TrackChangesEditing'),_0x1c1bfb=_0x49b387['commands']['get']('copyFormat'),_0x48ef17=_0x49b387['commands']['get']('pasteFormat');_0x1c1bfb&&_0x48ef17&&(_0x57b4be['enableDefaultAttributesIntegration']('pasteFormat'),_0x57b4be['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x122535=this['editor'],_0x25b498=_0x122535['locale'];_0x122535['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x431261=>{if('formatBlock'!=_0x431261['type']&&'formatInline'!=_0x431261['type'])return;const {data:_0x2773c0}=_0x431261;if(_0x2773c0&&'pasteFormat'===_0x2773c0['commandName']){const _0xe373f7=[],_0x1fa0f0=_0x2773c0['commandParams'][0x0];for(const [_0x393e5c,_0x1ef054]of Object['entries'](_0x1fa0f0))_0xe373f7['push'](bt(_0x122535,_0x393e5c,_0x1ef054));return _0xe373f7['length']?{'type':'format','content':Tt(_0x25b498,'*Set\x20format\x20to:*\x20%0',_0xe373f7['join'](',\x20'))}:{'type':'format','content':Tt(_0x25b498,'*Remove\x20all\x20formatting*')};}});}}function bt(_0x251309,_0x1af8fc,_0x3f3518){const _0xfa81fe=_0x251309['locale']['t'],_0x16d771=_0x1af8fc['split'](/(?=[A-Z])/)['join']('\x20'),_0x18bd9f=_0xfa81fe(_0x16d771['charAt'](0x0)['toUpperCase']()+_0x16d771['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3f3518)return _0x18bd9f;if('fontColor'===_0x1af8fc||'fontBackgroundColor'===_0x1af8fc){const _0x527175=_0x513476(_0x251309['config']['get']('fontColor.colors'))['find'](_0xa66089=>_0xa66089['model']==_0x3f3518);return _0x18bd9f+'\x20('+(_0x527175?_0xfa81fe(_0x527175['label'])['toLowerCase']():_0x3f3518)+')';}if('fontSize'===_0x1af8fc&&isNaN(parseFloat(_0x3f3518))){const _0x46a413=_0x251309['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x251309['config']['get']('fontSize.options'))['find'](_0x42ca36=>_0x42ca36['model']==_0x3f3518);return _0x18bd9f+'\x20('+(_0x46a413?_0xfa81fe(_0x46a413['title'])['toLowerCase']():_0x3f3518)+')';}return _0x18bd9f+'\x20('+_0x3f3518+')';}class TrackChangesGeneralHtmlSupport extends _0x203e6b{['afterInit'](){const _0x2a8cb3=this['editor'];if(!_0x2a8cb3['plugins']['has']('GeneralHtmlSupport')||!_0x2a8cb3['plugins']['has']('DataSchema'))return;const _0x45a30a=_0x2a8cb3['plugins']['get']('TrackChangesEditing'),_0x14b75d=_0x2a8cb3['plugins']['get']('GeneralHtmlSupport'),_0x317d5b=_0x2a8cb3['plugins']['get']('DataSchema'),_0x332a22=_0x2a8cb3['locale'],_0x1ced1e=new Set(['htmlContent']);for(const _0x1f305a of _0x317d5b['getDefinitionsForView'](/.*/,!0x1)){const _0x5d5c0c=_0x1f305a['view'];_0x1ced1e['add'](_0x14b75d['getGhsAttributeNameForElement'](_0x5d5c0c)),_0x1f305a['model']['startsWith']('html')&&_0x45a30a['descriptionFactory']['registerElementLabel'](_0x1f305a['model'],_0x42121a=>Tt(_0x332a22,'ELEMENT_HTML_TAG',[_0x42121a,_0x5d5c0c]));}_0x45a30a['descriptionFactory']['registerAttributeLabel']('htmlContent',Tt(_0x332a22,'FORMAT_RAW_HTML_CONTENT')),_0x45a30a['descriptionFactory']['registerDescriptionCallback'](_0x4baba3=>{if('attribute'!==_0x4baba3['type'])return;const _0x1d686a=_0x4baba3['data'];if(!_0x1d686a||!_0x1ced1e['has'](_0x1d686a['key']))return;if('htmlContent'===_0x1d686a['key'])return{'type':'format','content':Tt(_0x332a22,'*Change\x20%0\x20content*',Tt(_0x332a22,'ELEMENT_RAW_HTML'))};const {setItems:_0x1c927f,removeItems:_0x27b978}=function(_0x3a24d7,_0x4ce8c7,_0x37423c){const _0x75aaee=[],_0x8131b5=[],_0x920514=_0x3a24d7['styles']??{},_0x561ae0=_0x4ce8c7['styles']??{};for(const _0x2ba845 of new Set([...Object['keys'](_0x920514),...Object['keys'](_0x561ae0)]))_0x920514[_0x2ba845]!==_0x561ae0[_0x2ba845]&&(void 0x0===_0x561ae0[_0x2ba845]?_0x8131b5['push'](_0x2ba845):_0x75aaee['push'](_0x2ba845+'\x20('+_0x561ae0[_0x2ba845]+')'));const _0x23df27=Tt(_0x37423c,'FORMAT_HTML_CLASS'),_0x54d292=new Set(_0x3a24d7['classes']??[]),_0x49beb0=new Set(_0x4ce8c7['classes']??[]),_0x346d41=[..._0x49beb0]['some'](_0x554b90=>!_0x54d292['has'](_0x554b90)),_0x44b278=[..._0x54d292]['some'](_0x41efae=>!_0x49beb0['has'](_0x41efae));_0x346d41&&_0x75aaee['push'](_0x23df27),_0x44b278&&_0x8131b5['push'](_0x23df27);const _0x1ff27e=Tt(_0x37423c,'FORMAT_HTML_ATTRIBUTE'),_0x1c03db=_0x3a24d7['attributes']??{},_0xae58e1=_0x4ce8c7['attributes']??{};let _0x57cd16=!0x1,_0x13cce7=!0x1;for(const _0x4dc515 of new Set([...Object['keys'](_0x1c03db),...Object['keys'](_0xae58e1)]))_0x1c03db[_0x4dc515]!==_0xae58e1[_0x4dc515]&&(void 0x0===_0xae58e1[_0x4dc515]?_0x13cce7=!0x0:_0x57cd16=!0x0);return _0x57cd16&&_0x75aaee['push'](_0x1ff27e),_0x13cce7&&_0x8131b5['push'](_0x1ff27e),{'setItems':_0x75aaee,'removeItems':_0x8131b5};}(_0x1d686a['oldValue']??{},_0x1d686a['newValue']??{},_0x332a22);if(!_0x1c927f['length']&&!_0x27b978['length'])return;const _0x488892=[];return _0x1c927f['length']&&_0x488892['push'](Tt(_0x332a22,'*Set\x20format:*\x20%0',_0x1c927f['join'](',\x20'))),_0x27b978['length']&&_0x488892['push'](Tt(_0x332a22,'*Remove\x20format:*\x20%0',_0x27b978['join'](',\x20'))),{'type':'format','content':_0x488892['join']('\x0a')};});}}class TrackChangesHeading extends _0x203e6b{['_headingOptions'];['afterInit'](){const _0x89aecd=this['editor'];if(!_0x89aecd['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x89aecd['config']['get']('heading.options');const _0x192e9d=_0x89aecd['locale'],_0xa42126=_0x89aecd['plugins']['get']('TrackChangesEditing');_0xa42126['enableDefaultAttributesIntegration']('heading');for(const _0x4aa454 of this['_headingOptions'])'paragraph'!=_0x4aa454['model']&&_0xa42126['descriptionFactory']['registerElementLabel'](_0x4aa454['model'],_0x43e589=>{const _0x2aec48=this['_getHeadingLevel'](_0x4aa454['model']);return null!==_0x2aec48?_0x3eedd2(_0x43e589,_0x2aec48):_0x41c1b3(_0x43e589,_0x4aa454['title']);});function _0x3eedd2(_0x4a020c,_0x1e7bf2){return Tt(_0x192e9d,'ELEMENT_HEADING',[_0x4a020c,_0x1e7bf2]);}function _0x41c1b3(_0x548c2b,_0x29d1eb){return Tt(_0x192e9d,'ELEMENT_HEADING_CUSTOM',[_0x548c2b,_0x29d1eb]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31d017=this['editor'],_0x15026b=_0x31d017['locale'];function _0x403678(_0x1ff929,_0x242b8c){return Tt(_0x15026b,'ELEMENT_HEADING_CUSTOM',[_0x1ff929,_0x242b8c]);}_0x31d017['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33a5e9=>{if('formatBlock'!=_0x33a5e9['type'])return;const {data:_0x3696f7}=_0x33a5e9;if(_0x3696f7&&'heading'==_0x3696f7['commandName']){const _0x2e4cae=_0x3696f7['commandParams'][0x0]['value'],_0x25fc31=this['_getHeadingLevel'](_0x2e4cae);if(null!==_0x25fc31)return{'type':'format','content':Tt(_0x15026b,'*Change\x20to:*\x20%0',(_0x5295f0=0x1,_0x11f6ea=_0x25fc31,Tt(_0x15026b,'ELEMENT_HEADING',[_0x5295f0,_0x11f6ea])))};const _0x457992=this['_headingOptions']['find'](_0x540056=>_0x540056['model']===_0x2e4cae)['title'];return{'type':'format','content':Tt(_0x15026b,'*Change\x20to:*\x20%0',_0x403678(0x1,_0x457992))};}var _0x5295f0,_0x11f6ea;});}['_getHeadingLevel'](_0x35f761){const _0x3b2cb7=_0x35f761['match'](/^heading(\d+)/);if(_0x3b2cb7)return _0x3b2cb7[0x1];const _0x379281=this['_headingOptions']?.['find'](_0x3a04c4=>_0x3a04c4['model']==_0x35f761);if(_0x379281&&_0x379281['view']){const _0xd3c8eb=_0x379281['view'],_0xfe1e84=(_0xd3c8eb['name']??_0xd3c8eb)['match'](/^h(\d+)/);if(_0xfe1e84)return _0xfe1e84[0x1];}return null;}}class TrackChangesHighlight extends _0x203e6b{['afterInit'](){const _0x4ec07e=this['editor'];if(!_0x4ec07e['plugins']['has']('HighlightEditing'))return;const _0x592ede=_0x4ec07e['plugins']['get']('TrackChangesEditing'),_0x557e90=_0x4ec07e['locale'];_0x592ede['enableDefaultAttributesIntegration']('highlight'),_0x592ede['descriptionFactory']['registerAttributeLabel']('highlight',Tt(_0x557e90,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x309310=this['editor'],_0x3292ae=_0x309310['locale'];_0x309310['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5da7e3=>{if('formatInline'!=_0x5da7e3['type'])return;const {data:_0x3e4407}=_0x5da7e3;if(_0x3e4407&&'highlight'==_0x3e4407['commandName']){const _0x5d2efd=_0x3292ae['t'],_0x11df5e=_0x3e4407['commandParams'][0x0]['value'];if(_0x11df5e){const _0x386830=_0x309310['config']['get']('highlight.options')['find'](_0x50d8df=>_0x50d8df['model']==_0x11df5e),_0x3d308c=_0x5d2efd(_0x386830['title'])['toLowerCase']();return{'type':'format','content':Tt(_0x3292ae,'*Set\x20highlight:*\x20%0',_0x3d308c),'color':{'value':_0x386830['color'],'title':_0x386830['title']}};}return{'type':'format','content':Tt(_0x3292ae,'*Remove\x20highlight*',Tt(_0x3292ae,'FORMAT_HIGHLIGHT'))};}});}}class TrackChangesHorizontalLine extends _0x203e6b{['afterInit'](){const _0x6c76d3=this['editor'];if(!_0x6c76d3['plugins']['has']('HorizontalLineEditing'))return;_0x6c76d3['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x141ac5=_0x6c76d3['plugins']['get']('TrackChangesEditing'),_0x469ca2=_0x6c76d3['locale'];_0x141ac5['descriptionFactory']['registerElementLabel']('horizontalLine',_0xf2a693=>Tt(_0x469ca2,'ELEMENT_HORIZONTAL_LINE',_0xf2a693));}}class TrackChangesHtmlEmbed extends _0x203e6b{['afterInit'](){const _0x26201e=this['editor'];if(!_0x26201e['plugins']['has']('HtmlEmbed'))return;const _0x5e09c1=_0x26201e['plugins']['get']('TrackChangesEditing'),_0x76ec34=_0x26201e['locale'];_0x5e09c1['descriptionFactory']['registerElementLabel']('rawHtml',_0x5402ca=>Tt(_0x76ec34,'ELEMENT_HTML_EMBED',_0x5402ca)),_0x5e09c1['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5e09c1['descriptionFactory']['registerDescriptionCallback'](_0x3dcd57=>{if('attribute'!=_0x3dcd57['type'])return;const {data:_0x1d973d}=_0x3dcd57;if(_0x1d973d&&'value'==_0x1d973d['key']&&_0x3dcd57['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x287e8d=Tt(_0x76ec34,'ELEMENT_HTML_EMBED');return{'type':'format','content':Tt(_0x76ec34,'*Change\x20%0\x20content*',_0x287e8d)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x295bd3=this['editor'],_0x1844ed=_0x295bd3['locale'];_0x295bd3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x257160=>{if('formatBlock'!=_0x257160['type'])return;const {data:_0xfd7ee9}=_0x257160;if(_0xfd7ee9&&'htmlEmbed'==_0xfd7ee9['commandName']){const _0x42e236=Tt(_0x1844ed,'ELEMENT_HTML_EMBED');return{'type':'format','content':Tt(_0x1844ed,'*Change\x20%0\x20content*',_0x42e236)};}});}}class TrackChangesImage extends _0x203e6b{['afterInit'](){const _0x50e2c0=this['editor'];if(!_0x50e2c0['plugins']['has']('ImageEditing'))return;const _0x27034a=_0x50e2c0['plugins']['get']('TrackChangesEditing'),_0x30b96b=_0x50e2c0['plugins']['get']('ImageUtils'),_0x463e46=_0x50e2c0['locale'];_0x27034a['enableCommand']('insertImage'),_0x27034a['descriptionFactory']['registerElementLabel']('imageBlock',_0x43a08e=>Tt(_0x463e46,'ELEMENT_IMAGE',_0x43a08e)),_0x27034a['descriptionFactory']['registerElementLabel']('imageInline',_0xfe1258=>Tt(_0x463e46,'ELEMENT_INLINE_IMAGE',_0xfe1258)),_0x27034a['descriptionFactory']['registerElementLabel']('caption',()=>Tt(_0x463e46,'ELEMENT_CAPTION')),_0x50e2c0['plugins']['has']('ImageUploadEditing')&&_0x27034a['enableCommand']('uploadImage'),_0x50e2c0['plugins']['has']('ImageBlockEditing')&&_0x50e2c0['plugins']['has']('ImageInlineEditing')&&(_0x27034a['enableCommand']('imageTypeInline',(_0x5da4e5,_0x50b244)=>{const _0x1d3cb7=_0x30b96b['getClosestSelectedImageElement'](_0x50e2c0['model']['document']['selection']);_0x50e2c0['model']['change'](()=>{_0x27034a['markBlockFormat'](_0x1d3cb7,{'commandName':'imageTypeInline','commandParams':[_0x50b244]},[],'convertBlockImageToInline');});}),_0x27034a['enableCommand']('imageTypeBlock',(_0x446b6c,_0xf03ece)=>{_0x50e2c0['model']['change'](_0x38b1e2=>{let _0x3ab7b5=_0x30b96b['getClosestSelectedImageElement'](_0x50e2c0['model']['document']['selection']),_0x331f8f=_0x38b1e2['createRangeOn'](_0x3ab7b5);const _0x26a038=tt['fromPosition'](_0x331f8f['start'],'toPrevious'),_0x34c1bf=tt['fromPosition'](_0x331f8f['end'],'toNext');_0x27034a['forceDefaultExecution'](()=>_0x446b6c(_0xf03ece)),_0x3ab7b5=_0x30b96b['getClosestSelectedImageElement'](_0x50e2c0['model']['document']['selection']),_0x331f8f=_0x38b1e2['createRangeOn'](_0x3ab7b5);const _0xe7b706=_0x38b1e2['createRange'](_0x26a038,_0x34c1bf);_0x26a038['detach'](),_0x34c1bf['detach'](),_0x27034a['markBlockFormat'](_0x3ab7b5,{'commandName':'imageTypeInline','commandParams':[_0xf03ece]},[],'convertInlineImageToBlock'),_0xe7b706['start']['isBefore'](_0x331f8f['start'])&&_0x27034a['markInsertion'](_0x38b1e2['createRange'](_0xe7b706['start'],_0x331f8f['start']),'convertInlineImageToBlock'),_0x331f8f['end']['isBefore'](_0xe7b706['end'])&&_0x27034a['markInsertion'](_0x38b1e2['createRange'](_0x331f8f['end'],_0xe7b706['end']),'convertInlineImageToBlock');});}),_0x27034a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x27034a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x27034a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x27034a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x27034a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x27034a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x465dc7])=>{const _0x1e70f1=_0x27034a['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4829a2=_0x465dc7['start'],_0xa81b7c=_0x465dc7['end'];const _0x2a512f=_0x50e2c0['model']['schema']['getNearestSelectionRange'](_0x4829a2,'backward'),_0x210364=_0x50e2c0['model']['schema']['getNearestSelectionRange'](_0xa81b7c,'forward');_0x2a512f['isCollapsed']&&(_0x4829a2=_0x2a512f['start']),_0x210364['isCollapsed']&&(_0xa81b7c=_0x210364['end']),_0x1e70f1([_0x50e2c0['model']['createRange'](_0x4829a2,_0xa81b7c)]);}),_0x27034a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1ae180),_0x27034a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1ae180)),_0x50e2c0['plugins']['has']('ImageCaptionEditing')&&(_0x27034a['enableCommand']('toggleImageCaption',(_0xca7bf6,_0x5e1731)=>{const _0x287f07=_0x50e2c0['plugins']['get']('ImageCaptionUtils');let _0x224390=_0x30b96b['getClosestSelectedImageElement'](_0x50e2c0['model']['document']['selection']),_0x18e5bd=_0x287f07['getCaptionFromImageModelElement'](_0x224390);_0x50e2c0['model']['change'](()=>{if(_0x18e5bd)return void _0x27034a['markDeletion'](_0x50e2c0['model']['createRangeOn'](_0x18e5bd));const _0x41ef5e=_0x30b96b['isBlockImage'](_0x224390);_0xca7bf6(_0x5e1731),_0x224390=_0x30b96b['getClosestSelectedImageElement'](_0x50e2c0['model']['document']['selection']),_0x18e5bd=_0x287f07['getCaptionFromImageModelElement'](_0x224390),_0x27034a['markInsertion'](_0x50e2c0['model']['createRangeOn'](_0x18e5bd),_0x41ef5e?null:'imageCaption');});}),_0x27034a['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1ae180));const _0x48b07f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2359e3(_0x397055,_0x11c704){const _0x1e1c82=_0x48b07f['findIndex'](({type:_0x528fe2,subType:_0x4d4ac7})=>_0x397055['type']==_0x528fe2&&_0x397055['subType']==_0x4d4ac7),_0x4e5680=_0x48b07f['findIndex'](({type:_0x9b44e5,subType:_0x1a4e13})=>_0x11c704['type']==_0x9b44e5&&_0x11c704['subType']==_0x1a4e13);if(_0x1e1c82<0x0||_0x4e5680<0x0)return!0x1;const _0x2240cd=_0x397055['getFirstRange'](),_0x5d3672=_0x11c704['getFirstRange']();if((0x0==_0x1e1c82||0x1==_0x1e1c82)&&0x2==_0x4e5680&&_0x2240cd['isIntersecting'](_0x5d3672))return!0x0;if(0x2==_0x1e1c82&&0x3==_0x4e5680){const _0x2ad2ef=_0x27034a['_findSuggestions'](_0x2240cd,'insertion')['filter'](({suggestion:_0x336156,meta:_0x4c0017})=>_0x4c0017['isOwn']&&'convertInlineImageToBlock'==_0x336156['subType']);if(_0x2ad2ef['length']>0x1&&_0x5d3672['end']['isEqual'](_0x2240cd['start']))return!0x0;if(0x1==_0x2ad2ef['length']&&(_0x2240cd['start']['isEqual'](_0x5d3672['end'])||_0x2240cd['end']['isEqual'](_0x5d3672['start'])))return!0x0;}if(0x3==_0x1e1c82&&0x3==_0x4e5680&&_0x2240cd['start']['isBefore'](_0x5d3672['start'])){const _0x15292e=_0x2240cd['end']['nodeAfter'],_0x7dd10a=_0x5d3672['start']['nodeBefore'];return _0x30b96b['isBlockImage'](_0x15292e)&&_0x15292e===_0x7dd10a;}return!0x1;}function _0x1ae180(_0xa58387,_0xf22453){return _0x2359e3(_0xa58387,_0xf22453)?[_0xa58387,_0xf22453]:_0x2359e3(_0xf22453,_0xa58387)?[_0xf22453,_0xa58387]:null;}_0x50e2c0['plugins']['has']('ImageResize')&&(_0x27034a['enableDefaultAttributesIntegration']('resizeImage'),_0x27034a['descriptionFactory']['registerAttributeLabel']('resizedWidth',Tt(_0x463e46,'FORMAT_IMAGE_SIZE'))),_0x50e2c0['plugins']['has']('ImageTextAlternativeEditing')&&_0x27034a['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x50e2c0['plugins']['has']('PictureEditing')&&_0x27034a['descriptionFactory']['registerDescriptionCallback'](_0x581f02=>{if('attribute'!=_0x581f02['type'])return;const {data:_0x409c89}=_0x581f02;return _0x409c89&&'sources'==_0x409c89['key']?{'type':'format','content':''}:void 0x0;}),_0x50e2c0['plugins']['has']('ImageSizeAttributes')&&_0x27034a['descriptionFactory']['registerDescriptionCallback'](_0x544409=>{if('attribute'!=_0x544409['type'])return;const {data:_0x3b6d23}=_0x544409;return!_0x3b6d23||'width'!=_0x3b6d23['key']&&'height'!=_0x3b6d23['key']?void 0x0:{'type':'format','content':''};}),_0x27034a['descriptionFactory']['registerDescriptionCallback'](_0x563bb4=>{if(!!_0x48b07f['find'](({type:_0x1dbf38,subType:_0x6fdccf})=>_0x563bb4['type']==_0x1dbf38&&_0x563bb4['subType']==_0x6fdccf))return _0x563bb4['previous']?{}:void 0x0;}),_0x27034a['descriptionFactory']['registerDescriptionCallback'](_0x357223=>{if('insertion'==_0x357223['type']||'deletion'==_0x357223['type']){const _0x480026=_0x357223['getContainedElement']();if(_0x480026&&_0x480026['is']('element','caption'))return{'type':'insertion'==_0x357223['type']?'addObject':'removeObject','element':_0x480026,'quantity':0x1};}}),_0x27034a['descriptionFactory']['registerDescriptionCallback'](_0x17c74e=>'formatBlock'==_0x17c74e['type']&&'convertInlineImageToBlock'==_0x17c74e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x17c74e['type']&&'convertBlockImageToInline'==_0x17c74e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x27034a['descriptionFactory']['registerDescriptionCallback'](_0x480d64=>{if('attribute'!=_0x480d64['type'])return;const {data:_0x238ca8}=_0x480d64;if(!_0x238ca8||'alt'!=_0x238ca8['key'])return;const _0x5d317c=_0x238ca8['newValue'];return _0x5d317c?{'type':'format','content':Tt(_0x463e46,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5d317c+'\x22')}:{'type':'format','content':Tt(_0x463e46,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x161d29=this['editor'],_0x4d7fef=_0x161d29['locale'];_0x161d29['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4680c6=>{if('formatBlock'!=_0x4680c6['type']&&'formatInline'!=_0x4680c6['type'])return;const {data:_0x597b38}=_0x4680c6;if(_0x597b38){if('imageTextAlternative'==_0x597b38['commandName']){const _0x4d19d5=_0x597b38['commandParams'][0x0]['newValue'];return _0x4d19d5?{'type':'format','content':Tt(_0x4d7fef,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4d19d5+'\x22')}:{'type':'format','content':Tt(_0x4d7fef,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x597b38['commandName']){const _0x49a06a=_0x597b38['commandParams'][0x0]['width'];return _0x49a06a?{'type':'format','content':Tt(_0x4d7fef,'*Set\x20image\x20width:*\x20%0',_0x49a06a)}:{'type':'format','content':Tt(_0x4d7fef,'*Reset\x20image\x20width*')};}}});}}class TrackChangesImageReplace extends _0x203e6b{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4bf318=this['editor']['locale'],_0x41b04e=this['editor']['plugins']['get']('TrackChangesEditing');_0x41b04e['enableDefaultAttributesIntegration']('replaceImageSource'),_0x41b04e['descriptionFactory']['registerDescriptionCallback'](_0x1b9f4a=>{if('attribute'!=_0x1b9f4a['type'])return;const {data:_0x436d7b}=_0x1b9f4a;return _0x436d7b&&'src'==_0x436d7b['key']?_0x436d7b['newValue']&&_0x436d7b['oldValue']?{'type':'format','content':Tt(_0x4bf318,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4b4bb9=this['editor']['plugins']['get']('TrackChangesEditing');_0x4b4bb9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4b4bb9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4b4bb9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4b4bb9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x250924=this['editor'],_0x4fd66c=_0x250924['locale'];_0x250924['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e5f46=>{if('formatBlock'!=_0x4e5f46['type']&&'formatInline'!=_0x4e5f46['type'])return;const {data:_0x36bc3a}=_0x4e5f46;if(!_0x36bc3a||'replaceImageSource'!=_0x36bc3a['commandName'])return;return{'type':'format','content':Tt(_0x4fd66c,'*Format:*\x20replace\x20image\x20URL')};});}}class TrackChangesImageStyle extends _0x203e6b{['afterInit'](){const _0xdf6fa8=this['editor'];if(!_0xdf6fa8['plugins']['has']('ImageStyleEditing'))return;const _0x2cf383=_0xdf6fa8['plugins']['get']('TrackChangesEditing'),_0x4fa04c=_0xdf6fa8['plugins']['get']('ImageUtils'),_0xbdf096={};_0x2cf383['enableCommand']('imageStyle',(_0x55d506,_0x5f468a)=>{const _0x1c7050=_0xdf6fa8['plugins']['get']('Users')['me'],_0x5f0ab1=_0xdf6fa8['commands']['get']('imageStyle');let _0x365bf5=_0x4fa04c['getClosestSelectedImageElement'](_0xdf6fa8['model']['document']['selection']),_0x60daed=_0xdf6fa8['model']['createRangeOn'](_0x365bf5),_0x12a991=_0x5f0ab1['value'];if(_0x12a991==_0x5f468a['value'])return;const _0x1f9aa6={'commandName':'imageStyle','commandParams':[_0x5f468a],'formatGroupId':_0x1e5a7d()};_0xdf6fa8['model']['change'](()=>{if(_0x2cf383['getSuggestions']()['filter'](_0x51ea22=>_0x51ea22['isInContent']&&_0x1c7050==_0x51ea22['author']&&('formatBlock'==_0x51ea22['type']||'formatInline'==_0x51ea22['type'])&&('imageStylePreApply'==_0x51ea22['subType']||'imageStylePostApply'==_0x51ea22['subType'])&&_0x51ea22['getFirstRange']()['isEqual'](_0x60daed))['forEach'](_0x2cf773=>_0x2cf383['discardSuggestion'](_0x2cf773['head'])),_0x365bf5=_0x4fa04c['getClosestSelectedImageElement'](_0xdf6fa8['model']['document']['selection']),_0x60daed=_0xdf6fa8['model']['createRangeOn'](_0x365bf5),_0x5f0ab1['refresh'](),_0xdf6fa8['commands']['get']('imageTypeInline')['refresh'](),_0xdf6fa8['commands']['get']('imageTypeBlock')['refresh'](),_0x12a991=_0x5f0ab1['value'],_0x12a991!=_0x5f468a['value'])return _0x4fa04c['isInlineImage'](_0x365bf5)&&_0x5f0ab1['shouldConvertImageType'](_0x5f468a['value'],_0x365bf5)?(_0x55d506({..._0x5f468a,'setImageSizes':!0x1}),_0x365bf5=_0x4fa04c['getClosestSelectedImageElement'](_0xdf6fa8['model']['document']['selection']),void _0x2cf383['markBlockFormat'](_0x365bf5,{..._0x1f9aa6,'commandReversedParams':[{'value':_0x12a991||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4fa04c['isBlockImage'](_0x365bf5)?_0x2cf383['markBlockFormat'](_0x365bf5,_0x1f9aa6,[],'imageStylePostApply'):_0x2cf383['markInlineFormat'](_0x60daed,_0x1f9aa6,'imageStylePostApply'));});});for(const _0x1bb9db of _0xdf6fa8['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xbdf096[_0x1bb9db['name']]=_0x1bb9db['title']['toLowerCase']();_0x2cf383['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2cf383['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2cf383['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2cf383['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3016d9])=>{_0x4fa04c['setImageNaturalSizeAttributes'](_0x3016d9['getContainedElement']());}),_0x2cf383['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x44e120,_0x5b0f06)=>{_0x2cf383['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x44e120,{'commandName':_0x5b0f06['commandName'],'commandParams':_0x5b0f06['commandReversedParams']});}),_0x2cf383['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x26bc82,_0x25078b){if(_0x2f52f2(_0x26bc82,_0x25078b))return[_0x26bc82,_0x25078b];if(_0x2f52f2(_0x25078b,_0x26bc82))return[_0x25078b,_0x26bc82];return null;});const _0x26d8a6=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2f52f2(_0x29ad81,_0x2026ed){const _0x443624=_0x26d8a6['findIndex'](({type:_0x1063d9,subType:_0x1453c8})=>_0x29ad81['type']==_0x1063d9&&_0x29ad81['subType']==_0x1453c8),_0x38e4a4=_0x26d8a6['findIndex'](({type:_0x444a81,subType:_0x4ba8bc})=>_0x2026ed['type']==_0x444a81&&_0x2026ed['subType']==_0x4ba8bc);if(_0x443624<0x0||_0x38e4a4<0x0)return!0x1;const _0x53d8ed=_0x29ad81['getFirstRange'](),_0x324f0b=_0x2026ed['getFirstRange']();if((0x0==_0x443624||0x1==_0x443624)&&0x2==_0x38e4a4&&_0x53d8ed['isIntersecting'](_0x324f0b))return!0x0;if(0x2==_0x443624&&0x3==_0x38e4a4){const _0x16e2b8=_0x2cf383['_findSuggestions'](_0x53d8ed,'insertion')['filter'](({suggestion:_0x4dd234,meta:_0x464c3e})=>_0x464c3e['isOwn']&&'convertInlineImageToBlock'==_0x4dd234['subType']);if(_0x16e2b8['length']>0x1&&_0x324f0b['end']['isEqual'](_0x53d8ed['start']))return!0x0;if(0x1==_0x16e2b8['length']&&(_0x53d8ed['start']['isEqual'](_0x324f0b['end'])||_0x53d8ed['end']['isEqual'](_0x324f0b['start'])))return!0x0;}if(0x3==_0x443624&&0x3==_0x38e4a4&&_0x53d8ed['start']['isBefore'](_0x324f0b['start'])){const _0x354545=_0x53d8ed['end']['nodeAfter'],_0x591f4d=_0x324f0b['start']['nodeBefore'];return _0x4fa04c['isBlockImage'](_0x354545)&&_0x354545===_0x591f4d;}return!0x1;}_0xdf6fa8['model']['document']['registerPostFixer'](()=>{let _0x29037b=!0x1;const _0x2e14e6=Array['from'](_0xdf6fa8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4d933f,data:_0x1db605}of _0x2e14e6){const {group:_0x44fe0f,type:_0x25bcf4,subType:_0x5b7352,id:_0x3f60c4}=_0x4f787f(_0x4d933f);if('suggestion'==_0x44fe0f&&_0x2cf383['hasSuggestion'](_0x3f60c4)){if('formatBlock'==_0x25bcf4&&('imageStylePreApply'==_0x5b7352||'imageStylePostApply'==_0x5b7352)){const _0x241dda=_0x2cf383['getSuggestion'](_0x3f60c4);if(_0x1db605['newRange']){const _0x99a025=_0x241dda['getFirstRange']()['getContainedElement']();if(_0x4fa04c['isBlockImage'](_0x99a025))continue;_0x2cf383['discardSuggestion'](_0x241dda),_0x29037b=!0x0;}}if('insertion'==_0x25bcf4&&'imageCaption'==_0x5b7352&&!_0x1db605['newRange']){const _0x135bcf=_0x2cf383['getSuggestion'](_0x3f60c4);_0x135bcf['next']&&_0x135bcf['next']['isInContent']&&(_0x2cf383['discardSuggestion'](_0x135bcf['next']),_0x29037b=!0x0);}}}return _0x29037b;}),this['_registerLegacyDescription'](_0xbdf096);}['_registerLegacyDescription'](_0xc346e8){const _0xa24256=this['editor'],_0x144101=_0xa24256['locale'];_0xa24256['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2378d8=>{if('formatBlock'!=_0x2378d8['type']&&'formatInline'!=_0x2378d8['type'])return;const {data:_0x483e53}=_0x2378d8;if(!_0x483e53||'imageStyle'!=_0x483e53['commandName'])return;const _0x1c1978=_0x483e53['commandParams'][0x0]['value'];return _0x3038b0('side'===_0x1c1978?Tt(_0x144101,'FORMAT_SIDE_IMAGE'):_0xc346e8[_0x1c1978]||_0x1c1978);function _0x3038b0(_0x59bdd7){return{'type':'format','content':Tt(_0x144101,'*Format:*\x20%0',_0x59bdd7)};}});}}class TrackChangesImportWord extends _0x203e6b{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x547d20){super(_0x547d20),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x43e3f5=this['editor'],_0x38b89b=_0x43e3f5['commands']['get']('importWord'),_0x1dc934=_0x43e3f5['commands']['get']('trackChanges');_0x38b89b&&(_0x38b89b['on']('execute',(_0x36c64f,[,_0x1618c9])=>{this['_trackChangesValueDuringImport']=_0x1dc934['value'],_0x1618c9['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x38b89b,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x38b89b,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1dc934['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x43e3f5['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2c9a3c,_0x114974){const {suggestions:_0x3381c6}=_0x114974,_0x1f2042=this['editor']['commands']['get']('trackChanges'),_0x1ff47a=_0x1f2042['value'];this['_trackChangesValueDuringImport']!==_0x1ff47a&&(_0x1f2042['execute'](),this['_trackChangesExecuted']=!0x0),_0x3381c6&&_0x3381c6['forEach'](({id:_0x16345d,type:_0x5687eb,author:_0x38d77a,created_at:_0x39d697})=>{const _0x58dd36={'id':_0x16345d,'type':_0x5687eb,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x38d77a,'createdAt':_0x39d697?new Date(_0x39d697):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x58dd36);});}}class TrackChangesIndent extends _0x203e6b{['afterInit'](){const _0x599c29=this['editor'],_0x154c6f=_0x599c29['plugins']['get']('TrackChangesEditing');if(_0x599c29['plugins']['has']('IndentEditing')&&(_0x154c6f['enableCommand']('indent'),_0x154c6f['enableCommand']('outdent')),_0x599c29['plugins']['has']('IndentBlock')){for(const _0x3ee22c of['indentBlock','outdentBlock'])_0x154c6f['enableDefaultAttributesIntegration'](_0x3ee22c);if(_0x599c29['plugins']['has']('ListEditing')){for(const _0x1dd878 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x154c6f['enableDefaultAttributesIntegration'](_0x1dd878);}}const _0x68e20d=_0x599c29['locale'];_0x154c6f['descriptionFactory']['registerAttributeLabel']('blockIndent',Tt(_0x68e20d,'FORMAT_INDENT')),_0x154c6f['descriptionFactory']['registerAttributeLabel']('blockIndentList',Tt(_0x68e20d,'FORMAT_INDENT')),_0x154c6f['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Tt(_0x68e20d,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x537493=this['editor'],_0x311db5=_0x537493['locale'],_0x1a5311=_0x537493['plugins']['get']('TrackChangesEditing');_0x1a5311['descriptionFactory']['registerDescriptionCallback'](_0xd8057a=>{if('formatBlock'!=_0xd8057a['type'])return;const {data:_0x3141f9}=_0xd8057a;if(!_0x3141f9)return;if('indentBlock'!=_0x3141f9['commandName']&&'outdentBlock'!=_0x3141f9['commandName'])return;const _0xbe0885=_0xd8057a['getItems']()[0x0],_0x2ee1d0=_0x1a5311['descriptionFactory']['getItemLabel'](_0xbe0885);return'indentBlock'==_0x3141f9['commandName']?{'type':'format','content':Tt(_0x311db5,'*Indent:*\x20%0',_0x2ee1d0)}:'outdentBlock'==_0x3141f9['commandName']?{'type':'format','content':Tt(_0x311db5,'*Outdent:*\x20%0',_0x2ee1d0)}:void 0x0;});}}class TrackChangesInputCommand extends _0x203e6b{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class TrackChangesLink extends _0x203e6b{['afterInit'](){const _0x432c88=this['editor'];if(!_0x432c88['plugins']['has']('LinkEditing'))return;const _0x14749a=_0x432c88['plugins']['get']('TrackChangesEditing'),_0x1b7d62=_0x432c88['commands']['get']('link');_0x14749a['enableDefaultAttributesIntegration']('link'),_0x14749a['enableDefaultAttributesIntegration']('unlink');for(const _0x180db0 of _0x1b7d62['manualDecorators'])_0x14749a['descriptionFactory']['registerAttributeLabel'](_0x180db0['id'],'link\x20('+_0x180db0['label']['toLowerCase']()+')');_0x14749a['descriptionFactory']['registerDescriptionCallback'](_0x165b7b=>{if('attribute'!=_0x165b7b['type'])return;const {data:_0x1ad73e}=_0x165b7b;if(!_0x1ad73e||'linkHref'!=_0x1ad73e['key'])return;const _0x54c58b=_0x1ad73e['newValue'],_0x23da30=_0x432c88['locale'];return{'type':'format','content':null==_0x54c58b?Tt(_0x23da30,'*Remove\x20link*'):Tt(_0x23da30,'*Set\x20link:*\x20%0','\x22'+_0x54c58b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x595e00=this['editor'],_0x3dc036=_0x595e00['locale'];_0x595e00['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24263a=>{if('formatInline'!=_0x24263a['type'])return;const {data:_0x3611ad}=_0x24263a;if(_0x3611ad){if('link'==_0x3611ad['commandName']){const _0x1e3c9a=_0x3611ad['commandParams'][0x0];return{'type':'format','content':Tt(_0x3dc036,'*Set\x20link:*\x20%0','\x22'+_0x1e3c9a+'\x22')};}return'unlink'==_0x3611ad['commandName']?{'type':'format','content':Tt(_0x3dc036,'*Remove\x20link*')}:void 0x0;}});}}class TrackChangesLegacyList extends _0x203e6b{['afterInit'](){const _0x262399=this['editor'],_0x999dcc=_0x262399['locale'];if(!_0x262399['plugins']['has']('LegacyListEditing'))return;const _0x59d47e=_0x262399['plugins']['get']('TrackChangesEditing'),_0x179a20=_0x262399['plugins']['has']('LegacyTodoListEditing');function _0x11b858(_0x56e78b){return()=>{const _0x297026=_0x262399['model']['document']['selection'],_0x27e9c3=_0x262399['commands']['get'](_0x56e78b);if(_0x27e9c3['value'])return void _0x262399['execute']('paragraph',{});const _0x19b2d5=_0x56e78b['slice'](0x0,-0x4),_0x465056=function(_0x343b9f,_0x49a895,_0x466ead){let _0x52400c=Array['from'](_0x343b9f)['filter'](_0x13682e=>function(_0x2d8465,_0xcb3a55){return _0xcb3a55['checkChild'](_0x2d8465['parent'],'listItem')&&!_0xcb3a55['isObject'](_0x2d8465);}(_0x13682e,_0x466ead));_0x52400c=_0x52400c['filter'](_0x17c08f=>!_0x17c08f['is']('element','listItem')||_0x17c08f['getAttribute']('listType')!=_0x49a895);const _0x261a89=new Set();for(const _0x5ee651 of _0x52400c)_0x5ee651['is']('element','listItem')?_0x261a89['add'](St(_0x5ee651)):_0x261a89['add'](_0x5ee651);return Array['from'](_0x261a89);}(_0x297026['getSelectedBlocks'](),_0x19b2d5,_0x262399['model']['schema']);_0x262399['model']['change'](()=>{for(const _0x9e0798 of _0x465056)_0x59d47e['markBlockFormat'](_0x9e0798,{'commandName':_0x56e78b,'commandParams':[{'forceValue':!_0x27e9c3['value']}],'formatGroupId':'blockName'},Rt(_0x9e0798));});};}function _0x452120(_0x118180){return()=>{const _0xe04c50=function(_0x251a86){let _0x12a4dd=Array['from'](_0x251a86);const _0x16f287=_0x12a4dd['findIndex'](_0x4b9229=>'listItem'!=_0x4b9229['name']);return _0x16f287>-0x1&&(_0x12a4dd=_0x12a4dd['slice'](0x0,_0x16f287)),_0x12a4dd;}(_0x262399['model']['document']['selection']['getSelectedBlocks']()),_0x50c4e8=_0x262399['model']['createRange'](_0x262399['model']['createPositionAt'](_0xe04c50[0x0],'before'),_0x262399['model']['createPositionAt'](_0xe04c50[_0xe04c50['length']-0x1],'end'));_0x262399['model']['change'](()=>{_0x59d47e['markBlockFormat'](_0x50c4e8,{'commandName':_0x118180,'commandParams':[],'formatGroupId':'listIndent'},function(_0x54cc7b){const _0x45adf0=new Set();for(const _0x3c9ba1 of _0x54cc7b){let _0xeda2b8=_0x3c9ba1['nextSibling'];for(;_0xeda2b8&&_0xeda2b8['getAttribute']('listIndent')>_0x3c9ba1['getAttribute']('listIndent');)_0x45adf0['add'](_0xeda2b8),_0xeda2b8=_0xeda2b8['nextSibling'];}return Array['from'](_0x45adf0);}(_0xe04c50));});};}_0x59d47e['enableCommand']('numberedList',_0x11b858('numberedList')),_0x59d47e['enableCommand']('bulletedList',_0x11b858('bulletedList')),_0x179a20&&_0x59d47e['enableCommand']('todoList',_0x11b858('todoList')),_0x59d47e['enableCommand']('indentList',_0x452120('indentList')),_0x59d47e['enableCommand']('outdentList',_0x452120('outdentList')),_0x179a20&&_0x59d47e['enableCommand']('checkTodoList',()=>{const _0x576e00=_0x262399['commands']['get']('checkTodoList'),_0xcf057b=Array['from'](_0x576e00['_selectedElements']);_0xcf057b['filter'](_0x3dad97=>_0x3dad97['getAttribute']('todoListChecked')!=_0x576e00['value']),_0x262399['model']['change'](()=>{for(const _0x4febf0 of _0xcf057b)_0x59d47e['markBlockFormat'](_0x4febf0,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x576e00['value']}]});});}),_0x59d47e['descriptionFactory']['registerElementLabel']('listItem',_0xe67996=>Tt(_0x999dcc,'ELEMENT_LIST_ITEM',_0xe67996)),_0x59d47e['descriptionFactory']['registerDescriptionCallback'](_0x558766=>{if('formatBlock'!=_0x558766['type']&&'formatInline'!=_0x558766['type'])return;const {data:_0x1667b9}=_0x558766;if(_0x1667b9){if('numberedList'==_0x1667b9['commandName']||'bulletedList'==_0x1667b9['commandName']||'todoList'==_0x1667b9['commandName'])switch(_0x1667b9['commandName']['replace']('List','')){case'bulleted':return _0x48b673(Tt(_0x999dcc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x48b673(Tt(_0x999dcc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x48b673(Tt(_0x999dcc,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1667b9['commandName'])return{'type':'format','content':Tt(_0x999dcc,'*Indent:*\x20%0',Tt(_0x999dcc,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1667b9['commandName'])return{'type':'format','content':Tt(_0x999dcc,'*Outdent:*\x20%0',Tt(_0x999dcc,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1667b9['commandName'])return _0x1667b9['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x999dcc,'*Check\x20item*')}:{'type':'format','content':Tt(_0x999dcc,'*Uncheck\x20item*')};}function _0x48b673(_0x1e7591){return{'type':'format','content':Tt(_0x999dcc,'*Change\x20to:*\x20%0',_0x1e7591)};}});}}function St(_0x2c6e67){const _0x2f8f4f=_0x2c6e67['getAttribute']('listIndent');if(0x0==_0x2f8f4f)return _0x2c6e67;let _0xd04f16=_0x2c6e67;for(;_0x2c6e67['previousSibling']&&_0x2c6e67['previousSibling']['is']('element','listItem');){const _0x329613=_0x2c6e67['previousSibling']['getAttribute']('listIndent');if(_0x329613==_0x2f8f4f)_0xd04f16=_0x2c6e67['previousSibling'];else{if(_0x329613<_0x2f8f4f)break;}_0x2c6e67=_0x2c6e67['previousSibling'];}return _0xd04f16;}function Rt(_0x134241){const _0x363503=[];if(_0x134241['is']('element','listItem')&&_0x134241['getAttribute']('listIndent')>0x0){let _0x3a1ec8=_0x134241['nextSibling'];for(;_0x3a1ec8&&'listItem'==_0x3a1ec8['name']&&_0x3a1ec8['getAttribute']('listIndent')==_0x134241['getAttribute']('listIndent');)_0x363503['push'](_0x3a1ec8),_0x3a1ec8=_0x3a1ec8['nextSibling'];}return _0x363503;}class TrackChangesLegacyListProperties extends _0x203e6b{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4ed53f=this['editor']['config']['get']('list.properties'),_0x324613=this['editor']['plugins']['get']('TrackChangesEditing');_0x4ed53f['styles']&&_0x324613['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4ed53f['reversed']&&_0x324613['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4ed53f['startIndex']&&_0x324613['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x324613['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2876ca,_0x2d7d7f={}){const _0x17bf48=this['editor']['plugins']['get']('TrackChangesEditing'),_0x12e442=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x17bf48['markMultiRangeBlockFormat'](_0x12e442,{'commandName':'listStyle','commandParams':[{'type':_0x2d7d7f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xb89501,_0x2c3a53={}){const _0x430602=this['editor']['plugins']['get']('TrackChangesEditing'),_0x436a5f=this['_getSuggestionBlocks'](_0x109978=>_0x109978['is']('element','listItem')&&'numbered'===_0x109978['getAttribute']('listType'));if(_0x436a5f['length']<0x1)return;const _0x203913=_0x436a5f['map'](_0x36cbb3=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x36cbb3,'before'),this['editor']['model']['createPositionAt'](_0x36cbb3,0x0)));this['editor']['model']['change'](()=>{_0x430602['markMultiRangeBlockFormat'](_0x203913,{'commandName':'listReversed','commandParams':[{'reversed':_0x2c3a53['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1ee92b,_0x49b367={}){const _0x240ecf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x567497=this['_getSuggestionBlocks'](_0x4e6a1f=>_0x4e6a1f['is']('element','listItem')&&'numbered'===_0x4e6a1f['getAttribute']('listType'));if(_0x567497['length']<0x1)return;const _0x4a84ff=_0x567497['map'](_0x4b931f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4b931f,'before'),this['editor']['model']['createPositionAt'](_0x4b931f,0x0)));this['editor']['model']['change'](()=>{_0x240ecf['markMultiRangeBlockFormat'](_0x4a84ff,{'commandName':'listStart','commandParams':[{'startIndex':_0x49b367['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x26b795){if('formatBlock'!=_0x26b795['type']&&'formatInline'!=_0x26b795['type'])return;const _0x4fbcf0=this['editor']['locale'],{data:_0x22554f}=_0x26b795;if(!_0x22554f)return;let _0x404d43,_0x43e955;switch(_0x22554f['commandName']){case'listStyle':_0x404d43='*Change\x20to:*\x20%0',_0x43e955={'type':'format','content':Tt(_0x4fbcf0,_0x404d43,Tt(_0x4fbcf0,this['_getTranslationKeyForListStyle'](_0x22554f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x404d43=_0x22554f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x43e955={'type':'format','content':Tt(_0x4fbcf0,_0x404d43)};break;case'listStart':_0x404d43='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x43e955={'type':'format','content':Tt(_0x4fbcf0,_0x404d43,_0x22554f['commandParams'][0x0]['startIndex'])};}return _0x43e955;}['_getSuggestionBlocksForListStyle'](){const _0x4503bd=this['editor']['plugins']['get']('LegacyListUtils');let _0x310a3a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x310a3a[0x0]?.['is']('element','listItem')&&_0x310a3a['unshift'](..._0x4503bd['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x310a3a[_0x310a3a['length']-0x1]?.['is']('element','listItem')&&_0x310a3a['push'](..._0x4503bd['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x310a3a=[...new Set(_0x310a3a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x310a3a=_0x310a3a['filter'](_0x2b0629=>_0x2b0629['is']('element','listItem'))),_0x310a3a;}['_getSuggestionBlocks'](_0x323579){const _0x4ef969=this['editor']['plugins']['get']('LegacyListUtils');let _0x11d6ee=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x323579)['map'](_0xefa162=>{const _0x1f2d30=this['editor']['model']['createPositionAt'](_0xefa162,0x0);return[..._0x4ef969['getSiblingNodes'](_0x1f2d30,'backward'),..._0x4ef969['getSiblingNodes'](_0x1f2d30,'forward')];})['flat']();return _0x11d6ee=[...new Set(_0x11d6ee)],_0x11d6ee;}['_getTranslationKeyForListStyle'](_0x532b4a){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x532b4a)||'default')['toUpperCase']()+'_LIST_'+_0x532b4a['toUpperCase']()['replace'](/-/g,'_');}}class TrackChangesMediaEmbed extends _0x203e6b{['afterInit'](){const _0x3c61a9=this['editor'];if(!_0x3c61a9['plugins']['has']('MediaEmbedEditing'))return;const _0x2cc47d=_0x3c61a9['plugins']['get']('TrackChangesEditing'),_0x451eb7=_0x3c61a9['locale'];_0x2cc47d['enableCommand']('mediaEmbed'),_0x2cc47d['descriptionFactory']['registerElementLabel']('media',_0x2aa7ca=>Tt(_0x451eb7,'ELEMENT_MEDIA',_0x2aa7ca)),_0x3c61a9['plugins']['has']('MediaEmbedResizeEditing')&&(_0x2cc47d['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x2cc47d['descriptionFactory']['registerDescriptionCallback'](_0x35c0cd=>{if('attribute'!=_0x35c0cd['type'])return;const {data:_0x1e3955}=_0x35c0cd;if(!_0x1e3955||'resizedWidth'!=_0x1e3955['key'])return;const _0x234e8b=_0x35c0cd['getContainedElement']();if(!_0x234e8b||!_0x234e8b['is']('element','media'))return;const _0x7c50ac=Tt(_0x451eb7,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Tt(_0x451eb7,'*Set\x20format:*\x20%0',_0x7c50ac)};}));}}class TrackChangesMediaEmbedStyle extends _0x203e6b{['afterInit'](){const _0x3c8691=this['editor'];if(!_0x3c8691['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x375e45=_0x3c8691['plugins']['get']('TrackChangesEditing'),_0x36e1a6=_0x3c8691['locale'],_0x171c3f=_0x3c8691['plugins']['get']('MediaEmbedStyleEditing'),_0xe82eb8={};for(const _0x57bf09 of _0x171c3f['normalizedStyles'])_0xe82eb8[_0x57bf09['name']]=_0x57bf09['title']['toLowerCase']();const _0x50b292=_0x171c3f['normalizedStyles']['find'](_0x139c2e=>_0x139c2e['isDefault'])?.['name'];_0x375e45['enableCommand']('mediaStyle',(_0x590692,_0x4e1f71)=>{const _0x1f9174=_0x3c8691['plugins']['get']('Users')['me'],_0x12c48d=_0x3c8691['commands']['get']('mediaStyle'),_0x73a666=function(_0x3dacd1){const _0x38ed6f=_0x3dacd1['model']['document']['selection']['getSelectedElement']();if(_0x38ed6f&&_0x38ed6f['is']('element','media'))return _0x38ed6f;return null;}(_0x3c8691);if(!_0x73a666)return;const _0x2f69f9=_0x3c8691['model']['createRangeOn'](_0x73a666);let _0x543eac=_0x12c48d['value'];if(_0x543eac==_0x4e1f71['value'])return;const _0x1d4393={'commandName':'mediaStyle','commandParams':[_0x4e1f71],'formatGroupId':_0x1e5a7d()};_0x3c8691['model']['change'](()=>{_0x375e45['getSuggestions']()['filter'](_0x4f5c89=>_0x4f5c89['isInContent']&&_0x1f9174==_0x4f5c89['author']&&'formatBlock'==_0x4f5c89['type']&&'mediaStylePostApply'==_0x4f5c89['subType']&&_0x4f5c89['getFirstRange']()['isEqual'](_0x2f69f9))['forEach'](_0x4ab496=>_0x375e45['discardSuggestion'](_0x4ab496['head'])),_0x12c48d['refresh'](),_0x543eac=_0x12c48d['value'],_0x543eac!=_0x4e1f71['value']&&_0x375e45['markBlockFormat'](_0x73a666,{..._0x1d4393,'commandReversedParams':[{'value':'string'==typeof _0x543eac?_0x543eac:null}]},[],'mediaStylePostApply');});}),_0x375e45['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x375e45['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0xb27c,_0x5b6899)=>{_0x375e45['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xb27c,{'commandName':_0x5b6899['commandName'],'commandParams':_0x5b6899['commandReversedParams']});}),_0x375e45['descriptionFactory']['registerDescriptionCallback'](_0x201a0b=>{if('formatBlock'!=_0x201a0b['type'])return;const {data:_0x141619}=_0x201a0b;if(!_0x141619||'mediaStyle'!=_0x141619['commandName'])return;const _0x2ade39=_0x141619['commandParams'][0x0]['value']||_0x50b292;if(!_0x2ade39)return;const _0x4917cb=_0xe82eb8[_0x2ade39]||_0x2ade39;return{'type':'format','content':Tt(_0x36e1a6,'*Format:*\x20%0',_0x4917cb)};});}}class TrackChangesMention extends _0x203e6b{['afterInit'](){const _0x5020a7=this['editor'];_0x5020a7['plugins']['has']('MentionEditing')&&_0x5020a7['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class TrackChangesMergeFields extends _0x203e6b{['afterInit'](){const _0x206588=this['editor'];if(!_0x206588['plugins']['has']('MergeFieldsEditing'))return;const _0x2ae3ff=_0x206588['plugins']['get']('TrackChangesEditing'),_0xfcb4db=_0x206588['locale'];_0x2ae3ff['enableCommand']('insertMergeField'),_0x2ae3ff['enableCommand']('insertMergeFieldBlock'),_0x2ae3ff['enableCommand']('insertMergeFieldImage'),_0x2ae3ff['descriptionFactory']['registerElementLabel']('mergeField',_0x1c64c7=>Tt(_0xfcb4db,'ELEMENT_MERGE_FIELD',_0x1c64c7)),_0x2ae3ff['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xe86bec=>Tt(_0xfcb4db,'ELEMENT_MERGE_FIELD',_0xe86bec)),_0x2ae3ff['descriptionFactory']['registerDescriptionCallback'](_0x7c69ac=>{if('insertion'!=_0x7c69ac['type']&&'deletion'!=_0x7c69ac['type'])return;const _0x3cd862=_0x7c69ac['getContainedElement']();if(null==_0x3cd862)return;const _0x39bcd1=_0x206588['plugins']['get']('MergeFieldsEditing');let _0x4db75d;switch(_0x39bcd1['getMergeFieldType'](_0x3cd862)){case null:return;case'image':{const _0x44e435=_0x39bcd1['unwrapAffixes'](_0x3cd862['getAttribute']('src'));_0x4db75d=_0x39bcd1['getLabel'](_0x44e435)||_0x44e435;break;}default:{const _0x10d1b0=_0x3cd862['getAttribute']('id');_0x4db75d=_0x39bcd1['getLabel'](_0x10d1b0)||_0x10d1b0;break;}}return'insertion'==_0x7c69ac['type']?{'type':'insertion','content':Tt(_0xfcb4db,'*Insert:*\x20%0','\x22'+_0x4db75d+'\x22\x20'+Tt(_0xfcb4db,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Tt(_0xfcb4db,'*Remove:*\x20%0','\x22'+_0x4db75d+'\x22\x20'+Tt(_0xfcb4db,'ELEMENT_MERGE_FIELD'))};});}}class TrackChangesMultiLevelList extends _0x203e6b{['afterInit'](){const _0x4d0ec5=this['editor'],_0x89b0e1=_0x4d0ec5['plugins']['get']('TrackChangesEditing');_0x4d0ec5['plugins']['has']('MultiLevelList')&&(_0x89b0e1['enableDefaultAttributesIntegration']('multiLevelList'),_0x89b0e1['descriptionFactory']['registerDescriptionCallback'](_0x2ba504=>this['handleDescriptions'](_0x2ba504)));}['handleDescriptions'](_0x36bc44){const _0x47f715=this['editor']['locale'],{data:_0x315270}=_0x36bc44,_0x2500cf={'type':'format','content':''};if(_0x315270&&'listMarkerStyle'==_0x315270['key']){if(!_0x315270['oldValue'])return{'type':'format','content':Tt(_0x47f715,'*Set\x20format:*\x20%0',Tt(_0x47f715,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x315270['newValue']+')'};if(!_0x315270['newValue']){let _0xc858e5=_0x36bc44['head'];for(;_0xc858e5;){if(_0xc858e5['data']&&'listType'==_0xc858e5['data']['key']&&_0xc858e5['data']['newValue'])return _0x2500cf;_0xc858e5=_0xc858e5['next'];}return{'type':'format','content':Tt(_0x47f715,'*Remove\x20format:*\x20%0',Tt(_0x47f715,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x315270['oldValue']+')'};}}}}class TrackChangesPageBreak extends _0x203e6b{['afterInit'](){const _0x285b64=this['editor'];if(!_0x285b64['plugins']['has']('PageBreakEditing'))return;_0x285b64['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2efa7b=_0x285b64['plugins']['get']('TrackChangesEditing'),_0x311b20=_0x285b64['locale'];_0x2efa7b['descriptionFactory']['registerElementLabel']('pageBreak',_0x90257c=>Tt(_0x311b20,'ELEMENT_PAGE_BREAK',_0x90257c));}}class TrackChangesParagraph extends _0x203e6b{['afterInit'](){const _0x56a366=this['editor'];if(!_0x56a366['plugins']['has']('Paragraph'))return;const _0x110aae=_0x56a366['locale'],_0x6919e=_0x56a366['plugins']['get']('TrackChangesEditing');_0x6919e['descriptionFactory']['registerElementLabel']('paragraph',_0x3c5d0e=>Tt(_0x110aae,'ELEMENT_PARAGRAPH',_0x3c5d0e)),_0x6919e['enableDefaultAttributesIntegration']('paragraph'),_0x6919e['enableCommand']('insertParagraph');const _0x273eda=_0x6919e['descriptionFactory'];_0x273eda['registerDescriptionCallback'](_0x186bcf=>{if('insertion'!==_0x186bcf['type'])return;const {start:_0x2ef58b,end:_0x56d7a8}=_0x186bcf['getFirstRange']();if(!_0x2ef58b['isTouching'](_0x56d7a8)||!_0x2ef58b['nodeAfter'])return;const _0x45f312=_0x56a366['model']['schema'],_0x3963c2=_0x2ef58b['nodeAfter'];return _0x45f312['isBlock'](_0x3963c2)&&!_0x45f312['isLimit'](_0x3963c2)&&_0x45f312['checkChild'](_0x3963c2,'$text')?{'type':'insertion','content':Tt(_0x110aae,'*Insert:*\x20%0',_0x273eda['getItemLabel'](_0x3963c2,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f23d7=this['editor'],_0x240abb=_0x1f23d7['locale'];_0x1f23d7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd2f756=>{if('formatBlock'!=_0xd2f756['type'])return;const {data:_0x20aed4}=_0xd2f756;return _0x20aed4&&'paragraph'==_0x20aed4['commandName']?{'type':'format','content':Tt(_0x240abb,'*Change\x20to:*\x20%0',Tt(_0x240abb,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class TrackChangesReplaceSourceCommand extends _0x203e6b{['afterInit'](){const _0x3825e9=this['editor'];_0x3825e9['commands']['get']('replaceSource')&&_0x3825e9['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class TrackChangesRemoveFormat extends _0x203e6b{['afterInit'](){const _0xb21489=this['editor'];if(!_0xb21489['plugins']['has']('RemoveFormatEditing'))return;_0xb21489['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53ef9e=this['editor'];_0x53ef9e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x75214e=>{if('formatBlock'!=_0x75214e['type']&&'formatInline'!=_0x75214e['type'])return;const {data:_0x903554}=_0x75214e;return _0x903554&&'removeFormat'==_0x903554['commandName']?{'type':'format','content':Tt(_0x53ef9e['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class TrackChangesRestrictedEditingMode extends _0x203e6b{['afterInit'](){const _0x26b60c=this['editor'];if(!_0x26b60c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x26573c=_0x26b60c['plugins']['get']('TrackChangesEditing');_0x26573c['enableCommand']('goToPreviousRestrictedEditingException'),_0x26573c['enableCommand']('goToNextRestrictedEditingException');const _0x11559a=_0x26b60c['plugins']['get']('RestrictedEditingModeEditing');_0x11559a['enableCommand']('trackChanges'),_0x11559a['enableCommand']('acceptSuggestion'),_0x11559a['enableCommand']('discardSuggestion'),_0x11559a['enableCommand']('acceptAllSuggestions'),_0x11559a['enableCommand']('discardAllSuggestions'),_0x11559a['enableCommand']('acceptSelectedSuggestions'),_0x11559a['enableCommand']('discardSelectedSuggestions');}}class TrackChangesShiftEnterCommand extends _0x203e6b{['afterInit'](){const _0x7fa5f3=this['editor'];if(!_0x7fa5f3['plugins']['has']('ShiftEnter'))return;const _0x461649=_0x7fa5f3['plugins']['get']('TrackChangesEditing');_0x461649['enableCommand']('shiftEnter'),_0x461649['descriptionFactory']['registerElementLabel']('softBreak',_0x596367=>Tt(_0x7fa5f3['locale'],'ELEMENT_LINE_BREAK',_0x596367));}}function yt(_0x5a6a7a,_0x9a0014,_0x5d553e){const _0x46da88=[];for(const _0x4f9085 of _0x9a0014['getItems']())_0x4f9085['hasAttribute'](_0x5a6a7a)&&_0x46da88['push'](_0x5d553e['createRangeOn'](_0x4f9085));return _0x46da88;}class TrackChangesStandardEditingMode extends _0x203e6b{['afterInit'](){const _0x1eec13=this['editor'],_0x5379f1=_0x1eec13['plugins']['get']('TrackChangesEditing');_0x1eec13['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x5379f1['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x39138d=this['editor'],_0x5c7245=_0x39138d['model'],_0xbbe919=_0x39138d['locale'],_0x40a1da=_0x39138d['plugins']['get']('TrackChangesEditing'),_0x44259e='restrictedEditingException',_0x11f258=_0x39138d['commands']['get'](_0x44259e);_0x40a1da['enableCommand'](_0x44259e,(_0x34a927,_0x254755={})=>{const _0x5183a8=_0x5c7245['document']['selection'];if(_0x5183a8['isCollapsed'])return void _0x34a927(_0x254755);const _0x39febc=void 0x0!==_0x254755['forceValue']?_0x254755['forceValue']:!_0x11f258['value'];_0x5c7245['change'](()=>{const _0x2e23d9=Array['from'](_0x5183a8['getRanges']());for(const _0x508667 of _0x2e23d9){const _0x5b34d1=_0x39febc?[_0x508667]:yt(_0x44259e,_0x508667,_0x5c7245);for(const _0x133ad4 of _0x5b34d1)_0x40a1da['markInlineFormat'](_0x133ad4,{'commandName':_0x44259e,'commandParams':[{'forceValue':_0x39febc}]});}});}),_0x40a1da['descriptionFactory']['registerDescriptionCallback'](_0x4f294e=>{if('formatBlock'!=_0x4f294e['type']&&'formatInline'!=_0x4f294e['type'])return;const {data:_0x467ae7}=_0x4f294e;return _0x467ae7&&_0x467ae7['commandName']==_0x44259e?_0x467ae7['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0xbbe919,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Tt(_0xbbe919,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x1dc71f=this['editor'],_0x4dad88=_0x1dc71f['locale'],_0x26d3f9=_0x1dc71f['plugins']['get']('TrackChangesEditing'),_0x3c7aa8='restrictedEditingExceptionBlock',_0x44cd99=this['editor']['commands']['get'](_0x3c7aa8);_0x26d3f9['enableCommand'](_0x3c7aa8,(_0x580fbb,_0x3feda6={})=>{const _0x8a375e=this['editor']['model']['document']['selection'],_0xe64c54=_0x3feda6&&void 0x0!==_0x3feda6['forceValue']?_0x3feda6['forceValue']:!_0x44cd99['value'];let _0x53c6a1=[];if(_0xe64c54){const _0x35b012=Array['from'](_0x8a375e['getSelectedBlocks']())['filter'](_0x13eec9=>function(_0x1804fb){return!!_0x1804fb['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x13eec9)||function(_0x5d4d0d,_0xe04732){const _0x335e9e=_0xe04732['createContext'](_0x5d4d0d['parent']);if(!_0xe04732['checkChild'](_0x335e9e,'restrictedEditingException'))return!0x1;if(!_0xe04732['checkChild'](_0x335e9e['push']('restrictedEditingException'),_0x5d4d0d))return!0x1;return!0x0;}(_0x13eec9,this['editor']['model']['schema']));_0x53c6a1=ft(_0x35b012,_0x1dc71f['model']);}else{const _0x4b6c4d=Array['from'](_0x8a375e['getSelectedBlocks']())['map'](_0x51d8ad=>function(_0x51712d){let _0x57e238=_0x51712d;for(;_0x57e238['parent'];){if('restrictedEditingException'==_0x57e238['parent']['name'])return _0x57e238;_0x57e238=_0x57e238['parent'];}return null;}(_0x51d8ad))['filter'](_0x34834e=>!!_0x34834e);_0x53c6a1=ft(_0x4b6c4d,_0x1dc71f['model']);}_0x1dc71f['model']['change'](()=>{for(const _0x2d2e13 of _0x53c6a1)_0x26d3f9['markBlockFormat'](_0x2d2e13,{'commandName':_0x3c7aa8,'commandParams':[{'forceValue':_0xe64c54}]});});}),_0x26d3f9['descriptionFactory']['registerDescriptionCallback'](_0x17780b=>{const {data:_0x3db418}=_0x17780b;if(_0x3db418&&_0x3db418['commandName']==_0x3c7aa8)return _0x3db418['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x4dad88,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Tt(_0x4dad88,'FORMAT_RESTRICTED_DISABLED')};});}}class TrackChangesStylesDropdown extends _0x203e6b{['afterInit'](){const _0x3e1961=this['editor'];if(!_0x3e1961['plugins']['has']('Style')||!_0x3e1961['plugins']['has']('DataSchema'))return;_0x3e1961['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd57e79=this['editor'],_0x29061c=_0xd57e79['locale'];_0xd57e79['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x344dff=>{if('formatBlock'!=_0x344dff['type']&&'formatInline'!=_0x344dff['type'])return;const {data:_0x1e30e3}=_0x344dff;return _0x1e30e3&&'style'===_0x1e30e3['commandName']?_0x1e30e3['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x29061c,'*Set\x20format:*\x20%0',_0x1e30e3['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Tt(_0x29061c,'*Remove\x20format:*\x20%0',_0x1e30e3['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class TrackChangesTable extends _0x203e6b{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x560cea){super(_0x560cea),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x490285=this['editor'],_0x266455=_0x490285['model']['document']['selection'];if(!_0x490285['plugins']['has']('TableEditing'))return;const _0x1adc0a=_0x490285['locale'],_0x2095da=_0x490285['plugins']['get']('TrackChangesEditing'),_0x6523b7=_0x490285['plugins']['get']('TableUtils');_0x2095da['descriptionFactory']['registerElementLabel']('table',_0x358caf=>Tt(_0x1adc0a,'ELEMENT_TABLE',_0x358caf)),this['_setupColumnsRowsFixing'](),_0x2095da['enableCommand']('insertTable'),_0x2095da['enableCommand']('selectTableRow'),_0x2095da['enableCommand']('selectTableColumn');for(const _0x242435 of['insertTableRowAbove','insertTableRowBelow']){const _0x14aecf=_0x490285['commands']['get'](_0x242435);_0x2095da['enableCommand'](_0x242435,_0x482fd1=>{_0x490285['model']['change'](_0x4f4f92=>{_0x482fd1();const _0x3a324c='above'===_0x14aecf['order'],_0x5e06d4=_0x6523b7['getSelectionAffectedTableCells'](_0x266455),_0x21eeac=_0x6523b7['getRowIndexes'](_0x5e06d4),_0x3e3c7e=_0x3a324c?_0x21eeac['first']-0x1:_0x21eeac['last']+0x1,_0x17629c=_0x5e06d4[0x0]['findAncestor']('table'),_0x2f7b89=_0x6523b7['createTableWalker'](_0x17629c,{'startRow':_0x3e3c7e,'endRow':_0x3e3c7e}),_0x41f8dc=Array['from'](_0x2f7b89)['map'](_0x4e01c6=>_0x4f4f92['createRangeOn'](_0x4e01c6['cell']));_0x2095da['markMultiRangeInsertion'](_0x41f8dc,'tableRow');});});}for(const _0x418d97 of['insertTableColumnLeft','insertTableColumnRight']){const _0x36801c=_0x490285['commands']['get'](_0x418d97);_0x2095da['enableCommand'](_0x418d97,_0x25a0e1=>{_0x490285['model']['change'](_0x2cb551=>{_0x25a0e1();const _0x2df334='left'===_0x36801c['order'],_0x153a43=_0x6523b7['getSelectionAffectedTableCells'](_0x266455),_0x63a4b7=_0x6523b7['getColumnIndexes'](_0x153a43),_0x566419=_0x2df334?_0x63a4b7['first']-0x1:_0x63a4b7['last']+0x1,_0x45e1ff=_0x153a43[0x0]['findAncestor']('table'),_0x48f431=_0x6523b7['createTableWalker'](_0x45e1ff,{'startRow':0x0,'column':_0x566419,'includeAllSlots':!0x1}),_0x2f96dd=Array['from'](_0x48f431)['map'](_0x3a9ddf=>_0x2cb551['createRangeOn'](_0x3a9ddf['cell']));_0x2095da['markMultiRangeInsertion'](_0x2f96dd,'tableColumn');});});}for(const _0x57f6f4 of['removeTableRow','removeTableColumn']){const _0x4e0ba8=_0x57f6f4['substr'](0xb),_0x33d929=_0x4e0ba8['toLowerCase'](),_0x117323=_0x33d929['substr'](0x0,0x3)+'span',_0x38a45f='table'+_0x4e0ba8,_0x548583='min'+_0x4e0ba8,_0x2aa9c7='max'+_0x4e0ba8;_0x2095da['enableCommand'](_0x57f6f4,()=>{_0x490285['model']['change'](_0x5112b5=>{const _0x197e00=_0x6523b7['getSelectionAffectedTableCells'](_0x266455),_0x5a9841=_0x197e00[0x0]['findAncestor']('table');let _0x308ab8;if('removeTableRow'==_0x57f6f4){const _0x5f3f1d=_0x6523b7['getRowIndexes'](_0x197e00);_0x308ab8={'startRow':_0x5f3f1d['first'],'endRow':_0x5f3f1d['last'],'includeAllSlots':!0x0};}else{const _0x1c340c=_0x6523b7['getColumnIndexes'](_0x197e00);_0x308ab8={'startColumn':_0x1c340c['first'],'endColumn':_0x1c340c['last'],'includeAllSlots':!0x0};}const _0x359d79=_0x6523b7['createTableWalker'](_0x5a9841,_0x308ab8),_0x5ad6d5=Array['from'](_0x359d79)['map'](({cell:_0x24cfec})=>_0x24cfec),_0x275cda=Nt(_0x5ad6d5['filter'](_0x504977=>_0x504977['hasAttribute'](_0x117323))),_0x5822aa=Nt(_0x5ad6d5['filter'](_0x14420f=>!_0x14420f['hasAttribute'](_0x117323)))['map'](_0x18f3c0=>_0x5112b5['createRangeOn'](_0x18f3c0)),_0x212dd5=_0x2095da['markMultiRangeDeletion'](_0x5822aa,_0x38a45f);if(_0x212dd5&&('tableRow'==_0x212dd5['subType']||'tableColumn'==_0x212dd5['subType'])){const _0xa66193=this['_getSuggestionCoords'](_0x212dd5);for(const _0x437dd6 of _0x275cda){const _0x27ab23=_0x5112b5['createRangeOn'](_0x437dd6),_0x2d8e36=_0x6523b7['getCellLocation'](_0x437dd6),_0xc353ae=_0x437dd6['getAttribute'](_0x117323)-0x1,_0x38c668=_0xa66193[_0x548583],_0x231bc6=_0xa66193[_0x2aa9c7];_0x38c668<=_0x2d8e36[_0x33d929]&&_0x2d8e36[_0x33d929]+_0xc353ae<=_0x231bc6&&_0x212dd5['addRange'](_0x27ab23);}}});});}function _0x4d220a(_0x5bb9f9){const _0x12c484=Array['from'](_0x266455['getRanges']())['map'](_0x2ff7c8=>_0x4c6b54['fromRange'](_0x2ff7c8));_0x490285['model']['change'](_0x2bb2cb=>{const _0x2d20ef=_0x2bb2cb['batch'];_0x5bb9f9=_0x5bb9f9['filter'](_0x1af8ef=>'$graveyard'!=_0x1af8ef['root']['rootName']),_0x2bb2cb['setSelection'](_0x5bb9f9),_0x490285['commands']['get']('removeTableRow')['refresh'](),_0x490285['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x490285['model']['enqueueChange'](()=>{_0x490285['model']['enqueueChange'](_0x2d20ef,_0x139d08=>{const _0x354213=_0x12c484['filter'](_0xb79799=>'$graveyard'!=_0xb79799['root']['rootName']);_0x354213['length']>0x0&&_0x139d08['setSelection'](_0x354213);for(const _0x384e98 of _0x12c484)_0x384e98['detach']();});});});}function _0x5738d2(_0x238961){_0x490285['model']['change'](_0x287224=>{const _0x40d7f0=Array['from'](_0x266455['getRanges']())['map'](_0x294eb2=>_0x4c6b54['fromRange'](_0x294eb2)),_0x4bd9b3=[];for(const _0x476087 of _0x238961)for(const _0x200360 of _0x476087['getItems']({'shallow':!0x0}))_0x4bd9b3['push'](_0x200360);for(const _0x1671a9 of _0x4bd9b3)'$graveyard'!=_0x1671a9['root']['rootName']&&(_0x287224['setSelection'](_0x287224['createPositionAt'](_0x1671a9,0x0)),_0x490285['commands']['get']('removeTableColumn')['refresh'](),_0x490285['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x26c10f=_0x40d7f0['filter'](_0x323f18=>'$graveyard'!=_0x323f18['root']['rootName']);_0x26c10f['length']>0x0&&_0x287224['setSelection'](_0x26c10f);for(const _0x2dd4e3 of _0x40d7f0)_0x2dd4e3['detach']();});}function _0x1f5a50(_0x287de4,_0x18e75e){return _0x18e75e['every'](_0x23d8cf=>_0x287de4['some'](_0x3c308e=>_0x3c308e['end']['isEqual'](_0x23d8cf['start'])||_0x23d8cf['end']['isEqual'](_0x3c308e['start'])));}function _0x1b4f2d(_0x3bc8d8,_0x2a73c8){return!_0x3bc8d8['some'](_0x2d4300=>_0x2a73c8['some'](_0x3cb889=>_0x2d4300['isIntersecting'](_0x3cb889)))&&_0x3bc8d8['some'](_0x5b0afa=>_0x2a73c8['some'](_0x382d7b=>_0x5b0afa['end']['isTouching'](_0x382d7b['start'])));}_0x2095da['descriptionFactory']['registerDescriptionCallback'](_0x4349f3=>{if('insertion'!=_0x4349f3['type']&&'deletion'!=_0x4349f3['type'])return;const _0xe886aa=_0x4349f3['getContainedElement']();if(null!=_0xe886aa&&_0xe886aa['is']('element','table')){if('insertion'==_0x4349f3['type']){const _0x19bc0a=_0x4349f3['getItems']()['filter'](_0x3a8862=>_0x3a8862['is']('$textProxy'))['map'](_0x47a7ff=>_0x47a7ff['data']);if(_0x19bc0a['length'])return{'type':'insertion','content':Tt(_0x1adc0a,'*Insert:*\x20%0',Tt(_0x1adc0a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x19bc0a['join']('\x20')+'\x22'))};}if('deletion'==_0x4349f3['type']){const _0x2a39c6=_0x4349f3['getItems']()['filter'](_0x28559a=>_0x28559a['is']('$textProxy'))['map'](_0x497e4e=>_0x497e4e['data']);if(_0x2a39c6['length'])return{'type':'deletion','content':Tt(_0x1adc0a,'*Remove:*\x20%0',Tt(_0x1adc0a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2a39c6['join']('\x20')+'\x22'))};}}}),_0x2095da['descriptionFactory']['registerDescriptionCallback'](_0x7d2f22=>{if('tableRow'==_0x7d2f22['subType']){const _0xee47e6=_0x7d2f22['getItems']()['filter'](_0xc0fce1=>_0xc0fce1['is']('$textProxy'))['map'](_0x3cf07e=>_0x3cf07e['data']),_0x48332a=this['_getSuggestionCoords'](_0x7d2f22),_0x1ff571=_0x48332a['maxRow']-_0x48332a['minRow']+0x1;if('insertion'==_0x7d2f22['type'])return _0xee47e6['length']?{'type':'insertion','content':Tt(_0x1adc0a,'*Insert:*\x20%0',Tt(_0x1adc0a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1ff571,'\x22'+_0xee47e6['join']('\x20')+'\x22']))}:{'type':'insertion','content':Tt(_0x1adc0a,'*Insert:*\x20%0',Tt(_0x1adc0a,'ELEMENT_TABLE_ROW',_0x1ff571))};if('deletion'==_0x7d2f22['type'])return _0xee47e6['length']?{'type':'deletion','content':Tt(_0x1adc0a,'*Remove:*\x20%0',Tt(_0x1adc0a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1ff571,'\x22'+_0xee47e6['join']('\x20')+'\x22']))}:{'type':'deletion','content':Tt(_0x1adc0a,'*Remove:*\x20%0',Tt(_0x1adc0a,'ELEMENT_TABLE_ROW',_0x1ff571))};}if('tableColumn'==_0x7d2f22['subType']){const _0x16d5e0=_0x7d2f22['getItems']()['filter'](_0x182f7e=>_0x182f7e['is']('$textProxy'))['map'](_0x1fd0dc=>_0x1fd0dc['data']),_0x2d0385=this['_getSuggestionCoords'](_0x7d2f22),_0x23eef0=_0x2d0385['maxColumn']-_0x2d0385['minColumn']+0x1;if('insertion'==_0x7d2f22['type'])return _0x16d5e0['length']?{'type':'insertion','content':Tt(_0x1adc0a,'*Insert:*\x20%0',Tt(_0x1adc0a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x23eef0,'\x22'+_0x16d5e0['join']('\x20')+'\x22']))}:{'type':'insertion','content':Tt(_0x1adc0a,'*Insert:*\x20%0',Tt(_0x1adc0a,'ELEMENT_TABLE_COLUMN',_0x23eef0))};if('deletion'==_0x7d2f22['type'])return _0x16d5e0['length']?{'type':'deletion','content':Tt(_0x1adc0a,'*Remove:*\x20%0',Tt(_0x1adc0a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x23eef0,'\x22'+_0x16d5e0['join']('\x20')+'\x22']))}:{'type':'deletion','content':Tt(_0x1adc0a,'*Remove:*\x20%0',Tt(_0x1adc0a,'ELEMENT_TABLE_COLUMN',_0x23eef0))};}}),_0x2095da['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4d220a),_0x2095da['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4d220a),_0x2095da['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5738d2),_0x2095da['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5738d2),_0x2095da['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1f5a50),_0x2095da['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1f5a50),_0x2095da['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1b4f2d),_0x2095da['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1b4f2d);}['_acceptFormatSuggestionCallbackFactory'](){const _0x9cd7b=this['editor'],_0x30a51b=_0x9cd7b['model']['document']['selection'];return(_0x31b2ed,_0x2a8bd5)=>{_0x9cd7b['model']['change'](_0x50b085=>{const {commandName:_0x347cb1,commandParams:_0x75d120}=_0x2a8bd5;let _0x1a6440=_0x31b2ed[0x0]['end']['nodeBefore'];_0x75d120&&_0x75d120[0x0]&&!0x1===_0x75d120[0x0]['forceValue']&&(_0x1a6440=_0x31b2ed[0x0]['start']['nodeAfter']);const _0x1bb65a=_0x50b085['createRangeIn'](_0x1a6440);if('$graveyard'==_0x1bb65a['root']['rootName'])return;const _0x308d7c=Array['from'](_0x30a51b['getRanges']())['map'](_0xcd8613=>_0x4c6b54['fromRange'](_0xcd8613));_0x50b085['setSelection'](_0x1bb65a),_0x9cd7b['commands']['get'](_0x347cb1)['refresh'](),_0x75d120['push']({'forceDefaultExecution':!0x0}),_0x9cd7b['execute'](_0x347cb1,..._0x75d120);const _0x5b2a5a=_0x308d7c['filter'](_0x526dbd=>'$graveyard'!=_0x526dbd['root']['rootName']);_0x5b2a5a['length']>0x0&&_0x50b085['setSelection'](_0x5b2a5a);for(const _0x2e3fc5 of _0x308d7c)_0x2e3fc5['detach']();});};}['_getCoordsForCells'](_0x4ce327){const _0x5af1d2=this['editor']['plugins']['get']('TableUtils');let _0x4a71a5=Number['MAX_SAFE_INTEGER'],_0xf24709=Number['MIN_SAFE_INTEGER'],_0x283dae=Number['MAX_SAFE_INTEGER'],_0x3d106a=Number['MIN_SAFE_INTEGER'];for(const _0x2ca958 of _0x4ce327){if('$graveyard'==_0x2ca958['root']['rootName'])continue;const {row:_0x2f89bc,column:_0x151d6e}=_0x5af1d2['getCellLocation'](_0x2ca958),_0x1cbcc6=_0x2ca958['hasAttribute']('rowspan')?_0x2ca958['getAttribute']('rowspan')-0x1:0x0,_0x1607ec=_0x2ca958['hasAttribute']('colspan')?_0x2ca958['getAttribute']('colspan')-0x1:0x0;_0x4a71a5=_0x2f89bc<_0x4a71a5?_0x2f89bc:_0x4a71a5,_0xf24709=_0x2f89bc+_0x1cbcc6>_0xf24709?_0x2f89bc+_0x1cbcc6:_0xf24709,_0x283dae=_0x151d6e<_0x283dae?_0x151d6e:_0x283dae,_0x3d106a=_0x151d6e+_0x1607ec>_0x3d106a?_0x151d6e+_0x1607ec:_0x3d106a;}return{'minRow':_0x4a71a5,'maxRow':_0xf24709,'minColumn':_0x283dae,'maxColumn':_0x3d106a};}['_setupColumnsRowsFixing'](){const _0x146a02=this['editor'],_0x2f626f=_0x146a02['plugins']['get']('TrackChangesEditing'),_0x2ce33f=_0x146a02['plugins']['get']('TableUtils');_0x146a02['model']['document']['on']('change:data',()=>{const _0x563ad4=Array['from'](_0x146a02['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x15a8bf,data:_0x568c3f}of _0x563ad4){const {group:_0x4ca452,id:_0x2bc8d9,subType:_0x2315e3}=_0x4f787f(_0x15a8bf);if('suggestion'!=_0x4ca452)continue;if(null!=_0x568c3f['oldRange'])continue;const _0x36ce57=_0x2f626f['getSuggestion'](_0x2bc8d9);this['_tablePostFixingSubtypes']['includes'](_0x2315e3)&&this['_tableSuggestions']['add'](_0x36ce57);}},{'priority':'low'});const _0x133f1d=(_0x59f3bc,_0x507f0d)=>{let _0x5d0f8d=!0x1;const _0x3dc7db=_0x507f0d['createRangeOn'](_0x59f3bc),_0x897f4f=_0x59f3bc['findAncestor']('table'),_0x101b23=_0x2ce33f['getCellLocation'](_0x59f3bc);for(const _0x3cfa1f of this['_tableSuggestions']){const _0xec5afe=_0x3cfa1f['subType'],_0x414e1e=_0xec5afe['startsWith']('tablePaste'),_0x27cdcf=_0xec5afe['substr'](_0x414e1e?0xa:0x5),_0x41ad32=_0x27cdcf['toLowerCase'](),_0x52af66=_0x41ad32['substr'](0x0,0x3)+'span',_0x128fdd='min'+_0x27cdcf,_0x193079='max'+_0x27cdcf;if(!_0x3cfa1f['isInContent'])continue;if(_0x897f4f!=_0x3cfa1f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3cfa1f['isIntersectingWithRange'](_0x3dc7db))continue;const _0x567160=_0x59f3bc['hasAttribute'](_0x52af66)?_0x59f3bc['getAttribute'](_0x52af66)-0x1:0x0,_0x3a140c=this['_getSuggestionCoords'](_0x3cfa1f),_0x388c7d=_0x3a140c[_0x128fdd],_0x3bb98a=_0x3a140c[_0x193079];_0x388c7d<=_0x101b23[_0x41ad32]&&_0x101b23[_0x41ad32]+_0x567160<=_0x3bb98a&&(_0x3cfa1f['addRange'](_0x3dc7db),_0x5d0f8d=!0x0);}return _0x5d0f8d;};_0x146a02['model']['document']['registerPostFixer'](_0x1cd869=>{let _0x1374cc=!0x1;for(const _0x3ac011 of _0x146a02['model']['document']['differ']['getChanges']())if('insert'==_0x3ac011['type']){if('tableRow'==_0x3ac011['name']){for(const _0x30ddf5 of _0x3ac011['position']['nodeAfter']['getChildren']())_0x1374cc=_0x1374cc||_0x133f1d(_0x30ddf5,_0x1cd869);}else'tableCell'==_0x3ac011['name']&&(_0x1374cc=_0x1374cc||_0x133f1d(_0x3ac011['position']['nodeAfter'],_0x1cd869));}return _0x1374cc;});}['_getSuggestionCoords'](_0x2d7697){return this['_getCoordsForCells'](_0x2d7697['getRanges']()['map'](_0x52d459=>_0x52d459['start']['nodeAfter']));}}function Nt(_0x5a2934){return Array['from'](new Set(_0x5a2934)['values']());}class TrackChangesTableMergeSplit extends _0x203e6b{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x65dfcc=this['editor'],_0x33a83d=_0x65dfcc['model']['document']['selection'],_0x2234b6=_0x65dfcc['locale'];if(!_0x65dfcc['plugins']['has']('TableEditing'))return;const _0xf1966e=_0x65dfcc['plugins']['get']('TrackChangesEditing'),_0x1efd2b=_0x65dfcc['plugins']['get']('TableUtils'),_0xc0fae5=_0x65dfcc['plugins']['get'](TrackChangesTable);_0xc0fae5['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xf1966e['enableCommand']('mergeTableCells',()=>{const _0x1314e1=_0x1efd2b['getSelectionAffectedTableCells'](_0x65dfcc['model']['document']['selection']);_0x65dfcc['model']['change'](()=>{_0xf1966e['markMultiRangeBlockFormat'](_0x1314e1,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x65dfcc['commands']['get']('mergeTableCells')['on']('execute',(_0x4a86b9,_0x2a186c)=>{_0x65dfcc['commands']['get']('trackChanges')['value']&&(_0x2a186c['length']>0x0&&_0x2a186c[_0x2a186c['length']-0x1]&&_0x2a186c[_0x2a186c['length']-0x1]['forceDefaultExecution']||_0xf1966e['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4a86b9['stop']());},{'priority':'highest'});for(const _0x57bedc of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2542e1=_0x65dfcc['commands']['get'](_0x57bedc);_0xf1966e['enableCommand'](_0x57bedc,()=>{const _0x222c7d=_0x65dfcc['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x46c871=>_0x46c871['is']('element','tableCell')),_0x4d6b2f=_0x2542e1['value'];_0x65dfcc['model']['change'](()=>{_0xf1966e['markMultiRangeBlockFormat']([_0x222c7d,_0x4d6b2f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x436dbb of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1d6d1a=_0x65dfcc['commands']['get'](_0x436dbb);_0xf1966e['enableCommand'](_0x436dbb,()=>{const _0x334c5e=_0x1efd2b['getSelectionAffectedTableCells'](_0x65dfcc['model']['document']['selection'])[0x0],_0xa98f29=_0x334c5e['findAncestor']('table'),{column:_0x88f742,row:_0x33f588}=_0x1efd2b['getCellLocation'](_0x334c5e);let _0x26ce73=[];if('horizontally'==_0x1d6d1a['direction']){const _0x28f085=_0x1efd2b['createTableWalker'](_0xa98f29,{'startRow':_0x33f588,'endRow':_0x33f588,'includeAllSlots':!0x0});_0x26ce73=Array['from'](_0x28f085)['map'](_0x88c3fe=>_0x88c3fe['cell']);}else{const _0x1b212c=_0x1efd2b['createTableWalker'](_0xa98f29,{'column':_0x88f742,'includeAllSlots':!0x0});_0x26ce73=Array['from'](_0x1b212c)['map'](_0xa377b2=>_0xa377b2['cell']);}_0x65dfcc['model']['change'](_0x1cf365=>{_0xf1966e['markBlockFormat'](_0x1cf365['createRangeOn'](_0x334c5e),{'commandName':_0x436dbb,'commandParams':[]},_0x26ce73,_0x436dbb);});});}_0xf1966e['descriptionFactory']['registerDescriptionCallback'](_0x25fc18=>{if('formatBlock'!=_0x25fc18['type']&&'formatInline'!=_0x25fc18['type'])return;const {data:_0x433b56}=_0x25fc18;return _0x433b56&&'mergeTableCells'==_0x433b56['commandName']?{'type':'format','content':Tt(_0x2234b6,'*Merge\x20cells*')}:void 0x0;}),_0xf1966e['descriptionFactory']['registerDescriptionCallback'](_0x3090dc=>{if('formatBlock'!=_0x3090dc['type']&&'formatInline'!=_0x3090dc['type'])return;const {data:_0xaa19e3}=_0x3090dc;return _0xaa19e3?'splitTableCellVertically'==_0xaa19e3['commandName']?{'type':'format','content':Tt(_0x2234b6,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xaa19e3['commandName']?{'type':'format','content':Tt(_0x2234b6,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x468abe=_0xc0fae5['_acceptFormatSuggestionCallbackFactory']();for(const _0x5b02fd of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xf1966e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5b02fd,'accept',_0x468abe);for(const _0xcbfa6c of['splitTableCellVertically','splitTableCellHorizontally'])_0xf1966e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xcbfa6c,'accept',_0x468abe);_0xf1966e['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2db98a=>{_0x65dfcc['model']['change'](_0xe878c9=>{const _0x437084=Array['from'](_0x33a83d['getRanges']())['map'](_0x938f30=>_0x4c6b54['fromRange'](_0x938f30));_0xe878c9['setSelection'](_0x2db98a),_0x65dfcc['commands']['get']('mergeTableCells')['refresh'](),_0x65dfcc['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4c485f=_0x437084['filter'](_0xceccd2=>'$graveyard'!=_0xceccd2['root']['rootName']);_0x4c485f['length']>0x0&&_0xe878c9['setSelection'](_0x4c485f);for(const _0x3e4a5d of _0x437084)_0x3e4a5d['detach']();});});for(const _0x42397d of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1a5232=_0x65dfcc['commands']['get'](_0x42397d);_0x1a5232['on']('set:isEnabled',(_0x1a56f6,_0xd04d33,_0x1af5a1)=>{if(_0x1af5a1){const _0x5e6579=_0x65dfcc['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x48a815=>_0x48a815['is']('element','tableCell'));this['_areMergableCells'](_0x1a5232['value'],_0x5e6579)||(_0x1a56f6['return']=!0x1,_0x1a56f6['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x51b810=this['editor']['commands']['get']('mergeTableCells'),_0x2f8c2a=this['editor']['plugins']['get']('TableUtils');if(!_0x51b810['isEnabled'])return!0x1;const _0x2f3e5f=_0x2f8c2a['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x9a2265 of _0x2f3e5f)for(const _0x47aede of _0x2f3e5f)if(_0x9a2265!=_0x47aede&&!this['_areMergableCells'](_0x9a2265,_0x47aede))return!0x1;return!0x0;}['_areMergableCells'](_0x433000,_0x1a7d41){const _0x552cb8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3066cf=this['editor']['model']['createRangeOn'](_0x433000),_0x2fa8d9=this['editor']['model']['createRangeOn'](_0x1a7d41),_0x696f47=new Set(),_0x52f566=new Set();for(const _0x51a3eb of _0x552cb8['getSuggestions']())if(('insertion'==_0x51a3eb['type']||'deletion'==_0x51a3eb['type']||'mergeTableCells'==_0x51a3eb['subType'])&&_0x51a3eb['isInContent']){for(const _0x44b78b of _0x51a3eb['getRanges']())_0x44b78b['containsRange'](_0x3066cf,!0x0)&&_0x696f47['add'](_0x51a3eb['type']+':'+_0x51a3eb['author']['id']),_0x44b78b['containsRange'](_0x2fa8d9,!0x0)&&_0x52f566['add'](_0x51a3eb['type']+':'+_0x51a3eb['author']['id']);}if(_0x696f47['size']!=_0x52f566['size'])return!0x1;for(const _0x1ccab9 of _0x696f47)if(!_0x52f566['has'](_0x1ccab9))return!0x1;return!0x0;}}class TrackChangesTableHeadings extends _0x203e6b{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x37d39e=this['editor'];if(!_0x37d39e['plugins']['has']('TableEditing'))return;const _0x3caa25=_0x37d39e['locale'],_0x17c1dc=_0x37d39e['plugins']['get']('TrackChangesEditing');_0x17c1dc['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x17c1dc['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x17c1dc['descriptionFactory']['registerAttributeLabel']('headingRows',Tt(_0x3caa25,'FORMAT_HEADER_ROW')),_0x17c1dc['descriptionFactory']['registerAttributeLabel']('headingColumns',Tt(_0x3caa25,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x22609b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5532d4=this['editor']['plugins']['get'](TrackChangesTable)['_acceptFormatSuggestionCallbackFactory']();_0x22609b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5532d4),_0x22609b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5532d4),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x4a72ce=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ba8fc=this['editor']['plugins']['get']('TableUtils');function _0x19b271({showActiveMarker:_0x463f24=!0x0,setDataAttribute:_0x56cd60=!0x0}={}){return(_0x392fa0,_0x5e2744,_0x1a4a4b)=>{const {type:_0x56e1a5,id:_0xf80f20}=_0x4f787f(_0x5e2744['markerName']);if(!_0x4a72ce['hasSuggestion'](_0xf80f20))return;const _0x432f89=_0x4a72ce['getSuggestion'](_0xf80f20),_0x1f5914=_0x432f89['data'];if('formatBlock'!=_0x432f89['type']||!_0x1f5914||'setTableColumnHeader'!=_0x1f5914['commandName'])return;if(_0x5e2744['item'])return void _0x392fa0['stop']();if(!_0x1a4a4b['consumable']['consume'](_0x5e2744['markerRange'],_0x392fa0['name']))return;const _0xe9b840=_0x5e2744['markerRange']['start']['nodeAfter'],_0x4d77a2=_0x5e2744['markerRange']['end']['nodeBefore'],_0x1831be=_0xe9b840['parent']['parent'],{column:_0x47f4ca}=_0x1ba8fc['getCellLocation'](_0xe9b840),{column:_0x57382f}=_0x1ba8fc['getCellLocation'](_0x4d77a2);for(let _0x81046c=_0x47f4ca;_0x81046c<=_0x57382f;_0x81046c++){const _0x2c8f57=_0x1ba8fc['createTableWalker'](_0x1831be,{'column':_0x81046c,'includeAllSlots':!0x1});for(const _0x1e4095 of _0x2c8f57){const _0x4b5c5e=_0x1e4095['cell'],_0x3aa4ee=_0x1a4a4b['mapper']['toViewElement'](_0x4b5c5e);_0x1a4a4b['writer']['addClass']('ck-suggestion-marker-'+_0x56e1a5,_0x3aa4ee),_0x56cd60&&_0x1a4a4b['writer']['setAttribute']('data-suggestion',_0xf80f20,_0x3aa4ee),_0x1a4a4b['mapper']['bindElementToMarker'](_0x3aa4ee,_0x5e2744['markerName']),_0x463f24&&(_0x4a72ce['activeMarkers']['includes'](_0x5e2744['markerName'])?_0x1a4a4b['writer']['addClass']('ck-suggestion-marker--active',_0x3aa4ee):_0x1a4a4b['writer']['removeClass']('ck-suggestion-marker--active',_0x3aa4ee));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x19b271(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x99fcbf,_0x46b759,_0x163b79)=>{_0x163b79['options']['showSuggestionHighlights']&&_0x19b271({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x99fcbf,_0x46b759,_0x163b79);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1afb2e,_0x3de285,_0x2a6df3)=>{const {type:_0x94acd0,id:_0xdb42a8}=_0x4f787f(_0x3de285['markerName']);if(!_0x4a72ce['hasSuggestion'](_0xdb42a8))return;const _0x3b4642=_0x4a72ce['getSuggestion'](_0xdb42a8),_0x117402=_0x3b4642['data'];if('formatBlock'!=_0x3b4642['type']||!_0x117402||'setTableColumnHeader'!=_0x117402['commandName'])return;const _0x251d45=_0x2a6df3['mapper']['markerNameToElements'](_0x3de285['markerName']);if(_0x251d45){for(const _0xc5eb32 of _0x251d45)_0x2a6df3['writer']['removeClass']('ck-suggestion-marker-'+_0x94acd0,_0xc5eb32),_0x2a6df3['writer']['removeClass']('ck-suggestion-marker--active',_0xc5eb32),_0x2a6df3['writer']['removeAttribute']('data-suggestion',_0xc5eb32),_0x2a6df3['mapper']['unbindElementFromMarkerName'](_0xc5eb32,_0x3de285['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x2c93db=this['editor'],_0x1f7ad7=_0x2c93db['locale'];function _0x5e4835(_0xdb955b){return{'type':'format','content':Tt(_0x1f7ad7,'*Format:*\x20%0',_0xdb955b)};}_0x2c93db['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x325d32=>{if('formatBlock'!=_0x325d32['type'])return;const {data:_0x25c176}=_0x325d32;if(_0x25c176){if('setTableRowHeader'==_0x25c176['commandName']){const _0x3f2742=_0x25c176['commandParams'][0x0]['forceValue'];return _0x5e4835(Tt(_0x1f7ad7,_0x3f2742?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x25c176['commandName']){const _0x1dcb21=_0x25c176['commandParams'][0x0]['forceValue'];return _0x5e4835(Tt(_0x1f7ad7,_0x1dcb21?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class TrackChangesTableFooters extends _0x203e6b{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x4c6e64=this['editor'];if(!_0x4c6e64['plugins']['has']('TableEditing')||!_0x4c6e64['config']['get']('table.enableFooters'))return;const _0x8a3484=_0x4c6e64['locale'],_0x5c62e2=_0x4c6e64['plugins']['get']('TrackChangesEditing');_0x5c62e2['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x5c62e2['descriptionFactory']['registerAttributeLabel']('footerRows',Tt(_0x8a3484,'FORMAT_FOOTER_ROW'));}}class TrackChangesTableLayout extends _0x203e6b{['afterInit'](){const _0x4f9df4=this['editor'],_0x3ae4cb=_0x4f9df4['locale'],_0x2076ed=_0x4f9df4['plugins']['get']('TrackChangesEditing');function _0x53655d(_0x483e7a){return{'type':'format','content':''+Tt(_0x3ae4cb,'*Set\x20table\x20type:*\x20%0',_0x483e7a)};}_0x4f9df4['plugins']['has']('TableLayout')&&(_0x2076ed['enableCommand']('insertTableLayout'),_0x2076ed['enableDefaultAttributesIntegration']('tableType'),_0x2076ed['descriptionFactory']['registerElementLabel'](_0x3f166e=>_0x3f166e['is']('element','table')&&'layout'===_0x3f166e['getAttribute']('tableType'),_0x347a16=>Tt(_0x3ae4cb,'ELEMENT_LAYOUT_TABLE',_0x347a16)),_0x2076ed['descriptionFactory']['registerDescriptionCallback'](_0x41f5e3=>{const {data:_0xa8670}=_0x41f5e3;if(_0xa8670&&'tableType'==_0xa8670['key'])switch(_0xa8670['newValue']){case'layout':return _0x53655d(Tt(_0x3ae4cb,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x53655d(Tt(_0x3ae4cb,'ELEMENT_CONTENT_TABLE'));}}));}}const Mt=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ot=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Mt['map'](_0x4bf834=>[_0x4bf834,null]));class TrackChangesTableClipboard extends _0x203e6b{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x378ac7=this['editor'];if(!_0x378ac7['plugins']['has']('TableClipboard'))return;const _0x529896=_0x378ac7['plugins']['get']('TrackChangesEditing'),_0xf411dc=_0x378ac7['plugins']['get']('TableUtils'),_0x482b2e=_0x378ac7['plugins']['get'](TrackChangesTable),_0x50a1ae=_0x378ac7['plugins']['get']('TableClipboard'),_0x4f045f=_0x378ac7['plugins']['get']('TableSelection'),_0x16e9ac=_0x378ac7['plugins']['get'](ut);_0x482b2e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x378ac7['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x378ac7['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5b0775=null,_0x32c01c=!0x1;_0x16e9ac['on']('contentInsertion',(_0x457b6c,_0x22db33)=>{_0x32c01c='paste'===_0x22db33['method'];}),_0x378ac7['model']['on']('insertContent',(_0x48fd16,_0x1b4b14)=>{if(!_0x32c01c&&null===_0x4f045f['getSelectedTableCells']())return;const [_0x5137e0,_0x2a0677]=_0x1b4b14,_0x589176=_0x1b4b14[_0x1b4b14['length']-0x1];_0x589176&&_0x589176['forceDefaultExecution']||_0x529896['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x120c2c,_0x24c1c2,_0x55433e,_0x5875bd,_0x2e916a){if(_0x24c1c2&&!_0x24c1c2['is']('documentSelection'))return!0x1;const _0xdfcfb=_0x2e916a['getTableIfOnlyTableInContent'](_0x120c2c,_0x55433e);if(!_0xdfcfb||!Ft(_0xdfcfb,void 0x0,_0x5875bd))return!0x1;const _0x2308a5=_0x5875bd['getSelectionAffectedTableCells'](_0x55433e['document']['selection']);if(!_0x2308a5['length'])return!0x1;const _0x2fc9bb=_0x2308a5[0x0]['findAncestor']('table'),_0x49b477=_0x5875bd['getRowIndexes'](_0x2308a5),_0xab5550=_0x5875bd['getColumnIndexes'](_0x2308a5),_0x1d2d78={'startRow':_0x49b477['first'],'endRow':_0x49b477['last'],'startColumn':_0xab5550['first'],'endColumn':_0xab5550['last']};return 0x1==_0x2308a5['length']&&(_0x1d2d78['endRow']+=_0x5875bd['getRows'](_0xdfcfb)-0x1,_0x1d2d78['endColumn']+=_0x5875bd['getColumns'](_0xdfcfb)-0x1),Ft(_0x2fc9bb,_0x1d2d78,_0x5875bd);}(_0x5137e0,_0x2a0677,_0x378ac7['model'],_0xf411dc,_0x50a1ae)&&(_0x48fd16['stop'](),_0x5b0775={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x378ac7['model']['change'](()=>{_0x378ac7['model']['insertContent'](_0x1b4b14[0x0],_0x1b4b14[0x1],_0x1b4b14[0x2],{'forceDefaultExecution':!0x0});const _0x22da38=_0x1e5a7d(),{rowInsertionRanges:_0x85ba2,columnInsertionRanges:_0x335025,insertionRanges:_0x5413a8,deletionRanges:_0x3fc7fd,cells:_0x4cd61f}=_0x5b0775;_0x85ba2['length']&&_0x529896['markMultiRangeInsertion'](_0x85ba2,'tablePasteRow',{'tablePasteChainId':_0x22da38}),_0x335025['length']&&_0x529896['markMultiRangeInsertion'](_0x335025,'tablePasteColumn',{'tablePasteChainId':_0x22da38}),_0x5413a8['length']&&(_0x529896['markMultiRangeInsertion'](_0x5413a8,'tablePaste',{'tablePasteChainId':_0x22da38,'skipNestingCheck':!0x0}),_0x5413a8['forEach'](_0x48a289=>_0x48a289['detach']?.())),_0x3fc7fd['length']&&(_0x529896['markMultiRangeDeletion'](_0x3fc7fd,'tablePaste',{'tablePasteChainId':_0x22da38,'skipNestingCheck':!0x0}),_0x3fc7fd['forEach'](_0x76ed5a=>_0x76ed5a['detach']?.()));const _0x13a893=_0x529896['markMultiRangeBlockFormat'](_0x4cd61f['map'](({element:_0x2ad931})=>_0x2ad931),{'formatGroupId':_0x1e5a7d()},[],'tablePasteCell',{'tablePasteChainId':_0x22da38});if(_0x13a893){const _0x4ac13d=_0x13a893['getMarkers'](),_0x4c5619=[];for(const {element:_0x870c8e,attributes:_0x42e56e}of _0x4cd61f){if(!_0x42e56e)continue;const _0x50ecf7=_0x378ac7['model']['createRangeOn'](_0x870c8e),_0x1779f5=_0x4ac13d['find'](_0x2443b4=>_0x2443b4['getRange']()['isEqual'](_0x50ecf7));_0x1779f5&&_0x4c5619['push']([_0x1779f5['name'],_0x42e56e]);}_0x4c5619['length']&&_0x13a893['setAttribute']('markerAttributes',Object['fromEntries'](_0x4c5619));}_0x5b0775=null;}));},{'priority':_0xcf8801['high']+0xa}),_0x16e9ac['on']('contentInsertion',()=>{_0x32c01c=!0x1;},{'priority':'lowest'}),_0x378ac7['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x6f0b7a,_0x495474)=>{const [_0x3c94bd,_0x14e48f,,_0x2e9ab7]=_0x495474;if(!_0x5b0775)return;_0x6f0b7a['stop']();const _0x2281b0=_0x3c94bd['cell'],_0x3d8fb2=_0x14e48f,_0x569c3c=wt(_0x2281b0),_0x15e73b=wt(_0x3d8fb2);_0x6f0b7a['return']=_0x2281b0;let _0x396a0a=null,_0x12b3c5=null;if(_0x15e73b||_0x569c3c){if(_0x569c3c&&!_0x15e73b){_0x2e9ab7['remove'](_0x2281b0['getChild'](0x0));for(const _0x236067 of Array['from'](_0x3d8fb2['getChildren']()))_0x2e9ab7['insert'](_0x236067,_0x2281b0,'end');const _0x4d6fd5=_0x5b0775['rowInsertionIndexes']['includes'](_0x3c94bd['row']),_0xbe8e6f=_0x5b0775['columnInsertionIndexes']['includes'](_0x3c94bd['column']);_0x4d6fd5||_0xbe8e6f||(_0x396a0a=_0x4c6b54['fromRange'](_0x2e9ab7['createRangeIn'](_0x2281b0)));}else _0x15e73b&&!_0x569c3c&&(_0x12b3c5=_0x2e9ab7['createRangeIn'](_0x2281b0));}else{const _0x117612=_0x2e9ab7['createElement']('tableCellSuggestion'),_0x26c282=_0x2e9ab7['createElement']('tableCellSuggestion');_0x2e9ab7['wrap'](_0x2e9ab7['createRangeIn'](_0x2281b0),_0x26c282),_0x2e9ab7['insert'](_0x117612,_0x2281b0,0x0);for(const _0x58d28b of Array['from'](_0x3d8fb2['getChildren']()))_0x2e9ab7['insert'](_0x58d28b,_0x117612,'end');_0x396a0a=_0x4c6b54['fromRange'](_0x2e9ab7['createRangeOn'](_0x117612)),_0x12b3c5=_0x4c6b54['fromRange'](_0x2e9ab7['createRangeOn'](_0x26c282));}const _0x2917da=Array['from'](_0x3d8fb2['getAttributes']())['filter'](([_0x22c707])=>Mt['includes'](_0x22c707));_0x5b0775['cells']['push']({'element':_0x2281b0,'attributes':_0x2917da['length']?Object['fromEntries'](_0x2917da):null}),_0x396a0a&&_0x5b0775['insertionRanges']['push'](_0x396a0a),_0x12b3c5&&_0x5b0775['deletionRanges']['push'](_0x12b3c5);},{'priority':'high'}),_0xf411dc['on']('insertColumns',(_0x187ac3,_0x4b18a3)=>{const [_0x1f03be,_0x1aecf2={}]=_0x4b18a3;if(!_0x5b0775)return;const _0x55edb9=_0x1aecf2['at']||0x0,_0x57456d=_0x1aecf2['columns']||0x1;_0x5b0775['columnInsertionIndexes']=new Array(_0x57456d)['fill'](_0x55edb9)['map']((_0xfb4609,_0x1bb603)=>_0xfb4609+_0x1bb603);for(const {cell:_0x34729b}of _0xf411dc['createTableWalker'](_0x1f03be,{'startColumn':_0x55edb9,'endColumn':_0x55edb9+_0x57456d-0x1}))_0x5b0775['columnInsertionRanges']['push'](_0x378ac7['model']['createRangeOn'](_0x34729b));},{'priority':'low'}),_0xf411dc['on']('insertRows',(_0x267c56,_0x125084)=>{const [_0x25cd12,_0x370b99={}]=_0x125084;if(!_0x5b0775)return;const _0xb9f1c7=_0x370b99['at']||0x0,_0xf5a3b1=_0x370b99['rows']||0x1;_0x5b0775['rowInsertionIndexes']=new Array(_0xf5a3b1)['fill'](_0xb9f1c7)['map']((_0x11e806,_0x3cb65b)=>_0x11e806+_0x3cb65b);for(const {cell:_0x3d993d}of _0xf411dc['createTableWalker'](_0x25cd12,{'startRow':_0xb9f1c7,'endRow':_0xb9f1c7+_0xf5a3b1-0x1}))_0x5b0775['rowInsertionRanges']['push'](_0x378ac7['model']['createRangeOn'](_0x3d993d));},{'priority':'low'}),_0x529896['descriptionFactory']['registerDescriptionCallback'](_0x176368=>{if(_0x176368['subType']&&_0x176368['subType']['startsWith']('tablePaste'))return _0x176368['previous']?{}:{'type':'insertion','content':Tt(_0x378ac7['locale'],'*Replace\x20table\x20cells*')};});const _0x47ef9d=()=>!0x1;for(const _0x13ea53 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x529896['_suggestionFactory']['registerCustomCallback']('insertion',_0x13ea53,'join',_0x47ef9d),_0x529896['_suggestionFactory']['registerCustomCallback']('deletion',_0x13ea53,'join',_0x47ef9d),_0x529896['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x13ea53,'join',_0x47ef9d);_0x529896['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x47ef9d),_0x529896['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3e8ab,_0x5a2781,_0x2c7652)=>{const _0x43ca0c=_0x3e8ab['map'](_0x1c6d99=>_0x1c6d99['getContainedElement']())['filter'](_0xfd42ae=>_0xfd42ae),_0x176ce6=new Map(_0x43ca0c['map'](_0x5375a2=>[_0x5375a2,null]));if(_0x5b0775){for(const {element:_0x61a71,attributes:_0x46ff86}of _0x5b0775['cells'])_0x46ff86&&_0x176ce6['set'](_0x61a71,_0x46ff86);}else{if(_0x2c7652&&_0x2c7652['markerAttributes'])for(const [_0x39483a,_0x36a91e]of Object['entries'](_0x2c7652['markerAttributes'])){const _0x40bd20=_0x378ac7['model']['markers']['get'](_0x39483a),_0x5de9d5=_0x40bd20?_0x40bd20['getRange']()['getContainedElement']():null;_0x5de9d5&&_0x176ce6['set'](_0x5de9d5,_0x36a91e);}}_0x378ac7['model']['change'](_0x382261=>{for(const [_0x5e3358,_0x1b79e8]of _0x176ce6)_0x382261['setAttributes']({...Ot,..._0x1b79e8},_0x5e3358);});});const _0x4a5224=(_0x3076ec,_0x3f23f8)=>{_0x529896['_suggestionFactory']['registerCustomCallback'](_0x3076ec,'tablePaste',_0x3f23f8,(_0x3265de,_0x4e499a,_0x3e98a9)=>{_0x378ac7['model']['change'](_0x59daac=>{const _0x40bd08=[];for(const _0x410171 of _0x3265de){const _0x2ce8af=_0x410171['start']['nodeAfter'];_0x2ce8af['is']('element','tableCellSuggestion')&&_0x40bd08['push'](_0x2ce8af);}_0x529896['_suggestionFactory']['getSuggestionCallback'](_0x3076ec,null,_0x3f23f8)(_0x3265de,_0x4e499a,_0x3e98a9);for(const _0x499e6c of _0x40bd08)'$graveyard'!=_0x499e6c['root']['rootName']&&_0x59daac['unwrap'](_0x499e6c);});});};_0x4a5224('insertion','accept'),_0x4a5224('insertion','discard'),_0x4a5224('deletion','accept'),_0x4a5224('deletion','discard'),_0x529896['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x38b723=>{const _0x133c1d=_0x38b723['map'](_0x4b5ac6=>_0x4b5ac6['getContainedElement']()),_0x3b6f7e=_0x133c1d[0x0]['findAncestor']('table'),{minRow:_0x1340c3,maxRow:_0x916ec8}=_0x482b2e['_getCoordsForCells'](_0x133c1d);_0xf411dc['removeRows'](_0x3b6f7e,{'at':_0x1340c3,'rows':_0x916ec8-_0x1340c3+0x1});}),_0x529896['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1884d0=>{const _0x5507f5=_0x1884d0['map'](_0x5d9d62=>_0x5d9d62['getContainedElement']()),_0x8a1b2a=_0x5507f5[0x0]['findAncestor']('table'),{minColumn:_0x47943e,maxColumn:_0x10dde1}=_0x482b2e['_getCoordsForCells'](_0x5507f5);_0xf411dc['removeColumns'](_0x8a1b2a,{'at':_0x47943e,'columns':_0x10dde1-_0x47943e+0x1});});const _0x10a81b=(_0x90256,_0xc4c1a1)=>{if(!_0xc4c1a1['subType']||!_0xc4c1a1['subType']['startsWith']('tablePaste'))return;const _0x137404=_0xc4c1a1['attributes']['tablePasteChainId'],_0x3447f9=_0x529896['getSuggestions']()['filter'](_0x5585c3=>_0x5585c3['isInContent']&&_0x5585c3['attributes']&&_0x5585c3['attributes']['tablePasteChainId']==_0x137404);_0x3447f9['length']&&_0xc4c1a1['getAllAdjacentSuggestions']()['length']!=_0x3447f9['length']&&_0x3447f9['reduce']((_0x4c7e3d,_0x49794b)=>(_0x4c7e3d['next']=_0x49794b,_0x49794b['previous']=_0x4c7e3d,_0x49794b));};function _0x5e5762(_0x1392ed,_0x5aec58=!0x0){const {id:_0x4cee49,authorId:_0x2234e1}=_0x4f787f(_0x1392ed['markerName']),_0x42e66c=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x53cc73=_0x529896['activeMarkers']['includes'](_0x1392ed['markerName']);return _0x53cc73&&_0x42e66c['push']('ck-suggestion-marker--active'),{'classes':_0x42e66c,'attributes':{'data-suggestion':_0x4cee49,'data-author-id':_0x2234e1},'priority':_0x53cc73&&_0x5aec58?0xbc2:0xbb8};}_0x529896['on']('suggestionLoaded',_0x10a81b,{'priority':'high'}),_0x529896['on']('suggestionUnloaded',_0x10a81b,{'priority':'high'}),_0x378ac7['model']['document']['registerPostFixer'](()=>{let _0x46ebd1=!0x1;const _0x25b7f6=Array['from'](_0x378ac7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5a1fc,data:_0x3fcee3}of _0x25b7f6){const {group:_0x4652b5,type:_0x591369,id:_0x50c330}=_0x4f787f(_0x5a1fc);if('suggestion'!=_0x4652b5||'deletion'!=_0x591369||_0x3fcee3['oldRange'])continue;if(!_0x529896['hasSuggestion'](_0x50c330))continue;const _0x3be984=_0x529896['getSuggestion'](_0x50c330)['getRanges'](),_0x398fe4=_0x378ac7['plugins']['get']('Users')['me'];for(const _0x1dff8a of _0x529896['getSuggestions']()){if(!_0x1dff8a['isInContent']||_0x1dff8a['author']!=_0x398fe4)continue;if('formatBlock'!=_0x1dff8a['type']||'tablePasteCell'!=_0x1dff8a['subType'])continue;if(_0x1dff8a['getRanges']()['every'](_0x87170c=>_0x3be984['some'](_0x11c1ab=>_0x11c1ab['containsRange'](_0x87170c,!0x0)))){for(const _0x47e94e of _0x1dff8a['getAllAdjacentSuggestions']())_0x47e94e['isInContent']&&(_0x47e94e['discard'](),_0x46ebd1=!0x0);}}}return _0x46ebd1;}),_0x378ac7['model']['document']['registerPostFixer'](_0x50cb68=>{const _0x2eb583=_0x378ac7['commands']['get']('redo');if(!_0x2eb583||!_0x2eb583['_createdBatches']['has'](_0x50cb68['batch']))return!0x1;let _0x3cb9a6=!0x1;const _0xe83635=_0x378ac7['plugins']['get']('Users')['me'],_0x4fd813=_0x378ac7['model']['document']['differ']['getChanges'](),_0x554bfd=Array['from'](_0x378ac7['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3530a1,data:_0x245537})=>{const {group:_0x1fb9fc,subType:_0x3fb9cf,authorId:_0x96fb81}=_0x4f787f(_0x3530a1);return'suggestion'==_0x1fb9fc&&'tablePaste'==_0x3fb9cf&&_0x96fb81==_0xe83635['id']&&!_0x245537['oldRange'];});for(const _0x18fa8a of _0x4fd813){if('insert'!=_0x18fa8a['type']||'tableCellSuggestion'!=_0x18fa8a['name']||0x1!=_0x18fa8a['length'])continue;const _0x1633b2=_0x50cb68['createRange'](_0x18fa8a['position'],_0x18fa8a['position']['getShiftedBy'](0x1));if(!_0x554bfd['find'](({data:_0x3aea58})=>_0x3aea58['newRange']['isEqual'](_0x1633b2))){for(const {name:_0x9b44fc,data:_0x5bc2d6}of _0x554bfd)if(_0x1633b2['containsRange'](_0x5bc2d6['newRange'])){_0x50cb68['updateMarker'](_0x9b44fc,{'range':_0x1633b2}),_0x3cb9a6=!0x0;break;}}}return _0x3cb9a6;}),_0x378ac7['model']['document']['registerPostFixer'](_0x512751=>{let _0x3a31b5=!0x1;const _0x399af2=_0x378ac7['plugins']['get']('Users')['me'],_0x26e2cb=_0x529896['getSuggestions']()['filter'](_0x1576f8=>_0x1576f8['isInContent']&&_0x1576f8['author']==_0x399af2),_0x20d005=new Set(),_0x10b731=new Set();for(const _0x4c1c80 of _0x26e2cb)if('tablePaste'==_0x4c1c80['subType'])for(const _0x304ecd of _0x4c1c80['getMarkers']()){const _0x2e74ed=_0x304ecd['getRange']()['getContainedElement']();if(_0x2e74ed){if(_0x2e74ed['is']('element','tableCellSuggestion')&&wt(_0x2e74ed)){_0x4c1c80['removeMarker'](_0x304ecd['name']),_0x20d005['add'](_0x2e74ed),_0x3a31b5=!0x0;const _0x52675e=_0x2e74ed['nextSibling'],_0x4a1175=_0x2e74ed['previousSibling'],_0x1bfe0c=_0x52675e&&_0x52675e['is']('element','tableCellSuggestion'),_0x154c4b=_0x4a1175&&_0x4a1175['is']('element','tableCellSuggestion');_0x1bfe0c&&!_0x20d005['has'](_0x52675e)&&_0x10b731['add'](_0x52675e),_0x154c4b&&!_0x20d005['has'](_0x4a1175)&&_0x10b731['add'](_0x4a1175);}else _0x2e74ed['is']('element','paragraph')&&_0x2e74ed['isEmpty']&&(_0x4c1c80['removeMarker'](_0x304ecd['name']),_0x3a31b5=!0x0);}}else{if('tablePasteCell'==_0x4c1c80['subType']){if(!_0x4c1c80['attributes']||!_0x4c1c80['attributes']['tablePasteChainId'])continue;const _0x3bcd8d=_0x4c1c80['attributes']['markerAttributes'];if(_0x3bcd8d&&Object['keys'](_0x3bcd8d)['length'])continue;const _0x368856=_0x4c1c80['attributes']['tablePasteChainId'];let _0x3ba2c9=!0x0,_0x1022a8=!0x0;for(const _0x1466d7 of _0x26e2cb)if(_0x1466d7['subType']&&_0x1466d7['subType']['startsWith']('tablePaste')){if(!_0x1466d7['attributes']['tablePasteChainId']){_0x1022a8=!0x1;break;}if(_0x1466d7['id']!=_0x4c1c80['id']&&_0x1466d7['attributes']['tablePasteChainId']==_0x368856){_0x3ba2c9=!0x1;break;}}_0x1022a8&&_0x3ba2c9&&(_0x4c1c80['removeMarkers'](),_0x3a31b5=!0x0);}}for(const _0x5ce948 of _0x20d005)_0x512751['remove'](_0x5ce948);for(const _0x5d6331 of _0x10b731)_0x512751['unwrap'](_0x5d6331);return _0x3a31b5;}),_0x378ac7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x283aa7=>_0x5e5762(_0x283aa7),'converterPriority':'high'}),_0x378ac7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2a39dc,_0xeef916)=>_0xeef916['options']['showSuggestionHighlights']?_0x5e5762(_0x2a39dc,!0x1):null,'converterPriority':'high'});const _0x4fd9b1=_0x378ac7['editing']['view'];this['listenTo'](_0x4fd9b1['document'],'clipboardOutput',(_0x58ef6d,_0x420a8b)=>{const _0x4594d4=[];for(const _0x4cc76e of _0x4fd9b1['createRangeIn'](_0x420a8b['content'])['getItems']())_0x4cc76e['is']('element','suggestion-td')&&_0x4594d4['push'](_0x4cc76e);_0x4fd9b1['change'](_0x25f13b=>{for(const _0x5b9eba of _0x4594d4)_0x25f13b['move'](_0x25f13b['createRangeIn'](_0x5b9eba),_0x25f13b['createPositionBefore'](_0x5b9eba)),_0x25f13b['remove'](_0x5b9eba);});});}}function wt(_0x4dccab){if(_0x4dccab['isEmpty'])return!0x0;const _0x59fe3=_0x4dccab['getChild'](0x0);return _0x59fe3['is']('element','paragraph')&&_0x59fe3['isEmpty'];}function Ft(_0x44345e,_0x3e9b41={},_0x189740){for(const {isAnchor:_0x35ae61,cellHeight:_0x5ce8d0,cellWidth:_0x21b25e}of _0x189740['createTableWalker'](_0x44345e,{'includeAllSlots':!0x0,..._0x3e9b41}))if(!_0x35ae61||0x1!=_0x5ce8d0||0x1!=_0x21b25e)return!0x1;return!0x0;}class TrackChangesTableColumnResize extends _0x203e6b{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3be106=this['editor']['plugins']['get']('TrackChangesEditing');_0x3be106['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3be106['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3be106['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3be106['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3be106['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3be106['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x243361,_0x2496ef){const _0x3e46cf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x874386=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x10a14a=_0x2496ef['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4514da=_0x874386['getColumnGroupElement'](_0x10a14a);let _0x495a20=_0x4514da?_0x874386['getTableColumnsWidths'](_0x4514da):null,_0x1c062a=_0x10a14a['getAttribute']('tableWidth')||null;const _0x1beb75=_0x2496ef['tableWidth']||_0x1c062a,_0x1e6649=_0x2496ef['columnWidths']||_0x495a20,_0x59ed35=this['editor']['plugins']['get']('Users')['me'];for(const _0x5555d3 of _0x3e46cf['getSuggestions']()){const _0x492870=_0x5555d3['getContainedElement']();if('resizeTable'===_0x5555d3['subType']&&_0x492870===_0x10a14a){_0x5555d3['author']!==_0x59ed35&&_0x5555d3['discard']();const _0x2cb351=_0x5555d3['data']['commandParams'];_0x1c062a=_0x2cb351[0x0]['tableWidth'],_0x495a20=_0x2cb351[0x0]['columnWidths'];break;}}_0x243361({'table':_0x10a14a,'tableWidth':_0x1beb75,'columnWidths':_0x1e6649}),_0x3e46cf['markBlockFormat'](_0x10a14a,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1c062a,'columnWidths':_0x495a20}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2ac0bc){if('formatBlock'!=_0x2ac0bc['type']&&'formatInline'!=_0x2ac0bc['type'])return;const {data:_0x549c29}=_0x2ac0bc;if(_0x549c29&&'resizeTable'===_0x549c29['formatGroupId']){const _0x10b1e3='*Format:*\x20resize\x20table';return{'type':'format','content':Tt(this['editor']['locale'],_0x10b1e3)};}}}class TrackChangesTemplate extends _0x203e6b{['afterInit'](){const _0x582716=this['editor'];_0x582716['plugins']['has']('Template')&&_0x582716['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class TrackChangesTableOfContents extends _0x203e6b{['afterInit'](){const _0x4bfacb=this['editor'];if(!_0x4bfacb['commands']['get']('insertTableOfContents'))return;_0x4bfacb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4dc6e4=_0x4bfacb['plugins']['get']('TrackChangesEditing'),_0xb40612=_0x4bfacb['locale'];_0x4dc6e4['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1f17de=>Tt(_0xb40612,'ELEMENT_TABLE_OF_CONTENTS',_0x1f17de));}}class TrackChangesTitle extends _0x203e6b{['afterInit'](){const _0xc7568b=this['editor'];if(!_0xc7568b['plugins']['has']('Title'))return;_0xc7568b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Tt(_0xc7568b['locale'],'ELEMENT_TITLE')),_0xc7568b['model']['document']['registerPostFixer'](_0x2d0d92=>{let _0x300862=!0x1;const _0x5b9802=Array['from'](_0xc7568b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1f324b,data:_0x2c9ede}of _0x5b9802){const {group:_0x1e823f}=_0x4f787f(_0x1f324b);if('suggestion'!==_0x1e823f||!_0x2c9ede['newRange'])continue;const _0x16cf81=_0x2c9ede['newRange'],_0x232ded=_0x16cf81['end']['nodeBefore'];if(!_0x232ded||!_0x232ded['is']('element','title-content'))continue;if(!_0x16cf81['start']['isTouching'](_0x16cf81['end']))continue;const _0x543b7c=_0xc7568b['model']['schema']['getNearestSelectionRange'](_0x16cf81['end'],'forward');if(_0x543b7c&&_0x543b7c['isCollapsed']){const _0x504b7e=_0x2d0d92['createRange'](_0x16cf81['start'],_0x543b7c['start']);_0x504b7e['isEqual'](_0x16cf81)||(_0x2d0d92['updateMarker'](_0x1f324b,{'range':_0x504b7e}),_0x300862=!0x0);}_0x300862||(_0x2d0d92['removeMarker'](_0x1f324b),_0x300862=!0x0);}return _0x300862;});}}class TrackChangesUploadcare extends _0x203e6b{['afterInit'](){const _0x39996a=this['editor'],_0x2022e4=_0x39996a['plugins']['get']('TrackChangesEditing');_0x39996a['plugins']['has']('Uploadcare')&&(_0x2022e4['enableCommand']('uploadcare'),_0x39996a['plugins']['has']('UploadcareImageEdit')&&(_0x2022e4['enableCommand']('uploadcareImageEdit'),_0x2022e4['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2022e4['descriptionFactory']['registerDescriptionCallback'](_0x2c71f3=>{if('attribute'!=_0x2c71f3['type'])return;const {data:_0x249dee}=_0x2c71f3;return _0x249dee&&'uploadcareImageId'==_0x249dee['key']?{'type':'format','content':''}:void 0x0;})));}}class TrackChangesUndo extends _0x203e6b{['afterInit'](){const _0x32622a=this['editor'],_0x222be7=_0x32622a['plugins']['get']('TrackChangesEditing');_0x32622a['plugins']['has']('UndoEditing')&&(_0x222be7['enableCommand']('undo'),_0x222be7['enableCommand']('redo'));}}class TrackChangesTableCaption extends _0x203e6b{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x58254a=this['editor'];if(!_0x58254a['plugins']['has']('TableCaptionEditing'))return;_0x58254a['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class TrackChangesTableProperties extends _0x203e6b{['tableProperties'];['tableCellProperties'];constructor(_0x4e61a2){super(_0x4e61a2),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 _0x1213e8=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x533b66 of this['tableProperties'])_0x1213e8['enableCommand'](_0x533b66,(_0x5288f1,_0x54e56d)=>{const _0x353578=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x533b66,[_0x353578],this['tableProperties'],'tableProperties',_0x5288f1,_0x54e56d);});_0x1213e8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1213e8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1213e8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x27b003,_0x4adad6)=>this['handleDiscardAction'](this['tableProperties'],_0x27b003,_0x4adad6)),_0x1213e8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x14f9ea of this['tableCellProperties'])this['editor']['commands']['get'](_0x14f9ea)&&_0x1213e8['enableCommand'](_0x14f9ea,(_0x153816,_0x369677)=>{const _0x3e3d76=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x14f9ea,_0x3e3d76,this['tableCellProperties'],'tableCellProperties',_0x153816,_0x369677);});_0x1213e8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1213e8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1213e8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x506628,_0x5b793a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x506628,_0x5b793a)),_0x1213e8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x1213e8['descriptionFactory']['registerAttributeLabel']('tableCellType',Tt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x1213e8['descriptionFactory']['registerDescriptionCallback'](_0x51cbcf=>this['handleSuggestionDescription'](_0x51cbcf)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x2cacb2,_0x224565,_0x2bcf76,_0x979664,_0x5b5306,_0x554c2e){const _0x1da7d9=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x554c2e['batch'],()=>{for(const _0x3e810b of _0x224565){if(this['_getSuggestion'](_0x3e810b,_0x979664))_0x5b5306(_0x554c2e);else{const _0x3098d7={};for(const _0x3a09e3 of _0x2bcf76){const _0x48b92d=_0x3e810b['getAttribute'](_0x3a09e3);void 0x0!==_0x48b92d&&(_0x3098d7[_0x3a09e3]=_0x48b92d);}_0x5b5306(_0x554c2e),_0x1da7d9['markBlockFormat'](_0x3e810b,{'commandParams':[_0x3098d7]},[],_0x979664);}}});}['handleDiscardAction'](_0x1adae0,_0x306f78,_0x88bd64){const _0xfa2f83=_0x306f78[0x0]['start']['nodeAfter'],_0x107454=_0x88bd64['commandParams'][0x0];this['editor']['model']['change'](_0xe5fb7b=>{for(const _0x1c10a4 of _0x1adae0)void 0x0!==_0x107454[_0x1c10a4]?_0xe5fb7b['setAttribute'](_0x1c10a4,_0x107454[_0x1c10a4],_0xfa2f83):_0xe5fb7b['removeAttribute'](_0x1c10a4,_0xfa2f83);});}['handleSuggestionDescription'](_0x585add){if(_0x585add['data'])switch(_0x585add['subType']){case'tableProperties':return{'type':'format','content':Tt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Tt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0xb0cd48,_0x3b62b9){const _0x34f8b0=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xc9872e of _0x34f8b0['getSuggestions']({'skipNotAttached':!0x0})){const _0xe9588c=_0xc9872e['getContainedElement']();if(_0xc9872e['subType']===_0x3b62b9&&_0xe9588c===_0xb0cd48)return _0xc9872e;}return null;}['_registerTablePropertiesAttributes'](){const _0x2813b5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54a210=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x3af140 of _0x54a210){const _0x427cda=_0x3af140['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x2813b5['descriptionFactory']['registerAttributeLabel'](_0x3af140,Tt(this['editor']['locale'],'FORMAT_'+_0x427cda));}}}class TrackChangesLineHeight extends _0x203e6b{['afterInit'](){const _0x2c23ac=this['editor'];if(!_0x2c23ac['plugins']['has']('LineHeight'))return;const _0x326f85=_0x2c23ac['plugins']['get']('TrackChangesEditing'),_0x4bba16=_0x2c23ac['locale'];_0x326f85['enableDefaultAttributesIntegration']('lineHeight'),_0x326f85['descriptionFactory']['registerAttributeLabel']('lineHeight',Tt(_0x4bba16,'FORMAT_LINE_HEIGHT'));}}const Bt='$elementName';class TrackChangesEditing extends _0x203e6b{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x300715,_0x540837,_0x3771e4,_0x226c6a,_0x319f4e,TrackChangesAIAssistant,TrackChangesAI,TrackChangesAIQuickActions,TrackChangesAlignment,TrackChangesBasicStyles,TrackChangesBlockQuote,TrackChangesBookmark,TrackChangesCKBox,TrackChangesCaseChange,TrackChangesCodeBlock,TrackChangesComments,TrackChangesDeleteCommand,TrackChangesEmoji,TrackChangesEnterCommand,TrackChangesFindAndReplace,TrackChangesFont,TrackChangesFootnotes,TrackChangesFormatPainter,TrackChangesGeneralHtmlSupport,TrackChangesHeading,TrackChangesHighlight,TrackChangesHorizontalLine,TrackChangesHtmlEmbed,TrackChangesImage,TrackChangesImageStyle,TrackChangesImageReplace,TrackChangesImportWord,TrackChangesIndent,TrackChangesInputCommand,TrackChangesLegacyList,TrackChangesLegacyListProperties,TrackChangesMultiLevelList,TrackChangesLink,TrackChangesList,TrackChangesLineHeight,TrackChangesDocumentListProperties,TrackChangesMediaEmbed,TrackChangesMediaEmbedStyle,TrackChangesMention,TrackChangesMergeFields,TrackChangesPageBreak,TrackChangesParagraph,TrackChangesReplaceSourceCommand,TrackChangesRemoveFormat,TrackChangesRestrictedEditingMode,TrackChangesShiftEnterCommand,TrackChangesStandardEditingMode,TrackChangesStylesDropdown,TrackChangesTable,TrackChangesTableMergeSplit,TrackChangesTableHeadings,TrackChangesTableFooters,TrackChangesTableLayout,TrackChangesTableCaption,TrackChangesTableClipboard,TrackChangesTableColumnResize,TrackChangesTableOfContents,TrackChangesTableProperties,TrackChangesTemplate,TrackChangesTitle,TrackChangesUploadcare,TrackChangesUndo];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x19b24b){super(_0x19b24b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3f895c,_0x3be037,_0x48351e,_0x4776d3)=>{this['_model']['change'](()=>{for(const _0x498ad7 of[..._0x4776d3,..._0x48351e])this['_model']['markers']['has'](_0x498ad7)&&_0x19b24b['editing']['reconvertMarker'](_0x498ad7);});}),this['descriptionFactory']=new SuggestionDescriptionFactory(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new SuggestionFactory(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x19b24b['plugins']['get'](_0x300715),this['_suggestionsConversion']=_0x19b24b['plugins']['get'](_0x540837),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x19b24b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x19b24b['config']['get']('trackChanges.trackFormatChanges'),_0x19b24b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x19b24b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new TrackChangesCommand(_0x19b24b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3595f2=this['editor'];_0x3595f2['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2d50ff,{writer:_0x59a351})=>{let _0x4ce287='suggestion:'+_0x2d50ff['getAttribute']('suggestion-type')+':'+_0x2d50ff['getAttribute']('id');return _0x2d50ff['getAttribute']('marker-count')&&(_0x4ce287+=':'+_0x2d50ff['getAttribute']('marker-count')),_0x59a351['createElement']('$marker',{'data-name':_0x4ce287});}}),_0x3595f2['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3595f2['model']['document']['registerPostFixer'](_0x38c47e=>{let _0x28c87c=!0x1;const _0x50f8b7=Array['from'](_0x3595f2['model']['document']['differ']['getChangedMarkers']()),_0xf81996=new Set();for(const {name:_0x5219ec,data:_0x4c8f64}of _0x50f8b7){const {group:_0x2277a6,type:_0x397830,subType:_0x47336b,id:_0x517cd7}=_0x4f787f(_0x5219ec);if('suggestion'!==_0x2277a6)continue;const _0xeafaf7=_0x47336b?'suggestion:'+_0x397830+':'+_0x47336b+':'+_0x517cd7:'suggestion:'+_0x397830+':'+_0x517cd7,_0x3d9692=_0x3595f2['model']['markers']['getMarkersGroup'](_0xeafaf7),_0x3c98a7=_0x3595f2['model']['markers']['get'](_0x5219ec),_0x405136=this['_suggestions']['get'](_0x517cd7);if(null!=_0x4c8f64['newRange']){'formatInline'==_0x397830&&(_0x28c87c=_0x28c87c||Pt(_0x4c8f64['newRange'],_0x5219ec,_0x38c47e,_0x3595f2['model']['schema']));const _0x3beb1b='attribute'==_0x397830&&this['_suggestionsConversion']['isBlockAttribute'](Xt(_0x47336b)),_0x317a7b='attribute'==_0x397830&&this['_suggestionsConversion']['isInlineAttribute'](Xt(_0x47336b));if(_0x4c8f64['newRange']['isCollapsed']||'$graveyard'==_0x4c8f64['newRange']['root']['rootName']||'formatBlock'==_0x397830&&!Ut(_0x4c8f64['newRange'])||_0x3beb1b&&!Ut(_0x4c8f64['newRange'])||_0x317a7b&&Gt(_0x4c8f64['newRange'])||'deletion'==_0x397830&&Gt(_0x4c8f64['newRange'])||_0x3c98a7&&Ht(_0x3c98a7,_0x3d9692))_0x38c47e['removeMarker'](_0x5219ec),_0x28c87c=!0x0;else{if(!_0x405136||!_0x405136['isInContent'])continue;if(_0x4c8f64['newRange']&&_0x4c8f64['oldRange']&&_0x4c8f64['newRange']['isEqual'](_0x4c8f64['oldRange']))continue;_0xf81996['add'](_0x405136);}}}return _0xf81996['size']>0x0&&(_0x28c87c=!!this['_joinWithAdjacentSuggestions'](_0xf81996)||_0x28c87c),_0x28c87c;}),_0x3595f2['model']['document']['registerPostFixer'](_0x570217=>{let _0x489c9d=!0x1;for(const _0x564845 of _0x3595f2['model']['document']['differ']['getChanges']())if('insert'==_0x564845['type'])for(const _0x305282 of this['_suggestions']['values']()){if(_0x305282['isMultiRange']||!_0x305282['isInContent'])continue;const _0x2e40ce='formatBlock'==_0x305282['type'],_0x24625d=this['_getAttributeKey'](_0x305282),_0x96a89f=_0x24625d&&this['_suggestionsConversion']['isBlockAttribute'](_0x24625d);if(!_0x2e40ce&&!_0x96a89f)continue;const _0x5c65ed=_0x305282['getFirstRange']();if(_0x5c65ed['start']['parent']!=_0x5c65ed['end']['parent']&&!_0x5c65ed['end']['isAtEnd']){const _0x4843af=_0x3595f2['model']['createPositionAt'](_0x5c65ed['start']['nodeAfter'],'end'),_0x470789=_0x3595f2['model']['createRange'](_0x5c65ed['start'],_0x4843af);_0x570217['updateMarker'](_0x305282['getFirstMarker'](),{'range':_0x470789}),_0x489c9d=!0x0;}}return _0x489c9d;}),_0x3595f2['model']['document']['registerPostFixer'](_0x4e073e=>this['_processAttributeChanges'](_0x4e073e)),_0x3595f2['model']['document']['registerPostFixer'](_0x38325c=>!_0x38325c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x38325c)),_0x3595f2['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3595f2['model']['document']['on']('change:data',(_0x2962d2,_0x3fdda8)=>{if(!_0x3fdda8['isLocal']||_0x3fdda8['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3b4aad=_0x3595f2['model']['document']['differ']['getChanges']();if(0x0==_0x3b4aad['length'])return;const _0x394228=[],_0x3a300a=_0x3b4aad['filter'](_0xe05b7f=>'attribute'==_0xe05b7f['type']),_0x534d4a=_0x3b4aad['filter'](_0x5bc7e3=>'insert'==_0x5bc7e3['type']&&'$text'!=_0x5bc7e3['name']);for(const _0x3c8052 of _0x3a300a)this['_suggestionsConversion']['isRegisteredAttribute'](_0x3c8052['attributeKey'])&&_0x394228['push']({'key':_0x3c8052['attributeKey'],'newValue':_0x3c8052['attributeNewValue'],'oldValue':_0x3c8052['attributeOldValue'],'range':$t(_0x3c8052['range'],_0x3595f2['model'])});for(const _0x3177ee of _0x534d4a){if('rename'!=_0x3177ee['action']&&'refresh'!=_0x3177ee['action'])continue;const _0x5a5687=Vt(_0x3177ee['position']['nodeAfter'],_0x3595f2['model']),_0x24cea5=_0x3177ee['before'];'rename'==_0x3177ee['action']&&_0x394228['push']({'key':Bt,'newValue':_0x3177ee['name'],'oldValue':_0x24cea5['name'],'range':_0x5a5687});for(const [_0x191d48,_0x49c5f0]of _0x24cea5['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x191d48))continue;const _0xb271d=_0x3177ee['attributes']['get'](_0x191d48);_0x49c5f0!==_0xb271d&&_0x394228['push']({'key':_0x191d48,'newValue':_0xb271d,'oldValue':_0x49c5f0,'range':_0x5a5687});}for(const [_0x19c352,_0x501cd0]of _0x3177ee['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x19c352)&&(_0x24cea5['attributes']['has'](_0x19c352)||_0x394228['push']({'key':_0x19c352,'newValue':_0x501cd0,'oldValue':null,'range':_0x5a5687}));}0x0!=_0x394228['length']&&_0x3595f2['model']['enqueueChange'](_0x3fdda8,_0x1990f2=>{const _0x5c5b43=_0x1e5a7d();for(const {range:_0x10e5d1,key:_0x2d51ed,oldValue:_0x12634e,newValue:_0xe77b88}of _0x394228)this['markAttributeChange'](_0x10e5d1,_0x2d51ed,_0x12634e,_0xe77b88,{'groupId':_0x5c5b43});this['_reduceExistingSuggestions'](_0x1990f2,_0x394228);});},{'priority':'lowest'}),_0x3595f2['model']['markers']['on']('update:suggestion',(_0x1eb798,_0xaf2cdc,_0x2fec13)=>{if(null==_0x2fec13){const {id:_0x2952cf}=_0x4f787f(_0xaf2cdc['name']),_0x10a8cc=this['_suggestions']['get'](_0x2952cf);_0x10a8cc&&_0x10a8cc['addMarkerName'](_0xaf2cdc['name']);}}),_0x3595f2['model']['document']['on']('change:data',()=>{const _0x47f387=Array['from'](_0x3595f2['model']['document']['differ']['getChangedMarkers']())['filter'](_0xb7553=>'suggestion'===_0x4f787f(_0xb7553['name'])['group']);if(0x0===_0x47f387['length'])return;_0x47f387['sort']((_0x59fbad,_0x4800ca)=>{const _0x298448=_0x59fbad['data']['oldRange'],_0x206cee=_0x4800ca['data']['oldRange'];return null===_0x298448&&null===_0x206cee?0x0:null===_0x298448&&null!==_0x206cee?-0x1:null!==_0x298448&&null===_0x206cee?0x1:_0x298448['start']['isBefore'](_0x206cee['start'])?-0x1:0x1;});const _0x181786=new Set(),_0x15b399=new Set();for(const {name:_0x31aedf,data:_0x582163}of _0x47f387){const {id:_0x1d4377}=_0x4f787f(_0x31aedf);if(null===_0x582163['oldRange']){const _0x147af1=this['_handleNewSuggestionMarker'](_0x31aedf);_0x15b399['add'](_0x147af1);}else{const _0x394e33=this['_suggestions']['get'](_0x1d4377);null!==_0x582163['newRange']||_0x394e33['isInContent']?(_0x181786['add'](_0x394e33['head']),_0x15b399['add'](_0x394e33)):this['_removeSuggestion'](_0x394e33);}}_0x15b399['size']>0x0&&this['_refreshSuggestionsChain'](_0x15b399);for(const _0x4a5093 of _0x181786)this['fire']('suggestionChanged',_0x4a5093);}),_0x3595f2['model']['on']('applyOperation',(_0x155b11,_0x5da96a)=>{const _0x3ca503=_0x5da96a[0x0];if(!this['_suggestions']['size'])return;if(!_0x3ca503['isDocumentOperation'])return;if(_0x3ca503['batch']['isUndo']||!_0x3ca503['batch']['isLocal'])return;let _0x4f3bf2,_0x39f0e6;switch(_0x3ca503['type']){case'insert':_0x4f3bf2=_0x3595f2['model']['createPositionAt'](_0x3ca503['position']),_0x39f0e6=_0x4f3bf2['getShiftedBy'](_0x3ca503['howMany']);break;case'split':_0x4f3bf2=_0x3595f2['model']['createPositionAt'](_0x3ca503['splitPosition']),_0x39f0e6=_0x3595f2['model']['createPositionAt'](_0x3ca503['moveTargetPosition']);break;case'move':_0x4f3bf2=_0x3595f2['model']['createPositionAt'](_0x3ca503['targetPosition']),_0x39f0e6=_0x4f3bf2['getShiftedBy'](_0x3ca503['howMany']);break;default:return;}const _0xf5ed5c=_0x3595f2['model']['createRange'](_0x4f3bf2,_0x39f0e6);_0x3595f2['model']['change'](()=>{for(const {suggestion:_0x14e2a5,meta:_0x48fa68}of this['_findSuggestions'](_0xf5ed5c)){if(_0x14e2a5['isMultiRange'])continue;if('formatInline'==_0x14e2a5['type'])continue;const _0x1f3141=this['_getAttributeKey'](_0x14e2a5);if(_0x1f3141&&this['_suggestionsConversion']['isBlockAttribute'](_0x1f3141)&&'split'!=_0x3ca503['type'])continue;const _0x49c33f=_0x14e2a5['data']&&_0x14e2a5['data']['multipleBlocks'];('formatBlock'!=_0x14e2a5['type']||'split'==_0x3ca503['type']&&!_0x49c33f)&&(_0x48fa68['containsRangeInObject']||'insertion'==_0x14e2a5['type']&&_0x48fa68['isOwn']||_0x14e2a5['getFirstRange']()['containsRange'](_0xf5ed5c)&&this['_breakSuggestionMarker'](_0x14e2a5,_0x4f3bf2,_0x39f0e6));}});},{'priority':'lowest'}),_0x3595f2['model']['on']('deleteContent',(_0x3947f1,_0x4f06dd)=>{const _0x4ed79e=_0x4f06dd[0x0],_0x20ce70=_0x4f06dd[0x1];if(_0x20ce70&&_0x20ce70['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4ed79e['isCollapsed'])return;const _0x494775=_0x3595f2['model']['schema'],{start:_0x3b0bd8,end:_0x568e1b}=_0x4ed79e['getFirstRange'](),_0x22f182=_0x3b0bd8['nodeAfter']&&_0x494775['isLimit'](_0x3b0bd8['nodeAfter'])?null:_0x494775['getNearestSelectionRange'](_0x3b0bd8,'forward'),_0x250879=_0x568e1b['nodeBefore']&&_0x494775['isLimit'](_0x568e1b['nodeBefore'])?null:_0x494775['getNearestSelectionRange'](_0x568e1b,'backward'),_0x1946b5=_0x3595f2['model']['createRange'](_0x22f182?_0x22f182['start']:_0x3b0bd8,_0x250879?_0x250879['end']:_0x568e1b);_0x3595f2['model']['change'](_0xa56b87=>{this['markDeletion'](_0x1946b5);const _0x1755f2=_0x3595f2['model']['schema']['getNearestSelectionRange'](_0x1946b5['start']);_0x4ed79e['is']('documentSelection')?_0xa56b87['setSelection'](_0x1755f2):_0x4ed79e['setTo'](_0x1755f2);}),_0x3947f1['stop']();},{'priority':_0xcf8801['normal']+0xa}),_0x3595f2['model']['on']('insertContent',(_0x4da67e,_0x159b21)=>{const _0x20940b=_0x159b21[_0x159b21['length']-0x1];_0x20940b&&_0x20940b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3595f2['model']['change'](()=>{let _0x566818=_0x3595f2['model']['insertContent'](_0x159b21[0x0],_0x159b21[0x1],_0x159b21[0x2],{'forceDefaultExecution':!0x0});if(!_0x566818)return;_0x4da67e['return']=_0x566818['clone']();const _0x18e4f0=_0x566818['end']['nodeBefore'],_0x47216b=_0x3595f2['model']['schema'];_0x18e4f0&&_0x47216b['isBlock'](_0x18e4f0)&&!_0x47216b['isObject'](_0x18e4f0)&&(_0x566818=_0x3595f2['model']['createRange'](_0x566818['start'],_0x3595f2['model']['createPositionAt'](_0x18e4f0,'end'))),this['markInsertion'](_0x566818);}),_0x4da67e['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x258476=new AcceptSuggestionCommand(_0x3595f2,this['_suggestions']);_0x3595f2['commands']['add']('acceptSuggestion',_0x258476),this['enableCommand']('acceptSuggestion');const _0x441a70=new DiscardSuggestionCommand(_0x3595f2,this['_suggestions']);_0x3595f2['commands']['add']('discardSuggestion',_0x441a70),this['enableCommand']('discardSuggestion'),_0x3595f2['commands']['add']('acceptAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x3595f2,_0x258476,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3595f2['commands']['add']('discardAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x3595f2,_0x441a70,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3595f2['commands']['add']('acceptSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x3595f2,_0x258476,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3595f2['commands']['add']('discardSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x3595f2,_0x441a70,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4543d4=_0x3595f2['plugins']['get'](_0x300715);this['listenTo'](_0x4543d4,'addComment',(_0x500bf6,{threadId:_0x543ed8})=>{const _0x50f2d5=this['_suggestions']['get'](_0x543ed8);_0x50f2d5&&_0x50f2d5['commentThread']&&0x1===_0x50f2d5['commentThread']['length']&&this['_updateSuggestionData'](_0x543ed8,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4543d4,'removeComment',(_0x5a29c7,{threadId:_0x111538})=>{const _0x2659c7=this['_suggestions']['get'](_0x111538);_0x2659c7&&_0x2659c7['commentThread']&&!_0x2659c7['commentThread']['length']&&this['_updateSuggestionData'](_0x111538,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2f9aa0){const _0x39aa5e=_0x2233b1([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]),_0xfcc9f1=0x3d8d0df,_0x4f05ce=0x3df5b7f^_0xfcc9f1,_0x2c4fab=window[_0x2233b1([0x44,0x61,0x74,0x65])][_0x2233b1([0x6e,0x6f,0x77])](),_0x4f7a8b=_0x2f9aa0[_0x2233b1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2683bc=new window[(_0x2233b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49af47=>{_0x4f7a8b[_0x2233b1([0x6f,0x6e,0x63,0x65])](_0x2233b1([0x72,0x65,0x61,0x64,0x79]),_0x49af47);}),_0x564f24={[_0x2233b1([0x6b,0x74,0x79])]:_0x2233b1([0x45,0x43]),[_0x2233b1([0x75,0x73,0x65])]:_0x2233b1([0x73,0x69,0x67]),[_0x2233b1([0x63,0x72,0x76])]:_0x2233b1([0x50,0x2d,0x32,0x35,0x36]),[_0x2233b1([0x78])]:_0x2233b1([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]),[_0x2233b1([0x79])]:_0x2233b1([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]),[_0x2233b1([0x61,0x6c,0x67])]:_0x2233b1([0x45,0x53,0x32,0x35,0x36])},_0x590824=_0x4f7a8b[_0x2233b1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2233b1([0x67,0x65,0x74])](_0x2233b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x63ae69(){let _0x6d725c,_0x1ed348=null,_0x519b41=null;try{if(_0x590824==_0x2233b1([0x47,0x50,0x4c]))return _0x2233b1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x6d725c=_0x345889(),!_0x6d725c)return _0x2233b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x6d725c[_0x2233b1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x519b41=_0x2421b3(_0x6d725c[_0x2233b1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x6d725c[_0x2233b1([0x6a,0x74,0x69])])),await _0x1a2d38()?_0x5887b2()?_0x2b7d92()?_0x2233b1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5d3327()?(_0x6d725c[_0x2233b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2233b1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1ed348=_0x2bc52f(_0x2233b1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x380016()):_0x2233b1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2233b1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2233b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2233b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2b7d92(){const _0x36fcd3=[_0x2233b1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2233b1([0x74,0x72,0x69,0x61,0x6c])][_0x2233b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6d725c[_0x2233b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2c4fab/0x3e8:0xe10*_0x4f05ce;return _0x6d725c[_0x2233b1([0x65,0x78,0x70])]<_0x36fcd3;}function _0x5887b2(){const _0x2e9804=_0x6d725c[_0x2233b1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2e9804)return!0x1;if(_0x2e9804[_0x2233b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2233b1([0x2a])))return!0x0;if(_0x2e9804[_0x2233b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2233b1([0x54,0x43])))return!0x0;if(_0x2e9804[_0x2233b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2233b1([0x52,0x54,0x43]))){if(_0x104c8e())return!0x0;if(_0x516f43()||_0x3e8122())return!0x0;}return!0x1;}function _0x5d3327(){const _0x4c3655=_0x6d725c[_0x2233b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4c3655||0x0==_0x4c3655[_0x2233b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x35378f}=new URL(window[_0x2233b1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4c3655[_0x2233b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35378f))return!0x0;const _0x28d04b=_0x35378f[_0x2233b1([0x73,0x70,0x6c,0x69,0x74])](_0x2233b1([0x2e]));return _0x4c3655[_0x2233b1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3e759c=>_0x3e759c[_0x2233b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2233b1([0x2a])))[_0x2233b1([0x6d,0x61,0x70])](_0x2f2290=>_0x2f2290[_0x2233b1([0x73,0x70,0x6c,0x69,0x74])](_0x2233b1([0x2e])))[_0x2233b1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x41283c=>_0x41283c[_0x2233b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x28d04b[_0x2233b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2233b1([0x6d,0x61,0x70])](_0x2e9a00=>Array(_0x28d04b[_0x2233b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2e9a00[_0x2233b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2233b1([0x66,0x69,0x6c,0x6c])](_0x2e9a00[0x0]===_0x2233b1([0x2a])?_0x2233b1([0x2a]):'')[_0x2233b1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2e9a00))[_0x2233b1([0x73,0x6f,0x6d,0x65])](_0x1cd19a=>_0x28d04b[_0x2233b1([0x65,0x76,0x65,0x72,0x79])]((_0xb8cb7e,_0xe796bd)=>_0x1cd19a[_0xe796bd]===_0xb8cb7e||_0x1cd19a[_0xe796bd]===_0x2233b1([0x2a])));}function _0x380016(){return _0x1ed348&&_0x519b41?new window[(_0x2233b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x18ebff,_0x16f3a3)=>{_0x1ed348[_0x2233b1([0x74,0x68,0x65,0x6e])](_0x18ebff,_0x16f3a3),_0x519b41[_0x2233b1([0x74,0x68,0x65,0x6e])](_0x16d696=>{_0x16d696!=_0x2233b1([0x56,0x61,0x6c,0x69,0x64])&&_0x18ebff(_0x16d696);},_0x16f3a3);}):_0x1ed348||_0x519b41||_0x2233b1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2421b3(_0x1c71b4,_0xd5ffdc){return new window[(_0x2233b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ead57=>{if(_0x27a7e9())return _0x5ead57(_0x2233b1([0x56,0x61,0x6c,0x69,0x64]));_0x1ee218(),_0x4f7a8b[_0x2233b1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2233b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xb1ae61=!0x1;const _0x126e38=_0x1e5a7d();function _0xc5f7f4(_0x4f8ff1){return!!_0x4f8ff1&&(typeof _0x4f8ff1===_0x2233b1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4f8ff1===_0x2233b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4f8ff1[_0x2233b1([0x74,0x68,0x65,0x6e])]===_0x2233b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4f8ff1[_0x2233b1([0x63,0x61,0x74,0x63,0x68])]===_0x2233b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3e70ed(_0x1987df){_0x4e2eb7(_0x1987df)[_0x2233b1([0x74,0x68,0x65,0x6e])](_0x2d9bbc=>{if(!_0x2d9bbc||_0x2d9bbc[_0x2233b1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2233b1([0x6f,0x6b]))return _0x2233b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5600d0(_0x4f8825(_0x126e38+_0xd5ffdc))!=_0x2d9bbc[_0x2233b1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2233b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2233b1([0x56,0x61,0x6c,0x69,0x64]);})[_0x2233b1([0x74,0x68,0x65,0x6e])](_0x392e87=>(_0x503c61(),_0x392e87),()=>{const _0x157ece=_0x3ceaf1();return null==_0x157ece?(_0x503c61(),_0x2233b1([0x56,0x61,0x6c,0x69,0x64])):_0x2233b1(_0x2c4fab-_0x157ece>(0x27d454df^_0xfcc9f1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2233b1([0x74,0x68,0x65,0x6e])](_0x5ead57)[_0x2233b1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5ead57(_0x2233b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2a3442=0x3ee3e5f^_0xfcc9f1;function _0x503c61(){const _0x15d101=_0x2233b1([0x6c,0x6c,0x63,0x74,0x2d])+_0x5600d0(_0x4f8825(_0x1c71b4)),_0xb89efc=_0x448d8d(_0x5600d0(window[_0x2233b1([0x4d,0x61,0x74,0x68])][_0x2233b1([0x63,0x65,0x69,0x6c])](_0x2c4fab/_0x2a3442)));window[_0x2233b1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2233b1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15d101,_0xb89efc);}function _0x3ceaf1(){const _0x140099=_0x2233b1([0x6c,0x6c,0x63,0x74,0x2d])+_0x5600d0(_0x4f8825(_0x1c71b4)),_0x6b2898=window[_0x2233b1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2233b1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x140099);return _0x6b2898?window[_0x2233b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x448d8d(_0x6b2898),0x10)*_0x2a3442:null;}function _0x4e2eb7(_0x529763){return new window[(_0x2233b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x405c22,_0x39e8f2)=>{_0x529763[_0x2233b1([0x74,0x68,0x65,0x6e])](_0x405c22,_0x39e8f2),window[_0x2233b1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x39e8f2,0x3d9041f^_0xfcc9f1);});}}_0x4f7a8b[_0x2233b1([0x6f,0x6e])](_0x2233b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1e363c,_0xf338b9)=>{if(_0xf338b9[0x0]!=_0x1c71b4)return _0x5ead57(_0x2233b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xf338b9[0x1]={..._0xf338b9[0x1],[_0x2233b1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x126e38};},{[_0x2233b1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2233b1([0x68,0x69,0x67,0x68])}),_0x4f7a8b[_0x2233b1([0x6f,0x6e])](_0x2233b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4a2ed4=>{_0xc5f7f4(_0x4a2ed4[_0x2233b1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xb1ae61=!0x0,_0x3e70ed(_0x4a2ed4[_0x2233b1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2233b1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2233b1([0x6c,0x6f,0x77])}),_0x2683bc[_0x2233b1([0x74,0x68,0x65,0x6e])](()=>{_0xb1ae61||_0x5ead57(_0x2233b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x27a7e9(){return _0x4f7a8b[_0x2233b1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2233b1([0x76,0x69,0x65,0x77])][_0x2233b1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2233b1([0x61,0x75,0x74,0x6f]);}function _0x1ee218(){_0x4f7a8b[_0x2233b1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2233b1([0x76,0x69,0x65,0x77])][_0x2233b1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2233b1([0x61,0x75,0x74,0x6f]);}}function _0x2bc52f(_0x2d1618){const _0x595587=[new window[(_0x2233b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x591b93=>setTimeout(_0x591b93,0x3d1ee13^_0xfcc9f1)),_0x2683bc[_0x2233b1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2233b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4aed4f=>{let _0x256c79=0x0;_0x4f7a8b[_0x2233b1([0x6d,0x6f,0x64,0x65,0x6c])][_0x2233b1([0x6f,0x6e])](_0x2233b1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x261ca4,_0x405437)=>{_0x405437[0x0][_0x2233b1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x256c79++,_0x256c79==(0x3d8d537^_0xfcc9f1)&&(_0x4aed4f(),_0x261ca4[_0x2233b1([0x6f,0x66,0x66])]());});}))];return window[_0x2233b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2233b1([0x72,0x61,0x63,0x65])](_0x595587)[_0x2233b1([0x74,0x68,0x65,0x6e])](()=>_0x2d1618);}async function _0x34e265(){await _0x2683bc,_0x4f7a8b[_0x2233b1([0x6d,0x6f,0x64,0x65,0x6c])][_0x2233b1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2125e9,_0x4f7a8b[_0x2233b1([0x6d,0x6f,0x64,0x65,0x6c])][_0x2233b1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2125e9,_0x4f7a8b[_0x2233b1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2233b1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x104c8e(){return _0x1e51af(_0x2233b1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1769e0(_0x2233b1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2233b1([0x73,0x74,0x61,0x74,0x65])]==_0x2233b1([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x516f43(){return _0x1e51af(_0x2233b1([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 _0x3e8122(){return _0x1e51af(_0x2233b1([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x24d8c0(_0x1b9251){const _0x5a80f1=_0x3c08a1();_0x4f7a8b[_0x5a80f1]=_0x2233b1([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1b9251,_0x1b9251!=_0x2233b1([0x56,0x61,0x6c,0x69,0x64])&&_0x34e265();}function _0x3c08a1(){const _0x5bb1b4=window[_0x2233b1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2233b1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2233b1([0x6e,0x6f,0x77])]())[_0x2233b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2233b1([0x2e]),'');let _0x324b81=_0x2233b1([0x52]);for(let _0x4fea70=0x0;_0x4fea70<_0x5bb1b4[_0x2233b1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4fea70+=0x2){let _0xe35390=window[_0x2233b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5bb1b4[_0x2233b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4fea70,_0x4fea70+0x2));_0xe35390>=_0x39aa5e[_0x2233b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xe35390-=_0x39aa5e[_0x2233b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x324b81+=_0x39aa5e[_0xe35390];}return _0x324b81;}function _0x345889(){const _0x3094f0=_0x590824[_0x2233b1([0x73,0x70,0x6c,0x69,0x74])](_0x2233b1([0x2e]));if(0x3!=_0x3094f0[_0x2233b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xaccc43(_0x3094f0[0x1]);function _0xaccc43(_0x17a7ea){const _0x534ca6=_0x3e940e(_0x17a7ea);return _0x534ca6&&_0x3a97ca()?_0x534ca6:null;function _0x3a97ca(){const _0x304e8d=_0x534ca6[_0x2233b1([0x6a,0x74,0x69])],_0x2852c4=window[_0x2233b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x304e8d[_0x2233b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x304e8d[_0x2233b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5516a7={..._0x534ca6,[_0x2233b1([0x6a,0x74,0x69])]:_0x304e8d[_0x2233b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x304e8d[_0x2233b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5516a7[_0x2233b1([0x76,0x63])],_0x4f8825(_0x5516a7)==_0x2852c4;}}}async function _0x1a2d38(){let _0x2984c2=!0x0;try{const _0x3a4dd4=_0x590824[_0x2233b1([0x73,0x70,0x6c,0x69,0x74])](_0x2233b1([0x2e])),[_0x3b80ea,_0x40f157,_0x59ce7c]=_0x3a4dd4;return _0x2dce7c(_0x3b80ea),await _0x2ff9bb(_0x3b80ea,_0x40f157,_0x59ce7c),_0x2984c2;}catch{return!0x1;}function _0x2dce7c(_0x5c10ed){const _0x27331e=_0x3e940e(_0x5c10ed);_0x27331e&&_0x27331e[_0x2233b1([0x61,0x6c,0x67])]==_0x2233b1([0x45,0x53,0x32,0x35,0x36])||(_0x2984c2=!0x1);}async function _0x2ff9bb(_0x189bfe,_0x419ea3,_0xe99e4d){const _0x4ea6ba=window[_0x2233b1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2233b1([0x66,0x72,0x6f,0x6d])](_0x8bc3d7(_0xe99e4d),_0x204bde=>_0x204bde[_0x2233b1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4ed203=new window[(_0x2233b1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2233b1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x189bfe+_0x2233b1([0x2e])+_0x419ea3),_0x2453dd=window[_0x2233b1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2233b1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2453dd)return;const _0x534a94=await _0x2453dd[_0x2233b1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2233b1([0x6a,0x77,0x6b]),_0x564f24,{[_0x2233b1([0x6e,0x61,0x6d,0x65])]:_0x2233b1([0x45,0x43,0x44,0x53,0x41]),[_0x2233b1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2233b1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2233b1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2453dd[_0x2233b1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2233b1([0x6e,0x61,0x6d,0x65])]:_0x2233b1([0x45,0x43,0x44,0x53,0x41]),[_0x2233b1([0x68,0x61,0x73,0x68])]:{[_0x2233b1([0x6e,0x61,0x6d,0x65])]:_0x2233b1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x534a94,_0x4ea6ba,_0x4ed203)||(_0x2984c2=!0x1);}}function _0x3e940e(_0x3ce01e){return _0x3ce01e[_0x2233b1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2233b1([0x65,0x79]))?JSON[_0x2233b1([0x70,0x61,0x72,0x73,0x65])](_0x8bc3d7(_0x3ce01e)):null;}function _0x8bc3d7(_0x3422a9){return window[_0x2233b1([0x61,0x74,0x6f,0x62])](_0x3422a9[_0x2233b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2233b1([0x2b]))[_0x2233b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2233b1([0x2f])));}function _0x4f8825(_0x504237){let _0x3ad7fd=0x1505;function _0x22a800(_0x22ed91){for(let _0x2a69f2=0x0;_0x2a69f2<_0x22ed91[_0x2233b1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2a69f2++){const _0x767243=_0x22ed91[_0x2233b1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2a69f2);_0x3ad7fd=(_0x3ad7fd<<0x5)+_0x3ad7fd+_0x767243,_0x3ad7fd&=_0x3ad7fd;}}function _0x504420(_0x2b31a4){Array[_0x2233b1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2b31a4)?_0x2b31a4[_0x2233b1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x504420):_0x2b31a4&&typeof _0x2b31a4==_0x2233b1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2233b1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2b31a4)[_0x2233b1([0x73,0x6f,0x72,0x74])]()[_0x2233b1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x402a92,_0x40d8a5])=>{_0x22a800(_0x402a92),_0x504420(_0x40d8a5);}):_0x22a800(window[_0x2233b1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2b31a4));}return _0x504420(_0x504237),_0x3ad7fd>>>0x0;}function _0x5600d0(_0x5a77b0){return _0x5a77b0[_0x2233b1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2233b1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2233b1([0x30]));}function _0x448d8d(_0x1d14cd){return _0x1d14cd[_0x2233b1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2233b1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2233b1([0x6a,0x6f,0x69,0x6e])]('');}function _0x1e51af(_0x23ce8a){return _0x4f7a8b[_0x2233b1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2233b1([0x68,0x61,0x73])](_0x23ce8a);}function _0x1769e0(_0x17df4c){return _0x4f7a8b[_0x2233b1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2233b1([0x67,0x65,0x74])](_0x17df4c);}function _0x2125e9(){}function _0x2233b1(_0x521564){return _0x521564['map'](_0x2008eb=>String['fromCharCode'](_0x2008eb))['join']('');}_0x24d8c0(await _0x63ae69());}(this);}set['adapter'](_0x545dc8){if(this['_adapter'])throw new _0x2618c5('track-changes-adapter-already-set',this);this['_adapter']=_0x545dc8;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x17b6f3=!0x1,toJSON:_0x5300a0=!0x1}={}){const _0x4eea77=[];for(const _0x5b2909 of this['_suggestions']['values']())_0x17b6f3&&!_0x5b2909['isInContent']||_0x4eea77['push'](_0x5b2909);return _0x5300a0?_0x4eea77['map'](_0x7171b5=>_0x7171b5['toJSON']()):_0x4eea77;}['getSuggestion'](_0x96b25c){const _0x3e1c71=this['_suggestions']['get'](_0x96b25c);if(!_0x3e1c71)throw new _0x2618c5('track-changes-suggestion-not-found',this);return _0x3e1c71;}['hasSuggestion'](_0x35bb65){return this['_suggestions']['has'](_0x35bb65);}['addSuggestionData'](_0x24bdb7){const {authorId:_0x5e8726,id:_0x4cab32,originalSuggestionId:_0x4865ce,attributes:_0x3f26f8}=_0x24bdb7,[_0x58fa1c,_0x55d7b8]=_0x24bdb7['type']['split'](':'),_0x5924a0=this['_suggestions']['get'](_0x4cab32)||this['_createSuggestion'](_0x58fa1c,_0x55d7b8,_0x4cab32,_0x5e8726,_0x3f26f8,_0x4865ce);if(this['_addThreadToSuggestion'](_0x5924a0),this['_checkSuggestionCorrectness'](_0x5924a0,_0x58fa1c,_0x55d7b8||null,_0x5e8726),_0x5924a0['createdAt']=_0x24bdb7['createdAt'],_0x5924a0['_isDataLoaded']=!0x0,_0x3f26f8&&_0x3f26f8['@external']){const _0x981a06=_0x3f26f8['@external'],_0x267b12=this['_getExternalAuthor'](_0x981a06['authorName']);_0x5924a0['authoredAt']=_0x981a06['createdAt'],_0x5924a0['author']=_0x267b12,_0x5924a0['isExternal']=!0x0;}else _0x5924a0['authoredAt']=_0x24bdb7['createdAt'];switch(_0x24bdb7['data']&&(_0x5924a0['data']=_0x24bdb7['data']),_0x24bdb7['attributes']&&(_0x5924a0['attributes']=_0x24bdb7['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5924a0['_saved']=!0x0),this['_suggestionState']['get'](_0x5924a0)){case'notReady':this['_suggestionState']['set'](_0x5924a0,'dataReady');break;case'markerReady':_0x5924a0['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5924a0])),this['_refreshSuggestionsChain'](new Set([_0x5924a0])),this['_suggestionState']['set'](_0x5924a0,'ready'),this['fire']('suggestionLoaded',_0x5924a0)):this['_suggestionState']['set'](_0x5924a0,'removed');}return _0x5924a0;}['acceptSuggestion'](_0x40f843){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x18ab16 of _0x40f843['getAllAdjacentSuggestions']())_0x18ab16['accept']();});});}['discardSuggestion'](_0x1c8321){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x86c079 of _0x1c8321['getAllAdjacentSuggestions']())_0x86c079['discard']();});});}['enableCommand'](_0xd27674,_0x29523c){const _0x82af66=this['editor']['commands']['get'](_0xd27674);if(!_0x82af66)throw new _0x2618c5('track-changes-command-not-found',this,{'commandName':_0xd27674});if(this['_enabledCommands']['has'](_0x82af66))throw new _0x2618c5('track-changes-enable-command-twice',this,{'commandName':_0xd27674});this['_enabledCommands']['add'](_0x82af66),_0x29523c&&_0x82af66['on']('execute',(_0x24072a,_0x2aba68)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2aba68['length']>0x0&&_0x2aba68[_0x2aba68['length']-0x1]&&_0x2aba68[_0x2aba68['length']-0x1]['forceDefaultExecution']?_0x2aba68['pop']():(_0x24072a['return']=_0x29523c((..._0x14c94a)=>_0x82af66['execute'](..._0x14c94a,{'forceDefaultExecution':!0x0}),..._0x2aba68),_0x24072a['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x227098){let _0x2a0cf2,_0x10a9c5;const _0x7b7bbd=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2a0cf2=_0x227098();}catch(_0x5d52df){_0x10a9c5=_0x5d52df;}return _0x7b7bbd||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x10a9c5&&_0x2618c5['rethrowUnexpectedError'](_0x10a9c5,this),_0x2a0cf2;}['markInsertion'](_0x46e8aa,_0x398410=null,_0x35910b={}){if(_0x46e8aa['isCollapsed'])return null;const _0x18a108=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x35910b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x144aac,meta:_0x1d4697}of this['_findSuggestions'](_0x46e8aa,'insertion'))if(_0x1d4697['isOwn']){if(!_0x1d4697['isNextTo']){if(_0x1d4697['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x144aac,_0x35910b))continue;return _0x144aac;}if(zt(_0x144aac,_0x35910b))return _0x144aac;this['_breakSuggestionMarker'](_0x144aac,_0x46e8aa['start'],_0x46e8aa['end']);break;}if(_0x398410==_0x144aac['subType']&&zt(_0x144aac,_0x35910b)){const _0x269f53=_0x144aac['getFirstRange']();return _0x269f53['start']['isEqual'](_0x46e8aa['end'])?this['_setSuggestionRange'](_0x144aac,this['_model']['createRange'](_0x46e8aa['start'],_0x269f53['end'])):this['_setSuggestionRange'](_0x144aac,this['_model']['createRange'](_0x269f53['start'],_0x46e8aa['end'])),_0x144aac;}}const _0x255409=_0x1e5a7d(),_0x549f6c=_0x18a108['id'],_0x5203f3=_0x398410?'insertion:'+_0x398410:'insertion',_0x587d05=this['_setSuggestionData']({'id':_0x255409,'type':_0x5203f3,'createdAt':new Date(),'authorId':_0x549f6c,'attributes':_0x35910b});return this['_addSuggestionMarker'](_0x5203f3,_0x255409,_0x549f6c,_0x46e8aa),_0x587d05;}['markMultiRangeInsertion'](_0x2593d7,_0x587bc7='multi',_0x4eee45={}){const _0x546a6f=this['editor']['plugins']['get']('Users')['me'],_0x3ba927=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x587bc7,'join');this['_trackingSessionId']&&(_0x4eee45['trackingSessionId']=this['_trackingSessionId']);for(const _0x118873 of this['getSuggestions']())if(_0x118873['author']['id']==_0x546a6f['id']&&'insertion'==_0x118873['type']&&_0x118873['subType']==_0x587bc7&&zt(_0x118873,_0x4eee45)&&(_0x3ba927(_0x118873['getRanges'](),_0x2593d7)||_0x3ba927(_0x2593d7,_0x118873['getRanges']()))){for(const _0x417711 of _0x2593d7)_0x118873['addRange'](_0x417711);return _0x118873;}for(const {suggestion:_0x208fe7,meta:_0xb1e04a}of this['_findSuggestions'](_0x2593d7,'insertion')){if(!_0xb1e04a['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xb1e04a['containsRangeInObject'])continue;if(!zt(_0x208fe7,_0x4eee45))continue;let _0x241d66=!0x0;for(const _0x238219 of _0x208fe7['getRanges']())for(const _0xa0c42 of _0x2593d7)if(!_0x238219['containsRange'](_0xa0c42)){_0x241d66=!0x1;break;}if(_0x241d66)return _0x208fe7;}const _0x2528e4=_0x1e5a7d(),_0x5e9626=_0x546a6f['id'],_0x33935a='insertion:'+_0x587bc7,_0x1a0558=this['_setSuggestionData']({'id':_0x2528e4,'type':_0x33935a,'createdAt':new Date(),'authorId':_0x5e9626,'attributes':_0x4eee45});for(const _0x1cd8dc of _0x2593d7)this['_addSuggestionMarker'](_0x33935a,_0x2528e4,_0x5e9626,_0x1cd8dc,Suggestion['getMultiRangeId']());return _0x1a0558;}['markInlineFormat'](_0x42d137,_0x3cd967,_0xe93851=null,_0x106862={}){if(_0xe93851=_0xe93851||xt(_0x3cd967),_0x42d137['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x106862['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x58ff52=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xe93851,'accept');return this['forceDefaultExecution'](()=>_0x58ff52([_0x42d137],_0x3cd967,_0x106862)),null;}const _0x3f8aa6=this['editor']['plugins']['get']('Users')['me'],_0xbc9ae1=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x59ae9b,meta:_0x41564d}of this['_findSuggestions'](_0x42d137,'insertion'))_0x41564d['isOwn']&&!_0x41564d['isInsideObject']&&_0xbc9ae1['push'](..._0x59ae9b['getRanges']());}const _0x6fa705=function(_0x198c7f,_0x13f41a){const _0x224204=[];for(const _0x5b3e16 of _0x13f41a){const _0x43dec6=_0x198c7f['getIntersection'](_0x5b3e16);_0x43dec6&&_0x224204['push'](_0x43dec6);}return _0x224204;}(_0x42d137,_0xbc9ae1),_0x2d6aec=function(_0x5a1f74,_0x479159){const _0x5eda5e=[_0x5a1f74];for(const _0x953eea of _0x479159){let _0x423049=0x0;for(;_0x423049<_0x5eda5e['length'];){const _0x464365=_0x5eda5e[_0x423049]['getDifference'](_0x953eea);_0x5eda5e['splice'](_0x423049,0x1,..._0x464365),_0x423049+=_0x464365['length'];}}return _0x5eda5e;}(_0x42d137,_0xbc9ae1);_0x6fa705['length']&&this['_model']['change'](()=>{for(const _0x1dc95d of _0x6fa705){const _0x1c5ae3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xe93851,'accept');this['forceDefaultExecution'](()=>_0x1c5ae3([_0x1dc95d],_0x3cd967,_0x106862));}});for(const _0x2c7e75 of _0x2d6aec){let _0x3b5321=null,_0x5e133b=_0x2c7e75['start'],_0x89b30f=_0x2c7e75['end'];for(const {suggestion:_0x29fbd5,meta:_0x4f2fbf}of this['_findSuggestions'](_0x2c7e75,'formatInline')){if(!_0x4f2fbf['isOwn'])continue;if(_0x29fbd5['subType']!=_0xe93851)continue;if(!zt(_0x29fbd5,_0x106862))continue;const _0x29f0b=_0x29fbd5['getFirstRange']();if(_0x29f0b['containsRange'](_0x2c7e75,!0x0))return null;_0x5e133b=_0x5e133b['isBefore'](_0x29f0b['start'])?_0x5e133b:_0x29f0b['start'],_0x89b30f=_0x89b30f['isAfter'](_0x29f0b['end'])?_0x89b30f:_0x29f0b['end'],_0x3b5321?_0x29f0b['start']['isBefore'](_0x3b5321['getFirstRange']()['start'])?(_0x3b5321['removeMarkers'](),_0x3b5321=_0x29fbd5):_0x29fbd5['removeMarkers']():_0x3b5321=_0x29fbd5;}const _0x1bbcd2=this['_model']['createRange'](_0x5e133b,_0x89b30f);if(_0x3b5321)this['_setSuggestionRange'](_0x3b5321,_0x1bbcd2);else{const _0x51876c=_0x1e5a7d(),_0x504f1a=_0x3f8aa6['id'];this['_setSuggestionData']({'id':_0x51876c,'type':'formatInline:'+_0xe93851,'data':_0x3cd967,'createdAt':new Date(),'authorId':_0x504f1a,'attributes':_0x106862}),this['_addSuggestionMarker']('formatInline:'+_0xe93851,_0x51876c,_0x504f1a,_0x1bbcd2);}}return null;}['markBlockFormat'](_0x43053e,_0x837b53,_0x37c55c=[],_0x4f9d15=null,_0x417927={}){_0x837b53['formatGroupId']||(_0x837b53['formatGroupId']=_0x837b53['commandName']),_0x837b53['multipleBlocks']=_0x43053e['is']('range'),_0x4f9d15=_0x4f9d15||xt(_0x837b53);const _0x57ddd5=_0x37c55c['map'](_0x3bb118=>Vt(_0x3bb118,this['_model'])),_0x68a509=_0x43053e['is']('range')?_0x43053e:Vt(_0x43053e,this['_model']);if(this['_trackingSessionId']&&(_0x417927['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x431da7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f9d15,'accept');return this['forceDefaultExecution'](()=>_0x431da7([_0x68a509],_0x837b53,_0x417927)),null;}_0x57ddd5['push'](_0x68a509);let _0x5a206d=!0x0;for(const _0x436a18 of _0x57ddd5)if(!this['_rangeIsInLocalUserInsertion'](_0x436a18)){_0x5a206d=!0x1;break;}if(_0x5a206d&&'always'!==this['_trackFormatChanges']){const _0x49eb0a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f9d15,'accept');return this['forceDefaultExecution'](()=>_0x49eb0a([_0x68a509],_0x837b53,_0x417927)),null;}let _0x157a97=null,_0xfbf0a3=_0x68a509['start'],_0xd3c722=_0x68a509['end'];for(const {suggestion:_0x5a541f,meta:_0x328677}of this['_findSuggestions'](_0x68a509,'formatBlock')){if(!_0x328677['isOwn'])continue;if(_0x328677['isNextTo']||_0x328677['containsRangeInObject']||_0x328677['isInsideObject'])continue;if(_0x5a541f['data']['formatGroupId']!=_0x837b53['formatGroupId'])continue;if(!zt(_0x5a541f,_0x417927))continue;const _0x4bd7ae=_0x5a541f['getFirstRange']();if(_0x5a541f['subType']==_0x4f9d15){if(_0x4bd7ae['containsRange'](_0x68a509,!0x0))return null;_0xfbf0a3=_0xfbf0a3['isBefore'](_0x4bd7ae['start'])?_0xfbf0a3:_0x4bd7ae['start'],_0xd3c722=_0xd3c722['isAfter'](_0x4bd7ae['end'])?_0xd3c722:_0x4bd7ae['end'],_0x157a97?_0x4bd7ae['start']['isBefore'](_0x157a97['getFirstRange']()['start'])?(_0x157a97['removeMarkers'](),_0x157a97=_0x5a541f):_0x5a541f['removeMarkers']():_0x157a97=_0x5a541f;}else{const _0x4505c6=_0x68a509['getIntersection'](_0x4bd7ae);this['_cutOutSuggestionMarker'](_0x5a541f,_0x4505c6);}}const _0x10ba12=this['editor']['plugins']['get']('Users')['me'],_0x56a4de=_0x1e5a7d(),_0x5bac29=_0x10ba12['id'];if(_0x157a97)return this['_setSuggestionRange'](_0x157a97,this['_model']['createRange'](_0xfbf0a3,_0xd3c722)),_0x157a97;{const _0x4b3fc7=this['_setSuggestionData']({'id':_0x56a4de,'type':'formatBlock:'+_0x4f9d15,'data':_0x837b53,'createdAt':new Date(),'authorId':_0x5bac29,'attributes':_0x417927});return this['_addSuggestionMarker']('formatBlock:'+_0x4f9d15,_0x56a4de,_0x5bac29,this['_model']['createRange'](_0xfbf0a3,_0xd3c722)),_0x4b3fc7;}}['markMultiRangeBlockFormat'](_0xc00cd2,_0x2f0a49,_0x1f6d89=[],_0x1c398=null,_0x27f26c={}){_0x2f0a49['formatGroupId']||(_0x2f0a49['formatGroupId']=_0x2f0a49['commandName']);const _0x5dbbeb=_0xc00cd2[0x0];_0x2f0a49['multipleBlocks']=_0x5dbbeb['is']('range'),_0x1c398=_0x1c398||xt(_0x2f0a49);const _0x478e9c=_0x1f6d89['map'](_0x4389c9=>Vt(_0x4389c9,this['_model'])),_0x60dbbe=_0x5dbbeb['is']('range')?_0xc00cd2:_0xc00cd2['map'](_0x47c73f=>Vt(_0x47c73f,this['_model']));if(this['_trackingSessionId']&&(_0x27f26c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x50224a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c398,'accept');return this['forceDefaultExecution'](()=>_0x50224a(_0x60dbbe,_0x2f0a49,_0x27f26c)),null;}_0x478e9c['push'](..._0x60dbbe);let _0x5c1f28=!0x0;for(const _0x2863ee of _0x478e9c)if(!this['_rangeIsInLocalUserInsertion'](_0x2863ee)){_0x5c1f28=!0x1;break;}if(_0x5c1f28&&'always'!==this['_trackFormatChanges']){const _0xd6e344=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c398,'accept');return this['forceDefaultExecution'](()=>_0xd6e344(_0x60dbbe,_0x2f0a49,_0x27f26c)),null;}const _0x5ece22=this['editor']['plugins']['get']('Users')['me'];for(const _0x9948cf of this['getSuggestions']()){const _0x2519fd=_0x9948cf['data'];if(_0x9948cf['author']['id']!=_0x5ece22['id'])continue;if('formatBlock'!=_0x9948cf['type']||_0x2519fd['formatGroupId']!=_0x2f0a49['formatGroupId'])continue;if(!zt(_0x9948cf,_0x27f26c))continue;const _0x9fcdfb=_0x9948cf['subType']==_0x1c398;for(let _0x547480=0x0;_0x547480<_0x60dbbe['length'];_0x547480++){const _0x181299=_0x60dbbe[_0x547480];for(const _0x15e5c0 of _0x9948cf['getMarkers']()){const _0x16fb47=_0x15e5c0['getRange']();if(_0x181299['isEqual'](_0x16fb47)){_0x9fcdfb?(_0x60dbbe['splice'](_0x547480,0x1),_0x547480--):_0x9948cf['removeMarker'](_0x15e5c0['name']);break;}}}}if(0x0==_0x60dbbe['length'])return null;const _0x5db80e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c398,'join');for(const _0x36df1e of this['getSuggestions']()){const _0x7e20a6=_0x36df1e['data'];if(_0x36df1e['author']['id']==_0x5ece22['id']&&('formatBlock'==_0x36df1e['type']&&_0x7e20a6['formatGroupId']==_0x2f0a49['formatGroupId']&&_0x36df1e['subType']==_0x1c398&&zt(_0x36df1e,_0x27f26c)&&(_0x5db80e(_0x36df1e['getRanges'](),_0x60dbbe)||_0x5db80e(_0x60dbbe,_0x36df1e['getRanges']())))){for(const _0x6fd097 of _0x60dbbe)_0x36df1e['addRange'](_0x6fd097);return _0x36df1e;}}const _0x4966f2=_0x1e5a7d(),_0x511718=_0x5ece22['id'],_0x49d195='formatBlock:'+_0x1c398,_0x1d1bc0=this['_setSuggestionData']({'id':_0x4966f2,'type':_0x49d195,'data':_0x2f0a49,'createdAt':new Date(),'authorId':_0x511718,'attributes':_0x27f26c});for(const _0x63ccf of _0x60dbbe)this['_addSuggestionMarker'](_0x49d195,_0x4966f2,_0x511718,_0x63ccf,Suggestion['getMultiRangeId']());return _0x1d1bc0;}['markDeletion'](_0x696cd,_0x47ded5=null,_0x1e5046={}){if(_0x696cd['isCollapsed'])return null;const _0x158289=this['editor']['plugins']['get']('Users')['me'],_0x2b0275=new _0x4c6b54(_0x696cd['start'],_0x696cd['end']);this['_trackingSessionId']&&(_0x1e5046['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xc6b919,meta:_0x141775}of this['_findSuggestions'](_0x2b0275,'insertion'))if(_0x141775['isOwn']&&!_0x141775['isNextTo']){if(_0xc6b919['isMultiRange']){const _0x3d4c20=_0xc6b919['getRanges']()['filter'](_0x4283d5=>'$graveyard'!=_0x4283d5['root']['rootName']);_0x3d4c20['every'](_0x4e1291=>_0x2b0275['containsRange'](_0x4e1291,!0x0))&&_0xc6b919['discard']();if(_0x3d4c20['some'](_0x2116f9=>_0x2116f9['containsRange'](_0x2b0275,!0x0))){const _0x5f7792=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x47ded5,'accept');return this['forceDefaultExecution'](()=>_0x5f7792([_0x2b0275],null,_0x1e5046)),null;}}else{const _0x22ac17=_0x2b0275['getIntersection'](_0xc6b919['getFirstRange']());null!==_0x22ac17&&_0xc6b919['_onDiscard']([_0x22ac17],null,_0x1e5046);}}if(_0x2b0275['detach'](),_0x2b0275['isCollapsed']||'$graveyard'==_0x2b0275['root']['rootName'])return null;let _0x118809=null,_0x17b438=_0x2b0275['start'],_0x5b123a=_0x2b0275['end'];const _0x4e4182=this['_findSuggestions'](_0x2b0275,'deletion');for(const {suggestion:_0x2c07c7,meta:_0x49f5ec}of _0x4e4182){const _0x1e57e4=this['_model']['createRange'](_0x17b438,_0x5b123a);if(_0x49f5ec['isOwn']&&(this['_mergeNestedSuggestions']||!_0x49f5ec['containsRangeInObject']&&!_0x49f5ec['isInsideObject'])){if(_0x2c07c7['isMultiRange']){if(!zt(_0x2c07c7,_0x1e5046))continue;let _0x773df0=!0x0;for(const _0x1ca694 of _0x2c07c7['getRanges']()){if(_0x1ca694['containsRange'](_0x1e57e4,!0x0))return _0x2c07c7;_0x1e57e4['containsRange'](_0x1ca694)||(_0x773df0=!0x1);}_0x773df0&&_0x2c07c7['discard']();}else{const _0x577f95=_0x2c07c7['getFirstRange']();if(_0x577f95['containsRange'](_0x1e57e4,!0x0))return _0x2c07c7;if(!zt(_0x2c07c7,_0x1e5046)){_0x1e57e4['containsRange'](_0x577f95)?_0x2c07c7['removeMarkers']():_0x577f95['containsPosition'](_0x17b438)?_0x17b438=_0x577f95['end']:_0x577f95['containsPosition'](_0x5b123a)&&(_0x5b123a=_0x577f95['start']);continue;}_0x17b438=_0x17b438['isBefore'](_0x577f95['start'])?_0x17b438:_0x577f95['start'],_0x5b123a=_0x5b123a['isAfter'](_0x577f95['end'])?_0x5b123a:_0x577f95['end'],_0x1e5046=Object['assign']({},_0x2c07c7['attributes']),_0x118809?_0x577f95['start']['isBefore'](_0x118809['getFirstRange']()['start'])?(_0x118809['removeMarkers'](),_0x118809=_0x2c07c7):_0x2c07c7['removeMarkers']():_0x118809=_0x2c07c7;}}}if(_0x118809)return this['_setSuggestionRange'](_0x118809,this['_model']['createRange'](_0x17b438,_0x5b123a)),_0x118809;{const _0x905bc=_0x1e5a7d(),_0x2f3782=this['_model']['createRange'](_0x17b438,_0x5b123a),_0x1ed209=_0x158289['id'],_0xdda4a2=_0x47ded5?'deletion:'+_0x47ded5:'deletion',_0x35f439=this['_setSuggestionData']({'id':_0x905bc,'type':_0xdda4a2,'createdAt':new Date(),'authorId':_0x1ed209,'attributes':_0x1e5046});return this['_addSuggestionMarker'](_0xdda4a2,_0x905bc,_0x1ed209,_0x2f3782),_0x35f439;}}['markMultiRangeDeletion'](_0x541a07,_0x64ef2a='multi',_0x23d3a4={}){const _0x385f75=this['editor']['plugins']['get']('Users')['me'],_0xdefd64=_0x541a07['map'](_0x5a26ee=>new _0x4c6b54(_0x5a26ee['start'],_0x5a26ee['end'])),_0x50c9fe=new Set();this['_trackingSessionId']&&(_0x23d3a4['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xb5b688,meta:_0x10b044}of this['_findSuggestions'](_0xdefd64,'insertion'))_0x10b044['isOwn']&&!_0x10b044['isNextTo']&&_0x50c9fe['add'](_0xb5b688);for(const _0x351f7a of _0x50c9fe)if(_0x351f7a['isMultiRange']){const _0x51bc22=_0x351f7a['getRanges']();(!_0x351f7a['attributes']||!_0x351f7a['attributes']['skipNestingCheck'])&&(_0x51bc22['every'](_0x58fcd8=>_0xdefd64['some'](_0x3f1fcf=>_0x3f1fcf['containsRange'](_0x58fcd8,!0x0)))&&_0x351f7a['discard']());if(_0xdefd64['every'](_0x33d01c=>_0x51bc22['some'](_0x1e2206=>_0x1e2206['containsRange'](_0x33d01c,!0x0)))){const _0x381c7c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x64ef2a,'accept');return this['forceDefaultExecution'](()=>_0x381c7c(_0x541a07,null,_0x23d3a4)),null;}}else{const _0xc894eb=_0x351f7a['getFirstRange']();_0xdefd64['some'](_0x52d78c=>_0x52d78c['containsRange'](_0xc894eb,!0x0))&&_0x351f7a['discard']();if(_0xdefd64['every'](_0xbc56b2=>_0xc894eb['containsRange'](_0xbc56b2,!0x0))){const _0x1eee7c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x64ef2a,'accept');return this['forceDefaultExecution'](()=>_0x1eee7c(_0xdefd64,null,_0x23d3a4)),null;}}const _0x59a2a9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x64ef2a,'join');let _0x3e275e=null;for(const _0x483fb5 of this['getSuggestions']())if(_0x483fb5['author']['id']==_0x385f75['id']&&_0x483fb5['isInContent']&&'deletion'==_0x483fb5['type']&&_0x483fb5['subType']==_0x64ef2a&&zt(_0x483fb5,_0x23d3a4)&&(_0x59a2a9(_0x483fb5['getRanges'](),_0xdefd64)||_0x59a2a9(_0xdefd64,_0x483fb5['getRanges']()))){if(_0x3e275e){if(_0x483fb5['commentThread']&&_0x483fb5['commentThread']['length'])continue;for(const _0x10e646 of _0x483fb5['getRanges']())_0x3e275e['isIntersectingWithRange'](_0x10e646)||_0x3e275e['addRange'](_0x10e646);_0x483fb5['removeMarkers']();}else{_0x3e275e=_0x483fb5;for(const _0x2723ba of _0xdefd64)_0x483fb5['isIntersectingWithRange'](_0x2723ba)||_0x483fb5['addRange'](_0x2723ba);}}if(_0x3e275e)return _0x3e275e;_0x50c9fe['clear']();for(const {suggestion:_0x4e083d,meta:_0x9487d5}of this['_findSuggestions'](_0xdefd64,'deletion'))_0x9487d5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x9487d5['containsRangeInObject']&&!_0x9487d5['isInsideObject'])&&zt(_0x4e083d,_0x23d3a4)&&_0x50c9fe['add'](_0x4e083d);for(const _0x28cd4d of _0x50c9fe){const _0x14e59f=_0x28cd4d['getRanges']();if(!_0x23d3a4||!_0x23d3a4['skipNestingCheck']){if(_0xdefd64['every'](_0x2b5d0d=>_0x14e59f['some'](_0x4ff578=>_0x4ff578['containsRange'](_0x2b5d0d,!0x0))))return _0x28cd4d;}(!_0x28cd4d['attributes']||!_0x28cd4d['attributes']['skipNestingCheck'])&&(_0x14e59f['every'](_0x4e0724=>_0xdefd64['some'](_0x1acb08=>_0x1acb08['containsRange'](_0x4e0724,!0x0)))&&_0x28cd4d['discard']());}const _0x32150f=_0x1e5a7d(),_0x8e3e5c=_0x385f75['id'],_0x5b39c0='deletion:'+_0x64ef2a,_0x534b3b=this['_setSuggestionData']({'id':_0x32150f,'type':_0x5b39c0,'createdAt':new Date(),'authorId':_0x8e3e5c,'attributes':_0x23d3a4});for(const _0x2be20c of _0xdefd64)_0x2be20c['detach'](),_0x2be20c['isCollapsed']||'$graveyard'==_0x2be20c['root']['rootName']||this['_addSuggestionMarker'](_0x5b39c0,_0x32150f,_0x8e3e5c,_0x2be20c,Suggestion['getMultiRangeId']());return _0x534b3b;}['markAttributeChange'](_0x1e4223,_0x1df317,_0x379ba1,_0x2148b9,_0x26c167){if(_0x1e4223['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x145061=this['editor']['plugins']['get']('Users')['me']['id'],_0x5803f3=Array['from'](this['_suggestions']['values']())['filter'](_0x23527e=>'attribute'==_0x23527e['type']&&_0x23527e['data']['key']==_0x1df317&&_0x23527e['isIntersectingWithRange'](_0x1e4223));if(this['_trackingSessionId']&&(_0x26c167['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x3061de=this['_findSuggestions'](_0x1e4223,'insertion')['filter'](({meta:_0x3ac433})=>_0x3ac433['isOwn']&&!_0x3ac433['isInsideObject']&&!_0x3ac433['isNextTo'])['map'](({suggestion:_0x32065f})=>_0x32065f);_0x5803f3['unshift'](..._0x3061de);}const _0x5e98f5=new Map([[_0x1e4223,_0x379ba1]]);for(const _0x566b01 of _0x5803f3){const _0x3fa3f1='attribute'==_0x566b01['type']?_0x566b01['data']['oldValue']:void 0x0,_0x281c3a=_0x566b01['getFirstRange'](),_0x3dcb2c=Array['from'](_0x5e98f5['keys']())['find'](_0x4067a8=>_0x4067a8['isIntersecting'](_0x281c3a));if(!_0x3dcb2c)continue;const _0x58201f=_0x3dcb2c['getDifference'](_0x281c3a);this['_suggestionsConversion']['isBlockAttribute'](_0x1df317)&&'insertion'==_0x566b01['type']&&0x0!=_0x58201f['length']||(_0x5e98f5['delete'](_0x3dcb2c),_0x58201f['forEach'](_0x5ea526=>{_0x5e98f5['set'](_0x5ea526,_0x379ba1);}),'insertion'!=_0x566b01['type']&&_0x3fa3f1!=_0x2148b9&&_0x5e98f5['set'](_0x3dcb2c['getIntersection'](_0x281c3a),_0x3fa3f1));}const _0x1628ff=[];for(const [_0x4e7b48,_0xd6fb25]of _0x5e98f5){const _0x122357=_0x1e5a7d(),_0x4fb747={'key':_0x1df317,'oldValue':_0xd6fb25,'newValue':_0x2148b9};_0x1df317['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':_0x1df317});const _0x3041f1=('attribute:'+(_0x1df317+'|'+xt({'newValue':_0x2148b9})))['substring'](0x0,0x3c),_0x30df3b=this['_setSuggestionData']({'id':_0x122357,'type':_0x3041f1,'data':_0x4fb747,'createdAt':new Date(),'authorId':_0x145061,'attributes':_0x26c167});_0x1628ff['push'](_0x30df3b),this['_addSuggestionMarker'](_0x3041f1,_0x122357,_0x145061,_0x4e7b48);}return _0x1628ff;}['enableDefaultAttributesIntegration'](_0x53db7c){this['enableCommand'](_0x53db7c,(_0x12e46e,..._0x271b47)=>{this['recordAttributeChanges'](()=>{_0x12e46e(..._0x271b47);});});}['startTrackingSession'](_0x5c9d76){return this['_trackingSessionId']=void 0x0!==_0x5c9d76?_0x5c9d76:_0x1e5a7d(),this['_trackingSessionId'];}['_getAttributeKey'](_0x21462b){return'attribute'==_0x21462b['type']?Xt(_0x21462b['subType']):null;}['_applyOperationsAsSuggestions'](_0x3b5f00){if(0x0==_0x3b5f00['length'])return;const _0x2837ff=this['editor'],_0x30a368=_0x2837ff['plugins']['get'](_0x319f4e),_0x191a90=[];_0x2837ff['model']['change'](_0x531010=>{for(let _0x1eeb6a=0x0;_0x1eeb6a<_0x3b5f00['length'];_0x1eeb6a++){const _0x27e0b6=_0x3b5f00[_0x1eeb6a];if(_0x27e0b6['baseVersion']=_0x2837ff['model']['document']['version'],_0x27e0b6['isDocumentOperation']=!0x0,_0x30a368['isMarkedRemoveOperation'](_0x27e0b6)){const _0x1ca3c4=_0x494da1(_0x27e0b6['newRange'],_0x2837ff['model']);_0x191a90['unshift'](_0x4c6b54['fromRange'](_0x1ca3c4));}else switch(_0x27e0b6['type']){case'rename':{const _0x366a41=_0x27e0b6['oldName'],_0x12c8d9=_0x27e0b6['newName'];if(_0x366a41==_0x12c8d9)break;_0x531010['batch']['addOperation'](_0x27e0b6),_0x2837ff['model']['applyOperation'](_0x27e0b6);const _0x53c5a3='$elementName',_0x2efc9c=_0x27e0b6['position'],_0x1412be=_0x2837ff['model']['createRange'](_0x2efc9c,_0x2837ff['model']['createPositionAt'](_0x2efc9c['nodeAfter'],'end'));this['markAttributeChange'](_0x1412be,_0x53c5a3,_0x366a41,_0x12c8d9,{'groupId':_0x1e5a7d()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xca76d8=_0x27e0b6['oldValue'],_0x373e2b=_0x27e0b6['newValue'];if(_0xca76d8==_0x373e2b)break;_0x531010['batch']['addOperation'](_0x27e0b6),_0x2837ff['model']['applyOperation'](_0x27e0b6);const _0x594712=_0x27e0b6['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x594712))break;const _0x21fa58=_0x494da1(_0x27e0b6['range'],_0x2837ff['model']);this['markAttributeChange'](_0x21fa58,_0x594712,_0xca76d8,_0x373e2b,{'groupId':_0x1e5a7d()});break;}case'insert':{_0x531010['batch']['addOperation'](_0x27e0b6),_0x2837ff['model']['applyOperation'](_0x27e0b6);if(_0x3b5f00[_0x1eeb6a+0x1]&&'move'==_0x3b5f00[_0x1eeb6a+0x1]['type'])break;const _0x455618=_0x27e0b6['position'],_0x20baf3=_0x27e0b6['howMany'],_0x1817f8=_0x494da1(_0x2837ff['model']['createRange'](_0x455618,_0x455618['getShiftedBy'](_0x20baf3)),_0x2837ff['model']);this['markInsertion'](_0x1817f8);break;}case'split':{_0x531010['batch']['addOperation'](_0x27e0b6),_0x2837ff['model']['applyOperation'](_0x27e0b6);const _0x2152e7=_0x27e0b6['splitPosition'],_0x53955f=_0x27e0b6['moveTargetPosition'];this['markInsertion'](_0x2837ff['model']['createRange'](_0x2152e7,_0x53955f));break;}case'move':case'remove':_0x531010['batch']['addOperation'](_0x27e0b6),_0x2837ff['model']['applyOperation'](_0x27e0b6);}}for(const _0x5cdcd0 of _0x191a90)_0x5cdcd0['detach'](),this['markDeletion'](_0x5cdcd0);});}['_setSuggestionRange'](_0x5a6e25,_0x190fdb){const _0x14a141=_0x5a6e25['getFirstMarker']();this['_model']['change'](_0x36c9b0=>{_0x36c9b0['updateMarker'](_0x14a141,{'range':_0x190fdb});});}['_addThreadToSuggestion'](_0x5f090c){const _0x2195d3=_0x5f090c['id'],_0x506865=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2195d3)||this['_commentsRepository']['addCommentThread']({'channelId':_0x506865,'threadId':_0x2195d3,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xc41793=this['_commentsRepository']['getCommentThread'](_0x2195d3);_0xc41793['unbind']('isRemovable'),_0xc41793['isRemovable']=!0x1,_0x5f090c['commentThread']=_0xc41793;}['_checkSuggestionCorrectness'](_0x1a5d5d,_0x1518d0,_0x212996,_0x276424){if(_0x1a5d5d['type']!=_0x1518d0||_0x1a5d5d['subType']!=_0x212996||_0x1a5d5d['creator']['id']!=_0x276424)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2618c5('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2bb5bb,_0xa9b25c){const _0x5a60cd=_0x2bb5bb['getFirstRange']();if(_0xa9b25c['isEqual'](_0x5a60cd))_0x2bb5bb['removeMarkers']();else{if(_0x5a60cd['containsRange'](_0xa9b25c)){const _0x4105f8=this['_model']['createPositionAt'](_0xa9b25c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2bb5bb,this['_model']['createRange'](_0x5a60cd['start'],_0x4105f8));const _0x4197bb=_0x1e5a7d(),_0x46b10a=_0x2bb5bb['creator']['id'],_0x13aa13=_0x2bb5bb['type']+':'+_0x2bb5bb['subType'];this['_setSuggestionData']({'id':_0x4197bb,'type':_0x13aa13,'createdAt':new Date(),'authorId':_0x46b10a,'data':_0x2bb5bb['data'],'attributes':_0x2bb5bb['attributes']});const _0x734459=this['_model']['createPositionAt'](_0xa9b25c['end']['parent'],'after'),_0x1d266c=this['_model']['createRange'](_0x734459,_0x5a60cd['end']);this['_addSuggestionMarker'](_0x13aa13,_0x4197bb,_0x46b10a,_0x1d266c);}else{if(_0x5a60cd['containsPosition'](_0xa9b25c['start'])){const _0x53f101=this['_model']['createPositionAt'](_0xa9b25c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2bb5bb,this['_model']['createRange'](_0x5a60cd['start'],_0x53f101));}else{const _0x4fc1fe=this['_model']['createPositionAt'](_0xa9b25c['end']['parent'],'after');this['_setSuggestionRange'](_0x2bb5bb,this['_model']['createRange'](_0x4fc1fe,_0x5a60cd['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x597ded){for(const {suggestion:_0x1792ca,meta:_0x46dfe0}of this['_findSuggestions'](_0x597ded,'insertion')){if(!_0x46dfe0['isOwn'])continue;const _0xc1b9df=_0x1792ca['getRanges']();for(const _0x23165b of _0xc1b9df)if(!_0x597ded['getDifference'](_0x23165b)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x51e351){return this['editor']['plugins']['get']('Users')['getUser'](_0x51e351);}['_getExternalAuthor'](_0xee9493){const _0x12ba74=this['editor']['plugins']['get']('Users'),_0x27e1c1=_0x1fc623('external:'+_0xee9493),_0x237c81=_0x12ba74['getUser'](_0x27e1c1);return _0x237c81||_0x12ba74['addUser']({'id':_0x27e1c1,'name':_0xee9493});}['_createSuggestion'](_0x480f37,_0x17b961,_0x5b0ce4,_0x4c0c50,_0xfa39e8,_0x47e205){const _0x15b6e4=this['_getAuthorFromId'](_0x4c0c50);if(!_0x15b6e4)throw new _0x2618c5('track-changes-user-not-found',this,{'authorId':_0x4c0c50,'suggestionId':_0x5b0ce4});const _0x31cbe4=this['_suggestionFactory']['buildSuggestion'](_0x480f37,_0x17b961,_0x5b0ce4,_0x15b6e4,_0xfa39e8,_0x5c1426=>{this['_updateSuggestionData'](_0x5b0ce4,{'attributes':_0x5c1426});const _0x4b31d6=this['getSuggestion'](_0x5b0ce4);this['_joinWithAdjacentSuggestions'](new Set([_0x4b31d6])),this['_refreshSuggestionsChain'](new Set([_0x4b31d6]));},_0x47e205);return this['listenTo'](_0x31cbe4,'accept',()=>{this['_updateSuggestionData'](_0x5b0ce4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x31cbe4,'discard',()=>{this['_updateSuggestionData'](_0x5b0ce4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5b0ce4,_0x31cbe4),this['_suggestionState']['set'](_0x31cbe4,'notReady'),_0x31cbe4;}['_breakSuggestionMarker'](_0x5e2ee0,_0x1a4ef1,_0x517506){const _0x5d10a3=_0x5e2ee0['getFirstRange'](),_0x4a2fd5=_0x5d10a3['start'],_0x575d87=_0x5d10a3['end'];this['_setSuggestionRange'](_0x5e2ee0,this['_model']['createRange'](_0x4a2fd5,_0x1a4ef1));const _0x1b2535=_0x1e5a7d(),_0x12bd1d=_0x5e2ee0['creator']['id'],_0x577f18=_0x5e2ee0['type']+(_0x5e2ee0['subType']?':'+_0x5e2ee0['subType']:'');this['_setSuggestionData']({'id':_0x1b2535,'type':_0x577f18,'createdAt':new Date(),'authorId':_0x12bd1d,'originalSuggestionId':_0x5e2ee0['_originalSuggestionId']||_0x5e2ee0['id'],'attributes':_0x5e2ee0['attributes'],'data':_0x5e2ee0['data']});const _0x18ea48=this['_getAttributeKey'](_0x5e2ee0);('formatBlock'==_0x5e2ee0['type']||_0x18ea48&&this['_suggestionsConversion']['isBlockAttribute'](_0x18ea48))&&(_0x517506=this['_model']['createPositionBefore'](_0x517506['parent'])),this['_addSuggestionMarker'](_0x577f18,_0x1b2535,_0x12bd1d,this['_model']['createRange'](_0x517506,_0x575d87));}['_findSuggestions'](_0x116df1,_0x4dcae8=null){const _0x33b4c4=[],_0x42ba32=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x116df1)||(_0x116df1=[_0x116df1]);for(const _0x11b579 of this['getSuggestions']()){if(!_0x11b579['isInContent'])continue;if(_0x4dcae8&&_0x11b579['type']!=_0x4dcae8)continue;let _0x1a810b=!0x1;for(const _0x78f004 of _0x11b579['getRanges']()){for(const _0x363793 of _0x116df1){const _0x4378ca=_0x363793['start']['isEqual'](_0x78f004['end'])||_0x363793['end']['isEqual'](_0x78f004['start']);if(_0x4378ca||_0x363793['getIntersection'](_0x78f004)){const _0x2b3761=_0x363793['containsRange'](_0x78f004)&&Dt(this['_model']['schema'],_0x78f004['start'],_0x363793),_0x3e6b28=_0x78f004['containsRange'](_0x363793)&&Dt(this['_model']['schema'],_0x363793['start'],_0x78f004);_0x33b4c4['push']({'suggestion':_0x11b579,'meta':{'isOwn':_0x42ba32==_0x11b579['author'],'isNextTo':_0x4378ca,'isInsideObject':_0x2b3761,'containsRangeInObject':_0x3e6b28}}),_0x1a810b=!0x0;break;}}if(_0x1a810b)break;}}return _0x33b4c4;}['_addSuggestionMarker'](_0x161e3d,_0x4df4a8,_0x564c31,_0x4782fb,_0x10a1d8){this['_model']['change'](_0x56aff4=>{let _0x5344d8='suggestion:'+_0x161e3d+':'+_0x4df4a8+':'+_0x564c31;_0x10a1d8&&(_0x5344d8=_0x5344d8+':'+_0x10a1d8),_0x56aff4['addMarker'](_0x5344d8,{'range':_0x4782fb,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4a8a7d){const _0x4ce5ee=_0x4a8a7d['previous'],_0x5b163c=_0x4a8a7d['next'];_0x4a8a7d['previous']=null,_0x4a8a7d['next']=null,null!=_0x4ce5ee&&_0x4ce5ee['next']==_0x4a8a7d&&(_0x4ce5ee['next']=_0x5b163c),null!=_0x5b163c&&_0x5b163c['previous']==_0x4a8a7d&&(_0x5b163c['previous']=_0x4ce5ee),'ready'==this['_suggestionState']['get'](_0x4a8a7d)&&(this['_suggestionState']['set'](_0x4a8a7d,'removed'),this['fire']('suggestionUnloaded',_0x4a8a7d,_0x4ce5ee,_0x5b163c));}['_setSuggestionData'](_0x54fb54){const _0x23fb94=_0x54fb54['id'],_0x423aaf=this['addSuggestionData'](_0x54fb54);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2fb34d=this['editor']['plugins']['get']('PendingActions'),_0x3ff00e=_0x423aaf['hasComments'],_0x842ee3=_0x423aaf['subType']?_0x423aaf['type']+':'+_0x423aaf['subType']:_0x423aaf['type'],_0x43ceb3=this['editor']['locale'],_0x5562e0=_0x2fb34d['add'](Tt(_0x43ceb3,'PENDING_ACTION_SUGGESTION')),_0x547c38={'id':_0x23fb94,'type':_0x842ee3,'hasComments':_0x3ff00e,'data':_0x54fb54['data']||null,'originalSuggestionId':_0x54fb54['originalSuggestionId']||null,'attributes':_0x423aaf['attributes']};this['_adapter']['addSuggestion'](_0x547c38)['then'](_0xb6f1ad=>{_0x423aaf['_saved']=!0x0,_0x2fb34d['remove'](_0x5562e0),_0xb6f1ad&&_0xb6f1ad['createdAt']&&(this['_suggestions']['get'](_0x23fb94)['createdAt']=_0xb6f1ad['createdAt']);})['catch'](_0x490286=>{throw _0x39db6c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x423aaf['discard']();}),_0x423aaf['stopListening'](),this['_suggestions']['delete'](_0x423aaf['id']),this['_suggestionState']['delete'](_0x423aaf),_0x490286;});}return _0x423aaf;}['_updateSuggestionData'](_0x4f3fc1,_0x1387a2){const _0x1509bf=this['editor']['plugins']['get']('PendingActions'),_0x2d74bc=this['getSuggestion'](_0x4f3fc1);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2d74bc['_saved']){const _0x5dfa9b=_0x1509bf['add'](Tt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4f3fc1,_0x1387a2)['then'](()=>{_0x1509bf['remove'](_0x5dfa9b);});}else _0x2d74bc['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4f3fc1,_0x1387a2);});}}['_getSuggestionData'](_0x1aa8ee){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2618c5('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1aa8ee);}['_handleNewSuggestionMarker'](_0x3acd3c){const {id:_0x6703e2,type:_0xa9264e,subType:_0x43cae3,authorId:_0x12ea0b}=_0x4f787f(_0x3acd3c),_0x281d61=this['_suggestions']['get'](_0x6703e2)||this['_createSuggestion'](_0xa9264e,_0x43cae3,_0x6703e2,_0x12ea0b,{});switch(this['_checkSuggestionCorrectness'](_0x281d61,_0xa9264e,_0x43cae3,_0x12ea0b),this['_suggestionState']['get'](_0x281d61)){case'notReady':this['_getSuggestionData'](_0x6703e2)['then'](_0x314f40=>{let _0x7d6a7e=Promise['resolve']();_0x314f40['hasComments']&&(_0x7d6a7e=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x6703e2})),_0x7d6a7e['then'](()=>{this['addSuggestionData'](_0x314f40)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x281d61,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x6703e2,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x281d61,'ready'),this['fire']('suggestionLoaded',_0x281d61);break;case'ready':this['fire']('suggestionChanged',_0x281d61);}return _0x281d61['addMarkerName'](_0x3acd3c),_0x281d61;}['_refreshSuggestionsChain'](_0x3bc1a8){const _0x368cc8=Array['from'](_0x3bc1a8),_0x5726e0=_0x368cc8['filter'](_0x2432cb=>'attribute'==_0x2432cb['type']);this['_refreshAttributeSuggestionsChain'](_0x5726e0);const _0x256a8c=_0x368cc8['filter'](_0x235c7c=>!_0x235c7c['isMultiRange']&&'attribute'!=_0x235c7c['type']),_0x2e3066=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1e18a2=>!_0x1e18a2['isMultiRange']&&'attribute'!=_0x1e18a2['type']),_0x30d9bd=_0x2e3066['filter'](_0x4a57fc=>!_0x3bc1a8['has'](_0x4a57fc)),_0x525b46=new Map(_0x2e3066['map'](_0x1493c1=>[_0x1493c1,this['_suggestionFactory']['getSuggestionCallback'](_0x1493c1['type'],_0x1493c1['subType'],'chain')])),_0x5ba4c7=new Map(_0x2e3066['map'](_0x39b2b9=>[_0x39b2b9,_0x39b2b9['getFirstRange']()])),_0x4375f2=new Set(),_0x2ef8ae=new Set();for(let _0xb9aa2c=0x0;_0xb9aa2c<_0x256a8c['length'];_0xb9aa2c++)_0x55f671(_0x256a8c[_0xb9aa2c],_0x256a8c,_0xb9aa2c+0x1);for(let _0x156012=0x0;_0x156012<_0x256a8c['length'];_0x156012++)_0x55f671(_0x256a8c[_0x156012],_0x30d9bd,0x0);const _0xb5a061=new Set();for(let _0x4a489f=0x0;_0x4a489f<_0x256a8c['length'];_0x4a489f++){const _0x365ff4=_0x256a8c[_0x4a489f];!_0x2ef8ae['has'](_0x365ff4)&&_0x365ff4['previous']&&(_0xb5a061['add'](_0x365ff4['previous']),_0x365ff4['previous']['next']===_0x365ff4&&(_0x365ff4['previous']['next']=null),_0x365ff4['previous']=null),!_0x4375f2['has'](_0x365ff4)&&_0x365ff4['next']&&(_0xb5a061['add'](_0x365ff4['next']),_0x365ff4['next']['previous']===_0x365ff4&&(_0x365ff4['next']['previous']=null),_0x365ff4['next']=null);}function _0x55f671(_0x4eae2f,_0x250434,_0x5b2c6c){for(let _0x46c020=_0x5b2c6c;_0x46c020<_0x250434['length'];_0x46c020++){const _0xf0bcae=_0x27be2a(_0x4eae2f,_0x250434[_0x46c020]);_0xf0bcae&&(_0xf0bcae[0x0]['next']=_0xf0bcae[0x1],_0xf0bcae[0x1]['previous']=_0xf0bcae[0x0],_0x4375f2['add'](_0xf0bcae[0x0]),_0x2ef8ae['add'](_0xf0bcae[0x1]));}}function _0x27be2a(_0x1daf07,_0x32710f){if(_0x1daf07['author']['id']!==_0x32710f['author']['id'])return null;const _0x2078c4=_0x525b46['get'](_0x1daf07)(_0x1daf07,_0x32710f,_0x5ba4c7['get'](_0x1daf07),_0x5ba4c7['get'](_0x32710f));if(!_0x2078c4)return null;return _0x525b46['get'](_0x32710f)(_0x1daf07,_0x32710f,_0x5ba4c7['get'](_0x1daf07),_0x5ba4c7['get'](_0x32710f))?_0x2078c4[0x1]['commentThread']&&_0x2078c4[0x1]['commentThread']['length']?null:_0x2078c4:null;}_0xb5a061['size']&&this['_refreshSuggestionsChain'](_0xb5a061);}['_refreshAttributeSuggestionsChain'](_0x3c739a){if(0x0==_0x3c739a['length'])return;const _0x3b1c17=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x79af9d=>'attribute'==_0x79af9d['type']&&_0x79af9d['_isDataLoaded']),_0x194e41=[],_0x171672=new Map();for(const _0x433a94 of _0x3b1c17){const _0x511e59=_0x1fc623(_0x433a94['attributes']);_0x171672['has'](_0x511e59)||(_0x171672['set'](_0x511e59,_0x194e41['length']),_0x194e41['push']([]));const _0x393ee8=_0x171672['get'](_0x511e59);_0x194e41[_0x393ee8]['push'](_0x433a94);}!(function(){_0x194e41['sort']((_0x343127,_0x2b2646)=>{const _0x45481a=_0x343127[0x0]['createdAt'],_0x3508a8=_0x2b2646[0x0]['createdAt'];return _0x45481a==_0x3508a8?_0x343127[0x0]['attributes']['groupId']<_0x2b2646[0x0]['attributes']['groupId']?-0x1:0x1:_0x45481a<_0x3508a8?-0x1:0x1;});for(const _0x2c0a26 of _0x194e41)_0x2c0a26['sort']((_0x4179a2,_0x2bddc5)=>_0x4179a2['id']<_0x2bddc5['id']?-0x1:0x1);}());for(let _0x5c9de4=0x0;_0x5c9de4<_0x194e41['length'];_0x5c9de4++){if(0x0==_0x194e41[_0x5c9de4]['length'])continue;const _0x19f35c=[];for(let _0x232f69=_0x5c9de4+0x1;_0x232f69<_0x194e41['length'];_0x232f69++)0x0!=_0x194e41[_0x232f69]['length']&&_0x5f04ad(_0x194e41[_0x5c9de4],_0x194e41[_0x232f69])&&_0x19f35c['push'](_0x232f69);for(const _0x1f53f8 of _0x19f35c)_0x194e41[_0x5c9de4]=_0x194e41[_0x5c9de4]['concat'](_0x194e41[_0x1f53f8]),_0x194e41[_0x1f53f8]=[];}for(const _0x5ac8e6 of _0x194e41)for(let _0x1f6c6d=0x0;_0x1f6c6d<_0x5ac8e6['length'];_0x1f6c6d++){const _0x1d0386=_0x5ac8e6[_0x1f6c6d+0x1]||null;_0x5ac8e6[_0x1f6c6d]['next']!==_0x1d0386&&(_0x5ac8e6[_0x1f6c6d]['next']=_0x1d0386);}for(const _0x4211b8 of _0x194e41)for(let _0x4ea807=0x0;_0x4ea807<_0x4211b8['length'];_0x4ea807++){const _0x241cca=_0x4211b8[_0x4ea807-0x1]||null;_0x4211b8[_0x4ea807]['previous']!==_0x241cca&&(_0x4211b8[_0x4ea807]['previous']=_0x241cca);}function _0x5f04ad(_0x29925b,_0x438555){if(_0x29925b[0x0]['attributes']['groupId']!==_0x438555[0x0]['attributes']['groupId']&&_0x29925b[0x0]['author']!==_0x438555[0x0]['author'])return!0x1;if(!function(_0x4aefdd,_0x56190f){if(!_0x4aefdd['hasComments']&&!_0x56190f['hasComments'])return!0x0;if(_0x4aefdd['hasComments']&&_0x56190f['hasComments'])return!0x1;if(_0x4aefdd['hasComments']&&_0x56190f['createdAt']<_0x4aefdd['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x56190f['hasComments']&&_0x4aefdd['createdAt']<_0x56190f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x29925b[0x0],_0x438555[0x0]))return!0x1;const _0x177f73=ot(_0x29925b[0x0]['attributes'],['groupId','trackingSessionId']),_0x27bedc=ot(_0x438555[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x177f73,_0x27bedc))return!0x1;if(_0x29925b[0x0]['attributes']['groupId']==_0x438555[0x0]['attributes']['groupId'])return!0x0;if(_0x29925b[0x0]['attributes']['trackingSessionId']!==_0x438555[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x29925b['every'](_0x5334c3=>_0x438555['some'](_0x380c14=>_0x5334c3['getFirstRange']()['isEqual'](_0x380c14['getFirstRange']())))&&_0x438555['every'](_0x259f49=>_0x29925b['some'](_0x6eed2a=>_0x259f49['getFirstRange']()['isEqual'](_0x6eed2a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x79c33b){const _0x8b4660=Array['from'](_0x79c33b),_0x4e6915=this['getSuggestions']({'skipNotAttached':!0x0}),_0x492976=_0x4e6915['filter'](_0x1add4d=>!_0x79c33b['has'](_0x1add4d)),_0x1a2502=new Map(_0x8b4660['map'](_0x2c9a76=>[_0x2c9a76,this['_suggestionFactory']['getSuggestionCallback'](_0x2c9a76['type'],_0x2c9a76['subType'],'join')])),_0x23bfe6=new Map(_0x4e6915['map'](_0x5dfe68=>[_0x5dfe68,_0x5dfe68['getRanges']()]));for(let _0xa389b3=0x0;_0xa389b3<_0x8b4660['length'];_0xa389b3++){if(_0xb5f176(this,_0x8b4660[_0xa389b3],_0x8b4660,_0xa389b3+0x1))return!0x0;}for(let _0x50fc90=0x0;_0x50fc90<_0x8b4660['length'];_0x50fc90++){if(_0xb5f176(this,_0x8b4660[_0x50fc90],_0x492976,0x0))return!0x0;}return!0x1;function _0xb5f176(_0x1e723f,_0x5bb651,_0xb7c3a,_0x31d115){for(let _0x1b5f9d=_0x31d115;_0x1b5f9d<_0xb7c3a['length'];_0x1b5f9d++){const _0x378518=_0xb7c3a[_0x1b5f9d];if(_0x378518['type']!==_0x5bb651['type']||_0x378518['author']['id']!==_0x5bb651['author']['id']||_0x378518['subType']!==_0x5bb651['subType'])continue;if(!jt(_0x5bb651,_0x378518))continue;if('attribute'==_0x5bb651['type']&&_0x5bb651['data']['oldValue']!=_0x378518['data']['oldValue'])continue;if('attribute'==_0x5bb651['type']&&_0x1e723f['_suggestionsConversion']['isBlockAttribute'](_0x5bb651['data']['key']))continue;if('formatBlock'==_0x5bb651['type']){const _0x1e0442=_0x1e723f['editor']['model'],_0x448184=_0x5bb651['getContainedElement']();if(_0x448184&&(_0x1e0442['schema']['isObject'](_0x448184)||_0x1e0442['schema']['isLimit'](_0x448184)))continue;}const _0x5b73c0=_0x1a2502['get'](_0x5bb651),_0xafc620=_0x23bfe6['get'](_0x5bb651),_0x5856af=_0x23bfe6['get'](_0x378518),_0x52ae76=_0x5bb651['commentThread']&&_0x5bb651['commentThread']['length'],_0x44b0a3=_0x378518['commentThread']&&_0x378518['commentThread']['length'];if(!_0x52ae76&&_0x5b73c0(_0x5856af,_0xafc620))return _0x1e723f['_joinSuggestions'](_0x378518,_0x5bb651),_0x23bfe6['delete'](_0x5bb651),!0x0;if(!_0x44b0a3&&_0x5b73c0(_0xafc620,_0x5856af))return _0x1e723f['_joinSuggestions'](_0x5bb651,_0x378518),_0x23bfe6['delete'](_0x378518),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5f1465,_0x41ad74){if(_0x5f1465['isMultiRange']){for(const _0x557856 of _0x41ad74['getRanges']())_0x5f1465['addRange'](_0x557856);}else{const _0x523a6d=_0x41ad74['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5f1465,this['_model']['createRange'](_0x5f1465['getFirstRange']()['start'],_0x523a6d));}_0x41ad74['removeMarkers']();}['_getMarkerAnnouncementText'](_0x372a6a,_0xff997a,_0x3ec2d2){const _0x6bba03=_0x372a6a['startsWith']('format')||_0x372a6a['startsWith']('attribute')?'FORMATTING':_0x372a6a['toUpperCase']();return Tt(this['editor']['locale'],_0xff997a+'_'+_0x6bba03+'_SUGGESTION_ANNOUNCEMENT',_0x3ec2d2);}['_initAriaMarkerChangeAnnouncements'](){const _0xb905ca=this['editor'];if(!_0xb905ca['ui'])return;const {ariaLiveAnnouncer:_0x38b796}=_0xb905ca['ui'];_0x1a4c74(this['_model'],({left:_0x2daaa6,entered:_0xbcf942})=>{for(const _0x5e383e of _0x2daaa6){const {group:_0x1e34ca,type:_0x5b7d8b}=_0x4f787f(_0x5e383e['name']);if('suggestion'===_0x1e34ca){_0x38b796['announce'](this['_getMarkerAnnouncementText'](_0x5b7d8b,'LEAVE'));break;}}for(const _0x40c0b4 of _0xbcf942){const {group:_0x518f83,type:_0x5dce09}=_0x4f787f(_0x40c0b4['name']);if('suggestion'===_0x518f83){_0x38b796['announce'](this['_getMarkerAnnouncementText'](_0x5dce09,'ENTER',_0x1d258e(_0x4eb651)));break;}}});}['_processAttributeChanges'](_0x32b897){if(this['_recordAttributeSuggestions'])return!0x1;const _0x34ab74=this['editor'],_0x237e20=_0x34ab74['model']['document']['differ']['getChanges']();if(0x0==_0x237e20['length'])return!0x1;const _0x27b1e5=[],_0x4720f5=_0x237e20['filter'](_0x7b3504=>'attribute'==_0x7b3504['type']),_0x168b41=_0x237e20['filter'](_0xc6b4a=>'insert'==_0xc6b4a['type']&&'$text'!=_0xc6b4a['name']),_0x143bb3=_0x237e20['filter'](_0x37620e=>'remove'==_0x37620e['type']&&'$text'!=_0x37620e['name']);for(const _0x58cea2 of _0x4720f5)_0x27b1e5['push']({'key':_0x58cea2['attributeKey'],'newValue':_0x58cea2['attributeNewValue'],'oldValue':_0x58cea2['attributeOldValue'],'range':$t(_0x58cea2['range'],_0x34ab74['model'])});for(const _0x482106 of _0x168b41){const _0x114a48=_0x143bb3['find'](_0x8b503f=>_0x8b503f['position']['isEqual'](_0x482106['position']));_0x114a48&&_0x27b1e5['push']({'key':Bt,'newValue':_0x482106['name'],'oldValue':_0x114a48['name'],'range':_0x34ab74['model']['createRangeOn'](_0x482106['position']['nodeAfter'])});}return 0x0!=_0x27b1e5['length']&&this['_reduceExistingSuggestions'](_0x32b897,_0x27b1e5);}['_processAttributeSuggestions'](_0x48f89a){let _0x3a0b48=!0x1;const _0x400662=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xbf8d9d=>_0xbf8d9d['data']['newRange']&&_0xbf8d9d['name']['startsWith']('suggestion:attribute:'));for(const _0x184d2f of _0x400662){const {subType:_0x45c198,id:_0x2fe882}=_0x4f787f(_0x184d2f['name']),_0x318c0b=_0x45c198['split']('|')[0x0];for(const _0x53b970 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x53b970['id']!=_0x2fe882&&'attribute'==_0x53b970['type']&&_0x53b970['data']&&_0x53b970['data']['key']==_0x318c0b&&_0x53b970['getFirstRange']()['isIntersecting'](_0x184d2f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x53b970,_0x184d2f['data']['newRange'],_0x48f89a),_0x3a0b48=!0x0);}return _0x3a0b48;}['recordAttributeChanges'](_0x33c68b){this['_recordAttributeSuggestions']=!0x0,_0x33c68b();}['_reduceExistingSuggestions'](_0x3e9437,_0x1c00d4){if(0x0==_0x1c00d4['length'])return!0x1;let _0x3dc94a=!0x1;for(const _0x5c33bb of _0x1c00d4){const _0x59210f=this['_findSuggestions'](_0x5c33bb['range'],'attribute')['filter'](_0x1d284f=>!_0x1d284f['meta']['isNextTo'])['map'](_0x55b7f8=>_0x55b7f8['suggestion']),_0x3cabc4=_0x1fc623({'newValue':_0x5c33bb['newValue']});_0x59210f['filter'](_0xc19ba2=>{const [_0x18af0a,_0x4fbbef]=_0xc19ba2['subType']['split']('|');return _0x18af0a==_0x5c33bb['key']&&_0x4fbbef!=_0x3cabc4;})['forEach'](_0x317942=>{this['_reduceSuggestionAttributeRange'](_0x317942,_0x5c33bb['range'],_0x3e9437),_0x3dc94a=!0x0;});}return _0x3dc94a;}['_reduceSuggestionAttributeRange'](_0x52a187,_0x663606,_0x5c0d64){const _0xa2031f=_0x52a187['getFirstRange']()['getDifference'](_0x663606);0x0!==_0xa2031f['length']?0x1!==_0xa2031f['length']?this['_breakSuggestionMarker'](_0x52a187,_0x663606['start'],_0x663606['end']):this['_setSuggestionRange'](_0x52a187,_0xa2031f[0x0]):_0x5c0d64['removeMarker'](_0x52a187['getFirstMarker']());}}class SuggestionFactory{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x55c9bd){this['_editor']=_0x55c9bd,this['_model']=_0x55c9bd['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2e589b,_0xd9b9d2,_0x404511,_0x3eb02b,_0x22f1db,_0x1495f8,_0x27852a){return new Suggestion(this['_model'],{'type':_0x2e589b,'subType':_0xd9b9d2,'id':_0x404511,'originalSuggestionId':_0x27852a,'author':_0x3eb02b,'creator':_0x3eb02b,'attributes':_0x22f1db,'onAttributesChange':_0x1495f8,'onAccept':(..._0x5e462f)=>this['getSuggestionCallback'](_0x2e589b,_0xd9b9d2,'accept')(..._0x5e462f),'onDiscard':(..._0xcf937d)=>this['getSuggestionCallback'](_0x2e589b,_0xd9b9d2,'discard')(..._0xcf937d)});}['registerCustomCallback'](_0x743547,_0x20401a,_0xa69931,_0x27fcce){const _0x126271=_0x743547+':'+_0x20401a+':'+_0xa69931;this['_customCallbacks']['set'](_0x126271,_0x27fcce);}['getSuggestionCallback'](_0x220538,_0x4efe5e,_0x597aa1){const _0x59616a=_0x220538+':'+_0x4efe5e+':'+_0x597aa1;return this['_customCallbacks']['get'](_0x59616a)||this['_defaultCallbacks']['get'](_0x220538+':'+_0x597aa1);}['_registerDefaultCallbacks'](){const _0x264e8c=()=>!0x1,_0x8c58e6=_0x965602=>{_0x965602['sort']((_0x513c24,_0xd80a85)=>_0x513c24['start']['isBefore'](_0xd80a85['start'])?0x1:-0x1),this['_model']['change'](_0xdde8cb=>{for(const _0x356042 of _0x965602){let _0x5e69c4;_0x5e69c4=_0x356042['end']['isAtEnd']&&_0x356042['end']['parent']==_0x356042['start']['nodeAfter']?_0xdde8cb['createSelection'](_0x356042['start']['nodeAfter'],'on'):_0xdde8cb['createSelection'](_0x356042),this['_model']['deleteContent'](_0x5e69c4,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x3f1a61=(_0x4bab47,_0x10276d)=>{_0x10276d&&this['_model']['change'](_0x3851e4=>{const {commandName:_0x3a1186,commandParams:_0x45871e=[]}=_0x10276d,_0x238eec=_0x4bab47['map'](_0x1a944c=>(vt(_0x1a944c)&&(_0x1a944c=this['_model']['createRange'](_0x1a944c['end'])),_0x1a944c))['filter'](_0x4b1aaf=>'$graveyard'!==_0x4b1aaf['root']['rootName']);if(_0x238eec['length']<0x1)return;const _0x31bb4f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2cc699=>_0x4c6b54['fromRange'](_0x2cc699));_0x3851e4['setSelection'](_0x238eec);for(const _0x48962b of this['_editor']['commands']['commands']())_0x48962b['refresh']();_0x45871e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3a1186,..._0x45871e);const _0x19440d=_0x31bb4f['filter'](_0x4a3c4d=>'$graveyard'!=_0x4a3c4d['root']['rootName']);_0x19440d['length']>0x0&&_0x3851e4['setSelection'](_0x19440d);for(const _0x96b7cc of _0x31bb4f)_0x96b7cc['detach']();});},_0x511ead=(_0x54c059,_0xd62545)=>0x1==_0x54c059['length']&&0x1==_0xd62545['length']&&_0x54c059[0x0]['end']['isEqual'](_0xd62545[0x0]['start']),_0x23498e=(_0x21247c,_0xe4806a,_0x578823,_0x88ffc7)=>Wt(_0x21247c,_0xe4806a,_0x578823,_0x88ffc7)?[_0x21247c,_0xe4806a]:Wt(_0xe4806a,_0x21247c,_0x88ffc7,_0x578823)?[_0xe4806a,_0x21247c]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x264e8c),this['_defaultCallbacks']['set']('insertion:discard',_0x8c58e6),this['_defaultCallbacks']['set']('insertion:join',_0x511ead),this['_defaultCallbacks']['set']('insertion:chain',_0x23498e),this['_defaultCallbacks']['set']('deletion:accept',_0x8c58e6),this['_defaultCallbacks']['set']('deletion:discard',_0x264e8c),this['_defaultCallbacks']['set']('deletion:join',_0x511ead),this['_defaultCallbacks']['set']('deletion:chain',_0x23498e),this['_defaultCallbacks']['set']('formatInline:accept',_0x3f1a61),this['_defaultCallbacks']['set']('formatInline:discard',_0x264e8c),this['_defaultCallbacks']['set']('formatInline:join',_0x511ead),this['_defaultCallbacks']['set']('formatInline:chain',_0x264e8c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3f1a61),this['_defaultCallbacks']['set']('formatBlock:discard',_0x264e8c),this['_defaultCallbacks']['set']('formatBlock:join',_0x511ead),this['_defaultCallbacks']['set']('formatBlock:chain',_0x264e8c),this['_defaultCallbacks']['set']('attribute:accept',_0x264e8c),this['_defaultCallbacks']['set']('attribute:discard',(_0x3e5fa4,_0x41d10c)=>{if(!_0x41d10c)return;const _0x194cd2=this['_editor']['plugins']['get'](_0x540837);this['_model']['change'](_0x3a9530=>{if(_0x41d10c['key']==Bt)for(const _0x4983d2 of _0x3e5fa4){const _0x5c5d1d=_0x4983d2['start']['nodeAfter'],_0x2c0292=_0x41d10c['oldValue'];_0x3a9530['rename'](_0x5c5d1d,_0x2c0292);}else{if(_0x194cd2['isBlockAttribute'](_0x41d10c['key'])){for(const _0x1653ee of _0x3e5fa4)void 0x0!==_0x41d10c['oldValue']?_0x3a9530['setAttribute'](_0x41d10c['key'],_0x41d10c['oldValue'],_0x1653ee['start']['nodeAfter']):_0x3a9530['removeAttribute'](_0x41d10c['key'],_0x1653ee['start']['nodeAfter']);}else{for(const _0x15bbca of _0x3e5fa4)_0x41d10c['oldValue']?_0x3a9530['setAttribute'](_0x41d10c['key'],_0x41d10c['oldValue'],_0x15bbca):_0x3a9530['removeAttribute'](_0x41d10c['key'],_0x15bbca);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x511ead);}}function Dt(_0x574cb3,_0x4e5b70,_0x529998){for(const _0x343b5c of _0x4e5b70['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x343b5c['root']==_0x343b5c)return!0x1;if(!_0x529998['containsItem'](_0x343b5c))return!0x1;if(_0x574cb3['isObject'](_0x343b5c)||_0x574cb3['isLimit'](_0x343b5c))return!0x0;}return!0x1;}function vt(_0x39fbff){return _0x39fbff['end']['parent']==_0x39fbff['start']['nodeAfter']&&_0x39fbff['end']['isAtStart'];}function Pt(_0x3cc182,_0x359311,_0xf439de,_0x5bc79c){const _0x330d90=_0x54d4f7=>!_0x54d4f7['item']['is']('$textProxy')&&!_0x5bc79c['isObject'](_0x54d4f7['item']),_0x144d20=_0x3cc182['start']['getLastMatchingPosition'](_0x330d90),_0x44deb3=_0x3cc182['end']['getLastMatchingPosition'](_0x330d90,{'direction':'backward'});return(!_0x3cc182['start']['isEqual'](_0x144d20)||!_0x3cc182['end']['isEqual'](_0x44deb3))&&(_0x144d20['isBefore'](_0x44deb3)?_0xf439de['updateMarker'](_0x359311,{'range':_0xf439de['createRange'](_0x144d20,_0x44deb3)}):_0xf439de['removeMarker'](_0x359311),!0x0);}function xt(_0x3b55c5){return _0x1fc623(_0x3b55c5);}function Ut(_0x56203e){const _0x467efc=_0x56203e['start']['nodeAfter'];return _0x467efc&&_0x467efc['is']('element');}function Gt(_0x5ae36e){return vt(_0x5ae36e)||function(_0x1bd351){return _0x1bd351['start']['parent']==_0x1bd351['end']['nodeBefore']&&_0x1bd351['start']['isAtEnd'];}(_0x5ae36e);}function Ht(_0x2a6069,_0x2524cd){try{const _0x182137=_0x2a6069['getRange']();for(const _0xd6bf38 of _0x2524cd)if(_0x2a6069!==_0xd6bf38&&_0x182137&&_0x182137['isIntersecting'](_0xd6bf38['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function $t(_0x4014dd,_0x164f99){return null==_0x4014dd['end']['nodeBefore']&&_0x4014dd['end']['parent']==_0x4014dd['start']['nodeAfter']?Vt(_0x4014dd['start']['nodeAfter'],_0x164f99):_0x4014dd;}function Vt(_0x2d0bd7,_0x33b795){const _0x4b3f34=_0x33b795['schema']['isObject'](_0x2d0bd7)||_0x33b795['schema']['isSelectable'](_0x2d0bd7);return _0x33b795['createRange'](_0x33b795['createPositionAt'](_0x2d0bd7,'before'),_0x4b3f34?_0x33b795['createPositionAfter'](_0x2d0bd7):_0x33b795['createPositionAt'](_0x2d0bd7,'end'));}function Wt(_0x158848,_0x43cd55,_0x3e211d,_0x442d37){return!!jt(_0x158848,_0x43cd55)&&_0x3e211d['end']['isEqual'](_0x442d37['start']);}function jt(_0x316ba1,_0x46f967){if(!_0x316ba1['_isDataLoaded']||!_0x46f967['_isDataLoaded'])return!0x1;const _0xeeeffc=new Set(Object['keys'](_0x316ba1['attributes'])),_0x259e6c=new Set(Object['keys'](_0x46f967['attributes']));if(_0xeeeffc['delete']('groupId'),_0x259e6c['delete']('groupId'),0x0==_0xeeeffc['size']&&0x0==_0x259e6c['size'])return!0x0;if(_0xeeeffc['size']!=_0x259e6c['size'])return!0x1;const _0x5aeff9={..._0x316ba1['attributes']},_0x2a13d9={..._0x46f967['attributes']};return delete _0x5aeff9['groupId'],delete _0x2a13d9['groupId'],JSON['stringify'](_0x5aeff9)==JSON['stringify'](_0x2a13d9);}function zt(_0x375b25,_0x52110c){const _0x5c5b83=Kt(_0x375b25['attributes']),_0x35d4d2=Kt(_0x52110c);if(!_0x375b25['_isDataLoaded'])return!0x1;for(const _0x31846d of Object['keys'](_0x35d4d2))if(!st(_0x5c5b83[_0x31846d],_0x35d4d2[_0x31846d]))return!0x1;return!0x0;}function Kt(_0x21a912){const _0x316304=Object['assign']({},_0x21a912);return delete _0x316304['skipNestingCheck'],delete _0x316304['tablePasteChainId'],_0x316304;}function Xt(_0x2a0c5c){return _0x2a0c5c['split']('|')[0x0];}class SuggestionController extends/* #__PURE__ -- @preserve */
26
- _0x1ca856(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x30f2da,_0x193aef,_0x1d5e9a,_0x4b7fab){super(),this['model']=_0x193aef,this['view']=_0x1d5e9a,this['commentThreadController']=_0x4b7fab,this['_editor']=_0x30f2da,this['_acceptCommand']=_0x30f2da['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x30f2da['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2b4bf5,_0x1b1a65)=>_0x2b4bf5||_0x1b1a65),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4bc64c=>_0x4bc64c&&this['_editor']['model']['canEditAt'](_0x193aef['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x23590d=>_0x23590d&&this['_editor']['model']['canEditAt'](_0x193aef['getRanges']())),this['_pendingAction']=null,_0x1d5e9a['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1d5e9a,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1d5e9a,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1d5e9a,'change:isDirty',()=>{_0x1d5e9a['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 _0xc44b78=Tt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xc44b78);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class BaseSuggestionThreadView extends _0x7acdaf{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4f5dd6,_0x261849,_0x189cc0,_0x2dbeda){super(_0x4f5dd6),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5b849f(_0x4f5dd6,Tt(_0x4f5dd6,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x261849['authoredAt']),this['bind']('authoredAt')['to'](_0x261849),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',_0x261849,'authoredAt',this,'descriptionParts',(_0x5cfd18,_0x73c21,_0x1fe534)=>{const _0x5701cf=_0x1fe534['map'](_0x28578b=>ht(_0x28578b['content']))['join']('.\x20')+'.';return Tt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5cfd18-0x1,_0x261849['author']['name'],_0x73c21?_0x2dbeda['formatDateTime'](_0x73c21):'',new DOMParser()['parseFromString'](_0x5701cf,'text/html')['body']['textContent']]);}),this['focusables']=new _0x47db65(),this['focusTracker']=new _0x5def1f(),this['keystrokes']=new _0x7c07a3(),this['focusCycler']=new _0x5602a4({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x424886=>_0x424886['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x261849,this['_localUser']=_0x189cc0,this['_config']=_0x2dbeda,_0x2dbeda['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xdc32b2(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1fde34}=this['_config'];this['commentsListView']=new _0x1fde34(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',_0x1072a1=>_0x1072a1+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4e8643,_0x2bb3cd)=>_0x4e8643||!!_0x2bb3cd);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x208114}=this['_config'],_0x16e4bb=new _0x208114(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4c9323=_0x16e4bb['commentInputView'];return _0x16e4bb['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4c9323,'value',(_0x3e5b93,_0x4c702a,_0x20eaf0)=>!!_0x20eaf0||_0x3e5b93&&!_0x4c702a),_0x4c9323['on']('submit',(_0xb0af9b,_0x78fc3d)=>{this['fire']('addComment',_0x78fc3d),_0x4c9323['editor']['setData']('');}),_0x4c9323['on']('cancel',()=>this['focus']()),_0x4c9323['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x16e4bb;}}class SuggestionThreadView extends BaseSuggestionThreadView{['suggestionView'];['_descriptionElement'];constructor(_0x416f40,_0x4f2af5,_0x1dd847,_0x1df340){super(_0x416f40,_0x4f2af5,_0x1dd847,_0x1df340),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x280cf4=>_0x280cf4&&_0x280cf4[0x0]?_0x280cf4[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x25d415,_0x2164a9)=>{let _0x402f32='';for(const _0x4ac60e of _0x25d415)_0x402f32+='<p>'+ht(_0x4ac60e['content'],_0x4ac60e['color'])+'</p>';return _0x2164a9?_0x402f32:_0x4e34a1(_0x402f32,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1df340['SuggestionView'](_0x416f40,_0x4f2af5,{'formatDateTime':_0x1df340['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 _0x1ea277=this['bindTemplate'],_0x3aa9f8=[this['suggestionView']];return this['commentsListView']&&_0x3aa9f8['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3aa9f8['push'](this['commentThreadInputView']),_0x3aa9f8['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1ea277['if']('isActive','ck-suggestion-wrapper--active'),_0x1ea277['to']('type',_0x435830=>'ck-suggestion-'+_0x435830),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':_0x1ea277['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3aa9f8};}['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 SuggestionView extends _0x7acdaf{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xdc5ab3,_0x189b9c,_0xa5022){super(_0xdc5ab3),this['_model']=_0x189b9c,this['_config']=_0xa5022,this['set']('description',''),this['bind']('authoredAt')['to'](_0x189b9c),this['acceptButton']=this['_createButton'](Tt(_0xdc5ab3,'Accept\x20suggestion'),_0x4931a8,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Tt(_0xdc5ab3,'Discard\x20suggestion'),_0x39c270,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x15cd9a(_0xdc5ab3,_0x189b9c['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x47db65([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5def1f(),this['keystrokes']=new _0x7c07a3(),this['focusCycler']=new _0x5602a4({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xef31d8=>_0xef31d8['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x109e15=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x109e15['innerHTML']=this['description'],this['on']('change:description',(_0x33f5c9,_0x40f3dc,_0x163d1c)=>{_0x109e15['innerHTML']=_0x163d1c;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1ab711=this['bindTemplate'],_0x42acae=[{'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':_0x1ab711['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1ab711['to']('authoredAt',_0x518725=>this['_config']['formatDateTime'](_0x518725))}]}]},{'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']&&_0x42acae['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':_0x42acae}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Tt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Tt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?Tt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Tt(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x1e85bb,_0xf2636d,_0x329057,_0x1b558b,_0xf567a6){const _0x3c08f2=new _0x1f4595(this['locale']);return _0x3c08f2['set']({'label':_0x1e85bb,'icon':_0xf2636d,'tooltip':!0x0,'tooltipPosition':_0xf567a6}),_0x3c08f2['extendTemplate']({'attributes':{'class':_0x329057}}),_0x3c08f2['on']('execute',()=>{this['fire'](_0x1b558b,this['_model']['id']);}),_0x3c08f2;}['_setupKeyboardNavigation'](){const _0x478787=this['element'];this['keystrokes']['listenTo'](_0x478787);for(const _0x54bfcb of this['focusables'])this['focusTracker']['add'](_0x54bfcb['element']),this['keystrokes']['listenTo'](_0x54bfcb['element']);this['keystrokes']['set']('enter',(_0x15886e,_0x2c0c9a)=>{_0x478787===_0x15886e['target']&&(this['focusCycler']['focusFirst'](),_0x2c0c9a());}),this['keystrokes']['set']('esc',(_0x31f599,_0x4723d1)=>{_0x478787!==_0x31f599['target']&&(this['focus'](),_0x4723d1());});}}class TrackChangesUI extends _0x203e6b{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[TrackChangesEditing,_0x3771e4,_0x300715,_0x18743c,_0x183fc3];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5925b3){super(_0x5925b3),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x291382=this['editor']['config'];_0x291382['define']('trackChanges.SuggestionThreadView',SuggestionThreadView),_0x291382['define']('trackChanges.SuggestionView',SuggestionView),_0x291382['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x291382['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3d31ef,_0x499973){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x44912b,_0x13bc62]of this['_handleControllerBuffer']){const _0x419f27=this['_suggestionToController']['has'](_0x44912b);_0x419f27||_0x13bc62?_0x419f27&&_0x13bc62&&this['_destroyController'](_0x44912b):this['_initializeController'](_0x44912b);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x183fc3)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3d31ef,_0x499973);}['init'](){const _0xb956fe=this['editor'],_0x45068c=_0xb956fe['plugins']['get'](TrackChangesEditing),_0x403349=_0xb956fe['plugins']['get'](_0x18743c),_0xe8db52=_0xb956fe['plugins']['get'](_0x183fc3),_0x4f9e29=_0xb956fe['plugins']['get'](_0x300715);this['_addUIComponentsToFactory'](),_0xe8db52['addSourceCollector'](()=>{const _0x39d423=[];for(const [_0x2c67d7,_0x452144]of Array['from'](this['_suggestionToController'])){const _0x5c5fc=_0x2c67d7['getAllAdjacentSuggestions'](),_0x454758=[];for(const _0x16097d of _0x5c5fc){if(!_0x16097d['isInContent'])continue;if(_0x16097d['isMultiRange']){_0x454758['push'](..._0x16097d['getRanges']());continue;}const _0x291177=_0x16097d['getFirstRange']();if(_0x454758['length']>0x0){const _0x1d2f50=_0x454758[0x0]['getJoined'](_0x291177);if(_0x1d2f50){_0x454758[0x0]=_0x1d2f50;continue;}}_0x454758['push'](_0x291177);}_0x39d423['push']([_0x452144['view'],_0x454758]);}return _0x39d423;}),this['listenTo'](_0x45068c,'suggestionLoaded',(_0x5ed4dc,_0x46dbd0)=>{this['listenTo'](_0x46dbd0,'change:previous',(_0x106328,_0x427744,_0x5acd4b,_0xacb76f)=>{_0x46dbd0['isInContent']&&(null==_0x5acd4b?(this['_updateController'](_0xacb76f['head']),this['_handleSuggestionControllerDelayed'](_0x46dbd0,!0x1)):(this['_updateController'](_0x5acd4b['head']),null==_0xacb76f&&this['_handleSuggestionControllerDelayed'](_0x46dbd0,!0x0)));}),null!==_0x46dbd0['previous']?this['_updateController'](_0x46dbd0['head']):this['_handleSuggestionControllerDelayed'](_0x46dbd0,!0x1);}),this['listenTo'](_0x45068c,'suggestionUnloaded',(_0x479177,_0xc43c9d,_0x39becb)=>{this['stopListening'](_0xc43c9d,'change:previous'),this['_handleControllerBuffer']['delete'](_0xc43c9d),this['_suggestionToController']['has'](_0xc43c9d)&&this['_destroyController'](_0xc43c9d),_0x39becb&&this['_updateController'](_0x39becb['head']);}),this['listenTo'](_0x45068c,'suggestionChanged',(_0x5044ec,_0x2ef702)=>{this['_updateController'](_0x2ef702);}),this['listenTo'](_0x403349,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4f9e29,'addComment',(_0x273957,{threadId:_0x34c82b,isFromAdapter:_0x72e9af})=>{if(_0x72e9af||!_0x45068c['hasSuggestion'](_0x34c82b))return;const _0x2f72cc=_0x45068c['getSuggestion'](_0x34c82b);this['_suggestionToController']['get'](_0x2f72cc)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x36e6e7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x23581a;for(const _0x34a36f in _0x36e6e7){const _0xf7ecb8=_0x34a36f,_0x7b637b=_0x36e6e7[_0xf7ecb8];if('trackChangesLicenseKeyValid'==_0x7b637b||'trackChangesLicenseKeyInvalid'==_0x7b637b||'trackChangesLicenseKeyExpired'==_0x7b637b||'trackChangesLicenseKeyDomainLimit'==_0x7b637b||'trackChangesLicenseKeyNotAllowed'==_0x7b637b||'trackChangesLicenseKeyEvaluationLimit'==_0x7b637b||'trackChangesLicenseKeyUsageLimit'==_0x7b637b){delete _0x36e6e7[_0xf7ecb8],_0x23581a=_0x7b637b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x23581a&&_0x36e6e7['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x23581a&&_0x36e6e7['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x23581a&&_0x36e6e7['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x23581a&&_0x36e6e7['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x23581a&&_0x36e6e7['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x23581a&&_0x36e6e7['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x40a874){const _0x2365cb=this['_suggestionToController']['get'](_0x40a874);if(!_0x2365cb)return null;return this['editor']['plugins']['get'](_0x18743c)['getByInnerView'](_0x2365cb['view'])||null;}['getSuggestionForAnnotation'](_0x3d038d){const _0x56df33=this['_viewToController']['get'](_0x3d038d['innerView']);return _0x56df33?_0x56df33['model']:null;}['_refreshActiveMarkers'](){const _0x548535=this['editor']['plugins']['get'](_0x18743c),_0x37f2a8=this['editor']['plugins']['get'](TrackChangesEditing),_0x50fd67=Array['from'](_0x548535['activeAnnotations'],_0x38b966=>_0x38b966['innerView'])['filter'](_0x44cb0e=>this['_viewToController']['has'](_0x44cb0e)),_0x445a35=[];for(const _0x394b3e of _0x50fd67){const _0x31480c=this['_viewToController']['get'](_0x394b3e)['model']['getAllAdjacentSuggestions']();_0x445a35['push'](..._0x31480c['reduce']((_0x32bb29,_0x10ad66)=>[..._0x32bb29,..._0x10ad66['getMarkerNames']()],[]));}_0x37f2a8['activeMarkers']=_0x445a35;}['_addUIComponentsToFactory'](){const _0x1080c0=this['editor'],_0x5ece4f=_0x1080c0['locale'],_0x4841a3=Tt(_0x5ece4f,'Track\x20changes'),_0x21b64e=new _0xa0bdb5([{'type':'switchbutton','model':new _0x3d4a24({'withText':!0x0,'isToggleable':!0x0,'label':_0x4841a3,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3d4a24({'withText':!0x0,'label':Tt(_0x5ece4f,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3d4a24({'withText':!0x0,'label':Tt(_0x5ece4f,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3d4a24({'withText':!0x0,'label':Tt(_0x5ece4f,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3d4a24({'withText':!0x0,'label':Tt(_0x5ece4f,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1080c0['plugins']['has']('TrackChangesPreview')&&_0x21b64e['addMany']([{'type':'separator'},{'type':'button','model':new _0x3d4a24({'withText':!0x0,'label':Tt(_0x5ece4f,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3da9db of _0x21b64e)if(Yt(_0x3da9db)){const _0x3e4aa1=_0x1080c0['commands']['get'](_0x3da9db['model']['commandName']);_0x3da9db['model']['bind']('isOn','isEnabled')['to'](_0x3e4aa1,'value','isEnabled');}_0x1080c0['ui']['componentFactory']['add']('trackChanges',_0x12bd75=>this['_createToolbarButton'](_0x12bd75,_0x21b64e,_0x4841a3)),_0x1080c0['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4c72d4=>this['_createMenuBarMenu'](_0x4c72d4,_0x21b64e,_0x4841a3));}['_createToolbarButton'](_0x498077,_0x17ba74,_0x4d51c1){const _0x2650fa=_0x56fb5d(_0x498077,_0x1fc7da),_0x44807b=this['editor']['commands']['get']('trackChanges');_0x2650fa['buttonView']['set']({'tooltip':_0x4d51c1,'label':_0x4d51c1,'icon':_0xefeca6}),_0x2650fa['buttonView']['bind']('isOn')['to'](_0x44807b,'value'),_0x2650fa['buttonView']['on']('execute',()=>{_0x44807b['execute'](),this['editor']['editing']['view']['focus']();}),_0x8a0123(_0x2650fa,_0x17ba74,{'role':'menu'});const _0x1622dc=[];for(const _0x4d9a77 of _0x17ba74)Yt(_0x4d9a77)&&_0x1622dc['push'](this['editor']['commands']['get'](_0x4d9a77['model']['commandName']));const _0x519ffc=_0x2650fa['buttonView'];return _0x519ffc['actionView']['unbind']('isEnabled'),_0x519ffc['arrowView']['unbind']('isEnabled'),_0x519ffc['actionView']['bind']('isEnabled')['to'](_0x44807b,'isEnabled'),_0x519ffc['arrowView']['bind']('isEnabled')['toMany'](_0x1622dc,'isEnabled',(..._0x51d805)=>_0x51d805['some'](_0x4ae65d=>_0x4ae65d)),_0x2650fa['on']('execute',_0x8a1d42=>{this['editor']['execute'](_0x8a1d42['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2650fa;}['_createMenuBarMenu'](_0x462426,_0x3a7cb2,_0x20d0c3){const _0xcdb5f2=new _0x10e4a3(_0x462426),_0x25c82e=this['editor']['commands']['get']('trackChanges');_0xcdb5f2['buttonView']['set']({'label':_0x20d0c3,'icon':_0xefeca6});const _0x4a67a8=new _0x481bf4(_0x462426);for(const _0x8b2044 of _0x3a7cb2){if('separator'==_0x8b2044['type']){_0x4a67a8['items']['add'](new _0x1e805e(_0x462426));continue;}const _0x47aa07=new _0x18a5b5(_0x462426,_0xcdb5f2),_0x5eefa7=new _0x47e243(_0x462426),_0x3eb008=_0x8b2044['model'];_0x5eefa7['bind'](...Object['keys'](_0x3eb008))['to'](_0x3eb008),_0x5eefa7['delegate']('execute')['to'](_0xcdb5f2),_0x5eefa7['on']('execute',()=>{this['editor']['execute'](_0x3eb008['commandName']),this['editor']['editing']['view']['focus']();}),_0x47aa07['children']['add'](_0x5eefa7),_0x4a67a8['items']['add'](_0x47aa07);}return _0xcdb5f2['bind']('isEnabled')['to'](_0x25c82e,'isEnabled'),_0xcdb5f2['panelView']['children']['add'](_0x4a67a8),_0xcdb5f2;}['_initializeController'](_0x57589d){const _0x774832=this['editor'],_0x39f792=_0x774832['config'],_0x53ddf3=_0x774832['plugins']['get'](_0x18743c),_0x4c2e3c=_0x774832['plugins']['get'](_0x300715),_0xa1b311=_0x774832['plugins']['get'](_0x183fc3),_0x27cdb0=_0x774832['plugins']['get'](_0x3771e4)['me'],_0x5a21e9=_0x39f792['get']('trackChanges')['SuggestionThreadView'],_0x3fa233=_0x39f792['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xc758a8,CommentThreadInputView:_0xa36bb1}=_0x774832['plugins']['get']('CommentsUI');let _0x2e14c7,_0x255c25,_0x44e937;this['_annotationViews']['has'](_0x57589d['id'])?(_0x255c25=this['_annotationViews']['get'](_0x57589d['id']),_0x2e14c7=_0x255c25['mainView']):(_0x2e14c7=new _0x5a21e9(_0x774832['locale'],_0x57589d,_0x27cdb0,{'disableComments':this['_disableComments'],'editorConfig':{..._0x39f792['get']('comments.editorConfig'),'licenseKey':_0x39f792['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x39f792['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x39f792['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x39f792['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x59dff4(_0x39f792['get']('locale'),_0x774832['locale']),'CommentView':_0x39f792['get']('comments')['CommentView'],'CommentsListView':_0xc758a8,'CommentThreadInputView':_0xa36bb1,'SuggestionView':_0x3fa233}),_0x2e14c7['suggestionView']['acceptButton']['on']('execute',()=>{_0x774832['editing']['view']['focus']();}),_0x2e14c7['suggestionView']['discardButton']['on']('execute',()=>{_0x774832['editing']['view']['focus']();}),_0x255c25=_0x53ddf3['createAnnotationView'](this['editor']['locale'],_0x2e14c7),_0x255c25['bind']('isDirty')['to'](_0x2e14c7,'isDirty'),_0x255c25['bind']('length')['to'](_0x2e14c7),_0x255c25['bind']('type')['to'](_0x2e14c7,'type',_0x2a2c4a=>'suggestion-'+_0x2a2c4a),_0x2e14c7['on']('escape',()=>{_0x44e937['fire']('escape');}),this['_annotationViews']['set'](_0x57589d['id'],_0x255c25));const _0x192ad2=_0x4c2e3c['createCommentThreadController'](_0x57589d['commentThread'],_0x2e14c7),_0x51cf46=new SuggestionController(_0x774832,_0x57589d,_0x2e14c7,_0x192ad2),_0x2c1e61=_0x57589d['getAllAdjacentSuggestions']()['filter'](_0x53c484=>_0x53c484['isInContent']);_0x2e14c7['descriptionParts']=_0x774832['plugins']['get'](TrackChangesEditing)['descriptionFactory']['getDescriptions'](_0x2c1e61),this['_suggestionToController']['set'](_0x57589d,_0x51cf46),this['_viewToController']['set'](_0x2e14c7,_0x51cf46);const _0x394b57=()=>{const _0x769a2b=[],_0x4897dc=_0x57589d['getAllAdjacentSuggestions']()['filter'](_0x3a0d18=>_0x3a0d18['isInContent']);for(const _0x384273 of _0x4897dc)_0x769a2b['push'](..._0x384273['getMarkers']());return _0x521940(_0x774832['editing'],_0x769a2b);};_0x44e937=_0x53ddf3['createAnnotation']({'view':_0x255c25,'target':_0x394b57,'type':()=>'suggestion-'+_0x51cf46['view']['type'],'isVisible':!!_0x394b57()}),_0x4c2e3c['_bindAnnotationToEditors'](_0x2e14c7,_0x44e937),_0x53ddf3['add'](_0x44e937),_0xa1b311['registerAnnotation'](_0x44e937);}['_destroyController'](_0x41c34d){const _0x2aba02=this['editor']['plugins']['get'](_0x300715),_0x13d280=this['editor']['plugins']['get'](_0x18743c),_0x4ad8c8=this['_suggestionToController']['get'](_0x41c34d),_0x3e2b38=_0x4ad8c8['view'],_0x356470=_0x13d280['getByInnerView'](_0x3e2b38);_0x2aba02['_unbindEditors'](_0x3e2b38),_0x356470&&_0x13d280['remove'](_0x356470),this['_suggestionToController']['delete'](_0x41c34d),this['_viewToController']['delete'](_0x3e2b38),_0x4ad8c8['destroy']();}['_updateController'](_0x1f4bea){if(!_0x1f4bea['isInContent']||!this['_suggestionToController']['has'](_0x1f4bea))return;const _0x4363aa=this['editor']['plugins']['get'](TrackChangesEditing),_0x4ef1db=this['_suggestionToController']['get'](_0x1f4bea),_0x17fb90=_0x1f4bea['getAllAdjacentSuggestions']();_0x4ef1db['view']['descriptionParts']=_0x4363aa['descriptionFactory']['getDescriptions'](_0x17fb90);}['destroy'](){for(const _0x3cc798 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3cc798);for(const _0x3fa028 of this['_annotationViews']['values']())_0x3fa028['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Yt(_0x386716){return'model'in _0x386716;}class TrackChanges extends _0x203e6b{static get['requires'](){return[TrackChangesEditing,TrackChangesUI,_0x142b0b];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x409d4b){this['editor']['plugins']['get'](TrackChangesEditing)['adapter']=_0x409d4b;}get['adapter'](){return this['editor']['plugins']['get'](TrackChangesEditing)['adapter'];}['addSuggestion'](_0x3a7484){return this['editor']['plugins']['get'](TrackChangesEditing)['addSuggestionData'](_0x3a7484);}['getSuggestions']({skipNotAttached:_0x5c7b7e=!0x1,toJSON:_0x4b55bd=!0x1}={}){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestions']({'skipNotAttached':_0x5c7b7e,'toJSON':_0x4b55bd});}['getSuggestion'](_0xb54f4b){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestion'](_0xb54f4b);}}const qt=['Pagination'];class TrackChangesData extends _0x203e6b{static get['requires'](){return[TrackChangesEditing];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x21d92c=this['editor'];if(_0x21d92c['config']['define']('trackChangesData.editorCreator',_0x4ada36=>{const _0x3f6756=_0x21d92c['model']['document']['getRootNames']()['reduce']((_0x16a77b,_0x2f9ce0)=>(_0x16a77b[_0x2f9ce0]='',_0x16a77b),{});return _0x21d92c['constructor']['create'](_0x3f6756,_0x4ada36);}),'function'!=typeof _0x21d92c['config']['get']('trackChangesData')['editorCreator'])throw new _0x2618c5('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5849bd){return Zt(this['editor'],!0x0,_0x5849bd);}['getDataWithDiscardedSuggestions'](_0x241426){return Zt(this['editor'],!0x1,_0x241426);}}class TrackChangesDataGetter extends _0x203e6b{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x143900){function _0x1da775(_0xc7622f){return _0xc7622f['map'](_0x3833f8=>String['fromCharCode'](_0x3833f8))['join']('');}super(_0x143900),this['result']='end',_0x143900[_0x1da775([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1da775([0x76,0x69,0x65,0x77])][_0x1da775([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1da775([0x61,0x75,0x74,0x6f]),_0x143900[_0x1da775([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1da775([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1da775([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1da775([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1da775([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 Qt(_0x2b70f5){return void 0x0!==_0x2b70f5['getRootsAttributes'];}async function Zt(_0x294e68,_0x3bee75,_0xa57a9e){const _0x585221=_0x49f7c3(_0x294e68,qt);if(_0x585221['plugins']['push'](TrackChangesEditing,TrackChangesDataGetter),Qt(_0x294e68)){_0x585221['roots']=Object['create'](null);for(const _0x25e840 of _0x294e68['model']['document']['getRootNames']())_0x585221['roots'][_0x25e840]={'modelAttributes':_0x294e68['getRootAttributes'](_0x25e840)};}const _0x3956f3=document['createDocumentFragment'](),_0x3d44fb=_0x294e68['config']['get']('trackChangesData')['editorCreator'],_0x45133a=await _0x3d44fb(_0x585221,()=>function(_0x3355a8){const _0x457a1a=document['createElement']('div');return _0x3355a8['appendChild'](_0x457a1a),_0x457a1a;}(_0x3956f3));!function(_0x42a654,_0x8b1e8d){const _0x81ae41=_0x42a654['model']['document']['getRootNames']()['reduce']((_0x346419,_0x28034b)=>(_0x346419[_0x28034b]=_0x42a654['data']['get']({'rootName':_0x28034b}),_0x346419),{}),_0xd8759a=_0x42a654['plugins']['get']('Users')['users']['map'](_0x3bcb18=>({'id':_0x3bcb18['id'],'name':_0x3bcb18['name']})),_0x2af500=_0x42a654['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x181ceb=_0x42a654['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3ee071=_0x8b1e8d['plugins']['get']('Users'),_0x18433d=_0x8b1e8d['plugins']['get']('TrackChangesEditing'),_0x52ffee=_0x8b1e8d['plugins']['get']('CommentsRepository');for(const _0x245c2a of _0x52ffee['getCommentThreads']())_0x245c2a['remove']();for(const _0x45acbd of _0xd8759a)_0x3ee071['getUser'](_0x45acbd['id'])||_0x3ee071['addUser'](_0x45acbd);_0x3ee071['me']||_0x3ee071['useAnonymousUser']();for(const _0x265389 of _0x181ceb)_0x52ffee['addCommentThread'](_0x265389);for(const _0x1df341 of _0x2af500)_0x18433d['addSuggestionData'](_0x1df341);_0x8b1e8d['data']['set'](_0x81ae41);}(_0x294e68,_0x45133a),_0x45133a['execute'](_0x3bee75?'acceptAllSuggestions':'discardAllSuggestions');const _0x2c5d7a=Qt(_0x45133a)?_0x45133a['getFullData'](_0xa57a9e):_0x45133a['data']['get'](_0xa57a9e);return await _0x45133a['destroy'](),_0x2c5d7a;}class TrackChangesPreviewView extends _0x7acdaf{['options'];constructor(_0x43fc29,_0x11b841){super(_0x43fc29),this['options']=_0x11b841,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'](_0x2be319,_0x5e9756){if(!this['element'])return;const _0x413261=[];for(const [_0x21906f,_0x36dbb8]of _0x2be319){const _0x25ab2f=document['createElement']('div');_0x25ab2f['setAttribute']('data-ck-root-name',_0x21906f),_0x25ab2f['className']=_0x36dbb8['classes']+'\x20ck-track-changes-preview__root-container',_0x25ab2f['innerHTML']=_0x36dbb8['content'],_0x413261['push'](_0x25ab2f);}_0x5e9756(this['element'],_0x413261),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class PreviewFinalContentCommand extends _0x2a8e78{constructor(_0x16e428){super(_0x16e428),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x536786=this['editor'],_0x382e65=_0x536786['locale'],_0x347a5b=_0x536786['plugins']['get']('Dialog');let _0x39dd39;const _0x1a4647=function(_0x1ef8be){const _0x12f58b={};if('editables'in _0x1ef8be['ui']['view']){for(const [_0x5b1a3b,_0x5f0e52]of Object['entries'](_0x1ef8be['ui']['view']['editables']))_0x12f58b[_0x5b1a3b]=_0x5f0e52['element'];}else _0x12f58b[_0x1ef8be['model']['document']['getRootNames']()[0x0]]=_0x1ef8be['ui']['view']['editable']['element'];return _0x12f58b;}(_0x536786),_0x26a7d9=function(_0x3bd368){let _0x268609=0x0;for(const _0x1d3113 of Object['values'](_0x3bd368))_0x268609=Math['max'](_0x268609,_0x1d3113['getBoundingClientRect']()['width']);let _0x5a18ba=0x0;for(const _0x402bc9 of Object['values'](_0x3bd368))_0x5a18ba+=_0x402bc9['getBoundingClientRect']()['height'];const _0x4bd44c=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x4fa4f5=Math['min'](_0x5a18ba,_0x4bd44c);return{'width':_0x268609,'height':_0x4fa4f5};}(_0x1a4647);_0x347a5b['show']({'id':'finalContentPreview','title':Tt(_0x382e65,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new TrackChangesPreviewView(_0x382e65,{'dialogRects':_0x26a7d9}),'onHide':()=>{_0x39dd39['detachFromDom']();},'onShow':()=>{_0x536786['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x56a40a=>{const _0x25f5f7=this['_standarizeRootsData'](_0x56a40a,_0x536786,_0x1a4647);_0x347a5b['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x25f5f7,_0x536786['config']['get']('trackChanges.preview.renderFunction'));}),_0x39dd39=new _0x234ad1(_0x382e65,[_0x347a5b['view']]),_0x39dd39['attachToDom'](),_0x39dd39['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x536786['once']('destroy',()=>{_0x39dd39['detachFromDom']();});const _0x2e1596=_0x347a5b['view']['headerView']['class'];_0x347a5b['view']['headerView']['class']=_0x2e1596?_0x2e1596+'\x20ck-reset_all':'ck-reset_all',_0x347a5b['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x347a5b['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x14f1f2=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x34a52f=_0x14f1f2['previewMode'],_0x191ea7={};if('$labels'===_0x34a52f){for(const _0x2808e7 of _0x14f1f2['getMergeFieldsIds']())_0x191ea7[_0x2808e7]=_0x14f1f2['getLabel'](_0x2808e7)||_0x2808e7;}else{const _0x22582f='$defaultValues'===_0x34a52f?_0x14f1f2['getDefaultValues']():_0x14f1f2['getDataSetValues'](_0x34a52f,!0x0);for(const _0x5ea9f0 of Object['entries'](_0x22582f)){const [_0x8069d4,_0x233f08]=_0x5ea9f0;_0x191ea7[_0x8069d4]=null!==_0x233f08?_0x233f08:_0x14f1f2['getLabel'](_0x8069d4)||_0x8069d4;}}return{'mergeFieldsData':_0x191ea7};}['_standarizeRootsData'](_0x12e54b,_0x5801e6,_0x2c8a14){let _0x25ff1a;if('string'==typeof _0x12e54b){const _0x3eff0a=_0x5801e6['model']['document']['getRootNames']()[0x0];_0x25ff1a={[_0x3eff0a]:_0x12e54b};}else _0x25ff1a=_0x12e54b;const _0x5803e4=this['_fixMediaEmbeds'](_0x25ff1a,_0x5801e6),_0x37145b=function(_0xdc54b8,_0x2d1620){for(const [_0x105cfe,_0x5c7ce1]of _0xdc54b8)_0x5c7ce1['classes']=_0x2d1620[_0x105cfe]['classList']['value']['replace']('ck-focused','');return _0xdc54b8;}(this['_sortRoots'](_0x5801e6)['reduce']((_0x1f260e,_0x1a27b5)=>(_0x1f260e['push']([_0x1a27b5,{'content':_0x5803e4[_0x1a27b5],'classes':''}]),_0x1f260e),[]),_0x2c8a14);return _0x37145b;}['_fixMediaEmbeds'](_0x58608a,_0x4135a6){if(!_0x4135a6['plugins']['has']('MediaEmbedEditing'))return _0x58608a;const _0x487746=_0x4135a6['plugins']['get']('MediaEmbedEditing');for(const [_0x4a439d,_0x47a6a1]of Object['entries'](_0x58608a)){const _0x43e94e=document['createElement']('div');_0x43e94e['innerHTML']=_0x47a6a1,(_0x43e94e['querySelectorAll']('figure.media')['forEach'](_0x1ea322=>{const _0x1f247f=_0x1ea322['querySelector']('oembed');if(_0x1f247f){const _0x455a63=_0x1f247f['getAttribute']('url');if(_0x455a63){const _0x5554b4=_0x487746['registry']['getMediaViewElement'](new et(_0x4135a6['editing']['view']['document']),_0x455a63,{'elementName':'','renderForEditingView':!0x0}),_0x392055=document['createElement']('div');_0x392055['classList']['add']('ck-media__wrapper'),_0x5554b4['render'](_0x392055,_0x4135a6['editing']['view']['domConverter']),_0x1f247f['replaceWith'](_0x392055);}}}),_0x58608a[_0x4a439d]=_0x43e94e['innerHTML']);}return _0x58608a;}['_sortRoots'](_0xe09da9){if(!function(_0x479b1b){return void 0x0!==_0x479b1b['getRootsAttributes'];}(_0xe09da9))return _0xe09da9['model']['document']['getRootNames']();const _0x25c8f6=[],_0x28b3c8=new Map();for(const _0x52876e of _0xe09da9['model']['document']['getRootNames']()){const _0x15c54d=_0xe09da9['editing']['view']['getDomRoot'](_0x52876e)['getClientRects']()['item'](0x0);_0x25c8f6['push'](_0x52876e),_0x28b3c8['set'](_0x52876e,_0x15c54d);}return _0x25c8f6['sort']((_0x280669,_0x29f1f7)=>{const _0x1f1bb7=_0x28b3c8['get'](_0x280669),_0x663c9a=_0x28b3c8['get'](_0x29f1f7);return _0x1f1bb7['y']-_0x663c9a['y']||_0x1f1bb7['x']-_0x663c9a['x'];}),_0x25c8f6;}}class TrackChangesPreview extends _0x203e6b{static get['requires'](){return[TrackChangesData,_0x6c10b8];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x59feb6){super(_0x59feb6),_0x59feb6['commands']['add']('previewFinalContent',new PreviewFinalContentCommand(this['editor'])),_0x59feb6['config']['define']('trackChanges.preview.renderFunction',(_0x53f7e2,_0x1a7c2e)=>{for(const _0x2f7512 of _0x1a7c2e)_0x53f7e2['appendChild'](_0x2f7512);});}}export{AcceptSuggestionCommand,BaseSuggestionThreadView,DiscardSuggestionCommand,ExecuteOnAllSuggestionsCommand,ExecuteOnSelectedSuggestionsCommand,PreviewFinalContentCommand,Suggestion,SuggestionDescriptionFactory,SuggestionThreadView,SuggestionView,TrackChanges,TrackChangesCommand,TrackChangesData,TrackChangesDataGetter,TrackChangesEditing,TrackChangesPreview,TrackChangesUI};
23
+ import{Command as _0x1e6dd8,Plugin as _0xf34f,PendingActions as _0x5ea8ba}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0x208597,Annotations as _0x280499,EditorAnnotations as _0x48bf6b,Comments as _0x5f0eca}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0xa8575f,ObservableMixin as _0x2e2514,uid as _0x424839,priorities as _0x175f1a,insertToPriorityArray as _0x5eb118,logWarning as _0x3d76df,getEnvKeystrokeText as _0x3a5a58,FocusTracker as _0x4d7874,KeystrokeHandler as _0x3727c1,Collection as _0x1cb039}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x22d0e,IconCancel as _0x54c250,IconTrackChanges as _0x481660}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x398be2,View as _0x31f3e3,ViewCollection as _0x29be99,FocusCycler as _0x161670,UIModel as _0x210655,createDropdown as _0x11085c,SplitButtonView as _0x23fd6e,addListToDropdown as _0x5c5ac0,MenuBarMenuView as _0x358f9c,MenuBarMenuListView as _0x54d7bd,ListSeparatorView as _0x126a94,MenuBarMenuListItemView as _0x34e6fe,MenuBarMenuListItemButtonView as _0x3682f4,BodyCollection as _0x4ee44b,Dialog as _0x295711}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x3647dc,SuggestionsConversion as _0x4f6c5d,Users as _0x469759,DocumentCompare as _0x5c00d9,fixElementSuggestionRange as _0x27f920,hashObject as _0x427cb4,surroundingMarkersDetector as _0x3ba145,FOCUS_ANNOTATION_KEYSTROKE as _0x44d9ac,AriaDescriptionView as _0x3466b3,setupThreadKeyboardNavigation as _0x303689,trimHtml as _0x27f0b2,UserView as _0x2aa164,LateFocusButtonView as _0x3c0df3,getDateTimeFormatter as _0x3209ea,getAllMarkersDomElementsSorted as _0x575ec6,sanitizeEditorConfig as _0x498f83}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0xf4c4a3,ModelLiveRange as _0xe62106,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 TrackChangesCommand extends _0x1e6dd8{['_enabledCommands'];constructor(_0x1bddb4,_0x4079f4){super(_0x1bddb4),this['_enabledCommands']=_0x4079f4,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 _0x46e91e of this['editor']['commands']['commands']())_0x46e91e['affectsData']&&!this['_enabledCommands']['has'](_0x46e91e)&&_0x46e91e['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3d0388 of this['editor']['commands']['commands']())_0x3d0388['affectsData']&&!this['_enabledCommands']['has'](_0x3d0388)&&_0x3d0388['clearForceDisabled']('TrackChangesCommand');}}class AcceptSuggestionCommand extends _0x1e6dd8{['_suggestions'];constructor(_0x595d36,_0x1e88e4){super(_0x595d36),this['_suggestions']=_0x1e88e4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1f108a){const _0xb06eee=this['_suggestions']['get'](_0x1f108a);if(!_0xb06eee)throw new _0xa8575f('track-changes-accept-suggestion-not-found',this);const _0x3b83d9=_0xb06eee['getRanges']();this['editor']['model']['canEditAt'](_0x3b83d9)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xb06eee);}}class DiscardSuggestionCommand extends _0x1e6dd8{['_suggestions'];constructor(_0x44e157,_0x56deda){super(_0x44e157),this['_suggestions']=_0x56deda,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x232b0e){const _0x380f7b=this['_suggestions']['get'](_0x232b0e);if(!_0x380f7b)throw new _0xa8575f('track-changes-discard-suggestion-not-found',this);const _0x5d330a=_0x380f7b['getRanges']();this['editor']['model']['canEditAt'](_0x5d330a)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x380f7b);}}function ht(_0x5ea8eb,_0x6ed51b){let _0x147b3d='';return _0x147b3d+=_0x5ea8eb['split']('*')['map']((_0x29cbdf,_0x8d55bd)=>_0x8d55bd%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+dt(_0x29cbdf)+'</span>':dt(_0x29cbdf))['join'](''),_0x6ed51b&&(_0x147b3d+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x6ed51b['value']+'\x22\x20title=\x22'+_0x6ed51b['title']+'\x22></span>'),_0x147b3d;}function dt(_0x1b723b){const _0x51d998=document['createElement']('span');return _0x51d998['innerText']=_0x1b723b,_0x51d998['innerHTML'];}function gt(_0x55e33b){return _0x55e33b['sort']((_0x14261c,_0x485cdd)=>'attribute'===_0x14261c['type']&&'attribute'!==_0x485cdd['type']?-0x1:'attribute'!==_0x14261c['type']&&'attribute'===_0x485cdd['type']?0x1:'deletion'==_0x14261c['type']&&'deletion'!=_0x485cdd['type']?-0x1:'deletion'!=_0x14261c['type']&&'deletion'==_0x485cdd['type']?0x1:0x0);}function ft(_0x3265b5,_0x35f8aa){let _0x77257b,_0x472cc7=0x0;const _0x234708=[],_0x513fc4=_0x35f8aa['schema'];for(;_0x472cc7<_0x3265b5['length'];){const _0x2fcd81=_0x3265b5[_0x472cc7],_0x4a5992=_0x3265b5[_0x472cc7+0x1];_0x77257b||(_0x77257b=_0x35f8aa['createPositionBefore'](_0x2fcd81)),mt(_0x35f8aa,_0x2fcd81,_0x4a5992)||(_0x234708['push'](_0x35f8aa['createRange'](_0x77257b,_0x513fc4['isObject'](_0x2fcd81)?_0x35f8aa['createPositionAfter'](_0x2fcd81):_0x35f8aa['createPositionAt'](_0x2fcd81,'end'))),_0x77257b=null),_0x472cc7++;}return _0x234708;}function mt(_0x56e672,_0x57fcd6,_0x46d66f){if(!_0x46d66f)return!0x1;const _0x1785b3=_0x56e672['createPositionAfter'](_0x57fcd6),_0x2486b2=_0x56e672['createPositionBefore'](_0x46d66f);return _0x1785b3['isTouching'](_0x2486b2);}function Et(_0x59ea21,_0x2e91fd,_0x1e68fb){for(;_0x1e68fb['length'];){const _0x2c9b41=_0x1e68fb['splice'](0x0,0x64);_0x59ea21['change'](()=>{for(const _0x521049 of _0x2c9b41)_0x521049['isInContent']&&_0x2e91fd['execute'](_0x521049['id']);});}}class ExecuteOnAllSuggestionsCommand extends _0x1e6dd8{['_command'];['_suggestions'];constructor(_0x35d534,_0x3cfb78,_0x527a52){super(_0x35d534),this['_command']=_0x3cfb78,this['_suggestions']=_0x527a52,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x35d3c6=Array['from'](this['_suggestions']['values']())['some'](_0x181d1e=>_0x181d1e['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x35d3c6;}['execute'](){const _0xe6dc3c=gt(Array['from'](this['_suggestions']['values']()));for(const _0x5be3cf of _0xe6dc3c){const _0x4dcf34=_0x5be3cf['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4dcf34))return;}Et(this['editor']['model'],this['_command'],_0xe6dc3c);}}class ExecuteOnSelectedSuggestionsCommand extends _0x1e6dd8{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5cdd82,_0x253224,_0x596633){super(_0x5cdd82),this['_command']=_0x253224,this['_suggestions']=_0x596633,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x142095=this['editor']['model']['document']['selection'],_0x47f537=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x6f394b,_0x4b535a){const _0x5d8b4b=Array['from'](_0x6f394b['getRanges']()),_0x38199a=new Set();for(const _0x5b57c1 of _0x4b535a)if(_0x5b57c1['isInContent']){for(const _0x49aab6 of _0x5d8b4b)for(const _0x4c2ec1 of _0x5b57c1['getRanges']())(_0x49aab6['isIntersecting'](_0x4c2ec1)||_0x6f394b['isCollapsed']&&!_0x5b57c1['isMultiRange']&&_0x5b57c1['next']&&_0x4c2ec1['end']['isTouching'](_0x49aab6['start']))&&_0x38199a['add'](_0x5b57c1);}return _0x38199a;}(_0x142095,_0x47f537),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x251c60=gt(Array['from'](this['_selectedSuggestions']));for(const _0xffec0 of _0x251c60){const _0x2ef6c6=_0xffec0['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2ef6c6))return;}Et(this['editor']['model'],this['_command'],_0x251c60);}}class Suggestion extends/* #__PURE__ -- @preserve */
24
+ _0x2e2514(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xc7826c,_0x47c75c){super(),this['id']=_0x47c75c['id'],this['type']=_0x47c75c['type'],this['subType']=_0x47c75c['subType']||null,this['author']=_0x47c75c['author'],this['creator']=_0x47c75c['creator']||_0x47c75c['author'],this['isExternal']=Boolean(_0x47c75c['attributes']&&_0x47c75c['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x47c75c['originalSuggestionId']||null,this['_model']=_0xc7826c,this['_onAccept']=_0x47c75c['onAccept'],this['_onDiscard']=_0x47c75c['onDiscard'],this['_onAttributesChange']=_0x47c75c['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x47c75c['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 _0xe8b1d0=this;for(;_0xe8b1d0['previous'];)_0xe8b1d0=_0xe8b1d0['previous'];return _0xe8b1d0;}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'](_0xfaea6e){this['_markerNames']['add'](_0xfaea6e);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2d6b8b=>this['_model']['markers']['get'](_0x2d6b8b))['filter'](_0x4f0a93=>_0x4f0a93);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x525f6f=>{for(const _0x246b74 of this['getMarkers']())_0x525f6f['removeMarker'](_0x246b74);}),this['_markerNames']['clear']();}['removeMarker'](_0x363839){this['_model']['change'](_0x380b4a=>{_0x380b4a['removeMarker'](_0x363839);}),this['_markerNames']['delete'](_0x363839);}['addRange'](_0x92e602){const _0x2d0fdb='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x2d0fdb),this['_model']['change'](_0x16cec8=>{_0x16cec8['addMarker'](_0x2d0fdb,{'range':_0x92e602,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x235ac0){for(const _0x485bc3 of this['getRanges']())if(_0x485bc3['isIntersecting'](_0x235ac0))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4c330e=>_0x4c330e['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2ebe3c,_0xad95b)=>[..._0x2ebe3c,..._0xad95b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x343458=this['getRanges']();if(0x1!=_0x343458['length'])return null;const _0x3d6f35=_0x343458[0x0],_0x2a1d59=_0x3d6f35['start']['nodeAfter'],_0x2bbf61=_0x3d6f35['end']['nodeBefore'];return _0x2a1d59 instanceof _0xf4c4a3?_0x2a1d59!=_0x2bbf61?null:_0x2a1d59: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 _0x5f4346=[];let _0x4c986f=this['head'];for(;_0x4c986f;)_0x5f4346['push'](_0x4c986f),_0x4c986f=_0x4c986f['next'];return _0x5f4346;}['setAttribute'](_0x39c14b,_0x1fe270){const _0x1b4689=nt(this['attributes']);it(_0x1b4689,_0x39c14b,_0x1fe270),st(_0x1b4689,this['attributes'])||(this['attributes']=_0x1b4689,this['_onAttributesChange'](_0x1b4689));}['removeAttribute'](_0x384719){const _0x292696=nt(this['attributes']);rt(_0x292696,_0x384719),st(_0x292696,this['attributes'])||(this['attributes']=_0x292696,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 _0x424839()['substr'](0x1,0x5);}}function Tt(_0x4ba961,_0x283c05,_0x5e0036){const _0x54c9a8=_0x4ba961['t'],t=_0x4ba961['t'];switch(_0x283c05){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',_0x5e0036);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5e0036);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5e0036);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5e0036);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5e0036);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',_0x5e0036);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5e0036);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',_0x5e0036);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5e0036);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5e0036);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5e0036);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5e0036);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5e0036);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5e0036);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5e0036);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5e0036);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5e0036);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5e0036);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5e0036);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5e0036);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5e0036);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5e0036);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5e0036);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5e0036);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5e0036);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'},_0x5e0036);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5e0036);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5e0036);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5e0036);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5e0036);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5e0036);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5e0036);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5e0036);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x5e0036);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});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'},_0x5e0036);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5e0036);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5e0036);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5e0036);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5e0036);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'},_0x5e0036);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5e0036);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'},_0x5e0036);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_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});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'},_0x5e0036);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5e0036);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'},_0x5e0036);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5e0036);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'},_0x5e0036);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5e0036);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x5e0036);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x5e0036);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x5e0036);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5e0036);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'},_0x5e0036);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5e0036);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 _0x54c9a8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5e0036);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x54c9a8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5e0036);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5e0036);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'},_0x5e0036);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'},_0x5e0036);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'},_0x5e0036);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x283c05;}}class SuggestionDescriptionFactory{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3f9612,_0x2c90ec){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3f9612,this['_locale']=_0x2c90ec;}['getDescriptions'](_0x58033d){const _0x2d576f=[],_0x430b14=new Set(),_0x5451f4=new Set();for(let _0x2d640b=0x0;_0x2d640b<_0x58033d['length'];_0x2d640b++){const _0xdbce36=_0x58033d[_0x2d640b];if(!_0xdbce36['isInContent'])continue;const _0x27ee1c=this['_handleCustomCallbackDescription'](_0xdbce36);if(_0x27ee1c){if(null!=_0xdbce36['subType']){if(_0x430b14['has'](_0xdbce36['subType']))continue;_0x430b14['add'](_0xdbce36['subType']);}_0x2d576f['push'](_0x27ee1c);}else{if('attribute'==_0xdbce36['type']){const _0x4d8da7=_0xdbce36['data']['key'];if(_0x5451f4['has'](_0x4d8da7))continue;_0x5451f4['add'](_0xdbce36['data']['key']),_0x4d8da7==Bt?this['_handleRenameSuggestionDescription'](_0x2d576f,_0xdbce36):this['_handleAttributeSuggestionDescription'](_0x2d576f,_0xdbce36);continue;}'insertion'!=_0xdbce36['type']&&'deletion'!=_0xdbce36['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2d576f,_0xdbce36,_0x58033d[_0x2d640b+0x1]);}}return this['_resolveDescriptionItems'](_0x2d576f);}['registerDescriptionCallback'](_0x5ac30c){this['_customCallbacks']['push'](_0x5ac30c);}['registerElementLabel'](_0xde6aff,_0x532d09,_0x2bd7b3=_0x175f1a['normal']){'function'==typeof _0xde6aff?_0x5eb118(this['_itemLabelsCallbacks'],{'matchingCallback':_0xde6aff,'label':_0x532d09,'priority':_0x2bd7b3}):this['_itemLabels']['set'](_0xde6aff,_0x532d09);}['registerAttributeLabel'](_0x327208,_0x8af625){this['_attributeLabels']['set'](_0x327208,_0x8af625);}['getItemLabel'](_0x14090c,_0x2a6196=0x1){let _0x4c0912;for(const _0xc36a67 of this['_itemLabelsCallbacks'])if(_0xc36a67['matchingCallback'](_0x14090c)){_0x4c0912=_0xc36a67['label'];break;}return _0x4c0912||(_0x4c0912=this['_itemLabels']['get'](_0x14090c['name'])),_0x4c0912?_0x4c0912(_0x2a6196):0x1!==_0x2a6196?_0x2a6196+'\x20'+_0x14090c['name']+'s':''+_0x14090c['name'];}['_addDescriptionItems'](_0x3e59e9,_0x2f4a3f){const _0x46fb63=_0x2f4a3f['getFirstRange']()['getWalker'](),_0x5b1304='insertion'==_0x2f4a3f['type']?'add':'remove';for(const _0x15b5f1 of _0x46fb63){const _0x51e775=_0x15b5f1['item'],_0x3b1731=_0x3e59e9[_0x3e59e9['length']-0x1];if(_0x51e775['is']('$textProxy'))_0x3b1731&&_0x3b1731['type']['indexOf']('Container')>-0x1&&_0x3e59e9['pop'](),_0x3b1731&&'text'==_0x3b1731['type']?_0x3b1731[_0x5b1304]+=_0x51e775['data']:_0x3e59e9['push']({'type':'text','add':'add'==_0x5b1304?_0x51e775['data']:'','remove':'remove'==_0x5b1304?_0x51e775['data']:''});else{if(this['_schema']['isObject'](_0x51e775)){const _0x58e17a=_0x51e775;if(_0x3b1731&&_0x3b1731['type']['indexOf']('Container')>-0x1&&_0x3e59e9['pop'](),'elementEnd'==_0x15b5f1['type'])continue;_0x3b1731&&_0x3b1731['type']==_0x5b1304+'Object'&&_0x3b1731['element']['name']==_0x58e17a['name']?_0x3b1731['quantity']++:_0x3e59e9['push']({'type':_0x5b1304+'Object','element':_0x58e17a,'quantity':0x1}),_0x46fb63['skip'](_0x1fc655=>!('elementEnd'==_0x1fc655['type']&&_0x1fc655['item']==_0x51e775));}else{if(this['_schema']['checkChild'](_0x51e775,'$text')||_0x51e775['is']('element','softBreak')){const _0x2f5c54=_0x51e775;if('add'==_0x5b1304&&'elementStart'==_0x15b5f1['type']||'remove'==_0x5b1304&&'elementEnd'==_0x15b5f1['type'])continue;if(_0x3b1731&&-0x1==_0x3b1731['type']['indexOf']('Container')){'text'==_0x3b1731['type']&&(_0x3b1731[_0x5b1304]+='\x0a');continue;}let _0x215205;if(_0x215205='add'==_0x5b1304?_0x2f5c54['nextSibling']&&!this['_schema']['isObject'](_0x2f5c54['nextSibling'])?_0x2f5c54['nextSibling']:null:_0x2f5c54['previousSibling']&&!this['_schema']['isObject'](_0x2f5c54['previousSibling'])?_0x2f5c54['previousSibling']:null,_0x2f5c54['isEmpty']||_0x215205&&_0x215205['isEmpty']){const _0x281dfa=_0x215205&&_0x215205['isEmpty']?_0x215205:_0x2f5c54;_0x3b1731&&_0x3b1731['type']==_0x5b1304+'EmptyContainer'&&_0x3b1731['element']['name']==_0x281dfa['name']?_0x3b1731['quantity']++:_0x3e59e9['push']({'type':_0x5b1304+'EmptyContainer','element':_0x281dfa,'quantity':0x1});}else _0x3e59e9['push']({'type':_0x5b1304+'Container','element':_0x2f5c54});}}}}}['_resolveDescriptionItems'](_0x508b1a){const _0x155ad3=this['_locale'],_0x329940=[],_0x2c4219=[],_0x5c8476=[];for(const _0x37526a of _0x508b1a)switch(_0x37526a['type']){case'text':if(_0x37526a['add']=_0x37526a['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x37526a['remove']=_0x37526a['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x37526a['add']&&''!=_0x37526a['remove']){_0x329940['push']({'type':'replace','content':Tt(_0x155ad3,'REPLACE_TEXT',['\x22'+_0x37526a['remove']+'\x22','\x22'+_0x37526a['add']+'\x22'])});continue;}if(null!=_0x37526a['add']['match'](/^ +$/)){_0x329940['push']({'type':'insertion','content':Tt(_0x155ad3,'*Insert:*\x20%0',Tt(_0x155ad3,'ELEMENT_SPACE',_0x37526a['add']['length']))});continue;}if(null!=_0x37526a['remove']['match'](/^ +$/)){_0x329940['push']({'type':'deletion','content':Tt(_0x155ad3,'*Remove:*\x20%0',Tt(_0x155ad3,'ELEMENT_SPACE',_0x37526a['remove']['length']))});continue;}if(''!=_0x37526a['add']){_0x329940['push']({'type':'insertion','content':Tt(_0x155ad3,'*Insert:*\x20%0','\x22'+_0x37526a['add']+'\x22')});continue;}_0x329940['push']({'type':'deletion','content':Tt(_0x155ad3,'*Remove:*\x20%0','\x22'+_0x37526a['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x329940['push']({'type':'insertion','content':Tt(_0x155ad3,'*Insert:*\x20%0',this['getItemLabel'](_0x37526a['element'],_0x37526a['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x329940['push']({'type':'deletion','content':Tt(_0x155ad3,'*Remove:*\x20%0',this['getItemLabel'](_0x37526a['element'],_0x37526a['quantity']))});continue;case'addContainer':_0x329940['push']({'type':'insertion','content':Tt(_0x155ad3,'*Split:*\x20%0',this['getItemLabel'](_0x37526a['element'],_0x37526a['quantity']))});continue;case'removeContainer':_0x329940['push']({'type':'deletion','content':Tt(_0x155ad3,'*Merge:*\x20%0',this['getItemLabel'](_0x37526a['element'],_0x37526a['quantity']))});continue;case'addFormat':_0x2c4219['push'](_0x37526a['key']);continue;case'removeFormat':_0x5c8476['push'](_0x37526a['key']);continue;default:_0x329940['push'](_0x37526a);}if(_0x2c4219['length']){const _0x36d5e4=_0x2c4219['map'](_0x97bc90=>this['_attributeLabels']['has'](_0x97bc90)?this['_attributeLabels']['get'](_0x97bc90):_0x97bc90)['join'](',\x20');_0x329940['push']({'type':'format','content':Tt(this['_locale'],'*Set\x20format:*\x20%0',_0x36d5e4)});}if(_0x5c8476['length']){const _0x30d1bb=_0x5c8476['map'](_0x2a2a63=>this['_attributeLabels']['has'](_0x2a2a63)?this['_attributeLabels']['get'](_0x2a2a63):_0x2a2a63)['join'](',\x20');_0x329940['push']({'type':'format','content':Tt(this['_locale'],'*Remove\x20format:*\x20%0',_0x30d1bb)});}return _0x329940;}['_handleCustomCallbackDescription'](_0x505efc){for(const _0x31cd1d of this['_customCallbacks']){const _0x158b1e=_0x31cd1d(_0x505efc);if(_0x158b1e&&'type'in _0x158b1e)return _0x158b1e;}}['_handleAttributeSuggestionDescription'](_0x2533ba,_0x407997){const _0x54e9df=_0x407997['data'],_0x267a49=void 0x0===_0x54e9df['newValue']?'removeFormat':'addFormat';_0x2533ba['push']({'type':_0x267a49,'key':_0x54e9df['key']});}['_handleRenameSuggestionDescription'](_0x21124c,_0x55fe2b){_0x21124c['push']({'type':'format','content':Tt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x55fe2b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x31674f,_0x14c29,_0x556920){if(this['_addDescriptionItems'](_0x31674f,_0x14c29),_0x556920&&_0x556920['getFirstRange']()&&!_0x14c29['getFirstRange']()['end']['isEqual'](_0x556920['getFirstRange']()['start'])){const _0x152a32=_0x31674f[_0x31674f['length']-0x1],_0x27476a='insertion'==_0x14c29['type']?'add':'remove';_0x152a32&&'text'==_0x152a32['type']&&(_0x152a32[_0x27476a]+='\x0a');}}}class TrackChangesAIAssistant extends _0xf34f{['afterInit'](){const _0x1799f1=this['editor'],_0x42633b=_0x1799f1['plugins']['get']('TrackChangesEditing');_0x1799f1['commands']['get']('showAIAssistant')&&_0x42633b['enableCommand']('showAIAssistant');}}class TrackChangesAI extends _0xf34f{['afterInit'](){const _0x326cce=this['editor'],_0x302530=_0x326cce['plugins']['get']('TrackChangesEditing');_0x326cce['commands']['get']('toggleAi')&&_0x302530['enableCommand']('toggleAi');}}class TrackChangesAIQuickActions extends _0xf34f{['afterInit'](){const _0x2c0680=this['editor'],_0x34d42f=_0x2c0680['plugins']['get']('TrackChangesEditing');_0x2c0680['commands']['get']('aiQuickAction')&&_0x34d42f['enableCommand']('aiQuickAction');}}class TrackChangesAlignment extends _0xf34f{['afterInit'](){const _0x35bb53=this['editor'],_0x370ac9=_0x35bb53['locale'];if(!_0x35bb53['plugins']['has']('AlignmentEditing'))return;const _0x41ac27=_0x35bb53['plugins']['get']('TrackChangesEditing');_0x41ac27['enableDefaultAttributesIntegration']('alignment'),_0x41ac27['descriptionFactory']['registerAttributeLabel']('alignment',Tt(_0x370ac9,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d5f59=this['editor'],_0x3b7eee=_0x1d5f59['locale'];_0x1d5f59['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc9b34e=>{if('formatBlock'!=_0xc9b34e['type'])return;const {data:_0x244f6e}=_0xc9b34e;if(_0x244f6e&&'alignment'==_0x244f6e['commandName']){const _0x26b878=_0x244f6e['commandParams'][0x0]['value'];return{'type':'format','content':Tt(_0x3b7eee,'*Format:*\x20%0',function(_0x204193){switch(_0x204193){case'left':return Tt(_0x3b7eee,'FORMAT_ALIGN_TO_LEFT');case'right':return Tt(_0x3b7eee,'FORMAT_ALIGN_TO_RIGHT');case'center':return Tt(_0x3b7eee,'FORMAT_ALIGN_TO_CENTER');case'justify':return Tt(_0x3b7eee,'FORMAT_JUSTIFY_TEXT');}}(_0x26b878))};}});}}const _t=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class TrackChangesBasicStyles extends _0xf34f{['afterInit'](){const _0x44658e=this['editor'],_0x40bc00=_0x44658e['plugins']['get']('TrackChangesEditing'),_0xe8cd78=_0x44658e['locale'];for(const _0x268faa of _t){if(!_0x44658e['plugins']['has'](_0x268faa))continue;const _0x497a18=_0x268faa['slice'](0x0,-0x7)['toLowerCase'](),_0x276c3b='FORMAT_'+_0x497a18['toUpperCase']();_0x40bc00['enableDefaultAttributesIntegration'](_0x497a18),_0x40bc00['descriptionFactory']['registerAttributeLabel'](_0x497a18,Tt(_0xe8cd78,_0x276c3b));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21177f=this['editor'],_0x5e2623=_0x21177f['locale'],_0x5bd3c7=_0x21177f['plugins']['get']('TrackChangesEditing');function _0x5d9e62(_0x390fb4,_0x4826ad){_0x5bd3c7['descriptionFactory']['registerDescriptionCallback'](_0x40e8e2=>{if('formatInline'!=_0x40e8e2['type'])return;const {data:_0x2be7f6}=_0x40e8e2;return _0x2be7f6&&_0x2be7f6['commandName']===_0x390fb4?_0x2be7f6['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x5e2623,'*Format:*\x20%0',_0x4826ad)}:{'type':'format','content':Tt(_0x5e2623,'*Remove\x20format:*\x20%0',_0x4826ad)}:void 0x0;});}_0x5d9e62('bold',Tt(_0x5e2623,'FORMAT_BOLD')),_0x5d9e62('italic',Tt(_0x5e2623,'FORMAT_ITALIC')),_0x5d9e62('underline',Tt(_0x5e2623,'FORMAT_UNDERLINE')),_0x5d9e62('code',Tt(_0x5e2623,'FORMAT_CODE')),_0x5d9e62('strikethrough',Tt(_0x5e2623,'FORMAT_STRIKETHROUGH')),_0x5d9e62('subscript',Tt(_0x5e2623,'FORMAT_SUBSCRIPT')),_0x5d9e62('superscript',Tt(_0x5e2623,'FORMAT_SUPERSCRIPT'));}}class TrackChangesBlockQuote extends _0xf34f{['afterInit'](){const _0x563f17=this['editor'],_0x4d5830=_0x563f17['locale'];if(!_0x563f17['plugins']['has']('BlockQuoteEditing'))return;const _0x40e68d=_0x563f17['plugins']['get']('TrackChangesEditing'),_0x831d5d=this['editor']['commands']['get']('blockQuote');_0x40e68d['enableCommand']('blockQuote',(_0x4b223e,_0x178a99={})=>{const _0x4d3908=this['editor']['model']['document']['selection'],_0x43682d=_0x178a99&&void 0x0!==_0x178a99['forceValue']?_0x178a99['forceValue']:!_0x831d5d['value'];let _0x40c74f=[];if(_0x43682d){const _0x61c919=Array['from'](_0x4d3908['getSelectedBlocks']())['filter'](_0x5919fc=>pt(_0x5919fc)||function(_0x301469,_0x30c40f){const _0x4274e5=_0x30c40f['createContext'](_0x301469['parent']);if(!_0x30c40f['checkChild'](_0x4274e5,'blockQuote'))return!0x1;if(!_0x30c40f['checkChild'](_0x4274e5['push']('blockQuote'),_0x301469))return!0x1;return!0x0;}(_0x5919fc,this['editor']['model']['schema']));_0x40c74f=ft(_0x61c919,_0x563f17['model']);}else{const _0xf29a3e=Array['from'](_0x4d3908['getSelectedBlocks']())['filter'](_0x111224=>pt(_0x111224));_0x40c74f=ft(_0xf29a3e,_0x563f17['model']);}_0x563f17['model']['change'](()=>{for(const _0x48f41f of _0x40c74f)_0x40e68d['markBlockFormat'](_0x48f41f,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x43682d}]});});}),_0x40e68d['descriptionFactory']['registerDescriptionCallback'](_0x3f52fd=>{const {data:_0x44c655}=_0x3f52fd;if(_0x44c655&&'blockQuote'==_0x44c655['commandName']){const _0x460500=Tt(_0x4d5830,'ELEMENT_BLOCK_QUOTE');return _0x44c655['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x4d5830,'*Set\x20format:*\x20%0',_0x460500)}:{'type':'format','content':Tt(_0x4d5830,'*Remove\x20format:*\x20%0',_0x460500)};}});}}function pt(_0x1d1779){return'blockQuote'==_0x1d1779['parent']['name'];}class TrackChangesBookmark extends _0xf34f{['afterInit'](){const _0x5e9704=this['editor'],_0x39749e=_0x5e9704['locale'],_0x2d65df=_0x5e9704['plugins']['get']('TrackChangesEditing');_0x5e9704['plugins']['has']('BookmarkEditing')&&(_0x2d65df['enableCommand']('insertBookmark'),_0x2d65df['enableDefaultAttributesIntegration']('updateBookmark'),_0x2d65df['descriptionFactory']['registerDescriptionCallback'](_0x3d61c8=>{if('insertion'!=_0x3d61c8['type']&&'deletion'!=_0x3d61c8['type']&&'attribute'!=_0x3d61c8['type'])return;const _0x4ba2c2=_0x3d61c8['getContainedElement']();if(null==_0x4ba2c2)return;if(!_0x4ba2c2['is']('element','bookmark'))return;const _0x45ce03=_0x4ba2c2['getAttribute']('bookmarkId');if('insertion'==_0x3d61c8['type'])return{'type':'insertion','content':Tt(_0x39749e,'*Insert:*\x20%0','\x22'+_0x45ce03+'\x22\x20'+Tt(_0x39749e,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3d61c8['type'])return{'type':'deletion','content':Tt(_0x39749e,'*Remove:*\x20%0','\x22'+_0x45ce03+'\x22\x20'+Tt(_0x39749e,'ELEMENT_BOOKMARK'))};const {data:_0x2e7962}=_0x3d61c8;if(!_0x2e7962||'bookmarkId'!=_0x2e7962['key'])return;return{'type':'format','content':Tt(_0x39749e,'*Set\x20bookmark:*\x20%0','\x22'+_0x2e7962['newValue']+'\x22')};}));}}class TrackChangesCaseChange extends _0xf34f{['afterInit'](){const _0x1ccc03=this['editor'];_0x1ccc03['plugins']['has']('CaseChange')&&(_0x1ccc03['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1ccc03['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1ccc03['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class TrackChangesCKBox extends _0xf34f{['afterInit'](){const _0x502ac9=this['editor'];_0x502ac9['commands']['get']('ckbox')&&_0x502ac9['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class TrackChangesCodeBlock extends _0xf34f{['afterInit'](){const _0x1e8ead=this['editor'];if(!_0x1e8ead['plugins']['has']('CodeBlock'))return;const _0x4d7c23=_0x1e8ead['plugins']['get']('TrackChangesEditing'),_0x3c6df2=_0x1e8ead['locale'],_0xb88f2b=_0x1e8ead['config']['get']('codeBlock')['languages'],_0xebca50=_0x1e8ead['commands']['get']('codeBlock');_0x4d7c23['enableCommand']('indentCodeBlock'),_0x4d7c23['enableCommand']('outdentCodeBlock'),_0x4d7c23['enableCommand']('codeBlock',(_0x159696,_0x5ae9fa={})=>{const _0x1bd2c7=_0x1e8ead['model'],_0x727d07=_0x1e8ead['model']['document']['selection'],_0x42e2db=_0x5ae9fa&&void 0x0!==_0x5ae9fa['forceValue']?_0x5ae9fa['forceValue']:!_0xebca50['value'];let _0x120852;_0x5ae9fa['language']||(_0x5ae9fa['language']=_0xb88f2b[0x0]['language']),_0x120852=_0x42e2db?Array['from'](_0x727d07['getSelectedBlocks']())['filter'](_0x4b9d60=>Ct(_0x4b9d60)||function(_0xd9a20b,_0x577b3a){if(_0xd9a20b['is']('rootElement')||_0x577b3a['isLimit'](_0xd9a20b))return!0x1;return _0x577b3a['checkChild'](_0xd9a20b['parent'],'codeBlock');}(_0x4b9d60,_0x1bd2c7['schema'])):Array['from'](_0x727d07['getSelectedBlocks']())['filter'](_0x58a667=>Ct(_0x58a667));const _0x13bb8d=ft(_0x120852,_0x1bd2c7);_0x1bd2c7['change'](()=>{for(const _0xa8f7b8 of _0x13bb8d)_0x4d7c23['markBlockFormat'](_0xa8f7b8,{'commandName':'codeBlock','commandParams':[{..._0x5ae9fa,'forceValue':_0x42e2db}],'formatGroupId':'blockName'});});}),(_0x4d7c23['descriptionFactory']['registerElementLabel']('codeBlock',_0x4e208c=>Tt(_0x3c6df2,'ELEMENT_CODE_BLOCK',_0x4e208c)),_0x4d7c23['descriptionFactory']['registerDescriptionCallback'](_0x40c1f5=>{if('formatBlock'!=_0x40c1f5['type'])return;const _0x2935bc=_0x3c6df2['t'],{data:_0x451bfe}=_0x40c1f5;if(!_0x451bfe||'codeBlock'!=_0x451bfe['commandName'])return;const _0x1974c9=_0x451bfe['commandParams'][0x0]['language'],_0x569f19=_0x2935bc(_0xb88f2b['find'](_0x5c28f1=>_0x5c28f1['language']===_0x1974c9)['label'])['toLowerCase']();return _0x451bfe['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x3c6df2,'*Set\x20format:*\x20%0',Tt(_0x3c6df2,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x569f19+')')}:{'type':'format','content':Tt(_0x3c6df2,'*Remove\x20format:*\x20%0',Tt(_0x3c6df2,'ELEMENT_CODE_BLOCK',0x1))};}));}}function Ct(_0x44f514){return'codeBlock'==_0x44f514['name'];}class TrackChangesComments extends _0xf34f{['afterInit'](){const _0x16da37=this['editor'];if(!_0x16da37['plugins']['has']('CommentsEditing'))return;_0x16da37['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class TrackChangesDeleteCommand extends _0xf34f{static get['requires'](){return[at];}['init'](){const _0x12d72e=this['editor'],_0x534706=_0x12d72e['plugins']['get']('TrackChangesEditing');_0x534706['enableCommand']('delete');const _0x53e9df=_0x12d72e['commands']['get']('deleteForward');_0x534706['enableCommand']('deleteForward',(_0x54e0f2,_0x333ab7={})=>{const _0x1ebe72=_0x12d72e['model']['createSelection'](_0x12d72e['model']['document']['selection']);_0x1ebe72['isCollapsed']&&_0x12d72e['model']['modifySelection'](_0x1ebe72,{'direction':'forward','unit':_0x333ab7['unit']});const _0x1fe4fb=_0x1ebe72['getFirstRange'](),_0x5147cd=_0xe62106['fromRange'](_0x1fe4fb);let _0x5d2083;_0x54e0f2(_0x333ab7),_0x5d2083='$graveyard'==_0x5147cd['root']['rootName']?_0x12d72e['model']['createRange'](_0x1fe4fb['start']):_0x12d72e['model']['createRange'](_0x5147cd['start'],_0x5147cd['end']),_0x5147cd['detach'](),_0x12d72e['model']['enqueueChange'](_0x53e9df['buffer']['batch'],_0x1f66dd=>{_0x53e9df['buffer']['lock'](),_0x1f66dd['setSelection'](_0x1f66dd['createRange'](_0x5d2083['end'])),_0x53e9df['buffer']['unlock']();});});}}class TrackChangesList extends _0xf34f{['afterInit'](){const _0x4d702c=this['editor'];if(!_0x4d702c['plugins']['has']('ListEditing'))return;const _0x4abce9=_0x4d702c['locale'],_0x499407=_0x4d702c['plugins']['get']('TrackChangesEditing'),_0x8b2b60=_0x4d702c['plugins']['has']('TodoListEditing'),_0x1cc746=!!_0x4d702c['config']['get']('list.multiBlock');function _0xf6a786(_0x1e0815){return{'type':'format','content':''+Tt(_0x4abce9,'*Set\x20format:*\x20%0',_0x1e0815)};}function _0xa84ff0(_0x2373e5){return{'type':'format','content':''+Tt(_0x4abce9,'*Remove\x20format:*\x20%0',_0x2373e5)};}_0x499407['enableDefaultAttributesIntegration']('numberedList'),_0x499407['enableDefaultAttributesIntegration']('bulletedList'),_0x499407['enableDefaultAttributesIntegration']('customNumberedList'),_0x499407['enableDefaultAttributesIntegration']('customBulletedList'),_0x499407['enableDefaultAttributesIntegration']('indentList'),_0x499407['enableDefaultAttributesIntegration']('outdentList'),_0x499407['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x499407['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1cc746&&(_0x499407['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x499407['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x8b2b60&&(_0x499407['enableDefaultAttributesIntegration']('todoList'),_0x499407['enableDefaultAttributesIntegration']('checkTodoList'),_0x499407['descriptionFactory']['registerDescriptionCallback'](_0x5a66e1=>{const {data:_0x3fba38}=_0x5a66e1;if(_0x3fba38&&'todoListChecked'==_0x3fba38['key'])return{'type':'format','content':_0x3fba38['newValue']?Tt(_0x4abce9,'*Check\x20item*'):Tt(_0x4abce9,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x15c8df=>{if(_0x15c8df['batch']['isUndo'])return!0x1;let _0x57c6b0=!0x1;const _0x2c2f0f=_0x499407['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x29310d=>'todoListChecked'===_0x499407['_getAttributeKey'](_0x29310d));for(const _0x3e5266 of _0x2c2f0f){'todo'!=_0x3e5266['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x499407['_findSuggestions'](_0x3e5266['getFirstRange'](),'attribute')['find'](_0x54d049=>'listType'===_0x499407['_getAttributeKey'](_0x54d049['suggestion']))||(_0x15c8df['removeMarker'](_0x3e5266['getFirstMarker']()),_0x57c6b0=!0x0));}return _0x57c6b0;})),_0x499407['descriptionFactory']['registerAttributeLabel']('listIndent',Tt(_0x4abce9,'FORMAT_INDENT'));const _0x21e2fd={'type':'format','content':''};_0x499407['descriptionFactory']['registerDescriptionCallback'](_0x64493b=>{const {data:_0x5aa092}=_0x64493b;if(!_0x5aa092||'listType'!=_0x5aa092['key'])return;let _0x1ee552=_0x64493b['head'];for(;_0x1ee552;){if(_0x1ee552['data']&&(('listStyle'==_0x1ee552['data']['key']||'listMarkerStyle'==_0x1ee552['data']['key'])&&(_0x1ee552['data']['newValue']&&'default'!=_0x1ee552['data']['newValue']||'default'!=_0x1ee552['data']['oldValue']&&!_0x5aa092['newValue'])||!_0x1cc746&&_0x1ee552['data']['key']==Bt))return _0x21e2fd;_0x1ee552=_0x1ee552['next'];}if(null==_0x5aa092['newValue'])switch(_0x5aa092['oldValue']){case'bulleted':return _0xa84ff0(Tt(_0x4abce9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xa84ff0(Tt(_0x4abce9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xa84ff0(Tt(_0x4abce9,'ELEMENT_TODO_LIST'));}switch(_0x5aa092['newValue']){case'bulleted':return _0xf6a786(Tt(_0x4abce9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xf6a786(Tt(_0x4abce9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xf6a786(Tt(_0x4abce9,'ELEMENT_TODO_LIST'));}}),_0x499407['descriptionFactory']['registerDescriptionCallback'](_0x4cc417=>{const {data:_0x2f8576}=_0x4cc417;if(_0x2f8576&&'listIndent'==_0x2f8576['key'])return null==_0x2f8576['newValue']||null==_0x2f8576['oldValue']&&0x0==_0x2f8576['newValue']?_0x21e2fd:void 0x0;}),_0x499407['descriptionFactory']['registerDescriptionCallback'](_0xf13928=>{if('attribute'!=_0xf13928['type'])return;const {data:_0x3866fc}=_0xf13928;if(!_0x3866fc||'listItemId'!=_0x3866fc['key'])return;const _0x16ffce=kt(_0xf13928);return'newValue'==_0x16ffce?{'type':'format','content':Tt(_0x4abce9,'*Merge:*\x20list\x20item')}:'oldValue'==_0x16ffce?{'type':'format','content':Tt(_0x4abce9,'*Split:*\x20list\x20item')}:_0x21e2fd;}),_0x4d702c['model']['document']['registerPostFixer'](_0x12b1ec=>this['listItemIdFixer'](_0x12b1ec)),_0x4d702c['model']['document']['registerPostFixer'](_0x224ed6=>this['noTrackChangesFixer'](_0x224ed6)),_0x4d702c['model']['document']['on']('change:data',(_0x4f9ce0,_0x14ad8b)=>{if(_0x14ad8b['isUndo']||!_0x14ad8b['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xd2b686){if(_0xd2b686['batch']['isUndo']||!_0xd2b686['batch']['isLocal'])return!0x1;let _0x542ae2=!0x1;const _0x2dfd12=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x35cf21=>_0x35cf21['data']&&'listItemId'==_0x35cf21['data']['key'])['filter'](_0x1c0dc2=>_0x1c0dc2['data']['newValue']&&_0x1c0dc2['data']['oldValue']);for(const _0x11daa7 of _0x2dfd12)kt(_0x11daa7)||(_0xd2b686['removeMarker'](_0x11daa7['getFirstMarker']()),_0x542ae2=!0x0);return _0x542ae2;}['noTrackChangesFixer'](_0x1bd9a1){if(_0x1bd9a1['batch']['isUndo']||!_0x1bd9a1['batch']['isLocal'])return!0x1;const _0x20c43e=this['editor']['model']['document']['differ'],_0x24fe88=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x24fe88['trackChangesCommand']['value'])return!0x1;let _0x30a2af=!0x1;const _0x1d4688=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle']),_0x4aebce=_0x20c43e['getChanges']()['filter'](_0xc3dc1d=>'attribute'==_0xc3dc1d['type'])['filter'](_0x3afcf1=>_0x1d4688['has'](_0x3afcf1['attributeKey']));if(0x0==_0x4aebce['length'])return _0x30a2af;const _0x674589=new Set(_0x20c43e['getMarkersToAdd']()['filter'](_0x4bb5f0=>{if(!_0x4bb5f0['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x16b8b5=_0x3647dc(_0x4bb5f0['name'])['subType']['split']('|')[0x0];return _0x1d4688['has'](_0x16b8b5);})['map'](_0x1dd472=>_0x3647dc(_0x1dd472['name'])['id']));for(const _0x1a6ee4 of _0x4aebce){const _0x46294d=_0x24fe88['_findSuggestions'](_0x1a6ee4['range'],'attribute')['filter'](_0x1a599e=>{if(_0x1a599e['meta']['isNextTo'])return!0x1;if(_0x674589['has'](_0x1a599e['suggestion']['id']))return!0x1;const _0x482467=_0x24fe88['_getAttributeKey'](_0x1a599e['suggestion']);return _0x1d4688['has'](_0x482467);})['map'](_0x12038f=>_0x12038f['suggestion']);if(_0x46294d['length']){for(const _0x27e1af of _0x46294d)_0x1bd9a1['removeMarker'](_0x27e1af['getFirstMarker']());_0x30a2af=!0x0;}}return _0x30a2af;}['assureChains'](){const _0x162e81=this['editor']['plugins']['get']('TrackChangesEditing'),_0x149d92=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5a6817;const _0x50748b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x46efdd=>{if(_0x46efdd['data']['oldRange']||!_0x46efdd['data']['newRange'])return null;if(!_0x46efdd['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x9aaed4}=_0x3647dc(_0x46efdd['name']);if(!_0x162e81['hasSuggestion'](_0x9aaed4))return null;const _0x4b72b8=_0x162e81['getSuggestion'](_0x9aaed4);return _0x149d92['includes'](_0x4b72b8['data']['key']);})['map'](_0x6ffc38=>{const {id:_0x43b3e9}=_0x3647dc(_0x6ffc38['name']),_0x47ccf7=_0x162e81['getSuggestion'](_0x43b3e9);return _0x5a6817=_0x47ccf7['attributes']['groupId'],_0x47ccf7['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x50748b['size'])return;const _0xf3b6a9=_0x162e81['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c41a0=>'attribute'==_0x4c41a0['type']&&_0x4c41a0['data']&&_0x149d92['includes'](_0x4c41a0['data']['key'])&&_0x4c41a0['attributes']['groupId']!=_0x5a6817)['map'](_0x1e9e82=>({'listItem':_0x1e9e82['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1e9e82['attributes']['groupId']})),_0x4c1f1b=new Set();for(const {groupId:_0x78d1a2,listItem:_0x5e5c59}of _0xf3b6a9)_0x50748b['has'](_0x5e5c59)&&_0x4c1f1b['add'](_0x78d1a2);for(const _0x1be6f4 of _0x162e81['getSuggestions']())_0x4c1f1b['has'](_0x1be6f4['attributes']['groupId'])&&_0x1be6f4['setAttribute']('groupId',_0x5a6817);}['_supportLegacySuggestions'](){const _0x2edf59=this['editor'],_0x49af66=_0x2edf59['locale'],_0x2cdbd9=_0x2edf59['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2cdbd9['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x57146b,_0x572121){const _0x3915f7=[];for(let _0xf08d48 of _0x57146b)_0xf08d48['start']['nodeAfter']===_0xf08d48['end']['parent']&&(_0xf08d48=_0x2edf59['model']['createRange'](_0x2edf59['model']['createPositionAt'](_0xf08d48['start']['nodeAfter'],0x0))),_0x3915f7['push'](_0xf08d48);_0x2edf59['model']['change'](_0x55b868=>{const _0x38efe6=_0x2edf59['model']['document']['selection'],_0x171c4a=Array['from'](_0x38efe6['getRanges']())['map'](_0x3b8bed=>_0xe62106['fromRange'](_0x3b8bed));_0x55b868['setSelection'](_0x3915f7),_0x2edf59['commands']['get'](_0x572121['commandName'])['refresh'](),_0x572121['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2edf59['execute'](_0x572121['commandName'],..._0x572121['commandParams']),_0x55b868['setSelection'](_0x171c4a);for(const _0x45c744 of _0x171c4a)_0x45c744['detach']();});}),_0x2cdbd9['descriptionFactory']['registerElementLabel'](function(_0x1a7c43){const _0x192f0f=!_0x2edf59['model']['schema']['isObject'](_0x1a7c43),_0x74b8ff=_0x1a7c43['previousSibling'],_0x34067f=_0x1a7c43['nextSibling'],_0xf2f145=_0x1a7c43['getAttribute']('listItemId'),_0x4110bc=!_0x74b8ff||_0x74b8ff['getAttribute']('listItemId')!==_0xf2f145,_0x3ad301=!_0x34067f||_0x34067f['getAttribute']('listItemId')!==_0xf2f145;return _0x192f0f&&Boolean(_0xf2f145)&&_0x4110bc&&_0x3ad301;},_0x330212=>Tt(_0x49af66,'ELEMENT_LIST_ITEM',_0x330212));}['_registerLegacyDescription'](){const _0x1e5892=this['editor'],_0x1c7282=_0x1e5892['locale'];function _0x2f5c5f(_0x2deed9){const _0x3700fe=_0x1e5892['commands']['get']('bulletedList')['value'],_0x3dc3ff=_0x1e5892['commands']['get']('numberedList')['value'];return'numberedList'===_0x2deed9?_0x3700fe:_0x3dc3ff;}_0x1e5892['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x40b64d){if('formatBlock'!=_0x40b64d['type'])return;const {data:_0x51cdff}=_0x40b64d;if(!_0x51cdff)return;let _0x561c45,_0x4ae464,_0xca4906,_0x2420ea;switch(_0x51cdff['commandName']){case'bulletedList':_0xca4906=_0x51cdff['commandParams'][0x0]['forceValue'],_0x2420ea=_0x2f5c5f(_0x51cdff['commandName']),_0x561c45=_0xca4906?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2420ea&&_0x1e5892['config']['get']('list.multiBlock')||(_0x561c45='*Change\x20to:*\x20%0'),_0x4ae464={'type':'format','content':Tt(_0x1c7282,_0x561c45,Tt(_0x1c7282,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xca4906=_0x51cdff['commandParams'][0x0]['forceValue'],_0x2420ea=_0x2f5c5f(_0x51cdff['commandName']),_0x561c45=_0xca4906?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2420ea&&_0x1e5892['config']['get']('list.multiBlock')||(_0x561c45='*Change\x20to:*\x20%0'),_0x4ae464={'type':'format','content':Tt(_0x1c7282,_0x561c45,Tt(_0x1c7282,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x561c45='*Indent:*\x20%0',_0x4ae464={'type':'format','content':Tt(_0x1c7282,_0x561c45,Tt(_0x1c7282,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x561c45=function(_0xe0dafd){const _0x4c699f=_0xe0dafd['getFirstRange']();let _0x4d87d4=_0x4c699f['start']['nodeAfter'];for(;_0x4d87d4&&_0x4c699f['containsItem'](_0x4d87d4);){if(_0x4d87d4['getAttribute']('listIndent')>0x0)return!0x1;_0x4d87d4=_0x4d87d4['nextSibling'];}return!0x0;}(_0x40b64d)?Tt(_0x1c7282,'*Format:*\x20remove\x20from\x20%0',Tt(_0x1c7282,function(_0x524fe3){return'ELEMENT_'+_0x524fe3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x40b64d))):Tt(_0x1c7282,'*Outdent:*\x20%0',Tt(_0x1c7282,'ELEMENT_LIST_ITEM')),_0x4ae464={'type':'format','content':_0x561c45};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x51cdff['multipleBlocks']&&(_0x561c45='*Merge:*\x20%0',_0x4ae464={'type':'deletion','content':Tt(_0x1c7282,_0x561c45,Tt(_0x1c7282,'ELEMENT_LIST_ITEM'))});}return _0x4ae464;});}}function kt(_0x1bb821){let _0x111bbf=_0x1bb821['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x111bbf;){const _0x4ffe0b=_0x111bbf['getAttribute']('listItemId');if(!_0x4ffe0b)return!0x1;if(_0x4ffe0b==_0x1bb821['data']['newValue'])return'newValue';if(_0x4ffe0b==_0x1bb821['data']['oldValue'])return'oldValue';_0x111bbf=_0x111bbf['previousSibling'];}return!0x1;}class TrackChangesDocumentListProperties extends _0xf34f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x154cc0=this['editor']['config']['get']('list.properties'),_0xe4d6b2=this['editor']['plugins']['get']('TrackChangesEditing');_0x154cc0['styles']&&_0xe4d6b2['enableDefaultAttributesIntegration']('listStyle'),_0x154cc0['reversed']&&_0xe4d6b2['enableDefaultAttributesIntegration']('listReversed'),_0x154cc0['startIndex']&&_0xe4d6b2['enableDefaultAttributesIntegration']('listStart');const _0x1b52bf={'type':'format','content':''};_0xe4d6b2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4b6c97=this['editor']['locale'];_0xe4d6b2['descriptionFactory']['registerAttributeLabel']('listReversed',Tt(_0x4b6c97,'FORMAT_LIST_REVERSED')),_0xe4d6b2['descriptionFactory']['registerDescriptionCallback'](_0x195a0c=>{const {data:_0x4f6dbe}=_0x195a0c;if(_0x4f6dbe&&'listReversed'==_0x4f6dbe['key'])return null==_0x4f6dbe['newValue']||0x0==_0x4f6dbe['newValue']&&null==_0x4f6dbe['oldValue']?_0x1b52bf:void 0x0;}),_0xe4d6b2['descriptionFactory']['registerAttributeLabel']('listStart',Tt(_0x4b6c97,'FORMAT_LIST_START')),_0xe4d6b2['descriptionFactory']['registerDescriptionCallback'](_0x2b34c5=>{const {data:_0x33d806}=_0x2b34c5;if(_0x33d806&&'listStart'==_0x33d806['key'])return null==_0x33d806['newValue']||0x1==_0x33d806['newValue']&&null==_0x33d806['oldValue']?_0x1b52bf:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4d8cfb=>{if(_0x4d8cfb['batch']['isUndo'])return!0x1;let _0x234722=!0x1;const _0x57743f=_0xe4d6b2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc17ca8=>{const _0x1528b6=_0xe4d6b2['_getAttributeKey'](_0xc17ca8);return'listStart'==_0x1528b6||'listReversed'==_0x1528b6;});for(const _0x57a401 of _0x57743f){const _0x858514=_0x57a401['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x858514||'customNumbered'==_0x858514)continue;_0xe4d6b2['_findSuggestions'](_0x57a401['getFirstRange'](),'attribute')['find'](_0x39412d=>'listType'==_0xe4d6b2['_getAttributeKey'](_0x39412d['suggestion']))||(_0x4d8cfb['removeMarker'](_0x57a401['getFirstMarker']()),_0x234722=!0x0);}return _0x234722;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5dbfdc){const _0x414ff0=this['editor']['locale'],{data:_0x40bf7c}=_0x5dbfdc,_0x11c234={'type':'format','content':''};if(!_0x40bf7c||'listStyle'!=_0x40bf7c['key'])return;if(!_0x40bf7c['oldValue'])return'default'==_0x40bf7c['newValue']?_0x11c234:{'type':'format','content':''+Tt(_0x414ff0,'*Set\x20format:*\x20%0',Tt(_0x414ff0,this['_getTranslationKeyForListStyle'](_0x40bf7c['newValue'])))};if(!_0x40bf7c['newValue']){if('default'==_0x40bf7c['oldValue'])return _0x11c234;let _0x158d61=_0x5dbfdc['head'];for(;_0x158d61;){if(_0x158d61['data']&&'listType'==_0x158d61['data']['key']&&_0x158d61['data']['newValue'])return _0x11c234;_0x158d61=_0x158d61['next'];}return{'type':'format','content':''+Tt(_0x414ff0,'*Remove\x20format:*\x20%0',Tt(_0x414ff0,this['_getTranslationKeyForListStyle'](_0x40bf7c['oldValue'])))};}if('default'!=_0x40bf7c['newValue'])return{'type':'format','content':''+Tt(_0x414ff0,'*Set\x20format:*\x20%0',Tt(_0x414ff0,this['_getTranslationKeyForListStyle'](_0x40bf7c['newValue'])))};let _0x55392f=_0x5dbfdc['head'];for(;_0x55392f;){if(_0x55392f['data']&&'listType'==_0x55392f['data']['key']&&_0x55392f['data']['newValue']&&_0x55392f['data']['oldValue'])return _0x11c234;_0x55392f=_0x55392f['next'];}return{'type':'format','content':Tt(_0x414ff0,'*Set\x20format:*\x20%0',Tt(_0x414ff0,'ELEMENT_'+_0x5dbfdc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2027c8=this['editor'],_0x527103=_0x2027c8['locale'];_0x2027c8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b2fb0=>{if('formatBlock'!=_0x2b2fb0['type'])return;const {data:_0x28ad71}=_0x2b2fb0;if(!_0x28ad71)return;let _0x3d6684,_0x868833;switch(_0x28ad71['commandName']){case'listStyle':_0x3d6684='*Change\x20to:*\x20%0',_0x868833={'type':'format','content':Tt(_0x527103,_0x3d6684,Tt(_0x527103,this['_getTranslationKeyForListStyle'](_0x28ad71['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3d6684=_0x28ad71['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x868833={'type':'format','content':Tt(_0x527103,_0x3d6684)};break;case'listStart':_0x3d6684='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x868833={'type':'format','content':Tt(_0x527103,_0x3d6684,_0x28ad71['commandParams'][0x0]['startIndex'])};}return _0x868833;});}['_getTranslationKeyForListStyle'](_0x3d48b9){return'ELEMENT_'+function(_0x54fa4c){if(Lt['includes'](_0x54fa4c))return'bulleted';if(It['includes'](_0x54fa4c))return'numbered';return null;}(_0x3d48b9)['toUpperCase']()+'_LIST_'+_0x3d48b9['toUpperCase']()['replace'](/-/g,'_');}}const Lt=['disc','circle','square'],It=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class TrackChangesEmoji extends _0xf34f{['afterInit'](){const _0x2a1197=this['editor'];_0x2a1197['commands']['get']('emoji')&&_0x2a1197['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class TrackChangesEnterCommand extends _0xf34f{static get['requires'](){return[lt];}['init'](){const _0x266a4d=this['editor'],_0x36ed66=_0x266a4d['plugins']['get']('TrackChangesEditing'),_0x4d69ea=_0x266a4d['commands']['get']('enter');_0x36ed66['enableCommand']('enter',()=>{_0x266a4d['model']['change'](_0x49ac32=>{const _0x30a316=_0x266a4d['model']['document']['selection'],_0x2e0993=_0x30a316['getFirstPosition'](),_0x14aebd=_0xe62106['fromRange'](_0x30a316['getFirstRange']());if(_0x4d69ea['enterBlock'](_0x49ac32)){const _0x4b5be7=_0x266a4d['model']['createPositionAt'](_0x2e0993['parent']['nextSibling'],0x0),_0x44d509=_0x49ac32['createRange'](_0x2e0993,_0x4b5be7);_0x36ed66['markInsertion'](_0x44d509);}else _0x49ac32['setSelection'](_0x49ac32['createRange'](_0x14aebd['end']));_0x14aebd['detach'](),_0x4d69ea['fire']('afterExecute',{'writer':_0x49ac32});});});}}class TrackChangesFindAndReplace extends _0xf34f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2b9869=this['editor']['plugins']['get']('TrackChangesEditing');_0x2b9869['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2b9869['enableCommand']('findNext'),_0x2b9869['enableCommand']('findPrevious'),_0x2b9869['enableCommand']('replace'),_0x2b9869['enableCommand']('replaceAll');}['handleFindCommand'](_0x3901c4,_0x2d6431,_0x3f45dc={}){const _0x5b18c8=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3901c4(_0x5798ca=>{let _0x2d226e=('string'==typeof _0x2d6431?_0x5b18c8['findByTextCallback'](_0x2d6431,_0x3f45dc):_0x2d6431)(_0x5798ca);Array['isArray'](_0x2d226e)&&(_0x2d226e={'results':_0x2d226e,'searchText':'string'==typeof _0x2d6431?_0x2d6431:''});const _0x15b5c2=_0x2d226e['results']['filter'](_0x48eebf=>!0x1===this['_isInDeletionRange'](_0x48eebf,_0x5798ca['item']));return{..._0x2d226e,'results':_0x15b5c2};},_0x3f45dc);}['_isInDeletionRange'](_0x577b62,_0x5917d0){const _0x1cb735=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5917d0,_0x577b62['start']),this['editor']['model']['createPositionAt'](_0x5917d0,_0x577b62['end']));for(const _0x16f3d5 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1cb735['getIntersection'](_0x16f3d5['getRange']()))return!0x0;return!0x1;}}const At=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class TrackChangesFont extends _0xf34f{['afterInit'](){const _0x21023b=this['editor']['locale'],_0x469baf=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x22757a,commandName:_0x22b5a0}of At)this['editor']['plugins']['has'](_0x22757a)&&_0x469baf['enableDefaultAttributesIntegration'](_0x22b5a0);_0x469baf['descriptionFactory']['registerAttributeLabel']('fontSize',Tt(_0x21023b,'FORMAT_FONT_SIZE')),_0x469baf['descriptionFactory']['registerAttributeLabel']('fontFamily',Tt(_0x21023b,'FORMAT_FONT_FAMILY')),_0x469baf['descriptionFactory']['registerAttributeLabel']('fontColor',Tt(_0x21023b,'FORMAT_FONT_COLOR')),_0x469baf['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Tt(_0x21023b,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2512df=this['editor'],_0x25ae35=_0x2512df['locale'];_0x2512df['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13f532=>{const _0x4831c0=_0x25ae35['t'];if('formatInline'!=_0x13f532['type'])return;const {data:_0x117cdc}=_0x13f532;if(null!=_0x117cdc){if('fontSize'==_0x117cdc['commandName']){const _0x4c5839=_0x117cdc['commandParams'][0x0]['value'];if(_0x4c5839){const _0x353740=_0x4831c0(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4c4934=>_0x4c4934['model']==_0x4c5839)['title'])['toLowerCase']();return{'type':'format','content':Tt(_0x25ae35,'*Set\x20font\x20size:*\x20%0',_0x353740)};}return{'type':'format','content':Tt(_0x25ae35,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x117cdc['commandName']){const _0x5d2314=_0x117cdc['commandParams'][0x0]['value'];return _0x5d2314?{'type':'format','content':Tt(_0x25ae35,'*Set\x20font\x20family:*\x20%0',_0x5d2314)}:{'type':'format','content':Tt(_0x25ae35,'*Reset\x20font\x20family*')};}if('fontColor'==_0x117cdc['commandName']){const _0x42ec43=_0x117cdc['commandParams'][0x0]['value'];if(_0x42ec43){const _0x411ceb=_0x398be2(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1a07b7=>_0x1a07b7['model']==_0x42ec43);let _0x4b04fb=_0x42ec43,_0x186898='';return _0x411ceb&&(_0x4b04fb=_0x411ceb['label'],_0x186898=_0x4831c0(_0x4b04fb)['toLowerCase']()),{'type':'format','content':Tt(_0x25ae35,'*Set\x20font\x20color:*\x20%0',_0x186898)['trim'](),'color':{'value':_0x42ec43,'title':_0x186898||_0x4b04fb}};}return{'type':'format','content':Tt(_0x25ae35,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x117cdc['commandName']){const _0xa3d18b=_0x117cdc['commandParams'][0x0]['value'];if(_0xa3d18b){const _0x7edc7f=_0x398be2(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2beba8=>_0x2beba8['model']==_0xa3d18b);let _0x439676=_0xa3d18b,_0x354e50='';return _0x7edc7f&&(_0x439676=_0x7edc7f['label'],_0x354e50=_0x4831c0(_0x439676)['toLowerCase']()),{'type':'format','content':Tt(_0x25ae35,'*Set\x20font\x20background\x20color:*\x20%0',_0x354e50)['trim'](),'color':{'value':_0xa3d18b,'title':_0x354e50||_0x439676}};}return{'type':'format','content':Tt(_0x25ae35,'*Reset\x20font\x20background\x20color*')};}}});}}class TrackChangesFootnotes extends _0xf34f{['afterInit'](){const {plugins:_0x44a217}=this['editor'];_0x44a217['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x44a217['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x2f5e94,plugins:_0x18d267,commands:_0x2cae9c}=this['editor'],_0x324052=_0x18d267['get']('TrackChangesEditing');_0x2cae9c['get']('footnotesStyle')&&_0x324052['enableDefaultAttributesIntegration']('footnotesStyle'),_0x2cae9c['get']('footnotesStart')&&_0x324052['enableDefaultAttributesIntegration']('footnotesStart'),_0x324052['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Tt(_0x2f5e94,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x324052['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Tt(_0x2f5e94,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x3f1fd3=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x5bc4aa,commands:_0xd77d7f}=this['editor'];_0xd77d7f['get']('insertFootnote')&&_0x3f1fd3['enableCommand']('insertFootnote'),_0x3f1fd3['descriptionFactory']['registerElementLabel']('footnoteRef',_0x55d0ee=>Tt(_0x5bc4aa,'ELEMENT_FOOTNOTE_REF',_0x55d0ee)),_0x3f1fd3['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x59ef77=>Tt(_0x5bc4aa,'ELEMENT_FOOTNOTE_DEFINITION',_0x59ef77)),_0x3f1fd3['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x5e93f2=>Tt(_0x5bc4aa,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x5e93f2));}}class TrackChangesFormatPainter extends _0xf34f{['afterInit'](){const _0x462afb=this['editor'],_0x270d01=_0x462afb['plugins']['get']('TrackChangesEditing'),_0x5b6481=_0x462afb['commands']['get']('copyFormat'),_0xfec11f=_0x462afb['commands']['get']('pasteFormat');_0x5b6481&&_0xfec11f&&(_0x270d01['enableDefaultAttributesIntegration']('pasteFormat'),_0x270d01['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x96620a=this['editor'],_0x27f972=_0x96620a['locale'];_0x96620a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58a892=>{if('formatBlock'!=_0x58a892['type']&&'formatInline'!=_0x58a892['type'])return;const {data:_0x51a042}=_0x58a892;if(_0x51a042&&'pasteFormat'===_0x51a042['commandName']){const _0x76c52b=[],_0x29e7c9=_0x51a042['commandParams'][0x0];for(const [_0x413a64,_0x3392d1]of Object['entries'](_0x29e7c9))_0x76c52b['push'](bt(_0x96620a,_0x413a64,_0x3392d1));return _0x76c52b['length']?{'type':'format','content':Tt(_0x27f972,'*Set\x20format\x20to:*\x20%0',_0x76c52b['join'](',\x20'))}:{'type':'format','content':Tt(_0x27f972,'*Remove\x20all\x20formatting*')};}});}}function bt(_0x3f6bf2,_0xa0512c,_0x47ad04){const _0xfdfb3a=_0x3f6bf2['locale']['t'],_0x4b29ac=_0xa0512c['split'](/(?=[A-Z])/)['join']('\x20'),_0x521e79=_0xfdfb3a(_0x4b29ac['charAt'](0x0)['toUpperCase']()+_0x4b29ac['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x47ad04)return _0x521e79;if('fontColor'===_0xa0512c||'fontBackgroundColor'===_0xa0512c){const _0x1dbabe=_0x398be2(_0x3f6bf2['config']['get']('fontColor.colors'))['find'](_0x973f1d=>_0x973f1d['model']==_0x47ad04);return _0x521e79+'\x20('+(_0x1dbabe?_0xfdfb3a(_0x1dbabe['label'])['toLowerCase']():_0x47ad04)+')';}if('fontSize'===_0xa0512c&&isNaN(parseFloat(_0x47ad04))){const _0xb6154b=_0x3f6bf2['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3f6bf2['config']['get']('fontSize.options'))['find'](_0x4bff99=>_0x4bff99['model']==_0x47ad04);return _0x521e79+'\x20('+(_0xb6154b?_0xfdfb3a(_0xb6154b['title'])['toLowerCase']():_0x47ad04)+')';}return _0x521e79+'\x20('+_0x47ad04+')';}class TrackChangesGeneralHtmlSupport extends _0xf34f{['afterInit'](){const _0x787658=this['editor'];if(!_0x787658['plugins']['has']('GeneralHtmlSupport')||!_0x787658['plugins']['has']('DataSchema'))return;const _0x3a7d3a=_0x787658['plugins']['get']('TrackChangesEditing'),_0x449a5a=_0x787658['plugins']['get']('GeneralHtmlSupport'),_0x43bfd5=_0x787658['plugins']['get']('DataSchema'),_0x2620e3=_0x787658['locale'],_0x4a826f=new Set(['htmlContent']);for(const _0x19f550 of _0x43bfd5['getDefinitionsForView'](/.*/,!0x1)){const _0x5a4f33=_0x19f550['view'];_0x4a826f['add'](_0x449a5a['getGhsAttributeNameForElement'](_0x5a4f33)),_0x19f550['model']['startsWith']('html')&&_0x3a7d3a['descriptionFactory']['registerElementLabel'](_0x19f550['model'],_0x19312b=>Tt(_0x2620e3,'ELEMENT_HTML_TAG',[_0x19312b,_0x5a4f33]));}_0x3a7d3a['descriptionFactory']['registerAttributeLabel']('htmlContent',Tt(_0x2620e3,'FORMAT_RAW_HTML_CONTENT')),_0x3a7d3a['descriptionFactory']['registerDescriptionCallback'](_0xa1422=>{if('attribute'!==_0xa1422['type'])return;const _0x45f56a=_0xa1422['data'];if(!_0x45f56a||!_0x4a826f['has'](_0x45f56a['key']))return;if('htmlContent'===_0x45f56a['key'])return{'type':'format','content':Tt(_0x2620e3,'*Change\x20%0\x20content*',Tt(_0x2620e3,'ELEMENT_RAW_HTML'))};const {setItems:_0x26c7e1,removeItems:_0x1594ac}=function(_0x19ddc7,_0x4a85d9,_0x20daad){const _0x3b2bc4=[],_0x50941c=[],_0xae28d=_0x19ddc7['styles']??{},_0x2a0d0e=_0x4a85d9['styles']??{};for(const _0x49cd9d of new Set([...Object['keys'](_0xae28d),...Object['keys'](_0x2a0d0e)]))_0xae28d[_0x49cd9d]!==_0x2a0d0e[_0x49cd9d]&&(void 0x0===_0x2a0d0e[_0x49cd9d]?_0x50941c['push'](_0x49cd9d):_0x3b2bc4['push'](_0x49cd9d+'\x20('+_0x2a0d0e[_0x49cd9d]+')'));const _0x3ee159=Tt(_0x20daad,'FORMAT_HTML_CLASS'),_0x280c5e=new Set(_0x19ddc7['classes']??[]),_0xabe198=new Set(_0x4a85d9['classes']??[]),_0x300755=[..._0xabe198]['some'](_0x219951=>!_0x280c5e['has'](_0x219951)),_0x4dd515=[..._0x280c5e]['some'](_0x3a2e8f=>!_0xabe198['has'](_0x3a2e8f));_0x300755&&_0x3b2bc4['push'](_0x3ee159),_0x4dd515&&_0x50941c['push'](_0x3ee159);const _0x6d8f05=Tt(_0x20daad,'FORMAT_HTML_ATTRIBUTE'),_0x3d6f84=_0x19ddc7['attributes']??{},_0x1edcb2=_0x4a85d9['attributes']??{};let _0x197ff6=!0x1,_0x5dfe15=!0x1;for(const _0x290e65 of new Set([...Object['keys'](_0x3d6f84),...Object['keys'](_0x1edcb2)]))_0x3d6f84[_0x290e65]!==_0x1edcb2[_0x290e65]&&(void 0x0===_0x1edcb2[_0x290e65]?_0x5dfe15=!0x0:_0x197ff6=!0x0);return _0x197ff6&&_0x3b2bc4['push'](_0x6d8f05),_0x5dfe15&&_0x50941c['push'](_0x6d8f05),{'setItems':_0x3b2bc4,'removeItems':_0x50941c};}(_0x45f56a['oldValue']??{},_0x45f56a['newValue']??{},_0x2620e3);if(!_0x26c7e1['length']&&!_0x1594ac['length'])return;const _0x3c23b3=[];return _0x26c7e1['length']&&_0x3c23b3['push'](Tt(_0x2620e3,'*Set\x20format:*\x20%0',_0x26c7e1['join'](',\x20'))),_0x1594ac['length']&&_0x3c23b3['push'](Tt(_0x2620e3,'*Remove\x20format:*\x20%0',_0x1594ac['join'](',\x20'))),{'type':'format','content':_0x3c23b3['join']('\x0a')};});}}class TrackChangesHeading extends _0xf34f{['_headingOptions'];['afterInit'](){const _0x5ef899=this['editor'];if(!_0x5ef899['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5ef899['config']['get']('heading.options');const _0x5c1bb9=_0x5ef899['locale'],_0x5bc5dd=_0x5ef899['plugins']['get']('TrackChangesEditing');_0x5bc5dd['enableDefaultAttributesIntegration']('heading');for(const _0x1d19d9 of this['_headingOptions'])'paragraph'!=_0x1d19d9['model']&&_0x5bc5dd['descriptionFactory']['registerElementLabel'](_0x1d19d9['model'],_0x38dab1=>{const _0x1fae13=this['_getHeadingLevel'](_0x1d19d9['model']);return null!==_0x1fae13?_0xf0db93(_0x38dab1,_0x1fae13):_0x479259(_0x38dab1,_0x1d19d9['title']);});function _0xf0db93(_0x546fed,_0x134a40){return Tt(_0x5c1bb9,'ELEMENT_HEADING',[_0x546fed,_0x134a40]);}function _0x479259(_0x28d5cb,_0x35103f){return Tt(_0x5c1bb9,'ELEMENT_HEADING_CUSTOM',[_0x28d5cb,_0x35103f]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55dcc3=this['editor'],_0x1f8b4a=_0x55dcc3['locale'];function _0x346fb5(_0x17b21d,_0x261d6e){return Tt(_0x1f8b4a,'ELEMENT_HEADING_CUSTOM',[_0x17b21d,_0x261d6e]);}_0x55dcc3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d6262=>{if('formatBlock'!=_0x4d6262['type'])return;const {data:_0x1bb671}=_0x4d6262;if(_0x1bb671&&'heading'==_0x1bb671['commandName']){const _0x215e10=_0x1bb671['commandParams'][0x0]['value'],_0x1018a5=this['_getHeadingLevel'](_0x215e10);if(null!==_0x1018a5)return{'type':'format','content':Tt(_0x1f8b4a,'*Change\x20to:*\x20%0',(_0xaddc5f=0x1,_0xb2caf5=_0x1018a5,Tt(_0x1f8b4a,'ELEMENT_HEADING',[_0xaddc5f,_0xb2caf5])))};const _0x20cd6e=this['_headingOptions']['find'](_0x2d9bc7=>_0x2d9bc7['model']===_0x215e10)['title'];return{'type':'format','content':Tt(_0x1f8b4a,'*Change\x20to:*\x20%0',_0x346fb5(0x1,_0x20cd6e))};}var _0xaddc5f,_0xb2caf5;});}['_getHeadingLevel'](_0x28a766){const _0x25b09b=_0x28a766['match'](/^heading(\d+)/);if(_0x25b09b)return _0x25b09b[0x1];const _0x35b3a9=this['_headingOptions']?.['find'](_0xab0ad6=>_0xab0ad6['model']==_0x28a766);if(_0x35b3a9&&_0x35b3a9['view']){const _0xb6e9fd=_0x35b3a9['view'],_0x3dcd46=(_0xb6e9fd['name']??_0xb6e9fd)['match'](/^h(\d+)/);if(_0x3dcd46)return _0x3dcd46[0x1];}return null;}}class TrackChangesHighlight extends _0xf34f{['afterInit'](){const _0x5b2840=this['editor'];if(!_0x5b2840['plugins']['has']('HighlightEditing'))return;const _0x1b7822=_0x5b2840['plugins']['get']('TrackChangesEditing'),_0x59d8d8=_0x5b2840['locale'];_0x1b7822['enableDefaultAttributesIntegration']('highlight'),_0x1b7822['descriptionFactory']['registerAttributeLabel']('highlight',Tt(_0x59d8d8,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10bcb6=this['editor'],_0x46364d=_0x10bcb6['locale'];_0x10bcb6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9a60fe=>{if('formatInline'!=_0x9a60fe['type'])return;const {data:_0x26c057}=_0x9a60fe;if(_0x26c057&&'highlight'==_0x26c057['commandName']){const _0x3c2133=_0x46364d['t'],_0x4281af=_0x26c057['commandParams'][0x0]['value'];if(_0x4281af){const _0xc7d4d4=_0x10bcb6['config']['get']('highlight.options')['find'](_0x5d99ee=>_0x5d99ee['model']==_0x4281af),_0x47a6cb=_0x3c2133(_0xc7d4d4['title'])['toLowerCase']();return{'type':'format','content':Tt(_0x46364d,'*Set\x20highlight:*\x20%0',_0x47a6cb),'color':{'value':_0xc7d4d4['color'],'title':_0xc7d4d4['title']}};}return{'type':'format','content':Tt(_0x46364d,'*Remove\x20highlight*',Tt(_0x46364d,'FORMAT_HIGHLIGHT'))};}});}}class TrackChangesHorizontalLine extends _0xf34f{['afterInit'](){const _0x2c5c5d=this['editor'];if(!_0x2c5c5d['plugins']['has']('HorizontalLineEditing'))return;_0x2c5c5d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x154c5a=_0x2c5c5d['plugins']['get']('TrackChangesEditing'),_0x3c9ad2=_0x2c5c5d['locale'];_0x154c5a['descriptionFactory']['registerElementLabel']('horizontalLine',_0x40a37b=>Tt(_0x3c9ad2,'ELEMENT_HORIZONTAL_LINE',_0x40a37b));}}class TrackChangesHtmlEmbed extends _0xf34f{['afterInit'](){const _0x110e9d=this['editor'];if(!_0x110e9d['plugins']['has']('HtmlEmbed'))return;const _0x40791a=_0x110e9d['plugins']['get']('TrackChangesEditing'),_0x233d2a=_0x110e9d['locale'];_0x40791a['descriptionFactory']['registerElementLabel']('rawHtml',_0x5ba2ca=>Tt(_0x233d2a,'ELEMENT_HTML_EMBED',_0x5ba2ca)),_0x40791a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x40791a['descriptionFactory']['registerDescriptionCallback'](_0x514ff2=>{if('attribute'!=_0x514ff2['type'])return;const {data:_0x593ead}=_0x514ff2;if(_0x593ead&&'value'==_0x593ead['key']&&_0x514ff2['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x9d0978=Tt(_0x233d2a,'ELEMENT_HTML_EMBED');return{'type':'format','content':Tt(_0x233d2a,'*Change\x20%0\x20content*',_0x9d0978)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x562c34=this['editor'],_0x353d91=_0x562c34['locale'];_0x562c34['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c1b71=>{if('formatBlock'!=_0x1c1b71['type'])return;const {data:_0x57b661}=_0x1c1b71;if(_0x57b661&&'htmlEmbed'==_0x57b661['commandName']){const _0x39e995=Tt(_0x353d91,'ELEMENT_HTML_EMBED');return{'type':'format','content':Tt(_0x353d91,'*Change\x20%0\x20content*',_0x39e995)};}});}}class TrackChangesImage extends _0xf34f{['afterInit'](){const _0x2cce6f=this['editor'];if(!_0x2cce6f['plugins']['has']('ImageEditing'))return;const _0x3780f6=_0x2cce6f['plugins']['get']('TrackChangesEditing'),_0x5b9316=_0x2cce6f['plugins']['get']('ImageUtils'),_0xd1447a=_0x2cce6f['locale'];_0x3780f6['enableCommand']('insertImage'),_0x3780f6['descriptionFactory']['registerElementLabel']('imageBlock',_0x1b7e5d=>Tt(_0xd1447a,'ELEMENT_IMAGE',_0x1b7e5d)),_0x3780f6['descriptionFactory']['registerElementLabel']('imageInline',_0x40e2a4=>Tt(_0xd1447a,'ELEMENT_INLINE_IMAGE',_0x40e2a4)),_0x3780f6['descriptionFactory']['registerElementLabel']('caption',()=>Tt(_0xd1447a,'ELEMENT_CAPTION')),_0x2cce6f['plugins']['has']('ImageUploadEditing')&&_0x3780f6['enableCommand']('uploadImage'),_0x2cce6f['plugins']['has']('ImageBlockEditing')&&_0x2cce6f['plugins']['has']('ImageInlineEditing')&&(_0x3780f6['enableCommand']('imageTypeInline',(_0x500c7b,_0xa98f74)=>{const _0xa25c4=_0x5b9316['getClosestSelectedImageElement'](_0x2cce6f['model']['document']['selection']);_0x2cce6f['model']['change'](()=>{_0x3780f6['markBlockFormat'](_0xa25c4,{'commandName':'imageTypeInline','commandParams':[_0xa98f74]},[],'convertBlockImageToInline');});}),_0x3780f6['enableCommand']('imageTypeBlock',(_0x4005f1,_0x4ff46d)=>{_0x2cce6f['model']['change'](_0xdfc497=>{let _0x1b4ae2=_0x5b9316['getClosestSelectedImageElement'](_0x2cce6f['model']['document']['selection']),_0x593cf6=_0xdfc497['createRangeOn'](_0x1b4ae2);const _0x27c3e3=tt['fromPosition'](_0x593cf6['start'],'toPrevious'),_0x28a3ae=tt['fromPosition'](_0x593cf6['end'],'toNext');_0x3780f6['forceDefaultExecution'](()=>_0x4005f1(_0x4ff46d)),_0x1b4ae2=_0x5b9316['getClosestSelectedImageElement'](_0x2cce6f['model']['document']['selection']),_0x593cf6=_0xdfc497['createRangeOn'](_0x1b4ae2);const _0x3b0c16=_0xdfc497['createRange'](_0x27c3e3,_0x28a3ae);_0x27c3e3['detach'](),_0x28a3ae['detach'](),_0x3780f6['markBlockFormat'](_0x1b4ae2,{'commandName':'imageTypeInline','commandParams':[_0x4ff46d]},[],'convertInlineImageToBlock'),_0x3b0c16['start']['isBefore'](_0x593cf6['start'])&&_0x3780f6['markInsertion'](_0xdfc497['createRange'](_0x3b0c16['start'],_0x593cf6['start']),'convertInlineImageToBlock'),_0x593cf6['end']['isBefore'](_0x3b0c16['end'])&&_0x3780f6['markInsertion'](_0xdfc497['createRange'](_0x593cf6['end'],_0x3b0c16['end']),'convertInlineImageToBlock');});}),_0x3780f6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3780f6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3780f6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3780f6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3780f6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3780f6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x590bf8])=>{const _0x58050f=_0x3780f6['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3967d8=_0x590bf8['start'],_0x10f268=_0x590bf8['end'];const _0x380694=_0x2cce6f['model']['schema']['getNearestSelectionRange'](_0x3967d8,'backward'),_0x6b07ee=_0x2cce6f['model']['schema']['getNearestSelectionRange'](_0x10f268,'forward');_0x380694['isCollapsed']&&(_0x3967d8=_0x380694['start']),_0x6b07ee['isCollapsed']&&(_0x10f268=_0x6b07ee['end']),_0x58050f([_0x2cce6f['model']['createRange'](_0x3967d8,_0x10f268)]);}),_0x3780f6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5263a7),_0x3780f6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5263a7)),_0x2cce6f['plugins']['has']('ImageCaptionEditing')&&(_0x3780f6['enableCommand']('toggleImageCaption',(_0x7c6983,_0x56f990)=>{const _0x24cbc2=_0x2cce6f['plugins']['get']('ImageCaptionUtils');let _0x203427=_0x5b9316['getClosestSelectedImageElement'](_0x2cce6f['model']['document']['selection']),_0x4081aa=_0x24cbc2['getCaptionFromImageModelElement'](_0x203427);_0x2cce6f['model']['change'](()=>{if(_0x4081aa)return void _0x3780f6['markDeletion'](_0x2cce6f['model']['createRangeOn'](_0x4081aa));const _0x1fdc10=_0x5b9316['isBlockImage'](_0x203427);_0x7c6983(_0x56f990),_0x203427=_0x5b9316['getClosestSelectedImageElement'](_0x2cce6f['model']['document']['selection']),_0x4081aa=_0x24cbc2['getCaptionFromImageModelElement'](_0x203427),_0x3780f6['markInsertion'](_0x2cce6f['model']['createRangeOn'](_0x4081aa),_0x1fdc10?null:'imageCaption');});}),_0x3780f6['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5263a7));const _0x3fd116=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2be193(_0x370866,_0x5ddca2){const _0x52e71a=_0x3fd116['findIndex'](({type:_0x26595f,subType:_0x2c8213})=>_0x370866['type']==_0x26595f&&_0x370866['subType']==_0x2c8213),_0x235498=_0x3fd116['findIndex'](({type:_0x296a19,subType:_0x24ba50})=>_0x5ddca2['type']==_0x296a19&&_0x5ddca2['subType']==_0x24ba50);if(_0x52e71a<0x0||_0x235498<0x0)return!0x1;const _0x509e9d=_0x370866['getFirstRange'](),_0x1522bb=_0x5ddca2['getFirstRange']();if((0x0==_0x52e71a||0x1==_0x52e71a)&&0x2==_0x235498&&_0x509e9d['isIntersecting'](_0x1522bb))return!0x0;if(0x2==_0x52e71a&&0x3==_0x235498){const _0x1b7944=_0x3780f6['_findSuggestions'](_0x509e9d,'insertion')['filter'](({suggestion:_0x472a4d,meta:_0x117ad7})=>_0x117ad7['isOwn']&&'convertInlineImageToBlock'==_0x472a4d['subType']);if(_0x1b7944['length']>0x1&&_0x1522bb['end']['isEqual'](_0x509e9d['start']))return!0x0;if(0x1==_0x1b7944['length']&&(_0x509e9d['start']['isEqual'](_0x1522bb['end'])||_0x509e9d['end']['isEqual'](_0x1522bb['start'])))return!0x0;}if(0x3==_0x52e71a&&0x3==_0x235498&&_0x509e9d['start']['isBefore'](_0x1522bb['start'])){const _0xf4a319=_0x509e9d['end']['nodeAfter'],_0x21289d=_0x1522bb['start']['nodeBefore'];return _0x5b9316['isBlockImage'](_0xf4a319)&&_0xf4a319===_0x21289d;}return!0x1;}function _0x5263a7(_0x118008,_0x23ed90){return _0x2be193(_0x118008,_0x23ed90)?[_0x118008,_0x23ed90]:_0x2be193(_0x23ed90,_0x118008)?[_0x23ed90,_0x118008]:null;}_0x2cce6f['plugins']['has']('ImageResize')&&(_0x3780f6['enableDefaultAttributesIntegration']('resizeImage'),_0x3780f6['descriptionFactory']['registerAttributeLabel']('resizedWidth',Tt(_0xd1447a,'FORMAT_IMAGE_SIZE'))),_0x2cce6f['plugins']['has']('ImageTextAlternativeEditing')&&_0x3780f6['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2cce6f['plugins']['has']('PictureEditing')&&_0x3780f6['descriptionFactory']['registerDescriptionCallback'](_0x2a1ca5=>{if('attribute'!=_0x2a1ca5['type'])return;const {data:_0x440923}=_0x2a1ca5;return _0x440923&&'sources'==_0x440923['key']?{'type':'format','content':''}:void 0x0;}),_0x2cce6f['plugins']['has']('ImageSizeAttributes')&&_0x3780f6['descriptionFactory']['registerDescriptionCallback'](_0x506fa4=>{if('attribute'!=_0x506fa4['type'])return;const {data:_0x3085ca}=_0x506fa4;return!_0x3085ca||'width'!=_0x3085ca['key']&&'height'!=_0x3085ca['key']?void 0x0:{'type':'format','content':''};}),_0x3780f6['descriptionFactory']['registerDescriptionCallback'](_0x3fe9f7=>{if(!!_0x3fd116['find'](({type:_0x2b7ad5,subType:_0x1c4e64})=>_0x3fe9f7['type']==_0x2b7ad5&&_0x3fe9f7['subType']==_0x1c4e64))return _0x3fe9f7['previous']?{}:void 0x0;}),_0x3780f6['descriptionFactory']['registerDescriptionCallback'](_0x1965b7=>{if('insertion'==_0x1965b7['type']||'deletion'==_0x1965b7['type']){const _0x430c61=_0x1965b7['getContainedElement']();if(_0x430c61&&_0x430c61['is']('element','caption'))return{'type':'insertion'==_0x1965b7['type']?'addObject':'removeObject','element':_0x430c61,'quantity':0x1};}}),_0x3780f6['descriptionFactory']['registerDescriptionCallback'](_0x15190e=>'formatBlock'==_0x15190e['type']&&'convertInlineImageToBlock'==_0x15190e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x15190e['type']&&'convertBlockImageToInline'==_0x15190e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3780f6['descriptionFactory']['registerDescriptionCallback'](_0x599f7f=>{if('attribute'!=_0x599f7f['type'])return;const {data:_0x122821}=_0x599f7f;if(!_0x122821||'alt'!=_0x122821['key'])return;const _0x11fb0a=_0x122821['newValue'];return _0x11fb0a?{'type':'format','content':Tt(_0xd1447a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x11fb0a+'\x22')}:{'type':'format','content':Tt(_0xd1447a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x185299=this['editor'],_0x383fb7=_0x185299['locale'];_0x185299['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d11b5=>{if('formatBlock'!=_0x1d11b5['type']&&'formatInline'!=_0x1d11b5['type'])return;const {data:_0x43a8e3}=_0x1d11b5;if(_0x43a8e3){if('imageTextAlternative'==_0x43a8e3['commandName']){const _0x2f8cf6=_0x43a8e3['commandParams'][0x0]['newValue'];return _0x2f8cf6?{'type':'format','content':Tt(_0x383fb7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2f8cf6+'\x22')}:{'type':'format','content':Tt(_0x383fb7,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x43a8e3['commandName']){const _0x46002c=_0x43a8e3['commandParams'][0x0]['width'];return _0x46002c?{'type':'format','content':Tt(_0x383fb7,'*Set\x20image\x20width:*\x20%0',_0x46002c)}:{'type':'format','content':Tt(_0x383fb7,'*Reset\x20image\x20width*')};}}});}}class TrackChangesImageReplace extends _0xf34f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x590606=this['editor']['locale'],_0x5577c6=this['editor']['plugins']['get']('TrackChangesEditing');_0x5577c6['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5577c6['descriptionFactory']['registerDescriptionCallback'](_0x7928=>{if('attribute'!=_0x7928['type'])return;const {data:_0x43e285}=_0x7928;return _0x43e285&&'src'==_0x43e285['key']?_0x43e285['newValue']&&_0x43e285['oldValue']?{'type':'format','content':Tt(_0x590606,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5bc5ec=this['editor']['plugins']['get']('TrackChangesEditing');_0x5bc5ec['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5bc5ec['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5bc5ec['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5bc5ec['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32e8df=this['editor'],_0x356363=_0x32e8df['locale'];_0x32e8df['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2312c9=>{if('formatBlock'!=_0x2312c9['type']&&'formatInline'!=_0x2312c9['type'])return;const {data:_0x55e77b}=_0x2312c9;if(!_0x55e77b||'replaceImageSource'!=_0x55e77b['commandName'])return;return{'type':'format','content':Tt(_0x356363,'*Format:*\x20replace\x20image\x20URL')};});}}class TrackChangesImageStyle extends _0xf34f{['afterInit'](){const _0x31a50c=this['editor'];if(!_0x31a50c['plugins']['has']('ImageStyleEditing'))return;const _0x488d64=_0x31a50c['plugins']['get']('TrackChangesEditing'),_0xfc6c76=_0x31a50c['plugins']['get']('ImageUtils'),_0xe97022={};_0x488d64['enableCommand']('imageStyle',(_0x24ab99,_0x3586d3)=>{const _0x3d90a6=_0x31a50c['plugins']['get']('Users')['me'],_0x446584=_0x31a50c['commands']['get']('imageStyle');let _0x2654dd=_0xfc6c76['getClosestSelectedImageElement'](_0x31a50c['model']['document']['selection']),_0x942af3=_0x31a50c['model']['createRangeOn'](_0x2654dd),_0x3b46fb=_0x446584['value'];if(_0x3b46fb==_0x3586d3['value'])return;const _0x8dd092={'commandName':'imageStyle','commandParams':[_0x3586d3],'formatGroupId':_0x424839()};_0x31a50c['model']['change'](()=>{if(_0x488d64['getSuggestions']()['filter'](_0x521e2a=>_0x521e2a['isInContent']&&_0x3d90a6==_0x521e2a['author']&&('formatBlock'==_0x521e2a['type']||'formatInline'==_0x521e2a['type'])&&('imageStylePreApply'==_0x521e2a['subType']||'imageStylePostApply'==_0x521e2a['subType'])&&_0x521e2a['getFirstRange']()['isEqual'](_0x942af3))['forEach'](_0x161f44=>_0x488d64['discardSuggestion'](_0x161f44['head'])),_0x2654dd=_0xfc6c76['getClosestSelectedImageElement'](_0x31a50c['model']['document']['selection']),_0x942af3=_0x31a50c['model']['createRangeOn'](_0x2654dd),_0x446584['refresh'](),_0x31a50c['commands']['get']('imageTypeInline')['refresh'](),_0x31a50c['commands']['get']('imageTypeBlock')['refresh'](),_0x3b46fb=_0x446584['value'],_0x3b46fb!=_0x3586d3['value'])return _0xfc6c76['isInlineImage'](_0x2654dd)&&_0x446584['shouldConvertImageType'](_0x3586d3['value'],_0x2654dd)?(_0x24ab99({..._0x3586d3,'setImageSizes':!0x1}),_0x2654dd=_0xfc6c76['getClosestSelectedImageElement'](_0x31a50c['model']['document']['selection']),void _0x488d64['markBlockFormat'](_0x2654dd,{..._0x8dd092,'commandReversedParams':[{'value':_0x3b46fb||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xfc6c76['isBlockImage'](_0x2654dd)?_0x488d64['markBlockFormat'](_0x2654dd,_0x8dd092,[],'imageStylePostApply'):_0x488d64['markInlineFormat'](_0x942af3,_0x8dd092,'imageStylePostApply'));});});for(const _0x39e3ed of _0x31a50c['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xe97022[_0x39e3ed['name']]=_0x39e3ed['title']['toLowerCase']();_0x488d64['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x488d64['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x488d64['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x488d64['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x594a93])=>{_0xfc6c76['setImageNaturalSizeAttributes'](_0x594a93['getContainedElement']());}),_0x488d64['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x36b2b9,_0x4831a2)=>{_0x488d64['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x36b2b9,{'commandName':_0x4831a2['commandName'],'commandParams':_0x4831a2['commandReversedParams']});}),_0x488d64['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x89fbbd,_0x48910d){if(_0x361b33(_0x89fbbd,_0x48910d))return[_0x89fbbd,_0x48910d];if(_0x361b33(_0x48910d,_0x89fbbd))return[_0x48910d,_0x89fbbd];return null;});const _0x1385b9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x361b33(_0x5a9d59,_0x35c101){const _0x557071=_0x1385b9['findIndex'](({type:_0x6cee33,subType:_0x1caa65})=>_0x5a9d59['type']==_0x6cee33&&_0x5a9d59['subType']==_0x1caa65),_0x1e7329=_0x1385b9['findIndex'](({type:_0x55148f,subType:_0x3debb3})=>_0x35c101['type']==_0x55148f&&_0x35c101['subType']==_0x3debb3);if(_0x557071<0x0||_0x1e7329<0x0)return!0x1;const _0x51676a=_0x5a9d59['getFirstRange'](),_0x2b2e8c=_0x35c101['getFirstRange']();if((0x0==_0x557071||0x1==_0x557071)&&0x2==_0x1e7329&&_0x51676a['isIntersecting'](_0x2b2e8c))return!0x0;if(0x2==_0x557071&&0x3==_0x1e7329){const _0x148f32=_0x488d64['_findSuggestions'](_0x51676a,'insertion')['filter'](({suggestion:_0xcd6be5,meta:_0x4b4192})=>_0x4b4192['isOwn']&&'convertInlineImageToBlock'==_0xcd6be5['subType']);if(_0x148f32['length']>0x1&&_0x2b2e8c['end']['isEqual'](_0x51676a['start']))return!0x0;if(0x1==_0x148f32['length']&&(_0x51676a['start']['isEqual'](_0x2b2e8c['end'])||_0x51676a['end']['isEqual'](_0x2b2e8c['start'])))return!0x0;}if(0x3==_0x557071&&0x3==_0x1e7329&&_0x51676a['start']['isBefore'](_0x2b2e8c['start'])){const _0x59bf95=_0x51676a['end']['nodeAfter'],_0x713d5a=_0x2b2e8c['start']['nodeBefore'];return _0xfc6c76['isBlockImage'](_0x59bf95)&&_0x59bf95===_0x713d5a;}return!0x1;}_0x31a50c['model']['document']['registerPostFixer'](()=>{let _0xa5a793=!0x1;const _0x16da52=Array['from'](_0x31a50c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x34744d,data:_0xd015e8}of _0x16da52){const {group:_0x538294,type:_0x4d4e7b,subType:_0x3f38dd,id:_0x2e8c9a}=_0x3647dc(_0x34744d);if('suggestion'==_0x538294&&_0x488d64['hasSuggestion'](_0x2e8c9a)){if('formatBlock'==_0x4d4e7b&&('imageStylePreApply'==_0x3f38dd||'imageStylePostApply'==_0x3f38dd)){const _0x30132d=_0x488d64['getSuggestion'](_0x2e8c9a);if(_0xd015e8['newRange']){const _0x1b24c4=_0x30132d['getFirstRange']()['getContainedElement']();if(_0xfc6c76['isBlockImage'](_0x1b24c4))continue;_0x488d64['discardSuggestion'](_0x30132d),_0xa5a793=!0x0;}}if('insertion'==_0x4d4e7b&&'imageCaption'==_0x3f38dd&&!_0xd015e8['newRange']){const _0x4eb69d=_0x488d64['getSuggestion'](_0x2e8c9a);_0x4eb69d['next']&&_0x4eb69d['next']['isInContent']&&(_0x488d64['discardSuggestion'](_0x4eb69d['next']),_0xa5a793=!0x0);}}}return _0xa5a793;}),this['_registerLegacyDescription'](_0xe97022);}['_registerLegacyDescription'](_0x508374){const _0x482947=this['editor'],_0x2a0bc9=_0x482947['locale'];_0x482947['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a7b28=>{if('formatBlock'!=_0x5a7b28['type']&&'formatInline'!=_0x5a7b28['type'])return;const {data:_0x38d52b}=_0x5a7b28;if(!_0x38d52b||'imageStyle'!=_0x38d52b['commandName'])return;const _0x3d27b2=_0x38d52b['commandParams'][0x0]['value'];return _0x5eed8a('side'===_0x3d27b2?Tt(_0x2a0bc9,'FORMAT_SIDE_IMAGE'):_0x508374[_0x3d27b2]||_0x3d27b2);function _0x5eed8a(_0x1cf50e){return{'type':'format','content':Tt(_0x2a0bc9,'*Format:*\x20%0',_0x1cf50e)};}});}}class TrackChangesImportWord extends _0xf34f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1e6270){super(_0x1e6270),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1a250b=this['editor'],_0x35d999=_0x1a250b['commands']['get']('importWord'),_0x4a2601=_0x1a250b['commands']['get']('trackChanges');_0x35d999&&(_0x35d999['on']('execute',(_0x3f8365,[,_0x4026fd])=>{this['_trackChangesValueDuringImport']=_0x4a2601['value'],_0x4026fd['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x35d999,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x35d999,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4a2601['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1a250b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x277724,_0xfb5078){const {suggestions:_0x5bfa7b}=_0xfb5078,_0x41b5e8=this['editor']['commands']['get']('trackChanges'),_0x3ec698=_0x41b5e8['value'];this['_trackChangesValueDuringImport']!==_0x3ec698&&(_0x41b5e8['execute'](),this['_trackChangesExecuted']=!0x0),_0x5bfa7b&&_0x5bfa7b['forEach'](({id:_0xe4554b,type:_0x51ec05,author:_0xaaac80,created_at:_0x202cbd})=>{const _0x4ea9b0={'id':_0xe4554b,'type':_0x51ec05,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xaaac80,'createdAt':_0x202cbd?new Date(_0x202cbd):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4ea9b0);});}}class TrackChangesIndent extends _0xf34f{['afterInit'](){const _0x4012ab=this['editor'],_0x1307a9=_0x4012ab['plugins']['get']('TrackChangesEditing');if(_0x4012ab['plugins']['has']('IndentEditing')&&(_0x1307a9['enableCommand']('indent'),_0x1307a9['enableCommand']('outdent')),_0x4012ab['plugins']['has']('IndentBlock')){for(const _0x5f45b5 of['indentBlock','outdentBlock'])_0x1307a9['enableDefaultAttributesIntegration'](_0x5f45b5);if(_0x4012ab['plugins']['has']('ListEditing')){for(const _0x1374b2 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x1307a9['enableDefaultAttributesIntegration'](_0x1374b2);}}const _0x23707f=_0x4012ab['locale'];_0x1307a9['descriptionFactory']['registerAttributeLabel']('blockIndent',Tt(_0x23707f,'FORMAT_INDENT')),_0x1307a9['descriptionFactory']['registerAttributeLabel']('blockIndentList',Tt(_0x23707f,'FORMAT_INDENT')),_0x1307a9['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Tt(_0x23707f,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf1bf25=this['editor'],_0x368ec3=_0xf1bf25['locale'],_0x478ff5=_0xf1bf25['plugins']['get']('TrackChangesEditing');_0x478ff5['descriptionFactory']['registerDescriptionCallback'](_0x489167=>{if('formatBlock'!=_0x489167['type'])return;const {data:_0x385d5f}=_0x489167;if(!_0x385d5f)return;if('indentBlock'!=_0x385d5f['commandName']&&'outdentBlock'!=_0x385d5f['commandName'])return;const _0x358d6b=_0x489167['getItems']()[0x0],_0x1296a0=_0x478ff5['descriptionFactory']['getItemLabel'](_0x358d6b);return'indentBlock'==_0x385d5f['commandName']?{'type':'format','content':Tt(_0x368ec3,'*Indent:*\x20%0',_0x1296a0)}:'outdentBlock'==_0x385d5f['commandName']?{'type':'format','content':Tt(_0x368ec3,'*Outdent:*\x20%0',_0x1296a0)}:void 0x0;});}}class TrackChangesInputCommand extends _0xf34f{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class TrackChangesLink extends _0xf34f{['afterInit'](){const _0x443bce=this['editor'];if(!_0x443bce['plugins']['has']('LinkEditing'))return;const _0x4dcc24=_0x443bce['plugins']['get']('TrackChangesEditing'),_0x1c1cc2=_0x443bce['commands']['get']('link');_0x4dcc24['enableDefaultAttributesIntegration']('link'),_0x4dcc24['enableDefaultAttributesIntegration']('unlink');for(const _0x34433b of _0x1c1cc2['manualDecorators'])_0x4dcc24['descriptionFactory']['registerAttributeLabel'](_0x34433b['id'],'link\x20('+_0x34433b['label']['toLowerCase']()+')');_0x4dcc24['descriptionFactory']['registerDescriptionCallback'](_0x586a68=>{if('attribute'!=_0x586a68['type'])return;const {data:_0x280de1}=_0x586a68;if(!_0x280de1||'linkHref'!=_0x280de1['key'])return;const _0x44d727=_0x280de1['newValue'],_0x59aedc=_0x443bce['locale'];return{'type':'format','content':null==_0x44d727?Tt(_0x59aedc,'*Remove\x20link*'):Tt(_0x59aedc,'*Set\x20link:*\x20%0','\x22'+_0x44d727+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10bafa=this['editor'],_0x3ff2b3=_0x10bafa['locale'];_0x10bafa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x272763=>{if('formatInline'!=_0x272763['type'])return;const {data:_0x2a3156}=_0x272763;if(_0x2a3156){if('link'==_0x2a3156['commandName']){const _0x4878e8=_0x2a3156['commandParams'][0x0];return{'type':'format','content':Tt(_0x3ff2b3,'*Set\x20link:*\x20%0','\x22'+_0x4878e8+'\x22')};}return'unlink'==_0x2a3156['commandName']?{'type':'format','content':Tt(_0x3ff2b3,'*Remove\x20link*')}:void 0x0;}});}}class TrackChangesLegacyList extends _0xf34f{['afterInit'](){const _0x485b19=this['editor'],_0x1f5dcc=_0x485b19['locale'];if(!_0x485b19['plugins']['has']('LegacyListEditing'))return;const _0x3c2b63=_0x485b19['plugins']['get']('TrackChangesEditing'),_0x48096e=_0x485b19['plugins']['has']('LegacyTodoListEditing');function _0x11291d(_0x155aa7){return()=>{const _0x261db8=_0x485b19['model']['document']['selection'],_0x40170c=_0x485b19['commands']['get'](_0x155aa7);if(_0x40170c['value'])return void _0x485b19['execute']('paragraph',{});const _0x3bbbd1=_0x155aa7['slice'](0x0,-0x4),_0x431c1f=function(_0x2e7435,_0x3ca70e,_0x22df6b){let _0x545617=Array['from'](_0x2e7435)['filter'](_0x1bcedb=>function(_0x5999be,_0xd8740e){return _0xd8740e['checkChild'](_0x5999be['parent'],'listItem')&&!_0xd8740e['isObject'](_0x5999be);}(_0x1bcedb,_0x22df6b));_0x545617=_0x545617['filter'](_0x3f8f27=>!_0x3f8f27['is']('element','listItem')||_0x3f8f27['getAttribute']('listType')!=_0x3ca70e);const _0x1ee24a=new Set();for(const _0x543244 of _0x545617)_0x543244['is']('element','listItem')?_0x1ee24a['add'](St(_0x543244)):_0x1ee24a['add'](_0x543244);return Array['from'](_0x1ee24a);}(_0x261db8['getSelectedBlocks'](),_0x3bbbd1,_0x485b19['model']['schema']);_0x485b19['model']['change'](()=>{for(const _0x56ae7b of _0x431c1f)_0x3c2b63['markBlockFormat'](_0x56ae7b,{'commandName':_0x155aa7,'commandParams':[{'forceValue':!_0x40170c['value']}],'formatGroupId':'blockName'},Rt(_0x56ae7b));});};}function _0x52f619(_0x53afea){return()=>{const _0x3c797e=function(_0x70645d){let _0x42d168=Array['from'](_0x70645d);const _0x249c6f=_0x42d168['findIndex'](_0x24b97b=>'listItem'!=_0x24b97b['name']);return _0x249c6f>-0x1&&(_0x42d168=_0x42d168['slice'](0x0,_0x249c6f)),_0x42d168;}(_0x485b19['model']['document']['selection']['getSelectedBlocks']()),_0x547309=_0x485b19['model']['createRange'](_0x485b19['model']['createPositionAt'](_0x3c797e[0x0],'before'),_0x485b19['model']['createPositionAt'](_0x3c797e[_0x3c797e['length']-0x1],'end'));_0x485b19['model']['change'](()=>{_0x3c2b63['markBlockFormat'](_0x547309,{'commandName':_0x53afea,'commandParams':[],'formatGroupId':'listIndent'},function(_0x235f38){const _0x422ca8=new Set();for(const _0xc3601b of _0x235f38){let _0x41e9c4=_0xc3601b['nextSibling'];for(;_0x41e9c4&&_0x41e9c4['getAttribute']('listIndent')>_0xc3601b['getAttribute']('listIndent');)_0x422ca8['add'](_0x41e9c4),_0x41e9c4=_0x41e9c4['nextSibling'];}return Array['from'](_0x422ca8);}(_0x3c797e));});};}_0x3c2b63['enableCommand']('numberedList',_0x11291d('numberedList')),_0x3c2b63['enableCommand']('bulletedList',_0x11291d('bulletedList')),_0x48096e&&_0x3c2b63['enableCommand']('todoList',_0x11291d('todoList')),_0x3c2b63['enableCommand']('indentList',_0x52f619('indentList')),_0x3c2b63['enableCommand']('outdentList',_0x52f619('outdentList')),_0x48096e&&_0x3c2b63['enableCommand']('checkTodoList',()=>{const _0x7f571a=_0x485b19['commands']['get']('checkTodoList'),_0x2e8704=Array['from'](_0x7f571a['_selectedElements']);_0x2e8704['filter'](_0x5efa2d=>_0x5efa2d['getAttribute']('todoListChecked')!=_0x7f571a['value']),_0x485b19['model']['change'](()=>{for(const _0x1ae1e1 of _0x2e8704)_0x3c2b63['markBlockFormat'](_0x1ae1e1,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x7f571a['value']}]});});}),_0x3c2b63['descriptionFactory']['registerElementLabel']('listItem',_0x5ddb1e=>Tt(_0x1f5dcc,'ELEMENT_LIST_ITEM',_0x5ddb1e)),_0x3c2b63['descriptionFactory']['registerDescriptionCallback'](_0x3190bc=>{if('formatBlock'!=_0x3190bc['type']&&'formatInline'!=_0x3190bc['type'])return;const {data:_0x2ba009}=_0x3190bc;if(_0x2ba009){if('numberedList'==_0x2ba009['commandName']||'bulletedList'==_0x2ba009['commandName']||'todoList'==_0x2ba009['commandName'])switch(_0x2ba009['commandName']['replace']('List','')){case'bulleted':return _0x2c043f(Tt(_0x1f5dcc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2c043f(Tt(_0x1f5dcc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2c043f(Tt(_0x1f5dcc,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2ba009['commandName'])return{'type':'format','content':Tt(_0x1f5dcc,'*Indent:*\x20%0',Tt(_0x1f5dcc,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2ba009['commandName'])return{'type':'format','content':Tt(_0x1f5dcc,'*Outdent:*\x20%0',Tt(_0x1f5dcc,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2ba009['commandName'])return _0x2ba009['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x1f5dcc,'*Check\x20item*')}:{'type':'format','content':Tt(_0x1f5dcc,'*Uncheck\x20item*')};}function _0x2c043f(_0x346077){return{'type':'format','content':Tt(_0x1f5dcc,'*Change\x20to:*\x20%0',_0x346077)};}});}}function St(_0x215373){const _0x47eb7b=_0x215373['getAttribute']('listIndent');if(0x0==_0x47eb7b)return _0x215373;let _0x2253f5=_0x215373;for(;_0x215373['previousSibling']&&_0x215373['previousSibling']['is']('element','listItem');){const _0x1c5715=_0x215373['previousSibling']['getAttribute']('listIndent');if(_0x1c5715==_0x47eb7b)_0x2253f5=_0x215373['previousSibling'];else{if(_0x1c5715<_0x47eb7b)break;}_0x215373=_0x215373['previousSibling'];}return _0x2253f5;}function Rt(_0x11f7d6){const _0x22b739=[];if(_0x11f7d6['is']('element','listItem')&&_0x11f7d6['getAttribute']('listIndent')>0x0){let _0x1efbf0=_0x11f7d6['nextSibling'];for(;_0x1efbf0&&'listItem'==_0x1efbf0['name']&&_0x1efbf0['getAttribute']('listIndent')==_0x11f7d6['getAttribute']('listIndent');)_0x22b739['push'](_0x1efbf0),_0x1efbf0=_0x1efbf0['nextSibling'];}return _0x22b739;}class TrackChangesLegacyListProperties extends _0xf34f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x567c82=this['editor']['config']['get']('list.properties'),_0x5aeb75=this['editor']['plugins']['get']('TrackChangesEditing');_0x567c82['styles']&&_0x5aeb75['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x567c82['reversed']&&_0x5aeb75['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x567c82['startIndex']&&_0x5aeb75['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5aeb75['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2abe2d,_0x35a8d0={}){const _0x453c6d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x375a6c=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x453c6d['markMultiRangeBlockFormat'](_0x375a6c,{'commandName':'listStyle','commandParams':[{'type':_0x35a8d0['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x306b6e,_0xd47b71={}){const _0x4efd23=this['editor']['plugins']['get']('TrackChangesEditing'),_0x277772=this['_getSuggestionBlocks'](_0x12d289=>_0x12d289['is']('element','listItem')&&'numbered'===_0x12d289['getAttribute']('listType'));if(_0x277772['length']<0x1)return;const _0x58e341=_0x277772['map'](_0x2c596e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2c596e,'before'),this['editor']['model']['createPositionAt'](_0x2c596e,0x0)));this['editor']['model']['change'](()=>{_0x4efd23['markMultiRangeBlockFormat'](_0x58e341,{'commandName':'listReversed','commandParams':[{'reversed':_0xd47b71['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x26ab9f,_0x4dc1a0={}){const _0x347d75=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26ba85=this['_getSuggestionBlocks'](_0x18fe7c=>_0x18fe7c['is']('element','listItem')&&'numbered'===_0x18fe7c['getAttribute']('listType'));if(_0x26ba85['length']<0x1)return;const _0x4ac4c6=_0x26ba85['map'](_0x30b400=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x30b400,'before'),this['editor']['model']['createPositionAt'](_0x30b400,0x0)));this['editor']['model']['change'](()=>{_0x347d75['markMultiRangeBlockFormat'](_0x4ac4c6,{'commandName':'listStart','commandParams':[{'startIndex':_0x4dc1a0['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x36ad23){if('formatBlock'!=_0x36ad23['type']&&'formatInline'!=_0x36ad23['type'])return;const _0x31e5bb=this['editor']['locale'],{data:_0x5c18c9}=_0x36ad23;if(!_0x5c18c9)return;let _0x31c920,_0x33ec58;switch(_0x5c18c9['commandName']){case'listStyle':_0x31c920='*Change\x20to:*\x20%0',_0x33ec58={'type':'format','content':Tt(_0x31e5bb,_0x31c920,Tt(_0x31e5bb,this['_getTranslationKeyForListStyle'](_0x5c18c9['commandParams'][0x0]['type'])))};break;case'listReversed':_0x31c920=_0x5c18c9['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x33ec58={'type':'format','content':Tt(_0x31e5bb,_0x31c920)};break;case'listStart':_0x31c920='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x33ec58={'type':'format','content':Tt(_0x31e5bb,_0x31c920,_0x5c18c9['commandParams'][0x0]['startIndex'])};}return _0x33ec58;}['_getSuggestionBlocksForListStyle'](){const _0x98ae39=this['editor']['plugins']['get']('LegacyListUtils');let _0xced30e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xced30e[0x0]?.['is']('element','listItem')&&_0xced30e['unshift'](..._0x98ae39['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xced30e[_0xced30e['length']-0x1]?.['is']('element','listItem')&&_0xced30e['push'](..._0x98ae39['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xced30e=[...new Set(_0xced30e)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xced30e=_0xced30e['filter'](_0x4dc35e=>_0x4dc35e['is']('element','listItem'))),_0xced30e;}['_getSuggestionBlocks'](_0x264123){const _0xa464cf=this['editor']['plugins']['get']('LegacyListUtils');let _0x24cda3=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x264123)['map'](_0x3dcec1=>{const _0x19f148=this['editor']['model']['createPositionAt'](_0x3dcec1,0x0);return[..._0xa464cf['getSiblingNodes'](_0x19f148,'backward'),..._0xa464cf['getSiblingNodes'](_0x19f148,'forward')];})['flat']();return _0x24cda3=[...new Set(_0x24cda3)],_0x24cda3;}['_getTranslationKeyForListStyle'](_0x24761b){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x24761b)||'default')['toUpperCase']()+'_LIST_'+_0x24761b['toUpperCase']()['replace'](/-/g,'_');}}class TrackChangesMediaEmbed extends _0xf34f{['afterInit'](){const _0x1951f1=this['editor'];if(!_0x1951f1['plugins']['has']('MediaEmbedEditing'))return;const _0x14f426=_0x1951f1['plugins']['get']('TrackChangesEditing'),_0x820e3=_0x1951f1['locale'];_0x14f426['enableCommand']('mediaEmbed'),_0x14f426['descriptionFactory']['registerElementLabel']('media',_0x2a365f=>Tt(_0x820e3,'ELEMENT_MEDIA',_0x2a365f)),_0x1951f1['plugins']['has']('MediaEmbedResizeEditing')&&(_0x14f426['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x14f426['descriptionFactory']['registerDescriptionCallback'](_0x544a32=>{if('attribute'!=_0x544a32['type'])return;const {data:_0x29b906}=_0x544a32;if(!_0x29b906||'resizedWidth'!=_0x29b906['key'])return;const _0x57a461=_0x544a32['getContainedElement']();if(!_0x57a461||!_0x57a461['is']('element','media'))return;const _0x32ea78=Tt(_0x820e3,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Tt(_0x820e3,'*Set\x20format:*\x20%0',_0x32ea78)};}));}}class TrackChangesMediaEmbedStyle extends _0xf34f{['afterInit'](){const _0x1da5be=this['editor'];if(!_0x1da5be['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x222f6b=_0x1da5be['plugins']['get']('TrackChangesEditing'),_0x1bb7f4=_0x1da5be['locale'],_0x288cdc=_0x1da5be['plugins']['get']('MediaEmbedStyleEditing'),_0x1c50d6={};for(const _0x5ad4bb of _0x288cdc['normalizedStyles'])_0x1c50d6[_0x5ad4bb['name']]=_0x5ad4bb['title']['toLowerCase']();const _0x30a58d=_0x288cdc['normalizedStyles']['find'](_0x1e3f5d=>_0x1e3f5d['isDefault'])?.['name'];_0x222f6b['enableCommand']('mediaStyle',(_0x3fe3cf,_0x99abe5)=>{const _0x33a5ad=_0x1da5be['plugins']['get']('Users')['me'],_0x390afd=_0x1da5be['commands']['get']('mediaStyle'),_0x4b0492=function(_0x417c1f){const _0x4466e5=_0x417c1f['model']['document']['selection']['getSelectedElement']();if(_0x4466e5&&_0x4466e5['is']('element','media'))return _0x4466e5;return null;}(_0x1da5be);if(!_0x4b0492)return;const _0x4736d1=_0x1da5be['model']['createRangeOn'](_0x4b0492);let _0x3f195c=_0x390afd['value'];if(_0x3f195c==_0x99abe5['value'])return;const _0x483316={'commandName':'mediaStyle','commandParams':[_0x99abe5],'formatGroupId':_0x424839()};_0x1da5be['model']['change'](()=>{_0x222f6b['getSuggestions']()['filter'](_0x208c32=>_0x208c32['isInContent']&&_0x33a5ad==_0x208c32['author']&&'formatBlock'==_0x208c32['type']&&'mediaStylePostApply'==_0x208c32['subType']&&_0x208c32['getFirstRange']()['isEqual'](_0x4736d1))['forEach'](_0x57352d=>_0x222f6b['discardSuggestion'](_0x57352d['head'])),_0x390afd['refresh'](),_0x3f195c=_0x390afd['value'],_0x3f195c!=_0x99abe5['value']&&_0x222f6b['markBlockFormat'](_0x4b0492,{..._0x483316,'commandReversedParams':[{'value':'string'==typeof _0x3f195c?_0x3f195c:null}]},[],'mediaStylePostApply');});}),_0x222f6b['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x222f6b['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x5793ec,_0x57ddee)=>{_0x222f6b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5793ec,{'commandName':_0x57ddee['commandName'],'commandParams':_0x57ddee['commandReversedParams']});}),_0x222f6b['descriptionFactory']['registerDescriptionCallback'](_0x5a08e9=>{if('formatBlock'!=_0x5a08e9['type'])return;const {data:_0x3ee58e}=_0x5a08e9;if(!_0x3ee58e||'mediaStyle'!=_0x3ee58e['commandName'])return;const _0x13b047=_0x3ee58e['commandParams'][0x0]['value']||_0x30a58d;if(!_0x13b047)return;const _0x21ca58=_0x1c50d6[_0x13b047]||_0x13b047;return{'type':'format','content':Tt(_0x1bb7f4,'*Format:*\x20%0',_0x21ca58)};});}}class TrackChangesMention extends _0xf34f{['afterInit'](){const _0x1c5f2c=this['editor'];_0x1c5f2c['plugins']['has']('MentionEditing')&&_0x1c5f2c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class TrackChangesMergeFields extends _0xf34f{['afterInit'](){const _0x3bca24=this['editor'];if(!_0x3bca24['plugins']['has']('MergeFieldsEditing'))return;const _0x155a6b=_0x3bca24['plugins']['get']('TrackChangesEditing'),_0xc124c4=_0x3bca24['locale'];_0x155a6b['enableCommand']('insertMergeField'),_0x155a6b['enableCommand']('insertMergeFieldBlock'),_0x155a6b['enableCommand']('insertMergeFieldImage'),_0x155a6b['descriptionFactory']['registerElementLabel']('mergeField',_0x3c6a49=>Tt(_0xc124c4,'ELEMENT_MERGE_FIELD',_0x3c6a49)),_0x155a6b['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x68aba5=>Tt(_0xc124c4,'ELEMENT_MERGE_FIELD',_0x68aba5)),_0x155a6b['descriptionFactory']['registerDescriptionCallback'](_0x221921=>{if('insertion'!=_0x221921['type']&&'deletion'!=_0x221921['type'])return;const _0x41d753=_0x221921['getContainedElement']();if(null==_0x41d753)return;const _0x60def=_0x3bca24['plugins']['get']('MergeFieldsEditing');let _0x457935;switch(_0x60def['getMergeFieldType'](_0x41d753)){case null:return;case'image':{const _0x2cdeda=_0x60def['unwrapAffixes'](_0x41d753['getAttribute']('src'));_0x457935=_0x60def['getLabel'](_0x2cdeda)||_0x2cdeda;break;}default:{const _0x35447f=_0x41d753['getAttribute']('id');_0x457935=_0x60def['getLabel'](_0x35447f)||_0x35447f;break;}}return'insertion'==_0x221921['type']?{'type':'insertion','content':Tt(_0xc124c4,'*Insert:*\x20%0','\x22'+_0x457935+'\x22\x20'+Tt(_0xc124c4,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Tt(_0xc124c4,'*Remove:*\x20%0','\x22'+_0x457935+'\x22\x20'+Tt(_0xc124c4,'ELEMENT_MERGE_FIELD'))};});}}class TrackChangesMultiLevelList extends _0xf34f{['afterInit'](){const _0x243904=this['editor'],_0x2b47c2=_0x243904['plugins']['get']('TrackChangesEditing');_0x243904['plugins']['has']('MultiLevelList')&&(_0x2b47c2['enableDefaultAttributesIntegration']('multiLevelList'),_0x2b47c2['descriptionFactory']['registerDescriptionCallback'](_0x4037e0=>this['handleDescriptions'](_0x4037e0)));}['handleDescriptions'](_0x4c44fc){const _0x377a21=this['editor']['locale'],{data:_0x33aa73}=_0x4c44fc,_0x394502={'type':'format','content':''};if(_0x33aa73&&'listMarkerStyle'==_0x33aa73['key']){if(!_0x33aa73['oldValue'])return{'type':'format','content':Tt(_0x377a21,'*Set\x20format:*\x20%0',Tt(_0x377a21,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x33aa73['newValue']+')'};if(!_0x33aa73['newValue']){let _0x4c7c89=_0x4c44fc['head'];for(;_0x4c7c89;){if(_0x4c7c89['data']&&'listType'==_0x4c7c89['data']['key']&&_0x4c7c89['data']['newValue'])return _0x394502;_0x4c7c89=_0x4c7c89['next'];}return{'type':'format','content':Tt(_0x377a21,'*Remove\x20format:*\x20%0',Tt(_0x377a21,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x33aa73['oldValue']+')'};}}}}class TrackChangesPageBreak extends _0xf34f{['afterInit'](){const _0x296f02=this['editor'];if(!_0x296f02['plugins']['has']('PageBreakEditing'))return;_0x296f02['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x39c358=_0x296f02['plugins']['get']('TrackChangesEditing'),_0x287697=_0x296f02['locale'];_0x39c358['descriptionFactory']['registerElementLabel']('pageBreak',_0x5e56d4=>Tt(_0x287697,'ELEMENT_PAGE_BREAK',_0x5e56d4));}}class TrackChangesParagraph extends _0xf34f{['afterInit'](){const _0x48e3f9=this['editor'];if(!_0x48e3f9['plugins']['has']('Paragraph'))return;const _0x48007c=_0x48e3f9['locale'],_0x572283=_0x48e3f9['plugins']['get']('TrackChangesEditing');_0x572283['descriptionFactory']['registerElementLabel']('paragraph',_0x38098b=>Tt(_0x48007c,'ELEMENT_PARAGRAPH',_0x38098b)),_0x572283['enableDefaultAttributesIntegration']('paragraph'),_0x572283['enableCommand']('insertParagraph');const _0x1bbe81=_0x572283['descriptionFactory'];_0x1bbe81['registerDescriptionCallback'](_0x4780cc=>{if('insertion'!==_0x4780cc['type'])return;const {start:_0x55bcd1,end:_0x2d7d6a}=_0x4780cc['getFirstRange']();if(!_0x55bcd1['isTouching'](_0x2d7d6a)||!_0x55bcd1['nodeAfter'])return;const _0x488214=_0x48e3f9['model']['schema'],_0x56db87=_0x55bcd1['nodeAfter'];return _0x488214['isBlock'](_0x56db87)&&!_0x488214['isLimit'](_0x56db87)&&_0x488214['checkChild'](_0x56db87,'$text')?{'type':'insertion','content':Tt(_0x48007c,'*Insert:*\x20%0',_0x1bbe81['getItemLabel'](_0x56db87,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2bf541=this['editor'],_0x38b864=_0x2bf541['locale'];_0x2bf541['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc6da20=>{if('formatBlock'!=_0xc6da20['type'])return;const {data:_0xb3ef8d}=_0xc6da20;return _0xb3ef8d&&'paragraph'==_0xb3ef8d['commandName']?{'type':'format','content':Tt(_0x38b864,'*Change\x20to:*\x20%0',Tt(_0x38b864,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class TrackChangesReplaceSourceCommand extends _0xf34f{['afterInit'](){const _0x3ed49c=this['editor'];_0x3ed49c['commands']['get']('replaceSource')&&_0x3ed49c['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class TrackChangesRemoveFormat extends _0xf34f{['afterInit'](){const _0x51f847=this['editor'];if(!_0x51f847['plugins']['has']('RemoveFormatEditing'))return;_0x51f847['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51ce5c=this['editor'];_0x51ce5c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xde0731=>{if('formatBlock'!=_0xde0731['type']&&'formatInline'!=_0xde0731['type'])return;const {data:_0x5d9222}=_0xde0731;return _0x5d9222&&'removeFormat'==_0x5d9222['commandName']?{'type':'format','content':Tt(_0x51ce5c['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class TrackChangesRestrictedEditingMode extends _0xf34f{['afterInit'](){const _0x2f33fd=this['editor'];if(!_0x2f33fd['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4a2e8c=_0x2f33fd['plugins']['get']('TrackChangesEditing');_0x4a2e8c['enableCommand']('goToPreviousRestrictedEditingException'),_0x4a2e8c['enableCommand']('goToNextRestrictedEditingException');const _0x95d111=_0x2f33fd['plugins']['get']('RestrictedEditingModeEditing');_0x95d111['enableCommand']('trackChanges'),_0x95d111['enableCommand']('acceptSuggestion'),_0x95d111['enableCommand']('discardSuggestion'),_0x95d111['enableCommand']('acceptAllSuggestions'),_0x95d111['enableCommand']('discardAllSuggestions'),_0x95d111['enableCommand']('acceptSelectedSuggestions'),_0x95d111['enableCommand']('discardSelectedSuggestions');}}class TrackChangesShiftEnterCommand extends _0xf34f{['afterInit'](){const _0x42cfc4=this['editor'];if(!_0x42cfc4['plugins']['has']('ShiftEnter'))return;const _0x215fca=_0x42cfc4['plugins']['get']('TrackChangesEditing');_0x215fca['enableCommand']('shiftEnter'),_0x215fca['descriptionFactory']['registerElementLabel']('softBreak',_0x193871=>Tt(_0x42cfc4['locale'],'ELEMENT_LINE_BREAK',_0x193871));}}function yt(_0x3dd822,_0x2237af,_0x583468){const _0x2886ab=[];for(const _0x3fc63a of _0x2237af['getItems']())_0x3fc63a['hasAttribute'](_0x3dd822)&&_0x2886ab['push'](_0x583468['createRangeOn'](_0x3fc63a));return _0x2886ab;}class TrackChangesStandardEditingMode extends _0xf34f{['afterInit'](){const _0x1f4467=this['editor'],_0x14e2a0=_0x1f4467['plugins']['get']('TrackChangesEditing');_0x1f4467['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x14e2a0['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x51b880=this['editor'],_0x3a1ee7=_0x51b880['model'],_0xa52a0c=_0x51b880['locale'],_0x4823d1=_0x51b880['plugins']['get']('TrackChangesEditing'),_0x581865='restrictedEditingException',_0x1ba074=_0x51b880['commands']['get'](_0x581865);_0x4823d1['enableCommand'](_0x581865,(_0x16d5e5,_0x1e02b5={})=>{const _0x30699a=_0x3a1ee7['document']['selection'];if(_0x30699a['isCollapsed'])return void _0x16d5e5(_0x1e02b5);const _0x1ecd11=void 0x0!==_0x1e02b5['forceValue']?_0x1e02b5['forceValue']:!_0x1ba074['value'];_0x3a1ee7['change'](()=>{const _0x39dbda=Array['from'](_0x30699a['getRanges']());for(const _0x5a3b40 of _0x39dbda){const _0x42685c=_0x1ecd11?[_0x5a3b40]:yt(_0x581865,_0x5a3b40,_0x3a1ee7);for(const _0x2144ba of _0x42685c)_0x4823d1['markInlineFormat'](_0x2144ba,{'commandName':_0x581865,'commandParams':[{'forceValue':_0x1ecd11}]});}});}),_0x4823d1['descriptionFactory']['registerDescriptionCallback'](_0x4c2d8f=>{if('formatBlock'!=_0x4c2d8f['type']&&'formatInline'!=_0x4c2d8f['type'])return;const {data:_0x3c2857}=_0x4c2d8f;return _0x3c2857&&_0x3c2857['commandName']==_0x581865?_0x3c2857['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0xa52a0c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Tt(_0xa52a0c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x89fe2f=this['editor'],_0x4bb4ac=_0x89fe2f['locale'],_0x4b390b=_0x89fe2f['plugins']['get']('TrackChangesEditing'),_0x264e7e='restrictedEditingExceptionBlock',_0x1c4da5=this['editor']['commands']['get'](_0x264e7e);_0x4b390b['enableCommand'](_0x264e7e,(_0x496971,_0x54b3a1={})=>{const _0x243f2d=this['editor']['model']['document']['selection'],_0xe0a487=_0x54b3a1&&void 0x0!==_0x54b3a1['forceValue']?_0x54b3a1['forceValue']:!_0x1c4da5['value'];let _0x4f6a22=[];if(_0xe0a487){const _0x3c7547=Array['from'](_0x243f2d['getSelectedBlocks']())['filter'](_0x468d37=>function(_0x4a7c88){return!!_0x4a7c88['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x468d37)||function(_0x257952,_0x5c439b){const _0x1abca3=_0x5c439b['createContext'](_0x257952['parent']);if(!_0x5c439b['checkChild'](_0x1abca3,'restrictedEditingException'))return!0x1;if(!_0x5c439b['checkChild'](_0x1abca3['push']('restrictedEditingException'),_0x257952))return!0x1;return!0x0;}(_0x468d37,this['editor']['model']['schema']));_0x4f6a22=ft(_0x3c7547,_0x89fe2f['model']);}else{const _0x46d271=Array['from'](_0x243f2d['getSelectedBlocks']())['map'](_0x1ab00c=>function(_0x5906fd){let _0x2f14c7=_0x5906fd;for(;_0x2f14c7['parent'];){if('restrictedEditingException'==_0x2f14c7['parent']['name'])return _0x2f14c7;_0x2f14c7=_0x2f14c7['parent'];}return null;}(_0x1ab00c))['filter'](_0x57b359=>!!_0x57b359);_0x4f6a22=ft(_0x46d271,_0x89fe2f['model']);}_0x89fe2f['model']['change'](()=>{for(const _0x4d4e06 of _0x4f6a22)_0x4b390b['markBlockFormat'](_0x4d4e06,{'commandName':_0x264e7e,'commandParams':[{'forceValue':_0xe0a487}]});});}),_0x4b390b['descriptionFactory']['registerDescriptionCallback'](_0x5645c6=>{const {data:_0x13ff8a}=_0x5645c6;if(_0x13ff8a&&_0x13ff8a['commandName']==_0x264e7e)return _0x13ff8a['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x4bb4ac,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Tt(_0x4bb4ac,'FORMAT_RESTRICTED_DISABLED')};});}}class TrackChangesStylesDropdown extends _0xf34f{['afterInit'](){const _0x55c4f0=this['editor'];if(!_0x55c4f0['plugins']['has']('Style')||!_0x55c4f0['plugins']['has']('DataSchema'))return;_0x55c4f0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x345607=this['editor'],_0x1a9565=_0x345607['locale'];_0x345607['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30bfa5=>{if('formatBlock'!=_0x30bfa5['type']&&'formatInline'!=_0x30bfa5['type'])return;const {data:_0x28e2e8}=_0x30bfa5;return _0x28e2e8&&'style'===_0x28e2e8['commandName']?_0x28e2e8['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x1a9565,'*Set\x20format:*\x20%0',_0x28e2e8['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Tt(_0x1a9565,'*Remove\x20format:*\x20%0',_0x28e2e8['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class TrackChangesTable extends _0xf34f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1f0e07){super(_0x1f0e07),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x374834=this['editor'],_0x98685f=_0x374834['model']['document']['selection'];if(!_0x374834['plugins']['has']('TableEditing'))return;const _0x3e0639=_0x374834['locale'],_0x1fe2a3=_0x374834['plugins']['get']('TrackChangesEditing'),_0x40f8d8=_0x374834['plugins']['get']('TableUtils');_0x1fe2a3['descriptionFactory']['registerElementLabel']('table',_0x59ed0e=>Tt(_0x3e0639,'ELEMENT_TABLE',_0x59ed0e)),this['_setupColumnsRowsFixing'](),_0x1fe2a3['enableCommand']('insertTable'),_0x1fe2a3['enableCommand']('selectTableRow'),_0x1fe2a3['enableCommand']('selectTableColumn');for(const _0x4cbaba of['insertTableRowAbove','insertTableRowBelow']){const _0x3d512d=_0x374834['commands']['get'](_0x4cbaba);_0x1fe2a3['enableCommand'](_0x4cbaba,_0x10773a=>{_0x374834['model']['change'](_0xada63f=>{_0x10773a();const _0x40e4da='above'===_0x3d512d['order'],_0x5abf38=_0x40f8d8['getSelectionAffectedTableCells'](_0x98685f),_0x5915a0=_0x40f8d8['getRowIndexes'](_0x5abf38),_0x41afea=_0x40e4da?_0x5915a0['first']-0x1:_0x5915a0['last']+0x1,_0x4c4066=_0x5abf38[0x0]['findAncestor']('table'),_0x1954ce=_0x40f8d8['createTableWalker'](_0x4c4066,{'startRow':_0x41afea,'endRow':_0x41afea}),_0xe70ee8=Array['from'](_0x1954ce)['map'](_0x45e895=>_0xada63f['createRangeOn'](_0x45e895['cell']));_0x1fe2a3['markMultiRangeInsertion'](_0xe70ee8,'tableRow');});});}for(const _0x43e2ed of['insertTableColumnLeft','insertTableColumnRight']){const _0x24b7db=_0x374834['commands']['get'](_0x43e2ed);_0x1fe2a3['enableCommand'](_0x43e2ed,_0x37dd40=>{_0x374834['model']['change'](_0xc309a0=>{_0x37dd40();const _0xffc241='left'===_0x24b7db['order'],_0x2012af=_0x40f8d8['getSelectionAffectedTableCells'](_0x98685f),_0x314836=_0x40f8d8['getColumnIndexes'](_0x2012af),_0x3662fb=_0xffc241?_0x314836['first']-0x1:_0x314836['last']+0x1,_0x2df412=_0x2012af[0x0]['findAncestor']('table'),_0x3754d4=_0x40f8d8['createTableWalker'](_0x2df412,{'startRow':0x0,'column':_0x3662fb,'includeAllSlots':!0x1}),_0xed87b8=Array['from'](_0x3754d4)['map'](_0x229880=>_0xc309a0['createRangeOn'](_0x229880['cell']));_0x1fe2a3['markMultiRangeInsertion'](_0xed87b8,'tableColumn');});});}for(const _0x4fb5b7 of['removeTableRow','removeTableColumn']){const _0x1bc317=_0x4fb5b7['substr'](0xb),_0x460fa2=_0x1bc317['toLowerCase'](),_0x31cf5c=_0x460fa2['substr'](0x0,0x3)+'span',_0x3d5381='table'+_0x1bc317,_0xdf7d2='min'+_0x1bc317,_0x44a2dc='max'+_0x1bc317;_0x1fe2a3['enableCommand'](_0x4fb5b7,()=>{_0x374834['model']['change'](_0x11e0e6=>{const _0x5d912e=_0x40f8d8['getSelectionAffectedTableCells'](_0x98685f),_0x935e20=_0x5d912e[0x0]['findAncestor']('table');let _0xacd093;if('removeTableRow'==_0x4fb5b7){const _0x3fbf51=_0x40f8d8['getRowIndexes'](_0x5d912e);_0xacd093={'startRow':_0x3fbf51['first'],'endRow':_0x3fbf51['last'],'includeAllSlots':!0x0};}else{const _0x5a1857=_0x40f8d8['getColumnIndexes'](_0x5d912e);_0xacd093={'startColumn':_0x5a1857['first'],'endColumn':_0x5a1857['last'],'includeAllSlots':!0x0};}const _0x3c72ab=_0x40f8d8['createTableWalker'](_0x935e20,_0xacd093),_0x128c5d=Array['from'](_0x3c72ab)['map'](({cell:_0x4cad8e})=>_0x4cad8e),_0x1562b1=Nt(_0x128c5d['filter'](_0x23fc5e=>_0x23fc5e['hasAttribute'](_0x31cf5c))),_0x40e49c=Nt(_0x128c5d['filter'](_0x10d017=>!_0x10d017['hasAttribute'](_0x31cf5c)))['map'](_0x21f929=>_0x11e0e6['createRangeOn'](_0x21f929)),_0x2f678d=_0x1fe2a3['markMultiRangeDeletion'](_0x40e49c,_0x3d5381);if(_0x2f678d&&('tableRow'==_0x2f678d['subType']||'tableColumn'==_0x2f678d['subType'])){const _0x532cd4=this['_getSuggestionCoords'](_0x2f678d);for(const _0x1d9cb4 of _0x1562b1){const _0x44a20b=_0x11e0e6['createRangeOn'](_0x1d9cb4),_0x2df329=_0x40f8d8['getCellLocation'](_0x1d9cb4),_0x3cd8eb=_0x1d9cb4['getAttribute'](_0x31cf5c)-0x1,_0x1f8538=_0x532cd4[_0xdf7d2],_0x3ea4be=_0x532cd4[_0x44a2dc];_0x1f8538<=_0x2df329[_0x460fa2]&&_0x2df329[_0x460fa2]+_0x3cd8eb<=_0x3ea4be&&_0x2f678d['addRange'](_0x44a20b);}}});});}function _0x5ae614(_0x1cdc61){const _0x19c2f5=Array['from'](_0x98685f['getRanges']())['map'](_0x1e82df=>_0xe62106['fromRange'](_0x1e82df));_0x374834['model']['change'](_0x391d16=>{const _0x45e51f=_0x391d16['batch'];_0x1cdc61=_0x1cdc61['filter'](_0x1da474=>'$graveyard'!=_0x1da474['root']['rootName']),_0x391d16['setSelection'](_0x1cdc61),_0x374834['commands']['get']('removeTableRow')['refresh'](),_0x374834['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x374834['model']['enqueueChange'](()=>{_0x374834['model']['enqueueChange'](_0x45e51f,_0x324f2d=>{const _0x2d105f=_0x19c2f5['filter'](_0xf2bcc7=>'$graveyard'!=_0xf2bcc7['root']['rootName']);_0x2d105f['length']>0x0&&_0x324f2d['setSelection'](_0x2d105f);for(const _0x54d4ee of _0x19c2f5)_0x54d4ee['detach']();});});});}function _0x20128d(_0xb93268){_0x374834['model']['change'](_0x5408a0=>{const _0x540b8c=Array['from'](_0x98685f['getRanges']())['map'](_0x23775a=>_0xe62106['fromRange'](_0x23775a)),_0x203f17=[];for(const _0x38444e of _0xb93268)for(const _0x14d787 of _0x38444e['getItems']({'shallow':!0x0}))_0x203f17['push'](_0x14d787);for(const _0x37fc08 of _0x203f17)'$graveyard'!=_0x37fc08['root']['rootName']&&(_0x5408a0['setSelection'](_0x5408a0['createPositionAt'](_0x37fc08,0x0)),_0x374834['commands']['get']('removeTableColumn')['refresh'](),_0x374834['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x13be65=_0x540b8c['filter'](_0x5481b8=>'$graveyard'!=_0x5481b8['root']['rootName']);_0x13be65['length']>0x0&&_0x5408a0['setSelection'](_0x13be65);for(const _0x3c860b of _0x540b8c)_0x3c860b['detach']();});}function _0x2f9ebc(_0x587b06,_0x379a7c){return _0x379a7c['every'](_0x6bf219=>_0x587b06['some'](_0x2b4cf4=>_0x2b4cf4['end']['isEqual'](_0x6bf219['start'])||_0x6bf219['end']['isEqual'](_0x2b4cf4['start'])));}function _0x242f9d(_0x35ea13,_0x378ae9){return!_0x35ea13['some'](_0x3bc5f6=>_0x378ae9['some'](_0x5948fa=>_0x3bc5f6['isIntersecting'](_0x5948fa)))&&_0x35ea13['some'](_0x6c698c=>_0x378ae9['some'](_0x19db0b=>_0x6c698c['end']['isTouching'](_0x19db0b['start'])));}_0x1fe2a3['descriptionFactory']['registerDescriptionCallback'](_0x148473=>{if('insertion'!=_0x148473['type']&&'deletion'!=_0x148473['type'])return;const _0x17769b=_0x148473['getContainedElement']();if(null!=_0x17769b&&_0x17769b['is']('element','table')){if('insertion'==_0x148473['type']){const _0x408bc5=_0x148473['getItems']()['filter'](_0x221dd9=>_0x221dd9['is']('$textProxy'))['map'](_0x4bfbc2=>_0x4bfbc2['data']);if(_0x408bc5['length'])return{'type':'insertion','content':Tt(_0x3e0639,'*Insert:*\x20%0',Tt(_0x3e0639,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x408bc5['join']('\x20')+'\x22'))};}if('deletion'==_0x148473['type']){const _0xc8dc7f=_0x148473['getItems']()['filter'](_0x124ab9=>_0x124ab9['is']('$textProxy'))['map'](_0x3e7294=>_0x3e7294['data']);if(_0xc8dc7f['length'])return{'type':'deletion','content':Tt(_0x3e0639,'*Remove:*\x20%0',Tt(_0x3e0639,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xc8dc7f['join']('\x20')+'\x22'))};}}}),_0x1fe2a3['descriptionFactory']['registerDescriptionCallback'](_0x5931f0=>{if('tableRow'==_0x5931f0['subType']){const _0xb95df0=_0x5931f0['getItems']()['filter'](_0x586cfb=>_0x586cfb['is']('$textProxy'))['map'](_0x48c323=>_0x48c323['data']),_0x4ae8a8=this['_getSuggestionCoords'](_0x5931f0),_0x145c9c=_0x4ae8a8['maxRow']-_0x4ae8a8['minRow']+0x1;if('insertion'==_0x5931f0['type'])return _0xb95df0['length']?{'type':'insertion','content':Tt(_0x3e0639,'*Insert:*\x20%0',Tt(_0x3e0639,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x145c9c,'\x22'+_0xb95df0['join']('\x20')+'\x22']))}:{'type':'insertion','content':Tt(_0x3e0639,'*Insert:*\x20%0',Tt(_0x3e0639,'ELEMENT_TABLE_ROW',_0x145c9c))};if('deletion'==_0x5931f0['type'])return _0xb95df0['length']?{'type':'deletion','content':Tt(_0x3e0639,'*Remove:*\x20%0',Tt(_0x3e0639,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x145c9c,'\x22'+_0xb95df0['join']('\x20')+'\x22']))}:{'type':'deletion','content':Tt(_0x3e0639,'*Remove:*\x20%0',Tt(_0x3e0639,'ELEMENT_TABLE_ROW',_0x145c9c))};}if('tableColumn'==_0x5931f0['subType']){const _0x234835=_0x5931f0['getItems']()['filter'](_0x116dcb=>_0x116dcb['is']('$textProxy'))['map'](_0x5cfe79=>_0x5cfe79['data']),_0x9ae263=this['_getSuggestionCoords'](_0x5931f0),_0x2363c3=_0x9ae263['maxColumn']-_0x9ae263['minColumn']+0x1;if('insertion'==_0x5931f0['type'])return _0x234835['length']?{'type':'insertion','content':Tt(_0x3e0639,'*Insert:*\x20%0',Tt(_0x3e0639,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2363c3,'\x22'+_0x234835['join']('\x20')+'\x22']))}:{'type':'insertion','content':Tt(_0x3e0639,'*Insert:*\x20%0',Tt(_0x3e0639,'ELEMENT_TABLE_COLUMN',_0x2363c3))};if('deletion'==_0x5931f0['type'])return _0x234835['length']?{'type':'deletion','content':Tt(_0x3e0639,'*Remove:*\x20%0',Tt(_0x3e0639,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2363c3,'\x22'+_0x234835['join']('\x20')+'\x22']))}:{'type':'deletion','content':Tt(_0x3e0639,'*Remove:*\x20%0',Tt(_0x3e0639,'ELEMENT_TABLE_COLUMN',_0x2363c3))};}}),_0x1fe2a3['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5ae614),_0x1fe2a3['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5ae614),_0x1fe2a3['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x20128d),_0x1fe2a3['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x20128d),_0x1fe2a3['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2f9ebc),_0x1fe2a3['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2f9ebc),_0x1fe2a3['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x242f9d),_0x1fe2a3['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x242f9d);}['_acceptFormatSuggestionCallbackFactory'](){const _0x179d1e=this['editor'],_0x1f59ed=_0x179d1e['model']['document']['selection'];return(_0x322b40,_0x3868d8)=>{_0x179d1e['model']['change'](_0x79c151=>{const {commandName:_0x436f49,commandParams:_0x42bbd3}=_0x3868d8;let _0x2fc48d=_0x322b40[0x0]['end']['nodeBefore'];_0x42bbd3&&_0x42bbd3[0x0]&&!0x1===_0x42bbd3[0x0]['forceValue']&&(_0x2fc48d=_0x322b40[0x0]['start']['nodeAfter']);const _0x53ee61=_0x79c151['createRangeIn'](_0x2fc48d);if('$graveyard'==_0x53ee61['root']['rootName'])return;const _0x356e47=Array['from'](_0x1f59ed['getRanges']())['map'](_0x2c77cf=>_0xe62106['fromRange'](_0x2c77cf));_0x79c151['setSelection'](_0x53ee61),_0x179d1e['commands']['get'](_0x436f49)['refresh'](),_0x42bbd3['push']({'forceDefaultExecution':!0x0}),_0x179d1e['execute'](_0x436f49,..._0x42bbd3);const _0x3f36c5=_0x356e47['filter'](_0x30181e=>'$graveyard'!=_0x30181e['root']['rootName']);_0x3f36c5['length']>0x0&&_0x79c151['setSelection'](_0x3f36c5);for(const _0xb67d42 of _0x356e47)_0xb67d42['detach']();});};}['_getCoordsForCells'](_0x28aeb0){const _0x39aa5a=this['editor']['plugins']['get']('TableUtils');let _0x14f966=Number['MAX_SAFE_INTEGER'],_0x3cc424=Number['MIN_SAFE_INTEGER'],_0x5ba574=Number['MAX_SAFE_INTEGER'],_0x3af6b9=Number['MIN_SAFE_INTEGER'];for(const _0x67c726 of _0x28aeb0){if('$graveyard'==_0x67c726['root']['rootName'])continue;const {row:_0x144cbf,column:_0x5bae8f}=_0x39aa5a['getCellLocation'](_0x67c726),_0x4663fd=_0x67c726['hasAttribute']('rowspan')?_0x67c726['getAttribute']('rowspan')-0x1:0x0,_0x33c520=_0x67c726['hasAttribute']('colspan')?_0x67c726['getAttribute']('colspan')-0x1:0x0;_0x14f966=_0x144cbf<_0x14f966?_0x144cbf:_0x14f966,_0x3cc424=_0x144cbf+_0x4663fd>_0x3cc424?_0x144cbf+_0x4663fd:_0x3cc424,_0x5ba574=_0x5bae8f<_0x5ba574?_0x5bae8f:_0x5ba574,_0x3af6b9=_0x5bae8f+_0x33c520>_0x3af6b9?_0x5bae8f+_0x33c520:_0x3af6b9;}return{'minRow':_0x14f966,'maxRow':_0x3cc424,'minColumn':_0x5ba574,'maxColumn':_0x3af6b9};}['_setupColumnsRowsFixing'](){const _0x30b1ce=this['editor'],_0x57bd33=_0x30b1ce['plugins']['get']('TrackChangesEditing'),_0x1bb85e=_0x30b1ce['plugins']['get']('TableUtils');_0x30b1ce['model']['document']['on']('change:data',()=>{const _0x40d887=Array['from'](_0x30b1ce['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x438ab4,data:_0x2bd9db}of _0x40d887){const {group:_0x1fba0a,id:_0x4278f0,subType:_0xb2c2c3}=_0x3647dc(_0x438ab4);if('suggestion'!=_0x1fba0a)continue;if(null!=_0x2bd9db['oldRange'])continue;const _0x36920a=_0x57bd33['getSuggestion'](_0x4278f0);this['_tablePostFixingSubtypes']['includes'](_0xb2c2c3)&&this['_tableSuggestions']['add'](_0x36920a);}},{'priority':'low'});const _0x18d170=(_0x8bd5d1,_0x4504d2)=>{let _0xb7fe8a=!0x1;const _0x53a1d0=_0x4504d2['createRangeOn'](_0x8bd5d1),_0x4323d6=_0x8bd5d1['findAncestor']('table'),_0x5c84c9=_0x1bb85e['getCellLocation'](_0x8bd5d1);for(const _0xf4f3ef of this['_tableSuggestions']){const _0x1e37a6=_0xf4f3ef['subType'],_0x2186c9=_0x1e37a6['startsWith']('tablePaste'),_0x26741d=_0x1e37a6['substr'](_0x2186c9?0xa:0x5),_0x4f541f=_0x26741d['toLowerCase'](),_0x3407e7=_0x4f541f['substr'](0x0,0x3)+'span',_0x221311='min'+_0x26741d,_0x56c89d='max'+_0x26741d;if(!_0xf4f3ef['isInContent'])continue;if(_0x4323d6!=_0xf4f3ef['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xf4f3ef['isIntersectingWithRange'](_0x53a1d0))continue;const _0x576874=_0x8bd5d1['hasAttribute'](_0x3407e7)?_0x8bd5d1['getAttribute'](_0x3407e7)-0x1:0x0,_0x3aeeab=this['_getSuggestionCoords'](_0xf4f3ef),_0x2621f1=_0x3aeeab[_0x221311],_0xcfb7b0=_0x3aeeab[_0x56c89d];_0x2621f1<=_0x5c84c9[_0x4f541f]&&_0x5c84c9[_0x4f541f]+_0x576874<=_0xcfb7b0&&(_0xf4f3ef['addRange'](_0x53a1d0),_0xb7fe8a=!0x0);}return _0xb7fe8a;};_0x30b1ce['model']['document']['registerPostFixer'](_0x331255=>{let _0x4ec95a=!0x1;for(const _0x5a4916 of _0x30b1ce['model']['document']['differ']['getChanges']())if('insert'==_0x5a4916['type']){if('tableRow'==_0x5a4916['name']){for(const _0x3a8aae of _0x5a4916['position']['nodeAfter']['getChildren']())_0x4ec95a=_0x4ec95a||_0x18d170(_0x3a8aae,_0x331255);}else'tableCell'==_0x5a4916['name']&&(_0x4ec95a=_0x4ec95a||_0x18d170(_0x5a4916['position']['nodeAfter'],_0x331255));}return _0x4ec95a;});}['_getSuggestionCoords'](_0x233db0){return this['_getCoordsForCells'](_0x233db0['getRanges']()['map'](_0x100b11=>_0x100b11['start']['nodeAfter']));}}function Nt(_0xf0a3b3){return Array['from'](new Set(_0xf0a3b3)['values']());}class TrackChangesTableMergeSplit extends _0xf34f{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x9243d7=this['editor'],_0xc82a9a=_0x9243d7['model']['document']['selection'],_0x3d4a19=_0x9243d7['locale'];if(!_0x9243d7['plugins']['has']('TableEditing'))return;const _0x2b3d8b=_0x9243d7['plugins']['get']('TrackChangesEditing'),_0x5b3374=_0x9243d7['plugins']['get']('TableUtils'),_0x4ee6f6=_0x9243d7['plugins']['get'](TrackChangesTable);_0x4ee6f6['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2b3d8b['enableCommand']('mergeTableCells',()=>{const _0x44120f=_0x5b3374['getSelectionAffectedTableCells'](_0x9243d7['model']['document']['selection']);_0x9243d7['model']['change'](()=>{_0x2b3d8b['markMultiRangeBlockFormat'](_0x44120f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x9243d7['commands']['get']('mergeTableCells')['on']('execute',(_0x2f27d7,_0x2a2eca)=>{_0x9243d7['commands']['get']('trackChanges')['value']&&(_0x2a2eca['length']>0x0&&_0x2a2eca[_0x2a2eca['length']-0x1]&&_0x2a2eca[_0x2a2eca['length']-0x1]['forceDefaultExecution']||_0x2b3d8b['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2f27d7['stop']());},{'priority':'highest'});for(const _0x2f47e7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xaa9126=_0x9243d7['commands']['get'](_0x2f47e7);_0x2b3d8b['enableCommand'](_0x2f47e7,()=>{const _0x343848=_0x9243d7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x487fa5=>_0x487fa5['is']('element','tableCell')),_0x48d665=_0xaa9126['value'];_0x9243d7['model']['change'](()=>{_0x2b3d8b['markMultiRangeBlockFormat']([_0x343848,_0x48d665],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4c9fef of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4540cc=_0x9243d7['commands']['get'](_0x4c9fef);_0x2b3d8b['enableCommand'](_0x4c9fef,()=>{const _0x1d1f77=_0x5b3374['getSelectionAffectedTableCells'](_0x9243d7['model']['document']['selection'])[0x0],_0x563920=_0x1d1f77['findAncestor']('table'),{column:_0x2d9e26,row:_0x320f35}=_0x5b3374['getCellLocation'](_0x1d1f77);let _0x3d6ea6=[];if('horizontally'==_0x4540cc['direction']){const _0x1dc92a=_0x5b3374['createTableWalker'](_0x563920,{'startRow':_0x320f35,'endRow':_0x320f35,'includeAllSlots':!0x0});_0x3d6ea6=Array['from'](_0x1dc92a)['map'](_0x1ca485=>_0x1ca485['cell']);}else{const _0x1a1ddd=_0x5b3374['createTableWalker'](_0x563920,{'column':_0x2d9e26,'includeAllSlots':!0x0});_0x3d6ea6=Array['from'](_0x1a1ddd)['map'](_0x26ef5c=>_0x26ef5c['cell']);}_0x9243d7['model']['change'](_0x1c1c80=>{_0x2b3d8b['markBlockFormat'](_0x1c1c80['createRangeOn'](_0x1d1f77),{'commandName':_0x4c9fef,'commandParams':[]},_0x3d6ea6,_0x4c9fef);});});}_0x2b3d8b['descriptionFactory']['registerDescriptionCallback'](_0xfabca3=>{if('formatBlock'!=_0xfabca3['type']&&'formatInline'!=_0xfabca3['type'])return;const {data:_0x5466f5}=_0xfabca3;return _0x5466f5&&'mergeTableCells'==_0x5466f5['commandName']?{'type':'format','content':Tt(_0x3d4a19,'*Merge\x20cells*')}:void 0x0;}),_0x2b3d8b['descriptionFactory']['registerDescriptionCallback'](_0x5b60c4=>{if('formatBlock'!=_0x5b60c4['type']&&'formatInline'!=_0x5b60c4['type'])return;const {data:_0x802d14}=_0x5b60c4;return _0x802d14?'splitTableCellVertically'==_0x802d14['commandName']?{'type':'format','content':Tt(_0x3d4a19,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x802d14['commandName']?{'type':'format','content':Tt(_0x3d4a19,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4ea7b0=_0x4ee6f6['_acceptFormatSuggestionCallbackFactory']();for(const _0xa361f5 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2b3d8b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xa361f5,'accept',_0x4ea7b0);for(const _0x266f93 of['splitTableCellVertically','splitTableCellHorizontally'])_0x2b3d8b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x266f93,'accept',_0x4ea7b0);_0x2b3d8b['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x130eb3=>{_0x9243d7['model']['change'](_0x2f8e01=>{const _0x21b379=Array['from'](_0xc82a9a['getRanges']())['map'](_0x831e61=>_0xe62106['fromRange'](_0x831e61));_0x2f8e01['setSelection'](_0x130eb3),_0x9243d7['commands']['get']('mergeTableCells')['refresh'](),_0x9243d7['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5e09fe=_0x21b379['filter'](_0x39bab7=>'$graveyard'!=_0x39bab7['root']['rootName']);_0x5e09fe['length']>0x0&&_0x2f8e01['setSelection'](_0x5e09fe);for(const _0x524395 of _0x21b379)_0x524395['detach']();});});for(const _0x4aef3a of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x417f22=_0x9243d7['commands']['get'](_0x4aef3a);_0x417f22['on']('set:isEnabled',(_0x1f1355,_0x5d554f,_0x71319d)=>{if(_0x71319d){const _0x52a8f0=_0x9243d7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4900e6=>_0x4900e6['is']('element','tableCell'));this['_areMergableCells'](_0x417f22['value'],_0x52a8f0)||(_0x1f1355['return']=!0x1,_0x1f1355['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x23c44c=this['editor']['commands']['get']('mergeTableCells'),_0x117bf2=this['editor']['plugins']['get']('TableUtils');if(!_0x23c44c['isEnabled'])return!0x1;const _0x5f91e=_0x117bf2['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x189c17 of _0x5f91e)for(const _0x2e902a of _0x5f91e)if(_0x189c17!=_0x2e902a&&!this['_areMergableCells'](_0x189c17,_0x2e902a))return!0x1;return!0x0;}['_areMergableCells'](_0x48e048,_0x5e458c){const _0x10f2a7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b1da3=this['editor']['model']['createRangeOn'](_0x48e048),_0xb017b8=this['editor']['model']['createRangeOn'](_0x5e458c),_0xea813a=new Set(),_0x4285e6=new Set();for(const _0x2134be of _0x10f2a7['getSuggestions']())if(('insertion'==_0x2134be['type']||'deletion'==_0x2134be['type']||'mergeTableCells'==_0x2134be['subType'])&&_0x2134be['isInContent']){for(const _0x446f0c of _0x2134be['getRanges']())_0x446f0c['containsRange'](_0x4b1da3,!0x0)&&_0xea813a['add'](_0x2134be['type']+':'+_0x2134be['author']['id']),_0x446f0c['containsRange'](_0xb017b8,!0x0)&&_0x4285e6['add'](_0x2134be['type']+':'+_0x2134be['author']['id']);}if(_0xea813a['size']!=_0x4285e6['size'])return!0x1;for(const _0x447b5b of _0xea813a)if(!_0x4285e6['has'](_0x447b5b))return!0x1;return!0x0;}}class TrackChangesTableHeadings extends _0xf34f{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x12103b=this['editor'];if(!_0x12103b['plugins']['has']('TableEditing'))return;const _0x5584b5=_0x12103b['locale'],_0x14f7d3=_0x12103b['plugins']['get']('TrackChangesEditing');_0x14f7d3['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x14f7d3['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x14f7d3['descriptionFactory']['registerAttributeLabel']('headingRows',Tt(_0x5584b5,'FORMAT_HEADER_ROW')),_0x14f7d3['descriptionFactory']['registerAttributeLabel']('headingColumns',Tt(_0x5584b5,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3bead7=this['editor']['plugins']['get']('TrackChangesEditing'),_0xbc3a43=this['editor']['plugins']['get'](TrackChangesTable)['_acceptFormatSuggestionCallbackFactory']();_0x3bead7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xbc3a43),_0x3bead7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xbc3a43),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x23fd1e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e9b6b=this['editor']['plugins']['get']('TableUtils');function _0x4922d3({showActiveMarker:_0x1030d9=!0x0,setDataAttribute:_0x4f5b76=!0x0}={}){return(_0x40328a,_0x3955af,_0x1c7cef)=>{const {type:_0x26fda7,id:_0x1c8403}=_0x3647dc(_0x3955af['markerName']);if(!_0x23fd1e['hasSuggestion'](_0x1c8403))return;const _0x54743=_0x23fd1e['getSuggestion'](_0x1c8403),_0x19376d=_0x54743['data'];if('formatBlock'!=_0x54743['type']||!_0x19376d||'setTableColumnHeader'!=_0x19376d['commandName'])return;if(_0x3955af['item'])return void _0x40328a['stop']();if(!_0x1c7cef['consumable']['consume'](_0x3955af['markerRange'],_0x40328a['name']))return;const _0x3e6af8=_0x3955af['markerRange']['start']['nodeAfter'],_0x288f6b=_0x3955af['markerRange']['end']['nodeBefore'],_0x19948c=_0x3e6af8['parent']['parent'],{column:_0x114799}=_0x3e9b6b['getCellLocation'](_0x3e6af8),{column:_0x65851a}=_0x3e9b6b['getCellLocation'](_0x288f6b);for(let _0x4f3d05=_0x114799;_0x4f3d05<=_0x65851a;_0x4f3d05++){const _0xa4f83b=_0x3e9b6b['createTableWalker'](_0x19948c,{'column':_0x4f3d05,'includeAllSlots':!0x1});for(const _0x467b02 of _0xa4f83b){const _0x1223c5=_0x467b02['cell'],_0x11a758=_0x1c7cef['mapper']['toViewElement'](_0x1223c5);_0x1c7cef['writer']['addClass']('ck-suggestion-marker-'+_0x26fda7,_0x11a758),_0x4f5b76&&_0x1c7cef['writer']['setAttribute']('data-suggestion',_0x1c8403,_0x11a758),_0x1c7cef['mapper']['bindElementToMarker'](_0x11a758,_0x3955af['markerName']),_0x1030d9&&(_0x23fd1e['activeMarkers']['includes'](_0x3955af['markerName'])?_0x1c7cef['writer']['addClass']('ck-suggestion-marker--active',_0x11a758):_0x1c7cef['writer']['removeClass']('ck-suggestion-marker--active',_0x11a758));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4922d3(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x59d849,_0x29ddea,_0x3632bf)=>{_0x3632bf['options']['showSuggestionHighlights']&&_0x4922d3({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x59d849,_0x29ddea,_0x3632bf);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xacb99e,_0x1bd26f,_0x16e616)=>{const {type:_0x404678,id:_0x10b99b}=_0x3647dc(_0x1bd26f['markerName']);if(!_0x23fd1e['hasSuggestion'](_0x10b99b))return;const _0x17ee4d=_0x23fd1e['getSuggestion'](_0x10b99b),_0x215de4=_0x17ee4d['data'];if('formatBlock'!=_0x17ee4d['type']||!_0x215de4||'setTableColumnHeader'!=_0x215de4['commandName'])return;const _0x44527d=_0x16e616['mapper']['markerNameToElements'](_0x1bd26f['markerName']);if(_0x44527d){for(const _0x47d60d of _0x44527d)_0x16e616['writer']['removeClass']('ck-suggestion-marker-'+_0x404678,_0x47d60d),_0x16e616['writer']['removeClass']('ck-suggestion-marker--active',_0x47d60d),_0x16e616['writer']['removeAttribute']('data-suggestion',_0x47d60d),_0x16e616['mapper']['unbindElementFromMarkerName'](_0x47d60d,_0x1bd26f['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0xb553ca=this['editor'],_0x22e59a=_0xb553ca['locale'];function _0x401454(_0x5485fd){return{'type':'format','content':Tt(_0x22e59a,'*Format:*\x20%0',_0x5485fd)};}_0xb553ca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b8104=>{if('formatBlock'!=_0x5b8104['type'])return;const {data:_0x3b4461}=_0x5b8104;if(_0x3b4461){if('setTableRowHeader'==_0x3b4461['commandName']){const _0x1ec615=_0x3b4461['commandParams'][0x0]['forceValue'];return _0x401454(Tt(_0x22e59a,_0x1ec615?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3b4461['commandName']){const _0xb48c87=_0x3b4461['commandParams'][0x0]['forceValue'];return _0x401454(Tt(_0x22e59a,_0xb48c87?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class TrackChangesTableFooters extends _0xf34f{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x580582=this['editor'];if(!_0x580582['plugins']['has']('TableEditing')||!_0x580582['config']['get']('table.enableFooters'))return;const _0x4d759e=_0x580582['locale'],_0x43b4b6=_0x580582['plugins']['get']('TrackChangesEditing');_0x43b4b6['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x43b4b6['descriptionFactory']['registerAttributeLabel']('footerRows',Tt(_0x4d759e,'FORMAT_FOOTER_ROW'));}}class TrackChangesTableLayout extends _0xf34f{['afterInit'](){const _0x565bef=this['editor'],_0x31c5d1=_0x565bef['locale'],_0x1056c6=_0x565bef['plugins']['get']('TrackChangesEditing');function _0x586d72(_0x2148a2){return{'type':'format','content':''+Tt(_0x31c5d1,'*Set\x20table\x20type:*\x20%0',_0x2148a2)};}_0x565bef['plugins']['has']('TableLayout')&&(_0x1056c6['enableCommand']('insertTableLayout'),_0x1056c6['enableDefaultAttributesIntegration']('tableType'),_0x1056c6['descriptionFactory']['registerElementLabel'](_0x4e93f6=>_0x4e93f6['is']('element','table')&&'layout'===_0x4e93f6['getAttribute']('tableType'),_0x319efa=>Tt(_0x31c5d1,'ELEMENT_LAYOUT_TABLE',_0x319efa)),_0x1056c6['descriptionFactory']['registerDescriptionCallback'](_0x3e9ade=>{const {data:_0x55b648}=_0x3e9ade;if(_0x55b648&&'tableType'==_0x55b648['key'])switch(_0x55b648['newValue']){case'layout':return _0x586d72(Tt(_0x31c5d1,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x586d72(Tt(_0x31c5d1,'ELEMENT_CONTENT_TABLE'));}}));}}const Mt=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ot=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Mt['map'](_0x8a8aeb=>[_0x8a8aeb,null]));class TrackChangesTableClipboard extends _0xf34f{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x3ec1cb=this['editor'];if(!_0x3ec1cb['plugins']['has']('TableClipboard'))return;const _0x42ef00=_0x3ec1cb['plugins']['get']('TrackChangesEditing'),_0x415a03=_0x3ec1cb['plugins']['get']('TableUtils'),_0x540108=_0x3ec1cb['plugins']['get'](TrackChangesTable),_0x5dc76f=_0x3ec1cb['plugins']['get']('TableClipboard'),_0x38d496=_0x3ec1cb['plugins']['get']('TableSelection'),_0x4fec37=_0x3ec1cb['plugins']['get'](ut);_0x540108['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3ec1cb['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3ec1cb['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xf245c9=null,_0x253f7c=!0x1;_0x4fec37['on']('contentInsertion',(_0x4dc826,_0x4cdab2)=>{_0x253f7c='paste'===_0x4cdab2['method'];}),_0x3ec1cb['model']['on']('insertContent',(_0x583570,_0x40b960)=>{if(!_0x253f7c&&null===_0x38d496['getSelectedTableCells']())return;const [_0x5b177c,_0x57c15a]=_0x40b960,_0x34953a=_0x40b960[_0x40b960['length']-0x1];_0x34953a&&_0x34953a['forceDefaultExecution']||_0x42ef00['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x55de09,_0x2a0788,_0x1029b6,_0x33032a,_0x5ac572){if(_0x2a0788&&!_0x2a0788['is']('documentSelection'))return!0x1;const _0xe00471=_0x5ac572['getTableIfOnlyTableInContent'](_0x55de09,_0x1029b6);if(!_0xe00471||!Ft(_0xe00471,void 0x0,_0x33032a))return!0x1;const _0x472d1b=_0x33032a['getSelectionAffectedTableCells'](_0x1029b6['document']['selection']);if(!_0x472d1b['length'])return!0x1;const _0xbeff53=_0x472d1b[0x0]['findAncestor']('table'),_0x18e1a7=_0x33032a['getRowIndexes'](_0x472d1b),_0x34c6a3=_0x33032a['getColumnIndexes'](_0x472d1b),_0x47f98f={'startRow':_0x18e1a7['first'],'endRow':_0x18e1a7['last'],'startColumn':_0x34c6a3['first'],'endColumn':_0x34c6a3['last']};return 0x1==_0x472d1b['length']&&(_0x47f98f['endRow']+=_0x33032a['getRows'](_0xe00471)-0x1,_0x47f98f['endColumn']+=_0x33032a['getColumns'](_0xe00471)-0x1),Ft(_0xbeff53,_0x47f98f,_0x33032a);}(_0x5b177c,_0x57c15a,_0x3ec1cb['model'],_0x415a03,_0x5dc76f)&&(_0x583570['stop'](),_0xf245c9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3ec1cb['model']['change'](()=>{_0x3ec1cb['model']['insertContent'](_0x40b960[0x0],_0x40b960[0x1],_0x40b960[0x2],{'forceDefaultExecution':!0x0});const _0x5d41ac=_0x424839(),{rowInsertionRanges:_0x1c3148,columnInsertionRanges:_0x580b42,insertionRanges:_0x34d71a,deletionRanges:_0x3d471c,cells:_0xb066af}=_0xf245c9;_0x1c3148['length']&&_0x42ef00['markMultiRangeInsertion'](_0x1c3148,'tablePasteRow',{'tablePasteChainId':_0x5d41ac}),_0x580b42['length']&&_0x42ef00['markMultiRangeInsertion'](_0x580b42,'tablePasteColumn',{'tablePasteChainId':_0x5d41ac}),_0x34d71a['length']&&(_0x42ef00['markMultiRangeInsertion'](_0x34d71a,'tablePaste',{'tablePasteChainId':_0x5d41ac,'skipNestingCheck':!0x0}),_0x34d71a['forEach'](_0x4e4e3b=>_0x4e4e3b['detach']?.())),_0x3d471c['length']&&(_0x42ef00['markMultiRangeDeletion'](_0x3d471c,'tablePaste',{'tablePasteChainId':_0x5d41ac,'skipNestingCheck':!0x0}),_0x3d471c['forEach'](_0x4b137f=>_0x4b137f['detach']?.()));const _0x41c0c9=_0x42ef00['markMultiRangeBlockFormat'](_0xb066af['map'](({element:_0x1a9fb0})=>_0x1a9fb0),{'formatGroupId':_0x424839()},[],'tablePasteCell',{'tablePasteChainId':_0x5d41ac});if(_0x41c0c9){const _0x16d597=_0x41c0c9['getMarkers'](),_0x20901a=[];for(const {element:_0x4d197f,attributes:_0x35211c}of _0xb066af){if(!_0x35211c)continue;const _0x2b81bc=_0x3ec1cb['model']['createRangeOn'](_0x4d197f),_0x50bcf6=_0x16d597['find'](_0x430379=>_0x430379['getRange']()['isEqual'](_0x2b81bc));_0x50bcf6&&_0x20901a['push']([_0x50bcf6['name'],_0x35211c]);}_0x20901a['length']&&_0x41c0c9['setAttribute']('markerAttributes',Object['fromEntries'](_0x20901a));}_0xf245c9=null;}));},{'priority':_0x175f1a['high']+0xa}),_0x4fec37['on']('contentInsertion',()=>{_0x253f7c=!0x1;},{'priority':'lowest'}),_0x3ec1cb['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x20aadf,_0x134df2)=>{const [_0x403383,_0x3090d8,,_0x374a64]=_0x134df2;if(!_0xf245c9)return;_0x20aadf['stop']();const _0x14530a=_0x403383['cell'],_0x518720=_0x3090d8,_0x38919c=wt(_0x14530a),_0x4b25bb=wt(_0x518720);_0x20aadf['return']=_0x14530a;let _0x5623f2=null,_0x3444e6=null;if(_0x4b25bb||_0x38919c){if(_0x38919c&&!_0x4b25bb){_0x374a64['remove'](_0x14530a['getChild'](0x0));for(const _0x8e0ffe of Array['from'](_0x518720['getChildren']()))_0x374a64['insert'](_0x8e0ffe,_0x14530a,'end');const _0x431c47=_0xf245c9['rowInsertionIndexes']['includes'](_0x403383['row']),_0x39d322=_0xf245c9['columnInsertionIndexes']['includes'](_0x403383['column']);_0x431c47||_0x39d322||(_0x5623f2=_0xe62106['fromRange'](_0x374a64['createRangeIn'](_0x14530a)));}else _0x4b25bb&&!_0x38919c&&(_0x3444e6=_0x374a64['createRangeIn'](_0x14530a));}else{const _0x368be3=_0x374a64['createElement']('tableCellSuggestion'),_0x525f0b=_0x374a64['createElement']('tableCellSuggestion');_0x374a64['wrap'](_0x374a64['createRangeIn'](_0x14530a),_0x525f0b),_0x374a64['insert'](_0x368be3,_0x14530a,0x0);for(const _0x1c30cd of Array['from'](_0x518720['getChildren']()))_0x374a64['insert'](_0x1c30cd,_0x368be3,'end');_0x5623f2=_0xe62106['fromRange'](_0x374a64['createRangeOn'](_0x368be3)),_0x3444e6=_0xe62106['fromRange'](_0x374a64['createRangeOn'](_0x525f0b));}const _0x4d2efb=Array['from'](_0x518720['getAttributes']())['filter'](([_0x32abdf])=>Mt['includes'](_0x32abdf));_0xf245c9['cells']['push']({'element':_0x14530a,'attributes':_0x4d2efb['length']?Object['fromEntries'](_0x4d2efb):null}),_0x5623f2&&_0xf245c9['insertionRanges']['push'](_0x5623f2),_0x3444e6&&_0xf245c9['deletionRanges']['push'](_0x3444e6);},{'priority':'high'}),_0x415a03['on']('insertColumns',(_0x42b5f3,_0x1c10dd)=>{const [_0x89b95a,_0x1e66ab={}]=_0x1c10dd;if(!_0xf245c9)return;const _0x5b658c=_0x1e66ab['at']||0x0,_0x1a43cd=_0x1e66ab['columns']||0x1;_0xf245c9['columnInsertionIndexes']=new Array(_0x1a43cd)['fill'](_0x5b658c)['map']((_0x1d02d9,_0x41a468)=>_0x1d02d9+_0x41a468);for(const {cell:_0x55c1ff}of _0x415a03['createTableWalker'](_0x89b95a,{'startColumn':_0x5b658c,'endColumn':_0x5b658c+_0x1a43cd-0x1}))_0xf245c9['columnInsertionRanges']['push'](_0x3ec1cb['model']['createRangeOn'](_0x55c1ff));},{'priority':'low'}),_0x415a03['on']('insertRows',(_0x3ed3bf,_0x3da091)=>{const [_0x30fb83,_0x4ab294={}]=_0x3da091;if(!_0xf245c9)return;const _0x2534b0=_0x4ab294['at']||0x0,_0x32cdd9=_0x4ab294['rows']||0x1;_0xf245c9['rowInsertionIndexes']=new Array(_0x32cdd9)['fill'](_0x2534b0)['map']((_0x8e053c,_0xf6cc76)=>_0x8e053c+_0xf6cc76);for(const {cell:_0x5ab30b}of _0x415a03['createTableWalker'](_0x30fb83,{'startRow':_0x2534b0,'endRow':_0x2534b0+_0x32cdd9-0x1}))_0xf245c9['rowInsertionRanges']['push'](_0x3ec1cb['model']['createRangeOn'](_0x5ab30b));},{'priority':'low'}),_0x42ef00['descriptionFactory']['registerDescriptionCallback'](_0x3e2e26=>{if(_0x3e2e26['subType']&&_0x3e2e26['subType']['startsWith']('tablePaste'))return _0x3e2e26['previous']?{}:{'type':'insertion','content':Tt(_0x3ec1cb['locale'],'*Replace\x20table\x20cells*')};});const _0x563b74=()=>!0x1;for(const _0x3080b8 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x42ef00['_suggestionFactory']['registerCustomCallback']('insertion',_0x3080b8,'join',_0x563b74),_0x42ef00['_suggestionFactory']['registerCustomCallback']('deletion',_0x3080b8,'join',_0x563b74),_0x42ef00['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3080b8,'join',_0x563b74);_0x42ef00['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x563b74),_0x42ef00['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4503ad,_0x42c38a,_0x8e0978)=>{const _0x3b58c6=_0x4503ad['map'](_0x554657=>_0x554657['getContainedElement']())['filter'](_0x28b2b0=>_0x28b2b0),_0x5b7602=new Map(_0x3b58c6['map'](_0xd7c72d=>[_0xd7c72d,null]));if(_0xf245c9){for(const {element:_0x55a930,attributes:_0x2b3d47}of _0xf245c9['cells'])_0x2b3d47&&_0x5b7602['set'](_0x55a930,_0x2b3d47);}else{if(_0x8e0978&&_0x8e0978['markerAttributes'])for(const [_0x539fef,_0x12f453]of Object['entries'](_0x8e0978['markerAttributes'])){const _0x21dc51=_0x3ec1cb['model']['markers']['get'](_0x539fef),_0xf1905b=_0x21dc51?_0x21dc51['getRange']()['getContainedElement']():null;_0xf1905b&&_0x5b7602['set'](_0xf1905b,_0x12f453);}}_0x3ec1cb['model']['change'](_0x316527=>{for(const [_0x9b298,_0x4016dd]of _0x5b7602)_0x316527['setAttributes']({...Ot,..._0x4016dd},_0x9b298);});});const _0x1384ab=(_0x464381,_0x1cee21)=>{_0x42ef00['_suggestionFactory']['registerCustomCallback'](_0x464381,'tablePaste',_0x1cee21,(_0x1c2364,_0x79564a,_0x257f11)=>{_0x3ec1cb['model']['change'](_0x5c160a=>{const _0x5338e6=[];for(const _0x511f37 of _0x1c2364){const _0x3f0884=_0x511f37['start']['nodeAfter'];_0x3f0884['is']('element','tableCellSuggestion')&&_0x5338e6['push'](_0x3f0884);}_0x42ef00['_suggestionFactory']['getSuggestionCallback'](_0x464381,null,_0x1cee21)(_0x1c2364,_0x79564a,_0x257f11);for(const _0x38e4f0 of _0x5338e6)'$graveyard'!=_0x38e4f0['root']['rootName']&&_0x5c160a['unwrap'](_0x38e4f0);});});};_0x1384ab('insertion','accept'),_0x1384ab('insertion','discard'),_0x1384ab('deletion','accept'),_0x1384ab('deletion','discard'),_0x42ef00['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x121326=>{const _0x298e65=_0x121326['map'](_0x320e24=>_0x320e24['getContainedElement']()),_0x40bf23=_0x298e65[0x0]['findAncestor']('table'),{minRow:_0x31eb1e,maxRow:_0x423db5}=_0x540108['_getCoordsForCells'](_0x298e65);_0x415a03['removeRows'](_0x40bf23,{'at':_0x31eb1e,'rows':_0x423db5-_0x31eb1e+0x1});}),_0x42ef00['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4d8c5c=>{const _0x414ffb=_0x4d8c5c['map'](_0x3ab179=>_0x3ab179['getContainedElement']()),_0x2c82a5=_0x414ffb[0x0]['findAncestor']('table'),{minColumn:_0x265cc1,maxColumn:_0x27bc6a}=_0x540108['_getCoordsForCells'](_0x414ffb);_0x415a03['removeColumns'](_0x2c82a5,{'at':_0x265cc1,'columns':_0x27bc6a-_0x265cc1+0x1});});const _0x4b0596=(_0x34b85d,_0x1b6fed)=>{if(!_0x1b6fed['subType']||!_0x1b6fed['subType']['startsWith']('tablePaste'))return;const _0x322768=_0x1b6fed['attributes']['tablePasteChainId'],_0x34154c=_0x42ef00['getSuggestions']()['filter'](_0x247dbf=>_0x247dbf['isInContent']&&_0x247dbf['attributes']&&_0x247dbf['attributes']['tablePasteChainId']==_0x322768);_0x34154c['length']&&_0x1b6fed['getAllAdjacentSuggestions']()['length']!=_0x34154c['length']&&_0x34154c['reduce']((_0x1817f4,_0x1b6ac8)=>(_0x1817f4['next']=_0x1b6ac8,_0x1b6ac8['previous']=_0x1817f4,_0x1b6ac8));};function _0x19f00d(_0x4e88d0,_0x43402b=!0x0){const {id:_0x7313ba,authorId:_0x1bf27e}=_0x3647dc(_0x4e88d0['markerName']),_0x15921b=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4a9814=_0x42ef00['activeMarkers']['includes'](_0x4e88d0['markerName']);return _0x4a9814&&_0x15921b['push']('ck-suggestion-marker--active'),{'classes':_0x15921b,'attributes':{'data-suggestion':_0x7313ba,'data-author-id':_0x1bf27e},'priority':_0x4a9814&&_0x43402b?0xbc2:0xbb8};}_0x42ef00['on']('suggestionLoaded',_0x4b0596,{'priority':'high'}),_0x42ef00['on']('suggestionUnloaded',_0x4b0596,{'priority':'high'}),_0x3ec1cb['model']['document']['registerPostFixer'](()=>{let _0x59844d=!0x1;const _0xa27bd9=Array['from'](_0x3ec1cb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x511e6c,data:_0x11b85e}of _0xa27bd9){const {group:_0x3e68d4,type:_0x54a58d,id:_0x29158c}=_0x3647dc(_0x511e6c);if('suggestion'!=_0x3e68d4||'deletion'!=_0x54a58d||_0x11b85e['oldRange'])continue;if(!_0x42ef00['hasSuggestion'](_0x29158c))continue;const _0x36fac3=_0x42ef00['getSuggestion'](_0x29158c)['getRanges'](),_0x145a13=_0x3ec1cb['plugins']['get']('Users')['me'];for(const _0xd8444c of _0x42ef00['getSuggestions']()){if(!_0xd8444c['isInContent']||_0xd8444c['author']!=_0x145a13)continue;if('formatBlock'!=_0xd8444c['type']||'tablePasteCell'!=_0xd8444c['subType'])continue;if(_0xd8444c['getRanges']()['every'](_0x516eac=>_0x36fac3['some'](_0x209fa6=>_0x209fa6['containsRange'](_0x516eac,!0x0)))){for(const _0x28c2c5 of _0xd8444c['getAllAdjacentSuggestions']())_0x28c2c5['isInContent']&&(_0x28c2c5['discard'](),_0x59844d=!0x0);}}}return _0x59844d;}),_0x3ec1cb['model']['document']['registerPostFixer'](_0x435e9b=>{const _0x51771e=_0x3ec1cb['commands']['get']('redo');if(!_0x51771e||!_0x51771e['_createdBatches']['has'](_0x435e9b['batch']))return!0x1;let _0x5bce4d=!0x1;const _0x4c43b1=_0x3ec1cb['plugins']['get']('Users')['me'],_0x251ed1=_0x3ec1cb['model']['document']['differ']['getChanges'](),_0x121425=Array['from'](_0x3ec1cb['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x47c8c3,data:_0x533d6f})=>{const {group:_0x4c93a9,subType:_0x4a0075,authorId:_0x52b34a}=_0x3647dc(_0x47c8c3);return'suggestion'==_0x4c93a9&&'tablePaste'==_0x4a0075&&_0x52b34a==_0x4c43b1['id']&&!_0x533d6f['oldRange'];});for(const _0x1a09cf of _0x251ed1){if('insert'!=_0x1a09cf['type']||'tableCellSuggestion'!=_0x1a09cf['name']||0x1!=_0x1a09cf['length'])continue;const _0x360140=_0x435e9b['createRange'](_0x1a09cf['position'],_0x1a09cf['position']['getShiftedBy'](0x1));if(!_0x121425['find'](({data:_0x103642})=>_0x103642['newRange']['isEqual'](_0x360140))){for(const {name:_0x42b5f2,data:_0x31d65a}of _0x121425)if(_0x360140['containsRange'](_0x31d65a['newRange'])){_0x435e9b['updateMarker'](_0x42b5f2,{'range':_0x360140}),_0x5bce4d=!0x0;break;}}}return _0x5bce4d;}),_0x3ec1cb['model']['document']['registerPostFixer'](_0x37012c=>{let _0x1892f0=!0x1;const _0xa72b60=_0x3ec1cb['plugins']['get']('Users')['me'],_0x3efbd4=_0x42ef00['getSuggestions']()['filter'](_0x322f1e=>_0x322f1e['isInContent']&&_0x322f1e['author']==_0xa72b60),_0x4cea29=new Set(),_0x345892=new Set();for(const _0x267a07 of _0x3efbd4)if('tablePaste'==_0x267a07['subType'])for(const _0xde71e9 of _0x267a07['getMarkers']()){const _0x1bbd6d=_0xde71e9['getRange']()['getContainedElement']();if(_0x1bbd6d){if(_0x1bbd6d['is']('element','tableCellSuggestion')&&wt(_0x1bbd6d)){_0x267a07['removeMarker'](_0xde71e9['name']),_0x4cea29['add'](_0x1bbd6d),_0x1892f0=!0x0;const _0x34b933=_0x1bbd6d['nextSibling'],_0x40f3ce=_0x1bbd6d['previousSibling'],_0x421903=_0x34b933&&_0x34b933['is']('element','tableCellSuggestion'),_0x523d6c=_0x40f3ce&&_0x40f3ce['is']('element','tableCellSuggestion');_0x421903&&!_0x4cea29['has'](_0x34b933)&&_0x345892['add'](_0x34b933),_0x523d6c&&!_0x4cea29['has'](_0x40f3ce)&&_0x345892['add'](_0x40f3ce);}else _0x1bbd6d['is']('element','paragraph')&&_0x1bbd6d['isEmpty']&&(_0x267a07['removeMarker'](_0xde71e9['name']),_0x1892f0=!0x0);}}else{if('tablePasteCell'==_0x267a07['subType']){if(!_0x267a07['attributes']||!_0x267a07['attributes']['tablePasteChainId'])continue;const _0xfaf2e1=_0x267a07['attributes']['markerAttributes'];if(_0xfaf2e1&&Object['keys'](_0xfaf2e1)['length'])continue;const _0x28ad08=_0x267a07['attributes']['tablePasteChainId'];let _0x327370=!0x0,_0x5cf5f2=!0x0;for(const _0x54781a of _0x3efbd4)if(_0x54781a['subType']&&_0x54781a['subType']['startsWith']('tablePaste')){if(!_0x54781a['attributes']['tablePasteChainId']){_0x5cf5f2=!0x1;break;}if(_0x54781a['id']!=_0x267a07['id']&&_0x54781a['attributes']['tablePasteChainId']==_0x28ad08){_0x327370=!0x1;break;}}_0x5cf5f2&&_0x327370&&(_0x267a07['removeMarkers'](),_0x1892f0=!0x0);}}for(const _0x2c18d8 of _0x4cea29)_0x37012c['remove'](_0x2c18d8);for(const _0x3aa86a of _0x345892)_0x37012c['unwrap'](_0x3aa86a);return _0x1892f0;}),_0x3ec1cb['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x236b59=>_0x19f00d(_0x236b59),'converterPriority':'high'}),_0x3ec1cb['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x57e8db,_0x1c6881)=>_0x1c6881['options']['showSuggestionHighlights']?_0x19f00d(_0x57e8db,!0x1):null,'converterPriority':'high'});const _0xd0d3f5=_0x3ec1cb['editing']['view'];this['listenTo'](_0xd0d3f5['document'],'clipboardOutput',(_0x2d7c7c,_0x573b9f)=>{const _0x430fe1=[];for(const _0x135978 of _0xd0d3f5['createRangeIn'](_0x573b9f['content'])['getItems']())_0x135978['is']('element','suggestion-td')&&_0x430fe1['push'](_0x135978);_0xd0d3f5['change'](_0x1a2412=>{for(const _0x509964 of _0x430fe1)_0x1a2412['move'](_0x1a2412['createRangeIn'](_0x509964),_0x1a2412['createPositionBefore'](_0x509964)),_0x1a2412['remove'](_0x509964);});});}}function wt(_0x15ddad){if(_0x15ddad['isEmpty'])return!0x0;const _0x55d1dd=_0x15ddad['getChild'](0x0);return _0x55d1dd['is']('element','paragraph')&&_0x55d1dd['isEmpty'];}function Ft(_0x1a8b53,_0x13a49b={},_0x19eb15){for(const {isAnchor:_0x311d56,cellHeight:_0x4fd620,cellWidth:_0x3671d5}of _0x19eb15['createTableWalker'](_0x1a8b53,{'includeAllSlots':!0x0,..._0x13a49b}))if(!_0x311d56||0x1!=_0x4fd620||0x1!=_0x3671d5)return!0x1;return!0x0;}class TrackChangesTableColumnResize extends _0xf34f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x347947=this['editor']['plugins']['get']('TrackChangesEditing');_0x347947['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x347947['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x347947['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x347947['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x347947['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x347947['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xcb101a,_0x2887fe){const _0x265e73=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58625a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4b0527=_0x2887fe['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x18ef71=_0x58625a['getColumnGroupElement'](_0x4b0527);let _0x2db816=_0x18ef71?_0x58625a['getTableColumnsWidths'](_0x18ef71):null,_0x3041fc=_0x4b0527['getAttribute']('tableWidth')||null;const _0xa0fd42=_0x2887fe['tableWidth']||_0x3041fc,_0x484e2f=_0x2887fe['columnWidths']||_0x2db816,_0x5551a2=this['editor']['plugins']['get']('Users')['me'];for(const _0x389580 of _0x265e73['getSuggestions']()){const _0x17a1d9=_0x389580['getContainedElement']();if('resizeTable'===_0x389580['subType']&&_0x17a1d9===_0x4b0527){_0x389580['author']!==_0x5551a2&&_0x389580['discard']();const _0x200535=_0x389580['data']['commandParams'];_0x3041fc=_0x200535[0x0]['tableWidth'],_0x2db816=_0x200535[0x0]['columnWidths'];break;}}_0xcb101a({'table':_0x4b0527,'tableWidth':_0xa0fd42,'columnWidths':_0x484e2f}),_0x265e73['markBlockFormat'](_0x4b0527,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3041fc,'columnWidths':_0x2db816}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x559354){if('formatBlock'!=_0x559354['type']&&'formatInline'!=_0x559354['type'])return;const {data:_0x383cf3}=_0x559354;if(_0x383cf3&&'resizeTable'===_0x383cf3['formatGroupId']){const _0xf26a6d='*Format:*\x20resize\x20table';return{'type':'format','content':Tt(this['editor']['locale'],_0xf26a6d)};}}}class TrackChangesTemplate extends _0xf34f{['afterInit'](){const _0x234c4e=this['editor'];_0x234c4e['plugins']['has']('Template')&&_0x234c4e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class TrackChangesTableOfContents extends _0xf34f{['afterInit'](){const _0x3f5f85=this['editor'];if(!_0x3f5f85['commands']['get']('insertTableOfContents'))return;_0x3f5f85['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x13d125=_0x3f5f85['plugins']['get']('TrackChangesEditing'),_0xa677a7=_0x3f5f85['locale'];_0x13d125['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2ec908=>Tt(_0xa677a7,'ELEMENT_TABLE_OF_CONTENTS',_0x2ec908));}}class TrackChangesTitle extends _0xf34f{['afterInit'](){const _0x4f51bb=this['editor'];if(!_0x4f51bb['plugins']['has']('Title'))return;_0x4f51bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Tt(_0x4f51bb['locale'],'ELEMENT_TITLE')),_0x4f51bb['model']['document']['registerPostFixer'](_0x5da411=>{let _0x36a620=!0x1;const _0x49afc0=Array['from'](_0x4f51bb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x47f976,data:_0x49f9e9}of _0x49afc0){const {group:_0x2c73dd}=_0x3647dc(_0x47f976);if('suggestion'!==_0x2c73dd||!_0x49f9e9['newRange'])continue;const _0x37dc64=_0x49f9e9['newRange'],_0x2bc771=_0x37dc64['end']['nodeBefore'];if(!_0x2bc771||!_0x2bc771['is']('element','title-content'))continue;if(!_0x37dc64['start']['isTouching'](_0x37dc64['end']))continue;const _0x16b8b6=_0x4f51bb['model']['schema']['getNearestSelectionRange'](_0x37dc64['end'],'forward');if(_0x16b8b6&&_0x16b8b6['isCollapsed']){const _0x4c619e=_0x5da411['createRange'](_0x37dc64['start'],_0x16b8b6['start']);_0x4c619e['isEqual'](_0x37dc64)||(_0x5da411['updateMarker'](_0x47f976,{'range':_0x4c619e}),_0x36a620=!0x0);}_0x36a620||(_0x5da411['removeMarker'](_0x47f976),_0x36a620=!0x0);}return _0x36a620;});}}class TrackChangesUploadcare extends _0xf34f{['afterInit'](){const _0x20383c=this['editor'],_0x53592a=_0x20383c['plugins']['get']('TrackChangesEditing');_0x20383c['plugins']['has']('Uploadcare')&&(_0x53592a['enableCommand']('uploadcare'),_0x20383c['plugins']['has']('UploadcareImageEdit')&&(_0x53592a['enableCommand']('uploadcareImageEdit'),_0x53592a['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x53592a['descriptionFactory']['registerDescriptionCallback'](_0x3ecb67=>{if('attribute'!=_0x3ecb67['type'])return;const {data:_0x4c76e6}=_0x3ecb67;return _0x4c76e6&&'uploadcareImageId'==_0x4c76e6['key']?{'type':'format','content':''}:void 0x0;})));}}class TrackChangesUndo extends _0xf34f{['afterInit'](){const _0x1fcb7a=this['editor'],_0x1639ec=_0x1fcb7a['plugins']['get']('TrackChangesEditing');_0x1fcb7a['plugins']['has']('UndoEditing')&&(_0x1639ec['enableCommand']('undo'),_0x1639ec['enableCommand']('redo'));}}class TrackChangesTableCaption extends _0xf34f{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x5b6ef2=this['editor'];if(!_0x5b6ef2['plugins']['has']('TableCaptionEditing'))return;_0x5b6ef2['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class TrackChangesTableProperties extends _0xf34f{['tableProperties'];['tableCellProperties'];constructor(_0x208072){super(_0x208072),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 _0x304da5=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5d130a of this['tableProperties'])_0x304da5['enableCommand'](_0x5d130a,(_0x2df3d9,_0x3cc88a)=>{const _0x5456f1=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5d130a,[_0x5456f1],this['tableProperties'],'tableProperties',_0x2df3d9,_0x3cc88a);});_0x304da5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x304da5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x304da5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x39fa58,_0x1aad15)=>this['handleDiscardAction'](this['tableProperties'],_0x39fa58,_0x1aad15)),_0x304da5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3e92e1 of this['tableCellProperties'])this['editor']['commands']['get'](_0x3e92e1)&&_0x304da5['enableCommand'](_0x3e92e1,(_0x88f852,_0x13d997)=>{const _0x1ee1c2=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3e92e1,_0x1ee1c2,this['tableCellProperties'],'tableCellProperties',_0x88f852,_0x13d997);});_0x304da5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x304da5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x304da5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x49963d,_0x6b0f5b)=>this['handleDiscardAction'](this['tableCellProperties'],_0x49963d,_0x6b0f5b)),_0x304da5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x304da5['descriptionFactory']['registerAttributeLabel']('tableCellType',Tt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x304da5['descriptionFactory']['registerDescriptionCallback'](_0x3b1faa=>this['handleSuggestionDescription'](_0x3b1faa)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x1fd763,_0x315fe8,_0x66a746,_0x4fe864,_0x1a7bb6,_0x16cf39){const _0x3881eb=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x16cf39['batch'],()=>{for(const _0x4bfcd4 of _0x315fe8){if(this['_getSuggestion'](_0x4bfcd4,_0x4fe864))_0x1a7bb6(_0x16cf39);else{const _0x196f48={};for(const _0xafefb3 of _0x66a746){const _0x29a4fd=_0x4bfcd4['getAttribute'](_0xafefb3);void 0x0!==_0x29a4fd&&(_0x196f48[_0xafefb3]=_0x29a4fd);}_0x1a7bb6(_0x16cf39),_0x3881eb['markBlockFormat'](_0x4bfcd4,{'commandParams':[_0x196f48]},[],_0x4fe864);}}});}['handleDiscardAction'](_0x31ac68,_0x341f9c,_0x386532){const _0x4ecc39=_0x341f9c[0x0]['start']['nodeAfter'],_0xc1c77a=_0x386532['commandParams'][0x0];this['editor']['model']['change'](_0x44ee42=>{for(const _0x5c8980 of _0x31ac68)void 0x0!==_0xc1c77a[_0x5c8980]?_0x44ee42['setAttribute'](_0x5c8980,_0xc1c77a[_0x5c8980],_0x4ecc39):_0x44ee42['removeAttribute'](_0x5c8980,_0x4ecc39);});}['handleSuggestionDescription'](_0x94ac34){if(_0x94ac34['data'])switch(_0x94ac34['subType']){case'tableProperties':return{'type':'format','content':Tt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Tt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x32e436,_0x246947){const _0x3c6b9a=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x124433 of _0x3c6b9a['getSuggestions']({'skipNotAttached':!0x0})){const _0x2ee5de=_0x124433['getContainedElement']();if(_0x124433['subType']===_0x246947&&_0x2ee5de===_0x32e436)return _0x124433;}return null;}['_registerTablePropertiesAttributes'](){const _0x3dc15f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b71b5=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x7f410 of _0x2b71b5){const _0x37b62d=_0x7f410['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x3dc15f['descriptionFactory']['registerAttributeLabel'](_0x7f410,Tt(this['editor']['locale'],'FORMAT_'+_0x37b62d));}}}class TrackChangesLineHeight extends _0xf34f{['afterInit'](){const _0x44b7f2=this['editor'];if(!_0x44b7f2['plugins']['has']('LineHeight'))return;const _0x38e1d3=_0x44b7f2['plugins']['get']('TrackChangesEditing'),_0x43625c=_0x44b7f2['locale'];_0x38e1d3['enableDefaultAttributesIntegration']('lineHeight'),_0x38e1d3['descriptionFactory']['registerAttributeLabel']('lineHeight',Tt(_0x43625c,'FORMAT_LINE_HEIGHT'));}}const Bt='$elementName';class TrackChangesEditing extends _0xf34f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x208597,_0x4f6c5d,_0x469759,_0x5ea8ba,_0x5c00d9,TrackChangesAIAssistant,TrackChangesAI,TrackChangesAIQuickActions,TrackChangesAlignment,TrackChangesBasicStyles,TrackChangesBlockQuote,TrackChangesBookmark,TrackChangesCKBox,TrackChangesCaseChange,TrackChangesCodeBlock,TrackChangesComments,TrackChangesDeleteCommand,TrackChangesEmoji,TrackChangesEnterCommand,TrackChangesFindAndReplace,TrackChangesFont,TrackChangesFootnotes,TrackChangesFormatPainter,TrackChangesGeneralHtmlSupport,TrackChangesHeading,TrackChangesHighlight,TrackChangesHorizontalLine,TrackChangesHtmlEmbed,TrackChangesImage,TrackChangesImageStyle,TrackChangesImageReplace,TrackChangesImportWord,TrackChangesIndent,TrackChangesInputCommand,TrackChangesLegacyList,TrackChangesLegacyListProperties,TrackChangesMultiLevelList,TrackChangesLink,TrackChangesList,TrackChangesLineHeight,TrackChangesDocumentListProperties,TrackChangesMediaEmbed,TrackChangesMediaEmbedStyle,TrackChangesMention,TrackChangesMergeFields,TrackChangesPageBreak,TrackChangesParagraph,TrackChangesReplaceSourceCommand,TrackChangesRemoveFormat,TrackChangesRestrictedEditingMode,TrackChangesShiftEnterCommand,TrackChangesStandardEditingMode,TrackChangesStylesDropdown,TrackChangesTable,TrackChangesTableMergeSplit,TrackChangesTableHeadings,TrackChangesTableFooters,TrackChangesTableLayout,TrackChangesTableCaption,TrackChangesTableClipboard,TrackChangesTableColumnResize,TrackChangesTableOfContents,TrackChangesTableProperties,TrackChangesTemplate,TrackChangesTitle,TrackChangesUploadcare,TrackChangesUndo];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3f51eb){super(_0x3f51eb),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x494362,_0x2e8d9b,_0x3561cd,_0x16330e)=>{this['_model']['change'](()=>{for(const _0x45e13c of[..._0x16330e,..._0x3561cd])this['_model']['markers']['has'](_0x45e13c)&&_0x3f51eb['editing']['reconvertMarker'](_0x45e13c);});}),this['descriptionFactory']=new SuggestionDescriptionFactory(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new SuggestionFactory(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3f51eb['plugins']['get'](_0x208597),this['_suggestionsConversion']=_0x3f51eb['plugins']['get'](_0x4f6c5d),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x3f51eb['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3f51eb['config']['get']('trackChanges.trackFormatChanges'),_0x3f51eb['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3f51eb['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new TrackChangesCommand(_0x3f51eb,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1adcc9=this['editor'];_0x1adcc9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x646976,{writer:_0x39ba7d})=>{let _0xb40244='suggestion:'+_0x646976['getAttribute']('suggestion-type')+':'+_0x646976['getAttribute']('id');return _0x646976['getAttribute']('marker-count')&&(_0xb40244+=':'+_0x646976['getAttribute']('marker-count')),_0x39ba7d['createElement']('$marker',{'data-name':_0xb40244});}}),_0x1adcc9['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1adcc9['model']['document']['registerPostFixer'](_0x3509c4=>{let _0x4974d6=!0x1;const _0x1ee3fd=Array['from'](_0x1adcc9['model']['document']['differ']['getChangedMarkers']()),_0x2f22f4=new Set();for(const {name:_0x5a4b74,data:_0x4885d9}of _0x1ee3fd){const {group:_0x375172,type:_0x34b91c,subType:_0x297554,id:_0x4e8bc0}=_0x3647dc(_0x5a4b74);if('suggestion'!==_0x375172)continue;const _0x33f0df=_0x297554?'suggestion:'+_0x34b91c+':'+_0x297554+':'+_0x4e8bc0:'suggestion:'+_0x34b91c+':'+_0x4e8bc0,_0xc75a4b=_0x1adcc9['model']['markers']['getMarkersGroup'](_0x33f0df),_0x2414a6=_0x1adcc9['model']['markers']['get'](_0x5a4b74),_0x286c98=this['_suggestions']['get'](_0x4e8bc0);if(null!=_0x4885d9['newRange']){'formatInline'==_0x34b91c&&(_0x4974d6=_0x4974d6||Pt(_0x4885d9['newRange'],_0x5a4b74,_0x3509c4,_0x1adcc9['model']['schema']));const _0x30c4c3='attribute'==_0x34b91c&&this['_suggestionsConversion']['isBlockAttribute'](Xt(_0x297554)),_0x2ee41e='attribute'==_0x34b91c&&this['_suggestionsConversion']['isInlineAttribute'](Xt(_0x297554));if(_0x4885d9['newRange']['isCollapsed']||'$graveyard'==_0x4885d9['newRange']['root']['rootName']||'formatBlock'==_0x34b91c&&!Ut(_0x4885d9['newRange'])||_0x30c4c3&&!Ut(_0x4885d9['newRange'])||_0x2ee41e&&Gt(_0x4885d9['newRange'])||'deletion'==_0x34b91c&&Gt(_0x4885d9['newRange'])||_0x2414a6&&Ht(_0x2414a6,_0xc75a4b))_0x3509c4['removeMarker'](_0x5a4b74),_0x4974d6=!0x0;else{if(!_0x286c98||!_0x286c98['isInContent'])continue;if(_0x4885d9['newRange']&&_0x4885d9['oldRange']&&_0x4885d9['newRange']['isEqual'](_0x4885d9['oldRange']))continue;_0x2f22f4['add'](_0x286c98);}}}return _0x2f22f4['size']>0x0&&(_0x4974d6=!!this['_joinWithAdjacentSuggestions'](_0x2f22f4)||_0x4974d6),_0x4974d6;}),_0x1adcc9['model']['document']['registerPostFixer'](_0x5235e0=>{let _0x33eb2f=!0x1;for(const _0xe80bf3 of _0x1adcc9['model']['document']['differ']['getChanges']())if('insert'==_0xe80bf3['type'])for(const _0x178f58 of this['_suggestions']['values']()){if(_0x178f58['isMultiRange']||!_0x178f58['isInContent'])continue;const _0x315e83='formatBlock'==_0x178f58['type'],_0x2bdddf=this['_getAttributeKey'](_0x178f58),_0x2e0d81=_0x2bdddf&&this['_suggestionsConversion']['isBlockAttribute'](_0x2bdddf);if(!_0x315e83&&!_0x2e0d81)continue;const _0x4b2e2d=_0x178f58['getFirstRange']();if(_0x4b2e2d['start']['parent']!=_0x4b2e2d['end']['parent']&&!_0x4b2e2d['end']['isAtEnd']){const _0xd3af2c=_0x1adcc9['model']['createPositionAt'](_0x4b2e2d['start']['nodeAfter'],'end'),_0x367e38=_0x1adcc9['model']['createRange'](_0x4b2e2d['start'],_0xd3af2c);_0x5235e0['updateMarker'](_0x178f58['getFirstMarker'](),{'range':_0x367e38}),_0x33eb2f=!0x0;}}return _0x33eb2f;}),_0x1adcc9['model']['document']['registerPostFixer'](_0xa27575=>this['_processAttributeChanges'](_0xa27575)),_0x1adcc9['model']['document']['registerPostFixer'](_0x3cde86=>!_0x3cde86['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3cde86)),_0x1adcc9['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1adcc9['model']['document']['on']('change:data',(_0x238faa,_0x1d1d02)=>{if(!_0x1d1d02['isLocal']||_0x1d1d02['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x47d942=_0x1adcc9['model']['document']['differ']['getChanges']();if(0x0==_0x47d942['length'])return;const _0x27b015=[],_0x4459e5=_0x47d942['filter'](_0x529b30=>'attribute'==_0x529b30['type']),_0x5113a6=_0x47d942['filter'](_0x5d180f=>'insert'==_0x5d180f['type']&&'$text'!=_0x5d180f['name']);for(const _0x594547 of _0x4459e5)this['_suggestionsConversion']['isRegisteredAttribute'](_0x594547['attributeKey'])&&_0x27b015['push']({'key':_0x594547['attributeKey'],'newValue':_0x594547['attributeNewValue'],'oldValue':_0x594547['attributeOldValue'],'range':$t(_0x594547['range'],_0x1adcc9['model'])});for(const _0x2da995 of _0x5113a6){if('rename'!=_0x2da995['action']&&'refresh'!=_0x2da995['action'])continue;const _0x51c66c=Vt(_0x2da995['position']['nodeAfter'],_0x1adcc9['model']),_0xd57641=_0x2da995['before'];'rename'==_0x2da995['action']&&_0x27b015['push']({'key':Bt,'newValue':_0x2da995['name'],'oldValue':_0xd57641['name'],'range':_0x51c66c});for(const [_0x1a246a,_0x3f9f57]of _0xd57641['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x1a246a))continue;const _0x589ddc=_0x2da995['attributes']['get'](_0x1a246a);_0x3f9f57!==_0x589ddc&&_0x27b015['push']({'key':_0x1a246a,'newValue':_0x589ddc,'oldValue':_0x3f9f57,'range':_0x51c66c});}for(const [_0x156788,_0x4d193c]of _0x2da995['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x156788)&&(_0xd57641['attributes']['has'](_0x156788)||_0x27b015['push']({'key':_0x156788,'newValue':_0x4d193c,'oldValue':null,'range':_0x51c66c}));}0x0!=_0x27b015['length']&&_0x1adcc9['model']['enqueueChange'](_0x1d1d02,_0x13ae59=>{const _0x4bf0f3=_0x424839();for(const {range:_0x36266b,key:_0x19cba0,oldValue:_0x1dafb6,newValue:_0x202c29}of _0x27b015)this['markAttributeChange'](_0x36266b,_0x19cba0,_0x1dafb6,_0x202c29,{'groupId':_0x4bf0f3});this['_reduceExistingSuggestions'](_0x13ae59,_0x27b015);});},{'priority':'lowest'}),_0x1adcc9['model']['markers']['on']('update:suggestion',(_0x204a12,_0x4ace91,_0x25124e)=>{if(null==_0x25124e){const {id:_0x169485}=_0x3647dc(_0x4ace91['name']),_0x5d2674=this['_suggestions']['get'](_0x169485);_0x5d2674&&_0x5d2674['addMarkerName'](_0x4ace91['name']);}}),_0x1adcc9['model']['document']['on']('change:data',()=>{const _0x2a019c=Array['from'](_0x1adcc9['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1e5ede=>'suggestion'===_0x3647dc(_0x1e5ede['name'])['group']);if(0x0===_0x2a019c['length'])return;_0x2a019c['sort']((_0x32d18a,_0x4046a0)=>{const _0x201716=_0x32d18a['data']['oldRange'],_0x25d9c3=_0x4046a0['data']['oldRange'];return null===_0x201716&&null===_0x25d9c3?0x0:null===_0x201716&&null!==_0x25d9c3?-0x1:null!==_0x201716&&null===_0x25d9c3?0x1:_0x201716['start']['isBefore'](_0x25d9c3['start'])?-0x1:0x1;});const _0x2ec673=new Set(),_0x573b34=new Set();for(const {name:_0x28ffd3,data:_0x3d9273}of _0x2a019c){const {id:_0x804ec7}=_0x3647dc(_0x28ffd3);if(null===_0x3d9273['oldRange']){const _0x14bf24=this['_handleNewSuggestionMarker'](_0x28ffd3);_0x573b34['add'](_0x14bf24);}else{const _0x1fc500=this['_suggestions']['get'](_0x804ec7);null!==_0x3d9273['newRange']||_0x1fc500['isInContent']?(_0x2ec673['add'](_0x1fc500['head']),_0x573b34['add'](_0x1fc500)):this['_removeSuggestion'](_0x1fc500);}}_0x573b34['size']>0x0&&this['_refreshSuggestionsChain'](_0x573b34);for(const _0x1a745d of _0x2ec673)this['fire']('suggestionChanged',_0x1a745d);}),_0x1adcc9['model']['on']('applyOperation',(_0x5c021c,_0x2b2ed5)=>{const _0x39cd35=_0x2b2ed5[0x0];if(!this['_suggestions']['size'])return;if(!_0x39cd35['isDocumentOperation'])return;if(_0x39cd35['batch']['isUndo']||!_0x39cd35['batch']['isLocal'])return;let _0x52bf85,_0x26249e;switch(_0x39cd35['type']){case'insert':_0x52bf85=_0x1adcc9['model']['createPositionAt'](_0x39cd35['position']),_0x26249e=_0x52bf85['getShiftedBy'](_0x39cd35['howMany']);break;case'split':_0x52bf85=_0x1adcc9['model']['createPositionAt'](_0x39cd35['splitPosition']),_0x26249e=_0x1adcc9['model']['createPositionAt'](_0x39cd35['moveTargetPosition']);break;case'move':_0x52bf85=_0x1adcc9['model']['createPositionAt'](_0x39cd35['targetPosition']),_0x26249e=_0x52bf85['getShiftedBy'](_0x39cd35['howMany']);break;default:return;}const _0x1999cf=_0x1adcc9['model']['createRange'](_0x52bf85,_0x26249e);_0x1adcc9['model']['change'](()=>{for(const {suggestion:_0x5abe3a,meta:_0xe99bb1}of this['_findSuggestions'](_0x1999cf)){if(_0x5abe3a['isMultiRange'])continue;if('formatInline'==_0x5abe3a['type'])continue;const _0x5ca8ae=this['_getAttributeKey'](_0x5abe3a);if(_0x5ca8ae&&this['_suggestionsConversion']['isBlockAttribute'](_0x5ca8ae)&&'split'!=_0x39cd35['type'])continue;const _0x37b299=_0x5abe3a['data']&&_0x5abe3a['data']['multipleBlocks'];('formatBlock'!=_0x5abe3a['type']||'split'==_0x39cd35['type']&&!_0x37b299)&&(_0xe99bb1['containsRangeInObject']||'insertion'==_0x5abe3a['type']&&_0xe99bb1['isOwn']||_0x5abe3a['getFirstRange']()['containsRange'](_0x1999cf)&&this['_breakSuggestionMarker'](_0x5abe3a,_0x52bf85,_0x26249e));}});},{'priority':'lowest'}),_0x1adcc9['model']['on']('deleteContent',(_0x457371,_0xc9402e)=>{const _0x526379=_0xc9402e[0x0],_0x7cd009=_0xc9402e[0x1];if(_0x7cd009&&_0x7cd009['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x526379['isCollapsed'])return;const _0x677504=_0x1adcc9['model']['schema'],{start:_0x2a0cf1,end:_0x280964}=_0x526379['getFirstRange'](),_0x17697a=_0x2a0cf1['nodeAfter']&&_0x677504['isLimit'](_0x2a0cf1['nodeAfter'])?null:_0x677504['getNearestSelectionRange'](_0x2a0cf1,'forward'),_0x18c012=_0x280964['nodeBefore']&&_0x677504['isLimit'](_0x280964['nodeBefore'])?null:_0x677504['getNearestSelectionRange'](_0x280964,'backward'),_0x537620=_0x1adcc9['model']['createRange'](_0x17697a?_0x17697a['start']:_0x2a0cf1,_0x18c012?_0x18c012['end']:_0x280964);_0x1adcc9['model']['change'](_0x276654=>{this['markDeletion'](_0x537620);const _0x43c5fc=_0x1adcc9['model']['schema']['getNearestSelectionRange'](_0x537620['start']);_0x526379['is']('documentSelection')?_0x276654['setSelection'](_0x43c5fc):_0x526379['setTo'](_0x43c5fc);}),_0x457371['stop']();},{'priority':_0x175f1a['normal']+0xa}),_0x1adcc9['model']['on']('insertContent',(_0x395f2b,_0x169e7a)=>{const _0x1dd174=_0x169e7a[_0x169e7a['length']-0x1];_0x1dd174&&_0x1dd174['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1adcc9['model']['change'](()=>{let _0x4a762b=_0x1adcc9['model']['insertContent'](_0x169e7a[0x0],_0x169e7a[0x1],_0x169e7a[0x2],{'forceDefaultExecution':!0x0});if(!_0x4a762b)return;_0x395f2b['return']=_0x4a762b['clone']();const _0x325283=_0x4a762b['end']['nodeBefore'],_0x137363=_0x1adcc9['model']['schema'];_0x325283&&_0x137363['isBlock'](_0x325283)&&!_0x137363['isObject'](_0x325283)&&(_0x4a762b=_0x1adcc9['model']['createRange'](_0x4a762b['start'],_0x1adcc9['model']['createPositionAt'](_0x325283,'end'))),this['markInsertion'](_0x4a762b);}),_0x395f2b['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xe775ba=new AcceptSuggestionCommand(_0x1adcc9,this['_suggestions']);_0x1adcc9['commands']['add']('acceptSuggestion',_0xe775ba),this['enableCommand']('acceptSuggestion');const _0x35ccf0=new DiscardSuggestionCommand(_0x1adcc9,this['_suggestions']);_0x1adcc9['commands']['add']('discardSuggestion',_0x35ccf0),this['enableCommand']('discardSuggestion'),_0x1adcc9['commands']['add']('acceptAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x1adcc9,_0xe775ba,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1adcc9['commands']['add']('discardAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x1adcc9,_0x35ccf0,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1adcc9['commands']['add']('acceptSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x1adcc9,_0xe775ba,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1adcc9['commands']['add']('discardSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x1adcc9,_0x35ccf0,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xc829b8=_0x1adcc9['plugins']['get'](_0x208597);this['listenTo'](_0xc829b8,'addComment',(_0x5db33c,{threadId:_0x291423})=>{const _0x2b0d56=this['_suggestions']['get'](_0x291423);_0x2b0d56&&_0x2b0d56['commentThread']&&0x1===_0x2b0d56['commentThread']['length']&&this['_updateSuggestionData'](_0x291423,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xc829b8,'removeComment',(_0x7daa51,{threadId:_0x24dfb9})=>{const _0x2f726e=this['_suggestions']['get'](_0x24dfb9);_0x2f726e&&_0x2f726e['commentThread']&&!_0x2f726e['commentThread']['length']&&this['_updateSuggestionData'](_0x24dfb9,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x60ed99){const _0x58a0e8=_0x2b2f22([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]),_0xa07221=0x3d8d0df,_0x57f24b=0x3df5b67^_0xa07221,_0x30318a=window[_0x2b2f22([0x44,0x61,0x74,0x65])][_0x2b2f22([0x6e,0x6f,0x77])](),_0x1ea331=_0x60ed99[_0x2b2f22([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xbab5ed=new window[(_0x2b2f22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2839bb=>{_0x1ea331[_0x2b2f22([0x6f,0x6e,0x63,0x65])](_0x2b2f22([0x72,0x65,0x61,0x64,0x79]),_0x2839bb);}),_0xe36e04={[_0x2b2f22([0x6b,0x74,0x79])]:_0x2b2f22([0x45,0x43]),[_0x2b2f22([0x75,0x73,0x65])]:_0x2b2f22([0x73,0x69,0x67]),[_0x2b2f22([0x63,0x72,0x76])]:_0x2b2f22([0x50,0x2d,0x32,0x35,0x36]),[_0x2b2f22([0x78])]:_0x2b2f22([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]),[_0x2b2f22([0x79])]:_0x2b2f22([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]),[_0x2b2f22([0x61,0x6c,0x67])]:_0x2b2f22([0x45,0x53,0x32,0x35,0x36])},_0x4790c4=_0x1ea331[_0x2b2f22([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2b2f22([0x67,0x65,0x74])](_0x2b2f22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x495529(){let _0x2c1fed,_0x247aa0=null,_0x49e852=null;try{if(_0x4790c4==_0x2b2f22([0x47,0x50,0x4c]))return _0x2b2f22([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2c1fed=_0x2f9532(),!_0x2c1fed)return _0x2b2f22([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2c1fed[_0x2b2f22([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x49e852=_0x1976d7(_0x2c1fed[_0x2b2f22([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2c1fed[_0x2b2f22([0x6a,0x74,0x69])])),await _0x3d7d64()?_0x2af702()?_0x727834()?_0x2b2f22([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x386056()?(_0x2c1fed[_0x2b2f22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b2f22([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x247aa0=_0x35acb2(_0x2b2f22([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4ee87e()):_0x2b2f22([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2b2f22([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2b2f22([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2b2f22([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x727834(){const _0x64c41a=[_0x2b2f22([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2b2f22([0x74,0x72,0x69,0x61,0x6c])][_0x2b2f22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c1fed[_0x2b2f22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x30318a/0x3e8:0xe10*_0x57f24b;return _0x2c1fed[_0x2b2f22([0x65,0x78,0x70])]<_0x64c41a;}function _0x2af702(){const _0x658164=_0x2c1fed[_0x2b2f22([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x658164)return!0x1;if(_0x658164[_0x2b2f22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b2f22([0x2a])))return!0x0;if(_0x658164[_0x2b2f22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b2f22([0x54,0x43])))return!0x0;if(_0x658164[_0x2b2f22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b2f22([0x52,0x54,0x43]))){if(_0x279631())return!0x0;if(_0x2bf6a0()||_0x16c233())return!0x0;}return!0x1;}function _0x386056(){const _0x231881=_0x2c1fed[_0x2b2f22([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x231881||0x0==_0x231881[_0x2b2f22([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5a0126}=new URL(window[_0x2b2f22([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x231881[_0x2b2f22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a0126))return!0x0;const _0xad1d19=_0x5a0126[_0x2b2f22([0x73,0x70,0x6c,0x69,0x74])](_0x2b2f22([0x2e]));return _0x231881[_0x2b2f22([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x591455=>_0x591455[_0x2b2f22([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b2f22([0x2a])))[_0x2b2f22([0x6d,0x61,0x70])](_0x5e0d7d=>_0x5e0d7d[_0x2b2f22([0x73,0x70,0x6c,0x69,0x74])](_0x2b2f22([0x2e])))[_0x2b2f22([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x214adf=>_0x214adf[_0x2b2f22([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xad1d19[_0x2b2f22([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b2f22([0x6d,0x61,0x70])](_0x506048=>Array(_0xad1d19[_0x2b2f22([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x506048[_0x2b2f22([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b2f22([0x66,0x69,0x6c,0x6c])](_0x506048[0x0]===_0x2b2f22([0x2a])?_0x2b2f22([0x2a]):'')[_0x2b2f22([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x506048))[_0x2b2f22([0x73,0x6f,0x6d,0x65])](_0x1cb397=>_0xad1d19[_0x2b2f22([0x65,0x76,0x65,0x72,0x79])]((_0x4012a8,_0x14a2d3)=>_0x1cb397[_0x14a2d3]===_0x4012a8||_0x1cb397[_0x14a2d3]===_0x2b2f22([0x2a])));}function _0x4ee87e(){return _0x247aa0&&_0x49e852?new window[(_0x2b2f22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x167dc2,_0x5bddf1)=>{_0x247aa0[_0x2b2f22([0x74,0x68,0x65,0x6e])](_0x167dc2,_0x5bddf1),_0x49e852[_0x2b2f22([0x74,0x68,0x65,0x6e])](_0x5aa6d3=>{_0x5aa6d3!=_0x2b2f22([0x56,0x61,0x6c,0x69,0x64])&&_0x167dc2(_0x5aa6d3);},_0x5bddf1);}):_0x247aa0||_0x49e852||_0x2b2f22([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1976d7(_0x31e7ad,_0x1ef6b1){return new window[(_0x2b2f22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa144ef=>{if(_0x3b53c3())return _0xa144ef(_0x2b2f22([0x56,0x61,0x6c,0x69,0x64]));_0x45d65a(),_0x1ea331[_0x2b2f22([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2b2f22([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x258b3c=!0x1;const _0xa66f=_0x424839();function _0x19aa9c(_0x13c651){return!!_0x13c651&&(typeof _0x13c651===_0x2b2f22([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x13c651===_0x2b2f22([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x13c651[_0x2b2f22([0x74,0x68,0x65,0x6e])]===_0x2b2f22([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x13c651[_0x2b2f22([0x63,0x61,0x74,0x63,0x68])]===_0x2b2f22([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x46eb12(_0x30fa89){_0x3b13f7(_0x30fa89)[_0x2b2f22([0x74,0x68,0x65,0x6e])](_0x29d4dd=>{if(!_0x29d4dd||_0x29d4dd[_0x2b2f22([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2b2f22([0x6f,0x6b]))return _0x2b2f22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1c250b(_0x4260b0(_0xa66f+_0x1ef6b1))!=_0x29d4dd[_0x2b2f22([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2b2f22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2b2f22([0x56,0x61,0x6c,0x69,0x64]);})[_0x2b2f22([0x74,0x68,0x65,0x6e])](_0x18d880=>(_0x5e2038(),_0x18d880),()=>{const _0x541db7=_0x11c219();return null==_0x541db7?(_0x5e2038(),_0x2b2f22([0x56,0x61,0x6c,0x69,0x64])):_0x2b2f22(_0x30318a-_0x541db7>(0x27d454df^_0xa07221)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2b2f22([0x74,0x68,0x65,0x6e])](_0xa144ef)[_0x2b2f22([0x63,0x61,0x74,0x63,0x68])](()=>{_0xa144ef(_0x2b2f22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xf47d0d=0x3ee3e5f^_0xa07221;function _0x5e2038(){const _0x45b929=_0x2b2f22([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c250b(_0x4260b0(_0x31e7ad)),_0x29e2a6=_0x225114(_0x1c250b(window[_0x2b2f22([0x4d,0x61,0x74,0x68])][_0x2b2f22([0x63,0x65,0x69,0x6c])](_0x30318a/_0xf47d0d)));window[_0x2b2f22([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b2f22([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x45b929,_0x29e2a6);}function _0x11c219(){const _0x357b74=_0x2b2f22([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c250b(_0x4260b0(_0x31e7ad)),_0x577df7=window[_0x2b2f22([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b2f22([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x357b74);return _0x577df7?window[_0x2b2f22([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x225114(_0x577df7),0x10)*_0xf47d0d:null;}function _0x3b13f7(_0x2e9132){return new window[(_0x2b2f22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50c8cf,_0x4ef8b1)=>{_0x2e9132[_0x2b2f22([0x74,0x68,0x65,0x6e])](_0x50c8cf,_0x4ef8b1),window[_0x2b2f22([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4ef8b1,0x3d9041f^_0xa07221);});}}_0x1ea331[_0x2b2f22([0x6f,0x6e])](_0x2b2f22([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xa02d66,_0xbadb0b)=>{if(_0xbadb0b[0x0]!=_0x31e7ad)return _0xa144ef(_0x2b2f22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xbadb0b[0x1]={..._0xbadb0b[0x1],[_0x2b2f22([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xa66f};},{[_0x2b2f22([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b2f22([0x68,0x69,0x67,0x68])}),_0x1ea331[_0x2b2f22([0x6f,0x6e])](_0x2b2f22([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3ce73b=>{_0x19aa9c(_0x3ce73b[_0x2b2f22([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x258b3c=!0x0,_0x46eb12(_0x3ce73b[_0x2b2f22([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2b2f22([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b2f22([0x6c,0x6f,0x77])}),_0xbab5ed[_0x2b2f22([0x74,0x68,0x65,0x6e])](()=>{_0x258b3c||_0xa144ef(_0x2b2f22([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3b53c3(){return _0x1ea331[_0x2b2f22([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b2f22([0x76,0x69,0x65,0x77])][_0x2b2f22([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2b2f22([0x61,0x75,0x74,0x6f]);}function _0x45d65a(){_0x1ea331[_0x2b2f22([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b2f22([0x76,0x69,0x65,0x77])][_0x2b2f22([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2b2f22([0x61,0x75,0x74,0x6f]);}}function _0x35acb2(_0x59c195){const _0x48ec7c=[new window[(_0x2b2f22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35fc58=>setTimeout(_0x35fc58,0x3d1ee13^_0xa07221)),_0xbab5ed[_0x2b2f22([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2b2f22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x222627=>{let _0x9770a5=0x0;_0x1ea331[_0x2b2f22([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b2f22([0x6f,0x6e])](_0x2b2f22([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3b0d9e,_0x669b13)=>{_0x669b13[0x0][_0x2b2f22([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x9770a5++,_0x9770a5==(0x3d8d537^_0xa07221)&&(_0x222627(),_0x3b0d9e[_0x2b2f22([0x6f,0x66,0x66])]());});}))];return window[_0x2b2f22([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2b2f22([0x72,0x61,0x63,0x65])](_0x48ec7c)[_0x2b2f22([0x74,0x68,0x65,0x6e])](()=>_0x59c195);}async function _0x5a7653(){await _0xbab5ed,_0x1ea331[_0x2b2f22([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b2f22([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c853a,_0x1ea331[_0x2b2f22([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b2f22([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c853a,_0x1ea331[_0x2b2f22([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2b2f22([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x279631(){return _0x2623d9(_0x2b2f22([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2041a1(_0x2b2f22([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2b2f22([0x73,0x74,0x61,0x74,0x65])]==_0x2b2f22([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2bf6a0(){return _0x2623d9(_0x2b2f22([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 _0x16c233(){return _0x2623d9(_0x2b2f22([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x10155e(_0x169bf9){const _0x505374=_0x107ba2();_0x1ea331[_0x505374]=_0x2b2f22([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x169bf9,_0x169bf9!=_0x2b2f22([0x56,0x61,0x6c,0x69,0x64])&&_0x5a7653();}function _0x107ba2(){const _0x5d5ccb=window[_0x2b2f22([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2b2f22([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2b2f22([0x6e,0x6f,0x77])]())[_0x2b2f22([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2b2f22([0x2e]),'');let _0x2ea138=_0x2b2f22([0x52]);for(let _0x374979=0x0;_0x374979<_0x5d5ccb[_0x2b2f22([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x374979+=0x2){let _0x1bd614=window[_0x2b2f22([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d5ccb[_0x2b2f22([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x374979,_0x374979+0x2));_0x1bd614>=_0x58a0e8[_0x2b2f22([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1bd614-=_0x58a0e8[_0x2b2f22([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2ea138+=_0x58a0e8[_0x1bd614];}return _0x2ea138;}function _0x2f9532(){const _0x44dc83=_0x4790c4[_0x2b2f22([0x73,0x70,0x6c,0x69,0x74])](_0x2b2f22([0x2e]));if(0x3!=_0x44dc83[_0x2b2f22([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3ca2f2(_0x44dc83[0x1]);function _0x3ca2f2(_0x382c9e){const _0x2716e2=_0x168ff9(_0x382c9e);return _0x2716e2&&_0x3fa0cb()?_0x2716e2:null;function _0x3fa0cb(){const _0x6dd04a=_0x2716e2[_0x2b2f22([0x6a,0x74,0x69])],_0x4117c7=window[_0x2b2f22([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6dd04a[_0x2b2f22([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x6dd04a[_0x2b2f22([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x410209={..._0x2716e2,[_0x2b2f22([0x6a,0x74,0x69])]:_0x6dd04a[_0x2b2f22([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x6dd04a[_0x2b2f22([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x410209[_0x2b2f22([0x76,0x63])],_0x4260b0(_0x410209)==_0x4117c7;}}}async function _0x3d7d64(){let _0x3d5823=!0x0;try{const _0x4e7860=_0x4790c4[_0x2b2f22([0x73,0x70,0x6c,0x69,0x74])](_0x2b2f22([0x2e])),[_0x4e035b,_0x4d6fd3,_0x5577b6]=_0x4e7860;return _0x4e4b99(_0x4e035b),await _0x24936c(_0x4e035b,_0x4d6fd3,_0x5577b6),_0x3d5823;}catch{return!0x1;}function _0x4e4b99(_0xf5ba61){const _0x35d982=_0x168ff9(_0xf5ba61);_0x35d982&&_0x35d982[_0x2b2f22([0x61,0x6c,0x67])]==_0x2b2f22([0x45,0x53,0x32,0x35,0x36])||(_0x3d5823=!0x1);}async function _0x24936c(_0x1f537a,_0x1bfc9f,_0x386c34){const _0x271d65=window[_0x2b2f22([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2b2f22([0x66,0x72,0x6f,0x6d])](_0x561852(_0x386c34),_0x1629c8=>_0x1629c8[_0x2b2f22([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xdec95f=new window[(_0x2b2f22([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2b2f22([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1f537a+_0x2b2f22([0x2e])+_0x1bfc9f),_0x187298=window[_0x2b2f22([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2b2f22([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x187298)return;const _0x3ed4ac=await _0x187298[_0x2b2f22([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2b2f22([0x6a,0x77,0x6b]),_0xe36e04,{[_0x2b2f22([0x6e,0x61,0x6d,0x65])]:_0x2b2f22([0x45,0x43,0x44,0x53,0x41]),[_0x2b2f22([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2b2f22([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2b2f22([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x187298[_0x2b2f22([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2b2f22([0x6e,0x61,0x6d,0x65])]:_0x2b2f22([0x45,0x43,0x44,0x53,0x41]),[_0x2b2f22([0x68,0x61,0x73,0x68])]:{[_0x2b2f22([0x6e,0x61,0x6d,0x65])]:_0x2b2f22([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3ed4ac,_0x271d65,_0xdec95f)||(_0x3d5823=!0x1);}}function _0x168ff9(_0x3a0d91){return _0x3a0d91[_0x2b2f22([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2b2f22([0x65,0x79]))?JSON[_0x2b2f22([0x70,0x61,0x72,0x73,0x65])](_0x561852(_0x3a0d91)):null;}function _0x561852(_0x20dba5){return window[_0x2b2f22([0x61,0x74,0x6f,0x62])](_0x20dba5[_0x2b2f22([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2b2f22([0x2b]))[_0x2b2f22([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2b2f22([0x2f])));}function _0x4260b0(_0x9046bd){let _0x39d013=0x1505;function _0x13124e(_0x257205){for(let _0x433e2f=0x0;_0x433e2f<_0x257205[_0x2b2f22([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x433e2f++){const _0x4d1230=_0x257205[_0x2b2f22([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x433e2f);_0x39d013=(_0x39d013<<0x5)+_0x39d013+_0x4d1230,_0x39d013&=_0x39d013;}}function _0x315810(_0x3852e0){Array[_0x2b2f22([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3852e0)?_0x3852e0[_0x2b2f22([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x315810):_0x3852e0&&typeof _0x3852e0==_0x2b2f22([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2b2f22([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3852e0)[_0x2b2f22([0x73,0x6f,0x72,0x74])]()[_0x2b2f22([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xdbe3c6,_0x3ed44b])=>{_0x13124e(_0xdbe3c6),_0x315810(_0x3ed44b);}):_0x13124e(window[_0x2b2f22([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3852e0));}return _0x315810(_0x9046bd),_0x39d013>>>0x0;}function _0x1c250b(_0x531fe3){return _0x531fe3[_0x2b2f22([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2b2f22([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2b2f22([0x30]));}function _0x225114(_0x5debfb){return _0x5debfb[_0x2b2f22([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2b2f22([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2b2f22([0x6a,0x6f,0x69,0x6e])]('');}function _0x2623d9(_0x57ff5c){return _0x1ea331[_0x2b2f22([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2b2f22([0x68,0x61,0x73])](_0x57ff5c);}function _0x2041a1(_0x259f59){return _0x1ea331[_0x2b2f22([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2b2f22([0x67,0x65,0x74])](_0x259f59);}function _0x3c853a(){}function _0x2b2f22(_0x54b4d4){return _0x54b4d4['map'](_0x463c8a=>String['fromCharCode'](_0x463c8a))['join']('');}_0x10155e(await _0x495529());}(this);}set['adapter'](_0x402718){if(this['_adapter'])throw new _0xa8575f('track-changes-adapter-already-set',this);this['_adapter']=_0x402718;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x30ecad=!0x1,toJSON:_0x5c8d22=!0x1}={}){const _0x59f098=[];for(const _0x37e56b of this['_suggestions']['values']())_0x30ecad&&!_0x37e56b['isInContent']||_0x59f098['push'](_0x37e56b);return _0x5c8d22?_0x59f098['map'](_0x26a5d0=>_0x26a5d0['toJSON']()):_0x59f098;}['getSuggestion'](_0x30c11b){const _0x39ee71=this['_suggestions']['get'](_0x30c11b);if(!_0x39ee71)throw new _0xa8575f('track-changes-suggestion-not-found',this);return _0x39ee71;}['hasSuggestion'](_0x4d10e4){return this['_suggestions']['has'](_0x4d10e4);}['addSuggestionData'](_0x83013c){const {authorId:_0x230dce,id:_0x1aaca8,originalSuggestionId:_0x558640,attributes:_0x31fad2}=_0x83013c,[_0x18985a,_0x1010a2]=_0x83013c['type']['split'](':'),_0x4b7870=this['_suggestions']['get'](_0x1aaca8)||this['_createSuggestion'](_0x18985a,_0x1010a2,_0x1aaca8,_0x230dce,_0x31fad2,_0x558640);if(this['_addThreadToSuggestion'](_0x4b7870),this['_checkSuggestionCorrectness'](_0x4b7870,_0x18985a,_0x1010a2||null,_0x230dce),_0x4b7870['createdAt']=_0x83013c['createdAt'],_0x4b7870['_isDataLoaded']=!0x0,_0x31fad2&&_0x31fad2['@external']){const _0x2c4532=_0x31fad2['@external'],_0x111fd0=this['_getExternalAuthor'](_0x2c4532['authorName']);_0x4b7870['authoredAt']=_0x2c4532['createdAt'],_0x4b7870['author']=_0x111fd0,_0x4b7870['isExternal']=!0x0;}else _0x4b7870['authoredAt']=_0x83013c['createdAt'];switch(_0x83013c['data']&&(_0x4b7870['data']=_0x83013c['data']),_0x83013c['attributes']&&(_0x4b7870['attributes']=_0x83013c['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4b7870['_saved']=!0x0),this['_suggestionState']['get'](_0x4b7870)){case'notReady':this['_suggestionState']['set'](_0x4b7870,'dataReady');break;case'markerReady':_0x4b7870['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4b7870])),this['_refreshSuggestionsChain'](new Set([_0x4b7870])),this['_suggestionState']['set'](_0x4b7870,'ready'),this['fire']('suggestionLoaded',_0x4b7870)):this['_suggestionState']['set'](_0x4b7870,'removed');}return _0x4b7870;}['acceptSuggestion'](_0x4cc179){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4a600a of _0x4cc179['getAllAdjacentSuggestions']())_0x4a600a['accept']();});});}['discardSuggestion'](_0xd774ef){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x524744 of _0xd774ef['getAllAdjacentSuggestions']())_0x524744['discard']();});});}['enableCommand'](_0x1c2f1a,_0x26e1dc){const _0x17203e=this['editor']['commands']['get'](_0x1c2f1a);if(!_0x17203e)throw new _0xa8575f('track-changes-command-not-found',this,{'commandName':_0x1c2f1a});if(this['_enabledCommands']['has'](_0x17203e))throw new _0xa8575f('track-changes-enable-command-twice',this,{'commandName':_0x1c2f1a});this['_enabledCommands']['add'](_0x17203e),_0x26e1dc&&_0x17203e['on']('execute',(_0xa5b8f4,_0xd1b3f0)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0xd1b3f0['length']>0x0&&_0xd1b3f0[_0xd1b3f0['length']-0x1]&&_0xd1b3f0[_0xd1b3f0['length']-0x1]['forceDefaultExecution']?_0xd1b3f0['pop']():(_0xa5b8f4['return']=_0x26e1dc((..._0x3e6dc9)=>_0x17203e['execute'](..._0x3e6dc9,{'forceDefaultExecution':!0x0}),..._0xd1b3f0),_0xa5b8f4['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1dcffc){let _0x1599d9,_0x58cd3a;const _0x53e9a5=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1599d9=_0x1dcffc();}catch(_0x34930d){_0x58cd3a=_0x34930d;}return _0x53e9a5||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x58cd3a&&_0xa8575f['rethrowUnexpectedError'](_0x58cd3a,this),_0x1599d9;}['markInsertion'](_0x41e001,_0x264ec9=null,_0x216741={}){if(_0x41e001['isCollapsed'])return null;const _0x5e60ca=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x216741['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5cd6b4,meta:_0x572420}of this['_findSuggestions'](_0x41e001,'insertion'))if(_0x572420['isOwn']){if(!_0x572420['isNextTo']){if(_0x572420['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x5cd6b4,_0x216741))continue;return _0x5cd6b4;}if(zt(_0x5cd6b4,_0x216741))return _0x5cd6b4;this['_breakSuggestionMarker'](_0x5cd6b4,_0x41e001['start'],_0x41e001['end']);break;}if(_0x264ec9==_0x5cd6b4['subType']&&zt(_0x5cd6b4,_0x216741)){const _0x40edcd=_0x5cd6b4['getFirstRange']();return _0x40edcd['start']['isEqual'](_0x41e001['end'])?this['_setSuggestionRange'](_0x5cd6b4,this['_model']['createRange'](_0x41e001['start'],_0x40edcd['end'])):this['_setSuggestionRange'](_0x5cd6b4,this['_model']['createRange'](_0x40edcd['start'],_0x41e001['end'])),_0x5cd6b4;}}const _0x4a8cf3=_0x424839(),_0xc071ca=_0x5e60ca['id'],_0x5b2ac8=_0x264ec9?'insertion:'+_0x264ec9:'insertion',_0x56564a=this['_setSuggestionData']({'id':_0x4a8cf3,'type':_0x5b2ac8,'createdAt':new Date(),'authorId':_0xc071ca,'attributes':_0x216741});return this['_addSuggestionMarker'](_0x5b2ac8,_0x4a8cf3,_0xc071ca,_0x41e001),_0x56564a;}['markMultiRangeInsertion'](_0x28f54c,_0x583b0c='multi',_0x251091={}){const _0x272026=this['editor']['plugins']['get']('Users')['me'],_0x296094=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x583b0c,'join');this['_trackingSessionId']&&(_0x251091['trackingSessionId']=this['_trackingSessionId']);for(const _0x31b2ae of this['getSuggestions']())if(_0x31b2ae['author']['id']==_0x272026['id']&&'insertion'==_0x31b2ae['type']&&_0x31b2ae['subType']==_0x583b0c&&zt(_0x31b2ae,_0x251091)&&(_0x296094(_0x31b2ae['getRanges'](),_0x28f54c)||_0x296094(_0x28f54c,_0x31b2ae['getRanges']()))){for(const _0x2e24bd of _0x28f54c)_0x31b2ae['addRange'](_0x2e24bd);return _0x31b2ae;}for(const {suggestion:_0x17fed4,meta:_0x2ff542}of this['_findSuggestions'](_0x28f54c,'insertion')){if(!_0x2ff542['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2ff542['containsRangeInObject'])continue;if(!zt(_0x17fed4,_0x251091))continue;let _0x36b2c2=!0x0;for(const _0x54aaa6 of _0x17fed4['getRanges']())for(const _0x5e3aa2 of _0x28f54c)if(!_0x54aaa6['containsRange'](_0x5e3aa2)){_0x36b2c2=!0x1;break;}if(_0x36b2c2)return _0x17fed4;}const _0x850057=_0x424839(),_0x2d54d1=_0x272026['id'],_0x4fe7b6='insertion:'+_0x583b0c,_0x497f58=this['_setSuggestionData']({'id':_0x850057,'type':_0x4fe7b6,'createdAt':new Date(),'authorId':_0x2d54d1,'attributes':_0x251091});for(const _0x29c1de of _0x28f54c)this['_addSuggestionMarker'](_0x4fe7b6,_0x850057,_0x2d54d1,_0x29c1de,Suggestion['getMultiRangeId']());return _0x497f58;}['markInlineFormat'](_0x329d8d,_0x3e6d78,_0xa148de=null,_0x54403d={}){if(_0xa148de=_0xa148de||xt(_0x3e6d78),_0x329d8d['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x54403d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x26bc61=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xa148de,'accept');return this['forceDefaultExecution'](()=>_0x26bc61([_0x329d8d],_0x3e6d78,_0x54403d)),null;}const _0x102030=this['editor']['plugins']['get']('Users')['me'],_0x551c2a=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x331824,meta:_0x3ea301}of this['_findSuggestions'](_0x329d8d,'insertion'))_0x3ea301['isOwn']&&!_0x3ea301['isInsideObject']&&_0x551c2a['push'](..._0x331824['getRanges']());}const _0x559074=function(_0x3b2079,_0x32f877){const _0x1d5a37=[];for(const _0x23a495 of _0x32f877){const _0x31e55a=_0x3b2079['getIntersection'](_0x23a495);_0x31e55a&&_0x1d5a37['push'](_0x31e55a);}return _0x1d5a37;}(_0x329d8d,_0x551c2a),_0x4f0cb6=function(_0x62c13c,_0x1f0caa){const _0xca0ebb=[_0x62c13c];for(const _0x2c0523 of _0x1f0caa){let _0x258c94=0x0;for(;_0x258c94<_0xca0ebb['length'];){const _0x3f2d08=_0xca0ebb[_0x258c94]['getDifference'](_0x2c0523);_0xca0ebb['splice'](_0x258c94,0x1,..._0x3f2d08),_0x258c94+=_0x3f2d08['length'];}}return _0xca0ebb;}(_0x329d8d,_0x551c2a);_0x559074['length']&&this['_model']['change'](()=>{for(const _0x148e6b of _0x559074){const _0x4af396=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xa148de,'accept');this['forceDefaultExecution'](()=>_0x4af396([_0x148e6b],_0x3e6d78,_0x54403d));}});for(const _0x1583c1 of _0x4f0cb6){let _0x3af3a3=null,_0x79c872=_0x1583c1['start'],_0x3c17a3=_0x1583c1['end'];for(const {suggestion:_0x3fec9a,meta:_0x11d3e3}of this['_findSuggestions'](_0x1583c1,'formatInline')){if(!_0x11d3e3['isOwn'])continue;if(_0x3fec9a['subType']!=_0xa148de)continue;if(!zt(_0x3fec9a,_0x54403d))continue;const _0x2bc0bc=_0x3fec9a['getFirstRange']();if(_0x2bc0bc['containsRange'](_0x1583c1,!0x0))return null;_0x79c872=_0x79c872['isBefore'](_0x2bc0bc['start'])?_0x79c872:_0x2bc0bc['start'],_0x3c17a3=_0x3c17a3['isAfter'](_0x2bc0bc['end'])?_0x3c17a3:_0x2bc0bc['end'],_0x3af3a3?_0x2bc0bc['start']['isBefore'](_0x3af3a3['getFirstRange']()['start'])?(_0x3af3a3['removeMarkers'](),_0x3af3a3=_0x3fec9a):_0x3fec9a['removeMarkers']():_0x3af3a3=_0x3fec9a;}const _0x3e1b70=this['_model']['createRange'](_0x79c872,_0x3c17a3);if(_0x3af3a3)this['_setSuggestionRange'](_0x3af3a3,_0x3e1b70);else{const _0x469ad3=_0x424839(),_0x1ba937=_0x102030['id'];this['_setSuggestionData']({'id':_0x469ad3,'type':'formatInline:'+_0xa148de,'data':_0x3e6d78,'createdAt':new Date(),'authorId':_0x1ba937,'attributes':_0x54403d}),this['_addSuggestionMarker']('formatInline:'+_0xa148de,_0x469ad3,_0x1ba937,_0x3e1b70);}}return null;}['markBlockFormat'](_0x5bba12,_0x200c2a,_0x410e21=[],_0x2131b5=null,_0x4fc9c3={}){_0x200c2a['formatGroupId']||(_0x200c2a['formatGroupId']=_0x200c2a['commandName']),_0x200c2a['multipleBlocks']=_0x5bba12['is']('range'),_0x2131b5=_0x2131b5||xt(_0x200c2a);const _0x40497a=_0x410e21['map'](_0xa4a67b=>Vt(_0xa4a67b,this['_model'])),_0x25e38f=_0x5bba12['is']('range')?_0x5bba12:Vt(_0x5bba12,this['_model']);if(this['_trackingSessionId']&&(_0x4fc9c3['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x138a3d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2131b5,'accept');return this['forceDefaultExecution'](()=>_0x138a3d([_0x25e38f],_0x200c2a,_0x4fc9c3)),null;}_0x40497a['push'](_0x25e38f);let _0x577f92=!0x0;for(const _0x2d0763 of _0x40497a)if(!this['_rangeIsInLocalUserInsertion'](_0x2d0763)){_0x577f92=!0x1;break;}if(_0x577f92&&'always'!==this['_trackFormatChanges']){const _0x2bed3c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2131b5,'accept');return this['forceDefaultExecution'](()=>_0x2bed3c([_0x25e38f],_0x200c2a,_0x4fc9c3)),null;}let _0x5af039=null,_0x244115=_0x25e38f['start'],_0x3438b3=_0x25e38f['end'];for(const {suggestion:_0x4fb568,meta:_0x1edb04}of this['_findSuggestions'](_0x25e38f,'formatBlock')){if(!_0x1edb04['isOwn'])continue;if(_0x1edb04['isNextTo']||_0x1edb04['containsRangeInObject']||_0x1edb04['isInsideObject'])continue;if(_0x4fb568['data']['formatGroupId']!=_0x200c2a['formatGroupId'])continue;if(!zt(_0x4fb568,_0x4fc9c3))continue;const _0x5dfd90=_0x4fb568['getFirstRange']();if(_0x4fb568['subType']==_0x2131b5){if(_0x5dfd90['containsRange'](_0x25e38f,!0x0))return null;_0x244115=_0x244115['isBefore'](_0x5dfd90['start'])?_0x244115:_0x5dfd90['start'],_0x3438b3=_0x3438b3['isAfter'](_0x5dfd90['end'])?_0x3438b3:_0x5dfd90['end'],_0x5af039?_0x5dfd90['start']['isBefore'](_0x5af039['getFirstRange']()['start'])?(_0x5af039['removeMarkers'](),_0x5af039=_0x4fb568):_0x4fb568['removeMarkers']():_0x5af039=_0x4fb568;}else{const _0x41546c=_0x25e38f['getIntersection'](_0x5dfd90);this['_cutOutSuggestionMarker'](_0x4fb568,_0x41546c);}}const _0x37513d=this['editor']['plugins']['get']('Users')['me'],_0x171b27=_0x424839(),_0x2ac0d0=_0x37513d['id'];if(_0x5af039)return this['_setSuggestionRange'](_0x5af039,this['_model']['createRange'](_0x244115,_0x3438b3)),_0x5af039;{const _0x586024=this['_setSuggestionData']({'id':_0x171b27,'type':'formatBlock:'+_0x2131b5,'data':_0x200c2a,'createdAt':new Date(),'authorId':_0x2ac0d0,'attributes':_0x4fc9c3});return this['_addSuggestionMarker']('formatBlock:'+_0x2131b5,_0x171b27,_0x2ac0d0,this['_model']['createRange'](_0x244115,_0x3438b3)),_0x586024;}}['markMultiRangeBlockFormat'](_0x21cb92,_0x15adc6,_0x500571=[],_0x1c33a9=null,_0x244c47={}){_0x15adc6['formatGroupId']||(_0x15adc6['formatGroupId']=_0x15adc6['commandName']);const _0x253627=_0x21cb92[0x0];_0x15adc6['multipleBlocks']=_0x253627['is']('range'),_0x1c33a9=_0x1c33a9||xt(_0x15adc6);const _0x2471d8=_0x500571['map'](_0x280051=>Vt(_0x280051,this['_model'])),_0x201a7c=_0x253627['is']('range')?_0x21cb92:_0x21cb92['map'](_0x48127f=>Vt(_0x48127f,this['_model']));if(this['_trackingSessionId']&&(_0x244c47['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x32cec0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c33a9,'accept');return this['forceDefaultExecution'](()=>_0x32cec0(_0x201a7c,_0x15adc6,_0x244c47)),null;}_0x2471d8['push'](..._0x201a7c);let _0x8dc78d=!0x0;for(const _0x567f37 of _0x2471d8)if(!this['_rangeIsInLocalUserInsertion'](_0x567f37)){_0x8dc78d=!0x1;break;}if(_0x8dc78d&&'always'!==this['_trackFormatChanges']){const _0x509383=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c33a9,'accept');return this['forceDefaultExecution'](()=>_0x509383(_0x201a7c,_0x15adc6,_0x244c47)),null;}const _0x1ad907=this['editor']['plugins']['get']('Users')['me'];for(const _0x37b85d of this['getSuggestions']()){const _0x3a75fe=_0x37b85d['data'];if(_0x37b85d['author']['id']!=_0x1ad907['id'])continue;if('formatBlock'!=_0x37b85d['type']||_0x3a75fe['formatGroupId']!=_0x15adc6['formatGroupId'])continue;if(!zt(_0x37b85d,_0x244c47))continue;const _0x3945da=_0x37b85d['subType']==_0x1c33a9;for(let _0x24b1e3=0x0;_0x24b1e3<_0x201a7c['length'];_0x24b1e3++){const _0x1b0978=_0x201a7c[_0x24b1e3];for(const _0x9facca of _0x37b85d['getMarkers']()){const _0x413063=_0x9facca['getRange']();if(_0x1b0978['isEqual'](_0x413063)){_0x3945da?(_0x201a7c['splice'](_0x24b1e3,0x1),_0x24b1e3--):_0x37b85d['removeMarker'](_0x9facca['name']);break;}}}}if(0x0==_0x201a7c['length'])return null;const _0x285a0e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c33a9,'join');for(const _0x732b7b of this['getSuggestions']()){const _0x5317fb=_0x732b7b['data'];if(_0x732b7b['author']['id']==_0x1ad907['id']&&('formatBlock'==_0x732b7b['type']&&_0x5317fb['formatGroupId']==_0x15adc6['formatGroupId']&&_0x732b7b['subType']==_0x1c33a9&&zt(_0x732b7b,_0x244c47)&&(_0x285a0e(_0x732b7b['getRanges'](),_0x201a7c)||_0x285a0e(_0x201a7c,_0x732b7b['getRanges']())))){for(const _0x10701c of _0x201a7c)_0x732b7b['addRange'](_0x10701c);return _0x732b7b;}}const _0x59468d=_0x424839(),_0x57a1bb=_0x1ad907['id'],_0x269246='formatBlock:'+_0x1c33a9,_0x317a7f=this['_setSuggestionData']({'id':_0x59468d,'type':_0x269246,'data':_0x15adc6,'createdAt':new Date(),'authorId':_0x57a1bb,'attributes':_0x244c47});for(const _0x4b7280 of _0x201a7c)this['_addSuggestionMarker'](_0x269246,_0x59468d,_0x57a1bb,_0x4b7280,Suggestion['getMultiRangeId']());return _0x317a7f;}['markDeletion'](_0x30f57a,_0x497056=null,_0x3c23bf={}){if(_0x30f57a['isCollapsed'])return null;const _0x2a6f48=this['editor']['plugins']['get']('Users')['me'],_0x5605df=new _0xe62106(_0x30f57a['start'],_0x30f57a['end']);this['_trackingSessionId']&&(_0x3c23bf['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x31febc,meta:_0x40f283}of this['_findSuggestions'](_0x5605df,'insertion'))if(_0x40f283['isOwn']&&!_0x40f283['isNextTo']){if(_0x31febc['isMultiRange']){const _0xc1fa9c=_0x31febc['getRanges']()['filter'](_0x2ffc4a=>'$graveyard'!=_0x2ffc4a['root']['rootName']);_0xc1fa9c['every'](_0x4a2eaa=>_0x5605df['containsRange'](_0x4a2eaa,!0x0))&&_0x31febc['discard']();if(_0xc1fa9c['some'](_0x5f4e96=>_0x5f4e96['containsRange'](_0x5605df,!0x0))){const _0xca2bd2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x497056,'accept');return this['forceDefaultExecution'](()=>_0xca2bd2([_0x5605df],null,_0x3c23bf)),null;}}else{const _0x38952c=_0x5605df['getIntersection'](_0x31febc['getFirstRange']());null!==_0x38952c&&_0x31febc['_onDiscard']([_0x38952c],null,_0x3c23bf);}}if(_0x5605df['detach'](),_0x5605df['isCollapsed']||'$graveyard'==_0x5605df['root']['rootName'])return null;let _0x22035e=null,_0x1f652f=_0x5605df['start'],_0x56ec13=_0x5605df['end'];const _0x1d184=this['_findSuggestions'](_0x5605df,'deletion');for(const {suggestion:_0x3b42f3,meta:_0x3046de}of _0x1d184){const _0x1e016b=this['_model']['createRange'](_0x1f652f,_0x56ec13);if(_0x3046de['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3046de['containsRangeInObject']&&!_0x3046de['isInsideObject'])){if(_0x3b42f3['isMultiRange']){if(!zt(_0x3b42f3,_0x3c23bf))continue;let _0x11be73=!0x0;for(const _0x23aff2 of _0x3b42f3['getRanges']()){if(_0x23aff2['containsRange'](_0x1e016b,!0x0))return _0x3b42f3;_0x1e016b['containsRange'](_0x23aff2)||(_0x11be73=!0x1);}_0x11be73&&_0x3b42f3['discard']();}else{const _0x49001f=_0x3b42f3['getFirstRange']();if(_0x49001f['containsRange'](_0x1e016b,!0x0))return _0x3b42f3;if(!zt(_0x3b42f3,_0x3c23bf)){_0x1e016b['containsRange'](_0x49001f)?_0x3b42f3['removeMarkers']():_0x49001f['containsPosition'](_0x1f652f)?_0x1f652f=_0x49001f['end']:_0x49001f['containsPosition'](_0x56ec13)&&(_0x56ec13=_0x49001f['start']);continue;}_0x1f652f=_0x1f652f['isBefore'](_0x49001f['start'])?_0x1f652f:_0x49001f['start'],_0x56ec13=_0x56ec13['isAfter'](_0x49001f['end'])?_0x56ec13:_0x49001f['end'],_0x3c23bf=Object['assign']({},_0x3b42f3['attributes']),_0x22035e?_0x49001f['start']['isBefore'](_0x22035e['getFirstRange']()['start'])?(_0x22035e['removeMarkers'](),_0x22035e=_0x3b42f3):_0x3b42f3['removeMarkers']():_0x22035e=_0x3b42f3;}}}if(_0x22035e)return this['_setSuggestionRange'](_0x22035e,this['_model']['createRange'](_0x1f652f,_0x56ec13)),_0x22035e;{const _0x191a4a=_0x424839(),_0x5c1952=this['_model']['createRange'](_0x1f652f,_0x56ec13),_0x3c872d=_0x2a6f48['id'],_0x552ecf=_0x497056?'deletion:'+_0x497056:'deletion',_0x52d8c9=this['_setSuggestionData']({'id':_0x191a4a,'type':_0x552ecf,'createdAt':new Date(),'authorId':_0x3c872d,'attributes':_0x3c23bf});return this['_addSuggestionMarker'](_0x552ecf,_0x191a4a,_0x3c872d,_0x5c1952),_0x52d8c9;}}['markMultiRangeDeletion'](_0x3fa9d1,_0x41b29a='multi',_0x1aea4b={}){const _0x320571=this['editor']['plugins']['get']('Users')['me'],_0x23ea3d=_0x3fa9d1['map'](_0x460583=>new _0xe62106(_0x460583['start'],_0x460583['end'])),_0x2858aa=new Set();this['_trackingSessionId']&&(_0x1aea4b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x181ffa,meta:_0x58bad6}of this['_findSuggestions'](_0x23ea3d,'insertion'))_0x58bad6['isOwn']&&!_0x58bad6['isNextTo']&&_0x2858aa['add'](_0x181ffa);for(const _0x5a0ce5 of _0x2858aa)if(_0x5a0ce5['isMultiRange']){const _0x28adbe=_0x5a0ce5['getRanges']();(!_0x5a0ce5['attributes']||!_0x5a0ce5['attributes']['skipNestingCheck'])&&(_0x28adbe['every'](_0x50348d=>_0x23ea3d['some'](_0x30ef0c=>_0x30ef0c['containsRange'](_0x50348d,!0x0)))&&_0x5a0ce5['discard']());if(_0x23ea3d['every'](_0x58ebef=>_0x28adbe['some'](_0x2f1b23=>_0x2f1b23['containsRange'](_0x58ebef,!0x0)))){const _0x541759=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x41b29a,'accept');return this['forceDefaultExecution'](()=>_0x541759(_0x3fa9d1,null,_0x1aea4b)),null;}}else{const _0x1d9981=_0x5a0ce5['getFirstRange']();_0x23ea3d['some'](_0x23985a=>_0x23985a['containsRange'](_0x1d9981,!0x0))&&_0x5a0ce5['discard']();if(_0x23ea3d['every'](_0x4699c2=>_0x1d9981['containsRange'](_0x4699c2,!0x0))){const _0x16e2bb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x41b29a,'accept');return this['forceDefaultExecution'](()=>_0x16e2bb(_0x23ea3d,null,_0x1aea4b)),null;}}const _0x32218d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x41b29a,'join');let _0x244f1c=null;for(const _0x44b6e2 of this['getSuggestions']())if(_0x44b6e2['author']['id']==_0x320571['id']&&_0x44b6e2['isInContent']&&'deletion'==_0x44b6e2['type']&&_0x44b6e2['subType']==_0x41b29a&&zt(_0x44b6e2,_0x1aea4b)&&(_0x32218d(_0x44b6e2['getRanges'](),_0x23ea3d)||_0x32218d(_0x23ea3d,_0x44b6e2['getRanges']()))){if(_0x244f1c){if(_0x44b6e2['commentThread']&&_0x44b6e2['commentThread']['length'])continue;for(const _0x31f483 of _0x44b6e2['getRanges']())_0x244f1c['isIntersectingWithRange'](_0x31f483)||_0x244f1c['addRange'](_0x31f483);_0x44b6e2['removeMarkers']();}else{_0x244f1c=_0x44b6e2;for(const _0x2a005f of _0x23ea3d)_0x44b6e2['isIntersectingWithRange'](_0x2a005f)||_0x44b6e2['addRange'](_0x2a005f);}}if(_0x244f1c)return _0x244f1c;_0x2858aa['clear']();for(const {suggestion:_0x12c055,meta:_0x3f8a5e}of this['_findSuggestions'](_0x23ea3d,'deletion'))_0x3f8a5e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3f8a5e['containsRangeInObject']&&!_0x3f8a5e['isInsideObject'])&&zt(_0x12c055,_0x1aea4b)&&_0x2858aa['add'](_0x12c055);for(const _0x142097 of _0x2858aa){const _0x13fa3c=_0x142097['getRanges']();if(!_0x1aea4b||!_0x1aea4b['skipNestingCheck']){if(_0x23ea3d['every'](_0x1578e1=>_0x13fa3c['some'](_0x3f86eb=>_0x3f86eb['containsRange'](_0x1578e1,!0x0))))return _0x142097;}(!_0x142097['attributes']||!_0x142097['attributes']['skipNestingCheck'])&&(_0x13fa3c['every'](_0x52c22b=>_0x23ea3d['some'](_0x8b5fd6=>_0x8b5fd6['containsRange'](_0x52c22b,!0x0)))&&_0x142097['discard']());}const _0x5b60fb=_0x424839(),_0x2862ab=_0x320571['id'],_0x3033ec='deletion:'+_0x41b29a,_0x3e78bd=this['_setSuggestionData']({'id':_0x5b60fb,'type':_0x3033ec,'createdAt':new Date(),'authorId':_0x2862ab,'attributes':_0x1aea4b});for(const _0x21d348 of _0x23ea3d)_0x21d348['detach'](),_0x21d348['isCollapsed']||'$graveyard'==_0x21d348['root']['rootName']||this['_addSuggestionMarker'](_0x3033ec,_0x5b60fb,_0x2862ab,_0x21d348,Suggestion['getMultiRangeId']());return _0x3e78bd;}['markAttributeChange'](_0x4ed2a8,_0x10f5ac,_0x524e2d,_0x62642a,_0x482e03){if(_0x4ed2a8['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1e02bd=this['editor']['plugins']['get']('Users')['me']['id'],_0x111cb9=Array['from'](this['_suggestions']['values']())['filter'](_0x5860ea=>'attribute'==_0x5860ea['type']&&_0x5860ea['data']['key']==_0x10f5ac&&_0x5860ea['isIntersectingWithRange'](_0x4ed2a8));if(this['_trackingSessionId']&&(_0x482e03['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x50da23=this['_findSuggestions'](_0x4ed2a8,'insertion')['filter'](({meta:_0x239fd7})=>_0x239fd7['isOwn']&&!_0x239fd7['isInsideObject']&&!_0x239fd7['isNextTo'])['map'](({suggestion:_0x2d64d6})=>_0x2d64d6);_0x111cb9['unshift'](..._0x50da23);}const _0x47b6ff=new Map([[_0x4ed2a8,_0x524e2d]]);for(const _0x5d3496 of _0x111cb9){const _0x159ae6='attribute'==_0x5d3496['type']?_0x5d3496['data']['oldValue']:void 0x0,_0x186cf0=_0x5d3496['getFirstRange'](),_0x2b19c7=Array['from'](_0x47b6ff['keys']())['find'](_0x43094a=>_0x43094a['isIntersecting'](_0x186cf0));if(!_0x2b19c7)continue;const _0x2e3972=_0x2b19c7['getDifference'](_0x186cf0);this['_suggestionsConversion']['isBlockAttribute'](_0x10f5ac)&&'insertion'==_0x5d3496['type']&&0x0!=_0x2e3972['length']||(_0x47b6ff['delete'](_0x2b19c7),_0x2e3972['forEach'](_0x6515e6=>{_0x47b6ff['set'](_0x6515e6,_0x524e2d);}),'insertion'!=_0x5d3496['type']&&_0x159ae6!=_0x62642a&&_0x47b6ff['set'](_0x2b19c7['getIntersection'](_0x186cf0),_0x159ae6));}const _0x511243=[];for(const [_0x2da3f5,_0x5e73f2]of _0x47b6ff){const _0x205065=_0x424839(),_0x183a22={'key':_0x10f5ac,'oldValue':_0x5e73f2,'newValue':_0x62642a};_0x10f5ac['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':_0x10f5ac});const _0x411b44=('attribute:'+(_0x10f5ac+'|'+xt({'newValue':_0x62642a})))['substring'](0x0,0x3c),_0x3a0ef2=this['_setSuggestionData']({'id':_0x205065,'type':_0x411b44,'data':_0x183a22,'createdAt':new Date(),'authorId':_0x1e02bd,'attributes':_0x482e03});_0x511243['push'](_0x3a0ef2),this['_addSuggestionMarker'](_0x411b44,_0x205065,_0x1e02bd,_0x2da3f5);}return _0x511243;}['enableDefaultAttributesIntegration'](_0x58644f){this['enableCommand'](_0x58644f,(_0x48c07a,..._0x4c120e)=>{this['recordAttributeChanges'](()=>{_0x48c07a(..._0x4c120e);});});}['startTrackingSession'](_0x57583e){return this['_trackingSessionId']=void 0x0!==_0x57583e?_0x57583e:_0x424839(),this['_trackingSessionId'];}['_getAttributeKey'](_0x35d61d){return'attribute'==_0x35d61d['type']?Xt(_0x35d61d['subType']):null;}['_applyOperationsAsSuggestions'](_0x2523ff){if(0x0==_0x2523ff['length'])return;const _0x4c45dd=this['editor'],_0x53c005=_0x4c45dd['plugins']['get'](_0x5c00d9),_0x3b874e=[];_0x4c45dd['model']['change'](_0x2b58a6=>{for(let _0x4874e3=0x0;_0x4874e3<_0x2523ff['length'];_0x4874e3++){const _0x152313=_0x2523ff[_0x4874e3];if(_0x152313['baseVersion']=_0x4c45dd['model']['document']['version'],_0x152313['isDocumentOperation']=!0x0,_0x53c005['isMarkedRemoveOperation'](_0x152313)){const _0x45270b=_0x27f920(_0x152313['newRange'],_0x4c45dd['model']);_0x3b874e['unshift'](_0xe62106['fromRange'](_0x45270b));}else switch(_0x152313['type']){case'rename':{const _0x440bc9=_0x152313['oldName'],_0x2a2edc=_0x152313['newName'];if(_0x440bc9==_0x2a2edc)break;_0x2b58a6['batch']['addOperation'](_0x152313),_0x4c45dd['model']['applyOperation'](_0x152313);const _0x295eab='$elementName',_0xafdcea=_0x152313['position'],_0x2408b7=_0x4c45dd['model']['createRange'](_0xafdcea,_0x4c45dd['model']['createPositionAt'](_0xafdcea['nodeAfter'],'end'));this['markAttributeChange'](_0x2408b7,_0x295eab,_0x440bc9,_0x2a2edc,{'groupId':_0x424839()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x5f5d28=_0x152313['oldValue'],_0x5d676a=_0x152313['newValue'];if(_0x5f5d28==_0x5d676a)break;_0x2b58a6['batch']['addOperation'](_0x152313),_0x4c45dd['model']['applyOperation'](_0x152313);const _0x448712=_0x152313['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x448712))break;const _0x30f5d9=_0x27f920(_0x152313['range'],_0x4c45dd['model']);this['markAttributeChange'](_0x30f5d9,_0x448712,_0x5f5d28,_0x5d676a,{'groupId':_0x424839()});break;}case'insert':{_0x2b58a6['batch']['addOperation'](_0x152313),_0x4c45dd['model']['applyOperation'](_0x152313);if(_0x2523ff[_0x4874e3+0x1]&&'move'==_0x2523ff[_0x4874e3+0x1]['type'])break;const _0x3d0ddd=_0x152313['position'],_0x34ab60=_0x152313['howMany'],_0x1e319d=_0x27f920(_0x4c45dd['model']['createRange'](_0x3d0ddd,_0x3d0ddd['getShiftedBy'](_0x34ab60)),_0x4c45dd['model']);this['markInsertion'](_0x1e319d);break;}case'split':{_0x2b58a6['batch']['addOperation'](_0x152313),_0x4c45dd['model']['applyOperation'](_0x152313);const _0xb910d2=_0x152313['splitPosition'],_0x2f74ec=_0x152313['moveTargetPosition'];this['markInsertion'](_0x4c45dd['model']['createRange'](_0xb910d2,_0x2f74ec));break;}case'move':case'remove':_0x2b58a6['batch']['addOperation'](_0x152313),_0x4c45dd['model']['applyOperation'](_0x152313);}}for(const _0xb4b040 of _0x3b874e)_0xb4b040['detach'](),this['markDeletion'](_0xb4b040);});}['_setSuggestionRange'](_0x203f4a,_0x30955f){const _0x3fb1ce=_0x203f4a['getFirstMarker']();this['_model']['change'](_0x39ded7=>{_0x39ded7['updateMarker'](_0x3fb1ce,{'range':_0x30955f});});}['_addThreadToSuggestion'](_0x5aa63e){const _0x3c6e0f=_0x5aa63e['id'],_0x4e1ec5=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3c6e0f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4e1ec5,'threadId':_0x3c6e0f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2fa5ed=this['_commentsRepository']['getCommentThread'](_0x3c6e0f);_0x2fa5ed['unbind']('isRemovable'),_0x2fa5ed['isRemovable']=!0x1,_0x5aa63e['commentThread']=_0x2fa5ed;}['_checkSuggestionCorrectness'](_0xcd3627,_0xe8f9d,_0x378572,_0xd88ad){if(_0xcd3627['type']!=_0xe8f9d||_0xcd3627['subType']!=_0x378572||_0xcd3627['creator']['id']!=_0xd88ad)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xa8575f('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x17c7ea,_0x558e6a){const _0x21d3f5=_0x17c7ea['getFirstRange']();if(_0x558e6a['isEqual'](_0x21d3f5))_0x17c7ea['removeMarkers']();else{if(_0x21d3f5['containsRange'](_0x558e6a)){const _0x5ea89b=this['_model']['createPositionAt'](_0x558e6a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x17c7ea,this['_model']['createRange'](_0x21d3f5['start'],_0x5ea89b));const _0x4f0e48=_0x424839(),_0x29edf8=_0x17c7ea['creator']['id'],_0x1f9aef=_0x17c7ea['type']+':'+_0x17c7ea['subType'];this['_setSuggestionData']({'id':_0x4f0e48,'type':_0x1f9aef,'createdAt':new Date(),'authorId':_0x29edf8,'data':_0x17c7ea['data'],'attributes':_0x17c7ea['attributes']});const _0x33b931=this['_model']['createPositionAt'](_0x558e6a['end']['parent'],'after'),_0x36a994=this['_model']['createRange'](_0x33b931,_0x21d3f5['end']);this['_addSuggestionMarker'](_0x1f9aef,_0x4f0e48,_0x29edf8,_0x36a994);}else{if(_0x21d3f5['containsPosition'](_0x558e6a['start'])){const _0x43d71f=this['_model']['createPositionAt'](_0x558e6a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x17c7ea,this['_model']['createRange'](_0x21d3f5['start'],_0x43d71f));}else{const _0x336f21=this['_model']['createPositionAt'](_0x558e6a['end']['parent'],'after');this['_setSuggestionRange'](_0x17c7ea,this['_model']['createRange'](_0x336f21,_0x21d3f5['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4c1d7f){for(const {suggestion:_0x56b1da,meta:_0x4b851a}of this['_findSuggestions'](_0x4c1d7f,'insertion')){if(!_0x4b851a['isOwn'])continue;const _0x48d862=_0x56b1da['getRanges']();for(const _0x56a12e of _0x48d862)if(!_0x4c1d7f['getDifference'](_0x56a12e)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3ce9e2){return this['editor']['plugins']['get']('Users')['getUser'](_0x3ce9e2);}['_getExternalAuthor'](_0x526bbd){const _0x19a006=this['editor']['plugins']['get']('Users'),_0x11a4d7=_0x427cb4('external:'+_0x526bbd),_0x42ea08=_0x19a006['getUser'](_0x11a4d7);return _0x42ea08||_0x19a006['addUser']({'id':_0x11a4d7,'name':_0x526bbd});}['_createSuggestion'](_0x51eef4,_0x8629d5,_0xf3dffd,_0x95e239,_0x4faf32,_0x574625){const _0xf44d7c=this['_getAuthorFromId'](_0x95e239);if(!_0xf44d7c)throw new _0xa8575f('track-changes-user-not-found',this,{'authorId':_0x95e239,'suggestionId':_0xf3dffd});const _0x4dbd36=this['_suggestionFactory']['buildSuggestion'](_0x51eef4,_0x8629d5,_0xf3dffd,_0xf44d7c,_0x4faf32,_0x4703b5=>{this['_updateSuggestionData'](_0xf3dffd,{'attributes':_0x4703b5});const _0x10ea84=this['getSuggestion'](_0xf3dffd);this['_joinWithAdjacentSuggestions'](new Set([_0x10ea84])),this['_refreshSuggestionsChain'](new Set([_0x10ea84]));},_0x574625);return this['listenTo'](_0x4dbd36,'accept',()=>{this['_updateSuggestionData'](_0xf3dffd,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4dbd36,'discard',()=>{this['_updateSuggestionData'](_0xf3dffd,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xf3dffd,_0x4dbd36),this['_suggestionState']['set'](_0x4dbd36,'notReady'),_0x4dbd36;}['_breakSuggestionMarker'](_0x3e20a6,_0x385097,_0x5e1db4){const _0x13e1a2=_0x3e20a6['getFirstRange'](),_0x4013c1=_0x13e1a2['start'],_0x174348=_0x13e1a2['end'];this['_setSuggestionRange'](_0x3e20a6,this['_model']['createRange'](_0x4013c1,_0x385097));const _0x4faaa9=_0x424839(),_0x3eb264=_0x3e20a6['creator']['id'],_0x36cdb3=_0x3e20a6['type']+(_0x3e20a6['subType']?':'+_0x3e20a6['subType']:'');this['_setSuggestionData']({'id':_0x4faaa9,'type':_0x36cdb3,'createdAt':new Date(),'authorId':_0x3eb264,'originalSuggestionId':_0x3e20a6['_originalSuggestionId']||_0x3e20a6['id'],'attributes':_0x3e20a6['attributes'],'data':_0x3e20a6['data']});const _0x4b2095=this['_getAttributeKey'](_0x3e20a6);('formatBlock'==_0x3e20a6['type']||_0x4b2095&&this['_suggestionsConversion']['isBlockAttribute'](_0x4b2095))&&(_0x5e1db4=this['_model']['createPositionBefore'](_0x5e1db4['parent'])),this['_addSuggestionMarker'](_0x36cdb3,_0x4faaa9,_0x3eb264,this['_model']['createRange'](_0x5e1db4,_0x174348));}['_findSuggestions'](_0x40f0de,_0x52a503=null){const _0x5dacf8=[],_0x56487b=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x40f0de)||(_0x40f0de=[_0x40f0de]);for(const _0x48d5be of this['getSuggestions']()){if(!_0x48d5be['isInContent'])continue;if(_0x52a503&&_0x48d5be['type']!=_0x52a503)continue;let _0x28d1d2=!0x1;for(const _0x159f56 of _0x48d5be['getRanges']()){for(const _0x7c0efc of _0x40f0de){const _0x5d9ce6=_0x7c0efc['start']['isEqual'](_0x159f56['end'])||_0x7c0efc['end']['isEqual'](_0x159f56['start']);if(_0x5d9ce6||_0x7c0efc['getIntersection'](_0x159f56)){const _0x1987a2=_0x7c0efc['containsRange'](_0x159f56)&&Dt(this['_model']['schema'],_0x159f56['start'],_0x7c0efc),_0x139fff=_0x159f56['containsRange'](_0x7c0efc)&&Dt(this['_model']['schema'],_0x7c0efc['start'],_0x159f56);_0x5dacf8['push']({'suggestion':_0x48d5be,'meta':{'isOwn':_0x56487b==_0x48d5be['author'],'isNextTo':_0x5d9ce6,'isInsideObject':_0x1987a2,'containsRangeInObject':_0x139fff}}),_0x28d1d2=!0x0;break;}}if(_0x28d1d2)break;}}return _0x5dacf8;}['_addSuggestionMarker'](_0x1d29a3,_0x355fed,_0x54954d,_0x569f0d,_0x26b00c){this['_model']['change'](_0x550dc6=>{let _0x33cf65='suggestion:'+_0x1d29a3+':'+_0x355fed+':'+_0x54954d;_0x26b00c&&(_0x33cf65=_0x33cf65+':'+_0x26b00c),_0x550dc6['addMarker'](_0x33cf65,{'range':_0x569f0d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x6c1906){const _0x4c8fb0=_0x6c1906['previous'],_0x12d409=_0x6c1906['next'];_0x6c1906['previous']=null,_0x6c1906['next']=null,null!=_0x4c8fb0&&_0x4c8fb0['next']==_0x6c1906&&(_0x4c8fb0['next']=_0x12d409),null!=_0x12d409&&_0x12d409['previous']==_0x6c1906&&(_0x12d409['previous']=_0x4c8fb0),'ready'==this['_suggestionState']['get'](_0x6c1906)&&(this['_suggestionState']['set'](_0x6c1906,'removed'),this['fire']('suggestionUnloaded',_0x6c1906,_0x4c8fb0,_0x12d409));}['_setSuggestionData'](_0x29118b){const _0x3f5a3e=_0x29118b['id'],_0x1e3d3a=this['addSuggestionData'](_0x29118b);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x181b31=this['editor']['plugins']['get']('PendingActions'),_0x536ccc=_0x1e3d3a['hasComments'],_0x4029ae=_0x1e3d3a['subType']?_0x1e3d3a['type']+':'+_0x1e3d3a['subType']:_0x1e3d3a['type'],_0x4f0d6e=this['editor']['locale'],_0xba3036=_0x181b31['add'](Tt(_0x4f0d6e,'PENDING_ACTION_SUGGESTION')),_0x34fcb3={'id':_0x3f5a3e,'type':_0x4029ae,'hasComments':_0x536ccc,'data':_0x29118b['data']||null,'originalSuggestionId':_0x29118b['originalSuggestionId']||null,'attributes':_0x1e3d3a['attributes']};this['_adapter']['addSuggestion'](_0x34fcb3)['then'](_0x5ec98f=>{_0x1e3d3a['_saved']=!0x0,_0x181b31['remove'](_0xba3036),_0x5ec98f&&_0x5ec98f['createdAt']&&(this['_suggestions']['get'](_0x3f5a3e)['createdAt']=_0x5ec98f['createdAt']);})['catch'](_0x64f47d=>{throw _0x3d76df('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1e3d3a['discard']();}),_0x1e3d3a['stopListening'](),this['_suggestions']['delete'](_0x1e3d3a['id']),this['_suggestionState']['delete'](_0x1e3d3a),_0x64f47d;});}return _0x1e3d3a;}['_updateSuggestionData'](_0x1bcd18,_0x3b6de2){const _0x371149=this['editor']['plugins']['get']('PendingActions'),_0x4338ff=this['getSuggestion'](_0x1bcd18);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4338ff['_saved']){const _0x5f01d6=_0x371149['add'](Tt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1bcd18,_0x3b6de2)['then'](()=>{_0x371149['remove'](_0x5f01d6);});}else _0x4338ff['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1bcd18,_0x3b6de2);});}}['_getSuggestionData'](_0x497100){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xa8575f('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x497100);}['_handleNewSuggestionMarker'](_0x1ec5af){const {id:_0x4aa485,type:_0x414e07,subType:_0x4cab9f,authorId:_0x23017f}=_0x3647dc(_0x1ec5af),_0xa202a7=this['_suggestions']['get'](_0x4aa485)||this['_createSuggestion'](_0x414e07,_0x4cab9f,_0x4aa485,_0x23017f,{});switch(this['_checkSuggestionCorrectness'](_0xa202a7,_0x414e07,_0x4cab9f,_0x23017f),this['_suggestionState']['get'](_0xa202a7)){case'notReady':this['_getSuggestionData'](_0x4aa485)['then'](_0x2e6e31=>{let _0x27955c=Promise['resolve']();_0x2e6e31['hasComments']&&(_0x27955c=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4aa485})),_0x27955c['then'](()=>{this['addSuggestionData'](_0x2e6e31)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xa202a7,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4aa485,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xa202a7,'ready'),this['fire']('suggestionLoaded',_0xa202a7);break;case'ready':this['fire']('suggestionChanged',_0xa202a7);}return _0xa202a7['addMarkerName'](_0x1ec5af),_0xa202a7;}['_refreshSuggestionsChain'](_0xfaf90a){const _0x2a4b15=Array['from'](_0xfaf90a),_0x44867c=_0x2a4b15['filter'](_0x408e8a=>'attribute'==_0x408e8a['type']);this['_refreshAttributeSuggestionsChain'](_0x44867c);const _0x1e1103=_0x2a4b15['filter'](_0xf8e0d2=>!_0xf8e0d2['isMultiRange']&&'attribute'!=_0xf8e0d2['type']),_0x3bba76=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x382fb5=>!_0x382fb5['isMultiRange']&&'attribute'!=_0x382fb5['type']),_0x1d386b=_0x3bba76['filter'](_0x4d1de4=>!_0xfaf90a['has'](_0x4d1de4)),_0x547022=new Map(_0x3bba76['map'](_0x31ba8b=>[_0x31ba8b,this['_suggestionFactory']['getSuggestionCallback'](_0x31ba8b['type'],_0x31ba8b['subType'],'chain')])),_0x42fa45=new Map(_0x3bba76['map'](_0x3e6587=>[_0x3e6587,_0x3e6587['getFirstRange']()])),_0x4f6af4=new Set(),_0x203beb=new Set();for(let _0x5cdcab=0x0;_0x5cdcab<_0x1e1103['length'];_0x5cdcab++)_0x3cea05(_0x1e1103[_0x5cdcab],_0x1e1103,_0x5cdcab+0x1);for(let _0x1e51be=0x0;_0x1e51be<_0x1e1103['length'];_0x1e51be++)_0x3cea05(_0x1e1103[_0x1e51be],_0x1d386b,0x0);const _0x5b683c=new Set();for(let _0x2a8324=0x0;_0x2a8324<_0x1e1103['length'];_0x2a8324++){const _0xbaac47=_0x1e1103[_0x2a8324];!_0x203beb['has'](_0xbaac47)&&_0xbaac47['previous']&&(_0x5b683c['add'](_0xbaac47['previous']),_0xbaac47['previous']['next']===_0xbaac47&&(_0xbaac47['previous']['next']=null),_0xbaac47['previous']=null),!_0x4f6af4['has'](_0xbaac47)&&_0xbaac47['next']&&(_0x5b683c['add'](_0xbaac47['next']),_0xbaac47['next']['previous']===_0xbaac47&&(_0xbaac47['next']['previous']=null),_0xbaac47['next']=null);}function _0x3cea05(_0x2d8c30,_0x56c83c,_0x463a84){for(let _0x29e99b=_0x463a84;_0x29e99b<_0x56c83c['length'];_0x29e99b++){const _0x1bcf9f=_0x3f4dcc(_0x2d8c30,_0x56c83c[_0x29e99b]);_0x1bcf9f&&(_0x1bcf9f[0x0]['next']=_0x1bcf9f[0x1],_0x1bcf9f[0x1]['previous']=_0x1bcf9f[0x0],_0x4f6af4['add'](_0x1bcf9f[0x0]),_0x203beb['add'](_0x1bcf9f[0x1]));}}function _0x3f4dcc(_0x3f3f95,_0x146f3a){if(_0x3f3f95['author']['id']!==_0x146f3a['author']['id'])return null;const _0x11d15a=_0x547022['get'](_0x3f3f95)(_0x3f3f95,_0x146f3a,_0x42fa45['get'](_0x3f3f95),_0x42fa45['get'](_0x146f3a));if(!_0x11d15a)return null;return _0x547022['get'](_0x146f3a)(_0x3f3f95,_0x146f3a,_0x42fa45['get'](_0x3f3f95),_0x42fa45['get'](_0x146f3a))?_0x11d15a[0x1]['commentThread']&&_0x11d15a[0x1]['commentThread']['length']?null:_0x11d15a:null;}_0x5b683c['size']&&this['_refreshSuggestionsChain'](_0x5b683c);}['_refreshAttributeSuggestionsChain'](_0x290e2d){if(0x0==_0x290e2d['length'])return;const _0xbd3164=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x37e319=>'attribute'==_0x37e319['type']&&_0x37e319['_isDataLoaded']),_0x3f0fa3=[],_0xf6eea8=new Map();for(const _0x556168 of _0xbd3164){const _0x3e3054=_0x427cb4(_0x556168['attributes']);_0xf6eea8['has'](_0x3e3054)||(_0xf6eea8['set'](_0x3e3054,_0x3f0fa3['length']),_0x3f0fa3['push']([]));const _0x3cd46a=_0xf6eea8['get'](_0x3e3054);_0x3f0fa3[_0x3cd46a]['push'](_0x556168);}!(function(){_0x3f0fa3['sort']((_0x4d010b,_0x42e68f)=>{const _0x5e1f15=_0x4d010b[0x0]['createdAt'],_0x51f9d3=_0x42e68f[0x0]['createdAt'];return _0x5e1f15==_0x51f9d3?_0x4d010b[0x0]['attributes']['groupId']<_0x42e68f[0x0]['attributes']['groupId']?-0x1:0x1:_0x5e1f15<_0x51f9d3?-0x1:0x1;});for(const _0x393771 of _0x3f0fa3)_0x393771['sort']((_0x5a1d92,_0x33717e)=>_0x5a1d92['id']<_0x33717e['id']?-0x1:0x1);}());for(let _0x3e22a9=0x0;_0x3e22a9<_0x3f0fa3['length'];_0x3e22a9++){if(0x0==_0x3f0fa3[_0x3e22a9]['length'])continue;const _0x3c24d1=[];for(let _0x2b1d6c=_0x3e22a9+0x1;_0x2b1d6c<_0x3f0fa3['length'];_0x2b1d6c++)0x0!=_0x3f0fa3[_0x2b1d6c]['length']&&_0xf6fa67(_0x3f0fa3[_0x3e22a9],_0x3f0fa3[_0x2b1d6c])&&_0x3c24d1['push'](_0x2b1d6c);for(const _0x48988a of _0x3c24d1)_0x3f0fa3[_0x3e22a9]=_0x3f0fa3[_0x3e22a9]['concat'](_0x3f0fa3[_0x48988a]),_0x3f0fa3[_0x48988a]=[];}for(const _0x5196b3 of _0x3f0fa3)for(let _0x723d55=0x0;_0x723d55<_0x5196b3['length'];_0x723d55++){const _0x2627ac=_0x5196b3[_0x723d55+0x1]||null;_0x5196b3[_0x723d55]['next']!==_0x2627ac&&(_0x5196b3[_0x723d55]['next']=_0x2627ac);}for(const _0x4ee990 of _0x3f0fa3)for(let _0x2cdcfc=0x0;_0x2cdcfc<_0x4ee990['length'];_0x2cdcfc++){const _0x737063=_0x4ee990[_0x2cdcfc-0x1]||null;_0x4ee990[_0x2cdcfc]['previous']!==_0x737063&&(_0x4ee990[_0x2cdcfc]['previous']=_0x737063);}function _0xf6fa67(_0x1c61c5,_0x5b8323){if(_0x1c61c5[0x0]['attributes']['groupId']!==_0x5b8323[0x0]['attributes']['groupId']&&_0x1c61c5[0x0]['author']!==_0x5b8323[0x0]['author'])return!0x1;if(!function(_0x456705,_0x42e036){if(!_0x456705['hasComments']&&!_0x42e036['hasComments'])return!0x0;if(_0x456705['hasComments']&&_0x42e036['hasComments'])return!0x1;if(_0x456705['hasComments']&&_0x42e036['createdAt']<_0x456705['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x42e036['hasComments']&&_0x456705['createdAt']<_0x42e036['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1c61c5[0x0],_0x5b8323[0x0]))return!0x1;const _0x43ea49=ot(_0x1c61c5[0x0]['attributes'],['groupId','trackingSessionId']),_0x3db353=ot(_0x5b8323[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x43ea49,_0x3db353))return!0x1;if(_0x1c61c5[0x0]['attributes']['groupId']==_0x5b8323[0x0]['attributes']['groupId'])return!0x0;if(_0x1c61c5[0x0]['attributes']['trackingSessionId']!==_0x5b8323[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x1c61c5['every'](_0x1fd849=>_0x5b8323['some'](_0x255def=>_0x1fd849['getFirstRange']()['isEqual'](_0x255def['getFirstRange']())))&&_0x5b8323['every'](_0x2a301b=>_0x1c61c5['some'](_0x2f0126=>_0x2a301b['getFirstRange']()['isEqual'](_0x2f0126['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x558289){const _0x543004=Array['from'](_0x558289),_0x15a06c=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3fdcfc=_0x15a06c['filter'](_0x2cd769=>!_0x558289['has'](_0x2cd769)),_0xdf09a2=new Map(_0x543004['map'](_0x581a2a=>[_0x581a2a,this['_suggestionFactory']['getSuggestionCallback'](_0x581a2a['type'],_0x581a2a['subType'],'join')])),_0x4f9a1a=new Map(_0x15a06c['map'](_0x44d45f=>[_0x44d45f,_0x44d45f['getRanges']()]));for(let _0xc87d98=0x0;_0xc87d98<_0x543004['length'];_0xc87d98++){if(_0x2334d5(this,_0x543004[_0xc87d98],_0x543004,_0xc87d98+0x1))return!0x0;}for(let _0x423f66=0x0;_0x423f66<_0x543004['length'];_0x423f66++){if(_0x2334d5(this,_0x543004[_0x423f66],_0x3fdcfc,0x0))return!0x0;}return!0x1;function _0x2334d5(_0x2ffcf0,_0x364bf9,_0x20feb4,_0x200e18){for(let _0x5b2a46=_0x200e18;_0x5b2a46<_0x20feb4['length'];_0x5b2a46++){const _0x9c9601=_0x20feb4[_0x5b2a46];if(_0x9c9601['type']!==_0x364bf9['type']||_0x9c9601['author']['id']!==_0x364bf9['author']['id']||_0x9c9601['subType']!==_0x364bf9['subType'])continue;if(!jt(_0x364bf9,_0x9c9601))continue;if('attribute'==_0x364bf9['type']&&_0x364bf9['data']['oldValue']!=_0x9c9601['data']['oldValue'])continue;if('attribute'==_0x364bf9['type']&&_0x2ffcf0['_suggestionsConversion']['isBlockAttribute'](_0x364bf9['data']['key']))continue;if('formatBlock'==_0x364bf9['type']){const _0x436b2b=_0x2ffcf0['editor']['model'],_0x174286=_0x364bf9['getContainedElement']();if(_0x174286&&(_0x436b2b['schema']['isObject'](_0x174286)||_0x436b2b['schema']['isLimit'](_0x174286)))continue;}const _0x5e7495=_0xdf09a2['get'](_0x364bf9),_0x135d0a=_0x4f9a1a['get'](_0x364bf9),_0x3200ee=_0x4f9a1a['get'](_0x9c9601),_0x519750=_0x364bf9['commentThread']&&_0x364bf9['commentThread']['length'],_0x1e5ef0=_0x9c9601['commentThread']&&_0x9c9601['commentThread']['length'];if(!_0x519750&&_0x5e7495(_0x3200ee,_0x135d0a))return _0x2ffcf0['_joinSuggestions'](_0x9c9601,_0x364bf9),_0x4f9a1a['delete'](_0x364bf9),!0x0;if(!_0x1e5ef0&&_0x5e7495(_0x135d0a,_0x3200ee))return _0x2ffcf0['_joinSuggestions'](_0x364bf9,_0x9c9601),_0x4f9a1a['delete'](_0x9c9601),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4cbfcb,_0x3d51f1){if(_0x4cbfcb['isMultiRange']){for(const _0x3808e3 of _0x3d51f1['getRanges']())_0x4cbfcb['addRange'](_0x3808e3);}else{const _0x57b8a9=_0x3d51f1['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4cbfcb,this['_model']['createRange'](_0x4cbfcb['getFirstRange']()['start'],_0x57b8a9));}_0x3d51f1['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1adfb5,_0x418b03,_0x47b957){const _0x859d64=_0x1adfb5['startsWith']('format')||_0x1adfb5['startsWith']('attribute')?'FORMATTING':_0x1adfb5['toUpperCase']();return Tt(this['editor']['locale'],_0x418b03+'_'+_0x859d64+'_SUGGESTION_ANNOUNCEMENT',_0x47b957);}['_initAriaMarkerChangeAnnouncements'](){const _0x332dcb=this['editor'];if(!_0x332dcb['ui'])return;const {ariaLiveAnnouncer:_0x4f7cdf}=_0x332dcb['ui'];_0x3ba145(this['_model'],({left:_0x43c880,entered:_0x45a53d})=>{for(const _0xbb2e8 of _0x43c880){const {group:_0xc3deb0,type:_0x32ec6a}=_0x3647dc(_0xbb2e8['name']);if('suggestion'===_0xc3deb0){_0x4f7cdf['announce'](this['_getMarkerAnnouncementText'](_0x32ec6a,'LEAVE'));break;}}for(const _0x4033d4 of _0x45a53d){const {group:_0x20f611,type:_0x4bb8cc}=_0x3647dc(_0x4033d4['name']);if('suggestion'===_0x20f611){_0x4f7cdf['announce'](this['_getMarkerAnnouncementText'](_0x4bb8cc,'ENTER',_0x3a5a58(_0x44d9ac)));break;}}});}['_processAttributeChanges'](_0x439163){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1e76e6=this['editor'],_0x207c72=_0x1e76e6['model']['document']['differ']['getChanges']();if(0x0==_0x207c72['length'])return!0x1;const _0x3046fc=[],_0x2f45f4=_0x207c72['filter'](_0x49738e=>'attribute'==_0x49738e['type']),_0x5e9dfc=_0x207c72['filter'](_0x47b446=>'insert'==_0x47b446['type']&&'$text'!=_0x47b446['name']),_0x2476b2=_0x207c72['filter'](_0x1e0953=>'remove'==_0x1e0953['type']&&'$text'!=_0x1e0953['name']);for(const _0x3f1f96 of _0x2f45f4)_0x3046fc['push']({'key':_0x3f1f96['attributeKey'],'newValue':_0x3f1f96['attributeNewValue'],'oldValue':_0x3f1f96['attributeOldValue'],'range':$t(_0x3f1f96['range'],_0x1e76e6['model'])});for(const _0x24d8bb of _0x5e9dfc){const _0x2c9e4f=_0x2476b2['find'](_0x4bb309=>_0x4bb309['position']['isEqual'](_0x24d8bb['position']));_0x2c9e4f&&_0x3046fc['push']({'key':Bt,'newValue':_0x24d8bb['name'],'oldValue':_0x2c9e4f['name'],'range':_0x1e76e6['model']['createRangeOn'](_0x24d8bb['position']['nodeAfter'])});}return 0x0!=_0x3046fc['length']&&this['_reduceExistingSuggestions'](_0x439163,_0x3046fc);}['_processAttributeSuggestions'](_0x1f795c){let _0x465951=!0x1;const _0x497ca4=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xb2013c=>_0xb2013c['data']['newRange']&&_0xb2013c['name']['startsWith']('suggestion:attribute:'));for(const _0x419414 of _0x497ca4){const {subType:_0x3566e2,id:_0x5655c2}=_0x3647dc(_0x419414['name']),_0x1c11bd=_0x3566e2['split']('|')[0x0];for(const _0x3d3a3c of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3d3a3c['id']!=_0x5655c2&&'attribute'==_0x3d3a3c['type']&&_0x3d3a3c['data']&&_0x3d3a3c['data']['key']==_0x1c11bd&&_0x3d3a3c['getFirstRange']()['isIntersecting'](_0x419414['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3d3a3c,_0x419414['data']['newRange'],_0x1f795c),_0x465951=!0x0);}return _0x465951;}['recordAttributeChanges'](_0x212f74){this['_recordAttributeSuggestions']=!0x0,_0x212f74();}['_reduceExistingSuggestions'](_0x247d2d,_0x22ffb4){if(0x0==_0x22ffb4['length'])return!0x1;let _0x31b1bb=!0x1;for(const _0x655c2c of _0x22ffb4){const _0x12f7d6=this['_findSuggestions'](_0x655c2c['range'],'attribute')['filter'](_0x2c2281=>!_0x2c2281['meta']['isNextTo'])['map'](_0x284635=>_0x284635['suggestion']),_0x5b2d3b=_0x427cb4({'newValue':_0x655c2c['newValue']});_0x12f7d6['filter'](_0x4543ce=>{const [_0x14c628,_0x5f0758]=_0x4543ce['subType']['split']('|');return _0x14c628==_0x655c2c['key']&&_0x5f0758!=_0x5b2d3b;})['forEach'](_0x3e93e0=>{this['_reduceSuggestionAttributeRange'](_0x3e93e0,_0x655c2c['range'],_0x247d2d),_0x31b1bb=!0x0;});}return _0x31b1bb;}['_reduceSuggestionAttributeRange'](_0x2125af,_0x5530f7,_0x18eb3d){const _0x584edf=_0x2125af['getFirstRange']()['getDifference'](_0x5530f7);0x0!==_0x584edf['length']?0x1!==_0x584edf['length']?this['_breakSuggestionMarker'](_0x2125af,_0x5530f7['start'],_0x5530f7['end']):this['_setSuggestionRange'](_0x2125af,_0x584edf[0x0]):_0x18eb3d['removeMarker'](_0x2125af['getFirstMarker']());}}class SuggestionFactory{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3b74f4){this['_editor']=_0x3b74f4,this['_model']=_0x3b74f4['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4aaae2,_0x21921d,_0x5804f3,_0x1c6d4a,_0x22955e,_0xa75839,_0x3a9ccd){return new Suggestion(this['_model'],{'type':_0x4aaae2,'subType':_0x21921d,'id':_0x5804f3,'originalSuggestionId':_0x3a9ccd,'author':_0x1c6d4a,'creator':_0x1c6d4a,'attributes':_0x22955e,'onAttributesChange':_0xa75839,'onAccept':(..._0xbd9632)=>this['getSuggestionCallback'](_0x4aaae2,_0x21921d,'accept')(..._0xbd9632),'onDiscard':(..._0x41e46f)=>this['getSuggestionCallback'](_0x4aaae2,_0x21921d,'discard')(..._0x41e46f)});}['registerCustomCallback'](_0x2f6013,_0xb2a02b,_0x42e0aa,_0x1402ef){const _0x4669f3=_0x2f6013+':'+_0xb2a02b+':'+_0x42e0aa;this['_customCallbacks']['set'](_0x4669f3,_0x1402ef);}['getSuggestionCallback'](_0x3a5393,_0x12d316,_0xa00ebd){const _0x516369=_0x3a5393+':'+_0x12d316+':'+_0xa00ebd;return this['_customCallbacks']['get'](_0x516369)||this['_defaultCallbacks']['get'](_0x3a5393+':'+_0xa00ebd);}['_registerDefaultCallbacks'](){const _0x4fd6e6=()=>!0x1,_0x2c24c7=_0x3d2557=>{_0x3d2557['sort']((_0x135122,_0x4b4ed6)=>_0x135122['start']['isBefore'](_0x4b4ed6['start'])?0x1:-0x1),this['_model']['change'](_0x33a7e6=>{for(const _0x3701eb of _0x3d2557){let _0x342b29;_0x342b29=_0x3701eb['end']['isAtEnd']&&_0x3701eb['end']['parent']==_0x3701eb['start']['nodeAfter']?_0x33a7e6['createSelection'](_0x3701eb['start']['nodeAfter'],'on'):_0x33a7e6['createSelection'](_0x3701eb),this['_model']['deleteContent'](_0x342b29,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x5b9a8d=(_0x22250e,_0x4b525f)=>{_0x4b525f&&this['_model']['change'](_0x510571=>{const {commandName:_0x167d2c,commandParams:_0x19ee42=[]}=_0x4b525f,_0x2c36a2=_0x22250e['map'](_0x2f9e5d=>(vt(_0x2f9e5d)&&(_0x2f9e5d=this['_model']['createRange'](_0x2f9e5d['end'])),_0x2f9e5d))['filter'](_0x68b4b0=>'$graveyard'!==_0x68b4b0['root']['rootName']);if(_0x2c36a2['length']<0x1)return;const _0x400602=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4ba66c=>_0xe62106['fromRange'](_0x4ba66c));_0x510571['setSelection'](_0x2c36a2);for(const _0x49cdc8 of this['_editor']['commands']['commands']())_0x49cdc8['refresh']();_0x19ee42['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x167d2c,..._0x19ee42);const _0x3f2b8d=_0x400602['filter'](_0x582eff=>'$graveyard'!=_0x582eff['root']['rootName']);_0x3f2b8d['length']>0x0&&_0x510571['setSelection'](_0x3f2b8d);for(const _0x90c748 of _0x400602)_0x90c748['detach']();});},_0x297db3=(_0x49d14f,_0x33d345)=>0x1==_0x49d14f['length']&&0x1==_0x33d345['length']&&_0x49d14f[0x0]['end']['isEqual'](_0x33d345[0x0]['start']),_0x175330=(_0x10bab6,_0x1aa045,_0x25b373,_0x4e70dc)=>Wt(_0x10bab6,_0x1aa045,_0x25b373,_0x4e70dc)?[_0x10bab6,_0x1aa045]:Wt(_0x1aa045,_0x10bab6,_0x4e70dc,_0x25b373)?[_0x1aa045,_0x10bab6]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4fd6e6),this['_defaultCallbacks']['set']('insertion:discard',_0x2c24c7),this['_defaultCallbacks']['set']('insertion:join',_0x297db3),this['_defaultCallbacks']['set']('insertion:chain',_0x175330),this['_defaultCallbacks']['set']('deletion:accept',_0x2c24c7),this['_defaultCallbacks']['set']('deletion:discard',_0x4fd6e6),this['_defaultCallbacks']['set']('deletion:join',_0x297db3),this['_defaultCallbacks']['set']('deletion:chain',_0x175330),this['_defaultCallbacks']['set']('formatInline:accept',_0x5b9a8d),this['_defaultCallbacks']['set']('formatInline:discard',_0x4fd6e6),this['_defaultCallbacks']['set']('formatInline:join',_0x297db3),this['_defaultCallbacks']['set']('formatInline:chain',_0x4fd6e6),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5b9a8d),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4fd6e6),this['_defaultCallbacks']['set']('formatBlock:join',_0x297db3),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4fd6e6),this['_defaultCallbacks']['set']('attribute:accept',_0x4fd6e6),this['_defaultCallbacks']['set']('attribute:discard',(_0x58c442,_0x5d8277)=>{if(!_0x5d8277)return;const _0x2be0af=this['_editor']['plugins']['get'](_0x4f6c5d);this['_model']['change'](_0x41dbdb=>{if(_0x5d8277['key']==Bt)for(const _0x8af0bd of _0x58c442){const _0x54d359=_0x8af0bd['start']['nodeAfter'],_0xe0d67c=_0x5d8277['oldValue'];_0x41dbdb['rename'](_0x54d359,_0xe0d67c);}else{if(_0x2be0af['isBlockAttribute'](_0x5d8277['key'])){for(const _0x392a23 of _0x58c442)void 0x0!==_0x5d8277['oldValue']?_0x41dbdb['setAttribute'](_0x5d8277['key'],_0x5d8277['oldValue'],_0x392a23['start']['nodeAfter']):_0x41dbdb['removeAttribute'](_0x5d8277['key'],_0x392a23['start']['nodeAfter']);}else{for(const _0x41e7f7 of _0x58c442)_0x5d8277['oldValue']?_0x41dbdb['setAttribute'](_0x5d8277['key'],_0x5d8277['oldValue'],_0x41e7f7):_0x41dbdb['removeAttribute'](_0x5d8277['key'],_0x41e7f7);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x297db3);}}function Dt(_0x29945f,_0x1f81e1,_0x19a89e){for(const _0x330fec of _0x1f81e1['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x330fec['root']==_0x330fec)return!0x1;if(!_0x19a89e['containsItem'](_0x330fec))return!0x1;if(_0x29945f['isObject'](_0x330fec)||_0x29945f['isLimit'](_0x330fec))return!0x0;}return!0x1;}function vt(_0x588820){return _0x588820['end']['parent']==_0x588820['start']['nodeAfter']&&_0x588820['end']['isAtStart'];}function Pt(_0x2d215f,_0x3afd12,_0x4f23d7,_0x38c633){const _0x1b4528=_0x3dfff0=>!_0x3dfff0['item']['is']('$textProxy')&&!_0x38c633['isObject'](_0x3dfff0['item']),_0x1f648c=_0x2d215f['start']['getLastMatchingPosition'](_0x1b4528),_0x444d74=_0x2d215f['end']['getLastMatchingPosition'](_0x1b4528,{'direction':'backward'});return(!_0x2d215f['start']['isEqual'](_0x1f648c)||!_0x2d215f['end']['isEqual'](_0x444d74))&&(_0x1f648c['isBefore'](_0x444d74)?_0x4f23d7['updateMarker'](_0x3afd12,{'range':_0x4f23d7['createRange'](_0x1f648c,_0x444d74)}):_0x4f23d7['removeMarker'](_0x3afd12),!0x0);}function xt(_0x5886a9){return _0x427cb4(_0x5886a9);}function Ut(_0x25ad26){const _0x212027=_0x25ad26['start']['nodeAfter'];return _0x212027&&_0x212027['is']('element');}function Gt(_0xcb5f13){return vt(_0xcb5f13)||function(_0x4c19b2){return _0x4c19b2['start']['parent']==_0x4c19b2['end']['nodeBefore']&&_0x4c19b2['start']['isAtEnd'];}(_0xcb5f13);}function Ht(_0x598fd7,_0x48aec2){try{const _0x15072e=_0x598fd7['getRange']();for(const _0x5bc845 of _0x48aec2)if(_0x598fd7!==_0x5bc845&&_0x15072e&&_0x15072e['isIntersecting'](_0x5bc845['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function $t(_0x48b4bc,_0x91a2dc){return null==_0x48b4bc['end']['nodeBefore']&&_0x48b4bc['end']['parent']==_0x48b4bc['start']['nodeAfter']?Vt(_0x48b4bc['start']['nodeAfter'],_0x91a2dc):_0x48b4bc;}function Vt(_0x2cf539,_0x6fd014){const _0x4a75ba=_0x6fd014['schema']['isObject'](_0x2cf539)||_0x6fd014['schema']['isSelectable'](_0x2cf539);return _0x6fd014['createRange'](_0x6fd014['createPositionAt'](_0x2cf539,'before'),_0x4a75ba?_0x6fd014['createPositionAfter'](_0x2cf539):_0x6fd014['createPositionAt'](_0x2cf539,'end'));}function Wt(_0x402d4d,_0x4d9b16,_0x4efaeb,_0x4cc839){return!!jt(_0x402d4d,_0x4d9b16)&&_0x4efaeb['end']['isEqual'](_0x4cc839['start']);}function jt(_0x38b601,_0x4afb67){if(!_0x38b601['_isDataLoaded']||!_0x4afb67['_isDataLoaded'])return!0x1;const _0x418a84=new Set(Object['keys'](_0x38b601['attributes'])),_0x5bf023=new Set(Object['keys'](_0x4afb67['attributes']));if(_0x418a84['delete']('groupId'),_0x5bf023['delete']('groupId'),0x0==_0x418a84['size']&&0x0==_0x5bf023['size'])return!0x0;if(_0x418a84['size']!=_0x5bf023['size'])return!0x1;const _0x3a0fd6={..._0x38b601['attributes']},_0xca43b7={..._0x4afb67['attributes']};return delete _0x3a0fd6['groupId'],delete _0xca43b7['groupId'],JSON['stringify'](_0x3a0fd6)==JSON['stringify'](_0xca43b7);}function zt(_0x128b6c,_0x2dd2a9){const _0x5a6626=Kt(_0x128b6c['attributes']),_0x3111f4=Kt(_0x2dd2a9);if(!_0x128b6c['_isDataLoaded'])return!0x1;for(const _0x5b9e6a of Object['keys'](_0x3111f4))if(!st(_0x5a6626[_0x5b9e6a],_0x3111f4[_0x5b9e6a]))return!0x1;return!0x0;}function Kt(_0x4b4feb){const _0x3d321c=Object['assign']({},_0x4b4feb);return delete _0x3d321c['skipNestingCheck'],delete _0x3d321c['tablePasteChainId'],_0x3d321c;}function Xt(_0x5921b8){return _0x5921b8['split']('|')[0x0];}class SuggestionController extends/* #__PURE__ -- @preserve */
26
+ _0x2e2514(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2928f5,_0x1f392d,_0x45b4ed,_0x31594b){super(),this['model']=_0x1f392d,this['view']=_0x45b4ed,this['commentThreadController']=_0x31594b,this['_editor']=_0x2928f5,this['_acceptCommand']=_0x2928f5['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2928f5['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xfb7ee1,_0x33ef63)=>_0xfb7ee1||_0x33ef63),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x50909=>_0x50909&&this['_editor']['model']['canEditAt'](_0x1f392d['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4e2aea=>_0x4e2aea&&this['_editor']['model']['canEditAt'](_0x1f392d['getRanges']())),this['_pendingAction']=null,_0x45b4ed['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x45b4ed,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x45b4ed,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x45b4ed,'change:isDirty',()=>{_0x45b4ed['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 _0x516301=Tt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x516301);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class BaseSuggestionThreadView extends _0x31f3e3{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x507457,_0xb0258d,_0x5b4ee6,_0x154122){super(_0x507457),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3466b3(_0x507457,Tt(_0x507457,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xb0258d['authoredAt']),this['bind']('authoredAt')['to'](_0xb0258d),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',_0xb0258d,'authoredAt',this,'descriptionParts',(_0x2299d6,_0xe08d1d,_0x1e89f4)=>{const _0x39d176=_0x1e89f4['map'](_0x54392c=>ht(_0x54392c['content']))['join']('.\x20')+'.';return Tt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2299d6-0x1,_0xb0258d['author']['name'],_0xe08d1d?_0x154122['formatDateTime'](_0xe08d1d):'',new DOMParser()['parseFromString'](_0x39d176,'text/html')['body']['textContent']]);}),this['focusables']=new _0x29be99(),this['focusTracker']=new _0x4d7874(),this['keystrokes']=new _0x3727c1(),this['focusCycler']=new _0x161670({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1fe7c0=>_0x1fe7c0['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xb0258d,this['_localUser']=_0x5b4ee6,this['_config']=_0x154122,_0x154122['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x303689(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x312947}=this['_config'];this['commentsListView']=new _0x312947(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',_0x205623=>_0x205623+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x33a681,_0x1b92d5)=>_0x33a681||!!_0x1b92d5);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x30d8a4}=this['_config'],_0x2415d5=new _0x30d8a4(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3dbf21=_0x2415d5['commentInputView'];return _0x2415d5['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3dbf21,'value',(_0x4b16a2,_0x8c0991,_0x112b53)=>!!_0x112b53||_0x4b16a2&&!_0x8c0991),_0x3dbf21['on']('submit',(_0x288251,_0x2043fc)=>{this['fire']('addComment',_0x2043fc),_0x3dbf21['editor']['setData']('');}),_0x3dbf21['on']('cancel',()=>this['focus']()),_0x3dbf21['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2415d5;}}class SuggestionThreadView extends BaseSuggestionThreadView{['suggestionView'];['_descriptionElement'];constructor(_0x1d2327,_0x6da1dc,_0x4adf77,_0x3b95c3){super(_0x1d2327,_0x6da1dc,_0x4adf77,_0x3b95c3),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x549d29=>_0x549d29&&_0x549d29[0x0]?_0x549d29[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4e33fb,_0x17fbe7)=>{let _0x26d02c='';for(const _0xdec8f3 of _0x4e33fb)_0x26d02c+='<p>'+ht(_0xdec8f3['content'],_0xdec8f3['color'])+'</p>';return _0x17fbe7?_0x26d02c:_0x27f0b2(_0x26d02c,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3b95c3['SuggestionView'](_0x1d2327,_0x6da1dc,{'formatDateTime':_0x3b95c3['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 _0x2320b0=this['bindTemplate'],_0x5a93c2=[this['suggestionView']];return this['commentsListView']&&_0x5a93c2['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5a93c2['push'](this['commentThreadInputView']),_0x5a93c2['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2320b0['if']('isActive','ck-suggestion-wrapper--active'),_0x2320b0['to']('type',_0xb1b26c=>'ck-suggestion-'+_0xb1b26c),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':_0x2320b0['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5a93c2};}['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 SuggestionView extends _0x31f3e3{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4f4709,_0x7b4b33,_0x20ac72){super(_0x4f4709),this['_model']=_0x7b4b33,this['_config']=_0x20ac72,this['set']('description',''),this['bind']('authoredAt')['to'](_0x7b4b33),this['acceptButton']=this['_createButton'](Tt(_0x4f4709,'Accept\x20suggestion'),_0x22d0e,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Tt(_0x4f4709,'Discard\x20suggestion'),_0x54c250,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2aa164(_0x4f4709,_0x7b4b33['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x29be99([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4d7874(),this['keystrokes']=new _0x3727c1(),this['focusCycler']=new _0x161670({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x307655=>_0x307655['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xdf84c6=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xdf84c6['innerHTML']=this['description'],this['on']('change:description',(_0x273f6d,_0x48a6df,_0x17984b)=>{_0xdf84c6['innerHTML']=_0x17984b;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x319552=this['bindTemplate'],_0x29d28a=[{'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':_0x319552['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x319552['to']('authoredAt',_0x153d13=>this['_config']['formatDateTime'](_0x153d13))}]}]},{'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']&&_0x29d28a['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':_0x29d28a}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Tt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Tt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?Tt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Tt(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x146a3d,_0x4f1fdc,_0x3aa888,_0x5d667f,_0x372a2b){const _0x4f25d1=new _0x3c0df3(this['locale']);return _0x4f25d1['set']({'label':_0x146a3d,'icon':_0x4f1fdc,'tooltip':!0x0,'tooltipPosition':_0x372a2b}),_0x4f25d1['extendTemplate']({'attributes':{'class':_0x3aa888}}),_0x4f25d1['on']('execute',()=>{this['fire'](_0x5d667f,this['_model']['id']);}),_0x4f25d1;}['_setupKeyboardNavigation'](){const _0x5399ab=this['element'];this['keystrokes']['listenTo'](_0x5399ab);for(const _0x15ef0e of this['focusables'])this['focusTracker']['add'](_0x15ef0e['element']),this['keystrokes']['listenTo'](_0x15ef0e['element']);this['keystrokes']['set']('enter',(_0x56a47a,_0x3858b4)=>{_0x5399ab===_0x56a47a['target']&&(this['focusCycler']['focusFirst'](),_0x3858b4());}),this['keystrokes']['set']('esc',(_0x521f14,_0x4af525)=>{_0x5399ab!==_0x521f14['target']&&(this['focus'](),_0x4af525());});}}class TrackChangesUI extends _0xf34f{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[TrackChangesEditing,_0x469759,_0x208597,_0x280499,_0x48bf6b];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3c9553){super(_0x3c9553),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3c6706=this['editor']['config'];_0x3c6706['define']('trackChanges.SuggestionThreadView',SuggestionThreadView),_0x3c6706['define']('trackChanges.SuggestionView',SuggestionView),_0x3c6706['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3c6706['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x213dc4,_0x46d242){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x329c5,_0x8d6805]of this['_handleControllerBuffer']){const _0x5914a4=this['_suggestionToController']['has'](_0x329c5);_0x5914a4||_0x8d6805?_0x5914a4&&_0x8d6805&&this['_destroyController'](_0x329c5):this['_initializeController'](_0x329c5);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x48bf6b)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x213dc4,_0x46d242);}['init'](){const _0x259f3a=this['editor'],_0x2f1344=_0x259f3a['plugins']['get'](TrackChangesEditing),_0x2af36f=_0x259f3a['plugins']['get'](_0x280499),_0x1d5b09=_0x259f3a['plugins']['get'](_0x48bf6b),_0x2d2e1b=_0x259f3a['plugins']['get'](_0x208597);this['_addUIComponentsToFactory'](),_0x1d5b09['addSourceCollector'](()=>{const _0x42e6d9=[];for(const [_0x2b9647,_0x523f08]of Array['from'](this['_suggestionToController'])){const _0x3cf2a8=_0x2b9647['getAllAdjacentSuggestions'](),_0x9059a2=[];for(const _0x254de5 of _0x3cf2a8){if(!_0x254de5['isInContent'])continue;if(_0x254de5['isMultiRange']){_0x9059a2['push'](..._0x254de5['getRanges']());continue;}const _0x3eef09=_0x254de5['getFirstRange']();if(_0x9059a2['length']>0x0){const _0x5bab0d=_0x9059a2[0x0]['getJoined'](_0x3eef09);if(_0x5bab0d){_0x9059a2[0x0]=_0x5bab0d;continue;}}_0x9059a2['push'](_0x3eef09);}_0x42e6d9['push']([_0x523f08['view'],_0x9059a2]);}return _0x42e6d9;}),this['listenTo'](_0x2f1344,'suggestionLoaded',(_0x486fa6,_0x2b4ad9)=>{this['listenTo'](_0x2b4ad9,'change:previous',(_0x44801c,_0x309d52,_0x4b3e01,_0x1b87d2)=>{_0x2b4ad9['isInContent']&&(null==_0x4b3e01?(this['_updateController'](_0x1b87d2['head']),this['_handleSuggestionControllerDelayed'](_0x2b4ad9,!0x1)):(this['_updateController'](_0x4b3e01['head']),null==_0x1b87d2&&this['_handleSuggestionControllerDelayed'](_0x2b4ad9,!0x0)));}),null!==_0x2b4ad9['previous']?this['_updateController'](_0x2b4ad9['head']):this['_handleSuggestionControllerDelayed'](_0x2b4ad9,!0x1);}),this['listenTo'](_0x2f1344,'suggestionUnloaded',(_0x272a44,_0x46be39,_0x5e7c09)=>{this['stopListening'](_0x46be39,'change:previous'),this['_handleControllerBuffer']['delete'](_0x46be39),this['_suggestionToController']['has'](_0x46be39)&&this['_destroyController'](_0x46be39),_0x5e7c09&&this['_updateController'](_0x5e7c09['head']);}),this['listenTo'](_0x2f1344,'suggestionChanged',(_0x49c6c6,_0x306450)=>{this['_updateController'](_0x306450);}),this['listenTo'](_0x2af36f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2d2e1b,'addComment',(_0x5efed3,{threadId:_0x305cab,isFromAdapter:_0x354003})=>{if(_0x354003||!_0x2f1344['hasSuggestion'](_0x305cab))return;const _0x8e5190=_0x2f1344['getSuggestion'](_0x305cab);this['_suggestionToController']['get'](_0x8e5190)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1bc002=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x58c211;for(const _0x23598a in _0x1bc002){const _0x11d6f8=_0x23598a,_0x42e61e=_0x1bc002[_0x11d6f8];if('trackChangesLicenseKeyValid'==_0x42e61e||'trackChangesLicenseKeyInvalid'==_0x42e61e||'trackChangesLicenseKeyExpired'==_0x42e61e||'trackChangesLicenseKeyDomainLimit'==_0x42e61e||'trackChangesLicenseKeyNotAllowed'==_0x42e61e||'trackChangesLicenseKeyEvaluationLimit'==_0x42e61e||'trackChangesLicenseKeyUsageLimit'==_0x42e61e){delete _0x1bc002[_0x11d6f8],_0x58c211=_0x42e61e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x58c211&&_0x1bc002['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x58c211&&_0x1bc002['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x58c211&&_0x1bc002['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x58c211&&_0x1bc002['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x58c211&&_0x1bc002['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x58c211&&_0x1bc002['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x3a5c33){const _0x1a2949=this['_suggestionToController']['get'](_0x3a5c33);if(!_0x1a2949)return null;return this['editor']['plugins']['get'](_0x280499)['getByInnerView'](_0x1a2949['view'])||null;}['getSuggestionForAnnotation'](_0x4607eb){const _0x700c2c=this['_viewToController']['get'](_0x4607eb['innerView']);return _0x700c2c?_0x700c2c['model']:null;}['_refreshActiveMarkers'](){const _0x4a4049=this['editor']['plugins']['get'](_0x280499),_0x11c834=this['editor']['plugins']['get'](TrackChangesEditing),_0x564c68=Array['from'](_0x4a4049['activeAnnotations'],_0x4b14bf=>_0x4b14bf['innerView'])['filter'](_0x52952b=>this['_viewToController']['has'](_0x52952b)),_0x225bc3=[];for(const _0x94ee3 of _0x564c68){const _0xf33b26=this['_viewToController']['get'](_0x94ee3)['model']['getAllAdjacentSuggestions']();_0x225bc3['push'](..._0xf33b26['reduce']((_0x217111,_0x2e5558)=>[..._0x217111,..._0x2e5558['getMarkerNames']()],[]));}_0x11c834['activeMarkers']=_0x225bc3;}['_addUIComponentsToFactory'](){const _0x67d7a4=this['editor'],_0x9cc395=_0x67d7a4['locale'],_0x4b9ea3=Tt(_0x9cc395,'Track\x20changes'),_0x3ef9e0=new _0x1cb039([{'type':'switchbutton','model':new _0x210655({'withText':!0x0,'isToggleable':!0x0,'label':_0x4b9ea3,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x210655({'withText':!0x0,'label':Tt(_0x9cc395,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x210655({'withText':!0x0,'label':Tt(_0x9cc395,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x210655({'withText':!0x0,'label':Tt(_0x9cc395,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x210655({'withText':!0x0,'label':Tt(_0x9cc395,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x67d7a4['plugins']['has']('TrackChangesPreview')&&_0x3ef9e0['addMany']([{'type':'separator'},{'type':'button','model':new _0x210655({'withText':!0x0,'label':Tt(_0x9cc395,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3246de of _0x3ef9e0)if(Yt(_0x3246de)){const _0x2d8987=_0x67d7a4['commands']['get'](_0x3246de['model']['commandName']);_0x3246de['model']['bind']('isOn','isEnabled')['to'](_0x2d8987,'value','isEnabled');}_0x67d7a4['ui']['componentFactory']['add']('trackChanges',_0x54f8f0=>this['_createToolbarButton'](_0x54f8f0,_0x3ef9e0,_0x4b9ea3)),_0x67d7a4['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4c3c9c=>this['_createMenuBarMenu'](_0x4c3c9c,_0x3ef9e0,_0x4b9ea3));}['_createToolbarButton'](_0x15ea54,_0x113c25,_0xcb294){const _0x59fcad=_0x11085c(_0x15ea54,_0x23fd6e),_0x55d6fe=this['editor']['commands']['get']('trackChanges');_0x59fcad['buttonView']['set']({'tooltip':_0xcb294,'label':_0xcb294,'icon':_0x481660}),_0x59fcad['buttonView']['bind']('isOn')['to'](_0x55d6fe,'value'),_0x59fcad['buttonView']['on']('execute',()=>{_0x55d6fe['execute'](),this['editor']['editing']['view']['focus']();}),_0x5c5ac0(_0x59fcad,_0x113c25,{'role':'menu'});const _0x1a27c5=[];for(const _0x5e6613 of _0x113c25)Yt(_0x5e6613)&&_0x1a27c5['push'](this['editor']['commands']['get'](_0x5e6613['model']['commandName']));const _0x26edb2=_0x59fcad['buttonView'];return _0x26edb2['actionView']['unbind']('isEnabled'),_0x26edb2['arrowView']['unbind']('isEnabled'),_0x26edb2['actionView']['bind']('isEnabled')['to'](_0x55d6fe,'isEnabled'),_0x26edb2['arrowView']['bind']('isEnabled')['toMany'](_0x1a27c5,'isEnabled',(..._0x328678)=>_0x328678['some'](_0x10be35=>_0x10be35)),_0x59fcad['on']('execute',_0xc4978=>{this['editor']['execute'](_0xc4978['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x59fcad;}['_createMenuBarMenu'](_0x3c6fe1,_0x5f1216,_0x44b7db){const _0x261173=new _0x358f9c(_0x3c6fe1),_0x2abc35=this['editor']['commands']['get']('trackChanges');_0x261173['buttonView']['set']({'label':_0x44b7db,'icon':_0x481660});const _0x384b52=new _0x54d7bd(_0x3c6fe1);for(const _0x2c372e of _0x5f1216){if('separator'==_0x2c372e['type']){_0x384b52['items']['add'](new _0x126a94(_0x3c6fe1));continue;}const _0x13308f=new _0x34e6fe(_0x3c6fe1,_0x261173),_0x2d7618=new _0x3682f4(_0x3c6fe1),_0x3510b9=_0x2c372e['model'];_0x2d7618['bind'](...Object['keys'](_0x3510b9))['to'](_0x3510b9),_0x2d7618['delegate']('execute')['to'](_0x261173),_0x2d7618['on']('execute',()=>{this['editor']['execute'](_0x3510b9['commandName']),this['editor']['editing']['view']['focus']();}),_0x13308f['children']['add'](_0x2d7618),_0x384b52['items']['add'](_0x13308f);}return _0x261173['bind']('isEnabled')['to'](_0x2abc35,'isEnabled'),_0x261173['panelView']['children']['add'](_0x384b52),_0x261173;}['_initializeController'](_0x441f02){const _0x4edd75=this['editor'],_0x13405b=_0x4edd75['config'],_0x5ddefd=_0x4edd75['plugins']['get'](_0x280499),_0x533834=_0x4edd75['plugins']['get'](_0x208597),_0x3dbd7d=_0x4edd75['plugins']['get'](_0x48bf6b),_0x5dfed0=_0x4edd75['plugins']['get'](_0x469759)['me'],_0x415e9d=_0x13405b['get']('trackChanges')['SuggestionThreadView'],_0x539053=_0x13405b['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x252c32,CommentThreadInputView:_0xc26d99}=_0x4edd75['plugins']['get']('CommentsUI');let _0x2e00ad,_0x46f9fe,_0x969a07;this['_annotationViews']['has'](_0x441f02['id'])?(_0x46f9fe=this['_annotationViews']['get'](_0x441f02['id']),_0x2e00ad=_0x46f9fe['mainView']):(_0x2e00ad=new _0x415e9d(_0x4edd75['locale'],_0x441f02,_0x5dfed0,{'disableComments':this['_disableComments'],'editorConfig':{..._0x13405b['get']('comments.editorConfig'),'licenseKey':_0x13405b['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x13405b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x13405b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x13405b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3209ea(_0x13405b['get']('locale'),_0x4edd75['locale']),'CommentView':_0x13405b['get']('comments')['CommentView'],'CommentsListView':_0x252c32,'CommentThreadInputView':_0xc26d99,'SuggestionView':_0x539053}),_0x2e00ad['suggestionView']['acceptButton']['on']('execute',()=>{_0x4edd75['editing']['view']['focus']();}),_0x2e00ad['suggestionView']['discardButton']['on']('execute',()=>{_0x4edd75['editing']['view']['focus']();}),_0x46f9fe=_0x5ddefd['createAnnotationView'](this['editor']['locale'],_0x2e00ad),_0x46f9fe['bind']('isDirty')['to'](_0x2e00ad,'isDirty'),_0x46f9fe['bind']('length')['to'](_0x2e00ad),_0x46f9fe['bind']('type')['to'](_0x2e00ad,'type',_0x571e7d=>'suggestion-'+_0x571e7d),_0x2e00ad['on']('escape',()=>{_0x969a07['fire']('escape');}),this['_annotationViews']['set'](_0x441f02['id'],_0x46f9fe));const _0x4b6f63=_0x533834['createCommentThreadController'](_0x441f02['commentThread'],_0x2e00ad),_0x334c04=new SuggestionController(_0x4edd75,_0x441f02,_0x2e00ad,_0x4b6f63),_0x16f7ec=_0x441f02['getAllAdjacentSuggestions']()['filter'](_0x4b836b=>_0x4b836b['isInContent']);_0x2e00ad['descriptionParts']=_0x4edd75['plugins']['get'](TrackChangesEditing)['descriptionFactory']['getDescriptions'](_0x16f7ec),this['_suggestionToController']['set'](_0x441f02,_0x334c04),this['_viewToController']['set'](_0x2e00ad,_0x334c04);const _0x773c07=()=>{const _0x395e64=[],_0x9a63eb=_0x441f02['getAllAdjacentSuggestions']()['filter'](_0x3c78a2=>_0x3c78a2['isInContent']);for(const _0x12e2b9 of _0x9a63eb)_0x395e64['push'](..._0x12e2b9['getMarkers']());return _0x575ec6(_0x4edd75['editing'],_0x395e64);};_0x969a07=_0x5ddefd['createAnnotation']({'view':_0x46f9fe,'target':_0x773c07,'type':()=>'suggestion-'+_0x334c04['view']['type'],'isVisible':!!_0x773c07()}),_0x533834['_bindAnnotationToEditors'](_0x2e00ad,_0x969a07),_0x5ddefd['add'](_0x969a07),_0x3dbd7d['registerAnnotation'](_0x969a07);}['_destroyController'](_0x5a9770){const _0x409922=this['editor']['plugins']['get'](_0x208597),_0xdde2b6=this['editor']['plugins']['get'](_0x280499),_0x4b356d=this['_suggestionToController']['get'](_0x5a9770),_0x36ef54=_0x4b356d['view'],_0x441c3b=_0xdde2b6['getByInnerView'](_0x36ef54);_0x409922['_unbindEditors'](_0x36ef54),_0x441c3b&&_0xdde2b6['remove'](_0x441c3b),this['_suggestionToController']['delete'](_0x5a9770),this['_viewToController']['delete'](_0x36ef54),_0x4b356d['destroy']();}['_updateController'](_0x25eef5){if(!_0x25eef5['isInContent']||!this['_suggestionToController']['has'](_0x25eef5))return;const _0xbc27f4=this['editor']['plugins']['get'](TrackChangesEditing),_0x3d3268=this['_suggestionToController']['get'](_0x25eef5),_0x37fc53=_0x25eef5['getAllAdjacentSuggestions']();_0x3d3268['view']['descriptionParts']=_0xbc27f4['descriptionFactory']['getDescriptions'](_0x37fc53);}['destroy'](){for(const _0x8b7768 of this['_suggestionToController']['keys']())this['_destroyController'](_0x8b7768);for(const _0x585fae of this['_annotationViews']['values']())_0x585fae['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Yt(_0x5cd140){return'model'in _0x5cd140;}class TrackChanges extends _0xf34f{static get['requires'](){return[TrackChangesEditing,TrackChangesUI,_0x5f0eca];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0xdd84ad){this['editor']['plugins']['get'](TrackChangesEditing)['adapter']=_0xdd84ad;}get['adapter'](){return this['editor']['plugins']['get'](TrackChangesEditing)['adapter'];}['addSuggestion'](_0x2534f5){return this['editor']['plugins']['get'](TrackChangesEditing)['addSuggestionData'](_0x2534f5);}['getSuggestions']({skipNotAttached:_0x4749d6=!0x1,toJSON:_0x2b9030=!0x1}={}){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestions']({'skipNotAttached':_0x4749d6,'toJSON':_0x2b9030});}['getSuggestion'](_0x5bad0a){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestion'](_0x5bad0a);}}const qt=['Pagination'];class TrackChangesData extends _0xf34f{static get['requires'](){return[TrackChangesEditing];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2cc3db=this['editor'];if(_0x2cc3db['config']['define']('trackChangesData.editorCreator',_0x5095aa=>{const _0x532db7=_0x2cc3db['model']['document']['getRootNames']()['reduce']((_0x4ccbd8,_0x5a6342)=>(_0x4ccbd8[_0x5a6342]='',_0x4ccbd8),{});return _0x2cc3db['constructor']['create'](_0x532db7,_0x5095aa);}),'function'!=typeof _0x2cc3db['config']['get']('trackChangesData')['editorCreator'])throw new _0xa8575f('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x182fc7){return Zt(this['editor'],!0x0,_0x182fc7);}['getDataWithDiscardedSuggestions'](_0x2f55dd){return Zt(this['editor'],!0x1,_0x2f55dd);}}class TrackChangesDataGetter extends _0xf34f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xc885eb){function _0x4fe5c8(_0x5cc33d){return _0x5cc33d['map'](_0x31918b=>String['fromCharCode'](_0x31918b))['join']('');}super(_0xc885eb),this['result']='end',_0xc885eb[_0x4fe5c8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4fe5c8([0x76,0x69,0x65,0x77])][_0x4fe5c8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4fe5c8([0x61,0x75,0x74,0x6f]),_0xc885eb[_0x4fe5c8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4fe5c8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4fe5c8([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4fe5c8([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4fe5c8([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 Qt(_0xba7375){return void 0x0!==_0xba7375['getRootsAttributes'];}async function Zt(_0x34c8c6,_0x37a6f5,_0x26bb9a){const _0x26b4a5=_0x498f83(_0x34c8c6,qt);if(_0x26b4a5['plugins']['push'](TrackChangesEditing,TrackChangesDataGetter),Qt(_0x34c8c6)){_0x26b4a5['roots']=Object['create'](null);for(const _0x425782 of _0x34c8c6['model']['document']['getRootNames']())_0x26b4a5['roots'][_0x425782]={'modelAttributes':_0x34c8c6['getRootAttributes'](_0x425782)};}const _0x2e3849=document['createDocumentFragment'](),_0x5185dc=_0x34c8c6['config']['get']('trackChangesData')['editorCreator'],_0x32f15c=await _0x5185dc(_0x26b4a5,()=>function(_0x13435c){const _0x148a42=document['createElement']('div');return _0x13435c['appendChild'](_0x148a42),_0x148a42;}(_0x2e3849));!function(_0x337c35,_0x389f19){const _0x3975dc=_0x337c35['model']['document']['getRootNames']()['reduce']((_0x452027,_0x4edff8)=>(_0x452027[_0x4edff8]=_0x337c35['data']['get']({'rootName':_0x4edff8}),_0x452027),{}),_0x58aaaa=_0x337c35['plugins']['get']('Users')['users']['map'](_0x50c7ed=>({'id':_0x50c7ed['id'],'name':_0x50c7ed['name']})),_0x8f8360=_0x337c35['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x407194=_0x337c35['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1078bd=_0x389f19['plugins']['get']('Users'),_0x3d2a0a=_0x389f19['plugins']['get']('TrackChangesEditing'),_0x52ac51=_0x389f19['plugins']['get']('CommentsRepository');for(const _0x32f38a of _0x52ac51['getCommentThreads']())_0x32f38a['remove']();for(const _0x289e31 of _0x58aaaa)_0x1078bd['getUser'](_0x289e31['id'])||_0x1078bd['addUser'](_0x289e31);_0x1078bd['me']||_0x1078bd['useAnonymousUser']();for(const _0x37fcb3 of _0x407194)_0x52ac51['addCommentThread'](_0x37fcb3);for(const _0x12c541 of _0x8f8360)_0x3d2a0a['addSuggestionData'](_0x12c541);_0x389f19['data']['set'](_0x3975dc);}(_0x34c8c6,_0x32f15c),_0x32f15c['execute'](_0x37a6f5?'acceptAllSuggestions':'discardAllSuggestions');const _0x3cdb40=Qt(_0x32f15c)?_0x32f15c['getFullData'](_0x26bb9a):_0x32f15c['data']['get'](_0x26bb9a);return await _0x32f15c['destroy'](),_0x3cdb40;}class TrackChangesPreviewView extends _0x31f3e3{['options'];constructor(_0x2a7738,_0x62dd65){super(_0x2a7738),this['options']=_0x62dd65,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'](_0x3191be,_0x5602bb){if(!this['element'])return;const _0x31742c=[];for(const [_0x5a9898,_0x3a577a]of _0x3191be){const _0xdb09f9=document['createElement']('div');_0xdb09f9['setAttribute']('data-ck-root-name',_0x5a9898),_0xdb09f9['className']=_0x3a577a['classes']+'\x20ck-track-changes-preview__root-container',_0xdb09f9['innerHTML']=_0x3a577a['content'],_0x31742c['push'](_0xdb09f9);}_0x5602bb(this['element'],_0x31742c),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class PreviewFinalContentCommand extends _0x1e6dd8{constructor(_0x182cf1){super(_0x182cf1),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x53c12f=this['editor'],_0x538b5f=_0x53c12f['locale'],_0x35e183=_0x53c12f['plugins']['get']('Dialog');let _0x1539af;const _0x1356c1=function(_0x5977e6){const _0x5509e6={};if('editables'in _0x5977e6['ui']['view']){for(const [_0x164a17,_0x209063]of Object['entries'](_0x5977e6['ui']['view']['editables']))_0x5509e6[_0x164a17]=_0x209063['element'];}else _0x5509e6[_0x5977e6['model']['document']['getRootNames']()[0x0]]=_0x5977e6['ui']['view']['editable']['element'];return _0x5509e6;}(_0x53c12f),_0x284343=function(_0x4d1d8c){let _0x20bcf6=0x0;for(const _0x242127 of Object['values'](_0x4d1d8c))_0x20bcf6=Math['max'](_0x20bcf6,_0x242127['getBoundingClientRect']()['width']);let _0x5e42f8=0x0;for(const _0x38346d of Object['values'](_0x4d1d8c))_0x5e42f8+=_0x38346d['getBoundingClientRect']()['height'];const _0x142b48=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3ac9f0=Math['min'](_0x5e42f8,_0x142b48);return{'width':_0x20bcf6,'height':_0x3ac9f0};}(_0x1356c1);_0x35e183['show']({'id':'finalContentPreview','title':Tt(_0x538b5f,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new TrackChangesPreviewView(_0x538b5f,{'dialogRects':_0x284343}),'onHide':()=>{_0x1539af['detachFromDom']();},'onShow':()=>{_0x53c12f['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x46e923=>{const _0x13de7c=this['_standarizeRootsData'](_0x46e923,_0x53c12f,_0x1356c1);_0x35e183['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x13de7c,_0x53c12f['config']['get']('trackChanges.preview.renderFunction'));}),_0x1539af=new _0x4ee44b(_0x538b5f,[_0x35e183['view']]),_0x1539af['attachToDom'](),_0x1539af['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x53c12f['once']('destroy',()=>{_0x1539af['detachFromDom']();});const _0x221407=_0x35e183['view']['headerView']['class'];_0x35e183['view']['headerView']['class']=_0x221407?_0x221407+'\x20ck-reset_all':'ck-reset_all',_0x35e183['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x35e183['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x4b80cb=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x438b47=_0x4b80cb['previewMode'],_0x599eac={};if('$labels'===_0x438b47){for(const _0x6fa9e5 of _0x4b80cb['getMergeFieldsIds']())_0x599eac[_0x6fa9e5]=_0x4b80cb['getLabel'](_0x6fa9e5)||_0x6fa9e5;}else{const _0x5f1d6e='$defaultValues'===_0x438b47?_0x4b80cb['getDefaultValues']():_0x4b80cb['getDataSetValues'](_0x438b47,!0x0);for(const _0x181206 of Object['entries'](_0x5f1d6e)){const [_0x1af831,_0x27484d]=_0x181206;_0x599eac[_0x1af831]=null!==_0x27484d?_0x27484d:_0x4b80cb['getLabel'](_0x1af831)||_0x1af831;}}return{'mergeFieldsData':_0x599eac};}['_standarizeRootsData'](_0x37c6c9,_0x5d041b,_0x61f69){let _0x16d3dd;if('string'==typeof _0x37c6c9){const _0x5acef3=_0x5d041b['model']['document']['getRootNames']()[0x0];_0x16d3dd={[_0x5acef3]:_0x37c6c9};}else _0x16d3dd=_0x37c6c9;const _0x3e3dbc=this['_fixMediaEmbeds'](_0x16d3dd,_0x5d041b),_0x424f9a=function(_0x49414b,_0x2f0087){for(const [_0x59e0af,_0x9fa7f5]of _0x49414b)_0x9fa7f5['classes']=_0x2f0087[_0x59e0af]['classList']['value']['replace']('ck-focused','');return _0x49414b;}(this['_sortRoots'](_0x5d041b)['reduce']((_0x3b5e43,_0x58c8c5)=>(_0x3b5e43['push']([_0x58c8c5,{'content':_0x3e3dbc[_0x58c8c5],'classes':''}]),_0x3b5e43),[]),_0x61f69);return _0x424f9a;}['_fixMediaEmbeds'](_0x43ef19,_0x5dbd9f){if(!_0x5dbd9f['plugins']['has']('MediaEmbedEditing'))return _0x43ef19;const _0x18ecc9=_0x5dbd9f['plugins']['get']('MediaEmbedEditing');for(const [_0x215214,_0x14cd46]of Object['entries'](_0x43ef19)){const _0x15e5f0=document['createElement']('div');_0x15e5f0['innerHTML']=_0x14cd46,(_0x15e5f0['querySelectorAll']('figure.media')['forEach'](_0x537289=>{const _0x501e1e=_0x537289['querySelector']('oembed');if(_0x501e1e){const _0x44d56b=_0x501e1e['getAttribute']('url');if(_0x44d56b){const _0x34bed4=_0x18ecc9['registry']['getMediaViewElement'](new et(_0x5dbd9f['editing']['view']['document']),_0x44d56b,{'elementName':'','renderForEditingView':!0x0}),_0xf61a0d=document['createElement']('div');_0xf61a0d['classList']['add']('ck-media__wrapper'),_0x34bed4['render'](_0xf61a0d,_0x5dbd9f['editing']['view']['domConverter']),_0x501e1e['replaceWith'](_0xf61a0d);}}}),_0x43ef19[_0x215214]=_0x15e5f0['innerHTML']);}return _0x43ef19;}['_sortRoots'](_0x3d1fd0){if(!function(_0x5167b3){return void 0x0!==_0x5167b3['getRootsAttributes'];}(_0x3d1fd0))return _0x3d1fd0['model']['document']['getRootNames']();const _0x2da8c0=[],_0xd16436=new Map();for(const _0x157796 of _0x3d1fd0['model']['document']['getRootNames']()){const _0x15f4f5=_0x3d1fd0['editing']['view']['getDomRoot'](_0x157796)['getClientRects']()['item'](0x0);_0x2da8c0['push'](_0x157796),_0xd16436['set'](_0x157796,_0x15f4f5);}return _0x2da8c0['sort']((_0x32cfc3,_0x343652)=>{const _0x49f359=_0xd16436['get'](_0x32cfc3),_0x33d88f=_0xd16436['get'](_0x343652);return _0x49f359['y']-_0x33d88f['y']||_0x49f359['x']-_0x33d88f['x'];}),_0x2da8c0;}}class TrackChangesPreview extends _0xf34f{static get['requires'](){return[TrackChangesData,_0x295711];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xb28eba){super(_0xb28eba),_0xb28eba['commands']['add']('previewFinalContent',new PreviewFinalContentCommand(this['editor'])),_0xb28eba['config']['define']('trackChanges.preview.renderFunction',(_0x44d229,_0x2a8a8f)=>{for(const _0x483fe3 of _0x2a8a8f)_0x44d229['appendChild'](_0x483fe3);});}}export{AcceptSuggestionCommand,BaseSuggestionThreadView,DiscardSuggestionCommand,ExecuteOnAllSuggestionsCommand,ExecuteOnSelectedSuggestionsCommand,PreviewFinalContentCommand,Suggestion,SuggestionDescriptionFactory,SuggestionThreadView,SuggestionView,TrackChanges,TrackChangesCommand,TrackChangesData,TrackChangesDataGetter,TrackChangesEditing,TrackChangesPreview,TrackChangesUI};