@ckeditor/ckeditor5-track-changes 46.0.1-alpha.13 → 46.0.1-alpha.14

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.
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x46da0f,Plugin as _0xda0844,PendingActions as _0x19d838}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x43dce0,ObservableMixin as _0x50446f,uid as _0x47d328,priorities as _0x4347f3,insertToPriorityArray as _0x6e1598,toArray as _0x3decfb,logWarning as _0x1407e2,getEnvKeystrokeText as _0x19f29a,FocusTracker as _0x341c87,KeystrokeHandler as _0x1f0e6d,Collection as _0x443e8d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x2e94b3,IconCancel as _0x4b3dd8,IconTrackChanges as _0xbfa4fd}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x28c5d9,View as _0x19b119,ViewCollection as _0x1d24cb,FocusCycler as _0x8420b,UIModel as _0x2b229c,createDropdown as _0x9e14e7,SplitButtonView as _0x1b948a,addListToDropdown as _0x485cac,MenuBarMenuView as _0x3df343,MenuBarMenuListView as _0x404d20,ListSeparatorView as _0x32c46e,MenuBarMenuListItemView as _0x2bb7b6,MenuBarMenuListItemButtonView as _0x4ba611,BodyCollection as _0x5f0ece,Dialog as _0x7eee77}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x9ab31d,hashObject as _0x245ac6,surroundingMarkersDetector as _0x6b7445,FOCUS_ANNOTATION_KEYSTROKE as _0xf74409,AriaDescriptionView as _0x3c0408,setupThreadKeyboardNavigation as _0xaa71c4,trimHtml as _0x50c4db,UserView as _0x43ae1f,LateFocusButtonView as _0x29d450,getDateTimeFormatter as _0xcc5a57,getAllMarkersDomElementsSorted as _0x474c9a,sanitizeEditorConfig as _0x593e0b}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x124cbb,ModelLiveRange as _0x40d9f2,ModelLivePosition as _0x37ee90,ViewDowncastWriter as _0x2ea243}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x190e5d,toWidget as _0x5132ec}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x54b6be,set as _0x402253,isEqual as _0x5b4dfa,unset as _0x16d659,omit as Ut}from'es-toolkit/compat';import{Delete as _0x5c4e36,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x9f3d28}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x185fe5}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x46da0f{['_enabledCommands'];constructor(_0x58cf6b,_0x44f1b3){super(_0x58cf6b),this['_enabledCommands']=_0x44f1b3,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 _0x241859 of this['editor']['commands']['commands']())_0x241859['affectsData']&&!this['_enabledCommands']['has'](_0x241859)&&_0x241859['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5d6719 of this['editor']['commands']['commands']())_0x5d6719['affectsData']&&!this['_enabledCommands']['has'](_0x5d6719)&&_0x5d6719['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x46da0f{['_suggestions'];constructor(_0x327637,_0x8b68e9){super(_0x327637),this['_suggestions']=_0x8b68e9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xa81dd7){const _0x2ed53e=this['_suggestions']['get'](_0xa81dd7);if(!_0x2ed53e)throw new _0x43dce0('track-changes-accept-suggestion-not-found',this);const _0x23a17a=_0x2ed53e['getRanges']();this['editor']['model']['canEditAt'](_0x23a17a)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2ed53e);}}class $ extends _0x46da0f{['_suggestions'];constructor(_0x155820,_0x753b5e){super(_0x155820),this['_suggestions']=_0x753b5e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xa89cdb){const _0xe372eb=this['_suggestions']['get'](_0xa89cdb);if(!_0xe372eb)throw new _0x43dce0('track-changes-discard-suggestion-not-found',this);const _0x32d9f9=_0xe372eb['getRanges']();this['editor']['model']['canEditAt'](_0x32d9f9)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xe372eb);}}function ls(_0x243d48,_0x27dc4e){let _0xf950bf='';return _0xf950bf+=_0x243d48['split']('*')['map']((_0x5ce8e6,_0x32cfd0)=>_0x32cfd0%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+tn(_0x5ce8e6)+'</span>':tn(_0x5ce8e6))['join'](''),_0x27dc4e&&(_0xf950bf+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x27dc4e['value']+'\x22\x20title=\x22'+_0x27dc4e['title']+'\x22></span>'),_0xf950bf;}function tn(_0x1a04cc){const _0xe5748b=document['createElement']('span');return _0xe5748b['innerText']=_0x1a04cc,_0xe5748b['innerHTML'];}function ts(_0x1f9666){return _0x1f9666['sort']((_0x5b40de,_0x47c5dc)=>'attribute'===_0x5b40de['type']&&'attribute'!==_0x47c5dc['type']?-0x1:'attribute'!==_0x5b40de['type']&&'attribute'===_0x47c5dc['type']?0x1:'deletion'==_0x5b40de['type']&&'deletion'!=_0x47c5dc['type']?-0x1:'deletion'!=_0x5b40de['type']&&'deletion'==_0x47c5dc['type']?0x1:0x0);}function to(_0x4f5e83,_0xf925a0){let _0x2e5669,_0x95fba2=0x0;const _0x253c6c=[],_0x57e663=_0xf925a0['schema'];for(;_0x95fba2<_0x4f5e83['length'];){const _0x541658=_0x4f5e83[_0x95fba2],_0x2f27cc=_0x4f5e83[_0x95fba2+0x1];_0x2e5669||(_0x2e5669=_0xf925a0['createPositionBefore'](_0x541658)),nn(_0xf925a0,_0x541658,_0x2f27cc)||(_0x253c6c['push'](_0xf925a0['createRange'](_0x2e5669,_0x57e663['isObject'](_0x541658)?_0xf925a0['createPositionAfter'](_0x541658):_0xf925a0['createPositionAt'](_0x541658,'end'))),_0x2e5669=null),_0x95fba2++;}return _0x253c6c;}function nn(_0xd58d19,_0x1700fc,_0x53bc5e){if(!_0x53bc5e)return!0x1;const _0x268f7e=_0xd58d19['createPositionAfter'](_0x1700fc),_0x575e5e=_0xd58d19['createPositionBefore'](_0x53bc5e);return _0x268f7e['isTouching'](_0x575e5e);}function rs(_0x1c5d60,_0x3c0f51,_0x212940){for(;_0x212940['length'];){const _0x3e1cbf=_0x212940['splice'](0x0,0x64);_0x1c5d60['change'](()=>{for(const _0x19efdb of _0x3e1cbf)_0x19efdb['isInContent']&&_0x3c0f51['execute'](_0x19efdb['id']);});}}class M extends _0x46da0f{['_command'];['_suggestions'];constructor(_0x469733,_0x3fbfc5,_0x28829a){super(_0x469733),this['_command']=_0x3fbfc5,this['_suggestions']=_0x28829a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x172248=Array['from'](this['_suggestions']['values']())['some'](_0x4982ca=>_0x4982ca['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x172248;}['execute'](){const _0x19d3a7=ts(Array['from'](this['_suggestions']['values']()));for(const _0x29a8f6 of _0x19d3a7){const _0x2c7edc=_0x29a8f6['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2c7edc))return;}rs(this['editor']['model'],this['_command'],_0x19d3a7);}}class B extends _0x46da0f{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1d622e,_0x79e230,_0x3d50a7){super(_0x1d622e),this['_command']=_0x79e230,this['_suggestions']=_0x3d50a7,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1eae82=this['editor']['model']['document']['selection'],_0x14f186=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4b8636,_0x33dc8b){const _0x5ce91f=Array['from'](_0x4b8636['getRanges']()),_0x116273=new Set();for(const _0x24715c of _0x33dc8b)if(_0x24715c['isInContent']){for(const _0x1ba172 of _0x5ce91f)for(const _0x200ceb of _0x24715c['getRanges']())(_0x1ba172['isIntersecting'](_0x200ceb)||_0x4b8636['isCollapsed']&&!_0x24715c['isMultiRange']&&_0x24715c['next']&&_0x200ceb['end']['isTouching'](_0x1ba172['start']))&&_0x116273['add'](_0x24715c);}return _0x116273;}(_0x1eae82,_0x14f186),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5e16c3=ts(Array['from'](this['_selectedSuggestions']));for(const _0x50f251 of _0x5e16c3){const _0x55d5ba=_0x50f251['getRanges']();if(!this['editor']['model']['canEditAt'](_0x55d5ba))return;}rs(this['editor']['model'],this['_command'],_0x5e16c3);}}class T extends/* #__PURE__ -- @preserve */
24
- _0x50446f(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3abe77,_0x1e7317){super(),this['id']=_0x1e7317['id'],this['type']=_0x1e7317['type'],this['subType']=_0x1e7317['subType']||null,this['author']=_0x1e7317['author'],this['creator']=_0x1e7317['creator']||_0x1e7317['author'],this['isExternal']=Boolean(_0x1e7317['attributes']&&_0x1e7317['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1e7317['originalSuggestionId']||null,this['_model']=_0x3abe77,this['_onAccept']=_0x1e7317['onAccept'],this['_onDiscard']=_0x1e7317['onDiscard'],this['_onAttributesChange']=_0x1e7317['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1e7317['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 _0x3900f3=this;for(;_0x3900f3['previous'];)_0x3900f3=_0x3900f3['previous'];return _0x3900f3;}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'](_0x1eee2f){this['_markerNames']['add'](_0x1eee2f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x226eb0=>this['_model']['markers']['get'](_0x226eb0))['filter'](_0x1d3e2f=>_0x1d3e2f);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x74ec44=>{for(const _0x21bc1f of this['getMarkers']())_0x74ec44['removeMarker'](_0x21bc1f);}),this['_markerNames']['clear']();}['removeMarker'](_0x8a3da4){this['_model']['change'](_0x7e5030=>{_0x7e5030['removeMarker'](_0x8a3da4);}),this['_markerNames']['delete'](_0x8a3da4);}['addRange'](_0x576872){const _0x328bda='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x328bda),this['_model']['change'](_0x4e6e78=>{_0x4e6e78['addMarker'](_0x328bda,{'range':_0x576872,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2fbfb8){for(const _0xc0fa4b of this['getRanges']())if(_0xc0fa4b['isIntersecting'](_0x2fbfb8))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x28770a=>_0x28770a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1b4b6d,_0x54a864)=>[..._0x1b4b6d,..._0x54a864['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x24d870=this['getRanges']();if(0x1!=_0x24d870['length'])return null;const _0x313ae1=_0x24d870[0x0],_0x1596fd=_0x313ae1['start']['nodeAfter'],_0x2f79c9=_0x313ae1['end']['nodeBefore'];return _0x1596fd instanceof _0x124cbb?_0x1596fd!=_0x2f79c9?null:_0x1596fd: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 _0x582b41=[];let _0x20759e=this['head'];for(;_0x20759e;)_0x582b41['push'](_0x20759e),_0x20759e=_0x20759e['next'];return _0x582b41;}['setAttribute'](_0x2c7f55,_0x42ecfe){const _0x3d619d=_0x54b6be(this['attributes']);_0x402253(_0x3d619d,_0x2c7f55,_0x42ecfe),_0x5b4dfa(_0x3d619d,this['attributes'])||(this['attributes']=_0x3d619d,this['_onAttributesChange'](_0x3d619d));}['removeAttribute'](_0x3ae1ef){const _0x102bdd=_0x54b6be(this['attributes']);_0x16d659(_0x102bdd,_0x3ae1ef),_0x5b4dfa(_0x102bdd,this['attributes'])||(this['attributes']=_0x102bdd,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 _0x47d328()['substr'](0x1,0x5);}}function o(_0x314e5f,_0x5d0cc4,_0x461fd1){const _0x571b22=_0x314e5f['t'],t=_0x314e5f['t'];switch(_0x5d0cc4){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',_0x461fd1);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x461fd1);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x461fd1);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x461fd1);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x461fd1);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',_0x461fd1);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x461fd1);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',_0x461fd1);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x461fd1);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x461fd1);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x461fd1);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x461fd1);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x461fd1);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x461fd1);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x461fd1);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x461fd1);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x461fd1);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x461fd1);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x461fd1);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x461fd1);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x461fd1);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x461fd1);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x461fd1);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x461fd1);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x461fd1);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'},_0x461fd1);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x461fd1);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x461fd1);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x461fd1);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x461fd1);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x461fd1);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x461fd1);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x461fd1);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x461fd1);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x461fd1);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x461fd1);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x461fd1);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x461fd1);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_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'},_0x461fd1);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x461fd1);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'},_0x461fd1);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_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'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'},_0x461fd1);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x461fd1);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'},_0x461fd1);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x461fd1);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'},_0x461fd1);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x461fd1);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x461fd1);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'},_0x461fd1);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x461fd1);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 _0x571b22({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x461fd1);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x571b22({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x461fd1);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x461fd1);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'},_0x461fd1);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'},_0x461fd1);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'},_0x461fd1);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5d0cc4;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5a6431,_0x5b14c3){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5a6431,this['_locale']=_0x5b14c3;}['getDescriptions'](_0x1c3407){const _0x101be9=[],_0x4169b4=new Set(),_0xe2ecef=new Set();for(let _0x240106=0x0;_0x240106<_0x1c3407['length'];_0x240106++){const _0x59c8d9=_0x1c3407[_0x240106];if(!_0x59c8d9['isInContent'])continue;const _0x2b8b2e=this['_handleCustomCallbackDescription'](_0x59c8d9);if(_0x2b8b2e){if(null!=_0x59c8d9['subType']){if(_0x4169b4['has'](_0x59c8d9['subType']))continue;_0x4169b4['add'](_0x59c8d9['subType']);}_0x101be9['push'](_0x2b8b2e);}else{if('attribute'==_0x59c8d9['type']){const _0x3d4fb6=_0x59c8d9['data']['key'];if(_0xe2ecef['has'](_0x3d4fb6))continue;_0xe2ecef['add'](_0x59c8d9['data']['key']),_0x3d4fb6==m?this['_handleRenameSuggestionDescription'](_0x101be9,_0x59c8d9):this['_handleAttributeSuggestionDescription'](_0x101be9,_0x59c8d9);continue;}'insertion'!=_0x59c8d9['type']&&'deletion'!=_0x59c8d9['type']||this['_handleInsertRemoveSuggestionDescription'](_0x101be9,_0x59c8d9,_0x1c3407[_0x240106+0x1]);}}return this['_resolveDescriptionItems'](_0x101be9);}['registerDescriptionCallback'](_0x5883b7){this['_customCallbacks']['push'](_0x5883b7);}['registerElementLabel'](_0x486fb3,_0xda9b68,_0x424826=_0x4347f3['normal']){'function'==typeof _0x486fb3?_0x6e1598(this['_itemLabelsCallbacks'],{'matchingCallback':_0x486fb3,'label':_0xda9b68,'priority':_0x424826}):this['_itemLabels']['set'](_0x486fb3,_0xda9b68);}['registerAttributeLabel'](_0xf00cbe,_0x5365bb){this['_attributeLabels']['set'](_0xf00cbe,_0x5365bb);}['getItemLabel'](_0x302e24,_0x462cc7=0x1){let _0x2f4054;for(const _0x41d1c3 of this['_itemLabelsCallbacks'])if(_0x41d1c3['matchingCallback'](_0x302e24)){_0x2f4054=_0x41d1c3['label'];break;}return _0x2f4054||(_0x2f4054=this['_itemLabels']['get'](_0x302e24['name'])),_0x2f4054?_0x2f4054(_0x462cc7):0x1!==_0x462cc7?_0x462cc7+'\x20'+_0x302e24['name']+'s':''+_0x302e24['name'];}['_addDescriptionItems'](_0x24b83b,_0x27e54c){const _0x14603f=_0x27e54c['getFirstRange']()['getWalker'](),_0x1a29fb='insertion'==_0x27e54c['type']?'add':'remove';for(const _0x48fc7c of _0x14603f){const _0x4d63c0=_0x48fc7c['item'],_0x229d10=_0x24b83b[_0x24b83b['length']-0x1];if(_0x4d63c0['is']('$textProxy'))_0x229d10&&_0x229d10['type']['indexOf']('Container')>-0x1&&_0x24b83b['pop'](),_0x229d10&&'text'==_0x229d10['type']?_0x229d10[_0x1a29fb]+=_0x4d63c0['data']:_0x24b83b['push']({'type':'text','add':'add'==_0x1a29fb?_0x4d63c0['data']:'','remove':'remove'==_0x1a29fb?_0x4d63c0['data']:''});else{if(this['_schema']['isObject'](_0x4d63c0)){const _0x371112=_0x4d63c0;if(_0x229d10&&_0x229d10['type']['indexOf']('Container')>-0x1&&_0x24b83b['pop'](),'elementEnd'==_0x48fc7c['type'])continue;_0x229d10&&_0x229d10['type']==_0x1a29fb+'Object'&&_0x229d10['element']['name']==_0x371112['name']?_0x229d10['quantity']++:_0x24b83b['push']({'type':_0x1a29fb+'Object','element':_0x371112,'quantity':0x1}),_0x14603f['skip'](_0x2abe9a=>!('elementEnd'==_0x2abe9a['type']&&_0x2abe9a['item']==_0x4d63c0));}else{if(this['_schema']['checkChild'](_0x4d63c0,'$text')||_0x4d63c0['is']('element','softBreak')){const _0x174067=_0x4d63c0;if('add'==_0x1a29fb&&'elementStart'==_0x48fc7c['type']||'remove'==_0x1a29fb&&'elementEnd'==_0x48fc7c['type'])continue;if(_0x229d10&&-0x1==_0x229d10['type']['indexOf']('Container')){'text'==_0x229d10['type']&&(_0x229d10[_0x1a29fb]+='\x0a');continue;}let _0xfbbf45;if(_0xfbbf45='add'==_0x1a29fb?_0x174067['nextSibling']&&!this['_schema']['isObject'](_0x174067['nextSibling'])?_0x174067['nextSibling']:null:_0x174067['previousSibling']&&!this['_schema']['isObject'](_0x174067['previousSibling'])?_0x174067['previousSibling']:null,_0x174067['isEmpty']||_0xfbbf45&&_0xfbbf45['isEmpty']){const _0x3ef7d8=_0xfbbf45&&_0xfbbf45['isEmpty']?_0xfbbf45:_0x174067;_0x229d10&&_0x229d10['type']==_0x1a29fb+'EmptyContainer'&&_0x229d10['element']['name']==_0x3ef7d8['name']?_0x229d10['quantity']++:_0x24b83b['push']({'type':_0x1a29fb+'EmptyContainer','element':_0x3ef7d8,'quantity':0x1});}else _0x24b83b['push']({'type':_0x1a29fb+'Container','element':_0x174067});}}}}}['_resolveDescriptionItems'](_0x5e3e3d){const _0x5f4a88=this['_locale'],_0x3a13e3=[],_0x5724ea=[],_0x4e9cc=[];for(const _0x591986 of _0x5e3e3d)switch(_0x591986['type']){case'text':if(_0x591986['add']=_0x591986['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x591986['remove']=_0x591986['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x591986['add']&&''!=_0x591986['remove']){_0x3a13e3['push']({'type':'replace','content':o(_0x5f4a88,'REPLACE_TEXT',['\x22'+_0x591986['remove']+'\x22','\x22'+_0x591986['add']+'\x22'])});continue;}if(null!=_0x591986['add']['match'](/^ +$/)){_0x3a13e3['push']({'type':'insertion','content':o(_0x5f4a88,'*Insert:*\x20%0',o(_0x5f4a88,'ELEMENT_SPACE',_0x591986['add']['length']))});continue;}if(null!=_0x591986['remove']['match'](/^ +$/)){_0x3a13e3['push']({'type':'deletion','content':o(_0x5f4a88,'*Remove:*\x20%0',o(_0x5f4a88,'ELEMENT_SPACE',_0x591986['remove']['length']))});continue;}if(''!=_0x591986['add']){_0x3a13e3['push']({'type':'insertion','content':o(_0x5f4a88,'*Insert:*\x20%0','\x22'+_0x591986['add']+'\x22')});continue;}_0x3a13e3['push']({'type':'deletion','content':o(_0x5f4a88,'*Remove:*\x20%0','\x22'+_0x591986['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3a13e3['push']({'type':'insertion','content':o(_0x5f4a88,'*Insert:*\x20%0',this['getItemLabel'](_0x591986['element'],_0x591986['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3a13e3['push']({'type':'deletion','content':o(_0x5f4a88,'*Remove:*\x20%0',this['getItemLabel'](_0x591986['element'],_0x591986['quantity']))});continue;case'addContainer':_0x3a13e3['push']({'type':'insertion','content':o(_0x5f4a88,'*Split:*\x20%0',this['getItemLabel'](_0x591986['element'],_0x591986['quantity']))});continue;case'removeContainer':_0x3a13e3['push']({'type':'deletion','content':o(_0x5f4a88,'*Merge:*\x20%0',this['getItemLabel'](_0x591986['element'],_0x591986['quantity']))});continue;case'addFormat':_0x5724ea['push'](_0x591986['key']);continue;case'removeFormat':_0x4e9cc['push'](_0x591986['key']);continue;default:_0x3a13e3['push'](_0x591986);}if(_0x5724ea['length']){const _0x4f38c7=_0x5724ea['map'](_0x44f051=>this['_attributeLabels']['has'](_0x44f051)?this['_attributeLabels']['get'](_0x44f051):_0x44f051)['join'](',\x20');_0x3a13e3['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4f38c7)});}if(_0x4e9cc['length']){const _0x2f39c0=_0x4e9cc['map'](_0x34bb12=>this['_attributeLabels']['has'](_0x34bb12)?this['_attributeLabels']['get'](_0x34bb12):_0x34bb12)['join'](',\x20');_0x3a13e3['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2f39c0)});}return _0x3a13e3;}['_handleCustomCallbackDescription'](_0x42c951){for(const _0x58aff1 of this['_customCallbacks']){const _0x54e662=_0x58aff1(_0x42c951);if(_0x54e662&&'type'in _0x54e662)return _0x54e662;}}['_handleAttributeSuggestionDescription'](_0x5e5051,_0xa34da1){const _0x79f4d6=_0xa34da1['data'],_0x1d7b84=void 0x0===_0x79f4d6['newValue']?'removeFormat':'addFormat';_0x5e5051['push']({'type':_0x1d7b84,'key':_0x79f4d6['key']});}['_handleRenameSuggestionDescription'](_0x593004,_0xdaca56){_0x593004['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xdaca56['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4f900d,_0x23c6c7,_0x350b1a){if(this['_addDescriptionItems'](_0x4f900d,_0x23c6c7),_0x350b1a&&_0x350b1a['getFirstRange']()&&!_0x23c6c7['getFirstRange']()['end']['isEqual'](_0x350b1a['getFirstRange']()['start'])){const _0x1236a4=_0x4f900d[_0x4f900d['length']-0x1],_0x44da0e='insertion'==_0x23c6c7['type']?'add':'remove';_0x1236a4&&'text'==_0x1236a4['type']&&(_0x1236a4[_0x44da0e]+='\x0a');}}}class O extends _0xda0844{['afterInit'](){const _0x172947=this['editor'],_0x18a42a=_0x172947['plugins']['get']('TrackChangesEditing');_0x172947['commands']['get']('showAIAssistant')&&_0x18a42a['enableCommand']('showAIAssistant');}}class E extends _0xda0844{['afterInit'](){const _0x375bbd=this['editor'],_0x28a20e=_0x375bbd['locale'];if(!_0x375bbd['plugins']['has']('AlignmentEditing'))return;const _0x513876=_0x375bbd['plugins']['get']('TrackChangesEditing');_0x513876['enableDefaultAttributesIntegration']('alignment'),_0x513876['registerBlockAttribute']('alignment'),_0x513876['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x28a20e,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59d716=this['editor'],_0x2cd668=_0x59d716['locale'];_0x59d716['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fa8f9=>{if('formatBlock'!=_0x3fa8f9['type'])return;const {data:_0x31fe3d}=_0x3fa8f9;if(_0x31fe3d&&'alignment'==_0x31fe3d['commandName']){const _0x9278cc=_0x31fe3d['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2cd668,'*Format:*\x20%0',function(_0x5e22e3){switch(_0x5e22e3){case'left':return o(_0x2cd668,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2cd668,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2cd668,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2cd668,'FORMAT_JUSTIFY_TEXT');}}(_0x9278cc))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0xda0844{['afterInit'](){const _0x5e7592=this['editor'],_0x409285=_0x5e7592['plugins']['get']('TrackChangesEditing'),_0x143754=_0x5e7592['locale'];for(const _0x574b4b of Zt){if(!_0x5e7592['plugins']['has'](_0x574b4b))continue;const _0x49d9fb=_0x574b4b['slice'](0x0,-0x7)['toLowerCase'](),_0x66cc61='FORMAT_'+_0x49d9fb['toUpperCase']();_0x409285['enableDefaultAttributesIntegration'](_0x49d9fb),_0x409285['registerInlineAttribute'](_0x49d9fb),_0x409285['descriptionFactory']['registerAttributeLabel'](_0x49d9fb,o(_0x143754,_0x66cc61));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd76c4c=this['editor'],_0x5bbd76=_0xd76c4c['locale'],_0x4ed402=_0xd76c4c['plugins']['get']('TrackChangesEditing');function _0x34294d(_0x573a79,_0x18c161){_0x4ed402['descriptionFactory']['registerDescriptionCallback'](_0x362253=>{if('formatInline'!=_0x362253['type'])return;const {data:_0x284a62}=_0x362253;return _0x284a62&&_0x284a62['commandName']===_0x573a79?_0x284a62['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5bbd76,'*Format:*\x20%0',_0x18c161)}:{'type':'format','content':o(_0x5bbd76,'*Remove\x20format:*\x20%0',_0x18c161)}:void 0x0;});}_0x34294d('bold',o(_0x5bbd76,'FORMAT_BOLD')),_0x34294d('italic',o(_0x5bbd76,'FORMAT_ITALIC')),_0x34294d('underline',o(_0x5bbd76,'FORMAT_UNDERLINE')),_0x34294d('code',o(_0x5bbd76,'FORMAT_CODE')),_0x34294d('strikethrough',o(_0x5bbd76,'FORMAT_STRIKETHROUGH')),_0x34294d('subscript',o(_0x5bbd76,'FORMAT_SUBSCRIPT')),_0x34294d('superscript',o(_0x5bbd76,'FORMAT_SUPERSCRIPT'));}}class U extends _0xda0844{['afterInit'](){const _0xf349f7=this['editor'],_0x1b9068=_0xf349f7['locale'];if(!_0xf349f7['plugins']['has']('BlockQuoteEditing'))return;const _0x34d9af=_0xf349f7['plugins']['get']('TrackChangesEditing'),_0x56e205=this['editor']['commands']['get']('blockQuote');_0x34d9af['enableCommand']('blockQuote',(_0x38fbe9,_0x448512={})=>{const _0x37ac4c=this['editor']['model']['document']['selection'],_0x1da2fa=_0x448512&&void 0x0!==_0x448512['forceValue']?_0x448512['forceValue']:!_0x56e205['value'];let _0x32a850=[];if(_0x1da2fa){const _0x87ed33=Array['from'](_0x37ac4c['getSelectedBlocks']())['filter'](_0xb9ca04=>oo(_0xb9ca04)||function(_0x219b95,_0x421aec){const _0x532486=_0x421aec['checkChild'](_0x219b95['parent'],'blockQuote'),_0x4c5cc9=_0x421aec['checkChild'](['$root','blockQuote'],_0x219b95);return _0x532486&&_0x4c5cc9;}(_0xb9ca04,this['editor']['model']['schema']));_0x32a850=to(_0x87ed33,_0xf349f7['model']);}else{const _0x5b34f9=Array['from'](_0x37ac4c['getSelectedBlocks']())['filter'](_0x697108=>oo(_0x697108));_0x32a850=to(_0x5b34f9,_0xf349f7['model']);}_0xf349f7['model']['change'](()=>{for(const _0x29f5e9 of _0x32a850)_0x34d9af['markBlockFormat'](_0x29f5e9,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1da2fa}]});});}),_0x34d9af['descriptionFactory']['registerDescriptionCallback'](_0x5410f3=>{const {data:_0x4a9465}=_0x5410f3;if(_0x4a9465&&'blockQuote'==_0x4a9465['commandName']){const _0x29cb13=o(_0x1b9068,'ELEMENT_BLOCK_QUOTE');return _0x4a9465['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1b9068,'*Set\x20format:*\x20%0',_0x29cb13)}:{'type':'format','content':o(_0x1b9068,'*Remove\x20format:*\x20%0',_0x29cb13)};}});}}function oo(_0x23fb2b){return'blockQuote'==_0x23fb2b['parent']['name'];}class V extends _0xda0844{['afterInit'](){const _0x58dca5=this['editor'],_0x184407=_0x58dca5['locale'],_0x1ea1db=_0x58dca5['plugins']['get']('TrackChangesEditing');_0x58dca5['plugins']['has']('BookmarkEditing')&&(_0x1ea1db['enableCommand']('insertBookmark'),_0x1ea1db['enableDefaultAttributesIntegration']('updateBookmark'),_0x1ea1db['registerBlockAttribute']('bookmarkId'),_0x1ea1db['descriptionFactory']['registerDescriptionCallback'](_0x3f3076=>{if('insertion'!=_0x3f3076['type']&&'deletion'!=_0x3f3076['type']&&'attribute'!=_0x3f3076['type'])return;const _0x2954d1=_0x3f3076['getContainedElement']();if(null==_0x2954d1)return;if(!_0x2954d1['is']('element','bookmark'))return;const _0x3008c4=_0x2954d1['getAttribute']('bookmarkId');if('insertion'==_0x3f3076['type'])return{'type':'insertion','content':o(_0x184407,'*Insert:*\x20%0','\x22'+_0x3008c4+'\x22\x20'+o(_0x184407,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3f3076['type'])return{'type':'deletion','content':o(_0x184407,'*Remove:*\x20%0','\x22'+_0x3008c4+'\x22\x20'+o(_0x184407,'ELEMENT_BOOKMARK'))};const {data:_0x3d4d50}=_0x3f3076;if(!_0x3d4d50||'bookmarkId'!=_0x3d4d50['key'])return;return{'type':'format','content':o(_0x184407,'*Set\x20bookmark:*\x20%0','\x22'+_0x3d4d50['newValue']+'\x22')};}));}}class F extends _0xda0844{['afterInit'](){const _0x3e37db=this['editor'];_0x3e37db['plugins']['has']('CaseChange')&&(_0x3e37db['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3e37db['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3e37db['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0xda0844{['afterInit'](){const _0x5be9cf=this['editor'];_0x5be9cf['commands']['get']('ckbox')&&_0x5be9cf['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0xda0844{['afterInit'](){const _0xd62033=this['editor'];if(!_0xd62033['plugins']['has']('CodeBlock'))return;const _0x587688=_0xd62033['plugins']['get']('TrackChangesEditing'),_0x484c74=_0xd62033['locale'],_0x34429a=_0xd62033['config']['get']('codeBlock')['languages'],_0x391a73=_0xd62033['commands']['get']('codeBlock');_0x587688['enableCommand']('indentCodeBlock'),_0x587688['enableCommand']('outdentCodeBlock'),_0x587688['enableCommand']('codeBlock',(_0x16477f,_0x2217e2={})=>{const _0x29a166=_0xd62033['model'],_0x1cad28=_0xd62033['model']['document']['selection'],_0x5c5c90=_0x2217e2&&void 0x0!==_0x2217e2['forceValue']?_0x2217e2['forceValue']:!_0x391a73['value'];let _0x597790;_0x2217e2['language']||(_0x2217e2['language']=_0x34429a[0x0]['language']),_0x597790=_0x5c5c90?Array['from'](_0x1cad28['getSelectedBlocks']())['filter'](_0x47550c=>co(_0x47550c)||function(_0x5af046,_0xcc4643){if(_0x5af046['is']('rootElement')||_0xcc4643['isLimit'](_0x5af046))return!0x1;return _0xcc4643['checkChild'](_0x5af046['parent'],'codeBlock');}(_0x47550c,_0x29a166['schema'])):Array['from'](_0x1cad28['getSelectedBlocks']())['filter'](_0x2e93d2=>co(_0x2e93d2));const _0x33855f=to(_0x597790,_0x29a166);_0x29a166['change'](()=>{for(const _0x22f24d of _0x33855f)_0x587688['markBlockFormat'](_0x22f24d,{'commandName':'codeBlock','commandParams':[{..._0x2217e2,'forceValue':_0x5c5c90}],'formatGroupId':'blockName'});});}),(_0x587688['descriptionFactory']['registerElementLabel']('codeBlock',_0x54b9cd=>o(_0x484c74,'ELEMENT_CODE_BLOCK',_0x54b9cd)),_0x587688['descriptionFactory']['registerDescriptionCallback'](_0x357c33=>{if('formatBlock'!=_0x357c33['type'])return;const _0x29be38=_0x484c74['t'],{data:_0x2131c2}=_0x357c33;if(!_0x2131c2||'codeBlock'!=_0x2131c2['commandName'])return;const _0x2cfecb=_0x2131c2['commandParams'][0x0]['language'],_0x3ed2d9=_0x29be38(_0x34429a['find'](_0x29b862=>_0x29b862['language']===_0x2cfecb)['label'])['toLowerCase']();return _0x2131c2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x484c74,'*Set\x20format:*\x20%0',o(_0x484c74,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3ed2d9+')')}:{'type':'format','content':o(_0x484c74,'*Remove\x20format:*\x20%0',o(_0x484c74,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x5c1f9f){return'codeBlock'==_0x5c1f9f['name'];}class J extends _0xda0844{['afterInit'](){const _0x2996fa=this['editor'];if(!_0x2996fa['plugins']['has']('CommentsEditing'))return;_0x2996fa['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xb1f8fe,_0x10506,_0x9643b9){const _0x37147d=[];for(const _0x250a42 of _0x10506['getItems']())_0x250a42['hasAttribute'](_0xb1f8fe)&&_0x37147d['push'](_0x9643b9['createRangeOn'](_0x250a42));return _0x37147d;}function Ne(_0x525944,_0x1e5567,{showActiveMarker:_0x151e6c=!0x0}={}){const _0x95b6d4=_0x525944['plugins']['get']('TrackChangesEditing');return(_0x19a2fe,_0x4ac1da,_0x355cac)=>{if(!_0x355cac['consumable']['test'](_0x4ac1da['markerRange'],_0x19a2fe['name']))return;const _0x453621=_0x4ac1da['markerRange']['getWalker'](),_0x9daa6e=_0x4ac1da['markerRange']['start'],_0x3e8766=_0x525944['model']['schema'];let _0x5d5997=null,_0xce711f=null,_0xe0eb96=!0x1,_0x267822=!0x1;for(const _0xec7666 of _0x453621){const _0x4952c5=_0xec7666['item'];_0xe0eb96=_0xe0eb96||_0x3e8766['isContent'](_0x4952c5);const _0x3df33f=_0x355cac['mapper']['toViewElement'](_0x4952c5);if(_0x3df33f&&_0x3df33f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xec7666['type']&&(_0x3e8766['isBlock'](_0x4952c5)&&!_0x3e8766['isLimit'](_0x4952c5)&&(_0x4952c5['nextSibling']||_0x9daa6e['isAtEnd']?_0x5d5997&&_0x5d5997['parent']==_0x4952c5||(_0x5d5997=_0x4952c5,_0x1ec570(_0xec7666['previousPosition']),_0x267822=!0x0):_0xce711f=_0xce711f||_0xec7666['previousPosition']));}function _0x1ec570(_0x227ff0){const {id:_0x17032f,authorId:_0x1abca9}=_0x95b6d4['_splitMarkerName'](_0x4ac1da['markerName']),_0x50acfa=_0x355cac['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1e5567,'data-suggestion':_0x17032f,'data-author-id':_0x1abca9}),_0x6dec0c=_0x355cac['mapper']['toViewPosition'](_0x227ff0);_0x151e6c&&_0x95b6d4['activeMarkers']['includes'](_0x4ac1da['markerName'])&&_0x355cac['writer']['addClass']('ck-suggestion-marker--active',_0x50acfa),_0x355cac['writer']['insert'](_0x6dec0c,_0x50acfa),_0x355cac['mapper']['bindElementToMarker'](_0x50acfa,_0x4ac1da['markerName']);}_0xe0eb96||_0x267822||!_0xce711f||_0x1ec570(_0xce711f);};}class K extends _0xda0844{static get['requires'](){return[_0x5c4e36];}['init'](){const _0x369db7=this['editor'],_0x1b9ae6=_0x369db7['plugins']['get']('TrackChangesEditing');_0x1b9ae6['enableCommand']('delete');const _0x5dac05=_0x369db7['commands']['get']('deleteForward');_0x1b9ae6['enableCommand']('deleteForward',(_0x4640e2,_0x403bee={})=>{const _0x254562=_0x369db7['model']['createSelection'](_0x369db7['model']['document']['selection']);_0x254562['isCollapsed']&&_0x369db7['model']['modifySelection'](_0x254562,{'direction':'forward','unit':_0x403bee['unit']});const _0x220119=_0x254562['getFirstRange'](),_0x492196=_0x40d9f2['fromRange'](_0x220119);let _0x343265;_0x4640e2(_0x403bee),_0x343265='$graveyard'==_0x492196['root']['rootName']?_0x369db7['model']['createRange'](_0x220119['start']):_0x369db7['model']['createRange'](_0x492196['start'],_0x492196['end']),_0x492196['detach'](),_0x369db7['model']['enqueueChange'](_0x5dac05['buffer']['batch'],_0x2892fd=>{_0x5dac05['buffer']['lock'](),_0x2892fd['setSelection'](_0x2892fd['createRange'](_0x343265['end'])),_0x5dac05['buffer']['unlock']();});}),_0x369db7['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0x369db7,'merge'),{'priority':'high'}),_0x369db7['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x33731c,_0x272ad8,_0x478733)=>{_0x478733['options']['showSuggestionHighlights']&&Ne(_0x369db7,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x33731c,_0x272ad8,_0x478733);},{'priority':'high'}),_0x369db7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x54a8df,_0x167458,_0x580dd8)=>{const _0xd78a57=_0x580dd8['mapper']['markerNameToElements'](_0x167458['markerName']);if(_0xd78a57){for(const _0x5d8b2a of _0xd78a57)_0x5d8b2a['is']('uiElement')&&(_0x580dd8['mapper']['unbindElementFromMarkerName'](_0x5d8b2a,_0x167458['markerName']),_0x580dd8['writer']['remove'](_0x5d8b2a));}},{'priority':'high'});}}class H extends _0xda0844{['afterInit'](){const _0x575bae=this['editor'];if(!_0x575bae['plugins']['has']('ListEditing'))return;const _0x242c53=_0x575bae['locale'],_0x333f52=_0x575bae['plugins']['get']('TrackChangesEditing'),_0x263044=_0x575bae['plugins']['has']('TodoListEditing'),_0x1bb591=!!_0x575bae['config']['get']('list.multiBlock');function _0x5f271c(_0x63ec30){return{'type':'format','content':''+o(_0x242c53,'*Set\x20format:*\x20%0',_0x63ec30)};}function _0x2f31ba(_0x888bae){return{'type':'format','content':''+o(_0x242c53,'*Remove\x20format:*\x20%0',_0x888bae)};}_0x333f52['enableDefaultAttributesIntegration']('numberedList'),_0x333f52['enableDefaultAttributesIntegration']('bulletedList'),_0x333f52['enableDefaultAttributesIntegration']('customNumberedList'),_0x333f52['enableDefaultAttributesIntegration']('customBulletedList'),_0x333f52['enableDefaultAttributesIntegration']('indentList'),_0x333f52['enableDefaultAttributesIntegration']('outdentList'),_0x333f52['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x333f52['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x333f52['registerBlockAttribute']('listItemId'),_0x333f52['registerBlockAttribute']('listType'),_0x333f52['registerBlockAttribute']('listIndent'),_0x1bb591&&(_0x333f52['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x333f52['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x263044&&(_0x333f52['enableDefaultAttributesIntegration']('todoList'),_0x333f52['enableDefaultAttributesIntegration']('checkTodoList'),_0x333f52['registerBlockAttribute']('todoListChecked'),_0x333f52['descriptionFactory']['registerDescriptionCallback'](_0x216747=>{const {data:_0x237a2b}=_0x216747;if(_0x237a2b&&'todoListChecked'==_0x237a2b['key'])return{'type':'format','content':_0x237a2b['newValue']?o(_0x242c53,'*Check\x20item*'):o(_0x242c53,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4b805c=>{if(_0x4b805c['batch']['isUndo'])return!0x1;let _0x1d5e10=!0x1;const _0x16bc43=_0x333f52['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5aac2e=>'todoListChecked'===_0x333f52['_getAttributeKey'](_0x5aac2e));for(const _0x144bad of _0x16bc43){'todo'!=_0x144bad['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x333f52['_findSuggestions'](_0x144bad['getFirstRange'](),'attribute')['find'](_0x7b4c90=>'listType'===_0x333f52['_getAttributeKey'](_0x7b4c90['suggestion']))||(_0x4b805c['removeMarker'](_0x144bad['getFirstMarker']()),_0x1d5e10=!0x0));}return _0x1d5e10;})),_0x333f52['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x242c53,'FORMAT_INDENT'));const _0x43d7ad={'type':'format','content':''};_0x333f52['descriptionFactory']['registerDescriptionCallback'](_0x884cb3=>{const {data:_0x3b0299}=_0x884cb3;if(!_0x3b0299||'listType'!=_0x3b0299['key'])return;let _0x8e48e5=_0x884cb3['head'];for(;_0x8e48e5;){if(_0x8e48e5['data']&&(('listStyle'==_0x8e48e5['data']['key']||'listMarkerStyle'==_0x8e48e5['data']['key'])&&(_0x8e48e5['data']['newValue']&&'default'!=_0x8e48e5['data']['newValue']||'default'!=_0x8e48e5['data']['oldValue']&&!_0x3b0299['newValue'])||!_0x1bb591&&_0x8e48e5['data']['key']==m))return _0x43d7ad;_0x8e48e5=_0x8e48e5['next'];}if(null==_0x3b0299['newValue'])switch(_0x3b0299['oldValue']){case'bulleted':return _0x2f31ba(o(_0x242c53,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2f31ba(o(_0x242c53,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2f31ba(o(_0x242c53,'ELEMENT_TODO_LIST'));}switch(_0x3b0299['newValue']){case'bulleted':return _0x5f271c(o(_0x242c53,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5f271c(o(_0x242c53,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5f271c(o(_0x242c53,'ELEMENT_TODO_LIST'));}}),_0x333f52['descriptionFactory']['registerDescriptionCallback'](_0x18406a=>{const {data:_0x52448a}=_0x18406a;if(_0x52448a&&'listIndent'==_0x52448a['key'])return null==_0x52448a['newValue']||null==_0x52448a['oldValue']&&0x0==_0x52448a['newValue']?_0x43d7ad:void 0x0;}),_0x333f52['descriptionFactory']['registerDescriptionCallback'](_0x4ede74=>{if('attribute'!=_0x4ede74['type'])return;const {data:_0x1dd20e}=_0x4ede74;if(!_0x1dd20e||'listItemId'!=_0x1dd20e['key'])return;const _0x4db54c=Te(_0x4ede74);return'newValue'==_0x4db54c?{'type':'format','content':o(_0x242c53,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4db54c?{'type':'format','content':o(_0x242c53,'*Split:*\x20list\x20item')}:_0x43d7ad;}),_0x575bae['model']['document']['registerPostFixer'](_0x556f70=>this['listItemIdFixer'](_0x556f70)),_0x575bae['model']['document']['registerPostFixer'](_0x27fd0b=>this['noTrackChangesFixer'](_0x27fd0b)),_0x575bae['model']['document']['on']('change:data',(_0x3b4ff7,_0x59d536)=>{if(_0x59d536['isUndo']||!_0x59d536['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x116e37){if(_0x116e37['batch']['isUndo']||!_0x116e37['batch']['isLocal'])return!0x1;let _0x80f0c=!0x1;const _0x2cd88a=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x580890=>_0x580890['data']&&'listItemId'==_0x580890['data']['key'])['filter'](_0x461fc4=>_0x461fc4['data']['newValue']&&_0x461fc4['data']['oldValue']);for(const _0x40a02b of _0x2cd88a)Te(_0x40a02b)||(_0x116e37['removeMarker'](_0x40a02b['getFirstMarker']()),_0x80f0c=!0x0);return _0x80f0c;}['noTrackChangesFixer'](_0xa8d7f3){if(_0xa8d7f3['batch']['isUndo']||!_0xa8d7f3['batch']['isLocal'])return!0x1;const _0x42c047=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x42c047['trackChangesCommand']['value'])return!0x1;let _0x200872=!0x1;const _0x1de8cf=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x543769=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x50b3fd=>'attribute'==_0x50b3fd['type'])['filter'](_0x5c74a7=>_0x1de8cf['includes'](_0x5c74a7['attributeKey']));if(0x0==_0x543769['length'])return _0x200872;for(const _0x24d350 of _0x543769){const _0x1413c4=_0x42c047['_findSuggestions'](_0x24d350['range'],'attribute')['filter'](_0x694a35=>!_0x694a35['meta']['isNextTo'])['map'](_0x5589bf=>_0x5589bf['suggestion'])['filter'](_0x24610b=>{const _0x59937b=_0x42c047['_getAttributeKey'](_0x24610b);return _0x1de8cf['includes'](_0x59937b);});if(_0x1413c4['length']){for(const _0x3030eb of _0x1413c4)_0xa8d7f3['removeMarker'](_0x3030eb['getFirstMarker']());_0x200872=!0x0;}}return _0x200872;}['assureChains'](){const _0x3f469f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17d79e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x486da7;const _0x12f38a=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x19623f=>{if(_0x19623f['data']['oldRange']||!_0x19623f['data']['newRange'])return null;if(!_0x19623f['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xe73d1}=_0x3f469f['_splitMarkerName'](_0x19623f['name']);if(!_0x3f469f['hasSuggestion'](_0xe73d1))return null;const _0xb55354=_0x3f469f['getSuggestion'](_0xe73d1);return _0x17d79e['includes'](_0xb55354['data']['key']);})['map'](_0x511576=>{const {id:_0x57535f}=_0x3f469f['_splitMarkerName'](_0x511576['name']),_0x329123=_0x3f469f['getSuggestion'](_0x57535f);return _0x486da7=_0x329123['attributes']['groupId'],_0x329123['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x12f38a['size'])return;const _0x266ad5=_0x3f469f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x45ee26=>'attribute'==_0x45ee26['type']&&_0x45ee26['data']&&_0x17d79e['includes'](_0x45ee26['data']['key'])&&_0x45ee26['attributes']['groupId']!=_0x486da7)['map'](_0x47a35c=>({'listItem':_0x47a35c['getFirstRange']()['start']['nodeAfter'],'groupId':_0x47a35c['attributes']['groupId']})),_0x4f7776=new Set();for(const {groupId:_0x32172b,listItem:_0x2ca9a7}of _0x266ad5)_0x12f38a['has'](_0x2ca9a7)&&_0x4f7776['add'](_0x32172b);for(const _0x14a4be of _0x3f469f['getSuggestions']())_0x4f7776['has'](_0x14a4be['attributes']['groupId'])&&_0x14a4be['setAttribute']('groupId',_0x486da7);}['_supportLegacySuggestions'](){const _0x2cd185=this['editor'],_0x369ef1=_0x2cd185['locale'],_0x3dd482=_0x2cd185['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3dd482['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x338b45,_0x3ed821){const _0x476234=[];for(let _0x2aa062 of _0x338b45)_0x2aa062['start']['nodeAfter']===_0x2aa062['end']['parent']&&(_0x2aa062=_0x2cd185['model']['createRange'](_0x2cd185['model']['createPositionAt'](_0x2aa062['start']['nodeAfter'],0x0))),_0x476234['push'](_0x2aa062);_0x2cd185['model']['change'](_0x47bbeb=>{const _0x553ddd=_0x2cd185['model']['document']['selection'],_0x5146e0=Array['from'](_0x553ddd['getRanges']())['map'](_0x2259bb=>_0x40d9f2['fromRange'](_0x2259bb));_0x47bbeb['setSelection'](_0x476234),_0x2cd185['commands']['get'](_0x3ed821['commandName'])['refresh'](),_0x3ed821['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2cd185['execute'](_0x3ed821['commandName'],..._0x3ed821['commandParams']),_0x47bbeb['setSelection'](_0x5146e0);for(const _0x2d0395 of _0x5146e0)_0x2d0395['detach']();});}),_0x3dd482['descriptionFactory']['registerElementLabel'](function(_0x12d321){const _0x525003=!_0x2cd185['model']['schema']['isObject'](_0x12d321),_0x11c1ea=_0x12d321['previousSibling'],_0x3b7e17=_0x12d321['nextSibling'],_0x2dccd0=_0x12d321['getAttribute']('listItemId'),_0x14ffcd=!_0x11c1ea||_0x11c1ea['getAttribute']('listItemId')!==_0x2dccd0,_0x15bf6a=!_0x3b7e17||_0x3b7e17['getAttribute']('listItemId')!==_0x2dccd0;return _0x525003&&Boolean(_0x2dccd0)&&_0x14ffcd&&_0x15bf6a;},_0x22cf38=>o(_0x369ef1,'ELEMENT_LIST_ITEM',_0x22cf38));}['_registerLegacyDescription'](){const _0x31a8c5=this['editor'],_0x4f8c40=_0x31a8c5['locale'];function _0x60528f(_0x34bd02){const _0x39d2eb=_0x31a8c5['commands']['get']('bulletedList')['value'],_0xfeedad=_0x31a8c5['commands']['get']('numberedList')['value'];return'numberedList'===_0x34bd02?_0x39d2eb:_0xfeedad;}_0x31a8c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4bbc9c){if('formatBlock'!=_0x4bbc9c['type'])return;const {data:_0x1e6226}=_0x4bbc9c;if(!_0x1e6226)return;let _0x1c6c64,_0x46adb9,_0x21cddc,_0x4292eb;switch(_0x1e6226['commandName']){case'bulletedList':_0x21cddc=_0x1e6226['commandParams'][0x0]['forceValue'],_0x4292eb=_0x60528f(_0x1e6226['commandName']),_0x1c6c64=_0x21cddc?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4292eb&&_0x31a8c5['config']['get']('list.multiBlock')||(_0x1c6c64='*Change\x20to:*\x20%0'),_0x46adb9={'type':'format','content':o(_0x4f8c40,_0x1c6c64,o(_0x4f8c40,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x21cddc=_0x1e6226['commandParams'][0x0]['forceValue'],_0x4292eb=_0x60528f(_0x1e6226['commandName']),_0x1c6c64=_0x21cddc?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4292eb&&_0x31a8c5['config']['get']('list.multiBlock')||(_0x1c6c64='*Change\x20to:*\x20%0'),_0x46adb9={'type':'format','content':o(_0x4f8c40,_0x1c6c64,o(_0x4f8c40,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1c6c64='*Indent:*\x20%0',_0x46adb9={'type':'format','content':o(_0x4f8c40,_0x1c6c64,o(_0x4f8c40,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1c6c64=function(_0x5d8437){const _0x10dddb=_0x5d8437['getFirstRange']();let _0x2505d0=_0x10dddb['start']['nodeAfter'];for(;_0x2505d0&&_0x10dddb['containsItem'](_0x2505d0);){if(_0x2505d0['getAttribute']('listIndent')>0x0)return!0x1;_0x2505d0=_0x2505d0['nextSibling'];}return!0x0;}(_0x4bbc9c)?o(_0x4f8c40,'*Format:*\x20remove\x20from\x20%0',o(_0x4f8c40,function(_0x3b8b9d){return'ELEMENT_'+_0x3b8b9d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4bbc9c))):o(_0x4f8c40,'*Outdent:*\x20%0',o(_0x4f8c40,'ELEMENT_LIST_ITEM')),_0x46adb9={'type':'format','content':_0x1c6c64};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1e6226['multipleBlocks']&&(_0x1c6c64='*Merge:*\x20%0',_0x46adb9={'type':'deletion','content':o(_0x4f8c40,_0x1c6c64,o(_0x4f8c40,'ELEMENT_LIST_ITEM'))});}return _0x46adb9;});}}function Te(_0x4ff4cd){let _0x1fdeee=_0x4ff4cd['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1fdeee;){const _0x79e71d=_0x1fdeee['getAttribute']('listItemId');if(!_0x79e71d)return!0x1;if(_0x79e71d==_0x4ff4cd['data']['newValue'])return'newValue';if(_0x79e71d==_0x4ff4cd['data']['oldValue'])return'oldValue';_0x1fdeee=_0x1fdeee['previousSibling'];}return!0x1;}class q extends _0xda0844{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x39ed63=this['editor']['config']['get']('list.properties'),_0x3b71b2=this['editor']['plugins']['get']('TrackChangesEditing');_0x39ed63['styles']&&(_0x3b71b2['enableDefaultAttributesIntegration']('listStyle'),_0x3b71b2['registerBlockAttribute']('listStyle')),_0x39ed63['reversed']&&(_0x3b71b2['enableDefaultAttributesIntegration']('listReversed'),_0x3b71b2['registerBlockAttribute']('listReversed')),_0x39ed63['startIndex']&&(_0x3b71b2['enableDefaultAttributesIntegration']('listStart'),_0x3b71b2['registerBlockAttribute']('listStart'));const _0x66a593={'type':'format','content':''};_0x3b71b2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xba5667=this['editor']['locale'];_0x3b71b2['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xba5667,'FORMAT_LIST_REVERSED')),_0x3b71b2['descriptionFactory']['registerDescriptionCallback'](_0x43be17=>{const {data:_0x5de4a6}=_0x43be17;if(_0x5de4a6&&'listReversed'==_0x5de4a6['key'])return null==_0x5de4a6['newValue']||0x0==_0x5de4a6['newValue']&&null==_0x5de4a6['oldValue']?_0x66a593:void 0x0;}),_0x3b71b2['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xba5667,'FORMAT_LIST_START')),_0x3b71b2['descriptionFactory']['registerDescriptionCallback'](_0x5de231=>{const {data:_0x3631fe}=_0x5de231;if(_0x3631fe&&'listStart'==_0x3631fe['key'])return null==_0x3631fe['newValue']||0x1==_0x3631fe['newValue']&&null==_0x3631fe['oldValue']?_0x66a593:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1e547f=>{if(_0x1e547f['batch']['isUndo'])return!0x1;let _0x4c9b73=!0x1;const _0x2f0f42=_0x3b71b2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3a81aa=>{const _0x29c44b=_0x3b71b2['_getAttributeKey'](_0x3a81aa);return'listStart'==_0x29c44b||'listReversed'==_0x29c44b;});for(const _0x2db1d0 of _0x2f0f42){const _0x280779=_0x2db1d0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x280779||'customNumbered'==_0x280779)continue;_0x3b71b2['_findSuggestions'](_0x2db1d0['getFirstRange'](),'attribute')['find'](_0x210374=>'listType'==_0x3b71b2['_getAttributeKey'](_0x210374['suggestion']))||(_0x1e547f['removeMarker'](_0x2db1d0['getFirstMarker']()),_0x4c9b73=!0x0);}return _0x4c9b73;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1e3745){const _0x2e39b9=this['editor']['locale'],{data:_0x31b36f}=_0x1e3745,_0x312891={'type':'format','content':''};if(!_0x31b36f||'listStyle'!=_0x31b36f['key'])return;if(!_0x31b36f['oldValue'])return'default'==_0x31b36f['newValue']?_0x312891:{'type':'format','content':''+o(_0x2e39b9,'*Set\x20format:*\x20%0',o(_0x2e39b9,this['_getTranslationKeyForListStyle'](_0x31b36f['newValue'])))};if(!_0x31b36f['newValue']){if('default'==_0x31b36f['oldValue'])return _0x312891;let _0x18b14f=_0x1e3745['head'];for(;_0x18b14f;){if(_0x18b14f['data']&&'listType'==_0x18b14f['data']['key']&&_0x18b14f['data']['newValue'])return _0x312891;_0x18b14f=_0x18b14f['next'];}return{'type':'format','content':''+o(_0x2e39b9,'*Remove\x20format:*\x20%0',o(_0x2e39b9,this['_getTranslationKeyForListStyle'](_0x31b36f['oldValue'])))};}if('default'!=_0x31b36f['newValue'])return{'type':'format','content':''+o(_0x2e39b9,'*Set\x20format:*\x20%0',o(_0x2e39b9,this['_getTranslationKeyForListStyle'](_0x31b36f['newValue'])))};let _0x464c49=_0x1e3745['head'];for(;_0x464c49;){if(_0x464c49['data']&&'listType'==_0x464c49['data']['key']&&_0x464c49['data']['newValue']&&_0x464c49['data']['oldValue'])return _0x312891;_0x464c49=_0x464c49['next'];}return{'type':'format','content':o(_0x2e39b9,'*Set\x20format:*\x20%0',o(_0x2e39b9,'ELEMENT_'+_0x1e3745['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x49c662=this['editor'],_0x1b309e=_0x49c662['locale'];_0x49c662['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43a561=>{if('formatBlock'!=_0x43a561['type'])return;const {data:_0x35f911}=_0x43a561;if(!_0x35f911)return;let _0x330156,_0x18d721;switch(_0x35f911['commandName']){case'listStyle':_0x330156='*Change\x20to:*\x20%0',_0x18d721={'type':'format','content':o(_0x1b309e,_0x330156,o(_0x1b309e,this['_getTranslationKeyForListStyle'](_0x35f911['commandParams'][0x0]['type'])))};break;case'listReversed':_0x330156=_0x35f911['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x18d721={'type':'format','content':o(_0x1b309e,_0x330156)};break;case'listStart':_0x330156='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x18d721={'type':'format','content':o(_0x1b309e,_0x330156,_0x35f911['commandParams'][0x0]['startIndex'])};}return _0x18d721;});}['_getTranslationKeyForListStyle'](_0x4b39b6){return'ELEMENT_'+function(_0x524ec8){if(Se['includes'](_0x524ec8))return'bulleted';if(_e['includes'](_0x524ec8))return'numbered';return null;}(_0x4b39b6)['toUpperCase']()+'_LIST_'+_0x4b39b6['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0xda0844{['afterInit'](){const _0x292710=this['editor'];_0x292710['commands']['get']('emoji')&&_0x292710['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0xda0844{static get['requires'](){return[_0x9f3d28];}['init'](){const _0x8519c3=this['editor'],_0xb86b33=_0x8519c3['plugins']['get']('TrackChangesEditing'),_0x5f40da=_0x8519c3['commands']['get']('enter');_0xb86b33['enableCommand']('enter',()=>{_0x8519c3['model']['change'](_0x5a2df2=>{const _0x283c7e=_0x8519c3['model']['document']['selection'],_0xa29e88=_0x283c7e['getFirstPosition'](),_0x4f37e6=_0x40d9f2['fromRange'](_0x283c7e['getFirstRange']());if(_0x5f40da['enterBlock'](_0x5a2df2)){const _0x35a8df=_0x8519c3['model']['createPositionAt'](_0xa29e88['parent']['nextSibling'],0x0),_0x3397c4=_0x5a2df2['createRange'](_0xa29e88,_0x35a8df);_0xb86b33['markInsertion'](_0x3397c4);}else _0x5a2df2['setSelection'](_0x5a2df2['createRange'](_0x4f37e6['end']));_0x4f37e6['detach'](),_0x5f40da['fire']('afterExecute',{'writer':_0x5a2df2});});}),_0x8519c3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x8519c3,'split'),{'priority':'high'}),_0x8519c3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5782ee,_0x103909,_0x4f9999)=>{const _0x4fed8e=_0x4f9999['mapper']['markerNameToElements'](_0x103909['markerName']);if(_0x4fed8e){for(const _0x37f55e of _0x4fed8e)_0x37f55e['hasClass']('ck-suggestion-marker-split')&&(_0x4f9999['mapper']['unbindElementFromMarkerName'](_0x37f55e,_0x103909['markerName']),_0x4f9999['writer']['remove'](_0x37f55e));}},{'priority':'high'}),_0x8519c3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x279fc4,_0x19cd22,_0xf45b1c)=>{_0xf45b1c['options']['showSuggestionHighlights']&&Ne(_0x8519c3,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x279fc4,_0x19cd22,_0xf45b1c);},{'priority':'high'});}}class Q extends _0xda0844{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3da344=this['editor']['plugins']['get']('TrackChangesEditing');_0x3da344['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3da344['enableCommand']('findNext'),_0x3da344['enableCommand']('findPrevious'),_0x3da344['enableCommand']('replace'),_0x3da344['enableCommand']('replaceAll');}['handleFindCommand'](_0x5dd2c6,_0x4bbeb6,_0x4bf1df={}){const _0x6f99c4=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5dd2c6(_0x1c46fc=>{let _0x3964b7=('string'==typeof _0x4bbeb6?_0x6f99c4['findByTextCallback'](_0x4bbeb6,_0x4bf1df):_0x4bbeb6)(_0x1c46fc);Array['isArray'](_0x3964b7)&&(_0x3964b7={'results':_0x3964b7,'searchText':'string'==typeof _0x4bbeb6?_0x4bbeb6:''});const _0x37299d=_0x3964b7['results']['filter'](_0x1627f4=>!0x1===this['_isInDeletionRange'](_0x1627f4,_0x1c46fc['item']));return{..._0x3964b7,'results':_0x37299d};},_0x4bf1df);}['_isInDeletionRange'](_0xabac8d,_0x1589aa){const _0x76f2b9=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1589aa,_0xabac8d['start']),this['editor']['model']['createPositionAt'](_0x1589aa,_0xabac8d['end']));for(const _0x3e99b3 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x76f2b9['getIntersection'](_0x3e99b3['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0xda0844{['afterInit'](){const _0x3ac4f8=this['editor']['locale'],_0x4af9c8=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x449f4c,commandName:_0xe41093}of eo)this['editor']['plugins']['has'](_0x449f4c)&&(_0x4af9c8['enableDefaultAttributesIntegration'](_0xe41093),_0x4af9c8['registerInlineAttribute'](_0xe41093));_0x4af9c8['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3ac4f8,'FORMAT_FONT_SIZE')),_0x4af9c8['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3ac4f8,'FORMAT_FONT_FAMILY')),_0x4af9c8['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3ac4f8,'FORMAT_FONT_COLOR')),_0x4af9c8['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3ac4f8,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9efca2=this['editor'],_0x2eb479=_0x9efca2['locale'];_0x9efca2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x580adf=>{const _0x311c66=_0x2eb479['t'];if('formatInline'!=_0x580adf['type'])return;const {data:_0x443b92}=_0x580adf;if(null!=_0x443b92){if('fontSize'==_0x443b92['commandName']){const _0x31f168=_0x443b92['commandParams'][0x0]['value'];if(_0x31f168){const _0x50d829=_0x311c66(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1311bd=>_0x1311bd['model']==_0x31f168)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2eb479,'*Set\x20font\x20size:*\x20%0',_0x50d829)};}return{'type':'format','content':o(_0x2eb479,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x443b92['commandName']){const _0x3a02f1=_0x443b92['commandParams'][0x0]['value'];return _0x3a02f1?{'type':'format','content':o(_0x2eb479,'*Set\x20font\x20family:*\x20%0',_0x3a02f1)}:{'type':'format','content':o(_0x2eb479,'*Reset\x20font\x20family*')};}if('fontColor'==_0x443b92['commandName']){const _0x2d8290=_0x443b92['commandParams'][0x0]['value'];if(_0x2d8290){const _0x47863a=_0x28c5d9(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1598e9=>_0x1598e9['model']==_0x2d8290);let _0x4b5f23=_0x2d8290,_0x4e0291='';return _0x47863a&&(_0x4b5f23=_0x47863a['label'],_0x4e0291=_0x311c66(_0x4b5f23)['toLowerCase']()),{'type':'format','content':o(_0x2eb479,'*Set\x20font\x20color:*\x20%0',_0x4e0291)['trim'](),'color':{'value':_0x2d8290,'title':_0x4e0291||_0x4b5f23}};}return{'type':'format','content':o(_0x2eb479,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x443b92['commandName']){const _0x4ff66d=_0x443b92['commandParams'][0x0]['value'];if(_0x4ff66d){const _0x13bb08=_0x28c5d9(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x465368=>_0x465368['model']==_0x4ff66d);let _0x4b6226=_0x4ff66d,_0x1fea88='';return _0x13bb08&&(_0x4b6226=_0x13bb08['label'],_0x1fea88=_0x311c66(_0x4b6226)['toLowerCase']()),{'type':'format','content':o(_0x2eb479,'*Set\x20font\x20background\x20color:*\x20%0',_0x1fea88)['trim'](),'color':{'value':_0x4ff66d,'title':_0x1fea88||_0x4b6226}};}return{'type':'format','content':o(_0x2eb479,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0xda0844{['afterInit'](){const _0x1e982f=this['editor'],_0x249d1e=_0x1e982f['plugins']['get']('TrackChangesEditing'),_0x401d98=_0x1e982f['commands']['get']('copyFormat'),_0x54ec38=_0x1e982f['commands']['get']('pasteFormat');_0x401d98&&_0x54ec38&&(_0x249d1e['enableDefaultAttributesIntegration']('pasteFormat'),_0x249d1e['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x54da61=this['editor'],_0x50ff36=_0x54da61['locale'];_0x54da61['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4088f3=>{if('formatBlock'!=_0x4088f3['type']&&'formatInline'!=_0x4088f3['type'])return;const {data:_0x1b651e}=_0x4088f3;if(_0x1b651e&&'pasteFormat'===_0x1b651e['commandName']){const _0x327973=[],_0xba2bbc=_0x1b651e['commandParams'][0x0];for(const [_0x33518e,_0x314877]of Object['entries'](_0xba2bbc))_0x327973['push'](ro(_0x54da61,_0x33518e,_0x314877));return _0x327973['length']?{'type':'format','content':o(_0x50ff36,'*Set\x20format\x20to:*\x20%0',_0x327973['join'](',\x20'))}:{'type':'format','content':o(_0x50ff36,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x67518e,_0xf8edf7,_0x469454){const _0x39e309=_0x67518e['locale']['t'],_0x3a76fb=_0xf8edf7['split'](/(?=[A-Z])/)['join']('\x20'),_0xa48706=_0x39e309(_0x3a76fb['charAt'](0x0)['toUpperCase']()+_0x3a76fb['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x469454)return _0xa48706;if('fontColor'===_0xf8edf7||'fontBackgroundColor'===_0xf8edf7){const _0xb044bd=_0x28c5d9(_0x67518e['config']['get']('fontColor.colors'))['find'](_0x41a8ad=>_0x41a8ad['model']==_0x469454);return _0xa48706+'\x20('+(_0xb044bd?_0x39e309(_0xb044bd['label'])['toLowerCase']():_0x469454)+')';}if('fontSize'===_0xf8edf7&&isNaN(parseFloat(_0x469454))){const _0x842c8d=_0x67518e['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x67518e['config']['get']('fontSize.options'))['find'](_0x53b37d=>_0x53b37d['model']==_0x469454);return _0xa48706+'\x20('+(_0x842c8d?_0x39e309(_0x842c8d['title'])['toLowerCase']():_0x469454)+')';}return _0xa48706+'\x20('+_0x469454+')';}class Z extends _0xda0844{['_headingOptions'];['afterInit'](){const _0x408e60=this['editor'];if(!_0x408e60['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x408e60['config']['get']('heading.options');const _0x57acad=_0x408e60['locale'],_0x3325e4=_0x408e60['plugins']['get']('TrackChangesEditing');_0x3325e4['enableDefaultAttributesIntegration']('heading');for(const _0x5e4edb of this['_headingOptions'])'paragraph'!=_0x5e4edb['model']&&_0x3325e4['descriptionFactory']['registerElementLabel'](_0x5e4edb['model'],_0x4f3a4e=>{const _0x268219=this['_getHeadingLevel'](_0x5e4edb['model']);return null!==_0x268219?_0x18d9a2(_0x4f3a4e,_0x268219):_0x32379d(_0x4f3a4e,_0x5e4edb['title']);});function _0x18d9a2(_0x4095f3,_0x47c974){return o(_0x57acad,'ELEMENT_HEADING',[_0x4095f3,_0x47c974]);}function _0x32379d(_0xd91c4,_0x568508){return o(_0x57acad,'ELEMENT_HEADING_CUSTOM',[_0xd91c4,_0x568508]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b73bb=this['editor'],_0x83cc07=_0x1b73bb['locale'];function _0x3d4186(_0x3a6a23,_0x4a4131){return o(_0x83cc07,'ELEMENT_HEADING_CUSTOM',[_0x3a6a23,_0x4a4131]);}_0x1b73bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x146f5a=>{if('formatBlock'!=_0x146f5a['type'])return;const {data:_0x206665}=_0x146f5a;if(_0x206665&&'heading'==_0x206665['commandName']){const _0x5d9a80=_0x206665['commandParams'][0x0]['value'],_0xbed2d8=this['_getHeadingLevel'](_0x5d9a80);if(null!==_0xbed2d8)return{'type':'format','content':o(_0x83cc07,'*Change\x20to:*\x20%0',(_0x587d71=0x1,_0x4a70ff=_0xbed2d8,o(_0x83cc07,'ELEMENT_HEADING',[_0x587d71,_0x4a70ff])))};const _0x329dcd=this['_headingOptions']['find'](_0x5a2f7b=>_0x5a2f7b['model']===_0x5d9a80)['title'];return{'type':'format','content':o(_0x83cc07,'*Change\x20to:*\x20%0',_0x3d4186(0x1,_0x329dcd))};}var _0x587d71,_0x4a70ff;});}['_getHeadingLevel'](_0x1816ad){const _0x19fe95=_0x1816ad['match'](/^heading(\d+)/);if(_0x19fe95)return _0x19fe95[0x1];const _0x3f51e3=this['_headingOptions']?.['find'](_0x43a935=>_0x43a935['model']==_0x1816ad);if(_0x3f51e3&&_0x3f51e3['view']){const _0x227335=_0x3f51e3['view'],_0x38d074=(_0x227335['name']??_0x227335)['match'](/^h(\d+)/);if(_0x38d074)return _0x38d074[0x1];}return null;}}class tt extends _0xda0844{['afterInit'](){const _0x5a230a=this['editor'];if(!_0x5a230a['plugins']['has']('HighlightEditing'))return;const _0x315591=_0x5a230a['plugins']['get']('TrackChangesEditing'),_0x9abe7=_0x5a230a['locale'];_0x315591['enableDefaultAttributesIntegration']('highlight'),_0x315591['registerInlineAttribute']('highlight'),_0x315591['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x9abe7,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50cc8b=this['editor'],_0x5b003b=_0x50cc8b['locale'];_0x50cc8b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39f864=>{if('formatInline'!=_0x39f864['type'])return;const {data:_0x2fa7ed}=_0x39f864;if(_0x2fa7ed&&'highlight'==_0x2fa7ed['commandName']){const _0x3cb7ba=_0x5b003b['t'],_0x112109=_0x2fa7ed['commandParams'][0x0]['value'];if(_0x112109){const _0x4da724=_0x50cc8b['config']['get']('highlight.options')['find'](_0x17a194=>_0x17a194['model']==_0x112109),_0x159171=_0x3cb7ba(_0x4da724['title'])['toLowerCase']();return{'type':'format','content':o(_0x5b003b,'*Set\x20highlight:*\x20%0',_0x159171),'color':{'value':_0x4da724['color'],'title':_0x4da724['title']}};}return{'type':'format','content':o(_0x5b003b,'*Remove\x20highlight*',o(_0x5b003b,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0xda0844{['afterInit'](){const _0xaf3634=this['editor'];if(!_0xaf3634['plugins']['has']('HorizontalLineEditing'))return;_0xaf3634['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4c7a00=_0xaf3634['plugins']['get']('TrackChangesEditing'),_0x55a7d3=_0xaf3634['locale'];_0x4c7a00['descriptionFactory']['registerElementLabel']('horizontalLine',_0xd8137a=>o(_0x55a7d3,'ELEMENT_HORIZONTAL_LINE',_0xd8137a)),_0xaf3634['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x25394b,{writer:_0x1b2354,options:_0x339b49})=>{if(!_0x339b49['showSuggestionHighlights'])return null;const _0x4705e3=_0x1b2354['createContainerElement']('div'),_0x549836=_0x1b2354['createEmptyElement']('hr');return _0x1b2354['addClass']('ck-horizontal-line',_0x4705e3),_0x1b2354['insert'](_0x1b2354['createPositionAt'](_0x4705e3,0x0),_0x549836),_0x4705e3;},'converterPriority':'high'});}}class nt extends _0xda0844{['afterInit'](){const _0x366f3d=this['editor'];if(!_0x366f3d['plugins']['has']('HtmlEmbed'))return;const _0x107704=_0x366f3d['plugins']['get']('TrackChangesEditing'),_0x182a5a=_0x366f3d['locale'];_0x107704['descriptionFactory']['registerElementLabel']('rawHtml',_0x20412e=>o(_0x182a5a,'ELEMENT_HTML_EMBED',_0x20412e)),_0x107704['enableDefaultAttributesIntegration']('htmlEmbed'),_0x107704['registerBlockAttribute']('value'),_0x107704['descriptionFactory']['registerDescriptionCallback'](_0x5b0e61=>{if('attribute'!=_0x5b0e61['type'])return;const {data:_0x7ef7dd}=_0x5b0e61;if(_0x7ef7dd&&'value'==_0x7ef7dd['key']&&_0x5b0e61['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1e6bd2=o(_0x182a5a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x182a5a,'*Change\x20%0\x20content*',_0x1e6bd2)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x272fb8=this['editor'],_0x411f77=_0x272fb8['locale'];_0x272fb8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59fe2b=>{if('formatBlock'!=_0x59fe2b['type'])return;const {data:_0x3dc1e4}=_0x59fe2b;if(_0x3dc1e4&&'htmlEmbed'==_0x3dc1e4['commandName']){const _0x22b902=o(_0x411f77,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x411f77,'*Change\x20%0\x20content*',_0x22b902)};}});}}class et extends _0xda0844{['afterInit'](){const _0x292c8c=this['editor'];if(!_0x292c8c['plugins']['has']('ImageEditing'))return;const _0xc7f75d=_0x292c8c['plugins']['get']('TrackChangesEditing'),_0x4c887f=_0x292c8c['plugins']['get']('ImageUtils'),_0x37ecb6=_0x292c8c['locale'];_0xc7f75d['enableCommand']('insertImage'),_0xc7f75d['descriptionFactory']['registerElementLabel']('imageBlock',_0x49759b=>o(_0x37ecb6,'ELEMENT_IMAGE',_0x49759b)),_0xc7f75d['descriptionFactory']['registerElementLabel']('imageInline',_0x421a3a=>o(_0x37ecb6,'ELEMENT_INLINE_IMAGE',_0x421a3a)),_0xc7f75d['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x37ecb6,'ELEMENT_CAPTION')),_0x292c8c['plugins']['has']('ImageUploadEditing')&&_0xc7f75d['enableCommand']('uploadImage'),_0x292c8c['plugins']['has']('ImageBlockEditing')&&_0x292c8c['plugins']['has']('ImageInlineEditing')&&(_0xc7f75d['enableCommand']('imageTypeInline',(_0x1530e2,_0x455d57)=>{const _0x7c35c=_0x4c887f['getClosestSelectedImageElement'](_0x292c8c['model']['document']['selection']);_0x292c8c['model']['change'](()=>{_0xc7f75d['markBlockFormat'](_0x7c35c,{'commandName':'imageTypeInline','commandParams':[_0x455d57]},[],'convertBlockImageToInline');});}),_0xc7f75d['enableCommand']('imageTypeBlock',(_0x39b778,_0x3707cd)=>{_0x292c8c['model']['change'](_0x23899d=>{let _0x1900e5=_0x4c887f['getClosestSelectedImageElement'](_0x292c8c['model']['document']['selection']),_0x409f6d=_0x23899d['createRangeOn'](_0x1900e5);const _0x24d257=_0x37ee90['fromPosition'](_0x409f6d['start'],'toPrevious'),_0x18774e=_0x37ee90['fromPosition'](_0x409f6d['end'],'toNext');_0xc7f75d['forceDefaultExecution'](()=>_0x39b778(_0x3707cd)),_0x1900e5=_0x4c887f['getClosestSelectedImageElement'](_0x292c8c['model']['document']['selection']),_0x409f6d=_0x23899d['createRangeOn'](_0x1900e5);const _0x4531fb=_0x23899d['createRange'](_0x24d257,_0x18774e);_0x24d257['detach'](),_0x18774e['detach'](),_0xc7f75d['markBlockFormat'](_0x1900e5,{'commandName':'imageTypeInline','commandParams':[_0x3707cd]},[],'convertInlineImageToBlock'),_0x4531fb['start']['isBefore'](_0x409f6d['start'])&&_0xc7f75d['markInsertion'](_0x23899d['createRange'](_0x4531fb['start'],_0x409f6d['start']),'convertInlineImageToBlock'),_0x409f6d['end']['isBefore'](_0x4531fb['end'])&&_0xc7f75d['markInsertion'](_0x23899d['createRange'](_0x409f6d['end'],_0x4531fb['end']),'convertInlineImageToBlock');});}),_0xc7f75d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xc7f75d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xc7f75d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xc7f75d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xc7f75d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xc7f75d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x98758b])=>{const _0x279fe8=_0xc7f75d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x14a2b6=_0x98758b['start'],_0x54c487=_0x98758b['end'];const _0x48e8c5=_0x292c8c['model']['schema']['getNearestSelectionRange'](_0x14a2b6,'backward'),_0x506ada=_0x292c8c['model']['schema']['getNearestSelectionRange'](_0x54c487,'forward');_0x48e8c5['isCollapsed']&&(_0x14a2b6=_0x48e8c5['start']),_0x506ada['isCollapsed']&&(_0x54c487=_0x506ada['end']),_0x279fe8([_0x292c8c['model']['createRange'](_0x14a2b6,_0x54c487)]);}),_0xc7f75d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x338350),_0xc7f75d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x338350)),_0x292c8c['plugins']['has']('ImageCaptionEditing')&&(_0xc7f75d['enableCommand']('toggleImageCaption',(_0x30a02d,_0x1a0708)=>{const _0x2972df=_0x292c8c['plugins']['get']('ImageCaptionUtils');let _0x1fc3d7=_0x4c887f['getClosestSelectedImageElement'](_0x292c8c['model']['document']['selection']),_0x1d5414=_0x2972df['getCaptionFromImageModelElement'](_0x1fc3d7);_0x292c8c['model']['change'](()=>{if(_0x1d5414)return void _0xc7f75d['markDeletion'](_0x292c8c['model']['createRangeOn'](_0x1d5414));const _0x295f12=_0x4c887f['isBlockImage'](_0x1fc3d7);_0x30a02d(_0x1a0708),_0x1fc3d7=_0x4c887f['getClosestSelectedImageElement'](_0x292c8c['model']['document']['selection']),_0x1d5414=_0x2972df['getCaptionFromImageModelElement'](_0x1fc3d7),_0xc7f75d['markInsertion'](_0x292c8c['model']['createRangeOn'](_0x1d5414),_0x295f12?null:'imageCaption');});}),_0xc7f75d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x338350));const _0x53a508=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x660973(_0x5a76e8,_0x3b803e){const _0x8d6a6b=_0x53a508['findIndex'](({type:_0x32e3c6,subType:_0xd532})=>_0x5a76e8['type']==_0x32e3c6&&_0x5a76e8['subType']==_0xd532),_0x316fea=_0x53a508['findIndex'](({type:_0x177b4b,subType:_0x48f5f3})=>_0x3b803e['type']==_0x177b4b&&_0x3b803e['subType']==_0x48f5f3);if(_0x8d6a6b<0x0||_0x316fea<0x0)return!0x1;const _0x484584=_0x5a76e8['getFirstRange'](),_0x3c8727=_0x3b803e['getFirstRange']();if((0x0==_0x8d6a6b||0x1==_0x8d6a6b)&&0x2==_0x316fea&&_0x484584['isIntersecting'](_0x3c8727))return!0x0;if(0x2==_0x8d6a6b&&0x3==_0x316fea){const _0x421aaf=_0xc7f75d['_findSuggestions'](_0x484584,'insertion')['filter'](({suggestion:_0x14eb26,meta:_0x392d46})=>_0x392d46['isOwn']&&'convertInlineImageToBlock'==_0x14eb26['subType']);if(_0x421aaf['length']>0x1&&_0x3c8727['end']['isEqual'](_0x484584['start']))return!0x0;if(0x1==_0x421aaf['length']&&(_0x484584['start']['isEqual'](_0x3c8727['end'])||_0x484584['end']['isEqual'](_0x3c8727['start'])))return!0x0;}if(0x3==_0x8d6a6b&&0x3==_0x316fea&&_0x484584['start']['isBefore'](_0x3c8727['start'])){const _0x457b28=_0x484584['end']['nodeAfter'],_0x14d0d7=_0x3c8727['start']['nodeBefore'];return _0x4c887f['isBlockImage'](_0x457b28)&&_0x457b28===_0x14d0d7;}return!0x1;}function _0x338350(_0x13c18a,_0x48a875){return _0x660973(_0x13c18a,_0x48a875)?[_0x13c18a,_0x48a875]:_0x660973(_0x48a875,_0x13c18a)?[_0x48a875,_0x13c18a]:null;}_0x292c8c['plugins']['has']('ImageResize')&&(_0xc7f75d['enableDefaultAttributesIntegration']('resizeImage'),_0xc7f75d['registerBlockAttribute']('resizedWidth'),_0xc7f75d['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x37ecb6,'FORMAT_IMAGE_SIZE'))),_0x292c8c['plugins']['has']('ImageTextAlternativeEditing')&&(_0xc7f75d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xc7f75d['registerBlockAttribute']('alt')),_0x292c8c['plugins']['has']('PictureEditing')&&(_0xc7f75d['registerBlockAttribute']('sources'),_0xc7f75d['descriptionFactory']['registerDescriptionCallback'](_0x1ac31c=>{if('attribute'!=_0x1ac31c['type'])return;const {data:_0x19c1fa}=_0x1ac31c;return _0x19c1fa&&'sources'==_0x19c1fa['key']?{'type':'format','content':''}:void 0x0;})),_0x292c8c['plugins']['has']('ImageSizeAttributes')&&(_0xc7f75d['registerBlockAttribute']('width'),_0xc7f75d['registerBlockAttribute']('height'),_0xc7f75d['descriptionFactory']['registerDescriptionCallback'](_0x35023e=>{if('attribute'!=_0x35023e['type'])return;const {data:_0x29968c}=_0x35023e;return!_0x29968c||'width'!=_0x29968c['key']&&'height'!=_0x29968c['key']?void 0x0:{'type':'format','content':''};})),_0xc7f75d['descriptionFactory']['registerDescriptionCallback'](_0x1ac071=>{if(!!_0x53a508['find'](({type:_0x2042ce,subType:_0x58df83})=>_0x1ac071['type']==_0x2042ce&&_0x1ac071['subType']==_0x58df83))return _0x1ac071['previous']?{}:void 0x0;}),_0xc7f75d['descriptionFactory']['registerDescriptionCallback'](_0x220cbf=>{if('insertion'==_0x220cbf['type']||'deletion'==_0x220cbf['type']){const _0x50e047=_0x220cbf['getContainedElement']();if(_0x50e047&&_0x50e047['is']('element','caption'))return{'type':'insertion'==_0x220cbf['type']?'addObject':'removeObject','element':_0x50e047,'quantity':0x1};}}),_0xc7f75d['descriptionFactory']['registerDescriptionCallback'](_0x218b2e=>'formatBlock'==_0x218b2e['type']&&'convertInlineImageToBlock'==_0x218b2e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x218b2e['type']&&'convertBlockImageToInline'==_0x218b2e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xc7f75d['descriptionFactory']['registerDescriptionCallback'](_0x84c98a=>{if('attribute'!=_0x84c98a['type'])return;const {data:_0x3c6e59}=_0x84c98a;if(!_0x3c6e59||'alt'!=_0x3c6e59['key'])return;const _0x5cc0ea=_0x3c6e59['newValue'];return _0x5cc0ea?{'type':'format','content':o(_0x37ecb6,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5cc0ea+'\x22')}:{'type':'format','content':o(_0x37ecb6,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a0d42=this['editor'],_0x38092a=_0x5a0d42['locale'];_0x5a0d42['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x351dad=>{if('formatBlock'!=_0x351dad['type']&&'formatInline'!=_0x351dad['type'])return;const {data:_0x1bf087}=_0x351dad;if(_0x1bf087){if('imageTextAlternative'==_0x1bf087['commandName']){const _0x299a29=_0x1bf087['commandParams'][0x0]['newValue'];return _0x299a29?{'type':'format','content':o(_0x38092a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x299a29+'\x22')}:{'type':'format','content':o(_0x38092a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1bf087['commandName']){const _0x4bd8d2=_0x1bf087['commandParams'][0x0]['width'];return _0x4bd8d2?{'type':'format','content':o(_0x38092a,'*Set\x20image\x20width:*\x20%0',_0x4bd8d2)}:{'type':'format','content':o(_0x38092a,'*Reset\x20image\x20width*')};}}});}}class st extends _0xda0844{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x16c386=this['editor']['locale'],_0x2ab0ad=this['editor']['plugins']['get']('TrackChangesEditing');_0x2ab0ad['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2ab0ad['registerBlockAttribute']('src'),_0x2ab0ad['descriptionFactory']['registerDescriptionCallback'](_0x518886=>{if('attribute'!=_0x518886['type'])return;const {data:_0x13226c}=_0x518886;return _0x13226c&&'src'==_0x13226c['key']?_0x13226c['newValue']&&_0x13226c['oldValue']?{'type':'format','content':o(_0x16c386,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3c5aea=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c5aea['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3c5aea['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3c5aea['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3c5aea['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2fcf7c=this['editor'],_0x3bd5f1=_0x2fcf7c['locale'];_0x2fcf7c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x164dbf=>{if('formatBlock'!=_0x164dbf['type']&&'formatInline'!=_0x164dbf['type'])return;const {data:_0x4777e6}=_0x164dbf;if(!_0x4777e6||'replaceImageSource'!=_0x4777e6['commandName'])return;return{'type':'format','content':o(_0x3bd5f1,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0xda0844{['afterInit'](){const _0x23c9ac=this['editor'];if(!_0x23c9ac['plugins']['has']('ImageStyleEditing'))return;const _0x3a6ae1=_0x23c9ac['plugins']['get']('TrackChangesEditing'),_0x29f3a9=_0x23c9ac['plugins']['get']('ImageUtils'),_0x29c584={};_0x3a6ae1['enableCommand']('imageStyle',(_0x26a10f,_0x4a3c64)=>{const _0x3f0fcc=_0x23c9ac['plugins']['get']('Users')['me'],_0x4d48ae=_0x23c9ac['commands']['get']('imageStyle');let _0x282695=_0x29f3a9['getClosestSelectedImageElement'](_0x23c9ac['model']['document']['selection']),_0x1ad71d=_0x23c9ac['model']['createRangeOn'](_0x282695),_0x4a2412=_0x4d48ae['value'];if(_0x4a2412==_0x4a3c64['value'])return;const _0xc3f8d9={'commandName':'imageStyle','commandParams':[_0x4a3c64],'formatGroupId':_0x47d328()};_0x23c9ac['model']['change'](()=>{if(_0x3a6ae1['getSuggestions']()['filter'](_0x1786ee=>_0x1786ee['isInContent']&&_0x3f0fcc==_0x1786ee['author']&&('formatBlock'==_0x1786ee['type']||'formatInline'==_0x1786ee['type'])&&('imageStylePreApply'==_0x1786ee['subType']||'imageStylePostApply'==_0x1786ee['subType'])&&_0x1786ee['getFirstRange']()['isEqual'](_0x1ad71d))['forEach'](_0x526636=>_0x3a6ae1['discardSuggestion'](_0x526636['head'])),_0x282695=_0x29f3a9['getClosestSelectedImageElement'](_0x23c9ac['model']['document']['selection']),_0x1ad71d=_0x23c9ac['model']['createRangeOn'](_0x282695),_0x4d48ae['refresh'](),_0x23c9ac['commands']['get']('imageTypeInline')['refresh'](),_0x23c9ac['commands']['get']('imageTypeBlock')['refresh'](),_0x4a2412=_0x4d48ae['value'],_0x4a2412!=_0x4a3c64['value'])return _0x29f3a9['isInlineImage'](_0x282695)&&_0x4d48ae['shouldConvertImageType'](_0x4a3c64['value'],_0x282695)?(_0x26a10f({..._0x4a3c64,'setImageSizes':!0x1}),_0x282695=_0x29f3a9['getClosestSelectedImageElement'](_0x23c9ac['model']['document']['selection']),void _0x3a6ae1['markBlockFormat'](_0x282695,{..._0xc3f8d9,'commandReversedParams':[{'value':_0x4a2412||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x29f3a9['isBlockImage'](_0x282695)?_0x3a6ae1['markBlockFormat'](_0x282695,_0xc3f8d9,[],'imageStylePostApply'):_0x3a6ae1['markInlineFormat'](_0x1ad71d,_0xc3f8d9,'imageStylePostApply'));});});for(const _0x2f7e08 of _0x23c9ac['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x29c584[_0x2f7e08['name']]=_0x2f7e08['title']['toLowerCase']();_0x3a6ae1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3a6ae1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3a6ae1['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3a6ae1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x20fc81])=>{_0x29f3a9['setImageNaturalSizeAttributes'](_0x20fc81['getContainedElement']());}),_0x3a6ae1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2e5caa,_0x48b826)=>{_0x3a6ae1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2e5caa,{'commandName':_0x48b826['commandName'],'commandParams':_0x48b826['commandReversedParams']});}),_0x3a6ae1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x158eaa,_0x2bedfc){if(_0x34bafa(_0x158eaa,_0x2bedfc))return[_0x158eaa,_0x2bedfc];if(_0x34bafa(_0x2bedfc,_0x158eaa))return[_0x2bedfc,_0x158eaa];return null;});const _0x5b32a4=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x34bafa(_0x3e0163,_0x209b01){const _0x488ebc=_0x5b32a4['findIndex'](({type:_0x4e494c,subType:_0x541087})=>_0x3e0163['type']==_0x4e494c&&_0x3e0163['subType']==_0x541087),_0x2f285b=_0x5b32a4['findIndex'](({type:_0x2d30e2,subType:_0x360c24})=>_0x209b01['type']==_0x2d30e2&&_0x209b01['subType']==_0x360c24);if(_0x488ebc<0x0||_0x2f285b<0x0)return!0x1;const _0x22e371=_0x3e0163['getFirstRange'](),_0x3ce32c=_0x209b01['getFirstRange']();if((0x0==_0x488ebc||0x1==_0x488ebc)&&0x2==_0x2f285b&&_0x22e371['isIntersecting'](_0x3ce32c))return!0x0;if(0x2==_0x488ebc&&0x3==_0x2f285b){const _0x1683f3=_0x3a6ae1['_findSuggestions'](_0x22e371,'insertion')['filter'](({suggestion:_0x121dc0,meta:_0x46c580})=>_0x46c580['isOwn']&&'convertInlineImageToBlock'==_0x121dc0['subType']);if(_0x1683f3['length']>0x1&&_0x3ce32c['end']['isEqual'](_0x22e371['start']))return!0x0;if(0x1==_0x1683f3['length']&&(_0x22e371['start']['isEqual'](_0x3ce32c['end'])||_0x22e371['end']['isEqual'](_0x3ce32c['start'])))return!0x0;}if(0x3==_0x488ebc&&0x3==_0x2f285b&&_0x22e371['start']['isBefore'](_0x3ce32c['start'])){const _0x31b748=_0x22e371['end']['nodeAfter'],_0x382564=_0x3ce32c['start']['nodeBefore'];return _0x29f3a9['isBlockImage'](_0x31b748)&&_0x31b748===_0x382564;}return!0x1;}_0x23c9ac['model']['document']['registerPostFixer'](()=>{let _0x21442b=!0x1;const _0x1549c5=Array['from'](_0x23c9ac['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x493292,data:_0x55d39a}of _0x1549c5){const {group:_0x24de5a,type:_0x3311c9,subType:_0x463c08,id:_0x2c7746}=_0x3a6ae1['_splitMarkerName'](_0x493292);if('suggestion'==_0x24de5a&&_0x3a6ae1['hasSuggestion'](_0x2c7746)){if('formatBlock'==_0x3311c9&&('imageStylePreApply'==_0x463c08||'imageStylePostApply'==_0x463c08)){const _0x514fb7=_0x3a6ae1['getSuggestion'](_0x2c7746);if(_0x55d39a['newRange']){const _0x4cd89c=_0x514fb7['getFirstRange']()['getContainedElement']();if(_0x29f3a9['isBlockImage'](_0x4cd89c))continue;_0x3a6ae1['discardSuggestion'](_0x514fb7),_0x21442b=!0x0;}}if('insertion'==_0x3311c9&&'imageCaption'==_0x463c08&&!_0x55d39a['newRange']){const _0x1044e9=_0x3a6ae1['getSuggestion'](_0x2c7746);_0x1044e9['next']&&_0x1044e9['next']['isInContent']&&(_0x3a6ae1['discardSuggestion'](_0x1044e9['next']),_0x21442b=!0x0);}}}return _0x21442b;}),this['_registerLegacyDescription'](_0x29c584);}['_registerLegacyDescription'](_0x598f5f){const _0xb4616=this['editor'],_0x1c55f1=_0xb4616['locale'];_0xb4616['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbd7fcb=>{if('formatBlock'!=_0xbd7fcb['type']&&'formatInline'!=_0xbd7fcb['type'])return;const {data:_0x5ee69a}=_0xbd7fcb;if(!_0x5ee69a||'imageStyle'!=_0x5ee69a['commandName'])return;const _0x40a08a=_0x5ee69a['commandParams'][0x0]['value'];return _0x432535('side'===_0x40a08a?o(_0x1c55f1,'FORMAT_SIDE_IMAGE'):_0x598f5f[_0x40a08a]||_0x40a08a);function _0x432535(_0x22ee74){return{'type':'format','content':o(_0x1c55f1,'*Format:*\x20%0',_0x22ee74)};}});}}class rt extends _0xda0844{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2a8db8){super(_0x2a8db8),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2fc05d=this['editor'],_0xc6970e=_0x2fc05d['commands']['get']('importWord'),_0x2a081c=_0x2fc05d['commands']['get']('trackChanges');_0xc6970e&&(_0xc6970e['on']('execute',(_0x52d941,[,_0x587eb3])=>{this['_trackChangesValueDuringImport']=_0x2a081c['value'],_0x587eb3['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xc6970e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xc6970e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2a081c['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2fc05d['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x41948b,_0x1b6580){const {suggestions:_0x3e97bc}=_0x1b6580,_0x33b59a=this['editor']['commands']['get']('trackChanges'),_0x4d7e7a=_0x33b59a['value'];this['_trackChangesValueDuringImport']!==_0x4d7e7a&&(_0x33b59a['execute'](),this['_trackChangesExecuted']=!0x0),_0x3e97bc&&_0x3e97bc['forEach'](({id:_0x2cd208,type:_0x18f4b4,author:_0x4f3192,created_at:_0x3cf559})=>{const _0x13bbb7={'id':_0x2cd208,'type':_0x18f4b4,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4f3192,'createdAt':_0x3cf559?new Date(_0x3cf559):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x13bbb7);});}}class at extends _0xda0844{['afterInit'](){const _0x1a49b0=this['editor'],_0x545035=_0x1a49b0['plugins']['get']('TrackChangesEditing');if(_0x1a49b0['plugins']['has']('IndentEditing')&&(_0x545035['enableCommand']('indent'),_0x545035['enableCommand']('outdent')),_0x1a49b0['plugins']['has']('IndentBlock')){for(const _0x14d960 of['indentBlock','outdentBlock'])_0x545035['enableDefaultAttributesIntegration'](_0x14d960);}const _0x58b246=_0x1a49b0['locale'];_0x545035['registerBlockAttribute']('blockIndent'),_0x545035['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x58b246,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7f2853=this['editor'],_0x1b0cfc=_0x7f2853['locale'],_0x5c90ab=_0x7f2853['plugins']['get']('TrackChangesEditing');_0x5c90ab['descriptionFactory']['registerDescriptionCallback'](_0x33319e=>{if('formatBlock'!=_0x33319e['type'])return;const {data:_0x2560e8}=_0x33319e;if(!_0x2560e8)return;if('indentBlock'!=_0x2560e8['commandName']&&'outdentBlock'!=_0x2560e8['commandName'])return;const _0x2de07e=_0x33319e['getItems']()[0x0],_0x27f836=_0x5c90ab['descriptionFactory']['getItemLabel'](_0x2de07e);return'indentBlock'==_0x2560e8['commandName']?{'type':'format','content':o(_0x1b0cfc,'*Indent:*\x20%0',_0x27f836)}:'outdentBlock'==_0x2560e8['commandName']?{'type':'format','content':o(_0x1b0cfc,'*Outdent:*\x20%0',_0x27f836)}:void 0x0;});}}class ct extends _0xda0844{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0xda0844{['afterInit'](){const _0x57f768=this['editor'];if(!_0x57f768['plugins']['has']('LinkEditing'))return;const _0x4a3895=_0x57f768['plugins']['get']('TrackChangesEditing'),_0x18473f=_0x57f768['commands']['get']('link');_0x4a3895['enableDefaultAttributesIntegration']('link'),_0x4a3895['enableDefaultAttributesIntegration']('unlink'),_0x4a3895['registerInlineAttribute']('linkHref');for(const _0x4ad1af of _0x18473f['manualDecorators'])_0x4a3895['registerInlineAttribute'](_0x4ad1af['id']),_0x4a3895['descriptionFactory']['registerAttributeLabel'](_0x4ad1af['id'],'link\x20('+_0x4ad1af['label']['toLowerCase']()+')');_0x4a3895['descriptionFactory']['registerDescriptionCallback'](_0x1688a3=>{if('attribute'!=_0x1688a3['type'])return;const {data:_0x60ca9f}=_0x1688a3;if(!_0x60ca9f||'linkHref'!=_0x60ca9f['key'])return;const _0x1c283d=_0x60ca9f['newValue'],_0x3654a3=_0x57f768['locale'];return{'type':'format','content':null==_0x1c283d?o(_0x3654a3,'*Remove\x20link*'):o(_0x3654a3,'*Set\x20link:*\x20%0','\x22'+_0x1c283d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b41d9=this['editor'],_0x132ee1=_0x5b41d9['locale'];_0x5b41d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a6489=>{if('formatInline'!=_0x3a6489['type'])return;const {data:_0xaa42d8}=_0x3a6489;if(_0xaa42d8){if('link'==_0xaa42d8['commandName']){const _0x5398e8=_0xaa42d8['commandParams'][0x0];return{'type':'format','content':o(_0x132ee1,'*Set\x20link:*\x20%0','\x22'+_0x5398e8+'\x22')};}return'unlink'==_0xaa42d8['commandName']?{'type':'format','content':o(_0x132ee1,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0xda0844{['afterInit'](){const _0x575ce8=this['editor'],_0x39159a=_0x575ce8['locale'];if(!_0x575ce8['plugins']['has']('LegacyListEditing'))return;const _0x38cd63=_0x575ce8['plugins']['get']('TrackChangesEditing'),_0x2cc126=_0x575ce8['plugins']['has']('LegacyTodoListEditing');function _0x1d3a96(_0x8aeb00){return()=>{const _0x2034dd=_0x575ce8['model']['document']['selection'],_0xf03a72=_0x575ce8['commands']['get'](_0x8aeb00);if(_0xf03a72['value'])return void _0x575ce8['execute']('paragraph',{});const _0x2dc7a0=_0x8aeb00['slice'](0x0,-0x4),_0x4dbb10=function(_0x1d77f2,_0xe44481,_0x7e6558){let _0x1d940f=Array['from'](_0x1d77f2)['filter'](_0x3e8bb4=>function(_0xf8e5c1,_0x3c6962){return _0x3c6962['checkChild'](_0xf8e5c1['parent'],'listItem')&&!_0x3c6962['isObject'](_0xf8e5c1);}(_0x3e8bb4,_0x7e6558));_0x1d940f=_0x1d940f['filter'](_0x552efb=>!_0x552efb['is']('element','listItem')||_0x552efb['getAttribute']('listType')!=_0xe44481);const _0x4187db=new Set();for(const _0x5e100b of _0x1d940f)_0x5e100b['is']('element','listItem')?_0x4187db['add'](Le(_0x5e100b)):_0x4187db['add'](_0x5e100b);return Array['from'](_0x4187db);}(_0x2034dd['getSelectedBlocks'](),_0x2dc7a0,_0x575ce8['model']['schema']);_0x575ce8['model']['change'](()=>{for(const _0x165f87 of _0x4dbb10)_0x38cd63['markBlockFormat'](_0x165f87,{'commandName':_0x8aeb00,'commandParams':[{'forceValue':!_0xf03a72['value']}],'formatGroupId':'blockName'},Ee(_0x165f87));});};}function _0x5de0b8(_0x3ca1c2){return()=>{const _0x681501=function(_0x2c8d4c){let _0x4709b0=Array['from'](_0x2c8d4c);const _0x44f8aa=_0x4709b0['findIndex'](_0x2cdc6c=>'listItem'!=_0x2cdc6c['name']);return _0x44f8aa>-0x1&&(_0x4709b0=_0x4709b0['slice'](0x0,_0x44f8aa)),_0x4709b0;}(_0x575ce8['model']['document']['selection']['getSelectedBlocks']()),_0x2be912=_0x575ce8['model']['createRange'](_0x575ce8['model']['createPositionAt'](_0x681501[0x0],'before'),_0x575ce8['model']['createPositionAt'](_0x681501[_0x681501['length']-0x1],'end'));_0x575ce8['model']['change'](()=>{_0x38cd63['markBlockFormat'](_0x2be912,{'commandName':_0x3ca1c2,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2a7185){const _0x4d0f7e=new Set();for(const _0x5658c8 of _0x2a7185){let _0x4d987c=_0x5658c8['nextSibling'];for(;_0x4d987c&&_0x4d987c['getAttribute']('listIndent')>_0x5658c8['getAttribute']('listIndent');)_0x4d0f7e['add'](_0x4d987c),_0x4d987c=_0x4d987c['nextSibling'];}return Array['from'](_0x4d0f7e);}(_0x681501));});};}_0x38cd63['enableCommand']('numberedList',_0x1d3a96('numberedList')),_0x38cd63['enableCommand']('bulletedList',_0x1d3a96('bulletedList')),_0x2cc126&&_0x38cd63['enableCommand']('todoList',_0x1d3a96('todoList')),_0x38cd63['enableCommand']('indentList',_0x5de0b8('indentList')),_0x38cd63['enableCommand']('outdentList',_0x5de0b8('outdentList')),_0x2cc126&&_0x38cd63['enableCommand']('checkTodoList',()=>{const _0x1448c0=_0x575ce8['commands']['get']('checkTodoList'),_0x52395f=Array['from'](_0x1448c0['_selectedElements']);_0x52395f['filter'](_0xefdc8b=>_0xefdc8b['getAttribute']('todoListChecked')!=_0x1448c0['value']),_0x575ce8['model']['change'](()=>{for(const _0x184b0f of _0x52395f)_0x38cd63['markBlockFormat'](_0x184b0f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1448c0['value']}]});});}),_0x38cd63['descriptionFactory']['registerElementLabel']('listItem',_0x24ae4d=>o(_0x39159a,'ELEMENT_LIST_ITEM',_0x24ae4d)),_0x38cd63['descriptionFactory']['registerDescriptionCallback'](_0x348da0=>{if('formatBlock'!=_0x348da0['type']&&'formatInline'!=_0x348da0['type'])return;const {data:_0x45776e}=_0x348da0;if(_0x45776e){if('numberedList'==_0x45776e['commandName']||'bulletedList'==_0x45776e['commandName']||'todoList'==_0x45776e['commandName'])switch(_0x45776e['commandName']['replace']('List','')){case'bulleted':return _0x36155c(o(_0x39159a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x36155c(o(_0x39159a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x36155c(o(_0x39159a,'ELEMENT_TODO_LIST'));}if('indentList'==_0x45776e['commandName'])return{'type':'format','content':o(_0x39159a,'*Indent:*\x20%0',o(_0x39159a,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x45776e['commandName'])return{'type':'format','content':o(_0x39159a,'*Outdent:*\x20%0',o(_0x39159a,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x45776e['commandName'])return _0x45776e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x39159a,'*Check\x20item*')}:{'type':'format','content':o(_0x39159a,'*Uncheck\x20item*')};}function _0x36155c(_0x22c50f){return{'type':'format','content':o(_0x39159a,'*Change\x20to:*\x20%0',_0x22c50f)};}});}}function Le(_0x999deb){const _0x31805e=_0x999deb['getAttribute']('listIndent');if(0x0==_0x31805e)return _0x999deb;let _0x9b1c20=_0x999deb;for(;_0x999deb['previousSibling']&&_0x999deb['previousSibling']['is']('element','listItem');){const _0x41565a=_0x999deb['previousSibling']['getAttribute']('listIndent');if(_0x41565a==_0x31805e)_0x9b1c20=_0x999deb['previousSibling'];else{if(_0x41565a<_0x31805e)break;}_0x999deb=_0x999deb['previousSibling'];}return _0x9b1c20;}function Ee(_0x49f148){const _0x1838a1=[];if(_0x49f148['is']('element','listItem')&&_0x49f148['getAttribute']('listIndent')>0x0){let _0x49a928=_0x49f148['nextSibling'];for(;_0x49a928&&'listItem'==_0x49a928['name']&&_0x49a928['getAttribute']('listIndent')==_0x49f148['getAttribute']('listIndent');)_0x1838a1['push'](_0x49a928),_0x49a928=_0x49a928['nextSibling'];}return _0x1838a1;}class ht extends _0xda0844{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1fd079=this['editor']['config']['get']('list.properties'),_0x13f12d=this['editor']['plugins']['get']('TrackChangesEditing');_0x1fd079['styles']&&_0x13f12d['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1fd079['reversed']&&_0x13f12d['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1fd079['startIndex']&&_0x13f12d['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x13f12d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xaecb3f,_0x2263fb={}){const _0x921be9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x107e13=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x921be9['markMultiRangeBlockFormat'](_0x107e13,{'commandName':'listStyle','commandParams':[{'type':_0x2263fb['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x197ab3,_0x26db4e={}){const _0x1a6d81=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59e8e4=this['_getSuggestionBlocks'](_0x3f87cf=>_0x3f87cf['is']('element','listItem')&&'numbered'===_0x3f87cf['getAttribute']('listType'));if(_0x59e8e4['length']<0x1)return;const _0x584370=_0x59e8e4['map'](_0x5a1f18=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5a1f18,'before'),this['editor']['model']['createPositionAt'](_0x5a1f18,0x0)));this['editor']['model']['change'](()=>{_0x1a6d81['markMultiRangeBlockFormat'](_0x584370,{'commandName':'listReversed','commandParams':[{'reversed':_0x26db4e['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4e8f4a,_0x5be963={}){const _0x59495c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x378d0d=this['_getSuggestionBlocks'](_0x12330f=>_0x12330f['is']('element','listItem')&&'numbered'===_0x12330f['getAttribute']('listType'));if(_0x378d0d['length']<0x1)return;const _0xdecb48=_0x378d0d['map'](_0x131af6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x131af6,'before'),this['editor']['model']['createPositionAt'](_0x131af6,0x0)));this['editor']['model']['change'](()=>{_0x59495c['markMultiRangeBlockFormat'](_0xdecb48,{'commandName':'listStart','commandParams':[{'startIndex':_0x5be963['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x468706){if('formatBlock'!=_0x468706['type']&&'formatInline'!=_0x468706['type'])return;const _0x41738e=this['editor']['locale'],{data:_0x4f7e38}=_0x468706;if(!_0x4f7e38)return;let _0x21cabd,_0x544fbd;switch(_0x4f7e38['commandName']){case'listStyle':_0x21cabd='*Change\x20to:*\x20%0',_0x544fbd={'type':'format','content':o(_0x41738e,_0x21cabd,o(_0x41738e,this['_getTranslationKeyForListStyle'](_0x4f7e38['commandParams'][0x0]['type'])))};break;case'listReversed':_0x21cabd=_0x4f7e38['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x544fbd={'type':'format','content':o(_0x41738e,_0x21cabd)};break;case'listStart':_0x21cabd='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x544fbd={'type':'format','content':o(_0x41738e,_0x21cabd,_0x4f7e38['commandParams'][0x0]['startIndex'])};}return _0x544fbd;}['_getSuggestionBlocksForListStyle'](){const _0x12cc9a=this['editor']['plugins']['get']('LegacyListUtils');let _0x1241b4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1241b4[0x0]?.['is']('element','listItem')&&_0x1241b4['unshift'](..._0x12cc9a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1241b4[_0x1241b4['length']-0x1]?.['is']('element','listItem')&&_0x1241b4['push'](..._0x12cc9a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1241b4=[...new Set(_0x1241b4)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1241b4=_0x1241b4['filter'](_0x22f479=>_0x22f479['is']('element','listItem'))),_0x1241b4;}['_getSuggestionBlocks'](_0x3c5f53){const _0x32a129=this['editor']['plugins']['get']('LegacyListUtils');let _0x4e123a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3c5f53)['map'](_0x409ffd=>{const _0x4e530d=this['editor']['model']['createPositionAt'](_0x409ffd,0x0);return[..._0x32a129['getSiblingNodes'](_0x4e530d,'backward'),..._0x32a129['getSiblingNodes'](_0x4e530d,'forward')];})['flat']();return _0x4e123a=[...new Set(_0x4e123a)],_0x4e123a;}['_getTranslationKeyForListStyle'](_0x401f56){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x401f56)||'default')['toUpperCase']()+'_LIST_'+_0x401f56['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0xda0844{['afterInit'](){const _0x175aef=this['editor'];if(!_0x175aef['plugins']['has']('MediaEmbedEditing'))return;const _0x697d15=_0x175aef['plugins']['get']('TrackChangesEditing'),_0x62a200=_0x175aef['locale'];_0x697d15['enableCommand']('mediaEmbed'),_0x697d15['descriptionFactory']['registerElementLabel']('media',_0x29f464=>o(_0x62a200,'ELEMENT_MEDIA',_0x29f464)),_0x175aef['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x24ffe0,{writer:_0x5f00e4,options:_0x3b5fe6})=>{if(_0x3b5fe6['showSuggestionHighlights'])return _0x5f00e4['createEmptyElement']('div');},'converterPriority':'high'}),_0x175aef['data']['downcastDispatcher']['on']('attribute:url:media',(_0x31e018,_0xe9c823,_0x3691d2)=>{_0x3691d2['options']['showSuggestionHighlights']&&_0x31e018['stop']();},{'priority':'high'});}}class lt extends _0xda0844{['afterInit'](){const _0x505849=this['editor'];_0x505849['plugins']['has']('MentionEditing')&&_0x505849['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0xda0844{['afterInit'](){const _0x6cd7dd=this['editor'];if(!_0x6cd7dd['plugins']['has']('MergeFieldsEditing'))return;const _0x18297c=_0x6cd7dd['plugins']['get']('TrackChangesEditing'),_0x48fc3a=_0x6cd7dd['locale'];_0x18297c['enableCommand']('insertMergeField'),_0x18297c['enableCommand']('insertMergeFieldBlock'),_0x18297c['enableCommand']('insertMergeFieldImage'),_0x18297c['descriptionFactory']['registerElementLabel']('mergeField',_0x566dbf=>o(_0x48fc3a,'ELEMENT_MERGE_FIELD',_0x566dbf)),_0x18297c['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5540e2=>o(_0x48fc3a,'ELEMENT_MERGE_FIELD',_0x5540e2)),_0x18297c['descriptionFactory']['registerDescriptionCallback'](_0x311a7c=>{if('insertion'!=_0x311a7c['type']&&'deletion'!=_0x311a7c['type'])return;const _0x5dd110=_0x311a7c['getContainedElement']();if(null==_0x5dd110)return;const _0x568189=_0x6cd7dd['plugins']['get']('MergeFieldsEditing');let _0x28ca7e;switch(_0x568189['getMergeFieldType'](_0x5dd110)){case null:return;case'image':{const _0x41ddf2=_0x568189['unwrapAffixes'](_0x5dd110['getAttribute']('src'));_0x28ca7e=_0x568189['getLabel'](_0x41ddf2)||_0x41ddf2;break;}default:{const _0x25ed08=_0x5dd110['getAttribute']('id');_0x28ca7e=_0x568189['getLabel'](_0x25ed08)||_0x25ed08;break;}}return'insertion'==_0x311a7c['type']?{'type':'insertion','content':o(_0x48fc3a,'*Insert:*\x20%0','\x22'+_0x28ca7e+'\x22\x20'+o(_0x48fc3a,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x48fc3a,'*Remove:*\x20%0','\x22'+_0x28ca7e+'\x22\x20'+o(_0x48fc3a,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0xda0844{['afterInit'](){const _0x495c7f=this['editor'],_0x168dec=_0x495c7f['plugins']['get']('TrackChangesEditing');_0x495c7f['plugins']['has']('MultiLevelList')&&(_0x168dec['enableDefaultAttributesIntegration']('multiLevelList'),_0x168dec['registerBlockAttribute']('listMarkerStyle'),_0x168dec['descriptionFactory']['registerDescriptionCallback'](_0x5ca96a=>this['handleDescriptions'](_0x5ca96a)));}['handleDescriptions'](_0x125f9c){const _0x12165a=this['editor']['locale'],{data:_0x4d6cbc}=_0x125f9c,_0x460039={'type':'format','content':''};if(_0x4d6cbc&&'listMarkerStyle'==_0x4d6cbc['key']){if(!_0x4d6cbc['oldValue'])return{'type':'format','content':o(_0x12165a,'*Set\x20format:*\x20%0',o(_0x12165a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4d6cbc['newValue']+')'};if(!_0x4d6cbc['newValue']){let _0x31d275=_0x125f9c['head'];for(;_0x31d275;){if(_0x31d275['data']&&'listType'==_0x31d275['data']['key']&&_0x31d275['data']['newValue'])return _0x460039;_0x31d275=_0x31d275['next'];}return{'type':'format','content':o(_0x12165a,'*Remove\x20format:*\x20%0',o(_0x12165a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4d6cbc['oldValue']+')'};}}}}class pt extends _0xda0844{['afterInit'](){const _0x1886b8=this['editor'];if(!_0x1886b8['plugins']['has']('PageBreakEditing'))return;_0x1886b8['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x400b6e=_0x1886b8['plugins']['get']('TrackChangesEditing'),_0x11648c=_0x1886b8['locale'];_0x400b6e['descriptionFactory']['registerElementLabel']('pageBreak',_0x21e4a6=>o(_0x11648c,'ELEMENT_PAGE_BREAK',_0x21e4a6));}}class kt extends _0xda0844{['afterInit'](){const _0x31692c=this['editor'];if(!_0x31692c['plugins']['has']('Paragraph'))return;const _0x4390d6=_0x31692c['locale'],_0x5ec9c6=_0x31692c['plugins']['get']('TrackChangesEditing');_0x5ec9c6['descriptionFactory']['registerElementLabel']('paragraph',_0x2270e6=>o(_0x4390d6,'ELEMENT_PARAGRAPH',_0x2270e6)),_0x5ec9c6['enableDefaultAttributesIntegration']('paragraph'),_0x5ec9c6['enableCommand']('insertParagraph'),_0x31692c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x31692c),{'priority':'highest'}),_0x31692c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xfe5355,_0x3e4a10,_0x587e51)=>{_0x587e51['options']['showSuggestionHighlights']&&nr(_0x31692c,{'showActiveMarker':!0x1})(_0xfe5355,_0x3e4a10,_0x587e51);},{'priority':'highest'});const _0x400f11=_0x5ec9c6['descriptionFactory'];_0x400f11['registerDescriptionCallback'](_0x234b7c=>{if('insertion'!==_0x234b7c['type'])return;const {start:_0x7e6847,end:_0x515523}=_0x234b7c['getFirstRange']();if(!_0x7e6847['isTouching'](_0x515523)||!_0x7e6847['nodeAfter'])return;const _0x231fa7=_0x31692c['model']['schema'],_0x2ac9d5=_0x7e6847['nodeAfter'];return _0x231fa7['isBlock'](_0x2ac9d5)&&!_0x231fa7['isLimit'](_0x2ac9d5)&&_0x231fa7['checkChild'](_0x2ac9d5,'$text')?{'type':'insertion','content':o(_0x4390d6,'*Insert:*\x20%0',_0x400f11['getItemLabel'](_0x2ac9d5,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x768628=this['editor'],_0x285958=_0x768628['locale'];_0x768628['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f1651=>{if('formatBlock'!=_0x4f1651['type'])return;const {data:_0x14112a}=_0x4f1651;return _0x14112a&&'paragraph'==_0x14112a['commandName']?{'type':'format','content':o(_0x285958,'*Change\x20to:*\x20%0',o(_0x285958,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1662a8,{showActiveMarker:_0x21101f=!0x0}={}){return(_0x389d58,_0x5ea509,_0x48ffb1)=>{const _0x46b94d=_0x1662a8['plugins']['get']('TrackChangesEditing'),_0x51bd5c=_0x5ea509['markerRange']['start'],_0xc9cb0d=_0x5ea509['markerRange']['end'],_0x4a19ac=_0x1662a8['model']['schema'];if(!_0x51bd5c['isTouching'](_0xc9cb0d)||!_0x51bd5c['nodeAfter'])return;const _0x2b272e=_0x51bd5c['nodeAfter'];if(_0x4a19ac['isBlock'](_0x2b272e)&&!_0x4a19ac['isLimit'](_0x2b272e)&&_0x4a19ac['checkChild'](_0x2b272e,'$text')){if(!_0x48ffb1['consumable']['consume'](_0x5ea509['markerRange'],_0x389d58['name']))return;const {id:_0x445a5d,authorId:_0x2c69c3}=_0x46b94d['_splitMarkerName'](_0x5ea509['markerName']),_0x59cc5b=_0x48ffb1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x445a5d,'data-author-id':_0x2c69c3}),_0x104e81=_0x48ffb1['mapper']['toViewPosition'](_0xc9cb0d);_0x21101f&&_0x46b94d['activeMarkers']['includes'](_0x5ea509['markerName'])&&_0x48ffb1['writer']['addClass']('ck-suggestion-marker--active',_0x59cc5b),_0x48ffb1['writer']['insert'](_0x104e81,_0x59cc5b),_0x48ffb1['mapper']['bindElementToMarker'](_0x59cc5b,_0x5ea509['markerName']);}};}class wt extends _0xda0844{['afterInit'](){const _0x37d9d8=this['editor'];_0x37d9d8['commands']['get']('replaceSource')&&_0x37d9d8['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0xda0844{['afterInit'](){const _0x325921=this['editor'];if(!_0x325921['plugins']['has']('RemoveFormatEditing'))return;_0x325921['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52555d=this['editor'];_0x52555d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3285c2=>{if('formatBlock'!=_0x3285c2['type']&&'formatInline'!=_0x3285c2['type'])return;const {data:_0x55633a}=_0x3285c2;return _0x55633a&&'removeFormat'==_0x55633a['commandName']?{'type':'format','content':o(_0x52555d['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0xda0844{['afterInit'](){const _0x935eb0=this['editor'];if(!_0x935eb0['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3968e6=_0x935eb0['plugins']['get']('TrackChangesEditing');_0x3968e6['enableCommand']('goToPreviousRestrictedEditingException'),_0x3968e6['enableCommand']('goToNextRestrictedEditingException');const _0x27c3f8=_0x935eb0['plugins']['get']('RestrictedEditingModeEditing');_0x27c3f8['enableCommand']('trackChanges'),_0x27c3f8['enableCommand']('acceptSuggestion'),_0x27c3f8['enableCommand']('discardSuggestion'),_0x27c3f8['enableCommand']('acceptAllSuggestions'),_0x27c3f8['enableCommand']('discardAllSuggestions'),_0x27c3f8['enableCommand']('acceptSelectedSuggestions'),_0x27c3f8['enableCommand']('discardSelectedSuggestions');}}class jt extends _0xda0844{['afterInit'](){const _0x23f4bd=this['editor'];if(!_0x23f4bd['plugins']['has']('ShiftEnter'))return;const _0x451e32=_0x23f4bd['plugins']['get']('TrackChangesEditing');_0x451e32['enableCommand']('shiftEnter'),_0x23f4bd['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x23f4bd),{'priority':'high'}),_0x23f4bd['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x23f4bd),{'priority':'high'}),_0x23f4bd['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x482392,_0x3ec385,_0x1cac09)=>{_0x1cac09['options']['showSuggestionHighlights']&&je(_0x23f4bd,{'showActiveMarker':!0x1})(_0x482392,_0x3ec385,_0x1cac09);}),_0x451e32['descriptionFactory']['registerElementLabel']('softBreak',_0x383b93=>o(_0x23f4bd['locale'],'ELEMENT_LINE_BREAK',_0x383b93));}}function je(_0x58037c,{showActiveMarker:_0x1b3ad8=!0x0}={}){return(_0xd077ee,_0x42281f,_0x5c45b4)=>{const _0x224d8b=_0x58037c['plugins']['get']('TrackChangesEditing');if(!_0x5c45b4['consumable']['test'](_0x42281f['markerRange'],_0xd077ee['name']))return;const _0x314e6c=_0x58037c['model'];for(const _0xfa729d of _0x42281f['markerRange']['getItems']()){if(!_0xfa729d['is']('element','softBreak'))continue;const _0x1d9ca2='deletion'==_0x42281f['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x5a4b53,authorId:_0x3cfacb}=_0x224d8b['_splitMarkerName'](_0x42281f['markerName']),_0x223a63=_0x5c45b4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1d9ca2,'data-suggestion':_0x5a4b53,'data-author-id':_0x3cfacb}),_0x505b98=_0x5c45b4['mapper']['toViewPosition'](_0x314e6c['createPositionBefore'](_0xfa729d));_0x1b3ad8&&_0x224d8b['activeMarkers']['includes'](_0x42281f['markerName'])&&_0x5c45b4['writer']['addClass']('ck-suggestion-marker--active',_0x223a63),_0x5c45b4['writer']['insert'](_0x505b98,_0x223a63),_0x5c45b4['mapper']['bindElementToMarker'](_0x223a63,_0x42281f['markerName']);}};}class St extends _0xda0844{['afterInit'](){const _0x42750f=this['editor'],_0xd602b8=_0x42750f['model'],_0x401576=_0x42750f['locale'];if(!_0x42750f['plugins']['has']('StandardEditingModeEditing'))return;const _0xd4e7e0=_0x42750f['plugins']['get']('TrackChangesEditing'),_0x26d437='restrictedEditingException',_0x10f87a=_0x42750f['commands']['get'](_0x26d437);_0xd4e7e0['enableCommand'](_0x26d437,(_0x54f0b6,_0x5d2c6e={})=>{const _0x42e896=_0xd602b8['document']['selection'];if(_0x42e896['isCollapsed'])return void _0x54f0b6(_0x5d2c6e);const _0x74775e=void 0x0!==_0x5d2c6e['forceValue']?_0x5d2c6e['forceValue']:!_0x10f87a['value'];_0xd602b8['change'](()=>{const _0x2a6ecb=Array['from'](_0x42e896['getRanges']());for(const _0xcc5d06 of _0x2a6ecb){const _0x50bef2=_0x74775e?[_0xcc5d06]:io(_0x26d437,_0xcc5d06,_0xd602b8);for(const _0x12393c of _0x50bef2)_0xd4e7e0['markInlineFormat'](_0x12393c,{'commandName':_0x26d437,'commandParams':[{'forceValue':_0x74775e}]});}});}),_0xd4e7e0['descriptionFactory']['registerDescriptionCallback'](_0x40747d=>{if('formatBlock'!=_0x40747d['type']&&'formatInline'!=_0x40747d['type'])return;const {data:_0x138119}=_0x40747d;return _0x138119&&_0x138119['commandName']==_0x26d437?_0x138119['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x401576,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x401576,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0xda0844{['afterInit'](){const _0x322562=this['editor'];if(!_0x322562['plugins']['has']('Style')||!_0x322562['plugins']['has']('DataSchema'))return;const _0x30a476=_0x322562['plugins']['get']('TrackChangesEditing'),_0x29a709=_0x322562['locale'],_0x56e5c2=_0x322562['config']['get']('style')||{},_0x53d640=_0x322562['plugins']['get']('GeneralHtmlSupport'),_0x6b601c=_0x322562['plugins']['get']('StyleUtils')['normalizeConfig'](_0x322562['plugins']['get']('DataSchema'),_0x56e5c2['definitions']);_0x30a476['enableDefaultAttributesIntegration']('style');const _0xc54cfc=new Set();for(const _0x1e07ce of _0x6b601c['block']){const _0x2874c0=_0x53d640['getGhsAttributeNameForElement'](_0x1e07ce['element']);_0xc54cfc['add'](_0x2874c0);}const _0x5d9dcf=new Set();for(const _0xe9a0b0 of _0x6b601c['inline']){const _0x2b585e=_0x53d640['getGhsAttributeNameForElement'](_0xe9a0b0['element']);_0x5d9dcf['add'](_0x2b585e);for(const _0x5e6781 of _0xe9a0b0['ghsAttributes'])_0x5d9dcf['add'](_0x5e6781);}for(const _0x45b50a of _0xc54cfc)_0x30a476['registerBlockAttribute'](_0x45b50a),_0x30a476['descriptionFactory']['registerAttributeLabel'](_0x45b50a,o(_0x29a709,'FORMAT_STYLE'));for(const _0x11ece1 of _0x5d9dcf)_0x30a476['registerInlineAttribute'](_0x11ece1),_0x30a476['descriptionFactory']['registerAttributeLabel'](_0x11ece1,o(_0x29a709,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20beb6=this['editor'],_0x4864ef=_0x20beb6['locale'];_0x20beb6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43ab06=>{if('formatBlock'!=_0x43ab06['type']&&'formatInline'!=_0x43ab06['type'])return;const {data:_0x1c84da}=_0x43ab06;return _0x1c84da&&'style'===_0x1c84da['commandName']?_0x1c84da['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4864ef,'*Set\x20format:*\x20%0',_0x1c84da['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4864ef,'*Remove\x20format:*\x20%0',_0x1c84da['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0xda0844{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x250c76){super(_0x250c76),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4f2c1b=this['editor'],_0x2353cf=_0x4f2c1b['model']['document']['selection'];if(!_0x4f2c1b['plugins']['has']('TableEditing'))return;const _0x1e3fc7=_0x4f2c1b['locale'],_0x4d60d4=_0x4f2c1b['plugins']['get']('TrackChangesEditing'),_0xf6a638=_0x4f2c1b['plugins']['get']('TableUtils');_0x4d60d4['descriptionFactory']['registerElementLabel']('table',_0x39cc9d=>o(_0x1e3fc7,'ELEMENT_TABLE',_0x39cc9d)),this['_setupColumnsRowsFixing'](),_0x4d60d4['enableCommand']('insertTable'),_0x4d60d4['enableCommand']('selectTableRow'),_0x4d60d4['enableCommand']('selectTableColumn');for(const _0x4e6f74 of['insertTableRowAbove','insertTableRowBelow']){const _0x438db9=_0x4f2c1b['commands']['get'](_0x4e6f74);_0x4d60d4['enableCommand'](_0x4e6f74,_0x3a8b7d=>{_0x4f2c1b['model']['change'](_0x301889=>{_0x3a8b7d();const _0xf09c69='above'===_0x438db9['order'],_0x4de94d=_0xf6a638['getSelectionAffectedTableCells'](_0x2353cf),_0x5d8311=_0xf6a638['getRowIndexes'](_0x4de94d),_0x4a5d7f=_0xf09c69?_0x5d8311['first']-0x1:_0x5d8311['last']+0x1,_0x34b41d=_0x4de94d[0x0]['findAncestor']('table'),_0x502a5e=_0xf6a638['createTableWalker'](_0x34b41d,{'startRow':_0x4a5d7f,'endRow':_0x4a5d7f}),_0x17045f=Array['from'](_0x502a5e)['map'](_0x1da3a7=>_0x301889['createRangeOn'](_0x1da3a7['cell']));_0x4d60d4['markMultiRangeInsertion'](_0x17045f,'tableRow');});});}for(const _0x1fd087 of['insertTableColumnLeft','insertTableColumnRight']){const _0x17ee39=_0x4f2c1b['commands']['get'](_0x1fd087);_0x4d60d4['enableCommand'](_0x1fd087,_0x2b9934=>{_0x4f2c1b['model']['change'](_0x4ef348=>{_0x2b9934();const _0x51183d='left'===_0x17ee39['order'],_0x17d00d=_0xf6a638['getSelectionAffectedTableCells'](_0x2353cf),_0x34b482=_0xf6a638['getColumnIndexes'](_0x17d00d),_0x3e40f9=_0x51183d?_0x34b482['first']-0x1:_0x34b482['last']+0x1,_0x36521e=_0x17d00d[0x0]['findAncestor']('table'),_0x15b559=_0xf6a638['createTableWalker'](_0x36521e,{'startRow':0x0,'column':_0x3e40f9,'includeAllSlots':!0x1}),_0x196a58=Array['from'](_0x15b559)['map'](_0x2786ea=>_0x4ef348['createRangeOn'](_0x2786ea['cell']));_0x4d60d4['markMultiRangeInsertion'](_0x196a58,'tableColumn');});});}for(const _0x38c3fb of['removeTableRow','removeTableColumn']){const _0x9a7de8=_0x38c3fb['substr'](0xb),_0xc1eb78=_0x9a7de8['toLowerCase'](),_0x41de0a=_0xc1eb78['substr'](0x0,0x3)+'span',_0x2437ee='table'+_0x9a7de8,_0x25dd61='min'+_0x9a7de8,_0x5475ed='max'+_0x9a7de8;_0x4d60d4['enableCommand'](_0x38c3fb,()=>{_0x4f2c1b['model']['change'](_0x58eb36=>{const _0x507e75=_0xf6a638['getSelectionAffectedTableCells'](_0x2353cf),_0x5442ce=_0x507e75[0x0]['findAncestor']('table');let _0x46a931;if('removeTableRow'==_0x38c3fb){const _0x32f247=_0xf6a638['getRowIndexes'](_0x507e75);_0x46a931={'startRow':_0x32f247['first'],'endRow':_0x32f247['last'],'includeAllSlots':!0x0};}else{const _0x4b84c4=_0xf6a638['getColumnIndexes'](_0x507e75);_0x46a931={'startColumn':_0x4b84c4['first'],'endColumn':_0x4b84c4['last'],'includeAllSlots':!0x0};}const _0x122a41=_0xf6a638['createTableWalker'](_0x5442ce,_0x46a931),_0x4163f6=Array['from'](_0x122a41)['map'](({cell:_0x4fbd74})=>_0x4fbd74),_0x17769b=Ae(_0x4163f6['filter'](_0xa8bc3=>_0xa8bc3['hasAttribute'](_0x41de0a))),_0x27548f=Ae(_0x4163f6['filter'](_0x22de7f=>!_0x22de7f['hasAttribute'](_0x41de0a)))['map'](_0x4471e9=>_0x58eb36['createRangeOn'](_0x4471e9)),_0xe68b1a=_0x4d60d4['markMultiRangeDeletion'](_0x27548f,_0x2437ee);if(_0xe68b1a&&('tableRow'==_0xe68b1a['subType']||'tableColumn'==_0xe68b1a['subType'])){const _0x14d00c=this['_getSuggestionCoords'](_0xe68b1a);for(const _0x1f67aa of _0x17769b){const _0x23e061=_0x58eb36['createRangeOn'](_0x1f67aa),_0x2e1c86=_0xf6a638['getCellLocation'](_0x1f67aa),_0x3d2365=_0x1f67aa['getAttribute'](_0x41de0a)-0x1,_0x2bc137=_0x14d00c[_0x25dd61],_0x4a4309=_0x14d00c[_0x5475ed];_0x2bc137<=_0x2e1c86[_0xc1eb78]&&_0x2e1c86[_0xc1eb78]+_0x3d2365<=_0x4a4309&&_0xe68b1a['addRange'](_0x23e061);}}});});}function _0x5d7574(_0x1c9a3a){const _0x1cb771=Array['from'](_0x2353cf['getRanges']())['map'](_0x1f2fe9=>_0x40d9f2['fromRange'](_0x1f2fe9));_0x4f2c1b['model']['change'](_0xab0756=>{const _0x312bea=_0xab0756['batch'];_0x1c9a3a=_0x1c9a3a['filter'](_0x2199d7=>'$graveyard'!=_0x2199d7['root']['rootName']),_0xab0756['setSelection'](_0x1c9a3a),_0x4f2c1b['commands']['get']('removeTableRow')['refresh'](),_0x4f2c1b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4f2c1b['model']['enqueueChange'](()=>{_0x4f2c1b['model']['enqueueChange'](_0x312bea,_0x1c7777=>{const _0x505242=_0x1cb771['filter'](_0x162cfa=>'$graveyard'!=_0x162cfa['root']['rootName']);_0x505242['length']>0x0&&_0x1c7777['setSelection'](_0x505242);for(const _0x5b1618 of _0x1cb771)_0x5b1618['detach']();});});});}function _0x34daea(_0x20b2f7){_0x4f2c1b['model']['change'](_0x1260ae=>{const _0x3884c0=Array['from'](_0x2353cf['getRanges']())['map'](_0x31c412=>_0x40d9f2['fromRange'](_0x31c412)),_0x53565c=[];for(const _0x565edc of _0x20b2f7)for(const _0xde9aaa of _0x565edc['getItems']({'shallow':!0x0}))_0x53565c['push'](_0xde9aaa);for(const _0x5e4a7b of _0x53565c)'$graveyard'!=_0x5e4a7b['root']['rootName']&&(_0x1260ae['setSelection'](_0x1260ae['createPositionAt'](_0x5e4a7b,0x0)),_0x4f2c1b['commands']['get']('removeTableColumn')['refresh'](),_0x4f2c1b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5798bc=_0x3884c0['filter'](_0xcf91a4=>'$graveyard'!=_0xcf91a4['root']['rootName']);_0x5798bc['length']>0x0&&_0x1260ae['setSelection'](_0x5798bc);for(const _0x7c8f54 of _0x3884c0)_0x7c8f54['detach']();});}function _0x2f7499(_0x4b7597,_0x3d7070){return _0x3d7070['every'](_0x42aac5=>_0x4b7597['some'](_0x11da7d=>_0x11da7d['end']['isEqual'](_0x42aac5['start'])||_0x42aac5['end']['isEqual'](_0x11da7d['start'])));}function _0xd19002(_0x4be044,_0x4de24a){return!_0x4be044['some'](_0x4b8ca0=>_0x4de24a['some'](_0xea6947=>_0x4b8ca0['isIntersecting'](_0xea6947)))&&_0x4be044['some'](_0x1086aa=>_0x4de24a['some'](_0x8be72f=>_0x1086aa['end']['isTouching'](_0x8be72f['start'])));}_0x4f2c1b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x8d8c22,_0x59d994,_0x246956)=>{if(!_0x246956['options']['showSuggestionHighlights'])return;const _0x48d350=_0x59d994['item'];if(!_0x48d350||!_0x48d350['is']('element','tableCell'))return;const _0x452901=_0x246956['mapper']['toViewElement'](_0x48d350);if(_0x452901){const {id:_0x66f098,authorId:_0x3c901f}=_0x4d60d4['_splitMarkerName'](_0x59d994['markerName']);_0x190e5d(_0x452901,_0x246956['writer'],(_0x33ba98,_0x54bb12,_0x41f9e8)=>{_0x41f9e8['addClass'](_0x3decfb(_0x54bb12['classes']),_0x33ba98),_0x41f9e8['setAttribute']('data-suggestion-id',_0x66f098,_0x33ba98),_0x41f9e8['setAttribute']('data-author-id',_0x3c901f,_0x33ba98);},(_0x49d109,_0x23fc9a,_0x209a1c)=>{_0x209a1c['removeClass'](_0x3decfb(_0x23fc9a['classes']),_0x49d109),_0x209a1c['removeAttribute']('data-suggestion-id',_0x49d109),_0x209a1c['removeAttribute']('data-author-id',_0x49d109);});}},{'priority':'highest'}),_0x4d60d4['descriptionFactory']['registerDescriptionCallback'](_0x6c58be=>{if('insertion'!=_0x6c58be['type']&&'deletion'!=_0x6c58be['type'])return;const _0xd630e9=_0x6c58be['getContainedElement']();if(null!=_0xd630e9&&_0xd630e9['is']('element','table')){if('insertion'==_0x6c58be['type']){const _0x469d90=_0x6c58be['getItems']()['filter'](_0x2a955e=>_0x2a955e['is']('$textProxy'))['map'](_0x129230=>_0x129230['data']);if(_0x469d90['length'])return{'type':'insertion','content':o(_0x1e3fc7,'*Insert:*\x20%0',o(_0x1e3fc7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x469d90['join']('\x20')+'\x22'))};}if('deletion'==_0x6c58be['type']){const _0x226ce5=_0x6c58be['getItems']()['filter'](_0x4bffb3=>_0x4bffb3['is']('$textProxy'))['map'](_0x35af16=>_0x35af16['data']);if(_0x226ce5['length'])return{'type':'deletion','content':o(_0x1e3fc7,'*Remove:*\x20%0',o(_0x1e3fc7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x226ce5['join']('\x20')+'\x22'))};}}}),_0x4d60d4['descriptionFactory']['registerDescriptionCallback'](_0x36a891=>{if('tableRow'==_0x36a891['subType']){const _0x348d1f=_0x36a891['getItems']()['filter'](_0x2b081d=>_0x2b081d['is']('$textProxy'))['map'](_0x53000c=>_0x53000c['data']),_0x45d511=this['_getSuggestionCoords'](_0x36a891),_0x34eeb6=_0x45d511['maxRow']-_0x45d511['minRow']+0x1;if('insertion'==_0x36a891['type'])return _0x348d1f['length']?{'type':'insertion','content':o(_0x1e3fc7,'*Insert:*\x20%0',o(_0x1e3fc7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x34eeb6,'\x22'+_0x348d1f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1e3fc7,'*Insert:*\x20%0',o(_0x1e3fc7,'ELEMENT_TABLE_ROW',_0x34eeb6))};if('deletion'==_0x36a891['type'])return _0x348d1f['length']?{'type':'deletion','content':o(_0x1e3fc7,'*Remove:*\x20%0',o(_0x1e3fc7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x34eeb6,'\x22'+_0x348d1f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1e3fc7,'*Remove:*\x20%0',o(_0x1e3fc7,'ELEMENT_TABLE_ROW',_0x34eeb6))};}if('tableColumn'==_0x36a891['subType']){const _0x13a555=_0x36a891['getItems']()['filter'](_0x22162c=>_0x22162c['is']('$textProxy'))['map'](_0x5ee6d2=>_0x5ee6d2['data']),_0x339524=this['_getSuggestionCoords'](_0x36a891),_0x1721ff=_0x339524['maxColumn']-_0x339524['minColumn']+0x1;if('insertion'==_0x36a891['type'])return _0x13a555['length']?{'type':'insertion','content':o(_0x1e3fc7,'*Insert:*\x20%0',o(_0x1e3fc7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1721ff,'\x22'+_0x13a555['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1e3fc7,'*Insert:*\x20%0',o(_0x1e3fc7,'ELEMENT_TABLE_COLUMN',_0x1721ff))};if('deletion'==_0x36a891['type'])return _0x13a555['length']?{'type':'deletion','content':o(_0x1e3fc7,'*Remove:*\x20%0',o(_0x1e3fc7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1721ff,'\x22'+_0x13a555['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1e3fc7,'*Remove:*\x20%0',o(_0x1e3fc7,'ELEMENT_TABLE_COLUMN',_0x1721ff))};}}),_0x4d60d4['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5d7574),_0x4d60d4['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5d7574),_0x4d60d4['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x34daea),_0x4d60d4['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x34daea),_0x4d60d4['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2f7499),_0x4d60d4['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2f7499),_0x4d60d4['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xd19002),_0x4d60d4['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xd19002);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5738e4=this['editor'],_0x58aae6=_0x5738e4['model']['document']['selection'];return(_0x4764a6,_0x9ce0cb)=>{_0x5738e4['model']['change'](_0x3522b6=>{const {commandName:_0x4e89b5,commandParams:_0x54a77a}=_0x9ce0cb;let _0x4993c6=_0x4764a6[0x0]['end']['nodeBefore'];_0x54a77a&&_0x54a77a[0x0]&&!0x1===_0x54a77a[0x0]['forceValue']&&(_0x4993c6=_0x4764a6[0x0]['start']['nodeAfter']);const _0x10f482=_0x3522b6['createRangeIn'](_0x4993c6);if('$graveyard'==_0x10f482['root']['rootName'])return;const _0x2cccf0=Array['from'](_0x58aae6['getRanges']())['map'](_0x4a3d29=>_0x40d9f2['fromRange'](_0x4a3d29));_0x3522b6['setSelection'](_0x10f482),_0x5738e4['commands']['get'](_0x4e89b5)['refresh'](),_0x54a77a['push']({'forceDefaultExecution':!0x0}),_0x5738e4['execute'](_0x4e89b5,..._0x54a77a);const _0x2d77d2=_0x2cccf0['filter'](_0x4f7dba=>'$graveyard'!=_0x4f7dba['root']['rootName']);_0x2d77d2['length']>0x0&&_0x3522b6['setSelection'](_0x2d77d2);for(const _0x39f476 of _0x2cccf0)_0x39f476['detach']();});};}['_getCoordsForCells'](_0x4109cf){const _0x24c855=this['editor']['plugins']['get']('TableUtils');let _0x476ecf=Number['MAX_SAFE_INTEGER'],_0x5b3b78=Number['MIN_SAFE_INTEGER'],_0x2de94a=Number['MAX_SAFE_INTEGER'],_0xc0465d=Number['MIN_SAFE_INTEGER'];for(const _0x5b9115 of _0x4109cf){if('$graveyard'==_0x5b9115['root']['rootName'])continue;const {row:_0x2013dc,column:_0x537f09}=_0x24c855['getCellLocation'](_0x5b9115),_0xb581f0=_0x5b9115['hasAttribute']('rowspan')?_0x5b9115['getAttribute']('rowspan')-0x1:0x0,_0x22d860=_0x5b9115['hasAttribute']('colspan')?_0x5b9115['getAttribute']('colspan')-0x1:0x0;_0x476ecf=_0x2013dc<_0x476ecf?_0x2013dc:_0x476ecf,_0x5b3b78=_0x2013dc+_0xb581f0>_0x5b3b78?_0x2013dc+_0xb581f0:_0x5b3b78,_0x2de94a=_0x537f09<_0x2de94a?_0x537f09:_0x2de94a,_0xc0465d=_0x537f09+_0x22d860>_0xc0465d?_0x537f09+_0x22d860:_0xc0465d;}return{'minRow':_0x476ecf,'maxRow':_0x5b3b78,'minColumn':_0x2de94a,'maxColumn':_0xc0465d};}['_setupColumnsRowsFixing'](){const _0x1c59dc=this['editor'],_0x4ff343=_0x1c59dc['plugins']['get']('TrackChangesEditing'),_0x1bf48e=_0x1c59dc['plugins']['get']('TableUtils');_0x1c59dc['model']['document']['on']('change:data',()=>{const _0x4a117a=Array['from'](_0x1c59dc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1eefc8,data:_0x3fef40}of _0x4a117a){const {group:_0x1160ff,id:_0x41c7a2,subType:_0x10f15e}=_0x4ff343['_splitMarkerName'](_0x1eefc8);if('suggestion'!=_0x1160ff)continue;if(null!=_0x3fef40['oldRange'])continue;const _0x36e1c6=_0x4ff343['getSuggestion'](_0x41c7a2);this['_tablePostFixingSubtypes']['includes'](_0x10f15e)&&this['_tableSuggestions']['add'](_0x36e1c6);}},{'priority':'low'});const _0x476f93=(_0x37e3f5,_0x76aea9)=>{let _0x55f702=!0x1;const _0x19ad2a=_0x76aea9['createRangeOn'](_0x37e3f5),_0x4369a3=_0x37e3f5['findAncestor']('table'),_0x5a237f=_0x1bf48e['getCellLocation'](_0x37e3f5);for(const _0x521f89 of this['_tableSuggestions']){const _0x4c1ef5=_0x521f89['subType'],_0x3a23c6=_0x4c1ef5['startsWith']('tablePaste'),_0x1c62bb=_0x4c1ef5['substr'](_0x3a23c6?0xa:0x5),_0x548641=_0x1c62bb['toLowerCase'](),_0x55a054=_0x548641['substr'](0x0,0x3)+'span',_0x2a5fdd='min'+_0x1c62bb,_0x44b275='max'+_0x1c62bb;if(!_0x521f89['isInContent'])continue;if(_0x4369a3!=_0x521f89['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x521f89['isIntersectingWithRange'](_0x19ad2a))continue;const _0x4f8d1d=_0x37e3f5['hasAttribute'](_0x55a054)?_0x37e3f5['getAttribute'](_0x55a054)-0x1:0x0,_0x3bc9c2=this['_getSuggestionCoords'](_0x521f89),_0x7e169=_0x3bc9c2[_0x2a5fdd],_0x183c38=_0x3bc9c2[_0x44b275];_0x7e169<=_0x5a237f[_0x548641]&&_0x5a237f[_0x548641]+_0x4f8d1d<=_0x183c38&&(_0x521f89['addRange'](_0x19ad2a),_0x55f702=!0x0);}return _0x55f702;};_0x1c59dc['model']['document']['registerPostFixer'](_0x1487aa=>{let _0x1743ed=!0x1;for(const _0x29d348 of _0x1c59dc['model']['document']['differ']['getChanges']())if('insert'==_0x29d348['type']){if('tableRow'==_0x29d348['name']){for(const _0x4d0d4e of _0x29d348['position']['nodeAfter']['getChildren']())_0x1743ed=_0x1743ed||_0x476f93(_0x4d0d4e,_0x1487aa);}else'tableCell'==_0x29d348['name']&&(_0x1743ed=_0x1743ed||_0x476f93(_0x29d348['position']['nodeAfter'],_0x1487aa));}return _0x1743ed;});}['_getSuggestionCoords'](_0x44859a){return this['_getCoordsForCells'](_0x44859a['getRanges']()['map'](_0x5d5f13=>_0x5d5f13['start']['nodeAfter']));}}function Ae(_0x17c301){return Array['from'](new Set(_0x17c301)['values']());}class _t extends _0xda0844{static get['requires'](){return[At];}['afterInit'](){const _0x2d81bd=this['editor'],_0x3e17b9=_0x2d81bd['model']['document']['selection'],_0x41da2b=_0x2d81bd['locale'];if(!_0x2d81bd['plugins']['has']('TableEditing'))return;const _0x339964=_0x2d81bd['plugins']['get']('TrackChangesEditing'),_0x1df81a=_0x2d81bd['plugins']['get']('TableUtils'),_0x3172d0=_0x2d81bd['plugins']['get'](At);_0x3172d0['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x339964['enableCommand']('mergeTableCells',()=>{const _0x3a3d9e=_0x1df81a['getSelectionAffectedTableCells'](_0x2d81bd['model']['document']['selection']);_0x2d81bd['model']['change'](()=>{_0x339964['markMultiRangeBlockFormat'](_0x3a3d9e,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2d81bd['commands']['get']('mergeTableCells')['on']('execute',(_0x220e6e,_0x3f20f8)=>{_0x2d81bd['commands']['get']('trackChanges')['value']&&(_0x3f20f8['length']>0x0&&_0x3f20f8[_0x3f20f8['length']-0x1]&&_0x3f20f8[_0x3f20f8['length']-0x1]['forceDefaultExecution']||_0x339964['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x220e6e['stop']());},{'priority':'highest'});for(const _0x475006 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5b67f8=_0x2d81bd['commands']['get'](_0x475006);_0x339964['enableCommand'](_0x475006,()=>{const _0x440c1a=_0x2d81bd['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x394e66=>_0x394e66['is']('element','tableCell')),_0x7f7cca=_0x5b67f8['value'];_0x2d81bd['model']['change'](()=>{_0x339964['markMultiRangeBlockFormat']([_0x440c1a,_0x7f7cca],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x31fc49 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1c3bbd=_0x2d81bd['commands']['get'](_0x31fc49);_0x339964['enableCommand'](_0x31fc49,()=>{const _0x17ad8f=_0x1df81a['getSelectionAffectedTableCells'](_0x2d81bd['model']['document']['selection'])[0x0],_0xee6f37=_0x17ad8f['findAncestor']('table'),{column:_0x1c87eb,row:_0x20a2bf}=_0x1df81a['getCellLocation'](_0x17ad8f);let _0x4f121d=[];if('horizontally'==_0x1c3bbd['direction']){const _0xb6b7a5=_0x1df81a['createTableWalker'](_0xee6f37,{'startRow':_0x20a2bf,'endRow':_0x20a2bf,'includeAllSlots':!0x0});_0x4f121d=Array['from'](_0xb6b7a5)['map'](_0x3f524f=>_0x3f524f['cell']);}else{const _0x1414f9=_0x1df81a['createTableWalker'](_0xee6f37,{'column':_0x1c87eb,'includeAllSlots':!0x0});_0x4f121d=Array['from'](_0x1414f9)['map'](_0x523d54=>_0x523d54['cell']);}_0x2d81bd['model']['change'](_0x52f2e7=>{_0x339964['markBlockFormat'](_0x52f2e7['createRangeOn'](_0x17ad8f),{'commandName':_0x31fc49,'commandParams':[]},_0x4f121d,_0x31fc49);});});}_0x339964['descriptionFactory']['registerDescriptionCallback'](_0x2fc8b0=>{if('formatBlock'!=_0x2fc8b0['type']&&'formatInline'!=_0x2fc8b0['type'])return;const {data:_0x4ad15d}=_0x2fc8b0;return _0x4ad15d&&'mergeTableCells'==_0x4ad15d['commandName']?{'type':'format','content':o(_0x41da2b,'*Merge\x20cells*')}:void 0x0;}),_0x339964['descriptionFactory']['registerDescriptionCallback'](_0x242c77=>{if('formatBlock'!=_0x242c77['type']&&'formatInline'!=_0x242c77['type'])return;const {data:_0x4f799e}=_0x242c77;return _0x4f799e?'splitTableCellVertically'==_0x4f799e['commandName']?{'type':'format','content':o(_0x41da2b,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4f799e['commandName']?{'type':'format','content':o(_0x41da2b,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x338963=_0x3172d0['_acceptFormatSuggestionCallbackFactory']();for(const _0x576ad5 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x339964['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x576ad5,'accept',_0x338963);for(const _0x20749c of['splitTableCellVertically','splitTableCellHorizontally'])_0x339964['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x20749c,'accept',_0x338963);_0x339964['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x648b6e=>{_0x2d81bd['model']['change'](_0x553d05=>{const _0x550367=Array['from'](_0x3e17b9['getRanges']())['map'](_0x58efe1=>_0x40d9f2['fromRange'](_0x58efe1));_0x553d05['setSelection'](_0x648b6e),_0x2d81bd['commands']['get']('mergeTableCells')['refresh'](),_0x2d81bd['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x18c227=_0x550367['filter'](_0x6aaa61=>'$graveyard'!=_0x6aaa61['root']['rootName']);_0x18c227['length']>0x0&&_0x553d05['setSelection'](_0x18c227);for(const _0x416d45 of _0x550367)_0x416d45['detach']();});});for(const _0x4316d3 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2141b5=_0x2d81bd['commands']['get'](_0x4316d3);_0x2141b5['on']('set:isEnabled',(_0x5c0eab,_0x76922c,_0x24b719)=>{if(_0x24b719){const _0x2cd171=_0x2d81bd['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x50a918=>_0x50a918['is']('element','tableCell'));this['_areMergableCells'](_0x2141b5['value'],_0x2cd171)||(_0x5c0eab['return']=!0x1,_0x5c0eab['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3ca369=this['editor']['commands']['get']('mergeTableCells'),_0x55c22e=this['editor']['plugins']['get']('TableUtils');if(!_0x3ca369['isEnabled'])return!0x1;const _0x42a5f6=_0x55c22e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x534cae of _0x42a5f6)for(const _0x3c3844 of _0x42a5f6)if(_0x534cae!=_0x3c3844&&!this['_areMergableCells'](_0x534cae,_0x3c3844))return!0x1;return!0x0;}['_areMergableCells'](_0xe21f67,_0x49ea9b){const _0x17f73f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51d62a=this['editor']['model']['createRangeOn'](_0xe21f67),_0x43e483=this['editor']['model']['createRangeOn'](_0x49ea9b),_0x234485=new Set(),_0x318e5c=new Set();for(const _0x11495d of _0x17f73f['getSuggestions']())if(('insertion'==_0x11495d['type']||'deletion'==_0x11495d['type']||'mergeTableCells'==_0x11495d['subType'])&&_0x11495d['isInContent']){for(const _0x1727bb of _0x11495d['getRanges']())_0x1727bb['containsRange'](_0x51d62a,!0x0)&&_0x234485['add'](_0x11495d['type']+':'+_0x11495d['author']['id']),_0x1727bb['containsRange'](_0x43e483,!0x0)&&_0x318e5c['add'](_0x11495d['type']+':'+_0x11495d['author']['id']);}if(_0x234485['size']!=_0x318e5c['size'])return!0x1;for(const _0x589ea2 of _0x234485)if(!_0x318e5c['has'](_0x589ea2))return!0x1;return!0x0;}}class Ct extends _0xda0844{static get['requires'](){return[At];}['afterInit'](){const _0x1ecf28=this['editor'];if(!_0x1ecf28['plugins']['has']('TableEditing'))return;const _0x24f8df=_0x1ecf28['locale'],_0x337815=_0x1ecf28['plugins']['get']('TrackChangesEditing');_0x337815['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x337815['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x337815['registerBlockAttribute']('headingRows'),_0x337815['registerBlockAttribute']('headingColumns'),_0x337815['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x24f8df,'FORMAT_HEADER_ROW')),_0x337815['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x24f8df,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2f99fb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4888cf=this['editor']['plugins']['get']('TableUtils'),_0x1dc1b1=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0xba6f6a({showActiveMarker:_0x337a5d=!0x0,setDataAttribute:_0x1eae54=!0x0}={}){return(_0x2d789d,_0x143853,_0x13d666)=>{const {type:_0x9f2fb6,id:_0x4a3e51}=_0x2f99fb['_splitMarkerName'](_0x143853['markerName']),_0x2983c0=_0x2f99fb['getSuggestion'](_0x4a3e51),_0x205772=_0x2983c0['data'];if('formatBlock'!=_0x2983c0['type']||!_0x205772||'setTableColumnHeader'!=_0x205772['commandName'])return;if(_0x143853['item'])return void _0x2d789d['stop']();if(!_0x13d666['consumable']['consume'](_0x143853['markerRange'],_0x2d789d['name']))return;const _0x4c6f4f=_0x143853['markerRange']['start']['nodeAfter'],_0x177e2e=_0x143853['markerRange']['end']['nodeBefore'],_0x5f3c99=_0x4c6f4f['parent']['parent'],{column:_0x308c16}=_0x4888cf['getCellLocation'](_0x4c6f4f),{column:_0x3e424f}=_0x4888cf['getCellLocation'](_0x177e2e);for(let _0x389e67=_0x308c16;_0x389e67<=_0x3e424f;_0x389e67++){const _0x5c18db=_0x4888cf['createTableWalker'](_0x5f3c99,{'column':_0x389e67,'includeAllSlots':!0x1});for(const _0x256491 of _0x5c18db){const _0x1361cf=_0x256491['cell'],_0x49ae8d=_0x13d666['mapper']['toViewElement'](_0x1361cf);_0x13d666['writer']['addClass']('ck-suggestion-marker-'+_0x9f2fb6,_0x49ae8d),_0x1eae54&&_0x13d666['writer']['setAttribute']('data-suggestion',_0x4a3e51,_0x49ae8d),_0x13d666['mapper']['bindElementToMarker'](_0x49ae8d,_0x143853['markerName']),_0x337a5d&&(_0x2f99fb['activeMarkers']['includes'](_0x143853['markerName'])?_0x13d666['writer']['addClass']('ck-suggestion-marker--active',_0x49ae8d):_0x13d666['writer']['removeClass']('ck-suggestion-marker--active',_0x49ae8d));}}};}_0x2f99fb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1dc1b1),_0x2f99fb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1dc1b1),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xba6f6a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x136aad,_0x2c9201,_0x20f093)=>{_0x20f093['options']['showSuggestionHighlights']&&_0xba6f6a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x136aad,_0x2c9201,_0x20f093);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5d5811,_0x2939de,_0x558cb3)=>{const {type:_0x20e67e,id:_0x1aa367}=_0x2f99fb['_splitMarkerName'](_0x2939de['markerName']),_0x134268=_0x2f99fb['getSuggestion'](_0x1aa367),_0x115fc7=_0x134268['data'];if('formatBlock'!=_0x134268['type']||!_0x115fc7||'setTableColumnHeader'!=_0x115fc7['commandName'])return;const _0x2bf8e0=_0x558cb3['mapper']['markerNameToElements'](_0x2939de['markerName']);if(_0x2bf8e0){for(const _0x1a60b6 of _0x2bf8e0)_0x558cb3['writer']['removeClass']('ck-suggestion-marker-'+_0x20e67e,_0x1a60b6),_0x558cb3['writer']['removeClass']('ck-suggestion-marker--active',_0x1a60b6),_0x558cb3['writer']['removeAttribute']('data-suggestion',_0x1a60b6),_0x558cb3['mapper']['unbindElementFromMarkerName'](_0x1a60b6,_0x2939de['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d9a61=this['editor'],_0x41785c=_0x4d9a61['locale'];function _0x239ecb(_0x338be3){return{'type':'format','content':o(_0x41785c,'*Format:*\x20%0',_0x338be3)};}_0x4d9a61['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56ce3e=>{if('formatBlock'!=_0x56ce3e['type'])return;const {data:_0x33568a}=_0x56ce3e;if(_0x33568a){if('setTableRowHeader'==_0x33568a['commandName']){const _0x16a077=_0x33568a['commandParams'][0x0]['forceValue'];return _0x239ecb(o(_0x41785c,_0x16a077?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x33568a['commandName']){const _0x312660=_0x33568a['commandParams'][0x0]['forceValue'];return _0x239ecb(o(_0x41785c,_0x312660?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0xda0844{['afterInit'](){const _0x1b1d7c=this['editor'],_0x47f80b=_0x1b1d7c['locale'],_0x3eb186=_0x1b1d7c['plugins']['get']('TrackChangesEditing');function _0x40b030(_0x4de92a){return{'type':'format','content':''+o(_0x47f80b,'*Set\x20table\x20type:*\x20%0',_0x4de92a)};}_0x1b1d7c['plugins']['has']('TableLayout')&&(_0x3eb186['enableCommand']('insertTableLayout'),_0x3eb186['enableDefaultAttributesIntegration']('tableType'),_0x3eb186['registerBlockAttribute']('tableType'),_0x3eb186['descriptionFactory']['registerElementLabel'](_0x409c88=>_0x409c88['is']('element','table')&&'layout'===_0x409c88['getAttribute']('tableType'),_0x33fbe7=>o(_0x47f80b,'ELEMENT_LAYOUT_TABLE',_0x33fbe7)),_0x3eb186['descriptionFactory']['registerDescriptionCallback'](_0xb34dc=>{const {data:_0x55b95e}=_0xb34dc;if(_0x55b95e&&'tableType'==_0x55b95e['key'])switch(_0x55b95e['newValue']){case'layout':return _0x40b030(o(_0x47f80b,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x40b030(o(_0x47f80b,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Be['map'](_0x1013e7=>[_0x1013e7,null]));class Nt extends _0xda0844{static get['requires'](){return[At];}['afterInit'](){const _0x51540d=this['editor'];if(!_0x51540d['plugins']['has']('TableClipboard'))return;const _0x282e39=_0x51540d['plugins']['get']('TrackChangesEditing'),_0x53e1a8=_0x51540d['plugins']['get']('TableUtils'),_0x2a43fb=_0x51540d['plugins']['get'](At),_0xecdfe6=_0x51540d['plugins']['get']('TableClipboard'),_0x148630=_0x51540d['plugins']['get']('TableSelection'),_0x39b44a=_0x51540d['plugins']['get'](_0x185fe5);_0x2a43fb['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x51540d['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x51540d['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x17c12a=null,_0x42a597=!0x1;_0x39b44a['on']('contentInsertion',(_0x1cecc0,_0x1652f7)=>{_0x42a597='paste'===_0x1652f7['method'];}),_0x51540d['model']['on']('insertContent',(_0x1d14c5,_0x420789)=>{if(!_0x42a597&&null===_0x148630['getSelectedTableCells']())return;const [_0x4a5769,_0x41a0ac]=_0x420789,_0x53f65b=_0x420789[_0x420789['length']-0x1];_0x53f65b&&_0x53f65b['forceDefaultExecution']||_0x282e39['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x45756f,_0x52e14c,_0x9f43af,_0x18e292,_0x595645){if(_0x52e14c&&!_0x52e14c['is']('documentSelection'))return!0x1;const _0x39f0a7=_0x595645['getTableIfOnlyTableInContent'](_0x45756f,_0x9f43af);if(!_0x39f0a7||!Oe(_0x39f0a7,void 0x0,_0x18e292))return!0x1;const _0x34e148=_0x18e292['getSelectionAffectedTableCells'](_0x9f43af['document']['selection']);if(!_0x34e148['length'])return!0x1;const _0x14bf5d=_0x34e148[0x0]['findAncestor']('table'),_0x4d806c=_0x18e292['getRowIndexes'](_0x34e148),_0x1b3996=_0x18e292['getColumnIndexes'](_0x34e148),_0x44d90c={'startRow':_0x4d806c['first'],'endRow':_0x4d806c['last'],'startColumn':_0x1b3996['first'],'endColumn':_0x1b3996['last']};return 0x1==_0x34e148['length']&&(_0x44d90c['endRow']+=_0x18e292['getRows'](_0x39f0a7)-0x1,_0x44d90c['endColumn']+=_0x18e292['getColumns'](_0x39f0a7)-0x1),Oe(_0x14bf5d,_0x44d90c,_0x18e292);}(_0x4a5769,_0x41a0ac,_0x51540d['model'],_0x53e1a8,_0xecdfe6)&&(_0x1d14c5['stop'](),_0x17c12a={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x51540d['model']['change'](()=>{_0x51540d['model']['insertContent'](_0x420789[0x0],_0x420789[0x1],_0x420789[0x2],{'forceDefaultExecution':!0x0});const _0x238e28=_0x47d328(),{rowInsertionRanges:_0x5071bb,columnInsertionRanges:_0x1bac79,insertionRanges:_0x543204,deletionRanges:_0x3cab38,cells:_0x1cd7e6}=_0x17c12a;_0x5071bb['length']&&_0x282e39['markMultiRangeInsertion'](_0x5071bb,'tablePasteRow',{'tablePasteChainId':_0x238e28}),_0x1bac79['length']&&_0x282e39['markMultiRangeInsertion'](_0x1bac79,'tablePasteColumn',{'tablePasteChainId':_0x238e28}),_0x543204['length']&&(_0x282e39['markMultiRangeInsertion'](_0x543204,'tablePaste',{'tablePasteChainId':_0x238e28,'skipNestingCheck':!0x0}),_0x543204['forEach'](_0x2249d2=>_0x2249d2['detach']?.())),_0x3cab38['length']&&(_0x282e39['markMultiRangeDeletion'](_0x3cab38,'tablePaste',{'tablePasteChainId':_0x238e28,'skipNestingCheck':!0x0}),_0x3cab38['forEach'](_0x2b901f=>_0x2b901f['detach']?.()));const _0x274b56=_0x282e39['markMultiRangeBlockFormat'](_0x1cd7e6['map'](({element:_0x553ae0})=>_0x553ae0),{'formatGroupId':_0x47d328()},[],'tablePasteCell',{'tablePasteChainId':_0x238e28});if(_0x274b56){const _0x13bdde=_0x274b56['getMarkers'](),_0x3d6a91=[];for(const {element:_0x687467,attributes:_0x1ba64e}of _0x1cd7e6){if(!_0x1ba64e)continue;const _0x2679da=_0x51540d['model']['createRangeOn'](_0x687467),_0x2a4a23=_0x13bdde['find'](_0x25653c=>_0x25653c['getRange']()['isEqual'](_0x2679da));_0x2a4a23&&_0x3d6a91['push']([_0x2a4a23['name'],_0x1ba64e]);}_0x3d6a91['length']&&_0x274b56['setAttribute']('markerAttributes',Object['fromEntries'](_0x3d6a91));}_0x17c12a=null;}));},{'priority':_0x4347f3['high']+0xa}),_0x39b44a['on']('contentInsertion',()=>{_0x42a597=!0x1;},{'priority':'lowest'}),_0x51540d['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x128da5,_0x4428e7)=>{const [_0x288e8a,_0x577767,,_0x3360eb]=_0x4428e7;if(!_0x17c12a)return;_0x128da5['stop']();const _0x39bbe6=_0x288e8a['cell'],_0x80186d=_0x577767,_0x5cfeb0=xe(_0x39bbe6),_0x35937f=xe(_0x80186d);_0x128da5['return']=_0x39bbe6;let _0x374420=null,_0x2fc5e9=null;if(_0x35937f||_0x5cfeb0){if(_0x5cfeb0&&!_0x35937f){_0x3360eb['remove'](_0x39bbe6['getChild'](0x0));for(const _0x37c5a3 of Array['from'](_0x80186d['getChildren']()))_0x3360eb['insert'](_0x37c5a3,_0x39bbe6,'end');const _0x22233a=_0x17c12a['rowInsertionIndexes']['includes'](_0x288e8a['row']),_0x354b7f=_0x17c12a['columnInsertionIndexes']['includes'](_0x288e8a['column']);_0x22233a||_0x354b7f||(_0x374420=_0x40d9f2['fromRange'](_0x3360eb['createRangeIn'](_0x39bbe6)));}else _0x35937f&&!_0x5cfeb0&&(_0x2fc5e9=_0x3360eb['createRangeIn'](_0x39bbe6));}else{const _0xd6e297=_0x3360eb['createElement']('tableCellSuggestion'),_0x44259c=_0x3360eb['createElement']('tableCellSuggestion');_0x3360eb['wrap'](_0x3360eb['createRangeIn'](_0x39bbe6),_0x44259c),_0x3360eb['insert'](_0xd6e297,_0x39bbe6,0x0);for(const _0x3bb31a of Array['from'](_0x80186d['getChildren']()))_0x3360eb['insert'](_0x3bb31a,_0xd6e297,'end');_0x374420=_0x40d9f2['fromRange'](_0x3360eb['createRangeOn'](_0xd6e297)),_0x2fc5e9=_0x40d9f2['fromRange'](_0x3360eb['createRangeOn'](_0x44259c));}const _0x54146b=Array['from'](_0x80186d['getAttributes']())['filter'](([_0x444e67])=>Be['includes'](_0x444e67));_0x17c12a['cells']['push']({'element':_0x39bbe6,'attributes':_0x54146b['length']?Object['fromEntries'](_0x54146b):null}),_0x374420&&_0x17c12a['insertionRanges']['push'](_0x374420),_0x2fc5e9&&_0x17c12a['deletionRanges']['push'](_0x2fc5e9);},{'priority':'high'}),_0x53e1a8['on']('insertColumns',(_0x57ec26,_0x5d8422)=>{const [_0x4a3326,_0x55c58a={}]=_0x5d8422;if(!_0x17c12a)return;const _0x266057=_0x55c58a['at']||0x0,_0x621317=_0x55c58a['columns']||0x1;_0x17c12a['columnInsertionIndexes']=new Array(_0x621317)['fill'](_0x266057)['map']((_0x18e80e,_0x7c35a0)=>_0x18e80e+_0x7c35a0);for(const {cell:_0x6924e4}of _0x53e1a8['createTableWalker'](_0x4a3326,{'startColumn':_0x266057,'endColumn':_0x266057+_0x621317-0x1}))_0x17c12a['columnInsertionRanges']['push'](_0x51540d['model']['createRangeOn'](_0x6924e4));},{'priority':'low'}),_0x53e1a8['on']('insertRows',(_0x37b554,_0x52c989)=>{const [_0x4a8949,_0x41f69b={}]=_0x52c989;if(!_0x17c12a)return;const _0x48d618=_0x41f69b['at']||0x0,_0x5ecdba=_0x41f69b['rows']||0x1;_0x17c12a['rowInsertionIndexes']=new Array(_0x5ecdba)['fill'](_0x48d618)['map']((_0x19ebd8,_0x38157f)=>_0x19ebd8+_0x38157f);for(const {cell:_0x55767b}of _0x53e1a8['createTableWalker'](_0x4a8949,{'startRow':_0x48d618,'endRow':_0x48d618+_0x5ecdba-0x1}))_0x17c12a['rowInsertionRanges']['push'](_0x51540d['model']['createRangeOn'](_0x55767b));},{'priority':'low'}),_0x282e39['descriptionFactory']['registerDescriptionCallback'](_0x5943d3=>{if(_0x5943d3['subType']&&_0x5943d3['subType']['startsWith']('tablePaste'))return _0x5943d3['previous']?{}:{'type':'insertion','content':o(_0x51540d['locale'],'*Replace\x20table\x20cells*')};});const _0x543243=()=>!0x1;for(const _0x274c54 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x282e39['_suggestionFactory']['registerCustomCallback']('insertion',_0x274c54,'join',_0x543243),_0x282e39['_suggestionFactory']['registerCustomCallback']('deletion',_0x274c54,'join',_0x543243),_0x282e39['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x274c54,'join',_0x543243);_0x282e39['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x543243),_0x282e39['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x438278,_0x432a23,_0x2b549d)=>{const _0x332037=_0x438278['map'](_0x3c52ed=>_0x3c52ed['getContainedElement']())['filter'](_0x4733ba=>_0x4733ba),_0x2d612d=new Map(_0x332037['map'](_0x136cc=>[_0x136cc,null]));if(_0x17c12a){for(const {element:_0x20f8aa,attributes:_0x2b9f44}of _0x17c12a['cells'])_0x2b9f44&&_0x2d612d['set'](_0x20f8aa,_0x2b9f44);}else{if(_0x2b549d&&_0x2b549d['markerAttributes'])for(const [_0x47d504,_0xadcd49]of Object['entries'](_0x2b549d['markerAttributes'])){const _0xc7ead8=_0x51540d['model']['markers']['get'](_0x47d504),_0xb9218a=_0xc7ead8?_0xc7ead8['getRange']()['getContainedElement']():null;_0xb9218a&&_0x2d612d['set'](_0xb9218a,_0xadcd49);}}_0x51540d['model']['change'](_0x26295e=>{for(const [_0x3ee66d,_0x31d1ee]of _0x2d612d)_0x26295e['setAttributes']({...ve,..._0x31d1ee},_0x3ee66d);});});const _0x5d413a=(_0x34e0d0,_0xa07678)=>{_0x282e39['_suggestionFactory']['registerCustomCallback'](_0x34e0d0,'tablePaste',_0xa07678,(_0x124bff,_0x489f14,_0x37f819)=>{_0x51540d['model']['change'](_0x382837=>{const _0x49d9d3=[];for(const _0x5dc939 of _0x124bff){const _0x1e8deb=_0x5dc939['start']['nodeAfter'];_0x1e8deb['is']('element','tableCellSuggestion')&&_0x49d9d3['push'](_0x1e8deb);}_0x282e39['_suggestionFactory']['getSuggestionCallback'](_0x34e0d0,null,_0xa07678)(_0x124bff,_0x489f14,_0x37f819);for(const _0x503ac0 of _0x49d9d3)'$graveyard'!=_0x503ac0['root']['rootName']&&_0x382837['unwrap'](_0x503ac0);});});};_0x5d413a('insertion','accept'),_0x5d413a('insertion','discard'),_0x5d413a('deletion','accept'),_0x5d413a('deletion','discard'),_0x282e39['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x58dfbf=>{const _0x291e7f=_0x58dfbf['map'](_0x43a168=>_0x43a168['getContainedElement']()),_0x58b163=_0x291e7f[0x0]['findAncestor']('table'),{minRow:_0x5522cb,maxRow:_0x376769}=_0x2a43fb['_getCoordsForCells'](_0x291e7f);_0x53e1a8['removeRows'](_0x58b163,{'at':_0x5522cb,'rows':_0x376769-_0x5522cb+0x1});}),_0x282e39['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2225bd=>{const _0x53fb50=_0x2225bd['map'](_0x5d61c3=>_0x5d61c3['getContainedElement']()),_0x40a814=_0x53fb50[0x0]['findAncestor']('table'),{minColumn:_0x42001c,maxColumn:_0x348a65}=_0x2a43fb['_getCoordsForCells'](_0x53fb50);_0x53e1a8['removeColumns'](_0x40a814,{'at':_0x42001c,'columns':_0x348a65-_0x42001c+0x1});});const _0xced6f1=(_0x315504,_0x4edc4e)=>{if(!_0x4edc4e['subType']||!_0x4edc4e['subType']['startsWith']('tablePaste'))return;const _0x5cea4c=_0x4edc4e['attributes']['tablePasteChainId'],_0x371832=_0x282e39['getSuggestions']()['filter'](_0x35bcee=>_0x35bcee['isInContent']&&_0x35bcee['attributes']&&_0x35bcee['attributes']['tablePasteChainId']==_0x5cea4c);_0x371832['length']&&_0x4edc4e['getAllAdjacentSuggestions']()['length']!=_0x371832['length']&&_0x371832['reduce']((_0x4c50e4,_0x34d935)=>(_0x4c50e4['next']=_0x34d935,_0x34d935['previous']=_0x4c50e4,_0x34d935));};function _0x471541(_0x5da093,_0x1ea400=!0x0){const {id:_0x2a1c52,authorId:_0x180636}=_0x282e39['_splitMarkerName'](_0x5da093['markerName']),_0xe761e0=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x195233=_0x282e39['activeMarkers']['includes'](_0x5da093['markerName']);return _0x195233&&_0xe761e0['push']('ck-suggestion-marker--active'),{'classes':_0xe761e0,'attributes':{'data-suggestion':_0x2a1c52,'data-author-id':_0x180636},'priority':_0x195233&&_0x1ea400?0xbc2:0xbb8};}_0x282e39['on']('suggestionLoaded',_0xced6f1,{'priority':'high'}),_0x282e39['on']('suggestionUnloaded',_0xced6f1,{'priority':'high'}),_0x51540d['model']['document']['registerPostFixer'](()=>{let _0x5cfe00=!0x1;const _0x5603cf=Array['from'](_0x51540d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1690f7,data:_0x251b74}of _0x5603cf){const {group:_0x362089,type:_0x4dcb7d,id:_0x3824b9}=_0x282e39['_splitMarkerName'](_0x1690f7);if('suggestion'!=_0x362089||'deletion'!=_0x4dcb7d||_0x251b74['oldRange'])continue;if(!_0x282e39['hasSuggestion'](_0x3824b9))continue;const _0x1cf273=_0x282e39['getSuggestion'](_0x3824b9)['getRanges'](),_0x507ab6=_0x51540d['plugins']['get']('Users')['me'];for(const _0x52f600 of _0x282e39['getSuggestions']()){if(!_0x52f600['isInContent']||_0x52f600['author']!=_0x507ab6)continue;if('formatBlock'!=_0x52f600['type']||'tablePasteCell'!=_0x52f600['subType'])continue;if(_0x52f600['getRanges']()['every'](_0x1d9b71=>_0x1cf273['some'](_0x4fd86d=>_0x4fd86d['containsRange'](_0x1d9b71,!0x0)))){for(const _0xeb4c2d of _0x52f600['getAllAdjacentSuggestions']())_0xeb4c2d['isInContent']&&(_0xeb4c2d['discard'](),_0x5cfe00=!0x0);}}}return _0x5cfe00;}),_0x51540d['model']['document']['registerPostFixer'](_0x48f759=>{const _0x228fe7=_0x51540d['commands']['get']('redo');if(!_0x228fe7||!_0x228fe7['_createdBatches']['has'](_0x48f759['batch']))return!0x1;let _0x43cf77=!0x1;const _0x455abd=_0x51540d['plugins']['get']('Users')['me'],_0x4da22b=_0x51540d['model']['document']['differ']['getChanges'](),_0x192bb7=Array['from'](_0x51540d['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3cdbff,data:_0x2ace73})=>{const {group:_0x5d85aa,subType:_0x528455,authorId:_0x7af5bf}=_0x282e39['_splitMarkerName'](_0x3cdbff);return'suggestion'==_0x5d85aa&&'tablePaste'==_0x528455&&_0x7af5bf==_0x455abd['id']&&!_0x2ace73['oldRange'];});for(const _0x140f3c of _0x4da22b){if('insert'!=_0x140f3c['type']||'tableCellSuggestion'!=_0x140f3c['name']||0x1!=_0x140f3c['length'])continue;const _0x542a6c=_0x48f759['createRange'](_0x140f3c['position'],_0x140f3c['position']['getShiftedBy'](0x1));if(!_0x192bb7['find'](({data:_0x3b7856})=>_0x3b7856['newRange']['isEqual'](_0x542a6c))){for(const {name:_0x1486d0,data:_0x2ad61d}of _0x192bb7)if(_0x542a6c['containsRange'](_0x2ad61d['newRange'])){_0x48f759['updateMarker'](_0x1486d0,{'range':_0x542a6c}),_0x43cf77=!0x0;break;}}}return _0x43cf77;}),_0x51540d['model']['document']['registerPostFixer'](_0x2a3941=>{let _0xc395e0=!0x1;const _0xea0ecf=_0x51540d['plugins']['get']('Users')['me'],_0x2ce945=_0x282e39['getSuggestions']()['filter'](_0x32bb1a=>_0x32bb1a['isInContent']&&_0x32bb1a['author']==_0xea0ecf),_0x1d9cb9=new Set(),_0x5b6f9f=new Set();for(const _0x2270c5 of _0x2ce945)if('tablePaste'==_0x2270c5['subType'])for(const _0x17293f of _0x2270c5['getMarkers']()){const _0x2d13f8=_0x17293f['getRange']()['getContainedElement']();if(_0x2d13f8){if(_0x2d13f8['is']('element','tableCellSuggestion')&&xe(_0x2d13f8)){_0x2270c5['removeMarker'](_0x17293f['name']),_0x1d9cb9['add'](_0x2d13f8),_0xc395e0=!0x0;const _0x1f71f0=_0x2d13f8['nextSibling'],_0x105161=_0x2d13f8['previousSibling'],_0x145bba=_0x1f71f0&&_0x1f71f0['is']('element','tableCellSuggestion'),_0x269f96=_0x105161&&_0x105161['is']('element','tableCellSuggestion');_0x145bba&&!_0x1d9cb9['has'](_0x1f71f0)&&_0x5b6f9f['add'](_0x1f71f0),_0x269f96&&!_0x1d9cb9['has'](_0x105161)&&_0x5b6f9f['add'](_0x105161);}else _0x2d13f8['is']('element','paragraph')&&_0x2d13f8['isEmpty']&&(_0x2270c5['removeMarker'](_0x17293f['name']),_0xc395e0=!0x0);}}else{if('tablePasteCell'==_0x2270c5['subType']){if(!_0x2270c5['attributes']||!_0x2270c5['attributes']['tablePasteChainId'])continue;const _0x34d3cc=_0x2270c5['attributes']['markerAttributes'];if(_0x34d3cc&&Object['keys'](_0x34d3cc)['length'])continue;const _0x4047e8=_0x2270c5['attributes']['tablePasteChainId'];let _0x3bc383=!0x0,_0x4483df=!0x0;for(const _0x5ceb20 of _0x2ce945)if(_0x5ceb20['subType']&&_0x5ceb20['subType']['startsWith']('tablePaste')){if(!_0x5ceb20['attributes']['tablePasteChainId']){_0x4483df=!0x1;break;}if(_0x5ceb20['id']!=_0x2270c5['id']&&_0x5ceb20['attributes']['tablePasteChainId']==_0x4047e8){_0x3bc383=!0x1;break;}}_0x4483df&&_0x3bc383&&(_0x2270c5['removeMarkers'](),_0xc395e0=!0x0);}}for(const _0x209a59 of _0x1d9cb9)_0x2a3941['remove'](_0x209a59);for(const _0x2ea3a6 of _0x5b6f9f)_0x2a3941['unwrap'](_0x2ea3a6);return _0xc395e0;}),_0x51540d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x22cec0=>_0x471541(_0x22cec0),'converterPriority':'high'}),_0x51540d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4913f9,_0xc4d4d6)=>_0xc4d4d6['options']['showSuggestionHighlights']?_0x471541(_0x4913f9,!0x1):null,'converterPriority':'high'});const _0x261a7e=_0x51540d['editing']['view'];this['listenTo'](_0x261a7e['document'],'clipboardOutput',(_0x3da1e7,_0x1fbf56)=>{const _0x31df15=[];for(const _0x1a6edf of _0x261a7e['createRangeIn'](_0x1fbf56['content'])['getItems']())_0x1a6edf['is']('element','suggestion-td')&&_0x31df15['push'](_0x1a6edf);_0x261a7e['change'](_0x4742cf=>{for(const _0x29a355 of _0x31df15)_0x4742cf['move'](_0x4742cf['createRangeIn'](_0x29a355),_0x4742cf['createPositionBefore'](_0x29a355)),_0x4742cf['remove'](_0x29a355);});});}}function xe(_0x3eb42a){if(_0x3eb42a['isEmpty'])return!0x0;const _0x43b42f=_0x3eb42a['getChild'](0x0);return _0x43b42f['is']('element','paragraph')&&_0x43b42f['isEmpty'];}function Oe(_0x1b813b,_0x315893={},_0x376797){for(const {isAnchor:_0x832901,cellHeight:_0x10bf16,cellWidth:_0x3779ae}of _0x376797['createTableWalker'](_0x1b813b,{'includeAllSlots':!0x0,..._0x315893}))if(!_0x832901||0x1!=_0x10bf16||0x1!=_0x3779ae)return!0x1;return!0x0;}class Dt extends _0xda0844{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5862ae=this['editor']['plugins']['get']('TrackChangesEditing');_0x5862ae['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5862ae['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5862ae['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5862ae['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5862ae['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5862ae['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x259c67,_0x4c1129){const _0x1dce76=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a2c86=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1f7abe=_0x4c1129['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x124672=_0x3a2c86['getColumnGroupElement'](_0x1f7abe);let _0x188049=_0x124672?_0x3a2c86['getTableColumnsWidths'](_0x124672):null,_0x245a29=_0x1f7abe['getAttribute']('tableWidth')||null;const _0x3734da=_0x4c1129['tableWidth']||_0x245a29,_0x2b436e=_0x4c1129['columnWidths']||_0x188049,_0x4e797d=this['editor']['plugins']['get']('Users')['me'];for(const _0x24652c of _0x1dce76['getSuggestions']()){const _0x3f944a=_0x24652c['getContainedElement']();if('resizeTable'===_0x24652c['subType']&&_0x3f944a===_0x1f7abe){_0x24652c['author']!==_0x4e797d&&_0x24652c['discard']();const _0x195256=_0x24652c['data']['commandParams'];_0x245a29=_0x195256[0x0]['tableWidth'],_0x188049=_0x195256[0x0]['columnWidths'];break;}}_0x259c67({'table':_0x1f7abe,'tableWidth':_0x3734da,'columnWidths':_0x2b436e}),_0x1dce76['markBlockFormat'](_0x1f7abe,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x245a29,'columnWidths':_0x188049}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x393cc8){if('formatBlock'!=_0x393cc8['type']&&'formatInline'!=_0x393cc8['type'])return;const {data:_0x16fcdf}=_0x393cc8;if(_0x16fcdf&&'resizeTable'===_0x16fcdf['formatGroupId']){const _0x29953b='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x29953b)};}}}class $t extends _0xda0844{['afterInit'](){const _0x1f942f=this['editor'];_0x1f942f['plugins']['has']('Template')&&_0x1f942f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0xda0844{['afterInit'](){const _0x3e2c7c=this['editor'];if(!_0x3e2c7c['commands']['get']('insertTableOfContents'))return;_0x3e2c7c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4136a6=_0x3e2c7c['plugins']['get']('TrackChangesEditing'),_0x5d3b31=_0x3e2c7c['locale'];_0x4136a6['descriptionFactory']['registerElementLabel']('tableOfContents',_0xc7c230=>o(_0x5d3b31,'ELEMENT_TABLE_OF_CONTENTS',_0xc7c230));}}class Bt extends _0xda0844{['afterInit'](){const _0x46d481=this['editor'];if(!_0x46d481['plugins']['has']('Title'))return;const _0x12887f=_0x46d481['plugins']['get']('TrackChangesEditing');_0x12887f['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x46d481['locale'],'ELEMENT_TITLE')),_0x46d481['model']['document']['registerPostFixer'](_0x460526=>{let _0x214805=!0x1;const _0xf6de50=Array['from'](_0x46d481['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x54d610,data:_0x599d40}of _0xf6de50){const {group:_0x5eddb3}=_0x12887f['_splitMarkerName'](_0x54d610);if('suggestion'!==_0x5eddb3||!_0x599d40['newRange'])continue;const _0x52fbe4=_0x599d40['newRange'],_0x22614d=_0x52fbe4['end']['nodeBefore'];if(!_0x22614d||!_0x22614d['is']('element','title-content'))continue;if(!_0x52fbe4['start']['isTouching'](_0x52fbe4['end']))continue;const _0x1f1391=_0x46d481['model']['schema']['getNearestSelectionRange'](_0x52fbe4['end'],'forward');if(_0x1f1391&&_0x1f1391['isCollapsed']){const _0x3004c9=_0x460526['createRange'](_0x52fbe4['start'],_0x1f1391['start']);_0x3004c9['isEqual'](_0x52fbe4)||(_0x460526['updateMarker'](_0x54d610,{'range':_0x3004c9}),_0x214805=!0x0);}_0x214805||(_0x460526['removeMarker'](_0x54d610),_0x214805=!0x0);}return _0x214805;});}}class Tt extends _0xda0844{['afterInit'](){const _0x2118e3=this['editor'],_0x4e1e36=_0x2118e3['plugins']['get']('TrackChangesEditing');_0x2118e3['plugins']['has']('Uploadcare')&&(_0x4e1e36['enableCommand']('uploadcare'),_0x2118e3['plugins']['has']('UploadcareImageEdit')&&(_0x4e1e36['enableCommand']('uploadcareImageEdit'),_0x4e1e36['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4e1e36['registerBlockAttribute']('uploadcareImageId'),_0x4e1e36['descriptionFactory']['registerDescriptionCallback'](_0x3d8fbf=>{if('attribute'!=_0x3d8fbf['type'])return;const {data:_0x51b285}=_0x3d8fbf;return _0x51b285&&'uploadcareImageId'==_0x51b285['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0xda0844{['afterInit'](){const _0x4075be=this['editor'],_0x1642ba=_0x4075be['plugins']['get']('TrackChangesEditing');_0x4075be['plugins']['has']('UndoEditing')&&(_0x1642ba['enableCommand']('undo'),_0x1642ba['enableCommand']('redo'));}}class Ot extends _0xda0844{static get['requires'](){return[At];}['afterInit'](){const _0x5c88db=this['editor'];if(!_0x5c88db['plugins']['has']('TableCaptionEditing'))return;_0x5c88db['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0xda0844{['tableProperties'];['tableCellProperties'];constructor(_0x5da1ef){super(_0x5da1ef),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x283ff7=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1a61f9 of this['tableProperties'])_0x283ff7['enableCommand'](_0x1a61f9,(_0x2b2fcf,_0x2c016c)=>{const _0x36b9bb=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1a61f9,[_0x36b9bb],this['tableProperties'],'tableProperties',_0x2b2fcf,_0x2c016c);});_0x283ff7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x283ff7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x283ff7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xc992be,_0x2df573)=>this['handleDiscardAction'](this['tableProperties'],_0xc992be,_0x2df573)),_0x283ff7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5dc900 of this['tableCellProperties'])_0x283ff7['enableCommand'](_0x5dc900,(_0x3532b9,_0x882bd9)=>{const _0x193099=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5dc900,_0x193099,this['tableCellProperties'],'tableCellProperties',_0x3532b9,_0x882bd9);});_0x283ff7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x283ff7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x283ff7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x334a04,_0x3031ec)=>this['handleDiscardAction'](this['tableCellProperties'],_0x334a04,_0x3031ec)),_0x283ff7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x283ff7['descriptionFactory']['registerDescriptionCallback'](_0x1c60ee=>this['handleSuggestionDescription'](_0x1c60ee)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x59cdfd,_0x547a4d,_0x336158,_0x1a0893,_0x2ae5aa,_0x427b0d){const _0x35ad79=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x427b0d['batch'],()=>{for(const _0x1c6fcc of _0x547a4d){if(this['_getSuggestion'](_0x1c6fcc,_0x1a0893))_0x2ae5aa(_0x427b0d);else{const _0xd76072={};for(const _0x151512 of _0x336158){const _0x1af93e=_0x1c6fcc['getAttribute'](_0x151512);void 0x0!==_0x1af93e&&(_0xd76072[_0x151512]=_0x1af93e);}_0x2ae5aa(_0x427b0d),_0x35ad79['markBlockFormat'](_0x1c6fcc,{'commandParams':[_0xd76072]},[],_0x1a0893);}}});}['handleDiscardAction'](_0x3ac82b,_0x53dfdb,_0x270f95){const _0x58e2c9=_0x53dfdb[0x0]['start']['nodeAfter'],_0x123f74=_0x270f95['commandParams'][0x0];this['editor']['model']['change'](_0x844990=>{for(const _0x1cacde of _0x3ac82b)void 0x0!==_0x123f74[_0x1cacde]?_0x844990['setAttribute'](_0x1cacde,_0x123f74[_0x1cacde],_0x58e2c9):_0x844990['removeAttribute'](_0x1cacde,_0x58e2c9);});}['handleSuggestionDescription'](_0x3c1244){if(_0x3c1244['data'])switch(_0x3c1244['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x1bf8c2,_0x5c2784){const _0xcc04a7=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5bf69a of _0xcc04a7['getSuggestions']({'skipNotAttached':!0x0})){const _0xc254a3=_0x5bf69a['getContainedElement']();if(_0x5bf69a['subType']===_0x5c2784&&_0xc254a3===_0x1bf8c2)return _0x5bf69a;}return null;}['_registerTablePropertiesAttributes'](){const _0x12469b=this['editor']['plugins']['get']('TrackChangesEditing'),_0xdf11f1=[...this['tableProperties'],...this['tableCellProperties']];for(const _0xcf2337 of _0xdf11f1){const _0x5be357=_0xcf2337['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x12469b['registerBlockAttribute'](_0xcf2337),_0x12469b['descriptionFactory']['registerAttributeLabel'](_0xcf2337,o(this['editor']['locale'],'FORMAT_'+_0x5be357));}}}class Rt extends _0xda0844{['afterInit'](){const _0x3cfaed=this['editor'];if(!_0x3cfaed['plugins']['has']('LineHeight'))return;const _0x66a17=_0x3cfaed['plugins']['get']('TrackChangesEditing'),_0x273a07=_0x3cfaed['locale'];_0x66a17['enableDefaultAttributesIntegration']('lineHeight'),_0x66a17['registerBlockAttribute']('lineHeight'),_0x66a17['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x273a07,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0xda0844{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x9ab31d,_0x19d838,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3ccd5a){super(_0x3ccd5a),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x419e1b,_0x546b25,_0xd9ac3c,_0x19d4b7)=>{this['_model']['change'](()=>{for(const _0x22f8bd of[..._0x19d4b7,..._0xd9ac3c])this['_model']['markers']['has'](_0x22f8bd)&&_0x3ccd5a['editing']['reconvertMarker'](_0x22f8bd);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3ccd5a['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x3ccd5a['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3ccd5a['config']['get']('trackChanges.trackFormatChanges'),_0x3ccd5a['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3ccd5a['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x3ccd5a,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4d13c5=this['editor'],_0x45d046=(_0x1197bc,_0x352a42)=>{if('attribute'!=_0x1197bc)return'ck-suggestion-marker-'+_0x1197bc;const _0x39178a=_0x352a42['split']('|')[0x0];return this['_isBlockAttribute'](_0x39178a)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4d13c5['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x522796=>{const {id:_0x4b7e3c,authorId:_0x4aa079,type:_0x344b95,subType:_0x48d1d4}=this['_splitMarkerName'](_0x522796['markerName']),_0x139d21=['ck-suggestion-marker',_0x45d046(_0x344b95,_0x48d1d4)];let _0x93169=0xbb8;return this['activeMarkers']['includes'](_0x522796['markerName'])&&(_0x139d21['push']('ck-suggestion-marker--active'),_0x93169=0xbc2),'deletion'==_0x344b95&&(_0x93169+=0x5),{'classes':_0x139d21,'attributes':{'data-suggestion':_0x4b7e3c,'data-author-id':_0x4aa079},'priority':_0x93169};}}),_0x4d13c5['conversion']['for']('dataDowncast')['add'](_0x2caa30=>{_0x2caa30['on']('addMarker:suggestion',(_0x4b5e15,_0x3e1edd,_0x120730)=>{if(!_0x120730['options']['showSuggestionHighlights'])return;const _0x59f0dd=_0x3e1edd['item'];if(!_0x59f0dd)return;const _0x405d56=_0x120730['mapper']['toViewElement'](_0x59f0dd);_0x4d13c5['model']['schema']['isObject'](_0x59f0dd)&&_0x405d56&&!_0x405d56['getCustomProperty']('widget')&&_0x405d56['is']('containerElement')&&_0x5132ec(_0x405d56,_0x120730['writer']);},{'priority':'high'});}),_0x4d13c5['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3a0ff5,_0x2c339c)=>{if(!_0x2c339c['options']['showSuggestionHighlights'])return null;const {id:_0x86af,authorId:_0x102ba1,type:_0x62e900,subType:_0xa7efd2}=this['_splitMarkerName'](_0x3a0ff5['markerName']);return{'classes':['ck-suggestion-marker',_0x45d046(_0x62e900,_0xa7efd2)],'priority':0xbb8,'attributes':{'data-suggestion':_0x86af,'data-author-id':_0x102ba1}};}});const _0x1955da=({showActiveMarkers:_0x370ecc=!0x0,isAttributeSuggestion:_0x46195b=!0x1}={})=>(_0x5e69b1,_0x3467de,_0x355e53)=>{if(!_0x3467de['item'])return;const {id:_0x52bfca,authorId:_0x2de722}=this['_splitMarkerName'](_0x3467de['markerName']);if(_0x46195b){const _0x2984f4=this['_suggestions']['get'](_0x52bfca),_0x5054d5=this['_getAttributeKey'](_0x2984f4);if(!this['_isBlockAttribute'](_0x5054d5))return;}if(_0x3467de['item']['is']('selection'))return void _0x355e53['consumable']['consume'](_0x3467de['item'],_0x5e69b1['name']);const _0x30e4e8=_0x355e53['mapper']['toViewElement'](_0x3467de['item']);if(_0x3467de['item']['is']('element')&&_0x4d13c5['model']['schema']['isBlock'](_0x3467de['item'])&&!_0x30e4e8['getCustomProperty']('addHighlight')){_0x355e53['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x30e4e8),_0x355e53['writer']['setAttribute']('data-suggestion',_0x52bfca,_0x30e4e8),_0x355e53['writer']['setAttribute']('data-author-id',_0x2de722,_0x30e4e8),_0x355e53['mapper']['bindElementToMarker'](_0x30e4e8,_0x3467de['markerName']),_0x370ecc&&(this['activeMarkers']['includes'](_0x3467de['markerName'])?_0x355e53['writer']['addClass']('ck-suggestion-marker--active',_0x30e4e8):_0x355e53['writer']['removeClass']('ck-suggestion-marker--active',_0x30e4e8));for(const _0x4bca9e of _0x4d13c5['model']['createRangeIn'](_0x3467de['item'])['getItems']())_0x355e53['consumable']['consume'](_0x4bca9e,_0x5e69b1['name']);_0x355e53['consumable']['consume'](_0x3467de['item'],_0x5e69b1['name']);}};_0x4d13c5['conversion']['for']('dataDowncast')['add'](_0x33a275=>{_0x33a275['on']('addMarker:suggestion:formatBlock',(_0x292657,_0xd34cd3,_0x512e1e)=>{_0x512e1e['options']['showSuggestionHighlights']&&_0x1955da({'showActiveMarkers':!0x1})(_0x292657,_0xd34cd3,_0x512e1e);},{'priority':'highest'});}),_0x4d13c5['conversion']['for']('dataDowncast')['add'](_0x4aaa80=>{_0x4aaa80['on']('addMarker:suggestion:attribute',(_0x4f2cde,_0x1ed7b7,_0x3f0d03)=>{_0x3f0d03['options']['showSuggestionHighlights']&&_0x1955da({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4f2cde,_0x1ed7b7,_0x3f0d03);},{'priority':'highest'});}),_0x4d13c5['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1eeb1f,_0x48442c)=>{if(_0x48442c['options']['showSuggestionHighlights']){const {id:_0x3a8a5f,authorId:_0x452392}=this['_splitMarkerName'](_0x1eeb1f);return _0x1eeb1f['includes'](':split')||_0x1eeb1f['includes'](':merge')?{'group':'suggestion','name':_0x1eeb1f['substr'](0xb),'attributes':{'data-suggestion':_0x3a8a5f,'data-author-id':_0x452392}}:null;}return{'group':'suggestion','name':_0x1eeb1f['substr'](0xb)};}}),_0x4d13c5['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1326b5,{writer:_0x16997c})=>{let _0x28c806='suggestion:'+_0x1326b5['getAttribute']('suggestion-type')+':'+_0x1326b5['getAttribute']('id');return _0x1326b5['getAttribute']('marker-count')&&(_0x28c806+=':'+_0x1326b5['getAttribute']('marker-count')),_0x16997c['createElement']('$marker',{'data-name':_0x28c806});}}),_0x4d13c5['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4d13c5['conversion']['for']('editingDowncast')['add'](_0x1d27d9=>{_0x1d27d9['on']('addMarker:suggestion:formatBlock',_0x1955da(),{'priority':'high'});}),_0x4d13c5['conversion']['for']('editingDowncast')['add'](_0x230f91=>{_0x230f91['on']('addMarker:suggestion:attribute',_0x1955da({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4d13c5['conversion']['for']('editingDowncast')['add'](_0x5888e8=>{_0x5888e8['on']('removeMarker:suggestion:formatBlock',(_0x331844,_0x34933e,_0x12b6fb)=>{const _0x256f93=_0x12b6fb['mapper']['markerNameToElements'](_0x34933e['markerName']);if(_0x256f93){for(const _0x1a6daa of _0x256f93)_0x1a6daa['getCustomProperty']('addHighlight')||(_0x12b6fb['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1a6daa),_0x12b6fb['writer']['removeAttribute']('data-suggestion',_0x1a6daa),_0x12b6fb['writer']['removeAttribute']('data-author-id',_0x1a6daa),_0x12b6fb['mapper']['unbindElementFromMarkerName'](_0x1a6daa,_0x34933e['markerName']));}},{'priority':'high'});}),_0x4d13c5['conversion']['for']('editingDowncast')['add'](_0x26417c=>{_0x26417c['on']('removeMarker:suggestion:attribute',(_0x5be65c,_0x5dc7a1,_0x29622a)=>{const _0x59e63d=_0x29622a['mapper']['markerNameToElements'](_0x5dc7a1['markerName']);if(!_0x59e63d)return;const {id:_0xf93e5e}=this['_splitMarkerName'](_0x5dc7a1['markerName']),_0x35bcba=this['_suggestions']['get'](_0xf93e5e),_0x4702c0=this['_getAttributeKey'](_0x35bcba);if(this['_isBlockAttribute'](_0x4702c0)){for(const _0x59f487 of _0x59e63d)_0x59f487['getCustomProperty']('addHighlight')||(_0x29622a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x59f487),_0x29622a['writer']['removeAttribute']('data-suggestion',_0x59f487),_0x29622a['writer']['removeAttribute']('data-author-id',_0x59f487),_0x29622a['mapper']['unbindElementFromMarkerName'](_0x59f487,_0x5dc7a1['markerName']));}},{'priority':'high'});}),_0x4d13c5['model']['document']['registerPostFixer'](_0x398f43=>{let _0x4374fd=!0x1;const _0x5a2d2e=Array['from'](_0x4d13c5['model']['document']['differ']['getChangedMarkers']()),_0x43a174=new Set();for(const {name:_0x3ebc49,data:_0x238730}of _0x5a2d2e){const {group:_0x32d309,type:_0x3e3a13,subType:_0x2d1730,id:_0x3f83d0}=this['_splitMarkerName'](_0x3ebc49);if('suggestion'!==_0x32d309)continue;const _0x53be27=_0x2d1730?'suggestion:'+_0x3e3a13+':'+_0x2d1730+':'+_0x3f83d0:'suggestion:'+_0x3e3a13+':'+_0x3f83d0,_0x4e0507=_0x4d13c5['model']['markers']['getMarkersGroup'](_0x53be27),_0x1fcd20=_0x4d13c5['model']['markers']['get'](_0x3ebc49),_0x354d7c=this['_suggestions']['get'](_0x3f83d0);if(null!=_0x238730['newRange']){'formatInline'==_0x3e3a13&&(_0x4374fd=_0x4374fd||Gt(_0x238730['newRange'],_0x3ebc49,_0x398f43,_0x4d13c5['model']['schema']));const _0x695514='attribute'==_0x3e3a13&&this['_isBlockAttribute'](_0x2d1730['split']('|')[0x0]),_0x359b0f='attribute'==_0x3e3a13&&this['_isInlineAttribute'](_0x2d1730['split']('|')[0x0]);if(_0x238730['newRange']['isCollapsed']||'$graveyard'==_0x238730['newRange']['root']['rootName']||'formatBlock'==_0x3e3a13&&!Jt(_0x238730['newRange'])||_0x695514&&!Jt(_0x238730['newRange'])||_0x359b0f&&Kt(_0x238730['newRange'])||'deletion'==_0x3e3a13&&Kt(_0x238730['newRange'])||_0x1fcd20&&Ht(_0x1fcd20,_0x4e0507))_0x398f43['removeMarker'](_0x3ebc49),_0x4374fd=!0x0;else{if(!_0x354d7c||!_0x354d7c['isInContent'])continue;if(_0x238730['newRange']&&_0x238730['oldRange']&&_0x238730['newRange']['isEqual'](_0x238730['oldRange']))continue;_0x43a174['add'](_0x354d7c);}}}return _0x43a174['size']>0x0&&(_0x4374fd=!!this['_joinWithAdjacentSuggestions'](_0x43a174)||_0x4374fd),_0x4374fd;}),_0x4d13c5['model']['document']['registerPostFixer'](_0x14c7fa=>{let _0x3dd07f=!0x1;for(const _0x19b186 of _0x4d13c5['model']['document']['differ']['getChanges']())if('insert'==_0x19b186['type'])for(const _0x589c2a of this['_suggestions']['values']()){if(_0x589c2a['isMultiRange']||!_0x589c2a['isInContent'])continue;const _0x57966d='formatBlock'==_0x589c2a['type'],_0x165b02=this['_getAttributeKey'](_0x589c2a),_0x46a3e4=_0x165b02&&this['_isBlockAttribute'](_0x165b02);if(!_0x57966d&&!_0x46a3e4)continue;const _0x3002de=_0x589c2a['getFirstRange']();if(_0x3002de['start']['parent']!=_0x3002de['end']['parent']&&!_0x3002de['end']['isAtEnd']){const _0x467797=_0x4d13c5['model']['createPositionAt'](_0x3002de['start']['nodeAfter'],'end'),_0x1716ed=_0x4d13c5['model']['createRange'](_0x3002de['start'],_0x467797);_0x14c7fa['updateMarker'](_0x589c2a['getFirstMarker'](),{'range':_0x1716ed}),_0x3dd07f=!0x0;}}return _0x3dd07f;}),_0x4d13c5['model']['document']['registerPostFixer'](_0x2ba431=>this['_processAttributeChanges'](_0x2ba431)),_0x4d13c5['model']['document']['registerPostFixer'](_0x1325de=>!_0x1325de['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1325de)),_0x4d13c5['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4d13c5['model']['document']['on']('change:data',(_0xdb96fa,_0x206f18)=>{if(!_0x206f18['isLocal']||_0x206f18['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x32279f=_0x4d13c5['model']['document']['differ']['getChanges']();if(0x0==_0x32279f['length'])return;const _0x71c115=[],_0x2faea5=_0x32279f['filter'](_0x179dc2=>'attribute'==_0x179dc2['type']),_0x3ccff7=_0x32279f['filter'](_0xbdc490=>'insert'==_0xbdc490['type']&&'$text'!=_0xbdc490['name']);for(const _0x2acff4 of _0x2faea5)this['_isRegisteredAttribute'](_0x2acff4['attributeKey'])&&_0x71c115['push']({'key':_0x2acff4['attributeKey'],'newValue':_0x2acff4['attributeNewValue'],'oldValue':_0x2acff4['attributeOldValue'],'range':qt(_0x2acff4['range'],_0x4d13c5['model'])});for(const _0x20a3c2 of _0x3ccff7){if('rename'!=_0x20a3c2['action']&&'refresh'!=_0x20a3c2['action'])continue;const _0x4d9f32=zt(_0x20a3c2['position']['nodeAfter'],_0x4d13c5['model']),_0x59e5bc=_0x20a3c2['before'];'rename'==_0x20a3c2['action']&&_0x71c115['push']({'key':m,'newValue':_0x20a3c2['name'],'oldValue':_0x59e5bc['name'],'range':_0x4d9f32});for(const [_0x332ed3,_0x262a5b]of _0x59e5bc['attributes']){if(!this['_isRegisteredAttribute'](_0x332ed3))continue;const _0x71d8d3=_0x20a3c2['attributes']['get'](_0x332ed3);_0x262a5b!==_0x71d8d3&&_0x71c115['push']({'key':_0x332ed3,'newValue':_0x71d8d3,'oldValue':_0x262a5b,'range':_0x4d9f32});}for(const [_0x4a3917,_0xae94e3]of _0x20a3c2['attributes'])this['_isRegisteredAttribute'](_0x4a3917)&&(_0x59e5bc['attributes']['has'](_0x4a3917)||_0x71c115['push']({'key':_0x4a3917,'newValue':_0xae94e3,'oldValue':null,'range':_0x4d9f32}));}0x0!=_0x71c115['length']&&_0x4d13c5['model']['enqueueChange'](_0x206f18,_0x1d711f=>{const _0x2f9962=_0x47d328();for(const {range:_0x26dc7f,key:_0x3981f5,oldValue:_0x3e4719,newValue:_0xf5d46}of _0x71c115)this['markAttributeChange'](_0x26dc7f,_0x3981f5,_0x3e4719,_0xf5d46,{'groupId':_0x2f9962});this['_reduceExistingSuggestions'](_0x1d711f,_0x71c115);});},{'priority':'lowest'}),_0x4d13c5['model']['markers']['on']('update:suggestion',(_0x2d7e88,_0x312aad,_0x3380b0)=>{if(null==_0x3380b0){const {id:_0x2c8153}=this['_splitMarkerName'](_0x312aad['name']),_0x31b75=this['_suggestions']['get'](_0x2c8153);_0x31b75&&_0x31b75['addMarkerName'](_0x312aad['name']);}}),_0x4d13c5['model']['document']['on']('change:data',()=>{const _0x4be35c=Array['from'](_0x4d13c5['model']['document']['differ']['getChangedMarkers']())['filter'](_0x46317b=>'suggestion'===this['_splitMarkerName'](_0x46317b['name'])['group']);if(0x0===_0x4be35c['length'])return;_0x4be35c['sort']((_0x583e38,_0xfc8f95)=>{const _0x334999=_0x583e38['data']['oldRange'],_0x2b888e=_0xfc8f95['data']['oldRange'];return null===_0x334999&&null===_0x2b888e?0x0:null===_0x334999&&null!==_0x2b888e?-0x1:null!==_0x334999&&null===_0x2b888e?0x1:_0x334999['start']['isBefore'](_0x2b888e['start'])?-0x1:0x1;});const _0x2eb4bb=new Set(),_0x2ece52=new Set();for(const {name:_0x4b206f,data:_0x4478cd}of _0x4be35c){const {id:_0xed3d21}=this['_splitMarkerName'](_0x4b206f);if(null===_0x4478cd['oldRange']){const _0x50bc28=this['_handleNewSuggestionMarker'](_0x4b206f);_0x2ece52['add'](_0x50bc28);}else{const _0x7645a3=this['_suggestions']['get'](_0xed3d21);null!==_0x4478cd['newRange']||_0x7645a3['isInContent']?(_0x2eb4bb['add'](_0x7645a3['head']),_0x2ece52['add'](_0x7645a3)):this['_removeSuggestion'](_0x7645a3);}}_0x2ece52['size']>0x0&&this['_refreshSuggestionsChain'](_0x2ece52);for(const _0x414072 of _0x2eb4bb)this['fire']('suggestionChanged',_0x414072);}),_0x4d13c5['model']['on']('applyOperation',(_0x46e806,_0x1d36b1)=>{const _0x15f66b=_0x1d36b1[0x0];if(!this['_suggestions']['size'])return;if(!_0x15f66b['isDocumentOperation'])return;if(_0x15f66b['batch']['isUndo']||!_0x15f66b['batch']['isLocal'])return;let _0x4db723,_0x8bb147;switch(_0x15f66b['type']){case'insert':_0x4db723=_0x4d13c5['model']['createPositionAt'](_0x15f66b['position']),_0x8bb147=_0x4db723['getShiftedBy'](_0x15f66b['howMany']);break;case'split':_0x4db723=_0x4d13c5['model']['createPositionAt'](_0x15f66b['splitPosition']),_0x8bb147=_0x4d13c5['model']['createPositionAt'](_0x15f66b['moveTargetPosition']);break;case'move':_0x4db723=_0x4d13c5['model']['createPositionAt'](_0x15f66b['targetPosition']),_0x8bb147=_0x4db723['getShiftedBy'](_0x15f66b['howMany']);break;default:return;}const _0x1ae892=_0x4d13c5['model']['createRange'](_0x4db723,_0x8bb147);_0x4d13c5['model']['change'](()=>{for(const {suggestion:_0xd83c7f,meta:_0x31ae0e}of this['_findSuggestions'](_0x1ae892)){if(_0xd83c7f['isMultiRange'])continue;if('formatInline'==_0xd83c7f['type'])continue;const _0x13bd5f=this['_getAttributeKey'](_0xd83c7f);if(_0x13bd5f&&this['_isBlockAttribute'](_0x13bd5f)&&'split'!=_0x15f66b['type'])continue;const _0x2c325d=_0xd83c7f['data']&&_0xd83c7f['data']['multipleBlocks'];('formatBlock'!=_0xd83c7f['type']||'split'==_0x15f66b['type']&&!_0x2c325d)&&(_0x31ae0e['containsRangeInObject']||'insertion'==_0xd83c7f['type']&&_0x31ae0e['isOwn']||_0xd83c7f['getFirstRange']()['containsRange'](_0x1ae892)&&this['_breakSuggestionMarker'](_0xd83c7f,_0x4db723,_0x8bb147));}});},{'priority':'lowest'}),_0x4d13c5['model']['on']('deleteContent',(_0x1e1247,_0x108924)=>{const _0x40a9df=_0x108924[0x0],_0x26903f=_0x108924[0x1];if(_0x26903f&&_0x26903f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x40a9df['isCollapsed'])return;const _0x36d8f9=_0x4d13c5['model']['schema'],{start:_0x30b523,end:_0x214240}=_0x40a9df['getFirstRange'](),_0x1f6781=_0x30b523['nodeAfter']&&_0x36d8f9['isLimit'](_0x30b523['nodeAfter'])?null:_0x36d8f9['getNearestSelectionRange'](_0x30b523,'forward'),_0x2069b7=_0x214240['nodeBefore']&&_0x36d8f9['isLimit'](_0x214240['nodeBefore'])?null:_0x36d8f9['getNearestSelectionRange'](_0x214240,'backward'),_0x1f92b6=_0x4d13c5['model']['createRange'](_0x1f6781?_0x1f6781['start']:_0x30b523,_0x2069b7?_0x2069b7['end']:_0x214240);_0x4d13c5['model']['change'](_0x39f25b=>{this['markDeletion'](_0x1f92b6);const _0x123b38=_0x4d13c5['model']['schema']['getNearestSelectionRange'](_0x1f92b6['start']);_0x40a9df['is']('documentSelection')?_0x39f25b['setSelection'](_0x123b38):_0x40a9df['setTo'](_0x123b38);}),_0x1e1247['stop']();},{'priority':_0x4347f3['normal']+0xa}),_0x4d13c5['model']['on']('insertContent',(_0x4ee378,_0x45ffd1)=>{const _0x1c1b0d=_0x45ffd1[_0x45ffd1['length']-0x1];_0x1c1b0d&&_0x1c1b0d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4d13c5['model']['change'](()=>{let _0x32eb4d=_0x4d13c5['model']['insertContent'](_0x45ffd1[0x0],_0x45ffd1[0x1],_0x45ffd1[0x2],{'forceDefaultExecution':!0x0});if(!_0x32eb4d)return;_0x4ee378['return']=_0x32eb4d['clone']();const _0x119ff6=_0x32eb4d['end']['nodeBefore'],_0x1a88d8=_0x4d13c5['model']['schema'];_0x119ff6&&_0x1a88d8['isBlock'](_0x119ff6)&&!_0x1a88d8['isObject'](_0x119ff6)&&(_0x32eb4d=_0x4d13c5['model']['createRange'](_0x32eb4d['start'],_0x4d13c5['model']['createPositionAt'](_0x119ff6,'end'))),this['markInsertion'](_0x32eb4d);}),_0x4ee378['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x29c3ce=new D(_0x4d13c5,this['_suggestions']);_0x4d13c5['commands']['add']('acceptSuggestion',_0x29c3ce),this['enableCommand']('acceptSuggestion');const _0x36a4d0=new $(_0x4d13c5,this['_suggestions']);_0x4d13c5['commands']['add']('discardSuggestion',_0x36a4d0),this['enableCommand']('discardSuggestion'),_0x4d13c5['commands']['add']('acceptAllSuggestions',new M(_0x4d13c5,_0x29c3ce,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4d13c5['commands']['add']('discardAllSuggestions',new M(_0x4d13c5,_0x36a4d0,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4d13c5['commands']['add']('acceptSelectedSuggestions',new B(_0x4d13c5,_0x29c3ce,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4d13c5['commands']['add']('discardSelectedSuggestions',new B(_0x4d13c5,_0x36a4d0,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x44886f=_0x4d13c5['plugins']['get']('CommentsRepository');this['listenTo'](_0x44886f,'addComment',(_0x555295,{threadId:_0x27ca8d})=>{const _0x1185f5=this['_suggestions']['get'](_0x27ca8d);_0x1185f5&&_0x1185f5['commentThread']&&0x1===_0x1185f5['commentThread']['length']&&this['_updateSuggestionData'](_0x27ca8d,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x44886f,'removeComment',(_0x7ebf29,{threadId:_0x495798})=>{const _0x375d8e=this['_suggestions']['get'](_0x495798);_0x375d8e&&_0x375d8e['commentThread']&&!_0x375d8e['commentThread']['length']&&this['_updateSuggestionData'](_0x495798,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x36a2d1){const _0x478d91=_0x5e03e9([0x6b,0x59,0x67,0x6d,0x48,0x34,0x50,0x7a,0x70,0x71,0x52,0x5a,0x51,0x39,0x64,0x69,0x6c,0x38,0x36,0x45,0x4f,0x30,0x57,0x79,0x4e,0x6a,0x41,0x53,0x37,0x61,0x4b,0x68,0x55,0x74,0x33,0x49,0x77,0x4a,0x58,0x73,0x6e,0x72,0x42,0x78,0x75,0x4d,0x62,0x35,0x65,0x4c,0x31,0x44,0x76,0x46,0x54,0x47,0x6f,0x32,0x56,0x66,0x43,0x63]),_0x2de71d=0x2595b1a6,_0x448ac3=0x2592c1b6^_0x2de71d,_0x1fa9c9=window[_0x5e03e9([0x44,0x61,0x74,0x65])][_0x5e03e9([0x6e,0x6f,0x77])](),_0x32479b=_0x36a2d1[_0x5e03e9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xc46ac0=new window[(_0x5e03e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29d437=>{_0x32479b[_0x5e03e9([0x6f,0x6e,0x63,0x65])](_0x5e03e9([0x72,0x65,0x61,0x64,0x79]),_0x29d437);}),_0x3b0b47={[_0x5e03e9([0x6b,0x74,0x79])]:_0x5e03e9([0x45,0x43]),[_0x5e03e9([0x75,0x73,0x65])]:_0x5e03e9([0x73,0x69,0x67]),[_0x5e03e9([0x63,0x72,0x76])]:_0x5e03e9([0x50,0x2d,0x32,0x35,0x36]),[_0x5e03e9([0x78])]:_0x5e03e9([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]),[_0x5e03e9([0x79])]:_0x5e03e9([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]),[_0x5e03e9([0x61,0x6c,0x67])]:_0x5e03e9([0x45,0x53,0x32,0x35,0x36])},_0x59ac1e=_0x32479b[_0x5e03e9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5e03e9([0x67,0x65,0x74])](_0x5e03e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3dfd21(){let _0x490b6b,_0x1ff0d0=null,_0x2b7522=null;try{if(_0x59ac1e==_0x5e03e9([0x47,0x50,0x4c]))return _0x5e03e9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x490b6b=_0x44ec5d(),!_0x490b6b)return _0x5e03e9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x490b6b[_0x5e03e9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2b7522=_0x2d7893(_0x490b6b[_0x5e03e9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x490b6b[_0x5e03e9([0x6a,0x74,0x69])])),await _0x31ddbe()?_0x44e57d()?_0x246618()?_0x5e03e9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2a2e9e()?(_0x490b6b[_0x5e03e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e03e9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1ff0d0=_0x12d618(_0x5e03e9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x490b6b[_0x5e03e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e03e9([0x74,0x72,0x69,0x61,0x6c])&&(_0x1ff0d0=_0x12d618(_0x5e03e9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x896256()):_0x5e03e9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5e03e9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5e03e9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5e03e9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x246618(){const _0x8c1ff6=[_0x5e03e9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5e03e9([0x74,0x72,0x69,0x61,0x6c])][_0x5e03e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x490b6b[_0x5e03e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1fa9c9/0x3e8:0xe10*_0x448ac3;return _0x490b6b[_0x5e03e9([0x65,0x78,0x70])]<_0x8c1ff6;}function _0x44e57d(){const _0x41467d=_0x490b6b[_0x5e03e9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x41467d)return!0x1;if(_0x41467d[_0x5e03e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e03e9([0x2a])))return!0x0;if(_0x41467d[_0x5e03e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e03e9([0x54,0x43])))return!0x0;if(_0x41467d[_0x5e03e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e03e9([0x52,0x54,0x43]))){if(_0x2eccc1())return!0x0;if(_0x279dac()||_0x5daa25())return!0x0;}return!0x1;}function _0x2a2e9e(){const _0x5e6d27=_0x490b6b[_0x5e03e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5e6d27||0x0==_0x5e6d27[_0x5e03e9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4442ef}=new URL(window[_0x5e03e9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5e6d27[_0x5e03e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4442ef))return!0x0;const _0x23413b=_0x4442ef[_0x5e03e9([0x73,0x70,0x6c,0x69,0x74])](_0x5e03e9([0x2e]));return _0x5e6d27[_0x5e03e9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x489031=>_0x489031[_0x5e03e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e03e9([0x2a])))[_0x5e03e9([0x6d,0x61,0x70])](_0x3c2cd5=>_0x3c2cd5[_0x5e03e9([0x73,0x70,0x6c,0x69,0x74])](_0x5e03e9([0x2e])))[_0x5e03e9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x20dc9a=>_0x20dc9a[_0x5e03e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x23413b[_0x5e03e9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5e03e9([0x6d,0x61,0x70])](_0x51dcfa=>Array(_0x23413b[_0x5e03e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x51dcfa[_0x5e03e9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5e03e9([0x66,0x69,0x6c,0x6c])](_0x51dcfa[0x0]===_0x5e03e9([0x2a])?_0x5e03e9([0x2a]):'')[_0x5e03e9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x51dcfa))[_0x5e03e9([0x73,0x6f,0x6d,0x65])](_0x5483b3=>_0x23413b[_0x5e03e9([0x65,0x76,0x65,0x72,0x79])]((_0x4f1ce5,_0x287bec)=>_0x5483b3[_0x287bec]===_0x4f1ce5||_0x5483b3[_0x287bec]===_0x5e03e9([0x2a])));}function _0x896256(){return _0x1ff0d0&&_0x2b7522?new window[(_0x5e03e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a8f28,_0x5d7ef8)=>{_0x1ff0d0[_0x5e03e9([0x74,0x68,0x65,0x6e])](_0x5a8f28,_0x5d7ef8),_0x2b7522[_0x5e03e9([0x74,0x68,0x65,0x6e])](_0x4adc28=>{_0x4adc28!=_0x5e03e9([0x56,0x61,0x6c,0x69,0x64])&&_0x5a8f28(_0x4adc28);},_0x5d7ef8);}):_0x1ff0d0||_0x2b7522||_0x5e03e9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2d7893(_0x187dbf,_0x54a3cd){return new window[(_0x5e03e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46faa1=>{if(_0x35fcca())return _0x46faa1(_0x5e03e9([0x56,0x61,0x6c,0x69,0x64]));_0x5892c2(),_0x32479b[_0x5e03e9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5e03e9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x557f1c=!0x1;const _0x4141b9=_0x47d328();function _0x14076a(_0x58678f){return!!_0x58678f&&(typeof _0x58678f===_0x5e03e9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x58678f===_0x5e03e9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x58678f[_0x5e03e9([0x74,0x68,0x65,0x6e])]===_0x5e03e9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x58678f[_0x5e03e9([0x63,0x61,0x74,0x63,0x68])]===_0x5e03e9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2e9000(_0x494158){_0x4e5c99(_0x494158)[_0x5e03e9([0x74,0x68,0x65,0x6e])](_0x441371=>{if(!_0x441371||_0x441371[_0x5e03e9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5e03e9([0x6f,0x6b]))return _0x5e03e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x54e827(_0x5f0440(_0x4141b9+_0x54a3cd))!=_0x441371[_0x5e03e9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5e03e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5e03e9([0x56,0x61,0x6c,0x69,0x64]);})[_0x5e03e9([0x74,0x68,0x65,0x6e])](_0x8630ba=>(_0x1a71b6(),_0x8630ba),()=>{const _0x4f2dae=_0x33f6c1();return null==_0x4f2dae?(_0x1a71b6(),_0x5e03e9([0x56,0x61,0x6c,0x69,0x64])):_0x5e03e9(_0x1fa9c9-_0x4f2dae>(0x19935a6^_0x2de71d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5e03e9([0x74,0x68,0x65,0x6e])](_0x46faa1)[_0x5e03e9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x46faa1(_0x5e03e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x32d0da=0x25a35f26^_0x2de71d;function _0x1a71b6(){const _0x190889=_0x5e03e9([0x6c,0x6c,0x63,0x74,0x2d])+_0x54e827(_0x5f0440(_0x187dbf)),_0x4f3703=_0x56dae6(_0x54e827(window[_0x5e03e9([0x4d,0x61,0x74,0x68])][_0x5e03e9([0x63,0x65,0x69,0x6c])](_0x1fa9c9/_0x32d0da)));window[_0x5e03e9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e03e9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x190889,_0x4f3703);}function _0x33f6c1(){const _0x1a2918=_0x5e03e9([0x6c,0x6c,0x63,0x74,0x2d])+_0x54e827(_0x5f0440(_0x187dbf)),_0x565078=window[_0x5e03e9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e03e9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a2918);return _0x565078?window[_0x5e03e9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56dae6(_0x565078),0x10)*_0x32d0da:null;}function _0x4e5c99(_0x49ad3d){return new window[(_0x5e03e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x408d28,_0x37ee30)=>{_0x49ad3d[_0x5e03e9([0x74,0x68,0x65,0x6e])](_0x408d28,_0x37ee30),window[_0x5e03e9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x37ee30,0x25946566^_0x2de71d);});}}_0x32479b[_0x5e03e9([0x6f,0x6e])](_0x5e03e9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2e66ff,_0x31bae3)=>{if(_0x31bae3[0x0]!=_0x187dbf)return _0x46faa1(_0x5e03e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x31bae3[0x1]={..._0x31bae3[0x1],[_0x5e03e9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4141b9};},{[_0x5e03e9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e03e9([0x68,0x69,0x67,0x68])}),_0x32479b[_0x5e03e9([0x6f,0x6e])](_0x5e03e9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4a8842=>{_0x14076a(_0x4a8842[_0x5e03e9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x557f1c=!0x0,_0x2e9000(_0x4a8842[_0x5e03e9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5e03e9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e03e9([0x6c,0x6f,0x77])}),_0xc46ac0[_0x5e03e9([0x74,0x68,0x65,0x6e])](()=>{_0x557f1c||_0x46faa1(_0x5e03e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x35fcca(){return _0x32479b[_0x5e03e9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e03e9([0x76,0x69,0x65,0x77])][_0x5e03e9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5e03e9([0x61,0x75,0x74,0x6f]);}function _0x5892c2(){_0x32479b[_0x5e03e9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e03e9([0x76,0x69,0x65,0x77])][_0x5e03e9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5e03e9([0x61,0x75,0x74,0x6f]);}}function _0x12d618(_0x4e1cc5){const _0x31717e=[new window[(_0x5e03e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23a31f=>setTimeout(_0x23a31f,0x259c8f6a^_0x2de71d)),_0xc46ac0[_0x5e03e9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5e03e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d1783=>{let _0x37068e=0x0;_0x32479b[_0x5e03e9([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e03e9([0x6f,0x6e])](_0x5e03e9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4d4867,_0x5eb3d0)=>{_0x5eb3d0[0x0][_0x5e03e9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x37068e++,_0x37068e==(0x2595b05e^_0x2de71d)&&(_0x2d1783(),_0x4d4867[_0x5e03e9([0x6f,0x66,0x66])]());});}))];return window[_0x5e03e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5e03e9([0x72,0x61,0x63,0x65])](_0x31717e)[_0x5e03e9([0x74,0x68,0x65,0x6e])](()=>_0x4e1cc5);}async function _0x389d3e(){await _0xc46ac0,_0x32479b[_0x5e03e9([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e03e9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x805ba8,_0x32479b[_0x5e03e9([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e03e9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x805ba8,_0x32479b[_0x5e03e9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5e03e9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2eccc1(){return _0x19bb12(_0x5e03e9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1155cc(_0x5e03e9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5e03e9([0x73,0x74,0x61,0x74,0x65])]==_0x5e03e9([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x279dac(){return _0x19bb12(_0x5e03e9([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 _0x5daa25(){return _0x19bb12(_0x5e03e9([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1923e3(_0x2ebb8e){const _0x2609cc=_0x309799();_0x32479b[_0x2609cc]=_0x5e03e9([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2ebb8e,_0x2ebb8e!=_0x5e03e9([0x56,0x61,0x6c,0x69,0x64])&&_0x389d3e();}function _0x309799(){const _0x26f5b0=window[_0x5e03e9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5e03e9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5e03e9([0x6e,0x6f,0x77])]())[_0x5e03e9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5e03e9([0x2e]),'');let _0x3baac0=_0x5e03e9([0x6b]);for(let _0x321250=0x0;_0x321250<_0x26f5b0[_0x5e03e9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x321250+=0x2){let _0x5f23e0=window[_0x5e03e9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26f5b0[_0x5e03e9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x321250,_0x321250+0x2));_0x5f23e0>=_0x478d91[_0x5e03e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5f23e0-=_0x478d91[_0x5e03e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3baac0+=_0x478d91[_0x5f23e0];}return _0x3baac0;}function _0x44ec5d(){const _0x3dc5d1=_0x59ac1e[_0x5e03e9([0x73,0x70,0x6c,0x69,0x74])](_0x5e03e9([0x2e]));if(0x3!=_0x3dc5d1[_0x5e03e9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x500edf(_0x3dc5d1[0x1]);function _0x500edf(_0xa92402){const _0x296ec5=_0x441b8a(_0xa92402);return _0x296ec5&&_0x417562()?_0x296ec5:null;function _0x417562(){const _0x17e3ab=_0x296ec5[_0x5e03e9([0x6a,0x74,0x69])],_0x4ccc75=window[_0x5e03e9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17e3ab[_0x5e03e9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17e3ab[_0x5e03e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1e3741={..._0x296ec5,[_0x5e03e9([0x6a,0x74,0x69])]:_0x17e3ab[_0x5e03e9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x17e3ab[_0x5e03e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1e3741[_0x5e03e9([0x76,0x63])],_0x5f0440(_0x1e3741)==_0x4ccc75;}}}async function _0x31ddbe(){let _0xdb5e61=!0x0;try{const _0x2fe259=_0x59ac1e[_0x5e03e9([0x73,0x70,0x6c,0x69,0x74])](_0x5e03e9([0x2e])),[_0x474b4c,_0x3db885,_0x4df98a]=_0x2fe259;return _0x47448a(_0x474b4c),await _0x216e77(_0x474b4c,_0x3db885,_0x4df98a),_0xdb5e61;}catch{return!0x1;}function _0x47448a(_0x42f985){const _0x458148=_0x441b8a(_0x42f985);_0x458148&&_0x458148[_0x5e03e9([0x61,0x6c,0x67])]==_0x5e03e9([0x45,0x53,0x32,0x35,0x36])||(_0xdb5e61=!0x1);}async function _0x216e77(_0x27b528,_0x1c9499,_0x5773be){const _0x505533=window[_0x5e03e9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5e03e9([0x66,0x72,0x6f,0x6d])](_0x2e4bdd(_0x5773be),_0x558955=>_0x558955[_0x5e03e9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x290f66=new window[(_0x5e03e9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5e03e9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x27b528+_0x5e03e9([0x2e])+_0x1c9499),_0x5e13e5=window[_0x5e03e9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5e03e9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5e13e5)return;const _0x2b9043=await _0x5e13e5[_0x5e03e9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5e03e9([0x6a,0x77,0x6b]),_0x3b0b47,{[_0x5e03e9([0x6e,0x61,0x6d,0x65])]:_0x5e03e9([0x45,0x43,0x44,0x53,0x41]),[_0x5e03e9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5e03e9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5e03e9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5e13e5[_0x5e03e9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5e03e9([0x6e,0x61,0x6d,0x65])]:_0x5e03e9([0x45,0x43,0x44,0x53,0x41]),[_0x5e03e9([0x68,0x61,0x73,0x68])]:{[_0x5e03e9([0x6e,0x61,0x6d,0x65])]:_0x5e03e9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2b9043,_0x505533,_0x290f66)||(_0xdb5e61=!0x1);}}function _0x441b8a(_0x2a9cce){return _0x2a9cce[_0x5e03e9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5e03e9([0x65,0x79]))?JSON[_0x5e03e9([0x70,0x61,0x72,0x73,0x65])](_0x2e4bdd(_0x2a9cce)):null;}function _0x2e4bdd(_0x3a9c60){return window[_0x5e03e9([0x61,0x74,0x6f,0x62])](_0x3a9c60[_0x5e03e9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5e03e9([0x2b]))[_0x5e03e9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5e03e9([0x2f])));}function _0x5f0440(_0xe4a4fb){let _0x3d01c0=0x1505;function _0x234986(_0x4ae11b){for(let _0x3555d6=0x0;_0x3555d6<_0x4ae11b[_0x5e03e9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3555d6++){const _0x3b88e3=_0x4ae11b[_0x5e03e9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3555d6);_0x3d01c0=(_0x3d01c0<<0x5)+_0x3d01c0+_0x3b88e3,_0x3d01c0&=_0x3d01c0;}}function _0x3d62a6(_0x475f6b){Array[_0x5e03e9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x475f6b)?_0x475f6b[_0x5e03e9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3d62a6):_0x475f6b&&typeof _0x475f6b==_0x5e03e9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5e03e9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x475f6b)[_0x5e03e9([0x73,0x6f,0x72,0x74])]()[_0x5e03e9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4c8475,_0x4fcbd3])=>{_0x234986(_0x4c8475),_0x3d62a6(_0x4fcbd3);}):_0x234986(window[_0x5e03e9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x475f6b));}return _0x3d62a6(_0xe4a4fb),_0x3d01c0>>>0x0;}function _0x54e827(_0xbce7b4){return _0xbce7b4[_0x5e03e9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5e03e9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5e03e9([0x30]));}function _0x56dae6(_0x4c1a36){return _0x4c1a36[_0x5e03e9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5e03e9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5e03e9([0x6a,0x6f,0x69,0x6e])]('');}function _0x19bb12(_0x4b75a9){return _0x32479b[_0x5e03e9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5e03e9([0x68,0x61,0x73])](_0x4b75a9);}function _0x1155cc(_0x23db1){return _0x32479b[_0x5e03e9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5e03e9([0x67,0x65,0x74])](_0x23db1);}function _0x805ba8(){}function _0x5e03e9(_0x302483){return _0x302483['map'](_0xe2219d=>String['fromCharCode'](_0xe2219d))['join']('');}_0x1923e3(await _0x3dfd21());}(this);}set['adapter'](_0x2edcb8){if(this['_adapter'])throw new _0x43dce0('track-changes-adapter-already-set',this);this['_adapter']=_0x2edcb8;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x53200e=!0x1,toJSON:_0x45e4ae=!0x1}={}){const _0x144b35=[];for(const _0x2b4a60 of this['_suggestions']['values']())_0x53200e&&!_0x2b4a60['isInContent']||_0x144b35['push'](_0x2b4a60);return _0x45e4ae?_0x144b35['map'](_0x373d25=>_0x373d25['toJSON']()):_0x144b35;}['getSuggestion'](_0x4b3102){const _0x101f4b=this['_suggestions']['get'](_0x4b3102);if(!_0x101f4b)throw new _0x43dce0('track-changes-suggestion-not-found',this);return _0x101f4b;}['hasSuggestion'](_0x278a68){return this['_suggestions']['has'](_0x278a68);}['addSuggestionData'](_0x9e2800){const {authorId:_0x34a0d8,id:_0x1ddc71,originalSuggestionId:_0x519f34,attributes:_0x307cf4}=_0x9e2800,[_0x1b5641,_0x1b4b5b]=_0x9e2800['type']['split'](':'),_0xd00a01=this['_suggestions']['get'](_0x1ddc71)||this['_createSuggestion'](_0x1b5641,_0x1b4b5b,_0x1ddc71,_0x34a0d8,_0x307cf4,_0x519f34);if(this['_addThreadToSuggestion'](_0xd00a01),this['_checkSuggestionCorrectness'](_0xd00a01,_0x1b5641,_0x1b4b5b||null,_0x34a0d8),_0xd00a01['createdAt']=_0x9e2800['createdAt'],_0xd00a01['_isDataLoaded']=!0x0,_0x307cf4&&_0x307cf4['@external']){const _0x275777=_0x307cf4['@external'],_0x28a1cc=this['_getExternalAuthor'](_0x275777['authorName']);_0xd00a01['authoredAt']=_0x275777['createdAt'],_0xd00a01['author']=_0x28a1cc,_0xd00a01['isExternal']=!0x0;}else _0xd00a01['authoredAt']=_0x9e2800['createdAt'];switch(_0x9e2800['data']&&(_0xd00a01['data']=_0x9e2800['data']),_0x9e2800['attributes']&&(_0xd00a01['attributes']=_0x9e2800['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xd00a01['_saved']=!0x0),this['_suggestionState']['get'](_0xd00a01)){case'notReady':this['_suggestionState']['set'](_0xd00a01,'dataReady');break;case'markerReady':_0xd00a01['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xd00a01])),this['_refreshSuggestionsChain'](new Set([_0xd00a01])),this['_suggestionState']['set'](_0xd00a01,'ready'),this['fire']('suggestionLoaded',_0xd00a01)):this['_suggestionState']['set'](_0xd00a01,'removed');}return _0xd00a01;}['acceptSuggestion'](_0x45542b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x626bfa of _0x45542b['getAllAdjacentSuggestions']())_0x626bfa['accept']();});});}['discardSuggestion'](_0x15fcb1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1dcb65 of _0x15fcb1['getAllAdjacentSuggestions']())_0x1dcb65['discard']();});});}['enableCommand'](_0x2af59a,_0xcb856a){const _0x2b1862=this['editor']['commands']['get'](_0x2af59a);if(!_0x2b1862)throw new _0x43dce0('track-changes-command-not-found',this,{'commandName':_0x2af59a});if(this['_enabledCommands']['has'](_0x2b1862))throw new _0x43dce0('track-changes-enable-command-twice',this,{'commandName':_0x2af59a});this['_enabledCommands']['add'](_0x2b1862),_0xcb856a&&_0x2b1862['on']('execute',(_0xe20541,_0x53b38d)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x53b38d['length']>0x0&&_0x53b38d[_0x53b38d['length']-0x1]&&_0x53b38d[_0x53b38d['length']-0x1]['forceDefaultExecution']?_0x53b38d['pop']():(_0xe20541['return']=_0xcb856a((..._0x90b099)=>_0x2b1862['execute'](..._0x90b099,{'forceDefaultExecution':!0x0}),..._0x53b38d),_0xe20541['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x298d8f){let _0x3e420c,_0x1fc253;const _0x1f8909=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3e420c=_0x298d8f();}catch(_0x5cb5f1){_0x1fc253=_0x5cb5f1;}return _0x1f8909||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1fc253&&_0x43dce0['rethrowUnexpectedError'](_0x1fc253,this),_0x3e420c;}['markInsertion'](_0x574a5a,_0xa73d98=null,_0x14bf70={}){if(_0x574a5a['isCollapsed'])return null;const _0x1795e2=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x14bf70['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x46e64a,meta:_0x1c4005}of this['_findSuggestions'](_0x574a5a,'insertion'))if(_0x1c4005['isOwn']){if(!_0x1c4005['isNextTo']){if(_0x1c4005['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x46e64a,_0x14bf70))continue;return _0x46e64a;}if(Xt(_0x46e64a,_0x14bf70))return _0x46e64a;this['_breakSuggestionMarker'](_0x46e64a,_0x574a5a['start'],_0x574a5a['end']);break;}if(_0xa73d98==_0x46e64a['subType']&&Xt(_0x46e64a,_0x14bf70)){const _0x226540=_0x46e64a['getFirstRange']();return _0x226540['start']['isEqual'](_0x574a5a['end'])?this['_setSuggestionRange'](_0x46e64a,this['_model']['createRange'](_0x574a5a['start'],_0x226540['end'])):this['_setSuggestionRange'](_0x46e64a,this['_model']['createRange'](_0x226540['start'],_0x574a5a['end'])),_0x46e64a;}}const _0x2ed264=_0x47d328(),_0x177e47=_0x1795e2['id'],_0x3dbc5f=_0xa73d98?'insertion:'+_0xa73d98:'insertion',_0x456683=this['_setSuggestionData']({'id':_0x2ed264,'type':_0x3dbc5f,'createdAt':new Date(),'authorId':_0x177e47,'attributes':_0x14bf70});return this['_addSuggestionMarker'](_0x3dbc5f,_0x2ed264,_0x177e47,_0x574a5a),_0x456683;}['markMultiRangeInsertion'](_0x2c81f1,_0x326177='multi',_0x475321={}){const _0x1c5c38=this['editor']['plugins']['get']('Users')['me'],_0x14e634=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x326177,'join');this['_trackingSessionId']&&(_0x475321['trackingSessionId']=this['_trackingSessionId']);for(const _0x1a396d of this['getSuggestions']())if(_0x1a396d['author']['id']==_0x1c5c38['id']&&'insertion'==_0x1a396d['type']&&_0x1a396d['subType']==_0x326177&&Xt(_0x1a396d,_0x475321)&&(_0x14e634(_0x1a396d['getRanges'](),_0x2c81f1)||_0x14e634(_0x2c81f1,_0x1a396d['getRanges']()))){for(const _0x4ceb6f of _0x2c81f1)_0x1a396d['addRange'](_0x4ceb6f);return _0x1a396d;}for(const {suggestion:_0xfef27c,meta:_0x363b32}of this['_findSuggestions'](_0x2c81f1,'insertion')){if(!_0x363b32['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x363b32['containsRangeInObject'])continue;if(!Xt(_0xfef27c,_0x475321))continue;let _0x422618=!0x0;for(const _0x579ff3 of _0xfef27c['getRanges']())for(const _0x2107b0 of _0x2c81f1)if(!_0x579ff3['containsRange'](_0x2107b0)){_0x422618=!0x1;break;}if(_0x422618)return _0xfef27c;}const _0x46e8d5=_0x47d328(),_0x1791a8=_0x1c5c38['id'],_0x2562e5='insertion:'+_0x326177,_0x9833ff=this['_setSuggestionData']({'id':_0x46e8d5,'type':_0x2562e5,'createdAt':new Date(),'authorId':_0x1791a8,'attributes':_0x475321});for(const _0x1ecb2d of _0x2c81f1)this['_addSuggestionMarker'](_0x2562e5,_0x46e8d5,_0x1791a8,_0x1ecb2d,T['getMultiRangeId']());return _0x9833ff;}['markInlineFormat'](_0x41903f,_0x47ae06,_0xe03751=null,_0x2c1a79={}){if(_0xe03751=_0xe03751||Lt(_0x47ae06),_0x41903f['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x2c1a79['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2c81e2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xe03751,'accept');return this['forceDefaultExecution'](()=>_0x2c81e2([_0x41903f],_0x47ae06,_0x2c1a79)),null;}const _0xeed5f7=this['editor']['plugins']['get']('Users')['me'],_0x5a9f1c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3b1057,meta:_0x1f77ab}of this['_findSuggestions'](_0x41903f,'insertion'))_0x1f77ab['isOwn']&&!_0x1f77ab['isInsideObject']&&_0x5a9f1c['push'](..._0x3b1057['getRanges']());}const _0x23ab89=function(_0xf62bec,_0x35089e){const _0x5a42a6=[];for(const _0x57da96 of _0x35089e){const _0x26ba4a=_0xf62bec['getIntersection'](_0x57da96);_0x26ba4a&&_0x5a42a6['push'](_0x26ba4a);}return _0x5a42a6;}(_0x41903f,_0x5a9f1c),_0x152d16=function(_0x3bef96,_0x18707e){const _0x211b47=[_0x3bef96];for(const _0x3701f8 of _0x18707e){let _0x3b22df=0x0;for(;_0x3b22df<_0x211b47['length'];){const _0x1cce05=_0x211b47[_0x3b22df]['getDifference'](_0x3701f8);_0x211b47['splice'](_0x3b22df,0x1,..._0x1cce05),_0x3b22df+=_0x1cce05['length'];}}return _0x211b47;}(_0x41903f,_0x5a9f1c);_0x23ab89['length']&&this['_model']['change'](()=>{for(const _0x2bd4c4 of _0x23ab89){const _0x34ffc2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xe03751,'accept');this['forceDefaultExecution'](()=>_0x34ffc2([_0x2bd4c4],_0x47ae06,_0x2c1a79));}});for(const _0x1e02ac of _0x152d16){let _0x3f0642=null,_0x26cef2=_0x1e02ac['start'],_0x244599=_0x1e02ac['end'];for(const {suggestion:_0x13de28,meta:_0x1629d6}of this['_findSuggestions'](_0x1e02ac,'formatInline')){if(!_0x1629d6['isOwn'])continue;if(_0x13de28['subType']!=_0xe03751)continue;if(!Xt(_0x13de28,_0x2c1a79))continue;const _0x4daa86=_0x13de28['getFirstRange']();if(_0x4daa86['containsRange'](_0x1e02ac,!0x0))return null;_0x26cef2=_0x26cef2['isBefore'](_0x4daa86['start'])?_0x26cef2:_0x4daa86['start'],_0x244599=_0x244599['isAfter'](_0x4daa86['end'])?_0x244599:_0x4daa86['end'],_0x3f0642?_0x4daa86['start']['isBefore'](_0x3f0642['getFirstRange']()['start'])?(_0x3f0642['removeMarkers'](),_0x3f0642=_0x13de28):_0x13de28['removeMarkers']():_0x3f0642=_0x13de28;}const _0xc94862=this['_model']['createRange'](_0x26cef2,_0x244599);if(_0x3f0642)this['_setSuggestionRange'](_0x3f0642,_0xc94862);else{const _0x3eda06=_0x47d328(),_0x39137c=_0xeed5f7['id'];this['_setSuggestionData']({'id':_0x3eda06,'type':'formatInline:'+_0xe03751,'data':_0x47ae06,'createdAt':new Date(),'authorId':_0x39137c,'attributes':_0x2c1a79}),this['_addSuggestionMarker']('formatInline:'+_0xe03751,_0x3eda06,_0x39137c,_0xc94862);}}return null;}['markBlockFormat'](_0x354a44,_0x187b07,_0xc230c2=[],_0x31c87e=null,_0x3f9af8={}){_0x187b07['formatGroupId']||(_0x187b07['formatGroupId']=_0x187b07['commandName']),_0x187b07['multipleBlocks']=_0x354a44['is']('range'),_0x31c87e=_0x31c87e||Lt(_0x187b07);const _0x211710=_0xc230c2['map'](_0x82e49d=>zt(_0x82e49d,this['_model'])),_0x43acc8=_0x354a44['is']('range')?_0x354a44:zt(_0x354a44,this['_model']);if(this['_trackingSessionId']&&(_0x3f9af8['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5e4672=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x31c87e,'accept');return this['forceDefaultExecution'](()=>_0x5e4672([_0x43acc8],_0x187b07,_0x3f9af8)),null;}_0x211710['push'](_0x43acc8);let _0x47f729=!0x0;for(const _0x1e2a2d of _0x211710)if(!this['_rangeIsInLocalUserInsertion'](_0x1e2a2d)){_0x47f729=!0x1;break;}if(_0x47f729&&'always'!==this['_trackFormatChanges']){const _0x2a7550=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x31c87e,'accept');return this['forceDefaultExecution'](()=>_0x2a7550([_0x43acc8],_0x187b07,_0x3f9af8)),null;}let _0x1d22b8=null,_0x57f442=_0x43acc8['start'],_0x2e4c50=_0x43acc8['end'];for(const {suggestion:_0x159a65,meta:_0x3a1233}of this['_findSuggestions'](_0x43acc8,'formatBlock')){if(!_0x3a1233['isOwn'])continue;if(_0x3a1233['isNextTo']||_0x3a1233['containsRangeInObject']||_0x3a1233['isInsideObject'])continue;if(_0x159a65['data']['formatGroupId']!=_0x187b07['formatGroupId'])continue;if(!Xt(_0x159a65,_0x3f9af8))continue;const _0x231f22=_0x159a65['getFirstRange']();if(_0x159a65['subType']==_0x31c87e){if(_0x231f22['containsRange'](_0x43acc8,!0x0))return null;_0x57f442=_0x57f442['isBefore'](_0x231f22['start'])?_0x57f442:_0x231f22['start'],_0x2e4c50=_0x2e4c50['isAfter'](_0x231f22['end'])?_0x2e4c50:_0x231f22['end'],_0x1d22b8?_0x231f22['start']['isBefore'](_0x1d22b8['getFirstRange']()['start'])?(_0x1d22b8['removeMarkers'](),_0x1d22b8=_0x159a65):_0x159a65['removeMarkers']():_0x1d22b8=_0x159a65;}else{const _0x514866=_0x43acc8['getIntersection'](_0x231f22);this['_cutOutSuggestionMarker'](_0x159a65,_0x514866);}}const _0x599950=this['editor']['plugins']['get']('Users')['me'],_0x1a5b75=_0x47d328(),_0x4c9887=_0x599950['id'];if(_0x1d22b8)return this['_setSuggestionRange'](_0x1d22b8,this['_model']['createRange'](_0x57f442,_0x2e4c50)),_0x1d22b8;{const _0x1f61aa=this['_setSuggestionData']({'id':_0x1a5b75,'type':'formatBlock:'+_0x31c87e,'data':_0x187b07,'createdAt':new Date(),'authorId':_0x4c9887,'attributes':_0x3f9af8});return this['_addSuggestionMarker']('formatBlock:'+_0x31c87e,_0x1a5b75,_0x4c9887,this['_model']['createRange'](_0x57f442,_0x2e4c50)),_0x1f61aa;}}['markMultiRangeBlockFormat'](_0x220962,_0x4516e9,_0x52ee53=[],_0x176dc8=null,_0x5af5b9={}){_0x4516e9['formatGroupId']||(_0x4516e9['formatGroupId']=_0x4516e9['commandName']);const _0x458a7b=_0x220962[0x0];_0x4516e9['multipleBlocks']=_0x458a7b['is']('range'),_0x176dc8=_0x176dc8||Lt(_0x4516e9);const _0x3147ed=_0x52ee53['map'](_0x55e53f=>zt(_0x55e53f,this['_model'])),_0x269f95=_0x458a7b['is']('range')?_0x220962:_0x220962['map'](_0x478f6d=>zt(_0x478f6d,this['_model']));if(this['_trackingSessionId']&&(_0x5af5b9['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5225be=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x176dc8,'accept');return this['forceDefaultExecution'](()=>_0x5225be(_0x269f95,_0x4516e9,_0x5af5b9)),null;}_0x3147ed['push'](..._0x269f95);let _0x4e837a=!0x0;for(const _0x35a136 of _0x3147ed)if(!this['_rangeIsInLocalUserInsertion'](_0x35a136)){_0x4e837a=!0x1;break;}if(_0x4e837a&&'always'!==this['_trackFormatChanges']){const _0xeee828=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x176dc8,'accept');return this['forceDefaultExecution'](()=>_0xeee828(_0x269f95,_0x4516e9,_0x5af5b9)),null;}const _0x1f0b78=this['editor']['plugins']['get']('Users')['me'];for(const _0x325b40 of this['getSuggestions']()){const _0x1c7d2f=_0x325b40['data'];if(_0x325b40['author']['id']!=_0x1f0b78['id'])continue;if('formatBlock'!=_0x325b40['type']||_0x1c7d2f['formatGroupId']!=_0x4516e9['formatGroupId'])continue;if(!Xt(_0x325b40,_0x5af5b9))continue;const _0x5e114d=_0x325b40['subType']==_0x176dc8;for(let _0x3f0dc1=0x0;_0x3f0dc1<_0x269f95['length'];_0x3f0dc1++){const _0x1a7863=_0x269f95[_0x3f0dc1];for(const _0x3654e7 of _0x325b40['getMarkers']()){const _0x58bbf4=_0x3654e7['getRange']();if(_0x1a7863['isEqual'](_0x58bbf4)){_0x5e114d?(_0x269f95['splice'](_0x3f0dc1,0x1),_0x3f0dc1--):_0x325b40['removeMarker'](_0x3654e7['name']);break;}}}}if(0x0==_0x269f95['length'])return null;const _0x325df0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x176dc8,'join');for(const _0x4c7499 of this['getSuggestions']()){const _0x1fb669=_0x4c7499['data'];if(_0x4c7499['author']['id']==_0x1f0b78['id']&&('formatBlock'==_0x4c7499['type']&&_0x1fb669['formatGroupId']==_0x4516e9['formatGroupId']&&_0x4c7499['subType']==_0x176dc8&&Xt(_0x4c7499,_0x5af5b9)&&(_0x325df0(_0x4c7499['getRanges'](),_0x269f95)||_0x325df0(_0x269f95,_0x4c7499['getRanges']())))){for(const _0x3424c3 of _0x269f95)_0x4c7499['addRange'](_0x3424c3);return _0x4c7499;}}const _0x2c80bc=_0x47d328(),_0x2ab920=_0x1f0b78['id'],_0xd2d950='formatBlock:'+_0x176dc8,_0x2baee2=this['_setSuggestionData']({'id':_0x2c80bc,'type':_0xd2d950,'data':_0x4516e9,'createdAt':new Date(),'authorId':_0x2ab920,'attributes':_0x5af5b9});for(const _0x386b60 of _0x269f95)this['_addSuggestionMarker'](_0xd2d950,_0x2c80bc,_0x2ab920,_0x386b60,T['getMultiRangeId']());return _0x2baee2;}['markDeletion'](_0x2101fb,_0x36bfea=null,_0x1d1335={}){if(_0x2101fb['isCollapsed'])return null;const _0x3ed039=this['editor']['plugins']['get']('Users')['me'],_0x1971f6=new _0x40d9f2(_0x2101fb['start'],_0x2101fb['end']);this['_trackingSessionId']&&(_0x1d1335['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1da794,meta:_0x13a374}of this['_findSuggestions'](_0x1971f6,'insertion'))if(_0x13a374['isOwn']&&!_0x13a374['isNextTo']){if(_0x1da794['isMultiRange']){const _0x430cbb=_0x1da794['getRanges']()['filter'](_0x1a5b62=>'$graveyard'!=_0x1a5b62['root']['rootName']);_0x430cbb['every'](_0x16a7da=>_0x1971f6['containsRange'](_0x16a7da,!0x0))&&_0x1da794['discard']();if(_0x430cbb['some'](_0x59f48b=>_0x59f48b['containsRange'](_0x1971f6,!0x0))){const _0x3d4c39=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x36bfea,'accept');return this['forceDefaultExecution'](()=>_0x3d4c39([_0x1971f6],null,_0x1d1335)),null;}}else{const _0x4c8925=_0x1971f6['getIntersection'](_0x1da794['getFirstRange']());null!==_0x4c8925&&_0x1da794['_onDiscard']([_0x4c8925],null,_0x1d1335);}}if(_0x1971f6['detach'](),_0x1971f6['isCollapsed']||'$graveyard'==_0x1971f6['root']['rootName'])return null;let _0x3474c9=null,_0x3933d9=_0x1971f6['start'],_0x2135b4=_0x1971f6['end'];const _0x12c766=this['_findSuggestions'](_0x1971f6,'deletion');for(const {suggestion:_0x4a645c,meta:_0x52c9b4}of _0x12c766){const _0x5c7ddb=this['_model']['createRange'](_0x3933d9,_0x2135b4);if(_0x52c9b4['isOwn']&&(this['_mergeNestedSuggestions']||!_0x52c9b4['containsRangeInObject']&&!_0x52c9b4['isInsideObject'])){if(_0x4a645c['isMultiRange']){if(!Xt(_0x4a645c,_0x1d1335))continue;let _0x26bc83=!0x0;for(const _0x4fe29d of _0x4a645c['getRanges']()){if(_0x4fe29d['containsRange'](_0x5c7ddb,!0x0))return _0x4a645c;_0x5c7ddb['containsRange'](_0x4fe29d)||(_0x26bc83=!0x1);}_0x26bc83&&_0x4a645c['discard']();}else{const _0x43c799=_0x4a645c['getFirstRange']();if(_0x43c799['containsRange'](_0x5c7ddb,!0x0))return _0x4a645c;if(!Xt(_0x4a645c,_0x1d1335)){_0x5c7ddb['containsRange'](_0x43c799)?_0x4a645c['removeMarkers']():_0x43c799['containsPosition'](_0x3933d9)?_0x3933d9=_0x43c799['end']:_0x43c799['containsPosition'](_0x2135b4)&&(_0x2135b4=_0x43c799['start']);continue;}_0x3933d9=_0x3933d9['isBefore'](_0x43c799['start'])?_0x3933d9:_0x43c799['start'],_0x2135b4=_0x2135b4['isAfter'](_0x43c799['end'])?_0x2135b4:_0x43c799['end'],_0x1d1335=Object['assign']({},_0x4a645c['attributes']),_0x3474c9?_0x43c799['start']['isBefore'](_0x3474c9['getFirstRange']()['start'])?(_0x3474c9['removeMarkers'](),_0x3474c9=_0x4a645c):_0x4a645c['removeMarkers']():_0x3474c9=_0x4a645c;}}}if(_0x3474c9)return this['_setSuggestionRange'](_0x3474c9,this['_model']['createRange'](_0x3933d9,_0x2135b4)),_0x3474c9;{const _0x552b58=_0x47d328(),_0x3e5118=this['_model']['createRange'](_0x3933d9,_0x2135b4),_0x55f715=_0x3ed039['id'],_0x3fd221=_0x36bfea?'deletion:'+_0x36bfea:'deletion',_0xe644d4=this['_setSuggestionData']({'id':_0x552b58,'type':_0x3fd221,'createdAt':new Date(),'authorId':_0x55f715,'attributes':_0x1d1335});return this['_addSuggestionMarker'](_0x3fd221,_0x552b58,_0x55f715,_0x3e5118),_0xe644d4;}}['markMultiRangeDeletion'](_0x46e9f6,_0x181d72='multi',_0x2c4be5={}){const _0x25fe0a=this['editor']['plugins']['get']('Users')['me'],_0x18f225=_0x46e9f6['map'](_0x4cc1ac=>new _0x40d9f2(_0x4cc1ac['start'],_0x4cc1ac['end'])),_0x4c377e=new Set();this['_trackingSessionId']&&(_0x2c4be5['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x466848,meta:_0x5b8d32}of this['_findSuggestions'](_0x18f225,'insertion'))_0x5b8d32['isOwn']&&!_0x5b8d32['isNextTo']&&_0x4c377e['add'](_0x466848);for(const _0x13a392 of _0x4c377e)if(_0x13a392['isMultiRange']){const _0x1552e5=_0x13a392['getRanges']();(!_0x13a392['attributes']||!_0x13a392['attributes']['skipNestingCheck'])&&(_0x1552e5['every'](_0x29b96e=>_0x18f225['some'](_0x5ac442=>_0x5ac442['containsRange'](_0x29b96e,!0x0)))&&_0x13a392['discard']());if(_0x18f225['every'](_0x36c419=>_0x1552e5['some'](_0x188ae1=>_0x188ae1['containsRange'](_0x36c419,!0x0)))){const _0x3c864c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x181d72,'accept');return this['forceDefaultExecution'](()=>_0x3c864c(_0x46e9f6,null,_0x2c4be5)),null;}}else{const _0x52f333=_0x13a392['getFirstRange']();_0x18f225['some'](_0x918b71=>_0x918b71['containsRange'](_0x52f333,!0x0))&&_0x13a392['discard']();if(_0x18f225['every'](_0x5e4d71=>_0x52f333['containsRange'](_0x5e4d71,!0x0))){const _0x36a68f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x181d72,'accept');return this['forceDefaultExecution'](()=>_0x36a68f(_0x18f225,null,_0x2c4be5)),null;}}const _0x369ade=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x181d72,'join');let _0x5ecd1b=null;for(const _0x3030d7 of this['getSuggestions']())if(_0x3030d7['author']['id']==_0x25fe0a['id']&&_0x3030d7['isInContent']&&'deletion'==_0x3030d7['type']&&_0x3030d7['subType']==_0x181d72&&Xt(_0x3030d7,_0x2c4be5)&&(_0x369ade(_0x3030d7['getRanges'](),_0x18f225)||_0x369ade(_0x18f225,_0x3030d7['getRanges']()))){if(_0x5ecd1b){if(_0x3030d7['commentThread']&&_0x3030d7['commentThread']['length'])continue;for(const _0x49b43f of _0x3030d7['getRanges']())_0x5ecd1b['isIntersectingWithRange'](_0x49b43f)||_0x5ecd1b['addRange'](_0x49b43f);_0x3030d7['removeMarkers']();}else{_0x5ecd1b=_0x3030d7;for(const _0x6c84d4 of _0x18f225)_0x3030d7['isIntersectingWithRange'](_0x6c84d4)||_0x3030d7['addRange'](_0x6c84d4);}}if(_0x5ecd1b)return _0x5ecd1b;_0x4c377e['clear']();for(const {suggestion:_0x4a8c6c,meta:_0x51a7e5}of this['_findSuggestions'](_0x18f225,'deletion'))_0x51a7e5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x51a7e5['containsRangeInObject']&&!_0x51a7e5['isInsideObject'])&&Xt(_0x4a8c6c,_0x2c4be5)&&_0x4c377e['add'](_0x4a8c6c);for(const _0x1e9ea2 of _0x4c377e){const _0x5685fe=_0x1e9ea2['getRanges']();if(!_0x2c4be5||!_0x2c4be5['skipNestingCheck']){if(_0x18f225['every'](_0x4d06b4=>_0x5685fe['some'](_0x169e6a=>_0x169e6a['containsRange'](_0x4d06b4,!0x0))))return _0x1e9ea2;}(!_0x1e9ea2['attributes']||!_0x1e9ea2['attributes']['skipNestingCheck'])&&(_0x5685fe['every'](_0x37f78e=>_0x18f225['some'](_0x2374ec=>_0x2374ec['containsRange'](_0x37f78e,!0x0)))&&_0x1e9ea2['discard']());}const _0x87e05d=_0x47d328(),_0x2bd244=_0x25fe0a['id'],_0x1cf114='deletion:'+_0x181d72,_0x381f1a=this['_setSuggestionData']({'id':_0x87e05d,'type':_0x1cf114,'createdAt':new Date(),'authorId':_0x2bd244,'attributes':_0x2c4be5});for(const _0x3ec287 of _0x18f225)_0x3ec287['detach'](),_0x3ec287['isCollapsed']||'$graveyard'==_0x3ec287['root']['rootName']||this['_addSuggestionMarker'](_0x1cf114,_0x87e05d,_0x2bd244,_0x3ec287,T['getMultiRangeId']());return _0x381f1a;}['markAttributeChange'](_0x2040b7,_0x2216c9,_0x2a5b3c,_0x19ed9b,_0x33af6e){if(_0x2040b7['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3fa848=this['editor']['plugins']['get']('Users')['me']['id'],_0x2fb11c=Array['from'](this['_suggestions']['values']())['filter'](_0x8025aa=>'attribute'==_0x8025aa['type']&&_0x8025aa['data']['key']==_0x2216c9&&_0x8025aa['isIntersectingWithRange'](_0x2040b7));if(this['_trackingSessionId']&&(_0x33af6e['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x50b0d5=this['_findSuggestions'](_0x2040b7,'insertion')['filter'](({meta:_0x5446b2})=>_0x5446b2['isOwn']&&!_0x5446b2['isInsideObject']&&!_0x5446b2['isNextTo'])['map'](({suggestion:_0x4c2153})=>_0x4c2153);_0x2fb11c['unshift'](..._0x50b0d5);}const _0x1341c5=new Map([[_0x2040b7,_0x2a5b3c]]);for(const _0x329530 of _0x2fb11c){const _0x301591='attribute'==_0x329530['type']?_0x329530['data']['oldValue']:void 0x0,_0x4a94e6=_0x329530['getFirstRange'](),_0x1817a6=Array['from'](_0x1341c5['keys']())['find'](_0x513eb2=>_0x513eb2['isIntersecting'](_0x4a94e6));if(!_0x1817a6)continue;const _0x2f3967=_0x1817a6['getDifference'](_0x4a94e6);this['_isBlockAttribute'](_0x2216c9)&&'insertion'==_0x329530['type']&&0x0!=_0x2f3967['length']||(_0x1341c5['delete'](_0x1817a6),_0x2f3967['forEach'](_0x37b274=>{_0x1341c5['set'](_0x37b274,_0x2a5b3c);}),'insertion'!=_0x329530['type']&&_0x301591!=_0x19ed9b&&_0x1341c5['set'](_0x1817a6['getIntersection'](_0x4a94e6),_0x301591));}const _0x6b6352=[];for(const [_0x2e761,_0x2e2153]of _0x1341c5){const _0x4ee5a7=_0x47d328(),_0x47d2a4={'key':_0x2216c9,'oldValue':_0x2e2153,'newValue':_0x19ed9b};_0x2216c9['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':_0x2216c9});const _0x2065e8=('attribute:'+(_0x2216c9+'|'+Lt({'newValue':_0x19ed9b})))['substring'](0x0,0x3c),_0x15c4d4=this['_setSuggestionData']({'id':_0x4ee5a7,'type':_0x2065e8,'data':_0x47d2a4,'createdAt':new Date(),'authorId':_0x3fa848,'attributes':_0x33af6e});_0x6b6352['push'](_0x15c4d4),this['_addSuggestionMarker'](_0x2065e8,_0x4ee5a7,_0x3fa848,_0x2e761);}return _0x6b6352;}['enableDefaultAttributesIntegration'](_0x2289ad){this['enableCommand'](_0x2289ad,(_0x5b8e3f,..._0x5eadaa)=>{this['recordAttributeChanges'](()=>{_0x5b8e3f(..._0x5eadaa);});});}['registerBlockAttribute'](_0x36fb97){this['_blockAttributeKeys']['add'](_0x36fb97);}['registerInlineAttribute'](_0x3dabad){this['_inlineAttributeKeys']['add'](_0x3dabad);}['startTrackingSession'](_0x3dad44){return this['_trackingSessionId']=void 0x0!==_0x3dad44?_0x3dad44:_0x47d328(),this['_trackingSessionId'];}['_getAttributeKey'](_0x320c8d){return'attribute'==_0x320c8d['type']?_0x320c8d['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x15d901,_0x4845ec){const _0x393b8f=_0x15d901['getFirstMarker']();this['_model']['change'](_0x332a89=>{_0x332a89['updateMarker'](_0x393b8f,{'range':_0x4845ec});});}['_addThreadToSuggestion'](_0x17119d){const _0x9b5058=_0x17119d['id'],_0x2107b9=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x9b5058)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2107b9,'threadId':_0x9b5058,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x56e610=this['_commentsRepository']['getCommentThread'](_0x9b5058);_0x56e610['unbind']('isRemovable'),_0x56e610['isRemovable']=!0x1,_0x17119d['commentThread']=_0x56e610;}['_checkSuggestionCorrectness'](_0x36ea99,_0x1c1b96,_0x1b78e3,_0x5dcddc){if(_0x36ea99['type']!=_0x1c1b96||_0x36ea99['subType']!=_0x1b78e3||_0x36ea99['creator']['id']!=_0x5dcddc)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x43dce0('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5634d2,_0x15658d){const _0x5c3f5c=_0x5634d2['getFirstRange']();if(_0x15658d['isEqual'](_0x5c3f5c))_0x5634d2['removeMarkers']();else{if(_0x5c3f5c['containsRange'](_0x15658d)){const _0x325374=this['_model']['createPositionAt'](_0x15658d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5634d2,this['_model']['createRange'](_0x5c3f5c['start'],_0x325374));const _0x576aee=_0x47d328(),_0x1a1554=_0x5634d2['creator']['id'],_0x5636e3=_0x5634d2['type']+':'+_0x5634d2['subType'];this['_setSuggestionData']({'id':_0x576aee,'type':_0x5636e3,'createdAt':new Date(),'authorId':_0x1a1554,'data':_0x5634d2['data'],'attributes':_0x5634d2['attributes']});const _0x116195=this['_model']['createPositionAt'](_0x15658d['end']['parent'],'after'),_0x236845=this['_model']['createRange'](_0x116195,_0x5c3f5c['end']);this['_addSuggestionMarker'](_0x5636e3,_0x576aee,_0x1a1554,_0x236845);}else{if(_0x5c3f5c['containsPosition'](_0x15658d['start'])){const _0x2c6cb9=this['_model']['createPositionAt'](_0x15658d['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5634d2,this['_model']['createRange'](_0x5c3f5c['start'],_0x2c6cb9));}else{const _0x270f5f=this['_model']['createPositionAt'](_0x15658d['end']['parent'],'after');this['_setSuggestionRange'](_0x5634d2,this['_model']['createRange'](_0x270f5f,_0x5c3f5c['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x53186a){for(const {suggestion:_0x55b2b2,meta:_0x199882}of this['_findSuggestions'](_0x53186a,'insertion')){if(!_0x199882['isOwn'])continue;const _0x597ad2=_0x55b2b2['getRanges']();for(const _0x322222 of _0x597ad2)if(!_0x53186a['getDifference'](_0x322222)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3b761d){const _0x4e8aa1=this['editor']['plugins']['get']('Users')['getUser'](_0x3b761d);if(!_0x4e8aa1)throw new _0x43dce0('track-changes-user-not-found',this);return _0x4e8aa1;}['_getExternalAuthor'](_0x16c4b2){const _0x517fdb=this['editor']['plugins']['get']('Users'),_0x9f75f5=_0x245ac6('external:'+_0x16c4b2),_0x4bf15c=_0x517fdb['getUser'](_0x9f75f5);return _0x4bf15c||_0x517fdb['addUser']({'id':_0x9f75f5,'name':_0x16c4b2});}['_createSuggestion'](_0x31b2fe,_0x3224cd,_0x2df78b,_0x113611,_0x1392e4,_0x586d80){const _0xb540d6=this['_getAuthorFromId'](_0x113611),_0x1b2ce4=this['_suggestionFactory']['buildSuggestion'](_0x31b2fe,_0x3224cd,_0x2df78b,_0xb540d6,_0x1392e4,_0x2e8a61=>{this['_updateSuggestionData'](_0x2df78b,{'attributes':_0x2e8a61});const _0x455b4a=this['getSuggestion'](_0x2df78b);this['_joinWithAdjacentSuggestions'](new Set([_0x455b4a])),this['_refreshSuggestionsChain'](new Set([_0x455b4a]));},_0x586d80);return this['listenTo'](_0x1b2ce4,'accept',()=>{this['_updateSuggestionData'](_0x2df78b,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1b2ce4,'discard',()=>{this['_updateSuggestionData'](_0x2df78b,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2df78b,_0x1b2ce4),this['_suggestionState']['set'](_0x1b2ce4,'notReady'),_0x1b2ce4;}['_splitMarkerName'](_0x5999ca){const _0xa8fe44=_0x5999ca['split'](':');return{'group':_0xa8fe44[0x0],'type':_0xa8fe44[0x1],'subType':_0xa8fe44['length']>=0x5?_0xa8fe44[0x2]:null,'id':_0xa8fe44['length']<0x5?_0xa8fe44[0x2]:_0xa8fe44[0x3],'authorId':_0xa8fe44['length']<0x5?_0xa8fe44[0x3]:_0xa8fe44[0x4],'markerCount':0x6==_0xa8fe44['length']?_0xa8fe44[0x5]:null};}['_breakSuggestionMarker'](_0x100818,_0x3f2af9,_0x42840f){const _0x4aa211=_0x100818['getFirstRange'](),_0x58393c=_0x4aa211['start'],_0x3ee735=_0x4aa211['end'];this['_setSuggestionRange'](_0x100818,this['_model']['createRange'](_0x58393c,_0x3f2af9));const _0x11dc09=_0x47d328(),_0x57a429=_0x100818['creator']['id'],_0x2b8173=_0x100818['type']+(_0x100818['subType']?':'+_0x100818['subType']:'');this['_setSuggestionData']({'id':_0x11dc09,'type':_0x2b8173,'createdAt':new Date(),'authorId':_0x57a429,'originalSuggestionId':_0x100818['_originalSuggestionId']||_0x100818['id'],'attributes':_0x100818['attributes'],'data':_0x100818['data']});const _0x5ccd52=this['_getAttributeKey'](_0x100818);('formatBlock'==_0x100818['type']||_0x5ccd52&&this['_isBlockAttribute'](_0x5ccd52))&&(_0x42840f=this['_model']['createPositionBefore'](_0x42840f['parent'])),this['_addSuggestionMarker'](_0x2b8173,_0x11dc09,_0x57a429,this['_model']['createRange'](_0x42840f,_0x3ee735));}['_findSuggestions'](_0x3c825c,_0x21ba46=null){const _0x1e36d2=[],_0x3e674e=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3c825c)||(_0x3c825c=[_0x3c825c]);for(const _0x2e6802 of this['getSuggestions']()){if(!_0x2e6802['isInContent'])continue;if(_0x21ba46&&_0x2e6802['type']!=_0x21ba46)continue;let _0x2e5c81=!0x1;for(const _0x16de7a of _0x2e6802['getRanges']()){for(const _0x2eb775 of _0x3c825c){const _0x2a9dd0=_0x2eb775['start']['isEqual'](_0x16de7a['end'])||_0x2eb775['end']['isEqual'](_0x16de7a['start']);if(_0x2a9dd0||_0x2eb775['getIntersection'](_0x16de7a)){const _0x5090e3=_0x2eb775['containsRange'](_0x16de7a)&&Ft(this['_model']['schema'],_0x16de7a['start'],_0x2eb775),_0xfaefa3=_0x16de7a['containsRange'](_0x2eb775)&&Ft(this['_model']['schema'],_0x2eb775['start'],_0x16de7a);_0x1e36d2['push']({'suggestion':_0x2e6802,'meta':{'isOwn':_0x3e674e==_0x2e6802['author'],'isNextTo':_0x2a9dd0,'isInsideObject':_0x5090e3,'containsRangeInObject':_0xfaefa3}}),_0x2e5c81=!0x0;break;}}if(_0x2e5c81)break;}}return _0x1e36d2;}['_addSuggestionMarker'](_0x2c06ff,_0x48d2e1,_0x394847,_0x12bddf,_0x4cf394){this['_model']['change'](_0x1a331b=>{let _0x23356d='suggestion:'+_0x2c06ff+':'+_0x48d2e1+':'+_0x394847;_0x4cf394&&(_0x23356d=_0x23356d+':'+_0x4cf394),_0x1a331b['addMarker'](_0x23356d,{'range':_0x12bddf,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x14afc3){const _0x3cde08=_0x14afc3['previous'],_0x3ad06e=_0x14afc3['next'];_0x14afc3['previous']=null,_0x14afc3['next']=null,null!=_0x3cde08&&_0x3cde08['next']==_0x14afc3&&(_0x3cde08['next']=_0x3ad06e),null!=_0x3ad06e&&_0x3ad06e['previous']==_0x14afc3&&(_0x3ad06e['previous']=_0x3cde08),'ready'==this['_suggestionState']['get'](_0x14afc3)&&(this['_suggestionState']['set'](_0x14afc3,'removed'),this['fire']('suggestionUnloaded',_0x14afc3,_0x3cde08,_0x3ad06e));}['_setSuggestionData'](_0x210ca1){const _0x322dde=_0x210ca1['id'],_0x4a8ad9=this['addSuggestionData'](_0x210ca1);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x405731=this['editor']['plugins']['get']('PendingActions'),_0x14402e=_0x4a8ad9['hasComments'],_0x16e868=_0x4a8ad9['subType']?_0x4a8ad9['type']+':'+_0x4a8ad9['subType']:_0x4a8ad9['type'],_0x5a0574=this['editor']['locale'],_0x4cdc83=_0x405731['add'](o(_0x5a0574,'PENDING_ACTION_SUGGESTION')),_0x46f7f4={'id':_0x322dde,'type':_0x16e868,'hasComments':_0x14402e,'data':_0x210ca1['data']||null,'originalSuggestionId':_0x210ca1['originalSuggestionId']||null,'attributes':_0x4a8ad9['attributes']};this['_adapter']['addSuggestion'](_0x46f7f4)['then'](_0x510c36=>{_0x4a8ad9['_saved']=!0x0,_0x405731['remove'](_0x4cdc83),_0x510c36&&_0x510c36['createdAt']&&(this['_suggestions']['get'](_0x322dde)['createdAt']=_0x510c36['createdAt']);})['catch'](_0x5640f7=>{throw _0x1407e2('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4a8ad9['discard']();}),_0x4a8ad9['stopListening'](),this['_suggestions']['delete'](_0x4a8ad9['id']),this['_suggestionState']['delete'](_0x4a8ad9),_0x5640f7;});}return _0x4a8ad9;}['_isBlockAttribute'](_0xa2783d){return this['_blockAttributeKeys']['has'](_0xa2783d);}['_isInlineAttribute'](_0x51a431){return this['_inlineAttributeKeys']['has'](_0x51a431);}['_updateSuggestionData'](_0x3f94fc,_0x4d4999){const _0x5ad0ba=this['editor']['plugins']['get']('PendingActions'),_0x43c8e6=this['getSuggestion'](_0x3f94fc);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x43c8e6['_saved']){const _0x6787e2=_0x5ad0ba['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3f94fc,_0x4d4999)['then'](()=>{_0x5ad0ba['remove'](_0x6787e2);});}else _0x43c8e6['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3f94fc,_0x4d4999);});}}['_getSuggestionData'](_0xb7c539){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x43dce0('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xb7c539);}['_handleNewSuggestionMarker'](_0xce59aa){const {id:_0x4567d8,type:_0x26ca08,subType:_0x32c8bf,authorId:_0x29ac80}=this['_splitMarkerName'](_0xce59aa),_0x2b757a=this['_suggestions']['get'](_0x4567d8)||this['_createSuggestion'](_0x26ca08,_0x32c8bf,_0x4567d8,_0x29ac80,{});switch(this['_checkSuggestionCorrectness'](_0x2b757a,_0x26ca08,_0x32c8bf,_0x29ac80),this['_suggestionState']['get'](_0x2b757a)){case'notReady':this['_getSuggestionData'](_0x4567d8)['then'](_0x3f85da=>{let _0x91bd6c=Promise['resolve']();_0x3f85da['hasComments']&&(_0x91bd6c=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4567d8})),_0x91bd6c['then'](()=>{this['addSuggestionData'](_0x3f85da)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2b757a,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4567d8,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2b757a,'ready'),this['fire']('suggestionLoaded',_0x2b757a);break;case'ready':this['fire']('suggestionChanged',_0x2b757a);}return _0x2b757a['addMarkerName'](_0xce59aa),_0x2b757a;}['_refreshSuggestionsChain'](_0x5b98c4){const _0x17cc2c=Array['from'](_0x5b98c4),_0x16205d=_0x17cc2c['filter'](_0x3a8fda=>'attribute'==_0x3a8fda['type']);this['_refreshAttributeSuggestionsChain'](_0x16205d);const _0x2dd5f3=_0x17cc2c['filter'](_0xd0df59=>!_0xd0df59['isMultiRange']&&'attribute'!=_0xd0df59['type']),_0x6e781d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49849e=>!_0x49849e['isMultiRange']&&'attribute'!=_0x49849e['type']),_0xd9418c=_0x6e781d['filter'](_0x4e23d7=>!_0x5b98c4['has'](_0x4e23d7)),_0x4d027e=new Map(_0x6e781d['map'](_0x585cef=>[_0x585cef,this['_suggestionFactory']['getSuggestionCallback'](_0x585cef['type'],_0x585cef['subType'],'chain')])),_0x37c71d=new Map(_0x6e781d['map'](_0x3bcb26=>[_0x3bcb26,_0x3bcb26['getFirstRange']()])),_0x1a2202=new Set(),_0x188c02=new Set();for(let _0x276360=0x0;_0x276360<_0x2dd5f3['length'];_0x276360++)_0x31984c(_0x2dd5f3[_0x276360],_0x2dd5f3,_0x276360+0x1);for(let _0x10c0e7=0x0;_0x10c0e7<_0x2dd5f3['length'];_0x10c0e7++)_0x31984c(_0x2dd5f3[_0x10c0e7],_0xd9418c,0x0);const _0x370edf=new Set();for(let _0x2b8f4d=0x0;_0x2b8f4d<_0x2dd5f3['length'];_0x2b8f4d++){const _0x713ad3=_0x2dd5f3[_0x2b8f4d];!_0x188c02['has'](_0x713ad3)&&_0x713ad3['previous']&&(_0x370edf['add'](_0x713ad3['previous']),_0x713ad3['previous']['next']===_0x713ad3&&(_0x713ad3['previous']['next']=null),_0x713ad3['previous']=null),!_0x1a2202['has'](_0x713ad3)&&_0x713ad3['next']&&(_0x370edf['add'](_0x713ad3['next']),_0x713ad3['next']['previous']===_0x713ad3&&(_0x713ad3['next']['previous']=null),_0x713ad3['next']=null);}function _0x31984c(_0x865f69,_0x537ebc,_0x29d105){for(let _0x496cfa=_0x29d105;_0x496cfa<_0x537ebc['length'];_0x496cfa++){const _0x29d4e8=_0x4b22f4(_0x865f69,_0x537ebc[_0x496cfa]);_0x29d4e8&&(_0x29d4e8[0x0]['next']=_0x29d4e8[0x1],_0x29d4e8[0x1]['previous']=_0x29d4e8[0x0],_0x1a2202['add'](_0x29d4e8[0x0]),_0x188c02['add'](_0x29d4e8[0x1]));}}function _0x4b22f4(_0x41282b,_0x5c30cd){if(_0x41282b['author']['id']!==_0x5c30cd['author']['id'])return null;const _0x2ac52c=_0x4d027e['get'](_0x41282b)(_0x41282b,_0x5c30cd,_0x37c71d['get'](_0x41282b),_0x37c71d['get'](_0x5c30cd));if(!_0x2ac52c)return null;return _0x4d027e['get'](_0x5c30cd)(_0x41282b,_0x5c30cd,_0x37c71d['get'](_0x41282b),_0x37c71d['get'](_0x5c30cd))?_0x2ac52c[0x1]['commentThread']&&_0x2ac52c[0x1]['commentThread']['length']?null:_0x2ac52c:null;}_0x370edf['size']&&this['_refreshSuggestionsChain'](_0x370edf);}['_refreshAttributeSuggestionsChain'](_0x3f8a63){if(0x0==_0x3f8a63['length'])return;const _0x4e1006=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x29d284=>'attribute'==_0x29d284['type']&&_0x29d284['_isDataLoaded']),_0xe49dcd=[],_0x4fbf11=new Map();for(const _0x5a0930 of _0x4e1006){const _0x265f8c=_0x245ac6(_0x5a0930['attributes']);_0x4fbf11['has'](_0x265f8c)||(_0x4fbf11['set'](_0x265f8c,_0xe49dcd['length']),_0xe49dcd['push']([]));const _0x58a7ea=_0x4fbf11['get'](_0x265f8c);_0xe49dcd[_0x58a7ea]['push'](_0x5a0930);}!(function(){_0xe49dcd['sort']((_0x42cfa3,_0x3ffb1d)=>{const _0x3fcd6d=_0x42cfa3[0x0]['createdAt'],_0x154e7b=_0x3ffb1d[0x0]['createdAt'];return _0x3fcd6d==_0x154e7b?_0x42cfa3[0x0]['attributes']['groupId']<_0x3ffb1d[0x0]['attributes']['groupId']?-0x1:0x1:_0x3fcd6d<_0x154e7b?-0x1:0x1;});for(const _0x1adbab of _0xe49dcd)_0x1adbab['sort']((_0x318f7f,_0x2cce94)=>_0x318f7f['id']<_0x2cce94['id']?-0x1:0x1);}());for(let _0x4519ca=0x0;_0x4519ca<_0xe49dcd['length'];_0x4519ca++){if(0x0==_0xe49dcd[_0x4519ca]['length'])continue;const _0x33ac5f=[];for(let _0xe84138=_0x4519ca+0x1;_0xe84138<_0xe49dcd['length'];_0xe84138++)0x0!=_0xe49dcd[_0xe84138]['length']&&_0xc32fdb(_0xe49dcd[_0x4519ca],_0xe49dcd[_0xe84138])&&_0x33ac5f['push'](_0xe84138);for(const _0x260700 of _0x33ac5f)_0xe49dcd[_0x4519ca]=_0xe49dcd[_0x4519ca]['concat'](_0xe49dcd[_0x260700]),_0xe49dcd[_0x260700]=[];}for(const _0x61dc96 of _0xe49dcd)for(let _0x713c50=0x0;_0x713c50<_0x61dc96['length'];_0x713c50++){const _0x4f80ae=_0x61dc96[_0x713c50+0x1]||null;_0x61dc96[_0x713c50]['next']!==_0x4f80ae&&(_0x61dc96[_0x713c50]['next']=_0x4f80ae);}for(const _0x57aa7b of _0xe49dcd)for(let _0x245296=0x0;_0x245296<_0x57aa7b['length'];_0x245296++){const _0x1edf52=_0x57aa7b[_0x245296-0x1]||null;_0x57aa7b[_0x245296]['previous']!==_0x1edf52&&(_0x57aa7b[_0x245296]['previous']=_0x1edf52);}function _0xc32fdb(_0x2dda6a,_0x1f616a){if(_0x2dda6a[0x0]['attributes']['groupId']!==_0x1f616a[0x0]['attributes']['groupId']&&_0x2dda6a[0x0]['author']!==_0x1f616a[0x0]['author'])return!0x1;if(!function(_0x1fb31b,_0x5b70cd){if(!_0x1fb31b['hasComments']&&!_0x5b70cd['hasComments'])return!0x0;if(_0x1fb31b['hasComments']&&_0x5b70cd['hasComments'])return!0x1;if(_0x1fb31b['hasComments']&&_0x5b70cd['createdAt']<_0x1fb31b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5b70cd['hasComments']&&_0x1fb31b['createdAt']<_0x5b70cd['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2dda6a[0x0],_0x1f616a[0x0]))return!0x1;const _0x4bf0d8=Ut(_0x2dda6a[0x0]['attributes'],['groupId','trackingSessionId']),_0x7ca2d6=Ut(_0x1f616a[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x5b4dfa(_0x4bf0d8,_0x7ca2d6))return!0x1;if(_0x2dda6a[0x0]['attributes']['groupId']==_0x1f616a[0x0]['attributes']['groupId'])return!0x0;if(_0x2dda6a[0x0]['attributes']['trackingSessionId']!==_0x1f616a[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x2dda6a['every'](_0x5f2b3e=>_0x1f616a['some'](_0x4651a0=>_0x5f2b3e['getFirstRange']()['isEqual'](_0x4651a0['getFirstRange']())))&&_0x1f616a['every'](_0x73820c=>_0x2dda6a['some'](_0x2242ee=>_0x73820c['getFirstRange']()['isEqual'](_0x2242ee['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x27f1dd){const _0x1411c2=Array['from'](_0x27f1dd),_0x1da908=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3f22ec=_0x1da908['filter'](_0x4d9afc=>!_0x27f1dd['has'](_0x4d9afc)),_0x27c9d9=new Map(_0x1411c2['map'](_0x3c508a=>[_0x3c508a,this['_suggestionFactory']['getSuggestionCallback'](_0x3c508a['type'],_0x3c508a['subType'],'join')])),_0x24446c=new Map(_0x1da908['map'](_0x47b3bc=>[_0x47b3bc,_0x47b3bc['getRanges']()]));for(let _0x544802=0x0;_0x544802<_0x1411c2['length'];_0x544802++){if(_0x1fde22(this,_0x1411c2[_0x544802],_0x1411c2,_0x544802+0x1))return!0x0;}for(let _0x2c619e=0x0;_0x2c619e<_0x1411c2['length'];_0x2c619e++){if(_0x1fde22(this,_0x1411c2[_0x2c619e],_0x3f22ec,0x0))return!0x0;}return!0x1;function _0x1fde22(_0x515170,_0x557c83,_0x505763,_0x12b616){for(let _0x4f7c28=_0x12b616;_0x4f7c28<_0x505763['length'];_0x4f7c28++){const _0x459805=_0x505763[_0x4f7c28];if(_0x459805['type']!==_0x557c83['type']||_0x459805['author']['id']!==_0x557c83['author']['id']||_0x459805['subType']!==_0x557c83['subType'])continue;if(!Qt(_0x557c83,_0x459805))continue;if('attribute'==_0x557c83['type']&&_0x557c83['data']['oldValue']!=_0x459805['data']['oldValue'])continue;if('attribute'==_0x557c83['type']&&_0x515170['_isBlockAttribute'](_0x557c83['data']['key']))continue;if('formatBlock'==_0x557c83['type']){const _0x1ab25f=_0x515170['editor']['model'],_0x58f1c5=_0x557c83['getContainedElement']();if(_0x58f1c5&&(_0x1ab25f['schema']['isObject'](_0x58f1c5)||_0x1ab25f['schema']['isLimit'](_0x58f1c5)))continue;}const _0x140ccd=_0x27c9d9['get'](_0x557c83),_0x3590db=_0x24446c['get'](_0x557c83),_0x55902e=_0x24446c['get'](_0x459805),_0x3fa68e=_0x557c83['commentThread']&&_0x557c83['commentThread']['length'],_0x4ca428=_0x459805['commentThread']&&_0x459805['commentThread']['length'];if(!_0x3fa68e&&_0x140ccd(_0x55902e,_0x3590db))return _0x515170['_joinSuggestions'](_0x459805,_0x557c83),_0x24446c['delete'](_0x557c83),!0x0;if(!_0x4ca428&&_0x140ccd(_0x3590db,_0x55902e))return _0x515170['_joinSuggestions'](_0x557c83,_0x459805),_0x24446c['delete'](_0x459805),!0x0;}return!0x1;}}['_joinSuggestions'](_0x298595,_0x3a84cc){if(_0x298595['isMultiRange']){for(const _0x3f59e4 of _0x3a84cc['getRanges']())_0x298595['addRange'](_0x3f59e4);}else{const _0x354d38=_0x3a84cc['getFirstRange']()['end'];this['_setSuggestionRange'](_0x298595,this['_model']['createRange'](_0x298595['getFirstRange']()['start'],_0x354d38));}_0x3a84cc['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4c0bf1,_0x59e433,_0x2dc91f){const _0x148c1a=_0x4c0bf1['startsWith']('format')||_0x4c0bf1['startsWith']('attribute')?'FORMATTING':_0x4c0bf1['toUpperCase']();return o(this['editor']['locale'],_0x59e433+'_'+_0x148c1a+'_SUGGESTION_ANNOUNCEMENT',_0x2dc91f);}['_initAriaMarkerChangeAnnouncements'](){const _0x408770=this['editor'];if(!_0x408770['ui'])return;const {ariaLiveAnnouncer:_0x112272}=_0x408770['ui'];_0x6b7445(this['_model'],({left:_0x168cb8,entered:_0x5bde3a})=>{for(const _0x4fd240 of _0x168cb8){const {group:_0xd99ff6,type:_0x48243a}=this['_splitMarkerName'](_0x4fd240['name']);if('suggestion'===_0xd99ff6){_0x112272['announce'](this['_getMarkerAnnouncementText'](_0x48243a,'LEAVE'));break;}}for(const _0x5f2912 of _0x5bde3a){const {group:_0x5a7b15,type:_0x1a8c3e}=this['_splitMarkerName'](_0x5f2912['name']);if('suggestion'===_0x5a7b15){_0x112272['announce'](this['_getMarkerAnnouncementText'](_0x1a8c3e,'ENTER',_0x19f29a(_0xf74409)));break;}}});}['_processAttributeChanges'](_0x7aee0){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5aa283=this['editor'],_0x1072df=_0x5aa283['model']['document']['differ']['getChanges']();if(0x0==_0x1072df['length'])return!0x1;const _0x35a0d0=[],_0x5d3855=_0x1072df['filter'](_0x130cc0=>'attribute'==_0x130cc0['type']),_0xe97507=_0x1072df['filter'](_0x11318e=>'insert'==_0x11318e['type']&&'$text'!=_0x11318e['name']),_0xff0585=_0x1072df['filter'](_0x241d4a=>'remove'==_0x241d4a['type']&&'$text'!=_0x241d4a['name']);for(const _0x385fee of _0x5d3855)_0x35a0d0['push']({'key':_0x385fee['attributeKey'],'newValue':_0x385fee['attributeNewValue'],'oldValue':_0x385fee['attributeOldValue'],'range':qt(_0x385fee['range'],_0x5aa283['model'])});for(const _0x4781c0 of _0xe97507){const _0x14e489=_0xff0585['find'](_0x25bb5f=>_0x25bb5f['position']['isEqual'](_0x4781c0['position']));_0x14e489&&_0x35a0d0['push']({'key':m,'newValue':_0x4781c0['name'],'oldValue':_0x14e489['name'],'range':_0x5aa283['model']['createRangeOn'](_0x4781c0['position']['nodeAfter'])});}return 0x0!=_0x35a0d0['length']&&this['_reduceExistingSuggestions'](_0x7aee0,_0x35a0d0);}['_processAttributeSuggestions'](_0x769426){let _0x383d88=!0x1;const _0x44b6e3=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1f07a6=>_0x1f07a6['data']['newRange']&&_0x1f07a6['name']['startsWith']('suggestion:attribute:'));for(const _0x4920a1 of _0x44b6e3){const {subType:_0x151d53,id:_0x12a7b8}=this['_splitMarkerName'](_0x4920a1['name']),_0x1bab27=_0x151d53['split']('|')[0x0];for(const _0x4afd19 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4afd19['id']!=_0x12a7b8&&'attribute'==_0x4afd19['type']&&_0x4afd19['data']&&_0x4afd19['data']['key']==_0x1bab27&&_0x4afd19['getFirstRange']()['isIntersecting'](_0x4920a1['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4afd19,_0x4920a1['data']['newRange'],_0x769426),_0x383d88=!0x0);}return _0x383d88;}['recordAttributeChanges'](_0x2cd9d1){this['_recordAttributeSuggestions']=!0x0,_0x2cd9d1();}['_isRegisteredAttribute'](_0x69cd09){const _0x3ad5d6=this['_isBlockAttribute'](_0x69cd09),_0x4139e9=this['_isInlineAttribute'](_0x69cd09);return _0x3ad5d6||_0x4139e9;}['_reduceExistingSuggestions'](_0x58e428,_0x2bc466){if(0x0==_0x2bc466['length'])return!0x1;let _0x40ca27=!0x1;for(const _0xf7762f of _0x2bc466){const _0x542ea5=this['_findSuggestions'](_0xf7762f['range'],'attribute')['filter'](_0x42c3fd=>!_0x42c3fd['meta']['isNextTo'])['map'](_0x1704c6=>_0x1704c6['suggestion']),_0x357b3=_0x245ac6({'newValue':_0xf7762f['newValue']});_0x542ea5['filter'](_0x4541e7=>{const [_0x2e5841,_0x46849a]=_0x4541e7['subType']['split']('|');return _0x2e5841==_0xf7762f['key']&&_0x46849a!=_0x357b3;})['forEach'](_0x23fa9e=>{this['_reduceSuggestionAttributeRange'](_0x23fa9e,_0xf7762f['range'],_0x58e428),_0x40ca27=!0x0;});}return _0x40ca27;}['_reduceSuggestionAttributeRange'](_0x1ff2cd,_0x2fccfd,_0x4241f2){const _0x59b588=_0x1ff2cd['getFirstRange']()['getDifference'](_0x2fccfd);0x0!==_0x59b588['length']?0x1!==_0x59b588['length']?this['_breakSuggestionMarker'](_0x1ff2cd,_0x2fccfd['start'],_0x2fccfd['end']):this['_setSuggestionRange'](_0x1ff2cd,_0x59b588[0x0]):_0x4241f2['removeMarker'](_0x1ff2cd['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x7d6046){this['_editor']=_0x7d6046,this['_model']=_0x7d6046['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x168201,_0x4a0fe3,_0x20431d,_0x37cd6b,_0x1e2489,_0x395cb5,_0x263d23){return new T(this['_model'],{'type':_0x168201,'subType':_0x4a0fe3,'id':_0x20431d,'originalSuggestionId':_0x263d23,'author':_0x37cd6b,'creator':_0x37cd6b,'attributes':_0x1e2489,'onAttributesChange':_0x395cb5,'onAccept':(..._0x4e2950)=>this['getSuggestionCallback'](_0x168201,_0x4a0fe3,'accept')(..._0x4e2950),'onDiscard':(..._0x5c24b0)=>this['getSuggestionCallback'](_0x168201,_0x4a0fe3,'discard')(..._0x5c24b0)});}['registerCustomCallback'](_0x4ab29b,_0x202cce,_0x24e635,_0x50bd72){const _0x4d17b1=_0x4ab29b+':'+_0x202cce+':'+_0x24e635;this['_customCallbacks']['set'](_0x4d17b1,_0x50bd72);}['getSuggestionCallback'](_0x33c6ee,_0x3ff77c,_0x3dcd78){const _0x528763=_0x33c6ee+':'+_0x3ff77c+':'+_0x3dcd78;return this['_customCallbacks']['get'](_0x528763)||this['_defaultCallbacks']['get'](_0x33c6ee+':'+_0x3dcd78);}['_registerDefaultCallbacks'](){const _0x32d7ff=()=>!0x1,_0x112b10=_0x22b627=>{_0x22b627['sort']((_0x30cae9,_0x4fb206)=>_0x30cae9['start']['isBefore'](_0x4fb206['start'])?0x1:-0x1),this['_model']['change'](_0x30db27=>{for(const _0x262af9 of _0x22b627){let _0xf36ab7;_0xf36ab7=_0x262af9['end']['isAtEnd']&&_0x262af9['end']['parent']==_0x262af9['start']['nodeAfter']?_0x30db27['createSelection'](_0x262af9['start']['nodeAfter'],'on'):_0x30db27['createSelection'](_0x262af9),this['_model']['deleteContent'](_0xf36ab7,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x5b17a5=(_0x392e5b,_0x33d6aa)=>{_0x33d6aa&&this['_model']['change'](_0x499da3=>{const {commandName:_0x225c4c,commandParams:_0x5bf7ba=[]}=_0x33d6aa,_0x2d903d=_0x392e5b['map'](_0x2ee8cf=>(Pt(_0x2ee8cf)&&(_0x2ee8cf=this['_model']['createRange'](_0x2ee8cf['end'])),_0x2ee8cf))['filter'](_0x5d5efe=>'$graveyard'!==_0x5d5efe['root']['rootName']);if(_0x2d903d['length']<0x1)return;const _0x35dc57=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x474983=>_0x40d9f2['fromRange'](_0x474983));_0x499da3['setSelection'](_0x2d903d);for(const _0x4004ce of this['_editor']['commands']['commands']())_0x4004ce['refresh']();_0x5bf7ba['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x225c4c,..._0x5bf7ba);const _0x2f6b0b=_0x35dc57['filter'](_0x8442c5=>'$graveyard'!=_0x8442c5['root']['rootName']);_0x2f6b0b['length']>0x0&&_0x499da3['setSelection'](_0x2f6b0b);for(const _0x4d5850 of _0x35dc57)_0x4d5850['detach']();});},_0x3a74df=(_0x56a68d,_0xc1231b)=>0x1==_0x56a68d['length']&&0x1==_0xc1231b['length']&&_0x56a68d[0x0]['end']['isEqual'](_0xc1231b[0x0]['start']),_0x169221=(_0x252b90,_0x14a4af,_0x2d7b5c,_0x2d373f)=>Wt(_0x252b90,_0x14a4af,_0x2d7b5c,_0x2d373f)?[_0x252b90,_0x14a4af]:Wt(_0x14a4af,_0x252b90,_0x2d373f,_0x2d7b5c)?[_0x14a4af,_0x252b90]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x32d7ff),this['_defaultCallbacks']['set']('insertion:discard',_0x112b10),this['_defaultCallbacks']['set']('insertion:join',_0x3a74df),this['_defaultCallbacks']['set']('insertion:chain',_0x169221),this['_defaultCallbacks']['set']('deletion:accept',_0x112b10),this['_defaultCallbacks']['set']('deletion:discard',_0x32d7ff),this['_defaultCallbacks']['set']('deletion:join',_0x3a74df),this['_defaultCallbacks']['set']('deletion:chain',_0x169221),this['_defaultCallbacks']['set']('formatInline:accept',_0x5b17a5),this['_defaultCallbacks']['set']('formatInline:discard',_0x32d7ff),this['_defaultCallbacks']['set']('formatInline:join',_0x3a74df),this['_defaultCallbacks']['set']('formatInline:chain',_0x32d7ff),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5b17a5),this['_defaultCallbacks']['set']('formatBlock:discard',_0x32d7ff),this['_defaultCallbacks']['set']('formatBlock:join',_0x3a74df),this['_defaultCallbacks']['set']('formatBlock:chain',_0x32d7ff),this['_defaultCallbacks']['set']('attribute:accept',_0x32d7ff),this['_defaultCallbacks']['set']('attribute:discard',(_0x414dd1,_0x476a28)=>{if(!_0x476a28)return;const _0x3284e5=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x2055ec=>{if(_0x476a28['key']==m)for(const _0x2cd5f6 of _0x414dd1){const _0x37457c=_0x2cd5f6['start']['nodeAfter'],_0x40af90=_0x476a28['oldValue'];_0x2055ec['rename'](_0x37457c,_0x40af90);}else{if(_0x3284e5['_isBlockAttribute'](_0x476a28['key'])){for(const _0x295dd5 of _0x414dd1)void 0x0!==_0x476a28['oldValue']?_0x2055ec['setAttribute'](_0x476a28['key'],_0x476a28['oldValue'],_0x295dd5['start']['nodeAfter']):_0x2055ec['removeAttribute'](_0x476a28['key'],_0x295dd5['start']['nodeAfter']);}else{for(const _0x3a9a7c of _0x414dd1)_0x476a28['oldValue']?_0x2055ec['setAttribute'](_0x476a28['key'],_0x476a28['oldValue'],_0x3a9a7c):_0x2055ec['removeAttribute'](_0x476a28['key'],_0x3a9a7c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3a74df);}}function Ft(_0x1877fd,_0x42f2a2,_0x279fad){for(const _0x2dca99 of _0x42f2a2['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2dca99['root']==_0x2dca99)return!0x1;if(!_0x279fad['containsItem'](_0x2dca99))return!0x1;if(_0x1877fd['isObject'](_0x2dca99)||_0x1877fd['isLimit'](_0x2dca99))return!0x0;}return!0x1;}function Pt(_0xb2c3ad){return _0xb2c3ad['end']['parent']==_0xb2c3ad['start']['nodeAfter']&&_0xb2c3ad['end']['isAtStart'];}function Gt(_0x29a5e2,_0xebdff3,_0x1244ff,_0x256892){const _0x41e98a=_0x112865=>!_0x112865['item']['is']('$textProxy')&&!_0x256892['isObject'](_0x112865['item']),_0x232a6d=_0x29a5e2['start']['getLastMatchingPosition'](_0x41e98a),_0x30d4c6=_0x29a5e2['end']['getLastMatchingPosition'](_0x41e98a,{'direction':'backward'});return(!_0x29a5e2['start']['isEqual'](_0x232a6d)||!_0x29a5e2['end']['isEqual'](_0x30d4c6))&&(_0x232a6d['isBefore'](_0x30d4c6)?_0x1244ff['updateMarker'](_0xebdff3,{'range':_0x1244ff['createRange'](_0x232a6d,_0x30d4c6)}):_0x1244ff['removeMarker'](_0xebdff3),!0x0);}function Lt(_0x167542){return _0x245ac6(_0x167542);}function Jt(_0x362808){const _0x446909=_0x362808['start']['nodeAfter'];return _0x446909&&_0x446909['is']('element');}function Kt(_0x44d45d){return Pt(_0x44d45d)||function(_0x3d748f){return _0x3d748f['start']['parent']==_0x3d748f['end']['nodeBefore']&&_0x3d748f['start']['isAtEnd'];}(_0x44d45d);}function Ht(_0x33cc49,_0x58c468){try{const _0x4b62bd=_0x33cc49['getRange']();for(const _0x2dc06f of _0x58c468)if(_0x33cc49!==_0x2dc06f&&_0x4b62bd&&_0x4b62bd['isIntersecting'](_0x2dc06f['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x46a1f8,_0x49696c){return null==_0x46a1f8['end']['nodeBefore']&&_0x46a1f8['end']['parent']==_0x46a1f8['start']['nodeAfter']?zt(_0x46a1f8['start']['nodeAfter'],_0x49696c):_0x46a1f8;}function zt(_0x3d26b0,_0x49a81a){const _0x336509=_0x49a81a['schema']['isObject'](_0x3d26b0)||_0x49a81a['schema']['isSelectable'](_0x3d26b0);return _0x49a81a['createRange'](_0x49a81a['createPositionAt'](_0x3d26b0,'before'),_0x336509?_0x49a81a['createPositionAfter'](_0x3d26b0):_0x49a81a['createPositionAt'](_0x3d26b0,'end'));}function Wt(_0x14f1f2,_0x7783f8,_0x305871,_0xbbca26){return!!Qt(_0x14f1f2,_0x7783f8)&&_0x305871['end']['isEqual'](_0xbbca26['start']);}function Qt(_0x53f030,_0x34b1a9){if(!_0x53f030['_isDataLoaded']||!_0x34b1a9['_isDataLoaded'])return!0x1;const _0x5cfe22=new Set(Object['keys'](_0x53f030['attributes'])),_0x4dc649=new Set(Object['keys'](_0x34b1a9['attributes']));if(_0x5cfe22['delete']('groupId'),_0x4dc649['delete']('groupId'),0x0==_0x5cfe22['size']&&0x0==_0x4dc649['size'])return!0x0;if(_0x5cfe22['size']!=_0x4dc649['size'])return!0x1;const _0x6bd689={..._0x53f030['attributes']},_0x29864c={..._0x34b1a9['attributes']};return delete _0x6bd689['groupId'],delete _0x29864c['groupId'],JSON['stringify'](_0x6bd689)==JSON['stringify'](_0x29864c);}function Xt(_0x2b9a6b,_0x14dd4f){const _0x21e1ff=Yt(_0x2b9a6b['attributes']),_0x397de8=Yt(_0x14dd4f);if(!_0x2b9a6b['_isDataLoaded'])return!0x1;for(const _0x539d81 of Object['keys'](_0x397de8))if(!_0x5b4dfa(_0x21e1ff[_0x539d81],_0x397de8[_0x539d81]))return!0x1;return!0x0;}function Yt(_0x1c6e79){const _0x86c982=Object['assign']({},_0x1c6e79);return delete _0x86c982['skipNestingCheck'],delete _0x86c982['tablePasteChainId'],_0x86c982;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x50446f(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3a4cd6,_0x4f64bd,_0x23d9d3,_0x2193a2){super(),this['model']=_0x4f64bd,this['view']=_0x23d9d3,this['commentThreadController']=_0x2193a2,this['_editor']=_0x3a4cd6,this['_acceptCommand']=_0x3a4cd6['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3a4cd6['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x28427e,_0x2140d9)=>_0x28427e||_0x2140d9),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x12ab1f=>_0x12ab1f&&this['_editor']['model']['canEditAt'](_0x4f64bd['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1cdab0=>_0x1cdab0&&this['_editor']['model']['canEditAt'](_0x4f64bd['getRanges']())),this['_pendingAction']=null,_0x23d9d3['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x23d9d3,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x23d9d3,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x23d9d3,'change:isDirty',()=>{_0x23d9d3['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 _0x3b47e7=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3b47e7);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ti extends _0x19b119{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x9abac6,_0x212f5b,_0xa5a4a0,_0x187204){super(_0x9abac6),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3c0408(_0x9abac6,o(_0x9abac6,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x212f5b['authoredAt']),this['bind']('authoredAt')['to'](_0x212f5b),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',_0x212f5b,'authoredAt',this,'descriptionParts',(_0x590207,_0x5497e1,_0x32629b)=>{const _0x596dfe=_0x32629b['map'](_0xe9720d=>ls(_0xe9720d['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x590207-0x1,_0x212f5b['author']['name'],_0x5497e1?_0x187204['formatDateTime'](_0x5497e1):'',new DOMParser()['parseFromString'](_0x596dfe,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1d24cb(),this['focusTracker']=new _0x341c87(),this['keystrokes']=new _0x1f0e6d(),this['focusCycler']=new _0x8420b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x15d8a4=>_0x15d8a4['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x212f5b,this['_localUser']=_0xa5a4a0,this['_config']=_0x187204,_0x187204['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xaa71c4(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x30ad91}=this['_config'];this['commentsListView']=new _0x30ad91(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',_0x2e1072=>_0x2e1072+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3e0a14,_0x449a09)=>_0x3e0a14||!!_0x449a09);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5f30f4}=this['_config'],_0x4968c7=new _0x5f30f4(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3f72aa=_0x4968c7['commentInputView'];return _0x4968c7['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3f72aa,'value',(_0x17c7a2,_0x45a9c3,_0x57e3fa)=>!!_0x57e3fa||_0x17c7a2&&!_0x45a9c3),_0x3f72aa['on']('submit',(_0x1e7892,_0x1d0b53)=>{this['fire']('addComment',_0x1d0b53),_0x3f72aa['editor']['setData']('');}),_0x3f72aa['on']('cancel',()=>this['focus']()),_0x3f72aa['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4968c7;}}class fe extends ti{['suggestionView'];['_descriptionElement'];constructor(_0x3d25e5,_0x3cca51,_0x503d14,_0x302b10){super(_0x3d25e5,_0x3cca51,_0x503d14,_0x302b10),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3f673f=>_0x3f673f&&_0x3f673f[0x0]?_0x3f673f[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x548122,_0x2618bc)=>{let _0x3d554e='';for(const _0x130515 of _0x548122)_0x3d554e+='<p>'+ls(_0x130515['content'],_0x130515['color'])+'</p>';return _0x2618bc?_0x3d554e:_0x50c4db(_0x3d554e,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x302b10['SuggestionView'](_0x3d25e5,_0x3cca51,{'formatDateTime':_0x302b10['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 _0x27a306=this['bindTemplate'],_0x308c90=[this['suggestionView']];return this['commentsListView']&&_0x308c90['push'](this['commentsListView']),this['commentThreadInputView']&&_0x308c90['push'](this['commentThreadInputView']),_0x308c90['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x27a306['if']('isActive','ck-suggestion-wrapper--active'),_0x27a306['to']('type',_0x354b38=>'ck-suggestion-'+_0x354b38),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':_0x27a306['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x308c90};}['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 we extends _0x19b119{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x15111e,_0x422472,_0x5bf9b2){super(_0x15111e),this['_model']=_0x422472,this['_config']=_0x5bf9b2,this['set']('description',''),this['bind']('authoredAt')['to'](_0x422472),this['acceptButton']=this['_createButton'](o(_0x15111e,'Accept\x20suggestion'),_0x2e94b3,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x15111e,'Discard\x20suggestion'),_0x4b3dd8,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x43ae1f(_0x15111e,_0x422472['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1d24cb([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x341c87(),this['keystrokes']=new _0x1f0e6d(),this['focusCycler']=new _0x8420b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2903bc=>_0x2903bc['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5bc54b=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5bc54b['innerHTML']=this['description'],this['on']('change:description',(_0x1f3e68,_0xa88a68,_0x4057f2)=>{_0x5bc54b['innerHTML']=_0x4057f2;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1f1ef0=this['bindTemplate'],_0x5d7234=[{'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':_0x1f1ef0['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1f1ef0['to']('authoredAt',_0x46ed99=>this['_config']['formatDateTime'](_0x46ed99))}]}]},{'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']&&_0x5d7234['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':_0x5d7234}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x4fa5bf,_0x5a2609,_0x55fb91,_0x41b55f,_0x2836f7){const _0x1f56eb=new _0x29d450(this['locale']);return _0x1f56eb['set']({'label':_0x4fa5bf,'icon':_0x5a2609,'tooltip':!0x0,'tooltipPosition':_0x2836f7}),_0x1f56eb['extendTemplate']({'attributes':{'class':_0x55fb91}}),_0x1f56eb['on']('execute',()=>{this['fire'](_0x41b55f,this['_model']['id']);}),_0x1f56eb;}['_setupKeyboardNavigation'](){const _0x270a46=this['element'];this['keystrokes']['listenTo'](_0x270a46);for(const _0x1f1b32 of this['focusables'])this['focusTracker']['add'](_0x1f1b32['element']),this['keystrokes']['listenTo'](_0x1f1b32['element']);this['keystrokes']['set']('enter',(_0x50a603,_0x146455)=>{_0x270a46===_0x50a603['target']&&(this['focusCycler']['focusFirst'](),_0x146455());}),this['keystrokes']['set']('esc',(_0x5e34d9,_0x363e22)=>{_0x270a46!==_0x5e34d9['target']&&(this['focus'](),_0x363e22());});}}class u extends _0xda0844{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x9ab31d,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x878db8){super(_0x878db8),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5b8a55=this['editor']['config'];_0x5b8a55['define']('trackChanges.SuggestionThreadView',fe),_0x5b8a55['define']('trackChanges.SuggestionView',we),_0x5b8a55['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5b8a55['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x146a6e,_0x3efb88){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1edde2,_0x1675a7]of this['_handleControllerBuffer']){const _0x470f85=this['_suggestionToController']['has'](_0x1edde2);_0x470f85||_0x1675a7?_0x470f85&&_0x1675a7&&this['_destroyController'](_0x1edde2):this['_initializeController'](_0x1edde2);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x146a6e,_0x3efb88);}['init'](){const _0x1beb15=this['editor'],_0x265c11=_0x1beb15['plugins']['get']('TrackChangesEditing'),_0x1fcf71=_0x1beb15['plugins']['get']('Annotations'),_0x263b25=_0x1beb15['plugins']['get']('EditorAnnotations'),_0xa671bf=_0x1beb15['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x263b25['addSourceCollector'](()=>{const _0x2b2243=[];for(const [_0x4b10ab,_0x174d98]of Array['from'](this['_suggestionToController'])){const _0x497f1c=_0x4b10ab['getAllAdjacentSuggestions'](),_0x10d6e5=[];for(const _0x58e4a1 of _0x497f1c){if(!_0x58e4a1['isInContent'])continue;if(_0x58e4a1['isMultiRange']){_0x10d6e5['push'](..._0x58e4a1['getRanges']());continue;}const _0x27dae5=_0x58e4a1['getFirstRange']();if(_0x10d6e5['length']>0x0){const _0x299ad1=_0x10d6e5[0x0]['getJoined'](_0x27dae5);if(_0x299ad1){_0x10d6e5[0x0]=_0x299ad1;continue;}}_0x10d6e5['push'](_0x27dae5);}_0x2b2243['push']([_0x174d98['view'],_0x10d6e5]);}return _0x2b2243;}),this['listenTo'](_0x265c11,'suggestionLoaded',(_0x480eb4,_0x21d7d3)=>{this['listenTo'](_0x21d7d3,'change:previous',(_0x2b7e5c,_0x3f35c0,_0x21acab,_0x33cb16)=>{_0x21d7d3['isInContent']&&(null==_0x21acab?(this['_updateController'](_0x33cb16['head']),this['_handleSuggestionControllerDelayed'](_0x21d7d3,!0x1)):(this['_updateController'](_0x21acab['head']),null==_0x33cb16&&this['_handleSuggestionControllerDelayed'](_0x21d7d3,!0x0)));}),null!==_0x21d7d3['previous']?this['_updateController'](_0x21d7d3['head']):this['_handleSuggestionControllerDelayed'](_0x21d7d3,!0x1);}),this['listenTo'](_0x265c11,'suggestionUnloaded',(_0x31edfd,_0x1deb44,_0x2cca42)=>{this['stopListening'](_0x1deb44,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1deb44),this['_suggestionToController']['has'](_0x1deb44)&&this['_destroyController'](_0x1deb44),_0x2cca42&&this['_updateController'](_0x2cca42['head']);}),this['listenTo'](_0x265c11,'suggestionChanged',(_0x4e5bd6,_0xba8547)=>{this['_updateController'](_0xba8547);}),this['listenTo'](_0x1fcf71,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xa671bf,'addComment',(_0x52c073,{threadId:_0x3b8862,isFromAdapter:_0x2cf4bd})=>{if(_0x2cf4bd||!_0x265c11['hasSuggestion'](_0x3b8862))return;const _0xbd7b30=_0x265c11['getSuggestion'](_0x3b8862);this['_suggestionToController']['get'](_0xbd7b30)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4d6735=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3788a7;for(const _0x396d1b in _0x4d6735){const _0xb22c8f=_0x396d1b,_0x152da6=_0x4d6735[_0xb22c8f];if('trackChangesLicenseKeyValid'==_0x152da6||'trackChangesLicenseKeyInvalid'==_0x152da6||'trackChangesLicenseKeyExpired'==_0x152da6||'trackChangesLicenseKeyDomainLimit'==_0x152da6||'trackChangesLicenseKeyNotAllowed'==_0x152da6||'trackChangesLicenseKeyEvaluationLimit'==_0x152da6||'trackChangesLicenseKeyTrialLimit'==_0x152da6||'trackChangesLicenseKeyUsageLimit'==_0x152da6){delete _0x4d6735[_0xb22c8f],_0x3788a7=_0x152da6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3788a7&&_0x4d6735['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3788a7&&_0x4d6735['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3788a7&&_0x4d6735['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3788a7&&_0x4d6735['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3788a7&&_0x4d6735['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x3788a7&&_0x4d6735['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3788a7&&_0x4d6735['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x104d8c){const _0x116848=this['_suggestionToController']['get'](_0x104d8c);if(!_0x116848)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x116848['view'])||null;}['getSuggestionForAnnotation'](_0x5b3cbb){const _0x578cfe=this['_viewToController']['get'](_0x5b3cbb['innerView']);return _0x578cfe?_0x578cfe['model']:null;}['_refreshActiveMarkers'](){const _0x206eec=this['editor']['plugins']['get']('Annotations'),_0x15e468=this['editor']['plugins']['get']('TrackChangesEditing'),_0x56edbd=Array['from'](_0x206eec['activeAnnotations'],_0x2e5df9=>_0x2e5df9['innerView'])['filter'](_0xcf3fb=>this['_viewToController']['has'](_0xcf3fb)),_0x46bba2=[];for(const _0x196f6a of _0x56edbd){const _0x9e01b3=this['_viewToController']['get'](_0x196f6a)['model']['getAllAdjacentSuggestions']();_0x46bba2['push'](..._0x9e01b3['reduce']((_0x623215,_0x4e3e6d)=>[..._0x623215,..._0x4e3e6d['getMarkerNames']()],[]));}_0x15e468['activeMarkers']=_0x46bba2;}['_addUIComponentsToFactory'](){const _0x2f6c70=this['editor'],_0x59aef0=_0x2f6c70['locale'],_0x1fca1c=o(_0x59aef0,'Track\x20changes'),_0x187fe0=new _0x443e8d([{'type':'switchbutton','model':new _0x2b229c({'withText':!0x0,'isToggleable':!0x0,'label':_0x1fca1c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2b229c({'withText':!0x0,'label':o(_0x59aef0,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2b229c({'withText':!0x0,'label':o(_0x59aef0,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2b229c({'withText':!0x0,'label':o(_0x59aef0,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2b229c({'withText':!0x0,'label':o(_0x59aef0,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2f6c70['plugins']['has']('TrackChangesPreview')&&_0x187fe0['addMany']([{'type':'separator'},{'type':'button','model':new _0x2b229c({'withText':!0x0,'label':o(_0x59aef0,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x455621 of _0x187fe0)if(ke(_0x455621)){const _0x479fe6=_0x2f6c70['commands']['get'](_0x455621['model']['commandName']);_0x455621['model']['bind']('isOn','isEnabled')['to'](_0x479fe6,'value','isEnabled');}_0x2f6c70['ui']['componentFactory']['add']('trackChanges',_0x4a60be=>this['_createToolbarButton'](_0x4a60be,_0x187fe0,_0x1fca1c)),_0x2f6c70['ui']['componentFactory']['add']('menuBar:trackChanges',_0xd1ed74=>this['_createMenuBarMenu'](_0xd1ed74,_0x187fe0,_0x1fca1c));}['_createToolbarButton'](_0x38644d,_0x35dffb,_0x136936){const _0x3411db=_0x9e14e7(_0x38644d,_0x1b948a),_0x447c23=this['editor']['commands']['get']('trackChanges');_0x3411db['buttonView']['set']({'tooltip':_0x136936,'label':_0x136936,'icon':_0xbfa4fd}),_0x3411db['buttonView']['bind']('isOn')['to'](_0x447c23,'value'),_0x3411db['buttonView']['on']('execute',()=>{_0x447c23['execute'](),this['editor']['editing']['view']['focus']();}),_0x485cac(_0x3411db,_0x35dffb,{'role':'menu'});const _0x16c325=[];for(const _0x4faadf of _0x35dffb)ke(_0x4faadf)&&_0x16c325['push'](this['editor']['commands']['get'](_0x4faadf['model']['commandName']));const _0xed34c=_0x3411db['buttonView'];return _0xed34c['actionView']['unbind']('isEnabled'),_0xed34c['arrowView']['unbind']('isEnabled'),_0xed34c['actionView']['bind']('isEnabled')['to'](_0x447c23,'isEnabled'),_0xed34c['arrowView']['bind']('isEnabled')['toMany'](_0x16c325,'isEnabled',(..._0x3d18ef)=>_0x3d18ef['some'](_0x5759b4=>_0x5759b4)),_0x3411db['on']('execute',_0x470a13=>{this['editor']['execute'](_0x470a13['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3411db;}['_createMenuBarMenu'](_0x2d05e9,_0xec7c03,_0x599872){const _0x164c27=new _0x3df343(_0x2d05e9),_0xbe3af=this['editor']['commands']['get']('trackChanges');_0x164c27['buttonView']['set']({'label':_0x599872,'icon':_0xbfa4fd});const _0x8a5779=new _0x404d20(_0x2d05e9);for(const _0x569576 of _0xec7c03){if('separator'==_0x569576['type']){_0x8a5779['items']['add'](new _0x32c46e(_0x2d05e9));continue;}const _0x1375be=new _0x2bb7b6(_0x2d05e9,_0x164c27),_0x5a59e3=new _0x4ba611(_0x2d05e9),_0x4ca44f=_0x569576['model'];_0x5a59e3['bind'](...Object['keys'](_0x4ca44f))['to'](_0x4ca44f),_0x5a59e3['delegate']('execute')['to'](_0x164c27),_0x5a59e3['on']('execute',()=>{this['editor']['execute'](_0x4ca44f['commandName']),this['editor']['editing']['view']['focus']();}),_0x1375be['children']['add'](_0x5a59e3),_0x8a5779['items']['add'](_0x1375be);}return _0x164c27['bind']('isEnabled')['to'](_0xbe3af,'isEnabled'),_0x164c27['panelView']['children']['add'](_0x8a5779),_0x164c27;}['_initializeController'](_0x20c932){const _0x1bbead=this['editor'],_0x6bcd35=_0x1bbead['config'],_0x3e5668=_0x1bbead['plugins']['get']('Annotations'),_0x404d16=_0x1bbead['plugins']['get']('CommentsRepository'),_0x2d471b=_0x1bbead['plugins']['get']('EditorAnnotations'),_0x4c57cb=_0x1bbead['plugins']['get'](_0x9ab31d)['me'],_0xb22354=_0x6bcd35['get']('trackChanges')['SuggestionThreadView'],_0x566d49=_0x6bcd35['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x53275e,CommentThreadInputView:_0x2caa76}=_0x1bbead['plugins']['get']('CommentsUI');let _0x3700a7,_0xf39b86,_0x5ca46c;this['_annotationViews']['has'](_0x20c932['id'])?(_0xf39b86=this['_annotationViews']['get'](_0x20c932['id']),_0x3700a7=_0xf39b86['mainView']):(_0x3700a7=new _0xb22354(_0x1bbead['locale'],_0x20c932,_0x4c57cb,{'disableComments':this['_disableComments'],'editorConfig':{..._0x6bcd35['get']('comments.editorConfig'),'licenseKey':_0x6bcd35['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x6bcd35['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x6bcd35['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x6bcd35['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xcc5a57(_0x6bcd35['get']('locale'),_0x1bbead['locale']),'CommentView':_0x6bcd35['get']('comments')['CommentView'],'CommentsListView':_0x53275e,'CommentThreadInputView':_0x2caa76,'SuggestionView':_0x566d49}),_0x3700a7['suggestionView']['acceptButton']['on']('execute',()=>{_0x1bbead['editing']['view']['focus']();}),_0x3700a7['suggestionView']['discardButton']['on']('execute',()=>{_0x1bbead['editing']['view']['focus']();}),_0xf39b86=_0x3e5668['createAnnotationView'](this['editor']['locale'],_0x3700a7),_0xf39b86['bind']('isDirty')['to'](_0x3700a7,'isDirty'),_0xf39b86['bind']('length')['to'](_0x3700a7),_0xf39b86['bind']('type')['to'](_0x3700a7,'type',_0x1076de=>'suggestion-'+_0x1076de),_0x3700a7['on']('escape',()=>{_0x5ca46c['fire']('escape');}),this['_annotationViews']['set'](_0x20c932['id'],_0xf39b86));const _0x282bbb=_0x404d16['createCommentThreadController'](_0x20c932['commentThread'],_0x3700a7),_0x1b19d1=new pe(_0x1bbead,_0x20c932,_0x3700a7,_0x282bbb),_0x31fdc2=_0x20c932['getAllAdjacentSuggestions']()['filter'](_0x3a5f8e=>_0x3a5f8e['isInContent']);_0x3700a7['descriptionParts']=_0x1bbead['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x31fdc2),this['_suggestionToController']['set'](_0x20c932,_0x1b19d1),this['_viewToController']['set'](_0x3700a7,_0x1b19d1);const _0x4f6d4a=()=>{const _0x314785=[],_0x46943c=_0x20c932['getAllAdjacentSuggestions']()['filter'](_0x1ff6e8=>_0x1ff6e8['isInContent']);for(const _0xcc890f of _0x46943c)_0x314785['push'](..._0xcc890f['getMarkers']());return _0x474c9a(_0x1bbead['editing'],_0x314785);};_0x5ca46c=_0x3e5668['createAnnotation']({'view':_0xf39b86,'target':_0x4f6d4a,'type':()=>'suggestion-'+_0x1b19d1['view']['type'],'isVisible':!!_0x4f6d4a()}),_0x404d16['_bindAnnotationToEditors'](_0x3700a7,_0x5ca46c),_0x3e5668['add'](_0x5ca46c),_0x2d471b['registerAnnotation'](_0x5ca46c);}['_destroyController'](_0x376b8b){const _0x2e2cfa=this['editor']['plugins']['get']('CommentsRepository'),_0x463323=this['editor']['plugins']['get']('Annotations'),_0x37de5=this['_suggestionToController']['get'](_0x376b8b),_0x510b2c=_0x37de5['view'],_0x3cbbe3=_0x463323['getByInnerView'](_0x510b2c);_0x2e2cfa['_unbindEditors'](_0x510b2c),_0x3cbbe3&&_0x463323['remove'](_0x3cbbe3),this['_suggestionToController']['delete'](_0x376b8b),this['_viewToController']['delete'](_0x510b2c),_0x37de5['destroy']();}['_updateController'](_0xfb2da4){if(!_0xfb2da4['isInContent']||!this['_suggestionToController']['has'](_0xfb2da4))return;const _0xe931e2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26c17d=this['_suggestionToController']['get'](_0xfb2da4),_0x6f5446=_0xfb2da4['getAllAdjacentSuggestions']();_0x26c17d['view']['descriptionParts']=_0xe931e2['descriptionFactory']['getDescriptions'](_0x6f5446);}['destroy'](){for(const _0x46570a of this['_suggestionToController']['keys']())this['_destroyController'](_0x46570a);for(const _0x127460 of this['_annotationViews']['values']())_0x127460['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3dd5f8){return'model'in _0x3dd5f8;}class Ue extends _0xda0844{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3fac10){this['editor']['plugins']['get'](d)['adapter']=_0x3fac10;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x115739){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x115739);}['getSuggestions']({skipNotAttached:_0x10de23=!0x1,toJSON:_0xa54083=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x10de23,'toJSON':_0xa54083});}['getSuggestion'](_0x285dcc){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x285dcc);}}const p=['Pagination'];class re extends _0xda0844{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3fa696=this['editor'];if(_0x3fa696['config']['define']('trackChangesData.editorCreator',_0x4654b3=>{const _0x499906=_0x3fa696['model']['document']['getRootNames']()['reduce']((_0x50cbe4,_0x593e9d)=>(_0x50cbe4[_0x593e9d]='',_0x50cbe4),{});return _0x3fa696['constructor']['create'](_0x499906,_0x4654b3);}),'function'!=typeof _0x3fa696['config']['get']('trackChangesData')['editorCreator'])throw new _0x43dce0('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x43c4b6){return P(this['editor'],!0x0,_0x43c4b6);}['getDataWithDiscardedSuggestions'](_0x4912bb){return P(this['editor'],!0x1,_0x4912bb);}}class Ge extends _0xda0844{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4c449d){function _0x5a01b6(_0x223583){return _0x223583['map'](_0x413585=>String['fromCharCode'](_0x413585))['join']('');}super(_0x4c449d),this['result']='end',_0x4c449d[_0x5a01b6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a01b6([0x76,0x69,0x65,0x77])][_0x5a01b6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5a01b6([0x61,0x75,0x74,0x6f]),_0x4c449d[_0x5a01b6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5a01b6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5a01b6([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5a01b6([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5a01b6([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 He(_0x389fb0){return void 0x0!==_0x389fb0['getRootsAttributes'];}async function P(_0x50f2d4,_0x2ff8a1,_0x42a4e2){const _0x5cdd9b=_0x593e0b(_0x50f2d4,p);_0x5cdd9b['plugins']['push'](d,Ge),_0x5cdd9b['rootsAttributes']=He(_0x50f2d4)?_0x50f2d4['getRootsAttributes']():void 0x0;const _0x4e6130=document['createDocumentFragment'](),_0x2d725e=_0x50f2d4['config']['get']('trackChangesData')['editorCreator'],_0x3867d7=await _0x2d725e(_0x5cdd9b,()=>function(_0x2a7d46){const _0x1bbc22=document['createElement']('div');return _0x2a7d46['appendChild'](_0x1bbc22),_0x1bbc22;}(_0x4e6130));!function(_0xa88b0c,_0xdd43fb){const _0x4a1078=_0xa88b0c['model']['document']['getRootNames']()['reduce']((_0x1f5388,_0x2fae22)=>(_0x1f5388[_0x2fae22]=_0xa88b0c['data']['get']({'rootName':_0x2fae22}),_0x1f5388),{}),_0x5c4a56=_0xa88b0c['plugins']['get']('Users')['users']['map'](_0x13a9b9=>({'id':_0x13a9b9['id'],'name':_0x13a9b9['name']})),_0x1162e2=_0xa88b0c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2d5190=_0xa88b0c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x362c14=_0xdd43fb['plugins']['get']('Users'),_0x527d7f=_0xdd43fb['plugins']['get']('TrackChangesEditing'),_0x2ecb8a=_0xdd43fb['plugins']['get']('CommentsRepository');for(const _0x570aaa of _0x2ecb8a['getCommentThreads']())_0x570aaa['remove']();for(const _0x49316b of _0x5c4a56)_0x362c14['getUser'](_0x49316b['id'])||_0x362c14['addUser'](_0x49316b);_0x362c14['me']||_0x362c14['useAnonymousUser']();for(const _0x12662e of _0x2d5190)_0x2ecb8a['addCommentThread'](_0x12662e);for(const _0x3e2d51 of _0x1162e2)_0x527d7f['addSuggestionData'](_0x3e2d51);_0xdd43fb['data']['set'](_0x4a1078);}(_0x50f2d4,_0x3867d7),_0x3867d7['execute'](_0x2ff8a1?'acceptAllSuggestions':'discardAllSuggestions');const _0x40f92c=He(_0x3867d7)?_0x3867d7['getFullData'](_0x42a4e2):_0x3867d7['data']['get'](_0x42a4e2);return await _0x3867d7['destroy'](),_0x40f92c;}class De extends _0x19b119{['options'];constructor(_0x2e7071,_0x21df5f){super(_0x2e7071),this['options']=_0x21df5f,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'](_0x2d5f86,_0xea3b7e){if(!this['element'])return;const _0x5d435=[];for(const [_0xfc7a4b,_0x23e17d]of _0x2d5f86){const _0x5738c7=document['createElement']('div');_0x5738c7['setAttribute']('data-ck-root-name',_0xfc7a4b),_0x5738c7['className']=_0x23e17d['classes']+'\x20ck-track-changes-preview__root-container',_0x5738c7['innerHTML']=_0x23e17d['content'],_0x5d435['push'](_0x5738c7);}_0xea3b7e(this['element'],_0x5d435),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x46da0f{constructor(_0x1ce0a1){super(_0x1ce0a1),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0xfa18fe=this['editor'],_0x594de0=_0xfa18fe['locale'],_0x2faf56=_0xfa18fe['plugins']['get']('Dialog');let _0x10a5ec;const _0x26440c=function(_0x498959){const _0x401611={};if('editables'in _0x498959['ui']['view']){for(const [_0x6204ea,_0xee7d4a]of Object['entries'](_0x498959['ui']['view']['editables']))_0x401611[_0x6204ea]=_0xee7d4a['element'];}else _0x401611[_0x498959['model']['document']['getRootNames']()[0x0]]=_0x498959['ui']['view']['editable']['element'];return _0x401611;}(_0xfa18fe),_0x1c4c62=function(_0x1f2519){let _0x210916=0x0;for(const _0x45f46f of Object['values'](_0x1f2519))_0x210916=Math['max'](_0x210916,_0x45f46f['getBoundingClientRect']()['width']);let _0x2fdcd3=0x0;for(const _0x18fcd2 of Object['values'](_0x1f2519))_0x2fdcd3+=_0x18fcd2['getBoundingClientRect']()['height'];const _0x3de1e5=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x7c36e6=Math['min'](_0x2fdcd3,_0x3de1e5);return{'width':_0x210916,'height':_0x7c36e6};}(_0x26440c);_0x2faf56['show']({'id':'finalContentPreview','title':o(_0x594de0,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new De(_0x594de0,{'dialogRects':_0x1c4c62}),'onHide':()=>{_0x10a5ec['detachFromDom']();},'onShow':()=>{_0xfa18fe['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x20d299=>{const _0x48690c=this['_standarizeRootsData'](_0x20d299,_0xfa18fe,_0x26440c);_0x2faf56['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x48690c,_0xfa18fe['config']['get']('trackChanges.preview.renderFunction'));}),_0x10a5ec=new _0x5f0ece(_0x594de0,[_0x2faf56['view']]),_0x10a5ec['attachToDom'](),_0x10a5ec['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0xfa18fe['once']('destroy',()=>{_0x10a5ec['detachFromDom']();});const _0x34b0e3=_0x2faf56['view']['headerView']['class'];_0x2faf56['view']['headerView']['class']=_0x34b0e3?_0x34b0e3+'\x20ck-reset_all':'ck-reset_all',_0x2faf56['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2faf56['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1c719f=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2bf7c7=_0x1c719f['previewMode'],_0x530fd3={};if('$labels'===_0x2bf7c7){for(const _0x2a7d75 of _0x1c719f['getMergeFieldsIds']())_0x530fd3[_0x2a7d75]=_0x1c719f['getLabel'](_0x2a7d75)||_0x2a7d75;}else{const _0x38bf53='$defaultValues'===_0x2bf7c7?_0x1c719f['getDefaultValues']():_0x1c719f['getDataSetValues'](_0x2bf7c7,!0x0);for(const _0x3ffd52 of Object['entries'](_0x38bf53)){const [_0x1c298f,_0x438a0f]=_0x3ffd52;_0x530fd3[_0x1c298f]=null!==_0x438a0f?_0x438a0f:_0x1c719f['getLabel'](_0x1c298f)||_0x1c298f;}}return{'mergeFieldsData':_0x530fd3};}['_standarizeRootsData'](_0x3b628,_0x3a3e8b,_0x2640a0){let _0x1a8f38;if('string'==typeof _0x3b628){const _0x2d5be2=_0x3a3e8b['model']['document']['getRootNames']()[0x0];_0x1a8f38={[_0x2d5be2]:_0x3b628};}else _0x1a8f38=_0x3b628;const _0x32554a=this['_fixMediaEmbeds'](_0x1a8f38,_0x3a3e8b),_0x44e0dc=function(_0x169521,_0x1df7d5){for(const [_0x1ee4d5,_0x5d99d3]of _0x169521)_0x5d99d3['classes']=_0x1df7d5[_0x1ee4d5]['classList']['value']['replace']('ck-focused','');return _0x169521;}(this['_sortRoots'](_0x3a3e8b)['reduce']((_0x4f7256,_0x3a4bae)=>(_0x4f7256['push']([_0x3a4bae,{'content':_0x32554a[_0x3a4bae],'classes':''}]),_0x4f7256),[]),_0x2640a0);return _0x44e0dc;}['_fixMediaEmbeds'](_0x1a16a8,_0x4569a9){if(!_0x4569a9['plugins']['has']('MediaEmbedEditing'))return _0x1a16a8;const _0x84cdc3=_0x4569a9['plugins']['get']('MediaEmbedEditing');for(const [_0x4327d9,_0x517024]of Object['entries'](_0x1a16a8)){const _0x3d88e8=document['createElement']('div');_0x3d88e8['innerHTML']=_0x517024,(_0x3d88e8['querySelectorAll']('figure.media')['forEach'](_0x47f6d6=>{const _0xb065d0=_0x47f6d6['querySelector']('oembed');if(_0xb065d0){const _0x38f36d=_0xb065d0['getAttribute']('url');if(_0x38f36d){const _0x194688=_0x84cdc3['registry']['getMediaViewElement'](new _0x2ea243(_0x4569a9['editing']['view']['document']),_0x38f36d,{'elementName':'','renderForEditingView':!0x0}),_0x33eb4c=document['createElement']('div');_0x33eb4c['classList']['add']('ck-media__wrapper'),_0x194688['render'](_0x33eb4c,_0x4569a9['editing']['view']['domConverter']),_0xb065d0['replaceWith'](_0x33eb4c);}}}),_0x1a16a8[_0x4327d9]=_0x3d88e8['innerHTML']);}return _0x1a16a8;}['_sortRoots'](_0x457438){if(!function(_0x229423){return void 0x0!==_0x229423['getRootsAttributes'];}(_0x457438))return _0x457438['model']['document']['getRootNames']();const _0x301f09=[],_0x4792ec=new Map();for(const _0x34c283 of _0x457438['model']['document']['getRootNames']()){const _0x2147fa=_0x457438['editing']['view']['getDomRoot'](_0x34c283)['getClientRects']()['item'](0x0);_0x301f09['push'](_0x34c283),_0x4792ec['set'](_0x34c283,_0x2147fa);}return _0x301f09['sort']((_0x2e0730,_0x405f3f)=>{const _0x46272f=_0x4792ec['get'](_0x2e0730),_0x31fca0=_0x4792ec['get'](_0x405f3f);return _0x46272f['y']-_0x31fca0['y']||_0x46272f['x']-_0x31fca0['x'];}),_0x301f09;}}class $e extends _0xda0844{static get['requires'](){return[re,_0x7eee77];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x243c52){super(_0x243c52),_0x243c52['commands']['add']('previewFinalContent',new te(this['editor'])),_0x243c52['config']['define']('trackChanges.preview.renderFunction',(_0x1ee386,_0x3f7dd0)=>{for(const _0x3aab22 of _0x3f7dd0)_0x1ee386['appendChild'](_0x3aab22);});}}export{D as AcceptSuggestionCommand,ti as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ue as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,u as TrackChangesUI};
23
+ import{Command as _0x2a287a,Plugin as _0x263240,PendingActions as _0x16f9db}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x337eb4,ObservableMixin as _0x32a230,uid as _0x57604c,priorities as _0x441968,insertToPriorityArray as _0x2ef278,toArray as _0xf6b931,logWarning as _0x218c78,getEnvKeystrokeText as _0x25637d,FocusTracker as _0x4b78be,KeystrokeHandler as _0x1a3c4d,Collection as _0x1cea23}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x4a6cf9,IconCancel as _0x37847e,IconTrackChanges as _0x2f6aae}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x59b6e4,View as _0x2cc885,ViewCollection as _0x475221,FocusCycler as _0x43ca98,UIModel as _0x244651,createDropdown as _0x96c8cc,SplitButtonView as _0xa8e044,addListToDropdown as _0x4f85af,MenuBarMenuView as _0x28589a,MenuBarMenuListView as _0xbd36a7,ListSeparatorView as _0xa412e4,MenuBarMenuListItemView as _0x392e97,MenuBarMenuListItemButtonView as _0x6f2787,BodyCollection as _0x44bde5,Dialog as _0x54cf74}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x48e968,hashObject as _0x1f3607,surroundingMarkersDetector as _0x353e4c,FOCUS_ANNOTATION_KEYSTROKE as _0x4ba44d,AriaDescriptionView as _0x1e1178,setupThreadKeyboardNavigation as _0x43bf41,trimHtml as _0x230f0c,UserView as _0x3e52ab,LateFocusButtonView as _0x13845d,getDateTimeFormatter as _0x496f9b,getAllMarkersDomElementsSorted as _0x3b6b15,sanitizeEditorConfig as _0x58d8c0}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x4a997b,ModelLiveRange as _0x4451e6,ModelLivePosition as _0x4a053f,ViewDowncastWriter as _0x599951}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x1ac5db,toWidget as _0xf724b7}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x24d98f,set as _0x2fda02,isEqual as _0x3d59cf,unset as _0x184113,omit as Ut}from'es-toolkit/compat';import{Delete as _0x2226db,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2d2f12}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x48848f}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x2a287a{['_enabledCommands'];constructor(_0x31bc56,_0x27aade){super(_0x31bc56),this['_enabledCommands']=_0x27aade,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 _0x40358d of this['editor']['commands']['commands']())_0x40358d['affectsData']&&!this['_enabledCommands']['has'](_0x40358d)&&_0x40358d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4f9d1d of this['editor']['commands']['commands']())_0x4f9d1d['affectsData']&&!this['_enabledCommands']['has'](_0x4f9d1d)&&_0x4f9d1d['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x2a287a{['_suggestions'];constructor(_0x58cc71,_0x50e7c4){super(_0x58cc71),this['_suggestions']=_0x50e7c4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1f10bb){const _0x1b33c0=this['_suggestions']['get'](_0x1f10bb);if(!_0x1b33c0)throw new _0x337eb4('track-changes-accept-suggestion-not-found',this);const _0x567370=_0x1b33c0['getRanges']();this['editor']['model']['canEditAt'](_0x567370)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1b33c0);}}class $ extends _0x2a287a{['_suggestions'];constructor(_0x20fff8,_0x54791a){super(_0x20fff8),this['_suggestions']=_0x54791a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xb4d204){const _0xdb9198=this['_suggestions']['get'](_0xb4d204);if(!_0xdb9198)throw new _0x337eb4('track-changes-discard-suggestion-not-found',this);const _0x3b61cd=_0xdb9198['getRanges']();this['editor']['model']['canEditAt'](_0x3b61cd)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xdb9198);}}function ls(_0x1d85c6,_0xc148de){let _0x3e09f2='';return _0x3e09f2+=_0x1d85c6['split']('*')['map']((_0x65266c,_0x20a355)=>_0x20a355%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Zt(_0x65266c)+'</span>':Zt(_0x65266c))['join'](''),_0xc148de&&(_0x3e09f2+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xc148de['value']+'\x22\x20title=\x22'+_0xc148de['title']+'\x22></span>'),_0x3e09f2;}function Zt(_0x2c9fad){const _0x1d199f=document['createElement']('span');return _0x1d199f['innerText']=_0x2c9fad,_0x1d199f['innerHTML'];}function ts(_0x12df58){return _0x12df58['sort']((_0x42c633,_0x5c121e)=>'attribute'===_0x42c633['type']&&'attribute'!==_0x5c121e['type']?-0x1:'attribute'!==_0x42c633['type']&&'attribute'===_0x5c121e['type']?0x1:'deletion'==_0x42c633['type']&&'deletion'!=_0x5c121e['type']?-0x1:'deletion'!=_0x42c633['type']&&'deletion'==_0x5c121e['type']?0x1:0x0);}function to(_0x5a5c64,_0x2ca17e){let _0x2259c9,_0x15cbca=0x0;const _0x48e303=[],_0x2b4a85=_0x2ca17e['schema'];for(;_0x15cbca<_0x5a5c64['length'];){const _0x2823f4=_0x5a5c64[_0x15cbca],_0x307234=_0x5a5c64[_0x15cbca+0x1];_0x2259c9||(_0x2259c9=_0x2ca17e['createPositionBefore'](_0x2823f4)),tn(_0x2ca17e,_0x2823f4,_0x307234)||(_0x48e303['push'](_0x2ca17e['createRange'](_0x2259c9,_0x2b4a85['isObject'](_0x2823f4)?_0x2ca17e['createPositionAfter'](_0x2823f4):_0x2ca17e['createPositionAt'](_0x2823f4,'end'))),_0x2259c9=null),_0x15cbca++;}return _0x48e303;}function tn(_0x2cfb29,_0x537137,_0x27bf4e){if(!_0x27bf4e)return!0x1;const _0x2b73ca=_0x2cfb29['createPositionAfter'](_0x537137),_0x47b8be=_0x2cfb29['createPositionBefore'](_0x27bf4e);return _0x2b73ca['isTouching'](_0x47b8be);}function rs(_0xad61f8,_0x42e501,_0xa74211){for(;_0xa74211['length'];){const _0x31411e=_0xa74211['splice'](0x0,0x64);_0xad61f8['change'](()=>{for(const _0x415a7d of _0x31411e)_0x415a7d['isInContent']&&_0x42e501['execute'](_0x415a7d['id']);});}}class M extends _0x2a287a{['_command'];['_suggestions'];constructor(_0xbc81d0,_0x5a9e26,_0x1e355a){super(_0xbc81d0),this['_command']=_0x5a9e26,this['_suggestions']=_0x1e355a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xa10aed=Array['from'](this['_suggestions']['values']())['some'](_0x4c8c05=>_0x4c8c05['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0xa10aed;}['execute'](){const _0x199623=ts(Array['from'](this['_suggestions']['values']()));for(const _0x132d20 of _0x199623){const _0x20ee0e=_0x132d20['getRanges']();if(!this['editor']['model']['canEditAt'](_0x20ee0e))return;}rs(this['editor']['model'],this['_command'],_0x199623);}}class B extends _0x2a287a{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xbeb7f,_0x35e6ac,_0x4ae3c0){super(_0xbeb7f),this['_command']=_0x35e6ac,this['_suggestions']=_0x4ae3c0,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xc98c67=this['editor']['model']['document']['selection'],_0x40d512=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x412176,_0x16d4ee){const _0x115424=Array['from'](_0x412176['getRanges']()),_0x1d17ec=new Set();for(const _0x2ecd7e of _0x16d4ee)if(_0x2ecd7e['isInContent']){for(const _0x5ea69c of _0x115424)for(const _0xd16d31 of _0x2ecd7e['getRanges']())(_0x5ea69c['isIntersecting'](_0xd16d31)||_0x412176['isCollapsed']&&!_0x2ecd7e['isMultiRange']&&_0x2ecd7e['next']&&_0xd16d31['end']['isTouching'](_0x5ea69c['start']))&&_0x1d17ec['add'](_0x2ecd7e);}return _0x1d17ec;}(_0xc98c67,_0x40d512),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4a5672=ts(Array['from'](this['_selectedSuggestions']));for(const _0x5db763 of _0x4a5672){const _0x4b747a=_0x5db763['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4b747a))return;}rs(this['editor']['model'],this['_command'],_0x4a5672);}}class T extends/* #__PURE__ -- @preserve */
24
+ _0x32a230(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x53d17f,_0x508dd0){super(),this['id']=_0x508dd0['id'],this['type']=_0x508dd0['type'],this['subType']=_0x508dd0['subType']||null,this['author']=_0x508dd0['author'],this['creator']=_0x508dd0['creator']||_0x508dd0['author'],this['isExternal']=Boolean(_0x508dd0['attributes']&&_0x508dd0['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x508dd0['originalSuggestionId']||null,this['_model']=_0x53d17f,this['_onAccept']=_0x508dd0['onAccept'],this['_onDiscard']=_0x508dd0['onDiscard'],this['_onAttributesChange']=_0x508dd0['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x508dd0['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 _0x2bb0c0=this;for(;_0x2bb0c0['previous'];)_0x2bb0c0=_0x2bb0c0['previous'];return _0x2bb0c0;}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'](_0x278def){this['_markerNames']['add'](_0x278def);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x30d0dd=>this['_model']['markers']['get'](_0x30d0dd))['filter'](_0x49fc64=>_0x49fc64);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x53c96e=>{for(const _0xa56a94 of this['getMarkers']())_0x53c96e['removeMarker'](_0xa56a94);}),this['_markerNames']['clear']();}['removeMarker'](_0x39b9d9){this['_model']['change'](_0x4ca517=>{_0x4ca517['removeMarker'](_0x39b9d9);}),this['_markerNames']['delete'](_0x39b9d9);}['addRange'](_0x5a96ba){const _0x454dae='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x454dae),this['_model']['change'](_0x303d92=>{_0x303d92['addMarker'](_0x454dae,{'range':_0x5a96ba,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x483940){for(const _0x332c6c of this['getRanges']())if(_0x332c6c['isIntersecting'](_0x483940))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5c2155=>_0x5c2155['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x177363,_0x4b7093)=>[..._0x177363,..._0x4b7093['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2d7aaa=this['getRanges']();if(0x1!=_0x2d7aaa['length'])return null;const _0x572530=_0x2d7aaa[0x0],_0x3bb371=_0x572530['start']['nodeAfter'],_0x1f3027=_0x572530['end']['nodeBefore'];return _0x3bb371 instanceof _0x4a997b?_0x3bb371!=_0x1f3027?null:_0x3bb371: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 _0x10b33=[];let _0x37ea6a=this['head'];for(;_0x37ea6a;)_0x10b33['push'](_0x37ea6a),_0x37ea6a=_0x37ea6a['next'];return _0x10b33;}['setAttribute'](_0x141558,_0x4632be){const _0x5b01a7=_0x24d98f(this['attributes']);_0x2fda02(_0x5b01a7,_0x141558,_0x4632be),_0x3d59cf(_0x5b01a7,this['attributes'])||(this['attributes']=_0x5b01a7,this['_onAttributesChange'](_0x5b01a7));}['removeAttribute'](_0x39d58f){const _0x3a8840=_0x24d98f(this['attributes']);_0x184113(_0x3a8840,_0x39d58f),_0x3d59cf(_0x3a8840,this['attributes'])||(this['attributes']=_0x3a8840,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 _0x57604c()['substr'](0x1,0x5);}}function o(_0x551ce2,_0x3fc95e,_0x12b66f){const _0x56e541=_0x551ce2['t'],t=_0x551ce2['t'];switch(_0x3fc95e){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',_0x12b66f);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x12b66f);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x12b66f);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x12b66f);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x12b66f);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',_0x12b66f);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x12b66f);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',_0x12b66f);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x12b66f);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x12b66f);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x12b66f);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x12b66f);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x12b66f);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x12b66f);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x12b66f);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x12b66f);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x12b66f);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x12b66f);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x12b66f);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x12b66f);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x12b66f);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x12b66f);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x12b66f);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x12b66f);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x12b66f);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'},_0x12b66f);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x12b66f);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x12b66f);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x12b66f);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x12b66f);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x12b66f);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x12b66f);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x12b66f);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x12b66f);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x12b66f);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x12b66f);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x12b66f);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x12b66f);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_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'},_0x12b66f);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x12b66f);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'},_0x12b66f);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_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'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'},_0x12b66f);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x12b66f);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'},_0x12b66f);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x12b66f);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'},_0x12b66f);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x12b66f);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x12b66f);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'},_0x12b66f);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x12b66f);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 _0x56e541({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x12b66f);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x56e541({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x12b66f);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x12b66f);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'},_0x12b66f);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'},_0x12b66f);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'},_0x12b66f);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3fc95e;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2895e3,_0x285db8){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2895e3,this['_locale']=_0x285db8;}['getDescriptions'](_0x3a013d){const _0x407ca4=[],_0x187e97=new Set(),_0x523039=new Set();for(let _0x50a688=0x0;_0x50a688<_0x3a013d['length'];_0x50a688++){const _0x45d47f=_0x3a013d[_0x50a688];if(!_0x45d47f['isInContent'])continue;const _0x558495=this['_handleCustomCallbackDescription'](_0x45d47f);if(_0x558495){if(null!=_0x45d47f['subType']){if(_0x187e97['has'](_0x45d47f['subType']))continue;_0x187e97['add'](_0x45d47f['subType']);}_0x407ca4['push'](_0x558495);}else{if('attribute'==_0x45d47f['type']){const _0x41a97b=_0x45d47f['data']['key'];if(_0x523039['has'](_0x41a97b))continue;_0x523039['add'](_0x45d47f['data']['key']),_0x41a97b==m?this['_handleRenameSuggestionDescription'](_0x407ca4,_0x45d47f):this['_handleAttributeSuggestionDescription'](_0x407ca4,_0x45d47f);continue;}'insertion'!=_0x45d47f['type']&&'deletion'!=_0x45d47f['type']||this['_handleInsertRemoveSuggestionDescription'](_0x407ca4,_0x45d47f,_0x3a013d[_0x50a688+0x1]);}}return this['_resolveDescriptionItems'](_0x407ca4);}['registerDescriptionCallback'](_0x2032c3){this['_customCallbacks']['push'](_0x2032c3);}['registerElementLabel'](_0x42f2af,_0x2d8464,_0x5d5ccf=_0x441968['normal']){'function'==typeof _0x42f2af?_0x2ef278(this['_itemLabelsCallbacks'],{'matchingCallback':_0x42f2af,'label':_0x2d8464,'priority':_0x5d5ccf}):this['_itemLabels']['set'](_0x42f2af,_0x2d8464);}['registerAttributeLabel'](_0x5af387,_0x8de23d){this['_attributeLabels']['set'](_0x5af387,_0x8de23d);}['getItemLabel'](_0x85a42f,_0x3f06b8=0x1){let _0x332ebf;for(const _0x91273c of this['_itemLabelsCallbacks'])if(_0x91273c['matchingCallback'](_0x85a42f)){_0x332ebf=_0x91273c['label'];break;}return _0x332ebf||(_0x332ebf=this['_itemLabels']['get'](_0x85a42f['name'])),_0x332ebf?_0x332ebf(_0x3f06b8):0x1!==_0x3f06b8?_0x3f06b8+'\x20'+_0x85a42f['name']+'s':''+_0x85a42f['name'];}['_addDescriptionItems'](_0x3a5445,_0x73a2f5){const _0x36a15d=_0x73a2f5['getFirstRange']()['getWalker'](),_0xa760d2='insertion'==_0x73a2f5['type']?'add':'remove';for(const _0x3959e9 of _0x36a15d){const _0x188755=_0x3959e9['item'],_0xda00b3=_0x3a5445[_0x3a5445['length']-0x1];if(_0x188755['is']('$textProxy'))_0xda00b3&&_0xda00b3['type']['indexOf']('Container')>-0x1&&_0x3a5445['pop'](),_0xda00b3&&'text'==_0xda00b3['type']?_0xda00b3[_0xa760d2]+=_0x188755['data']:_0x3a5445['push']({'type':'text','add':'add'==_0xa760d2?_0x188755['data']:'','remove':'remove'==_0xa760d2?_0x188755['data']:''});else{if(this['_schema']['isObject'](_0x188755)){const _0x56cf94=_0x188755;if(_0xda00b3&&_0xda00b3['type']['indexOf']('Container')>-0x1&&_0x3a5445['pop'](),'elementEnd'==_0x3959e9['type'])continue;_0xda00b3&&_0xda00b3['type']==_0xa760d2+'Object'&&_0xda00b3['element']['name']==_0x56cf94['name']?_0xda00b3['quantity']++:_0x3a5445['push']({'type':_0xa760d2+'Object','element':_0x56cf94,'quantity':0x1}),_0x36a15d['skip'](_0x15648d=>!('elementEnd'==_0x15648d['type']&&_0x15648d['item']==_0x188755));}else{if(this['_schema']['checkChild'](_0x188755,'$text')||_0x188755['is']('element','softBreak')){const _0x111f29=_0x188755;if('add'==_0xa760d2&&'elementStart'==_0x3959e9['type']||'remove'==_0xa760d2&&'elementEnd'==_0x3959e9['type'])continue;if(_0xda00b3&&-0x1==_0xda00b3['type']['indexOf']('Container')){'text'==_0xda00b3['type']&&(_0xda00b3[_0xa760d2]+='\x0a');continue;}let _0x4284d6;if(_0x4284d6='add'==_0xa760d2?_0x111f29['nextSibling']&&!this['_schema']['isObject'](_0x111f29['nextSibling'])?_0x111f29['nextSibling']:null:_0x111f29['previousSibling']&&!this['_schema']['isObject'](_0x111f29['previousSibling'])?_0x111f29['previousSibling']:null,_0x111f29['isEmpty']||_0x4284d6&&_0x4284d6['isEmpty']){const _0x25b8c6=_0x4284d6&&_0x4284d6['isEmpty']?_0x4284d6:_0x111f29;_0xda00b3&&_0xda00b3['type']==_0xa760d2+'EmptyContainer'&&_0xda00b3['element']['name']==_0x25b8c6['name']?_0xda00b3['quantity']++:_0x3a5445['push']({'type':_0xa760d2+'EmptyContainer','element':_0x25b8c6,'quantity':0x1});}else _0x3a5445['push']({'type':_0xa760d2+'Container','element':_0x111f29});}}}}}['_resolveDescriptionItems'](_0x100f0c){const _0x525a3a=this['_locale'],_0x4458e7=[],_0x27b623=[],_0x295398=[];for(const _0x474bf4 of _0x100f0c)switch(_0x474bf4['type']){case'text':if(_0x474bf4['add']=_0x474bf4['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x474bf4['remove']=_0x474bf4['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x474bf4['add']&&''!=_0x474bf4['remove']){_0x4458e7['push']({'type':'replace','content':o(_0x525a3a,'REPLACE_TEXT',['\x22'+_0x474bf4['remove']+'\x22','\x22'+_0x474bf4['add']+'\x22'])});continue;}if(null!=_0x474bf4['add']['match'](/^ +$/)){_0x4458e7['push']({'type':'insertion','content':o(_0x525a3a,'*Insert:*\x20%0',o(_0x525a3a,'ELEMENT_SPACE',_0x474bf4['add']['length']))});continue;}if(null!=_0x474bf4['remove']['match'](/^ +$/)){_0x4458e7['push']({'type':'deletion','content':o(_0x525a3a,'*Remove:*\x20%0',o(_0x525a3a,'ELEMENT_SPACE',_0x474bf4['remove']['length']))});continue;}if(''!=_0x474bf4['add']){_0x4458e7['push']({'type':'insertion','content':o(_0x525a3a,'*Insert:*\x20%0','\x22'+_0x474bf4['add']+'\x22')});continue;}_0x4458e7['push']({'type':'deletion','content':o(_0x525a3a,'*Remove:*\x20%0','\x22'+_0x474bf4['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4458e7['push']({'type':'insertion','content':o(_0x525a3a,'*Insert:*\x20%0',this['getItemLabel'](_0x474bf4['element'],_0x474bf4['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4458e7['push']({'type':'deletion','content':o(_0x525a3a,'*Remove:*\x20%0',this['getItemLabel'](_0x474bf4['element'],_0x474bf4['quantity']))});continue;case'addContainer':_0x4458e7['push']({'type':'insertion','content':o(_0x525a3a,'*Split:*\x20%0',this['getItemLabel'](_0x474bf4['element'],_0x474bf4['quantity']))});continue;case'removeContainer':_0x4458e7['push']({'type':'deletion','content':o(_0x525a3a,'*Merge:*\x20%0',this['getItemLabel'](_0x474bf4['element'],_0x474bf4['quantity']))});continue;case'addFormat':_0x27b623['push'](_0x474bf4['key']);continue;case'removeFormat':_0x295398['push'](_0x474bf4['key']);continue;default:_0x4458e7['push'](_0x474bf4);}if(_0x27b623['length']){const _0x4983fa=_0x27b623['map'](_0x45fbc3=>this['_attributeLabels']['has'](_0x45fbc3)?this['_attributeLabels']['get'](_0x45fbc3):_0x45fbc3)['join'](',\x20');_0x4458e7['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4983fa)});}if(_0x295398['length']){const _0x2a3f2a=_0x295398['map'](_0x39d48c=>this['_attributeLabels']['has'](_0x39d48c)?this['_attributeLabels']['get'](_0x39d48c):_0x39d48c)['join'](',\x20');_0x4458e7['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2a3f2a)});}return _0x4458e7;}['_handleCustomCallbackDescription'](_0x4dffa3){for(const _0x1a7e2d of this['_customCallbacks']){const _0x188635=_0x1a7e2d(_0x4dffa3);if(_0x188635&&'type'in _0x188635)return _0x188635;}}['_handleAttributeSuggestionDescription'](_0x550317,_0x28d165){const _0x24c967=_0x28d165['data'],_0x49a30e=void 0x0===_0x24c967['newValue']?'removeFormat':'addFormat';_0x550317['push']({'type':_0x49a30e,'key':_0x24c967['key']});}['_handleRenameSuggestionDescription'](_0x5cd1b6,_0x26b312){_0x5cd1b6['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x26b312['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x543bba,_0xb3f04f,_0x2e845d){if(this['_addDescriptionItems'](_0x543bba,_0xb3f04f),_0x2e845d&&_0x2e845d['getFirstRange']()&&!_0xb3f04f['getFirstRange']()['end']['isEqual'](_0x2e845d['getFirstRange']()['start'])){const _0xc69e0e=_0x543bba[_0x543bba['length']-0x1],_0x530537='insertion'==_0xb3f04f['type']?'add':'remove';_0xc69e0e&&'text'==_0xc69e0e['type']&&(_0xc69e0e[_0x530537]+='\x0a');}}}class O extends _0x263240{['afterInit'](){const _0x2c751=this['editor'],_0x599e36=_0x2c751['plugins']['get']('TrackChangesEditing');_0x2c751['commands']['get']('showAIAssistant')&&_0x599e36['enableCommand']('showAIAssistant');}}class E extends _0x263240{['afterInit'](){const _0x237cfd=this['editor'],_0x21e114=_0x237cfd['locale'];if(!_0x237cfd['plugins']['has']('AlignmentEditing'))return;const _0x27c440=_0x237cfd['plugins']['get']('TrackChangesEditing');_0x27c440['enableDefaultAttributesIntegration']('alignment'),_0x27c440['registerBlockAttribute']('alignment'),_0x27c440['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x21e114,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x258a2c=this['editor'],_0x21b3de=_0x258a2c['locale'];_0x258a2c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c8453=>{if('formatBlock'!=_0x3c8453['type'])return;const {data:_0x4c47b0}=_0x3c8453;if(_0x4c47b0&&'alignment'==_0x4c47b0['commandName']){const _0x5ebeea=_0x4c47b0['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x21b3de,'*Format:*\x20%0',function(_0x2fd4f9){switch(_0x2fd4f9){case'left':return o(_0x21b3de,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x21b3de,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x21b3de,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x21b3de,'FORMAT_JUSTIFY_TEXT');}}(_0x5ebeea))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x263240{['afterInit'](){const _0x34b544=this['editor'],_0x76b566=_0x34b544['plugins']['get']('TrackChangesEditing'),_0x6711d5=_0x34b544['locale'];for(const _0x3c3da8 of ti){if(!_0x34b544['plugins']['has'](_0x3c3da8))continue;const _0x3c16b5=_0x3c3da8['slice'](0x0,-0x7)['toLowerCase'](),_0x3fd405='FORMAT_'+_0x3c16b5['toUpperCase']();_0x76b566['enableDefaultAttributesIntegration'](_0x3c16b5),_0x76b566['registerInlineAttribute'](_0x3c16b5),_0x76b566['descriptionFactory']['registerAttributeLabel'](_0x3c16b5,o(_0x6711d5,_0x3fd405));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x571074=this['editor'],_0x3f266f=_0x571074['locale'],_0x1bb05b=_0x571074['plugins']['get']('TrackChangesEditing');function _0x4c3614(_0x18e3a8,_0x3e733f){_0x1bb05b['descriptionFactory']['registerDescriptionCallback'](_0xbc9340=>{if('formatInline'!=_0xbc9340['type'])return;const {data:_0x559bc8}=_0xbc9340;return _0x559bc8&&_0x559bc8['commandName']===_0x18e3a8?_0x559bc8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3f266f,'*Format:*\x20%0',_0x3e733f)}:{'type':'format','content':o(_0x3f266f,'*Remove\x20format:*\x20%0',_0x3e733f)}:void 0x0;});}_0x4c3614('bold',o(_0x3f266f,'FORMAT_BOLD')),_0x4c3614('italic',o(_0x3f266f,'FORMAT_ITALIC')),_0x4c3614('underline',o(_0x3f266f,'FORMAT_UNDERLINE')),_0x4c3614('code',o(_0x3f266f,'FORMAT_CODE')),_0x4c3614('strikethrough',o(_0x3f266f,'FORMAT_STRIKETHROUGH')),_0x4c3614('subscript',o(_0x3f266f,'FORMAT_SUBSCRIPT')),_0x4c3614('superscript',o(_0x3f266f,'FORMAT_SUPERSCRIPT'));}}class U extends _0x263240{['afterInit'](){const _0x228a0e=this['editor'],_0x2325eb=_0x228a0e['locale'];if(!_0x228a0e['plugins']['has']('BlockQuoteEditing'))return;const _0x490b5e=_0x228a0e['plugins']['get']('TrackChangesEditing'),_0x2d782c=this['editor']['commands']['get']('blockQuote');_0x490b5e['enableCommand']('blockQuote',(_0x30a83e,_0xc257c6={})=>{const _0xda5cf8=this['editor']['model']['document']['selection'],_0x51c4c4=_0xc257c6&&void 0x0!==_0xc257c6['forceValue']?_0xc257c6['forceValue']:!_0x2d782c['value'];let _0xf240b6=[];if(_0x51c4c4){const _0x3c55d2=Array['from'](_0xda5cf8['getSelectedBlocks']())['filter'](_0x349237=>oo(_0x349237)||function(_0x48881f,_0x7d782b){const _0x895ba5=_0x7d782b['checkChild'](_0x48881f['parent'],'blockQuote'),_0x5cdfc9=_0x7d782b['checkChild'](['$root','blockQuote'],_0x48881f);return _0x895ba5&&_0x5cdfc9;}(_0x349237,this['editor']['model']['schema']));_0xf240b6=to(_0x3c55d2,_0x228a0e['model']);}else{const _0x229d38=Array['from'](_0xda5cf8['getSelectedBlocks']())['filter'](_0x54d159=>oo(_0x54d159));_0xf240b6=to(_0x229d38,_0x228a0e['model']);}_0x228a0e['model']['change'](()=>{for(const _0x1ada8f of _0xf240b6)_0x490b5e['markBlockFormat'](_0x1ada8f,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x51c4c4}]});});}),_0x490b5e['descriptionFactory']['registerDescriptionCallback'](_0x4da6ae=>{const {data:_0x4204b6}=_0x4da6ae;if(_0x4204b6&&'blockQuote'==_0x4204b6['commandName']){const _0x405626=o(_0x2325eb,'ELEMENT_BLOCK_QUOTE');return _0x4204b6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2325eb,'*Set\x20format:*\x20%0',_0x405626)}:{'type':'format','content':o(_0x2325eb,'*Remove\x20format:*\x20%0',_0x405626)};}});}}function oo(_0x15434b){return'blockQuote'==_0x15434b['parent']['name'];}class V extends _0x263240{['afterInit'](){const _0x538756=this['editor'],_0x585b2f=_0x538756['locale'],_0x40d33e=_0x538756['plugins']['get']('TrackChangesEditing');_0x538756['plugins']['has']('BookmarkEditing')&&(_0x40d33e['enableCommand']('insertBookmark'),_0x40d33e['enableDefaultAttributesIntegration']('updateBookmark'),_0x40d33e['registerBlockAttribute']('bookmarkId'),_0x40d33e['descriptionFactory']['registerDescriptionCallback'](_0x1d6851=>{if('insertion'!=_0x1d6851['type']&&'deletion'!=_0x1d6851['type']&&'attribute'!=_0x1d6851['type'])return;const _0x159fae=_0x1d6851['getContainedElement']();if(null==_0x159fae)return;if(!_0x159fae['is']('element','bookmark'))return;const _0x3d3a46=_0x159fae['getAttribute']('bookmarkId');if('insertion'==_0x1d6851['type'])return{'type':'insertion','content':o(_0x585b2f,'*Insert:*\x20%0','\x22'+_0x3d3a46+'\x22\x20'+o(_0x585b2f,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1d6851['type'])return{'type':'deletion','content':o(_0x585b2f,'*Remove:*\x20%0','\x22'+_0x3d3a46+'\x22\x20'+o(_0x585b2f,'ELEMENT_BOOKMARK'))};const {data:_0x29d4e3}=_0x1d6851;if(!_0x29d4e3||'bookmarkId'!=_0x29d4e3['key'])return;return{'type':'format','content':o(_0x585b2f,'*Set\x20bookmark:*\x20%0','\x22'+_0x29d4e3['newValue']+'\x22')};}));}}class F extends _0x263240{['afterInit'](){const _0x12723c=this['editor'];_0x12723c['plugins']['has']('CaseChange')&&(_0x12723c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x12723c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x12723c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x263240{['afterInit'](){const _0x598565=this['editor'];_0x598565['commands']['get']('ckbox')&&_0x598565['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x263240{['afterInit'](){const _0x3275c5=this['editor'];if(!_0x3275c5['plugins']['has']('CodeBlock'))return;const _0xca85b=_0x3275c5['plugins']['get']('TrackChangesEditing'),_0x3260be=_0x3275c5['locale'],_0x41705a=_0x3275c5['config']['get']('codeBlock')['languages'],_0x5b44de=_0x3275c5['commands']['get']('codeBlock');_0xca85b['enableCommand']('indentCodeBlock'),_0xca85b['enableCommand']('outdentCodeBlock'),_0xca85b['enableCommand']('codeBlock',(_0x9a8345,_0x50e4e6={})=>{const _0x3ddcf0=_0x3275c5['model'],_0x2b4bd4=_0x3275c5['model']['document']['selection'],_0x391908=_0x50e4e6&&void 0x0!==_0x50e4e6['forceValue']?_0x50e4e6['forceValue']:!_0x5b44de['value'];let _0x640eb7;_0x50e4e6['language']||(_0x50e4e6['language']=_0x41705a[0x0]['language']),_0x640eb7=_0x391908?Array['from'](_0x2b4bd4['getSelectedBlocks']())['filter'](_0x5cf5a0=>co(_0x5cf5a0)||function(_0x376622,_0x460599){if(_0x376622['is']('rootElement')||_0x460599['isLimit'](_0x376622))return!0x1;return _0x460599['checkChild'](_0x376622['parent'],'codeBlock');}(_0x5cf5a0,_0x3ddcf0['schema'])):Array['from'](_0x2b4bd4['getSelectedBlocks']())['filter'](_0x35657e=>co(_0x35657e));const _0x402dc5=to(_0x640eb7,_0x3ddcf0);_0x3ddcf0['change'](()=>{for(const _0x151c11 of _0x402dc5)_0xca85b['markBlockFormat'](_0x151c11,{'commandName':'codeBlock','commandParams':[{..._0x50e4e6,'forceValue':_0x391908}],'formatGroupId':'blockName'});});}),(_0xca85b['descriptionFactory']['registerElementLabel']('codeBlock',_0x4f04a1=>o(_0x3260be,'ELEMENT_CODE_BLOCK',_0x4f04a1)),_0xca85b['descriptionFactory']['registerDescriptionCallback'](_0x2a1828=>{if('formatBlock'!=_0x2a1828['type'])return;const _0x390a59=_0x3260be['t'],{data:_0x5f230a}=_0x2a1828;if(!_0x5f230a||'codeBlock'!=_0x5f230a['commandName'])return;const _0x4cb022=_0x5f230a['commandParams'][0x0]['language'],_0x3f9be8=_0x390a59(_0x41705a['find'](_0x16e1e8=>_0x16e1e8['language']===_0x4cb022)['label'])['toLowerCase']();return _0x5f230a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3260be,'*Set\x20format:*\x20%0',o(_0x3260be,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3f9be8+')')}:{'type':'format','content':o(_0x3260be,'*Remove\x20format:*\x20%0',o(_0x3260be,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x1492fc){return'codeBlock'==_0x1492fc['name'];}class J extends _0x263240{['afterInit'](){const _0x22adff=this['editor'];if(!_0x22adff['plugins']['has']('CommentsEditing'))return;_0x22adff['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x201807,_0x44f3dc,_0x30d9d6){const _0x35468a=[];for(const _0x2b7ba8 of _0x44f3dc['getItems']())_0x2b7ba8['hasAttribute'](_0x201807)&&_0x35468a['push'](_0x30d9d6['createRangeOn'](_0x2b7ba8));return _0x35468a;}function De(_0x35e742,_0x55d739,{showActiveMarker:_0x3a4512=!0x0}={}){const _0x655d25=_0x35e742['plugins']['get']('TrackChangesEditing');return(_0x1e2c99,_0x23bd91,_0x218aa4)=>{if(!_0x218aa4['consumable']['test'](_0x23bd91['markerRange'],_0x1e2c99['name']))return;const _0x17dfe2=_0x23bd91['markerRange']['getWalker'](),_0x5565e1=_0x23bd91['markerRange']['start'],_0x3fbb56=_0x35e742['model']['schema'];let _0x1d52fb=null,_0x4878dc=null,_0x1e4d37=!0x1,_0x5614c9=!0x1;for(const _0x54ce8e of _0x17dfe2){const _0x372ac0=_0x54ce8e['item'];_0x1e4d37=_0x1e4d37||_0x3fbb56['isContent'](_0x372ac0);const _0x3c5823=_0x218aa4['mapper']['toViewElement'](_0x372ac0);if(_0x3c5823&&_0x3c5823['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x54ce8e['type']&&(_0x3fbb56['isBlock'](_0x372ac0)&&!_0x3fbb56['isLimit'](_0x372ac0)&&(_0x372ac0['nextSibling']||_0x5565e1['isAtEnd']?_0x1d52fb&&_0x1d52fb['parent']==_0x372ac0||(_0x1d52fb=_0x372ac0,_0x4a4987(_0x54ce8e['previousPosition']),_0x5614c9=!0x0):_0x4878dc=_0x4878dc||_0x54ce8e['previousPosition']));}function _0x4a4987(_0x2c67fe){const {id:_0xf17e7a,authorId:_0x1ccf86}=_0x655d25['_splitMarkerName'](_0x23bd91['markerName']),_0x2264f5=_0x218aa4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x55d739,'data-suggestion':_0xf17e7a,'data-author-id':_0x1ccf86}),_0x21e716=_0x218aa4['mapper']['toViewPosition'](_0x2c67fe);_0x3a4512&&_0x655d25['activeMarkers']['includes'](_0x23bd91['markerName'])&&_0x218aa4['writer']['addClass']('ck-suggestion-marker--active',_0x2264f5),_0x218aa4['writer']['insert'](_0x21e716,_0x2264f5),_0x218aa4['mapper']['bindElementToMarker'](_0x2264f5,_0x23bd91['markerName']);}_0x1e4d37||_0x5614c9||!_0x4878dc||_0x4a4987(_0x4878dc);};}class K extends _0x263240{static get['requires'](){return[_0x2226db];}['init'](){const _0x1ec4a5=this['editor'],_0x355360=_0x1ec4a5['plugins']['get']('TrackChangesEditing');_0x355360['enableCommand']('delete');const _0x443745=_0x1ec4a5['commands']['get']('deleteForward');_0x355360['enableCommand']('deleteForward',(_0x439bac,_0x5620ec={})=>{const _0x4a9a93=_0x1ec4a5['model']['createSelection'](_0x1ec4a5['model']['document']['selection']);_0x4a9a93['isCollapsed']&&_0x1ec4a5['model']['modifySelection'](_0x4a9a93,{'direction':'forward','unit':_0x5620ec['unit']});const _0xc4a10e=_0x4a9a93['getFirstRange'](),_0x5d6265=_0x4451e6['fromRange'](_0xc4a10e);let _0x5457a0;_0x439bac(_0x5620ec),_0x5457a0='$graveyard'==_0x5d6265['root']['rootName']?_0x1ec4a5['model']['createRange'](_0xc4a10e['start']):_0x1ec4a5['model']['createRange'](_0x5d6265['start'],_0x5d6265['end']),_0x5d6265['detach'](),_0x1ec4a5['model']['enqueueChange'](_0x443745['buffer']['batch'],_0x125474=>{_0x443745['buffer']['lock'](),_0x125474['setSelection'](_0x125474['createRange'](_0x5457a0['end'])),_0x443745['buffer']['unlock']();});}),_0x1ec4a5['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x1ec4a5,'merge'),{'priority':'high'}),_0x1ec4a5['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2786e8,_0x186ee2,_0x50807b)=>{_0x50807b['options']['showSuggestionHighlights']&&De(_0x1ec4a5,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2786e8,_0x186ee2,_0x50807b);},{'priority':'high'}),_0x1ec4a5['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x8496fd,_0x276393,_0x5be2e7)=>{const _0x3d3c73=_0x5be2e7['mapper']['markerNameToElements'](_0x276393['markerName']);if(_0x3d3c73){for(const _0x19ac64 of _0x3d3c73)_0x19ac64['is']('uiElement')&&(_0x5be2e7['mapper']['unbindElementFromMarkerName'](_0x19ac64,_0x276393['markerName']),_0x5be2e7['writer']['remove'](_0x19ac64));}},{'priority':'high'});}}class H extends _0x263240{['afterInit'](){const _0x19f24d=this['editor'];if(!_0x19f24d['plugins']['has']('ListEditing'))return;const _0x423a01=_0x19f24d['locale'],_0x256875=_0x19f24d['plugins']['get']('TrackChangesEditing'),_0x43e8ce=_0x19f24d['plugins']['has']('TodoListEditing'),_0xf7eae0=!!_0x19f24d['config']['get']('list.multiBlock');function _0x191881(_0x2ea376){return{'type':'format','content':''+o(_0x423a01,'*Set\x20format:*\x20%0',_0x2ea376)};}function _0x2c9e2c(_0x1c2cdf){return{'type':'format','content':''+o(_0x423a01,'*Remove\x20format:*\x20%0',_0x1c2cdf)};}_0x256875['enableDefaultAttributesIntegration']('numberedList'),_0x256875['enableDefaultAttributesIntegration']('bulletedList'),_0x256875['enableDefaultAttributesIntegration']('customNumberedList'),_0x256875['enableDefaultAttributesIntegration']('customBulletedList'),_0x256875['enableDefaultAttributesIntegration']('indentList'),_0x256875['enableDefaultAttributesIntegration']('outdentList'),_0x256875['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x256875['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x256875['registerBlockAttribute']('listItemId'),_0x256875['registerBlockAttribute']('listType'),_0x256875['registerBlockAttribute']('listIndent'),_0xf7eae0&&(_0x256875['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x256875['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x43e8ce&&(_0x256875['enableDefaultAttributesIntegration']('todoList'),_0x256875['enableDefaultAttributesIntegration']('checkTodoList'),_0x256875['registerBlockAttribute']('todoListChecked'),_0x256875['descriptionFactory']['registerDescriptionCallback'](_0x17d927=>{const {data:_0x214506}=_0x17d927;if(_0x214506&&'todoListChecked'==_0x214506['key'])return{'type':'format','content':_0x214506['newValue']?o(_0x423a01,'*Check\x20item*'):o(_0x423a01,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4f7c5d=>{if(_0x4f7c5d['batch']['isUndo'])return!0x1;let _0xcce561=!0x1;const _0x30f166=_0x256875['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c19ea=>'todoListChecked'===_0x256875['_getAttributeKey'](_0x5c19ea));for(const _0x117086 of _0x30f166){'todo'!=_0x117086['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x256875['_findSuggestions'](_0x117086['getFirstRange'](),'attribute')['find'](_0x390b20=>'listType'===_0x256875['_getAttributeKey'](_0x390b20['suggestion']))||(_0x4f7c5d['removeMarker'](_0x117086['getFirstMarker']()),_0xcce561=!0x0));}return _0xcce561;})),_0x256875['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x423a01,'FORMAT_INDENT'));const _0x14909d={'type':'format','content':''};_0x256875['descriptionFactory']['registerDescriptionCallback'](_0x51ced3=>{const {data:_0x3a09ea}=_0x51ced3;if(!_0x3a09ea||'listType'!=_0x3a09ea['key'])return;let _0x5a277d=_0x51ced3['head'];for(;_0x5a277d;){if(_0x5a277d['data']&&(('listStyle'==_0x5a277d['data']['key']||'listMarkerStyle'==_0x5a277d['data']['key'])&&(_0x5a277d['data']['newValue']&&'default'!=_0x5a277d['data']['newValue']||'default'!=_0x5a277d['data']['oldValue']&&!_0x3a09ea['newValue'])||!_0xf7eae0&&_0x5a277d['data']['key']==m))return _0x14909d;_0x5a277d=_0x5a277d['next'];}if(null==_0x3a09ea['newValue'])switch(_0x3a09ea['oldValue']){case'bulleted':return _0x2c9e2c(o(_0x423a01,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2c9e2c(o(_0x423a01,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2c9e2c(o(_0x423a01,'ELEMENT_TODO_LIST'));}switch(_0x3a09ea['newValue']){case'bulleted':return _0x191881(o(_0x423a01,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x191881(o(_0x423a01,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x191881(o(_0x423a01,'ELEMENT_TODO_LIST'));}}),_0x256875['descriptionFactory']['registerDescriptionCallback'](_0x29368a=>{const {data:_0x551b10}=_0x29368a;if(_0x551b10&&'listIndent'==_0x551b10['key'])return null==_0x551b10['newValue']||null==_0x551b10['oldValue']&&0x0==_0x551b10['newValue']?_0x14909d:void 0x0;}),_0x256875['descriptionFactory']['registerDescriptionCallback'](_0x3f4847=>{if('attribute'!=_0x3f4847['type'])return;const {data:_0x51d618}=_0x3f4847;if(!_0x51d618||'listItemId'!=_0x51d618['key'])return;const _0x447e44=Te(_0x3f4847);return'newValue'==_0x447e44?{'type':'format','content':o(_0x423a01,'*Merge:*\x20list\x20item')}:'oldValue'==_0x447e44?{'type':'format','content':o(_0x423a01,'*Split:*\x20list\x20item')}:_0x14909d;}),_0x19f24d['model']['document']['registerPostFixer'](_0x116f2d=>this['listItemIdFixer'](_0x116f2d)),_0x19f24d['model']['document']['registerPostFixer'](_0x5a131f=>this['noTrackChangesFixer'](_0x5a131f)),_0x19f24d['model']['document']['on']('change:data',(_0x2fb9af,_0x23fc34)=>{if(_0x23fc34['isUndo']||!_0x23fc34['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x46c90f){if(_0x46c90f['batch']['isUndo']||!_0x46c90f['batch']['isLocal'])return!0x1;let _0x29697d=!0x1;const _0x518e6f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x26ef34=>_0x26ef34['data']&&'listItemId'==_0x26ef34['data']['key'])['filter'](_0x1b46d5=>_0x1b46d5['data']['newValue']&&_0x1b46d5['data']['oldValue']);for(const _0x249e09 of _0x518e6f)Te(_0x249e09)||(_0x46c90f['removeMarker'](_0x249e09['getFirstMarker']()),_0x29697d=!0x0);return _0x29697d;}['noTrackChangesFixer'](_0x449d9a){if(_0x449d9a['batch']['isUndo']||!_0x449d9a['batch']['isLocal'])return!0x1;const _0x4c6628=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4c6628['trackChangesCommand']['value'])return!0x1;let _0xc2dfff=!0x1;const _0x1bd445=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x417d1b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4061c3=>'attribute'==_0x4061c3['type'])['filter'](_0x41fbe2=>_0x1bd445['includes'](_0x41fbe2['attributeKey']));if(0x0==_0x417d1b['length'])return _0xc2dfff;for(const _0x14a704 of _0x417d1b){const _0x396825=_0x4c6628['_findSuggestions'](_0x14a704['range'],'attribute')['filter'](_0x312af0=>!_0x312af0['meta']['isNextTo'])['map'](_0x288a95=>_0x288a95['suggestion'])['filter'](_0x10631a=>{const _0x37a9bc=_0x4c6628['_getAttributeKey'](_0x10631a);return _0x1bd445['includes'](_0x37a9bc);});if(_0x396825['length']){for(const _0x51e6c2 of _0x396825)_0x449d9a['removeMarker'](_0x51e6c2['getFirstMarker']());_0xc2dfff=!0x0;}}return _0xc2dfff;}['assureChains'](){const _0x4a4276=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d2aed=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2d64fa;const _0x2e7843=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x36560a=>{if(_0x36560a['data']['oldRange']||!_0x36560a['data']['newRange'])return null;if(!_0x36560a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x44fc54}=_0x4a4276['_splitMarkerName'](_0x36560a['name']);if(!_0x4a4276['hasSuggestion'](_0x44fc54))return null;const _0x5defd9=_0x4a4276['getSuggestion'](_0x44fc54);return _0x2d2aed['includes'](_0x5defd9['data']['key']);})['map'](_0x56e9e8=>{const {id:_0x5575a5}=_0x4a4276['_splitMarkerName'](_0x56e9e8['name']),_0x248fd9=_0x4a4276['getSuggestion'](_0x5575a5);return _0x2d64fa=_0x248fd9['attributes']['groupId'],_0x248fd9['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2e7843['size'])return;const _0x4fa613=_0x4a4276['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a6bbb=>'attribute'==_0x4a6bbb['type']&&_0x4a6bbb['data']&&_0x2d2aed['includes'](_0x4a6bbb['data']['key'])&&_0x4a6bbb['attributes']['groupId']!=_0x2d64fa)['map'](_0x1398c0=>({'listItem':_0x1398c0['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1398c0['attributes']['groupId']})),_0x5595dc=new Set();for(const {groupId:_0x57f6bf,listItem:_0x412936}of _0x4fa613)_0x2e7843['has'](_0x412936)&&_0x5595dc['add'](_0x57f6bf);for(const _0xcae15c of _0x4a4276['getSuggestions']())_0x5595dc['has'](_0xcae15c['attributes']['groupId'])&&_0xcae15c['setAttribute']('groupId',_0x2d64fa);}['_supportLegacySuggestions'](){const _0x563e95=this['editor'],_0x2be22c=_0x563e95['locale'],_0x559f60=_0x563e95['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x559f60['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xcc4aaf,_0x31d326){const _0x34ea1f=[];for(let _0x22cb62 of _0xcc4aaf)_0x22cb62['start']['nodeAfter']===_0x22cb62['end']['parent']&&(_0x22cb62=_0x563e95['model']['createRange'](_0x563e95['model']['createPositionAt'](_0x22cb62['start']['nodeAfter'],0x0))),_0x34ea1f['push'](_0x22cb62);_0x563e95['model']['change'](_0x4a7f6b=>{const _0x4c68db=_0x563e95['model']['document']['selection'],_0x2d6841=Array['from'](_0x4c68db['getRanges']())['map'](_0x4abac0=>_0x4451e6['fromRange'](_0x4abac0));_0x4a7f6b['setSelection'](_0x34ea1f),_0x563e95['commands']['get'](_0x31d326['commandName'])['refresh'](),_0x31d326['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x563e95['execute'](_0x31d326['commandName'],..._0x31d326['commandParams']),_0x4a7f6b['setSelection'](_0x2d6841);for(const _0x310e11 of _0x2d6841)_0x310e11['detach']();});}),_0x559f60['descriptionFactory']['registerElementLabel'](function(_0xfe3076){const _0xe6b994=!_0x563e95['model']['schema']['isObject'](_0xfe3076),_0x4762e2=_0xfe3076['previousSibling'],_0x1703a6=_0xfe3076['nextSibling'],_0x19e100=_0xfe3076['getAttribute']('listItemId'),_0x4621a1=!_0x4762e2||_0x4762e2['getAttribute']('listItemId')!==_0x19e100,_0x40a7be=!_0x1703a6||_0x1703a6['getAttribute']('listItemId')!==_0x19e100;return _0xe6b994&&Boolean(_0x19e100)&&_0x4621a1&&_0x40a7be;},_0x3f8122=>o(_0x2be22c,'ELEMENT_LIST_ITEM',_0x3f8122));}['_registerLegacyDescription'](){const _0x3b359c=this['editor'],_0x3f7924=_0x3b359c['locale'];function _0x36aede(_0x45a73e){const _0x2cfc99=_0x3b359c['commands']['get']('bulletedList')['value'],_0x2b0d20=_0x3b359c['commands']['get']('numberedList')['value'];return'numberedList'===_0x45a73e?_0x2cfc99:_0x2b0d20;}_0x3b359c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x82d942){if('formatBlock'!=_0x82d942['type'])return;const {data:_0x5f139c}=_0x82d942;if(!_0x5f139c)return;let _0x237776,_0x4c08e3,_0xfd527a,_0x1261f6;switch(_0x5f139c['commandName']){case'bulletedList':_0xfd527a=_0x5f139c['commandParams'][0x0]['forceValue'],_0x1261f6=_0x36aede(_0x5f139c['commandName']),_0x237776=_0xfd527a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1261f6&&_0x3b359c['config']['get']('list.multiBlock')||(_0x237776='*Change\x20to:*\x20%0'),_0x4c08e3={'type':'format','content':o(_0x3f7924,_0x237776,o(_0x3f7924,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xfd527a=_0x5f139c['commandParams'][0x0]['forceValue'],_0x1261f6=_0x36aede(_0x5f139c['commandName']),_0x237776=_0xfd527a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1261f6&&_0x3b359c['config']['get']('list.multiBlock')||(_0x237776='*Change\x20to:*\x20%0'),_0x4c08e3={'type':'format','content':o(_0x3f7924,_0x237776,o(_0x3f7924,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x237776='*Indent:*\x20%0',_0x4c08e3={'type':'format','content':o(_0x3f7924,_0x237776,o(_0x3f7924,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x237776=function(_0x418625){const _0x2833ff=_0x418625['getFirstRange']();let _0x1b3fef=_0x2833ff['start']['nodeAfter'];for(;_0x1b3fef&&_0x2833ff['containsItem'](_0x1b3fef);){if(_0x1b3fef['getAttribute']('listIndent')>0x0)return!0x1;_0x1b3fef=_0x1b3fef['nextSibling'];}return!0x0;}(_0x82d942)?o(_0x3f7924,'*Format:*\x20remove\x20from\x20%0',o(_0x3f7924,function(_0x1a4ba5){return'ELEMENT_'+_0x1a4ba5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x82d942))):o(_0x3f7924,'*Outdent:*\x20%0',o(_0x3f7924,'ELEMENT_LIST_ITEM')),_0x4c08e3={'type':'format','content':_0x237776};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5f139c['multipleBlocks']&&(_0x237776='*Merge:*\x20%0',_0x4c08e3={'type':'deletion','content':o(_0x3f7924,_0x237776,o(_0x3f7924,'ELEMENT_LIST_ITEM'))});}return _0x4c08e3;});}}function Te(_0x29265f){let _0x5dbe32=_0x29265f['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5dbe32;){const _0x47f1ca=_0x5dbe32['getAttribute']('listItemId');if(!_0x47f1ca)return!0x1;if(_0x47f1ca==_0x29265f['data']['newValue'])return'newValue';if(_0x47f1ca==_0x29265f['data']['oldValue'])return'oldValue';_0x5dbe32=_0x5dbe32['previousSibling'];}return!0x1;}class q extends _0x263240{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x13a4a6=this['editor']['config']['get']('list.properties'),_0x2ad7b0=this['editor']['plugins']['get']('TrackChangesEditing');_0x13a4a6['styles']&&(_0x2ad7b0['enableDefaultAttributesIntegration']('listStyle'),_0x2ad7b0['registerBlockAttribute']('listStyle')),_0x13a4a6['reversed']&&(_0x2ad7b0['enableDefaultAttributesIntegration']('listReversed'),_0x2ad7b0['registerBlockAttribute']('listReversed')),_0x13a4a6['startIndex']&&(_0x2ad7b0['enableDefaultAttributesIntegration']('listStart'),_0x2ad7b0['registerBlockAttribute']('listStart'));const _0x5c2b73={'type':'format','content':''};_0x2ad7b0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x132f58=this['editor']['locale'];_0x2ad7b0['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x132f58,'FORMAT_LIST_REVERSED')),_0x2ad7b0['descriptionFactory']['registerDescriptionCallback'](_0x129ad8=>{const {data:_0x36e6bc}=_0x129ad8;if(_0x36e6bc&&'listReversed'==_0x36e6bc['key'])return null==_0x36e6bc['newValue']||0x0==_0x36e6bc['newValue']&&null==_0x36e6bc['oldValue']?_0x5c2b73:void 0x0;}),_0x2ad7b0['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x132f58,'FORMAT_LIST_START')),_0x2ad7b0['descriptionFactory']['registerDescriptionCallback'](_0x141c96=>{const {data:_0x334886}=_0x141c96;if(_0x334886&&'listStart'==_0x334886['key'])return null==_0x334886['newValue']||0x1==_0x334886['newValue']&&null==_0x334886['oldValue']?_0x5c2b73:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3e26f3=>{if(_0x3e26f3['batch']['isUndo'])return!0x1;let _0x53e7a9=!0x1;const _0x10fcfe=_0x2ad7b0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x11b9ed=>{const _0x5717f1=_0x2ad7b0['_getAttributeKey'](_0x11b9ed);return'listStart'==_0x5717f1||'listReversed'==_0x5717f1;});for(const _0x799dd0 of _0x10fcfe){const _0x446fc4=_0x799dd0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x446fc4||'customNumbered'==_0x446fc4)continue;_0x2ad7b0['_findSuggestions'](_0x799dd0['getFirstRange'](),'attribute')['find'](_0x41a849=>'listType'==_0x2ad7b0['_getAttributeKey'](_0x41a849['suggestion']))||(_0x3e26f3['removeMarker'](_0x799dd0['getFirstMarker']()),_0x53e7a9=!0x0);}return _0x53e7a9;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4da29a){const _0x197220=this['editor']['locale'],{data:_0x384521}=_0x4da29a,_0x270730={'type':'format','content':''};if(!_0x384521||'listStyle'!=_0x384521['key'])return;if(!_0x384521['oldValue'])return'default'==_0x384521['newValue']?_0x270730:{'type':'format','content':''+o(_0x197220,'*Set\x20format:*\x20%0',o(_0x197220,this['_getTranslationKeyForListStyle'](_0x384521['newValue'])))};if(!_0x384521['newValue']){if('default'==_0x384521['oldValue'])return _0x270730;let _0x5add87=_0x4da29a['head'];for(;_0x5add87;){if(_0x5add87['data']&&'listType'==_0x5add87['data']['key']&&_0x5add87['data']['newValue'])return _0x270730;_0x5add87=_0x5add87['next'];}return{'type':'format','content':''+o(_0x197220,'*Remove\x20format:*\x20%0',o(_0x197220,this['_getTranslationKeyForListStyle'](_0x384521['oldValue'])))};}if('default'!=_0x384521['newValue'])return{'type':'format','content':''+o(_0x197220,'*Set\x20format:*\x20%0',o(_0x197220,this['_getTranslationKeyForListStyle'](_0x384521['newValue'])))};let _0x10634d=_0x4da29a['head'];for(;_0x10634d;){if(_0x10634d['data']&&'listType'==_0x10634d['data']['key']&&_0x10634d['data']['newValue']&&_0x10634d['data']['oldValue'])return _0x270730;_0x10634d=_0x10634d['next'];}return{'type':'format','content':o(_0x197220,'*Set\x20format:*\x20%0',o(_0x197220,'ELEMENT_'+_0x4da29a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5f2145=this['editor'],_0xd39b2=_0x5f2145['locale'];_0x5f2145['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5516cd=>{if('formatBlock'!=_0x5516cd['type'])return;const {data:_0xb36cb5}=_0x5516cd;if(!_0xb36cb5)return;let _0x29bc2b,_0x77450f;switch(_0xb36cb5['commandName']){case'listStyle':_0x29bc2b='*Change\x20to:*\x20%0',_0x77450f={'type':'format','content':o(_0xd39b2,_0x29bc2b,o(_0xd39b2,this['_getTranslationKeyForListStyle'](_0xb36cb5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x29bc2b=_0xb36cb5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x77450f={'type':'format','content':o(_0xd39b2,_0x29bc2b)};break;case'listStart':_0x29bc2b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x77450f={'type':'format','content':o(_0xd39b2,_0x29bc2b,_0xb36cb5['commandParams'][0x0]['startIndex'])};}return _0x77450f;});}['_getTranslationKeyForListStyle'](_0x1c45a6){return'ELEMENT_'+function(_0x7040da){if(Se['includes'](_0x7040da))return'bulleted';if(_e['includes'](_0x7040da))return'numbered';return null;}(_0x1c45a6)['toUpperCase']()+'_LIST_'+_0x1c45a6['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x263240{['afterInit'](){const _0x63a02d=this['editor'];_0x63a02d['commands']['get']('emoji')&&_0x63a02d['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x263240{static get['requires'](){return[_0x2d2f12];}['init'](){const _0x2a6bde=this['editor'],_0x2aeccc=_0x2a6bde['plugins']['get']('TrackChangesEditing'),_0x33dd1=_0x2a6bde['commands']['get']('enter');_0x2aeccc['enableCommand']('enter',()=>{_0x2a6bde['model']['change'](_0x2d5e59=>{const _0x1f4484=_0x2a6bde['model']['document']['selection'],_0x1dab2c=_0x1f4484['getFirstPosition'](),_0x2400eb=_0x4451e6['fromRange'](_0x1f4484['getFirstRange']());if(_0x33dd1['enterBlock'](_0x2d5e59)){const _0x1b197e=_0x2a6bde['model']['createPositionAt'](_0x1dab2c['parent']['nextSibling'],0x0),_0x209bcb=_0x2d5e59['createRange'](_0x1dab2c,_0x1b197e);_0x2aeccc['markInsertion'](_0x209bcb);}else _0x2d5e59['setSelection'](_0x2d5e59['createRange'](_0x2400eb['end']));_0x2400eb['detach'](),_0x33dd1['fire']('afterExecute',{'writer':_0x2d5e59});});}),_0x2a6bde['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x2a6bde,'split'),{'priority':'high'}),_0x2a6bde['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x52dd50,_0xb40551,_0x2e6919)=>{const _0x2ad72a=_0x2e6919['mapper']['markerNameToElements'](_0xb40551['markerName']);if(_0x2ad72a){for(const _0x243f72 of _0x2ad72a)_0x243f72['hasClass']('ck-suggestion-marker-split')&&(_0x2e6919['mapper']['unbindElementFromMarkerName'](_0x243f72,_0xb40551['markerName']),_0x2e6919['writer']['remove'](_0x243f72));}},{'priority':'high'}),_0x2a6bde['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xcbfb42,_0xf4e7e8,_0x2abe91)=>{_0x2abe91['options']['showSuggestionHighlights']&&De(_0x2a6bde,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xcbfb42,_0xf4e7e8,_0x2abe91);},{'priority':'high'});}}class Q extends _0x263240{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x534a97=this['editor']['plugins']['get']('TrackChangesEditing');_0x534a97['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x534a97['enableCommand']('findNext'),_0x534a97['enableCommand']('findPrevious'),_0x534a97['enableCommand']('replace'),_0x534a97['enableCommand']('replaceAll');}['handleFindCommand'](_0x198a2d,_0x46b1b0,_0x5d4366={}){const _0x2c190=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x198a2d(_0x89728d=>{let _0x4172bd=('string'==typeof _0x46b1b0?_0x2c190['findByTextCallback'](_0x46b1b0,_0x5d4366):_0x46b1b0)(_0x89728d);Array['isArray'](_0x4172bd)&&(_0x4172bd={'results':_0x4172bd,'searchText':'string'==typeof _0x46b1b0?_0x46b1b0:''});const _0x41993e=_0x4172bd['results']['filter'](_0x5d156c=>!0x1===this['_isInDeletionRange'](_0x5d156c,_0x89728d['item']));return{..._0x4172bd,'results':_0x41993e};},_0x5d4366);}['_isInDeletionRange'](_0x7fdb7f,_0x42e608){const _0x47905b=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x42e608,_0x7fdb7f['start']),this['editor']['model']['createPositionAt'](_0x42e608,_0x7fdb7f['end']));for(const _0x1dfe55 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x47905b['getIntersection'](_0x1dfe55['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x263240{['afterInit'](){const _0x4b7d28=this['editor']['locale'],_0x56386d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x234bad,commandName:_0x4916bf}of eo)this['editor']['plugins']['has'](_0x234bad)&&(_0x56386d['enableDefaultAttributesIntegration'](_0x4916bf),_0x56386d['registerInlineAttribute'](_0x4916bf));_0x56386d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4b7d28,'FORMAT_FONT_SIZE')),_0x56386d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4b7d28,'FORMAT_FONT_FAMILY')),_0x56386d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4b7d28,'FORMAT_FONT_COLOR')),_0x56386d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4b7d28,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12abb8=this['editor'],_0x5a0752=_0x12abb8['locale'];_0x12abb8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fc0b8=>{const _0x233748=_0x5a0752['t'];if('formatInline'!=_0x2fc0b8['type'])return;const {data:_0x3ab20e}=_0x2fc0b8;if(null!=_0x3ab20e){if('fontSize'==_0x3ab20e['commandName']){const _0xb8e658=_0x3ab20e['commandParams'][0x0]['value'];if(_0xb8e658){const _0x4fd7e2=_0x233748(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x25ffde=>_0x25ffde['model']==_0xb8e658)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5a0752,'*Set\x20font\x20size:*\x20%0',_0x4fd7e2)};}return{'type':'format','content':o(_0x5a0752,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3ab20e['commandName']){const _0x3872d9=_0x3ab20e['commandParams'][0x0]['value'];return _0x3872d9?{'type':'format','content':o(_0x5a0752,'*Set\x20font\x20family:*\x20%0',_0x3872d9)}:{'type':'format','content':o(_0x5a0752,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3ab20e['commandName']){const _0x3ad8da=_0x3ab20e['commandParams'][0x0]['value'];if(_0x3ad8da){const _0x5d7b20=_0x59b6e4(this['editor']['config']['get']('fontColor.colors'))['find'](_0x14ad17=>_0x14ad17['model']==_0x3ad8da);let _0x336232=_0x3ad8da,_0x3a3d7c='';return _0x5d7b20&&(_0x336232=_0x5d7b20['label'],_0x3a3d7c=_0x233748(_0x336232)['toLowerCase']()),{'type':'format','content':o(_0x5a0752,'*Set\x20font\x20color:*\x20%0',_0x3a3d7c)['trim'](),'color':{'value':_0x3ad8da,'title':_0x3a3d7c||_0x336232}};}return{'type':'format','content':o(_0x5a0752,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3ab20e['commandName']){const _0x54df42=_0x3ab20e['commandParams'][0x0]['value'];if(_0x54df42){const _0x5c5f25=_0x59b6e4(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x329cc7=>_0x329cc7['model']==_0x54df42);let _0x406c5d=_0x54df42,_0x14df64='';return _0x5c5f25&&(_0x406c5d=_0x5c5f25['label'],_0x14df64=_0x233748(_0x406c5d)['toLowerCase']()),{'type':'format','content':o(_0x5a0752,'*Set\x20font\x20background\x20color:*\x20%0',_0x14df64)['trim'](),'color':{'value':_0x54df42,'title':_0x14df64||_0x406c5d}};}return{'type':'format','content':o(_0x5a0752,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x263240{['afterInit'](){const _0x343eb9=this['editor'],_0x28ad1=_0x343eb9['plugins']['get']('TrackChangesEditing'),_0xcdf9b6=_0x343eb9['commands']['get']('copyFormat'),_0x5043c1=_0x343eb9['commands']['get']('pasteFormat');_0xcdf9b6&&_0x5043c1&&(_0x28ad1['enableDefaultAttributesIntegration']('pasteFormat'),_0x28ad1['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x31eb67=this['editor'],_0x543a80=_0x31eb67['locale'];_0x31eb67['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb51cde=>{if('formatBlock'!=_0xb51cde['type']&&'formatInline'!=_0xb51cde['type'])return;const {data:_0x5e1d08}=_0xb51cde;if(_0x5e1d08&&'pasteFormat'===_0x5e1d08['commandName']){const _0x3837bc=[],_0xaf1db6=_0x5e1d08['commandParams'][0x0];for(const [_0x4f9c40,_0x2362bc]of Object['entries'](_0xaf1db6))_0x3837bc['push'](ro(_0x31eb67,_0x4f9c40,_0x2362bc));return _0x3837bc['length']?{'type':'format','content':o(_0x543a80,'*Set\x20format\x20to:*\x20%0',_0x3837bc['join'](',\x20'))}:{'type':'format','content':o(_0x543a80,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x3769ec,_0x3bb9f0,_0x3166b3){const _0x27dc12=_0x3769ec['locale']['t'],_0x179f59=_0x3bb9f0['split'](/(?=[A-Z])/)['join']('\x20'),_0x1f5b38=_0x27dc12(_0x179f59['charAt'](0x0)['toUpperCase']()+_0x179f59['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3166b3)return _0x1f5b38;if('fontColor'===_0x3bb9f0||'fontBackgroundColor'===_0x3bb9f0){const _0x1ea8fc=_0x59b6e4(_0x3769ec['config']['get']('fontColor.colors'))['find'](_0x1f1a22=>_0x1f1a22['model']==_0x3166b3);return _0x1f5b38+'\x20('+(_0x1ea8fc?_0x27dc12(_0x1ea8fc['label'])['toLowerCase']():_0x3166b3)+')';}if('fontSize'===_0x3bb9f0&&isNaN(parseFloat(_0x3166b3))){const _0x18d0d4=_0x3769ec['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3769ec['config']['get']('fontSize.options'))['find'](_0x5a3573=>_0x5a3573['model']==_0x3166b3);return _0x1f5b38+'\x20('+(_0x18d0d4?_0x27dc12(_0x18d0d4['title'])['toLowerCase']():_0x3166b3)+')';}return _0x1f5b38+'\x20('+_0x3166b3+')';}class Z extends _0x263240{['_headingOptions'];['afterInit'](){const _0xc44197=this['editor'];if(!_0xc44197['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xc44197['config']['get']('heading.options');const _0x28b305=_0xc44197['locale'],_0x19876a=_0xc44197['plugins']['get']('TrackChangesEditing');_0x19876a['enableDefaultAttributesIntegration']('heading');for(const _0x1c1f26 of this['_headingOptions'])'paragraph'!=_0x1c1f26['model']&&_0x19876a['descriptionFactory']['registerElementLabel'](_0x1c1f26['model'],_0x45a967=>{const _0x5aaa55=this['_getHeadingLevel'](_0x1c1f26['model']);return null!==_0x5aaa55?_0xfcc648(_0x45a967,_0x5aaa55):_0x472786(_0x45a967,_0x1c1f26['title']);});function _0xfcc648(_0x1295ab,_0x58563d){return o(_0x28b305,'ELEMENT_HEADING',[_0x1295ab,_0x58563d]);}function _0x472786(_0x4f71b0,_0x7e3a97){return o(_0x28b305,'ELEMENT_HEADING_CUSTOM',[_0x4f71b0,_0x7e3a97]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19cb95=this['editor'],_0x161418=_0x19cb95['locale'];function _0x165f1a(_0x41bd08,_0x68ef03){return o(_0x161418,'ELEMENT_HEADING_CUSTOM',[_0x41bd08,_0x68ef03]);}_0x19cb95['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d36ed=>{if('formatBlock'!=_0x2d36ed['type'])return;const {data:_0xe084aa}=_0x2d36ed;if(_0xe084aa&&'heading'==_0xe084aa['commandName']){const _0x179cf0=_0xe084aa['commandParams'][0x0]['value'],_0x20140f=this['_getHeadingLevel'](_0x179cf0);if(null!==_0x20140f)return{'type':'format','content':o(_0x161418,'*Change\x20to:*\x20%0',(_0x280472=0x1,_0x522f9c=_0x20140f,o(_0x161418,'ELEMENT_HEADING',[_0x280472,_0x522f9c])))};const _0x56d87b=this['_headingOptions']['find'](_0x12e205=>_0x12e205['model']===_0x179cf0)['title'];return{'type':'format','content':o(_0x161418,'*Change\x20to:*\x20%0',_0x165f1a(0x1,_0x56d87b))};}var _0x280472,_0x522f9c;});}['_getHeadingLevel'](_0x54cf87){const _0x2abdf2=_0x54cf87['match'](/^heading(\d+)/);if(_0x2abdf2)return _0x2abdf2[0x1];const _0x36da28=this['_headingOptions']?.['find'](_0x4ccce4=>_0x4ccce4['model']==_0x54cf87);if(_0x36da28&&_0x36da28['view']){const _0x25e7ce=_0x36da28['view'],_0x154c72=(_0x25e7ce['name']??_0x25e7ce)['match'](/^h(\d+)/);if(_0x154c72)return _0x154c72[0x1];}return null;}}class tt extends _0x263240{['afterInit'](){const _0x20f243=this['editor'];if(!_0x20f243['plugins']['has']('HighlightEditing'))return;const _0x3ea71d=_0x20f243['plugins']['get']('TrackChangesEditing'),_0x16bbdf=_0x20f243['locale'];_0x3ea71d['enableDefaultAttributesIntegration']('highlight'),_0x3ea71d['registerInlineAttribute']('highlight'),_0x3ea71d['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x16bbdf,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58d02b=this['editor'],_0x5ca9e7=_0x58d02b['locale'];_0x58d02b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32cf26=>{if('formatInline'!=_0x32cf26['type'])return;const {data:_0x233334}=_0x32cf26;if(_0x233334&&'highlight'==_0x233334['commandName']){const _0x258165=_0x5ca9e7['t'],_0xf0ebcf=_0x233334['commandParams'][0x0]['value'];if(_0xf0ebcf){const _0x149ab9=_0x58d02b['config']['get']('highlight.options')['find'](_0xcfee5c=>_0xcfee5c['model']==_0xf0ebcf),_0x26f34c=_0x258165(_0x149ab9['title'])['toLowerCase']();return{'type':'format','content':o(_0x5ca9e7,'*Set\x20highlight:*\x20%0',_0x26f34c),'color':{'value':_0x149ab9['color'],'title':_0x149ab9['title']}};}return{'type':'format','content':o(_0x5ca9e7,'*Remove\x20highlight*',o(_0x5ca9e7,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x263240{['afterInit'](){const _0x3d1965=this['editor'];if(!_0x3d1965['plugins']['has']('HorizontalLineEditing'))return;_0x3d1965['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x166ea7=_0x3d1965['plugins']['get']('TrackChangesEditing'),_0x504fff=_0x3d1965['locale'];_0x166ea7['descriptionFactory']['registerElementLabel']('horizontalLine',_0x317ba7=>o(_0x504fff,'ELEMENT_HORIZONTAL_LINE',_0x317ba7)),_0x3d1965['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x48e2a8,{writer:_0x210512,options:_0x4c577c})=>{if(!_0x4c577c['showSuggestionHighlights'])return null;const _0xf8c69=_0x210512['createContainerElement']('div'),_0x5709fb=_0x210512['createEmptyElement']('hr');return _0x210512['addClass']('ck-horizontal-line',_0xf8c69),_0x210512['insert'](_0x210512['createPositionAt'](_0xf8c69,0x0),_0x5709fb),_0xf8c69;},'converterPriority':'high'});}}class nt extends _0x263240{['afterInit'](){const _0x41ef7a=this['editor'];if(!_0x41ef7a['plugins']['has']('HtmlEmbed'))return;const _0x44f2b2=_0x41ef7a['plugins']['get']('TrackChangesEditing'),_0x2ffc0a=_0x41ef7a['locale'];_0x44f2b2['descriptionFactory']['registerElementLabel']('rawHtml',_0x2c7ff4=>o(_0x2ffc0a,'ELEMENT_HTML_EMBED',_0x2c7ff4)),_0x44f2b2['enableDefaultAttributesIntegration']('htmlEmbed'),_0x44f2b2['registerBlockAttribute']('value'),_0x44f2b2['descriptionFactory']['registerDescriptionCallback'](_0x3c6e91=>{if('attribute'!=_0x3c6e91['type'])return;const {data:_0x5b258f}=_0x3c6e91;if(_0x5b258f&&'value'==_0x5b258f['key']&&_0x3c6e91['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x38af1d=o(_0x2ffc0a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2ffc0a,'*Change\x20%0\x20content*',_0x38af1d)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f8bf6=this['editor'],_0x4c9f99=_0x3f8bf6['locale'];_0x3f8bf6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30c8f1=>{if('formatBlock'!=_0x30c8f1['type'])return;const {data:_0x4965f0}=_0x30c8f1;if(_0x4965f0&&'htmlEmbed'==_0x4965f0['commandName']){const _0x42948f=o(_0x4c9f99,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4c9f99,'*Change\x20%0\x20content*',_0x42948f)};}});}}class et extends _0x263240{['afterInit'](){const _0x3547ad=this['editor'];if(!_0x3547ad['plugins']['has']('ImageEditing'))return;const _0x4e206c=_0x3547ad['plugins']['get']('TrackChangesEditing'),_0x1b32e3=_0x3547ad['plugins']['get']('ImageUtils'),_0x308b6b=_0x3547ad['locale'];_0x4e206c['enableCommand']('insertImage'),_0x4e206c['descriptionFactory']['registerElementLabel']('imageBlock',_0x5e00ac=>o(_0x308b6b,'ELEMENT_IMAGE',_0x5e00ac)),_0x4e206c['descriptionFactory']['registerElementLabel']('imageInline',_0x5283d3=>o(_0x308b6b,'ELEMENT_INLINE_IMAGE',_0x5283d3)),_0x4e206c['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x308b6b,'ELEMENT_CAPTION')),_0x3547ad['plugins']['has']('ImageUploadEditing')&&_0x4e206c['enableCommand']('uploadImage'),_0x3547ad['plugins']['has']('ImageBlockEditing')&&_0x3547ad['plugins']['has']('ImageInlineEditing')&&(_0x4e206c['enableCommand']('imageTypeInline',(_0x443b50,_0x14f80f)=>{const _0x2446b1=_0x1b32e3['getClosestSelectedImageElement'](_0x3547ad['model']['document']['selection']);_0x3547ad['model']['change'](()=>{_0x4e206c['markBlockFormat'](_0x2446b1,{'commandName':'imageTypeInline','commandParams':[_0x14f80f]},[],'convertBlockImageToInline');});}),_0x4e206c['enableCommand']('imageTypeBlock',(_0x4a3110,_0x2d570b)=>{_0x3547ad['model']['change'](_0x3ce343=>{let _0x11a937=_0x1b32e3['getClosestSelectedImageElement'](_0x3547ad['model']['document']['selection']),_0x24d5af=_0x3ce343['createRangeOn'](_0x11a937);const _0x3ea710=_0x4a053f['fromPosition'](_0x24d5af['start'],'toPrevious'),_0x240cad=_0x4a053f['fromPosition'](_0x24d5af['end'],'toNext');_0x4e206c['forceDefaultExecution'](()=>_0x4a3110(_0x2d570b)),_0x11a937=_0x1b32e3['getClosestSelectedImageElement'](_0x3547ad['model']['document']['selection']),_0x24d5af=_0x3ce343['createRangeOn'](_0x11a937);const _0x36268b=_0x3ce343['createRange'](_0x3ea710,_0x240cad);_0x3ea710['detach'](),_0x240cad['detach'](),_0x4e206c['markBlockFormat'](_0x11a937,{'commandName':'imageTypeInline','commandParams':[_0x2d570b]},[],'convertInlineImageToBlock'),_0x36268b['start']['isBefore'](_0x24d5af['start'])&&_0x4e206c['markInsertion'](_0x3ce343['createRange'](_0x36268b['start'],_0x24d5af['start']),'convertInlineImageToBlock'),_0x24d5af['end']['isBefore'](_0x36268b['end'])&&_0x4e206c['markInsertion'](_0x3ce343['createRange'](_0x24d5af['end'],_0x36268b['end']),'convertInlineImageToBlock');});}),_0x4e206c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4e206c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4e206c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4e206c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4e206c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4e206c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3d3807])=>{const _0x536805=_0x4e206c['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x144288=_0x3d3807['start'],_0x17f971=_0x3d3807['end'];const _0x7fdf12=_0x3547ad['model']['schema']['getNearestSelectionRange'](_0x144288,'backward'),_0x5377dd=_0x3547ad['model']['schema']['getNearestSelectionRange'](_0x17f971,'forward');_0x7fdf12['isCollapsed']&&(_0x144288=_0x7fdf12['start']),_0x5377dd['isCollapsed']&&(_0x17f971=_0x5377dd['end']),_0x536805([_0x3547ad['model']['createRange'](_0x144288,_0x17f971)]);}),_0x4e206c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xab40b3),_0x4e206c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xab40b3)),_0x3547ad['plugins']['has']('ImageCaptionEditing')&&(_0x4e206c['enableCommand']('toggleImageCaption',(_0x12f345,_0x11285c)=>{const _0x240113=_0x3547ad['plugins']['get']('ImageCaptionUtils');let _0x47be23=_0x1b32e3['getClosestSelectedImageElement'](_0x3547ad['model']['document']['selection']),_0x468cf5=_0x240113['getCaptionFromImageModelElement'](_0x47be23);_0x3547ad['model']['change'](()=>{if(_0x468cf5)return void _0x4e206c['markDeletion'](_0x3547ad['model']['createRangeOn'](_0x468cf5));const _0x999827=_0x1b32e3['isBlockImage'](_0x47be23);_0x12f345(_0x11285c),_0x47be23=_0x1b32e3['getClosestSelectedImageElement'](_0x3547ad['model']['document']['selection']),_0x468cf5=_0x240113['getCaptionFromImageModelElement'](_0x47be23),_0x4e206c['markInsertion'](_0x3547ad['model']['createRangeOn'](_0x468cf5),_0x999827?null:'imageCaption');});}),_0x4e206c['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xab40b3));const _0x8ee30e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x11250a(_0x235d75,_0x168bf8){const _0x41c2d5=_0x8ee30e['findIndex'](({type:_0x4a9a72,subType:_0x45f755})=>_0x235d75['type']==_0x4a9a72&&_0x235d75['subType']==_0x45f755),_0x3add0c=_0x8ee30e['findIndex'](({type:_0x457a90,subType:_0x157258})=>_0x168bf8['type']==_0x457a90&&_0x168bf8['subType']==_0x157258);if(_0x41c2d5<0x0||_0x3add0c<0x0)return!0x1;const _0x1e789e=_0x235d75['getFirstRange'](),_0x4ed007=_0x168bf8['getFirstRange']();if((0x0==_0x41c2d5||0x1==_0x41c2d5)&&0x2==_0x3add0c&&_0x1e789e['isIntersecting'](_0x4ed007))return!0x0;if(0x2==_0x41c2d5&&0x3==_0x3add0c){const _0x1f0985=_0x4e206c['_findSuggestions'](_0x1e789e,'insertion')['filter'](({suggestion:_0x515b3c,meta:_0x503461})=>_0x503461['isOwn']&&'convertInlineImageToBlock'==_0x515b3c['subType']);if(_0x1f0985['length']>0x1&&_0x4ed007['end']['isEqual'](_0x1e789e['start']))return!0x0;if(0x1==_0x1f0985['length']&&(_0x1e789e['start']['isEqual'](_0x4ed007['end'])||_0x1e789e['end']['isEqual'](_0x4ed007['start'])))return!0x0;}if(0x3==_0x41c2d5&&0x3==_0x3add0c&&_0x1e789e['start']['isBefore'](_0x4ed007['start'])){const _0x3bdebe=_0x1e789e['end']['nodeAfter'],_0x2ed170=_0x4ed007['start']['nodeBefore'];return _0x1b32e3['isBlockImage'](_0x3bdebe)&&_0x3bdebe===_0x2ed170;}return!0x1;}function _0xab40b3(_0x251bdb,_0x2f63dc){return _0x11250a(_0x251bdb,_0x2f63dc)?[_0x251bdb,_0x2f63dc]:_0x11250a(_0x2f63dc,_0x251bdb)?[_0x2f63dc,_0x251bdb]:null;}_0x3547ad['plugins']['has']('ImageResize')&&(_0x4e206c['enableDefaultAttributesIntegration']('resizeImage'),_0x4e206c['registerBlockAttribute']('resizedWidth'),_0x4e206c['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x308b6b,'FORMAT_IMAGE_SIZE'))),_0x3547ad['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4e206c['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4e206c['registerBlockAttribute']('alt')),_0x3547ad['plugins']['has']('PictureEditing')&&(_0x4e206c['registerBlockAttribute']('sources'),_0x4e206c['descriptionFactory']['registerDescriptionCallback'](_0xd60614=>{if('attribute'!=_0xd60614['type'])return;const {data:_0x4a0c19}=_0xd60614;return _0x4a0c19&&'sources'==_0x4a0c19['key']?{'type':'format','content':''}:void 0x0;})),_0x3547ad['plugins']['has']('ImageSizeAttributes')&&(_0x4e206c['registerBlockAttribute']('width'),_0x4e206c['registerBlockAttribute']('height'),_0x4e206c['descriptionFactory']['registerDescriptionCallback'](_0x4d72bd=>{if('attribute'!=_0x4d72bd['type'])return;const {data:_0x1e215b}=_0x4d72bd;return!_0x1e215b||'width'!=_0x1e215b['key']&&'height'!=_0x1e215b['key']?void 0x0:{'type':'format','content':''};})),_0x4e206c['descriptionFactory']['registerDescriptionCallback'](_0x8184b2=>{if(!!_0x8ee30e['find'](({type:_0x3392b7,subType:_0x2d9a46})=>_0x8184b2['type']==_0x3392b7&&_0x8184b2['subType']==_0x2d9a46))return _0x8184b2['previous']?{}:void 0x0;}),_0x4e206c['descriptionFactory']['registerDescriptionCallback'](_0x4629b9=>{if('insertion'==_0x4629b9['type']||'deletion'==_0x4629b9['type']){const _0x2cf46c=_0x4629b9['getContainedElement']();if(_0x2cf46c&&_0x2cf46c['is']('element','caption'))return{'type':'insertion'==_0x4629b9['type']?'addObject':'removeObject','element':_0x2cf46c,'quantity':0x1};}}),_0x4e206c['descriptionFactory']['registerDescriptionCallback'](_0x55b951=>'formatBlock'==_0x55b951['type']&&'convertInlineImageToBlock'==_0x55b951['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x55b951['type']&&'convertBlockImageToInline'==_0x55b951['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4e206c['descriptionFactory']['registerDescriptionCallback'](_0x62e000=>{if('attribute'!=_0x62e000['type'])return;const {data:_0x504c18}=_0x62e000;if(!_0x504c18||'alt'!=_0x504c18['key'])return;const _0xf76aa3=_0x504c18['newValue'];return _0xf76aa3?{'type':'format','content':o(_0x308b6b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xf76aa3+'\x22')}:{'type':'format','content':o(_0x308b6b,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f6a2e=this['editor'],_0x41b2bc=_0x2f6a2e['locale'];_0x2f6a2e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x84cb5f=>{if('formatBlock'!=_0x84cb5f['type']&&'formatInline'!=_0x84cb5f['type'])return;const {data:_0x401a81}=_0x84cb5f;if(_0x401a81){if('imageTextAlternative'==_0x401a81['commandName']){const _0x372a5a=_0x401a81['commandParams'][0x0]['newValue'];return _0x372a5a?{'type':'format','content':o(_0x41b2bc,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x372a5a+'\x22')}:{'type':'format','content':o(_0x41b2bc,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x401a81['commandName']){const _0x35f624=_0x401a81['commandParams'][0x0]['width'];return _0x35f624?{'type':'format','content':o(_0x41b2bc,'*Set\x20image\x20width:*\x20%0',_0x35f624)}:{'type':'format','content':o(_0x41b2bc,'*Reset\x20image\x20width*')};}}});}}class st extends _0x263240{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x523e44=this['editor']['locale'],_0x5028c1=this['editor']['plugins']['get']('TrackChangesEditing');_0x5028c1['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5028c1['registerBlockAttribute']('src'),_0x5028c1['descriptionFactory']['registerDescriptionCallback'](_0x38c428=>{if('attribute'!=_0x38c428['type'])return;const {data:_0x43a79b}=_0x38c428;return _0x43a79b&&'src'==_0x43a79b['key']?_0x43a79b['newValue']&&_0x43a79b['oldValue']?{'type':'format','content':o(_0x523e44,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2bf2eb=this['editor']['plugins']['get']('TrackChangesEditing');_0x2bf2eb['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2bf2eb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2bf2eb['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2bf2eb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x599621=this['editor'],_0x366a31=_0x599621['locale'];_0x599621['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52fb96=>{if('formatBlock'!=_0x52fb96['type']&&'formatInline'!=_0x52fb96['type'])return;const {data:_0x1c0542}=_0x52fb96;if(!_0x1c0542||'replaceImageSource'!=_0x1c0542['commandName'])return;return{'type':'format','content':o(_0x366a31,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x263240{['afterInit'](){const _0x4cafe4=this['editor'];if(!_0x4cafe4['plugins']['has']('ImageStyleEditing'))return;const _0x3ec17b=_0x4cafe4['plugins']['get']('TrackChangesEditing'),_0x4fb956=_0x4cafe4['plugins']['get']('ImageUtils'),_0x1109ba={};_0x3ec17b['enableCommand']('imageStyle',(_0x39e8b3,_0x2a7dc0)=>{const _0x474e08=_0x4cafe4['plugins']['get']('Users')['me'],_0x5dc5fb=_0x4cafe4['commands']['get']('imageStyle');let _0x4e6cd2=_0x4fb956['getClosestSelectedImageElement'](_0x4cafe4['model']['document']['selection']),_0x3fabad=_0x4cafe4['model']['createRangeOn'](_0x4e6cd2),_0x3895e3=_0x5dc5fb['value'];if(_0x3895e3==_0x2a7dc0['value'])return;const _0x462fbb={'commandName':'imageStyle','commandParams':[_0x2a7dc0],'formatGroupId':_0x57604c()};_0x4cafe4['model']['change'](()=>{if(_0x3ec17b['getSuggestions']()['filter'](_0x5a9b94=>_0x5a9b94['isInContent']&&_0x474e08==_0x5a9b94['author']&&('formatBlock'==_0x5a9b94['type']||'formatInline'==_0x5a9b94['type'])&&('imageStylePreApply'==_0x5a9b94['subType']||'imageStylePostApply'==_0x5a9b94['subType'])&&_0x5a9b94['getFirstRange']()['isEqual'](_0x3fabad))['forEach'](_0x5020ba=>_0x3ec17b['discardSuggestion'](_0x5020ba['head'])),_0x4e6cd2=_0x4fb956['getClosestSelectedImageElement'](_0x4cafe4['model']['document']['selection']),_0x3fabad=_0x4cafe4['model']['createRangeOn'](_0x4e6cd2),_0x5dc5fb['refresh'](),_0x4cafe4['commands']['get']('imageTypeInline')['refresh'](),_0x4cafe4['commands']['get']('imageTypeBlock')['refresh'](),_0x3895e3=_0x5dc5fb['value'],_0x3895e3!=_0x2a7dc0['value'])return _0x4fb956['isInlineImage'](_0x4e6cd2)&&_0x5dc5fb['shouldConvertImageType'](_0x2a7dc0['value'],_0x4e6cd2)?(_0x39e8b3({..._0x2a7dc0,'setImageSizes':!0x1}),_0x4e6cd2=_0x4fb956['getClosestSelectedImageElement'](_0x4cafe4['model']['document']['selection']),void _0x3ec17b['markBlockFormat'](_0x4e6cd2,{..._0x462fbb,'commandReversedParams':[{'value':_0x3895e3||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4fb956['isBlockImage'](_0x4e6cd2)?_0x3ec17b['markBlockFormat'](_0x4e6cd2,_0x462fbb,[],'imageStylePostApply'):_0x3ec17b['markInlineFormat'](_0x3fabad,_0x462fbb,'imageStylePostApply'));});});for(const _0x20ad88 of _0x4cafe4['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1109ba[_0x20ad88['name']]=_0x20ad88['title']['toLowerCase']();_0x3ec17b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3ec17b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3ec17b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3ec17b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x812b37])=>{_0x4fb956['setImageNaturalSizeAttributes'](_0x812b37['getContainedElement']());}),_0x3ec17b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3bcb6f,_0x3d87d4)=>{_0x3ec17b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3bcb6f,{'commandName':_0x3d87d4['commandName'],'commandParams':_0x3d87d4['commandReversedParams']});}),_0x3ec17b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x42a286,_0x4fdace){if(_0x123b38(_0x42a286,_0x4fdace))return[_0x42a286,_0x4fdace];if(_0x123b38(_0x4fdace,_0x42a286))return[_0x4fdace,_0x42a286];return null;});const _0x5c8a95=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x123b38(_0x26166f,_0x30efc9){const _0x35d597=_0x5c8a95['findIndex'](({type:_0x45d941,subType:_0x9aa3ea})=>_0x26166f['type']==_0x45d941&&_0x26166f['subType']==_0x9aa3ea),_0x4ec079=_0x5c8a95['findIndex'](({type:_0x31b1fe,subType:_0x91b365})=>_0x30efc9['type']==_0x31b1fe&&_0x30efc9['subType']==_0x91b365);if(_0x35d597<0x0||_0x4ec079<0x0)return!0x1;const _0x2a3d6a=_0x26166f['getFirstRange'](),_0x43e0ad=_0x30efc9['getFirstRange']();if((0x0==_0x35d597||0x1==_0x35d597)&&0x2==_0x4ec079&&_0x2a3d6a['isIntersecting'](_0x43e0ad))return!0x0;if(0x2==_0x35d597&&0x3==_0x4ec079){const _0x449b2c=_0x3ec17b['_findSuggestions'](_0x2a3d6a,'insertion')['filter'](({suggestion:_0x3806ae,meta:_0x14ba9f})=>_0x14ba9f['isOwn']&&'convertInlineImageToBlock'==_0x3806ae['subType']);if(_0x449b2c['length']>0x1&&_0x43e0ad['end']['isEqual'](_0x2a3d6a['start']))return!0x0;if(0x1==_0x449b2c['length']&&(_0x2a3d6a['start']['isEqual'](_0x43e0ad['end'])||_0x2a3d6a['end']['isEqual'](_0x43e0ad['start'])))return!0x0;}if(0x3==_0x35d597&&0x3==_0x4ec079&&_0x2a3d6a['start']['isBefore'](_0x43e0ad['start'])){const _0x5c315e=_0x2a3d6a['end']['nodeAfter'],_0x3ab0f2=_0x43e0ad['start']['nodeBefore'];return _0x4fb956['isBlockImage'](_0x5c315e)&&_0x5c315e===_0x3ab0f2;}return!0x1;}_0x4cafe4['model']['document']['registerPostFixer'](()=>{let _0x5ef513=!0x1;const _0x47822f=Array['from'](_0x4cafe4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5f05b9,data:_0x3e0298}of _0x47822f){const {group:_0x4961a7,type:_0x14f17f,subType:_0x3f7a36,id:_0xd7e4e5}=_0x3ec17b['_splitMarkerName'](_0x5f05b9);if('suggestion'==_0x4961a7&&_0x3ec17b['hasSuggestion'](_0xd7e4e5)){if('formatBlock'==_0x14f17f&&('imageStylePreApply'==_0x3f7a36||'imageStylePostApply'==_0x3f7a36)){const _0x56760b=_0x3ec17b['getSuggestion'](_0xd7e4e5);if(_0x3e0298['newRange']){const _0x497afd=_0x56760b['getFirstRange']()['getContainedElement']();if(_0x4fb956['isBlockImage'](_0x497afd))continue;_0x3ec17b['discardSuggestion'](_0x56760b),_0x5ef513=!0x0;}}if('insertion'==_0x14f17f&&'imageCaption'==_0x3f7a36&&!_0x3e0298['newRange']){const _0x52bfa5=_0x3ec17b['getSuggestion'](_0xd7e4e5);_0x52bfa5['next']&&_0x52bfa5['next']['isInContent']&&(_0x3ec17b['discardSuggestion'](_0x52bfa5['next']),_0x5ef513=!0x0);}}}return _0x5ef513;}),this['_registerLegacyDescription'](_0x1109ba);}['_registerLegacyDescription'](_0x633996){const _0x563d58=this['editor'],_0x4529a7=_0x563d58['locale'];_0x563d58['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1717e8=>{if('formatBlock'!=_0x1717e8['type']&&'formatInline'!=_0x1717e8['type'])return;const {data:_0x552038}=_0x1717e8;if(!_0x552038||'imageStyle'!=_0x552038['commandName'])return;const _0x3b66d6=_0x552038['commandParams'][0x0]['value'];return _0x1c0f12('side'===_0x3b66d6?o(_0x4529a7,'FORMAT_SIDE_IMAGE'):_0x633996[_0x3b66d6]||_0x3b66d6);function _0x1c0f12(_0xad9b3c){return{'type':'format','content':o(_0x4529a7,'*Format:*\x20%0',_0xad9b3c)};}});}}class rt extends _0x263240{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x17361e){super(_0x17361e),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4e418e=this['editor'],_0x2426a8=_0x4e418e['commands']['get']('importWord'),_0x37d16e=_0x4e418e['commands']['get']('trackChanges');_0x2426a8&&(_0x2426a8['on']('execute',(_0x1c5c8f,[,_0xa50d75])=>{this['_trackChangesValueDuringImport']=_0x37d16e['value'],_0xa50d75['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2426a8,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2426a8,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x37d16e['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4e418e['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x437e31,_0x22501f){const {suggestions:_0x297eb1}=_0x22501f,_0x3ceca4=this['editor']['commands']['get']('trackChanges'),_0x348891=_0x3ceca4['value'];this['_trackChangesValueDuringImport']!==_0x348891&&(_0x3ceca4['execute'](),this['_trackChangesExecuted']=!0x0),_0x297eb1&&_0x297eb1['forEach'](({id:_0x272b79,type:_0x390a70,author:_0x3c06e5,created_at:_0x145f4d})=>{const _0x2452dc={'id':_0x272b79,'type':_0x390a70,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3c06e5,'createdAt':_0x145f4d?new Date(_0x145f4d):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2452dc);});}}class at extends _0x263240{['afterInit'](){const _0xe665db=this['editor'],_0x4befd9=_0xe665db['plugins']['get']('TrackChangesEditing');if(_0xe665db['plugins']['has']('IndentEditing')&&(_0x4befd9['enableCommand']('indent'),_0x4befd9['enableCommand']('outdent')),_0xe665db['plugins']['has']('IndentBlock')){for(const _0xe530af of['indentBlock','outdentBlock'])_0x4befd9['enableDefaultAttributesIntegration'](_0xe530af);}const _0xe3ed93=_0xe665db['locale'];_0x4befd9['registerBlockAttribute']('blockIndent'),_0x4befd9['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0xe3ed93,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a9522=this['editor'],_0x576280=_0x5a9522['locale'],_0x322f95=_0x5a9522['plugins']['get']('TrackChangesEditing');_0x322f95['descriptionFactory']['registerDescriptionCallback'](_0x52d496=>{if('formatBlock'!=_0x52d496['type'])return;const {data:_0x24da27}=_0x52d496;if(!_0x24da27)return;if('indentBlock'!=_0x24da27['commandName']&&'outdentBlock'!=_0x24da27['commandName'])return;const _0x131d03=_0x52d496['getItems']()[0x0],_0x2b8af2=_0x322f95['descriptionFactory']['getItemLabel'](_0x131d03);return'indentBlock'==_0x24da27['commandName']?{'type':'format','content':o(_0x576280,'*Indent:*\x20%0',_0x2b8af2)}:'outdentBlock'==_0x24da27['commandName']?{'type':'format','content':o(_0x576280,'*Outdent:*\x20%0',_0x2b8af2)}:void 0x0;});}}class ct extends _0x263240{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x263240{['afterInit'](){const _0x4f4210=this['editor'];if(!_0x4f4210['plugins']['has']('LinkEditing'))return;const _0x5f02a4=_0x4f4210['plugins']['get']('TrackChangesEditing'),_0x30803f=_0x4f4210['commands']['get']('link');_0x5f02a4['enableDefaultAttributesIntegration']('link'),_0x5f02a4['enableDefaultAttributesIntegration']('unlink'),_0x5f02a4['registerInlineAttribute']('linkHref');for(const _0x2e9859 of _0x30803f['manualDecorators'])_0x5f02a4['registerInlineAttribute'](_0x2e9859['id']),_0x5f02a4['descriptionFactory']['registerAttributeLabel'](_0x2e9859['id'],'link\x20('+_0x2e9859['label']['toLowerCase']()+')');_0x5f02a4['descriptionFactory']['registerDescriptionCallback'](_0x25eb4b=>{if('attribute'!=_0x25eb4b['type'])return;const {data:_0x43ca52}=_0x25eb4b;if(!_0x43ca52||'linkHref'!=_0x43ca52['key'])return;const _0x539b73=_0x43ca52['newValue'],_0x3d8dfa=_0x4f4210['locale'];return{'type':'format','content':null==_0x539b73?o(_0x3d8dfa,'*Remove\x20link*'):o(_0x3d8dfa,'*Set\x20link:*\x20%0','\x22'+_0x539b73+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd0d39b=this['editor'],_0x2d4823=_0xd0d39b['locale'];_0xd0d39b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e5c0f=>{if('formatInline'!=_0x4e5c0f['type'])return;const {data:_0x206cd1}=_0x4e5c0f;if(_0x206cd1){if('link'==_0x206cd1['commandName']){const _0x25fd4f=_0x206cd1['commandParams'][0x0];return{'type':'format','content':o(_0x2d4823,'*Set\x20link:*\x20%0','\x22'+_0x25fd4f+'\x22')};}return'unlink'==_0x206cd1['commandName']?{'type':'format','content':o(_0x2d4823,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x263240{['afterInit'](){const _0x2a9d34=this['editor'],_0x14064f=_0x2a9d34['locale'];if(!_0x2a9d34['plugins']['has']('LegacyListEditing'))return;const _0x304839=_0x2a9d34['plugins']['get']('TrackChangesEditing'),_0x28cc5d=_0x2a9d34['plugins']['has']('LegacyTodoListEditing');function _0x58815a(_0x4f3585){return()=>{const _0x137e14=_0x2a9d34['model']['document']['selection'],_0x5d1dfd=_0x2a9d34['commands']['get'](_0x4f3585);if(_0x5d1dfd['value'])return void _0x2a9d34['execute']('paragraph',{});const _0xbeb6e0=_0x4f3585['slice'](0x0,-0x4),_0x5e9625=function(_0x1a3606,_0x534c49,_0x7863d0){let _0x2feb6e=Array['from'](_0x1a3606)['filter'](_0x1cfcdd=>function(_0x487ad7,_0x13df3a){return _0x13df3a['checkChild'](_0x487ad7['parent'],'listItem')&&!_0x13df3a['isObject'](_0x487ad7);}(_0x1cfcdd,_0x7863d0));_0x2feb6e=_0x2feb6e['filter'](_0x1a1303=>!_0x1a1303['is']('element','listItem')||_0x1a1303['getAttribute']('listType')!=_0x534c49);const _0x195f34=new Set();for(const _0x5b1dd0 of _0x2feb6e)_0x5b1dd0['is']('element','listItem')?_0x195f34['add'](Le(_0x5b1dd0)):_0x195f34['add'](_0x5b1dd0);return Array['from'](_0x195f34);}(_0x137e14['getSelectedBlocks'](),_0xbeb6e0,_0x2a9d34['model']['schema']);_0x2a9d34['model']['change'](()=>{for(const _0x1fb6d5 of _0x5e9625)_0x304839['markBlockFormat'](_0x1fb6d5,{'commandName':_0x4f3585,'commandParams':[{'forceValue':!_0x5d1dfd['value']}],'formatGroupId':'blockName'},Ee(_0x1fb6d5));});};}function _0x40917f(_0x3672cd){return()=>{const _0x19d0e9=function(_0x5e7b2b){let _0x360033=Array['from'](_0x5e7b2b);const _0x36430b=_0x360033['findIndex'](_0x18d974=>'listItem'!=_0x18d974['name']);return _0x36430b>-0x1&&(_0x360033=_0x360033['slice'](0x0,_0x36430b)),_0x360033;}(_0x2a9d34['model']['document']['selection']['getSelectedBlocks']()),_0x2bb98d=_0x2a9d34['model']['createRange'](_0x2a9d34['model']['createPositionAt'](_0x19d0e9[0x0],'before'),_0x2a9d34['model']['createPositionAt'](_0x19d0e9[_0x19d0e9['length']-0x1],'end'));_0x2a9d34['model']['change'](()=>{_0x304839['markBlockFormat'](_0x2bb98d,{'commandName':_0x3672cd,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3769c2){const _0x1b47c8=new Set();for(const _0x3a3f02 of _0x3769c2){let _0x4477a2=_0x3a3f02['nextSibling'];for(;_0x4477a2&&_0x4477a2['getAttribute']('listIndent')>_0x3a3f02['getAttribute']('listIndent');)_0x1b47c8['add'](_0x4477a2),_0x4477a2=_0x4477a2['nextSibling'];}return Array['from'](_0x1b47c8);}(_0x19d0e9));});};}_0x304839['enableCommand']('numberedList',_0x58815a('numberedList')),_0x304839['enableCommand']('bulletedList',_0x58815a('bulletedList')),_0x28cc5d&&_0x304839['enableCommand']('todoList',_0x58815a('todoList')),_0x304839['enableCommand']('indentList',_0x40917f('indentList')),_0x304839['enableCommand']('outdentList',_0x40917f('outdentList')),_0x28cc5d&&_0x304839['enableCommand']('checkTodoList',()=>{const _0xcd7942=_0x2a9d34['commands']['get']('checkTodoList'),_0x6ce7c4=Array['from'](_0xcd7942['_selectedElements']);_0x6ce7c4['filter'](_0x381672=>_0x381672['getAttribute']('todoListChecked')!=_0xcd7942['value']),_0x2a9d34['model']['change'](()=>{for(const _0x393399 of _0x6ce7c4)_0x304839['markBlockFormat'](_0x393399,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xcd7942['value']}]});});}),_0x304839['descriptionFactory']['registerElementLabel']('listItem',_0x251564=>o(_0x14064f,'ELEMENT_LIST_ITEM',_0x251564)),_0x304839['descriptionFactory']['registerDescriptionCallback'](_0x5c6ae0=>{if('formatBlock'!=_0x5c6ae0['type']&&'formatInline'!=_0x5c6ae0['type'])return;const {data:_0x2e502e}=_0x5c6ae0;if(_0x2e502e){if('numberedList'==_0x2e502e['commandName']||'bulletedList'==_0x2e502e['commandName']||'todoList'==_0x2e502e['commandName'])switch(_0x2e502e['commandName']['replace']('List','')){case'bulleted':return _0x16d6b7(o(_0x14064f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x16d6b7(o(_0x14064f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x16d6b7(o(_0x14064f,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2e502e['commandName'])return{'type':'format','content':o(_0x14064f,'*Indent:*\x20%0',o(_0x14064f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2e502e['commandName'])return{'type':'format','content':o(_0x14064f,'*Outdent:*\x20%0',o(_0x14064f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2e502e['commandName'])return _0x2e502e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x14064f,'*Check\x20item*')}:{'type':'format','content':o(_0x14064f,'*Uncheck\x20item*')};}function _0x16d6b7(_0x1c4e2e){return{'type':'format','content':o(_0x14064f,'*Change\x20to:*\x20%0',_0x1c4e2e)};}});}}function Le(_0x3e6e40){const _0x509ae4=_0x3e6e40['getAttribute']('listIndent');if(0x0==_0x509ae4)return _0x3e6e40;let _0xe15822=_0x3e6e40;for(;_0x3e6e40['previousSibling']&&_0x3e6e40['previousSibling']['is']('element','listItem');){const _0x1cacef=_0x3e6e40['previousSibling']['getAttribute']('listIndent');if(_0x1cacef==_0x509ae4)_0xe15822=_0x3e6e40['previousSibling'];else{if(_0x1cacef<_0x509ae4)break;}_0x3e6e40=_0x3e6e40['previousSibling'];}return _0xe15822;}function Ee(_0x5641bb){const _0x245084=[];if(_0x5641bb['is']('element','listItem')&&_0x5641bb['getAttribute']('listIndent')>0x0){let _0x13e010=_0x5641bb['nextSibling'];for(;_0x13e010&&'listItem'==_0x13e010['name']&&_0x13e010['getAttribute']('listIndent')==_0x5641bb['getAttribute']('listIndent');)_0x245084['push'](_0x13e010),_0x13e010=_0x13e010['nextSibling'];}return _0x245084;}class ht extends _0x263240{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2319dc=this['editor']['config']['get']('list.properties'),_0x3cddd6=this['editor']['plugins']['get']('TrackChangesEditing');_0x2319dc['styles']&&_0x3cddd6['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2319dc['reversed']&&_0x3cddd6['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2319dc['startIndex']&&_0x3cddd6['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3cddd6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x7ebdc2,_0x6e3424={}){const _0x3b320d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e03e6=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3b320d['markMultiRangeBlockFormat'](_0x5e03e6,{'commandName':'listStyle','commandParams':[{'type':_0x6e3424['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3f439a,_0x5845b0={}){const _0x1cb92f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31b44a=this['_getSuggestionBlocks'](_0x3fb448=>_0x3fb448['is']('element','listItem')&&'numbered'===_0x3fb448['getAttribute']('listType'));if(_0x31b44a['length']<0x1)return;const _0x4bbc45=_0x31b44a['map'](_0x4aae96=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4aae96,'before'),this['editor']['model']['createPositionAt'](_0x4aae96,0x0)));this['editor']['model']['change'](()=>{_0x1cb92f['markMultiRangeBlockFormat'](_0x4bbc45,{'commandName':'listReversed','commandParams':[{'reversed':_0x5845b0['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x17fe92,_0x3fb4bd={}){const _0x73c429=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47c8b2=this['_getSuggestionBlocks'](_0x3ea417=>_0x3ea417['is']('element','listItem')&&'numbered'===_0x3ea417['getAttribute']('listType'));if(_0x47c8b2['length']<0x1)return;const _0x1cc8ec=_0x47c8b2['map'](_0x1eb89a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1eb89a,'before'),this['editor']['model']['createPositionAt'](_0x1eb89a,0x0)));this['editor']['model']['change'](()=>{_0x73c429['markMultiRangeBlockFormat'](_0x1cc8ec,{'commandName':'listStart','commandParams':[{'startIndex':_0x3fb4bd['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x18bc3a){if('formatBlock'!=_0x18bc3a['type']&&'formatInline'!=_0x18bc3a['type'])return;const _0x4b8588=this['editor']['locale'],{data:_0x17a8c5}=_0x18bc3a;if(!_0x17a8c5)return;let _0x20a7ee,_0x3ef1a4;switch(_0x17a8c5['commandName']){case'listStyle':_0x20a7ee='*Change\x20to:*\x20%0',_0x3ef1a4={'type':'format','content':o(_0x4b8588,_0x20a7ee,o(_0x4b8588,this['_getTranslationKeyForListStyle'](_0x17a8c5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x20a7ee=_0x17a8c5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3ef1a4={'type':'format','content':o(_0x4b8588,_0x20a7ee)};break;case'listStart':_0x20a7ee='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3ef1a4={'type':'format','content':o(_0x4b8588,_0x20a7ee,_0x17a8c5['commandParams'][0x0]['startIndex'])};}return _0x3ef1a4;}['_getSuggestionBlocksForListStyle'](){const _0x1fdf30=this['editor']['plugins']['get']('LegacyListUtils');let _0x45766e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x45766e[0x0]?.['is']('element','listItem')&&_0x45766e['unshift'](..._0x1fdf30['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x45766e[_0x45766e['length']-0x1]?.['is']('element','listItem')&&_0x45766e['push'](..._0x1fdf30['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x45766e=[...new Set(_0x45766e)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x45766e=_0x45766e['filter'](_0x1e9bcf=>_0x1e9bcf['is']('element','listItem'))),_0x45766e;}['_getSuggestionBlocks'](_0x39f0d0){const _0x439333=this['editor']['plugins']['get']('LegacyListUtils');let _0x5daba8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x39f0d0)['map'](_0x404502=>{const _0x19bc93=this['editor']['model']['createPositionAt'](_0x404502,0x0);return[..._0x439333['getSiblingNodes'](_0x19bc93,'backward'),..._0x439333['getSiblingNodes'](_0x19bc93,'forward')];})['flat']();return _0x5daba8=[...new Set(_0x5daba8)],_0x5daba8;}['_getTranslationKeyForListStyle'](_0x2b01a3){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2b01a3)||'default')['toUpperCase']()+'_LIST_'+_0x2b01a3['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x263240{['afterInit'](){const _0x143f83=this['editor'];if(!_0x143f83['plugins']['has']('MediaEmbedEditing'))return;const _0x25fcbd=_0x143f83['plugins']['get']('TrackChangesEditing'),_0x437542=_0x143f83['locale'];_0x25fcbd['enableCommand']('mediaEmbed'),_0x25fcbd['descriptionFactory']['registerElementLabel']('media',_0x2ab4cb=>o(_0x437542,'ELEMENT_MEDIA',_0x2ab4cb)),_0x143f83['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3f50b9,{writer:_0x1f167e,options:_0x9d5ea9})=>{if(_0x9d5ea9['showSuggestionHighlights'])return _0x1f167e['createEmptyElement']('div');},'converterPriority':'high'}),_0x143f83['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2febf8,_0xf4e5bb,_0x1c7b44)=>{_0x1c7b44['options']['showSuggestionHighlights']&&_0x2febf8['stop']();},{'priority':'high'});}}class lt extends _0x263240{['afterInit'](){const _0x4da04b=this['editor'];_0x4da04b['plugins']['has']('MentionEditing')&&_0x4da04b['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x263240{['afterInit'](){const _0x572087=this['editor'];if(!_0x572087['plugins']['has']('MergeFieldsEditing'))return;const _0x394932=_0x572087['plugins']['get']('TrackChangesEditing'),_0x22d74d=_0x572087['locale'];_0x394932['enableCommand']('insertMergeField'),_0x394932['enableCommand']('insertMergeFieldBlock'),_0x394932['enableCommand']('insertMergeFieldImage'),_0x394932['descriptionFactory']['registerElementLabel']('mergeField',_0x4de2dd=>o(_0x22d74d,'ELEMENT_MERGE_FIELD',_0x4de2dd)),_0x394932['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5b4bce=>o(_0x22d74d,'ELEMENT_MERGE_FIELD',_0x5b4bce)),_0x394932['descriptionFactory']['registerDescriptionCallback'](_0x3e83d0=>{if('insertion'!=_0x3e83d0['type']&&'deletion'!=_0x3e83d0['type'])return;const _0x40a84b=_0x3e83d0['getContainedElement']();if(null==_0x40a84b)return;const _0x12b586=_0x572087['plugins']['get']('MergeFieldsEditing');let _0x1f22ff;switch(_0x12b586['getMergeFieldType'](_0x40a84b)){case null:return;case'image':{const _0x2c9d8f=_0x12b586['unwrapAffixes'](_0x40a84b['getAttribute']('src'));_0x1f22ff=_0x12b586['getLabel'](_0x2c9d8f)||_0x2c9d8f;break;}default:{const _0x4c61f6=_0x40a84b['getAttribute']('id');_0x1f22ff=_0x12b586['getLabel'](_0x4c61f6)||_0x4c61f6;break;}}return'insertion'==_0x3e83d0['type']?{'type':'insertion','content':o(_0x22d74d,'*Insert:*\x20%0','\x22'+_0x1f22ff+'\x22\x20'+o(_0x22d74d,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x22d74d,'*Remove:*\x20%0','\x22'+_0x1f22ff+'\x22\x20'+o(_0x22d74d,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x263240{['afterInit'](){const _0x17201b=this['editor'],_0x3ced63=_0x17201b['plugins']['get']('TrackChangesEditing');_0x17201b['plugins']['has']('MultiLevelList')&&(_0x3ced63['enableDefaultAttributesIntegration']('multiLevelList'),_0x3ced63['registerBlockAttribute']('listMarkerStyle'),_0x3ced63['descriptionFactory']['registerDescriptionCallback'](_0x30522f=>this['handleDescriptions'](_0x30522f)));}['handleDescriptions'](_0x5a6a05){const _0x3d1c5a=this['editor']['locale'],{data:_0x4d7706}=_0x5a6a05,_0x5b89b4={'type':'format','content':''};if(_0x4d7706&&'listMarkerStyle'==_0x4d7706['key']){if(!_0x4d7706['oldValue'])return{'type':'format','content':o(_0x3d1c5a,'*Set\x20format:*\x20%0',o(_0x3d1c5a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4d7706['newValue']+')'};if(!_0x4d7706['newValue']){let _0x4e7c15=_0x5a6a05['head'];for(;_0x4e7c15;){if(_0x4e7c15['data']&&'listType'==_0x4e7c15['data']['key']&&_0x4e7c15['data']['newValue'])return _0x5b89b4;_0x4e7c15=_0x4e7c15['next'];}return{'type':'format','content':o(_0x3d1c5a,'*Remove\x20format:*\x20%0',o(_0x3d1c5a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4d7706['oldValue']+')'};}}}}class pt extends _0x263240{['afterInit'](){const _0x2de8b7=this['editor'];if(!_0x2de8b7['plugins']['has']('PageBreakEditing'))return;_0x2de8b7['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4b91ef=_0x2de8b7['plugins']['get']('TrackChangesEditing'),_0x5ef3c0=_0x2de8b7['locale'];_0x4b91ef['descriptionFactory']['registerElementLabel']('pageBreak',_0x52ab7b=>o(_0x5ef3c0,'ELEMENT_PAGE_BREAK',_0x52ab7b));}}class kt extends _0x263240{['afterInit'](){const _0x3e5d33=this['editor'];if(!_0x3e5d33['plugins']['has']('Paragraph'))return;const _0x12a317=_0x3e5d33['locale'],_0x4ebf6=_0x3e5d33['plugins']['get']('TrackChangesEditing');_0x4ebf6['descriptionFactory']['registerElementLabel']('paragraph',_0x14c127=>o(_0x12a317,'ELEMENT_PARAGRAPH',_0x14c127)),_0x4ebf6['enableDefaultAttributesIntegration']('paragraph'),_0x4ebf6['enableCommand']('insertParagraph'),_0x3e5d33['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3e5d33),{'priority':'highest'}),_0x3e5d33['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x977ff2,_0x47902e,_0x4148f4)=>{_0x4148f4['options']['showSuggestionHighlights']&&nr(_0x3e5d33,{'showActiveMarker':!0x1})(_0x977ff2,_0x47902e,_0x4148f4);},{'priority':'highest'});const _0x4acc0b=_0x4ebf6['descriptionFactory'];_0x4acc0b['registerDescriptionCallback'](_0x5aa7cf=>{if('insertion'!==_0x5aa7cf['type'])return;const {start:_0x187f30,end:_0x441c03}=_0x5aa7cf['getFirstRange']();if(!_0x187f30['isTouching'](_0x441c03)||!_0x187f30['nodeAfter'])return;const _0x4d8df0=_0x3e5d33['model']['schema'],_0x465c84=_0x187f30['nodeAfter'];return _0x4d8df0['isBlock'](_0x465c84)&&!_0x4d8df0['isLimit'](_0x465c84)&&_0x4d8df0['checkChild'](_0x465c84,'$text')?{'type':'insertion','content':o(_0x12a317,'*Insert:*\x20%0',_0x4acc0b['getItemLabel'](_0x465c84,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e0ed1=this['editor'],_0x5acf3b=_0x2e0ed1['locale'];_0x2e0ed1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x165b08=>{if('formatBlock'!=_0x165b08['type'])return;const {data:_0x14424a}=_0x165b08;return _0x14424a&&'paragraph'==_0x14424a['commandName']?{'type':'format','content':o(_0x5acf3b,'*Change\x20to:*\x20%0',o(_0x5acf3b,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x122f9e,{showActiveMarker:_0x39cd0e=!0x0}={}){return(_0x1a762c,_0x3dd796,_0x5da8bd)=>{const _0x366b26=_0x122f9e['plugins']['get']('TrackChangesEditing'),_0x4d25d9=_0x3dd796['markerRange']['start'],_0x260a20=_0x3dd796['markerRange']['end'],_0x2b9d8f=_0x122f9e['model']['schema'];if(!_0x4d25d9['isTouching'](_0x260a20)||!_0x4d25d9['nodeAfter'])return;const _0x3ad864=_0x4d25d9['nodeAfter'];if(_0x2b9d8f['isBlock'](_0x3ad864)&&!_0x2b9d8f['isLimit'](_0x3ad864)&&_0x2b9d8f['checkChild'](_0x3ad864,'$text')){if(!_0x5da8bd['consumable']['consume'](_0x3dd796['markerRange'],_0x1a762c['name']))return;const {id:_0x7ae3ff,authorId:_0x46d5cd}=_0x366b26['_splitMarkerName'](_0x3dd796['markerName']),_0x28472c=_0x5da8bd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x7ae3ff,'data-author-id':_0x46d5cd}),_0x484847=_0x5da8bd['mapper']['toViewPosition'](_0x260a20);_0x39cd0e&&_0x366b26['activeMarkers']['includes'](_0x3dd796['markerName'])&&_0x5da8bd['writer']['addClass']('ck-suggestion-marker--active',_0x28472c),_0x5da8bd['writer']['insert'](_0x484847,_0x28472c),_0x5da8bd['mapper']['bindElementToMarker'](_0x28472c,_0x3dd796['markerName']);}};}class wt extends _0x263240{['afterInit'](){const _0x2f0b5d=this['editor'];_0x2f0b5d['commands']['get']('replaceSource')&&_0x2f0b5d['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x263240{['afterInit'](){const _0x1e1175=this['editor'];if(!_0x1e1175['plugins']['has']('RemoveFormatEditing'))return;_0x1e1175['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ffdfd=this['editor'];_0x4ffdfd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58ba8b=>{if('formatBlock'!=_0x58ba8b['type']&&'formatInline'!=_0x58ba8b['type'])return;const {data:_0x363f2a}=_0x58ba8b;return _0x363f2a&&'removeFormat'==_0x363f2a['commandName']?{'type':'format','content':o(_0x4ffdfd['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x263240{['afterInit'](){const _0xcfc7d4=this['editor'];if(!_0xcfc7d4['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x55daca=_0xcfc7d4['plugins']['get']('TrackChangesEditing');_0x55daca['enableCommand']('goToPreviousRestrictedEditingException'),_0x55daca['enableCommand']('goToNextRestrictedEditingException');const _0x961eea=_0xcfc7d4['plugins']['get']('RestrictedEditingModeEditing');_0x961eea['enableCommand']('trackChanges'),_0x961eea['enableCommand']('acceptSuggestion'),_0x961eea['enableCommand']('discardSuggestion'),_0x961eea['enableCommand']('acceptAllSuggestions'),_0x961eea['enableCommand']('discardAllSuggestions'),_0x961eea['enableCommand']('acceptSelectedSuggestions'),_0x961eea['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x263240{['afterInit'](){const _0x2521f3=this['editor'];if(!_0x2521f3['plugins']['has']('ShiftEnter'))return;const _0x7f84ec=_0x2521f3['plugins']['get']('TrackChangesEditing');_0x7f84ec['enableCommand']('shiftEnter'),_0x2521f3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x2521f3),{'priority':'high'}),_0x2521f3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x2521f3),{'priority':'high'}),_0x2521f3['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xa66f9e,_0x121a0d,_0x346325)=>{_0x346325['options']['showSuggestionHighlights']&&je(_0x2521f3,{'showActiveMarker':!0x1})(_0xa66f9e,_0x121a0d,_0x346325);}),_0x7f84ec['descriptionFactory']['registerElementLabel']('softBreak',_0x36f80e=>o(_0x2521f3['locale'],'ELEMENT_LINE_BREAK',_0x36f80e));}}function je(_0xfe18df,{showActiveMarker:_0x1ab1d8=!0x0}={}){return(_0x1f8a9e,_0x2a496e,_0x3a5d7b)=>{const _0x344057=_0xfe18df['plugins']['get']('TrackChangesEditing');if(!_0x3a5d7b['consumable']['test'](_0x2a496e['markerRange'],_0x1f8a9e['name']))return;const _0x2cfa60=_0xfe18df['model'];for(const _0x59843d of _0x2a496e['markerRange']['getItems']()){if(!_0x59843d['is']('element','softBreak'))continue;const _0x144d2b='deletion'==_0x2a496e['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x58f954,authorId:_0x3df6f6}=_0x344057['_splitMarkerName'](_0x2a496e['markerName']),_0x108291=_0x3a5d7b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x144d2b,'data-suggestion':_0x58f954,'data-author-id':_0x3df6f6}),_0x83831=_0x3a5d7b['mapper']['toViewPosition'](_0x2cfa60['createPositionBefore'](_0x59843d));_0x1ab1d8&&_0x344057['activeMarkers']['includes'](_0x2a496e['markerName'])&&_0x3a5d7b['writer']['addClass']('ck-suggestion-marker--active',_0x108291),_0x3a5d7b['writer']['insert'](_0x83831,_0x108291),_0x3a5d7b['mapper']['bindElementToMarker'](_0x108291,_0x2a496e['markerName']);}};}class St extends _0x263240{['afterInit'](){const _0x41b737=this['editor'],_0x591611=_0x41b737['model'],_0x1ba3f8=_0x41b737['locale'];if(!_0x41b737['plugins']['has']('StandardEditingModeEditing'))return;const _0x4d03a5=_0x41b737['plugins']['get']('TrackChangesEditing'),_0x565659='restrictedEditingException',_0x3db66c=_0x41b737['commands']['get'](_0x565659);_0x4d03a5['enableCommand'](_0x565659,(_0x171a45,_0x4b331a={})=>{const _0x58016f=_0x591611['document']['selection'];if(_0x58016f['isCollapsed'])return void _0x171a45(_0x4b331a);const _0x45ec8d=void 0x0!==_0x4b331a['forceValue']?_0x4b331a['forceValue']:!_0x3db66c['value'];_0x591611['change'](()=>{const _0x55dbf8=Array['from'](_0x58016f['getRanges']());for(const _0x2776d5 of _0x55dbf8){const _0x536ad0=_0x45ec8d?[_0x2776d5]:io(_0x565659,_0x2776d5,_0x591611);for(const _0x3e06b4 of _0x536ad0)_0x4d03a5['markInlineFormat'](_0x3e06b4,{'commandName':_0x565659,'commandParams':[{'forceValue':_0x45ec8d}]});}});}),_0x4d03a5['descriptionFactory']['registerDescriptionCallback'](_0xcaf0a0=>{if('formatBlock'!=_0xcaf0a0['type']&&'formatInline'!=_0xcaf0a0['type'])return;const {data:_0x239a56}=_0xcaf0a0;return _0x239a56&&_0x239a56['commandName']==_0x565659?_0x239a56['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1ba3f8,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1ba3f8,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x263240{['afterInit'](){const _0x53fa5f=this['editor'];if(!_0x53fa5f['plugins']['has']('Style')||!_0x53fa5f['plugins']['has']('DataSchema'))return;const _0x4d48f2=_0x53fa5f['plugins']['get']('TrackChangesEditing'),_0x52b8e5=_0x53fa5f['locale'],_0x2a78da=_0x53fa5f['config']['get']('style')||{},_0x5dd7fa=_0x53fa5f['plugins']['get']('GeneralHtmlSupport'),_0x251385=_0x53fa5f['plugins']['get']('StyleUtils')['normalizeConfig'](_0x53fa5f['plugins']['get']('DataSchema'),_0x2a78da['definitions']);_0x4d48f2['enableDefaultAttributesIntegration']('style');const _0x4d2158=new Set();for(const _0x443c41 of _0x251385['block']){const _0x2dffb1=_0x5dd7fa['getGhsAttributeNameForElement'](_0x443c41['element']);_0x4d2158['add'](_0x2dffb1);}const _0x296ded=new Set();for(const _0x1db232 of _0x251385['inline']){const _0x35b191=_0x5dd7fa['getGhsAttributeNameForElement'](_0x1db232['element']);_0x296ded['add'](_0x35b191);for(const _0x12d3ec of _0x1db232['ghsAttributes'])_0x296ded['add'](_0x12d3ec);}for(const _0x1a7a42 of _0x4d2158)_0x4d48f2['registerBlockAttribute'](_0x1a7a42),_0x4d48f2['descriptionFactory']['registerAttributeLabel'](_0x1a7a42,o(_0x52b8e5,'FORMAT_STYLE'));for(const _0x5353ca of _0x296ded)_0x4d48f2['registerInlineAttribute'](_0x5353ca),_0x4d48f2['descriptionFactory']['registerAttributeLabel'](_0x5353ca,o(_0x52b8e5,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17cce0=this['editor'],_0x157051=_0x17cce0['locale'];_0x17cce0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x598aa4=>{if('formatBlock'!=_0x598aa4['type']&&'formatInline'!=_0x598aa4['type'])return;const {data:_0xb88eda}=_0x598aa4;return _0xb88eda&&'style'===_0xb88eda['commandName']?_0xb88eda['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x157051,'*Set\x20format:*\x20%0',_0xb88eda['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x157051,'*Remove\x20format:*\x20%0',_0xb88eda['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x263240{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3a07dc){super(_0x3a07dc),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x18eb11=this['editor'],_0x293706=_0x18eb11['model']['document']['selection'];if(!_0x18eb11['plugins']['has']('TableEditing'))return;const _0x1a85a9=_0x18eb11['locale'],_0x5ccd5e=_0x18eb11['plugins']['get']('TrackChangesEditing'),_0x51b7eb=_0x18eb11['plugins']['get']('TableUtils');_0x5ccd5e['descriptionFactory']['registerElementLabel']('table',_0x73b44=>o(_0x1a85a9,'ELEMENT_TABLE',_0x73b44)),this['_setupColumnsRowsFixing'](),_0x5ccd5e['enableCommand']('insertTable'),_0x5ccd5e['enableCommand']('selectTableRow'),_0x5ccd5e['enableCommand']('selectTableColumn');for(const _0x180cf4 of['insertTableRowAbove','insertTableRowBelow']){const _0x4fa77c=_0x18eb11['commands']['get'](_0x180cf4);_0x5ccd5e['enableCommand'](_0x180cf4,_0x4c9b26=>{_0x18eb11['model']['change'](_0x454c7c=>{_0x4c9b26();const _0x128962='above'===_0x4fa77c['order'],_0x1dc455=_0x51b7eb['getSelectionAffectedTableCells'](_0x293706),_0x526f30=_0x51b7eb['getRowIndexes'](_0x1dc455),_0x2695e1=_0x128962?_0x526f30['first']-0x1:_0x526f30['last']+0x1,_0x3b5a6b=_0x1dc455[0x0]['findAncestor']('table'),_0x2b35e2=_0x51b7eb['createTableWalker'](_0x3b5a6b,{'startRow':_0x2695e1,'endRow':_0x2695e1}),_0x2036cd=Array['from'](_0x2b35e2)['map'](_0x55f9af=>_0x454c7c['createRangeOn'](_0x55f9af['cell']));_0x5ccd5e['markMultiRangeInsertion'](_0x2036cd,'tableRow');});});}for(const _0x53b640 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1f2557=_0x18eb11['commands']['get'](_0x53b640);_0x5ccd5e['enableCommand'](_0x53b640,_0x51605a=>{_0x18eb11['model']['change'](_0x26988b=>{_0x51605a();const _0x1f9062='left'===_0x1f2557['order'],_0x2cac54=_0x51b7eb['getSelectionAffectedTableCells'](_0x293706),_0x5e0bb1=_0x51b7eb['getColumnIndexes'](_0x2cac54),_0x226b0a=_0x1f9062?_0x5e0bb1['first']-0x1:_0x5e0bb1['last']+0x1,_0x45fe9a=_0x2cac54[0x0]['findAncestor']('table'),_0x6cd0ca=_0x51b7eb['createTableWalker'](_0x45fe9a,{'startRow':0x0,'column':_0x226b0a,'includeAllSlots':!0x1}),_0x24313a=Array['from'](_0x6cd0ca)['map'](_0x9f9d91=>_0x26988b['createRangeOn'](_0x9f9d91['cell']));_0x5ccd5e['markMultiRangeInsertion'](_0x24313a,'tableColumn');});});}for(const _0x465585 of['removeTableRow','removeTableColumn']){const _0x29c244=_0x465585['substr'](0xb),_0x1d8728=_0x29c244['toLowerCase'](),_0x146447=_0x1d8728['substr'](0x0,0x3)+'span',_0x131899='table'+_0x29c244,_0x114d76='min'+_0x29c244,_0x21dc51='max'+_0x29c244;_0x5ccd5e['enableCommand'](_0x465585,()=>{_0x18eb11['model']['change'](_0x39ffed=>{const _0x4aaf0a=_0x51b7eb['getSelectionAffectedTableCells'](_0x293706),_0x4a38c8=_0x4aaf0a[0x0]['findAncestor']('table');let _0x13bc41;if('removeTableRow'==_0x465585){const _0xf8afa9=_0x51b7eb['getRowIndexes'](_0x4aaf0a);_0x13bc41={'startRow':_0xf8afa9['first'],'endRow':_0xf8afa9['last'],'includeAllSlots':!0x0};}else{const _0x1eb888=_0x51b7eb['getColumnIndexes'](_0x4aaf0a);_0x13bc41={'startColumn':_0x1eb888['first'],'endColumn':_0x1eb888['last'],'includeAllSlots':!0x0};}const _0x61b72f=_0x51b7eb['createTableWalker'](_0x4a38c8,_0x13bc41),_0xfacc10=Array['from'](_0x61b72f)['map'](({cell:_0x1629ee})=>_0x1629ee),_0x49de8e=Ne(_0xfacc10['filter'](_0x3ce6f5=>_0x3ce6f5['hasAttribute'](_0x146447))),_0x3ab17e=Ne(_0xfacc10['filter'](_0x142254=>!_0x142254['hasAttribute'](_0x146447)))['map'](_0x221d6e=>_0x39ffed['createRangeOn'](_0x221d6e)),_0x52d5b8=_0x5ccd5e['markMultiRangeDeletion'](_0x3ab17e,_0x131899);if(_0x52d5b8&&('tableRow'==_0x52d5b8['subType']||'tableColumn'==_0x52d5b8['subType'])){const _0x1fac52=this['_getSuggestionCoords'](_0x52d5b8);for(const _0xc4bd4e of _0x49de8e){const _0x3c984f=_0x39ffed['createRangeOn'](_0xc4bd4e),_0x1c0e12=_0x51b7eb['getCellLocation'](_0xc4bd4e),_0x28bfd6=_0xc4bd4e['getAttribute'](_0x146447)-0x1,_0x3ecab7=_0x1fac52[_0x114d76],_0x230e31=_0x1fac52[_0x21dc51];_0x3ecab7<=_0x1c0e12[_0x1d8728]&&_0x1c0e12[_0x1d8728]+_0x28bfd6<=_0x230e31&&_0x52d5b8['addRange'](_0x3c984f);}}});});}function _0x3465c6(_0x2402f1){const _0x4d3c92=Array['from'](_0x293706['getRanges']())['map'](_0x4de763=>_0x4451e6['fromRange'](_0x4de763));_0x18eb11['model']['change'](_0x39ec11=>{const _0x5870cc=_0x39ec11['batch'];_0x2402f1=_0x2402f1['filter'](_0x508eb9=>'$graveyard'!=_0x508eb9['root']['rootName']),_0x39ec11['setSelection'](_0x2402f1),_0x18eb11['commands']['get']('removeTableRow')['refresh'](),_0x18eb11['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x18eb11['model']['enqueueChange'](()=>{_0x18eb11['model']['enqueueChange'](_0x5870cc,_0x17b802=>{const _0xe60889=_0x4d3c92['filter'](_0x335b91=>'$graveyard'!=_0x335b91['root']['rootName']);_0xe60889['length']>0x0&&_0x17b802['setSelection'](_0xe60889);for(const _0x18c736 of _0x4d3c92)_0x18c736['detach']();});});});}function _0x17a212(_0x544615){_0x18eb11['model']['change'](_0x103bd0=>{const _0x2d1cc7=Array['from'](_0x293706['getRanges']())['map'](_0x48f5f1=>_0x4451e6['fromRange'](_0x48f5f1)),_0x219d75=[];for(const _0x42410e of _0x544615)for(const _0xbe28d9 of _0x42410e['getItems']({'shallow':!0x0}))_0x219d75['push'](_0xbe28d9);for(const _0x13de0c of _0x219d75)'$graveyard'!=_0x13de0c['root']['rootName']&&(_0x103bd0['setSelection'](_0x103bd0['createPositionAt'](_0x13de0c,0x0)),_0x18eb11['commands']['get']('removeTableColumn')['refresh'](),_0x18eb11['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2f2747=_0x2d1cc7['filter'](_0x5b9c9f=>'$graveyard'!=_0x5b9c9f['root']['rootName']);_0x2f2747['length']>0x0&&_0x103bd0['setSelection'](_0x2f2747);for(const _0x57d38c of _0x2d1cc7)_0x57d38c['detach']();});}function _0x1c1ad3(_0x27c300,_0x215474){return _0x215474['every'](_0x4317d0=>_0x27c300['some'](_0x4c8cde=>_0x4c8cde['end']['isEqual'](_0x4317d0['start'])||_0x4317d0['end']['isEqual'](_0x4c8cde['start'])));}function _0x520639(_0x5960ff,_0x5c3f94){return!_0x5960ff['some'](_0x201b30=>_0x5c3f94['some'](_0x446518=>_0x201b30['isIntersecting'](_0x446518)))&&_0x5960ff['some'](_0xef7d82=>_0x5c3f94['some'](_0x32d55d=>_0xef7d82['end']['isTouching'](_0x32d55d['start'])));}_0x18eb11['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x574e8a,_0x435992,_0x454dc7)=>{if(!_0x454dc7['options']['showSuggestionHighlights'])return;const _0x48f669=_0x435992['item'];if(!_0x48f669||!_0x48f669['is']('element','tableCell'))return;const _0x263ec5=_0x454dc7['mapper']['toViewElement'](_0x48f669);if(_0x263ec5){const {id:_0x4729fc,authorId:_0x124618}=_0x5ccd5e['_splitMarkerName'](_0x435992['markerName']);_0x1ac5db(_0x263ec5,_0x454dc7['writer'],(_0x328ada,_0x4c85fb,_0x4ea268)=>{_0x4ea268['addClass'](_0xf6b931(_0x4c85fb['classes']),_0x328ada),_0x4ea268['setAttribute']('data-suggestion-id',_0x4729fc,_0x328ada),_0x4ea268['setAttribute']('data-author-id',_0x124618,_0x328ada);},(_0x36c28c,_0x1146a4,_0x3f447f)=>{_0x3f447f['removeClass'](_0xf6b931(_0x1146a4['classes']),_0x36c28c),_0x3f447f['removeAttribute']('data-suggestion-id',_0x36c28c),_0x3f447f['removeAttribute']('data-author-id',_0x36c28c);});}},{'priority':'highest'}),_0x5ccd5e['descriptionFactory']['registerDescriptionCallback'](_0x5c0925=>{if('insertion'!=_0x5c0925['type']&&'deletion'!=_0x5c0925['type'])return;const _0x13cc9d=_0x5c0925['getContainedElement']();if(null!=_0x13cc9d&&_0x13cc9d['is']('element','table')){if('insertion'==_0x5c0925['type']){const _0x318967=_0x5c0925['getItems']()['filter'](_0x3e77b8=>_0x3e77b8['is']('$textProxy'))['map'](_0x15be80=>_0x15be80['data']);if(_0x318967['length'])return{'type':'insertion','content':o(_0x1a85a9,'*Insert:*\x20%0',o(_0x1a85a9,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x318967['join']('\x20')+'\x22'))};}if('deletion'==_0x5c0925['type']){const _0x115366=_0x5c0925['getItems']()['filter'](_0x12c9ac=>_0x12c9ac['is']('$textProxy'))['map'](_0x3669c8=>_0x3669c8['data']);if(_0x115366['length'])return{'type':'deletion','content':o(_0x1a85a9,'*Remove:*\x20%0',o(_0x1a85a9,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x115366['join']('\x20')+'\x22'))};}}}),_0x5ccd5e['descriptionFactory']['registerDescriptionCallback'](_0x20c99c=>{if('tableRow'==_0x20c99c['subType']){const _0x452f44=_0x20c99c['getItems']()['filter'](_0x349b74=>_0x349b74['is']('$textProxy'))['map'](_0x376ad1=>_0x376ad1['data']),_0x26c89a=this['_getSuggestionCoords'](_0x20c99c),_0x45cbe4=_0x26c89a['maxRow']-_0x26c89a['minRow']+0x1;if('insertion'==_0x20c99c['type'])return _0x452f44['length']?{'type':'insertion','content':o(_0x1a85a9,'*Insert:*\x20%0',o(_0x1a85a9,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x45cbe4,'\x22'+_0x452f44['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1a85a9,'*Insert:*\x20%0',o(_0x1a85a9,'ELEMENT_TABLE_ROW',_0x45cbe4))};if('deletion'==_0x20c99c['type'])return _0x452f44['length']?{'type':'deletion','content':o(_0x1a85a9,'*Remove:*\x20%0',o(_0x1a85a9,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x45cbe4,'\x22'+_0x452f44['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1a85a9,'*Remove:*\x20%0',o(_0x1a85a9,'ELEMENT_TABLE_ROW',_0x45cbe4))};}if('tableColumn'==_0x20c99c['subType']){const _0xd7d0c9=_0x20c99c['getItems']()['filter'](_0x30962e=>_0x30962e['is']('$textProxy'))['map'](_0x2bca6a=>_0x2bca6a['data']),_0x4c1f22=this['_getSuggestionCoords'](_0x20c99c),_0x3b1dbf=_0x4c1f22['maxColumn']-_0x4c1f22['minColumn']+0x1;if('insertion'==_0x20c99c['type'])return _0xd7d0c9['length']?{'type':'insertion','content':o(_0x1a85a9,'*Insert:*\x20%0',o(_0x1a85a9,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3b1dbf,'\x22'+_0xd7d0c9['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1a85a9,'*Insert:*\x20%0',o(_0x1a85a9,'ELEMENT_TABLE_COLUMN',_0x3b1dbf))};if('deletion'==_0x20c99c['type'])return _0xd7d0c9['length']?{'type':'deletion','content':o(_0x1a85a9,'*Remove:*\x20%0',o(_0x1a85a9,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3b1dbf,'\x22'+_0xd7d0c9['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1a85a9,'*Remove:*\x20%0',o(_0x1a85a9,'ELEMENT_TABLE_COLUMN',_0x3b1dbf))};}}),_0x5ccd5e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3465c6),_0x5ccd5e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3465c6),_0x5ccd5e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x17a212),_0x5ccd5e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x17a212),_0x5ccd5e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1c1ad3),_0x5ccd5e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1c1ad3),_0x5ccd5e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x520639),_0x5ccd5e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x520639);}['_acceptFormatSuggestionCallbackFactory'](){const _0x942e32=this['editor'],_0x2daea7=_0x942e32['model']['document']['selection'];return(_0x2eccf9,_0x460270)=>{_0x942e32['model']['change'](_0x48a67d=>{const {commandName:_0x592526,commandParams:_0x57257d}=_0x460270;let _0x1376d0=_0x2eccf9[0x0]['end']['nodeBefore'];_0x57257d&&_0x57257d[0x0]&&!0x1===_0x57257d[0x0]['forceValue']&&(_0x1376d0=_0x2eccf9[0x0]['start']['nodeAfter']);const _0x4b8359=_0x48a67d['createRangeIn'](_0x1376d0);if('$graveyard'==_0x4b8359['root']['rootName'])return;const _0xab4500=Array['from'](_0x2daea7['getRanges']())['map'](_0xcbd720=>_0x4451e6['fromRange'](_0xcbd720));_0x48a67d['setSelection'](_0x4b8359),_0x942e32['commands']['get'](_0x592526)['refresh'](),_0x57257d['push']({'forceDefaultExecution':!0x0}),_0x942e32['execute'](_0x592526,..._0x57257d);const _0x296c59=_0xab4500['filter'](_0x44beb8=>'$graveyard'!=_0x44beb8['root']['rootName']);_0x296c59['length']>0x0&&_0x48a67d['setSelection'](_0x296c59);for(const _0xd5ceb1 of _0xab4500)_0xd5ceb1['detach']();});};}['_getCoordsForCells'](_0x2f7037){const _0x2d360f=this['editor']['plugins']['get']('TableUtils');let _0x2ef439=Number['MAX_SAFE_INTEGER'],_0x3b31d2=Number['MIN_SAFE_INTEGER'],_0x5954e7=Number['MAX_SAFE_INTEGER'],_0xd7770d=Number['MIN_SAFE_INTEGER'];for(const _0x44da74 of _0x2f7037){if('$graveyard'==_0x44da74['root']['rootName'])continue;const {row:_0xe781a3,column:_0x213002}=_0x2d360f['getCellLocation'](_0x44da74),_0x1f83fc=_0x44da74['hasAttribute']('rowspan')?_0x44da74['getAttribute']('rowspan')-0x1:0x0,_0x349933=_0x44da74['hasAttribute']('colspan')?_0x44da74['getAttribute']('colspan')-0x1:0x0;_0x2ef439=_0xe781a3<_0x2ef439?_0xe781a3:_0x2ef439,_0x3b31d2=_0xe781a3+_0x1f83fc>_0x3b31d2?_0xe781a3+_0x1f83fc:_0x3b31d2,_0x5954e7=_0x213002<_0x5954e7?_0x213002:_0x5954e7,_0xd7770d=_0x213002+_0x349933>_0xd7770d?_0x213002+_0x349933:_0xd7770d;}return{'minRow':_0x2ef439,'maxRow':_0x3b31d2,'minColumn':_0x5954e7,'maxColumn':_0xd7770d};}['_setupColumnsRowsFixing'](){const _0x43a455=this['editor'],_0x356109=_0x43a455['plugins']['get']('TrackChangesEditing'),_0xfea6d2=_0x43a455['plugins']['get']('TableUtils');_0x43a455['model']['document']['on']('change:data',()=>{const _0x42b67d=Array['from'](_0x43a455['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4e639d,data:_0x203fe3}of _0x42b67d){const {group:_0x26d2db,id:_0x1e2607,subType:_0x4ea9fb}=_0x356109['_splitMarkerName'](_0x4e639d);if('suggestion'!=_0x26d2db)continue;if(null!=_0x203fe3['oldRange'])continue;const _0x4efc92=_0x356109['getSuggestion'](_0x1e2607);this['_tablePostFixingSubtypes']['includes'](_0x4ea9fb)&&this['_tableSuggestions']['add'](_0x4efc92);}},{'priority':'low'});const _0x43150c=(_0x87a447,_0xcc0022)=>{let _0x152ebe=!0x1;const _0x2a656d=_0xcc0022['createRangeOn'](_0x87a447),_0x456d01=_0x87a447['findAncestor']('table'),_0x582deb=_0xfea6d2['getCellLocation'](_0x87a447);for(const _0x56a847 of this['_tableSuggestions']){const _0xfdcdf2=_0x56a847['subType'],_0x6ae5ad=_0xfdcdf2['startsWith']('tablePaste'),_0x2fffcf=_0xfdcdf2['substr'](_0x6ae5ad?0xa:0x5),_0x3c25c5=_0x2fffcf['toLowerCase'](),_0x3a8f49=_0x3c25c5['substr'](0x0,0x3)+'span',_0x49606a='min'+_0x2fffcf,_0x355ae7='max'+_0x2fffcf;if(!_0x56a847['isInContent'])continue;if(_0x456d01!=_0x56a847['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x56a847['isIntersectingWithRange'](_0x2a656d))continue;const _0x32fd0c=_0x87a447['hasAttribute'](_0x3a8f49)?_0x87a447['getAttribute'](_0x3a8f49)-0x1:0x0,_0x4ac12e=this['_getSuggestionCoords'](_0x56a847),_0x59635a=_0x4ac12e[_0x49606a],_0x284b79=_0x4ac12e[_0x355ae7];_0x59635a<=_0x582deb[_0x3c25c5]&&_0x582deb[_0x3c25c5]+_0x32fd0c<=_0x284b79&&(_0x56a847['addRange'](_0x2a656d),_0x152ebe=!0x0);}return _0x152ebe;};_0x43a455['model']['document']['registerPostFixer'](_0x41fb09=>{let _0x1f6ff9=!0x1;for(const _0x165cad of _0x43a455['model']['document']['differ']['getChanges']())if('insert'==_0x165cad['type']){if('tableRow'==_0x165cad['name']){for(const _0x6f66eb of _0x165cad['position']['nodeAfter']['getChildren']())_0x1f6ff9=_0x1f6ff9||_0x43150c(_0x6f66eb,_0x41fb09);}else'tableCell'==_0x165cad['name']&&(_0x1f6ff9=_0x1f6ff9||_0x43150c(_0x165cad['position']['nodeAfter'],_0x41fb09));}return _0x1f6ff9;});}['_getSuggestionCoords'](_0x3b6254){return this['_getCoordsForCells'](_0x3b6254['getRanges']()['map'](_0x10fe6c=>_0x10fe6c['start']['nodeAfter']));}}function Ne(_0x5b3f24){return Array['from'](new Set(_0x5b3f24)['values']());}class _t extends _0x263240{static get['requires'](){return[At];}['afterInit'](){const _0x367c9b=this['editor'],_0x34fa6a=_0x367c9b['model']['document']['selection'],_0x4801bd=_0x367c9b['locale'];if(!_0x367c9b['plugins']['has']('TableEditing'))return;const _0x15456f=_0x367c9b['plugins']['get']('TrackChangesEditing'),_0x5d446e=_0x367c9b['plugins']['get']('TableUtils'),_0x299de0=_0x367c9b['plugins']['get'](At);_0x299de0['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x15456f['enableCommand']('mergeTableCells',()=>{const _0x64baab=_0x5d446e['getSelectionAffectedTableCells'](_0x367c9b['model']['document']['selection']);_0x367c9b['model']['change'](()=>{_0x15456f['markMultiRangeBlockFormat'](_0x64baab,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x367c9b['commands']['get']('mergeTableCells')['on']('execute',(_0x354909,_0x17f831)=>{_0x367c9b['commands']['get']('trackChanges')['value']&&(_0x17f831['length']>0x0&&_0x17f831[_0x17f831['length']-0x1]&&_0x17f831[_0x17f831['length']-0x1]['forceDefaultExecution']||_0x15456f['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x354909['stop']());},{'priority':'highest'});for(const _0x460e0c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2e0ef1=_0x367c9b['commands']['get'](_0x460e0c);_0x15456f['enableCommand'](_0x460e0c,()=>{const _0x257c67=_0x367c9b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x28619c=>_0x28619c['is']('element','tableCell')),_0xadc67a=_0x2e0ef1['value'];_0x367c9b['model']['change'](()=>{_0x15456f['markMultiRangeBlockFormat']([_0x257c67,_0xadc67a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5297b2 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4c534a=_0x367c9b['commands']['get'](_0x5297b2);_0x15456f['enableCommand'](_0x5297b2,()=>{const _0x3d13e4=_0x5d446e['getSelectionAffectedTableCells'](_0x367c9b['model']['document']['selection'])[0x0],_0x21b108=_0x3d13e4['findAncestor']('table'),{column:_0x1fcb1c,row:_0x59ca6e}=_0x5d446e['getCellLocation'](_0x3d13e4);let _0x217b64=[];if('horizontally'==_0x4c534a['direction']){const _0x3305e5=_0x5d446e['createTableWalker'](_0x21b108,{'startRow':_0x59ca6e,'endRow':_0x59ca6e,'includeAllSlots':!0x0});_0x217b64=Array['from'](_0x3305e5)['map'](_0x1f81d5=>_0x1f81d5['cell']);}else{const _0x42e96d=_0x5d446e['createTableWalker'](_0x21b108,{'column':_0x1fcb1c,'includeAllSlots':!0x0});_0x217b64=Array['from'](_0x42e96d)['map'](_0x3ce2be=>_0x3ce2be['cell']);}_0x367c9b['model']['change'](_0xf01316=>{_0x15456f['markBlockFormat'](_0xf01316['createRangeOn'](_0x3d13e4),{'commandName':_0x5297b2,'commandParams':[]},_0x217b64,_0x5297b2);});});}_0x15456f['descriptionFactory']['registerDescriptionCallback'](_0x58cb5d=>{if('formatBlock'!=_0x58cb5d['type']&&'formatInline'!=_0x58cb5d['type'])return;const {data:_0x2384e7}=_0x58cb5d;return _0x2384e7&&'mergeTableCells'==_0x2384e7['commandName']?{'type':'format','content':o(_0x4801bd,'*Merge\x20cells*')}:void 0x0;}),_0x15456f['descriptionFactory']['registerDescriptionCallback'](_0x4033d0=>{if('formatBlock'!=_0x4033d0['type']&&'formatInline'!=_0x4033d0['type'])return;const {data:_0x294e4e}=_0x4033d0;return _0x294e4e?'splitTableCellVertically'==_0x294e4e['commandName']?{'type':'format','content':o(_0x4801bd,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x294e4e['commandName']?{'type':'format','content':o(_0x4801bd,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5bdd91=_0x299de0['_acceptFormatSuggestionCallbackFactory']();for(const _0x1b0a9b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x15456f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1b0a9b,'accept',_0x5bdd91);for(const _0x4f5047 of['splitTableCellVertically','splitTableCellHorizontally'])_0x15456f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4f5047,'accept',_0x5bdd91);_0x15456f['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x324f63=>{_0x367c9b['model']['change'](_0x5949c4=>{const _0xe0ebe1=Array['from'](_0x34fa6a['getRanges']())['map'](_0x435894=>_0x4451e6['fromRange'](_0x435894));_0x5949c4['setSelection'](_0x324f63),_0x367c9b['commands']['get']('mergeTableCells')['refresh'](),_0x367c9b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3ca912=_0xe0ebe1['filter'](_0x41a085=>'$graveyard'!=_0x41a085['root']['rootName']);_0x3ca912['length']>0x0&&_0x5949c4['setSelection'](_0x3ca912);for(const _0x27da1c of _0xe0ebe1)_0x27da1c['detach']();});});for(const _0x5d17c0 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5bed01=_0x367c9b['commands']['get'](_0x5d17c0);_0x5bed01['on']('set:isEnabled',(_0x1111de,_0x20bb22,_0x94a161)=>{if(_0x94a161){const _0x24d2a8=_0x367c9b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x509e47=>_0x509e47['is']('element','tableCell'));this['_areMergableCells'](_0x5bed01['value'],_0x24d2a8)||(_0x1111de['return']=!0x1,_0x1111de['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xfd2685=this['editor']['commands']['get']('mergeTableCells'),_0x3cd120=this['editor']['plugins']['get']('TableUtils');if(!_0xfd2685['isEnabled'])return!0x1;const _0xfc33b2=_0x3cd120['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2b2dc5 of _0xfc33b2)for(const _0x52f12c of _0xfc33b2)if(_0x2b2dc5!=_0x52f12c&&!this['_areMergableCells'](_0x2b2dc5,_0x52f12c))return!0x1;return!0x0;}['_areMergableCells'](_0x34ca07,_0x7c9b7c){const _0x396d6d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x246bdb=this['editor']['model']['createRangeOn'](_0x34ca07),_0x3510ab=this['editor']['model']['createRangeOn'](_0x7c9b7c),_0x1b2605=new Set(),_0x27375b=new Set();for(const _0x3f4403 of _0x396d6d['getSuggestions']())if(('insertion'==_0x3f4403['type']||'deletion'==_0x3f4403['type']||'mergeTableCells'==_0x3f4403['subType'])&&_0x3f4403['isInContent']){for(const _0x39cd29 of _0x3f4403['getRanges']())_0x39cd29['containsRange'](_0x246bdb,!0x0)&&_0x1b2605['add'](_0x3f4403['type']+':'+_0x3f4403['author']['id']),_0x39cd29['containsRange'](_0x3510ab,!0x0)&&_0x27375b['add'](_0x3f4403['type']+':'+_0x3f4403['author']['id']);}if(_0x1b2605['size']!=_0x27375b['size'])return!0x1;for(const _0x1ff12e of _0x1b2605)if(!_0x27375b['has'](_0x1ff12e))return!0x1;return!0x0;}}class Ct extends _0x263240{static get['requires'](){return[At];}['afterInit'](){const _0x469e4e=this['editor'];if(!_0x469e4e['plugins']['has']('TableEditing'))return;const _0x5d1d76=_0x469e4e['locale'],_0x14409f=_0x469e4e['plugins']['get']('TrackChangesEditing');_0x14409f['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x14409f['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x14409f['registerBlockAttribute']('headingRows'),_0x14409f['registerBlockAttribute']('headingColumns'),_0x14409f['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5d1d76,'FORMAT_HEADER_ROW')),_0x14409f['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5d1d76,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xe591b3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x84fe49=this['editor']['plugins']['get']('TableUtils'),_0x16e7cd=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x2f429e({showActiveMarker:_0x3260e6=!0x0,setDataAttribute:_0x536991=!0x0}={}){return(_0xb24d5,_0x1f2f2b,_0x37608a)=>{const {type:_0x1dcd7a,id:_0x3f3c93}=_0xe591b3['_splitMarkerName'](_0x1f2f2b['markerName']),_0x3f48fe=_0xe591b3['getSuggestion'](_0x3f3c93),_0x32d582=_0x3f48fe['data'];if('formatBlock'!=_0x3f48fe['type']||!_0x32d582||'setTableColumnHeader'!=_0x32d582['commandName'])return;if(_0x1f2f2b['item'])return void _0xb24d5['stop']();if(!_0x37608a['consumable']['consume'](_0x1f2f2b['markerRange'],_0xb24d5['name']))return;const _0x239829=_0x1f2f2b['markerRange']['start']['nodeAfter'],_0x44e1ed=_0x1f2f2b['markerRange']['end']['nodeBefore'],_0x56b1cd=_0x239829['parent']['parent'],{column:_0x35cdf8}=_0x84fe49['getCellLocation'](_0x239829),{column:_0x5050fb}=_0x84fe49['getCellLocation'](_0x44e1ed);for(let _0x486c54=_0x35cdf8;_0x486c54<=_0x5050fb;_0x486c54++){const _0x401508=_0x84fe49['createTableWalker'](_0x56b1cd,{'column':_0x486c54,'includeAllSlots':!0x1});for(const _0x21ae47 of _0x401508){const _0x2f1dfa=_0x21ae47['cell'],_0x5f134a=_0x37608a['mapper']['toViewElement'](_0x2f1dfa);_0x37608a['writer']['addClass']('ck-suggestion-marker-'+_0x1dcd7a,_0x5f134a),_0x536991&&_0x37608a['writer']['setAttribute']('data-suggestion',_0x3f3c93,_0x5f134a),_0x37608a['mapper']['bindElementToMarker'](_0x5f134a,_0x1f2f2b['markerName']),_0x3260e6&&(_0xe591b3['activeMarkers']['includes'](_0x1f2f2b['markerName'])?_0x37608a['writer']['addClass']('ck-suggestion-marker--active',_0x5f134a):_0x37608a['writer']['removeClass']('ck-suggestion-marker--active',_0x5f134a));}}};}_0xe591b3['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x16e7cd),_0xe591b3['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x16e7cd),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2f429e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x318536,_0xfeb01e,_0x92665)=>{_0x92665['options']['showSuggestionHighlights']&&_0x2f429e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x318536,_0xfeb01e,_0x92665);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x341d7b,_0x2986f0,_0x45caa3)=>{const {type:_0x18773e,id:_0x37bdfa}=_0xe591b3['_splitMarkerName'](_0x2986f0['markerName']),_0x3337e1=_0xe591b3['getSuggestion'](_0x37bdfa),_0x57d2cb=_0x3337e1['data'];if('formatBlock'!=_0x3337e1['type']||!_0x57d2cb||'setTableColumnHeader'!=_0x57d2cb['commandName'])return;const _0x27ff19=_0x45caa3['mapper']['markerNameToElements'](_0x2986f0['markerName']);if(_0x27ff19){for(const _0x49e486 of _0x27ff19)_0x45caa3['writer']['removeClass']('ck-suggestion-marker-'+_0x18773e,_0x49e486),_0x45caa3['writer']['removeClass']('ck-suggestion-marker--active',_0x49e486),_0x45caa3['writer']['removeAttribute']('data-suggestion',_0x49e486),_0x45caa3['mapper']['unbindElementFromMarkerName'](_0x49e486,_0x2986f0['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bf20d=this['editor'],_0x4a0dde=_0x4bf20d['locale'];function _0x171fc7(_0x5e1156){return{'type':'format','content':o(_0x4a0dde,'*Format:*\x20%0',_0x5e1156)};}_0x4bf20d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cefa4=>{if('formatBlock'!=_0x5cefa4['type'])return;const {data:_0xb6a4e4}=_0x5cefa4;if(_0xb6a4e4){if('setTableRowHeader'==_0xb6a4e4['commandName']){const _0xa45ca6=_0xb6a4e4['commandParams'][0x0]['forceValue'];return _0x171fc7(o(_0x4a0dde,_0xa45ca6?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xb6a4e4['commandName']){const _0x5b74a4=_0xb6a4e4['commandParams'][0x0]['forceValue'];return _0x171fc7(o(_0x4a0dde,_0x5b74a4?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x263240{['afterInit'](){const _0x345fff=this['editor'],_0x3427e3=_0x345fff['locale'],_0x8b1635=_0x345fff['plugins']['get']('TrackChangesEditing');function _0xcab556(_0x5bfce9){return{'type':'format','content':''+o(_0x3427e3,'*Set\x20table\x20type:*\x20%0',_0x5bfce9)};}_0x345fff['plugins']['has']('TableLayout')&&(_0x8b1635['enableCommand']('insertTableLayout'),_0x8b1635['enableDefaultAttributesIntegration']('tableType'),_0x8b1635['registerBlockAttribute']('tableType'),_0x8b1635['descriptionFactory']['registerElementLabel'](_0x29fae7=>_0x29fae7['is']('element','table')&&'layout'===_0x29fae7['getAttribute']('tableType'),_0x3759c8=>o(_0x3427e3,'ELEMENT_LAYOUT_TABLE',_0x3759c8)),_0x8b1635['descriptionFactory']['registerDescriptionCallback'](_0x5564af=>{const {data:_0x8d0517}=_0x5564af;if(_0x8d0517&&'tableType'==_0x8d0517['key'])switch(_0x8d0517['newValue']){case'layout':return _0xcab556(o(_0x3427e3,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xcab556(o(_0x3427e3,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Be['map'](_0x544a75=>[_0x544a75,null]));class Nt extends _0x263240{static get['requires'](){return[At];}['afterInit'](){const _0x565fbb=this['editor'];if(!_0x565fbb['plugins']['has']('TableClipboard'))return;const _0x2d180f=_0x565fbb['plugins']['get']('TrackChangesEditing'),_0x410617=_0x565fbb['plugins']['get']('TableUtils'),_0x361e07=_0x565fbb['plugins']['get'](At),_0x5ce6ec=_0x565fbb['plugins']['get']('TableClipboard'),_0x2666f8=_0x565fbb['plugins']['get']('TableSelection'),_0x3f3377=_0x565fbb['plugins']['get'](_0x48848f);_0x361e07['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x565fbb['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x565fbb['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5772dc=null,_0x400ca7=!0x1;_0x3f3377['on']('contentInsertion',(_0x648fc8,_0x47da05)=>{_0x400ca7='paste'===_0x47da05['method'];}),_0x565fbb['model']['on']('insertContent',(_0x354573,_0x3dae8e)=>{if(!_0x400ca7&&null===_0x2666f8['getSelectedTableCells']())return;const [_0x59b5f5,_0x3cde67]=_0x3dae8e,_0x552798=_0x3dae8e[_0x3dae8e['length']-0x1];_0x552798&&_0x552798['forceDefaultExecution']||_0x2d180f['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4370ac,_0x14e5fb,_0x1a5d72,_0x521a9f,_0x315d35){if(_0x14e5fb&&!_0x14e5fb['is']('documentSelection'))return!0x1;const _0x25a64b=_0x315d35['getTableIfOnlyTableInContent'](_0x4370ac,_0x1a5d72);if(!_0x25a64b||!Ue(_0x25a64b,void 0x0,_0x521a9f))return!0x1;const _0x4689dd=_0x521a9f['getSelectionAffectedTableCells'](_0x1a5d72['document']['selection']);if(!_0x4689dd['length'])return!0x1;const _0x295a9c=_0x4689dd[0x0]['findAncestor']('table'),_0x2f6333=_0x521a9f['getRowIndexes'](_0x4689dd),_0x1180a1=_0x521a9f['getColumnIndexes'](_0x4689dd),_0x524d4a={'startRow':_0x2f6333['first'],'endRow':_0x2f6333['last'],'startColumn':_0x1180a1['first'],'endColumn':_0x1180a1['last']};return 0x1==_0x4689dd['length']&&(_0x524d4a['endRow']+=_0x521a9f['getRows'](_0x25a64b)-0x1,_0x524d4a['endColumn']+=_0x521a9f['getColumns'](_0x25a64b)-0x1),Ue(_0x295a9c,_0x524d4a,_0x521a9f);}(_0x59b5f5,_0x3cde67,_0x565fbb['model'],_0x410617,_0x5ce6ec)&&(_0x354573['stop'](),_0x5772dc={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x565fbb['model']['change'](()=>{_0x565fbb['model']['insertContent'](_0x3dae8e[0x0],_0x3dae8e[0x1],_0x3dae8e[0x2],{'forceDefaultExecution':!0x0});const _0xcb23b1=_0x57604c(),{rowInsertionRanges:_0x27594b,columnInsertionRanges:_0x549af6,insertionRanges:_0x14db3b,deletionRanges:_0x1cc6b1,cells:_0x538367}=_0x5772dc;_0x27594b['length']&&_0x2d180f['markMultiRangeInsertion'](_0x27594b,'tablePasteRow',{'tablePasteChainId':_0xcb23b1}),_0x549af6['length']&&_0x2d180f['markMultiRangeInsertion'](_0x549af6,'tablePasteColumn',{'tablePasteChainId':_0xcb23b1}),_0x14db3b['length']&&(_0x2d180f['markMultiRangeInsertion'](_0x14db3b,'tablePaste',{'tablePasteChainId':_0xcb23b1,'skipNestingCheck':!0x0}),_0x14db3b['forEach'](_0x3e4f2f=>_0x3e4f2f['detach']?.())),_0x1cc6b1['length']&&(_0x2d180f['markMultiRangeDeletion'](_0x1cc6b1,'tablePaste',{'tablePasteChainId':_0xcb23b1,'skipNestingCheck':!0x0}),_0x1cc6b1['forEach'](_0x2d63e3=>_0x2d63e3['detach']?.()));const _0x22cebe=_0x2d180f['markMultiRangeBlockFormat'](_0x538367['map'](({element:_0x3deec4})=>_0x3deec4),{'formatGroupId':_0x57604c()},[],'tablePasteCell',{'tablePasteChainId':_0xcb23b1});if(_0x22cebe){const _0x2aa782=_0x22cebe['getMarkers'](),_0x2578c0=[];for(const {element:_0x28530c,attributes:_0x11ab49}of _0x538367){if(!_0x11ab49)continue;const _0x54c639=_0x565fbb['model']['createRangeOn'](_0x28530c),_0x5d04f4=_0x2aa782['find'](_0x3723e8=>_0x3723e8['getRange']()['isEqual'](_0x54c639));_0x5d04f4&&_0x2578c0['push']([_0x5d04f4['name'],_0x11ab49]);}_0x2578c0['length']&&_0x22cebe['setAttribute']('markerAttributes',Object['fromEntries'](_0x2578c0));}_0x5772dc=null;}));},{'priority':_0x441968['high']+0xa}),_0x3f3377['on']('contentInsertion',()=>{_0x400ca7=!0x1;},{'priority':'lowest'}),_0x565fbb['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4b45db,_0x20c022)=>{const [_0x5d48b1,_0x29b0e2,,_0x1b39e0]=_0x20c022;if(!_0x5772dc)return;_0x4b45db['stop']();const _0x55a999=_0x5d48b1['cell'],_0x45903a=_0x29b0e2,_0x4da46f=Oe(_0x55a999),_0x347de8=Oe(_0x45903a);_0x4b45db['return']=_0x55a999;let _0x5e4957=null,_0x4ab7e8=null;if(_0x347de8||_0x4da46f){if(_0x4da46f&&!_0x347de8){_0x1b39e0['remove'](_0x55a999['getChild'](0x0));for(const _0x1febbd of Array['from'](_0x45903a['getChildren']()))_0x1b39e0['insert'](_0x1febbd,_0x55a999,'end');const _0x2f0d6e=_0x5772dc['rowInsertionIndexes']['includes'](_0x5d48b1['row']),_0x1268ef=_0x5772dc['columnInsertionIndexes']['includes'](_0x5d48b1['column']);_0x2f0d6e||_0x1268ef||(_0x5e4957=_0x4451e6['fromRange'](_0x1b39e0['createRangeIn'](_0x55a999)));}else _0x347de8&&!_0x4da46f&&(_0x4ab7e8=_0x1b39e0['createRangeIn'](_0x55a999));}else{const _0x53521f=_0x1b39e0['createElement']('tableCellSuggestion'),_0x5e4830=_0x1b39e0['createElement']('tableCellSuggestion');_0x1b39e0['wrap'](_0x1b39e0['createRangeIn'](_0x55a999),_0x5e4830),_0x1b39e0['insert'](_0x53521f,_0x55a999,0x0);for(const _0x39e337 of Array['from'](_0x45903a['getChildren']()))_0x1b39e0['insert'](_0x39e337,_0x53521f,'end');_0x5e4957=_0x4451e6['fromRange'](_0x1b39e0['createRangeOn'](_0x53521f)),_0x4ab7e8=_0x4451e6['fromRange'](_0x1b39e0['createRangeOn'](_0x5e4830));}const _0x31f5d4=Array['from'](_0x45903a['getAttributes']())['filter'](([_0x4f06a9])=>Be['includes'](_0x4f06a9));_0x5772dc['cells']['push']({'element':_0x55a999,'attributes':_0x31f5d4['length']?Object['fromEntries'](_0x31f5d4):null}),_0x5e4957&&_0x5772dc['insertionRanges']['push'](_0x5e4957),_0x4ab7e8&&_0x5772dc['deletionRanges']['push'](_0x4ab7e8);},{'priority':'high'}),_0x410617['on']('insertColumns',(_0x3f9078,_0x2fa791)=>{const [_0x697feb,_0x39797a={}]=_0x2fa791;if(!_0x5772dc)return;const _0x23eaaf=_0x39797a['at']||0x0,_0x21fd63=_0x39797a['columns']||0x1;_0x5772dc['columnInsertionIndexes']=new Array(_0x21fd63)['fill'](_0x23eaaf)['map']((_0x1bd316,_0x9da3e3)=>_0x1bd316+_0x9da3e3);for(const {cell:_0x4267cb}of _0x410617['createTableWalker'](_0x697feb,{'startColumn':_0x23eaaf,'endColumn':_0x23eaaf+_0x21fd63-0x1}))_0x5772dc['columnInsertionRanges']['push'](_0x565fbb['model']['createRangeOn'](_0x4267cb));},{'priority':'low'}),_0x410617['on']('insertRows',(_0x3d5c33,_0x16b0d0)=>{const [_0x3ca75a,_0x1f1aa1={}]=_0x16b0d0;if(!_0x5772dc)return;const _0x335e1d=_0x1f1aa1['at']||0x0,_0x482fc9=_0x1f1aa1['rows']||0x1;_0x5772dc['rowInsertionIndexes']=new Array(_0x482fc9)['fill'](_0x335e1d)['map']((_0x4be5ea,_0x59344d)=>_0x4be5ea+_0x59344d);for(const {cell:_0x587782}of _0x410617['createTableWalker'](_0x3ca75a,{'startRow':_0x335e1d,'endRow':_0x335e1d+_0x482fc9-0x1}))_0x5772dc['rowInsertionRanges']['push'](_0x565fbb['model']['createRangeOn'](_0x587782));},{'priority':'low'}),_0x2d180f['descriptionFactory']['registerDescriptionCallback'](_0x1102f2=>{if(_0x1102f2['subType']&&_0x1102f2['subType']['startsWith']('tablePaste'))return _0x1102f2['previous']?{}:{'type':'insertion','content':o(_0x565fbb['locale'],'*Replace\x20table\x20cells*')};});const _0x4dc8a9=()=>!0x1;for(const _0x5b329b of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2d180f['_suggestionFactory']['registerCustomCallback']('insertion',_0x5b329b,'join',_0x4dc8a9),_0x2d180f['_suggestionFactory']['registerCustomCallback']('deletion',_0x5b329b,'join',_0x4dc8a9),_0x2d180f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5b329b,'join',_0x4dc8a9);_0x2d180f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4dc8a9),_0x2d180f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x55b4b0,_0x31b2aa,_0x5d32cb)=>{const _0x2a76c4=_0x55b4b0['map'](_0x5efac5=>_0x5efac5['getContainedElement']())['filter'](_0x37bdbe=>_0x37bdbe),_0x3d7c32=new Map(_0x2a76c4['map'](_0x9ece8b=>[_0x9ece8b,null]));if(_0x5772dc){for(const {element:_0x1d7643,attributes:_0xa43e96}of _0x5772dc['cells'])_0xa43e96&&_0x3d7c32['set'](_0x1d7643,_0xa43e96);}else{if(_0x5d32cb&&_0x5d32cb['markerAttributes'])for(const [_0x206ff7,_0x229241]of Object['entries'](_0x5d32cb['markerAttributes'])){const _0x1af98=_0x565fbb['model']['markers']['get'](_0x206ff7),_0x13dbe2=_0x1af98?_0x1af98['getRange']()['getContainedElement']():null;_0x13dbe2&&_0x3d7c32['set'](_0x13dbe2,_0x229241);}}_0x565fbb['model']['change'](_0x290e1e=>{for(const [_0x1fc6bb,_0x152fae]of _0x3d7c32)_0x290e1e['setAttributes']({...xe,..._0x152fae},_0x1fc6bb);});});const _0xfe332a=(_0x472a10,_0x3e4427)=>{_0x2d180f['_suggestionFactory']['registerCustomCallback'](_0x472a10,'tablePaste',_0x3e4427,(_0x3e111d,_0x117804,_0x231fba)=>{_0x565fbb['model']['change'](_0x577190=>{const _0x4d6517=[];for(const _0x69db80 of _0x3e111d){const _0x4136f7=_0x69db80['start']['nodeAfter'];_0x4136f7['is']('element','tableCellSuggestion')&&_0x4d6517['push'](_0x4136f7);}_0x2d180f['_suggestionFactory']['getSuggestionCallback'](_0x472a10,null,_0x3e4427)(_0x3e111d,_0x117804,_0x231fba);for(const _0x4a110a of _0x4d6517)'$graveyard'!=_0x4a110a['root']['rootName']&&_0x577190['unwrap'](_0x4a110a);});});};_0xfe332a('insertion','accept'),_0xfe332a('insertion','discard'),_0xfe332a('deletion','accept'),_0xfe332a('deletion','discard'),_0x2d180f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1f904f=>{const _0xab73f6=_0x1f904f['map'](_0x4c7415=>_0x4c7415['getContainedElement']()),_0x3f9794=_0xab73f6[0x0]['findAncestor']('table'),{minRow:_0x588c47,maxRow:_0x5eed01}=_0x361e07['_getCoordsForCells'](_0xab73f6);_0x410617['removeRows'](_0x3f9794,{'at':_0x588c47,'rows':_0x5eed01-_0x588c47+0x1});}),_0x2d180f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x261e18=>{const _0x4ff251=_0x261e18['map'](_0x139515=>_0x139515['getContainedElement']()),_0x20d7a0=_0x4ff251[0x0]['findAncestor']('table'),{minColumn:_0x152f43,maxColumn:_0x21db90}=_0x361e07['_getCoordsForCells'](_0x4ff251);_0x410617['removeColumns'](_0x20d7a0,{'at':_0x152f43,'columns':_0x21db90-_0x152f43+0x1});});const _0x229dcb=(_0x3a3a71,_0x186d42)=>{if(!_0x186d42['subType']||!_0x186d42['subType']['startsWith']('tablePaste'))return;const _0x732de1=_0x186d42['attributes']['tablePasteChainId'],_0x5b8091=_0x2d180f['getSuggestions']()['filter'](_0x349e73=>_0x349e73['isInContent']&&_0x349e73['attributes']&&_0x349e73['attributes']['tablePasteChainId']==_0x732de1);_0x5b8091['length']&&_0x186d42['getAllAdjacentSuggestions']()['length']!=_0x5b8091['length']&&_0x5b8091['reduce']((_0x11bbe4,_0x27b892)=>(_0x11bbe4['next']=_0x27b892,_0x27b892['previous']=_0x11bbe4,_0x27b892));};function _0x2e6bd3(_0x3294dd,_0x302d02=!0x0){const {id:_0x1ceff3,authorId:_0x4150c5}=_0x2d180f['_splitMarkerName'](_0x3294dd['markerName']),_0x386ed7=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x560624=_0x2d180f['activeMarkers']['includes'](_0x3294dd['markerName']);return _0x560624&&_0x386ed7['push']('ck-suggestion-marker--active'),{'classes':_0x386ed7,'attributes':{'data-suggestion':_0x1ceff3,'data-author-id':_0x4150c5},'priority':_0x560624&&_0x302d02?0xbc2:0xbb8};}_0x2d180f['on']('suggestionLoaded',_0x229dcb,{'priority':'high'}),_0x2d180f['on']('suggestionUnloaded',_0x229dcb,{'priority':'high'}),_0x565fbb['model']['document']['registerPostFixer'](()=>{let _0x23cd6f=!0x1;const _0x487252=Array['from'](_0x565fbb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x9b1f76,data:_0x269583}of _0x487252){const {group:_0x2c9eab,type:_0xb516af,id:_0x909fee}=_0x2d180f['_splitMarkerName'](_0x9b1f76);if('suggestion'!=_0x2c9eab||'deletion'!=_0xb516af||_0x269583['oldRange'])continue;if(!_0x2d180f['hasSuggestion'](_0x909fee))continue;const _0xe7c802=_0x2d180f['getSuggestion'](_0x909fee)['getRanges'](),_0x3da6a3=_0x565fbb['plugins']['get']('Users')['me'];for(const _0xc4f7bf of _0x2d180f['getSuggestions']()){if(!_0xc4f7bf['isInContent']||_0xc4f7bf['author']!=_0x3da6a3)continue;if('formatBlock'!=_0xc4f7bf['type']||'tablePasteCell'!=_0xc4f7bf['subType'])continue;if(_0xc4f7bf['getRanges']()['every'](_0x495fe9=>_0xe7c802['some'](_0x40c2b7=>_0x40c2b7['containsRange'](_0x495fe9,!0x0)))){for(const _0x44b926 of _0xc4f7bf['getAllAdjacentSuggestions']())_0x44b926['isInContent']&&(_0x44b926['discard'](),_0x23cd6f=!0x0);}}}return _0x23cd6f;}),_0x565fbb['model']['document']['registerPostFixer'](_0x3bec23=>{const _0x2d39a4=_0x565fbb['commands']['get']('redo');if(!_0x2d39a4||!_0x2d39a4['_createdBatches']['has'](_0x3bec23['batch']))return!0x1;let _0x117b71=!0x1;const _0x585e93=_0x565fbb['plugins']['get']('Users')['me'],_0x2fd6fe=_0x565fbb['model']['document']['differ']['getChanges'](),_0x4db3d1=Array['from'](_0x565fbb['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x15d19d,data:_0x1125cf})=>{const {group:_0x1cc4f9,subType:_0x1271e6,authorId:_0x477ee6}=_0x2d180f['_splitMarkerName'](_0x15d19d);return'suggestion'==_0x1cc4f9&&'tablePaste'==_0x1271e6&&_0x477ee6==_0x585e93['id']&&!_0x1125cf['oldRange'];});for(const _0x27f767 of _0x2fd6fe){if('insert'!=_0x27f767['type']||'tableCellSuggestion'!=_0x27f767['name']||0x1!=_0x27f767['length'])continue;const _0x53188a=_0x3bec23['createRange'](_0x27f767['position'],_0x27f767['position']['getShiftedBy'](0x1));if(!_0x4db3d1['find'](({data:_0x14cad6})=>_0x14cad6['newRange']['isEqual'](_0x53188a))){for(const {name:_0x5c6fa9,data:_0x5b31c2}of _0x4db3d1)if(_0x53188a['containsRange'](_0x5b31c2['newRange'])){_0x3bec23['updateMarker'](_0x5c6fa9,{'range':_0x53188a}),_0x117b71=!0x0;break;}}}return _0x117b71;}),_0x565fbb['model']['document']['registerPostFixer'](_0x3d04f1=>{let _0x512760=!0x1;const _0x3a2b04=_0x565fbb['plugins']['get']('Users')['me'],_0x265f44=_0x2d180f['getSuggestions']()['filter'](_0x45f40e=>_0x45f40e['isInContent']&&_0x45f40e['author']==_0x3a2b04),_0x1d6a92=new Set(),_0x5d88dc=new Set();for(const _0x59dee5 of _0x265f44)if('tablePaste'==_0x59dee5['subType'])for(const _0x51911c of _0x59dee5['getMarkers']()){const _0x216195=_0x51911c['getRange']()['getContainedElement']();if(_0x216195){if(_0x216195['is']('element','tableCellSuggestion')&&Oe(_0x216195)){_0x59dee5['removeMarker'](_0x51911c['name']),_0x1d6a92['add'](_0x216195),_0x512760=!0x0;const _0x1dd71e=_0x216195['nextSibling'],_0x5f09ff=_0x216195['previousSibling'],_0x114546=_0x1dd71e&&_0x1dd71e['is']('element','tableCellSuggestion'),_0x4719c8=_0x5f09ff&&_0x5f09ff['is']('element','tableCellSuggestion');_0x114546&&!_0x1d6a92['has'](_0x1dd71e)&&_0x5d88dc['add'](_0x1dd71e),_0x4719c8&&!_0x1d6a92['has'](_0x5f09ff)&&_0x5d88dc['add'](_0x5f09ff);}else _0x216195['is']('element','paragraph')&&_0x216195['isEmpty']&&(_0x59dee5['removeMarker'](_0x51911c['name']),_0x512760=!0x0);}}else{if('tablePasteCell'==_0x59dee5['subType']){if(!_0x59dee5['attributes']||!_0x59dee5['attributes']['tablePasteChainId'])continue;const _0x180288=_0x59dee5['attributes']['markerAttributes'];if(_0x180288&&Object['keys'](_0x180288)['length'])continue;const _0x5f3da0=_0x59dee5['attributes']['tablePasteChainId'];let _0x5038ec=!0x0,_0x561ce4=!0x0;for(const _0x2bba8e of _0x265f44)if(_0x2bba8e['subType']&&_0x2bba8e['subType']['startsWith']('tablePaste')){if(!_0x2bba8e['attributes']['tablePasteChainId']){_0x561ce4=!0x1;break;}if(_0x2bba8e['id']!=_0x59dee5['id']&&_0x2bba8e['attributes']['tablePasteChainId']==_0x5f3da0){_0x5038ec=!0x1;break;}}_0x561ce4&&_0x5038ec&&(_0x59dee5['removeMarkers'](),_0x512760=!0x0);}}for(const _0x237e26 of _0x1d6a92)_0x3d04f1['remove'](_0x237e26);for(const _0x44287b of _0x5d88dc)_0x3d04f1['unwrap'](_0x44287b);return _0x512760;}),_0x565fbb['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xbed509=>_0x2e6bd3(_0xbed509),'converterPriority':'high'}),_0x565fbb['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4e9f09,_0x3efad0)=>_0x3efad0['options']['showSuggestionHighlights']?_0x2e6bd3(_0x4e9f09,!0x1):null,'converterPriority':'high'});const _0x54db72=_0x565fbb['editing']['view'];this['listenTo'](_0x54db72['document'],'clipboardOutput',(_0x297527,_0x2e4c06)=>{const _0x49242e=[];for(const _0x33c16a of _0x54db72['createRangeIn'](_0x2e4c06['content'])['getItems']())_0x33c16a['is']('element','suggestion-td')&&_0x49242e['push'](_0x33c16a);_0x54db72['change'](_0x176f70=>{for(const _0x4265d3 of _0x49242e)_0x176f70['move'](_0x176f70['createRangeIn'](_0x4265d3),_0x176f70['createPositionBefore'](_0x4265d3)),_0x176f70['remove'](_0x4265d3);});});}}function Oe(_0x55c314){if(_0x55c314['isEmpty'])return!0x0;const _0x253a5b=_0x55c314['getChild'](0x0);return _0x253a5b['is']('element','paragraph')&&_0x253a5b['isEmpty'];}function Ue(_0x221a96,_0x52b8c1={},_0x2dd5cf){for(const {isAnchor:_0x5f2165,cellHeight:_0x481e90,cellWidth:_0x313ceb}of _0x2dd5cf['createTableWalker'](_0x221a96,{'includeAllSlots':!0x0,..._0x52b8c1}))if(!_0x5f2165||0x1!=_0x481e90||0x1!=_0x313ceb)return!0x1;return!0x0;}class Dt extends _0x263240{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4e5c59=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e5c59['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4e5c59['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4e5c59['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4e5c59['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4e5c59['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4e5c59['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x291fdd,_0xa91aad){const _0x3473bc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11b545=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3e4b97=_0xa91aad['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x284630=_0x11b545['getColumnGroupElement'](_0x3e4b97);let _0x24d2b4=_0x284630?_0x11b545['getTableColumnsWidths'](_0x284630):null,_0x1d6693=_0x3e4b97['getAttribute']('tableWidth')||null;const _0x1e526b=_0xa91aad['tableWidth']||_0x1d6693,_0x4ddf74=_0xa91aad['columnWidths']||_0x24d2b4,_0x3b6576=this['editor']['plugins']['get']('Users')['me'];for(const _0x305c3e of _0x3473bc['getSuggestions']()){const _0x59b808=_0x305c3e['getContainedElement']();if('resizeTable'===_0x305c3e['subType']&&_0x59b808===_0x3e4b97){_0x305c3e['author']!==_0x3b6576&&_0x305c3e['discard']();const _0xddcb0d=_0x305c3e['data']['commandParams'];_0x1d6693=_0xddcb0d[0x0]['tableWidth'],_0x24d2b4=_0xddcb0d[0x0]['columnWidths'];break;}}_0x291fdd({'table':_0x3e4b97,'tableWidth':_0x1e526b,'columnWidths':_0x4ddf74}),_0x3473bc['markBlockFormat'](_0x3e4b97,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1d6693,'columnWidths':_0x24d2b4}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3cd24e){if('formatBlock'!=_0x3cd24e['type']&&'formatInline'!=_0x3cd24e['type'])return;const {data:_0x25a0c7}=_0x3cd24e;if(_0x25a0c7&&'resizeTable'===_0x25a0c7['formatGroupId']){const _0x3ee217='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3ee217)};}}}class $t extends _0x263240{['afterInit'](){const _0xdb2ed1=this['editor'];_0xdb2ed1['plugins']['has']('Template')&&_0xdb2ed1['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x263240{['afterInit'](){const _0x1f9a4d=this['editor'];if(!_0x1f9a4d['commands']['get']('insertTableOfContents'))return;_0x1f9a4d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x505da8=_0x1f9a4d['plugins']['get']('TrackChangesEditing'),_0x1db394=_0x1f9a4d['locale'];_0x505da8['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2c6d57=>o(_0x1db394,'ELEMENT_TABLE_OF_CONTENTS',_0x2c6d57));}}class Bt extends _0x263240{['afterInit'](){const _0x546b03=this['editor'];if(!_0x546b03['plugins']['has']('Title'))return;const _0x3b3327=_0x546b03['plugins']['get']('TrackChangesEditing');_0x3b3327['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x546b03['locale'],'ELEMENT_TITLE')),_0x546b03['model']['document']['registerPostFixer'](_0x114cbe=>{let _0x26ad2c=!0x1;const _0x35399f=Array['from'](_0x546b03['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7ea906,data:_0x95c9ed}of _0x35399f){const {group:_0x2549b1}=_0x3b3327['_splitMarkerName'](_0x7ea906);if('suggestion'!==_0x2549b1||!_0x95c9ed['newRange'])continue;const _0x17bb19=_0x95c9ed['newRange'],_0x1a2377=_0x17bb19['end']['nodeBefore'];if(!_0x1a2377||!_0x1a2377['is']('element','title-content'))continue;if(!_0x17bb19['start']['isTouching'](_0x17bb19['end']))continue;const _0x5b450c=_0x546b03['model']['schema']['getNearestSelectionRange'](_0x17bb19['end'],'forward');if(_0x5b450c&&_0x5b450c['isCollapsed']){const _0x55d9aa=_0x114cbe['createRange'](_0x17bb19['start'],_0x5b450c['start']);_0x55d9aa['isEqual'](_0x17bb19)||(_0x114cbe['updateMarker'](_0x7ea906,{'range':_0x55d9aa}),_0x26ad2c=!0x0);}_0x26ad2c||(_0x114cbe['removeMarker'](_0x7ea906),_0x26ad2c=!0x0);}return _0x26ad2c;});}}class Tt extends _0x263240{['afterInit'](){const _0x39b2af=this['editor'],_0xaf051=_0x39b2af['plugins']['get']('TrackChangesEditing');_0x39b2af['plugins']['has']('Uploadcare')&&(_0xaf051['enableCommand']('uploadcare'),_0x39b2af['plugins']['has']('UploadcareImageEdit')&&(_0xaf051['enableCommand']('uploadcareImageEdit'),_0xaf051['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xaf051['registerBlockAttribute']('uploadcareImageId'),_0xaf051['descriptionFactory']['registerDescriptionCallback'](_0x82aee8=>{if('attribute'!=_0x82aee8['type'])return;const {data:_0x459c04}=_0x82aee8;return _0x459c04&&'uploadcareImageId'==_0x459c04['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x263240{['afterInit'](){const _0xc32972=this['editor'],_0x1e5c80=_0xc32972['plugins']['get']('TrackChangesEditing');_0xc32972['plugins']['has']('UndoEditing')&&(_0x1e5c80['enableCommand']('undo'),_0x1e5c80['enableCommand']('redo'));}}class Ot extends _0x263240{static get['requires'](){return[At];}['afterInit'](){const _0x46e67c=this['editor'];if(!_0x46e67c['plugins']['has']('TableCaptionEditing'))return;_0x46e67c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x263240{['tableProperties'];['tableCellProperties'];constructor(_0x5e7946){super(_0x5e7946),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x29592d=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x360401 of this['tableProperties'])_0x29592d['enableCommand'](_0x360401,(_0x4cd4ce,_0x43bff6)=>{const _0x2827fb=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x360401,[_0x2827fb],this['tableProperties'],'tableProperties',_0x4cd4ce,_0x43bff6);});_0x29592d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x29592d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x29592d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4b6456,_0x26a0ed)=>this['handleDiscardAction'](this['tableProperties'],_0x4b6456,_0x26a0ed)),_0x29592d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5e14b6 of this['tableCellProperties'])_0x29592d['enableCommand'](_0x5e14b6,(_0x250bbc,_0x514d1a)=>{const _0x1e63f1=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5e14b6,_0x1e63f1,this['tableCellProperties'],'tableCellProperties',_0x250bbc,_0x514d1a);});_0x29592d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x29592d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x29592d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x316c17,_0x4bf356)=>this['handleDiscardAction'](this['tableCellProperties'],_0x316c17,_0x4bf356)),_0x29592d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x29592d['descriptionFactory']['registerDescriptionCallback'](_0x373516=>this['handleSuggestionDescription'](_0x373516)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x2000fc,_0x1e9967,_0xc34c7c,_0x42997c,_0x39ce9e,_0x3287f7){const _0x49aa90=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3287f7['batch'],()=>{for(const _0x6f0142 of _0x1e9967){if(this['_getSuggestion'](_0x6f0142,_0x42997c))_0x39ce9e(_0x3287f7);else{const _0x38a73e={};for(const _0x278988 of _0xc34c7c){const _0x1cadcd=_0x6f0142['getAttribute'](_0x278988);void 0x0!==_0x1cadcd&&(_0x38a73e[_0x278988]=_0x1cadcd);}_0x39ce9e(_0x3287f7),_0x49aa90['markBlockFormat'](_0x6f0142,{'commandParams':[_0x38a73e]},[],_0x42997c);}}});}['handleDiscardAction'](_0x841305,_0x4bb8af,_0x515ae8){const _0x3baa12=_0x4bb8af[0x0]['start']['nodeAfter'],_0x24b88d=_0x515ae8['commandParams'][0x0];this['editor']['model']['change'](_0x5dd7bb=>{for(const _0x25c726 of _0x841305)void 0x0!==_0x24b88d[_0x25c726]?_0x5dd7bb['setAttribute'](_0x25c726,_0x24b88d[_0x25c726],_0x3baa12):_0x5dd7bb['removeAttribute'](_0x25c726,_0x3baa12);});}['handleSuggestionDescription'](_0x435b7e){if(_0x435b7e['data'])switch(_0x435b7e['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x309607,_0x5ee7ec){const _0x466d6b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x309bbb of _0x466d6b['getSuggestions']({'skipNotAttached':!0x0})){const _0x5a92b4=_0x309bbb['getContainedElement']();if(_0x309bbb['subType']===_0x5ee7ec&&_0x5a92b4===_0x309607)return _0x309bbb;}return null;}['_registerTablePropertiesAttributes'](){const _0x4ec1c0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b6727=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x22638a of _0x2b6727){const _0x3e40a6=_0x22638a['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x4ec1c0['registerBlockAttribute'](_0x22638a),_0x4ec1c0['descriptionFactory']['registerAttributeLabel'](_0x22638a,o(this['editor']['locale'],'FORMAT_'+_0x3e40a6));}}}class Rt extends _0x263240{['afterInit'](){const _0x5b504a=this['editor'];if(!_0x5b504a['plugins']['has']('LineHeight'))return;const _0x53af08=_0x5b504a['plugins']['get']('TrackChangesEditing'),_0x1e784f=_0x5b504a['locale'];_0x53af08['enableDefaultAttributesIntegration']('lineHeight'),_0x53af08['registerBlockAttribute']('lineHeight'),_0x53af08['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x1e784f,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x263240{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x48e968,_0x16f9db,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,Mt,Et,$t,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x121357){super(_0x121357),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1af534,_0x370503,_0x14ba3a,_0x39fbfd)=>{this['_model']['change'](()=>{for(const _0x50f6fc of[..._0x39fbfd,..._0x14ba3a])this['_model']['markers']['has'](_0x50f6fc)&&_0x121357['editing']['reconvertMarker'](_0x50f6fc);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x121357['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x121357['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x121357['config']['get']('trackChanges.trackFormatChanges'),_0x121357['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x121357['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x121357,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x54c0be=this['editor'],_0x4d12a1=(_0x3292cb,_0x454ad3)=>{if('attribute'!=_0x3292cb)return'ck-suggestion-marker-'+_0x3292cb;const _0x42eab5=_0x454ad3['split']('|')[0x0];return this['_isBlockAttribute'](_0x42eab5)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x54c0be['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x573a05=>{const {id:_0x4403ee,authorId:_0x59cf9a,type:_0x17c38e,subType:_0x5d15df}=this['_splitMarkerName'](_0x573a05['markerName']),_0x36cbca=['ck-suggestion-marker',_0x4d12a1(_0x17c38e,_0x5d15df)];let _0x2abeb6=0xbb8;return this['activeMarkers']['includes'](_0x573a05['markerName'])&&(_0x36cbca['push']('ck-suggestion-marker--active'),_0x2abeb6=0xbc2),'deletion'==_0x17c38e&&(_0x2abeb6+=0x5),{'classes':_0x36cbca,'attributes':{'data-suggestion':_0x4403ee,'data-author-id':_0x59cf9a},'priority':_0x2abeb6};}}),_0x54c0be['conversion']['for']('dataDowncast')['add'](_0x46568b=>{_0x46568b['on']('addMarker:suggestion',(_0x290778,_0xb5ac41,_0x18ec09)=>{if(!_0x18ec09['options']['showSuggestionHighlights'])return;const _0x558c9d=_0xb5ac41['item'];if(!_0x558c9d)return;const _0x337e39=_0x18ec09['mapper']['toViewElement'](_0x558c9d);_0x54c0be['model']['schema']['isObject'](_0x558c9d)&&_0x337e39&&!_0x337e39['getCustomProperty']('widget')&&_0x337e39['is']('containerElement')&&_0xf724b7(_0x337e39,_0x18ec09['writer']);},{'priority':'high'});}),_0x54c0be['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x461234,_0x42fbd7)=>{if(!_0x42fbd7['options']['showSuggestionHighlights'])return null;const {id:_0xbdf287,authorId:_0x4e11b5,type:_0xc3bf5f,subType:_0x55e74e}=this['_splitMarkerName'](_0x461234['markerName']);return{'classes':['ck-suggestion-marker',_0x4d12a1(_0xc3bf5f,_0x55e74e)],'priority':0xbb8,'attributes':{'data-suggestion':_0xbdf287,'data-author-id':_0x4e11b5}};}});const _0x9a07a9=({showActiveMarkers:_0x59a0fa=!0x0,isAttributeSuggestion:_0x3c4228=!0x1}={})=>(_0x2271fe,_0xab0150,_0x42d0ab)=>{if(!_0xab0150['item'])return;const {id:_0x58b0e3,authorId:_0x36ff3f}=this['_splitMarkerName'](_0xab0150['markerName']);if(_0x3c4228){const _0x31e970=this['_suggestions']['get'](_0x58b0e3),_0xb4bf4f=this['_getAttributeKey'](_0x31e970);if(!this['_isBlockAttribute'](_0xb4bf4f))return;}if(_0xab0150['item']['is']('selection'))return void _0x42d0ab['consumable']['consume'](_0xab0150['item'],_0x2271fe['name']);const _0x1a3e2a=_0x42d0ab['mapper']['toViewElement'](_0xab0150['item']);if(_0xab0150['item']['is']('element')&&_0x54c0be['model']['schema']['isBlock'](_0xab0150['item'])&&!_0x1a3e2a['getCustomProperty']('addHighlight')){_0x42d0ab['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1a3e2a),_0x42d0ab['writer']['setAttribute']('data-suggestion',_0x58b0e3,_0x1a3e2a),_0x42d0ab['writer']['setAttribute']('data-author-id',_0x36ff3f,_0x1a3e2a),_0x42d0ab['mapper']['bindElementToMarker'](_0x1a3e2a,_0xab0150['markerName']),_0x59a0fa&&(this['activeMarkers']['includes'](_0xab0150['markerName'])?_0x42d0ab['writer']['addClass']('ck-suggestion-marker--active',_0x1a3e2a):_0x42d0ab['writer']['removeClass']('ck-suggestion-marker--active',_0x1a3e2a));for(const _0x106b66 of _0x54c0be['model']['createRangeIn'](_0xab0150['item'])['getItems']())_0x42d0ab['consumable']['consume'](_0x106b66,_0x2271fe['name']);_0x42d0ab['consumable']['consume'](_0xab0150['item'],_0x2271fe['name']);}};_0x54c0be['conversion']['for']('dataDowncast')['add'](_0x379ad1=>{_0x379ad1['on']('addMarker:suggestion:formatBlock',(_0x2ee9f7,_0x34668b,_0x4cc0ad)=>{_0x4cc0ad['options']['showSuggestionHighlights']&&_0x9a07a9({'showActiveMarkers':!0x1})(_0x2ee9f7,_0x34668b,_0x4cc0ad);},{'priority':'highest'});}),_0x54c0be['conversion']['for']('dataDowncast')['add'](_0x51fe6c=>{_0x51fe6c['on']('addMarker:suggestion:attribute',(_0x568cd4,_0xfddfb5,_0x5b1fd4)=>{_0x5b1fd4['options']['showSuggestionHighlights']&&_0x9a07a9({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x568cd4,_0xfddfb5,_0x5b1fd4);},{'priority':'highest'});}),_0x54c0be['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1cdf31,_0x42bedf)=>{if(_0x42bedf['options']['showSuggestionHighlights']){const {id:_0x4f12ef,authorId:_0xd9b16b}=this['_splitMarkerName'](_0x1cdf31);return _0x1cdf31['includes'](':split')||_0x1cdf31['includes'](':merge')?{'group':'suggestion','name':_0x1cdf31['substr'](0xb),'attributes':{'data-suggestion':_0x4f12ef,'data-author-id':_0xd9b16b}}:null;}return{'group':'suggestion','name':_0x1cdf31['substr'](0xb)};}}),_0x54c0be['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2c53ca,{writer:_0x8f1d81})=>{let _0x1229d4='suggestion:'+_0x2c53ca['getAttribute']('suggestion-type')+':'+_0x2c53ca['getAttribute']('id');return _0x2c53ca['getAttribute']('marker-count')&&(_0x1229d4+=':'+_0x2c53ca['getAttribute']('marker-count')),_0x8f1d81['createElement']('$marker',{'data-name':_0x1229d4});}}),_0x54c0be['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x54c0be['conversion']['for']('editingDowncast')['add'](_0x453f87=>{_0x453f87['on']('addMarker:suggestion:formatBlock',_0x9a07a9(),{'priority':'high'});}),_0x54c0be['conversion']['for']('editingDowncast')['add'](_0x1c49f8=>{_0x1c49f8['on']('addMarker:suggestion:attribute',_0x9a07a9({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x54c0be['conversion']['for']('editingDowncast')['add'](_0x40e634=>{_0x40e634['on']('removeMarker:suggestion:formatBlock',(_0x1e78f7,_0x54d3ff,_0x10ff4c)=>{const _0x26c389=_0x10ff4c['mapper']['markerNameToElements'](_0x54d3ff['markerName']);if(_0x26c389){for(const _0x7b5c5d of _0x26c389)_0x7b5c5d['getCustomProperty']('addHighlight')||(_0x10ff4c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x7b5c5d),_0x10ff4c['writer']['removeAttribute']('data-suggestion',_0x7b5c5d),_0x10ff4c['writer']['removeAttribute']('data-author-id',_0x7b5c5d),_0x10ff4c['mapper']['unbindElementFromMarkerName'](_0x7b5c5d,_0x54d3ff['markerName']));}},{'priority':'high'});}),_0x54c0be['conversion']['for']('editingDowncast')['add'](_0x5912b1=>{_0x5912b1['on']('removeMarker:suggestion:attribute',(_0x5a5646,_0x53e546,_0x375c93)=>{const _0x4e9292=_0x375c93['mapper']['markerNameToElements'](_0x53e546['markerName']);if(!_0x4e9292)return;const {id:_0x231fc0}=this['_splitMarkerName'](_0x53e546['markerName']),_0x154451=this['_suggestions']['get'](_0x231fc0),_0x11181b=this['_getAttributeKey'](_0x154451);if(this['_isBlockAttribute'](_0x11181b)){for(const _0x4bdab2 of _0x4e9292)_0x4bdab2['getCustomProperty']('addHighlight')||(_0x375c93['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4bdab2),_0x375c93['writer']['removeAttribute']('data-suggestion',_0x4bdab2),_0x375c93['writer']['removeAttribute']('data-author-id',_0x4bdab2),_0x375c93['mapper']['unbindElementFromMarkerName'](_0x4bdab2,_0x53e546['markerName']));}},{'priority':'high'});}),_0x54c0be['model']['document']['registerPostFixer'](_0x5ab15f=>{let _0x3ec1d0=!0x1;const _0x462ff2=Array['from'](_0x54c0be['model']['document']['differ']['getChangedMarkers']()),_0x11c88b=new Set();for(const {name:_0x4111a3,data:_0x1eaf30}of _0x462ff2){const {group:_0x346c72,type:_0x265c9e,subType:_0x186242,id:_0x53927b}=this['_splitMarkerName'](_0x4111a3);if('suggestion'!==_0x346c72)continue;const _0x196aa3=_0x186242?'suggestion:'+_0x265c9e+':'+_0x186242+':'+_0x53927b:'suggestion:'+_0x265c9e+':'+_0x53927b,_0x25c46e=_0x54c0be['model']['markers']['getMarkersGroup'](_0x196aa3),_0x37f714=_0x54c0be['model']['markers']['get'](_0x4111a3),_0x2a5c6c=this['_suggestions']['get'](_0x53927b);if(null!=_0x1eaf30['newRange']){'formatInline'==_0x265c9e&&(_0x3ec1d0=_0x3ec1d0||Gt(_0x1eaf30['newRange'],_0x4111a3,_0x5ab15f,_0x54c0be['model']['schema']));const _0x147d55='attribute'==_0x265c9e&&this['_isBlockAttribute'](_0x186242['split']('|')[0x0]),_0x385322='attribute'==_0x265c9e&&this['_isInlineAttribute'](_0x186242['split']('|')[0x0]);if(_0x1eaf30['newRange']['isCollapsed']||'$graveyard'==_0x1eaf30['newRange']['root']['rootName']||'formatBlock'==_0x265c9e&&!Jt(_0x1eaf30['newRange'])||_0x147d55&&!Jt(_0x1eaf30['newRange'])||_0x385322&&Kt(_0x1eaf30['newRange'])||'deletion'==_0x265c9e&&Kt(_0x1eaf30['newRange'])||_0x37f714&&Ht(_0x37f714,_0x25c46e))_0x5ab15f['removeMarker'](_0x4111a3),_0x3ec1d0=!0x0;else{if(!_0x2a5c6c||!_0x2a5c6c['isInContent'])continue;if(_0x1eaf30['newRange']&&_0x1eaf30['oldRange']&&_0x1eaf30['newRange']['isEqual'](_0x1eaf30['oldRange']))continue;_0x11c88b['add'](_0x2a5c6c);}}}return _0x11c88b['size']>0x0&&(_0x3ec1d0=!!this['_joinWithAdjacentSuggestions'](_0x11c88b)||_0x3ec1d0),_0x3ec1d0;}),_0x54c0be['model']['document']['registerPostFixer'](_0x1bb007=>{let _0x56e603=!0x1;for(const _0x3d4dc1 of _0x54c0be['model']['document']['differ']['getChanges']())if('insert'==_0x3d4dc1['type'])for(const _0x115ed2 of this['_suggestions']['values']()){if(_0x115ed2['isMultiRange']||!_0x115ed2['isInContent'])continue;const _0x261c3c='formatBlock'==_0x115ed2['type'],_0x130559=this['_getAttributeKey'](_0x115ed2),_0x32f8de=_0x130559&&this['_isBlockAttribute'](_0x130559);if(!_0x261c3c&&!_0x32f8de)continue;const _0x1aec40=_0x115ed2['getFirstRange']();if(_0x1aec40['start']['parent']!=_0x1aec40['end']['parent']&&!_0x1aec40['end']['isAtEnd']){const _0x5a29f6=_0x54c0be['model']['createPositionAt'](_0x1aec40['start']['nodeAfter'],'end'),_0x4e45a4=_0x54c0be['model']['createRange'](_0x1aec40['start'],_0x5a29f6);_0x1bb007['updateMarker'](_0x115ed2['getFirstMarker'](),{'range':_0x4e45a4}),_0x56e603=!0x0;}}return _0x56e603;}),_0x54c0be['model']['document']['registerPostFixer'](_0x2f6810=>this['_processAttributeChanges'](_0x2f6810)),_0x54c0be['model']['document']['registerPostFixer'](_0x33c6c8=>!_0x33c6c8['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x33c6c8)),_0x54c0be['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x54c0be['model']['document']['on']('change:data',(_0x136c8e,_0xfb00dc)=>{if(!_0xfb00dc['isLocal']||_0xfb00dc['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1c67bc=_0x54c0be['model']['document']['differ']['getChanges']();if(0x0==_0x1c67bc['length'])return;const _0x3d1234=[],_0x3029dc=_0x1c67bc['filter'](_0x55eeba=>'attribute'==_0x55eeba['type']),_0x4b5d45=_0x1c67bc['filter'](_0x3eb7f1=>'insert'==_0x3eb7f1['type']&&'$text'!=_0x3eb7f1['name']);for(const _0x41f4ab of _0x3029dc)this['_isRegisteredAttribute'](_0x41f4ab['attributeKey'])&&_0x3d1234['push']({'key':_0x41f4ab['attributeKey'],'newValue':_0x41f4ab['attributeNewValue'],'oldValue':_0x41f4ab['attributeOldValue'],'range':qt(_0x41f4ab['range'],_0x54c0be['model'])});for(const _0x180d51 of _0x4b5d45){if('rename'!=_0x180d51['action']&&'refresh'!=_0x180d51['action'])continue;const _0x30c92f=zt(_0x180d51['position']['nodeAfter'],_0x54c0be['model']),_0x1253a9=_0x180d51['before'];'rename'==_0x180d51['action']&&_0x3d1234['push']({'key':m,'newValue':_0x180d51['name'],'oldValue':_0x1253a9['name'],'range':_0x30c92f});for(const [_0x4e4ea0,_0x3621e1]of _0x1253a9['attributes']){if(!this['_isRegisteredAttribute'](_0x4e4ea0))continue;const _0x2ce86b=_0x180d51['attributes']['get'](_0x4e4ea0);_0x3621e1!==_0x2ce86b&&_0x3d1234['push']({'key':_0x4e4ea0,'newValue':_0x2ce86b,'oldValue':_0x3621e1,'range':_0x30c92f});}for(const [_0x336079,_0x1af6a0]of _0x180d51['attributes'])this['_isRegisteredAttribute'](_0x336079)&&(_0x1253a9['attributes']['has'](_0x336079)||_0x3d1234['push']({'key':_0x336079,'newValue':_0x1af6a0,'oldValue':null,'range':_0x30c92f}));}0x0!=_0x3d1234['length']&&_0x54c0be['model']['enqueueChange'](_0xfb00dc,_0x2224cd=>{const _0x52ddc8=_0x57604c();for(const {range:_0x18d87a,key:_0x3f48b1,oldValue:_0x333e33,newValue:_0x123736}of _0x3d1234)this['markAttributeChange'](_0x18d87a,_0x3f48b1,_0x333e33,_0x123736,{'groupId':_0x52ddc8});this['_reduceExistingSuggestions'](_0x2224cd,_0x3d1234);});},{'priority':'lowest'}),_0x54c0be['model']['markers']['on']('update:suggestion',(_0x1655d4,_0x54a90c,_0x575ae5)=>{if(null==_0x575ae5){const {id:_0x21914c}=this['_splitMarkerName'](_0x54a90c['name']),_0x5f0cf5=this['_suggestions']['get'](_0x21914c);_0x5f0cf5&&_0x5f0cf5['addMarkerName'](_0x54a90c['name']);}}),_0x54c0be['model']['document']['on']('change:data',()=>{const _0x59fe4c=Array['from'](_0x54c0be['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4b17da=>'suggestion'===this['_splitMarkerName'](_0x4b17da['name'])['group']);if(0x0===_0x59fe4c['length'])return;_0x59fe4c['sort']((_0x46d485,_0x14e439)=>{const _0x5303ff=_0x46d485['data']['oldRange'],_0x449917=_0x14e439['data']['oldRange'];return null===_0x5303ff&&null===_0x449917?0x0:null===_0x5303ff&&null!==_0x449917?-0x1:null!==_0x5303ff&&null===_0x449917?0x1:_0x5303ff['start']['isBefore'](_0x449917['start'])?-0x1:0x1;});const _0x2f4a4f=new Set(),_0x27f9bd=new Set();for(const {name:_0x428918,data:_0x23ef2b}of _0x59fe4c){const {id:_0x2b95c7}=this['_splitMarkerName'](_0x428918);if(null===_0x23ef2b['oldRange']){const _0x464ef=this['_handleNewSuggestionMarker'](_0x428918);_0x27f9bd['add'](_0x464ef);}else{const _0x3774c4=this['_suggestions']['get'](_0x2b95c7);null!==_0x23ef2b['newRange']||_0x3774c4['isInContent']?(_0x2f4a4f['add'](_0x3774c4['head']),_0x27f9bd['add'](_0x3774c4)):this['_removeSuggestion'](_0x3774c4);}}_0x27f9bd['size']>0x0&&this['_refreshSuggestionsChain'](_0x27f9bd);for(const _0x57195d of _0x2f4a4f)this['fire']('suggestionChanged',_0x57195d);}),_0x54c0be['model']['on']('applyOperation',(_0x21294a,_0x356454)=>{const _0xa67067=_0x356454[0x0];if(!this['_suggestions']['size'])return;if(!_0xa67067['isDocumentOperation'])return;if(_0xa67067['batch']['isUndo']||!_0xa67067['batch']['isLocal'])return;let _0xebcf30,_0x515504;switch(_0xa67067['type']){case'insert':_0xebcf30=_0x54c0be['model']['createPositionAt'](_0xa67067['position']),_0x515504=_0xebcf30['getShiftedBy'](_0xa67067['howMany']);break;case'split':_0xebcf30=_0x54c0be['model']['createPositionAt'](_0xa67067['splitPosition']),_0x515504=_0x54c0be['model']['createPositionAt'](_0xa67067['moveTargetPosition']);break;case'move':_0xebcf30=_0x54c0be['model']['createPositionAt'](_0xa67067['targetPosition']),_0x515504=_0xebcf30['getShiftedBy'](_0xa67067['howMany']);break;default:return;}const _0x4a936e=_0x54c0be['model']['createRange'](_0xebcf30,_0x515504);_0x54c0be['model']['change'](()=>{for(const {suggestion:_0x4733eb,meta:_0x374970}of this['_findSuggestions'](_0x4a936e)){if(_0x4733eb['isMultiRange'])continue;if('formatInline'==_0x4733eb['type'])continue;const _0x52cff0=this['_getAttributeKey'](_0x4733eb);if(_0x52cff0&&this['_isBlockAttribute'](_0x52cff0)&&'split'!=_0xa67067['type'])continue;const _0x2a6602=_0x4733eb['data']&&_0x4733eb['data']['multipleBlocks'];('formatBlock'!=_0x4733eb['type']||'split'==_0xa67067['type']&&!_0x2a6602)&&(_0x374970['containsRangeInObject']||'insertion'==_0x4733eb['type']&&_0x374970['isOwn']||_0x4733eb['getFirstRange']()['containsRange'](_0x4a936e)&&this['_breakSuggestionMarker'](_0x4733eb,_0xebcf30,_0x515504));}});},{'priority':'lowest'}),_0x54c0be['model']['on']('deleteContent',(_0x3b28e7,_0x3760ff)=>{const _0x24dda2=_0x3760ff[0x0],_0x7119f6=_0x3760ff[0x1];if(_0x7119f6&&_0x7119f6['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x24dda2['isCollapsed'])return;const _0x3bc5a2=_0x54c0be['model']['schema'],{start:_0x3d1b27,end:_0x25ee3e}=_0x24dda2['getFirstRange'](),_0x398703=_0x3d1b27['nodeAfter']&&_0x3bc5a2['isLimit'](_0x3d1b27['nodeAfter'])?null:_0x3bc5a2['getNearestSelectionRange'](_0x3d1b27,'forward'),_0x26b46f=_0x25ee3e['nodeBefore']&&_0x3bc5a2['isLimit'](_0x25ee3e['nodeBefore'])?null:_0x3bc5a2['getNearestSelectionRange'](_0x25ee3e,'backward'),_0x171094=_0x54c0be['model']['createRange'](_0x398703?_0x398703['start']:_0x3d1b27,_0x26b46f?_0x26b46f['end']:_0x25ee3e);_0x54c0be['model']['change'](_0x275405=>{this['markDeletion'](_0x171094);const _0x21e307=_0x54c0be['model']['schema']['getNearestSelectionRange'](_0x171094['start']);_0x24dda2['is']('documentSelection')?_0x275405['setSelection'](_0x21e307):_0x24dda2['setTo'](_0x21e307);}),_0x3b28e7['stop']();},{'priority':_0x441968['normal']+0xa}),_0x54c0be['model']['on']('insertContent',(_0xac4ef,_0xbffad7)=>{const _0x3add59=_0xbffad7[_0xbffad7['length']-0x1];_0x3add59&&_0x3add59['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x54c0be['model']['change'](()=>{let _0x2d68db=_0x54c0be['model']['insertContent'](_0xbffad7[0x0],_0xbffad7[0x1],_0xbffad7[0x2],{'forceDefaultExecution':!0x0});if(!_0x2d68db)return;_0xac4ef['return']=_0x2d68db['clone']();const _0x1a6b29=_0x2d68db['end']['nodeBefore'],_0x505e14=_0x54c0be['model']['schema'];_0x1a6b29&&_0x505e14['isBlock'](_0x1a6b29)&&!_0x505e14['isObject'](_0x1a6b29)&&(_0x2d68db=_0x54c0be['model']['createRange'](_0x2d68db['start'],_0x54c0be['model']['createPositionAt'](_0x1a6b29,'end'))),this['markInsertion'](_0x2d68db);}),_0xac4ef['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x10977a=new D(_0x54c0be,this['_suggestions']);_0x54c0be['commands']['add']('acceptSuggestion',_0x10977a),this['enableCommand']('acceptSuggestion');const _0x5834ef=new $(_0x54c0be,this['_suggestions']);_0x54c0be['commands']['add']('discardSuggestion',_0x5834ef),this['enableCommand']('discardSuggestion'),_0x54c0be['commands']['add']('acceptAllSuggestions',new M(_0x54c0be,_0x10977a,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x54c0be['commands']['add']('discardAllSuggestions',new M(_0x54c0be,_0x5834ef,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x54c0be['commands']['add']('acceptSelectedSuggestions',new B(_0x54c0be,_0x10977a,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x54c0be['commands']['add']('discardSelectedSuggestions',new B(_0x54c0be,_0x5834ef,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x476752=_0x54c0be['plugins']['get']('CommentsRepository');this['listenTo'](_0x476752,'addComment',(_0x16c189,{threadId:_0x12d84d})=>{const _0x5cd863=this['_suggestions']['get'](_0x12d84d);_0x5cd863&&_0x5cd863['commentThread']&&0x1===_0x5cd863['commentThread']['length']&&this['_updateSuggestionData'](_0x12d84d,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x476752,'removeComment',(_0x15fbdf,{threadId:_0x1278a0})=>{const _0x529fa5=this['_suggestions']['get'](_0x1278a0);_0x529fa5&&_0x529fa5['commentThread']&&!_0x529fa5['commentThread']['length']&&this['_updateSuggestionData'](_0x1278a0,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1ed8c7){const _0x276c4e=_0x393a0e([0x71,0x79,0x50,0x4f,0x30,0x64,0x4e,0x69,0x42,0x73,0x76,0x47,0x37,0x39,0x74,0x6b,0x6e,0x56,0x5a,0x6f,0x55,0x53,0x38,0x31,0x67,0x49,0x4c,0x54,0x4d,0x65,0x4b,0x36,0x52,0x7a,0x6a,0x44,0x70,0x58,0x43,0x75,0x72,0x57,0x6d,0x46,0x59,0x6c,0x61,0x32,0x68,0x77,0x35,0x51,0x48,0x66,0x78,0x41,0x63,0x62,0x33,0x45,0x4a,0x34]),_0x335ea4=0x6a22b5b1,_0x977540=0x6a25c599^_0x335ea4,_0x545737=window[_0x393a0e([0x44,0x61,0x74,0x65])][_0x393a0e([0x6e,0x6f,0x77])](),_0x38687c=_0x1ed8c7[_0x393a0e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1c7e2a=new window[(_0x393a0e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b66ec=>{_0x38687c[_0x393a0e([0x6f,0x6e,0x63,0x65])](_0x393a0e([0x72,0x65,0x61,0x64,0x79]),_0x5b66ec);}),_0x334a94={[_0x393a0e([0x6b,0x74,0x79])]:_0x393a0e([0x45,0x43]),[_0x393a0e([0x75,0x73,0x65])]:_0x393a0e([0x73,0x69,0x67]),[_0x393a0e([0x63,0x72,0x76])]:_0x393a0e([0x50,0x2d,0x32,0x35,0x36]),[_0x393a0e([0x78])]:_0x393a0e([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]),[_0x393a0e([0x79])]:_0x393a0e([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]),[_0x393a0e([0x61,0x6c,0x67])]:_0x393a0e([0x45,0x53,0x32,0x35,0x36])},_0x58f823=_0x38687c[_0x393a0e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x393a0e([0x67,0x65,0x74])](_0x393a0e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a0dfa(){let _0x5ee52d,_0x29e607=null,_0x27f85c=null;try{if(_0x58f823==_0x393a0e([0x47,0x50,0x4c]))return _0x393a0e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5ee52d=_0x177b82(),!_0x5ee52d)return _0x393a0e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5ee52d[_0x393a0e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x27f85c=_0x1703aa(_0x5ee52d[_0x393a0e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5ee52d[_0x393a0e([0x6a,0x74,0x69])])),await _0x115e0e()?_0x4d5955()?_0x30d4ce()?_0x393a0e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x12a289()?(_0x5ee52d[_0x393a0e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x393a0e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x29e607=_0xb5174a(_0x393a0e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5ee52d[_0x393a0e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x393a0e([0x74,0x72,0x69,0x61,0x6c])&&(_0x29e607=_0xb5174a(_0x393a0e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x7f36ba()):_0x393a0e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x393a0e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x393a0e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x393a0e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x30d4ce(){const _0x53def2=[_0x393a0e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x393a0e([0x74,0x72,0x69,0x61,0x6c])][_0x393a0e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ee52d[_0x393a0e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x545737/0x3e8:0xe10*_0x977540;return _0x5ee52d[_0x393a0e([0x65,0x78,0x70])]<_0x53def2;}function _0x4d5955(){const _0x46e8b8=_0x5ee52d[_0x393a0e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x46e8b8)return!0x1;if(_0x46e8b8[_0x393a0e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x393a0e([0x2a])))return!0x0;if(_0x46e8b8[_0x393a0e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x393a0e([0x54,0x43])))return!0x0;if(_0x46e8b8[_0x393a0e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x393a0e([0x52,0x54,0x43]))){if(_0x45dbd3())return!0x0;if(_0x4f222f()||_0x568901())return!0x0;}return!0x1;}function _0x12a289(){const _0x1c9c6e=_0x5ee52d[_0x393a0e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1c9c6e||0x0==_0x1c9c6e[_0x393a0e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x497e8b}=new URL(window[_0x393a0e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1c9c6e[_0x393a0e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x497e8b))return!0x0;const _0xca46b3=_0x497e8b[_0x393a0e([0x73,0x70,0x6c,0x69,0x74])](_0x393a0e([0x2e]));return _0x1c9c6e[_0x393a0e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x41a952=>_0x41a952[_0x393a0e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x393a0e([0x2a])))[_0x393a0e([0x6d,0x61,0x70])](_0x323f01=>_0x323f01[_0x393a0e([0x73,0x70,0x6c,0x69,0x74])](_0x393a0e([0x2e])))[_0x393a0e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x14ad11=>_0x14ad11[_0x393a0e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xca46b3[_0x393a0e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x393a0e([0x6d,0x61,0x70])](_0x1956cf=>Array(_0xca46b3[_0x393a0e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1956cf[_0x393a0e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x393a0e([0x66,0x69,0x6c,0x6c])](_0x1956cf[0x0]===_0x393a0e([0x2a])?_0x393a0e([0x2a]):'')[_0x393a0e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1956cf))[_0x393a0e([0x73,0x6f,0x6d,0x65])](_0x2ca465=>_0xca46b3[_0x393a0e([0x65,0x76,0x65,0x72,0x79])]((_0x261793,_0xd58ea8)=>_0x2ca465[_0xd58ea8]===_0x261793||_0x2ca465[_0xd58ea8]===_0x393a0e([0x2a])));}function _0x7f36ba(){return _0x29e607&&_0x27f85c?new window[(_0x393a0e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x549337,_0x5f00ec)=>{_0x29e607[_0x393a0e([0x74,0x68,0x65,0x6e])](_0x549337,_0x5f00ec),_0x27f85c[_0x393a0e([0x74,0x68,0x65,0x6e])](_0x2b2ca6=>{_0x2b2ca6!=_0x393a0e([0x56,0x61,0x6c,0x69,0x64])&&_0x549337(_0x2b2ca6);},_0x5f00ec);}):_0x29e607||_0x27f85c||_0x393a0e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1703aa(_0x1d0b34,_0x84917a){return new window[(_0x393a0e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5247ae=>{if(_0x4bf5bf())return _0x5247ae(_0x393a0e([0x56,0x61,0x6c,0x69,0x64]));_0x2927c7(),_0x38687c[_0x393a0e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x393a0e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x20c8e4=!0x1;const _0xcb707e=_0x57604c();function _0x1cc8ad(_0x4b5ca9){return!!_0x4b5ca9&&(typeof _0x4b5ca9===_0x393a0e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4b5ca9===_0x393a0e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4b5ca9[_0x393a0e([0x74,0x68,0x65,0x6e])]===_0x393a0e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4b5ca9[_0x393a0e([0x63,0x61,0x74,0x63,0x68])]===_0x393a0e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x9a38b(_0x8b07f3){_0x4920f4(_0x8b07f3)[_0x393a0e([0x74,0x68,0x65,0x6e])](_0x40c59c=>{if(!_0x40c59c||_0x40c59c[_0x393a0e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x393a0e([0x6f,0x6b]))return _0x393a0e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x29a04f(_0x5240eb(_0xcb707e+_0x84917a))!=_0x40c59c[_0x393a0e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x393a0e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x393a0e([0x56,0x61,0x6c,0x69,0x64]);})[_0x393a0e([0x74,0x68,0x65,0x6e])](_0x36c7c6=>(_0x4559b2(),_0x36c7c6),()=>{const _0x36bd6c=_0x26e072();return null==_0x36bd6c?(_0x4559b2(),_0x393a0e([0x56,0x61,0x6c,0x69,0x64])):_0x393a0e(_0x545737-_0x36bd6c>(0x4e2e31b1^_0x335ea4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x393a0e([0x74,0x68,0x65,0x6e])](_0x5247ae)[_0x393a0e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5247ae(_0x393a0e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4b3041=0x6a145b31^_0x335ea4;function _0x4559b2(){const _0x619920=_0x393a0e([0x6c,0x6c,0x63,0x74,0x2d])+_0x29a04f(_0x5240eb(_0x1d0b34)),_0x1b3987=_0x30b0bb(_0x29a04f(window[_0x393a0e([0x4d,0x61,0x74,0x68])][_0x393a0e([0x63,0x65,0x69,0x6c])](_0x545737/_0x4b3041)));window[_0x393a0e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x393a0e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x619920,_0x1b3987);}function _0x26e072(){const _0x1f1fb7=_0x393a0e([0x6c,0x6c,0x63,0x74,0x2d])+_0x29a04f(_0x5240eb(_0x1d0b34)),_0x248ab6=window[_0x393a0e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x393a0e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1f1fb7);return _0x248ab6?window[_0x393a0e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30b0bb(_0x248ab6),0x10)*_0x4b3041:null;}function _0x4920f4(_0x304984){return new window[(_0x393a0e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ca10b,_0x2c174b)=>{_0x304984[_0x393a0e([0x74,0x68,0x65,0x6e])](_0x3ca10b,_0x2c174b),window[_0x393a0e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2c174b,0x6a236171^_0x335ea4);});}}_0x38687c[_0x393a0e([0x6f,0x6e])](_0x393a0e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4e8e34,_0x406efe)=>{if(_0x406efe[0x0]!=_0x1d0b34)return _0x5247ae(_0x393a0e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x406efe[0x1]={..._0x406efe[0x1],[_0x393a0e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xcb707e};},{[_0x393a0e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x393a0e([0x68,0x69,0x67,0x68])}),_0x38687c[_0x393a0e([0x6f,0x6e])](_0x393a0e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x450136=>{_0x1cc8ad(_0x450136[_0x393a0e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x20c8e4=!0x0,_0x9a38b(_0x450136[_0x393a0e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x393a0e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x393a0e([0x6c,0x6f,0x77])}),_0x1c7e2a[_0x393a0e([0x74,0x68,0x65,0x6e])](()=>{_0x20c8e4||_0x5247ae(_0x393a0e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4bf5bf(){return _0x38687c[_0x393a0e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x393a0e([0x76,0x69,0x65,0x77])][_0x393a0e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x393a0e([0x61,0x75,0x74,0x6f]);}function _0x2927c7(){_0x38687c[_0x393a0e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x393a0e([0x76,0x69,0x65,0x77])][_0x393a0e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x393a0e([0x61,0x75,0x74,0x6f]);}}function _0xb5174a(_0x27ebb6){const _0x29ebe2=[new window[(_0x393a0e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x306fe7=>setTimeout(_0x306fe7,0x6a2b8b7d^_0x335ea4)),_0x1c7e2a[_0x393a0e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x393a0e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x331a1b=>{let _0xa04283=0x0;_0x38687c[_0x393a0e([0x6d,0x6f,0x64,0x65,0x6c])][_0x393a0e([0x6f,0x6e])](_0x393a0e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1557c5,_0x4b977c)=>{_0x4b977c[0x0][_0x393a0e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xa04283++,_0xa04283==(0x6a22b449^_0x335ea4)&&(_0x331a1b(),_0x1557c5[_0x393a0e([0x6f,0x66,0x66])]());});}))];return window[_0x393a0e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x393a0e([0x72,0x61,0x63,0x65])](_0x29ebe2)[_0x393a0e([0x74,0x68,0x65,0x6e])](()=>_0x27ebb6);}async function _0x48cef7(){await _0x1c7e2a,_0x38687c[_0x393a0e([0x6d,0x6f,0x64,0x65,0x6c])][_0x393a0e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2bf29b,_0x38687c[_0x393a0e([0x6d,0x6f,0x64,0x65,0x6c])][_0x393a0e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2bf29b,_0x38687c[_0x393a0e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x393a0e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x45dbd3(){return _0x42e92d(_0x393a0e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x49ec3e(_0x393a0e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x393a0e([0x73,0x74,0x61,0x74,0x65])]==_0x393a0e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4f222f(){return _0x42e92d(_0x393a0e([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 _0x568901(){return _0x42e92d(_0x393a0e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x280b89(_0x5417e5){const _0x55a170=_0x372a5b();_0x38687c[_0x55a170]=_0x393a0e([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5417e5,_0x5417e5!=_0x393a0e([0x56,0x61,0x6c,0x69,0x64])&&_0x48cef7();}function _0x372a5b(){const _0xf6bf78=window[_0x393a0e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x393a0e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x393a0e([0x6e,0x6f,0x77])]())[_0x393a0e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x393a0e([0x2e]),'');let _0x50adbb=_0x393a0e([0x71]);for(let _0x2bb280=0x0;_0x2bb280<_0xf6bf78[_0x393a0e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2bb280+=0x2){let _0x5ccb54=window[_0x393a0e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf6bf78[_0x393a0e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2bb280,_0x2bb280+0x2));_0x5ccb54>=_0x276c4e[_0x393a0e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5ccb54-=_0x276c4e[_0x393a0e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x50adbb+=_0x276c4e[_0x5ccb54];}return _0x50adbb;}function _0x177b82(){const _0x592f32=_0x58f823[_0x393a0e([0x73,0x70,0x6c,0x69,0x74])](_0x393a0e([0x2e]));if(0x3!=_0x592f32[_0x393a0e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x37425b(_0x592f32[0x1]);function _0x37425b(_0x5394f6){const _0x383189=_0xa3a1af(_0x5394f6);return _0x383189&&_0x38c8bc()?_0x383189:null;function _0x38c8bc(){const _0x12a149=_0x383189[_0x393a0e([0x6a,0x74,0x69])],_0x2b6b83=window[_0x393a0e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12a149[_0x393a0e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x12a149[_0x393a0e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x452c97={..._0x383189,[_0x393a0e([0x6a,0x74,0x69])]:_0x12a149[_0x393a0e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x12a149[_0x393a0e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x452c97[_0x393a0e([0x76,0x63])],_0x5240eb(_0x452c97)==_0x2b6b83;}}}async function _0x115e0e(){let _0x318fc5=!0x0;try{const _0x318630=_0x58f823[_0x393a0e([0x73,0x70,0x6c,0x69,0x74])](_0x393a0e([0x2e])),[_0x1df98d,_0x1aaab1,_0x55646b]=_0x318630;return _0x1a4b91(_0x1df98d),await _0x70936a(_0x1df98d,_0x1aaab1,_0x55646b),_0x318fc5;}catch{return!0x1;}function _0x1a4b91(_0x1c4cf7){const _0x55dc19=_0xa3a1af(_0x1c4cf7);_0x55dc19&&_0x55dc19[_0x393a0e([0x61,0x6c,0x67])]==_0x393a0e([0x45,0x53,0x32,0x35,0x36])||(_0x318fc5=!0x1);}async function _0x70936a(_0x174588,_0xf1912f,_0x4148df){const _0x422e2d=window[_0x393a0e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x393a0e([0x66,0x72,0x6f,0x6d])](_0x5b28ce(_0x4148df),_0x3b0063=>_0x3b0063[_0x393a0e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2f1d6b=new window[(_0x393a0e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x393a0e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x174588+_0x393a0e([0x2e])+_0xf1912f),_0x3ab9b8=window[_0x393a0e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x393a0e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3ab9b8)return;const _0x8ae48b=await _0x3ab9b8[_0x393a0e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x393a0e([0x6a,0x77,0x6b]),_0x334a94,{[_0x393a0e([0x6e,0x61,0x6d,0x65])]:_0x393a0e([0x45,0x43,0x44,0x53,0x41]),[_0x393a0e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x393a0e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x393a0e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3ab9b8[_0x393a0e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x393a0e([0x6e,0x61,0x6d,0x65])]:_0x393a0e([0x45,0x43,0x44,0x53,0x41]),[_0x393a0e([0x68,0x61,0x73,0x68])]:{[_0x393a0e([0x6e,0x61,0x6d,0x65])]:_0x393a0e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x8ae48b,_0x422e2d,_0x2f1d6b)||(_0x318fc5=!0x1);}}function _0xa3a1af(_0x464825){return _0x464825[_0x393a0e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x393a0e([0x65,0x79]))?JSON[_0x393a0e([0x70,0x61,0x72,0x73,0x65])](_0x5b28ce(_0x464825)):null;}function _0x5b28ce(_0x4792fa){return window[_0x393a0e([0x61,0x74,0x6f,0x62])](_0x4792fa[_0x393a0e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x393a0e([0x2b]))[_0x393a0e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x393a0e([0x2f])));}function _0x5240eb(_0x3b8297){let _0x50e682=0x1505;function _0x4489c7(_0x202432){for(let _0x35ae08=0x0;_0x35ae08<_0x202432[_0x393a0e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35ae08++){const _0x207708=_0x202432[_0x393a0e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x35ae08);_0x50e682=(_0x50e682<<0x5)+_0x50e682+_0x207708,_0x50e682&=_0x50e682;}}function _0x2eb28d(_0xfb4408){Array[_0x393a0e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xfb4408)?_0xfb4408[_0x393a0e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2eb28d):_0xfb4408&&typeof _0xfb4408==_0x393a0e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x393a0e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xfb4408)[_0x393a0e([0x73,0x6f,0x72,0x74])]()[_0x393a0e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1cdc05,_0x2cb5e5])=>{_0x4489c7(_0x1cdc05),_0x2eb28d(_0x2cb5e5);}):_0x4489c7(window[_0x393a0e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xfb4408));}return _0x2eb28d(_0x3b8297),_0x50e682>>>0x0;}function _0x29a04f(_0x28ae0a){return _0x28ae0a[_0x393a0e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x393a0e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x393a0e([0x30]));}function _0x30b0bb(_0x59231c){return _0x59231c[_0x393a0e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x393a0e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x393a0e([0x6a,0x6f,0x69,0x6e])]('');}function _0x42e92d(_0xc0c183){return _0x38687c[_0x393a0e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x393a0e([0x68,0x61,0x73])](_0xc0c183);}function _0x49ec3e(_0x54e1cf){return _0x38687c[_0x393a0e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x393a0e([0x67,0x65,0x74])](_0x54e1cf);}function _0x2bf29b(){}function _0x393a0e(_0x3c6029){return _0x3c6029['map'](_0x3205c6=>String['fromCharCode'](_0x3205c6))['join']('');}_0x280b89(await _0x4a0dfa());}(this);}set['adapter'](_0x1ddb33){if(this['_adapter'])throw new _0x337eb4('track-changes-adapter-already-set',this);this['_adapter']=_0x1ddb33;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x28c679=!0x1,toJSON:_0xbc4ea0=!0x1}={}){const _0x2e58b6=[];for(const _0x30814d of this['_suggestions']['values']())_0x28c679&&!_0x30814d['isInContent']||_0x2e58b6['push'](_0x30814d);return _0xbc4ea0?_0x2e58b6['map'](_0x335550=>_0x335550['toJSON']()):_0x2e58b6;}['getSuggestion'](_0x3147a6){const _0x54d126=this['_suggestions']['get'](_0x3147a6);if(!_0x54d126)throw new _0x337eb4('track-changes-suggestion-not-found',this);return _0x54d126;}['hasSuggestion'](_0x593177){return this['_suggestions']['has'](_0x593177);}['addSuggestionData'](_0x3475b5){const {authorId:_0x272dca,id:_0x90747f,originalSuggestionId:_0x1b9d08,attributes:_0x1b5849}=_0x3475b5,[_0x3ffd43,_0x4439f3]=_0x3475b5['type']['split'](':'),_0x1e5ae6=this['_suggestions']['get'](_0x90747f)||this['_createSuggestion'](_0x3ffd43,_0x4439f3,_0x90747f,_0x272dca,_0x1b5849,_0x1b9d08);if(this['_addThreadToSuggestion'](_0x1e5ae6),this['_checkSuggestionCorrectness'](_0x1e5ae6,_0x3ffd43,_0x4439f3||null,_0x272dca),_0x1e5ae6['createdAt']=_0x3475b5['createdAt'],_0x1e5ae6['_isDataLoaded']=!0x0,_0x1b5849&&_0x1b5849['@external']){const _0x409d85=_0x1b5849['@external'],_0x4ca5d2=this['_getExternalAuthor'](_0x409d85['authorName']);_0x1e5ae6['authoredAt']=_0x409d85['createdAt'],_0x1e5ae6['author']=_0x4ca5d2,_0x1e5ae6['isExternal']=!0x0;}else _0x1e5ae6['authoredAt']=_0x3475b5['createdAt'];switch(_0x3475b5['data']&&(_0x1e5ae6['data']=_0x3475b5['data']),_0x3475b5['attributes']&&(_0x1e5ae6['attributes']=_0x3475b5['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1e5ae6['_saved']=!0x0),this['_suggestionState']['get'](_0x1e5ae6)){case'notReady':this['_suggestionState']['set'](_0x1e5ae6,'dataReady');break;case'markerReady':_0x1e5ae6['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1e5ae6])),this['_refreshSuggestionsChain'](new Set([_0x1e5ae6])),this['_suggestionState']['set'](_0x1e5ae6,'ready'),this['fire']('suggestionLoaded',_0x1e5ae6)):this['_suggestionState']['set'](_0x1e5ae6,'removed');}return _0x1e5ae6;}['acceptSuggestion'](_0x4c35a1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2bf6b7 of _0x4c35a1['getAllAdjacentSuggestions']())_0x2bf6b7['accept']();});});}['discardSuggestion'](_0x209537){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x27c550 of _0x209537['getAllAdjacentSuggestions']())_0x27c550['discard']();});});}['enableCommand'](_0x9e312b,_0x12786a){const _0x1c2739=this['editor']['commands']['get'](_0x9e312b);if(!_0x1c2739)throw new _0x337eb4('track-changes-command-not-found',this,{'commandName':_0x9e312b});if(this['_enabledCommands']['has'](_0x1c2739))throw new _0x337eb4('track-changes-enable-command-twice',this,{'commandName':_0x9e312b});this['_enabledCommands']['add'](_0x1c2739),_0x12786a&&_0x1c2739['on']('execute',(_0x2bbe7f,_0x584480)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x584480['length']>0x0&&_0x584480[_0x584480['length']-0x1]&&_0x584480[_0x584480['length']-0x1]['forceDefaultExecution']?_0x584480['pop']():(_0x2bbe7f['return']=_0x12786a((..._0x1cc7ec)=>_0x1c2739['execute'](..._0x1cc7ec,{'forceDefaultExecution':!0x0}),..._0x584480),_0x2bbe7f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x49a390){let _0x3006fc,_0x20a702;const _0x119846=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3006fc=_0x49a390();}catch(_0xb30da9){_0x20a702=_0xb30da9;}return _0x119846||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x20a702&&_0x337eb4['rethrowUnexpectedError'](_0x20a702,this),_0x3006fc;}['markInsertion'](_0x4c5704,_0x2c2331=null,_0x4910f4={}){if(_0x4c5704['isCollapsed'])return null;const _0x43be9b=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x4910f4['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x158487,meta:_0x28da25}of this['_findSuggestions'](_0x4c5704,'insertion'))if(_0x28da25['isOwn']){if(!_0x28da25['isNextTo']){if(_0x28da25['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x158487,_0x4910f4))continue;return _0x158487;}if(Xt(_0x158487,_0x4910f4))return _0x158487;this['_breakSuggestionMarker'](_0x158487,_0x4c5704['start'],_0x4c5704['end']);break;}if(_0x2c2331==_0x158487['subType']&&Xt(_0x158487,_0x4910f4)){const _0x56289d=_0x158487['getFirstRange']();return _0x56289d['start']['isEqual'](_0x4c5704['end'])?this['_setSuggestionRange'](_0x158487,this['_model']['createRange'](_0x4c5704['start'],_0x56289d['end'])):this['_setSuggestionRange'](_0x158487,this['_model']['createRange'](_0x56289d['start'],_0x4c5704['end'])),_0x158487;}}const _0x160148=_0x57604c(),_0x4f4066=_0x43be9b['id'],_0x214917=_0x2c2331?'insertion:'+_0x2c2331:'insertion',_0x56e43d=this['_setSuggestionData']({'id':_0x160148,'type':_0x214917,'createdAt':new Date(),'authorId':_0x4f4066,'attributes':_0x4910f4});return this['_addSuggestionMarker'](_0x214917,_0x160148,_0x4f4066,_0x4c5704),_0x56e43d;}['markMultiRangeInsertion'](_0x5cd443,_0x5f5dfc='multi',_0x2d83d3={}){const _0x1c0b2c=this['editor']['plugins']['get']('Users')['me'],_0x10b3de=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5f5dfc,'join');this['_trackingSessionId']&&(_0x2d83d3['trackingSessionId']=this['_trackingSessionId']);for(const _0xe76ab9 of this['getSuggestions']())if(_0xe76ab9['author']['id']==_0x1c0b2c['id']&&'insertion'==_0xe76ab9['type']&&_0xe76ab9['subType']==_0x5f5dfc&&Xt(_0xe76ab9,_0x2d83d3)&&(_0x10b3de(_0xe76ab9['getRanges'](),_0x5cd443)||_0x10b3de(_0x5cd443,_0xe76ab9['getRanges']()))){for(const _0x300638 of _0x5cd443)_0xe76ab9['addRange'](_0x300638);return _0xe76ab9;}for(const {suggestion:_0x557742,meta:_0x1461c6}of this['_findSuggestions'](_0x5cd443,'insertion')){if(!_0x1461c6['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1461c6['containsRangeInObject'])continue;if(!Xt(_0x557742,_0x2d83d3))continue;let _0x5e6b7a=!0x0;for(const _0x167125 of _0x557742['getRanges']())for(const _0x9c3b5d of _0x5cd443)if(!_0x167125['containsRange'](_0x9c3b5d)){_0x5e6b7a=!0x1;break;}if(_0x5e6b7a)return _0x557742;}const _0x3e4377=_0x57604c(),_0x4adf94=_0x1c0b2c['id'],_0x26b3b8='insertion:'+_0x5f5dfc,_0x1767a1=this['_setSuggestionData']({'id':_0x3e4377,'type':_0x26b3b8,'createdAt':new Date(),'authorId':_0x4adf94,'attributes':_0x2d83d3});for(const _0x12ab14 of _0x5cd443)this['_addSuggestionMarker'](_0x26b3b8,_0x3e4377,_0x4adf94,_0x12ab14,T['getMultiRangeId']());return _0x1767a1;}['markInlineFormat'](_0x18b45f,_0x4661bc,_0x2b9f76=null,_0x1cddb7={}){if(_0x2b9f76=_0x2b9f76||Lt(_0x4661bc),_0x18b45f['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x1cddb7['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x30ebd4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2b9f76,'accept');return this['forceDefaultExecution'](()=>_0x30ebd4([_0x18b45f],_0x4661bc,_0x1cddb7)),null;}const _0x1caf32=this['editor']['plugins']['get']('Users')['me'],_0x5bc2f8=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x299945,meta:_0x1b1b12}of this['_findSuggestions'](_0x18b45f,'insertion'))_0x1b1b12['isOwn']&&!_0x1b1b12['isInsideObject']&&_0x5bc2f8['push'](..._0x299945['getRanges']());}const _0x2592ee=function(_0x3ca2ed,_0x5f5a41){const _0x37aa65=[];for(const _0x1d6b50 of _0x5f5a41){const _0xb2b87=_0x3ca2ed['getIntersection'](_0x1d6b50);_0xb2b87&&_0x37aa65['push'](_0xb2b87);}return _0x37aa65;}(_0x18b45f,_0x5bc2f8),_0x4e65c9=function(_0xa2ab89,_0x345ed9){const _0x510e87=[_0xa2ab89];for(const _0xf2c8f8 of _0x345ed9){let _0x181d4c=0x0;for(;_0x181d4c<_0x510e87['length'];){const _0x49833b=_0x510e87[_0x181d4c]['getDifference'](_0xf2c8f8);_0x510e87['splice'](_0x181d4c,0x1,..._0x49833b),_0x181d4c+=_0x49833b['length'];}}return _0x510e87;}(_0x18b45f,_0x5bc2f8);_0x2592ee['length']&&this['_model']['change'](()=>{for(const _0x394656 of _0x2592ee){const _0x1bb6a8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2b9f76,'accept');this['forceDefaultExecution'](()=>_0x1bb6a8([_0x394656],_0x4661bc,_0x1cddb7));}});for(const _0x28d805 of _0x4e65c9){let _0xcd9309=null,_0x402cd1=_0x28d805['start'],_0x688078=_0x28d805['end'];for(const {suggestion:_0x441dd5,meta:_0x198d75}of this['_findSuggestions'](_0x28d805,'formatInline')){if(!_0x198d75['isOwn'])continue;if(_0x441dd5['subType']!=_0x2b9f76)continue;if(!Xt(_0x441dd5,_0x1cddb7))continue;const _0x1c1487=_0x441dd5['getFirstRange']();if(_0x1c1487['containsRange'](_0x28d805,!0x0))return null;_0x402cd1=_0x402cd1['isBefore'](_0x1c1487['start'])?_0x402cd1:_0x1c1487['start'],_0x688078=_0x688078['isAfter'](_0x1c1487['end'])?_0x688078:_0x1c1487['end'],_0xcd9309?_0x1c1487['start']['isBefore'](_0xcd9309['getFirstRange']()['start'])?(_0xcd9309['removeMarkers'](),_0xcd9309=_0x441dd5):_0x441dd5['removeMarkers']():_0xcd9309=_0x441dd5;}const _0x57da93=this['_model']['createRange'](_0x402cd1,_0x688078);if(_0xcd9309)this['_setSuggestionRange'](_0xcd9309,_0x57da93);else{const _0x286352=_0x57604c(),_0xdc5c23=_0x1caf32['id'];this['_setSuggestionData']({'id':_0x286352,'type':'formatInline:'+_0x2b9f76,'data':_0x4661bc,'createdAt':new Date(),'authorId':_0xdc5c23,'attributes':_0x1cddb7}),this['_addSuggestionMarker']('formatInline:'+_0x2b9f76,_0x286352,_0xdc5c23,_0x57da93);}}return null;}['markBlockFormat'](_0x4c71be,_0x2ef60e,_0x1f2a87=[],_0xe9a45c=null,_0x4f7e7f={}){_0x2ef60e['formatGroupId']||(_0x2ef60e['formatGroupId']=_0x2ef60e['commandName']),_0x2ef60e['multipleBlocks']=_0x4c71be['is']('range'),_0xe9a45c=_0xe9a45c||Lt(_0x2ef60e);const _0x4700f1=_0x1f2a87['map'](_0xf13fd6=>zt(_0xf13fd6,this['_model'])),_0x215b21=_0x4c71be['is']('range')?_0x4c71be:zt(_0x4c71be,this['_model']);if(this['_trackingSessionId']&&(_0x4f7e7f['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2fd2d0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xe9a45c,'accept');return this['forceDefaultExecution'](()=>_0x2fd2d0([_0x215b21],_0x2ef60e,_0x4f7e7f)),null;}_0x4700f1['push'](_0x215b21);let _0xf99ef0=!0x0;for(const _0x7b7186 of _0x4700f1)if(!this['_rangeIsInLocalUserInsertion'](_0x7b7186)){_0xf99ef0=!0x1;break;}if(_0xf99ef0&&'always'!==this['_trackFormatChanges']){const _0x569bd8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xe9a45c,'accept');return this['forceDefaultExecution'](()=>_0x569bd8([_0x215b21],_0x2ef60e,_0x4f7e7f)),null;}let _0xbc16d=null,_0x351fba=_0x215b21['start'],_0x3dc9ed=_0x215b21['end'];for(const {suggestion:_0x4b4eb6,meta:_0x56bc79}of this['_findSuggestions'](_0x215b21,'formatBlock')){if(!_0x56bc79['isOwn'])continue;if(_0x56bc79['isNextTo']||_0x56bc79['containsRangeInObject']||_0x56bc79['isInsideObject'])continue;if(_0x4b4eb6['data']['formatGroupId']!=_0x2ef60e['formatGroupId'])continue;if(!Xt(_0x4b4eb6,_0x4f7e7f))continue;const _0x23d262=_0x4b4eb6['getFirstRange']();if(_0x4b4eb6['subType']==_0xe9a45c){if(_0x23d262['containsRange'](_0x215b21,!0x0))return null;_0x351fba=_0x351fba['isBefore'](_0x23d262['start'])?_0x351fba:_0x23d262['start'],_0x3dc9ed=_0x3dc9ed['isAfter'](_0x23d262['end'])?_0x3dc9ed:_0x23d262['end'],_0xbc16d?_0x23d262['start']['isBefore'](_0xbc16d['getFirstRange']()['start'])?(_0xbc16d['removeMarkers'](),_0xbc16d=_0x4b4eb6):_0x4b4eb6['removeMarkers']():_0xbc16d=_0x4b4eb6;}else{const _0x248c61=_0x215b21['getIntersection'](_0x23d262);this['_cutOutSuggestionMarker'](_0x4b4eb6,_0x248c61);}}const _0xc3f459=this['editor']['plugins']['get']('Users')['me'],_0x547eb9=_0x57604c(),_0x351b9f=_0xc3f459['id'];if(_0xbc16d)return this['_setSuggestionRange'](_0xbc16d,this['_model']['createRange'](_0x351fba,_0x3dc9ed)),_0xbc16d;{const _0xbd34a8=this['_setSuggestionData']({'id':_0x547eb9,'type':'formatBlock:'+_0xe9a45c,'data':_0x2ef60e,'createdAt':new Date(),'authorId':_0x351b9f,'attributes':_0x4f7e7f});return this['_addSuggestionMarker']('formatBlock:'+_0xe9a45c,_0x547eb9,_0x351b9f,this['_model']['createRange'](_0x351fba,_0x3dc9ed)),_0xbd34a8;}}['markMultiRangeBlockFormat'](_0x4d8c86,_0x1fffc8,_0x4d2db9=[],_0x5b02df=null,_0xeee544={}){_0x1fffc8['formatGroupId']||(_0x1fffc8['formatGroupId']=_0x1fffc8['commandName']);const _0x434335=_0x4d8c86[0x0];_0x1fffc8['multipleBlocks']=_0x434335['is']('range'),_0x5b02df=_0x5b02df||Lt(_0x1fffc8);const _0x1e10d4=_0x4d2db9['map'](_0x433128=>zt(_0x433128,this['_model'])),_0x3fd764=_0x434335['is']('range')?_0x4d8c86:_0x4d8c86['map'](_0x20d11b=>zt(_0x20d11b,this['_model']));if(this['_trackingSessionId']&&(_0xeee544['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2ebf91=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5b02df,'accept');return this['forceDefaultExecution'](()=>_0x2ebf91(_0x3fd764,_0x1fffc8,_0xeee544)),null;}_0x1e10d4['push'](..._0x3fd764);let _0x260409=!0x0;for(const _0xa0fbf4 of _0x1e10d4)if(!this['_rangeIsInLocalUserInsertion'](_0xa0fbf4)){_0x260409=!0x1;break;}if(_0x260409&&'always'!==this['_trackFormatChanges']){const _0x27b00a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5b02df,'accept');return this['forceDefaultExecution'](()=>_0x27b00a(_0x3fd764,_0x1fffc8,_0xeee544)),null;}const _0x4ec477=this['editor']['plugins']['get']('Users')['me'];for(const _0x4f1e23 of this['getSuggestions']()){const _0x31db98=_0x4f1e23['data'];if(_0x4f1e23['author']['id']!=_0x4ec477['id'])continue;if('formatBlock'!=_0x4f1e23['type']||_0x31db98['formatGroupId']!=_0x1fffc8['formatGroupId'])continue;if(!Xt(_0x4f1e23,_0xeee544))continue;const _0x5baaef=_0x4f1e23['subType']==_0x5b02df;for(let _0x45659a=0x0;_0x45659a<_0x3fd764['length'];_0x45659a++){const _0x14dd19=_0x3fd764[_0x45659a];for(const _0x502373 of _0x4f1e23['getMarkers']()){const _0x208f5d=_0x502373['getRange']();if(_0x14dd19['isEqual'](_0x208f5d)){_0x5baaef?(_0x3fd764['splice'](_0x45659a,0x1),_0x45659a--):_0x4f1e23['removeMarker'](_0x502373['name']);break;}}}}if(0x0==_0x3fd764['length'])return null;const _0x20bff1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5b02df,'join');for(const _0x397ca4 of this['getSuggestions']()){const _0x1bc36c=_0x397ca4['data'];if(_0x397ca4['author']['id']==_0x4ec477['id']&&('formatBlock'==_0x397ca4['type']&&_0x1bc36c['formatGroupId']==_0x1fffc8['formatGroupId']&&_0x397ca4['subType']==_0x5b02df&&Xt(_0x397ca4,_0xeee544)&&(_0x20bff1(_0x397ca4['getRanges'](),_0x3fd764)||_0x20bff1(_0x3fd764,_0x397ca4['getRanges']())))){for(const _0x436d35 of _0x3fd764)_0x397ca4['addRange'](_0x436d35);return _0x397ca4;}}const _0x3d067e=_0x57604c(),_0x4425cd=_0x4ec477['id'],_0x135d3f='formatBlock:'+_0x5b02df,_0x573c77=this['_setSuggestionData']({'id':_0x3d067e,'type':_0x135d3f,'data':_0x1fffc8,'createdAt':new Date(),'authorId':_0x4425cd,'attributes':_0xeee544});for(const _0x4c9e8a of _0x3fd764)this['_addSuggestionMarker'](_0x135d3f,_0x3d067e,_0x4425cd,_0x4c9e8a,T['getMultiRangeId']());return _0x573c77;}['markDeletion'](_0x314d6f,_0x406734=null,_0x1f3dfe={}){if(_0x314d6f['isCollapsed'])return null;const _0x26c44e=this['editor']['plugins']['get']('Users')['me'],_0x1101bc=new _0x4451e6(_0x314d6f['start'],_0x314d6f['end']);this['_trackingSessionId']&&(_0x1f3dfe['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x477198,meta:_0x4f604a}of this['_findSuggestions'](_0x1101bc,'insertion'))if(_0x4f604a['isOwn']&&!_0x4f604a['isNextTo']){if(_0x477198['isMultiRange']){const _0x36a5d7=_0x477198['getRanges']()['filter'](_0x49773c=>'$graveyard'!=_0x49773c['root']['rootName']);_0x36a5d7['every'](_0x90695c=>_0x1101bc['containsRange'](_0x90695c,!0x0))&&_0x477198['discard']();if(_0x36a5d7['some'](_0x5ad780=>_0x5ad780['containsRange'](_0x1101bc,!0x0))){const _0x422ad1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x406734,'accept');return this['forceDefaultExecution'](()=>_0x422ad1([_0x1101bc],null,_0x1f3dfe)),null;}}else{const _0x4397f6=_0x1101bc['getIntersection'](_0x477198['getFirstRange']());null!==_0x4397f6&&_0x477198['_onDiscard']([_0x4397f6],null,_0x1f3dfe);}}if(_0x1101bc['detach'](),_0x1101bc['isCollapsed']||'$graveyard'==_0x1101bc['root']['rootName'])return null;let _0x1ee224=null,_0x276aa0=_0x1101bc['start'],_0x50e29d=_0x1101bc['end'];const _0x3f30ea=this['_findSuggestions'](_0x1101bc,'deletion');for(const {suggestion:_0x2102b9,meta:_0x259d4f}of _0x3f30ea){const _0x441b7e=this['_model']['createRange'](_0x276aa0,_0x50e29d);if(_0x259d4f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x259d4f['containsRangeInObject']&&!_0x259d4f['isInsideObject'])){if(_0x2102b9['isMultiRange']){if(!Xt(_0x2102b9,_0x1f3dfe))continue;let _0x30b57a=!0x0;for(const _0x1e086c of _0x2102b9['getRanges']()){if(_0x1e086c['containsRange'](_0x441b7e,!0x0))return _0x2102b9;_0x441b7e['containsRange'](_0x1e086c)||(_0x30b57a=!0x1);}_0x30b57a&&_0x2102b9['discard']();}else{const _0x40d9da=_0x2102b9['getFirstRange']();if(_0x40d9da['containsRange'](_0x441b7e,!0x0))return _0x2102b9;if(!Xt(_0x2102b9,_0x1f3dfe)){_0x441b7e['containsRange'](_0x40d9da)?_0x2102b9['removeMarkers']():_0x40d9da['containsPosition'](_0x276aa0)?_0x276aa0=_0x40d9da['end']:_0x40d9da['containsPosition'](_0x50e29d)&&(_0x50e29d=_0x40d9da['start']);continue;}_0x276aa0=_0x276aa0['isBefore'](_0x40d9da['start'])?_0x276aa0:_0x40d9da['start'],_0x50e29d=_0x50e29d['isAfter'](_0x40d9da['end'])?_0x50e29d:_0x40d9da['end'],_0x1f3dfe=Object['assign']({},_0x2102b9['attributes']),_0x1ee224?_0x40d9da['start']['isBefore'](_0x1ee224['getFirstRange']()['start'])?(_0x1ee224['removeMarkers'](),_0x1ee224=_0x2102b9):_0x2102b9['removeMarkers']():_0x1ee224=_0x2102b9;}}}if(_0x1ee224)return this['_setSuggestionRange'](_0x1ee224,this['_model']['createRange'](_0x276aa0,_0x50e29d)),_0x1ee224;{const _0x275bc4=_0x57604c(),_0x5a637f=this['_model']['createRange'](_0x276aa0,_0x50e29d),_0x59db27=_0x26c44e['id'],_0x36a3b0=_0x406734?'deletion:'+_0x406734:'deletion',_0x11bda8=this['_setSuggestionData']({'id':_0x275bc4,'type':_0x36a3b0,'createdAt':new Date(),'authorId':_0x59db27,'attributes':_0x1f3dfe});return this['_addSuggestionMarker'](_0x36a3b0,_0x275bc4,_0x59db27,_0x5a637f),_0x11bda8;}}['markMultiRangeDeletion'](_0x468e40,_0x42c2cf='multi',_0x2e0fc5={}){const _0x1feb58=this['editor']['plugins']['get']('Users')['me'],_0x2409aa=_0x468e40['map'](_0x4c12d7=>new _0x4451e6(_0x4c12d7['start'],_0x4c12d7['end'])),_0x15ad02=new Set();this['_trackingSessionId']&&(_0x2e0fc5['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x21330f,meta:_0xa62527}of this['_findSuggestions'](_0x2409aa,'insertion'))_0xa62527['isOwn']&&!_0xa62527['isNextTo']&&_0x15ad02['add'](_0x21330f);for(const _0xa402f3 of _0x15ad02)if(_0xa402f3['isMultiRange']){const _0xe0fe3b=_0xa402f3['getRanges']();(!_0xa402f3['attributes']||!_0xa402f3['attributes']['skipNestingCheck'])&&(_0xe0fe3b['every'](_0x4cf003=>_0x2409aa['some'](_0xd3531f=>_0xd3531f['containsRange'](_0x4cf003,!0x0)))&&_0xa402f3['discard']());if(_0x2409aa['every'](_0x366548=>_0xe0fe3b['some'](_0x1abe16=>_0x1abe16['containsRange'](_0x366548,!0x0)))){const _0x3f27db=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x42c2cf,'accept');return this['forceDefaultExecution'](()=>_0x3f27db(_0x468e40,null,_0x2e0fc5)),null;}}else{const _0x1a707c=_0xa402f3['getFirstRange']();_0x2409aa['some'](_0x4a6b4c=>_0x4a6b4c['containsRange'](_0x1a707c,!0x0))&&_0xa402f3['discard']();if(_0x2409aa['every'](_0x4de60a=>_0x1a707c['containsRange'](_0x4de60a,!0x0))){const _0x4a4c31=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x42c2cf,'accept');return this['forceDefaultExecution'](()=>_0x4a4c31(_0x2409aa,null,_0x2e0fc5)),null;}}const _0x336243=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x42c2cf,'join');let _0x38166c=null;for(const _0x5600a3 of this['getSuggestions']())if(_0x5600a3['author']['id']==_0x1feb58['id']&&_0x5600a3['isInContent']&&'deletion'==_0x5600a3['type']&&_0x5600a3['subType']==_0x42c2cf&&Xt(_0x5600a3,_0x2e0fc5)&&(_0x336243(_0x5600a3['getRanges'](),_0x2409aa)||_0x336243(_0x2409aa,_0x5600a3['getRanges']()))){if(_0x38166c){if(_0x5600a3['commentThread']&&_0x5600a3['commentThread']['length'])continue;for(const _0x56972e of _0x5600a3['getRanges']())_0x38166c['isIntersectingWithRange'](_0x56972e)||_0x38166c['addRange'](_0x56972e);_0x5600a3['removeMarkers']();}else{_0x38166c=_0x5600a3;for(const _0x4dfb1b of _0x2409aa)_0x5600a3['isIntersectingWithRange'](_0x4dfb1b)||_0x5600a3['addRange'](_0x4dfb1b);}}if(_0x38166c)return _0x38166c;_0x15ad02['clear']();for(const {suggestion:_0x449b94,meta:_0x13b44f}of this['_findSuggestions'](_0x2409aa,'deletion'))_0x13b44f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x13b44f['containsRangeInObject']&&!_0x13b44f['isInsideObject'])&&Xt(_0x449b94,_0x2e0fc5)&&_0x15ad02['add'](_0x449b94);for(const _0x22ff8e of _0x15ad02){const _0x2e880a=_0x22ff8e['getRanges']();if(!_0x2e0fc5||!_0x2e0fc5['skipNestingCheck']){if(_0x2409aa['every'](_0x9b956b=>_0x2e880a['some'](_0x1b7004=>_0x1b7004['containsRange'](_0x9b956b,!0x0))))return _0x22ff8e;}(!_0x22ff8e['attributes']||!_0x22ff8e['attributes']['skipNestingCheck'])&&(_0x2e880a['every'](_0x37c331=>_0x2409aa['some'](_0x5ae780=>_0x5ae780['containsRange'](_0x37c331,!0x0)))&&_0x22ff8e['discard']());}const _0x5a5708=_0x57604c(),_0x306ed5=_0x1feb58['id'],_0xcb1e7a='deletion:'+_0x42c2cf,_0x2c924d=this['_setSuggestionData']({'id':_0x5a5708,'type':_0xcb1e7a,'createdAt':new Date(),'authorId':_0x306ed5,'attributes':_0x2e0fc5});for(const _0x3e24d3 of _0x2409aa)_0x3e24d3['detach'](),_0x3e24d3['isCollapsed']||'$graveyard'==_0x3e24d3['root']['rootName']||this['_addSuggestionMarker'](_0xcb1e7a,_0x5a5708,_0x306ed5,_0x3e24d3,T['getMultiRangeId']());return _0x2c924d;}['markAttributeChange'](_0x5484d9,_0x5ed06e,_0x5f2d09,_0x16277e,_0x16fe10){if(_0x5484d9['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x37dfeb=this['editor']['plugins']['get']('Users')['me']['id'],_0x50b00f=Array['from'](this['_suggestions']['values']())['filter'](_0x5344fc=>'attribute'==_0x5344fc['type']&&_0x5344fc['data']['key']==_0x5ed06e&&_0x5344fc['isIntersectingWithRange'](_0x5484d9));if(this['_trackingSessionId']&&(_0x16fe10['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x106c98=this['_findSuggestions'](_0x5484d9,'insertion')['filter'](({meta:_0x2e612b})=>_0x2e612b['isOwn']&&!_0x2e612b['isInsideObject']&&!_0x2e612b['isNextTo'])['map'](({suggestion:_0x2e70fe})=>_0x2e70fe);_0x50b00f['unshift'](..._0x106c98);}const _0x1f7d77=new Map([[_0x5484d9,_0x5f2d09]]);for(const _0x4fe578 of _0x50b00f){const _0x4bf38e='attribute'==_0x4fe578['type']?_0x4fe578['data']['oldValue']:void 0x0,_0x3df059=_0x4fe578['getFirstRange'](),_0x91dc92=Array['from'](_0x1f7d77['keys']())['find'](_0x3e68ff=>_0x3e68ff['isIntersecting'](_0x3df059));if(!_0x91dc92)continue;const _0x53000f=_0x91dc92['getDifference'](_0x3df059);this['_isBlockAttribute'](_0x5ed06e)&&'insertion'==_0x4fe578['type']&&0x0!=_0x53000f['length']||(_0x1f7d77['delete'](_0x91dc92),_0x53000f['forEach'](_0xb9371e=>{_0x1f7d77['set'](_0xb9371e,_0x5f2d09);}),'insertion'!=_0x4fe578['type']&&_0x4bf38e!=_0x16277e&&_0x1f7d77['set'](_0x91dc92['getIntersection'](_0x3df059),_0x4bf38e));}const _0x2c56d3=[];for(const [_0x1eb79c,_0x19f004]of _0x1f7d77){const _0x1ba846=_0x57604c(),_0x29b285={'key':_0x5ed06e,'oldValue':_0x19f004,'newValue':_0x16277e};_0x5ed06e['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':_0x5ed06e});const _0x4e7746=('attribute:'+(_0x5ed06e+'|'+Lt({'newValue':_0x16277e})))['substring'](0x0,0x3c),_0xf764ba=this['_setSuggestionData']({'id':_0x1ba846,'type':_0x4e7746,'data':_0x29b285,'createdAt':new Date(),'authorId':_0x37dfeb,'attributes':_0x16fe10});_0x2c56d3['push'](_0xf764ba),this['_addSuggestionMarker'](_0x4e7746,_0x1ba846,_0x37dfeb,_0x1eb79c);}return _0x2c56d3;}['enableDefaultAttributesIntegration'](_0x4b031b){this['enableCommand'](_0x4b031b,(_0x25aa1d,..._0x44f75f)=>{this['recordAttributeChanges'](()=>{_0x25aa1d(..._0x44f75f);});});}['registerBlockAttribute'](_0x368e9d){this['_blockAttributeKeys']['add'](_0x368e9d);}['registerInlineAttribute'](_0x3cdff6){this['_inlineAttributeKeys']['add'](_0x3cdff6);}['startTrackingSession'](_0x4d8f6e){return this['_trackingSessionId']=void 0x0!==_0x4d8f6e?_0x4d8f6e:_0x57604c(),this['_trackingSessionId'];}['_getAttributeKey'](_0x4626f3){return'attribute'==_0x4626f3['type']?_0x4626f3['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x31041e,_0x5072d3){const _0x25c2b7=_0x31041e['getFirstMarker']();this['_model']['change'](_0x2eefc2=>{_0x2eefc2['updateMarker'](_0x25c2b7,{'range':_0x5072d3});});}['_addThreadToSuggestion'](_0x19e984){const _0x157c77=_0x19e984['id'],_0x5c002a=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x157c77)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5c002a,'threadId':_0x157c77,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3b7350=this['_commentsRepository']['getCommentThread'](_0x157c77);_0x3b7350['unbind']('isRemovable'),_0x3b7350['isRemovable']=!0x1,_0x19e984['commentThread']=_0x3b7350;}['_checkSuggestionCorrectness'](_0x535e78,_0x2f2908,_0x5ba949,_0x38c546){if(_0x535e78['type']!=_0x2f2908||_0x535e78['subType']!=_0x5ba949||_0x535e78['creator']['id']!=_0x38c546)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x337eb4('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x442f56,_0x32f075){const _0x377777=_0x442f56['getFirstRange']();if(_0x32f075['isEqual'](_0x377777))_0x442f56['removeMarkers']();else{if(_0x377777['containsRange'](_0x32f075)){const _0x467905=this['_model']['createPositionAt'](_0x32f075['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x442f56,this['_model']['createRange'](_0x377777['start'],_0x467905));const _0xda6e4d=_0x57604c(),_0x21c44a=_0x442f56['creator']['id'],_0x528dcb=_0x442f56['type']+':'+_0x442f56['subType'];this['_setSuggestionData']({'id':_0xda6e4d,'type':_0x528dcb,'createdAt':new Date(),'authorId':_0x21c44a,'data':_0x442f56['data'],'attributes':_0x442f56['attributes']});const _0x3b97a4=this['_model']['createPositionAt'](_0x32f075['end']['parent'],'after'),_0x820d4b=this['_model']['createRange'](_0x3b97a4,_0x377777['end']);this['_addSuggestionMarker'](_0x528dcb,_0xda6e4d,_0x21c44a,_0x820d4b);}else{if(_0x377777['containsPosition'](_0x32f075['start'])){const _0x1c5243=this['_model']['createPositionAt'](_0x32f075['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x442f56,this['_model']['createRange'](_0x377777['start'],_0x1c5243));}else{const _0x2f37f0=this['_model']['createPositionAt'](_0x32f075['end']['parent'],'after');this['_setSuggestionRange'](_0x442f56,this['_model']['createRange'](_0x2f37f0,_0x377777['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1913fd){for(const {suggestion:_0x314a4a,meta:_0x369695}of this['_findSuggestions'](_0x1913fd,'insertion')){if(!_0x369695['isOwn'])continue;const _0x2cc212=_0x314a4a['getRanges']();for(const _0x54cd60 of _0x2cc212)if(!_0x1913fd['getDifference'](_0x54cd60)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1fdc8f){const _0xf112fe=this['editor']['plugins']['get']('Users')['getUser'](_0x1fdc8f);if(!_0xf112fe)throw new _0x337eb4('track-changes-user-not-found',this);return _0xf112fe;}['_getExternalAuthor'](_0x44a4a7){const _0x52ee3e=this['editor']['plugins']['get']('Users'),_0x1f9158=_0x1f3607('external:'+_0x44a4a7),_0x243899=_0x52ee3e['getUser'](_0x1f9158);return _0x243899||_0x52ee3e['addUser']({'id':_0x1f9158,'name':_0x44a4a7});}['_createSuggestion'](_0x3093c1,_0x91d997,_0x428aae,_0x34ed53,_0x469048,_0x3ad185){const _0x4e3ba5=this['_getAuthorFromId'](_0x34ed53),_0x35d720=this['_suggestionFactory']['buildSuggestion'](_0x3093c1,_0x91d997,_0x428aae,_0x4e3ba5,_0x469048,_0x202d4b=>{this['_updateSuggestionData'](_0x428aae,{'attributes':_0x202d4b});const _0x26143f=this['getSuggestion'](_0x428aae);this['_joinWithAdjacentSuggestions'](new Set([_0x26143f])),this['_refreshSuggestionsChain'](new Set([_0x26143f]));},_0x3ad185);return this['listenTo'](_0x35d720,'accept',()=>{this['_updateSuggestionData'](_0x428aae,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x35d720,'discard',()=>{this['_updateSuggestionData'](_0x428aae,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x428aae,_0x35d720),this['_suggestionState']['set'](_0x35d720,'notReady'),_0x35d720;}['_splitMarkerName'](_0xa5a65f){const _0x4bd636=_0xa5a65f['split'](':');return{'group':_0x4bd636[0x0],'type':_0x4bd636[0x1],'subType':_0x4bd636['length']>=0x5?_0x4bd636[0x2]:null,'id':_0x4bd636['length']<0x5?_0x4bd636[0x2]:_0x4bd636[0x3],'authorId':_0x4bd636['length']<0x5?_0x4bd636[0x3]:_0x4bd636[0x4],'markerCount':0x6==_0x4bd636['length']?_0x4bd636[0x5]:null};}['_breakSuggestionMarker'](_0x4fd4f6,_0x5ec787,_0x2f8a9d){const _0x31ccec=_0x4fd4f6['getFirstRange'](),_0x2fddd6=_0x31ccec['start'],_0x55a79e=_0x31ccec['end'];this['_setSuggestionRange'](_0x4fd4f6,this['_model']['createRange'](_0x2fddd6,_0x5ec787));const _0x41ac6f=_0x57604c(),_0x18218f=_0x4fd4f6['creator']['id'],_0x502848=_0x4fd4f6['type']+(_0x4fd4f6['subType']?':'+_0x4fd4f6['subType']:'');this['_setSuggestionData']({'id':_0x41ac6f,'type':_0x502848,'createdAt':new Date(),'authorId':_0x18218f,'originalSuggestionId':_0x4fd4f6['_originalSuggestionId']||_0x4fd4f6['id'],'attributes':_0x4fd4f6['attributes'],'data':_0x4fd4f6['data']});const _0x56f6bb=this['_getAttributeKey'](_0x4fd4f6);('formatBlock'==_0x4fd4f6['type']||_0x56f6bb&&this['_isBlockAttribute'](_0x56f6bb))&&(_0x2f8a9d=this['_model']['createPositionBefore'](_0x2f8a9d['parent'])),this['_addSuggestionMarker'](_0x502848,_0x41ac6f,_0x18218f,this['_model']['createRange'](_0x2f8a9d,_0x55a79e));}['_findSuggestions'](_0x4fa197,_0x406cd7=null){const _0x330a63=[],_0x43d484=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4fa197)||(_0x4fa197=[_0x4fa197]);for(const _0x5ecd80 of this['getSuggestions']()){if(!_0x5ecd80['isInContent'])continue;if(_0x406cd7&&_0x5ecd80['type']!=_0x406cd7)continue;let _0x1bd80d=!0x1;for(const _0x3ded47 of _0x5ecd80['getRanges']()){for(const _0x44fd1c of _0x4fa197){const _0x120088=_0x44fd1c['start']['isEqual'](_0x3ded47['end'])||_0x44fd1c['end']['isEqual'](_0x3ded47['start']);if(_0x120088||_0x44fd1c['getIntersection'](_0x3ded47)){const _0x411e19=_0x44fd1c['containsRange'](_0x3ded47)&&Ft(this['_model']['schema'],_0x3ded47['start'],_0x44fd1c),_0x29ec1e=_0x3ded47['containsRange'](_0x44fd1c)&&Ft(this['_model']['schema'],_0x44fd1c['start'],_0x3ded47);_0x330a63['push']({'suggestion':_0x5ecd80,'meta':{'isOwn':_0x43d484==_0x5ecd80['author'],'isNextTo':_0x120088,'isInsideObject':_0x411e19,'containsRangeInObject':_0x29ec1e}}),_0x1bd80d=!0x0;break;}}if(_0x1bd80d)break;}}return _0x330a63;}['_addSuggestionMarker'](_0x414892,_0x145d59,_0x272eef,_0x4b0851,_0x1fa647){this['_model']['change'](_0x49202c=>{let _0x26ab9a='suggestion:'+_0x414892+':'+_0x145d59+':'+_0x272eef;_0x1fa647&&(_0x26ab9a=_0x26ab9a+':'+_0x1fa647),_0x49202c['addMarker'](_0x26ab9a,{'range':_0x4b0851,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5081aa){const _0x39aaa0=_0x5081aa['previous'],_0x4d3496=_0x5081aa['next'];_0x5081aa['previous']=null,_0x5081aa['next']=null,null!=_0x39aaa0&&_0x39aaa0['next']==_0x5081aa&&(_0x39aaa0['next']=_0x4d3496),null!=_0x4d3496&&_0x4d3496['previous']==_0x5081aa&&(_0x4d3496['previous']=_0x39aaa0),'ready'==this['_suggestionState']['get'](_0x5081aa)&&(this['_suggestionState']['set'](_0x5081aa,'removed'),this['fire']('suggestionUnloaded',_0x5081aa,_0x39aaa0,_0x4d3496));}['_setSuggestionData'](_0x43a67e){const _0x4d7dbe=_0x43a67e['id'],_0x3fcfaf=this['addSuggestionData'](_0x43a67e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5097c9=this['editor']['plugins']['get']('PendingActions'),_0x4d0c2e=_0x3fcfaf['hasComments'],_0x5d7661=_0x3fcfaf['subType']?_0x3fcfaf['type']+':'+_0x3fcfaf['subType']:_0x3fcfaf['type'],_0x12796a=this['editor']['locale'],_0x1f2513=_0x5097c9['add'](o(_0x12796a,'PENDING_ACTION_SUGGESTION')),_0x4c7663={'id':_0x4d7dbe,'type':_0x5d7661,'hasComments':_0x4d0c2e,'data':_0x43a67e['data']||null,'originalSuggestionId':_0x43a67e['originalSuggestionId']||null,'attributes':_0x3fcfaf['attributes']};this['_adapter']['addSuggestion'](_0x4c7663)['then'](_0x733407=>{_0x3fcfaf['_saved']=!0x0,_0x5097c9['remove'](_0x1f2513),_0x733407&&_0x733407['createdAt']&&(this['_suggestions']['get'](_0x4d7dbe)['createdAt']=_0x733407['createdAt']);})['catch'](_0x2dfcc4=>{throw _0x218c78('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3fcfaf['discard']();}),_0x3fcfaf['stopListening'](),this['_suggestions']['delete'](_0x3fcfaf['id']),this['_suggestionState']['delete'](_0x3fcfaf),_0x2dfcc4;});}return _0x3fcfaf;}['_isBlockAttribute'](_0x43a036){return this['_blockAttributeKeys']['has'](_0x43a036);}['_isInlineAttribute'](_0x5c3bb4){return this['_inlineAttributeKeys']['has'](_0x5c3bb4);}['_updateSuggestionData'](_0x2e6eb2,_0x5571c0){const _0x312359=this['editor']['plugins']['get']('PendingActions'),_0x70cc1d=this['getSuggestion'](_0x2e6eb2);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x70cc1d['_saved']){const _0x57e5b8=_0x312359['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2e6eb2,_0x5571c0)['then'](()=>{_0x312359['remove'](_0x57e5b8);});}else _0x70cc1d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2e6eb2,_0x5571c0);});}}['_getSuggestionData'](_0x267a53){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x337eb4('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x267a53);}['_handleNewSuggestionMarker'](_0x2312cf){const {id:_0x348a02,type:_0x4d0a03,subType:_0x129557,authorId:_0x5086fc}=this['_splitMarkerName'](_0x2312cf),_0x85dce7=this['_suggestions']['get'](_0x348a02)||this['_createSuggestion'](_0x4d0a03,_0x129557,_0x348a02,_0x5086fc,{});switch(this['_checkSuggestionCorrectness'](_0x85dce7,_0x4d0a03,_0x129557,_0x5086fc),this['_suggestionState']['get'](_0x85dce7)){case'notReady':this['_getSuggestionData'](_0x348a02)['then'](_0x4373e7=>{let _0x477c6b=Promise['resolve']();_0x4373e7['hasComments']&&(_0x477c6b=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x348a02})),_0x477c6b['then'](()=>{this['addSuggestionData'](_0x4373e7)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x85dce7,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x348a02,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x85dce7,'ready'),this['fire']('suggestionLoaded',_0x85dce7);break;case'ready':this['fire']('suggestionChanged',_0x85dce7);}return _0x85dce7['addMarkerName'](_0x2312cf),_0x85dce7;}['_refreshSuggestionsChain'](_0x1b1b03){const _0x1f7d16=Array['from'](_0x1b1b03),_0x58c9ae=_0x1f7d16['filter'](_0x58a0f6=>'attribute'==_0x58a0f6['type']);this['_refreshAttributeSuggestionsChain'](_0x58c9ae);const _0x2b0291=_0x1f7d16['filter'](_0x45b698=>!_0x45b698['isMultiRange']&&'attribute'!=_0x45b698['type']),_0x2ca0b0=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x420bb6=>!_0x420bb6['isMultiRange']&&'attribute'!=_0x420bb6['type']),_0x2e314d=_0x2ca0b0['filter'](_0x3f9272=>!_0x1b1b03['has'](_0x3f9272)),_0x2e11a0=new Map(_0x2ca0b0['map'](_0x5125ef=>[_0x5125ef,this['_suggestionFactory']['getSuggestionCallback'](_0x5125ef['type'],_0x5125ef['subType'],'chain')])),_0x4b0510=new Map(_0x2ca0b0['map'](_0x1e1def=>[_0x1e1def,_0x1e1def['getFirstRange']()])),_0x2d4cc8=new Set(),_0x26bece=new Set();for(let _0x56a07d=0x0;_0x56a07d<_0x2b0291['length'];_0x56a07d++)_0xcb0767(_0x2b0291[_0x56a07d],_0x2b0291,_0x56a07d+0x1);for(let _0x51105d=0x0;_0x51105d<_0x2b0291['length'];_0x51105d++)_0xcb0767(_0x2b0291[_0x51105d],_0x2e314d,0x0);const _0x28c04f=new Set();for(let _0x473f77=0x0;_0x473f77<_0x2b0291['length'];_0x473f77++){const _0xbec463=_0x2b0291[_0x473f77];!_0x26bece['has'](_0xbec463)&&_0xbec463['previous']&&(_0x28c04f['add'](_0xbec463['previous']),_0xbec463['previous']['next']===_0xbec463&&(_0xbec463['previous']['next']=null),_0xbec463['previous']=null),!_0x2d4cc8['has'](_0xbec463)&&_0xbec463['next']&&(_0x28c04f['add'](_0xbec463['next']),_0xbec463['next']['previous']===_0xbec463&&(_0xbec463['next']['previous']=null),_0xbec463['next']=null);}function _0xcb0767(_0x4ffac6,_0x3cedb7,_0x3ba27a){for(let _0x285dde=_0x3ba27a;_0x285dde<_0x3cedb7['length'];_0x285dde++){const _0x206f74=_0x1cbefa(_0x4ffac6,_0x3cedb7[_0x285dde]);_0x206f74&&(_0x206f74[0x0]['next']=_0x206f74[0x1],_0x206f74[0x1]['previous']=_0x206f74[0x0],_0x2d4cc8['add'](_0x206f74[0x0]),_0x26bece['add'](_0x206f74[0x1]));}}function _0x1cbefa(_0x4aa7b4,_0x114ef2){if(_0x4aa7b4['author']['id']!==_0x114ef2['author']['id'])return null;const _0x1fe3bd=_0x2e11a0['get'](_0x4aa7b4)(_0x4aa7b4,_0x114ef2,_0x4b0510['get'](_0x4aa7b4),_0x4b0510['get'](_0x114ef2));if(!_0x1fe3bd)return null;return _0x2e11a0['get'](_0x114ef2)(_0x4aa7b4,_0x114ef2,_0x4b0510['get'](_0x4aa7b4),_0x4b0510['get'](_0x114ef2))?_0x1fe3bd[0x1]['commentThread']&&_0x1fe3bd[0x1]['commentThread']['length']?null:_0x1fe3bd:null;}_0x28c04f['size']&&this['_refreshSuggestionsChain'](_0x28c04f);}['_refreshAttributeSuggestionsChain'](_0x46b760){if(0x0==_0x46b760['length'])return;const _0x15f082=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x184485=>'attribute'==_0x184485['type']&&_0x184485['_isDataLoaded']),_0x193a13=[],_0xe92a76=new Map();for(const _0x3a6656 of _0x15f082){const _0x36a0cd=_0x1f3607(_0x3a6656['attributes']);_0xe92a76['has'](_0x36a0cd)||(_0xe92a76['set'](_0x36a0cd,_0x193a13['length']),_0x193a13['push']([]));const _0x5e1bf3=_0xe92a76['get'](_0x36a0cd);_0x193a13[_0x5e1bf3]['push'](_0x3a6656);}!(function(){_0x193a13['sort']((_0xce4499,_0x5b97dc)=>{const _0xd535ab=_0xce4499[0x0]['createdAt'],_0x1ecf88=_0x5b97dc[0x0]['createdAt'];return _0xd535ab==_0x1ecf88?_0xce4499[0x0]['attributes']['groupId']<_0x5b97dc[0x0]['attributes']['groupId']?-0x1:0x1:_0xd535ab<_0x1ecf88?-0x1:0x1;});for(const _0x209269 of _0x193a13)_0x209269['sort']((_0x57a21b,_0x58709e)=>_0x57a21b['id']<_0x58709e['id']?-0x1:0x1);}());for(let _0x3eb767=0x0;_0x3eb767<_0x193a13['length'];_0x3eb767++){if(0x0==_0x193a13[_0x3eb767]['length'])continue;const _0x4d5123=[];for(let _0x2ae267=_0x3eb767+0x1;_0x2ae267<_0x193a13['length'];_0x2ae267++)0x0!=_0x193a13[_0x2ae267]['length']&&_0x4c3e33(_0x193a13[_0x3eb767],_0x193a13[_0x2ae267])&&_0x4d5123['push'](_0x2ae267);for(const _0x3f4462 of _0x4d5123)_0x193a13[_0x3eb767]=_0x193a13[_0x3eb767]['concat'](_0x193a13[_0x3f4462]),_0x193a13[_0x3f4462]=[];}for(const _0x52ca6f of _0x193a13)for(let _0x220210=0x0;_0x220210<_0x52ca6f['length'];_0x220210++){const _0x5d2157=_0x52ca6f[_0x220210+0x1]||null;_0x52ca6f[_0x220210]['next']!==_0x5d2157&&(_0x52ca6f[_0x220210]['next']=_0x5d2157);}for(const _0x992457 of _0x193a13)for(let _0x5c5386=0x0;_0x5c5386<_0x992457['length'];_0x5c5386++){const _0x17bf1e=_0x992457[_0x5c5386-0x1]||null;_0x992457[_0x5c5386]['previous']!==_0x17bf1e&&(_0x992457[_0x5c5386]['previous']=_0x17bf1e);}function _0x4c3e33(_0x4a162a,_0x2487d5){if(_0x4a162a[0x0]['attributes']['groupId']!==_0x2487d5[0x0]['attributes']['groupId']&&_0x4a162a[0x0]['author']!==_0x2487d5[0x0]['author'])return!0x1;if(!function(_0x25902b,_0xdbd8bf){if(!_0x25902b['hasComments']&&!_0xdbd8bf['hasComments'])return!0x0;if(_0x25902b['hasComments']&&_0xdbd8bf['hasComments'])return!0x1;if(_0x25902b['hasComments']&&_0xdbd8bf['createdAt']<_0x25902b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xdbd8bf['hasComments']&&_0x25902b['createdAt']<_0xdbd8bf['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4a162a[0x0],_0x2487d5[0x0]))return!0x1;const _0x47de12=Ut(_0x4a162a[0x0]['attributes'],['groupId','trackingSessionId']),_0x2959e8=Ut(_0x2487d5[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x3d59cf(_0x47de12,_0x2959e8))return!0x1;if(_0x4a162a[0x0]['attributes']['groupId']==_0x2487d5[0x0]['attributes']['groupId'])return!0x0;if(_0x4a162a[0x0]['attributes']['trackingSessionId']!==_0x2487d5[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x4a162a['every'](_0x501ddf=>_0x2487d5['some'](_0x34db92=>_0x501ddf['getFirstRange']()['isEqual'](_0x34db92['getFirstRange']())))&&_0x2487d5['every'](_0x41458a=>_0x4a162a['some'](_0x425cc6=>_0x41458a['getFirstRange']()['isEqual'](_0x425cc6['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4d18a0){const _0x2fc88f=Array['from'](_0x4d18a0),_0x37ccd5=this['getSuggestions']({'skipNotAttached':!0x0}),_0x279fd5=_0x37ccd5['filter'](_0x2809ae=>!_0x4d18a0['has'](_0x2809ae)),_0x4745a2=new Map(_0x2fc88f['map'](_0x1a6831=>[_0x1a6831,this['_suggestionFactory']['getSuggestionCallback'](_0x1a6831['type'],_0x1a6831['subType'],'join')])),_0x1e8dc6=new Map(_0x37ccd5['map'](_0x2bb0ee=>[_0x2bb0ee,_0x2bb0ee['getRanges']()]));for(let _0x22b086=0x0;_0x22b086<_0x2fc88f['length'];_0x22b086++){if(_0x4ea0e5(this,_0x2fc88f[_0x22b086],_0x2fc88f,_0x22b086+0x1))return!0x0;}for(let _0x40b954=0x0;_0x40b954<_0x2fc88f['length'];_0x40b954++){if(_0x4ea0e5(this,_0x2fc88f[_0x40b954],_0x279fd5,0x0))return!0x0;}return!0x1;function _0x4ea0e5(_0x5459ca,_0x298ae2,_0x5c89e4,_0x485a70){for(let _0x7d9825=_0x485a70;_0x7d9825<_0x5c89e4['length'];_0x7d9825++){const _0x221b65=_0x5c89e4[_0x7d9825];if(_0x221b65['type']!==_0x298ae2['type']||_0x221b65['author']['id']!==_0x298ae2['author']['id']||_0x221b65['subType']!==_0x298ae2['subType'])continue;if(!Qt(_0x298ae2,_0x221b65))continue;if('attribute'==_0x298ae2['type']&&_0x298ae2['data']['oldValue']!=_0x221b65['data']['oldValue'])continue;if('attribute'==_0x298ae2['type']&&_0x5459ca['_isBlockAttribute'](_0x298ae2['data']['key']))continue;if('formatBlock'==_0x298ae2['type']){const _0x3b1022=_0x5459ca['editor']['model'],_0x50bbc5=_0x298ae2['getContainedElement']();if(_0x50bbc5&&(_0x3b1022['schema']['isObject'](_0x50bbc5)||_0x3b1022['schema']['isLimit'](_0x50bbc5)))continue;}const _0x557643=_0x4745a2['get'](_0x298ae2),_0x195bf4=_0x1e8dc6['get'](_0x298ae2),_0x12aef5=_0x1e8dc6['get'](_0x221b65),_0x3818c4=_0x298ae2['commentThread']&&_0x298ae2['commentThread']['length'],_0x3c93b6=_0x221b65['commentThread']&&_0x221b65['commentThread']['length'];if(!_0x3818c4&&_0x557643(_0x12aef5,_0x195bf4))return _0x5459ca['_joinSuggestions'](_0x221b65,_0x298ae2),_0x1e8dc6['delete'](_0x298ae2),!0x0;if(!_0x3c93b6&&_0x557643(_0x195bf4,_0x12aef5))return _0x5459ca['_joinSuggestions'](_0x298ae2,_0x221b65),_0x1e8dc6['delete'](_0x221b65),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3f82bc,_0x2b1cf1){if(_0x3f82bc['isMultiRange']){for(const _0x104b63 of _0x2b1cf1['getRanges']())_0x3f82bc['addRange'](_0x104b63);}else{const _0x41b2b6=_0x2b1cf1['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3f82bc,this['_model']['createRange'](_0x3f82bc['getFirstRange']()['start'],_0x41b2b6));}_0x2b1cf1['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2bf5d2,_0x456a36,_0x49f10f){const _0x4ce2bb=_0x2bf5d2['startsWith']('format')||_0x2bf5d2['startsWith']('attribute')?'FORMATTING':_0x2bf5d2['toUpperCase']();return o(this['editor']['locale'],_0x456a36+'_'+_0x4ce2bb+'_SUGGESTION_ANNOUNCEMENT',_0x49f10f);}['_initAriaMarkerChangeAnnouncements'](){const _0x52b146=this['editor'];if(!_0x52b146['ui'])return;const {ariaLiveAnnouncer:_0x127a7b}=_0x52b146['ui'];_0x353e4c(this['_model'],({left:_0x4cdf7e,entered:_0x5c9349})=>{for(const _0x22c917 of _0x4cdf7e){const {group:_0x558fd2,type:_0x3f2a0d}=this['_splitMarkerName'](_0x22c917['name']);if('suggestion'===_0x558fd2){_0x127a7b['announce'](this['_getMarkerAnnouncementText'](_0x3f2a0d,'LEAVE'));break;}}for(const _0x6b1ff0 of _0x5c9349){const {group:_0x2bb600,type:_0x3c161e}=this['_splitMarkerName'](_0x6b1ff0['name']);if('suggestion'===_0x2bb600){_0x127a7b['announce'](this['_getMarkerAnnouncementText'](_0x3c161e,'ENTER',_0x25637d(_0x4ba44d)));break;}}});}['_processAttributeChanges'](_0x23430d){if(this['_recordAttributeSuggestions'])return!0x1;const _0x45f33a=this['editor'],_0x18f190=_0x45f33a['model']['document']['differ']['getChanges']();if(0x0==_0x18f190['length'])return!0x1;const _0x3e32ae=[],_0x94dad9=_0x18f190['filter'](_0x2e8446=>'attribute'==_0x2e8446['type']),_0x7f02ae=_0x18f190['filter'](_0x54fa8f=>'insert'==_0x54fa8f['type']&&'$text'!=_0x54fa8f['name']),_0x6e3664=_0x18f190['filter'](_0x375322=>'remove'==_0x375322['type']&&'$text'!=_0x375322['name']);for(const _0x2ef931 of _0x94dad9)_0x3e32ae['push']({'key':_0x2ef931['attributeKey'],'newValue':_0x2ef931['attributeNewValue'],'oldValue':_0x2ef931['attributeOldValue'],'range':qt(_0x2ef931['range'],_0x45f33a['model'])});for(const _0x3d976a of _0x7f02ae){const _0x580c65=_0x6e3664['find'](_0x5279a6=>_0x5279a6['position']['isEqual'](_0x3d976a['position']));_0x580c65&&_0x3e32ae['push']({'key':m,'newValue':_0x3d976a['name'],'oldValue':_0x580c65['name'],'range':_0x45f33a['model']['createRangeOn'](_0x3d976a['position']['nodeAfter'])});}return 0x0!=_0x3e32ae['length']&&this['_reduceExistingSuggestions'](_0x23430d,_0x3e32ae);}['_processAttributeSuggestions'](_0x42f5d0){let _0x555555=!0x1;const _0x383ca0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4c6c6c=>_0x4c6c6c['data']['newRange']&&_0x4c6c6c['name']['startsWith']('suggestion:attribute:'));for(const _0x5a4441 of _0x383ca0){const {subType:_0x3d231b,id:_0x22dc40}=this['_splitMarkerName'](_0x5a4441['name']),_0x399e06=_0x3d231b['split']('|')[0x0];for(const _0x1f9894 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1f9894['id']!=_0x22dc40&&'attribute'==_0x1f9894['type']&&_0x1f9894['data']&&_0x1f9894['data']['key']==_0x399e06&&_0x1f9894['getFirstRange']()['isIntersecting'](_0x5a4441['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1f9894,_0x5a4441['data']['newRange'],_0x42f5d0),_0x555555=!0x0);}return _0x555555;}['recordAttributeChanges'](_0x5f59b3){this['_recordAttributeSuggestions']=!0x0,_0x5f59b3();}['_isRegisteredAttribute'](_0x315ebc){const _0x56edea=this['_isBlockAttribute'](_0x315ebc),_0x2f54d8=this['_isInlineAttribute'](_0x315ebc);return _0x56edea||_0x2f54d8;}['_reduceExistingSuggestions'](_0x577a96,_0xf00b62){if(0x0==_0xf00b62['length'])return!0x1;let _0x2d0edf=!0x1;for(const _0x290f7e of _0xf00b62){const _0x201466=this['_findSuggestions'](_0x290f7e['range'],'attribute')['filter'](_0x20cdb3=>!_0x20cdb3['meta']['isNextTo'])['map'](_0xdd2e49=>_0xdd2e49['suggestion']),_0x1f6bdf=_0x1f3607({'newValue':_0x290f7e['newValue']});_0x201466['filter'](_0x3a207a=>{const [_0x5acacc,_0x3c00d0]=_0x3a207a['subType']['split']('|');return _0x5acacc==_0x290f7e['key']&&_0x3c00d0!=_0x1f6bdf;})['forEach'](_0x56f8f3=>{this['_reduceSuggestionAttributeRange'](_0x56f8f3,_0x290f7e['range'],_0x577a96),_0x2d0edf=!0x0;});}return _0x2d0edf;}['_reduceSuggestionAttributeRange'](_0x5d3e16,_0x1e0b4f,_0x43b7ae){const _0x224220=_0x5d3e16['getFirstRange']()['getDifference'](_0x1e0b4f);0x0!==_0x224220['length']?0x1!==_0x224220['length']?this['_breakSuggestionMarker'](_0x5d3e16,_0x1e0b4f['start'],_0x1e0b4f['end']):this['_setSuggestionRange'](_0x5d3e16,_0x224220[0x0]):_0x43b7ae['removeMarker'](_0x5d3e16['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3bd41e){this['_editor']=_0x3bd41e,this['_model']=_0x3bd41e['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x40f3a2,_0x3b5ebc,_0x1307dc,_0x5f516a,_0xb4d09c,_0x158519,_0x567888){return new T(this['_model'],{'type':_0x40f3a2,'subType':_0x3b5ebc,'id':_0x1307dc,'originalSuggestionId':_0x567888,'author':_0x5f516a,'creator':_0x5f516a,'attributes':_0xb4d09c,'onAttributesChange':_0x158519,'onAccept':(..._0xd50d25)=>this['getSuggestionCallback'](_0x40f3a2,_0x3b5ebc,'accept')(..._0xd50d25),'onDiscard':(..._0x3af424)=>this['getSuggestionCallback'](_0x40f3a2,_0x3b5ebc,'discard')(..._0x3af424)});}['registerCustomCallback'](_0x4d70d1,_0x493cac,_0x4bbce5,_0x19243f){const _0x48a234=_0x4d70d1+':'+_0x493cac+':'+_0x4bbce5;this['_customCallbacks']['set'](_0x48a234,_0x19243f);}['getSuggestionCallback'](_0x19c416,_0x1e22f0,_0x88fc0a){const _0x294a57=_0x19c416+':'+_0x1e22f0+':'+_0x88fc0a;return this['_customCallbacks']['get'](_0x294a57)||this['_defaultCallbacks']['get'](_0x19c416+':'+_0x88fc0a);}['_registerDefaultCallbacks'](){const _0x30d2a6=()=>!0x1,_0x5a3132=_0x4d7385=>{_0x4d7385['sort']((_0x59865d,_0x3aa6f7)=>_0x59865d['start']['isBefore'](_0x3aa6f7['start'])?0x1:-0x1),this['_model']['change'](_0x2f2952=>{for(const _0x50dea6 of _0x4d7385){let _0x1055fa;_0x1055fa=_0x50dea6['end']['isAtEnd']&&_0x50dea6['end']['parent']==_0x50dea6['start']['nodeAfter']?_0x2f2952['createSelection'](_0x50dea6['start']['nodeAfter'],'on'):_0x2f2952['createSelection'](_0x50dea6),this['_model']['deleteContent'](_0x1055fa,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x2283df=(_0x264157,_0x2080f4)=>{_0x2080f4&&this['_model']['change'](_0x3f0a97=>{const {commandName:_0x3e9e9b,commandParams:_0x41dea4=[]}=_0x2080f4,_0x58b04d=_0x264157['map'](_0x128ddd=>(Pt(_0x128ddd)&&(_0x128ddd=this['_model']['createRange'](_0x128ddd['end'])),_0x128ddd))['filter'](_0x4c38e4=>'$graveyard'!==_0x4c38e4['root']['rootName']);if(_0x58b04d['length']<0x1)return;const _0x54886a=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3a58a8=>_0x4451e6['fromRange'](_0x3a58a8));_0x3f0a97['setSelection'](_0x58b04d);for(const _0xaa829b of this['_editor']['commands']['commands']())_0xaa829b['refresh']();_0x41dea4['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3e9e9b,..._0x41dea4);const _0x23b2a5=_0x54886a['filter'](_0x83b474=>'$graveyard'!=_0x83b474['root']['rootName']);_0x23b2a5['length']>0x0&&_0x3f0a97['setSelection'](_0x23b2a5);for(const _0x28ad18 of _0x54886a)_0x28ad18['detach']();});},_0x504e3c=(_0x3bc94f,_0x53f820)=>0x1==_0x3bc94f['length']&&0x1==_0x53f820['length']&&_0x3bc94f[0x0]['end']['isEqual'](_0x53f820[0x0]['start']),_0x23e00a=(_0x369441,_0x225923,_0x430e4b,_0x4b225b)=>Wt(_0x369441,_0x225923,_0x430e4b,_0x4b225b)?[_0x369441,_0x225923]:Wt(_0x225923,_0x369441,_0x4b225b,_0x430e4b)?[_0x225923,_0x369441]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x30d2a6),this['_defaultCallbacks']['set']('insertion:discard',_0x5a3132),this['_defaultCallbacks']['set']('insertion:join',_0x504e3c),this['_defaultCallbacks']['set']('insertion:chain',_0x23e00a),this['_defaultCallbacks']['set']('deletion:accept',_0x5a3132),this['_defaultCallbacks']['set']('deletion:discard',_0x30d2a6),this['_defaultCallbacks']['set']('deletion:join',_0x504e3c),this['_defaultCallbacks']['set']('deletion:chain',_0x23e00a),this['_defaultCallbacks']['set']('formatInline:accept',_0x2283df),this['_defaultCallbacks']['set']('formatInline:discard',_0x30d2a6),this['_defaultCallbacks']['set']('formatInline:join',_0x504e3c),this['_defaultCallbacks']['set']('formatInline:chain',_0x30d2a6),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2283df),this['_defaultCallbacks']['set']('formatBlock:discard',_0x30d2a6),this['_defaultCallbacks']['set']('formatBlock:join',_0x504e3c),this['_defaultCallbacks']['set']('formatBlock:chain',_0x30d2a6),this['_defaultCallbacks']['set']('attribute:accept',_0x30d2a6),this['_defaultCallbacks']['set']('attribute:discard',(_0x2d2ab5,_0x37d499)=>{if(!_0x37d499)return;const _0x5b9130=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x4d8a09=>{if(_0x37d499['key']==m)for(const _0x370984 of _0x2d2ab5){const _0x3c3b22=_0x370984['start']['nodeAfter'],_0x5c6ed9=_0x37d499['oldValue'];_0x4d8a09['rename'](_0x3c3b22,_0x5c6ed9);}else{if(_0x5b9130['_isBlockAttribute'](_0x37d499['key'])){for(const _0x13fcee of _0x2d2ab5)void 0x0!==_0x37d499['oldValue']?_0x4d8a09['setAttribute'](_0x37d499['key'],_0x37d499['oldValue'],_0x13fcee['start']['nodeAfter']):_0x4d8a09['removeAttribute'](_0x37d499['key'],_0x13fcee['start']['nodeAfter']);}else{for(const _0x160c47 of _0x2d2ab5)_0x37d499['oldValue']?_0x4d8a09['setAttribute'](_0x37d499['key'],_0x37d499['oldValue'],_0x160c47):_0x4d8a09['removeAttribute'](_0x37d499['key'],_0x160c47);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x504e3c);}}function Ft(_0x3758e9,_0x327937,_0x9f4095){for(const _0x1a0fa1 of _0x327937['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1a0fa1['root']==_0x1a0fa1)return!0x1;if(!_0x9f4095['containsItem'](_0x1a0fa1))return!0x1;if(_0x3758e9['isObject'](_0x1a0fa1)||_0x3758e9['isLimit'](_0x1a0fa1))return!0x0;}return!0x1;}function Pt(_0x503333){return _0x503333['end']['parent']==_0x503333['start']['nodeAfter']&&_0x503333['end']['isAtStart'];}function Gt(_0x84fc74,_0x4f8257,_0x346063,_0x233e0b){const _0x4f055c=_0x1aee16=>!_0x1aee16['item']['is']('$textProxy')&&!_0x233e0b['isObject'](_0x1aee16['item']),_0x261e29=_0x84fc74['start']['getLastMatchingPosition'](_0x4f055c),_0x362d59=_0x84fc74['end']['getLastMatchingPosition'](_0x4f055c,{'direction':'backward'});return(!_0x84fc74['start']['isEqual'](_0x261e29)||!_0x84fc74['end']['isEqual'](_0x362d59))&&(_0x261e29['isBefore'](_0x362d59)?_0x346063['updateMarker'](_0x4f8257,{'range':_0x346063['createRange'](_0x261e29,_0x362d59)}):_0x346063['removeMarker'](_0x4f8257),!0x0);}function Lt(_0x466cc4){return _0x1f3607(_0x466cc4);}function Jt(_0x4a578b){const _0x3c5793=_0x4a578b['start']['nodeAfter'];return _0x3c5793&&_0x3c5793['is']('element');}function Kt(_0x390a3d){return Pt(_0x390a3d)||function(_0x12bc28){return _0x12bc28['start']['parent']==_0x12bc28['end']['nodeBefore']&&_0x12bc28['start']['isAtEnd'];}(_0x390a3d);}function Ht(_0x38c5e3,_0x15fb8e){try{const _0x33de19=_0x38c5e3['getRange']();for(const _0x1190b2 of _0x15fb8e)if(_0x38c5e3!==_0x1190b2&&_0x33de19&&_0x33de19['isIntersecting'](_0x1190b2['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function qt(_0x5e123e,_0x3f1c09){return null==_0x5e123e['end']['nodeBefore']&&_0x5e123e['end']['parent']==_0x5e123e['start']['nodeAfter']?zt(_0x5e123e['start']['nodeAfter'],_0x3f1c09):_0x5e123e;}function zt(_0x5d8a2e,_0x4029e2){const _0x37de27=_0x4029e2['schema']['isObject'](_0x5d8a2e)||_0x4029e2['schema']['isSelectable'](_0x5d8a2e);return _0x4029e2['createRange'](_0x4029e2['createPositionAt'](_0x5d8a2e,'before'),_0x37de27?_0x4029e2['createPositionAfter'](_0x5d8a2e):_0x4029e2['createPositionAt'](_0x5d8a2e,'end'));}function Wt(_0x4c5d50,_0x33ad47,_0x15917e,_0x29b84d){return!!Qt(_0x4c5d50,_0x33ad47)&&_0x15917e['end']['isEqual'](_0x29b84d['start']);}function Qt(_0x53754b,_0x20a249){if(!_0x53754b['_isDataLoaded']||!_0x20a249['_isDataLoaded'])return!0x1;const _0x5c8cbe=new Set(Object['keys'](_0x53754b['attributes'])),_0x59a97b=new Set(Object['keys'](_0x20a249['attributes']));if(_0x5c8cbe['delete']('groupId'),_0x59a97b['delete']('groupId'),0x0==_0x5c8cbe['size']&&0x0==_0x59a97b['size'])return!0x0;if(_0x5c8cbe['size']!=_0x59a97b['size'])return!0x1;const _0x1b8e8d={..._0x53754b['attributes']},_0xba6eb7={..._0x20a249['attributes']};return delete _0x1b8e8d['groupId'],delete _0xba6eb7['groupId'],JSON['stringify'](_0x1b8e8d)==JSON['stringify'](_0xba6eb7);}function Xt(_0x4ab838,_0x5e8e51){const _0x34e033=Yt(_0x4ab838['attributes']),_0xdf484e=Yt(_0x5e8e51);if(!_0x4ab838['_isDataLoaded'])return!0x1;for(const _0x1b8ac4 of Object['keys'](_0xdf484e))if(!_0x3d59cf(_0x34e033[_0x1b8ac4],_0xdf484e[_0x1b8ac4]))return!0x1;return!0x0;}function Yt(_0x4cac35){const _0xbacdc3=Object['assign']({},_0x4cac35);return delete _0xbacdc3['skipNestingCheck'],delete _0xbacdc3['tablePasteChainId'],_0xbacdc3;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x32a230(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xc53896,_0x548045,_0x5745c5,_0x508090){super(),this['model']=_0x548045,this['view']=_0x5745c5,this['commentThreadController']=_0x508090,this['_editor']=_0xc53896,this['_acceptCommand']=_0xc53896['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xc53896['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4521f5,_0x52d5de)=>_0x4521f5||_0x52d5de),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x49d29f=>_0x49d29f&&this['_editor']['model']['canEditAt'](_0x548045['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x17427e=>_0x17427e&&this['_editor']['model']['canEditAt'](_0x548045['getRanges']())),this['_pendingAction']=null,_0x5745c5['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5745c5,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5745c5,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5745c5,'change:isDirty',()=>{_0x5745c5['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 _0x154574=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x154574);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x2cc885{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x24e8cf,_0x5e4a32,_0x1781c7,_0x48b1e0){super(_0x24e8cf),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1e1178(_0x24e8cf,o(_0x24e8cf,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5e4a32['authoredAt']),this['bind']('authoredAt')['to'](_0x5e4a32),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',_0x5e4a32,'authoredAt',this,'descriptionParts',(_0x3faeae,_0x37c4a2,_0x535ffb)=>{const _0x18f544=_0x535ffb['map'](_0x596bd1=>ls(_0x596bd1['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3faeae-0x1,_0x5e4a32['author']['name'],_0x37c4a2?_0x48b1e0['formatDateTime'](_0x37c4a2):'',new DOMParser()['parseFromString'](_0x18f544,'text/html')['body']['textContent']]);}),this['focusables']=new _0x475221(),this['focusTracker']=new _0x4b78be(),this['keystrokes']=new _0x1a3c4d(),this['focusCycler']=new _0x43ca98({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xa9fba6=>_0xa9fba6['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5e4a32,this['_localUser']=_0x1781c7,this['_config']=_0x48b1e0,_0x48b1e0['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x43bf41(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3dd308}=this['_config'];this['commentsListView']=new _0x3dd308(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',_0x1fba00=>_0x1fba00+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x175c7d,_0x1415af)=>_0x175c7d||!!_0x1415af);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2bcd3f}=this['_config'],_0x5a413e=new _0x2bcd3f(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x511ba6=_0x5a413e['commentInputView'];return _0x5a413e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x511ba6,'value',(_0x4fd9f7,_0x4ae9bc,_0x463c86)=>!!_0x463c86||_0x4fd9f7&&!_0x4ae9bc),_0x511ba6['on']('submit',(_0x50bb91,_0x371fe6)=>{this['fire']('addComment',_0x371fe6),_0x511ba6['editor']['setData']('');}),_0x511ba6['on']('cancel',()=>this['focus']()),_0x511ba6['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5a413e;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x4ce854,_0x3aca7b,_0x22544a,_0x1efa65){super(_0x4ce854,_0x3aca7b,_0x22544a,_0x1efa65),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x442c0c=>_0x442c0c&&_0x442c0c[0x0]?_0x442c0c[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x59b4b6,_0x16746b)=>{let _0x3c02c0='';for(const _0x5abef9 of _0x59b4b6)_0x3c02c0+='<p>'+ls(_0x5abef9['content'],_0x5abef9['color'])+'</p>';return _0x16746b?_0x3c02c0:_0x230f0c(_0x3c02c0,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1efa65['SuggestionView'](_0x4ce854,_0x3aca7b,{'formatDateTime':_0x1efa65['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 _0x1f6170=this['bindTemplate'],_0x340e85=[this['suggestionView']];return this['commentsListView']&&_0x340e85['push'](this['commentsListView']),this['commentThreadInputView']&&_0x340e85['push'](this['commentThreadInputView']),_0x340e85['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1f6170['if']('isActive','ck-suggestion-wrapper--active'),_0x1f6170['to']('type',_0x437967=>'ck-suggestion-'+_0x437967),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':_0x1f6170['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x340e85};}['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 we extends _0x2cc885{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5e1fc4,_0x3a9610,_0x9d2780){super(_0x5e1fc4),this['_model']=_0x3a9610,this['_config']=_0x9d2780,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3a9610),this['acceptButton']=this['_createButton'](o(_0x5e1fc4,'Accept\x20suggestion'),_0x4a6cf9,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5e1fc4,'Discard\x20suggestion'),_0x37847e,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3e52ab(_0x5e1fc4,_0x3a9610['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x475221([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4b78be(),this['keystrokes']=new _0x1a3c4d(),this['focusCycler']=new _0x43ca98({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x58899d=>_0x58899d['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3725ad=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3725ad['innerHTML']=this['description'],this['on']('change:description',(_0x1cba51,_0x5dbeb7,_0xda6e6f)=>{_0x3725ad['innerHTML']=_0xda6e6f;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x54863c=this['bindTemplate'],_0x464e15=[{'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':_0x54863c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x54863c['to']('authoredAt',_0x1cc42d=>this['_config']['formatDateTime'](_0x1cc42d))}]}]},{'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']&&_0x464e15['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':_0x464e15}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x51fddc,_0x3700bf,_0x51552b,_0x16cfe4,_0x5d5ffc){const _0x4b5b64=new _0x13845d(this['locale']);return _0x4b5b64['set']({'label':_0x51fddc,'icon':_0x3700bf,'tooltip':!0x0,'tooltipPosition':_0x5d5ffc}),_0x4b5b64['extendTemplate']({'attributes':{'class':_0x51552b}}),_0x4b5b64['on']('execute',()=>{this['fire'](_0x16cfe4,this['_model']['id']);}),_0x4b5b64;}['_setupKeyboardNavigation'](){const _0xb53255=this['element'];this['keystrokes']['listenTo'](_0xb53255);for(const _0x49c71d of this['focusables'])this['focusTracker']['add'](_0x49c71d['element']),this['keystrokes']['listenTo'](_0x49c71d['element']);this['keystrokes']['set']('enter',(_0x5e3e71,_0x2a924e)=>{_0xb53255===_0x5e3e71['target']&&(this['focusCycler']['focusFirst'](),_0x2a924e());}),this['keystrokes']['set']('esc',(_0x252d15,_0x1423cf)=>{_0xb53255!==_0x252d15['target']&&(this['focus'](),_0x1423cf());});}}class u extends _0x263240{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x48e968,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5509b6){super(_0x5509b6),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3bc69b=this['editor']['config'];_0x3bc69b['define']('trackChanges.SuggestionThreadView',fe),_0x3bc69b['define']('trackChanges.SuggestionView',we),_0x3bc69b['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3bc69b['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x32b731,_0x47c9ba){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3bb620,_0x486469]of this['_handleControllerBuffer']){const _0x4865a4=this['_suggestionToController']['has'](_0x3bb620);_0x4865a4||_0x486469?_0x4865a4&&_0x486469&&this['_destroyController'](_0x3bb620):this['_initializeController'](_0x3bb620);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x32b731,_0x47c9ba);}['init'](){const _0x3c6e45=this['editor'],_0x5152de=_0x3c6e45['plugins']['get']('TrackChangesEditing'),_0x451156=_0x3c6e45['plugins']['get']('Annotations'),_0x3bae71=_0x3c6e45['plugins']['get']('EditorAnnotations'),_0x1c6212=_0x3c6e45['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3bae71['addSourceCollector'](()=>{const _0x14ca12=[];for(const [_0x479ac1,_0xd6580c]of Array['from'](this['_suggestionToController'])){const _0x5ee765=_0x479ac1['getAllAdjacentSuggestions'](),_0x10b100=[];for(const _0x232f51 of _0x5ee765){if(!_0x232f51['isInContent'])continue;if(_0x232f51['isMultiRange']){_0x10b100['push'](..._0x232f51['getRanges']());continue;}const _0x3c2e28=_0x232f51['getFirstRange']();if(_0x10b100['length']>0x0){const _0x2d21fa=_0x10b100[0x0]['getJoined'](_0x3c2e28);if(_0x2d21fa){_0x10b100[0x0]=_0x2d21fa;continue;}}_0x10b100['push'](_0x3c2e28);}_0x14ca12['push']([_0xd6580c['view'],_0x10b100]);}return _0x14ca12;}),this['listenTo'](_0x5152de,'suggestionLoaded',(_0xf0e091,_0x41df1f)=>{this['listenTo'](_0x41df1f,'change:previous',(_0xe5db61,_0x11e290,_0x398cd9,_0x4ffa97)=>{_0x41df1f['isInContent']&&(null==_0x398cd9?(this['_updateController'](_0x4ffa97['head']),this['_handleSuggestionControllerDelayed'](_0x41df1f,!0x1)):(this['_updateController'](_0x398cd9['head']),null==_0x4ffa97&&this['_handleSuggestionControllerDelayed'](_0x41df1f,!0x0)));}),null!==_0x41df1f['previous']?this['_updateController'](_0x41df1f['head']):this['_handleSuggestionControllerDelayed'](_0x41df1f,!0x1);}),this['listenTo'](_0x5152de,'suggestionUnloaded',(_0x2749eb,_0x190542,_0x31c6cc)=>{this['stopListening'](_0x190542,'change:previous'),this['_handleControllerBuffer']['delete'](_0x190542),this['_suggestionToController']['has'](_0x190542)&&this['_destroyController'](_0x190542),_0x31c6cc&&this['_updateController'](_0x31c6cc['head']);}),this['listenTo'](_0x5152de,'suggestionChanged',(_0x1e0a97,_0x114b19)=>{this['_updateController'](_0x114b19);}),this['listenTo'](_0x451156,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1c6212,'addComment',(_0x5d1ae4,{threadId:_0x2446e7,isFromAdapter:_0x3a820a})=>{if(_0x3a820a||!_0x5152de['hasSuggestion'](_0x2446e7))return;const _0x17d33f=_0x5152de['getSuggestion'](_0x2446e7);this['_suggestionToController']['get'](_0x17d33f)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x61744c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x54ba34;for(const _0x44f908 in _0x61744c){const _0x32f4d2=_0x44f908,_0x1375b2=_0x61744c[_0x32f4d2];if('trackChangesLicenseKeyValid'==_0x1375b2||'trackChangesLicenseKeyInvalid'==_0x1375b2||'trackChangesLicenseKeyExpired'==_0x1375b2||'trackChangesLicenseKeyDomainLimit'==_0x1375b2||'trackChangesLicenseKeyNotAllowed'==_0x1375b2||'trackChangesLicenseKeyEvaluationLimit'==_0x1375b2||'trackChangesLicenseKeyTrialLimit'==_0x1375b2||'trackChangesLicenseKeyUsageLimit'==_0x1375b2){delete _0x61744c[_0x32f4d2],_0x54ba34=_0x1375b2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x54ba34&&_0x61744c['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x54ba34&&_0x61744c['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x54ba34&&_0x61744c['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x54ba34&&_0x61744c['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x54ba34&&_0x61744c['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x54ba34&&_0x61744c['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x54ba34&&_0x61744c['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x2421e8){const _0x2866e3=this['_suggestionToController']['get'](_0x2421e8);if(!_0x2866e3)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x2866e3['view'])||null;}['getSuggestionForAnnotation'](_0x1004e1){const _0x2a4abc=this['_viewToController']['get'](_0x1004e1['innerView']);return _0x2a4abc?_0x2a4abc['model']:null;}['_refreshActiveMarkers'](){const _0x462877=this['editor']['plugins']['get']('Annotations'),_0x4f6646=this['editor']['plugins']['get']('TrackChangesEditing'),_0x590bbc=Array['from'](_0x462877['activeAnnotations'],_0x937304=>_0x937304['innerView'])['filter'](_0x1d3b48=>this['_viewToController']['has'](_0x1d3b48)),_0x3ca1e9=[];for(const _0x2f80f4 of _0x590bbc){const _0x1fcdfa=this['_viewToController']['get'](_0x2f80f4)['model']['getAllAdjacentSuggestions']();_0x3ca1e9['push'](..._0x1fcdfa['reduce']((_0x520db,_0x3959ef)=>[..._0x520db,..._0x3959ef['getMarkerNames']()],[]));}_0x4f6646['activeMarkers']=_0x3ca1e9;}['_addUIComponentsToFactory'](){const _0x59eb05=this['editor'],_0x3483da=_0x59eb05['locale'],_0x14b0c0=o(_0x3483da,'Track\x20changes'),_0x302513=new _0x1cea23([{'type':'switchbutton','model':new _0x244651({'withText':!0x0,'isToggleable':!0x0,'label':_0x14b0c0,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x244651({'withText':!0x0,'label':o(_0x3483da,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x244651({'withText':!0x0,'label':o(_0x3483da,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x244651({'withText':!0x0,'label':o(_0x3483da,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x244651({'withText':!0x0,'label':o(_0x3483da,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x59eb05['plugins']['has']('TrackChangesPreview')&&_0x302513['addMany']([{'type':'separator'},{'type':'button','model':new _0x244651({'withText':!0x0,'label':o(_0x3483da,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x588a22 of _0x302513)if(ke(_0x588a22)){const _0x5af1b5=_0x59eb05['commands']['get'](_0x588a22['model']['commandName']);_0x588a22['model']['bind']('isOn','isEnabled')['to'](_0x5af1b5,'value','isEnabled');}_0x59eb05['ui']['componentFactory']['add']('trackChanges',_0x47549b=>this['_createToolbarButton'](_0x47549b,_0x302513,_0x14b0c0)),_0x59eb05['ui']['componentFactory']['add']('menuBar:trackChanges',_0x54199c=>this['_createMenuBarMenu'](_0x54199c,_0x302513,_0x14b0c0));}['_createToolbarButton'](_0x2c953d,_0x2fcfad,_0x2f1524){const _0x977ef6=_0x96c8cc(_0x2c953d,_0xa8e044),_0x121774=this['editor']['commands']['get']('trackChanges');_0x977ef6['buttonView']['set']({'tooltip':_0x2f1524,'label':_0x2f1524,'icon':_0x2f6aae}),_0x977ef6['buttonView']['bind']('isOn')['to'](_0x121774,'value'),_0x977ef6['buttonView']['on']('execute',()=>{_0x121774['execute'](),this['editor']['editing']['view']['focus']();}),_0x4f85af(_0x977ef6,_0x2fcfad,{'role':'menu'});const _0x5aac06=[];for(const _0x2e9f6a of _0x2fcfad)ke(_0x2e9f6a)&&_0x5aac06['push'](this['editor']['commands']['get'](_0x2e9f6a['model']['commandName']));const _0x51b5a0=_0x977ef6['buttonView'];return _0x51b5a0['actionView']['unbind']('isEnabled'),_0x51b5a0['arrowView']['unbind']('isEnabled'),_0x51b5a0['actionView']['bind']('isEnabled')['to'](_0x121774,'isEnabled'),_0x51b5a0['arrowView']['bind']('isEnabled')['toMany'](_0x5aac06,'isEnabled',(..._0x2ec6dc)=>_0x2ec6dc['some'](_0x245bc8=>_0x245bc8)),_0x977ef6['on']('execute',_0xd87bdf=>{this['editor']['execute'](_0xd87bdf['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x977ef6;}['_createMenuBarMenu'](_0x47008d,_0x12136e,_0x230bc9){const _0x4b97af=new _0x28589a(_0x47008d),_0x19e08b=this['editor']['commands']['get']('trackChanges');_0x4b97af['buttonView']['set']({'label':_0x230bc9,'icon':_0x2f6aae});const _0x2bf72d=new _0xbd36a7(_0x47008d);for(const _0x394e0c of _0x12136e){if('separator'==_0x394e0c['type']){_0x2bf72d['items']['add'](new _0xa412e4(_0x47008d));continue;}const _0x570d24=new _0x392e97(_0x47008d,_0x4b97af),_0x1a2488=new _0x6f2787(_0x47008d),_0x2cabf9=_0x394e0c['model'];_0x1a2488['bind'](...Object['keys'](_0x2cabf9))['to'](_0x2cabf9),_0x1a2488['delegate']('execute')['to'](_0x4b97af),_0x1a2488['on']('execute',()=>{this['editor']['execute'](_0x2cabf9['commandName']),this['editor']['editing']['view']['focus']();}),_0x570d24['children']['add'](_0x1a2488),_0x2bf72d['items']['add'](_0x570d24);}return _0x4b97af['bind']('isEnabled')['to'](_0x19e08b,'isEnabled'),_0x4b97af['panelView']['children']['add'](_0x2bf72d),_0x4b97af;}['_initializeController'](_0xf7ae19){const _0x1d532a=this['editor'],_0x179a7d=_0x1d532a['config'],_0x19823f=_0x1d532a['plugins']['get']('Annotations'),_0x46e261=_0x1d532a['plugins']['get']('CommentsRepository'),_0x1e929d=_0x1d532a['plugins']['get']('EditorAnnotations'),_0x3893f0=_0x1d532a['plugins']['get'](_0x48e968)['me'],_0x4c1760=_0x179a7d['get']('trackChanges')['SuggestionThreadView'],_0x19febe=_0x179a7d['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x17c3d6,CommentThreadInputView:_0x515dd1}=_0x1d532a['plugins']['get']('CommentsUI');let _0x3572da,_0x6b91ea,_0x8267b1;this['_annotationViews']['has'](_0xf7ae19['id'])?(_0x6b91ea=this['_annotationViews']['get'](_0xf7ae19['id']),_0x3572da=_0x6b91ea['mainView']):(_0x3572da=new _0x4c1760(_0x1d532a['locale'],_0xf7ae19,_0x3893f0,{'disableComments':this['_disableComments'],'editorConfig':{..._0x179a7d['get']('comments.editorConfig'),'licenseKey':_0x179a7d['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x179a7d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x179a7d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x179a7d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x496f9b(_0x179a7d['get']('locale'),_0x1d532a['locale']),'CommentView':_0x179a7d['get']('comments')['CommentView'],'CommentsListView':_0x17c3d6,'CommentThreadInputView':_0x515dd1,'SuggestionView':_0x19febe}),_0x3572da['suggestionView']['acceptButton']['on']('execute',()=>{_0x1d532a['editing']['view']['focus']();}),_0x3572da['suggestionView']['discardButton']['on']('execute',()=>{_0x1d532a['editing']['view']['focus']();}),_0x6b91ea=_0x19823f['createAnnotationView'](this['editor']['locale'],_0x3572da),_0x6b91ea['bind']('isDirty')['to'](_0x3572da,'isDirty'),_0x6b91ea['bind']('length')['to'](_0x3572da),_0x6b91ea['bind']('type')['to'](_0x3572da,'type',_0x20abcc=>'suggestion-'+_0x20abcc),_0x3572da['on']('escape',()=>{_0x8267b1['fire']('escape');}),this['_annotationViews']['set'](_0xf7ae19['id'],_0x6b91ea));const _0x2005f9=_0x46e261['createCommentThreadController'](_0xf7ae19['commentThread'],_0x3572da),_0x1061d7=new pe(_0x1d532a,_0xf7ae19,_0x3572da,_0x2005f9),_0x53bfb0=_0xf7ae19['getAllAdjacentSuggestions']()['filter'](_0x47e5b4=>_0x47e5b4['isInContent']);_0x3572da['descriptionParts']=_0x1d532a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x53bfb0),this['_suggestionToController']['set'](_0xf7ae19,_0x1061d7),this['_viewToController']['set'](_0x3572da,_0x1061d7);const _0x15190e=()=>{const _0x14ff82=[],_0x1ce82e=_0xf7ae19['getAllAdjacentSuggestions']()['filter'](_0x1ea33d=>_0x1ea33d['isInContent']);for(const _0x575c5e of _0x1ce82e)_0x14ff82['push'](..._0x575c5e['getMarkers']());return _0x3b6b15(_0x1d532a['editing'],_0x14ff82);};_0x8267b1=_0x19823f['createAnnotation']({'view':_0x6b91ea,'target':_0x15190e,'type':()=>'suggestion-'+_0x1061d7['view']['type'],'isVisible':!!_0x15190e()}),_0x46e261['_bindAnnotationToEditors'](_0x3572da,_0x8267b1),_0x19823f['add'](_0x8267b1),_0x1e929d['registerAnnotation'](_0x8267b1);}['_destroyController'](_0x38a9c7){const _0x3b939a=this['editor']['plugins']['get']('CommentsRepository'),_0x2dbb44=this['editor']['plugins']['get']('Annotations'),_0x4071b4=this['_suggestionToController']['get'](_0x38a9c7),_0x52d2e7=_0x4071b4['view'],_0x27e85e=_0x2dbb44['getByInnerView'](_0x52d2e7);_0x3b939a['_unbindEditors'](_0x52d2e7),_0x27e85e&&_0x2dbb44['remove'](_0x27e85e),this['_suggestionToController']['delete'](_0x38a9c7),this['_viewToController']['delete'](_0x52d2e7),_0x4071b4['destroy']();}['_updateController'](_0x4eb9e5){if(!_0x4eb9e5['isInContent']||!this['_suggestionToController']['has'](_0x4eb9e5))return;const _0x5c9eeb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4625a1=this['_suggestionToController']['get'](_0x4eb9e5),_0x3483c9=_0x4eb9e5['getAllAdjacentSuggestions']();_0x4625a1['view']['descriptionParts']=_0x5c9eeb['descriptionFactory']['getDescriptions'](_0x3483c9);}['destroy'](){for(const _0x262b51 of this['_suggestionToController']['keys']())this['_destroyController'](_0x262b51);for(const _0x552ecb of this['_annotationViews']['values']())_0x552ecb['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x389698){return'model'in _0x389698;}class Fe extends _0x263240{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5f2d26){this['editor']['plugins']['get'](d)['adapter']=_0x5f2d26;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x2d3d82){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x2d3d82);}['getSuggestions']({skipNotAttached:_0x4a4579=!0x1,toJSON:_0x5a09e7=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x4a4579,'toJSON':_0x5a09e7});}['getSuggestion'](_0x1e891c){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x1e891c);}}const p=['Pagination'];class re extends _0x263240{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4ba9aa=this['editor'];if(_0x4ba9aa['config']['define']('trackChangesData.editorCreator',_0x4dc6f1=>{const _0x27b6a3=_0x4ba9aa['model']['document']['getRootNames']()['reduce']((_0x2d2951,_0x26f8f0)=>(_0x2d2951[_0x26f8f0]='',_0x2d2951),{});return _0x4ba9aa['constructor']['create'](_0x27b6a3,_0x4dc6f1);}),'function'!=typeof _0x4ba9aa['config']['get']('trackChangesData')['editorCreator'])throw new _0x337eb4('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x15d47a){return P(this['editor'],!0x0,_0x15d47a);}['getDataWithDiscardedSuggestions'](_0x4a8c72){return P(this['editor'],!0x1,_0x4a8c72);}}class Ge extends _0x263240{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2a9116){function _0x467712(_0x74cd2a){return _0x74cd2a['map'](_0x27296c=>String['fromCharCode'](_0x27296c))['join']('');}super(_0x2a9116),this['result']='end',_0x2a9116[_0x467712([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x467712([0x76,0x69,0x65,0x77])][_0x467712([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x467712([0x61,0x75,0x74,0x6f]),_0x2a9116[_0x467712([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x467712([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x467712([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x467712([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x467712([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 He(_0x77a7da){return void 0x0!==_0x77a7da['getRootsAttributes'];}async function P(_0x3f8d1c,_0x292c83,_0x5df9ff){const _0x110ff5=_0x58d8c0(_0x3f8d1c,p);_0x110ff5['plugins']['push'](d,Ge),_0x110ff5['rootsAttributes']=He(_0x3f8d1c)?_0x3f8d1c['getRootsAttributes']():void 0x0;const _0x7c1497=document['createDocumentFragment'](),_0x268c22=_0x3f8d1c['config']['get']('trackChangesData')['editorCreator'],_0x590e9b=await _0x268c22(_0x110ff5,()=>function(_0x4a5acb){const _0x5399ff=document['createElement']('div');return _0x4a5acb['appendChild'](_0x5399ff),_0x5399ff;}(_0x7c1497));!function(_0x197b18,_0x3515e9){const _0x497bd5=_0x197b18['model']['document']['getRootNames']()['reduce']((_0x3cd24b,_0x29b8d9)=>(_0x3cd24b[_0x29b8d9]=_0x197b18['data']['get']({'rootName':_0x29b8d9}),_0x3cd24b),{}),_0x1b8054=_0x197b18['plugins']['get']('Users')['users']['map'](_0x4a5862=>({'id':_0x4a5862['id'],'name':_0x4a5862['name']})),_0xea1d79=_0x197b18['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xf4982f=_0x197b18['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xe3c511=_0x3515e9['plugins']['get']('Users'),_0x487865=_0x3515e9['plugins']['get']('TrackChangesEditing'),_0x3ec925=_0x3515e9['plugins']['get']('CommentsRepository');for(const _0x4bbf25 of _0x3ec925['getCommentThreads']())_0x4bbf25['remove']();for(const _0x34441c of _0x1b8054)_0xe3c511['getUser'](_0x34441c['id'])||_0xe3c511['addUser'](_0x34441c);_0xe3c511['me']||_0xe3c511['useAnonymousUser']();for(const _0x44f50a of _0xf4982f)_0x3ec925['addCommentThread'](_0x44f50a);for(const _0x42fee6 of _0xea1d79)_0x487865['addSuggestionData'](_0x42fee6);_0x3515e9['data']['set'](_0x497bd5);}(_0x3f8d1c,_0x590e9b),_0x590e9b['execute'](_0x292c83?'acceptAllSuggestions':'discardAllSuggestions');const _0x25c334=He(_0x590e9b)?_0x590e9b['getFullData'](_0x5df9ff):_0x590e9b['data']['get'](_0x5df9ff);return await _0x590e9b['destroy'](),_0x25c334;}class Me extends _0x2cc885{['options'];constructor(_0x53cc9d,_0xbbcb96){super(_0x53cc9d),this['options']=_0xbbcb96,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'](_0x446466,_0x6ed6cd){if(!this['element'])return;const _0x20ccc9=[];for(const [_0x2526bf,_0x38887c]of _0x446466){const _0x352247=document['createElement']('div');_0x352247['setAttribute']('data-ck-root-name',_0x2526bf),_0x352247['className']=_0x38887c['classes']+'\x20ck-track-changes-preview__root-container',_0x352247['innerHTML']=_0x38887c['content'],_0x20ccc9['push'](_0x352247);}_0x6ed6cd(this['element'],_0x20ccc9),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x2a287a{constructor(_0x5dc20c){super(_0x5dc20c),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3bf105=this['editor'],_0x430423=_0x3bf105['locale'],_0x12a086=_0x3bf105['plugins']['get']('Dialog');let _0x341d12;const _0x4f8984=function(_0x3563fb){const _0x4acf59={};if('editables'in _0x3563fb['ui']['view']){for(const [_0x6cf85b,_0x511c6a]of Object['entries'](_0x3563fb['ui']['view']['editables']))_0x4acf59[_0x6cf85b]=_0x511c6a['element'];}else _0x4acf59[_0x3563fb['model']['document']['getRootNames']()[0x0]]=_0x3563fb['ui']['view']['editable']['element'];return _0x4acf59;}(_0x3bf105),_0x106187=function(_0x3d165e){let _0x463810=0x0;for(const _0x29205b of Object['values'](_0x3d165e))_0x463810=Math['max'](_0x463810,_0x29205b['getBoundingClientRect']()['width']);let _0x19de2a=0x0;for(const _0x22f17d of Object['values'](_0x3d165e))_0x19de2a+=_0x22f17d['getBoundingClientRect']()['height'];const _0x164a78=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x307923=Math['min'](_0x19de2a,_0x164a78);return{'width':_0x463810,'height':_0x307923};}(_0x4f8984);_0x12a086['show']({'id':'finalContentPreview','title':o(_0x430423,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x430423,{'dialogRects':_0x106187}),'onHide':()=>{_0x341d12['detachFromDom']();},'onShow':()=>{_0x3bf105['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x5cd5e8=>{const _0xd75e48=this['_standarizeRootsData'](_0x5cd5e8,_0x3bf105,_0x4f8984);_0x12a086['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0xd75e48,_0x3bf105['config']['get']('trackChanges.preview.renderFunction'));}),_0x341d12=new _0x44bde5(_0x430423,[_0x12a086['view']]),_0x341d12['attachToDom'](),_0x341d12['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3bf105['once']('destroy',()=>{_0x341d12['detachFromDom']();});const _0x28d431=_0x12a086['view']['headerView']['class'];_0x12a086['view']['headerView']['class']=_0x28d431?_0x28d431+'\x20ck-reset_all':'ck-reset_all',_0x12a086['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x12a086['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x39cc4e=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x54210b=_0x39cc4e['previewMode'],_0x2a496d={};if('$labels'===_0x54210b){for(const _0x621eec of _0x39cc4e['getMergeFieldsIds']())_0x2a496d[_0x621eec]=_0x39cc4e['getLabel'](_0x621eec)||_0x621eec;}else{const _0x24786a='$defaultValues'===_0x54210b?_0x39cc4e['getDefaultValues']():_0x39cc4e['getDataSetValues'](_0x54210b,!0x0);for(const _0x29544c of Object['entries'](_0x24786a)){const [_0xcbe733,_0x348c8b]=_0x29544c;_0x2a496d[_0xcbe733]=null!==_0x348c8b?_0x348c8b:_0x39cc4e['getLabel'](_0xcbe733)||_0xcbe733;}}return{'mergeFieldsData':_0x2a496d};}['_standarizeRootsData'](_0x249a79,_0x2e9227,_0xdcee27){let _0x4e5827;if('string'==typeof _0x249a79){const _0x387571=_0x2e9227['model']['document']['getRootNames']()[0x0];_0x4e5827={[_0x387571]:_0x249a79};}else _0x4e5827=_0x249a79;const _0x5ace94=this['_fixMediaEmbeds'](_0x4e5827,_0x2e9227),_0x46f21e=function(_0x4997d9,_0x51b981){for(const [_0x300c1a,_0x1937e0]of _0x4997d9)_0x1937e0['classes']=_0x51b981[_0x300c1a]['classList']['value']['replace']('ck-focused','');return _0x4997d9;}(this['_sortRoots'](_0x2e9227)['reduce']((_0x41d955,_0x4254b1)=>(_0x41d955['push']([_0x4254b1,{'content':_0x5ace94[_0x4254b1],'classes':''}]),_0x41d955),[]),_0xdcee27);return _0x46f21e;}['_fixMediaEmbeds'](_0x2c1198,_0x4f414e){if(!_0x4f414e['plugins']['has']('MediaEmbedEditing'))return _0x2c1198;const _0x95276=_0x4f414e['plugins']['get']('MediaEmbedEditing');for(const [_0x134a25,_0x2d4603]of Object['entries'](_0x2c1198)){const _0x2bfbfc=document['createElement']('div');_0x2bfbfc['innerHTML']=_0x2d4603,(_0x2bfbfc['querySelectorAll']('figure.media')['forEach'](_0xd247ce=>{const _0x14aa1d=_0xd247ce['querySelector']('oembed');if(_0x14aa1d){const _0x183f61=_0x14aa1d['getAttribute']('url');if(_0x183f61){const _0x217576=_0x95276['registry']['getMediaViewElement'](new _0x599951(_0x4f414e['editing']['view']['document']),_0x183f61,{'elementName':'','renderForEditingView':!0x0}),_0x311ad3=document['createElement']('div');_0x311ad3['classList']['add']('ck-media__wrapper'),_0x217576['render'](_0x311ad3,_0x4f414e['editing']['view']['domConverter']),_0x14aa1d['replaceWith'](_0x311ad3);}}}),_0x2c1198[_0x134a25]=_0x2bfbfc['innerHTML']);}return _0x2c1198;}['_sortRoots'](_0x1062cc){if(!function(_0x543c9f){return void 0x0!==_0x543c9f['getRootsAttributes'];}(_0x1062cc))return _0x1062cc['model']['document']['getRootNames']();const _0x136d6d=[],_0x1d38f4=new Map();for(const _0x4323cd of _0x1062cc['model']['document']['getRootNames']()){const _0x450bc3=_0x1062cc['editing']['view']['getDomRoot'](_0x4323cd)['getClientRects']()['item'](0x0);_0x136d6d['push'](_0x4323cd),_0x1d38f4['set'](_0x4323cd,_0x450bc3);}return _0x136d6d['sort']((_0x110e7e,_0x1661f3)=>{const _0x302ad9=_0x1d38f4['get'](_0x110e7e),_0x3ebc16=_0x1d38f4['get'](_0x1661f3);return _0x302ad9['y']-_0x3ebc16['y']||_0x302ad9['x']-_0x3ebc16['x'];}),_0x136d6d;}}class $e extends _0x263240{static get['requires'](){return[re,_0x54cf74];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe1f326){super(_0xe1f326),_0xe1f326['commands']['add']('previewFinalContent',new te(this['editor'])),_0xe1f326['config']['define']('trackChanges.preview.renderFunction',(_0x466eb0,_0x12374f)=>{for(const _0xa689d8 of _0x12374f)_0x466eb0['appendChild'](_0xa689d8);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,$ as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,$e as TrackChangesPreview,u as TrackChangesUI};