@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230826.0 → 0.0.0-nightly-20230827.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-20230826.0",
3
+ "version": "0.0.0-nightly-20230827.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-20230826.0",
43
- "ckeditor5-collaboration": "0.0.0-nightly-20230826.0",
42
+ "ckeditor5": "0.0.0-nightly-20230827.0",
43
+ "ckeditor5-collaboration": "0.0.0-nightly-20230827.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 _0x4edf=['getAllAdjacentSuggestions','updateSuggestion','CommentsRepository','_findSuggestions','markerToHighlight','backward','markMultiRangeBlockFormat','set','getAncestors','group','formatInline:','Users','insertion:join','fire','commands','next','conversion','insertion:discard','nodeBefore','mapper','dataReady','insertion:accept','change:_saved','split','subType','containerElement','data-suggestion','trackChanges.trackFormatChanges','removeMarkers','activeMarkers','getRanges','acceptAllSuggestions','stop','chain','for','isInContent','_model','_refreshSuggestionsChain','suggestionChanged','getMarkers','getShiftedBy','unbind','getItems','never','creator','insertion','deletion:','consume','ready','isTouching','document','_splitMarkerName','_enabledCommands','start','track-changes-user-not-found','stopListening','_getSuggestionData','formatInline','addUser','buildSuggestion','getMultiRangeId','catch','default','name','containsRangeInObject','documentSelection','_isForcedDefaultExecutionBlock','markMultiRangeDeletion','value','applyOperation','markerReady','getWalker','join','schema','markerToData','getIntersection','getSuggestionCallback','markerName','PENDING_ACTION_SUGGESTION','moveTargetPosition','adapter','deletion:discard','range','removeClass','newRange','sort','containsRange','upcast','has','addClass','_saved','options','elementToElement','_createSuggestion','editing','addMarker:suggestion','TrackChangesEditing','markDeletion','deleteContent','formatBlock:chain','multipleBlocks','addMarker','formatInline:join','high','type','_customCallbacks','always','deletion:join','createdAt','isNextTo','includes','change:data','isMultiRange','size','deletion','low','ck-suggestion-marker-','addMarker:suggestion:formatBlock','createRange','author','getFirstRange','rootName','@external','_suggestionState','dataToMarker','formatBlock:accept','root','_descriptionFactory','PendingActions','commentThread','formatBlock:discard','addSuggestionData','getChangedMarkers','isOwn','createElement','isSelectable','originalSuggestionId','suggestion:','markMultiRangeInsertion','getUser','substr','getNearestSelectionRange','track-changes-adapter-missing-getsuggestion','accept','toViewElement','reconvertMarker','unbindElementFromMarkerName','createRangeIn','config','insertion:','insert','init','isLimit','removeMarker','removeComment','notReady','selection','isBlock','enableCommand','splice','dataDowncast','locale','track-changes-suggestion-not-found','createPositionBefore','normal','discard','data','$graveyard','add','previous','item','highest','discardSelectedSuggestions','external:','fromRange','differ','skipNestingCheck','createSelection','nodeAfter','isIntersectingWithRange','acceptSelectedSuggestions','after','model','_removeSuggestion','trackChangesCommand','change','_editor','isExternal','listenTo','getChanges','_rangeIsInLocalUserInsertion','getLastMatchingPosition','containsPosition','values','isBefore','_joinSuggestions','editingDowncast','registerPostFixer','delete','some','then','targetPosition','isEqual','_checkSuggestionCorrectness','filter','addComment','editor','markInsertion','isInsideObject','removeAttribute','_getExternalAuthor','createPositionAt','get','formatGroupId','isCollapsed','addMarkerName','ck-suggestion-marker--active','position','suggestionUnloaded','_registerDefaultCallbacks','_adapter','execute','formatBlock','deletion:accept','_addThreadToSuggestion','ck-suggestion-marker-formatBlock','plugins','fetchCommentThread','enqueueChange','suggestion','isRemovable','before','end','multi','head','bindElementToMarker','detach','isLocal','_breakSuggestionMarker','_mergeNestedSuggestions','return','showSuggestionHighlights','getDifference','parent','isUndo','hasCommentThread','define','track-changes-adapter-already-set','forceDefaultExecution','requires','_suggestions','addCommentThread','_setSuggestionRange','_joinWithAdjacentSuggestions','_updateSuggestionData','updateMarker','collaboration.channelId','getSuggestions','_suggestionFactory','toJSON','acceptSuggestion','formatBlock:join','from','push','discardSuggestion','update:suggestion','_cutOutSuggestionMarker','setSelection','addRange','getCustomProperty','forward','formatBlock:','_trackFormatChanges','pluginName','getFirstMarker','isAtEnd','authoredAt','_getAuthorFromId','trackChanges','_commentsRepository','getSuggestion','getAttribute','marker-count','ck-suggestion-marker','trackChanges.mergeNestedSuggestions','_defaultCallbacks','registerCustomCallback','hasComments','markBlockFormat','_handleNewSuggestionMarker','_setSuggestionData','markers','writer','hasSuggestion','suggestionLoaded','move','isAfter','getRange','howMany','track-changes-suggestion-data-mismatch','setAttribute','element','attributes','formatInline:chain','map','getCommentThread','length','consumable','_addSuggestionMarker','removed','elementStart','insertContent','commandName','addHighlight','every','addSuggestion','open','splitPosition','remove','isObject'];(function(_0x2c4b48,_0x4edf1e){const _0x90f5f8=function(_0x2d4ffc){while(--_0x2d4ffc){_0x2c4b48['push'](_0x2c4b48['shift']());}};_0x90f5f8(++_0x4edf1e);}(_0x4edf,0x11e));const _0x90f5=function(_0x2c4b48,_0x4edf1e){_0x2c4b48=_0x2c4b48-0x0;let _0x90f5f8=_0x4edf[_0x2c4b48];return _0x90f5f8;};import{Plugin as _0x18e92b,PendingActions as _0x30f394}from'ckeditor5/src/core';import{LiveRange as _0x1bb84e}from'ckeditor5/src/engine';import{CKEditorError as _0x2719f8,uid as _0x4c2669,priorities as _0x4da110,logWarning as _0x3cb7c3}from'ckeditor5/src/utils';import{toWidget as _0x51d751}from'ckeditor5/src/widget';import{Users as _0x235fe0,hashObject as _0x1db92d}from'ckeditor5-collaboration/src/collaboration-core';import _0xf624f4 from'./commands/trackchangescommand';import _0x47ff04 from'./commands/acceptsuggestioncommand';import _0xf961ee from'./commands/discardsuggestioncommand';import _0x45267e from'./commands/executeonallsuggestionscommand';import _0x4fe056 from'./commands/executeonselectedsuggestionscommand';import _0x1600fa from'./suggestion';import _0x563414 from'./suggestiondescriptionfactory';import _0x2e39f4 from'./integrations/alignment';import _0x315ff0 from'./integrations/basicstyles';import _0x3f04b1 from'./integrations/blockquote';import _0x3c302f from'./integrations/ckbox';import _0x5d34f6 from'./integrations/codeblock';import _0x591e22 from'./integrations/comments';import _0x5d28f1 from'./integrations/deletecommand';import _0x112e62 from'./integrations/documentlist';import _0x1a5bdd from'./integrations/entercommand';import _0x3482c9 from'./integrations/findandreplace';import _0x3ee5e0 from'./integrations/font';import _0x1f8d6d from'./integrations/formatpainter';import _0x58b8bc from'./integrations/heading';import _0xcda1b7 from'./integrations/highlight';import _0x4ed8a1 from'./integrations/horizontalline';import _0x2bd5e7 from'./integrations/htmlembed';import _0x3131a1 from'./integrations/image';import _0x43d3af from'./integrations/imagereplace';import _0x2a0583 from'./integrations/importword';import _0x3b3886 from'./integrations/indent';import _0x7b92dd from'./integrations/inputcommand';import _0x389f9f from'./integrations/link';import _0x7ee307 from'./integrations/list';import _0x3bceea from'./integrations/listproperties';import _0x579247 from'./integrations/mediaembed';import _0x418491 from'./integrations/mention';import _0x4d0c0f from'./integrations/pagebreak';import _0x271eb2 from'./integrations/paragraph';import _0x5993f1 from'./integrations/removeformat';import _0xfe14dd from'./integrations/restrictededitingmode';import _0x5099bf from'./integrations/shiftentercommand';import _0x10886c from'./integrations/standardeditingmode';import _0x3793c3 from'./integrations/style';import _0x165ae0 from'./integrations/table';import _0x171622 from'./integrations/tablemergesplit';import _0x227338 from'./integrations/tableheadings';import _0x1aeb8c from'./integrations/tableclipboard';import _0x5c8715 from'./integrations/tablecolumnresize';import _0x295988 from'./integrations/template';import _0x4ee9cc from'./integrations/tableofcontents';import _0x1ac9d1 from'./integrations/title';import _0x307f67 from'./integrations/undo';import{getTranslation as _0x3485ff}from'./utils/common-translations';import _0x15a84a from'./integrations/tablecaption';import _0x297711 from'./integrations/documentlistproperties';import _0x1239e7 from'./integrations/tableproperties';export default class p extends _0x18e92b{static get[_0x90f5('0x11b')](){return[_0x90f5('0x24'),_0x235fe0,_0x30f394,_0x2e39f4,_0x315ff0,_0x3f04b1,_0x3c302f,_0x5d34f6,_0x591e22,_0x5d28f1,_0x112e62,_0x297711,_0x1a5bdd,_0x3482c9,_0x3ee5e0,_0x1f8d6d,_0x58b8bc,_0xcda1b7,_0x4ed8a1,_0x2bd5e7,_0x3131a1,_0x43d3af,_0x2a0583,_0x3b3886,_0x7b92dd,_0x389f9f,_0x7ee307,_0x3bceea,_0x579247,_0x418491,_0x4d0c0f,_0x271eb2,_0x5993f1,_0xfe14dd,_0x5099bf,_0x10886c,_0x3793c3,_0x165ae0,_0x171622,_0x227338,_0x15a84a,_0x1aeb8c,_0x5c8715,_0x4ee9cc,_0x1239e7,_0x295988,_0x1ac9d1,_0x307f67];}static get[_0x90f5('0x133')](){return _0x90f5('0x82');}constructor(_0x34f824){function _0x16c92f(_0x347d15){return _0x347d15[_0x90f5('0x12')](_0x45ee3c=>String['fromCharCode'](_0x45ee3c))[_0x90f5('0x6a')]('');}super(_0x34f824),this['set'](_0x90f5('0x3f'),[]),this['on']('change:activeMarkers',(_0x7bc162,_0x30e4ec,_0x29799d,_0x11ef02)=>{this[_0x90f5('0x46')]['change'](()=>{for(const _0x557961 of[..._0x11ef02,..._0x29799d])this['_model'][_0x90f5('0x5')]['has'](_0x557961)&&_0x34f824[_0x90f5('0x80')][_0x90f5('0xb3')](_0x557961);});}),this[_0x90f5('0xa1')]=new _0x563414(this[_0x90f5('0xf0')][_0x90f5('0xd8')][_0x90f5('0x6b')],this[_0x90f5('0xf0')][_0x90f5('0xc3')]),this['_adapter']=null,this[_0x90f5('0x124')]=new Dt(this[_0x90f5('0xf0')]),this['_suggestions']=new Map(),this[_0x90f5('0x139')]=_0x34f824[_0x90f5('0x104')][_0x90f5('0xf6')](_0x90f5('0x24')),this[_0x90f5('0x56')]=new Set(),this[_0x90f5('0x46')]=this[_0x90f5('0xf0')][_0x90f5('0xd8')],this['_suggestionState']=new WeakMap(),this[_0x90f5('0x64')]=!0x1,_0x34f824['config']['define'](_0x90f5('0x3d'),_0x90f5('0x60')),this[_0x90f5('0x132')]=_0x34f824[_0x90f5('0xb6')][_0x90f5('0xf6')]('trackChanges.trackFormatChanges'),_0x34f824[_0x90f5('0xb6')][_0x90f5('0x118')](_0x90f5('0x13e'),!0x0),this[_0x90f5('0x111')]=_0x34f824['config'][_0x90f5('0xf6')](_0x90f5('0x13e')),this['trackChangesCommand']=new _0xf624f4(_0x34f824,this[_0x90f5('0x56')]),this[_0x16c92f([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x16c92f([0x34,0x30,0x34,0x36,0x31,0x36,0x35,0x34]);}[_0x90f5('0xb9')](){const _0x5be522=this[_0x90f5('0xf0')];_0x5be522[_0x90f5('0x32')][_0x90f5('0x44')](_0x90f5('0xe6'))[_0x90f5('0x26')]({'model':'suggestion','view':_0x4f4340=>{const {id:_0x279b2b,type:_0x42310b}=this[_0x90f5('0x55')](_0x4f4340[_0x90f5('0x6f')]),_0x1b81da=[_0x90f5('0x13d'),_0x90f5('0x96')+_0x42310b];let _0x582035=0xbb8;return this[_0x90f5('0x3f')][_0x90f5('0x90')](_0x4f4340['markerName'])&&(_0x1b81da['push'](_0x90f5('0xfa')),_0x582035=0xbc2),_0x90f5('0x94')==_0x42310b&&(_0x582035+=0x5),{'classes':_0x1b81da,'attributes':{'data-suggestion':_0x279b2b},'priority':_0x582035};}}),_0x5be522['conversion'][_0x90f5('0x44')](_0x90f5('0xc2'))[_0x90f5('0xca')](_0x4fa6fd=>{_0x4fa6fd['on'](_0x90f5('0x81'),(_0x52d5d3,_0x55fa08,_0x4f1109)=>{if(!_0x4f1109[_0x90f5('0x7d')]['showSuggestionHighlights'])return;const _0x3221f9=_0x55fa08[_0x90f5('0xcc')];if(!_0x3221f9)return;const _0x1b4c69=_0x4f1109[_0x90f5('0x35')][_0x90f5('0xb2')](_0x3221f9);_0x5be522[_0x90f5('0xd8')][_0x90f5('0x6b')][_0x90f5('0x21')](_0x3221f9)&&_0x1b4c69&&!_0x1b4c69['getCustomProperty']('widget')&&_0x1b4c69['is'](_0x90f5('0x3b'))&&_0x51d751(_0x1b4c69,_0x4f1109[_0x90f5('0x6')]);},{'priority':'high'});}),_0x5be522[_0x90f5('0x32')][_0x90f5('0x44')](_0x90f5('0xc2'))['markerToHighlight']({'model':_0x90f5('0x107'),'view':(_0x306905,_0x10f510)=>{if(!_0x10f510[_0x90f5('0x7d')][_0x90f5('0x113')])return null;const {type:_0x29a26f}=this['_splitMarkerName'](_0x306905['markerName']);return{'classes':[_0x90f5('0x13d'),_0x90f5('0x96')+_0x29a26f],'priority':0xbb8};}});const _0x1b24a5=({showActiveMarkers:_0x216e75=!0x0}={})=>(_0x37928b,_0x477b24,_0x36f076)=>{if(!_0x477b24[_0x90f5('0xcc')])return;if(_0x477b24[_0x90f5('0xcc')]['is'](_0x90f5('0xbe')))return void _0x36f076['consumable'][_0x90f5('0x51')](_0x477b24['item'],_0x37928b[_0x90f5('0x61')]);const _0x4b55f8=_0x36f076[_0x90f5('0x35')][_0x90f5('0xb2')](_0x477b24[_0x90f5('0xcc')]);if(!(_0x477b24['item']['is']('element')&&_0x5be522[_0x90f5('0xd8')][_0x90f5('0x6b')]['isBlock'](_0x477b24['item'])&&!_0x4b55f8['getCustomProperty']('addHighlight')))return;const {id:_0x560642}=this[_0x90f5('0x55')](_0x477b24[_0x90f5('0x6f')]);_0x36f076[_0x90f5('0x6')][_0x90f5('0x7b')](['ck-suggestion-marker',_0x90f5('0x103')],_0x4b55f8),_0x36f076[_0x90f5('0x6')][_0x90f5('0xe')](_0x90f5('0x3c'),_0x560642,_0x4b55f8),_0x36f076['mapper'][_0x90f5('0x10d')](_0x4b55f8,_0x477b24[_0x90f5('0x6f')]),_0x216e75&&(this[_0x90f5('0x3f')][_0x90f5('0x90')](_0x477b24['markerName'])?_0x36f076[_0x90f5('0x6')][_0x90f5('0x7b')](_0x90f5('0xfa'),_0x4b55f8):_0x36f076[_0x90f5('0x6')]['removeClass'](_0x90f5('0xfa'),_0x4b55f8));for(const _0x4eb4ec of _0x5be522[_0x90f5('0xd8')][_0x90f5('0xb5')](_0x477b24['item'])[_0x90f5('0x4c')]())_0x36f076[_0x90f5('0x15')]['consume'](_0x4eb4ec,_0x37928b[_0x90f5('0x61')]);_0x36f076[_0x90f5('0x15')][_0x90f5('0x51')](_0x477b24['item'],_0x37928b[_0x90f5('0x61')]);};_0x5be522[_0x90f5('0x32')][_0x90f5('0x44')](_0x90f5('0xc2'))['add'](_0x34ce7d=>{_0x34ce7d['on'](_0x90f5('0x97'),(_0x4702d,_0x91e004,_0x13f5be)=>{_0x13f5be[_0x90f5('0x7d')][_0x90f5('0x113')]&&_0x1b24a5({'showActiveMarkers':!0x1})(_0x4702d,_0x91e004,_0x13f5be);},{'priority':_0x90f5('0xcd')});}),_0x5be522[_0x90f5('0x32')][_0x90f5('0x44')]('dataDowncast')[_0x90f5('0x6c')]({'model':_0x90f5('0x107'),'view':(_0x27456f,_0x443813)=>_0x443813[_0x90f5('0x7d')][_0x90f5('0x113')]?null:{'group':'suggestion','name':_0x27456f[_0x90f5('0xae')](0xb)}}),_0x5be522['conversion'][_0x90f5('0x44')](_0x90f5('0x79'))[_0x90f5('0x7e')]({'view':{'name':_0x90f5('0x107'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x324bb0,{writer:_0x165376})=>{let _0x3c5a15=_0x90f5('0xab')+_0x324bb0[_0x90f5('0x13b')]('suggestion-type')+':'+_0x324bb0['getAttribute']('id');return _0x324bb0[_0x90f5('0x13b')](_0x90f5('0x13c'))&&(_0x3c5a15+=':'+_0x324bb0[_0x90f5('0x13b')](_0x90f5('0x13c'))),_0x165376[_0x90f5('0xa8')]('$marker',{'data-name':_0x3c5a15});}}),_0x5be522[_0x90f5('0x32')][_0x90f5('0x44')](_0x90f5('0x79'))[_0x90f5('0x9e')]({'view':'suggestion'}),_0x5be522[_0x90f5('0x32')][_0x90f5('0x44')](_0x90f5('0xe6'))[_0x90f5('0xca')](_0x8fa72d=>{_0x8fa72d['on'](_0x90f5('0x97'),_0x1b24a5(),{'priority':'high'});}),_0x5be522[_0x90f5('0x32')]['for'](_0x90f5('0xe6'))[_0x90f5('0xca')](_0x16c551=>{_0x16c551['on']('removeMarker:suggestion:formatBlock',(_0x19b4d7,_0x4fd612,_0x31a0e7)=>{const _0xd7114c=_0x31a0e7[_0x90f5('0x35')]['markerNameToElements'](_0x4fd612[_0x90f5('0x6f')]);if(_0xd7114c)for(const _0x398562 of _0xd7114c)_0x398562[_0x90f5('0x12f')](_0x90f5('0x1b'))||(_0x31a0e7[_0x90f5('0x6')][_0x90f5('0x75')]([_0x90f5('0x13d'),_0x90f5('0x103'),_0x90f5('0xfa')],_0x398562),_0x31a0e7['writer'][_0x90f5('0xf3')]('data-suggestion',_0x398562),_0x31a0e7['mapper'][_0x90f5('0xb4')](_0x398562,_0x4fd612[_0x90f5('0x6f')]));},{'priority':'high'});}),_0x5be522['model'][_0x90f5('0x54')]['registerPostFixer'](_0x599f38=>{let _0x20ec5f=!0x1;const _0x4a343e=Array[_0x90f5('0x128')](_0x5be522[_0x90f5('0xd8')][_0x90f5('0x54')][_0x90f5('0xd1')][_0x90f5('0xa6')]()),_0x253364=new Set();for(const {name:_0x26c958,data:_0x27ca40}of _0x4a343e){const {group:_0x2a04fb,type:_0x2068ad,id:_0x21a7bf}=this[_0x90f5('0x55')](_0x26c958);if(_0x90f5('0x107')!==_0x2a04fb)continue;const _0x2abd4f=this[_0x90f5('0x11c')]['get'](_0x21a7bf);if(null!=_0x27ca40['newRange']){'formatInline'==_0x2068ad&&(_0x20ec5f=_0x20ec5f||Mt(_0x27ca40[_0x90f5('0x76')],_0x26c958,_0x599f38,_0x5be522[_0x90f5('0xd8')][_0x90f5('0x6b')]));if(_0x27ca40['newRange'][_0x90f5('0xf8')]||'$graveyard'==_0x27ca40['newRange'][_0x90f5('0xa0')][_0x90f5('0x9b')]||_0x90f5('0x100')==_0x2068ad&&!Nt(_0x27ca40['newRange'])||_0x90f5('0x94')==_0x2068ad&&!(!_t(_0x22a875=_0x27ca40[_0x90f5('0x76')])&&!function(_0x57c300){return _0x57c300[_0x90f5('0x57')]['parent']==_0x57c300['end']['nodeBefore']&&_0x57c300[_0x90f5('0x57')][_0x90f5('0x135')];}(_0x22a875)))_0x599f38[_0x90f5('0xbb')](_0x26c958),_0x20ec5f=!0x0;else{if(!_0x2abd4f||!_0x2abd4f['isInContent'])continue;_0x253364[_0x90f5('0xca')](_0x2abd4f);}}}var _0x22a875;return _0x253364['size']>0x0&&(_0x20ec5f=!!this[_0x90f5('0x11f')](_0x253364)||_0x20ec5f),_0x20ec5f;}),_0x5be522[_0x90f5('0xd8')][_0x90f5('0x54')][_0x90f5('0xe7')](_0x1ae68a=>{let _0x5144a3=!0x1;for(const _0x43e549 of _0x5be522[_0x90f5('0xd8')][_0x90f5('0x54')][_0x90f5('0xd1')][_0x90f5('0xdf')]()){if(_0x90f5('0xb8')!=_0x43e549[_0x90f5('0x8a')])continue;const _0x4c957f=_0x43e549[_0x90f5('0xfb')]['getShiftedBy'](_0x43e549[_0x90f5('0x14')]);if(_0x4c957f[_0x90f5('0x135')])for(const _0x47c513 of this['_suggestions'][_0x90f5('0xe3')]()){if(_0x47c513[_0x90f5('0x92')]||!_0x47c513['isInContent'])continue;if(_0x90f5('0x100')!=_0x47c513['type'])continue;const _0x31bdca=_0x47c513[_0x90f5('0x9a')]();if(_0x31bdca[_0x90f5('0x57')][_0x90f5('0x115')]!=_0x31bdca[_0x90f5('0x10a')][_0x90f5('0x115')]&&_0x31bdca[_0x90f5('0x10a')][_0x90f5('0xec')](_0x43e549[_0x90f5('0xfb')])){const _0x18c0a2=_0x5be522[_0x90f5('0xd8')][_0x90f5('0x98')](_0x31bdca[_0x90f5('0x57')],_0x4c957f);_0x1ae68a[_0x90f5('0x121')](_0x47c513[_0x90f5('0x134')](),{'range':_0x18c0a2}),_0x5144a3=!0x0;}}}return _0x5144a3;}),_0x5be522[_0x90f5('0xd8')][_0x90f5('0x5')]['on'](_0x90f5('0x12b'),(_0x1e64fd,_0x111058,_0x3e6fcd)=>{if(null==_0x3e6fcd){const {id:_0x586fe2}=this[_0x90f5('0x55')](_0x111058['name']),_0x1a1647=this['_suggestions']['get'](_0x586fe2);_0x1a1647&&_0x1a1647['addMarkerName'](_0x111058[_0x90f5('0x61')]);}}),_0x5be522[_0x90f5('0xd8')][_0x90f5('0x54')]['on'](_0x90f5('0x91'),()=>{const _0x2938a3=Array[_0x90f5('0x128')](_0x5be522[_0x90f5('0xd8')][_0x90f5('0x54')][_0x90f5('0xd1')]['getChangedMarkers']())[_0x90f5('0xee')](_0x3dcb87=>_0x90f5('0x107')===this['_splitMarkerName'](_0x3dcb87['name'])[_0x90f5('0x2b')]);if(0x0===_0x2938a3['length'])return;_0x2938a3[_0x90f5('0x77')]((_0x5d5335,_0x3ab1a5)=>{const _0x141fb1=_0x5d5335[_0x90f5('0xc8')]['oldRange'],_0x22dedd=_0x3ab1a5[_0x90f5('0xc8')]['oldRange'];return null===_0x141fb1&&null===_0x22dedd?0x0:null===_0x141fb1&&null!==_0x22dedd?-0x1:null!==_0x141fb1&&null===_0x22dedd?0x1:_0x141fb1['start']['isBefore'](_0x22dedd[_0x90f5('0x57')])?-0x1:0x1;});const _0x1ae664=new Set(),_0x5dd479=new Set();for(const {name:_0x1dba5f,data:_0x15af71}of _0x2938a3){const {id:_0x26fa96}=this[_0x90f5('0x55')](_0x1dba5f);if(null===_0x15af71['oldRange']){const _0x3c637d=this[_0x90f5('0x3')](_0x1dba5f);_0x5dd479[_0x90f5('0xca')](_0x3c637d);}else{const _0x504a3=this[_0x90f5('0x11c')][_0x90f5('0xf6')](_0x26fa96);null!==_0x15af71[_0x90f5('0x76')]||_0x504a3[_0x90f5('0x45')]?(_0x1ae664[_0x90f5('0xca')](_0x504a3[_0x90f5('0x10c')]),_0x5dd479[_0x90f5('0xca')](_0x504a3)):this[_0x90f5('0xd9')](_0x504a3);}}_0x5dd479[_0x90f5('0x93')]>0x0&&this[_0x90f5('0x47')](_0x5dd479);for(const _0x360ec3 of _0x1ae664)this[_0x90f5('0x2f')](_0x90f5('0x48'),_0x360ec3);}),_0x5be522[_0x90f5('0xd8')]['on'](_0x90f5('0x67'),(_0xadd0a8,_0x529552)=>{const _0x2c6cc4=_0x529552[0x0];if(!this[_0x90f5('0x11c')][_0x90f5('0x93')])return;if(!_0x2c6cc4['isDocumentOperation'])return;if(_0x2c6cc4['batch'][_0x90f5('0x116')]||!_0x2c6cc4['batch'][_0x90f5('0x10f')])return;let _0x5646f5,_0x330874;switch(_0x2c6cc4['type']){case'insert':_0x5646f5=_0x5be522['model'][_0x90f5('0xf5')](_0x2c6cc4['position']),_0x330874=_0x5646f5[_0x90f5('0x4a')](_0x2c6cc4[_0x90f5('0xc')]);break;case _0x90f5('0x39'):_0x5646f5=_0x5be522[_0x90f5('0xd8')]['createPositionAt'](_0x2c6cc4[_0x90f5('0x1f')]),_0x330874=_0x5be522[_0x90f5('0xd8')][_0x90f5('0xf5')](_0x2c6cc4[_0x90f5('0x71')]);break;case _0x90f5('0x9'):_0x5646f5=_0x5be522[_0x90f5('0xd8')][_0x90f5('0xf5')](_0x2c6cc4[_0x90f5('0xeb')]),_0x330874=_0x5646f5[_0x90f5('0x4a')](_0x2c6cc4['howMany']);break;default:return;}const _0x280a94=_0x5be522['model']['createRange'](_0x5646f5,_0x330874);_0x5be522[_0x90f5('0xd8')][_0x90f5('0xdb')](()=>{for(const {suggestion:_0x29ffc1,meta:_0x215278}of this['_findSuggestions'](_0x280a94)){if(_0x29ffc1[_0x90f5('0x92')])continue;if(_0x90f5('0x5b')==_0x29ffc1['type'])continue;const _0x37db7e=_0x29ffc1[_0x90f5('0xc8')]&&_0x29ffc1[_0x90f5('0xc8')][_0x90f5('0x86')];(_0x90f5('0x100')!=_0x29ffc1[_0x90f5('0x8a')]||'split'==_0x2c6cc4['type']&&!_0x37db7e)&&(_0x215278[_0x90f5('0x62')]||_0x90f5('0x4f')==_0x29ffc1[_0x90f5('0x8a')]&&_0x215278[_0x90f5('0xa7')]||_0x29ffc1[_0x90f5('0x9a')]()['containsRange'](_0x280a94)&&this['_breakSuggestionMarker'](_0x29ffc1,_0x5646f5,_0x330874));}});},{'priority':'lowest'}),_0x5be522[_0x90f5('0xd8')]['on'](_0x90f5('0x84'),(_0x57b6cc,_0xb2ecd8)=>{const _0x2e902b=_0xb2ecd8[0x0],_0x4d3d41=_0xb2ecd8[0x1];if(_0x4d3d41&&_0x4d3d41['forceDefaultExecution'])return;if(this[_0x90f5('0x64')])return;if(!this[_0x90f5('0xda')][_0x90f5('0x66')])return;if(_0x2e902b[_0x90f5('0xf8')])return;const _0x1939c7=_0x5be522[_0x90f5('0xd8')][_0x90f5('0x6b')],{start:_0x1a7d4e,end:_0x4b1884}=_0x2e902b[_0x90f5('0x9a')](),_0x18f983=_0x1a7d4e['nodeAfter']&&_0x1939c7[_0x90f5('0xba')](_0x1a7d4e['nodeAfter'])?null:_0x1939c7[_0x90f5('0xaf')](_0x1a7d4e,_0x90f5('0x130')),_0x153d0c=_0x4b1884[_0x90f5('0x34')]&&_0x1939c7[_0x90f5('0xba')](_0x4b1884[_0x90f5('0x34')])?null:_0x1939c7[_0x90f5('0xaf')](_0x4b1884,_0x90f5('0x27')),_0x54b76b=_0x5be522[_0x90f5('0xd8')][_0x90f5('0x98')](_0x18f983?_0x18f983[_0x90f5('0x57')]:_0x1a7d4e,_0x153d0c?_0x153d0c[_0x90f5('0x10a')]:_0x4b1884);_0x5be522[_0x90f5('0xd8')]['change'](_0x348766=>{this[_0x90f5('0x83')](_0x54b76b);const _0x18ac25=_0x5be522[_0x90f5('0xd8')][_0x90f5('0x6b')][_0x90f5('0xaf')](_0x54b76b['start']);_0x2e902b['is'](_0x90f5('0x63'))?_0x348766[_0x90f5('0x12d')](_0x18ac25):_0x2e902b['setTo'](_0x18ac25);}),_0x57b6cc[_0x90f5('0x42')]();},{'priority':_0x4da110[_0x90f5('0xc6')]+0xa}),_0x5be522['model']['on']('insertContent',(_0x2410e8,_0x44b1e8)=>{const _0x3356cb=_0x44b1e8[_0x44b1e8[_0x90f5('0x14')]-0x1];_0x3356cb&&_0x3356cb[_0x90f5('0x11a')]||this['_isForcedDefaultExecutionBlock']||this[_0x90f5('0xda')][_0x90f5('0x66')]&&(_0x5be522[_0x90f5('0xd8')][_0x90f5('0xdb')](()=>{let _0x5edcc8=_0x5be522[_0x90f5('0xd8')][_0x90f5('0x19')](_0x44b1e8[0x0],_0x44b1e8[0x1],_0x44b1e8[0x2],{'forceDefaultExecution':!0x0});if(!_0x5edcc8)return;_0x2410e8[_0x90f5('0x112')]=_0x5edcc8['clone']();const _0x27e122=_0x5edcc8['end'][_0x90f5('0x34')],_0x5dcba7=_0x5be522[_0x90f5('0xd8')][_0x90f5('0x6b')];_0x27e122&&_0x5dcba7[_0x90f5('0xbf')](_0x27e122)&&!_0x5dcba7['isObject'](_0x27e122)&&(_0x5edcc8=_0x5be522['model'][_0x90f5('0x98')](_0x5edcc8[_0x90f5('0x57')],_0x5be522[_0x90f5('0xd8')][_0x90f5('0xf5')](_0x27e122,_0x90f5('0x10a')))),this[_0x90f5('0xf1')](_0x5edcc8);}),_0x2410e8[_0x90f5('0x42')]());},{'priority':'high'}),this[_0x90f5('0xf0')][_0x90f5('0x30')][_0x90f5('0xca')](_0x90f5('0x138'),this[_0x90f5('0xda')]),this[_0x90f5('0xc0')](_0x90f5('0x138'));const _0x41a626=new _0x47ff04(_0x5be522,this[_0x90f5('0x11c')]);_0x5be522[_0x90f5('0x30')][_0x90f5('0xca')](_0x90f5('0x126'),_0x41a626),this[_0x90f5('0xc0')]('acceptSuggestion');const _0x3531aa=new _0xf961ee(_0x5be522,this[_0x90f5('0x11c')]);_0x5be522[_0x90f5('0x30')][_0x90f5('0xca')]('discardSuggestion',_0x3531aa),this[_0x90f5('0xc0')](_0x90f5('0x12a')),_0x5be522[_0x90f5('0x30')][_0x90f5('0xca')]('acceptAllSuggestions',new _0x45267e(_0x5be522,_0x41a626,this[_0x90f5('0x11c')])),this[_0x90f5('0xc0')](_0x90f5('0x41')),_0x5be522[_0x90f5('0x30')][_0x90f5('0xca')]('discardAllSuggestions',new _0x45267e(_0x5be522,_0x3531aa,this[_0x90f5('0x11c')])),this[_0x90f5('0xc0')]('discardAllSuggestions'),_0x5be522[_0x90f5('0x30')][_0x90f5('0xca')](_0x90f5('0xd6'),new _0x4fe056(_0x5be522,_0x41a626,this[_0x90f5('0x11c')])),this[_0x90f5('0xc0')](_0x90f5('0xd6')),_0x5be522[_0x90f5('0x30')][_0x90f5('0xca')](_0x90f5('0xce'),new _0x4fe056(_0x5be522,_0x3531aa,this[_0x90f5('0x11c')])),this[_0x90f5('0xc0')]('discardSelectedSuggestions');const _0x2b568f=_0x5be522[_0x90f5('0x104')][_0x90f5('0xf6')](_0x90f5('0x24'));this['listenTo'](_0x2b568f,_0x90f5('0xef'),(_0x2f3040,{threadId:_0x4cb645})=>{const _0x31678e=this[_0x90f5('0x11c')][_0x90f5('0xf6')](_0x4cb645);_0x31678e&&_0x31678e[_0x90f5('0xa3')]&&0x1===_0x31678e[_0x90f5('0xa3')]['length']&&this[_0x90f5('0x120')](_0x4cb645,{'hasComments':!0x0});},{'priority':_0x90f5('0x95')}),this[_0x90f5('0xde')](_0x2b568f,_0x90f5('0xbc'),(_0x1e9856,{threadId:_0x1f88f0})=>{const _0x2904bb=this[_0x90f5('0x11c')][_0x90f5('0xf6')](_0x1f88f0);_0x2904bb&&_0x2904bb[_0x90f5('0xa3')]&&!_0x2904bb[_0x90f5('0xa3')][_0x90f5('0x14')]&&this[_0x90f5('0x120')](_0x1f88f0,{'hasComments':!0x1});},{'priority':_0x90f5('0x95')});}set[_0x90f5('0x72')](_0x3a6d08){if(this['_adapter'])throw new _0x2719f8(_0x90f5('0x119'),this);this['_adapter']=_0x3a6d08;}get[_0x90f5('0x72')](){return this[_0x90f5('0xfe')];}['getSuggestions']({skipNotAttached:_0x24a556=!0x1,toJSON:_0x1e327a=!0x1}={}){const _0x59ff64=[];for(const _0xd3810b of this[_0x90f5('0x11c')]['values']())_0x24a556&&!_0xd3810b[_0x90f5('0x45')]||_0x59ff64[_0x90f5('0x129')](_0xd3810b);return _0x1e327a?_0x59ff64[_0x90f5('0x12')](_0x192d0c=>_0x192d0c[_0x90f5('0x125')]()):_0x59ff64;}[_0x90f5('0x13a')](_0x501c27){const _0x30172f=this['_suggestions'][_0x90f5('0xf6')](_0x501c27);if(!_0x30172f)throw new _0x2719f8(_0x90f5('0xc4'),this);return _0x30172f;}[_0x90f5('0x7')](_0x1d7dfe){return this['_suggestions'][_0x90f5('0x7a')](_0x1d7dfe);}['addSuggestionData'](_0x21208e){const {authorId:_0x58cdfc,id:_0x3332ce,attributes:_0x31482e}=_0x21208e,[_0x43284e,_0x1ac5b2]=_0x21208e[_0x90f5('0x8a')][_0x90f5('0x39')](':'),_0xf1149f=this[_0x90f5('0x11c')]['get'](_0x3332ce)||this[_0x90f5('0x7f')](_0x43284e,_0x1ac5b2,_0x3332ce,_0x58cdfc,_0x31482e);if(this[_0x90f5('0x102')](_0xf1149f),this[_0x90f5('0xed')](_0xf1149f,_0x43284e,_0x1ac5b2||null,_0x58cdfc),_0xf1149f['createdAt']=_0x21208e['createdAt'],_0x31482e&&_0x31482e['@external']){const _0x383a84=_0x31482e[_0x90f5('0x9c')],_0x37d94d=this[_0x90f5('0xf4')](_0x383a84['authorName']);_0xf1149f[_0x90f5('0x136')]=_0x383a84[_0x90f5('0x8e')],_0xf1149f['author']=_0x37d94d,_0xf1149f[_0x90f5('0xdd')]=!0x0;}else _0xf1149f[_0x90f5('0x136')]=_0x21208e[_0x90f5('0x8e')];switch(_0x21208e[_0x90f5('0xc8')]&&(_0xf1149f[_0x90f5('0xc8')]=_0x21208e[_0x90f5('0xc8')]),_0x21208e[_0x90f5('0x10')]&&(_0xf1149f['attributes']=_0x21208e[_0x90f5('0x10')]),this[_0x90f5('0xfe')]&&this[_0x90f5('0xfe')]['addSuggestion']||(_0xf1149f[_0x90f5('0x7c')]=!0x0),this[_0x90f5('0x9d')][_0x90f5('0xf6')](_0xf1149f)){case'notReady':this[_0x90f5('0x9d')]['set'](_0xf1149f,_0x90f5('0x36'));break;case _0x90f5('0x68'):_0xf1149f[_0x90f5('0x45')]?(this['_suggestionState'][_0x90f5('0x29')](_0xf1149f,_0x90f5('0x52')),this[_0x90f5('0x2f')](_0x90f5('0x8'),_0xf1149f)):this[_0x90f5('0x9d')][_0x90f5('0x29')](_0xf1149f,'removed');}return _0xf1149f;}[_0x90f5('0x126')](_0xaee483){this[_0x90f5('0x11a')](()=>{this[_0x90f5('0xf0')][_0x90f5('0xd8')][_0x90f5('0xdb')](()=>{for(const _0x29345d of _0xaee483[_0x90f5('0x22')]())_0x29345d['accept']();});});}[_0x90f5('0x12a')](_0x3cbfc4){this[_0x90f5('0x11a')](()=>{this[_0x90f5('0xf0')]['model'][_0x90f5('0xdb')](()=>{for(const _0x3d7df2 of _0x3cbfc4[_0x90f5('0x22')]())_0x3d7df2[_0x90f5('0xc7')]();});});}[_0x90f5('0xc0')](_0x55840e,_0x119b2c){const _0x54db49=this[_0x90f5('0xf0')][_0x90f5('0x30')]['get'](_0x55840e);if(!_0x54db49)throw new _0x2719f8('track-changes-command-not-found',this,{'commandName':_0x55840e});this['_enabledCommands'][_0x90f5('0xca')](_0x54db49),_0x119b2c&&_0x54db49['on'](_0x90f5('0xff'),(_0x554af5,_0x4d7b7f)=>{this[_0x90f5('0xda')][_0x90f5('0x66')]&&(this[_0x90f5('0x64')]||_0x4d7b7f[_0x90f5('0x14')]>0x0&&_0x4d7b7f[_0x4d7b7f[_0x90f5('0x14')]-0x1]&&_0x4d7b7f[_0x4d7b7f[_0x90f5('0x14')]-0x1][_0x90f5('0x11a')]||(_0x119b2c((..._0x3cec76)=>_0x54db49[_0x90f5('0xff')](..._0x3cec76,{'forceDefaultExecution':!0x0}),..._0x4d7b7f),_0x554af5[_0x90f5('0x42')]()));},{'priority':_0x90f5('0x89')});}[_0x90f5('0x11a')](_0x10a2d3){let _0x4d208d,_0xcad224;const _0x56db93=this[_0x90f5('0x64')];this[_0x90f5('0x64')]=!0x0;try{_0x4d208d=_0x10a2d3();}catch(_0x208c4d){_0xcad224=_0x208c4d;}return _0x56db93||(this[_0x90f5('0x64')]=!0x1),_0xcad224&&_0x2719f8['rethrowUnexpectedError'](_0xcad224,this),_0x4d208d;}['markInsertion'](_0x5282e7,_0xcb2273=null,_0x177619={}){if(_0x5282e7['isCollapsed'])return null;const _0xb9174c=this[_0x90f5('0xf0')][_0x90f5('0x104')][_0x90f5('0xf6')](_0x90f5('0x2d'))['me'];for(const {suggestion:_0x24d2cf,meta:_0x377605}of this[_0x90f5('0x25')](_0x5282e7,_0x90f5('0x4f')))if(_0x377605[_0x90f5('0xa7')]){if(!_0x377605[_0x90f5('0x8f')]){if(!this[_0x90f5('0x111')]&&_0x377605['containsRangeInObject'])continue;return _0x24d2cf;}if(_0xcb2273==_0x24d2cf[_0x90f5('0x3a')]){const _0x3ed23e=_0x24d2cf[_0x90f5('0x9a')]();return _0x3ed23e[_0x90f5('0x57')][_0x90f5('0xec')](_0x5282e7['end'])?this[_0x90f5('0x11e')](_0x24d2cf,this[_0x90f5('0x46')][_0x90f5('0x98')](_0x5282e7['start'],_0x3ed23e[_0x90f5('0x10a')])):this[_0x90f5('0x11e')](_0x24d2cf,this['_model'][_0x90f5('0x98')](_0x3ed23e[_0x90f5('0x57')],_0x5282e7[_0x90f5('0x10a')])),_0x24d2cf;}}const _0x42c979=_0x4c2669(),_0xf09b16=_0xb9174c['id'],_0x1a6535=_0xcb2273?_0x90f5('0xb7')+_0xcb2273:_0x90f5('0x4f'),_0x2635b4=this['_setSuggestionData']({'id':_0x42c979,'type':_0x1a6535,'createdAt':new Date(),'authorId':_0xf09b16,'attributes':_0x177619});return this[_0x90f5('0x16')](_0x1a6535,_0x42c979,_0xf09b16,_0x5282e7),_0x2635b4;}[_0x90f5('0xac')](_0x28cb14,_0x4459f3='multi',_0x27b696={}){const _0x140a91=this[_0x90f5('0xf0')][_0x90f5('0x104')][_0x90f5('0xf6')](_0x90f5('0x2d'))['me'],_0x1db2e8=this[_0x90f5('0x124')][_0x90f5('0x6e')](_0x90f5('0x4f'),_0x4459f3,_0x90f5('0x6a'));for(const _0x6ddb7c of this[_0x90f5('0x123')]())if(_0x6ddb7c[_0x90f5('0x99')]['id']==_0x140a91['id']&&_0x90f5('0x4f')==_0x6ddb7c[_0x90f5('0x8a')]&&_0x6ddb7c[_0x90f5('0x3a')]==_0x4459f3&&(_0x1db2e8(_0x6ddb7c[_0x90f5('0x40')](),_0x28cb14)||_0x1db2e8(_0x28cb14,_0x6ddb7c[_0x90f5('0x40')]()))){for(const _0x43375b of _0x28cb14)_0x6ddb7c[_0x90f5('0x12e')](_0x43375b);return _0x6ddb7c;}if(this['_mergeNestedSuggestions'])for(const _0x3ee394 of _0x28cb14)for(const {suggestion:_0x447288,meta:_0x49aa86}of this[_0x90f5('0x25')](_0x3ee394,'insertion')){if(!_0x49aa86[_0x90f5('0xa7')])continue;let _0x3cc15d=!0x0;for(const _0x2a94c6 of _0x447288[_0x90f5('0x40')]())for(const _0x5c8be6 of _0x28cb14)if(!_0x2a94c6[_0x90f5('0x78')](_0x5c8be6)){_0x3cc15d=!0x1;break;}if(_0x3cc15d)return _0x447288;}const _0x31164f=_0x4c2669(),_0x26a797=_0x140a91['id'],_0x1a17a3=_0x90f5('0xb7')+_0x4459f3,_0x293795=this[_0x90f5('0x4')]({'id':_0x31164f,'type':_0x1a17a3,'createdAt':new Date(),'authorId':_0x26a797,'attributes':_0x27b696});for(const _0x11e00b of _0x28cb14)this[_0x90f5('0x16')](_0x1a17a3,_0x31164f,_0x26a797,_0x11e00b,_0x1600fa[_0x90f5('0x5e')]());return _0x293795;}['markInlineFormat'](_0x3b6abd,_0x40dc78,_0x53e0d0=null,_0x44027b={}){if(_0x53e0d0=_0x53e0d0||$t(_0x40dc78),_0x3b6abd[_0x90f5('0xf8')])return null;if(_0x90f5('0x4d')===this['_trackFormatChanges']){const _0x7019ef=this[_0x90f5('0x124')][_0x90f5('0x6e')]('formatInline',_0x53e0d0,_0x90f5('0xb1'));return this['forceDefaultExecution'](()=>_0x7019ef([_0x3b6abd],_0x40dc78,_0x44027b)),null;}const _0x4ced05=this[_0x90f5('0xf0')][_0x90f5('0x104')][_0x90f5('0xf6')](_0x90f5('0x2d'))['me'],_0x24d497=[];if(_0x90f5('0x8c')!==this[_0x90f5('0x132')])for(const {suggestion:_0x141022,meta:_0x291281}of this[_0x90f5('0x25')](_0x3b6abd,_0x90f5('0x4f')))_0x291281[_0x90f5('0xa7')]&&!_0x291281[_0x90f5('0xf2')]&&_0x24d497[_0x90f5('0x129')](..._0x141022[_0x90f5('0x40')]());const _0x2431f6=function(_0x45f67b,_0x4d6d80){const _0x5a3ebb=[];for(const _0x280d5e of _0x4d6d80){const _0x103810=_0x45f67b[_0x90f5('0x6d')](_0x280d5e);_0x103810&&_0x5a3ebb[_0x90f5('0x129')](_0x103810);}return _0x5a3ebb;}(_0x3b6abd,_0x24d497),_0x63b616=function(_0x5a63da,_0x381b56){const _0x2566e9=[_0x5a63da];for(const _0x5c9166 of _0x381b56){let _0x234466=0x0;for(;_0x234466<_0x2566e9['length'];){const _0x1206db=_0x2566e9[_0x234466][_0x90f5('0x114')](_0x5c9166);_0x2566e9[_0x90f5('0xc1')](_0x234466,0x1,..._0x1206db),_0x234466+=_0x1206db[_0x90f5('0x14')];}}return _0x2566e9;}(_0x3b6abd,_0x24d497);_0x2431f6['length']&&this[_0x90f5('0x46')][_0x90f5('0xdb')](()=>{for(const _0x535611 of _0x2431f6){const _0x3281fb=this[_0x90f5('0x124')]['getSuggestionCallback'](_0x90f5('0x5b'),_0x53e0d0,_0x90f5('0xb1'));this['forceDefaultExecution'](()=>_0x3281fb([_0x535611],_0x40dc78,_0x44027b));}});for(const _0x3fff84 of _0x63b616){let _0x31b2f9=null,_0x7d94de=_0x3fff84[_0x90f5('0x57')],_0x2881e9=_0x3fff84[_0x90f5('0x10a')];for(const {suggestion:_0x30b937,meta:_0x1e9d14}of this['_findSuggestions'](_0x3fff84,_0x90f5('0x5b'))){if(!_0x1e9d14[_0x90f5('0xa7')])continue;if(_0x30b937['subType']!=_0x53e0d0)continue;const _0x344590=_0x30b937['getFirstRange']();if(_0x344590[_0x90f5('0x78')](_0x3fff84,!0x0))return null;_0x7d94de=_0x7d94de[_0x90f5('0xe4')](_0x344590[_0x90f5('0x57')])?_0x7d94de:_0x344590[_0x90f5('0x57')],_0x2881e9=_0x2881e9[_0x90f5('0xa')](_0x344590['end'])?_0x2881e9:_0x344590[_0x90f5('0x10a')],_0x31b2f9?_0x344590[_0x90f5('0x57')][_0x90f5('0xe4')](_0x31b2f9['getFirstRange']()[_0x90f5('0x57')])?(_0x31b2f9[_0x90f5('0x3e')](),_0x31b2f9=_0x30b937):_0x30b937[_0x90f5('0x3e')]():_0x31b2f9=_0x30b937;}const _0x23476f=this['_model'][_0x90f5('0x98')](_0x7d94de,_0x2881e9);if(_0x31b2f9)this[_0x90f5('0x11e')](_0x31b2f9,_0x23476f);else{const _0x62339a=_0x4c2669(),_0x43f270=_0x4ced05['id'];this[_0x90f5('0x4')]({'id':_0x62339a,'type':_0x90f5('0x2c')+_0x53e0d0,'data':_0x40dc78,'createdAt':new Date(),'authorId':_0x43f270,'attributes':_0x44027b}),this[_0x90f5('0x16')]('formatInline:'+_0x53e0d0,_0x62339a,_0x43f270,_0x23476f);}}return null;}[_0x90f5('0x2')](_0x1070ac,_0x8114b,_0x316017=[],_0x5808b5=null,_0x109a6d={}){_0x8114b[_0x90f5('0xf7')]||(_0x8114b[_0x90f5('0xf7')]=_0x8114b[_0x90f5('0x1a')]),_0x8114b[_0x90f5('0x86')]=_0x1070ac['is'](_0x90f5('0x74')),_0x5808b5=_0x5808b5||$t(_0x8114b);const _0x4e5fb8=_0x316017[_0x90f5('0x12')](_0x22280a=>Rt(_0x22280a,this[_0x90f5('0x46')])),_0x5d69e4=_0x1070ac['is']('range')?_0x1070ac:Rt(_0x1070ac,this[_0x90f5('0x46')]);if('never'===this[_0x90f5('0x132')]){const _0x5497e7=this[_0x90f5('0x124')][_0x90f5('0x6e')](_0x90f5('0x100'),_0x5808b5,_0x90f5('0xb1'));return this[_0x90f5('0x11a')](()=>_0x5497e7([_0x5d69e4],_0x8114b,_0x109a6d)),null;}_0x4e5fb8[_0x90f5('0x129')](_0x5d69e4);let _0x2e77ba=!0x0;for(const _0x505040 of _0x4e5fb8)if(!this[_0x90f5('0xe0')](_0x505040)){_0x2e77ba=!0x1;break;}if(_0x2e77ba&&_0x90f5('0x8c')!==this[_0x90f5('0x132')]){const _0x49543f=this['_suggestionFactory'][_0x90f5('0x6e')]('formatBlock',_0x5808b5,_0x90f5('0xb1'));return this[_0x90f5('0x11a')](()=>_0x49543f([_0x5d69e4],_0x8114b,_0x109a6d)),null;}let _0x141403=null,_0x431f52=_0x5d69e4[_0x90f5('0x57')],_0x2bf14c=_0x5d69e4[_0x90f5('0x10a')];for(const {suggestion:_0x4a1fea,meta:_0x29e453}of this['_findSuggestions'](_0x5d69e4,_0x90f5('0x100'))){if(!_0x29e453[_0x90f5('0xa7')]||_0x29e453[_0x90f5('0x8f')]||_0x29e453['containsRangeInObject']||_0x29e453[_0x90f5('0xf2')])continue;if(_0x4a1fea['data'][_0x90f5('0xf7')]!=_0x8114b[_0x90f5('0xf7')])continue;const _0x9f1673=_0x4a1fea['getFirstRange']();if(_0x4a1fea['subType']==_0x5808b5){if(_0x9f1673[_0x90f5('0x78')](_0x5d69e4,!0x0))return null;_0x431f52=_0x431f52[_0x90f5('0xe4')](_0x9f1673['start'])?_0x431f52:_0x9f1673[_0x90f5('0x57')],_0x2bf14c=_0x2bf14c['isAfter'](_0x9f1673['end'])?_0x2bf14c:_0x9f1673[_0x90f5('0x10a')],_0x141403?_0x9f1673['start']['isBefore'](_0x141403['getFirstRange']()[_0x90f5('0x57')])?(_0x141403[_0x90f5('0x3e')](),_0x141403=_0x4a1fea):_0x4a1fea[_0x90f5('0x3e')]():_0x141403=_0x4a1fea;}else{const _0x42ca11=_0x5d69e4['getIntersection'](_0x9f1673);this[_0x90f5('0x12c')](_0x4a1fea,_0x42ca11);}}const _0x337a00=this[_0x90f5('0xf0')]['plugins']['get'](_0x90f5('0x2d'))['me'],_0x28bfcf=_0x4c2669(),_0x14f7db=_0x337a00['id'];if(_0x141403)return this[_0x90f5('0x11e')](_0x141403,this['_model'][_0x90f5('0x98')](_0x431f52,_0x2bf14c)),_0x141403;{const _0x19c6ce=this[_0x90f5('0x4')]({'id':_0x28bfcf,'type':_0x90f5('0x131')+_0x5808b5,'data':_0x8114b,'createdAt':new Date(),'authorId':_0x14f7db,'attributes':_0x109a6d});return this[_0x90f5('0x16')](_0x90f5('0x131')+_0x5808b5,_0x28bfcf,_0x14f7db,this[_0x90f5('0x46')][_0x90f5('0x98')](_0x431f52,_0x2bf14c)),_0x19c6ce;}}[_0x90f5('0x28')](_0x4640e2,_0x4df877,_0x2addb6=[],_0x1f13c6=null,_0x360200={}){_0x4df877['formatGroupId']||(_0x4df877['formatGroupId']=_0x4df877[_0x90f5('0x1a')]);const _0x285c30=_0x4640e2[0x0];_0x4df877[_0x90f5('0x86')]=_0x285c30['is'](_0x90f5('0x74')),_0x1f13c6=_0x1f13c6||$t(_0x4df877);const _0x578f40=_0x2addb6[_0x90f5('0x12')](_0x352f36=>Rt(_0x352f36,this[_0x90f5('0x46')])),_0x346bb0=_0x285c30['is'](_0x90f5('0x74'))?_0x4640e2:_0x4640e2[_0x90f5('0x12')](_0x21f500=>Rt(_0x21f500,this[_0x90f5('0x46')]));if(_0x90f5('0x4d')===this[_0x90f5('0x132')]){const _0x56fd63=this['_suggestionFactory'][_0x90f5('0x6e')](_0x90f5('0x100'),_0x1f13c6,_0x90f5('0xb1'));return this[_0x90f5('0x11a')](()=>_0x56fd63(_0x346bb0,_0x4df877,_0x360200)),null;}_0x578f40[_0x90f5('0x129')](..._0x346bb0);let _0xf59097=!0x0;for(const _0x26e3e1 of _0x578f40)if(!this[_0x90f5('0xe0')](_0x26e3e1)){_0xf59097=!0x1;break;}if(_0xf59097&&_0x90f5('0x8c')!==this[_0x90f5('0x132')]){const _0x4b4d03=this[_0x90f5('0x124')][_0x90f5('0x6e')](_0x90f5('0x100'),_0x1f13c6,_0x90f5('0xb1'));return this['forceDefaultExecution'](()=>_0x4b4d03(_0x346bb0,_0x4df877,_0x360200)),null;}const _0x34a637=this['editor'][_0x90f5('0x104')][_0x90f5('0xf6')](_0x90f5('0x2d'))['me'];for(const _0x4dca5e of this['getSuggestions']()){if(_0x4dca5e[_0x90f5('0x99')]['id']!=_0x34a637['id'])continue;if('formatBlock'!=_0x4dca5e[_0x90f5('0x8a')]||_0x4dca5e['data']['formatGroupId']!=_0x4df877['formatGroupId'])continue;const _0x5cbbba=_0x4dca5e[_0x90f5('0x3a')]==_0x1f13c6;for(let _0x3fdf28=0x0;_0x3fdf28<_0x346bb0[_0x90f5('0x14')];_0x3fdf28++){const _0x2b6309=_0x346bb0[_0x3fdf28];for(const _0x2595fe of _0x4dca5e[_0x90f5('0x49')]()){const _0x3bb97a=_0x2595fe[_0x90f5('0xb')]();if(_0x2b6309['isEqual'](_0x3bb97a)){_0x5cbbba?(_0x346bb0[_0x90f5('0xc1')](_0x3fdf28,0x1),_0x3fdf28--):_0x4dca5e[_0x90f5('0xbb')](_0x2595fe[_0x90f5('0x61')]);break;}}}}if(0x0==_0x346bb0['length'])return null;const _0x2bb898=this['_suggestionFactory'][_0x90f5('0x6e')](_0x90f5('0x100'),_0x1f13c6,_0x90f5('0x6a'));for(const _0x2cfb38 of this[_0x90f5('0x123')]())if(_0x2cfb38['author']['id']==_0x34a637['id']&&_0x90f5('0x100')==_0x2cfb38[_0x90f5('0x8a')]&&_0x2cfb38[_0x90f5('0xc8')][_0x90f5('0xf7')]==_0x4df877['formatGroupId']&&_0x2cfb38[_0x90f5('0x3a')]==_0x1f13c6&&(_0x2bb898(_0x2cfb38['getRanges'](),_0x346bb0)||_0x2bb898(_0x346bb0,_0x2cfb38[_0x90f5('0x40')]()))){for(const _0x523a85 of _0x346bb0)_0x2cfb38[_0x90f5('0x12e')](_0x523a85);return _0x2cfb38;}const _0xd77436=_0x4c2669(),_0x25c99a=_0x34a637['id'],_0x7d60c6=_0x90f5('0x131')+_0x1f13c6,_0x348a24=this[_0x90f5('0x4')]({'id':_0xd77436,'type':_0x7d60c6,'data':_0x4df877,'createdAt':new Date(),'authorId':_0x25c99a,'attributes':_0x360200});for(const _0x445a08 of _0x346bb0)this[_0x90f5('0x16')](_0x7d60c6,_0xd77436,_0x25c99a,_0x445a08,_0x1600fa[_0x90f5('0x5e')]());return _0x348a24;}[_0x90f5('0x83')](_0x7a2746,_0x12a3ff=null,_0x3dda72={}){if(_0x7a2746[_0x90f5('0xf8')])return null;const _0x21d3dd=this[_0x90f5('0xf0')]['plugins'][_0x90f5('0xf6')](_0x90f5('0x2d'))['me'],_0xd0dd7=new _0x1bb84e(_0x7a2746[_0x90f5('0x57')],_0x7a2746[_0x90f5('0x10a')]);for(const {suggestion:_0x41517a,meta:_0x1fa13f}of this['_findSuggestions'](_0xd0dd7,_0x90f5('0x4f')))if(_0x1fa13f[_0x90f5('0xa7')]&&!_0x1fa13f[_0x90f5('0x8f')]){if(_0x41517a[_0x90f5('0x92')]){const _0x307af3=_0x41517a['getRanges']()[_0x90f5('0xee')](_0x55d863=>_0x90f5('0xc9')!=_0x55d863[_0x90f5('0xa0')][_0x90f5('0x9b')]);_0x307af3[_0x90f5('0x1c')](_0x12d1e4=>_0xd0dd7[_0x90f5('0x78')](_0x12d1e4,!0x0))&&_0x41517a[_0x90f5('0xc7')]();if(_0x307af3[_0x90f5('0xe9')](_0x387093=>_0x387093['containsRange'](_0xd0dd7,!0x0))){const _0x47e99b=this[_0x90f5('0x124')]['getSuggestionCallback'](_0x90f5('0x94'),_0x12a3ff,'accept');return this[_0x90f5('0x11a')](()=>_0x47e99b([_0xd0dd7],null,_0x3dda72)),null;}}else{const _0x3c1af9=_0xd0dd7[_0x90f5('0x6d')](_0x41517a[_0x90f5('0x9a')]());null!==_0x3c1af9&&_0x41517a['_onDiscard']([_0x3c1af9],null,_0x3dda72);}}if(_0xd0dd7['detach'](),_0xd0dd7[_0x90f5('0xf8')]||_0x90f5('0xc9')==_0xd0dd7[_0x90f5('0xa0')][_0x90f5('0x9b')])return null;let _0x459d63=null,_0xaf974d=_0xd0dd7[_0x90f5('0x57')],_0x492003=_0xd0dd7['end'];for(const {suggestion:_0x176f30,meta:_0x1e7023}of this[_0x90f5('0x25')](_0xd0dd7,_0x90f5('0x94')))if(_0x1e7023['isOwn']){if(_0x176f30[_0x90f5('0x92')]&&this[_0x90f5('0x111')]){let _0x583e92=!0x0;for(const _0x11c2db of _0x176f30[_0x90f5('0x40')]()){if(_0x11c2db[_0x90f5('0x78')](_0xd0dd7,!0x0))return _0x176f30;_0xd0dd7[_0x90f5('0x78')](_0x11c2db)||(_0x583e92=!0x1);}_0x583e92&&_0x176f30[_0x90f5('0xc7')]();}else{const _0x4f1195=_0x176f30[_0x90f5('0x9a')]();if(_0x4f1195[_0x90f5('0x78')](_0xd0dd7,!0x0)){if(!this[_0x90f5('0x111')]&&_0x1e7023[_0x90f5('0x62')])continue;return _0x176f30;}_0xaf974d=_0xaf974d[_0x90f5('0xe4')](_0x4f1195['start'])?_0xaf974d:_0x4f1195[_0x90f5('0x57')],_0x492003=_0x492003[_0x90f5('0xa')](_0x4f1195[_0x90f5('0x10a')])?_0x492003:_0x4f1195['end'],_0x459d63?_0x4f1195['start']['isBefore'](_0x459d63[_0x90f5('0x9a')]()[_0x90f5('0x57')])?(_0x459d63[_0x90f5('0x3e')](),_0x459d63=_0x176f30):_0x176f30[_0x90f5('0x3e')]():_0x459d63=_0x176f30;}}if(_0x459d63)return this[_0x90f5('0x11e')](_0x459d63,this[_0x90f5('0x46')][_0x90f5('0x98')](_0xaf974d,_0x492003)),_0x459d63;{const _0x327e95=_0x4c2669(),_0x48ce13=this[_0x90f5('0x46')]['createRange'](_0xaf974d,_0x492003),_0x294fa7=_0x21d3dd['id'],_0x1cbf21=_0x12a3ff?_0x90f5('0x50')+_0x12a3ff:_0x90f5('0x94'),_0x31b396=this[_0x90f5('0x4')]({'id':_0x327e95,'type':_0x1cbf21,'createdAt':new Date(),'authorId':_0x294fa7,'attributes':_0x3dda72});return this[_0x90f5('0x16')](_0x1cbf21,_0x327e95,_0x294fa7,_0x48ce13),_0x31b396;}}[_0x90f5('0x65')](_0x20c509,_0x37b907=_0x90f5('0x10b'),_0x253fea={}){const _0x4a0530=this[_0x90f5('0xf0')][_0x90f5('0x104')][_0x90f5('0xf6')](_0x90f5('0x2d'))['me'],_0x37bf53=_0x20c509[_0x90f5('0x12')](_0x4648ac=>new _0x1bb84e(_0x4648ac[_0x90f5('0x57')],_0x4648ac[_0x90f5('0x10a')])),_0x38e127=new Set();for(const _0xf2bdda of _0x37bf53)for(const {suggestion:_0x4964b0,meta:_0x34eaa9}of this[_0x90f5('0x25')](_0xf2bdda,'insertion'))_0x34eaa9[_0x90f5('0xa7')]&&!_0x34eaa9[_0x90f5('0x8f')]&&_0x38e127[_0x90f5('0xca')](_0x4964b0);for(const _0x581c76 of _0x38e127)if(_0x581c76[_0x90f5('0x92')]){const _0x4f6926=_0x581c76[_0x90f5('0x40')]();(!_0x581c76[_0x90f5('0x10')]||!_0x581c76['attributes'][_0x90f5('0xd2')])&&(_0x4f6926[_0x90f5('0x1c')](_0x1ba5c8=>_0x37bf53['some'](_0x5a1cb3=>_0x5a1cb3['containsRange'](_0x1ba5c8,!0x0)))&&_0x581c76[_0x90f5('0xc7')]());if(_0x37bf53[_0x90f5('0x1c')](_0x4ac5de=>_0x4f6926[_0x90f5('0xe9')](_0x494ae7=>_0x494ae7[_0x90f5('0x78')](_0x4ac5de,!0x0)))){const _0x5a0c11=this[_0x90f5('0x124')][_0x90f5('0x6e')](_0x90f5('0x94'),_0x37b907,'accept');return this['forceDefaultExecution'](()=>_0x5a0c11(_0x20c509,null,_0x253fea)),null;}}else{const _0x2bbca0=_0x581c76[_0x90f5('0x9a')]();_0x37bf53[_0x90f5('0xe9')](_0x4a4aa9=>_0x4a4aa9[_0x90f5('0x78')](_0x2bbca0,!0x0))&&_0x581c76[_0x90f5('0xc7')]();if(_0x37bf53[_0x90f5('0x1c')](_0x244e2b=>_0x2bbca0[_0x90f5('0x78')](_0x244e2b,!0x0))){const _0x483b74=this[_0x90f5('0x124')][_0x90f5('0x6e')](_0x90f5('0x94'),_0x37b907,_0x90f5('0xb1'));return this['forceDefaultExecution'](()=>_0x483b74(_0x37bf53,null,_0x253fea)),null;}}const _0x23d726=this[_0x90f5('0x124')][_0x90f5('0x6e')](_0x90f5('0x94'),_0x37b907,'join');let _0x2546ed=null;for(const _0x4f5ee5 of this[_0x90f5('0x123')]())if(_0x4f5ee5['author']['id']==_0x4a0530['id']&&_0x4f5ee5[_0x90f5('0x45')]&&'deletion'==_0x4f5ee5[_0x90f5('0x8a')]&&_0x4f5ee5['subType']==_0x37b907&&(_0x23d726(_0x4f5ee5['getRanges'](),_0x37bf53)||_0x23d726(_0x37bf53,_0x4f5ee5[_0x90f5('0x40')]()))){if(_0x2546ed){if(_0x4f5ee5[_0x90f5('0xa3')]&&_0x4f5ee5[_0x90f5('0xa3')]['length'])continue;for(const _0x3108aa of _0x4f5ee5[_0x90f5('0x40')]())_0x2546ed[_0x90f5('0xd5')](_0x3108aa)||_0x2546ed[_0x90f5('0x12e')](_0x3108aa);_0x4f5ee5[_0x90f5('0x3e')]();}else{_0x2546ed=_0x4f5ee5;for(const _0x36f445 of _0x37bf53)_0x4f5ee5[_0x90f5('0xd5')](_0x36f445)||_0x4f5ee5[_0x90f5('0x12e')](_0x36f445);}}if(_0x2546ed)return _0x2546ed;_0x38e127['clear']();for(const _0x28c641 of _0x37bf53)for(const {suggestion:_0x3a0613,meta:_0x3de4d2}of this['_findSuggestions'](_0x28c641,_0x90f5('0x94')))_0x3de4d2[_0x90f5('0xa7')]&&_0x38e127['add'](_0x3a0613);for(const _0x4ebc3d of _0x38e127){const _0x200c6f=_0x4ebc3d[_0x90f5('0x40')]();if(!_0x253fea||!_0x253fea[_0x90f5('0xd2')]){if(_0x37bf53[_0x90f5('0x1c')](_0x46d3ca=>_0x200c6f[_0x90f5('0xe9')](_0x4a81de=>_0x4a81de['containsRange'](_0x46d3ca,!0x0))))return _0x4ebc3d;}(!_0x4ebc3d[_0x90f5('0x10')]||!_0x4ebc3d[_0x90f5('0x10')][_0x90f5('0xd2')])&&(_0x200c6f['every'](_0x5c6b2a=>_0x37bf53[_0x90f5('0xe9')](_0x2c208a=>_0x2c208a[_0x90f5('0x78')](_0x5c6b2a,!0x0)))&&_0x4ebc3d[_0x90f5('0xc7')]());}const _0x5ca645=_0x4c2669(),_0x260386=_0x4a0530['id'],_0x48cbf5=_0x90f5('0x50')+_0x37b907,_0x6bcbdb=this[_0x90f5('0x4')]({'id':_0x5ca645,'type':_0x48cbf5,'createdAt':new Date(),'authorId':_0x260386,'attributes':_0x253fea});for(const _0x403b15 of _0x37bf53)_0x403b15[_0x90f5('0x10e')](),_0x403b15[_0x90f5('0xf8')]||_0x90f5('0xc9')==_0x403b15[_0x90f5('0xa0')][_0x90f5('0x9b')]||this[_0x90f5('0x16')](_0x48cbf5,_0x5ca645,_0x260386,_0x403b15,_0x1600fa[_0x90f5('0x5e')]());return _0x6bcbdb;}[_0x90f5('0x11e')](_0x1c4e47,_0x357a45){const _0xd2ce03=_0x1c4e47[_0x90f5('0x134')]();this[_0x90f5('0x46')][_0x90f5('0xdb')](_0x293e9d=>{_0x293e9d[_0x90f5('0x121')](_0xd2ce03,{'range':_0x357a45});});}[_0x90f5('0x102')](_0x2e6930){const _0x5b5e5=_0x2e6930['id'],_0x5ef03a=this[_0x90f5('0xf0')][_0x90f5('0xb6')][_0x90f5('0xf6')](_0x90f5('0x122'));this['_commentsRepository'][_0x90f5('0x117')](_0x5b5e5)||this['_commentsRepository'][_0x90f5('0x11d')]({'channelId':_0x5ef03a,'threadId':_0x5b5e5,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1cadd6=this[_0x90f5('0x139')][_0x90f5('0x13')](_0x5b5e5);_0x1cadd6[_0x90f5('0x4b')]('isRemovable'),_0x1cadd6[_0x90f5('0x108')]=!0x1,_0x2e6930[_0x90f5('0xa3')]=_0x1cadd6;}[_0x90f5('0xed')](_0xf5d35c,_0x43642c,_0xecd80b,_0x449b87){if(_0xf5d35c['type']!=_0x43642c||_0xf5d35c[_0x90f5('0x3a')]!=_0xecd80b||_0xf5d35c[_0x90f5('0x4e')]['id']!=_0x449b87)throw this[_0x90f5('0xf0')]['enableReadOnlyMode'](_0x90f5('0xd')),new _0x2719f8(_0x90f5('0xd'),this);}[_0x90f5('0x12c')](_0x29965e,_0x13241f){const _0x4d44c2=_0x29965e[_0x90f5('0x9a')]();if(_0x13241f[_0x90f5('0xec')](_0x4d44c2))_0x29965e['removeMarkers']();else{if(_0x4d44c2['containsRange'](_0x13241f)){const _0xf2828b=this[_0x90f5('0x46')][_0x90f5('0xf5')](_0x13241f[_0x90f5('0x57')][_0x90f5('0x34')],_0x90f5('0x10a'));this[_0x90f5('0x11e')](_0x29965e,this['_model'][_0x90f5('0x98')](_0x4d44c2[_0x90f5('0x57')],_0xf2828b));const _0x1ecd37=_0x4c2669(),_0x920af1=_0x29965e['creator']['id'],_0x2fab8c=_0x29965e[_0x90f5('0x8a')]+':'+_0x29965e[_0x90f5('0x3a')];this['_setSuggestionData']({'id':_0x1ecd37,'type':_0x2fab8c,'createdAt':new Date(),'authorId':_0x920af1,'data':_0x29965e[_0x90f5('0xc8')],'attributes':_0x29965e[_0x90f5('0x10')]});const _0xb2a237=this[_0x90f5('0x46')]['createPositionAt'](_0x13241f[_0x90f5('0x10a')][_0x90f5('0x115')],_0x90f5('0xd7')),_0x1f8afd=this[_0x90f5('0x46')][_0x90f5('0x98')](_0xb2a237,_0x4d44c2[_0x90f5('0x10a')]);this['_addSuggestionMarker'](_0x2fab8c,_0x1ecd37,_0x920af1,_0x1f8afd);}else{if(_0x4d44c2[_0x90f5('0xe2')](_0x13241f['start'])){const _0x143aa8=this[_0x90f5('0x46')][_0x90f5('0xf5')](_0x13241f[_0x90f5('0x57')][_0x90f5('0x34')],'end');this[_0x90f5('0x11e')](_0x29965e,this[_0x90f5('0x46')][_0x90f5('0x98')](_0x4d44c2[_0x90f5('0x57')],_0x143aa8));}else{const _0x4b2525=this[_0x90f5('0x46')][_0x90f5('0xf5')](_0x13241f[_0x90f5('0x10a')][_0x90f5('0x115')],_0x90f5('0xd7'));this[_0x90f5('0x11e')](_0x29965e,this[_0x90f5('0x46')][_0x90f5('0x98')](_0x4b2525,_0x4d44c2[_0x90f5('0x10a')]));}}}}['_rangeIsInLocalUserInsertion'](_0x3870ab){for(const {suggestion:_0x1555f5,meta:_0x479434}of this[_0x90f5('0x25')](_0x3870ab,_0x90f5('0x4f'))){if(!_0x479434[_0x90f5('0xa7')])continue;const _0x446d0e=_0x1555f5[_0x90f5('0x40')]();for(const _0x10a282 of _0x446d0e)if(!_0x3870ab[_0x90f5('0x114')](_0x10a282)[_0x90f5('0x14')])return!0x0;}return!0x1;}[_0x90f5('0x137')](_0x348469){const _0x1c7564=this[_0x90f5('0xf0')][_0x90f5('0x104')]['get'](_0x90f5('0x2d'))[_0x90f5('0xad')](_0x348469);if(!_0x1c7564)throw new _0x2719f8(_0x90f5('0x58'),this);return _0x1c7564;}[_0x90f5('0xf4')](_0x549bc5){const _0x22ee39=this['editor'][_0x90f5('0x104')]['get'](_0x90f5('0x2d')),_0x13cd05=_0x1db92d(_0x90f5('0xcf')+_0x549bc5),_0x2d94ac=_0x22ee39['getUser'](_0x13cd05);return _0x2d94ac||_0x22ee39[_0x90f5('0x5c')]({'id':_0x13cd05,'name':_0x549bc5});}[_0x90f5('0x7f')](_0x23edb9,_0x4abbd4,_0x5d273e,_0x21f57e,_0x4af571){const _0x5ea82d=this[_0x90f5('0x137')](_0x21f57e),_0x1229ec=this[_0x90f5('0x124')][_0x90f5('0x5d')](_0x23edb9,_0x4abbd4,_0x5d273e,_0x5ea82d,_0x4af571,_0x3585a4=>this[_0x90f5('0x120')](_0x5d273e,{'attributes':_0x3585a4}));return this[_0x90f5('0xde')](_0x1229ec,_0x90f5('0xb1'),()=>{this[_0x90f5('0x120')](_0x5d273e,{'state':'accepted'});},{'priority':'high'}),this[_0x90f5('0xde')](_0x1229ec,_0x90f5('0xc7'),()=>{this[_0x90f5('0x120')](_0x5d273e,{'state':'rejected'});},{'priority':_0x90f5('0x89')}),this[_0x90f5('0x11c')][_0x90f5('0x29')](_0x5d273e,_0x1229ec),this[_0x90f5('0x9d')][_0x90f5('0x29')](_0x1229ec,_0x90f5('0xbd')),_0x1229ec;}[_0x90f5('0x55')](_0x578311){const _0x345034=_0x578311[_0x90f5('0x39')](':');return{'group':_0x345034[0x0],'type':_0x345034[0x1],'subType':_0x345034[_0x90f5('0x14')]>=0x5?_0x345034[0x2]:null,'id':_0x345034[_0x90f5('0x14')]<0x5?_0x345034[0x2]:_0x345034[0x3],'authorId':_0x345034[_0x90f5('0x14')]<0x5?_0x345034[0x3]:_0x345034[0x4],'markerCount':0x6==_0x345034[_0x90f5('0x14')]?_0x345034[0x5]:null};}[_0x90f5('0x110')](_0x5eabd6,_0x2bac49,_0x552a5e){const _0x4c0161=_0x5eabd6['getFirstRange'](),_0xb6d74d=_0x4c0161[_0x90f5('0x57')],_0x4cca4a=_0x4c0161[_0x90f5('0x10a')];this[_0x90f5('0x11e')](_0x5eabd6,this[_0x90f5('0x46')][_0x90f5('0x98')](_0xb6d74d,_0x2bac49));const _0x1766ee=_0x4c2669(),_0x5cce90=_0x5eabd6[_0x90f5('0x4e')]['id'],_0x1d231c=_0x5eabd6[_0x90f5('0x8a')]+(_0x5eabd6['subType']?':'+_0x5eabd6['subType']:'');this[_0x90f5('0x4')]({'id':_0x1766ee,'type':_0x1d231c,'createdAt':new Date(),'authorId':_0x5cce90,'originalSuggestionId':_0x5eabd6['id'],'attributes':_0x5eabd6[_0x90f5('0x10')],'data':_0x5eabd6[_0x90f5('0xc8')]}),_0x90f5('0x100')==_0x5eabd6[_0x90f5('0x8a')]&&(_0x552a5e=this[_0x90f5('0x46')][_0x90f5('0xc5')](_0x552a5e['parent'])),this[_0x90f5('0x16')](_0x1d231c,_0x1766ee,_0x5cce90,this[_0x90f5('0x46')]['createRange'](_0x552a5e,_0x4cca4a));}[_0x90f5('0x25')](_0x58b543,_0x56d15a=null){const _0x16605e=[],_0x9425b1=this[_0x90f5('0x46')][_0x90f5('0x6b')],_0x59564c=this[_0x90f5('0xf0')][_0x90f5('0x104')][_0x90f5('0xf6')](_0x90f5('0x2d'))['me'];for(const _0xabc02b of this[_0x90f5('0x123')]())if(_0xabc02b[_0x90f5('0x45')]&&(!_0x56d15a||_0xabc02b[_0x90f5('0x8a')]==_0x56d15a))for(const _0x351ce0 of _0xabc02b['getRanges']()){const _0x3a22b4=_0x58b543['start'][_0x90f5('0xec')](_0x351ce0[_0x90f5('0x10a')])||_0x58b543[_0x90f5('0x10a')][_0x90f5('0xec')](_0x351ce0[_0x90f5('0x57')]);if(_0x3a22b4||_0x58b543['getIntersection'](_0x351ce0)){const _0x2e73ec=_0x58b543[_0x90f5('0x78')](_0x351ce0)&&Bt(_0x9425b1,_0x351ce0['start'],_0x58b543),_0x5d93bd=_0x351ce0[_0x90f5('0x78')](_0x58b543)&&Bt(_0x9425b1,_0x58b543[_0x90f5('0x57')],_0x351ce0);_0x16605e['push']({'suggestion':_0xabc02b,'meta':{'isOwn':_0x59564c==_0xabc02b[_0x90f5('0x99')],'isNextTo':_0x3a22b4,'isInsideObject':_0x2e73ec,'containsRangeInObject':_0x5d93bd}});break;}}return _0x16605e;}[_0x90f5('0x16')](_0x53007f,_0x9cdc4d,_0x2ad285,_0x4489a,_0xa58f75){this[_0x90f5('0x46')]['change'](_0x391cb3=>{let _0x64cc6a=_0x90f5('0xab')+_0x53007f+':'+_0x9cdc4d+':'+_0x2ad285;_0xa58f75&&(_0x64cc6a=_0x64cc6a+':'+_0xa58f75),_0x391cb3[_0x90f5('0x87')](_0x64cc6a,{'range':_0x4489a,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x90f5('0xd9')](_0x2e000d){const _0x65b22c=_0x2e000d[_0x90f5('0xcb')],_0x1590e4=_0x2e000d[_0x90f5('0x31')];_0x2e000d[_0x90f5('0xcb')]=null,null!=_0x65b22c&&(_0x65b22c[_0x90f5('0x31')]=null),_0x2e000d[_0x90f5('0x31')]=null,null!=_0x1590e4&&(_0x1590e4['previous']=null),_0x90f5('0x52')==this['_suggestionState'][_0x90f5('0xf6')](_0x2e000d)&&(this[_0x90f5('0x9d')]['set'](_0x2e000d,_0x90f5('0x17')),this[_0x90f5('0x2f')](_0x90f5('0xfc'),_0x2e000d,_0x65b22c,_0x1590e4));}[_0x90f5('0x4')](_0x202568){const _0x3de681=_0x202568['id'],_0x2c70c9=this[_0x90f5('0xa5')](_0x202568);if(this[_0x90f5('0xfe')]&&this['_adapter']['addSuggestion']){const _0x42452c=this[_0x90f5('0xf0')][_0x90f5('0x104')][_0x90f5('0xf6')](_0x90f5('0xa2')),_0x4dd0e5=_0x2c70c9[_0x90f5('0x1')],_0x43a7ac=_0x2c70c9[_0x90f5('0x3a')]?_0x2c70c9[_0x90f5('0x8a')]+':'+_0x2c70c9[_0x90f5('0x3a')]:_0x2c70c9['type'],_0x2e625b=this[_0x90f5('0xf0')][_0x90f5('0xc3')],_0x1b1122=_0x42452c[_0x90f5('0xca')](_0x3485ff(_0x2e625b,'PENDING_ACTION_SUGGESTION')),_0x494125={'id':_0x3de681,'type':_0x43a7ac,'hasComments':_0x4dd0e5,'data':_0x202568['data']||null,'originalSuggestionId':_0x202568[_0x90f5('0xaa')]||null,'attributes':_0x2c70c9[_0x90f5('0x10')]};this[_0x90f5('0xfe')][_0x90f5('0x1d')](_0x494125)[_0x90f5('0xea')](_0x583cde=>{_0x2c70c9[_0x90f5('0x7c')]=!0x0,_0x42452c[_0x90f5('0x20')](_0x1b1122),_0x583cde&&_0x583cde[_0x90f5('0x8e')]&&(this[_0x90f5('0x11c')][_0x90f5('0xf6')](_0x3de681)['createdAt']=_0x583cde[_0x90f5('0x8e')]);})[_0x90f5('0x5f')](_0x3c41c9=>{throw _0x3cb7c3('error-saving-suggestion-data-suggestion-discarded'),this[_0x90f5('0xf0')][_0x90f5('0xd8')][_0x90f5('0x106')]({'isUndoable':!0x1},()=>{_0x2c70c9['discard']();}),_0x2c70c9[_0x90f5('0x59')](),this[_0x90f5('0x11c')]['delete'](_0x2c70c9['id']),this['_suggestionState'][_0x90f5('0xe8')](_0x2c70c9),_0x3c41c9;});}return _0x2c70c9;}['_updateSuggestionData'](_0x24b40f,_0x3db856){const _0x209c2c=this[_0x90f5('0xf0')]['plugins'][_0x90f5('0xf6')](_0x90f5('0xa2')),_0x312e52=this[_0x90f5('0x13a')](_0x24b40f);if(this[_0x90f5('0xfe')]&&this[_0x90f5('0xfe')][_0x90f5('0x23')]){if(_0x312e52[_0x90f5('0x7c')]){const _0x405b8b=_0x209c2c['add'](_0x3485ff(this['editor'][_0x90f5('0xc3')],_0x90f5('0x70')));this['_adapter'][_0x90f5('0x23')](_0x24b40f,_0x3db856)['then'](()=>{_0x209c2c[_0x90f5('0x20')](_0x405b8b);});}else _0x312e52['on'](_0x90f5('0x38'),()=>{this[_0x90f5('0x120')](_0x24b40f,_0x3db856);});}}[_0x90f5('0x5a')](_0x452b56){if(!this[_0x90f5('0xfe')]||!this[_0x90f5('0xfe')][_0x90f5('0x13a')])throw new _0x2719f8(_0x90f5('0xb0'),this);return this[_0x90f5('0xfe')]['getSuggestion'](_0x452b56);}[_0x90f5('0x3')](_0x1a0190){const {id:_0xfb3cee,type:_0x3cabb5,subType:_0x3088d3,authorId:_0x15585f}=this[_0x90f5('0x55')](_0x1a0190),_0x41dde6=this[_0x90f5('0x11c')]['get'](_0xfb3cee)||this['_createSuggestion'](_0x3cabb5,_0x3088d3,_0xfb3cee,_0x15585f,{});switch(this['_checkSuggestionCorrectness'](_0x41dde6,_0x3cabb5,_0x3088d3,_0x15585f),this[_0x90f5('0x9d')][_0x90f5('0xf6')](_0x41dde6)){case _0x90f5('0xbd'):this[_0x90f5('0x5a')](_0xfb3cee)[_0x90f5('0xea')](_0x501a56=>{let _0x34f04f=Promise['resolve']();_0x501a56[_0x90f5('0x1')]&&(_0x34f04f=this[_0x90f5('0x139')][_0x90f5('0x105')]({'channelId':this[_0x90f5('0xf0')]['config'][_0x90f5('0xf6')](_0x90f5('0x122')),'threadId':_0xfb3cee})),_0x34f04f[_0x90f5('0xea')](()=>{this['addSuggestionData'](_0x501a56)[_0x90f5('0x7c')]=!0x0;});}),this[_0x90f5('0x9d')][_0x90f5('0x29')](_0x41dde6,_0x90f5('0x68'));break;case _0x90f5('0x17'):this[_0x90f5('0x120')](_0xfb3cee,{'state':_0x90f5('0x1e')});case _0x90f5('0x36'):this[_0x90f5('0x9d')][_0x90f5('0x29')](_0x41dde6,_0x90f5('0x52')),this[_0x90f5('0x2f')]('suggestionLoaded',_0x41dde6);break;case _0x90f5('0x52'):this[_0x90f5('0x2f')](_0x90f5('0x48'),_0x41dde6);}return _0x41dde6[_0x90f5('0xf9')](_0x1a0190),_0x41dde6;}[_0x90f5('0x47')](_0x2ff6ae){const _0x1764fb=Array[_0x90f5('0x128')](_0x2ff6ae)[_0x90f5('0xee')](_0x3346f9=>!_0x3346f9[_0x90f5('0x92')]),_0x1c4cfb=this[_0x90f5('0x123')]({'skipNotAttached':!0x0})['filter'](_0x44b5d4=>!_0x44b5d4[_0x90f5('0x92')]),_0x361c3b=_0x1c4cfb['filter'](_0x32ed99=>!_0x2ff6ae['has'](_0x32ed99)),_0xc2e786=new Map(_0x1c4cfb[_0x90f5('0x12')](_0x2f5473=>[_0x2f5473,this[_0x90f5('0x124')][_0x90f5('0x6e')](_0x2f5473[_0x90f5('0x8a')],_0x2f5473[_0x90f5('0x3a')],_0x90f5('0x43'))])),_0x2ad398=new Map(_0x1c4cfb[_0x90f5('0x12')](_0x3fac64=>[_0x3fac64,_0x3fac64[_0x90f5('0x9a')]()])),_0x47e4dd=new Set(),_0x261bd2=new Set();for(let _0x23e1e7=0x0;_0x23e1e7<_0x1764fb[_0x90f5('0x14')];_0x23e1e7++)_0x7be526(_0x1764fb[_0x23e1e7],_0x1764fb,_0x23e1e7+0x1);for(let _0x12735b=0x0;_0x12735b<_0x1764fb['length'];_0x12735b++)_0x7be526(_0x1764fb[_0x12735b],_0x361c3b,0x0);for(let _0x553299=0x0;_0x553299<_0x1764fb[_0x90f5('0x14')];_0x553299++){const _0x1716e=_0x1764fb[_0x553299];!_0x261bd2[_0x90f5('0x7a')](_0x1716e)&&_0x1716e['previous']&&(_0x1716e[_0x90f5('0xcb')][_0x90f5('0x31')]===_0x1716e&&(_0x1716e[_0x90f5('0xcb')][_0x90f5('0x31')]=null),_0x1716e[_0x90f5('0xcb')]=null),!_0x47e4dd['has'](_0x1716e)&&_0x1716e[_0x90f5('0x31')]&&(_0x1716e[_0x90f5('0x31')][_0x90f5('0xcb')]===_0x1716e&&(_0x1716e[_0x90f5('0x31')][_0x90f5('0xcb')]=null),_0x1716e['next']=null);}function _0x7be526(_0x112b71,_0x3eb390,_0x14be6a){for(let _0x358750=_0x14be6a;_0x358750<_0x3eb390[_0x90f5('0x14')];_0x358750++){const _0x4de3e3=_0x1f3d74(_0x112b71,_0x3eb390[_0x358750]);_0x4de3e3&&(_0x4de3e3[0x0][_0x90f5('0x31')]=_0x4de3e3[0x1],_0x4de3e3[0x1]['previous']=_0x4de3e3[0x0],_0x47e4dd[_0x90f5('0xca')](_0x4de3e3[0x0]),_0x261bd2[_0x90f5('0xca')](_0x4de3e3[0x1]));}}function _0x1f3d74(_0x3330fb,_0x357bac){if(_0x3330fb[_0x90f5('0x99')]['id']!==_0x357bac['author']['id'])return null;const _0x172130=_0xc2e786[_0x90f5('0xf6')](_0x3330fb)(_0x3330fb,_0x357bac,_0x2ad398[_0x90f5('0xf6')](_0x3330fb),_0x2ad398[_0x90f5('0xf6')](_0x357bac));if(!_0x172130)return null;return _0xc2e786['get'](_0x357bac)(_0x3330fb,_0x357bac,_0x2ad398['get'](_0x3330fb),_0x2ad398[_0x90f5('0xf6')](_0x357bac))?_0x172130[0x1][_0x90f5('0xa3')]&&_0x172130[0x1][_0x90f5('0xa3')]['length']?null:_0x172130:null;}}[_0x90f5('0x11f')](_0x33bfca){const _0x10b23c=Array[_0x90f5('0x128')](_0x33bfca),_0x2200f1=this[_0x90f5('0x123')]({'skipNotAttached':!0x0}),_0x8120a3=_0x2200f1['filter'](_0xb7d38a=>!_0x33bfca[_0x90f5('0x7a')](_0xb7d38a)),_0x2277d8=new Map(_0x10b23c[_0x90f5('0x12')](_0x315e3b=>[_0x315e3b,this['_suggestionFactory'][_0x90f5('0x6e')](_0x315e3b[_0x90f5('0x8a')],_0x315e3b[_0x90f5('0x3a')],_0x90f5('0x6a'))])),_0xcd0d8c=new Map(_0x2200f1[_0x90f5('0x12')](_0x4e21e1=>[_0x4e21e1,_0x4e21e1[_0x90f5('0x40')]()]));for(let _0x586fc9=0x0;_0x586fc9<_0x10b23c['length'];_0x586fc9++){if(_0x4609f8(this,_0x10b23c[_0x586fc9],_0x10b23c,_0x586fc9+0x1))return!0x0;}for(let _0x4ce348=0x0;_0x4ce348<_0x10b23c[_0x90f5('0x14')];_0x4ce348++){if(_0x4609f8(this,_0x10b23c[_0x4ce348],_0x8120a3,0x0))return!0x0;}return!0x1;function _0x4609f8(_0x12bb9c,_0x4b8abf,_0x967e5c,_0x1e60e3){for(let _0x11b944=_0x1e60e3;_0x11b944<_0x967e5c['length'];_0x11b944++){const _0x4866fc=_0x967e5c[_0x11b944];if(_0x4866fc[_0x90f5('0x8a')]!==_0x4b8abf[_0x90f5('0x8a')]||_0x4866fc[_0x90f5('0x99')]['id']!==_0x4b8abf['author']['id']||_0x4866fc['subType']!==_0x4b8abf['subType'])continue;const _0x4a3d9f=_0x2277d8['get'](_0x4b8abf),_0x5a5dbd=_0xcd0d8c[_0x90f5('0xf6')](_0x4b8abf),_0x54d642=_0xcd0d8c[_0x90f5('0xf6')](_0x4866fc),_0x21665c=_0x4b8abf['commentThread']&&_0x4b8abf['commentThread'][_0x90f5('0x14')],_0x318334=_0x4866fc[_0x90f5('0xa3')]&&_0x4866fc['commentThread'][_0x90f5('0x14')];if(!_0x21665c&&_0x4a3d9f(_0x54d642,_0x5a5dbd))return _0x12bb9c[_0x90f5('0xe5')](_0x4866fc,_0x4b8abf),_0xcd0d8c[_0x90f5('0xe8')](_0x4b8abf),!0x0;if(!_0x318334&&_0x4a3d9f(_0x5a5dbd,_0x54d642))return _0x12bb9c[_0x90f5('0xe5')](_0x4b8abf,_0x4866fc),_0xcd0d8c['delete'](_0x4866fc),!0x0;}return!0x1;}}[_0x90f5('0xe5')](_0x46fc78,_0x5087c6){if(_0x46fc78[_0x90f5('0x92')])for(const _0x52c428 of _0x5087c6[_0x90f5('0x40')]())_0x46fc78[_0x90f5('0x12e')](_0x52c428);else{const _0x4dde6c=_0x5087c6[_0x90f5('0x9a')]()[_0x90f5('0x10a')];this[_0x90f5('0x11e')](_0x46fc78,this[_0x90f5('0x46')][_0x90f5('0x98')](_0x46fc78[_0x90f5('0x9a')]()[_0x90f5('0x57')],_0x4dde6c));}_0x5087c6[_0x90f5('0x3e')]();}}class Dt{constructor(_0x3e261a){this[_0x90f5('0xdc')]=_0x3e261a,this[_0x90f5('0x46')]=_0x3e261a[_0x90f5('0xd8')],this[_0x90f5('0x8b')]=new Map(),this[_0x90f5('0x13f')]=new Map(),this[_0x90f5('0xfd')]();}['buildSuggestion'](_0x4e2a18,_0x5b313d,_0xdd1cf9,_0x1b8ee5,_0x247243,_0x2e0da4){return new _0x1600fa(this[_0x90f5('0x46')],{'type':_0x4e2a18,'subType':_0x5b313d,'id':_0xdd1cf9,'author':_0x1b8ee5,'creator':_0x1b8ee5,'attributes':_0x247243,'onAttributesChange':_0x2e0da4,'onAccept':(..._0x28a5ff)=>this[_0x90f5('0x6e')](_0x4e2a18,_0x5b313d,'accept')(..._0x28a5ff),'onDiscard':(..._0x22bd6d)=>this[_0x90f5('0x6e')](_0x4e2a18,_0x5b313d,_0x90f5('0xc7'))(..._0x22bd6d)});}[_0x90f5('0x0')](_0x5d41f4,_0x5668ff,_0x207b95,_0x19d309){const _0xf117e1=_0x5d41f4+':'+_0x5668ff+':'+_0x207b95;this[_0x90f5('0x8b')][_0x90f5('0x29')](_0xf117e1,_0x19d309);}['getSuggestionCallback'](_0x2d4ccc,_0x2520a5,_0x53f103){const _0x3694c1=_0x2d4ccc+':'+_0x2520a5+':'+_0x53f103;return this[_0x90f5('0x8b')]['get'](_0x3694c1)||this['_defaultCallbacks'][_0x90f5('0xf6')](_0x2d4ccc+':'+_0x53f103);}[_0x90f5('0xfd')](){const _0x4575d9=()=>{},_0x3cd589=_0x4511cc=>{_0x4511cc[_0x90f5('0x77')]((_0x515a6a,_0x3454b5)=>_0x515a6a[_0x90f5('0x57')][_0x90f5('0xe4')](_0x3454b5[_0x90f5('0x57')])?0x1:-0x1),this[_0x90f5('0x46')][_0x90f5('0xdb')](_0x27db17=>{for(const _0xa0ee13 of _0x4511cc){let _0x1f31d2;_0x1f31d2=_0xa0ee13['end'][_0x90f5('0x135')]&&_0xa0ee13['end']['parent']==_0xa0ee13[_0x90f5('0x57')]['nodeAfter']?_0x27db17['createSelection'](_0xa0ee13[_0x90f5('0x57')]['nodeAfter'],'on'):_0x27db17[_0x90f5('0xd3')](_0xa0ee13),this[_0x90f5('0x46')][_0x90f5('0x84')](_0x1f31d2,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x31162a=(_0x16cc7f,_0x4298fa)=>{this[_0x90f5('0x46')][_0x90f5('0xdb')](_0x39a1cc=>{const {commandName:_0x5530a7,commandParams:_0x5cf8e9=[]}=_0x4298fa,_0x1e8569=_0x16cc7f[_0x90f5('0x12')](_0x4dff00=>(_t(_0x4dff00)&&(_0x4dff00=this[_0x90f5('0x46')][_0x90f5('0x98')](_0x4dff00[_0x90f5('0x10a')])),_0x4dff00))[_0x90f5('0xee')](_0x23e5f9=>'$graveyard'!==_0x23e5f9[_0x90f5('0xa0')][_0x90f5('0x9b')]);if(_0x1e8569[_0x90f5('0x14')]<0x1)return;const _0x147189=Array[_0x90f5('0x128')](this[_0x90f5('0x46')][_0x90f5('0x54')][_0x90f5('0xbe')]['getRanges']())[_0x90f5('0x12')](_0x56943d=>_0x1bb84e[_0x90f5('0xd0')](_0x56943d));_0x39a1cc[_0x90f5('0x12d')](_0x1e8569);for(const _0x8fd6ef of this['_editor'][_0x90f5('0x30')][_0x90f5('0x30')]())_0x8fd6ef['refresh']();_0x5cf8e9[_0x90f5('0x129')]({'forceDefaultExecution':!0x0}),this[_0x90f5('0xdc')]['execute'](_0x5530a7,..._0x5cf8e9);const _0x277d5a=_0x147189['filter'](_0x1381e5=>_0x90f5('0xc9')!=_0x1381e5['root'][_0x90f5('0x9b')]);_0x277d5a[_0x90f5('0x14')]>0x0&&_0x39a1cc[_0x90f5('0x12d')](_0x277d5a);for(const _0x5333ba of _0x147189)_0x5333ba['detach']();});},_0xc1d288=(_0xe03e8d,_0x3a0f5e)=>0x1==_0xe03e8d[_0x90f5('0x14')]&&0x1==_0x3a0f5e['length']&&_0xe03e8d[0x0]['end']['isEqual'](_0x3a0f5e[0x0][_0x90f5('0x57')]),_0x1ec71b=(_0x1409e6,_0x4ff085,_0x200ff7,_0x15a99d)=>xt(_0x1409e6,_0x4ff085,_0x200ff7,_0x15a99d,this[_0x90f5('0x46')])?[_0x1409e6,_0x4ff085]:xt(_0x4ff085,_0x1409e6,_0x15a99d,_0x200ff7,this[_0x90f5('0x46')])?[_0x4ff085,_0x1409e6]:null;this[_0x90f5('0x13f')][_0x90f5('0x29')](_0x90f5('0x37'),_0x4575d9),this[_0x90f5('0x13f')][_0x90f5('0x29')](_0x90f5('0x33'),_0x3cd589),this['_defaultCallbacks'][_0x90f5('0x29')](_0x90f5('0x2e'),_0xc1d288),this['_defaultCallbacks'][_0x90f5('0x29')]('insertion:chain',_0x1ec71b),this[_0x90f5('0x13f')][_0x90f5('0x29')](_0x90f5('0x101'),_0x3cd589),this[_0x90f5('0x13f')][_0x90f5('0x29')](_0x90f5('0x73'),_0x4575d9),this['_defaultCallbacks'][_0x90f5('0x29')](_0x90f5('0x8d'),_0xc1d288),this['_defaultCallbacks'][_0x90f5('0x29')]('deletion:chain',_0x1ec71b),this[_0x90f5('0x13f')][_0x90f5('0x29')]('formatInline:accept',_0x31162a),this['_defaultCallbacks'][_0x90f5('0x29')]('formatInline:discard',_0x4575d9),this[_0x90f5('0x13f')][_0x90f5('0x29')](_0x90f5('0x88'),_0xc1d288),this['_defaultCallbacks'][_0x90f5('0x29')](_0x90f5('0x11'),_0x4575d9),this[_0x90f5('0x13f')]['set'](_0x90f5('0x9f'),_0x31162a),this[_0x90f5('0x13f')][_0x90f5('0x29')](_0x90f5('0xa4'),_0x4575d9),this[_0x90f5('0x13f')]['set'](_0x90f5('0x127'),_0xc1d288),this[_0x90f5('0x13f')][_0x90f5('0x29')](_0x90f5('0x85'),_0x4575d9);}}function Bt(_0x3d6326,_0x36cd1c,_0x51526f){for(const _0x16c6a4 of _0x36cd1c[_0x90f5('0x115')][_0x90f5('0x2a')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x16c6a4[_0x90f5('0xa0')]==_0x16c6a4)return!0x1;if(!_0x51526f['containsItem'](_0x16c6a4))return!0x1;if(_0x3d6326[_0x90f5('0x21')](_0x16c6a4)||_0x3d6326[_0x90f5('0xba')](_0x16c6a4))return!0x0;}return!0x1;}function _t(_0x2ab04f){return _0x2ab04f[_0x90f5('0x10a')][_0x90f5('0x115')]==_0x2ab04f['start']['nodeAfter']&&_0x2ab04f[_0x90f5('0x10a')]['isAtStart'];}function Mt(_0x444d5e,_0x5ab1c7,_0x14ef7d,_0x1d7533){const _0x2084e1=_0x15fec1=>!_0x15fec1[_0x90f5('0xcc')]['is']('$textProxy')&&!_0x1d7533[_0x90f5('0x21')](_0x15fec1[_0x90f5('0xcc')]),_0x49e63a=_0x444d5e[_0x90f5('0x57')][_0x90f5('0xe1')](_0x2084e1),_0x2a5dfb=_0x444d5e[_0x90f5('0x10a')][_0x90f5('0xe1')](_0x2084e1,{'direction':_0x90f5('0x27')});return(!_0x444d5e['start'][_0x90f5('0xec')](_0x49e63a)||!_0x444d5e[_0x90f5('0x10a')][_0x90f5('0xec')](_0x2a5dfb))&&(_0x49e63a['isBefore'](_0x2a5dfb)?_0x14ef7d['updateMarker'](_0x5ab1c7,{'range':_0x14ef7d[_0x90f5('0x98')](_0x49e63a,_0x2a5dfb)}):_0x14ef7d[_0x90f5('0xbb')](_0x5ab1c7),!0x0);}function $t(_0x2300a6){return _0x1db92d(_0x2300a6);}function Nt(_0x192be0){const _0x1d91f2=_0x192be0[_0x90f5('0x57')][_0x90f5('0xd4')];return _0x1d91f2&&_0x1d91f2['is'](_0x90f5('0xf'));}function Rt(_0x5a9eb3,_0xd8a3f9){const _0x2e9e7e=_0xd8a3f9[_0x90f5('0x6b')]['isObject'](_0x5a9eb3)||_0xd8a3f9[_0x90f5('0x6b')][_0x90f5('0xa9')](_0x5a9eb3);return _0xd8a3f9[_0x90f5('0x98')](_0xd8a3f9[_0x90f5('0xf5')](_0x5a9eb3,_0x90f5('0x109')),_0x2e9e7e?_0xd8a3f9['createPositionAfter'](_0x5a9eb3):_0xd8a3f9[_0x90f5('0xf5')](_0x5a9eb3,_0x90f5('0x10a')));}function xt(_0x531f57,_0x195460,_0x5d6f89,_0x541859,_0x999caf){if(_0x5d6f89[_0x90f5('0x10a')][_0x90f5('0xec')](_0x541859['start']))return!0x0;if(_0x531f57[_0x90f5('0x8a')]!=_0x195460[_0x90f5('0x8a')])return!0x1;if(!_0x5d6f89['end'][_0x90f5('0x53')](_0x541859[_0x90f5('0x57')]))return!0x1;const _0x1f93aa=_0x999caf[_0x90f5('0x98')](_0x5d6f89['end'],_0x541859[_0x90f5('0x57')])[_0x90f5('0x69')]();for(const _0x1082bd of _0x1f93aa)if([_0x90f5('0x18'),'elementEnd'][_0x90f5('0x90')](_0x1082bd['type'])&&_0x999caf[_0x90f5('0x6b')][_0x90f5('0xba')](_0x1082bd['item']))return!0x1;return!0x0;}