@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230722.0 → 0.0.0-nightly-20230724.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-20230722.0",
3
+ "version": "0.0.0-nightly-20230724.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-20230722.0",
43
- "ckeditor5-collaboration": "0.0.0-nightly-20230722.0",
42
+ "ckeditor5": "0.0.0-nightly-20230724.0",
43
+ "ckeditor5-collaboration": "0.0.0-nightly-20230724.0",
44
44
  "lodash-es": "4.17.21"
45
45
  },
46
46
  "engines": {
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2670=['markerNameToElements','lowest','sort','activeMarkers','getAttribute','trackChanges','isBefore','buildSuggestion','group','removed','isMultiRange','addClass','elementToElement','forceDefaultExecution','acceptSelectedSuggestions','Users','position','dataDowncast','formatInline:accept','marker-count','commentThread','unbind','creator','move','discard','getMarkers','_joinWithAdjacentSuggestions','howMany','registerPostFixer','removeMarker','get','track-changes-command-not-found','schema','getItems','isLimit','_suggestionState','reconvertMarker','documentSelection','push','_addThreadToSuggestion','_createSuggestion','_getExternalAuthor','markDeletion','_editor','toViewElement','next','document','getDifference','splice','addComment','hasComments','insertion:discard','_addSuggestionMarker','addSuggestionData','_model','model','setSelection','from','mapper','data-suggestion','accept','differ','forward','formatInline:discard','fromRange','multi','set','formatBlock:join','_refreshSuggestionsChain','ck-suggestion-marker--active','catch','enableReadOnlyMode','high','elementEnd','_onDiscard','data','previous','_enabledCommands','includes','rootName','execute','ck-suggestion-marker-formatBlock','editor','nodeAfter','_findSuggestions','range','addRange','notReady','getRanges','acceptAllSuggestions','conversion','never','insertContent','getCommentThread','attributes','isAfter','getMultiRangeId','_adapter','addMarkerName','setTo','update:suggestion','author','getUser','insertion:join','oldRange','deletion:discard','_descriptionFactory','suggestionLoaded','targetPosition','init','nodeBefore','removeAttribute','start','suggestion','change:_saved','_defaultCallbacks','deleteContent','getRange','getFirstRange','for','editing','markerName','getChanges','isExternal','formatBlock:discard','_trackFormatChanges','suggestion:','multipleBlocks','parent','markInsertion','updateMarker','values','then','_saved','formatBlock','originalSuggestionId','delete','isTouching','_commentsRepository','createSelection','deletion:accept','name','filter','addMarker:suggestion','markMultiRangeBlockFormat','getChangedMarkers','track-changes-suggestion-not-found','add','isInContent','moveTargetPosition','markerReady','chain','deletion','isAtStart','writer','fromCharCode','createPositionAt','getCustomProperty','remove','splitPosition','collaboration.channelId','_checkSuggestionCorrectness','fetchCommentThread','createdAt','_suggestionFactory','change:activeMarkers','isIntersectingWithRange','insertion','markerToHighlight','ck-suggestion-marker','track-changes-adapter-missing-getsuggestion','always','isEqual','getSuggestionCallback','deletion:chain','trackChanges.mergeNestedSuggestions','normal','detach','addMarker','widget','subType','removeMarker:suggestion:formatBlock','containerElement','authoredAt','getNearestSelectionRange','low','acceptSuggestion','end','insert','isBlock','discardSelectedSuggestions','formatInline','_updateSuggestionData','default','markMultiRangeInsertion','addHighlight','getWalker','every','addMarker:suggestion:formatBlock','addUser','config','locale','after','markInlineFormat','applyOperation','markBlockFormat','deletion:','$graveyard','track-changes-suggestion-data-mismatch','getLastMatchingPosition','createRange','elementStart','before','addCommentThread','markers','_cutOutSuggestionMarker','error-saving-suggestion-data-suggestion-discarded','highest','type','clone','trackChanges.trackFormatChanges','containsRangeInObject','$textProxy','options','createPositionBefore','some','has','trackChangesCommand','$marker','clear','commandName','adapter','_getSuggestionData','split','removeComment','formatInline:chain','element','_joinSuggestions','enableCommand','removeMarkers','size','containsItem','isSelectable','unbindElementFromMarkerName','_customCallbacks','isOwn','item','showSuggestionHighlights','getFirstMarker','formatInline:join','getAllAdjacentSuggestions','getShiftedBy','change:data','rejected','consume','isCollapsed','markMultiRangeDeletion','_getAuthorFromId','addSuggestion','formatInline:','getSuggestion','setAttribute','_handleNewSuggestionMarker','isUndo','value','createRangeIn','refresh','map','dataReady','_isForcedDefaultExecutionBlock','join','_mergeNestedSuggestions','editingDowncast','getSuggestions','commands','length','plugins','change','isAtEnd','CommentsRepository','removeClass','@external','suggestionUnloaded','_setSuggestionData','formatBlock:','PENDING_ACTION_SUGGESTION','isObject','containsRange','formatGroupId','_splitMarkerName','_breakSuggestionMarker','listenTo','ready','isInsideObject','consumable','track-changes-adapter-already-set','root','_setSuggestionRange','_suggestions','define','_registerDefaultCallbacks','pluginName','isRemovable','fire','discardSuggestion','newRange','skipNestingCheck','_rangeIsInLocalUserInsertion','stop','insertion:','getIntersection','hasSuggestion'];(function(_0x1fdf7e,_0x2670dd){const _0x227b69=function(_0x46b610){while(--_0x46b610){_0x1fdf7e['push'](_0x1fdf7e['shift']());}};_0x227b69(++_0x2670dd);}(_0x2670,0xe9));const _0x227b=function(_0x1fdf7e,_0x2670dd){_0x1fdf7e=_0x1fdf7e-0x0;let _0x227b69=_0x2670[_0x1fdf7e];return _0x227b69;};import{Plugin as _0x164cd4,PendingActions as _0x339f97}from'ckeditor5/src/core';import{LiveRange as _0x4a1046}from'ckeditor5/src/engine';import{CKEditorError as _0x4973ce,uid as _0x5653c7,priorities as _0x32e577,logWarning as _0x33e2a1}from'ckeditor5/src/utils';import{toWidget as _0x304af6}from'ckeditor5/src/widget';import{Users as _0x42ca51,hashObject as _0x34e9b7}from'ckeditor5-collaboration/src/collaboration-core';import _0x4113ec from'./commands/trackchangescommand';import _0x101bd8 from'./commands/acceptsuggestioncommand';import _0x34e9ae from'./commands/discardsuggestioncommand';import _0x374ea4 from'./commands/executeonallsuggestionscommand';import _0x564f8e from'./commands/executeonselectedsuggestionscommand';import _0x3a4c4e from'./suggestion';import _0x2ad852 from'./suggestiondescriptionfactory';import _0x305ebe from'./integrations/alignment';import _0x31020c from'./integrations/basicstyles';import _0x43340f from'./integrations/blockquote';import _0x5bd8f4 from'./integrations/ckbox';import _0x492806 from'./integrations/codeblock';import _0x44df05 from'./integrations/comments';import _0xaae51 from'./integrations/deletecommand';import _0xeb8609 from'./integrations/documentlist';import _0x3f4bc0 from'./integrations/entercommand';import _0x468391 from'./integrations/findandreplace';import _0x27b966 from'./integrations/font';import _0x43be26 from'./integrations/formatpainter';import _0x5507ec from'./integrations/heading';import _0x16747b from'./integrations/highlight';import _0x6b6c73 from'./integrations/horizontalline';import _0x2186c8 from'./integrations/htmlembed';import _0x3851b5 from'./integrations/image';import _0x2a02e9 from'./integrations/imagereplace';import _0x4f99d6 from'./integrations/importword';import _0x1cc3c8 from'./integrations/indent';import _0x2c7e69 from'./integrations/inputcommand';import _0x4b2cde from'./integrations/link';import _0x2da648 from'./integrations/list';import _0x5cc5c0 from'./integrations/listproperties';import _0x57542b from'./integrations/mediaembed';import _0x57b40e from'./integrations/mention';import _0x594474 from'./integrations/pagebreak';import _0x1e49b3 from'./integrations/paragraph';import _0x5b6dec from'./integrations/removeformat';import _0xbbd623 from'./integrations/restrictededitingmode';import _0x52d0ff from'./integrations/shiftentercommand';import _0x7a1b0b from'./integrations/standardeditingmode';import _0x67f963 from'./integrations/style';import _0x57bb14 from'./integrations/table';import _0x5b41fe from'./integrations/tablemergesplit';import _0x21a880 from'./integrations/tableheadings';import _0x45f0a5 from'./integrations/tableclipboard';import _0x443f85 from'./integrations/tablecolumnresize';import _0x1d0791 from'./integrations/template';import _0x4fd23e from'./integrations/tableofcontents';import _0x50e375 from'./integrations/title';import _0x41007b from'./integrations/undo';import{getTranslation as _0x4bbf9e}from'./utils/common-translations';import _0x42f88d from'./integrations/tablecaption';import _0xe7cc93 from'./integrations/documentlistproperties';import _0x513cd8 from'./integrations/tableproperties';export default class p extends _0x164cd4{static get['requires'](){return[_0x227b('0x2e'),_0x42ca51,_0x339f97,_0x305ebe,_0x31020c,_0x43340f,_0x5bd8f4,_0x492806,_0x44df05,_0xaae51,_0xeb8609,_0xe7cc93,_0x3f4bc0,_0x468391,_0x27b966,_0x43be26,_0x5507ec,_0x16747b,_0x6b6c73,_0x2186c8,_0x3851b5,_0x2a02e9,_0x4f99d6,_0x1cc3c8,_0x2c7e69,_0x4b2cde,_0x2da648,_0x5cc5c0,_0x57542b,_0x57b40e,_0x594474,_0x1e49b3,_0x5b6dec,_0xbbd623,_0x52d0ff,_0x7a1b0b,_0x67f963,_0x57bb14,_0x5b41fe,_0x21a880,_0x42f88d,_0x45f0a5,_0x443f85,_0x4fd23e,_0x513cd8,_0x1d0791,_0x50e375,_0x41007b];}static get[_0x227b('0x44')](){return'TrackChangesEditing';}constructor(_0x2eb170){function _0x309b17(_0x125cdd){return _0x125cdd['map'](_0x526c83=>String[_0x227b('0xea')](_0x526c83))['join']('');}super(_0x2eb170),this['set'](_0x227b('0x52'),[]),this['on'](_0x227b('0xf4'),(_0x16a9e2,_0x6fa608,_0x9be783,_0x54cf8f)=>{this[_0x227b('0x85')][_0x227b('0x2c')](()=>{for(const _0x4af81a of[..._0x54cf8f,..._0x9be783])this[_0x227b('0x85')][_0x227b('0x125')][_0x227b('0x131')](_0x4af81a)&&_0x2eb170[_0x227b('0xc7')][_0x227b('0x73')](_0x4af81a);});}),this[_0x227b('0xb9')]=new _0x2ad852(this[_0x227b('0xa1')][_0x227b('0x86')]['schema'],this['editor'][_0x227b('0x118')]),this[_0x227b('0xb0')]=null,this[_0x227b('0xf3')]=new Dt(this['editor']),this[_0x227b('0x41')]=new Map(),this['_commentsRepository']=_0x2eb170[_0x227b('0x2b')][_0x227b('0x6d')]('CommentsRepository'),this['_enabledCommands']=new Set(),this[_0x227b('0x85')]=this[_0x227b('0xa1')][_0x227b('0x86')],this[_0x227b('0x72')]=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x2eb170[_0x227b('0x117')][_0x227b('0x42')]('trackChanges.trackFormatChanges',_0x227b('0x110')),this[_0x227b('0xcc')]=_0x2eb170[_0x227b('0x117')]['get'](_0x227b('0x12b')),_0x2eb170[_0x227b('0x117')][_0x227b('0x42')](_0x227b('0xfe'),!0x0),this[_0x227b('0x26')]=_0x2eb170[_0x227b('0x117')][_0x227b('0x6d')]('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new _0x4113ec(_0x2eb170,this[_0x227b('0x9c')]),this[_0x309b17([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x309b17([0x34,0x30,0x34,0x36,0x31,0x34,0x34,0x34]);}[_0x227b('0xbc')](){const _0x37d5de=this['editor'];_0x37d5de[_0x227b('0xa9')][_0x227b('0xc6')]('editingDowncast')[_0x227b('0xf7')]({'model':'suggestion','view':_0x12fc34=>{const {id:_0x487065,type:_0xff73b2}=this[_0x227b('0x38')](_0x12fc34[_0x227b('0xc8')]),_0x3219c9=['ck-suggestion-marker','ck-suggestion-marker-'+_0xff73b2];let _0x518d65=0xbb8;return this[_0x227b('0x52')]['includes'](_0x12fc34[_0x227b('0xc8')])&&(_0x3219c9[_0x227b('0x75')](_0x227b('0x94')),_0x518d65=0xbc2),'deletion'==_0xff73b2&&(_0x518d65+=0x5),{'classes':_0x3219c9,'attributes':{'data-suggestion':_0x487065},'priority':_0x518d65};}}),_0x37d5de[_0x227b('0xa9')][_0x227b('0xc6')](_0x227b('0x60'))[_0x227b('0xe2')](_0x2a5c5c=>{_0x2a5c5c['on'](_0x227b('0xde'),(_0x46e2d7,_0x42c771,_0x5b42ff)=>{if(!_0x5b42ff[_0x227b('0x12e')]['showSuggestionHighlights'])return;const _0x1b45b5=_0x42c771['item'];if(!_0x1b45b5)return;const _0xd314fb=_0x5b42ff[_0x227b('0x89')][_0x227b('0x7b')](_0x1b45b5);_0x37d5de['model'][_0x227b('0x6f')][_0x227b('0x35')](_0x1b45b5)&&_0xd314fb&&!_0xd314fb[_0x227b('0xec')](_0x227b('0x102'))&&_0xd314fb['is'](_0x227b('0x105'))&&_0x304af6(_0xd314fb,_0x5b42ff[_0x227b('0xe9')]);},{'priority':'high'});}),_0x37d5de[_0x227b('0xa9')][_0x227b('0xc6')]('dataDowncast')['markerToHighlight']({'model':_0x227b('0xc0'),'view':(_0x5c7662,_0x4cc8e9)=>{if(!_0x4cc8e9[_0x227b('0x12e')][_0x227b('0xe')])return null;const {type:_0x5ab48a}=this[_0x227b('0x38')](_0x5c7662[_0x227b('0xc8')]);return{'classes':['ck-suggestion-marker','ck-suggestion-marker-'+_0x5ab48a],'priority':0xbb8};}});const _0x2169dc=({showActiveMarkers:_0x3ca60c=!0x0}={})=>(_0x813ac7,_0x2e1bca,_0x20337e)=>{if(!_0x2e1bca[_0x227b('0xd')])return;if(_0x2e1bca[_0x227b('0xd')]['is']('selection'))return void _0x20337e[_0x227b('0x3d')][_0x227b('0x15')](_0x2e1bca[_0x227b('0xd')],_0x813ac7['name']);const _0x3a7b5a=_0x20337e[_0x227b('0x89')]['toViewElement'](_0x2e1bca[_0x227b('0xd')]);if(!(_0x2e1bca[_0x227b('0xd')]['is'](_0x227b('0x3'))&&_0x37d5de[_0x227b('0x86')][_0x227b('0x6f')][_0x227b('0x10c')](_0x2e1bca['item'])&&!_0x3a7b5a[_0x227b('0xec')](_0x227b('0x112'))))return;const {id:_0x48e7bb}=this[_0x227b('0x38')](_0x2e1bca[_0x227b('0xc8')]);_0x20337e[_0x227b('0xe9')][_0x227b('0x5a')]([_0x227b('0xf8'),_0x227b('0xa0')],_0x3a7b5a),_0x20337e[_0x227b('0xe9')][_0x227b('0x1c')]('data-suggestion',_0x48e7bb,_0x3a7b5a),_0x20337e[_0x227b('0x89')]['bindElementToMarker'](_0x3a7b5a,_0x2e1bca['markerName']),_0x3ca60c&&(this[_0x227b('0x52')][_0x227b('0x9d')](_0x2e1bca[_0x227b('0xc8')])?_0x20337e[_0x227b('0xe9')][_0x227b('0x5a')](_0x227b('0x94'),_0x3a7b5a):_0x20337e[_0x227b('0xe9')][_0x227b('0x2f')]('ck-suggestion-marker--active',_0x3a7b5a));for(const _0x2e03aa of _0x37d5de[_0x227b('0x86')][_0x227b('0x20')](_0x2e1bca[_0x227b('0xd')])[_0x227b('0x70')]())_0x20337e[_0x227b('0x3d')][_0x227b('0x15')](_0x2e03aa,_0x813ac7['name']);_0x20337e[_0x227b('0x3d')][_0x227b('0x15')](_0x2e1bca[_0x227b('0xd')],_0x813ac7[_0x227b('0xdc')]);};_0x37d5de[_0x227b('0xa9')][_0x227b('0xc6')](_0x227b('0x60'))['add'](_0x21cf92=>{_0x21cf92['on'](_0x227b('0x115'),(_0x2b738b,_0x447088,_0x244e27)=>{_0x244e27[_0x227b('0x12e')]['showSuggestionHighlights']&&_0x2169dc({'showActiveMarkers':!0x1})(_0x2b738b,_0x447088,_0x244e27);},{'priority':_0x227b('0x128')});}),_0x37d5de[_0x227b('0xa9')]['for']('dataDowncast')['markerToData']({'model':_0x227b('0xc0'),'view':(_0x172c81,_0x42ca45)=>_0x42ca45[_0x227b('0x12e')][_0x227b('0xe')]?null:{'group':_0x227b('0xc0'),'name':_0x172c81['substr'](0xb)}}),_0x37d5de[_0x227b('0xa9')][_0x227b('0xc6')]('upcast')[_0x227b('0x5b')]({'view':{'name':_0x227b('0xc0'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5607f8,{writer:_0x2e1e2b})=>{let _0x2e5813=_0x227b('0xcd')+_0x5607f8['getAttribute']('suggestion-type')+':'+_0x5607f8[_0x227b('0x53')]('id');return _0x5607f8[_0x227b('0x53')](_0x227b('0x62'))&&(_0x2e5813+=':'+_0x5607f8[_0x227b('0x53')](_0x227b('0x62'))),_0x2e1e2b['createElement'](_0x227b('0x133'),{'data-name':_0x2e5813});}}),_0x37d5de[_0x227b('0xa9')]['for']('upcast')['dataToMarker']({'view':_0x227b('0xc0')}),_0x37d5de[_0x227b('0xa9')][_0x227b('0xc6')](_0x227b('0x27'))[_0x227b('0xe2')](_0x17a88e=>{_0x17a88e['on'](_0x227b('0x115'),_0x2169dc(),{'priority':_0x227b('0x97')});}),_0x37d5de[_0x227b('0xa9')][_0x227b('0xc6')]('editingDowncast')[_0x227b('0xe2')](_0x3ce41a=>{_0x3ce41a['on'](_0x227b('0x104'),(_0x4f5e6a,_0x5a9b68,_0x46bf89)=>{const _0x90e3e0=_0x46bf89[_0x227b('0x89')][_0x227b('0x4f')](_0x5a9b68[_0x227b('0xc8')]);if(_0x90e3e0)for(const _0x30802e of _0x90e3e0)_0x30802e['getCustomProperty']('addHighlight')||(_0x46bf89[_0x227b('0xe9')][_0x227b('0x2f')]([_0x227b('0xf8'),_0x227b('0xa0'),'ck-suggestion-marker--active'],_0x30802e),_0x46bf89[_0x227b('0xe9')][_0x227b('0xbe')](_0x227b('0x8a'),_0x30802e),_0x46bf89[_0x227b('0x89')][_0x227b('0xa')](_0x30802e,_0x5a9b68[_0x227b('0xc8')]));},{'priority':_0x227b('0x97')});}),_0x37d5de['model'][_0x227b('0x7d')][_0x227b('0x6b')](_0x15fdcb=>{let _0x1a184e=!0x1;const _0x46e891=Array['from'](_0x37d5de['model'][_0x227b('0x7d')][_0x227b('0x8c')][_0x227b('0xe0')]()),_0x43a73b=new Set();for(const {name:_0x4fa5e5,data:_0x4b05e9}of _0x46e891){const {group:_0x4b5316,type:_0x29c934,id:_0x1b38cf}=this[_0x227b('0x38')](_0x4fa5e5);if(_0x227b('0xc0')!==_0x4b5316)continue;const _0x2484a3=this[_0x227b('0x41')][_0x227b('0x6d')](_0x1b38cf);if(null!=_0x4b05e9['newRange']){_0x227b('0x10e')==_0x29c934&&(_0x1a184e=_0x1a184e||Mt(_0x4b05e9[_0x227b('0x48')],_0x4fa5e5,_0x15fdcb,_0x37d5de[_0x227b('0x86')][_0x227b('0x6f')]));if(_0x4b05e9[_0x227b('0x48')][_0x227b('0x16')]||_0x227b('0x11e')==_0x4b05e9[_0x227b('0x48')][_0x227b('0x3f')][_0x227b('0x9e')]||_0x227b('0xd5')==_0x29c934&&!Nt(_0x4b05e9['newRange'])||'deletion'==_0x29c934&&!(!_t(_0x2425c2=_0x4b05e9[_0x227b('0x48')])&&!function(_0x35147f){return _0x35147f['start']['parent']==_0x35147f[_0x227b('0x10a')][_0x227b('0xbd')]&&_0x35147f['start']['isAtEnd'];}(_0x2425c2)))_0x15fdcb[_0x227b('0x6c')](_0x4fa5e5),_0x1a184e=!0x0;else{if(!_0x2484a3||!_0x2484a3['isInContent'])continue;_0x43a73b[_0x227b('0xe2')](_0x2484a3);}}}var _0x2425c2;return _0x43a73b['size']>0x0&&(_0x1a184e=!!this[_0x227b('0x69')](_0x43a73b)||_0x1a184e),_0x1a184e;}),_0x37d5de[_0x227b('0x86')][_0x227b('0x7d')][_0x227b('0x6b')](_0x39147b=>{let _0x213b16=!0x1;for(const _0x4eb0e1 of _0x37d5de[_0x227b('0x86')][_0x227b('0x7d')][_0x227b('0x8c')][_0x227b('0xc9')]()){if(_0x227b('0x10b')!=_0x4eb0e1['type'])continue;const _0x9c2365=_0x4eb0e1[_0x227b('0x5f')][_0x227b('0x12')](_0x4eb0e1[_0x227b('0x2a')]);if(_0x9c2365[_0x227b('0x2d')])for(const _0x3e500f of this['_suggestions']['values']()){if(_0x3e500f[_0x227b('0x59')]||!_0x3e500f[_0x227b('0xe3')])continue;if('formatBlock'!=_0x3e500f[_0x227b('0x129')])continue;const _0x4b5135=_0x3e500f['getFirstRange']();if(_0x4b5135['start'][_0x227b('0xcf')]!=_0x4b5135[_0x227b('0x10a')]['parent']&&_0x4b5135[_0x227b('0x10a')]['isEqual'](_0x4eb0e1['position'])){const _0x45cb10=_0x37d5de[_0x227b('0x86')]['createRange'](_0x4b5135[_0x227b('0xbf')],_0x9c2365);_0x39147b[_0x227b('0xd1')](_0x3e500f[_0x227b('0xf')](),{'range':_0x45cb10}),_0x213b16=!0x0;}}}return _0x213b16;}),_0x37d5de[_0x227b('0x86')][_0x227b('0x125')]['on'](_0x227b('0xb3'),(_0x58ad9f,_0x3142b1,_0x121e19)=>{if(null==_0x121e19){const {id:_0x12009b}=this[_0x227b('0x38')](_0x3142b1[_0x227b('0xdc')]),_0x2e4ba3=this[_0x227b('0x41')][_0x227b('0x6d')](_0x12009b);_0x2e4ba3&&_0x2e4ba3[_0x227b('0xb1')](_0x3142b1['name']);}}),_0x37d5de[_0x227b('0x86')][_0x227b('0x7d')]['on'](_0x227b('0x13'),()=>{const _0x577924=Array[_0x227b('0x88')](_0x37d5de[_0x227b('0x86')][_0x227b('0x7d')][_0x227b('0x8c')][_0x227b('0xe0')]())[_0x227b('0xdd')](_0x378a70=>_0x227b('0xc0')===this[_0x227b('0x38')](_0x378a70[_0x227b('0xdc')])[_0x227b('0x57')]);if(0x0===_0x577924[_0x227b('0x2a')])return;_0x577924[_0x227b('0x51')]((_0x35d2e5,_0x48e547)=>{const _0x5deb82=_0x35d2e5[_0x227b('0x9a')]['oldRange'],_0x33d9f6=_0x48e547[_0x227b('0x9a')]['oldRange'];return null===_0x5deb82&&null===_0x33d9f6?0x0:null===_0x5deb82&&null!==_0x33d9f6?-0x1:null!==_0x5deb82&&null===_0x33d9f6?0x1:_0x5deb82[_0x227b('0xbf')][_0x227b('0x55')](_0x33d9f6[_0x227b('0xbf')])?-0x1:0x1;});const _0x57819d=new Set(),_0x27a969=new Set();for(const {name:_0x3a0c8e,data:_0x45b042}of _0x577924){const {id:_0x1b77ed}=this[_0x227b('0x38')](_0x3a0c8e);if(null===_0x45b042[_0x227b('0xb7')]){const _0x126fd7=this[_0x227b('0x1d')](_0x3a0c8e);_0x27a969[_0x227b('0xe2')](_0x126fd7);}else{const _0x4b0c26=this[_0x227b('0x41')][_0x227b('0x6d')](_0x1b77ed);null!==_0x45b042[_0x227b('0x48')]||_0x4b0c26[_0x227b('0xe3')]?(_0x57819d[_0x227b('0xe2')](_0x4b0c26['head']),_0x27a969['add'](_0x4b0c26)):this['_removeSuggestion'](_0x4b0c26);}}_0x27a969[_0x227b('0x7')]>0x0&&this[_0x227b('0x93')](_0x27a969);for(const _0xdcb7f6 of _0x57819d)this[_0x227b('0x46')]('suggestionChanged',_0xdcb7f6);}),_0x37d5de[_0x227b('0x86')]['on'](_0x227b('0x11b'),(_0xc697ec,_0x2f3b9c)=>{const _0x284dca=_0x2f3b9c[0x0];if(!this[_0x227b('0x41')][_0x227b('0x7')])return;if(!_0x284dca['isDocumentOperation'])return;if(_0x284dca['batch'][_0x227b('0x1e')]||!_0x284dca['batch']['isLocal'])return;let _0x2d276d,_0x311c26;switch(_0x284dca[_0x227b('0x129')]){case _0x227b('0x10b'):_0x2d276d=_0x37d5de['model'][_0x227b('0xeb')](_0x284dca[_0x227b('0x5f')]),_0x311c26=_0x2d276d['getShiftedBy'](_0x284dca[_0x227b('0x6a')]);break;case'split':_0x2d276d=_0x37d5de['model'][_0x227b('0xeb')](_0x284dca[_0x227b('0xee')]),_0x311c26=_0x37d5de[_0x227b('0x86')][_0x227b('0xeb')](_0x284dca[_0x227b('0xe4')]);break;case _0x227b('0x66'):_0x2d276d=_0x37d5de['model'][_0x227b('0xeb')](_0x284dca[_0x227b('0xbb')]),_0x311c26=_0x2d276d['getShiftedBy'](_0x284dca[_0x227b('0x6a')]);break;default:return;}const _0x43ab6f=_0x37d5de[_0x227b('0x86')]['createRange'](_0x2d276d,_0x311c26);_0x37d5de[_0x227b('0x86')][_0x227b('0x2c')](()=>{for(const {suggestion:_0x4f76be,meta:_0x89d7ff}of this[_0x227b('0xa3')](_0x43ab6f)){if(_0x4f76be[_0x227b('0x59')])continue;if(_0x227b('0x10e')==_0x4f76be[_0x227b('0x129')])continue;const _0x3cf53f=_0x4f76be['data']&&_0x4f76be[_0x227b('0x9a')][_0x227b('0xce')];(_0x227b('0xd5')!=_0x4f76be[_0x227b('0x129')]||'split'==_0x284dca[_0x227b('0x129')]&&!_0x3cf53f)&&(_0x89d7ff[_0x227b('0x12c')]||_0x227b('0xf6')==_0x4f76be[_0x227b('0x129')]&&_0x89d7ff[_0x227b('0xc')]||_0x4f76be[_0x227b('0xc5')]()[_0x227b('0x36')](_0x43ab6f)&&this[_0x227b('0x39')](_0x4f76be,_0x2d276d,_0x311c26));}});},{'priority':_0x227b('0x50')}),_0x37d5de['model']['on']('deleteContent',(_0x5e45ec,_0x5cd623)=>{const _0x1e1924=_0x5cd623[0x0],_0xa5690=_0x5cd623[0x1];if(_0xa5690&&_0xa5690['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x227b('0x132')][_0x227b('0x1f')])return;if(_0x1e1924[_0x227b('0x16')])return;const _0xba6551=_0x37d5de[_0x227b('0x86')][_0x227b('0x6f')],{start:_0x5361cf,end:_0x569734}=_0x1e1924[_0x227b('0xc5')](),_0x3783dd=_0x5361cf[_0x227b('0xa2')]&&_0xba6551[_0x227b('0x71')](_0x5361cf[_0x227b('0xa2')])?null:_0xba6551[_0x227b('0x107')](_0x5361cf,_0x227b('0x8d')),_0x4b2eb6=_0x569734[_0x227b('0xbd')]&&_0xba6551[_0x227b('0x71')](_0x569734[_0x227b('0xbd')])?null:_0xba6551['getNearestSelectionRange'](_0x569734,'backward'),_0x30bb09=_0x37d5de[_0x227b('0x86')][_0x227b('0x121')](_0x3783dd?_0x3783dd['start']:_0x5361cf,_0x4b2eb6?_0x4b2eb6[_0x227b('0x10a')]:_0x569734);_0x37d5de[_0x227b('0x86')]['change'](_0x3e538b=>{this[_0x227b('0x79')](_0x30bb09);const _0x921ade=_0x37d5de[_0x227b('0x86')]['schema'][_0x227b('0x107')](_0x30bb09[_0x227b('0xbf')]);_0x1e1924['is'](_0x227b('0x74'))?_0x3e538b['setSelection'](_0x921ade):_0x1e1924[_0x227b('0xb2')](_0x921ade);}),_0x5e45ec['stop']();},{'priority':_0x32e577[_0x227b('0xff')]+0xa}),_0x37d5de[_0x227b('0x86')]['on'](_0x227b('0xab'),(_0xcd0ce8,_0x4feafd)=>{const _0x2837e4=_0x4feafd[_0x4feafd[_0x227b('0x2a')]-0x1];_0x2837e4&&_0x2837e4['forceDefaultExecution']||this[_0x227b('0x24')]||this['trackChangesCommand']['value']&&(_0x37d5de['model'][_0x227b('0x2c')](()=>{let _0x5f5314=_0x37d5de['model'][_0x227b('0xab')](_0x4feafd[0x0],_0x4feafd[0x1],_0x4feafd[0x2],{'forceDefaultExecution':!0x0});if(!_0x5f5314)return;_0xcd0ce8['return']=_0x5f5314[_0x227b('0x12a')]();const _0x267d6f=_0x5f5314[_0x227b('0x10a')][_0x227b('0xbd')],_0x17d0d4=_0x37d5de[_0x227b('0x86')]['schema'];_0x267d6f&&_0x17d0d4[_0x227b('0x10c')](_0x267d6f)&&!_0x17d0d4[_0x227b('0x35')](_0x267d6f)&&(_0x5f5314=_0x37d5de[_0x227b('0x86')]['createRange'](_0x5f5314['start'],_0x37d5de[_0x227b('0x86')]['createPositionAt'](_0x267d6f,'end'))),this[_0x227b('0xd0')](_0x5f5314);}),_0xcd0ce8[_0x227b('0x4b')]());},{'priority':_0x227b('0x97')}),this['editor'][_0x227b('0x29')]['add'](_0x227b('0x54'),this[_0x227b('0x132')]),this['enableCommand'](_0x227b('0x54'));const _0x5711e9=new _0x101bd8(_0x37d5de,this[_0x227b('0x41')]);_0x37d5de[_0x227b('0x29')][_0x227b('0xe2')](_0x227b('0x109'),_0x5711e9),this[_0x227b('0x5')]('acceptSuggestion');const _0x40b5bf=new _0x34e9ae(_0x37d5de,this['_suggestions']);_0x37d5de[_0x227b('0x29')]['add']('discardSuggestion',_0x40b5bf),this[_0x227b('0x5')](_0x227b('0x47')),_0x37d5de[_0x227b('0x29')][_0x227b('0xe2')](_0x227b('0xa8'),new _0x374ea4(_0x37d5de,_0x5711e9,this[_0x227b('0x41')])),this[_0x227b('0x5')](_0x227b('0xa8')),_0x37d5de[_0x227b('0x29')][_0x227b('0xe2')]('discardAllSuggestions',new _0x374ea4(_0x37d5de,_0x40b5bf,this[_0x227b('0x41')])),this[_0x227b('0x5')]('discardAllSuggestions'),_0x37d5de[_0x227b('0x29')][_0x227b('0xe2')]('acceptSelectedSuggestions',new _0x564f8e(_0x37d5de,_0x5711e9,this[_0x227b('0x41')])),this['enableCommand'](_0x227b('0x5d')),_0x37d5de[_0x227b('0x29')][_0x227b('0xe2')](_0x227b('0x10d'),new _0x564f8e(_0x37d5de,_0x40b5bf,this[_0x227b('0x41')])),this[_0x227b('0x5')](_0x227b('0x10d'));const _0x45931a=_0x37d5de[_0x227b('0x2b')]['get'](_0x227b('0x2e'));this['listenTo'](_0x45931a,_0x227b('0x80'),(_0x47daba,{threadId:_0x29635b})=>{const _0x2fee9d=this[_0x227b('0x41')][_0x227b('0x6d')](_0x29635b);_0x2fee9d&&_0x2fee9d[_0x227b('0x63')]&&0x1===_0x2fee9d[_0x227b('0x63')][_0x227b('0x2a')]&&this[_0x227b('0x10f')](_0x29635b,{'hasComments':!0x0});},{'priority':_0x227b('0x108')}),this[_0x227b('0x3a')](_0x45931a,_0x227b('0x1'),(_0x5c6a4a,{threadId:_0x5f3a08})=>{const _0x596fee=this['_suggestions'][_0x227b('0x6d')](_0x5f3a08);_0x596fee&&_0x596fee[_0x227b('0x63')]&&!_0x596fee[_0x227b('0x63')][_0x227b('0x2a')]&&this[_0x227b('0x10f')](_0x5f3a08,{'hasComments':!0x1});},{'priority':_0x227b('0x108')});}set['adapter'](_0x361792){if(this[_0x227b('0xb0')])throw new _0x4973ce(_0x227b('0x3e'),this);this[_0x227b('0xb0')]=_0x361792;}get[_0x227b('0x136')](){return this[_0x227b('0xb0')];}[_0x227b('0x28')]({skipNotAttached:_0x3f5d84=!0x1,toJSON:_0xd22461=!0x1}={}){const _0x393468=[];for(const _0x1a0888 of this['_suggestions'][_0x227b('0xd2')]())_0x3f5d84&&!_0x1a0888['isInContent']||_0x393468[_0x227b('0x75')](_0x1a0888);return _0xd22461?_0x393468[_0x227b('0x22')](_0x1c4ad4=>_0x1c4ad4['toJSON']()):_0x393468;}['getSuggestion'](_0x2f1707){const _0x5c16ca=this[_0x227b('0x41')]['get'](_0x2f1707);if(!_0x5c16ca)throw new _0x4973ce(_0x227b('0xe1'),this);return _0x5c16ca;}[_0x227b('0x4e')](_0x42f65f){return this[_0x227b('0x41')][_0x227b('0x131')](_0x42f65f);}[_0x227b('0x84')](_0x3c1496){const {authorId:_0x28b2b9,id:_0x3cadb2,attributes:_0x46b72a}=_0x3c1496,[_0x3d7502,_0x34e724]=_0x3c1496[_0x227b('0x129')]['split'](':'),_0x576f10=this['_suggestions'][_0x227b('0x6d')](_0x3cadb2)||this[_0x227b('0x77')](_0x3d7502,_0x34e724,_0x3cadb2,_0x28b2b9,_0x46b72a);if(this[_0x227b('0x76')](_0x576f10),this[_0x227b('0xf0')](_0x576f10,_0x3d7502,_0x34e724||null,_0x28b2b9),_0x576f10['createdAt']=_0x3c1496[_0x227b('0xf2')],_0x46b72a&&_0x46b72a['@external']){const _0x8f03f4=_0x46b72a[_0x227b('0x30')],_0x6a7cee=this[_0x227b('0x78')](_0x8f03f4['authorName']);_0x576f10['authoredAt']=_0x8f03f4[_0x227b('0xf2')],_0x576f10[_0x227b('0xb4')]=_0x6a7cee,_0x576f10[_0x227b('0xca')]=!0x0;}else _0x576f10[_0x227b('0x106')]=_0x3c1496[_0x227b('0xf2')];switch(_0x3c1496[_0x227b('0x9a')]&&(_0x576f10[_0x227b('0x9a')]=_0x3c1496[_0x227b('0x9a')]),_0x3c1496[_0x227b('0xad')]&&(_0x576f10[_0x227b('0xad')]=_0x3c1496[_0x227b('0xad')]),this[_0x227b('0xb0')]&&this[_0x227b('0xb0')][_0x227b('0x19')]||(_0x576f10[_0x227b('0xd4')]=!0x0),this[_0x227b('0x72')][_0x227b('0x6d')](_0x576f10)){case _0x227b('0xa6'):this[_0x227b('0x72')][_0x227b('0x91')](_0x576f10,'dataReady');break;case _0x227b('0xe5'):_0x576f10[_0x227b('0xe3')]?(this['_suggestionState'][_0x227b('0x91')](_0x576f10,_0x227b('0x3b')),this[_0x227b('0x46')](_0x227b('0xba'),_0x576f10)):this['_suggestionState'][_0x227b('0x91')](_0x576f10,_0x227b('0x58'));}return _0x576f10;}['acceptSuggestion'](_0x4a4e06){this['forceDefaultExecution'](()=>{this[_0x227b('0xa1')][_0x227b('0x86')][_0x227b('0x2c')](()=>{for(const _0x4f0834 of _0x4a4e06[_0x227b('0x11')]())_0x4f0834['accept']();});});}[_0x227b('0x47')](_0x3e9f8c){this['forceDefaultExecution'](()=>{this[_0x227b('0xa1')]['model'][_0x227b('0x2c')](()=>{for(const _0x1c5123 of _0x3e9f8c['getAllAdjacentSuggestions']())_0x1c5123[_0x227b('0x67')]();});});}[_0x227b('0x5')](_0x512416,_0x323ff5){const _0x48783e=this[_0x227b('0xa1')][_0x227b('0x29')][_0x227b('0x6d')](_0x512416);if(!_0x48783e)throw new _0x4973ce(_0x227b('0x6e'),this,{'commandName':_0x512416});this[_0x227b('0x9c')]['add'](_0x48783e),_0x323ff5&&_0x48783e['on'](_0x227b('0x9f'),(_0x2eadca,_0x508dac)=>{this['trackChangesCommand']['value']&&(this[_0x227b('0x24')]||_0x508dac[_0x227b('0x2a')]>0x0&&_0x508dac[_0x508dac[_0x227b('0x2a')]-0x1]&&_0x508dac[_0x508dac[_0x227b('0x2a')]-0x1]['forceDefaultExecution']||(_0x323ff5((..._0x5a28a5)=>_0x48783e[_0x227b('0x9f')](..._0x5a28a5,{'forceDefaultExecution':!0x0}),..._0x508dac),_0x2eadca[_0x227b('0x4b')]()));},{'priority':'high'});}[_0x227b('0x5c')](_0x1f54ee){let _0x12a5d9,_0x1455bf;const _0x2e68f5=this[_0x227b('0x24')];this[_0x227b('0x24')]=!0x0;try{_0x12a5d9=_0x1f54ee();}catch(_0x13ba57){_0x1455bf=_0x13ba57;}return _0x2e68f5||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1455bf&&_0x4973ce['rethrowUnexpectedError'](_0x1455bf,this),_0x12a5d9;}[_0x227b('0xd0')](_0x503857,_0x5c4cd0=null,_0x700adb={}){if(_0x503857['isCollapsed'])return null;const _0x1ba7db=this[_0x227b('0xa1')][_0x227b('0x2b')][_0x227b('0x6d')](_0x227b('0x5e'))['me'];for(const {suggestion:_0x314a70,meta:_0x51a401}of this[_0x227b('0xa3')](_0x503857,'insertion'))if(_0x51a401['isOwn']){if(!_0x51a401['isNextTo']){if(!this[_0x227b('0x26')]&&_0x51a401[_0x227b('0x12c')])continue;return _0x314a70;}if(_0x5c4cd0==_0x314a70['subType']){const _0x53f6da=_0x314a70[_0x227b('0xc5')]();return _0x53f6da[_0x227b('0xbf')][_0x227b('0xfb')](_0x503857[_0x227b('0x10a')])?this[_0x227b('0x40')](_0x314a70,this[_0x227b('0x85')][_0x227b('0x121')](_0x503857[_0x227b('0xbf')],_0x53f6da[_0x227b('0x10a')])):this['_setSuggestionRange'](_0x314a70,this[_0x227b('0x85')]['createRange'](_0x53f6da[_0x227b('0xbf')],_0x503857[_0x227b('0x10a')])),_0x314a70;}}const _0x5bb6ac=_0x5653c7(),_0x4729b4=_0x1ba7db['id'],_0x276c39=_0x5c4cd0?_0x227b('0x4c')+_0x5c4cd0:_0x227b('0xf6'),_0x2ebdf8=this[_0x227b('0x32')]({'id':_0x5bb6ac,'type':_0x276c39,'createdAt':new Date(),'authorId':_0x4729b4,'attributes':_0x700adb});return this[_0x227b('0x83')](_0x276c39,_0x5bb6ac,_0x4729b4,_0x503857),_0x2ebdf8;}[_0x227b('0x111')](_0x588242,_0x51715c=_0x227b('0x90'),_0x22cd64={}){const _0x3baf1a=this[_0x227b('0xa1')][_0x227b('0x2b')][_0x227b('0x6d')](_0x227b('0x5e'))['me'],_0x1edf0e=this[_0x227b('0xf3')][_0x227b('0xfc')]('insertion',_0x51715c,_0x227b('0x25'));for(const _0x3318a5 of this[_0x227b('0x28')]())if(_0x3318a5[_0x227b('0xb4')]['id']==_0x3baf1a['id']&&_0x227b('0xf6')==_0x3318a5[_0x227b('0x129')]&&_0x3318a5['subType']==_0x51715c&&(_0x1edf0e(_0x3318a5[_0x227b('0xa7')](),_0x588242)||_0x1edf0e(_0x588242,_0x3318a5[_0x227b('0xa7')]()))){for(const _0xda521 of _0x588242)_0x3318a5[_0x227b('0xa5')](_0xda521);return _0x3318a5;}if(this[_0x227b('0x26')])for(const _0x28be46 of _0x588242)for(const {suggestion:_0x16945b,meta:_0x13cba0}of this[_0x227b('0xa3')](_0x28be46,_0x227b('0xf6'))){if(!_0x13cba0[_0x227b('0xc')])continue;let _0x2a3503=!0x0;for(const _0x46b0ac of _0x16945b[_0x227b('0xa7')]())for(const _0x347cb3 of _0x588242)if(!_0x46b0ac[_0x227b('0x36')](_0x347cb3)){_0x2a3503=!0x1;break;}if(_0x2a3503)return _0x16945b;}const _0x2e202e=_0x5653c7(),_0x5382b7=_0x3baf1a['id'],_0x53dfac=_0x227b('0x4c')+_0x51715c,_0x550999=this['_setSuggestionData']({'id':_0x2e202e,'type':_0x53dfac,'createdAt':new Date(),'authorId':_0x5382b7,'attributes':_0x22cd64});for(const _0x1d342a of _0x588242)this[_0x227b('0x83')](_0x53dfac,_0x2e202e,_0x5382b7,_0x1d342a,_0x3a4c4e[_0x227b('0xaf')]());return _0x550999;}[_0x227b('0x11a')](_0x43646a,_0x1edb74,_0x34ed3c=null,_0x3f20b5={}){if(_0x34ed3c=_0x34ed3c||$t(_0x1edb74),_0x43646a[_0x227b('0x16')])return null;if('never'===this[_0x227b('0xcc')]){const _0xce41e7=this[_0x227b('0xf3')][_0x227b('0xfc')]('formatInline',_0x34ed3c,_0x227b('0x8b'));return this[_0x227b('0x5c')](()=>_0xce41e7([_0x43646a],_0x1edb74,_0x3f20b5)),null;}const _0x1d3953=this[_0x227b('0xa1')][_0x227b('0x2b')][_0x227b('0x6d')](_0x227b('0x5e'))['me'],_0x38b60b=[];if(_0x227b('0xfa')!==this[_0x227b('0xcc')])for(const {suggestion:_0x395a84,meta:_0xe26739}of this[_0x227b('0xa3')](_0x43646a,_0x227b('0xf6')))_0xe26739['isOwn']&&!_0xe26739[_0x227b('0x3c')]&&_0x38b60b['push'](..._0x395a84[_0x227b('0xa7')]());const _0x30e0f4=function(_0x6bf475,_0x1b0344){const _0x884d1a=[];for(const _0x50b157 of _0x1b0344){const _0x23cf6c=_0x6bf475[_0x227b('0x4d')](_0x50b157);_0x23cf6c&&_0x884d1a[_0x227b('0x75')](_0x23cf6c);}return _0x884d1a;}(_0x43646a,_0x38b60b),_0x390eb1=function(_0x565bfb,_0x3d5dfa){const _0xbff693=[_0x565bfb];for(const _0x4ceb71 of _0x3d5dfa){let _0x272e78=0x0;for(;_0x272e78<_0xbff693[_0x227b('0x2a')];){const _0x519c64=_0xbff693[_0x272e78][_0x227b('0x7e')](_0x4ceb71);_0xbff693[_0x227b('0x7f')](_0x272e78,0x1,..._0x519c64),_0x272e78+=_0x519c64[_0x227b('0x2a')];}}return _0xbff693;}(_0x43646a,_0x38b60b);_0x30e0f4[_0x227b('0x2a')]&&this[_0x227b('0x85')]['change'](()=>{for(const _0xb4f220 of _0x30e0f4){const _0x142553=this[_0x227b('0xf3')][_0x227b('0xfc')](_0x227b('0x10e'),_0x34ed3c,_0x227b('0x8b'));this[_0x227b('0x5c')](()=>_0x142553([_0xb4f220],_0x1edb74,_0x3f20b5));}});for(const _0x3c6dfb of _0x390eb1){let _0x3955a1=null,_0x52f15a=_0x3c6dfb[_0x227b('0xbf')],_0x45fd64=_0x3c6dfb[_0x227b('0x10a')];for(const {suggestion:_0x301bf7,meta:_0xb31294}of this[_0x227b('0xa3')](_0x3c6dfb,_0x227b('0x10e'))){if(!_0xb31294[_0x227b('0xc')])continue;if(_0x301bf7[_0x227b('0x103')]!=_0x34ed3c)continue;const _0x1d9126=_0x301bf7['getFirstRange']();if(_0x1d9126[_0x227b('0x36')](_0x3c6dfb,!0x0))return null;_0x52f15a=_0x52f15a[_0x227b('0x55')](_0x1d9126['start'])?_0x52f15a:_0x1d9126['start'],_0x45fd64=_0x45fd64[_0x227b('0xae')](_0x1d9126[_0x227b('0x10a')])?_0x45fd64:_0x1d9126[_0x227b('0x10a')],_0x3955a1?_0x1d9126['start']['isBefore'](_0x3955a1[_0x227b('0xc5')]()[_0x227b('0xbf')])?(_0x3955a1[_0x227b('0x6')](),_0x3955a1=_0x301bf7):_0x301bf7[_0x227b('0x6')]():_0x3955a1=_0x301bf7;}const _0x2c7c21=this['_model'][_0x227b('0x121')](_0x52f15a,_0x45fd64);if(_0x3955a1)this[_0x227b('0x40')](_0x3955a1,_0x2c7c21);else{const _0x248bf7=_0x5653c7(),_0x323a89=_0x1d3953['id'];this[_0x227b('0x32')]({'id':_0x248bf7,'type':_0x227b('0x1a')+_0x34ed3c,'data':_0x1edb74,'createdAt':new Date(),'authorId':_0x323a89,'attributes':_0x3f20b5}),this[_0x227b('0x83')](_0x227b('0x1a')+_0x34ed3c,_0x248bf7,_0x323a89,_0x2c7c21);}}return null;}[_0x227b('0x11c')](_0x2378c0,_0x515f1,_0x19a55a=[],_0x827f11=null,_0x26192c={}){_0x515f1['formatGroupId']||(_0x515f1[_0x227b('0x37')]=_0x515f1[_0x227b('0x135')]),_0x515f1[_0x227b('0xce')]=_0x2378c0['is'](_0x227b('0xa4')),_0x827f11=_0x827f11||$t(_0x515f1);const _0x2bd7a6=_0x19a55a[_0x227b('0x22')](_0x506a1d=>Rt(_0x506a1d,this[_0x227b('0x85')])),_0x3e35f4=_0x2378c0['is'](_0x227b('0xa4'))?_0x2378c0:Rt(_0x2378c0,this[_0x227b('0x85')]);if(_0x227b('0xaa')===this[_0x227b('0xcc')]){const _0x3dc570=this[_0x227b('0xf3')]['getSuggestionCallback'](_0x227b('0xd5'),_0x827f11,_0x227b('0x8b'));return this[_0x227b('0x5c')](()=>_0x3dc570([_0x3e35f4],_0x515f1,_0x26192c)),null;}_0x2bd7a6[_0x227b('0x75')](_0x3e35f4);let _0x25e67a=!0x0;for(const _0x37d3c0 of _0x2bd7a6)if(!this[_0x227b('0x4a')](_0x37d3c0)){_0x25e67a=!0x1;break;}if(_0x25e67a&&_0x227b('0xfa')!==this[_0x227b('0xcc')]){const _0x1cecf3=this[_0x227b('0xf3')]['getSuggestionCallback'](_0x227b('0xd5'),_0x827f11,_0x227b('0x8b'));return this[_0x227b('0x5c')](()=>_0x1cecf3([_0x3e35f4],_0x515f1,_0x26192c)),null;}let _0x222f76=null,_0x3637b8=_0x3e35f4[_0x227b('0xbf')],_0x8f687a=_0x3e35f4[_0x227b('0x10a')];for(const {suggestion:_0x2b75cb,meta:_0x5352da}of this[_0x227b('0xa3')](_0x3e35f4,'formatBlock')){if(!_0x5352da[_0x227b('0xc')]||_0x5352da['isNextTo']||_0x5352da['containsRangeInObject']||_0x5352da['isInsideObject'])continue;if(_0x2b75cb['data'][_0x227b('0x37')]!=_0x515f1[_0x227b('0x37')])continue;const _0x36864b=_0x2b75cb[_0x227b('0xc5')]();if(_0x2b75cb[_0x227b('0x103')]==_0x827f11){if(_0x36864b[_0x227b('0x36')](_0x3e35f4,!0x0))return null;_0x3637b8=_0x3637b8[_0x227b('0x55')](_0x36864b[_0x227b('0xbf')])?_0x3637b8:_0x36864b[_0x227b('0xbf')],_0x8f687a=_0x8f687a[_0x227b('0xae')](_0x36864b['end'])?_0x8f687a:_0x36864b[_0x227b('0x10a')],_0x222f76?_0x36864b[_0x227b('0xbf')][_0x227b('0x55')](_0x222f76[_0x227b('0xc5')]()['start'])?(_0x222f76[_0x227b('0x6')](),_0x222f76=_0x2b75cb):_0x2b75cb['removeMarkers']():_0x222f76=_0x2b75cb;}else{const _0x78dbfa=_0x3e35f4[_0x227b('0x4d')](_0x36864b);this[_0x227b('0x126')](_0x2b75cb,_0x78dbfa);}}const _0x399b6a=this[_0x227b('0xa1')][_0x227b('0x2b')]['get'](_0x227b('0x5e'))['me'],_0x2a3711=_0x5653c7(),_0x236b1a=_0x399b6a['id'];if(_0x222f76)return this[_0x227b('0x40')](_0x222f76,this[_0x227b('0x85')][_0x227b('0x121')](_0x3637b8,_0x8f687a)),_0x222f76;{const _0x14e935=this[_0x227b('0x32')]({'id':_0x2a3711,'type':'formatBlock:'+_0x827f11,'data':_0x515f1,'createdAt':new Date(),'authorId':_0x236b1a,'attributes':_0x26192c});return this[_0x227b('0x83')]('formatBlock:'+_0x827f11,_0x2a3711,_0x236b1a,this[_0x227b('0x85')]['createRange'](_0x3637b8,_0x8f687a)),_0x14e935;}}[_0x227b('0xdf')](_0x5f20cb,_0x42ee95,_0x89d661=[],_0x508099=null,_0x47a499={}){_0x42ee95[_0x227b('0x37')]||(_0x42ee95[_0x227b('0x37')]=_0x42ee95[_0x227b('0x135')]);const _0x14ec7d=_0x5f20cb[0x0];_0x42ee95[_0x227b('0xce')]=_0x14ec7d['is'](_0x227b('0xa4')),_0x508099=_0x508099||$t(_0x42ee95);const _0x2258a3=_0x89d661[_0x227b('0x22')](_0x2e5e7c=>Rt(_0x2e5e7c,this[_0x227b('0x85')])),_0x17d370=_0x14ec7d['is']('range')?_0x5f20cb:_0x5f20cb[_0x227b('0x22')](_0x2dbd81=>Rt(_0x2dbd81,this[_0x227b('0x85')]));if(_0x227b('0xaa')===this['_trackFormatChanges']){const _0x5c1eb6=this['_suggestionFactory'][_0x227b('0xfc')]('formatBlock',_0x508099,_0x227b('0x8b'));return this['forceDefaultExecution'](()=>_0x5c1eb6(_0x17d370,_0x42ee95,_0x47a499)),null;}_0x2258a3['push'](..._0x17d370);let _0x2ef743=!0x0;for(const _0x49e538 of _0x2258a3)if(!this[_0x227b('0x4a')](_0x49e538)){_0x2ef743=!0x1;break;}if(_0x2ef743&&_0x227b('0xfa')!==this[_0x227b('0xcc')]){const _0x53bb21=this['_suggestionFactory'][_0x227b('0xfc')]('formatBlock',_0x508099,_0x227b('0x8b'));return this[_0x227b('0x5c')](()=>_0x53bb21(_0x17d370,_0x42ee95,_0x47a499)),null;}const _0x3bf57c=this[_0x227b('0xa1')]['plugins'][_0x227b('0x6d')](_0x227b('0x5e'))['me'];for(const _0xeb1234 of this[_0x227b('0x28')]()){if(_0xeb1234[_0x227b('0xb4')]['id']!=_0x3bf57c['id'])continue;if(_0x227b('0xd5')!=_0xeb1234[_0x227b('0x129')]||_0xeb1234[_0x227b('0x9a')]['formatGroupId']!=_0x42ee95[_0x227b('0x37')])continue;const _0x4aeab4=_0xeb1234[_0x227b('0x103')]==_0x508099;for(let _0x2eb700=0x0;_0x2eb700<_0x17d370[_0x227b('0x2a')];_0x2eb700++){const _0x225d33=_0x17d370[_0x2eb700];for(const _0x3f2ab0 of _0xeb1234[_0x227b('0x68')]()){const _0x52a5de=_0x3f2ab0[_0x227b('0xc4')]();if(_0x225d33[_0x227b('0xfb')](_0x52a5de)){_0x4aeab4?(_0x17d370[_0x227b('0x7f')](_0x2eb700,0x1),_0x2eb700--):_0xeb1234[_0x227b('0x6c')](_0x3f2ab0[_0x227b('0xdc')]);break;}}}}if(0x0==_0x17d370['length'])return null;const _0x406f47=this[_0x227b('0xf3')][_0x227b('0xfc')]('formatBlock',_0x508099,'join');for(const _0x347fba of this['getSuggestions']())if(_0x347fba['author']['id']==_0x3bf57c['id']&&_0x227b('0xd5')==_0x347fba[_0x227b('0x129')]&&_0x347fba[_0x227b('0x9a')][_0x227b('0x37')]==_0x42ee95['formatGroupId']&&_0x347fba[_0x227b('0x103')]==_0x508099&&(_0x406f47(_0x347fba[_0x227b('0xa7')](),_0x17d370)||_0x406f47(_0x17d370,_0x347fba[_0x227b('0xa7')]()))){for(const _0x88d355 of _0x17d370)_0x347fba['addRange'](_0x88d355);return _0x347fba;}const _0x4a0ab4=_0x5653c7(),_0x5b584a=_0x3bf57c['id'],_0xdd12e9=_0x227b('0x33')+_0x508099,_0x420563=this['_setSuggestionData']({'id':_0x4a0ab4,'type':_0xdd12e9,'data':_0x42ee95,'createdAt':new Date(),'authorId':_0x5b584a,'attributes':_0x47a499});for(const _0x4c3bc1 of _0x17d370)this[_0x227b('0x83')](_0xdd12e9,_0x4a0ab4,_0x5b584a,_0x4c3bc1,_0x3a4c4e['getMultiRangeId']());return _0x420563;}['markDeletion'](_0xf7730b,_0x1a8ebf=null,_0x3e0879={}){if(_0xf7730b[_0x227b('0x16')])return null;const _0x57f7e0=this[_0x227b('0xa1')]['plugins'][_0x227b('0x6d')]('Users')['me'],_0x34186c=new _0x4a1046(_0xf7730b[_0x227b('0xbf')],_0xf7730b[_0x227b('0x10a')]);for(const {suggestion:_0x5bc847,meta:_0x19f769}of this[_0x227b('0xa3')](_0x34186c,_0x227b('0xf6')))if(_0x19f769[_0x227b('0xc')]&&!_0x19f769['isNextTo']){if(_0x5bc847[_0x227b('0x59')]){const _0x5ad0ec=_0x5bc847[_0x227b('0xa7')]()['filter'](_0x263b2d=>'$graveyard'!=_0x263b2d['root'][_0x227b('0x9e')]);_0x5ad0ec[_0x227b('0x114')](_0x23b179=>_0x34186c[_0x227b('0x36')](_0x23b179,!0x0))&&_0x5bc847[_0x227b('0x67')]();if(_0x5ad0ec[_0x227b('0x130')](_0x1def5a=>_0x1def5a['containsRange'](_0x34186c,!0x0))){const _0x461928=this[_0x227b('0xf3')][_0x227b('0xfc')](_0x227b('0xe7'),_0x1a8ebf,_0x227b('0x8b'));return this[_0x227b('0x5c')](()=>_0x461928([_0x34186c],null,_0x3e0879)),null;}}else{const _0x26b097=_0x34186c[_0x227b('0x4d')](_0x5bc847[_0x227b('0xc5')]());null!==_0x26b097&&_0x5bc847[_0x227b('0x99')]([_0x26b097],null,_0x3e0879);}}if(_0x34186c[_0x227b('0x100')](),_0x34186c[_0x227b('0x16')]||'$graveyard'==_0x34186c[_0x227b('0x3f')][_0x227b('0x9e')])return null;let _0x3c87d5=null,_0x9b7401=_0x34186c['start'],_0xd0d978=_0x34186c[_0x227b('0x10a')];for(const {suggestion:_0x12c7eb,meta:_0x383fbd}of this[_0x227b('0xa3')](_0x34186c,'deletion'))if(_0x383fbd[_0x227b('0xc')]){if(_0x12c7eb[_0x227b('0x59')]&&this[_0x227b('0x26')]){let _0x449390=!0x0;for(const _0x50df5f of _0x12c7eb['getRanges']()){if(_0x50df5f[_0x227b('0x36')](_0x34186c,!0x0))return _0x12c7eb;_0x34186c['containsRange'](_0x50df5f)||(_0x449390=!0x1);}_0x449390&&_0x12c7eb['discard']();}else{const _0x222903=_0x12c7eb[_0x227b('0xc5')]();if(_0x222903['containsRange'](_0x34186c,!0x0)){if(!this['_mergeNestedSuggestions']&&_0x383fbd[_0x227b('0x12c')])continue;return _0x12c7eb;}_0x9b7401=_0x9b7401[_0x227b('0x55')](_0x222903[_0x227b('0xbf')])?_0x9b7401:_0x222903[_0x227b('0xbf')],_0xd0d978=_0xd0d978[_0x227b('0xae')](_0x222903['end'])?_0xd0d978:_0x222903['end'],_0x3c87d5?_0x222903[_0x227b('0xbf')]['isBefore'](_0x3c87d5[_0x227b('0xc5')]()[_0x227b('0xbf')])?(_0x3c87d5['removeMarkers'](),_0x3c87d5=_0x12c7eb):_0x12c7eb[_0x227b('0x6')]():_0x3c87d5=_0x12c7eb;}}if(_0x3c87d5)return this[_0x227b('0x40')](_0x3c87d5,this[_0x227b('0x85')][_0x227b('0x121')](_0x9b7401,_0xd0d978)),_0x3c87d5;{const _0x328a70=_0x5653c7(),_0x5af6d6=this[_0x227b('0x85')]['createRange'](_0x9b7401,_0xd0d978),_0x3b6d8c=_0x57f7e0['id'],_0x68b5e0=_0x1a8ebf?_0x227b('0x11d')+_0x1a8ebf:_0x227b('0xe7'),_0x25f74b=this[_0x227b('0x32')]({'id':_0x328a70,'type':_0x68b5e0,'createdAt':new Date(),'authorId':_0x3b6d8c,'attributes':_0x3e0879});return this['_addSuggestionMarker'](_0x68b5e0,_0x328a70,_0x3b6d8c,_0x5af6d6),_0x25f74b;}}[_0x227b('0x17')](_0x2172d7,_0x3421e3=_0x227b('0x90'),_0x41808d={}){const _0x8dda48=this[_0x227b('0xa1')][_0x227b('0x2b')][_0x227b('0x6d')]('Users')['me'],_0x4f29e2=_0x2172d7['map'](_0x39fe5a=>new _0x4a1046(_0x39fe5a['start'],_0x39fe5a[_0x227b('0x10a')])),_0x5a894c=new Set();for(const _0x48e6b4 of _0x4f29e2)for(const {suggestion:_0x551118,meta:_0x43ee0a}of this[_0x227b('0xa3')](_0x48e6b4,_0x227b('0xf6')))_0x43ee0a[_0x227b('0xc')]&&!_0x43ee0a['isNextTo']&&_0x5a894c['add'](_0x551118);for(const _0xb95fa4 of _0x5a894c)if(_0xb95fa4[_0x227b('0x59')]){const _0x2c879d=_0xb95fa4[_0x227b('0xa7')]();(!_0xb95fa4['attributes']||!_0xb95fa4[_0x227b('0xad')]['skipNestingCheck'])&&(_0x2c879d[_0x227b('0x114')](_0x5c85c7=>_0x4f29e2[_0x227b('0x130')](_0x60264c=>_0x60264c[_0x227b('0x36')](_0x5c85c7,!0x0)))&&_0xb95fa4['discard']());if(_0x4f29e2['every'](_0x15ede8=>_0x2c879d[_0x227b('0x130')](_0x28834f=>_0x28834f[_0x227b('0x36')](_0x15ede8,!0x0)))){const _0x246f8f=this[_0x227b('0xf3')][_0x227b('0xfc')]('deletion',_0x3421e3,_0x227b('0x8b'));return this[_0x227b('0x5c')](()=>_0x246f8f(_0x2172d7,null,_0x41808d)),null;}}else{const _0x204c12=_0xb95fa4[_0x227b('0xc5')]();_0x4f29e2[_0x227b('0x130')](_0x3f029d=>_0x3f029d[_0x227b('0x36')](_0x204c12,!0x0))&&_0xb95fa4[_0x227b('0x67')]();if(_0x4f29e2[_0x227b('0x114')](_0x54d1f2=>_0x204c12[_0x227b('0x36')](_0x54d1f2,!0x0))){const _0x8e1b49=this['_suggestionFactory']['getSuggestionCallback'](_0x227b('0xe7'),_0x3421e3,_0x227b('0x8b'));return this['forceDefaultExecution'](()=>_0x8e1b49(_0x4f29e2,null,_0x41808d)),null;}}const _0x2389dc=this[_0x227b('0xf3')][_0x227b('0xfc')](_0x227b('0xe7'),_0x3421e3,'join');let _0x54600a=null;for(const _0x33fd41 of this[_0x227b('0x28')]())if(_0x33fd41[_0x227b('0xb4')]['id']==_0x8dda48['id']&&_0x33fd41['isInContent']&&'deletion'==_0x33fd41[_0x227b('0x129')]&&_0x33fd41[_0x227b('0x103')]==_0x3421e3&&(_0x2389dc(_0x33fd41['getRanges'](),_0x4f29e2)||_0x2389dc(_0x4f29e2,_0x33fd41[_0x227b('0xa7')]()))){if(_0x54600a){if(_0x33fd41[_0x227b('0x63')]&&_0x33fd41[_0x227b('0x63')][_0x227b('0x2a')])continue;for(const _0x24600d of _0x33fd41[_0x227b('0xa7')]())_0x54600a[_0x227b('0xf5')](_0x24600d)||_0x54600a[_0x227b('0xa5')](_0x24600d);_0x33fd41['removeMarkers']();}else{_0x54600a=_0x33fd41;for(const _0x59a484 of _0x4f29e2)_0x33fd41['isIntersectingWithRange'](_0x59a484)||_0x33fd41[_0x227b('0xa5')](_0x59a484);}}if(_0x54600a)return _0x54600a;_0x5a894c[_0x227b('0x134')]();for(const _0x3f4e29 of _0x4f29e2)for(const {suggestion:_0x216c6c,meta:_0x254030}of this[_0x227b('0xa3')](_0x3f4e29,_0x227b('0xe7')))_0x254030[_0x227b('0xc')]&&_0x5a894c[_0x227b('0xe2')](_0x216c6c);for(const _0x549805 of _0x5a894c){const _0x304863=_0x549805[_0x227b('0xa7')]();if(!_0x41808d||!_0x41808d[_0x227b('0x49')]){if(_0x4f29e2[_0x227b('0x114')](_0x3ba2a0=>_0x304863['some'](_0x37af55=>_0x37af55['containsRange'](_0x3ba2a0,!0x0))))return _0x549805;}(!_0x549805[_0x227b('0xad')]||!_0x549805['attributes'][_0x227b('0x49')])&&(_0x304863[_0x227b('0x114')](_0x413207=>_0x4f29e2[_0x227b('0x130')](_0x2d7f32=>_0x2d7f32[_0x227b('0x36')](_0x413207,!0x0)))&&_0x549805[_0x227b('0x67')]());}const _0x1c2c44=_0x5653c7(),_0x7a143b=_0x8dda48['id'],_0x2184ec=_0x227b('0x11d')+_0x3421e3,_0x1ac1e5=this[_0x227b('0x32')]({'id':_0x1c2c44,'type':_0x2184ec,'createdAt':new Date(),'authorId':_0x7a143b,'attributes':_0x41808d});for(const _0x261854 of _0x4f29e2)_0x261854['detach'](),_0x261854['isCollapsed']||'$graveyard'==_0x261854[_0x227b('0x3f')][_0x227b('0x9e')]||this[_0x227b('0x83')](_0x2184ec,_0x1c2c44,_0x7a143b,_0x261854,_0x3a4c4e[_0x227b('0xaf')]());return _0x1ac1e5;}[_0x227b('0x40')](_0xdac651,_0x108489){const _0x5aaed8=_0xdac651[_0x227b('0xf')]();this[_0x227b('0x85')][_0x227b('0x2c')](_0x37d70a=>{_0x37d70a[_0x227b('0xd1')](_0x5aaed8,{'range':_0x108489});});}[_0x227b('0x76')](_0x3770f8){const _0x3694fb=_0x3770f8['id'],_0x34cfa6=this[_0x227b('0xa1')]['config'][_0x227b('0x6d')](_0x227b('0xef'));this[_0x227b('0xd9')]['hasCommentThread'](_0x3694fb)||this[_0x227b('0xd9')][_0x227b('0x124')]({'channelId':_0x34cfa6,'threadId':_0x3694fb,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1ba7da=this['_commentsRepository'][_0x227b('0xac')](_0x3694fb);_0x1ba7da[_0x227b('0x64')](_0x227b('0x45')),_0x1ba7da[_0x227b('0x45')]=!0x1,_0x3770f8[_0x227b('0x63')]=_0x1ba7da;}[_0x227b('0xf0')](_0x484a99,_0x15d1c3,_0x4cb7f1,_0x5829b3){if(_0x484a99[_0x227b('0x129')]!=_0x15d1c3||_0x484a99[_0x227b('0x103')]!=_0x4cb7f1||_0x484a99[_0x227b('0x65')]['id']!=_0x5829b3)throw this[_0x227b('0xa1')][_0x227b('0x96')](_0x227b('0x11f')),new _0x4973ce(_0x227b('0x11f'),this);}[_0x227b('0x126')](_0x17f3cd,_0x1cd47b){const _0x300146=_0x17f3cd[_0x227b('0xc5')]();if(_0x1cd47b[_0x227b('0xfb')](_0x300146))_0x17f3cd[_0x227b('0x6')]();else{if(_0x300146['containsRange'](_0x1cd47b)){const _0x2a053e=this[_0x227b('0x85')][_0x227b('0xeb')](_0x1cd47b[_0x227b('0xbf')][_0x227b('0xbd')],_0x227b('0x10a'));this[_0x227b('0x40')](_0x17f3cd,this['_model'][_0x227b('0x121')](_0x300146[_0x227b('0xbf')],_0x2a053e));const _0x5a5119=_0x5653c7(),_0x5c9e06=_0x17f3cd[_0x227b('0x65')]['id'],_0x4d78c9=_0x17f3cd[_0x227b('0x129')]+':'+_0x17f3cd[_0x227b('0x103')];this[_0x227b('0x32')]({'id':_0x5a5119,'type':_0x4d78c9,'createdAt':new Date(),'authorId':_0x5c9e06,'data':_0x17f3cd[_0x227b('0x9a')],'attributes':_0x17f3cd['attributes']});const _0x1c1901=this[_0x227b('0x85')][_0x227b('0xeb')](_0x1cd47b['end'][_0x227b('0xcf')],_0x227b('0x119')),_0x2a6ed0=this[_0x227b('0x85')][_0x227b('0x121')](_0x1c1901,_0x300146['end']);this[_0x227b('0x83')](_0x4d78c9,_0x5a5119,_0x5c9e06,_0x2a6ed0);}else{if(_0x300146['containsPosition'](_0x1cd47b['start'])){const _0x677a20=this['_model'][_0x227b('0xeb')](_0x1cd47b['start'][_0x227b('0xbd')],'end');this[_0x227b('0x40')](_0x17f3cd,this[_0x227b('0x85')]['createRange'](_0x300146[_0x227b('0xbf')],_0x677a20));}else{const _0x5c8ff5=this[_0x227b('0x85')][_0x227b('0xeb')](_0x1cd47b[_0x227b('0x10a')][_0x227b('0xcf')],_0x227b('0x119'));this[_0x227b('0x40')](_0x17f3cd,this[_0x227b('0x85')][_0x227b('0x121')](_0x5c8ff5,_0x300146[_0x227b('0x10a')]));}}}}['_rangeIsInLocalUserInsertion'](_0x2368ec){for(const {suggestion:_0x4252ee,meta:_0x286964}of this[_0x227b('0xa3')](_0x2368ec,_0x227b('0xf6'))){if(!_0x286964[_0x227b('0xc')])continue;const _0x42c9c7=_0x4252ee['getRanges']();for(const _0x10e599 of _0x42c9c7)if(!_0x2368ec['getDifference'](_0x10e599)[_0x227b('0x2a')])return!0x0;}return!0x1;}[_0x227b('0x18')](_0x5d2364){const _0x4e5461=this['editor'][_0x227b('0x2b')]['get']('Users')[_0x227b('0xb5')](_0x5d2364);if(!_0x4e5461)throw new _0x4973ce('track-changes-user-not-found',this);return _0x4e5461;}[_0x227b('0x78')](_0x39322d){const _0x470e78=this[_0x227b('0xa1')][_0x227b('0x2b')][_0x227b('0x6d')]('Users'),_0x2fed09=_0x34e9b7('external:'+_0x39322d),_0x29e7c0=_0x470e78[_0x227b('0xb5')](_0x2fed09);return _0x29e7c0||_0x470e78[_0x227b('0x116')]({'id':_0x2fed09,'name':_0x39322d});}['_createSuggestion'](_0x580950,_0x933656,_0xa5bdc1,_0x28e8e1,_0x112763){const _0x318782=this['_getAuthorFromId'](_0x28e8e1),_0x18c16c=this[_0x227b('0xf3')][_0x227b('0x56')](_0x580950,_0x933656,_0xa5bdc1,_0x318782,_0x112763,_0x3c99f4=>this['_updateSuggestionData'](_0xa5bdc1,{'attributes':_0x3c99f4}));return this[_0x227b('0x3a')](_0x18c16c,_0x227b('0x8b'),()=>{this['_updateSuggestionData'](_0xa5bdc1,{'state':'accepted'});},{'priority':'high'}),this[_0x227b('0x3a')](_0x18c16c,_0x227b('0x67'),()=>{this[_0x227b('0x10f')](_0xa5bdc1,{'state':_0x227b('0x14')});},{'priority':_0x227b('0x97')}),this[_0x227b('0x41')][_0x227b('0x91')](_0xa5bdc1,_0x18c16c),this['_suggestionState']['set'](_0x18c16c,_0x227b('0xa6')),_0x18c16c;}[_0x227b('0x38')](_0x3e45c3){const _0x797380=_0x3e45c3[_0x227b('0x0')](':');return{'group':_0x797380[0x0],'type':_0x797380[0x1],'subType':_0x797380[_0x227b('0x2a')]>=0x5?_0x797380[0x2]:null,'id':_0x797380['length']<0x5?_0x797380[0x2]:_0x797380[0x3],'authorId':_0x797380[_0x227b('0x2a')]<0x5?_0x797380[0x3]:_0x797380[0x4],'markerCount':0x6==_0x797380[_0x227b('0x2a')]?_0x797380[0x5]:null};}['_breakSuggestionMarker'](_0x4ae4de,_0x44cff9,_0x3f88d3){const _0x20ed97=_0x4ae4de[_0x227b('0xc5')](),_0x5ecf32=_0x20ed97['start'],_0x24fafd=_0x20ed97[_0x227b('0x10a')];this[_0x227b('0x40')](_0x4ae4de,this['_model']['createRange'](_0x5ecf32,_0x44cff9));const _0x2c85f0=_0x5653c7(),_0xa8545f=_0x4ae4de[_0x227b('0x65')]['id'],_0x552dfd=_0x4ae4de[_0x227b('0x129')]+(_0x4ae4de[_0x227b('0x103')]?':'+_0x4ae4de[_0x227b('0x103')]:'');this[_0x227b('0x32')]({'id':_0x2c85f0,'type':_0x552dfd,'createdAt':new Date(),'authorId':_0xa8545f,'originalSuggestionId':_0x4ae4de['id'],'attributes':_0x4ae4de[_0x227b('0xad')],'data':_0x4ae4de[_0x227b('0x9a')]}),'formatBlock'==_0x4ae4de['type']&&(_0x3f88d3=this[_0x227b('0x85')][_0x227b('0x12f')](_0x3f88d3['parent'])),this['_addSuggestionMarker'](_0x552dfd,_0x2c85f0,_0xa8545f,this[_0x227b('0x85')]['createRange'](_0x3f88d3,_0x24fafd));}[_0x227b('0xa3')](_0x15839e,_0x5eadd7=null){const _0x295c50=[],_0x5396ae=this[_0x227b('0x85')][_0x227b('0x6f')],_0x532188=this[_0x227b('0xa1')][_0x227b('0x2b')][_0x227b('0x6d')](_0x227b('0x5e'))['me'];for(const _0x150413 of this['getSuggestions']())if(_0x150413['isInContent']&&(!_0x5eadd7||_0x150413[_0x227b('0x129')]==_0x5eadd7))for(const _0x1e636a of _0x150413[_0x227b('0xa7')]()){const _0x45bb1b=_0x15839e['start'][_0x227b('0xfb')](_0x1e636a[_0x227b('0x10a')])||_0x15839e[_0x227b('0x10a')][_0x227b('0xfb')](_0x1e636a[_0x227b('0xbf')]);if(_0x45bb1b||_0x15839e[_0x227b('0x4d')](_0x1e636a)){const _0xde45aa=_0x15839e[_0x227b('0x36')](_0x1e636a)&&Bt(_0x5396ae,_0x1e636a[_0x227b('0xbf')],_0x15839e),_0x3405ac=_0x1e636a[_0x227b('0x36')](_0x15839e)&&Bt(_0x5396ae,_0x15839e[_0x227b('0xbf')],_0x1e636a);_0x295c50[_0x227b('0x75')]({'suggestion':_0x150413,'meta':{'isOwn':_0x532188==_0x150413[_0x227b('0xb4')],'isNextTo':_0x45bb1b,'isInsideObject':_0xde45aa,'containsRangeInObject':_0x3405ac}});break;}}return _0x295c50;}[_0x227b('0x83')](_0x85eedb,_0x2022e3,_0x507900,_0x334ac8,_0x3216f3){this['_model'][_0x227b('0x2c')](_0x275b4c=>{let _0xa85e04=_0x227b('0xcd')+_0x85eedb+':'+_0x2022e3+':'+_0x507900;_0x3216f3&&(_0xa85e04=_0xa85e04+':'+_0x3216f3),_0x275b4c[_0x227b('0x101')](_0xa85e04,{'range':_0x334ac8,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3cf2d5){const _0x5685f8=_0x3cf2d5['previous'],_0x11c6ff=_0x3cf2d5['next'];_0x3cf2d5[_0x227b('0x9b')]=null,null!=_0x5685f8&&(_0x5685f8['next']=null),_0x3cf2d5['next']=null,null!=_0x11c6ff&&(_0x11c6ff[_0x227b('0x9b')]=null),'ready'==this[_0x227b('0x72')][_0x227b('0x6d')](_0x3cf2d5)&&(this[_0x227b('0x72')][_0x227b('0x91')](_0x3cf2d5,_0x227b('0x58')),this[_0x227b('0x46')](_0x227b('0x31'),_0x3cf2d5,_0x5685f8,_0x11c6ff));}[_0x227b('0x32')](_0xce740){const _0x2da2ca=_0xce740['id'],_0x589c22=this[_0x227b('0x84')](_0xce740);if(this['_adapter']&&this[_0x227b('0xb0')][_0x227b('0x19')]){const _0x23a8cb=this[_0x227b('0xa1')][_0x227b('0x2b')][_0x227b('0x6d')]('PendingActions'),_0x26cfe3=_0x589c22['hasComments'],_0x2e6131=_0x589c22[_0x227b('0x103')]?_0x589c22['type']+':'+_0x589c22[_0x227b('0x103')]:_0x589c22[_0x227b('0x129')],_0x168620=this[_0x227b('0xa1')]['locale'],_0xa012c1=_0x23a8cb[_0x227b('0xe2')](_0x4bbf9e(_0x168620,_0x227b('0x34'))),_0x2479cd={'id':_0x2da2ca,'type':_0x2e6131,'hasComments':_0x26cfe3,'data':_0xce740[_0x227b('0x9a')]||null,'originalSuggestionId':_0xce740[_0x227b('0xd6')]||null,'attributes':_0x589c22[_0x227b('0xad')]};this[_0x227b('0xb0')][_0x227b('0x19')](_0x2479cd)[_0x227b('0xd3')](_0x194f01=>{_0x589c22[_0x227b('0xd4')]=!0x0,_0x23a8cb[_0x227b('0xed')](_0xa012c1),_0x194f01&&_0x194f01[_0x227b('0xf2')]&&(this[_0x227b('0x41')][_0x227b('0x6d')](_0x2da2ca)[_0x227b('0xf2')]=_0x194f01[_0x227b('0xf2')]);})[_0x227b('0x95')](_0x1880e2=>{throw _0x33e2a1(_0x227b('0x127')),this[_0x227b('0xa1')][_0x227b('0x86')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x589c22[_0x227b('0x67')]();}),_0x589c22['stopListening'](),this[_0x227b('0x41')]['delete'](_0x589c22['id']),this[_0x227b('0x72')]['delete'](_0x589c22),_0x1880e2;});}return _0x589c22;}[_0x227b('0x10f')](_0x40dd60,_0x38f78d){const _0x4fff41=this[_0x227b('0xa1')][_0x227b('0x2b')][_0x227b('0x6d')]('PendingActions'),_0x1df6a3=this[_0x227b('0x1b')](_0x40dd60);if(this[_0x227b('0xb0')]&&this[_0x227b('0xb0')]['updateSuggestion']){if(_0x1df6a3[_0x227b('0xd4')]){const _0xa809e8=_0x4fff41['add'](_0x4bbf9e(this[_0x227b('0xa1')][_0x227b('0x118')],_0x227b('0x34')));this['_adapter']['updateSuggestion'](_0x40dd60,_0x38f78d)[_0x227b('0xd3')](()=>{_0x4fff41['remove'](_0xa809e8);});}else _0x1df6a3['on'](_0x227b('0xc1'),()=>{this[_0x227b('0x10f')](_0x40dd60,_0x38f78d);});}}[_0x227b('0x137')](_0x37a60d){if(!this[_0x227b('0xb0')]||!this['_adapter'][_0x227b('0x1b')])throw new _0x4973ce(_0x227b('0xf9'),this);return this[_0x227b('0xb0')]['getSuggestion'](_0x37a60d);}[_0x227b('0x1d')](_0x390963){const {id:_0x3c78b5,type:_0x4c1653,subType:_0x221659,authorId:_0x3ed4b5}=this[_0x227b('0x38')](_0x390963),_0x45d31f=this[_0x227b('0x41')][_0x227b('0x6d')](_0x3c78b5)||this[_0x227b('0x77')](_0x4c1653,_0x221659,_0x3c78b5,_0x3ed4b5,{});switch(this[_0x227b('0xf0')](_0x45d31f,_0x4c1653,_0x221659,_0x3ed4b5),this['_suggestionState']['get'](_0x45d31f)){case _0x227b('0xa6'):this[_0x227b('0x137')](_0x3c78b5)[_0x227b('0xd3')](_0x547d24=>{let _0x1264a2=Promise['resolve']();_0x547d24[_0x227b('0x81')]&&(_0x1264a2=this[_0x227b('0xd9')][_0x227b('0xf1')]({'channelId':this[_0x227b('0xa1')][_0x227b('0x117')]['get']('collaboration.channelId'),'threadId':_0x3c78b5})),_0x1264a2[_0x227b('0xd3')](()=>{this['addSuggestionData'](_0x547d24)[_0x227b('0xd4')]=!0x0;});}),this['_suggestionState'][_0x227b('0x91')](_0x45d31f,_0x227b('0xe5'));break;case'removed':this[_0x227b('0x10f')](_0x3c78b5,{'state':'open'});case _0x227b('0x23'):this[_0x227b('0x72')]['set'](_0x45d31f,_0x227b('0x3b')),this[_0x227b('0x46')](_0x227b('0xba'),_0x45d31f);break;case _0x227b('0x3b'):this[_0x227b('0x46')]('suggestionChanged',_0x45d31f);}return _0x45d31f[_0x227b('0xb1')](_0x390963),_0x45d31f;}[_0x227b('0x93')](_0x10d73d){const _0x51e552=Array[_0x227b('0x88')](_0x10d73d)[_0x227b('0xdd')](_0x38fb8e=>!_0x38fb8e['isMultiRange']),_0x38135a=this[_0x227b('0x28')]({'skipNotAttached':!0x0})[_0x227b('0xdd')](_0x4fde08=>!_0x4fde08[_0x227b('0x59')]),_0x4e841b=_0x38135a[_0x227b('0xdd')](_0xda3f37=>!_0x10d73d[_0x227b('0x131')](_0xda3f37)),_0xf44e6=new Map(_0x38135a[_0x227b('0x22')](_0x32c586=>[_0x32c586,this[_0x227b('0xf3')][_0x227b('0xfc')](_0x32c586[_0x227b('0x129')],_0x32c586[_0x227b('0x103')],_0x227b('0xe6'))])),_0x193a73=new Map(_0x38135a[_0x227b('0x22')](_0x3d986c=>[_0x3d986c,_0x3d986c[_0x227b('0xc5')]()])),_0x25f138=new Set(),_0x3426a9=new Set();for(let _0x35b26c=0x0;_0x35b26c<_0x51e552['length'];_0x35b26c++)_0x338f31(_0x51e552[_0x35b26c],_0x51e552,_0x35b26c+0x1);for(let _0x337c90=0x0;_0x337c90<_0x51e552[_0x227b('0x2a')];_0x337c90++)_0x338f31(_0x51e552[_0x337c90],_0x4e841b,0x0);for(let _0x3bd08e=0x0;_0x3bd08e<_0x51e552[_0x227b('0x2a')];_0x3bd08e++){const _0x37802d=_0x51e552[_0x3bd08e];!_0x3426a9[_0x227b('0x131')](_0x37802d)&&_0x37802d['previous']&&(_0x37802d['previous'][_0x227b('0x7c')]===_0x37802d&&(_0x37802d['previous'][_0x227b('0x7c')]=null),_0x37802d[_0x227b('0x9b')]=null),!_0x25f138[_0x227b('0x131')](_0x37802d)&&_0x37802d[_0x227b('0x7c')]&&(_0x37802d[_0x227b('0x7c')][_0x227b('0x9b')]===_0x37802d&&(_0x37802d[_0x227b('0x7c')]['previous']=null),_0x37802d['next']=null);}function _0x338f31(_0xa4d91f,_0x550364,_0x54990d){for(let _0x1d2295=_0x54990d;_0x1d2295<_0x550364[_0x227b('0x2a')];_0x1d2295++){const _0x350310=_0x505a18(_0xa4d91f,_0x550364[_0x1d2295]);_0x350310&&(_0x350310[0x0]['next']=_0x350310[0x1],_0x350310[0x1][_0x227b('0x9b')]=_0x350310[0x0],_0x25f138[_0x227b('0xe2')](_0x350310[0x0]),_0x3426a9[_0x227b('0xe2')](_0x350310[0x1]));}}function _0x505a18(_0x432037,_0x470366){if(_0x432037[_0x227b('0xb4')]['id']!==_0x470366['author']['id'])return null;const _0x47822b=_0xf44e6[_0x227b('0x6d')](_0x432037)(_0x432037,_0x470366,_0x193a73[_0x227b('0x6d')](_0x432037),_0x193a73[_0x227b('0x6d')](_0x470366));if(!_0x47822b)return null;return _0xf44e6[_0x227b('0x6d')](_0x470366)(_0x432037,_0x470366,_0x193a73['get'](_0x432037),_0x193a73['get'](_0x470366))?_0x47822b[0x1][_0x227b('0x63')]&&_0x47822b[0x1][_0x227b('0x63')][_0x227b('0x2a')]?null:_0x47822b:null;}}[_0x227b('0x69')](_0x37b68b){const _0x22147a=Array[_0x227b('0x88')](_0x37b68b),_0x3eda55=this['getSuggestions']({'skipNotAttached':!0x0}),_0x47df24=_0x3eda55[_0x227b('0xdd')](_0x3f0ec2=>!_0x37b68b['has'](_0x3f0ec2)),_0x5564fd=new Map(_0x22147a[_0x227b('0x22')](_0x4f2bad=>[_0x4f2bad,this[_0x227b('0xf3')]['getSuggestionCallback'](_0x4f2bad[_0x227b('0x129')],_0x4f2bad['subType'],_0x227b('0x25'))])),_0x14586c=new Map(_0x3eda55['map'](_0x1e450a=>[_0x1e450a,_0x1e450a[_0x227b('0xa7')]()]));for(let _0x21a56d=0x0;_0x21a56d<_0x22147a[_0x227b('0x2a')];_0x21a56d++){if(_0x106f78(this,_0x22147a[_0x21a56d],_0x22147a,_0x21a56d+0x1))return!0x0;}for(let _0x294b38=0x0;_0x294b38<_0x22147a[_0x227b('0x2a')];_0x294b38++){if(_0x106f78(this,_0x22147a[_0x294b38],_0x47df24,0x0))return!0x0;}return!0x1;function _0x106f78(_0x413862,_0x489be5,_0x224725,_0x5bf109){for(let _0x413019=_0x5bf109;_0x413019<_0x224725[_0x227b('0x2a')];_0x413019++){const _0x148efb=_0x224725[_0x413019];if(_0x148efb['type']!==_0x489be5[_0x227b('0x129')]||_0x148efb['author']['id']!==_0x489be5[_0x227b('0xb4')]['id']||_0x148efb[_0x227b('0x103')]!==_0x489be5[_0x227b('0x103')])continue;const _0xc409a3=_0x5564fd[_0x227b('0x6d')](_0x489be5),_0x2a2d0d=_0x14586c[_0x227b('0x6d')](_0x489be5),_0x59e196=_0x14586c[_0x227b('0x6d')](_0x148efb),_0xdb35dc=_0x489be5[_0x227b('0x63')]&&_0x489be5[_0x227b('0x63')][_0x227b('0x2a')],_0x2be420=_0x148efb[_0x227b('0x63')]&&_0x148efb[_0x227b('0x63')][_0x227b('0x2a')];if(!_0xdb35dc&&_0xc409a3(_0x59e196,_0x2a2d0d))return _0x413862['_joinSuggestions'](_0x148efb,_0x489be5),_0x14586c[_0x227b('0xd7')](_0x489be5),!0x0;if(!_0x2be420&&_0xc409a3(_0x2a2d0d,_0x59e196))return _0x413862[_0x227b('0x4')](_0x489be5,_0x148efb),_0x14586c['delete'](_0x148efb),!0x0;}return!0x1;}}[_0x227b('0x4')](_0x2c2658,_0x487074){if(_0x2c2658[_0x227b('0x59')])for(const _0x4b2761 of _0x487074[_0x227b('0xa7')]())_0x2c2658[_0x227b('0xa5')](_0x4b2761);else{const _0x4f263d=_0x487074[_0x227b('0xc5')]()[_0x227b('0x10a')];this[_0x227b('0x40')](_0x2c2658,this['_model']['createRange'](_0x2c2658['getFirstRange']()[_0x227b('0xbf')],_0x4f263d));}_0x487074[_0x227b('0x6')]();}}class Dt{constructor(_0x4e3dd5){this[_0x227b('0x7a')]=_0x4e3dd5,this[_0x227b('0x85')]=_0x4e3dd5[_0x227b('0x86')],this[_0x227b('0xb')]=new Map(),this[_0x227b('0xc2')]=new Map(),this[_0x227b('0x43')]();}[_0x227b('0x56')](_0x412f93,_0x1cef76,_0x34e00e,_0x24cf4f,_0x5707ae,_0x2d87aa){return new _0x3a4c4e(this[_0x227b('0x85')],{'type':_0x412f93,'subType':_0x1cef76,'id':_0x34e00e,'author':_0x24cf4f,'creator':_0x24cf4f,'attributes':_0x5707ae,'onAttributesChange':_0x2d87aa,'onAccept':(..._0x27b28b)=>this['getSuggestionCallback'](_0x412f93,_0x1cef76,_0x227b('0x8b'))(..._0x27b28b),'onDiscard':(..._0x26ee30)=>this[_0x227b('0xfc')](_0x412f93,_0x1cef76,'discard')(..._0x26ee30)});}['registerCustomCallback'](_0x255a69,_0x25a6e5,_0x50608b,_0x2e4811){const _0xeb9e36=_0x255a69+':'+_0x25a6e5+':'+_0x50608b;this[_0x227b('0xb')]['set'](_0xeb9e36,_0x2e4811);}['getSuggestionCallback'](_0x18ef22,_0x323bfa,_0x36966e){const _0x225bac=_0x18ef22+':'+_0x323bfa+':'+_0x36966e;return this[_0x227b('0xb')]['get'](_0x225bac)||this['_defaultCallbacks'][_0x227b('0x6d')](_0x18ef22+':'+_0x36966e);}[_0x227b('0x43')](){const _0x3a58d5=()=>{},_0x5962ea=_0x574ce7=>{_0x574ce7[_0x227b('0x51')]((_0x57b38f,_0x268e8e)=>_0x57b38f['start'][_0x227b('0x55')](_0x268e8e[_0x227b('0xbf')])?0x1:-0x1),this[_0x227b('0x85')][_0x227b('0x2c')](_0x8197e7=>{for(const _0x47fdf7 of _0x574ce7){let _0x166bfd;_0x166bfd=_0x47fdf7[_0x227b('0x10a')][_0x227b('0x2d')]&&_0x47fdf7[_0x227b('0x10a')][_0x227b('0xcf')]==_0x47fdf7[_0x227b('0xbf')]['nodeAfter']?_0x8197e7[_0x227b('0xda')](_0x47fdf7['start'][_0x227b('0xa2')],'on'):_0x8197e7[_0x227b('0xda')](_0x47fdf7),this[_0x227b('0x85')][_0x227b('0xc3')](_0x166bfd,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x25c8b2=(_0x3db7ca,_0x1e396d)=>{this[_0x227b('0x85')][_0x227b('0x2c')](_0x4dddd8=>{const {commandName:_0x107a3e,commandParams:_0x3e8ebc=[]}=_0x1e396d,_0xa51d32=_0x3db7ca[_0x227b('0x22')](_0x11d3f7=>(_t(_0x11d3f7)&&(_0x11d3f7=this[_0x227b('0x85')]['createRange'](_0x11d3f7[_0x227b('0x10a')])),_0x11d3f7))[_0x227b('0xdd')](_0x31d0d3=>_0x227b('0x11e')!==_0x31d0d3[_0x227b('0x3f')][_0x227b('0x9e')]);if(_0xa51d32[_0x227b('0x2a')]<0x1)return;const _0x2c8eb8=Array[_0x227b('0x88')](this['_model'][_0x227b('0x7d')]['selection'][_0x227b('0xa7')]())['map'](_0x3a0312=>_0x4a1046[_0x227b('0x8f')](_0x3a0312));_0x4dddd8[_0x227b('0x87')](_0xa51d32);for(const _0x40b92f of this[_0x227b('0x7a')][_0x227b('0x29')]['commands']())_0x40b92f[_0x227b('0x21')]();_0x3e8ebc[_0x227b('0x75')]({'forceDefaultExecution':!0x0}),this[_0x227b('0x7a')][_0x227b('0x9f')](_0x107a3e,..._0x3e8ebc);const _0x1b646e=_0x2c8eb8[_0x227b('0xdd')](_0x13d0cb=>_0x227b('0x11e')!=_0x13d0cb['root'][_0x227b('0x9e')]);_0x1b646e[_0x227b('0x2a')]>0x0&&_0x4dddd8['setSelection'](_0x1b646e);for(const _0x332e50 of _0x2c8eb8)_0x332e50[_0x227b('0x100')]();});},_0x243125=(_0x16aac4,_0x581759)=>0x1==_0x16aac4[_0x227b('0x2a')]&&0x1==_0x581759[_0x227b('0x2a')]&&_0x16aac4[0x0][_0x227b('0x10a')][_0x227b('0xfb')](_0x581759[0x0][_0x227b('0xbf')]),_0x2dc818=(_0x9cea8d,_0x1f4864,_0x2faf84,_0xc72389)=>xt(_0x9cea8d,_0x1f4864,_0x2faf84,_0xc72389,this[_0x227b('0x85')])?[_0x9cea8d,_0x1f4864]:xt(_0x1f4864,_0x9cea8d,_0xc72389,_0x2faf84,this[_0x227b('0x85')])?[_0x1f4864,_0x9cea8d]:null;this[_0x227b('0xc2')][_0x227b('0x91')]('insertion:accept',_0x3a58d5),this[_0x227b('0xc2')][_0x227b('0x91')](_0x227b('0x82'),_0x5962ea),this['_defaultCallbacks'][_0x227b('0x91')](_0x227b('0xb6'),_0x243125),this['_defaultCallbacks'][_0x227b('0x91')]('insertion:chain',_0x2dc818),this[_0x227b('0xc2')]['set'](_0x227b('0xdb'),_0x5962ea),this['_defaultCallbacks'][_0x227b('0x91')](_0x227b('0xb8'),_0x3a58d5),this[_0x227b('0xc2')][_0x227b('0x91')]('deletion:join',_0x243125),this[_0x227b('0xc2')][_0x227b('0x91')](_0x227b('0xfd'),_0x2dc818),this['_defaultCallbacks']['set'](_0x227b('0x61'),_0x25c8b2),this[_0x227b('0xc2')][_0x227b('0x91')](_0x227b('0x8e'),_0x3a58d5),this[_0x227b('0xc2')][_0x227b('0x91')](_0x227b('0x10'),_0x243125),this['_defaultCallbacks']['set'](_0x227b('0x2'),_0x3a58d5),this[_0x227b('0xc2')][_0x227b('0x91')]('formatBlock:accept',_0x25c8b2),this['_defaultCallbacks']['set'](_0x227b('0xcb'),_0x3a58d5),this['_defaultCallbacks'][_0x227b('0x91')](_0x227b('0x92'),_0x243125),this[_0x227b('0xc2')][_0x227b('0x91')]('formatBlock:chain',_0x3a58d5);}}function Bt(_0x538f29,_0x30c0bd,_0x56a5aa){for(const _0x49939e of _0x30c0bd[_0x227b('0xcf')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x49939e[_0x227b('0x3f')]==_0x49939e)return!0x1;if(!_0x56a5aa[_0x227b('0x8')](_0x49939e))return!0x1;if(_0x538f29[_0x227b('0x35')](_0x49939e)||_0x538f29[_0x227b('0x71')](_0x49939e))return!0x0;}return!0x1;}function _t(_0x4eb23c){return _0x4eb23c[_0x227b('0x10a')][_0x227b('0xcf')]==_0x4eb23c['start'][_0x227b('0xa2')]&&_0x4eb23c['end'][_0x227b('0xe8')];}function Mt(_0x51900c,_0x218c16,_0x198055,_0x329bff){const _0x2f97df=_0x46d14e=>!_0x46d14e[_0x227b('0xd')]['is'](_0x227b('0x12d'))&&!_0x329bff[_0x227b('0x35')](_0x46d14e[_0x227b('0xd')]),_0x59d148=_0x51900c[_0x227b('0xbf')][_0x227b('0x120')](_0x2f97df),_0x356003=_0x51900c[_0x227b('0x10a')][_0x227b('0x120')](_0x2f97df,{'direction':'backward'});return(!_0x51900c[_0x227b('0xbf')]['isEqual'](_0x59d148)||!_0x51900c[_0x227b('0x10a')][_0x227b('0xfb')](_0x356003))&&(_0x59d148[_0x227b('0x55')](_0x356003)?_0x198055[_0x227b('0xd1')](_0x218c16,{'range':_0x198055[_0x227b('0x121')](_0x59d148,_0x356003)}):_0x198055[_0x227b('0x6c')](_0x218c16),!0x0);}function $t(_0x158a25){return _0x34e9b7(_0x158a25);}function Nt(_0x37c9ba){const _0x10ca8f=_0x37c9ba[_0x227b('0xbf')]['nodeAfter'];return _0x10ca8f&&_0x10ca8f['is'](_0x227b('0x3'));}function Rt(_0x3e147d,_0x33790b){const _0x1db1b3=_0x33790b[_0x227b('0x6f')]['isObject'](_0x3e147d)||_0x33790b[_0x227b('0x6f')][_0x227b('0x9')](_0x3e147d);return _0x33790b[_0x227b('0x121')](_0x33790b[_0x227b('0xeb')](_0x3e147d,_0x227b('0x123')),_0x1db1b3?_0x33790b['createPositionAfter'](_0x3e147d):_0x33790b[_0x227b('0xeb')](_0x3e147d,_0x227b('0x10a')));}function xt(_0x51c480,_0x34c1a5,_0x52fb5c,_0x3bfa7b,_0x4feebe){if(_0x52fb5c['end'][_0x227b('0xfb')](_0x3bfa7b[_0x227b('0xbf')]))return!0x0;if(_0x51c480['type']!=_0x34c1a5[_0x227b('0x129')])return!0x1;if(!_0x52fb5c['end'][_0x227b('0xd8')](_0x3bfa7b[_0x227b('0xbf')]))return!0x1;const _0x15a9da=_0x4feebe[_0x227b('0x121')](_0x52fb5c[_0x227b('0x10a')],_0x3bfa7b[_0x227b('0xbf')])[_0x227b('0x113')]();for(const _0x546445 of _0x15a9da)if([_0x227b('0x122'),_0x227b('0x98')][_0x227b('0x9d')](_0x546445[_0x227b('0x129')])&&_0x4feebe['schema'][_0x227b('0x71')](_0x546445[_0x227b('0xd')]))return!0x1;return!0x0;}
23
+ const _0x30fe=['getChangedMarkers','elementEnd','before','getAttribute','ck-suggestion-marker-formatBlock','markerToHighlight','forceDefaultExecution','markers','editor','markMultiRangeDeletion','multipleBlocks','createPositionAt','_adapter','containsRange','markerName','authorName','_splitMarkerName','acceptAllSuggestions','addCommentThread','addUser','hasComments','authoredAt','_breakSuggestionMarker','suggestionLoaded','@external','isTouching','isLimit','nodeBefore','schema','ck-suggestion-marker-','_updateSuggestionData','get','_joinWithAdjacentSuggestions','trackChanges','unbind','containsItem','_defaultCallbacks','has','split','notReady','_handleNewSuggestionMarker','markMultiRangeInsertion','attributes','hasSuggestion','deletion:','length','open','position','collaboration.channelId','define','then','track-changes-suggestion-data-mismatch','markMultiRangeBlockFormat','remove','newRange','catch','commentThread','mapper','addMarkerName','insertion:discard','deletion:chain','getUser','sort','removed','howMany','isMultiRange','locale','nodeAfter','toViewElement','isOwn','element','setTo','change:activeMarkers','includes','substr','_checkSuggestionCorrectness','unbindElementFromMarkerName','activeMarkers','updateMarker','_suggestionState','CommentsRepository','_onDiscard','addClass','isInsideObject','_getAuthorFromId','isAfter','upcast','_suggestionFactory','creator','acceptSuggestion','_addSuggestionMarker','accept','_removeSuggestion','insertion:accept','_findSuggestions','buildSuggestion','marker-count','containsPosition','insertion:join','trackChanges.trackFormatChanges','fire','getIntersection','track-changes-user-not-found','addComment','suggestionChanged','for','selection','_editor','ready','end','discardSuggestion','showSuggestionHighlights','splice','fromRange','every','detach','parent','_customCallbacks','isObject','model','formatInline:join','insert','commandName','moveTargetPosition','addRange','deleteContent','getNearestSelectionRange','change:_saved','config','deletion:join','addMarker:suggestion:formatBlock','type','_model','getRange','name','group','formatGroupId','getFirstMarker','some','change','options','isDocumentOperation','applyOperation','createRangeIn','insertContent','execute','discardAllSuggestions','getSuggestions','getSuggestion','add','_saved','track-changes-command-not-found','delete','removeClass','batch','writer','formatBlock:accept','createPositionBefore','getChanges','isCollapsed','formatBlock:','_enabledCommands','accepted','isEqual','documentSelection','setAttribute','data','getMultiRangeId','addSuggestionData','enableReadOnlyMode','createRange','_mergeNestedSuggestions','targetPosition','init','widget','registerPostFixer','fetchCommentThread','move','consume','editingDowncast','removeMarker','setSelection','_joinSuggestions','_suggestions','low','map','ck-suggestion-marker','adapter','filter','getCommentThread','$marker','suggestion:','discard','listenTo','multi','removeMarkers','createPositionAfter','getRanges','fromCharCode','getFirstRange','clone','dataToMarker','consumable','splitPosition','next','plugins','values','suggestion-type','_isForcedDefaultExecutionBlock','previous','getShiftedBy','rejected','removeMarker:suggestion:formatBlock','head','formatBlock:discard','clear','track-changes-suggestion-not-found','getWalker','change:data','markBlockFormat','track-changes-adapter-already-set','getDifference','updateSuggestion','isNextTo','formatInline','never','hasCommentThread','isUndo','data-suggestion','createdAt','always','editing','_setSuggestionData','getAllAdjacentSuggestions','formatInline:','isAtEnd','_trackFormatChanges','getLastMatchingPosition','removeAttribute','track-changes-adapter-missing-getsuggestion','size','addHighlight','TrackChangesEditing','root','insertion','isIntersectingWithRange','formatInline:chain','formatInline:discard','rethrowUnexpectedError','after','getSuggestionCallback','push','_commentsRepository','_descriptionFactory','registerCustomCallback','dataDowncast','oldRange','createSelection','insertion:','bindElementToMarker','containsRangeInObject','join','getItems','deletion:accept','isBefore','deletion:discard','isInContent','isRemovable','return','elementToElement','suggestionUnloaded','set','getMarkers','skipNestingCheck','chain','item','normal','trackChanges.mergeNestedSuggestions','getCustomProperty','PENDING_ACTION_SUGGESTION','deletion','$graveyard','markerToData','isBlock','_getExternalAuthor','_createSuggestion','_addThreadToSuggestion','addSuggestion','acceptSelectedSuggestions','reconvertMarker','suggestion','isSelectable','stop','value','commands','range','isAtStart','_getSuggestionData','ck-suggestion-marker--active','formatInline:accept','trackChangesCommand','_setSuggestionRange','refresh','author','conversion','_registerDefaultCallbacks','enableCommand','markerReady','_rangeIsInLocalUserInsertion','markDeletion','addMarker:suggestion','differ','elementStart','_cutOutSuggestionMarker','_refreshSuggestionsChain','forward','lowest','insertion:chain','Users','rootName','markInsertion','document','start','subType','from','high','formatBlock'];(function(_0x357a0b,_0x30feb6){const _0xc64532=function(_0x4e78cb){while(--_0x4e78cb){_0x357a0b['push'](_0x357a0b['shift']());}};_0xc64532(++_0x30feb6);}(_0x30fe,0x144));const _0xc645=function(_0x357a0b,_0x30feb6){_0x357a0b=_0x357a0b-0x0;let _0xc64532=_0x30fe[_0x357a0b];return _0xc64532;};import{Plugin as _0xc99c7b,PendingActions as _0x50847a}from'ckeditor5/src/core';import{LiveRange as _0x2f0652}from'ckeditor5/src/engine';import{CKEditorError as _0x2aeeee,uid as _0x1fd70c,priorities as _0x1d64d8,logWarning as _0x29c143}from'ckeditor5/src/utils';import{toWidget as _0x47fab0}from'ckeditor5/src/widget';import{Users as _0x4f597a,hashObject as _0x196e19}from'ckeditor5-collaboration/src/collaboration-core';import _0x2e122b from'./commands/trackchangescommand';import _0x2e5037 from'./commands/acceptsuggestioncommand';import _0x376053 from'./commands/discardsuggestioncommand';import _0x3ca962 from'./commands/executeonallsuggestionscommand';import _0x2d98d8 from'./commands/executeonselectedsuggestionscommand';import _0x47c5e9 from'./suggestion';import _0x158e6a from'./suggestiondescriptionfactory';import _0xf317bc from'./integrations/alignment';import _0x52ba81 from'./integrations/basicstyles';import _0x942884 from'./integrations/blockquote';import _0x460b27 from'./integrations/ckbox';import _0x33ea1d from'./integrations/codeblock';import _0x2d17aa from'./integrations/comments';import _0x3000e4 from'./integrations/deletecommand';import _0x403908 from'./integrations/documentlist';import _0xa82724 from'./integrations/entercommand';import _0x3ff9b5 from'./integrations/findandreplace';import _0x415615 from'./integrations/font';import _0x3eca19 from'./integrations/formatpainter';import _0x11266e from'./integrations/heading';import _0xa69b7 from'./integrations/highlight';import _0x21424d from'./integrations/horizontalline';import _0x508f69 from'./integrations/htmlembed';import _0x4b4378 from'./integrations/image';import _0x1858fc from'./integrations/imagereplace';import _0x3f1977 from'./integrations/importword';import _0x555d99 from'./integrations/indent';import _0x8ffcdd from'./integrations/inputcommand';import _0x2de4d1 from'./integrations/link';import _0x36d841 from'./integrations/list';import _0x288a01 from'./integrations/listproperties';import _0x12a106 from'./integrations/mediaembed';import _0x478e3d from'./integrations/mention';import _0x323729 from'./integrations/pagebreak';import _0x231e48 from'./integrations/paragraph';import _0x225c8f from'./integrations/removeformat';import _0x5cec92 from'./integrations/restrictededitingmode';import _0x2bdf9b from'./integrations/shiftentercommand';import _0x3502ce from'./integrations/standardeditingmode';import _0x5cc86b from'./integrations/style';import _0x2c3015 from'./integrations/table';import _0x35dde7 from'./integrations/tablemergesplit';import _0x4c7135 from'./integrations/tableheadings';import _0x36bd0c from'./integrations/tableclipboard';import _0x58de52 from'./integrations/tablecolumnresize';import _0x5b4983 from'./integrations/template';import _0xc4402 from'./integrations/tableofcontents';import _0x454f75 from'./integrations/title';import _0x23f80f from'./integrations/undo';import{getTranslation as _0x2545c9}from'./utils/common-translations';import _0x49fea9 from'./integrations/tablecaption';import _0x98e47a from'./integrations/documentlistproperties';import _0x24c564 from'./integrations/tableproperties';export default class p extends _0xc99c7b{static get['requires'](){return[_0xc645('0x53'),_0x4f597a,_0x50847a,_0xf317bc,_0x52ba81,_0x942884,_0x460b27,_0x33ea1d,_0x2d17aa,_0x3000e4,_0x403908,_0x98e47a,_0xa82724,_0x3ff9b5,_0x415615,_0x3eca19,_0x11266e,_0xa69b7,_0x21424d,_0x508f69,_0x4b4378,_0x1858fc,_0x3f1977,_0x555d99,_0x8ffcdd,_0x2de4d1,_0x36d841,_0x288a01,_0x12a106,_0x478e3d,_0x323729,_0x231e48,_0x225c8f,_0x5cec92,_0x2bdf9b,_0x3502ce,_0x5cc86b,_0x2c3015,_0x35dde7,_0x4c7135,_0x49fea9,_0x36bd0c,_0x58de52,_0xc4402,_0x24c564,_0x5b4983,_0x454f75,_0x23f80f];}static get['pluginName'](){return _0xc645('0xf5');}constructor(_0x4b6de4){function _0x618ddc(_0x17d77b){return _0x17d77b[_0xc645('0xbc')](_0x25c712=>String[_0xc645('0xc9')](_0x25c712))[_0xc645('0x108')]('');}super(_0x4b6de4),this[_0xc645('0x112')](_0xc645('0x50'),[]),this['on'](_0xc645('0x4b'),(_0x4e0a23,_0x2955d,_0x3cf64f,_0x1d251b)=>{this['_model']['change'](()=>{for(const _0x3ad534 of[..._0x1d251b,..._0x3cf64f])this['_model'][_0xc645('0xa')][_0xc645('0x28')](_0x3ad534)&&_0x4b6de4[_0xc645('0xea')][_0xc645('0x124')](_0x3ad534);});}),this[_0xc645('0x100')]=new _0x158e6a(this['editor'][_0xc645('0x7a')][_0xc645('0x1f')],this[_0xc645('0xb')][_0xc645('0x45')]),this[_0xc645('0xf')]=null,this[_0xc645('0x5a')]=new Dt(this['editor']),this[_0xc645('0xba')]=new Map(),this['_commentsRepository']=_0x4b6de4[_0xc645('0xd0')]['get'](_0xc645('0x53')),this[_0xc645('0xa4')]=new Set(),this['_model']=this[_0xc645('0xb')][_0xc645('0x7a')],this[_0xc645('0x52')]=new WeakMap(),this[_0xc645('0xd3')]=!0x1,_0x4b6de4[_0xc645('0x83')][_0xc645('0x34')](_0xc645('0x66'),'default'),this[_0xc645('0xef')]=_0x4b6de4[_0xc645('0x83')][_0xc645('0x22')]('trackChanges.trackFormatChanges'),_0x4b6de4[_0xc645('0x83')][_0xc645('0x34')](_0xc645('0x118'),!0x0),this[_0xc645('0xae')]=_0x4b6de4[_0xc645('0x83')]['get'](_0xc645('0x118')),this[_0xc645('0x12f')]=new _0x2e122b(_0x4b6de4,this['_enabledCommands']),this[_0x618ddc([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x618ddc([0x34,0x30,0x34,0x36,0x31,0x34,0x34,0x38]);}[_0xc645('0xb0')](){const _0x1c91bb=this[_0xc645('0xb')];_0x1c91bb[_0xc645('0x133')]['for']('editingDowncast')['markerToHighlight']({'model':_0xc645('0x125'),'view':_0x55436f=>{const {id:_0xff662a,type:_0x48aac8}=this[_0xc645('0x13')](_0x55436f[_0xc645('0x11')]),_0x1800bb=[_0xc645('0xbd'),_0xc645('0x20')+_0x48aac8];let _0x263acf=0xbb8;return this['activeMarkers'][_0xc645('0x4c')](_0x55436f[_0xc645('0x11')])&&(_0x1800bb[_0xc645('0xfe')](_0xc645('0x12d')),_0x263acf=0xbc2),_0xc645('0x11b')==_0x48aac8&&(_0x263acf+=0x5),{'classes':_0x1800bb,'attributes':{'data-suggestion':_0xff662a},'priority':_0x263acf};}}),_0x1c91bb['conversion'][_0xc645('0x6c')](_0xc645('0x102'))[_0xc645('0x98')](_0x39b367=>{_0x39b367['on'](_0xc645('0x139'),(_0xfde89b,_0xb291ee,_0x28b9be)=>{if(!_0x28b9be[_0xc645('0x8f')]['showSuggestionHighlights'])return;const _0x3f462d=_0xb291ee[_0xc645('0x116')];if(!_0x3f462d)return;const _0x2d7688=_0x28b9be[_0xc645('0x3c')]['toViewElement'](_0x3f462d);_0x1c91bb[_0xc645('0x7a')]['schema']['isObject'](_0x3f462d)&&_0x2d7688&&!_0x2d7688['getCustomProperty'](_0xc645('0xb1'))&&_0x2d7688['is']('containerElement')&&_0x47fab0(_0x2d7688,_0x28b9be[_0xc645('0x9e')]);},{'priority':_0xc645('0x1')});}),_0x1c91bb['conversion'][_0xc645('0x6c')]('dataDowncast')[_0xc645('0x8')]({'model':'suggestion','view':(_0x54f025,_0x4c8100)=>{if(!_0x4c8100[_0xc645('0x8f')]['showSuggestionHighlights'])return null;const {type:_0x3298d8}=this['_splitMarkerName'](_0x54f025[_0xc645('0x11')]);return{'classes':[_0xc645('0xbd'),_0xc645('0x20')+_0x3298d8],'priority':0xbb8};}});const _0x353599=({showActiveMarkers:_0x2baffc=!0x0}={})=>(_0x7f705b,_0x3e6572,_0x2d9d00)=>{if(!_0x3e6572['item'])return;if(_0x3e6572['item']['is'](_0xc645('0x6d')))return void _0x2d9d00[_0xc645('0xcd')][_0xc645('0xb5')](_0x3e6572[_0xc645('0x116')],_0x7f705b[_0xc645('0x89')]);const _0x38310=_0x2d9d00['mapper'][_0xc645('0x47')](_0x3e6572[_0xc645('0x116')]);if(!(_0x3e6572[_0xc645('0x116')]['is'](_0xc645('0x49'))&&_0x1c91bb['model'][_0xc645('0x1f')][_0xc645('0x11e')](_0x3e6572[_0xc645('0x116')])&&!_0x38310[_0xc645('0x119')]('addHighlight')))return;const {id:_0x8d3f54}=this[_0xc645('0x13')](_0x3e6572[_0xc645('0x11')]);_0x2d9d00[_0xc645('0x9e')][_0xc645('0x55')]([_0xc645('0xbd'),_0xc645('0x7')],_0x38310),_0x2d9d00[_0xc645('0x9e')][_0xc645('0xa8')](_0xc645('0xe7'),_0x8d3f54,_0x38310),_0x2d9d00['mapper'][_0xc645('0x106')](_0x38310,_0x3e6572[_0xc645('0x11')]),_0x2baffc&&(this[_0xc645('0x50')][_0xc645('0x4c')](_0x3e6572[_0xc645('0x11')])?_0x2d9d00[_0xc645('0x9e')][_0xc645('0x55')]('ck-suggestion-marker--active',_0x38310):_0x2d9d00[_0xc645('0x9e')][_0xc645('0x9c')](_0xc645('0x12d'),_0x38310));for(const _0x16b78 of _0x1c91bb[_0xc645('0x7a')][_0xc645('0x92')](_0x3e6572[_0xc645('0x116')])[_0xc645('0x109')]())_0x2d9d00[_0xc645('0xcd')][_0xc645('0xb5')](_0x16b78,_0x7f705b['name']);_0x2d9d00[_0xc645('0xcd')]['consume'](_0x3e6572[_0xc645('0x116')],_0x7f705b['name']);};_0x1c91bb[_0xc645('0x133')][_0xc645('0x6c')]('dataDowncast')[_0xc645('0x98')](_0x582b02=>{_0x582b02['on'](_0xc645('0x85'),(_0x4e8718,_0x11b400,_0x31db22)=>{_0x31db22['options'][_0xc645('0x72')]&&_0x353599({'showActiveMarkers':!0x1})(_0x4e8718,_0x11b400,_0x31db22);},{'priority':'highest'});}),_0x1c91bb['conversion'][_0xc645('0x6c')](_0xc645('0x102'))[_0xc645('0x11d')]({'model':_0xc645('0x125'),'view':(_0x14c533,_0x5d250a)=>_0x5d250a['options'][_0xc645('0x72')]?null:{'group':_0xc645('0x125'),'name':_0x14c533[_0xc645('0x4d')](0xb)}}),_0x1c91bb[_0xc645('0x133')]['for']('upcast')[_0xc645('0x110')]({'view':{'name':_0xc645('0x125'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4297ef,{writer:_0x541fa9})=>{let _0x418264=_0xc645('0xc2')+_0x4297ef[_0xc645('0x6')](_0xc645('0xd2'))+':'+_0x4297ef[_0xc645('0x6')]('id');return _0x4297ef[_0xc645('0x6')](_0xc645('0x63'))&&(_0x418264+=':'+_0x4297ef['getAttribute']('marker-count')),_0x541fa9['createElement'](_0xc645('0xc1'),{'data-name':_0x418264});}}),_0x1c91bb[_0xc645('0x133')][_0xc645('0x6c')](_0xc645('0x59'))[_0xc645('0xcc')]({'view':'suggestion'}),_0x1c91bb['conversion'][_0xc645('0x6c')]('editingDowncast')['add'](_0x32f068=>{_0x32f068['on'](_0xc645('0x85'),_0x353599(),{'priority':_0xc645('0x1')});}),_0x1c91bb[_0xc645('0x133')]['for'](_0xc645('0xb6'))[_0xc645('0x98')](_0x41ecff=>{_0x41ecff['on'](_0xc645('0xd7'),(_0xdfaf4c,_0x398868,_0x2c8427)=>{const _0x3bfe1b=_0x2c8427[_0xc645('0x3c')]['markerNameToElements'](_0x398868[_0xc645('0x11')]);if(_0x3bfe1b)for(const _0x4a5ef4 of _0x3bfe1b)_0x4a5ef4[_0xc645('0x119')](_0xc645('0xf4'))||(_0x2c8427['writer'][_0xc645('0x9c')]([_0xc645('0xbd'),_0xc645('0x7'),_0xc645('0x12d')],_0x4a5ef4),_0x2c8427[_0xc645('0x9e')][_0xc645('0xf1')](_0xc645('0xe7'),_0x4a5ef4),_0x2c8427[_0xc645('0x3c')][_0xc645('0x4f')](_0x4a5ef4,_0x398868[_0xc645('0x11')]));},{'priority':_0xc645('0x1')});}),_0x1c91bb[_0xc645('0x7a')][_0xc645('0x144')][_0xc645('0xb2')](_0xf85426=>{let _0x32a023=!0x1;const _0xe05f07=Array[_0xc645('0x0')](_0x1c91bb[_0xc645('0x7a')][_0xc645('0x144')]['differ'][_0xc645('0x3')]()),_0x444bdf=new Set();for(const {name:_0xb51c32,data:_0x54ec8c}of _0xe05f07){const {group:_0x2e6684,type:_0x314c75,id:_0x2dd033}=this[_0xc645('0x13')](_0xb51c32);if(_0xc645('0x125')!==_0x2e6684)continue;const _0x10dad5=this['_suggestions'][_0xc645('0x22')](_0x2dd033);if(null!=_0x54ec8c[_0xc645('0x39')]){_0xc645('0xe3')==_0x314c75&&(_0x32a023=_0x32a023||Mt(_0x54ec8c[_0xc645('0x39')],_0xb51c32,_0xf85426,_0x1c91bb[_0xc645('0x7a')][_0xc645('0x1f')]));if(_0x54ec8c[_0xc645('0x39')][_0xc645('0xa2')]||_0xc645('0x11c')==_0x54ec8c[_0xc645('0x39')][_0xc645('0xf6')][_0xc645('0x142')]||_0xc645('0x2')==_0x314c75&&!Nt(_0x54ec8c[_0xc645('0x39')])||'deletion'==_0x314c75&&!(!_t(_0x245f1e=_0x54ec8c[_0xc645('0x39')])&&!function(_0x394fbf){return _0x394fbf[_0xc645('0x145')][_0xc645('0x77')]==_0x394fbf[_0xc645('0x70')]['nodeBefore']&&_0x394fbf['start'][_0xc645('0xee')];}(_0x245f1e)))_0xf85426['removeMarker'](_0xb51c32),_0x32a023=!0x0;else{if(!_0x10dad5||!_0x10dad5[_0xc645('0x10d')])continue;_0x444bdf['add'](_0x10dad5);}}}var _0x245f1e;return _0x444bdf[_0xc645('0xf3')]>0x0&&(_0x32a023=!!this[_0xc645('0x23')](_0x444bdf)||_0x32a023),_0x32a023;}),_0x1c91bb[_0xc645('0x7a')][_0xc645('0x144')][_0xc645('0xb2')](_0x2aa7e4=>{let _0x4087f2=!0x1;for(const _0x20d35c of _0x1c91bb[_0xc645('0x7a')][_0xc645('0x144')]['differ'][_0xc645('0xa1')]()){if(_0xc645('0x7c')!=_0x20d35c['type'])continue;const _0x82866f=_0x20d35c[_0xc645('0x32')]['getShiftedBy'](_0x20d35c[_0xc645('0x30')]);if(_0x82866f['isAtEnd'])for(const _0x456633 of this['_suggestions'][_0xc645('0xd1')]()){if(_0x456633[_0xc645('0x44')]||!_0x456633[_0xc645('0x10d')])continue;if(_0xc645('0x2')!=_0x456633[_0xc645('0x86')])continue;const _0x3d9d51=_0x456633[_0xc645('0xca')]();if(_0x3d9d51[_0xc645('0x145')][_0xc645('0x77')]!=_0x3d9d51['end'][_0xc645('0x77')]&&_0x3d9d51['end'][_0xc645('0xa6')](_0x20d35c[_0xc645('0x32')])){const _0x1b25f3=_0x1c91bb['model']['createRange'](_0x3d9d51[_0xc645('0x145')],_0x82866f);_0x2aa7e4[_0xc645('0x51')](_0x456633[_0xc645('0x8c')](),{'range':_0x1b25f3}),_0x4087f2=!0x0;}}}return _0x4087f2;}),_0x1c91bb[_0xc645('0x7a')][_0xc645('0xa')]['on']('update:suggestion',(_0x24221d,_0x5f079e,_0xf3ffa1)=>{if(null==_0xf3ffa1){const {id:_0x729b47}=this[_0xc645('0x13')](_0x5f079e['name']),_0x25934a=this[_0xc645('0xba')][_0xc645('0x22')](_0x729b47);_0x25934a&&_0x25934a[_0xc645('0x3d')](_0x5f079e[_0xc645('0x89')]);}}),_0x1c91bb[_0xc645('0x7a')][_0xc645('0x144')]['on'](_0xc645('0xdd'),()=>{const _0x7c1bd=Array['from'](_0x1c91bb['model'][_0xc645('0x144')][_0xc645('0x13a')][_0xc645('0x3')]())[_0xc645('0xbf')](_0x3fbd1c=>'suggestion'===this[_0xc645('0x13')](_0x3fbd1c[_0xc645('0x89')])[_0xc645('0x8a')]);if(0x0===_0x7c1bd[_0xc645('0x30')])return;_0x7c1bd[_0xc645('0x41')]((_0x3c1c69,_0x8ce2c3)=>{const _0x34ec5a=_0x3c1c69['data'][_0xc645('0x103')],_0x10932f=_0x8ce2c3[_0xc645('0xa9')][_0xc645('0x103')];return null===_0x34ec5a&&null===_0x10932f?0x0:null===_0x34ec5a&&null!==_0x10932f?-0x1:null!==_0x34ec5a&&null===_0x10932f?0x1:_0x34ec5a['start'][_0xc645('0x10b')](_0x10932f[_0xc645('0x145')])?-0x1:0x1;});const _0x1da981=new Set(),_0xf69cb4=new Set();for(const {name:_0x429ccf,data:_0x4e9769}of _0x7c1bd){const {id:_0x184f3a}=this[_0xc645('0x13')](_0x429ccf);if(null===_0x4e9769[_0xc645('0x103')]){const _0xc6a910=this[_0xc645('0x2b')](_0x429ccf);_0xf69cb4[_0xc645('0x98')](_0xc6a910);}else{const _0x239f9e=this[_0xc645('0xba')]['get'](_0x184f3a);null!==_0x4e9769[_0xc645('0x39')]||_0x239f9e[_0xc645('0x10d')]?(_0x1da981[_0xc645('0x98')](_0x239f9e[_0xc645('0xd8')]),_0xf69cb4['add'](_0x239f9e)):this['_removeSuggestion'](_0x239f9e);}}_0xf69cb4['size']>0x0&&this[_0xc645('0x13d')](_0xf69cb4);for(const _0x39fd70 of _0x1da981)this[_0xc645('0x67')](_0xc645('0x6b'),_0x39fd70);}),_0x1c91bb[_0xc645('0x7a')]['on'](_0xc645('0x91'),(_0x2b57d4,_0x53cb74)=>{const _0xd13501=_0x53cb74[0x0];if(!this['_suggestions'][_0xc645('0xf3')])return;if(!_0xd13501[_0xc645('0x90')])return;if(_0xd13501[_0xc645('0x9d')][_0xc645('0xe6')]||!_0xd13501[_0xc645('0x9d')]['isLocal'])return;let _0x545017,_0x1dfcfe;switch(_0xd13501[_0xc645('0x86')]){case'insert':_0x545017=_0x1c91bb[_0xc645('0x7a')][_0xc645('0xe')](_0xd13501[_0xc645('0x32')]),_0x1dfcfe=_0x545017[_0xc645('0xd5')](_0xd13501[_0xc645('0x43')]);break;case _0xc645('0x29'):_0x545017=_0x1c91bb[_0xc645('0x7a')][_0xc645('0xe')](_0xd13501[_0xc645('0xce')]),_0x1dfcfe=_0x1c91bb[_0xc645('0x7a')][_0xc645('0xe')](_0xd13501[_0xc645('0x7e')]);break;case _0xc645('0xb4'):_0x545017=_0x1c91bb[_0xc645('0x7a')][_0xc645('0xe')](_0xd13501[_0xc645('0xaf')]),_0x1dfcfe=_0x545017[_0xc645('0xd5')](_0xd13501[_0xc645('0x43')]);break;default:return;}const _0x3b9fde=_0x1c91bb[_0xc645('0x7a')][_0xc645('0xad')](_0x545017,_0x1dfcfe);_0x1c91bb[_0xc645('0x7a')][_0xc645('0x8e')](()=>{for(const {suggestion:_0x1dc2de,meta:_0x391f97}of this['_findSuggestions'](_0x3b9fde)){if(_0x1dc2de[_0xc645('0x44')])continue;if('formatInline'==_0x1dc2de[_0xc645('0x86')])continue;const _0x2f63b8=_0x1dc2de['data']&&_0x1dc2de['data'][_0xc645('0xd')];('formatBlock'!=_0x1dc2de[_0xc645('0x86')]||_0xc645('0x29')==_0xd13501['type']&&!_0x2f63b8)&&(_0x391f97[_0xc645('0x107')]||'insertion'==_0x1dc2de[_0xc645('0x86')]&&_0x391f97[_0xc645('0x48')]||_0x1dc2de['getFirstRange']()[_0xc645('0x10')](_0x3b9fde)&&this['_breakSuggestionMarker'](_0x1dc2de,_0x545017,_0x1dfcfe));}});},{'priority':_0xc645('0x13f')}),_0x1c91bb['model']['on'](_0xc645('0x80'),(_0x496dc9,_0x5510af)=>{const _0x20149c=_0x5510af[0x0],_0x252514=_0x5510af[0x1];if(_0x252514&&_0x252514[_0xc645('0x9')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0xc645('0x12f')][_0xc645('0x128')])return;if(_0x20149c['isCollapsed'])return;const _0x277fc4=_0x1c91bb['model'][_0xc645('0x1f')],{start:_0x382e0b,end:_0x20ada6}=_0x20149c[_0xc645('0xca')](),_0x20c716=_0x382e0b[_0xc645('0x46')]&&_0x277fc4[_0xc645('0x1d')](_0x382e0b[_0xc645('0x46')])?null:_0x277fc4[_0xc645('0x81')](_0x382e0b,_0xc645('0x13e')),_0x37416a=_0x20ada6['nodeBefore']&&_0x277fc4['isLimit'](_0x20ada6[_0xc645('0x1e')])?null:_0x277fc4[_0xc645('0x81')](_0x20ada6,'backward'),_0x16aacd=_0x1c91bb[_0xc645('0x7a')][_0xc645('0xad')](_0x20c716?_0x20c716['start']:_0x382e0b,_0x37416a?_0x37416a[_0xc645('0x70')]:_0x20ada6);_0x1c91bb[_0xc645('0x7a')]['change'](_0x369a7b=>{this[_0xc645('0x138')](_0x16aacd);const _0x270573=_0x1c91bb[_0xc645('0x7a')][_0xc645('0x1f')]['getNearestSelectionRange'](_0x16aacd[_0xc645('0x145')]);_0x20149c['is'](_0xc645('0xa7'))?_0x369a7b[_0xc645('0xb8')](_0x270573):_0x20149c[_0xc645('0x4a')](_0x270573);}),_0x496dc9[_0xc645('0x127')]();},{'priority':_0x1d64d8[_0xc645('0x117')]+0xa}),_0x1c91bb[_0xc645('0x7a')]['on'](_0xc645('0x93'),(_0x5f0cb3,_0xbc501)=>{const _0x1781b2=_0xbc501[_0xbc501[_0xc645('0x30')]-0x1];_0x1781b2&&_0x1781b2[_0xc645('0x9')]||this[_0xc645('0xd3')]||this[_0xc645('0x12f')][_0xc645('0x128')]&&(_0x1c91bb[_0xc645('0x7a')]['change'](()=>{let _0x36f7aa=_0x1c91bb['model'][_0xc645('0x93')](_0xbc501[0x0],_0xbc501[0x1],_0xbc501[0x2],{'forceDefaultExecution':!0x0});if(!_0x36f7aa)return;_0x5f0cb3[_0xc645('0x10f')]=_0x36f7aa[_0xc645('0xcb')]();const _0x33086c=_0x36f7aa[_0xc645('0x70')]['nodeBefore'],_0x1c6959=_0x1c91bb[_0xc645('0x7a')][_0xc645('0x1f')];_0x33086c&&_0x1c6959[_0xc645('0x11e')](_0x33086c)&&!_0x1c6959['isObject'](_0x33086c)&&(_0x36f7aa=_0x1c91bb[_0xc645('0x7a')][_0xc645('0xad')](_0x36f7aa[_0xc645('0x145')],_0x1c91bb['model']['createPositionAt'](_0x33086c,'end'))),this[_0xc645('0x143')](_0x36f7aa);}),_0x5f0cb3[_0xc645('0x127')]());},{'priority':'high'}),this[_0xc645('0xb')][_0xc645('0x129')][_0xc645('0x98')](_0xc645('0x24'),this[_0xc645('0x12f')]),this[_0xc645('0x135')]('trackChanges');const _0x24a177=new _0x2e5037(_0x1c91bb,this[_0xc645('0xba')]);_0x1c91bb['commands'][_0xc645('0x98')](_0xc645('0x5c'),_0x24a177),this['enableCommand']('acceptSuggestion');const _0x31bbe5=new _0x376053(_0x1c91bb,this[_0xc645('0xba')]);_0x1c91bb[_0xc645('0x129')][_0xc645('0x98')](_0xc645('0x71'),_0x31bbe5),this['enableCommand'](_0xc645('0x71')),_0x1c91bb['commands']['add'](_0xc645('0x14'),new _0x3ca962(_0x1c91bb,_0x24a177,this['_suggestions'])),this['enableCommand'](_0xc645('0x14')),_0x1c91bb[_0xc645('0x129')][_0xc645('0x98')](_0xc645('0x95'),new _0x3ca962(_0x1c91bb,_0x31bbe5,this[_0xc645('0xba')])),this['enableCommand'](_0xc645('0x95')),_0x1c91bb[_0xc645('0x129')]['add'](_0xc645('0x123'),new _0x2d98d8(_0x1c91bb,_0x24a177,this[_0xc645('0xba')])),this['enableCommand'](_0xc645('0x123')),_0x1c91bb[_0xc645('0x129')][_0xc645('0x98')]('discardSelectedSuggestions',new _0x2d98d8(_0x1c91bb,_0x31bbe5,this[_0xc645('0xba')])),this[_0xc645('0x135')]('discardSelectedSuggestions');const _0x2b0a8a=_0x1c91bb[_0xc645('0xd0')][_0xc645('0x22')](_0xc645('0x53'));this['listenTo'](_0x2b0a8a,_0xc645('0x6a'),(_0x1d78a2,{threadId:_0x4c62fe})=>{const _0x2b4fe0=this['_suggestions'][_0xc645('0x22')](_0x4c62fe);_0x2b4fe0&&_0x2b4fe0[_0xc645('0x3b')]&&0x1===_0x2b4fe0[_0xc645('0x3b')][_0xc645('0x30')]&&this[_0xc645('0x21')](_0x4c62fe,{'hasComments':!0x0});},{'priority':'low'}),this[_0xc645('0xc4')](_0x2b0a8a,'removeComment',(_0x2070fd,{threadId:_0x2fb574})=>{const _0x2f7b0e=this[_0xc645('0xba')]['get'](_0x2fb574);_0x2f7b0e&&_0x2f7b0e[_0xc645('0x3b')]&&!_0x2f7b0e[_0xc645('0x3b')]['length']&&this['_updateSuggestionData'](_0x2fb574,{'hasComments':!0x1});},{'priority':_0xc645('0xbb')});}set[_0xc645('0xbe')](_0x59682d){if(this[_0xc645('0xf')])throw new _0x2aeeee(_0xc645('0xdf'),this);this[_0xc645('0xf')]=_0x59682d;}get[_0xc645('0xbe')](){return this[_0xc645('0xf')];}['getSuggestions']({skipNotAttached:_0x35c8a0=!0x1,toJSON:_0x18931b=!0x1}={}){const _0x322680=[];for(const _0x6d02fe of this[_0xc645('0xba')]['values']())_0x35c8a0&&!_0x6d02fe[_0xc645('0x10d')]||_0x322680[_0xc645('0xfe')](_0x6d02fe);return _0x18931b?_0x322680[_0xc645('0xbc')](_0x32b2cf=>_0x32b2cf['toJSON']()):_0x322680;}['getSuggestion'](_0xdea5ad){const _0x3e995b=this[_0xc645('0xba')][_0xc645('0x22')](_0xdea5ad);if(!_0x3e995b)throw new _0x2aeeee(_0xc645('0xdb'),this);return _0x3e995b;}[_0xc645('0x2e')](_0x3462f3){return this[_0xc645('0xba')][_0xc645('0x28')](_0x3462f3);}[_0xc645('0xab')](_0x1f4d49){const {authorId:_0x8ba155,id:_0x3bcd7c,attributes:_0x5e0193}=_0x1f4d49,[_0x594013,_0x15cb6f]=_0x1f4d49[_0xc645('0x86')][_0xc645('0x29')](':'),_0x29fd5e=this[_0xc645('0xba')][_0xc645('0x22')](_0x3bcd7c)||this[_0xc645('0x120')](_0x594013,_0x15cb6f,_0x3bcd7c,_0x8ba155,_0x5e0193);if(this[_0xc645('0x121')](_0x29fd5e),this[_0xc645('0x4e')](_0x29fd5e,_0x594013,_0x15cb6f||null,_0x8ba155),_0x29fd5e[_0xc645('0xe8')]=_0x1f4d49[_0xc645('0xe8')],_0x5e0193&&_0x5e0193[_0xc645('0x1b')]){const _0x3c96b8=_0x5e0193[_0xc645('0x1b')],_0x1a112a=this[_0xc645('0x11f')](_0x3c96b8[_0xc645('0x12')]);_0x29fd5e[_0xc645('0x18')]=_0x3c96b8['createdAt'],_0x29fd5e['author']=_0x1a112a,_0x29fd5e['isExternal']=!0x0;}else _0x29fd5e[_0xc645('0x18')]=_0x1f4d49[_0xc645('0xe8')];switch(_0x1f4d49['data']&&(_0x29fd5e['data']=_0x1f4d49['data']),_0x1f4d49[_0xc645('0x2d')]&&(_0x29fd5e[_0xc645('0x2d')]=_0x1f4d49[_0xc645('0x2d')]),this[_0xc645('0xf')]&&this[_0xc645('0xf')][_0xc645('0x122')]||(_0x29fd5e[_0xc645('0x99')]=!0x0),this[_0xc645('0x52')][_0xc645('0x22')](_0x29fd5e)){case _0xc645('0x2a'):this[_0xc645('0x52')][_0xc645('0x112')](_0x29fd5e,'dataReady');break;case _0xc645('0x136'):_0x29fd5e[_0xc645('0x10d')]?(this[_0xc645('0x52')]['set'](_0x29fd5e,_0xc645('0x6f')),this[_0xc645('0x67')](_0xc645('0x1a'),_0x29fd5e)):this[_0xc645('0x52')][_0xc645('0x112')](_0x29fd5e,'removed');}return _0x29fd5e;}[_0xc645('0x5c')](_0x5439a7){this[_0xc645('0x9')](()=>{this[_0xc645('0xb')][_0xc645('0x7a')]['change'](()=>{for(const _0x30131f of _0x5439a7[_0xc645('0xec')]())_0x30131f[_0xc645('0x5e')]();});});}[_0xc645('0x71')](_0x2d51cc){this[_0xc645('0x9')](()=>{this[_0xc645('0xb')]['model'][_0xc645('0x8e')](()=>{for(const _0x2783cb of _0x2d51cc[_0xc645('0xec')]())_0x2783cb[_0xc645('0xc3')]();});});}[_0xc645('0x135')](_0x40264a,_0x1fc61e){const _0x411a6=this[_0xc645('0xb')][_0xc645('0x129')]['get'](_0x40264a);if(!_0x411a6)throw new _0x2aeeee(_0xc645('0x9a'),this,{'commandName':_0x40264a});this[_0xc645('0xa4')][_0xc645('0x98')](_0x411a6),_0x1fc61e&&_0x411a6['on'](_0xc645('0x94'),(_0x1b2b40,_0x22e8ce)=>{this[_0xc645('0x12f')]['value']&&(this[_0xc645('0xd3')]||_0x22e8ce[_0xc645('0x30')]>0x0&&_0x22e8ce[_0x22e8ce[_0xc645('0x30')]-0x1]&&_0x22e8ce[_0x22e8ce[_0xc645('0x30')]-0x1][_0xc645('0x9')]||(_0x1fc61e((..._0x302fae)=>_0x411a6[_0xc645('0x94')](..._0x302fae,{'forceDefaultExecution':!0x0}),..._0x22e8ce),_0x1b2b40[_0xc645('0x127')]()));},{'priority':_0xc645('0x1')});}[_0xc645('0x9')](_0x2988a1){let _0x459771,_0x2db65e;const _0x2a0ff6=this[_0xc645('0xd3')];this[_0xc645('0xd3')]=!0x0;try{_0x459771=_0x2988a1();}catch(_0x24c41b){_0x2db65e=_0x24c41b;}return _0x2a0ff6||(this[_0xc645('0xd3')]=!0x1),_0x2db65e&&_0x2aeeee[_0xc645('0xfb')](_0x2db65e,this),_0x459771;}[_0xc645('0x143')](_0x8c773a,_0x2da4ee=null,_0x2c2dcc={}){if(_0x8c773a[_0xc645('0xa2')])return null;const _0x13bc47=this['editor']['plugins']['get'](_0xc645('0x141'))['me'];for(const {suggestion:_0x3c8207,meta:_0x26e407}of this[_0xc645('0x61')](_0x8c773a,_0xc645('0xf7')))if(_0x26e407['isOwn']){if(!_0x26e407[_0xc645('0xe2')]){if(!this[_0xc645('0xae')]&&_0x26e407[_0xc645('0x107')])continue;return _0x3c8207;}if(_0x2da4ee==_0x3c8207[_0xc645('0x146')]){const _0x4b4ef9=_0x3c8207[_0xc645('0xca')]();return _0x4b4ef9[_0xc645('0x145')][_0xc645('0xa6')](_0x8c773a[_0xc645('0x70')])?this[_0xc645('0x130')](_0x3c8207,this[_0xc645('0x87')][_0xc645('0xad')](_0x8c773a['start'],_0x4b4ef9[_0xc645('0x70')])):this[_0xc645('0x130')](_0x3c8207,this['_model'][_0xc645('0xad')](_0x4b4ef9['start'],_0x8c773a[_0xc645('0x70')])),_0x3c8207;}}const _0x14e16c=_0x1fd70c(),_0x15d257=_0x13bc47['id'],_0x1fbfa4=_0x2da4ee?'insertion:'+_0x2da4ee:_0xc645('0xf7'),_0x44ee41=this[_0xc645('0xeb')]({'id':_0x14e16c,'type':_0x1fbfa4,'createdAt':new Date(),'authorId':_0x15d257,'attributes':_0x2c2dcc});return this[_0xc645('0x5d')](_0x1fbfa4,_0x14e16c,_0x15d257,_0x8c773a),_0x44ee41;}[_0xc645('0x2c')](_0x1a7f0d,_0x10c239=_0xc645('0xc5'),_0x404478={}){const _0x533a2f=this[_0xc645('0xb')][_0xc645('0xd0')]['get'](_0xc645('0x141'))['me'],_0x1dcb75=this[_0xc645('0x5a')][_0xc645('0xfd')](_0xc645('0xf7'),_0x10c239,_0xc645('0x108'));for(const _0x19b74c of this[_0xc645('0x96')]())if(_0x19b74c['author']['id']==_0x533a2f['id']&&_0xc645('0xf7')==_0x19b74c[_0xc645('0x86')]&&_0x19b74c[_0xc645('0x146')]==_0x10c239&&(_0x1dcb75(_0x19b74c[_0xc645('0xc8')](),_0x1a7f0d)||_0x1dcb75(_0x1a7f0d,_0x19b74c[_0xc645('0xc8')]()))){for(const _0x420b7a of _0x1a7f0d)_0x19b74c[_0xc645('0x7f')](_0x420b7a);return _0x19b74c;}if(this[_0xc645('0xae')])for(const _0x5d85aa of _0x1a7f0d)for(const {suggestion:_0x1f743a,meta:_0x5b36e5}of this[_0xc645('0x61')](_0x5d85aa,_0xc645('0xf7'))){if(!_0x5b36e5[_0xc645('0x48')])continue;let _0x50fd36=!0x0;for(const _0x567f02 of _0x1f743a[_0xc645('0xc8')]())for(const _0x455549 of _0x1a7f0d)if(!_0x567f02['containsRange'](_0x455549)){_0x50fd36=!0x1;break;}if(_0x50fd36)return _0x1f743a;}const _0x180cdb=_0x1fd70c(),_0xd8cf78=_0x533a2f['id'],_0x2d7111=_0xc645('0x105')+_0x10c239,_0x2327f9=this[_0xc645('0xeb')]({'id':_0x180cdb,'type':_0x2d7111,'createdAt':new Date(),'authorId':_0xd8cf78,'attributes':_0x404478});for(const _0x23160e of _0x1a7f0d)this[_0xc645('0x5d')](_0x2d7111,_0x180cdb,_0xd8cf78,_0x23160e,_0x47c5e9[_0xc645('0xaa')]());return _0x2327f9;}['markInlineFormat'](_0x5b8fe4,_0x17481a,_0x4790dd=null,_0x34c176={}){if(_0x4790dd=_0x4790dd||$t(_0x17481a),_0x5b8fe4[_0xc645('0xa2')])return null;if(_0xc645('0xe4')===this[_0xc645('0xef')]){const _0x2c9df1=this[_0xc645('0x5a')][_0xc645('0xfd')](_0xc645('0xe3'),_0x4790dd,_0xc645('0x5e'));return this[_0xc645('0x9')](()=>_0x2c9df1([_0x5b8fe4],_0x17481a,_0x34c176)),null;}const _0x5cf4a3=this[_0xc645('0xb')][_0xc645('0xd0')][_0xc645('0x22')](_0xc645('0x141'))['me'],_0x5190f4=[];if(_0xc645('0xe9')!==this['_trackFormatChanges'])for(const {suggestion:_0x29ef6c,meta:_0x4637f1}of this[_0xc645('0x61')](_0x5b8fe4,_0xc645('0xf7')))_0x4637f1['isOwn']&&!_0x4637f1[_0xc645('0x56')]&&_0x5190f4[_0xc645('0xfe')](..._0x29ef6c[_0xc645('0xc8')]());const _0x42902e=function(_0x15cb92,_0x484fc3){const _0x4cadf3=[];for(const _0x47c67f of _0x484fc3){const _0x35da45=_0x15cb92[_0xc645('0x68')](_0x47c67f);_0x35da45&&_0x4cadf3[_0xc645('0xfe')](_0x35da45);}return _0x4cadf3;}(_0x5b8fe4,_0x5190f4),_0x59788e=function(_0x11773b,_0x1b1919){const _0x5d0f32=[_0x11773b];for(const _0x3ed642 of _0x1b1919){let _0x49381e=0x0;for(;_0x49381e<_0x5d0f32['length'];){const _0x737bdb=_0x5d0f32[_0x49381e][_0xc645('0xe0')](_0x3ed642);_0x5d0f32[_0xc645('0x73')](_0x49381e,0x1,..._0x737bdb),_0x49381e+=_0x737bdb[_0xc645('0x30')];}}return _0x5d0f32;}(_0x5b8fe4,_0x5190f4);_0x42902e[_0xc645('0x30')]&&this['_model'][_0xc645('0x8e')](()=>{for(const _0x4aa244 of _0x42902e){const _0x107d06=this[_0xc645('0x5a')][_0xc645('0xfd')](_0xc645('0xe3'),_0x4790dd,_0xc645('0x5e'));this[_0xc645('0x9')](()=>_0x107d06([_0x4aa244],_0x17481a,_0x34c176));}});for(const _0x40ade9 of _0x59788e){let _0x1b1674=null,_0x177bf4=_0x40ade9[_0xc645('0x145')],_0x1ad2f6=_0x40ade9[_0xc645('0x70')];for(const {suggestion:_0x2eca02,meta:_0x372e95}of this[_0xc645('0x61')](_0x40ade9,_0xc645('0xe3'))){if(!_0x372e95['isOwn'])continue;if(_0x2eca02['subType']!=_0x4790dd)continue;const _0x1dc0d9=_0x2eca02[_0xc645('0xca')]();if(_0x1dc0d9[_0xc645('0x10')](_0x40ade9,!0x0))return null;_0x177bf4=_0x177bf4['isBefore'](_0x1dc0d9[_0xc645('0x145')])?_0x177bf4:_0x1dc0d9[_0xc645('0x145')],_0x1ad2f6=_0x1ad2f6[_0xc645('0x58')](_0x1dc0d9['end'])?_0x1ad2f6:_0x1dc0d9[_0xc645('0x70')],_0x1b1674?_0x1dc0d9[_0xc645('0x145')][_0xc645('0x10b')](_0x1b1674[_0xc645('0xca')]()[_0xc645('0x145')])?(_0x1b1674[_0xc645('0xc6')](),_0x1b1674=_0x2eca02):_0x2eca02[_0xc645('0xc6')]():_0x1b1674=_0x2eca02;}const _0x286158=this[_0xc645('0x87')][_0xc645('0xad')](_0x177bf4,_0x1ad2f6);if(_0x1b1674)this[_0xc645('0x130')](_0x1b1674,_0x286158);else{const _0x175b4f=_0x1fd70c(),_0x805af2=_0x5cf4a3['id'];this[_0xc645('0xeb')]({'id':_0x175b4f,'type':_0xc645('0xed')+_0x4790dd,'data':_0x17481a,'createdAt':new Date(),'authorId':_0x805af2,'attributes':_0x34c176}),this[_0xc645('0x5d')](_0xc645('0xed')+_0x4790dd,_0x175b4f,_0x805af2,_0x286158);}}return null;}[_0xc645('0xde')](_0x3dbd83,_0x4526f8,_0xaf67f0=[],_0x19ad34=null,_0x35177f={}){_0x4526f8['formatGroupId']||(_0x4526f8[_0xc645('0x8b')]=_0x4526f8[_0xc645('0x7d')]),_0x4526f8[_0xc645('0xd')]=_0x3dbd83['is'](_0xc645('0x12a')),_0x19ad34=_0x19ad34||$t(_0x4526f8);const _0x4e48c7=_0xaf67f0[_0xc645('0xbc')](_0x47d8c9=>Rt(_0x47d8c9,this[_0xc645('0x87')])),_0x21ebf3=_0x3dbd83['is']('range')?_0x3dbd83:Rt(_0x3dbd83,this[_0xc645('0x87')]);if(_0xc645('0xe4')===this[_0xc645('0xef')]){const _0x1fd6ac=this[_0xc645('0x5a')][_0xc645('0xfd')](_0xc645('0x2'),_0x19ad34,_0xc645('0x5e'));return this[_0xc645('0x9')](()=>_0x1fd6ac([_0x21ebf3],_0x4526f8,_0x35177f)),null;}_0x4e48c7['push'](_0x21ebf3);let _0x3f6bd7=!0x0;for(const _0x5a8258 of _0x4e48c7)if(!this[_0xc645('0x137')](_0x5a8258)){_0x3f6bd7=!0x1;break;}if(_0x3f6bd7&&_0xc645('0xe9')!==this[_0xc645('0xef')]){const _0x3ddaa3=this['_suggestionFactory'][_0xc645('0xfd')](_0xc645('0x2'),_0x19ad34,_0xc645('0x5e'));return this[_0xc645('0x9')](()=>_0x3ddaa3([_0x21ebf3],_0x4526f8,_0x35177f)),null;}let _0x5a5443=null,_0x1ded8a=_0x21ebf3[_0xc645('0x145')],_0x3e7cdf=_0x21ebf3[_0xc645('0x70')];for(const {suggestion:_0x314fe0,meta:_0x3839f9}of this['_findSuggestions'](_0x21ebf3,_0xc645('0x2'))){if(!_0x3839f9['isOwn']||_0x3839f9[_0xc645('0xe2')]||_0x3839f9[_0xc645('0x107')]||_0x3839f9[_0xc645('0x56')])continue;if(_0x314fe0[_0xc645('0xa9')]['formatGroupId']!=_0x4526f8['formatGroupId'])continue;const _0x3033c1=_0x314fe0[_0xc645('0xca')]();if(_0x314fe0[_0xc645('0x146')]==_0x19ad34){if(_0x3033c1[_0xc645('0x10')](_0x21ebf3,!0x0))return null;_0x1ded8a=_0x1ded8a[_0xc645('0x10b')](_0x3033c1[_0xc645('0x145')])?_0x1ded8a:_0x3033c1['start'],_0x3e7cdf=_0x3e7cdf['isAfter'](_0x3033c1[_0xc645('0x70')])?_0x3e7cdf:_0x3033c1[_0xc645('0x70')],_0x5a5443?_0x3033c1[_0xc645('0x145')][_0xc645('0x10b')](_0x5a5443[_0xc645('0xca')]()[_0xc645('0x145')])?(_0x5a5443[_0xc645('0xc6')](),_0x5a5443=_0x314fe0):_0x314fe0['removeMarkers']():_0x5a5443=_0x314fe0;}else{const _0x3a9b26=_0x21ebf3['getIntersection'](_0x3033c1);this['_cutOutSuggestionMarker'](_0x314fe0,_0x3a9b26);}}const _0x54d8ac=this[_0xc645('0xb')][_0xc645('0xd0')][_0xc645('0x22')](_0xc645('0x141'))['me'],_0x20b3ca=_0x1fd70c(),_0x4c353f=_0x54d8ac['id'];if(_0x5a5443)return this[_0xc645('0x130')](_0x5a5443,this[_0xc645('0x87')][_0xc645('0xad')](_0x1ded8a,_0x3e7cdf)),_0x5a5443;{const _0x41b1e2=this['_setSuggestionData']({'id':_0x20b3ca,'type':_0xc645('0xa3')+_0x19ad34,'data':_0x4526f8,'createdAt':new Date(),'authorId':_0x4c353f,'attributes':_0x35177f});return this[_0xc645('0x5d')](_0xc645('0xa3')+_0x19ad34,_0x20b3ca,_0x4c353f,this['_model'][_0xc645('0xad')](_0x1ded8a,_0x3e7cdf)),_0x41b1e2;}}[_0xc645('0x37')](_0x314305,_0x37a3b2,_0x265d3a=[],_0x40a09f=null,_0x198fa2={}){_0x37a3b2[_0xc645('0x8b')]||(_0x37a3b2[_0xc645('0x8b')]=_0x37a3b2['commandName']);const _0x416453=_0x314305[0x0];_0x37a3b2[_0xc645('0xd')]=_0x416453['is'](_0xc645('0x12a')),_0x40a09f=_0x40a09f||$t(_0x37a3b2);const _0x36ad8e=_0x265d3a[_0xc645('0xbc')](_0x4a7a66=>Rt(_0x4a7a66,this[_0xc645('0x87')])),_0x4b3ab8=_0x416453['is']('range')?_0x314305:_0x314305[_0xc645('0xbc')](_0x31915c=>Rt(_0x31915c,this[_0xc645('0x87')]));if(_0xc645('0xe4')===this[_0xc645('0xef')]){const _0x2bed79=this[_0xc645('0x5a')][_0xc645('0xfd')]('formatBlock',_0x40a09f,'accept');return this[_0xc645('0x9')](()=>_0x2bed79(_0x4b3ab8,_0x37a3b2,_0x198fa2)),null;}_0x36ad8e[_0xc645('0xfe')](..._0x4b3ab8);let _0x5973be=!0x0;for(const _0xf8bc08 of _0x36ad8e)if(!this[_0xc645('0x137')](_0xf8bc08)){_0x5973be=!0x1;break;}if(_0x5973be&&_0xc645('0xe9')!==this[_0xc645('0xef')]){const _0xba38b1=this[_0xc645('0x5a')][_0xc645('0xfd')](_0xc645('0x2'),_0x40a09f,_0xc645('0x5e'));return this[_0xc645('0x9')](()=>_0xba38b1(_0x4b3ab8,_0x37a3b2,_0x198fa2)),null;}const _0x3e9241=this[_0xc645('0xb')][_0xc645('0xd0')][_0xc645('0x22')]('Users')['me'];for(const _0x42dc28 of this[_0xc645('0x96')]()){if(_0x42dc28[_0xc645('0x132')]['id']!=_0x3e9241['id'])continue;if('formatBlock'!=_0x42dc28[_0xc645('0x86')]||_0x42dc28[_0xc645('0xa9')][_0xc645('0x8b')]!=_0x37a3b2['formatGroupId'])continue;const _0x19c055=_0x42dc28[_0xc645('0x146')]==_0x40a09f;for(let _0x194f8e=0x0;_0x194f8e<_0x4b3ab8[_0xc645('0x30')];_0x194f8e++){const _0x37217e=_0x4b3ab8[_0x194f8e];for(const _0x4c77d2 of _0x42dc28[_0xc645('0x113')]()){const _0x2e53eb=_0x4c77d2[_0xc645('0x88')]();if(_0x37217e[_0xc645('0xa6')](_0x2e53eb)){_0x19c055?(_0x4b3ab8[_0xc645('0x73')](_0x194f8e,0x1),_0x194f8e--):_0x42dc28[_0xc645('0xb7')](_0x4c77d2['name']);break;}}}}if(0x0==_0x4b3ab8['length'])return null;const _0x1eb32b=this[_0xc645('0x5a')]['getSuggestionCallback'](_0xc645('0x2'),_0x40a09f,'join');for(const _0x341cfa of this['getSuggestions']())if(_0x341cfa[_0xc645('0x132')]['id']==_0x3e9241['id']&&_0xc645('0x2')==_0x341cfa[_0xc645('0x86')]&&_0x341cfa[_0xc645('0xa9')][_0xc645('0x8b')]==_0x37a3b2[_0xc645('0x8b')]&&_0x341cfa[_0xc645('0x146')]==_0x40a09f&&(_0x1eb32b(_0x341cfa[_0xc645('0xc8')](),_0x4b3ab8)||_0x1eb32b(_0x4b3ab8,_0x341cfa[_0xc645('0xc8')]()))){for(const _0x55ea63 of _0x4b3ab8)_0x341cfa[_0xc645('0x7f')](_0x55ea63);return _0x341cfa;}const _0x2d3b9f=_0x1fd70c(),_0xa3daf1=_0x3e9241['id'],_0x4d1d05=_0xc645('0xa3')+_0x40a09f,_0x53b2ad=this[_0xc645('0xeb')]({'id':_0x2d3b9f,'type':_0x4d1d05,'data':_0x37a3b2,'createdAt':new Date(),'authorId':_0xa3daf1,'attributes':_0x198fa2});for(const _0x4aae9f of _0x4b3ab8)this[_0xc645('0x5d')](_0x4d1d05,_0x2d3b9f,_0xa3daf1,_0x4aae9f,_0x47c5e9[_0xc645('0xaa')]());return _0x53b2ad;}[_0xc645('0x138')](_0x3a87aa,_0x3c34ed=null,_0x22badb={}){if(_0x3a87aa[_0xc645('0xa2')])return null;const _0x28ca7b=this[_0xc645('0xb')][_0xc645('0xd0')][_0xc645('0x22')]('Users')['me'],_0x1de743=new _0x2f0652(_0x3a87aa[_0xc645('0x145')],_0x3a87aa[_0xc645('0x70')]);for(const {suggestion:_0x2d06d3,meta:_0x39369e}of this[_0xc645('0x61')](_0x1de743,_0xc645('0xf7')))if(_0x39369e[_0xc645('0x48')]&&!_0x39369e[_0xc645('0xe2')]){if(_0x2d06d3[_0xc645('0x44')]){const _0x5157c5=_0x2d06d3[_0xc645('0xc8')]()['filter'](_0x2e6e84=>_0xc645('0x11c')!=_0x2e6e84[_0xc645('0xf6')][_0xc645('0x142')]);_0x5157c5[_0xc645('0x75')](_0x8f73c0=>_0x1de743[_0xc645('0x10')](_0x8f73c0,!0x0))&&_0x2d06d3['discard']();if(_0x5157c5[_0xc645('0x8d')](_0x6d3475=>_0x6d3475[_0xc645('0x10')](_0x1de743,!0x0))){const _0x5d366d=this['_suggestionFactory'][_0xc645('0xfd')](_0xc645('0x11b'),_0x3c34ed,_0xc645('0x5e'));return this[_0xc645('0x9')](()=>_0x5d366d([_0x1de743],null,_0x22badb)),null;}}else{const _0x23741e=_0x1de743['getIntersection'](_0x2d06d3['getFirstRange']());null!==_0x23741e&&_0x2d06d3[_0xc645('0x54')]([_0x23741e],null,_0x22badb);}}if(_0x1de743[_0xc645('0x76')](),_0x1de743[_0xc645('0xa2')]||_0xc645('0x11c')==_0x1de743[_0xc645('0xf6')][_0xc645('0x142')])return null;let _0x34df3b=null,_0x156afa=_0x1de743[_0xc645('0x145')],_0x59795d=_0x1de743[_0xc645('0x70')];for(const {suggestion:_0x20dc89,meta:_0x4ddce4}of this[_0xc645('0x61')](_0x1de743,_0xc645('0x11b')))if(_0x4ddce4[_0xc645('0x48')]){if(_0x20dc89[_0xc645('0x44')]&&this[_0xc645('0xae')]){let _0x1adb63=!0x0;for(const _0x2f48b1 of _0x20dc89['getRanges']()){if(_0x2f48b1[_0xc645('0x10')](_0x1de743,!0x0))return _0x20dc89;_0x1de743['containsRange'](_0x2f48b1)||(_0x1adb63=!0x1);}_0x1adb63&&_0x20dc89['discard']();}else{const _0x36565a=_0x20dc89[_0xc645('0xca')]();if(_0x36565a[_0xc645('0x10')](_0x1de743,!0x0)){if(!this[_0xc645('0xae')]&&_0x4ddce4[_0xc645('0x107')])continue;return _0x20dc89;}_0x156afa=_0x156afa[_0xc645('0x10b')](_0x36565a[_0xc645('0x145')])?_0x156afa:_0x36565a['start'],_0x59795d=_0x59795d[_0xc645('0x58')](_0x36565a[_0xc645('0x70')])?_0x59795d:_0x36565a[_0xc645('0x70')],_0x34df3b?_0x36565a[_0xc645('0x145')][_0xc645('0x10b')](_0x34df3b['getFirstRange']()['start'])?(_0x34df3b[_0xc645('0xc6')](),_0x34df3b=_0x20dc89):_0x20dc89[_0xc645('0xc6')]():_0x34df3b=_0x20dc89;}}if(_0x34df3b)return this[_0xc645('0x130')](_0x34df3b,this[_0xc645('0x87')][_0xc645('0xad')](_0x156afa,_0x59795d)),_0x34df3b;{const _0x2b5d87=_0x1fd70c(),_0x150ced=this['_model'][_0xc645('0xad')](_0x156afa,_0x59795d),_0xc2f3a2=_0x28ca7b['id'],_0x46b04a=_0x3c34ed?_0xc645('0x2f')+_0x3c34ed:'deletion',_0x171837=this[_0xc645('0xeb')]({'id':_0x2b5d87,'type':_0x46b04a,'createdAt':new Date(),'authorId':_0xc2f3a2,'attributes':_0x22badb});return this[_0xc645('0x5d')](_0x46b04a,_0x2b5d87,_0xc2f3a2,_0x150ced),_0x171837;}}[_0xc645('0xc')](_0x4d4a07,_0x326385=_0xc645('0xc5'),_0x2238e7={}){const _0x373d73=this[_0xc645('0xb')][_0xc645('0xd0')][_0xc645('0x22')]('Users')['me'],_0x370302=_0x4d4a07['map'](_0x21e70f=>new _0x2f0652(_0x21e70f['start'],_0x21e70f[_0xc645('0x70')])),_0x26b8d=new Set();for(const _0x3d671d of _0x370302)for(const {suggestion:_0x2cf02b,meta:_0x5c3a3e}of this['_findSuggestions'](_0x3d671d,_0xc645('0xf7')))_0x5c3a3e[_0xc645('0x48')]&&!_0x5c3a3e[_0xc645('0xe2')]&&_0x26b8d['add'](_0x2cf02b);for(const _0x366d5c of _0x26b8d)if(_0x366d5c[_0xc645('0x44')]){const _0xdb410c=_0x366d5c[_0xc645('0xc8')]();(!_0x366d5c['attributes']||!_0x366d5c[_0xc645('0x2d')][_0xc645('0x114')])&&(_0xdb410c['every'](_0x345c9e=>_0x370302['some'](_0x368fb0=>_0x368fb0[_0xc645('0x10')](_0x345c9e,!0x0)))&&_0x366d5c['discard']());if(_0x370302[_0xc645('0x75')](_0x56c2e1=>_0xdb410c['some'](_0x3d77ca=>_0x3d77ca['containsRange'](_0x56c2e1,!0x0)))){const _0x13bd93=this['_suggestionFactory']['getSuggestionCallback'](_0xc645('0x11b'),_0x326385,_0xc645('0x5e'));return this[_0xc645('0x9')](()=>_0x13bd93(_0x4d4a07,null,_0x2238e7)),null;}}else{const _0x15f11a=_0x366d5c[_0xc645('0xca')]();_0x370302['some'](_0x49fe6a=>_0x49fe6a[_0xc645('0x10')](_0x15f11a,!0x0))&&_0x366d5c[_0xc645('0xc3')]();if(_0x370302[_0xc645('0x75')](_0x2a40c9=>_0x15f11a[_0xc645('0x10')](_0x2a40c9,!0x0))){const _0x51536d=this[_0xc645('0x5a')][_0xc645('0xfd')]('deletion',_0x326385,_0xc645('0x5e'));return this[_0xc645('0x9')](()=>_0x51536d(_0x370302,null,_0x2238e7)),null;}}const _0x5319da=this[_0xc645('0x5a')][_0xc645('0xfd')](_0xc645('0x11b'),_0x326385,_0xc645('0x108'));let _0x5b9853=null;for(const _0xb0232d of this['getSuggestions']())if(_0xb0232d[_0xc645('0x132')]['id']==_0x373d73['id']&&_0xb0232d[_0xc645('0x10d')]&&_0xc645('0x11b')==_0xb0232d['type']&&_0xb0232d[_0xc645('0x146')]==_0x326385&&(_0x5319da(_0xb0232d[_0xc645('0xc8')](),_0x370302)||_0x5319da(_0x370302,_0xb0232d[_0xc645('0xc8')]()))){if(_0x5b9853){if(_0xb0232d['commentThread']&&_0xb0232d[_0xc645('0x3b')][_0xc645('0x30')])continue;for(const _0x381f5e of _0xb0232d[_0xc645('0xc8')]())_0x5b9853[_0xc645('0xf8')](_0x381f5e)||_0x5b9853[_0xc645('0x7f')](_0x381f5e);_0xb0232d['removeMarkers']();}else{_0x5b9853=_0xb0232d;for(const _0x3e2087 of _0x370302)_0xb0232d['isIntersectingWithRange'](_0x3e2087)||_0xb0232d['addRange'](_0x3e2087);}}if(_0x5b9853)return _0x5b9853;_0x26b8d[_0xc645('0xda')]();for(const _0x383b0c of _0x370302)for(const {suggestion:_0x59f268,meta:_0x3bbeef}of this[_0xc645('0x61')](_0x383b0c,_0xc645('0x11b')))_0x3bbeef[_0xc645('0x48')]&&_0x26b8d[_0xc645('0x98')](_0x59f268);for(const _0x1c834b of _0x26b8d){const _0x2993fa=_0x1c834b[_0xc645('0xc8')]();if(!_0x2238e7||!_0x2238e7[_0xc645('0x114')]){if(_0x370302[_0xc645('0x75')](_0x1a10ec=>_0x2993fa['some'](_0x282efd=>_0x282efd[_0xc645('0x10')](_0x1a10ec,!0x0))))return _0x1c834b;}(!_0x1c834b[_0xc645('0x2d')]||!_0x1c834b[_0xc645('0x2d')][_0xc645('0x114')])&&(_0x2993fa[_0xc645('0x75')](_0x5be21a=>_0x370302[_0xc645('0x8d')](_0x10fd08=>_0x10fd08['containsRange'](_0x5be21a,!0x0)))&&_0x1c834b[_0xc645('0xc3')]());}const _0xe591da=_0x1fd70c(),_0x11ef36=_0x373d73['id'],_0x597d2c=_0xc645('0x2f')+_0x326385,_0x47d566=this['_setSuggestionData']({'id':_0xe591da,'type':_0x597d2c,'createdAt':new Date(),'authorId':_0x11ef36,'attributes':_0x2238e7});for(const _0x1c4de6 of _0x370302)_0x1c4de6['detach'](),_0x1c4de6['isCollapsed']||_0xc645('0x11c')==_0x1c4de6['root'][_0xc645('0x142')]||this['_addSuggestionMarker'](_0x597d2c,_0xe591da,_0x11ef36,_0x1c4de6,_0x47c5e9['getMultiRangeId']());return _0x47d566;}[_0xc645('0x130')](_0x4df38a,_0x83b033){const _0x1f2da2=_0x4df38a['getFirstMarker']();this[_0xc645('0x87')][_0xc645('0x8e')](_0x3221c1=>{_0x3221c1['updateMarker'](_0x1f2da2,{'range':_0x83b033});});}[_0xc645('0x121')](_0xedf409){const _0x2da0db=_0xedf409['id'],_0x180517=this['editor'][_0xc645('0x83')][_0xc645('0x22')](_0xc645('0x33'));this[_0xc645('0xff')][_0xc645('0xe5')](_0x2da0db)||this[_0xc645('0xff')][_0xc645('0x15')]({'channelId':_0x180517,'threadId':_0x2da0db,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1f2d5d=this[_0xc645('0xff')][_0xc645('0xc0')](_0x2da0db);_0x1f2d5d[_0xc645('0x25')](_0xc645('0x10e')),_0x1f2d5d[_0xc645('0x10e')]=!0x1,_0xedf409[_0xc645('0x3b')]=_0x1f2d5d;}['_checkSuggestionCorrectness'](_0x2cafba,_0x49d6c7,_0x368d58,_0x23a9e5){if(_0x2cafba[_0xc645('0x86')]!=_0x49d6c7||_0x2cafba[_0xc645('0x146')]!=_0x368d58||_0x2cafba['creator']['id']!=_0x23a9e5)throw this[_0xc645('0xb')][_0xc645('0xac')](_0xc645('0x36')),new _0x2aeeee('track-changes-suggestion-data-mismatch',this);}[_0xc645('0x13c')](_0x2e6939,_0x540bdf){const _0x40563d=_0x2e6939['getFirstRange']();if(_0x540bdf[_0xc645('0xa6')](_0x40563d))_0x2e6939[_0xc645('0xc6')]();else{if(_0x40563d[_0xc645('0x10')](_0x540bdf)){const _0x24ba71=this[_0xc645('0x87')][_0xc645('0xe')](_0x540bdf[_0xc645('0x145')][_0xc645('0x1e')],_0xc645('0x70'));this['_setSuggestionRange'](_0x2e6939,this[_0xc645('0x87')][_0xc645('0xad')](_0x40563d['start'],_0x24ba71));const _0x3a2b3a=_0x1fd70c(),_0x395ad5=_0x2e6939[_0xc645('0x5b')]['id'],_0x4f92e6=_0x2e6939[_0xc645('0x86')]+':'+_0x2e6939[_0xc645('0x146')];this['_setSuggestionData']({'id':_0x3a2b3a,'type':_0x4f92e6,'createdAt':new Date(),'authorId':_0x395ad5,'data':_0x2e6939['data'],'attributes':_0x2e6939[_0xc645('0x2d')]});const _0x13158a=this[_0xc645('0x87')][_0xc645('0xe')](_0x540bdf['end'][_0xc645('0x77')],_0xc645('0xfc')),_0x26fe4b=this[_0xc645('0x87')][_0xc645('0xad')](_0x13158a,_0x40563d['end']);this['_addSuggestionMarker'](_0x4f92e6,_0x3a2b3a,_0x395ad5,_0x26fe4b);}else{if(_0x40563d[_0xc645('0x64')](_0x540bdf[_0xc645('0x145')])){const _0x4fd927=this[_0xc645('0x87')]['createPositionAt'](_0x540bdf[_0xc645('0x145')][_0xc645('0x1e')],_0xc645('0x70'));this[_0xc645('0x130')](_0x2e6939,this['_model']['createRange'](_0x40563d[_0xc645('0x145')],_0x4fd927));}else{const _0x14a99b=this[_0xc645('0x87')][_0xc645('0xe')](_0x540bdf['end'][_0xc645('0x77')],_0xc645('0xfc'));this[_0xc645('0x130')](_0x2e6939,this[_0xc645('0x87')][_0xc645('0xad')](_0x14a99b,_0x40563d[_0xc645('0x70')]));}}}}[_0xc645('0x137')](_0x2dcee4){for(const {suggestion:_0x400fb3,meta:_0x2b673b}of this[_0xc645('0x61')](_0x2dcee4,_0xc645('0xf7'))){if(!_0x2b673b[_0xc645('0x48')])continue;const _0x37df43=_0x400fb3['getRanges']();for(const _0xd9ffa2 of _0x37df43)if(!_0x2dcee4['getDifference'](_0xd9ffa2)[_0xc645('0x30')])return!0x0;}return!0x1;}[_0xc645('0x57')](_0x52ab63){const _0x5515c3=this[_0xc645('0xb')]['plugins'][_0xc645('0x22')](_0xc645('0x141'))['getUser'](_0x52ab63);if(!_0x5515c3)throw new _0x2aeeee(_0xc645('0x69'),this);return _0x5515c3;}[_0xc645('0x11f')](_0x1a03ae){const _0x35224d=this['editor']['plugins']['get'](_0xc645('0x141')),_0x15d0af=_0x196e19('external:'+_0x1a03ae),_0x5ef361=_0x35224d[_0xc645('0x40')](_0x15d0af);return _0x5ef361||_0x35224d[_0xc645('0x16')]({'id':_0x15d0af,'name':_0x1a03ae});}[_0xc645('0x120')](_0x5417de,_0x3ef751,_0x16fe4a,_0x550442,_0x199ab){const _0x46eeb1=this[_0xc645('0x57')](_0x550442),_0x5673d8=this[_0xc645('0x5a')][_0xc645('0x62')](_0x5417de,_0x3ef751,_0x16fe4a,_0x46eeb1,_0x199ab,_0x237664=>this[_0xc645('0x21')](_0x16fe4a,{'attributes':_0x237664}));return this[_0xc645('0xc4')](_0x5673d8,_0xc645('0x5e'),()=>{this[_0xc645('0x21')](_0x16fe4a,{'state':_0xc645('0xa5')});},{'priority':_0xc645('0x1')}),this[_0xc645('0xc4')](_0x5673d8,_0xc645('0xc3'),()=>{this[_0xc645('0x21')](_0x16fe4a,{'state':_0xc645('0xd6')});},{'priority':_0xc645('0x1')}),this[_0xc645('0xba')][_0xc645('0x112')](_0x16fe4a,_0x5673d8),this[_0xc645('0x52')][_0xc645('0x112')](_0x5673d8,'notReady'),_0x5673d8;}[_0xc645('0x13')](_0x2757d2){const _0x3ca0f9=_0x2757d2[_0xc645('0x29')](':');return{'group':_0x3ca0f9[0x0],'type':_0x3ca0f9[0x1],'subType':_0x3ca0f9[_0xc645('0x30')]>=0x5?_0x3ca0f9[0x2]:null,'id':_0x3ca0f9[_0xc645('0x30')]<0x5?_0x3ca0f9[0x2]:_0x3ca0f9[0x3],'authorId':_0x3ca0f9[_0xc645('0x30')]<0x5?_0x3ca0f9[0x3]:_0x3ca0f9[0x4],'markerCount':0x6==_0x3ca0f9['length']?_0x3ca0f9[0x5]:null};}[_0xc645('0x19')](_0x1c476c,_0x454b57,_0x5df399){const _0xe83b24=_0x1c476c[_0xc645('0xca')](),_0x1f823e=_0xe83b24[_0xc645('0x145')],_0x349844=_0xe83b24[_0xc645('0x70')];this[_0xc645('0x130')](_0x1c476c,this[_0xc645('0x87')][_0xc645('0xad')](_0x1f823e,_0x454b57));const _0x4d2ea9=_0x1fd70c(),_0x59ae7b=_0x1c476c[_0xc645('0x5b')]['id'],_0x350381=_0x1c476c[_0xc645('0x86')]+(_0x1c476c['subType']?':'+_0x1c476c[_0xc645('0x146')]:'');this['_setSuggestionData']({'id':_0x4d2ea9,'type':_0x350381,'createdAt':new Date(),'authorId':_0x59ae7b,'originalSuggestionId':_0x1c476c['id'],'attributes':_0x1c476c[_0xc645('0x2d')],'data':_0x1c476c[_0xc645('0xa9')]}),_0xc645('0x2')==_0x1c476c[_0xc645('0x86')]&&(_0x5df399=this[_0xc645('0x87')][_0xc645('0xa0')](_0x5df399[_0xc645('0x77')])),this[_0xc645('0x5d')](_0x350381,_0x4d2ea9,_0x59ae7b,this[_0xc645('0x87')][_0xc645('0xad')](_0x5df399,_0x349844));}[_0xc645('0x61')](_0xccb5d3,_0x161dcd=null){const _0x28e065=[],_0x4e811a=this[_0xc645('0x87')]['schema'],_0xa7d054=this[_0xc645('0xb')][_0xc645('0xd0')][_0xc645('0x22')](_0xc645('0x141'))['me'];for(const _0x2cd698 of this[_0xc645('0x96')]())if(_0x2cd698['isInContent']&&(!_0x161dcd||_0x2cd698[_0xc645('0x86')]==_0x161dcd))for(const _0x372eed of _0x2cd698[_0xc645('0xc8')]()){const _0x369f68=_0xccb5d3[_0xc645('0x145')][_0xc645('0xa6')](_0x372eed['end'])||_0xccb5d3['end']['isEqual'](_0x372eed['start']);if(_0x369f68||_0xccb5d3[_0xc645('0x68')](_0x372eed)){const _0x3634df=_0xccb5d3[_0xc645('0x10')](_0x372eed)&&Bt(_0x4e811a,_0x372eed[_0xc645('0x145')],_0xccb5d3),_0x49307b=_0x372eed[_0xc645('0x10')](_0xccb5d3)&&Bt(_0x4e811a,_0xccb5d3[_0xc645('0x145')],_0x372eed);_0x28e065[_0xc645('0xfe')]({'suggestion':_0x2cd698,'meta':{'isOwn':_0xa7d054==_0x2cd698[_0xc645('0x132')],'isNextTo':_0x369f68,'isInsideObject':_0x3634df,'containsRangeInObject':_0x49307b}});break;}}return _0x28e065;}[_0xc645('0x5d')](_0x38a142,_0x26a732,_0x266ae4,_0x1d0a80,_0x1f8944){this[_0xc645('0x87')][_0xc645('0x8e')](_0x30f217=>{let _0x1891fe='suggestion:'+_0x38a142+':'+_0x26a732+':'+_0x266ae4;_0x1f8944&&(_0x1891fe=_0x1891fe+':'+_0x1f8944),_0x30f217['addMarker'](_0x1891fe,{'range':_0x1d0a80,'usingOperation':!0x0,'affectsData':!0x0});});}[_0xc645('0x5f')](_0x27662a){const _0x1a65a7=_0x27662a[_0xc645('0xd4')],_0x194073=_0x27662a[_0xc645('0xcf')];_0x27662a[_0xc645('0xd4')]=null,null!=_0x1a65a7&&(_0x1a65a7['next']=null),_0x27662a[_0xc645('0xcf')]=null,null!=_0x194073&&(_0x194073[_0xc645('0xd4')]=null),_0xc645('0x6f')==this[_0xc645('0x52')][_0xc645('0x22')](_0x27662a)&&(this[_0xc645('0x52')][_0xc645('0x112')](_0x27662a,_0xc645('0x42')),this[_0xc645('0x67')](_0xc645('0x111'),_0x27662a,_0x1a65a7,_0x194073));}[_0xc645('0xeb')](_0x22dc2b){const _0x4cf979=_0x22dc2b['id'],_0x46a9dd=this[_0xc645('0xab')](_0x22dc2b);if(this[_0xc645('0xf')]&&this[_0xc645('0xf')][_0xc645('0x122')]){const _0x444da2=this[_0xc645('0xb')][_0xc645('0xd0')][_0xc645('0x22')]('PendingActions'),_0x14579f=_0x46a9dd[_0xc645('0x17')],_0xaeeabe=_0x46a9dd[_0xc645('0x146')]?_0x46a9dd[_0xc645('0x86')]+':'+_0x46a9dd[_0xc645('0x146')]:_0x46a9dd[_0xc645('0x86')],_0x12aeeb=this['editor'][_0xc645('0x45')],_0x16830a=_0x444da2[_0xc645('0x98')](_0x2545c9(_0x12aeeb,_0xc645('0x11a'))),_0x2dcd86={'id':_0x4cf979,'type':_0xaeeabe,'hasComments':_0x14579f,'data':_0x22dc2b[_0xc645('0xa9')]||null,'originalSuggestionId':_0x22dc2b['originalSuggestionId']||null,'attributes':_0x46a9dd['attributes']};this[_0xc645('0xf')][_0xc645('0x122')](_0x2dcd86)[_0xc645('0x35')](_0x4aa06f=>{_0x46a9dd[_0xc645('0x99')]=!0x0,_0x444da2[_0xc645('0x38')](_0x16830a),_0x4aa06f&&_0x4aa06f[_0xc645('0xe8')]&&(this[_0xc645('0xba')]['get'](_0x4cf979)[_0xc645('0xe8')]=_0x4aa06f[_0xc645('0xe8')]);})[_0xc645('0x3a')](_0x192c4f=>{throw _0x29c143('error-saving-suggestion-data-suggestion-discarded'),this[_0xc645('0xb')][_0xc645('0x7a')]['enqueueChange']({'isUndoable':!0x1},()=>{_0x46a9dd[_0xc645('0xc3')]();}),_0x46a9dd['stopListening'](),this[_0xc645('0xba')][_0xc645('0x9b')](_0x46a9dd['id']),this[_0xc645('0x52')][_0xc645('0x9b')](_0x46a9dd),_0x192c4f;});}return _0x46a9dd;}[_0xc645('0x21')](_0x46f3f4,_0x2cb5a0){const _0x4d63fb=this[_0xc645('0xb')]['plugins']['get']('PendingActions'),_0x1475bd=this[_0xc645('0x97')](_0x46f3f4);if(this[_0xc645('0xf')]&&this[_0xc645('0xf')]['updateSuggestion']){if(_0x1475bd[_0xc645('0x99')]){const _0x4810c7=_0x4d63fb[_0xc645('0x98')](_0x2545c9(this['editor'][_0xc645('0x45')],'PENDING_ACTION_SUGGESTION'));this[_0xc645('0xf')][_0xc645('0xe1')](_0x46f3f4,_0x2cb5a0)['then'](()=>{_0x4d63fb[_0xc645('0x38')](_0x4810c7);});}else _0x1475bd['on'](_0xc645('0x82'),()=>{this[_0xc645('0x21')](_0x46f3f4,_0x2cb5a0);});}}[_0xc645('0x12c')](_0x59cba9){if(!this[_0xc645('0xf')]||!this['_adapter']['getSuggestion'])throw new _0x2aeeee(_0xc645('0xf2'),this);return this[_0xc645('0xf')][_0xc645('0x97')](_0x59cba9);}[_0xc645('0x2b')](_0x14dbea){const {id:_0x3d61c5,type:_0x161fa2,subType:_0x3fdb7c,authorId:_0x3020a0}=this[_0xc645('0x13')](_0x14dbea),_0x253ead=this['_suggestions']['get'](_0x3d61c5)||this[_0xc645('0x120')](_0x161fa2,_0x3fdb7c,_0x3d61c5,_0x3020a0,{});switch(this['_checkSuggestionCorrectness'](_0x253ead,_0x161fa2,_0x3fdb7c,_0x3020a0),this[_0xc645('0x52')][_0xc645('0x22')](_0x253ead)){case _0xc645('0x2a'):this[_0xc645('0x12c')](_0x3d61c5)[_0xc645('0x35')](_0x4ba42d=>{let _0x1accfd=Promise['resolve']();_0x4ba42d[_0xc645('0x17')]&&(_0x1accfd=this[_0xc645('0xff')][_0xc645('0xb3')]({'channelId':this[_0xc645('0xb')][_0xc645('0x83')][_0xc645('0x22')](_0xc645('0x33')),'threadId':_0x3d61c5})),_0x1accfd[_0xc645('0x35')](()=>{this[_0xc645('0xab')](_0x4ba42d)[_0xc645('0x99')]=!0x0;});}),this[_0xc645('0x52')]['set'](_0x253ead,_0xc645('0x136'));break;case _0xc645('0x42'):this[_0xc645('0x21')](_0x3d61c5,{'state':_0xc645('0x31')});case'dataReady':this[_0xc645('0x52')][_0xc645('0x112')](_0x253ead,_0xc645('0x6f')),this[_0xc645('0x67')](_0xc645('0x1a'),_0x253ead);break;case _0xc645('0x6f'):this['fire'](_0xc645('0x6b'),_0x253ead);}return _0x253ead['addMarkerName'](_0x14dbea),_0x253ead;}[_0xc645('0x13d')](_0x1257e2){const _0x1aea3c=Array[_0xc645('0x0')](_0x1257e2)[_0xc645('0xbf')](_0x356b26=>!_0x356b26['isMultiRange']),_0x1bbb4c=this[_0xc645('0x96')]({'skipNotAttached':!0x0})['filter'](_0x3ac904=>!_0x3ac904[_0xc645('0x44')]),_0x51a83f=_0x1bbb4c[_0xc645('0xbf')](_0x368f51=>!_0x1257e2[_0xc645('0x28')](_0x368f51)),_0x5803ab=new Map(_0x1bbb4c[_0xc645('0xbc')](_0x51fcfb=>[_0x51fcfb,this[_0xc645('0x5a')]['getSuggestionCallback'](_0x51fcfb[_0xc645('0x86')],_0x51fcfb[_0xc645('0x146')],_0xc645('0x115'))])),_0x20b161=new Map(_0x1bbb4c['map'](_0x1173a6=>[_0x1173a6,_0x1173a6[_0xc645('0xca')]()])),_0x53f996=new Set(),_0x37ec92=new Set();for(let _0x13140c=0x0;_0x13140c<_0x1aea3c[_0xc645('0x30')];_0x13140c++)_0x1f03e9(_0x1aea3c[_0x13140c],_0x1aea3c,_0x13140c+0x1);for(let _0x267e88=0x0;_0x267e88<_0x1aea3c[_0xc645('0x30')];_0x267e88++)_0x1f03e9(_0x1aea3c[_0x267e88],_0x51a83f,0x0);for(let _0x1ec1c3=0x0;_0x1ec1c3<_0x1aea3c[_0xc645('0x30')];_0x1ec1c3++){const _0x9277a9=_0x1aea3c[_0x1ec1c3];!_0x37ec92[_0xc645('0x28')](_0x9277a9)&&_0x9277a9['previous']&&(_0x9277a9['previous']['next']===_0x9277a9&&(_0x9277a9['previous'][_0xc645('0xcf')]=null),_0x9277a9[_0xc645('0xd4')]=null),!_0x53f996[_0xc645('0x28')](_0x9277a9)&&_0x9277a9[_0xc645('0xcf')]&&(_0x9277a9['next'][_0xc645('0xd4')]===_0x9277a9&&(_0x9277a9[_0xc645('0xcf')][_0xc645('0xd4')]=null),_0x9277a9[_0xc645('0xcf')]=null);}function _0x1f03e9(_0x45c476,_0x182000,_0x372aff){for(let _0x5a5475=_0x372aff;_0x5a5475<_0x182000[_0xc645('0x30')];_0x5a5475++){const _0x3edfe0=_0x4aea5f(_0x45c476,_0x182000[_0x5a5475]);_0x3edfe0&&(_0x3edfe0[0x0][_0xc645('0xcf')]=_0x3edfe0[0x1],_0x3edfe0[0x1][_0xc645('0xd4')]=_0x3edfe0[0x0],_0x53f996[_0xc645('0x98')](_0x3edfe0[0x0]),_0x37ec92[_0xc645('0x98')](_0x3edfe0[0x1]));}}function _0x4aea5f(_0x690f55,_0x55aa90){if(_0x690f55[_0xc645('0x132')]['id']!==_0x55aa90[_0xc645('0x132')]['id'])return null;const _0x1dd004=_0x5803ab['get'](_0x690f55)(_0x690f55,_0x55aa90,_0x20b161[_0xc645('0x22')](_0x690f55),_0x20b161[_0xc645('0x22')](_0x55aa90));if(!_0x1dd004)return null;return _0x5803ab['get'](_0x55aa90)(_0x690f55,_0x55aa90,_0x20b161['get'](_0x690f55),_0x20b161[_0xc645('0x22')](_0x55aa90))?_0x1dd004[0x1]['commentThread']&&_0x1dd004[0x1][_0xc645('0x3b')][_0xc645('0x30')]?null:_0x1dd004:null;}}[_0xc645('0x23')](_0x46b1ea){const _0x3bbf8a=Array[_0xc645('0x0')](_0x46b1ea),_0x1818e6=this[_0xc645('0x96')]({'skipNotAttached':!0x0}),_0x55846b=_0x1818e6[_0xc645('0xbf')](_0xff3995=>!_0x46b1ea[_0xc645('0x28')](_0xff3995)),_0x240e4c=new Map(_0x3bbf8a['map'](_0x50af89=>[_0x50af89,this['_suggestionFactory']['getSuggestionCallback'](_0x50af89['type'],_0x50af89[_0xc645('0x146')],_0xc645('0x108'))])),_0x3cdf47=new Map(_0x1818e6[_0xc645('0xbc')](_0x1d9c5d=>[_0x1d9c5d,_0x1d9c5d[_0xc645('0xc8')]()]));for(let _0x343798=0x0;_0x343798<_0x3bbf8a[_0xc645('0x30')];_0x343798++){if(_0x25bafb(this,_0x3bbf8a[_0x343798],_0x3bbf8a,_0x343798+0x1))return!0x0;}for(let _0x43e575=0x0;_0x43e575<_0x3bbf8a[_0xc645('0x30')];_0x43e575++){if(_0x25bafb(this,_0x3bbf8a[_0x43e575],_0x55846b,0x0))return!0x0;}return!0x1;function _0x25bafb(_0x165566,_0x5ab9d4,_0x161e79,_0x3f3013){for(let _0x5e514d=_0x3f3013;_0x5e514d<_0x161e79[_0xc645('0x30')];_0x5e514d++){const _0x55a425=_0x161e79[_0x5e514d];if(_0x55a425[_0xc645('0x86')]!==_0x5ab9d4[_0xc645('0x86')]||_0x55a425[_0xc645('0x132')]['id']!==_0x5ab9d4[_0xc645('0x132')]['id']||_0x55a425[_0xc645('0x146')]!==_0x5ab9d4[_0xc645('0x146')])continue;const _0x5d47e2=_0x240e4c['get'](_0x5ab9d4),_0x58fd3b=_0x3cdf47['get'](_0x5ab9d4),_0x4df30b=_0x3cdf47[_0xc645('0x22')](_0x55a425),_0x47ea32=_0x5ab9d4[_0xc645('0x3b')]&&_0x5ab9d4[_0xc645('0x3b')]['length'],_0x5cf83e=_0x55a425[_0xc645('0x3b')]&&_0x55a425['commentThread'][_0xc645('0x30')];if(!_0x47ea32&&_0x5d47e2(_0x4df30b,_0x58fd3b))return _0x165566['_joinSuggestions'](_0x55a425,_0x5ab9d4),_0x3cdf47[_0xc645('0x9b')](_0x5ab9d4),!0x0;if(!_0x5cf83e&&_0x5d47e2(_0x58fd3b,_0x4df30b))return _0x165566[_0xc645('0xb9')](_0x5ab9d4,_0x55a425),_0x3cdf47['delete'](_0x55a425),!0x0;}return!0x1;}}[_0xc645('0xb9')](_0x39e9fa,_0x1a40ed){if(_0x39e9fa[_0xc645('0x44')])for(const _0x33ace5 of _0x1a40ed[_0xc645('0xc8')]())_0x39e9fa['addRange'](_0x33ace5);else{const _0xafc8f6=_0x1a40ed[_0xc645('0xca')]()[_0xc645('0x70')];this['_setSuggestionRange'](_0x39e9fa,this[_0xc645('0x87')]['createRange'](_0x39e9fa[_0xc645('0xca')]()[_0xc645('0x145')],_0xafc8f6));}_0x1a40ed['removeMarkers']();}}class Dt{constructor(_0x301e21){this[_0xc645('0x6e')]=_0x301e21,this[_0xc645('0x87')]=_0x301e21[_0xc645('0x7a')],this[_0xc645('0x78')]=new Map(),this[_0xc645('0x27')]=new Map(),this[_0xc645('0x134')]();}[_0xc645('0x62')](_0x437517,_0x230e68,_0x519977,_0x203e81,_0x3929c5,_0x4090b0){return new _0x47c5e9(this[_0xc645('0x87')],{'type':_0x437517,'subType':_0x230e68,'id':_0x519977,'author':_0x203e81,'creator':_0x203e81,'attributes':_0x3929c5,'onAttributesChange':_0x4090b0,'onAccept':(..._0x19a8e6)=>this[_0xc645('0xfd')](_0x437517,_0x230e68,_0xc645('0x5e'))(..._0x19a8e6),'onDiscard':(..._0x2170ca)=>this[_0xc645('0xfd')](_0x437517,_0x230e68,'discard')(..._0x2170ca)});}[_0xc645('0x101')](_0x2e58b9,_0x2e9059,_0x4beffc,_0x1e0230){const _0x3ddc19=_0x2e58b9+':'+_0x2e9059+':'+_0x4beffc;this[_0xc645('0x78')]['set'](_0x3ddc19,_0x1e0230);}[_0xc645('0xfd')](_0x46ed40,_0x203846,_0xb390d8){const _0xfaab0c=_0x46ed40+':'+_0x203846+':'+_0xb390d8;return this[_0xc645('0x78')][_0xc645('0x22')](_0xfaab0c)||this[_0xc645('0x27')][_0xc645('0x22')](_0x46ed40+':'+_0xb390d8);}[_0xc645('0x134')](){const _0x93f33f=()=>{},_0x4e9317=_0x27c9d3=>{_0x27c9d3[_0xc645('0x41')]((_0x5b45d3,_0x4b40b8)=>_0x5b45d3[_0xc645('0x145')][_0xc645('0x10b')](_0x4b40b8['start'])?0x1:-0x1),this[_0xc645('0x87')]['change'](_0x15c7f4=>{for(const _0x6384b5 of _0x27c9d3){let _0xe5b4a5;_0xe5b4a5=_0x6384b5[_0xc645('0x70')]['isAtEnd']&&_0x6384b5[_0xc645('0x70')][_0xc645('0x77')]==_0x6384b5[_0xc645('0x145')]['nodeAfter']?_0x15c7f4[_0xc645('0x104')](_0x6384b5[_0xc645('0x145')][_0xc645('0x46')],'on'):_0x15c7f4[_0xc645('0x104')](_0x6384b5),this[_0xc645('0x87')][_0xc645('0x80')](_0xe5b4a5,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5cef71=(_0x536580,_0xa58bd9)=>{this[_0xc645('0x87')][_0xc645('0x8e')](_0x536dd6=>{const {commandName:_0x43f66d,commandParams:_0x4d84cd=[]}=_0xa58bd9,_0x8f6b8a=_0x536580['map'](_0x36c18c=>(_t(_0x36c18c)&&(_0x36c18c=this['_model'][_0xc645('0xad')](_0x36c18c[_0xc645('0x70')])),_0x36c18c))[_0xc645('0xbf')](_0x599fae=>_0xc645('0x11c')!==_0x599fae[_0xc645('0xf6')][_0xc645('0x142')]);if(_0x8f6b8a[_0xc645('0x30')]<0x1)return;const _0x1f2ea1=Array[_0xc645('0x0')](this[_0xc645('0x87')]['document']['selection'][_0xc645('0xc8')]())[_0xc645('0xbc')](_0x2f3fe5=>_0x2f0652[_0xc645('0x74')](_0x2f3fe5));_0x536dd6[_0xc645('0xb8')](_0x8f6b8a);for(const _0x5b657f of this[_0xc645('0x6e')][_0xc645('0x129')][_0xc645('0x129')]())_0x5b657f[_0xc645('0x131')]();_0x4d84cd[_0xc645('0xfe')]({'forceDefaultExecution':!0x0}),this[_0xc645('0x6e')][_0xc645('0x94')](_0x43f66d,..._0x4d84cd);const _0x5458b9=_0x1f2ea1['filter'](_0x1804cd=>'$graveyard'!=_0x1804cd['root'][_0xc645('0x142')]);_0x5458b9[_0xc645('0x30')]>0x0&&_0x536dd6[_0xc645('0xb8')](_0x5458b9);for(const _0x27d262 of _0x1f2ea1)_0x27d262['detach']();});},_0x2f7ea6=(_0x288c9b,_0x28c40f)=>0x1==_0x288c9b[_0xc645('0x30')]&&0x1==_0x28c40f['length']&&_0x288c9b[0x0][_0xc645('0x70')][_0xc645('0xa6')](_0x28c40f[0x0]['start']),_0x173d58=(_0x13da11,_0x24d5cc,_0x38db82,_0x1ef570)=>xt(_0x13da11,_0x24d5cc,_0x38db82,_0x1ef570,this[_0xc645('0x87')])?[_0x13da11,_0x24d5cc]:xt(_0x24d5cc,_0x13da11,_0x1ef570,_0x38db82,this[_0xc645('0x87')])?[_0x24d5cc,_0x13da11]:null;this['_defaultCallbacks'][_0xc645('0x112')](_0xc645('0x60'),_0x93f33f),this[_0xc645('0x27')][_0xc645('0x112')](_0xc645('0x3e'),_0x4e9317),this['_defaultCallbacks']['set'](_0xc645('0x65'),_0x2f7ea6),this[_0xc645('0x27')][_0xc645('0x112')](_0xc645('0x140'),_0x173d58),this[_0xc645('0x27')][_0xc645('0x112')](_0xc645('0x10a'),_0x4e9317),this[_0xc645('0x27')]['set'](_0xc645('0x10c'),_0x93f33f),this[_0xc645('0x27')][_0xc645('0x112')](_0xc645('0x84'),_0x2f7ea6),this[_0xc645('0x27')][_0xc645('0x112')](_0xc645('0x3f'),_0x173d58),this[_0xc645('0x27')][_0xc645('0x112')](_0xc645('0x12e'),_0x5cef71),this[_0xc645('0x27')][_0xc645('0x112')](_0xc645('0xfa'),_0x93f33f),this['_defaultCallbacks'][_0xc645('0x112')](_0xc645('0x7b'),_0x2f7ea6),this[_0xc645('0x27')]['set'](_0xc645('0xf9'),_0x93f33f),this[_0xc645('0x27')]['set'](_0xc645('0x9f'),_0x5cef71),this[_0xc645('0x27')][_0xc645('0x112')](_0xc645('0xd9'),_0x93f33f),this['_defaultCallbacks']['set']('formatBlock:join',_0x2f7ea6),this[_0xc645('0x27')][_0xc645('0x112')]('formatBlock:chain',_0x93f33f);}}function Bt(_0x48ea39,_0x110c14,_0x30766a){for(const _0x4b45e6 of _0x110c14[_0xc645('0x77')]['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4b45e6[_0xc645('0xf6')]==_0x4b45e6)return!0x1;if(!_0x30766a[_0xc645('0x26')](_0x4b45e6))return!0x1;if(_0x48ea39[_0xc645('0x79')](_0x4b45e6)||_0x48ea39[_0xc645('0x1d')](_0x4b45e6))return!0x0;}return!0x1;}function _t(_0xd5d921){return _0xd5d921[_0xc645('0x70')]['parent']==_0xd5d921[_0xc645('0x145')][_0xc645('0x46')]&&_0xd5d921[_0xc645('0x70')][_0xc645('0x12b')];}function Mt(_0xb8e247,_0x6ae310,_0x2f6a34,_0x5978a9){const _0x5b03a4=_0x53e753=>!_0x53e753[_0xc645('0x116')]['is']('$textProxy')&&!_0x5978a9[_0xc645('0x79')](_0x53e753[_0xc645('0x116')]),_0x2786ce=_0xb8e247[_0xc645('0x145')]['getLastMatchingPosition'](_0x5b03a4),_0x4c0c6b=_0xb8e247['end'][_0xc645('0xf0')](_0x5b03a4,{'direction':'backward'});return(!_0xb8e247[_0xc645('0x145')]['isEqual'](_0x2786ce)||!_0xb8e247[_0xc645('0x70')]['isEqual'](_0x4c0c6b))&&(_0x2786ce['isBefore'](_0x4c0c6b)?_0x2f6a34[_0xc645('0x51')](_0x6ae310,{'range':_0x2f6a34[_0xc645('0xad')](_0x2786ce,_0x4c0c6b)}):_0x2f6a34[_0xc645('0xb7')](_0x6ae310),!0x0);}function $t(_0xc01472){return _0x196e19(_0xc01472);}function Nt(_0x112e38){const _0x3b7557=_0x112e38[_0xc645('0x145')][_0xc645('0x46')];return _0x3b7557&&_0x3b7557['is'](_0xc645('0x49'));}function Rt(_0x12ade8,_0x107505){const _0x39a279=_0x107505['schema'][_0xc645('0x79')](_0x12ade8)||_0x107505[_0xc645('0x1f')][_0xc645('0x126')](_0x12ade8);return _0x107505['createRange'](_0x107505['createPositionAt'](_0x12ade8,_0xc645('0x5')),_0x39a279?_0x107505[_0xc645('0xc7')](_0x12ade8):_0x107505['createPositionAt'](_0x12ade8,_0xc645('0x70')));}function xt(_0x40fcc6,_0x108281,_0xba6381,_0x34c8e6,_0x6b008){if(_0xba6381[_0xc645('0x70')][_0xc645('0xa6')](_0x34c8e6[_0xc645('0x145')]))return!0x0;if(_0x40fcc6[_0xc645('0x86')]!=_0x108281[_0xc645('0x86')])return!0x1;if(!_0xba6381[_0xc645('0x70')][_0xc645('0x1c')](_0x34c8e6['start']))return!0x1;const _0x3bbae6=_0x6b008[_0xc645('0xad')](_0xba6381[_0xc645('0x70')],_0x34c8e6[_0xc645('0x145')])[_0xc645('0xdc')]();for(const _0x4fa406 of _0x3bbae6)if([_0xc645('0x13b'),_0xc645('0x4')][_0xc645('0x4c')](_0x4fa406[_0xc645('0x86')])&&_0x6b008['schema'][_0xc645('0x1d')](_0x4fa406[_0xc645('0x116')]))return!0x1;return!0x0;}