@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231105.0 → 0.0.0-nightly-20231106.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-20231105.0",
3
+ "version": "0.0.0-nightly-20231106.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-20231105.0",
43
- "ckeditor5-collaboration": "0.0.0-nightly-20231105.0",
42
+ "ckeditor5": "0.0.0-nightly-20231106.0",
43
+ "ckeditor5-collaboration": "0.0.0-nightly-20231106.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 _0x45f0=['showSuggestionHighlights','createRangeIn','assign','commentThread','unbind','skipNestingCheck','range','high','batch','type','ready','options','formatBlock:accept','move','track-changes-adapter-already-set','formatInline:chain','trackChangesCommand','isAfter','addSuggestion','_cutOutSuggestionMarker','removeMarker','discardAllSuggestions','getAncestors','_suggestionState','markers','_handleNewSuggestionMarker','removed','markBlockFormat','discardSuggestion','ck-suggestion-marker--active','markMultiRangeBlockFormat','isArray','isNextTo','change:_saved','bindElementToMarker','PendingActions','deletion:','locale','document','createSelection','deletion','@external','_joinWithAdjacentSuggestions','subType','isSelectable','isInContent','stop','_isDataLoaded','always','requires','isAtEnd','_createSuggestion','toJSON','init','getSuggestion','removeComment','markerReady','formatInline:join','newRange','track-changes-user-not-found','consumable','error-saving-suggestion-data-suggestion-discarded','track-changes-suggestion-data-mismatch','markDeletion','activeMarkers','value','fetchCommentThread','getFirstMarker','split','getCustomProperty','upcast','tablePasteChainId','sort','change:data','open','_setSuggestionData','never','differ','$graveyard','containsPosition','formatBlock:join','isBlock','formatInline:discard','isIntersectingWithRange','item','isAtStart','insertion:','splice','isBefore','createdAt','_addSuggestionMarker','conversion','rejected','formatGroupId','getAllAdjacentSuggestions','resolve','discardSelectedSuggestions','join','includes','elementStart','markInsertion','dataReady','removeMarker:suggestion:formatBlock','reconvertMarker','_refreshSuggestionsChain','every','change:activeMarkers','deletion:accept','_checkSuggestionCorrectness','map','highest','define','PENDING_ACTION_SUGGESTION','insertion','selection','_isForcedDefaultExecutionBlock','isRemovable','plugins','editing','editor','isExternal','updateMarker','has','after','oldRange','head','forward','_splitMarkerName','formatBlock:discard','authorName','_adapter','isOwn','getLastMatchingPosition','hasComments','addHighlight','getRanges','_findSuggestions','change','forceDefaultExecution','_mergeNestedSuggestions','_getExternalAuthor','before','nodeBefore','getMarkers','_rangeIsInLocalUserInsertion','lowest','clear','multipleBlocks','editingDowncast','buildSuggestion','formatBlock:','_editor','addUser','for','keys','getChanges','low','_breakSuggestionMarker','_updateSuggestionData','insertion:join','from','suggestionUnloaded','commands','widget','listenTo','removeMarkers','splitPosition','data','size','createPositionAt','getSuggestions','mapper','_getSuggestionData','add','deletion:join','ck-suggestion-marker-formatBlock','getUser','addSuggestionData','return','markerName','acceptSelectedSuggestions','addComment','refresh','registerCustomCallback','adapter','start','attributes','suggestionChanged','getMultiRangeId','isDocumentOperation','isLimit','createPositionAfter','fire','dataToMarker','formatBlock:chain','isLocal','removeAttribute','setSelection','_saved','_setSuggestionRange','containsItem','suggestion','ck-suggestion-marker','chain','_customCallbacks','originalSuggestionId','_addThreadToSuggestion','markerToData','insertion:accept','some','suggestion:','rootName','_commentsRepository','_model','getItems','_trackFormatChanges','nodeAfter','setTo','next','isCollapsed','discard','set','trackChanges.mergeNestedSuggestions','track-changes-adapter-missing-getsuggestion','getNearestSelectionRange','remove','getFirstRange','addMarkerName','_removeSuggestion','fromRange','position','normal','removeClass','howMany','schema','consume','getSuggestionCallback','addClass','update:suggestion','config','isUndo','getChangedMarkers','filter','addRange','toViewElement','setAttribute','isMultiRange','clone','root','isInsideObject','Users','_joinSuggestions','formatInline','name','model','collaboration.channelId','updateSuggestion','deletion:chain','getDifference','acceptSuggestion','insertion:discard','execute','documentSelection','markMultiRangeInsertion','element','addCommentThread','CommentsRepository','data-suggestion','then','length','formatBlock','hasSuggestion','addMarker:suggestion:formatBlock','isObject','detach','formatInline:accept','notReady','deleteContent','suggestionLoaded','authoredAt','writer','unbindElementFromMarkerName','end','$marker','acceptAllSuggestions','markerToHighlight','trackChanges.trackFormatChanges','containsRangeInObject','push','getIntersection','addMarker','pluginName','_descriptionFactory','insert','_enabledCommands','parent','containerElement','substr','formatInline:','registerPostFixer','createPositionBefore','_suggestionFactory','isTouching','createRange','multi','get','_suggestions','creator','getCommentThread','enableCommand','accept','trackChanges','containsRange','elementToElement','rethrowUnexpectedError','previous','isEqual','suggestion-type','_getAuthorFromId','_defaultCallbacks','group','insertContent','enqueueChange','author','getAttribute','backward','dataDowncast'];(function(_0x414e68,_0x45f0ff){const _0x42b22c=function(_0x5074cf){while(--_0x5074cf){_0x414e68['push'](_0x414e68['shift']());}};_0x42b22c(++_0x45f0ff);}(_0x45f0,0x176));const _0x42b2=function(_0x414e68,_0x45f0ff){_0x414e68=_0x414e68-0x0;let _0x42b22c=_0x45f0[_0x414e68];return _0x42b22c;};import{Plugin as _0x250fc1,PendingActions as _0x2efc12}from'ckeditor5/src/core';import{LiveRange as _0x48c2b6}from'ckeditor5/src/engine';import{CKEditorError as _0x81a6ba,uid as _0x1dc3be,priorities as _0x2939da,logWarning as _0x184e53}from'ckeditor5/src/utils';import{toWidget as _0x446fe9}from'ckeditor5/src/widget';import{Users as _0x1af5bb,hashObject as _0x9faea9}from'ckeditor5-collaboration/src/collaboration-core';import _0x3a98c0 from'./commands/trackchangescommand';import _0x540c87 from'./commands/acceptsuggestioncommand';import _0x1ee56e from'./commands/discardsuggestioncommand';import _0x3cc3db from'./commands/executeonallsuggestionscommand';import _0x168013 from'./commands/executeonselectedsuggestionscommand';import _0x2918a7 from'./suggestion';import _0x4b1f95 from'./suggestiondescriptionfactory';import _0x2e1372 from'./integrations/aiassistant';import _0x48d18e from'./integrations/alignment';import _0x3bd666 from'./integrations/basicstyles';import _0x3241c6 from'./integrations/blockquote';import _0x532bf4 from'./integrations/ckbox';import _0x2231ac from'./integrations/codeblock';import _0x570b68 from'./integrations/comments';import _0x2f71c0 from'./integrations/deletecommand';import _0x1d518c from'./integrations/documentlist';import _0x41e031 from'./integrations/entercommand';import _0x1076ba from'./integrations/findandreplace';import _0x39edd0 from'./integrations/font';import _0x3ff39f from'./integrations/formatpainter';import _0x401cc4 from'./integrations/heading';import _0x4af0dc from'./integrations/highlight';import _0x1fd5a9 from'./integrations/horizontalline';import _0x969971 from'./integrations/htmlembed';import _0x48ad30 from'./integrations/image';import _0x1968a2 from'./integrations/imagereplace';import _0x276f93 from'./integrations/importword';import _0x150ca8 from'./integrations/indent';import _0x87be9d from'./integrations/inputcommand';import _0x16f279 from'./integrations/link';import _0x1821fc from'./integrations/list';import _0x4e6f14 from'./integrations/listproperties';import _0x4c5174 from'./integrations/mediaembed';import _0x532ef1 from'./integrations/mention';import _0x481438 from'./integrations/pagebreak';import _0x4b9f05 from'./integrations/paragraph';import _0x435917 from'./integrations/removeformat';import _0x4a5fe0 from'./integrations/restrictededitingmode';import _0x5b3f96 from'./integrations/shiftentercommand';import _0x5306f9 from'./integrations/standardeditingmode';import _0x481e6e from'./integrations/style';import _0x44decc from'./integrations/table';import _0x53fb84 from'./integrations/tablemergesplit';import _0x46433e from'./integrations/tableheadings';import _0x4cd816 from'./integrations/tableclipboard';import _0xdb972f from'./integrations/tablecolumnresize';import _0x57b951 from'./integrations/template';import _0x115f30 from'./integrations/tableofcontents';import _0x242a39 from'./integrations/title';import _0x525bf3 from'./integrations/undo';import{getTranslation as _0x1c3871}from'./utils/common-translations';import _0x259df1 from'./integrations/tablecaption';import _0x338b6e from'./integrations/documentlistproperties';import _0x19d17d from'./integrations/tableproperties';import{isEqual as _0x194041}from'lodash-es';export default class p extends _0x250fc1{static get[_0x42b2('0x2')](){return[_0x42b2('0xdb'),_0x1af5bb,_0x2efc12,_0x2e1372,_0x48d18e,_0x3bd666,_0x3241c6,_0x532bf4,_0x2231ac,_0x570b68,_0x2f71c0,_0x1d518c,_0x338b6e,_0x41e031,_0x1076ba,_0x39edd0,_0x3ff39f,_0x401cc4,_0x4af0dc,_0x1fd5a9,_0x969971,_0x48ad30,_0x1968a2,_0x276f93,_0x150ca8,_0x87be9d,_0x16f279,_0x1821fc,_0x4e6f14,_0x4c5174,_0x532ef1,_0x481438,_0x4b9f05,_0x435917,_0x4a5fe0,_0x5b3f96,_0x5306f9,_0x481e6e,_0x44decc,_0x53fb84,_0x46433e,_0x259df1,_0x4cd816,_0xdb972f,_0x115f30,_0x19d17d,_0x57b951,_0x242a39,_0x525bf3];}static get[_0x42b2('0xf4')](){return'TrackChangesEditing';}constructor(_0x3dd21b){function _0x4ea350(_0x257df4){return _0x257df4[_0x42b2('0x3e')](_0x5523fb=>String['fromCharCode'](_0x5523fb))[_0x42b2('0x32')]('');}super(_0x3dd21b),this[_0x42b2('0xae')](_0x42b2('0x11'),[]),this['on'](_0x42b2('0x3b'),(_0x44eb6d,_0x92088f,_0x7559d,_0xb7d0e0)=>{this['_model']['change'](()=>{for(const _0x3e7d9e of[..._0xb7d0e0,..._0x7559d])this[_0x42b2('0xa6')]['markers'][_0x42b2('0x4b')](_0x3e7d9e)&&_0x3dd21b[_0x42b2('0x47')][_0x42b2('0x38')](_0x3e7d9e);});}),this[_0x42b2('0xf5')]=new _0x4b1f95(this[_0x42b2('0x48')]['model'][_0x42b2('0xbb')],this[_0x42b2('0x48')][_0x42b2('0x13d')]),this[_0x42b2('0x53')]=null,this['_suggestionFactory']=new Bt(this[_0x42b2('0x48')]),this['_suggestions']=new Map(),this[_0x42b2('0xa5')]=_0x3dd21b[_0x42b2('0x46')]['get'](_0x42b2('0xdb')),this['_enabledCommands']=new Set(),this[_0x42b2('0xa6')]=this[_0x42b2('0x48')][_0x42b2('0xcf')],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x3dd21b[_0x42b2('0xc0')][_0x42b2('0x40')](_0x42b2('0xef'),'default'),this[_0x42b2('0xa8')]=_0x3dd21b['config']['get'](_0x42b2('0xef')),_0x3dd21b[_0x42b2('0xc0')][_0x42b2('0x40')](_0x42b2('0xaf'),!0x0),this[_0x42b2('0x5c')]=_0x3dd21b[_0x42b2('0xc0')][_0x42b2('0x102')]('trackChanges.mergeNestedSuggestions'),this[_0x42b2('0x128')]=new _0x3a98c0(_0x3dd21b,this[_0x42b2('0xf7')]),this[_0x4ea350([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4ea350([0x34,0x30,0x34,0x36,0x32,0x32,0x31,0x30]);}[_0x42b2('0x6')](){const _0x5203ce=this[_0x42b2('0x48')];_0x5203ce[_0x42b2('0x2c')][_0x42b2('0x6a')](_0x42b2('0x65'))[_0x42b2('0xee')]({'model':_0x42b2('0x9a'),'view':_0x585db5=>{const {id:_0x5bdae7,type:_0x33361}=this[_0x42b2('0x50')](_0x585db5[_0x42b2('0x84')]),_0x265645=[_0x42b2('0x9b'),'ck-suggestion-marker-'+_0x33361];let _0x159076=0xbb8;return this[_0x42b2('0x11')][_0x42b2('0x33')](_0x585db5['markerName'])&&(_0x265645[_0x42b2('0xf1')]('ck-suggestion-marker--active'),_0x159076=0xbc2),_0x42b2('0x140')==_0x33361&&(_0x159076+=0x5),{'classes':_0x265645,'attributes':{'data-suggestion':_0x5bdae7},'priority':_0x159076};}}),_0x5203ce[_0x42b2('0x2c')]['for'](_0x42b2('0x117'))[_0x42b2('0x7e')](_0x1b62b4=>{_0x1b62b4['on']('addMarker:suggestion',(_0x58cc69,_0xfb084e,_0x1f407c)=>{if(!_0x1f407c[_0x42b2('0x123')][_0x42b2('0x118')])return;const _0x4a7f97=_0xfb084e[_0x42b2('0x25')];if(!_0x4a7f97)return;const _0x53d11b=_0x1f407c[_0x42b2('0x7c')]['toViewElement'](_0x4a7f97);_0x5203ce[_0x42b2('0xcf')][_0x42b2('0xbb')][_0x42b2('0xe2')](_0x4a7f97)&&_0x53d11b&&!_0x53d11b[_0x42b2('0x16')](_0x42b2('0x74'))&&_0x53d11b['is'](_0x42b2('0xf9'))&&_0x446fe9(_0x53d11b,_0x1f407c[_0x42b2('0xe9')]);},{'priority':_0x42b2('0x11f')});}),_0x5203ce[_0x42b2('0x2c')]['for'](_0x42b2('0x117'))[_0x42b2('0xee')]({'model':_0x42b2('0x9a'),'view':(_0x16d608,_0x3a2429)=>{if(!_0x3a2429[_0x42b2('0x123')][_0x42b2('0x118')])return null;const {type:_0x17d152}=this[_0x42b2('0x50')](_0x16d608['markerName']);return{'classes':[_0x42b2('0x9b'),'ck-suggestion-marker-'+_0x17d152],'priority':0xbb8};}});const _0x2302ab=({showActiveMarkers:_0x1e63ac=!0x0}={})=>(_0xf40dc0,_0x3352f9,_0x19ec4e)=>{if(!_0x3352f9[_0x42b2('0x25')])return;if(_0x3352f9['item']['is']('selection'))return void _0x19ec4e[_0x42b2('0xd')][_0x42b2('0xbc')](_0x3352f9['item'],_0xf40dc0[_0x42b2('0xce')]);const _0xc9aa=_0x19ec4e[_0x42b2('0x7c')][_0x42b2('0xc5')](_0x3352f9[_0x42b2('0x25')]);if(!(_0x3352f9['item']['is']('element')&&_0x5203ce[_0x42b2('0xcf')][_0x42b2('0xbb')][_0x42b2('0x22')](_0x3352f9['item'])&&!_0xc9aa[_0x42b2('0x16')](_0x42b2('0x57'))))return;const {id:_0xbace4b}=this['_splitMarkerName'](_0x3352f9[_0x42b2('0x84')]);_0x19ec4e[_0x42b2('0xe9')][_0x42b2('0xbe')]([_0x42b2('0x9b'),_0x42b2('0x80')],_0xc9aa),_0x19ec4e[_0x42b2('0xe9')][_0x42b2('0xc6')](_0x42b2('0xdc'),_0xbace4b,_0xc9aa),_0x19ec4e[_0x42b2('0x7c')][_0x42b2('0x13a')](_0xc9aa,_0x3352f9['markerName']),_0x1e63ac&&(this[_0x42b2('0x11')][_0x42b2('0x33')](_0x3352f9[_0x42b2('0x84')])?_0x19ec4e[_0x42b2('0xe9')][_0x42b2('0xbe')]('ck-suggestion-marker--active',_0xc9aa):_0x19ec4e[_0x42b2('0xe9')][_0x42b2('0xb9')](_0x42b2('0x135'),_0xc9aa));for(const _0x54fb13 of _0x5203ce[_0x42b2('0xcf')][_0x42b2('0x119')](_0x3352f9[_0x42b2('0x25')])[_0x42b2('0xa7')]())_0x19ec4e['consumable'][_0x42b2('0xbc')](_0x54fb13,_0xf40dc0[_0x42b2('0xce')]);_0x19ec4e[_0x42b2('0xd')][_0x42b2('0xbc')](_0x3352f9[_0x42b2('0x25')],_0xf40dc0[_0x42b2('0xce')]);};_0x5203ce[_0x42b2('0x2c')]['for'](_0x42b2('0x117'))['add'](_0x5c055c=>{_0x5c055c['on']('addMarker:suggestion:formatBlock',(_0x43b7b4,_0xc14446,_0xacb565)=>{_0xacb565[_0x42b2('0x123')]['showSuggestionHighlights']&&_0x2302ab({'showActiveMarkers':!0x1})(_0x43b7b4,_0xc14446,_0xacb565);},{'priority':_0x42b2('0x3f')});}),_0x5203ce['conversion']['for'](_0x42b2('0x117'))[_0x42b2('0xa0')]({'model':_0x42b2('0x9a'),'view':(_0x4f04e8,_0x3c6c29)=>_0x3c6c29[_0x42b2('0x123')][_0x42b2('0x118')]?null:{'group':_0x42b2('0x9a'),'name':_0x4f04e8[_0x42b2('0xfa')](0xb)}}),_0x5203ce['conversion']['for'](_0x42b2('0x17'))[_0x42b2('0x10a')]({'view':{'name':_0x42b2('0x9a'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4e71b3,{writer:_0x8d575b})=>{let _0x567dca=_0x42b2('0xa3')+_0x4e71b3[_0x42b2('0x115')](_0x42b2('0x10e'))+':'+_0x4e71b3[_0x42b2('0x115')]('id');return _0x4e71b3[_0x42b2('0x115')]('marker-count')&&(_0x567dca+=':'+_0x4e71b3['getAttribute']('marker-count')),_0x8d575b['createElement'](_0x42b2('0xec'),{'data-name':_0x567dca});}}),_0x5203ce[_0x42b2('0x2c')]['for']('upcast')[_0x42b2('0x92')]({'view':_0x42b2('0x9a')}),_0x5203ce[_0x42b2('0x2c')][_0x42b2('0x6a')](_0x42b2('0x65'))['add'](_0x1f30bd=>{_0x1f30bd['on'](_0x42b2('0xe1'),_0x2302ab(),{'priority':_0x42b2('0x11f')});}),_0x5203ce['conversion'][_0x42b2('0x6a')]('editingDowncast')[_0x42b2('0x7e')](_0x8afc7d=>{_0x8afc7d['on'](_0x42b2('0x37'),(_0x1afba9,_0x3ff033,_0x5da137)=>{const _0x536cb4=_0x5da137[_0x42b2('0x7c')]['markerNameToElements'](_0x3ff033[_0x42b2('0x84')]);if(_0x536cb4)for(const _0x45c856 of _0x536cb4)_0x45c856[_0x42b2('0x16')]('addHighlight')||(_0x5da137[_0x42b2('0xe9')]['removeClass']([_0x42b2('0x9b'),_0x42b2('0x80'),_0x42b2('0x135')],_0x45c856),_0x5da137[_0x42b2('0xe9')][_0x42b2('0x95')](_0x42b2('0xdc'),_0x45c856),_0x5da137[_0x42b2('0x7c')][_0x42b2('0xea')](_0x45c856,_0x3ff033['markerName']));},{'priority':_0x42b2('0x11f')});}),_0x5203ce[_0x42b2('0xcf')][_0x42b2('0x13e')][_0x42b2('0xfc')](_0x2dda2b=>{let _0xea12b9=!0x1;const _0x345807=Array[_0x42b2('0x71')](_0x5203ce[_0x42b2('0xcf')][_0x42b2('0x13e')][_0x42b2('0x1e')][_0x42b2('0xc2')]()),_0x2647d4=new Set();for(const {name:_0x55846a,data:_0x2e689a}of _0x345807){const {group:_0x31cd5a,type:_0x89bd06,id:_0x32879e}=this[_0x42b2('0x50')](_0x55846a);if('suggestion'!==_0x31cd5a)continue;const _0x5a559f=this[_0x42b2('0x103')][_0x42b2('0x102')](_0x32879e);if(null!=_0x2e689a[_0x42b2('0xb')]){'formatInline'==_0x89bd06&&(_0xea12b9=_0xea12b9||$t(_0x2e689a[_0x42b2('0xb')],_0x55846a,_0x2dda2b,_0x5203ce[_0x42b2('0xcf')][_0x42b2('0xbb')]));if(_0x2e689a[_0x42b2('0xb')][_0x42b2('0xac')]||_0x42b2('0x1f')==_0x2e689a['newRange'][_0x42b2('0xc9')][_0x42b2('0xa4')]||'formatBlock'==_0x89bd06&&!Rt(_0x2e689a['newRange'])||'deletion'==_0x89bd06&&!(!Mt(_0x5ee198=_0x2e689a['newRange'])&&!function(_0x13bca8){return _0x13bca8['start'][_0x42b2('0xf8')]==_0x13bca8[_0x42b2('0xeb')]['nodeBefore']&&_0x13bca8[_0x42b2('0x8a')]['isAtEnd'];}(_0x5ee198)))_0x2dda2b[_0x42b2('0x12c')](_0x55846a),_0xea12b9=!0x0;else{if(!_0x5a559f||!_0x5a559f[_0x42b2('0x145')])continue;_0x2647d4[_0x42b2('0x7e')](_0x5a559f);}}}var _0x5ee198;return _0x2647d4['size']>0x0&&(_0xea12b9=!!this[_0x42b2('0x142')](_0x2647d4)||_0xea12b9),_0xea12b9;}),_0x5203ce[_0x42b2('0xcf')]['document'][_0x42b2('0xfc')](_0x12a13=>{let _0x466dc0=!0x1;for(const _0x45d59f of _0x5203ce[_0x42b2('0xcf')][_0x42b2('0x13e')][_0x42b2('0x1e')][_0x42b2('0x6c')]()){if('insert'!=_0x45d59f['type'])continue;const _0x2f84a0=_0x45d59f[_0x42b2('0xb7')]['getShiftedBy'](_0x45d59f[_0x42b2('0xde')]);if(_0x2f84a0[_0x42b2('0x3')])for(const _0x17dd85 of this[_0x42b2('0x103')]['values']()){if(_0x17dd85['isMultiRange']||!_0x17dd85[_0x42b2('0x145')])continue;if(_0x42b2('0xdf')!=_0x17dd85[_0x42b2('0x121')])continue;const _0x14dc12=_0x17dd85['getFirstRange']();if(_0x14dc12[_0x42b2('0x8a')][_0x42b2('0xf8')]!=_0x14dc12[_0x42b2('0xeb')]['parent']&&_0x14dc12[_0x42b2('0xeb')][_0x42b2('0x10d')](_0x45d59f[_0x42b2('0xb7')])){const _0xdee991=_0x5203ce[_0x42b2('0xcf')][_0x42b2('0x100')](_0x14dc12[_0x42b2('0x8a')],_0x2f84a0);_0x12a13[_0x42b2('0x4a')](_0x17dd85[_0x42b2('0x14')](),{'range':_0xdee991}),_0x466dc0=!0x0;}}}return _0x466dc0;}),_0x5203ce[_0x42b2('0xcf')][_0x42b2('0x130')]['on'](_0x42b2('0xbf'),(_0x51468e,_0x64f2ce,_0xa197be)=>{if(null==_0xa197be){const {id:_0x43bef1}=this[_0x42b2('0x50')](_0x64f2ce[_0x42b2('0xce')]),_0x2d9a35=this[_0x42b2('0x103')]['get'](_0x43bef1);_0x2d9a35&&_0x2d9a35[_0x42b2('0xb4')](_0x64f2ce[_0x42b2('0xce')]);}}),_0x5203ce['model'][_0x42b2('0x13e')]['on'](_0x42b2('0x1a'),()=>{const _0x4ef903=Array[_0x42b2('0x71')](_0x5203ce['model'][_0x42b2('0x13e')][_0x42b2('0x1e')]['getChangedMarkers']())['filter'](_0x23eca3=>'suggestion'===this['_splitMarkerName'](_0x23eca3[_0x42b2('0xce')])[_0x42b2('0x111')]);if(0x0===_0x4ef903['length'])return;_0x4ef903['sort']((_0x199f05,_0x376cc1)=>{const _0x141a24=_0x199f05[_0x42b2('0x78')][_0x42b2('0x4d')],_0x17748d=_0x376cc1[_0x42b2('0x78')][_0x42b2('0x4d')];return null===_0x141a24&&null===_0x17748d?0x0:null===_0x141a24&&null!==_0x17748d?-0x1:null!==_0x141a24&&null===_0x17748d?0x1:_0x141a24[_0x42b2('0x8a')]['isBefore'](_0x17748d[_0x42b2('0x8a')])?-0x1:0x1;});const _0x31a073=new Set(),_0x1de980=new Set();for(const {name:_0x4a0ebe,data:_0x36b190}of _0x4ef903){const {id:_0x5229b5}=this[_0x42b2('0x50')](_0x4a0ebe);if(null===_0x36b190[_0x42b2('0x4d')]){const _0xabad8d=this[_0x42b2('0x131')](_0x4a0ebe);_0x1de980[_0x42b2('0x7e')](_0xabad8d);}else{const _0x53834a=this['_suggestions'][_0x42b2('0x102')](_0x5229b5);null!==_0x36b190[_0x42b2('0xb')]||_0x53834a[_0x42b2('0x145')]?(_0x31a073['add'](_0x53834a[_0x42b2('0x4e')]),_0x1de980['add'](_0x53834a)):this['_removeSuggestion'](_0x53834a);}}_0x1de980[_0x42b2('0x79')]>0x0&&this[_0x42b2('0x39')](_0x1de980);for(const _0x3bb945 of _0x31a073)this['fire']('suggestionChanged',_0x3bb945);}),_0x5203ce[_0x42b2('0xcf')]['on']('applyOperation',(_0x27de24,_0x10e6b1)=>{const _0x29eb7d=_0x10e6b1[0x0];if(!this['_suggestions'][_0x42b2('0x79')])return;if(!_0x29eb7d[_0x42b2('0x8e')])return;if(_0x29eb7d[_0x42b2('0x120')][_0x42b2('0xc1')]||!_0x29eb7d[_0x42b2('0x120')][_0x42b2('0x94')])return;let _0x452aab,_0x4e9145;switch(_0x29eb7d[_0x42b2('0x121')]){case _0x42b2('0xf6'):_0x452aab=_0x5203ce['model'][_0x42b2('0x7a')](_0x29eb7d[_0x42b2('0xb7')]),_0x4e9145=_0x452aab['getShiftedBy'](_0x29eb7d['howMany']);break;case _0x42b2('0x15'):_0x452aab=_0x5203ce[_0x42b2('0xcf')][_0x42b2('0x7a')](_0x29eb7d[_0x42b2('0x77')]),_0x4e9145=_0x5203ce[_0x42b2('0xcf')][_0x42b2('0x7a')](_0x29eb7d['moveTargetPosition']);break;case _0x42b2('0x125'):_0x452aab=_0x5203ce[_0x42b2('0xcf')]['createPositionAt'](_0x29eb7d['targetPosition']),_0x4e9145=_0x452aab['getShiftedBy'](_0x29eb7d[_0x42b2('0xba')]);break;default:return;}const _0x4b7ee5=_0x5203ce['model'][_0x42b2('0x100')](_0x452aab,_0x4e9145);_0x5203ce[_0x42b2('0xcf')][_0x42b2('0x5a')](()=>{for(const {suggestion:_0xac4613,meta:_0x151225}of this[_0x42b2('0x59')](_0x4b7ee5)){if(_0xac4613[_0x42b2('0xc7')])continue;if(_0x42b2('0xcd')==_0xac4613[_0x42b2('0x121')])continue;const _0x3417d9=_0xac4613[_0x42b2('0x78')]&&_0xac4613[_0x42b2('0x78')][_0x42b2('0x64')];('formatBlock'!=_0xac4613[_0x42b2('0x121')]||_0x42b2('0x15')==_0x29eb7d[_0x42b2('0x121')]&&!_0x3417d9)&&(_0x151225[_0x42b2('0xf0')]||_0x42b2('0x42')==_0xac4613[_0x42b2('0x121')]&&_0x151225[_0x42b2('0x54')]||_0xac4613[_0x42b2('0xb3')]()[_0x42b2('0x109')](_0x4b7ee5)&&this[_0x42b2('0x6e')](_0xac4613,_0x452aab,_0x4e9145));}});},{'priority':_0x42b2('0x62')}),_0x5203ce['model']['on'](_0x42b2('0xe6'),(_0x4b5efd,_0x1a217c)=>{const _0x59943a=_0x1a217c[0x0],_0xbfee08=_0x1a217c[0x1];if(_0xbfee08&&_0xbfee08[_0x42b2('0x5b')])return;if(this[_0x42b2('0x44')])return;if(!this[_0x42b2('0x128')]['value'])return;if(_0x59943a[_0x42b2('0xac')])return;const _0x50e67f=_0x5203ce['model']['schema'],{start:_0x9639b7,end:_0x233851}=_0x59943a['getFirstRange'](),_0x3cb27b=_0x9639b7[_0x42b2('0xa9')]&&_0x50e67f[_0x42b2('0x8f')](_0x9639b7[_0x42b2('0xa9')])?null:_0x50e67f[_0x42b2('0xb1')](_0x9639b7,_0x42b2('0x4f')),_0x5961d3=_0x233851[_0x42b2('0x5f')]&&_0x50e67f[_0x42b2('0x8f')](_0x233851['nodeBefore'])?null:_0x50e67f[_0x42b2('0xb1')](_0x233851,'backward'),_0x58bb5c=_0x5203ce[_0x42b2('0xcf')][_0x42b2('0x100')](_0x3cb27b?_0x3cb27b[_0x42b2('0x8a')]:_0x9639b7,_0x5961d3?_0x5961d3['end']:_0x233851);_0x5203ce[_0x42b2('0xcf')][_0x42b2('0x5a')](_0x564ee6=>{this['markDeletion'](_0x58bb5c);const _0x1c53d0=_0x5203ce[_0x42b2('0xcf')]['schema'][_0x42b2('0xb1')](_0x58bb5c[_0x42b2('0x8a')]);_0x59943a['is'](_0x42b2('0xd7'))?_0x564ee6['setSelection'](_0x1c53d0):_0x59943a[_0x42b2('0xaa')](_0x1c53d0);}),_0x4b5efd[_0x42b2('0x146')]();},{'priority':_0x2939da[_0x42b2('0xb8')]+0xa}),_0x5203ce[_0x42b2('0xcf')]['on']('insertContent',(_0xae7c43,_0x21b166)=>{const _0x3c1e1b=_0x21b166[_0x21b166[_0x42b2('0xde')]-0x1];_0x3c1e1b&&_0x3c1e1b[_0x42b2('0x5b')]||this[_0x42b2('0x44')]||this[_0x42b2('0x128')][_0x42b2('0x12')]&&(_0x5203ce[_0x42b2('0xcf')][_0x42b2('0x5a')](()=>{let _0x165986=_0x5203ce['model'][_0x42b2('0x112')](_0x21b166[0x0],_0x21b166[0x1],_0x21b166[0x2],{'forceDefaultExecution':!0x0});if(!_0x165986)return;_0xae7c43['return']=_0x165986[_0x42b2('0xc8')]();const _0x291015=_0x165986['end'][_0x42b2('0x5f')],_0x5df822=_0x5203ce[_0x42b2('0xcf')][_0x42b2('0xbb')];_0x291015&&_0x5df822[_0x42b2('0x22')](_0x291015)&&!_0x5df822[_0x42b2('0xe2')](_0x291015)&&(_0x165986=_0x5203ce[_0x42b2('0xcf')][_0x42b2('0x100')](_0x165986[_0x42b2('0x8a')],_0x5203ce[_0x42b2('0xcf')][_0x42b2('0x7a')](_0x291015,_0x42b2('0xeb')))),this['markInsertion'](_0x165986);}),_0xae7c43[_0x42b2('0x146')]());},{'priority':_0x42b2('0x11f')}),this[_0x42b2('0x48')]['commands'][_0x42b2('0x7e')](_0x42b2('0x108'),this['trackChangesCommand']),this[_0x42b2('0x106')](_0x42b2('0x108'));const _0x40684c=new _0x540c87(_0x5203ce,this['_suggestions']);_0x5203ce['commands'][_0x42b2('0x7e')](_0x42b2('0xd4'),_0x40684c),this[_0x42b2('0x106')]('acceptSuggestion');const _0x479497=new _0x1ee56e(_0x5203ce,this[_0x42b2('0x103')]);_0x5203ce[_0x42b2('0x73')][_0x42b2('0x7e')]('discardSuggestion',_0x479497),this['enableCommand'](_0x42b2('0x134')),_0x5203ce[_0x42b2('0x73')][_0x42b2('0x7e')](_0x42b2('0xed'),new _0x3cc3db(_0x5203ce,_0x40684c,this[_0x42b2('0x103')])),this[_0x42b2('0x106')]('acceptAllSuggestions'),_0x5203ce[_0x42b2('0x73')][_0x42b2('0x7e')](_0x42b2('0x12d'),new _0x3cc3db(_0x5203ce,_0x479497,this[_0x42b2('0x103')])),this[_0x42b2('0x106')](_0x42b2('0x12d')),_0x5203ce[_0x42b2('0x73')][_0x42b2('0x7e')](_0x42b2('0x85'),new _0x168013(_0x5203ce,_0x40684c,this[_0x42b2('0x103')])),this[_0x42b2('0x106')](_0x42b2('0x85')),_0x5203ce[_0x42b2('0x73')][_0x42b2('0x7e')]('discardSelectedSuggestions',new _0x168013(_0x5203ce,_0x479497,this[_0x42b2('0x103')])),this[_0x42b2('0x106')](_0x42b2('0x31'));const _0x2b7a83=_0x5203ce[_0x42b2('0x46')]['get'](_0x42b2('0xdb'));this['listenTo'](_0x2b7a83,_0x42b2('0x86'),(_0x278ae4,{threadId:_0x32de01})=>{const _0x2a25f1=this['_suggestions']['get'](_0x32de01);_0x2a25f1&&_0x2a25f1[_0x42b2('0x11b')]&&0x1===_0x2a25f1['commentThread']['length']&&this['_updateSuggestionData'](_0x32de01,{'hasComments':!0x0});},{'priority':_0x42b2('0x6d')}),this[_0x42b2('0x75')](_0x2b7a83,_0x42b2('0x8'),(_0x5c7cd8,{threadId:_0x4f5fb7})=>{const _0x18f305=this['_suggestions'][_0x42b2('0x102')](_0x4f5fb7);_0x18f305&&_0x18f305[_0x42b2('0x11b')]&&!_0x18f305[_0x42b2('0x11b')]['length']&&this[_0x42b2('0x6f')](_0x4f5fb7,{'hasComments':!0x1});},{'priority':_0x42b2('0x6d')});}set[_0x42b2('0x89')](_0x1b4f3e){if(this[_0x42b2('0x53')])throw new _0x81a6ba(_0x42b2('0x126'),this);this[_0x42b2('0x53')]=_0x1b4f3e;}get[_0x42b2('0x89')](){return this[_0x42b2('0x53')];}[_0x42b2('0x7b')]({skipNotAttached:_0x22141c=!0x1,toJSON:_0x1b487=!0x1}={}){const _0x586235=[];for(const _0x1ea893 of this[_0x42b2('0x103')]['values']())_0x22141c&&!_0x1ea893['isInContent']||_0x586235[_0x42b2('0xf1')](_0x1ea893);return _0x1b487?_0x586235['map'](_0x3b49a9=>_0x3b49a9[_0x42b2('0x5')]()):_0x586235;}['getSuggestion'](_0x195273){const _0x5e02b7=this['_suggestions'][_0x42b2('0x102')](_0x195273);if(!_0x5e02b7)throw new _0x81a6ba('track-changes-suggestion-not-found',this);return _0x5e02b7;}[_0x42b2('0xe0')](_0x533989){return this[_0x42b2('0x103')][_0x42b2('0x4b')](_0x533989);}[_0x42b2('0x82')](_0x100e1d){const {authorId:_0x530c55,id:_0x136325,attributes:_0x11b8aa}=_0x100e1d,[_0x1d9707,_0x10937a]=_0x100e1d[_0x42b2('0x121')][_0x42b2('0x15')](':'),_0x2f8ca7=this['_suggestions'][_0x42b2('0x102')](_0x136325)||this['_createSuggestion'](_0x1d9707,_0x10937a,_0x136325,_0x530c55,_0x11b8aa);if(this[_0x42b2('0x9f')](_0x2f8ca7),this[_0x42b2('0x3d')](_0x2f8ca7,_0x1d9707,_0x10937a||null,_0x530c55),_0x2f8ca7[_0x42b2('0x2a')]=_0x100e1d[_0x42b2('0x2a')],_0x2f8ca7[_0x42b2('0x0')]=!0x0,_0x11b8aa&&_0x11b8aa['@external']){const _0x59bcbd=_0x11b8aa[_0x42b2('0x141')],_0x492bba=this[_0x42b2('0x5d')](_0x59bcbd[_0x42b2('0x52')]);_0x2f8ca7[_0x42b2('0xe8')]=_0x59bcbd[_0x42b2('0x2a')],_0x2f8ca7[_0x42b2('0x114')]=_0x492bba,_0x2f8ca7[_0x42b2('0x49')]=!0x0;}else _0x2f8ca7[_0x42b2('0xe8')]=_0x100e1d['createdAt'];switch(_0x100e1d[_0x42b2('0x78')]&&(_0x2f8ca7[_0x42b2('0x78')]=_0x100e1d[_0x42b2('0x78')]),_0x100e1d[_0x42b2('0x8b')]&&(_0x2f8ca7[_0x42b2('0x8b')]=_0x100e1d[_0x42b2('0x8b')]),this['_adapter']&&this[_0x42b2('0x53')]['addSuggestion']||(_0x2f8ca7[_0x42b2('0x97')]=!0x0),this[_0x42b2('0x12f')][_0x42b2('0x102')](_0x2f8ca7)){case'notReady':this[_0x42b2('0x12f')][_0x42b2('0xae')](_0x2f8ca7,_0x42b2('0x36'));break;case _0x42b2('0x9'):_0x2f8ca7[_0x42b2('0x145')]?(this[_0x42b2('0x39')](new Set([_0x2f8ca7])),this[_0x42b2('0x142')](new Set([_0x2f8ca7])),this[_0x42b2('0x12f')][_0x42b2('0xae')](_0x2f8ca7,_0x42b2('0x122')),this[_0x42b2('0x91')](_0x42b2('0xe7'),_0x2f8ca7)):this[_0x42b2('0x12f')][_0x42b2('0xae')](_0x2f8ca7,_0x42b2('0x132'));}return _0x2f8ca7;}['acceptSuggestion'](_0x435023){this[_0x42b2('0x5b')](()=>{this[_0x42b2('0x48')][_0x42b2('0xcf')][_0x42b2('0x5a')](()=>{for(const _0xaf7220 of _0x435023[_0x42b2('0x2f')]())_0xaf7220[_0x42b2('0x107')]();});});}[_0x42b2('0x134')](_0xe031df){this[_0x42b2('0x5b')](()=>{this[_0x42b2('0x48')][_0x42b2('0xcf')][_0x42b2('0x5a')](()=>{for(const _0x38f8dc of _0xe031df[_0x42b2('0x2f')]())_0x38f8dc['discard']();});});}['enableCommand'](_0x3a00cb,_0x5073aa){const _0xaafae3=this[_0x42b2('0x48')][_0x42b2('0x73')][_0x42b2('0x102')](_0x3a00cb);if(!_0xaafae3)throw new _0x81a6ba('track-changes-command-not-found',this,{'commandName':_0x3a00cb});this[_0x42b2('0xf7')][_0x42b2('0x7e')](_0xaafae3),_0x5073aa&&_0xaafae3['on'](_0x42b2('0xd6'),(_0xb5a36,_0x6576c8)=>{this['trackChangesCommand'][_0x42b2('0x12')]&&(this[_0x42b2('0x44')]||_0x6576c8[_0x42b2('0xde')]>0x0&&_0x6576c8[_0x6576c8['length']-0x1]&&_0x6576c8[_0x6576c8['length']-0x1]['forceDefaultExecution']||(_0xb5a36[_0x42b2('0x83')]=_0x5073aa((..._0x1e0e4c)=>_0xaafae3[_0x42b2('0xd6')](..._0x1e0e4c,{'forceDefaultExecution':!0x0}),..._0x6576c8),_0xb5a36['stop']()));},{'priority':'high'});}[_0x42b2('0x5b')](_0x587728){let _0x21a037,_0x1690fe;const _0x2c47a3=this[_0x42b2('0x44')];this[_0x42b2('0x44')]=!0x0;try{_0x21a037=_0x587728();}catch(_0x191df2){_0x1690fe=_0x191df2;}return _0x2c47a3||(this[_0x42b2('0x44')]=!0x1),_0x1690fe&&_0x81a6ba[_0x42b2('0x10b')](_0x1690fe,this),_0x21a037;}[_0x42b2('0x35')](_0xb7897c,_0x54892d=null,_0x437f5e={}){if(_0xb7897c[_0x42b2('0xac')])return null;const _0x139d61=this[_0x42b2('0x48')][_0x42b2('0x46')][_0x42b2('0x102')]('Users')['me'];for(const {suggestion:_0x148477,meta:_0x2242d5}of this['_findSuggestions'](_0xb7897c,'insertion'))if(_0x2242d5[_0x42b2('0x54')]){if(!_0x2242d5['isNextTo']){if(_0x2242d5[_0x42b2('0xf0')]){if(!this[_0x42b2('0x5c')]||!Ot(_0x148477,_0x437f5e))continue;return _0x148477;}if(Ot(_0x148477,_0x437f5e))return _0x148477;this['_breakSuggestionMarker'](_0x148477,_0xb7897c[_0x42b2('0x8a')],_0xb7897c[_0x42b2('0xeb')]);break;}if(_0x54892d==_0x148477[_0x42b2('0x143')]&&Ot(_0x148477,_0x437f5e)){const _0x3af0c2=_0x148477['getFirstRange']();return _0x3af0c2[_0x42b2('0x8a')]['isEqual'](_0xb7897c[_0x42b2('0xeb')])?this['_setSuggestionRange'](_0x148477,this['_model'][_0x42b2('0x100')](_0xb7897c['start'],_0x3af0c2[_0x42b2('0xeb')])):this[_0x42b2('0x98')](_0x148477,this[_0x42b2('0xa6')][_0x42b2('0x100')](_0x3af0c2[_0x42b2('0x8a')],_0xb7897c[_0x42b2('0xeb')])),_0x148477;}}const _0x1c194a=_0x1dc3be(),_0x5aa434=_0x139d61['id'],_0x5967b8=_0x54892d?_0x42b2('0x27')+_0x54892d:'insertion',_0x3d3c80=this[_0x42b2('0x1c')]({'id':_0x1c194a,'type':_0x5967b8,'createdAt':new Date(),'authorId':_0x5aa434,'attributes':_0x437f5e});return this[_0x42b2('0x2b')](_0x5967b8,_0x1c194a,_0x5aa434,_0xb7897c),_0x3d3c80;}[_0x42b2('0xd8')](_0x21d86f,_0x41728b=_0x42b2('0x101'),_0x494212={}){const _0x54da38=this[_0x42b2('0x48')][_0x42b2('0x46')][_0x42b2('0x102')](_0x42b2('0xcb'))['me'],_0x521fc=this[_0x42b2('0xfe')][_0x42b2('0xbd')](_0x42b2('0x42'),_0x41728b,_0x42b2('0x32'));for(const _0x1c3007 of this['getSuggestions']())if(_0x1c3007[_0x42b2('0x114')]['id']==_0x54da38['id']&&_0x42b2('0x42')==_0x1c3007[_0x42b2('0x121')]&&_0x1c3007['subType']==_0x41728b&&Ot(_0x1c3007,_0x494212)&&(_0x521fc(_0x1c3007[_0x42b2('0x58')](),_0x21d86f)||_0x521fc(_0x21d86f,_0x1c3007[_0x42b2('0x58')]()))){for(const _0x4d743b of _0x21d86f)_0x1c3007[_0x42b2('0xc4')](_0x4d743b);return _0x1c3007;}for(const {suggestion:_0x561fae,meta:_0xc83a95}of this[_0x42b2('0x59')](_0x21d86f,_0x42b2('0x42'))){if(!_0xc83a95[_0x42b2('0x54')])continue;if(!this[_0x42b2('0x5c')]&&_0xc83a95['containsRangeInObject'])continue;if(!Ot(_0x561fae,_0x494212))continue;let _0x5d2610=!0x0;for(const _0x5bc3a3 of _0x561fae['getRanges']())for(const _0x50dc35 of _0x21d86f)if(!_0x5bc3a3['containsRange'](_0x50dc35)){_0x5d2610=!0x1;break;}if(_0x5d2610)return _0x561fae;}const _0x3af176=_0x1dc3be(),_0x4111fa=_0x54da38['id'],_0x3223bb=_0x42b2('0x27')+_0x41728b,_0x17cff3=this[_0x42b2('0x1c')]({'id':_0x3af176,'type':_0x3223bb,'createdAt':new Date(),'authorId':_0x4111fa,'attributes':_0x494212});for(const _0x36639b of _0x21d86f)this[_0x42b2('0x2b')](_0x3223bb,_0x3af176,_0x4111fa,_0x36639b,_0x2918a7[_0x42b2('0x8d')]());return _0x17cff3;}['markInlineFormat'](_0xe99a88,_0x2dd38e,_0x2a91bc=null,_0x3c510d={}){if(_0x2a91bc=_0x2a91bc||Nt(_0x2dd38e),_0xe99a88['isCollapsed'])return null;if(_0x42b2('0x1d')===this[_0x42b2('0xa8')]){const _0x41c8c6=this[_0x42b2('0xfe')][_0x42b2('0xbd')](_0x42b2('0xcd'),_0x2a91bc,_0x42b2('0x107'));return this['forceDefaultExecution'](()=>_0x41c8c6([_0xe99a88],_0x2dd38e,_0x3c510d)),null;}const _0x37f8b9=this[_0x42b2('0x48')][_0x42b2('0x46')][_0x42b2('0x102')](_0x42b2('0xcb'))['me'],_0x1d976a=[];if(_0x42b2('0x1')!==this[_0x42b2('0xa8')])for(const {suggestion:_0x51fcd8,meta:_0x58b36}of this[_0x42b2('0x59')](_0xe99a88,_0x42b2('0x42')))_0x58b36[_0x42b2('0x54')]&&!_0x58b36[_0x42b2('0xca')]&&_0x1d976a[_0x42b2('0xf1')](..._0x51fcd8['getRanges']());const _0x243480=function(_0x7a2040,_0x528719){const _0x5c666f=[];for(const _0x578fe4 of _0x528719){const _0x151f36=_0x7a2040['getIntersection'](_0x578fe4);_0x151f36&&_0x5c666f['push'](_0x151f36);}return _0x5c666f;}(_0xe99a88,_0x1d976a),_0x478d95=function(_0x8f08d3,_0x44a75b){const _0x33b4a3=[_0x8f08d3];for(const _0x4fb580 of _0x44a75b){let _0x2b7df7=0x0;for(;_0x2b7df7<_0x33b4a3['length'];){const _0x58f272=_0x33b4a3[_0x2b7df7]['getDifference'](_0x4fb580);_0x33b4a3[_0x42b2('0x28')](_0x2b7df7,0x1,..._0x58f272),_0x2b7df7+=_0x58f272['length'];}}return _0x33b4a3;}(_0xe99a88,_0x1d976a);_0x243480['length']&&this['_model'][_0x42b2('0x5a')](()=>{for(const _0x2f8354 of _0x243480){const _0x2927ec=this[_0x42b2('0xfe')][_0x42b2('0xbd')](_0x42b2('0xcd'),_0x2a91bc,_0x42b2('0x107'));this[_0x42b2('0x5b')](()=>_0x2927ec([_0x2f8354],_0x2dd38e,_0x3c510d));}});for(const _0x29795c of _0x478d95){let _0x529ac3=null,_0x55f826=_0x29795c[_0x42b2('0x8a')],_0x3dc7d3=_0x29795c[_0x42b2('0xeb')];for(const {suggestion:_0x79e65,meta:_0x5ec6f1}of this[_0x42b2('0x59')](_0x29795c,_0x42b2('0xcd'))){if(!_0x5ec6f1[_0x42b2('0x54')])continue;if(_0x79e65[_0x42b2('0x143')]!=_0x2a91bc)continue;if(!Ot(_0x79e65,_0x3c510d))continue;const _0x14eff0=_0x79e65[_0x42b2('0xb3')]();if(_0x14eff0['containsRange'](_0x29795c,!0x0))return null;_0x55f826=_0x55f826[_0x42b2('0x29')](_0x14eff0[_0x42b2('0x8a')])?_0x55f826:_0x14eff0[_0x42b2('0x8a')],_0x3dc7d3=_0x3dc7d3[_0x42b2('0x129')](_0x14eff0[_0x42b2('0xeb')])?_0x3dc7d3:_0x14eff0[_0x42b2('0xeb')],_0x529ac3?_0x14eff0['start'][_0x42b2('0x29')](_0x529ac3['getFirstRange']()[_0x42b2('0x8a')])?(_0x529ac3[_0x42b2('0x76')](),_0x529ac3=_0x79e65):_0x79e65[_0x42b2('0x76')]():_0x529ac3=_0x79e65;}const _0x4daa9a=this[_0x42b2('0xa6')][_0x42b2('0x100')](_0x55f826,_0x3dc7d3);if(_0x529ac3)this[_0x42b2('0x98')](_0x529ac3,_0x4daa9a);else{const _0x31664b=_0x1dc3be(),_0x26c8df=_0x37f8b9['id'];this[_0x42b2('0x1c')]({'id':_0x31664b,'type':'formatInline:'+_0x2a91bc,'data':_0x2dd38e,'createdAt':new Date(),'authorId':_0x26c8df,'attributes':_0x3c510d}),this['_addSuggestionMarker'](_0x42b2('0xfb')+_0x2a91bc,_0x31664b,_0x26c8df,_0x4daa9a);}}return null;}[_0x42b2('0x133')](_0x17b224,_0x2fa5c1,_0x321b0d=[],_0x33fddf=null,_0x33dab2={}){_0x2fa5c1['formatGroupId']||(_0x2fa5c1[_0x42b2('0x2e')]=_0x2fa5c1['commandName']),_0x2fa5c1[_0x42b2('0x64')]=_0x17b224['is']('range'),_0x33fddf=_0x33fddf||Nt(_0x2fa5c1);const _0x460a54=_0x321b0d[_0x42b2('0x3e')](_0x3a1c3e=>jt(_0x3a1c3e,this[_0x42b2('0xa6')])),_0x53f801=_0x17b224['is']('range')?_0x17b224:jt(_0x17b224,this['_model']);if(_0x42b2('0x1d')===this[_0x42b2('0xa8')]){const _0x3f2799=this[_0x42b2('0xfe')][_0x42b2('0xbd')]('formatBlock',_0x33fddf,'accept');return this[_0x42b2('0x5b')](()=>_0x3f2799([_0x53f801],_0x2fa5c1,_0x33dab2)),null;}_0x460a54[_0x42b2('0xf1')](_0x53f801);let _0x29af99=!0x0;for(const _0x484e72 of _0x460a54)if(!this[_0x42b2('0x61')](_0x484e72)){_0x29af99=!0x1;break;}if(_0x29af99&&_0x42b2('0x1')!==this[_0x42b2('0xa8')]){const _0x451f83=this[_0x42b2('0xfe')][_0x42b2('0xbd')](_0x42b2('0xdf'),_0x33fddf,_0x42b2('0x107'));return this[_0x42b2('0x5b')](()=>_0x451f83([_0x53f801],_0x2fa5c1,_0x33dab2)),null;}let _0x184097=null,_0x2e0df1=_0x53f801[_0x42b2('0x8a')],_0x2d274=_0x53f801[_0x42b2('0xeb')];for(const {suggestion:_0x30441b,meta:_0xcee523}of this[_0x42b2('0x59')](_0x53f801,_0x42b2('0xdf'))){if(!_0xcee523['isOwn'])continue;if(_0xcee523[_0x42b2('0x138')]||_0xcee523[_0x42b2('0xf0')]||_0xcee523[_0x42b2('0xca')])continue;if(_0x30441b[_0x42b2('0x78')][_0x42b2('0x2e')]!=_0x2fa5c1['formatGroupId'])continue;if(!Ot(_0x30441b,_0x33dab2))continue;const _0x167742=_0x30441b[_0x42b2('0xb3')]();if(_0x30441b[_0x42b2('0x143')]==_0x33fddf){if(_0x167742[_0x42b2('0x109')](_0x53f801,!0x0))return null;_0x2e0df1=_0x2e0df1[_0x42b2('0x29')](_0x167742[_0x42b2('0x8a')])?_0x2e0df1:_0x167742['start'],_0x2d274=_0x2d274[_0x42b2('0x129')](_0x167742['end'])?_0x2d274:_0x167742[_0x42b2('0xeb')],_0x184097?_0x167742[_0x42b2('0x8a')][_0x42b2('0x29')](_0x184097[_0x42b2('0xb3')]()[_0x42b2('0x8a')])?(_0x184097[_0x42b2('0x76')](),_0x184097=_0x30441b):_0x30441b[_0x42b2('0x76')]():_0x184097=_0x30441b;}else{const _0x552cf9=_0x53f801[_0x42b2('0xf2')](_0x167742);this[_0x42b2('0x12b')](_0x30441b,_0x552cf9);}}const _0x17ff91=this['editor'][_0x42b2('0x46')][_0x42b2('0x102')](_0x42b2('0xcb'))['me'],_0x255797=_0x1dc3be(),_0x5a9fb4=_0x17ff91['id'];if(_0x184097)return this['_setSuggestionRange'](_0x184097,this[_0x42b2('0xa6')][_0x42b2('0x100')](_0x2e0df1,_0x2d274)),_0x184097;{const _0x4a6823=this[_0x42b2('0x1c')]({'id':_0x255797,'type':_0x42b2('0x67')+_0x33fddf,'data':_0x2fa5c1,'createdAt':new Date(),'authorId':_0x5a9fb4,'attributes':_0x33dab2});return this[_0x42b2('0x2b')]('formatBlock:'+_0x33fddf,_0x255797,_0x5a9fb4,this[_0x42b2('0xa6')][_0x42b2('0x100')](_0x2e0df1,_0x2d274)),_0x4a6823;}}[_0x42b2('0x136')](_0x50d7da,_0x3bd8a4,_0x26e997=[],_0x334249=null,_0x16e116={}){_0x3bd8a4[_0x42b2('0x2e')]||(_0x3bd8a4[_0x42b2('0x2e')]=_0x3bd8a4['commandName']);const _0x11dd62=_0x50d7da[0x0];_0x3bd8a4['multipleBlocks']=_0x11dd62['is'](_0x42b2('0x11e')),_0x334249=_0x334249||Nt(_0x3bd8a4);const _0x3673bc=_0x26e997[_0x42b2('0x3e')](_0xf3eb03=>jt(_0xf3eb03,this['_model'])),_0x365e80=_0x11dd62['is'](_0x42b2('0x11e'))?_0x50d7da:_0x50d7da['map'](_0x25c667=>jt(_0x25c667,this['_model']));if(_0x42b2('0x1d')===this['_trackFormatChanges']){const _0x1e97ef=this[_0x42b2('0xfe')][_0x42b2('0xbd')](_0x42b2('0xdf'),_0x334249,'accept');return this[_0x42b2('0x5b')](()=>_0x1e97ef(_0x365e80,_0x3bd8a4,_0x16e116)),null;}_0x3673bc['push'](..._0x365e80);let _0xf22277=!0x0;for(const _0x43028d of _0x3673bc)if(!this[_0x42b2('0x61')](_0x43028d)){_0xf22277=!0x1;break;}if(_0xf22277&&'always'!==this[_0x42b2('0xa8')]){const _0x412cec=this[_0x42b2('0xfe')][_0x42b2('0xbd')](_0x42b2('0xdf'),_0x334249,_0x42b2('0x107'));return this['forceDefaultExecution'](()=>_0x412cec(_0x365e80,_0x3bd8a4,_0x16e116)),null;}const _0x3b7a3d=this['editor'][_0x42b2('0x46')][_0x42b2('0x102')](_0x42b2('0xcb'))['me'];for(const _0x4f795a of this[_0x42b2('0x7b')]()){if(_0x4f795a[_0x42b2('0x114')]['id']!=_0x3b7a3d['id'])continue;if(_0x42b2('0xdf')!=_0x4f795a['type']||_0x4f795a['data'][_0x42b2('0x2e')]!=_0x3bd8a4['formatGroupId'])continue;if(!Ot(_0x4f795a,_0x16e116))continue;const _0x2ca33f=_0x4f795a[_0x42b2('0x143')]==_0x334249;for(let _0x832f18=0x0;_0x832f18<_0x365e80[_0x42b2('0xde')];_0x832f18++){const _0x559808=_0x365e80[_0x832f18];for(const _0x1e4590 of _0x4f795a[_0x42b2('0x60')]()){const _0x3ce9d8=_0x1e4590['getRange']();if(_0x559808['isEqual'](_0x3ce9d8)){_0x2ca33f?(_0x365e80[_0x42b2('0x28')](_0x832f18,0x1),_0x832f18--):_0x4f795a[_0x42b2('0x12c')](_0x1e4590[_0x42b2('0xce')]);break;}}}}if(0x0==_0x365e80[_0x42b2('0xde')])return null;const _0x448391=this[_0x42b2('0xfe')][_0x42b2('0xbd')](_0x42b2('0xdf'),_0x334249,_0x42b2('0x32'));for(const _0xb446cd of this['getSuggestions']())if(_0xb446cd['author']['id']==_0x3b7a3d['id']&&_0x42b2('0xdf')==_0xb446cd[_0x42b2('0x121')]&&_0xb446cd[_0x42b2('0x78')]['formatGroupId']==_0x3bd8a4['formatGroupId']&&_0xb446cd[_0x42b2('0x143')]==_0x334249&&Ot(_0xb446cd,_0x16e116)&&(_0x448391(_0xb446cd[_0x42b2('0x58')](),_0x365e80)||_0x448391(_0x365e80,_0xb446cd[_0x42b2('0x58')]()))){for(const _0x498c9b of _0x365e80)_0xb446cd[_0x42b2('0xc4')](_0x498c9b);return _0xb446cd;}const _0x443cf7=_0x1dc3be(),_0x5a9fbd=_0x3b7a3d['id'],_0x117093=_0x42b2('0x67')+_0x334249,_0x1dd7de=this[_0x42b2('0x1c')]({'id':_0x443cf7,'type':_0x117093,'data':_0x3bd8a4,'createdAt':new Date(),'authorId':_0x5a9fbd,'attributes':_0x16e116});for(const _0x5589a7 of _0x365e80)this[_0x42b2('0x2b')](_0x117093,_0x443cf7,_0x5a9fbd,_0x5589a7,_0x2918a7['getMultiRangeId']());return _0x1dd7de;}[_0x42b2('0x10')](_0x5ae3ce,_0x30e064=null,_0x61156e={}){if(_0x5ae3ce['isCollapsed'])return null;const _0x34ad38=this['editor'][_0x42b2('0x46')][_0x42b2('0x102')](_0x42b2('0xcb'))['me'],_0x5c7f31=new _0x48c2b6(_0x5ae3ce[_0x42b2('0x8a')],_0x5ae3ce[_0x42b2('0xeb')]);for(const {suggestion:_0x512fc9,meta:_0x4f6f24}of this[_0x42b2('0x59')](_0x5c7f31,_0x42b2('0x42')))if(_0x4f6f24[_0x42b2('0x54')]&&!_0x4f6f24[_0x42b2('0x138')]){if(_0x512fc9[_0x42b2('0xc7')]){const _0x26fb41=_0x512fc9['getRanges']()[_0x42b2('0xc3')](_0x3a9272=>'$graveyard'!=_0x3a9272['root'][_0x42b2('0xa4')]);_0x26fb41[_0x42b2('0x3a')](_0x3b582f=>_0x5c7f31[_0x42b2('0x109')](_0x3b582f,!0x0))&&_0x512fc9[_0x42b2('0xad')]();if(_0x26fb41[_0x42b2('0xa2')](_0x5eccad=>_0x5eccad[_0x42b2('0x109')](_0x5c7f31,!0x0))){const _0x55c8f8=this[_0x42b2('0xfe')][_0x42b2('0xbd')](_0x42b2('0x140'),_0x30e064,'accept');return this[_0x42b2('0x5b')](()=>_0x55c8f8([_0x5c7f31],null,_0x61156e)),null;}}else{const _0x5b6b0e=_0x5c7f31[_0x42b2('0xf2')](_0x512fc9[_0x42b2('0xb3')]());null!==_0x5b6b0e&&_0x512fc9['_onDiscard']([_0x5b6b0e],null,_0x61156e);}}if(_0x5c7f31[_0x42b2('0xe3')](),_0x5c7f31[_0x42b2('0xac')]||_0x42b2('0x1f')==_0x5c7f31[_0x42b2('0xc9')][_0x42b2('0xa4')])return null;let _0x410345=null,_0x4d8a06=_0x5c7f31[_0x42b2('0x8a')],_0x5acfaa=_0x5c7f31[_0x42b2('0xeb')];const _0x3b6059=this[_0x42b2('0x59')](_0x5c7f31,_0x42b2('0x140'));for(const {suggestion:_0x365cc3,meta:_0x5b6c5e}of _0x3b6059){const _0x336df4=this[_0x42b2('0xa6')]['createRange'](_0x4d8a06,_0x5acfaa);if(_0x5b6c5e[_0x42b2('0x54')]&&(this[_0x42b2('0x5c')]||!_0x5b6c5e[_0x42b2('0xf0')]&&!_0x5b6c5e[_0x42b2('0xca')])){if(_0x365cc3['isMultiRange']){if(!Ot(_0x365cc3,_0x61156e))continue;let _0x4f9cda=!0x0;for(const _0x271cb3 of _0x365cc3[_0x42b2('0x58')]()){if(_0x271cb3[_0x42b2('0x109')](_0x336df4,!0x0))return _0x365cc3;_0x336df4[_0x42b2('0x109')](_0x271cb3)||(_0x4f9cda=!0x1);}_0x4f9cda&&_0x365cc3[_0x42b2('0xad')]();}else{const _0x50381a=_0x365cc3['getFirstRange']();if(_0x50381a[_0x42b2('0x109')](_0x336df4,!0x0))return _0x365cc3;if(!Ot(_0x365cc3,_0x61156e)){_0x336df4[_0x42b2('0x109')](_0x50381a)?_0x365cc3['removeMarkers']():_0x50381a[_0x42b2('0x20')](_0x4d8a06)?_0x4d8a06=_0x50381a[_0x42b2('0xeb')]:_0x50381a[_0x42b2('0x20')](_0x5acfaa)&&(_0x5acfaa=_0x50381a[_0x42b2('0x8a')]);continue;}_0x4d8a06=_0x4d8a06[_0x42b2('0x29')](_0x50381a[_0x42b2('0x8a')])?_0x4d8a06:_0x50381a[_0x42b2('0x8a')],_0x5acfaa=_0x5acfaa[_0x42b2('0x129')](_0x50381a[_0x42b2('0xeb')])?_0x5acfaa:_0x50381a[_0x42b2('0xeb')],_0x61156e=Object[_0x42b2('0x11a')]({},_0x365cc3[_0x42b2('0x8b')]),_0x410345?_0x50381a[_0x42b2('0x8a')][_0x42b2('0x29')](_0x410345[_0x42b2('0xb3')]()[_0x42b2('0x8a')])?(_0x410345['removeMarkers'](),_0x410345=_0x365cc3):_0x365cc3[_0x42b2('0x76')]():_0x410345=_0x365cc3;}}}if(_0x410345)return this[_0x42b2('0x98')](_0x410345,this['_model'][_0x42b2('0x100')](_0x4d8a06,_0x5acfaa)),_0x410345;{const _0x5dfe88=_0x1dc3be(),_0x1eafbc=this[_0x42b2('0xa6')][_0x42b2('0x100')](_0x4d8a06,_0x5acfaa),_0x47d76f=_0x34ad38['id'],_0x257ad0=_0x30e064?_0x42b2('0x13c')+_0x30e064:_0x42b2('0x140'),_0x2207f7=this[_0x42b2('0x1c')]({'id':_0x5dfe88,'type':_0x257ad0,'createdAt':new Date(),'authorId':_0x47d76f,'attributes':_0x61156e});return this[_0x42b2('0x2b')](_0x257ad0,_0x5dfe88,_0x47d76f,_0x1eafbc),_0x2207f7;}}['markMultiRangeDeletion'](_0x527d81,_0x4a9004=_0x42b2('0x101'),_0x182b0a={}){const _0x225bc9=this[_0x42b2('0x48')][_0x42b2('0x46')][_0x42b2('0x102')]('Users')['me'],_0x12e520=_0x527d81[_0x42b2('0x3e')](_0xdd7184=>new _0x48c2b6(_0xdd7184[_0x42b2('0x8a')],_0xdd7184['end'])),_0x179005=new Set();for(const {suggestion:_0x453a50,meta:_0x2b50af}of this[_0x42b2('0x59')](_0x12e520,_0x42b2('0x42')))_0x2b50af[_0x42b2('0x54')]&&!_0x2b50af[_0x42b2('0x138')]&&_0x179005[_0x42b2('0x7e')](_0x453a50);for(const _0x336453 of _0x179005)if(_0x336453[_0x42b2('0xc7')]){const _0x313fa8=_0x336453['getRanges']();(!_0x336453[_0x42b2('0x8b')]||!_0x336453[_0x42b2('0x8b')][_0x42b2('0x11d')])&&(_0x313fa8[_0x42b2('0x3a')](_0x3db20c=>_0x12e520[_0x42b2('0xa2')](_0x48d127=>_0x48d127[_0x42b2('0x109')](_0x3db20c,!0x0)))&&_0x336453[_0x42b2('0xad')]());if(_0x12e520[_0x42b2('0x3a')](_0x6e747a=>_0x313fa8['some'](_0x52e6b0=>_0x52e6b0[_0x42b2('0x109')](_0x6e747a,!0x0)))){const _0x4a4872=this['_suggestionFactory'][_0x42b2('0xbd')](_0x42b2('0x140'),_0x4a9004,_0x42b2('0x107'));return this['forceDefaultExecution'](()=>_0x4a4872(_0x527d81,null,_0x182b0a)),null;}}else{const _0x313661=_0x336453[_0x42b2('0xb3')]();_0x12e520[_0x42b2('0xa2')](_0x1515ad=>_0x1515ad[_0x42b2('0x109')](_0x313661,!0x0))&&_0x336453['discard']();if(_0x12e520[_0x42b2('0x3a')](_0x1ef4d7=>_0x313661[_0x42b2('0x109')](_0x1ef4d7,!0x0))){const _0x1e5758=this[_0x42b2('0xfe')][_0x42b2('0xbd')]('deletion',_0x4a9004,_0x42b2('0x107'));return this[_0x42b2('0x5b')](()=>_0x1e5758(_0x12e520,null,_0x182b0a)),null;}}const _0x4c175c=this[_0x42b2('0xfe')]['getSuggestionCallback'](_0x42b2('0x140'),_0x4a9004,'join');let _0x59cf2e=null;for(const _0x5dfb01 of this[_0x42b2('0x7b')]())if(_0x5dfb01[_0x42b2('0x114')]['id']==_0x225bc9['id']&&_0x5dfb01['isInContent']&&_0x42b2('0x140')==_0x5dfb01[_0x42b2('0x121')]&&_0x5dfb01[_0x42b2('0x143')]==_0x4a9004&&Ot(_0x5dfb01,_0x182b0a)&&(_0x4c175c(_0x5dfb01[_0x42b2('0x58')](),_0x12e520)||_0x4c175c(_0x12e520,_0x5dfb01[_0x42b2('0x58')]()))){if(_0x59cf2e){if(_0x5dfb01['commentThread']&&_0x5dfb01[_0x42b2('0x11b')]['length'])continue;for(const _0x57daf6 of _0x5dfb01[_0x42b2('0x58')]())_0x59cf2e[_0x42b2('0x24')](_0x57daf6)||_0x59cf2e[_0x42b2('0xc4')](_0x57daf6);_0x5dfb01[_0x42b2('0x76')]();}else{_0x59cf2e=_0x5dfb01;for(const _0x2049ba of _0x12e520)_0x5dfb01[_0x42b2('0x24')](_0x2049ba)||_0x5dfb01[_0x42b2('0xc4')](_0x2049ba);}}if(_0x59cf2e)return _0x59cf2e;_0x179005[_0x42b2('0x63')]();for(const {suggestion:_0x203864,meta:_0x5b90c5}of this[_0x42b2('0x59')](_0x12e520,_0x42b2('0x140')))_0x5b90c5[_0x42b2('0x54')]&&(this[_0x42b2('0x5c')]||!_0x5b90c5[_0x42b2('0xf0')]&&!_0x5b90c5['isInsideObject'])&&Ot(_0x203864,_0x182b0a)&&_0x179005[_0x42b2('0x7e')](_0x203864);for(const _0x193322 of _0x179005){const _0x349ab9=_0x193322[_0x42b2('0x58')]();if(!_0x182b0a||!_0x182b0a[_0x42b2('0x11d')]){if(_0x12e520[_0x42b2('0x3a')](_0x2eccef=>_0x349ab9[_0x42b2('0xa2')](_0x367ebb=>_0x367ebb[_0x42b2('0x109')](_0x2eccef,!0x0))))return _0x193322;}(!_0x193322[_0x42b2('0x8b')]||!_0x193322[_0x42b2('0x8b')][_0x42b2('0x11d')])&&(_0x349ab9[_0x42b2('0x3a')](_0x5ccd5b=>_0x12e520['some'](_0x270b89=>_0x270b89[_0x42b2('0x109')](_0x5ccd5b,!0x0)))&&_0x193322[_0x42b2('0xad')]());}const _0x152a29=_0x1dc3be(),_0x2cebff=_0x225bc9['id'],_0x1974dd=_0x42b2('0x13c')+_0x4a9004,_0x44f9a7=this[_0x42b2('0x1c')]({'id':_0x152a29,'type':_0x1974dd,'createdAt':new Date(),'authorId':_0x2cebff,'attributes':_0x182b0a});for(const _0x56d595 of _0x12e520)_0x56d595[_0x42b2('0xe3')](),_0x56d595[_0x42b2('0xac')]||_0x42b2('0x1f')==_0x56d595['root'][_0x42b2('0xa4')]||this['_addSuggestionMarker'](_0x1974dd,_0x152a29,_0x2cebff,_0x56d595,_0x2918a7[_0x42b2('0x8d')]());return _0x44f9a7;}[_0x42b2('0x98')](_0x446714,_0x23e175){const _0xd3d1ce=_0x446714['getFirstMarker']();this['_model'][_0x42b2('0x5a')](_0xc6443e=>{_0xc6443e[_0x42b2('0x4a')](_0xd3d1ce,{'range':_0x23e175});});}['_addThreadToSuggestion'](_0x460667){const _0x10fdce=_0x460667['id'],_0x490abe=this['editor'][_0x42b2('0xc0')]['get'](_0x42b2('0xd0'));this[_0x42b2('0xa5')]['hasCommentThread'](_0x10fdce)||this['_commentsRepository'][_0x42b2('0xda')]({'channelId':_0x490abe,'threadId':_0x10fdce,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xbfdd70=this[_0x42b2('0xa5')][_0x42b2('0x105')](_0x10fdce);_0xbfdd70[_0x42b2('0x11c')](_0x42b2('0x45')),_0xbfdd70[_0x42b2('0x45')]=!0x1,_0x460667[_0x42b2('0x11b')]=_0xbfdd70;}[_0x42b2('0x3d')](_0x46cc96,_0x1b529e,_0xeca86f,_0x1e0f37){if(_0x46cc96[_0x42b2('0x121')]!=_0x1b529e||_0x46cc96[_0x42b2('0x143')]!=_0xeca86f||_0x46cc96[_0x42b2('0x104')]['id']!=_0x1e0f37)throw this['editor']['enableReadOnlyMode'](_0x42b2('0xf')),new _0x81a6ba(_0x42b2('0xf'),this);}[_0x42b2('0x12b')](_0x4bbaf4,_0x2beca2){const _0x48e9a3=_0x4bbaf4[_0x42b2('0xb3')]();if(_0x2beca2[_0x42b2('0x10d')](_0x48e9a3))_0x4bbaf4[_0x42b2('0x76')]();else{if(_0x48e9a3['containsRange'](_0x2beca2)){const _0x1947fc=this['_model'][_0x42b2('0x7a')](_0x2beca2['start'][_0x42b2('0x5f')],_0x42b2('0xeb'));this[_0x42b2('0x98')](_0x4bbaf4,this[_0x42b2('0xa6')][_0x42b2('0x100')](_0x48e9a3[_0x42b2('0x8a')],_0x1947fc));const _0x1f37df=_0x1dc3be(),_0x1b9f77=_0x4bbaf4[_0x42b2('0x104')]['id'],_0x756bd0=_0x4bbaf4['type']+':'+_0x4bbaf4[_0x42b2('0x143')];this[_0x42b2('0x1c')]({'id':_0x1f37df,'type':_0x756bd0,'createdAt':new Date(),'authorId':_0x1b9f77,'data':_0x4bbaf4[_0x42b2('0x78')],'attributes':_0x4bbaf4['attributes']});const _0x36fe0f=this[_0x42b2('0xa6')][_0x42b2('0x7a')](_0x2beca2[_0x42b2('0xeb')][_0x42b2('0xf8')],_0x42b2('0x4c')),_0x161a09=this[_0x42b2('0xa6')][_0x42b2('0x100')](_0x36fe0f,_0x48e9a3[_0x42b2('0xeb')]);this[_0x42b2('0x2b')](_0x756bd0,_0x1f37df,_0x1b9f77,_0x161a09);}else{if(_0x48e9a3[_0x42b2('0x20')](_0x2beca2['start'])){const _0xeee909=this[_0x42b2('0xa6')][_0x42b2('0x7a')](_0x2beca2[_0x42b2('0x8a')][_0x42b2('0x5f')],_0x42b2('0xeb'));this[_0x42b2('0x98')](_0x4bbaf4,this[_0x42b2('0xa6')]['createRange'](_0x48e9a3[_0x42b2('0x8a')],_0xeee909));}else{const _0x9de5ff=this[_0x42b2('0xa6')][_0x42b2('0x7a')](_0x2beca2[_0x42b2('0xeb')][_0x42b2('0xf8')],'after');this[_0x42b2('0x98')](_0x4bbaf4,this[_0x42b2('0xa6')]['createRange'](_0x9de5ff,_0x48e9a3['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x47f2e0){for(const {suggestion:_0x25a1e1,meta:_0x2b2e01}of this['_findSuggestions'](_0x47f2e0,'insertion')){if(!_0x2b2e01[_0x42b2('0x54')])continue;const _0x35d0fe=_0x25a1e1[_0x42b2('0x58')]();for(const _0x92fe31 of _0x35d0fe)if(!_0x47f2e0[_0x42b2('0xd3')](_0x92fe31)[_0x42b2('0xde')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3f2ac1){const _0x1ec059=this[_0x42b2('0x48')][_0x42b2('0x46')][_0x42b2('0x102')](_0x42b2('0xcb'))['getUser'](_0x3f2ac1);if(!_0x1ec059)throw new _0x81a6ba(_0x42b2('0xc'),this);return _0x1ec059;}['_getExternalAuthor'](_0x2d34e9){const _0xf80512=this['editor'][_0x42b2('0x46')]['get'](_0x42b2('0xcb')),_0x44520a=_0x9faea9('external:'+_0x2d34e9),_0x23f8b2=_0xf80512[_0x42b2('0x81')](_0x44520a);return _0x23f8b2||_0xf80512[_0x42b2('0x69')]({'id':_0x44520a,'name':_0x2d34e9});}['_createSuggestion'](_0x263976,_0x148775,_0x2dbdcb,_0x58cf9b,_0x338009){const _0x32498f=this[_0x42b2('0x10f')](_0x58cf9b),_0x166f72=this['_suggestionFactory'][_0x42b2('0x66')](_0x263976,_0x148775,_0x2dbdcb,_0x32498f,_0x338009,_0x4d267d=>this[_0x42b2('0x6f')](_0x2dbdcb,{'attributes':_0x4d267d}));return this[_0x42b2('0x75')](_0x166f72,_0x42b2('0x107'),()=>{this[_0x42b2('0x6f')](_0x2dbdcb,{'state':'accepted'});},{'priority':_0x42b2('0x11f')}),this[_0x42b2('0x75')](_0x166f72,'discard',()=>{this[_0x42b2('0x6f')](_0x2dbdcb,{'state':_0x42b2('0x2d')});},{'priority':'high'}),this[_0x42b2('0x103')][_0x42b2('0xae')](_0x2dbdcb,_0x166f72),this[_0x42b2('0x12f')]['set'](_0x166f72,_0x42b2('0xe5')),_0x166f72;}[_0x42b2('0x50')](_0x3f4b00){const _0x467ee5=_0x3f4b00[_0x42b2('0x15')](':');return{'group':_0x467ee5[0x0],'type':_0x467ee5[0x1],'subType':_0x467ee5[_0x42b2('0xde')]>=0x5?_0x467ee5[0x2]:null,'id':_0x467ee5['length']<0x5?_0x467ee5[0x2]:_0x467ee5[0x3],'authorId':_0x467ee5['length']<0x5?_0x467ee5[0x3]:_0x467ee5[0x4],'markerCount':0x6==_0x467ee5[_0x42b2('0xde')]?_0x467ee5[0x5]:null};}['_breakSuggestionMarker'](_0x1e63b5,_0x5c0bd5,_0x4b5dc3){const _0x4897e8=_0x1e63b5[_0x42b2('0xb3')](),_0x32044f=_0x4897e8[_0x42b2('0x8a')],_0x14efe8=_0x4897e8['end'];this[_0x42b2('0x98')](_0x1e63b5,this[_0x42b2('0xa6')][_0x42b2('0x100')](_0x32044f,_0x5c0bd5));const _0x16b46b=_0x1dc3be(),_0x5d3f16=_0x1e63b5[_0x42b2('0x104')]['id'],_0x1d3ab9=_0x1e63b5['type']+(_0x1e63b5[_0x42b2('0x143')]?':'+_0x1e63b5[_0x42b2('0x143')]:'');this['_setSuggestionData']({'id':_0x16b46b,'type':_0x1d3ab9,'createdAt':new Date(),'authorId':_0x5d3f16,'originalSuggestionId':_0x1e63b5['id'],'attributes':_0x1e63b5[_0x42b2('0x8b')],'data':_0x1e63b5[_0x42b2('0x78')]}),_0x42b2('0xdf')==_0x1e63b5[_0x42b2('0x121')]&&(_0x4b5dc3=this[_0x42b2('0xa6')][_0x42b2('0xfd')](_0x4b5dc3[_0x42b2('0xf8')])),this[_0x42b2('0x2b')](_0x1d3ab9,_0x16b46b,_0x5d3f16,this[_0x42b2('0xa6')][_0x42b2('0x100')](_0x4b5dc3,_0x14efe8));}[_0x42b2('0x59')](_0x27b0ce,_0x451a68=null){const _0x301b2d=[],_0x2ea551=this['editor'][_0x42b2('0x46')][_0x42b2('0x102')](_0x42b2('0xcb'))['me'];Array[_0x42b2('0x137')](_0x27b0ce)||(_0x27b0ce=[_0x27b0ce]);for(const _0x4c3237 of this[_0x42b2('0x7b')]()){if(!_0x4c3237[_0x42b2('0x145')])continue;if(_0x451a68&&_0x4c3237[_0x42b2('0x121')]!=_0x451a68)continue;let _0x5a9933=!0x1;for(const _0x5239ea of _0x4c3237[_0x42b2('0x58')]()){for(const _0x512b76 of _0x27b0ce){const _0x203fdf=_0x512b76['start'][_0x42b2('0x10d')](_0x5239ea['end'])||_0x512b76['end'][_0x42b2('0x10d')](_0x5239ea[_0x42b2('0x8a')]);if(_0x203fdf||_0x512b76[_0x42b2('0xf2')](_0x5239ea)){const _0x44b34d=_0x512b76[_0x42b2('0x109')](_0x5239ea)&&_t(this[_0x42b2('0xa6')][_0x42b2('0xbb')],_0x5239ea[_0x42b2('0x8a')],_0x512b76),_0x586efb=_0x5239ea[_0x42b2('0x109')](_0x512b76)&&_t(this[_0x42b2('0xa6')][_0x42b2('0xbb')],_0x512b76[_0x42b2('0x8a')],_0x5239ea);_0x301b2d[_0x42b2('0xf1')]({'suggestion':_0x4c3237,'meta':{'isOwn':_0x2ea551==_0x4c3237['author'],'isNextTo':_0x203fdf,'isInsideObject':_0x44b34d,'containsRangeInObject':_0x586efb}}),_0x5a9933=!0x0;break;}}if(_0x5a9933)break;}}return _0x301b2d;}[_0x42b2('0x2b')](_0x201140,_0x1effc4,_0x1506ae,_0x205ea0,_0xa119b3){this['_model'][_0x42b2('0x5a')](_0x254b22=>{let _0x15127c=_0x42b2('0xa3')+_0x201140+':'+_0x1effc4+':'+_0x1506ae;_0xa119b3&&(_0x15127c=_0x15127c+':'+_0xa119b3),_0x254b22[_0x42b2('0xf3')](_0x15127c,{'range':_0x205ea0,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x42b2('0xb5')](_0x1ab63b){const _0x21f7ab=_0x1ab63b['previous'],_0x1f7de7=_0x1ab63b[_0x42b2('0xab')];_0x1ab63b[_0x42b2('0x10c')]=null,null!=_0x21f7ab&&(_0x21f7ab[_0x42b2('0xab')]=null),_0x1ab63b[_0x42b2('0xab')]=null,null!=_0x1f7de7&&(_0x1f7de7[_0x42b2('0x10c')]=null),_0x42b2('0x122')==this[_0x42b2('0x12f')][_0x42b2('0x102')](_0x1ab63b)&&(this['_suggestionState'][_0x42b2('0xae')](_0x1ab63b,'removed'),this[_0x42b2('0x91')](_0x42b2('0x72'),_0x1ab63b,_0x21f7ab,_0x1f7de7));}[_0x42b2('0x1c')](_0x45db27){const _0x5f2570=_0x45db27['id'],_0x9e5612=this['addSuggestionData'](_0x45db27);if(this[_0x42b2('0x53')]&&this['_adapter'][_0x42b2('0x12a')]){const _0x55ea5=this[_0x42b2('0x48')][_0x42b2('0x46')][_0x42b2('0x102')](_0x42b2('0x13b')),_0x456dcb=_0x9e5612[_0x42b2('0x56')],_0x3426f5=_0x9e5612[_0x42b2('0x143')]?_0x9e5612[_0x42b2('0x121')]+':'+_0x9e5612[_0x42b2('0x143')]:_0x9e5612[_0x42b2('0x121')],_0x4925c8=this['editor'][_0x42b2('0x13d')],_0x25c979=_0x55ea5[_0x42b2('0x7e')](_0x1c3871(_0x4925c8,_0x42b2('0x41'))),_0x3db470={'id':_0x5f2570,'type':_0x3426f5,'hasComments':_0x456dcb,'data':_0x45db27[_0x42b2('0x78')]||null,'originalSuggestionId':_0x45db27[_0x42b2('0x9e')]||null,'attributes':_0x9e5612[_0x42b2('0x8b')]};this['_adapter'][_0x42b2('0x12a')](_0x3db470)[_0x42b2('0xdd')](_0x3f8157=>{_0x9e5612[_0x42b2('0x97')]=!0x0,_0x55ea5[_0x42b2('0xb2')](_0x25c979),_0x3f8157&&_0x3f8157['createdAt']&&(this[_0x42b2('0x103')][_0x42b2('0x102')](_0x5f2570)[_0x42b2('0x2a')]=_0x3f8157[_0x42b2('0x2a')]);})['catch'](_0x54d9c1=>{throw _0x184e53(_0x42b2('0xe')),this[_0x42b2('0x48')][_0x42b2('0xcf')][_0x42b2('0x113')]({'isUndoable':!0x1},()=>{_0x9e5612[_0x42b2('0xad')]();}),_0x9e5612['stopListening'](),this[_0x42b2('0x103')]['delete'](_0x9e5612['id']),this[_0x42b2('0x12f')]['delete'](_0x9e5612),_0x54d9c1;});}return _0x9e5612;}[_0x42b2('0x6f')](_0x3d2bea,_0x15084f){const _0x172a03=this[_0x42b2('0x48')][_0x42b2('0x46')][_0x42b2('0x102')](_0x42b2('0x13b')),_0x123d4=this[_0x42b2('0x7')](_0x3d2bea);if(this[_0x42b2('0x53')]&&this[_0x42b2('0x53')][_0x42b2('0xd1')]){if(_0x123d4[_0x42b2('0x97')]){const _0x21d798=_0x172a03[_0x42b2('0x7e')](_0x1c3871(this[_0x42b2('0x48')]['locale'],_0x42b2('0x41')));this['_adapter'][_0x42b2('0xd1')](_0x3d2bea,_0x15084f)[_0x42b2('0xdd')](()=>{_0x172a03[_0x42b2('0xb2')](_0x21d798);});}else _0x123d4['on'](_0x42b2('0x139'),()=>{this[_0x42b2('0x6f')](_0x3d2bea,_0x15084f);});}}[_0x42b2('0x7d')](_0x464f56){if(!this[_0x42b2('0x53')]||!this[_0x42b2('0x53')][_0x42b2('0x7')])throw new _0x81a6ba(_0x42b2('0xb0'),this);return this['_adapter'][_0x42b2('0x7')](_0x464f56);}[_0x42b2('0x131')](_0x5aa7f1){const {id:_0xc40f68,type:_0x5d5039,subType:_0xe79f01,authorId:_0x48632a}=this[_0x42b2('0x50')](_0x5aa7f1),_0x27a6f3=this[_0x42b2('0x103')][_0x42b2('0x102')](_0xc40f68)||this[_0x42b2('0x4')](_0x5d5039,_0xe79f01,_0xc40f68,_0x48632a,{});switch(this['_checkSuggestionCorrectness'](_0x27a6f3,_0x5d5039,_0xe79f01,_0x48632a),this['_suggestionState'][_0x42b2('0x102')](_0x27a6f3)){case _0x42b2('0xe5'):this[_0x42b2('0x7d')](_0xc40f68)[_0x42b2('0xdd')](_0x3761ce=>{let _0x4f634b=Promise[_0x42b2('0x30')]();_0x3761ce[_0x42b2('0x56')]&&(_0x4f634b=this[_0x42b2('0xa5')][_0x42b2('0x13')]({'channelId':this[_0x42b2('0x48')]['config'][_0x42b2('0x102')]('collaboration.channelId'),'threadId':_0xc40f68})),_0x4f634b[_0x42b2('0xdd')](()=>{this[_0x42b2('0x82')](_0x3761ce)[_0x42b2('0x97')]=!0x0;});}),this['_suggestionState'][_0x42b2('0xae')](_0x27a6f3,_0x42b2('0x9'));break;case _0x42b2('0x132'):this['_updateSuggestionData'](_0xc40f68,{'state':_0x42b2('0x1b')});case _0x42b2('0x36'):this[_0x42b2('0x12f')][_0x42b2('0xae')](_0x27a6f3,_0x42b2('0x122')),this[_0x42b2('0x91')](_0x42b2('0xe7'),_0x27a6f3);break;case _0x42b2('0x122'):this[_0x42b2('0x91')](_0x42b2('0x8c'),_0x27a6f3);}return _0x27a6f3[_0x42b2('0xb4')](_0x5aa7f1),_0x27a6f3;}[_0x42b2('0x39')](_0x3e7d30){const _0x8a404e=Array[_0x42b2('0x71')](_0x3e7d30)[_0x42b2('0xc3')](_0x17cba1=>!_0x17cba1[_0x42b2('0xc7')]),_0xb6dd99=this[_0x42b2('0x7b')]({'skipNotAttached':!0x0})['filter'](_0x4de2fd=>!_0x4de2fd[_0x42b2('0xc7')]),_0x6fb8b0=_0xb6dd99[_0x42b2('0xc3')](_0x5075cc=>!_0x3e7d30[_0x42b2('0x4b')](_0x5075cc)),_0x1f7344=new Map(_0xb6dd99[_0x42b2('0x3e')](_0x176f06=>[_0x176f06,this['_suggestionFactory'][_0x42b2('0xbd')](_0x176f06[_0x42b2('0x121')],_0x176f06[_0x42b2('0x143')],_0x42b2('0x9c'))])),_0x3cd746=new Map(_0xb6dd99['map'](_0xca6489=>[_0xca6489,_0xca6489[_0x42b2('0xb3')]()])),_0x20124c=new Set(),_0x18c109=new Set();for(let _0x139e58=0x0;_0x139e58<_0x8a404e[_0x42b2('0xde')];_0x139e58++)_0x4e6c45(_0x8a404e[_0x139e58],_0x8a404e,_0x139e58+0x1);for(let _0x20cb77=0x0;_0x20cb77<_0x8a404e[_0x42b2('0xde')];_0x20cb77++)_0x4e6c45(_0x8a404e[_0x20cb77],_0x6fb8b0,0x0);for(let _0x1cb96e=0x0;_0x1cb96e<_0x8a404e[_0x42b2('0xde')];_0x1cb96e++){const _0x4a7085=_0x8a404e[_0x1cb96e];!_0x18c109[_0x42b2('0x4b')](_0x4a7085)&&_0x4a7085[_0x42b2('0x10c')]&&(_0x4a7085[_0x42b2('0x10c')][_0x42b2('0xab')]===_0x4a7085&&(_0x4a7085[_0x42b2('0x10c')]['next']=null),_0x4a7085['previous']=null),!_0x20124c['has'](_0x4a7085)&&_0x4a7085[_0x42b2('0xab')]&&(_0x4a7085[_0x42b2('0xab')][_0x42b2('0x10c')]===_0x4a7085&&(_0x4a7085['next']['previous']=null),_0x4a7085[_0x42b2('0xab')]=null);}function _0x4e6c45(_0x22dc18,_0x2f69ee,_0xed7ef2){for(let _0x469856=_0xed7ef2;_0x469856<_0x2f69ee[_0x42b2('0xde')];_0x469856++){const _0x27358f=_0x590b5c(_0x22dc18,_0x2f69ee[_0x469856]);_0x27358f&&(_0x27358f[0x0][_0x42b2('0xab')]=_0x27358f[0x1],_0x27358f[0x1][_0x42b2('0x10c')]=_0x27358f[0x0],_0x20124c['add'](_0x27358f[0x0]),_0x18c109[_0x42b2('0x7e')](_0x27358f[0x1]));}}function _0x590b5c(_0x1d2264,_0x1d07ac){if(_0x1d2264['author']['id']!==_0x1d07ac[_0x42b2('0x114')]['id'])return null;const _0x4524e8=_0x1f7344['get'](_0x1d2264)(_0x1d2264,_0x1d07ac,_0x3cd746[_0x42b2('0x102')](_0x1d2264),_0x3cd746[_0x42b2('0x102')](_0x1d07ac));if(!_0x4524e8)return null;return _0x1f7344['get'](_0x1d07ac)(_0x1d2264,_0x1d07ac,_0x3cd746[_0x42b2('0x102')](_0x1d2264),_0x3cd746[_0x42b2('0x102')](_0x1d07ac))?_0x4524e8[0x1][_0x42b2('0x11b')]&&_0x4524e8[0x1]['commentThread'][_0x42b2('0xde')]?null:_0x4524e8:null;}}[_0x42b2('0x142')](_0xf7e956){const _0x347356=Array[_0x42b2('0x71')](_0xf7e956),_0x4f9b56=this[_0x42b2('0x7b')]({'skipNotAttached':!0x0}),_0x22e194=_0x4f9b56['filter'](_0x349e43=>!_0xf7e956['has'](_0x349e43)),_0x3a1466=new Map(_0x347356['map'](_0x23736d=>[_0x23736d,this[_0x42b2('0xfe')][_0x42b2('0xbd')](_0x23736d['type'],_0x23736d[_0x42b2('0x143')],'join')])),_0x63f618=new Map(_0x4f9b56[_0x42b2('0x3e')](_0x18e073=>[_0x18e073,_0x18e073[_0x42b2('0x58')]()]));for(let _0x3f9301=0x0;_0x3f9301<_0x347356[_0x42b2('0xde')];_0x3f9301++){if(_0x3c516c(this,_0x347356[_0x3f9301],_0x347356,_0x3f9301+0x1))return!0x0;}for(let _0x5a6d48=0x0;_0x5a6d48<_0x347356[_0x42b2('0xde')];_0x5a6d48++){if(_0x3c516c(this,_0x347356[_0x5a6d48],_0x22e194,0x0))return!0x0;}return!0x1;function _0x3c516c(_0x347946,_0x1d9766,_0x18a85b,_0x390b32){for(let _0x8459a9=_0x390b32;_0x8459a9<_0x18a85b[_0x42b2('0xde')];_0x8459a9++){const _0xaa4715=_0x18a85b[_0x8459a9];if(_0xaa4715['type']!==_0x1d9766[_0x42b2('0x121')]||_0xaa4715[_0x42b2('0x114')]['id']!==_0x1d9766['author']['id']||_0xaa4715['subType']!==_0x1d9766['subType'])continue;if(!Ut(_0x1d9766,_0xaa4715))continue;const _0x4da150=_0x3a1466[_0x42b2('0x102')](_0x1d9766),_0x2e680b=_0x63f618[_0x42b2('0x102')](_0x1d9766),_0x37d4df=_0x63f618[_0x42b2('0x102')](_0xaa4715),_0x3ee0e7=_0x1d9766[_0x42b2('0x11b')]&&_0x1d9766[_0x42b2('0x11b')][_0x42b2('0xde')],_0x859f8=_0xaa4715[_0x42b2('0x11b')]&&_0xaa4715[_0x42b2('0x11b')]['length'];if(!_0x3ee0e7&&_0x4da150(_0x37d4df,_0x2e680b))return _0x347946[_0x42b2('0xcc')](_0xaa4715,_0x1d9766),_0x63f618['delete'](_0x1d9766),!0x0;if(!_0x859f8&&_0x4da150(_0x2e680b,_0x37d4df))return _0x347946[_0x42b2('0xcc')](_0x1d9766,_0xaa4715),_0x63f618['delete'](_0xaa4715),!0x0;}return!0x1;}}[_0x42b2('0xcc')](_0xf87f92,_0x382d2e){if(_0xf87f92['isMultiRange'])for(const _0x39a92d of _0x382d2e['getRanges']())_0xf87f92[_0x42b2('0xc4')](_0x39a92d);else{const _0x1515c0=_0x382d2e[_0x42b2('0xb3')]()[_0x42b2('0xeb')];this['_setSuggestionRange'](_0xf87f92,this['_model'][_0x42b2('0x100')](_0xf87f92['getFirstRange']()[_0x42b2('0x8a')],_0x1515c0));}_0x382d2e['removeMarkers']();}}class Bt{constructor(_0x1bcc79){this[_0x42b2('0x68')]=_0x1bcc79,this['_model']=_0x1bcc79[_0x42b2('0xcf')],this[_0x42b2('0x9d')]=new Map(),this[_0x42b2('0x110')]=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x541141,_0x133704,_0x39824a,_0x534b51,_0x1e7b61,_0x425df4){return new _0x2918a7(this[_0x42b2('0xa6')],{'type':_0x541141,'subType':_0x133704,'id':_0x39824a,'author':_0x534b51,'creator':_0x534b51,'attributes':_0x1e7b61,'onAttributesChange':_0x425df4,'onAccept':(..._0x56de70)=>this['getSuggestionCallback'](_0x541141,_0x133704,'accept')(..._0x56de70),'onDiscard':(..._0x19d0db)=>this[_0x42b2('0xbd')](_0x541141,_0x133704,_0x42b2('0xad'))(..._0x19d0db)});}[_0x42b2('0x88')](_0x281579,_0x5623f6,_0x2e0f03,_0x4b5e55){const _0x4d7caf=_0x281579+':'+_0x5623f6+':'+_0x2e0f03;this[_0x42b2('0x9d')][_0x42b2('0xae')](_0x4d7caf,_0x4b5e55);}['getSuggestionCallback'](_0x12f421,_0x5a259a,_0x53fd9a){const _0x59b83e=_0x12f421+':'+_0x5a259a+':'+_0x53fd9a;return this[_0x42b2('0x9d')][_0x42b2('0x102')](_0x59b83e)||this[_0x42b2('0x110')][_0x42b2('0x102')](_0x12f421+':'+_0x53fd9a);}['_registerDefaultCallbacks'](){const _0x109618=()=>!0x1,_0x8f3018=_0x442a49=>{_0x442a49[_0x42b2('0x19')]((_0x1efe5f,_0x3de8c8)=>_0x1efe5f[_0x42b2('0x8a')]['isBefore'](_0x3de8c8['start'])?0x1:-0x1),this[_0x42b2('0xa6')][_0x42b2('0x5a')](_0xdd4864=>{for(const _0x404460 of _0x442a49){let _0x52265c;_0x52265c=_0x404460[_0x42b2('0xeb')]['isAtEnd']&&_0x404460['end'][_0x42b2('0xf8')]==_0x404460[_0x42b2('0x8a')]['nodeAfter']?_0xdd4864['createSelection'](_0x404460['start'][_0x42b2('0xa9')],'on'):_0xdd4864[_0x42b2('0x13f')](_0x404460),this[_0x42b2('0xa6')][_0x42b2('0xe6')](_0x52265c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2bdc65=(_0x22019b,_0x881d0d)=>{this[_0x42b2('0xa6')][_0x42b2('0x5a')](_0x1666ec=>{const {commandName:_0x2b1133,commandParams:_0x21653b=[]}=_0x881d0d,_0x707757=_0x22019b['map'](_0x5b996f=>(Mt(_0x5b996f)&&(_0x5b996f=this[_0x42b2('0xa6')][_0x42b2('0x100')](_0x5b996f['end'])),_0x5b996f))[_0x42b2('0xc3')](_0x215a45=>_0x42b2('0x1f')!==_0x215a45['root'][_0x42b2('0xa4')]);if(_0x707757[_0x42b2('0xde')]<0x1)return;const _0x55ba2a=Array[_0x42b2('0x71')](this[_0x42b2('0xa6')]['document'][_0x42b2('0x43')][_0x42b2('0x58')]())[_0x42b2('0x3e')](_0x11ef8f=>_0x48c2b6[_0x42b2('0xb6')](_0x11ef8f));_0x1666ec[_0x42b2('0x96')](_0x707757);for(const _0x49d409 of this['_editor']['commands'][_0x42b2('0x73')]())_0x49d409[_0x42b2('0x87')]();_0x21653b[_0x42b2('0xf1')]({'forceDefaultExecution':!0x0}),this[_0x42b2('0x68')]['execute'](_0x2b1133,..._0x21653b);const _0x20ef8b=_0x55ba2a[_0x42b2('0xc3')](_0xc95ed8=>'$graveyard'!=_0xc95ed8['root'][_0x42b2('0xa4')]);_0x20ef8b[_0x42b2('0xde')]>0x0&&_0x1666ec[_0x42b2('0x96')](_0x20ef8b);for(const _0x229848 of _0x55ba2a)_0x229848['detach']();});},_0x20eee5=(_0xfdb3b0,_0x378cab)=>0x1==_0xfdb3b0[_0x42b2('0xde')]&&0x1==_0x378cab['length']&&_0xfdb3b0[0x0][_0x42b2('0xeb')]['isEqual'](_0x378cab[0x0][_0x42b2('0x8a')]),_0x512475=(_0x53c6f5,_0x325920,_0xf499ff,_0x3c9e1b)=>xt(_0x53c6f5,_0x325920,_0xf499ff,_0x3c9e1b,this[_0x42b2('0xa6')])?[_0x53c6f5,_0x325920]:xt(_0x325920,_0x53c6f5,_0x3c9e1b,_0xf499ff,this[_0x42b2('0xa6')])?[_0x325920,_0x53c6f5]:null;this[_0x42b2('0x110')][_0x42b2('0xae')](_0x42b2('0xa1'),_0x109618),this['_defaultCallbacks']['set'](_0x42b2('0xd5'),_0x8f3018),this['_defaultCallbacks'][_0x42b2('0xae')](_0x42b2('0x70'),_0x20eee5),this[_0x42b2('0x110')][_0x42b2('0xae')]('insertion:chain',_0x512475),this[_0x42b2('0x110')][_0x42b2('0xae')](_0x42b2('0x3c'),_0x8f3018),this[_0x42b2('0x110')][_0x42b2('0xae')]('deletion:discard',_0x109618),this[_0x42b2('0x110')]['set'](_0x42b2('0x7f'),_0x20eee5),this[_0x42b2('0x110')]['set'](_0x42b2('0xd2'),_0x512475),this[_0x42b2('0x110')][_0x42b2('0xae')](_0x42b2('0xe4'),_0x2bdc65),this['_defaultCallbacks']['set'](_0x42b2('0x23'),_0x109618),this[_0x42b2('0x110')]['set'](_0x42b2('0xa'),_0x20eee5),this['_defaultCallbacks'][_0x42b2('0xae')](_0x42b2('0x127'),_0x109618),this[_0x42b2('0x110')]['set'](_0x42b2('0x124'),_0x2bdc65),this['_defaultCallbacks'][_0x42b2('0xae')](_0x42b2('0x51'),_0x109618),this['_defaultCallbacks'][_0x42b2('0xae')](_0x42b2('0x21'),_0x20eee5),this[_0x42b2('0x110')][_0x42b2('0xae')](_0x42b2('0x93'),_0x109618);}}function _t(_0x16f857,_0x288d63,_0x256931){for(const _0x12ce6b of _0x288d63[_0x42b2('0xf8')][_0x42b2('0x12e')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x12ce6b[_0x42b2('0xc9')]==_0x12ce6b)return!0x1;if(!_0x256931[_0x42b2('0x99')](_0x12ce6b))return!0x1;if(_0x16f857[_0x42b2('0xe2')](_0x12ce6b)||_0x16f857[_0x42b2('0x8f')](_0x12ce6b))return!0x0;}return!0x1;}function Mt(_0x5492cb){return _0x5492cb['end'][_0x42b2('0xf8')]==_0x5492cb[_0x42b2('0x8a')][_0x42b2('0xa9')]&&_0x5492cb[_0x42b2('0xeb')][_0x42b2('0x26')];}function $t(_0xf5d895,_0x447901,_0x481ab8,_0x13baa3){const _0x827f0e=_0x1bf32f=>!_0x1bf32f[_0x42b2('0x25')]['is']('$textProxy')&&!_0x13baa3['isObject'](_0x1bf32f[_0x42b2('0x25')]),_0x3e7552=_0xf5d895[_0x42b2('0x8a')][_0x42b2('0x55')](_0x827f0e),_0x1a4532=_0xf5d895[_0x42b2('0xeb')]['getLastMatchingPosition'](_0x827f0e,{'direction':_0x42b2('0x116')});return(!_0xf5d895[_0x42b2('0x8a')][_0x42b2('0x10d')](_0x3e7552)||!_0xf5d895[_0x42b2('0xeb')][_0x42b2('0x10d')](_0x1a4532))&&(_0x3e7552[_0x42b2('0x29')](_0x1a4532)?_0x481ab8[_0x42b2('0x4a')](_0x447901,{'range':_0x481ab8[_0x42b2('0x100')](_0x3e7552,_0x1a4532)}):_0x481ab8['removeMarker'](_0x447901),!0x0);}function Nt(_0x2dc325){return _0x9faea9(_0x2dc325);}function Rt(_0x66c8a4){const _0x508eba=_0x66c8a4[_0x42b2('0x8a')]['nodeAfter'];return _0x508eba&&_0x508eba['is'](_0x42b2('0xd9'));}function jt(_0x1d8ee0,_0x4fdaa1){const _0x2cf786=_0x4fdaa1[_0x42b2('0xbb')][_0x42b2('0xe2')](_0x1d8ee0)||_0x4fdaa1[_0x42b2('0xbb')][_0x42b2('0x144')](_0x1d8ee0);return _0x4fdaa1[_0x42b2('0x100')](_0x4fdaa1[_0x42b2('0x7a')](_0x1d8ee0,_0x42b2('0x5e')),_0x2cf786?_0x4fdaa1[_0x42b2('0x90')](_0x1d8ee0):_0x4fdaa1[_0x42b2('0x7a')](_0x1d8ee0,'end'));}function xt(_0x323798,_0x2c9ca3,_0x57aa8f,_0x49148a,_0x4d57b8){if(!Ut(_0x323798,_0x2c9ca3))return!0x1;if(_0x57aa8f['end'][_0x42b2('0x10d')](_0x49148a[_0x42b2('0x8a')]))return!0x0;if(_0x323798[_0x42b2('0x121')]!=_0x2c9ca3[_0x42b2('0x121')])return!0x1;if(!_0x57aa8f['end'][_0x42b2('0xff')](_0x49148a[_0x42b2('0x8a')]))return!0x1;const _0x5234b2=_0x4d57b8[_0x42b2('0x100')](_0x57aa8f[_0x42b2('0xeb')],_0x49148a['start'])['getWalker']();for(const _0x381a1f of _0x5234b2)if([_0x42b2('0x34'),'elementEnd']['includes'](_0x381a1f[_0x42b2('0x121')])&&_0x4d57b8[_0x42b2('0xbb')][_0x42b2('0x8f')](_0x381a1f[_0x42b2('0x25')]))return!0x1;return!0x0;}function Ut(_0x2af982,_0xa2d350){return!(!_0x2af982[_0x42b2('0x0')]||!_0xa2d350[_0x42b2('0x0')])&&_0x194041(_0x2af982[_0x42b2('0x8b')],_0xa2d350[_0x42b2('0x8b')]);}function Ot(_0x6ae8e,_0x2d1a66){const _0x3469d6=Et(_0x6ae8e[_0x42b2('0x8b')]),_0x39684d=Et(_0x2d1a66);if(!_0x6ae8e[_0x42b2('0x0')])return!0x1;for(const _0x4f77d2 of Object[_0x42b2('0x6b')](_0x39684d))if(!_0x194041(_0x3469d6[_0x4f77d2],_0x39684d[_0x4f77d2]))return!0x1;return!0x0;}function Et(_0xdb4a95){const _0x41b4b8=Object['assign']({},_0xdb4a95);return delete _0x41b4b8[_0x42b2('0x11d')],delete _0x41b4b8[_0x42b2('0x18')],_0x41b4b8;}
23
+ const _0x1b26=['insertion:accept','filter','open','_getExternalAuthor','isInContent','formatGroupId','dataReady','discardSuggestion','item','formatBlock:discard','model','formatBlock:accept','addClass','track-changes-adapter-missing-getsuggestion','listenTo','createPositionAt','getRange','removeAttribute','enableCommand','elementStart','rejected','_onDiscard','getMultiRangeId','editor','suggestion-type','_mergeNestedSuggestions','attributes','for','track-changes-suggestion-not-found','hasSuggestion','deletion:accept','isBlock','writer','every','toJSON','formatInline','acceptSelectedSuggestions','pluginName','resolve','notReady','isObject','substr','_splitMarkerName','formatInline:discard','removeMarkers','parent','head','_joinWithAdjacentSuggestions','formatInline:','Users','PENDING_ACTION_SUGGESTION','isBefore','collaboration.channelId','elementEnd','selection','setTo','dataDowncast','clear','updateMarker','locale','getSuggestionCallback','ck-suggestion-marker--active','_createSuggestion','suggestionLoaded','upcast','group','batch','clone','insertion:','markerToData','formatInline:join','enqueueChange','_setSuggestionRange','isMultiRange','start','insertContent','bindElementToMarker','root','remove','isLimit','_breakSuggestionMarker','rootName','_registerDefaultCallbacks','_saved','_customCallbacks','nodeAfter','formatInline:accept','_enabledCommands','isCollapsed','execute','_editor','getDifference','data-suggestion','track-changes-command-not-found','set','_findSuggestions','getIntersection','forceDefaultExecution','nodeBefore','values','_refreshSuggestionsChain','editing','_addThreadToSuggestion','getCommentThread','formatInline:chain','_suggestions','markerToHighlight','removeMarker','config','getShiftedBy','detach','value','getSuggestions','getChangedMarkers','containsItem','trackChanges','fromCharCode','addSuggestionData','howMany','never','isArray','_removeSuggestion','@external','skipNestingCheck','change:activeMarkers','deletion:chain','default','isEqual','commands','removeClass','isExternal','markInsertion','fire','_handleNewSuggestionMarker','buildSuggestion','CommentsRepository','createRangeIn','enableReadOnlyMode','stop','splitPosition','_trackFormatChanges','then','_getAuthorFromId','after','applyOperation','schema','deleteContent','low','getUser','track-changes-user-not-found','discard','getAttribute','map','get','isAfter','isIntersectingWithRange','size','createElement','dataToMarker','addComment','showSuggestionHighlights','add','getLastMatchingPosition','sort','isTouching','previous','removeMarker:suggestion:formatBlock','addUser','join','formatBlock:chain','elementToElement','suggestion:','author','originalSuggestionId','requires','consume','_model','deletion','push','_getSuggestionData','createSelection','markInlineFormat','discardSelectedSuggestions','insertion:chain','toViewElement','high','before','from','setSelection','containerElement','oldRange','data','markMultiRangeInsertion','createRange','commentThread','position','_addSuggestionMarker','conversion','reconvertMarker','differ','$marker','discardAllSuggestions','markBlockFormat','keys','_suggestionFactory','_updateSuggestionData','split','includes','getNearestSelectionRange','markerName','addMarker','backward','some','acceptSuggestion','trackChanges.trackFormatChanges','suggestionUnloaded','hasComments','getCustomProperty','move','formatBlock:','removed','end','ready','getSuggestion','suggestionChanged','element','assign','insertion:join','markDeletion','isDocumentOperation','subType','trackChangesCommand','init','commandName','track-changes-adapter-already-set','accepted','return','isRemovable','isOwn','marker-count','document','unbindElementFromMarkerName','define','_setSuggestionData','multipleBlocks','ck-suggestion-marker-','plugins','addMarkerName','isInsideObject','addRange','PendingActions','containsRangeInObject','name','length','creator','unbind','addMarker:suggestion:formatBlock','_isDataLoaded','editingDowncast','getFirstMarker','getAncestors','_adapter','createPositionAfter','addSuggestion','activeMarkers','registerPostFixer','change:data','has','next','range','formatBlock','getMarkers','ck-suggestion-marker','isNextTo','getRanges','trackChanges.mergeNestedSuggestions','_checkSuggestionCorrectness','acceptAllSuggestions','documentSelection','always','options','type','forward','getFirstRange','_joinSuggestions','createdAt','multi','normal','insertion','updateSuggestion','consumable','insertion:discard','_defaultCallbacks','containsRange','markers','_rangeIsInLocalUserInsertion','stopListening','_isForcedDefaultExecutionBlock','mapper','isUndo','lowest','$graveyard','newRange','_descriptionFactory','track-changes-suggestion-data-mismatch','_suggestionState','isAtEnd','tablePasteChainId','authoredAt','fetchCommentThread','change','adapter','setAttribute','external:','hasCommentThread','accept','delete','_commentsRepository','suggestion'];(function(_0x3a710d,_0x1b26b8){const _0xc46189=function(_0x17d007){while(--_0x17d007){_0x3a710d['push'](_0x3a710d['shift']());}};_0xc46189(++_0x1b26b8);}(_0x1b26,0x159));const _0xc461=function(_0x3a710d,_0x1b26b8){_0x3a710d=_0x3a710d-0x0;let _0xc46189=_0x1b26[_0x3a710d];return _0xc46189;};import{Plugin as _0x566c40,PendingActions as _0x44cdde}from'ckeditor5/src/core';import{LiveRange as _0x439992}from'ckeditor5/src/engine';import{CKEditorError as _0x339aa1,uid as _0xccee84,priorities as _0x312d8c,logWarning as _0x1725bb}from'ckeditor5/src/utils';import{toWidget as _0x1c8f14}from'ckeditor5/src/widget';import{Users as _0x1ef6d4,hashObject as _0x4a4395}from'ckeditor5-collaboration/src/collaboration-core';import _0x347b90 from'./commands/trackchangescommand';import _0x98675f from'./commands/acceptsuggestioncommand';import _0x1587e2 from'./commands/discardsuggestioncommand';import _0xaceebc from'./commands/executeonallsuggestionscommand';import _0x198a38 from'./commands/executeonselectedsuggestionscommand';import _0x454d15 from'./suggestion';import _0x53c2ba from'./suggestiondescriptionfactory';import _0x4a217a from'./integrations/aiassistant';import _0x3d20ce from'./integrations/alignment';import _0x243a99 from'./integrations/basicstyles';import _0x422abe from'./integrations/blockquote';import _0x527932 from'./integrations/ckbox';import _0x406f10 from'./integrations/codeblock';import _0xc09312 from'./integrations/comments';import _0x2c2cf8 from'./integrations/deletecommand';import _0x3b29fb from'./integrations/documentlist';import _0x4e5610 from'./integrations/entercommand';import _0x29d3a7 from'./integrations/findandreplace';import _0x5be49f from'./integrations/font';import _0x33199a from'./integrations/formatpainter';import _0x209ec1 from'./integrations/heading';import _0x10e67d from'./integrations/highlight';import _0x1ae1a2 from'./integrations/horizontalline';import _0x555479 from'./integrations/htmlembed';import _0x18287f from'./integrations/image';import _0x36e659 from'./integrations/imagereplace';import _0x51df5b from'./integrations/importword';import _0x2d52fb from'./integrations/indent';import _0x1e12cf from'./integrations/inputcommand';import _0x120cd1 from'./integrations/link';import _0x14613b from'./integrations/list';import _0x1fb7fe from'./integrations/listproperties';import _0x19cfc1 from'./integrations/mediaembed';import _0x3c1012 from'./integrations/mention';import _0x1de599 from'./integrations/pagebreak';import _0x112eeb from'./integrations/paragraph';import _0x2278c8 from'./integrations/removeformat';import _0x16fbb4 from'./integrations/restrictededitingmode';import _0x34b8d4 from'./integrations/shiftentercommand';import _0x9de535 from'./integrations/standardeditingmode';import _0x24e643 from'./integrations/style';import _0x1b7573 from'./integrations/table';import _0x310af5 from'./integrations/tablemergesplit';import _0x2d99b9 from'./integrations/tableheadings';import _0x413160 from'./integrations/tableclipboard';import _0x5c1707 from'./integrations/tablecolumnresize';import _0x40f708 from'./integrations/template';import _0x480453 from'./integrations/tableofcontents';import _0x2ec094 from'./integrations/title';import _0x4b467a from'./integrations/undo';import{getTranslation as _0x30569e}from'./utils/common-translations';import _0x504903 from'./integrations/tablecaption';import _0x5c10b6 from'./integrations/documentlistproperties';import _0x3096f2 from'./integrations/tableproperties';import{isEqual as _0x4541bd}from'lodash-es';export default class p extends _0x566c40{static get[_0xc461('0x94')](){return[_0xc461('0x6d'),_0x1ef6d4,_0x44cdde,_0x4a217a,_0x3d20ce,_0x243a99,_0x422abe,_0x527932,_0x406f10,_0xc09312,_0x2c2cf8,_0x3b29fb,_0x5c10b6,_0x4e5610,_0x29d3a7,_0x5be49f,_0x33199a,_0x209ec1,_0x10e67d,_0x1ae1a2,_0x555479,_0x18287f,_0x36e659,_0x51df5b,_0x2d52fb,_0x1e12cf,_0x120cd1,_0x14613b,_0x1fb7fe,_0x19cfc1,_0x3c1012,_0x1de599,_0x112eeb,_0x2278c8,_0x16fbb4,_0x34b8d4,_0x9de535,_0x24e643,_0x1b7573,_0x310af5,_0x2d99b9,_0x504903,_0x413160,_0x5c1707,_0x480453,_0x3096f2,_0x40f708,_0x2ec094,_0x4b467a];}static get[_0xc461('0xb')](){return'TrackChangesEditing';}constructor(_0x372932){function _0x530a45(_0x2535fd){return _0x2535fd[_0xc461('0x7e')](_0x59edc9=>String[_0xc461('0x5a')](_0x59edc9))[_0xc461('0x8e')]('');}super(_0x372932),this[_0xc461('0x44')](_0xc461('0xee'),[]),this['on'](_0xc461('0x62'),(_0x155904,_0x5660fc,_0x1558bf,_0x3101fd)=>{this['_model'][_0xc461('0x11c')](()=>{for(const _0x3a0d45 of[..._0x3101fd,..._0x1558bf])this[_0xc461('0x96')]['markers'][_0xc461('0xf1')](_0x3a0d45)&&_0x372932[_0xc461('0x4b')][_0xc461('0xac')](_0x3a0d45);});}),this[_0xc461('0x115')]=new _0x53c2ba(this[_0xc461('0x13c')][_0xc461('0x12f')][_0xc461('0x77')],this[_0xc461('0x13c')]['locale']),this[_0xc461('0xeb')]=null,this[_0xc461('0xb2')]=new Bt(this[_0xc461('0x13c')]),this['_suggestions']=new Map(),this[_0xc461('0x123')]=_0x372932[_0xc461('0xdc')][_0xc461('0x7f')](_0xc461('0x6d')),this[_0xc461('0x3d')]=new Set(),this['_model']=this[_0xc461('0x13c')]['model'],this[_0xc461('0x117')]=new WeakMap(),this[_0xc461('0x10f')]=!0x1,_0x372932[_0xc461('0x52')][_0xc461('0xd8')](_0xc461('0xbc'),_0xc461('0x64')),this[_0xc461('0x72')]=_0x372932[_0xc461('0x52')][_0xc461('0x7f')](_0xc461('0xbc')),_0x372932['config'][_0xc461('0xd8')]('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x372932[_0xc461('0x52')][_0xc461('0x7f')](_0xc461('0xf9')),this[_0xc461('0xcd')]=new _0x347b90(_0x372932,this['_enabledCommands']),this[_0x530a45([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x530a45([0x34,0x30,0x34,0x36,0x32,0x32,0x31,0x32]);}[_0xc461('0xce')](){const _0x138134=this['editor'];_0x138134[_0xc461('0xab')][_0xc461('0x1')](_0xc461('0xe8'))[_0xc461('0x50')]({'model':_0xc461('0x124'),'view':_0x31c465=>{const {id:_0x258d5a,type:_0x59dde9}=this[_0xc461('0x10')](_0x31c465[_0xc461('0xb7')]),_0x4450af=['ck-suggestion-marker',_0xc461('0xdb')+_0x59dde9];let _0x5d2281=0xbb8;return this['activeMarkers'][_0xc461('0xb5')](_0x31c465['markerName'])&&(_0x4450af[_0xc461('0x98')](_0xc461('0x23')),_0x5d2281=0xbc2),_0xc461('0x97')==_0x59dde9&&(_0x5d2281+=0x5),{'classes':_0x4450af,'attributes':{'data-suggestion':_0x258d5a},'priority':_0x5d2281};}}),_0x138134['conversion'][_0xc461('0x1')](_0xc461('0x1e'))[_0xc461('0x87')](_0x5bd8a7=>{_0x5bd8a7['on']('addMarker:suggestion',(_0x3b7e70,_0x2054e,_0x38fadc)=>{if(!_0x38fadc[_0xc461('0xfe')][_0xc461('0x86')])return;const _0x274302=_0x2054e['item'];if(!_0x274302)return;const _0x5a9d19=_0x38fadc[_0xc461('0x110')]['toViewElement'](_0x274302);_0x138134['model'][_0xc461('0x77')][_0xc461('0xe')](_0x274302)&&_0x5a9d19&&!_0x5a9d19[_0xc461('0xbf')]('widget')&&_0x5a9d19['is'](_0xc461('0xa3'))&&_0x1c8f14(_0x5a9d19,_0x38fadc[_0xc461('0x6')]);},{'priority':_0xc461('0x9f')});}),_0x138134[_0xc461('0xab')][_0xc461('0x1')](_0xc461('0x1e'))[_0xc461('0x50')]({'model':'suggestion','view':(_0x3f3004,_0x210570)=>{if(!_0x210570[_0xc461('0xfe')][_0xc461('0x86')])return null;const {type:_0x25cbaf}=this[_0xc461('0x10')](_0x3f3004[_0xc461('0xb7')]);return{'classes':[_0xc461('0xf6'),'ck-suggestion-marker-'+_0x25cbaf],'priority':0xbb8};}});const _0x23c3ed=({showActiveMarkers:_0x4dffe1=!0x0}={})=>(_0x409ac5,_0x1f6b1b,_0x42eaf6)=>{if(!_0x1f6b1b['item'])return;if(_0x1f6b1b[_0xc461('0x12d')]['is']('selection'))return void _0x42eaf6[_0xc461('0x108')]['consume'](_0x1f6b1b[_0xc461('0x12d')],_0x409ac5[_0xc461('0xe2')]);const _0x1001df=_0x42eaf6['mapper'][_0xc461('0x9e')](_0x1f6b1b[_0xc461('0x12d')]);if(!(_0x1f6b1b['item']['is'](_0xc461('0xc7'))&&_0x138134['model'][_0xc461('0x77')][_0xc461('0x5')](_0x1f6b1b[_0xc461('0x12d')])&&!_0x1001df[_0xc461('0xbf')]('addHighlight')))return;const {id:_0x2b7d65}=this['_splitMarkerName'](_0x1f6b1b['markerName']);_0x42eaf6[_0xc461('0x6')][_0xc461('0x131')]([_0xc461('0xf6'),'ck-suggestion-marker-formatBlock'],_0x1001df),_0x42eaf6['writer'][_0xc461('0x11e')](_0xc461('0x42'),_0x2b7d65,_0x1001df),_0x42eaf6['mapper'][_0xc461('0x32')](_0x1001df,_0x1f6b1b[_0xc461('0xb7')]),_0x4dffe1&&(this['activeMarkers']['includes'](_0x1f6b1b[_0xc461('0xb7')])?_0x42eaf6[_0xc461('0x6')][_0xc461('0x131')](_0xc461('0x23'),_0x1001df):_0x42eaf6[_0xc461('0x6')][_0xc461('0x67')](_0xc461('0x23'),_0x1001df));for(const _0x146de8 of _0x138134[_0xc461('0x12f')][_0xc461('0x6e')](_0x1f6b1b[_0xc461('0x12d')])['getItems']())_0x42eaf6[_0xc461('0x108')]['consume'](_0x146de8,_0x409ac5['name']);_0x42eaf6[_0xc461('0x108')][_0xc461('0x95')](_0x1f6b1b[_0xc461('0x12d')],_0x409ac5['name']);};_0x138134[_0xc461('0xab')][_0xc461('0x1')](_0xc461('0x1e'))['add'](_0x9c1e5=>{_0x9c1e5['on']('addMarker:suggestion:formatBlock',(_0x100858,_0x43f6b1,_0x213291)=>{_0x213291[_0xc461('0xfe')]['showSuggestionHighlights']&&_0x23c3ed({'showActiveMarkers':!0x1})(_0x100858,_0x43f6b1,_0x213291);},{'priority':'highest'});}),_0x138134['conversion']['for'](_0xc461('0x1e'))[_0xc461('0x2b')]({'model':'suggestion','view':(_0x33d336,_0x3de0cd)=>_0x3de0cd[_0xc461('0xfe')]['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x33d336[_0xc461('0xf')](0xb)}}),_0x138134[_0xc461('0xab')][_0xc461('0x1')](_0xc461('0x26'))[_0xc461('0x90')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x34ba46,{writer:_0x448291})=>{let _0x131317=_0xc461('0x91')+_0x34ba46[_0xc461('0x7d')](_0xc461('0x13d'))+':'+_0x34ba46[_0xc461('0x7d')]('id');return _0x34ba46[_0xc461('0x7d')](_0xc461('0xd5'))&&(_0x131317+=':'+_0x34ba46['getAttribute'](_0xc461('0xd5'))),_0x448291[_0xc461('0x83')](_0xc461('0xae'),{'data-name':_0x131317});}}),_0x138134[_0xc461('0xab')][_0xc461('0x1')](_0xc461('0x26'))[_0xc461('0x84')]({'view':_0xc461('0x124')}),_0x138134[_0xc461('0xab')]['for'](_0xc461('0xe8'))[_0xc461('0x87')](_0x309ca2=>{_0x309ca2['on'](_0xc461('0xe6'),_0x23c3ed(),{'priority':_0xc461('0x9f')});}),_0x138134[_0xc461('0xab')][_0xc461('0x1')](_0xc461('0xe8'))[_0xc461('0x87')](_0x4d7bf6=>{_0x4d7bf6['on'](_0xc461('0x8c'),(_0x22287d,_0x7909e7,_0x478e5d)=>{const _0x17f36f=_0x478e5d[_0xc461('0x110')]['markerNameToElements'](_0x7909e7[_0xc461('0xb7')]);if(_0x17f36f)for(const _0x1c9be0 of _0x17f36f)_0x1c9be0['getCustomProperty']('addHighlight')||(_0x478e5d['writer'][_0xc461('0x67')](['ck-suggestion-marker','ck-suggestion-marker-formatBlock',_0xc461('0x23')],_0x1c9be0),_0x478e5d[_0xc461('0x6')][_0xc461('0x136')](_0xc461('0x42'),_0x1c9be0),_0x478e5d[_0xc461('0x110')][_0xc461('0xd7')](_0x1c9be0,_0x7909e7['markerName']));},{'priority':_0xc461('0x9f')});}),_0x138134['model'][_0xc461('0xd6')][_0xc461('0xef')](_0x200c52=>{let _0x45b67f=!0x1;const _0x1c626c=Array[_0xc461('0xa1')](_0x138134[_0xc461('0x12f')][_0xc461('0xd6')]['differ'][_0xc461('0x57')]()),_0x586738=new Set();for(const {name:_0x2fb8a1,data:_0x579ec6}of _0x1c626c){const {group:_0x216436,type:_0x5e8322,id:_0x1d8150}=this[_0xc461('0x10')](_0x2fb8a1);if(_0xc461('0x124')!==_0x216436)continue;const _0x2b25a7=this[_0xc461('0x4f')][_0xc461('0x7f')](_0x1d8150);if(null!=_0x579ec6[_0xc461('0x114')]){_0xc461('0x9')==_0x5e8322&&(_0x45b67f=_0x45b67f||$t(_0x579ec6['newRange'],_0x2fb8a1,_0x200c52,_0x138134[_0xc461('0x12f')][_0xc461('0x77')]));if(_0x579ec6[_0xc461('0x114')][_0xc461('0x3e')]||'$graveyard'==_0x579ec6[_0xc461('0x114')][_0xc461('0x33')][_0xc461('0x37')]||_0xc461('0xf4')==_0x5e8322&&!Rt(_0x579ec6[_0xc461('0x114')])||_0xc461('0x97')==_0x5e8322&&!(!Mt(_0x1bcbce=_0x579ec6[_0xc461('0x114')])&&!function(_0x44e10f){return _0x44e10f['start'][_0xc461('0x13')]==_0x44e10f['end'][_0xc461('0x48')]&&_0x44e10f['start'][_0xc461('0x118')];}(_0x1bcbce)))_0x200c52[_0xc461('0x51')](_0x2fb8a1),_0x45b67f=!0x0;else{if(!_0x2b25a7||!_0x2b25a7[_0xc461('0x129')])continue;_0x586738[_0xc461('0x87')](_0x2b25a7);}}}var _0x1bcbce;return _0x586738[_0xc461('0x82')]>0x0&&(_0x45b67f=!!this[_0xc461('0x15')](_0x586738)||_0x45b67f),_0x45b67f;}),_0x138134[_0xc461('0x12f')]['document']['registerPostFixer'](_0x2fff32=>{let _0x231928=!0x1;for(const _0x317064 of _0x138134[_0xc461('0x12f')][_0xc461('0xd6')][_0xc461('0xad')]['getChanges']()){if('insert'!=_0x317064[_0xc461('0xff')])continue;const _0x4860e2=_0x317064[_0xc461('0xa9')][_0xc461('0x53')](_0x317064[_0xc461('0xe3')]);if(_0x4860e2['isAtEnd'])for(const _0x2051df of this[_0xc461('0x4f')][_0xc461('0x49')]()){if(_0x2051df[_0xc461('0x2f')]||!_0x2051df[_0xc461('0x129')])continue;if(_0xc461('0xf4')!=_0x2051df[_0xc461('0xff')])continue;const _0x29a311=_0x2051df[_0xc461('0x101')]();if(_0x29a311['start'][_0xc461('0x13')]!=_0x29a311[_0xc461('0xc3')][_0xc461('0x13')]&&_0x29a311[_0xc461('0xc3')][_0xc461('0x65')](_0x317064['position'])){const _0x1d1fd3=_0x138134['model'][_0xc461('0xa7')](_0x29a311[_0xc461('0x30')],_0x4860e2);_0x2fff32[_0xc461('0x20')](_0x2051df[_0xc461('0xe9')](),{'range':_0x1d1fd3}),_0x231928=!0x0;}}}return _0x231928;}),_0x138134[_0xc461('0x12f')][_0xc461('0x10c')]['on']('update:suggestion',(_0x3a38e1,_0x13db76,_0x3319ac)=>{if(null==_0x3319ac){const {id:_0x55b31a}=this['_splitMarkerName'](_0x13db76['name']),_0x45a6a3=this[_0xc461('0x4f')][_0xc461('0x7f')](_0x55b31a);_0x45a6a3&&_0x45a6a3[_0xc461('0xdd')](_0x13db76[_0xc461('0xe2')]);}}),_0x138134['model'][_0xc461('0xd6')]['on'](_0xc461('0xf0'),()=>{const _0x4dc27b=Array[_0xc461('0xa1')](_0x138134['model'][_0xc461('0xd6')]['differ'][_0xc461('0x57')]())[_0xc461('0x126')](_0x5ce609=>_0xc461('0x124')===this[_0xc461('0x10')](_0x5ce609[_0xc461('0xe2')])[_0xc461('0x27')]);if(0x0===_0x4dc27b[_0xc461('0xe3')])return;_0x4dc27b['sort']((_0x2a0781,_0x10757b)=>{const _0x5f5dfe=_0x2a0781[_0xc461('0xa5')][_0xc461('0xa4')],_0x1d6136=_0x10757b[_0xc461('0xa5')]['oldRange'];return null===_0x5f5dfe&&null===_0x1d6136?0x0:null===_0x5f5dfe&&null!==_0x1d6136?-0x1:null!==_0x5f5dfe&&null===_0x1d6136?0x1:_0x5f5dfe[_0xc461('0x30')][_0xc461('0x19')](_0x1d6136[_0xc461('0x30')])?-0x1:0x1;});const _0x2c01ca=new Set(),_0x51f7a4=new Set();for(const {name:_0x473082,data:_0x343a25}of _0x4dc27b){const {id:_0x4a2755}=this[_0xc461('0x10')](_0x473082);if(null===_0x343a25[_0xc461('0xa4')]){const _0x5d8409=this[_0xc461('0x6b')](_0x473082);_0x51f7a4['add'](_0x5d8409);}else{const _0x3444a0=this[_0xc461('0x4f')][_0xc461('0x7f')](_0x4a2755);null!==_0x343a25[_0xc461('0x114')]||_0x3444a0['isInContent']?(_0x2c01ca[_0xc461('0x87')](_0x3444a0[_0xc461('0x14')]),_0x51f7a4[_0xc461('0x87')](_0x3444a0)):this[_0xc461('0x5f')](_0x3444a0);}}_0x51f7a4[_0xc461('0x82')]>0x0&&this[_0xc461('0x4a')](_0x51f7a4);for(const _0x31c485 of _0x2c01ca)this['fire'](_0xc461('0xc6'),_0x31c485);}),_0x138134[_0xc461('0x12f')]['on'](_0xc461('0x76'),(_0x2d09ea,_0x4be9a4)=>{const _0x13ecc4=_0x4be9a4[0x0];if(!this[_0xc461('0x4f')][_0xc461('0x82')])return;if(!_0x13ecc4[_0xc461('0xcb')])return;if(_0x13ecc4[_0xc461('0x28')][_0xc461('0x111')]||!_0x13ecc4[_0xc461('0x28')]['isLocal'])return;let _0x198124,_0x5b3234;switch(_0x13ecc4[_0xc461('0xff')]){case'insert':_0x198124=_0x138134[_0xc461('0x12f')][_0xc461('0x134')](_0x13ecc4[_0xc461('0xa9')]),_0x5b3234=_0x198124[_0xc461('0x53')](_0x13ecc4[_0xc461('0x5c')]);break;case _0xc461('0xb4'):_0x198124=_0x138134[_0xc461('0x12f')][_0xc461('0x134')](_0x13ecc4[_0xc461('0x71')]),_0x5b3234=_0x138134[_0xc461('0x12f')][_0xc461('0x134')](_0x13ecc4['moveTargetPosition']);break;case _0xc461('0xc0'):_0x198124=_0x138134[_0xc461('0x12f')]['createPositionAt'](_0x13ecc4['targetPosition']),_0x5b3234=_0x198124[_0xc461('0x53')](_0x13ecc4['howMany']);break;default:return;}const _0x49e8fd=_0x138134[_0xc461('0x12f')][_0xc461('0xa7')](_0x198124,_0x5b3234);_0x138134[_0xc461('0x12f')][_0xc461('0x11c')](()=>{for(const {suggestion:_0x221e72,meta:_0x5df00c}of this[_0xc461('0x45')](_0x49e8fd)){if(_0x221e72[_0xc461('0x2f')])continue;if('formatInline'==_0x221e72['type'])continue;const _0x11498d=_0x221e72[_0xc461('0xa5')]&&_0x221e72[_0xc461('0xa5')][_0xc461('0xda')];(_0xc461('0xf4')!=_0x221e72['type']||_0xc461('0xb4')==_0x13ecc4[_0xc461('0xff')]&&!_0x11498d)&&(_0x5df00c[_0xc461('0xe1')]||_0xc461('0x106')==_0x221e72[_0xc461('0xff')]&&_0x5df00c['isOwn']||_0x221e72[_0xc461('0x101')]()[_0xc461('0x10b')](_0x49e8fd)&&this[_0xc461('0x36')](_0x221e72,_0x198124,_0x5b3234));}});},{'priority':_0xc461('0x112')}),_0x138134[_0xc461('0x12f')]['on'](_0xc461('0x78'),(_0x31f328,_0x2416ea)=>{const _0x16fe48=_0x2416ea[0x0],_0x7962d4=_0x2416ea[0x1];if(_0x7962d4&&_0x7962d4['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0xc461('0xcd')][_0xc461('0x55')])return;if(_0x16fe48['isCollapsed'])return;const _0x55008d=_0x138134[_0xc461('0x12f')][_0xc461('0x77')],{start:_0x1e7021,end:_0x4c036b}=_0x16fe48[_0xc461('0x101')](),_0x371f1a=_0x1e7021['nodeAfter']&&_0x55008d[_0xc461('0x35')](_0x1e7021['nodeAfter'])?null:_0x55008d['getNearestSelectionRange'](_0x1e7021,_0xc461('0x100')),_0x32cf99=_0x4c036b[_0xc461('0x48')]&&_0x55008d[_0xc461('0x35')](_0x4c036b[_0xc461('0x48')])?null:_0x55008d[_0xc461('0xb6')](_0x4c036b,_0xc461('0xb9')),_0x14c36f=_0x138134['model'][_0xc461('0xa7')](_0x371f1a?_0x371f1a[_0xc461('0x30')]:_0x1e7021,_0x32cf99?_0x32cf99[_0xc461('0xc3')]:_0x4c036b);_0x138134['model']['change'](_0x515b5d=>{this[_0xc461('0xca')](_0x14c36f);const _0x4ac9fa=_0x138134[_0xc461('0x12f')]['schema'][_0xc461('0xb6')](_0x14c36f[_0xc461('0x30')]);_0x16fe48['is'](_0xc461('0xfc'))?_0x515b5d[_0xc461('0xa2')](_0x4ac9fa):_0x16fe48[_0xc461('0x1d')](_0x4ac9fa);}),_0x31f328[_0xc461('0x70')]();},{'priority':_0x312d8c[_0xc461('0x105')]+0xa}),_0x138134[_0xc461('0x12f')]['on'](_0xc461('0x31'),(_0x41c9aa,_0x45f011)=>{const _0x20bc35=_0x45f011[_0x45f011['length']-0x1];_0x20bc35&&_0x20bc35['forceDefaultExecution']||this[_0xc461('0x10f')]||this['trackChangesCommand'][_0xc461('0x55')]&&(_0x138134[_0xc461('0x12f')][_0xc461('0x11c')](()=>{let _0x560e52=_0x138134[_0xc461('0x12f')][_0xc461('0x31')](_0x45f011[0x0],_0x45f011[0x1],_0x45f011[0x2],{'forceDefaultExecution':!0x0});if(!_0x560e52)return;_0x41c9aa['return']=_0x560e52[_0xc461('0x29')]();const _0x2fc38f=_0x560e52['end'][_0xc461('0x48')],_0x4f37af=_0x138134[_0xc461('0x12f')][_0xc461('0x77')];_0x2fc38f&&_0x4f37af['isBlock'](_0x2fc38f)&&!_0x4f37af[_0xc461('0xe')](_0x2fc38f)&&(_0x560e52=_0x138134[_0xc461('0x12f')][_0xc461('0xa7')](_0x560e52[_0xc461('0x30')],_0x138134[_0xc461('0x12f')]['createPositionAt'](_0x2fc38f,'end'))),this[_0xc461('0x69')](_0x560e52);}),_0x41c9aa[_0xc461('0x70')]());},{'priority':_0xc461('0x9f')}),this[_0xc461('0x13c')][_0xc461('0x66')][_0xc461('0x87')](_0xc461('0x59'),this[_0xc461('0xcd')]),this[_0xc461('0x137')](_0xc461('0x59'));const _0x21fa0a=new _0x98675f(_0x138134,this[_0xc461('0x4f')]);_0x138134['commands'][_0xc461('0x87')]('acceptSuggestion',_0x21fa0a),this['enableCommand'](_0xc461('0xbb'));const _0x2e0791=new _0x1587e2(_0x138134,this['_suggestions']);_0x138134[_0xc461('0x66')][_0xc461('0x87')]('discardSuggestion',_0x2e0791),this[_0xc461('0x137')](_0xc461('0x12c')),_0x138134[_0xc461('0x66')][_0xc461('0x87')]('acceptAllSuggestions',new _0xaceebc(_0x138134,_0x21fa0a,this[_0xc461('0x4f')])),this['enableCommand'](_0xc461('0xfb')),_0x138134['commands']['add'](_0xc461('0xaf'),new _0xaceebc(_0x138134,_0x2e0791,this[_0xc461('0x4f')])),this['enableCommand']('discardAllSuggestions'),_0x138134[_0xc461('0x66')][_0xc461('0x87')]('acceptSelectedSuggestions',new _0x198a38(_0x138134,_0x21fa0a,this[_0xc461('0x4f')])),this[_0xc461('0x137')](_0xc461('0xa')),_0x138134[_0xc461('0x66')][_0xc461('0x87')]('discardSelectedSuggestions',new _0x198a38(_0x138134,_0x2e0791,this[_0xc461('0x4f')])),this[_0xc461('0x137')](_0xc461('0x9c'));const _0x655555=_0x138134[_0xc461('0xdc')]['get']('CommentsRepository');this[_0xc461('0x133')](_0x655555,_0xc461('0x85'),(_0x3d00a3,{threadId:_0x35c828})=>{const _0x34f00d=this[_0xc461('0x4f')][_0xc461('0x7f')](_0x35c828);_0x34f00d&&_0x34f00d['commentThread']&&0x1===_0x34f00d[_0xc461('0xa8')][_0xc461('0xe3')]&&this[_0xc461('0xb3')](_0x35c828,{'hasComments':!0x0});},{'priority':'low'}),this[_0xc461('0x133')](_0x655555,'removeComment',(_0x360e62,{threadId:_0x4724c4})=>{const _0x44c5ed=this[_0xc461('0x4f')][_0xc461('0x7f')](_0x4724c4);_0x44c5ed&&_0x44c5ed[_0xc461('0xa8')]&&!_0x44c5ed['commentThread']['length']&&this[_0xc461('0xb3')](_0x4724c4,{'hasComments':!0x1});},{'priority':_0xc461('0x79')});}set[_0xc461('0x11d')](_0x18c4a9){if(this[_0xc461('0xeb')])throw new _0x339aa1(_0xc461('0xd0'),this);this[_0xc461('0xeb')]=_0x18c4a9;}get[_0xc461('0x11d')](){return this[_0xc461('0xeb')];}[_0xc461('0x56')]({skipNotAttached:_0x465648=!0x1,toJSON:_0x22d3dd=!0x1}={}){const _0x59c1c3=[];for(const _0x1be6ff of this['_suggestions'][_0xc461('0x49')]())_0x465648&&!_0x1be6ff['isInContent']||_0x59c1c3[_0xc461('0x98')](_0x1be6ff);return _0x22d3dd?_0x59c1c3['map'](_0x2baecc=>_0x2baecc[_0xc461('0x8')]()):_0x59c1c3;}[_0xc461('0xc5')](_0x3d0c28){const _0xb334f2=this[_0xc461('0x4f')][_0xc461('0x7f')](_0x3d0c28);if(!_0xb334f2)throw new _0x339aa1(_0xc461('0x2'),this);return _0xb334f2;}[_0xc461('0x3')](_0x102f13){return this[_0xc461('0x4f')][_0xc461('0xf1')](_0x102f13);}[_0xc461('0x5b')](_0x229f69){const {authorId:_0x41647d,id:_0x2f4cb9,attributes:_0x1ac55a}=_0x229f69,[_0x249f30,_0x12168e]=_0x229f69[_0xc461('0xff')][_0xc461('0xb4')](':'),_0x3e3f71=this[_0xc461('0x4f')][_0xc461('0x7f')](_0x2f4cb9)||this[_0xc461('0x24')](_0x249f30,_0x12168e,_0x2f4cb9,_0x41647d,_0x1ac55a);if(this[_0xc461('0x4c')](_0x3e3f71),this[_0xc461('0xfa')](_0x3e3f71,_0x249f30,_0x12168e||null,_0x41647d),_0x3e3f71['createdAt']=_0x229f69[_0xc461('0x103')],_0x3e3f71['_isDataLoaded']=!0x0,_0x1ac55a&&_0x1ac55a[_0xc461('0x60')]){const _0x4bf891=_0x1ac55a[_0xc461('0x60')],_0x17fb3a=this[_0xc461('0x128')](_0x4bf891['authorName']);_0x3e3f71[_0xc461('0x11a')]=_0x4bf891['createdAt'],_0x3e3f71['author']=_0x17fb3a,_0x3e3f71[_0xc461('0x68')]=!0x0;}else _0x3e3f71[_0xc461('0x11a')]=_0x229f69[_0xc461('0x103')];switch(_0x229f69[_0xc461('0xa5')]&&(_0x3e3f71[_0xc461('0xa5')]=_0x229f69[_0xc461('0xa5')]),_0x229f69[_0xc461('0x0')]&&(_0x3e3f71[_0xc461('0x0')]=_0x229f69[_0xc461('0x0')]),this[_0xc461('0xeb')]&&this[_0xc461('0xeb')][_0xc461('0xed')]||(_0x3e3f71[_0xc461('0x39')]=!0x0),this['_suggestionState'][_0xc461('0x7f')](_0x3e3f71)){case _0xc461('0xd'):this[_0xc461('0x117')][_0xc461('0x44')](_0x3e3f71,_0xc461('0x12b'));break;case'markerReady':_0x3e3f71['isInContent']?(this[_0xc461('0x4a')](new Set([_0x3e3f71])),this[_0xc461('0x15')](new Set([_0x3e3f71])),this[_0xc461('0x117')][_0xc461('0x44')](_0x3e3f71,_0xc461('0xc4')),this[_0xc461('0x6a')](_0xc461('0x25'),_0x3e3f71)):this[_0xc461('0x117')][_0xc461('0x44')](_0x3e3f71,_0xc461('0xc2'));}return _0x3e3f71;}['acceptSuggestion'](_0x16196f){this[_0xc461('0x47')](()=>{this[_0xc461('0x13c')][_0xc461('0x12f')][_0xc461('0x11c')](()=>{for(const _0x3f8f71 of _0x16196f['getAllAdjacentSuggestions']())_0x3f8f71[_0xc461('0x121')]();});});}[_0xc461('0x12c')](_0x52c426){this['forceDefaultExecution'](()=>{this[_0xc461('0x13c')][_0xc461('0x12f')][_0xc461('0x11c')](()=>{for(const _0x2f3dba of _0x52c426['getAllAdjacentSuggestions']())_0x2f3dba[_0xc461('0x7c')]();});});}['enableCommand'](_0x231891,_0x150168){const _0x583329=this['editor'][_0xc461('0x66')][_0xc461('0x7f')](_0x231891);if(!_0x583329)throw new _0x339aa1(_0xc461('0x43'),this,{'commandName':_0x231891});this[_0xc461('0x3d')]['add'](_0x583329),_0x150168&&_0x583329['on'](_0xc461('0x3f'),(_0x420317,_0x27b2f3)=>{this['trackChangesCommand'][_0xc461('0x55')]&&(this['_isForcedDefaultExecutionBlock']||_0x27b2f3[_0xc461('0xe3')]>0x0&&_0x27b2f3[_0x27b2f3[_0xc461('0xe3')]-0x1]&&_0x27b2f3[_0x27b2f3[_0xc461('0xe3')]-0x1][_0xc461('0x47')]||(_0x420317[_0xc461('0xd2')]=_0x150168((..._0x17e539)=>_0x583329[_0xc461('0x3f')](..._0x17e539,{'forceDefaultExecution':!0x0}),..._0x27b2f3),_0x420317[_0xc461('0x70')]()));},{'priority':_0xc461('0x9f')});}[_0xc461('0x47')](_0x5a9b8e){let _0x10ccde,_0x4265c9;const _0x2ab5dc=this[_0xc461('0x10f')];this[_0xc461('0x10f')]=!0x0;try{_0x10ccde=_0x5a9b8e();}catch(_0x55836e){_0x4265c9=_0x55836e;}return _0x2ab5dc||(this[_0xc461('0x10f')]=!0x1),_0x4265c9&&_0x339aa1['rethrowUnexpectedError'](_0x4265c9,this),_0x10ccde;}[_0xc461('0x69')](_0xc8be0f,_0x180650=null,_0x357f06={}){if(_0xc8be0f['isCollapsed'])return null;const _0x1de02b=this[_0xc461('0x13c')][_0xc461('0xdc')][_0xc461('0x7f')](_0xc461('0x17'))['me'];for(const {suggestion:_0x4c676f,meta:_0x41b3a1}of this['_findSuggestions'](_0xc8be0f,_0xc461('0x106')))if(_0x41b3a1[_0xc461('0xd4')]){if(!_0x41b3a1['isNextTo']){if(_0x41b3a1[_0xc461('0xe1')]){if(!this[_0xc461('0x13e')]||!Ot(_0x4c676f,_0x357f06))continue;return _0x4c676f;}if(Ot(_0x4c676f,_0x357f06))return _0x4c676f;this['_breakSuggestionMarker'](_0x4c676f,_0xc8be0f['start'],_0xc8be0f[_0xc461('0xc3')]);break;}if(_0x180650==_0x4c676f[_0xc461('0xcc')]&&Ot(_0x4c676f,_0x357f06)){const _0x2899b5=_0x4c676f[_0xc461('0x101')]();return _0x2899b5[_0xc461('0x30')][_0xc461('0x65')](_0xc8be0f['end'])?this[_0xc461('0x2e')](_0x4c676f,this[_0xc461('0x96')][_0xc461('0xa7')](_0xc8be0f[_0xc461('0x30')],_0x2899b5[_0xc461('0xc3')])):this[_0xc461('0x2e')](_0x4c676f,this[_0xc461('0x96')][_0xc461('0xa7')](_0x2899b5[_0xc461('0x30')],_0xc8be0f['end'])),_0x4c676f;}}const _0x10938d=_0xccee84(),_0x42456e=_0x1de02b['id'],_0x5b1dda=_0x180650?_0xc461('0x2a')+_0x180650:_0xc461('0x106'),_0x2151f4=this[_0xc461('0xd9')]({'id':_0x10938d,'type':_0x5b1dda,'createdAt':new Date(),'authorId':_0x42456e,'attributes':_0x357f06});return this[_0xc461('0xaa')](_0x5b1dda,_0x10938d,_0x42456e,_0xc8be0f),_0x2151f4;}[_0xc461('0xa6')](_0x3b318b,_0x1e1448=_0xc461('0x104'),_0x3faa08={}){const _0x341558=this[_0xc461('0x13c')][_0xc461('0xdc')]['get'](_0xc461('0x17'))['me'],_0x19a23a=this[_0xc461('0xb2')][_0xc461('0x22')]('insertion',_0x1e1448,'join');for(const _0x3081be of this[_0xc461('0x56')]())if(_0x3081be[_0xc461('0x92')]['id']==_0x341558['id']&&'insertion'==_0x3081be[_0xc461('0xff')]&&_0x3081be[_0xc461('0xcc')]==_0x1e1448&&Ot(_0x3081be,_0x3faa08)&&(_0x19a23a(_0x3081be[_0xc461('0xf8')](),_0x3b318b)||_0x19a23a(_0x3b318b,_0x3081be[_0xc461('0xf8')]()))){for(const _0x4d32ca of _0x3b318b)_0x3081be[_0xc461('0xdf')](_0x4d32ca);return _0x3081be;}for(const {suggestion:_0x56848c,meta:_0x5ce76f}of this[_0xc461('0x45')](_0x3b318b,_0xc461('0x106'))){if(!_0x5ce76f['isOwn'])continue;if(!this[_0xc461('0x13e')]&&_0x5ce76f['containsRangeInObject'])continue;if(!Ot(_0x56848c,_0x3faa08))continue;let _0x3bb495=!0x0;for(const _0x1d8a30 of _0x56848c[_0xc461('0xf8')]())for(const _0x3b7166 of _0x3b318b)if(!_0x1d8a30[_0xc461('0x10b')](_0x3b7166)){_0x3bb495=!0x1;break;}if(_0x3bb495)return _0x56848c;}const _0x40eaca=_0xccee84(),_0x4038f0=_0x341558['id'],_0x33a9c6=_0xc461('0x2a')+_0x1e1448,_0x3d110e=this[_0xc461('0xd9')]({'id':_0x40eaca,'type':_0x33a9c6,'createdAt':new Date(),'authorId':_0x4038f0,'attributes':_0x3faa08});for(const _0x379065 of _0x3b318b)this[_0xc461('0xaa')](_0x33a9c6,_0x40eaca,_0x4038f0,_0x379065,_0x454d15[_0xc461('0x13b')]());return _0x3d110e;}[_0xc461('0x9b')](_0x213069,_0x1a6e24,_0x123630=null,_0x1ee02d={}){if(_0x123630=_0x123630||Nt(_0x1a6e24),_0x213069[_0xc461('0x3e')])return null;if(_0xc461('0x5d')===this[_0xc461('0x72')]){const _0x2c43e6=this[_0xc461('0xb2')][_0xc461('0x22')]('formatInline',_0x123630,_0xc461('0x121'));return this[_0xc461('0x47')](()=>_0x2c43e6([_0x213069],_0x1a6e24,_0x1ee02d)),null;}const _0x1e94da=this[_0xc461('0x13c')][_0xc461('0xdc')][_0xc461('0x7f')]('Users')['me'],_0xf9b58d=[];if(_0xc461('0xfd')!==this['_trackFormatChanges'])for(const {suggestion:_0x43a6c9,meta:_0x2ee995}of this[_0xc461('0x45')](_0x213069,_0xc461('0x106')))_0x2ee995['isOwn']&&!_0x2ee995[_0xc461('0xde')]&&_0xf9b58d[_0xc461('0x98')](..._0x43a6c9['getRanges']());const _0x2f8f68=function(_0x3b8b81,_0x622107){const _0x2113b1=[];for(const _0x4752e1 of _0x622107){const _0x362bfb=_0x3b8b81[_0xc461('0x46')](_0x4752e1);_0x362bfb&&_0x2113b1[_0xc461('0x98')](_0x362bfb);}return _0x2113b1;}(_0x213069,_0xf9b58d),_0x44e17c=function(_0x1e8545,_0x39393a){const _0x4a7662=[_0x1e8545];for(const _0x36583a of _0x39393a){let _0x5aef80=0x0;for(;_0x5aef80<_0x4a7662['length'];){const _0x368e6d=_0x4a7662[_0x5aef80][_0xc461('0x41')](_0x36583a);_0x4a7662['splice'](_0x5aef80,0x1,..._0x368e6d),_0x5aef80+=_0x368e6d[_0xc461('0xe3')];}}return _0x4a7662;}(_0x213069,_0xf9b58d);_0x2f8f68[_0xc461('0xe3')]&&this[_0xc461('0x96')][_0xc461('0x11c')](()=>{for(const _0x5567a3 of _0x2f8f68){const _0x2f0108=this[_0xc461('0xb2')][_0xc461('0x22')](_0xc461('0x9'),_0x123630,_0xc461('0x121'));this[_0xc461('0x47')](()=>_0x2f0108([_0x5567a3],_0x1a6e24,_0x1ee02d));}});for(const _0x2ecd22 of _0x44e17c){let _0x400d93=null,_0x36506e=_0x2ecd22[_0xc461('0x30')],_0x4f98f0=_0x2ecd22[_0xc461('0xc3')];for(const {suggestion:_0xd021f,meta:_0x4c91f7}of this[_0xc461('0x45')](_0x2ecd22,_0xc461('0x9'))){if(!_0x4c91f7['isOwn'])continue;if(_0xd021f[_0xc461('0xcc')]!=_0x123630)continue;if(!Ot(_0xd021f,_0x1ee02d))continue;const _0x278c3f=_0xd021f['getFirstRange']();if(_0x278c3f['containsRange'](_0x2ecd22,!0x0))return null;_0x36506e=_0x36506e[_0xc461('0x19')](_0x278c3f[_0xc461('0x30')])?_0x36506e:_0x278c3f['start'],_0x4f98f0=_0x4f98f0[_0xc461('0x80')](_0x278c3f[_0xc461('0xc3')])?_0x4f98f0:_0x278c3f['end'],_0x400d93?_0x278c3f[_0xc461('0x30')]['isBefore'](_0x400d93['getFirstRange']()[_0xc461('0x30')])?(_0x400d93[_0xc461('0x12')](),_0x400d93=_0xd021f):_0xd021f[_0xc461('0x12')]():_0x400d93=_0xd021f;}const _0x5367b7=this[_0xc461('0x96')]['createRange'](_0x36506e,_0x4f98f0);if(_0x400d93)this['_setSuggestionRange'](_0x400d93,_0x5367b7);else{const _0x407c37=_0xccee84(),_0x46b5a2=_0x1e94da['id'];this[_0xc461('0xd9')]({'id':_0x407c37,'type':_0xc461('0x16')+_0x123630,'data':_0x1a6e24,'createdAt':new Date(),'authorId':_0x46b5a2,'attributes':_0x1ee02d}),this[_0xc461('0xaa')]('formatInline:'+_0x123630,_0x407c37,_0x46b5a2,_0x5367b7);}}return null;}[_0xc461('0xb0')](_0x5dfed8,_0x1107a5,_0x31c42c=[],_0xfa0310=null,_0x854621={}){_0x1107a5[_0xc461('0x12a')]||(_0x1107a5[_0xc461('0x12a')]=_0x1107a5['commandName']),_0x1107a5[_0xc461('0xda')]=_0x5dfed8['is'](_0xc461('0xf3')),_0xfa0310=_0xfa0310||Nt(_0x1107a5);const _0x52bf0c=_0x31c42c[_0xc461('0x7e')](_0x27c6ca=>jt(_0x27c6ca,this[_0xc461('0x96')])),_0x527d73=_0x5dfed8['is'](_0xc461('0xf3'))?_0x5dfed8:jt(_0x5dfed8,this[_0xc461('0x96')]);if(_0xc461('0x5d')===this[_0xc461('0x72')]){const _0x320beb=this[_0xc461('0xb2')][_0xc461('0x22')](_0xc461('0xf4'),_0xfa0310,_0xc461('0x121'));return this[_0xc461('0x47')](()=>_0x320beb([_0x527d73],_0x1107a5,_0x854621)),null;}_0x52bf0c[_0xc461('0x98')](_0x527d73);let _0x26b7f8=!0x0;for(const _0x788975 of _0x52bf0c)if(!this[_0xc461('0x10d')](_0x788975)){_0x26b7f8=!0x1;break;}if(_0x26b7f8&&'always'!==this[_0xc461('0x72')]){const _0x3ffc32=this[_0xc461('0xb2')][_0xc461('0x22')](_0xc461('0xf4'),_0xfa0310,'accept');return this[_0xc461('0x47')](()=>_0x3ffc32([_0x527d73],_0x1107a5,_0x854621)),null;}let _0x51fbd6=null,_0x121752=_0x527d73[_0xc461('0x30')],_0x27f091=_0x527d73[_0xc461('0xc3')];for(const {suggestion:_0x2d2815,meta:_0x1f8201}of this['_findSuggestions'](_0x527d73,'formatBlock')){if(!_0x1f8201[_0xc461('0xd4')])continue;if(_0x1f8201[_0xc461('0xf7')]||_0x1f8201[_0xc461('0xe1')]||_0x1f8201[_0xc461('0xde')])continue;if(_0x2d2815[_0xc461('0xa5')][_0xc461('0x12a')]!=_0x1107a5[_0xc461('0x12a')])continue;if(!Ot(_0x2d2815,_0x854621))continue;const _0x44dfff=_0x2d2815[_0xc461('0x101')]();if(_0x2d2815[_0xc461('0xcc')]==_0xfa0310){if(_0x44dfff[_0xc461('0x10b')](_0x527d73,!0x0))return null;_0x121752=_0x121752[_0xc461('0x19')](_0x44dfff[_0xc461('0x30')])?_0x121752:_0x44dfff[_0xc461('0x30')],_0x27f091=_0x27f091[_0xc461('0x80')](_0x44dfff[_0xc461('0xc3')])?_0x27f091:_0x44dfff[_0xc461('0xc3')],_0x51fbd6?_0x44dfff[_0xc461('0x30')]['isBefore'](_0x51fbd6['getFirstRange']()[_0xc461('0x30')])?(_0x51fbd6['removeMarkers'](),_0x51fbd6=_0x2d2815):_0x2d2815[_0xc461('0x12')]():_0x51fbd6=_0x2d2815;}else{const _0x18ab0a=_0x527d73[_0xc461('0x46')](_0x44dfff);this['_cutOutSuggestionMarker'](_0x2d2815,_0x18ab0a);}}const _0x2f71ed=this[_0xc461('0x13c')][_0xc461('0xdc')][_0xc461('0x7f')](_0xc461('0x17'))['me'],_0x43fb58=_0xccee84(),_0x2773f2=_0x2f71ed['id'];if(_0x51fbd6)return this['_setSuggestionRange'](_0x51fbd6,this[_0xc461('0x96')]['createRange'](_0x121752,_0x27f091)),_0x51fbd6;{const _0x364eb2=this[_0xc461('0xd9')]({'id':_0x43fb58,'type':_0xc461('0xc1')+_0xfa0310,'data':_0x1107a5,'createdAt':new Date(),'authorId':_0x2773f2,'attributes':_0x854621});return this['_addSuggestionMarker']('formatBlock:'+_0xfa0310,_0x43fb58,_0x2773f2,this[_0xc461('0x96')]['createRange'](_0x121752,_0x27f091)),_0x364eb2;}}['markMultiRangeBlockFormat'](_0x46ba51,_0x2992a8,_0x5ea260=[],_0x203407=null,_0x505db1={}){_0x2992a8[_0xc461('0x12a')]||(_0x2992a8['formatGroupId']=_0x2992a8[_0xc461('0xcf')]);const _0x4a22fe=_0x46ba51[0x0];_0x2992a8[_0xc461('0xda')]=_0x4a22fe['is'](_0xc461('0xf3')),_0x203407=_0x203407||Nt(_0x2992a8);const _0x529bb5=_0x5ea260[_0xc461('0x7e')](_0x338b7d=>jt(_0x338b7d,this[_0xc461('0x96')])),_0x5965ac=_0x4a22fe['is'](_0xc461('0xf3'))?_0x46ba51:_0x46ba51['map'](_0x4ff372=>jt(_0x4ff372,this[_0xc461('0x96')]));if(_0xc461('0x5d')===this['_trackFormatChanges']){const _0x22b437=this['_suggestionFactory']['getSuggestionCallback'](_0xc461('0xf4'),_0x203407,'accept');return this[_0xc461('0x47')](()=>_0x22b437(_0x5965ac,_0x2992a8,_0x505db1)),null;}_0x529bb5[_0xc461('0x98')](..._0x5965ac);let _0x1de0f8=!0x0;for(const _0x380250 of _0x529bb5)if(!this[_0xc461('0x10d')](_0x380250)){_0x1de0f8=!0x1;break;}if(_0x1de0f8&&_0xc461('0xfd')!==this[_0xc461('0x72')]){const _0x127046=this[_0xc461('0xb2')]['getSuggestionCallback'](_0xc461('0xf4'),_0x203407,'accept');return this[_0xc461('0x47')](()=>_0x127046(_0x5965ac,_0x2992a8,_0x505db1)),null;}const _0x3bfa77=this['editor'][_0xc461('0xdc')][_0xc461('0x7f')]('Users')['me'];for(const _0x92e348 of this[_0xc461('0x56')]()){if(_0x92e348[_0xc461('0x92')]['id']!=_0x3bfa77['id'])continue;if(_0xc461('0xf4')!=_0x92e348[_0xc461('0xff')]||_0x92e348[_0xc461('0xa5')]['formatGroupId']!=_0x2992a8[_0xc461('0x12a')])continue;if(!Ot(_0x92e348,_0x505db1))continue;const _0x4f6d33=_0x92e348[_0xc461('0xcc')]==_0x203407;for(let _0x27271e=0x0;_0x27271e<_0x5965ac['length'];_0x27271e++){const _0x5c3ade=_0x5965ac[_0x27271e];for(const _0x20c106 of _0x92e348[_0xc461('0xf5')]()){const _0x317e90=_0x20c106[_0xc461('0x135')]();if(_0x5c3ade[_0xc461('0x65')](_0x317e90)){_0x4f6d33?(_0x5965ac['splice'](_0x27271e,0x1),_0x27271e--):_0x92e348[_0xc461('0x51')](_0x20c106[_0xc461('0xe2')]);break;}}}}if(0x0==_0x5965ac[_0xc461('0xe3')])return null;const _0x5e10db=this['_suggestionFactory'][_0xc461('0x22')](_0xc461('0xf4'),_0x203407,_0xc461('0x8e'));for(const _0xabcbc2 of this[_0xc461('0x56')]())if(_0xabcbc2[_0xc461('0x92')]['id']==_0x3bfa77['id']&&_0xc461('0xf4')==_0xabcbc2[_0xc461('0xff')]&&_0xabcbc2[_0xc461('0xa5')]['formatGroupId']==_0x2992a8[_0xc461('0x12a')]&&_0xabcbc2[_0xc461('0xcc')]==_0x203407&&Ot(_0xabcbc2,_0x505db1)&&(_0x5e10db(_0xabcbc2['getRanges'](),_0x5965ac)||_0x5e10db(_0x5965ac,_0xabcbc2[_0xc461('0xf8')]()))){for(const _0x21c000 of _0x5965ac)_0xabcbc2['addRange'](_0x21c000);return _0xabcbc2;}const _0x21200b=_0xccee84(),_0x25193d=_0x3bfa77['id'],_0x139713=_0xc461('0xc1')+_0x203407,_0x2cbb19=this[_0xc461('0xd9')]({'id':_0x21200b,'type':_0x139713,'data':_0x2992a8,'createdAt':new Date(),'authorId':_0x25193d,'attributes':_0x505db1});for(const _0x5d0646 of _0x5965ac)this[_0xc461('0xaa')](_0x139713,_0x21200b,_0x25193d,_0x5d0646,_0x454d15[_0xc461('0x13b')]());return _0x2cbb19;}[_0xc461('0xca')](_0x15e472,_0x228bfc=null,_0x53680f={}){if(_0x15e472[_0xc461('0x3e')])return null;const _0x1def87=this[_0xc461('0x13c')][_0xc461('0xdc')][_0xc461('0x7f')](_0xc461('0x17'))['me'],_0xd260ef=new _0x439992(_0x15e472[_0xc461('0x30')],_0x15e472['end']);for(const {suggestion:_0x19a4e8,meta:_0x2bc1d6}of this[_0xc461('0x45')](_0xd260ef,'insertion'))if(_0x2bc1d6['isOwn']&&!_0x2bc1d6['isNextTo']){if(_0x19a4e8['isMultiRange']){const _0xbff4b=_0x19a4e8[_0xc461('0xf8')]()[_0xc461('0x126')](_0x39dcf9=>_0xc461('0x113')!=_0x39dcf9[_0xc461('0x33')][_0xc461('0x37')]);_0xbff4b[_0xc461('0x7')](_0x5a213a=>_0xd260ef[_0xc461('0x10b')](_0x5a213a,!0x0))&&_0x19a4e8[_0xc461('0x7c')]();if(_0xbff4b['some'](_0x2e9417=>_0x2e9417[_0xc461('0x10b')](_0xd260ef,!0x0))){const _0x3f3203=this['_suggestionFactory']['getSuggestionCallback'](_0xc461('0x97'),_0x228bfc,_0xc461('0x121'));return this[_0xc461('0x47')](()=>_0x3f3203([_0xd260ef],null,_0x53680f)),null;}}else{const _0x2e91e0=_0xd260ef['getIntersection'](_0x19a4e8[_0xc461('0x101')]());null!==_0x2e91e0&&_0x19a4e8[_0xc461('0x13a')]([_0x2e91e0],null,_0x53680f);}}if(_0xd260ef[_0xc461('0x54')](),_0xd260ef[_0xc461('0x3e')]||'$graveyard'==_0xd260ef['root']['rootName'])return null;let _0x384143=null,_0x26a37c=_0xd260ef[_0xc461('0x30')],_0x2924a0=_0xd260ef[_0xc461('0xc3')];const _0x584b6f=this['_findSuggestions'](_0xd260ef,_0xc461('0x97'));for(const {suggestion:_0x4b6fe4,meta:_0x161321}of _0x584b6f){const _0x1e8151=this[_0xc461('0x96')][_0xc461('0xa7')](_0x26a37c,_0x2924a0);if(_0x161321[_0xc461('0xd4')]&&(this[_0xc461('0x13e')]||!_0x161321[_0xc461('0xe1')]&&!_0x161321[_0xc461('0xde')])){if(_0x4b6fe4['isMultiRange']){if(!Ot(_0x4b6fe4,_0x53680f))continue;let _0x309321=!0x0;for(const _0x1ddc07 of _0x4b6fe4[_0xc461('0xf8')]()){if(_0x1ddc07[_0xc461('0x10b')](_0x1e8151,!0x0))return _0x4b6fe4;_0x1e8151[_0xc461('0x10b')](_0x1ddc07)||(_0x309321=!0x1);}_0x309321&&_0x4b6fe4[_0xc461('0x7c')]();}else{const _0x186ada=_0x4b6fe4[_0xc461('0x101')]();if(_0x186ada[_0xc461('0x10b')](_0x1e8151,!0x0))return _0x4b6fe4;if(!Ot(_0x4b6fe4,_0x53680f)){_0x1e8151[_0xc461('0x10b')](_0x186ada)?_0x4b6fe4[_0xc461('0x12')]():_0x186ada['containsPosition'](_0x26a37c)?_0x26a37c=_0x186ada['end']:_0x186ada['containsPosition'](_0x2924a0)&&(_0x2924a0=_0x186ada[_0xc461('0x30')]);continue;}_0x26a37c=_0x26a37c[_0xc461('0x19')](_0x186ada[_0xc461('0x30')])?_0x26a37c:_0x186ada['start'],_0x2924a0=_0x2924a0['isAfter'](_0x186ada[_0xc461('0xc3')])?_0x2924a0:_0x186ada['end'],_0x53680f=Object[_0xc461('0xc8')]({},_0x4b6fe4[_0xc461('0x0')]),_0x384143?_0x186ada[_0xc461('0x30')][_0xc461('0x19')](_0x384143['getFirstRange']()[_0xc461('0x30')])?(_0x384143['removeMarkers'](),_0x384143=_0x4b6fe4):_0x4b6fe4[_0xc461('0x12')]():_0x384143=_0x4b6fe4;}}}if(_0x384143)return this['_setSuggestionRange'](_0x384143,this['_model']['createRange'](_0x26a37c,_0x2924a0)),_0x384143;{const _0x4ab1c7=_0xccee84(),_0x19b3ae=this['_model'][_0xc461('0xa7')](_0x26a37c,_0x2924a0),_0x46592a=_0x1def87['id'],_0x25a9d0=_0x228bfc?'deletion:'+_0x228bfc:'deletion',_0x19d8ae=this['_setSuggestionData']({'id':_0x4ab1c7,'type':_0x25a9d0,'createdAt':new Date(),'authorId':_0x46592a,'attributes':_0x53680f});return this['_addSuggestionMarker'](_0x25a9d0,_0x4ab1c7,_0x46592a,_0x19b3ae),_0x19d8ae;}}['markMultiRangeDeletion'](_0x3f029b,_0x195153=_0xc461('0x104'),_0x39a446={}){const _0x1e5d64=this['editor']['plugins']['get'](_0xc461('0x17'))['me'],_0x14fc01=_0x3f029b['map'](_0x4de768=>new _0x439992(_0x4de768['start'],_0x4de768[_0xc461('0xc3')])),_0x303664=new Set();for(const {suggestion:_0x198bbe,meta:_0x41135f}of this[_0xc461('0x45')](_0x14fc01,_0xc461('0x106')))_0x41135f[_0xc461('0xd4')]&&!_0x41135f['isNextTo']&&_0x303664[_0xc461('0x87')](_0x198bbe);for(const _0x1bd0a5 of _0x303664)if(_0x1bd0a5[_0xc461('0x2f')]){const _0x3b2f5c=_0x1bd0a5[_0xc461('0xf8')]();(!_0x1bd0a5[_0xc461('0x0')]||!_0x1bd0a5[_0xc461('0x0')][_0xc461('0x61')])&&(_0x3b2f5c[_0xc461('0x7')](_0x77cacd=>_0x14fc01[_0xc461('0xba')](_0x2a9414=>_0x2a9414[_0xc461('0x10b')](_0x77cacd,!0x0)))&&_0x1bd0a5[_0xc461('0x7c')]());if(_0x14fc01[_0xc461('0x7')](_0x9bac37=>_0x3b2f5c[_0xc461('0xba')](_0x2dc03f=>_0x2dc03f[_0xc461('0x10b')](_0x9bac37,!0x0)))){const _0x598458=this[_0xc461('0xb2')][_0xc461('0x22')]('deletion',_0x195153,_0xc461('0x121'));return this['forceDefaultExecution'](()=>_0x598458(_0x3f029b,null,_0x39a446)),null;}}else{const _0x1b86db=_0x1bd0a5['getFirstRange']();_0x14fc01[_0xc461('0xba')](_0xfe452=>_0xfe452['containsRange'](_0x1b86db,!0x0))&&_0x1bd0a5[_0xc461('0x7c')]();if(_0x14fc01[_0xc461('0x7')](_0x734abe=>_0x1b86db['containsRange'](_0x734abe,!0x0))){const _0xc416bc=this[_0xc461('0xb2')][_0xc461('0x22')]('deletion',_0x195153,_0xc461('0x121'));return this[_0xc461('0x47')](()=>_0xc416bc(_0x14fc01,null,_0x39a446)),null;}}const _0x116942=this['_suggestionFactory'][_0xc461('0x22')]('deletion',_0x195153,_0xc461('0x8e'));let _0xce647e=null;for(const _0xe4713 of this[_0xc461('0x56')]())if(_0xe4713['author']['id']==_0x1e5d64['id']&&_0xe4713[_0xc461('0x129')]&&_0xc461('0x97')==_0xe4713['type']&&_0xe4713['subType']==_0x195153&&Ot(_0xe4713,_0x39a446)&&(_0x116942(_0xe4713[_0xc461('0xf8')](),_0x14fc01)||_0x116942(_0x14fc01,_0xe4713[_0xc461('0xf8')]()))){if(_0xce647e){if(_0xe4713[_0xc461('0xa8')]&&_0xe4713[_0xc461('0xa8')][_0xc461('0xe3')])continue;for(const _0x1a2ee1 of _0xe4713['getRanges']())_0xce647e[_0xc461('0x81')](_0x1a2ee1)||_0xce647e[_0xc461('0xdf')](_0x1a2ee1);_0xe4713[_0xc461('0x12')]();}else{_0xce647e=_0xe4713;for(const _0x5a3057 of _0x14fc01)_0xe4713[_0xc461('0x81')](_0x5a3057)||_0xe4713[_0xc461('0xdf')](_0x5a3057);}}if(_0xce647e)return _0xce647e;_0x303664[_0xc461('0x1f')]();for(const {suggestion:_0x36ca07,meta:_0x4bea49}of this[_0xc461('0x45')](_0x14fc01,_0xc461('0x97')))_0x4bea49[_0xc461('0xd4')]&&(this[_0xc461('0x13e')]||!_0x4bea49['containsRangeInObject']&&!_0x4bea49[_0xc461('0xde')])&&Ot(_0x36ca07,_0x39a446)&&_0x303664[_0xc461('0x87')](_0x36ca07);for(const _0x2a991c of _0x303664){const _0x125dad=_0x2a991c[_0xc461('0xf8')]();if(!_0x39a446||!_0x39a446[_0xc461('0x61')]){if(_0x14fc01[_0xc461('0x7')](_0x1180e7=>_0x125dad[_0xc461('0xba')](_0x22128d=>_0x22128d['containsRange'](_0x1180e7,!0x0))))return _0x2a991c;}(!_0x2a991c[_0xc461('0x0')]||!_0x2a991c[_0xc461('0x0')][_0xc461('0x61')])&&(_0x125dad[_0xc461('0x7')](_0x5c290e=>_0x14fc01[_0xc461('0xba')](_0x4399ba=>_0x4399ba['containsRange'](_0x5c290e,!0x0)))&&_0x2a991c[_0xc461('0x7c')]());}const _0x1a7882=_0xccee84(),_0x1a789e=_0x1e5d64['id'],_0x3b9273='deletion:'+_0x195153,_0x1593d5=this[_0xc461('0xd9')]({'id':_0x1a7882,'type':_0x3b9273,'createdAt':new Date(),'authorId':_0x1a789e,'attributes':_0x39a446});for(const _0x2538b0 of _0x14fc01)_0x2538b0['detach'](),_0x2538b0[_0xc461('0x3e')]||_0xc461('0x113')==_0x2538b0[_0xc461('0x33')][_0xc461('0x37')]||this[_0xc461('0xaa')](_0x3b9273,_0x1a7882,_0x1a789e,_0x2538b0,_0x454d15['getMultiRangeId']());return _0x1593d5;}['_setSuggestionRange'](_0x5f156c,_0x23e9bb){const _0x17c92c=_0x5f156c[_0xc461('0xe9')]();this['_model'][_0xc461('0x11c')](_0x4319ea=>{_0x4319ea[_0xc461('0x20')](_0x17c92c,{'range':_0x23e9bb});});}['_addThreadToSuggestion'](_0x22a99d){const _0x297155=_0x22a99d['id'],_0x2e6528=this[_0xc461('0x13c')][_0xc461('0x52')]['get'](_0xc461('0x1a'));this[_0xc461('0x123')][_0xc461('0x120')](_0x297155)||this[_0xc461('0x123')]['addCommentThread']({'channelId':_0x2e6528,'threadId':_0x297155,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xd95eb3=this[_0xc461('0x123')][_0xc461('0x4d')](_0x297155);_0xd95eb3[_0xc461('0xe5')](_0xc461('0xd3')),_0xd95eb3['isRemovable']=!0x1,_0x22a99d[_0xc461('0xa8')]=_0xd95eb3;}[_0xc461('0xfa')](_0x40c5c5,_0x3b15cb,_0x5b3914,_0x2a9aec){if(_0x40c5c5['type']!=_0x3b15cb||_0x40c5c5[_0xc461('0xcc')]!=_0x5b3914||_0x40c5c5[_0xc461('0xe4')]['id']!=_0x2a9aec)throw this[_0xc461('0x13c')][_0xc461('0x6f')](_0xc461('0x116')),new _0x339aa1(_0xc461('0x116'),this);}['_cutOutSuggestionMarker'](_0x152404,_0x220fb2){const _0x4bafca=_0x152404[_0xc461('0x101')]();if(_0x220fb2[_0xc461('0x65')](_0x4bafca))_0x152404[_0xc461('0x12')]();else{if(_0x4bafca['containsRange'](_0x220fb2)){const _0x4bf5a9=this[_0xc461('0x96')]['createPositionAt'](_0x220fb2[_0xc461('0x30')][_0xc461('0x48')],_0xc461('0xc3'));this[_0xc461('0x2e')](_0x152404,this['_model'][_0xc461('0xa7')](_0x4bafca['start'],_0x4bf5a9));const _0x35f1fa=_0xccee84(),_0x5570eb=_0x152404[_0xc461('0xe4')]['id'],_0x5a4432=_0x152404[_0xc461('0xff')]+':'+_0x152404[_0xc461('0xcc')];this['_setSuggestionData']({'id':_0x35f1fa,'type':_0x5a4432,'createdAt':new Date(),'authorId':_0x5570eb,'data':_0x152404[_0xc461('0xa5')],'attributes':_0x152404[_0xc461('0x0')]});const _0x4afabe=this[_0xc461('0x96')]['createPositionAt'](_0x220fb2[_0xc461('0xc3')][_0xc461('0x13')],_0xc461('0x75')),_0x226c6d=this[_0xc461('0x96')][_0xc461('0xa7')](_0x4afabe,_0x4bafca[_0xc461('0xc3')]);this[_0xc461('0xaa')](_0x5a4432,_0x35f1fa,_0x5570eb,_0x226c6d);}else{if(_0x4bafca['containsPosition'](_0x220fb2['start'])){const _0x3f3ffa=this[_0xc461('0x96')][_0xc461('0x134')](_0x220fb2[_0xc461('0x30')][_0xc461('0x48')],_0xc461('0xc3'));this[_0xc461('0x2e')](_0x152404,this[_0xc461('0x96')]['createRange'](_0x4bafca['start'],_0x3f3ffa));}else{const _0xa95307=this[_0xc461('0x96')]['createPositionAt'](_0x220fb2[_0xc461('0xc3')][_0xc461('0x13')],'after');this[_0xc461('0x2e')](_0x152404,this[_0xc461('0x96')][_0xc461('0xa7')](_0xa95307,_0x4bafca[_0xc461('0xc3')]));}}}}['_rangeIsInLocalUserInsertion'](_0x2110c0){for(const {suggestion:_0x2eab0b,meta:_0x5987f5}of this[_0xc461('0x45')](_0x2110c0,_0xc461('0x106'))){if(!_0x5987f5[_0xc461('0xd4')])continue;const _0x5acb98=_0x2eab0b[_0xc461('0xf8')]();for(const _0x286208 of _0x5acb98)if(!_0x2110c0[_0xc461('0x41')](_0x286208)['length'])return!0x0;}return!0x1;}[_0xc461('0x74')](_0x355865){const _0x9d643a=this[_0xc461('0x13c')][_0xc461('0xdc')][_0xc461('0x7f')](_0xc461('0x17'))[_0xc461('0x7a')](_0x355865);if(!_0x9d643a)throw new _0x339aa1(_0xc461('0x7b'),this);return _0x9d643a;}[_0xc461('0x128')](_0x50db34){const _0x275e68=this[_0xc461('0x13c')][_0xc461('0xdc')][_0xc461('0x7f')](_0xc461('0x17')),_0xd751fb=_0x4a4395(_0xc461('0x11f')+_0x50db34),_0x39e106=_0x275e68[_0xc461('0x7a')](_0xd751fb);return _0x39e106||_0x275e68[_0xc461('0x8d')]({'id':_0xd751fb,'name':_0x50db34});}['_createSuggestion'](_0x557a26,_0x4233bd,_0x3c1abf,_0x4e0877,_0x937c16){const _0x117f12=this[_0xc461('0x74')](_0x4e0877),_0xe1d885=this[_0xc461('0xb2')][_0xc461('0x6c')](_0x557a26,_0x4233bd,_0x3c1abf,_0x117f12,_0x937c16,_0x3ecb74=>this[_0xc461('0xb3')](_0x3c1abf,{'attributes':_0x3ecb74}));return this['listenTo'](_0xe1d885,_0xc461('0x121'),()=>{this[_0xc461('0xb3')](_0x3c1abf,{'state':_0xc461('0xd1')});},{'priority':_0xc461('0x9f')}),this['listenTo'](_0xe1d885,_0xc461('0x7c'),()=>{this[_0xc461('0xb3')](_0x3c1abf,{'state':_0xc461('0x139')});},{'priority':_0xc461('0x9f')}),this[_0xc461('0x4f')]['set'](_0x3c1abf,_0xe1d885),this[_0xc461('0x117')]['set'](_0xe1d885,_0xc461('0xd')),_0xe1d885;}['_splitMarkerName'](_0x504be9){const _0x2319b4=_0x504be9[_0xc461('0xb4')](':');return{'group':_0x2319b4[0x0],'type':_0x2319b4[0x1],'subType':_0x2319b4[_0xc461('0xe3')]>=0x5?_0x2319b4[0x2]:null,'id':_0x2319b4['length']<0x5?_0x2319b4[0x2]:_0x2319b4[0x3],'authorId':_0x2319b4[_0xc461('0xe3')]<0x5?_0x2319b4[0x3]:_0x2319b4[0x4],'markerCount':0x6==_0x2319b4[_0xc461('0xe3')]?_0x2319b4[0x5]:null};}[_0xc461('0x36')](_0x125bba,_0x27270b,_0x3d4127){const _0x16e662=_0x125bba[_0xc461('0x101')](),_0x3bc0ad=_0x16e662[_0xc461('0x30')],_0xfb2db8=_0x16e662[_0xc461('0xc3')];this[_0xc461('0x2e')](_0x125bba,this[_0xc461('0x96')][_0xc461('0xa7')](_0x3bc0ad,_0x27270b));const _0x5b9137=_0xccee84(),_0x5103d1=_0x125bba['creator']['id'],_0x5592cc=_0x125bba['type']+(_0x125bba[_0xc461('0xcc')]?':'+_0x125bba[_0xc461('0xcc')]:'');this[_0xc461('0xd9')]({'id':_0x5b9137,'type':_0x5592cc,'createdAt':new Date(),'authorId':_0x5103d1,'originalSuggestionId':_0x125bba['id'],'attributes':_0x125bba[_0xc461('0x0')],'data':_0x125bba['data']}),'formatBlock'==_0x125bba[_0xc461('0xff')]&&(_0x3d4127=this[_0xc461('0x96')]['createPositionBefore'](_0x3d4127[_0xc461('0x13')])),this[_0xc461('0xaa')](_0x5592cc,_0x5b9137,_0x5103d1,this[_0xc461('0x96')][_0xc461('0xa7')](_0x3d4127,_0xfb2db8));}[_0xc461('0x45')](_0x42f844,_0x33f7f6=null){const _0x483af8=[],_0x58203a=this['editor'][_0xc461('0xdc')][_0xc461('0x7f')](_0xc461('0x17'))['me'];Array[_0xc461('0x5e')](_0x42f844)||(_0x42f844=[_0x42f844]);for(const _0x44f6b4 of this[_0xc461('0x56')]()){if(!_0x44f6b4[_0xc461('0x129')])continue;if(_0x33f7f6&&_0x44f6b4['type']!=_0x33f7f6)continue;let _0x34de78=!0x1;for(const _0x10b5c0 of _0x44f6b4[_0xc461('0xf8')]()){for(const _0x497527 of _0x42f844){const _0x5c37cd=_0x497527[_0xc461('0x30')][_0xc461('0x65')](_0x10b5c0[_0xc461('0xc3')])||_0x497527['end']['isEqual'](_0x10b5c0[_0xc461('0x30')]);if(_0x5c37cd||_0x497527[_0xc461('0x46')](_0x10b5c0)){const _0x175819=_0x497527[_0xc461('0x10b')](_0x10b5c0)&&_t(this[_0xc461('0x96')]['schema'],_0x10b5c0['start'],_0x497527),_0x49f8df=_0x10b5c0[_0xc461('0x10b')](_0x497527)&&_t(this[_0xc461('0x96')][_0xc461('0x77')],_0x497527[_0xc461('0x30')],_0x10b5c0);_0x483af8[_0xc461('0x98')]({'suggestion':_0x44f6b4,'meta':{'isOwn':_0x58203a==_0x44f6b4['author'],'isNextTo':_0x5c37cd,'isInsideObject':_0x175819,'containsRangeInObject':_0x49f8df}}),_0x34de78=!0x0;break;}}if(_0x34de78)break;}}return _0x483af8;}['_addSuggestionMarker'](_0x3c0c55,_0x37be87,_0x4f2e07,_0x112731,_0x39d034){this[_0xc461('0x96')][_0xc461('0x11c')](_0x222e34=>{let _0x59ab16=_0xc461('0x91')+_0x3c0c55+':'+_0x37be87+':'+_0x4f2e07;_0x39d034&&(_0x59ab16=_0x59ab16+':'+_0x39d034),_0x222e34[_0xc461('0xb8')](_0x59ab16,{'range':_0x112731,'usingOperation':!0x0,'affectsData':!0x0});});}[_0xc461('0x5f')](_0x3c1587){const _0x496474=_0x3c1587['previous'],_0x5cb2d4=_0x3c1587['next'];_0x3c1587[_0xc461('0x8b')]=null,null!=_0x496474&&(_0x496474[_0xc461('0xf2')]=null),_0x3c1587['next']=null,null!=_0x5cb2d4&&(_0x5cb2d4[_0xc461('0x8b')]=null),_0xc461('0xc4')==this[_0xc461('0x117')][_0xc461('0x7f')](_0x3c1587)&&(this[_0xc461('0x117')][_0xc461('0x44')](_0x3c1587,'removed'),this[_0xc461('0x6a')](_0xc461('0xbd'),_0x3c1587,_0x496474,_0x5cb2d4));}['_setSuggestionData'](_0x238ce7){const _0xc8a086=_0x238ce7['id'],_0xcf431=this[_0xc461('0x5b')](_0x238ce7);if(this[_0xc461('0xeb')]&&this[_0xc461('0xeb')][_0xc461('0xed')]){const _0x43b2bc=this[_0xc461('0x13c')][_0xc461('0xdc')][_0xc461('0x7f')](_0xc461('0xe0')),_0x21882f=_0xcf431[_0xc461('0xbe')],_0x33ab46=_0xcf431[_0xc461('0xcc')]?_0xcf431['type']+':'+_0xcf431[_0xc461('0xcc')]:_0xcf431[_0xc461('0xff')],_0x441c59=this['editor'][_0xc461('0x21')],_0x5b0bdb=_0x43b2bc['add'](_0x30569e(_0x441c59,_0xc461('0x18'))),_0x4e2a28={'id':_0xc8a086,'type':_0x33ab46,'hasComments':_0x21882f,'data':_0x238ce7['data']||null,'originalSuggestionId':_0x238ce7[_0xc461('0x93')]||null,'attributes':_0xcf431[_0xc461('0x0')]};this['_adapter'][_0xc461('0xed')](_0x4e2a28)[_0xc461('0x73')](_0x31a4fc=>{_0xcf431[_0xc461('0x39')]=!0x0,_0x43b2bc['remove'](_0x5b0bdb),_0x31a4fc&&_0x31a4fc[_0xc461('0x103')]&&(this['_suggestions'][_0xc461('0x7f')](_0xc8a086)[_0xc461('0x103')]=_0x31a4fc[_0xc461('0x103')]);})['catch'](_0x314882=>{throw _0x1725bb('error-saving-suggestion-data-suggestion-discarded'),this[_0xc461('0x13c')][_0xc461('0x12f')][_0xc461('0x2d')]({'isUndoable':!0x1},()=>{_0xcf431[_0xc461('0x7c')]();}),_0xcf431[_0xc461('0x10e')](),this[_0xc461('0x4f')]['delete'](_0xcf431['id']),this[_0xc461('0x117')][_0xc461('0x122')](_0xcf431),_0x314882;});}return _0xcf431;}[_0xc461('0xb3')](_0x1bfa81,_0x100093){const _0x2b219d=this[_0xc461('0x13c')][_0xc461('0xdc')][_0xc461('0x7f')](_0xc461('0xe0')),_0x168a33=this[_0xc461('0xc5')](_0x1bfa81);if(this[_0xc461('0xeb')]&&this[_0xc461('0xeb')][_0xc461('0x107')]){if(_0x168a33['_saved']){const _0x184da3=_0x2b219d[_0xc461('0x87')](_0x30569e(this[_0xc461('0x13c')][_0xc461('0x21')],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1bfa81,_0x100093)[_0xc461('0x73')](()=>{_0x2b219d[_0xc461('0x34')](_0x184da3);});}else _0x168a33['on']('change:_saved',()=>{this[_0xc461('0xb3')](_0x1bfa81,_0x100093);});}}['_getSuggestionData'](_0x1e6542){if(!this[_0xc461('0xeb')]||!this[_0xc461('0xeb')][_0xc461('0xc5')])throw new _0x339aa1(_0xc461('0x132'),this);return this[_0xc461('0xeb')][_0xc461('0xc5')](_0x1e6542);}[_0xc461('0x6b')](_0x8d5ec2){const {id:_0x2f328e,type:_0x3895e8,subType:_0x4109bc,authorId:_0x2e7c80}=this[_0xc461('0x10')](_0x8d5ec2),_0x48c30e=this[_0xc461('0x4f')]['get'](_0x2f328e)||this[_0xc461('0x24')](_0x3895e8,_0x4109bc,_0x2f328e,_0x2e7c80,{});switch(this['_checkSuggestionCorrectness'](_0x48c30e,_0x3895e8,_0x4109bc,_0x2e7c80),this['_suggestionState'][_0xc461('0x7f')](_0x48c30e)){case _0xc461('0xd'):this[_0xc461('0x99')](_0x2f328e)['then'](_0x5b2510=>{let _0x35a478=Promise[_0xc461('0xc')]();_0x5b2510['hasComments']&&(_0x35a478=this[_0xc461('0x123')][_0xc461('0x11b')]({'channelId':this['editor']['config'][_0xc461('0x7f')](_0xc461('0x1a')),'threadId':_0x2f328e})),_0x35a478[_0xc461('0x73')](()=>{this['addSuggestionData'](_0x5b2510)[_0xc461('0x39')]=!0x0;});}),this[_0xc461('0x117')][_0xc461('0x44')](_0x48c30e,'markerReady');break;case'removed':this[_0xc461('0xb3')](_0x2f328e,{'state':_0xc461('0x127')});case _0xc461('0x12b'):this['_suggestionState'][_0xc461('0x44')](_0x48c30e,'ready'),this[_0xc461('0x6a')](_0xc461('0x25'),_0x48c30e);break;case _0xc461('0xc4'):this[_0xc461('0x6a')](_0xc461('0xc6'),_0x48c30e);}return _0x48c30e[_0xc461('0xdd')](_0x8d5ec2),_0x48c30e;}[_0xc461('0x4a')](_0x10ff19){const _0x28077a=Array['from'](_0x10ff19)[_0xc461('0x126')](_0x52437a=>!_0x52437a['isMultiRange']),_0x541481=this[_0xc461('0x56')]({'skipNotAttached':!0x0})[_0xc461('0x126')](_0x563a4b=>!_0x563a4b[_0xc461('0x2f')]),_0x2e8bee=_0x541481[_0xc461('0x126')](_0x996071=>!_0x10ff19['has'](_0x996071)),_0x2be762=new Map(_0x541481[_0xc461('0x7e')](_0x2d5a49=>[_0x2d5a49,this[_0xc461('0xb2')][_0xc461('0x22')](_0x2d5a49[_0xc461('0xff')],_0x2d5a49['subType'],'chain')])),_0x5547d3=new Map(_0x541481[_0xc461('0x7e')](_0x4b09d0=>[_0x4b09d0,_0x4b09d0[_0xc461('0x101')]()])),_0x599fca=new Set(),_0x49fb76=new Set();for(let _0x21167e=0x0;_0x21167e<_0x28077a[_0xc461('0xe3')];_0x21167e++)_0x1f748d(_0x28077a[_0x21167e],_0x28077a,_0x21167e+0x1);for(let _0x9f680e=0x0;_0x9f680e<_0x28077a['length'];_0x9f680e++)_0x1f748d(_0x28077a[_0x9f680e],_0x2e8bee,0x0);for(let _0x46dc1d=0x0;_0x46dc1d<_0x28077a['length'];_0x46dc1d++){const _0x1408b8=_0x28077a[_0x46dc1d];!_0x49fb76['has'](_0x1408b8)&&_0x1408b8[_0xc461('0x8b')]&&(_0x1408b8[_0xc461('0x8b')][_0xc461('0xf2')]===_0x1408b8&&(_0x1408b8[_0xc461('0x8b')][_0xc461('0xf2')]=null),_0x1408b8[_0xc461('0x8b')]=null),!_0x599fca[_0xc461('0xf1')](_0x1408b8)&&_0x1408b8[_0xc461('0xf2')]&&(_0x1408b8['next'][_0xc461('0x8b')]===_0x1408b8&&(_0x1408b8['next']['previous']=null),_0x1408b8[_0xc461('0xf2')]=null);}function _0x1f748d(_0xd21c1,_0x551dab,_0xbf5aac){for(let _0x174c73=_0xbf5aac;_0x174c73<_0x551dab['length'];_0x174c73++){const _0xf1b3f2=_0x315f9f(_0xd21c1,_0x551dab[_0x174c73]);_0xf1b3f2&&(_0xf1b3f2[0x0]['next']=_0xf1b3f2[0x1],_0xf1b3f2[0x1][_0xc461('0x8b')]=_0xf1b3f2[0x0],_0x599fca[_0xc461('0x87')](_0xf1b3f2[0x0]),_0x49fb76[_0xc461('0x87')](_0xf1b3f2[0x1]));}}function _0x315f9f(_0x4abcd8,_0x1e6378){if(_0x4abcd8[_0xc461('0x92')]['id']!==_0x1e6378[_0xc461('0x92')]['id'])return null;const _0xad6603=_0x2be762[_0xc461('0x7f')](_0x4abcd8)(_0x4abcd8,_0x1e6378,_0x5547d3[_0xc461('0x7f')](_0x4abcd8),_0x5547d3[_0xc461('0x7f')](_0x1e6378));if(!_0xad6603)return null;return _0x2be762['get'](_0x1e6378)(_0x4abcd8,_0x1e6378,_0x5547d3['get'](_0x4abcd8),_0x5547d3['get'](_0x1e6378))?_0xad6603[0x1][_0xc461('0xa8')]&&_0xad6603[0x1][_0xc461('0xa8')][_0xc461('0xe3')]?null:_0xad6603:null;}}[_0xc461('0x15')](_0x33502c){const _0x11c095=Array['from'](_0x33502c),_0x208241=this['getSuggestions']({'skipNotAttached':!0x0}),_0x493681=_0x208241[_0xc461('0x126')](_0x27e5c7=>!_0x33502c[_0xc461('0xf1')](_0x27e5c7)),_0x46352e=new Map(_0x11c095[_0xc461('0x7e')](_0x28716d=>[_0x28716d,this[_0xc461('0xb2')][_0xc461('0x22')](_0x28716d['type'],_0x28716d['subType'],_0xc461('0x8e'))])),_0x328919=new Map(_0x208241[_0xc461('0x7e')](_0x1f61b5=>[_0x1f61b5,_0x1f61b5[_0xc461('0xf8')]()]));for(let _0x235a10=0x0;_0x235a10<_0x11c095[_0xc461('0xe3')];_0x235a10++){if(_0x2eb49f(this,_0x11c095[_0x235a10],_0x11c095,_0x235a10+0x1))return!0x0;}for(let _0x26516c=0x0;_0x26516c<_0x11c095[_0xc461('0xe3')];_0x26516c++){if(_0x2eb49f(this,_0x11c095[_0x26516c],_0x493681,0x0))return!0x0;}return!0x1;function _0x2eb49f(_0x52033f,_0x2ab1a4,_0x46f4bf,_0x2c096f){for(let _0x4979ed=_0x2c096f;_0x4979ed<_0x46f4bf[_0xc461('0xe3')];_0x4979ed++){const _0x305f6b=_0x46f4bf[_0x4979ed];if(_0x305f6b[_0xc461('0xff')]!==_0x2ab1a4[_0xc461('0xff')]||_0x305f6b[_0xc461('0x92')]['id']!==_0x2ab1a4['author']['id']||_0x305f6b[_0xc461('0xcc')]!==_0x2ab1a4[_0xc461('0xcc')])continue;if(!Ut(_0x2ab1a4,_0x305f6b))continue;const _0x2f736d=_0x46352e[_0xc461('0x7f')](_0x2ab1a4),_0x2b8329=_0x328919[_0xc461('0x7f')](_0x2ab1a4),_0x437a07=_0x328919['get'](_0x305f6b),_0x556f9b=_0x2ab1a4[_0xc461('0xa8')]&&_0x2ab1a4[_0xc461('0xa8')]['length'],_0x1c346b=_0x305f6b[_0xc461('0xa8')]&&_0x305f6b[_0xc461('0xa8')][_0xc461('0xe3')];if(!_0x556f9b&&_0x2f736d(_0x437a07,_0x2b8329))return _0x52033f[_0xc461('0x102')](_0x305f6b,_0x2ab1a4),_0x328919[_0xc461('0x122')](_0x2ab1a4),!0x0;if(!_0x1c346b&&_0x2f736d(_0x2b8329,_0x437a07))return _0x52033f['_joinSuggestions'](_0x2ab1a4,_0x305f6b),_0x328919[_0xc461('0x122')](_0x305f6b),!0x0;}return!0x1;}}[_0xc461('0x102')](_0x5a4fde,_0x4bc8b8){if(_0x5a4fde[_0xc461('0x2f')])for(const _0x210938 of _0x4bc8b8[_0xc461('0xf8')]())_0x5a4fde[_0xc461('0xdf')](_0x210938);else{const _0x4f9e63=_0x4bc8b8['getFirstRange']()[_0xc461('0xc3')];this['_setSuggestionRange'](_0x5a4fde,this[_0xc461('0x96')]['createRange'](_0x5a4fde['getFirstRange']()[_0xc461('0x30')],_0x4f9e63));}_0x4bc8b8['removeMarkers']();}}class Bt{constructor(_0x3ad131){this[_0xc461('0x40')]=_0x3ad131,this[_0xc461('0x96')]=_0x3ad131[_0xc461('0x12f')],this[_0xc461('0x3a')]=new Map(),this[_0xc461('0x10a')]=new Map(),this[_0xc461('0x38')]();}[_0xc461('0x6c')](_0x29f37e,_0x591e15,_0x2f6a37,_0x469883,_0x720b99,_0x108c26){return new _0x454d15(this[_0xc461('0x96')],{'type':_0x29f37e,'subType':_0x591e15,'id':_0x2f6a37,'author':_0x469883,'creator':_0x469883,'attributes':_0x720b99,'onAttributesChange':_0x108c26,'onAccept':(..._0x53117b)=>this['getSuggestionCallback'](_0x29f37e,_0x591e15,_0xc461('0x121'))(..._0x53117b),'onDiscard':(..._0x3e5a06)=>this[_0xc461('0x22')](_0x29f37e,_0x591e15,'discard')(..._0x3e5a06)});}['registerCustomCallback'](_0x418cc9,_0x114515,_0x33b7e6,_0x27753e){const _0x5bb5ca=_0x418cc9+':'+_0x114515+':'+_0x33b7e6;this[_0xc461('0x3a')]['set'](_0x5bb5ca,_0x27753e);}[_0xc461('0x22')](_0x199964,_0x3edfcb,_0x213118){const _0x2584f1=_0x199964+':'+_0x3edfcb+':'+_0x213118;return this['_customCallbacks']['get'](_0x2584f1)||this[_0xc461('0x10a')][_0xc461('0x7f')](_0x199964+':'+_0x213118);}[_0xc461('0x38')](){const _0x448e67=()=>!0x1,_0x2a8d67=_0x3459ee=>{_0x3459ee[_0xc461('0x89')]((_0x18d0a7,_0x5cafcc)=>_0x18d0a7[_0xc461('0x30')][_0xc461('0x19')](_0x5cafcc['start'])?0x1:-0x1),this[_0xc461('0x96')]['change'](_0xc9e4e9=>{for(const _0xfc9dc9 of _0x3459ee){let _0x2303c5;_0x2303c5=_0xfc9dc9['end']['isAtEnd']&&_0xfc9dc9[_0xc461('0xc3')][_0xc461('0x13')]==_0xfc9dc9[_0xc461('0x30')][_0xc461('0x3b')]?_0xc9e4e9[_0xc461('0x9a')](_0xfc9dc9['start'][_0xc461('0x3b')],'on'):_0xc9e4e9[_0xc461('0x9a')](_0xfc9dc9),this[_0xc461('0x96')][_0xc461('0x78')](_0x2303c5,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x12a76a=(_0x3d5e07,_0xe573cc)=>{this[_0xc461('0x96')][_0xc461('0x11c')](_0x1385eb=>{const {commandName:_0x70844b,commandParams:_0x46f2d8=[]}=_0xe573cc,_0x4cd2a6=_0x3d5e07['map'](_0x529b2c=>(Mt(_0x529b2c)&&(_0x529b2c=this[_0xc461('0x96')]['createRange'](_0x529b2c[_0xc461('0xc3')])),_0x529b2c))[_0xc461('0x126')](_0x2da0d7=>'$graveyard'!==_0x2da0d7[_0xc461('0x33')][_0xc461('0x37')]);if(_0x4cd2a6['length']<0x1)return;const _0x2ab3e3=Array['from'](this[_0xc461('0x96')]['document'][_0xc461('0x1c')][_0xc461('0xf8')]())[_0xc461('0x7e')](_0x5743d0=>_0x439992['fromRange'](_0x5743d0));_0x1385eb[_0xc461('0xa2')](_0x4cd2a6);for(const _0x8642dc of this[_0xc461('0x40')][_0xc461('0x66')][_0xc461('0x66')]())_0x8642dc['refresh']();_0x46f2d8[_0xc461('0x98')]({'forceDefaultExecution':!0x0}),this['_editor'][_0xc461('0x3f')](_0x70844b,..._0x46f2d8);const _0xb8b626=_0x2ab3e3[_0xc461('0x126')](_0x445513=>_0xc461('0x113')!=_0x445513['root'][_0xc461('0x37')]);_0xb8b626[_0xc461('0xe3')]>0x0&&_0x1385eb['setSelection'](_0xb8b626);for(const _0x5109c0 of _0x2ab3e3)_0x5109c0[_0xc461('0x54')]();});},_0x5380cf=(_0x4a24a6,_0x3d692f)=>0x1==_0x4a24a6['length']&&0x1==_0x3d692f['length']&&_0x4a24a6[0x0][_0xc461('0xc3')][_0xc461('0x65')](_0x3d692f[0x0][_0xc461('0x30')]),_0x1b6fc9=(_0x2cc9a6,_0x294708,_0x23b1e2,_0x5aeca8)=>xt(_0x2cc9a6,_0x294708,_0x23b1e2,_0x5aeca8,this[_0xc461('0x96')])?[_0x2cc9a6,_0x294708]:xt(_0x294708,_0x2cc9a6,_0x5aeca8,_0x23b1e2,this['_model'])?[_0x294708,_0x2cc9a6]:null;this[_0xc461('0x10a')][_0xc461('0x44')](_0xc461('0x125'),_0x448e67),this[_0xc461('0x10a')][_0xc461('0x44')](_0xc461('0x109'),_0x2a8d67),this[_0xc461('0x10a')][_0xc461('0x44')](_0xc461('0xc9'),_0x5380cf),this[_0xc461('0x10a')][_0xc461('0x44')](_0xc461('0x9d'),_0x1b6fc9),this['_defaultCallbacks'][_0xc461('0x44')](_0xc461('0x4'),_0x2a8d67),this[_0xc461('0x10a')][_0xc461('0x44')]('deletion:discard',_0x448e67),this[_0xc461('0x10a')][_0xc461('0x44')]('deletion:join',_0x5380cf),this[_0xc461('0x10a')]['set'](_0xc461('0x63'),_0x1b6fc9),this[_0xc461('0x10a')]['set'](_0xc461('0x3c'),_0x12a76a),this[_0xc461('0x10a')][_0xc461('0x44')](_0xc461('0x11'),_0x448e67),this[_0xc461('0x10a')][_0xc461('0x44')](_0xc461('0x2c'),_0x5380cf),this[_0xc461('0x10a')]['set'](_0xc461('0x4e'),_0x448e67),this['_defaultCallbacks'][_0xc461('0x44')](_0xc461('0x130'),_0x12a76a),this[_0xc461('0x10a')][_0xc461('0x44')](_0xc461('0x12e'),_0x448e67),this[_0xc461('0x10a')][_0xc461('0x44')]('formatBlock:join',_0x5380cf),this[_0xc461('0x10a')][_0xc461('0x44')](_0xc461('0x8f'),_0x448e67);}}function _t(_0x3b7d76,_0x42d870,_0x490d37){for(const _0x49e16f of _0x42d870['parent'][_0xc461('0xea')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x49e16f[_0xc461('0x33')]==_0x49e16f)return!0x1;if(!_0x490d37[_0xc461('0x58')](_0x49e16f))return!0x1;if(_0x3b7d76[_0xc461('0xe')](_0x49e16f)||_0x3b7d76[_0xc461('0x35')](_0x49e16f))return!0x0;}return!0x1;}function Mt(_0x52e369){return _0x52e369[_0xc461('0xc3')][_0xc461('0x13')]==_0x52e369['start']['nodeAfter']&&_0x52e369[_0xc461('0xc3')]['isAtStart'];}function $t(_0x57ee62,_0x267a9d,_0x17e52b,_0xcd09e7){const _0x4c6e0b=_0x4e3eb2=>!_0x4e3eb2[_0xc461('0x12d')]['is']('$textProxy')&&!_0xcd09e7[_0xc461('0xe')](_0x4e3eb2['item']),_0x57bd10=_0x57ee62[_0xc461('0x30')][_0xc461('0x88')](_0x4c6e0b),_0x549417=_0x57ee62[_0xc461('0xc3')][_0xc461('0x88')](_0x4c6e0b,{'direction':_0xc461('0xb9')});return(!_0x57ee62[_0xc461('0x30')][_0xc461('0x65')](_0x57bd10)||!_0x57ee62[_0xc461('0xc3')][_0xc461('0x65')](_0x549417))&&(_0x57bd10[_0xc461('0x19')](_0x549417)?_0x17e52b[_0xc461('0x20')](_0x267a9d,{'range':_0x17e52b[_0xc461('0xa7')](_0x57bd10,_0x549417)}):_0x17e52b[_0xc461('0x51')](_0x267a9d),!0x0);}function Nt(_0x4b2bb8){return _0x4a4395(_0x4b2bb8);}function Rt(_0x37a645){const _0x6a2330=_0x37a645[_0xc461('0x30')][_0xc461('0x3b')];return _0x6a2330&&_0x6a2330['is']('element');}function jt(_0x5ae169,_0x441df8){const _0x1ec82e=_0x441df8[_0xc461('0x77')]['isObject'](_0x5ae169)||_0x441df8['schema']['isSelectable'](_0x5ae169);return _0x441df8[_0xc461('0xa7')](_0x441df8[_0xc461('0x134')](_0x5ae169,_0xc461('0xa0')),_0x1ec82e?_0x441df8[_0xc461('0xec')](_0x5ae169):_0x441df8[_0xc461('0x134')](_0x5ae169,_0xc461('0xc3')));}function xt(_0x424e8d,_0x598863,_0x5941c5,_0x1ade99,_0x8546c4){if(!Ut(_0x424e8d,_0x598863))return!0x1;if(_0x5941c5[_0xc461('0xc3')][_0xc461('0x65')](_0x1ade99[_0xc461('0x30')]))return!0x0;if(_0x424e8d[_0xc461('0xff')]!=_0x598863[_0xc461('0xff')])return!0x1;if(!_0x5941c5[_0xc461('0xc3')][_0xc461('0x8a')](_0x1ade99[_0xc461('0x30')]))return!0x1;const _0x1ece40=_0x8546c4['createRange'](_0x5941c5['end'],_0x1ade99[_0xc461('0x30')])['getWalker']();for(const _0x17bdf1 of _0x1ece40)if([_0xc461('0x138'),_0xc461('0x1b')][_0xc461('0xb5')](_0x17bdf1['type'])&&_0x8546c4[_0xc461('0x77')]['isLimit'](_0x17bdf1[_0xc461('0x12d')]))return!0x1;return!0x0;}function Ut(_0x47aef9,_0x573875){return!(!_0x47aef9[_0xc461('0xe7')]||!_0x573875[_0xc461('0xe7')])&&_0x4541bd(_0x47aef9[_0xc461('0x0')],_0x573875[_0xc461('0x0')]);}function Ot(_0x38c48d,_0x518e69){const _0x33a3d5=Et(_0x38c48d[_0xc461('0x0')]),_0x472288=Et(_0x518e69);if(!_0x38c48d[_0xc461('0xe7')])return!0x1;for(const _0x1fcd53 of Object[_0xc461('0xb1')](_0x472288))if(!_0x4541bd(_0x33a3d5[_0x1fcd53],_0x472288[_0x1fcd53]))return!0x1;return!0x0;}function Et(_0x5c3873){const _0x5562eb=Object[_0xc461('0xc8')]({},_0x5c3873);return delete _0x5562eb[_0xc461('0x61')],delete _0x5562eb[_0xc461('0x119')],_0x5562eb;}