@ckeditor/ckeditor5-track-changes 48.2.0-alpha.3 → 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 _0x14e120,Plugin as _0x3ea3b4,PendingActions as _0x5dde1d}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0x181319,Annotations as _0x1a224d,EditorAnnotations as _0x44a098,Comments as _0x4b21f6}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0x180e5c,ObservableMixin as _0x2671d6,uid as _0x4681a7,priorities as _0x3029c3,insertToPriorityArray as _0x38ca84,logWarning as _0x219ccc,getEnvKeystrokeText as _0x44b0b1,FocusTracker as _0x430cd1,KeystrokeHandler as _0x49f1ea,Collection as _0x3e5b65}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x4370cb,IconCancel as _0x7afe80,IconTrackChanges as _0x2a0832}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x40e1c6,View as _0x3dabb4,ViewCollection as _0x25a70f,FocusCycler as _0x1a7373,UIModel as _0x4f152d,createDropdown as _0xe3101,SplitButtonView as _0x140ced,addListToDropdown as _0x14603c,MenuBarMenuView as _0x7f1e4f,MenuBarMenuListView as _0x51605c,ListSeparatorView as _0x2ebf0c,MenuBarMenuListItemView as _0x43e5a5,MenuBarMenuListItemButtonView as _0x3ddcae,BodyCollection as _0x16da8c,Dialog as _0x38eea3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x368712,SuggestionsConversion as _0x133a74,Users as _0x2735a2,DocumentCompare as _0x42cf99,fixElementSuggestionRange as _0x2d0738,hashObject as _0x274975,surroundingMarkersDetector as _0x3b812a,FOCUS_ANNOTATION_KEYSTROKE as _0x3d6e5e,AriaDescriptionView as _0x1b5838,setupThreadKeyboardNavigation as _0x5c8496,trimHtml as _0x332d04,UserView as _0x2f641b,LateFocusButtonView as _0x80ad2c,getDateTimeFormatter as _0x2eaad4,getAllMarkersDomElementsSorted as _0x43e048,sanitizeEditorConfig as _0x34f537}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x1236b6,ModelLiveRange as _0x418bbc,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 _0x14e120{['_enabledCommands'];constructor(_0x5bc29e,_0x197bb0){super(_0x5bc29e),this['_enabledCommands']=_0x197bb0,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 _0x3304b4 of this['editor']['commands']['commands']())_0x3304b4['affectsData']&&!this['_enabledCommands']['has'](_0x3304b4)&&_0x3304b4['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x37cc2f of this['editor']['commands']['commands']())_0x37cc2f['affectsData']&&!this['_enabledCommands']['has'](_0x37cc2f)&&_0x37cc2f['clearForceDisabled']('TrackChangesCommand');}}class AcceptSuggestionCommand extends _0x14e120{['_suggestions'];constructor(_0x38122e,_0x2a1f85){super(_0x38122e),this['_suggestions']=_0x2a1f85,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x22f056){const _0x3e34ec=this['_suggestions']['get'](_0x22f056);if(!_0x3e34ec)throw new _0x180e5c('track-changes-accept-suggestion-not-found',this);const _0x57b90c=_0x3e34ec['getRanges']();this['editor']['model']['canEditAt'](_0x57b90c)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3e34ec);}}class DiscardSuggestionCommand extends _0x14e120{['_suggestions'];constructor(_0x520e8a,_0x372c35){super(_0x520e8a),this['_suggestions']=_0x372c35,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x12c3b7){const _0x31ac58=this['_suggestions']['get'](_0x12c3b7);if(!_0x31ac58)throw new _0x180e5c('track-changes-discard-suggestion-not-found',this);const _0x23015f=_0x31ac58['getRanges']();this['editor']['model']['canEditAt'](_0x23015f)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x31ac58);}}function ht(_0x1728a2,_0x446ead){let _0x4456d1='';return _0x4456d1+=_0x1728a2['split']('*')['map']((_0x3d3ea9,_0x442dff)=>_0x442dff%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+dt(_0x3d3ea9)+'</span>':dt(_0x3d3ea9))['join'](''),_0x446ead&&(_0x4456d1+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x446ead['value']+'\x22\x20title=\x22'+_0x446ead['title']+'\x22></span>'),_0x4456d1;}function dt(_0x1b12cb){const _0x533017=document['createElement']('span');return _0x533017['innerText']=_0x1b12cb,_0x533017['innerHTML'];}function gt(_0x9ccf28){return _0x9ccf28['sort']((_0x4371f3,_0x4b46ef)=>'attribute'===_0x4371f3['type']&&'attribute'!==_0x4b46ef['type']?-0x1:'attribute'!==_0x4371f3['type']&&'attribute'===_0x4b46ef['type']?0x1:'deletion'==_0x4371f3['type']&&'deletion'!=_0x4b46ef['type']?-0x1:'deletion'!=_0x4371f3['type']&&'deletion'==_0x4b46ef['type']?0x1:0x0);}function ft(_0x2993da,_0x5229f8){let _0x5dc929,_0x58bfcf=0x0;const _0x364ba8=[],_0x5a8b32=_0x5229f8['schema'];for(;_0x58bfcf<_0x2993da['length'];){const _0xc87b8d=_0x2993da[_0x58bfcf],_0x135f3d=_0x2993da[_0x58bfcf+0x1];_0x5dc929||(_0x5dc929=_0x5229f8['createPositionBefore'](_0xc87b8d)),mt(_0x5229f8,_0xc87b8d,_0x135f3d)||(_0x364ba8['push'](_0x5229f8['createRange'](_0x5dc929,_0x5a8b32['isObject'](_0xc87b8d)?_0x5229f8['createPositionAfter'](_0xc87b8d):_0x5229f8['createPositionAt'](_0xc87b8d,'end'))),_0x5dc929=null),_0x58bfcf++;}return _0x364ba8;}function mt(_0xb3c781,_0x162477,_0x2204c0){if(!_0x2204c0)return!0x1;const _0x5d3452=_0xb3c781['createPositionAfter'](_0x162477),_0x4b0dfd=_0xb3c781['createPositionBefore'](_0x2204c0);return _0x5d3452['isTouching'](_0x4b0dfd);}function Et(_0x46bca9,_0x42a0cb,_0x58294c){for(;_0x58294c['length'];){const _0x2cddb9=_0x58294c['splice'](0x0,0x64);_0x46bca9['change'](()=>{for(const _0x4becb4 of _0x2cddb9)_0x4becb4['isInContent']&&_0x42a0cb['execute'](_0x4becb4['id']);});}}class ExecuteOnAllSuggestionsCommand extends _0x14e120{['_command'];['_suggestions'];constructor(_0x112a5b,_0x568e03,_0x4d5e49){super(_0x112a5b),this['_command']=_0x568e03,this['_suggestions']=_0x4d5e49,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4c95ec=Array['from'](this['_suggestions']['values']())['some'](_0x25c5d1=>_0x25c5d1['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4c95ec;}['execute'](){const _0x2de5f2=gt(Array['from'](this['_suggestions']['values']()));for(const _0x52cf56 of _0x2de5f2){const _0xe71b09=_0x52cf56['getRanges']();if(!this['editor']['model']['canEditAt'](_0xe71b09))return;}Et(this['editor']['model'],this['_command'],_0x2de5f2);}}class ExecuteOnSelectedSuggestionsCommand extends _0x14e120{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x36b8bd,_0x488b6a,_0x55cb02){super(_0x36b8bd),this['_command']=_0x488b6a,this['_suggestions']=_0x55cb02,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x15471e=this['editor']['model']['document']['selection'],_0x48d6f0=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x353776,_0x262af7){const _0x2fa0b7=Array['from'](_0x353776['getRanges']()),_0x3d0759=new Set();for(const _0xb9adf6 of _0x262af7)if(_0xb9adf6['isInContent']){for(const _0x535529 of _0x2fa0b7)for(const _0x473c26 of _0xb9adf6['getRanges']())(_0x535529['isIntersecting'](_0x473c26)||_0x353776['isCollapsed']&&!_0xb9adf6['isMultiRange']&&_0xb9adf6['next']&&_0x473c26['end']['isTouching'](_0x535529['start']))&&_0x3d0759['add'](_0xb9adf6);}return _0x3d0759;}(_0x15471e,_0x48d6f0),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2be42a=gt(Array['from'](this['_selectedSuggestions']));for(const _0x2910e3 of _0x2be42a){const _0x171e54=_0x2910e3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x171e54))return;}Et(this['editor']['model'],this['_command'],_0x2be42a);}}class Suggestion extends/* #__PURE__ -- @preserve */
24
- _0x2671d6(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x343927,_0x1bc5bc){super(),this['id']=_0x1bc5bc['id'],this['type']=_0x1bc5bc['type'],this['subType']=_0x1bc5bc['subType']||null,this['author']=_0x1bc5bc['author'],this['creator']=_0x1bc5bc['creator']||_0x1bc5bc['author'],this['isExternal']=Boolean(_0x1bc5bc['attributes']&&_0x1bc5bc['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1bc5bc['originalSuggestionId']||null,this['_model']=_0x343927,this['_onAccept']=_0x1bc5bc['onAccept'],this['_onDiscard']=_0x1bc5bc['onDiscard'],this['_onAttributesChange']=_0x1bc5bc['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1bc5bc['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 _0x118e1f=this;for(;_0x118e1f['previous'];)_0x118e1f=_0x118e1f['previous'];return _0x118e1f;}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'](_0x2a1c27){this['_markerNames']['add'](_0x2a1c27);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xb23fb1=>this['_model']['markers']['get'](_0xb23fb1))['filter'](_0x63d1d8=>_0x63d1d8);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x8ccb23=>{for(const _0x5aaffb of this['getMarkers']())_0x8ccb23['removeMarker'](_0x5aaffb);}),this['_markerNames']['clear']();}['removeMarker'](_0x261bd8){this['_model']['change'](_0x507b5e=>{_0x507b5e['removeMarker'](_0x261bd8);}),this['_markerNames']['delete'](_0x261bd8);}['addRange'](_0x28f4b4){const _0x42cde4='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x42cde4),this['_model']['change'](_0x3790a5=>{_0x3790a5['addMarker'](_0x42cde4,{'range':_0x28f4b4,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5dc20e){for(const _0xeb854f of this['getRanges']())if(_0xeb854f['isIntersecting'](_0x5dc20e))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x538ade=>_0x538ade['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2ea345,_0x26fd2e)=>[..._0x2ea345,..._0x26fd2e['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x257de7=this['getRanges']();if(0x1!=_0x257de7['length'])return null;const _0x5b3c3e=_0x257de7[0x0],_0x248cd3=_0x5b3c3e['start']['nodeAfter'],_0x510c07=_0x5b3c3e['end']['nodeBefore'];return _0x248cd3 instanceof _0x1236b6?_0x248cd3!=_0x510c07?null:_0x248cd3: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 _0x17953b=[];let _0x38d308=this['head'];for(;_0x38d308;)_0x17953b['push'](_0x38d308),_0x38d308=_0x38d308['next'];return _0x17953b;}['setAttribute'](_0x14dd24,_0x3296aa){const _0x363ec8=nt(this['attributes']);it(_0x363ec8,_0x14dd24,_0x3296aa),st(_0x363ec8,this['attributes'])||(this['attributes']=_0x363ec8,this['_onAttributesChange'](_0x363ec8));}['removeAttribute'](_0x19da35){const _0x1b5574=nt(this['attributes']);rt(_0x1b5574,_0x19da35),st(_0x1b5574,this['attributes'])||(this['attributes']=_0x1b5574,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 _0x4681a7()['substr'](0x1,0x5);}}function Tt(_0x591347,_0x5a6124,_0x1242e8){const _0x4add88=_0x591347['t'],t=_0x591347['t'];switch(_0x5a6124){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',_0x1242e8);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1242e8);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1242e8);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1242e8);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1242e8);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',_0x1242e8);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1242e8);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',_0x1242e8);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1242e8);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1242e8);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1242e8);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1242e8);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1242e8);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1242e8);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1242e8);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1242e8);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1242e8);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1242e8);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1242e8);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1242e8);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1242e8);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1242e8);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1242e8);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1242e8);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x1242e8);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'},_0x1242e8);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x1242e8);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x1242e8);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1242e8);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1242e8);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1242e8);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1242e8);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1242e8);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'},_0x1242e8);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'},_0x1242e8);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1242e8);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1242e8);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1242e8);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1242e8);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'},_0x1242e8);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1242e8);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'},_0x1242e8);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'},_0x1242e8);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1242e8);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'},_0x1242e8);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1242e8);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'},_0x1242e8);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1242e8);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x1242e8);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x1242e8);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x1242e8);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1242e8);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'},_0x1242e8);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1242e8);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 _0x4add88({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1242e8);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4add88({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1242e8);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1242e8);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'},_0x1242e8);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'},_0x1242e8);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'},_0x1242e8);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5a6124;}}class SuggestionDescriptionFactory{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4f779d,_0x118194){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4f779d,this['_locale']=_0x118194;}['getDescriptions'](_0xd0c12c){const _0xce4fbd=[],_0x3c781a=new Set(),_0x4996e5=new Set();for(let _0x23487d=0x0;_0x23487d<_0xd0c12c['length'];_0x23487d++){const _0x4a58ac=_0xd0c12c[_0x23487d];if(!_0x4a58ac['isInContent'])continue;const _0x23ec16=this['_handleCustomCallbackDescription'](_0x4a58ac);if(_0x23ec16){if(null!=_0x4a58ac['subType']){if(_0x3c781a['has'](_0x4a58ac['subType']))continue;_0x3c781a['add'](_0x4a58ac['subType']);}_0xce4fbd['push'](_0x23ec16);}else{if('attribute'==_0x4a58ac['type']){const _0x53f48b=_0x4a58ac['data']['key'];if(_0x4996e5['has'](_0x53f48b))continue;_0x4996e5['add'](_0x4a58ac['data']['key']),_0x53f48b==Bt?this['_handleRenameSuggestionDescription'](_0xce4fbd,_0x4a58ac):this['_handleAttributeSuggestionDescription'](_0xce4fbd,_0x4a58ac);continue;}'insertion'!=_0x4a58ac['type']&&'deletion'!=_0x4a58ac['type']||this['_handleInsertRemoveSuggestionDescription'](_0xce4fbd,_0x4a58ac,_0xd0c12c[_0x23487d+0x1]);}}return this['_resolveDescriptionItems'](_0xce4fbd);}['registerDescriptionCallback'](_0x506acd){this['_customCallbacks']['push'](_0x506acd);}['registerElementLabel'](_0x182a5e,_0x57220e,_0x1e7ed4=_0x3029c3['normal']){'function'==typeof _0x182a5e?_0x38ca84(this['_itemLabelsCallbacks'],{'matchingCallback':_0x182a5e,'label':_0x57220e,'priority':_0x1e7ed4}):this['_itemLabels']['set'](_0x182a5e,_0x57220e);}['registerAttributeLabel'](_0x25213e,_0x31ed8c){this['_attributeLabels']['set'](_0x25213e,_0x31ed8c);}['getItemLabel'](_0x39c905,_0x85d2e2=0x1){let _0x1eec8b;for(const _0x443b51 of this['_itemLabelsCallbacks'])if(_0x443b51['matchingCallback'](_0x39c905)){_0x1eec8b=_0x443b51['label'];break;}return _0x1eec8b||(_0x1eec8b=this['_itemLabels']['get'](_0x39c905['name'])),_0x1eec8b?_0x1eec8b(_0x85d2e2):0x1!==_0x85d2e2?_0x85d2e2+'\x20'+_0x39c905['name']+'s':''+_0x39c905['name'];}['_addDescriptionItems'](_0x7d4e6f,_0x123634){const _0xc26a55=_0x123634['getFirstRange']()['getWalker'](),_0x384262='insertion'==_0x123634['type']?'add':'remove';for(const _0x4e3055 of _0xc26a55){const _0x580a8c=_0x4e3055['item'],_0x235bbb=_0x7d4e6f[_0x7d4e6f['length']-0x1];if(_0x580a8c['is']('$textProxy'))_0x235bbb&&_0x235bbb['type']['indexOf']('Container')>-0x1&&_0x7d4e6f['pop'](),_0x235bbb&&'text'==_0x235bbb['type']?_0x235bbb[_0x384262]+=_0x580a8c['data']:_0x7d4e6f['push']({'type':'text','add':'add'==_0x384262?_0x580a8c['data']:'','remove':'remove'==_0x384262?_0x580a8c['data']:''});else{if(this['_schema']['isObject'](_0x580a8c)){const _0x27c212=_0x580a8c;if(_0x235bbb&&_0x235bbb['type']['indexOf']('Container')>-0x1&&_0x7d4e6f['pop'](),'elementEnd'==_0x4e3055['type'])continue;_0x235bbb&&_0x235bbb['type']==_0x384262+'Object'&&_0x235bbb['element']['name']==_0x27c212['name']?_0x235bbb['quantity']++:_0x7d4e6f['push']({'type':_0x384262+'Object','element':_0x27c212,'quantity':0x1}),_0xc26a55['skip'](_0x380ab2=>!('elementEnd'==_0x380ab2['type']&&_0x380ab2['item']==_0x580a8c));}else{if(this['_schema']['checkChild'](_0x580a8c,'$text')||_0x580a8c['is']('element','softBreak')){const _0x70afab=_0x580a8c;if('add'==_0x384262&&'elementStart'==_0x4e3055['type']||'remove'==_0x384262&&'elementEnd'==_0x4e3055['type'])continue;if(_0x235bbb&&-0x1==_0x235bbb['type']['indexOf']('Container')){'text'==_0x235bbb['type']&&(_0x235bbb[_0x384262]+='\x0a');continue;}let _0x1e0b99;if(_0x1e0b99='add'==_0x384262?_0x70afab['nextSibling']&&!this['_schema']['isObject'](_0x70afab['nextSibling'])?_0x70afab['nextSibling']:null:_0x70afab['previousSibling']&&!this['_schema']['isObject'](_0x70afab['previousSibling'])?_0x70afab['previousSibling']:null,_0x70afab['isEmpty']||_0x1e0b99&&_0x1e0b99['isEmpty']){const _0x4e60fe=_0x1e0b99&&_0x1e0b99['isEmpty']?_0x1e0b99:_0x70afab;_0x235bbb&&_0x235bbb['type']==_0x384262+'EmptyContainer'&&_0x235bbb['element']['name']==_0x4e60fe['name']?_0x235bbb['quantity']++:_0x7d4e6f['push']({'type':_0x384262+'EmptyContainer','element':_0x4e60fe,'quantity':0x1});}else _0x7d4e6f['push']({'type':_0x384262+'Container','element':_0x70afab});}}}}}['_resolveDescriptionItems'](_0x1d18bf){const _0xad78a3=this['_locale'],_0x3da1cc=[],_0x370681=[],_0x1c138f=[];for(const _0x125843 of _0x1d18bf)switch(_0x125843['type']){case'text':if(_0x125843['add']=_0x125843['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x125843['remove']=_0x125843['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x125843['add']&&''!=_0x125843['remove']){_0x3da1cc['push']({'type':'replace','content':Tt(_0xad78a3,'REPLACE_TEXT',['\x22'+_0x125843['remove']+'\x22','\x22'+_0x125843['add']+'\x22'])});continue;}if(null!=_0x125843['add']['match'](/^ +$/)){_0x3da1cc['push']({'type':'insertion','content':Tt(_0xad78a3,'*Insert:*\x20%0',Tt(_0xad78a3,'ELEMENT_SPACE',_0x125843['add']['length']))});continue;}if(null!=_0x125843['remove']['match'](/^ +$/)){_0x3da1cc['push']({'type':'deletion','content':Tt(_0xad78a3,'*Remove:*\x20%0',Tt(_0xad78a3,'ELEMENT_SPACE',_0x125843['remove']['length']))});continue;}if(''!=_0x125843['add']){_0x3da1cc['push']({'type':'insertion','content':Tt(_0xad78a3,'*Insert:*\x20%0','\x22'+_0x125843['add']+'\x22')});continue;}_0x3da1cc['push']({'type':'deletion','content':Tt(_0xad78a3,'*Remove:*\x20%0','\x22'+_0x125843['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3da1cc['push']({'type':'insertion','content':Tt(_0xad78a3,'*Insert:*\x20%0',this['getItemLabel'](_0x125843['element'],_0x125843['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3da1cc['push']({'type':'deletion','content':Tt(_0xad78a3,'*Remove:*\x20%0',this['getItemLabel'](_0x125843['element'],_0x125843['quantity']))});continue;case'addContainer':_0x3da1cc['push']({'type':'insertion','content':Tt(_0xad78a3,'*Split:*\x20%0',this['getItemLabel'](_0x125843['element'],_0x125843['quantity']))});continue;case'removeContainer':_0x3da1cc['push']({'type':'deletion','content':Tt(_0xad78a3,'*Merge:*\x20%0',this['getItemLabel'](_0x125843['element'],_0x125843['quantity']))});continue;case'addFormat':_0x370681['push'](_0x125843['key']);continue;case'removeFormat':_0x1c138f['push'](_0x125843['key']);continue;default:_0x3da1cc['push'](_0x125843);}if(_0x370681['length']){const _0x4823de=_0x370681['map'](_0x5a56d5=>this['_attributeLabels']['has'](_0x5a56d5)?this['_attributeLabels']['get'](_0x5a56d5):_0x5a56d5)['join'](',\x20');_0x3da1cc['push']({'type':'format','content':Tt(this['_locale'],'*Set\x20format:*\x20%0',_0x4823de)});}if(_0x1c138f['length']){const _0x4a7a3f=_0x1c138f['map'](_0x6028e2=>this['_attributeLabels']['has'](_0x6028e2)?this['_attributeLabels']['get'](_0x6028e2):_0x6028e2)['join'](',\x20');_0x3da1cc['push']({'type':'format','content':Tt(this['_locale'],'*Remove\x20format:*\x20%0',_0x4a7a3f)});}return _0x3da1cc;}['_handleCustomCallbackDescription'](_0x1be2cf){for(const _0x492a86 of this['_customCallbacks']){const _0x14140e=_0x492a86(_0x1be2cf);if(_0x14140e&&'type'in _0x14140e)return _0x14140e;}}['_handleAttributeSuggestionDescription'](_0x488c17,_0x21c27a){const _0x55f71d=_0x21c27a['data'],_0x312257=void 0x0===_0x55f71d['newValue']?'removeFormat':'addFormat';_0x488c17['push']({'type':_0x312257,'key':_0x55f71d['key']});}['_handleRenameSuggestionDescription'](_0xf8aab0,_0x30531a){_0xf8aab0['push']({'type':'format','content':Tt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x30531a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2cdd27,_0x3e2152,_0x32e83e){if(this['_addDescriptionItems'](_0x2cdd27,_0x3e2152),_0x32e83e&&_0x32e83e['getFirstRange']()&&!_0x3e2152['getFirstRange']()['end']['isEqual'](_0x32e83e['getFirstRange']()['start'])){const _0x5f0941=_0x2cdd27[_0x2cdd27['length']-0x1],_0x4245b2='insertion'==_0x3e2152['type']?'add':'remove';_0x5f0941&&'text'==_0x5f0941['type']&&(_0x5f0941[_0x4245b2]+='\x0a');}}}class TrackChangesAIAssistant extends _0x3ea3b4{['afterInit'](){const _0x602be9=this['editor'],_0x3b0d03=_0x602be9['plugins']['get']('TrackChangesEditing');_0x602be9['commands']['get']('showAIAssistant')&&_0x3b0d03['enableCommand']('showAIAssistant');}}class TrackChangesAI extends _0x3ea3b4{['afterInit'](){const _0x44bb9c=this['editor'],_0x4949e5=_0x44bb9c['plugins']['get']('TrackChangesEditing');_0x44bb9c['commands']['get']('toggleAi')&&_0x4949e5['enableCommand']('toggleAi');}}class TrackChangesAIQuickActions extends _0x3ea3b4{['afterInit'](){const _0x5bb92b=this['editor'],_0x2e0349=_0x5bb92b['plugins']['get']('TrackChangesEditing');_0x5bb92b['commands']['get']('aiQuickAction')&&_0x2e0349['enableCommand']('aiQuickAction');}}class TrackChangesAlignment extends _0x3ea3b4{['afterInit'](){const _0x50f70d=this['editor'],_0x9badf=_0x50f70d['locale'];if(!_0x50f70d['plugins']['has']('AlignmentEditing'))return;const _0x4e181b=_0x50f70d['plugins']['get']('TrackChangesEditing');_0x4e181b['enableDefaultAttributesIntegration']('alignment'),_0x4e181b['descriptionFactory']['registerAttributeLabel']('alignment',Tt(_0x9badf,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b1363=this['editor'],_0x3f95db=_0x5b1363['locale'];_0x5b1363['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x76605d=>{if('formatBlock'!=_0x76605d['type'])return;const {data:_0x595916}=_0x76605d;if(_0x595916&&'alignment'==_0x595916['commandName']){const _0x51fb71=_0x595916['commandParams'][0x0]['value'];return{'type':'format','content':Tt(_0x3f95db,'*Format:*\x20%0',function(_0x104ce3){switch(_0x104ce3){case'left':return Tt(_0x3f95db,'FORMAT_ALIGN_TO_LEFT');case'right':return Tt(_0x3f95db,'FORMAT_ALIGN_TO_RIGHT');case'center':return Tt(_0x3f95db,'FORMAT_ALIGN_TO_CENTER');case'justify':return Tt(_0x3f95db,'FORMAT_JUSTIFY_TEXT');}}(_0x51fb71))};}});}}const _t=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class TrackChangesBasicStyles extends _0x3ea3b4{['afterInit'](){const _0x29c49=this['editor'],_0x4c71fa=_0x29c49['plugins']['get']('TrackChangesEditing'),_0x42d7cb=_0x29c49['locale'];for(const _0x2b2a6d of _t){if(!_0x29c49['plugins']['has'](_0x2b2a6d))continue;const _0x2f755b=_0x2b2a6d['slice'](0x0,-0x7)['toLowerCase'](),_0x5be127='FORMAT_'+_0x2f755b['toUpperCase']();_0x4c71fa['enableDefaultAttributesIntegration'](_0x2f755b),_0x4c71fa['descriptionFactory']['registerAttributeLabel'](_0x2f755b,Tt(_0x42d7cb,_0x5be127));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x414998=this['editor'],_0x12fe1a=_0x414998['locale'],_0x5c6b57=_0x414998['plugins']['get']('TrackChangesEditing');function _0x199671(_0xaf584d,_0x59c64e){_0x5c6b57['descriptionFactory']['registerDescriptionCallback'](_0x5b7c9e=>{if('formatInline'!=_0x5b7c9e['type'])return;const {data:_0x2744d7}=_0x5b7c9e;return _0x2744d7&&_0x2744d7['commandName']===_0xaf584d?_0x2744d7['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x12fe1a,'*Format:*\x20%0',_0x59c64e)}:{'type':'format','content':Tt(_0x12fe1a,'*Remove\x20format:*\x20%0',_0x59c64e)}:void 0x0;});}_0x199671('bold',Tt(_0x12fe1a,'FORMAT_BOLD')),_0x199671('italic',Tt(_0x12fe1a,'FORMAT_ITALIC')),_0x199671('underline',Tt(_0x12fe1a,'FORMAT_UNDERLINE')),_0x199671('code',Tt(_0x12fe1a,'FORMAT_CODE')),_0x199671('strikethrough',Tt(_0x12fe1a,'FORMAT_STRIKETHROUGH')),_0x199671('subscript',Tt(_0x12fe1a,'FORMAT_SUBSCRIPT')),_0x199671('superscript',Tt(_0x12fe1a,'FORMAT_SUPERSCRIPT'));}}class TrackChangesBlockQuote extends _0x3ea3b4{['afterInit'](){const _0x5c3636=this['editor'],_0x2066bf=_0x5c3636['locale'];if(!_0x5c3636['plugins']['has']('BlockQuoteEditing'))return;const _0x426391=_0x5c3636['plugins']['get']('TrackChangesEditing'),_0x516170=this['editor']['commands']['get']('blockQuote');_0x426391['enableCommand']('blockQuote',(_0x35d385,_0x4c6c50={})=>{const _0x1b9710=this['editor']['model']['document']['selection'],_0x2db0cc=_0x4c6c50&&void 0x0!==_0x4c6c50['forceValue']?_0x4c6c50['forceValue']:!_0x516170['value'];let _0xed2f28=[];if(_0x2db0cc){const _0x452cd8=Array['from'](_0x1b9710['getSelectedBlocks']())['filter'](_0x5eabb7=>pt(_0x5eabb7)||function(_0x153fed,_0x306b61){const _0xa7cd05=_0x306b61['createContext'](_0x153fed['parent']);if(!_0x306b61['checkChild'](_0xa7cd05,'blockQuote'))return!0x1;if(!_0x306b61['checkChild'](_0xa7cd05['push']('blockQuote'),_0x153fed))return!0x1;return!0x0;}(_0x5eabb7,this['editor']['model']['schema']));_0xed2f28=ft(_0x452cd8,_0x5c3636['model']);}else{const _0x55d5f2=Array['from'](_0x1b9710['getSelectedBlocks']())['filter'](_0x26cecc=>pt(_0x26cecc));_0xed2f28=ft(_0x55d5f2,_0x5c3636['model']);}_0x5c3636['model']['change'](()=>{for(const _0xc0fad7 of _0xed2f28)_0x426391['markBlockFormat'](_0xc0fad7,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2db0cc}]});});}),_0x426391['descriptionFactory']['registerDescriptionCallback'](_0x57c2e2=>{const {data:_0x85ba0d}=_0x57c2e2;if(_0x85ba0d&&'blockQuote'==_0x85ba0d['commandName']){const _0xe7a5c6=Tt(_0x2066bf,'ELEMENT_BLOCK_QUOTE');return _0x85ba0d['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x2066bf,'*Set\x20format:*\x20%0',_0xe7a5c6)}:{'type':'format','content':Tt(_0x2066bf,'*Remove\x20format:*\x20%0',_0xe7a5c6)};}});}}function pt(_0x24de59){return'blockQuote'==_0x24de59['parent']['name'];}class TrackChangesBookmark extends _0x3ea3b4{['afterInit'](){const _0x557431=this['editor'],_0x4c42d1=_0x557431['locale'],_0x14825a=_0x557431['plugins']['get']('TrackChangesEditing');_0x557431['plugins']['has']('BookmarkEditing')&&(_0x14825a['enableCommand']('insertBookmark'),_0x14825a['enableDefaultAttributesIntegration']('updateBookmark'),_0x14825a['descriptionFactory']['registerDescriptionCallback'](_0x4627d4=>{if('insertion'!=_0x4627d4['type']&&'deletion'!=_0x4627d4['type']&&'attribute'!=_0x4627d4['type'])return;const _0x4cff8c=_0x4627d4['getContainedElement']();if(null==_0x4cff8c)return;if(!_0x4cff8c['is']('element','bookmark'))return;const _0x391751=_0x4cff8c['getAttribute']('bookmarkId');if('insertion'==_0x4627d4['type'])return{'type':'insertion','content':Tt(_0x4c42d1,'*Insert:*\x20%0','\x22'+_0x391751+'\x22\x20'+Tt(_0x4c42d1,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4627d4['type'])return{'type':'deletion','content':Tt(_0x4c42d1,'*Remove:*\x20%0','\x22'+_0x391751+'\x22\x20'+Tt(_0x4c42d1,'ELEMENT_BOOKMARK'))};const {data:_0x14fc4c}=_0x4627d4;if(!_0x14fc4c||'bookmarkId'!=_0x14fc4c['key'])return;return{'type':'format','content':Tt(_0x4c42d1,'*Set\x20bookmark:*\x20%0','\x22'+_0x14fc4c['newValue']+'\x22')};}));}}class TrackChangesCaseChange extends _0x3ea3b4{['afterInit'](){const _0x579ecc=this['editor'];_0x579ecc['plugins']['has']('CaseChange')&&(_0x579ecc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x579ecc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x579ecc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class TrackChangesCKBox extends _0x3ea3b4{['afterInit'](){const _0x41b137=this['editor'];_0x41b137['commands']['get']('ckbox')&&_0x41b137['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class TrackChangesCodeBlock extends _0x3ea3b4{['afterInit'](){const _0x2ad65b=this['editor'];if(!_0x2ad65b['plugins']['has']('CodeBlock'))return;const _0x14eb1c=_0x2ad65b['plugins']['get']('TrackChangesEditing'),_0x490f18=_0x2ad65b['locale'],_0x337e5f=_0x2ad65b['config']['get']('codeBlock')['languages'],_0x3288c6=_0x2ad65b['commands']['get']('codeBlock');_0x14eb1c['enableCommand']('indentCodeBlock'),_0x14eb1c['enableCommand']('outdentCodeBlock'),_0x14eb1c['enableCommand']('codeBlock',(_0x150d4e,_0x116d79={})=>{const _0x769e0e=_0x2ad65b['model'],_0x5cd91f=_0x2ad65b['model']['document']['selection'],_0x3faf4c=_0x116d79&&void 0x0!==_0x116d79['forceValue']?_0x116d79['forceValue']:!_0x3288c6['value'];let _0x358b98;_0x116d79['language']||(_0x116d79['language']=_0x337e5f[0x0]['language']),_0x358b98=_0x3faf4c?Array['from'](_0x5cd91f['getSelectedBlocks']())['filter'](_0x120eb3=>Ct(_0x120eb3)||function(_0x32e4b1,_0x50da9a){if(_0x32e4b1['is']('rootElement')||_0x50da9a['isLimit'](_0x32e4b1))return!0x1;return _0x50da9a['checkChild'](_0x32e4b1['parent'],'codeBlock');}(_0x120eb3,_0x769e0e['schema'])):Array['from'](_0x5cd91f['getSelectedBlocks']())['filter'](_0x5c3f6b=>Ct(_0x5c3f6b));const _0x1c2ace=ft(_0x358b98,_0x769e0e);_0x769e0e['change'](()=>{for(const _0x863b6a of _0x1c2ace)_0x14eb1c['markBlockFormat'](_0x863b6a,{'commandName':'codeBlock','commandParams':[{..._0x116d79,'forceValue':_0x3faf4c}],'formatGroupId':'blockName'});});}),(_0x14eb1c['descriptionFactory']['registerElementLabel']('codeBlock',_0x9ef895=>Tt(_0x490f18,'ELEMENT_CODE_BLOCK',_0x9ef895)),_0x14eb1c['descriptionFactory']['registerDescriptionCallback'](_0x283136=>{if('formatBlock'!=_0x283136['type'])return;const _0x3f3a7e=_0x490f18['t'],{data:_0x54f5c4}=_0x283136;if(!_0x54f5c4||'codeBlock'!=_0x54f5c4['commandName'])return;const _0x1c5ae3=_0x54f5c4['commandParams'][0x0]['language'],_0x4ce27d=_0x3f3a7e(_0x337e5f['find'](_0x3b9443=>_0x3b9443['language']===_0x1c5ae3)['label'])['toLowerCase']();return _0x54f5c4['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x490f18,'*Set\x20format:*\x20%0',Tt(_0x490f18,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4ce27d+')')}:{'type':'format','content':Tt(_0x490f18,'*Remove\x20format:*\x20%0',Tt(_0x490f18,'ELEMENT_CODE_BLOCK',0x1))};}));}}function Ct(_0x27d973){return'codeBlock'==_0x27d973['name'];}class TrackChangesComments extends _0x3ea3b4{['afterInit'](){const _0x4dea92=this['editor'];if(!_0x4dea92['plugins']['has']('CommentsEditing'))return;_0x4dea92['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class TrackChangesDeleteCommand extends _0x3ea3b4{static get['requires'](){return[at];}['init'](){const _0x5a4365=this['editor'],_0x13dda6=_0x5a4365['plugins']['get']('TrackChangesEditing');_0x13dda6['enableCommand']('delete');const _0x4984fa=_0x5a4365['commands']['get']('deleteForward');_0x13dda6['enableCommand']('deleteForward',(_0x180f68,_0x2b2758={})=>{const _0x47ca18=_0x5a4365['model']['createSelection'](_0x5a4365['model']['document']['selection']);_0x47ca18['isCollapsed']&&_0x5a4365['model']['modifySelection'](_0x47ca18,{'direction':'forward','unit':_0x2b2758['unit']});const _0x5196e5=_0x47ca18['getFirstRange'](),_0x4c541b=_0x418bbc['fromRange'](_0x5196e5);let _0xf64336;_0x180f68(_0x2b2758),_0xf64336='$graveyard'==_0x4c541b['root']['rootName']?_0x5a4365['model']['createRange'](_0x5196e5['start']):_0x5a4365['model']['createRange'](_0x4c541b['start'],_0x4c541b['end']),_0x4c541b['detach'](),_0x5a4365['model']['enqueueChange'](_0x4984fa['buffer']['batch'],_0x98d155=>{_0x4984fa['buffer']['lock'](),_0x98d155['setSelection'](_0x98d155['createRange'](_0xf64336['end'])),_0x4984fa['buffer']['unlock']();});});}}class TrackChangesList extends _0x3ea3b4{['afterInit'](){const _0x5c89f7=this['editor'];if(!_0x5c89f7['plugins']['has']('ListEditing'))return;const _0x10f503=_0x5c89f7['locale'],_0x275ba2=_0x5c89f7['plugins']['get']('TrackChangesEditing'),_0x1748f6=_0x5c89f7['plugins']['has']('TodoListEditing'),_0x4956dd=!!_0x5c89f7['config']['get']('list.multiBlock');function _0x23357d(_0x3dcf04){return{'type':'format','content':''+Tt(_0x10f503,'*Set\x20format:*\x20%0',_0x3dcf04)};}function _0x58427e(_0x52aee7){return{'type':'format','content':''+Tt(_0x10f503,'*Remove\x20format:*\x20%0',_0x52aee7)};}_0x275ba2['enableDefaultAttributesIntegration']('numberedList'),_0x275ba2['enableDefaultAttributesIntegration']('bulletedList'),_0x275ba2['enableDefaultAttributesIntegration']('customNumberedList'),_0x275ba2['enableDefaultAttributesIntegration']('customBulletedList'),_0x275ba2['enableDefaultAttributesIntegration']('indentList'),_0x275ba2['enableDefaultAttributesIntegration']('outdentList'),_0x275ba2['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x275ba2['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4956dd&&(_0x275ba2['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x275ba2['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1748f6&&(_0x275ba2['enableDefaultAttributesIntegration']('todoList'),_0x275ba2['enableDefaultAttributesIntegration']('checkTodoList'),_0x275ba2['descriptionFactory']['registerDescriptionCallback'](_0x2707e4=>{const {data:_0x1e153d}=_0x2707e4;if(_0x1e153d&&'todoListChecked'==_0x1e153d['key'])return{'type':'format','content':_0x1e153d['newValue']?Tt(_0x10f503,'*Check\x20item*'):Tt(_0x10f503,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x41c325=>{if(_0x41c325['batch']['isUndo'])return!0x1;let _0x3f521d=!0x1;const _0x13a006=_0x275ba2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4bc329=>'todoListChecked'===_0x275ba2['_getAttributeKey'](_0x4bc329));for(const _0x45b7c4 of _0x13a006){'todo'!=_0x45b7c4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x275ba2['_findSuggestions'](_0x45b7c4['getFirstRange'](),'attribute')['find'](_0x366b4a=>'listType'===_0x275ba2['_getAttributeKey'](_0x366b4a['suggestion']))||(_0x41c325['removeMarker'](_0x45b7c4['getFirstMarker']()),_0x3f521d=!0x0));}return _0x3f521d;})),_0x275ba2['descriptionFactory']['registerAttributeLabel']('listIndent',Tt(_0x10f503,'FORMAT_INDENT'));const _0x227178={'type':'format','content':''};_0x275ba2['descriptionFactory']['registerDescriptionCallback'](_0xd35167=>{const {data:_0x4965c9}=_0xd35167;if(!_0x4965c9||'listType'!=_0x4965c9['key'])return;let _0x4d6eb6=_0xd35167['head'];for(;_0x4d6eb6;){if(_0x4d6eb6['data']&&(('listStyle'==_0x4d6eb6['data']['key']||'listMarkerStyle'==_0x4d6eb6['data']['key'])&&(_0x4d6eb6['data']['newValue']&&'default'!=_0x4d6eb6['data']['newValue']||'default'!=_0x4d6eb6['data']['oldValue']&&!_0x4965c9['newValue'])||!_0x4956dd&&_0x4d6eb6['data']['key']==Bt))return _0x227178;_0x4d6eb6=_0x4d6eb6['next'];}if(null==_0x4965c9['newValue'])switch(_0x4965c9['oldValue']){case'bulleted':return _0x58427e(Tt(_0x10f503,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x58427e(Tt(_0x10f503,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x58427e(Tt(_0x10f503,'ELEMENT_TODO_LIST'));}switch(_0x4965c9['newValue']){case'bulleted':return _0x23357d(Tt(_0x10f503,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x23357d(Tt(_0x10f503,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x23357d(Tt(_0x10f503,'ELEMENT_TODO_LIST'));}}),_0x275ba2['descriptionFactory']['registerDescriptionCallback'](_0x3cc81a=>{const {data:_0x3eada3}=_0x3cc81a;if(_0x3eada3&&'listIndent'==_0x3eada3['key'])return null==_0x3eada3['newValue']||null==_0x3eada3['oldValue']&&0x0==_0x3eada3['newValue']?_0x227178:void 0x0;}),_0x275ba2['descriptionFactory']['registerDescriptionCallback'](_0x3e7769=>{if('attribute'!=_0x3e7769['type'])return;const {data:_0x21d6ee}=_0x3e7769;if(!_0x21d6ee||'listItemId'!=_0x21d6ee['key'])return;const _0x320f2e=kt(_0x3e7769);return'newValue'==_0x320f2e?{'type':'format','content':Tt(_0x10f503,'*Merge:*\x20list\x20item')}:'oldValue'==_0x320f2e?{'type':'format','content':Tt(_0x10f503,'*Split:*\x20list\x20item')}:_0x227178;}),_0x5c89f7['model']['document']['registerPostFixer'](_0x35e364=>this['listItemIdFixer'](_0x35e364)),_0x5c89f7['model']['document']['registerPostFixer'](_0xc8e047=>this['noTrackChangesFixer'](_0xc8e047)),_0x5c89f7['model']['document']['on']('change:data',(_0x108f7f,_0x4f0ec9)=>{if(_0x4f0ec9['isUndo']||!_0x4f0ec9['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1d920a){if(_0x1d920a['batch']['isUndo']||!_0x1d920a['batch']['isLocal'])return!0x1;let _0x1a09de=!0x1;const _0x45a5f1=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x20d255=>_0x20d255['data']&&'listItemId'==_0x20d255['data']['key'])['filter'](_0x1f8b86=>_0x1f8b86['data']['newValue']&&_0x1f8b86['data']['oldValue']);for(const _0x11612d of _0x45a5f1)kt(_0x11612d)||(_0x1d920a['removeMarker'](_0x11612d['getFirstMarker']()),_0x1a09de=!0x0);return _0x1a09de;}['noTrackChangesFixer'](_0x2c2cb7){if(_0x2c2cb7['batch']['isUndo']||!_0x2c2cb7['batch']['isLocal'])return!0x1;const _0x4b910e=this['editor']['model']['document']['differ'],_0x2bfb3c=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2bfb3c['trackChangesCommand']['value'])return!0x1;let _0x5571b6=!0x1;const _0x5839db=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle']),_0x59c6df=_0x4b910e['getChanges']()['filter'](_0x5157c4=>'attribute'==_0x5157c4['type'])['filter'](_0x2c10b6=>_0x5839db['has'](_0x2c10b6['attributeKey']));if(0x0==_0x59c6df['length'])return _0x5571b6;const _0x4d64b4=new Set(_0x4b910e['getMarkersToAdd']()['filter'](_0x5630a5=>{if(!_0x5630a5['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x245b20=_0x368712(_0x5630a5['name'])['subType']['split']('|')[0x0];return _0x5839db['has'](_0x245b20);})['map'](_0x538371=>_0x368712(_0x538371['name'])['id']));for(const _0x5c7558 of _0x59c6df){const _0x4ba53b=_0x2bfb3c['_findSuggestions'](_0x5c7558['range'],'attribute')['filter'](_0x20b31c=>{if(_0x20b31c['meta']['isNextTo'])return!0x1;if(_0x4d64b4['has'](_0x20b31c['suggestion']['id']))return!0x1;const _0x35d7d5=_0x2bfb3c['_getAttributeKey'](_0x20b31c['suggestion']);return _0x5839db['has'](_0x35d7d5);})['map'](_0x13200a=>_0x13200a['suggestion']);if(_0x4ba53b['length']){for(const _0x3b211a of _0x4ba53b)_0x2c2cb7['removeMarker'](_0x3b211a['getFirstMarker']());_0x5571b6=!0x0;}}return _0x5571b6;}['assureChains'](){const _0x27aef3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f329d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2efa4f;const _0x5c5746=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x292d00=>{if(_0x292d00['data']['oldRange']||!_0x292d00['data']['newRange'])return null;if(!_0x292d00['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x36e549}=_0x368712(_0x292d00['name']);if(!_0x27aef3['hasSuggestion'](_0x36e549))return null;const _0x4b998e=_0x27aef3['getSuggestion'](_0x36e549);return _0x3f329d['includes'](_0x4b998e['data']['key']);})['map'](_0x29270e=>{const {id:_0x43f2bf}=_0x368712(_0x29270e['name']),_0x104a1a=_0x27aef3['getSuggestion'](_0x43f2bf);return _0x2efa4f=_0x104a1a['attributes']['groupId'],_0x104a1a['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5c5746['size'])return;const _0x55afd1=_0x27aef3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x23423b=>'attribute'==_0x23423b['type']&&_0x23423b['data']&&_0x3f329d['includes'](_0x23423b['data']['key'])&&_0x23423b['attributes']['groupId']!=_0x2efa4f)['map'](_0x554c3c=>({'listItem':_0x554c3c['getFirstRange']()['start']['nodeAfter'],'groupId':_0x554c3c['attributes']['groupId']})),_0x1035ff=new Set();for(const {groupId:_0x2a2b3d,listItem:_0x4fac5c}of _0x55afd1)_0x5c5746['has'](_0x4fac5c)&&_0x1035ff['add'](_0x2a2b3d);for(const _0x5b83c5 of _0x27aef3['getSuggestions']())_0x1035ff['has'](_0x5b83c5['attributes']['groupId'])&&_0x5b83c5['setAttribute']('groupId',_0x2efa4f);}['_supportLegacySuggestions'](){const _0x127535=this['editor'],_0xfffbbf=_0x127535['locale'],_0x5e60a8=_0x127535['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5e60a8['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x10a7ed,_0x36f434){const _0x419d86=[];for(let _0x961eb of _0x10a7ed)_0x961eb['start']['nodeAfter']===_0x961eb['end']['parent']&&(_0x961eb=_0x127535['model']['createRange'](_0x127535['model']['createPositionAt'](_0x961eb['start']['nodeAfter'],0x0))),_0x419d86['push'](_0x961eb);_0x127535['model']['change'](_0x49d018=>{const _0x456bc5=_0x127535['model']['document']['selection'],_0x580fe4=Array['from'](_0x456bc5['getRanges']())['map'](_0xaf1e03=>_0x418bbc['fromRange'](_0xaf1e03));_0x49d018['setSelection'](_0x419d86),_0x127535['commands']['get'](_0x36f434['commandName'])['refresh'](),_0x36f434['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x127535['execute'](_0x36f434['commandName'],..._0x36f434['commandParams']),_0x49d018['setSelection'](_0x580fe4);for(const _0x4a9dba of _0x580fe4)_0x4a9dba['detach']();});}),_0x5e60a8['descriptionFactory']['registerElementLabel'](function(_0x47b26d){const _0xd7df6b=!_0x127535['model']['schema']['isObject'](_0x47b26d),_0xfee9f5=_0x47b26d['previousSibling'],_0x4d62ba=_0x47b26d['nextSibling'],_0x1d30b4=_0x47b26d['getAttribute']('listItemId'),_0x2dc1a0=!_0xfee9f5||_0xfee9f5['getAttribute']('listItemId')!==_0x1d30b4,_0xb225e7=!_0x4d62ba||_0x4d62ba['getAttribute']('listItemId')!==_0x1d30b4;return _0xd7df6b&&Boolean(_0x1d30b4)&&_0x2dc1a0&&_0xb225e7;},_0x5073f2=>Tt(_0xfffbbf,'ELEMENT_LIST_ITEM',_0x5073f2));}['_registerLegacyDescription'](){const _0xeb5d1c=this['editor'],_0x1a33d9=_0xeb5d1c['locale'];function _0x5a0bd7(_0x4d3ee8){const _0x45d72c=_0xeb5d1c['commands']['get']('bulletedList')['value'],_0x210ce0=_0xeb5d1c['commands']['get']('numberedList')['value'];return'numberedList'===_0x4d3ee8?_0x45d72c:_0x210ce0;}_0xeb5d1c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5888f1){if('formatBlock'!=_0x5888f1['type'])return;const {data:_0x1ae9dc}=_0x5888f1;if(!_0x1ae9dc)return;let _0x28a585,_0x3d26a1,_0x689f9d,_0x4b565f;switch(_0x1ae9dc['commandName']){case'bulletedList':_0x689f9d=_0x1ae9dc['commandParams'][0x0]['forceValue'],_0x4b565f=_0x5a0bd7(_0x1ae9dc['commandName']),_0x28a585=_0x689f9d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4b565f&&_0xeb5d1c['config']['get']('list.multiBlock')||(_0x28a585='*Change\x20to:*\x20%0'),_0x3d26a1={'type':'format','content':Tt(_0x1a33d9,_0x28a585,Tt(_0x1a33d9,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x689f9d=_0x1ae9dc['commandParams'][0x0]['forceValue'],_0x4b565f=_0x5a0bd7(_0x1ae9dc['commandName']),_0x28a585=_0x689f9d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4b565f&&_0xeb5d1c['config']['get']('list.multiBlock')||(_0x28a585='*Change\x20to:*\x20%0'),_0x3d26a1={'type':'format','content':Tt(_0x1a33d9,_0x28a585,Tt(_0x1a33d9,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x28a585='*Indent:*\x20%0',_0x3d26a1={'type':'format','content':Tt(_0x1a33d9,_0x28a585,Tt(_0x1a33d9,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x28a585=function(_0x55a33b){const _0x125e4f=_0x55a33b['getFirstRange']();let _0x262435=_0x125e4f['start']['nodeAfter'];for(;_0x262435&&_0x125e4f['containsItem'](_0x262435);){if(_0x262435['getAttribute']('listIndent')>0x0)return!0x1;_0x262435=_0x262435['nextSibling'];}return!0x0;}(_0x5888f1)?Tt(_0x1a33d9,'*Format:*\x20remove\x20from\x20%0',Tt(_0x1a33d9,function(_0x169179){return'ELEMENT_'+_0x169179['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5888f1))):Tt(_0x1a33d9,'*Outdent:*\x20%0',Tt(_0x1a33d9,'ELEMENT_LIST_ITEM')),_0x3d26a1={'type':'format','content':_0x28a585};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1ae9dc['multipleBlocks']&&(_0x28a585='*Merge:*\x20%0',_0x3d26a1={'type':'deletion','content':Tt(_0x1a33d9,_0x28a585,Tt(_0x1a33d9,'ELEMENT_LIST_ITEM'))});}return _0x3d26a1;});}}function kt(_0x5c3607){let _0x28321a=_0x5c3607['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x28321a;){const _0x504e37=_0x28321a['getAttribute']('listItemId');if(!_0x504e37)return!0x1;if(_0x504e37==_0x5c3607['data']['newValue'])return'newValue';if(_0x504e37==_0x5c3607['data']['oldValue'])return'oldValue';_0x28321a=_0x28321a['previousSibling'];}return!0x1;}class TrackChangesDocumentListProperties extends _0x3ea3b4{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x199a68=this['editor']['config']['get']('list.properties'),_0x1c3869=this['editor']['plugins']['get']('TrackChangesEditing');_0x199a68['styles']&&_0x1c3869['enableDefaultAttributesIntegration']('listStyle'),_0x199a68['reversed']&&_0x1c3869['enableDefaultAttributesIntegration']('listReversed'),_0x199a68['startIndex']&&_0x1c3869['enableDefaultAttributesIntegration']('listStart');const _0x5196e9={'type':'format','content':''};_0x1c3869['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x101f38=this['editor']['locale'];_0x1c3869['descriptionFactory']['registerAttributeLabel']('listReversed',Tt(_0x101f38,'FORMAT_LIST_REVERSED')),_0x1c3869['descriptionFactory']['registerDescriptionCallback'](_0x4755bc=>{const {data:_0x52c8b9}=_0x4755bc;if(_0x52c8b9&&'listReversed'==_0x52c8b9['key'])return null==_0x52c8b9['newValue']||0x0==_0x52c8b9['newValue']&&null==_0x52c8b9['oldValue']?_0x5196e9:void 0x0;}),_0x1c3869['descriptionFactory']['registerAttributeLabel']('listStart',Tt(_0x101f38,'FORMAT_LIST_START')),_0x1c3869['descriptionFactory']['registerDescriptionCallback'](_0x26fbe4=>{const {data:_0x1f8fbe}=_0x26fbe4;if(_0x1f8fbe&&'listStart'==_0x1f8fbe['key'])return null==_0x1f8fbe['newValue']||0x1==_0x1f8fbe['newValue']&&null==_0x1f8fbe['oldValue']?_0x5196e9:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4b805d=>{if(_0x4b805d['batch']['isUndo'])return!0x1;let _0x2161bd=!0x1;const _0x58fc08=_0x1c3869['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x36c7eb=>{const _0x4ff6bd=_0x1c3869['_getAttributeKey'](_0x36c7eb);return'listStart'==_0x4ff6bd||'listReversed'==_0x4ff6bd;});for(const _0x593e5f of _0x58fc08){const _0x45dbc3=_0x593e5f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x45dbc3||'customNumbered'==_0x45dbc3)continue;_0x1c3869['_findSuggestions'](_0x593e5f['getFirstRange'](),'attribute')['find'](_0x2a0a02=>'listType'==_0x1c3869['_getAttributeKey'](_0x2a0a02['suggestion']))||(_0x4b805d['removeMarker'](_0x593e5f['getFirstMarker']()),_0x2161bd=!0x0);}return _0x2161bd;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5ca76a){const _0x1e5f59=this['editor']['locale'],{data:_0xb037f9}=_0x5ca76a,_0x50f083={'type':'format','content':''};if(!_0xb037f9||'listStyle'!=_0xb037f9['key'])return;if(!_0xb037f9['oldValue'])return'default'==_0xb037f9['newValue']?_0x50f083:{'type':'format','content':''+Tt(_0x1e5f59,'*Set\x20format:*\x20%0',Tt(_0x1e5f59,this['_getTranslationKeyForListStyle'](_0xb037f9['newValue'])))};if(!_0xb037f9['newValue']){if('default'==_0xb037f9['oldValue'])return _0x50f083;let _0x2509d6=_0x5ca76a['head'];for(;_0x2509d6;){if(_0x2509d6['data']&&'listType'==_0x2509d6['data']['key']&&_0x2509d6['data']['newValue'])return _0x50f083;_0x2509d6=_0x2509d6['next'];}return{'type':'format','content':''+Tt(_0x1e5f59,'*Remove\x20format:*\x20%0',Tt(_0x1e5f59,this['_getTranslationKeyForListStyle'](_0xb037f9['oldValue'])))};}if('default'!=_0xb037f9['newValue'])return{'type':'format','content':''+Tt(_0x1e5f59,'*Set\x20format:*\x20%0',Tt(_0x1e5f59,this['_getTranslationKeyForListStyle'](_0xb037f9['newValue'])))};let _0xd8b6f7=_0x5ca76a['head'];for(;_0xd8b6f7;){if(_0xd8b6f7['data']&&'listType'==_0xd8b6f7['data']['key']&&_0xd8b6f7['data']['newValue']&&_0xd8b6f7['data']['oldValue'])return _0x50f083;_0xd8b6f7=_0xd8b6f7['next'];}return{'type':'format','content':Tt(_0x1e5f59,'*Set\x20format:*\x20%0',Tt(_0x1e5f59,'ELEMENT_'+_0x5ca76a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x210c5d=this['editor'],_0x10db88=_0x210c5d['locale'];_0x210c5d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58dbf1=>{if('formatBlock'!=_0x58dbf1['type'])return;const {data:_0x56a6a8}=_0x58dbf1;if(!_0x56a6a8)return;let _0x4645ff,_0x64810;switch(_0x56a6a8['commandName']){case'listStyle':_0x4645ff='*Change\x20to:*\x20%0',_0x64810={'type':'format','content':Tt(_0x10db88,_0x4645ff,Tt(_0x10db88,this['_getTranslationKeyForListStyle'](_0x56a6a8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4645ff=_0x56a6a8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x64810={'type':'format','content':Tt(_0x10db88,_0x4645ff)};break;case'listStart':_0x4645ff='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x64810={'type':'format','content':Tt(_0x10db88,_0x4645ff,_0x56a6a8['commandParams'][0x0]['startIndex'])};}return _0x64810;});}['_getTranslationKeyForListStyle'](_0x391741){return'ELEMENT_'+function(_0x130851){if(Lt['includes'](_0x130851))return'bulleted';if(It['includes'](_0x130851))return'numbered';return null;}(_0x391741)['toUpperCase']()+'_LIST_'+_0x391741['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 _0x3ea3b4{['afterInit'](){const _0x310cd9=this['editor'];_0x310cd9['commands']['get']('emoji')&&_0x310cd9['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class TrackChangesEnterCommand extends _0x3ea3b4{static get['requires'](){return[lt];}['init'](){const _0x18cbb1=this['editor'],_0x1a5a6b=_0x18cbb1['plugins']['get']('TrackChangesEditing'),_0x431458=_0x18cbb1['commands']['get']('enter');_0x1a5a6b['enableCommand']('enter',()=>{_0x18cbb1['model']['change'](_0x229f32=>{const _0x3ae35c=_0x18cbb1['model']['document']['selection'],_0x543def=_0x3ae35c['getFirstPosition'](),_0x38cad0=_0x418bbc['fromRange'](_0x3ae35c['getFirstRange']());if(_0x431458['enterBlock'](_0x229f32)){const _0x53597b=_0x18cbb1['model']['createPositionAt'](_0x543def['parent']['nextSibling'],0x0),_0x13acb6=_0x229f32['createRange'](_0x543def,_0x53597b);_0x1a5a6b['markInsertion'](_0x13acb6);}else _0x229f32['setSelection'](_0x229f32['createRange'](_0x38cad0['end']));_0x38cad0['detach'](),_0x431458['fire']('afterExecute',{'writer':_0x229f32});});});}}class TrackChangesFindAndReplace extends _0x3ea3b4{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2b0eef=this['editor']['plugins']['get']('TrackChangesEditing');_0x2b0eef['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2b0eef['enableCommand']('findNext'),_0x2b0eef['enableCommand']('findPrevious'),_0x2b0eef['enableCommand']('replace'),_0x2b0eef['enableCommand']('replaceAll');}['handleFindCommand'](_0x1ff3eb,_0x30b39f,_0x54df55={}){const _0x28c4ea=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1ff3eb(_0x15f1d0=>{let _0x28bcf2=('string'==typeof _0x30b39f?_0x28c4ea['findByTextCallback'](_0x30b39f,_0x54df55):_0x30b39f)(_0x15f1d0);Array['isArray'](_0x28bcf2)&&(_0x28bcf2={'results':_0x28bcf2,'searchText':'string'==typeof _0x30b39f?_0x30b39f:''});const _0x578732=_0x28bcf2['results']['filter'](_0xf7f557=>!0x1===this['_isInDeletionRange'](_0xf7f557,_0x15f1d0['item']));return{..._0x28bcf2,'results':_0x578732};},_0x54df55);}['_isInDeletionRange'](_0x107851,_0x2043a3){const _0x296537=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2043a3,_0x107851['start']),this['editor']['model']['createPositionAt'](_0x2043a3,_0x107851['end']));for(const _0x241746 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x296537['getIntersection'](_0x241746['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 _0x3ea3b4{['afterInit'](){const _0x40f94d=this['editor']['locale'],_0x49ed3a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x313b32,commandName:_0x252dda}of At)this['editor']['plugins']['has'](_0x313b32)&&_0x49ed3a['enableDefaultAttributesIntegration'](_0x252dda);_0x49ed3a['descriptionFactory']['registerAttributeLabel']('fontSize',Tt(_0x40f94d,'FORMAT_FONT_SIZE')),_0x49ed3a['descriptionFactory']['registerAttributeLabel']('fontFamily',Tt(_0x40f94d,'FORMAT_FONT_FAMILY')),_0x49ed3a['descriptionFactory']['registerAttributeLabel']('fontColor',Tt(_0x40f94d,'FORMAT_FONT_COLOR')),_0x49ed3a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Tt(_0x40f94d,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a35c8=this['editor'],_0x553073=_0x5a35c8['locale'];_0x5a35c8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x379e95=>{const _0x5db470=_0x553073['t'];if('formatInline'!=_0x379e95['type'])return;const {data:_0x27b00a}=_0x379e95;if(null!=_0x27b00a){if('fontSize'==_0x27b00a['commandName']){const _0x27338f=_0x27b00a['commandParams'][0x0]['value'];if(_0x27338f){const _0x4ab06d=_0x5db470(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2d9229=>_0x2d9229['model']==_0x27338f)['title'])['toLowerCase']();return{'type':'format','content':Tt(_0x553073,'*Set\x20font\x20size:*\x20%0',_0x4ab06d)};}return{'type':'format','content':Tt(_0x553073,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x27b00a['commandName']){const _0x19ed7a=_0x27b00a['commandParams'][0x0]['value'];return _0x19ed7a?{'type':'format','content':Tt(_0x553073,'*Set\x20font\x20family:*\x20%0',_0x19ed7a)}:{'type':'format','content':Tt(_0x553073,'*Reset\x20font\x20family*')};}if('fontColor'==_0x27b00a['commandName']){const _0x15732b=_0x27b00a['commandParams'][0x0]['value'];if(_0x15732b){const _0x5a713a=_0x40e1c6(this['editor']['config']['get']('fontColor.colors'))['find'](_0x92001a=>_0x92001a['model']==_0x15732b);let _0x1afc26=_0x15732b,_0x399a43='';return _0x5a713a&&(_0x1afc26=_0x5a713a['label'],_0x399a43=_0x5db470(_0x1afc26)['toLowerCase']()),{'type':'format','content':Tt(_0x553073,'*Set\x20font\x20color:*\x20%0',_0x399a43)['trim'](),'color':{'value':_0x15732b,'title':_0x399a43||_0x1afc26}};}return{'type':'format','content':Tt(_0x553073,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x27b00a['commandName']){const _0x534daa=_0x27b00a['commandParams'][0x0]['value'];if(_0x534daa){const _0x45d51b=_0x40e1c6(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4154e8=>_0x4154e8['model']==_0x534daa);let _0x29796a=_0x534daa,_0x3a8d9b='';return _0x45d51b&&(_0x29796a=_0x45d51b['label'],_0x3a8d9b=_0x5db470(_0x29796a)['toLowerCase']()),{'type':'format','content':Tt(_0x553073,'*Set\x20font\x20background\x20color:*\x20%0',_0x3a8d9b)['trim'](),'color':{'value':_0x534daa,'title':_0x3a8d9b||_0x29796a}};}return{'type':'format','content':Tt(_0x553073,'*Reset\x20font\x20background\x20color*')};}}});}}class TrackChangesFootnotes extends _0x3ea3b4{['afterInit'](){const {plugins:_0x43da07}=this['editor'];_0x43da07['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x43da07['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x49253e,plugins:_0x1276d6,commands:_0x35707b}=this['editor'],_0x1e065b=_0x1276d6['get']('TrackChangesEditing');_0x35707b['get']('footnotesStyle')&&_0x1e065b['enableDefaultAttributesIntegration']('footnotesStyle'),_0x35707b['get']('footnotesStart')&&_0x1e065b['enableDefaultAttributesIntegration']('footnotesStart'),_0x1e065b['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Tt(_0x49253e,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x1e065b['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Tt(_0x49253e,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x23db16=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x5ba93f,commands:_0x15d765}=this['editor'];_0x15d765['get']('insertFootnote')&&_0x23db16['enableCommand']('insertFootnote'),_0x23db16['descriptionFactory']['registerElementLabel']('footnoteRef',_0x43c0f5=>Tt(_0x5ba93f,'ELEMENT_FOOTNOTE_REF',_0x43c0f5)),_0x23db16['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x19958e=>Tt(_0x5ba93f,'ELEMENT_FOOTNOTE_DEFINITION',_0x19958e)),_0x23db16['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x32bf4c=>Tt(_0x5ba93f,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x32bf4c));}}class TrackChangesFormatPainter extends _0x3ea3b4{['afterInit'](){const _0x342865=this['editor'],_0x5fee9c=_0x342865['plugins']['get']('TrackChangesEditing'),_0x2c6dad=_0x342865['commands']['get']('copyFormat'),_0x28d89a=_0x342865['commands']['get']('pasteFormat');_0x2c6dad&&_0x28d89a&&(_0x5fee9c['enableDefaultAttributesIntegration']('pasteFormat'),_0x5fee9c['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x49bec7=this['editor'],_0x3601cd=_0x49bec7['locale'];_0x49bec7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c4337=>{if('formatBlock'!=_0x3c4337['type']&&'formatInline'!=_0x3c4337['type'])return;const {data:_0xd5ad99}=_0x3c4337;if(_0xd5ad99&&'pasteFormat'===_0xd5ad99['commandName']){const _0x4cea3f=[],_0x16b19b=_0xd5ad99['commandParams'][0x0];for(const [_0x187646,_0x33648b]of Object['entries'](_0x16b19b))_0x4cea3f['push'](bt(_0x49bec7,_0x187646,_0x33648b));return _0x4cea3f['length']?{'type':'format','content':Tt(_0x3601cd,'*Set\x20format\x20to:*\x20%0',_0x4cea3f['join'](',\x20'))}:{'type':'format','content':Tt(_0x3601cd,'*Remove\x20all\x20formatting*')};}});}}function bt(_0x440c76,_0x44ddc3,_0x42d373){const _0xceeb81=_0x440c76['locale']['t'],_0x18d61e=_0x44ddc3['split'](/(?=[A-Z])/)['join']('\x20'),_0x5099a0=_0xceeb81(_0x18d61e['charAt'](0x0)['toUpperCase']()+_0x18d61e['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x42d373)return _0x5099a0;if('fontColor'===_0x44ddc3||'fontBackgroundColor'===_0x44ddc3){const _0x526049=_0x40e1c6(_0x440c76['config']['get']('fontColor.colors'))['find'](_0x349825=>_0x349825['model']==_0x42d373);return _0x5099a0+'\x20('+(_0x526049?_0xceeb81(_0x526049['label'])['toLowerCase']():_0x42d373)+')';}if('fontSize'===_0x44ddc3&&isNaN(parseFloat(_0x42d373))){const _0x531cb0=_0x440c76['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x440c76['config']['get']('fontSize.options'))['find'](_0x5c8f82=>_0x5c8f82['model']==_0x42d373);return _0x5099a0+'\x20('+(_0x531cb0?_0xceeb81(_0x531cb0['title'])['toLowerCase']():_0x42d373)+')';}return _0x5099a0+'\x20('+_0x42d373+')';}class TrackChangesGeneralHtmlSupport extends _0x3ea3b4{['afterInit'](){const _0x2abf84=this['editor'];if(!_0x2abf84['plugins']['has']('GeneralHtmlSupport')||!_0x2abf84['plugins']['has']('DataSchema'))return;const _0x3255fc=_0x2abf84['plugins']['get']('TrackChangesEditing'),_0x286d07=_0x2abf84['plugins']['get']('GeneralHtmlSupport'),_0x19f391=_0x2abf84['plugins']['get']('DataSchema'),_0x3a609b=_0x2abf84['locale'],_0x428e4e=new Set(['htmlContent']);for(const _0x55f5bd of _0x19f391['getDefinitionsForView'](/.*/,!0x1)){const _0x41ab23=_0x55f5bd['view'];_0x428e4e['add'](_0x286d07['getGhsAttributeNameForElement'](_0x41ab23)),_0x55f5bd['model']['startsWith']('html')&&_0x3255fc['descriptionFactory']['registerElementLabel'](_0x55f5bd['model'],_0x2ffc8c=>Tt(_0x3a609b,'ELEMENT_HTML_TAG',[_0x2ffc8c,_0x41ab23]));}_0x3255fc['descriptionFactory']['registerAttributeLabel']('htmlContent',Tt(_0x3a609b,'FORMAT_RAW_HTML_CONTENT')),_0x3255fc['descriptionFactory']['registerDescriptionCallback'](_0x42ef88=>{if('attribute'!==_0x42ef88['type'])return;const _0x449c21=_0x42ef88['data'];if(!_0x449c21||!_0x428e4e['has'](_0x449c21['key']))return;if('htmlContent'===_0x449c21['key'])return{'type':'format','content':Tt(_0x3a609b,'*Change\x20%0\x20content*',Tt(_0x3a609b,'ELEMENT_RAW_HTML'))};const {setItems:_0x279614,removeItems:_0x3caf08}=function(_0x3b4846,_0x26147b,_0x3a4ea5){const _0xc725d2=[],_0x408f98=[],_0x5d9d66=_0x3b4846['styles']??{},_0x2babec=_0x26147b['styles']??{};for(const _0x54a181 of new Set([...Object['keys'](_0x5d9d66),...Object['keys'](_0x2babec)]))_0x5d9d66[_0x54a181]!==_0x2babec[_0x54a181]&&(void 0x0===_0x2babec[_0x54a181]?_0x408f98['push'](_0x54a181):_0xc725d2['push'](_0x54a181+'\x20('+_0x2babec[_0x54a181]+')'));const _0x2e5908=Tt(_0x3a4ea5,'FORMAT_HTML_CLASS'),_0x5a8891=new Set(_0x3b4846['classes']??[]),_0x24db00=new Set(_0x26147b['classes']??[]),_0x5e1925=[..._0x24db00]['some'](_0x28026a=>!_0x5a8891['has'](_0x28026a)),_0x44d862=[..._0x5a8891]['some'](_0x14865f=>!_0x24db00['has'](_0x14865f));_0x5e1925&&_0xc725d2['push'](_0x2e5908),_0x44d862&&_0x408f98['push'](_0x2e5908);const _0x9461a6=Tt(_0x3a4ea5,'FORMAT_HTML_ATTRIBUTE'),_0x2d7792=_0x3b4846['attributes']??{},_0x3ae8ff=_0x26147b['attributes']??{};let _0xb7bf02=!0x1,_0x51fc7e=!0x1;for(const _0x5f4fed of new Set([...Object['keys'](_0x2d7792),...Object['keys'](_0x3ae8ff)]))_0x2d7792[_0x5f4fed]!==_0x3ae8ff[_0x5f4fed]&&(void 0x0===_0x3ae8ff[_0x5f4fed]?_0x51fc7e=!0x0:_0xb7bf02=!0x0);return _0xb7bf02&&_0xc725d2['push'](_0x9461a6),_0x51fc7e&&_0x408f98['push'](_0x9461a6),{'setItems':_0xc725d2,'removeItems':_0x408f98};}(_0x449c21['oldValue']??{},_0x449c21['newValue']??{},_0x3a609b);if(!_0x279614['length']&&!_0x3caf08['length'])return;const _0x5c797f=[];return _0x279614['length']&&_0x5c797f['push'](Tt(_0x3a609b,'*Set\x20format:*\x20%0',_0x279614['join'](',\x20'))),_0x3caf08['length']&&_0x5c797f['push'](Tt(_0x3a609b,'*Remove\x20format:*\x20%0',_0x3caf08['join'](',\x20'))),{'type':'format','content':_0x5c797f['join']('\x0a')};});}}class TrackChangesHeading extends _0x3ea3b4{['_headingOptions'];['afterInit'](){const _0x4ff839=this['editor'];if(!_0x4ff839['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4ff839['config']['get']('heading.options');const _0xe647=_0x4ff839['locale'],_0x5b4688=_0x4ff839['plugins']['get']('TrackChangesEditing');_0x5b4688['enableDefaultAttributesIntegration']('heading');for(const _0x19a8c7 of this['_headingOptions'])'paragraph'!=_0x19a8c7['model']&&_0x5b4688['descriptionFactory']['registerElementLabel'](_0x19a8c7['model'],_0xc06a07=>{const _0x32f7ed=this['_getHeadingLevel'](_0x19a8c7['model']);return null!==_0x32f7ed?_0x84e012(_0xc06a07,_0x32f7ed):_0x4dd71b(_0xc06a07,_0x19a8c7['title']);});function _0x84e012(_0x1cc4c5,_0x49223e){return Tt(_0xe647,'ELEMENT_HEADING',[_0x1cc4c5,_0x49223e]);}function _0x4dd71b(_0x4f625f,_0x10e996){return Tt(_0xe647,'ELEMENT_HEADING_CUSTOM',[_0x4f625f,_0x10e996]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e308b=this['editor'],_0x18b6aa=_0x2e308b['locale'];function _0x3b8a66(_0x10da99,_0x2eaca2){return Tt(_0x18b6aa,'ELEMENT_HEADING_CUSTOM',[_0x10da99,_0x2eaca2]);}_0x2e308b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x197d5f=>{if('formatBlock'!=_0x197d5f['type'])return;const {data:_0x278433}=_0x197d5f;if(_0x278433&&'heading'==_0x278433['commandName']){const _0xe644c0=_0x278433['commandParams'][0x0]['value'],_0x28fdc4=this['_getHeadingLevel'](_0xe644c0);if(null!==_0x28fdc4)return{'type':'format','content':Tt(_0x18b6aa,'*Change\x20to:*\x20%0',(_0x10f501=0x1,_0x6193bf=_0x28fdc4,Tt(_0x18b6aa,'ELEMENT_HEADING',[_0x10f501,_0x6193bf])))};const _0x9ed310=this['_headingOptions']['find'](_0x4318d8=>_0x4318d8['model']===_0xe644c0)['title'];return{'type':'format','content':Tt(_0x18b6aa,'*Change\x20to:*\x20%0',_0x3b8a66(0x1,_0x9ed310))};}var _0x10f501,_0x6193bf;});}['_getHeadingLevel'](_0x51899b){const _0x1234e4=_0x51899b['match'](/^heading(\d+)/);if(_0x1234e4)return _0x1234e4[0x1];const _0xcd4be9=this['_headingOptions']?.['find'](_0x120d92=>_0x120d92['model']==_0x51899b);if(_0xcd4be9&&_0xcd4be9['view']){const _0x409d92=_0xcd4be9['view'],_0x2cb929=(_0x409d92['name']??_0x409d92)['match'](/^h(\d+)/);if(_0x2cb929)return _0x2cb929[0x1];}return null;}}class TrackChangesHighlight extends _0x3ea3b4{['afterInit'](){const _0x1cf233=this['editor'];if(!_0x1cf233['plugins']['has']('HighlightEditing'))return;const _0x269619=_0x1cf233['plugins']['get']('TrackChangesEditing'),_0x5a52de=_0x1cf233['locale'];_0x269619['enableDefaultAttributesIntegration']('highlight'),_0x269619['descriptionFactory']['registerAttributeLabel']('highlight',Tt(_0x5a52de,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40dacd=this['editor'],_0x985415=_0x40dacd['locale'];_0x40dacd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf9e8c2=>{if('formatInline'!=_0xf9e8c2['type'])return;const {data:_0x43a88a}=_0xf9e8c2;if(_0x43a88a&&'highlight'==_0x43a88a['commandName']){const _0x497b40=_0x985415['t'],_0x4a6144=_0x43a88a['commandParams'][0x0]['value'];if(_0x4a6144){const _0x3cc47f=_0x40dacd['config']['get']('highlight.options')['find'](_0x4adfe5=>_0x4adfe5['model']==_0x4a6144),_0x2c1959=_0x497b40(_0x3cc47f['title'])['toLowerCase']();return{'type':'format','content':Tt(_0x985415,'*Set\x20highlight:*\x20%0',_0x2c1959),'color':{'value':_0x3cc47f['color'],'title':_0x3cc47f['title']}};}return{'type':'format','content':Tt(_0x985415,'*Remove\x20highlight*',Tt(_0x985415,'FORMAT_HIGHLIGHT'))};}});}}class TrackChangesHorizontalLine extends _0x3ea3b4{['afterInit'](){const _0xbecad2=this['editor'];if(!_0xbecad2['plugins']['has']('HorizontalLineEditing'))return;_0xbecad2['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x177ffe=_0xbecad2['plugins']['get']('TrackChangesEditing'),_0x16dce5=_0xbecad2['locale'];_0x177ffe['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1884a7=>Tt(_0x16dce5,'ELEMENT_HORIZONTAL_LINE',_0x1884a7));}}class TrackChangesHtmlEmbed extends _0x3ea3b4{['afterInit'](){const _0x21a585=this['editor'];if(!_0x21a585['plugins']['has']('HtmlEmbed'))return;const _0x4da987=_0x21a585['plugins']['get']('TrackChangesEditing'),_0x2632cb=_0x21a585['locale'];_0x4da987['descriptionFactory']['registerElementLabel']('rawHtml',_0x3de202=>Tt(_0x2632cb,'ELEMENT_HTML_EMBED',_0x3de202)),_0x4da987['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4da987['descriptionFactory']['registerDescriptionCallback'](_0x3c0d84=>{if('attribute'!=_0x3c0d84['type'])return;const {data:_0x372705}=_0x3c0d84;if(_0x372705&&'value'==_0x372705['key']&&_0x3c0d84['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5899b0=Tt(_0x2632cb,'ELEMENT_HTML_EMBED');return{'type':'format','content':Tt(_0x2632cb,'*Change\x20%0\x20content*',_0x5899b0)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2340e6=this['editor'],_0x3f8f6a=_0x2340e6['locale'];_0x2340e6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bc569=>{if('formatBlock'!=_0x2bc569['type'])return;const {data:_0x5dd7fb}=_0x2bc569;if(_0x5dd7fb&&'htmlEmbed'==_0x5dd7fb['commandName']){const _0x59dcc9=Tt(_0x3f8f6a,'ELEMENT_HTML_EMBED');return{'type':'format','content':Tt(_0x3f8f6a,'*Change\x20%0\x20content*',_0x59dcc9)};}});}}class TrackChangesImage extends _0x3ea3b4{['afterInit'](){const _0xea486b=this['editor'];if(!_0xea486b['plugins']['has']('ImageEditing'))return;const _0x45ebc1=_0xea486b['plugins']['get']('TrackChangesEditing'),_0x46da63=_0xea486b['plugins']['get']('ImageUtils'),_0x78116e=_0xea486b['locale'];_0x45ebc1['enableCommand']('insertImage'),_0x45ebc1['descriptionFactory']['registerElementLabel']('imageBlock',_0x542ab3=>Tt(_0x78116e,'ELEMENT_IMAGE',_0x542ab3)),_0x45ebc1['descriptionFactory']['registerElementLabel']('imageInline',_0x50a14b=>Tt(_0x78116e,'ELEMENT_INLINE_IMAGE',_0x50a14b)),_0x45ebc1['descriptionFactory']['registerElementLabel']('caption',()=>Tt(_0x78116e,'ELEMENT_CAPTION')),_0xea486b['plugins']['has']('ImageUploadEditing')&&_0x45ebc1['enableCommand']('uploadImage'),_0xea486b['plugins']['has']('ImageBlockEditing')&&_0xea486b['plugins']['has']('ImageInlineEditing')&&(_0x45ebc1['enableCommand']('imageTypeInline',(_0x4aca81,_0xeb8588)=>{const _0x3db795=_0x46da63['getClosestSelectedImageElement'](_0xea486b['model']['document']['selection']);_0xea486b['model']['change'](()=>{_0x45ebc1['markBlockFormat'](_0x3db795,{'commandName':'imageTypeInline','commandParams':[_0xeb8588]},[],'convertBlockImageToInline');});}),_0x45ebc1['enableCommand']('imageTypeBlock',(_0xed6744,_0x5aedf1)=>{_0xea486b['model']['change'](_0x21a699=>{let _0x388fea=_0x46da63['getClosestSelectedImageElement'](_0xea486b['model']['document']['selection']),_0x175052=_0x21a699['createRangeOn'](_0x388fea);const _0x3bbf70=tt['fromPosition'](_0x175052['start'],'toPrevious'),_0x5215a0=tt['fromPosition'](_0x175052['end'],'toNext');_0x45ebc1['forceDefaultExecution'](()=>_0xed6744(_0x5aedf1)),_0x388fea=_0x46da63['getClosestSelectedImageElement'](_0xea486b['model']['document']['selection']),_0x175052=_0x21a699['createRangeOn'](_0x388fea);const _0x5632f8=_0x21a699['createRange'](_0x3bbf70,_0x5215a0);_0x3bbf70['detach'](),_0x5215a0['detach'](),_0x45ebc1['markBlockFormat'](_0x388fea,{'commandName':'imageTypeInline','commandParams':[_0x5aedf1]},[],'convertInlineImageToBlock'),_0x5632f8['start']['isBefore'](_0x175052['start'])&&_0x45ebc1['markInsertion'](_0x21a699['createRange'](_0x5632f8['start'],_0x175052['start']),'convertInlineImageToBlock'),_0x175052['end']['isBefore'](_0x5632f8['end'])&&_0x45ebc1['markInsertion'](_0x21a699['createRange'](_0x175052['end'],_0x5632f8['end']),'convertInlineImageToBlock');});}),_0x45ebc1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x45ebc1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x45ebc1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x45ebc1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x45ebc1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x45ebc1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x8b548f])=>{const _0x162ab5=_0x45ebc1['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xd145aa=_0x8b548f['start'],_0x56d363=_0x8b548f['end'];const _0xbbedd1=_0xea486b['model']['schema']['getNearestSelectionRange'](_0xd145aa,'backward'),_0x7b5621=_0xea486b['model']['schema']['getNearestSelectionRange'](_0x56d363,'forward');_0xbbedd1['isCollapsed']&&(_0xd145aa=_0xbbedd1['start']),_0x7b5621['isCollapsed']&&(_0x56d363=_0x7b5621['end']),_0x162ab5([_0xea486b['model']['createRange'](_0xd145aa,_0x56d363)]);}),_0x45ebc1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3536af),_0x45ebc1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3536af)),_0xea486b['plugins']['has']('ImageCaptionEditing')&&(_0x45ebc1['enableCommand']('toggleImageCaption',(_0x183739,_0x15d086)=>{const _0x335117=_0xea486b['plugins']['get']('ImageCaptionUtils');let _0xf58b7d=_0x46da63['getClosestSelectedImageElement'](_0xea486b['model']['document']['selection']),_0x1730aa=_0x335117['getCaptionFromImageModelElement'](_0xf58b7d);_0xea486b['model']['change'](()=>{if(_0x1730aa)return void _0x45ebc1['markDeletion'](_0xea486b['model']['createRangeOn'](_0x1730aa));const _0x27c61c=_0x46da63['isBlockImage'](_0xf58b7d);_0x183739(_0x15d086),_0xf58b7d=_0x46da63['getClosestSelectedImageElement'](_0xea486b['model']['document']['selection']),_0x1730aa=_0x335117['getCaptionFromImageModelElement'](_0xf58b7d),_0x45ebc1['markInsertion'](_0xea486b['model']['createRangeOn'](_0x1730aa),_0x27c61c?null:'imageCaption');});}),_0x45ebc1['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3536af));const _0x129e9c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5ad831(_0x37a11b,_0x553c61){const _0x239d1a=_0x129e9c['findIndex'](({type:_0x155b90,subType:_0x3a09f5})=>_0x37a11b['type']==_0x155b90&&_0x37a11b['subType']==_0x3a09f5),_0x32a0d9=_0x129e9c['findIndex'](({type:_0x4ec6c4,subType:_0x911f75})=>_0x553c61['type']==_0x4ec6c4&&_0x553c61['subType']==_0x911f75);if(_0x239d1a<0x0||_0x32a0d9<0x0)return!0x1;const _0x2142ba=_0x37a11b['getFirstRange'](),_0x2c2664=_0x553c61['getFirstRange']();if((0x0==_0x239d1a||0x1==_0x239d1a)&&0x2==_0x32a0d9&&_0x2142ba['isIntersecting'](_0x2c2664))return!0x0;if(0x2==_0x239d1a&&0x3==_0x32a0d9){const _0x2c8c3e=_0x45ebc1['_findSuggestions'](_0x2142ba,'insertion')['filter'](({suggestion:_0x57c586,meta:_0x55c383})=>_0x55c383['isOwn']&&'convertInlineImageToBlock'==_0x57c586['subType']);if(_0x2c8c3e['length']>0x1&&_0x2c2664['end']['isEqual'](_0x2142ba['start']))return!0x0;if(0x1==_0x2c8c3e['length']&&(_0x2142ba['start']['isEqual'](_0x2c2664['end'])||_0x2142ba['end']['isEqual'](_0x2c2664['start'])))return!0x0;}if(0x3==_0x239d1a&&0x3==_0x32a0d9&&_0x2142ba['start']['isBefore'](_0x2c2664['start'])){const _0x396de3=_0x2142ba['end']['nodeAfter'],_0x248773=_0x2c2664['start']['nodeBefore'];return _0x46da63['isBlockImage'](_0x396de3)&&_0x396de3===_0x248773;}return!0x1;}function _0x3536af(_0x8cc93a,_0x3959bd){return _0x5ad831(_0x8cc93a,_0x3959bd)?[_0x8cc93a,_0x3959bd]:_0x5ad831(_0x3959bd,_0x8cc93a)?[_0x3959bd,_0x8cc93a]:null;}_0xea486b['plugins']['has']('ImageResize')&&(_0x45ebc1['enableDefaultAttributesIntegration']('resizeImage'),_0x45ebc1['descriptionFactory']['registerAttributeLabel']('resizedWidth',Tt(_0x78116e,'FORMAT_IMAGE_SIZE'))),_0xea486b['plugins']['has']('ImageTextAlternativeEditing')&&_0x45ebc1['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xea486b['plugins']['has']('PictureEditing')&&_0x45ebc1['descriptionFactory']['registerDescriptionCallback'](_0x304f55=>{if('attribute'!=_0x304f55['type'])return;const {data:_0x5087dd}=_0x304f55;return _0x5087dd&&'sources'==_0x5087dd['key']?{'type':'format','content':''}:void 0x0;}),_0xea486b['plugins']['has']('ImageSizeAttributes')&&_0x45ebc1['descriptionFactory']['registerDescriptionCallback'](_0x50d4b3=>{if('attribute'!=_0x50d4b3['type'])return;const {data:_0x4c65ac}=_0x50d4b3;return!_0x4c65ac||'width'!=_0x4c65ac['key']&&'height'!=_0x4c65ac['key']?void 0x0:{'type':'format','content':''};}),_0x45ebc1['descriptionFactory']['registerDescriptionCallback'](_0x14dd30=>{if(!!_0x129e9c['find'](({type:_0x2957af,subType:_0x26ec9f})=>_0x14dd30['type']==_0x2957af&&_0x14dd30['subType']==_0x26ec9f))return _0x14dd30['previous']?{}:void 0x0;}),_0x45ebc1['descriptionFactory']['registerDescriptionCallback'](_0x32f5be=>{if('insertion'==_0x32f5be['type']||'deletion'==_0x32f5be['type']){const _0x47804a=_0x32f5be['getContainedElement']();if(_0x47804a&&_0x47804a['is']('element','caption'))return{'type':'insertion'==_0x32f5be['type']?'addObject':'removeObject','element':_0x47804a,'quantity':0x1};}}),_0x45ebc1['descriptionFactory']['registerDescriptionCallback'](_0x33e39d=>'formatBlock'==_0x33e39d['type']&&'convertInlineImageToBlock'==_0x33e39d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x33e39d['type']&&'convertBlockImageToInline'==_0x33e39d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x45ebc1['descriptionFactory']['registerDescriptionCallback'](_0xf5cb27=>{if('attribute'!=_0xf5cb27['type'])return;const {data:_0x28bbbe}=_0xf5cb27;if(!_0x28bbbe||'alt'!=_0x28bbbe['key'])return;const _0x798717=_0x28bbbe['newValue'];return _0x798717?{'type':'format','content':Tt(_0x78116e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x798717+'\x22')}:{'type':'format','content':Tt(_0x78116e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f345d=this['editor'],_0x268935=_0x4f345d['locale'];_0x4f345d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c484e=>{if('formatBlock'!=_0x5c484e['type']&&'formatInline'!=_0x5c484e['type'])return;const {data:_0x2b513c}=_0x5c484e;if(_0x2b513c){if('imageTextAlternative'==_0x2b513c['commandName']){const _0x171d07=_0x2b513c['commandParams'][0x0]['newValue'];return _0x171d07?{'type':'format','content':Tt(_0x268935,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x171d07+'\x22')}:{'type':'format','content':Tt(_0x268935,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2b513c['commandName']){const _0x10f4b6=_0x2b513c['commandParams'][0x0]['width'];return _0x10f4b6?{'type':'format','content':Tt(_0x268935,'*Set\x20image\x20width:*\x20%0',_0x10f4b6)}:{'type':'format','content':Tt(_0x268935,'*Reset\x20image\x20width*')};}}});}}class TrackChangesImageReplace extends _0x3ea3b4{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4c221a=this['editor']['locale'],_0x53b3f4=this['editor']['plugins']['get']('TrackChangesEditing');_0x53b3f4['enableDefaultAttributesIntegration']('replaceImageSource'),_0x53b3f4['descriptionFactory']['registerDescriptionCallback'](_0x106b27=>{if('attribute'!=_0x106b27['type'])return;const {data:_0x1eba1a}=_0x106b27;return _0x1eba1a&&'src'==_0x1eba1a['key']?_0x1eba1a['newValue']&&_0x1eba1a['oldValue']?{'type':'format','content':Tt(_0x4c221a,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2c9547=this['editor']['plugins']['get']('TrackChangesEditing');_0x2c9547['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2c9547['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2c9547['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2c9547['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x580e60=this['editor'],_0x5cbd54=_0x580e60['locale'];_0x580e60['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bf973=>{if('formatBlock'!=_0x4bf973['type']&&'formatInline'!=_0x4bf973['type'])return;const {data:_0x1a34ce}=_0x4bf973;if(!_0x1a34ce||'replaceImageSource'!=_0x1a34ce['commandName'])return;return{'type':'format','content':Tt(_0x5cbd54,'*Format:*\x20replace\x20image\x20URL')};});}}class TrackChangesImageStyle extends _0x3ea3b4{['afterInit'](){const _0x164b65=this['editor'];if(!_0x164b65['plugins']['has']('ImageStyleEditing'))return;const _0xb4e036=_0x164b65['plugins']['get']('TrackChangesEditing'),_0x25bfdd=_0x164b65['plugins']['get']('ImageUtils'),_0x32660b={};_0xb4e036['enableCommand']('imageStyle',(_0x18f298,_0x48ed21)=>{const _0x2e6f25=_0x164b65['plugins']['get']('Users')['me'],_0x530063=_0x164b65['commands']['get']('imageStyle');let _0x1e39a1=_0x25bfdd['getClosestSelectedImageElement'](_0x164b65['model']['document']['selection']),_0xd736b2=_0x164b65['model']['createRangeOn'](_0x1e39a1),_0x3263f4=_0x530063['value'];if(_0x3263f4==_0x48ed21['value'])return;const _0x32f231={'commandName':'imageStyle','commandParams':[_0x48ed21],'formatGroupId':_0x4681a7()};_0x164b65['model']['change'](()=>{if(_0xb4e036['getSuggestions']()['filter'](_0x31d177=>_0x31d177['isInContent']&&_0x2e6f25==_0x31d177['author']&&('formatBlock'==_0x31d177['type']||'formatInline'==_0x31d177['type'])&&('imageStylePreApply'==_0x31d177['subType']||'imageStylePostApply'==_0x31d177['subType'])&&_0x31d177['getFirstRange']()['isEqual'](_0xd736b2))['forEach'](_0x4205ef=>_0xb4e036['discardSuggestion'](_0x4205ef['head'])),_0x1e39a1=_0x25bfdd['getClosestSelectedImageElement'](_0x164b65['model']['document']['selection']),_0xd736b2=_0x164b65['model']['createRangeOn'](_0x1e39a1),_0x530063['refresh'](),_0x164b65['commands']['get']('imageTypeInline')['refresh'](),_0x164b65['commands']['get']('imageTypeBlock')['refresh'](),_0x3263f4=_0x530063['value'],_0x3263f4!=_0x48ed21['value'])return _0x25bfdd['isInlineImage'](_0x1e39a1)&&_0x530063['shouldConvertImageType'](_0x48ed21['value'],_0x1e39a1)?(_0x18f298({..._0x48ed21,'setImageSizes':!0x1}),_0x1e39a1=_0x25bfdd['getClosestSelectedImageElement'](_0x164b65['model']['document']['selection']),void _0xb4e036['markBlockFormat'](_0x1e39a1,{..._0x32f231,'commandReversedParams':[{'value':_0x3263f4||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x25bfdd['isBlockImage'](_0x1e39a1)?_0xb4e036['markBlockFormat'](_0x1e39a1,_0x32f231,[],'imageStylePostApply'):_0xb4e036['markInlineFormat'](_0xd736b2,_0x32f231,'imageStylePostApply'));});});for(const _0x3b8d19 of _0x164b65['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x32660b[_0x3b8d19['name']]=_0x3b8d19['title']['toLowerCase']();_0xb4e036['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xb4e036['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xb4e036['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xb4e036['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2bd511])=>{_0x25bfdd['setImageNaturalSizeAttributes'](_0x2bd511['getContainedElement']());}),_0xb4e036['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x442c87,_0x1a93d1)=>{_0xb4e036['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x442c87,{'commandName':_0x1a93d1['commandName'],'commandParams':_0x1a93d1['commandReversedParams']});}),_0xb4e036['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x457b1c,_0x115211){if(_0x1e04cd(_0x457b1c,_0x115211))return[_0x457b1c,_0x115211];if(_0x1e04cd(_0x115211,_0x457b1c))return[_0x115211,_0x457b1c];return null;});const _0x4fa85b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1e04cd(_0x303330,_0x1f4ac6){const _0x576889=_0x4fa85b['findIndex'](({type:_0x4b89b2,subType:_0x121704})=>_0x303330['type']==_0x4b89b2&&_0x303330['subType']==_0x121704),_0x3b4c48=_0x4fa85b['findIndex'](({type:_0x38a9aa,subType:_0x41d837})=>_0x1f4ac6['type']==_0x38a9aa&&_0x1f4ac6['subType']==_0x41d837);if(_0x576889<0x0||_0x3b4c48<0x0)return!0x1;const _0x31af0a=_0x303330['getFirstRange'](),_0x21f1f8=_0x1f4ac6['getFirstRange']();if((0x0==_0x576889||0x1==_0x576889)&&0x2==_0x3b4c48&&_0x31af0a['isIntersecting'](_0x21f1f8))return!0x0;if(0x2==_0x576889&&0x3==_0x3b4c48){const _0x82dff2=_0xb4e036['_findSuggestions'](_0x31af0a,'insertion')['filter'](({suggestion:_0x2eeeea,meta:_0x220924})=>_0x220924['isOwn']&&'convertInlineImageToBlock'==_0x2eeeea['subType']);if(_0x82dff2['length']>0x1&&_0x21f1f8['end']['isEqual'](_0x31af0a['start']))return!0x0;if(0x1==_0x82dff2['length']&&(_0x31af0a['start']['isEqual'](_0x21f1f8['end'])||_0x31af0a['end']['isEqual'](_0x21f1f8['start'])))return!0x0;}if(0x3==_0x576889&&0x3==_0x3b4c48&&_0x31af0a['start']['isBefore'](_0x21f1f8['start'])){const _0x408289=_0x31af0a['end']['nodeAfter'],_0x2a0d97=_0x21f1f8['start']['nodeBefore'];return _0x25bfdd['isBlockImage'](_0x408289)&&_0x408289===_0x2a0d97;}return!0x1;}_0x164b65['model']['document']['registerPostFixer'](()=>{let _0x279f29=!0x1;const _0x102d1a=Array['from'](_0x164b65['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3de7a3,data:_0xf8cdc0}of _0x102d1a){const {group:_0x47f941,type:_0x3d0694,subType:_0x24db13,id:_0x3a1373}=_0x368712(_0x3de7a3);if('suggestion'==_0x47f941&&_0xb4e036['hasSuggestion'](_0x3a1373)){if('formatBlock'==_0x3d0694&&('imageStylePreApply'==_0x24db13||'imageStylePostApply'==_0x24db13)){const _0x43d7c5=_0xb4e036['getSuggestion'](_0x3a1373);if(_0xf8cdc0['newRange']){const _0x5815bf=_0x43d7c5['getFirstRange']()['getContainedElement']();if(_0x25bfdd['isBlockImage'](_0x5815bf))continue;_0xb4e036['discardSuggestion'](_0x43d7c5),_0x279f29=!0x0;}}if('insertion'==_0x3d0694&&'imageCaption'==_0x24db13&&!_0xf8cdc0['newRange']){const _0x4d0005=_0xb4e036['getSuggestion'](_0x3a1373);_0x4d0005['next']&&_0x4d0005['next']['isInContent']&&(_0xb4e036['discardSuggestion'](_0x4d0005['next']),_0x279f29=!0x0);}}}return _0x279f29;}),this['_registerLegacyDescription'](_0x32660b);}['_registerLegacyDescription'](_0x6029f0){const _0xe4e049=this['editor'],_0x5a050f=_0xe4e049['locale'];_0xe4e049['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x124db8=>{if('formatBlock'!=_0x124db8['type']&&'formatInline'!=_0x124db8['type'])return;const {data:_0xded955}=_0x124db8;if(!_0xded955||'imageStyle'!=_0xded955['commandName'])return;const _0x4f0c87=_0xded955['commandParams'][0x0]['value'];return _0x33403e('side'===_0x4f0c87?Tt(_0x5a050f,'FORMAT_SIDE_IMAGE'):_0x6029f0[_0x4f0c87]||_0x4f0c87);function _0x33403e(_0x5a6ce4){return{'type':'format','content':Tt(_0x5a050f,'*Format:*\x20%0',_0x5a6ce4)};}});}}class TrackChangesImportWord extends _0x3ea3b4{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x53a974){super(_0x53a974),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x324f7a=this['editor'],_0xb660f7=_0x324f7a['commands']['get']('importWord'),_0x2839e7=_0x324f7a['commands']['get']('trackChanges');_0xb660f7&&(_0xb660f7['on']('execute',(_0x2b6546,[,_0x42c956])=>{this['_trackChangesValueDuringImport']=_0x2839e7['value'],_0x42c956['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xb660f7,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xb660f7,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2839e7['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x324f7a['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4b9fab,_0x34f998){const {suggestions:_0x5ad33e}=_0x34f998,_0x230d31=this['editor']['commands']['get']('trackChanges'),_0x1c1f6c=_0x230d31['value'];this['_trackChangesValueDuringImport']!==_0x1c1f6c&&(_0x230d31['execute'](),this['_trackChangesExecuted']=!0x0),_0x5ad33e&&_0x5ad33e['forEach'](({id:_0x4f4c17,type:_0x383d75,author:_0x2f94cc,created_at:_0x38ad85})=>{const _0x42103f={'id':_0x4f4c17,'type':_0x383d75,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2f94cc,'createdAt':_0x38ad85?new Date(_0x38ad85):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x42103f);});}}class TrackChangesIndent extends _0x3ea3b4{['afterInit'](){const _0x1932b5=this['editor'],_0x3a457c=_0x1932b5['plugins']['get']('TrackChangesEditing');if(_0x1932b5['plugins']['has']('IndentEditing')&&(_0x3a457c['enableCommand']('indent'),_0x3a457c['enableCommand']('outdent')),_0x1932b5['plugins']['has']('IndentBlock')){for(const _0x21cb83 of['indentBlock','outdentBlock'])_0x3a457c['enableDefaultAttributesIntegration'](_0x21cb83);if(_0x1932b5['plugins']['has']('ListEditing')){for(const _0x28c385 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x3a457c['enableDefaultAttributesIntegration'](_0x28c385);}}const _0xfb7ca8=_0x1932b5['locale'];_0x3a457c['descriptionFactory']['registerAttributeLabel']('blockIndent',Tt(_0xfb7ca8,'FORMAT_INDENT')),_0x3a457c['descriptionFactory']['registerAttributeLabel']('blockIndentList',Tt(_0xfb7ca8,'FORMAT_INDENT')),_0x3a457c['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Tt(_0xfb7ca8,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x267fd6=this['editor'],_0x4f40e7=_0x267fd6['locale'],_0x1994d8=_0x267fd6['plugins']['get']('TrackChangesEditing');_0x1994d8['descriptionFactory']['registerDescriptionCallback'](_0x336ec1=>{if('formatBlock'!=_0x336ec1['type'])return;const {data:_0x1b0b9c}=_0x336ec1;if(!_0x1b0b9c)return;if('indentBlock'!=_0x1b0b9c['commandName']&&'outdentBlock'!=_0x1b0b9c['commandName'])return;const _0x5129b9=_0x336ec1['getItems']()[0x0],_0x1d5776=_0x1994d8['descriptionFactory']['getItemLabel'](_0x5129b9);return'indentBlock'==_0x1b0b9c['commandName']?{'type':'format','content':Tt(_0x4f40e7,'*Indent:*\x20%0',_0x1d5776)}:'outdentBlock'==_0x1b0b9c['commandName']?{'type':'format','content':Tt(_0x4f40e7,'*Outdent:*\x20%0',_0x1d5776)}:void 0x0;});}}class TrackChangesInputCommand extends _0x3ea3b4{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class TrackChangesLink extends _0x3ea3b4{['afterInit'](){const _0x27f0a5=this['editor'];if(!_0x27f0a5['plugins']['has']('LinkEditing'))return;const _0x5c09cd=_0x27f0a5['plugins']['get']('TrackChangesEditing'),_0x3c7fe0=_0x27f0a5['commands']['get']('link');_0x5c09cd['enableDefaultAttributesIntegration']('link'),_0x5c09cd['enableDefaultAttributesIntegration']('unlink');for(const _0x7e13db of _0x3c7fe0['manualDecorators'])_0x5c09cd['descriptionFactory']['registerAttributeLabel'](_0x7e13db['id'],'link\x20('+_0x7e13db['label']['toLowerCase']()+')');_0x5c09cd['descriptionFactory']['registerDescriptionCallback'](_0x3d8798=>{if('attribute'!=_0x3d8798['type'])return;const {data:_0xa278fe}=_0x3d8798;if(!_0xa278fe||'linkHref'!=_0xa278fe['key'])return;const _0x9be10b=_0xa278fe['newValue'],_0x355c09=_0x27f0a5['locale'];return{'type':'format','content':null==_0x9be10b?Tt(_0x355c09,'*Remove\x20link*'):Tt(_0x355c09,'*Set\x20link:*\x20%0','\x22'+_0x9be10b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b5d5f=this['editor'],_0x585184=_0x5b5d5f['locale'];_0x5b5d5f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3dc86a=>{if('formatInline'!=_0x3dc86a['type'])return;const {data:_0x56422d}=_0x3dc86a;if(_0x56422d){if('link'==_0x56422d['commandName']){const _0x518d30=_0x56422d['commandParams'][0x0];return{'type':'format','content':Tt(_0x585184,'*Set\x20link:*\x20%0','\x22'+_0x518d30+'\x22')};}return'unlink'==_0x56422d['commandName']?{'type':'format','content':Tt(_0x585184,'*Remove\x20link*')}:void 0x0;}});}}class TrackChangesLegacyList extends _0x3ea3b4{['afterInit'](){const _0x1a5f81=this['editor'],_0x27464d=_0x1a5f81['locale'];if(!_0x1a5f81['plugins']['has']('LegacyListEditing'))return;const _0x3447c5=_0x1a5f81['plugins']['get']('TrackChangesEditing'),_0x3588d9=_0x1a5f81['plugins']['has']('LegacyTodoListEditing');function _0xcd2cdd(_0x4c734b){return()=>{const _0x4134d3=_0x1a5f81['model']['document']['selection'],_0x1b9b30=_0x1a5f81['commands']['get'](_0x4c734b);if(_0x1b9b30['value'])return void _0x1a5f81['execute']('paragraph',{});const _0x1fdd87=_0x4c734b['slice'](0x0,-0x4),_0x2f05b2=function(_0x20130e,_0x3a499b,_0x125c28){let _0x1d5d5a=Array['from'](_0x20130e)['filter'](_0x5a30cc=>function(_0x40d09a,_0x4c6e37){return _0x4c6e37['checkChild'](_0x40d09a['parent'],'listItem')&&!_0x4c6e37['isObject'](_0x40d09a);}(_0x5a30cc,_0x125c28));_0x1d5d5a=_0x1d5d5a['filter'](_0x28f4cf=>!_0x28f4cf['is']('element','listItem')||_0x28f4cf['getAttribute']('listType')!=_0x3a499b);const _0x1effdb=new Set();for(const _0xad67c7 of _0x1d5d5a)_0xad67c7['is']('element','listItem')?_0x1effdb['add'](St(_0xad67c7)):_0x1effdb['add'](_0xad67c7);return Array['from'](_0x1effdb);}(_0x4134d3['getSelectedBlocks'](),_0x1fdd87,_0x1a5f81['model']['schema']);_0x1a5f81['model']['change'](()=>{for(const _0x28a90c of _0x2f05b2)_0x3447c5['markBlockFormat'](_0x28a90c,{'commandName':_0x4c734b,'commandParams':[{'forceValue':!_0x1b9b30['value']}],'formatGroupId':'blockName'},Rt(_0x28a90c));});};}function _0x154e16(_0x92dfcd){return()=>{const _0x5e47f1=function(_0x73d14b){let _0x11c40d=Array['from'](_0x73d14b);const _0x1e7e55=_0x11c40d['findIndex'](_0x2c21f8=>'listItem'!=_0x2c21f8['name']);return _0x1e7e55>-0x1&&(_0x11c40d=_0x11c40d['slice'](0x0,_0x1e7e55)),_0x11c40d;}(_0x1a5f81['model']['document']['selection']['getSelectedBlocks']()),_0x5acf06=_0x1a5f81['model']['createRange'](_0x1a5f81['model']['createPositionAt'](_0x5e47f1[0x0],'before'),_0x1a5f81['model']['createPositionAt'](_0x5e47f1[_0x5e47f1['length']-0x1],'end'));_0x1a5f81['model']['change'](()=>{_0x3447c5['markBlockFormat'](_0x5acf06,{'commandName':_0x92dfcd,'commandParams':[],'formatGroupId':'listIndent'},function(_0x27eb66){const _0x2a3b48=new Set();for(const _0x5078ec of _0x27eb66){let _0x1b376f=_0x5078ec['nextSibling'];for(;_0x1b376f&&_0x1b376f['getAttribute']('listIndent')>_0x5078ec['getAttribute']('listIndent');)_0x2a3b48['add'](_0x1b376f),_0x1b376f=_0x1b376f['nextSibling'];}return Array['from'](_0x2a3b48);}(_0x5e47f1));});};}_0x3447c5['enableCommand']('numberedList',_0xcd2cdd('numberedList')),_0x3447c5['enableCommand']('bulletedList',_0xcd2cdd('bulletedList')),_0x3588d9&&_0x3447c5['enableCommand']('todoList',_0xcd2cdd('todoList')),_0x3447c5['enableCommand']('indentList',_0x154e16('indentList')),_0x3447c5['enableCommand']('outdentList',_0x154e16('outdentList')),_0x3588d9&&_0x3447c5['enableCommand']('checkTodoList',()=>{const _0x2bd1d6=_0x1a5f81['commands']['get']('checkTodoList'),_0x5323ee=Array['from'](_0x2bd1d6['_selectedElements']);_0x5323ee['filter'](_0x2f865c=>_0x2f865c['getAttribute']('todoListChecked')!=_0x2bd1d6['value']),_0x1a5f81['model']['change'](()=>{for(const _0x1576ca of _0x5323ee)_0x3447c5['markBlockFormat'](_0x1576ca,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2bd1d6['value']}]});});}),_0x3447c5['descriptionFactory']['registerElementLabel']('listItem',_0x2641e6=>Tt(_0x27464d,'ELEMENT_LIST_ITEM',_0x2641e6)),_0x3447c5['descriptionFactory']['registerDescriptionCallback'](_0x315c6e=>{if('formatBlock'!=_0x315c6e['type']&&'formatInline'!=_0x315c6e['type'])return;const {data:_0x2f0527}=_0x315c6e;if(_0x2f0527){if('numberedList'==_0x2f0527['commandName']||'bulletedList'==_0x2f0527['commandName']||'todoList'==_0x2f0527['commandName'])switch(_0x2f0527['commandName']['replace']('List','')){case'bulleted':return _0x19ad39(Tt(_0x27464d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x19ad39(Tt(_0x27464d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x19ad39(Tt(_0x27464d,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2f0527['commandName'])return{'type':'format','content':Tt(_0x27464d,'*Indent:*\x20%0',Tt(_0x27464d,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2f0527['commandName'])return{'type':'format','content':Tt(_0x27464d,'*Outdent:*\x20%0',Tt(_0x27464d,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2f0527['commandName'])return _0x2f0527['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x27464d,'*Check\x20item*')}:{'type':'format','content':Tt(_0x27464d,'*Uncheck\x20item*')};}function _0x19ad39(_0x3f7898){return{'type':'format','content':Tt(_0x27464d,'*Change\x20to:*\x20%0',_0x3f7898)};}});}}function St(_0x44409c){const _0x3a5de5=_0x44409c['getAttribute']('listIndent');if(0x0==_0x3a5de5)return _0x44409c;let _0x84f6c2=_0x44409c;for(;_0x44409c['previousSibling']&&_0x44409c['previousSibling']['is']('element','listItem');){const _0x25067f=_0x44409c['previousSibling']['getAttribute']('listIndent');if(_0x25067f==_0x3a5de5)_0x84f6c2=_0x44409c['previousSibling'];else{if(_0x25067f<_0x3a5de5)break;}_0x44409c=_0x44409c['previousSibling'];}return _0x84f6c2;}function Rt(_0x441b2e){const _0x1a70ef=[];if(_0x441b2e['is']('element','listItem')&&_0x441b2e['getAttribute']('listIndent')>0x0){let _0x580f9c=_0x441b2e['nextSibling'];for(;_0x580f9c&&'listItem'==_0x580f9c['name']&&_0x580f9c['getAttribute']('listIndent')==_0x441b2e['getAttribute']('listIndent');)_0x1a70ef['push'](_0x580f9c),_0x580f9c=_0x580f9c['nextSibling'];}return _0x1a70ef;}class TrackChangesLegacyListProperties extends _0x3ea3b4{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x24a7b7=this['editor']['config']['get']('list.properties'),_0x33da12=this['editor']['plugins']['get']('TrackChangesEditing');_0x24a7b7['styles']&&_0x33da12['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x24a7b7['reversed']&&_0x33da12['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x24a7b7['startIndex']&&_0x33da12['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x33da12['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4f371a,_0x3cc4ce={}){const _0x1f502d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e1658=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1f502d['markMultiRangeBlockFormat'](_0x2e1658,{'commandName':'listStyle','commandParams':[{'type':_0x3cc4ce['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x418ed6,_0x348709={}){const _0x906cc3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4db540=this['_getSuggestionBlocks'](_0x1b4bc6=>_0x1b4bc6['is']('element','listItem')&&'numbered'===_0x1b4bc6['getAttribute']('listType'));if(_0x4db540['length']<0x1)return;const _0x258d72=_0x4db540['map'](_0x280c64=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x280c64,'before'),this['editor']['model']['createPositionAt'](_0x280c64,0x0)));this['editor']['model']['change'](()=>{_0x906cc3['markMultiRangeBlockFormat'](_0x258d72,{'commandName':'listReversed','commandParams':[{'reversed':_0x348709['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x455a32,_0x126b1a={}){const _0x2a5fe0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f2c8e=this['_getSuggestionBlocks'](_0x4e23a0=>_0x4e23a0['is']('element','listItem')&&'numbered'===_0x4e23a0['getAttribute']('listType'));if(_0x2f2c8e['length']<0x1)return;const _0xfca07a=_0x2f2c8e['map'](_0x233240=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x233240,'before'),this['editor']['model']['createPositionAt'](_0x233240,0x0)));this['editor']['model']['change'](()=>{_0x2a5fe0['markMultiRangeBlockFormat'](_0xfca07a,{'commandName':'listStart','commandParams':[{'startIndex':_0x126b1a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xefb974){if('formatBlock'!=_0xefb974['type']&&'formatInline'!=_0xefb974['type'])return;const _0x349ec9=this['editor']['locale'],{data:_0x646d44}=_0xefb974;if(!_0x646d44)return;let _0xc10d38,_0x2efa2b;switch(_0x646d44['commandName']){case'listStyle':_0xc10d38='*Change\x20to:*\x20%0',_0x2efa2b={'type':'format','content':Tt(_0x349ec9,_0xc10d38,Tt(_0x349ec9,this['_getTranslationKeyForListStyle'](_0x646d44['commandParams'][0x0]['type'])))};break;case'listReversed':_0xc10d38=_0x646d44['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2efa2b={'type':'format','content':Tt(_0x349ec9,_0xc10d38)};break;case'listStart':_0xc10d38='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2efa2b={'type':'format','content':Tt(_0x349ec9,_0xc10d38,_0x646d44['commandParams'][0x0]['startIndex'])};}return _0x2efa2b;}['_getSuggestionBlocksForListStyle'](){const _0xfe60b4=this['editor']['plugins']['get']('LegacyListUtils');let _0x1f9d39=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1f9d39[0x0]?.['is']('element','listItem')&&_0x1f9d39['unshift'](..._0xfe60b4['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1f9d39[_0x1f9d39['length']-0x1]?.['is']('element','listItem')&&_0x1f9d39['push'](..._0xfe60b4['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1f9d39=[...new Set(_0x1f9d39)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1f9d39=_0x1f9d39['filter'](_0x1fa0b2=>_0x1fa0b2['is']('element','listItem'))),_0x1f9d39;}['_getSuggestionBlocks'](_0x3b15ab){const _0x1f2454=this['editor']['plugins']['get']('LegacyListUtils');let _0x10d84a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3b15ab)['map'](_0x268741=>{const _0x283046=this['editor']['model']['createPositionAt'](_0x268741,0x0);return[..._0x1f2454['getSiblingNodes'](_0x283046,'backward'),..._0x1f2454['getSiblingNodes'](_0x283046,'forward')];})['flat']();return _0x10d84a=[...new Set(_0x10d84a)],_0x10d84a;}['_getTranslationKeyForListStyle'](_0x4415e6){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4415e6)||'default')['toUpperCase']()+'_LIST_'+_0x4415e6['toUpperCase']()['replace'](/-/g,'_');}}class TrackChangesMediaEmbed extends _0x3ea3b4{['afterInit'](){const _0x1bb3fd=this['editor'];if(!_0x1bb3fd['plugins']['has']('MediaEmbedEditing'))return;const _0x30ecb5=_0x1bb3fd['plugins']['get']('TrackChangesEditing'),_0x18ac53=_0x1bb3fd['locale'];_0x30ecb5['enableCommand']('mediaEmbed'),_0x30ecb5['descriptionFactory']['registerElementLabel']('media',_0x6e716c=>Tt(_0x18ac53,'ELEMENT_MEDIA',_0x6e716c)),_0x1bb3fd['plugins']['has']('MediaEmbedResizeEditing')&&(_0x30ecb5['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x30ecb5['descriptionFactory']['registerDescriptionCallback'](_0xb513e4=>{if('attribute'!=_0xb513e4['type'])return;const {data:_0x2cfcd4}=_0xb513e4;if(!_0x2cfcd4||'resizedWidth'!=_0x2cfcd4['key'])return;const _0x53c243=_0xb513e4['getContainedElement']();if(!_0x53c243||!_0x53c243['is']('element','media'))return;const _0x395304=Tt(_0x18ac53,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Tt(_0x18ac53,'*Set\x20format:*\x20%0',_0x395304)};}));}}class TrackChangesMediaEmbedStyle extends _0x3ea3b4{['afterInit'](){const _0x982d2f=this['editor'];if(!_0x982d2f['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x2fb91d=_0x982d2f['plugins']['get']('TrackChangesEditing'),_0x4674ad=_0x982d2f['locale'],_0x31a55a=_0x982d2f['plugins']['get']('MediaEmbedStyleEditing'),_0x375b69={};for(const _0x5167cd of _0x31a55a['normalizedStyles'])_0x375b69[_0x5167cd['name']]=_0x5167cd['title']['toLowerCase']();const _0x85a642=_0x31a55a['normalizedStyles']['find'](_0x1290e2=>_0x1290e2['isDefault'])?.['name'];_0x2fb91d['enableCommand']('mediaStyle',(_0xa027fd,_0x24358b)=>{const _0x54a8a4=_0x982d2f['plugins']['get']('Users')['me'],_0x2b88d6=_0x982d2f['commands']['get']('mediaStyle'),_0x69c660=function(_0x12c675){const _0x555afd=_0x12c675['model']['document']['selection']['getSelectedElement']();if(_0x555afd&&_0x555afd['is']('element','media'))return _0x555afd;return null;}(_0x982d2f);if(!_0x69c660)return;const _0x54c5fe=_0x982d2f['model']['createRangeOn'](_0x69c660);let _0x1ff54c=_0x2b88d6['value'];if(_0x1ff54c==_0x24358b['value'])return;const _0x217d1d={'commandName':'mediaStyle','commandParams':[_0x24358b],'formatGroupId':_0x4681a7()};_0x982d2f['model']['change'](()=>{_0x2fb91d['getSuggestions']()['filter'](_0x4bb385=>_0x4bb385['isInContent']&&_0x54a8a4==_0x4bb385['author']&&'formatBlock'==_0x4bb385['type']&&'mediaStylePostApply'==_0x4bb385['subType']&&_0x4bb385['getFirstRange']()['isEqual'](_0x54c5fe))['forEach'](_0x376e04=>_0x2fb91d['discardSuggestion'](_0x376e04['head'])),_0x2b88d6['refresh'](),_0x1ff54c=_0x2b88d6['value'],_0x1ff54c!=_0x24358b['value']&&_0x2fb91d['markBlockFormat'](_0x69c660,{..._0x217d1d,'commandReversedParams':[{'value':'string'==typeof _0x1ff54c?_0x1ff54c:null}]},[],'mediaStylePostApply');});}),_0x2fb91d['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x2fb91d['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x39dd98,_0x4fe7c3)=>{_0x2fb91d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x39dd98,{'commandName':_0x4fe7c3['commandName'],'commandParams':_0x4fe7c3['commandReversedParams']});}),_0x2fb91d['descriptionFactory']['registerDescriptionCallback'](_0x217b41=>{if('formatBlock'!=_0x217b41['type'])return;const {data:_0x1e4c28}=_0x217b41;if(!_0x1e4c28||'mediaStyle'!=_0x1e4c28['commandName'])return;const _0x48f6e6=_0x1e4c28['commandParams'][0x0]['value']||_0x85a642;if(!_0x48f6e6)return;const _0x104a00=_0x375b69[_0x48f6e6]||_0x48f6e6;return{'type':'format','content':Tt(_0x4674ad,'*Format:*\x20%0',_0x104a00)};});}}class TrackChangesMention extends _0x3ea3b4{['afterInit'](){const _0x4d552a=this['editor'];_0x4d552a['plugins']['has']('MentionEditing')&&_0x4d552a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class TrackChangesMergeFields extends _0x3ea3b4{['afterInit'](){const _0x558366=this['editor'];if(!_0x558366['plugins']['has']('MergeFieldsEditing'))return;const _0x51721e=_0x558366['plugins']['get']('TrackChangesEditing'),_0x44bd95=_0x558366['locale'];_0x51721e['enableCommand']('insertMergeField'),_0x51721e['enableCommand']('insertMergeFieldBlock'),_0x51721e['enableCommand']('insertMergeFieldImage'),_0x51721e['descriptionFactory']['registerElementLabel']('mergeField',_0x35d111=>Tt(_0x44bd95,'ELEMENT_MERGE_FIELD',_0x35d111)),_0x51721e['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x6b74cb=>Tt(_0x44bd95,'ELEMENT_MERGE_FIELD',_0x6b74cb)),_0x51721e['descriptionFactory']['registerDescriptionCallback'](_0x34b0bd=>{if('insertion'!=_0x34b0bd['type']&&'deletion'!=_0x34b0bd['type'])return;const _0x46b362=_0x34b0bd['getContainedElement']();if(null==_0x46b362)return;const _0x58a8c1=_0x558366['plugins']['get']('MergeFieldsEditing');let _0x2c15ba;switch(_0x58a8c1['getMergeFieldType'](_0x46b362)){case null:return;case'image':{const _0xeb7bd9=_0x58a8c1['unwrapAffixes'](_0x46b362['getAttribute']('src'));_0x2c15ba=_0x58a8c1['getLabel'](_0xeb7bd9)||_0xeb7bd9;break;}default:{const _0x50fb36=_0x46b362['getAttribute']('id');_0x2c15ba=_0x58a8c1['getLabel'](_0x50fb36)||_0x50fb36;break;}}return'insertion'==_0x34b0bd['type']?{'type':'insertion','content':Tt(_0x44bd95,'*Insert:*\x20%0','\x22'+_0x2c15ba+'\x22\x20'+Tt(_0x44bd95,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Tt(_0x44bd95,'*Remove:*\x20%0','\x22'+_0x2c15ba+'\x22\x20'+Tt(_0x44bd95,'ELEMENT_MERGE_FIELD'))};});}}class TrackChangesMultiLevelList extends _0x3ea3b4{['afterInit'](){const _0x2fd33b=this['editor'],_0x388fba=_0x2fd33b['plugins']['get']('TrackChangesEditing');_0x2fd33b['plugins']['has']('MultiLevelList')&&(_0x388fba['enableDefaultAttributesIntegration']('multiLevelList'),_0x388fba['descriptionFactory']['registerDescriptionCallback'](_0x4df8d5=>this['handleDescriptions'](_0x4df8d5)));}['handleDescriptions'](_0x5e7417){const _0x1e87df=this['editor']['locale'],{data:_0x304ce2}=_0x5e7417,_0x1a37b9={'type':'format','content':''};if(_0x304ce2&&'listMarkerStyle'==_0x304ce2['key']){if(!_0x304ce2['oldValue'])return{'type':'format','content':Tt(_0x1e87df,'*Set\x20format:*\x20%0',Tt(_0x1e87df,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x304ce2['newValue']+')'};if(!_0x304ce2['newValue']){let _0x7b14cb=_0x5e7417['head'];for(;_0x7b14cb;){if(_0x7b14cb['data']&&'listType'==_0x7b14cb['data']['key']&&_0x7b14cb['data']['newValue'])return _0x1a37b9;_0x7b14cb=_0x7b14cb['next'];}return{'type':'format','content':Tt(_0x1e87df,'*Remove\x20format:*\x20%0',Tt(_0x1e87df,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x304ce2['oldValue']+')'};}}}}class TrackChangesPageBreak extends _0x3ea3b4{['afterInit'](){const _0x2fe85a=this['editor'];if(!_0x2fe85a['plugins']['has']('PageBreakEditing'))return;_0x2fe85a['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x310682=_0x2fe85a['plugins']['get']('TrackChangesEditing'),_0x3c97f1=_0x2fe85a['locale'];_0x310682['descriptionFactory']['registerElementLabel']('pageBreak',_0x1c08a3=>Tt(_0x3c97f1,'ELEMENT_PAGE_BREAK',_0x1c08a3));}}class TrackChangesParagraph extends _0x3ea3b4{['afterInit'](){const _0x2cc314=this['editor'];if(!_0x2cc314['plugins']['has']('Paragraph'))return;const _0x16711d=_0x2cc314['locale'],_0x5689c6=_0x2cc314['plugins']['get']('TrackChangesEditing');_0x5689c6['descriptionFactory']['registerElementLabel']('paragraph',_0x50cc24=>Tt(_0x16711d,'ELEMENT_PARAGRAPH',_0x50cc24)),_0x5689c6['enableDefaultAttributesIntegration']('paragraph'),_0x5689c6['enableCommand']('insertParagraph');const _0x4b12f6=_0x5689c6['descriptionFactory'];_0x4b12f6['registerDescriptionCallback'](_0x311eeb=>{if('insertion'!==_0x311eeb['type'])return;const {start:_0x15aaa3,end:_0x1b6d56}=_0x311eeb['getFirstRange']();if(!_0x15aaa3['isTouching'](_0x1b6d56)||!_0x15aaa3['nodeAfter'])return;const _0x5168d5=_0x2cc314['model']['schema'],_0x3768aa=_0x15aaa3['nodeAfter'];return _0x5168d5['isBlock'](_0x3768aa)&&!_0x5168d5['isLimit'](_0x3768aa)&&_0x5168d5['checkChild'](_0x3768aa,'$text')?{'type':'insertion','content':Tt(_0x16711d,'*Insert:*\x20%0',_0x4b12f6['getItemLabel'](_0x3768aa,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d505f=this['editor'],_0x40216d=_0x4d505f['locale'];_0x4d505f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x195ccb=>{if('formatBlock'!=_0x195ccb['type'])return;const {data:_0x246560}=_0x195ccb;return _0x246560&&'paragraph'==_0x246560['commandName']?{'type':'format','content':Tt(_0x40216d,'*Change\x20to:*\x20%0',Tt(_0x40216d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class TrackChangesReplaceSourceCommand extends _0x3ea3b4{['afterInit'](){const _0x262ed4=this['editor'];_0x262ed4['commands']['get']('replaceSource')&&_0x262ed4['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class TrackChangesRemoveFormat extends _0x3ea3b4{['afterInit'](){const _0x43cde5=this['editor'];if(!_0x43cde5['plugins']['has']('RemoveFormatEditing'))return;_0x43cde5['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d9a89=this['editor'];_0x5d9a89['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f3dab=>{if('formatBlock'!=_0x3f3dab['type']&&'formatInline'!=_0x3f3dab['type'])return;const {data:_0x4f5ea1}=_0x3f3dab;return _0x4f5ea1&&'removeFormat'==_0x4f5ea1['commandName']?{'type':'format','content':Tt(_0x5d9a89['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class TrackChangesRestrictedEditingMode extends _0x3ea3b4{['afterInit'](){const _0x3ab2cd=this['editor'];if(!_0x3ab2cd['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x46fd9a=_0x3ab2cd['plugins']['get']('TrackChangesEditing');_0x46fd9a['enableCommand']('goToPreviousRestrictedEditingException'),_0x46fd9a['enableCommand']('goToNextRestrictedEditingException');const _0x2b4f98=_0x3ab2cd['plugins']['get']('RestrictedEditingModeEditing');_0x2b4f98['enableCommand']('trackChanges'),_0x2b4f98['enableCommand']('acceptSuggestion'),_0x2b4f98['enableCommand']('discardSuggestion'),_0x2b4f98['enableCommand']('acceptAllSuggestions'),_0x2b4f98['enableCommand']('discardAllSuggestions'),_0x2b4f98['enableCommand']('acceptSelectedSuggestions'),_0x2b4f98['enableCommand']('discardSelectedSuggestions');}}class TrackChangesShiftEnterCommand extends _0x3ea3b4{['afterInit'](){const _0x37ea81=this['editor'];if(!_0x37ea81['plugins']['has']('ShiftEnter'))return;const _0x5b4eeb=_0x37ea81['plugins']['get']('TrackChangesEditing');_0x5b4eeb['enableCommand']('shiftEnter'),_0x5b4eeb['descriptionFactory']['registerElementLabel']('softBreak',_0xf3da14=>Tt(_0x37ea81['locale'],'ELEMENT_LINE_BREAK',_0xf3da14));}}function yt(_0x33a11f,_0x359555,_0x47ce65){const _0x4b2ac7=[];for(const _0x3cc075 of _0x359555['getItems']())_0x3cc075['hasAttribute'](_0x33a11f)&&_0x4b2ac7['push'](_0x47ce65['createRangeOn'](_0x3cc075));return _0x4b2ac7;}class TrackChangesStandardEditingMode extends _0x3ea3b4{['afterInit'](){const _0x4691f7=this['editor'],_0x2a8ef7=_0x4691f7['plugins']['get']('TrackChangesEditing');_0x4691f7['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x2a8ef7['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x1ad396=this['editor'],_0x3a1fc8=_0x1ad396['model'],_0x4ef187=_0x1ad396['locale'],_0x313eed=_0x1ad396['plugins']['get']('TrackChangesEditing'),_0x454d1f='restrictedEditingException',_0x5a7f5a=_0x1ad396['commands']['get'](_0x454d1f);_0x313eed['enableCommand'](_0x454d1f,(_0x45d552,_0x38a690={})=>{const _0x3c1cb6=_0x3a1fc8['document']['selection'];if(_0x3c1cb6['isCollapsed'])return void _0x45d552(_0x38a690);const _0x55c763=void 0x0!==_0x38a690['forceValue']?_0x38a690['forceValue']:!_0x5a7f5a['value'];_0x3a1fc8['change'](()=>{const _0x251b6b=Array['from'](_0x3c1cb6['getRanges']());for(const _0x25cbeb of _0x251b6b){const _0x4a2c9b=_0x55c763?[_0x25cbeb]:yt(_0x454d1f,_0x25cbeb,_0x3a1fc8);for(const _0x40dcf8 of _0x4a2c9b)_0x313eed['markInlineFormat'](_0x40dcf8,{'commandName':_0x454d1f,'commandParams':[{'forceValue':_0x55c763}]});}});}),_0x313eed['descriptionFactory']['registerDescriptionCallback'](_0x1c0a82=>{if('formatBlock'!=_0x1c0a82['type']&&'formatInline'!=_0x1c0a82['type'])return;const {data:_0x59cb3b}=_0x1c0a82;return _0x59cb3b&&_0x59cb3b['commandName']==_0x454d1f?_0x59cb3b['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x4ef187,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Tt(_0x4ef187,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0xa6a05e=this['editor'],_0x57b868=_0xa6a05e['locale'],_0x3ae778=_0xa6a05e['plugins']['get']('TrackChangesEditing'),_0x438c69='restrictedEditingExceptionBlock',_0x32a6ad=this['editor']['commands']['get'](_0x438c69);_0x3ae778['enableCommand'](_0x438c69,(_0x392e11,_0x2f58cb={})=>{const _0xea9e56=this['editor']['model']['document']['selection'],_0x3142ef=_0x2f58cb&&void 0x0!==_0x2f58cb['forceValue']?_0x2f58cb['forceValue']:!_0x32a6ad['value'];let _0x370057=[];if(_0x3142ef){const _0x477550=Array['from'](_0xea9e56['getSelectedBlocks']())['filter'](_0x46dbe6=>function(_0x4216a0){return!!_0x4216a0['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x46dbe6)||function(_0x527930,_0x23abd7){const _0x28d2fa=_0x23abd7['createContext'](_0x527930['parent']);if(!_0x23abd7['checkChild'](_0x28d2fa,'restrictedEditingException'))return!0x1;if(!_0x23abd7['checkChild'](_0x28d2fa['push']('restrictedEditingException'),_0x527930))return!0x1;return!0x0;}(_0x46dbe6,this['editor']['model']['schema']));_0x370057=ft(_0x477550,_0xa6a05e['model']);}else{const _0x175f99=Array['from'](_0xea9e56['getSelectedBlocks']())['map'](_0x3c2778=>function(_0x4f4dc7){let _0x2c6a90=_0x4f4dc7;for(;_0x2c6a90['parent'];){if('restrictedEditingException'==_0x2c6a90['parent']['name'])return _0x2c6a90;_0x2c6a90=_0x2c6a90['parent'];}return null;}(_0x3c2778))['filter'](_0x390cc1=>!!_0x390cc1);_0x370057=ft(_0x175f99,_0xa6a05e['model']);}_0xa6a05e['model']['change'](()=>{for(const _0x2f84f4 of _0x370057)_0x3ae778['markBlockFormat'](_0x2f84f4,{'commandName':_0x438c69,'commandParams':[{'forceValue':_0x3142ef}]});});}),_0x3ae778['descriptionFactory']['registerDescriptionCallback'](_0x481a21=>{const {data:_0x28f0e8}=_0x481a21;if(_0x28f0e8&&_0x28f0e8['commandName']==_0x438c69)return _0x28f0e8['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x57b868,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Tt(_0x57b868,'FORMAT_RESTRICTED_DISABLED')};});}}class TrackChangesStylesDropdown extends _0x3ea3b4{['afterInit'](){const _0x552c6c=this['editor'];if(!_0x552c6c['plugins']['has']('Style')||!_0x552c6c['plugins']['has']('DataSchema'))return;_0x552c6c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55dd65=this['editor'],_0x1d56bd=_0x55dd65['locale'];_0x55dd65['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6ef8f2=>{if('formatBlock'!=_0x6ef8f2['type']&&'formatInline'!=_0x6ef8f2['type'])return;const {data:_0x253399}=_0x6ef8f2;return _0x253399&&'style'===_0x253399['commandName']?_0x253399['commandParams'][0x0]['forceValue']?{'type':'format','content':Tt(_0x1d56bd,'*Set\x20format:*\x20%0',_0x253399['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Tt(_0x1d56bd,'*Remove\x20format:*\x20%0',_0x253399['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class TrackChangesTable extends _0x3ea3b4{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2ef441){super(_0x2ef441),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2a03ea=this['editor'],_0x11f665=_0x2a03ea['model']['document']['selection'];if(!_0x2a03ea['plugins']['has']('TableEditing'))return;const _0x481db3=_0x2a03ea['locale'],_0x1751a6=_0x2a03ea['plugins']['get']('TrackChangesEditing'),_0x24e476=_0x2a03ea['plugins']['get']('TableUtils');_0x1751a6['descriptionFactory']['registerElementLabel']('table',_0x35b8f5=>Tt(_0x481db3,'ELEMENT_TABLE',_0x35b8f5)),this['_setupColumnsRowsFixing'](),_0x1751a6['enableCommand']('insertTable'),_0x1751a6['enableCommand']('selectTableRow'),_0x1751a6['enableCommand']('selectTableColumn');for(const _0x3b3391 of['insertTableRowAbove','insertTableRowBelow']){const _0x155500=_0x2a03ea['commands']['get'](_0x3b3391);_0x1751a6['enableCommand'](_0x3b3391,_0xcf39d2=>{_0x2a03ea['model']['change'](_0x946342=>{_0xcf39d2();const _0x57cbb0='above'===_0x155500['order'],_0x5023f5=_0x24e476['getSelectionAffectedTableCells'](_0x11f665),_0x549ea9=_0x24e476['getRowIndexes'](_0x5023f5),_0x10c860=_0x57cbb0?_0x549ea9['first']-0x1:_0x549ea9['last']+0x1,_0x2b9c5b=_0x5023f5[0x0]['findAncestor']('table'),_0x232e4b=_0x24e476['createTableWalker'](_0x2b9c5b,{'startRow':_0x10c860,'endRow':_0x10c860}),_0x2a0b4c=Array['from'](_0x232e4b)['map'](_0x1caac3=>_0x946342['createRangeOn'](_0x1caac3['cell']));_0x1751a6['markMultiRangeInsertion'](_0x2a0b4c,'tableRow');});});}for(const _0x43836f of['insertTableColumnLeft','insertTableColumnRight']){const _0x1ed5f6=_0x2a03ea['commands']['get'](_0x43836f);_0x1751a6['enableCommand'](_0x43836f,_0x24bd24=>{_0x2a03ea['model']['change'](_0x6db4b7=>{_0x24bd24();const _0x2c7055='left'===_0x1ed5f6['order'],_0x44296c=_0x24e476['getSelectionAffectedTableCells'](_0x11f665),_0x5ce377=_0x24e476['getColumnIndexes'](_0x44296c),_0x19681f=_0x2c7055?_0x5ce377['first']-0x1:_0x5ce377['last']+0x1,_0x321a33=_0x44296c[0x0]['findAncestor']('table'),_0x4832c1=_0x24e476['createTableWalker'](_0x321a33,{'startRow':0x0,'column':_0x19681f,'includeAllSlots':!0x1}),_0x2e08a5=Array['from'](_0x4832c1)['map'](_0x1972b6=>_0x6db4b7['createRangeOn'](_0x1972b6['cell']));_0x1751a6['markMultiRangeInsertion'](_0x2e08a5,'tableColumn');});});}for(const _0x3e654a of['removeTableRow','removeTableColumn']){const _0xbd4f5a=_0x3e654a['substr'](0xb),_0x15b895=_0xbd4f5a['toLowerCase'](),_0x1330bb=_0x15b895['substr'](0x0,0x3)+'span',_0x4e4c56='table'+_0xbd4f5a,_0x2a4ca4='min'+_0xbd4f5a,_0x2cda39='max'+_0xbd4f5a;_0x1751a6['enableCommand'](_0x3e654a,()=>{_0x2a03ea['model']['change'](_0x420fde=>{const _0xed0862=_0x24e476['getSelectionAffectedTableCells'](_0x11f665),_0x453383=_0xed0862[0x0]['findAncestor']('table');let _0x19de5a;if('removeTableRow'==_0x3e654a){const _0x27107b=_0x24e476['getRowIndexes'](_0xed0862);_0x19de5a={'startRow':_0x27107b['first'],'endRow':_0x27107b['last'],'includeAllSlots':!0x0};}else{const _0x327070=_0x24e476['getColumnIndexes'](_0xed0862);_0x19de5a={'startColumn':_0x327070['first'],'endColumn':_0x327070['last'],'includeAllSlots':!0x0};}const _0x2f7123=_0x24e476['createTableWalker'](_0x453383,_0x19de5a),_0x3aa680=Array['from'](_0x2f7123)['map'](({cell:_0x54a7cf})=>_0x54a7cf),_0x405aa0=Nt(_0x3aa680['filter'](_0x24c0d7=>_0x24c0d7['hasAttribute'](_0x1330bb))),_0x4c6db7=Nt(_0x3aa680['filter'](_0x3ccd67=>!_0x3ccd67['hasAttribute'](_0x1330bb)))['map'](_0x1d9dbe=>_0x420fde['createRangeOn'](_0x1d9dbe)),_0x441f03=_0x1751a6['markMultiRangeDeletion'](_0x4c6db7,_0x4e4c56);if(_0x441f03&&('tableRow'==_0x441f03['subType']||'tableColumn'==_0x441f03['subType'])){const _0x2c9d48=this['_getSuggestionCoords'](_0x441f03);for(const _0x3c61e7 of _0x405aa0){const _0x2498a1=_0x420fde['createRangeOn'](_0x3c61e7),_0x1756df=_0x24e476['getCellLocation'](_0x3c61e7),_0x331c00=_0x3c61e7['getAttribute'](_0x1330bb)-0x1,_0x3acff1=_0x2c9d48[_0x2a4ca4],_0x48164b=_0x2c9d48[_0x2cda39];_0x3acff1<=_0x1756df[_0x15b895]&&_0x1756df[_0x15b895]+_0x331c00<=_0x48164b&&_0x441f03['addRange'](_0x2498a1);}}});});}function _0x79de49(_0x36c16d){const _0x57995a=Array['from'](_0x11f665['getRanges']())['map'](_0x48c405=>_0x418bbc['fromRange'](_0x48c405));_0x2a03ea['model']['change'](_0x1252d9=>{const _0x58bd84=_0x1252d9['batch'];_0x36c16d=_0x36c16d['filter'](_0x59affc=>'$graveyard'!=_0x59affc['root']['rootName']),_0x1252d9['setSelection'](_0x36c16d),_0x2a03ea['commands']['get']('removeTableRow')['refresh'](),_0x2a03ea['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2a03ea['model']['enqueueChange'](()=>{_0x2a03ea['model']['enqueueChange'](_0x58bd84,_0x2f7f3a=>{const _0x3058fb=_0x57995a['filter'](_0x531961=>'$graveyard'!=_0x531961['root']['rootName']);_0x3058fb['length']>0x0&&_0x2f7f3a['setSelection'](_0x3058fb);for(const _0x4436c7 of _0x57995a)_0x4436c7['detach']();});});});}function _0x446d9d(_0x344d25){_0x2a03ea['model']['change'](_0x287fcd=>{const _0x16db3b=Array['from'](_0x11f665['getRanges']())['map'](_0x2a07d5=>_0x418bbc['fromRange'](_0x2a07d5)),_0x54f582=[];for(const _0x51e394 of _0x344d25)for(const _0x1c9b1e of _0x51e394['getItems']({'shallow':!0x0}))_0x54f582['push'](_0x1c9b1e);for(const _0x168e0d of _0x54f582)'$graveyard'!=_0x168e0d['root']['rootName']&&(_0x287fcd['setSelection'](_0x287fcd['createPositionAt'](_0x168e0d,0x0)),_0x2a03ea['commands']['get']('removeTableColumn')['refresh'](),_0x2a03ea['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3fa164=_0x16db3b['filter'](_0x268d81=>'$graveyard'!=_0x268d81['root']['rootName']);_0x3fa164['length']>0x0&&_0x287fcd['setSelection'](_0x3fa164);for(const _0x5caa35 of _0x16db3b)_0x5caa35['detach']();});}function _0x302c72(_0x3c6532,_0x383f47){return _0x383f47['every'](_0x7dcb17=>_0x3c6532['some'](_0x2402e0=>_0x2402e0['end']['isEqual'](_0x7dcb17['start'])||_0x7dcb17['end']['isEqual'](_0x2402e0['start'])));}function _0x3dc563(_0x274344,_0x3c5614){return!_0x274344['some'](_0x7d8f6a=>_0x3c5614['some'](_0x2c822c=>_0x7d8f6a['isIntersecting'](_0x2c822c)))&&_0x274344['some'](_0x483ad2=>_0x3c5614['some'](_0x465c7f=>_0x483ad2['end']['isTouching'](_0x465c7f['start'])));}_0x1751a6['descriptionFactory']['registerDescriptionCallback'](_0xd6d8c2=>{if('insertion'!=_0xd6d8c2['type']&&'deletion'!=_0xd6d8c2['type'])return;const _0x3a6604=_0xd6d8c2['getContainedElement']();if(null!=_0x3a6604&&_0x3a6604['is']('element','table')){if('insertion'==_0xd6d8c2['type']){const _0x120af1=_0xd6d8c2['getItems']()['filter'](_0x3d0b42=>_0x3d0b42['is']('$textProxy'))['map'](_0x473fb2=>_0x473fb2['data']);if(_0x120af1['length'])return{'type':'insertion','content':Tt(_0x481db3,'*Insert:*\x20%0',Tt(_0x481db3,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x120af1['join']('\x20')+'\x22'))};}if('deletion'==_0xd6d8c2['type']){const _0x3c5da2=_0xd6d8c2['getItems']()['filter'](_0x5f2e57=>_0x5f2e57['is']('$textProxy'))['map'](_0x154810=>_0x154810['data']);if(_0x3c5da2['length'])return{'type':'deletion','content':Tt(_0x481db3,'*Remove:*\x20%0',Tt(_0x481db3,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3c5da2['join']('\x20')+'\x22'))};}}}),_0x1751a6['descriptionFactory']['registerDescriptionCallback'](_0x43eac7=>{if('tableRow'==_0x43eac7['subType']){const _0x5229be=_0x43eac7['getItems']()['filter'](_0x239629=>_0x239629['is']('$textProxy'))['map'](_0x3bc647=>_0x3bc647['data']),_0x160d0f=this['_getSuggestionCoords'](_0x43eac7),_0x57fc6b=_0x160d0f['maxRow']-_0x160d0f['minRow']+0x1;if('insertion'==_0x43eac7['type'])return _0x5229be['length']?{'type':'insertion','content':Tt(_0x481db3,'*Insert:*\x20%0',Tt(_0x481db3,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x57fc6b,'\x22'+_0x5229be['join']('\x20')+'\x22']))}:{'type':'insertion','content':Tt(_0x481db3,'*Insert:*\x20%0',Tt(_0x481db3,'ELEMENT_TABLE_ROW',_0x57fc6b))};if('deletion'==_0x43eac7['type'])return _0x5229be['length']?{'type':'deletion','content':Tt(_0x481db3,'*Remove:*\x20%0',Tt(_0x481db3,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x57fc6b,'\x22'+_0x5229be['join']('\x20')+'\x22']))}:{'type':'deletion','content':Tt(_0x481db3,'*Remove:*\x20%0',Tt(_0x481db3,'ELEMENT_TABLE_ROW',_0x57fc6b))};}if('tableColumn'==_0x43eac7['subType']){const _0x2eb2cf=_0x43eac7['getItems']()['filter'](_0x79b048=>_0x79b048['is']('$textProxy'))['map'](_0x3bb4da=>_0x3bb4da['data']),_0x5aa8c1=this['_getSuggestionCoords'](_0x43eac7),_0x2afb14=_0x5aa8c1['maxColumn']-_0x5aa8c1['minColumn']+0x1;if('insertion'==_0x43eac7['type'])return _0x2eb2cf['length']?{'type':'insertion','content':Tt(_0x481db3,'*Insert:*\x20%0',Tt(_0x481db3,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2afb14,'\x22'+_0x2eb2cf['join']('\x20')+'\x22']))}:{'type':'insertion','content':Tt(_0x481db3,'*Insert:*\x20%0',Tt(_0x481db3,'ELEMENT_TABLE_COLUMN',_0x2afb14))};if('deletion'==_0x43eac7['type'])return _0x2eb2cf['length']?{'type':'deletion','content':Tt(_0x481db3,'*Remove:*\x20%0',Tt(_0x481db3,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2afb14,'\x22'+_0x2eb2cf['join']('\x20')+'\x22']))}:{'type':'deletion','content':Tt(_0x481db3,'*Remove:*\x20%0',Tt(_0x481db3,'ELEMENT_TABLE_COLUMN',_0x2afb14))};}}),_0x1751a6['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x79de49),_0x1751a6['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x79de49),_0x1751a6['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x446d9d),_0x1751a6['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x446d9d),_0x1751a6['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x302c72),_0x1751a6['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x302c72),_0x1751a6['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3dc563),_0x1751a6['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3dc563);}['_acceptFormatSuggestionCallbackFactory'](){const _0x27cb78=this['editor'],_0x2e22a1=_0x27cb78['model']['document']['selection'];return(_0x49578b,_0x106598)=>{_0x27cb78['model']['change'](_0x55a907=>{const {commandName:_0x3481bd,commandParams:_0x14868f}=_0x106598;let _0x5e2347=_0x49578b[0x0]['end']['nodeBefore'];_0x14868f&&_0x14868f[0x0]&&!0x1===_0x14868f[0x0]['forceValue']&&(_0x5e2347=_0x49578b[0x0]['start']['nodeAfter']);const _0x5e2e9b=_0x55a907['createRangeIn'](_0x5e2347);if('$graveyard'==_0x5e2e9b['root']['rootName'])return;const _0x4d5305=Array['from'](_0x2e22a1['getRanges']())['map'](_0x10a41a=>_0x418bbc['fromRange'](_0x10a41a));_0x55a907['setSelection'](_0x5e2e9b),_0x27cb78['commands']['get'](_0x3481bd)['refresh'](),_0x14868f['push']({'forceDefaultExecution':!0x0}),_0x27cb78['execute'](_0x3481bd,..._0x14868f);const _0x58180a=_0x4d5305['filter'](_0x35a6f6=>'$graveyard'!=_0x35a6f6['root']['rootName']);_0x58180a['length']>0x0&&_0x55a907['setSelection'](_0x58180a);for(const _0x326abf of _0x4d5305)_0x326abf['detach']();});};}['_getCoordsForCells'](_0x28fcf7){const _0x33bc1d=this['editor']['plugins']['get']('TableUtils');let _0x252253=Number['MAX_SAFE_INTEGER'],_0x532c7a=Number['MIN_SAFE_INTEGER'],_0x4a9f74=Number['MAX_SAFE_INTEGER'],_0x4007fd=Number['MIN_SAFE_INTEGER'];for(const _0x2fe9fd of _0x28fcf7){if('$graveyard'==_0x2fe9fd['root']['rootName'])continue;const {row:_0x57d761,column:_0x3b7e58}=_0x33bc1d['getCellLocation'](_0x2fe9fd),_0x40ce42=_0x2fe9fd['hasAttribute']('rowspan')?_0x2fe9fd['getAttribute']('rowspan')-0x1:0x0,_0x5b5d5e=_0x2fe9fd['hasAttribute']('colspan')?_0x2fe9fd['getAttribute']('colspan')-0x1:0x0;_0x252253=_0x57d761<_0x252253?_0x57d761:_0x252253,_0x532c7a=_0x57d761+_0x40ce42>_0x532c7a?_0x57d761+_0x40ce42:_0x532c7a,_0x4a9f74=_0x3b7e58<_0x4a9f74?_0x3b7e58:_0x4a9f74,_0x4007fd=_0x3b7e58+_0x5b5d5e>_0x4007fd?_0x3b7e58+_0x5b5d5e:_0x4007fd;}return{'minRow':_0x252253,'maxRow':_0x532c7a,'minColumn':_0x4a9f74,'maxColumn':_0x4007fd};}['_setupColumnsRowsFixing'](){const _0xbc197d=this['editor'],_0x188927=_0xbc197d['plugins']['get']('TrackChangesEditing'),_0x3477e6=_0xbc197d['plugins']['get']('TableUtils');_0xbc197d['model']['document']['on']('change:data',()=>{const _0x5cbad8=Array['from'](_0xbc197d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2a9adb,data:_0x14beeb}of _0x5cbad8){const {group:_0x483bf3,id:_0x2d071f,subType:_0x548c29}=_0x368712(_0x2a9adb);if('suggestion'!=_0x483bf3)continue;if(null!=_0x14beeb['oldRange'])continue;const _0x41612f=_0x188927['getSuggestion'](_0x2d071f);this['_tablePostFixingSubtypes']['includes'](_0x548c29)&&this['_tableSuggestions']['add'](_0x41612f);}},{'priority':'low'});const _0x5becbe=(_0x439a60,_0x219e63)=>{let _0x227580=!0x1;const _0xbbdc1e=_0x219e63['createRangeOn'](_0x439a60),_0x2db69f=_0x439a60['findAncestor']('table'),_0x25ffcd=_0x3477e6['getCellLocation'](_0x439a60);for(const _0x6638c of this['_tableSuggestions']){const _0x4dd2e8=_0x6638c['subType'],_0x5fedfc=_0x4dd2e8['startsWith']('tablePaste'),_0x45c653=_0x4dd2e8['substr'](_0x5fedfc?0xa:0x5),_0x198598=_0x45c653['toLowerCase'](),_0xaf6af7=_0x198598['substr'](0x0,0x3)+'span',_0x4f6a86='min'+_0x45c653,_0x1e8c06='max'+_0x45c653;if(!_0x6638c['isInContent'])continue;if(_0x2db69f!=_0x6638c['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x6638c['isIntersectingWithRange'](_0xbbdc1e))continue;const _0x697a4c=_0x439a60['hasAttribute'](_0xaf6af7)?_0x439a60['getAttribute'](_0xaf6af7)-0x1:0x0,_0x10517e=this['_getSuggestionCoords'](_0x6638c),_0x415419=_0x10517e[_0x4f6a86],_0x1eaca4=_0x10517e[_0x1e8c06];_0x415419<=_0x25ffcd[_0x198598]&&_0x25ffcd[_0x198598]+_0x697a4c<=_0x1eaca4&&(_0x6638c['addRange'](_0xbbdc1e),_0x227580=!0x0);}return _0x227580;};_0xbc197d['model']['document']['registerPostFixer'](_0x4e5deb=>{let _0x103b8c=!0x1;for(const _0x48fab0 of _0xbc197d['model']['document']['differ']['getChanges']())if('insert'==_0x48fab0['type']){if('tableRow'==_0x48fab0['name']){for(const _0x506f77 of _0x48fab0['position']['nodeAfter']['getChildren']())_0x103b8c=_0x103b8c||_0x5becbe(_0x506f77,_0x4e5deb);}else'tableCell'==_0x48fab0['name']&&(_0x103b8c=_0x103b8c||_0x5becbe(_0x48fab0['position']['nodeAfter'],_0x4e5deb));}return _0x103b8c;});}['_getSuggestionCoords'](_0x48e2d1){return this['_getCoordsForCells'](_0x48e2d1['getRanges']()['map'](_0x32144c=>_0x32144c['start']['nodeAfter']));}}function Nt(_0x3e7113){return Array['from'](new Set(_0x3e7113)['values']());}class TrackChangesTableMergeSplit extends _0x3ea3b4{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x4dd8f1=this['editor'],_0x3f001f=_0x4dd8f1['model']['document']['selection'],_0x1c933d=_0x4dd8f1['locale'];if(!_0x4dd8f1['plugins']['has']('TableEditing'))return;const _0x10dddd=_0x4dd8f1['plugins']['get']('TrackChangesEditing'),_0x30336e=_0x4dd8f1['plugins']['get']('TableUtils'),_0x43cb60=_0x4dd8f1['plugins']['get'](TrackChangesTable);_0x43cb60['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x10dddd['enableCommand']('mergeTableCells',()=>{const _0x59863b=_0x30336e['getSelectionAffectedTableCells'](_0x4dd8f1['model']['document']['selection']);_0x4dd8f1['model']['change'](()=>{_0x10dddd['markMultiRangeBlockFormat'](_0x59863b,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4dd8f1['commands']['get']('mergeTableCells')['on']('execute',(_0x28e817,_0x83565f)=>{_0x4dd8f1['commands']['get']('trackChanges')['value']&&(_0x83565f['length']>0x0&&_0x83565f[_0x83565f['length']-0x1]&&_0x83565f[_0x83565f['length']-0x1]['forceDefaultExecution']||_0x10dddd['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x28e817['stop']());},{'priority':'highest'});for(const _0x10d0b4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x54b939=_0x4dd8f1['commands']['get'](_0x10d0b4);_0x10dddd['enableCommand'](_0x10d0b4,()=>{const _0x105f71=_0x4dd8f1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5b449a=>_0x5b449a['is']('element','tableCell')),_0x416192=_0x54b939['value'];_0x4dd8f1['model']['change'](()=>{_0x10dddd['markMultiRangeBlockFormat']([_0x105f71,_0x416192],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x113274 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x49a65c=_0x4dd8f1['commands']['get'](_0x113274);_0x10dddd['enableCommand'](_0x113274,()=>{const _0x456bd0=_0x30336e['getSelectionAffectedTableCells'](_0x4dd8f1['model']['document']['selection'])[0x0],_0x4872df=_0x456bd0['findAncestor']('table'),{column:_0x10bfdd,row:_0x2309d}=_0x30336e['getCellLocation'](_0x456bd0);let _0x566788=[];if('horizontally'==_0x49a65c['direction']){const _0x3ef262=_0x30336e['createTableWalker'](_0x4872df,{'startRow':_0x2309d,'endRow':_0x2309d,'includeAllSlots':!0x0});_0x566788=Array['from'](_0x3ef262)['map'](_0x42130e=>_0x42130e['cell']);}else{const _0x74f985=_0x30336e['createTableWalker'](_0x4872df,{'column':_0x10bfdd,'includeAllSlots':!0x0});_0x566788=Array['from'](_0x74f985)['map'](_0x12fa7d=>_0x12fa7d['cell']);}_0x4dd8f1['model']['change'](_0x13b272=>{_0x10dddd['markBlockFormat'](_0x13b272['createRangeOn'](_0x456bd0),{'commandName':_0x113274,'commandParams':[]},_0x566788,_0x113274);});});}_0x10dddd['descriptionFactory']['registerDescriptionCallback'](_0x39e6f4=>{if('formatBlock'!=_0x39e6f4['type']&&'formatInline'!=_0x39e6f4['type'])return;const {data:_0x33c3bf}=_0x39e6f4;return _0x33c3bf&&'mergeTableCells'==_0x33c3bf['commandName']?{'type':'format','content':Tt(_0x1c933d,'*Merge\x20cells*')}:void 0x0;}),_0x10dddd['descriptionFactory']['registerDescriptionCallback'](_0x13a8b2=>{if('formatBlock'!=_0x13a8b2['type']&&'formatInline'!=_0x13a8b2['type'])return;const {data:_0x3b4acf}=_0x13a8b2;return _0x3b4acf?'splitTableCellVertically'==_0x3b4acf['commandName']?{'type':'format','content':Tt(_0x1c933d,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3b4acf['commandName']?{'type':'format','content':Tt(_0x1c933d,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x33ade6=_0x43cb60['_acceptFormatSuggestionCallbackFactory']();for(const _0x539703 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x10dddd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x539703,'accept',_0x33ade6);for(const _0x2e19a5 of['splitTableCellVertically','splitTableCellHorizontally'])_0x10dddd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2e19a5,'accept',_0x33ade6);_0x10dddd['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4a8b1d=>{_0x4dd8f1['model']['change'](_0x4d9615=>{const _0x1adadd=Array['from'](_0x3f001f['getRanges']())['map'](_0x18c385=>_0x418bbc['fromRange'](_0x18c385));_0x4d9615['setSelection'](_0x4a8b1d),_0x4dd8f1['commands']['get']('mergeTableCells')['refresh'](),_0x4dd8f1['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x21a832=_0x1adadd['filter'](_0x336e0b=>'$graveyard'!=_0x336e0b['root']['rootName']);_0x21a832['length']>0x0&&_0x4d9615['setSelection'](_0x21a832);for(const _0x2659b8 of _0x1adadd)_0x2659b8['detach']();});});for(const _0x206dd2 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4d5361=_0x4dd8f1['commands']['get'](_0x206dd2);_0x4d5361['on']('set:isEnabled',(_0x3c176c,_0x13a38b,_0x653836)=>{if(_0x653836){const _0x2b6168=_0x4dd8f1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1a5e46=>_0x1a5e46['is']('element','tableCell'));this['_areMergableCells'](_0x4d5361['value'],_0x2b6168)||(_0x3c176c['return']=!0x1,_0x3c176c['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x353133=this['editor']['commands']['get']('mergeTableCells'),_0x287bf3=this['editor']['plugins']['get']('TableUtils');if(!_0x353133['isEnabled'])return!0x1;const _0xf0eecc=_0x287bf3['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x101fa0 of _0xf0eecc)for(const _0x18f82a of _0xf0eecc)if(_0x101fa0!=_0x18f82a&&!this['_areMergableCells'](_0x101fa0,_0x18f82a))return!0x1;return!0x0;}['_areMergableCells'](_0x1a5bbc,_0x8e82f5){const _0x3d13e8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2cfe5a=this['editor']['model']['createRangeOn'](_0x1a5bbc),_0x2f5290=this['editor']['model']['createRangeOn'](_0x8e82f5),_0x13d4bb=new Set(),_0x20d4d1=new Set();for(const _0x24db33 of _0x3d13e8['getSuggestions']())if(('insertion'==_0x24db33['type']||'deletion'==_0x24db33['type']||'mergeTableCells'==_0x24db33['subType'])&&_0x24db33['isInContent']){for(const _0x10ff88 of _0x24db33['getRanges']())_0x10ff88['containsRange'](_0x2cfe5a,!0x0)&&_0x13d4bb['add'](_0x24db33['type']+':'+_0x24db33['author']['id']),_0x10ff88['containsRange'](_0x2f5290,!0x0)&&_0x20d4d1['add'](_0x24db33['type']+':'+_0x24db33['author']['id']);}if(_0x13d4bb['size']!=_0x20d4d1['size'])return!0x1;for(const _0x2d145e of _0x13d4bb)if(!_0x20d4d1['has'](_0x2d145e))return!0x1;return!0x0;}}class TrackChangesTableHeadings extends _0x3ea3b4{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x4afdd0=this['editor'];if(!_0x4afdd0['plugins']['has']('TableEditing'))return;const _0x1adfa8=_0x4afdd0['locale'],_0x2e6856=_0x4afdd0['plugins']['get']('TrackChangesEditing');_0x2e6856['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2e6856['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2e6856['descriptionFactory']['registerAttributeLabel']('headingRows',Tt(_0x1adfa8,'FORMAT_HEADER_ROW')),_0x2e6856['descriptionFactory']['registerAttributeLabel']('headingColumns',Tt(_0x1adfa8,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x599429=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42e4a3=this['editor']['plugins']['get'](TrackChangesTable)['_acceptFormatSuggestionCallbackFactory']();_0x599429['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x42e4a3),_0x599429['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x42e4a3),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x1b5eb7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46d92d=this['editor']['plugins']['get']('TableUtils');function _0x10df52({showActiveMarker:_0x33c58a=!0x0,setDataAttribute:_0xb5b048=!0x0}={}){return(_0x4c297f,_0x260c8a,_0xbfc5bb)=>{const {type:_0x383bfc,id:_0x53e15e}=_0x368712(_0x260c8a['markerName']);if(!_0x1b5eb7['hasSuggestion'](_0x53e15e))return;const _0x16e7ef=_0x1b5eb7['getSuggestion'](_0x53e15e),_0x1f2809=_0x16e7ef['data'];if('formatBlock'!=_0x16e7ef['type']||!_0x1f2809||'setTableColumnHeader'!=_0x1f2809['commandName'])return;if(_0x260c8a['item'])return void _0x4c297f['stop']();if(!_0xbfc5bb['consumable']['consume'](_0x260c8a['markerRange'],_0x4c297f['name']))return;const _0x4bbd0f=_0x260c8a['markerRange']['start']['nodeAfter'],_0x4a5824=_0x260c8a['markerRange']['end']['nodeBefore'],_0x1f2717=_0x4bbd0f['parent']['parent'],{column:_0x2d74ba}=_0x46d92d['getCellLocation'](_0x4bbd0f),{column:_0x4b42fd}=_0x46d92d['getCellLocation'](_0x4a5824);for(let _0xb8be58=_0x2d74ba;_0xb8be58<=_0x4b42fd;_0xb8be58++){const _0x4c91fb=_0x46d92d['createTableWalker'](_0x1f2717,{'column':_0xb8be58,'includeAllSlots':!0x1});for(const _0x40744f of _0x4c91fb){const _0x552ae8=_0x40744f['cell'],_0x2c777c=_0xbfc5bb['mapper']['toViewElement'](_0x552ae8);_0xbfc5bb['writer']['addClass']('ck-suggestion-marker-'+_0x383bfc,_0x2c777c),_0xb5b048&&_0xbfc5bb['writer']['setAttribute']('data-suggestion',_0x53e15e,_0x2c777c),_0xbfc5bb['mapper']['bindElementToMarker'](_0x2c777c,_0x260c8a['markerName']),_0x33c58a&&(_0x1b5eb7['activeMarkers']['includes'](_0x260c8a['markerName'])?_0xbfc5bb['writer']['addClass']('ck-suggestion-marker--active',_0x2c777c):_0xbfc5bb['writer']['removeClass']('ck-suggestion-marker--active',_0x2c777c));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x10df52(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1e4402,_0x274041,_0x291e23)=>{_0x291e23['options']['showSuggestionHighlights']&&_0x10df52({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1e4402,_0x274041,_0x291e23);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x12b91b,_0x108af0,_0x467b9a)=>{const {type:_0x5f37ab,id:_0x1db53f}=_0x368712(_0x108af0['markerName']);if(!_0x1b5eb7['hasSuggestion'](_0x1db53f))return;const _0x5e0565=_0x1b5eb7['getSuggestion'](_0x1db53f),_0x2d9e11=_0x5e0565['data'];if('formatBlock'!=_0x5e0565['type']||!_0x2d9e11||'setTableColumnHeader'!=_0x2d9e11['commandName'])return;const _0x2ff550=_0x467b9a['mapper']['markerNameToElements'](_0x108af0['markerName']);if(_0x2ff550){for(const _0x50daed of _0x2ff550)_0x467b9a['writer']['removeClass']('ck-suggestion-marker-'+_0x5f37ab,_0x50daed),_0x467b9a['writer']['removeClass']('ck-suggestion-marker--active',_0x50daed),_0x467b9a['writer']['removeAttribute']('data-suggestion',_0x50daed),_0x467b9a['mapper']['unbindElementFromMarkerName'](_0x50daed,_0x108af0['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x3767fa=this['editor'],_0x1ae1f6=_0x3767fa['locale'];function _0x5b0ea4(_0x3398b3){return{'type':'format','content':Tt(_0x1ae1f6,'*Format:*\x20%0',_0x3398b3)};}_0x3767fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ff6a1=>{if('formatBlock'!=_0x1ff6a1['type'])return;const {data:_0x1a5d4f}=_0x1ff6a1;if(_0x1a5d4f){if('setTableRowHeader'==_0x1a5d4f['commandName']){const _0x36d741=_0x1a5d4f['commandParams'][0x0]['forceValue'];return _0x5b0ea4(Tt(_0x1ae1f6,_0x36d741?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1a5d4f['commandName']){const _0x5eb4d7=_0x1a5d4f['commandParams'][0x0]['forceValue'];return _0x5b0ea4(Tt(_0x1ae1f6,_0x5eb4d7?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class TrackChangesTableFooters extends _0x3ea3b4{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x1681f2=this['editor'];if(!_0x1681f2['plugins']['has']('TableEditing')||!_0x1681f2['config']['get']('table.enableFooters'))return;const _0x487a1e=_0x1681f2['locale'],_0x3a753c=_0x1681f2['plugins']['get']('TrackChangesEditing');_0x3a753c['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x3a753c['descriptionFactory']['registerAttributeLabel']('footerRows',Tt(_0x487a1e,'FORMAT_FOOTER_ROW'));}}class TrackChangesTableLayout extends _0x3ea3b4{['afterInit'](){const _0x14b790=this['editor'],_0x15ed2a=_0x14b790['locale'],_0xc6b34c=_0x14b790['plugins']['get']('TrackChangesEditing');function _0x50223b(_0x36e519){return{'type':'format','content':''+Tt(_0x15ed2a,'*Set\x20table\x20type:*\x20%0',_0x36e519)};}_0x14b790['plugins']['has']('TableLayout')&&(_0xc6b34c['enableCommand']('insertTableLayout'),_0xc6b34c['enableDefaultAttributesIntegration']('tableType'),_0xc6b34c['descriptionFactory']['registerElementLabel'](_0x1ad4d9=>_0x1ad4d9['is']('element','table')&&'layout'===_0x1ad4d9['getAttribute']('tableType'),_0x23ec38=>Tt(_0x15ed2a,'ELEMENT_LAYOUT_TABLE',_0x23ec38)),_0xc6b34c['descriptionFactory']['registerDescriptionCallback'](_0x3c3e92=>{const {data:_0x32b380}=_0x3c3e92;if(_0x32b380&&'tableType'==_0x32b380['key'])switch(_0x32b380['newValue']){case'layout':return _0x50223b(Tt(_0x15ed2a,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x50223b(Tt(_0x15ed2a,'ELEMENT_CONTENT_TABLE'));}}));}}const Mt=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ot=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Mt['map'](_0x5e7216=>[_0x5e7216,null]));class TrackChangesTableClipboard extends _0x3ea3b4{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x378e98=this['editor'];if(!_0x378e98['plugins']['has']('TableClipboard'))return;const _0x14de96=_0x378e98['plugins']['get']('TrackChangesEditing'),_0x4d4da9=_0x378e98['plugins']['get']('TableUtils'),_0x21771c=_0x378e98['plugins']['get'](TrackChangesTable),_0xd1be1e=_0x378e98['plugins']['get']('TableClipboard'),_0x22ad23=_0x378e98['plugins']['get']('TableSelection'),_0x35989a=_0x378e98['plugins']['get'](ut);_0x21771c['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x378e98['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x378e98['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x233241=null,_0x47dd12=!0x1;_0x35989a['on']('contentInsertion',(_0x21bd0c,_0x5a2990)=>{_0x47dd12='paste'===_0x5a2990['method'];}),_0x378e98['model']['on']('insertContent',(_0xc20ee8,_0x3cba12)=>{if(!_0x47dd12&&null===_0x22ad23['getSelectedTableCells']())return;const [_0x17c059,_0xda3f23]=_0x3cba12,_0x2084d2=_0x3cba12[_0x3cba12['length']-0x1];_0x2084d2&&_0x2084d2['forceDefaultExecution']||_0x14de96['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x28710c,_0x43a846,_0x1344c4,_0x16410a,_0x329e13){if(_0x43a846&&!_0x43a846['is']('documentSelection'))return!0x1;const _0x685b43=_0x329e13['getTableIfOnlyTableInContent'](_0x28710c,_0x1344c4);if(!_0x685b43||!Ft(_0x685b43,void 0x0,_0x16410a))return!0x1;const _0x1ca07a=_0x16410a['getSelectionAffectedTableCells'](_0x1344c4['document']['selection']);if(!_0x1ca07a['length'])return!0x1;const _0x5ea5ae=_0x1ca07a[0x0]['findAncestor']('table'),_0x3eaa41=_0x16410a['getRowIndexes'](_0x1ca07a),_0x3366bf=_0x16410a['getColumnIndexes'](_0x1ca07a),_0x405ff2={'startRow':_0x3eaa41['first'],'endRow':_0x3eaa41['last'],'startColumn':_0x3366bf['first'],'endColumn':_0x3366bf['last']};return 0x1==_0x1ca07a['length']&&(_0x405ff2['endRow']+=_0x16410a['getRows'](_0x685b43)-0x1,_0x405ff2['endColumn']+=_0x16410a['getColumns'](_0x685b43)-0x1),Ft(_0x5ea5ae,_0x405ff2,_0x16410a);}(_0x17c059,_0xda3f23,_0x378e98['model'],_0x4d4da9,_0xd1be1e)&&(_0xc20ee8['stop'](),_0x233241={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x378e98['model']['change'](()=>{_0x378e98['model']['insertContent'](_0x3cba12[0x0],_0x3cba12[0x1],_0x3cba12[0x2],{'forceDefaultExecution':!0x0});const _0xcb6a5=_0x4681a7(),{rowInsertionRanges:_0x5a79d0,columnInsertionRanges:_0x3dfef8,insertionRanges:_0x41138c,deletionRanges:_0x130ad1,cells:_0xbf099d}=_0x233241;_0x5a79d0['length']&&_0x14de96['markMultiRangeInsertion'](_0x5a79d0,'tablePasteRow',{'tablePasteChainId':_0xcb6a5}),_0x3dfef8['length']&&_0x14de96['markMultiRangeInsertion'](_0x3dfef8,'tablePasteColumn',{'tablePasteChainId':_0xcb6a5}),_0x41138c['length']&&(_0x14de96['markMultiRangeInsertion'](_0x41138c,'tablePaste',{'tablePasteChainId':_0xcb6a5,'skipNestingCheck':!0x0}),_0x41138c['forEach'](_0x172ce2=>_0x172ce2['detach']?.())),_0x130ad1['length']&&(_0x14de96['markMultiRangeDeletion'](_0x130ad1,'tablePaste',{'tablePasteChainId':_0xcb6a5,'skipNestingCheck':!0x0}),_0x130ad1['forEach'](_0x4f447e=>_0x4f447e['detach']?.()));const _0x4f1ef3=_0x14de96['markMultiRangeBlockFormat'](_0xbf099d['map'](({element:_0x274c71})=>_0x274c71),{'formatGroupId':_0x4681a7()},[],'tablePasteCell',{'tablePasteChainId':_0xcb6a5});if(_0x4f1ef3){const _0x1569a5=_0x4f1ef3['getMarkers'](),_0x211819=[];for(const {element:_0x28e65b,attributes:_0x876cb9}of _0xbf099d){if(!_0x876cb9)continue;const _0x2bb13a=_0x378e98['model']['createRangeOn'](_0x28e65b),_0x52a4dd=_0x1569a5['find'](_0x6fb49f=>_0x6fb49f['getRange']()['isEqual'](_0x2bb13a));_0x52a4dd&&_0x211819['push']([_0x52a4dd['name'],_0x876cb9]);}_0x211819['length']&&_0x4f1ef3['setAttribute']('markerAttributes',Object['fromEntries'](_0x211819));}_0x233241=null;}));},{'priority':_0x3029c3['high']+0xa}),_0x35989a['on']('contentInsertion',()=>{_0x47dd12=!0x1;},{'priority':'lowest'}),_0x378e98['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2ea39c,_0x188ddf)=>{const [_0x5ab7fe,_0x1ebd1e,,_0x56ccfe]=_0x188ddf;if(!_0x233241)return;_0x2ea39c['stop']();const _0x57af67=_0x5ab7fe['cell'],_0x588e8f=_0x1ebd1e,_0xc305e0=wt(_0x57af67),_0x4c612d=wt(_0x588e8f);_0x2ea39c['return']=_0x57af67;let _0x27023e=null,_0x4c95e6=null;if(_0x4c612d||_0xc305e0){if(_0xc305e0&&!_0x4c612d){_0x56ccfe['remove'](_0x57af67['getChild'](0x0));for(const _0xa4a04e of Array['from'](_0x588e8f['getChildren']()))_0x56ccfe['insert'](_0xa4a04e,_0x57af67,'end');const _0x5df0cc=_0x233241['rowInsertionIndexes']['includes'](_0x5ab7fe['row']),_0x51e013=_0x233241['columnInsertionIndexes']['includes'](_0x5ab7fe['column']);_0x5df0cc||_0x51e013||(_0x27023e=_0x418bbc['fromRange'](_0x56ccfe['createRangeIn'](_0x57af67)));}else _0x4c612d&&!_0xc305e0&&(_0x4c95e6=_0x56ccfe['createRangeIn'](_0x57af67));}else{const _0x26eb3e=_0x56ccfe['createElement']('tableCellSuggestion'),_0x33fa23=_0x56ccfe['createElement']('tableCellSuggestion');_0x56ccfe['wrap'](_0x56ccfe['createRangeIn'](_0x57af67),_0x33fa23),_0x56ccfe['insert'](_0x26eb3e,_0x57af67,0x0);for(const _0x7a004d of Array['from'](_0x588e8f['getChildren']()))_0x56ccfe['insert'](_0x7a004d,_0x26eb3e,'end');_0x27023e=_0x418bbc['fromRange'](_0x56ccfe['createRangeOn'](_0x26eb3e)),_0x4c95e6=_0x418bbc['fromRange'](_0x56ccfe['createRangeOn'](_0x33fa23));}const _0x1a96b9=Array['from'](_0x588e8f['getAttributes']())['filter'](([_0x239266])=>Mt['includes'](_0x239266));_0x233241['cells']['push']({'element':_0x57af67,'attributes':_0x1a96b9['length']?Object['fromEntries'](_0x1a96b9):null}),_0x27023e&&_0x233241['insertionRanges']['push'](_0x27023e),_0x4c95e6&&_0x233241['deletionRanges']['push'](_0x4c95e6);},{'priority':'high'}),_0x4d4da9['on']('insertColumns',(_0x285806,_0x488b99)=>{const [_0xe778f1,_0x519c89={}]=_0x488b99;if(!_0x233241)return;const _0x57f99e=_0x519c89['at']||0x0,_0x5c8cb1=_0x519c89['columns']||0x1;_0x233241['columnInsertionIndexes']=new Array(_0x5c8cb1)['fill'](_0x57f99e)['map']((_0x192bb1,_0x83f0e7)=>_0x192bb1+_0x83f0e7);for(const {cell:_0x4f5304}of _0x4d4da9['createTableWalker'](_0xe778f1,{'startColumn':_0x57f99e,'endColumn':_0x57f99e+_0x5c8cb1-0x1}))_0x233241['columnInsertionRanges']['push'](_0x378e98['model']['createRangeOn'](_0x4f5304));},{'priority':'low'}),_0x4d4da9['on']('insertRows',(_0x589c95,_0x53b9b7)=>{const [_0x55e54d,_0x1df8fd={}]=_0x53b9b7;if(!_0x233241)return;const _0x535960=_0x1df8fd['at']||0x0,_0x17e740=_0x1df8fd['rows']||0x1;_0x233241['rowInsertionIndexes']=new Array(_0x17e740)['fill'](_0x535960)['map']((_0x1c90cf,_0x4ee6bd)=>_0x1c90cf+_0x4ee6bd);for(const {cell:_0x80bb43}of _0x4d4da9['createTableWalker'](_0x55e54d,{'startRow':_0x535960,'endRow':_0x535960+_0x17e740-0x1}))_0x233241['rowInsertionRanges']['push'](_0x378e98['model']['createRangeOn'](_0x80bb43));},{'priority':'low'}),_0x14de96['descriptionFactory']['registerDescriptionCallback'](_0x18969b=>{if(_0x18969b['subType']&&_0x18969b['subType']['startsWith']('tablePaste'))return _0x18969b['previous']?{}:{'type':'insertion','content':Tt(_0x378e98['locale'],'*Replace\x20table\x20cells*')};});const _0x1f1851=()=>!0x1;for(const _0x19c6e5 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x14de96['_suggestionFactory']['registerCustomCallback']('insertion',_0x19c6e5,'join',_0x1f1851),_0x14de96['_suggestionFactory']['registerCustomCallback']('deletion',_0x19c6e5,'join',_0x1f1851),_0x14de96['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x19c6e5,'join',_0x1f1851);_0x14de96['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1f1851),_0x14de96['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x341fa4,_0x403502,_0x2ad916)=>{const _0x534b45=_0x341fa4['map'](_0x2057b4=>_0x2057b4['getContainedElement']())['filter'](_0x437f81=>_0x437f81),_0xfc939=new Map(_0x534b45['map'](_0x3d77d8=>[_0x3d77d8,null]));if(_0x233241){for(const {element:_0x2bd8a6,attributes:_0x1b6b72}of _0x233241['cells'])_0x1b6b72&&_0xfc939['set'](_0x2bd8a6,_0x1b6b72);}else{if(_0x2ad916&&_0x2ad916['markerAttributes'])for(const [_0x55f003,_0x2e384c]of Object['entries'](_0x2ad916['markerAttributes'])){const _0x1876b0=_0x378e98['model']['markers']['get'](_0x55f003),_0x46d825=_0x1876b0?_0x1876b0['getRange']()['getContainedElement']():null;_0x46d825&&_0xfc939['set'](_0x46d825,_0x2e384c);}}_0x378e98['model']['change'](_0x45d762=>{for(const [_0x416554,_0x1558ba]of _0xfc939)_0x45d762['setAttributes']({...Ot,..._0x1558ba},_0x416554);});});const _0x556938=(_0x18c51a,_0x214750)=>{_0x14de96['_suggestionFactory']['registerCustomCallback'](_0x18c51a,'tablePaste',_0x214750,(_0x4a7985,_0x44c4a5,_0x295caa)=>{_0x378e98['model']['change'](_0x1471d9=>{const _0x567975=[];for(const _0x1edd9d of _0x4a7985){const _0xe78efd=_0x1edd9d['start']['nodeAfter'];_0xe78efd['is']('element','tableCellSuggestion')&&_0x567975['push'](_0xe78efd);}_0x14de96['_suggestionFactory']['getSuggestionCallback'](_0x18c51a,null,_0x214750)(_0x4a7985,_0x44c4a5,_0x295caa);for(const _0x2b9ea8 of _0x567975)'$graveyard'!=_0x2b9ea8['root']['rootName']&&_0x1471d9['unwrap'](_0x2b9ea8);});});};_0x556938('insertion','accept'),_0x556938('insertion','discard'),_0x556938('deletion','accept'),_0x556938('deletion','discard'),_0x14de96['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4f2411=>{const _0x5670df=_0x4f2411['map'](_0x528ac8=>_0x528ac8['getContainedElement']()),_0x392f51=_0x5670df[0x0]['findAncestor']('table'),{minRow:_0x24ba35,maxRow:_0x45e85b}=_0x21771c['_getCoordsForCells'](_0x5670df);_0x4d4da9['removeRows'](_0x392f51,{'at':_0x24ba35,'rows':_0x45e85b-_0x24ba35+0x1});}),_0x14de96['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x476236=>{const _0x159f52=_0x476236['map'](_0x5ec782=>_0x5ec782['getContainedElement']()),_0x4a5bb1=_0x159f52[0x0]['findAncestor']('table'),{minColumn:_0x30cb0d,maxColumn:_0x2f42d6}=_0x21771c['_getCoordsForCells'](_0x159f52);_0x4d4da9['removeColumns'](_0x4a5bb1,{'at':_0x30cb0d,'columns':_0x2f42d6-_0x30cb0d+0x1});});const _0x321ef5=(_0x3791a3,_0x589ed2)=>{if(!_0x589ed2['subType']||!_0x589ed2['subType']['startsWith']('tablePaste'))return;const _0x53aff2=_0x589ed2['attributes']['tablePasteChainId'],_0x43efbb=_0x14de96['getSuggestions']()['filter'](_0x5d91e8=>_0x5d91e8['isInContent']&&_0x5d91e8['attributes']&&_0x5d91e8['attributes']['tablePasteChainId']==_0x53aff2);_0x43efbb['length']&&_0x589ed2['getAllAdjacentSuggestions']()['length']!=_0x43efbb['length']&&_0x43efbb['reduce']((_0x3df1ee,_0x3205e2)=>(_0x3df1ee['next']=_0x3205e2,_0x3205e2['previous']=_0x3df1ee,_0x3205e2));};function _0x44efb9(_0x2d1213,_0x2a60b6=!0x0){const {id:_0x4185a9,authorId:_0x359db0}=_0x368712(_0x2d1213['markerName']),_0x43d1c2=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x495c4e=_0x14de96['activeMarkers']['includes'](_0x2d1213['markerName']);return _0x495c4e&&_0x43d1c2['push']('ck-suggestion-marker--active'),{'classes':_0x43d1c2,'attributes':{'data-suggestion':_0x4185a9,'data-author-id':_0x359db0},'priority':_0x495c4e&&_0x2a60b6?0xbc2:0xbb8};}_0x14de96['on']('suggestionLoaded',_0x321ef5,{'priority':'high'}),_0x14de96['on']('suggestionUnloaded',_0x321ef5,{'priority':'high'}),_0x378e98['model']['document']['registerPostFixer'](()=>{let _0x2832d4=!0x1;const _0x30bf2d=Array['from'](_0x378e98['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5cea91,data:_0xc684f4}of _0x30bf2d){const {group:_0x4691c0,type:_0x12edc4,id:_0x45c0a1}=_0x368712(_0x5cea91);if('suggestion'!=_0x4691c0||'deletion'!=_0x12edc4||_0xc684f4['oldRange'])continue;if(!_0x14de96['hasSuggestion'](_0x45c0a1))continue;const _0x152c93=_0x14de96['getSuggestion'](_0x45c0a1)['getRanges'](),_0x41fe37=_0x378e98['plugins']['get']('Users')['me'];for(const _0x1eebf2 of _0x14de96['getSuggestions']()){if(!_0x1eebf2['isInContent']||_0x1eebf2['author']!=_0x41fe37)continue;if('formatBlock'!=_0x1eebf2['type']||'tablePasteCell'!=_0x1eebf2['subType'])continue;if(_0x1eebf2['getRanges']()['every'](_0x4719bc=>_0x152c93['some'](_0x517c54=>_0x517c54['containsRange'](_0x4719bc,!0x0)))){for(const _0x5bbe7b of _0x1eebf2['getAllAdjacentSuggestions']())_0x5bbe7b['isInContent']&&(_0x5bbe7b['discard'](),_0x2832d4=!0x0);}}}return _0x2832d4;}),_0x378e98['model']['document']['registerPostFixer'](_0x5bcdc3=>{const _0x24bd98=_0x378e98['commands']['get']('redo');if(!_0x24bd98||!_0x24bd98['_createdBatches']['has'](_0x5bcdc3['batch']))return!0x1;let _0x2e8b65=!0x1;const _0x214fd6=_0x378e98['plugins']['get']('Users')['me'],_0xc82f4a=_0x378e98['model']['document']['differ']['getChanges'](),_0x23805c=Array['from'](_0x378e98['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x501d0b,data:_0x399e1f})=>{const {group:_0x559d61,subType:_0x21d0c0,authorId:_0x36e302}=_0x368712(_0x501d0b);return'suggestion'==_0x559d61&&'tablePaste'==_0x21d0c0&&_0x36e302==_0x214fd6['id']&&!_0x399e1f['oldRange'];});for(const _0x34db79 of _0xc82f4a){if('insert'!=_0x34db79['type']||'tableCellSuggestion'!=_0x34db79['name']||0x1!=_0x34db79['length'])continue;const _0x3155df=_0x5bcdc3['createRange'](_0x34db79['position'],_0x34db79['position']['getShiftedBy'](0x1));if(!_0x23805c['find'](({data:_0x4c6e3d})=>_0x4c6e3d['newRange']['isEqual'](_0x3155df))){for(const {name:_0x55d610,data:_0x136258}of _0x23805c)if(_0x3155df['containsRange'](_0x136258['newRange'])){_0x5bcdc3['updateMarker'](_0x55d610,{'range':_0x3155df}),_0x2e8b65=!0x0;break;}}}return _0x2e8b65;}),_0x378e98['model']['document']['registerPostFixer'](_0x258a1b=>{let _0x49eb11=!0x1;const _0x75b58d=_0x378e98['plugins']['get']('Users')['me'],_0x246126=_0x14de96['getSuggestions']()['filter'](_0x553961=>_0x553961['isInContent']&&_0x553961['author']==_0x75b58d),_0x592ef9=new Set(),_0xfde95c=new Set();for(const _0x572bd0 of _0x246126)if('tablePaste'==_0x572bd0['subType'])for(const _0x3bdafe of _0x572bd0['getMarkers']()){const _0x1fe10f=_0x3bdafe['getRange']()['getContainedElement']();if(_0x1fe10f){if(_0x1fe10f['is']('element','tableCellSuggestion')&&wt(_0x1fe10f)){_0x572bd0['removeMarker'](_0x3bdafe['name']),_0x592ef9['add'](_0x1fe10f),_0x49eb11=!0x0;const _0xf01b68=_0x1fe10f['nextSibling'],_0x35de0d=_0x1fe10f['previousSibling'],_0x5c0fea=_0xf01b68&&_0xf01b68['is']('element','tableCellSuggestion'),_0x31380d=_0x35de0d&&_0x35de0d['is']('element','tableCellSuggestion');_0x5c0fea&&!_0x592ef9['has'](_0xf01b68)&&_0xfde95c['add'](_0xf01b68),_0x31380d&&!_0x592ef9['has'](_0x35de0d)&&_0xfde95c['add'](_0x35de0d);}else _0x1fe10f['is']('element','paragraph')&&_0x1fe10f['isEmpty']&&(_0x572bd0['removeMarker'](_0x3bdafe['name']),_0x49eb11=!0x0);}}else{if('tablePasteCell'==_0x572bd0['subType']){if(!_0x572bd0['attributes']||!_0x572bd0['attributes']['tablePasteChainId'])continue;const _0x313e58=_0x572bd0['attributes']['markerAttributes'];if(_0x313e58&&Object['keys'](_0x313e58)['length'])continue;const _0x5a635d=_0x572bd0['attributes']['tablePasteChainId'];let _0x15e384=!0x0,_0xed7b5d=!0x0;for(const _0x19a7bc of _0x246126)if(_0x19a7bc['subType']&&_0x19a7bc['subType']['startsWith']('tablePaste')){if(!_0x19a7bc['attributes']['tablePasteChainId']){_0xed7b5d=!0x1;break;}if(_0x19a7bc['id']!=_0x572bd0['id']&&_0x19a7bc['attributes']['tablePasteChainId']==_0x5a635d){_0x15e384=!0x1;break;}}_0xed7b5d&&_0x15e384&&(_0x572bd0['removeMarkers'](),_0x49eb11=!0x0);}}for(const _0x1c0816 of _0x592ef9)_0x258a1b['remove'](_0x1c0816);for(const _0x19bc3e of _0xfde95c)_0x258a1b['unwrap'](_0x19bc3e);return _0x49eb11;}),_0x378e98['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1d3856=>_0x44efb9(_0x1d3856),'converterPriority':'high'}),_0x378e98['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1e3ae7,_0x41f246)=>_0x41f246['options']['showSuggestionHighlights']?_0x44efb9(_0x1e3ae7,!0x1):null,'converterPriority':'high'});const _0x5431c7=_0x378e98['editing']['view'];this['listenTo'](_0x5431c7['document'],'clipboardOutput',(_0x3dc9e8,_0x580085)=>{const _0x10a9e1=[];for(const _0x174469 of _0x5431c7['createRangeIn'](_0x580085['content'])['getItems']())_0x174469['is']('element','suggestion-td')&&_0x10a9e1['push'](_0x174469);_0x5431c7['change'](_0x2cd27f=>{for(const _0x247861 of _0x10a9e1)_0x2cd27f['move'](_0x2cd27f['createRangeIn'](_0x247861),_0x2cd27f['createPositionBefore'](_0x247861)),_0x2cd27f['remove'](_0x247861);});});}}function wt(_0x5f4ed1){if(_0x5f4ed1['isEmpty'])return!0x0;const _0x77248=_0x5f4ed1['getChild'](0x0);return _0x77248['is']('element','paragraph')&&_0x77248['isEmpty'];}function Ft(_0x497488,_0x4d1460={},_0x179c58){for(const {isAnchor:_0x28c1b9,cellHeight:_0x5a75ed,cellWidth:_0x410b81}of _0x179c58['createTableWalker'](_0x497488,{'includeAllSlots':!0x0,..._0x4d1460}))if(!_0x28c1b9||0x1!=_0x5a75ed||0x1!=_0x410b81)return!0x1;return!0x0;}class TrackChangesTableColumnResize extends _0x3ea3b4{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x50986e=this['editor']['plugins']['get']('TrackChangesEditing');_0x50986e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x50986e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x50986e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x50986e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x50986e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x50986e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3df99f,_0x2d3a83){const _0x45a0b4=this['editor']['plugins']['get']('TrackChangesEditing'),_0xcc6487=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2414b9=_0x2d3a83['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5c950a=_0xcc6487['getColumnGroupElement'](_0x2414b9);let _0x5a1c8a=_0x5c950a?_0xcc6487['getTableColumnsWidths'](_0x5c950a):null,_0x439a82=_0x2414b9['getAttribute']('tableWidth')||null;const _0x1f7d87=_0x2d3a83['tableWidth']||_0x439a82,_0x46ab2f=_0x2d3a83['columnWidths']||_0x5a1c8a,_0x2dd862=this['editor']['plugins']['get']('Users')['me'];for(const _0x63760f of _0x45a0b4['getSuggestions']()){const _0x407890=_0x63760f['getContainedElement']();if('resizeTable'===_0x63760f['subType']&&_0x407890===_0x2414b9){_0x63760f['author']!==_0x2dd862&&_0x63760f['discard']();const _0x37af35=_0x63760f['data']['commandParams'];_0x439a82=_0x37af35[0x0]['tableWidth'],_0x5a1c8a=_0x37af35[0x0]['columnWidths'];break;}}_0x3df99f({'table':_0x2414b9,'tableWidth':_0x1f7d87,'columnWidths':_0x46ab2f}),_0x45a0b4['markBlockFormat'](_0x2414b9,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x439a82,'columnWidths':_0x5a1c8a}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x30cacf){if('formatBlock'!=_0x30cacf['type']&&'formatInline'!=_0x30cacf['type'])return;const {data:_0xa175f}=_0x30cacf;if(_0xa175f&&'resizeTable'===_0xa175f['formatGroupId']){const _0x5aa028='*Format:*\x20resize\x20table';return{'type':'format','content':Tt(this['editor']['locale'],_0x5aa028)};}}}class TrackChangesTemplate extends _0x3ea3b4{['afterInit'](){const _0x3c5ebc=this['editor'];_0x3c5ebc['plugins']['has']('Template')&&_0x3c5ebc['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class TrackChangesTableOfContents extends _0x3ea3b4{['afterInit'](){const _0x5730cc=this['editor'];if(!_0x5730cc['commands']['get']('insertTableOfContents'))return;_0x5730cc['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5dbe61=_0x5730cc['plugins']['get']('TrackChangesEditing'),_0x2deb68=_0x5730cc['locale'];_0x5dbe61['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1a53c0=>Tt(_0x2deb68,'ELEMENT_TABLE_OF_CONTENTS',_0x1a53c0));}}class TrackChangesTitle extends _0x3ea3b4{['afterInit'](){const _0x2f5d76=this['editor'];if(!_0x2f5d76['plugins']['has']('Title'))return;_0x2f5d76['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Tt(_0x2f5d76['locale'],'ELEMENT_TITLE')),_0x2f5d76['model']['document']['registerPostFixer'](_0x487a4d=>{let _0x30bdbe=!0x1;const _0x5209e8=Array['from'](_0x2f5d76['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4296f9,data:_0x34dafc}of _0x5209e8){const {group:_0x298611}=_0x368712(_0x4296f9);if('suggestion'!==_0x298611||!_0x34dafc['newRange'])continue;const _0x11096a=_0x34dafc['newRange'],_0x32342b=_0x11096a['end']['nodeBefore'];if(!_0x32342b||!_0x32342b['is']('element','title-content'))continue;if(!_0x11096a['start']['isTouching'](_0x11096a['end']))continue;const _0x50e8a1=_0x2f5d76['model']['schema']['getNearestSelectionRange'](_0x11096a['end'],'forward');if(_0x50e8a1&&_0x50e8a1['isCollapsed']){const _0x10f5a7=_0x487a4d['createRange'](_0x11096a['start'],_0x50e8a1['start']);_0x10f5a7['isEqual'](_0x11096a)||(_0x487a4d['updateMarker'](_0x4296f9,{'range':_0x10f5a7}),_0x30bdbe=!0x0);}_0x30bdbe||(_0x487a4d['removeMarker'](_0x4296f9),_0x30bdbe=!0x0);}return _0x30bdbe;});}}class TrackChangesUploadcare extends _0x3ea3b4{['afterInit'](){const _0x4938eb=this['editor'],_0x3e154=_0x4938eb['plugins']['get']('TrackChangesEditing');_0x4938eb['plugins']['has']('Uploadcare')&&(_0x3e154['enableCommand']('uploadcare'),_0x4938eb['plugins']['has']('UploadcareImageEdit')&&(_0x3e154['enableCommand']('uploadcareImageEdit'),_0x3e154['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3e154['descriptionFactory']['registerDescriptionCallback'](_0x5da9bf=>{if('attribute'!=_0x5da9bf['type'])return;const {data:_0xc16ce2}=_0x5da9bf;return _0xc16ce2&&'uploadcareImageId'==_0xc16ce2['key']?{'type':'format','content':''}:void 0x0;})));}}class TrackChangesUndo extends _0x3ea3b4{['afterInit'](){const _0x10f95f=this['editor'],_0x2a11dc=_0x10f95f['plugins']['get']('TrackChangesEditing');_0x10f95f['plugins']['has']('UndoEditing')&&(_0x2a11dc['enableCommand']('undo'),_0x2a11dc['enableCommand']('redo'));}}class TrackChangesTableCaption extends _0x3ea3b4{static get['requires'](){return[TrackChangesTable];}['afterInit'](){const _0x5929f4=this['editor'];if(!_0x5929f4['plugins']['has']('TableCaptionEditing'))return;_0x5929f4['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class TrackChangesTableProperties extends _0x3ea3b4{['tableProperties'];['tableCellProperties'];constructor(_0x56d62f){super(_0x56d62f),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 _0x3fc535=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x18b9f3 of this['tableProperties'])_0x3fc535['enableCommand'](_0x18b9f3,(_0x57436f,_0x4570bb)=>{const _0x2aff5a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x18b9f3,[_0x2aff5a],this['tableProperties'],'tableProperties',_0x57436f,_0x4570bb);});_0x3fc535['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3fc535['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3fc535['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x405c66,_0x5378a1)=>this['handleDiscardAction'](this['tableProperties'],_0x405c66,_0x5378a1)),_0x3fc535['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3b247f of this['tableCellProperties'])this['editor']['commands']['get'](_0x3b247f)&&_0x3fc535['enableCommand'](_0x3b247f,(_0x104e8e,_0x247622)=>{const _0x34f09a=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3b247f,_0x34f09a,this['tableCellProperties'],'tableCellProperties',_0x104e8e,_0x247622);});_0x3fc535['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3fc535['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3fc535['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x167939,_0x45a288)=>this['handleDiscardAction'](this['tableCellProperties'],_0x167939,_0x45a288)),_0x3fc535['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x3fc535['descriptionFactory']['registerAttributeLabel']('tableCellType',Tt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x3fc535['descriptionFactory']['registerDescriptionCallback'](_0x134154=>this['handleSuggestionDescription'](_0x134154)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x43b366,_0x4e4562,_0x4628f6,_0x467c93,_0x58fd6e,_0x3901ab){const _0x15bb83=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3901ab['batch'],()=>{for(const _0x440a38 of _0x4e4562){if(this['_getSuggestion'](_0x440a38,_0x467c93))_0x58fd6e(_0x3901ab);else{const _0x2ab6fd={};for(const _0x28c565 of _0x4628f6){const _0x3c10f5=_0x440a38['getAttribute'](_0x28c565);void 0x0!==_0x3c10f5&&(_0x2ab6fd[_0x28c565]=_0x3c10f5);}_0x58fd6e(_0x3901ab),_0x15bb83['markBlockFormat'](_0x440a38,{'commandParams':[_0x2ab6fd]},[],_0x467c93);}}});}['handleDiscardAction'](_0x1e6da5,_0x25c94a,_0x367184){const _0x366b4b=_0x25c94a[0x0]['start']['nodeAfter'],_0x1bb562=_0x367184['commandParams'][0x0];this['editor']['model']['change'](_0x44ff74=>{for(const _0x27359f of _0x1e6da5)void 0x0!==_0x1bb562[_0x27359f]?_0x44ff74['setAttribute'](_0x27359f,_0x1bb562[_0x27359f],_0x366b4b):_0x44ff74['removeAttribute'](_0x27359f,_0x366b4b);});}['handleSuggestionDescription'](_0x178e8d){if(_0x178e8d['data'])switch(_0x178e8d['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'](_0x123bda,_0x3079ed){const _0x452269=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x176a27 of _0x452269['getSuggestions']({'skipNotAttached':!0x0})){const _0x1c73bf=_0x176a27['getContainedElement']();if(_0x176a27['subType']===_0x3079ed&&_0x1c73bf===_0x123bda)return _0x176a27;}return null;}['_registerTablePropertiesAttributes'](){const _0x3a4884=this['editor']['plugins']['get']('TrackChangesEditing'),_0x126e50=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x11c7b1 of _0x126e50){const _0x1eba50=_0x11c7b1['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x3a4884['descriptionFactory']['registerAttributeLabel'](_0x11c7b1,Tt(this['editor']['locale'],'FORMAT_'+_0x1eba50));}}}class TrackChangesLineHeight extends _0x3ea3b4{['afterInit'](){const _0x53c6b4=this['editor'];if(!_0x53c6b4['plugins']['has']('LineHeight'))return;const _0x4e52df=_0x53c6b4['plugins']['get']('TrackChangesEditing'),_0x4614c0=_0x53c6b4['locale'];_0x4e52df['enableDefaultAttributesIntegration']('lineHeight'),_0x4e52df['descriptionFactory']['registerAttributeLabel']('lineHeight',Tt(_0x4614c0,'FORMAT_LINE_HEIGHT'));}}const Bt='$elementName';class TrackChangesEditing extends _0x3ea3b4{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x181319,_0x133a74,_0x2735a2,_0x5dde1d,_0x42cf99,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(_0x1ba7b9){super(_0x1ba7b9),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x565b1d,_0x22c598,_0xd0bbd2,_0x24a1bf)=>{this['_model']['change'](()=>{for(const _0x2a7e38 of[..._0x24a1bf,..._0xd0bbd2])this['_model']['markers']['has'](_0x2a7e38)&&_0x1ba7b9['editing']['reconvertMarker'](_0x2a7e38);});}),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']=_0x1ba7b9['plugins']['get'](_0x181319),this['_suggestionsConversion']=_0x1ba7b9['plugins']['get'](_0x133a74),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x1ba7b9['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1ba7b9['config']['get']('trackChanges.trackFormatChanges'),_0x1ba7b9['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1ba7b9['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new TrackChangesCommand(_0x1ba7b9,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x278773=this['editor'];_0x278773['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x21af88,{writer:_0x42e5a7})=>{let _0x4ec091='suggestion:'+_0x21af88['getAttribute']('suggestion-type')+':'+_0x21af88['getAttribute']('id');return _0x21af88['getAttribute']('marker-count')&&(_0x4ec091+=':'+_0x21af88['getAttribute']('marker-count')),_0x42e5a7['createElement']('$marker',{'data-name':_0x4ec091});}}),_0x278773['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x278773['model']['document']['registerPostFixer'](_0x4e25d5=>{let _0x27bc4a=!0x1;const _0x17fcc8=Array['from'](_0x278773['model']['document']['differ']['getChangedMarkers']()),_0x29945d=new Set();for(const {name:_0x323bad,data:_0x31d5c2}of _0x17fcc8){const {group:_0x5d4c4d,type:_0x32a63f,subType:_0x3e535d,id:_0x5c85a5}=_0x368712(_0x323bad);if('suggestion'!==_0x5d4c4d)continue;const _0x45a4a5=_0x3e535d?'suggestion:'+_0x32a63f+':'+_0x3e535d+':'+_0x5c85a5:'suggestion:'+_0x32a63f+':'+_0x5c85a5,_0x165982=_0x278773['model']['markers']['getMarkersGroup'](_0x45a4a5),_0x29569d=_0x278773['model']['markers']['get'](_0x323bad),_0x17df3d=this['_suggestions']['get'](_0x5c85a5);if(null!=_0x31d5c2['newRange']){'formatInline'==_0x32a63f&&(_0x27bc4a=_0x27bc4a||Pt(_0x31d5c2['newRange'],_0x323bad,_0x4e25d5,_0x278773['model']['schema']));const _0x51c2cd='attribute'==_0x32a63f&&this['_suggestionsConversion']['isBlockAttribute'](Xt(_0x3e535d)),_0x163e02='attribute'==_0x32a63f&&this['_suggestionsConversion']['isInlineAttribute'](Xt(_0x3e535d));if(_0x31d5c2['newRange']['isCollapsed']||'$graveyard'==_0x31d5c2['newRange']['root']['rootName']||'formatBlock'==_0x32a63f&&!Ut(_0x31d5c2['newRange'])||_0x51c2cd&&!Ut(_0x31d5c2['newRange'])||_0x163e02&&Gt(_0x31d5c2['newRange'])||'deletion'==_0x32a63f&&Gt(_0x31d5c2['newRange'])||_0x29569d&&Ht(_0x29569d,_0x165982))_0x4e25d5['removeMarker'](_0x323bad),_0x27bc4a=!0x0;else{if(!_0x17df3d||!_0x17df3d['isInContent'])continue;if(_0x31d5c2['newRange']&&_0x31d5c2['oldRange']&&_0x31d5c2['newRange']['isEqual'](_0x31d5c2['oldRange']))continue;_0x29945d['add'](_0x17df3d);}}}return _0x29945d['size']>0x0&&(_0x27bc4a=!!this['_joinWithAdjacentSuggestions'](_0x29945d)||_0x27bc4a),_0x27bc4a;}),_0x278773['model']['document']['registerPostFixer'](_0x4bdc09=>{let _0x2f4da9=!0x1;for(const _0x5d2553 of _0x278773['model']['document']['differ']['getChanges']())if('insert'==_0x5d2553['type'])for(const _0x18bbb8 of this['_suggestions']['values']()){if(_0x18bbb8['isMultiRange']||!_0x18bbb8['isInContent'])continue;const _0x5801ff='formatBlock'==_0x18bbb8['type'],_0x4a4f7c=this['_getAttributeKey'](_0x18bbb8),_0x135f0f=_0x4a4f7c&&this['_suggestionsConversion']['isBlockAttribute'](_0x4a4f7c);if(!_0x5801ff&&!_0x135f0f)continue;const _0x3c497b=_0x18bbb8['getFirstRange']();if(_0x3c497b['start']['parent']!=_0x3c497b['end']['parent']&&!_0x3c497b['end']['isAtEnd']){const _0x39aa71=_0x278773['model']['createPositionAt'](_0x3c497b['start']['nodeAfter'],'end'),_0x4dcb1=_0x278773['model']['createRange'](_0x3c497b['start'],_0x39aa71);_0x4bdc09['updateMarker'](_0x18bbb8['getFirstMarker'](),{'range':_0x4dcb1}),_0x2f4da9=!0x0;}}return _0x2f4da9;}),_0x278773['model']['document']['registerPostFixer'](_0x5cb22f=>this['_processAttributeChanges'](_0x5cb22f)),_0x278773['model']['document']['registerPostFixer'](_0x4b46e2=>!_0x4b46e2['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4b46e2)),_0x278773['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x278773['model']['document']['on']('change:data',(_0x4a8bf8,_0x2bf7b7)=>{if(!_0x2bf7b7['isLocal']||_0x2bf7b7['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1c1c90=_0x278773['model']['document']['differ']['getChanges']();if(0x0==_0x1c1c90['length'])return;const _0x528d77=[],_0xebd2a8=_0x1c1c90['filter'](_0x5cca7c=>'attribute'==_0x5cca7c['type']),_0x226185=_0x1c1c90['filter'](_0x17b48f=>'insert'==_0x17b48f['type']&&'$text'!=_0x17b48f['name']);for(const _0x3955d0 of _0xebd2a8)this['_suggestionsConversion']['isRegisteredAttribute'](_0x3955d0['attributeKey'])&&_0x528d77['push']({'key':_0x3955d0['attributeKey'],'newValue':_0x3955d0['attributeNewValue'],'oldValue':_0x3955d0['attributeOldValue'],'range':$t(_0x3955d0['range'],_0x278773['model'])});for(const _0x41e43c of _0x226185){if('rename'!=_0x41e43c['action']&&'refresh'!=_0x41e43c['action'])continue;const _0x1d0d44=Vt(_0x41e43c['position']['nodeAfter'],_0x278773['model']),_0x146dc7=_0x41e43c['before'];'rename'==_0x41e43c['action']&&_0x528d77['push']({'key':Bt,'newValue':_0x41e43c['name'],'oldValue':_0x146dc7['name'],'range':_0x1d0d44});for(const [_0x58d5b6,_0x1e54fa]of _0x146dc7['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x58d5b6))continue;const _0x7f5c51=_0x41e43c['attributes']['get'](_0x58d5b6);_0x1e54fa!==_0x7f5c51&&_0x528d77['push']({'key':_0x58d5b6,'newValue':_0x7f5c51,'oldValue':_0x1e54fa,'range':_0x1d0d44});}for(const [_0x402b9d,_0x9906c9]of _0x41e43c['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x402b9d)&&(_0x146dc7['attributes']['has'](_0x402b9d)||_0x528d77['push']({'key':_0x402b9d,'newValue':_0x9906c9,'oldValue':null,'range':_0x1d0d44}));}0x0!=_0x528d77['length']&&_0x278773['model']['enqueueChange'](_0x2bf7b7,_0x5544da=>{const _0x48090a=_0x4681a7();for(const {range:_0x2130d2,key:_0x471db3,oldValue:_0x55b5b3,newValue:_0x1bf6d7}of _0x528d77)this['markAttributeChange'](_0x2130d2,_0x471db3,_0x55b5b3,_0x1bf6d7,{'groupId':_0x48090a});this['_reduceExistingSuggestions'](_0x5544da,_0x528d77);});},{'priority':'lowest'}),_0x278773['model']['markers']['on']('update:suggestion',(_0xd6119d,_0x2413a0,_0xdbe13b)=>{if(null==_0xdbe13b){const {id:_0x2bb3db}=_0x368712(_0x2413a0['name']),_0x2aa44c=this['_suggestions']['get'](_0x2bb3db);_0x2aa44c&&_0x2aa44c['addMarkerName'](_0x2413a0['name']);}}),_0x278773['model']['document']['on']('change:data',()=>{const _0x53eeb1=Array['from'](_0x278773['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2516ff=>'suggestion'===_0x368712(_0x2516ff['name'])['group']);if(0x0===_0x53eeb1['length'])return;_0x53eeb1['sort']((_0x263ce8,_0x21658b)=>{const _0x21240c=_0x263ce8['data']['oldRange'],_0x3124f4=_0x21658b['data']['oldRange'];return null===_0x21240c&&null===_0x3124f4?0x0:null===_0x21240c&&null!==_0x3124f4?-0x1:null!==_0x21240c&&null===_0x3124f4?0x1:_0x21240c['start']['isBefore'](_0x3124f4['start'])?-0x1:0x1;});const _0x469c09=new Set(),_0x13a092=new Set();for(const {name:_0x56013,data:_0xb7c82}of _0x53eeb1){const {id:_0x253bf9}=_0x368712(_0x56013);if(null===_0xb7c82['oldRange']){const _0x3f571c=this['_handleNewSuggestionMarker'](_0x56013);_0x13a092['add'](_0x3f571c);}else{const _0x4296a9=this['_suggestions']['get'](_0x253bf9);null!==_0xb7c82['newRange']||_0x4296a9['isInContent']?(_0x469c09['add'](_0x4296a9['head']),_0x13a092['add'](_0x4296a9)):this['_removeSuggestion'](_0x4296a9);}}_0x13a092['size']>0x0&&this['_refreshSuggestionsChain'](_0x13a092);for(const _0x31e9cf of _0x469c09)this['fire']('suggestionChanged',_0x31e9cf);}),_0x278773['model']['on']('applyOperation',(_0x25d9de,_0x433deb)=>{const _0x429a51=_0x433deb[0x0];if(!this['_suggestions']['size'])return;if(!_0x429a51['isDocumentOperation'])return;if(_0x429a51['batch']['isUndo']||!_0x429a51['batch']['isLocal'])return;let _0x56eaed,_0x477b59;switch(_0x429a51['type']){case'insert':_0x56eaed=_0x278773['model']['createPositionAt'](_0x429a51['position']),_0x477b59=_0x56eaed['getShiftedBy'](_0x429a51['howMany']);break;case'split':_0x56eaed=_0x278773['model']['createPositionAt'](_0x429a51['splitPosition']),_0x477b59=_0x278773['model']['createPositionAt'](_0x429a51['moveTargetPosition']);break;case'move':_0x56eaed=_0x278773['model']['createPositionAt'](_0x429a51['targetPosition']),_0x477b59=_0x56eaed['getShiftedBy'](_0x429a51['howMany']);break;default:return;}const _0x51745d=_0x278773['model']['createRange'](_0x56eaed,_0x477b59);_0x278773['model']['change'](()=>{for(const {suggestion:_0x348b29,meta:_0x11d93b}of this['_findSuggestions'](_0x51745d)){if(_0x348b29['isMultiRange'])continue;if('formatInline'==_0x348b29['type'])continue;const _0x303fa1=this['_getAttributeKey'](_0x348b29);if(_0x303fa1&&this['_suggestionsConversion']['isBlockAttribute'](_0x303fa1)&&'split'!=_0x429a51['type'])continue;const _0x498f66=_0x348b29['data']&&_0x348b29['data']['multipleBlocks'];('formatBlock'!=_0x348b29['type']||'split'==_0x429a51['type']&&!_0x498f66)&&(_0x11d93b['containsRangeInObject']||'insertion'==_0x348b29['type']&&_0x11d93b['isOwn']||_0x348b29['getFirstRange']()['containsRange'](_0x51745d)&&this['_breakSuggestionMarker'](_0x348b29,_0x56eaed,_0x477b59));}});},{'priority':'lowest'}),_0x278773['model']['on']('deleteContent',(_0x39b97d,_0x550c6a)=>{const _0x12cdda=_0x550c6a[0x0],_0xac6169=_0x550c6a[0x1];if(_0xac6169&&_0xac6169['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x12cdda['isCollapsed'])return;const _0x3be5d2=_0x278773['model']['schema'],{start:_0x1a1aa5,end:_0x2d497a}=_0x12cdda['getFirstRange'](),_0x261113=_0x1a1aa5['nodeAfter']&&_0x3be5d2['isLimit'](_0x1a1aa5['nodeAfter'])?null:_0x3be5d2['getNearestSelectionRange'](_0x1a1aa5,'forward'),_0x149c3f=_0x2d497a['nodeBefore']&&_0x3be5d2['isLimit'](_0x2d497a['nodeBefore'])?null:_0x3be5d2['getNearestSelectionRange'](_0x2d497a,'backward'),_0x46fb95=_0x278773['model']['createRange'](_0x261113?_0x261113['start']:_0x1a1aa5,_0x149c3f?_0x149c3f['end']:_0x2d497a);_0x278773['model']['change'](_0x16cd91=>{this['markDeletion'](_0x46fb95);const _0x4d2b3e=_0x278773['model']['schema']['getNearestSelectionRange'](_0x46fb95['start']);_0x12cdda['is']('documentSelection')?_0x16cd91['setSelection'](_0x4d2b3e):_0x12cdda['setTo'](_0x4d2b3e);}),_0x39b97d['stop']();},{'priority':_0x3029c3['normal']+0xa}),_0x278773['model']['on']('insertContent',(_0x3c3dfe,_0x9d4b37)=>{const _0x404af8=_0x9d4b37[_0x9d4b37['length']-0x1];_0x404af8&&_0x404af8['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x278773['model']['change'](()=>{let _0x4b5205=_0x278773['model']['insertContent'](_0x9d4b37[0x0],_0x9d4b37[0x1],_0x9d4b37[0x2],{'forceDefaultExecution':!0x0});if(!_0x4b5205)return;_0x3c3dfe['return']=_0x4b5205['clone']();const _0x42d102=_0x4b5205['end']['nodeBefore'],_0x3eb6c6=_0x278773['model']['schema'];_0x42d102&&_0x3eb6c6['isBlock'](_0x42d102)&&!_0x3eb6c6['isObject'](_0x42d102)&&(_0x4b5205=_0x278773['model']['createRange'](_0x4b5205['start'],_0x278773['model']['createPositionAt'](_0x42d102,'end'))),this['markInsertion'](_0x4b5205);}),_0x3c3dfe['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3dcf85=new AcceptSuggestionCommand(_0x278773,this['_suggestions']);_0x278773['commands']['add']('acceptSuggestion',_0x3dcf85),this['enableCommand']('acceptSuggestion');const _0x244e55=new DiscardSuggestionCommand(_0x278773,this['_suggestions']);_0x278773['commands']['add']('discardSuggestion',_0x244e55),this['enableCommand']('discardSuggestion'),_0x278773['commands']['add']('acceptAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x278773,_0x3dcf85,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x278773['commands']['add']('discardAllSuggestions',new ExecuteOnAllSuggestionsCommand(_0x278773,_0x244e55,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x278773['commands']['add']('acceptSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x278773,_0x3dcf85,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x278773['commands']['add']('discardSelectedSuggestions',new ExecuteOnSelectedSuggestionsCommand(_0x278773,_0x244e55,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x540c85=_0x278773['plugins']['get'](_0x181319);this['listenTo'](_0x540c85,'addComment',(_0x2d94f7,{threadId:_0x45c735})=>{const _0x365e03=this['_suggestions']['get'](_0x45c735);_0x365e03&&_0x365e03['commentThread']&&0x1===_0x365e03['commentThread']['length']&&this['_updateSuggestionData'](_0x45c735,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x540c85,'removeComment',(_0x3b9290,{threadId:_0x43054c})=>{const _0xea3948=this['_suggestions']['get'](_0x43054c);_0xea3948&&_0xea3948['commentThread']&&!_0xea3948['commentThread']['length']&&this['_updateSuggestionData'](_0x43054c,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x5c9058){const _0x363bc6=_0x60a0df([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]),_0x2f9c77=0x3d8d0df,_0x1d87f1=0x3df5b57^_0x2f9c77,_0x12097a=window[_0x60a0df([0x44,0x61,0x74,0x65])][_0x60a0df([0x6e,0x6f,0x77])](),_0x2dc9de=_0x5c9058[_0x60a0df([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4d83fd=new window[(_0x60a0df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d43f6=>{_0x2dc9de[_0x60a0df([0x6f,0x6e,0x63,0x65])](_0x60a0df([0x72,0x65,0x61,0x64,0x79]),_0x5d43f6);}),_0x175525={[_0x60a0df([0x6b,0x74,0x79])]:_0x60a0df([0x45,0x43]),[_0x60a0df([0x75,0x73,0x65])]:_0x60a0df([0x73,0x69,0x67]),[_0x60a0df([0x63,0x72,0x76])]:_0x60a0df([0x50,0x2d,0x32,0x35,0x36]),[_0x60a0df([0x78])]:_0x60a0df([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]),[_0x60a0df([0x79])]:_0x60a0df([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]),[_0x60a0df([0x61,0x6c,0x67])]:_0x60a0df([0x45,0x53,0x32,0x35,0x36])},_0xb92731=_0x2dc9de[_0x60a0df([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x60a0df([0x67,0x65,0x74])](_0x60a0df([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2349a3(){let _0x2ac91e,_0x310d76=null,_0x4d182c=null;try{if(_0xb92731==_0x60a0df([0x47,0x50,0x4c]))return _0x60a0df([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2ac91e=_0x387ae4(),!_0x2ac91e)return _0x60a0df([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2ac91e[_0x60a0df([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4d182c=_0x9076a4(_0x2ac91e[_0x60a0df([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2ac91e[_0x60a0df([0x6a,0x74,0x69])])),await _0x3669ce()?_0x587888()?_0x2ee112()?_0x60a0df([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4132b6()?(_0x2ac91e[_0x60a0df([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x60a0df([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x310d76=_0x351e38(_0x60a0df([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x24bf72()):_0x60a0df([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x60a0df([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x60a0df([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x60a0df([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2ee112(){const _0x591380=[_0x60a0df([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x60a0df([0x74,0x72,0x69,0x61,0x6c])][_0x60a0df([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ac91e[_0x60a0df([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x12097a/0x3e8:0xe10*_0x1d87f1;return _0x2ac91e[_0x60a0df([0x65,0x78,0x70])]<_0x591380;}function _0x587888(){const _0x4c6de6=_0x2ac91e[_0x60a0df([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4c6de6)return!0x1;if(_0x4c6de6[_0x60a0df([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x60a0df([0x2a])))return!0x0;if(_0x4c6de6[_0x60a0df([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x60a0df([0x54,0x43])))return!0x0;if(_0x4c6de6[_0x60a0df([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x60a0df([0x52,0x54,0x43]))){if(_0x29dda8())return!0x0;if(_0x413699()||_0x3327b9())return!0x0;}return!0x1;}function _0x4132b6(){const _0x4541df=_0x2ac91e[_0x60a0df([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4541df||0x0==_0x4541df[_0x60a0df([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3062db}=new URL(window[_0x60a0df([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4541df[_0x60a0df([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3062db))return!0x0;const _0x61ee88=_0x3062db[_0x60a0df([0x73,0x70,0x6c,0x69,0x74])](_0x60a0df([0x2e]));return _0x4541df[_0x60a0df([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x98a509=>_0x98a509[_0x60a0df([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x60a0df([0x2a])))[_0x60a0df([0x6d,0x61,0x70])](_0x1ea765=>_0x1ea765[_0x60a0df([0x73,0x70,0x6c,0x69,0x74])](_0x60a0df([0x2e])))[_0x60a0df([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5011a1=>_0x5011a1[_0x60a0df([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x61ee88[_0x60a0df([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x60a0df([0x6d,0x61,0x70])](_0x2ebeb7=>Array(_0x61ee88[_0x60a0df([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2ebeb7[_0x60a0df([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x60a0df([0x66,0x69,0x6c,0x6c])](_0x2ebeb7[0x0]===_0x60a0df([0x2a])?_0x60a0df([0x2a]):'')[_0x60a0df([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2ebeb7))[_0x60a0df([0x73,0x6f,0x6d,0x65])](_0xe12c7a=>_0x61ee88[_0x60a0df([0x65,0x76,0x65,0x72,0x79])]((_0x16936a,_0xe8b669)=>_0xe12c7a[_0xe8b669]===_0x16936a||_0xe12c7a[_0xe8b669]===_0x60a0df([0x2a])));}function _0x24bf72(){return _0x310d76&&_0x4d182c?new window[(_0x60a0df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x32e1f4,_0x5ee2a2)=>{_0x310d76[_0x60a0df([0x74,0x68,0x65,0x6e])](_0x32e1f4,_0x5ee2a2),_0x4d182c[_0x60a0df([0x74,0x68,0x65,0x6e])](_0x31d3d2=>{_0x31d3d2!=_0x60a0df([0x56,0x61,0x6c,0x69,0x64])&&_0x32e1f4(_0x31d3d2);},_0x5ee2a2);}):_0x310d76||_0x4d182c||_0x60a0df([0x56,0x61,0x6c,0x69,0x64]);}}function _0x9076a4(_0x41841b,_0x284662){return new window[(_0x60a0df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x835918=>{if(_0x47705c())return _0x835918(_0x60a0df([0x56,0x61,0x6c,0x69,0x64]));_0x457c20(),_0x2dc9de[_0x60a0df([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x60a0df([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x376ea6=!0x1;const _0x383c5f=_0x4681a7();function _0x18b819(_0x40215e){return!!_0x40215e&&(typeof _0x40215e===_0x60a0df([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x40215e===_0x60a0df([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x40215e[_0x60a0df([0x74,0x68,0x65,0x6e])]===_0x60a0df([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x40215e[_0x60a0df([0x63,0x61,0x74,0x63,0x68])]===_0x60a0df([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x232680(_0x2c1ce9){_0x580501(_0x2c1ce9)[_0x60a0df([0x74,0x68,0x65,0x6e])](_0x4e5321=>{if(!_0x4e5321||_0x4e5321[_0x60a0df([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x60a0df([0x6f,0x6b]))return _0x60a0df([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1ad8c3(_0x124c46(_0x383c5f+_0x284662))!=_0x4e5321[_0x60a0df([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x60a0df([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x60a0df([0x56,0x61,0x6c,0x69,0x64]);})[_0x60a0df([0x74,0x68,0x65,0x6e])](_0x53f387=>(_0x2b450c(),_0x53f387),()=>{const _0x3a8fdc=_0x2d6b61();return null==_0x3a8fdc?(_0x2b450c(),_0x60a0df([0x56,0x61,0x6c,0x69,0x64])):_0x60a0df(_0x12097a-_0x3a8fdc>(0x27d454df^_0x2f9c77)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x60a0df([0x74,0x68,0x65,0x6e])](_0x835918)[_0x60a0df([0x63,0x61,0x74,0x63,0x68])](()=>{_0x835918(_0x60a0df([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1a32da=0x3ee3e5f^_0x2f9c77;function _0x2b450c(){const _0x48ddc1=_0x60a0df([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ad8c3(_0x124c46(_0x41841b)),_0x3736ac=_0x21f718(_0x1ad8c3(window[_0x60a0df([0x4d,0x61,0x74,0x68])][_0x60a0df([0x63,0x65,0x69,0x6c])](_0x12097a/_0x1a32da)));window[_0x60a0df([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x60a0df([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48ddc1,_0x3736ac);}function _0x2d6b61(){const _0x293b96=_0x60a0df([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ad8c3(_0x124c46(_0x41841b)),_0x2f84bb=window[_0x60a0df([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x60a0df([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x293b96);return _0x2f84bb?window[_0x60a0df([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21f718(_0x2f84bb),0x10)*_0x1a32da:null;}function _0x580501(_0x1bf2dd){return new window[(_0x60a0df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x577a22,_0x32fe75)=>{_0x1bf2dd[_0x60a0df([0x74,0x68,0x65,0x6e])](_0x577a22,_0x32fe75),window[_0x60a0df([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x32fe75,0x3d9041f^_0x2f9c77);});}}_0x2dc9de[_0x60a0df([0x6f,0x6e])](_0x60a0df([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x28fe80,_0x490f55)=>{if(_0x490f55[0x0]!=_0x41841b)return _0x835918(_0x60a0df([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x490f55[0x1]={..._0x490f55[0x1],[_0x60a0df([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x383c5f};},{[_0x60a0df([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x60a0df([0x68,0x69,0x67,0x68])}),_0x2dc9de[_0x60a0df([0x6f,0x6e])](_0x60a0df([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4a763b=>{_0x18b819(_0x4a763b[_0x60a0df([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x376ea6=!0x0,_0x232680(_0x4a763b[_0x60a0df([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x60a0df([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x60a0df([0x6c,0x6f,0x77])}),_0x4d83fd[_0x60a0df([0x74,0x68,0x65,0x6e])](()=>{_0x376ea6||_0x835918(_0x60a0df([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x47705c(){return _0x2dc9de[_0x60a0df([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x60a0df([0x76,0x69,0x65,0x77])][_0x60a0df([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x60a0df([0x61,0x75,0x74,0x6f]);}function _0x457c20(){_0x2dc9de[_0x60a0df([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x60a0df([0x76,0x69,0x65,0x77])][_0x60a0df([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x60a0df([0x61,0x75,0x74,0x6f]);}}function _0x351e38(_0x2b084c){const _0x12a004=[new window[(_0x60a0df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x435776=>setTimeout(_0x435776,0x3d1ee13^_0x2f9c77)),_0x4d83fd[_0x60a0df([0x74,0x68,0x65,0x6e])](()=>new window[(_0x60a0df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x447bb2=>{let _0x4f0347=0x0;_0x2dc9de[_0x60a0df([0x6d,0x6f,0x64,0x65,0x6c])][_0x60a0df([0x6f,0x6e])](_0x60a0df([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x13bc26,_0x246603)=>{_0x246603[0x0][_0x60a0df([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4f0347++,_0x4f0347==(0x3d8d537^_0x2f9c77)&&(_0x447bb2(),_0x13bc26[_0x60a0df([0x6f,0x66,0x66])]());});}))];return window[_0x60a0df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x60a0df([0x72,0x61,0x63,0x65])](_0x12a004)[_0x60a0df([0x74,0x68,0x65,0x6e])](()=>_0x2b084c);}async function _0x50051c(){await _0x4d83fd,_0x2dc9de[_0x60a0df([0x6d,0x6f,0x64,0x65,0x6c])][_0x60a0df([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5c4a61,_0x2dc9de[_0x60a0df([0x6d,0x6f,0x64,0x65,0x6c])][_0x60a0df([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5c4a61,_0x2dc9de[_0x60a0df([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x60a0df([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x29dda8(){return _0x2ae574(_0x60a0df([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xae1836(_0x60a0df([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x60a0df([0x73,0x74,0x61,0x74,0x65])]==_0x60a0df([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x413699(){return _0x2ae574(_0x60a0df([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 _0x3327b9(){return _0x2ae574(_0x60a0df([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x47e173(_0x22e47f){const _0x5b3599=_0x13b7c2();_0x2dc9de[_0x5b3599]=_0x60a0df([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x22e47f,_0x22e47f!=_0x60a0df([0x56,0x61,0x6c,0x69,0x64])&&_0x50051c();}function _0x13b7c2(){const _0x1c830c=window[_0x60a0df([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x60a0df([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x60a0df([0x6e,0x6f,0x77])]())[_0x60a0df([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x60a0df([0x2e]),'');let _0x1ebfa8=_0x60a0df([0x52]);for(let _0x375e15=0x0;_0x375e15<_0x1c830c[_0x60a0df([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x375e15+=0x2){let _0x1caa7b=window[_0x60a0df([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1c830c[_0x60a0df([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x375e15,_0x375e15+0x2));_0x1caa7b>=_0x363bc6[_0x60a0df([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1caa7b-=_0x363bc6[_0x60a0df([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1ebfa8+=_0x363bc6[_0x1caa7b];}return _0x1ebfa8;}function _0x387ae4(){const _0xe35911=_0xb92731[_0x60a0df([0x73,0x70,0x6c,0x69,0x74])](_0x60a0df([0x2e]));if(0x3!=_0xe35911[_0x60a0df([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4fd149(_0xe35911[0x1]);function _0x4fd149(_0xf10473){const _0x255685=_0x2397de(_0xf10473);return _0x255685&&_0x3b6ed5()?_0x255685:null;function _0x3b6ed5(){const _0x280d9e=_0x255685[_0x60a0df([0x6a,0x74,0x69])],_0xf996d6=window[_0x60a0df([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x280d9e[_0x60a0df([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x280d9e[_0x60a0df([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xd2b3d9={..._0x255685,[_0x60a0df([0x6a,0x74,0x69])]:_0x280d9e[_0x60a0df([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x280d9e[_0x60a0df([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xd2b3d9[_0x60a0df([0x76,0x63])],_0x124c46(_0xd2b3d9)==_0xf996d6;}}}async function _0x3669ce(){let _0x22bbf5=!0x0;try{const _0x58f7f3=_0xb92731[_0x60a0df([0x73,0x70,0x6c,0x69,0x74])](_0x60a0df([0x2e])),[_0x2be054,_0x220325,_0x249407]=_0x58f7f3;return _0x2ca44f(_0x2be054),await _0x4ecd40(_0x2be054,_0x220325,_0x249407),_0x22bbf5;}catch{return!0x1;}function _0x2ca44f(_0x5363df){const _0x1b83b8=_0x2397de(_0x5363df);_0x1b83b8&&_0x1b83b8[_0x60a0df([0x61,0x6c,0x67])]==_0x60a0df([0x45,0x53,0x32,0x35,0x36])||(_0x22bbf5=!0x1);}async function _0x4ecd40(_0x4445e0,_0x543fc9,_0x23e730){const _0x15a506=window[_0x60a0df([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x60a0df([0x66,0x72,0x6f,0x6d])](_0x1c9569(_0x23e730),_0x3f1ce6=>_0x3f1ce6[_0x60a0df([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3805c8=new window[(_0x60a0df([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x60a0df([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4445e0+_0x60a0df([0x2e])+_0x543fc9),_0x5ba9b7=window[_0x60a0df([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x60a0df([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5ba9b7)return;const _0x11d75d=await _0x5ba9b7[_0x60a0df([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x60a0df([0x6a,0x77,0x6b]),_0x175525,{[_0x60a0df([0x6e,0x61,0x6d,0x65])]:_0x60a0df([0x45,0x43,0x44,0x53,0x41]),[_0x60a0df([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x60a0df([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x60a0df([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5ba9b7[_0x60a0df([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x60a0df([0x6e,0x61,0x6d,0x65])]:_0x60a0df([0x45,0x43,0x44,0x53,0x41]),[_0x60a0df([0x68,0x61,0x73,0x68])]:{[_0x60a0df([0x6e,0x61,0x6d,0x65])]:_0x60a0df([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x11d75d,_0x15a506,_0x3805c8)||(_0x22bbf5=!0x1);}}function _0x2397de(_0x1be796){return _0x1be796[_0x60a0df([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x60a0df([0x65,0x79]))?JSON[_0x60a0df([0x70,0x61,0x72,0x73,0x65])](_0x1c9569(_0x1be796)):null;}function _0x1c9569(_0x652126){return window[_0x60a0df([0x61,0x74,0x6f,0x62])](_0x652126[_0x60a0df([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x60a0df([0x2b]))[_0x60a0df([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x60a0df([0x2f])));}function _0x124c46(_0x22b54c){let _0x179139=0x1505;function _0x3ec7a7(_0x576b94){for(let _0x4bb30b=0x0;_0x4bb30b<_0x576b94[_0x60a0df([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4bb30b++){const _0x247f41=_0x576b94[_0x60a0df([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4bb30b);_0x179139=(_0x179139<<0x5)+_0x179139+_0x247f41,_0x179139&=_0x179139;}}function _0x24319c(_0x233621){Array[_0x60a0df([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x233621)?_0x233621[_0x60a0df([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x24319c):_0x233621&&typeof _0x233621==_0x60a0df([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x60a0df([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x233621)[_0x60a0df([0x73,0x6f,0x72,0x74])]()[_0x60a0df([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x51c22b,_0x181424])=>{_0x3ec7a7(_0x51c22b),_0x24319c(_0x181424);}):_0x3ec7a7(window[_0x60a0df([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x233621));}return _0x24319c(_0x22b54c),_0x179139>>>0x0;}function _0x1ad8c3(_0x5d36a9){return _0x5d36a9[_0x60a0df([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x60a0df([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x60a0df([0x30]));}function _0x21f718(_0x2fee64){return _0x2fee64[_0x60a0df([0x73,0x70,0x6c,0x69,0x74])]('')[_0x60a0df([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x60a0df([0x6a,0x6f,0x69,0x6e])]('');}function _0x2ae574(_0x4e5ab5){return _0x2dc9de[_0x60a0df([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x60a0df([0x68,0x61,0x73])](_0x4e5ab5);}function _0xae1836(_0x503eda){return _0x2dc9de[_0x60a0df([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x60a0df([0x67,0x65,0x74])](_0x503eda);}function _0x5c4a61(){}function _0x60a0df(_0x325914){return _0x325914['map'](_0x481117=>String['fromCharCode'](_0x481117))['join']('');}_0x47e173(await _0x2349a3());}(this);}set['adapter'](_0x59de9a){if(this['_adapter'])throw new _0x180e5c('track-changes-adapter-already-set',this);this['_adapter']=_0x59de9a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1c9261=!0x1,toJSON:_0x1b5591=!0x1}={}){const _0x4cf5cd=[];for(const _0x31802a of this['_suggestions']['values']())_0x1c9261&&!_0x31802a['isInContent']||_0x4cf5cd['push'](_0x31802a);return _0x1b5591?_0x4cf5cd['map'](_0x50d601=>_0x50d601['toJSON']()):_0x4cf5cd;}['getSuggestion'](_0x36dc78){const _0x1e6af2=this['_suggestions']['get'](_0x36dc78);if(!_0x1e6af2)throw new _0x180e5c('track-changes-suggestion-not-found',this);return _0x1e6af2;}['hasSuggestion'](_0x5c47fc){return this['_suggestions']['has'](_0x5c47fc);}['addSuggestionData'](_0x409ba6){const {authorId:_0x4ca103,id:_0x306909,originalSuggestionId:_0x325a52,attributes:_0xf36c5b}=_0x409ba6,[_0x488be6,_0x3f4e31]=_0x409ba6['type']['split'](':'),_0xf785d2=this['_suggestions']['get'](_0x306909)||this['_createSuggestion'](_0x488be6,_0x3f4e31,_0x306909,_0x4ca103,_0xf36c5b,_0x325a52);if(this['_addThreadToSuggestion'](_0xf785d2),this['_checkSuggestionCorrectness'](_0xf785d2,_0x488be6,_0x3f4e31||null,_0x4ca103),_0xf785d2['createdAt']=_0x409ba6['createdAt'],_0xf785d2['_isDataLoaded']=!0x0,_0xf36c5b&&_0xf36c5b['@external']){const _0x37e4ca=_0xf36c5b['@external'],_0x3c2588=this['_getExternalAuthor'](_0x37e4ca['authorName']);_0xf785d2['authoredAt']=_0x37e4ca['createdAt'],_0xf785d2['author']=_0x3c2588,_0xf785d2['isExternal']=!0x0;}else _0xf785d2['authoredAt']=_0x409ba6['createdAt'];switch(_0x409ba6['data']&&(_0xf785d2['data']=_0x409ba6['data']),_0x409ba6['attributes']&&(_0xf785d2['attributes']=_0x409ba6['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xf785d2['_saved']=!0x0),this['_suggestionState']['get'](_0xf785d2)){case'notReady':this['_suggestionState']['set'](_0xf785d2,'dataReady');break;case'markerReady':_0xf785d2['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xf785d2])),this['_refreshSuggestionsChain'](new Set([_0xf785d2])),this['_suggestionState']['set'](_0xf785d2,'ready'),this['fire']('suggestionLoaded',_0xf785d2)):this['_suggestionState']['set'](_0xf785d2,'removed');}return _0xf785d2;}['acceptSuggestion'](_0x546837){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2bb2e2 of _0x546837['getAllAdjacentSuggestions']())_0x2bb2e2['accept']();});});}['discardSuggestion'](_0x3de58c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5ddd71 of _0x3de58c['getAllAdjacentSuggestions']())_0x5ddd71['discard']();});});}['enableCommand'](_0x5c0739,_0x537212){const _0x438ff3=this['editor']['commands']['get'](_0x5c0739);if(!_0x438ff3)throw new _0x180e5c('track-changes-command-not-found',this,{'commandName':_0x5c0739});if(this['_enabledCommands']['has'](_0x438ff3))throw new _0x180e5c('track-changes-enable-command-twice',this,{'commandName':_0x5c0739});this['_enabledCommands']['add'](_0x438ff3),_0x537212&&_0x438ff3['on']('execute',(_0x18b13d,_0x4e376b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4e376b['length']>0x0&&_0x4e376b[_0x4e376b['length']-0x1]&&_0x4e376b[_0x4e376b['length']-0x1]['forceDefaultExecution']?_0x4e376b['pop']():(_0x18b13d['return']=_0x537212((..._0x1d6f06)=>_0x438ff3['execute'](..._0x1d6f06,{'forceDefaultExecution':!0x0}),..._0x4e376b),_0x18b13d['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x7dabdc){let _0x34e8c4,_0x4dc722;const _0x5a169b=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x34e8c4=_0x7dabdc();}catch(_0x1d6017){_0x4dc722=_0x1d6017;}return _0x5a169b||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4dc722&&_0x180e5c['rethrowUnexpectedError'](_0x4dc722,this),_0x34e8c4;}['markInsertion'](_0x1c5d77,_0x2721fa=null,_0xfca867={}){if(_0x1c5d77['isCollapsed'])return null;const _0x914e58=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0xfca867['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x341cbd,meta:_0x276f02}of this['_findSuggestions'](_0x1c5d77,'insertion'))if(_0x276f02['isOwn']){if(!_0x276f02['isNextTo']){if(_0x276f02['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x341cbd,_0xfca867))continue;return _0x341cbd;}if(zt(_0x341cbd,_0xfca867))return _0x341cbd;this['_breakSuggestionMarker'](_0x341cbd,_0x1c5d77['start'],_0x1c5d77['end']);break;}if(_0x2721fa==_0x341cbd['subType']&&zt(_0x341cbd,_0xfca867)){const _0x268175=_0x341cbd['getFirstRange']();return _0x268175['start']['isEqual'](_0x1c5d77['end'])?this['_setSuggestionRange'](_0x341cbd,this['_model']['createRange'](_0x1c5d77['start'],_0x268175['end'])):this['_setSuggestionRange'](_0x341cbd,this['_model']['createRange'](_0x268175['start'],_0x1c5d77['end'])),_0x341cbd;}}const _0x29afb6=_0x4681a7(),_0x58cfcb=_0x914e58['id'],_0x432cfe=_0x2721fa?'insertion:'+_0x2721fa:'insertion',_0x267375=this['_setSuggestionData']({'id':_0x29afb6,'type':_0x432cfe,'createdAt':new Date(),'authorId':_0x58cfcb,'attributes':_0xfca867});return this['_addSuggestionMarker'](_0x432cfe,_0x29afb6,_0x58cfcb,_0x1c5d77),_0x267375;}['markMultiRangeInsertion'](_0x821e42,_0x6a02c7='multi',_0x5bf911={}){const _0x54cc9f=this['editor']['plugins']['get']('Users')['me'],_0x36d5ac=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x6a02c7,'join');this['_trackingSessionId']&&(_0x5bf911['trackingSessionId']=this['_trackingSessionId']);for(const _0x4e816f of this['getSuggestions']())if(_0x4e816f['author']['id']==_0x54cc9f['id']&&'insertion'==_0x4e816f['type']&&_0x4e816f['subType']==_0x6a02c7&&zt(_0x4e816f,_0x5bf911)&&(_0x36d5ac(_0x4e816f['getRanges'](),_0x821e42)||_0x36d5ac(_0x821e42,_0x4e816f['getRanges']()))){for(const _0x14bde3 of _0x821e42)_0x4e816f['addRange'](_0x14bde3);return _0x4e816f;}for(const {suggestion:_0xdc3641,meta:_0x2d71c6}of this['_findSuggestions'](_0x821e42,'insertion')){if(!_0x2d71c6['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2d71c6['containsRangeInObject'])continue;if(!zt(_0xdc3641,_0x5bf911))continue;let _0x53d3a5=!0x0;for(const _0x312751 of _0xdc3641['getRanges']())for(const _0x2657ec of _0x821e42)if(!_0x312751['containsRange'](_0x2657ec)){_0x53d3a5=!0x1;break;}if(_0x53d3a5)return _0xdc3641;}const _0x20aa1b=_0x4681a7(),_0x54a4e0=_0x54cc9f['id'],_0x37f4d8='insertion:'+_0x6a02c7,_0x332041=this['_setSuggestionData']({'id':_0x20aa1b,'type':_0x37f4d8,'createdAt':new Date(),'authorId':_0x54a4e0,'attributes':_0x5bf911});for(const _0x27bc66 of _0x821e42)this['_addSuggestionMarker'](_0x37f4d8,_0x20aa1b,_0x54a4e0,_0x27bc66,Suggestion['getMultiRangeId']());return _0x332041;}['markInlineFormat'](_0x28dd97,_0x185507,_0x4b55d9=null,_0x3c4e9e={}){if(_0x4b55d9=_0x4b55d9||xt(_0x185507),_0x28dd97['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x3c4e9e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4ff7a0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4b55d9,'accept');return this['forceDefaultExecution'](()=>_0x4ff7a0([_0x28dd97],_0x185507,_0x3c4e9e)),null;}const _0x2b152b=this['editor']['plugins']['get']('Users')['me'],_0x17defc=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4150f5,meta:_0x55c04e}of this['_findSuggestions'](_0x28dd97,'insertion'))_0x55c04e['isOwn']&&!_0x55c04e['isInsideObject']&&_0x17defc['push'](..._0x4150f5['getRanges']());}const _0x2f2f06=function(_0x3de8bd,_0x3ad2b5){const _0x35ac65=[];for(const _0x24f963 of _0x3ad2b5){const _0x42e9d8=_0x3de8bd['getIntersection'](_0x24f963);_0x42e9d8&&_0x35ac65['push'](_0x42e9d8);}return _0x35ac65;}(_0x28dd97,_0x17defc),_0xed74d7=function(_0xd663fc,_0x488de5){const _0x4fafc1=[_0xd663fc];for(const _0x289a9c of _0x488de5){let _0x2b875e=0x0;for(;_0x2b875e<_0x4fafc1['length'];){const _0x3863d2=_0x4fafc1[_0x2b875e]['getDifference'](_0x289a9c);_0x4fafc1['splice'](_0x2b875e,0x1,..._0x3863d2),_0x2b875e+=_0x3863d2['length'];}}return _0x4fafc1;}(_0x28dd97,_0x17defc);_0x2f2f06['length']&&this['_model']['change'](()=>{for(const _0xe703b1 of _0x2f2f06){const _0x2084a5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4b55d9,'accept');this['forceDefaultExecution'](()=>_0x2084a5([_0xe703b1],_0x185507,_0x3c4e9e));}});for(const _0x59a185 of _0xed74d7){let _0x4cb0e3=null,_0x1c3628=_0x59a185['start'],_0x4b030a=_0x59a185['end'];for(const {suggestion:_0x2b8c57,meta:_0x29d63a}of this['_findSuggestions'](_0x59a185,'formatInline')){if(!_0x29d63a['isOwn'])continue;if(_0x2b8c57['subType']!=_0x4b55d9)continue;if(!zt(_0x2b8c57,_0x3c4e9e))continue;const _0x4360d1=_0x2b8c57['getFirstRange']();if(_0x4360d1['containsRange'](_0x59a185,!0x0))return null;_0x1c3628=_0x1c3628['isBefore'](_0x4360d1['start'])?_0x1c3628:_0x4360d1['start'],_0x4b030a=_0x4b030a['isAfter'](_0x4360d1['end'])?_0x4b030a:_0x4360d1['end'],_0x4cb0e3?_0x4360d1['start']['isBefore'](_0x4cb0e3['getFirstRange']()['start'])?(_0x4cb0e3['removeMarkers'](),_0x4cb0e3=_0x2b8c57):_0x2b8c57['removeMarkers']():_0x4cb0e3=_0x2b8c57;}const _0x161cc0=this['_model']['createRange'](_0x1c3628,_0x4b030a);if(_0x4cb0e3)this['_setSuggestionRange'](_0x4cb0e3,_0x161cc0);else{const _0x1c3b1d=_0x4681a7(),_0x21cc3a=_0x2b152b['id'];this['_setSuggestionData']({'id':_0x1c3b1d,'type':'formatInline:'+_0x4b55d9,'data':_0x185507,'createdAt':new Date(),'authorId':_0x21cc3a,'attributes':_0x3c4e9e}),this['_addSuggestionMarker']('formatInline:'+_0x4b55d9,_0x1c3b1d,_0x21cc3a,_0x161cc0);}}return null;}['markBlockFormat'](_0x39f19a,_0x589f0f,_0x41583a=[],_0x4fb2e8=null,_0x4d9054={}){_0x589f0f['formatGroupId']||(_0x589f0f['formatGroupId']=_0x589f0f['commandName']),_0x589f0f['multipleBlocks']=_0x39f19a['is']('range'),_0x4fb2e8=_0x4fb2e8||xt(_0x589f0f);const _0x192b20=_0x41583a['map'](_0x45e3a5=>Vt(_0x45e3a5,this['_model'])),_0x3705c4=_0x39f19a['is']('range')?_0x39f19a:Vt(_0x39f19a,this['_model']);if(this['_trackingSessionId']&&(_0x4d9054['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x277b3a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4fb2e8,'accept');return this['forceDefaultExecution'](()=>_0x277b3a([_0x3705c4],_0x589f0f,_0x4d9054)),null;}_0x192b20['push'](_0x3705c4);let _0x352a07=!0x0;for(const _0x23808c of _0x192b20)if(!this['_rangeIsInLocalUserInsertion'](_0x23808c)){_0x352a07=!0x1;break;}if(_0x352a07&&'always'!==this['_trackFormatChanges']){const _0x459d0e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4fb2e8,'accept');return this['forceDefaultExecution'](()=>_0x459d0e([_0x3705c4],_0x589f0f,_0x4d9054)),null;}let _0x194d33=null,_0x232398=_0x3705c4['start'],_0x20035f=_0x3705c4['end'];for(const {suggestion:_0x50dfe3,meta:_0x49f8fd}of this['_findSuggestions'](_0x3705c4,'formatBlock')){if(!_0x49f8fd['isOwn'])continue;if(_0x49f8fd['isNextTo']||_0x49f8fd['containsRangeInObject']||_0x49f8fd['isInsideObject'])continue;if(_0x50dfe3['data']['formatGroupId']!=_0x589f0f['formatGroupId'])continue;if(!zt(_0x50dfe3,_0x4d9054))continue;const _0x2e3d29=_0x50dfe3['getFirstRange']();if(_0x50dfe3['subType']==_0x4fb2e8){if(_0x2e3d29['containsRange'](_0x3705c4,!0x0))return null;_0x232398=_0x232398['isBefore'](_0x2e3d29['start'])?_0x232398:_0x2e3d29['start'],_0x20035f=_0x20035f['isAfter'](_0x2e3d29['end'])?_0x20035f:_0x2e3d29['end'],_0x194d33?_0x2e3d29['start']['isBefore'](_0x194d33['getFirstRange']()['start'])?(_0x194d33['removeMarkers'](),_0x194d33=_0x50dfe3):_0x50dfe3['removeMarkers']():_0x194d33=_0x50dfe3;}else{const _0xa4474a=_0x3705c4['getIntersection'](_0x2e3d29);this['_cutOutSuggestionMarker'](_0x50dfe3,_0xa4474a);}}const _0x24bff8=this['editor']['plugins']['get']('Users')['me'],_0x24fa6b=_0x4681a7(),_0x5409f2=_0x24bff8['id'];if(_0x194d33)return this['_setSuggestionRange'](_0x194d33,this['_model']['createRange'](_0x232398,_0x20035f)),_0x194d33;{const _0x18fed9=this['_setSuggestionData']({'id':_0x24fa6b,'type':'formatBlock:'+_0x4fb2e8,'data':_0x589f0f,'createdAt':new Date(),'authorId':_0x5409f2,'attributes':_0x4d9054});return this['_addSuggestionMarker']('formatBlock:'+_0x4fb2e8,_0x24fa6b,_0x5409f2,this['_model']['createRange'](_0x232398,_0x20035f)),_0x18fed9;}}['markMultiRangeBlockFormat'](_0x41a40d,_0xe12c60,_0x220454=[],_0x149903=null,_0x2450cf={}){_0xe12c60['formatGroupId']||(_0xe12c60['formatGroupId']=_0xe12c60['commandName']);const _0x2f77aa=_0x41a40d[0x0];_0xe12c60['multipleBlocks']=_0x2f77aa['is']('range'),_0x149903=_0x149903||xt(_0xe12c60);const _0x34c9d0=_0x220454['map'](_0x138d7d=>Vt(_0x138d7d,this['_model'])),_0x2e1f55=_0x2f77aa['is']('range')?_0x41a40d:_0x41a40d['map'](_0x328603=>Vt(_0x328603,this['_model']));if(this['_trackingSessionId']&&(_0x2450cf['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xc57280=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x149903,'accept');return this['forceDefaultExecution'](()=>_0xc57280(_0x2e1f55,_0xe12c60,_0x2450cf)),null;}_0x34c9d0['push'](..._0x2e1f55);let _0x2ba5eb=!0x0;for(const _0xefd31e of _0x34c9d0)if(!this['_rangeIsInLocalUserInsertion'](_0xefd31e)){_0x2ba5eb=!0x1;break;}if(_0x2ba5eb&&'always'!==this['_trackFormatChanges']){const _0x498887=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x149903,'accept');return this['forceDefaultExecution'](()=>_0x498887(_0x2e1f55,_0xe12c60,_0x2450cf)),null;}const _0x59e580=this['editor']['plugins']['get']('Users')['me'];for(const _0x5b5eaa of this['getSuggestions']()){const _0x61d4c0=_0x5b5eaa['data'];if(_0x5b5eaa['author']['id']!=_0x59e580['id'])continue;if('formatBlock'!=_0x5b5eaa['type']||_0x61d4c0['formatGroupId']!=_0xe12c60['formatGroupId'])continue;if(!zt(_0x5b5eaa,_0x2450cf))continue;const _0x48a210=_0x5b5eaa['subType']==_0x149903;for(let _0x3564d7=0x0;_0x3564d7<_0x2e1f55['length'];_0x3564d7++){const _0x256de0=_0x2e1f55[_0x3564d7];for(const _0x163474 of _0x5b5eaa['getMarkers']()){const _0x420d2e=_0x163474['getRange']();if(_0x256de0['isEqual'](_0x420d2e)){_0x48a210?(_0x2e1f55['splice'](_0x3564d7,0x1),_0x3564d7--):_0x5b5eaa['removeMarker'](_0x163474['name']);break;}}}}if(0x0==_0x2e1f55['length'])return null;const _0x241c9c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x149903,'join');for(const _0x35c6c4 of this['getSuggestions']()){const _0x1f669d=_0x35c6c4['data'];if(_0x35c6c4['author']['id']==_0x59e580['id']&&('formatBlock'==_0x35c6c4['type']&&_0x1f669d['formatGroupId']==_0xe12c60['formatGroupId']&&_0x35c6c4['subType']==_0x149903&&zt(_0x35c6c4,_0x2450cf)&&(_0x241c9c(_0x35c6c4['getRanges'](),_0x2e1f55)||_0x241c9c(_0x2e1f55,_0x35c6c4['getRanges']())))){for(const _0x53686f of _0x2e1f55)_0x35c6c4['addRange'](_0x53686f);return _0x35c6c4;}}const _0x496184=_0x4681a7(),_0x51311b=_0x59e580['id'],_0x419aab='formatBlock:'+_0x149903,_0x1b229b=this['_setSuggestionData']({'id':_0x496184,'type':_0x419aab,'data':_0xe12c60,'createdAt':new Date(),'authorId':_0x51311b,'attributes':_0x2450cf});for(const _0x4c1309 of _0x2e1f55)this['_addSuggestionMarker'](_0x419aab,_0x496184,_0x51311b,_0x4c1309,Suggestion['getMultiRangeId']());return _0x1b229b;}['markDeletion'](_0x5da66a,_0x4b89bd=null,_0x3a661a={}){if(_0x5da66a['isCollapsed'])return null;const _0x2ff179=this['editor']['plugins']['get']('Users')['me'],_0x411548=new _0x418bbc(_0x5da66a['start'],_0x5da66a['end']);this['_trackingSessionId']&&(_0x3a661a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x14fa4e,meta:_0x4a4ded}of this['_findSuggestions'](_0x411548,'insertion'))if(_0x4a4ded['isOwn']&&!_0x4a4ded['isNextTo']){if(_0x14fa4e['isMultiRange']){const _0x1b26d9=_0x14fa4e['getRanges']()['filter'](_0x3ce451=>'$graveyard'!=_0x3ce451['root']['rootName']);_0x1b26d9['every'](_0x4fd988=>_0x411548['containsRange'](_0x4fd988,!0x0))&&_0x14fa4e['discard']();if(_0x1b26d9['some'](_0x434aa8=>_0x434aa8['containsRange'](_0x411548,!0x0))){const _0x2bab96=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b89bd,'accept');return this['forceDefaultExecution'](()=>_0x2bab96([_0x411548],null,_0x3a661a)),null;}}else{const _0x3f98c4=_0x411548['getIntersection'](_0x14fa4e['getFirstRange']());null!==_0x3f98c4&&_0x14fa4e['_onDiscard']([_0x3f98c4],null,_0x3a661a);}}if(_0x411548['detach'](),_0x411548['isCollapsed']||'$graveyard'==_0x411548['root']['rootName'])return null;let _0x2e9d55=null,_0x19131b=_0x411548['start'],_0x215ad6=_0x411548['end'];const _0x2bf4d0=this['_findSuggestions'](_0x411548,'deletion');for(const {suggestion:_0x3a432d,meta:_0x578170}of _0x2bf4d0){const _0x391f23=this['_model']['createRange'](_0x19131b,_0x215ad6);if(_0x578170['isOwn']&&(this['_mergeNestedSuggestions']||!_0x578170['containsRangeInObject']&&!_0x578170['isInsideObject'])){if(_0x3a432d['isMultiRange']){if(!zt(_0x3a432d,_0x3a661a))continue;let _0x133c3f=!0x0;for(const _0x37d7af of _0x3a432d['getRanges']()){if(_0x37d7af['containsRange'](_0x391f23,!0x0))return _0x3a432d;_0x391f23['containsRange'](_0x37d7af)||(_0x133c3f=!0x1);}_0x133c3f&&_0x3a432d['discard']();}else{const _0x5938bb=_0x3a432d['getFirstRange']();if(_0x5938bb['containsRange'](_0x391f23,!0x0))return _0x3a432d;if(!zt(_0x3a432d,_0x3a661a)){_0x391f23['containsRange'](_0x5938bb)?_0x3a432d['removeMarkers']():_0x5938bb['containsPosition'](_0x19131b)?_0x19131b=_0x5938bb['end']:_0x5938bb['containsPosition'](_0x215ad6)&&(_0x215ad6=_0x5938bb['start']);continue;}_0x19131b=_0x19131b['isBefore'](_0x5938bb['start'])?_0x19131b:_0x5938bb['start'],_0x215ad6=_0x215ad6['isAfter'](_0x5938bb['end'])?_0x215ad6:_0x5938bb['end'],_0x3a661a=Object['assign']({},_0x3a432d['attributes']),_0x2e9d55?_0x5938bb['start']['isBefore'](_0x2e9d55['getFirstRange']()['start'])?(_0x2e9d55['removeMarkers'](),_0x2e9d55=_0x3a432d):_0x3a432d['removeMarkers']():_0x2e9d55=_0x3a432d;}}}if(_0x2e9d55)return this['_setSuggestionRange'](_0x2e9d55,this['_model']['createRange'](_0x19131b,_0x215ad6)),_0x2e9d55;{const _0x13ac1f=_0x4681a7(),_0x37d1e8=this['_model']['createRange'](_0x19131b,_0x215ad6),_0x79db97=_0x2ff179['id'],_0x5c5122=_0x4b89bd?'deletion:'+_0x4b89bd:'deletion',_0x2ba840=this['_setSuggestionData']({'id':_0x13ac1f,'type':_0x5c5122,'createdAt':new Date(),'authorId':_0x79db97,'attributes':_0x3a661a});return this['_addSuggestionMarker'](_0x5c5122,_0x13ac1f,_0x79db97,_0x37d1e8),_0x2ba840;}}['markMultiRangeDeletion'](_0x3b81aa,_0x225164='multi',_0x5ca8fb={}){const _0x469a21=this['editor']['plugins']['get']('Users')['me'],_0x441ace=_0x3b81aa['map'](_0x1c23b3=>new _0x418bbc(_0x1c23b3['start'],_0x1c23b3['end'])),_0x2c7715=new Set();this['_trackingSessionId']&&(_0x5ca8fb['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x578d9a,meta:_0x48b3b0}of this['_findSuggestions'](_0x441ace,'insertion'))_0x48b3b0['isOwn']&&!_0x48b3b0['isNextTo']&&_0x2c7715['add'](_0x578d9a);for(const _0x5898ea of _0x2c7715)if(_0x5898ea['isMultiRange']){const _0x522937=_0x5898ea['getRanges']();(!_0x5898ea['attributes']||!_0x5898ea['attributes']['skipNestingCheck'])&&(_0x522937['every'](_0x147ac5=>_0x441ace['some'](_0x1a91da=>_0x1a91da['containsRange'](_0x147ac5,!0x0)))&&_0x5898ea['discard']());if(_0x441ace['every'](_0x19c5de=>_0x522937['some'](_0x3b80ac=>_0x3b80ac['containsRange'](_0x19c5de,!0x0)))){const _0x75657e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x225164,'accept');return this['forceDefaultExecution'](()=>_0x75657e(_0x3b81aa,null,_0x5ca8fb)),null;}}else{const _0x882f9b=_0x5898ea['getFirstRange']();_0x441ace['some'](_0x4eadc1=>_0x4eadc1['containsRange'](_0x882f9b,!0x0))&&_0x5898ea['discard']();if(_0x441ace['every'](_0x25ee0b=>_0x882f9b['containsRange'](_0x25ee0b,!0x0))){const _0x4bb849=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x225164,'accept');return this['forceDefaultExecution'](()=>_0x4bb849(_0x441ace,null,_0x5ca8fb)),null;}}const _0xb308dc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x225164,'join');let _0x12e3e8=null;for(const _0x4c62cc of this['getSuggestions']())if(_0x4c62cc['author']['id']==_0x469a21['id']&&_0x4c62cc['isInContent']&&'deletion'==_0x4c62cc['type']&&_0x4c62cc['subType']==_0x225164&&zt(_0x4c62cc,_0x5ca8fb)&&(_0xb308dc(_0x4c62cc['getRanges'](),_0x441ace)||_0xb308dc(_0x441ace,_0x4c62cc['getRanges']()))){if(_0x12e3e8){if(_0x4c62cc['commentThread']&&_0x4c62cc['commentThread']['length'])continue;for(const _0xcb937d of _0x4c62cc['getRanges']())_0x12e3e8['isIntersectingWithRange'](_0xcb937d)||_0x12e3e8['addRange'](_0xcb937d);_0x4c62cc['removeMarkers']();}else{_0x12e3e8=_0x4c62cc;for(const _0x374973 of _0x441ace)_0x4c62cc['isIntersectingWithRange'](_0x374973)||_0x4c62cc['addRange'](_0x374973);}}if(_0x12e3e8)return _0x12e3e8;_0x2c7715['clear']();for(const {suggestion:_0x19d16d,meta:_0x1abfa6}of this['_findSuggestions'](_0x441ace,'deletion'))_0x1abfa6['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1abfa6['containsRangeInObject']&&!_0x1abfa6['isInsideObject'])&&zt(_0x19d16d,_0x5ca8fb)&&_0x2c7715['add'](_0x19d16d);for(const _0x2b362d of _0x2c7715){const _0x37ca08=_0x2b362d['getRanges']();if(!_0x5ca8fb||!_0x5ca8fb['skipNestingCheck']){if(_0x441ace['every'](_0x3f8835=>_0x37ca08['some'](_0x1ee3e2=>_0x1ee3e2['containsRange'](_0x3f8835,!0x0))))return _0x2b362d;}(!_0x2b362d['attributes']||!_0x2b362d['attributes']['skipNestingCheck'])&&(_0x37ca08['every'](_0x1804b6=>_0x441ace['some'](_0x38f7f5=>_0x38f7f5['containsRange'](_0x1804b6,!0x0)))&&_0x2b362d['discard']());}const _0x2d1b54=_0x4681a7(),_0x128e0a=_0x469a21['id'],_0x23cf13='deletion:'+_0x225164,_0x1bb6b2=this['_setSuggestionData']({'id':_0x2d1b54,'type':_0x23cf13,'createdAt':new Date(),'authorId':_0x128e0a,'attributes':_0x5ca8fb});for(const _0x5eaee6 of _0x441ace)_0x5eaee6['detach'](),_0x5eaee6['isCollapsed']||'$graveyard'==_0x5eaee6['root']['rootName']||this['_addSuggestionMarker'](_0x23cf13,_0x2d1b54,_0x128e0a,_0x5eaee6,Suggestion['getMultiRangeId']());return _0x1bb6b2;}['markAttributeChange'](_0x49ce1d,_0x5b59ab,_0x3cdd21,_0x55425f,_0x25efa0){if(_0x49ce1d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x11d685=this['editor']['plugins']['get']('Users')['me']['id'],_0x1ce82d=Array['from'](this['_suggestions']['values']())['filter'](_0x3bb248=>'attribute'==_0x3bb248['type']&&_0x3bb248['data']['key']==_0x5b59ab&&_0x3bb248['isIntersectingWithRange'](_0x49ce1d));if(this['_trackingSessionId']&&(_0x25efa0['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x350d32=this['_findSuggestions'](_0x49ce1d,'insertion')['filter'](({meta:_0x10c493})=>_0x10c493['isOwn']&&!_0x10c493['isInsideObject']&&!_0x10c493['isNextTo'])['map'](({suggestion:_0x192972})=>_0x192972);_0x1ce82d['unshift'](..._0x350d32);}const _0xcc188e=new Map([[_0x49ce1d,_0x3cdd21]]);for(const _0x2d3f0c of _0x1ce82d){const _0x33b70c='attribute'==_0x2d3f0c['type']?_0x2d3f0c['data']['oldValue']:void 0x0,_0x1f7ebb=_0x2d3f0c['getFirstRange'](),_0x14f487=Array['from'](_0xcc188e['keys']())['find'](_0x54da05=>_0x54da05['isIntersecting'](_0x1f7ebb));if(!_0x14f487)continue;const _0x76ec13=_0x14f487['getDifference'](_0x1f7ebb);this['_suggestionsConversion']['isBlockAttribute'](_0x5b59ab)&&'insertion'==_0x2d3f0c['type']&&0x0!=_0x76ec13['length']||(_0xcc188e['delete'](_0x14f487),_0x76ec13['forEach'](_0x4f9bb3=>{_0xcc188e['set'](_0x4f9bb3,_0x3cdd21);}),'insertion'!=_0x2d3f0c['type']&&_0x33b70c!=_0x55425f&&_0xcc188e['set'](_0x14f487['getIntersection'](_0x1f7ebb),_0x33b70c));}const _0x1add11=[];for(const [_0x40b9c0,_0x1d225e]of _0xcc188e){const _0x5ebf5a=_0x4681a7(),_0x2752e3={'key':_0x5b59ab,'oldValue':_0x1d225e,'newValue':_0x55425f};_0x5b59ab['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':_0x5b59ab});const _0x34e2f6=('attribute:'+(_0x5b59ab+'|'+xt({'newValue':_0x55425f})))['substring'](0x0,0x3c),_0x55e337=this['_setSuggestionData']({'id':_0x5ebf5a,'type':_0x34e2f6,'data':_0x2752e3,'createdAt':new Date(),'authorId':_0x11d685,'attributes':_0x25efa0});_0x1add11['push'](_0x55e337),this['_addSuggestionMarker'](_0x34e2f6,_0x5ebf5a,_0x11d685,_0x40b9c0);}return _0x1add11;}['enableDefaultAttributesIntegration'](_0x4d3e16){this['enableCommand'](_0x4d3e16,(_0x5b649c,..._0x1bef31)=>{this['recordAttributeChanges'](()=>{_0x5b649c(..._0x1bef31);});});}['startTrackingSession'](_0x3b7071){return this['_trackingSessionId']=void 0x0!==_0x3b7071?_0x3b7071:_0x4681a7(),this['_trackingSessionId'];}['_getAttributeKey'](_0x2fa856){return'attribute'==_0x2fa856['type']?Xt(_0x2fa856['subType']):null;}['_applyOperationsAsSuggestions'](_0xb2f041){if(0x0==_0xb2f041['length'])return;const _0x47d782=this['editor'],_0x4dacd6=_0x47d782['plugins']['get'](_0x42cf99),_0x30f581=[];_0x47d782['model']['change'](_0xb03d08=>{for(let _0x3bdb78=0x0;_0x3bdb78<_0xb2f041['length'];_0x3bdb78++){const _0x204bf8=_0xb2f041[_0x3bdb78];if(_0x204bf8['baseVersion']=_0x47d782['model']['document']['version'],_0x204bf8['isDocumentOperation']=!0x0,_0x4dacd6['isMarkedRemoveOperation'](_0x204bf8)){const _0x23eb9e=_0x2d0738(_0x204bf8['newRange'],_0x47d782['model']);_0x30f581['unshift'](_0x418bbc['fromRange'](_0x23eb9e));}else switch(_0x204bf8['type']){case'rename':{const _0x5d4c63=_0x204bf8['oldName'],_0x5d4df8=_0x204bf8['newName'];if(_0x5d4c63==_0x5d4df8)break;_0xb03d08['batch']['addOperation'](_0x204bf8),_0x47d782['model']['applyOperation'](_0x204bf8);const _0x569eb0='$elementName',_0x345fb7=_0x204bf8['position'],_0x1c7ff9=_0x47d782['model']['createRange'](_0x345fb7,_0x47d782['model']['createPositionAt'](_0x345fb7['nodeAfter'],'end'));this['markAttributeChange'](_0x1c7ff9,_0x569eb0,_0x5d4c63,_0x5d4df8,{'groupId':_0x4681a7()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x2c82d8=_0x204bf8['oldValue'],_0x7ede02=_0x204bf8['newValue'];if(_0x2c82d8==_0x7ede02)break;_0xb03d08['batch']['addOperation'](_0x204bf8),_0x47d782['model']['applyOperation'](_0x204bf8);const _0x6d6022=_0x204bf8['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x6d6022))break;const _0x1031fb=_0x2d0738(_0x204bf8['range'],_0x47d782['model']);this['markAttributeChange'](_0x1031fb,_0x6d6022,_0x2c82d8,_0x7ede02,{'groupId':_0x4681a7()});break;}case'insert':{_0xb03d08['batch']['addOperation'](_0x204bf8),_0x47d782['model']['applyOperation'](_0x204bf8);if(_0xb2f041[_0x3bdb78+0x1]&&'move'==_0xb2f041[_0x3bdb78+0x1]['type'])break;const _0x5c91aa=_0x204bf8['position'],_0x121cb2=_0x204bf8['howMany'],_0x33f482=_0x2d0738(_0x47d782['model']['createRange'](_0x5c91aa,_0x5c91aa['getShiftedBy'](_0x121cb2)),_0x47d782['model']);this['markInsertion'](_0x33f482);break;}case'split':{_0xb03d08['batch']['addOperation'](_0x204bf8),_0x47d782['model']['applyOperation'](_0x204bf8);const _0x28d1e8=_0x204bf8['splitPosition'],_0x2b6187=_0x204bf8['moveTargetPosition'];this['markInsertion'](_0x47d782['model']['createRange'](_0x28d1e8,_0x2b6187));break;}case'move':case'remove':_0xb03d08['batch']['addOperation'](_0x204bf8),_0x47d782['model']['applyOperation'](_0x204bf8);}}for(const _0x7ae429 of _0x30f581)_0x7ae429['detach'](),this['markDeletion'](_0x7ae429);});}['_setSuggestionRange'](_0x5f441d,_0x1bd374){const _0x32dd98=_0x5f441d['getFirstMarker']();this['_model']['change'](_0x324026=>{_0x324026['updateMarker'](_0x32dd98,{'range':_0x1bd374});});}['_addThreadToSuggestion'](_0x30ead4){const _0x288975=_0x30ead4['id'],_0x21cfea=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x288975)||this['_commentsRepository']['addCommentThread']({'channelId':_0x21cfea,'threadId':_0x288975,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x53ac13=this['_commentsRepository']['getCommentThread'](_0x288975);_0x53ac13['unbind']('isRemovable'),_0x53ac13['isRemovable']=!0x1,_0x30ead4['commentThread']=_0x53ac13;}['_checkSuggestionCorrectness'](_0x123bcf,_0x4f2a24,_0x71857c,_0x5e36c0){if(_0x123bcf['type']!=_0x4f2a24||_0x123bcf['subType']!=_0x71857c||_0x123bcf['creator']['id']!=_0x5e36c0)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x180e5c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x199f17,_0x5168d7){const _0x26a142=_0x199f17['getFirstRange']();if(_0x5168d7['isEqual'](_0x26a142))_0x199f17['removeMarkers']();else{if(_0x26a142['containsRange'](_0x5168d7)){const _0x49d32c=this['_model']['createPositionAt'](_0x5168d7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x199f17,this['_model']['createRange'](_0x26a142['start'],_0x49d32c));const _0x3fd183=_0x4681a7(),_0x4e9fcb=_0x199f17['creator']['id'],_0x82a078=_0x199f17['type']+':'+_0x199f17['subType'];this['_setSuggestionData']({'id':_0x3fd183,'type':_0x82a078,'createdAt':new Date(),'authorId':_0x4e9fcb,'data':_0x199f17['data'],'attributes':_0x199f17['attributes']});const _0x23168b=this['_model']['createPositionAt'](_0x5168d7['end']['parent'],'after'),_0x5d5e08=this['_model']['createRange'](_0x23168b,_0x26a142['end']);this['_addSuggestionMarker'](_0x82a078,_0x3fd183,_0x4e9fcb,_0x5d5e08);}else{if(_0x26a142['containsPosition'](_0x5168d7['start'])){const _0x4b03f5=this['_model']['createPositionAt'](_0x5168d7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x199f17,this['_model']['createRange'](_0x26a142['start'],_0x4b03f5));}else{const _0x46b587=this['_model']['createPositionAt'](_0x5168d7['end']['parent'],'after');this['_setSuggestionRange'](_0x199f17,this['_model']['createRange'](_0x46b587,_0x26a142['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3079ef){for(const {suggestion:_0x4e64bf,meta:_0x56c912}of this['_findSuggestions'](_0x3079ef,'insertion')){if(!_0x56c912['isOwn'])continue;const _0x5315bc=_0x4e64bf['getRanges']();for(const _0x58d796 of _0x5315bc)if(!_0x3079ef['getDifference'](_0x58d796)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xc092a9){return this['editor']['plugins']['get']('Users')['getUser'](_0xc092a9);}['_getExternalAuthor'](_0x3401b2){const _0x4eef12=this['editor']['plugins']['get']('Users'),_0x4ac6a5=_0x274975('external:'+_0x3401b2),_0x45295c=_0x4eef12['getUser'](_0x4ac6a5);return _0x45295c||_0x4eef12['addUser']({'id':_0x4ac6a5,'name':_0x3401b2});}['_createSuggestion'](_0x298c0e,_0x54ca38,_0x33b295,_0x2099cd,_0x396adc,_0x1488f3){const _0xc4221=this['_getAuthorFromId'](_0x2099cd);if(!_0xc4221)throw new _0x180e5c('track-changes-user-not-found',this,{'authorId':_0x2099cd,'suggestionId':_0x33b295});const _0x4a862f=this['_suggestionFactory']['buildSuggestion'](_0x298c0e,_0x54ca38,_0x33b295,_0xc4221,_0x396adc,_0x23fb0=>{this['_updateSuggestionData'](_0x33b295,{'attributes':_0x23fb0});const _0xbf2d59=this['getSuggestion'](_0x33b295);this['_joinWithAdjacentSuggestions'](new Set([_0xbf2d59])),this['_refreshSuggestionsChain'](new Set([_0xbf2d59]));},_0x1488f3);return this['listenTo'](_0x4a862f,'accept',()=>{this['_updateSuggestionData'](_0x33b295,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4a862f,'discard',()=>{this['_updateSuggestionData'](_0x33b295,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x33b295,_0x4a862f),this['_suggestionState']['set'](_0x4a862f,'notReady'),_0x4a862f;}['_breakSuggestionMarker'](_0x4858fc,_0x51255f,_0x362f87){const _0x475c91=_0x4858fc['getFirstRange'](),_0x272928=_0x475c91['start'],_0x1a4a59=_0x475c91['end'];this['_setSuggestionRange'](_0x4858fc,this['_model']['createRange'](_0x272928,_0x51255f));const _0x38ea3e=_0x4681a7(),_0x30e158=_0x4858fc['creator']['id'],_0x1ef0e3=_0x4858fc['type']+(_0x4858fc['subType']?':'+_0x4858fc['subType']:'');this['_setSuggestionData']({'id':_0x38ea3e,'type':_0x1ef0e3,'createdAt':new Date(),'authorId':_0x30e158,'originalSuggestionId':_0x4858fc['_originalSuggestionId']||_0x4858fc['id'],'attributes':_0x4858fc['attributes'],'data':_0x4858fc['data']});const _0x1071d9=this['_getAttributeKey'](_0x4858fc);('formatBlock'==_0x4858fc['type']||_0x1071d9&&this['_suggestionsConversion']['isBlockAttribute'](_0x1071d9))&&(_0x362f87=this['_model']['createPositionBefore'](_0x362f87['parent'])),this['_addSuggestionMarker'](_0x1ef0e3,_0x38ea3e,_0x30e158,this['_model']['createRange'](_0x362f87,_0x1a4a59));}['_findSuggestions'](_0x2af635,_0x4188ce=null){const _0x359bed=[],_0x52b193=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2af635)||(_0x2af635=[_0x2af635]);for(const _0x38a093 of this['getSuggestions']()){if(!_0x38a093['isInContent'])continue;if(_0x4188ce&&_0x38a093['type']!=_0x4188ce)continue;let _0x204813=!0x1;for(const _0x428c51 of _0x38a093['getRanges']()){for(const _0x161d16 of _0x2af635){const _0x1b351d=_0x161d16['start']['isEqual'](_0x428c51['end'])||_0x161d16['end']['isEqual'](_0x428c51['start']);if(_0x1b351d||_0x161d16['getIntersection'](_0x428c51)){const _0x2fb956=_0x161d16['containsRange'](_0x428c51)&&Dt(this['_model']['schema'],_0x428c51['start'],_0x161d16),_0x6ee180=_0x428c51['containsRange'](_0x161d16)&&Dt(this['_model']['schema'],_0x161d16['start'],_0x428c51);_0x359bed['push']({'suggestion':_0x38a093,'meta':{'isOwn':_0x52b193==_0x38a093['author'],'isNextTo':_0x1b351d,'isInsideObject':_0x2fb956,'containsRangeInObject':_0x6ee180}}),_0x204813=!0x0;break;}}if(_0x204813)break;}}return _0x359bed;}['_addSuggestionMarker'](_0x4bdc60,_0x337fc1,_0x1eb86e,_0xb7944,_0x14518c){this['_model']['change'](_0x1f7c10=>{let _0x4e0502='suggestion:'+_0x4bdc60+':'+_0x337fc1+':'+_0x1eb86e;_0x14518c&&(_0x4e0502=_0x4e0502+':'+_0x14518c),_0x1f7c10['addMarker'](_0x4e0502,{'range':_0xb7944,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x338088){const _0x4578ba=_0x338088['previous'],_0xd84a97=_0x338088['next'];_0x338088['previous']=null,_0x338088['next']=null,null!=_0x4578ba&&_0x4578ba['next']==_0x338088&&(_0x4578ba['next']=_0xd84a97),null!=_0xd84a97&&_0xd84a97['previous']==_0x338088&&(_0xd84a97['previous']=_0x4578ba),'ready'==this['_suggestionState']['get'](_0x338088)&&(this['_suggestionState']['set'](_0x338088,'removed'),this['fire']('suggestionUnloaded',_0x338088,_0x4578ba,_0xd84a97));}['_setSuggestionData'](_0x7ffa24){const _0x868713=_0x7ffa24['id'],_0x4aa234=this['addSuggestionData'](_0x7ffa24);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x475ddc=this['editor']['plugins']['get']('PendingActions'),_0x5e9180=_0x4aa234['hasComments'],_0x3a46a7=_0x4aa234['subType']?_0x4aa234['type']+':'+_0x4aa234['subType']:_0x4aa234['type'],_0x42cc27=this['editor']['locale'],_0x29a9b5=_0x475ddc['add'](Tt(_0x42cc27,'PENDING_ACTION_SUGGESTION')),_0x3123bf={'id':_0x868713,'type':_0x3a46a7,'hasComments':_0x5e9180,'data':_0x7ffa24['data']||null,'originalSuggestionId':_0x7ffa24['originalSuggestionId']||null,'attributes':_0x4aa234['attributes']};this['_adapter']['addSuggestion'](_0x3123bf)['then'](_0x4ef5e9=>{_0x4aa234['_saved']=!0x0,_0x475ddc['remove'](_0x29a9b5),_0x4ef5e9&&_0x4ef5e9['createdAt']&&(this['_suggestions']['get'](_0x868713)['createdAt']=_0x4ef5e9['createdAt']);})['catch'](_0xc01457=>{throw _0x219ccc('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4aa234['discard']();}),_0x4aa234['stopListening'](),this['_suggestions']['delete'](_0x4aa234['id']),this['_suggestionState']['delete'](_0x4aa234),_0xc01457;});}return _0x4aa234;}['_updateSuggestionData'](_0x2eaa06,_0x178330){const _0x55eff3=this['editor']['plugins']['get']('PendingActions'),_0x579cf2=this['getSuggestion'](_0x2eaa06);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x579cf2['_saved']){const _0x44de3c=_0x55eff3['add'](Tt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2eaa06,_0x178330)['then'](()=>{_0x55eff3['remove'](_0x44de3c);});}else _0x579cf2['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2eaa06,_0x178330);});}}['_getSuggestionData'](_0x6dee6e){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x180e5c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x6dee6e);}['_handleNewSuggestionMarker'](_0x1eff39){const {id:_0x5f183b,type:_0x329bcd,subType:_0x1af20e,authorId:_0x43f890}=_0x368712(_0x1eff39),_0x1aa176=this['_suggestions']['get'](_0x5f183b)||this['_createSuggestion'](_0x329bcd,_0x1af20e,_0x5f183b,_0x43f890,{});switch(this['_checkSuggestionCorrectness'](_0x1aa176,_0x329bcd,_0x1af20e,_0x43f890),this['_suggestionState']['get'](_0x1aa176)){case'notReady':this['_getSuggestionData'](_0x5f183b)['then'](_0x2e1085=>{let _0x108a50=Promise['resolve']();_0x2e1085['hasComments']&&(_0x108a50=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5f183b})),_0x108a50['then'](()=>{this['addSuggestionData'](_0x2e1085)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1aa176,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5f183b,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1aa176,'ready'),this['fire']('suggestionLoaded',_0x1aa176);break;case'ready':this['fire']('suggestionChanged',_0x1aa176);}return _0x1aa176['addMarkerName'](_0x1eff39),_0x1aa176;}['_refreshSuggestionsChain'](_0x50a0f6){const _0x432540=Array['from'](_0x50a0f6),_0x2bdf42=_0x432540['filter'](_0x45fcae=>'attribute'==_0x45fcae['type']);this['_refreshAttributeSuggestionsChain'](_0x2bdf42);const _0x384353=_0x432540['filter'](_0x3f18ff=>!_0x3f18ff['isMultiRange']&&'attribute'!=_0x3f18ff['type']),_0x488813=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e031b=>!_0x4e031b['isMultiRange']&&'attribute'!=_0x4e031b['type']),_0x590bb4=_0x488813['filter'](_0xd83e44=>!_0x50a0f6['has'](_0xd83e44)),_0x2e524d=new Map(_0x488813['map'](_0x3994f1=>[_0x3994f1,this['_suggestionFactory']['getSuggestionCallback'](_0x3994f1['type'],_0x3994f1['subType'],'chain')])),_0x19718d=new Map(_0x488813['map'](_0x15e1fe=>[_0x15e1fe,_0x15e1fe['getFirstRange']()])),_0x3e25e1=new Set(),_0x2648c1=new Set();for(let _0x33eaae=0x0;_0x33eaae<_0x384353['length'];_0x33eaae++)_0x5b44c7(_0x384353[_0x33eaae],_0x384353,_0x33eaae+0x1);for(let _0x4ba12e=0x0;_0x4ba12e<_0x384353['length'];_0x4ba12e++)_0x5b44c7(_0x384353[_0x4ba12e],_0x590bb4,0x0);const _0x4c6653=new Set();for(let _0x400501=0x0;_0x400501<_0x384353['length'];_0x400501++){const _0xac813d=_0x384353[_0x400501];!_0x2648c1['has'](_0xac813d)&&_0xac813d['previous']&&(_0x4c6653['add'](_0xac813d['previous']),_0xac813d['previous']['next']===_0xac813d&&(_0xac813d['previous']['next']=null),_0xac813d['previous']=null),!_0x3e25e1['has'](_0xac813d)&&_0xac813d['next']&&(_0x4c6653['add'](_0xac813d['next']),_0xac813d['next']['previous']===_0xac813d&&(_0xac813d['next']['previous']=null),_0xac813d['next']=null);}function _0x5b44c7(_0x138e2e,_0x489d7e,_0x3a88fa){for(let _0x21af0f=_0x3a88fa;_0x21af0f<_0x489d7e['length'];_0x21af0f++){const _0x5ad01f=_0x13407c(_0x138e2e,_0x489d7e[_0x21af0f]);_0x5ad01f&&(_0x5ad01f[0x0]['next']=_0x5ad01f[0x1],_0x5ad01f[0x1]['previous']=_0x5ad01f[0x0],_0x3e25e1['add'](_0x5ad01f[0x0]),_0x2648c1['add'](_0x5ad01f[0x1]));}}function _0x13407c(_0x1793c5,_0x5e582c){if(_0x1793c5['author']['id']!==_0x5e582c['author']['id'])return null;const _0x1f3b0b=_0x2e524d['get'](_0x1793c5)(_0x1793c5,_0x5e582c,_0x19718d['get'](_0x1793c5),_0x19718d['get'](_0x5e582c));if(!_0x1f3b0b)return null;return _0x2e524d['get'](_0x5e582c)(_0x1793c5,_0x5e582c,_0x19718d['get'](_0x1793c5),_0x19718d['get'](_0x5e582c))?_0x1f3b0b[0x1]['commentThread']&&_0x1f3b0b[0x1]['commentThread']['length']?null:_0x1f3b0b:null;}_0x4c6653['size']&&this['_refreshSuggestionsChain'](_0x4c6653);}['_refreshAttributeSuggestionsChain'](_0x92d21){if(0x0==_0x92d21['length'])return;const _0x39086b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4fb86f=>'attribute'==_0x4fb86f['type']&&_0x4fb86f['_isDataLoaded']),_0x49bb80=[],_0x3763a9=new Map();for(const _0x9dce43 of _0x39086b){const _0x4b76ef=_0x274975(_0x9dce43['attributes']);_0x3763a9['has'](_0x4b76ef)||(_0x3763a9['set'](_0x4b76ef,_0x49bb80['length']),_0x49bb80['push']([]));const _0x278915=_0x3763a9['get'](_0x4b76ef);_0x49bb80[_0x278915]['push'](_0x9dce43);}!(function(){_0x49bb80['sort']((_0x4606d4,_0x223447)=>{const _0x96ee9=_0x4606d4[0x0]['createdAt'],_0x48ef4f=_0x223447[0x0]['createdAt'];return _0x96ee9==_0x48ef4f?_0x4606d4[0x0]['attributes']['groupId']<_0x223447[0x0]['attributes']['groupId']?-0x1:0x1:_0x96ee9<_0x48ef4f?-0x1:0x1;});for(const _0x4c6ea3 of _0x49bb80)_0x4c6ea3['sort']((_0x2f70d3,_0x327d5a)=>_0x2f70d3['id']<_0x327d5a['id']?-0x1:0x1);}());for(let _0x37b1ae=0x0;_0x37b1ae<_0x49bb80['length'];_0x37b1ae++){if(0x0==_0x49bb80[_0x37b1ae]['length'])continue;const _0x3cc20b=[];for(let _0x5745c9=_0x37b1ae+0x1;_0x5745c9<_0x49bb80['length'];_0x5745c9++)0x0!=_0x49bb80[_0x5745c9]['length']&&_0x438446(_0x49bb80[_0x37b1ae],_0x49bb80[_0x5745c9])&&_0x3cc20b['push'](_0x5745c9);for(const _0x7c802e of _0x3cc20b)_0x49bb80[_0x37b1ae]=_0x49bb80[_0x37b1ae]['concat'](_0x49bb80[_0x7c802e]),_0x49bb80[_0x7c802e]=[];}for(const _0x284318 of _0x49bb80)for(let _0x279032=0x0;_0x279032<_0x284318['length'];_0x279032++){const _0x275553=_0x284318[_0x279032+0x1]||null;_0x284318[_0x279032]['next']!==_0x275553&&(_0x284318[_0x279032]['next']=_0x275553);}for(const _0xc62a44 of _0x49bb80)for(let _0x3fba79=0x0;_0x3fba79<_0xc62a44['length'];_0x3fba79++){const _0x4ba2cd=_0xc62a44[_0x3fba79-0x1]||null;_0xc62a44[_0x3fba79]['previous']!==_0x4ba2cd&&(_0xc62a44[_0x3fba79]['previous']=_0x4ba2cd);}function _0x438446(_0xb7f557,_0x316916){if(_0xb7f557[0x0]['attributes']['groupId']!==_0x316916[0x0]['attributes']['groupId']&&_0xb7f557[0x0]['author']!==_0x316916[0x0]['author'])return!0x1;if(!function(_0x19c283,_0x2108a0){if(!_0x19c283['hasComments']&&!_0x2108a0['hasComments'])return!0x0;if(_0x19c283['hasComments']&&_0x2108a0['hasComments'])return!0x1;if(_0x19c283['hasComments']&&_0x2108a0['createdAt']<_0x19c283['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2108a0['hasComments']&&_0x19c283['createdAt']<_0x2108a0['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xb7f557[0x0],_0x316916[0x0]))return!0x1;const _0x2d58c6=ot(_0xb7f557[0x0]['attributes'],['groupId','trackingSessionId']),_0x1e12b1=ot(_0x316916[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x2d58c6,_0x1e12b1))return!0x1;if(_0xb7f557[0x0]['attributes']['groupId']==_0x316916[0x0]['attributes']['groupId'])return!0x0;if(_0xb7f557[0x0]['attributes']['trackingSessionId']!==_0x316916[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0xb7f557['every'](_0x2540b4=>_0x316916['some'](_0x504804=>_0x2540b4['getFirstRange']()['isEqual'](_0x504804['getFirstRange']())))&&_0x316916['every'](_0x18ca66=>_0xb7f557['some'](_0x3066b5=>_0x18ca66['getFirstRange']()['isEqual'](_0x3066b5['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3c89be){const _0xa1c6de=Array['from'](_0x3c89be),_0x287b82=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1e4f7d=_0x287b82['filter'](_0x2a8128=>!_0x3c89be['has'](_0x2a8128)),_0x25aef9=new Map(_0xa1c6de['map'](_0x51ffbf=>[_0x51ffbf,this['_suggestionFactory']['getSuggestionCallback'](_0x51ffbf['type'],_0x51ffbf['subType'],'join')])),_0x19bb16=new Map(_0x287b82['map'](_0x5cb69d=>[_0x5cb69d,_0x5cb69d['getRanges']()]));for(let _0x7710c=0x0;_0x7710c<_0xa1c6de['length'];_0x7710c++){if(_0xa2ef30(this,_0xa1c6de[_0x7710c],_0xa1c6de,_0x7710c+0x1))return!0x0;}for(let _0x3a8ac7=0x0;_0x3a8ac7<_0xa1c6de['length'];_0x3a8ac7++){if(_0xa2ef30(this,_0xa1c6de[_0x3a8ac7],_0x1e4f7d,0x0))return!0x0;}return!0x1;function _0xa2ef30(_0x4c264c,_0x53ef7a,_0x3e3b17,_0x3fd2d0){for(let _0x34ffd0=_0x3fd2d0;_0x34ffd0<_0x3e3b17['length'];_0x34ffd0++){const _0x5412c6=_0x3e3b17[_0x34ffd0];if(_0x5412c6['type']!==_0x53ef7a['type']||_0x5412c6['author']['id']!==_0x53ef7a['author']['id']||_0x5412c6['subType']!==_0x53ef7a['subType'])continue;if(!jt(_0x53ef7a,_0x5412c6))continue;if('attribute'==_0x53ef7a['type']&&_0x53ef7a['data']['oldValue']!=_0x5412c6['data']['oldValue'])continue;if('attribute'==_0x53ef7a['type']&&_0x4c264c['_suggestionsConversion']['isBlockAttribute'](_0x53ef7a['data']['key']))continue;if('formatBlock'==_0x53ef7a['type']){const _0x5b3230=_0x4c264c['editor']['model'],_0x1bdadd=_0x53ef7a['getContainedElement']();if(_0x1bdadd&&(_0x5b3230['schema']['isObject'](_0x1bdadd)||_0x5b3230['schema']['isLimit'](_0x1bdadd)))continue;}const _0x69a14a=_0x25aef9['get'](_0x53ef7a),_0x4b32bc=_0x19bb16['get'](_0x53ef7a),_0x5f50ea=_0x19bb16['get'](_0x5412c6),_0x5f2da7=_0x53ef7a['commentThread']&&_0x53ef7a['commentThread']['length'],_0x1c7855=_0x5412c6['commentThread']&&_0x5412c6['commentThread']['length'];if(!_0x5f2da7&&_0x69a14a(_0x5f50ea,_0x4b32bc))return _0x4c264c['_joinSuggestions'](_0x5412c6,_0x53ef7a),_0x19bb16['delete'](_0x53ef7a),!0x0;if(!_0x1c7855&&_0x69a14a(_0x4b32bc,_0x5f50ea))return _0x4c264c['_joinSuggestions'](_0x53ef7a,_0x5412c6),_0x19bb16['delete'](_0x5412c6),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3032dd,_0x1a218f){if(_0x3032dd['isMultiRange']){for(const _0x3fe5f3 of _0x1a218f['getRanges']())_0x3032dd['addRange'](_0x3fe5f3);}else{const _0x2fb10a=_0x1a218f['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3032dd,this['_model']['createRange'](_0x3032dd['getFirstRange']()['start'],_0x2fb10a));}_0x1a218f['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2882c9,_0x36087c,_0x11cac7){const _0x37a242=_0x2882c9['startsWith']('format')||_0x2882c9['startsWith']('attribute')?'FORMATTING':_0x2882c9['toUpperCase']();return Tt(this['editor']['locale'],_0x36087c+'_'+_0x37a242+'_SUGGESTION_ANNOUNCEMENT',_0x11cac7);}['_initAriaMarkerChangeAnnouncements'](){const _0x45a636=this['editor'];if(!_0x45a636['ui'])return;const {ariaLiveAnnouncer:_0x9e9435}=_0x45a636['ui'];_0x3b812a(this['_model'],({left:_0x29a2fb,entered:_0x302138})=>{for(const _0x11ed6c of _0x29a2fb){const {group:_0x34236b,type:_0x20664b}=_0x368712(_0x11ed6c['name']);if('suggestion'===_0x34236b){_0x9e9435['announce'](this['_getMarkerAnnouncementText'](_0x20664b,'LEAVE'));break;}}for(const _0x4343b5 of _0x302138){const {group:_0x494c0c,type:_0x143296}=_0x368712(_0x4343b5['name']);if('suggestion'===_0x494c0c){_0x9e9435['announce'](this['_getMarkerAnnouncementText'](_0x143296,'ENTER',_0x44b0b1(_0x3d6e5e)));break;}}});}['_processAttributeChanges'](_0x288283){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3d5d5b=this['editor'],_0x2393a9=_0x3d5d5b['model']['document']['differ']['getChanges']();if(0x0==_0x2393a9['length'])return!0x1;const _0x1b6123=[],_0x1627dd=_0x2393a9['filter'](_0x2e9141=>'attribute'==_0x2e9141['type']),_0x16ad4e=_0x2393a9['filter'](_0xf9430f=>'insert'==_0xf9430f['type']&&'$text'!=_0xf9430f['name']),_0xd3ba32=_0x2393a9['filter'](_0x1305ae=>'remove'==_0x1305ae['type']&&'$text'!=_0x1305ae['name']);for(const _0x2e7e8f of _0x1627dd)_0x1b6123['push']({'key':_0x2e7e8f['attributeKey'],'newValue':_0x2e7e8f['attributeNewValue'],'oldValue':_0x2e7e8f['attributeOldValue'],'range':$t(_0x2e7e8f['range'],_0x3d5d5b['model'])});for(const _0x2afc12 of _0x16ad4e){const _0x572627=_0xd3ba32['find'](_0x4057bb=>_0x4057bb['position']['isEqual'](_0x2afc12['position']));_0x572627&&_0x1b6123['push']({'key':Bt,'newValue':_0x2afc12['name'],'oldValue':_0x572627['name'],'range':_0x3d5d5b['model']['createRangeOn'](_0x2afc12['position']['nodeAfter'])});}return 0x0!=_0x1b6123['length']&&this['_reduceExistingSuggestions'](_0x288283,_0x1b6123);}['_processAttributeSuggestions'](_0xdaf187){let _0x2e6dc3=!0x1;const _0x34d26a=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xbfaff5=>_0xbfaff5['data']['newRange']&&_0xbfaff5['name']['startsWith']('suggestion:attribute:'));for(const _0x503a76 of _0x34d26a){const {subType:_0x5b95f8,id:_0xf9104d}=_0x368712(_0x503a76['name']),_0x205215=_0x5b95f8['split']('|')[0x0];for(const _0x4d8f8c of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4d8f8c['id']!=_0xf9104d&&'attribute'==_0x4d8f8c['type']&&_0x4d8f8c['data']&&_0x4d8f8c['data']['key']==_0x205215&&_0x4d8f8c['getFirstRange']()['isIntersecting'](_0x503a76['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4d8f8c,_0x503a76['data']['newRange'],_0xdaf187),_0x2e6dc3=!0x0);}return _0x2e6dc3;}['recordAttributeChanges'](_0x12f0b5){this['_recordAttributeSuggestions']=!0x0,_0x12f0b5();}['_reduceExistingSuggestions'](_0x20aae1,_0x25fce0){if(0x0==_0x25fce0['length'])return!0x1;let _0x1f5d7f=!0x1;for(const _0x1fa808 of _0x25fce0){const _0x2fb724=this['_findSuggestions'](_0x1fa808['range'],'attribute')['filter'](_0x70b5dd=>!_0x70b5dd['meta']['isNextTo'])['map'](_0x240ba1=>_0x240ba1['suggestion']),_0x2b9810=_0x274975({'newValue':_0x1fa808['newValue']});_0x2fb724['filter'](_0x35de2f=>{const [_0x3b7a30,_0xc1926e]=_0x35de2f['subType']['split']('|');return _0x3b7a30==_0x1fa808['key']&&_0xc1926e!=_0x2b9810;})['forEach'](_0x178ed2=>{this['_reduceSuggestionAttributeRange'](_0x178ed2,_0x1fa808['range'],_0x20aae1),_0x1f5d7f=!0x0;});}return _0x1f5d7f;}['_reduceSuggestionAttributeRange'](_0x5e866c,_0x553c9d,_0x24a5d8){const _0x1ff371=_0x5e866c['getFirstRange']()['getDifference'](_0x553c9d);0x0!==_0x1ff371['length']?0x1!==_0x1ff371['length']?this['_breakSuggestionMarker'](_0x5e866c,_0x553c9d['start'],_0x553c9d['end']):this['_setSuggestionRange'](_0x5e866c,_0x1ff371[0x0]):_0x24a5d8['removeMarker'](_0x5e866c['getFirstMarker']());}}class SuggestionFactory{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3b9317){this['_editor']=_0x3b9317,this['_model']=_0x3b9317['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x71425c,_0x123021,_0x2fae9f,_0x4139df,_0x301f36,_0x58ecb6,_0xe1c129){return new Suggestion(this['_model'],{'type':_0x71425c,'subType':_0x123021,'id':_0x2fae9f,'originalSuggestionId':_0xe1c129,'author':_0x4139df,'creator':_0x4139df,'attributes':_0x301f36,'onAttributesChange':_0x58ecb6,'onAccept':(..._0x5c16b1)=>this['getSuggestionCallback'](_0x71425c,_0x123021,'accept')(..._0x5c16b1),'onDiscard':(..._0x14b664)=>this['getSuggestionCallback'](_0x71425c,_0x123021,'discard')(..._0x14b664)});}['registerCustomCallback'](_0x3aa13c,_0x7a62e6,_0x1f0fcf,_0x2ef95b){const _0x298413=_0x3aa13c+':'+_0x7a62e6+':'+_0x1f0fcf;this['_customCallbacks']['set'](_0x298413,_0x2ef95b);}['getSuggestionCallback'](_0x68a591,_0x520536,_0x4da02e){const _0x4cd574=_0x68a591+':'+_0x520536+':'+_0x4da02e;return this['_customCallbacks']['get'](_0x4cd574)||this['_defaultCallbacks']['get'](_0x68a591+':'+_0x4da02e);}['_registerDefaultCallbacks'](){const _0x4bdca5=()=>!0x1,_0x5668c3=_0x119c7c=>{_0x119c7c['sort']((_0xa22160,_0xc9ff72)=>_0xa22160['start']['isBefore'](_0xc9ff72['start'])?0x1:-0x1),this['_model']['change'](_0x149f93=>{for(const _0xfee7d7 of _0x119c7c){let _0x5600f1;_0x5600f1=_0xfee7d7['end']['isAtEnd']&&_0xfee7d7['end']['parent']==_0xfee7d7['start']['nodeAfter']?_0x149f93['createSelection'](_0xfee7d7['start']['nodeAfter'],'on'):_0x149f93['createSelection'](_0xfee7d7),this['_model']['deleteContent'](_0x5600f1,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x350883=(_0x165c48,_0x248493)=>{_0x248493&&this['_model']['change'](_0x5c108e=>{const {commandName:_0x4f0262,commandParams:_0x3d2a48=[]}=_0x248493,_0x441caa=_0x165c48['map'](_0x10c704=>(vt(_0x10c704)&&(_0x10c704=this['_model']['createRange'](_0x10c704['end'])),_0x10c704))['filter'](_0x44ea91=>'$graveyard'!==_0x44ea91['root']['rootName']);if(_0x441caa['length']<0x1)return;const _0x107156=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x40c905=>_0x418bbc['fromRange'](_0x40c905));_0x5c108e['setSelection'](_0x441caa);for(const _0x9944c9 of this['_editor']['commands']['commands']())_0x9944c9['refresh']();_0x3d2a48['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4f0262,..._0x3d2a48);const _0x328c99=_0x107156['filter'](_0x33a8d8=>'$graveyard'!=_0x33a8d8['root']['rootName']);_0x328c99['length']>0x0&&_0x5c108e['setSelection'](_0x328c99);for(const _0x22a83a of _0x107156)_0x22a83a['detach']();});},_0x5dc86f=(_0x1f3074,_0x203d98)=>0x1==_0x1f3074['length']&&0x1==_0x203d98['length']&&_0x1f3074[0x0]['end']['isEqual'](_0x203d98[0x0]['start']),_0x13d09b=(_0x505796,_0x7c7d9f,_0x1185b8,_0x135de1)=>Wt(_0x505796,_0x7c7d9f,_0x1185b8,_0x135de1)?[_0x505796,_0x7c7d9f]:Wt(_0x7c7d9f,_0x505796,_0x135de1,_0x1185b8)?[_0x7c7d9f,_0x505796]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4bdca5),this['_defaultCallbacks']['set']('insertion:discard',_0x5668c3),this['_defaultCallbacks']['set']('insertion:join',_0x5dc86f),this['_defaultCallbacks']['set']('insertion:chain',_0x13d09b),this['_defaultCallbacks']['set']('deletion:accept',_0x5668c3),this['_defaultCallbacks']['set']('deletion:discard',_0x4bdca5),this['_defaultCallbacks']['set']('deletion:join',_0x5dc86f),this['_defaultCallbacks']['set']('deletion:chain',_0x13d09b),this['_defaultCallbacks']['set']('formatInline:accept',_0x350883),this['_defaultCallbacks']['set']('formatInline:discard',_0x4bdca5),this['_defaultCallbacks']['set']('formatInline:join',_0x5dc86f),this['_defaultCallbacks']['set']('formatInline:chain',_0x4bdca5),this['_defaultCallbacks']['set']('formatBlock:accept',_0x350883),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4bdca5),this['_defaultCallbacks']['set']('formatBlock:join',_0x5dc86f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4bdca5),this['_defaultCallbacks']['set']('attribute:accept',_0x4bdca5),this['_defaultCallbacks']['set']('attribute:discard',(_0x4443c9,_0x1b7542)=>{if(!_0x1b7542)return;const _0x49bd79=this['_editor']['plugins']['get'](_0x133a74);this['_model']['change'](_0x3bdeac=>{if(_0x1b7542['key']==Bt)for(const _0x5bf61a of _0x4443c9){const _0x3feabe=_0x5bf61a['start']['nodeAfter'],_0x5aa41d=_0x1b7542['oldValue'];_0x3bdeac['rename'](_0x3feabe,_0x5aa41d);}else{if(_0x49bd79['isBlockAttribute'](_0x1b7542['key'])){for(const _0x234268 of _0x4443c9)void 0x0!==_0x1b7542['oldValue']?_0x3bdeac['setAttribute'](_0x1b7542['key'],_0x1b7542['oldValue'],_0x234268['start']['nodeAfter']):_0x3bdeac['removeAttribute'](_0x1b7542['key'],_0x234268['start']['nodeAfter']);}else{for(const _0x4f18de of _0x4443c9)_0x1b7542['oldValue']?_0x3bdeac['setAttribute'](_0x1b7542['key'],_0x1b7542['oldValue'],_0x4f18de):_0x3bdeac['removeAttribute'](_0x1b7542['key'],_0x4f18de);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5dc86f);}}function Dt(_0x1708ca,_0x148d4e,_0x341815){for(const _0x175cb7 of _0x148d4e['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x175cb7['root']==_0x175cb7)return!0x1;if(!_0x341815['containsItem'](_0x175cb7))return!0x1;if(_0x1708ca['isObject'](_0x175cb7)||_0x1708ca['isLimit'](_0x175cb7))return!0x0;}return!0x1;}function vt(_0x64d3f2){return _0x64d3f2['end']['parent']==_0x64d3f2['start']['nodeAfter']&&_0x64d3f2['end']['isAtStart'];}function Pt(_0x2d03e6,_0x279dd3,_0x50e7fd,_0x48a0aa){const _0xd39d2=_0x345514=>!_0x345514['item']['is']('$textProxy')&&!_0x48a0aa['isObject'](_0x345514['item']),_0x49d4c3=_0x2d03e6['start']['getLastMatchingPosition'](_0xd39d2),_0x29c901=_0x2d03e6['end']['getLastMatchingPosition'](_0xd39d2,{'direction':'backward'});return(!_0x2d03e6['start']['isEqual'](_0x49d4c3)||!_0x2d03e6['end']['isEqual'](_0x29c901))&&(_0x49d4c3['isBefore'](_0x29c901)?_0x50e7fd['updateMarker'](_0x279dd3,{'range':_0x50e7fd['createRange'](_0x49d4c3,_0x29c901)}):_0x50e7fd['removeMarker'](_0x279dd3),!0x0);}function xt(_0x26738a){return _0x274975(_0x26738a);}function Ut(_0x52356d){const _0x4fa479=_0x52356d['start']['nodeAfter'];return _0x4fa479&&_0x4fa479['is']('element');}function Gt(_0x441191){return vt(_0x441191)||function(_0x569dbd){return _0x569dbd['start']['parent']==_0x569dbd['end']['nodeBefore']&&_0x569dbd['start']['isAtEnd'];}(_0x441191);}function Ht(_0x386afc,_0x4eb440){try{const _0x441ded=_0x386afc['getRange']();for(const _0x3e6f43 of _0x4eb440)if(_0x386afc!==_0x3e6f43&&_0x441ded&&_0x441ded['isIntersecting'](_0x3e6f43['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function $t(_0x184a09,_0x37cf2a){return null==_0x184a09['end']['nodeBefore']&&_0x184a09['end']['parent']==_0x184a09['start']['nodeAfter']?Vt(_0x184a09['start']['nodeAfter'],_0x37cf2a):_0x184a09;}function Vt(_0x5d29db,_0x438f75){const _0x34461f=_0x438f75['schema']['isObject'](_0x5d29db)||_0x438f75['schema']['isSelectable'](_0x5d29db);return _0x438f75['createRange'](_0x438f75['createPositionAt'](_0x5d29db,'before'),_0x34461f?_0x438f75['createPositionAfter'](_0x5d29db):_0x438f75['createPositionAt'](_0x5d29db,'end'));}function Wt(_0x3b323e,_0x5e02d7,_0x5d64f5,_0x563bf9){return!!jt(_0x3b323e,_0x5e02d7)&&_0x5d64f5['end']['isEqual'](_0x563bf9['start']);}function jt(_0xecfade,_0x2b6ab6){if(!_0xecfade['_isDataLoaded']||!_0x2b6ab6['_isDataLoaded'])return!0x1;const _0x41ca27=new Set(Object['keys'](_0xecfade['attributes'])),_0x2c0e78=new Set(Object['keys'](_0x2b6ab6['attributes']));if(_0x41ca27['delete']('groupId'),_0x2c0e78['delete']('groupId'),0x0==_0x41ca27['size']&&0x0==_0x2c0e78['size'])return!0x0;if(_0x41ca27['size']!=_0x2c0e78['size'])return!0x1;const _0x4e680d={..._0xecfade['attributes']},_0x3e293f={..._0x2b6ab6['attributes']};return delete _0x4e680d['groupId'],delete _0x3e293f['groupId'],JSON['stringify'](_0x4e680d)==JSON['stringify'](_0x3e293f);}function zt(_0x4b2808,_0x2619ef){const _0x2442d1=Kt(_0x4b2808['attributes']),_0x478752=Kt(_0x2619ef);if(!_0x4b2808['_isDataLoaded'])return!0x1;for(const _0x24e52a of Object['keys'](_0x478752))if(!st(_0x2442d1[_0x24e52a],_0x478752[_0x24e52a]))return!0x1;return!0x0;}function Kt(_0xbd3bc1){const _0x411e10=Object['assign']({},_0xbd3bc1);return delete _0x411e10['skipNestingCheck'],delete _0x411e10['tablePasteChainId'],_0x411e10;}function Xt(_0x4e3c12){return _0x4e3c12['split']('|')[0x0];}class SuggestionController extends/* #__PURE__ -- @preserve */
26
- _0x2671d6(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x24d78f,_0x3da443,_0xb7ac93,_0x461257){super(),this['model']=_0x3da443,this['view']=_0xb7ac93,this['commentThreadController']=_0x461257,this['_editor']=_0x24d78f,this['_acceptCommand']=_0x24d78f['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x24d78f['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5144d5,_0x52cfc4)=>_0x5144d5||_0x52cfc4),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3dcfb4=>_0x3dcfb4&&this['_editor']['model']['canEditAt'](_0x3da443['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x185360=>_0x185360&&this['_editor']['model']['canEditAt'](_0x3da443['getRanges']())),this['_pendingAction']=null,_0xb7ac93['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xb7ac93,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xb7ac93,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xb7ac93,'change:isDirty',()=>{_0xb7ac93['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 _0x113613=Tt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x113613);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class BaseSuggestionThreadView extends _0x3dabb4{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x546b4b,_0x35a026,_0xde16ca,_0x848fe){super(_0x546b4b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1b5838(_0x546b4b,Tt(_0x546b4b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x35a026['authoredAt']),this['bind']('authoredAt')['to'](_0x35a026),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',_0x35a026,'authoredAt',this,'descriptionParts',(_0x175c12,_0x481184,_0x543fbf)=>{const _0x4f922b=_0x543fbf['map'](_0x22bc0e=>ht(_0x22bc0e['content']))['join']('.\x20')+'.';return Tt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x175c12-0x1,_0x35a026['author']['name'],_0x481184?_0x848fe['formatDateTime'](_0x481184):'',new DOMParser()['parseFromString'](_0x4f922b,'text/html')['body']['textContent']]);}),this['focusables']=new _0x25a70f(),this['focusTracker']=new _0x430cd1(),this['keystrokes']=new _0x49f1ea(),this['focusCycler']=new _0x1a7373({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4d3847=>_0x4d3847['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x35a026,this['_localUser']=_0xde16ca,this['_config']=_0x848fe,_0x848fe['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5c8496(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x568d54}=this['_config'];this['commentsListView']=new _0x568d54(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',_0x48dde2=>_0x48dde2+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1600c2,_0x5b7a5f)=>_0x1600c2||!!_0x5b7a5f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x341e9e}=this['_config'],_0x4f74ab=new _0x341e9e(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x38056d=_0x4f74ab['commentInputView'];return _0x4f74ab['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x38056d,'value',(_0x82e974,_0x978382,_0x28025d)=>!!_0x28025d||_0x82e974&&!_0x978382),_0x38056d['on']('submit',(_0x448622,_0x134d0f)=>{this['fire']('addComment',_0x134d0f),_0x38056d['editor']['setData']('');}),_0x38056d['on']('cancel',()=>this['focus']()),_0x38056d['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4f74ab;}}class SuggestionThreadView extends BaseSuggestionThreadView{['suggestionView'];['_descriptionElement'];constructor(_0x1d9e17,_0x6e2c55,_0x2dadec,_0xeb401e){super(_0x1d9e17,_0x6e2c55,_0x2dadec,_0xeb401e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x494a2f=>_0x494a2f&&_0x494a2f[0x0]?_0x494a2f[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3408e6,_0x3cd22a)=>{let _0x35a7d7='';for(const _0x3a7ab7 of _0x3408e6)_0x35a7d7+='<p>'+ht(_0x3a7ab7['content'],_0x3a7ab7['color'])+'</p>';return _0x3cd22a?_0x35a7d7:_0x332d04(_0x35a7d7,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xeb401e['SuggestionView'](_0x1d9e17,_0x6e2c55,{'formatDateTime':_0xeb401e['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 _0x1fbc41=this['bindTemplate'],_0x1f583e=[this['suggestionView']];return this['commentsListView']&&_0x1f583e['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1f583e['push'](this['commentThreadInputView']),_0x1f583e['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1fbc41['if']('isActive','ck-suggestion-wrapper--active'),_0x1fbc41['to']('type',_0x2017db=>'ck-suggestion-'+_0x2017db),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':_0x1fbc41['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1f583e};}['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 _0x3dabb4{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5c5a4f,_0x4ef060,_0x5adce0){super(_0x5c5a4f),this['_model']=_0x4ef060,this['_config']=_0x5adce0,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4ef060),this['acceptButton']=this['_createButton'](Tt(_0x5c5a4f,'Accept\x20suggestion'),_0x4370cb,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Tt(_0x5c5a4f,'Discard\x20suggestion'),_0x7afe80,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2f641b(_0x5c5a4f,_0x4ef060['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x25a70f([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x430cd1(),this['keystrokes']=new _0x49f1ea(),this['focusCycler']=new _0x1a7373({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x164023=>_0x164023['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xaa592=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xaa592['innerHTML']=this['description'],this['on']('change:description',(_0x458e74,_0x3ca378,_0x38185f)=>{_0xaa592['innerHTML']=_0x38185f;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x252f30=this['bindTemplate'],_0x114a03=[{'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':_0x252f30['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x252f30['to']('authoredAt',_0x51f220=>this['_config']['formatDateTime'](_0x51f220))}]}]},{'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']&&_0x114a03['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':_0x114a03}]};}['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'](_0x2a8bec,_0x5f5829,_0x421b82,_0x371bd8,_0x1a8da7){const _0x52973b=new _0x80ad2c(this['locale']);return _0x52973b['set']({'label':_0x2a8bec,'icon':_0x5f5829,'tooltip':!0x0,'tooltipPosition':_0x1a8da7}),_0x52973b['extendTemplate']({'attributes':{'class':_0x421b82}}),_0x52973b['on']('execute',()=>{this['fire'](_0x371bd8,this['_model']['id']);}),_0x52973b;}['_setupKeyboardNavigation'](){const _0x12b434=this['element'];this['keystrokes']['listenTo'](_0x12b434);for(const _0x5b8add of this['focusables'])this['focusTracker']['add'](_0x5b8add['element']),this['keystrokes']['listenTo'](_0x5b8add['element']);this['keystrokes']['set']('enter',(_0x578f40,_0x5ca021)=>{_0x12b434===_0x578f40['target']&&(this['focusCycler']['focusFirst'](),_0x5ca021());}),this['keystrokes']['set']('esc',(_0x54a8d6,_0x46cfdd)=>{_0x12b434!==_0x54a8d6['target']&&(this['focus'](),_0x46cfdd());});}}class TrackChangesUI extends _0x3ea3b4{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[TrackChangesEditing,_0x2735a2,_0x181319,_0x1a224d,_0x44a098];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b32ee){super(_0x4b32ee),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3b0e43=this['editor']['config'];_0x3b0e43['define']('trackChanges.SuggestionThreadView',SuggestionThreadView),_0x3b0e43['define']('trackChanges.SuggestionView',SuggestionView),_0x3b0e43['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3b0e43['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x32b822,_0x239159){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3a7fe6,_0x38fde6]of this['_handleControllerBuffer']){const _0x3fc54b=this['_suggestionToController']['has'](_0x3a7fe6);_0x3fc54b||_0x38fde6?_0x3fc54b&&_0x38fde6&&this['_destroyController'](_0x3a7fe6):this['_initializeController'](_0x3a7fe6);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x44a098)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x32b822,_0x239159);}['init'](){const _0x34504d=this['editor'],_0x90019a=_0x34504d['plugins']['get'](TrackChangesEditing),_0x317d6d=_0x34504d['plugins']['get'](_0x1a224d),_0x3bbcd4=_0x34504d['plugins']['get'](_0x44a098),_0x1c9529=_0x34504d['plugins']['get'](_0x181319);this['_addUIComponentsToFactory'](),_0x3bbcd4['addSourceCollector'](()=>{const _0x325e08=[];for(const [_0x2f4267,_0x222b7a]of Array['from'](this['_suggestionToController'])){const _0x59d185=_0x2f4267['getAllAdjacentSuggestions'](),_0x2e8ceb=[];for(const _0x1c97d0 of _0x59d185){if(!_0x1c97d0['isInContent'])continue;if(_0x1c97d0['isMultiRange']){_0x2e8ceb['push'](..._0x1c97d0['getRanges']());continue;}const _0x2bb065=_0x1c97d0['getFirstRange']();if(_0x2e8ceb['length']>0x0){const _0xef4f4b=_0x2e8ceb[0x0]['getJoined'](_0x2bb065);if(_0xef4f4b){_0x2e8ceb[0x0]=_0xef4f4b;continue;}}_0x2e8ceb['push'](_0x2bb065);}_0x325e08['push']([_0x222b7a['view'],_0x2e8ceb]);}return _0x325e08;}),this['listenTo'](_0x90019a,'suggestionLoaded',(_0x37a800,_0x3d7cb6)=>{this['listenTo'](_0x3d7cb6,'change:previous',(_0x516954,_0x2302af,_0x215207,_0x2718a5)=>{_0x3d7cb6['isInContent']&&(null==_0x215207?(this['_updateController'](_0x2718a5['head']),this['_handleSuggestionControllerDelayed'](_0x3d7cb6,!0x1)):(this['_updateController'](_0x215207['head']),null==_0x2718a5&&this['_handleSuggestionControllerDelayed'](_0x3d7cb6,!0x0)));}),null!==_0x3d7cb6['previous']?this['_updateController'](_0x3d7cb6['head']):this['_handleSuggestionControllerDelayed'](_0x3d7cb6,!0x1);}),this['listenTo'](_0x90019a,'suggestionUnloaded',(_0x5a89b2,_0x17c1f7,_0x321857)=>{this['stopListening'](_0x17c1f7,'change:previous'),this['_handleControllerBuffer']['delete'](_0x17c1f7),this['_suggestionToController']['has'](_0x17c1f7)&&this['_destroyController'](_0x17c1f7),_0x321857&&this['_updateController'](_0x321857['head']);}),this['listenTo'](_0x90019a,'suggestionChanged',(_0x6d4f47,_0x34dc7e)=>{this['_updateController'](_0x34dc7e);}),this['listenTo'](_0x317d6d,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1c9529,'addComment',(_0x445ffe,{threadId:_0x394d8f,isFromAdapter:_0xb370e4})=>{if(_0xb370e4||!_0x90019a['hasSuggestion'](_0x394d8f))return;const _0x1a5db4=_0x90019a['getSuggestion'](_0x394d8f);this['_suggestionToController']['get'](_0x1a5db4)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xe07827=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x39303d;for(const _0x521a93 in _0xe07827){const _0x1918ec=_0x521a93,_0xd213a2=_0xe07827[_0x1918ec];if('trackChangesLicenseKeyValid'==_0xd213a2||'trackChangesLicenseKeyInvalid'==_0xd213a2||'trackChangesLicenseKeyExpired'==_0xd213a2||'trackChangesLicenseKeyDomainLimit'==_0xd213a2||'trackChangesLicenseKeyNotAllowed'==_0xd213a2||'trackChangesLicenseKeyEvaluationLimit'==_0xd213a2||'trackChangesLicenseKeyUsageLimit'==_0xd213a2){delete _0xe07827[_0x1918ec],_0x39303d=_0xd213a2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x39303d&&_0xe07827['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x39303d&&_0xe07827['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x39303d&&_0xe07827['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x39303d&&_0xe07827['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x39303d&&_0xe07827['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x39303d&&_0xe07827['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x30d59e){const _0xaa287a=this['_suggestionToController']['get'](_0x30d59e);if(!_0xaa287a)return null;return this['editor']['plugins']['get'](_0x1a224d)['getByInnerView'](_0xaa287a['view'])||null;}['getSuggestionForAnnotation'](_0x2ec80){const _0x204458=this['_viewToController']['get'](_0x2ec80['innerView']);return _0x204458?_0x204458['model']:null;}['_refreshActiveMarkers'](){const _0xec3bc5=this['editor']['plugins']['get'](_0x1a224d),_0x242c3a=this['editor']['plugins']['get'](TrackChangesEditing),_0x3184fd=Array['from'](_0xec3bc5['activeAnnotations'],_0x2c5cc5=>_0x2c5cc5['innerView'])['filter'](_0x4d87e9=>this['_viewToController']['has'](_0x4d87e9)),_0x371ffe=[];for(const _0x4f7692 of _0x3184fd){const _0x10ce98=this['_viewToController']['get'](_0x4f7692)['model']['getAllAdjacentSuggestions']();_0x371ffe['push'](..._0x10ce98['reduce']((_0x2f3967,_0x27625d)=>[..._0x2f3967,..._0x27625d['getMarkerNames']()],[]));}_0x242c3a['activeMarkers']=_0x371ffe;}['_addUIComponentsToFactory'](){const _0x418fe4=this['editor'],_0xddcaf7=_0x418fe4['locale'],_0x2f8e77=Tt(_0xddcaf7,'Track\x20changes'),_0x4d218d=new _0x3e5b65([{'type':'switchbutton','model':new _0x4f152d({'withText':!0x0,'isToggleable':!0x0,'label':_0x2f8e77,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4f152d({'withText':!0x0,'label':Tt(_0xddcaf7,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4f152d({'withText':!0x0,'label':Tt(_0xddcaf7,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4f152d({'withText':!0x0,'label':Tt(_0xddcaf7,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4f152d({'withText':!0x0,'label':Tt(_0xddcaf7,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x418fe4['plugins']['has']('TrackChangesPreview')&&_0x4d218d['addMany']([{'type':'separator'},{'type':'button','model':new _0x4f152d({'withText':!0x0,'label':Tt(_0xddcaf7,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2d8f76 of _0x4d218d)if(Yt(_0x2d8f76)){const _0x39fb90=_0x418fe4['commands']['get'](_0x2d8f76['model']['commandName']);_0x2d8f76['model']['bind']('isOn','isEnabled')['to'](_0x39fb90,'value','isEnabled');}_0x418fe4['ui']['componentFactory']['add']('trackChanges',_0x2fbe5b=>this['_createToolbarButton'](_0x2fbe5b,_0x4d218d,_0x2f8e77)),_0x418fe4['ui']['componentFactory']['add']('menuBar:trackChanges',_0x210cec=>this['_createMenuBarMenu'](_0x210cec,_0x4d218d,_0x2f8e77));}['_createToolbarButton'](_0x44e5a7,_0x47d759,_0x24a5e3){const _0x451e51=_0xe3101(_0x44e5a7,_0x140ced),_0x5edce3=this['editor']['commands']['get']('trackChanges');_0x451e51['buttonView']['set']({'tooltip':_0x24a5e3,'label':_0x24a5e3,'icon':_0x2a0832}),_0x451e51['buttonView']['bind']('isOn')['to'](_0x5edce3,'value'),_0x451e51['buttonView']['on']('execute',()=>{_0x5edce3['execute'](),this['editor']['editing']['view']['focus']();}),_0x14603c(_0x451e51,_0x47d759,{'role':'menu'});const _0x2df0cc=[];for(const _0x38deb0 of _0x47d759)Yt(_0x38deb0)&&_0x2df0cc['push'](this['editor']['commands']['get'](_0x38deb0['model']['commandName']));const _0x5e9d93=_0x451e51['buttonView'];return _0x5e9d93['actionView']['unbind']('isEnabled'),_0x5e9d93['arrowView']['unbind']('isEnabled'),_0x5e9d93['actionView']['bind']('isEnabled')['to'](_0x5edce3,'isEnabled'),_0x5e9d93['arrowView']['bind']('isEnabled')['toMany'](_0x2df0cc,'isEnabled',(..._0x2ee767)=>_0x2ee767['some'](_0x56b7d2=>_0x56b7d2)),_0x451e51['on']('execute',_0x183d0e=>{this['editor']['execute'](_0x183d0e['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x451e51;}['_createMenuBarMenu'](_0x40e078,_0x4b4f25,_0xff61a0){const _0x3a1456=new _0x7f1e4f(_0x40e078),_0x34fb80=this['editor']['commands']['get']('trackChanges');_0x3a1456['buttonView']['set']({'label':_0xff61a0,'icon':_0x2a0832});const _0x2d1d61=new _0x51605c(_0x40e078);for(const _0x5a1d90 of _0x4b4f25){if('separator'==_0x5a1d90['type']){_0x2d1d61['items']['add'](new _0x2ebf0c(_0x40e078));continue;}const _0x1bd51c=new _0x43e5a5(_0x40e078,_0x3a1456),_0x9ee1d0=new _0x3ddcae(_0x40e078),_0xa59f9a=_0x5a1d90['model'];_0x9ee1d0['bind'](...Object['keys'](_0xa59f9a))['to'](_0xa59f9a),_0x9ee1d0['delegate']('execute')['to'](_0x3a1456),_0x9ee1d0['on']('execute',()=>{this['editor']['execute'](_0xa59f9a['commandName']),this['editor']['editing']['view']['focus']();}),_0x1bd51c['children']['add'](_0x9ee1d0),_0x2d1d61['items']['add'](_0x1bd51c);}return _0x3a1456['bind']('isEnabled')['to'](_0x34fb80,'isEnabled'),_0x3a1456['panelView']['children']['add'](_0x2d1d61),_0x3a1456;}['_initializeController'](_0x5dfdb1){const _0x518f95=this['editor'],_0x567e51=_0x518f95['config'],_0x51f274=_0x518f95['plugins']['get'](_0x1a224d),_0x174d69=_0x518f95['plugins']['get'](_0x181319),_0x56f1c6=_0x518f95['plugins']['get'](_0x44a098),_0x1f158e=_0x518f95['plugins']['get'](_0x2735a2)['me'],_0x17a945=_0x567e51['get']('trackChanges')['SuggestionThreadView'],_0x217b0b=_0x567e51['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x27082c,CommentThreadInputView:_0x8fa994}=_0x518f95['plugins']['get']('CommentsUI');let _0x3234f9,_0x293e15,_0x20784b;this['_annotationViews']['has'](_0x5dfdb1['id'])?(_0x293e15=this['_annotationViews']['get'](_0x5dfdb1['id']),_0x3234f9=_0x293e15['mainView']):(_0x3234f9=new _0x17a945(_0x518f95['locale'],_0x5dfdb1,_0x1f158e,{'disableComments':this['_disableComments'],'editorConfig':{..._0x567e51['get']('comments.editorConfig'),'licenseKey':_0x567e51['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x567e51['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x567e51['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x567e51['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2eaad4(_0x567e51['get']('locale'),_0x518f95['locale']),'CommentView':_0x567e51['get']('comments')['CommentView'],'CommentsListView':_0x27082c,'CommentThreadInputView':_0x8fa994,'SuggestionView':_0x217b0b}),_0x3234f9['suggestionView']['acceptButton']['on']('execute',()=>{_0x518f95['editing']['view']['focus']();}),_0x3234f9['suggestionView']['discardButton']['on']('execute',()=>{_0x518f95['editing']['view']['focus']();}),_0x293e15=_0x51f274['createAnnotationView'](this['editor']['locale'],_0x3234f9),_0x293e15['bind']('isDirty')['to'](_0x3234f9,'isDirty'),_0x293e15['bind']('length')['to'](_0x3234f9),_0x293e15['bind']('type')['to'](_0x3234f9,'type',_0x199e2a=>'suggestion-'+_0x199e2a),_0x3234f9['on']('escape',()=>{_0x20784b['fire']('escape');}),this['_annotationViews']['set'](_0x5dfdb1['id'],_0x293e15));const _0x3b8783=_0x174d69['createCommentThreadController'](_0x5dfdb1['commentThread'],_0x3234f9),_0xd227d6=new SuggestionController(_0x518f95,_0x5dfdb1,_0x3234f9,_0x3b8783),_0xd87d6c=_0x5dfdb1['getAllAdjacentSuggestions']()['filter'](_0x5ca7d5=>_0x5ca7d5['isInContent']);_0x3234f9['descriptionParts']=_0x518f95['plugins']['get'](TrackChangesEditing)['descriptionFactory']['getDescriptions'](_0xd87d6c),this['_suggestionToController']['set'](_0x5dfdb1,_0xd227d6),this['_viewToController']['set'](_0x3234f9,_0xd227d6);const _0x2390d2=()=>{const _0x2bf886=[],_0x3027ee=_0x5dfdb1['getAllAdjacentSuggestions']()['filter'](_0x328f23=>_0x328f23['isInContent']);for(const _0xb33c22 of _0x3027ee)_0x2bf886['push'](..._0xb33c22['getMarkers']());return _0x43e048(_0x518f95['editing'],_0x2bf886);};_0x20784b=_0x51f274['createAnnotation']({'view':_0x293e15,'target':_0x2390d2,'type':()=>'suggestion-'+_0xd227d6['view']['type'],'isVisible':!!_0x2390d2()}),_0x174d69['_bindAnnotationToEditors'](_0x3234f9,_0x20784b),_0x51f274['add'](_0x20784b),_0x56f1c6['registerAnnotation'](_0x20784b);}['_destroyController'](_0x79e7d7){const _0x30da04=this['editor']['plugins']['get'](_0x181319),_0x25a5a7=this['editor']['plugins']['get'](_0x1a224d),_0x9a2272=this['_suggestionToController']['get'](_0x79e7d7),_0x1958ae=_0x9a2272['view'],_0x2369e8=_0x25a5a7['getByInnerView'](_0x1958ae);_0x30da04['_unbindEditors'](_0x1958ae),_0x2369e8&&_0x25a5a7['remove'](_0x2369e8),this['_suggestionToController']['delete'](_0x79e7d7),this['_viewToController']['delete'](_0x1958ae),_0x9a2272['destroy']();}['_updateController'](_0x116115){if(!_0x116115['isInContent']||!this['_suggestionToController']['has'](_0x116115))return;const _0x2f4423=this['editor']['plugins']['get'](TrackChangesEditing),_0x5ce446=this['_suggestionToController']['get'](_0x116115),_0x2adab3=_0x116115['getAllAdjacentSuggestions']();_0x5ce446['view']['descriptionParts']=_0x2f4423['descriptionFactory']['getDescriptions'](_0x2adab3);}['destroy'](){for(const _0x276d55 of this['_suggestionToController']['keys']())this['_destroyController'](_0x276d55);for(const _0x3f8d23 of this['_annotationViews']['values']())_0x3f8d23['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function Yt(_0x8a5632){return'model'in _0x8a5632;}class TrackChanges extends _0x3ea3b4{static get['requires'](){return[TrackChangesEditing,TrackChangesUI,_0x4b21f6];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4bef7e){this['editor']['plugins']['get'](TrackChangesEditing)['adapter']=_0x4bef7e;}get['adapter'](){return this['editor']['plugins']['get'](TrackChangesEditing)['adapter'];}['addSuggestion'](_0x20690c){return this['editor']['plugins']['get'](TrackChangesEditing)['addSuggestionData'](_0x20690c);}['getSuggestions']({skipNotAttached:_0x589755=!0x1,toJSON:_0x545100=!0x1}={}){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestions']({'skipNotAttached':_0x589755,'toJSON':_0x545100});}['getSuggestion'](_0x9c20a0){return this['editor']['plugins']['get'](TrackChangesEditing)['getSuggestion'](_0x9c20a0);}}const qt=['Pagination'];class TrackChangesData extends _0x3ea3b4{static get['requires'](){return[TrackChangesEditing];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x122bac=this['editor'];if(_0x122bac['config']['define']('trackChangesData.editorCreator',_0x563400=>{const _0x4955b6=_0x122bac['model']['document']['getRootNames']()['reduce']((_0x1be2b3,_0x4976ef)=>(_0x1be2b3[_0x4976ef]='',_0x1be2b3),{});return _0x122bac['constructor']['create'](_0x4955b6,_0x563400);}),'function'!=typeof _0x122bac['config']['get']('trackChangesData')['editorCreator'])throw new _0x180e5c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4fe368){return Zt(this['editor'],!0x0,_0x4fe368);}['getDataWithDiscardedSuggestions'](_0xc4ee58){return Zt(this['editor'],!0x1,_0xc4ee58);}}class TrackChangesDataGetter extends _0x3ea3b4{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x36ed01){function _0x561806(_0x17d0f7){return _0x17d0f7['map'](_0x54f248=>String['fromCharCode'](_0x54f248))['join']('');}super(_0x36ed01),this['result']='end',_0x36ed01[_0x561806([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x561806([0x76,0x69,0x65,0x77])][_0x561806([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x561806([0x61,0x75,0x74,0x6f]),_0x36ed01[_0x561806([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x561806([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x561806([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x561806([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x561806([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(_0x57bd74){return void 0x0!==_0x57bd74['getRootsAttributes'];}async function Zt(_0x3a116c,_0x1e9e00,_0x385bac){const _0x5450f0=_0x34f537(_0x3a116c,qt);if(_0x5450f0['plugins']['push'](TrackChangesEditing,TrackChangesDataGetter),Qt(_0x3a116c)){_0x5450f0['roots']=Object['create'](null);for(const _0x489287 of _0x3a116c['model']['document']['getRootNames']())_0x5450f0['roots'][_0x489287]={'modelAttributes':_0x3a116c['getRootAttributes'](_0x489287)};}const _0x27471a=document['createDocumentFragment'](),_0x5876da=_0x3a116c['config']['get']('trackChangesData')['editorCreator'],_0x5c28b1=await _0x5876da(_0x5450f0,()=>function(_0x54780e){const _0x56986c=document['createElement']('div');return _0x54780e['appendChild'](_0x56986c),_0x56986c;}(_0x27471a));!function(_0x4f34c6,_0x3041c0){const _0x48c61e=_0x4f34c6['model']['document']['getRootNames']()['reduce']((_0x4c3a49,_0x2a8cfe)=>(_0x4c3a49[_0x2a8cfe]=_0x4f34c6['data']['get']({'rootName':_0x2a8cfe}),_0x4c3a49),{}),_0x5bf3eb=_0x4f34c6['plugins']['get']('Users')['users']['map'](_0x370914=>({'id':_0x370914['id'],'name':_0x370914['name']})),_0x13b058=_0x4f34c6['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x54442d=_0x4f34c6['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x553c4e=_0x3041c0['plugins']['get']('Users'),_0x22580c=_0x3041c0['plugins']['get']('TrackChangesEditing'),_0xdfb933=_0x3041c0['plugins']['get']('CommentsRepository');for(const _0x4b1776 of _0xdfb933['getCommentThreads']())_0x4b1776['remove']();for(const _0x3df108 of _0x5bf3eb)_0x553c4e['getUser'](_0x3df108['id'])||_0x553c4e['addUser'](_0x3df108);_0x553c4e['me']||_0x553c4e['useAnonymousUser']();for(const _0x151501 of _0x54442d)_0xdfb933['addCommentThread'](_0x151501);for(const _0xa33e37 of _0x13b058)_0x22580c['addSuggestionData'](_0xa33e37);_0x3041c0['data']['set'](_0x48c61e);}(_0x3a116c,_0x5c28b1),_0x5c28b1['execute'](_0x1e9e00?'acceptAllSuggestions':'discardAllSuggestions');const _0x2a5290=Qt(_0x5c28b1)?_0x5c28b1['getFullData'](_0x385bac):_0x5c28b1['data']['get'](_0x385bac);return await _0x5c28b1['destroy'](),_0x2a5290;}class TrackChangesPreviewView extends _0x3dabb4{['options'];constructor(_0x2fd788,_0x22fb29){super(_0x2fd788),this['options']=_0x22fb29,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'](_0x15fac6,_0x566f47){if(!this['element'])return;const _0x162ae0=[];for(const [_0x1b9ee0,_0x2452af]of _0x15fac6){const _0x45c46d=document['createElement']('div');_0x45c46d['setAttribute']('data-ck-root-name',_0x1b9ee0),_0x45c46d['className']=_0x2452af['classes']+'\x20ck-track-changes-preview__root-container',_0x45c46d['innerHTML']=_0x2452af['content'],_0x162ae0['push'](_0x45c46d);}_0x566f47(this['element'],_0x162ae0),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class PreviewFinalContentCommand extends _0x14e120{constructor(_0x508e15){super(_0x508e15),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2235ee=this['editor'],_0x9b98ce=_0x2235ee['locale'],_0x121c7b=_0x2235ee['plugins']['get']('Dialog');let _0x473f08;const _0x277434=function(_0x1c9009){const _0x52ae71={};if('editables'in _0x1c9009['ui']['view']){for(const [_0x2bee67,_0x4d56bd]of Object['entries'](_0x1c9009['ui']['view']['editables']))_0x52ae71[_0x2bee67]=_0x4d56bd['element'];}else _0x52ae71[_0x1c9009['model']['document']['getRootNames']()[0x0]]=_0x1c9009['ui']['view']['editable']['element'];return _0x52ae71;}(_0x2235ee),_0x32b13d=function(_0xf201d0){let _0x5e3a74=0x0;for(const _0x1b1e79 of Object['values'](_0xf201d0))_0x5e3a74=Math['max'](_0x5e3a74,_0x1b1e79['getBoundingClientRect']()['width']);let _0x1767e3=0x0;for(const _0x1ae788 of Object['values'](_0xf201d0))_0x1767e3+=_0x1ae788['getBoundingClientRect']()['height'];const _0x42edb9=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x43747d=Math['min'](_0x1767e3,_0x42edb9);return{'width':_0x5e3a74,'height':_0x43747d};}(_0x277434);_0x121c7b['show']({'id':'finalContentPreview','title':Tt(_0x9b98ce,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new TrackChangesPreviewView(_0x9b98ce,{'dialogRects':_0x32b13d}),'onHide':()=>{_0x473f08['detachFromDom']();},'onShow':()=>{_0x2235ee['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x15a0f4=>{const _0x4b692c=this['_standarizeRootsData'](_0x15a0f4,_0x2235ee,_0x277434);_0x121c7b['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4b692c,_0x2235ee['config']['get']('trackChanges.preview.renderFunction'));}),_0x473f08=new _0x16da8c(_0x9b98ce,[_0x121c7b['view']]),_0x473f08['attachToDom'](),_0x473f08['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2235ee['once']('destroy',()=>{_0x473f08['detachFromDom']();});const _0x1d70f9=_0x121c7b['view']['headerView']['class'];_0x121c7b['view']['headerView']['class']=_0x1d70f9?_0x1d70f9+'\x20ck-reset_all':'ck-reset_all',_0x121c7b['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x121c7b['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x6d00dd=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x561cc8=_0x6d00dd['previewMode'],_0x49b223={};if('$labels'===_0x561cc8){for(const _0x3ef5e5 of _0x6d00dd['getMergeFieldsIds']())_0x49b223[_0x3ef5e5]=_0x6d00dd['getLabel'](_0x3ef5e5)||_0x3ef5e5;}else{const _0x1a4f92='$defaultValues'===_0x561cc8?_0x6d00dd['getDefaultValues']():_0x6d00dd['getDataSetValues'](_0x561cc8,!0x0);for(const _0x4eac81 of Object['entries'](_0x1a4f92)){const [_0x3ac204,_0x9739a8]=_0x4eac81;_0x49b223[_0x3ac204]=null!==_0x9739a8?_0x9739a8:_0x6d00dd['getLabel'](_0x3ac204)||_0x3ac204;}}return{'mergeFieldsData':_0x49b223};}['_standarizeRootsData'](_0x1ffa18,_0x138bd0,_0xabff8c){let _0xa0be9d;if('string'==typeof _0x1ffa18){const _0x4a8f0e=_0x138bd0['model']['document']['getRootNames']()[0x0];_0xa0be9d={[_0x4a8f0e]:_0x1ffa18};}else _0xa0be9d=_0x1ffa18;const _0x40a541=this['_fixMediaEmbeds'](_0xa0be9d,_0x138bd0),_0xf7aef1=function(_0x158048,_0x43e0b9){for(const [_0x19dcba,_0x141bbc]of _0x158048)_0x141bbc['classes']=_0x43e0b9[_0x19dcba]['classList']['value']['replace']('ck-focused','');return _0x158048;}(this['_sortRoots'](_0x138bd0)['reduce']((_0x278108,_0x2883a7)=>(_0x278108['push']([_0x2883a7,{'content':_0x40a541[_0x2883a7],'classes':''}]),_0x278108),[]),_0xabff8c);return _0xf7aef1;}['_fixMediaEmbeds'](_0x430b7e,_0x46fb0b){if(!_0x46fb0b['plugins']['has']('MediaEmbedEditing'))return _0x430b7e;const _0x1d8af9=_0x46fb0b['plugins']['get']('MediaEmbedEditing');for(const [_0x21c50d,_0x1a3fbe]of Object['entries'](_0x430b7e)){const _0x5bec4e=document['createElement']('div');_0x5bec4e['innerHTML']=_0x1a3fbe,(_0x5bec4e['querySelectorAll']('figure.media')['forEach'](_0x363f96=>{const _0x2e73f6=_0x363f96['querySelector']('oembed');if(_0x2e73f6){const _0x45038b=_0x2e73f6['getAttribute']('url');if(_0x45038b){const _0x482ceb=_0x1d8af9['registry']['getMediaViewElement'](new et(_0x46fb0b['editing']['view']['document']),_0x45038b,{'elementName':'','renderForEditingView':!0x0}),_0x22667b=document['createElement']('div');_0x22667b['classList']['add']('ck-media__wrapper'),_0x482ceb['render'](_0x22667b,_0x46fb0b['editing']['view']['domConverter']),_0x2e73f6['replaceWith'](_0x22667b);}}}),_0x430b7e[_0x21c50d]=_0x5bec4e['innerHTML']);}return _0x430b7e;}['_sortRoots'](_0x5f9aaa){if(!function(_0x240782){return void 0x0!==_0x240782['getRootsAttributes'];}(_0x5f9aaa))return _0x5f9aaa['model']['document']['getRootNames']();const _0x281269=[],_0x2e6708=new Map();for(const _0x585049 of _0x5f9aaa['model']['document']['getRootNames']()){const _0x11954c=_0x5f9aaa['editing']['view']['getDomRoot'](_0x585049)['getClientRects']()['item'](0x0);_0x281269['push'](_0x585049),_0x2e6708['set'](_0x585049,_0x11954c);}return _0x281269['sort']((_0x1e9ac5,_0xcac34)=>{const _0xfaa34b=_0x2e6708['get'](_0x1e9ac5),_0x48ae5c=_0x2e6708['get'](_0xcac34);return _0xfaa34b['y']-_0x48ae5c['y']||_0xfaa34b['x']-_0x48ae5c['x'];}),_0x281269;}}class TrackChangesPreview extends _0x3ea3b4{static get['requires'](){return[TrackChangesData,_0x38eea3];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xb3b47f){super(_0xb3b47f),_0xb3b47f['commands']['add']('previewFinalContent',new PreviewFinalContentCommand(this['editor'])),_0xb3b47f['config']['define']('trackChanges.preview.renderFunction',(_0x1f3884,_0x3827b1)=>{for(const _0x35a3d1 of _0x3827b1)_0x1f3884['appendChild'](_0x35a3d1);});}}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};