@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230909.0 → 0.0.0-nightly-20230911.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-20230909.0",
3
+ "version": "0.0.0-nightly-20230911.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-20230909.0",
43
- "ckeditor5-collaboration": "0.0.0-nightly-20230909.0",
42
+ "ckeditor5": "0.0.0-nightly-20230911.0",
43
+ "ckeditor5-collaboration": "0.0.0-nightly-20230911.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 _0xdcc3=['isInsideObject','unbindElementFromMarkerName','formatInline','showSuggestionHighlights','authorName','define','markMultiRangeDeletion','plugins','split','set','_rangeIsInLocalUserInsertion','getSuggestion','mapper','error-saving-suggestion-data-suggestion-discarded','getLastMatchingPosition','CommentsRepository','_defaultCallbacks','markBlockFormat','always','moveTargetPosition','suggestionChanged','removeClass','unbind','_mergeNestedSuggestions','isDocumentOperation','open','createPositionAt','_isDataLoaded','range','nodeAfter','head','elementStart','_suggestionFactory','_enabledCommands','toJSON','for','bindElementToMarker','_removeSuggestion','removeMarker','getSuggestionCallback','_editor','isEqual','discardSuggestion','_setSuggestionData','formatBlock','_customCallbacks','schema','splitPosition','push','skipNestingCheck','resolve','suggestionUnloaded','documentSelection','_descriptionFactory','filter','ck-suggestion-marker-formatBlock','nodeBefore','elementToElement','containsRangeInObject','length','removeAttribute','trackChangesCommand','deletion:join','markerName','removeMarkers','formatInline:chain','isArray','discardAllSuggestions','fromRange','addClass','data','elementEnd','execute','addRange','createdAt','_addSuggestionMarker','_model','requires','accepted','markDeletion','enableReadOnlyMode','getShiftedBy','isBlock','formatBlock:','_joinSuggestions','locale','isAfter','multi','get','isIntersectingWithRange','_trackFormatChanges','removed','isSelectable','getItems','addMarkerName','markInsertion','next','addSuggestion','selection','default','isUndo','addUser','document','hasComments','_getAuthorFromId','updateMarker','multipleBlocks','adapter','config','insertion:join','isBefore','isNextTo','track-changes-user-not-found','size','splice','getIntersection','formatBlock:join','isExternal','consume','forward','@external','editor','isCollapsed','$graveyard','accept','root','isLimit','fetchCommentThread','isRemovable','insertContent','setSelection','highest','removeMarker:suggestion:formatBlock','dataDowncast','delete','acceptAllSuggestions','_adapter','stop','dataToMarker','formatGroupId','before','getNearestSelectionRange','parent','addMarker:suggestion','assign','editingDowncast','suggestionLoaded','marker-count','catch','pluginName','writer','formatInline:accept','insertion:chain','listenTo','commentThread','containerElement','removeComment','rootName','includes','chain','containsPosition','item','end','addMarker:suggestion:formatBlock','backward','track-changes-adapter-already-set','consumable','insert','_checkSuggestionCorrectness','trackChanges.mergeNestedSuggestions','getAllAdjacentSuggestions','_createSuggestion','ck-suggestion-marker-','isInContent','values','_findSuggestions','subType','formatInline:discard','sort','_updateSuggestionData','high','_handleNewSuggestionMarker','deletion:','createPositionAfter','change:activeMarkers','fire','low','clear','getUser','rethrowUnexpectedError','init','discardSelectedSuggestions','start','trackChanges','clone','registerPostFixer','containsRange','fromCharCode','suggestion-type','getWalker','getFirstMarker','data-suggestion','formatInline:join','dataReady','createPositionBefore','_setSuggestionRange','setTo','_getExternalAuthor','markInlineFormat','PendingActions','previous','tablePasteChainId','rejected','getFirstRange','change:data','_splitMarkerName','change','_isForcedDefaultExecutionBlock','ck-suggestion-marker','getMarkers','setAttribute','keys','from','_onDiscard','getChangedMarkers','refresh','deleteContent','getAttribute','widget','then','getCommentThread','acceptSuggestion','remove','authoredAt','has','name','detach','creator','addCommentThread','formatInline:','suggestion','getRanges','isObject','forceDefaultExecution','getCustomProperty','isAtEnd','value','acceptSelectedSuggestions','getDifference','return','change:_saved','model','track-changes-suggestion-not-found','_joinWithAdjacentSuggestions','isLocal','buildSuggestion','insertion','author','Users','hasCommentThread','isMultiRange','_refreshSuggestionsChain','enqueueChange','markers','_addThreadToSuggestion','_breakSuggestionMarker','never','join','suggestion:','batch','toViewElement','some','_suggestions','_saved','markerReady','formatBlock:chain','discard','createRange','newRange','TrackChangesEditing','_cutOutSuggestionMarker','originalSuggestionId','options','group','attributes','deletion','notReady','targetPosition','markMultiRangeBlockFormat','reconvertMarker','add','_suggestionState','addSuggestionData','updateSuggestion','markerToHighlight','ck-suggestion-marker--active','map','track-changes-adapter-missing-getsuggestion','commandName','conversion','addComment','trackChanges.trackFormatChanges','track-changes-suggestion-data-mismatch','getSuggestions','every','getMultiRangeId','oldRange','element','collaboration.channelId','type','insertion:accept','isOwn','insertion:','PENDING_ACTION_SUGGESTION','position','commands','_getSuggestionData','howMany','enableCommand','_commentsRepository','differ','isTouching'];(function(_0x55391f,_0xdcc330){const _0x416104=function(_0x2740f7){while(--_0x2740f7){_0x55391f['push'](_0x55391f['shift']());}};_0x416104(++_0xdcc330);}(_0xdcc3,0x1ca));const _0x4161=function(_0x55391f,_0xdcc330){_0x55391f=_0x55391f-0x0;let _0x416104=_0xdcc3[_0x55391f];return _0x416104;};import{Plugin as _0x20167f,PendingActions as _0x3d11aa}from'ckeditor5/src/core';import{LiveRange as _0x4ccb35}from'ckeditor5/src/engine';import{CKEditorError as _0x5390d2,uid as _0x49c084,priorities as _0x424fa5,logWarning as _0x49c023}from'ckeditor5/src/utils';import{toWidget as _0x2fe915}from'ckeditor5/src/widget';import{Users as _0x5fce97,hashObject as _0x83290}from'ckeditor5-collaboration/src/collaboration-core';import _0x2d8012 from'./commands/trackchangescommand';import _0x104a5f from'./commands/acceptsuggestioncommand';import _0x4900c1 from'./commands/discardsuggestioncommand';import _0x1e0e73 from'./commands/executeonallsuggestionscommand';import _0x3fca38 from'./commands/executeonselectedsuggestionscommand';import _0x2170bb from'./suggestion';import _0x4cafc3 from'./suggestiondescriptionfactory';import _0x303041 from'./integrations/alignment';import _0x110021 from'./integrations/basicstyles';import _0x373cb5 from'./integrations/blockquote';import _0x58b447 from'./integrations/ckbox';import _0x4dc4ca from'./integrations/codeblock';import _0x57e912 from'./integrations/comments';import _0x3d84c4 from'./integrations/deletecommand';import _0x79e707 from'./integrations/documentlist';import _0x1d81c7 from'./integrations/entercommand';import _0x58f298 from'./integrations/findandreplace';import _0x518907 from'./integrations/font';import _0x58160a from'./integrations/formatpainter';import _0xd2c99f from'./integrations/heading';import _0x264ca0 from'./integrations/highlight';import _0x147423 from'./integrations/horizontalline';import _0xb3c3 from'./integrations/htmlembed';import _0x2a9952 from'./integrations/image';import _0x10084a from'./integrations/imagereplace';import _0x406938 from'./integrations/importword';import _0x17a5ee from'./integrations/indent';import _0x4d6db8 from'./integrations/inputcommand';import _0x4ae8ab from'./integrations/link';import _0x387b98 from'./integrations/list';import _0x114a07 from'./integrations/listproperties';import _0x417796 from'./integrations/mediaembed';import _0x57d13f from'./integrations/mention';import _0x36cb7f from'./integrations/pagebreak';import _0x527478 from'./integrations/paragraph';import _0x3b7baf from'./integrations/removeformat';import _0x4da776 from'./integrations/restrictededitingmode';import _0x5eed93 from'./integrations/shiftentercommand';import _0x25873a from'./integrations/standardeditingmode';import _0x235382 from'./integrations/style';import _0xd2b818 from'./integrations/table';import _0x3f3440 from'./integrations/tablemergesplit';import _0x554f64 from'./integrations/tableheadings';import _0x24eee0 from'./integrations/tableclipboard';import _0x12eeb1 from'./integrations/tablecolumnresize';import _0x50d505 from'./integrations/template';import _0x928ab5 from'./integrations/tableofcontents';import _0x5ed136 from'./integrations/title';import _0x59c567 from'./integrations/undo';import{getTranslation as _0x2b96c0}from'./utils/common-translations';import _0x48a813 from'./integrations/tablecaption';import _0x11fa43 from'./integrations/documentlistproperties';import _0x1d9118 from'./integrations/tableproperties';import{isEqual as _0xca6935}from'lodash-es';export default class p extends _0x20167f{static get[_0x4161('0x107')](){return['CommentsRepository',_0x5fce97,_0x3d11aa,_0x303041,_0x110021,_0x373cb5,_0x58b447,_0x4dc4ca,_0x57e912,_0x3d84c4,_0x79e707,_0x11fa43,_0x1d81c7,_0x58f298,_0x518907,_0x58160a,_0xd2c99f,_0x264ca0,_0x147423,_0xb3c3,_0x2a9952,_0x10084a,_0x406938,_0x17a5ee,_0x4d6db8,_0x4ae8ab,_0x387b98,_0x114a07,_0x417796,_0x57d13f,_0x36cb7f,_0x527478,_0x3b7baf,_0x4da776,_0x5eed93,_0x25873a,_0x235382,_0xd2b818,_0x3f3440,_0x554f64,_0x48a813,_0x24eee0,_0x12eeb1,_0x928ab5,_0x1d9118,_0x50d505,_0x5ed136,_0x59c567];}static get[_0x4161('0xd')](){return _0x4161('0x8f');}constructor(_0x54d978){function _0x3fc20a(_0x3303dd){return _0x3303dd['map'](_0xae212c=>String[_0x4161('0x3d')](_0xae212c))['join']('');}super(_0x54d978),this[_0x4161('0xc3')]('activeMarkers',[]),this['on'](_0x4161('0x30'),(_0x339cda,_0x5f16fa,_0xbdb84f,_0x28f960)=>{this[_0x4161('0x106')]['change'](()=>{for(const _0x18942b of[..._0x28f960,..._0xbdb84f])this[_0x4161('0x106')][_0x4161('0x7f')][_0x4161('0x62')](_0x18942b)&&_0x54d978['editing'][_0x4161('0x99')](_0x18942b);});}),this[_0x4161('0xef')]=new _0x4cafc3(this[_0x4161('0x133')][_0x4161('0x73')][_0x4161('0xe8')],this[_0x4161('0x133')][_0x4161('0x10f')]),this['_adapter']=null,this[_0x4161('0xda')]=new Dt(this['editor']),this[_0x4161('0x88')]=new Map(),this[_0x4161('0xb7')]=_0x54d978[_0x4161('0xc1')]['get'](_0x4161('0xc9')),this[_0x4161('0xdb')]=new Set(),this[_0x4161('0x106')]=this['editor'][_0x4161('0x73')],this[_0x4161('0x9b')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x54d978[_0x4161('0x126')][_0x4161('0xbf')](_0x4161('0xa5'),_0x4161('0x11d')),this[_0x4161('0x114')]=_0x54d978[_0x4161('0x126')][_0x4161('0x112')](_0x4161('0xa5')),_0x54d978[_0x4161('0x126')][_0x4161('0xbf')](_0x4161('0x21'),!0x0),this['_mergeNestedSuggestions']=_0x54d978[_0x4161('0x126')][_0x4161('0x112')](_0x4161('0x21')),this[_0x4161('0xf7')]=new _0x2d8012(_0x54d978,this[_0x4161('0xdb')]),this[_0x3fc20a([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3fc20a([0x34,0x30,0x34,0x36,0x31,0x38,0x31,0x38]);}[_0x4161('0x36')](){const _0x419a95=this['editor'];_0x419a95['conversion'][_0x4161('0xdd')](_0x4161('0x9'))[_0x4161('0x9e')]({'model':_0x4161('0x68'),'view':_0x1e25d7=>{const {id:_0x6dc2e9,type:_0x44b6d7}=this[_0x4161('0x4f')](_0x1e25d7[_0x4161('0xf9')]),_0x5dc289=[_0x4161('0x52'),_0x4161('0x24')+_0x44b6d7];let _0x14b992=0xbb8;return this['activeMarkers'][_0x4161('0x16')](_0x1e25d7[_0x4161('0xf9')])&&(_0x5dc289[_0x4161('0xea')](_0x4161('0x9f')),_0x14b992=0xbc2),_0x4161('0x95')==_0x44b6d7&&(_0x14b992+=0x5),{'classes':_0x5dc289,'attributes':{'data-suggestion':_0x6dc2e9},'priority':_0x14b992};}}),_0x419a95['conversion'][_0x4161('0xdd')](_0x4161('0x13f'))[_0x4161('0x9a')](_0xa9b84a=>{_0xa9b84a['on'](_0x4161('0x7'),(_0x3b3f5b,_0x41f73e,_0x3f16a2)=>{if(!_0x3f16a2[_0x4161('0x92')][_0x4161('0xbd')])return;const _0x57aa6d=_0x41f73e[_0x4161('0x19')];if(!_0x57aa6d)return;const _0x451714=_0x3f16a2['mapper'][_0x4161('0x86')](_0x57aa6d);_0x419a95[_0x4161('0x73')][_0x4161('0xe8')][_0x4161('0x6a')](_0x57aa6d)&&_0x451714&&!_0x451714['getCustomProperty'](_0x4161('0x5c'))&&_0x451714['is'](_0x4161('0x13'))&&_0x2fe915(_0x451714,_0x3f16a2[_0x4161('0xe')]);},{'priority':_0x4161('0x2c')});}),_0x419a95[_0x4161('0xa3')][_0x4161('0xdd')](_0x4161('0x13f'))[_0x4161('0x9e')]({'model':_0x4161('0x68'),'view':(_0x4253bc,_0xd1ebf8)=>{if(!_0xd1ebf8[_0x4161('0x92')][_0x4161('0xbd')])return null;const {type:_0x108fa6}=this[_0x4161('0x4f')](_0x4253bc['markerName']);return{'classes':[_0x4161('0x52'),_0x4161('0x24')+_0x108fa6],'priority':0xbb8};}});const _0x4aead5=({showActiveMarkers:_0x10f52a=!0x0}={})=>(_0x463f97,_0x3e9378,_0x47b195)=>{if(!_0x3e9378[_0x4161('0x19')])return;if(_0x3e9378[_0x4161('0x19')]['is']('selection'))return void _0x47b195[_0x4161('0x1e')][_0x4161('0x130')](_0x3e9378[_0x4161('0x19')],_0x463f97[_0x4161('0x63')]);const _0x492398=_0x47b195[_0x4161('0xc6')][_0x4161('0x86')](_0x3e9378[_0x4161('0x19')]);if(!(_0x3e9378[_0x4161('0x19')]['is'](_0x4161('0xab'))&&_0x419a95['model'][_0x4161('0xe8')][_0x4161('0x10c')](_0x3e9378[_0x4161('0x19')])&&!_0x492398['getCustomProperty']('addHighlight')))return;const {id:_0xb30354}=this[_0x4161('0x4f')](_0x3e9378[_0x4161('0xf9')]);_0x47b195[_0x4161('0xe')][_0x4161('0xff')]([_0x4161('0x52'),'ck-suggestion-marker-formatBlock'],_0x492398),_0x47b195[_0x4161('0xe')][_0x4161('0x54')]('data-suggestion',_0xb30354,_0x492398),_0x47b195[_0x4161('0xc6')][_0x4161('0xde')](_0x492398,_0x3e9378[_0x4161('0xf9')]),_0x10f52a&&(this['activeMarkers'][_0x4161('0x16')](_0x3e9378['markerName'])?_0x47b195[_0x4161('0xe')][_0x4161('0xff')]('ck-suggestion-marker--active',_0x492398):_0x47b195[_0x4161('0xe')]['removeClass'](_0x4161('0x9f'),_0x492398));for(const _0x512119 of _0x419a95[_0x4161('0x73')]['createRangeIn'](_0x3e9378[_0x4161('0x19')])[_0x4161('0x117')]())_0x47b195[_0x4161('0x1e')][_0x4161('0x130')](_0x512119,_0x463f97[_0x4161('0x63')]);_0x47b195['consumable'][_0x4161('0x130')](_0x3e9378['item'],_0x463f97[_0x4161('0x63')]);};_0x419a95[_0x4161('0xa3')][_0x4161('0xdd')](_0x4161('0x13f'))['add'](_0x3e6a25=>{_0x3e6a25['on']('addMarker:suggestion:formatBlock',(_0x1e9a80,_0x68e4d2,_0x4c851a)=>{_0x4c851a[_0x4161('0x92')]['showSuggestionHighlights']&&_0x4aead5({'showActiveMarkers':!0x1})(_0x1e9a80,_0x68e4d2,_0x4c851a);},{'priority':_0x4161('0x13d')});}),_0x419a95[_0x4161('0xa3')][_0x4161('0xdd')](_0x4161('0x13f'))['markerToData']({'model':_0x4161('0x68'),'view':(_0x2b7eb5,_0x30b1f6)=>_0x30b1f6[_0x4161('0x92')][_0x4161('0xbd')]?null:{'group':_0x4161('0x68'),'name':_0x2b7eb5['substr'](0xb)}}),_0x419a95['conversion']['for']('upcast')[_0x4161('0xf3')]({'view':{'name':_0x4161('0x68'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x29e30e,{writer:_0x14bf8d})=>{let _0x362dd1=_0x4161('0x84')+_0x29e30e[_0x4161('0x5b')](_0x4161('0x3e'))+':'+_0x29e30e[_0x4161('0x5b')]('id');return _0x29e30e[_0x4161('0x5b')](_0x4161('0xb'))&&(_0x362dd1+=':'+_0x29e30e[_0x4161('0x5b')](_0x4161('0xb'))),_0x14bf8d['createElement']('$marker',{'data-name':_0x362dd1});}}),_0x419a95[_0x4161('0xa3')][_0x4161('0xdd')]('upcast')[_0x4161('0x2')]({'view':_0x4161('0x68')}),_0x419a95[_0x4161('0xa3')][_0x4161('0xdd')]('editingDowncast')[_0x4161('0x9a')](_0x3166b4=>{_0x3166b4['on'](_0x4161('0x1b'),_0x4aead5(),{'priority':_0x4161('0x2c')});}),_0x419a95[_0x4161('0xa3')][_0x4161('0xdd')]('editingDowncast')['add'](_0x1eb8a2=>{_0x1eb8a2['on'](_0x4161('0x13e'),(_0xd1cc11,_0x286dae,_0x2db1cf)=>{const _0x379f57=_0x2db1cf['mapper']['markerNameToElements'](_0x286dae[_0x4161('0xf9')]);if(_0x379f57)for(const _0x33f0e2 of _0x379f57)_0x33f0e2[_0x4161('0x6c')]('addHighlight')||(_0x2db1cf[_0x4161('0xe')][_0x4161('0xcf')]([_0x4161('0x52'),_0x4161('0xf1'),_0x4161('0x9f')],_0x33f0e2),_0x2db1cf['writer'][_0x4161('0xf6')](_0x4161('0x41'),_0x33f0e2),_0x2db1cf[_0x4161('0xc6')][_0x4161('0xbb')](_0x33f0e2,_0x286dae[_0x4161('0xf9')]));},{'priority':'high'});}),_0x419a95[_0x4161('0x73')][_0x4161('0x120')][_0x4161('0x3b')](_0x25b72e=>{let _0x1b465c=!0x1;const _0x108277=Array[_0x4161('0x56')](_0x419a95[_0x4161('0x73')][_0x4161('0x120')][_0x4161('0xb8')][_0x4161('0x58')]()),_0x2ae46d=new Set();for(const {name:_0x4c0787,data:_0x56ad65}of _0x108277){const {group:_0x513782,type:_0x450a08,id:_0x21cf2c}=this[_0x4161('0x4f')](_0x4c0787);if(_0x4161('0x68')!==_0x513782)continue;const _0x42ec1=this[_0x4161('0x88')][_0x4161('0x112')](_0x21cf2c);if(null!=_0x56ad65[_0x4161('0x8e')]){'formatInline'==_0x450a08&&(_0x1b465c=_0x1b465c||Mt(_0x56ad65[_0x4161('0x8e')],_0x4c0787,_0x25b72e,_0x419a95[_0x4161('0x73')]['schema']));if(_0x56ad65[_0x4161('0x8e')][_0x4161('0x134')]||'$graveyard'==_0x56ad65[_0x4161('0x8e')][_0x4161('0x137')]['rootName']||_0x4161('0xe6')==_0x450a08&&!Nt(_0x56ad65[_0x4161('0x8e')])||_0x4161('0x95')==_0x450a08&&!(!_t(_0x4b6c81=_0x56ad65[_0x4161('0x8e')])&&!function(_0x5d3915){return _0x5d3915[_0x4161('0x38')][_0x4161('0x6')]==_0x5d3915[_0x4161('0x1a')][_0x4161('0xf2')]&&_0x5d3915[_0x4161('0x38')][_0x4161('0x6d')];}(_0x4b6c81)))_0x25b72e[_0x4161('0xe0')](_0x4c0787),_0x1b465c=!0x0;else{if(!_0x42ec1||!_0x42ec1[_0x4161('0x25')])continue;_0x2ae46d[_0x4161('0x9a')](_0x42ec1);}}}var _0x4b6c81;return _0x2ae46d[_0x4161('0x12b')]>0x0&&(_0x1b465c=!!this[_0x4161('0x75')](_0x2ae46d)||_0x1b465c),_0x1b465c;}),_0x419a95[_0x4161('0x73')][_0x4161('0x120')][_0x4161('0x3b')](_0x1c9ea4=>{let _0x2ddefe=!0x1;for(const _0x4db4a4 of _0x419a95[_0x4161('0x73')]['document']['differ']['getChanges']()){if(_0x4161('0x1f')!=_0x4db4a4[_0x4161('0xad')])continue;const _0xc01740=_0x4db4a4[_0x4161('0xb2')][_0x4161('0x10b')](_0x4db4a4['length']);if(_0xc01740[_0x4161('0x6d')])for(const _0xa7aa4c of this[_0x4161('0x88')][_0x4161('0x26')]()){if(_0xa7aa4c[_0x4161('0x7c')]||!_0xa7aa4c[_0x4161('0x25')])continue;if(_0x4161('0xe6')!=_0xa7aa4c['type'])continue;const _0x5affe7=_0xa7aa4c[_0x4161('0x4d')]();if(_0x5affe7[_0x4161('0x38')]['parent']!=_0x5affe7[_0x4161('0x1a')][_0x4161('0x6')]&&_0x5affe7[_0x4161('0x1a')]['isEqual'](_0x4db4a4[_0x4161('0xb2')])){const _0x2386a9=_0x419a95['model'][_0x4161('0x8d')](_0x5affe7[_0x4161('0x38')],_0xc01740);_0x1c9ea4[_0x4161('0x123')](_0xa7aa4c[_0x4161('0x40')](),{'range':_0x2386a9}),_0x2ddefe=!0x0;}}}return _0x2ddefe;}),_0x419a95[_0x4161('0x73')]['markers']['on']('update:suggestion',(_0x5ec32f,_0x5a4f1b,_0x16db06)=>{if(null==_0x16db06){const {id:_0xa4074f}=this[_0x4161('0x4f')](_0x5a4f1b[_0x4161('0x63')]),_0x4e190f=this[_0x4161('0x88')][_0x4161('0x112')](_0xa4074f);_0x4e190f&&_0x4e190f[_0x4161('0x118')](_0x5a4f1b[_0x4161('0x63')]);}}),_0x419a95[_0x4161('0x73')]['document']['on'](_0x4161('0x4e'),()=>{const _0x2fc7a8=Array[_0x4161('0x56')](_0x419a95['model'][_0x4161('0x120')][_0x4161('0xb8')][_0x4161('0x58')]())[_0x4161('0xf0')](_0x4656b4=>_0x4161('0x68')===this[_0x4161('0x4f')](_0x4656b4[_0x4161('0x63')])[_0x4161('0x93')]);if(0x0===_0x2fc7a8[_0x4161('0xf5')])return;_0x2fc7a8['sort']((_0x1d703d,_0x59aafa)=>{const _0x5be2ac=_0x1d703d[_0x4161('0x100')][_0x4161('0xaa')],_0x42ad16=_0x59aafa[_0x4161('0x100')][_0x4161('0xaa')];return null===_0x5be2ac&&null===_0x42ad16?0x0:null===_0x5be2ac&&null!==_0x42ad16?-0x1:null!==_0x5be2ac&&null===_0x42ad16?0x1:_0x5be2ac[_0x4161('0x38')][_0x4161('0x128')](_0x42ad16['start'])?-0x1:0x1;});const _0x834438=new Set(),_0x2cf5b1=new Set();for(const {name:_0xd95382,data:_0x136c2e}of _0x2fc7a8){const {id:_0x22a2d8}=this[_0x4161('0x4f')](_0xd95382);if(null===_0x136c2e['oldRange']){const _0x421cdf=this[_0x4161('0x2d')](_0xd95382);_0x2cf5b1[_0x4161('0x9a')](_0x421cdf);}else{const _0x30c0fb=this[_0x4161('0x88')][_0x4161('0x112')](_0x22a2d8);null!==_0x136c2e[_0x4161('0x8e')]||_0x30c0fb['isInContent']?(_0x834438[_0x4161('0x9a')](_0x30c0fb[_0x4161('0xd8')]),_0x2cf5b1[_0x4161('0x9a')](_0x30c0fb)):this[_0x4161('0xdf')](_0x30c0fb);}}_0x2cf5b1[_0x4161('0x12b')]>0x0&&this[_0x4161('0x7d')](_0x2cf5b1);for(const _0xf2767 of _0x834438)this[_0x4161('0x31')](_0x4161('0xce'),_0xf2767);}),_0x419a95['model']['on']('applyOperation',(_0x558e20,_0x5ec7ab)=>{const _0x5eb3ce=_0x5ec7ab[0x0];if(!this['_suggestions'][_0x4161('0x12b')])return;if(!_0x5eb3ce[_0x4161('0xd2')])return;if(_0x5eb3ce[_0x4161('0x85')][_0x4161('0x11e')]||!_0x5eb3ce[_0x4161('0x85')][_0x4161('0x76')])return;let _0x10c520,_0x50dbda;switch(_0x5eb3ce[_0x4161('0xad')]){case _0x4161('0x1f'):_0x10c520=_0x419a95[_0x4161('0x73')]['createPositionAt'](_0x5eb3ce[_0x4161('0xb2')]),_0x50dbda=_0x10c520[_0x4161('0x10b')](_0x5eb3ce[_0x4161('0xb5')]);break;case _0x4161('0xc2'):_0x10c520=_0x419a95[_0x4161('0x73')][_0x4161('0xd4')](_0x5eb3ce[_0x4161('0xe9')]),_0x50dbda=_0x419a95['model']['createPositionAt'](_0x5eb3ce[_0x4161('0xcd')]);break;case'move':_0x10c520=_0x419a95['model']['createPositionAt'](_0x5eb3ce[_0x4161('0x97')]),_0x50dbda=_0x10c520[_0x4161('0x10b')](_0x5eb3ce[_0x4161('0xb5')]);break;default:return;}const _0xcad334=_0x419a95[_0x4161('0x73')][_0x4161('0x8d')](_0x10c520,_0x50dbda);_0x419a95[_0x4161('0x73')][_0x4161('0x50')](()=>{for(const {suggestion:_0x1eeb2d,meta:_0x4708d4}of this['_findSuggestions'](_0xcad334)){if(_0x1eeb2d[_0x4161('0x7c')])continue;if(_0x4161('0xbc')==_0x1eeb2d[_0x4161('0xad')])continue;const _0x312289=_0x1eeb2d['data']&&_0x1eeb2d[_0x4161('0x100')][_0x4161('0x124')];(_0x4161('0xe6')!=_0x1eeb2d[_0x4161('0xad')]||'split'==_0x5eb3ce[_0x4161('0xad')]&&!_0x312289)&&(_0x4708d4[_0x4161('0xf4')]||_0x4161('0x78')==_0x1eeb2d['type']&&_0x4708d4[_0x4161('0xaf')]||_0x1eeb2d[_0x4161('0x4d')]()['containsRange'](_0xcad334)&&this[_0x4161('0x81')](_0x1eeb2d,_0x10c520,_0x50dbda));}});},{'priority':'lowest'}),_0x419a95[_0x4161('0x73')]['on'](_0x4161('0x5a'),(_0x5eade6,_0x360ed4)=>{const _0x337c10=_0x360ed4[0x0],_0x3d2813=_0x360ed4[0x1];if(_0x3d2813&&_0x3d2813['forceDefaultExecution'])return;if(this[_0x4161('0x51')])return;if(!this[_0x4161('0xf7')][_0x4161('0x6e')])return;if(_0x337c10[_0x4161('0x134')])return;const _0x2fd49f=_0x419a95[_0x4161('0x73')][_0x4161('0xe8')],{start:_0x4b052b,end:_0x16e7f8}=_0x337c10[_0x4161('0x4d')](),_0x414bea=_0x4b052b['nodeAfter']&&_0x2fd49f[_0x4161('0x138')](_0x4b052b[_0x4161('0xd7')])?null:_0x2fd49f[_0x4161('0x5')](_0x4b052b,_0x4161('0x131')),_0x58bdad=_0x16e7f8['nodeBefore']&&_0x2fd49f[_0x4161('0x138')](_0x16e7f8[_0x4161('0xf2')])?null:_0x2fd49f['getNearestSelectionRange'](_0x16e7f8,_0x4161('0x1c')),_0x4465fe=_0x419a95['model'][_0x4161('0x8d')](_0x414bea?_0x414bea['start']:_0x4b052b,_0x58bdad?_0x58bdad[_0x4161('0x1a')]:_0x16e7f8);_0x419a95[_0x4161('0x73')][_0x4161('0x50')](_0x47ef33=>{this[_0x4161('0x109')](_0x4465fe);const _0x4d34b2=_0x419a95[_0x4161('0x73')]['schema'][_0x4161('0x5')](_0x4465fe[_0x4161('0x38')]);_0x337c10['is'](_0x4161('0xee'))?_0x47ef33[_0x4161('0x13c')](_0x4d34b2):_0x337c10[_0x4161('0x46')](_0x4d34b2);}),_0x5eade6[_0x4161('0x1')]();},{'priority':_0x424fa5['normal']+0xa}),_0x419a95[_0x4161('0x73')]['on'](_0x4161('0x13b'),(_0x52801f,_0x40e787)=>{const _0x2b0a70=_0x40e787[_0x40e787[_0x4161('0xf5')]-0x1];_0x2b0a70&&_0x2b0a70[_0x4161('0x6b')]||this[_0x4161('0x51')]||this[_0x4161('0xf7')]['value']&&(_0x419a95[_0x4161('0x73')][_0x4161('0x50')](()=>{let _0x445993=_0x419a95[_0x4161('0x73')][_0x4161('0x13b')](_0x40e787[0x0],_0x40e787[0x1],_0x40e787[0x2],{'forceDefaultExecution':!0x0});if(!_0x445993)return;_0x52801f[_0x4161('0x71')]=_0x445993[_0x4161('0x3a')]();const _0x5b7bae=_0x445993[_0x4161('0x1a')][_0x4161('0xf2')],_0xc4434a=_0x419a95['model'][_0x4161('0xe8')];_0x5b7bae&&_0xc4434a['isBlock'](_0x5b7bae)&&!_0xc4434a[_0x4161('0x6a')](_0x5b7bae)&&(_0x445993=_0x419a95[_0x4161('0x73')][_0x4161('0x8d')](_0x445993[_0x4161('0x38')],_0x419a95[_0x4161('0x73')][_0x4161('0xd4')](_0x5b7bae,_0x4161('0x1a')))),this[_0x4161('0x119')](_0x445993);}),_0x52801f[_0x4161('0x1')]());},{'priority':_0x4161('0x2c')}),this[_0x4161('0x133')][_0x4161('0xb3')][_0x4161('0x9a')](_0x4161('0x39'),this[_0x4161('0xf7')]),this[_0x4161('0xb6')](_0x4161('0x39'));const _0x4025b7=new _0x104a5f(_0x419a95,this[_0x4161('0x88')]);_0x419a95[_0x4161('0xb3')]['add'](_0x4161('0x5f'),_0x4025b7),this[_0x4161('0xb6')](_0x4161('0x5f'));const _0x29b5d0=new _0x4900c1(_0x419a95,this[_0x4161('0x88')]);_0x419a95[_0x4161('0xb3')][_0x4161('0x9a')](_0x4161('0xe4'),_0x29b5d0),this[_0x4161('0xb6')]('discardSuggestion'),_0x419a95[_0x4161('0xb3')][_0x4161('0x9a')](_0x4161('0x141'),new _0x1e0e73(_0x419a95,_0x4025b7,this[_0x4161('0x88')])),this[_0x4161('0xb6')](_0x4161('0x141')),_0x419a95['commands'][_0x4161('0x9a')](_0x4161('0xfd'),new _0x1e0e73(_0x419a95,_0x29b5d0,this[_0x4161('0x88')])),this['enableCommand'](_0x4161('0xfd')),_0x419a95['commands'][_0x4161('0x9a')](_0x4161('0x6f'),new _0x3fca38(_0x419a95,_0x4025b7,this[_0x4161('0x88')])),this[_0x4161('0xb6')](_0x4161('0x6f')),_0x419a95['commands'][_0x4161('0x9a')]('discardSelectedSuggestions',new _0x3fca38(_0x419a95,_0x29b5d0,this[_0x4161('0x88')])),this['enableCommand'](_0x4161('0x37'));const _0x511152=_0x419a95[_0x4161('0xc1')][_0x4161('0x112')](_0x4161('0xc9'));this[_0x4161('0x11')](_0x511152,_0x4161('0xa4'),(_0x2f85b2,{threadId:_0x11d70b})=>{const _0x545bb7=this[_0x4161('0x88')]['get'](_0x11d70b);_0x545bb7&&_0x545bb7[_0x4161('0x12')]&&0x1===_0x545bb7[_0x4161('0x12')][_0x4161('0xf5')]&&this[_0x4161('0x2b')](_0x11d70b,{'hasComments':!0x0});},{'priority':_0x4161('0x32')}),this[_0x4161('0x11')](_0x511152,_0x4161('0x14'),(_0x3e6bdb,{threadId:_0x360004})=>{const _0x4ee261=this[_0x4161('0x88')][_0x4161('0x112')](_0x360004);_0x4ee261&&_0x4ee261[_0x4161('0x12')]&&!_0x4ee261[_0x4161('0x12')][_0x4161('0xf5')]&&this[_0x4161('0x2b')](_0x360004,{'hasComments':!0x1});},{'priority':'low'});}set[_0x4161('0x125')](_0x397cf9){if(this[_0x4161('0x0')])throw new _0x5390d2(_0x4161('0x1d'),this);this[_0x4161('0x0')]=_0x397cf9;}get[_0x4161('0x125')](){return this[_0x4161('0x0')];}[_0x4161('0xa7')]({skipNotAttached:_0x292e95=!0x1,toJSON:_0x5b809a=!0x1}={}){const _0x3e984d=[];for(const _0x464210 of this['_suggestions'][_0x4161('0x26')]())_0x292e95&&!_0x464210['isInContent']||_0x3e984d[_0x4161('0xea')](_0x464210);return _0x5b809a?_0x3e984d['map'](_0x12a50b=>_0x12a50b[_0x4161('0xdc')]()):_0x3e984d;}[_0x4161('0xc5')](_0x1cfa65){const _0x366a92=this[_0x4161('0x88')]['get'](_0x1cfa65);if(!_0x366a92)throw new _0x5390d2(_0x4161('0x74'),this);return _0x366a92;}['hasSuggestion'](_0x4c89cb){return this[_0x4161('0x88')][_0x4161('0x62')](_0x4c89cb);}['addSuggestionData'](_0x3e083b){const {authorId:_0x205c37,id:_0x50abab,attributes:_0x3a181b}=_0x3e083b,[_0x5ab9d4,_0x84e118]=_0x3e083b[_0x4161('0xad')][_0x4161('0xc2')](':'),_0x163fae=this[_0x4161('0x88')][_0x4161('0x112')](_0x50abab)||this[_0x4161('0x23')](_0x5ab9d4,_0x84e118,_0x50abab,_0x205c37,_0x3a181b);if(this[_0x4161('0x80')](_0x163fae),this[_0x4161('0x20')](_0x163fae,_0x5ab9d4,_0x84e118||null,_0x205c37),_0x163fae[_0x4161('0x104')]=_0x3e083b[_0x4161('0x104')],_0x163fae[_0x4161('0xd5')]=!0x0,_0x3a181b&&_0x3a181b[_0x4161('0x132')]){const _0x47a435=_0x3a181b[_0x4161('0x132')],_0x5c113a=this[_0x4161('0x47')](_0x47a435[_0x4161('0xbe')]);_0x163fae[_0x4161('0x61')]=_0x47a435['createdAt'],_0x163fae[_0x4161('0x79')]=_0x5c113a,_0x163fae[_0x4161('0x12f')]=!0x0;}else _0x163fae[_0x4161('0x61')]=_0x3e083b['createdAt'];switch(_0x3e083b['data']&&(_0x163fae['data']=_0x3e083b[_0x4161('0x100')]),_0x3e083b['attributes']&&(_0x163fae['attributes']=_0x3e083b[_0x4161('0x94')]),this['_adapter']&&this[_0x4161('0x0')][_0x4161('0x11b')]||(_0x163fae[_0x4161('0x89')]=!0x0),this[_0x4161('0x9b')][_0x4161('0x112')](_0x163fae)){case'notReady':this[_0x4161('0x9b')][_0x4161('0xc3')](_0x163fae,_0x4161('0x43'));break;case'markerReady':_0x163fae[_0x4161('0x25')]?(this[_0x4161('0x7d')](new Set([_0x163fae])),this[_0x4161('0x75')](new Set([_0x163fae])),this[_0x4161('0x9b')][_0x4161('0xc3')](_0x163fae,'ready'),this[_0x4161('0x31')](_0x4161('0xa'),_0x163fae)):this['_suggestionState'][_0x4161('0xc3')](_0x163fae,_0x4161('0x115'));}return _0x163fae;}[_0x4161('0x5f')](_0x30eef4){this[_0x4161('0x6b')](()=>{this[_0x4161('0x133')]['model']['change'](()=>{for(const _0x28f1e7 of _0x30eef4['getAllAdjacentSuggestions']())_0x28f1e7[_0x4161('0x136')]();});});}[_0x4161('0xe4')](_0x1b98d7){this[_0x4161('0x6b')](()=>{this[_0x4161('0x133')][_0x4161('0x73')][_0x4161('0x50')](()=>{for(const _0x48d61b of _0x1b98d7[_0x4161('0x22')]())_0x48d61b[_0x4161('0x8c')]();});});}[_0x4161('0xb6')](_0x488ea6,_0xb5086){const _0x4fc1cf=this[_0x4161('0x133')]['commands']['get'](_0x488ea6);if(!_0x4fc1cf)throw new _0x5390d2('track-changes-command-not-found',this,{'commandName':_0x488ea6});this[_0x4161('0xdb')][_0x4161('0x9a')](_0x4fc1cf),_0xb5086&&_0x4fc1cf['on'](_0x4161('0x102'),(_0x4ca582,_0x1c5102)=>{this[_0x4161('0xf7')]['value']&&(this[_0x4161('0x51')]||_0x1c5102['length']>0x0&&_0x1c5102[_0x1c5102['length']-0x1]&&_0x1c5102[_0x1c5102[_0x4161('0xf5')]-0x1][_0x4161('0x6b')]||(_0xb5086((..._0x4fb796)=>_0x4fc1cf['execute'](..._0x4fb796,{'forceDefaultExecution':!0x0}),..._0x1c5102),_0x4ca582[_0x4161('0x1')]()));},{'priority':_0x4161('0x2c')});}[_0x4161('0x6b')](_0x22848f){let _0x3d093b,_0x3bcd34;const _0x4044c2=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3d093b=_0x22848f();}catch(_0x49cbb8){_0x3bcd34=_0x49cbb8;}return _0x4044c2||(this[_0x4161('0x51')]=!0x1),_0x3bcd34&&_0x5390d2[_0x4161('0x35')](_0x3bcd34,this),_0x3d093b;}[_0x4161('0x119')](_0x3c3e29,_0x32827c=null,_0x133cd3={}){if(_0x3c3e29[_0x4161('0x134')])return null;const _0x3ed5f1=this['editor'][_0x4161('0xc1')]['get'](_0x4161('0x7a'))['me'];for(const {suggestion:_0x47d6b4,meta:_0xd2b2fa}of this['_findSuggestions'](_0x3c3e29,_0x4161('0x78')))if(_0xd2b2fa[_0x4161('0xaf')]){if(!_0xd2b2fa['isNextTo']){if(_0xd2b2fa['containsRangeInObject']){if(!this[_0x4161('0xd1')]||!Ut(_0x47d6b4,_0x133cd3))continue;return _0x47d6b4;}if(Ut(_0x47d6b4,_0x133cd3))return _0x47d6b4;this[_0x4161('0x81')](_0x47d6b4,_0x3c3e29[_0x4161('0x38')],_0x3c3e29[_0x4161('0x1a')]);break;}if(_0x32827c==_0x47d6b4['subType']&&Ut(_0x47d6b4,_0x133cd3)){const _0xbb046c=_0x47d6b4['getFirstRange']();return _0xbb046c[_0x4161('0x38')][_0x4161('0xe3')](_0x3c3e29['end'])?this[_0x4161('0x45')](_0x47d6b4,this[_0x4161('0x106')][_0x4161('0x8d')](_0x3c3e29[_0x4161('0x38')],_0xbb046c[_0x4161('0x1a')])):this['_setSuggestionRange'](_0x47d6b4,this[_0x4161('0x106')][_0x4161('0x8d')](_0xbb046c[_0x4161('0x38')],_0x3c3e29[_0x4161('0x1a')])),_0x47d6b4;}}const _0x48e6df=_0x49c084(),_0x23ca8c=_0x3ed5f1['id'],_0x287fb0=_0x32827c?_0x4161('0xb0')+_0x32827c:_0x4161('0x78'),_0x1a2b4d=this[_0x4161('0xe5')]({'id':_0x48e6df,'type':_0x287fb0,'createdAt':new Date(),'authorId':_0x23ca8c,'attributes':_0x133cd3});return this[_0x4161('0x105')](_0x287fb0,_0x48e6df,_0x23ca8c,_0x3c3e29),_0x1a2b4d;}['markMultiRangeInsertion'](_0x49f0ba,_0x533993=_0x4161('0x111'),_0x536a3c={}){const _0x4109d8=this[_0x4161('0x133')][_0x4161('0xc1')][_0x4161('0x112')]('Users')['me'],_0xd2bab0=this[_0x4161('0xda')]['getSuggestionCallback'](_0x4161('0x78'),_0x533993,_0x4161('0x83'));for(const _0x4f4bb8 of this[_0x4161('0xa7')]())if(_0x4f4bb8['author']['id']==_0x4109d8['id']&&_0x4161('0x78')==_0x4f4bb8['type']&&_0x4f4bb8[_0x4161('0x28')]==_0x533993&&Ut(_0x4f4bb8,_0x536a3c)&&(_0xd2bab0(_0x4f4bb8['getRanges'](),_0x49f0ba)||_0xd2bab0(_0x49f0ba,_0x4f4bb8[_0x4161('0x69')]()))){for(const _0x281b1f of _0x49f0ba)_0x4f4bb8['addRange'](_0x281b1f);return _0x4f4bb8;}for(const {suggestion:_0x4bb771,meta:_0x5dad0c}of this[_0x4161('0x27')](_0x49f0ba,'insertion')){if(!_0x5dad0c[_0x4161('0xaf')])continue;if(!this[_0x4161('0xd1')]&&_0x5dad0c[_0x4161('0xf4')])continue;if(!Ut(_0x4bb771,_0x536a3c))continue;let _0x4ee2ab=!0x0;for(const _0x5be489 of _0x4bb771[_0x4161('0x69')]())for(const _0x12ed4b of _0x49f0ba)if(!_0x5be489[_0x4161('0x3c')](_0x12ed4b)){_0x4ee2ab=!0x1;break;}if(_0x4ee2ab)return _0x4bb771;}const _0x5cc17e=_0x49c084(),_0x54e557=_0x4109d8['id'],_0x14408a=_0x4161('0xb0')+_0x533993,_0x4563fb=this[_0x4161('0xe5')]({'id':_0x5cc17e,'type':_0x14408a,'createdAt':new Date(),'authorId':_0x54e557,'attributes':_0x536a3c});for(const _0x46bff6 of _0x49f0ba)this[_0x4161('0x105')](_0x14408a,_0x5cc17e,_0x54e557,_0x46bff6,_0x2170bb[_0x4161('0xa9')]());return _0x4563fb;}[_0x4161('0x48')](_0x4b38eb,_0x132eab,_0x187965=null,_0x3a6bad={}){if(_0x187965=_0x187965||$t(_0x132eab),_0x4b38eb['isCollapsed'])return null;if(_0x4161('0x82')===this[_0x4161('0x114')]){const _0x173153=this[_0x4161('0xda')][_0x4161('0xe1')](_0x4161('0xbc'),_0x187965,_0x4161('0x136'));return this[_0x4161('0x6b')](()=>_0x173153([_0x4b38eb],_0x132eab,_0x3a6bad)),null;}const _0x3dd88b=this[_0x4161('0x133')][_0x4161('0xc1')]['get'](_0x4161('0x7a'))['me'],_0x5ba4c7=[];if(_0x4161('0xcc')!==this[_0x4161('0x114')])for(const {suggestion:_0x5d431a,meta:_0x3d8895}of this[_0x4161('0x27')](_0x4b38eb,_0x4161('0x78')))_0x3d8895[_0x4161('0xaf')]&&!_0x3d8895[_0x4161('0xba')]&&_0x5ba4c7[_0x4161('0xea')](..._0x5d431a[_0x4161('0x69')]());const _0x4453fc=function(_0x22aefd,_0x35b3c6){const _0x3dace6=[];for(const _0x37bc2d of _0x35b3c6){const _0xcecc32=_0x22aefd[_0x4161('0x12d')](_0x37bc2d);_0xcecc32&&_0x3dace6[_0x4161('0xea')](_0xcecc32);}return _0x3dace6;}(_0x4b38eb,_0x5ba4c7),_0x4f3773=function(_0x5eb514,_0x118648){const _0x2df66e=[_0x5eb514];for(const _0xb12ffb of _0x118648){let _0x82b358=0x0;for(;_0x82b358<_0x2df66e[_0x4161('0xf5')];){const _0x32b41c=_0x2df66e[_0x82b358][_0x4161('0x70')](_0xb12ffb);_0x2df66e[_0x4161('0x12c')](_0x82b358,0x1,..._0x32b41c),_0x82b358+=_0x32b41c[_0x4161('0xf5')];}}return _0x2df66e;}(_0x4b38eb,_0x5ba4c7);_0x4453fc['length']&&this['_model'][_0x4161('0x50')](()=>{for(const _0x1f9b6a of _0x4453fc){const _0x407d2d=this[_0x4161('0xda')]['getSuggestionCallback'](_0x4161('0xbc'),_0x187965,_0x4161('0x136'));this[_0x4161('0x6b')](()=>_0x407d2d([_0x1f9b6a],_0x132eab,_0x3a6bad));}});for(const _0x4c91f7 of _0x4f3773){let _0x96d60b=null,_0x1e8396=_0x4c91f7[_0x4161('0x38')],_0x3256b9=_0x4c91f7[_0x4161('0x1a')];for(const {suggestion:_0x2f7e0a,meta:_0xfc3276}of this[_0x4161('0x27')](_0x4c91f7,_0x4161('0xbc'))){if(!_0xfc3276[_0x4161('0xaf')])continue;if(_0x2f7e0a['subType']!=_0x187965)continue;if(!Ut(_0x2f7e0a,_0x3a6bad))continue;const _0x312079=_0x2f7e0a[_0x4161('0x4d')]();if(_0x312079[_0x4161('0x3c')](_0x4c91f7,!0x0))return null;_0x1e8396=_0x1e8396[_0x4161('0x128')](_0x312079['start'])?_0x1e8396:_0x312079[_0x4161('0x38')],_0x3256b9=_0x3256b9[_0x4161('0x110')](_0x312079[_0x4161('0x1a')])?_0x3256b9:_0x312079[_0x4161('0x1a')],_0x96d60b?_0x312079['start'][_0x4161('0x128')](_0x96d60b['getFirstRange']()[_0x4161('0x38')])?(_0x96d60b['removeMarkers'](),_0x96d60b=_0x2f7e0a):_0x2f7e0a['removeMarkers']():_0x96d60b=_0x2f7e0a;}const _0x7f4a36=this[_0x4161('0x106')][_0x4161('0x8d')](_0x1e8396,_0x3256b9);if(_0x96d60b)this['_setSuggestionRange'](_0x96d60b,_0x7f4a36);else{const _0x5bbc82=_0x49c084(),_0xacd9c6=_0x3dd88b['id'];this[_0x4161('0xe5')]({'id':_0x5bbc82,'type':_0x4161('0x67')+_0x187965,'data':_0x132eab,'createdAt':new Date(),'authorId':_0xacd9c6,'attributes':_0x3a6bad}),this['_addSuggestionMarker'](_0x4161('0x67')+_0x187965,_0x5bbc82,_0xacd9c6,_0x7f4a36);}}return null;}[_0x4161('0xcb')](_0x2ab161,_0x96c58a,_0xcb035a=[],_0x200e7b=null,_0x3cf420={}){_0x96c58a[_0x4161('0x3')]||(_0x96c58a[_0x4161('0x3')]=_0x96c58a['commandName']),_0x96c58a[_0x4161('0x124')]=_0x2ab161['is'](_0x4161('0xd6')),_0x200e7b=_0x200e7b||$t(_0x96c58a);const _0x56738e=_0xcb035a[_0x4161('0xa0')](_0x22bc9a=>Rt(_0x22bc9a,this[_0x4161('0x106')])),_0x42a014=_0x2ab161['is'](_0x4161('0xd6'))?_0x2ab161:Rt(_0x2ab161,this[_0x4161('0x106')]);if('never'===this[_0x4161('0x114')]){const _0x142f9d=this['_suggestionFactory'][_0x4161('0xe1')](_0x4161('0xe6'),_0x200e7b,_0x4161('0x136'));return this[_0x4161('0x6b')](()=>_0x142f9d([_0x42a014],_0x96c58a,_0x3cf420)),null;}_0x56738e['push'](_0x42a014);let _0x68054b=!0x0;for(const _0x21457f of _0x56738e)if(!this[_0x4161('0xc4')](_0x21457f)){_0x68054b=!0x1;break;}if(_0x68054b&&_0x4161('0xcc')!==this[_0x4161('0x114')]){const _0x2a8005=this[_0x4161('0xda')][_0x4161('0xe1')](_0x4161('0xe6'),_0x200e7b,_0x4161('0x136'));return this[_0x4161('0x6b')](()=>_0x2a8005([_0x42a014],_0x96c58a,_0x3cf420)),null;}let _0x34e529=null,_0x1102f1=_0x42a014[_0x4161('0x38')],_0x3accc3=_0x42a014['end'];for(const {suggestion:_0xb42178,meta:_0x2151d2}of this['_findSuggestions'](_0x42a014,_0x4161('0xe6'))){if(!_0x2151d2[_0x4161('0xaf')])continue;if(_0x2151d2[_0x4161('0x129')]||_0x2151d2[_0x4161('0xf4')]||_0x2151d2[_0x4161('0xba')])continue;if(_0xb42178[_0x4161('0x100')]['formatGroupId']!=_0x96c58a[_0x4161('0x3')])continue;if(!Ut(_0xb42178,_0x3cf420))continue;const _0x4aa311=_0xb42178['getFirstRange']();if(_0xb42178[_0x4161('0x28')]==_0x200e7b){if(_0x4aa311[_0x4161('0x3c')](_0x42a014,!0x0))return null;_0x1102f1=_0x1102f1['isBefore'](_0x4aa311[_0x4161('0x38')])?_0x1102f1:_0x4aa311[_0x4161('0x38')],_0x3accc3=_0x3accc3[_0x4161('0x110')](_0x4aa311[_0x4161('0x1a')])?_0x3accc3:_0x4aa311[_0x4161('0x1a')],_0x34e529?_0x4aa311[_0x4161('0x38')]['isBefore'](_0x34e529['getFirstRange']()[_0x4161('0x38')])?(_0x34e529['removeMarkers'](),_0x34e529=_0xb42178):_0xb42178['removeMarkers']():_0x34e529=_0xb42178;}else{const _0x58ffe6=_0x42a014[_0x4161('0x12d')](_0x4aa311);this[_0x4161('0x90')](_0xb42178,_0x58ffe6);}}const _0x412996=this['editor'][_0x4161('0xc1')][_0x4161('0x112')](_0x4161('0x7a'))['me'],_0x317740=_0x49c084(),_0x2f1a31=_0x412996['id'];if(_0x34e529)return this[_0x4161('0x45')](_0x34e529,this[_0x4161('0x106')]['createRange'](_0x1102f1,_0x3accc3)),_0x34e529;{const _0x2ee92e=this[_0x4161('0xe5')]({'id':_0x317740,'type':_0x4161('0x10d')+_0x200e7b,'data':_0x96c58a,'createdAt':new Date(),'authorId':_0x2f1a31,'attributes':_0x3cf420});return this['_addSuggestionMarker'](_0x4161('0x10d')+_0x200e7b,_0x317740,_0x2f1a31,this[_0x4161('0x106')][_0x4161('0x8d')](_0x1102f1,_0x3accc3)),_0x2ee92e;}}[_0x4161('0x98')](_0x3fafab,_0x3cd781,_0x5addf6=[],_0x32e14b=null,_0x153760={}){_0x3cd781[_0x4161('0x3')]||(_0x3cd781[_0x4161('0x3')]=_0x3cd781[_0x4161('0xa2')]);const _0x485f44=_0x3fafab[0x0];_0x3cd781[_0x4161('0x124')]=_0x485f44['is'](_0x4161('0xd6')),_0x32e14b=_0x32e14b||$t(_0x3cd781);const _0x5e68a8=_0x5addf6[_0x4161('0xa0')](_0x380903=>Rt(_0x380903,this[_0x4161('0x106')])),_0xd01eec=_0x485f44['is']('range')?_0x3fafab:_0x3fafab[_0x4161('0xa0')](_0x302ef0=>Rt(_0x302ef0,this['_model']));if('never'===this[_0x4161('0x114')]){const _0xb469aa=this[_0x4161('0xda')]['getSuggestionCallback'](_0x4161('0xe6'),_0x32e14b,_0x4161('0x136'));return this[_0x4161('0x6b')](()=>_0xb469aa(_0xd01eec,_0x3cd781,_0x153760)),null;}_0x5e68a8['push'](..._0xd01eec);let _0x541b62=!0x0;for(const _0x524625 of _0x5e68a8)if(!this[_0x4161('0xc4')](_0x524625)){_0x541b62=!0x1;break;}if(_0x541b62&&_0x4161('0xcc')!==this[_0x4161('0x114')]){const _0x4b4a98=this[_0x4161('0xda')][_0x4161('0xe1')]('formatBlock',_0x32e14b,'accept');return this[_0x4161('0x6b')](()=>_0x4b4a98(_0xd01eec,_0x3cd781,_0x153760)),null;}const _0x87a293=this[_0x4161('0x133')][_0x4161('0xc1')][_0x4161('0x112')]('Users')['me'];for(const _0x10578e of this[_0x4161('0xa7')]()){if(_0x10578e[_0x4161('0x79')]['id']!=_0x87a293['id'])continue;if(_0x4161('0xe6')!=_0x10578e[_0x4161('0xad')]||_0x10578e[_0x4161('0x100')][_0x4161('0x3')]!=_0x3cd781[_0x4161('0x3')])continue;if(!Ut(_0x10578e,_0x153760))continue;const _0x4bb5fd=_0x10578e[_0x4161('0x28')]==_0x32e14b;for(let _0x4a373c=0x0;_0x4a373c<_0xd01eec[_0x4161('0xf5')];_0x4a373c++){const _0x58aafc=_0xd01eec[_0x4a373c];for(const _0x4b3440 of _0x10578e[_0x4161('0x53')]()){const _0x48ef68=_0x4b3440['getRange']();if(_0x58aafc[_0x4161('0xe3')](_0x48ef68)){_0x4bb5fd?(_0xd01eec[_0x4161('0x12c')](_0x4a373c,0x1),_0x4a373c--):_0x10578e['removeMarker'](_0x4b3440[_0x4161('0x63')]);break;}}}}if(0x0==_0xd01eec[_0x4161('0xf5')])return null;const _0x1c87b0=this[_0x4161('0xda')][_0x4161('0xe1')](_0x4161('0xe6'),_0x32e14b,'join');for(const _0x507342 of this[_0x4161('0xa7')]())if(_0x507342[_0x4161('0x79')]['id']==_0x87a293['id']&&_0x4161('0xe6')==_0x507342[_0x4161('0xad')]&&_0x507342[_0x4161('0x100')]['formatGroupId']==_0x3cd781[_0x4161('0x3')]&&_0x507342['subType']==_0x32e14b&&Ut(_0x507342,_0x153760)&&(_0x1c87b0(_0x507342['getRanges'](),_0xd01eec)||_0x1c87b0(_0xd01eec,_0x507342[_0x4161('0x69')]()))){for(const _0x1c65ae of _0xd01eec)_0x507342[_0x4161('0x103')](_0x1c65ae);return _0x507342;}const _0xdf9ba2=_0x49c084(),_0x3804b3=_0x87a293['id'],_0x6ffbfb=_0x4161('0x10d')+_0x32e14b,_0x2b4aa8=this[_0x4161('0xe5')]({'id':_0xdf9ba2,'type':_0x6ffbfb,'data':_0x3cd781,'createdAt':new Date(),'authorId':_0x3804b3,'attributes':_0x153760});for(const _0x4270e9 of _0xd01eec)this[_0x4161('0x105')](_0x6ffbfb,_0xdf9ba2,_0x3804b3,_0x4270e9,_0x2170bb[_0x4161('0xa9')]());return _0x2b4aa8;}['markDeletion'](_0x1b7467,_0x2d6b10=null,_0x182859={}){if(_0x1b7467[_0x4161('0x134')])return null;const _0x500e11=this[_0x4161('0x133')]['plugins'][_0x4161('0x112')](_0x4161('0x7a'))['me'],_0x489bf0=new _0x4ccb35(_0x1b7467['start'],_0x1b7467['end']);for(const {suggestion:_0x263ac1,meta:_0x2e725e}of this[_0x4161('0x27')](_0x489bf0,_0x4161('0x78')))if(_0x2e725e[_0x4161('0xaf')]&&!_0x2e725e['isNextTo']){if(_0x263ac1['isMultiRange']){const _0x334ae0=_0x263ac1[_0x4161('0x69')]()[_0x4161('0xf0')](_0x59d604=>_0x4161('0x135')!=_0x59d604['root'][_0x4161('0x15')]);_0x334ae0['every'](_0x5d8997=>_0x489bf0[_0x4161('0x3c')](_0x5d8997,!0x0))&&_0x263ac1[_0x4161('0x8c')]();if(_0x334ae0[_0x4161('0x87')](_0x58829f=>_0x58829f['containsRange'](_0x489bf0,!0x0))){const _0x33905b=this['_suggestionFactory']['getSuggestionCallback'](_0x4161('0x95'),_0x2d6b10,'accept');return this[_0x4161('0x6b')](()=>_0x33905b([_0x489bf0],null,_0x182859)),null;}}else{const _0x5a4da3=_0x489bf0[_0x4161('0x12d')](_0x263ac1[_0x4161('0x4d')]());null!==_0x5a4da3&&_0x263ac1[_0x4161('0x57')]([_0x5a4da3],null,_0x182859);}}if(_0x489bf0[_0x4161('0x64')](),_0x489bf0[_0x4161('0x134')]||_0x4161('0x135')==_0x489bf0[_0x4161('0x137')][_0x4161('0x15')])return null;let _0xce28c5=null,_0x22ef88=_0x489bf0['start'],_0xa86ec1=_0x489bf0[_0x4161('0x1a')];const _0x294645=this[_0x4161('0x27')](_0x489bf0,_0x4161('0x95'));for(const {suggestion:_0x5696a2,meta:_0x2e44da}of _0x294645){const _0x47e4ce=this[_0x4161('0x106')][_0x4161('0x8d')](_0x22ef88,_0xa86ec1);if(_0x2e44da[_0x4161('0xaf')]&&(this[_0x4161('0xd1')]||!_0x2e44da[_0x4161('0xf4')]&&!_0x2e44da['isInsideObject'])){if(_0x5696a2[_0x4161('0x7c')]){if(!Ut(_0x5696a2,_0x182859))continue;let _0x26ba7a=!0x0;for(const _0x39b70c of _0x5696a2['getRanges']()){if(_0x39b70c[_0x4161('0x3c')](_0x47e4ce,!0x0))return _0x5696a2;_0x47e4ce[_0x4161('0x3c')](_0x39b70c)||(_0x26ba7a=!0x1);}_0x26ba7a&&_0x5696a2['discard']();}else{const _0x1c33b4=_0x5696a2['getFirstRange']();if(_0x1c33b4[_0x4161('0x3c')](_0x47e4ce,!0x0))return _0x5696a2;if(!Ut(_0x5696a2,_0x182859)){_0x47e4ce[_0x4161('0x3c')](_0x1c33b4)?_0x5696a2[_0x4161('0xfa')]():_0x1c33b4[_0x4161('0x18')](_0x22ef88)?_0x22ef88=_0x1c33b4[_0x4161('0x1a')]:_0x1c33b4[_0x4161('0x18')](_0xa86ec1)&&(_0xa86ec1=_0x1c33b4[_0x4161('0x38')]);continue;}_0x22ef88=_0x22ef88['isBefore'](_0x1c33b4[_0x4161('0x38')])?_0x22ef88:_0x1c33b4[_0x4161('0x38')],_0xa86ec1=_0xa86ec1[_0x4161('0x110')](_0x1c33b4[_0x4161('0x1a')])?_0xa86ec1:_0x1c33b4[_0x4161('0x1a')],_0x182859=Object[_0x4161('0x8')]({},_0x5696a2[_0x4161('0x94')]),_0xce28c5?_0x1c33b4[_0x4161('0x38')][_0x4161('0x128')](_0xce28c5[_0x4161('0x4d')]()['start'])?(_0xce28c5['removeMarkers'](),_0xce28c5=_0x5696a2):_0x5696a2[_0x4161('0xfa')]():_0xce28c5=_0x5696a2;}}}if(_0xce28c5)return this[_0x4161('0x45')](_0xce28c5,this[_0x4161('0x106')][_0x4161('0x8d')](_0x22ef88,_0xa86ec1)),_0xce28c5;{const _0x2920de=_0x49c084(),_0x80ebcf=this[_0x4161('0x106')]['createRange'](_0x22ef88,_0xa86ec1),_0x403956=_0x500e11['id'],_0xbd8e46=_0x2d6b10?'deletion:'+_0x2d6b10:_0x4161('0x95'),_0xc54fb2=this[_0x4161('0xe5')]({'id':_0x2920de,'type':_0xbd8e46,'createdAt':new Date(),'authorId':_0x403956,'attributes':_0x182859});return this[_0x4161('0x105')](_0xbd8e46,_0x2920de,_0x403956,_0x80ebcf),_0xc54fb2;}}[_0x4161('0xc0')](_0x365f5f,_0x526c24='multi',_0x10559a={}){const _0x2dda84=this[_0x4161('0x133')][_0x4161('0xc1')][_0x4161('0x112')](_0x4161('0x7a'))['me'],_0x29b5ac=_0x365f5f[_0x4161('0xa0')](_0x3570ad=>new _0x4ccb35(_0x3570ad[_0x4161('0x38')],_0x3570ad[_0x4161('0x1a')])),_0xb5c6c3=new Set();for(const {suggestion:_0x52f8b4,meta:_0x3a35fc}of this[_0x4161('0x27')](_0x29b5ac,_0x4161('0x78')))_0x3a35fc['isOwn']&&!_0x3a35fc[_0x4161('0x129')]&&_0xb5c6c3[_0x4161('0x9a')](_0x52f8b4);for(const _0x454063 of _0xb5c6c3)if(_0x454063[_0x4161('0x7c')]){const _0x517b7d=_0x454063[_0x4161('0x69')]();(!_0x454063['attributes']||!_0x454063['attributes'][_0x4161('0xeb')])&&(_0x517b7d['every'](_0x30b112=>_0x29b5ac[_0x4161('0x87')](_0x279821=>_0x279821[_0x4161('0x3c')](_0x30b112,!0x0)))&&_0x454063[_0x4161('0x8c')]());if(_0x29b5ac[_0x4161('0xa8')](_0x1174a6=>_0x517b7d[_0x4161('0x87')](_0xeb24f=>_0xeb24f[_0x4161('0x3c')](_0x1174a6,!0x0)))){const _0x340833=this['_suggestionFactory'][_0x4161('0xe1')](_0x4161('0x95'),_0x526c24,'accept');return this[_0x4161('0x6b')](()=>_0x340833(_0x365f5f,null,_0x10559a)),null;}}else{const _0x21cac8=_0x454063[_0x4161('0x4d')]();_0x29b5ac[_0x4161('0x87')](_0x2f64e2=>_0x2f64e2[_0x4161('0x3c')](_0x21cac8,!0x0))&&_0x454063['discard']();if(_0x29b5ac[_0x4161('0xa8')](_0x3b97c3=>_0x21cac8[_0x4161('0x3c')](_0x3b97c3,!0x0))){const _0x3d9ba2=this[_0x4161('0xda')][_0x4161('0xe1')]('deletion',_0x526c24,'accept');return this[_0x4161('0x6b')](()=>_0x3d9ba2(_0x29b5ac,null,_0x10559a)),null;}}const _0xf788a1=this[_0x4161('0xda')][_0x4161('0xe1')](_0x4161('0x95'),_0x526c24,_0x4161('0x83'));let _0x16da3c=null;for(const _0xeaf75f of this['getSuggestions']())if(_0xeaf75f['author']['id']==_0x2dda84['id']&&_0xeaf75f[_0x4161('0x25')]&&_0x4161('0x95')==_0xeaf75f['type']&&_0xeaf75f[_0x4161('0x28')]==_0x526c24&&Ut(_0xeaf75f,_0x10559a)&&(_0xf788a1(_0xeaf75f[_0x4161('0x69')](),_0x29b5ac)||_0xf788a1(_0x29b5ac,_0xeaf75f['getRanges']()))){if(_0x16da3c){if(_0xeaf75f[_0x4161('0x12')]&&_0xeaf75f[_0x4161('0x12')][_0x4161('0xf5')])continue;for(const _0x490342 of _0xeaf75f['getRanges']())_0x16da3c[_0x4161('0x113')](_0x490342)||_0x16da3c[_0x4161('0x103')](_0x490342);_0xeaf75f['removeMarkers']();}else{_0x16da3c=_0xeaf75f;for(const _0x2d447e of _0x29b5ac)_0xeaf75f[_0x4161('0x113')](_0x2d447e)||_0xeaf75f[_0x4161('0x103')](_0x2d447e);}}if(_0x16da3c)return _0x16da3c;_0xb5c6c3[_0x4161('0x33')]();for(const {suggestion:_0x3fd155,meta:_0x1a2228}of this[_0x4161('0x27')](_0x29b5ac,_0x4161('0x95')))_0x1a2228['isOwn']&&(this[_0x4161('0xd1')]||!_0x1a2228[_0x4161('0xf4')]&&!_0x1a2228[_0x4161('0xba')])&&Ut(_0x3fd155,_0x10559a)&&_0xb5c6c3['add'](_0x3fd155);for(const _0x561708 of _0xb5c6c3){const _0x1b0a61=_0x561708[_0x4161('0x69')]();if(!_0x10559a||!_0x10559a[_0x4161('0xeb')]){if(_0x29b5ac[_0x4161('0xa8')](_0x30e582=>_0x1b0a61[_0x4161('0x87')](_0x482de2=>_0x482de2['containsRange'](_0x30e582,!0x0))))return _0x561708;}(!_0x561708[_0x4161('0x94')]||!_0x561708[_0x4161('0x94')][_0x4161('0xeb')])&&(_0x1b0a61['every'](_0x107510=>_0x29b5ac[_0x4161('0x87')](_0x3d949b=>_0x3d949b[_0x4161('0x3c')](_0x107510,!0x0)))&&_0x561708[_0x4161('0x8c')]());}const _0x1e62b6=_0x49c084(),_0x44874f=_0x2dda84['id'],_0x25dcc7=_0x4161('0x2e')+_0x526c24,_0xab58f8=this['_setSuggestionData']({'id':_0x1e62b6,'type':_0x25dcc7,'createdAt':new Date(),'authorId':_0x44874f,'attributes':_0x10559a});for(const _0x1bd205 of _0x29b5ac)_0x1bd205[_0x4161('0x64')](),_0x1bd205[_0x4161('0x134')]||_0x4161('0x135')==_0x1bd205[_0x4161('0x137')][_0x4161('0x15')]||this[_0x4161('0x105')](_0x25dcc7,_0x1e62b6,_0x44874f,_0x1bd205,_0x2170bb[_0x4161('0xa9')]());return _0xab58f8;}[_0x4161('0x45')](_0x5b564d,_0xf4596a){const _0x5c2760=_0x5b564d[_0x4161('0x40')]();this[_0x4161('0x106')][_0x4161('0x50')](_0x374eb0=>{_0x374eb0[_0x4161('0x123')](_0x5c2760,{'range':_0xf4596a});});}[_0x4161('0x80')](_0x5b72a3){const _0x1f8c6a=_0x5b72a3['id'],_0x508832=this[_0x4161('0x133')]['config'][_0x4161('0x112')](_0x4161('0xac'));this[_0x4161('0xb7')][_0x4161('0x7b')](_0x1f8c6a)||this[_0x4161('0xb7')][_0x4161('0x66')]({'channelId':_0x508832,'threadId':_0x1f8c6a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x592564=this[_0x4161('0xb7')][_0x4161('0x5e')](_0x1f8c6a);_0x592564[_0x4161('0xd0')](_0x4161('0x13a')),_0x592564[_0x4161('0x13a')]=!0x1,_0x5b72a3['commentThread']=_0x592564;}[_0x4161('0x20')](_0x180738,_0x54b467,_0x3704e7,_0x1266a2){if(_0x180738['type']!=_0x54b467||_0x180738[_0x4161('0x28')]!=_0x3704e7||_0x180738[_0x4161('0x65')]['id']!=_0x1266a2)throw this[_0x4161('0x133')][_0x4161('0x10a')](_0x4161('0xa6')),new _0x5390d2('track-changes-suggestion-data-mismatch',this);}[_0x4161('0x90')](_0x309c1f,_0x5dfc78){const _0x7f31e0=_0x309c1f[_0x4161('0x4d')]();if(_0x5dfc78[_0x4161('0xe3')](_0x7f31e0))_0x309c1f[_0x4161('0xfa')]();else{if(_0x7f31e0[_0x4161('0x3c')](_0x5dfc78)){const _0x22be92=this['_model'][_0x4161('0xd4')](_0x5dfc78[_0x4161('0x38')][_0x4161('0xf2')],_0x4161('0x1a'));this[_0x4161('0x45')](_0x309c1f,this[_0x4161('0x106')]['createRange'](_0x7f31e0[_0x4161('0x38')],_0x22be92));const _0x34ad34=_0x49c084(),_0x5b7be4=_0x309c1f[_0x4161('0x65')]['id'],_0x444007=_0x309c1f[_0x4161('0xad')]+':'+_0x309c1f['subType'];this[_0x4161('0xe5')]({'id':_0x34ad34,'type':_0x444007,'createdAt':new Date(),'authorId':_0x5b7be4,'data':_0x309c1f[_0x4161('0x100')],'attributes':_0x309c1f[_0x4161('0x94')]});const _0x5c20e7=this[_0x4161('0x106')][_0x4161('0xd4')](_0x5dfc78[_0x4161('0x1a')][_0x4161('0x6')],'after'),_0x4f430e=this[_0x4161('0x106')][_0x4161('0x8d')](_0x5c20e7,_0x7f31e0['end']);this['_addSuggestionMarker'](_0x444007,_0x34ad34,_0x5b7be4,_0x4f430e);}else{if(_0x7f31e0['containsPosition'](_0x5dfc78[_0x4161('0x38')])){const _0x4e66f6=this[_0x4161('0x106')][_0x4161('0xd4')](_0x5dfc78[_0x4161('0x38')]['nodeBefore'],'end');this[_0x4161('0x45')](_0x309c1f,this['_model']['createRange'](_0x7f31e0['start'],_0x4e66f6));}else{const _0x5204aa=this[_0x4161('0x106')]['createPositionAt'](_0x5dfc78['end'][_0x4161('0x6')],'after');this['_setSuggestionRange'](_0x309c1f,this[_0x4161('0x106')][_0x4161('0x8d')](_0x5204aa,_0x7f31e0[_0x4161('0x1a')]));}}}}['_rangeIsInLocalUserInsertion'](_0x50fa25){for(const {suggestion:_0x5f1bba,meta:_0x368813}of this[_0x4161('0x27')](_0x50fa25,_0x4161('0x78'))){if(!_0x368813[_0x4161('0xaf')])continue;const _0x81bed6=_0x5f1bba['getRanges']();for(const _0x354451 of _0x81bed6)if(!_0x50fa25[_0x4161('0x70')](_0x354451)[_0x4161('0xf5')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x30b640){const _0xf8c3c6=this[_0x4161('0x133')][_0x4161('0xc1')]['get'](_0x4161('0x7a'))[_0x4161('0x34')](_0x30b640);if(!_0xf8c3c6)throw new _0x5390d2(_0x4161('0x12a'),this);return _0xf8c3c6;}[_0x4161('0x47')](_0x354e39){const _0x21864e=this['editor']['plugins'][_0x4161('0x112')](_0x4161('0x7a')),_0x142e64=_0x83290('external:'+_0x354e39),_0x2f1f2a=_0x21864e[_0x4161('0x34')](_0x142e64);return _0x2f1f2a||_0x21864e[_0x4161('0x11f')]({'id':_0x142e64,'name':_0x354e39});}[_0x4161('0x23')](_0x4c762f,_0x3d6331,_0xc16164,_0x31ada7,_0x241b97){const _0x15fc01=this[_0x4161('0x122')](_0x31ada7),_0x4b1c39=this[_0x4161('0xda')][_0x4161('0x77')](_0x4c762f,_0x3d6331,_0xc16164,_0x15fc01,_0x241b97,_0x24f168=>this[_0x4161('0x2b')](_0xc16164,{'attributes':_0x24f168}));return this[_0x4161('0x11')](_0x4b1c39,_0x4161('0x136'),()=>{this[_0x4161('0x2b')](_0xc16164,{'state':_0x4161('0x108')});},{'priority':'high'}),this[_0x4161('0x11')](_0x4b1c39,_0x4161('0x8c'),()=>{this[_0x4161('0x2b')](_0xc16164,{'state':_0x4161('0x4c')});},{'priority':_0x4161('0x2c')}),this[_0x4161('0x88')][_0x4161('0xc3')](_0xc16164,_0x4b1c39),this[_0x4161('0x9b')][_0x4161('0xc3')](_0x4b1c39,_0x4161('0x96')),_0x4b1c39;}[_0x4161('0x4f')](_0x53290d){const _0x190928=_0x53290d[_0x4161('0xc2')](':');return{'group':_0x190928[0x0],'type':_0x190928[0x1],'subType':_0x190928[_0x4161('0xf5')]>=0x5?_0x190928[0x2]:null,'id':_0x190928[_0x4161('0xf5')]<0x5?_0x190928[0x2]:_0x190928[0x3],'authorId':_0x190928[_0x4161('0xf5')]<0x5?_0x190928[0x3]:_0x190928[0x4],'markerCount':0x6==_0x190928[_0x4161('0xf5')]?_0x190928[0x5]:null};}[_0x4161('0x81')](_0x4dacde,_0x43555c,_0x323c07){const _0x11c4a0=_0x4dacde[_0x4161('0x4d')](),_0x186e05=_0x11c4a0[_0x4161('0x38')],_0x5974a0=_0x11c4a0[_0x4161('0x1a')];this[_0x4161('0x45')](_0x4dacde,this['_model']['createRange'](_0x186e05,_0x43555c));const _0x59249d=_0x49c084(),_0x364ff3=_0x4dacde[_0x4161('0x65')]['id'],_0xbaa2c8=_0x4dacde[_0x4161('0xad')]+(_0x4dacde[_0x4161('0x28')]?':'+_0x4dacde[_0x4161('0x28')]:'');this[_0x4161('0xe5')]({'id':_0x59249d,'type':_0xbaa2c8,'createdAt':new Date(),'authorId':_0x364ff3,'originalSuggestionId':_0x4dacde['id'],'attributes':_0x4dacde[_0x4161('0x94')],'data':_0x4dacde[_0x4161('0x100')]}),_0x4161('0xe6')==_0x4dacde[_0x4161('0xad')]&&(_0x323c07=this[_0x4161('0x106')][_0x4161('0x44')](_0x323c07[_0x4161('0x6')])),this[_0x4161('0x105')](_0xbaa2c8,_0x59249d,_0x364ff3,this[_0x4161('0x106')][_0x4161('0x8d')](_0x323c07,_0x5974a0));}[_0x4161('0x27')](_0x250753,_0x927f98=null){const _0x25cbfc=[],_0x1b0c1f=this[_0x4161('0x133')][_0x4161('0xc1')][_0x4161('0x112')](_0x4161('0x7a'))['me'];Array[_0x4161('0xfc')](_0x250753)||(_0x250753=[_0x250753]);for(const _0x12da99 of this[_0x4161('0xa7')]()){if(!_0x12da99[_0x4161('0x25')])continue;if(_0x927f98&&_0x12da99[_0x4161('0xad')]!=_0x927f98)continue;let _0x824e03=!0x1;for(const _0x1f0e4c of _0x12da99[_0x4161('0x69')]()){for(const _0x171da9 of _0x250753){const _0x5a68f1=_0x171da9[_0x4161('0x38')][_0x4161('0xe3')](_0x1f0e4c[_0x4161('0x1a')])||_0x171da9[_0x4161('0x1a')][_0x4161('0xe3')](_0x1f0e4c['start']);if(_0x5a68f1||_0x171da9['getIntersection'](_0x1f0e4c)){const _0x2c2ef1=_0x171da9[_0x4161('0x3c')](_0x1f0e4c)&&Bt(this[_0x4161('0x106')][_0x4161('0xe8')],_0x1f0e4c[_0x4161('0x38')],_0x171da9),_0x567f17=_0x1f0e4c['containsRange'](_0x171da9)&&Bt(this[_0x4161('0x106')][_0x4161('0xe8')],_0x171da9['start'],_0x1f0e4c);_0x25cbfc['push']({'suggestion':_0x12da99,'meta':{'isOwn':_0x1b0c1f==_0x12da99[_0x4161('0x79')],'isNextTo':_0x5a68f1,'isInsideObject':_0x2c2ef1,'containsRangeInObject':_0x567f17}}),_0x824e03=!0x0;break;}}if(_0x824e03)break;}}return _0x25cbfc;}[_0x4161('0x105')](_0x2fba26,_0x4c909e,_0x76d9c6,_0x36435a,_0x15a3df){this['_model']['change'](_0x1e4a70=>{let _0x48daf5=_0x4161('0x84')+_0x2fba26+':'+_0x4c909e+':'+_0x76d9c6;_0x15a3df&&(_0x48daf5=_0x48daf5+':'+_0x15a3df),_0x1e4a70['addMarker'](_0x48daf5,{'range':_0x36435a,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4161('0xdf')](_0x5e0a4a){const _0x4a91f9=_0x5e0a4a[_0x4161('0x4a')],_0x2bfdfa=_0x5e0a4a['next'];_0x5e0a4a[_0x4161('0x4a')]=null,null!=_0x4a91f9&&(_0x4a91f9[_0x4161('0x11a')]=null),_0x5e0a4a[_0x4161('0x11a')]=null,null!=_0x2bfdfa&&(_0x2bfdfa['previous']=null),'ready'==this['_suggestionState'][_0x4161('0x112')](_0x5e0a4a)&&(this[_0x4161('0x9b')][_0x4161('0xc3')](_0x5e0a4a,'removed'),this[_0x4161('0x31')](_0x4161('0xed'),_0x5e0a4a,_0x4a91f9,_0x2bfdfa));}[_0x4161('0xe5')](_0x4c9e27){const _0x342e89=_0x4c9e27['id'],_0x37cc5c=this[_0x4161('0x9c')](_0x4c9e27);if(this['_adapter']&&this[_0x4161('0x0')][_0x4161('0x11b')]){const _0x4be66d=this['editor'][_0x4161('0xc1')][_0x4161('0x112')]('PendingActions'),_0x1e77d4=_0x37cc5c[_0x4161('0x121')],_0x2364fd=_0x37cc5c[_0x4161('0x28')]?_0x37cc5c[_0x4161('0xad')]+':'+_0x37cc5c['subType']:_0x37cc5c['type'],_0x35e446=this['editor'][_0x4161('0x10f')],_0x30669d=_0x4be66d[_0x4161('0x9a')](_0x2b96c0(_0x35e446,_0x4161('0xb1'))),_0x7d7dd8={'id':_0x342e89,'type':_0x2364fd,'hasComments':_0x1e77d4,'data':_0x4c9e27[_0x4161('0x100')]||null,'originalSuggestionId':_0x4c9e27[_0x4161('0x91')]||null,'attributes':_0x37cc5c[_0x4161('0x94')]};this['_adapter']['addSuggestion'](_0x7d7dd8)['then'](_0x2acf8c=>{_0x37cc5c['_saved']=!0x0,_0x4be66d[_0x4161('0x60')](_0x30669d),_0x2acf8c&&_0x2acf8c[_0x4161('0x104')]&&(this[_0x4161('0x88')]['get'](_0x342e89)[_0x4161('0x104')]=_0x2acf8c['createdAt']);})[_0x4161('0xc')](_0x473b0e=>{throw _0x49c023(_0x4161('0xc7')),this[_0x4161('0x133')]['model'][_0x4161('0x7e')]({'isUndoable':!0x1},()=>{_0x37cc5c['discard']();}),_0x37cc5c['stopListening'](),this['_suggestions'][_0x4161('0x140')](_0x37cc5c['id']),this[_0x4161('0x9b')][_0x4161('0x140')](_0x37cc5c),_0x473b0e;});}return _0x37cc5c;}['_updateSuggestionData'](_0x1d17e4,_0x1f06a8){const _0xcedefe=this[_0x4161('0x133')][_0x4161('0xc1')][_0x4161('0x112')](_0x4161('0x49')),_0x4dc3d7=this[_0x4161('0xc5')](_0x1d17e4);if(this[_0x4161('0x0')]&&this[_0x4161('0x0')][_0x4161('0x9d')]){if(_0x4dc3d7[_0x4161('0x89')]){const _0x12f4e2=_0xcedefe[_0x4161('0x9a')](_0x2b96c0(this[_0x4161('0x133')][_0x4161('0x10f')],'PENDING_ACTION_SUGGESTION'));this[_0x4161('0x0')][_0x4161('0x9d')](_0x1d17e4,_0x1f06a8)[_0x4161('0x5d')](()=>{_0xcedefe['remove'](_0x12f4e2);});}else _0x4dc3d7['on'](_0x4161('0x72'),()=>{this[_0x4161('0x2b')](_0x1d17e4,_0x1f06a8);});}}[_0x4161('0xb4')](_0x3599ad){if(!this[_0x4161('0x0')]||!this[_0x4161('0x0')][_0x4161('0xc5')])throw new _0x5390d2(_0x4161('0xa1'),this);return this[_0x4161('0x0')][_0x4161('0xc5')](_0x3599ad);}['_handleNewSuggestionMarker'](_0x196a81){const {id:_0x58c010,type:_0x7c579c,subType:_0xebc1ec,authorId:_0x5ed323}=this['_splitMarkerName'](_0x196a81),_0x3be2bd=this[_0x4161('0x88')][_0x4161('0x112')](_0x58c010)||this[_0x4161('0x23')](_0x7c579c,_0xebc1ec,_0x58c010,_0x5ed323,{});switch(this[_0x4161('0x20')](_0x3be2bd,_0x7c579c,_0xebc1ec,_0x5ed323),this[_0x4161('0x9b')][_0x4161('0x112')](_0x3be2bd)){case _0x4161('0x96'):this[_0x4161('0xb4')](_0x58c010)['then'](_0xe896c8=>{let _0x5d6764=Promise[_0x4161('0xec')]();_0xe896c8[_0x4161('0x121')]&&(_0x5d6764=this[_0x4161('0xb7')][_0x4161('0x139')]({'channelId':this[_0x4161('0x133')][_0x4161('0x126')][_0x4161('0x112')](_0x4161('0xac')),'threadId':_0x58c010})),_0x5d6764[_0x4161('0x5d')](()=>{this[_0x4161('0x9c')](_0xe896c8)[_0x4161('0x89')]=!0x0;});}),this[_0x4161('0x9b')][_0x4161('0xc3')](_0x3be2bd,_0x4161('0x8a'));break;case _0x4161('0x115'):this[_0x4161('0x2b')](_0x58c010,{'state':_0x4161('0xd3')});case _0x4161('0x43'):this[_0x4161('0x9b')]['set'](_0x3be2bd,'ready'),this['fire'](_0x4161('0xa'),_0x3be2bd);break;case'ready':this[_0x4161('0x31')](_0x4161('0xce'),_0x3be2bd);}return _0x3be2bd[_0x4161('0x118')](_0x196a81),_0x3be2bd;}[_0x4161('0x7d')](_0x2ea765){const _0x41dc25=Array[_0x4161('0x56')](_0x2ea765)[_0x4161('0xf0')](_0x137e82=>!_0x137e82[_0x4161('0x7c')]),_0xb0c8cf=this[_0x4161('0xa7')]({'skipNotAttached':!0x0})[_0x4161('0xf0')](_0x490c62=>!_0x490c62[_0x4161('0x7c')]),_0x305c8f=_0xb0c8cf[_0x4161('0xf0')](_0x5b6c9d=>!_0x2ea765[_0x4161('0x62')](_0x5b6c9d)),_0x5644d3=new Map(_0xb0c8cf[_0x4161('0xa0')](_0x3e62db=>[_0x3e62db,this[_0x4161('0xda')]['getSuggestionCallback'](_0x3e62db[_0x4161('0xad')],_0x3e62db[_0x4161('0x28')],_0x4161('0x17'))])),_0x5481f9=new Map(_0xb0c8cf[_0x4161('0xa0')](_0x170792=>[_0x170792,_0x170792[_0x4161('0x4d')]()])),_0x212089=new Set(),_0x198fa8=new Set();for(let _0x5436cf=0x0;_0x5436cf<_0x41dc25[_0x4161('0xf5')];_0x5436cf++)_0xcf7248(_0x41dc25[_0x5436cf],_0x41dc25,_0x5436cf+0x1);for(let _0x3a08ea=0x0;_0x3a08ea<_0x41dc25['length'];_0x3a08ea++)_0xcf7248(_0x41dc25[_0x3a08ea],_0x305c8f,0x0);for(let _0x21539c=0x0;_0x21539c<_0x41dc25[_0x4161('0xf5')];_0x21539c++){const _0x3698b8=_0x41dc25[_0x21539c];!_0x198fa8['has'](_0x3698b8)&&_0x3698b8[_0x4161('0x4a')]&&(_0x3698b8[_0x4161('0x4a')][_0x4161('0x11a')]===_0x3698b8&&(_0x3698b8['previous'][_0x4161('0x11a')]=null),_0x3698b8[_0x4161('0x4a')]=null),!_0x212089[_0x4161('0x62')](_0x3698b8)&&_0x3698b8[_0x4161('0x11a')]&&(_0x3698b8[_0x4161('0x11a')][_0x4161('0x4a')]===_0x3698b8&&(_0x3698b8['next'][_0x4161('0x4a')]=null),_0x3698b8[_0x4161('0x11a')]=null);}function _0xcf7248(_0x394506,_0x390a85,_0x2c6c14){for(let _0x4c15d4=_0x2c6c14;_0x4c15d4<_0x390a85['length'];_0x4c15d4++){const _0x5aedd3=_0x412e45(_0x394506,_0x390a85[_0x4c15d4]);_0x5aedd3&&(_0x5aedd3[0x0][_0x4161('0x11a')]=_0x5aedd3[0x1],_0x5aedd3[0x1][_0x4161('0x4a')]=_0x5aedd3[0x0],_0x212089[_0x4161('0x9a')](_0x5aedd3[0x0]),_0x198fa8[_0x4161('0x9a')](_0x5aedd3[0x1]));}}function _0x412e45(_0x55cd2c,_0x2be0ea){if(_0x55cd2c['author']['id']!==_0x2be0ea[_0x4161('0x79')]['id'])return null;const _0xfa46c4=_0x5644d3[_0x4161('0x112')](_0x55cd2c)(_0x55cd2c,_0x2be0ea,_0x5481f9[_0x4161('0x112')](_0x55cd2c),_0x5481f9[_0x4161('0x112')](_0x2be0ea));if(!_0xfa46c4)return null;return _0x5644d3[_0x4161('0x112')](_0x2be0ea)(_0x55cd2c,_0x2be0ea,_0x5481f9[_0x4161('0x112')](_0x55cd2c),_0x5481f9[_0x4161('0x112')](_0x2be0ea))?_0xfa46c4[0x1]['commentThread']&&_0xfa46c4[0x1]['commentThread'][_0x4161('0xf5')]?null:_0xfa46c4:null;}}['_joinWithAdjacentSuggestions'](_0x12aa33){const _0x11c72f=Array[_0x4161('0x56')](_0x12aa33),_0x22b230=this[_0x4161('0xa7')]({'skipNotAttached':!0x0}),_0x3e9fc3=_0x22b230[_0x4161('0xf0')](_0x3da17b=>!_0x12aa33[_0x4161('0x62')](_0x3da17b)),_0x4708f8=new Map(_0x11c72f[_0x4161('0xa0')](_0x4f36aa=>[_0x4f36aa,this[_0x4161('0xda')][_0x4161('0xe1')](_0x4f36aa[_0x4161('0xad')],_0x4f36aa[_0x4161('0x28')],'join')])),_0x25d6be=new Map(_0x22b230[_0x4161('0xa0')](_0x1e62b5=>[_0x1e62b5,_0x1e62b5[_0x4161('0x69')]()]));for(let _0x2a6f3b=0x0;_0x2a6f3b<_0x11c72f['length'];_0x2a6f3b++){if(_0x1fe3f6(this,_0x11c72f[_0x2a6f3b],_0x11c72f,_0x2a6f3b+0x1))return!0x0;}for(let _0x13e9be=0x0;_0x13e9be<_0x11c72f[_0x4161('0xf5')];_0x13e9be++){if(_0x1fe3f6(this,_0x11c72f[_0x13e9be],_0x3e9fc3,0x0))return!0x0;}return!0x1;function _0x1fe3f6(_0x18ec60,_0x387dad,_0x31efa6,_0x7e5827){for(let _0x29224d=_0x7e5827;_0x29224d<_0x31efa6[_0x4161('0xf5')];_0x29224d++){const _0x250d0c=_0x31efa6[_0x29224d];if(_0x250d0c['type']!==_0x387dad['type']||_0x250d0c[_0x4161('0x79')]['id']!==_0x387dad[_0x4161('0x79')]['id']||_0x250d0c['subType']!==_0x387dad[_0x4161('0x28')])continue;if(!xt(_0x387dad,_0x250d0c))continue;const _0x25d65c=_0x4708f8[_0x4161('0x112')](_0x387dad),_0x46ae41=_0x25d6be[_0x4161('0x112')](_0x387dad),_0x42ef01=_0x25d6be[_0x4161('0x112')](_0x250d0c),_0x5f3372=_0x387dad['commentThread']&&_0x387dad[_0x4161('0x12')]['length'],_0x45b762=_0x250d0c['commentThread']&&_0x250d0c[_0x4161('0x12')]['length'];if(!_0x5f3372&&_0x25d65c(_0x42ef01,_0x46ae41))return _0x18ec60['_joinSuggestions'](_0x250d0c,_0x387dad),_0x25d6be['delete'](_0x387dad),!0x0;if(!_0x45b762&&_0x25d65c(_0x46ae41,_0x42ef01))return _0x18ec60[_0x4161('0x10e')](_0x387dad,_0x250d0c),_0x25d6be[_0x4161('0x140')](_0x250d0c),!0x0;}return!0x1;}}['_joinSuggestions'](_0x37c61b,_0x16f51e){if(_0x37c61b['isMultiRange'])for(const _0x586239 of _0x16f51e['getRanges']())_0x37c61b['addRange'](_0x586239);else{const _0x5bbe76=_0x16f51e[_0x4161('0x4d')]()[_0x4161('0x1a')];this[_0x4161('0x45')](_0x37c61b,this[_0x4161('0x106')][_0x4161('0x8d')](_0x37c61b['getFirstRange']()['start'],_0x5bbe76));}_0x16f51e[_0x4161('0xfa')]();}}class Dt{constructor(_0x73022b){this[_0x4161('0xe2')]=_0x73022b,this[_0x4161('0x106')]=_0x73022b[_0x4161('0x73')],this[_0x4161('0xe7')]=new Map(),this[_0x4161('0xca')]=new Map(),this['_registerDefaultCallbacks']();}[_0x4161('0x77')](_0x117032,_0x453e76,_0x5225bd,_0x72816b,_0x319178,_0x4bb2c1){return new _0x2170bb(this[_0x4161('0x106')],{'type':_0x117032,'subType':_0x453e76,'id':_0x5225bd,'author':_0x72816b,'creator':_0x72816b,'attributes':_0x319178,'onAttributesChange':_0x4bb2c1,'onAccept':(..._0x445ff3)=>this[_0x4161('0xe1')](_0x117032,_0x453e76,_0x4161('0x136'))(..._0x445ff3),'onDiscard':(..._0xa4c16f)=>this[_0x4161('0xe1')](_0x117032,_0x453e76,_0x4161('0x8c'))(..._0xa4c16f)});}['registerCustomCallback'](_0x340445,_0x553e15,_0x32ab8b,_0x53f6f0){const _0x189637=_0x340445+':'+_0x553e15+':'+_0x32ab8b;this[_0x4161('0xe7')]['set'](_0x189637,_0x53f6f0);}[_0x4161('0xe1')](_0x31ee8f,_0xf6775d,_0x148d52){const _0x2ba737=_0x31ee8f+':'+_0xf6775d+':'+_0x148d52;return this[_0x4161('0xe7')][_0x4161('0x112')](_0x2ba737)||this['_defaultCallbacks'][_0x4161('0x112')](_0x31ee8f+':'+_0x148d52);}['_registerDefaultCallbacks'](){const _0x237a30=()=>!0x1,_0x16b876=_0x3f0ef5=>{_0x3f0ef5[_0x4161('0x2a')]((_0x4ec834,_0x199da6)=>_0x4ec834[_0x4161('0x38')][_0x4161('0x128')](_0x199da6[_0x4161('0x38')])?0x1:-0x1),this[_0x4161('0x106')][_0x4161('0x50')](_0x4f9a27=>{for(const _0x2ca8ab of _0x3f0ef5){let _0x1b8f4a;_0x1b8f4a=_0x2ca8ab[_0x4161('0x1a')][_0x4161('0x6d')]&&_0x2ca8ab['end'][_0x4161('0x6')]==_0x2ca8ab[_0x4161('0x38')][_0x4161('0xd7')]?_0x4f9a27['createSelection'](_0x2ca8ab[_0x4161('0x38')][_0x4161('0xd7')],'on'):_0x4f9a27['createSelection'](_0x2ca8ab),this[_0x4161('0x106')]['deleteContent'](_0x1b8f4a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x18c6e8=(_0x26b026,_0x58109e)=>{this[_0x4161('0x106')][_0x4161('0x50')](_0x5e8e48=>{const {commandName:_0x4d0ac3,commandParams:_0x1b0e03=[]}=_0x58109e,_0x3f3111=_0x26b026[_0x4161('0xa0')](_0x9a1bc3=>(_t(_0x9a1bc3)&&(_0x9a1bc3=this[_0x4161('0x106')][_0x4161('0x8d')](_0x9a1bc3[_0x4161('0x1a')])),_0x9a1bc3))[_0x4161('0xf0')](_0x1c0514=>'$graveyard'!==_0x1c0514[_0x4161('0x137')][_0x4161('0x15')]);if(_0x3f3111[_0x4161('0xf5')]<0x1)return;const _0x3d23b6=Array[_0x4161('0x56')](this[_0x4161('0x106')][_0x4161('0x120')][_0x4161('0x11c')][_0x4161('0x69')]())[_0x4161('0xa0')](_0x194f99=>_0x4ccb35[_0x4161('0xfe')](_0x194f99));_0x5e8e48[_0x4161('0x13c')](_0x3f3111);for(const _0x25bc2a of this[_0x4161('0xe2')][_0x4161('0xb3')][_0x4161('0xb3')]())_0x25bc2a[_0x4161('0x59')]();_0x1b0e03[_0x4161('0xea')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x4161('0x102')](_0x4d0ac3,..._0x1b0e03);const _0x4e0bcf=_0x3d23b6[_0x4161('0xf0')](_0x408bf3=>_0x4161('0x135')!=_0x408bf3[_0x4161('0x137')][_0x4161('0x15')]);_0x4e0bcf[_0x4161('0xf5')]>0x0&&_0x5e8e48[_0x4161('0x13c')](_0x4e0bcf);for(const _0x6c435b of _0x3d23b6)_0x6c435b[_0x4161('0x64')]();});},_0x4c1a79=(_0x951024,_0x145898)=>0x1==_0x951024[_0x4161('0xf5')]&&0x1==_0x145898[_0x4161('0xf5')]&&_0x951024[0x0][_0x4161('0x1a')][_0x4161('0xe3')](_0x145898[0x0][_0x4161('0x38')]),_0x4633f1=(_0x1608af,_0x23c5e4,_0x19ea33,_0x254602)=>jt(_0x1608af,_0x23c5e4,_0x19ea33,_0x254602,this['_model'])?[_0x1608af,_0x23c5e4]:jt(_0x23c5e4,_0x1608af,_0x254602,_0x19ea33,this[_0x4161('0x106')])?[_0x23c5e4,_0x1608af]:null;this['_defaultCallbacks'][_0x4161('0xc3')](_0x4161('0xae'),_0x237a30),this['_defaultCallbacks'][_0x4161('0xc3')]('insertion:discard',_0x16b876),this[_0x4161('0xca')]['set'](_0x4161('0x127'),_0x4c1a79),this[_0x4161('0xca')][_0x4161('0xc3')](_0x4161('0x10'),_0x4633f1),this['_defaultCallbacks'][_0x4161('0xc3')]('deletion:accept',_0x16b876),this[_0x4161('0xca')]['set']('deletion:discard',_0x237a30),this[_0x4161('0xca')][_0x4161('0xc3')](_0x4161('0xf8'),_0x4c1a79),this[_0x4161('0xca')][_0x4161('0xc3')]('deletion:chain',_0x4633f1),this[_0x4161('0xca')]['set'](_0x4161('0xf'),_0x18c6e8),this['_defaultCallbacks'][_0x4161('0xc3')](_0x4161('0x29'),_0x237a30),this[_0x4161('0xca')][_0x4161('0xc3')](_0x4161('0x42'),_0x4c1a79),this[_0x4161('0xca')][_0x4161('0xc3')](_0x4161('0xfb'),_0x237a30),this[_0x4161('0xca')][_0x4161('0xc3')]('formatBlock:accept',_0x18c6e8),this[_0x4161('0xca')][_0x4161('0xc3')]('formatBlock:discard',_0x237a30),this[_0x4161('0xca')]['set'](_0x4161('0x12e'),_0x4c1a79),this['_defaultCallbacks']['set'](_0x4161('0x8b'),_0x237a30);}}function Bt(_0x19a423,_0x2c18b3,_0x255f50){for(const _0x5a8c16 of _0x2c18b3[_0x4161('0x6')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5a8c16['root']==_0x5a8c16)return!0x1;if(!_0x255f50['containsItem'](_0x5a8c16))return!0x1;if(_0x19a423[_0x4161('0x6a')](_0x5a8c16)||_0x19a423[_0x4161('0x138')](_0x5a8c16))return!0x0;}return!0x1;}function _t(_0x44e57e){return _0x44e57e[_0x4161('0x1a')]['parent']==_0x44e57e[_0x4161('0x38')][_0x4161('0xd7')]&&_0x44e57e[_0x4161('0x1a')]['isAtStart'];}function Mt(_0x3c4abd,_0x2bb689,_0x388163,_0x47629a){const _0x23cefe=_0x50e4ca=>!_0x50e4ca[_0x4161('0x19')]['is']('$textProxy')&&!_0x47629a[_0x4161('0x6a')](_0x50e4ca[_0x4161('0x19')]),_0x4441ca=_0x3c4abd[_0x4161('0x38')][_0x4161('0xc8')](_0x23cefe),_0xd80282=_0x3c4abd[_0x4161('0x1a')]['getLastMatchingPosition'](_0x23cefe,{'direction':_0x4161('0x1c')});return(!_0x3c4abd[_0x4161('0x38')][_0x4161('0xe3')](_0x4441ca)||!_0x3c4abd[_0x4161('0x1a')]['isEqual'](_0xd80282))&&(_0x4441ca[_0x4161('0x128')](_0xd80282)?_0x388163[_0x4161('0x123')](_0x2bb689,{'range':_0x388163[_0x4161('0x8d')](_0x4441ca,_0xd80282)}):_0x388163[_0x4161('0xe0')](_0x2bb689),!0x0);}function $t(_0x3c96bc){return _0x83290(_0x3c96bc);}function Nt(_0x1f79da){const _0x2c97ae=_0x1f79da['start'][_0x4161('0xd7')];return _0x2c97ae&&_0x2c97ae['is'](_0x4161('0xab'));}function Rt(_0x20cc6e,_0x10a89e){const _0x4f24ae=_0x10a89e[_0x4161('0xe8')][_0x4161('0x6a')](_0x20cc6e)||_0x10a89e[_0x4161('0xe8')][_0x4161('0x116')](_0x20cc6e);return _0x10a89e['createRange'](_0x10a89e[_0x4161('0xd4')](_0x20cc6e,_0x4161('0x4')),_0x4f24ae?_0x10a89e[_0x4161('0x2f')](_0x20cc6e):_0x10a89e[_0x4161('0xd4')](_0x20cc6e,_0x4161('0x1a')));}function jt(_0x1ba294,_0xa9718e,_0x2dee7a,_0x25b5c6,_0x8f6b8f){if(!xt(_0x1ba294,_0xa9718e))return!0x1;if(_0x2dee7a[_0x4161('0x1a')][_0x4161('0xe3')](_0x25b5c6[_0x4161('0x38')]))return!0x0;if(_0x1ba294[_0x4161('0xad')]!=_0xa9718e[_0x4161('0xad')])return!0x1;if(!_0x2dee7a['end'][_0x4161('0xb9')](_0x25b5c6[_0x4161('0x38')]))return!0x1;const _0x296d60=_0x8f6b8f[_0x4161('0x8d')](_0x2dee7a['end'],_0x25b5c6[_0x4161('0x38')])[_0x4161('0x3f')]();for(const _0x19e0d5 of _0x296d60)if([_0x4161('0xd9'),_0x4161('0x101')][_0x4161('0x16')](_0x19e0d5[_0x4161('0xad')])&&_0x8f6b8f['schema']['isLimit'](_0x19e0d5['item']))return!0x1;return!0x0;}function xt(_0x27c445,_0x4a32da){return!(!_0x27c445[_0x4161('0xd5')]||!_0x4a32da[_0x4161('0xd5')])&&_0xca6935(_0x27c445[_0x4161('0x94')],_0x4a32da[_0x4161('0x94')]);}function Ut(_0x4319ac,_0x103eab){const _0x2dfd96=Ot(_0x4319ac[_0x4161('0x94')]),_0x666e7=Ot(_0x103eab);if(!_0x4319ac['_isDataLoaded'])return!0x1;for(const _0x5e7548 of Object[_0x4161('0x55')](_0x666e7))if(!_0xca6935(_0x2dfd96[_0x5e7548],_0x666e7[_0x5e7548]))return!0x1;return!0x0;}function Ot(_0x30cec8){const _0x38b712=Object[_0x4161('0x8')]({},_0x30cec8);return delete _0x38b712['skipNestingCheck'],delete _0x38b712[_0x4161('0x4b')],_0x38b712;}
23
+ const _0x42c5=['isUndo','_enabledCommands','map','ck-suggestion-marker-','creator','end','writer','formatInline:accept','execute','acceptSelectedSuggestions','isAtStart','markerToHighlight','acceptAllSuggestions','type','_cutOutSuggestionMarker','removeMarker','markDeletion','getChangedMarkers','_setSuggestionData','isBlock','trackChanges.trackFormatChanges','backward','authoredAt','substr','position','delete','data-suggestion','buildSuggestion','enableCommand','batch','TrackChangesEditing','mapper','isAtEnd','$marker','discardSuggestion','clone','config','acceptSuggestion','isSelectable','fetchCommentThread','getUser','getRange','normal','insert','keys','dataToMarker','formatBlock','define','isOwn','_registerDefaultCallbacks','containerElement','_splitMarkerName','deletion','containsRangeInObject','editingDowncast','markerReady','getShiftedBy','isInsideObject','add','_getExternalAuthor','tablePasteChainId','suggestionUnloaded','addClass','addMarkerName','getAncestors','ck-suggestion-marker-formatBlock','change:_saved','join','suggestion','return','CommentsRepository','isBefore','isExternal','isCollapsed','lowest','getDifference','deletion:','_adapter','never','_mergeNestedSuggestions','low','includes','ck-suggestion-marker--active','addCommentThread','clear','registerPostFixer','getFirstRange','getCommentThread','createRange','addMarker:suggestion:formatBlock','previous','dataReady','length','ready','showSuggestionHighlights','unbindElementFromMarkerName','every','differ','enqueueChange','change:data','_addThreadToSuggestion','name','plugins','addSuggestion','createdAt','isNextTo','high','_updateSuggestionData','containsPosition','@external','addRange','_suggestionFactory','options','_customCallbacks','formatGroupId','element','_getSuggestionData','insertion:join','trackChanges.mergeNestedSuggestions','track-changes-command-not-found','formatBlock:','markBlockFormat','isLocal','getMultiRangeId','getAttribute','Users','fromRange','_setSuggestionRange','formatInline:chain','formatInline:join','formatBlock:discard','getMarkers','highest','authorName','_model','some','ck-suggestion-marker','activeMarkers','commandName','markerNameToElements','_onDiscard','_addSuggestionMarker','size','$textProxy','widget','containsItem','createSelection','selection','howMany','collaboration.channelId','getLastMatchingPosition','then','updateMarker','schema','_saved','_handleNewSuggestionMarker','split','model','splitPosition','consumable','forceDefaultExecution','isTouching','PENDING_ACTION_SUGGESTION','getItems','item','trackChanges','init','always','sort','insertContent','listenTo','subType','markMultiRangeBlockFormat','suggestion-type','formatInline','updateSuggestion','locale','external:','removeMarkers','setSelection','multipleBlocks','refresh','editing','_joinSuggestions','track-changes-adapter-missing-getsuggestion','addMarker:suggestion','set','change:activeMarkers','markers','head','track-changes-suggestion-not-found','getSuggestionCallback','update:suggestion','moveTargetPosition','data','notReady','upcast','discard','stop','stopListening','accept','values','_refreshSuggestionsChain','reconvertMarker','rethrowUnexpectedError','fromCharCode','range','requires','remove','containsRange','getChanges','isInContent','applyOperation','getCustomProperty','assign','commentThread','rootName','formatInline:discard','newRange','push','get','parent','insertion:discard','getRanges','nodeAfter','change','_isForcedDefaultExecutionBlock','_removeSuggestion','catch','conversion','_commentsRepository','isIntersectingWithRange','attributes','rejected','from','deletion:accept','hasComments','suggestionChanged','toJSON','discardSelectedSuggestions','after','addComment','insertion:accept','detach','track-changes-user-not-found','$graveyard','author','resolve','track-changes-suggestion-data-mismatch','for','removeClass','getAllAdjacentSuggestions','markInlineFormat','_defaultCallbacks','before','nodeBefore','getFirstMarker','isAfter','markerName','editor','consume','insertion:','getWalker','next','markInsertion','_suggestions','_joinWithAdjacentSuggestions','elementStart','suggestionLoaded','isRemovable','insertion','formatBlock:chain','_suggestionState','oldRange','root','isEqual','error-saving-suggestion-data-suggestion-discarded','discardAllSuggestions','hasCommentThread','deletion:discard','skipNestingCheck','deletion:chain','forward','accepted','createElement','_isDataLoaded','_trackFormatChanges','originalSuggestionId','document','chain','_checkSuggestionCorrectness','_findSuggestions','trackChangesCommand','createPositionAt','splice','removed','_getAuthorFromId','formatBlock:join','isObject','_breakSuggestionMarker','filter','commands','documentSelection','isMultiRange','getSuggestions','multi','addMarker','createRangeIn','addHighlight','getSuggestion','isArray','fire','deleteContent','_rangeIsInLocalUserInsertion','unbind','dataDowncast','markMultiRangeDeletion','addUser','addSuggestionData','getIntersection','_createSuggestion','has','removeAttribute','start','value','isLimit','adapter'];(function(_0x35fd4e,_0x42c55c){const _0x17dd6a=function(_0x473391){while(--_0x473391){_0x35fd4e['push'](_0x35fd4e['shift']());}};_0x17dd6a(++_0x42c55c);}(_0x42c5,0x146));const _0x17dd=function(_0x35fd4e,_0x42c55c){_0x35fd4e=_0x35fd4e-0x0;let _0x17dd6a=_0x42c5[_0x35fd4e];return _0x17dd6a;};import{Plugin as _0x29a647,PendingActions as _0x2a1080}from'ckeditor5/src/core';import{LiveRange as _0x276727}from'ckeditor5/src/engine';import{CKEditorError as _0x13bd1d,uid as _0x434768,priorities as _0x55f837,logWarning as _0x1e7a6b}from'ckeditor5/src/utils';import{toWidget as _0x2f0234}from'ckeditor5/src/widget';import{Users as _0x3f939b,hashObject as _0x2020e9}from'ckeditor5-collaboration/src/collaboration-core';import _0x3b8642 from'./commands/trackchangescommand';import _0x3c897e from'./commands/acceptsuggestioncommand';import _0x42cce3 from'./commands/discardsuggestioncommand';import _0x441244 from'./commands/executeonallsuggestionscommand';import _0x1037f2 from'./commands/executeonselectedsuggestionscommand';import _0x5463d9 from'./suggestion';import _0x5c3eec from'./suggestiondescriptionfactory';import _0x2c3009 from'./integrations/alignment';import _0x283da0 from'./integrations/basicstyles';import _0x401eb5 from'./integrations/blockquote';import _0x5a0a6b from'./integrations/ckbox';import _0x310a55 from'./integrations/codeblock';import _0x5796b9 from'./integrations/comments';import _0x38a47a from'./integrations/deletecommand';import _0x415656 from'./integrations/documentlist';import _0x2951cd from'./integrations/entercommand';import _0x5bfdce from'./integrations/findandreplace';import _0x281dcc from'./integrations/font';import _0x589763 from'./integrations/formatpainter';import _0x4c23bf from'./integrations/heading';import _0x53b8d8 from'./integrations/highlight';import _0x257528 from'./integrations/horizontalline';import _0x5a2fb9 from'./integrations/htmlembed';import _0x5caea2 from'./integrations/image';import _0x57162f from'./integrations/imagereplace';import _0xc99eec from'./integrations/importword';import _0x5c6426 from'./integrations/indent';import _0x1fafe2 from'./integrations/inputcommand';import _0x2a9f8e from'./integrations/link';import _0x24922a from'./integrations/list';import _0xa7d515 from'./integrations/listproperties';import _0xe4d088 from'./integrations/mediaembed';import _0x1ebf3f from'./integrations/mention';import _0x3295b7 from'./integrations/pagebreak';import _0x583709 from'./integrations/paragraph';import _0x2f7b5b from'./integrations/removeformat';import _0x17fb98 from'./integrations/restrictededitingmode';import _0x3ddd24 from'./integrations/shiftentercommand';import _0x3de26c from'./integrations/standardeditingmode';import _0x47493e from'./integrations/style';import _0x15b373 from'./integrations/table';import _0x2b7db2 from'./integrations/tablemergesplit';import _0x2daff8 from'./integrations/tableheadings';import _0xa7fa3c from'./integrations/tableclipboard';import _0x657ca7 from'./integrations/tablecolumnresize';import _0x85eaea from'./integrations/template';import _0x4cd709 from'./integrations/tableofcontents';import _0x17d52c from'./integrations/title';import _0x995c78 from'./integrations/undo';import{getTranslation as _0x2f5d6f}from'./utils/common-translations';import _0x1864d5 from'./integrations/tablecaption';import _0x5d265d from'./integrations/documentlistproperties';import _0x54e42b from'./integrations/tableproperties';import{isEqual as _0x25a31b}from'lodash-es';export default class p extends _0x29a647{static get[_0x17dd('0xd0')](){return[_0x17dd('0x47'),_0x3f939b,_0x2a1080,_0x2c3009,_0x283da0,_0x401eb5,_0x5a0a6b,_0x310a55,_0x5796b9,_0x38a47a,_0x415656,_0x5d265d,_0x2951cd,_0x5bfdce,_0x281dcc,_0x589763,_0x4c23bf,_0x53b8d8,_0x257528,_0x5a2fb9,_0x5caea2,_0x57162f,_0xc99eec,_0x5c6426,_0x1fafe2,_0x2a9f8e,_0x24922a,_0xa7d515,_0xe4d088,_0x1ebf3f,_0x3295b7,_0x583709,_0x2f7b5b,_0x17fb98,_0x3ddd24,_0x3de26c,_0x47493e,_0x15b373,_0x2b7db2,_0x2daff8,_0x1864d5,_0xa7fa3c,_0x657ca7,_0x4cd709,_0x54e42b,_0x85eaea,_0x17d52c,_0x995c78];}static get['pluginName'](){return _0x17dd('0x1f');}constructor(_0x4199f3){function _0x57d7f7(_0x2a9416){return _0x2a9416[_0x17dd('0x3')](_0x17191f=>String[_0x17dd('0xce')](_0x17191f))[_0x17dd('0x44')]('');}super(_0x4199f3),this[_0x17dd('0xbb')](_0x17dd('0x8a'),[]),this['on'](_0x17dd('0xbc'),(_0x1d9d7d,_0x5e8f1b,_0x466fcb,_0x2aaf96)=>{this[_0x17dd('0x87')]['change'](()=>{for(const _0x4b718a of[..._0x2aaf96,..._0x466fcb])this[_0x17dd('0x87')][_0x17dd('0xbd')][_0x17dd('0x142')](_0x4b718a)&&_0x4199f3[_0x17dd('0xb7')][_0x17dd('0xcc')](_0x4b718a);});}),this['_descriptionFactory']=new _0x5c3eec(this['editor'][_0x17dd('0x9e')][_0x17dd('0x9a')],this[_0x17dd('0x104')][_0x17dd('0xb1')]),this[_0x17dd('0x4e')]=null,this[_0x17dd('0x70')]=new Dt(this[_0x17dd('0x104')]),this['_suggestions']=new Map(),this[_0x17dd('0xe7')]=_0x4199f3['plugins'][_0x17dd('0xdd')](_0x17dd('0x47')),this['_enabledCommands']=new Set(),this[_0x17dd('0x87')]=this[_0x17dd('0x104')][_0x17dd('0x9e')],this[_0x17dd('0x111')]=new WeakMap(),this[_0x17dd('0xe3')]=!0x1,_0x4199f3[_0x17dd('0x25')][_0x17dd('0x30')](_0x17dd('0x15'),'default'),this['_trackFormatChanges']=_0x4199f3[_0x17dd('0x25')][_0x17dd('0xdd')](_0x17dd('0x15')),_0x4199f3[_0x17dd('0x25')]['define'](_0x17dd('0x77'),!0x0),this[_0x17dd('0x50')]=_0x4199f3[_0x17dd('0x25')][_0x17dd('0xdd')]('trackChanges.mergeNestedSuggestions'),this[_0x17dd('0x125')]=new _0x3b8642(_0x4199f3,this['_enabledCommands']),this[_0x57d7f7([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x57d7f7([0x34,0x30,0x34,0x36,0x31,0x38,0x32,0x32]);}[_0x17dd('0xa7')](){const _0x549539=this['editor'];_0x549539[_0x17dd('0xe6')][_0x17dd('0xfa')]('editingDowncast')[_0x17dd('0xc')]({'model':_0x17dd('0x45'),'view':_0x1040a9=>{const {id:_0x99e15c,type:_0x45192c}=this[_0x17dd('0x34')](_0x1040a9[_0x17dd('0x103')]),_0x31ebbd=[_0x17dd('0x89'),_0x17dd('0x4')+_0x45192c];let _0x126bd1=0xbb8;return this[_0x17dd('0x8a')][_0x17dd('0x52')](_0x1040a9[_0x17dd('0x103')])&&(_0x31ebbd[_0x17dd('0xdc')](_0x17dd('0x53')),_0x126bd1=0xbc2),_0x17dd('0x35')==_0x45192c&&(_0x126bd1+=0x5),{'classes':_0x31ebbd,'attributes':{'data-suggestion':_0x99e15c},'priority':_0x126bd1};}}),_0x549539[_0x17dd('0xe6')][_0x17dd('0xfa')](_0x17dd('0x13c'))[_0x17dd('0x3b')](_0x6aaea7=>{_0x6aaea7['on'](_0x17dd('0xba'),(_0x4c36c7,_0x3390f7,_0x506ed9)=>{if(!_0x506ed9[_0x17dd('0x71')][_0x17dd('0x5f')])return;const _0x353772=_0x3390f7[_0x17dd('0xa5')];if(!_0x353772)return;const _0x58e4e4=_0x506ed9[_0x17dd('0x20')]['toViewElement'](_0x353772);_0x549539[_0x17dd('0x9e')]['schema'][_0x17dd('0x12b')](_0x353772)&&_0x58e4e4&&!_0x58e4e4[_0x17dd('0xd6')](_0x17dd('0x91'))&&_0x58e4e4['is'](_0x17dd('0x33'))&&_0x2f0234(_0x58e4e4,_0x506ed9[_0x17dd('0x7')]);},{'priority':_0x17dd('0x6b')});}),_0x549539['conversion'][_0x17dd('0xfa')](_0x17dd('0x13c'))[_0x17dd('0xc')]({'model':_0x17dd('0x45'),'view':(_0x28748a,_0x4bffc4)=>{if(!_0x4bffc4[_0x17dd('0x71')][_0x17dd('0x5f')])return null;const {type:_0x5de629}=this['_splitMarkerName'](_0x28748a[_0x17dd('0x103')]);return{'classes':[_0x17dd('0x89'),_0x17dd('0x4')+_0x5de629],'priority':0xbb8};}});const _0x265dca=({showActiveMarkers:_0x1f89e8=!0x0}={})=>(_0x1b3cbd,_0xfa4a73,_0x5563bd)=>{if(!_0xfa4a73[_0x17dd('0xa5')])return;if(_0xfa4a73[_0x17dd('0xa5')]['is'](_0x17dd('0x94')))return void _0x5563bd[_0x17dd('0xa0')][_0x17dd('0x105')](_0xfa4a73[_0x17dd('0xa5')],_0x1b3cbd[_0x17dd('0x66')]);const _0x5ed083=_0x5563bd['mapper']['toViewElement'](_0xfa4a73['item']);if(!(_0xfa4a73[_0x17dd('0xa5')]['is'](_0x17dd('0x74'))&&_0x549539['model']['schema'][_0x17dd('0x14')](_0xfa4a73['item'])&&!_0x5ed083[_0x17dd('0xd6')](_0x17dd('0x135'))))return;const {id:_0xe61d92}=this['_splitMarkerName'](_0xfa4a73['markerName']);_0x5563bd[_0x17dd('0x7')]['addClass']([_0x17dd('0x89'),_0x17dd('0x42')],_0x5ed083),_0x5563bd['writer']['setAttribute'](_0x17dd('0x1b'),_0xe61d92,_0x5ed083),_0x5563bd['mapper']['bindElementToMarker'](_0x5ed083,_0xfa4a73[_0x17dd('0x103')]),_0x1f89e8&&(this[_0x17dd('0x8a')][_0x17dd('0x52')](_0xfa4a73[_0x17dd('0x103')])?_0x5563bd[_0x17dd('0x7')][_0x17dd('0x3f')](_0x17dd('0x53'),_0x5ed083):_0x5563bd[_0x17dd('0x7')][_0x17dd('0xfb')]('ck-suggestion-marker--active',_0x5ed083));for(const _0x352f61 of _0x549539[_0x17dd('0x9e')][_0x17dd('0x134')](_0xfa4a73[_0x17dd('0xa5')])[_0x17dd('0xa4')]())_0x5563bd[_0x17dd('0xa0')][_0x17dd('0x105')](_0x352f61,_0x1b3cbd['name']);_0x5563bd['consumable'][_0x17dd('0x105')](_0xfa4a73['item'],_0x1b3cbd['name']);};_0x549539[_0x17dd('0xe6')][_0x17dd('0xfa')](_0x17dd('0x13c'))['add'](_0x11111b=>{_0x11111b['on'](_0x17dd('0x5a'),(_0x11f99b,_0x1c2f44,_0x3034ba)=>{_0x3034ba['options'][_0x17dd('0x5f')]&&_0x265dca({'showActiveMarkers':!0x1})(_0x11f99b,_0x1c2f44,_0x3034ba);},{'priority':_0x17dd('0x85')});}),_0x549539[_0x17dd('0xe6')]['for']('dataDowncast')['markerToData']({'model':_0x17dd('0x45'),'view':(_0x51429f,_0x31afea)=>_0x31afea[_0x17dd('0x71')][_0x17dd('0x5f')]?null:{'group':_0x17dd('0x45'),'name':_0x51429f[_0x17dd('0x18')](0xb)}}),_0x549539[_0x17dd('0xe6')]['for'](_0x17dd('0xc5'))['elementToElement']({'view':{'name':_0x17dd('0x45'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4ac70a,{writer:_0x425a41})=>{let _0x5c43d8='suggestion:'+_0x4ac70a['getAttribute'](_0x17dd('0xae'))+':'+_0x4ac70a['getAttribute']('id');return _0x4ac70a[_0x17dd('0x7d')]('marker-count')&&(_0x5c43d8+=':'+_0x4ac70a[_0x17dd('0x7d')]('marker-count')),_0x425a41[_0x17dd('0x11d')](_0x17dd('0x22'),{'data-name':_0x5c43d8});}}),_0x549539[_0x17dd('0xe6')][_0x17dd('0xfa')](_0x17dd('0xc5'))[_0x17dd('0x2e')]({'view':_0x17dd('0x45')}),_0x549539[_0x17dd('0xe6')][_0x17dd('0xfa')](_0x17dd('0x37'))['add'](_0x385114=>{_0x385114['on']('addMarker:suggestion:formatBlock',_0x265dca(),{'priority':_0x17dd('0x6b')});}),_0x549539[_0x17dd('0xe6')]['for'](_0x17dd('0x37'))[_0x17dd('0x3b')](_0x3323ac=>{_0x3323ac['on']('removeMarker:suggestion:formatBlock',(_0xe3c7f2,_0x59bc7e,_0x1e7444)=>{const _0x5353a5=_0x1e7444[_0x17dd('0x20')][_0x17dd('0x8c')](_0x59bc7e[_0x17dd('0x103')]);if(_0x5353a5)for(const _0x2a753f of _0x5353a5)_0x2a753f[_0x17dd('0xd6')]('addHighlight')||(_0x1e7444[_0x17dd('0x7')][_0x17dd('0xfb')](['ck-suggestion-marker','ck-suggestion-marker-formatBlock',_0x17dd('0x53')],_0x2a753f),_0x1e7444[_0x17dd('0x7')][_0x17dd('0x143')]('data-suggestion',_0x2a753f),_0x1e7444['mapper'][_0x17dd('0x60')](_0x2a753f,_0x59bc7e['markerName']));},{'priority':_0x17dd('0x6b')});}),_0x549539[_0x17dd('0x9e')][_0x17dd('0x121')][_0x17dd('0x56')](_0x499294=>{let _0x3d3f43=!0x1;const _0x47e2eb=Array[_0x17dd('0xeb')](_0x549539[_0x17dd('0x9e')][_0x17dd('0x121')]['differ'][_0x17dd('0x12')]()),_0xb71300=new Set();for(const {name:_0x430da8,data:_0x4b6d76}of _0x47e2eb){const {group:_0x48ae60,type:_0x2059ca,id:_0x4914e5}=this[_0x17dd('0x34')](_0x430da8);if(_0x17dd('0x45')!==_0x48ae60)continue;const _0x138917=this[_0x17dd('0x10a')][_0x17dd('0xdd')](_0x4914e5);if(null!=_0x4b6d76['newRange']){_0x17dd('0xaf')==_0x2059ca&&(_0x3d3f43=_0x3d3f43||Mt(_0x4b6d76[_0x17dd('0xdb')],_0x430da8,_0x499294,_0x549539[_0x17dd('0x9e')][_0x17dd('0x9a')]));if(_0x4b6d76[_0x17dd('0xdb')][_0x17dd('0x4a')]||_0x17dd('0xf6')==_0x4b6d76[_0x17dd('0xdb')][_0x17dd('0x113')]['rootName']||_0x17dd('0x2f')==_0x2059ca&&!Nt(_0x4b6d76[_0x17dd('0xdb')])||_0x17dd('0x35')==_0x2059ca&&!(!_t(_0x59df13=_0x4b6d76[_0x17dd('0xdb')])&&!function(_0x8f852f){return _0x8f852f[_0x17dd('0x144')][_0x17dd('0xde')]==_0x8f852f[_0x17dd('0x6')]['nodeBefore']&&_0x8f852f['start'][_0x17dd('0x21')];}(_0x59df13)))_0x499294[_0x17dd('0x10')](_0x430da8),_0x3d3f43=!0x0;else{if(!_0x138917||!_0x138917['isInContent'])continue;_0xb71300['add'](_0x138917);}}}var _0x59df13;return _0xb71300['size']>0x0&&(_0x3d3f43=!!this[_0x17dd('0x10b')](_0xb71300)||_0x3d3f43),_0x3d3f43;}),_0x549539[_0x17dd('0x9e')]['document'][_0x17dd('0x56')](_0x4a3b29=>{let _0x421476=!0x1;for(const _0x54955e of _0x549539['model']['document'][_0x17dd('0x62')][_0x17dd('0xd3')]()){if(_0x17dd('0x2c')!=_0x54955e[_0x17dd('0xe')])continue;const _0x4e4ce3=_0x54955e[_0x17dd('0x19')][_0x17dd('0x39')](_0x54955e['length']);if(_0x4e4ce3[_0x17dd('0x21')])for(const _0xdda557 of this[_0x17dd('0x10a')][_0x17dd('0xca')]()){if(_0xdda557[_0x17dd('0x130')]||!_0xdda557[_0x17dd('0xd4')])continue;if(_0x17dd('0x2f')!=_0xdda557[_0x17dd('0xe')])continue;const _0x27d555=_0xdda557[_0x17dd('0x57')]();if(_0x27d555['start'][_0x17dd('0xde')]!=_0x27d555[_0x17dd('0x6')][_0x17dd('0xde')]&&_0x27d555[_0x17dd('0x6')][_0x17dd('0x114')](_0x54955e[_0x17dd('0x19')])){const _0x243bcf=_0x549539['model'][_0x17dd('0x59')](_0x27d555[_0x17dd('0x144')],_0x4e4ce3);_0x4a3b29['updateMarker'](_0xdda557[_0x17dd('0x101')](),{'range':_0x243bcf}),_0x421476=!0x0;}}}return _0x421476;}),_0x549539[_0x17dd('0x9e')]['markers']['on'](_0x17dd('0xc1'),(_0x2f24fc,_0x45951d,_0x7eccff)=>{if(null==_0x7eccff){const {id:_0x3d1d43}=this[_0x17dd('0x34')](_0x45951d[_0x17dd('0x66')]),_0x1d5a8c=this[_0x17dd('0x10a')][_0x17dd('0xdd')](_0x3d1d43);_0x1d5a8c&&_0x1d5a8c[_0x17dd('0x40')](_0x45951d['name']);}}),_0x549539['model'][_0x17dd('0x121')]['on'](_0x17dd('0x64'),()=>{const _0xfc6c23=Array[_0x17dd('0xeb')](_0x549539[_0x17dd('0x9e')][_0x17dd('0x121')][_0x17dd('0x62')][_0x17dd('0x12')]())['filter'](_0x22b542=>_0x17dd('0x45')===this['_splitMarkerName'](_0x22b542[_0x17dd('0x66')])['group']);if(0x0===_0xfc6c23[_0x17dd('0x5d')])return;_0xfc6c23['sort']((_0x3965fe,_0x3e2017)=>{const _0x9c4b38=_0x3965fe[_0x17dd('0xc3')][_0x17dd('0x112')],_0x3a6444=_0x3e2017[_0x17dd('0xc3')][_0x17dd('0x112')];return null===_0x9c4b38&&null===_0x3a6444?0x0:null===_0x9c4b38&&null!==_0x3a6444?-0x1:null!==_0x9c4b38&&null===_0x3a6444?0x1:_0x9c4b38[_0x17dd('0x144')][_0x17dd('0x48')](_0x3a6444[_0x17dd('0x144')])?-0x1:0x1;});const _0x5ec734=new Set(),_0x276aa6=new Set();for(const {name:_0x244b1e,data:_0x4579db}of _0xfc6c23){const {id:_0x578d9a}=this['_splitMarkerName'](_0x244b1e);if(null===_0x4579db['oldRange']){const _0x52eb05=this[_0x17dd('0x9c')](_0x244b1e);_0x276aa6[_0x17dd('0x3b')](_0x52eb05);}else{const _0x19b656=this[_0x17dd('0x10a')]['get'](_0x578d9a);null!==_0x4579db[_0x17dd('0xdb')]||_0x19b656[_0x17dd('0xd4')]?(_0x5ec734[_0x17dd('0x3b')](_0x19b656[_0x17dd('0xbe')]),_0x276aa6[_0x17dd('0x3b')](_0x19b656)):this[_0x17dd('0xe4')](_0x19b656);}}_0x276aa6[_0x17dd('0x8f')]>0x0&&this[_0x17dd('0xcb')](_0x276aa6);for(const _0x4c593a of _0x5ec734)this['fire'](_0x17dd('0xee'),_0x4c593a);}),_0x549539['model']['on'](_0x17dd('0xd5'),(_0x3cf263,_0x4582e9)=>{const _0x35da08=_0x4582e9[0x0];if(!this['_suggestions']['size'])return;if(!_0x35da08['isDocumentOperation'])return;if(_0x35da08[_0x17dd('0x1e')][_0x17dd('0x1')]||!_0x35da08[_0x17dd('0x1e')][_0x17dd('0x7b')])return;let _0x29a6a6,_0x34502f;switch(_0x35da08[_0x17dd('0xe')]){case _0x17dd('0x2c'):_0x29a6a6=_0x549539[_0x17dd('0x9e')]['createPositionAt'](_0x35da08[_0x17dd('0x19')]),_0x34502f=_0x29a6a6['getShiftedBy'](_0x35da08[_0x17dd('0x95')]);break;case _0x17dd('0x9d'):_0x29a6a6=_0x549539[_0x17dd('0x9e')][_0x17dd('0x126')](_0x35da08[_0x17dd('0x9f')]),_0x34502f=_0x549539[_0x17dd('0x9e')][_0x17dd('0x126')](_0x35da08[_0x17dd('0xc2')]);break;case'move':_0x29a6a6=_0x549539['model'][_0x17dd('0x126')](_0x35da08['targetPosition']),_0x34502f=_0x29a6a6['getShiftedBy'](_0x35da08[_0x17dd('0x95')]);break;default:return;}const _0x507cf7=_0x549539[_0x17dd('0x9e')][_0x17dd('0x59')](_0x29a6a6,_0x34502f);_0x549539[_0x17dd('0x9e')][_0x17dd('0xe2')](()=>{for(const {suggestion:_0x4948c2,meta:_0x14b8e5}of this['_findSuggestions'](_0x507cf7)){if(_0x4948c2[_0x17dd('0x130')])continue;if(_0x17dd('0xaf')==_0x4948c2[_0x17dd('0xe')])continue;const _0x4b8d9f=_0x4948c2[_0x17dd('0xc3')]&&_0x4948c2[_0x17dd('0xc3')]['multipleBlocks'];('formatBlock'!=_0x4948c2['type']||_0x17dd('0x9d')==_0x35da08[_0x17dd('0xe')]&&!_0x4b8d9f)&&(_0x14b8e5[_0x17dd('0x36')]||_0x17dd('0x10f')==_0x4948c2[_0x17dd('0xe')]&&_0x14b8e5[_0x17dd('0x31')]||_0x4948c2[_0x17dd('0x57')]()['containsRange'](_0x507cf7)&&this[_0x17dd('0x12c')](_0x4948c2,_0x29a6a6,_0x34502f));}});},{'priority':_0x17dd('0x4b')}),_0x549539[_0x17dd('0x9e')]['on'](_0x17dd('0x139'),(_0x2c897e,_0x7920c0)=>{const _0x24b070=_0x7920c0[0x0],_0x444156=_0x7920c0[0x1];if(_0x444156&&_0x444156[_0x17dd('0xa1')])return;if(this[_0x17dd('0xe3')])return;if(!this[_0x17dd('0x125')]['value'])return;if(_0x24b070['isCollapsed'])return;const _0x5dbd0f=_0x549539['model'][_0x17dd('0x9a')],{start:_0x48a5ef,end:_0x46e1d0}=_0x24b070[_0x17dd('0x57')](),_0x2b9e3f=_0x48a5ef[_0x17dd('0xe1')]&&_0x5dbd0f[_0x17dd('0x146')](_0x48a5ef[_0x17dd('0xe1')])?null:_0x5dbd0f['getNearestSelectionRange'](_0x48a5ef,_0x17dd('0x11b')),_0x333601=_0x46e1d0['nodeBefore']&&_0x5dbd0f[_0x17dd('0x146')](_0x46e1d0[_0x17dd('0x100')])?null:_0x5dbd0f['getNearestSelectionRange'](_0x46e1d0,_0x17dd('0x16')),_0x47b46d=_0x549539['model']['createRange'](_0x2b9e3f?_0x2b9e3f[_0x17dd('0x144')]:_0x48a5ef,_0x333601?_0x333601[_0x17dd('0x6')]:_0x46e1d0);_0x549539[_0x17dd('0x9e')]['change'](_0x1f05dc=>{this[_0x17dd('0x11')](_0x47b46d);const _0x286736=_0x549539[_0x17dd('0x9e')]['schema']['getNearestSelectionRange'](_0x47b46d[_0x17dd('0x144')]);_0x24b070['is'](_0x17dd('0x12f'))?_0x1f05dc['setSelection'](_0x286736):_0x24b070['setTo'](_0x286736);}),_0x2c897e[_0x17dd('0xc7')]();},{'priority':_0x55f837[_0x17dd('0x2b')]+0xa}),_0x549539[_0x17dd('0x9e')]['on'](_0x17dd('0xaa'),(_0x21ba89,_0x681e8f)=>{const _0xdb5f76=_0x681e8f[_0x681e8f['length']-0x1];_0xdb5f76&&_0xdb5f76[_0x17dd('0xa1')]||this[_0x17dd('0xe3')]||this[_0x17dd('0x125')][_0x17dd('0x145')]&&(_0x549539[_0x17dd('0x9e')][_0x17dd('0xe2')](()=>{let _0x47ed7a=_0x549539[_0x17dd('0x9e')][_0x17dd('0xaa')](_0x681e8f[0x0],_0x681e8f[0x1],_0x681e8f[0x2],{'forceDefaultExecution':!0x0});if(!_0x47ed7a)return;_0x21ba89[_0x17dd('0x46')]=_0x47ed7a[_0x17dd('0x24')]();const _0x1e19ff=_0x47ed7a[_0x17dd('0x6')]['nodeBefore'],_0x22bb27=_0x549539[_0x17dd('0x9e')][_0x17dd('0x9a')];_0x1e19ff&&_0x22bb27[_0x17dd('0x14')](_0x1e19ff)&&!_0x22bb27[_0x17dd('0x12b')](_0x1e19ff)&&(_0x47ed7a=_0x549539[_0x17dd('0x9e')][_0x17dd('0x59')](_0x47ed7a['start'],_0x549539[_0x17dd('0x9e')][_0x17dd('0x126')](_0x1e19ff,_0x17dd('0x6')))),this[_0x17dd('0x109')](_0x47ed7a);}),_0x21ba89[_0x17dd('0xc7')]());},{'priority':_0x17dd('0x6b')}),this[_0x17dd('0x104')][_0x17dd('0x12e')]['add'](_0x17dd('0xa6'),this[_0x17dd('0x125')]),this[_0x17dd('0x1d')](_0x17dd('0xa6'));const _0x1d6c2d=new _0x3c897e(_0x549539,this[_0x17dd('0x10a')]);_0x549539['commands'][_0x17dd('0x3b')](_0x17dd('0x26'),_0x1d6c2d),this[_0x17dd('0x1d')](_0x17dd('0x26'));const _0x2527a7=new _0x42cce3(_0x549539,this[_0x17dd('0x10a')]);_0x549539[_0x17dd('0x12e')][_0x17dd('0x3b')](_0x17dd('0x23'),_0x2527a7),this[_0x17dd('0x1d')](_0x17dd('0x23')),_0x549539[_0x17dd('0x12e')][_0x17dd('0x3b')](_0x17dd('0xd'),new _0x441244(_0x549539,_0x1d6c2d,this['_suggestions'])),this[_0x17dd('0x1d')]('acceptAllSuggestions'),_0x549539[_0x17dd('0x12e')][_0x17dd('0x3b')](_0x17dd('0x116'),new _0x441244(_0x549539,_0x2527a7,this[_0x17dd('0x10a')])),this[_0x17dd('0x1d')](_0x17dd('0x116')),_0x549539[_0x17dd('0x12e')][_0x17dd('0x3b')](_0x17dd('0xa'),new _0x1037f2(_0x549539,_0x1d6c2d,this[_0x17dd('0x10a')])),this['enableCommand']('acceptSelectedSuggestions'),_0x549539[_0x17dd('0x12e')][_0x17dd('0x3b')](_0x17dd('0xf0'),new _0x1037f2(_0x549539,_0x2527a7,this[_0x17dd('0x10a')])),this[_0x17dd('0x1d')](_0x17dd('0xf0'));const _0xd30204=_0x549539[_0x17dd('0x67')][_0x17dd('0xdd')](_0x17dd('0x47'));this['listenTo'](_0xd30204,_0x17dd('0xf2'),(_0x5435d6,{threadId:_0x11864b})=>{const _0x231672=this[_0x17dd('0x10a')][_0x17dd('0xdd')](_0x11864b);_0x231672&&_0x231672[_0x17dd('0xd8')]&&0x1===_0x231672['commentThread'][_0x17dd('0x5d')]&&this[_0x17dd('0x6c')](_0x11864b,{'hasComments':!0x0});},{'priority':_0x17dd('0x51')}),this[_0x17dd('0xab')](_0xd30204,'removeComment',(_0x4e890f,{threadId:_0x3f638e})=>{const _0x44cea2=this[_0x17dd('0x10a')][_0x17dd('0xdd')](_0x3f638e);_0x44cea2&&_0x44cea2[_0x17dd('0xd8')]&&!_0x44cea2['commentThread'][_0x17dd('0x5d')]&&this[_0x17dd('0x6c')](_0x3f638e,{'hasComments':!0x1});},{'priority':_0x17dd('0x51')});}set[_0x17dd('0x0')](_0x50adb8){if(this['_adapter'])throw new _0x13bd1d('track-changes-adapter-already-set',this);this[_0x17dd('0x4e')]=_0x50adb8;}get[_0x17dd('0x0')](){return this[_0x17dd('0x4e')];}['getSuggestions']({skipNotAttached:_0x3faa6e=!0x1,toJSON:_0x369481=!0x1}={}){const _0xba8239=[];for(const _0x10db7b of this['_suggestions'][_0x17dd('0xca')]())_0x3faa6e&&!_0x10db7b[_0x17dd('0xd4')]||_0xba8239['push'](_0x10db7b);return _0x369481?_0xba8239[_0x17dd('0x3')](_0x456027=>_0x456027[_0x17dd('0xef')]()):_0xba8239;}[_0x17dd('0x136')](_0x2a3579){const _0x2e6853=this[_0x17dd('0x10a')][_0x17dd('0xdd')](_0x2a3579);if(!_0x2e6853)throw new _0x13bd1d(_0x17dd('0xbf'),this);return _0x2e6853;}['hasSuggestion'](_0x3675fc){return this[_0x17dd('0x10a')][_0x17dd('0x142')](_0x3675fc);}['addSuggestionData'](_0xd8cdfa){const {authorId:_0x24b92c,id:_0x2e5508,attributes:_0x39ae8c}=_0xd8cdfa,[_0x43bacf,_0x534451]=_0xd8cdfa[_0x17dd('0xe')][_0x17dd('0x9d')](':'),_0x5117fa=this[_0x17dd('0x10a')][_0x17dd('0xdd')](_0x2e5508)||this['_createSuggestion'](_0x43bacf,_0x534451,_0x2e5508,_0x24b92c,_0x39ae8c);if(this[_0x17dd('0x65')](_0x5117fa),this[_0x17dd('0x123')](_0x5117fa,_0x43bacf,_0x534451||null,_0x24b92c),_0x5117fa[_0x17dd('0x69')]=_0xd8cdfa[_0x17dd('0x69')],_0x5117fa[_0x17dd('0x11e')]=!0x0,_0x39ae8c&&_0x39ae8c[_0x17dd('0x6e')]){const _0x42d1a2=_0x39ae8c[_0x17dd('0x6e')],_0x3c8924=this[_0x17dd('0x3c')](_0x42d1a2[_0x17dd('0x86')]);_0x5117fa['authoredAt']=_0x42d1a2[_0x17dd('0x69')],_0x5117fa[_0x17dd('0xf7')]=_0x3c8924,_0x5117fa[_0x17dd('0x49')]=!0x0;}else _0x5117fa[_0x17dd('0x17')]=_0xd8cdfa[_0x17dd('0x69')];switch(_0xd8cdfa[_0x17dd('0xc3')]&&(_0x5117fa[_0x17dd('0xc3')]=_0xd8cdfa[_0x17dd('0xc3')]),_0xd8cdfa['attributes']&&(_0x5117fa[_0x17dd('0xe9')]=_0xd8cdfa[_0x17dd('0xe9')]),this[_0x17dd('0x4e')]&&this[_0x17dd('0x4e')]['addSuggestion']||(_0x5117fa[_0x17dd('0x9b')]=!0x0),this[_0x17dd('0x111')][_0x17dd('0xdd')](_0x5117fa)){case _0x17dd('0xc4'):this['_suggestionState'][_0x17dd('0xbb')](_0x5117fa,_0x17dd('0x5c'));break;case _0x17dd('0x38'):_0x5117fa['isInContent']?(this[_0x17dd('0xcb')](new Set([_0x5117fa])),this[_0x17dd('0x10b')](new Set([_0x5117fa])),this[_0x17dd('0x111')][_0x17dd('0xbb')](_0x5117fa,_0x17dd('0x5e')),this[_0x17dd('0x138')](_0x17dd('0x10d'),_0x5117fa)):this[_0x17dd('0x111')]['set'](_0x5117fa,'removed');}return _0x5117fa;}[_0x17dd('0x26')](_0x28251c){this['forceDefaultExecution'](()=>{this[_0x17dd('0x104')][_0x17dd('0x9e')][_0x17dd('0xe2')](()=>{for(const _0x187866 of _0x28251c[_0x17dd('0xfc')]())_0x187866[_0x17dd('0xc9')]();});});}['discardSuggestion'](_0x439909){this[_0x17dd('0xa1')](()=>{this[_0x17dd('0x104')]['model'][_0x17dd('0xe2')](()=>{for(const _0x4d3a1a of _0x439909[_0x17dd('0xfc')]())_0x4d3a1a['discard']();});});}[_0x17dd('0x1d')](_0x36c27a,_0x4b9ec7){const _0x4fd913=this[_0x17dd('0x104')][_0x17dd('0x12e')][_0x17dd('0xdd')](_0x36c27a);if(!_0x4fd913)throw new _0x13bd1d(_0x17dd('0x78'),this,{'commandName':_0x36c27a});this[_0x17dd('0x2')]['add'](_0x4fd913),_0x4b9ec7&&_0x4fd913['on']('execute',(_0x330603,_0x409010)=>{this['trackChangesCommand']['value']&&(this[_0x17dd('0xe3')]||_0x409010['length']>0x0&&_0x409010[_0x409010[_0x17dd('0x5d')]-0x1]&&_0x409010[_0x409010[_0x17dd('0x5d')]-0x1][_0x17dd('0xa1')]||(_0x4b9ec7((..._0x1840f1)=>_0x4fd913[_0x17dd('0x9')](..._0x1840f1,{'forceDefaultExecution':!0x0}),..._0x409010),_0x330603[_0x17dd('0xc7')]()));},{'priority':_0x17dd('0x6b')});}['forceDefaultExecution'](_0x4364af){let _0x52b78d,_0x5c843e;const _0x16008f=this[_0x17dd('0xe3')];this[_0x17dd('0xe3')]=!0x0;try{_0x52b78d=_0x4364af();}catch(_0x433ac6){_0x5c843e=_0x433ac6;}return _0x16008f||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5c843e&&_0x13bd1d[_0x17dd('0xcd')](_0x5c843e,this),_0x52b78d;}[_0x17dd('0x109')](_0xbebce2,_0x472a35=null,_0x7dba93={}){if(_0xbebce2['isCollapsed'])return null;const _0x11219a=this[_0x17dd('0x104')][_0x17dd('0x67')][_0x17dd('0xdd')]('Users')['me'];for(const {suggestion:_0x2e876d,meta:_0x55c6d7}of this['_findSuggestions'](_0xbebce2,_0x17dd('0x10f')))if(_0x55c6d7['isOwn']){if(!_0x55c6d7[_0x17dd('0x6a')]){if(_0x55c6d7[_0x17dd('0x36')]){if(!this['_mergeNestedSuggestions']||!Ut(_0x2e876d,_0x7dba93))continue;return _0x2e876d;}if(Ut(_0x2e876d,_0x7dba93))return _0x2e876d;this[_0x17dd('0x12c')](_0x2e876d,_0xbebce2[_0x17dd('0x144')],_0xbebce2[_0x17dd('0x6')]);break;}if(_0x472a35==_0x2e876d['subType']&&Ut(_0x2e876d,_0x7dba93)){const _0x41e383=_0x2e876d[_0x17dd('0x57')]();return _0x41e383[_0x17dd('0x144')]['isEqual'](_0xbebce2['end'])?this[_0x17dd('0x80')](_0x2e876d,this['_model'][_0x17dd('0x59')](_0xbebce2[_0x17dd('0x144')],_0x41e383[_0x17dd('0x6')])):this[_0x17dd('0x80')](_0x2e876d,this[_0x17dd('0x87')][_0x17dd('0x59')](_0x41e383[_0x17dd('0x144')],_0xbebce2['end'])),_0x2e876d;}}const _0x57f92a=_0x434768(),_0x1b7aa3=_0x11219a['id'],_0x3f3951=_0x472a35?_0x17dd('0x106')+_0x472a35:'insertion',_0x369c7c=this['_setSuggestionData']({'id':_0x57f92a,'type':_0x3f3951,'createdAt':new Date(),'authorId':_0x1b7aa3,'attributes':_0x7dba93});return this[_0x17dd('0x8e')](_0x3f3951,_0x57f92a,_0x1b7aa3,_0xbebce2),_0x369c7c;}['markMultiRangeInsertion'](_0x4ede5c,_0x35af59=_0x17dd('0x132'),_0x3346f0={}){const _0x4d1a03=this[_0x17dd('0x104')][_0x17dd('0x67')]['get'](_0x17dd('0x7e'))['me'],_0x270a2d=this[_0x17dd('0x70')]['getSuggestionCallback'](_0x17dd('0x10f'),_0x35af59,_0x17dd('0x44'));for(const _0x26e58c of this[_0x17dd('0x131')]())if(_0x26e58c[_0x17dd('0xf7')]['id']==_0x4d1a03['id']&&_0x17dd('0x10f')==_0x26e58c['type']&&_0x26e58c[_0x17dd('0xac')]==_0x35af59&&Ut(_0x26e58c,_0x3346f0)&&(_0x270a2d(_0x26e58c[_0x17dd('0xe0')](),_0x4ede5c)||_0x270a2d(_0x4ede5c,_0x26e58c[_0x17dd('0xe0')]()))){for(const _0x4ef868 of _0x4ede5c)_0x26e58c['addRange'](_0x4ef868);return _0x26e58c;}for(const {suggestion:_0x3bfec9,meta:_0x4d8508}of this[_0x17dd('0x124')](_0x4ede5c,_0x17dd('0x10f'))){if(!_0x4d8508['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4d8508[_0x17dd('0x36')])continue;if(!Ut(_0x3bfec9,_0x3346f0))continue;let _0x2129db=!0x0;for(const _0x1700fc of _0x3bfec9[_0x17dd('0xe0')]())for(const _0x2df4ee of _0x4ede5c)if(!_0x1700fc[_0x17dd('0xd2')](_0x2df4ee)){_0x2129db=!0x1;break;}if(_0x2129db)return _0x3bfec9;}const _0x241682=_0x434768(),_0x20e303=_0x4d1a03['id'],_0x28c00f=_0x17dd('0x106')+_0x35af59,_0x563284=this[_0x17dd('0x13')]({'id':_0x241682,'type':_0x28c00f,'createdAt':new Date(),'authorId':_0x20e303,'attributes':_0x3346f0});for(const _0x5123b8 of _0x4ede5c)this[_0x17dd('0x8e')](_0x28c00f,_0x241682,_0x20e303,_0x5123b8,_0x5463d9[_0x17dd('0x7c')]());return _0x563284;}[_0x17dd('0xfd')](_0x5f5a63,_0x131854,_0x312b7b=null,_0x20c412={}){if(_0x312b7b=_0x312b7b||$t(_0x131854),_0x5f5a63['isCollapsed'])return null;if('never'===this[_0x17dd('0x11f')]){const _0x47810e=this[_0x17dd('0x70')][_0x17dd('0xc0')](_0x17dd('0xaf'),_0x312b7b,_0x17dd('0xc9'));return this[_0x17dd('0xa1')](()=>_0x47810e([_0x5f5a63],_0x131854,_0x20c412)),null;}const _0x3dc8fb=this[_0x17dd('0x104')][_0x17dd('0x67')][_0x17dd('0xdd')](_0x17dd('0x7e'))['me'],_0x18e033=[];if('always'!==this[_0x17dd('0x11f')])for(const {suggestion:_0x4bb22e,meta:_0x2b8ccd}of this[_0x17dd('0x124')](_0x5f5a63,_0x17dd('0x10f')))_0x2b8ccd[_0x17dd('0x31')]&&!_0x2b8ccd[_0x17dd('0x3a')]&&_0x18e033[_0x17dd('0xdc')](..._0x4bb22e[_0x17dd('0xe0')]());const _0x38d4a1=function(_0x1eaf64,_0x5a8212){const _0x117778=[];for(const _0x3cc7de of _0x5a8212){const _0x508bf2=_0x1eaf64[_0x17dd('0x140')](_0x3cc7de);_0x508bf2&&_0x117778[_0x17dd('0xdc')](_0x508bf2);}return _0x117778;}(_0x5f5a63,_0x18e033),_0x2e1183=function(_0x2f1465,_0xee0097){const _0x58c67d=[_0x2f1465];for(const _0x1ba951 of _0xee0097){let _0x4f5ad1=0x0;for(;_0x4f5ad1<_0x58c67d['length'];){const _0x16011f=_0x58c67d[_0x4f5ad1][_0x17dd('0x4c')](_0x1ba951);_0x58c67d[_0x17dd('0x127')](_0x4f5ad1,0x1,..._0x16011f),_0x4f5ad1+=_0x16011f[_0x17dd('0x5d')];}}return _0x58c67d;}(_0x5f5a63,_0x18e033);_0x38d4a1[_0x17dd('0x5d')]&&this['_model'][_0x17dd('0xe2')](()=>{for(const _0x3a4eed of _0x38d4a1){const _0x55e1ed=this[_0x17dd('0x70')][_0x17dd('0xc0')]('formatInline',_0x312b7b,'accept');this['forceDefaultExecution'](()=>_0x55e1ed([_0x3a4eed],_0x131854,_0x20c412));}});for(const _0x42d5d8 of _0x2e1183){let _0x1cc46f=null,_0x458fd6=_0x42d5d8[_0x17dd('0x144')],_0x1c716e=_0x42d5d8[_0x17dd('0x6')];for(const {suggestion:_0x367ef5,meta:_0x2ce47}of this['_findSuggestions'](_0x42d5d8,_0x17dd('0xaf'))){if(!_0x2ce47['isOwn'])continue;if(_0x367ef5[_0x17dd('0xac')]!=_0x312b7b)continue;if(!Ut(_0x367ef5,_0x20c412))continue;const _0x535d97=_0x367ef5['getFirstRange']();if(_0x535d97['containsRange'](_0x42d5d8,!0x0))return null;_0x458fd6=_0x458fd6[_0x17dd('0x48')](_0x535d97[_0x17dd('0x144')])?_0x458fd6:_0x535d97[_0x17dd('0x144')],_0x1c716e=_0x1c716e['isAfter'](_0x535d97[_0x17dd('0x6')])?_0x1c716e:_0x535d97[_0x17dd('0x6')],_0x1cc46f?_0x535d97[_0x17dd('0x144')]['isBefore'](_0x1cc46f[_0x17dd('0x57')]()[_0x17dd('0x144')])?(_0x1cc46f[_0x17dd('0xb3')](),_0x1cc46f=_0x367ef5):_0x367ef5[_0x17dd('0xb3')]():_0x1cc46f=_0x367ef5;}const _0x3a27fd=this[_0x17dd('0x87')][_0x17dd('0x59')](_0x458fd6,_0x1c716e);if(_0x1cc46f)this[_0x17dd('0x80')](_0x1cc46f,_0x3a27fd);else{const _0x37ecfd=_0x434768(),_0x16289a=_0x3dc8fb['id'];this[_0x17dd('0x13')]({'id':_0x37ecfd,'type':'formatInline:'+_0x312b7b,'data':_0x131854,'createdAt':new Date(),'authorId':_0x16289a,'attributes':_0x20c412}),this[_0x17dd('0x8e')]('formatInline:'+_0x312b7b,_0x37ecfd,_0x16289a,_0x3a27fd);}}return null;}[_0x17dd('0x7a')](_0x4cf6d0,_0x1203ad,_0x1a27b1=[],_0xda204e=null,_0x8866b8={}){_0x1203ad['formatGroupId']||(_0x1203ad[_0x17dd('0x73')]=_0x1203ad[_0x17dd('0x8b')]),_0x1203ad[_0x17dd('0xb5')]=_0x4cf6d0['is'](_0x17dd('0xcf')),_0xda204e=_0xda204e||$t(_0x1203ad);const _0x55c229=_0x1a27b1[_0x17dd('0x3')](_0x28d3d2=>Rt(_0x28d3d2,this[_0x17dd('0x87')])),_0x5bbb69=_0x4cf6d0['is'](_0x17dd('0xcf'))?_0x4cf6d0:Rt(_0x4cf6d0,this[_0x17dd('0x87')]);if(_0x17dd('0x4f')===this[_0x17dd('0x11f')]){const _0x2e62fe=this[_0x17dd('0x70')][_0x17dd('0xc0')](_0x17dd('0x2f'),_0xda204e,'accept');return this[_0x17dd('0xa1')](()=>_0x2e62fe([_0x5bbb69],_0x1203ad,_0x8866b8)),null;}_0x55c229['push'](_0x5bbb69);let _0x3f7acc=!0x0;for(const _0x2d6249 of _0x55c229)if(!this[_0x17dd('0x13a')](_0x2d6249)){_0x3f7acc=!0x1;break;}if(_0x3f7acc&&_0x17dd('0xa8')!==this[_0x17dd('0x11f')]){const _0x437d2f=this[_0x17dd('0x70')][_0x17dd('0xc0')](_0x17dd('0x2f'),_0xda204e,_0x17dd('0xc9'));return this[_0x17dd('0xa1')](()=>_0x437d2f([_0x5bbb69],_0x1203ad,_0x8866b8)),null;}let _0x23dcc6=null,_0x489591=_0x5bbb69['start'],_0x5ee15c=_0x5bbb69[_0x17dd('0x6')];for(const {suggestion:_0x310dd3,meta:_0x22336f}of this[_0x17dd('0x124')](_0x5bbb69,_0x17dd('0x2f'))){if(!_0x22336f[_0x17dd('0x31')])continue;if(_0x22336f['isNextTo']||_0x22336f[_0x17dd('0x36')]||_0x22336f['isInsideObject'])continue;if(_0x310dd3[_0x17dd('0xc3')][_0x17dd('0x73')]!=_0x1203ad['formatGroupId'])continue;if(!Ut(_0x310dd3,_0x8866b8))continue;const _0x21bd71=_0x310dd3['getFirstRange']();if(_0x310dd3['subType']==_0xda204e){if(_0x21bd71['containsRange'](_0x5bbb69,!0x0))return null;_0x489591=_0x489591[_0x17dd('0x48')](_0x21bd71[_0x17dd('0x144')])?_0x489591:_0x21bd71[_0x17dd('0x144')],_0x5ee15c=_0x5ee15c[_0x17dd('0x102')](_0x21bd71[_0x17dd('0x6')])?_0x5ee15c:_0x21bd71[_0x17dd('0x6')],_0x23dcc6?_0x21bd71['start'][_0x17dd('0x48')](_0x23dcc6[_0x17dd('0x57')]()[_0x17dd('0x144')])?(_0x23dcc6['removeMarkers'](),_0x23dcc6=_0x310dd3):_0x310dd3[_0x17dd('0xb3')]():_0x23dcc6=_0x310dd3;}else{const _0x33c95=_0x5bbb69[_0x17dd('0x140')](_0x21bd71);this[_0x17dd('0xf')](_0x310dd3,_0x33c95);}}const _0x51404e=this[_0x17dd('0x104')]['plugins'][_0x17dd('0xdd')](_0x17dd('0x7e'))['me'],_0x56a96b=_0x434768(),_0x6f6a2c=_0x51404e['id'];if(_0x23dcc6)return this['_setSuggestionRange'](_0x23dcc6,this[_0x17dd('0x87')][_0x17dd('0x59')](_0x489591,_0x5ee15c)),_0x23dcc6;{const _0x28a5b0=this[_0x17dd('0x13')]({'id':_0x56a96b,'type':'formatBlock:'+_0xda204e,'data':_0x1203ad,'createdAt':new Date(),'authorId':_0x6f6a2c,'attributes':_0x8866b8});return this['_addSuggestionMarker'](_0x17dd('0x79')+_0xda204e,_0x56a96b,_0x6f6a2c,this[_0x17dd('0x87')][_0x17dd('0x59')](_0x489591,_0x5ee15c)),_0x28a5b0;}}[_0x17dd('0xad')](_0x147db1,_0x3cb8a6,_0xf6ae91=[],_0x25e060=null,_0x85aa8e={}){_0x3cb8a6[_0x17dd('0x73')]||(_0x3cb8a6[_0x17dd('0x73')]=_0x3cb8a6[_0x17dd('0x8b')]);const _0x38bfcf=_0x147db1[0x0];_0x3cb8a6[_0x17dd('0xb5')]=_0x38bfcf['is'](_0x17dd('0xcf')),_0x25e060=_0x25e060||$t(_0x3cb8a6);const _0x551dbe=_0xf6ae91[_0x17dd('0x3')](_0x4dbf13=>Rt(_0x4dbf13,this[_0x17dd('0x87')])),_0x2ec959=_0x38bfcf['is'](_0x17dd('0xcf'))?_0x147db1:_0x147db1[_0x17dd('0x3')](_0x5210f0=>Rt(_0x5210f0,this[_0x17dd('0x87')]));if(_0x17dd('0x4f')===this[_0x17dd('0x11f')]){const _0x49dbf2=this[_0x17dd('0x70')]['getSuggestionCallback']('formatBlock',_0x25e060,_0x17dd('0xc9'));return this[_0x17dd('0xa1')](()=>_0x49dbf2(_0x2ec959,_0x3cb8a6,_0x85aa8e)),null;}_0x551dbe['push'](..._0x2ec959);let _0x3c09bb=!0x0;for(const _0x4e26ff of _0x551dbe)if(!this['_rangeIsInLocalUserInsertion'](_0x4e26ff)){_0x3c09bb=!0x1;break;}if(_0x3c09bb&&'always'!==this[_0x17dd('0x11f')]){const _0x1eb7d9=this['_suggestionFactory'][_0x17dd('0xc0')](_0x17dd('0x2f'),_0x25e060,_0x17dd('0xc9'));return this['forceDefaultExecution'](()=>_0x1eb7d9(_0x2ec959,_0x3cb8a6,_0x85aa8e)),null;}const _0x4cdddc=this[_0x17dd('0x104')][_0x17dd('0x67')][_0x17dd('0xdd')]('Users')['me'];for(const _0x1495af of this[_0x17dd('0x131')]()){if(_0x1495af[_0x17dd('0xf7')]['id']!=_0x4cdddc['id'])continue;if('formatBlock'!=_0x1495af['type']||_0x1495af['data'][_0x17dd('0x73')]!=_0x3cb8a6[_0x17dd('0x73')])continue;if(!Ut(_0x1495af,_0x85aa8e))continue;const _0x113773=_0x1495af['subType']==_0x25e060;for(let _0x148027=0x0;_0x148027<_0x2ec959[_0x17dd('0x5d')];_0x148027++){const _0x536c70=_0x2ec959[_0x148027];for(const _0x3449dc of _0x1495af[_0x17dd('0x84')]()){const _0x1a2414=_0x3449dc[_0x17dd('0x2a')]();if(_0x536c70[_0x17dd('0x114')](_0x1a2414)){_0x113773?(_0x2ec959['splice'](_0x148027,0x1),_0x148027--):_0x1495af[_0x17dd('0x10')](_0x3449dc[_0x17dd('0x66')]);break;}}}}if(0x0==_0x2ec959[_0x17dd('0x5d')])return null;const _0x1fbca8=this['_suggestionFactory'][_0x17dd('0xc0')](_0x17dd('0x2f'),_0x25e060,_0x17dd('0x44'));for(const _0x52b91f of this[_0x17dd('0x131')]())if(_0x52b91f[_0x17dd('0xf7')]['id']==_0x4cdddc['id']&&_0x17dd('0x2f')==_0x52b91f[_0x17dd('0xe')]&&_0x52b91f[_0x17dd('0xc3')][_0x17dd('0x73')]==_0x3cb8a6['formatGroupId']&&_0x52b91f[_0x17dd('0xac')]==_0x25e060&&Ut(_0x52b91f,_0x85aa8e)&&(_0x1fbca8(_0x52b91f[_0x17dd('0xe0')](),_0x2ec959)||_0x1fbca8(_0x2ec959,_0x52b91f[_0x17dd('0xe0')]()))){for(const _0x5f5cda of _0x2ec959)_0x52b91f['addRange'](_0x5f5cda);return _0x52b91f;}const _0x3783ce=_0x434768(),_0x54cd71=_0x4cdddc['id'],_0x5215b0='formatBlock:'+_0x25e060,_0x26493e=this[_0x17dd('0x13')]({'id':_0x3783ce,'type':_0x5215b0,'data':_0x3cb8a6,'createdAt':new Date(),'authorId':_0x54cd71,'attributes':_0x85aa8e});for(const _0x43c0af of _0x2ec959)this['_addSuggestionMarker'](_0x5215b0,_0x3783ce,_0x54cd71,_0x43c0af,_0x5463d9[_0x17dd('0x7c')]());return _0x26493e;}[_0x17dd('0x11')](_0x56123d,_0x51afeb=null,_0x160a34={}){if(_0x56123d['isCollapsed'])return null;const _0x678f40=this[_0x17dd('0x104')][_0x17dd('0x67')][_0x17dd('0xdd')]('Users')['me'],_0x5b9e13=new _0x276727(_0x56123d['start'],_0x56123d[_0x17dd('0x6')]);for(const {suggestion:_0x777184,meta:_0x3525ef}of this[_0x17dd('0x124')](_0x5b9e13,_0x17dd('0x10f')))if(_0x3525ef[_0x17dd('0x31')]&&!_0x3525ef[_0x17dd('0x6a')]){if(_0x777184[_0x17dd('0x130')]){const _0xf61dac=_0x777184[_0x17dd('0xe0')]()[_0x17dd('0x12d')](_0x143ae4=>'$graveyard'!=_0x143ae4[_0x17dd('0x113')][_0x17dd('0xd9')]);_0xf61dac[_0x17dd('0x61')](_0x39ad05=>_0x5b9e13['containsRange'](_0x39ad05,!0x0))&&_0x777184[_0x17dd('0xc6')]();if(_0xf61dac['some'](_0x4a45e8=>_0x4a45e8[_0x17dd('0xd2')](_0x5b9e13,!0x0))){const _0x2dc14d=this[_0x17dd('0x70')][_0x17dd('0xc0')](_0x17dd('0x35'),_0x51afeb,_0x17dd('0xc9'));return this[_0x17dd('0xa1')](()=>_0x2dc14d([_0x5b9e13],null,_0x160a34)),null;}}else{const _0x8dc4b9=_0x5b9e13[_0x17dd('0x140')](_0x777184[_0x17dd('0x57')]());null!==_0x8dc4b9&&_0x777184[_0x17dd('0x8d')]([_0x8dc4b9],null,_0x160a34);}}if(_0x5b9e13[_0x17dd('0xf4')](),_0x5b9e13[_0x17dd('0x4a')]||_0x17dd('0xf6')==_0x5b9e13['root']['rootName'])return null;let _0x2395e3=null,_0x337980=_0x5b9e13[_0x17dd('0x144')],_0x3aef40=_0x5b9e13[_0x17dd('0x6')];const _0x59fce8=this[_0x17dd('0x124')](_0x5b9e13,_0x17dd('0x35'));for(const {suggestion:_0x528a78,meta:_0x6be25d}of _0x59fce8){const _0x191b78=this[_0x17dd('0x87')][_0x17dd('0x59')](_0x337980,_0x3aef40);if(_0x6be25d[_0x17dd('0x31')]&&(this['_mergeNestedSuggestions']||!_0x6be25d['containsRangeInObject']&&!_0x6be25d['isInsideObject'])){if(_0x528a78['isMultiRange']){if(!Ut(_0x528a78,_0x160a34))continue;let _0x5ef061=!0x0;for(const _0x3b1522 of _0x528a78[_0x17dd('0xe0')]()){if(_0x3b1522[_0x17dd('0xd2')](_0x191b78,!0x0))return _0x528a78;_0x191b78[_0x17dd('0xd2')](_0x3b1522)||(_0x5ef061=!0x1);}_0x5ef061&&_0x528a78['discard']();}else{const _0x44d3d2=_0x528a78['getFirstRange']();if(_0x44d3d2['containsRange'](_0x191b78,!0x0))return _0x528a78;if(!Ut(_0x528a78,_0x160a34)){_0x191b78[_0x17dd('0xd2')](_0x44d3d2)?_0x528a78['removeMarkers']():_0x44d3d2[_0x17dd('0x6d')](_0x337980)?_0x337980=_0x44d3d2[_0x17dd('0x6')]:_0x44d3d2[_0x17dd('0x6d')](_0x3aef40)&&(_0x3aef40=_0x44d3d2['start']);continue;}_0x337980=_0x337980[_0x17dd('0x48')](_0x44d3d2[_0x17dd('0x144')])?_0x337980:_0x44d3d2['start'],_0x3aef40=_0x3aef40['isAfter'](_0x44d3d2[_0x17dd('0x6')])?_0x3aef40:_0x44d3d2[_0x17dd('0x6')],_0x160a34=Object[_0x17dd('0xd7')]({},_0x528a78[_0x17dd('0xe9')]),_0x2395e3?_0x44d3d2['start'][_0x17dd('0x48')](_0x2395e3[_0x17dd('0x57')]()[_0x17dd('0x144')])?(_0x2395e3['removeMarkers'](),_0x2395e3=_0x528a78):_0x528a78[_0x17dd('0xb3')]():_0x2395e3=_0x528a78;}}}if(_0x2395e3)return this['_setSuggestionRange'](_0x2395e3,this[_0x17dd('0x87')][_0x17dd('0x59')](_0x337980,_0x3aef40)),_0x2395e3;{const _0x34f89e=_0x434768(),_0x23229c=this[_0x17dd('0x87')][_0x17dd('0x59')](_0x337980,_0x3aef40),_0x935b63=_0x678f40['id'],_0x4f8f00=_0x51afeb?_0x17dd('0x4d')+_0x51afeb:'deletion',_0x4c0eff=this[_0x17dd('0x13')]({'id':_0x34f89e,'type':_0x4f8f00,'createdAt':new Date(),'authorId':_0x935b63,'attributes':_0x160a34});return this[_0x17dd('0x8e')](_0x4f8f00,_0x34f89e,_0x935b63,_0x23229c),_0x4c0eff;}}[_0x17dd('0x13d')](_0x4f2f44,_0x215e3c=_0x17dd('0x132'),_0x4979c2={}){const _0x10c693=this[_0x17dd('0x104')][_0x17dd('0x67')][_0x17dd('0xdd')]('Users')['me'],_0x161b2a=_0x4f2f44[_0x17dd('0x3')](_0x4723d8=>new _0x276727(_0x4723d8['start'],_0x4723d8['end'])),_0x3a4aa9=new Set();for(const {suggestion:_0xea4210,meta:_0x466d52}of this[_0x17dd('0x124')](_0x161b2a,'insertion'))_0x466d52['isOwn']&&!_0x466d52[_0x17dd('0x6a')]&&_0x3a4aa9[_0x17dd('0x3b')](_0xea4210);for(const _0x213619 of _0x3a4aa9)if(_0x213619['isMultiRange']){const _0xcda8cc=_0x213619[_0x17dd('0xe0')]();(!_0x213619['attributes']||!_0x213619[_0x17dd('0xe9')][_0x17dd('0x119')])&&(_0xcda8cc['every'](_0x2fc3a6=>_0x161b2a['some'](_0x3794ab=>_0x3794ab['containsRange'](_0x2fc3a6,!0x0)))&&_0x213619[_0x17dd('0xc6')]());if(_0x161b2a['every'](_0x3fe96a=>_0xcda8cc[_0x17dd('0x88')](_0x18cb8c=>_0x18cb8c[_0x17dd('0xd2')](_0x3fe96a,!0x0)))){const _0x1ee19b=this[_0x17dd('0x70')][_0x17dd('0xc0')]('deletion',_0x215e3c,_0x17dd('0xc9'));return this[_0x17dd('0xa1')](()=>_0x1ee19b(_0x4f2f44,null,_0x4979c2)),null;}}else{const _0xe7912=_0x213619['getFirstRange']();_0x161b2a[_0x17dd('0x88')](_0x2b8dfb=>_0x2b8dfb[_0x17dd('0xd2')](_0xe7912,!0x0))&&_0x213619['discard']();if(_0x161b2a['every'](_0xd1bcde=>_0xe7912[_0x17dd('0xd2')](_0xd1bcde,!0x0))){const _0x472883=this[_0x17dd('0x70')][_0x17dd('0xc0')](_0x17dd('0x35'),_0x215e3c,_0x17dd('0xc9'));return this['forceDefaultExecution'](()=>_0x472883(_0x161b2a,null,_0x4979c2)),null;}}const _0x5ab4bf=this[_0x17dd('0x70')][_0x17dd('0xc0')](_0x17dd('0x35'),_0x215e3c,_0x17dd('0x44'));let _0x4b4474=null;for(const _0x145f0f of this[_0x17dd('0x131')]())if(_0x145f0f[_0x17dd('0xf7')]['id']==_0x10c693['id']&&_0x145f0f[_0x17dd('0xd4')]&&_0x17dd('0x35')==_0x145f0f[_0x17dd('0xe')]&&_0x145f0f['subType']==_0x215e3c&&Ut(_0x145f0f,_0x4979c2)&&(_0x5ab4bf(_0x145f0f['getRanges'](),_0x161b2a)||_0x5ab4bf(_0x161b2a,_0x145f0f[_0x17dd('0xe0')]()))){if(_0x4b4474){if(_0x145f0f[_0x17dd('0xd8')]&&_0x145f0f[_0x17dd('0xd8')][_0x17dd('0x5d')])continue;for(const _0x49055d of _0x145f0f['getRanges']())_0x4b4474['isIntersectingWithRange'](_0x49055d)||_0x4b4474[_0x17dd('0x6f')](_0x49055d);_0x145f0f['removeMarkers']();}else{_0x4b4474=_0x145f0f;for(const _0x4f6125 of _0x161b2a)_0x145f0f[_0x17dd('0xe8')](_0x4f6125)||_0x145f0f[_0x17dd('0x6f')](_0x4f6125);}}if(_0x4b4474)return _0x4b4474;_0x3a4aa9[_0x17dd('0x55')]();for(const {suggestion:_0x5275d0,meta:_0x2aad3d}of this['_findSuggestions'](_0x161b2a,'deletion'))_0x2aad3d[_0x17dd('0x31')]&&(this['_mergeNestedSuggestions']||!_0x2aad3d['containsRangeInObject']&&!_0x2aad3d['isInsideObject'])&&Ut(_0x5275d0,_0x4979c2)&&_0x3a4aa9[_0x17dd('0x3b')](_0x5275d0);for(const _0x519246 of _0x3a4aa9){const _0x2d3b2c=_0x519246['getRanges']();if(!_0x4979c2||!_0x4979c2[_0x17dd('0x119')]){if(_0x161b2a[_0x17dd('0x61')](_0x5b7d94=>_0x2d3b2c[_0x17dd('0x88')](_0x111ab6=>_0x111ab6[_0x17dd('0xd2')](_0x5b7d94,!0x0))))return _0x519246;}(!_0x519246[_0x17dd('0xe9')]||!_0x519246['attributes'][_0x17dd('0x119')])&&(_0x2d3b2c[_0x17dd('0x61')](_0x5d5771=>_0x161b2a[_0x17dd('0x88')](_0x3a18ab=>_0x3a18ab['containsRange'](_0x5d5771,!0x0)))&&_0x519246['discard']());}const _0x493d31=_0x434768(),_0x19b4ed=_0x10c693['id'],_0x46546d=_0x17dd('0x4d')+_0x215e3c,_0x236e6c=this['_setSuggestionData']({'id':_0x493d31,'type':_0x46546d,'createdAt':new Date(),'authorId':_0x19b4ed,'attributes':_0x4979c2});for(const _0x19873b of _0x161b2a)_0x19873b[_0x17dd('0xf4')](),_0x19873b[_0x17dd('0x4a')]||_0x17dd('0xf6')==_0x19873b[_0x17dd('0x113')][_0x17dd('0xd9')]||this[_0x17dd('0x8e')](_0x46546d,_0x493d31,_0x19b4ed,_0x19873b,_0x5463d9[_0x17dd('0x7c')]());return _0x236e6c;}[_0x17dd('0x80')](_0x2134ee,_0x840e9a){const _0x44298a=_0x2134ee[_0x17dd('0x101')]();this[_0x17dd('0x87')][_0x17dd('0xe2')](_0x525075=>{_0x525075[_0x17dd('0x99')](_0x44298a,{'range':_0x840e9a});});}[_0x17dd('0x65')](_0x379798){const _0x9dd4eb=_0x379798['id'],_0xd29375=this[_0x17dd('0x104')][_0x17dd('0x25')][_0x17dd('0xdd')]('collaboration.channelId');this['_commentsRepository'][_0x17dd('0x117')](_0x9dd4eb)||this[_0x17dd('0xe7')][_0x17dd('0x54')]({'channelId':_0xd29375,'threadId':_0x9dd4eb,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x585ee9=this['_commentsRepository'][_0x17dd('0x58')](_0x9dd4eb);_0x585ee9[_0x17dd('0x13b')]('isRemovable'),_0x585ee9[_0x17dd('0x10e')]=!0x1,_0x379798['commentThread']=_0x585ee9;}[_0x17dd('0x123')](_0x2e00f1,_0x10385e,_0x15fd95,_0x202adc){if(_0x2e00f1['type']!=_0x10385e||_0x2e00f1[_0x17dd('0xac')]!=_0x15fd95||_0x2e00f1[_0x17dd('0x5')]['id']!=_0x202adc)throw this[_0x17dd('0x104')]['enableReadOnlyMode'](_0x17dd('0xf9')),new _0x13bd1d(_0x17dd('0xf9'),this);}[_0x17dd('0xf')](_0xb3d194,_0x246952){const _0x110949=_0xb3d194[_0x17dd('0x57')]();if(_0x246952[_0x17dd('0x114')](_0x110949))_0xb3d194[_0x17dd('0xb3')]();else{if(_0x110949[_0x17dd('0xd2')](_0x246952)){const _0x54fdd5=this[_0x17dd('0x87')][_0x17dd('0x126')](_0x246952['start'][_0x17dd('0x100')],_0x17dd('0x6'));this['_setSuggestionRange'](_0xb3d194,this[_0x17dd('0x87')][_0x17dd('0x59')](_0x110949[_0x17dd('0x144')],_0x54fdd5));const _0x3d72f6=_0x434768(),_0x2a43ae=_0xb3d194[_0x17dd('0x5')]['id'],_0x152a14=_0xb3d194['type']+':'+_0xb3d194['subType'];this[_0x17dd('0x13')]({'id':_0x3d72f6,'type':_0x152a14,'createdAt':new Date(),'authorId':_0x2a43ae,'data':_0xb3d194[_0x17dd('0xc3')],'attributes':_0xb3d194[_0x17dd('0xe9')]});const _0x46bb4f=this['_model'][_0x17dd('0x126')](_0x246952[_0x17dd('0x6')]['parent'],_0x17dd('0xf1')),_0x452af9=this[_0x17dd('0x87')][_0x17dd('0x59')](_0x46bb4f,_0x110949[_0x17dd('0x6')]);this[_0x17dd('0x8e')](_0x152a14,_0x3d72f6,_0x2a43ae,_0x452af9);}else{if(_0x110949[_0x17dd('0x6d')](_0x246952[_0x17dd('0x144')])){const _0x4407ad=this[_0x17dd('0x87')]['createPositionAt'](_0x246952[_0x17dd('0x144')][_0x17dd('0x100')],_0x17dd('0x6'));this[_0x17dd('0x80')](_0xb3d194,this[_0x17dd('0x87')][_0x17dd('0x59')](_0x110949[_0x17dd('0x144')],_0x4407ad));}else{const _0xb59fd5=this['_model'][_0x17dd('0x126')](_0x246952[_0x17dd('0x6')][_0x17dd('0xde')],_0x17dd('0xf1'));this[_0x17dd('0x80')](_0xb3d194,this[_0x17dd('0x87')][_0x17dd('0x59')](_0xb59fd5,_0x110949[_0x17dd('0x6')]));}}}}['_rangeIsInLocalUserInsertion'](_0x8b9af5){for(const {suggestion:_0x379ae6,meta:_0x32c06f}of this[_0x17dd('0x124')](_0x8b9af5,_0x17dd('0x10f'))){if(!_0x32c06f[_0x17dd('0x31')])continue;const _0x43d9e3=_0x379ae6['getRanges']();for(const _0x5789d7 of _0x43d9e3)if(!_0x8b9af5[_0x17dd('0x4c')](_0x5789d7)[_0x17dd('0x5d')])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x45a9be){const _0xfac72a=this[_0x17dd('0x104')][_0x17dd('0x67')][_0x17dd('0xdd')](_0x17dd('0x7e'))[_0x17dd('0x29')](_0x45a9be);if(!_0xfac72a)throw new _0x13bd1d(_0x17dd('0xf5'),this);return _0xfac72a;}[_0x17dd('0x3c')](_0xd59882){const _0x4b3194=this[_0x17dd('0x104')]['plugins'][_0x17dd('0xdd')]('Users'),_0x1fd64e=_0x2020e9(_0x17dd('0xb2')+_0xd59882),_0x5ce430=_0x4b3194[_0x17dd('0x29')](_0x1fd64e);return _0x5ce430||_0x4b3194[_0x17dd('0x13e')]({'id':_0x1fd64e,'name':_0xd59882});}[_0x17dd('0x141')](_0x539da4,_0xfe2724,_0x542c40,_0x3f53e7,_0x1cdef3){const _0x117ee2=this[_0x17dd('0x129')](_0x3f53e7),_0x5686ba=this['_suggestionFactory'][_0x17dd('0x1c')](_0x539da4,_0xfe2724,_0x542c40,_0x117ee2,_0x1cdef3,_0x13a59e=>this[_0x17dd('0x6c')](_0x542c40,{'attributes':_0x13a59e}));return this[_0x17dd('0xab')](_0x5686ba,'accept',()=>{this[_0x17dd('0x6c')](_0x542c40,{'state':_0x17dd('0x11c')});},{'priority':_0x17dd('0x6b')}),this[_0x17dd('0xab')](_0x5686ba,'discard',()=>{this[_0x17dd('0x6c')](_0x542c40,{'state':_0x17dd('0xea')});},{'priority':_0x17dd('0x6b')}),this[_0x17dd('0x10a')][_0x17dd('0xbb')](_0x542c40,_0x5686ba),this[_0x17dd('0x111')][_0x17dd('0xbb')](_0x5686ba,_0x17dd('0xc4')),_0x5686ba;}[_0x17dd('0x34')](_0x26c1cf){const _0x3813ac=_0x26c1cf[_0x17dd('0x9d')](':');return{'group':_0x3813ac[0x0],'type':_0x3813ac[0x1],'subType':_0x3813ac[_0x17dd('0x5d')]>=0x5?_0x3813ac[0x2]:null,'id':_0x3813ac['length']<0x5?_0x3813ac[0x2]:_0x3813ac[0x3],'authorId':_0x3813ac[_0x17dd('0x5d')]<0x5?_0x3813ac[0x3]:_0x3813ac[0x4],'markerCount':0x6==_0x3813ac[_0x17dd('0x5d')]?_0x3813ac[0x5]:null};}['_breakSuggestionMarker'](_0x23da52,_0x3fdaa4,_0x160e66){const _0x3edf32=_0x23da52[_0x17dd('0x57')](),_0x2e2932=_0x3edf32['start'],_0x95d5a8=_0x3edf32[_0x17dd('0x6')];this['_setSuggestionRange'](_0x23da52,this[_0x17dd('0x87')]['createRange'](_0x2e2932,_0x3fdaa4));const _0x112c2c=_0x434768(),_0x47c604=_0x23da52[_0x17dd('0x5')]['id'],_0x1ea2c0=_0x23da52[_0x17dd('0xe')]+(_0x23da52[_0x17dd('0xac')]?':'+_0x23da52[_0x17dd('0xac')]:'');this['_setSuggestionData']({'id':_0x112c2c,'type':_0x1ea2c0,'createdAt':new Date(),'authorId':_0x47c604,'originalSuggestionId':_0x23da52['id'],'attributes':_0x23da52[_0x17dd('0xe9')],'data':_0x23da52[_0x17dd('0xc3')]}),_0x17dd('0x2f')==_0x23da52[_0x17dd('0xe')]&&(_0x160e66=this[_0x17dd('0x87')]['createPositionBefore'](_0x160e66['parent'])),this[_0x17dd('0x8e')](_0x1ea2c0,_0x112c2c,_0x47c604,this[_0x17dd('0x87')][_0x17dd('0x59')](_0x160e66,_0x95d5a8));}[_0x17dd('0x124')](_0xf775f9,_0x4ff77a=null){const _0xcdfee9=[],_0x578b06=this[_0x17dd('0x104')][_0x17dd('0x67')][_0x17dd('0xdd')]('Users')['me'];Array[_0x17dd('0x137')](_0xf775f9)||(_0xf775f9=[_0xf775f9]);for(const _0x2423e9 of this['getSuggestions']()){if(!_0x2423e9['isInContent'])continue;if(_0x4ff77a&&_0x2423e9[_0x17dd('0xe')]!=_0x4ff77a)continue;let _0x1d0938=!0x1;for(const _0x6f6fe5 of _0x2423e9[_0x17dd('0xe0')]()){for(const _0x9eafc6 of _0xf775f9){const _0xa78018=_0x9eafc6[_0x17dd('0x144')][_0x17dd('0x114')](_0x6f6fe5['end'])||_0x9eafc6[_0x17dd('0x6')][_0x17dd('0x114')](_0x6f6fe5[_0x17dd('0x144')]);if(_0xa78018||_0x9eafc6[_0x17dd('0x140')](_0x6f6fe5)){const _0x439f1d=_0x9eafc6[_0x17dd('0xd2')](_0x6f6fe5)&&Bt(this[_0x17dd('0x87')][_0x17dd('0x9a')],_0x6f6fe5[_0x17dd('0x144')],_0x9eafc6),_0x4421a9=_0x6f6fe5['containsRange'](_0x9eafc6)&&Bt(this[_0x17dd('0x87')][_0x17dd('0x9a')],_0x9eafc6[_0x17dd('0x144')],_0x6f6fe5);_0xcdfee9['push']({'suggestion':_0x2423e9,'meta':{'isOwn':_0x578b06==_0x2423e9[_0x17dd('0xf7')],'isNextTo':_0xa78018,'isInsideObject':_0x439f1d,'containsRangeInObject':_0x4421a9}}),_0x1d0938=!0x0;break;}}if(_0x1d0938)break;}}return _0xcdfee9;}[_0x17dd('0x8e')](_0x22751a,_0x22c50d,_0x5418ce,_0x5a3b33,_0x2ce946){this[_0x17dd('0x87')][_0x17dd('0xe2')](_0x123268=>{let _0x595a9a='suggestion:'+_0x22751a+':'+_0x22c50d+':'+_0x5418ce;_0x2ce946&&(_0x595a9a=_0x595a9a+':'+_0x2ce946),_0x123268[_0x17dd('0x133')](_0x595a9a,{'range':_0x5a3b33,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1cdbef){const _0xcc7c6b=_0x1cdbef[_0x17dd('0x5b')],_0x31575b=_0x1cdbef[_0x17dd('0x108')];_0x1cdbef['previous']=null,null!=_0xcc7c6b&&(_0xcc7c6b[_0x17dd('0x108')]=null),_0x1cdbef[_0x17dd('0x108')]=null,null!=_0x31575b&&(_0x31575b[_0x17dd('0x5b')]=null),_0x17dd('0x5e')==this[_0x17dd('0x111')][_0x17dd('0xdd')](_0x1cdbef)&&(this[_0x17dd('0x111')][_0x17dd('0xbb')](_0x1cdbef,'removed'),this[_0x17dd('0x138')](_0x17dd('0x3e'),_0x1cdbef,_0xcc7c6b,_0x31575b));}['_setSuggestionData'](_0x395275){const _0x36ce3f=_0x395275['id'],_0x4b74c3=this[_0x17dd('0x13f')](_0x395275);if(this[_0x17dd('0x4e')]&&this[_0x17dd('0x4e')][_0x17dd('0x68')]){const _0x2d7c2f=this[_0x17dd('0x104')][_0x17dd('0x67')]['get']('PendingActions'),_0x55caf6=_0x4b74c3['hasComments'],_0x4591c9=_0x4b74c3[_0x17dd('0xac')]?_0x4b74c3[_0x17dd('0xe')]+':'+_0x4b74c3['subType']:_0x4b74c3[_0x17dd('0xe')],_0x5294d4=this[_0x17dd('0x104')][_0x17dd('0xb1')],_0x187640=_0x2d7c2f[_0x17dd('0x3b')](_0x2f5d6f(_0x5294d4,_0x17dd('0xa3'))),_0x107845={'id':_0x36ce3f,'type':_0x4591c9,'hasComments':_0x55caf6,'data':_0x395275[_0x17dd('0xc3')]||null,'originalSuggestionId':_0x395275[_0x17dd('0x120')]||null,'attributes':_0x4b74c3[_0x17dd('0xe9')]};this[_0x17dd('0x4e')][_0x17dd('0x68')](_0x107845)['then'](_0x51f597=>{_0x4b74c3[_0x17dd('0x9b')]=!0x0,_0x2d7c2f[_0x17dd('0xd1')](_0x187640),_0x51f597&&_0x51f597[_0x17dd('0x69')]&&(this[_0x17dd('0x10a')][_0x17dd('0xdd')](_0x36ce3f)[_0x17dd('0x69')]=_0x51f597[_0x17dd('0x69')]);})[_0x17dd('0xe5')](_0x6817b=>{throw _0x1e7a6b(_0x17dd('0x115')),this[_0x17dd('0x104')][_0x17dd('0x9e')][_0x17dd('0x63')]({'isUndoable':!0x1},()=>{_0x4b74c3[_0x17dd('0xc6')]();}),_0x4b74c3[_0x17dd('0xc8')](),this[_0x17dd('0x10a')][_0x17dd('0x1a')](_0x4b74c3['id']),this[_0x17dd('0x111')][_0x17dd('0x1a')](_0x4b74c3),_0x6817b;});}return _0x4b74c3;}[_0x17dd('0x6c')](_0x59cd50,_0x1f083b){const _0x136712=this['editor'][_0x17dd('0x67')][_0x17dd('0xdd')]('PendingActions'),_0x56603e=this[_0x17dd('0x136')](_0x59cd50);if(this['_adapter']&&this[_0x17dd('0x4e')][_0x17dd('0xb0')]){if(_0x56603e[_0x17dd('0x9b')]){const _0x3fbec5=_0x136712[_0x17dd('0x3b')](_0x2f5d6f(this['editor'][_0x17dd('0xb1')],_0x17dd('0xa3')));this[_0x17dd('0x4e')][_0x17dd('0xb0')](_0x59cd50,_0x1f083b)[_0x17dd('0x98')](()=>{_0x136712[_0x17dd('0xd1')](_0x3fbec5);});}else _0x56603e['on'](_0x17dd('0x43'),()=>{this['_updateSuggestionData'](_0x59cd50,_0x1f083b);});}}[_0x17dd('0x75')](_0x189b20){if(!this[_0x17dd('0x4e')]||!this[_0x17dd('0x4e')][_0x17dd('0x136')])throw new _0x13bd1d(_0x17dd('0xb9'),this);return this[_0x17dd('0x4e')][_0x17dd('0x136')](_0x189b20);}['_handleNewSuggestionMarker'](_0x355a0d){const {id:_0x2f15f8,type:_0xbfce62,subType:_0x4c8f79,authorId:_0x149f3b}=this[_0x17dd('0x34')](_0x355a0d),_0x14c655=this[_0x17dd('0x10a')][_0x17dd('0xdd')](_0x2f15f8)||this[_0x17dd('0x141')](_0xbfce62,_0x4c8f79,_0x2f15f8,_0x149f3b,{});switch(this['_checkSuggestionCorrectness'](_0x14c655,_0xbfce62,_0x4c8f79,_0x149f3b),this[_0x17dd('0x111')][_0x17dd('0xdd')](_0x14c655)){case _0x17dd('0xc4'):this[_0x17dd('0x75')](_0x2f15f8)[_0x17dd('0x98')](_0x277461=>{let _0x19a5df=Promise[_0x17dd('0xf8')]();_0x277461[_0x17dd('0xed')]&&(_0x19a5df=this[_0x17dd('0xe7')][_0x17dd('0x28')]({'channelId':this[_0x17dd('0x104')][_0x17dd('0x25')][_0x17dd('0xdd')](_0x17dd('0x96')),'threadId':_0x2f15f8})),_0x19a5df[_0x17dd('0x98')](()=>{this[_0x17dd('0x13f')](_0x277461)[_0x17dd('0x9b')]=!0x0;});}),this[_0x17dd('0x111')][_0x17dd('0xbb')](_0x14c655,_0x17dd('0x38'));break;case _0x17dd('0x128'):this[_0x17dd('0x6c')](_0x2f15f8,{'state':'open'});case _0x17dd('0x5c'):this['_suggestionState'][_0x17dd('0xbb')](_0x14c655,_0x17dd('0x5e')),this['fire'](_0x17dd('0x10d'),_0x14c655);break;case _0x17dd('0x5e'):this['fire']('suggestionChanged',_0x14c655);}return _0x14c655[_0x17dd('0x40')](_0x355a0d),_0x14c655;}[_0x17dd('0xcb')](_0x3a3d90){const _0x38e80d=Array[_0x17dd('0xeb')](_0x3a3d90)[_0x17dd('0x12d')](_0x54035c=>!_0x54035c['isMultiRange']),_0x317b0d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x478223=>!_0x478223['isMultiRange']),_0x3f8f51=_0x317b0d[_0x17dd('0x12d')](_0x514030=>!_0x3a3d90[_0x17dd('0x142')](_0x514030)),_0x2aba0a=new Map(_0x317b0d[_0x17dd('0x3')](_0x51dbfe=>[_0x51dbfe,this[_0x17dd('0x70')]['getSuggestionCallback'](_0x51dbfe[_0x17dd('0xe')],_0x51dbfe['subType'],_0x17dd('0x122'))])),_0x44c68b=new Map(_0x317b0d[_0x17dd('0x3')](_0x135ca2=>[_0x135ca2,_0x135ca2[_0x17dd('0x57')]()])),_0xdb46ca=new Set(),_0x401e2f=new Set();for(let _0x4d32af=0x0;_0x4d32af<_0x38e80d[_0x17dd('0x5d')];_0x4d32af++)_0x467e1b(_0x38e80d[_0x4d32af],_0x38e80d,_0x4d32af+0x1);for(let _0xd0a471=0x0;_0xd0a471<_0x38e80d[_0x17dd('0x5d')];_0xd0a471++)_0x467e1b(_0x38e80d[_0xd0a471],_0x3f8f51,0x0);for(let _0x541a87=0x0;_0x541a87<_0x38e80d[_0x17dd('0x5d')];_0x541a87++){const _0x49cd05=_0x38e80d[_0x541a87];!_0x401e2f[_0x17dd('0x142')](_0x49cd05)&&_0x49cd05[_0x17dd('0x5b')]&&(_0x49cd05[_0x17dd('0x5b')][_0x17dd('0x108')]===_0x49cd05&&(_0x49cd05[_0x17dd('0x5b')][_0x17dd('0x108')]=null),_0x49cd05[_0x17dd('0x5b')]=null),!_0xdb46ca['has'](_0x49cd05)&&_0x49cd05['next']&&(_0x49cd05[_0x17dd('0x108')][_0x17dd('0x5b')]===_0x49cd05&&(_0x49cd05['next'][_0x17dd('0x5b')]=null),_0x49cd05['next']=null);}function _0x467e1b(_0x5e13c6,_0x36e952,_0x4e1a2c){for(let _0x4405c7=_0x4e1a2c;_0x4405c7<_0x36e952['length'];_0x4405c7++){const _0x1fbe80=_0x36edc7(_0x5e13c6,_0x36e952[_0x4405c7]);_0x1fbe80&&(_0x1fbe80[0x0][_0x17dd('0x108')]=_0x1fbe80[0x1],_0x1fbe80[0x1]['previous']=_0x1fbe80[0x0],_0xdb46ca[_0x17dd('0x3b')](_0x1fbe80[0x0]),_0x401e2f['add'](_0x1fbe80[0x1]));}}function _0x36edc7(_0x74c3ba,_0x4573f4){if(_0x74c3ba['author']['id']!==_0x4573f4[_0x17dd('0xf7')]['id'])return null;const _0xd58372=_0x2aba0a[_0x17dd('0xdd')](_0x74c3ba)(_0x74c3ba,_0x4573f4,_0x44c68b[_0x17dd('0xdd')](_0x74c3ba),_0x44c68b['get'](_0x4573f4));if(!_0xd58372)return null;return _0x2aba0a['get'](_0x4573f4)(_0x74c3ba,_0x4573f4,_0x44c68b['get'](_0x74c3ba),_0x44c68b[_0x17dd('0xdd')](_0x4573f4))?_0xd58372[0x1]['commentThread']&&_0xd58372[0x1]['commentThread'][_0x17dd('0x5d')]?null:_0xd58372:null;}}['_joinWithAdjacentSuggestions'](_0x4e585a){const _0x3ef314=Array['from'](_0x4e585a),_0x3ab72e=this[_0x17dd('0x131')]({'skipNotAttached':!0x0}),_0x33995f=_0x3ab72e['filter'](_0x2379a5=>!_0x4e585a[_0x17dd('0x142')](_0x2379a5)),_0x18997e=new Map(_0x3ef314['map'](_0x4ea952=>[_0x4ea952,this[_0x17dd('0x70')][_0x17dd('0xc0')](_0x4ea952[_0x17dd('0xe')],_0x4ea952['subType'],_0x17dd('0x44'))])),_0xeace73=new Map(_0x3ab72e[_0x17dd('0x3')](_0x3c9cbb=>[_0x3c9cbb,_0x3c9cbb[_0x17dd('0xe0')]()]));for(let _0x30e1a3=0x0;_0x30e1a3<_0x3ef314['length'];_0x30e1a3++){if(_0x3754fb(this,_0x3ef314[_0x30e1a3],_0x3ef314,_0x30e1a3+0x1))return!0x0;}for(let _0x16ed91=0x0;_0x16ed91<_0x3ef314[_0x17dd('0x5d')];_0x16ed91++){if(_0x3754fb(this,_0x3ef314[_0x16ed91],_0x33995f,0x0))return!0x0;}return!0x1;function _0x3754fb(_0x5d88a4,_0x459588,_0x5249b5,_0x1ed308){for(let _0x45504f=_0x1ed308;_0x45504f<_0x5249b5[_0x17dd('0x5d')];_0x45504f++){const _0x49e58d=_0x5249b5[_0x45504f];if(_0x49e58d[_0x17dd('0xe')]!==_0x459588[_0x17dd('0xe')]||_0x49e58d[_0x17dd('0xf7')]['id']!==_0x459588[_0x17dd('0xf7')]['id']||_0x49e58d['subType']!==_0x459588[_0x17dd('0xac')])continue;if(!xt(_0x459588,_0x49e58d))continue;const _0x23f7e3=_0x18997e[_0x17dd('0xdd')](_0x459588),_0x19517b=_0xeace73[_0x17dd('0xdd')](_0x459588),_0x5b08e6=_0xeace73[_0x17dd('0xdd')](_0x49e58d),_0xea0c73=_0x459588[_0x17dd('0xd8')]&&_0x459588[_0x17dd('0xd8')][_0x17dd('0x5d')],_0x5ccdde=_0x49e58d[_0x17dd('0xd8')]&&_0x49e58d[_0x17dd('0xd8')][_0x17dd('0x5d')];if(!_0xea0c73&&_0x23f7e3(_0x5b08e6,_0x19517b))return _0x5d88a4[_0x17dd('0xb8')](_0x49e58d,_0x459588),_0xeace73[_0x17dd('0x1a')](_0x459588),!0x0;if(!_0x5ccdde&&_0x23f7e3(_0x19517b,_0x5b08e6))return _0x5d88a4[_0x17dd('0xb8')](_0x459588,_0x49e58d),_0xeace73[_0x17dd('0x1a')](_0x49e58d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4775da,_0x594b5e){if(_0x4775da[_0x17dd('0x130')])for(const _0x447295 of _0x594b5e[_0x17dd('0xe0')]())_0x4775da[_0x17dd('0x6f')](_0x447295);else{const _0x15b97a=_0x594b5e[_0x17dd('0x57')]()[_0x17dd('0x6')];this[_0x17dd('0x80')](_0x4775da,this[_0x17dd('0x87')][_0x17dd('0x59')](_0x4775da[_0x17dd('0x57')]()[_0x17dd('0x144')],_0x15b97a));}_0x594b5e[_0x17dd('0xb3')]();}}class Dt{constructor(_0x57401d){this['_editor']=_0x57401d,this['_model']=_0x57401d[_0x17dd('0x9e')],this['_customCallbacks']=new Map(),this[_0x17dd('0xfe')]=new Map(),this[_0x17dd('0x32')]();}[_0x17dd('0x1c')](_0x19f723,_0x34d6a0,_0x207556,_0x5d2a70,_0x5a948f,_0x3dccbe){return new _0x5463d9(this[_0x17dd('0x87')],{'type':_0x19f723,'subType':_0x34d6a0,'id':_0x207556,'author':_0x5d2a70,'creator':_0x5d2a70,'attributes':_0x5a948f,'onAttributesChange':_0x3dccbe,'onAccept':(..._0x5ee80f)=>this['getSuggestionCallback'](_0x19f723,_0x34d6a0,_0x17dd('0xc9'))(..._0x5ee80f),'onDiscard':(..._0xeeccb1)=>this[_0x17dd('0xc0')](_0x19f723,_0x34d6a0,_0x17dd('0xc6'))(..._0xeeccb1)});}['registerCustomCallback'](_0x2b3dea,_0x4cb726,_0x11ee3e,_0x44bd44){const _0x5f7b9e=_0x2b3dea+':'+_0x4cb726+':'+_0x11ee3e;this[_0x17dd('0x72')][_0x17dd('0xbb')](_0x5f7b9e,_0x44bd44);}['getSuggestionCallback'](_0x459999,_0x472bdf,_0x5aa24c){const _0xbfaa1f=_0x459999+':'+_0x472bdf+':'+_0x5aa24c;return this['_customCallbacks'][_0x17dd('0xdd')](_0xbfaa1f)||this[_0x17dd('0xfe')][_0x17dd('0xdd')](_0x459999+':'+_0x5aa24c);}['_registerDefaultCallbacks'](){const _0x5845da=()=>!0x1,_0x15537d=_0x59d10f=>{_0x59d10f[_0x17dd('0xa9')]((_0x18a764,_0x188439)=>_0x18a764['start'][_0x17dd('0x48')](_0x188439[_0x17dd('0x144')])?0x1:-0x1),this[_0x17dd('0x87')]['change'](_0x3d0677=>{for(const _0x44c291 of _0x59d10f){let _0x562405;_0x562405=_0x44c291[_0x17dd('0x6')][_0x17dd('0x21')]&&_0x44c291[_0x17dd('0x6')][_0x17dd('0xde')]==_0x44c291[_0x17dd('0x144')][_0x17dd('0xe1')]?_0x3d0677[_0x17dd('0x93')](_0x44c291['start'][_0x17dd('0xe1')],'on'):_0x3d0677[_0x17dd('0x93')](_0x44c291),this['_model'][_0x17dd('0x139')](_0x562405,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x570351=(_0x526bb9,_0x2b004b)=>{this[_0x17dd('0x87')]['change'](_0x57a3d3=>{const {commandName:_0x153e22,commandParams:_0x26909a=[]}=_0x2b004b,_0x328fc7=_0x526bb9[_0x17dd('0x3')](_0x5f558f=>(_t(_0x5f558f)&&(_0x5f558f=this[_0x17dd('0x87')][_0x17dd('0x59')](_0x5f558f[_0x17dd('0x6')])),_0x5f558f))['filter'](_0x37270b=>_0x17dd('0xf6')!==_0x37270b[_0x17dd('0x113')][_0x17dd('0xd9')]);if(_0x328fc7['length']<0x1)return;const _0x3682ef=Array[_0x17dd('0xeb')](this[_0x17dd('0x87')][_0x17dd('0x121')][_0x17dd('0x94')]['getRanges']())[_0x17dd('0x3')](_0x5d4ca0=>_0x276727[_0x17dd('0x7f')](_0x5d4ca0));_0x57a3d3[_0x17dd('0xb4')](_0x328fc7);for(const _0x39e517 of this['_editor']['commands'][_0x17dd('0x12e')]())_0x39e517[_0x17dd('0xb6')]();_0x26909a[_0x17dd('0xdc')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x17dd('0x9')](_0x153e22,..._0x26909a);const _0x50137e=_0x3682ef[_0x17dd('0x12d')](_0x488955=>_0x17dd('0xf6')!=_0x488955[_0x17dd('0x113')][_0x17dd('0xd9')]);_0x50137e[_0x17dd('0x5d')]>0x0&&_0x57a3d3[_0x17dd('0xb4')](_0x50137e);for(const _0x3d8910 of _0x3682ef)_0x3d8910[_0x17dd('0xf4')]();});},_0x197718=(_0xd198c9,_0x41c275)=>0x1==_0xd198c9[_0x17dd('0x5d')]&&0x1==_0x41c275[_0x17dd('0x5d')]&&_0xd198c9[0x0]['end'][_0x17dd('0x114')](_0x41c275[0x0]['start']),_0x7317e4=(_0x4bcb51,_0x5088b7,_0x3384b9,_0x151a7f)=>jt(_0x4bcb51,_0x5088b7,_0x3384b9,_0x151a7f,this['_model'])?[_0x4bcb51,_0x5088b7]:jt(_0x5088b7,_0x4bcb51,_0x151a7f,_0x3384b9,this[_0x17dd('0x87')])?[_0x5088b7,_0x4bcb51]:null;this[_0x17dd('0xfe')][_0x17dd('0xbb')](_0x17dd('0xf3'),_0x5845da),this[_0x17dd('0xfe')][_0x17dd('0xbb')](_0x17dd('0xdf'),_0x15537d),this[_0x17dd('0xfe')]['set'](_0x17dd('0x76'),_0x197718),this[_0x17dd('0xfe')][_0x17dd('0xbb')]('insertion:chain',_0x7317e4),this[_0x17dd('0xfe')][_0x17dd('0xbb')](_0x17dd('0xec'),_0x15537d),this['_defaultCallbacks'][_0x17dd('0xbb')](_0x17dd('0x118'),_0x5845da),this['_defaultCallbacks']['set']('deletion:join',_0x197718),this['_defaultCallbacks'][_0x17dd('0xbb')](_0x17dd('0x11a'),_0x7317e4),this['_defaultCallbacks'][_0x17dd('0xbb')](_0x17dd('0x8'),_0x570351),this[_0x17dd('0xfe')][_0x17dd('0xbb')](_0x17dd('0xda'),_0x5845da),this['_defaultCallbacks']['set'](_0x17dd('0x82'),_0x197718),this[_0x17dd('0xfe')][_0x17dd('0xbb')](_0x17dd('0x81'),_0x5845da),this['_defaultCallbacks'][_0x17dd('0xbb')]('formatBlock:accept',_0x570351),this[_0x17dd('0xfe')][_0x17dd('0xbb')](_0x17dd('0x83'),_0x5845da),this[_0x17dd('0xfe')][_0x17dd('0xbb')](_0x17dd('0x12a'),_0x197718),this[_0x17dd('0xfe')]['set'](_0x17dd('0x110'),_0x5845da);}}function Bt(_0x68e4e0,_0x454dc9,_0x26fd79){for(const _0x9b4e82 of _0x454dc9['parent'][_0x17dd('0x41')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x9b4e82['root']==_0x9b4e82)return!0x1;if(!_0x26fd79[_0x17dd('0x92')](_0x9b4e82))return!0x1;if(_0x68e4e0[_0x17dd('0x12b')](_0x9b4e82)||_0x68e4e0[_0x17dd('0x146')](_0x9b4e82))return!0x0;}return!0x1;}function _t(_0x510699){return _0x510699['end'][_0x17dd('0xde')]==_0x510699['start'][_0x17dd('0xe1')]&&_0x510699['end'][_0x17dd('0xb')];}function Mt(_0xc3bb4,_0x939d15,_0x47163d,_0x11cef2){const _0x392e04=_0x124eae=>!_0x124eae[_0x17dd('0xa5')]['is'](_0x17dd('0x90'))&&!_0x11cef2[_0x17dd('0x12b')](_0x124eae['item']),_0xb7e66e=_0xc3bb4[_0x17dd('0x144')][_0x17dd('0x97')](_0x392e04),_0x4a7385=_0xc3bb4[_0x17dd('0x6')][_0x17dd('0x97')](_0x392e04,{'direction':'backward'});return(!_0xc3bb4['start'][_0x17dd('0x114')](_0xb7e66e)||!_0xc3bb4['end'][_0x17dd('0x114')](_0x4a7385))&&(_0xb7e66e[_0x17dd('0x48')](_0x4a7385)?_0x47163d[_0x17dd('0x99')](_0x939d15,{'range':_0x47163d[_0x17dd('0x59')](_0xb7e66e,_0x4a7385)}):_0x47163d[_0x17dd('0x10')](_0x939d15),!0x0);}function $t(_0xa6dd0e){return _0x2020e9(_0xa6dd0e);}function Nt(_0x464a4a){const _0x422d8b=_0x464a4a[_0x17dd('0x144')]['nodeAfter'];return _0x422d8b&&_0x422d8b['is']('element');}function Rt(_0x44c317,_0x3075fc){const _0x4d4af8=_0x3075fc['schema'][_0x17dd('0x12b')](_0x44c317)||_0x3075fc[_0x17dd('0x9a')][_0x17dd('0x27')](_0x44c317);return _0x3075fc[_0x17dd('0x59')](_0x3075fc[_0x17dd('0x126')](_0x44c317,_0x17dd('0xff')),_0x4d4af8?_0x3075fc['createPositionAfter'](_0x44c317):_0x3075fc['createPositionAt'](_0x44c317,_0x17dd('0x6')));}function jt(_0x2ba18d,_0x37a43a,_0x48a8a4,_0x1a14eb,_0x5db77c){if(!xt(_0x2ba18d,_0x37a43a))return!0x1;if(_0x48a8a4[_0x17dd('0x6')][_0x17dd('0x114')](_0x1a14eb['start']))return!0x0;if(_0x2ba18d[_0x17dd('0xe')]!=_0x37a43a[_0x17dd('0xe')])return!0x1;if(!_0x48a8a4['end'][_0x17dd('0xa2')](_0x1a14eb['start']))return!0x1;const _0x2cfa1a=_0x5db77c['createRange'](_0x48a8a4[_0x17dd('0x6')],_0x1a14eb[_0x17dd('0x144')])[_0x17dd('0x107')]();for(const _0x56b836 of _0x2cfa1a)if([_0x17dd('0x10c'),'elementEnd']['includes'](_0x56b836[_0x17dd('0xe')])&&_0x5db77c['schema'][_0x17dd('0x146')](_0x56b836['item']))return!0x1;return!0x0;}function xt(_0x258cb1,_0x32a1fa){return!(!_0x258cb1['_isDataLoaded']||!_0x32a1fa['_isDataLoaded'])&&_0x25a31b(_0x258cb1['attributes'],_0x32a1fa[_0x17dd('0xe9')]);}function Ut(_0x5018a1,_0x4cabb2){const _0x50e1ef=Ot(_0x5018a1[_0x17dd('0xe9')]),_0x4f787f=Ot(_0x4cabb2);if(!_0x5018a1[_0x17dd('0x11e')])return!0x1;for(const _0x22dae1 of Object[_0x17dd('0x2d')](_0x4f787f))if(!_0x25a31b(_0x50e1ef[_0x22dae1],_0x4f787f[_0x22dae1]))return!0x1;return!0x0;}function Ot(_0x10ed33){const _0x2f50df=Object[_0x17dd('0xd7')]({},_0x10ed33);return delete _0x2f50df[_0x17dd('0x119')],delete _0x2f50df[_0x17dd('0x3d')],_0x2f50df;}