@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230826.0 → 0.0.0-nightly-20230828.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-
|
|
3
|
+
"version": "0.0.0-nightly-20230828.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-
|
|
43
|
-
"ckeditor5-collaboration": "0.0.0-nightly-
|
|
42
|
+
"ckeditor5": "0.0.0-nightly-20230828.0",
|
|
43
|
+
"ckeditor5-collaboration": "0.0.0-nightly-20230828.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 _0x2cc1=['activeMarkers','markBlockFormat','_suggestionFactory','_addSuggestionMarker','formatInline:accept','isEqual','_trackFormatChanges','isBefore','formatGroupId','$textProxy','getAllAdjacentSuggestions','formatInline:chain','highest','getUser','after','change:activeMarkers','stopListening','addComment','elementToElement','trackChanges.mergeNestedSuggestions','newRange','markerReady','every','author','isAfter','addCommentThread','accepted','markerName','setAttribute','push','batch','getLastMatchingPosition','containsRange','addSuggestionData','insertion:accept','suggestion:','getDifference','updateSuggestion','hasComments','createPositionAfter','_breakSuggestionMarker','editor','data-suggestion','getShiftedBy','_isForcedDefaultExecutionBlock','mapper','dataDowncast','chain','registerCustomCallback','createSelection','markInlineFormat','discardAllSuggestions','_getAuthorFromId','element','high','_setSuggestionData','then','bindElementToMarker','getIntersection','addMarker:suggestion:formatBlock','position','createdAt','markerToData','discardSuggestion','conversion','requires','createRange','split','suggestionUnloaded','removed','removeMarkers','_joinWithAdjacentSuggestions','pluginName','get','formatBlock:discard','getSuggestionCallback','addClass','getRange','marker-count','hasSuggestion','detach','ck-suggestion-marker-formatBlock','catch','attributes','isAtStart','enqueueChange','trackChanges','_joinSuggestions','_suggestionState','track-changes-adapter-already-set','_checkSuggestionCorrectness','elementEnd','formatInline:discard','track-changes-suggestion-data-mismatch','start','sort','for','end','getWalker','nodeAfter','markers','removeMarker:suggestion:formatBlock','acceptSelectedSuggestions','delete','adapter','PendingActions','markerNameToElements','discard','_adapter','deleteContent','addRange','_mergeNestedSuggestions','toViewElement','showSuggestionHighlights','removeClass','multi','locale','fromRange','buildSuggestion','CommentsRepository','upcast','dataReady','howMany','has','oldRange','_onDiscard','clear','suggestion-type','isLimit','addUser','_createSuggestion','originalSuggestionId','enableCommand','markMultiRangeDeletion','getCommentThread','isNextTo','_saved','moveTargetPosition','ck-suggestion-marker--active','splice','consumable','containsRangeInObject','next','getFirstRange','multipleBlocks','change:_saved','some','widget','splitPosition','clone','markMultiRangeBlockFormat','commentThread','markInsertion','_setSuggestionRange','getRanges','creator','acceptAllSuggestions','targetPosition','formatInline:','toJSON','isIntersectingWithRange','getMarkers','item','markDeletion','add','unbind','authoredAt','consume','root','formatBlock:accept','_editor','getFirstMarker','isRemovable','rejected','addMarkerName','isInsideObject','name','before','options','_getExternalAuthor','_commentsRepository','backward','Users','reconvertMarker','addMarker:suggestion','@external','return','values','filter','insertion:','ck-suggestion-marker-','getItems','isMultiRange','refresh','from','formatInline:join','getSuggestion','remove','_splitMarkerName','formatBlock:join','_suggestions','addSuggestion','schema','notReady','model','commands','dataToMarker','_descriptionFactory','isObject','isAtEnd','includes','removeMarker','isInContent','documentSelection','size','deletion:','listenTo','hasCommentThread','isExternal','deletion','setSelection','value','stop','_customCallbacks','_findSuggestions','ready','nodeBefore','writer','track-changes-suggestion-not-found','suggestionLoaded','containerElement','$graveyard','getChanges','normal','formatBlock:','open','markerToHighlight','selection','parent','trackChanges.trackFormatChanges','containsPosition','config','_refreshSuggestionsChain','define','formatBlock','length','low','lowest','containsItem','track-changes-command-not-found','suggestionChanged','differ','document','collaboration.channelId','skipNestingCheck','insert','_updateSuggestionData','execute','formatBlock:chain','applyOperation','external:','ck-suggestion-marker','map','join','always','getAttribute','enableReadOnlyMode','_registerDefaultCallbacks','removeAttribute','TrackChangesEditing','never','update:suggestion','suggestion','subType','substr','track-changes-adapter-missing-getsuggestion','forceDefaultExecution','isCollapsed','_enabledCommands','_cutOutSuggestionMarker','insertion','_handleNewSuggestionMarker','acceptSuggestion','error-saving-suggestion-data-suggestion-discarded','insertion:chain','forward','data','getCustomProperty','change','removeComment','rootName','markMultiRangeInsertion','_rangeIsInLocalUserInsertion','fire','PENDING_ACTION_SUGGESTION','createPositionAt','_removeSuggestion','_getSuggestionData','formatInline','editingDowncast','range','updateMarker','change:data','addMarker','getChangedMarkers','commandName','deletion:join','fromCharCode','discardSelectedSuggestions','type','addHighlight','deletion:accept','getNearestSelectionRange','isBlock','getSuggestions','unbindElementFromMarkerName','insertContent','previous','plugins','createElement','trackChangesCommand','set','_addThreadToSuggestion','createPositionBefore','$marker','track-changes-user-not-found','isSelectable','resolve','_defaultCallbacks','registerPostFixer','accept','isOwn','_model','insertion:discard','getMultiRangeId'];(function(_0x13b252,_0x2cc1f4){const _0x491419=function(_0x89196){while(--_0x89196){_0x13b252['push'](_0x13b252['shift']());}};_0x491419(++_0x2cc1f4);}(_0x2cc1,0xb6));const _0x4914=function(_0x13b252,_0x2cc1f4){_0x13b252=_0x13b252-0x0;let _0x491419=_0x2cc1[_0x13b252];return _0x491419;};import{Plugin as _0x121a76,PendingActions as _0x477204}from'ckeditor5/src/core';import{LiveRange as _0x32a372}from'ckeditor5/src/engine';import{CKEditorError as _0x4580a,uid as _0x5bbf48,priorities as _0x44eedc,logWarning as _0x2d1496}from'ckeditor5/src/utils';import{toWidget as _0x4412c7}from'ckeditor5/src/widget';import{Users as _0x31252a,hashObject as _0x41d18c}from'ckeditor5-collaboration/src/collaboration-core';import _0x2e0cd9 from'./commands/trackchangescommand';import _0x52339e from'./commands/acceptsuggestioncommand';import _0x34c5ee from'./commands/discardsuggestioncommand';import _0x337ddf from'./commands/executeonallsuggestionscommand';import _0xc0dd42 from'./commands/executeonselectedsuggestionscommand';import _0x111892 from'./suggestion';import _0x1dfaa3 from'./suggestiondescriptionfactory';import _0x1834e1 from'./integrations/alignment';import _0x25639b from'./integrations/basicstyles';import _0x10fc9e from'./integrations/blockquote';import _0x7cc57a from'./integrations/ckbox';import _0x199f36 from'./integrations/codeblock';import _0x4c12c9 from'./integrations/comments';import _0x43ef46 from'./integrations/deletecommand';import _0x11e4fa from'./integrations/documentlist';import _0x421e9d from'./integrations/entercommand';import _0x30412e from'./integrations/findandreplace';import _0x1bfd44 from'./integrations/font';import _0x4d9104 from'./integrations/formatpainter';import _0x3c4306 from'./integrations/heading';import _0x20d4a5 from'./integrations/highlight';import _0x412086 from'./integrations/horizontalline';import _0x206efd from'./integrations/htmlembed';import _0x2f67d9 from'./integrations/image';import _0x16388d from'./integrations/imagereplace';import _0x343262 from'./integrations/importword';import _0x155a01 from'./integrations/indent';import _0xc1b4bf from'./integrations/inputcommand';import _0x444d4a from'./integrations/link';import _0x171bd2 from'./integrations/list';import _0xfbc603 from'./integrations/listproperties';import _0x56a085 from'./integrations/mediaembed';import _0xe8e613 from'./integrations/mention';import _0x170325 from'./integrations/pagebreak';import _0x5ef1fc from'./integrations/paragraph';import _0x476356 from'./integrations/removeformat';import _0x180254 from'./integrations/restrictededitingmode';import _0x555bc8 from'./integrations/shiftentercommand';import _0x4628d4 from'./integrations/standardeditingmode';import _0x3b7e99 from'./integrations/style';import _0x12696a from'./integrations/table';import _0x37b63e from'./integrations/tablemergesplit';import _0x8aeee4 from'./integrations/tableheadings';import _0x340669 from'./integrations/tableclipboard';import _0x4ca1cd from'./integrations/tablecolumnresize';import _0x28df78 from'./integrations/template';import _0x450a82 from'./integrations/tableofcontents';import _0x2f0d68 from'./integrations/title';import _0x114dc1 from'./integrations/undo';import{getTranslation as _0x1590fa}from'./utils/common-translations';import _0xa61e8a from'./integrations/tablecaption';import _0x88bdce from'./integrations/documentlistproperties';import _0x58c0c4 from'./integrations/tableproperties';export default class p extends _0x121a76{static get[_0x4914('0xda')](){return[_0x4914('0x110'),_0x31252a,_0x477204,_0x1834e1,_0x25639b,_0x10fc9e,_0x7cc57a,_0x199f36,_0x4c12c9,_0x43ef46,_0x11e4fa,_0x88bdce,_0x421e9d,_0x30412e,_0x1bfd44,_0x4d9104,_0x3c4306,_0x20d4a5,_0x412086,_0x206efd,_0x2f67d9,_0x16388d,_0x343262,_0x155a01,_0xc1b4bf,_0x444d4a,_0x171bd2,_0xfbc603,_0x56a085,_0xe8e613,_0x170325,_0x5ef1fc,_0x476356,_0x180254,_0x555bc8,_0x4628d4,_0x3b7e99,_0x12696a,_0x37b63e,_0x8aeee4,_0xa61e8a,_0x340669,_0x4ca1cd,_0x450a82,_0x58c0c4,_0x28df78,_0x2f0d68,_0x114dc1];}static get[_0x4914('0xe1')](){return _0x4914('0x57');}constructor(_0x434add){function _0x488c1c(_0x456c79){return _0x456c79[_0x4914('0x50')](_0x41f208=>String[_0x4914('0x7d')](_0x41f208))[_0x4914('0x51')]('');}super(_0x434add),this[_0x4914('0x8b')](_0x4914('0x99'),[]),this['on'](_0x4914('0xa8'),(_0x42cd86,_0x5a45f5,_0x46bbd7,_0x1bff87)=>{this[_0x4914('0x96')][_0x4914('0x6a')](()=>{for(const _0x2ce220 of[..._0x1bff87,..._0x46bbd7])this[_0x4914('0x96')][_0x4914('0xfd')]['has'](_0x2ce220)&&_0x434add['editing'][_0x4914('0x1')](_0x2ce220);});}),this[_0x4914('0x19')]=new _0x1dfaa3(this[_0x4914('0xc2')][_0x4914('0x16')][_0x4914('0x14')],this[_0x4914('0xc2')]['locale']),this['_adapter']=null,this['_suggestionFactory']=new Dt(this[_0x4914('0xc2')]),this[_0x4914('0x12')]=new Map(),this['_commentsRepository']=_0x434add[_0x4914('0x88')]['get'](_0x4914('0x110')),this['_enabledCommands']=new Set(),this[_0x4914('0x96')]=this[_0x4914('0xc2')][_0x4914('0x16')],this[_0x4914('0xf1')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x434add['config'][_0x4914('0x3d')](_0x4914('0x39'),'default'),this[_0x4914('0x9f')]=_0x434add[_0x4914('0x3b')][_0x4914('0xe2')](_0x4914('0x39')),_0x434add[_0x4914('0x3b')][_0x4914('0x3d')](_0x4914('0xac'),!0x0),this['_mergeNestedSuggestions']=_0x434add[_0x4914('0x3b')][_0x4914('0xe2')](_0x4914('0xac')),this[_0x4914('0x8a')]=new _0x2e0cd9(_0x434add,this[_0x4914('0x60')]),this[_0x488c1c([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x488c1c([0x34,0x30,0x34,0x36,0x31,0x36,0x35,0x32]);}['init'](){const _0x285aa5=this[_0x4914('0xc2')];_0x285aa5[_0x4914('0xd9')][_0x4914('0xf9')](_0x4914('0x75'))[_0x4914('0x36')]({'model':_0x4914('0x5a'),'view':_0x1fd714=>{const {id:_0x5a882c,type:_0x2dd505}=this['_splitMarkerName'](_0x1fd714[_0x4914('0xb4')]),_0x297fe6=['ck-suggestion-marker',_0x4914('0x8')+_0x2dd505];let _0x2ec679=0xbb8;return this['activeMarkers'][_0x4914('0x1c')](_0x1fd714[_0x4914('0xb4')])&&(_0x297fe6[_0x4914('0xb6')](_0x4914('0x123')),_0x2ec679=0xbc2),_0x4914('0x25')==_0x2dd505&&(_0x2ec679+=0x5),{'classes':_0x297fe6,'attributes':{'data-suggestion':_0x5a882c},'priority':_0x2ec679};}}),_0x285aa5[_0x4914('0xd9')][_0x4914('0xf9')](_0x4914('0xc7'))[_0x4914('0x13d')](_0x3f62f3=>{_0x3f62f3['on'](_0x4914('0x2'),(_0x1190f2,_0x312d64,_0x962f76)=>{if(!_0x962f76['options'][_0x4914('0x10a')])return;const _0x590f8c=_0x312d64[_0x4914('0x13b')];if(!_0x590f8c)return;const _0x5b06ab=_0x962f76[_0x4914('0xc6')][_0x4914('0x109')](_0x590f8c);_0x285aa5[_0x4914('0x16')]['schema'][_0x4914('0x1a')](_0x590f8c)&&_0x5b06ab&&!_0x5b06ab[_0x4914('0x69')](_0x4914('0x12c'))&&_0x5b06ab['is'](_0x4914('0x30'))&&_0x4412c7(_0x5b06ab,_0x962f76[_0x4914('0x2d')]);},{'priority':'high'});}),_0x285aa5[_0x4914('0xd9')]['for'](_0x4914('0xc7'))[_0x4914('0x36')]({'model':'suggestion','view':(_0x411d84,_0x24db2b)=>{if(!_0x24db2b[_0x4914('0x14b')][_0x4914('0x10a')])return null;const {type:_0x47e06b}=this[_0x4914('0x10')](_0x411d84[_0x4914('0xb4')]);return{'classes':[_0x4914('0x4f'),_0x4914('0x8')+_0x47e06b],'priority':0xbb8};}});const _0x29dec3=({showActiveMarkers:_0x7b0b2a=!0x0}={})=>(_0x2dea55,_0x2bd9aa,_0x55ed63)=>{if(!_0x2bd9aa['item'])return;if(_0x2bd9aa[_0x4914('0x13b')]['is'](_0x4914('0x37')))return void _0x55ed63[_0x4914('0x125')][_0x4914('0x140')](_0x2bd9aa[_0x4914('0x13b')],_0x2dea55[_0x4914('0x149')]);const _0x558565=_0x55ed63[_0x4914('0xc6')][_0x4914('0x109')](_0x2bd9aa['item']);if(!(_0x2bd9aa[_0x4914('0x13b')]['is'](_0x4914('0xce'))&&_0x285aa5['model']['schema'][_0x4914('0x83')](_0x2bd9aa[_0x4914('0x13b')])&&!_0x558565[_0x4914('0x69')](_0x4914('0x80'))))return;const {id:_0x4ece3c}=this[_0x4914('0x10')](_0x2bd9aa[_0x4914('0xb4')]);_0x55ed63[_0x4914('0x2d')][_0x4914('0xe5')]([_0x4914('0x4f'),'ck-suggestion-marker-formatBlock'],_0x558565),_0x55ed63[_0x4914('0x2d')][_0x4914('0xb5')](_0x4914('0xc3'),_0x4ece3c,_0x558565),_0x55ed63[_0x4914('0xc6')][_0x4914('0xd2')](_0x558565,_0x2bd9aa[_0x4914('0xb4')]),_0x7b0b2a&&(this[_0x4914('0x99')]['includes'](_0x2bd9aa[_0x4914('0xb4')])?_0x55ed63[_0x4914('0x2d')][_0x4914('0xe5')](_0x4914('0x123'),_0x558565):_0x55ed63[_0x4914('0x2d')][_0x4914('0x10b')](_0x4914('0x123'),_0x558565));for(const _0x47f307 of _0x285aa5[_0x4914('0x16')]['createRangeIn'](_0x2bd9aa[_0x4914('0x13b')])[_0x4914('0x9')]())_0x55ed63[_0x4914('0x125')][_0x4914('0x140')](_0x47f307,_0x2dea55[_0x4914('0x149')]);_0x55ed63[_0x4914('0x125')][_0x4914('0x140')](_0x2bd9aa[_0x4914('0x13b')],_0x2dea55[_0x4914('0x149')]);};_0x285aa5[_0x4914('0xd9')][_0x4914('0xf9')](_0x4914('0xc7'))[_0x4914('0x13d')](_0x41fdfb=>{_0x41fdfb['on']('addMarker:suggestion:formatBlock',(_0x3dd2d0,_0x92aeda,_0x3a4a08)=>{_0x3a4a08[_0x4914('0x14b')][_0x4914('0x10a')]&&_0x29dec3({'showActiveMarkers':!0x1})(_0x3dd2d0,_0x92aeda,_0x3a4a08);},{'priority':_0x4914('0xa5')});}),_0x285aa5['conversion']['for'](_0x4914('0xc7'))[_0x4914('0xd7')]({'model':_0x4914('0x5a'),'view':(_0x39ce02,_0xcf4777)=>_0xcf4777[_0x4914('0x14b')]['showSuggestionHighlights']?null:{'group':_0x4914('0x5a'),'name':_0x39ce02[_0x4914('0x5c')](0xb)}}),_0x285aa5['conversion'][_0x4914('0xf9')]('upcast')[_0x4914('0xab')]({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x42bf34,{writer:_0x536c1c})=>{let _0x347747=_0x4914('0xbc')+_0x42bf34['getAttribute'](_0x4914('0x118'))+':'+_0x42bf34[_0x4914('0x53')]('id');return _0x42bf34[_0x4914('0x53')](_0x4914('0xe7'))&&(_0x347747+=':'+_0x42bf34[_0x4914('0x53')](_0x4914('0xe7'))),_0x536c1c[_0x4914('0x89')](_0x4914('0x8e'),{'data-name':_0x347747});}}),_0x285aa5[_0x4914('0xd9')]['for'](_0x4914('0x111'))[_0x4914('0x18')]({'view':_0x4914('0x5a')}),_0x285aa5[_0x4914('0xd9')][_0x4914('0xf9')]('editingDowncast')[_0x4914('0x13d')](_0x261245=>{_0x261245['on'](_0x4914('0xd4'),_0x29dec3(),{'priority':_0x4914('0xcf')});}),_0x285aa5[_0x4914('0xd9')]['for'](_0x4914('0x75'))['add'](_0x4f8ade=>{_0x4f8ade['on'](_0x4914('0xfe'),(_0x12aec3,_0x32b47e,_0x452d13)=>{const _0x570f98=_0x452d13[_0x4914('0xc6')][_0x4914('0x103')](_0x32b47e['markerName']);if(_0x570f98)for(const _0x1f9cae of _0x570f98)_0x1f9cae[_0x4914('0x69')](_0x4914('0x80'))||(_0x452d13['writer'][_0x4914('0x10b')]([_0x4914('0x4f'),_0x4914('0xea'),_0x4914('0x123')],_0x1f9cae),_0x452d13[_0x4914('0x2d')][_0x4914('0x56')](_0x4914('0xc3'),_0x1f9cae),_0x452d13['mapper'][_0x4914('0x85')](_0x1f9cae,_0x32b47e[_0x4914('0xb4')]));},{'priority':_0x4914('0xcf')});}),_0x285aa5[_0x4914('0x16')][_0x4914('0x46')][_0x4914('0x93')](_0x5d7d6d=>{let _0x5b7d7f=!0x1;const _0x2da30c=Array[_0x4914('0xc')](_0x285aa5[_0x4914('0x16')][_0x4914('0x46')][_0x4914('0x45')][_0x4914('0x7a')]()),_0xeab155=new Set();for(const {name:_0x128719,data:_0x3a677b}of _0x2da30c){const {group:_0x8fb8be,type:_0x3c0fde,id:_0x5f198d}=this[_0x4914('0x10')](_0x128719);if(_0x4914('0x5a')!==_0x8fb8be)continue;const _0x275f08=this[_0x4914('0x12')][_0x4914('0xe2')](_0x5f198d);if(null!=_0x3a677b['newRange']){_0x4914('0x74')==_0x3c0fde&&(_0x5b7d7f=_0x5b7d7f||Mt(_0x3a677b[_0x4914('0xad')],_0x128719,_0x5d7d6d,_0x285aa5[_0x4914('0x16')]['schema']));if(_0x3a677b[_0x4914('0xad')]['isCollapsed']||_0x4914('0x31')==_0x3a677b[_0x4914('0xad')]['root']['rootName']||'formatBlock'==_0x3c0fde&&!Nt(_0x3a677b[_0x4914('0xad')])||_0x4914('0x25')==_0x3c0fde&&!(!_t(_0x4efeb9=_0x3a677b[_0x4914('0xad')])&&!function(_0x3b4af2){return _0x3b4af2[_0x4914('0xf7')][_0x4914('0x38')]==_0x3b4af2[_0x4914('0xfa')]['nodeBefore']&&_0x3b4af2[_0x4914('0xf7')]['isAtEnd'];}(_0x4efeb9)))_0x5d7d6d[_0x4914('0x1d')](_0x128719),_0x5b7d7f=!0x0;else{if(!_0x275f08||!_0x275f08[_0x4914('0x1e')])continue;_0xeab155[_0x4914('0x13d')](_0x275f08);}}}var _0x4efeb9;return _0xeab155[_0x4914('0x20')]>0x0&&(_0x5b7d7f=!!this[_0x4914('0xe0')](_0xeab155)||_0x5b7d7f),_0x5b7d7f;}),_0x285aa5[_0x4914('0x16')][_0x4914('0x46')][_0x4914('0x93')](_0x4e7b79=>{let _0x406c6d=!0x1;for(const _0x4d0a88 of _0x285aa5[_0x4914('0x16')]['document'][_0x4914('0x45')][_0x4914('0x32')]()){if(_0x4914('0x49')!=_0x4d0a88[_0x4914('0x7f')])continue;const _0x2a4267=_0x4d0a88[_0x4914('0xd5')][_0x4914('0xc4')](_0x4d0a88[_0x4914('0x3f')]);if(_0x2a4267[_0x4914('0x1b')])for(const _0x21f3d7 of this[_0x4914('0x12')][_0x4914('0x5')]()){if(_0x21f3d7[_0x4914('0xa')]||!_0x21f3d7['isInContent'])continue;if(_0x4914('0x3e')!=_0x21f3d7['type'])continue;const _0x2e09f4=_0x21f3d7[_0x4914('0x128')]();if(_0x2e09f4[_0x4914('0xf7')][_0x4914('0x38')]!=_0x2e09f4[_0x4914('0xfa')][_0x4914('0x38')]&&_0x2e09f4[_0x4914('0xfa')][_0x4914('0x9e')](_0x4d0a88[_0x4914('0xd5')])){const _0x4716ea=_0x285aa5[_0x4914('0x16')][_0x4914('0xdb')](_0x2e09f4[_0x4914('0xf7')],_0x2a4267);_0x4e7b79['updateMarker'](_0x21f3d7[_0x4914('0x144')](),{'range':_0x4716ea}),_0x406c6d=!0x0;}}}return _0x406c6d;}),_0x285aa5[_0x4914('0x16')][_0x4914('0xfd')]['on'](_0x4914('0x59'),(_0x573cc8,_0x3066b2,_0x7da48b)=>{if(null==_0x7da48b){const {id:_0x130cce}=this[_0x4914('0x10')](_0x3066b2[_0x4914('0x149')]),_0x6e5969=this['_suggestions']['get'](_0x130cce);_0x6e5969&&_0x6e5969[_0x4914('0x147')](_0x3066b2[_0x4914('0x149')]);}}),_0x285aa5['model'][_0x4914('0x46')]['on'](_0x4914('0x78'),()=>{const _0xb0110a=Array['from'](_0x285aa5[_0x4914('0x16')]['document'][_0x4914('0x45')][_0x4914('0x7a')]())['filter'](_0x3ff802=>_0x4914('0x5a')===this['_splitMarkerName'](_0x3ff802[_0x4914('0x149')])['group']);if(0x0===_0xb0110a[_0x4914('0x3f')])return;_0xb0110a[_0x4914('0xf8')]((_0x2126b4,_0x2e5e34)=>{const _0x1364fc=_0x2126b4[_0x4914('0x68')]['oldRange'],_0x490c1e=_0x2e5e34[_0x4914('0x68')][_0x4914('0x115')];return null===_0x1364fc&&null===_0x490c1e?0x0:null===_0x1364fc&&null!==_0x490c1e?-0x1:null!==_0x1364fc&&null===_0x490c1e?0x1:_0x1364fc[_0x4914('0xf7')][_0x4914('0xa0')](_0x490c1e[_0x4914('0xf7')])?-0x1:0x1;});const _0x10e5da=new Set(),_0x2412e1=new Set();for(const {name:_0x3df03c,data:_0x38b65d}of _0xb0110a){const {id:_0x1d7aa4}=this['_splitMarkerName'](_0x3df03c);if(null===_0x38b65d[_0x4914('0x115')]){const _0x358136=this[_0x4914('0x63')](_0x3df03c);_0x2412e1[_0x4914('0x13d')](_0x358136);}else{const _0x173045=this[_0x4914('0x12')][_0x4914('0xe2')](_0x1d7aa4);null!==_0x38b65d[_0x4914('0xad')]||_0x173045[_0x4914('0x1e')]?(_0x10e5da[_0x4914('0x13d')](_0x173045['head']),_0x2412e1[_0x4914('0x13d')](_0x173045)):this[_0x4914('0x72')](_0x173045);}}_0x2412e1[_0x4914('0x20')]>0x0&&this[_0x4914('0x3c')](_0x2412e1);for(const _0x2bdd4f of _0x10e5da)this[_0x4914('0x6f')](_0x4914('0x44'),_0x2bdd4f);}),_0x285aa5['model']['on'](_0x4914('0x4d'),(_0xda4568,_0x359333)=>{const _0x4d2315=_0x359333[0x0];if(!this[_0x4914('0x12')]['size'])return;if(!_0x4d2315['isDocumentOperation'])return;if(_0x4d2315['batch']['isUndo']||!_0x4d2315[_0x4914('0xb7')]['isLocal'])return;let _0x5444f2,_0x2e4a72;switch(_0x4d2315['type']){case _0x4914('0x49'):_0x5444f2=_0x285aa5[_0x4914('0x16')][_0x4914('0x71')](_0x4d2315[_0x4914('0xd5')]),_0x2e4a72=_0x5444f2[_0x4914('0xc4')](_0x4d2315['howMany']);break;case _0x4914('0xdc'):_0x5444f2=_0x285aa5[_0x4914('0x16')]['createPositionAt'](_0x4d2315[_0x4914('0x12d')]),_0x2e4a72=_0x285aa5[_0x4914('0x16')][_0x4914('0x71')](_0x4d2315[_0x4914('0x122')]);break;case'move':_0x5444f2=_0x285aa5[_0x4914('0x16')][_0x4914('0x71')](_0x4d2315[_0x4914('0x136')]),_0x2e4a72=_0x5444f2['getShiftedBy'](_0x4d2315[_0x4914('0x113')]);break;default:return;}const _0x259b47=_0x285aa5[_0x4914('0x16')][_0x4914('0xdb')](_0x5444f2,_0x2e4a72);_0x285aa5['model'][_0x4914('0x6a')](()=>{for(const {suggestion:_0x29514d,meta:_0x2d94f7}of this['_findSuggestions'](_0x259b47)){if(_0x29514d['isMultiRange'])continue;if('formatInline'==_0x29514d[_0x4914('0x7f')])continue;const _0x2e297f=_0x29514d[_0x4914('0x68')]&&_0x29514d[_0x4914('0x68')][_0x4914('0x129')];('formatBlock'!=_0x29514d[_0x4914('0x7f')]||_0x4914('0xdc')==_0x4d2315[_0x4914('0x7f')]&&!_0x2e297f)&&(_0x2d94f7['containsRangeInObject']||'insertion'==_0x29514d['type']&&_0x2d94f7[_0x4914('0x95')]||_0x29514d[_0x4914('0x128')]()['containsRange'](_0x259b47)&&this[_0x4914('0xc1')](_0x29514d,_0x5444f2,_0x2e4a72));}});},{'priority':_0x4914('0x41')}),_0x285aa5[_0x4914('0x16')]['on'](_0x4914('0x106'),(_0x1b7008,_0x258c3c)=>{const _0x4fd1c1=_0x258c3c[0x0],_0x26ef10=_0x258c3c[0x1];if(_0x26ef10&&_0x26ef10[_0x4914('0x5e')])return;if(this[_0x4914('0xc5')])return;if(!this[_0x4914('0x8a')][_0x4914('0x27')])return;if(_0x4fd1c1[_0x4914('0x5f')])return;const _0x4548fb=_0x285aa5[_0x4914('0x16')][_0x4914('0x14')],{start:_0x57a699,end:_0x5e8446}=_0x4fd1c1[_0x4914('0x128')](),_0x158a71=_0x57a699[_0x4914('0xfc')]&&_0x4548fb[_0x4914('0x119')](_0x57a699[_0x4914('0xfc')])?null:_0x4548fb['getNearestSelectionRange'](_0x57a699,_0x4914('0x67')),_0x2dd526=_0x5e8446[_0x4914('0x2c')]&&_0x4548fb[_0x4914('0x119')](_0x5e8446[_0x4914('0x2c')])?null:_0x4548fb['getNearestSelectionRange'](_0x5e8446,'backward'),_0x4856fa=_0x285aa5[_0x4914('0x16')][_0x4914('0xdb')](_0x158a71?_0x158a71[_0x4914('0xf7')]:_0x57a699,_0x2dd526?_0x2dd526[_0x4914('0xfa')]:_0x5e8446);_0x285aa5[_0x4914('0x16')][_0x4914('0x6a')](_0x42824c=>{this[_0x4914('0x13c')](_0x4856fa);const _0x308290=_0x285aa5[_0x4914('0x16')][_0x4914('0x14')][_0x4914('0x82')](_0x4856fa[_0x4914('0xf7')]);_0x4fd1c1['is'](_0x4914('0x1f'))?_0x42824c[_0x4914('0x26')](_0x308290):_0x4fd1c1['setTo'](_0x308290);}),_0x1b7008[_0x4914('0x28')]();},{'priority':_0x44eedc[_0x4914('0x33')]+0xa}),_0x285aa5[_0x4914('0x16')]['on'](_0x4914('0x86'),(_0x57c510,_0x24e20e)=>{const _0x1317e4=_0x24e20e[_0x24e20e['length']-0x1];_0x1317e4&&_0x1317e4[_0x4914('0x5e')]||this[_0x4914('0xc5')]||this[_0x4914('0x8a')][_0x4914('0x27')]&&(_0x285aa5[_0x4914('0x16')][_0x4914('0x6a')](()=>{let _0x1e5d5c=_0x285aa5[_0x4914('0x16')][_0x4914('0x86')](_0x24e20e[0x0],_0x24e20e[0x1],_0x24e20e[0x2],{'forceDefaultExecution':!0x0});if(!_0x1e5d5c)return;_0x57c510[_0x4914('0x4')]=_0x1e5d5c[_0x4914('0x12e')]();const _0x2e68a0=_0x1e5d5c[_0x4914('0xfa')][_0x4914('0x2c')],_0x26060a=_0x285aa5[_0x4914('0x16')][_0x4914('0x14')];_0x2e68a0&&_0x26060a[_0x4914('0x83')](_0x2e68a0)&&!_0x26060a[_0x4914('0x1a')](_0x2e68a0)&&(_0x1e5d5c=_0x285aa5[_0x4914('0x16')][_0x4914('0xdb')](_0x1e5d5c['start'],_0x285aa5[_0x4914('0x16')]['createPositionAt'](_0x2e68a0,_0x4914('0xfa')))),this[_0x4914('0x131')](_0x1e5d5c);}),_0x57c510[_0x4914('0x28')]());},{'priority':_0x4914('0xcf')}),this['editor'][_0x4914('0x17')][_0x4914('0x13d')](_0x4914('0xef'),this[_0x4914('0x8a')]),this['enableCommand']('trackChanges');const _0xd69f4f=new _0x52339e(_0x285aa5,this['_suggestions']);_0x285aa5[_0x4914('0x17')][_0x4914('0x13d')](_0x4914('0x64'),_0xd69f4f),this[_0x4914('0x11d')](_0x4914('0x64'));const _0x5d9bde=new _0x34c5ee(_0x285aa5,this[_0x4914('0x12')]);_0x285aa5[_0x4914('0x17')][_0x4914('0x13d')]('discardSuggestion',_0x5d9bde),this[_0x4914('0x11d')](_0x4914('0xd8')),_0x285aa5[_0x4914('0x17')][_0x4914('0x13d')](_0x4914('0x135'),new _0x337ddf(_0x285aa5,_0xd69f4f,this[_0x4914('0x12')])),this[_0x4914('0x11d')]('acceptAllSuggestions'),_0x285aa5['commands'][_0x4914('0x13d')](_0x4914('0xcc'),new _0x337ddf(_0x285aa5,_0x5d9bde,this[_0x4914('0x12')])),this['enableCommand'](_0x4914('0xcc')),_0x285aa5[_0x4914('0x17')][_0x4914('0x13d')]('acceptSelectedSuggestions',new _0xc0dd42(_0x285aa5,_0xd69f4f,this[_0x4914('0x12')])),this['enableCommand'](_0x4914('0xff')),_0x285aa5['commands'][_0x4914('0x13d')](_0x4914('0x7e'),new _0xc0dd42(_0x285aa5,_0x5d9bde,this[_0x4914('0x12')])),this[_0x4914('0x11d')](_0x4914('0x7e'));const _0x56a8f0=_0x285aa5[_0x4914('0x88')][_0x4914('0xe2')](_0x4914('0x110'));this[_0x4914('0x22')](_0x56a8f0,_0x4914('0xaa'),(_0x2e658e,{threadId:_0x4946d3})=>{const _0x46a478=this['_suggestions']['get'](_0x4946d3);_0x46a478&&_0x46a478[_0x4914('0x130')]&&0x1===_0x46a478[_0x4914('0x130')][_0x4914('0x3f')]&&this[_0x4914('0x4a')](_0x4946d3,{'hasComments':!0x0});},{'priority':_0x4914('0x40')}),this[_0x4914('0x22')](_0x56a8f0,_0x4914('0x6b'),(_0x29cbc4,{threadId:_0xfe1461})=>{const _0x154ff4=this[_0x4914('0x12')][_0x4914('0xe2')](_0xfe1461);_0x154ff4&&_0x154ff4[_0x4914('0x130')]&&!_0x154ff4[_0x4914('0x130')][_0x4914('0x3f')]&&this[_0x4914('0x4a')](_0xfe1461,{'hasComments':!0x1});},{'priority':_0x4914('0x40')});}set[_0x4914('0x101')](_0x100b26){if(this['_adapter'])throw new _0x4580a(_0x4914('0xf2'),this);this['_adapter']=_0x100b26;}get[_0x4914('0x101')](){return this[_0x4914('0x105')];}[_0x4914('0x84')]({skipNotAttached:_0xa9ee3b=!0x1,toJSON:_0x1d9701=!0x1}={}){const _0x3812c=[];for(const _0x168dec of this[_0x4914('0x12')][_0x4914('0x5')]())_0xa9ee3b&&!_0x168dec[_0x4914('0x1e')]||_0x3812c[_0x4914('0xb6')](_0x168dec);return _0x1d9701?_0x3812c[_0x4914('0x50')](_0x1275ec=>_0x1275ec[_0x4914('0x138')]()):_0x3812c;}['getSuggestion'](_0x51a015){const _0x231d09=this[_0x4914('0x12')][_0x4914('0xe2')](_0x51a015);if(!_0x231d09)throw new _0x4580a(_0x4914('0x2e'),this);return _0x231d09;}[_0x4914('0xe8')](_0x6168cd){return this[_0x4914('0x12')][_0x4914('0x114')](_0x6168cd);}[_0x4914('0xba')](_0x8976b3){const {authorId:_0x57e6bf,id:_0x45d35d,attributes:_0x523989}=_0x8976b3,[_0x1729b5,_0x2842c7]=_0x8976b3[_0x4914('0x7f')]['split'](':'),_0x585128=this[_0x4914('0x12')]['get'](_0x45d35d)||this[_0x4914('0x11b')](_0x1729b5,_0x2842c7,_0x45d35d,_0x57e6bf,_0x523989);if(this[_0x4914('0x8c')](_0x585128),this[_0x4914('0xf3')](_0x585128,_0x1729b5,_0x2842c7||null,_0x57e6bf),_0x585128[_0x4914('0xd6')]=_0x8976b3['createdAt'],_0x523989&&_0x523989[_0x4914('0x3')]){const _0x8b06ed=_0x523989[_0x4914('0x3')],_0x3238cc=this['_getExternalAuthor'](_0x8b06ed['authorName']);_0x585128['authoredAt']=_0x8b06ed[_0x4914('0xd6')],_0x585128['author']=_0x3238cc,_0x585128[_0x4914('0x24')]=!0x0;}else _0x585128[_0x4914('0x13f')]=_0x8976b3['createdAt'];switch(_0x8976b3['data']&&(_0x585128[_0x4914('0x68')]=_0x8976b3['data']),_0x8976b3[_0x4914('0xec')]&&(_0x585128['attributes']=_0x8976b3[_0x4914('0xec')]),this[_0x4914('0x105')]&&this[_0x4914('0x105')]['addSuggestion']||(_0x585128[_0x4914('0x121')]=!0x0),this[_0x4914('0xf1')][_0x4914('0xe2')](_0x585128)){case _0x4914('0x15'):this[_0x4914('0xf1')][_0x4914('0x8b')](_0x585128,_0x4914('0x112'));break;case _0x4914('0xae'):_0x585128[_0x4914('0x1e')]?(this['_suggestionState'][_0x4914('0x8b')](_0x585128,'ready'),this[_0x4914('0x6f')](_0x4914('0x2f'),_0x585128)):this['_suggestionState'][_0x4914('0x8b')](_0x585128,'removed');}return _0x585128;}['acceptSuggestion'](_0x3cac4a){this[_0x4914('0x5e')](()=>{this[_0x4914('0xc2')]['model'][_0x4914('0x6a')](()=>{for(const _0x477a92 of _0x3cac4a[_0x4914('0xa3')]())_0x477a92[_0x4914('0x94')]();});});}[_0x4914('0xd8')](_0x493e9b){this[_0x4914('0x5e')](()=>{this['editor'][_0x4914('0x16')]['change'](()=>{for(const _0xad0150 of _0x493e9b[_0x4914('0xa3')]())_0xad0150[_0x4914('0x104')]();});});}['enableCommand'](_0x4863e8,_0x137984){const _0x537ada=this['editor'][_0x4914('0x17')][_0x4914('0xe2')](_0x4863e8);if(!_0x537ada)throw new _0x4580a(_0x4914('0x43'),this,{'commandName':_0x4863e8});this[_0x4914('0x60')]['add'](_0x537ada),_0x137984&&_0x537ada['on'](_0x4914('0x4b'),(_0x293da5,_0x54c537)=>{this[_0x4914('0x8a')][_0x4914('0x27')]&&(this[_0x4914('0xc5')]||_0x54c537['length']>0x0&&_0x54c537[_0x54c537[_0x4914('0x3f')]-0x1]&&_0x54c537[_0x54c537[_0x4914('0x3f')]-0x1][_0x4914('0x5e')]||(_0x137984((..._0x2079aa)=>_0x537ada[_0x4914('0x4b')](..._0x2079aa,{'forceDefaultExecution':!0x0}),..._0x54c537),_0x293da5['stop']()));},{'priority':_0x4914('0xcf')});}[_0x4914('0x5e')](_0x5a183d){let _0x3a72a1,_0x48c578;const _0x1044f7=this[_0x4914('0xc5')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3a72a1=_0x5a183d();}catch(_0x25f763){_0x48c578=_0x25f763;}return _0x1044f7||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x48c578&&_0x4580a['rethrowUnexpectedError'](_0x48c578,this),_0x3a72a1;}[_0x4914('0x131')](_0x39e194,_0x4fa110=null,_0x3bf2b2={}){if(_0x39e194[_0x4914('0x5f')])return null;const _0x180aa4=this[_0x4914('0xc2')][_0x4914('0x88')][_0x4914('0xe2')](_0x4914('0x0'))['me'];for(const {suggestion:_0x2ed904,meta:_0x59835e}of this[_0x4914('0x2a')](_0x39e194,'insertion'))if(_0x59835e['isOwn']){if(!_0x59835e[_0x4914('0x120')]){if(!this[_0x4914('0x108')]&&_0x59835e[_0x4914('0x126')])continue;return _0x2ed904;}if(_0x4fa110==_0x2ed904[_0x4914('0x5b')]){const _0x2834f3=_0x2ed904[_0x4914('0x128')]();return _0x2834f3[_0x4914('0xf7')][_0x4914('0x9e')](_0x39e194['end'])?this[_0x4914('0x132')](_0x2ed904,this[_0x4914('0x96')][_0x4914('0xdb')](_0x39e194[_0x4914('0xf7')],_0x2834f3['end'])):this[_0x4914('0x132')](_0x2ed904,this[_0x4914('0x96')][_0x4914('0xdb')](_0x2834f3[_0x4914('0xf7')],_0x39e194[_0x4914('0xfa')])),_0x2ed904;}}const _0x373651=_0x5bbf48(),_0x5723f9=_0x180aa4['id'],_0x5bf51a=_0x4fa110?_0x4914('0x7')+_0x4fa110:_0x4914('0x62'),_0x1b7167=this[_0x4914('0xd0')]({'id':_0x373651,'type':_0x5bf51a,'createdAt':new Date(),'authorId':_0x5723f9,'attributes':_0x3bf2b2});return this[_0x4914('0x9c')](_0x5bf51a,_0x373651,_0x5723f9,_0x39e194),_0x1b7167;}[_0x4914('0x6d')](_0x5d872e,_0x22be5e=_0x4914('0x10c'),_0x1f93d9={}){const _0xc5dbd4=this[_0x4914('0xc2')][_0x4914('0x88')][_0x4914('0xe2')](_0x4914('0x0'))['me'],_0x4f5290=this['_suggestionFactory'][_0x4914('0xe4')](_0x4914('0x62'),_0x22be5e,_0x4914('0x51'));for(const _0x425425 of this[_0x4914('0x84')]())if(_0x425425[_0x4914('0xb0')]['id']==_0xc5dbd4['id']&&_0x4914('0x62')==_0x425425[_0x4914('0x7f')]&&_0x425425[_0x4914('0x5b')]==_0x22be5e&&(_0x4f5290(_0x425425['getRanges'](),_0x5d872e)||_0x4f5290(_0x5d872e,_0x425425[_0x4914('0x133')]()))){for(const _0x3e3e03 of _0x5d872e)_0x425425[_0x4914('0x107')](_0x3e3e03);return _0x425425;}if(this[_0x4914('0x108')])for(const _0x58d652 of _0x5d872e)for(const {suggestion:_0x216150,meta:_0x40109b}of this[_0x4914('0x2a')](_0x58d652,'insertion')){if(!_0x40109b[_0x4914('0x95')])continue;let _0x51a71f=!0x0;for(const _0x40beea of _0x216150[_0x4914('0x133')]())for(const _0x4c7397 of _0x5d872e)if(!_0x40beea['containsRange'](_0x4c7397)){_0x51a71f=!0x1;break;}if(_0x51a71f)return _0x216150;}const _0x1fa6ac=_0x5bbf48(),_0x5d0e17=_0xc5dbd4['id'],_0x40f863=_0x4914('0x7')+_0x22be5e,_0x3f5f06=this['_setSuggestionData']({'id':_0x1fa6ac,'type':_0x40f863,'createdAt':new Date(),'authorId':_0x5d0e17,'attributes':_0x1f93d9});for(const _0x3dac2c of _0x5d872e)this[_0x4914('0x9c')](_0x40f863,_0x1fa6ac,_0x5d0e17,_0x3dac2c,_0x111892['getMultiRangeId']());return _0x3f5f06;}[_0x4914('0xcb')](_0x19d66e,_0x4a4074,_0x34aea4=null,_0x33e7b6={}){if(_0x34aea4=_0x34aea4||$t(_0x4a4074),_0x19d66e['isCollapsed'])return null;if('never'===this[_0x4914('0x9f')]){const _0x3057a8=this[_0x4914('0x9b')]['getSuggestionCallback'](_0x4914('0x74'),_0x34aea4,_0x4914('0x94'));return this[_0x4914('0x5e')](()=>_0x3057a8([_0x19d66e],_0x4a4074,_0x33e7b6)),null;}const _0x3eedc9=this[_0x4914('0xc2')][_0x4914('0x88')][_0x4914('0xe2')](_0x4914('0x0'))['me'],_0x1b4d55=[];if(_0x4914('0x52')!==this[_0x4914('0x9f')])for(const {suggestion:_0x3f7f5d,meta:_0x1358fa}of this['_findSuggestions'](_0x19d66e,_0x4914('0x62')))_0x1358fa[_0x4914('0x95')]&&!_0x1358fa['isInsideObject']&&_0x1b4d55[_0x4914('0xb6')](..._0x3f7f5d[_0x4914('0x133')]());const _0x3f52dd=function(_0x1d136e,_0x5bc1c3){const _0x3d58a0=[];for(const _0x56bd04 of _0x5bc1c3){const _0x159840=_0x1d136e[_0x4914('0xd3')](_0x56bd04);_0x159840&&_0x3d58a0[_0x4914('0xb6')](_0x159840);}return _0x3d58a0;}(_0x19d66e,_0x1b4d55),_0x1de7ad=function(_0x2f1f14,_0x5599ae){const _0x228056=[_0x2f1f14];for(const _0x567880 of _0x5599ae){let _0x5bd430=0x0;for(;_0x5bd430<_0x228056[_0x4914('0x3f')];){const _0xf9ec24=_0x228056[_0x5bd430][_0x4914('0xbd')](_0x567880);_0x228056[_0x4914('0x124')](_0x5bd430,0x1,..._0xf9ec24),_0x5bd430+=_0xf9ec24[_0x4914('0x3f')];}}return _0x228056;}(_0x19d66e,_0x1b4d55);_0x3f52dd[_0x4914('0x3f')]&&this[_0x4914('0x96')]['change'](()=>{for(const _0x2dfb13 of _0x3f52dd){const _0x5ae14d=this['_suggestionFactory'][_0x4914('0xe4')](_0x4914('0x74'),_0x34aea4,_0x4914('0x94'));this[_0x4914('0x5e')](()=>_0x5ae14d([_0x2dfb13],_0x4a4074,_0x33e7b6));}});for(const _0x38cdb3 of _0x1de7ad){let _0x230951=null,_0x1de005=_0x38cdb3[_0x4914('0xf7')],_0x5eb7b0=_0x38cdb3['end'];for(const {suggestion:_0x1cfb42,meta:_0x2ef26d}of this['_findSuggestions'](_0x38cdb3,_0x4914('0x74'))){if(!_0x2ef26d[_0x4914('0x95')])continue;if(_0x1cfb42['subType']!=_0x34aea4)continue;const _0x50eb6b=_0x1cfb42[_0x4914('0x128')]();if(_0x50eb6b[_0x4914('0xb9')](_0x38cdb3,!0x0))return null;_0x1de005=_0x1de005['isBefore'](_0x50eb6b[_0x4914('0xf7')])?_0x1de005:_0x50eb6b[_0x4914('0xf7')],_0x5eb7b0=_0x5eb7b0[_0x4914('0xb1')](_0x50eb6b[_0x4914('0xfa')])?_0x5eb7b0:_0x50eb6b['end'],_0x230951?_0x50eb6b[_0x4914('0xf7')][_0x4914('0xa0')](_0x230951[_0x4914('0x128')]()['start'])?(_0x230951[_0x4914('0xdf')](),_0x230951=_0x1cfb42):_0x1cfb42[_0x4914('0xdf')]():_0x230951=_0x1cfb42;}const _0x5caf14=this[_0x4914('0x96')][_0x4914('0xdb')](_0x1de005,_0x5eb7b0);if(_0x230951)this[_0x4914('0x132')](_0x230951,_0x5caf14);else{const _0x1583f7=_0x5bbf48(),_0x40ed0a=_0x3eedc9['id'];this['_setSuggestionData']({'id':_0x1583f7,'type':_0x4914('0x137')+_0x34aea4,'data':_0x4a4074,'createdAt':new Date(),'authorId':_0x40ed0a,'attributes':_0x33e7b6}),this[_0x4914('0x9c')](_0x4914('0x137')+_0x34aea4,_0x1583f7,_0x40ed0a,_0x5caf14);}}return null;}[_0x4914('0x9a')](_0x4a1129,_0x6f9038,_0x2b0c4a=[],_0x34c0d9=null,_0xd3c1bb={}){_0x6f9038['formatGroupId']||(_0x6f9038[_0x4914('0xa1')]=_0x6f9038[_0x4914('0x7b')]),_0x6f9038[_0x4914('0x129')]=_0x4a1129['is'](_0x4914('0x76')),_0x34c0d9=_0x34c0d9||$t(_0x6f9038);const _0x2a9d12=_0x2b0c4a[_0x4914('0x50')](_0x32dbd3=>Rt(_0x32dbd3,this['_model'])),_0x4a6884=_0x4a1129['is'](_0x4914('0x76'))?_0x4a1129:Rt(_0x4a1129,this[_0x4914('0x96')]);if(_0x4914('0x58')===this[_0x4914('0x9f')]){const _0xbfeb18=this['_suggestionFactory']['getSuggestionCallback'](_0x4914('0x3e'),_0x34c0d9,'accept');return this['forceDefaultExecution'](()=>_0xbfeb18([_0x4a6884],_0x6f9038,_0xd3c1bb)),null;}_0x2a9d12['push'](_0x4a6884);let _0x1e7565=!0x0;for(const _0x5ef8fa of _0x2a9d12)if(!this[_0x4914('0x6e')](_0x5ef8fa)){_0x1e7565=!0x1;break;}if(_0x1e7565&&'always'!==this[_0x4914('0x9f')]){const _0x3432da=this[_0x4914('0x9b')][_0x4914('0xe4')](_0x4914('0x3e'),_0x34c0d9,'accept');return this['forceDefaultExecution'](()=>_0x3432da([_0x4a6884],_0x6f9038,_0xd3c1bb)),null;}let _0x5789e6=null,_0x27de51=_0x4a6884['start'],_0x3fe5e3=_0x4a6884['end'];for(const {suggestion:_0x5f58d0,meta:_0x4a6f64}of this[_0x4914('0x2a')](_0x4a6884,_0x4914('0x3e'))){if(!_0x4a6f64[_0x4914('0x95')]||_0x4a6f64[_0x4914('0x120')]||_0x4a6f64[_0x4914('0x126')]||_0x4a6f64[_0x4914('0x148')])continue;if(_0x5f58d0[_0x4914('0x68')]['formatGroupId']!=_0x6f9038[_0x4914('0xa1')])continue;const _0x3cf39d=_0x5f58d0[_0x4914('0x128')]();if(_0x5f58d0['subType']==_0x34c0d9){if(_0x3cf39d['containsRange'](_0x4a6884,!0x0))return null;_0x27de51=_0x27de51[_0x4914('0xa0')](_0x3cf39d['start'])?_0x27de51:_0x3cf39d[_0x4914('0xf7')],_0x3fe5e3=_0x3fe5e3[_0x4914('0xb1')](_0x3cf39d[_0x4914('0xfa')])?_0x3fe5e3:_0x3cf39d[_0x4914('0xfa')],_0x5789e6?_0x3cf39d[_0x4914('0xf7')][_0x4914('0xa0')](_0x5789e6[_0x4914('0x128')]()[_0x4914('0xf7')])?(_0x5789e6[_0x4914('0xdf')](),_0x5789e6=_0x5f58d0):_0x5f58d0[_0x4914('0xdf')]():_0x5789e6=_0x5f58d0;}else{const _0x285aa1=_0x4a6884[_0x4914('0xd3')](_0x3cf39d);this[_0x4914('0x61')](_0x5f58d0,_0x285aa1);}}const _0x2a9244=this[_0x4914('0xc2')][_0x4914('0x88')][_0x4914('0xe2')](_0x4914('0x0'))['me'],_0x137a63=_0x5bbf48(),_0x452290=_0x2a9244['id'];if(_0x5789e6)return this['_setSuggestionRange'](_0x5789e6,this[_0x4914('0x96')][_0x4914('0xdb')](_0x27de51,_0x3fe5e3)),_0x5789e6;{const _0x1c7588=this[_0x4914('0xd0')]({'id':_0x137a63,'type':_0x4914('0x34')+_0x34c0d9,'data':_0x6f9038,'createdAt':new Date(),'authorId':_0x452290,'attributes':_0xd3c1bb});return this['_addSuggestionMarker'](_0x4914('0x34')+_0x34c0d9,_0x137a63,_0x452290,this[_0x4914('0x96')][_0x4914('0xdb')](_0x27de51,_0x3fe5e3)),_0x1c7588;}}[_0x4914('0x12f')](_0x556f74,_0x35b77e,_0x58b7e4=[],_0x1f0cb8=null,_0x47478d={}){_0x35b77e[_0x4914('0xa1')]||(_0x35b77e[_0x4914('0xa1')]=_0x35b77e[_0x4914('0x7b')]);const _0x4ec348=_0x556f74[0x0];_0x35b77e[_0x4914('0x129')]=_0x4ec348['is']('range'),_0x1f0cb8=_0x1f0cb8||$t(_0x35b77e);const _0x47fe68=_0x58b7e4['map'](_0x2a5f50=>Rt(_0x2a5f50,this[_0x4914('0x96')])),_0x3078b1=_0x4ec348['is'](_0x4914('0x76'))?_0x556f74:_0x556f74[_0x4914('0x50')](_0xdaf374=>Rt(_0xdaf374,this[_0x4914('0x96')]));if(_0x4914('0x58')===this[_0x4914('0x9f')]){const _0x4cbd9c=this[_0x4914('0x9b')][_0x4914('0xe4')]('formatBlock',_0x1f0cb8,_0x4914('0x94'));return this[_0x4914('0x5e')](()=>_0x4cbd9c(_0x3078b1,_0x35b77e,_0x47478d)),null;}_0x47fe68[_0x4914('0xb6')](..._0x3078b1);let _0x51fd60=!0x0;for(const _0x575812 of _0x47fe68)if(!this[_0x4914('0x6e')](_0x575812)){_0x51fd60=!0x1;break;}if(_0x51fd60&&'always'!==this[_0x4914('0x9f')]){const _0x50b13f=this[_0x4914('0x9b')][_0x4914('0xe4')](_0x4914('0x3e'),_0x1f0cb8,_0x4914('0x94'));return this[_0x4914('0x5e')](()=>_0x50b13f(_0x3078b1,_0x35b77e,_0x47478d)),null;}const _0x334f93=this[_0x4914('0xc2')][_0x4914('0x88')][_0x4914('0xe2')]('Users')['me'];for(const _0x1f2ad7 of this['getSuggestions']()){if(_0x1f2ad7[_0x4914('0xb0')]['id']!=_0x334f93['id'])continue;if(_0x4914('0x3e')!=_0x1f2ad7[_0x4914('0x7f')]||_0x1f2ad7[_0x4914('0x68')][_0x4914('0xa1')]!=_0x35b77e[_0x4914('0xa1')])continue;const _0x16e348=_0x1f2ad7[_0x4914('0x5b')]==_0x1f0cb8;for(let _0x2c021f=0x0;_0x2c021f<_0x3078b1[_0x4914('0x3f')];_0x2c021f++){const _0x5f237b=_0x3078b1[_0x2c021f];for(const _0x2ae1a1 of _0x1f2ad7[_0x4914('0x13a')]()){const _0x52c6da=_0x2ae1a1[_0x4914('0xe6')]();if(_0x5f237b[_0x4914('0x9e')](_0x52c6da)){_0x16e348?(_0x3078b1[_0x4914('0x124')](_0x2c021f,0x1),_0x2c021f--):_0x1f2ad7[_0x4914('0x1d')](_0x2ae1a1[_0x4914('0x149')]);break;}}}}if(0x0==_0x3078b1['length'])return null;const _0x296b23=this[_0x4914('0x9b')]['getSuggestionCallback']('formatBlock',_0x1f0cb8,_0x4914('0x51'));for(const _0x472032 of this['getSuggestions']())if(_0x472032[_0x4914('0xb0')]['id']==_0x334f93['id']&&_0x4914('0x3e')==_0x472032['type']&&_0x472032[_0x4914('0x68')][_0x4914('0xa1')]==_0x35b77e[_0x4914('0xa1')]&&_0x472032[_0x4914('0x5b')]==_0x1f0cb8&&(_0x296b23(_0x472032[_0x4914('0x133')](),_0x3078b1)||_0x296b23(_0x3078b1,_0x472032[_0x4914('0x133')]()))){for(const _0x2e601c of _0x3078b1)_0x472032[_0x4914('0x107')](_0x2e601c);return _0x472032;}const _0xf2c8f9=_0x5bbf48(),_0x5aff6d=_0x334f93['id'],_0x5b4b57=_0x4914('0x34')+_0x1f0cb8,_0x57fc57=this['_setSuggestionData']({'id':_0xf2c8f9,'type':_0x5b4b57,'data':_0x35b77e,'createdAt':new Date(),'authorId':_0x5aff6d,'attributes':_0x47478d});for(const _0x754bc4 of _0x3078b1)this[_0x4914('0x9c')](_0x5b4b57,_0xf2c8f9,_0x5aff6d,_0x754bc4,_0x111892['getMultiRangeId']());return _0x57fc57;}[_0x4914('0x13c')](_0x367d8f,_0x28cdc7=null,_0x2cafd1={}){if(_0x367d8f[_0x4914('0x5f')])return null;const _0x1ee9df=this['editor']['plugins'][_0x4914('0xe2')](_0x4914('0x0'))['me'],_0x41ec94=new _0x32a372(_0x367d8f[_0x4914('0xf7')],_0x367d8f[_0x4914('0xfa')]);for(const {suggestion:_0x3e8698,meta:_0x49fae6}of this['_findSuggestions'](_0x41ec94,_0x4914('0x62')))if(_0x49fae6['isOwn']&&!_0x49fae6[_0x4914('0x120')]){if(_0x3e8698[_0x4914('0xa')]){const _0x1bef3d=_0x3e8698[_0x4914('0x133')]()[_0x4914('0x6')](_0x4e13a2=>'$graveyard'!=_0x4e13a2[_0x4914('0x141')][_0x4914('0x6c')]);_0x1bef3d[_0x4914('0xaf')](_0x451d35=>_0x41ec94['containsRange'](_0x451d35,!0x0))&&_0x3e8698[_0x4914('0x104')]();if(_0x1bef3d[_0x4914('0x12b')](_0x2e4ef8=>_0x2e4ef8[_0x4914('0xb9')](_0x41ec94,!0x0))){const _0xcee2b2=this['_suggestionFactory']['getSuggestionCallback'](_0x4914('0x25'),_0x28cdc7,_0x4914('0x94'));return this[_0x4914('0x5e')](()=>_0xcee2b2([_0x41ec94],null,_0x2cafd1)),null;}}else{const _0x5a7a01=_0x41ec94[_0x4914('0xd3')](_0x3e8698[_0x4914('0x128')]());null!==_0x5a7a01&&_0x3e8698[_0x4914('0x116')]([_0x5a7a01],null,_0x2cafd1);}}if(_0x41ec94['detach'](),_0x41ec94[_0x4914('0x5f')]||'$graveyard'==_0x41ec94[_0x4914('0x141')][_0x4914('0x6c')])return null;let _0x39a40e=null,_0x338e6b=_0x41ec94[_0x4914('0xf7')],_0x4e8995=_0x41ec94[_0x4914('0xfa')];for(const {suggestion:_0x285f18,meta:_0x3b24a9}of this[_0x4914('0x2a')](_0x41ec94,_0x4914('0x25')))if(_0x3b24a9['isOwn']){if(_0x285f18[_0x4914('0xa')]&&this[_0x4914('0x108')]){let _0x33e04b=!0x0;for(const _0x7279a8 of _0x285f18[_0x4914('0x133')]()){if(_0x7279a8['containsRange'](_0x41ec94,!0x0))return _0x285f18;_0x41ec94[_0x4914('0xb9')](_0x7279a8)||(_0x33e04b=!0x1);}_0x33e04b&&_0x285f18[_0x4914('0x104')]();}else{const _0x271c6d=_0x285f18[_0x4914('0x128')]();if(_0x271c6d['containsRange'](_0x41ec94,!0x0)){if(!this[_0x4914('0x108')]&&_0x3b24a9['containsRangeInObject'])continue;return _0x285f18;}_0x338e6b=_0x338e6b[_0x4914('0xa0')](_0x271c6d[_0x4914('0xf7')])?_0x338e6b:_0x271c6d['start'],_0x4e8995=_0x4e8995[_0x4914('0xb1')](_0x271c6d[_0x4914('0xfa')])?_0x4e8995:_0x271c6d[_0x4914('0xfa')],_0x39a40e?_0x271c6d[_0x4914('0xf7')][_0x4914('0xa0')](_0x39a40e[_0x4914('0x128')]()[_0x4914('0xf7')])?(_0x39a40e[_0x4914('0xdf')](),_0x39a40e=_0x285f18):_0x285f18[_0x4914('0xdf')]():_0x39a40e=_0x285f18;}}if(_0x39a40e)return this[_0x4914('0x132')](_0x39a40e,this[_0x4914('0x96')]['createRange'](_0x338e6b,_0x4e8995)),_0x39a40e;{const _0x51d285=_0x5bbf48(),_0xb58c74=this['_model'][_0x4914('0xdb')](_0x338e6b,_0x4e8995),_0x23e326=_0x1ee9df['id'],_0x2f54d2=_0x28cdc7?_0x4914('0x21')+_0x28cdc7:_0x4914('0x25'),_0x5c25c0=this[_0x4914('0xd0')]({'id':_0x51d285,'type':_0x2f54d2,'createdAt':new Date(),'authorId':_0x23e326,'attributes':_0x2cafd1});return this[_0x4914('0x9c')](_0x2f54d2,_0x51d285,_0x23e326,_0xb58c74),_0x5c25c0;}}[_0x4914('0x11e')](_0x182151,_0x445ea8='multi',_0x2317f0={}){const _0x5dd199=this[_0x4914('0xc2')][_0x4914('0x88')]['get'](_0x4914('0x0'))['me'],_0x526b08=_0x182151[_0x4914('0x50')](_0x2fd6de=>new _0x32a372(_0x2fd6de[_0x4914('0xf7')],_0x2fd6de[_0x4914('0xfa')])),_0x1be3cb=new Set();for(const _0x1a6c33 of _0x526b08)for(const {suggestion:_0x3986a3,meta:_0x20025e}of this['_findSuggestions'](_0x1a6c33,'insertion'))_0x20025e[_0x4914('0x95')]&&!_0x20025e[_0x4914('0x120')]&&_0x1be3cb[_0x4914('0x13d')](_0x3986a3);for(const _0x51189f of _0x1be3cb)if(_0x51189f[_0x4914('0xa')]){const _0x550433=_0x51189f[_0x4914('0x133')]();(!_0x51189f[_0x4914('0xec')]||!_0x51189f[_0x4914('0xec')][_0x4914('0x48')])&&(_0x550433['every'](_0x338c8f=>_0x526b08[_0x4914('0x12b')](_0x217cbf=>_0x217cbf['containsRange'](_0x338c8f,!0x0)))&&_0x51189f[_0x4914('0x104')]());if(_0x526b08[_0x4914('0xaf')](_0x4c23e2=>_0x550433[_0x4914('0x12b')](_0x15b8d1=>_0x15b8d1[_0x4914('0xb9')](_0x4c23e2,!0x0)))){const _0x4cafe9=this['_suggestionFactory']['getSuggestionCallback'](_0x4914('0x25'),_0x445ea8,_0x4914('0x94'));return this[_0x4914('0x5e')](()=>_0x4cafe9(_0x182151,null,_0x2317f0)),null;}}else{const _0x25d97c=_0x51189f['getFirstRange']();_0x526b08['some'](_0x1dbbe2=>_0x1dbbe2['containsRange'](_0x25d97c,!0x0))&&_0x51189f['discard']();if(_0x526b08[_0x4914('0xaf')](_0x2d857e=>_0x25d97c[_0x4914('0xb9')](_0x2d857e,!0x0))){const _0x4ca95b=this[_0x4914('0x9b')][_0x4914('0xe4')]('deletion',_0x445ea8,_0x4914('0x94'));return this[_0x4914('0x5e')](()=>_0x4ca95b(_0x526b08,null,_0x2317f0)),null;}}const _0x16b163=this[_0x4914('0x9b')][_0x4914('0xe4')]('deletion',_0x445ea8,_0x4914('0x51'));let _0x334399=null;for(const _0x508ca3 of this[_0x4914('0x84')]())if(_0x508ca3['author']['id']==_0x5dd199['id']&&_0x508ca3['isInContent']&&_0x4914('0x25')==_0x508ca3[_0x4914('0x7f')]&&_0x508ca3[_0x4914('0x5b')]==_0x445ea8&&(_0x16b163(_0x508ca3[_0x4914('0x133')](),_0x526b08)||_0x16b163(_0x526b08,_0x508ca3[_0x4914('0x133')]()))){if(_0x334399){if(_0x508ca3[_0x4914('0x130')]&&_0x508ca3['commentThread'][_0x4914('0x3f')])continue;for(const _0x2f13be of _0x508ca3[_0x4914('0x133')]())_0x334399[_0x4914('0x139')](_0x2f13be)||_0x334399[_0x4914('0x107')](_0x2f13be);_0x508ca3[_0x4914('0xdf')]();}else{_0x334399=_0x508ca3;for(const _0x15afb2 of _0x526b08)_0x508ca3['isIntersectingWithRange'](_0x15afb2)||_0x508ca3[_0x4914('0x107')](_0x15afb2);}}if(_0x334399)return _0x334399;_0x1be3cb[_0x4914('0x117')]();for(const _0x29af36 of _0x526b08)for(const {suggestion:_0xa0c47d,meta:_0x512d47}of this[_0x4914('0x2a')](_0x29af36,_0x4914('0x25')))_0x512d47[_0x4914('0x95')]&&_0x1be3cb['add'](_0xa0c47d);for(const _0x5df5e2 of _0x1be3cb){const _0x4b8f0d=_0x5df5e2['getRanges']();if(!_0x2317f0||!_0x2317f0['skipNestingCheck']){if(_0x526b08[_0x4914('0xaf')](_0xc56a6b=>_0x4b8f0d[_0x4914('0x12b')](_0x2260f4=>_0x2260f4[_0x4914('0xb9')](_0xc56a6b,!0x0))))return _0x5df5e2;}(!_0x5df5e2[_0x4914('0xec')]||!_0x5df5e2['attributes'][_0x4914('0x48')])&&(_0x4b8f0d[_0x4914('0xaf')](_0xa94fb6=>_0x526b08['some'](_0xa23e0a=>_0xa23e0a[_0x4914('0xb9')](_0xa94fb6,!0x0)))&&_0x5df5e2[_0x4914('0x104')]());}const _0x3141cb=_0x5bbf48(),_0x502ed8=_0x5dd199['id'],_0x37d624=_0x4914('0x21')+_0x445ea8,_0x1b53ea=this[_0x4914('0xd0')]({'id':_0x3141cb,'type':_0x37d624,'createdAt':new Date(),'authorId':_0x502ed8,'attributes':_0x2317f0});for(const _0x32913c of _0x526b08)_0x32913c[_0x4914('0xe9')](),_0x32913c[_0x4914('0x5f')]||'$graveyard'==_0x32913c[_0x4914('0x141')][_0x4914('0x6c')]||this['_addSuggestionMarker'](_0x37d624,_0x3141cb,_0x502ed8,_0x32913c,_0x111892[_0x4914('0x98')]());return _0x1b53ea;}[_0x4914('0x132')](_0x5a041d,_0x5cb618){const _0xbf8a21=_0x5a041d[_0x4914('0x144')]();this['_model'][_0x4914('0x6a')](_0xd44939=>{_0xd44939[_0x4914('0x77')](_0xbf8a21,{'range':_0x5cb618});});}[_0x4914('0x8c')](_0x1e2fc9){const _0x14ade4=_0x1e2fc9['id'],_0x91650d=this['editor']['config']['get'](_0x4914('0x47'));this[_0x4914('0x14d')][_0x4914('0x23')](_0x14ade4)||this['_commentsRepository'][_0x4914('0xb2')]({'channelId':_0x91650d,'threadId':_0x14ade4,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1375bb=this['_commentsRepository'][_0x4914('0x11f')](_0x14ade4);_0x1375bb[_0x4914('0x13e')](_0x4914('0x145')),_0x1375bb[_0x4914('0x145')]=!0x1,_0x1e2fc9[_0x4914('0x130')]=_0x1375bb;}[_0x4914('0xf3')](_0x1922f0,_0x536e6d,_0x24779f,_0x5bef96){if(_0x1922f0[_0x4914('0x7f')]!=_0x536e6d||_0x1922f0['subType']!=_0x24779f||_0x1922f0[_0x4914('0x134')]['id']!=_0x5bef96)throw this[_0x4914('0xc2')][_0x4914('0x54')]('track-changes-suggestion-data-mismatch'),new _0x4580a(_0x4914('0xf6'),this);}[_0x4914('0x61')](_0x795d6c,_0x4e4a14){const _0x44cc70=_0x795d6c[_0x4914('0x128')]();if(_0x4e4a14[_0x4914('0x9e')](_0x44cc70))_0x795d6c[_0x4914('0xdf')]();else{if(_0x44cc70[_0x4914('0xb9')](_0x4e4a14)){const _0x473f7d=this[_0x4914('0x96')][_0x4914('0x71')](_0x4e4a14[_0x4914('0xf7')][_0x4914('0x2c')],_0x4914('0xfa'));this[_0x4914('0x132')](_0x795d6c,this[_0x4914('0x96')][_0x4914('0xdb')](_0x44cc70[_0x4914('0xf7')],_0x473f7d));const _0x15c263=_0x5bbf48(),_0x344f9e=_0x795d6c[_0x4914('0x134')]['id'],_0x531a9a=_0x795d6c[_0x4914('0x7f')]+':'+_0x795d6c[_0x4914('0x5b')];this['_setSuggestionData']({'id':_0x15c263,'type':_0x531a9a,'createdAt':new Date(),'authorId':_0x344f9e,'data':_0x795d6c[_0x4914('0x68')],'attributes':_0x795d6c['attributes']});const _0x2bd27a=this['_model'][_0x4914('0x71')](_0x4e4a14[_0x4914('0xfa')]['parent'],'after'),_0x53138c=this[_0x4914('0x96')][_0x4914('0xdb')](_0x2bd27a,_0x44cc70['end']);this['_addSuggestionMarker'](_0x531a9a,_0x15c263,_0x344f9e,_0x53138c);}else{if(_0x44cc70[_0x4914('0x3a')](_0x4e4a14[_0x4914('0xf7')])){const _0x13ee9e=this[_0x4914('0x96')]['createPositionAt'](_0x4e4a14[_0x4914('0xf7')][_0x4914('0x2c')],'end');this['_setSuggestionRange'](_0x795d6c,this[_0x4914('0x96')][_0x4914('0xdb')](_0x44cc70['start'],_0x13ee9e));}else{const _0x44c2c2=this[_0x4914('0x96')][_0x4914('0x71')](_0x4e4a14[_0x4914('0xfa')][_0x4914('0x38')],_0x4914('0xa7'));this[_0x4914('0x132')](_0x795d6c,this[_0x4914('0x96')][_0x4914('0xdb')](_0x44c2c2,_0x44cc70[_0x4914('0xfa')]));}}}}[_0x4914('0x6e')](_0x5c1247){for(const {suggestion:_0x57b952,meta:_0x188ef1}of this[_0x4914('0x2a')](_0x5c1247,_0x4914('0x62'))){if(!_0x188ef1[_0x4914('0x95')])continue;const _0x2ca643=_0x57b952[_0x4914('0x133')]();for(const _0x1824ff of _0x2ca643)if(!_0x5c1247['getDifference'](_0x1824ff)[_0x4914('0x3f')])return!0x0;}return!0x1;}[_0x4914('0xcd')](_0x2e4dd1){const _0x59426b=this[_0x4914('0xc2')][_0x4914('0x88')]['get'](_0x4914('0x0'))[_0x4914('0xa6')](_0x2e4dd1);if(!_0x59426b)throw new _0x4580a(_0x4914('0x8f'),this);return _0x59426b;}[_0x4914('0x14c')](_0x150de1){const _0xf1d6cf=this[_0x4914('0xc2')][_0x4914('0x88')][_0x4914('0xe2')](_0x4914('0x0')),_0x381872=_0x41d18c(_0x4914('0x4e')+_0x150de1),_0x5adb85=_0xf1d6cf['getUser'](_0x381872);return _0x5adb85||_0xf1d6cf[_0x4914('0x11a')]({'id':_0x381872,'name':_0x150de1});}[_0x4914('0x11b')](_0x5a34d2,_0x4a4ec3,_0x54263c,_0xfd1cf9,_0x2744f8){const _0x4ad911=this[_0x4914('0xcd')](_0xfd1cf9),_0x1d159b=this[_0x4914('0x9b')][_0x4914('0x10f')](_0x5a34d2,_0x4a4ec3,_0x54263c,_0x4ad911,_0x2744f8,_0x2b88be=>this[_0x4914('0x4a')](_0x54263c,{'attributes':_0x2b88be}));return this['listenTo'](_0x1d159b,_0x4914('0x94'),()=>{this['_updateSuggestionData'](_0x54263c,{'state':_0x4914('0xb3')});},{'priority':_0x4914('0xcf')}),this[_0x4914('0x22')](_0x1d159b,'discard',()=>{this[_0x4914('0x4a')](_0x54263c,{'state':_0x4914('0x146')});},{'priority':'high'}),this[_0x4914('0x12')][_0x4914('0x8b')](_0x54263c,_0x1d159b),this[_0x4914('0xf1')][_0x4914('0x8b')](_0x1d159b,'notReady'),_0x1d159b;}['_splitMarkerName'](_0x3f408c){const _0x5c34f3=_0x3f408c['split'](':');return{'group':_0x5c34f3[0x0],'type':_0x5c34f3[0x1],'subType':_0x5c34f3[_0x4914('0x3f')]>=0x5?_0x5c34f3[0x2]:null,'id':_0x5c34f3[_0x4914('0x3f')]<0x5?_0x5c34f3[0x2]:_0x5c34f3[0x3],'authorId':_0x5c34f3['length']<0x5?_0x5c34f3[0x3]:_0x5c34f3[0x4],'markerCount':0x6==_0x5c34f3['length']?_0x5c34f3[0x5]:null};}[_0x4914('0xc1')](_0xb307f0,_0x2def63,_0x2ae992){const _0x509691=_0xb307f0[_0x4914('0x128')](),_0x477f8a=_0x509691[_0x4914('0xf7')],_0x4459c6=_0x509691[_0x4914('0xfa')];this[_0x4914('0x132')](_0xb307f0,this['_model'][_0x4914('0xdb')](_0x477f8a,_0x2def63));const _0x12c815=_0x5bbf48(),_0x53131=_0xb307f0[_0x4914('0x134')]['id'],_0x2303e3=_0xb307f0[_0x4914('0x7f')]+(_0xb307f0['subType']?':'+_0xb307f0[_0x4914('0x5b')]:'');this['_setSuggestionData']({'id':_0x12c815,'type':_0x2303e3,'createdAt':new Date(),'authorId':_0x53131,'originalSuggestionId':_0xb307f0['id'],'attributes':_0xb307f0['attributes'],'data':_0xb307f0[_0x4914('0x68')]}),'formatBlock'==_0xb307f0[_0x4914('0x7f')]&&(_0x2ae992=this['_model'][_0x4914('0x8d')](_0x2ae992['parent'])),this['_addSuggestionMarker'](_0x2303e3,_0x12c815,_0x53131,this['_model']['createRange'](_0x2ae992,_0x4459c6));}[_0x4914('0x2a')](_0x45cafb,_0x583ffd=null){const _0x24433f=[],_0x1db9bf=this['_model'][_0x4914('0x14')],_0x1cdf8f=this[_0x4914('0xc2')][_0x4914('0x88')][_0x4914('0xe2')](_0x4914('0x0'))['me'];for(const _0x18b872 of this['getSuggestions']())if(_0x18b872['isInContent']&&(!_0x583ffd||_0x18b872[_0x4914('0x7f')]==_0x583ffd))for(const _0x5f5339 of _0x18b872[_0x4914('0x133')]()){const _0x42a6b3=_0x45cafb[_0x4914('0xf7')][_0x4914('0x9e')](_0x5f5339[_0x4914('0xfa')])||_0x45cafb['end'][_0x4914('0x9e')](_0x5f5339[_0x4914('0xf7')]);if(_0x42a6b3||_0x45cafb[_0x4914('0xd3')](_0x5f5339)){const _0x2d6cb3=_0x45cafb['containsRange'](_0x5f5339)&&Bt(_0x1db9bf,_0x5f5339['start'],_0x45cafb),_0x4565ce=_0x5f5339[_0x4914('0xb9')](_0x45cafb)&&Bt(_0x1db9bf,_0x45cafb[_0x4914('0xf7')],_0x5f5339);_0x24433f[_0x4914('0xb6')]({'suggestion':_0x18b872,'meta':{'isOwn':_0x1cdf8f==_0x18b872['author'],'isNextTo':_0x42a6b3,'isInsideObject':_0x2d6cb3,'containsRangeInObject':_0x4565ce}});break;}}return _0x24433f;}[_0x4914('0x9c')](_0x54118a,_0x5aae3d,_0x40e210,_0x534d2a,_0x12370a){this[_0x4914('0x96')][_0x4914('0x6a')](_0x11428f=>{let _0x35cb19=_0x4914('0xbc')+_0x54118a+':'+_0x5aae3d+':'+_0x40e210;_0x12370a&&(_0x35cb19=_0x35cb19+':'+_0x12370a),_0x11428f[_0x4914('0x79')](_0x35cb19,{'range':_0x534d2a,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x4914('0x72')](_0x5d51cf){const _0x4459dc=_0x5d51cf[_0x4914('0x87')],_0x142f48=_0x5d51cf[_0x4914('0x127')];_0x5d51cf['previous']=null,null!=_0x4459dc&&(_0x4459dc[_0x4914('0x127')]=null),_0x5d51cf['next']=null,null!=_0x142f48&&(_0x142f48[_0x4914('0x87')]=null),_0x4914('0x2b')==this[_0x4914('0xf1')]['get'](_0x5d51cf)&&(this[_0x4914('0xf1')][_0x4914('0x8b')](_0x5d51cf,_0x4914('0xde')),this['fire'](_0x4914('0xdd'),_0x5d51cf,_0x4459dc,_0x142f48));}[_0x4914('0xd0')](_0x8d870a){const _0x2d4db9=_0x8d870a['id'],_0x3a7fa1=this[_0x4914('0xba')](_0x8d870a);if(this['_adapter']&&this['_adapter'][_0x4914('0x13')]){const _0x5b0cda=this['editor'][_0x4914('0x88')][_0x4914('0xe2')](_0x4914('0x102')),_0x47d307=_0x3a7fa1[_0x4914('0xbf')],_0x4baa8f=_0x3a7fa1[_0x4914('0x5b')]?_0x3a7fa1[_0x4914('0x7f')]+':'+_0x3a7fa1['subType']:_0x3a7fa1['type'],_0x28805a=this[_0x4914('0xc2')][_0x4914('0x10d')],_0x284b6f=_0x5b0cda[_0x4914('0x13d')](_0x1590fa(_0x28805a,_0x4914('0x70'))),_0x240184={'id':_0x2d4db9,'type':_0x4baa8f,'hasComments':_0x47d307,'data':_0x8d870a['data']||null,'originalSuggestionId':_0x8d870a[_0x4914('0x11c')]||null,'attributes':_0x3a7fa1[_0x4914('0xec')]};this[_0x4914('0x105')][_0x4914('0x13')](_0x240184)[_0x4914('0xd1')](_0x22d2e=>{_0x3a7fa1[_0x4914('0x121')]=!0x0,_0x5b0cda[_0x4914('0xf')](_0x284b6f),_0x22d2e&&_0x22d2e['createdAt']&&(this[_0x4914('0x12')]['get'](_0x2d4db9)[_0x4914('0xd6')]=_0x22d2e[_0x4914('0xd6')]);})[_0x4914('0xeb')](_0xe3c343=>{throw _0x2d1496(_0x4914('0x65')),this['editor'][_0x4914('0x16')][_0x4914('0xee')]({'isUndoable':!0x1},()=>{_0x3a7fa1[_0x4914('0x104')]();}),_0x3a7fa1[_0x4914('0xa9')](),this['_suggestions'][_0x4914('0x100')](_0x3a7fa1['id']),this[_0x4914('0xf1')][_0x4914('0x100')](_0x3a7fa1),_0xe3c343;});}return _0x3a7fa1;}[_0x4914('0x4a')](_0x4ec25c,_0x37178d){const _0x1f865e=this[_0x4914('0xc2')][_0x4914('0x88')]['get']('PendingActions'),_0x3eb22f=this[_0x4914('0xe')](_0x4ec25c);if(this['_adapter']&&this['_adapter'][_0x4914('0xbe')]){if(_0x3eb22f[_0x4914('0x121')]){const _0x2d532c=_0x1f865e[_0x4914('0x13d')](_0x1590fa(this['editor'][_0x4914('0x10d')],'PENDING_ACTION_SUGGESTION'));this[_0x4914('0x105')][_0x4914('0xbe')](_0x4ec25c,_0x37178d)[_0x4914('0xd1')](()=>{_0x1f865e[_0x4914('0xf')](_0x2d532c);});}else _0x3eb22f['on'](_0x4914('0x12a'),()=>{this[_0x4914('0x4a')](_0x4ec25c,_0x37178d);});}}[_0x4914('0x73')](_0x1605fc){if(!this[_0x4914('0x105')]||!this['_adapter']['getSuggestion'])throw new _0x4580a(_0x4914('0x5d'),this);return this[_0x4914('0x105')]['getSuggestion'](_0x1605fc);}[_0x4914('0x63')](_0x545946){const {id:_0x4d3de7,type:_0x3eb694,subType:_0x446768,authorId:_0x3db96f}=this['_splitMarkerName'](_0x545946),_0x3b3d10=this[_0x4914('0x12')]['get'](_0x4d3de7)||this['_createSuggestion'](_0x3eb694,_0x446768,_0x4d3de7,_0x3db96f,{});switch(this[_0x4914('0xf3')](_0x3b3d10,_0x3eb694,_0x446768,_0x3db96f),this[_0x4914('0xf1')][_0x4914('0xe2')](_0x3b3d10)){case _0x4914('0x15'):this[_0x4914('0x73')](_0x4d3de7)[_0x4914('0xd1')](_0x40860b=>{let _0x349184=Promise[_0x4914('0x91')]();_0x40860b[_0x4914('0xbf')]&&(_0x349184=this[_0x4914('0x14d')]['fetchCommentThread']({'channelId':this['editor'][_0x4914('0x3b')][_0x4914('0xe2')](_0x4914('0x47')),'threadId':_0x4d3de7})),_0x349184[_0x4914('0xd1')](()=>{this[_0x4914('0xba')](_0x40860b)[_0x4914('0x121')]=!0x0;});}),this[_0x4914('0xf1')]['set'](_0x3b3d10,_0x4914('0xae'));break;case _0x4914('0xde'):this['_updateSuggestionData'](_0x4d3de7,{'state':_0x4914('0x35')});case _0x4914('0x112'):this['_suggestionState']['set'](_0x3b3d10,_0x4914('0x2b')),this['fire'](_0x4914('0x2f'),_0x3b3d10);break;case _0x4914('0x2b'):this[_0x4914('0x6f')](_0x4914('0x44'),_0x3b3d10);}return _0x3b3d10['addMarkerName'](_0x545946),_0x3b3d10;}[_0x4914('0x3c')](_0x3451a1){const _0x819d48=Array[_0x4914('0xc')](_0x3451a1)[_0x4914('0x6')](_0x20e736=>!_0x20e736['isMultiRange']),_0x473a1c=this[_0x4914('0x84')]({'skipNotAttached':!0x0})['filter'](_0x4d9dd8=>!_0x4d9dd8[_0x4914('0xa')]),_0x5bc3b8=_0x473a1c['filter'](_0x2de4ff=>!_0x3451a1['has'](_0x2de4ff)),_0x27daac=new Map(_0x473a1c[_0x4914('0x50')](_0x10623e=>[_0x10623e,this[_0x4914('0x9b')][_0x4914('0xe4')](_0x10623e[_0x4914('0x7f')],_0x10623e[_0x4914('0x5b')],_0x4914('0xc8'))])),_0x213424=new Map(_0x473a1c['map'](_0x5a6a77=>[_0x5a6a77,_0x5a6a77['getFirstRange']()])),_0xe52e61=new Set(),_0x5194ac=new Set();for(let _0x337bca=0x0;_0x337bca<_0x819d48[_0x4914('0x3f')];_0x337bca++)_0x1541c8(_0x819d48[_0x337bca],_0x819d48,_0x337bca+0x1);for(let _0x5b21c1=0x0;_0x5b21c1<_0x819d48[_0x4914('0x3f')];_0x5b21c1++)_0x1541c8(_0x819d48[_0x5b21c1],_0x5bc3b8,0x0);for(let _0x34b02e=0x0;_0x34b02e<_0x819d48[_0x4914('0x3f')];_0x34b02e++){const _0x426f76=_0x819d48[_0x34b02e];!_0x5194ac[_0x4914('0x114')](_0x426f76)&&_0x426f76[_0x4914('0x87')]&&(_0x426f76[_0x4914('0x87')]['next']===_0x426f76&&(_0x426f76[_0x4914('0x87')][_0x4914('0x127')]=null),_0x426f76[_0x4914('0x87')]=null),!_0xe52e61[_0x4914('0x114')](_0x426f76)&&_0x426f76[_0x4914('0x127')]&&(_0x426f76[_0x4914('0x127')][_0x4914('0x87')]===_0x426f76&&(_0x426f76['next'][_0x4914('0x87')]=null),_0x426f76[_0x4914('0x127')]=null);}function _0x1541c8(_0xbc8a66,_0x35beeb,_0x32a877){for(let _0x4e7be3=_0x32a877;_0x4e7be3<_0x35beeb[_0x4914('0x3f')];_0x4e7be3++){const _0xb10803=_0x50496b(_0xbc8a66,_0x35beeb[_0x4e7be3]);_0xb10803&&(_0xb10803[0x0][_0x4914('0x127')]=_0xb10803[0x1],_0xb10803[0x1][_0x4914('0x87')]=_0xb10803[0x0],_0xe52e61['add'](_0xb10803[0x0]),_0x5194ac[_0x4914('0x13d')](_0xb10803[0x1]));}}function _0x50496b(_0x139912,_0x7866c0){if(_0x139912[_0x4914('0xb0')]['id']!==_0x7866c0[_0x4914('0xb0')]['id'])return null;const _0x24dde4=_0x27daac[_0x4914('0xe2')](_0x139912)(_0x139912,_0x7866c0,_0x213424[_0x4914('0xe2')](_0x139912),_0x213424[_0x4914('0xe2')](_0x7866c0));if(!_0x24dde4)return null;return _0x27daac[_0x4914('0xe2')](_0x7866c0)(_0x139912,_0x7866c0,_0x213424[_0x4914('0xe2')](_0x139912),_0x213424[_0x4914('0xe2')](_0x7866c0))?_0x24dde4[0x1][_0x4914('0x130')]&&_0x24dde4[0x1][_0x4914('0x130')]['length']?null:_0x24dde4:null;}}[_0x4914('0xe0')](_0x25097d){const _0x252e72=Array['from'](_0x25097d),_0x14a5ac=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1db6b4=_0x14a5ac[_0x4914('0x6')](_0x3d29a8=>!_0x25097d[_0x4914('0x114')](_0x3d29a8)),_0x5e99b4=new Map(_0x252e72['map'](_0x4428aa=>[_0x4428aa,this[_0x4914('0x9b')][_0x4914('0xe4')](_0x4428aa['type'],_0x4428aa[_0x4914('0x5b')],'join')])),_0x5eb6b2=new Map(_0x14a5ac[_0x4914('0x50')](_0x545a7e=>[_0x545a7e,_0x545a7e[_0x4914('0x133')]()]));for(let _0x1d4115=0x0;_0x1d4115<_0x252e72[_0x4914('0x3f')];_0x1d4115++){if(_0x438376(this,_0x252e72[_0x1d4115],_0x252e72,_0x1d4115+0x1))return!0x0;}for(let _0x5db971=0x0;_0x5db971<_0x252e72[_0x4914('0x3f')];_0x5db971++){if(_0x438376(this,_0x252e72[_0x5db971],_0x1db6b4,0x0))return!0x0;}return!0x1;function _0x438376(_0x45e02d,_0x49e59c,_0x2572ec,_0x28de9e){for(let _0x385bdc=_0x28de9e;_0x385bdc<_0x2572ec[_0x4914('0x3f')];_0x385bdc++){const _0x499f82=_0x2572ec[_0x385bdc];if(_0x499f82[_0x4914('0x7f')]!==_0x49e59c[_0x4914('0x7f')]||_0x499f82[_0x4914('0xb0')]['id']!==_0x49e59c[_0x4914('0xb0')]['id']||_0x499f82[_0x4914('0x5b')]!==_0x49e59c[_0x4914('0x5b')])continue;const _0xcb0221=_0x5e99b4[_0x4914('0xe2')](_0x49e59c),_0x817550=_0x5eb6b2[_0x4914('0xe2')](_0x49e59c),_0x13c000=_0x5eb6b2[_0x4914('0xe2')](_0x499f82),_0x14b8ce=_0x49e59c[_0x4914('0x130')]&&_0x49e59c[_0x4914('0x130')][_0x4914('0x3f')],_0x3bbe96=_0x499f82['commentThread']&&_0x499f82[_0x4914('0x130')]['length'];if(!_0x14b8ce&&_0xcb0221(_0x13c000,_0x817550))return _0x45e02d[_0x4914('0xf0')](_0x499f82,_0x49e59c),_0x5eb6b2[_0x4914('0x100')](_0x49e59c),!0x0;if(!_0x3bbe96&&_0xcb0221(_0x817550,_0x13c000))return _0x45e02d[_0x4914('0xf0')](_0x49e59c,_0x499f82),_0x5eb6b2[_0x4914('0x100')](_0x499f82),!0x0;}return!0x1;}}[_0x4914('0xf0')](_0x5ade33,_0x1f736e){if(_0x5ade33[_0x4914('0xa')])for(const _0x51f2af of _0x1f736e[_0x4914('0x133')]())_0x5ade33[_0x4914('0x107')](_0x51f2af);else{const _0x3980d4=_0x1f736e['getFirstRange']()[_0x4914('0xfa')];this['_setSuggestionRange'](_0x5ade33,this[_0x4914('0x96')][_0x4914('0xdb')](_0x5ade33[_0x4914('0x128')]()[_0x4914('0xf7')],_0x3980d4));}_0x1f736e[_0x4914('0xdf')]();}}class Dt{constructor(_0x16e1d2){this[_0x4914('0x143')]=_0x16e1d2,this[_0x4914('0x96')]=_0x16e1d2[_0x4914('0x16')],this[_0x4914('0x29')]=new Map(),this[_0x4914('0x92')]=new Map(),this[_0x4914('0x55')]();}[_0x4914('0x10f')](_0x3ec51b,_0x8d8164,_0xc11343,_0x3119ff,_0x47da53,_0x3071b0){return new _0x111892(this[_0x4914('0x96')],{'type':_0x3ec51b,'subType':_0x8d8164,'id':_0xc11343,'author':_0x3119ff,'creator':_0x3119ff,'attributes':_0x47da53,'onAttributesChange':_0x3071b0,'onAccept':(..._0x50ffcf)=>this[_0x4914('0xe4')](_0x3ec51b,_0x8d8164,_0x4914('0x94'))(..._0x50ffcf),'onDiscard':(..._0x4a6593)=>this[_0x4914('0xe4')](_0x3ec51b,_0x8d8164,'discard')(..._0x4a6593)});}[_0x4914('0xc9')](_0x156410,_0x16adf9,_0x400d18,_0x4a4c46){const _0x51a92a=_0x156410+':'+_0x16adf9+':'+_0x400d18;this[_0x4914('0x29')][_0x4914('0x8b')](_0x51a92a,_0x4a4c46);}['getSuggestionCallback'](_0x408b8b,_0xfa83d7,_0x2f2260){const _0x14effd=_0x408b8b+':'+_0xfa83d7+':'+_0x2f2260;return this[_0x4914('0x29')][_0x4914('0xe2')](_0x14effd)||this[_0x4914('0x92')][_0x4914('0xe2')](_0x408b8b+':'+_0x2f2260);}[_0x4914('0x55')](){const _0x2fce9e=()=>{},_0x5380a4=_0x550354=>{_0x550354[_0x4914('0xf8')]((_0x50c0eb,_0x14c5e6)=>_0x50c0eb[_0x4914('0xf7')][_0x4914('0xa0')](_0x14c5e6[_0x4914('0xf7')])?0x1:-0x1),this['_model'][_0x4914('0x6a')](_0x15ec97=>{for(const _0x4378f8 of _0x550354){let _0x40f392;_0x40f392=_0x4378f8[_0x4914('0xfa')][_0x4914('0x1b')]&&_0x4378f8['end']['parent']==_0x4378f8[_0x4914('0xf7')][_0x4914('0xfc')]?_0x15ec97[_0x4914('0xca')](_0x4378f8['start']['nodeAfter'],'on'):_0x15ec97[_0x4914('0xca')](_0x4378f8),this[_0x4914('0x96')][_0x4914('0x106')](_0x40f392,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x28b374=(_0x40be1b,_0x542c25)=>{this[_0x4914('0x96')][_0x4914('0x6a')](_0x2d6967=>{const {commandName:_0x47429b,commandParams:_0xea1316=[]}=_0x542c25,_0x3940eb=_0x40be1b[_0x4914('0x50')](_0xed51c0=>(_t(_0xed51c0)&&(_0xed51c0=this[_0x4914('0x96')][_0x4914('0xdb')](_0xed51c0[_0x4914('0xfa')])),_0xed51c0))[_0x4914('0x6')](_0x788d8f=>_0x4914('0x31')!==_0x788d8f[_0x4914('0x141')][_0x4914('0x6c')]);if(_0x3940eb[_0x4914('0x3f')]<0x1)return;const _0x53fcf4=Array['from'](this['_model'][_0x4914('0x46')][_0x4914('0x37')][_0x4914('0x133')]())[_0x4914('0x50')](_0x2aeffc=>_0x32a372[_0x4914('0x10e')](_0x2aeffc));_0x2d6967[_0x4914('0x26')](_0x3940eb);for(const _0x3e8e5d of this[_0x4914('0x143')][_0x4914('0x17')][_0x4914('0x17')]())_0x3e8e5d[_0x4914('0xb')]();_0xea1316[_0x4914('0xb6')]({'forceDefaultExecution':!0x0}),this['_editor'][_0x4914('0x4b')](_0x47429b,..._0xea1316);const _0x286f0a=_0x53fcf4[_0x4914('0x6')](_0x3ad302=>'$graveyard'!=_0x3ad302[_0x4914('0x141')][_0x4914('0x6c')]);_0x286f0a[_0x4914('0x3f')]>0x0&&_0x2d6967['setSelection'](_0x286f0a);for(const _0x5370c3 of _0x53fcf4)_0x5370c3[_0x4914('0xe9')]();});},_0x3a0e06=(_0xb4cbbb,_0x2ec0cd)=>0x1==_0xb4cbbb['length']&&0x1==_0x2ec0cd['length']&&_0xb4cbbb[0x0]['end'][_0x4914('0x9e')](_0x2ec0cd[0x0][_0x4914('0xf7')]),_0x131b35=(_0x5e9e47,_0x2ea334,_0x2d3cf1,_0x1c07b8)=>xt(_0x5e9e47,_0x2ea334,_0x2d3cf1,_0x1c07b8,this[_0x4914('0x96')])?[_0x5e9e47,_0x2ea334]:xt(_0x2ea334,_0x5e9e47,_0x1c07b8,_0x2d3cf1,this['_model'])?[_0x2ea334,_0x5e9e47]:null;this[_0x4914('0x92')]['set'](_0x4914('0xbb'),_0x2fce9e),this[_0x4914('0x92')][_0x4914('0x8b')](_0x4914('0x97'),_0x5380a4),this[_0x4914('0x92')][_0x4914('0x8b')]('insertion:join',_0x3a0e06),this[_0x4914('0x92')][_0x4914('0x8b')](_0x4914('0x66'),_0x131b35),this[_0x4914('0x92')][_0x4914('0x8b')](_0x4914('0x81'),_0x5380a4),this[_0x4914('0x92')][_0x4914('0x8b')]('deletion:discard',_0x2fce9e),this[_0x4914('0x92')][_0x4914('0x8b')](_0x4914('0x7c'),_0x3a0e06),this['_defaultCallbacks'][_0x4914('0x8b')]('deletion:chain',_0x131b35),this['_defaultCallbacks'][_0x4914('0x8b')](_0x4914('0x9d'),_0x28b374),this[_0x4914('0x92')][_0x4914('0x8b')](_0x4914('0xf5'),_0x2fce9e),this['_defaultCallbacks'][_0x4914('0x8b')](_0x4914('0xd'),_0x3a0e06),this[_0x4914('0x92')][_0x4914('0x8b')](_0x4914('0xa4'),_0x2fce9e),this['_defaultCallbacks'][_0x4914('0x8b')](_0x4914('0x142'),_0x28b374),this['_defaultCallbacks'][_0x4914('0x8b')](_0x4914('0xe3'),_0x2fce9e),this[_0x4914('0x92')][_0x4914('0x8b')](_0x4914('0x11'),_0x3a0e06),this[_0x4914('0x92')]['set'](_0x4914('0x4c'),_0x2fce9e);}}function Bt(_0x28ab35,_0x53df0c,_0x35ad95){for(const _0x5dfd74 of _0x53df0c[_0x4914('0x38')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5dfd74[_0x4914('0x141')]==_0x5dfd74)return!0x1;if(!_0x35ad95[_0x4914('0x42')](_0x5dfd74))return!0x1;if(_0x28ab35[_0x4914('0x1a')](_0x5dfd74)||_0x28ab35[_0x4914('0x119')](_0x5dfd74))return!0x0;}return!0x1;}function _t(_0x123dff){return _0x123dff[_0x4914('0xfa')][_0x4914('0x38')]==_0x123dff['start'][_0x4914('0xfc')]&&_0x123dff[_0x4914('0xfa')][_0x4914('0xed')];}function Mt(_0x4b9374,_0x10dc6a,_0x167b84,_0x5a7cc7){const _0x29d5cd=_0x19faaf=>!_0x19faaf[_0x4914('0x13b')]['is'](_0x4914('0xa2'))&&!_0x5a7cc7[_0x4914('0x1a')](_0x19faaf['item']),_0x1b77d4=_0x4b9374[_0x4914('0xf7')][_0x4914('0xb8')](_0x29d5cd),_0x2873ce=_0x4b9374[_0x4914('0xfa')][_0x4914('0xb8')](_0x29d5cd,{'direction':_0x4914('0x14e')});return(!_0x4b9374[_0x4914('0xf7')][_0x4914('0x9e')](_0x1b77d4)||!_0x4b9374['end']['isEqual'](_0x2873ce))&&(_0x1b77d4[_0x4914('0xa0')](_0x2873ce)?_0x167b84[_0x4914('0x77')](_0x10dc6a,{'range':_0x167b84['createRange'](_0x1b77d4,_0x2873ce)}):_0x167b84[_0x4914('0x1d')](_0x10dc6a),!0x0);}function $t(_0x365e5b){return _0x41d18c(_0x365e5b);}function Nt(_0xcdf3a0){const _0x598dff=_0xcdf3a0[_0x4914('0xf7')][_0x4914('0xfc')];return _0x598dff&&_0x598dff['is'](_0x4914('0xce'));}function Rt(_0x2a5be2,_0x20c475){const _0x54e224=_0x20c475[_0x4914('0x14')][_0x4914('0x1a')](_0x2a5be2)||_0x20c475[_0x4914('0x14')][_0x4914('0x90')](_0x2a5be2);return _0x20c475['createRange'](_0x20c475[_0x4914('0x71')](_0x2a5be2,_0x4914('0x14a')),_0x54e224?_0x20c475[_0x4914('0xc0')](_0x2a5be2):_0x20c475[_0x4914('0x71')](_0x2a5be2,_0x4914('0xfa')));}function xt(_0x1b9cd9,_0x124903,_0x458fe6,_0x157c9f,_0x156ef0){if(_0x458fe6['end'][_0x4914('0x9e')](_0x157c9f['start']))return!0x0;if(_0x1b9cd9[_0x4914('0x7f')]!=_0x124903[_0x4914('0x7f')])return!0x1;if(!_0x458fe6[_0x4914('0xfa')]['isTouching'](_0x157c9f[_0x4914('0xf7')]))return!0x1;const _0x454cc4=_0x156ef0[_0x4914('0xdb')](_0x458fe6[_0x4914('0xfa')],_0x157c9f[_0x4914('0xf7')])[_0x4914('0xfb')]();for(const _0x1e1e3f of _0x454cc4)if(['elementStart',_0x4914('0xf4')][_0x4914('0x1c')](_0x1e1e3f['type'])&&_0x156ef0[_0x4914('0x14')][_0x4914('0x119')](_0x1e1e3f[_0x4914('0x13b')]))return!0x1;return!0x0;}
|
|
23
|
+
const _0x56dc=['item','isInContent','isAtEnd','isEqual','discardSuggestion','track-changes-suggestion-data-mismatch','getChangedMarkers','sort','accept','markInlineFormat','ck-suggestion-marker-','formatBlock:','removed','document','isRemovable','oldRange','registerPostFixer','getRanges','suggestion-type','markers','_joinSuggestions','change:data','external:','options','_mergeNestedSuggestions','isAtStart','from','markerToHighlight','delete','join','getSuggestions','group','getWalker','forceDefaultExecution','end','getIntersection','dataReady','trackChanges','getFirstRange','_getAuthorFromId','detach','elementEnd','editor','after','insertion:accept','hasComments','addSuggestionData','getRange','_breakSuggestionMarker','suggestion:','parent','catch','getItems','for','CommentsRepository','addMarkerName','_handleNewSuggestionMarker','splitPosition','writer','chain','discardSelectedSuggestions','_suggestions','filter','isInsideObject','ready','highest','toViewElement','isMultiRange','setAttribute','getFirstMarker','commands','addMarker','data-suggestion','getAncestors','isBlock','addSuggestion','_createSuggestion','removeMarkers','add','change:_saved','updateMarker','update:suggestion','high','isAfter','formatBlock:chain','formatBlock','targetPosition','_setSuggestionRange','refresh','subType','forward','_descriptionFactory','addCommentThread','remove','formatBlock:discard','insertion','config','isCollapsed','isNextTo','isExternal','getSuggestion','_checkSuggestionCorrectness','data','acceptSuggestion','removeClass','trackChanges.trackFormatChanges','newRange','hasSuggestion','getShiftedBy','documentSelection','markerReady','getAllAdjacentSuggestions','stop','creator','isBefore','formatInline:join','position','PENDING_ACTION_SUGGESTION','substr','range','showSuggestionHighlights','split','isObject','containsItem','createPositionAfter','isDocumentOperation','hasCommentThread','_suggestionState','getNearestSelectionRange','isOwn','formatBlock:join','resolve','createRange','attributes','updateSuggestion','markBlockFormat','_getSuggestionData','set','isSelectable','TrackChangesEditing','fromRange','suggestion','length','push','open','normal','start','notReady','skipNestingCheck','_removeSuggestion','previous','enableCommand','root','_updateSuggestionData','conversion','get','formatInline','_addSuggestionMarker','default','fetchCommentThread','applyOperation','nodeBefore','then','_commentsRepository','fire','element','listenTo','elementToElement','commandName','getDifference','isUndo','_customCallbacks','change','size','_saved','splice','some','getAttribute','activeMarkers','addRange','lowest','setSelection','includes','markMultiRangeInsertion','_isForcedDefaultExecutionBlock','getMarkers','getSuggestionCallback','removeAttribute','adapter','trackChangesCommand','formatGroupId','track-changes-suggestion-not-found','authoredAt','createdAt','_suggestionFactory','addClass','$graveyard','_registerDefaultCallbacks','acceptAllSuggestions','addHighlight','getLastMatchingPosition','error-saving-suggestion-data-suggestion-discarded','rootName','formatInline:discard','addComment','addUser','editingDowncast','editing','originalSuggestionId','rethrowUnexpectedError','type','discard','nodeAfter','deletion:','formatInline:','_trackFormatChanges','consumable','createPositionAt','track-changes-user-not-found','marker-count','rejected','backward','insertion:join','insertion:','setTo','acceptSelectedSuggestions','PendingActions','deletion:chain','_editor','widget','trackChanges.mergeNestedSuggestions','name','getUser','markerName','author','_adapter','_enabledCommands','suggestionChanged','model','_findSuggestions','enableReadOnlyMode','formatBlock:accept','schema','getCustomProperty','ck-suggestion-marker','has','formatInline:chain','value','_refreshSuggestionsChain','bindElementToMarker','define','enqueueChange','upcast','markerNameToElements','multi','containsRangeInObject','isLimit','$marker','$textProxy','batch','removeMarker','insertContent','markerToData','createElement','addMarker:suggestion','track-changes-adapter-missing-getsuggestion','plugins','moveTargetPosition','consume','containsRange','always','deletion','values','deletion:discard','markDeletion','toJSON','move','suggestionLoaded','createPositionBefore','_cutOutSuggestionMarker','collaboration.channelId','_splitMarkerName','@external','never','markInsertion','deleteContent','multipleBlocks','_defaultCallbacks','containsPosition','execute','track-changes-adapter-already-set','mapper','removeComment','addMarker:suggestion:formatBlock','dataToMarker','accepted','init','howMany','every','map','getMultiRangeId','next','ck-suggestion-marker--active','_onDiscard','_addThreadToSuggestion','authorName','locale','low','commentThread','createSelection','_rangeIsInLocalUserInsertion','_model','Users','dataDowncast','selection','_setSuggestionData','differ','insertion:chain','discardAllSuggestions'];(function(_0x2542bc,_0x56dcac){const _0x513ae3=function(_0x21c816){while(--_0x21c816){_0x2542bc['push'](_0x2542bc['shift']());}};_0x513ae3(++_0x56dcac);}(_0x56dc,0x100));const _0x513a=function(_0x2542bc,_0x56dcac){_0x2542bc=_0x2542bc-0x0;let _0x513ae3=_0x56dc[_0x2542bc];return _0x513ae3;};import{Plugin as _0xe755de,PendingActions as _0x627f67}from'ckeditor5/src/core';import{LiveRange as _0x73d110}from'ckeditor5/src/engine';import{CKEditorError as _0x2e8f93,uid as _0x1396d2,priorities as _0x51363f,logWarning as _0xfa39c1}from'ckeditor5/src/utils';import{toWidget as _0x149dc6}from'ckeditor5/src/widget';import{Users as _0xc261a1,hashObject as _0x3419ee}from'ckeditor5-collaboration/src/collaboration-core';import _0xb12d80 from'./commands/trackchangescommand';import _0x2f6a2d from'./commands/acceptsuggestioncommand';import _0x1f1ef9 from'./commands/discardsuggestioncommand';import _0x44430d from'./commands/executeonallsuggestionscommand';import _0x31bb6e from'./commands/executeonselectedsuggestionscommand';import _0xf7935d from'./suggestion';import _0x2d4cd2 from'./suggestiondescriptionfactory';import _0x228ef4 from'./integrations/alignment';import _0x280823 from'./integrations/basicstyles';import _0x55acd8 from'./integrations/blockquote';import _0x1600bb from'./integrations/ckbox';import _0x2800d5 from'./integrations/codeblock';import _0x3c4983 from'./integrations/comments';import _0x389c1f from'./integrations/deletecommand';import _0x3a0dfc from'./integrations/documentlist';import _0x302e77 from'./integrations/entercommand';import _0x11a7f2 from'./integrations/findandreplace';import _0x448cf1 from'./integrations/font';import _0x3dc3f0 from'./integrations/formatpainter';import _0x45d30a from'./integrations/heading';import _0x39256b from'./integrations/highlight';import _0x5bad6b from'./integrations/horizontalline';import _0x10303d from'./integrations/htmlembed';import _0x47fba8 from'./integrations/image';import _0x4921b8 from'./integrations/imagereplace';import _0x598117 from'./integrations/importword';import _0x5e23c8 from'./integrations/indent';import _0x5e36b8 from'./integrations/inputcommand';import _0x4f66dc from'./integrations/link';import _0x2b8969 from'./integrations/list';import _0x534c00 from'./integrations/listproperties';import _0x1c871a from'./integrations/mediaembed';import _0x8188ce from'./integrations/mention';import _0x50a269 from'./integrations/pagebreak';import _0x29df81 from'./integrations/paragraph';import _0x57bc08 from'./integrations/removeformat';import _0x13cdde from'./integrations/restrictededitingmode';import _0x49d799 from'./integrations/shiftentercommand';import _0x4d6f44 from'./integrations/standardeditingmode';import _0x9c465 from'./integrations/style';import _0xb207a6 from'./integrations/table';import _0x412b79 from'./integrations/tablemergesplit';import _0x294dc9 from'./integrations/tableheadings';import _0x3b48ac from'./integrations/tableclipboard';import _0x4a7eb2 from'./integrations/tablecolumnresize';import _0x15d549 from'./integrations/template';import _0x2b58c5 from'./integrations/tableofcontents';import _0x1e8f40 from'./integrations/title';import _0xc59e82 from'./integrations/undo';import{getTranslation as _0x4b72e5}from'./utils/common-translations';import _0x425cb7 from'./integrations/tablecaption';import _0x23f5b0 from'./integrations/documentlistproperties';import _0x579137 from'./integrations/tableproperties';export default class p extends _0xe755de{static get['requires'](){return[_0x513a('0x75'),_0xc261a1,_0x627f67,_0x228ef4,_0x280823,_0x55acd8,_0x1600bb,_0x2800d5,_0x3c4983,_0x389c1f,_0x3a0dfc,_0x23f5b0,_0x302e77,_0x11a7f2,_0x448cf1,_0x3dc3f0,_0x45d30a,_0x39256b,_0x5bad6b,_0x10303d,_0x47fba8,_0x4921b8,_0x598117,_0x5e23c8,_0x5e36b8,_0x4f66dc,_0x2b8969,_0x534c00,_0x1c871a,_0x8188ce,_0x50a269,_0x29df81,_0x57bc08,_0x13cdde,_0x49d799,_0x4d6f44,_0x9c465,_0xb207a6,_0x412b79,_0x294dc9,_0x425cb7,_0x3b48ac,_0x4a7eb2,_0x2b58c5,_0x579137,_0x15d549,_0x1e8f40,_0xc59e82];}static get['pluginName'](){return _0x513a('0xca');}constructor(_0x29fe48){function _0x3cfd19(_0x594b5c){return _0x594b5c['map'](_0x3e6507=>String['fromCharCode'](_0x3e6507))['join']('');}super(_0x29fe48),this['set'](_0x513a('0xf1'),[]),this['on']('change:activeMarkers',(_0x465a25,_0x4c5d23,_0x1acb99,_0x2d0c4c)=>{this[_0x513a('0x37')][_0x513a('0xeb')](()=>{for(const _0x4280fa of[..._0x2d0c4c,..._0x1acb99])this[_0x513a('0x37')][_0x513a('0x52')][_0x513a('0x134')](_0x4280fa)&&_0x29fe48[_0x513a('0x10e')]['reconvertMarker'](_0x4280fa);});}),this[_0x513a('0x9a')]=new _0x2d4cd2(this['editor'][_0x513a('0x12d')]['schema'],this[_0x513a('0x69')][_0x513a('0x32')]),this[_0x513a('0x12a')]=null,this[_0x513a('0x101')]=new Dt(this[_0x513a('0x69')]),this['_suggestions']=new Map(),this[_0x513a('0xe2')]=_0x29fe48[_0x513a('0xa')]['get']('CommentsRepository'),this[_0x513a('0x12b')]=new Set(),this[_0x513a('0x37')]=this[_0x513a('0x69')][_0x513a('0x12d')],this['_suggestionState']=new WeakMap(),this[_0x513a('0xf7')]=!0x1,_0x29fe48['config'][_0x513a('0x139')](_0x513a('0xa8'),_0x513a('0xdd')),this[_0x513a('0x116')]=_0x29fe48[_0x513a('0x9f')][_0x513a('0xda')](_0x513a('0xa8')),_0x29fe48[_0x513a('0x9f')]['define'](_0x513a('0x125'),!0x0),this['_mergeNestedSuggestions']=_0x29fe48[_0x513a('0x9f')][_0x513a('0xda')](_0x513a('0x125')),this[_0x513a('0xfc')]=new _0xb12d80(_0x29fe48,this[_0x513a('0x12b')]),this[_0x3cfd19([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3cfd19([0x34,0x30,0x34,0x36,0x31,0x36,0x35,0x36]);}[_0x513a('0x28')](){const _0x40706a=this['editor'];_0x40706a[_0x513a('0xd9')]['for'](_0x513a('0x10d'))[_0x513a('0x5a')]({'model':_0x513a('0xcc'),'view':_0x2a9b92=>{const {id:_0x3356c7,type:_0x1ff7a9}=this[_0x513a('0x19')](_0x2a9b92[_0x513a('0x128')]),_0x5a5059=[_0x513a('0x133'),_0x513a('0x49')+_0x1ff7a9];let _0x4b8451=0xbb8;return this[_0x513a('0xf1')][_0x513a('0xf5')](_0x2a9b92['markerName'])&&(_0x5a5059['push']('ck-suggestion-marker--active'),_0x4b8451=0xbc2),'deletion'==_0x1ff7a9&&(_0x4b8451+=0x5),{'classes':_0x5a5059,'attributes':{'data-suggestion':_0x3356c7},'priority':_0x4b8451};}}),_0x40706a[_0x513a('0xd9')]['for'](_0x513a('0x39'))[_0x513a('0x8d')](_0x37c1bd=>{_0x37c1bd['on'](_0x513a('0x8'),(_0x30c797,_0x1cce22,_0x33d99e)=>{if(!_0x33d99e[_0x513a('0x56')][_0x513a('0xb7')])return;const _0x125a60=_0x1cce22[_0x513a('0x3f')];if(!_0x125a60)return;const _0x4c950e=_0x33d99e['mapper'][_0x513a('0x81')](_0x125a60);_0x40706a[_0x513a('0x12d')]['schema']['isObject'](_0x125a60)&&_0x4c950e&&!_0x4c950e[_0x513a('0x132')](_0x513a('0x124'))&&_0x4c950e['is']('containerElement')&&_0x149dc6(_0x4c950e,_0x33d99e[_0x513a('0x79')]);},{'priority':_0x513a('0x91')});}),_0x40706a[_0x513a('0xd9')][_0x513a('0x74')]('dataDowncast')[_0x513a('0x5a')]({'model':_0x513a('0xcc'),'view':(_0x412b83,_0x1432bd)=>{if(!_0x1432bd[_0x513a('0x56')][_0x513a('0xb7')])return null;const {type:_0x3db12b}=this[_0x513a('0x19')](_0x412b83[_0x513a('0x128')]);return{'classes':[_0x513a('0x133'),_0x513a('0x49')+_0x3db12b],'priority':0xbb8};}});const _0x1a0893=({showActiveMarkers:_0x36530b=!0x0}={})=>(_0x2bb13b,_0x4f8f26,_0x7b6b9b)=>{if(!_0x4f8f26[_0x513a('0x3f')])return;if(_0x4f8f26[_0x513a('0x3f')]['is'](_0x513a('0x3a')))return void _0x7b6b9b[_0x513a('0x117')][_0x513a('0xc')](_0x4f8f26['item'],_0x2bb13b[_0x513a('0x126')]);const _0x11b75b=_0x7b6b9b[_0x513a('0x23')][_0x513a('0x81')](_0x4f8f26[_0x513a('0x3f')]);if(!(_0x4f8f26[_0x513a('0x3f')]['is'](_0x513a('0xe4'))&&_0x40706a[_0x513a('0x12d')][_0x513a('0x131')][_0x513a('0x89')](_0x4f8f26[_0x513a('0x3f')])&&!_0x11b75b[_0x513a('0x132')](_0x513a('0x106'))))return;const {id:_0x6013f4}=this['_splitMarkerName'](_0x4f8f26['markerName']);_0x7b6b9b[_0x513a('0x79')][_0x513a('0x102')]([_0x513a('0x133'),'ck-suggestion-marker-formatBlock'],_0x11b75b),_0x7b6b9b[_0x513a('0x79')][_0x513a('0x83')]('data-suggestion',_0x6013f4,_0x11b75b),_0x7b6b9b[_0x513a('0x23')][_0x513a('0x138')](_0x11b75b,_0x4f8f26['markerName']),_0x36530b&&(this['activeMarkers']['includes'](_0x4f8f26[_0x513a('0x128')])?_0x7b6b9b['writer'][_0x513a('0x102')](_0x513a('0x2e'),_0x11b75b):_0x7b6b9b[_0x513a('0x79')][_0x513a('0xa7')](_0x513a('0x2e'),_0x11b75b));for(const _0x17e27d of _0x40706a[_0x513a('0x12d')]['createRangeIn'](_0x4f8f26[_0x513a('0x3f')])[_0x513a('0x73')]())_0x7b6b9b[_0x513a('0x117')][_0x513a('0xc')](_0x17e27d,_0x2bb13b[_0x513a('0x126')]);_0x7b6b9b[_0x513a('0x117')][_0x513a('0xc')](_0x4f8f26['item'],_0x2bb13b[_0x513a('0x126')]);};_0x40706a[_0x513a('0xd9')][_0x513a('0x74')](_0x513a('0x39'))[_0x513a('0x8d')](_0x2f72af=>{_0x2f72af['on'](_0x513a('0x25'),(_0x15e3f4,_0x30d972,_0x1b98fc)=>{_0x1b98fc[_0x513a('0x56')][_0x513a('0xb7')]&&_0x1a0893({'showActiveMarkers':!0x1})(_0x15e3f4,_0x30d972,_0x1b98fc);},{'priority':_0x513a('0x80')});}),_0x40706a['conversion'][_0x513a('0x74')](_0x513a('0x39'))[_0x513a('0x6')]({'model':_0x513a('0xcc'),'view':(_0x523c8c,_0x21d379)=>_0x21d379[_0x513a('0x56')][_0x513a('0xb7')]?null:{'group':_0x513a('0xcc'),'name':_0x523c8c[_0x513a('0xb5')](0xb)}}),_0x40706a[_0x513a('0xd9')][_0x513a('0x74')](_0x513a('0x13b'))[_0x513a('0xe6')]({'view':{'name':_0x513a('0xcc'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1a5097,{writer:_0x3a4fcf})=>{let _0x13b5f6=_0x513a('0x70')+_0x1a5097[_0x513a('0xf0')](_0x513a('0x51'))+':'+_0x1a5097[_0x513a('0xf0')]('id');return _0x1a5097[_0x513a('0xf0')](_0x513a('0x11a'))&&(_0x13b5f6+=':'+_0x1a5097['getAttribute']('marker-count')),_0x3a4fcf[_0x513a('0x7')](_0x513a('0x1'),{'data-name':_0x13b5f6});}}),_0x40706a[_0x513a('0xd9')][_0x513a('0x74')](_0x513a('0x13b'))[_0x513a('0x26')]({'view':_0x513a('0xcc')}),_0x40706a['conversion'][_0x513a('0x74')](_0x513a('0x10d'))['add'](_0x3cb105=>{_0x3cb105['on'](_0x513a('0x25'),_0x1a0893(),{'priority':_0x513a('0x91')});}),_0x40706a[_0x513a('0xd9')][_0x513a('0x74')](_0x513a('0x10d'))[_0x513a('0x8d')](_0x5718ba=>{_0x5718ba['on']('removeMarker:suggestion:formatBlock',(_0x3fcbee,_0x1e7926,_0x357fae)=>{const _0x38dc71=_0x357fae['mapper'][_0x513a('0x13c')](_0x1e7926[_0x513a('0x128')]);if(_0x38dc71)for(const _0x150e60 of _0x38dc71)_0x150e60[_0x513a('0x132')]('addHighlight')||(_0x357fae[_0x513a('0x79')]['removeClass']([_0x513a('0x133'),'ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x150e60),_0x357fae[_0x513a('0x79')][_0x513a('0xfa')](_0x513a('0x87'),_0x150e60),_0x357fae[_0x513a('0x23')]['unbindElementFromMarkerName'](_0x150e60,_0x1e7926[_0x513a('0x128')]));},{'priority':_0x513a('0x91')});}),_0x40706a[_0x513a('0x12d')][_0x513a('0x4c')]['registerPostFixer'](_0xba9d5a=>{let _0x374631=!0x1;const _0x2f4d57=Array[_0x513a('0x59')](_0x40706a[_0x513a('0x12d')][_0x513a('0x4c')][_0x513a('0x3c')][_0x513a('0x45')]()),_0xfd72a0=new Set();for(const {name:_0x4f9de4,data:_0x434308}of _0x2f4d57){const {group:_0x105d58,type:_0x1cddbf,id:_0x40e5b5}=this[_0x513a('0x19')](_0x4f9de4);if('suggestion'!==_0x105d58)continue;const _0x256d83=this[_0x513a('0x7c')]['get'](_0x40e5b5);if(null!=_0x434308['newRange']){_0x513a('0xdb')==_0x1cddbf&&(_0x374631=_0x374631||Mt(_0x434308[_0x513a('0xa9')],_0x4f9de4,_0xba9d5a,_0x40706a[_0x513a('0x12d')][_0x513a('0x131')]));if(_0x434308['newRange'][_0x513a('0xa0')]||'$graveyard'==_0x434308['newRange'][_0x513a('0xd7')][_0x513a('0x109')]||_0x513a('0x94')==_0x1cddbf&&!Nt(_0x434308[_0x513a('0xa9')])||_0x513a('0xf')==_0x1cddbf&&!(!_t(_0x5b6758=_0x434308[_0x513a('0xa9')])&&!function(_0xe06292){return _0xe06292[_0x513a('0xd1')]['parent']==_0xe06292['end'][_0x513a('0xe0')]&&_0xe06292[_0x513a('0xd1')][_0x513a('0x41')];}(_0x5b6758)))_0xba9d5a[_0x513a('0x4')](_0x4f9de4),_0x374631=!0x0;else{if(!_0x256d83||!_0x256d83[_0x513a('0x40')])continue;_0xfd72a0['add'](_0x256d83);}}}var _0x5b6758;return _0xfd72a0[_0x513a('0xec')]>0x0&&(_0x374631=!!this['_joinWithAdjacentSuggestions'](_0xfd72a0)||_0x374631),_0x374631;}),_0x40706a[_0x513a('0x12d')][_0x513a('0x4c')][_0x513a('0x4f')](_0x112c29=>{let _0x39629a=!0x1;for(const _0x56285d of _0x40706a[_0x513a('0x12d')][_0x513a('0x4c')][_0x513a('0x3c')]['getChanges']()){if('insert'!=_0x56285d[_0x513a('0x111')])continue;const _0x27a7f8=_0x56285d[_0x513a('0xb3')]['getShiftedBy'](_0x56285d['length']);if(_0x27a7f8['isAtEnd'])for(const _0x2ff8db of this[_0x513a('0x7c')][_0x513a('0x10')]()){if(_0x2ff8db['isMultiRange']||!_0x2ff8db[_0x513a('0x40')])continue;if('formatBlock'!=_0x2ff8db[_0x513a('0x111')])continue;const _0x407ecc=_0x2ff8db[_0x513a('0x65')]();if(_0x407ecc[_0x513a('0xd1')]['parent']!=_0x407ecc[_0x513a('0x61')][_0x513a('0x71')]&&_0x407ecc[_0x513a('0x61')]['isEqual'](_0x56285d[_0x513a('0xb3')])){const _0x3c8940=_0x40706a['model'][_0x513a('0xc3')](_0x407ecc[_0x513a('0xd1')],_0x27a7f8);_0x112c29['updateMarker'](_0x2ff8db['getFirstMarker'](),{'range':_0x3c8940}),_0x39629a=!0x0;}}}return _0x39629a;}),_0x40706a[_0x513a('0x12d')]['markers']['on'](_0x513a('0x90'),(_0x1e5c36,_0x371f4a,_0x2118f2)=>{if(null==_0x2118f2){const {id:_0xe1ea15}=this['_splitMarkerName'](_0x371f4a[_0x513a('0x126')]),_0x4967d6=this[_0x513a('0x7c')][_0x513a('0xda')](_0xe1ea15);_0x4967d6&&_0x4967d6[_0x513a('0x76')](_0x371f4a[_0x513a('0x126')]);}}),_0x40706a[_0x513a('0x12d')][_0x513a('0x4c')]['on'](_0x513a('0x54'),()=>{const _0x2ba796=Array[_0x513a('0x59')](_0x40706a['model'][_0x513a('0x4c')]['differ'][_0x513a('0x45')]())[_0x513a('0x7d')](_0x52eb90=>_0x513a('0xcc')===this[_0x513a('0x19')](_0x52eb90[_0x513a('0x126')])[_0x513a('0x5e')]);if(0x0===_0x2ba796['length'])return;_0x2ba796[_0x513a('0x46')]((_0x3568fd,_0x437e5e)=>{const _0x49819a=_0x3568fd[_0x513a('0xa5')][_0x513a('0x4e')],_0x30dcf1=_0x437e5e['data'][_0x513a('0x4e')];return null===_0x49819a&&null===_0x30dcf1?0x0:null===_0x49819a&&null!==_0x30dcf1?-0x1:null!==_0x49819a&&null===_0x30dcf1?0x1:_0x49819a[_0x513a('0xd1')][_0x513a('0xb1')](_0x30dcf1[_0x513a('0xd1')])?-0x1:0x1;});const _0x1020ae=new Set(),_0x3bf938=new Set();for(const {name:_0x297b9a,data:_0x1c7278}of _0x2ba796){const {id:_0xeb3705}=this[_0x513a('0x19')](_0x297b9a);if(null===_0x1c7278['oldRange']){const _0xfa175e=this['_handleNewSuggestionMarker'](_0x297b9a);_0x3bf938['add'](_0xfa175e);}else{const _0x55a054=this[_0x513a('0x7c')][_0x513a('0xda')](_0xeb3705);null!==_0x1c7278['newRange']||_0x55a054[_0x513a('0x40')]?(_0x1020ae[_0x513a('0x8d')](_0x55a054['head']),_0x3bf938[_0x513a('0x8d')](_0x55a054)):this[_0x513a('0xd4')](_0x55a054);}}_0x3bf938[_0x513a('0xec')]>0x0&&this[_0x513a('0x137')](_0x3bf938);for(const _0x4fa4d2 of _0x1020ae)this['fire']('suggestionChanged',_0x4fa4d2);}),_0x40706a[_0x513a('0x12d')]['on'](_0x513a('0xdf'),(_0x2537aa,_0x4362a8)=>{const _0x25b5ce=_0x4362a8[0x0];if(!this[_0x513a('0x7c')][_0x513a('0xec')])return;if(!_0x25b5ce[_0x513a('0xbc')])return;if(_0x25b5ce[_0x513a('0x3')][_0x513a('0xe9')]||!_0x25b5ce[_0x513a('0x3')]['isLocal'])return;let _0x4bb977,_0x1b9681;switch(_0x25b5ce[_0x513a('0x111')]){case'insert':_0x4bb977=_0x40706a[_0x513a('0x12d')][_0x513a('0x118')](_0x25b5ce[_0x513a('0xb3')]),_0x1b9681=_0x4bb977[_0x513a('0xab')](_0x25b5ce[_0x513a('0x29')]);break;case _0x513a('0xb8'):_0x4bb977=_0x40706a['model'][_0x513a('0x118')](_0x25b5ce[_0x513a('0x78')]),_0x1b9681=_0x40706a[_0x513a('0x12d')]['createPositionAt'](_0x25b5ce[_0x513a('0xb')]);break;case _0x513a('0x14'):_0x4bb977=_0x40706a['model'][_0x513a('0x118')](_0x25b5ce[_0x513a('0x95')]),_0x1b9681=_0x4bb977[_0x513a('0xab')](_0x25b5ce['howMany']);break;default:return;}const _0x49eb8d=_0x40706a[_0x513a('0x12d')]['createRange'](_0x4bb977,_0x1b9681);_0x40706a[_0x513a('0x12d')]['change'](()=>{for(const {suggestion:_0x2158ef,meta:_0x6606e0}of this['_findSuggestions'](_0x49eb8d)){if(_0x2158ef[_0x513a('0x82')])continue;if('formatInline'==_0x2158ef[_0x513a('0x111')])continue;const _0x5a6272=_0x2158ef['data']&&_0x2158ef[_0x513a('0xa5')][_0x513a('0x1e')];(_0x513a('0x94')!=_0x2158ef[_0x513a('0x111')]||_0x513a('0xb8')==_0x25b5ce['type']&&!_0x5a6272)&&(_0x6606e0[_0x513a('0x13e')]||_0x513a('0x9e')==_0x2158ef['type']&&_0x6606e0[_0x513a('0xc0')]||_0x2158ef[_0x513a('0x65')]()[_0x513a('0xd')](_0x49eb8d)&&this[_0x513a('0x6f')](_0x2158ef,_0x4bb977,_0x1b9681));}});},{'priority':_0x513a('0xf3')}),_0x40706a['model']['on']('deleteContent',(_0x250cd7,_0x4fd6a5)=>{const _0x3b238d=_0x4fd6a5[0x0],_0x122655=_0x4fd6a5[0x1];if(_0x122655&&_0x122655['forceDefaultExecution'])return;if(this[_0x513a('0xf7')])return;if(!this[_0x513a('0xfc')]['value'])return;if(_0x3b238d['isCollapsed'])return;const _0x3b4ad3=_0x40706a['model'][_0x513a('0x131')],{start:_0x3150ee,end:_0x1df5c1}=_0x3b238d[_0x513a('0x65')](),_0x1a14a3=_0x3150ee[_0x513a('0x113')]&&_0x3b4ad3[_0x513a('0x0')](_0x3150ee[_0x513a('0x113')])?null:_0x3b4ad3[_0x513a('0xbf')](_0x3150ee,_0x513a('0x99')),_0x179707=_0x1df5c1[_0x513a('0xe0')]&&_0x3b4ad3[_0x513a('0x0')](_0x1df5c1['nodeBefore'])?null:_0x3b4ad3[_0x513a('0xbf')](_0x1df5c1,_0x513a('0x11c')),_0x3e923d=_0x40706a[_0x513a('0x12d')]['createRange'](_0x1a14a3?_0x1a14a3['start']:_0x3150ee,_0x179707?_0x179707[_0x513a('0x61')]:_0x1df5c1);_0x40706a[_0x513a('0x12d')][_0x513a('0xeb')](_0x2565b4=>{this[_0x513a('0x12')](_0x3e923d);const _0x2d72e6=_0x40706a[_0x513a('0x12d')][_0x513a('0x131')][_0x513a('0xbf')](_0x3e923d[_0x513a('0xd1')]);_0x3b238d['is'](_0x513a('0xac'))?_0x2565b4['setSelection'](_0x2d72e6):_0x3b238d[_0x513a('0x11f')](_0x2d72e6);}),_0x250cd7[_0x513a('0xaf')]();},{'priority':_0x51363f[_0x513a('0xd0')]+0xa}),_0x40706a['model']['on']('insertContent',(_0x1013a6,_0x2968e4)=>{const _0x43b744=_0x2968e4[_0x2968e4[_0x513a('0xcd')]-0x1];_0x43b744&&_0x43b744[_0x513a('0x60')]||this[_0x513a('0xf7')]||this[_0x513a('0xfc')][_0x513a('0x136')]&&(_0x40706a[_0x513a('0x12d')]['change'](()=>{let _0x293532=_0x40706a[_0x513a('0x12d')][_0x513a('0x5')](_0x2968e4[0x0],_0x2968e4[0x1],_0x2968e4[0x2],{'forceDefaultExecution':!0x0});if(!_0x293532)return;_0x1013a6['return']=_0x293532['clone']();const _0x37d167=_0x293532[_0x513a('0x61')]['nodeBefore'],_0x5b224a=_0x40706a[_0x513a('0x12d')]['schema'];_0x37d167&&_0x5b224a[_0x513a('0x89')](_0x37d167)&&!_0x5b224a['isObject'](_0x37d167)&&(_0x293532=_0x40706a[_0x513a('0x12d')][_0x513a('0xc3')](_0x293532[_0x513a('0xd1')],_0x40706a[_0x513a('0x12d')][_0x513a('0x118')](_0x37d167,_0x513a('0x61')))),this[_0x513a('0x1c')](_0x293532);}),_0x1013a6[_0x513a('0xaf')]());},{'priority':_0x513a('0x91')}),this[_0x513a('0x69')][_0x513a('0x85')][_0x513a('0x8d')]('trackChanges',this[_0x513a('0xfc')]),this[_0x513a('0xd6')](_0x513a('0x64'));const _0xf4d033=new _0x2f6a2d(_0x40706a,this[_0x513a('0x7c')]);_0x40706a['commands']['add'](_0x513a('0xa6'),_0xf4d033),this[_0x513a('0xd6')](_0x513a('0xa6'));const _0x3b4f31=new _0x1f1ef9(_0x40706a,this[_0x513a('0x7c')]);_0x40706a[_0x513a('0x85')][_0x513a('0x8d')](_0x513a('0x43'),_0x3b4f31),this[_0x513a('0xd6')](_0x513a('0x43')),_0x40706a[_0x513a('0x85')][_0x513a('0x8d')](_0x513a('0x105'),new _0x44430d(_0x40706a,_0xf4d033,this[_0x513a('0x7c')])),this[_0x513a('0xd6')](_0x513a('0x105')),_0x40706a['commands'][_0x513a('0x8d')](_0x513a('0x3e'),new _0x44430d(_0x40706a,_0x3b4f31,this[_0x513a('0x7c')])),this[_0x513a('0xd6')]('discardAllSuggestions'),_0x40706a['commands'][_0x513a('0x8d')](_0x513a('0x120'),new _0x31bb6e(_0x40706a,_0xf4d033,this[_0x513a('0x7c')])),this[_0x513a('0xd6')](_0x513a('0x120')),_0x40706a[_0x513a('0x85')][_0x513a('0x8d')](_0x513a('0x7b'),new _0x31bb6e(_0x40706a,_0x3b4f31,this[_0x513a('0x7c')])),this[_0x513a('0xd6')](_0x513a('0x7b'));const _0x118e65=_0x40706a[_0x513a('0xa')]['get'](_0x513a('0x75'));this[_0x513a('0xe5')](_0x118e65,_0x513a('0x10b'),(_0x3ae7ba,{threadId:_0x106fd5})=>{const _0x6a767=this[_0x513a('0x7c')][_0x513a('0xda')](_0x106fd5);_0x6a767&&_0x6a767['commentThread']&&0x1===_0x6a767[_0x513a('0x34')][_0x513a('0xcd')]&&this[_0x513a('0xd8')](_0x106fd5,{'hasComments':!0x0});},{'priority':'low'}),this[_0x513a('0xe5')](_0x118e65,_0x513a('0x24'),(_0x1801b3,{threadId:_0x9dce5d})=>{const _0xce35e8=this[_0x513a('0x7c')][_0x513a('0xda')](_0x9dce5d);_0xce35e8&&_0xce35e8[_0x513a('0x34')]&&!_0xce35e8[_0x513a('0x34')][_0x513a('0xcd')]&&this[_0x513a('0xd8')](_0x9dce5d,{'hasComments':!0x1});},{'priority':_0x513a('0x33')});}set[_0x513a('0xfb')](_0x193991){if(this[_0x513a('0x12a')])throw new _0x2e8f93(_0x513a('0x22'),this);this['_adapter']=_0x193991;}get[_0x513a('0xfb')](){return this[_0x513a('0x12a')];}[_0x513a('0x5d')]({skipNotAttached:_0x1a08fe=!0x1,toJSON:_0x5eb003=!0x1}={}){const _0x875cee=[];for(const _0x1ee597 of this['_suggestions'][_0x513a('0x10')]())_0x1a08fe&&!_0x1ee597[_0x513a('0x40')]||_0x875cee['push'](_0x1ee597);return _0x5eb003?_0x875cee[_0x513a('0x2b')](_0x48e681=>_0x48e681[_0x513a('0x13')]()):_0x875cee;}[_0x513a('0xa3')](_0x63bc9){const _0xfcd587=this[_0x513a('0x7c')][_0x513a('0xda')](_0x63bc9);if(!_0xfcd587)throw new _0x2e8f93(_0x513a('0xfe'),this);return _0xfcd587;}[_0x513a('0xaa')](_0x259255){return this[_0x513a('0x7c')][_0x513a('0x134')](_0x259255);}['addSuggestionData'](_0x54a4d7){const {authorId:_0x3b221b,id:_0x46f643,attributes:_0x3c2fee}=_0x54a4d7,[_0x546c17,_0x330d7a]=_0x54a4d7[_0x513a('0x111')][_0x513a('0xb8')](':'),_0x6dd728=this[_0x513a('0x7c')][_0x513a('0xda')](_0x46f643)||this[_0x513a('0x8b')](_0x546c17,_0x330d7a,_0x46f643,_0x3b221b,_0x3c2fee);if(this[_0x513a('0x30')](_0x6dd728),this[_0x513a('0xa4')](_0x6dd728,_0x546c17,_0x330d7a||null,_0x3b221b),_0x6dd728['createdAt']=_0x54a4d7[_0x513a('0x100')],_0x3c2fee&&_0x3c2fee[_0x513a('0x1a')]){const _0x1ea54b=_0x3c2fee['@external'],_0x3b6d06=this['_getExternalAuthor'](_0x1ea54b[_0x513a('0x31')]);_0x6dd728[_0x513a('0xff')]=_0x1ea54b[_0x513a('0x100')],_0x6dd728['author']=_0x3b6d06,_0x6dd728[_0x513a('0xa2')]=!0x0;}else _0x6dd728[_0x513a('0xff')]=_0x54a4d7[_0x513a('0x100')];switch(_0x54a4d7['data']&&(_0x6dd728[_0x513a('0xa5')]=_0x54a4d7[_0x513a('0xa5')]),_0x54a4d7['attributes']&&(_0x6dd728['attributes']=_0x54a4d7['attributes']),this[_0x513a('0x12a')]&&this[_0x513a('0x12a')][_0x513a('0x8a')]||(_0x6dd728[_0x513a('0xed')]=!0x0),this[_0x513a('0xbe')][_0x513a('0xda')](_0x6dd728)){case _0x513a('0xd2'):this['_suggestionState'][_0x513a('0xc8')](_0x6dd728,_0x513a('0x63'));break;case'markerReady':_0x6dd728[_0x513a('0x40')]?(this['_suggestionState'][_0x513a('0xc8')](_0x6dd728,_0x513a('0x7f')),this['fire'](_0x513a('0x15'),_0x6dd728)):this[_0x513a('0xbe')][_0x513a('0xc8')](_0x6dd728,_0x513a('0x4b'));}return _0x6dd728;}[_0x513a('0xa6')](_0x31a1a0){this[_0x513a('0x60')](()=>{this[_0x513a('0x69')][_0x513a('0x12d')][_0x513a('0xeb')](()=>{for(const _0x3f4db5 of _0x31a1a0[_0x513a('0xae')]())_0x3f4db5[_0x513a('0x47')]();});});}[_0x513a('0x43')](_0x1fd9cb){this[_0x513a('0x60')](()=>{this[_0x513a('0x69')]['model']['change'](()=>{for(const _0x2daedf of _0x1fd9cb[_0x513a('0xae')]())_0x2daedf[_0x513a('0x112')]();});});}['enableCommand'](_0x4e2bd6,_0xdedfd3){const _0x11a0a0=this[_0x513a('0x69')][_0x513a('0x85')][_0x513a('0xda')](_0x4e2bd6);if(!_0x11a0a0)throw new _0x2e8f93('track-changes-command-not-found',this,{'commandName':_0x4e2bd6});this['_enabledCommands'][_0x513a('0x8d')](_0x11a0a0),_0xdedfd3&&_0x11a0a0['on']('execute',(_0xbca46d,_0x54be5e)=>{this[_0x513a('0xfc')][_0x513a('0x136')]&&(this[_0x513a('0xf7')]||_0x54be5e[_0x513a('0xcd')]>0x0&&_0x54be5e[_0x54be5e[_0x513a('0xcd')]-0x1]&&_0x54be5e[_0x54be5e[_0x513a('0xcd')]-0x1]['forceDefaultExecution']||(_0xdedfd3((..._0x3a153d)=>_0x11a0a0[_0x513a('0x21')](..._0x3a153d,{'forceDefaultExecution':!0x0}),..._0x54be5e),_0xbca46d[_0x513a('0xaf')]()));},{'priority':'high'});}[_0x513a('0x60')](_0xa04729){let _0x5af49f,_0x485415;const _0x424f88=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5af49f=_0xa04729();}catch(_0x536604){_0x485415=_0x536604;}return _0x424f88||(this[_0x513a('0xf7')]=!0x1),_0x485415&&_0x2e8f93[_0x513a('0x110')](_0x485415,this),_0x5af49f;}[_0x513a('0x1c')](_0x481e0b,_0x3cb1a2=null,_0x4e9b66={}){if(_0x481e0b[_0x513a('0xa0')])return null;const _0x15e15a=this[_0x513a('0x69')][_0x513a('0xa')]['get'](_0x513a('0x38'))['me'];for(const {suggestion:_0x1b9ce7,meta:_0xca3c99}of this[_0x513a('0x12e')](_0x481e0b,_0x513a('0x9e')))if(_0xca3c99[_0x513a('0xc0')]){if(!_0xca3c99[_0x513a('0xa1')]){if(!this['_mergeNestedSuggestions']&&_0xca3c99[_0x513a('0x13e')])continue;return _0x1b9ce7;}if(_0x3cb1a2==_0x1b9ce7['subType']){const _0x4fba86=_0x1b9ce7[_0x513a('0x65')]();return _0x4fba86['start'][_0x513a('0x42')](_0x481e0b[_0x513a('0x61')])?this[_0x513a('0x96')](_0x1b9ce7,this[_0x513a('0x37')][_0x513a('0xc3')](_0x481e0b[_0x513a('0xd1')],_0x4fba86[_0x513a('0x61')])):this[_0x513a('0x96')](_0x1b9ce7,this['_model'][_0x513a('0xc3')](_0x4fba86['start'],_0x481e0b[_0x513a('0x61')])),_0x1b9ce7;}}const _0x45ce41=_0x1396d2(),_0x119442=_0x15e15a['id'],_0x4dfe76=_0x3cb1a2?'insertion:'+_0x3cb1a2:_0x513a('0x9e'),_0x5a692d=this[_0x513a('0x3b')]({'id':_0x45ce41,'type':_0x4dfe76,'createdAt':new Date(),'authorId':_0x119442,'attributes':_0x4e9b66});return this[_0x513a('0xdc')](_0x4dfe76,_0x45ce41,_0x119442,_0x481e0b),_0x5a692d;}[_0x513a('0xf6')](_0xd6b813,_0x3e2feb='multi',_0x43b388={}){const _0x5f0786=this[_0x513a('0x69')][_0x513a('0xa')][_0x513a('0xda')](_0x513a('0x38'))['me'],_0xfa2975=this[_0x513a('0x101')][_0x513a('0xf9')](_0x513a('0x9e'),_0x3e2feb,_0x513a('0x5c'));for(const _0x2309b4 of this[_0x513a('0x5d')]())if(_0x2309b4[_0x513a('0x129')]['id']==_0x5f0786['id']&&'insertion'==_0x2309b4[_0x513a('0x111')]&&_0x2309b4[_0x513a('0x98')]==_0x3e2feb&&(_0xfa2975(_0x2309b4[_0x513a('0x50')](),_0xd6b813)||_0xfa2975(_0xd6b813,_0x2309b4[_0x513a('0x50')]()))){for(const _0xe12546 of _0xd6b813)_0x2309b4[_0x513a('0xf2')](_0xe12546);return _0x2309b4;}if(this[_0x513a('0x57')])for(const _0xfb0ede of _0xd6b813)for(const {suggestion:_0x34fc31,meta:_0x1dbf76}of this[_0x513a('0x12e')](_0xfb0ede,_0x513a('0x9e'))){if(!_0x1dbf76[_0x513a('0xc0')])continue;let _0xe218ef=!0x0;for(const _0x3d9144 of _0x34fc31[_0x513a('0x50')]())for(const _0x288f24 of _0xd6b813)if(!_0x3d9144['containsRange'](_0x288f24)){_0xe218ef=!0x1;break;}if(_0xe218ef)return _0x34fc31;}const _0x3aeb1a=_0x1396d2(),_0x5c2876=_0x5f0786['id'],_0x290a3e=_0x513a('0x11e')+_0x3e2feb,_0x2e0e93=this[_0x513a('0x3b')]({'id':_0x3aeb1a,'type':_0x290a3e,'createdAt':new Date(),'authorId':_0x5c2876,'attributes':_0x43b388});for(const _0x6f4d0c of _0xd6b813)this[_0x513a('0xdc')](_0x290a3e,_0x3aeb1a,_0x5c2876,_0x6f4d0c,_0xf7935d[_0x513a('0x2c')]());return _0x2e0e93;}[_0x513a('0x48')](_0x23eb15,_0x56fa0a,_0x41258d=null,_0x3693dd={}){if(_0x41258d=_0x41258d||$t(_0x56fa0a),_0x23eb15['isCollapsed'])return null;if(_0x513a('0x1b')===this[_0x513a('0x116')]){const _0xc7a9b8=this[_0x513a('0x101')][_0x513a('0xf9')](_0x513a('0xdb'),_0x41258d,_0x513a('0x47'));return this['forceDefaultExecution'](()=>_0xc7a9b8([_0x23eb15],_0x56fa0a,_0x3693dd)),null;}const _0x19803e=this['editor'][_0x513a('0xa')][_0x513a('0xda')](_0x513a('0x38'))['me'],_0x3725a9=[];if(_0x513a('0xe')!==this['_trackFormatChanges'])for(const {suggestion:_0x37207e,meta:_0x61de14}of this[_0x513a('0x12e')](_0x23eb15,'insertion'))_0x61de14['isOwn']&&!_0x61de14[_0x513a('0x7e')]&&_0x3725a9[_0x513a('0xce')](..._0x37207e[_0x513a('0x50')]());const _0x5c231e=function(_0x21262c,_0x281fd4){const _0x1f5963=[];for(const _0x3c2659 of _0x281fd4){const _0x3e9857=_0x21262c[_0x513a('0x62')](_0x3c2659);_0x3e9857&&_0x1f5963['push'](_0x3e9857);}return _0x1f5963;}(_0x23eb15,_0x3725a9),_0x365ef7=function(_0x59cc89,_0x5bd649){const _0x4017fb=[_0x59cc89];for(const _0x2d681e of _0x5bd649){let _0xea821f=0x0;for(;_0xea821f<_0x4017fb[_0x513a('0xcd')];){const _0x3bf440=_0x4017fb[_0xea821f][_0x513a('0xe8')](_0x2d681e);_0x4017fb['splice'](_0xea821f,0x1,..._0x3bf440),_0xea821f+=_0x3bf440['length'];}}return _0x4017fb;}(_0x23eb15,_0x3725a9);_0x5c231e[_0x513a('0xcd')]&&this['_model'][_0x513a('0xeb')](()=>{for(const _0x136404 of _0x5c231e){const _0x448873=this['_suggestionFactory'][_0x513a('0xf9')](_0x513a('0xdb'),_0x41258d,_0x513a('0x47'));this[_0x513a('0x60')](()=>_0x448873([_0x136404],_0x56fa0a,_0x3693dd));}});for(const _0x6c359 of _0x365ef7){let _0x215a74=null,_0xe5f32c=_0x6c359[_0x513a('0xd1')],_0x53cadc=_0x6c359[_0x513a('0x61')];for(const {suggestion:_0x136fae,meta:_0x5ccb05}of this[_0x513a('0x12e')](_0x6c359,_0x513a('0xdb'))){if(!_0x5ccb05['isOwn'])continue;if(_0x136fae[_0x513a('0x98')]!=_0x41258d)continue;const _0x482856=_0x136fae[_0x513a('0x65')]();if(_0x482856[_0x513a('0xd')](_0x6c359,!0x0))return null;_0xe5f32c=_0xe5f32c['isBefore'](_0x482856[_0x513a('0xd1')])?_0xe5f32c:_0x482856['start'],_0x53cadc=_0x53cadc[_0x513a('0x92')](_0x482856[_0x513a('0x61')])?_0x53cadc:_0x482856['end'],_0x215a74?_0x482856[_0x513a('0xd1')][_0x513a('0xb1')](_0x215a74[_0x513a('0x65')]()[_0x513a('0xd1')])?(_0x215a74['removeMarkers'](),_0x215a74=_0x136fae):_0x136fae[_0x513a('0x8c')]():_0x215a74=_0x136fae;}const _0x241cfc=this[_0x513a('0x37')][_0x513a('0xc3')](_0xe5f32c,_0x53cadc);if(_0x215a74)this[_0x513a('0x96')](_0x215a74,_0x241cfc);else{const _0x2c293f=_0x1396d2(),_0x40a2a8=_0x19803e['id'];this[_0x513a('0x3b')]({'id':_0x2c293f,'type':'formatInline:'+_0x41258d,'data':_0x56fa0a,'createdAt':new Date(),'authorId':_0x40a2a8,'attributes':_0x3693dd}),this[_0x513a('0xdc')](_0x513a('0x115')+_0x41258d,_0x2c293f,_0x40a2a8,_0x241cfc);}}return null;}[_0x513a('0xc6')](_0x33d05f,_0x14758f,_0x3eb1a7=[],_0x40499c=null,_0x274918={}){_0x14758f[_0x513a('0xfd')]||(_0x14758f[_0x513a('0xfd')]=_0x14758f[_0x513a('0xe7')]),_0x14758f[_0x513a('0x1e')]=_0x33d05f['is'](_0x513a('0xb6')),_0x40499c=_0x40499c||$t(_0x14758f);const _0x4a2746=_0x3eb1a7[_0x513a('0x2b')](_0x4f22c6=>Rt(_0x4f22c6,this[_0x513a('0x37')])),_0x26c2b=_0x33d05f['is'](_0x513a('0xb6'))?_0x33d05f:Rt(_0x33d05f,this['_model']);if('never'===this[_0x513a('0x116')]){const _0x3a1df5=this[_0x513a('0x101')][_0x513a('0xf9')](_0x513a('0x94'),_0x40499c,'accept');return this[_0x513a('0x60')](()=>_0x3a1df5([_0x26c2b],_0x14758f,_0x274918)),null;}_0x4a2746['push'](_0x26c2b);let _0x27d60e=!0x0;for(const _0x4eb6e0 of _0x4a2746)if(!this['_rangeIsInLocalUserInsertion'](_0x4eb6e0)){_0x27d60e=!0x1;break;}if(_0x27d60e&&'always'!==this[_0x513a('0x116')]){const _0x497b33=this['_suggestionFactory'][_0x513a('0xf9')](_0x513a('0x94'),_0x40499c,_0x513a('0x47'));return this[_0x513a('0x60')](()=>_0x497b33([_0x26c2b],_0x14758f,_0x274918)),null;}let _0x5c7983=null,_0x5d5961=_0x26c2b[_0x513a('0xd1')],_0x23c7bd=_0x26c2b[_0x513a('0x61')];for(const {suggestion:_0x13d5f2,meta:_0x503c9a}of this['_findSuggestions'](_0x26c2b,'formatBlock')){if(!_0x503c9a['isOwn']||_0x503c9a['isNextTo']||_0x503c9a[_0x513a('0x13e')]||_0x503c9a[_0x513a('0x7e')])continue;if(_0x13d5f2[_0x513a('0xa5')]['formatGroupId']!=_0x14758f[_0x513a('0xfd')])continue;const _0x5d534c=_0x13d5f2[_0x513a('0x65')]();if(_0x13d5f2[_0x513a('0x98')]==_0x40499c){if(_0x5d534c[_0x513a('0xd')](_0x26c2b,!0x0))return null;_0x5d5961=_0x5d5961[_0x513a('0xb1')](_0x5d534c[_0x513a('0xd1')])?_0x5d5961:_0x5d534c['start'],_0x23c7bd=_0x23c7bd['isAfter'](_0x5d534c[_0x513a('0x61')])?_0x23c7bd:_0x5d534c[_0x513a('0x61')],_0x5c7983?_0x5d534c[_0x513a('0xd1')][_0x513a('0xb1')](_0x5c7983['getFirstRange']()[_0x513a('0xd1')])?(_0x5c7983[_0x513a('0x8c')](),_0x5c7983=_0x13d5f2):_0x13d5f2[_0x513a('0x8c')]():_0x5c7983=_0x13d5f2;}else{const _0x53dd00=_0x26c2b[_0x513a('0x62')](_0x5d534c);this[_0x513a('0x17')](_0x13d5f2,_0x53dd00);}}const _0x39fa25=this['editor'][_0x513a('0xa')]['get'](_0x513a('0x38'))['me'],_0x552337=_0x1396d2(),_0x19e747=_0x39fa25['id'];if(_0x5c7983)return this[_0x513a('0x96')](_0x5c7983,this['_model']['createRange'](_0x5d5961,_0x23c7bd)),_0x5c7983;{const _0x57db67=this[_0x513a('0x3b')]({'id':_0x552337,'type':_0x513a('0x4a')+_0x40499c,'data':_0x14758f,'createdAt':new Date(),'authorId':_0x19e747,'attributes':_0x274918});return this[_0x513a('0xdc')](_0x513a('0x4a')+_0x40499c,_0x552337,_0x19e747,this[_0x513a('0x37')]['createRange'](_0x5d5961,_0x23c7bd)),_0x57db67;}}['markMultiRangeBlockFormat'](_0x234f0f,_0x16bcc2,_0x5bff50=[],_0x239aab=null,_0x3e1f80={}){_0x16bcc2[_0x513a('0xfd')]||(_0x16bcc2[_0x513a('0xfd')]=_0x16bcc2['commandName']);const _0x2f482f=_0x234f0f[0x0];_0x16bcc2[_0x513a('0x1e')]=_0x2f482f['is'](_0x513a('0xb6')),_0x239aab=_0x239aab||$t(_0x16bcc2);const _0x242543=_0x5bff50['map'](_0x4a0e70=>Rt(_0x4a0e70,this[_0x513a('0x37')])),_0x45ddad=_0x2f482f['is'](_0x513a('0xb6'))?_0x234f0f:_0x234f0f['map'](_0x50024b=>Rt(_0x50024b,this[_0x513a('0x37')]));if(_0x513a('0x1b')===this[_0x513a('0x116')]){const _0x531302=this[_0x513a('0x101')][_0x513a('0xf9')](_0x513a('0x94'),_0x239aab,_0x513a('0x47'));return this[_0x513a('0x60')](()=>_0x531302(_0x45ddad,_0x16bcc2,_0x3e1f80)),null;}_0x242543[_0x513a('0xce')](..._0x45ddad);let _0xb2802d=!0x0;for(const _0x42f668 of _0x242543)if(!this[_0x513a('0x36')](_0x42f668)){_0xb2802d=!0x1;break;}if(_0xb2802d&&_0x513a('0xe')!==this[_0x513a('0x116')]){const _0x198d48=this[_0x513a('0x101')]['getSuggestionCallback'](_0x513a('0x94'),_0x239aab,'accept');return this['forceDefaultExecution'](()=>_0x198d48(_0x45ddad,_0x16bcc2,_0x3e1f80)),null;}const _0x4f8258=this[_0x513a('0x69')]['plugins'][_0x513a('0xda')]('Users')['me'];for(const _0x1d8758 of this[_0x513a('0x5d')]()){if(_0x1d8758['author']['id']!=_0x4f8258['id'])continue;if('formatBlock'!=_0x1d8758[_0x513a('0x111')]||_0x1d8758[_0x513a('0xa5')]['formatGroupId']!=_0x16bcc2[_0x513a('0xfd')])continue;const _0x138ba2=_0x1d8758[_0x513a('0x98')]==_0x239aab;for(let _0x24e65a=0x0;_0x24e65a<_0x45ddad['length'];_0x24e65a++){const _0x39e541=_0x45ddad[_0x24e65a];for(const _0x5c2ead of _0x1d8758[_0x513a('0xf8')]()){const _0x1342fe=_0x5c2ead[_0x513a('0x6e')]();if(_0x39e541[_0x513a('0x42')](_0x1342fe)){_0x138ba2?(_0x45ddad[_0x513a('0xee')](_0x24e65a,0x1),_0x24e65a--):_0x1d8758[_0x513a('0x4')](_0x5c2ead[_0x513a('0x126')]);break;}}}}if(0x0==_0x45ddad[_0x513a('0xcd')])return null;const _0x34b601=this['_suggestionFactory'][_0x513a('0xf9')](_0x513a('0x94'),_0x239aab,_0x513a('0x5c'));for(const _0x46d9a5 of this[_0x513a('0x5d')]())if(_0x46d9a5[_0x513a('0x129')]['id']==_0x4f8258['id']&&'formatBlock'==_0x46d9a5[_0x513a('0x111')]&&_0x46d9a5[_0x513a('0xa5')][_0x513a('0xfd')]==_0x16bcc2['formatGroupId']&&_0x46d9a5[_0x513a('0x98')]==_0x239aab&&(_0x34b601(_0x46d9a5['getRanges'](),_0x45ddad)||_0x34b601(_0x45ddad,_0x46d9a5[_0x513a('0x50')]()))){for(const _0x1eca9f of _0x45ddad)_0x46d9a5[_0x513a('0xf2')](_0x1eca9f);return _0x46d9a5;}const _0x2aaff7=_0x1396d2(),_0x552089=_0x4f8258['id'],_0x2c07fd=_0x513a('0x4a')+_0x239aab,_0x28cc40=this['_setSuggestionData']({'id':_0x2aaff7,'type':_0x2c07fd,'data':_0x16bcc2,'createdAt':new Date(),'authorId':_0x552089,'attributes':_0x3e1f80});for(const _0x232824 of _0x45ddad)this[_0x513a('0xdc')](_0x2c07fd,_0x2aaff7,_0x552089,_0x232824,_0xf7935d[_0x513a('0x2c')]());return _0x28cc40;}[_0x513a('0x12')](_0x37cadf,_0x833361=null,_0x2cd8eb={}){if(_0x37cadf[_0x513a('0xa0')])return null;const _0x364bca=this[_0x513a('0x69')][_0x513a('0xa')]['get'](_0x513a('0x38'))['me'],_0x269733=new _0x73d110(_0x37cadf[_0x513a('0xd1')],_0x37cadf[_0x513a('0x61')]);for(const {suggestion:_0x5640a7,meta:_0x11246b}of this[_0x513a('0x12e')](_0x269733,_0x513a('0x9e')))if(_0x11246b['isOwn']&&!_0x11246b[_0x513a('0xa1')]){if(_0x5640a7[_0x513a('0x82')]){const _0x569821=_0x5640a7[_0x513a('0x50')]()[_0x513a('0x7d')](_0x4b940f=>'$graveyard'!=_0x4b940f[_0x513a('0xd7')][_0x513a('0x109')]);_0x569821[_0x513a('0x2a')](_0xffd08f=>_0x269733['containsRange'](_0xffd08f,!0x0))&&_0x5640a7[_0x513a('0x112')]();if(_0x569821[_0x513a('0xef')](_0x486bb0=>_0x486bb0['containsRange'](_0x269733,!0x0))){const _0x580ba4=this[_0x513a('0x101')][_0x513a('0xf9')](_0x513a('0xf'),_0x833361,_0x513a('0x47'));return this[_0x513a('0x60')](()=>_0x580ba4([_0x269733],null,_0x2cd8eb)),null;}}else{const _0x4bc7fb=_0x269733[_0x513a('0x62')](_0x5640a7[_0x513a('0x65')]());null!==_0x4bc7fb&&_0x5640a7[_0x513a('0x2f')]([_0x4bc7fb],null,_0x2cd8eb);}}if(_0x269733[_0x513a('0x67')](),_0x269733[_0x513a('0xa0')]||'$graveyard'==_0x269733['root'][_0x513a('0x109')])return null;let _0x3f9370=null,_0x498bc4=_0x269733[_0x513a('0xd1')],_0x362bf9=_0x269733['end'];for(const {suggestion:_0x3e6ccd,meta:_0x208422}of this[_0x513a('0x12e')](_0x269733,_0x513a('0xf')))if(_0x208422[_0x513a('0xc0')]){if(_0x3e6ccd[_0x513a('0x82')]&&this[_0x513a('0x57')]){let _0x4c7765=!0x0;for(const _0x53df53 of _0x3e6ccd[_0x513a('0x50')]()){if(_0x53df53[_0x513a('0xd')](_0x269733,!0x0))return _0x3e6ccd;_0x269733[_0x513a('0xd')](_0x53df53)||(_0x4c7765=!0x1);}_0x4c7765&&_0x3e6ccd[_0x513a('0x112')]();}else{const _0x1d53f7=_0x3e6ccd[_0x513a('0x65')]();if(_0x1d53f7['containsRange'](_0x269733,!0x0)){if(!this['_mergeNestedSuggestions']&&_0x208422['containsRangeInObject'])continue;return _0x3e6ccd;}_0x498bc4=_0x498bc4[_0x513a('0xb1')](_0x1d53f7[_0x513a('0xd1')])?_0x498bc4:_0x1d53f7[_0x513a('0xd1')],_0x362bf9=_0x362bf9['isAfter'](_0x1d53f7[_0x513a('0x61')])?_0x362bf9:_0x1d53f7[_0x513a('0x61')],_0x3f9370?_0x1d53f7['start'][_0x513a('0xb1')](_0x3f9370[_0x513a('0x65')]()['start'])?(_0x3f9370[_0x513a('0x8c')](),_0x3f9370=_0x3e6ccd):_0x3e6ccd['removeMarkers']():_0x3f9370=_0x3e6ccd;}}if(_0x3f9370)return this['_setSuggestionRange'](_0x3f9370,this['_model'][_0x513a('0xc3')](_0x498bc4,_0x362bf9)),_0x3f9370;{const _0x2908bf=_0x1396d2(),_0x23bd85=this[_0x513a('0x37')][_0x513a('0xc3')](_0x498bc4,_0x362bf9),_0x3ad2bd=_0x364bca['id'],_0x56e79c=_0x833361?_0x513a('0x114')+_0x833361:_0x513a('0xf'),_0x5b6c3d=this[_0x513a('0x3b')]({'id':_0x2908bf,'type':_0x56e79c,'createdAt':new Date(),'authorId':_0x3ad2bd,'attributes':_0x2cd8eb});return this['_addSuggestionMarker'](_0x56e79c,_0x2908bf,_0x3ad2bd,_0x23bd85),_0x5b6c3d;}}['markMultiRangeDeletion'](_0xcbc2ef,_0x31c58f=_0x513a('0x13d'),_0x1ed710={}){const _0xc3a3f5=this[_0x513a('0x69')][_0x513a('0xa')][_0x513a('0xda')]('Users')['me'],_0x172cd3=_0xcbc2ef['map'](_0x2840d6=>new _0x73d110(_0x2840d6[_0x513a('0xd1')],_0x2840d6[_0x513a('0x61')])),_0x34209f=new Set();for(const _0x1c3364 of _0x172cd3)for(const {suggestion:_0x9be754,meta:_0x5a8dc7}of this[_0x513a('0x12e')](_0x1c3364,_0x513a('0x9e')))_0x5a8dc7[_0x513a('0xc0')]&&!_0x5a8dc7[_0x513a('0xa1')]&&_0x34209f[_0x513a('0x8d')](_0x9be754);for(const _0x28f2c8 of _0x34209f)if(_0x28f2c8[_0x513a('0x82')]){const _0x309570=_0x28f2c8['getRanges']();(!_0x28f2c8[_0x513a('0xc4')]||!_0x28f2c8[_0x513a('0xc4')][_0x513a('0xd3')])&&(_0x309570[_0x513a('0x2a')](_0x38c97a=>_0x172cd3[_0x513a('0xef')](_0x11d40d=>_0x11d40d[_0x513a('0xd')](_0x38c97a,!0x0)))&&_0x28f2c8[_0x513a('0x112')]());if(_0x172cd3[_0x513a('0x2a')](_0x4c52e1=>_0x309570[_0x513a('0xef')](_0x551814=>_0x551814[_0x513a('0xd')](_0x4c52e1,!0x0)))){const _0xbba0a1=this[_0x513a('0x101')][_0x513a('0xf9')](_0x513a('0xf'),_0x31c58f,_0x513a('0x47'));return this['forceDefaultExecution'](()=>_0xbba0a1(_0xcbc2ef,null,_0x1ed710)),null;}}else{const _0x313b4a=_0x28f2c8[_0x513a('0x65')]();_0x172cd3['some'](_0x2021d3=>_0x2021d3[_0x513a('0xd')](_0x313b4a,!0x0))&&_0x28f2c8[_0x513a('0x112')]();if(_0x172cd3[_0x513a('0x2a')](_0x703e8a=>_0x313b4a[_0x513a('0xd')](_0x703e8a,!0x0))){const _0x345e87=this[_0x513a('0x101')][_0x513a('0xf9')](_0x513a('0xf'),_0x31c58f,'accept');return this[_0x513a('0x60')](()=>_0x345e87(_0x172cd3,null,_0x1ed710)),null;}}const _0xc94c7e=this[_0x513a('0x101')][_0x513a('0xf9')]('deletion',_0x31c58f,_0x513a('0x5c'));let _0x34f462=null;for(const _0x5be294 of this[_0x513a('0x5d')]())if(_0x5be294[_0x513a('0x129')]['id']==_0xc3a3f5['id']&&_0x5be294['isInContent']&&_0x513a('0xf')==_0x5be294[_0x513a('0x111')]&&_0x5be294[_0x513a('0x98')]==_0x31c58f&&(_0xc94c7e(_0x5be294[_0x513a('0x50')](),_0x172cd3)||_0xc94c7e(_0x172cd3,_0x5be294['getRanges']()))){if(_0x34f462){if(_0x5be294[_0x513a('0x34')]&&_0x5be294[_0x513a('0x34')]['length'])continue;for(const _0x300b63 of _0x5be294[_0x513a('0x50')]())_0x34f462['isIntersectingWithRange'](_0x300b63)||_0x34f462[_0x513a('0xf2')](_0x300b63);_0x5be294[_0x513a('0x8c')]();}else{_0x34f462=_0x5be294;for(const _0x6cb9d6 of _0x172cd3)_0x5be294['isIntersectingWithRange'](_0x6cb9d6)||_0x5be294[_0x513a('0xf2')](_0x6cb9d6);}}if(_0x34f462)return _0x34f462;_0x34209f['clear']();for(const _0x55ee89 of _0x172cd3)for(const {suggestion:_0x3c655d,meta:_0x2ca7b5}of this[_0x513a('0x12e')](_0x55ee89,_0x513a('0xf')))_0x2ca7b5[_0x513a('0xc0')]&&_0x34209f['add'](_0x3c655d);for(const _0x18bd90 of _0x34209f){const _0x1ec7f1=_0x18bd90[_0x513a('0x50')]();if(!_0x1ed710||!_0x1ed710[_0x513a('0xd3')]){if(_0x172cd3['every'](_0x4c5141=>_0x1ec7f1[_0x513a('0xef')](_0x37af01=>_0x37af01['containsRange'](_0x4c5141,!0x0))))return _0x18bd90;}(!_0x18bd90[_0x513a('0xc4')]||!_0x18bd90[_0x513a('0xc4')][_0x513a('0xd3')])&&(_0x1ec7f1[_0x513a('0x2a')](_0x53cecb=>_0x172cd3[_0x513a('0xef')](_0x27176d=>_0x27176d['containsRange'](_0x53cecb,!0x0)))&&_0x18bd90[_0x513a('0x112')]());}const _0x56db9c=_0x1396d2(),_0x7f55fa=_0xc3a3f5['id'],_0xc8b270=_0x513a('0x114')+_0x31c58f,_0x1e7bf9=this[_0x513a('0x3b')]({'id':_0x56db9c,'type':_0xc8b270,'createdAt':new Date(),'authorId':_0x7f55fa,'attributes':_0x1ed710});for(const _0x220a38 of _0x172cd3)_0x220a38['detach'](),_0x220a38[_0x513a('0xa0')]||_0x513a('0x103')==_0x220a38[_0x513a('0xd7')][_0x513a('0x109')]||this[_0x513a('0xdc')](_0xc8b270,_0x56db9c,_0x7f55fa,_0x220a38,_0xf7935d[_0x513a('0x2c')]());return _0x1e7bf9;}[_0x513a('0x96')](_0x5f2aaa,_0x129e27){const _0x2bc777=_0x5f2aaa[_0x513a('0x84')]();this[_0x513a('0x37')][_0x513a('0xeb')](_0x1915d9=>{_0x1915d9['updateMarker'](_0x2bc777,{'range':_0x129e27});});}[_0x513a('0x30')](_0x194bc2){const _0x42164a=_0x194bc2['id'],_0xd17edb=this[_0x513a('0x69')][_0x513a('0x9f')][_0x513a('0xda')](_0x513a('0x18'));this[_0x513a('0xe2')][_0x513a('0xbd')](_0x42164a)||this[_0x513a('0xe2')][_0x513a('0x9b')]({'channelId':_0xd17edb,'threadId':_0x42164a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1cfa9c=this[_0x513a('0xe2')]['getCommentThread'](_0x42164a);_0x1cfa9c['unbind'](_0x513a('0x4d')),_0x1cfa9c['isRemovable']=!0x1,_0x194bc2[_0x513a('0x34')]=_0x1cfa9c;}[_0x513a('0xa4')](_0x2d382b,_0x46b4c9,_0x101c40,_0x395847){if(_0x2d382b[_0x513a('0x111')]!=_0x46b4c9||_0x2d382b[_0x513a('0x98')]!=_0x101c40||_0x2d382b[_0x513a('0xb0')]['id']!=_0x395847)throw this[_0x513a('0x69')][_0x513a('0x12f')](_0x513a('0x44')),new _0x2e8f93('track-changes-suggestion-data-mismatch',this);}[_0x513a('0x17')](_0x1d15b6,_0x29ed72){const _0x1413f8=_0x1d15b6[_0x513a('0x65')]();if(_0x29ed72[_0x513a('0x42')](_0x1413f8))_0x1d15b6['removeMarkers']();else{if(_0x1413f8[_0x513a('0xd')](_0x29ed72)){const _0x3abdbc=this[_0x513a('0x37')][_0x513a('0x118')](_0x29ed72[_0x513a('0xd1')][_0x513a('0xe0')],_0x513a('0x61'));this['_setSuggestionRange'](_0x1d15b6,this['_model'][_0x513a('0xc3')](_0x1413f8[_0x513a('0xd1')],_0x3abdbc));const _0x58b1b4=_0x1396d2(),_0x407669=_0x1d15b6[_0x513a('0xb0')]['id'],_0x5a5b67=_0x1d15b6[_0x513a('0x111')]+':'+_0x1d15b6[_0x513a('0x98')];this[_0x513a('0x3b')]({'id':_0x58b1b4,'type':_0x5a5b67,'createdAt':new Date(),'authorId':_0x407669,'data':_0x1d15b6[_0x513a('0xa5')],'attributes':_0x1d15b6[_0x513a('0xc4')]});const _0x44ab0a=this[_0x513a('0x37')][_0x513a('0x118')](_0x29ed72['end'][_0x513a('0x71')],_0x513a('0x6a')),_0x4ba32b=this[_0x513a('0x37')][_0x513a('0xc3')](_0x44ab0a,_0x1413f8[_0x513a('0x61')]);this[_0x513a('0xdc')](_0x5a5b67,_0x58b1b4,_0x407669,_0x4ba32b);}else{if(_0x1413f8[_0x513a('0x20')](_0x29ed72[_0x513a('0xd1')])){const _0x2d81d5=this[_0x513a('0x37')][_0x513a('0x118')](_0x29ed72['start']['nodeBefore'],'end');this[_0x513a('0x96')](_0x1d15b6,this[_0x513a('0x37')]['createRange'](_0x1413f8[_0x513a('0xd1')],_0x2d81d5));}else{const _0x4eccd5=this[_0x513a('0x37')][_0x513a('0x118')](_0x29ed72[_0x513a('0x61')][_0x513a('0x71')],_0x513a('0x6a'));this[_0x513a('0x96')](_0x1d15b6,this[_0x513a('0x37')][_0x513a('0xc3')](_0x4eccd5,_0x1413f8[_0x513a('0x61')]));}}}}[_0x513a('0x36')](_0x49beb3){for(const {suggestion:_0x5ebc53,meta:_0x3b1824}of this[_0x513a('0x12e')](_0x49beb3,'insertion')){if(!_0x3b1824['isOwn'])continue;const _0x57761a=_0x5ebc53[_0x513a('0x50')]();for(const _0x30b434 of _0x57761a)if(!_0x49beb3[_0x513a('0xe8')](_0x30b434)[_0x513a('0xcd')])return!0x0;}return!0x1;}[_0x513a('0x66')](_0x10a66c){const _0x499d6d=this['editor'][_0x513a('0xa')][_0x513a('0xda')](_0x513a('0x38'))[_0x513a('0x127')](_0x10a66c);if(!_0x499d6d)throw new _0x2e8f93(_0x513a('0x119'),this);return _0x499d6d;}['_getExternalAuthor'](_0x2426e3){const _0x2b2483=this[_0x513a('0x69')][_0x513a('0xa')]['get'](_0x513a('0x38')),_0x4f76b7=_0x3419ee(_0x513a('0x55')+_0x2426e3),_0x225621=_0x2b2483[_0x513a('0x127')](_0x4f76b7);return _0x225621||_0x2b2483[_0x513a('0x10c')]({'id':_0x4f76b7,'name':_0x2426e3});}[_0x513a('0x8b')](_0x430080,_0xcc63d5,_0x95f013,_0x415bcf,_0x101a11){const _0x4de7a9=this['_getAuthorFromId'](_0x415bcf),_0x45798c=this[_0x513a('0x101')]['buildSuggestion'](_0x430080,_0xcc63d5,_0x95f013,_0x4de7a9,_0x101a11,_0x49459e=>this[_0x513a('0xd8')](_0x95f013,{'attributes':_0x49459e}));return this[_0x513a('0xe5')](_0x45798c,_0x513a('0x47'),()=>{this[_0x513a('0xd8')](_0x95f013,{'state':_0x513a('0x27')});},{'priority':_0x513a('0x91')}),this[_0x513a('0xe5')](_0x45798c,_0x513a('0x112'),()=>{this['_updateSuggestionData'](_0x95f013,{'state':_0x513a('0x11b')});},{'priority':_0x513a('0x91')}),this[_0x513a('0x7c')][_0x513a('0xc8')](_0x95f013,_0x45798c),this['_suggestionState']['set'](_0x45798c,'notReady'),_0x45798c;}[_0x513a('0x19')](_0x1c8789){const _0xc1b8b7=_0x1c8789['split'](':');return{'group':_0xc1b8b7[0x0],'type':_0xc1b8b7[0x1],'subType':_0xc1b8b7['length']>=0x5?_0xc1b8b7[0x2]:null,'id':_0xc1b8b7[_0x513a('0xcd')]<0x5?_0xc1b8b7[0x2]:_0xc1b8b7[0x3],'authorId':_0xc1b8b7[_0x513a('0xcd')]<0x5?_0xc1b8b7[0x3]:_0xc1b8b7[0x4],'markerCount':0x6==_0xc1b8b7[_0x513a('0xcd')]?_0xc1b8b7[0x5]:null};}['_breakSuggestionMarker'](_0x42be65,_0xa6b93f,_0x414879){const _0x2786fe=_0x42be65[_0x513a('0x65')](),_0x42a928=_0x2786fe[_0x513a('0xd1')],_0x1c07e6=_0x2786fe['end'];this[_0x513a('0x96')](_0x42be65,this[_0x513a('0x37')][_0x513a('0xc3')](_0x42a928,_0xa6b93f));const _0x3da7c6=_0x1396d2(),_0x5b9dc9=_0x42be65[_0x513a('0xb0')]['id'],_0x869595=_0x42be65[_0x513a('0x111')]+(_0x42be65[_0x513a('0x98')]?':'+_0x42be65['subType']:'');this[_0x513a('0x3b')]({'id':_0x3da7c6,'type':_0x869595,'createdAt':new Date(),'authorId':_0x5b9dc9,'originalSuggestionId':_0x42be65['id'],'attributes':_0x42be65['attributes'],'data':_0x42be65[_0x513a('0xa5')]}),_0x513a('0x94')==_0x42be65[_0x513a('0x111')]&&(_0x414879=this[_0x513a('0x37')][_0x513a('0x16')](_0x414879[_0x513a('0x71')])),this[_0x513a('0xdc')](_0x869595,_0x3da7c6,_0x5b9dc9,this[_0x513a('0x37')][_0x513a('0xc3')](_0x414879,_0x1c07e6));}['_findSuggestions'](_0x3ddc2f,_0x2875e7=null){const _0x186db6=[],_0x49fb16=this[_0x513a('0x37')]['schema'],_0x418ba7=this['editor']['plugins'][_0x513a('0xda')](_0x513a('0x38'))['me'];for(const _0x38e417 of this[_0x513a('0x5d')]())if(_0x38e417[_0x513a('0x40')]&&(!_0x2875e7||_0x38e417[_0x513a('0x111')]==_0x2875e7))for(const _0x58ed6b of _0x38e417[_0x513a('0x50')]()){const _0x2bc50e=_0x3ddc2f[_0x513a('0xd1')][_0x513a('0x42')](_0x58ed6b[_0x513a('0x61')])||_0x3ddc2f[_0x513a('0x61')][_0x513a('0x42')](_0x58ed6b['start']);if(_0x2bc50e||_0x3ddc2f[_0x513a('0x62')](_0x58ed6b)){const _0x4589a4=_0x3ddc2f[_0x513a('0xd')](_0x58ed6b)&&Bt(_0x49fb16,_0x58ed6b['start'],_0x3ddc2f),_0x2ce3b2=_0x58ed6b['containsRange'](_0x3ddc2f)&&Bt(_0x49fb16,_0x3ddc2f['start'],_0x58ed6b);_0x186db6[_0x513a('0xce')]({'suggestion':_0x38e417,'meta':{'isOwn':_0x418ba7==_0x38e417['author'],'isNextTo':_0x2bc50e,'isInsideObject':_0x4589a4,'containsRangeInObject':_0x2ce3b2}});break;}}return _0x186db6;}[_0x513a('0xdc')](_0x4385c3,_0x5a15e3,_0xecb93f,_0x399950,_0x595147){this[_0x513a('0x37')][_0x513a('0xeb')](_0x157d46=>{let _0x510366=_0x513a('0x70')+_0x4385c3+':'+_0x5a15e3+':'+_0xecb93f;_0x595147&&(_0x510366=_0x510366+':'+_0x595147),_0x157d46[_0x513a('0x86')](_0x510366,{'range':_0x399950,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x513a('0xd4')](_0x444496){const _0x9b9897=_0x444496['previous'],_0xaff026=_0x444496[_0x513a('0x2d')];_0x444496[_0x513a('0xd5')]=null,null!=_0x9b9897&&(_0x9b9897[_0x513a('0x2d')]=null),_0x444496[_0x513a('0x2d')]=null,null!=_0xaff026&&(_0xaff026[_0x513a('0xd5')]=null),'ready'==this[_0x513a('0xbe')][_0x513a('0xda')](_0x444496)&&(this[_0x513a('0xbe')][_0x513a('0xc8')](_0x444496,_0x513a('0x4b')),this[_0x513a('0xe3')]('suggestionUnloaded',_0x444496,_0x9b9897,_0xaff026));}[_0x513a('0x3b')](_0x2ff6a0){const _0x391994=_0x2ff6a0['id'],_0x2d6c9e=this[_0x513a('0x6d')](_0x2ff6a0);if(this['_adapter']&&this[_0x513a('0x12a')][_0x513a('0x8a')]){const _0x4e3534=this[_0x513a('0x69')][_0x513a('0xa')][_0x513a('0xda')](_0x513a('0x121')),_0x126235=_0x2d6c9e['hasComments'],_0x110e7f=_0x2d6c9e['subType']?_0x2d6c9e[_0x513a('0x111')]+':'+_0x2d6c9e[_0x513a('0x98')]:_0x2d6c9e[_0x513a('0x111')],_0x1cfcc8=this[_0x513a('0x69')]['locale'],_0x43f602=_0x4e3534[_0x513a('0x8d')](_0x4b72e5(_0x1cfcc8,_0x513a('0xb4'))),_0x104601={'id':_0x391994,'type':_0x110e7f,'hasComments':_0x126235,'data':_0x2ff6a0[_0x513a('0xa5')]||null,'originalSuggestionId':_0x2ff6a0[_0x513a('0x10f')]||null,'attributes':_0x2d6c9e['attributes']};this[_0x513a('0x12a')]['addSuggestion'](_0x104601)['then'](_0x2bc993=>{_0x2d6c9e[_0x513a('0xed')]=!0x0,_0x4e3534['remove'](_0x43f602),_0x2bc993&&_0x2bc993['createdAt']&&(this['_suggestions'][_0x513a('0xda')](_0x391994)[_0x513a('0x100')]=_0x2bc993['createdAt']);})[_0x513a('0x72')](_0x486b33=>{throw _0xfa39c1(_0x513a('0x108')),this[_0x513a('0x69')]['model'][_0x513a('0x13a')]({'isUndoable':!0x1},()=>{_0x2d6c9e['discard']();}),_0x2d6c9e['stopListening'](),this[_0x513a('0x7c')][_0x513a('0x5b')](_0x2d6c9e['id']),this['_suggestionState'][_0x513a('0x5b')](_0x2d6c9e),_0x486b33;});}return _0x2d6c9e;}['_updateSuggestionData'](_0x1ad1fb,_0xb7bcc8){const _0x26e5b3=this['editor'][_0x513a('0xa')][_0x513a('0xda')](_0x513a('0x121')),_0x1fff80=this[_0x513a('0xa3')](_0x1ad1fb);if(this['_adapter']&&this['_adapter'][_0x513a('0xc5')]){if(_0x1fff80[_0x513a('0xed')]){const _0x39dec1=_0x26e5b3['add'](_0x4b72e5(this['editor'][_0x513a('0x32')],'PENDING_ACTION_SUGGESTION'));this['_adapter'][_0x513a('0xc5')](_0x1ad1fb,_0xb7bcc8)[_0x513a('0xe1')](()=>{_0x26e5b3[_0x513a('0x9c')](_0x39dec1);});}else _0x1fff80['on'](_0x513a('0x8e'),()=>{this['_updateSuggestionData'](_0x1ad1fb,_0xb7bcc8);});}}['_getSuggestionData'](_0x7311ab){if(!this['_adapter']||!this[_0x513a('0x12a')][_0x513a('0xa3')])throw new _0x2e8f93(_0x513a('0x9'),this);return this[_0x513a('0x12a')][_0x513a('0xa3')](_0x7311ab);}[_0x513a('0x77')](_0x1bae97){const {id:_0x3bdb03,type:_0x1cd048,subType:_0x2fb8ab,authorId:_0x251c6b}=this[_0x513a('0x19')](_0x1bae97),_0x41e4e1=this['_suggestions'][_0x513a('0xda')](_0x3bdb03)||this[_0x513a('0x8b')](_0x1cd048,_0x2fb8ab,_0x3bdb03,_0x251c6b,{});switch(this[_0x513a('0xa4')](_0x41e4e1,_0x1cd048,_0x2fb8ab,_0x251c6b),this[_0x513a('0xbe')][_0x513a('0xda')](_0x41e4e1)){case _0x513a('0xd2'):this[_0x513a('0xc7')](_0x3bdb03)[_0x513a('0xe1')](_0x17c901=>{let _0x22986e=Promise[_0x513a('0xc2')]();_0x17c901[_0x513a('0x6c')]&&(_0x22986e=this[_0x513a('0xe2')][_0x513a('0xde')]({'channelId':this[_0x513a('0x69')]['config'][_0x513a('0xda')]('collaboration.channelId'),'threadId':_0x3bdb03})),_0x22986e[_0x513a('0xe1')](()=>{this['addSuggestionData'](_0x17c901)[_0x513a('0xed')]=!0x0;});}),this[_0x513a('0xbe')]['set'](_0x41e4e1,_0x513a('0xad'));break;case _0x513a('0x4b'):this[_0x513a('0xd8')](_0x3bdb03,{'state':_0x513a('0xcf')});case'dataReady':this[_0x513a('0xbe')][_0x513a('0xc8')](_0x41e4e1,_0x513a('0x7f')),this['fire']('suggestionLoaded',_0x41e4e1);break;case _0x513a('0x7f'):this[_0x513a('0xe3')](_0x513a('0x12c'),_0x41e4e1);}return _0x41e4e1[_0x513a('0x76')](_0x1bae97),_0x41e4e1;}[_0x513a('0x137')](_0x3f9be4){const _0x9a4ccb=Array['from'](_0x3f9be4)[_0x513a('0x7d')](_0x3d5bb9=>!_0x3d5bb9[_0x513a('0x82')]),_0x505d3a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49c633=>!_0x49c633[_0x513a('0x82')]),_0x572474=_0x505d3a['filter'](_0x2d7de2=>!_0x3f9be4[_0x513a('0x134')](_0x2d7de2)),_0x2ff422=new Map(_0x505d3a[_0x513a('0x2b')](_0x314398=>[_0x314398,this['_suggestionFactory']['getSuggestionCallback'](_0x314398[_0x513a('0x111')],_0x314398['subType'],_0x513a('0x7a'))])),_0x242ec1=new Map(_0x505d3a['map'](_0x8d626b=>[_0x8d626b,_0x8d626b['getFirstRange']()])),_0x18d8e7=new Set(),_0x2de097=new Set();for(let _0x2950c5=0x0;_0x2950c5<_0x9a4ccb['length'];_0x2950c5++)_0x243dff(_0x9a4ccb[_0x2950c5],_0x9a4ccb,_0x2950c5+0x1);for(let _0x323c7e=0x0;_0x323c7e<_0x9a4ccb[_0x513a('0xcd')];_0x323c7e++)_0x243dff(_0x9a4ccb[_0x323c7e],_0x572474,0x0);for(let _0x5cddd7=0x0;_0x5cddd7<_0x9a4ccb[_0x513a('0xcd')];_0x5cddd7++){const _0x5614d4=_0x9a4ccb[_0x5cddd7];!_0x2de097['has'](_0x5614d4)&&_0x5614d4[_0x513a('0xd5')]&&(_0x5614d4[_0x513a('0xd5')]['next']===_0x5614d4&&(_0x5614d4[_0x513a('0xd5')]['next']=null),_0x5614d4['previous']=null),!_0x18d8e7['has'](_0x5614d4)&&_0x5614d4[_0x513a('0x2d')]&&(_0x5614d4['next']['previous']===_0x5614d4&&(_0x5614d4[_0x513a('0x2d')][_0x513a('0xd5')]=null),_0x5614d4[_0x513a('0x2d')]=null);}function _0x243dff(_0x2c9aaa,_0x565c2c,_0x3f47c2){for(let _0x44d956=_0x3f47c2;_0x44d956<_0x565c2c['length'];_0x44d956++){const _0x267a98=_0xee76fb(_0x2c9aaa,_0x565c2c[_0x44d956]);_0x267a98&&(_0x267a98[0x0][_0x513a('0x2d')]=_0x267a98[0x1],_0x267a98[0x1][_0x513a('0xd5')]=_0x267a98[0x0],_0x18d8e7[_0x513a('0x8d')](_0x267a98[0x0]),_0x2de097['add'](_0x267a98[0x1]));}}function _0xee76fb(_0xa916d,_0x3f8f5a){if(_0xa916d[_0x513a('0x129')]['id']!==_0x3f8f5a[_0x513a('0x129')]['id'])return null;const _0x4267a6=_0x2ff422[_0x513a('0xda')](_0xa916d)(_0xa916d,_0x3f8f5a,_0x242ec1['get'](_0xa916d),_0x242ec1[_0x513a('0xda')](_0x3f8f5a));if(!_0x4267a6)return null;return _0x2ff422[_0x513a('0xda')](_0x3f8f5a)(_0xa916d,_0x3f8f5a,_0x242ec1[_0x513a('0xda')](_0xa916d),_0x242ec1['get'](_0x3f8f5a))?_0x4267a6[0x1]['commentThread']&&_0x4267a6[0x1][_0x513a('0x34')][_0x513a('0xcd')]?null:_0x4267a6:null;}}['_joinWithAdjacentSuggestions'](_0x1a25c1){const _0x4c362b=Array[_0x513a('0x59')](_0x1a25c1),_0x538e0e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1290dd=_0x538e0e[_0x513a('0x7d')](_0x465b7a=>!_0x1a25c1[_0x513a('0x134')](_0x465b7a)),_0x4297b6=new Map(_0x4c362b[_0x513a('0x2b')](_0x13f37b=>[_0x13f37b,this['_suggestionFactory'][_0x513a('0xf9')](_0x13f37b[_0x513a('0x111')],_0x13f37b[_0x513a('0x98')],_0x513a('0x5c'))])),_0x384d2a=new Map(_0x538e0e[_0x513a('0x2b')](_0x13302b=>[_0x13302b,_0x13302b[_0x513a('0x50')]()]));for(let _0x34560a=0x0;_0x34560a<_0x4c362b[_0x513a('0xcd')];_0x34560a++){if(_0x541e07(this,_0x4c362b[_0x34560a],_0x4c362b,_0x34560a+0x1))return!0x0;}for(let _0x11de13=0x0;_0x11de13<_0x4c362b[_0x513a('0xcd')];_0x11de13++){if(_0x541e07(this,_0x4c362b[_0x11de13],_0x1290dd,0x0))return!0x0;}return!0x1;function _0x541e07(_0x9403b5,_0x2291fe,_0x3e8ad1,_0x302fc6){for(let _0x131593=_0x302fc6;_0x131593<_0x3e8ad1['length'];_0x131593++){const _0x51dd39=_0x3e8ad1[_0x131593];if(_0x51dd39[_0x513a('0x111')]!==_0x2291fe['type']||_0x51dd39['author']['id']!==_0x2291fe['author']['id']||_0x51dd39['subType']!==_0x2291fe[_0x513a('0x98')])continue;const _0x33af8d=_0x4297b6[_0x513a('0xda')](_0x2291fe),_0x25884e=_0x384d2a['get'](_0x2291fe),_0x2aa2b8=_0x384d2a[_0x513a('0xda')](_0x51dd39),_0x53f41c=_0x2291fe[_0x513a('0x34')]&&_0x2291fe[_0x513a('0x34')][_0x513a('0xcd')],_0x3cd437=_0x51dd39[_0x513a('0x34')]&&_0x51dd39['commentThread']['length'];if(!_0x53f41c&&_0x33af8d(_0x2aa2b8,_0x25884e))return _0x9403b5[_0x513a('0x53')](_0x51dd39,_0x2291fe),_0x384d2a[_0x513a('0x5b')](_0x2291fe),!0x0;if(!_0x3cd437&&_0x33af8d(_0x25884e,_0x2aa2b8))return _0x9403b5[_0x513a('0x53')](_0x2291fe,_0x51dd39),_0x384d2a[_0x513a('0x5b')](_0x51dd39),!0x0;}return!0x1;}}['_joinSuggestions'](_0x31be00,_0x542d43){if(_0x31be00[_0x513a('0x82')])for(const _0x351a36 of _0x542d43[_0x513a('0x50')]())_0x31be00[_0x513a('0xf2')](_0x351a36);else{const _0x22fab8=_0x542d43[_0x513a('0x65')]()[_0x513a('0x61')];this['_setSuggestionRange'](_0x31be00,this[_0x513a('0x37')]['createRange'](_0x31be00['getFirstRange']()[_0x513a('0xd1')],_0x22fab8));}_0x542d43[_0x513a('0x8c')]();}}class Dt{constructor(_0x3c13d6){this[_0x513a('0x123')]=_0x3c13d6,this[_0x513a('0x37')]=_0x3c13d6[_0x513a('0x12d')],this[_0x513a('0xea')]=new Map(),this[_0x513a('0x1f')]=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x24d60f,_0x178e57,_0x4a5d72,_0x15a087,_0x1da560,_0x4581ba){return new _0xf7935d(this[_0x513a('0x37')],{'type':_0x24d60f,'subType':_0x178e57,'id':_0x4a5d72,'author':_0x15a087,'creator':_0x15a087,'attributes':_0x1da560,'onAttributesChange':_0x4581ba,'onAccept':(..._0xaebf18)=>this['getSuggestionCallback'](_0x24d60f,_0x178e57,_0x513a('0x47'))(..._0xaebf18),'onDiscard':(..._0x58dcc3)=>this[_0x513a('0xf9')](_0x24d60f,_0x178e57,_0x513a('0x112'))(..._0x58dcc3)});}['registerCustomCallback'](_0x406b98,_0x6409d2,_0x2102f4,_0x55af21){const _0x1dfbb0=_0x406b98+':'+_0x6409d2+':'+_0x2102f4;this[_0x513a('0xea')]['set'](_0x1dfbb0,_0x55af21);}[_0x513a('0xf9')](_0x5dc550,_0x3bb631,_0x1e6769){const _0xa56f5d=_0x5dc550+':'+_0x3bb631+':'+_0x1e6769;return this[_0x513a('0xea')][_0x513a('0xda')](_0xa56f5d)||this[_0x513a('0x1f')][_0x513a('0xda')](_0x5dc550+':'+_0x1e6769);}[_0x513a('0x104')](){const _0x14142a=()=>{},_0x30bae0=_0x48720c=>{_0x48720c[_0x513a('0x46')]((_0x1add17,_0x44d30a)=>_0x1add17[_0x513a('0xd1')][_0x513a('0xb1')](_0x44d30a[_0x513a('0xd1')])?0x1:-0x1),this[_0x513a('0x37')][_0x513a('0xeb')](_0x14dde8=>{for(const _0xd6011 of _0x48720c){let _0x30f127;_0x30f127=_0xd6011[_0x513a('0x61')][_0x513a('0x41')]&&_0xd6011[_0x513a('0x61')][_0x513a('0x71')]==_0xd6011[_0x513a('0xd1')][_0x513a('0x113')]?_0x14dde8[_0x513a('0x35')](_0xd6011['start'][_0x513a('0x113')],'on'):_0x14dde8[_0x513a('0x35')](_0xd6011),this[_0x513a('0x37')][_0x513a('0x1d')](_0x30f127,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x18b5de=(_0xc50afa,_0x1253de)=>{this[_0x513a('0x37')][_0x513a('0xeb')](_0x3ad653=>{const {commandName:_0x2791f8,commandParams:_0x30bafb=[]}=_0x1253de,_0x1e73a6=_0xc50afa[_0x513a('0x2b')](_0x3dc03f=>(_t(_0x3dc03f)&&(_0x3dc03f=this[_0x513a('0x37')][_0x513a('0xc3')](_0x3dc03f[_0x513a('0x61')])),_0x3dc03f))[_0x513a('0x7d')](_0x374459=>_0x513a('0x103')!==_0x374459[_0x513a('0xd7')][_0x513a('0x109')]);if(_0x1e73a6[_0x513a('0xcd')]<0x1)return;const _0x285b00=Array[_0x513a('0x59')](this[_0x513a('0x37')]['document'][_0x513a('0x3a')][_0x513a('0x50')]())[_0x513a('0x2b')](_0x20dc4d=>_0x73d110[_0x513a('0xcb')](_0x20dc4d));_0x3ad653[_0x513a('0xf4')](_0x1e73a6);for(const _0x5e144c of this['_editor']['commands'][_0x513a('0x85')]())_0x5e144c[_0x513a('0x97')]();_0x30bafb[_0x513a('0xce')]({'forceDefaultExecution':!0x0}),this[_0x513a('0x123')][_0x513a('0x21')](_0x2791f8,..._0x30bafb);const _0x2030e2=_0x285b00[_0x513a('0x7d')](_0x1cc4cd=>_0x513a('0x103')!=_0x1cc4cd['root'][_0x513a('0x109')]);_0x2030e2[_0x513a('0xcd')]>0x0&&_0x3ad653[_0x513a('0xf4')](_0x2030e2);for(const _0x514349 of _0x285b00)_0x514349['detach']();});},_0x14a970=(_0x53a514,_0x15de06)=>0x1==_0x53a514[_0x513a('0xcd')]&&0x1==_0x15de06['length']&&_0x53a514[0x0][_0x513a('0x61')][_0x513a('0x42')](_0x15de06[0x0][_0x513a('0xd1')]),_0x9771f5=(_0x89a8f8,_0x1057c2,_0x3af83a,_0x5dec51)=>xt(_0x89a8f8,_0x1057c2,_0x3af83a,_0x5dec51,this[_0x513a('0x37')])?[_0x89a8f8,_0x1057c2]:xt(_0x1057c2,_0x89a8f8,_0x5dec51,_0x3af83a,this['_model'])?[_0x1057c2,_0x89a8f8]:null;this[_0x513a('0x1f')][_0x513a('0xc8')](_0x513a('0x6b'),_0x14142a),this[_0x513a('0x1f')]['set']('insertion:discard',_0x30bae0),this[_0x513a('0x1f')][_0x513a('0xc8')](_0x513a('0x11d'),_0x14a970),this[_0x513a('0x1f')][_0x513a('0xc8')](_0x513a('0x3d'),_0x9771f5),this[_0x513a('0x1f')][_0x513a('0xc8')]('deletion:accept',_0x30bae0),this[_0x513a('0x1f')][_0x513a('0xc8')](_0x513a('0x11'),_0x14142a),this[_0x513a('0x1f')][_0x513a('0xc8')]('deletion:join',_0x14a970),this['_defaultCallbacks'][_0x513a('0xc8')](_0x513a('0x122'),_0x9771f5),this['_defaultCallbacks'][_0x513a('0xc8')]('formatInline:accept',_0x18b5de),this[_0x513a('0x1f')][_0x513a('0xc8')](_0x513a('0x10a'),_0x14142a),this[_0x513a('0x1f')]['set'](_0x513a('0xb2'),_0x14a970),this['_defaultCallbacks'][_0x513a('0xc8')](_0x513a('0x135'),_0x14142a),this['_defaultCallbacks'][_0x513a('0xc8')](_0x513a('0x130'),_0x18b5de),this[_0x513a('0x1f')][_0x513a('0xc8')](_0x513a('0x9d'),_0x14142a),this[_0x513a('0x1f')]['set'](_0x513a('0xc1'),_0x14a970),this[_0x513a('0x1f')][_0x513a('0xc8')](_0x513a('0x93'),_0x14142a);}}function Bt(_0xe47fec,_0x595eaf,_0x6789ab){for(const _0xd59668 of _0x595eaf[_0x513a('0x71')][_0x513a('0x88')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xd59668[_0x513a('0xd7')]==_0xd59668)return!0x1;if(!_0x6789ab[_0x513a('0xba')](_0xd59668))return!0x1;if(_0xe47fec['isObject'](_0xd59668)||_0xe47fec['isLimit'](_0xd59668))return!0x0;}return!0x1;}function _t(_0x1ebb48){return _0x1ebb48[_0x513a('0x61')][_0x513a('0x71')]==_0x1ebb48[_0x513a('0xd1')]['nodeAfter']&&_0x1ebb48[_0x513a('0x61')][_0x513a('0x58')];}function Mt(_0x51fac6,_0x474c1c,_0x19d34c,_0x5ae685){const _0x89ee03=_0x4ddc5a=>!_0x4ddc5a[_0x513a('0x3f')]['is'](_0x513a('0x2'))&&!_0x5ae685[_0x513a('0xb9')](_0x4ddc5a['item']),_0x1cd69a=_0x51fac6['start'][_0x513a('0x107')](_0x89ee03),_0x140f20=_0x51fac6['end'][_0x513a('0x107')](_0x89ee03,{'direction':'backward'});return(!_0x51fac6['start'][_0x513a('0x42')](_0x1cd69a)||!_0x51fac6[_0x513a('0x61')]['isEqual'](_0x140f20))&&(_0x1cd69a[_0x513a('0xb1')](_0x140f20)?_0x19d34c[_0x513a('0x8f')](_0x474c1c,{'range':_0x19d34c[_0x513a('0xc3')](_0x1cd69a,_0x140f20)}):_0x19d34c[_0x513a('0x4')](_0x474c1c),!0x0);}function $t(_0xa94b95){return _0x3419ee(_0xa94b95);}function Nt(_0x37f21a){const _0x4401e2=_0x37f21a[_0x513a('0xd1')][_0x513a('0x113')];return _0x4401e2&&_0x4401e2['is']('element');}function Rt(_0x256cef,_0x3710f8){const _0x4a7869=_0x3710f8[_0x513a('0x131')][_0x513a('0xb9')](_0x256cef)||_0x3710f8[_0x513a('0x131')][_0x513a('0xc9')](_0x256cef);return _0x3710f8['createRange'](_0x3710f8['createPositionAt'](_0x256cef,'before'),_0x4a7869?_0x3710f8[_0x513a('0xbb')](_0x256cef):_0x3710f8['createPositionAt'](_0x256cef,_0x513a('0x61')));}function xt(_0x2ff637,_0x32c605,_0x3acb25,_0x313cea,_0x117a86){if(_0x3acb25[_0x513a('0x61')][_0x513a('0x42')](_0x313cea[_0x513a('0xd1')]))return!0x0;if(_0x2ff637[_0x513a('0x111')]!=_0x32c605[_0x513a('0x111')])return!0x1;if(!_0x3acb25[_0x513a('0x61')]['isTouching'](_0x313cea[_0x513a('0xd1')]))return!0x1;const _0x4af94c=_0x117a86[_0x513a('0xc3')](_0x3acb25[_0x513a('0x61')],_0x313cea[_0x513a('0xd1')])[_0x513a('0x5f')]();for(const _0x14cbb1 of _0x4af94c)if(['elementStart',_0x513a('0x68')][_0x513a('0xf5')](_0x14cbb1[_0x513a('0x111')])&&_0x117a86[_0x513a('0x131')][_0x513a('0x0')](_0x14cbb1[_0x513a('0x3f')]))return!0x1;return!0x0;}
|