@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231021.0 → 0.0.0-nightly-20231022.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-track-changes",
3
- "version": "0.0.0-nightly-20231021.0",
3
+ "version": "0.0.0-nightly-20231022.0",
4
4
  "description": "CKEditor 5 track changes plugin.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -39,8 +39,8 @@
39
39
  "CHANGELOG.md"
40
40
  ],
41
41
  "dependencies": {
42
- "ckeditor5": "0.0.0-nightly-20231021.0",
43
- "ckeditor5-collaboration": "0.0.0-nightly-20231021.0",
42
+ "ckeditor5": "0.0.0-nightly-20231022.0",
43
+ "ckeditor5-collaboration": "0.0.0-nightly-20231022.0",
44
44
  "lodash-es": "4.17.21"
45
45
  },
46
46
  "types": "src/index.d.ts",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1e9b=['getShiftedBy','previous','refresh','bindElementToMarker','trackChangesCommand','addMarkerName','TrackChangesEditing','formatInline','_addSuggestionMarker','markMultiRangeInsertion','isAfter','_joinWithAdjacentSuggestions','addComment','isTouching','acceptAllSuggestions','init','removeComment','next','markerToHighlight','addMarker:suggestion','dataReady','data','commandName','removeMarker','hasCommentThread','marker-count','deletion:','multi','includes','isRemovable','mapper','removeClass','setAttribute','update:suggestion','insert','element','markerName','trackChanges','createRange','remove','rootName','set','substr','_refreshSuggestionsChain','fromCharCode','howMany','then','containsRange','createPositionAfter','insertion:','execute','upcast','getNearestSelectionRange','fetchCommentThread','addClass','tablePasteChainId','_updateSuggestionData','start','editing','nodeBefore','track-changes-command-not-found','getItems','ready','_commentsRepository','formatInline:accept','isLocal','_model','registerCustomCallback','item','subType','track-changes-user-not-found','filter','consume','_cutOutSuggestionMarker','differ','newRange','detach','addRange','deletion:chain','consumable','config','_getSuggestionData','isOwn','_setSuggestionRange','moveTargetPosition','getRanges','isDocumentOperation','commentThread','_mergeNestedSuggestions','options','accepted','values','_isDataLoaded','enableReadOnlyMode','formatGroupId','attributes','trackChanges.mergeNestedSuggestions','change:activeMarkers','isLimit','PendingActions','isObject','ck-suggestion-marker-','deletion:join','get','forceDefaultExecution','registerPostFixer','_getAuthorFromId','discard','define','resolve','isUndo','batch','discardAllSuggestions','schema','sort','markerReady','delete','formatBlock','backward','formatBlock:join','addMarker:suggestion:formatBlock','removeMarkers','_adapter','notReady','group','head','getFirstRange','isMultiRange','clone','$marker','trackChanges.trackFormatChanges','writer','getMarkers','addSuggestionData','add','_removeSuggestion','_joinSuggestions','forward','isEqual','createSelection','getChanges','addCommentThread','_defaultCallbacks','isCollapsed','chain','deletion:accept','setSelection','rejected','deletion','type','_setSuggestionData','join','isInsideObject','PENDING_ACTION_SUGGESTION','highest','addSuggestion','root','acceptSuggestion','Users','never','showSuggestionHighlights','getSuggestions','enqueueChange','markDeletion','size','editingDowncast','_editor','selection','some','default','dataDowncast','removeAttribute','isIntersectingWithRange','formatBlock:','getUser','suggestionLoaded','activeMarkers','editor','isSelectable','formatInline:','markInsertion','_breakSuggestionMarker','isBlock','getCustomProperty','markerNameToElements','createRangeIn','high','getDifference','containsRangeInObject','getAttribute','position','getSuggestionCallback','containsPosition','isBefore','open','fromRange','listenTo','author','split','conversion','getCommentThread','markerToData','unbindElementFromMarkerName','addHighlight','insertContent','discardSuggestion','skipNestingCheck','_descriptionFactory','change:data','markers','_rangeIsInLocalUserInsertion','_customCallbacks','range','authoredAt','isInContent','always','change:_saved','change','parent','getFirstMarker','_suggestionState','@external','formatBlock:accept','ck-suggestion-marker','deleteContent','buildSuggestion','updateSuggestion','originalSuggestionId','_onDiscard','_registerDefaultCallbacks','getChangedMarkers','applyOperation','_enabledCommands','setTo','getIntersection','requires','ck-suggestion-marker--active','error-saving-suggestion-data-suggestion-discarded','_addThreadToSuggestion','markInlineFormat','elementEnd','toViewElement','addMarker','value','has','plugins','markMultiRangeBlockFormat','accept','updateMarker','map','multipleBlocks','collaboration.channelId','createPositionAt','elementStart','_handleNewSuggestionMarker','getLastMatchingPosition','_findSuggestions','model','locale','createElement','creator','_saved','_isForcedDefaultExecutionBlock','_suggestions','suggestion','fire','external:','unbind','isAtEnd','getAllAdjacentSuggestions','length','pluginName','formatInline:chain','getMultiRangeId','isArray','stop','from','elementToElement','createdAt','splitPosition','_createSuggestion','insertion:join','formatInline:join','_suggestionFactory','lowest','name','after','assign','for','hasComments','_trackFormatChanges','acceptSelectedSuggestions','isExternal','ck-suggestion-marker-formatBlock','formatBlock:chain','clear','stopListening','enableCommand','nodeAfter','removeMarker:suggestion:formatBlock','reconvertMarker','$graveyard','suggestionChanged','low','_checkSuggestionCorrectness','isNextTo','insertion:discard','getSuggestion','commands','push','track-changes-adapter-already-set','splice','document','_getExternalAuthor','oldRange','every','_splitMarkerName','track-changes-adapter-missing-getsuggestion','getAncestors','data-suggestion','CommentsRepository','end','insertion'];(function(_0x4a8597,_0x1e9b7b){const _0x2c67d9=function(_0x536943){while(--_0x536943){_0x4a8597['push'](_0x4a8597['shift']());}};_0x2c67d9(++_0x1e9b7b);}(_0x1e9b,0x19d));const _0x2c67=function(_0x4a8597,_0x1e9b7b){_0x4a8597=_0x4a8597-0x0;let _0x2c67d9=_0x1e9b[_0x4a8597];return _0x2c67d9;};import{Plugin as _0x3aae55,PendingActions as _0x307adb}from'ckeditor5/src/core';import{LiveRange as _0x2a689f}from'ckeditor5/src/engine';import{CKEditorError as _0x12916d,uid as _0x14b3c2,priorities as _0x41fd06,logWarning as _0x34eed0}from'ckeditor5/src/utils';import{toWidget as _0x23170e}from'ckeditor5/src/widget';import{Users as _0x27440e,hashObject as _0x26d881}from'ckeditor5-collaboration/src/collaboration-core';import _0x5ad4ef from'./commands/trackchangescommand';import _0x37ca99 from'./commands/acceptsuggestioncommand';import _0x2e678f from'./commands/discardsuggestioncommand';import _0x8fd8 from'./commands/executeonallsuggestionscommand';import _0x5983b4 from'./commands/executeonselectedsuggestionscommand';import _0x368607 from'./suggestion';import _0x5077ed from'./suggestiondescriptionfactory';import _0x421534 from'./integrations/aiassistant';import _0x31f96b from'./integrations/alignment';import _0x382c09 from'./integrations/basicstyles';import _0x59fbac from'./integrations/blockquote';import _0x1687fd from'./integrations/ckbox';import _0x34ed8a from'./integrations/codeblock';import _0x2c0829 from'./integrations/comments';import _0x36ddb6 from'./integrations/deletecommand';import _0x15c5be from'./integrations/documentlist';import _0x40bde7 from'./integrations/entercommand';import _0x355ca6 from'./integrations/findandreplace';import _0x3e8fc0 from'./integrations/font';import _0x470a6b from'./integrations/formatpainter';import _0x419e69 from'./integrations/heading';import _0x56559b from'./integrations/highlight';import _0xa82cf5 from'./integrations/horizontalline';import _0x2e4e96 from'./integrations/htmlembed';import _0x3729c8 from'./integrations/image';import _0x283335 from'./integrations/imagereplace';import _0x547a0e from'./integrations/importword';import _0x17e56c from'./integrations/indent';import _0x224b9b from'./integrations/inputcommand';import _0x3b56d4 from'./integrations/link';import _0x631513 from'./integrations/list';import _0x5729a9 from'./integrations/listproperties';import _0x2efba4 from'./integrations/mediaembed';import _0x2a52f6 from'./integrations/mention';import _0x8402a0 from'./integrations/pagebreak';import _0x163ff6 from'./integrations/paragraph';import _0x5b8f58 from'./integrations/removeformat';import _0x363319 from'./integrations/restrictededitingmode';import _0x62e450 from'./integrations/shiftentercommand';import _0x5c23dd from'./integrations/standardeditingmode';import _0x5ec205 from'./integrations/style';import _0x2590f6 from'./integrations/table';import _0x2fc9d0 from'./integrations/tablemergesplit';import _0x222e10 from'./integrations/tableheadings';import _0x2a5d74 from'./integrations/tableclipboard';import _0x56df6d from'./integrations/tablecolumnresize';import _0x5e19b1 from'./integrations/template';import _0xe7a760 from'./integrations/tableofcontents';import _0x1f2a80 from'./integrations/title';import _0x1811ad from'./integrations/undo';import{getTranslation as _0x243cd0}from'./utils/common-translations';import _0x4c1868 from'./integrations/tablecaption';import _0x50f680 from'./integrations/documentlistproperties';import _0x58b798 from'./integrations/tableproperties';import{isEqual as _0x5960dc}from'lodash-es';export default class p extends _0x3aae55{static get[_0x2c67('0x91')](){return[_0x2c67('0xe6'),_0x27440e,_0x307adb,_0x421534,_0x31f96b,_0x382c09,_0x59fbac,_0x1687fd,_0x34ed8a,_0x2c0829,_0x36ddb6,_0x15c5be,_0x50f680,_0x40bde7,_0x355ca6,_0x3e8fc0,_0x470a6b,_0x419e69,_0x56559b,_0xa82cf5,_0x2e4e96,_0x3729c8,_0x283335,_0x547a0e,_0x17e56c,_0x224b9b,_0x3b56d4,_0x631513,_0x5729a9,_0x2efba4,_0x2a52f6,_0x8402a0,_0x163ff6,_0x5b8f58,_0x363319,_0x62e450,_0x5c23dd,_0x5ec205,_0x2590f6,_0x2fc9d0,_0x222e10,_0x4c1868,_0x2a5d74,_0x56df6d,_0xe7a760,_0x58b798,_0x5e19b1,_0x1f2a80,_0x1811ad];}static get[_0x2c67('0xb5')](){return _0x2c67('0xef');}constructor(_0x31d47c){function _0x1a6925(_0x34770b){return _0x34770b[_0x2c67('0x9f')](_0x42be93=>String[_0x2c67('0x115')](_0x42be93))[_0x2c67('0x3d')]('');}super(_0x31d47c),this[_0x2c67('0x112')](_0x2c67('0x56'),[]),this['on'](_0x2c67('0x7'),(_0x2f4ef5,_0x3101d4,_0xaf9642,_0xe6aef6)=>{this[_0x2c67('0x12b')][_0x2c67('0x7f')](()=>{for(const _0x51fd8c of[..._0xe6aef6,..._0xaf9642])this[_0x2c67('0x12b')][_0x2c67('0x77')][_0x2c67('0x9a')](_0x51fd8c)&&_0x31d47c[_0x2c67('0x123')][_0x2c67('0xd2')](_0x51fd8c);});}),this[_0x2c67('0x75')]=new _0x5077ed(this['editor']['model'][_0x2c67('0x17')],this[_0x2c67('0x57')]['locale']),this[_0x2c67('0x20')]=null,this[_0x2c67('0xc1')]=new Bt(this[_0x2c67('0x57')]),this['_suggestions']=new Map(),this[_0x2c67('0x128')]=_0x31d47c[_0x2c67('0x9b')]['get'](_0x2c67('0xe6')),this['_enabledCommands']=new Set(),this[_0x2c67('0x12b')]=this[_0x2c67('0x57')]['model'],this['_suggestionState']=new WeakMap(),this[_0x2c67('0xac')]=!0x1,_0x31d47c[_0x2c67('0x139')][_0x2c67('0x12')](_0x2c67('0x28'),_0x2c67('0x4f')),this['_trackFormatChanges']=_0x31d47c['config'][_0x2c67('0xd')]('trackChanges.trackFormatChanges'),_0x31d47c[_0x2c67('0x139')][_0x2c67('0x12')](_0x2c67('0x6'),!0x0),this[_0x2c67('0x141')]=_0x31d47c[_0x2c67('0x139')][_0x2c67('0xd')]('trackChanges.mergeNestedSuggestions'),this[_0x2c67('0xed')]=new _0x5ad4ef(_0x31d47c,this[_0x2c67('0x8e')]),this[_0x1a6925([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1a6925([0x34,0x30,0x34,0x36,0x32,0x30,0x34,0x32]);}[_0x2c67('0xf8')](){const _0x2e35e1=this[_0x2c67('0x57')];_0x2e35e1[_0x2c67('0x6d')][_0x2c67('0xc6')](_0x2c67('0x4b'))[_0x2c67('0xfb')]({'model':'suggestion','view':_0x5e7a39=>{const {id:_0x576a2a,type:_0x45ae56}=this['_splitMarkerName'](_0x5e7a39[_0x2c67('0x10d')]),_0x93478=[_0x2c67('0x85'),'ck-suggestion-marker-'+_0x45ae56];let _0x2aea62=0xbb8;return this[_0x2c67('0x56')][_0x2c67('0x105')](_0x5e7a39[_0x2c67('0x10d')])&&(_0x93478[_0x2c67('0xdb')]('ck-suggestion-marker--active'),_0x2aea62=0xbc2),'deletion'==_0x45ae56&&(_0x2aea62+=0x5),{'classes':_0x93478,'attributes':{'data-suggestion':_0x576a2a},'priority':_0x2aea62};}}),_0x2e35e1['conversion'][_0x2c67('0xc6')](_0x2c67('0x50'))[_0x2c67('0x2c')](_0x24baf7=>{_0x24baf7['on'](_0x2c67('0xfc'),(_0x35931f,_0x4cdb88,_0x3e898f)=>{if(!_0x3e898f[_0x2c67('0x142')][_0x2c67('0x46')])return;const _0x3a57a4=_0x4cdb88[_0x2c67('0x12d')];if(!_0x3a57a4)return;const _0x460cba=_0x3e898f['mapper'][_0x2c67('0x97')](_0x3a57a4);_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0x17')]['isObject'](_0x3a57a4)&&_0x460cba&&!_0x460cba[_0x2c67('0x5d')]('widget')&&_0x460cba['is']('containerElement')&&_0x23170e(_0x460cba,_0x3e898f[_0x2c67('0x29')]);},{'priority':'high'});}),_0x2e35e1[_0x2c67('0x6d')][_0x2c67('0xc6')](_0x2c67('0x50'))['markerToHighlight']({'model':_0x2c67('0xae'),'view':(_0x5b334f,_0xd6b8a8)=>{if(!_0xd6b8a8[_0x2c67('0x142')][_0x2c67('0x46')])return null;const {type:_0x55f9f6}=this[_0x2c67('0xe2')](_0x5b334f[_0x2c67('0x10d')]);return{'classes':[_0x2c67('0x85'),_0x2c67('0xb')+_0x55f9f6],'priority':0xbb8};}});const _0x4d2978=({showActiveMarkers:_0x69f34a=!0x0}={})=>(_0xfc9463,_0x506065,_0x262dc6)=>{if(!_0x506065[_0x2c67('0x12d')])return;if(_0x506065['item']['is'](_0x2c67('0x4d')))return void _0x262dc6[_0x2c67('0x138')][_0x2c67('0x131')](_0x506065['item'],_0xfc9463[_0x2c67('0xc3')]);const _0x539bdf=_0x262dc6[_0x2c67('0x107')]['toViewElement'](_0x506065['item']);if(!(_0x506065['item']['is'](_0x2c67('0x10c'))&&_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0x17')][_0x2c67('0x5c')](_0x506065[_0x2c67('0x12d')])&&!_0x539bdf[_0x2c67('0x5d')](_0x2c67('0x71'))))return;const {id:_0x584d57}=this[_0x2c67('0xe2')](_0x506065[_0x2c67('0x10d')]);_0x262dc6[_0x2c67('0x29')]['addClass']([_0x2c67('0x85'),_0x2c67('0xcb')],_0x539bdf),_0x262dc6[_0x2c67('0x29')][_0x2c67('0x109')](_0x2c67('0xe5'),_0x584d57,_0x539bdf),_0x262dc6[_0x2c67('0x107')][_0x2c67('0xec')](_0x539bdf,_0x506065['markerName']),_0x69f34a&&(this[_0x2c67('0x56')][_0x2c67('0x105')](_0x506065[_0x2c67('0x10d')])?_0x262dc6['writer'][_0x2c67('0x11f')](_0x2c67('0x92'),_0x539bdf):_0x262dc6[_0x2c67('0x29')][_0x2c67('0x108')](_0x2c67('0x92'),_0x539bdf));for(const _0x74422 of _0x2e35e1['model'][_0x2c67('0x5f')](_0x506065[_0x2c67('0x12d')])[_0x2c67('0x126')]())_0x262dc6[_0x2c67('0x138')][_0x2c67('0x131')](_0x74422,_0xfc9463[_0x2c67('0xc3')]);_0x262dc6['consumable'][_0x2c67('0x131')](_0x506065[_0x2c67('0x12d')],_0xfc9463[_0x2c67('0xc3')]);};_0x2e35e1[_0x2c67('0x6d')][_0x2c67('0xc6')]('dataDowncast')['add'](_0x4e479a=>{_0x4e479a['on'](_0x2c67('0x1e'),(_0x39d33a,_0x272cae,_0x3c2a35)=>{_0x3c2a35[_0x2c67('0x142')][_0x2c67('0x46')]&&_0x4d2978({'showActiveMarkers':!0x1})(_0x39d33a,_0x272cae,_0x3c2a35);},{'priority':_0x2c67('0x40')});}),_0x2e35e1['conversion'][_0x2c67('0xc6')](_0x2c67('0x50'))[_0x2c67('0x6f')]({'model':_0x2c67('0xae'),'view':(_0x57aed6,_0x4aaf0c)=>_0x4aaf0c[_0x2c67('0x142')][_0x2c67('0x46')]?null:{'group':_0x2c67('0xae'),'name':_0x57aed6[_0x2c67('0x113')](0xb)}}),_0x2e35e1[_0x2c67('0x6d')][_0x2c67('0xc6')]('upcast')[_0x2c67('0xbb')]({'view':{'name':_0x2c67('0xae'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5baf44,{writer:_0x21c037})=>{let _0x4fb193='suggestion:'+_0x5baf44['getAttribute']('suggestion-type')+':'+_0x5baf44[_0x2c67('0x63')]('id');return _0x5baf44[_0x2c67('0x63')](_0x2c67('0x102'))&&(_0x4fb193+=':'+_0x5baf44[_0x2c67('0x63')](_0x2c67('0x102'))),_0x21c037[_0x2c67('0xa9')](_0x2c67('0x27'),{'data-name':_0x4fb193});}}),_0x2e35e1[_0x2c67('0x6d')][_0x2c67('0xc6')](_0x2c67('0x11c'))['dataToMarker']({'view':_0x2c67('0xae')}),_0x2e35e1['conversion'][_0x2c67('0xc6')]('editingDowncast')[_0x2c67('0x2c')](_0x1f23eb=>{_0x1f23eb['on']('addMarker:suggestion:formatBlock',_0x4d2978(),{'priority':_0x2c67('0x60')});}),_0x2e35e1[_0x2c67('0x6d')][_0x2c67('0xc6')]('editingDowncast')[_0x2c67('0x2c')](_0x2587c5=>{_0x2587c5['on'](_0x2c67('0xd1'),(_0xf3a6,_0xa998a,_0xddf438)=>{const _0x4df9e1=_0xddf438['mapper'][_0x2c67('0x5e')](_0xa998a[_0x2c67('0x10d')]);if(_0x4df9e1)for(const _0x5d7c07 of _0x4df9e1)_0x5d7c07[_0x2c67('0x5d')](_0x2c67('0x71'))||(_0xddf438[_0x2c67('0x29')]['removeClass']([_0x2c67('0x85'),_0x2c67('0xcb'),_0x2c67('0x92')],_0x5d7c07),_0xddf438[_0x2c67('0x29')][_0x2c67('0x51')](_0x2c67('0xe5'),_0x5d7c07),_0xddf438[_0x2c67('0x107')][_0x2c67('0x70')](_0x5d7c07,_0xa998a[_0x2c67('0x10d')]));},{'priority':_0x2c67('0x60')});}),_0x2e35e1[_0x2c67('0xa7')]['document'][_0x2c67('0xf')](_0x3306c9=>{let _0x418cf9=!0x1;const _0x60c433=Array['from'](_0x2e35e1[_0x2c67('0xa7')]['document'][_0x2c67('0x133')][_0x2c67('0x8c')]()),_0x65b2d2=new Set();for(const {name:_0x5b4375,data:_0x45dc16}of _0x60c433){const {group:_0x5e5c4a,type:_0x47e1dd,id:_0x3fdb8f}=this[_0x2c67('0xe2')](_0x5b4375);if(_0x2c67('0xae')!==_0x5e5c4a)continue;const _0x12f8e8=this[_0x2c67('0xad')][_0x2c67('0xd')](_0x3fdb8f);if(null!=_0x45dc16['newRange']){_0x2c67('0xf0')==_0x47e1dd&&(_0x418cf9=_0x418cf9||$t(_0x45dc16[_0x2c67('0x134')],_0x5b4375,_0x3306c9,_0x2e35e1['model'][_0x2c67('0x17')]));if(_0x45dc16[_0x2c67('0x134')][_0x2c67('0x35')]||'$graveyard'==_0x45dc16['newRange'][_0x2c67('0x42')][_0x2c67('0x111')]||'formatBlock'==_0x47e1dd&&!Rt(_0x45dc16['newRange'])||_0x2c67('0x3a')==_0x47e1dd&&!(!Mt(_0x53b926=_0x45dc16[_0x2c67('0x134')])&&!function(_0x46229e){return _0x46229e[_0x2c67('0x122')][_0x2c67('0x80')]==_0x46229e['end'][_0x2c67('0x124')]&&_0x46229e['start'][_0x2c67('0xb2')];}(_0x53b926)))_0x3306c9[_0x2c67('0x100')](_0x5b4375),_0x418cf9=!0x0;else{if(!_0x12f8e8||!_0x12f8e8[_0x2c67('0x7c')])continue;_0x65b2d2['add'](_0x12f8e8);}}}var _0x53b926;return _0x65b2d2[_0x2c67('0x4a')]>0x0&&(_0x418cf9=!!this[_0x2c67('0xf4')](_0x65b2d2)||_0x418cf9),_0x418cf9;}),_0x2e35e1['model']['document']['registerPostFixer'](_0x36dbfa=>{let _0x381149=!0x1;for(const _0x184e05 of _0x2e35e1[_0x2c67('0xa7')]['document'][_0x2c67('0x133')][_0x2c67('0x32')]()){if(_0x2c67('0x10b')!=_0x184e05[_0x2c67('0x3b')])continue;const _0x1cddb3=_0x184e05[_0x2c67('0x64')]['getShiftedBy'](_0x184e05['length']);if(_0x1cddb3[_0x2c67('0xb2')])for(const _0x9321d4 of this[_0x2c67('0xad')][_0x2c67('0x1')]()){if(_0x9321d4[_0x2c67('0x25')]||!_0x9321d4[_0x2c67('0x7c')])continue;if('formatBlock'!=_0x9321d4[_0x2c67('0x3b')])continue;const _0x295064=_0x9321d4[_0x2c67('0x24')]();if(_0x295064[_0x2c67('0x122')][_0x2c67('0x80')]!=_0x295064['end'][_0x2c67('0x80')]&&_0x295064['end'][_0x2c67('0x30')](_0x184e05['position'])){const _0x4ad1ea=_0x2e35e1[_0x2c67('0xa7')]['createRange'](_0x295064[_0x2c67('0x122')],_0x1cddb3);_0x36dbfa[_0x2c67('0x9e')](_0x9321d4['getFirstMarker'](),{'range':_0x4ad1ea}),_0x381149=!0x0;}}}return _0x381149;}),_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0x77')]['on'](_0x2c67('0x10a'),(_0x2930c6,_0x446d3c,_0x1c407c)=>{if(null==_0x1c407c){const {id:_0x5bdd1d}=this[_0x2c67('0xe2')](_0x446d3c['name']),_0x5903f2=this['_suggestions']['get'](_0x5bdd1d);_0x5903f2&&_0x5903f2[_0x2c67('0xee')](_0x446d3c[_0x2c67('0xc3')]);}}),_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0xde')]['on'](_0x2c67('0x76'),()=>{const _0x7cf65=Array[_0x2c67('0xba')](_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0xde')][_0x2c67('0x133')][_0x2c67('0x8c')]())[_0x2c67('0x130')](_0x52d2f7=>'suggestion'===this[_0x2c67('0xe2')](_0x52d2f7[_0x2c67('0xc3')])[_0x2c67('0x22')]);if(0x0===_0x7cf65[_0x2c67('0xb4')])return;_0x7cf65['sort']((_0x6a8c98,_0x329299)=>{const _0x430c46=_0x6a8c98[_0x2c67('0xfe')][_0x2c67('0xe0')],_0x5e582a=_0x329299[_0x2c67('0xfe')][_0x2c67('0xe0')];return null===_0x430c46&&null===_0x5e582a?0x0:null===_0x430c46&&null!==_0x5e582a?-0x1:null!==_0x430c46&&null===_0x5e582a?0x1:_0x430c46[_0x2c67('0x122')][_0x2c67('0x67')](_0x5e582a['start'])?-0x1:0x1;});const _0x38e6e6=new Set(),_0x38c110=new Set();for(const {name:_0x3f1324,data:_0x466981}of _0x7cf65){const {id:_0x21bece}=this[_0x2c67('0xe2')](_0x3f1324);if(null===_0x466981[_0x2c67('0xe0')]){const _0x42c4dc=this[_0x2c67('0xa4')](_0x3f1324);_0x38c110[_0x2c67('0x2c')](_0x42c4dc);}else{const _0x45333d=this['_suggestions'][_0x2c67('0xd')](_0x21bece);null!==_0x466981[_0x2c67('0x134')]||_0x45333d[_0x2c67('0x7c')]?(_0x38e6e6['add'](_0x45333d[_0x2c67('0x23')]),_0x38c110['add'](_0x45333d)):this[_0x2c67('0x2d')](_0x45333d);}}_0x38c110[_0x2c67('0x4a')]>0x0&&this[_0x2c67('0x114')](_0x38c110);for(const _0x3d3c9d of _0x38e6e6)this[_0x2c67('0xaf')](_0x2c67('0xd4'),_0x3d3c9d);}),_0x2e35e1[_0x2c67('0xa7')]['on'](_0x2c67('0x8d'),(_0x343fb9,_0x27fb6d)=>{const _0x52f7f8=_0x27fb6d[0x0];if(!this[_0x2c67('0xad')]['size'])return;if(!_0x52f7f8[_0x2c67('0x13f')])return;if(_0x52f7f8['batch'][_0x2c67('0x14')]||!_0x52f7f8[_0x2c67('0x15')][_0x2c67('0x12a')])return;let _0x3fc03c,_0xd4e2ab;switch(_0x52f7f8[_0x2c67('0x3b')]){case _0x2c67('0x10b'):_0x3fc03c=_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0xa2')](_0x52f7f8[_0x2c67('0x64')]),_0xd4e2ab=_0x3fc03c[_0x2c67('0xe9')](_0x52f7f8[_0x2c67('0x116')]);break;case _0x2c67('0x6c'):_0x3fc03c=_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0xa2')](_0x52f7f8[_0x2c67('0xbd')]),_0xd4e2ab=_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0xa2')](_0x52f7f8[_0x2c67('0x13d')]);break;case'move':_0x3fc03c=_0x2e35e1[_0x2c67('0xa7')]['createPositionAt'](_0x52f7f8['targetPosition']),_0xd4e2ab=_0x3fc03c[_0x2c67('0xe9')](_0x52f7f8[_0x2c67('0x116')]);break;default:return;}const _0x3d835a=_0x2e35e1[_0x2c67('0xa7')]['createRange'](_0x3fc03c,_0xd4e2ab);_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0x7f')](()=>{for(const {suggestion:_0x43d62a,meta:_0x4cf6e9}of this[_0x2c67('0xa6')](_0x3d835a)){if(_0x43d62a[_0x2c67('0x25')])continue;if('formatInline'==_0x43d62a[_0x2c67('0x3b')])continue;const _0x5b4d0a=_0x43d62a[_0x2c67('0xfe')]&&_0x43d62a[_0x2c67('0xfe')][_0x2c67('0xa0')];('formatBlock'!=_0x43d62a[_0x2c67('0x3b')]||_0x2c67('0x6c')==_0x52f7f8[_0x2c67('0x3b')]&&!_0x5b4d0a)&&(_0x4cf6e9[_0x2c67('0x62')]||_0x2c67('0xe8')==_0x43d62a['type']&&_0x4cf6e9[_0x2c67('0x13b')]||_0x43d62a[_0x2c67('0x24')]()['containsRange'](_0x3d835a)&&this[_0x2c67('0x5b')](_0x43d62a,_0x3fc03c,_0xd4e2ab));}});},{'priority':_0x2c67('0xc2')}),_0x2e35e1[_0x2c67('0xa7')]['on'](_0x2c67('0x86'),(_0x523459,_0x368b03)=>{const _0x41dbc1=_0x368b03[0x0],_0x4543a4=_0x368b03[0x1];if(_0x4543a4&&_0x4543a4[_0x2c67('0xe')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x2c67('0xed')]['value'])return;if(_0x41dbc1[_0x2c67('0x35')])return;const _0x574b75=_0x2e35e1[_0x2c67('0xa7')]['schema'],{start:_0xd823a7,end:_0x54c021}=_0x41dbc1[_0x2c67('0x24')](),_0x5c80f0=_0xd823a7['nodeAfter']&&_0x574b75[_0x2c67('0x8')](_0xd823a7[_0x2c67('0xd0')])?null:_0x574b75[_0x2c67('0x11d')](_0xd823a7,_0x2c67('0x2f')),_0x4b985e=_0x54c021[_0x2c67('0x124')]&&_0x574b75['isLimit'](_0x54c021[_0x2c67('0x124')])?null:_0x574b75['getNearestSelectionRange'](_0x54c021,_0x2c67('0x1c')),_0x2b409e=_0x2e35e1['model'][_0x2c67('0x10f')](_0x5c80f0?_0x5c80f0[_0x2c67('0x122')]:_0xd823a7,_0x4b985e?_0x4b985e[_0x2c67('0xe7')]:_0x54c021);_0x2e35e1['model'][_0x2c67('0x7f')](_0xee82b1=>{this[_0x2c67('0x49')](_0x2b409e);const _0x15feec=_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0x17')][_0x2c67('0x11d')](_0x2b409e['start']);_0x41dbc1['is']('documentSelection')?_0xee82b1[_0x2c67('0x38')](_0x15feec):_0x41dbc1[_0x2c67('0x8f')](_0x15feec);}),_0x523459['stop']();},{'priority':_0x41fd06['normal']+0xa}),_0x2e35e1[_0x2c67('0xa7')]['on'](_0x2c67('0x72'),(_0x4cdb39,_0x5a4ce5)=>{const _0x355738=_0x5a4ce5[_0x5a4ce5['length']-0x1];_0x355738&&_0x355738[_0x2c67('0xe')]||this['_isForcedDefaultExecutionBlock']||this[_0x2c67('0xed')][_0x2c67('0x99')]&&(_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0x7f')](()=>{let _0x46c38f=_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0x72')](_0x5a4ce5[0x0],_0x5a4ce5[0x1],_0x5a4ce5[0x2],{'forceDefaultExecution':!0x0});if(!_0x46c38f)return;_0x4cdb39['return']=_0x46c38f[_0x2c67('0x26')]();const _0x35b0ee=_0x46c38f[_0x2c67('0xe7')][_0x2c67('0x124')],_0x1bd3f9=_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0x17')];_0x35b0ee&&_0x1bd3f9[_0x2c67('0x5c')](_0x35b0ee)&&!_0x1bd3f9[_0x2c67('0xa')](_0x35b0ee)&&(_0x46c38f=_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0x10f')](_0x46c38f[_0x2c67('0x122')],_0x2e35e1[_0x2c67('0xa7')][_0x2c67('0xa2')](_0x35b0ee,_0x2c67('0xe7')))),this[_0x2c67('0x5a')](_0x46c38f);}),_0x4cdb39[_0x2c67('0xb9')]());},{'priority':_0x2c67('0x60')}),this[_0x2c67('0x57')]['commands'][_0x2c67('0x2c')]('trackChanges',this[_0x2c67('0xed')]),this['enableCommand'](_0x2c67('0x10e'));const _0x38e133=new _0x37ca99(_0x2e35e1,this[_0x2c67('0xad')]);_0x2e35e1[_0x2c67('0xda')]['add']('acceptSuggestion',_0x38e133),this[_0x2c67('0xcf')](_0x2c67('0x43'));const _0x4b8dc6=new _0x2e678f(_0x2e35e1,this[_0x2c67('0xad')]);_0x2e35e1[_0x2c67('0xda')][_0x2c67('0x2c')](_0x2c67('0x73'),_0x4b8dc6),this[_0x2c67('0xcf')](_0x2c67('0x73')),_0x2e35e1[_0x2c67('0xda')][_0x2c67('0x2c')](_0x2c67('0xf7'),new _0x8fd8(_0x2e35e1,_0x38e133,this['_suggestions'])),this[_0x2c67('0xcf')]('acceptAllSuggestions'),_0x2e35e1[_0x2c67('0xda')][_0x2c67('0x2c')]('discardAllSuggestions',new _0x8fd8(_0x2e35e1,_0x4b8dc6,this[_0x2c67('0xad')])),this['enableCommand'](_0x2c67('0x16')),_0x2e35e1['commands']['add'](_0x2c67('0xc9'),new _0x5983b4(_0x2e35e1,_0x38e133,this[_0x2c67('0xad')])),this[_0x2c67('0xcf')](_0x2c67('0xc9')),_0x2e35e1[_0x2c67('0xda')][_0x2c67('0x2c')]('discardSelectedSuggestions',new _0x5983b4(_0x2e35e1,_0x4b8dc6,this[_0x2c67('0xad')])),this[_0x2c67('0xcf')]('discardSelectedSuggestions');const _0x1ceaff=_0x2e35e1[_0x2c67('0x9b')][_0x2c67('0xd')](_0x2c67('0xe6'));this[_0x2c67('0x6a')](_0x1ceaff,_0x2c67('0xf5'),(_0x29e976,{threadId:_0x4115b7})=>{const _0x4db7e5=this[_0x2c67('0xad')][_0x2c67('0xd')](_0x4115b7);_0x4db7e5&&_0x4db7e5['commentThread']&&0x1===_0x4db7e5[_0x2c67('0x140')]['length']&&this['_updateSuggestionData'](_0x4115b7,{'hasComments':!0x0});},{'priority':_0x2c67('0xd5')}),this['listenTo'](_0x1ceaff,_0x2c67('0xf9'),(_0x149428,{threadId:_0x3d83de})=>{const _0x297574=this[_0x2c67('0xad')][_0x2c67('0xd')](_0x3d83de);_0x297574&&_0x297574[_0x2c67('0x140')]&&!_0x297574['commentThread'][_0x2c67('0xb4')]&&this[_0x2c67('0x121')](_0x3d83de,{'hasComments':!0x1});},{'priority':_0x2c67('0xd5')});}set['adapter'](_0x105d6b){if(this[_0x2c67('0x20')])throw new _0x12916d(_0x2c67('0xdc'),this);this[_0x2c67('0x20')]=_0x105d6b;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x107610=!0x1,toJSON:_0x2876b5=!0x1}={}){const _0x51ea94=[];for(const _0x36dec8 of this[_0x2c67('0xad')]['values']())_0x107610&&!_0x36dec8[_0x2c67('0x7c')]||_0x51ea94[_0x2c67('0xdb')](_0x36dec8);return _0x2876b5?_0x51ea94[_0x2c67('0x9f')](_0x50d650=>_0x50d650['toJSON']()):_0x51ea94;}[_0x2c67('0xd9')](_0x1b9b1d){const _0x178b32=this[_0x2c67('0xad')][_0x2c67('0xd')](_0x1b9b1d);if(!_0x178b32)throw new _0x12916d('track-changes-suggestion-not-found',this);return _0x178b32;}['hasSuggestion'](_0x1a11b9){return this[_0x2c67('0xad')][_0x2c67('0x9a')](_0x1a11b9);}['addSuggestionData'](_0x2520ee){const {authorId:_0x4b1d83,id:_0xcba6c2,attributes:_0xaa172a}=_0x2520ee,[_0x4be77e,_0x403592]=_0x2520ee[_0x2c67('0x3b')][_0x2c67('0x6c')](':'),_0x3e9815=this[_0x2c67('0xad')][_0x2c67('0xd')](_0xcba6c2)||this[_0x2c67('0xbe')](_0x4be77e,_0x403592,_0xcba6c2,_0x4b1d83,_0xaa172a);if(this[_0x2c67('0x94')](_0x3e9815),this[_0x2c67('0xd6')](_0x3e9815,_0x4be77e,_0x403592||null,_0x4b1d83),_0x3e9815['createdAt']=_0x2520ee[_0x2c67('0xbc')],_0x3e9815[_0x2c67('0x2')]=!0x0,_0xaa172a&&_0xaa172a[_0x2c67('0x83')]){const _0x4d4ff0=_0xaa172a['@external'],_0x262173=this['_getExternalAuthor'](_0x4d4ff0['authorName']);_0x3e9815[_0x2c67('0x7b')]=_0x4d4ff0['createdAt'],_0x3e9815[_0x2c67('0x6b')]=_0x262173,_0x3e9815[_0x2c67('0xca')]=!0x0;}else _0x3e9815[_0x2c67('0x7b')]=_0x2520ee[_0x2c67('0xbc')];switch(_0x2520ee[_0x2c67('0xfe')]&&(_0x3e9815[_0x2c67('0xfe')]=_0x2520ee[_0x2c67('0xfe')]),_0x2520ee['attributes']&&(_0x3e9815[_0x2c67('0x5')]=_0x2520ee['attributes']),this[_0x2c67('0x20')]&&this[_0x2c67('0x20')]['addSuggestion']||(_0x3e9815[_0x2c67('0xab')]=!0x0),this[_0x2c67('0x82')][_0x2c67('0xd')](_0x3e9815)){case'notReady':this[_0x2c67('0x82')][_0x2c67('0x112')](_0x3e9815,'dataReady');break;case _0x2c67('0x19'):_0x3e9815[_0x2c67('0x7c')]?(this[_0x2c67('0x114')](new Set([_0x3e9815])),this['_joinWithAdjacentSuggestions'](new Set([_0x3e9815])),this[_0x2c67('0x82')]['set'](_0x3e9815,'ready'),this['fire'](_0x2c67('0x55'),_0x3e9815)):this[_0x2c67('0x82')][_0x2c67('0x112')](_0x3e9815,'removed');}return _0x3e9815;}[_0x2c67('0x43')](_0x2529d6){this[_0x2c67('0xe')](()=>{this[_0x2c67('0x57')][_0x2c67('0xa7')][_0x2c67('0x7f')](()=>{for(const _0x326b58 of _0x2529d6[_0x2c67('0xb3')]())_0x326b58[_0x2c67('0x9d')]();});});}[_0x2c67('0x73')](_0x8855dd){this[_0x2c67('0xe')](()=>{this[_0x2c67('0x57')][_0x2c67('0xa7')][_0x2c67('0x7f')](()=>{for(const _0x11c123 of _0x8855dd[_0x2c67('0xb3')]())_0x11c123[_0x2c67('0x11')]();});});}['enableCommand'](_0x558cb6,_0xed5299){const _0x52c573=this[_0x2c67('0x57')][_0x2c67('0xda')][_0x2c67('0xd')](_0x558cb6);if(!_0x52c573)throw new _0x12916d(_0x2c67('0x125'),this,{'commandName':_0x558cb6});this['_enabledCommands'][_0x2c67('0x2c')](_0x52c573),_0xed5299&&_0x52c573['on'](_0x2c67('0x11b'),(_0x198b55,_0x5886fd)=>{this[_0x2c67('0xed')][_0x2c67('0x99')]&&(this[_0x2c67('0xac')]||_0x5886fd[_0x2c67('0xb4')]>0x0&&_0x5886fd[_0x5886fd[_0x2c67('0xb4')]-0x1]&&_0x5886fd[_0x5886fd[_0x2c67('0xb4')]-0x1][_0x2c67('0xe')]||(_0x198b55['return']=_0xed5299((..._0x37088b)=>_0x52c573['execute'](..._0x37088b,{'forceDefaultExecution':!0x0}),..._0x5886fd),_0x198b55[_0x2c67('0xb9')]()));},{'priority':_0x2c67('0x60')});}['forceDefaultExecution'](_0x227f37){let _0x682a45,_0x247e31;const _0x1c3f56=this[_0x2c67('0xac')];this[_0x2c67('0xac')]=!0x0;try{_0x682a45=_0x227f37();}catch(_0x5de538){_0x247e31=_0x5de538;}return _0x1c3f56||(this[_0x2c67('0xac')]=!0x1),_0x247e31&&_0x12916d['rethrowUnexpectedError'](_0x247e31,this),_0x682a45;}[_0x2c67('0x5a')](_0x43ba0c,_0x1e3e48=null,_0x1cda64={}){if(_0x43ba0c[_0x2c67('0x35')])return null;const _0xae5ddb=this[_0x2c67('0x57')]['plugins'][_0x2c67('0xd')]('Users')['me'];for(const {suggestion:_0x397567,meta:_0x12e7f2}of this[_0x2c67('0xa6')](_0x43ba0c,_0x2c67('0xe8')))if(_0x12e7f2[_0x2c67('0x13b')]){if(!_0x12e7f2[_0x2c67('0xd7')]){if(_0x12e7f2['containsRangeInObject']){if(!this[_0x2c67('0x141')]||!Ot(_0x397567,_0x1cda64))continue;return _0x397567;}if(Ot(_0x397567,_0x1cda64))return _0x397567;this['_breakSuggestionMarker'](_0x397567,_0x43ba0c['start'],_0x43ba0c[_0x2c67('0xe7')]);break;}if(_0x1e3e48==_0x397567['subType']&&Ot(_0x397567,_0x1cda64)){const _0x8d52be=_0x397567[_0x2c67('0x24')]();return _0x8d52be[_0x2c67('0x122')][_0x2c67('0x30')](_0x43ba0c['end'])?this[_0x2c67('0x13c')](_0x397567,this['_model'][_0x2c67('0x10f')](_0x43ba0c[_0x2c67('0x122')],_0x8d52be[_0x2c67('0xe7')])):this[_0x2c67('0x13c')](_0x397567,this[_0x2c67('0x12b')]['createRange'](_0x8d52be[_0x2c67('0x122')],_0x43ba0c['end'])),_0x397567;}}const _0x21fa62=_0x14b3c2(),_0xae02ef=_0xae5ddb['id'],_0x3a867a=_0x1e3e48?_0x2c67('0x11a')+_0x1e3e48:_0x2c67('0xe8'),_0x4dae1d=this['_setSuggestionData']({'id':_0x21fa62,'type':_0x3a867a,'createdAt':new Date(),'authorId':_0xae02ef,'attributes':_0x1cda64});return this[_0x2c67('0xf1')](_0x3a867a,_0x21fa62,_0xae02ef,_0x43ba0c),_0x4dae1d;}[_0x2c67('0xf2')](_0x1d82a0,_0xebbff6=_0x2c67('0x104'),_0x201025={}){const _0xa5be83=this[_0x2c67('0x57')][_0x2c67('0x9b')][_0x2c67('0xd')](_0x2c67('0x44'))['me'],_0x100469=this[_0x2c67('0xc1')][_0x2c67('0x65')](_0x2c67('0xe8'),_0xebbff6,_0x2c67('0x3d'));for(const _0x44ead9 of this[_0x2c67('0x47')]())if(_0x44ead9[_0x2c67('0x6b')]['id']==_0xa5be83['id']&&'insertion'==_0x44ead9[_0x2c67('0x3b')]&&_0x44ead9[_0x2c67('0x12e')]==_0xebbff6&&Ot(_0x44ead9,_0x201025)&&(_0x100469(_0x44ead9[_0x2c67('0x13e')](),_0x1d82a0)||_0x100469(_0x1d82a0,_0x44ead9[_0x2c67('0x13e')]()))){for(const _0x5b2553 of _0x1d82a0)_0x44ead9[_0x2c67('0x136')](_0x5b2553);return _0x44ead9;}for(const {suggestion:_0x202ff7,meta:_0x4dddfb}of this[_0x2c67('0xa6')](_0x1d82a0,'insertion')){if(!_0x4dddfb['isOwn'])continue;if(!this[_0x2c67('0x141')]&&_0x4dddfb['containsRangeInObject'])continue;if(!Ot(_0x202ff7,_0x201025))continue;let _0x557734=!0x0;for(const _0x425c57 of _0x202ff7['getRanges']())for(const _0x2af66c of _0x1d82a0)if(!_0x425c57[_0x2c67('0x118')](_0x2af66c)){_0x557734=!0x1;break;}if(_0x557734)return _0x202ff7;}const _0x2c91b2=_0x14b3c2(),_0x3e86a4=_0xa5be83['id'],_0x53bdb5='insertion:'+_0xebbff6,_0x390451=this[_0x2c67('0x3c')]({'id':_0x2c91b2,'type':_0x53bdb5,'createdAt':new Date(),'authorId':_0x3e86a4,'attributes':_0x201025});for(const _0x548ca8 of _0x1d82a0)this[_0x2c67('0xf1')](_0x53bdb5,_0x2c91b2,_0x3e86a4,_0x548ca8,_0x368607['getMultiRangeId']());return _0x390451;}[_0x2c67('0x95')](_0x49697a,_0x434517,_0x5158ec=null,_0x3fe7eb={}){if(_0x5158ec=_0x5158ec||Nt(_0x434517),_0x49697a[_0x2c67('0x35')])return null;if(_0x2c67('0x45')===this[_0x2c67('0xc8')]){const _0x5b0834=this[_0x2c67('0xc1')]['getSuggestionCallback']('formatInline',_0x5158ec,_0x2c67('0x9d'));return this[_0x2c67('0xe')](()=>_0x5b0834([_0x49697a],_0x434517,_0x3fe7eb)),null;}const _0x140c97=this[_0x2c67('0x57')][_0x2c67('0x9b')]['get'](_0x2c67('0x44'))['me'],_0x265b54=[];if(_0x2c67('0x7d')!==this['_trackFormatChanges'])for(const {suggestion:_0x2c19a7,meta:_0x171c7a}of this[_0x2c67('0xa6')](_0x49697a,_0x2c67('0xe8')))_0x171c7a[_0x2c67('0x13b')]&&!_0x171c7a['isInsideObject']&&_0x265b54[_0x2c67('0xdb')](..._0x2c19a7['getRanges']());const _0x9ea269=function(_0x52262c,_0x5b7159){const _0x52b49f=[];for(const _0x336a94 of _0x5b7159){const _0x3b7d0a=_0x52262c[_0x2c67('0x90')](_0x336a94);_0x3b7d0a&&_0x52b49f['push'](_0x3b7d0a);}return _0x52b49f;}(_0x49697a,_0x265b54),_0x4d066d=function(_0x220be1,_0x2fc881){const _0x27b7fb=[_0x220be1];for(const _0x28ee14 of _0x2fc881){let _0x544e2b=0x0;for(;_0x544e2b<_0x27b7fb[_0x2c67('0xb4')];){const _0x253b37=_0x27b7fb[_0x544e2b][_0x2c67('0x61')](_0x28ee14);_0x27b7fb[_0x2c67('0xdd')](_0x544e2b,0x1,..._0x253b37),_0x544e2b+=_0x253b37[_0x2c67('0xb4')];}}return _0x27b7fb;}(_0x49697a,_0x265b54);_0x9ea269['length']&&this[_0x2c67('0x12b')][_0x2c67('0x7f')](()=>{for(const _0x5122d1 of _0x9ea269){const _0x429ffb=this['_suggestionFactory']['getSuggestionCallback'](_0x2c67('0xf0'),_0x5158ec,'accept');this[_0x2c67('0xe')](()=>_0x429ffb([_0x5122d1],_0x434517,_0x3fe7eb));}});for(const _0x2adf99 of _0x4d066d){let _0x3d93a1=null,_0x33bbe2=_0x2adf99[_0x2c67('0x122')],_0x461cbe=_0x2adf99['end'];for(const {suggestion:_0xf9ad05,meta:_0x89753a}of this[_0x2c67('0xa6')](_0x2adf99,_0x2c67('0xf0'))){if(!_0x89753a[_0x2c67('0x13b')])continue;if(_0xf9ad05['subType']!=_0x5158ec)continue;if(!Ot(_0xf9ad05,_0x3fe7eb))continue;const _0x990c30=_0xf9ad05['getFirstRange']();if(_0x990c30['containsRange'](_0x2adf99,!0x0))return null;_0x33bbe2=_0x33bbe2[_0x2c67('0x67')](_0x990c30['start'])?_0x33bbe2:_0x990c30['start'],_0x461cbe=_0x461cbe[_0x2c67('0xf3')](_0x990c30[_0x2c67('0xe7')])?_0x461cbe:_0x990c30[_0x2c67('0xe7')],_0x3d93a1?_0x990c30['start'][_0x2c67('0x67')](_0x3d93a1[_0x2c67('0x24')]()[_0x2c67('0x122')])?(_0x3d93a1[_0x2c67('0x1f')](),_0x3d93a1=_0xf9ad05):_0xf9ad05[_0x2c67('0x1f')]():_0x3d93a1=_0xf9ad05;}const _0x132c02=this[_0x2c67('0x12b')][_0x2c67('0x10f')](_0x33bbe2,_0x461cbe);if(_0x3d93a1)this[_0x2c67('0x13c')](_0x3d93a1,_0x132c02);else{const _0x285d5c=_0x14b3c2(),_0x330627=_0x140c97['id'];this[_0x2c67('0x3c')]({'id':_0x285d5c,'type':_0x2c67('0x59')+_0x5158ec,'data':_0x434517,'createdAt':new Date(),'authorId':_0x330627,'attributes':_0x3fe7eb}),this[_0x2c67('0xf1')](_0x2c67('0x59')+_0x5158ec,_0x285d5c,_0x330627,_0x132c02);}}return null;}['markBlockFormat'](_0x579461,_0x4b842c,_0x3004ad=[],_0x6377cb=null,_0x3e872a={}){_0x4b842c[_0x2c67('0x4')]||(_0x4b842c[_0x2c67('0x4')]=_0x4b842c['commandName']),_0x4b842c[_0x2c67('0xa0')]=_0x579461['is'](_0x2c67('0x7a')),_0x6377cb=_0x6377cb||Nt(_0x4b842c);const _0x2a12fa=_0x3004ad[_0x2c67('0x9f')](_0xba290d=>jt(_0xba290d,this[_0x2c67('0x12b')])),_0x1442b6=_0x579461['is']('range')?_0x579461:jt(_0x579461,this[_0x2c67('0x12b')]);if(_0x2c67('0x45')===this[_0x2c67('0xc8')]){const _0x3c7ac0=this[_0x2c67('0xc1')]['getSuggestionCallback'](_0x2c67('0x1b'),_0x6377cb,_0x2c67('0x9d'));return this['forceDefaultExecution'](()=>_0x3c7ac0([_0x1442b6],_0x4b842c,_0x3e872a)),null;}_0x2a12fa['push'](_0x1442b6);let _0x1a5da3=!0x0;for(const _0x37a3e7 of _0x2a12fa)if(!this['_rangeIsInLocalUserInsertion'](_0x37a3e7)){_0x1a5da3=!0x1;break;}if(_0x1a5da3&&_0x2c67('0x7d')!==this[_0x2c67('0xc8')]){const _0x303921=this['_suggestionFactory'][_0x2c67('0x65')](_0x2c67('0x1b'),_0x6377cb,_0x2c67('0x9d'));return this[_0x2c67('0xe')](()=>_0x303921([_0x1442b6],_0x4b842c,_0x3e872a)),null;}let _0x560074=null,_0x40322d=_0x1442b6[_0x2c67('0x122')],_0x1cb8f4=_0x1442b6[_0x2c67('0xe7')];for(const {suggestion:_0x366725,meta:_0x193e44}of this[_0x2c67('0xa6')](_0x1442b6,_0x2c67('0x1b'))){if(!_0x193e44[_0x2c67('0x13b')])continue;if(_0x193e44[_0x2c67('0xd7')]||_0x193e44[_0x2c67('0x62')]||_0x193e44['isInsideObject'])continue;if(_0x366725[_0x2c67('0xfe')]['formatGroupId']!=_0x4b842c[_0x2c67('0x4')])continue;if(!Ot(_0x366725,_0x3e872a))continue;const _0x535f9f=_0x366725[_0x2c67('0x24')]();if(_0x366725[_0x2c67('0x12e')]==_0x6377cb){if(_0x535f9f[_0x2c67('0x118')](_0x1442b6,!0x0))return null;_0x40322d=_0x40322d[_0x2c67('0x67')](_0x535f9f['start'])?_0x40322d:_0x535f9f['start'],_0x1cb8f4=_0x1cb8f4[_0x2c67('0xf3')](_0x535f9f[_0x2c67('0xe7')])?_0x1cb8f4:_0x535f9f[_0x2c67('0xe7')],_0x560074?_0x535f9f[_0x2c67('0x122')][_0x2c67('0x67')](_0x560074['getFirstRange']()[_0x2c67('0x122')])?(_0x560074[_0x2c67('0x1f')](),_0x560074=_0x366725):_0x366725[_0x2c67('0x1f')]():_0x560074=_0x366725;}else{const _0x438262=_0x1442b6[_0x2c67('0x90')](_0x535f9f);this[_0x2c67('0x132')](_0x366725,_0x438262);}}const _0x557f6c=this[_0x2c67('0x57')]['plugins']['get'](_0x2c67('0x44'))['me'],_0x1856f7=_0x14b3c2(),_0x46f408=_0x557f6c['id'];if(_0x560074)return this[_0x2c67('0x13c')](_0x560074,this[_0x2c67('0x12b')][_0x2c67('0x10f')](_0x40322d,_0x1cb8f4)),_0x560074;{const _0x4fa710=this[_0x2c67('0x3c')]({'id':_0x1856f7,'type':'formatBlock:'+_0x6377cb,'data':_0x4b842c,'createdAt':new Date(),'authorId':_0x46f408,'attributes':_0x3e872a});return this['_addSuggestionMarker'](_0x2c67('0x53')+_0x6377cb,_0x1856f7,_0x46f408,this[_0x2c67('0x12b')][_0x2c67('0x10f')](_0x40322d,_0x1cb8f4)),_0x4fa710;}}[_0x2c67('0x9c')](_0x31ac20,_0x40dd3b,_0x2f5873=[],_0xd85339=null,_0x3c6bcd={}){_0x40dd3b['formatGroupId']||(_0x40dd3b[_0x2c67('0x4')]=_0x40dd3b[_0x2c67('0xff')]);const _0x31139c=_0x31ac20[0x0];_0x40dd3b[_0x2c67('0xa0')]=_0x31139c['is']('range'),_0xd85339=_0xd85339||Nt(_0x40dd3b);const _0x570394=_0x2f5873[_0x2c67('0x9f')](_0x3cdf54=>jt(_0x3cdf54,this[_0x2c67('0x12b')])),_0xcb5480=_0x31139c['is']('range')?_0x31ac20:_0x31ac20[_0x2c67('0x9f')](_0x1805fa=>jt(_0x1805fa,this[_0x2c67('0x12b')]));if(_0x2c67('0x45')===this[_0x2c67('0xc8')]){const _0x18b03a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xd85339,_0x2c67('0x9d'));return this[_0x2c67('0xe')](()=>_0x18b03a(_0xcb5480,_0x40dd3b,_0x3c6bcd)),null;}_0x570394[_0x2c67('0xdb')](..._0xcb5480);let _0x48dbd9=!0x0;for(const _0x56ee43 of _0x570394)if(!this['_rangeIsInLocalUserInsertion'](_0x56ee43)){_0x48dbd9=!0x1;break;}if(_0x48dbd9&&_0x2c67('0x7d')!==this[_0x2c67('0xc8')]){const _0x1a9d67=this[_0x2c67('0xc1')][_0x2c67('0x65')](_0x2c67('0x1b'),_0xd85339,_0x2c67('0x9d'));return this['forceDefaultExecution'](()=>_0x1a9d67(_0xcb5480,_0x40dd3b,_0x3c6bcd)),null;}const _0x144181=this[_0x2c67('0x57')][_0x2c67('0x9b')]['get'](_0x2c67('0x44'))['me'];for(const _0x1cc35d of this['getSuggestions']()){if(_0x1cc35d[_0x2c67('0x6b')]['id']!=_0x144181['id'])continue;if('formatBlock'!=_0x1cc35d['type']||_0x1cc35d[_0x2c67('0xfe')][_0x2c67('0x4')]!=_0x40dd3b[_0x2c67('0x4')])continue;if(!Ot(_0x1cc35d,_0x3c6bcd))continue;const _0x3c68de=_0x1cc35d['subType']==_0xd85339;for(let _0x28481e=0x0;_0x28481e<_0xcb5480[_0x2c67('0xb4')];_0x28481e++){const _0x4fa39a=_0xcb5480[_0x28481e];for(const _0x4482f1 of _0x1cc35d[_0x2c67('0x2a')]()){const _0x2915d1=_0x4482f1['getRange']();if(_0x4fa39a[_0x2c67('0x30')](_0x2915d1)){_0x3c68de?(_0xcb5480[_0x2c67('0xdd')](_0x28481e,0x1),_0x28481e--):_0x1cc35d[_0x2c67('0x100')](_0x4482f1['name']);break;}}}}if(0x0==_0xcb5480[_0x2c67('0xb4')])return null;const _0x387063=this['_suggestionFactory'][_0x2c67('0x65')](_0x2c67('0x1b'),_0xd85339,'join');for(const _0xccb967 of this[_0x2c67('0x47')]())if(_0xccb967['author']['id']==_0x144181['id']&&_0x2c67('0x1b')==_0xccb967[_0x2c67('0x3b')]&&_0xccb967[_0x2c67('0xfe')][_0x2c67('0x4')]==_0x40dd3b[_0x2c67('0x4')]&&_0xccb967['subType']==_0xd85339&&Ot(_0xccb967,_0x3c6bcd)&&(_0x387063(_0xccb967[_0x2c67('0x13e')](),_0xcb5480)||_0x387063(_0xcb5480,_0xccb967[_0x2c67('0x13e')]()))){for(const _0x3c5031 of _0xcb5480)_0xccb967[_0x2c67('0x136')](_0x3c5031);return _0xccb967;}const _0x58c7e0=_0x14b3c2(),_0x4aa7cb=_0x144181['id'],_0x5736dd=_0x2c67('0x53')+_0xd85339,_0xdbf4a5=this[_0x2c67('0x3c')]({'id':_0x58c7e0,'type':_0x5736dd,'data':_0x40dd3b,'createdAt':new Date(),'authorId':_0x4aa7cb,'attributes':_0x3c6bcd});for(const _0xf8cd5b of _0xcb5480)this['_addSuggestionMarker'](_0x5736dd,_0x58c7e0,_0x4aa7cb,_0xf8cd5b,_0x368607[_0x2c67('0xb7')]());return _0xdbf4a5;}['markDeletion'](_0x5c7f0e,_0x556165=null,_0x281c8b={}){if(_0x5c7f0e[_0x2c67('0x35')])return null;const _0x4cf962=this['editor'][_0x2c67('0x9b')][_0x2c67('0xd')]('Users')['me'],_0x4f939d=new _0x2a689f(_0x5c7f0e['start'],_0x5c7f0e['end']);for(const {suggestion:_0x178438,meta:_0x5dbc48}of this[_0x2c67('0xa6')](_0x4f939d,_0x2c67('0xe8')))if(_0x5dbc48[_0x2c67('0x13b')]&&!_0x5dbc48[_0x2c67('0xd7')]){if(_0x178438['isMultiRange']){const _0x421a26=_0x178438[_0x2c67('0x13e')]()[_0x2c67('0x130')](_0x4c4ddf=>_0x2c67('0xd3')!=_0x4c4ddf[_0x2c67('0x42')][_0x2c67('0x111')]);_0x421a26[_0x2c67('0xe1')](_0x77b50a=>_0x4f939d[_0x2c67('0x118')](_0x77b50a,!0x0))&&_0x178438[_0x2c67('0x11')]();if(_0x421a26[_0x2c67('0x4e')](_0x102fab=>_0x102fab[_0x2c67('0x118')](_0x4f939d,!0x0))){const _0x3186e0=this[_0x2c67('0xc1')][_0x2c67('0x65')](_0x2c67('0x3a'),_0x556165,_0x2c67('0x9d'));return this[_0x2c67('0xe')](()=>_0x3186e0([_0x4f939d],null,_0x281c8b)),null;}}else{const _0x14e74e=_0x4f939d[_0x2c67('0x90')](_0x178438[_0x2c67('0x24')]());null!==_0x14e74e&&_0x178438[_0x2c67('0x8a')]([_0x14e74e],null,_0x281c8b);}}if(_0x4f939d[_0x2c67('0x135')](),_0x4f939d[_0x2c67('0x35')]||_0x2c67('0xd3')==_0x4f939d[_0x2c67('0x42')][_0x2c67('0x111')])return null;let _0x107b3e=null,_0x53332a=_0x4f939d[_0x2c67('0x122')],_0x2c3060=_0x4f939d[_0x2c67('0xe7')];const _0x303efe=this[_0x2c67('0xa6')](_0x4f939d,_0x2c67('0x3a'));for(const {suggestion:_0x51faeb,meta:_0x1d40cb}of _0x303efe){const _0x41cce3=this['_model']['createRange'](_0x53332a,_0x2c3060);if(_0x1d40cb[_0x2c67('0x13b')]&&(this[_0x2c67('0x141')]||!_0x1d40cb[_0x2c67('0x62')]&&!_0x1d40cb[_0x2c67('0x3e')])){if(_0x51faeb['isMultiRange']){if(!Ot(_0x51faeb,_0x281c8b))continue;let _0x1949ab=!0x0;for(const _0x2e9652 of _0x51faeb[_0x2c67('0x13e')]()){if(_0x2e9652[_0x2c67('0x118')](_0x41cce3,!0x0))return _0x51faeb;_0x41cce3[_0x2c67('0x118')](_0x2e9652)||(_0x1949ab=!0x1);}_0x1949ab&&_0x51faeb[_0x2c67('0x11')]();}else{const _0x48a02b=_0x51faeb[_0x2c67('0x24')]();if(_0x48a02b[_0x2c67('0x118')](_0x41cce3,!0x0))return _0x51faeb;if(!Ot(_0x51faeb,_0x281c8b)){_0x41cce3[_0x2c67('0x118')](_0x48a02b)?_0x51faeb[_0x2c67('0x1f')]():_0x48a02b[_0x2c67('0x66')](_0x53332a)?_0x53332a=_0x48a02b[_0x2c67('0xe7')]:_0x48a02b[_0x2c67('0x66')](_0x2c3060)&&(_0x2c3060=_0x48a02b[_0x2c67('0x122')]);continue;}_0x53332a=_0x53332a[_0x2c67('0x67')](_0x48a02b[_0x2c67('0x122')])?_0x53332a:_0x48a02b[_0x2c67('0x122')],_0x2c3060=_0x2c3060[_0x2c67('0xf3')](_0x48a02b[_0x2c67('0xe7')])?_0x2c3060:_0x48a02b[_0x2c67('0xe7')],_0x281c8b=Object[_0x2c67('0xc5')]({},_0x51faeb['attributes']),_0x107b3e?_0x48a02b[_0x2c67('0x122')][_0x2c67('0x67')](_0x107b3e[_0x2c67('0x24')]()[_0x2c67('0x122')])?(_0x107b3e[_0x2c67('0x1f')](),_0x107b3e=_0x51faeb):_0x51faeb[_0x2c67('0x1f')]():_0x107b3e=_0x51faeb;}}}if(_0x107b3e)return this[_0x2c67('0x13c')](_0x107b3e,this[_0x2c67('0x12b')]['createRange'](_0x53332a,_0x2c3060)),_0x107b3e;{const _0x184573=_0x14b3c2(),_0x551749=this[_0x2c67('0x12b')][_0x2c67('0x10f')](_0x53332a,_0x2c3060),_0x126073=_0x4cf962['id'],_0x3bcfc9=_0x556165?_0x2c67('0x103')+_0x556165:'deletion',_0x1384fa=this['_setSuggestionData']({'id':_0x184573,'type':_0x3bcfc9,'createdAt':new Date(),'authorId':_0x126073,'attributes':_0x281c8b});return this[_0x2c67('0xf1')](_0x3bcfc9,_0x184573,_0x126073,_0x551749),_0x1384fa;}}['markMultiRangeDeletion'](_0x3c589c,_0x34406c=_0x2c67('0x104'),_0x50ba1c={}){const _0x46c7fd=this['editor'][_0x2c67('0x9b')][_0x2c67('0xd')]('Users')['me'],_0x5a9353=_0x3c589c['map'](_0x25a476=>new _0x2a689f(_0x25a476[_0x2c67('0x122')],_0x25a476[_0x2c67('0xe7')])),_0x513260=new Set();for(const {suggestion:_0xe1875e,meta:_0x3b061c}of this[_0x2c67('0xa6')](_0x5a9353,_0x2c67('0xe8')))_0x3b061c[_0x2c67('0x13b')]&&!_0x3b061c[_0x2c67('0xd7')]&&_0x513260[_0x2c67('0x2c')](_0xe1875e);for(const _0x3f443c of _0x513260)if(_0x3f443c[_0x2c67('0x25')]){const _0x449ecc=_0x3f443c[_0x2c67('0x13e')]();(!_0x3f443c['attributes']||!_0x3f443c['attributes']['skipNestingCheck'])&&(_0x449ecc[_0x2c67('0xe1')](_0x510b28=>_0x5a9353[_0x2c67('0x4e')](_0x1ccce9=>_0x1ccce9['containsRange'](_0x510b28,!0x0)))&&_0x3f443c['discard']());if(_0x5a9353[_0x2c67('0xe1')](_0x1d7c63=>_0x449ecc[_0x2c67('0x4e')](_0x3fa2be=>_0x3fa2be[_0x2c67('0x118')](_0x1d7c63,!0x0)))){const _0x5ee53d=this['_suggestionFactory']['getSuggestionCallback'](_0x2c67('0x3a'),_0x34406c,_0x2c67('0x9d'));return this[_0x2c67('0xe')](()=>_0x5ee53d(_0x3c589c,null,_0x50ba1c)),null;}}else{const _0x16a9d1=_0x3f443c[_0x2c67('0x24')]();_0x5a9353[_0x2c67('0x4e')](_0x2ba01c=>_0x2ba01c['containsRange'](_0x16a9d1,!0x0))&&_0x3f443c[_0x2c67('0x11')]();if(_0x5a9353[_0x2c67('0xe1')](_0x49a90f=>_0x16a9d1['containsRange'](_0x49a90f,!0x0))){const _0x234dd4=this[_0x2c67('0xc1')][_0x2c67('0x65')](_0x2c67('0x3a'),_0x34406c,_0x2c67('0x9d'));return this[_0x2c67('0xe')](()=>_0x234dd4(_0x5a9353,null,_0x50ba1c)),null;}}const _0x37e179=this['_suggestionFactory'][_0x2c67('0x65')](_0x2c67('0x3a'),_0x34406c,_0x2c67('0x3d'));let _0xe19f97=null;for(const _0x48d2d0 of this[_0x2c67('0x47')]())if(_0x48d2d0[_0x2c67('0x6b')]['id']==_0x46c7fd['id']&&_0x48d2d0[_0x2c67('0x7c')]&&_0x2c67('0x3a')==_0x48d2d0['type']&&_0x48d2d0['subType']==_0x34406c&&Ot(_0x48d2d0,_0x50ba1c)&&(_0x37e179(_0x48d2d0[_0x2c67('0x13e')](),_0x5a9353)||_0x37e179(_0x5a9353,_0x48d2d0[_0x2c67('0x13e')]()))){if(_0xe19f97){if(_0x48d2d0[_0x2c67('0x140')]&&_0x48d2d0[_0x2c67('0x140')][_0x2c67('0xb4')])continue;for(const _0x3fc9c6 of _0x48d2d0[_0x2c67('0x13e')]())_0xe19f97[_0x2c67('0x52')](_0x3fc9c6)||_0xe19f97['addRange'](_0x3fc9c6);_0x48d2d0[_0x2c67('0x1f')]();}else{_0xe19f97=_0x48d2d0;for(const _0x2b2dc7 of _0x5a9353)_0x48d2d0[_0x2c67('0x52')](_0x2b2dc7)||_0x48d2d0['addRange'](_0x2b2dc7);}}if(_0xe19f97)return _0xe19f97;_0x513260[_0x2c67('0xcd')]();for(const {suggestion:_0x42ebae,meta:_0x4df149}of this[_0x2c67('0xa6')](_0x5a9353,_0x2c67('0x3a')))_0x4df149[_0x2c67('0x13b')]&&(this[_0x2c67('0x141')]||!_0x4df149[_0x2c67('0x62')]&&!_0x4df149[_0x2c67('0x3e')])&&Ot(_0x42ebae,_0x50ba1c)&&_0x513260['add'](_0x42ebae);for(const _0x3fdefa of _0x513260){const _0x532839=_0x3fdefa[_0x2c67('0x13e')]();if(!_0x50ba1c||!_0x50ba1c[_0x2c67('0x74')]){if(_0x5a9353['every'](_0x589c07=>_0x532839[_0x2c67('0x4e')](_0x2256a1=>_0x2256a1['containsRange'](_0x589c07,!0x0))))return _0x3fdefa;}(!_0x3fdefa[_0x2c67('0x5')]||!_0x3fdefa[_0x2c67('0x5')][_0x2c67('0x74')])&&(_0x532839['every'](_0xb280a=>_0x5a9353[_0x2c67('0x4e')](_0x59bc5f=>_0x59bc5f[_0x2c67('0x118')](_0xb280a,!0x0)))&&_0x3fdefa[_0x2c67('0x11')]());}const _0x3579b9=_0x14b3c2(),_0x1fa3f4=_0x46c7fd['id'],_0x3f91f6='deletion:'+_0x34406c,_0x1712d5=this[_0x2c67('0x3c')]({'id':_0x3579b9,'type':_0x3f91f6,'createdAt':new Date(),'authorId':_0x1fa3f4,'attributes':_0x50ba1c});for(const _0x4a226d of _0x5a9353)_0x4a226d[_0x2c67('0x135')](),_0x4a226d['isCollapsed']||_0x2c67('0xd3')==_0x4a226d[_0x2c67('0x42')][_0x2c67('0x111')]||this[_0x2c67('0xf1')](_0x3f91f6,_0x3579b9,_0x1fa3f4,_0x4a226d,_0x368607[_0x2c67('0xb7')]());return _0x1712d5;}[_0x2c67('0x13c')](_0x2d2a42,_0x5e33a9){const _0x1dd409=_0x2d2a42[_0x2c67('0x81')]();this['_model']['change'](_0x5b2eb9=>{_0x5b2eb9['updateMarker'](_0x1dd409,{'range':_0x5e33a9});});}[_0x2c67('0x94')](_0x25d421){const _0x52cae5=_0x25d421['id'],_0x4d167b=this['editor'][_0x2c67('0x139')][_0x2c67('0xd')](_0x2c67('0xa1'));this[_0x2c67('0x128')][_0x2c67('0x101')](_0x52cae5)||this[_0x2c67('0x128')][_0x2c67('0x33')]({'channelId':_0x4d167b,'threadId':_0x52cae5,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1e721c=this['_commentsRepository'][_0x2c67('0x6e')](_0x52cae5);_0x1e721c[_0x2c67('0xb1')](_0x2c67('0x106')),_0x1e721c[_0x2c67('0x106')]=!0x1,_0x25d421[_0x2c67('0x140')]=_0x1e721c;}[_0x2c67('0xd6')](_0x4af61a,_0x46e861,_0x5fe775,_0x285fc4){if(_0x4af61a[_0x2c67('0x3b')]!=_0x46e861||_0x4af61a['subType']!=_0x5fe775||_0x4af61a[_0x2c67('0xaa')]['id']!=_0x285fc4)throw this['editor'][_0x2c67('0x3')]('track-changes-suggestion-data-mismatch'),new _0x12916d('track-changes-suggestion-data-mismatch',this);}[_0x2c67('0x132')](_0x2babfb,_0x4b554c){const _0x60d258=_0x2babfb[_0x2c67('0x24')]();if(_0x4b554c[_0x2c67('0x30')](_0x60d258))_0x2babfb[_0x2c67('0x1f')]();else{if(_0x60d258[_0x2c67('0x118')](_0x4b554c)){const _0x248487=this['_model'][_0x2c67('0xa2')](_0x4b554c['start'][_0x2c67('0x124')],'end');this[_0x2c67('0x13c')](_0x2babfb,this[_0x2c67('0x12b')][_0x2c67('0x10f')](_0x60d258[_0x2c67('0x122')],_0x248487));const _0x271997=_0x14b3c2(),_0x133bd0=_0x2babfb['creator']['id'],_0x480bd4=_0x2babfb[_0x2c67('0x3b')]+':'+_0x2babfb[_0x2c67('0x12e')];this[_0x2c67('0x3c')]({'id':_0x271997,'type':_0x480bd4,'createdAt':new Date(),'authorId':_0x133bd0,'data':_0x2babfb['data'],'attributes':_0x2babfb[_0x2c67('0x5')]});const _0x2fb6f2=this[_0x2c67('0x12b')][_0x2c67('0xa2')](_0x4b554c[_0x2c67('0xe7')][_0x2c67('0x80')],_0x2c67('0xc4')),_0x3ff70b=this[_0x2c67('0x12b')]['createRange'](_0x2fb6f2,_0x60d258['end']);this[_0x2c67('0xf1')](_0x480bd4,_0x271997,_0x133bd0,_0x3ff70b);}else{if(_0x60d258[_0x2c67('0x66')](_0x4b554c[_0x2c67('0x122')])){const _0x537dd4=this[_0x2c67('0x12b')][_0x2c67('0xa2')](_0x4b554c[_0x2c67('0x122')][_0x2c67('0x124')],'end');this[_0x2c67('0x13c')](_0x2babfb,this['_model']['createRange'](_0x60d258[_0x2c67('0x122')],_0x537dd4));}else{const _0x7af79e=this[_0x2c67('0x12b')]['createPositionAt'](_0x4b554c[_0x2c67('0xe7')]['parent'],_0x2c67('0xc4'));this['_setSuggestionRange'](_0x2babfb,this['_model'][_0x2c67('0x10f')](_0x7af79e,_0x60d258['end']));}}}}[_0x2c67('0x78')](_0xd0e464){for(const {suggestion:_0x499b17,meta:_0xcd146c}of this[_0x2c67('0xa6')](_0xd0e464,_0x2c67('0xe8'))){if(!_0xcd146c[_0x2c67('0x13b')])continue;const _0x1f4d75=_0x499b17['getRanges']();for(const _0x2d3bee of _0x1f4d75)if(!_0xd0e464['getDifference'](_0x2d3bee)[_0x2c67('0xb4')])return!0x0;}return!0x1;}[_0x2c67('0x10')](_0x239721){const _0x222810=this[_0x2c67('0x57')][_0x2c67('0x9b')][_0x2c67('0xd')]('Users')[_0x2c67('0x54')](_0x239721);if(!_0x222810)throw new _0x12916d(_0x2c67('0x12f'),this);return _0x222810;}[_0x2c67('0xdf')](_0x4b2f41){const _0x33685e=this['editor']['plugins'][_0x2c67('0xd')](_0x2c67('0x44')),_0x3ffa3a=_0x26d881(_0x2c67('0xb0')+_0x4b2f41),_0x4de70a=_0x33685e[_0x2c67('0x54')](_0x3ffa3a);return _0x4de70a||_0x33685e['addUser']({'id':_0x3ffa3a,'name':_0x4b2f41});}['_createSuggestion'](_0x2619b4,_0x3d4c77,_0x5e4687,_0x38944d,_0x5403c5){const _0x386411=this[_0x2c67('0x10')](_0x38944d),_0x1be287=this[_0x2c67('0xc1')][_0x2c67('0x87')](_0x2619b4,_0x3d4c77,_0x5e4687,_0x386411,_0x5403c5,_0x10f763=>this[_0x2c67('0x121')](_0x5e4687,{'attributes':_0x10f763}));return this[_0x2c67('0x6a')](_0x1be287,_0x2c67('0x9d'),()=>{this[_0x2c67('0x121')](_0x5e4687,{'state':_0x2c67('0x0')});},{'priority':_0x2c67('0x60')}),this[_0x2c67('0x6a')](_0x1be287,'discard',()=>{this['_updateSuggestionData'](_0x5e4687,{'state':_0x2c67('0x39')});},{'priority':_0x2c67('0x60')}),this[_0x2c67('0xad')][_0x2c67('0x112')](_0x5e4687,_0x1be287),this[_0x2c67('0x82')][_0x2c67('0x112')](_0x1be287,_0x2c67('0x21')),_0x1be287;}[_0x2c67('0xe2')](_0x3f63cf){const _0xa6da8=_0x3f63cf[_0x2c67('0x6c')](':');return{'group':_0xa6da8[0x0],'type':_0xa6da8[0x1],'subType':_0xa6da8[_0x2c67('0xb4')]>=0x5?_0xa6da8[0x2]:null,'id':_0xa6da8[_0x2c67('0xb4')]<0x5?_0xa6da8[0x2]:_0xa6da8[0x3],'authorId':_0xa6da8[_0x2c67('0xb4')]<0x5?_0xa6da8[0x3]:_0xa6da8[0x4],'markerCount':0x6==_0xa6da8[_0x2c67('0xb4')]?_0xa6da8[0x5]:null};}[_0x2c67('0x5b')](_0x258334,_0xf6344a,_0x15e3e6){const _0x5e4212=_0x258334[_0x2c67('0x24')](),_0x2a95c4=_0x5e4212[_0x2c67('0x122')],_0x5c976b=_0x5e4212[_0x2c67('0xe7')];this[_0x2c67('0x13c')](_0x258334,this[_0x2c67('0x12b')][_0x2c67('0x10f')](_0x2a95c4,_0xf6344a));const _0x5b989e=_0x14b3c2(),_0x311d8f=_0x258334[_0x2c67('0xaa')]['id'],_0xe95f66=_0x258334[_0x2c67('0x3b')]+(_0x258334['subType']?':'+_0x258334[_0x2c67('0x12e')]:'');this[_0x2c67('0x3c')]({'id':_0x5b989e,'type':_0xe95f66,'createdAt':new Date(),'authorId':_0x311d8f,'originalSuggestionId':_0x258334['id'],'attributes':_0x258334['attributes'],'data':_0x258334[_0x2c67('0xfe')]}),'formatBlock'==_0x258334[_0x2c67('0x3b')]&&(_0x15e3e6=this['_model']['createPositionBefore'](_0x15e3e6['parent'])),this[_0x2c67('0xf1')](_0xe95f66,_0x5b989e,_0x311d8f,this[_0x2c67('0x12b')]['createRange'](_0x15e3e6,_0x5c976b));}[_0x2c67('0xa6')](_0x14e3e2,_0x257d04=null){const _0x11d162=[],_0x345ebe=this[_0x2c67('0x57')][_0x2c67('0x9b')]['get'](_0x2c67('0x44'))['me'];Array[_0x2c67('0xb8')](_0x14e3e2)||(_0x14e3e2=[_0x14e3e2]);for(const _0x4d8fce of this[_0x2c67('0x47')]()){if(!_0x4d8fce[_0x2c67('0x7c')])continue;if(_0x257d04&&_0x4d8fce[_0x2c67('0x3b')]!=_0x257d04)continue;let _0x1aab04=!0x1;for(const _0x4229ed of _0x4d8fce['getRanges']()){for(const _0x20885a of _0x14e3e2){const _0xd37a32=_0x20885a[_0x2c67('0x122')][_0x2c67('0x30')](_0x4229ed[_0x2c67('0xe7')])||_0x20885a[_0x2c67('0xe7')][_0x2c67('0x30')](_0x4229ed[_0x2c67('0x122')]);if(_0xd37a32||_0x20885a[_0x2c67('0x90')](_0x4229ed)){const _0xb46809=_0x20885a['containsRange'](_0x4229ed)&&_t(this[_0x2c67('0x12b')][_0x2c67('0x17')],_0x4229ed[_0x2c67('0x122')],_0x20885a),_0xe52eb3=_0x4229ed[_0x2c67('0x118')](_0x20885a)&&_t(this[_0x2c67('0x12b')][_0x2c67('0x17')],_0x20885a[_0x2c67('0x122')],_0x4229ed);_0x11d162[_0x2c67('0xdb')]({'suggestion':_0x4d8fce,'meta':{'isOwn':_0x345ebe==_0x4d8fce['author'],'isNextTo':_0xd37a32,'isInsideObject':_0xb46809,'containsRangeInObject':_0xe52eb3}}),_0x1aab04=!0x0;break;}}if(_0x1aab04)break;}}return _0x11d162;}[_0x2c67('0xf1')](_0x14c0e3,_0x595b96,_0x9ab734,_0x15e0a1,_0xc9f1f0){this['_model'][_0x2c67('0x7f')](_0x1561d4=>{let _0x13649f='suggestion:'+_0x14c0e3+':'+_0x595b96+':'+_0x9ab734;_0xc9f1f0&&(_0x13649f=_0x13649f+':'+_0xc9f1f0),_0x1561d4[_0x2c67('0x98')](_0x13649f,{'range':_0x15e0a1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x577380){const _0x2dcca5=_0x577380[_0x2c67('0xea')],_0x11f972=_0x577380[_0x2c67('0xfa')];_0x577380[_0x2c67('0xea')]=null,null!=_0x2dcca5&&(_0x2dcca5['next']=null),_0x577380[_0x2c67('0xfa')]=null,null!=_0x11f972&&(_0x11f972[_0x2c67('0xea')]=null),_0x2c67('0x127')==this['_suggestionState'][_0x2c67('0xd')](_0x577380)&&(this['_suggestionState'][_0x2c67('0x112')](_0x577380,'removed'),this[_0x2c67('0xaf')]('suggestionUnloaded',_0x577380,_0x2dcca5,_0x11f972));}[_0x2c67('0x3c')](_0x293bab){const _0x157319=_0x293bab['id'],_0x4808a9=this['addSuggestionData'](_0x293bab);if(this[_0x2c67('0x20')]&&this[_0x2c67('0x20')][_0x2c67('0x41')]){const _0x422583=this['editor'][_0x2c67('0x9b')][_0x2c67('0xd')](_0x2c67('0x9')),_0x382e50=_0x4808a9[_0x2c67('0xc7')],_0x266db7=_0x4808a9['subType']?_0x4808a9[_0x2c67('0x3b')]+':'+_0x4808a9[_0x2c67('0x12e')]:_0x4808a9[_0x2c67('0x3b')],_0x34325d=this[_0x2c67('0x57')]['locale'],_0x40a5c8=_0x422583[_0x2c67('0x2c')](_0x243cd0(_0x34325d,_0x2c67('0x3f'))),_0x299a5a={'id':_0x157319,'type':_0x266db7,'hasComments':_0x382e50,'data':_0x293bab[_0x2c67('0xfe')]||null,'originalSuggestionId':_0x293bab[_0x2c67('0x89')]||null,'attributes':_0x4808a9[_0x2c67('0x5')]};this[_0x2c67('0x20')][_0x2c67('0x41')](_0x299a5a)[_0x2c67('0x117')](_0x1d05ba=>{_0x4808a9['_saved']=!0x0,_0x422583[_0x2c67('0x110')](_0x40a5c8),_0x1d05ba&&_0x1d05ba[_0x2c67('0xbc')]&&(this[_0x2c67('0xad')]['get'](_0x157319)[_0x2c67('0xbc')]=_0x1d05ba[_0x2c67('0xbc')]);})['catch'](_0x51ce95=>{throw _0x34eed0(_0x2c67('0x93')),this['editor'][_0x2c67('0xa7')][_0x2c67('0x48')]({'isUndoable':!0x1},()=>{_0x4808a9[_0x2c67('0x11')]();}),_0x4808a9[_0x2c67('0xce')](),this[_0x2c67('0xad')][_0x2c67('0x1a')](_0x4808a9['id']),this[_0x2c67('0x82')]['delete'](_0x4808a9),_0x51ce95;});}return _0x4808a9;}[_0x2c67('0x121')](_0x192139,_0x547021){const _0x52ae47=this[_0x2c67('0x57')]['plugins'][_0x2c67('0xd')](_0x2c67('0x9')),_0x34f4ab=this['getSuggestion'](_0x192139);if(this['_adapter']&&this['_adapter'][_0x2c67('0x88')]){if(_0x34f4ab[_0x2c67('0xab')]){const _0x312aca=_0x52ae47[_0x2c67('0x2c')](_0x243cd0(this[_0x2c67('0x57')][_0x2c67('0xa8')],'PENDING_ACTION_SUGGESTION'));this[_0x2c67('0x20')][_0x2c67('0x88')](_0x192139,_0x547021)[_0x2c67('0x117')](()=>{_0x52ae47['remove'](_0x312aca);});}else _0x34f4ab['on'](_0x2c67('0x7e'),()=>{this[_0x2c67('0x121')](_0x192139,_0x547021);});}}[_0x2c67('0x13a')](_0x33abed){if(!this[_0x2c67('0x20')]||!this[_0x2c67('0x20')][_0x2c67('0xd9')])throw new _0x12916d(_0x2c67('0xe3'),this);return this[_0x2c67('0x20')][_0x2c67('0xd9')](_0x33abed);}['_handleNewSuggestionMarker'](_0x1ec224){const {id:_0x1ff55b,type:_0x401cbd,subType:_0x4c0674,authorId:_0x40b984}=this[_0x2c67('0xe2')](_0x1ec224),_0x180f93=this['_suggestions'][_0x2c67('0xd')](_0x1ff55b)||this[_0x2c67('0xbe')](_0x401cbd,_0x4c0674,_0x1ff55b,_0x40b984,{});switch(this[_0x2c67('0xd6')](_0x180f93,_0x401cbd,_0x4c0674,_0x40b984),this[_0x2c67('0x82')][_0x2c67('0xd')](_0x180f93)){case'notReady':this[_0x2c67('0x13a')](_0x1ff55b)[_0x2c67('0x117')](_0x42bcb1=>{let _0xf39bec=Promise[_0x2c67('0x13')]();_0x42bcb1[_0x2c67('0xc7')]&&(_0xf39bec=this[_0x2c67('0x128')][_0x2c67('0x11e')]({'channelId':this[_0x2c67('0x57')]['config']['get'](_0x2c67('0xa1')),'threadId':_0x1ff55b})),_0xf39bec['then'](()=>{this[_0x2c67('0x2b')](_0x42bcb1)[_0x2c67('0xab')]=!0x0;});}),this['_suggestionState'][_0x2c67('0x112')](_0x180f93,_0x2c67('0x19'));break;case'removed':this[_0x2c67('0x121')](_0x1ff55b,{'state':_0x2c67('0x68')});case _0x2c67('0xfd'):this[_0x2c67('0x82')]['set'](_0x180f93,'ready'),this[_0x2c67('0xaf')](_0x2c67('0x55'),_0x180f93);break;case _0x2c67('0x127'):this[_0x2c67('0xaf')]('suggestionChanged',_0x180f93);}return _0x180f93['addMarkerName'](_0x1ec224),_0x180f93;}[_0x2c67('0x114')](_0x347c70){const _0x57b543=Array[_0x2c67('0xba')](_0x347c70)[_0x2c67('0x130')](_0x5717aa=>!_0x5717aa[_0x2c67('0x25')]),_0x3315f6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5b05fa=>!_0x5b05fa[_0x2c67('0x25')]),_0x301998=_0x3315f6[_0x2c67('0x130')](_0x44d1be=>!_0x347c70[_0x2c67('0x9a')](_0x44d1be)),_0x1c83bf=new Map(_0x3315f6['map'](_0x3248ea=>[_0x3248ea,this['_suggestionFactory'][_0x2c67('0x65')](_0x3248ea[_0x2c67('0x3b')],_0x3248ea[_0x2c67('0x12e')],_0x2c67('0x36'))])),_0x1b2bb9=new Map(_0x3315f6['map'](_0x5d266e=>[_0x5d266e,_0x5d266e['getFirstRange']()])),_0x11a858=new Set(),_0x32f470=new Set();for(let _0x57b66d=0x0;_0x57b66d<_0x57b543[_0x2c67('0xb4')];_0x57b66d++)_0x306f8f(_0x57b543[_0x57b66d],_0x57b543,_0x57b66d+0x1);for(let _0x8148db=0x0;_0x8148db<_0x57b543['length'];_0x8148db++)_0x306f8f(_0x57b543[_0x8148db],_0x301998,0x0);for(let _0x474735=0x0;_0x474735<_0x57b543['length'];_0x474735++){const _0x5c0b4b=_0x57b543[_0x474735];!_0x32f470[_0x2c67('0x9a')](_0x5c0b4b)&&_0x5c0b4b[_0x2c67('0xea')]&&(_0x5c0b4b[_0x2c67('0xea')][_0x2c67('0xfa')]===_0x5c0b4b&&(_0x5c0b4b[_0x2c67('0xea')]['next']=null),_0x5c0b4b[_0x2c67('0xea')]=null),!_0x11a858[_0x2c67('0x9a')](_0x5c0b4b)&&_0x5c0b4b[_0x2c67('0xfa')]&&(_0x5c0b4b['next']['previous']===_0x5c0b4b&&(_0x5c0b4b[_0x2c67('0xfa')][_0x2c67('0xea')]=null),_0x5c0b4b[_0x2c67('0xfa')]=null);}function _0x306f8f(_0x5d3ad3,_0x21bf81,_0x36f3b1){for(let _0xfe0b46=_0x36f3b1;_0xfe0b46<_0x21bf81[_0x2c67('0xb4')];_0xfe0b46++){const _0x1a3dd6=_0x1148ec(_0x5d3ad3,_0x21bf81[_0xfe0b46]);_0x1a3dd6&&(_0x1a3dd6[0x0]['next']=_0x1a3dd6[0x1],_0x1a3dd6[0x1][_0x2c67('0xea')]=_0x1a3dd6[0x0],_0x11a858['add'](_0x1a3dd6[0x0]),_0x32f470[_0x2c67('0x2c')](_0x1a3dd6[0x1]));}}function _0x1148ec(_0x5d4832,_0x5dfbb5){if(_0x5d4832[_0x2c67('0x6b')]['id']!==_0x5dfbb5['author']['id'])return null;const _0x5284ac=_0x1c83bf[_0x2c67('0xd')](_0x5d4832)(_0x5d4832,_0x5dfbb5,_0x1b2bb9[_0x2c67('0xd')](_0x5d4832),_0x1b2bb9[_0x2c67('0xd')](_0x5dfbb5));if(!_0x5284ac)return null;return _0x1c83bf[_0x2c67('0xd')](_0x5dfbb5)(_0x5d4832,_0x5dfbb5,_0x1b2bb9[_0x2c67('0xd')](_0x5d4832),_0x1b2bb9['get'](_0x5dfbb5))?_0x5284ac[0x1]['commentThread']&&_0x5284ac[0x1][_0x2c67('0x140')][_0x2c67('0xb4')]?null:_0x5284ac:null;}}[_0x2c67('0xf4')](_0x39df63){const _0xf9e1af=Array[_0x2c67('0xba')](_0x39df63),_0x44d045=this[_0x2c67('0x47')]({'skipNotAttached':!0x0}),_0x466419=_0x44d045[_0x2c67('0x130')](_0x3c7ecb=>!_0x39df63[_0x2c67('0x9a')](_0x3c7ecb)),_0x35d575=new Map(_0xf9e1af[_0x2c67('0x9f')](_0xbf9502=>[_0xbf9502,this[_0x2c67('0xc1')]['getSuggestionCallback'](_0xbf9502[_0x2c67('0x3b')],_0xbf9502['subType'],_0x2c67('0x3d'))])),_0x534daa=new Map(_0x44d045[_0x2c67('0x9f')](_0x161f34=>[_0x161f34,_0x161f34[_0x2c67('0x13e')]()]));for(let _0x3e167b=0x0;_0x3e167b<_0xf9e1af['length'];_0x3e167b++){if(_0x5688f0(this,_0xf9e1af[_0x3e167b],_0xf9e1af,_0x3e167b+0x1))return!0x0;}for(let _0x537ad8=0x0;_0x537ad8<_0xf9e1af[_0x2c67('0xb4')];_0x537ad8++){if(_0x5688f0(this,_0xf9e1af[_0x537ad8],_0x466419,0x0))return!0x0;}return!0x1;function _0x5688f0(_0x211444,_0x2f9d83,_0x54d79f,_0x3e5f81){for(let _0x33c78b=_0x3e5f81;_0x33c78b<_0x54d79f[_0x2c67('0xb4')];_0x33c78b++){const _0xead7be=_0x54d79f[_0x33c78b];if(_0xead7be['type']!==_0x2f9d83[_0x2c67('0x3b')]||_0xead7be[_0x2c67('0x6b')]['id']!==_0x2f9d83[_0x2c67('0x6b')]['id']||_0xead7be[_0x2c67('0x12e')]!==_0x2f9d83[_0x2c67('0x12e')])continue;if(!Ut(_0x2f9d83,_0xead7be))continue;const _0x5d88be=_0x35d575[_0x2c67('0xd')](_0x2f9d83),_0x52a6ed=_0x534daa[_0x2c67('0xd')](_0x2f9d83),_0x3e3072=_0x534daa['get'](_0xead7be),_0x525f22=_0x2f9d83[_0x2c67('0x140')]&&_0x2f9d83[_0x2c67('0x140')][_0x2c67('0xb4')],_0x437323=_0xead7be[_0x2c67('0x140')]&&_0xead7be['commentThread']['length'];if(!_0x525f22&&_0x5d88be(_0x3e3072,_0x52a6ed))return _0x211444[_0x2c67('0x2e')](_0xead7be,_0x2f9d83),_0x534daa[_0x2c67('0x1a')](_0x2f9d83),!0x0;if(!_0x437323&&_0x5d88be(_0x52a6ed,_0x3e3072))return _0x211444[_0x2c67('0x2e')](_0x2f9d83,_0xead7be),_0x534daa[_0x2c67('0x1a')](_0xead7be),!0x0;}return!0x1;}}[_0x2c67('0x2e')](_0x370035,_0x13ca36){if(_0x370035[_0x2c67('0x25')])for(const _0x2da569 of _0x13ca36['getRanges']())_0x370035[_0x2c67('0x136')](_0x2da569);else{const _0x21a523=_0x13ca36[_0x2c67('0x24')]()[_0x2c67('0xe7')];this[_0x2c67('0x13c')](_0x370035,this[_0x2c67('0x12b')][_0x2c67('0x10f')](_0x370035[_0x2c67('0x24')]()['start'],_0x21a523));}_0x13ca36['removeMarkers']();}}class Bt{constructor(_0x52bc92){this[_0x2c67('0x4c')]=_0x52bc92,this[_0x2c67('0x12b')]=_0x52bc92[_0x2c67('0xa7')],this[_0x2c67('0x79')]=new Map(),this[_0x2c67('0x34')]=new Map(),this[_0x2c67('0x8b')]();}[_0x2c67('0x87')](_0xf88642,_0x52b6a9,_0x448aec,_0x575c2d,_0x50213c,_0x13532d){return new _0x368607(this[_0x2c67('0x12b')],{'type':_0xf88642,'subType':_0x52b6a9,'id':_0x448aec,'author':_0x575c2d,'creator':_0x575c2d,'attributes':_0x50213c,'onAttributesChange':_0x13532d,'onAccept':(..._0x437ff1)=>this[_0x2c67('0x65')](_0xf88642,_0x52b6a9,_0x2c67('0x9d'))(..._0x437ff1),'onDiscard':(..._0x3d4408)=>this[_0x2c67('0x65')](_0xf88642,_0x52b6a9,_0x2c67('0x11'))(..._0x3d4408)});}[_0x2c67('0x12c')](_0x502ac7,_0x2f8894,_0x441c64,_0x1a7b0a){const _0x1f0fd1=_0x502ac7+':'+_0x2f8894+':'+_0x441c64;this['_customCallbacks'][_0x2c67('0x112')](_0x1f0fd1,_0x1a7b0a);}[_0x2c67('0x65')](_0x3800af,_0x4b9e77,_0x2371db){const _0x5a9f89=_0x3800af+':'+_0x4b9e77+':'+_0x2371db;return this[_0x2c67('0x79')][_0x2c67('0xd')](_0x5a9f89)||this['_defaultCallbacks']['get'](_0x3800af+':'+_0x2371db);}[_0x2c67('0x8b')](){const _0x472c60=()=>!0x1,_0x443cdf=_0x3cbb92=>{_0x3cbb92[_0x2c67('0x18')]((_0xde8635,_0x314a66)=>_0xde8635[_0x2c67('0x122')][_0x2c67('0x67')](_0x314a66[_0x2c67('0x122')])?0x1:-0x1),this[_0x2c67('0x12b')][_0x2c67('0x7f')](_0x20fbfa=>{for(const _0xe7d118 of _0x3cbb92){let _0x62f01c;_0x62f01c=_0xe7d118[_0x2c67('0xe7')][_0x2c67('0xb2')]&&_0xe7d118[_0x2c67('0xe7')][_0x2c67('0x80')]==_0xe7d118[_0x2c67('0x122')][_0x2c67('0xd0')]?_0x20fbfa[_0x2c67('0x31')](_0xe7d118['start'][_0x2c67('0xd0')],'on'):_0x20fbfa[_0x2c67('0x31')](_0xe7d118),this[_0x2c67('0x12b')][_0x2c67('0x86')](_0x62f01c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2a3e20=(_0x2363a8,_0x364113)=>{this[_0x2c67('0x12b')][_0x2c67('0x7f')](_0x2f2adc=>{const {commandName:_0x59324c,commandParams:_0x4066d1=[]}=_0x364113,_0x37b046=_0x2363a8[_0x2c67('0x9f')](_0x274352=>(Mt(_0x274352)&&(_0x274352=this[_0x2c67('0x12b')]['createRange'](_0x274352[_0x2c67('0xe7')])),_0x274352))[_0x2c67('0x130')](_0x33394a=>_0x2c67('0xd3')!==_0x33394a[_0x2c67('0x42')][_0x2c67('0x111')]);if(_0x37b046['length']<0x1)return;const _0x3ccf9a=Array[_0x2c67('0xba')](this[_0x2c67('0x12b')][_0x2c67('0xde')][_0x2c67('0x4d')]['getRanges']())[_0x2c67('0x9f')](_0x443806=>_0x2a689f[_0x2c67('0x69')](_0x443806));_0x2f2adc['setSelection'](_0x37b046);for(const _0x14f4e0 of this['_editor'][_0x2c67('0xda')][_0x2c67('0xda')]())_0x14f4e0[_0x2c67('0xeb')]();_0x4066d1['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x59324c,..._0x4066d1);const _0x3c2f26=_0x3ccf9a['filter'](_0x40d5f1=>_0x2c67('0xd3')!=_0x40d5f1[_0x2c67('0x42')][_0x2c67('0x111')]);_0x3c2f26['length']>0x0&&_0x2f2adc['setSelection'](_0x3c2f26);for(const _0x498c78 of _0x3ccf9a)_0x498c78[_0x2c67('0x135')]();});},_0x5de969=(_0x3a4ced,_0x34a760)=>0x1==_0x3a4ced[_0x2c67('0xb4')]&&0x1==_0x34a760[_0x2c67('0xb4')]&&_0x3a4ced[0x0][_0x2c67('0xe7')]['isEqual'](_0x34a760[0x0][_0x2c67('0x122')]),_0x5920d5=(_0x14d417,_0x4d5511,_0xd09c03,_0x3a4735)=>xt(_0x14d417,_0x4d5511,_0xd09c03,_0x3a4735,this[_0x2c67('0x12b')])?[_0x14d417,_0x4d5511]:xt(_0x4d5511,_0x14d417,_0x3a4735,_0xd09c03,this[_0x2c67('0x12b')])?[_0x4d5511,_0x14d417]:null;this['_defaultCallbacks'][_0x2c67('0x112')]('insertion:accept',_0x472c60),this['_defaultCallbacks'][_0x2c67('0x112')](_0x2c67('0xd8'),_0x443cdf),this[_0x2c67('0x34')][_0x2c67('0x112')](_0x2c67('0xbf'),_0x5de969),this[_0x2c67('0x34')][_0x2c67('0x112')]('insertion:chain',_0x5920d5),this[_0x2c67('0x34')]['set'](_0x2c67('0x37'),_0x443cdf),this[_0x2c67('0x34')][_0x2c67('0x112')]('deletion:discard',_0x472c60),this[_0x2c67('0x34')]['set'](_0x2c67('0xc'),_0x5de969),this[_0x2c67('0x34')][_0x2c67('0x112')](_0x2c67('0x137'),_0x5920d5),this[_0x2c67('0x34')][_0x2c67('0x112')](_0x2c67('0x129'),_0x2a3e20),this[_0x2c67('0x34')][_0x2c67('0x112')]('formatInline:discard',_0x472c60),this['_defaultCallbacks'][_0x2c67('0x112')](_0x2c67('0xc0'),_0x5de969),this[_0x2c67('0x34')][_0x2c67('0x112')](_0x2c67('0xb6'),_0x472c60),this[_0x2c67('0x34')][_0x2c67('0x112')](_0x2c67('0x84'),_0x2a3e20),this[_0x2c67('0x34')][_0x2c67('0x112')]('formatBlock:discard',_0x472c60),this[_0x2c67('0x34')][_0x2c67('0x112')](_0x2c67('0x1d'),_0x5de969),this['_defaultCallbacks'][_0x2c67('0x112')](_0x2c67('0xcc'),_0x472c60);}}function _t(_0x3a8b63,_0x4087e0,_0x2bc9c7){for(const _0x4ef511 of _0x4087e0[_0x2c67('0x80')][_0x2c67('0xe4')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4ef511[_0x2c67('0x42')]==_0x4ef511)return!0x1;if(!_0x2bc9c7['containsItem'](_0x4ef511))return!0x1;if(_0x3a8b63[_0x2c67('0xa')](_0x4ef511)||_0x3a8b63[_0x2c67('0x8')](_0x4ef511))return!0x0;}return!0x1;}function Mt(_0x2e842a){return _0x2e842a[_0x2c67('0xe7')][_0x2c67('0x80')]==_0x2e842a[_0x2c67('0x122')]['nodeAfter']&&_0x2e842a[_0x2c67('0xe7')]['isAtStart'];}function $t(_0x1a05dd,_0x1178b5,_0x95fcc2,_0x57a8c5){const _0x1c86be=_0x465f11=>!_0x465f11['item']['is']('$textProxy')&&!_0x57a8c5[_0x2c67('0xa')](_0x465f11[_0x2c67('0x12d')]),_0xfee2fe=_0x1a05dd[_0x2c67('0x122')]['getLastMatchingPosition'](_0x1c86be),_0x5e0770=_0x1a05dd[_0x2c67('0xe7')][_0x2c67('0xa5')](_0x1c86be,{'direction':'backward'});return(!_0x1a05dd['start'][_0x2c67('0x30')](_0xfee2fe)||!_0x1a05dd[_0x2c67('0xe7')][_0x2c67('0x30')](_0x5e0770))&&(_0xfee2fe[_0x2c67('0x67')](_0x5e0770)?_0x95fcc2['updateMarker'](_0x1178b5,{'range':_0x95fcc2[_0x2c67('0x10f')](_0xfee2fe,_0x5e0770)}):_0x95fcc2['removeMarker'](_0x1178b5),!0x0);}function Nt(_0x3d6a93){return _0x26d881(_0x3d6a93);}function Rt(_0x1df46f){const _0x539c67=_0x1df46f[_0x2c67('0x122')][_0x2c67('0xd0')];return _0x539c67&&_0x539c67['is']('element');}function jt(_0x53d36c,_0x3e46d3){const _0x1ea4db=_0x3e46d3['schema'][_0x2c67('0xa')](_0x53d36c)||_0x3e46d3['schema'][_0x2c67('0x58')](_0x53d36c);return _0x3e46d3[_0x2c67('0x10f')](_0x3e46d3[_0x2c67('0xa2')](_0x53d36c,'before'),_0x1ea4db?_0x3e46d3[_0x2c67('0x119')](_0x53d36c):_0x3e46d3['createPositionAt'](_0x53d36c,_0x2c67('0xe7')));}function xt(_0x4f4ebb,_0x285c57,_0xd6b060,_0xeac180,_0x4b041b){if(!Ut(_0x4f4ebb,_0x285c57))return!0x1;if(_0xd6b060['end']['isEqual'](_0xeac180[_0x2c67('0x122')]))return!0x0;if(_0x4f4ebb['type']!=_0x285c57[_0x2c67('0x3b')])return!0x1;if(!_0xd6b060[_0x2c67('0xe7')][_0x2c67('0xf6')](_0xeac180[_0x2c67('0x122')]))return!0x1;const _0x125a15=_0x4b041b[_0x2c67('0x10f')](_0xd6b060[_0x2c67('0xe7')],_0xeac180[_0x2c67('0x122')])['getWalker']();for(const _0x17b65f of _0x125a15)if([_0x2c67('0xa3'),_0x2c67('0x96')]['includes'](_0x17b65f['type'])&&_0x4b041b['schema']['isLimit'](_0x17b65f[_0x2c67('0x12d')]))return!0x1;return!0x0;}function Ut(_0x17a7ab,_0x479ee5){return!(!_0x17a7ab[_0x2c67('0x2')]||!_0x479ee5[_0x2c67('0x2')])&&_0x5960dc(_0x17a7ab[_0x2c67('0x5')],_0x479ee5['attributes']);}function Ot(_0x122854,_0x40e9c5){const _0x2bb542=Et(_0x122854[_0x2c67('0x5')]),_0xa0a19d=Et(_0x40e9c5);if(!_0x122854['_isDataLoaded'])return!0x1;for(const _0xa3e853 of Object['keys'](_0xa0a19d))if(!_0x5960dc(_0x2bb542[_0xa3e853],_0xa0a19d[_0xa3e853]))return!0x1;return!0x0;}function Et(_0x339fc3){const _0x54b321=Object[_0x2c67('0xc5')]({},_0x339fc3);return delete _0x54b321[_0x2c67('0x74')],delete _0x54b321[_0x2c67('0x120')],_0x54b321;}
23
+ const _0x35a7=['removeMarkers','isArray','_breakSuggestionMarker','formatInline:accept','addUser','toJSON','insertion:accept','selection','insertion','markInlineFormat','_findSuggestions','_joinSuggestions','from','forceDefaultExecution','addHighlight','group','element','createPositionAfter','containerElement','push','getRanges','elementEnd','_customCallbacks','editing','_onDiscard','formatBlock:accept','for','deletion:','_updateSuggestionData','discard','multi','_getAuthorFromId','isMultiRange','formatInline','_splitMarkerName','isOwn','ready','change:activeMarkers','isAfter','schema','removed','skipNestingCheck','nodeAfter','never','removeMarker','track-changes-suggestion-data-mismatch','_registerDefaultCallbacks','registerCustomCallback','getWalker','dataDowncast','start','$textProxy','_createSuggestion','has','batch','root','trackChanges.trackFormatChanges','getItems','detach','change','insertion:discard','_adapter','_model','isObject','track-changes-adapter-missing-getsuggestion','moveTargetPosition','_checkSuggestionCorrectness','always','widget','isRemovable','trackChangesCommand','mapper','containsItem','addRange','isAtStart','value','data','fromRange','multipleBlocks','enqueueChange','getAllAdjacentSuggestions','_mergeNestedSuggestions','TrackChangesEditing','marker-count','addSuggestionData','elementStart','some','hasCommentThread','isTouching','track-changes-suggestion-not-found','addSuggestion','ck-suggestion-marker','_suggestionFactory','markMultiRangeBlockFormat','unbindElementFromMarkerName','targetPosition','CommentsRepository','_suggestionState','createdAt','split','suggestionChanged','newRange','_setSuggestionRange','createSelection','isBefore','type','createPositionAt','isCollapsed','forward','acceptSelectedSuggestions','_defaultCallbacks','locale','isInsideObject','isAtEnd','isDocumentOperation','updateSuggestion','plugins','updateMarker','isIntersectingWithRange','enableReadOnlyMode','getSuggestion','tablePasteChainId','before','rootName','_getExternalAuthor','sort','low','addCommentThread','_isForcedDefaultExecutionBlock','discardSelectedSuggestions','return','open','removeComment','consume','join','_removeSuggestion','formatBlock:discard','howMany','activeMarkers','discardSuggestion','fromCharCode','addMarker:suggestion','deletion','head','createRangeIn','@external','document','listenTo','options','markerName','stopListening','getShiftedBy','isInContent','_cutOutSuggestionMarker','removeAttribute','backward','_isDataLoaded','consumable','default','isLimit','buildSuggestion','trackChanges.mergeNestedSuggestions','data-suggestion','Users','editor','addClass','$graveyard','isBlock','chain','subType','elementToElement','showSuggestionHighlights','nodeBefore','getMarkers','execute','removeClass','setTo','clone','commentThread','after','differ','requires','$marker','markInsertion','includes','assign','_enabledCommands','isNextTo','_descriptionFactory','getAncestors','documentSelection','acceptAllSuggestions','isSelectable','suggestionLoaded','markerReady','external:','item','ck-suggestion-marker--active','getCommentThread','_rangeIsInLocalUserInsertion','filter','attributes','refresh','formatInline:join','markDeletion','formatInline:','config','getSuggestionCallback','stop','markerToHighlight','high','range','ck-suggestion-marker-formatBlock','deleteContent','createPositionBefore','insertion:chain','_setSuggestionData','authoredAt','isExternal','createRange','formatBlock:','author','_editor','name','size','discardAllSuggestions','_saved','oldRange','_addThreadToSuggestion','markerNameToElements','adapter','end','originalSuggestionId','getLastMatchingPosition','add','markers','fire','addMarker','containsRangeInObject','length','accept','formatBlock','formatInline:discard','toViewElement','getFirstRange','containsRange','lowest','formatBlock:join','next','previous','unbind','values','clear','applyOperation','_commentsRepository','suggestion','bindElementToMarker','suggestionUnloaded','map','delete','dataReady','markMultiRangeDeletion','enableCommand','commandName','_joinWithAdjacentSuggestions','getUser','_addSuggestionMarker','rejected','creator','keys','parent','splice','acceptSuggestion','upcast','formatInline:chain','isLocal','conversion','suggestion:','getSuggestions','init','every','addMarker:suggestion:formatBlock','getNearestSelectionRange','notReady','getChangedMarkers','editingDowncast','ck-suggestion-marker-','hasComments','position','_suggestions','insertion:join','collaboration.channelId','writer','PendingActions','isUndo','markMultiRangeInsertion','addComment','_trackFormatChanges','remove','getAttribute','setSelection','isEqual','define','change:_saved','get','commands','PENDING_ACTION_SUGGESTION','_handleNewSuggestionMarker','getMultiRangeId','suggestion-type','resolve','formatGroupId','_refreshSuggestionsChain','insertion:','getFirstMarker','registerPostFixer','getIntersection','set','addMarkerName','containsPosition','normal','then','model','insert','getCustomProperty','catch'];(function(_0x5041ed,_0x35a728){const _0x3c417f=function(_0x2964c4){while(--_0x2964c4){_0x5041ed['push'](_0x5041ed['shift']());}};_0x3c417f(++_0x35a728);}(_0x35a7,0x1b5));const _0x3c41=function(_0x5041ed,_0x35a728){_0x5041ed=_0x5041ed-0x0;let _0x3c417f=_0x35a7[_0x5041ed];return _0x3c417f;};import{Plugin as _0xcc7ad3,PendingActions as _0x2ac684}from'ckeditor5/src/core';import{LiveRange as _0xe5a593}from'ckeditor5/src/engine';import{CKEditorError as _0x149c43,uid as _0x47dbea,priorities as _0xa4659f,logWarning as _0x151902}from'ckeditor5/src/utils';import{toWidget as _0x55a102}from'ckeditor5/src/widget';import{Users as _0x24abd7,hashObject as _0x4ee5c6}from'ckeditor5-collaboration/src/collaboration-core';import _0x3e0ba5 from'./commands/trackchangescommand';import _0x2e3652 from'./commands/acceptsuggestioncommand';import _0x3335a5 from'./commands/discardsuggestioncommand';import _0x19c964 from'./commands/executeonallsuggestionscommand';import _0x2f37ce from'./commands/executeonselectedsuggestionscommand';import _0x32734f from'./suggestion';import _0x3b26fe from'./suggestiondescriptionfactory';import _0x340feb from'./integrations/aiassistant';import _0x49adac from'./integrations/alignment';import _0x75b8ab from'./integrations/basicstyles';import _0x16f2f9 from'./integrations/blockquote';import _0x5c9f03 from'./integrations/ckbox';import _0x4b80ae from'./integrations/codeblock';import _0x231535 from'./integrations/comments';import _0x5787c9 from'./integrations/deletecommand';import _0x4de95f from'./integrations/documentlist';import _0x15b330 from'./integrations/entercommand';import _0xbfce62 from'./integrations/findandreplace';import _0x451e65 from'./integrations/font';import _0xbc165c from'./integrations/formatpainter';import _0x2804bf from'./integrations/heading';import _0x269478 from'./integrations/highlight';import _0x23b6f0 from'./integrations/horizontalline';import _0x41d6b8 from'./integrations/htmlembed';import _0x33c9d1 from'./integrations/image';import _0x1e9e05 from'./integrations/imagereplace';import _0x5eae9f from'./integrations/importword';import _0xa0bc3e from'./integrations/indent';import _0x2afa09 from'./integrations/inputcommand';import _0x1948bc from'./integrations/link';import _0xa7ca2e from'./integrations/list';import _0x3d68ea from'./integrations/listproperties';import _0x4ec19b from'./integrations/mediaembed';import _0x2d3e55 from'./integrations/mention';import _0x5c44f1 from'./integrations/pagebreak';import _0x73cb8e from'./integrations/paragraph';import _0x230057 from'./integrations/removeformat';import _0x4c52d9 from'./integrations/restrictededitingmode';import _0x2e85ed from'./integrations/shiftentercommand';import _0x461d8b from'./integrations/standardeditingmode';import _0x45e382 from'./integrations/style';import _0x714963 from'./integrations/table';import _0x2183e8 from'./integrations/tablemergesplit';import _0x50351a from'./integrations/tableheadings';import _0x4a7d15 from'./integrations/tableclipboard';import _0x4a27bc from'./integrations/tablecolumnresize';import _0x1304cc from'./integrations/template';import _0x5e18df from'./integrations/tableofcontents';import _0x6e5c from'./integrations/title';import _0x3b9799 from'./integrations/undo';import{getTranslation as _0x5dd432}from'./utils/common-translations';import _0x55ec97 from'./integrations/tablecaption';import _0x5e8027 from'./integrations/documentlistproperties';import _0x12e33e from'./integrations/tableproperties';import{isEqual as _0x524132}from'lodash-es';export default class p extends _0xcc7ad3{static get[_0x3c41('0x46')](){return[_0x3c41('0x137'),_0x24abd7,_0x2ac684,_0x340feb,_0x49adac,_0x75b8ab,_0x16f2f9,_0x5c9f03,_0x4b80ae,_0x231535,_0x5787c9,_0x4de95f,_0x5e8027,_0x15b330,_0xbfce62,_0x451e65,_0xbc165c,_0x2804bf,_0x269478,_0x23b6f0,_0x41d6b8,_0x33c9d1,_0x1e9e05,_0x5eae9f,_0xa0bc3e,_0x2afa09,_0x1948bc,_0xa7ca2e,_0x3d68ea,_0x4ec19b,_0x2d3e55,_0x5c44f1,_0x73cb8e,_0x230057,_0x4c52d9,_0x2e85ed,_0x461d8b,_0x45e382,_0x714963,_0x2183e8,_0x50351a,_0x55ec97,_0x4a7d15,_0x4a27bc,_0x5e18df,_0x12e33e,_0x1304cc,_0x6e5c,_0x3b9799];}static get['pluginName'](){return _0x3c41('0x129');}constructor(_0x1d5df1){function _0x495e91(_0x420183){return _0x420183[_0x3c41('0x93')](_0x3ed498=>String[_0x3c41('0x1d')](_0x3ed498))[_0x3c41('0x17')]('');}super(_0x1d5df1),this[_0x3c41('0xce')](_0x3c41('0x1b'),[]),this['on'](_0x3c41('0xfc'),(_0x437041,_0x36feda,_0x490422,_0x30baf7)=>{this['_model']['change'](()=>{for(const _0x313b7a of[..._0x30baf7,..._0x490422])this[_0x3c41('0x115')][_0x3c41('0x7c')][_0x3c41('0x10c')](_0x313b7a)&&_0x1d5df1[_0x3c41('0xee')]['reconvertMarker'](_0x313b7a);});}),this[_0x3c41('0x4d')]=new _0x3b26fe(this[_0x3c41('0x35')][_0x3c41('0xd3')][_0x3c41('0xfe')],this['editor'][_0x3c41('0x0')]),this['_adapter']=null,this[_0x3c41('0x133')]=new Bt(this[_0x3c41('0x35')]),this['_suggestions']=new Map(),this[_0x3c41('0x8f')]=_0x1d5df1[_0x3c41('0x5')][_0x3c41('0xc1')](_0x3c41('0x137')),this['_enabledCommands']=new Set(),this[_0x3c41('0x115')]=this['editor'][_0x3c41('0xd3')],this[_0x3c41('0x138')]=new WeakMap(),this[_0x3c41('0x11')]=!0x1,_0x1d5df1['config'][_0x3c41('0xbf')](_0x3c41('0x10f'),_0x3c41('0x2f')),this['_trackFormatChanges']=_0x1d5df1[_0x3c41('0x5f')][_0x3c41('0xc1')](_0x3c41('0x10f')),_0x1d5df1[_0x3c41('0x5f')][_0x3c41('0xbf')]('trackChanges.mergeNestedSuggestions',!0x0),this[_0x3c41('0x128')]=_0x1d5df1[_0x3c41('0x5f')][_0x3c41('0xc1')](_0x3c41('0x32')),this['trackChangesCommand']=new _0x3e0ba5(_0x1d5df1,this[_0x3c41('0x4b')]),this[_0x495e91([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x495e91([0x34,0x30,0x34,0x36,0x32,0x30,0x34,0x34]);}[_0x3c41('0xa8')](){const _0x534b7c=this['editor'];_0x534b7c[_0x3c41('0xa5')][_0x3c41('0xf1')](_0x3c41('0xae'))[_0x3c41('0x62')]({'model':_0x3c41('0x90'),'view':_0x4c6898=>{const {id:_0x39cb01,type:_0x8dec53}=this[_0x3c41('0xf9')](_0x4c6898[_0x3c41('0x26')]),_0x17bca6=[_0x3c41('0x132'),_0x3c41('0xaf')+_0x8dec53];let _0x804d1b=0xbb8;return this['activeMarkers'][_0x3c41('0x49')](_0x4c6898[_0x3c41('0x26')])&&(_0x17bca6[_0x3c41('0xea')](_0x3c41('0x56')),_0x804d1b=0xbc2),_0x3c41('0x1f')==_0x8dec53&&(_0x804d1b+=0x5),{'classes':_0x17bca6,'attributes':{'data-suggestion':_0x39cb01},'priority':_0x804d1b};}}),_0x534b7c[_0x3c41('0xa5')][_0x3c41('0xf1')](_0x3c41('0x108'))[_0x3c41('0x7b')](_0x2517b1=>{_0x2517b1['on'](_0x3c41('0x1e'),(_0x3b2acb,_0x3245da,_0x5af790)=>{if(!_0x5af790['options']['showSuggestionHighlights'])return;const _0x359e89=_0x3245da[_0x3c41('0x55')];if(!_0x359e89)return;const _0x5662dc=_0x5af790[_0x3c41('0x11e')][_0x3c41('0x84')](_0x359e89);_0x534b7c['model']['schema']['isObject'](_0x359e89)&&_0x5662dc&&!_0x5662dc['getCustomProperty'](_0x3c41('0x11b'))&&_0x5662dc['is'](_0x3c41('0xe9'))&&_0x55a102(_0x5662dc,_0x5af790['writer']);},{'priority':_0x3c41('0x63')});}),_0x534b7c[_0x3c41('0xa5')][_0x3c41('0xf1')](_0x3c41('0x108'))[_0x3c41('0x62')]({'model':_0x3c41('0x90'),'view':(_0x26fde7,_0x2fca5e)=>{if(!_0x2fca5e[_0x3c41('0x25')][_0x3c41('0x3c')])return null;const {type:_0x3740b0}=this[_0x3c41('0xf9')](_0x26fde7['markerName']);return{'classes':[_0x3c41('0x132'),_0x3c41('0xaf')+_0x3740b0],'priority':0xbb8};}});const _0x7c9ab7=({showActiveMarkers:_0x219be0=!0x0}={})=>(_0x326658,_0x4ff732,_0x4f294c)=>{if(!_0x4ff732[_0x3c41('0x55')])return;if(_0x4ff732['item']['is'](_0x3c41('0xde')))return void _0x4f294c[_0x3c41('0x2e')][_0x3c41('0x16')](_0x4ff732['item'],_0x326658['name']);const _0x2c7b1a=_0x4f294c[_0x3c41('0x11e')][_0x3c41('0x84')](_0x4ff732[_0x3c41('0x55')]);if(!(_0x4ff732[_0x3c41('0x55')]['is'](_0x3c41('0xe7'))&&_0x534b7c[_0x3c41('0xd3')]['schema'][_0x3c41('0x38')](_0x4ff732[_0x3c41('0x55')])&&!_0x2c7b1a[_0x3c41('0xd5')]('addHighlight')))return;const {id:_0x4e2cad}=this[_0x3c41('0xf9')](_0x4ff732['markerName']);_0x4f294c[_0x3c41('0xb5')][_0x3c41('0x36')]([_0x3c41('0x132'),'ck-suggestion-marker-formatBlock'],_0x2c7b1a),_0x4f294c[_0x3c41('0xb5')]['setAttribute'](_0x3c41('0x33'),_0x4e2cad,_0x2c7b1a),_0x4f294c[_0x3c41('0x11e')][_0x3c41('0x91')](_0x2c7b1a,_0x4ff732[_0x3c41('0x26')]),_0x219be0&&(this[_0x3c41('0x1b')]['includes'](_0x4ff732[_0x3c41('0x26')])?_0x4f294c[_0x3c41('0xb5')][_0x3c41('0x36')](_0x3c41('0x56'),_0x2c7b1a):_0x4f294c[_0x3c41('0xb5')][_0x3c41('0x40')](_0x3c41('0x56'),_0x2c7b1a));for(const _0x252ed6 of _0x534b7c[_0x3c41('0xd3')][_0x3c41('0x21')](_0x4ff732[_0x3c41('0x55')])[_0x3c41('0x110')]())_0x4f294c[_0x3c41('0x2e')][_0x3c41('0x16')](_0x252ed6,_0x326658[_0x3c41('0x70')]);_0x4f294c[_0x3c41('0x2e')][_0x3c41('0x16')](_0x4ff732[_0x3c41('0x55')],_0x326658['name']);};_0x534b7c['conversion']['for'](_0x3c41('0x108'))[_0x3c41('0x7b')](_0x361555=>{_0x361555['on'](_0x3c41('0xaa'),(_0x18d60e,_0x51404c,_0x26ab48)=>{_0x26ab48['options'][_0x3c41('0x3c')]&&_0x7c9ab7({'showActiveMarkers':!0x1})(_0x18d60e,_0x51404c,_0x26ab48);},{'priority':'highest'});}),_0x534b7c[_0x3c41('0xa5')][_0x3c41('0xf1')]('dataDowncast')['markerToData']({'model':_0x3c41('0x90'),'view':(_0x3f3dd7,_0x2f2a5b)=>_0x2f2a5b[_0x3c41('0x25')]['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3f3dd7['substr'](0xb)}}),_0x534b7c[_0x3c41('0xa5')][_0x3c41('0xf1')](_0x3c41('0xa2'))[_0x3c41('0x3b')]({'view':{'name':_0x3c41('0x90'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3ae280,{writer:_0x238952})=>{let _0x279040=_0x3c41('0xa6')+_0x3ae280[_0x3c41('0xbc')](_0x3c41('0xc6'))+':'+_0x3ae280['getAttribute']('id');return _0x3ae280[_0x3c41('0xbc')](_0x3c41('0x12a'))&&(_0x279040+=':'+_0x3ae280[_0x3c41('0xbc')](_0x3c41('0x12a'))),_0x238952['createElement'](_0x3c41('0x47'),{'data-name':_0x279040});}}),_0x534b7c[_0x3c41('0xa5')][_0x3c41('0xf1')](_0x3c41('0xa2'))['dataToMarker']({'view':'suggestion'}),_0x534b7c[_0x3c41('0xa5')][_0x3c41('0xf1')]('editingDowncast')[_0x3c41('0x7b')](_0x4b276a=>{_0x4b276a['on'](_0x3c41('0xaa'),_0x7c9ab7(),{'priority':_0x3c41('0x63')});}),_0x534b7c['conversion'][_0x3c41('0xf1')](_0x3c41('0xae'))[_0x3c41('0x7b')](_0x9e8108=>{_0x9e8108['on']('removeMarker:suggestion:formatBlock',(_0x289894,_0x3d81dc,_0x324a27)=>{const _0x23cc36=_0x324a27[_0x3c41('0x11e')][_0x3c41('0x76')](_0x3d81dc[_0x3c41('0x26')]);if(_0x23cc36)for(const _0x450795 of _0x23cc36)_0x450795[_0x3c41('0xd5')](_0x3c41('0xe5'))||(_0x324a27['writer'][_0x3c41('0x40')]([_0x3c41('0x132'),_0x3c41('0x65'),_0x3c41('0x56')],_0x450795),_0x324a27[_0x3c41('0xb5')][_0x3c41('0x2b')](_0x3c41('0x33'),_0x450795),_0x324a27[_0x3c41('0x11e')][_0x3c41('0x135')](_0x450795,_0x3d81dc[_0x3c41('0x26')]));},{'priority':_0x3c41('0x63')});}),_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x23')]['registerPostFixer'](_0x33a103=>{let _0x2dee42=!0x1;const _0x509a28=Array['from'](_0x534b7c['model'][_0x3c41('0x23')][_0x3c41('0x45')][_0x3c41('0xad')]()),_0x380aa7=new Set();for(const {name:_0x21b7bb,data:_0x5ab445}of _0x509a28){const {group:_0x2daa5f,type:_0x68280a,id:_0x421689}=this[_0x3c41('0xf9')](_0x21b7bb);if(_0x3c41('0x90')!==_0x2daa5f)continue;const _0x263633=this['_suggestions'][_0x3c41('0xc1')](_0x421689);if(null!=_0x5ab445[_0x3c41('0x13c')]){_0x3c41('0xf8')==_0x68280a&&(_0x2dee42=_0x2dee42||$t(_0x5ab445['newRange'],_0x21b7bb,_0x33a103,_0x534b7c['model'][_0x3c41('0xfe')]));if(_0x5ab445['newRange']['isCollapsed']||_0x3c41('0x37')==_0x5ab445[_0x3c41('0x13c')][_0x3c41('0x10e')][_0x3c41('0xc')]||_0x3c41('0x82')==_0x68280a&&!Rt(_0x5ab445[_0x3c41('0x13c')])||_0x3c41('0x1f')==_0x68280a&&!(!Mt(_0x3606d2=_0x5ab445['newRange'])&&!function(_0x4fa01b){return _0x4fa01b[_0x3c41('0x109')][_0x3c41('0x9f')]==_0x4fa01b[_0x3c41('0x78')][_0x3c41('0x3d')]&&_0x4fa01b[_0x3c41('0x109')][_0x3c41('0x2')];}(_0x3606d2)))_0x33a103[_0x3c41('0x103')](_0x21b7bb),_0x2dee42=!0x0;else{if(!_0x263633||!_0x263633[_0x3c41('0x29')])continue;_0x380aa7[_0x3c41('0x7b')](_0x263633);}}}var _0x3606d2;return _0x380aa7[_0x3c41('0x71')]>0x0&&(_0x2dee42=!!this[_0x3c41('0x99')](_0x380aa7)||_0x2dee42),_0x2dee42;}),_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x23')][_0x3c41('0xcc')](_0xd79fc8=>{let _0xfdca99=!0x1;for(const _0x1eaba1 of _0x534b7c['model'][_0x3c41('0x23')][_0x3c41('0x45')]['getChanges']()){if(_0x3c41('0xd4')!=_0x1eaba1['type'])continue;const _0x4db876=_0x1eaba1[_0x3c41('0xb1')][_0x3c41('0x28')](_0x1eaba1[_0x3c41('0x80')]);if(_0x4db876['isAtEnd'])for(const _0x874c97 of this[_0x3c41('0xb2')][_0x3c41('0x8c')]()){if(_0x874c97[_0x3c41('0xf7')]||!_0x874c97[_0x3c41('0x29')])continue;if('formatBlock'!=_0x874c97[_0x3c41('0x140')])continue;const _0x12d53f=_0x874c97[_0x3c41('0x85')]();if(_0x12d53f['start'][_0x3c41('0x9f')]!=_0x12d53f[_0x3c41('0x78')]['parent']&&_0x12d53f[_0x3c41('0x78')][_0x3c41('0xbe')](_0x1eaba1['position'])){const _0x45bfe7=_0x534b7c['model'][_0x3c41('0x6c')](_0x12d53f[_0x3c41('0x109')],_0x4db876);_0xd79fc8[_0x3c41('0x6')](_0x874c97['getFirstMarker'](),{'range':_0x45bfe7}),_0xfdca99=!0x0;}}}return _0xfdca99;}),_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x7c')]['on']('update:suggestion',(_0xadd441,_0x2e012a,_0x16087a)=>{if(null==_0x16087a){const {id:_0x201009}=this['_splitMarkerName'](_0x2e012a['name']),_0x3271c1=this['_suggestions'][_0x3c41('0xc1')](_0x201009);_0x3271c1&&_0x3271c1[_0x3c41('0xcf')](_0x2e012a[_0x3c41('0x70')]);}}),_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x23')]['on']('change:data',()=>{const _0x13db48=Array[_0x3c41('0xe3')](_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x23')]['differ']['getChangedMarkers']())['filter'](_0x172e90=>_0x3c41('0x90')===this[_0x3c41('0xf9')](_0x172e90[_0x3c41('0x70')])[_0x3c41('0xe6')]);if(0x0===_0x13db48[_0x3c41('0x80')])return;_0x13db48['sort']((_0x3b8b1a,_0x6fb5ec)=>{const _0x56ad65=_0x3b8b1a[_0x3c41('0x123')][_0x3c41('0x74')],_0x5468d9=_0x6fb5ec['data'][_0x3c41('0x74')];return null===_0x56ad65&&null===_0x5468d9?0x0:null===_0x56ad65&&null!==_0x5468d9?-0x1:null!==_0x56ad65&&null===_0x5468d9?0x1:_0x56ad65[_0x3c41('0x109')][_0x3c41('0x13f')](_0x5468d9[_0x3c41('0x109')])?-0x1:0x1;});const _0x4357db=new Set(),_0x168812=new Set();for(const {name:_0x14aed1,data:_0x14514c}of _0x13db48){const {id:_0x1f0155}=this[_0x3c41('0xf9')](_0x14aed1);if(null===_0x14514c[_0x3c41('0x74')]){const _0xb8b0b=this[_0x3c41('0xc4')](_0x14aed1);_0x168812[_0x3c41('0x7b')](_0xb8b0b);}else{const _0x29e495=this['_suggestions'][_0x3c41('0xc1')](_0x1f0155);null!==_0x14514c[_0x3c41('0x13c')]||_0x29e495[_0x3c41('0x29')]?(_0x4357db[_0x3c41('0x7b')](_0x29e495[_0x3c41('0x20')]),_0x168812[_0x3c41('0x7b')](_0x29e495)):this[_0x3c41('0x18')](_0x29e495);}}_0x168812['size']>0x0&&this[_0x3c41('0xc9')](_0x168812);for(const _0x2fd383 of _0x4357db)this['fire'](_0x3c41('0x13b'),_0x2fd383);}),_0x534b7c[_0x3c41('0xd3')]['on'](_0x3c41('0x8e'),(_0x191441,_0x36a97c)=>{const _0x26529b=_0x36a97c[0x0];if(!this['_suggestions'][_0x3c41('0x71')])return;if(!_0x26529b[_0x3c41('0x3')])return;if(_0x26529b[_0x3c41('0x10d')][_0x3c41('0xb7')]||!_0x26529b[_0x3c41('0x10d')][_0x3c41('0xa4')])return;let _0x298d93,_0x18e41d;switch(_0x26529b[_0x3c41('0x140')]){case _0x3c41('0xd4'):_0x298d93=_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x141')](_0x26529b['position']),_0x18e41d=_0x298d93[_0x3c41('0x28')](_0x26529b[_0x3c41('0x1a')]);break;case _0x3c41('0x13a'):_0x298d93=_0x534b7c[_0x3c41('0xd3')]['createPositionAt'](_0x26529b['splitPosition']),_0x18e41d=_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x141')](_0x26529b[_0x3c41('0x118')]);break;case'move':_0x298d93=_0x534b7c[_0x3c41('0xd3')]['createPositionAt'](_0x26529b[_0x3c41('0x136')]),_0x18e41d=_0x298d93[_0x3c41('0x28')](_0x26529b['howMany']);break;default:return;}const _0x52ddc0=_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x6c')](_0x298d93,_0x18e41d);_0x534b7c[_0x3c41('0xd3')]['change'](()=>{for(const {suggestion:_0x338fc0,meta:_0x3eef42}of this['_findSuggestions'](_0x52ddc0)){if(_0x338fc0[_0x3c41('0xf7')])continue;if(_0x3c41('0xf8')==_0x338fc0[_0x3c41('0x140')])continue;const _0x530550=_0x338fc0[_0x3c41('0x123')]&&_0x338fc0['data'][_0x3c41('0x125')];(_0x3c41('0x82')!=_0x338fc0['type']||_0x3c41('0x13a')==_0x26529b[_0x3c41('0x140')]&&!_0x530550)&&(_0x3eef42[_0x3c41('0x7f')]||_0x3c41('0xdf')==_0x338fc0[_0x3c41('0x140')]&&_0x3eef42[_0x3c41('0xfa')]||_0x338fc0['getFirstRange']()[_0x3c41('0x86')](_0x52ddc0)&&this[_0x3c41('0xd9')](_0x338fc0,_0x298d93,_0x18e41d));}});},{'priority':_0x3c41('0x87')}),_0x534b7c[_0x3c41('0xd3')]['on'](_0x3c41('0x66'),(_0xcdc238,_0x1924dd)=>{const _0xe3ce25=_0x1924dd[0x0],_0x7d7070=_0x1924dd[0x1];if(_0x7d7070&&_0x7d7070['forceDefaultExecution'])return;if(this[_0x3c41('0x11')])return;if(!this['trackChangesCommand'][_0x3c41('0x122')])return;if(_0xe3ce25['isCollapsed'])return;const _0x3b3893=_0x534b7c[_0x3c41('0xd3')][_0x3c41('0xfe')],{start:_0x38469d,end:_0x2726aa}=_0xe3ce25['getFirstRange'](),_0x58b33e=_0x38469d[_0x3c41('0x101')]&&_0x3b3893[_0x3c41('0x30')](_0x38469d[_0x3c41('0x101')])?null:_0x3b3893[_0x3c41('0xab')](_0x38469d,_0x3c41('0x143')),_0x257c1f=_0x2726aa['nodeBefore']&&_0x3b3893[_0x3c41('0x30')](_0x2726aa[_0x3c41('0x3d')])?null:_0x3b3893[_0x3c41('0xab')](_0x2726aa,'backward'),_0x4c105c=_0x534b7c[_0x3c41('0xd3')]['createRange'](_0x58b33e?_0x58b33e['start']:_0x38469d,_0x257c1f?_0x257c1f[_0x3c41('0x78')]:_0x2726aa);_0x534b7c[_0x3c41('0xd3')]['change'](_0x597fa4=>{this[_0x3c41('0x5d')](_0x4c105c);const _0x1a89fb=_0x534b7c['model'][_0x3c41('0xfe')][_0x3c41('0xab')](_0x4c105c[_0x3c41('0x109')]);_0xe3ce25['is'](_0x3c41('0x4f'))?_0x597fa4['setSelection'](_0x1a89fb):_0xe3ce25[_0x3c41('0x41')](_0x1a89fb);}),_0xcdc238[_0x3c41('0x61')]();},{'priority':_0xa4659f[_0x3c41('0xd1')]+0xa}),_0x534b7c['model']['on']('insertContent',(_0x213975,_0x208817)=>{const _0x41b2c7=_0x208817[_0x208817[_0x3c41('0x80')]-0x1];_0x41b2c7&&_0x41b2c7[_0x3c41('0xe4')]||this[_0x3c41('0x11')]||this[_0x3c41('0x11d')][_0x3c41('0x122')]&&(_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x112')](()=>{let _0x558c10=_0x534b7c[_0x3c41('0xd3')]['insertContent'](_0x208817[0x0],_0x208817[0x1],_0x208817[0x2],{'forceDefaultExecution':!0x0});if(!_0x558c10)return;_0x213975[_0x3c41('0x13')]=_0x558c10[_0x3c41('0x42')]();const _0x3eeae6=_0x558c10[_0x3c41('0x78')][_0x3c41('0x3d')],_0x15261e=_0x534b7c['model'][_0x3c41('0xfe')];_0x3eeae6&&_0x15261e[_0x3c41('0x38')](_0x3eeae6)&&!_0x15261e[_0x3c41('0x116')](_0x3eeae6)&&(_0x558c10=_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x6c')](_0x558c10['start'],_0x534b7c[_0x3c41('0xd3')][_0x3c41('0x141')](_0x3eeae6,_0x3c41('0x78')))),this[_0x3c41('0x48')](_0x558c10);}),_0x213975[_0x3c41('0x61')]());},{'priority':'high'}),this[_0x3c41('0x35')][_0x3c41('0xc2')][_0x3c41('0x7b')]('trackChanges',this['trackChangesCommand']),this[_0x3c41('0x97')]('trackChanges');const _0x1ca2b7=new _0x2e3652(_0x534b7c,this[_0x3c41('0xb2')]);_0x534b7c[_0x3c41('0xc2')][_0x3c41('0x7b')](_0x3c41('0xa1'),_0x1ca2b7),this['enableCommand'](_0x3c41('0xa1'));const _0x1414b0=new _0x3335a5(_0x534b7c,this['_suggestions']);_0x534b7c[_0x3c41('0xc2')]['add'](_0x3c41('0x1c'),_0x1414b0),this[_0x3c41('0x97')](_0x3c41('0x1c')),_0x534b7c[_0x3c41('0xc2')][_0x3c41('0x7b')](_0x3c41('0x50'),new _0x19c964(_0x534b7c,_0x1ca2b7,this[_0x3c41('0xb2')])),this[_0x3c41('0x97')]('acceptAllSuggestions'),_0x534b7c[_0x3c41('0xc2')][_0x3c41('0x7b')](_0x3c41('0x72'),new _0x19c964(_0x534b7c,_0x1414b0,this[_0x3c41('0xb2')])),this[_0x3c41('0x97')](_0x3c41('0x72')),_0x534b7c['commands'][_0x3c41('0x7b')](_0x3c41('0x144'),new _0x2f37ce(_0x534b7c,_0x1ca2b7,this[_0x3c41('0xb2')])),this[_0x3c41('0x97')](_0x3c41('0x144')),_0x534b7c['commands'][_0x3c41('0x7b')]('discardSelectedSuggestions',new _0x2f37ce(_0x534b7c,_0x1414b0,this[_0x3c41('0xb2')])),this[_0x3c41('0x97')](_0x3c41('0x12'));const _0x158eeb=_0x534b7c[_0x3c41('0x5')]['get'](_0x3c41('0x137'));this['listenTo'](_0x158eeb,_0x3c41('0xb9'),(_0x2bcd81,{threadId:_0x1e9f45})=>{const _0x2cc7bb=this['_suggestions'][_0x3c41('0xc1')](_0x1e9f45);_0x2cc7bb&&_0x2cc7bb[_0x3c41('0x43')]&&0x1===_0x2cc7bb[_0x3c41('0x43')][_0x3c41('0x80')]&&this[_0x3c41('0xf3')](_0x1e9f45,{'hasComments':!0x0});},{'priority':_0x3c41('0xf')}),this['listenTo'](_0x158eeb,_0x3c41('0x15'),(_0x48f8f3,{threadId:_0x2098d6})=>{const _0x4786bc=this[_0x3c41('0xb2')]['get'](_0x2098d6);_0x4786bc&&_0x4786bc[_0x3c41('0x43')]&&!_0x4786bc[_0x3c41('0x43')]['length']&&this[_0x3c41('0xf3')](_0x2098d6,{'hasComments':!0x1});},{'priority':_0x3c41('0xf')});}set[_0x3c41('0x77')](_0x3773a4){if(this['_adapter'])throw new _0x149c43('track-changes-adapter-already-set',this);this['_adapter']=_0x3773a4;}get[_0x3c41('0x77')](){return this[_0x3c41('0x114')];}['getSuggestions']({skipNotAttached:_0x45cf2a=!0x1,toJSON:_0x45ae6c=!0x1}={}){const _0x1577bb=[];for(const _0x349db3 of this[_0x3c41('0xb2')][_0x3c41('0x8c')]())_0x45cf2a&&!_0x349db3[_0x3c41('0x29')]||_0x1577bb[_0x3c41('0xea')](_0x349db3);return _0x45ae6c?_0x1577bb['map'](_0x3098f5=>_0x3098f5[_0x3c41('0xdc')]()):_0x1577bb;}[_0x3c41('0x9')](_0x26ea28){const _0x4c0767=this[_0x3c41('0xb2')]['get'](_0x26ea28);if(!_0x4c0767)throw new _0x149c43(_0x3c41('0x130'),this);return _0x4c0767;}['hasSuggestion'](_0x5e817f){return this['_suggestions']['has'](_0x5e817f);}['addSuggestionData'](_0xa4d500){const {authorId:_0x544359,id:_0x5e6e30,attributes:_0x1f75a3}=_0xa4d500,[_0x279f8d,_0xc0548]=_0xa4d500['type'][_0x3c41('0x13a')](':'),_0x2b2975=this[_0x3c41('0xb2')]['get'](_0x5e6e30)||this[_0x3c41('0x10b')](_0x279f8d,_0xc0548,_0x5e6e30,_0x544359,_0x1f75a3);if(this[_0x3c41('0x75')](_0x2b2975),this[_0x3c41('0x119')](_0x2b2975,_0x279f8d,_0xc0548||null,_0x544359),_0x2b2975['createdAt']=_0xa4d500[_0x3c41('0x139')],_0x2b2975[_0x3c41('0x2d')]=!0x0,_0x1f75a3&&_0x1f75a3['@external']){const _0x9a1c45=_0x1f75a3[_0x3c41('0x22')],_0x29dbe8=this[_0x3c41('0xd')](_0x9a1c45['authorName']);_0x2b2975[_0x3c41('0x6a')]=_0x9a1c45[_0x3c41('0x139')],_0x2b2975[_0x3c41('0x6e')]=_0x29dbe8,_0x2b2975[_0x3c41('0x6b')]=!0x0;}else _0x2b2975[_0x3c41('0x6a')]=_0xa4d500[_0x3c41('0x139')];switch(_0xa4d500[_0x3c41('0x123')]&&(_0x2b2975[_0x3c41('0x123')]=_0xa4d500['data']),_0xa4d500[_0x3c41('0x5a')]&&(_0x2b2975[_0x3c41('0x5a')]=_0xa4d500[_0x3c41('0x5a')]),this[_0x3c41('0x114')]&&this[_0x3c41('0x114')][_0x3c41('0x131')]||(_0x2b2975[_0x3c41('0x73')]=!0x0),this[_0x3c41('0x138')][_0x3c41('0xc1')](_0x2b2975)){case _0x3c41('0xac'):this['_suggestionState'][_0x3c41('0xce')](_0x2b2975,'dataReady');break;case _0x3c41('0x53'):_0x2b2975[_0x3c41('0x29')]?(this[_0x3c41('0xc9')](new Set([_0x2b2975])),this['_joinWithAdjacentSuggestions'](new Set([_0x2b2975])),this[_0x3c41('0x138')][_0x3c41('0xce')](_0x2b2975,'ready'),this['fire'](_0x3c41('0x52'),_0x2b2975)):this[_0x3c41('0x138')][_0x3c41('0xce')](_0x2b2975,'removed');}return _0x2b2975;}[_0x3c41('0xa1')](_0x30256e){this[_0x3c41('0xe4')](()=>{this[_0x3c41('0x35')]['model'][_0x3c41('0x112')](()=>{for(const _0x20249d of _0x30256e[_0x3c41('0x127')]())_0x20249d['accept']();});});}[_0x3c41('0x1c')](_0x4c77a7){this[_0x3c41('0xe4')](()=>{this['editor'][_0x3c41('0xd3')][_0x3c41('0x112')](()=>{for(const _0x22e226 of _0x4c77a7[_0x3c41('0x127')]())_0x22e226[_0x3c41('0xf4')]();});});}[_0x3c41('0x97')](_0x28bb2b,_0x410629){const _0x1ca036=this[_0x3c41('0x35')]['commands'][_0x3c41('0xc1')](_0x28bb2b);if(!_0x1ca036)throw new _0x149c43('track-changes-command-not-found',this,{'commandName':_0x28bb2b});this[_0x3c41('0x4b')][_0x3c41('0x7b')](_0x1ca036),_0x410629&&_0x1ca036['on'](_0x3c41('0x3f'),(_0x3a213b,_0x462fe8)=>{this[_0x3c41('0x11d')]['value']&&(this[_0x3c41('0x11')]||_0x462fe8[_0x3c41('0x80')]>0x0&&_0x462fe8[_0x462fe8[_0x3c41('0x80')]-0x1]&&_0x462fe8[_0x462fe8[_0x3c41('0x80')]-0x1][_0x3c41('0xe4')]||(_0x3a213b[_0x3c41('0x13')]=_0x410629((..._0x44d8e2)=>_0x1ca036[_0x3c41('0x3f')](..._0x44d8e2,{'forceDefaultExecution':!0x0}),..._0x462fe8),_0x3a213b['stop']()));},{'priority':'high'});}[_0x3c41('0xe4')](_0x2b5190){let _0x37903a,_0x4b861e;const _0x206384=this[_0x3c41('0x11')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x37903a=_0x2b5190();}catch(_0x250b34){_0x4b861e=_0x250b34;}return _0x206384||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4b861e&&_0x149c43['rethrowUnexpectedError'](_0x4b861e,this),_0x37903a;}[_0x3c41('0x48')](_0x8b00b5,_0x27f5bf=null,_0x2a62ef={}){if(_0x8b00b5[_0x3c41('0x142')])return null;const _0x196699=this[_0x3c41('0x35')][_0x3c41('0x5')][_0x3c41('0xc1')](_0x3c41('0x34'))['me'];for(const {suggestion:_0xabe631,meta:_0x38c81c}of this['_findSuggestions'](_0x8b00b5,_0x3c41('0xdf')))if(_0x38c81c[_0x3c41('0xfa')]){if(!_0x38c81c['isNextTo']){if(_0x38c81c[_0x3c41('0x7f')]){if(!this[_0x3c41('0x128')]||!Ot(_0xabe631,_0x2a62ef))continue;return _0xabe631;}if(Ot(_0xabe631,_0x2a62ef))return _0xabe631;this['_breakSuggestionMarker'](_0xabe631,_0x8b00b5[_0x3c41('0x109')],_0x8b00b5[_0x3c41('0x78')]);break;}if(_0x27f5bf==_0xabe631[_0x3c41('0x3a')]&&Ot(_0xabe631,_0x2a62ef)){const _0x346388=_0xabe631[_0x3c41('0x85')]();return _0x346388[_0x3c41('0x109')][_0x3c41('0xbe')](_0x8b00b5[_0x3c41('0x78')])?this[_0x3c41('0x13d')](_0xabe631,this[_0x3c41('0x115')]['createRange'](_0x8b00b5[_0x3c41('0x109')],_0x346388[_0x3c41('0x78')])):this[_0x3c41('0x13d')](_0xabe631,this[_0x3c41('0x115')][_0x3c41('0x6c')](_0x346388[_0x3c41('0x109')],_0x8b00b5[_0x3c41('0x78')])),_0xabe631;}}const _0x14fa15=_0x47dbea(),_0x585c97=_0x196699['id'],_0x2fe527=_0x27f5bf?_0x3c41('0xca')+_0x27f5bf:_0x3c41('0xdf'),_0x5476c4=this[_0x3c41('0x69')]({'id':_0x14fa15,'type':_0x2fe527,'createdAt':new Date(),'authorId':_0x585c97,'attributes':_0x2a62ef});return this[_0x3c41('0x9b')](_0x2fe527,_0x14fa15,_0x585c97,_0x8b00b5),_0x5476c4;}[_0x3c41('0xb8')](_0x28b89b,_0x17019d='multi',_0x75a660={}){const _0x4dd1f7=this['editor'][_0x3c41('0x5')][_0x3c41('0xc1')](_0x3c41('0x34'))['me'],_0x125fbd=this[_0x3c41('0x133')][_0x3c41('0x60')]('insertion',_0x17019d,_0x3c41('0x17'));for(const _0x4f2cfc of this[_0x3c41('0xa7')]())if(_0x4f2cfc['author']['id']==_0x4dd1f7['id']&&'insertion'==_0x4f2cfc[_0x3c41('0x140')]&&_0x4f2cfc[_0x3c41('0x3a')]==_0x17019d&&Ot(_0x4f2cfc,_0x75a660)&&(_0x125fbd(_0x4f2cfc[_0x3c41('0xeb')](),_0x28b89b)||_0x125fbd(_0x28b89b,_0x4f2cfc[_0x3c41('0xeb')]()))){for(const _0x49160a of _0x28b89b)_0x4f2cfc[_0x3c41('0x120')](_0x49160a);return _0x4f2cfc;}for(const {suggestion:_0x12b21a,meta:_0x1f4c8f}of this['_findSuggestions'](_0x28b89b,_0x3c41('0xdf'))){if(!_0x1f4c8f[_0x3c41('0xfa')])continue;if(!this[_0x3c41('0x128')]&&_0x1f4c8f[_0x3c41('0x7f')])continue;if(!Ot(_0x12b21a,_0x75a660))continue;let _0x58e14d=!0x0;for(const _0x26f2a1 of _0x12b21a['getRanges']())for(const _0x5d4738 of _0x28b89b)if(!_0x26f2a1[_0x3c41('0x86')](_0x5d4738)){_0x58e14d=!0x1;break;}if(_0x58e14d)return _0x12b21a;}const _0x59a9e6=_0x47dbea(),_0xa6d0e0=_0x4dd1f7['id'],_0x6db77b=_0x3c41('0xca')+_0x17019d,_0xe50887=this[_0x3c41('0x69')]({'id':_0x59a9e6,'type':_0x6db77b,'createdAt':new Date(),'authorId':_0xa6d0e0,'attributes':_0x75a660});for(const _0x23103b of _0x28b89b)this['_addSuggestionMarker'](_0x6db77b,_0x59a9e6,_0xa6d0e0,_0x23103b,_0x32734f[_0x3c41('0xc5')]());return _0xe50887;}[_0x3c41('0xe0')](_0x320ef9,_0x40b9bf,_0x5537b7=null,_0x445bad={}){if(_0x5537b7=_0x5537b7||Nt(_0x40b9bf),_0x320ef9[_0x3c41('0x142')])return null;if(_0x3c41('0x102')===this[_0x3c41('0xba')]){const _0x28d153=this[_0x3c41('0x133')][_0x3c41('0x60')]('formatInline',_0x5537b7,_0x3c41('0x81'));return this['forceDefaultExecution'](()=>_0x28d153([_0x320ef9],_0x40b9bf,_0x445bad)),null;}const _0x39d8ba=this[_0x3c41('0x35')][_0x3c41('0x5')]['get'](_0x3c41('0x34'))['me'],_0x347bb7=[];if(_0x3c41('0x11a')!==this[_0x3c41('0xba')])for(const {suggestion:_0x15fa94,meta:_0x389071}of this[_0x3c41('0xe1')](_0x320ef9,_0x3c41('0xdf')))_0x389071[_0x3c41('0xfa')]&&!_0x389071[_0x3c41('0x1')]&&_0x347bb7[_0x3c41('0xea')](..._0x15fa94[_0x3c41('0xeb')]());const _0x5438cb=function(_0x12c90e,_0xba329e){const _0x41f539=[];for(const _0x3e50b9 of _0xba329e){const _0x308412=_0x12c90e['getIntersection'](_0x3e50b9);_0x308412&&_0x41f539[_0x3c41('0xea')](_0x308412);}return _0x41f539;}(_0x320ef9,_0x347bb7),_0x40068a=function(_0x1b18e8,_0x3664ed){const _0x564d70=[_0x1b18e8];for(const _0x1643bc of _0x3664ed){let _0x1dea24=0x0;for(;_0x1dea24<_0x564d70['length'];){const _0x1ac02e=_0x564d70[_0x1dea24]['getDifference'](_0x1643bc);_0x564d70[_0x3c41('0xa0')](_0x1dea24,0x1,..._0x1ac02e),_0x1dea24+=_0x1ac02e[_0x3c41('0x80')];}}return _0x564d70;}(_0x320ef9,_0x347bb7);_0x5438cb[_0x3c41('0x80')]&&this[_0x3c41('0x115')][_0x3c41('0x112')](()=>{for(const _0x37d66b of _0x5438cb){const _0x399bc7=this[_0x3c41('0x133')][_0x3c41('0x60')](_0x3c41('0xf8'),_0x5537b7,_0x3c41('0x81'));this['forceDefaultExecution'](()=>_0x399bc7([_0x37d66b],_0x40b9bf,_0x445bad));}});for(const _0x4b7eeb of _0x40068a){let _0x28ec96=null,_0x5de4d5=_0x4b7eeb[_0x3c41('0x109')],_0x1aff71=_0x4b7eeb[_0x3c41('0x78')];for(const {suggestion:_0x2255bc,meta:_0x4cb0a5}of this[_0x3c41('0xe1')](_0x4b7eeb,_0x3c41('0xf8'))){if(!_0x4cb0a5['isOwn'])continue;if(_0x2255bc[_0x3c41('0x3a')]!=_0x5537b7)continue;if(!Ot(_0x2255bc,_0x445bad))continue;const _0x97d2a7=_0x2255bc[_0x3c41('0x85')]();if(_0x97d2a7[_0x3c41('0x86')](_0x4b7eeb,!0x0))return null;_0x5de4d5=_0x5de4d5['isBefore'](_0x97d2a7[_0x3c41('0x109')])?_0x5de4d5:_0x97d2a7[_0x3c41('0x109')],_0x1aff71=_0x1aff71[_0x3c41('0xfd')](_0x97d2a7['end'])?_0x1aff71:_0x97d2a7[_0x3c41('0x78')],_0x28ec96?_0x97d2a7[_0x3c41('0x109')][_0x3c41('0x13f')](_0x28ec96['getFirstRange']()[_0x3c41('0x109')])?(_0x28ec96['removeMarkers'](),_0x28ec96=_0x2255bc):_0x2255bc['removeMarkers']():_0x28ec96=_0x2255bc;}const _0xd97eb5=this[_0x3c41('0x115')][_0x3c41('0x6c')](_0x5de4d5,_0x1aff71);if(_0x28ec96)this[_0x3c41('0x13d')](_0x28ec96,_0xd97eb5);else{const _0x46e822=_0x47dbea(),_0x532d20=_0x39d8ba['id'];this[_0x3c41('0x69')]({'id':_0x46e822,'type':_0x3c41('0x5e')+_0x5537b7,'data':_0x40b9bf,'createdAt':new Date(),'authorId':_0x532d20,'attributes':_0x445bad}),this[_0x3c41('0x9b')]('formatInline:'+_0x5537b7,_0x46e822,_0x532d20,_0xd97eb5);}}return null;}['markBlockFormat'](_0xdefe38,_0x33a088,_0x836a91=[],_0x14eba4=null,_0xa46b3e={}){_0x33a088[_0x3c41('0xc8')]||(_0x33a088[_0x3c41('0xc8')]=_0x33a088[_0x3c41('0x98')]),_0x33a088[_0x3c41('0x125')]=_0xdefe38['is'](_0x3c41('0x64')),_0x14eba4=_0x14eba4||Nt(_0x33a088);const _0x59bd67=_0x836a91[_0x3c41('0x93')](_0x2d994d=>jt(_0x2d994d,this[_0x3c41('0x115')])),_0x3e8c58=_0xdefe38['is'](_0x3c41('0x64'))?_0xdefe38:jt(_0xdefe38,this['_model']);if('never'===this[_0x3c41('0xba')]){const _0x194045=this[_0x3c41('0x133')]['getSuggestionCallback'](_0x3c41('0x82'),_0x14eba4,'accept');return this['forceDefaultExecution'](()=>_0x194045([_0x3e8c58],_0x33a088,_0xa46b3e)),null;}_0x59bd67[_0x3c41('0xea')](_0x3e8c58);let _0x10f81b=!0x0;for(const _0x2ef409 of _0x59bd67)if(!this[_0x3c41('0x58')](_0x2ef409)){_0x10f81b=!0x1;break;}if(_0x10f81b&&'always'!==this[_0x3c41('0xba')]){const _0x534654=this[_0x3c41('0x133')][_0x3c41('0x60')](_0x3c41('0x82'),_0x14eba4,_0x3c41('0x81'));return this[_0x3c41('0xe4')](()=>_0x534654([_0x3e8c58],_0x33a088,_0xa46b3e)),null;}let _0x410f7a=null,_0x2a7081=_0x3e8c58[_0x3c41('0x109')],_0x596c62=_0x3e8c58['end'];for(const {suggestion:_0x358793,meta:_0x2fa085}of this['_findSuggestions'](_0x3e8c58,'formatBlock')){if(!_0x2fa085[_0x3c41('0xfa')])continue;if(_0x2fa085[_0x3c41('0x4c')]||_0x2fa085[_0x3c41('0x7f')]||_0x2fa085['isInsideObject'])continue;if(_0x358793[_0x3c41('0x123')][_0x3c41('0xc8')]!=_0x33a088['formatGroupId'])continue;if(!Ot(_0x358793,_0xa46b3e))continue;const _0x438ce2=_0x358793[_0x3c41('0x85')]();if(_0x358793['subType']==_0x14eba4){if(_0x438ce2['containsRange'](_0x3e8c58,!0x0))return null;_0x2a7081=_0x2a7081[_0x3c41('0x13f')](_0x438ce2[_0x3c41('0x109')])?_0x2a7081:_0x438ce2[_0x3c41('0x109')],_0x596c62=_0x596c62[_0x3c41('0xfd')](_0x438ce2[_0x3c41('0x78')])?_0x596c62:_0x438ce2[_0x3c41('0x78')],_0x410f7a?_0x438ce2['start'][_0x3c41('0x13f')](_0x410f7a['getFirstRange']()[_0x3c41('0x109')])?(_0x410f7a['removeMarkers'](),_0x410f7a=_0x358793):_0x358793[_0x3c41('0xd7')]():_0x410f7a=_0x358793;}else{const _0x3fac89=_0x3e8c58[_0x3c41('0xcd')](_0x438ce2);this[_0x3c41('0x2a')](_0x358793,_0x3fac89);}}const _0x57292f=this[_0x3c41('0x35')][_0x3c41('0x5')]['get'](_0x3c41('0x34'))['me'],_0x212de3=_0x47dbea(),_0x50145d=_0x57292f['id'];if(_0x410f7a)return this[_0x3c41('0x13d')](_0x410f7a,this['_model']['createRange'](_0x2a7081,_0x596c62)),_0x410f7a;{const _0x3b17df=this['_setSuggestionData']({'id':_0x212de3,'type':_0x3c41('0x6d')+_0x14eba4,'data':_0x33a088,'createdAt':new Date(),'authorId':_0x50145d,'attributes':_0xa46b3e});return this[_0x3c41('0x9b')](_0x3c41('0x6d')+_0x14eba4,_0x212de3,_0x50145d,this[_0x3c41('0x115')][_0x3c41('0x6c')](_0x2a7081,_0x596c62)),_0x3b17df;}}[_0x3c41('0x134')](_0x6d2e0c,_0x39f9c0,_0x492dcc=[],_0x50aabb=null,_0x42e290={}){_0x39f9c0['formatGroupId']||(_0x39f9c0['formatGroupId']=_0x39f9c0['commandName']);const _0x8ee0fc=_0x6d2e0c[0x0];_0x39f9c0[_0x3c41('0x125')]=_0x8ee0fc['is'](_0x3c41('0x64')),_0x50aabb=_0x50aabb||Nt(_0x39f9c0);const _0xebf0e8=_0x492dcc[_0x3c41('0x93')](_0xc00508=>jt(_0xc00508,this[_0x3c41('0x115')])),_0x55a70f=_0x8ee0fc['is'](_0x3c41('0x64'))?_0x6d2e0c:_0x6d2e0c[_0x3c41('0x93')](_0x5a81ff=>jt(_0x5a81ff,this[_0x3c41('0x115')]));if('never'===this['_trackFormatChanges']){const _0x5bebde=this[_0x3c41('0x133')][_0x3c41('0x60')](_0x3c41('0x82'),_0x50aabb,_0x3c41('0x81'));return this['forceDefaultExecution'](()=>_0x5bebde(_0x55a70f,_0x39f9c0,_0x42e290)),null;}_0xebf0e8[_0x3c41('0xea')](..._0x55a70f);let _0x446a7c=!0x0;for(const _0x44a7fc of _0xebf0e8)if(!this['_rangeIsInLocalUserInsertion'](_0x44a7fc)){_0x446a7c=!0x1;break;}if(_0x446a7c&&'always'!==this[_0x3c41('0xba')]){const _0x45f8d7=this[_0x3c41('0x133')]['getSuggestionCallback'](_0x3c41('0x82'),_0x50aabb,_0x3c41('0x81'));return this[_0x3c41('0xe4')](()=>_0x45f8d7(_0x55a70f,_0x39f9c0,_0x42e290)),null;}const _0x2b9731=this[_0x3c41('0x35')][_0x3c41('0x5')][_0x3c41('0xc1')]('Users')['me'];for(const _0x3e18a1 of this['getSuggestions']()){if(_0x3e18a1[_0x3c41('0x6e')]['id']!=_0x2b9731['id'])continue;if(_0x3c41('0x82')!=_0x3e18a1[_0x3c41('0x140')]||_0x3e18a1['data'][_0x3c41('0xc8')]!=_0x39f9c0[_0x3c41('0xc8')])continue;if(!Ot(_0x3e18a1,_0x42e290))continue;const _0x3a1154=_0x3e18a1['subType']==_0x50aabb;for(let _0x4632df=0x0;_0x4632df<_0x55a70f['length'];_0x4632df++){const _0x3b8568=_0x55a70f[_0x4632df];for(const _0x35a02b of _0x3e18a1[_0x3c41('0x3e')]()){const _0x566528=_0x35a02b['getRange']();if(_0x3b8568[_0x3c41('0xbe')](_0x566528)){_0x3a1154?(_0x55a70f[_0x3c41('0xa0')](_0x4632df,0x1),_0x4632df--):_0x3e18a1[_0x3c41('0x103')](_0x35a02b[_0x3c41('0x70')]);break;}}}}if(0x0==_0x55a70f['length'])return null;const _0x193e6b=this['_suggestionFactory'][_0x3c41('0x60')](_0x3c41('0x82'),_0x50aabb,_0x3c41('0x17'));for(const _0x171d93 of this[_0x3c41('0xa7')]())if(_0x171d93[_0x3c41('0x6e')]['id']==_0x2b9731['id']&&'formatBlock'==_0x171d93[_0x3c41('0x140')]&&_0x171d93[_0x3c41('0x123')][_0x3c41('0xc8')]==_0x39f9c0[_0x3c41('0xc8')]&&_0x171d93[_0x3c41('0x3a')]==_0x50aabb&&Ot(_0x171d93,_0x42e290)&&(_0x193e6b(_0x171d93[_0x3c41('0xeb')](),_0x55a70f)||_0x193e6b(_0x55a70f,_0x171d93[_0x3c41('0xeb')]()))){for(const _0x56fca3 of _0x55a70f)_0x171d93['addRange'](_0x56fca3);return _0x171d93;}const _0x352fa8=_0x47dbea(),_0x5a0554=_0x2b9731['id'],_0xc21d2e=_0x3c41('0x6d')+_0x50aabb,_0x3d3072=this[_0x3c41('0x69')]({'id':_0x352fa8,'type':_0xc21d2e,'data':_0x39f9c0,'createdAt':new Date(),'authorId':_0x5a0554,'attributes':_0x42e290});for(const _0x2cf681 of _0x55a70f)this[_0x3c41('0x9b')](_0xc21d2e,_0x352fa8,_0x5a0554,_0x2cf681,_0x32734f['getMultiRangeId']());return _0x3d3072;}[_0x3c41('0x5d')](_0x5e8758,_0x37ee87=null,_0x1c0238={}){if(_0x5e8758[_0x3c41('0x142')])return null;const _0x227e01=this[_0x3c41('0x35')]['plugins'][_0x3c41('0xc1')](_0x3c41('0x34'))['me'],_0x308df1=new _0xe5a593(_0x5e8758[_0x3c41('0x109')],_0x5e8758[_0x3c41('0x78')]);for(const {suggestion:_0x509fd5,meta:_0x55ae66}of this['_findSuggestions'](_0x308df1,_0x3c41('0xdf')))if(_0x55ae66['isOwn']&&!_0x55ae66[_0x3c41('0x4c')]){if(_0x509fd5[_0x3c41('0xf7')]){const _0x2b7971=_0x509fd5['getRanges']()[_0x3c41('0x59')](_0x4d7e06=>_0x3c41('0x37')!=_0x4d7e06[_0x3c41('0x10e')][_0x3c41('0xc')]);_0x2b7971[_0x3c41('0xa9')](_0x1c3b91=>_0x308df1[_0x3c41('0x86')](_0x1c3b91,!0x0))&&_0x509fd5['discard']();if(_0x2b7971[_0x3c41('0x12d')](_0x44b7ea=>_0x44b7ea[_0x3c41('0x86')](_0x308df1,!0x0))){const _0x3a6b2e=this[_0x3c41('0x133')]['getSuggestionCallback']('deletion',_0x37ee87,'accept');return this[_0x3c41('0xe4')](()=>_0x3a6b2e([_0x308df1],null,_0x1c0238)),null;}}else{const _0x1dcace=_0x308df1[_0x3c41('0xcd')](_0x509fd5[_0x3c41('0x85')]());null!==_0x1dcace&&_0x509fd5[_0x3c41('0xef')]([_0x1dcace],null,_0x1c0238);}}if(_0x308df1[_0x3c41('0x111')](),_0x308df1[_0x3c41('0x142')]||_0x3c41('0x37')==_0x308df1[_0x3c41('0x10e')]['rootName'])return null;let _0x26c2f9=null,_0x21b2d4=_0x308df1[_0x3c41('0x109')],_0x59e8aa=_0x308df1[_0x3c41('0x78')];const _0x329460=this[_0x3c41('0xe1')](_0x308df1,_0x3c41('0x1f'));for(const {suggestion:_0x1dc60a,meta:_0x15e034}of _0x329460){const _0x19557e=this['_model']['createRange'](_0x21b2d4,_0x59e8aa);if(_0x15e034['isOwn']&&(this[_0x3c41('0x128')]||!_0x15e034[_0x3c41('0x7f')]&&!_0x15e034[_0x3c41('0x1')])){if(_0x1dc60a[_0x3c41('0xf7')]){if(!Ot(_0x1dc60a,_0x1c0238))continue;let _0x4646d5=!0x0;for(const _0x36e673 of _0x1dc60a[_0x3c41('0xeb')]()){if(_0x36e673[_0x3c41('0x86')](_0x19557e,!0x0))return _0x1dc60a;_0x19557e['containsRange'](_0x36e673)||(_0x4646d5=!0x1);}_0x4646d5&&_0x1dc60a['discard']();}else{const _0x168231=_0x1dc60a[_0x3c41('0x85')]();if(_0x168231[_0x3c41('0x86')](_0x19557e,!0x0))return _0x1dc60a;if(!Ot(_0x1dc60a,_0x1c0238)){_0x19557e['containsRange'](_0x168231)?_0x1dc60a['removeMarkers']():_0x168231[_0x3c41('0xd0')](_0x21b2d4)?_0x21b2d4=_0x168231['end']:_0x168231[_0x3c41('0xd0')](_0x59e8aa)&&(_0x59e8aa=_0x168231[_0x3c41('0x109')]);continue;}_0x21b2d4=_0x21b2d4[_0x3c41('0x13f')](_0x168231[_0x3c41('0x109')])?_0x21b2d4:_0x168231[_0x3c41('0x109')],_0x59e8aa=_0x59e8aa[_0x3c41('0xfd')](_0x168231[_0x3c41('0x78')])?_0x59e8aa:_0x168231[_0x3c41('0x78')],_0x1c0238=Object[_0x3c41('0x4a')]({},_0x1dc60a[_0x3c41('0x5a')]),_0x26c2f9?_0x168231[_0x3c41('0x109')][_0x3c41('0x13f')](_0x26c2f9[_0x3c41('0x85')]()[_0x3c41('0x109')])?(_0x26c2f9[_0x3c41('0xd7')](),_0x26c2f9=_0x1dc60a):_0x1dc60a[_0x3c41('0xd7')]():_0x26c2f9=_0x1dc60a;}}}if(_0x26c2f9)return this[_0x3c41('0x13d')](_0x26c2f9,this[_0x3c41('0x115')]['createRange'](_0x21b2d4,_0x59e8aa)),_0x26c2f9;{const _0x1b2a6a=_0x47dbea(),_0x4d1c99=this[_0x3c41('0x115')][_0x3c41('0x6c')](_0x21b2d4,_0x59e8aa),_0xb3ffa2=_0x227e01['id'],_0x3f10c1=_0x37ee87?'deletion:'+_0x37ee87:'deletion',_0x5e5309=this[_0x3c41('0x69')]({'id':_0x1b2a6a,'type':_0x3f10c1,'createdAt':new Date(),'authorId':_0xb3ffa2,'attributes':_0x1c0238});return this[_0x3c41('0x9b')](_0x3f10c1,_0x1b2a6a,_0xb3ffa2,_0x4d1c99),_0x5e5309;}}[_0x3c41('0x96')](_0x219f1b,_0x343987=_0x3c41('0xf5'),_0x2bbafe={}){const _0x5aadec=this[_0x3c41('0x35')][_0x3c41('0x5')][_0x3c41('0xc1')]('Users')['me'],_0x92769b=_0x219f1b[_0x3c41('0x93')](_0x4ff373=>new _0xe5a593(_0x4ff373['start'],_0x4ff373[_0x3c41('0x78')])),_0x2aeb5f=new Set();for(const {suggestion:_0x226cf3,meta:_0x321217}of this['_findSuggestions'](_0x92769b,_0x3c41('0xdf')))_0x321217[_0x3c41('0xfa')]&&!_0x321217[_0x3c41('0x4c')]&&_0x2aeb5f[_0x3c41('0x7b')](_0x226cf3);for(const _0xb00f14 of _0x2aeb5f)if(_0xb00f14[_0x3c41('0xf7')]){const _0x1ba51d=_0xb00f14[_0x3c41('0xeb')]();(!_0xb00f14[_0x3c41('0x5a')]||!_0xb00f14[_0x3c41('0x5a')][_0x3c41('0x100')])&&(_0x1ba51d[_0x3c41('0xa9')](_0x5a0b13=>_0x92769b[_0x3c41('0x12d')](_0x27b815=>_0x27b815['containsRange'](_0x5a0b13,!0x0)))&&_0xb00f14[_0x3c41('0xf4')]());if(_0x92769b[_0x3c41('0xa9')](_0x4a1392=>_0x1ba51d[_0x3c41('0x12d')](_0x53e4b3=>_0x53e4b3['containsRange'](_0x4a1392,!0x0)))){const _0x30b96b=this[_0x3c41('0x133')][_0x3c41('0x60')](_0x3c41('0x1f'),_0x343987,'accept');return this[_0x3c41('0xe4')](()=>_0x30b96b(_0x219f1b,null,_0x2bbafe)),null;}}else{const _0xb74c37=_0xb00f14['getFirstRange']();_0x92769b[_0x3c41('0x12d')](_0x4b9027=>_0x4b9027[_0x3c41('0x86')](_0xb74c37,!0x0))&&_0xb00f14[_0x3c41('0xf4')]();if(_0x92769b['every'](_0x8d4b27=>_0xb74c37['containsRange'](_0x8d4b27,!0x0))){const _0x126a3e=this['_suggestionFactory'][_0x3c41('0x60')](_0x3c41('0x1f'),_0x343987,'accept');return this[_0x3c41('0xe4')](()=>_0x126a3e(_0x92769b,null,_0x2bbafe)),null;}}const _0xf18283=this[_0x3c41('0x133')]['getSuggestionCallback']('deletion',_0x343987,_0x3c41('0x17'));let _0x11c605=null;for(const _0xeb3a20 of this[_0x3c41('0xa7')]())if(_0xeb3a20[_0x3c41('0x6e')]['id']==_0x5aadec['id']&&_0xeb3a20[_0x3c41('0x29')]&&_0x3c41('0x1f')==_0xeb3a20['type']&&_0xeb3a20[_0x3c41('0x3a')]==_0x343987&&Ot(_0xeb3a20,_0x2bbafe)&&(_0xf18283(_0xeb3a20['getRanges'](),_0x92769b)||_0xf18283(_0x92769b,_0xeb3a20[_0x3c41('0xeb')]()))){if(_0x11c605){if(_0xeb3a20[_0x3c41('0x43')]&&_0xeb3a20[_0x3c41('0x43')][_0x3c41('0x80')])continue;for(const _0x36cd38 of _0xeb3a20[_0x3c41('0xeb')]())_0x11c605[_0x3c41('0x7')](_0x36cd38)||_0x11c605[_0x3c41('0x120')](_0x36cd38);_0xeb3a20[_0x3c41('0xd7')]();}else{_0x11c605=_0xeb3a20;for(const _0x2bd602 of _0x92769b)_0xeb3a20[_0x3c41('0x7')](_0x2bd602)||_0xeb3a20[_0x3c41('0x120')](_0x2bd602);}}if(_0x11c605)return _0x11c605;_0x2aeb5f[_0x3c41('0x8d')]();for(const {suggestion:_0x45e54a,meta:_0x2d3dec}of this[_0x3c41('0xe1')](_0x92769b,'deletion'))_0x2d3dec[_0x3c41('0xfa')]&&(this[_0x3c41('0x128')]||!_0x2d3dec[_0x3c41('0x7f')]&&!_0x2d3dec['isInsideObject'])&&Ot(_0x45e54a,_0x2bbafe)&&_0x2aeb5f[_0x3c41('0x7b')](_0x45e54a);for(const _0x4adc0f of _0x2aeb5f){const _0x17bf39=_0x4adc0f['getRanges']();if(!_0x2bbafe||!_0x2bbafe[_0x3c41('0x100')]){if(_0x92769b[_0x3c41('0xa9')](_0x284b0f=>_0x17bf39[_0x3c41('0x12d')](_0x72ce1a=>_0x72ce1a[_0x3c41('0x86')](_0x284b0f,!0x0))))return _0x4adc0f;}(!_0x4adc0f[_0x3c41('0x5a')]||!_0x4adc0f[_0x3c41('0x5a')][_0x3c41('0x100')])&&(_0x17bf39[_0x3c41('0xa9')](_0x562650=>_0x92769b[_0x3c41('0x12d')](_0x1dd516=>_0x1dd516[_0x3c41('0x86')](_0x562650,!0x0)))&&_0x4adc0f['discard']());}const _0x4fc84c=_0x47dbea(),_0x59c8a5=_0x5aadec['id'],_0x24ca0b=_0x3c41('0xf2')+_0x343987,_0x30b438=this[_0x3c41('0x69')]({'id':_0x4fc84c,'type':_0x24ca0b,'createdAt':new Date(),'authorId':_0x59c8a5,'attributes':_0x2bbafe});for(const _0x1f4ce3 of _0x92769b)_0x1f4ce3[_0x3c41('0x111')](),_0x1f4ce3[_0x3c41('0x142')]||_0x3c41('0x37')==_0x1f4ce3[_0x3c41('0x10e')][_0x3c41('0xc')]||this['_addSuggestionMarker'](_0x24ca0b,_0x4fc84c,_0x59c8a5,_0x1f4ce3,_0x32734f['getMultiRangeId']());return _0x30b438;}[_0x3c41('0x13d')](_0x35d5df,_0x21be79){const _0x37e25d=_0x35d5df[_0x3c41('0xcb')]();this[_0x3c41('0x115')]['change'](_0x4318df=>{_0x4318df[_0x3c41('0x6')](_0x37e25d,{'range':_0x21be79});});}[_0x3c41('0x75')](_0x5bcf4d){const _0x68dfcc=_0x5bcf4d['id'],_0x1fc068=this['editor'][_0x3c41('0x5f')][_0x3c41('0xc1')](_0x3c41('0xb4'));this[_0x3c41('0x8f')][_0x3c41('0x12e')](_0x68dfcc)||this[_0x3c41('0x8f')][_0x3c41('0x10')]({'channelId':_0x1fc068,'threadId':_0x68dfcc,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x257673=this[_0x3c41('0x8f')][_0x3c41('0x57')](_0x68dfcc);_0x257673[_0x3c41('0x8b')](_0x3c41('0x11c')),_0x257673[_0x3c41('0x11c')]=!0x1,_0x5bcf4d[_0x3c41('0x43')]=_0x257673;}[_0x3c41('0x119')](_0x117cd3,_0x412879,_0x41329b,_0x35dd3e){if(_0x117cd3[_0x3c41('0x140')]!=_0x412879||_0x117cd3[_0x3c41('0x3a')]!=_0x41329b||_0x117cd3['creator']['id']!=_0x35dd3e)throw this[_0x3c41('0x35')][_0x3c41('0x8')](_0x3c41('0x104')),new _0x149c43(_0x3c41('0x104'),this);}['_cutOutSuggestionMarker'](_0x4332aa,_0x4b8dba){const _0x455579=_0x4332aa[_0x3c41('0x85')]();if(_0x4b8dba[_0x3c41('0xbe')](_0x455579))_0x4332aa[_0x3c41('0xd7')]();else{if(_0x455579[_0x3c41('0x86')](_0x4b8dba)){const _0x568f4d=this[_0x3c41('0x115')][_0x3c41('0x141')](_0x4b8dba['start'][_0x3c41('0x3d')],_0x3c41('0x78'));this[_0x3c41('0x13d')](_0x4332aa,this['_model'][_0x3c41('0x6c')](_0x455579[_0x3c41('0x109')],_0x568f4d));const _0x388b06=_0x47dbea(),_0x1d5d6f=_0x4332aa['creator']['id'],_0x272c6a=_0x4332aa['type']+':'+_0x4332aa['subType'];this['_setSuggestionData']({'id':_0x388b06,'type':_0x272c6a,'createdAt':new Date(),'authorId':_0x1d5d6f,'data':_0x4332aa[_0x3c41('0x123')],'attributes':_0x4332aa[_0x3c41('0x5a')]});const _0x5662be=this[_0x3c41('0x115')][_0x3c41('0x141')](_0x4b8dba['end'][_0x3c41('0x9f')],'after'),_0x147891=this[_0x3c41('0x115')][_0x3c41('0x6c')](_0x5662be,_0x455579[_0x3c41('0x78')]);this[_0x3c41('0x9b')](_0x272c6a,_0x388b06,_0x1d5d6f,_0x147891);}else{if(_0x455579[_0x3c41('0xd0')](_0x4b8dba[_0x3c41('0x109')])){const _0x2c1cb2=this[_0x3c41('0x115')]['createPositionAt'](_0x4b8dba[_0x3c41('0x109')]['nodeBefore'],_0x3c41('0x78'));this[_0x3c41('0x13d')](_0x4332aa,this['_model'][_0x3c41('0x6c')](_0x455579[_0x3c41('0x109')],_0x2c1cb2));}else{const _0x27acb5=this[_0x3c41('0x115')][_0x3c41('0x141')](_0x4b8dba[_0x3c41('0x78')][_0x3c41('0x9f')],_0x3c41('0x44'));this[_0x3c41('0x13d')](_0x4332aa,this[_0x3c41('0x115')][_0x3c41('0x6c')](_0x27acb5,_0x455579[_0x3c41('0x78')]));}}}}[_0x3c41('0x58')](_0x382610){for(const {suggestion:_0x38d169,meta:_0x4fd08f}of this['_findSuggestions'](_0x382610,_0x3c41('0xdf'))){if(!_0x4fd08f[_0x3c41('0xfa')])continue;const _0x27436c=_0x38d169['getRanges']();for(const _0x5053e6 of _0x27436c)if(!_0x382610['getDifference'](_0x5053e6)[_0x3c41('0x80')])return!0x0;}return!0x1;}[_0x3c41('0xf6')](_0x371004){const _0x1434d4=this['editor'][_0x3c41('0x5')][_0x3c41('0xc1')](_0x3c41('0x34'))[_0x3c41('0x9a')](_0x371004);if(!_0x1434d4)throw new _0x149c43('track-changes-user-not-found',this);return _0x1434d4;}[_0x3c41('0xd')](_0x3a6cca){const _0x30c82a=this['editor'][_0x3c41('0x5')][_0x3c41('0xc1')](_0x3c41('0x34')),_0x25f10d=_0x4ee5c6(_0x3c41('0x54')+_0x3a6cca),_0x500368=_0x30c82a[_0x3c41('0x9a')](_0x25f10d);return _0x500368||_0x30c82a[_0x3c41('0xdb')]({'id':_0x25f10d,'name':_0x3a6cca});}[_0x3c41('0x10b')](_0x52349e,_0x35d6b8,_0x17cdf0,_0x4f0b0f,_0x45905b){const _0x2ed9c1=this['_getAuthorFromId'](_0x4f0b0f),_0x23fa55=this[_0x3c41('0x133')][_0x3c41('0x31')](_0x52349e,_0x35d6b8,_0x17cdf0,_0x2ed9c1,_0x45905b,_0x11057b=>this[_0x3c41('0xf3')](_0x17cdf0,{'attributes':_0x11057b}));return this[_0x3c41('0x24')](_0x23fa55,_0x3c41('0x81'),()=>{this[_0x3c41('0xf3')](_0x17cdf0,{'state':'accepted'});},{'priority':'high'}),this[_0x3c41('0x24')](_0x23fa55,_0x3c41('0xf4'),()=>{this[_0x3c41('0xf3')](_0x17cdf0,{'state':_0x3c41('0x9c')});},{'priority':_0x3c41('0x63')}),this[_0x3c41('0xb2')][_0x3c41('0xce')](_0x17cdf0,_0x23fa55),this[_0x3c41('0x138')][_0x3c41('0xce')](_0x23fa55,_0x3c41('0xac')),_0x23fa55;}[_0x3c41('0xf9')](_0x54fe73){const _0x4c3968=_0x54fe73[_0x3c41('0x13a')](':');return{'group':_0x4c3968[0x0],'type':_0x4c3968[0x1],'subType':_0x4c3968['length']>=0x5?_0x4c3968[0x2]:null,'id':_0x4c3968['length']<0x5?_0x4c3968[0x2]:_0x4c3968[0x3],'authorId':_0x4c3968[_0x3c41('0x80')]<0x5?_0x4c3968[0x3]:_0x4c3968[0x4],'markerCount':0x6==_0x4c3968[_0x3c41('0x80')]?_0x4c3968[0x5]:null};}['_breakSuggestionMarker'](_0x58fda4,_0xebdb1c,_0x93462a){const _0x2b8a04=_0x58fda4['getFirstRange'](),_0x4b13cb=_0x2b8a04[_0x3c41('0x109')],_0x4853e4=_0x2b8a04[_0x3c41('0x78')];this[_0x3c41('0x13d')](_0x58fda4,this[_0x3c41('0x115')][_0x3c41('0x6c')](_0x4b13cb,_0xebdb1c));const _0x3b745a=_0x47dbea(),_0x1f7686=_0x58fda4[_0x3c41('0x9d')]['id'],_0x41e0c8=_0x58fda4[_0x3c41('0x140')]+(_0x58fda4['subType']?':'+_0x58fda4[_0x3c41('0x3a')]:'');this[_0x3c41('0x69')]({'id':_0x3b745a,'type':_0x41e0c8,'createdAt':new Date(),'authorId':_0x1f7686,'originalSuggestionId':_0x58fda4['id'],'attributes':_0x58fda4['attributes'],'data':_0x58fda4[_0x3c41('0x123')]}),_0x3c41('0x82')==_0x58fda4['type']&&(_0x93462a=this[_0x3c41('0x115')][_0x3c41('0x67')](_0x93462a['parent'])),this[_0x3c41('0x9b')](_0x41e0c8,_0x3b745a,_0x1f7686,this[_0x3c41('0x115')]['createRange'](_0x93462a,_0x4853e4));}['_findSuggestions'](_0x8cbc4c,_0x5c1c23=null){const _0x40b8c1=[],_0x2131e3=this['editor'][_0x3c41('0x5')][_0x3c41('0xc1')](_0x3c41('0x34'))['me'];Array[_0x3c41('0xd8')](_0x8cbc4c)||(_0x8cbc4c=[_0x8cbc4c]);for(const _0x3470c3 of this['getSuggestions']()){if(!_0x3470c3['isInContent'])continue;if(_0x5c1c23&&_0x3470c3['type']!=_0x5c1c23)continue;let _0xb70167=!0x1;for(const _0x38fe90 of _0x3470c3[_0x3c41('0xeb')]()){for(const _0x51a406 of _0x8cbc4c){const _0x454763=_0x51a406['start'][_0x3c41('0xbe')](_0x38fe90[_0x3c41('0x78')])||_0x51a406[_0x3c41('0x78')]['isEqual'](_0x38fe90[_0x3c41('0x109')]);if(_0x454763||_0x51a406[_0x3c41('0xcd')](_0x38fe90)){const _0x50550e=_0x51a406[_0x3c41('0x86')](_0x38fe90)&&_t(this[_0x3c41('0x115')][_0x3c41('0xfe')],_0x38fe90[_0x3c41('0x109')],_0x51a406),_0x1aa59a=_0x38fe90['containsRange'](_0x51a406)&&_t(this[_0x3c41('0x115')]['schema'],_0x51a406['start'],_0x38fe90);_0x40b8c1['push']({'suggestion':_0x3470c3,'meta':{'isOwn':_0x2131e3==_0x3470c3[_0x3c41('0x6e')],'isNextTo':_0x454763,'isInsideObject':_0x50550e,'containsRangeInObject':_0x1aa59a}}),_0xb70167=!0x0;break;}}if(_0xb70167)break;}}return _0x40b8c1;}[_0x3c41('0x9b')](_0x58ac50,_0x10d1e4,_0x4df229,_0x245871,_0x594098){this['_model'][_0x3c41('0x112')](_0x1c68aa=>{let _0x173770='suggestion:'+_0x58ac50+':'+_0x10d1e4+':'+_0x4df229;_0x594098&&(_0x173770=_0x173770+':'+_0x594098),_0x1c68aa[_0x3c41('0x7e')](_0x173770,{'range':_0x245871,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3c41('0x18')](_0x42f4ca){const _0x2786c0=_0x42f4ca[_0x3c41('0x8a')],_0x5e3670=_0x42f4ca[_0x3c41('0x89')];_0x42f4ca['previous']=null,null!=_0x2786c0&&(_0x2786c0[_0x3c41('0x89')]=null),_0x42f4ca[_0x3c41('0x89')]=null,null!=_0x5e3670&&(_0x5e3670['previous']=null),_0x3c41('0xfb')==this['_suggestionState'][_0x3c41('0xc1')](_0x42f4ca)&&(this[_0x3c41('0x138')][_0x3c41('0xce')](_0x42f4ca,_0x3c41('0xff')),this[_0x3c41('0x7d')](_0x3c41('0x92'),_0x42f4ca,_0x2786c0,_0x5e3670));}[_0x3c41('0x69')](_0x1fa207){const _0x5d1e24=_0x1fa207['id'],_0x45a02b=this[_0x3c41('0x12b')](_0x1fa207);if(this[_0x3c41('0x114')]&&this[_0x3c41('0x114')]['addSuggestion']){const _0x571031=this[_0x3c41('0x35')][_0x3c41('0x5')][_0x3c41('0xc1')](_0x3c41('0xb6')),_0x1e4711=_0x45a02b[_0x3c41('0xb0')],_0x3a1ea9=_0x45a02b[_0x3c41('0x3a')]?_0x45a02b['type']+':'+_0x45a02b[_0x3c41('0x3a')]:_0x45a02b[_0x3c41('0x140')],_0x37afd3=this[_0x3c41('0x35')]['locale'],_0x40d6c5=_0x571031[_0x3c41('0x7b')](_0x5dd432(_0x37afd3,_0x3c41('0xc3'))),_0x46e32b={'id':_0x5d1e24,'type':_0x3a1ea9,'hasComments':_0x1e4711,'data':_0x1fa207['data']||null,'originalSuggestionId':_0x1fa207[_0x3c41('0x79')]||null,'attributes':_0x45a02b[_0x3c41('0x5a')]};this[_0x3c41('0x114')][_0x3c41('0x131')](_0x46e32b)['then'](_0x2dd0b7=>{_0x45a02b[_0x3c41('0x73')]=!0x0,_0x571031[_0x3c41('0xbb')](_0x40d6c5),_0x2dd0b7&&_0x2dd0b7['createdAt']&&(this['_suggestions'][_0x3c41('0xc1')](_0x5d1e24)[_0x3c41('0x139')]=_0x2dd0b7[_0x3c41('0x139')]);})[_0x3c41('0xd6')](_0x36c5c4=>{throw _0x151902('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model'][_0x3c41('0x126')]({'isUndoable':!0x1},()=>{_0x45a02b[_0x3c41('0xf4')]();}),_0x45a02b[_0x3c41('0x27')](),this[_0x3c41('0xb2')][_0x3c41('0x94')](_0x45a02b['id']),this[_0x3c41('0x138')][_0x3c41('0x94')](_0x45a02b),_0x36c5c4;});}return _0x45a02b;}[_0x3c41('0xf3')](_0x434377,_0x3c3098){const _0xe244d3=this['editor'][_0x3c41('0x5')]['get']('PendingActions'),_0x2dfbff=this['getSuggestion'](_0x434377);if(this[_0x3c41('0x114')]&&this['_adapter'][_0x3c41('0x4')]){if(_0x2dfbff[_0x3c41('0x73')]){const _0x31b915=_0xe244d3[_0x3c41('0x7b')](_0x5dd432(this['editor']['locale'],_0x3c41('0xc3')));this['_adapter']['updateSuggestion'](_0x434377,_0x3c3098)[_0x3c41('0xd2')](()=>{_0xe244d3[_0x3c41('0xbb')](_0x31b915);});}else _0x2dfbff['on'](_0x3c41('0xc0'),()=>{this[_0x3c41('0xf3')](_0x434377,_0x3c3098);});}}['_getSuggestionData'](_0x321520){if(!this[_0x3c41('0x114')]||!this[_0x3c41('0x114')][_0x3c41('0x9')])throw new _0x149c43(_0x3c41('0x117'),this);return this[_0x3c41('0x114')][_0x3c41('0x9')](_0x321520);}[_0x3c41('0xc4')](_0x436909){const {id:_0x5062e9,type:_0x6258,subType:_0x501f17,authorId:_0x1d7efa}=this[_0x3c41('0xf9')](_0x436909),_0xdb1c35=this['_suggestions'][_0x3c41('0xc1')](_0x5062e9)||this['_createSuggestion'](_0x6258,_0x501f17,_0x5062e9,_0x1d7efa,{});switch(this[_0x3c41('0x119')](_0xdb1c35,_0x6258,_0x501f17,_0x1d7efa),this[_0x3c41('0x138')][_0x3c41('0xc1')](_0xdb1c35)){case'notReady':this['_getSuggestionData'](_0x5062e9)['then'](_0x586961=>{let _0x411740=Promise[_0x3c41('0xc7')]();_0x586961[_0x3c41('0xb0')]&&(_0x411740=this[_0x3c41('0x8f')]['fetchCommentThread']({'channelId':this[_0x3c41('0x35')][_0x3c41('0x5f')][_0x3c41('0xc1')](_0x3c41('0xb4')),'threadId':_0x5062e9})),_0x411740[_0x3c41('0xd2')](()=>{this[_0x3c41('0x12b')](_0x586961)[_0x3c41('0x73')]=!0x0;});}),this[_0x3c41('0x138')][_0x3c41('0xce')](_0xdb1c35,_0x3c41('0x53'));break;case _0x3c41('0xff'):this[_0x3c41('0xf3')](_0x5062e9,{'state':_0x3c41('0x14')});case _0x3c41('0x95'):this[_0x3c41('0x138')][_0x3c41('0xce')](_0xdb1c35,'ready'),this[_0x3c41('0x7d')]('suggestionLoaded',_0xdb1c35);break;case _0x3c41('0xfb'):this['fire']('suggestionChanged',_0xdb1c35);}return _0xdb1c35[_0x3c41('0xcf')](_0x436909),_0xdb1c35;}[_0x3c41('0xc9')](_0x42e3f6){const _0x2e8f61=Array[_0x3c41('0xe3')](_0x42e3f6)[_0x3c41('0x59')](_0x38a61f=>!_0x38a61f['isMultiRange']),_0x3fdb95=this['getSuggestions']({'skipNotAttached':!0x0})[_0x3c41('0x59')](_0x43d301=>!_0x43d301[_0x3c41('0xf7')]),_0x31e170=_0x3fdb95[_0x3c41('0x59')](_0x4e6cbd=>!_0x42e3f6[_0x3c41('0x10c')](_0x4e6cbd)),_0x5541e8=new Map(_0x3fdb95[_0x3c41('0x93')](_0x13f329=>[_0x13f329,this[_0x3c41('0x133')][_0x3c41('0x60')](_0x13f329[_0x3c41('0x140')],_0x13f329['subType'],_0x3c41('0x39'))])),_0x13a7af=new Map(_0x3fdb95['map'](_0x335e80=>[_0x335e80,_0x335e80[_0x3c41('0x85')]()])),_0x48211d=new Set(),_0x4616f6=new Set();for(let _0x3c7a36=0x0;_0x3c7a36<_0x2e8f61[_0x3c41('0x80')];_0x3c7a36++)_0x130089(_0x2e8f61[_0x3c7a36],_0x2e8f61,_0x3c7a36+0x1);for(let _0x247799=0x0;_0x247799<_0x2e8f61['length'];_0x247799++)_0x130089(_0x2e8f61[_0x247799],_0x31e170,0x0);for(let _0x2700a4=0x0;_0x2700a4<_0x2e8f61[_0x3c41('0x80')];_0x2700a4++){const _0x454a66=_0x2e8f61[_0x2700a4];!_0x4616f6[_0x3c41('0x10c')](_0x454a66)&&_0x454a66[_0x3c41('0x8a')]&&(_0x454a66[_0x3c41('0x8a')][_0x3c41('0x89')]===_0x454a66&&(_0x454a66[_0x3c41('0x8a')][_0x3c41('0x89')]=null),_0x454a66['previous']=null),!_0x48211d[_0x3c41('0x10c')](_0x454a66)&&_0x454a66['next']&&(_0x454a66['next'][_0x3c41('0x8a')]===_0x454a66&&(_0x454a66['next'][_0x3c41('0x8a')]=null),_0x454a66[_0x3c41('0x89')]=null);}function _0x130089(_0x26afda,_0x56a303,_0xd019d9){for(let _0x1af70d=_0xd019d9;_0x1af70d<_0x56a303[_0x3c41('0x80')];_0x1af70d++){const _0x391f8e=_0x5d59b7(_0x26afda,_0x56a303[_0x1af70d]);_0x391f8e&&(_0x391f8e[0x0][_0x3c41('0x89')]=_0x391f8e[0x1],_0x391f8e[0x1][_0x3c41('0x8a')]=_0x391f8e[0x0],_0x48211d['add'](_0x391f8e[0x0]),_0x4616f6[_0x3c41('0x7b')](_0x391f8e[0x1]));}}function _0x5d59b7(_0x172e03,_0x4786b2){if(_0x172e03[_0x3c41('0x6e')]['id']!==_0x4786b2[_0x3c41('0x6e')]['id'])return null;const _0x1c4b6b=_0x5541e8[_0x3c41('0xc1')](_0x172e03)(_0x172e03,_0x4786b2,_0x13a7af['get'](_0x172e03),_0x13a7af['get'](_0x4786b2));if(!_0x1c4b6b)return null;return _0x5541e8[_0x3c41('0xc1')](_0x4786b2)(_0x172e03,_0x4786b2,_0x13a7af[_0x3c41('0xc1')](_0x172e03),_0x13a7af[_0x3c41('0xc1')](_0x4786b2))?_0x1c4b6b[0x1][_0x3c41('0x43')]&&_0x1c4b6b[0x1]['commentThread'][_0x3c41('0x80')]?null:_0x1c4b6b:null;}}[_0x3c41('0x99')](_0x544cb4){const _0x43c5ef=Array[_0x3c41('0xe3')](_0x544cb4),_0x5050f0=this[_0x3c41('0xa7')]({'skipNotAttached':!0x0}),_0x197629=_0x5050f0['filter'](_0x152700=>!_0x544cb4[_0x3c41('0x10c')](_0x152700)),_0x179bea=new Map(_0x43c5ef[_0x3c41('0x93')](_0x3d6a20=>[_0x3d6a20,this[_0x3c41('0x133')]['getSuggestionCallback'](_0x3d6a20[_0x3c41('0x140')],_0x3d6a20[_0x3c41('0x3a')],_0x3c41('0x17'))])),_0x3087f7=new Map(_0x5050f0[_0x3c41('0x93')](_0x58ac0f=>[_0x58ac0f,_0x58ac0f[_0x3c41('0xeb')]()]));for(let _0x1efbe7=0x0;_0x1efbe7<_0x43c5ef[_0x3c41('0x80')];_0x1efbe7++){if(_0x5ba188(this,_0x43c5ef[_0x1efbe7],_0x43c5ef,_0x1efbe7+0x1))return!0x0;}for(let _0x1d8f4a=0x0;_0x1d8f4a<_0x43c5ef['length'];_0x1d8f4a++){if(_0x5ba188(this,_0x43c5ef[_0x1d8f4a],_0x197629,0x0))return!0x0;}return!0x1;function _0x5ba188(_0x56ac21,_0x2cc7a7,_0x279ade,_0x24c1d3){for(let _0x58b649=_0x24c1d3;_0x58b649<_0x279ade[_0x3c41('0x80')];_0x58b649++){const _0xc2eccc=_0x279ade[_0x58b649];if(_0xc2eccc[_0x3c41('0x140')]!==_0x2cc7a7[_0x3c41('0x140')]||_0xc2eccc['author']['id']!==_0x2cc7a7[_0x3c41('0x6e')]['id']||_0xc2eccc[_0x3c41('0x3a')]!==_0x2cc7a7['subType'])continue;if(!Ut(_0x2cc7a7,_0xc2eccc))continue;const _0x56a550=_0x179bea['get'](_0x2cc7a7),_0xdb5571=_0x3087f7[_0x3c41('0xc1')](_0x2cc7a7),_0x4db6aa=_0x3087f7[_0x3c41('0xc1')](_0xc2eccc),_0x54edeb=_0x2cc7a7[_0x3c41('0x43')]&&_0x2cc7a7[_0x3c41('0x43')]['length'],_0xf6a69e=_0xc2eccc[_0x3c41('0x43')]&&_0xc2eccc[_0x3c41('0x43')][_0x3c41('0x80')];if(!_0x54edeb&&_0x56a550(_0x4db6aa,_0xdb5571))return _0x56ac21[_0x3c41('0xe2')](_0xc2eccc,_0x2cc7a7),_0x3087f7['delete'](_0x2cc7a7),!0x0;if(!_0xf6a69e&&_0x56a550(_0xdb5571,_0x4db6aa))return _0x56ac21[_0x3c41('0xe2')](_0x2cc7a7,_0xc2eccc),_0x3087f7['delete'](_0xc2eccc),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4bd81d,_0x69444){if(_0x4bd81d[_0x3c41('0xf7')])for(const _0xa47f95 of _0x69444[_0x3c41('0xeb')]())_0x4bd81d[_0x3c41('0x120')](_0xa47f95);else{const _0x101295=_0x69444['getFirstRange']()[_0x3c41('0x78')];this[_0x3c41('0x13d')](_0x4bd81d,this[_0x3c41('0x115')][_0x3c41('0x6c')](_0x4bd81d[_0x3c41('0x85')]()[_0x3c41('0x109')],_0x101295));}_0x69444['removeMarkers']();}}class Bt{constructor(_0x3b703a){this[_0x3c41('0x6f')]=_0x3b703a,this[_0x3c41('0x115')]=_0x3b703a[_0x3c41('0xd3')],this[_0x3c41('0xed')]=new Map(),this[_0x3c41('0x145')]=new Map(),this[_0x3c41('0x105')]();}[_0x3c41('0x31')](_0x338a9e,_0x6cad3d,_0x26a64b,_0x378e0d,_0x296cc9,_0x3e0c12){return new _0x32734f(this[_0x3c41('0x115')],{'type':_0x338a9e,'subType':_0x6cad3d,'id':_0x26a64b,'author':_0x378e0d,'creator':_0x378e0d,'attributes':_0x296cc9,'onAttributesChange':_0x3e0c12,'onAccept':(..._0x3fc6fe)=>this['getSuggestionCallback'](_0x338a9e,_0x6cad3d,_0x3c41('0x81'))(..._0x3fc6fe),'onDiscard':(..._0x53e451)=>this['getSuggestionCallback'](_0x338a9e,_0x6cad3d,_0x3c41('0xf4'))(..._0x53e451)});}[_0x3c41('0x106')](_0x5bfd6f,_0x131430,_0x3bc43a,_0x41f06e){const _0x272e72=_0x5bfd6f+':'+_0x131430+':'+_0x3bc43a;this[_0x3c41('0xed')]['set'](_0x272e72,_0x41f06e);}[_0x3c41('0x60')](_0x189991,_0x514e1a,_0x4eb028){const _0x4ac7dd=_0x189991+':'+_0x514e1a+':'+_0x4eb028;return this[_0x3c41('0xed')][_0x3c41('0xc1')](_0x4ac7dd)||this[_0x3c41('0x145')]['get'](_0x189991+':'+_0x4eb028);}[_0x3c41('0x105')](){const _0x5e2c9d=()=>!0x1,_0x1970df=_0x5ead93=>{_0x5ead93[_0x3c41('0xe')]((_0x44dc0b,_0x13e92d)=>_0x44dc0b[_0x3c41('0x109')]['isBefore'](_0x13e92d['start'])?0x1:-0x1),this[_0x3c41('0x115')][_0x3c41('0x112')](_0xe0b276=>{for(const _0x582795 of _0x5ead93){let _0x1ac909;_0x1ac909=_0x582795[_0x3c41('0x78')][_0x3c41('0x2')]&&_0x582795[_0x3c41('0x78')]['parent']==_0x582795[_0x3c41('0x109')]['nodeAfter']?_0xe0b276[_0x3c41('0x13e')](_0x582795['start']['nodeAfter'],'on'):_0xe0b276[_0x3c41('0x13e')](_0x582795),this[_0x3c41('0x115')]['deleteContent'](_0x1ac909,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x234acb=(_0x5453fa,_0x3a628e)=>{this[_0x3c41('0x115')][_0x3c41('0x112')](_0x54f13b=>{const {commandName:_0x74d212,commandParams:_0xa005ca=[]}=_0x3a628e,_0x47ee12=_0x5453fa[_0x3c41('0x93')](_0x5a08cd=>(Mt(_0x5a08cd)&&(_0x5a08cd=this[_0x3c41('0x115')][_0x3c41('0x6c')](_0x5a08cd[_0x3c41('0x78')])),_0x5a08cd))[_0x3c41('0x59')](_0xe4fd48=>_0x3c41('0x37')!==_0xe4fd48[_0x3c41('0x10e')]['rootName']);if(_0x47ee12[_0x3c41('0x80')]<0x1)return;const _0x23c046=Array['from'](this['_model'][_0x3c41('0x23')]['selection'][_0x3c41('0xeb')]())[_0x3c41('0x93')](_0x572754=>_0xe5a593[_0x3c41('0x124')](_0x572754));_0x54f13b[_0x3c41('0xbd')](_0x47ee12);for(const _0xdd794c of this[_0x3c41('0x6f')][_0x3c41('0xc2')][_0x3c41('0xc2')]())_0xdd794c[_0x3c41('0x5b')]();_0xa005ca[_0x3c41('0xea')]({'forceDefaultExecution':!0x0}),this[_0x3c41('0x6f')][_0x3c41('0x3f')](_0x74d212,..._0xa005ca);const _0x2cbd54=_0x23c046[_0x3c41('0x59')](_0x88a5da=>_0x3c41('0x37')!=_0x88a5da[_0x3c41('0x10e')][_0x3c41('0xc')]);_0x2cbd54[_0x3c41('0x80')]>0x0&&_0x54f13b[_0x3c41('0xbd')](_0x2cbd54);for(const _0x238d6e of _0x23c046)_0x238d6e['detach']();});},_0x4bd0dc=(_0x47f96f,_0x3981df)=>0x1==_0x47f96f[_0x3c41('0x80')]&&0x1==_0x3981df[_0x3c41('0x80')]&&_0x47f96f[0x0][_0x3c41('0x78')][_0x3c41('0xbe')](_0x3981df[0x0]['start']),_0x2d0b25=(_0xadc142,_0x3db0c2,_0xd85bf8,_0x19ddd8)=>xt(_0xadc142,_0x3db0c2,_0xd85bf8,_0x19ddd8,this[_0x3c41('0x115')])?[_0xadc142,_0x3db0c2]:xt(_0x3db0c2,_0xadc142,_0x19ddd8,_0xd85bf8,this[_0x3c41('0x115')])?[_0x3db0c2,_0xadc142]:null;this['_defaultCallbacks'][_0x3c41('0xce')](_0x3c41('0xdd'),_0x5e2c9d),this[_0x3c41('0x145')][_0x3c41('0xce')](_0x3c41('0x113'),_0x1970df),this[_0x3c41('0x145')]['set'](_0x3c41('0xb3'),_0x4bd0dc),this[_0x3c41('0x145')][_0x3c41('0xce')](_0x3c41('0x68'),_0x2d0b25),this[_0x3c41('0x145')][_0x3c41('0xce')]('deletion:accept',_0x1970df),this['_defaultCallbacks'][_0x3c41('0xce')]('deletion:discard',_0x5e2c9d),this[_0x3c41('0x145')][_0x3c41('0xce')]('deletion:join',_0x4bd0dc),this[_0x3c41('0x145')][_0x3c41('0xce')]('deletion:chain',_0x2d0b25),this[_0x3c41('0x145')][_0x3c41('0xce')](_0x3c41('0xda'),_0x234acb),this['_defaultCallbacks'][_0x3c41('0xce')](_0x3c41('0x83'),_0x5e2c9d),this[_0x3c41('0x145')]['set'](_0x3c41('0x5c'),_0x4bd0dc),this[_0x3c41('0x145')]['set'](_0x3c41('0xa3'),_0x5e2c9d),this[_0x3c41('0x145')][_0x3c41('0xce')](_0x3c41('0xf0'),_0x234acb),this[_0x3c41('0x145')][_0x3c41('0xce')](_0x3c41('0x19'),_0x5e2c9d),this[_0x3c41('0x145')]['set'](_0x3c41('0x88'),_0x4bd0dc),this[_0x3c41('0x145')][_0x3c41('0xce')]('formatBlock:chain',_0x5e2c9d);}}function _t(_0x169d6e,_0x5291f2,_0x2d3911){for(const _0x46bc80 of _0x5291f2[_0x3c41('0x9f')][_0x3c41('0x4e')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x46bc80[_0x3c41('0x10e')]==_0x46bc80)return!0x1;if(!_0x2d3911[_0x3c41('0x11f')](_0x46bc80))return!0x1;if(_0x169d6e[_0x3c41('0x116')](_0x46bc80)||_0x169d6e['isLimit'](_0x46bc80))return!0x0;}return!0x1;}function Mt(_0x2603e4){return _0x2603e4['end'][_0x3c41('0x9f')]==_0x2603e4['start'][_0x3c41('0x101')]&&_0x2603e4['end'][_0x3c41('0x121')];}function $t(_0x2f3057,_0x5c6461,_0x1f0ce3,_0x43ad37){const _0xe876f3=_0x260de7=>!_0x260de7[_0x3c41('0x55')]['is'](_0x3c41('0x10a'))&&!_0x43ad37[_0x3c41('0x116')](_0x260de7[_0x3c41('0x55')]),_0x2ac1c7=_0x2f3057[_0x3c41('0x109')]['getLastMatchingPosition'](_0xe876f3),_0x40518d=_0x2f3057['end'][_0x3c41('0x7a')](_0xe876f3,{'direction':_0x3c41('0x2c')});return(!_0x2f3057[_0x3c41('0x109')][_0x3c41('0xbe')](_0x2ac1c7)||!_0x2f3057['end']['isEqual'](_0x40518d))&&(_0x2ac1c7['isBefore'](_0x40518d)?_0x1f0ce3[_0x3c41('0x6')](_0x5c6461,{'range':_0x1f0ce3[_0x3c41('0x6c')](_0x2ac1c7,_0x40518d)}):_0x1f0ce3[_0x3c41('0x103')](_0x5c6461),!0x0);}function Nt(_0xe45085){return _0x4ee5c6(_0xe45085);}function Rt(_0x591c47){const _0x15ff1d=_0x591c47[_0x3c41('0x109')][_0x3c41('0x101')];return _0x15ff1d&&_0x15ff1d['is']('element');}function jt(_0x2bc029,_0x34cee1){const _0x2b8c05=_0x34cee1['schema'][_0x3c41('0x116')](_0x2bc029)||_0x34cee1['schema'][_0x3c41('0x51')](_0x2bc029);return _0x34cee1[_0x3c41('0x6c')](_0x34cee1[_0x3c41('0x141')](_0x2bc029,_0x3c41('0xb')),_0x2b8c05?_0x34cee1[_0x3c41('0xe8')](_0x2bc029):_0x34cee1[_0x3c41('0x141')](_0x2bc029,_0x3c41('0x78')));}function xt(_0x221282,_0x1dd102,_0x5bee6a,_0x497865,_0x497979){if(!Ut(_0x221282,_0x1dd102))return!0x1;if(_0x5bee6a['end'][_0x3c41('0xbe')](_0x497865[_0x3c41('0x109')]))return!0x0;if(_0x221282[_0x3c41('0x140')]!=_0x1dd102[_0x3c41('0x140')])return!0x1;if(!_0x5bee6a[_0x3c41('0x78')][_0x3c41('0x12f')](_0x497865['start']))return!0x1;const _0x40342a=_0x497979['createRange'](_0x5bee6a[_0x3c41('0x78')],_0x497865['start'])[_0x3c41('0x107')]();for(const _0x58b0d1 of _0x40342a)if([_0x3c41('0x12c'),_0x3c41('0xec')]['includes'](_0x58b0d1[_0x3c41('0x140')])&&_0x497979[_0x3c41('0xfe')][_0x3c41('0x30')](_0x58b0d1[_0x3c41('0x55')]))return!0x1;return!0x0;}function Ut(_0x310c94,_0x5c895e){return!(!_0x310c94[_0x3c41('0x2d')]||!_0x5c895e['_isDataLoaded'])&&_0x524132(_0x310c94[_0x3c41('0x5a')],_0x5c895e['attributes']);}function Ot(_0x2221af,_0x29a196){const _0x2f4a87=Et(_0x2221af[_0x3c41('0x5a')]),_0x31e941=Et(_0x29a196);if(!_0x2221af[_0x3c41('0x2d')])return!0x1;for(const _0x916825 of Object[_0x3c41('0x9e')](_0x31e941))if(!_0x524132(_0x2f4a87[_0x916825],_0x31e941[_0x916825]))return!0x1;return!0x0;}function Et(_0x8a29d5){const _0x2df627=Object[_0x3c41('0x4a')]({},_0x8a29d5);return delete _0x2df627[_0x3c41('0x100')],delete _0x2df627[_0x3c41('0xa')],_0x2df627;}