@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240123.0 → 0.0.0-nightly-20240124.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-20240123.0",
3
+ "version": "0.0.0-nightly-20240124.0",
4
4
  "description": "CKEditor 5 track changes plugin.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -40,8 +40,8 @@
40
40
  "CHANGELOG.md"
41
41
  ],
42
42
  "dependencies": {
43
- "ckeditor5": "0.0.0-nightly-20240123.0",
44
- "ckeditor5-collaboration": "0.0.0-nightly-20240123.0",
43
+ "ckeditor5": "0.0.0-nightly-20240124.0",
44
+ "ckeditor5-collaboration": "0.0.0-nightly-20240124.0",
45
45
  "lodash-es": "4.17.21"
46
46
  },
47
47
  "types": "src/index.d.ts",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x26c9=['groupId','markerReady','showSuggestionHighlights','_isDataLoaded','skipNestingCheck','_model','suggestionLoaded','getSuggestion','comments','suggestionChanged','ck-suggestion-marker--active','getCommentThread','splitPosition','formatInline','acceptSelectedSuggestions','substr','assign','trackChanges','containsRangeInObject','getDifference','meta','removeClass','remove','commentThread','markInlineFormat','multipleBlocks','getWalker','markerNameToElements','includes','data','attribute:join','formatInline:','suggestion-type','deletion:accept','_recordAttributeChanges','nodeBefore','collaboration.channelId','_suggestions','every','position','_splitMarkerName','originalSuggestionId','plugins','formatBlock:','trackChanges.mergeNestedSuggestions','_setSuggestionData','_processAttributeSuggestions','toJSON','removed','range','_mergeNestedSuggestions','getFirstRange','highest','adapter','some','suggestionUnloaded','rejected','root','containsItem','key','batch','formatInline:accept','next','acceptAllSuggestions','markMultiRangeDeletion','formatGroupId','discardAllSuggestions','toViewElement','removeMarker:suggestion:formatBlock','removeAttribute','isBlock','_cutOutSuggestionMarker','backward','change','locale','format','createRange','commandName','_addSuggestionMarker','attributeKey','init','concat','stop','start','setSelection','_isForcedDefaultExecutionBlock','dataDowncast','deletion:','values','push','trackChanges.trackFormatChanges','authoredAt','consume','_getMarkerAnnouncementText','getNearestSelectionRange','oldRange','createRangeIn','addCommentThread','_adapter','createPositionBefore','markerToData','$marker','after','attribute:discard','open','type','addSuggestionData','containerElement','_editor','elementEnd','deleteContent','activeMarkers','notReady','addMarker:suggestion','_reduceExistingSuggestions','addMarker:suggestion:formatBlock','fire','isBefore','multi','addClass','head','registerPostFixer','deletion:discard','splice','formatBlock:discard','$graveyard','config','accept','model','bindElementToMarker','split','isSelectable','addSuggestion','isMultiRange','_isBlockAttribute','containsRange','createdAt','delete','getAncestors','track-changes-adapter-missing-getsuggestion','getLastMatchingPosition','suggestion:attribute:','dataReady','_getSuggestionData','isArray','_joinSuggestions','_createSuggestion','insertion:join','has','consumable','_getAttributeKey','markBlockFormat','marker-count','requires','addComment','_joinWithAdjacentSuggestions','_registerInlineAttribute','length','insertion:','setTo','markInsertion','_processAttributeChanges','detach','isNextTo','removeMarker:suggestion:attribute','addHighlight','_getExternalAuthor','unbindElementFromMarkerName','upcast','_enabledCommands','_suggestionFactory','stopListening','getMultiRangeId','markerToHighlight','forward','_getAuthorFromId','_commentsRepository','newValue','createSelection','listenTo','forceDefaultExecution','mapper','_isRegisteredAttribute','_rangeIsInLocalUserInsertion','_setSuggestionRange','_registerDefaultCallbacks','isAtEnd','_refreshSuggestionsChain','lowest','attributeOldValue','insertContent','_afterChanges','parent','_saved','insertion:chain','isAfter','rootName','insertion:discard','_initAriaMarkerChangeAnnouncements','removeMarkers','deletion','_inlineAttributeKeys','_registerBlockAttribute','author','keys','setAttribute','ready','formatBlock:join','change:data','high','return','always','resolve','removeMarker','attribute:accept','join','insert','ck-suggestion-marker','find','getChanges','_reduceSuggestionAttributeRange','track-changes-user-not-found','_enableDefaultAttributesIntegration','TrackChangesEditing','CommentsRepository','isUndo','map','isEqual','addMarkerName','selection','insertion','_refreshAttributeSuggestionsChain','trackChangesCommand','group','isAtStart','chain','oldValue','PendingActions','isIntersecting','low','_handleNewSuggestionMarker','editingDowncast','_blockAttributeKeys','attributeNewValue','getCustomProperty','acceptSuggestion','removeComment','add','attributes','reconvertMarker','document','addRange','getAllAdjacentSuggestions','addMarker','schema','howMany','discardSelectedSuggestions','_recordAttributeSuggestions','conversion','update:suggestion','unbind','pluginName','name','formatBlock','track-changes-enable-command-twice','isInsideObject','_defaultCallbacks','filter','formatInline:discard','previous','isCollapsed','documentSelection','before','track-changes-command-not-found','options','track-changes-suggestion-data-mismatch','LEAVE','getChangedMarkers','insertion:accept','elementStart','attribute','getUser','never','startsWith','_removeSuggestion','createElement','addUser','getAttribute','@external','isObject','end','announce','enqueueChange','for','track-changes-suggestion-not-found','clear','updateSuggestion','isInContent','_customCallbacks','nodeAfter','formatBlock:chain','getSuggestions','createPositionAt','_suggestionState','buildSuggestion','suggestion','hasComments','ck-suggestion-marker-formatBlock','createPositionAfter','item','ENTER','fromRange','editor','authorName','isDocumentOperation','markAttributeChange','_descriptionFactory','get','_checkSuggestionCorrectness','getRanges','deletion:chain','error-saving-suggestion-data-suggestion-discarded','accepted','creator','_onDiscard','Users','getIntersection','hasSuggestion','getSuggestionCallback','subType','_breakSuggestionMarker','writer','toUpperCase','normal','discard','suggestion:','markMultiRangeInsertion','PENDING_ACTION_SUGGESTION','$text','markerName','value','attribute:','_element','isOwn','formatBlock:accept','tablePasteChainId','isRemovable','differ','commands','containsPosition','element','default','_trackFormatChanges','markDeletion','FORMATTING','define','warn','_updateSuggestionData','isLimit','discardSuggestion','forEach','updateMarker','widget','_findSuggestions','getItems','isLocal','from','then','unshift','move','getShiftedBy','markers','registerCustomCallback','newRange','enableReadOnlyMode','isIntersectingWithRange','$elementName','ariaLiveAnnouncer','set','getFirstMarker','enableCommand'];(function(_0x349bd8,_0x26c9da){const _0x437e7f=function(_0x529d47){while(--_0x529d47){_0x349bd8['push'](_0x349bd8['shift']());}};_0x437e7f(++_0x26c9da);}(_0x26c9,0x141));const _0x437e=function(_0x349bd8,_0x26c9da){_0x349bd8=_0x349bd8-0x0;let _0x437e7f=_0x26c9[_0x349bd8];return _0x437e7f;};import{Plugin as _0x50a5c8,PendingActions as _0x4a403e}from'ckeditor5/src/core.js';import{LiveRange as _0xbc9a1f}from'ckeditor5/src/engine.js';import{CKEditorError as _0x38209e,uid as _0xc9a7f0,priorities as _0x4a978e,logWarning as _0x252bce}from'ckeditor5/src/utils.js';import{toWidget as _0x11a84b}from'ckeditor5/src/widget.js';import{Users as _0xd911bd,hashObject as _0x3f34c0,surroundingMarkersDetector as _0xab88b6}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x197825 from'./commands/trackchangescommand.js';import _0x2254af from'./commands/acceptsuggestioncommand.js';import _0x448e24 from'./commands/discardsuggestioncommand.js';import _0x3aaf90 from'./commands/executeonallsuggestionscommand.js';import _0x199690 from'./commands/executeonselectedsuggestionscommand.js';import _0x59e4d4 from'./suggestion.js';import _0x395a7b from'./suggestiondescriptionfactory.js';import _0x1cb20e from'./integrations/aiassistant.js';import _0x37bdde from'./integrations/alignment.js';import _0x3dffa1 from'./integrations/basicstyles.js';import _0x289ec4 from'./integrations/blockquote.js';import _0x8cb23d from'./integrations/casechange.js';import _0x56148e from'./integrations/ckbox.js';import _0x56cc8c from'./integrations/codeblock.js';import _0x4f9890 from'./integrations/comments.js';import _0x1e6adf from'./integrations/deletecommand.js';import _0x225dd1 from'./integrations/list.js';import _0x19c842 from'./integrations/listproperties.js';import _0x28707b from'./integrations/entercommand.js';import _0x233c85 from'./integrations/findandreplace.js';import _0x4c1301 from'./integrations/font.js';import _0x26e882 from'./integrations/formatpainter.js';import _0x318a56 from'./integrations/heading.js';import _0x207c66 from'./integrations/highlight.js';import _0x4f89d1 from'./integrations/horizontalline.js';import _0x5ea6e3 from'./integrations/htmlembed.js';import _0x4ad685 from'./integrations/image.js';import _0x363fb2 from'./integrations/imagereplace.js';import _0x29e269 from'./integrations/imagestyle.js';import _0x827a9c from'./integrations/importword.js';import _0x4aa5b6 from'./integrations/indent.js';import _0x65297d from'./integrations/inputcommand.js';import _0x51a959 from'./integrations/link.js';import _0x5478d7 from'./integrations/legacylist.js';import _0x1ee87f from'./integrations/legacylistproperties.js';import _0x3df4f9 from'./integrations/mediaembed.js';import _0x313113 from'./integrations/mention.js';import _0x1dafca from'./integrations/pagebreak.js';import _0x1e89c3 from'./integrations/paragraph.js';import _0x371045 from'./integrations/removeformat.js';import _0x2e1c16 from'./integrations/restrictededitingmode.js';import _0x29e63f from'./integrations/shiftentercommand.js';import _0x27e24b from'./integrations/standardeditingmode.js';import _0x51ebe8 from'./integrations/style.js';import _0x221a4a from'./integrations/table.js';import _0x5c10cb from'./integrations/tablemergesplit.js';import _0x52a0a5 from'./integrations/tableheadings.js';import _0x1f0ae2 from'./integrations/tableclipboard.js';import _0x1ee088 from'./integrations/tablecolumnresize.js';import _0x5a11b6 from'./integrations/template.js';import _0x375286 from'./integrations/tableofcontents.js';import _0x1fe966 from'./integrations/title.js';import _0x34a4d0 from'./integrations/undo.js';import _0x58dc7e from'./integrations/tablecaption.js';import _0x1651dc from'./integrations/tableproperties.js';import{getTranslation as _0xf738b8}from'./utils/common-translations.js';import{isEqual as _0x138eda,omit as _0x3bc0f9}from'lodash-es';export const renameAttributeKey=_0x437e('0x37');export default class p extends _0x50a5c8{static get[_0x437e('0xd5')](){return[_0x437e('0x11c'),_0xd911bd,_0x4a403e,_0x1cb20e,_0x37bdde,_0x3dffa1,_0x289ec4,_0x56148e,_0x8cb23d,_0x56cc8c,_0x4f9890,_0x1e6adf,_0x28707b,_0x233c85,_0x4c1301,_0x26e882,_0x318a56,_0x207c66,_0x4f89d1,_0x5ea6e3,_0x4ad685,_0x29e269,_0x363fb2,_0x827a9c,_0x4aa5b6,_0x65297d,_0x5478d7,_0x1ee87f,_0x51a959,_0x225dd1,_0x19c842,_0x3df4f9,_0x313113,_0x1dafca,_0x1e89c3,_0x371045,_0x2e1c16,_0x29e63f,_0x27e24b,_0x51ebe8,_0x221a4a,_0x5c10cb,_0x52a0a5,_0x58dc7e,_0x1f0ae2,_0x1ee088,_0x375286,_0x1651dc,_0x5a11b6,_0x1fe966,_0x34a4d0];}static get[_0x437e('0x141')](){return _0x437e('0x11b');}constructor(_0x4c4e2a){function _0x5a2ade(_0x4bcd38){return _0x4bcd38[_0x437e('0x11e')](_0x530411=>String['fromCharCode'](_0x530411))[_0x437e('0x113')]('');}super(_0x4c4e2a),this[_0x437e('0x13d')]=!0x1,this[_0x437e('0x39')](_0x437e('0xab'),[]),this['on']('change:activeMarkers',(_0x56a88c,_0x22d0d4,_0x35250c,_0x36ee94)=>{this[_0x437e('0x41')]['change'](()=>{for(const _0x2d312a of[..._0x36ee94,..._0x35250c])this[_0x437e('0x41')][_0x437e('0x32')][_0x437e('0xd0')](_0x2d312a)&&_0x4c4e2a['editing'][_0x437e('0x135')](_0x2d312a);});}),this[_0x437e('0x178')]=new _0x395a7b(this[_0x437e('0x174')]['model']['schema'],this[_0x437e('0x174')][_0x437e('0x86')]),this[_0x437e('0x9e')]=null,this[_0x437e('0xe6')]=new Bt(this[_0x437e('0x174')]),this[_0x437e('0x61')]=new Map(),this[_0x437e('0xec')]=_0x4c4e2a[_0x437e('0x66')]['get'](_0x437e('0x11c')),this[_0x437e('0xe5')]=new Set(),this[_0x437e('0x41')]=this[_0x437e('0x174')][_0x437e('0xbc')],this[_0x437e('0x16b')]=new WeakMap(),this[_0x437e('0x91')]=!0x1,this[_0x437e('0x12e')]=new Set([_0x437e('0x37')]),this[_0x437e('0x105')]=new Set(),_0x4c4e2a['config'][_0x437e('0x22')](_0x437e('0x96'),'default'),this[_0x437e('0x1f')]=_0x4c4e2a[_0x437e('0xba')]['get'](_0x437e('0x96')),_0x4c4e2a['config']['define'](_0x437e('0x68'),!0x0),this[_0x437e('0x6e')]=_0x4c4e2a[_0x437e('0xba')][_0x437e('0x179')](_0x437e('0x68')),this[_0x437e('0x124')]=new _0x197825(_0x4c4e2a,this[_0x437e('0xe5')]),this[_0x437e('0x102')](),this[_0x5a2ade([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x5a2ade([0x34,0x30,0x34,0x38,0x30,0x32,0x34,0x36]);}[_0x437e('0x8c')](){const _0x367f5b=this[_0x437e('0x174')],_0x1a8f7d=(_0x6b630a,_0x19e81f)=>{if(_0x437e('0x154')!=_0x6b630a)return'ck-suggestion-marker-'+_0x6b630a;const _0x13343a=_0x19e81f['split']('|')[0x0];return this[_0x437e('0xc2')](_0x13343a)?_0x437e('0x16f'):'ck-suggestion-marker-formatInline';};_0x367f5b[_0x437e('0x13e')][_0x437e('0x161')](_0x437e('0x12d'))['markerToHighlight']({'model':_0x437e('0x16d'),'view':_0x3694c8=>{const {id:_0x409f77,type:_0x3b46c8,subType:_0x3d0659}=this[_0x437e('0x64')](_0x3694c8[_0x437e('0x12')]),_0x1de1ad=[_0x437e('0x115'),_0x1a8f7d(_0x3b46c8,_0x3d0659)];let _0x22291c=0xbb8;return this[_0x437e('0xab')]['includes'](_0x3694c8[_0x437e('0x12')])&&(_0x1de1ad[_0x437e('0x95')](_0x437e('0x46')),_0x22291c=0xbc2),_0x437e('0x104')==_0x3b46c8&&(_0x22291c+=0x5),{'classes':_0x1de1ad,'attributes':{'data-suggestion':_0x409f77},'priority':_0x22291c};}}),_0x367f5b[_0x437e('0x13e')][_0x437e('0x161')](_0x437e('0x92'))[_0x437e('0x133')](_0xaef7a7=>{_0xaef7a7['on'](_0x437e('0xad'),(_0x51b80a,_0x443e3f,_0x53d994)=>{if(!_0x53d994[_0x437e('0x14e')]['showSuggestionHighlights'])return;const _0x3210e0=_0x443e3f[_0x437e('0x171')];if(!_0x3210e0)return;const _0x5086e6=_0x53d994[_0x437e('0xf1')][_0x437e('0x7f')](_0x3210e0);_0x367f5b[_0x437e('0xbc')][_0x437e('0x13a')]['isObject'](_0x3210e0)&&_0x5086e6&&!_0x5086e6['getCustomProperty'](_0x437e('0x29'))&&_0x5086e6['is'](_0x437e('0xa7'))&&_0x11a84b(_0x5086e6,_0x53d994[_0x437e('0xa')]);},{'priority':_0x437e('0x10d')});}),_0x367f5b[_0x437e('0x13e')][_0x437e('0x161')]('dataDowncast')[_0x437e('0xe9')]({'model':'suggestion','view':(_0x44cb02,_0x47f7db)=>{if(!_0x47f7db[_0x437e('0x14e')]['showSuggestionHighlights'])return null;const {type:_0x57f2cd,subType:_0x9d4b5a}=this[_0x437e('0x64')](_0x44cb02[_0x437e('0x12')]);return{'classes':[_0x437e('0x115'),_0x1a8f7d(_0x57f2cd,_0x9d4b5a)],'priority':0xbb8};}});const _0x158042=({showActiveMarkers:_0x4c4272=!0x0,isAttributeSuggestion:_0x4c0f7f=!0x1}={})=>(_0x4b18e0,_0x6dfe4a,_0x410662)=>{if(!_0x6dfe4a['item'])return;const {id:_0x12ec33}=this['_splitMarkerName'](_0x6dfe4a[_0x437e('0x12')]);if(_0x4c0f7f){const _0x3e3512=this['_suggestions']['get'](_0x12ec33),_0x350781=this['_getAttributeKey'](_0x3e3512);if(!this[_0x437e('0xc2')](_0x350781))return;}if(_0x6dfe4a['item']['is'](_0x437e('0x121')))return void _0x410662[_0x437e('0xd1')][_0x437e('0x98')](_0x6dfe4a[_0x437e('0x171')],_0x4b18e0[_0x437e('0x142')]);const _0x1381f2=_0x410662[_0x437e('0xf1')][_0x437e('0x7f')](_0x6dfe4a['item']);if(_0x6dfe4a[_0x437e('0x171')]['is'](_0x437e('0x1d'))&&_0x367f5b[_0x437e('0xbc')][_0x437e('0x13a')]['isBlock'](_0x6dfe4a[_0x437e('0x171')])&&!_0x1381f2['getCustomProperty']('addHighlight')){_0x410662['writer'][_0x437e('0xb3')]([_0x437e('0x115'),_0x437e('0x16f')],_0x1381f2),_0x410662[_0x437e('0xa')][_0x437e('0x109')]('data-suggestion',_0x12ec33,_0x1381f2),_0x410662[_0x437e('0xf1')][_0x437e('0xbd')](_0x1381f2,_0x6dfe4a['markerName']),_0x4c4272&&(this[_0x437e('0xab')][_0x437e('0x58')](_0x6dfe4a[_0x437e('0x12')])?_0x410662[_0x437e('0xa')][_0x437e('0xb3')](_0x437e('0x46'),_0x1381f2):_0x410662[_0x437e('0xa')][_0x437e('0x51')](_0x437e('0x46'),_0x1381f2));for(const _0x4684c3 of _0x367f5b[_0x437e('0xbc')][_0x437e('0x9c')](_0x6dfe4a[_0x437e('0x171')])[_0x437e('0x2b')]())_0x410662[_0x437e('0xd1')][_0x437e('0x98')](_0x4684c3,_0x4b18e0[_0x437e('0x142')]);_0x410662['consumable'][_0x437e('0x98')](_0x6dfe4a[_0x437e('0x171')],_0x4b18e0[_0x437e('0x142')]);}};_0x367f5b['conversion']['for'](_0x437e('0x92'))[_0x437e('0x133')](_0x45ff96=>{_0x45ff96['on']('addMarker:suggestion:formatBlock',(_0x44ca0b,_0x50dc08,_0x796c10)=>{_0x796c10[_0x437e('0x14e')]['showSuggestionHighlights']&&_0x158042({'showActiveMarkers':!0x1})(_0x44ca0b,_0x50dc08,_0x796c10);},{'priority':_0x437e('0x70')});}),_0x367f5b[_0x437e('0x13e')][_0x437e('0x161')]('dataDowncast')[_0x437e('0x133')](_0x20187e=>{_0x20187e['on']('addMarker:suggestion:attribute',(_0x1e3cd7,_0x54c22d,_0x37d853)=>{_0x37d853[_0x437e('0x14e')][_0x437e('0x3e')]&&_0x158042({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1e3cd7,_0x54c22d,_0x37d853);},{'priority':_0x437e('0x70')});}),_0x367f5b['conversion'][_0x437e('0x161')](_0x437e('0x92'))[_0x437e('0xa0')]({'model':_0x437e('0x16d'),'view':(_0x476e71,_0x4111f9)=>_0x4111f9[_0x437e('0x14e')]['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x476e71[_0x437e('0x4b')](0xb)}}),_0x367f5b['conversion'][_0x437e('0x161')](_0x437e('0xe4'))['elementToElement']({'view':{'name':_0x437e('0x16d'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2e9857,{writer:_0x27a676})=>{let _0xe2e47c=_0x437e('0xe')+_0x2e9857[_0x437e('0x15b')](_0x437e('0x5c'))+':'+_0x2e9857[_0x437e('0x15b')]('id');return _0x2e9857[_0x437e('0x15b')](_0x437e('0xd4'))&&(_0xe2e47c+=':'+_0x2e9857['getAttribute']('marker-count')),_0x27a676[_0x437e('0x159')](_0x437e('0xa1'),{'data-name':_0xe2e47c});}}),_0x367f5b[_0x437e('0x13e')][_0x437e('0x161')](_0x437e('0xe4'))['dataToMarker']({'view':_0x437e('0x16d')}),_0x367f5b[_0x437e('0x13e')]['for'](_0x437e('0x12d'))[_0x437e('0x133')](_0x219ea4=>{_0x219ea4['on'](_0x437e('0xaf'),_0x158042(),{'priority':_0x437e('0x10d')});}),_0x367f5b[_0x437e('0x13e')][_0x437e('0x161')]('editingDowncast')[_0x437e('0x133')](_0x30bb85=>{_0x30bb85['on']('addMarker:suggestion:attribute',_0x158042({'isAttributeSuggestion':!0x0}),{'priority':_0x437e('0x10d')});}),_0x367f5b[_0x437e('0x13e')][_0x437e('0x161')]('editingDowncast')[_0x437e('0x133')](_0x5793f5=>{_0x5793f5['on'](_0x437e('0x80'),(_0x255910,_0x9396c1,_0x1d5e84)=>{const _0x21f012=_0x1d5e84[_0x437e('0xf1')][_0x437e('0x57')](_0x9396c1[_0x437e('0x12')]);if(_0x21f012)for(const _0x3cb379 of _0x21f012)_0x3cb379[_0x437e('0x130')](_0x437e('0xe1'))||(_0x1d5e84['writer'][_0x437e('0x51')](['ck-suggestion-marker',_0x437e('0x16f'),_0x437e('0x46')],_0x3cb379),_0x1d5e84[_0x437e('0xa')][_0x437e('0x81')]('data-suggestion',_0x3cb379),_0x1d5e84['mapper'][_0x437e('0xe3')](_0x3cb379,_0x9396c1[_0x437e('0x12')]));},{'priority':_0x437e('0x10d')});}),_0x367f5b[_0x437e('0x13e')][_0x437e('0x161')](_0x437e('0x12d'))[_0x437e('0x133')](_0xc3b60e=>{_0xc3b60e['on'](_0x437e('0xe0'),(_0x2f0f68,_0x1fa0f0,_0x31ac80)=>{const _0x45f537=_0x31ac80[_0x437e('0xf1')][_0x437e('0x57')](_0x1fa0f0[_0x437e('0x12')]);if(!_0x45f537)return;const {id:_0x5101da}=this['_splitMarkerName'](_0x1fa0f0['markerName']),_0x3b3562=this[_0x437e('0x61')][_0x437e('0x179')](_0x5101da),_0x5f22e0=this[_0x437e('0xd2')](_0x3b3562);if(this[_0x437e('0xc2')](_0x5f22e0))for(const _0x265a8b of _0x45f537)_0x265a8b[_0x437e('0x130')](_0x437e('0xe1'))||(_0x31ac80[_0x437e('0xa')][_0x437e('0x51')]([_0x437e('0x115'),'ck-suggestion-marker-formatBlock',_0x437e('0x46')],_0x265a8b),_0x31ac80[_0x437e('0xa')][_0x437e('0x81')]('data-suggestion',_0x265a8b),_0x31ac80[_0x437e('0xf1')]['unbindElementFromMarkerName'](_0x265a8b,_0x1fa0f0[_0x437e('0x12')]));},{'priority':'high'});}),_0x367f5b[_0x437e('0xbc')][_0x437e('0x136')][_0x437e('0xb5')](_0xf35c70=>{let _0x323d8f=!0x1;const _0x10fe98=Array[_0x437e('0x2d')](_0x367f5b[_0x437e('0xbc')]['document']['differ'][_0x437e('0x151')]()),_0x24e0bc=new Set();for(const {name:_0x557b7c,data:_0x3979fd}of _0x10fe98){const {group:_0x1467c6,type:_0x1ba4a2,subType:_0x16a65b,id:_0x16a466}=this[_0x437e('0x64')](_0x557b7c);if(_0x437e('0x16d')!==_0x1467c6)continue;const _0x4d0e68=this[_0x437e('0x61')][_0x437e('0x179')](_0x16a466);if(null!=_0x3979fd[_0x437e('0x34')]){'formatInline'==_0x1ba4a2&&(_0x323d8f=_0x323d8f||Tt(_0x3979fd[_0x437e('0x34')],_0x557b7c,_0xf35c70,_0x367f5b['model'][_0x437e('0x13a')]));const _0x5ecfaa=_0x437e('0x154')==_0x1ba4a2&&this['_isBlockAttribute'](_0x16a65b[_0x437e('0xbe')]('|')[0x0]);if(_0x3979fd['newRange']['isCollapsed']||_0x437e('0xb9')==_0x3979fd[_0x437e('0x34')]['root'][_0x437e('0x100')]||_0x437e('0x143')==_0x1ba4a2&&!Vt(_0x3979fd[_0x437e('0x34')])||_0x5ecfaa&&!Vt(_0x3979fd[_0x437e('0x34')])||_0x437e('0x104')==_0x1ba4a2&&!(!Rt(_0x36102a=_0x3979fd[_0x437e('0x34')])&&!function(_0x493a30){return _0x493a30['start'][_0x437e('0xfc')]==_0x493a30['end'][_0x437e('0x5f')]&&_0x493a30['start']['isAtEnd'];}(_0x36102a)))_0xf35c70[_0x437e('0x111')](_0x557b7c),_0x323d8f=!0x0;else{if(!_0x4d0e68||!_0x4d0e68[_0x437e('0x165')])continue;_0x24e0bc['add'](_0x4d0e68);}}}var _0x36102a;return _0x24e0bc['size']>0x0&&(_0x323d8f=!!this['_joinWithAdjacentSuggestions'](_0x24e0bc)||_0x323d8f),_0x323d8f;}),_0x367f5b[_0x437e('0xbc')]['document'][_0x437e('0xb5')](_0x1480a3=>{let _0xdeafc0=!0x1;for(const _0x35a90a of _0x367f5b[_0x437e('0xbc')][_0x437e('0x136')][_0x437e('0x1a')]['getChanges']())if('insert'==_0x35a90a[_0x437e('0xa5')])for(const _0x78c1ab of this[_0x437e('0x61')][_0x437e('0x94')]()){if(_0x78c1ab[_0x437e('0xc1')]||!_0x78c1ab[_0x437e('0x165')])continue;const _0x334ddc=_0x437e('0x143')==_0x78c1ab[_0x437e('0xa5')],_0x41deb5=this['_getAttributeKey'](_0x78c1ab),_0x1702fc=_0x41deb5&&this[_0x437e('0xc2')](_0x41deb5);if(!_0x334ddc&&!_0x1702fc)continue;const _0x22b553=_0x78c1ab['getFirstRange']();if(_0x22b553[_0x437e('0x8f')][_0x437e('0xfc')]!=_0x22b553[_0x437e('0x15e')][_0x437e('0xfc')]&&!_0x22b553['end'][_0x437e('0xf6')]){const _0x121822=_0x367f5b[_0x437e('0xbc')]['createPositionAt'](_0x22b553[_0x437e('0x8f')][_0x437e('0x167')],_0x437e('0x15e')),_0x48bbfe=_0x367f5b[_0x437e('0xbc')][_0x437e('0x88')](_0x22b553[_0x437e('0x8f')],_0x121822);_0x1480a3[_0x437e('0x28')](_0x78c1ab[_0x437e('0x3a')](),{'range':_0x48bbfe}),_0xdeafc0=!0x0;}}return _0xdeafc0;}),_0x367f5b['model'][_0x437e('0x136')][_0x437e('0xb5')](_0x192dc8=>this[_0x437e('0xdd')](_0x192dc8)),_0x367f5b[_0x437e('0xbc')]['document'][_0x437e('0xb5')](_0x54120e=>!_0x54120e[_0x437e('0x78')][_0x437e('0x2c')]&&this[_0x437e('0x6a')](_0x54120e)),_0x367f5b[_0x437e('0xbc')]['on'](_0x437e('0xfb'),()=>{this[_0x437e('0x13d')]=!0x1;}),_0x367f5b[_0x437e('0xbc')][_0x437e('0x136')]['on']('change:data',(_0x22e676,_0x4f3c5c)=>{if(!_0x4f3c5c[_0x437e('0x2c')]||_0x4f3c5c[_0x437e('0x11d')])return;if(!this[_0x437e('0x13d')])return;const _0x2aba13=_0x367f5b[_0x437e('0xbc')][_0x437e('0x136')][_0x437e('0x1a')][_0x437e('0x117')]();if(0x0==_0x2aba13[_0x437e('0xd9')])return;const _0x12dfd0=[],_0x21d627=_0x2aba13['filter'](_0x4644f3=>_0x437e('0x154')==_0x4644f3[_0x437e('0xa5')]),_0x3e338d=_0x2aba13[_0x437e('0x147')](_0x39dc60=>'insert'==_0x39dc60[_0x437e('0xa5')]&&_0x437e('0x11')!=_0x39dc60[_0x437e('0x142')]),_0x1ea68b=_0x2aba13[_0x437e('0x147')](_0x5e693d=>_0x437e('0x52')==_0x5e693d[_0x437e('0xa5')]&&_0x437e('0x11')!=_0x5e693d[_0x437e('0x142')]);for(const _0x335043 of _0x21d627)this['_isRegisteredAttribute'](_0x335043[_0x437e('0x8b')])&&_0x12dfd0[_0x437e('0x95')]({'key':_0x335043[_0x437e('0x8b')],'newValue':_0x335043[_0x437e('0x12f')],'oldValue':_0x335043['attributeOldValue'],'range':Ut(_0x335043['range'],_0x367f5b[_0x437e('0xbc')])});for(const _0x1bf562 of _0x3e338d){const _0x574772=_0x1ea68b['find'](_0x3858ab=>_0x3858ab[_0x437e('0x15')]===_0x1bf562[_0x437e('0x15')]);if(_0x574772){const _0x1272ae=Ot(_0x1bf562[_0x437e('0x63')][_0x437e('0x167')],_0x367f5b[_0x437e('0xbc')]);_0x574772[_0x437e('0x142')]!==_0x1bf562[_0x437e('0x142')]&&_0x12dfd0['push']({'key':_0x437e('0x37'),'newValue':_0x1bf562[_0x437e('0x142')],'oldValue':_0x574772[_0x437e('0x142')],'range':_0x1272ae});for(const [_0xcde47c,_0x322875]of _0x574772[_0x437e('0x134')]){if(!this[_0x437e('0xf2')](_0xcde47c))continue;const _0x1861c0=_0x1bf562[_0x437e('0x134')][_0x437e('0x179')](_0xcde47c);_0x322875!==_0x1861c0&&_0x12dfd0['push']({'key':_0xcde47c,'newValue':_0x1861c0,'oldValue':_0x322875,'range':_0x1272ae});}for(const [_0x37a15d,_0x3e7ef3]of _0x1bf562[_0x437e('0x134')])this[_0x437e('0xf2')](_0x37a15d)&&(_0x574772[_0x437e('0x134')]['has'](_0x37a15d)||_0x12dfd0[_0x437e('0x95')]({'key':_0x37a15d,'newValue':_0x3e7ef3,'oldValue':null,'range':_0x1272ae}));}}0x0!=_0x12dfd0[_0x437e('0xd9')]&&_0x367f5b[_0x437e('0xbc')][_0x437e('0x160')](_0x4f3c5c,_0x4de2e3=>{const _0x5b780d=_0xc9a7f0();for(const {range:_0x5edef6,key:_0x384259,oldValue:_0x1921a3,newValue:_0x2dae9c}of _0x12dfd0)this[_0x437e('0x177')](_0x5edef6,_0x384259,_0x1921a3,_0x2dae9c,{'groupId':_0x5b780d});this[_0x437e('0xae')](_0x4de2e3,_0x12dfd0);});},{'priority':_0x437e('0xf8')}),_0x367f5b[_0x437e('0xbc')][_0x437e('0x32')]['on'](_0x437e('0x13f'),(_0x42a8a3,_0x5a154b,_0x4b1573)=>{if(null==_0x4b1573){const {id:_0x31843e}=this[_0x437e('0x64')](_0x5a154b['name']),_0x46ff1f=this[_0x437e('0x61')]['get'](_0x31843e);_0x46ff1f&&_0x46ff1f[_0x437e('0x120')](_0x5a154b[_0x437e('0x142')]);}}),_0x367f5b[_0x437e('0xbc')][_0x437e('0x136')]['on'](_0x437e('0x10c'),()=>{const _0x49dc87=Array[_0x437e('0x2d')](_0x367f5b[_0x437e('0xbc')][_0x437e('0x136')]['differ']['getChangedMarkers']())[_0x437e('0x147')](_0x3c6bb3=>_0x437e('0x16d')===this['_splitMarkerName'](_0x3c6bb3[_0x437e('0x142')])[_0x437e('0x125')]);if(0x0===_0x49dc87['length'])return;_0x49dc87['sort']((_0x10a164,_0x4a2e5e)=>{const _0x59e960=_0x10a164[_0x437e('0x59')][_0x437e('0x9b')],_0x143b6c=_0x4a2e5e[_0x437e('0x59')][_0x437e('0x9b')];return null===_0x59e960&&null===_0x143b6c?0x0:null===_0x59e960&&null!==_0x143b6c?-0x1:null!==_0x59e960&&null===_0x143b6c?0x1:_0x59e960[_0x437e('0x8f')][_0x437e('0xb1')](_0x143b6c[_0x437e('0x8f')])?-0x1:0x1;});const _0xa1f1d1=new Set(),_0x14b013=new Set();for(const {name:_0x25d584,data:_0x34a747}of _0x49dc87){const {id:_0x4baf74}=this[_0x437e('0x64')](_0x25d584);if(null===_0x34a747[_0x437e('0x9b')]){const _0xd6692=this[_0x437e('0x12c')](_0x25d584);_0x14b013['add'](_0xd6692);}else{const _0x5c2810=this[_0x437e('0x61')]['get'](_0x4baf74);null!==_0x34a747[_0x437e('0x34')]||_0x5c2810['isInContent']?(_0xa1f1d1[_0x437e('0x133')](_0x5c2810[_0x437e('0xb4')]),_0x14b013['add'](_0x5c2810)):this['_removeSuggestion'](_0x5c2810);}}_0x14b013['size']>0x0&&this[_0x437e('0xf7')](_0x14b013);for(const _0x5622be of _0xa1f1d1)this[_0x437e('0xb0')](_0x437e('0x45'),_0x5622be);}),_0x367f5b['model']['on']('applyOperation',(_0x36fe09,_0x2030b6)=>{const _0x1323d8=_0x2030b6[0x0];if(!this[_0x437e('0x61')]['size'])return;if(!_0x1323d8[_0x437e('0x176')])return;if(_0x1323d8[_0x437e('0x78')][_0x437e('0x11d')]||!_0x1323d8['batch'][_0x437e('0x2c')])return;let _0x1a299c,_0x2bb16c;switch(_0x1323d8[_0x437e('0xa5')]){case _0x437e('0x114'):_0x1a299c=_0x367f5b['model'][_0x437e('0x16a')](_0x1323d8[_0x437e('0x63')]),_0x2bb16c=_0x1a299c[_0x437e('0x31')](_0x1323d8['howMany']);break;case _0x437e('0xbe'):_0x1a299c=_0x367f5b[_0x437e('0xbc')][_0x437e('0x16a')](_0x1323d8[_0x437e('0x48')]),_0x2bb16c=_0x367f5b[_0x437e('0xbc')][_0x437e('0x16a')](_0x1323d8['moveTargetPosition']);break;case _0x437e('0x30'):_0x1a299c=_0x367f5b[_0x437e('0xbc')]['createPositionAt'](_0x1323d8['targetPosition']),_0x2bb16c=_0x1a299c[_0x437e('0x31')](_0x1323d8[_0x437e('0x13b')]);break;default:return;}const _0x4c4423=_0x367f5b['model'][_0x437e('0x88')](_0x1a299c,_0x2bb16c);_0x367f5b[_0x437e('0xbc')][_0x437e('0x85')](()=>{for(const {suggestion:_0x3fa1d6,meta:_0x1fa7df}of this[_0x437e('0x2a')](_0x4c4423)){if(_0x3fa1d6[_0x437e('0xc1')])continue;if(_0x437e('0x49')==_0x3fa1d6[_0x437e('0xa5')])continue;const _0x28f576=this[_0x437e('0xd2')](_0x3fa1d6);if(_0x28f576&&this[_0x437e('0xc2')](_0x28f576)&&'split'!=_0x1323d8[_0x437e('0xa5')])continue;const _0x47fca2=_0x3fa1d6['data']&&_0x3fa1d6[_0x437e('0x59')]['multipleBlocks'];('formatBlock'!=_0x3fa1d6[_0x437e('0xa5')]||_0x437e('0xbe')==_0x1323d8['type']&&!_0x47fca2)&&(_0x1fa7df['containsRangeInObject']||_0x437e('0x122')==_0x3fa1d6['type']&&_0x1fa7df[_0x437e('0x16')]||_0x3fa1d6[_0x437e('0x6f')]()[_0x437e('0xc3')](_0x4c4423)&&this[_0x437e('0x9')](_0x3fa1d6,_0x1a299c,_0x2bb16c));}});},{'priority':_0x437e('0xf8')}),_0x367f5b['model']['on']('deleteContent',(_0x35bd09,_0x537af6)=>{const _0x4cb71e=_0x537af6[0x0],_0x557baa=_0x537af6[0x1];if(_0x557baa&&_0x557baa[_0x437e('0xf0')])return;if(this[_0x437e('0x91')])return;if(!this['trackChangesCommand'][_0x437e('0x13')])return;if(_0x4cb71e['isCollapsed'])return;const _0x5c0fa7=_0x367f5b['model'][_0x437e('0x13a')],{start:_0x34bd27,end:_0xeb8e20}=_0x4cb71e[_0x437e('0x6f')](),_0x22d996=_0x34bd27[_0x437e('0x167')]&&_0x5c0fa7['isLimit'](_0x34bd27[_0x437e('0x167')])?null:_0x5c0fa7[_0x437e('0x9a')](_0x34bd27,_0x437e('0xea')),_0xc45516=_0xeb8e20[_0x437e('0x5f')]&&_0x5c0fa7[_0x437e('0x25')](_0xeb8e20[_0x437e('0x5f')])?null:_0x5c0fa7[_0x437e('0x9a')](_0xeb8e20,_0x437e('0x84')),_0x53c2ab=_0x367f5b[_0x437e('0xbc')]['createRange'](_0x22d996?_0x22d996[_0x437e('0x8f')]:_0x34bd27,_0xc45516?_0xc45516[_0x437e('0x15e')]:_0xeb8e20);_0x367f5b[_0x437e('0xbc')][_0x437e('0x85')](_0x46b681=>{this[_0x437e('0x20')](_0x53c2ab);const _0x3fbb98=_0x367f5b[_0x437e('0xbc')][_0x437e('0x13a')]['getNearestSelectionRange'](_0x53c2ab[_0x437e('0x8f')]);_0x4cb71e['is'](_0x437e('0x14b'))?_0x46b681[_0x437e('0x90')](_0x3fbb98):_0x4cb71e[_0x437e('0xdb')](_0x3fbb98);}),_0x35bd09[_0x437e('0x8e')]();},{'priority':_0x4a978e[_0x437e('0xc')]+0xa}),_0x367f5b['model']['on'](_0x437e('0xfa'),(_0x210ac1,_0x4578f1)=>{const _0x4bebbe=_0x4578f1[_0x4578f1[_0x437e('0xd9')]-0x1];_0x4bebbe&&_0x4bebbe[_0x437e('0xf0')]||this[_0x437e('0x91')]||this[_0x437e('0x124')][_0x437e('0x13')]&&(_0x367f5b['model'][_0x437e('0x85')](()=>{let _0x574737=_0x367f5b[_0x437e('0xbc')][_0x437e('0xfa')](_0x4578f1[0x0],_0x4578f1[0x1],_0x4578f1[0x2],{'forceDefaultExecution':!0x0});if(!_0x574737)return;_0x210ac1['return']=_0x574737['clone']();const _0x4ee6c8=_0x574737[_0x437e('0x15e')]['nodeBefore'],_0xb3fd35=_0x367f5b[_0x437e('0xbc')][_0x437e('0x13a')];_0x4ee6c8&&_0xb3fd35[_0x437e('0x82')](_0x4ee6c8)&&!_0xb3fd35[_0x437e('0x15d')](_0x4ee6c8)&&(_0x574737=_0x367f5b[_0x437e('0xbc')][_0x437e('0x88')](_0x574737[_0x437e('0x8f')],_0x367f5b['model'][_0x437e('0x16a')](_0x4ee6c8,'end'))),this[_0x437e('0xdc')](_0x574737);}),_0x210ac1[_0x437e('0x8e')]());},{'priority':_0x437e('0x10d')}),this[_0x437e('0x174')][_0x437e('0x1b')][_0x437e('0x133')](_0x437e('0x4d'),this[_0x437e('0x124')]),this[_0x437e('0x3b')](_0x437e('0x4d'));const _0x4fff79=new _0x2254af(_0x367f5b,this[_0x437e('0x61')]);_0x367f5b[_0x437e('0x1b')][_0x437e('0x133')](_0x437e('0x131'),_0x4fff79),this['enableCommand']('acceptSuggestion');const _0x1c2bc6=new _0x448e24(_0x367f5b,this[_0x437e('0x61')]);_0x367f5b[_0x437e('0x1b')]['add'](_0x437e('0x26'),_0x1c2bc6),this[_0x437e('0x3b')](_0x437e('0x26')),_0x367f5b[_0x437e('0x1b')]['add'](_0x437e('0x7b'),new _0x3aaf90(_0x367f5b,_0x4fff79,this['_suggestions'])),this['enableCommand'](_0x437e('0x7b')),_0x367f5b['commands'][_0x437e('0x133')](_0x437e('0x7e'),new _0x3aaf90(_0x367f5b,_0x1c2bc6,this['_suggestions'])),this[_0x437e('0x3b')]('discardAllSuggestions'),_0x367f5b['commands'][_0x437e('0x133')](_0x437e('0x4a'),new _0x199690(_0x367f5b,_0x4fff79,this[_0x437e('0x61')])),this[_0x437e('0x3b')](_0x437e('0x4a')),_0x367f5b[_0x437e('0x1b')][_0x437e('0x133')](_0x437e('0x13c'),new _0x199690(_0x367f5b,_0x1c2bc6,this[_0x437e('0x61')])),this[_0x437e('0x3b')]('discardSelectedSuggestions');const _0x1bf70a=_0x367f5b[_0x437e('0x66')][_0x437e('0x179')](_0x437e('0x11c'));this[_0x437e('0xef')](_0x1bf70a,_0x437e('0xd6'),(_0x3565d5,{threadId:_0x406219})=>{const _0x2d5a0d=this['_suggestions'][_0x437e('0x179')](_0x406219);_0x2d5a0d&&_0x2d5a0d['commentThread']&&0x1===_0x2d5a0d[_0x437e('0x53')][_0x437e('0xd9')]&&this[_0x437e('0x24')](_0x406219,{'hasComments':!0x0});},{'priority':_0x437e('0x12b')}),this[_0x437e('0xef')](_0x1bf70a,_0x437e('0x132'),(_0xdc866,{threadId:_0x370a1e})=>{const _0x150775=this['_suggestions'][_0x437e('0x179')](_0x370a1e);_0x150775&&_0x150775[_0x437e('0x53')]&&!_0x150775['commentThread'][_0x437e('0xd9')]&&this[_0x437e('0x24')](_0x370a1e,{'hasComments':!0x1});},{'priority':_0x437e('0x12b')});}set['adapter'](_0x555b34){if(this[_0x437e('0x9e')])throw new _0x38209e('track-changes-adapter-already-set',this);this[_0x437e('0x9e')]=_0x555b34;}get[_0x437e('0x71')](){return this[_0x437e('0x9e')];}[_0x437e('0x169')]({skipNotAttached:_0x3ce52d=!0x1,toJSON:_0x379f1e=!0x1}={}){const _0x441b87=[];for(const _0x2afe73 of this[_0x437e('0x61')][_0x437e('0x94')]())_0x3ce52d&&!_0x2afe73[_0x437e('0x165')]||_0x441b87[_0x437e('0x95')](_0x2afe73);return _0x379f1e?_0x441b87[_0x437e('0x11e')](_0x1ce591=>_0x1ce591[_0x437e('0x6b')]()):_0x441b87;}['getSuggestion'](_0x3ef3ce){const _0x1c17b6=this[_0x437e('0x61')]['get'](_0x3ef3ce);if(!_0x1c17b6)throw new _0x38209e(_0x437e('0x162'),this);return _0x1c17b6;}[_0x437e('0x6')](_0x2b8710){return this[_0x437e('0x61')]['has'](_0x2b8710);}['addSuggestionData'](_0x799dd5){const {authorId:_0x3628fc,id:_0x1ef6ac,attributes:_0x59a568}=_0x799dd5,[_0x4b451e,_0x40afea]=_0x799dd5[_0x437e('0xa5')]['split'](':'),_0x4d4a99=this['_suggestions']['get'](_0x1ef6ac)||this[_0x437e('0xce')](_0x4b451e,_0x40afea,_0x1ef6ac,_0x3628fc,_0x59a568);if(this['_addThreadToSuggestion'](_0x4d4a99),this[_0x437e('0x17a')](_0x4d4a99,_0x4b451e,_0x40afea||null,_0x3628fc),_0x4d4a99['createdAt']=_0x799dd5[_0x437e('0xc4')],_0x4d4a99['_isDataLoaded']=!0x0,_0x59a568&&_0x59a568['@external']){const _0x297870=_0x59a568[_0x437e('0x15c')],_0x54fa8c=this[_0x437e('0xe2')](_0x297870[_0x437e('0x175')]);_0x4d4a99[_0x437e('0x97')]=_0x297870[_0x437e('0xc4')],_0x4d4a99[_0x437e('0x107')]=_0x54fa8c,_0x4d4a99['isExternal']=!0x0;}else _0x4d4a99[_0x437e('0x97')]=_0x799dd5['createdAt'];switch(_0x799dd5[_0x437e('0x59')]&&(_0x4d4a99['data']=_0x799dd5[_0x437e('0x59')]),_0x799dd5[_0x437e('0x134')]&&(_0x4d4a99[_0x437e('0x134')]=_0x799dd5['attributes']),this[_0x437e('0x9e')]&&this[_0x437e('0x9e')]['addSuggestion']||(_0x4d4a99[_0x437e('0xfd')]=!0x0),this[_0x437e('0x16b')][_0x437e('0x179')](_0x4d4a99)){case _0x437e('0xac'):this[_0x437e('0x16b')]['set'](_0x4d4a99,_0x437e('0xca'));break;case _0x437e('0x3d'):_0x4d4a99[_0x437e('0x165')]?(this['_joinWithAdjacentSuggestions'](new Set([_0x4d4a99])),this['_refreshSuggestionsChain'](new Set([_0x4d4a99])),this[_0x437e('0x16b')][_0x437e('0x39')](_0x4d4a99,_0x437e('0x10a')),this[_0x437e('0xb0')](_0x437e('0x42'),_0x4d4a99)):this['_suggestionState'][_0x437e('0x39')](_0x4d4a99,_0x437e('0x6c'));}return _0x4d4a99;}[_0x437e('0x131')](_0x541eb0){this['forceDefaultExecution'](()=>{this['editor'][_0x437e('0xbc')][_0x437e('0x85')](()=>{for(const _0x3797fa of _0x541eb0[_0x437e('0x138')]())_0x3797fa[_0x437e('0xbb')]();});});}[_0x437e('0x26')](_0x4e475d){this[_0x437e('0xf0')](()=>{this[_0x437e('0x174')]['model']['change'](()=>{for(const _0x7c4d64 of _0x4e475d[_0x437e('0x138')]())_0x7c4d64[_0x437e('0xd')]();});});}[_0x437e('0x3b')](_0x55f9f1,_0x44945e){const _0x517dd7=this[_0x437e('0x174')]['commands']['get'](_0x55f9f1);if(!_0x517dd7)throw new _0x38209e(_0x437e('0x14d'),this,{'commandName':_0x55f9f1});if(this[_0x437e('0xe5')][_0x437e('0xd0')](_0x517dd7))throw new _0x38209e(_0x437e('0x144'),this,{'commandName':_0x55f9f1});this[_0x437e('0xe5')][_0x437e('0x133')](_0x517dd7),_0x44945e&&_0x517dd7['on']('execute',(_0x41b3a2,_0x2050e5)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2050e5[_0x437e('0xd9')]>0x0&&_0x2050e5[_0x2050e5[_0x437e('0xd9')]-0x1]&&_0x2050e5[_0x2050e5[_0x437e('0xd9')]-0x1][_0x437e('0xf0')]?_0x2050e5['pop']():(_0x41b3a2[_0x437e('0x10e')]=_0x44945e((..._0xc53eff)=>_0x517dd7['execute'](..._0xc53eff,{'forceDefaultExecution':!0x0}),..._0x2050e5),_0x41b3a2[_0x437e('0x8e')]())));},{'priority':'high'});}[_0x437e('0xf0')](_0x593ee9){let _0x5bd073,_0xcb374f;const _0x3c920b=this['_isForcedDefaultExecutionBlock'];this[_0x437e('0x91')]=!0x0;try{_0x5bd073=_0x593ee9();}catch(_0x47bd6a){_0xcb374f=_0x47bd6a;}return _0x3c920b||(this[_0x437e('0x91')]=!0x1),_0xcb374f&&_0x38209e['rethrowUnexpectedError'](_0xcb374f,this),_0x5bd073;}['markInsertion'](_0x27c57e,_0x12a107=null,_0x244a8d={}){if(_0x27c57e[_0x437e('0x14a')])return null;const _0x127ea6=this['editor'][_0x437e('0x66')][_0x437e('0x179')](_0x437e('0x4'))['me'];for(const {suggestion:_0x1c664f,meta:_0x28116b}of this[_0x437e('0x2a')](_0x27c57e,_0x437e('0x122')))if(_0x28116b[_0x437e('0x16')]){if(!_0x28116b[_0x437e('0xdf')]){if(_0x28116b[_0x437e('0x4e')]){if(!this[_0x437e('0x6e')]||!Pt(_0x1c664f,_0x244a8d))continue;return _0x1c664f;}if(Pt(_0x1c664f,_0x244a8d))return _0x1c664f;this[_0x437e('0x9')](_0x1c664f,_0x27c57e['start'],_0x27c57e[_0x437e('0x15e')]);break;}if(_0x12a107==_0x1c664f['subType']&&Pt(_0x1c664f,_0x244a8d)){const _0x3079dc=_0x1c664f[_0x437e('0x6f')]();return _0x3079dc[_0x437e('0x8f')][_0x437e('0x11f')](_0x27c57e['end'])?this[_0x437e('0xf4')](_0x1c664f,this[_0x437e('0x41')][_0x437e('0x88')](_0x27c57e[_0x437e('0x8f')],_0x3079dc['end'])):this[_0x437e('0xf4')](_0x1c664f,this[_0x437e('0x41')]['createRange'](_0x3079dc[_0x437e('0x8f')],_0x27c57e[_0x437e('0x15e')])),_0x1c664f;}}const _0x471b11=_0xc9a7f0(),_0x4db4cc=_0x127ea6['id'],_0x3c7a19=_0x12a107?_0x437e('0xda')+_0x12a107:_0x437e('0x122'),_0x39fb2e=this[_0x437e('0x69')]({'id':_0x471b11,'type':_0x3c7a19,'createdAt':new Date(),'authorId':_0x4db4cc,'attributes':_0x244a8d});return this['_addSuggestionMarker'](_0x3c7a19,_0x471b11,_0x4db4cc,_0x27c57e),_0x39fb2e;}[_0x437e('0xf')](_0x1cc54c,_0xf5211c=_0x437e('0xb2'),_0x31af7d={}){const _0x33c431=this[_0x437e('0x174')][_0x437e('0x66')][_0x437e('0x179')](_0x437e('0x4'))['me'],_0x39e21f=this[_0x437e('0xe6')][_0x437e('0x7')](_0x437e('0x122'),_0xf5211c,_0x437e('0x113'));for(const _0x4368a3 of this[_0x437e('0x169')]())if(_0x4368a3[_0x437e('0x107')]['id']==_0x33c431['id']&&_0x437e('0x122')==_0x4368a3[_0x437e('0xa5')]&&_0x4368a3[_0x437e('0x8')]==_0xf5211c&&Pt(_0x4368a3,_0x31af7d)&&(_0x39e21f(_0x4368a3[_0x437e('0x17b')](),_0x1cc54c)||_0x39e21f(_0x1cc54c,_0x4368a3['getRanges']()))){for(const _0x1bfd6a of _0x1cc54c)_0x4368a3[_0x437e('0x137')](_0x1bfd6a);return _0x4368a3;}for(const {suggestion:_0x201b5e,meta:_0x46b89d}of this[_0x437e('0x2a')](_0x1cc54c,_0x437e('0x122'))){if(!_0x46b89d[_0x437e('0x16')])continue;if(!this['_mergeNestedSuggestions']&&_0x46b89d[_0x437e('0x4e')])continue;if(!Pt(_0x201b5e,_0x31af7d))continue;let _0x5d25c0=!0x0;for(const _0x2e2200 of _0x201b5e['getRanges']())for(const _0x34eb3c of _0x1cc54c)if(!_0x2e2200[_0x437e('0xc3')](_0x34eb3c)){_0x5d25c0=!0x1;break;}if(_0x5d25c0)return _0x201b5e;}const _0x425b7f=_0xc9a7f0(),_0x252056=_0x33c431['id'],_0x1bbf33='insertion:'+_0xf5211c,_0x26fc16=this['_setSuggestionData']({'id':_0x425b7f,'type':_0x1bbf33,'createdAt':new Date(),'authorId':_0x252056,'attributes':_0x31af7d});for(const _0x55f2c7 of _0x1cc54c)this['_addSuggestionMarker'](_0x1bbf33,_0x425b7f,_0x252056,_0x55f2c7,_0x59e4d4['getMultiRangeId']());return _0x26fc16;}[_0x437e('0x54')](_0x3083cf,_0x1c735b,_0x4aca2b=null,_0x2aec4c={}){if(_0x4aca2b=_0x4aca2b||Et(_0x1c735b),_0x3083cf['isCollapsed'])return null;if(_0x437e('0x156')===this[_0x437e('0x1f')]){const _0x1ad6cc=this[_0x437e('0xe6')][_0x437e('0x7')](_0x437e('0x49'),_0x4aca2b,_0x437e('0xbb'));return this[_0x437e('0xf0')](()=>_0x1ad6cc([_0x3083cf],_0x1c735b,_0x2aec4c)),null;}const _0xaa5bf9=this[_0x437e('0x174')][_0x437e('0x66')]['get'](_0x437e('0x4'))['me'],_0x9499=[];if(_0x437e('0x10f')!==this[_0x437e('0x1f')])for(const {suggestion:_0x8e1164,meta:_0x8e1daf}of this[_0x437e('0x2a')](_0x3083cf,_0x437e('0x122')))_0x8e1daf[_0x437e('0x16')]&&!_0x8e1daf['isInsideObject']&&_0x9499[_0x437e('0x95')](..._0x8e1164[_0x437e('0x17b')]());const _0x37e055=function(_0x2fa3b0,_0x1ba412){const _0x10c7e0=[];for(const _0x4c6ca8 of _0x1ba412){const _0x20f1cb=_0x2fa3b0[_0x437e('0x5')](_0x4c6ca8);_0x20f1cb&&_0x10c7e0[_0x437e('0x95')](_0x20f1cb);}return _0x10c7e0;}(_0x3083cf,_0x9499),_0x4e50e8=function(_0x160cb9,_0x3d8966){const _0xae5201=[_0x160cb9];for(const _0x211a22 of _0x3d8966){let _0x18b46f=0x0;for(;_0x18b46f<_0xae5201[_0x437e('0xd9')];){const _0x16adc0=_0xae5201[_0x18b46f]['getDifference'](_0x211a22);_0xae5201[_0x437e('0xb7')](_0x18b46f,0x1,..._0x16adc0),_0x18b46f+=_0x16adc0[_0x437e('0xd9')];}}return _0xae5201;}(_0x3083cf,_0x9499);_0x37e055[_0x437e('0xd9')]&&this[_0x437e('0x41')][_0x437e('0x85')](()=>{for(const _0x29d9bc of _0x37e055){const _0x5b5aaf=this[_0x437e('0xe6')]['getSuggestionCallback'](_0x437e('0x49'),_0x4aca2b,_0x437e('0xbb'));this[_0x437e('0xf0')](()=>_0x5b5aaf([_0x29d9bc],_0x1c735b,_0x2aec4c));}});for(const _0x4fba02 of _0x4e50e8){let _0x1ccf35=null,_0xff883a=_0x4fba02[_0x437e('0x8f')],_0x26fe45=_0x4fba02[_0x437e('0x15e')];for(const {suggestion:_0x2098bf,meta:_0x48301b}of this['_findSuggestions'](_0x4fba02,_0x437e('0x49'))){if(!_0x48301b[_0x437e('0x16')])continue;if(_0x2098bf[_0x437e('0x8')]!=_0x4aca2b)continue;if(!Pt(_0x2098bf,_0x2aec4c))continue;const _0xd19826=_0x2098bf[_0x437e('0x6f')]();if(_0xd19826['containsRange'](_0x4fba02,!0x0))return null;_0xff883a=_0xff883a[_0x437e('0xb1')](_0xd19826[_0x437e('0x8f')])?_0xff883a:_0xd19826['start'],_0x26fe45=_0x26fe45[_0x437e('0xff')](_0xd19826[_0x437e('0x15e')])?_0x26fe45:_0xd19826[_0x437e('0x15e')],_0x1ccf35?_0xd19826['start'][_0x437e('0xb1')](_0x1ccf35[_0x437e('0x6f')]()[_0x437e('0x8f')])?(_0x1ccf35[_0x437e('0x103')](),_0x1ccf35=_0x2098bf):_0x2098bf[_0x437e('0x103')]():_0x1ccf35=_0x2098bf;}const _0x707c2e=this[_0x437e('0x41')][_0x437e('0x88')](_0xff883a,_0x26fe45);if(_0x1ccf35)this[_0x437e('0xf4')](_0x1ccf35,_0x707c2e);else{const _0x1bbe49=_0xc9a7f0(),_0x16b87f=_0xaa5bf9['id'];this[_0x437e('0x69')]({'id':_0x1bbe49,'type':_0x437e('0x5b')+_0x4aca2b,'data':_0x1c735b,'createdAt':new Date(),'authorId':_0x16b87f,'attributes':_0x2aec4c}),this[_0x437e('0x8a')]('formatInline:'+_0x4aca2b,_0x1bbe49,_0x16b87f,_0x707c2e);}}return null;}[_0x437e('0xd3')](_0x497e43,_0x48f58e,_0x41f387=[],_0x4bd8f2=null,_0x4d4df3={}){_0x48f58e[_0x437e('0x7d')]||(_0x48f58e[_0x437e('0x7d')]=_0x48f58e[_0x437e('0x89')]),_0x48f58e[_0x437e('0x55')]=_0x497e43['is']('range'),_0x4bd8f2=_0x4bd8f2||Et(_0x48f58e);const _0x3433d1=_0x41f387[_0x437e('0x11e')](_0x2b4056=>Ot(_0x2b4056,this[_0x437e('0x41')])),_0xa754cc=_0x497e43['is'](_0x437e('0x6d'))?_0x497e43:Ot(_0x497e43,this[_0x437e('0x41')]);if('never'===this['_trackFormatChanges']){const _0x29e556=this[_0x437e('0xe6')][_0x437e('0x7')](_0x437e('0x143'),_0x4bd8f2,'accept');return this[_0x437e('0xf0')](()=>_0x29e556([_0xa754cc],_0x48f58e,_0x4d4df3)),null;}_0x3433d1['push'](_0xa754cc);let _0x5dca15=!0x0;for(const _0x57de99 of _0x3433d1)if(!this['_rangeIsInLocalUserInsertion'](_0x57de99)){_0x5dca15=!0x1;break;}if(_0x5dca15&&_0x437e('0x10f')!==this[_0x437e('0x1f')]){const _0x437d12=this[_0x437e('0xe6')][_0x437e('0x7')](_0x437e('0x143'),_0x4bd8f2,_0x437e('0xbb'));return this[_0x437e('0xf0')](()=>_0x437d12([_0xa754cc],_0x48f58e,_0x4d4df3)),null;}let _0x414d15=null,_0x4f6749=_0xa754cc[_0x437e('0x8f')],_0x47b03a=_0xa754cc[_0x437e('0x15e')];for(const {suggestion:_0x13d535,meta:_0x43181f}of this[_0x437e('0x2a')](_0xa754cc,'formatBlock')){if(!_0x43181f['isOwn'])continue;if(_0x43181f['isNextTo']||_0x43181f[_0x437e('0x4e')]||_0x43181f[_0x437e('0x145')])continue;if(_0x13d535[_0x437e('0x59')]['formatGroupId']!=_0x48f58e[_0x437e('0x7d')])continue;if(!Pt(_0x13d535,_0x4d4df3))continue;const _0x43581f=_0x13d535[_0x437e('0x6f')]();if(_0x13d535[_0x437e('0x8')]==_0x4bd8f2){if(_0x43581f[_0x437e('0xc3')](_0xa754cc,!0x0))return null;_0x4f6749=_0x4f6749[_0x437e('0xb1')](_0x43581f[_0x437e('0x8f')])?_0x4f6749:_0x43581f[_0x437e('0x8f')],_0x47b03a=_0x47b03a['isAfter'](_0x43581f[_0x437e('0x15e')])?_0x47b03a:_0x43581f[_0x437e('0x15e')],_0x414d15?_0x43581f['start'][_0x437e('0xb1')](_0x414d15[_0x437e('0x6f')]()[_0x437e('0x8f')])?(_0x414d15[_0x437e('0x103')](),_0x414d15=_0x13d535):_0x13d535['removeMarkers']():_0x414d15=_0x13d535;}else{const _0x182daa=_0xa754cc[_0x437e('0x5')](_0x43581f);this['_cutOutSuggestionMarker'](_0x13d535,_0x182daa);}}const _0x32ab80=this[_0x437e('0x174')]['plugins'][_0x437e('0x179')](_0x437e('0x4'))['me'],_0x1bb8e6=_0xc9a7f0(),_0x596e77=_0x32ab80['id'];if(_0x414d15)return this[_0x437e('0xf4')](_0x414d15,this[_0x437e('0x41')][_0x437e('0x88')](_0x4f6749,_0x47b03a)),_0x414d15;{const _0x116e9b=this['_setSuggestionData']({'id':_0x1bb8e6,'type':_0x437e('0x67')+_0x4bd8f2,'data':_0x48f58e,'createdAt':new Date(),'authorId':_0x596e77,'attributes':_0x4d4df3});return this[_0x437e('0x8a')](_0x437e('0x67')+_0x4bd8f2,_0x1bb8e6,_0x596e77,this[_0x437e('0x41')]['createRange'](_0x4f6749,_0x47b03a)),_0x116e9b;}}['markMultiRangeBlockFormat'](_0x40765c,_0x456738,_0x4771de=[],_0x39a15c=null,_0x511adc={}){_0x456738['formatGroupId']||(_0x456738[_0x437e('0x7d')]=_0x456738[_0x437e('0x89')]);const _0x59ca4d=_0x40765c[0x0];_0x456738[_0x437e('0x55')]=_0x59ca4d['is'](_0x437e('0x6d')),_0x39a15c=_0x39a15c||Et(_0x456738);const _0x3072d2=_0x4771de[_0x437e('0x11e')](_0x5b01fc=>Ot(_0x5b01fc,this[_0x437e('0x41')])),_0x10386f=_0x59ca4d['is'](_0x437e('0x6d'))?_0x40765c:_0x40765c[_0x437e('0x11e')](_0x4f6acd=>Ot(_0x4f6acd,this[_0x437e('0x41')]));if('never'===this[_0x437e('0x1f')]){const _0x2a4ed9=this[_0x437e('0xe6')][_0x437e('0x7')](_0x437e('0x143'),_0x39a15c,_0x437e('0xbb'));return this[_0x437e('0xf0')](()=>_0x2a4ed9(_0x10386f,_0x456738,_0x511adc)),null;}_0x3072d2[_0x437e('0x95')](..._0x10386f);let _0x439d56=!0x0;for(const _0x4f7491 of _0x3072d2)if(!this[_0x437e('0xf3')](_0x4f7491)){_0x439d56=!0x1;break;}if(_0x439d56&&_0x437e('0x10f')!==this['_trackFormatChanges']){const _0x33fbc5=this[_0x437e('0xe6')][_0x437e('0x7')]('formatBlock',_0x39a15c,_0x437e('0xbb'));return this[_0x437e('0xf0')](()=>_0x33fbc5(_0x10386f,_0x456738,_0x511adc)),null;}const _0x140d80=this[_0x437e('0x174')][_0x437e('0x66')]['get'](_0x437e('0x4'))['me'];for(const _0x24e801 of this['getSuggestions']()){if(_0x24e801[_0x437e('0x107')]['id']!=_0x140d80['id'])continue;if(_0x437e('0x143')!=_0x24e801[_0x437e('0xa5')]||_0x24e801[_0x437e('0x59')][_0x437e('0x7d')]!=_0x456738[_0x437e('0x7d')])continue;if(!Pt(_0x24e801,_0x511adc))continue;const _0x18a320=_0x24e801[_0x437e('0x8')]==_0x39a15c;for(let _0x4a6182=0x0;_0x4a6182<_0x10386f['length'];_0x4a6182++){const _0x3527ad=_0x10386f[_0x4a6182];for(const _0x32420a of _0x24e801['getMarkers']()){const _0x17909a=_0x32420a['getRange']();if(_0x3527ad['isEqual'](_0x17909a)){_0x18a320?(_0x10386f[_0x437e('0xb7')](_0x4a6182,0x1),_0x4a6182--):_0x24e801[_0x437e('0x111')](_0x32420a[_0x437e('0x142')]);break;}}}}if(0x0==_0x10386f['length'])return null;const _0x4470cc=this[_0x437e('0xe6')][_0x437e('0x7')](_0x437e('0x143'),_0x39a15c,_0x437e('0x113'));for(const _0x2951af of this[_0x437e('0x169')]())if(_0x2951af['author']['id']==_0x140d80['id']&&_0x437e('0x143')==_0x2951af[_0x437e('0xa5')]&&_0x2951af['data']['formatGroupId']==_0x456738[_0x437e('0x7d')]&&_0x2951af['subType']==_0x39a15c&&Pt(_0x2951af,_0x511adc)&&(_0x4470cc(_0x2951af['getRanges'](),_0x10386f)||_0x4470cc(_0x10386f,_0x2951af['getRanges']()))){for(const _0x572722 of _0x10386f)_0x2951af[_0x437e('0x137')](_0x572722);return _0x2951af;}const _0x39049c=_0xc9a7f0(),_0x34a4be=_0x140d80['id'],_0x1bb53a=_0x437e('0x67')+_0x39a15c,_0x4dc17f=this['_setSuggestionData']({'id':_0x39049c,'type':_0x1bb53a,'data':_0x456738,'createdAt':new Date(),'authorId':_0x34a4be,'attributes':_0x511adc});for(const _0x4b59c1 of _0x10386f)this[_0x437e('0x8a')](_0x1bb53a,_0x39049c,_0x34a4be,_0x4b59c1,_0x59e4d4[_0x437e('0xe8')]());return _0x4dc17f;}[_0x437e('0x20')](_0x4ad431,_0xd6b61e=null,_0x20050d={}){if(_0x4ad431[_0x437e('0x14a')])return null;const _0x1eeef3=this[_0x437e('0x174')]['plugins'][_0x437e('0x179')](_0x437e('0x4'))['me'],_0x554f23=new _0xbc9a1f(_0x4ad431[_0x437e('0x8f')],_0x4ad431[_0x437e('0x15e')]);for(const {suggestion:_0x3f8b01,meta:_0x36289b}of this[_0x437e('0x2a')](_0x554f23,_0x437e('0x122')))if(_0x36289b[_0x437e('0x16')]&&!_0x36289b['isNextTo']){if(_0x3f8b01['isMultiRange']){const _0x654c1d=_0x3f8b01[_0x437e('0x17b')]()[_0x437e('0x147')](_0x4c8c8a=>_0x437e('0xb9')!=_0x4c8c8a['root'][_0x437e('0x100')]);_0x654c1d['every'](_0x31b3ed=>_0x554f23[_0x437e('0xc3')](_0x31b3ed,!0x0))&&_0x3f8b01[_0x437e('0xd')]();if(_0x654c1d['some'](_0x575265=>_0x575265['containsRange'](_0x554f23,!0x0))){const _0xc23a10=this[_0x437e('0xe6')][_0x437e('0x7')](_0x437e('0x104'),_0xd6b61e,'accept');return this[_0x437e('0xf0')](()=>_0xc23a10([_0x554f23],null,_0x20050d)),null;}}else{const _0x8f4c3a=_0x554f23['getIntersection'](_0x3f8b01['getFirstRange']());null!==_0x8f4c3a&&_0x3f8b01[_0x437e('0x3')]([_0x8f4c3a],null,_0x20050d);}}if(_0x554f23[_0x437e('0xde')](),_0x554f23[_0x437e('0x14a')]||_0x437e('0xb9')==_0x554f23[_0x437e('0x75')][_0x437e('0x100')])return null;let _0x2f0aa4=null,_0x12c118=_0x554f23[_0x437e('0x8f')],_0x3f9f8a=_0x554f23[_0x437e('0x15e')];const _0x1359e6=this['_findSuggestions'](_0x554f23,_0x437e('0x104'));for(const {suggestion:_0x49275a,meta:_0x38d1f1}of _0x1359e6){const _0x2e937c=this['_model'][_0x437e('0x88')](_0x12c118,_0x3f9f8a);if(_0x38d1f1[_0x437e('0x16')]&&(this[_0x437e('0x6e')]||!_0x38d1f1[_0x437e('0x4e')]&&!_0x38d1f1[_0x437e('0x145')])){if(_0x49275a[_0x437e('0xc1')]){if(!Pt(_0x49275a,_0x20050d))continue;let _0x585b8b=!0x0;for(const _0x2481b7 of _0x49275a[_0x437e('0x17b')]()){if(_0x2481b7[_0x437e('0xc3')](_0x2e937c,!0x0))return _0x49275a;_0x2e937c[_0x437e('0xc3')](_0x2481b7)||(_0x585b8b=!0x1);}_0x585b8b&&_0x49275a['discard']();}else{const _0x35bdf4=_0x49275a['getFirstRange']();if(_0x35bdf4[_0x437e('0xc3')](_0x2e937c,!0x0))return _0x49275a;if(!Pt(_0x49275a,_0x20050d)){_0x2e937c['containsRange'](_0x35bdf4)?_0x49275a[_0x437e('0x103')]():_0x35bdf4[_0x437e('0x1c')](_0x12c118)?_0x12c118=_0x35bdf4['end']:_0x35bdf4[_0x437e('0x1c')](_0x3f9f8a)&&(_0x3f9f8a=_0x35bdf4[_0x437e('0x8f')]);continue;}_0x12c118=_0x12c118[_0x437e('0xb1')](_0x35bdf4[_0x437e('0x8f')])?_0x12c118:_0x35bdf4[_0x437e('0x8f')],_0x3f9f8a=_0x3f9f8a['isAfter'](_0x35bdf4[_0x437e('0x15e')])?_0x3f9f8a:_0x35bdf4[_0x437e('0x15e')],_0x20050d=Object[_0x437e('0x4c')]({},_0x49275a['attributes']),_0x2f0aa4?_0x35bdf4[_0x437e('0x8f')][_0x437e('0xb1')](_0x2f0aa4['getFirstRange']()['start'])?(_0x2f0aa4[_0x437e('0x103')](),_0x2f0aa4=_0x49275a):_0x49275a['removeMarkers']():_0x2f0aa4=_0x49275a;}}}if(_0x2f0aa4)return this[_0x437e('0xf4')](_0x2f0aa4,this[_0x437e('0x41')][_0x437e('0x88')](_0x12c118,_0x3f9f8a)),_0x2f0aa4;{const _0x324636=_0xc9a7f0(),_0x24f114=this[_0x437e('0x41')][_0x437e('0x88')](_0x12c118,_0x3f9f8a),_0x3dce67=_0x1eeef3['id'],_0x1e466f=_0xd6b61e?_0x437e('0x93')+_0xd6b61e:'deletion',_0x4fc376=this[_0x437e('0x69')]({'id':_0x324636,'type':_0x1e466f,'createdAt':new Date(),'authorId':_0x3dce67,'attributes':_0x20050d});return this[_0x437e('0x8a')](_0x1e466f,_0x324636,_0x3dce67,_0x24f114),_0x4fc376;}}[_0x437e('0x7c')](_0x557222,_0xb04387='multi',_0x590099={}){const _0x1ec605=this[_0x437e('0x174')][_0x437e('0x66')][_0x437e('0x179')]('Users')['me'],_0x18cb7d=_0x557222[_0x437e('0x11e')](_0x18470=>new _0xbc9a1f(_0x18470[_0x437e('0x8f')],_0x18470[_0x437e('0x15e')])),_0x451b80=new Set();for(const {suggestion:_0x277c45,meta:_0xc80888}of this[_0x437e('0x2a')](_0x18cb7d,_0x437e('0x122')))_0xc80888[_0x437e('0x16')]&&!_0xc80888[_0x437e('0xdf')]&&_0x451b80['add'](_0x277c45);for(const _0x1a3fb1 of _0x451b80)if(_0x1a3fb1['isMultiRange']){const _0x5d82e1=_0x1a3fb1[_0x437e('0x17b')]();(!_0x1a3fb1['attributes']||!_0x1a3fb1['attributes'][_0x437e('0x40')])&&(_0x5d82e1['every'](_0x4a2997=>_0x18cb7d['some'](_0x6f9b98=>_0x6f9b98['containsRange'](_0x4a2997,!0x0)))&&_0x1a3fb1[_0x437e('0xd')]());if(_0x18cb7d['every'](_0x559432=>_0x5d82e1[_0x437e('0x72')](_0x17de2c=>_0x17de2c[_0x437e('0xc3')](_0x559432,!0x0)))){const _0x802150=this[_0x437e('0xe6')]['getSuggestionCallback']('deletion',_0xb04387,_0x437e('0xbb'));return this['forceDefaultExecution'](()=>_0x802150(_0x557222,null,_0x590099)),null;}}else{const _0xabd409=_0x1a3fb1[_0x437e('0x6f')]();_0x18cb7d['some'](_0x5cc081=>_0x5cc081['containsRange'](_0xabd409,!0x0))&&_0x1a3fb1[_0x437e('0xd')]();if(_0x18cb7d[_0x437e('0x62')](_0x56d2b1=>_0xabd409[_0x437e('0xc3')](_0x56d2b1,!0x0))){const _0x1259da=this[_0x437e('0xe6')]['getSuggestionCallback']('deletion',_0xb04387,_0x437e('0xbb'));return this[_0x437e('0xf0')](()=>_0x1259da(_0x18cb7d,null,_0x590099)),null;}}const _0x1fb9d3=this[_0x437e('0xe6')][_0x437e('0x7')](_0x437e('0x104'),_0xb04387,_0x437e('0x113'));let _0x2068f4=null;for(const _0x1868fb of this[_0x437e('0x169')]())if(_0x1868fb[_0x437e('0x107')]['id']==_0x1ec605['id']&&_0x1868fb[_0x437e('0x165')]&&_0x437e('0x104')==_0x1868fb[_0x437e('0xa5')]&&_0x1868fb[_0x437e('0x8')]==_0xb04387&&Pt(_0x1868fb,_0x590099)&&(_0x1fb9d3(_0x1868fb[_0x437e('0x17b')](),_0x18cb7d)||_0x1fb9d3(_0x18cb7d,_0x1868fb[_0x437e('0x17b')]()))){if(_0x2068f4){if(_0x1868fb[_0x437e('0x53')]&&_0x1868fb['commentThread'][_0x437e('0xd9')])continue;for(const _0x241bf2 of _0x1868fb[_0x437e('0x17b')]())_0x2068f4[_0x437e('0x36')](_0x241bf2)||_0x2068f4[_0x437e('0x137')](_0x241bf2);_0x1868fb[_0x437e('0x103')]();}else{_0x2068f4=_0x1868fb;for(const _0x2f8b55 of _0x18cb7d)_0x1868fb[_0x437e('0x36')](_0x2f8b55)||_0x1868fb['addRange'](_0x2f8b55);}}if(_0x2068f4)return _0x2068f4;_0x451b80[_0x437e('0x163')]();for(const {suggestion:_0x252886,meta:_0x30e70b}of this[_0x437e('0x2a')](_0x18cb7d,_0x437e('0x104')))_0x30e70b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x30e70b[_0x437e('0x4e')]&&!_0x30e70b['isInsideObject'])&&Pt(_0x252886,_0x590099)&&_0x451b80[_0x437e('0x133')](_0x252886);for(const _0x564be8 of _0x451b80){const _0x376c06=_0x564be8['getRanges']();if(!_0x590099||!_0x590099[_0x437e('0x40')]){if(_0x18cb7d[_0x437e('0x62')](_0x415e7c=>_0x376c06['some'](_0x5d40b1=>_0x5d40b1['containsRange'](_0x415e7c,!0x0))))return _0x564be8;}(!_0x564be8['attributes']||!_0x564be8[_0x437e('0x134')][_0x437e('0x40')])&&(_0x376c06[_0x437e('0x62')](_0x520044=>_0x18cb7d[_0x437e('0x72')](_0x44dea5=>_0x44dea5[_0x437e('0xc3')](_0x520044,!0x0)))&&_0x564be8['discard']());}const _0x51ed22=_0xc9a7f0(),_0x2d8737=_0x1ec605['id'],_0x39fe6b='deletion:'+_0xb04387,_0x110e22=this[_0x437e('0x69')]({'id':_0x51ed22,'type':_0x39fe6b,'createdAt':new Date(),'authorId':_0x2d8737,'attributes':_0x590099});for(const _0x4c3f90 of _0x18cb7d)_0x4c3f90[_0x437e('0xde')](),_0x4c3f90[_0x437e('0x14a')]||_0x437e('0xb9')==_0x4c3f90[_0x437e('0x75')][_0x437e('0x100')]||this['_addSuggestionMarker'](_0x39fe6b,_0x51ed22,_0x2d8737,_0x4c3f90,_0x59e4d4['getMultiRangeId']());return _0x110e22;}[_0x437e('0x177')](_0x517db8,_0x46f6cb,_0x198f2f,_0xb20bb1,_0xe0e9b1){if(_0x517db8[_0x437e('0x14a')])return[];if(_0x437e('0x156')===this[_0x437e('0x1f')])return[];const _0xe1d9d0=this[_0x437e('0x174')][_0x437e('0x66')][_0x437e('0x179')](_0x437e('0x4'))['me']['id'],_0x19384d=Array[_0x437e('0x2d')](this['_suggestions'][_0x437e('0x94')]())[_0x437e('0x147')](_0x5daafe=>_0x437e('0x154')==_0x5daafe['type']&&_0x5daafe[_0x437e('0x59')][_0x437e('0x77')]==_0x46f6cb&&_0x5daafe['isIntersectingWithRange'](_0x517db8));if(_0x437e('0x1e')===this[_0x437e('0x1f')]){const _0x4d4ff5=this[_0x437e('0x2a')](_0x517db8,_0x437e('0x122'))[_0x437e('0x147')](({meta:_0x190064})=>_0x190064['isOwn']&&!_0x190064['isInsideObject']&&!_0x190064[_0x437e('0xdf')])['map'](({suggestion:_0x350feb})=>_0x350feb);_0x19384d[_0x437e('0x2f')](..._0x4d4ff5);}const _0x40372a=new Map([[_0x517db8,_0x198f2f]]);for(const _0x11114d of _0x19384d){const _0x4aa545='attribute'==_0x11114d['type']?_0x11114d[_0x437e('0x59')][_0x437e('0x128')]:void 0x0,_0xab9b18=_0x11114d[_0x437e('0x6f')](),_0x3c4ee2=Array[_0x437e('0x2d')](_0x40372a[_0x437e('0x108')]())[_0x437e('0x116')](_0x48a19c=>_0x48a19c[_0x437e('0x12a')](_0xab9b18));if(!_0x3c4ee2)continue;const _0x517f1d=_0x3c4ee2[_0x437e('0x4f')](_0xab9b18);this['_isBlockAttribute'](_0x46f6cb)&&_0x437e('0x122')==_0x11114d['type']&&0x0!=_0x517f1d['length']||(_0x40372a[_0x437e('0xc5')](_0x3c4ee2),_0x517f1d[_0x437e('0x27')](_0x41d8b7=>{_0x40372a[_0x437e('0x39')](_0x41d8b7,_0x198f2f);}),_0x437e('0x122')!=_0x11114d[_0x437e('0xa5')]&&_0x4aa545!=_0xb20bb1&&_0x40372a[_0x437e('0x39')](_0x3c4ee2['getIntersection'](_0xab9b18),_0x4aa545));}const _0x43e66b=[];for(const [_0x426da1,_0x3c94b8]of _0x40372a){const _0x1cf078=_0xc9a7f0(),_0x4f99f0={'key':_0x46f6cb,'oldValue':_0x3c94b8,'newValue':_0xb20bb1};_0x46f6cb[_0x437e('0xd9')]>0x25&&console[_0x437e('0x23')]('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0x46f6cb});const _0x5b3cff=(_0x437e('0x14')+(_0x46f6cb+'|'+Et({'newValue':_0xb20bb1})))['substring'](0x0,0x3c),_0x52807e=this['_setSuggestionData']({'id':_0x1cf078,'type':_0x5b3cff,'data':_0x4f99f0,'createdAt':new Date(),'authorId':_0xe1d9d0,'attributes':_0xe0e9b1});_0x43e66b[_0x437e('0x95')](_0x52807e),this['_addSuggestionMarker'](_0x5b3cff,_0x1cf078,_0xe1d9d0,_0x426da1);}return _0x43e66b;}[_0x437e('0x106')](_0x34a906){this['_blockAttributeKeys'][_0x437e('0x133')](_0x34a906);}[_0x437e('0xd8')](_0x505834){this[_0x437e('0x105')][_0x437e('0x133')](_0x505834);}[_0x437e('0x11a')](_0x18b0d7,_0x226861=[],_0x48ef0f=[]){this[_0x437e('0x3b')](_0x18b0d7,(_0x58299d,..._0x45196b)=>{this[_0x437e('0x5e')](()=>{_0x58299d(..._0x45196b);});});for(const _0x1a1a9b of _0x226861)this[_0x437e('0xd8')](_0x1a1a9b);for(const _0x2b2277 of _0x48ef0f)this[_0x437e('0x106')](_0x2b2277);}[_0x437e('0xd2')](_0x47c453){return'attribute'==_0x47c453[_0x437e('0xa5')]?_0x47c453[_0x437e('0x8')][_0x437e('0xbe')]('|')[0x0]:null;}['_setSuggestionRange'](_0x4a2c03,_0x1806b2){const _0x523e52=_0x4a2c03['getFirstMarker']();this[_0x437e('0x41')]['change'](_0x507eb3=>{_0x507eb3[_0x437e('0x28')](_0x523e52,{'range':_0x1806b2});});}['_addThreadToSuggestion'](_0x2039da){const _0x3ce5ba=_0x2039da['id'],_0x1d4990=this[_0x437e('0x174')][_0x437e('0xba')][_0x437e('0x179')](_0x437e('0x60'));this[_0x437e('0xec')]['hasCommentThread'](_0x3ce5ba)||this['_commentsRepository'][_0x437e('0x9d')]({'channelId':_0x1d4990,'threadId':_0x3ce5ba,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x18d692=this['_commentsRepository'][_0x437e('0x47')](_0x3ce5ba);_0x18d692[_0x437e('0x140')](_0x437e('0x19')),_0x18d692[_0x437e('0x19')]=!0x1,_0x2039da[_0x437e('0x53')]=_0x18d692;}[_0x437e('0x17a')](_0x505335,_0x46e0d9,_0x2f8d9a,_0x594591){if(_0x505335[_0x437e('0xa5')]!=_0x46e0d9||_0x505335[_0x437e('0x8')]!=_0x2f8d9a||_0x505335['creator']['id']!=_0x594591)throw this[_0x437e('0x174')][_0x437e('0x35')](_0x437e('0x14f')),new _0x38209e(_0x437e('0x14f'),this);}[_0x437e('0x83')](_0x499f81,_0x378b26){const _0x45c3d9=_0x499f81[_0x437e('0x6f')]();if(_0x378b26[_0x437e('0x11f')](_0x45c3d9))_0x499f81[_0x437e('0x103')]();else{if(_0x45c3d9['containsRange'](_0x378b26)){const _0x4aed60=this[_0x437e('0x41')]['createPositionAt'](_0x378b26[_0x437e('0x8f')][_0x437e('0x5f')],'end');this['_setSuggestionRange'](_0x499f81,this['_model'][_0x437e('0x88')](_0x45c3d9['start'],_0x4aed60));const _0x27a778=_0xc9a7f0(),_0x47411a=_0x499f81['creator']['id'],_0x388305=_0x499f81[_0x437e('0xa5')]+':'+_0x499f81[_0x437e('0x8')];this[_0x437e('0x69')]({'id':_0x27a778,'type':_0x388305,'createdAt':new Date(),'authorId':_0x47411a,'data':_0x499f81[_0x437e('0x59')],'attributes':_0x499f81[_0x437e('0x134')]});const _0x4a4087=this[_0x437e('0x41')][_0x437e('0x16a')](_0x378b26[_0x437e('0x15e')]['parent'],_0x437e('0xa2')),_0x2eb337=this[_0x437e('0x41')][_0x437e('0x88')](_0x4a4087,_0x45c3d9[_0x437e('0x15e')]);this[_0x437e('0x8a')](_0x388305,_0x27a778,_0x47411a,_0x2eb337);}else{if(_0x45c3d9[_0x437e('0x1c')](_0x378b26[_0x437e('0x8f')])){const _0x8d3a59=this[_0x437e('0x41')]['createPositionAt'](_0x378b26['start'][_0x437e('0x5f')],'end');this[_0x437e('0xf4')](_0x499f81,this[_0x437e('0x41')][_0x437e('0x88')](_0x45c3d9[_0x437e('0x8f')],_0x8d3a59));}else{const _0x22af64=this[_0x437e('0x41')][_0x437e('0x16a')](_0x378b26[_0x437e('0x15e')]['parent'],'after');this['_setSuggestionRange'](_0x499f81,this[_0x437e('0x41')][_0x437e('0x88')](_0x22af64,_0x45c3d9[_0x437e('0x15e')]));}}}}['_rangeIsInLocalUserInsertion'](_0x81eae1){for(const {suggestion:_0x37fe61,meta:_0x1146fd}of this['_findSuggestions'](_0x81eae1,'insertion')){if(!_0x1146fd['isOwn'])continue;const _0x229c1d=_0x37fe61['getRanges']();for(const _0x43e984 of _0x229c1d)if(!_0x81eae1['getDifference'](_0x43e984)[_0x437e('0xd9')])return!0x0;}return!0x1;}[_0x437e('0xeb')](_0x1426a0){const _0x36591f=this['editor']['plugins']['get'](_0x437e('0x4'))[_0x437e('0x155')](_0x1426a0);if(!_0x36591f)throw new _0x38209e(_0x437e('0x119'),this);return _0x36591f;}[_0x437e('0xe2')](_0x1177b7){const _0x2cd272=this[_0x437e('0x174')]['plugins'][_0x437e('0x179')]('Users'),_0x19f57e=_0x3f34c0('external:'+_0x1177b7),_0xa2730a=_0x2cd272['getUser'](_0x19f57e);return _0xa2730a||_0x2cd272[_0x437e('0x15a')]({'id':_0x19f57e,'name':_0x1177b7});}['_createSuggestion'](_0x5745f7,_0x1da427,_0x44f4d9,_0x39c2b5,_0x40b33c){const _0x3abcb8=this['_getAuthorFromId'](_0x39c2b5),_0xe66bcb=this[_0x437e('0xe6')][_0x437e('0x16c')](_0x5745f7,_0x1da427,_0x44f4d9,_0x3abcb8,_0x40b33c,_0x1e75ef=>{this[_0x437e('0x24')](_0x44f4d9,{'attributes':_0x1e75ef});const _0x386266=this['getSuggestion'](_0x44f4d9);this[_0x437e('0xd7')](new Set([_0x386266])),this[_0x437e('0xf7')](new Set([_0x386266]));});return this['listenTo'](_0xe66bcb,'accept',()=>{this[_0x437e('0x24')](_0x44f4d9,{'state':_0x437e('0x1')});},{'priority':'high'}),this[_0x437e('0xef')](_0xe66bcb,'discard',()=>{this[_0x437e('0x24')](_0x44f4d9,{'state':_0x437e('0x74')});},{'priority':_0x437e('0x10d')}),this[_0x437e('0x61')][_0x437e('0x39')](_0x44f4d9,_0xe66bcb),this[_0x437e('0x16b')][_0x437e('0x39')](_0xe66bcb,_0x437e('0xac')),_0xe66bcb;}[_0x437e('0x64')](_0xc6e9a9){const _0x285e0b=_0xc6e9a9[_0x437e('0xbe')](':');return{'group':_0x285e0b[0x0],'type':_0x285e0b[0x1],'subType':_0x285e0b[_0x437e('0xd9')]>=0x5?_0x285e0b[0x2]:null,'id':_0x285e0b[_0x437e('0xd9')]<0x5?_0x285e0b[0x2]:_0x285e0b[0x3],'authorId':_0x285e0b[_0x437e('0xd9')]<0x5?_0x285e0b[0x3]:_0x285e0b[0x4],'markerCount':0x6==_0x285e0b[_0x437e('0xd9')]?_0x285e0b[0x5]:null};}['_breakSuggestionMarker'](_0x2caf1c,_0x5e3726,_0x65793b){const _0x26ff94=_0x2caf1c[_0x437e('0x6f')](),_0x53613f=_0x26ff94[_0x437e('0x8f')],_0x19956d=_0x26ff94[_0x437e('0x15e')];this[_0x437e('0xf4')](_0x2caf1c,this[_0x437e('0x41')][_0x437e('0x88')](_0x53613f,_0x5e3726));const _0x4cedab=_0xc9a7f0(),_0x13659b=_0x2caf1c[_0x437e('0x2')]['id'],_0xa82e74=_0x2caf1c[_0x437e('0xa5')]+(_0x2caf1c[_0x437e('0x8')]?':'+_0x2caf1c[_0x437e('0x8')]:'');this[_0x437e('0x69')]({'id':_0x4cedab,'type':_0xa82e74,'createdAt':new Date(),'authorId':_0x13659b,'originalSuggestionId':_0x2caf1c['id'],'attributes':_0x2caf1c[_0x437e('0x134')],'data':_0x2caf1c[_0x437e('0x59')]});const _0x192a07=this['_getAttributeKey'](_0x2caf1c);('formatBlock'==_0x2caf1c[_0x437e('0xa5')]||_0x192a07&&this['_isBlockAttribute'](_0x192a07))&&(_0x65793b=this[_0x437e('0x41')][_0x437e('0x9f')](_0x65793b[_0x437e('0xfc')])),this['_addSuggestionMarker'](_0xa82e74,_0x4cedab,_0x13659b,this[_0x437e('0x41')][_0x437e('0x88')](_0x65793b,_0x19956d));}[_0x437e('0x2a')](_0x19652d,_0x2b489d=null){const _0x531189=[],_0x15e6d1=this[_0x437e('0x174')]['plugins'][_0x437e('0x179')](_0x437e('0x4'))['me'];Array[_0x437e('0xcc')](_0x19652d)||(_0x19652d=[_0x19652d]);for(const _0x3225e1 of this[_0x437e('0x169')]()){if(!_0x3225e1[_0x437e('0x165')])continue;if(_0x2b489d&&_0x3225e1[_0x437e('0xa5')]!=_0x2b489d)continue;let _0x131933=!0x1;for(const _0x5d7cde of _0x3225e1[_0x437e('0x17b')]()){for(const _0x281b14 of _0x19652d){const _0x1a28da=_0x281b14[_0x437e('0x8f')][_0x437e('0x11f')](_0x5d7cde[_0x437e('0x15e')])||_0x281b14['end'][_0x437e('0x11f')](_0x5d7cde[_0x437e('0x8f')]);if(_0x1a28da||_0x281b14[_0x437e('0x5')](_0x5d7cde)){const _0xb6f1a=_0x281b14[_0x437e('0xc3')](_0x5d7cde)&&xt(this[_0x437e('0x41')]['schema'],_0x5d7cde['start'],_0x281b14),_0x1b009f=_0x5d7cde['containsRange'](_0x281b14)&&xt(this[_0x437e('0x41')][_0x437e('0x13a')],_0x281b14[_0x437e('0x8f')],_0x5d7cde);_0x531189[_0x437e('0x95')]({'suggestion':_0x3225e1,'meta':{'isOwn':_0x15e6d1==_0x3225e1[_0x437e('0x107')],'isNextTo':_0x1a28da,'isInsideObject':_0xb6f1a,'containsRangeInObject':_0x1b009f}}),_0x131933=!0x0;break;}}if(_0x131933)break;}}return _0x531189;}[_0x437e('0x8a')](_0x170e02,_0x1b4833,_0x2c1f95,_0x96593,_0x3c9702){this[_0x437e('0x41')][_0x437e('0x85')](_0x3c1c65=>{let _0x1d115a=_0x437e('0xe')+_0x170e02+':'+_0x1b4833+':'+_0x2c1f95;_0x3c9702&&(_0x1d115a=_0x1d115a+':'+_0x3c9702),_0x3c1c65[_0x437e('0x139')](_0x1d115a,{'range':_0x96593,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x437e('0x158')](_0x37a996){const _0x5f06cf=_0x37a996[_0x437e('0x149')],_0xaade77=_0x37a996[_0x437e('0x7a')];_0x37a996['previous']=null,_0x37a996[_0x437e('0x7a')]=null,null!=_0x5f06cf&&_0x5f06cf[_0x437e('0x7a')]==_0x37a996&&(_0x5f06cf[_0x437e('0x7a')]=_0xaade77),null!=_0xaade77&&_0xaade77[_0x437e('0x149')]==_0x37a996&&(_0xaade77['previous']=_0x5f06cf),'ready'==this[_0x437e('0x16b')]['get'](_0x37a996)&&(this[_0x437e('0x16b')]['set'](_0x37a996,_0x437e('0x6c')),this[_0x437e('0xb0')](_0x437e('0x73'),_0x37a996,_0x5f06cf,_0xaade77));}[_0x437e('0x69')](_0xed85d8){const _0x30a4bd=_0xed85d8['id'],_0x5d1de7=this[_0x437e('0xa6')](_0xed85d8);if(this['_adapter']&&this[_0x437e('0x9e')][_0x437e('0xc0')]){const _0x745342=this[_0x437e('0x174')][_0x437e('0x66')][_0x437e('0x179')]('PendingActions'),_0x5acf56=_0x5d1de7[_0x437e('0x16e')],_0x51d94e=_0x5d1de7['subType']?_0x5d1de7[_0x437e('0xa5')]+':'+_0x5d1de7['subType']:_0x5d1de7[_0x437e('0xa5')],_0x148657=this[_0x437e('0x174')][_0x437e('0x86')],_0x1157c9=_0x745342['add'](_0xf738b8(_0x148657,_0x437e('0x10'))),_0x178356={'id':_0x30a4bd,'type':_0x51d94e,'hasComments':_0x5acf56,'data':_0xed85d8['data']||null,'originalSuggestionId':_0xed85d8[_0x437e('0x65')]||null,'attributes':_0x5d1de7[_0x437e('0x134')]};this[_0x437e('0x9e')][_0x437e('0xc0')](_0x178356)[_0x437e('0x2e')](_0x191233=>{_0x5d1de7['_saved']=!0x0,_0x745342[_0x437e('0x52')](_0x1157c9),_0x191233&&_0x191233['createdAt']&&(this[_0x437e('0x61')][_0x437e('0x179')](_0x30a4bd)['createdAt']=_0x191233['createdAt']);})['catch'](_0x5d117a=>{throw _0x252bce(_0x437e('0x0')),this[_0x437e('0x174')][_0x437e('0xbc')][_0x437e('0x160')]({'isUndoable':!0x1},()=>{_0x5d1de7['discard']();}),_0x5d1de7[_0x437e('0xe7')](),this['_suggestions'][_0x437e('0xc5')](_0x5d1de7['id']),this[_0x437e('0x16b')]['delete'](_0x5d1de7),_0x5d117a;});}return _0x5d1de7;}[_0x437e('0xc2')](_0x5864cb){return this[_0x437e('0x12e')][_0x437e('0xd0')](_0x5864cb);}[_0x437e('0x24')](_0x240e61,_0x27ace7){const _0x57b9ec=this[_0x437e('0x174')][_0x437e('0x66')][_0x437e('0x179')](_0x437e('0x129')),_0x5aa07a=this['getSuggestion'](_0x240e61);if(this[_0x437e('0x9e')]&&this[_0x437e('0x9e')][_0x437e('0x164')]){if(_0x5aa07a['_saved']){const _0x52117d=_0x57b9ec[_0x437e('0x133')](_0xf738b8(this[_0x437e('0x174')][_0x437e('0x86')],'PENDING_ACTION_SUGGESTION'));this[_0x437e('0x9e')]['updateSuggestion'](_0x240e61,_0x27ace7)[_0x437e('0x2e')](()=>{_0x57b9ec['remove'](_0x52117d);});}else _0x5aa07a['on']('change:_saved',()=>{this[_0x437e('0x24')](_0x240e61,_0x27ace7);});}}['_getSuggestionData'](_0xa16cbe){if(!this[_0x437e('0x9e')]||!this[_0x437e('0x9e')][_0x437e('0x43')])throw new _0x38209e(_0x437e('0xc7'),this);return this[_0x437e('0x9e')][_0x437e('0x43')](_0xa16cbe);}[_0x437e('0x12c')](_0x580f05){const {id:_0x18b234,type:_0x468e0b,subType:_0x8c7fa3,authorId:_0x5a8390}=this[_0x437e('0x64')](_0x580f05),_0x52870b=this[_0x437e('0x61')][_0x437e('0x179')](_0x18b234)||this['_createSuggestion'](_0x468e0b,_0x8c7fa3,_0x18b234,_0x5a8390,{});switch(this[_0x437e('0x17a')](_0x52870b,_0x468e0b,_0x8c7fa3,_0x5a8390),this['_suggestionState'][_0x437e('0x179')](_0x52870b)){case _0x437e('0xac'):this[_0x437e('0xcb')](_0x18b234)['then'](_0x546434=>{let _0x3b1177=Promise[_0x437e('0x110')]();_0x546434[_0x437e('0x16e')]&&(_0x3b1177=this[_0x437e('0xec')]['fetchCommentThread']({'channelId':this['editor'][_0x437e('0xba')][_0x437e('0x179')](_0x437e('0x60')),'threadId':_0x18b234})),_0x3b1177[_0x437e('0x2e')](()=>{this[_0x437e('0xa6')](_0x546434)['_saved']=!0x0;});}),this['_suggestionState'][_0x437e('0x39')](_0x52870b,_0x437e('0x3d'));break;case _0x437e('0x6c'):this[_0x437e('0x24')](_0x18b234,{'state':_0x437e('0xa4')});case'dataReady':this['_suggestionState']['set'](_0x52870b,'ready'),this['fire']('suggestionLoaded',_0x52870b);break;case _0x437e('0x10a'):this[_0x437e('0xb0')](_0x437e('0x45'),_0x52870b);}return _0x52870b[_0x437e('0x120')](_0x580f05),_0x52870b;}[_0x437e('0xf7')](_0x3c6eb8){const _0x129a4a=Array['from'](_0x3c6eb8),_0x10e300=_0x129a4a[_0x437e('0x147')](_0x2345cc=>_0x437e('0x154')==_0x2345cc['type']);this[_0x437e('0x123')](_0x10e300);const _0x20b739=_0x129a4a[_0x437e('0x147')](_0x4d86d7=>!_0x4d86d7[_0x437e('0xc1')]&&_0x437e('0x154')!=_0x4d86d7[_0x437e('0xa5')]),_0x5009e8=this[_0x437e('0x169')]({'skipNotAttached':!0x0})[_0x437e('0x147')](_0x5b7f51=>!_0x5b7f51[_0x437e('0xc1')]&&_0x437e('0x154')!=_0x5b7f51['type']),_0x4db916=_0x5009e8['filter'](_0x5265b3=>!_0x3c6eb8['has'](_0x5265b3)),_0x1036fc=new Map(_0x5009e8[_0x437e('0x11e')](_0x231530=>[_0x231530,this['_suggestionFactory'][_0x437e('0x7')](_0x231530['type'],_0x231530['subType'],_0x437e('0x127'))])),_0x660294=new Map(_0x5009e8['map'](_0x4abdf2=>[_0x4abdf2,_0x4abdf2['getFirstRange']()])),_0x10d4b9=new Set(),_0x632c6=new Set();for(let _0x2b3dfa=0x0;_0x2b3dfa<_0x20b739[_0x437e('0xd9')];_0x2b3dfa++)_0x235c3a(_0x20b739[_0x2b3dfa],_0x20b739,_0x2b3dfa+0x1);for(let _0x4fe96e=0x0;_0x4fe96e<_0x20b739[_0x437e('0xd9')];_0x4fe96e++)_0x235c3a(_0x20b739[_0x4fe96e],_0x4db916,0x0);const _0x16d735=new Set();for(let _0xe9570d=0x0;_0xe9570d<_0x20b739[_0x437e('0xd9')];_0xe9570d++){const _0xfc7e59=_0x20b739[_0xe9570d];!_0x632c6[_0x437e('0xd0')](_0xfc7e59)&&_0xfc7e59[_0x437e('0x149')]&&(_0x16d735['add'](_0xfc7e59[_0x437e('0x149')]),_0xfc7e59[_0x437e('0x149')][_0x437e('0x7a')]===_0xfc7e59&&(_0xfc7e59[_0x437e('0x149')][_0x437e('0x7a')]=null),_0xfc7e59['previous']=null),!_0x10d4b9[_0x437e('0xd0')](_0xfc7e59)&&_0xfc7e59[_0x437e('0x7a')]&&(_0x16d735[_0x437e('0x133')](_0xfc7e59[_0x437e('0x7a')]),_0xfc7e59['next']['previous']===_0xfc7e59&&(_0xfc7e59[_0x437e('0x7a')][_0x437e('0x149')]=null),_0xfc7e59[_0x437e('0x7a')]=null);}function _0x235c3a(_0x33b273,_0x2b09f5,_0x4a8cd7){for(let _0x5efab3=_0x4a8cd7;_0x5efab3<_0x2b09f5[_0x437e('0xd9')];_0x5efab3++){const _0x2d4dad=_0x552e97(_0x33b273,_0x2b09f5[_0x5efab3]);_0x2d4dad&&(_0x2d4dad[0x0][_0x437e('0x7a')]=_0x2d4dad[0x1],_0x2d4dad[0x1]['previous']=_0x2d4dad[0x0],_0x10d4b9[_0x437e('0x133')](_0x2d4dad[0x0]),_0x632c6[_0x437e('0x133')](_0x2d4dad[0x1]));}}function _0x552e97(_0x4249f6,_0x3b819a){if(_0x4249f6['author']['id']!==_0x3b819a[_0x437e('0x107')]['id'])return null;const _0x42a4ef=_0x1036fc['get'](_0x4249f6)(_0x4249f6,_0x3b819a,_0x660294[_0x437e('0x179')](_0x4249f6),_0x660294[_0x437e('0x179')](_0x3b819a));if(!_0x42a4ef)return null;return _0x1036fc[_0x437e('0x179')](_0x3b819a)(_0x4249f6,_0x3b819a,_0x660294[_0x437e('0x179')](_0x4249f6),_0x660294[_0x437e('0x179')](_0x3b819a))?_0x42a4ef[0x1][_0x437e('0x53')]&&_0x42a4ef[0x1][_0x437e('0x53')]['length']?null:_0x42a4ef:null;}_0x16d735['size']&&this['_refreshSuggestionsChain'](_0x16d735);}[_0x437e('0x123')](_0x55c84d){if(0x0==_0x55c84d[_0x437e('0xd9')])return;const _0x347606=this['getSuggestions']({'skipNotAttached':!0x0})[_0x437e('0x147')](_0x2485c1=>_0x437e('0x154')==_0x2485c1[_0x437e('0xa5')]&&_0x2485c1[_0x437e('0x3f')]),_0x181957=[],_0x328a70=new Map();for(const _0x2bf942 of _0x347606){const _0x464a44=_0x3f34c0(_0x2bf942[_0x437e('0x134')]);_0x328a70[_0x437e('0xd0')](_0x464a44)||(_0x328a70['set'](_0x464a44,_0x181957['length']),_0x181957[_0x437e('0x95')]([]));const _0x188edb=_0x328a70[_0x437e('0x179')](_0x464a44);_0x181957[_0x188edb][_0x437e('0x95')](_0x2bf942);}!function(){_0x181957['sort']((_0x3f05b7,_0x2b8d13)=>{const _0x40ff43=_0x3f05b7[0x0][_0x437e('0xc4')],_0x554b8e=_0x2b8d13[0x0][_0x437e('0xc4')];return _0x40ff43==_0x554b8e?_0x3f05b7[0x0][_0x437e('0x134')]['groupId']<_0x2b8d13[0x0][_0x437e('0x134')][_0x437e('0x3c')]?-0x1:0x1:_0x40ff43<_0x554b8e?-0x1:0x1;});for(const _0x126aa1 of _0x181957)_0x126aa1['sort']((_0x4fa9f7,_0x304b2b)=>_0x4fa9f7['id']<_0x304b2b['id']?-0x1:0x1);}();for(let _0x35dc9f=0x0;_0x35dc9f<_0x181957[_0x437e('0xd9')];_0x35dc9f++){if(0x0==_0x181957[_0x35dc9f][_0x437e('0xd9')])continue;const _0xb184d8=[];for(let _0x361e0c=_0x35dc9f+0x1;_0x361e0c<_0x181957[_0x437e('0xd9')];_0x361e0c++)0x0!=_0x181957[_0x361e0c][_0x437e('0xd9')]&&_0x376b9a(_0x181957[_0x35dc9f],_0x181957[_0x361e0c])&&_0xb184d8['push'](_0x361e0c);for(const _0x4fefbc of _0xb184d8)_0x181957[_0x35dc9f]=_0x181957[_0x35dc9f][_0x437e('0x8d')](_0x181957[_0x4fefbc]),_0x181957[_0x4fefbc]=[];}for(const _0x157dba of _0x181957)for(let _0x58e5b8=0x0;_0x58e5b8<_0x157dba['length'];_0x58e5b8++)_0x157dba[_0x58e5b8][_0x437e('0x7a')]=_0x157dba[_0x58e5b8+0x1]||null;for(const _0x10d20d of _0x181957)for(let _0x2bf429=0x0;_0x2bf429<_0x10d20d[_0x437e('0xd9')];_0x2bf429++)_0x10d20d[_0x2bf429][_0x437e('0x149')]=_0x10d20d[_0x2bf429-0x1]||null;function _0x376b9a(_0x2b0ee4,_0x26dc73){if(_0x2b0ee4[0x0][_0x437e('0x134')][_0x437e('0x3c')]!==_0x26dc73[0x0][_0x437e('0x134')][_0x437e('0x3c')]&&_0x2b0ee4[0x0][_0x437e('0x107')]!==_0x26dc73[0x0][_0x437e('0x107')])return!0x1;if(!function(_0x222b15,_0x556332){if(!_0x222b15[_0x437e('0x16e')]&&!_0x556332['hasComments'])return!0x0;if(_0x222b15['hasComments']&&_0x556332[_0x437e('0x16e')])return!0x1;if(_0x222b15[_0x437e('0x16e')]&&_0x556332[_0x437e('0xc4')]<_0x222b15[_0x437e('0x53')][_0x437e('0x44')]['get'](0x0)['createdAt'])return!0x0;if(_0x556332[_0x437e('0x16e')]&&_0x222b15['createdAt']<_0x556332[_0x437e('0x53')][_0x437e('0x44')][_0x437e('0x179')](0x0)[_0x437e('0xc4')])return!0x0;return!0x1;}(_0x2b0ee4[0x0],_0x26dc73[0x0]))return!0x1;const _0x1a0551=_0x3bc0f9(_0x2b0ee4[0x0]['attributes'],_0x437e('0x3c')),_0x74f6a6=_0x3bc0f9(_0x26dc73[0x0][_0x437e('0x134')],_0x437e('0x3c'));if(!_0x138eda(_0x1a0551,_0x74f6a6))return!0x1;return!!_0x2b0ee4['every'](_0x1b4bec=>_0x26dc73['some'](_0x55d9c9=>_0x1b4bec[_0x437e('0x6f')]()['isEqual'](_0x55d9c9['getFirstRange']())))&&_0x26dc73[_0x437e('0x62')](_0x28849e=>_0x2b0ee4[_0x437e('0x72')](_0x31e73d=>_0x28849e[_0x437e('0x6f')]()[_0x437e('0x11f')](_0x31e73d[_0x437e('0x6f')]())));}}['_joinWithAdjacentSuggestions'](_0x31a4f1){const _0x5edc57=Array['from'](_0x31a4f1),_0x222e32=this[_0x437e('0x169')]({'skipNotAttached':!0x0}),_0x1412d4=_0x222e32[_0x437e('0x147')](_0xac9a8b=>!_0x31a4f1['has'](_0xac9a8b)),_0x5c6c05=new Map(_0x5edc57['map'](_0x39fe5b=>[_0x39fe5b,this[_0x437e('0xe6')][_0x437e('0x7')](_0x39fe5b[_0x437e('0xa5')],_0x39fe5b[_0x437e('0x8')],_0x437e('0x113'))])),_0x132b4a=new Map(_0x222e32[_0x437e('0x11e')](_0x452dcc=>[_0x452dcc,_0x452dcc[_0x437e('0x17b')]()]));for(let _0x521cf8=0x0;_0x521cf8<_0x5edc57[_0x437e('0xd9')];_0x521cf8++){if(_0x5bd260(this,_0x5edc57[_0x521cf8],_0x5edc57,_0x521cf8+0x1))return!0x0;}for(let _0x1c971b=0x0;_0x1c971b<_0x5edc57['length'];_0x1c971b++){if(_0x5bd260(this,_0x5edc57[_0x1c971b],_0x1412d4,0x0))return!0x0;}return!0x1;function _0x5bd260(_0x25ee08,_0x1c4bd8,_0x533f49,_0x4de184){for(let _0x370d15=_0x4de184;_0x370d15<_0x533f49[_0x437e('0xd9')];_0x370d15++){const _0x750a9a=_0x533f49[_0x370d15];if(_0x750a9a[_0x437e('0xa5')]!==_0x1c4bd8['type']||_0x750a9a['author']['id']!==_0x1c4bd8[_0x437e('0x107')]['id']||_0x750a9a[_0x437e('0x8')]!==_0x1c4bd8[_0x437e('0x8')])continue;if(!Ft(_0x1c4bd8,_0x750a9a,['groupId']))continue;if(_0x437e('0x154')==_0x1c4bd8[_0x437e('0xa5')]&&_0x1c4bd8[_0x437e('0x59')][_0x437e('0x128')]!=_0x750a9a[_0x437e('0x59')]['oldValue'])continue;if(_0x437e('0x154')==_0x1c4bd8[_0x437e('0xa5')]&&_0x25ee08[_0x437e('0xc2')](_0x1c4bd8['data']['key']))continue;if(_0x437e('0x143')==_0x1c4bd8['type']){const _0x135187=_0x25ee08[_0x437e('0x174')][_0x437e('0xbc')],_0x54418a=_0x1c4bd8['getContainedElement']();if(_0x54418a&&(_0x135187[_0x437e('0x13a')][_0x437e('0x15d')](_0x54418a)||_0x135187[_0x437e('0x13a')]['isLimit'](_0x54418a)))continue;}const _0x6bef18=_0x5c6c05[_0x437e('0x179')](_0x1c4bd8),_0x1f6979=_0x132b4a[_0x437e('0x179')](_0x1c4bd8),_0x71c517=_0x132b4a[_0x437e('0x179')](_0x750a9a),_0x4564b8=_0x1c4bd8[_0x437e('0x53')]&&_0x1c4bd8['commentThread'][_0x437e('0xd9')],_0x2fce41=_0x750a9a[_0x437e('0x53')]&&_0x750a9a[_0x437e('0x53')][_0x437e('0xd9')];if(!_0x4564b8&&_0x6bef18(_0x71c517,_0x1f6979))return _0x25ee08['_joinSuggestions'](_0x750a9a,_0x1c4bd8),_0x132b4a[_0x437e('0xc5')](_0x1c4bd8),!0x0;if(!_0x2fce41&&_0x6bef18(_0x1f6979,_0x71c517))return _0x25ee08[_0x437e('0xcd')](_0x1c4bd8,_0x750a9a),_0x132b4a[_0x437e('0xc5')](_0x750a9a),!0x0;}return!0x1;}}['_joinSuggestions'](_0x124871,_0x37dd1e){if(_0x124871[_0x437e('0xc1')])for(const _0x1a43f3 of _0x37dd1e[_0x437e('0x17b')]())_0x124871[_0x437e('0x137')](_0x1a43f3);else{const _0x288332=_0x37dd1e['getFirstRange']()[_0x437e('0x15e')];this[_0x437e('0xf4')](_0x124871,this[_0x437e('0x41')][_0x437e('0x88')](_0x124871[_0x437e('0x6f')]()['start'],_0x288332));}_0x37dd1e[_0x437e('0x103')]();}[_0x437e('0x99')](_0x2c5505,_0x4ab530){const _0x559ee3=_0x2c5505[_0x437e('0x157')](_0x437e('0x87'))||_0x2c5505[_0x437e('0x157')]('attribute')?_0x437e('0x21'):_0x2c5505[_0x437e('0xb')]();return _0xf738b8(this[_0x437e('0x174')][_0x437e('0x86')],_0x4ab530+'_'+_0x559ee3+'_SUGGESTION_ANNOUNCEMENT');}[_0x437e('0x102')](){const _0x3a06c7=this[_0x437e('0x174')];_0xab88b6(this[_0x437e('0x41')],({left:_0x8726b7,entered:_0x547da0})=>{const _0x3f673e=[];for(const _0x1cb5cf of _0x8726b7){const {group:_0x28c7dd,type:_0x10d31e}=this[_0x437e('0x64')](_0x1cb5cf[_0x437e('0x142')]);if('suggestion'===_0x28c7dd){_0x3f673e['push'](this[_0x437e('0x99')](_0x10d31e,_0x437e('0x150')));break;}}for(const _0x1819ab of _0x547da0){const {group:_0x484999,type:_0x581a98}=this[_0x437e('0x64')](_0x1819ab['name']);if(_0x437e('0x16d')===_0x484999){_0x3f673e[_0x437e('0x95')](this[_0x437e('0x99')](_0x581a98,_0x437e('0x172')));break;}}_0x3f673e['length']&&_0x3a06c7['ui'][_0x437e('0x38')][_0x437e('0x15f')](_0x437e('0x4d'),_0x3f673e[_0x437e('0x113')]('\x20'));});}[_0x437e('0xdd')](_0x5d1873){if(this[_0x437e('0x13d')])return!0x1;const _0x47c157=this['editor'],_0x4b070f=_0x47c157[_0x437e('0xbc')]['document']['differ']['getChanges']();if(0x0==_0x4b070f[_0x437e('0xd9')])return!0x1;const _0x41210d=[],_0x4dcf8c=_0x4b070f['filter'](_0x52bbdf=>'attribute'==_0x52bbdf[_0x437e('0xa5')]),_0x33803f=_0x4b070f[_0x437e('0x147')](_0x1ec8f5=>_0x437e('0x114')==_0x1ec8f5['type']&&'$text'!=_0x1ec8f5[_0x437e('0x142')]),_0x1876e3=_0x4b070f['filter'](_0x4fd661=>_0x437e('0x52')==_0x4fd661[_0x437e('0xa5')]&&_0x437e('0x11')!=_0x4fd661[_0x437e('0x142')]);for(const _0x3046a6 of _0x4dcf8c)_0x41210d[_0x437e('0x95')]({'key':_0x3046a6[_0x437e('0x8b')],'newValue':_0x3046a6[_0x437e('0x12f')],'oldValue':_0x3046a6[_0x437e('0xf9')],'range':Ut(_0x3046a6['range'],_0x47c157['model'])});for(const _0x12e02b of _0x33803f){const _0x5655bf=_0x1876e3[_0x437e('0x116')](_0x570e9f=>_0x570e9f['position'][_0x437e('0x11f')](_0x12e02b[_0x437e('0x63')]));_0x5655bf&&_0x41210d[_0x437e('0x95')]({'key':_0x437e('0x37'),'newValue':_0x12e02b['name'],'oldValue':_0x5655bf[_0x437e('0x142')],'range':_0x47c157[_0x437e('0xbc')]['createRangeOn'](_0x12e02b[_0x437e('0x63')][_0x437e('0x167')])});}return 0x0!=_0x41210d[_0x437e('0xd9')]&&this[_0x437e('0xae')](_0x5d1873,_0x41210d);}[_0x437e('0x6a')](_0x3b2d06){let _0x23cc60=!0x1;const _0x567805=this['editor']['model']['document'][_0x437e('0x1a')][_0x437e('0x151')]()[_0x437e('0x147')](_0x1c5168=>_0x1c5168[_0x437e('0x59')][_0x437e('0x34')]&&_0x1c5168['name']['startsWith'](_0x437e('0xc9')));for(const _0x3c2cfd of _0x567805){const {subType:_0x12e370,id:_0xdf8c2c}=this['_splitMarkerName'](_0x3c2cfd['name']),_0x4a014e=_0x12e370[_0x437e('0xbe')]('|')[0x0];for(const _0x51355d of this[_0x437e('0x169')]({'skipNotAttached':!0x0}))_0x51355d['id']!=_0xdf8c2c&&_0x437e('0x154')==_0x51355d[_0x437e('0xa5')]&&_0x51355d[_0x437e('0x59')]&&_0x51355d[_0x437e('0x59')]['key']==_0x4a014e&&_0x51355d['getFirstRange']()[_0x437e('0x12a')](_0x3c2cfd[_0x437e('0x59')][_0x437e('0x34')])&&(this[_0x437e('0x118')](_0x51355d,_0x3c2cfd[_0x437e('0x59')][_0x437e('0x34')],_0x3b2d06),_0x23cc60=!0x0);}return _0x23cc60;}[_0x437e('0x5e')](_0x25dd80){this[_0x437e('0x174')],(this['_recordAttributeSuggestions']=!0x0,_0x25dd80());}[_0x437e('0xf2')](_0x79dceb){const _0x43127b=this[_0x437e('0xc2')](_0x79dceb),_0xbb741b=this[_0x437e('0x105')][_0x437e('0xd0')](_0x79dceb);return _0x43127b||_0xbb741b;}[_0x437e('0xae')](_0x50627b,_0x2c9d3d){if(0x0==_0x2c9d3d['length'])return!0x1;let _0xcb00a9=!0x1;for(const _0x231f9c of _0x2c9d3d){const _0x5e0824=this[_0x437e('0x2a')](_0x231f9c[_0x437e('0x6d')],_0x437e('0x154'))[_0x437e('0x147')](_0x13bb4c=>!_0x13bb4c[_0x437e('0x50')][_0x437e('0xdf')])['map'](_0x35e8e3=>_0x35e8e3['suggestion']),_0x1054c2=_0x3f34c0({'newValue':_0x231f9c[_0x437e('0xed')]});_0x5e0824[_0x437e('0x147')](_0x38ea16=>{const [_0x4d5b89,_0x3e56eb]=_0x38ea16[_0x437e('0x8')][_0x437e('0xbe')]('|');return _0x4d5b89==_0x231f9c[_0x437e('0x77')]&&_0x3e56eb!=_0x1054c2;})[_0x437e('0x27')](_0x590625=>{this['_reduceSuggestionAttributeRange'](_0x590625,_0x231f9c[_0x437e('0x6d')],_0x50627b),_0xcb00a9=!0x0;});}return _0xcb00a9;}['_reduceSuggestionAttributeRange'](_0x5b0a02,_0x367b5b,_0x1224ad){const _0x2f629d=_0x5b0a02[_0x437e('0x6f')]()[_0x437e('0x4f')](_0x367b5b);0x0!==_0x2f629d[_0x437e('0xd9')]?0x1!==_0x2f629d[_0x437e('0xd9')]?this[_0x437e('0x9')](_0x5b0a02,_0x367b5b[_0x437e('0x8f')],_0x367b5b['end']):this[_0x437e('0xf4')](_0x5b0a02,_0x2f629d[0x0]):_0x1224ad[_0x437e('0x111')](_0x5b0a02['getFirstMarker']());}}class Bt{constructor(_0x6c29e0){this[_0x437e('0xa8')]=_0x6c29e0,this[_0x437e('0x41')]=_0x6c29e0[_0x437e('0xbc')],this[_0x437e('0x166')]=new Map(),this[_0x437e('0x146')]=new Map(),this[_0x437e('0xf5')]();}[_0x437e('0x16c')](_0x51ce8c,_0x33424b,_0xa0deb7,_0x26f599,_0x377e29,_0x48c078){return new _0x59e4d4(this[_0x437e('0x41')],{'type':_0x51ce8c,'subType':_0x33424b,'id':_0xa0deb7,'author':_0x26f599,'creator':_0x26f599,'attributes':_0x377e29,'onAttributesChange':_0x48c078,'onAccept':(..._0x510231)=>this['getSuggestionCallback'](_0x51ce8c,_0x33424b,_0x437e('0xbb'))(..._0x510231),'onDiscard':(..._0x4e5e62)=>this[_0x437e('0x7')](_0x51ce8c,_0x33424b,'discard')(..._0x4e5e62)});}[_0x437e('0x33')](_0x28ac35,_0x2d5664,_0x5c5e9d,_0x5a2596){const _0x2ab199=_0x28ac35+':'+_0x2d5664+':'+_0x5c5e9d;this[_0x437e('0x166')][_0x437e('0x39')](_0x2ab199,_0x5a2596);}[_0x437e('0x7')](_0xd27fa2,_0x1128aa,_0x359890){const _0x3cecfa=_0xd27fa2+':'+_0x1128aa+':'+_0x359890;return this[_0x437e('0x166')][_0x437e('0x179')](_0x3cecfa)||this[_0x437e('0x146')][_0x437e('0x179')](_0xd27fa2+':'+_0x359890);}['_registerDefaultCallbacks'](){const _0x209634=()=>!0x1,_0x22700f=_0xaec5a2=>{_0xaec5a2['sort']((_0x41b7de,_0x51459e)=>_0x41b7de['start'][_0x437e('0xb1')](_0x51459e[_0x437e('0x8f')])?0x1:-0x1),this[_0x437e('0x41')][_0x437e('0x85')](_0x48fdb8=>{for(const _0x502e38 of _0xaec5a2){let _0x2fe57b;_0x2fe57b=_0x502e38['end'][_0x437e('0xf6')]&&_0x502e38[_0x437e('0x15e')][_0x437e('0xfc')]==_0x502e38[_0x437e('0x8f')][_0x437e('0x167')]?_0x48fdb8[_0x437e('0xee')](_0x502e38[_0x437e('0x8f')][_0x437e('0x167')],'on'):_0x48fdb8[_0x437e('0xee')](_0x502e38),this[_0x437e('0x41')][_0x437e('0xaa')](_0x2fe57b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x185c32=(_0xb4ab7a,_0x4ca118)=>{_0x4ca118&&this[_0x437e('0x41')][_0x437e('0x85')](_0x5889d0=>{const {commandName:_0x113783,commandParams:_0x1d6dc2=[]}=_0x4ca118,_0x3f9501=_0xb4ab7a['map'](_0x4388fc=>(Rt(_0x4388fc)&&(_0x4388fc=this[_0x437e('0x41')][_0x437e('0x88')](_0x4388fc['end'])),_0x4388fc))['filter'](_0x3f29fa=>_0x437e('0xb9')!==_0x3f29fa['root'][_0x437e('0x100')]);if(_0x3f9501['length']<0x1)return;const _0x4c0200=Array[_0x437e('0x2d')](this[_0x437e('0x41')][_0x437e('0x136')][_0x437e('0x121')][_0x437e('0x17b')]())[_0x437e('0x11e')](_0x4978fd=>_0xbc9a1f[_0x437e('0x173')](_0x4978fd));_0x5889d0[_0x437e('0x90')](_0x3f9501);for(const _0x537d0b of this[_0x437e('0xa8')][_0x437e('0x1b')][_0x437e('0x1b')]())_0x537d0b['refresh']();_0x1d6dc2[_0x437e('0x95')]({'forceDefaultExecution':!0x0}),this[_0x437e('0xa8')]['execute'](_0x113783,..._0x1d6dc2);const _0x12d4aa=_0x4c0200['filter'](_0x396518=>'$graveyard'!=_0x396518['root']['rootName']);_0x12d4aa[_0x437e('0xd9')]>0x0&&_0x5889d0['setSelection'](_0x12d4aa);for(const _0x2714d3 of _0x4c0200)_0x2714d3[_0x437e('0xde')]();});},_0x285609=(_0x491f25,_0x9e078d)=>0x1==_0x491f25[_0x437e('0xd9')]&&0x1==_0x9e078d[_0x437e('0xd9')]&&_0x491f25[0x0][_0x437e('0x15e')]['isEqual'](_0x9e078d[0x0][_0x437e('0x8f')]),_0xd9a527=(_0x4576ed,_0x31d670,_0x54888a,_0xd111ed)=>Gt(_0x4576ed,_0x31d670,_0x54888a,_0xd111ed,this[_0x437e('0x41')])?[_0x4576ed,_0x31d670]:Gt(_0x31d670,_0x4576ed,_0xd111ed,_0x54888a,this[_0x437e('0x41')])?[_0x31d670,_0x4576ed]:null;this[_0x437e('0x146')][_0x437e('0x39')](_0x437e('0x152'),_0x209634),this['_defaultCallbacks'][_0x437e('0x39')](_0x437e('0x101'),_0x22700f),this['_defaultCallbacks']['set'](_0x437e('0xcf'),_0x285609),this[_0x437e('0x146')][_0x437e('0x39')](_0x437e('0xfe'),_0xd9a527),this[_0x437e('0x146')]['set'](_0x437e('0x5d'),_0x22700f),this[_0x437e('0x146')][_0x437e('0x39')](_0x437e('0xb6'),_0x209634),this['_defaultCallbacks'][_0x437e('0x39')]('deletion:join',_0x285609),this[_0x437e('0x146')][_0x437e('0x39')](_0x437e('0x17c'),_0xd9a527),this[_0x437e('0x146')][_0x437e('0x39')](_0x437e('0x79'),_0x185c32),this[_0x437e('0x146')][_0x437e('0x39')](_0x437e('0x148'),_0x209634),this[_0x437e('0x146')][_0x437e('0x39')]('formatInline:join',_0x285609),this['_defaultCallbacks'][_0x437e('0x39')]('formatInline:chain',_0x209634),this['_defaultCallbacks'][_0x437e('0x39')](_0x437e('0x17'),_0x185c32),this['_defaultCallbacks'][_0x437e('0x39')](_0x437e('0xb8'),_0x209634),this['_defaultCallbacks'][_0x437e('0x39')](_0x437e('0x10b'),_0x285609),this['_defaultCallbacks']['set'](_0x437e('0x168'),_0x209634),this['_defaultCallbacks']['set'](_0x437e('0x112'),_0x209634),this['_defaultCallbacks'][_0x437e('0x39')](_0x437e('0xa3'),(_0x113ae5,_0x134d72)=>{if(!_0x134d72)return;const _0x447253=this[_0x437e('0xa8')][_0x437e('0x66')][_0x437e('0x179')](p);this[_0x437e('0x41')]['change'](_0x35ac3b=>{if(_0x437e('0x37')==_0x134d72['key'])for(const _0x3eb345 of _0x113ae5){const _0x62d9e3=_0x3eb345[_0x437e('0x8f')][_0x437e('0x167')],_0x1badaa=_0x134d72['oldValue'];_0x35ac3b['rename'](_0x62d9e3,_0x1badaa);}else{if(_0x447253['_isBlockAttribute'](_0x134d72[_0x437e('0x77')]))for(const _0x503391 of _0x113ae5)void 0x0!==_0x134d72[_0x437e('0x128')]?_0x35ac3b[_0x437e('0x109')](_0x134d72[_0x437e('0x77')],_0x134d72[_0x437e('0x128')],_0x503391['start']['nodeAfter']):_0x35ac3b[_0x437e('0x81')](_0x134d72[_0x437e('0x77')],_0x503391[_0x437e('0x8f')][_0x437e('0x167')]);else for(const _0xa2cec0 of _0x113ae5)_0x134d72[_0x437e('0x128')]?_0x35ac3b[_0x437e('0x109')](_0x134d72[_0x437e('0x77')],_0x134d72[_0x437e('0x128')],_0xa2cec0):_0x35ac3b[_0x437e('0x81')](_0x134d72[_0x437e('0x77')],_0xa2cec0);}});}),this['_defaultCallbacks'][_0x437e('0x39')](_0x437e('0x5a'),_0x285609);}}function xt(_0x3a40e4,_0x557a17,_0x4883b5){for(const _0x205723 of _0x557a17['parent'][_0x437e('0xc6')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x205723['root']==_0x205723)return!0x1;if(!_0x4883b5[_0x437e('0x76')](_0x205723))return!0x1;if(_0x3a40e4[_0x437e('0x15d')](_0x205723)||_0x3a40e4[_0x437e('0x25')](_0x205723))return!0x0;}return!0x1;}function Rt(_0xf13259){return _0xf13259[_0x437e('0x15e')][_0x437e('0xfc')]==_0xf13259['start']['nodeAfter']&&_0xf13259[_0x437e('0x15e')][_0x437e('0x126')];}function Tt(_0x2847f4,_0x118e6b,_0x4ac74f,_0x2d29f5){const _0x4aae1e=_0x2459d4=>!_0x2459d4['item']['is']('$textProxy')&&!_0x2d29f5['isObject'](_0x2459d4[_0x437e('0x171')]),_0x295d63=_0x2847f4[_0x437e('0x8f')][_0x437e('0xc8')](_0x4aae1e),_0x47c251=_0x2847f4[_0x437e('0x15e')][_0x437e('0xc8')](_0x4aae1e,{'direction':_0x437e('0x84')});return(!_0x2847f4[_0x437e('0x8f')][_0x437e('0x11f')](_0x295d63)||!_0x2847f4[_0x437e('0x15e')][_0x437e('0x11f')](_0x47c251))&&(_0x295d63[_0x437e('0xb1')](_0x47c251)?_0x4ac74f[_0x437e('0x28')](_0x118e6b,{'range':_0x4ac74f[_0x437e('0x88')](_0x295d63,_0x47c251)}):_0x4ac74f[_0x437e('0x111')](_0x118e6b),!0x0);}function Et(_0x56e4ed){return _0x3f34c0(_0x56e4ed);}function Vt(_0x530f41){const _0x5bbc5f=_0x530f41[_0x437e('0x8f')]['nodeAfter'];return _0x5bbc5f&&_0x5bbc5f['is'](_0x437e('0x1d'));}function Ut(_0x2445c6,_0x356ee8){return null==_0x2445c6[_0x437e('0x15e')][_0x437e('0x5f')]&&_0x2445c6[_0x437e('0x15e')][_0x437e('0xfc')]==_0x2445c6[_0x437e('0x8f')]['nodeAfter']?Ot(_0x2445c6[_0x437e('0x8f')]['nodeAfter'],_0x356ee8):_0x2445c6;}function Ot(_0xdc203f,_0x3266cc){const _0x40e7a7=_0x3266cc[_0x437e('0x13a')][_0x437e('0x15d')](_0xdc203f)||_0x3266cc[_0x437e('0x13a')][_0x437e('0xbf')](_0xdc203f);return _0x3266cc[_0x437e('0x88')](_0x3266cc[_0x437e('0x16a')](_0xdc203f,_0x437e('0x14c')),_0x40e7a7?_0x3266cc[_0x437e('0x170')](_0xdc203f):_0x3266cc[_0x437e('0x16a')](_0xdc203f,_0x437e('0x15e')));}function Gt(_0x5d8556,_0x503fea,_0x2deda8,_0x366f1b,_0x881b0c){if(!Ft(_0x5d8556,_0x503fea))return!0x1;if(_0x2deda8[_0x437e('0x15e')]['isEqual'](_0x366f1b[_0x437e('0x8f')]))return!0x0;if(_0x5d8556['type']!=_0x503fea[_0x437e('0xa5')])return!0x1;if(!_0x2deda8['end']['isTouching'](_0x366f1b[_0x437e('0x8f')]))return!0x1;const _0x1a956c=_0x881b0c['createRange'](_0x2deda8[_0x437e('0x15e')],_0x366f1b[_0x437e('0x8f')])[_0x437e('0x56')]();for(const _0x2359dc of _0x1a956c)if([_0x437e('0x153'),_0x437e('0xa9')][_0x437e('0x58')](_0x2359dc[_0x437e('0xa5')])&&_0x881b0c[_0x437e('0x13a')]['isLimit'](_0x2359dc[_0x437e('0x171')]))return!0x1;return!0x0;}function Ft(_0x1971f6,_0x40badf,_0x4e09bb=[]){return!(!_0x1971f6[_0x437e('0x3f')]||!_0x40badf[_0x437e('0x3f')])&&_0x138eda(_0x3bc0f9(_0x1971f6[_0x437e('0x134')],_0x4e09bb),_0x3bc0f9(_0x40badf['attributes'],_0x4e09bb));}function Pt(_0x15b943,_0x430a3c){const _0x27de89=Lt(_0x15b943[_0x437e('0x134')]),_0x21a7d6=Lt(_0x430a3c);if(!_0x15b943[_0x437e('0x3f')])return!0x1;for(const _0x200d8c of Object[_0x437e('0x108')](_0x21a7d6))if(!_0x138eda(_0x27de89[_0x200d8c],_0x21a7d6[_0x200d8c]))return!0x1;return!0x0;}function Lt(_0xa3974a){const _0x5717d4=Object[_0x437e('0x4c')]({},_0xa3974a);return delete _0x5717d4[_0x437e('0x40')],delete _0x5717d4[_0x437e('0x18')],_0x5717d4;}
23
+ const _0x339a=['open','end','markerName','map','add','announce','never','isBlock','formatInline:discard','_registerBlockAttribute','_trackFormatChanges','removeMarker','plugins','acceptSuggestion','markerReady','unbindElementFromMarkerName','_adapter','activeMarkers','commands','toJSON','newRange','formatInline:accept','marker-count','elementStart','_joinWithAdjacentSuggestions','writer','addCommentThread','createRangeIn','getItems','size','rootName','_model','_registerDefaultCallbacks','_suggestionFactory','_getAttributeKey','getCustomProperty','deletion:accept','_setSuggestionRange','newValue','pop','track-changes-suggestion-not-found','isBefore','ck-suggestion-marker-formatInline','markInlineFormat','subType','getNearestSelectionRange','_isBlockAttribute','parent','containsItem','ready','differ','position','getRanges','formatBlock','isObject','formatBlock:discard','adapter','meta','isMultiRange','registerPostFixer','always','moveTargetPosition','insertion:chain','hasComments','_blockAttributeKeys','_getMarkerAnnouncementText','track-changes-enable-command-twice','default','discardAllSuggestions','clone','_refreshSuggestionsChain','_isForcedDefaultExecutionBlock','trackChanges','getShiftedBy','addMarker:suggestion:attribute','every','upcast','deletion:discard','ck-suggestion-marker-formatBlock','stopListening','get','CommentsRepository','detach','fire','removeMarkers','TrackChangesEditing','isAfter','mapper','markMultiRangeBlockFormat','PendingActions','_getExternalAuthor','_reduceExistingSuggestions','insertion','includes','getMarkers','suggestionUnloaded','Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.','ck-suggestion-marker--active','locale','deletion:chain','markBlockFormat','$graveyard','containsRange','_isRegisteredAttribute','key','config','removeMarker:suggestion:formatBlock','ck-suggestion-marker-','hasCommentThread','dataToMarker','_recordAttributeSuggestions','addSuggestion','elementToElement','isLimit','formatBlock:accept','attribute:accept','getCommentThread','ck-suggestion-marker','_checkSuggestionCorrectness','suggestion:attribute:','isLocal','isEqual','forward','_editor','insertContent','backward','createElement','createSelection','root','skipNestingCheck','$marker','track-changes-user-not-found','removeMarker:suggestion:attribute','registerCustomCallback','getAllAdjacentSuggestions','_inlineAttributeKeys','Users','track-changes-adapter-missing-getsuggestion','containsRangeInObject','tablePasteChainId','push','_splitMarkerName','enableCommand','_cutOutSuggestionMarker','attribute:discard','_suggestions','howMany','updateSuggestion','isUndo','move','_addSuggestionMarker','_getSuggestionData','low','_enableDefaultAttributesIntegration','PENDING_ACTION_SUGGESTION','documentSelection','from','getContainedElement','showSuggestionHighlights','consumable','_rangeIsInLocalUserInsertion','execute','nodeAfter','_defaultCallbacks','commandName','oldValue','oldRange','deletion:join','isOwn','document','model','_customCallbacks','isIntersectingWithRange','getIntersection','insertion:','track-changes-command-not-found','$text','clear','markers','FORMATTING','schema','containsPosition','formatInline:join','resolve','delete','isExternal','getUser','creator','range','change:data','$elementName','splice','error-saving-suggestion-data-suggestion-discarded','getLastMatchingPosition','formatGroupId','_saved','trackChanges.trackFormatChanges','concat','element','getMultiRangeId','selection','deletion:','getSuggestionCallback','external:','formatInline:','substring','isAtStart','change','ariaLiveAnnouncer','stop','highest','collaboration.channelId','return','forceDefaultExecution','_getAuthorFromId','addMarker','listenTo','editing','isAtEnd','formatBlock:','attributeKey','createRange','_recordAttributeChanges','getAttribute','next','startsWith','type','_joinSuggestions','isIntersecting','setTo','dataDowncast','getFirstRange','suggestionChanged','_mergeNestedSuggestions','getChangedMarkers','conversion','addRange','fromCharCode','getDifference','attribute','addHighlight','addMarkerName','_initAriaMarkerChangeAnnouncements','authoredAt','isInContent','createPositionBefore','formatBlock:join','_afterChanges','_findSuggestions','before','_updateSuggestionData','catch','accept','getFirstMarker','accepted','has','_addThreadToSuggestion','isArray','toViewElement','createPositionAfter','editor','_handleNewSuggestionMarker','_createSuggestion','normal','addComment','fetchCommentThread','discardSelectedSuggestions','fromRange','toUpperCase','multi','item','$textProxy','format','markDeletion','_breakSuggestionMarker','start','chain','consume','createdAt','_refreshAttributeSuggestionsChain','suggestion','lowest','previous','_suggestionState','attribute:join','change:activeMarkers','addUser','markAttributeChange','pluginName','for','getWalker','attributeNewValue','markerNameToElements','join','enqueueChange','rejected','values','getSuggestion','filter','discardSuggestion','set','name','markMultiRangeInsertion','containerElement','groupId','length','getRange','enableReadOnlyMode','comments','define','acceptSelectedSuggestions','_setSuggestionData','suggestion:','_commentsRepository','notReady','buildSuggestion','setSelection','dataReady','getAncestors','formatInline:chain','updateMarker','reconvertMarker','value','rethrowUnexpectedError','multipleBlocks','deletion','createPositionAt','setAttribute','keys','track-changes-suggestion-data-mismatch','data-suggestion','trackChangesCommand','author','remove','originalSuggestionId','editingDowncast','init','attributeOldValue','isNextTo','after','addSuggestionData','change:_saved','_isDataLoaded','split','isInsideObject','insertion:discard','markerToHighlight','addClass','formatInline','removeClass','markMultiRangeDeletion','some','then','_processAttributeChanges','find','@external','insert','forEach','commentThread','_registerInlineAttribute','suggestionLoaded','_enabledCommands','sort','isCollapsed','options','attributes','removed','discard','high','removeAttribute','_removeSuggestion','getSuggestions','_onDiscard','batch','formatBlock:chain','_reduceSuggestionAttributeRange','data','trackChanges.mergeNestedSuggestions','_descriptionFactory','nodeBefore','getChanges','warn','addMarker:suggestion'];(function(_0x306401,_0x339a2d){const _0x30241a=function(_0x46df72){while(--_0x46df72){_0x306401['push'](_0x306401['shift']());}};_0x30241a(++_0x339a2d);}(_0x339a,0x12f));const _0x3024=function(_0x306401,_0x339a2d){_0x306401=_0x306401-0x0;let _0x30241a=_0x339a[_0x306401];return _0x30241a;};import{Plugin as _0x7dd224,PendingActions as _0x12b474}from'ckeditor5/src/core.js';import{LiveRange as _0x205e8b}from'ckeditor5/src/engine.js';import{CKEditorError as _0x255fda,uid as _0x25b08a,priorities as _0x277c40,logWarning as _0x59dd10}from'ckeditor5/src/utils.js';import{toWidget as _0x582c0d}from'ckeditor5/src/widget.js';import{Users as _0x2b5144,hashObject as _0x4a1e6a,surroundingMarkersDetector as _0x471275}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x465380 from'./commands/trackchangescommand.js';import _0x5a1e43 from'./commands/acceptsuggestioncommand.js';import _0xc4b4ed from'./commands/discardsuggestioncommand.js';import _0x5918cc from'./commands/executeonallsuggestionscommand.js';import _0x58fc2a from'./commands/executeonselectedsuggestionscommand.js';import _0x1f2ce3 from'./suggestion.js';import _0x1618ee from'./suggestiondescriptionfactory.js';import _0x4a63f4 from'./integrations/aiassistant.js';import _0x29c374 from'./integrations/alignment.js';import _0x8abd13 from'./integrations/basicstyles.js';import _0x4ce919 from'./integrations/blockquote.js';import _0x20492e from'./integrations/casechange.js';import _0x48e0ac from'./integrations/ckbox.js';import _0x42a55a from'./integrations/codeblock.js';import _0xd1271c from'./integrations/comments.js';import _0x4d87b6 from'./integrations/deletecommand.js';import _0x4f69a6 from'./integrations/list.js';import _0x27e9d0 from'./integrations/listproperties.js';import _0x70c667 from'./integrations/entercommand.js';import _0x42805d from'./integrations/findandreplace.js';import _0x59090a from'./integrations/font.js';import _0x41299d from'./integrations/formatpainter.js';import _0x41e347 from'./integrations/heading.js';import _0x542e5a from'./integrations/highlight.js';import _0x413bc7 from'./integrations/horizontalline.js';import _0x5d0349 from'./integrations/htmlembed.js';import _0x4263c1 from'./integrations/image.js';import _0x30e568 from'./integrations/imagereplace.js';import _0x36b564 from'./integrations/imagestyle.js';import _0x12c210 from'./integrations/importword.js';import _0x31f901 from'./integrations/indent.js';import _0x4cad25 from'./integrations/inputcommand.js';import _0x58a30f from'./integrations/link.js';import _0x296531 from'./integrations/legacylist.js';import _0x1ddeba from'./integrations/legacylistproperties.js';import _0x49a662 from'./integrations/mediaembed.js';import _0x399ac2 from'./integrations/mention.js';import _0x1cc671 from'./integrations/pagebreak.js';import _0x2ec65a from'./integrations/paragraph.js';import _0x1dadb1 from'./integrations/removeformat.js';import _0x5f11c0 from'./integrations/restrictededitingmode.js';import _0x1b4730 from'./integrations/shiftentercommand.js';import _0x1b27eb from'./integrations/standardeditingmode.js';import _0x172ae1 from'./integrations/style.js';import _0x1076dd from'./integrations/table.js';import _0x3acb78 from'./integrations/tablemergesplit.js';import _0x3bf472 from'./integrations/tableheadings.js';import _0x50d5f6 from'./integrations/tableclipboard.js';import _0x2cab1b from'./integrations/tablecolumnresize.js';import _0x1818fc from'./integrations/template.js';import _0x1b9997 from'./integrations/tableofcontents.js';import _0x5df3c7 from'./integrations/title.js';import _0x5cd449 from'./integrations/undo.js';import _0x49bb0b from'./integrations/tablecaption.js';import _0x2eb079 from'./integrations/tableproperties.js';import{getTranslation as _0x44f115}from'./utils/common-translations.js';import{isEqual as _0x2963a5,omit as _0x5a017a}from'lodash-es';export const renameAttributeKey=_0x3024('0x10e');export default class p extends _0x7dd224{static get['requires'](){return['CommentsRepository',_0x2b5144,_0x12b474,_0x4a63f4,_0x29c374,_0x8abd13,_0x4ce919,_0x48e0ac,_0x20492e,_0x42a55a,_0xd1271c,_0x4d87b6,_0x70c667,_0x42805d,_0x59090a,_0x41299d,_0x41e347,_0x542e5a,_0x413bc7,_0x5d0349,_0x4263c1,_0x36b564,_0x30e568,_0x12c210,_0x31f901,_0x4cad25,_0x296531,_0x1ddeba,_0x58a30f,_0x4f69a6,_0x27e9d0,_0x49a662,_0x399ac2,_0x1cc671,_0x2ec65a,_0x1dadb1,_0x5f11c0,_0x1b4730,_0x1b27eb,_0x172ae1,_0x1076dd,_0x3acb78,_0x3bf472,_0x49bb0b,_0x50d5f6,_0x2cab1b,_0x1b9997,_0x2eb079,_0x1818fc,_0x5df3c7,_0x5cd449];}static get[_0x3024('0x170')](){return _0x3024('0xa5');}constructor(_0x51a5f8){function _0x3f9eac(_0x4b360e){return _0x4b360e[_0x3024('0x53')](_0xcf2532=>String[_0x3024('0x13d')](_0xcf2532))[_0x3024('0x175')]('');}super(_0x51a5f8),this[_0x3024('0xbe')]=!0x1,this[_0x3024('0x17c')](_0x3024('0x61'),[]),this['on'](_0x3024('0x16d'),(_0x41e4c1,_0x3a077f,_0x341c3f,_0x2d605b)=>{this[_0x3024('0x6f')][_0x3024('0x11f')](()=>{for(const _0x56e1c4 of[..._0x2d605b,..._0x341c3f])this[_0x3024('0x6f')][_0x3024('0x102')][_0x3024('0x14f')](_0x56e1c4)&&_0x51a5f8[_0x3024('0x129')][_0x3024('0x12')](_0x56e1c4);});}),this[_0x3024('0x4b')]=new _0x1618ee(this[_0x3024('0x154')]['model']['schema'],this[_0x3024('0x154')][_0x3024('0xb2')]),this['_adapter']=null,this[_0x3024('0x71')]=new Bt(this[_0x3024('0x154')]),this[_0x3024('0xe1')]=new Map(),this['_commentsRepository']=_0x51a5f8[_0x3024('0x5c')][_0x3024('0xa0')](_0x3024('0xa1')),this[_0x3024('0x3a')]=new Set(),this[_0x3024('0x6f')]=this[_0x3024('0x154')][_0x3024('0xfa')],this[_0x3024('0x16b')]=new WeakMap(),this[_0x3024('0x97')]=!0x1,this['_blockAttributeKeys']=new Set(['$elementName']),this[_0x3024('0xd7')]=new Set(),_0x51a5f8[_0x3024('0xb9')][_0x3024('0x6')](_0x3024('0x114'),_0x3024('0x93')),this['_trackFormatChanges']=_0x51a5f8[_0x3024('0xb9')][_0x3024('0xa0')](_0x3024('0x114')),_0x51a5f8[_0x3024('0xb9')][_0x3024('0x6')](_0x3024('0x4a'),!0x0),this[_0x3024('0x139')]=_0x51a5f8['config'][_0x3024('0xa0')]('trackChanges.mergeNestedSuggestions'),this[_0x3024('0x1c')]=new _0x465380(_0x51a5f8,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x3f9eac([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3f9eac([0x34,0x30,0x34,0x38,0x30,0x32,0x34,0x38]);}[_0x3024('0x21')](){const _0x15d3e4=this['editor'],_0x56e65d=(_0x113e53,_0x41aa57)=>{if('attribute'!=_0x113e53)return _0x3024('0xbb')+_0x113e53;const _0x28726b=_0x41aa57['split']('|')[0x0];return this[_0x3024('0x7e')](_0x28726b)?_0x3024('0x9e'):_0x3024('0x7a');};_0x15d3e4[_0x3024('0x13b')][_0x3024('0x171')]('editingDowncast')['markerToHighlight']({'model':_0x3024('0x168'),'view':_0x237706=>{const {id:_0x455be6,type:_0x218b88,subType:_0x343c1f}=this[_0x3024('0xdd')](_0x237706[_0x3024('0x52')]),_0x2e7cfa=[_0x3024('0xc5'),_0x56e65d(_0x218b88,_0x343c1f)];let _0x546628=0xbb8;return this[_0x3024('0x61')][_0x3024('0xad')](_0x237706[_0x3024('0x52')])&&(_0x2e7cfa['push'](_0x3024('0xb1')),_0x546628=0xbc2),'deletion'==_0x218b88&&(_0x546628+=0x5),{'classes':_0x2e7cfa,'attributes':{'data-suggestion':_0x455be6},'priority':_0x546628};}}),_0x15d3e4[_0x3024('0x13b')][_0x3024('0x171')](_0x3024('0x136'))['add'](_0x3c5c92=>{_0x3c5c92['on'](_0x3024('0x4f'),(_0x1087ee,_0x345788,_0x543429)=>{if(!_0x543429['options']['showSuggestionHighlights'])return;const _0x4b8b73=_0x345788['item'];if(!_0x4b8b73)return;const _0x5c0007=_0x543429[_0x3024('0xa7')][_0x3024('0x152')](_0x4b8b73);_0x15d3e4[_0x3024('0xfa')][_0x3024('0x104')][_0x3024('0x86')](_0x4b8b73)&&_0x5c0007&&!_0x5c0007[_0x3024('0x73')]('widget')&&_0x5c0007['is'](_0x3024('0x0'))&&_0x582c0d(_0x5c0007,_0x543429[_0x3024('0x69')]);},{'priority':'high'});}),_0x15d3e4[_0x3024('0x13b')][_0x3024('0x171')](_0x3024('0x136'))[_0x3024('0x2b')]({'model':_0x3024('0x168'),'view':(_0x16040e,_0x42e9a3)=>{if(!_0x42e9a3[_0x3024('0x3d')][_0x3024('0xee')])return null;const {type:_0x19d25b,subType:_0x178546}=this[_0x3024('0xdd')](_0x16040e[_0x3024('0x52')]);return{'classes':[_0x3024('0xc5'),_0x56e65d(_0x19d25b,_0x178546)],'priority':0xbb8};}});const _0x56e49c=({showActiveMarkers:_0x1833ea=!0x0,isAttributeSuggestion:_0x4c6f52=!0x1}={})=>(_0x2bd7dc,_0x2dc10a,_0x1ae290)=>{if(!_0x2dc10a[_0x3024('0x15e')])return;const {id:_0xe972a}=this['_splitMarkerName'](_0x2dc10a[_0x3024('0x52')]);if(_0x4c6f52){const _0x2e51ad=this[_0x3024('0xe1')]['get'](_0xe972a),_0x51992b=this['_getAttributeKey'](_0x2e51ad);if(!this[_0x3024('0x7e')](_0x51992b))return;}if(_0x2dc10a[_0x3024('0x15e')]['is'](_0x3024('0x118')))return void _0x1ae290[_0x3024('0xef')][_0x3024('0x165')](_0x2dc10a[_0x3024('0x15e')],_0x2bd7dc[_0x3024('0x17d')]);const _0x47cc99=_0x1ae290[_0x3024('0xa7')]['toViewElement'](_0x2dc10a[_0x3024('0x15e')]);if(_0x2dc10a[_0x3024('0x15e')]['is'](_0x3024('0x116'))&&_0x15d3e4[_0x3024('0xfa')][_0x3024('0x104')]['isBlock'](_0x2dc10a[_0x3024('0x15e')])&&!_0x47cc99[_0x3024('0x73')]('addHighlight')){_0x1ae290['writer'][_0x3024('0x2c')]([_0x3024('0xc5'),_0x3024('0x9e')],_0x47cc99),_0x1ae290[_0x3024('0x69')][_0x3024('0x18')]('data-suggestion',_0xe972a,_0x47cc99),_0x1ae290[_0x3024('0xa7')]['bindElementToMarker'](_0x47cc99,_0x2dc10a['markerName']),_0x1833ea&&(this[_0x3024('0x61')]['includes'](_0x2dc10a['markerName'])?_0x1ae290[_0x3024('0x69')][_0x3024('0x2c')](_0x3024('0xb1'),_0x47cc99):_0x1ae290[_0x3024('0x69')][_0x3024('0x2e')](_0x3024('0xb1'),_0x47cc99));for(const _0x20dd67 of _0x15d3e4['model'][_0x3024('0x6b')](_0x2dc10a[_0x3024('0x15e')])[_0x3024('0x6c')]())_0x1ae290['consumable'][_0x3024('0x165')](_0x20dd67,_0x2bd7dc[_0x3024('0x17d')]);_0x1ae290[_0x3024('0xef')][_0x3024('0x165')](_0x2dc10a[_0x3024('0x15e')],_0x2bd7dc[_0x3024('0x17d')]);}};_0x15d3e4[_0x3024('0x13b')][_0x3024('0x171')](_0x3024('0x136'))[_0x3024('0x54')](_0x5ed49f=>{_0x5ed49f['on']('addMarker:suggestion:formatBlock',(_0x2fe2c3,_0x5a6ac4,_0x59ebc6)=>{_0x59ebc6[_0x3024('0x3d')][_0x3024('0xee')]&&_0x56e49c({'showActiveMarkers':!0x1})(_0x2fe2c3,_0x5a6ac4,_0x59ebc6);},{'priority':'highest'});}),_0x15d3e4[_0x3024('0x13b')][_0x3024('0x171')](_0x3024('0x136'))['add'](_0x11b942=>{_0x11b942['on'](_0x3024('0x9a'),(_0x2c1e30,_0x26fef1,_0x5e7138)=>{_0x5e7138[_0x3024('0x3d')][_0x3024('0xee')]&&_0x56e49c({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2c1e30,_0x26fef1,_0x5e7138);},{'priority':_0x3024('0x122')});}),_0x15d3e4[_0x3024('0x13b')][_0x3024('0x171')]('dataDowncast')['markerToData']({'model':_0x3024('0x168'),'view':(_0x17fb16,_0x2be510)=>_0x2be510[_0x3024('0x3d')][_0x3024('0xee')]?null:{'group':_0x3024('0x168'),'name':_0x17fb16['substr'](0xb)}}),_0x15d3e4['conversion'][_0x3024('0x171')](_0x3024('0x9c'))[_0x3024('0xc0')]({'view':{'name':_0x3024('0x168'),'attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4e3520,{writer:_0x2f3c91})=>{let _0x2caf24='suggestion:'+_0x4e3520['getAttribute']('suggestion-type')+':'+_0x4e3520['getAttribute']('id');return _0x4e3520[_0x3024('0x12f')](_0x3024('0x66'))&&(_0x2caf24+=':'+_0x4e3520['getAttribute'](_0x3024('0x66'))),_0x2f3c91[_0x3024('0xce')](_0x3024('0xd2'),{'data-name':_0x2caf24});}}),_0x15d3e4[_0x3024('0x13b')]['for'](_0x3024('0x9c'))[_0x3024('0xbd')]({'view':'suggestion'}),_0x15d3e4[_0x3024('0x13b')][_0x3024('0x171')](_0x3024('0x20'))[_0x3024('0x54')](_0x28b556=>{_0x28b556['on']('addMarker:suggestion:formatBlock',_0x56e49c(),{'priority':'high'});}),_0x15d3e4['conversion'][_0x3024('0x171')]('editingDowncast')[_0x3024('0x54')](_0x9e3f72=>{_0x9e3f72['on'](_0x3024('0x9a'),_0x56e49c({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x15d3e4['conversion'][_0x3024('0x171')](_0x3024('0x20'))['add'](_0x12a9af=>{_0x12a9af['on'](_0x3024('0xba'),(_0x2bb387,_0x337ed8,_0x1e55b7)=>{const _0x40990e=_0x1e55b7[_0x3024('0xa7')][_0x3024('0x174')](_0x337ed8['markerName']);if(_0x40990e)for(const _0x512b52 of _0x40990e)_0x512b52[_0x3024('0x73')]('addHighlight')||(_0x1e55b7[_0x3024('0x69')][_0x3024('0x2e')]([_0x3024('0xc5'),'ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x512b52),_0x1e55b7[_0x3024('0x69')][_0x3024('0x42')](_0x3024('0x1b'),_0x512b52),_0x1e55b7[_0x3024('0xa7')][_0x3024('0x5f')](_0x512b52,_0x337ed8[_0x3024('0x52')]));},{'priority':_0x3024('0x41')});}),_0x15d3e4['conversion'][_0x3024('0x171')](_0x3024('0x20'))[_0x3024('0x54')](_0x1c60e0=>{_0x1c60e0['on'](_0x3024('0xd4'),(_0x5d0bb6,_0x71669e,_0x1110ab)=>{const _0x450722=_0x1110ab[_0x3024('0xa7')][_0x3024('0x174')](_0x71669e['markerName']);if(!_0x450722)return;const {id:_0x1c7dcf}=this['_splitMarkerName'](_0x71669e[_0x3024('0x52')]),_0x54f44c=this['_suggestions'][_0x3024('0xa0')](_0x1c7dcf),_0x5cc2a9=this['_getAttributeKey'](_0x54f44c);if(this[_0x3024('0x7e')](_0x5cc2a9))for(const _0x2a6434 of _0x450722)_0x2a6434[_0x3024('0x73')](_0x3024('0x140'))||(_0x1110ab[_0x3024('0x69')][_0x3024('0x2e')](['ck-suggestion-marker',_0x3024('0x9e'),_0x3024('0xb1')],_0x2a6434),_0x1110ab[_0x3024('0x69')][_0x3024('0x42')]('data-suggestion',_0x2a6434),_0x1110ab['mapper']['unbindElementFromMarkerName'](_0x2a6434,_0x71669e[_0x3024('0x52')]));},{'priority':_0x3024('0x41')});}),_0x15d3e4[_0x3024('0xfa')][_0x3024('0xf9')]['registerPostFixer'](_0x2c318e=>{let _0x51589f=!0x1;const _0xbb5d9f=Array[_0x3024('0xec')](_0x15d3e4[_0x3024('0xfa')][_0x3024('0xf9')]['differ'][_0x3024('0x13a')]()),_0x166764=new Set();for(const {name:_0x5caf7f,data:_0x2b757d}of _0xbb5d9f){const {group:_0x1a0307,type:_0x308f5d,subType:_0x3aabb,id:_0x217170}=this[_0x3024('0xdd')](_0x5caf7f);if(_0x3024('0x168')!==_0x1a0307)continue;const _0x65fe59=this[_0x3024('0xe1')]['get'](_0x217170);if(null!=_0x2b757d['newRange']){_0x3024('0x2d')==_0x308f5d&&(_0x51589f=_0x51589f||Tt(_0x2b757d[_0x3024('0x64')],_0x5caf7f,_0x2c318e,_0x15d3e4[_0x3024('0xfa')][_0x3024('0x104')]));const _0x43b421='attribute'==_0x308f5d&&this[_0x3024('0x7e')](_0x3aabb[_0x3024('0x28')]('|')[0x0]);if(_0x2b757d[_0x3024('0x64')][_0x3024('0x3c')]||_0x3024('0xb5')==_0x2b757d[_0x3024('0x64')]['root'][_0x3024('0x6e')]||'formatBlock'==_0x308f5d&&!Vt(_0x2b757d[_0x3024('0x64')])||_0x43b421&&!Vt(_0x2b757d['newRange'])||'deletion'==_0x308f5d&&!(!Rt(_0x549221=_0x2b757d[_0x3024('0x64')])&&!function(_0x4ae95c){return _0x4ae95c[_0x3024('0x163')][_0x3024('0x7f')]==_0x4ae95c[_0x3024('0x51')][_0x3024('0x4c')]&&_0x4ae95c[_0x3024('0x163')]['isAtEnd'];}(_0x549221)))_0x2c318e['removeMarker'](_0x5caf7f),_0x51589f=!0x0;else{if(!_0x65fe59||!_0x65fe59['isInContent'])continue;_0x166764[_0x3024('0x54')](_0x65fe59);}}}var _0x549221;return _0x166764[_0x3024('0x6d')]>0x0&&(_0x51589f=!!this[_0x3024('0x68')](_0x166764)||_0x51589f),_0x51589f;}),_0x15d3e4[_0x3024('0xfa')]['document'][_0x3024('0x8b')](_0x123ed7=>{let _0xd0e915=!0x1;for(const _0x2d9884 of _0x15d3e4['model'][_0x3024('0xf9')][_0x3024('0x82')][_0x3024('0x4d')]())if(_0x3024('0x35')==_0x2d9884[_0x3024('0x132')])for(const _0x4ca8df of this[_0x3024('0xe1')][_0x3024('0x178')]()){if(_0x4ca8df[_0x3024('0x8a')]||!_0x4ca8df['isInContent'])continue;const _0x5d64e9='formatBlock'==_0x4ca8df['type'],_0x3a3464=this[_0x3024('0x72')](_0x4ca8df),_0x59b43d=_0x3a3464&&this[_0x3024('0x7e')](_0x3a3464);if(!_0x5d64e9&&!_0x59b43d)continue;const _0x3e5fc3=_0x4ca8df[_0x3024('0x137')]();if(_0x3e5fc3[_0x3024('0x163')][_0x3024('0x7f')]!=_0x3e5fc3['end'][_0x3024('0x7f')]&&!_0x3e5fc3['end']['isAtEnd']){const _0x4ec3b4=_0x15d3e4[_0x3024('0xfa')]['createPositionAt'](_0x3e5fc3[_0x3024('0x163')][_0x3024('0xf2')],_0x3024('0x51')),_0x302254=_0x15d3e4[_0x3024('0xfa')][_0x3024('0x12d')](_0x3e5fc3['start'],_0x4ec3b4);_0x123ed7['updateMarker'](_0x4ca8df[_0x3024('0x14d')](),{'range':_0x302254}),_0xd0e915=!0x0;}}return _0xd0e915;}),_0x15d3e4[_0x3024('0xfa')][_0x3024('0xf9')][_0x3024('0x8b')](_0x3df3c8=>this[_0x3024('0x32')](_0x3df3c8)),_0x15d3e4[_0x3024('0xfa')][_0x3024('0xf9')][_0x3024('0x8b')](_0x53496e=>!_0x53496e[_0x3024('0x46')]['isLocal']&&this['_processAttributeSuggestions'](_0x53496e)),_0x15d3e4[_0x3024('0xfa')]['on'](_0x3024('0x147'),()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x15d3e4[_0x3024('0xfa')][_0x3024('0xf9')]['on'](_0x3024('0x10d'),(_0x51bf87,_0x82fb7)=>{if(!_0x82fb7[_0x3024('0xc8')]||_0x82fb7[_0x3024('0xe4')])return;if(!this[_0x3024('0xbe')])return;const _0x487128=_0x15d3e4[_0x3024('0xfa')][_0x3024('0xf9')][_0x3024('0x82')]['getChanges']();if(0x0==_0x487128[_0x3024('0x2')])return;const _0x578dda=[],_0x41793d=_0x487128[_0x3024('0x17a')](_0x3ac953=>_0x3024('0x13f')==_0x3ac953[_0x3024('0x132')]),_0x2b7d5f=_0x487128[_0x3024('0x17a')](_0x2bad8d=>_0x3024('0x35')==_0x2bad8d['type']&&_0x3024('0x100')!=_0x2bad8d[_0x3024('0x17d')]),_0x1ec172=_0x487128[_0x3024('0x17a')](_0x2c13df=>_0x3024('0x1e')==_0x2c13df[_0x3024('0x132')]&&_0x3024('0x100')!=_0x2c13df['name']);for(const _0x373e2b of _0x41793d)this[_0x3024('0xb7')](_0x373e2b[_0x3024('0x12c')])&&_0x578dda['push']({'key':_0x373e2b[_0x3024('0x12c')],'newValue':_0x373e2b[_0x3024('0x173')],'oldValue':_0x373e2b[_0x3024('0x22')],'range':Ut(_0x373e2b[_0x3024('0x10c')],_0x15d3e4[_0x3024('0xfa')])});for(const _0x5d8a3f of _0x2b7d5f){const _0x217e37=_0x1ec172['find'](_0x1bfeca=>_0x1bfeca['_element']===_0x5d8a3f['_element']);if(_0x217e37){const _0x575957=Ot(_0x5d8a3f[_0x3024('0x83')]['nodeAfter'],_0x15d3e4['model']);_0x217e37['name']!==_0x5d8a3f[_0x3024('0x17d')]&&_0x578dda[_0x3024('0xdc')]({'key':_0x3024('0x10e'),'newValue':_0x5d8a3f[_0x3024('0x17d')],'oldValue':_0x217e37[_0x3024('0x17d')],'range':_0x575957});for(const [_0x551cff,_0x3bfe79]of _0x217e37[_0x3024('0x3e')]){if(!this[_0x3024('0xb7')](_0x551cff))continue;const _0x2f9813=_0x5d8a3f[_0x3024('0x3e')]['get'](_0x551cff);_0x3bfe79!==_0x2f9813&&_0x578dda['push']({'key':_0x551cff,'newValue':_0x2f9813,'oldValue':_0x3bfe79,'range':_0x575957});}for(const [_0x529bf5,_0x359c86]of _0x5d8a3f[_0x3024('0x3e')])this[_0x3024('0xb7')](_0x529bf5)&&(_0x217e37['attributes'][_0x3024('0x14f')](_0x529bf5)||_0x578dda[_0x3024('0xdc')]({'key':_0x529bf5,'newValue':_0x359c86,'oldValue':null,'range':_0x575957}));}}0x0!=_0x578dda['length']&&_0x15d3e4[_0x3024('0xfa')]['enqueueChange'](_0x82fb7,_0x22e46a=>{const _0xb56239=_0x25b08a();for(const {range:_0x15007d,key:_0x926c17,oldValue:_0x33074d,newValue:_0x512970}of _0x578dda)this[_0x3024('0x16f')](_0x15007d,_0x926c17,_0x33074d,_0x512970,{'groupId':_0xb56239});this[_0x3024('0xab')](_0x22e46a,_0x578dda);});},{'priority':'lowest'}),_0x15d3e4[_0x3024('0xfa')][_0x3024('0x102')]['on']('update:suggestion',(_0x5cd370,_0x38f5df,_0x213f5f)=>{if(null==_0x213f5f){const {id:_0x480cd4}=this['_splitMarkerName'](_0x38f5df[_0x3024('0x17d')]),_0x22d013=this[_0x3024('0xe1')][_0x3024('0xa0')](_0x480cd4);_0x22d013&&_0x22d013[_0x3024('0x141')](_0x38f5df['name']);}}),_0x15d3e4[_0x3024('0xfa')][_0x3024('0xf9')]['on'](_0x3024('0x10d'),()=>{const _0x236531=Array[_0x3024('0xec')](_0x15d3e4[_0x3024('0xfa')][_0x3024('0xf9')][_0x3024('0x82')][_0x3024('0x13a')]())['filter'](_0x107708=>_0x3024('0x168')===this['_splitMarkerName'](_0x107708[_0x3024('0x17d')])['group']);if(0x0===_0x236531[_0x3024('0x2')])return;_0x236531['sort']((_0x17191b,_0x228046)=>{const _0x1216e8=_0x17191b[_0x3024('0x49')][_0x3024('0xf6')],_0xa4ab0d=_0x228046['data'][_0x3024('0xf6')];return null===_0x1216e8&&null===_0xa4ab0d?0x0:null===_0x1216e8&&null!==_0xa4ab0d?-0x1:null!==_0x1216e8&&null===_0xa4ab0d?0x1:_0x1216e8[_0x3024('0x163')][_0x3024('0x79')](_0xa4ab0d['start'])?-0x1:0x1;});const _0x151d55=new Set(),_0x23d46b=new Set();for(const {name:_0x3aba77,data:_0x24124b}of _0x236531){const {id:_0x34e54a}=this[_0x3024('0xdd')](_0x3aba77);if(null===_0x24124b[_0x3024('0xf6')]){const _0xc5a76e=this['_handleNewSuggestionMarker'](_0x3aba77);_0x23d46b[_0x3024('0x54')](_0xc5a76e);}else{const _0x4721da=this[_0x3024('0xe1')][_0x3024('0xa0')](_0x34e54a);null!==_0x24124b[_0x3024('0x64')]||_0x4721da[_0x3024('0x144')]?(_0x151d55[_0x3024('0x54')](_0x4721da['head']),_0x23d46b[_0x3024('0x54')](_0x4721da)):this[_0x3024('0x43')](_0x4721da);}}_0x23d46b[_0x3024('0x6d')]>0x0&&this['_refreshSuggestionsChain'](_0x23d46b);for(const _0x2da19b of _0x151d55)this[_0x3024('0xa3')](_0x3024('0x138'),_0x2da19b);}),_0x15d3e4[_0x3024('0xfa')]['on']('applyOperation',(_0x4bef07,_0x81df73)=>{const _0x1db948=_0x81df73[0x0];if(!this[_0x3024('0xe1')][_0x3024('0x6d')])return;if(!_0x1db948['isDocumentOperation'])return;if(_0x1db948[_0x3024('0x46')]['isUndo']||!_0x1db948['batch']['isLocal'])return;let _0x44f4d8,_0x3d8258;switch(_0x1db948[_0x3024('0x132')]){case _0x3024('0x35'):_0x44f4d8=_0x15d3e4[_0x3024('0xfa')][_0x3024('0x17')](_0x1db948[_0x3024('0x83')]),_0x3d8258=_0x44f4d8[_0x3024('0x99')](_0x1db948[_0x3024('0xe2')]);break;case'split':_0x44f4d8=_0x15d3e4['model'][_0x3024('0x17')](_0x1db948['splitPosition']),_0x3d8258=_0x15d3e4[_0x3024('0xfa')][_0x3024('0x17')](_0x1db948[_0x3024('0x8d')]);break;case _0x3024('0xe5'):_0x44f4d8=_0x15d3e4['model'][_0x3024('0x17')](_0x1db948['targetPosition']),_0x3d8258=_0x44f4d8[_0x3024('0x99')](_0x1db948[_0x3024('0xe2')]);break;default:return;}const _0x39b7ff=_0x15d3e4[_0x3024('0xfa')][_0x3024('0x12d')](_0x44f4d8,_0x3d8258);_0x15d3e4[_0x3024('0xfa')][_0x3024('0x11f')](()=>{for(const {suggestion:_0x2cb23c,meta:_0xd315e6}of this[_0x3024('0x148')](_0x39b7ff)){if(_0x2cb23c['isMultiRange'])continue;if(_0x3024('0x2d')==_0x2cb23c[_0x3024('0x132')])continue;const _0x23ee44=this[_0x3024('0x72')](_0x2cb23c);if(_0x23ee44&&this[_0x3024('0x7e')](_0x23ee44)&&'split'!=_0x1db948[_0x3024('0x132')])continue;const _0x19a58c=_0x2cb23c['data']&&_0x2cb23c[_0x3024('0x49')]['multipleBlocks'];('formatBlock'!=_0x2cb23c[_0x3024('0x132')]||_0x3024('0x28')==_0x1db948[_0x3024('0x132')]&&!_0x19a58c)&&(_0xd315e6['containsRangeInObject']||_0x3024('0xac')==_0x2cb23c[_0x3024('0x132')]&&_0xd315e6[_0x3024('0xf8')]||_0x2cb23c[_0x3024('0x137')]()['containsRange'](_0x39b7ff)&&this[_0x3024('0x162')](_0x2cb23c,_0x44f4d8,_0x3d8258));}});},{'priority':_0x3024('0x169')}),_0x15d3e4[_0x3024('0xfa')]['on']('deleteContent',(_0x1858e7,_0x415a57)=>{const _0x3b2fc9=_0x415a57[0x0],_0x1a3c69=_0x415a57[0x1];if(_0x1a3c69&&_0x1a3c69[_0x3024('0x125')])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this[_0x3024('0x1c')]['value'])return;if(_0x3b2fc9['isCollapsed'])return;const _0x434004=_0x15d3e4[_0x3024('0xfa')][_0x3024('0x104')],{start:_0x54ffb5,end:_0x20f00d}=_0x3b2fc9[_0x3024('0x137')](),_0x573460=_0x54ffb5[_0x3024('0xf2')]&&_0x434004[_0x3024('0xc1')](_0x54ffb5[_0x3024('0xf2')])?null:_0x434004[_0x3024('0x7d')](_0x54ffb5,_0x3024('0xca')),_0x3a7186=_0x20f00d[_0x3024('0x4c')]&&_0x434004['isLimit'](_0x20f00d['nodeBefore'])?null:_0x434004[_0x3024('0x7d')](_0x20f00d,'backward'),_0x14455b=_0x15d3e4[_0x3024('0xfa')][_0x3024('0x12d')](_0x573460?_0x573460[_0x3024('0x163')]:_0x54ffb5,_0x3a7186?_0x3a7186[_0x3024('0x51')]:_0x20f00d);_0x15d3e4['model'][_0x3024('0x11f')](_0x46481b=>{this[_0x3024('0x161')](_0x14455b);const _0x46f45e=_0x15d3e4[_0x3024('0xfa')]['schema'][_0x3024('0x7d')](_0x14455b[_0x3024('0x163')]);_0x3b2fc9['is'](_0x3024('0xeb'))?_0x46481b['setSelection'](_0x46f45e):_0x3b2fc9[_0x3024('0x135')](_0x46f45e);}),_0x1858e7['stop']();},{'priority':_0x277c40[_0x3024('0x157')]+0xa}),_0x15d3e4[_0x3024('0xfa')]['on'](_0x3024('0xcc'),(_0x124720,_0x12212d)=>{const _0x4dcafc=_0x12212d[_0x12212d[_0x3024('0x2')]-0x1];_0x4dcafc&&_0x4dcafc[_0x3024('0x125')]||this[_0x3024('0x97')]||this[_0x3024('0x1c')][_0x3024('0x13')]&&(_0x15d3e4[_0x3024('0xfa')]['change'](()=>{let _0x4a2d89=_0x15d3e4[_0x3024('0xfa')][_0x3024('0xcc')](_0x12212d[0x0],_0x12212d[0x1],_0x12212d[0x2],{'forceDefaultExecution':!0x0});if(!_0x4a2d89)return;_0x124720[_0x3024('0x124')]=_0x4a2d89[_0x3024('0x95')]();const _0x25bc09=_0x4a2d89[_0x3024('0x51')][_0x3024('0x4c')],_0x1e2eb6=_0x15d3e4[_0x3024('0xfa')][_0x3024('0x104')];_0x25bc09&&_0x1e2eb6[_0x3024('0x57')](_0x25bc09)&&!_0x1e2eb6[_0x3024('0x86')](_0x25bc09)&&(_0x4a2d89=_0x15d3e4[_0x3024('0xfa')][_0x3024('0x12d')](_0x4a2d89['start'],_0x15d3e4['model'][_0x3024('0x17')](_0x25bc09,_0x3024('0x51')))),this['markInsertion'](_0x4a2d89);}),_0x124720['stop']());},{'priority':'high'}),this[_0x3024('0x154')][_0x3024('0x62')][_0x3024('0x54')](_0x3024('0x98'),this[_0x3024('0x1c')]),this[_0x3024('0xde')](_0x3024('0x98'));const _0x61eed5=new _0x5a1e43(_0x15d3e4,this[_0x3024('0xe1')]);_0x15d3e4[_0x3024('0x62')][_0x3024('0x54')](_0x3024('0x5d'),_0x61eed5),this['enableCommand'](_0x3024('0x5d'));const _0x3cafbc=new _0xc4b4ed(_0x15d3e4,this[_0x3024('0xe1')]);_0x15d3e4[_0x3024('0x62')][_0x3024('0x54')]('discardSuggestion',_0x3cafbc),this[_0x3024('0xde')](_0x3024('0x17b')),_0x15d3e4[_0x3024('0x62')]['add']('acceptAllSuggestions',new _0x5918cc(_0x15d3e4,_0x61eed5,this[_0x3024('0xe1')])),this[_0x3024('0xde')]('acceptAllSuggestions'),_0x15d3e4[_0x3024('0x62')][_0x3024('0x54')](_0x3024('0x94'),new _0x5918cc(_0x15d3e4,_0x3cafbc,this['_suggestions'])),this[_0x3024('0xde')]('discardAllSuggestions'),_0x15d3e4['commands']['add']('acceptSelectedSuggestions',new _0x58fc2a(_0x15d3e4,_0x61eed5,this[_0x3024('0xe1')])),this[_0x3024('0xde')](_0x3024('0x7')),_0x15d3e4[_0x3024('0x62')]['add'](_0x3024('0x15a'),new _0x58fc2a(_0x15d3e4,_0x3cafbc,this[_0x3024('0xe1')])),this[_0x3024('0xde')](_0x3024('0x15a'));const _0x26ad5f=_0x15d3e4['plugins'][_0x3024('0xa0')](_0x3024('0xa1'));this[_0x3024('0x128')](_0x26ad5f,_0x3024('0x158'),(_0x402565,{threadId:_0x27064d})=>{const _0x538c6=this[_0x3024('0xe1')]['get'](_0x27064d);_0x538c6&&_0x538c6[_0x3024('0x37')]&&0x1===_0x538c6[_0x3024('0x37')]['length']&&this['_updateSuggestionData'](_0x27064d,{'hasComments':!0x0});},{'priority':_0x3024('0xe8')}),this[_0x3024('0x128')](_0x26ad5f,'removeComment',(_0x46bbf6,{threadId:_0x1a792f})=>{const _0x149453=this[_0x3024('0xe1')][_0x3024('0xa0')](_0x1a792f);_0x149453&&_0x149453['commentThread']&&!_0x149453[_0x3024('0x37')][_0x3024('0x2')]&&this[_0x3024('0x14a')](_0x1a792f,{'hasComments':!0x1});},{'priority':_0x3024('0xe8')});}set[_0x3024('0x88')](_0x303c01){if(this['_adapter'])throw new _0x255fda('track-changes-adapter-already-set',this);this[_0x3024('0x60')]=_0x303c01;}get[_0x3024('0x88')](){return this[_0x3024('0x60')];}[_0x3024('0x44')]({skipNotAttached:_0x40552e=!0x1,toJSON:_0x54f130=!0x1}={}){const _0x3d9bff=[];for(const _0x131a7c of this['_suggestions'][_0x3024('0x178')]())_0x40552e&&!_0x131a7c[_0x3024('0x144')]||_0x3d9bff[_0x3024('0xdc')](_0x131a7c);return _0x54f130?_0x3d9bff[_0x3024('0x53')](_0x222677=>_0x222677[_0x3024('0x63')]()):_0x3d9bff;}[_0x3024('0x179')](_0x27cffc){const _0x53d2ef=this[_0x3024('0xe1')]['get'](_0x27cffc);if(!_0x53d2ef)throw new _0x255fda(_0x3024('0x78'),this);return _0x53d2ef;}['hasSuggestion'](_0x524885){return this[_0x3024('0xe1')]['has'](_0x524885);}[_0x3024('0x25')](_0x53f529){const {authorId:_0x4dbe87,id:_0x119d0c,attributes:_0x1ba14f}=_0x53f529,[_0x7f7fd0,_0x1d1390]=_0x53f529[_0x3024('0x132')][_0x3024('0x28')](':'),_0x4f838d=this[_0x3024('0xe1')][_0x3024('0xa0')](_0x119d0c)||this['_createSuggestion'](_0x7f7fd0,_0x1d1390,_0x119d0c,_0x4dbe87,_0x1ba14f);if(this[_0x3024('0x150')](_0x4f838d),this[_0x3024('0xc6')](_0x4f838d,_0x7f7fd0,_0x1d1390||null,_0x4dbe87),_0x4f838d[_0x3024('0x166')]=_0x53f529['createdAt'],_0x4f838d[_0x3024('0x27')]=!0x0,_0x1ba14f&&_0x1ba14f['@external']){const _0x593cd1=_0x1ba14f[_0x3024('0x34')],_0x317d33=this[_0x3024('0xaa')](_0x593cd1['authorName']);_0x4f838d[_0x3024('0x143')]=_0x593cd1[_0x3024('0x166')],_0x4f838d[_0x3024('0x1d')]=_0x317d33,_0x4f838d[_0x3024('0x109')]=!0x0;}else _0x4f838d['authoredAt']=_0x53f529['createdAt'];switch(_0x53f529['data']&&(_0x4f838d['data']=_0x53f529[_0x3024('0x49')]),_0x53f529['attributes']&&(_0x4f838d['attributes']=_0x53f529['attributes']),this[_0x3024('0x60')]&&this[_0x3024('0x60')]['addSuggestion']||(_0x4f838d[_0x3024('0x113')]=!0x0),this[_0x3024('0x16b')][_0x3024('0xa0')](_0x4f838d)){case _0x3024('0xb'):this[_0x3024('0x16b')][_0x3024('0x17c')](_0x4f838d,'dataReady');break;case _0x3024('0x5e'):_0x4f838d['isInContent']?(this[_0x3024('0x68')](new Set([_0x4f838d])),this[_0x3024('0x96')](new Set([_0x4f838d])),this['_suggestionState'][_0x3024('0x17c')](_0x4f838d,_0x3024('0x81')),this['fire'](_0x3024('0x39'),_0x4f838d)):this['_suggestionState']['set'](_0x4f838d,_0x3024('0x3f'));}return _0x4f838d;}[_0x3024('0x5d')](_0x50a9d9){this[_0x3024('0x125')](()=>{this[_0x3024('0x154')][_0x3024('0xfa')]['change'](()=>{for(const _0x32779c of _0x50a9d9[_0x3024('0xd6')]())_0x32779c[_0x3024('0x14c')]();});});}[_0x3024('0x17b')](_0x5b0670){this[_0x3024('0x125')](()=>{this[_0x3024('0x154')][_0x3024('0xfa')][_0x3024('0x11f')](()=>{for(const _0x5de593 of _0x5b0670['getAllAdjacentSuggestions']())_0x5de593[_0x3024('0x40')]();});});}[_0x3024('0xde')](_0x3eab26,_0x2dcee2){const _0x2d85a4=this['editor'][_0x3024('0x62')][_0x3024('0xa0')](_0x3eab26);if(!_0x2d85a4)throw new _0x255fda(_0x3024('0xff'),this,{'commandName':_0x3eab26});if(this[_0x3024('0x3a')]['has'](_0x2d85a4))throw new _0x255fda(_0x3024('0x92'),this,{'commandName':_0x3eab26});this[_0x3024('0x3a')][_0x3024('0x54')](_0x2d85a4),_0x2dcee2&&_0x2d85a4['on'](_0x3024('0xf1'),(_0x3ea452,_0x317603)=>{this[_0x3024('0x1c')]['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x317603[_0x3024('0x2')]>0x0&&_0x317603[_0x317603[_0x3024('0x2')]-0x1]&&_0x317603[_0x317603[_0x3024('0x2')]-0x1]['forceDefaultExecution']?_0x317603[_0x3024('0x77')]():(_0x3ea452[_0x3024('0x124')]=_0x2dcee2((..._0x243914)=>_0x2d85a4[_0x3024('0xf1')](..._0x243914,{'forceDefaultExecution':!0x0}),..._0x317603),_0x3ea452[_0x3024('0x121')]())));},{'priority':'high'});}[_0x3024('0x125')](_0x279c6e){let _0x18b811,_0x461127;const _0xdc9f0d=this[_0x3024('0x97')];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x18b811=_0x279c6e();}catch(_0x3acf30){_0x461127=_0x3acf30;}return _0xdc9f0d||(this[_0x3024('0x97')]=!0x1),_0x461127&&_0x255fda[_0x3024('0x14')](_0x461127,this),_0x18b811;}['markInsertion'](_0x58109f,_0x97c285=null,_0x5a3509={}){if(_0x58109f[_0x3024('0x3c')])return null;const _0x56d1ca=this[_0x3024('0x154')][_0x3024('0x5c')]['get'](_0x3024('0xd8'))['me'];for(const {suggestion:_0x559eeb,meta:_0x149a85}of this[_0x3024('0x148')](_0x58109f,_0x3024('0xac')))if(_0x149a85[_0x3024('0xf8')]){if(!_0x149a85['isNextTo']){if(_0x149a85[_0x3024('0xda')]){if(!this[_0x3024('0x139')]||!Pt(_0x559eeb,_0x5a3509))continue;return _0x559eeb;}if(Pt(_0x559eeb,_0x5a3509))return _0x559eeb;this[_0x3024('0x162')](_0x559eeb,_0x58109f['start'],_0x58109f['end']);break;}if(_0x97c285==_0x559eeb['subType']&&Pt(_0x559eeb,_0x5a3509)){const _0x5db0d4=_0x559eeb[_0x3024('0x137')]();return _0x5db0d4[_0x3024('0x163')]['isEqual'](_0x58109f['end'])?this[_0x3024('0x75')](_0x559eeb,this[_0x3024('0x6f')][_0x3024('0x12d')](_0x58109f[_0x3024('0x163')],_0x5db0d4[_0x3024('0x51')])):this[_0x3024('0x75')](_0x559eeb,this['_model'][_0x3024('0x12d')](_0x5db0d4[_0x3024('0x163')],_0x58109f[_0x3024('0x51')])),_0x559eeb;}}const _0x31b4b9=_0x25b08a(),_0x16cd6f=_0x56d1ca['id'],_0x341778=_0x97c285?_0x3024('0xfe')+_0x97c285:_0x3024('0xac'),_0x11a8d1=this[_0x3024('0x8')]({'id':_0x31b4b9,'type':_0x341778,'createdAt':new Date(),'authorId':_0x16cd6f,'attributes':_0x5a3509});return this[_0x3024('0xe6')](_0x341778,_0x31b4b9,_0x16cd6f,_0x58109f),_0x11a8d1;}[_0x3024('0x17e')](_0x54457d,_0x378c80=_0x3024('0x15d'),_0x506a75={}){const _0x1f9019=this['editor'][_0x3024('0x5c')][_0x3024('0xa0')](_0x3024('0xd8'))['me'],_0x1d250b=this[_0x3024('0x71')][_0x3024('0x11a')](_0x3024('0xac'),_0x378c80,_0x3024('0x175'));for(const _0x2c7757 of this[_0x3024('0x44')]())if(_0x2c7757[_0x3024('0x1d')]['id']==_0x1f9019['id']&&_0x3024('0xac')==_0x2c7757[_0x3024('0x132')]&&_0x2c7757[_0x3024('0x7c')]==_0x378c80&&Pt(_0x2c7757,_0x506a75)&&(_0x1d250b(_0x2c7757[_0x3024('0x84')](),_0x54457d)||_0x1d250b(_0x54457d,_0x2c7757[_0x3024('0x84')]()))){for(const _0x178cbc of _0x54457d)_0x2c7757[_0x3024('0x13c')](_0x178cbc);return _0x2c7757;}for(const {suggestion:_0x4272bc,meta:_0x38ca32}of this[_0x3024('0x148')](_0x54457d,_0x3024('0xac'))){if(!_0x38ca32['isOwn'])continue;if(!this[_0x3024('0x139')]&&_0x38ca32[_0x3024('0xda')])continue;if(!Pt(_0x4272bc,_0x506a75))continue;let _0x2957f1=!0x0;for(const _0x296dd3 of _0x4272bc[_0x3024('0x84')]())for(const _0x554f25 of _0x54457d)if(!_0x296dd3[_0x3024('0xb6')](_0x554f25)){_0x2957f1=!0x1;break;}if(_0x2957f1)return _0x4272bc;}const _0x1d6a07=_0x25b08a(),_0x295021=_0x1f9019['id'],_0x2db1e5=_0x3024('0xfe')+_0x378c80,_0x4523d1=this[_0x3024('0x8')]({'id':_0x1d6a07,'type':_0x2db1e5,'createdAt':new Date(),'authorId':_0x295021,'attributes':_0x506a75});for(const _0x1f28c8 of _0x54457d)this['_addSuggestionMarker'](_0x2db1e5,_0x1d6a07,_0x295021,_0x1f28c8,_0x1f2ce3['getMultiRangeId']());return _0x4523d1;}[_0x3024('0x7b')](_0x376608,_0x2db0cb,_0x571fd7=null,_0x2e89dc={}){if(_0x571fd7=_0x571fd7||Et(_0x2db0cb),_0x376608[_0x3024('0x3c')])return null;if(_0x3024('0x56')===this[_0x3024('0x5a')]){const _0x1391ae=this[_0x3024('0x71')][_0x3024('0x11a')](_0x3024('0x2d'),_0x571fd7,_0x3024('0x14c'));return this[_0x3024('0x125')](()=>_0x1391ae([_0x376608],_0x2db0cb,_0x2e89dc)),null;}const _0x14ebe1=this[_0x3024('0x154')][_0x3024('0x5c')][_0x3024('0xa0')](_0x3024('0xd8'))['me'],_0x48cdbc=[];if('always'!==this[_0x3024('0x5a')])for(const {suggestion:_0x4ab85f,meta:_0x2bbac0}of this[_0x3024('0x148')](_0x376608,_0x3024('0xac')))_0x2bbac0['isOwn']&&!_0x2bbac0[_0x3024('0x29')]&&_0x48cdbc['push'](..._0x4ab85f[_0x3024('0x84')]());const _0xa6adc5=function(_0x4b625e,_0x14ac3b){const _0x1b9d47=[];for(const _0x50b3ad of _0x14ac3b){const _0x167fec=_0x4b625e[_0x3024('0xfd')](_0x50b3ad);_0x167fec&&_0x1b9d47[_0x3024('0xdc')](_0x167fec);}return _0x1b9d47;}(_0x376608,_0x48cdbc),_0x206317=function(_0x4cad6a,_0x2d2f5a){const _0xdc9403=[_0x4cad6a];for(const _0x219d43 of _0x2d2f5a){let _0xcfab7a=0x0;for(;_0xcfab7a<_0xdc9403[_0x3024('0x2')];){const _0x5d29f1=_0xdc9403[_0xcfab7a][_0x3024('0x13e')](_0x219d43);_0xdc9403[_0x3024('0x10f')](_0xcfab7a,0x1,..._0x5d29f1),_0xcfab7a+=_0x5d29f1[_0x3024('0x2')];}}return _0xdc9403;}(_0x376608,_0x48cdbc);_0xa6adc5[_0x3024('0x2')]&&this[_0x3024('0x6f')]['change'](()=>{for(const _0xcc2fc2 of _0xa6adc5){const _0x3ff0bc=this[_0x3024('0x71')][_0x3024('0x11a')]('formatInline',_0x571fd7,'accept');this[_0x3024('0x125')](()=>_0x3ff0bc([_0xcc2fc2],_0x2db0cb,_0x2e89dc));}});for(const _0x11cf46 of _0x206317){let _0x2574d1=null,_0x14c343=_0x11cf46[_0x3024('0x163')],_0x49cb54=_0x11cf46['end'];for(const {suggestion:_0x396814,meta:_0x18e2f4}of this[_0x3024('0x148')](_0x11cf46,_0x3024('0x2d'))){if(!_0x18e2f4[_0x3024('0xf8')])continue;if(_0x396814[_0x3024('0x7c')]!=_0x571fd7)continue;if(!Pt(_0x396814,_0x2e89dc))continue;const _0x2bbe72=_0x396814[_0x3024('0x137')]();if(_0x2bbe72['containsRange'](_0x11cf46,!0x0))return null;_0x14c343=_0x14c343[_0x3024('0x79')](_0x2bbe72[_0x3024('0x163')])?_0x14c343:_0x2bbe72['start'],_0x49cb54=_0x49cb54[_0x3024('0xa6')](_0x2bbe72[_0x3024('0x51')])?_0x49cb54:_0x2bbe72[_0x3024('0x51')],_0x2574d1?_0x2bbe72['start'][_0x3024('0x79')](_0x2574d1['getFirstRange']()['start'])?(_0x2574d1[_0x3024('0xa4')](),_0x2574d1=_0x396814):_0x396814[_0x3024('0xa4')]():_0x2574d1=_0x396814;}const _0x7e1757=this[_0x3024('0x6f')][_0x3024('0x12d')](_0x14c343,_0x49cb54);if(_0x2574d1)this['_setSuggestionRange'](_0x2574d1,_0x7e1757);else{const _0x441c4f=_0x25b08a(),_0x20cddc=_0x14ebe1['id'];this[_0x3024('0x8')]({'id':_0x441c4f,'type':_0x3024('0x11c')+_0x571fd7,'data':_0x2db0cb,'createdAt':new Date(),'authorId':_0x20cddc,'attributes':_0x2e89dc}),this['_addSuggestionMarker'](_0x3024('0x11c')+_0x571fd7,_0x441c4f,_0x20cddc,_0x7e1757);}}return null;}[_0x3024('0xb4')](_0xc87a4e,_0x4a93b9,_0x53ef67=[],_0x4f9ccf=null,_0x75d0e1={}){_0x4a93b9['formatGroupId']||(_0x4a93b9['formatGroupId']=_0x4a93b9[_0x3024('0xf4')]),_0x4a93b9[_0x3024('0x15')]=_0xc87a4e['is'](_0x3024('0x10c')),_0x4f9ccf=_0x4f9ccf||Et(_0x4a93b9);const _0x46523a=_0x53ef67[_0x3024('0x53')](_0x598ef3=>Ot(_0x598ef3,this[_0x3024('0x6f')])),_0x80c4ee=_0xc87a4e['is'](_0x3024('0x10c'))?_0xc87a4e:Ot(_0xc87a4e,this[_0x3024('0x6f')]);if('never'===this[_0x3024('0x5a')]){const _0x3f1994=this[_0x3024('0x71')][_0x3024('0x11a')](_0x3024('0x85'),_0x4f9ccf,'accept');return this[_0x3024('0x125')](()=>_0x3f1994([_0x80c4ee],_0x4a93b9,_0x75d0e1)),null;}_0x46523a[_0x3024('0xdc')](_0x80c4ee);let _0x4aac59=!0x0;for(const _0x1691d3 of _0x46523a)if(!this[_0x3024('0xf0')](_0x1691d3)){_0x4aac59=!0x1;break;}if(_0x4aac59&&_0x3024('0x8c')!==this[_0x3024('0x5a')]){const _0x20986e=this[_0x3024('0x71')]['getSuggestionCallback']('formatBlock',_0x4f9ccf,_0x3024('0x14c'));return this['forceDefaultExecution'](()=>_0x20986e([_0x80c4ee],_0x4a93b9,_0x75d0e1)),null;}let _0x1cb0be=null,_0x5b00ca=_0x80c4ee['start'],_0x4cc693=_0x80c4ee[_0x3024('0x51')];for(const {suggestion:_0x4ff239,meta:_0xee4e4c}of this[_0x3024('0x148')](_0x80c4ee,_0x3024('0x85'))){if(!_0xee4e4c['isOwn'])continue;if(_0xee4e4c[_0x3024('0x23')]||_0xee4e4c[_0x3024('0xda')]||_0xee4e4c[_0x3024('0x29')])continue;if(_0x4ff239[_0x3024('0x49')][_0x3024('0x112')]!=_0x4a93b9[_0x3024('0x112')])continue;if(!Pt(_0x4ff239,_0x75d0e1))continue;const _0x5006c0=_0x4ff239[_0x3024('0x137')]();if(_0x4ff239['subType']==_0x4f9ccf){if(_0x5006c0[_0x3024('0xb6')](_0x80c4ee,!0x0))return null;_0x5b00ca=_0x5b00ca[_0x3024('0x79')](_0x5006c0[_0x3024('0x163')])?_0x5b00ca:_0x5006c0[_0x3024('0x163')],_0x4cc693=_0x4cc693[_0x3024('0xa6')](_0x5006c0[_0x3024('0x51')])?_0x4cc693:_0x5006c0[_0x3024('0x51')],_0x1cb0be?_0x5006c0['start']['isBefore'](_0x1cb0be[_0x3024('0x137')]()[_0x3024('0x163')])?(_0x1cb0be[_0x3024('0xa4')](),_0x1cb0be=_0x4ff239):_0x4ff239['removeMarkers']():_0x1cb0be=_0x4ff239;}else{const _0x1251a5=_0x80c4ee[_0x3024('0xfd')](_0x5006c0);this[_0x3024('0xdf')](_0x4ff239,_0x1251a5);}}const _0x529b91=this['editor'][_0x3024('0x5c')][_0x3024('0xa0')]('Users')['me'],_0x12e4ec=_0x25b08a(),_0x444e49=_0x529b91['id'];if(_0x1cb0be)return this[_0x3024('0x75')](_0x1cb0be,this['_model'][_0x3024('0x12d')](_0x5b00ca,_0x4cc693)),_0x1cb0be;{const _0x1574f5=this['_setSuggestionData']({'id':_0x12e4ec,'type':'formatBlock:'+_0x4f9ccf,'data':_0x4a93b9,'createdAt':new Date(),'authorId':_0x444e49,'attributes':_0x75d0e1});return this[_0x3024('0xe6')](_0x3024('0x12b')+_0x4f9ccf,_0x12e4ec,_0x444e49,this[_0x3024('0x6f')]['createRange'](_0x5b00ca,_0x4cc693)),_0x1574f5;}}[_0x3024('0xa8')](_0x479a47,_0x338d31,_0x4eafda=[],_0x420224=null,_0x5ddff3={}){_0x338d31[_0x3024('0x112')]||(_0x338d31[_0x3024('0x112')]=_0x338d31['commandName']);const _0x4af162=_0x479a47[0x0];_0x338d31[_0x3024('0x15')]=_0x4af162['is'](_0x3024('0x10c')),_0x420224=_0x420224||Et(_0x338d31);const _0x4032cd=_0x4eafda[_0x3024('0x53')](_0x462fa1=>Ot(_0x462fa1,this[_0x3024('0x6f')])),_0x4840e3=_0x4af162['is']('range')?_0x479a47:_0x479a47[_0x3024('0x53')](_0x26e655=>Ot(_0x26e655,this[_0x3024('0x6f')]));if(_0x3024('0x56')===this[_0x3024('0x5a')]){const _0x5b5217=this[_0x3024('0x71')][_0x3024('0x11a')](_0x3024('0x85'),_0x420224,_0x3024('0x14c'));return this[_0x3024('0x125')](()=>_0x5b5217(_0x4840e3,_0x338d31,_0x5ddff3)),null;}_0x4032cd[_0x3024('0xdc')](..._0x4840e3);let _0x38cefc=!0x0;for(const _0x595161 of _0x4032cd)if(!this[_0x3024('0xf0')](_0x595161)){_0x38cefc=!0x1;break;}if(_0x38cefc&&_0x3024('0x8c')!==this[_0x3024('0x5a')]){const _0x599486=this[_0x3024('0x71')][_0x3024('0x11a')](_0x3024('0x85'),_0x420224,_0x3024('0x14c'));return this[_0x3024('0x125')](()=>_0x599486(_0x4840e3,_0x338d31,_0x5ddff3)),null;}const _0x424fa0=this[_0x3024('0x154')][_0x3024('0x5c')][_0x3024('0xa0')]('Users')['me'];for(const _0x412e1a of this[_0x3024('0x44')]()){if(_0x412e1a[_0x3024('0x1d')]['id']!=_0x424fa0['id'])continue;if(_0x3024('0x85')!=_0x412e1a[_0x3024('0x132')]||_0x412e1a[_0x3024('0x49')][_0x3024('0x112')]!=_0x338d31[_0x3024('0x112')])continue;if(!Pt(_0x412e1a,_0x5ddff3))continue;const _0x51e10a=_0x412e1a[_0x3024('0x7c')]==_0x420224;for(let _0x5778e9=0x0;_0x5778e9<_0x4840e3[_0x3024('0x2')];_0x5778e9++){const _0x52b640=_0x4840e3[_0x5778e9];for(const _0x4787af of _0x412e1a[_0x3024('0xae')]()){const _0x4201d0=_0x4787af[_0x3024('0x3')]();if(_0x52b640[_0x3024('0xc9')](_0x4201d0)){_0x51e10a?(_0x4840e3['splice'](_0x5778e9,0x1),_0x5778e9--):_0x412e1a['removeMarker'](_0x4787af[_0x3024('0x17d')]);break;}}}}if(0x0==_0x4840e3['length'])return null;const _0x3d24b6=this[_0x3024('0x71')][_0x3024('0x11a')](_0x3024('0x85'),_0x420224,_0x3024('0x175'));for(const _0x27d382 of this[_0x3024('0x44')]())if(_0x27d382['author']['id']==_0x424fa0['id']&&_0x3024('0x85')==_0x27d382['type']&&_0x27d382[_0x3024('0x49')][_0x3024('0x112')]==_0x338d31[_0x3024('0x112')]&&_0x27d382[_0x3024('0x7c')]==_0x420224&&Pt(_0x27d382,_0x5ddff3)&&(_0x3d24b6(_0x27d382['getRanges'](),_0x4840e3)||_0x3d24b6(_0x4840e3,_0x27d382[_0x3024('0x84')]()))){for(const _0x12808c of _0x4840e3)_0x27d382[_0x3024('0x13c')](_0x12808c);return _0x27d382;}const _0x46c71e=_0x25b08a(),_0x295fb8=_0x424fa0['id'],_0x6ae9e7=_0x3024('0x12b')+_0x420224,_0x5c08d0=this[_0x3024('0x8')]({'id':_0x46c71e,'type':_0x6ae9e7,'data':_0x338d31,'createdAt':new Date(),'authorId':_0x295fb8,'attributes':_0x5ddff3});for(const _0x58c7b0 of _0x4840e3)this[_0x3024('0xe6')](_0x6ae9e7,_0x46c71e,_0x295fb8,_0x58c7b0,_0x1f2ce3['getMultiRangeId']());return _0x5c08d0;}[_0x3024('0x161')](_0x40c864,_0x1f3ab2=null,_0x5a6147={}){if(_0x40c864['isCollapsed'])return null;const _0x29af35=this[_0x3024('0x154')][_0x3024('0x5c')]['get'](_0x3024('0xd8'))['me'],_0x15cafd=new _0x205e8b(_0x40c864[_0x3024('0x163')],_0x40c864[_0x3024('0x51')]);for(const {suggestion:_0xa4608d,meta:_0x2b913f}of this[_0x3024('0x148')](_0x15cafd,_0x3024('0xac')))if(_0x2b913f[_0x3024('0xf8')]&&!_0x2b913f[_0x3024('0x23')]){if(_0xa4608d[_0x3024('0x8a')]){const _0x5665a1=_0xa4608d['getRanges']()[_0x3024('0x17a')](_0x2fd3b1=>_0x3024('0xb5')!=_0x2fd3b1[_0x3024('0xd0')][_0x3024('0x6e')]);_0x5665a1[_0x3024('0x9b')](_0x3913fb=>_0x15cafd['containsRange'](_0x3913fb,!0x0))&&_0xa4608d['discard']();if(_0x5665a1[_0x3024('0x30')](_0x27c499=>_0x27c499[_0x3024('0xb6')](_0x15cafd,!0x0))){const _0x478747=this[_0x3024('0x71')][_0x3024('0x11a')](_0x3024('0x16'),_0x1f3ab2,_0x3024('0x14c'));return this[_0x3024('0x125')](()=>_0x478747([_0x15cafd],null,_0x5a6147)),null;}}else{const _0x1094e8=_0x15cafd[_0x3024('0xfd')](_0xa4608d[_0x3024('0x137')]());null!==_0x1094e8&&_0xa4608d[_0x3024('0x45')]([_0x1094e8],null,_0x5a6147);}}if(_0x15cafd[_0x3024('0xa2')](),_0x15cafd[_0x3024('0x3c')]||_0x3024('0xb5')==_0x15cafd[_0x3024('0xd0')]['rootName'])return null;let _0xd3fcf8=null,_0x47bdd7=_0x15cafd['start'],_0x238608=_0x15cafd[_0x3024('0x51')];const _0x3658c7=this[_0x3024('0x148')](_0x15cafd,'deletion');for(const {suggestion:_0x18dc85,meta:_0x1bc42a}of _0x3658c7){const _0x29d969=this[_0x3024('0x6f')][_0x3024('0x12d')](_0x47bdd7,_0x238608);if(_0x1bc42a[_0x3024('0xf8')]&&(this[_0x3024('0x139')]||!_0x1bc42a['containsRangeInObject']&&!_0x1bc42a[_0x3024('0x29')])){if(_0x18dc85['isMultiRange']){if(!Pt(_0x18dc85,_0x5a6147))continue;let _0x529096=!0x0;for(const _0x2fb155 of _0x18dc85[_0x3024('0x84')]()){if(_0x2fb155[_0x3024('0xb6')](_0x29d969,!0x0))return _0x18dc85;_0x29d969[_0x3024('0xb6')](_0x2fb155)||(_0x529096=!0x1);}_0x529096&&_0x18dc85[_0x3024('0x40')]();}else{const _0x5b8a65=_0x18dc85['getFirstRange']();if(_0x5b8a65[_0x3024('0xb6')](_0x29d969,!0x0))return _0x18dc85;if(!Pt(_0x18dc85,_0x5a6147)){_0x29d969[_0x3024('0xb6')](_0x5b8a65)?_0x18dc85[_0x3024('0xa4')]():_0x5b8a65[_0x3024('0x105')](_0x47bdd7)?_0x47bdd7=_0x5b8a65[_0x3024('0x51')]:_0x5b8a65[_0x3024('0x105')](_0x238608)&&(_0x238608=_0x5b8a65['start']);continue;}_0x47bdd7=_0x47bdd7[_0x3024('0x79')](_0x5b8a65[_0x3024('0x163')])?_0x47bdd7:_0x5b8a65[_0x3024('0x163')],_0x238608=_0x238608[_0x3024('0xa6')](_0x5b8a65[_0x3024('0x51')])?_0x238608:_0x5b8a65[_0x3024('0x51')],_0x5a6147=Object['assign']({},_0x18dc85['attributes']),_0xd3fcf8?_0x5b8a65[_0x3024('0x163')]['isBefore'](_0xd3fcf8[_0x3024('0x137')]()['start'])?(_0xd3fcf8[_0x3024('0xa4')](),_0xd3fcf8=_0x18dc85):_0x18dc85[_0x3024('0xa4')]():_0xd3fcf8=_0x18dc85;}}}if(_0xd3fcf8)return this[_0x3024('0x75')](_0xd3fcf8,this['_model'][_0x3024('0x12d')](_0x47bdd7,_0x238608)),_0xd3fcf8;{const _0x5e4e32=_0x25b08a(),_0x5c6d91=this[_0x3024('0x6f')][_0x3024('0x12d')](_0x47bdd7,_0x238608),_0x441b48=_0x29af35['id'],_0x3a1cc4=_0x1f3ab2?_0x3024('0x119')+_0x1f3ab2:'deletion',_0x35ee1d=this['_setSuggestionData']({'id':_0x5e4e32,'type':_0x3a1cc4,'createdAt':new Date(),'authorId':_0x441b48,'attributes':_0x5a6147});return this['_addSuggestionMarker'](_0x3a1cc4,_0x5e4e32,_0x441b48,_0x5c6d91),_0x35ee1d;}}[_0x3024('0x2f')](_0x2b916d,_0x2753ba='multi',_0x5bd077={}){const _0x39e2d2=this[_0x3024('0x154')][_0x3024('0x5c')][_0x3024('0xa0')](_0x3024('0xd8'))['me'],_0x12dd5c=_0x2b916d[_0x3024('0x53')](_0x1ada4a=>new _0x205e8b(_0x1ada4a[_0x3024('0x163')],_0x1ada4a[_0x3024('0x51')])),_0x43852e=new Set();for(const {suggestion:_0x5986f8,meta:_0x52b6a4}of this[_0x3024('0x148')](_0x12dd5c,'insertion'))_0x52b6a4[_0x3024('0xf8')]&&!_0x52b6a4['isNextTo']&&_0x43852e['add'](_0x5986f8);for(const _0x274bf3 of _0x43852e)if(_0x274bf3[_0x3024('0x8a')]){const _0x1797bb=_0x274bf3[_0x3024('0x84')]();(!_0x274bf3['attributes']||!_0x274bf3[_0x3024('0x3e')]['skipNestingCheck'])&&(_0x1797bb[_0x3024('0x9b')](_0x1cac32=>_0x12dd5c[_0x3024('0x30')](_0x198858=>_0x198858['containsRange'](_0x1cac32,!0x0)))&&_0x274bf3[_0x3024('0x40')]());if(_0x12dd5c[_0x3024('0x9b')](_0x4a27c7=>_0x1797bb[_0x3024('0x30')](_0x4c775d=>_0x4c775d[_0x3024('0xb6')](_0x4a27c7,!0x0)))){const _0x4056d4=this[_0x3024('0x71')][_0x3024('0x11a')]('deletion',_0x2753ba,_0x3024('0x14c'));return this[_0x3024('0x125')](()=>_0x4056d4(_0x2b916d,null,_0x5bd077)),null;}}else{const _0x3a736b=_0x274bf3[_0x3024('0x137')]();_0x12dd5c['some'](_0x2127f0=>_0x2127f0[_0x3024('0xb6')](_0x3a736b,!0x0))&&_0x274bf3['discard']();if(_0x12dd5c[_0x3024('0x9b')](_0x102528=>_0x3a736b[_0x3024('0xb6')](_0x102528,!0x0))){const _0x41a6f7=this['_suggestionFactory'][_0x3024('0x11a')](_0x3024('0x16'),_0x2753ba,_0x3024('0x14c'));return this[_0x3024('0x125')](()=>_0x41a6f7(_0x12dd5c,null,_0x5bd077)),null;}}const _0x3960af=this['_suggestionFactory'][_0x3024('0x11a')](_0x3024('0x16'),_0x2753ba,'join');let _0x523174=null;for(const _0x1651ce of this[_0x3024('0x44')]())if(_0x1651ce['author']['id']==_0x39e2d2['id']&&_0x1651ce[_0x3024('0x144')]&&_0x3024('0x16')==_0x1651ce['type']&&_0x1651ce[_0x3024('0x7c')]==_0x2753ba&&Pt(_0x1651ce,_0x5bd077)&&(_0x3960af(_0x1651ce[_0x3024('0x84')](),_0x12dd5c)||_0x3960af(_0x12dd5c,_0x1651ce['getRanges']()))){if(_0x523174){if(_0x1651ce[_0x3024('0x37')]&&_0x1651ce[_0x3024('0x37')][_0x3024('0x2')])continue;for(const _0x468fe1 of _0x1651ce[_0x3024('0x84')]())_0x523174['isIntersectingWithRange'](_0x468fe1)||_0x523174['addRange'](_0x468fe1);_0x1651ce[_0x3024('0xa4')]();}else{_0x523174=_0x1651ce;for(const _0x52182f of _0x12dd5c)_0x1651ce['isIntersectingWithRange'](_0x52182f)||_0x1651ce['addRange'](_0x52182f);}}if(_0x523174)return _0x523174;_0x43852e[_0x3024('0x101')]();for(const {suggestion:_0x45bc73,meta:_0x287b4b}of this[_0x3024('0x148')](_0x12dd5c,_0x3024('0x16')))_0x287b4b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x287b4b[_0x3024('0xda')]&&!_0x287b4b['isInsideObject'])&&Pt(_0x45bc73,_0x5bd077)&&_0x43852e[_0x3024('0x54')](_0x45bc73);for(const _0x4bddc of _0x43852e){const _0x4aab0c=_0x4bddc['getRanges']();if(!_0x5bd077||!_0x5bd077['skipNestingCheck']){if(_0x12dd5c['every'](_0x573cc8=>_0x4aab0c[_0x3024('0x30')](_0x475ed9=>_0x475ed9[_0x3024('0xb6')](_0x573cc8,!0x0))))return _0x4bddc;}(!_0x4bddc['attributes']||!_0x4bddc[_0x3024('0x3e')][_0x3024('0xd1')])&&(_0x4aab0c[_0x3024('0x9b')](_0x119593=>_0x12dd5c[_0x3024('0x30')](_0x6729d3=>_0x6729d3[_0x3024('0xb6')](_0x119593,!0x0)))&&_0x4bddc['discard']());}const _0x1264c8=_0x25b08a(),_0x38c844=_0x39e2d2['id'],_0xd33703=_0x3024('0x119')+_0x2753ba,_0x2083c0=this[_0x3024('0x8')]({'id':_0x1264c8,'type':_0xd33703,'createdAt':new Date(),'authorId':_0x38c844,'attributes':_0x5bd077});for(const _0x1df1a5 of _0x12dd5c)_0x1df1a5[_0x3024('0xa2')](),_0x1df1a5[_0x3024('0x3c')]||_0x3024('0xb5')==_0x1df1a5[_0x3024('0xd0')][_0x3024('0x6e')]||this[_0x3024('0xe6')](_0xd33703,_0x1264c8,_0x38c844,_0x1df1a5,_0x1f2ce3[_0x3024('0x117')]());return _0x2083c0;}[_0x3024('0x16f')](_0x40fe36,_0xe294c8,_0x27e892,_0x1de251,_0x13a079){if(_0x40fe36[_0x3024('0x3c')])return[];if(_0x3024('0x56')===this[_0x3024('0x5a')])return[];const _0x1facc7=this[_0x3024('0x154')][_0x3024('0x5c')]['get'](_0x3024('0xd8'))['me']['id'],_0x25a1fb=Array['from'](this[_0x3024('0xe1')][_0x3024('0x178')]())['filter'](_0x1736dc=>_0x3024('0x13f')==_0x1736dc['type']&&_0x1736dc[_0x3024('0x49')][_0x3024('0xb8')]==_0xe294c8&&_0x1736dc[_0x3024('0xfc')](_0x40fe36));if(_0x3024('0x93')===this['_trackFormatChanges']){const _0x260eb4=this[_0x3024('0x148')](_0x40fe36,_0x3024('0xac'))['filter'](({meta:_0xfac6a9})=>_0xfac6a9[_0x3024('0xf8')]&&!_0xfac6a9[_0x3024('0x29')]&&!_0xfac6a9['isNextTo'])[_0x3024('0x53')](({suggestion:_0x432012})=>_0x432012);_0x25a1fb['unshift'](..._0x260eb4);}const _0x3f491a=new Map([[_0x40fe36,_0x27e892]]);for(const _0x1c4425 of _0x25a1fb){const _0x134cb1='attribute'==_0x1c4425['type']?_0x1c4425[_0x3024('0x49')][_0x3024('0xf5')]:void 0x0,_0x5697a8=_0x1c4425['getFirstRange'](),_0x4b3cd4=Array['from'](_0x3f491a[_0x3024('0x19')]())[_0x3024('0x33')](_0x14a73d=>_0x14a73d[_0x3024('0x134')](_0x5697a8));if(!_0x4b3cd4)continue;const _0x2cc487=_0x4b3cd4[_0x3024('0x13e')](_0x5697a8);this[_0x3024('0x7e')](_0xe294c8)&&'insertion'==_0x1c4425['type']&&0x0!=_0x2cc487['length']||(_0x3f491a[_0x3024('0x108')](_0x4b3cd4),_0x2cc487['forEach'](_0x18fcd9=>{_0x3f491a[_0x3024('0x17c')](_0x18fcd9,_0x27e892);}),_0x3024('0xac')!=_0x1c4425[_0x3024('0x132')]&&_0x134cb1!=_0x1de251&&_0x3f491a[_0x3024('0x17c')](_0x4b3cd4[_0x3024('0xfd')](_0x5697a8),_0x134cb1));}const _0x229d91=[];for(const [_0x493653,_0x4bcedd]of _0x3f491a){const _0x225398=_0x25b08a(),_0xe10387={'key':_0xe294c8,'oldValue':_0x4bcedd,'newValue':_0x1de251};_0xe294c8['length']>0x25&&console[_0x3024('0x4e')](_0x3024('0xb0'),{'key':_0xe294c8});const _0x4c9dec=('attribute:'+(_0xe294c8+'|'+Et({'newValue':_0x1de251})))[_0x3024('0x11d')](0x0,0x3c),_0x21cafc=this[_0x3024('0x8')]({'id':_0x225398,'type':_0x4c9dec,'data':_0xe10387,'createdAt':new Date(),'authorId':_0x1facc7,'attributes':_0x13a079});_0x229d91[_0x3024('0xdc')](_0x21cafc),this['_addSuggestionMarker'](_0x4c9dec,_0x225398,_0x1facc7,_0x493653);}return _0x229d91;}[_0x3024('0x59')](_0x2db657){this[_0x3024('0x90')][_0x3024('0x54')](_0x2db657);}[_0x3024('0x38')](_0x2d47b8){this['_inlineAttributeKeys'][_0x3024('0x54')](_0x2d47b8);}[_0x3024('0xe9')](_0x5dd4d5,_0x3cd8a1=[],_0x48cf9e=[]){this[_0x3024('0xde')](_0x5dd4d5,(_0x5c48c6,..._0x1404e4)=>{this[_0x3024('0x12e')](()=>{_0x5c48c6(..._0x1404e4);});});for(const _0x45df8c of _0x3cd8a1)this[_0x3024('0x38')](_0x45df8c);for(const _0x4b5c79 of _0x48cf9e)this[_0x3024('0x59')](_0x4b5c79);}[_0x3024('0x72')](_0x4bb513){return _0x3024('0x13f')==_0x4bb513[_0x3024('0x132')]?_0x4bb513[_0x3024('0x7c')][_0x3024('0x28')]('|')[0x0]:null;}[_0x3024('0x75')](_0x1028d8,_0x640f35){const _0x3572d4=_0x1028d8['getFirstMarker']();this[_0x3024('0x6f')][_0x3024('0x11f')](_0x5bf5c7=>{_0x5bf5c7[_0x3024('0x11')](_0x3572d4,{'range':_0x640f35});});}[_0x3024('0x150')](_0x5a3497){const _0x223808=_0x5a3497['id'],_0x2a47c5=this[_0x3024('0x154')][_0x3024('0xb9')]['get'](_0x3024('0x123'));this[_0x3024('0xa')][_0x3024('0xbc')](_0x223808)||this[_0x3024('0xa')][_0x3024('0x6a')]({'channelId':_0x2a47c5,'threadId':_0x223808,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5087e4=this[_0x3024('0xa')][_0x3024('0xc4')](_0x223808);_0x5087e4['unbind']('isRemovable'),_0x5087e4['isRemovable']=!0x1,_0x5a3497['commentThread']=_0x5087e4;}[_0x3024('0xc6')](_0x4f2e07,_0x4ec40f,_0x1ad4c8,_0xb18d5d){if(_0x4f2e07['type']!=_0x4ec40f||_0x4f2e07[_0x3024('0x7c')]!=_0x1ad4c8||_0x4f2e07[_0x3024('0x10b')]['id']!=_0xb18d5d)throw this[_0x3024('0x154')][_0x3024('0x4')]('track-changes-suggestion-data-mismatch'),new _0x255fda(_0x3024('0x1a'),this);}[_0x3024('0xdf')](_0x5529e4,_0x144ad6){const _0xb4225f=_0x5529e4[_0x3024('0x137')]();if(_0x144ad6[_0x3024('0xc9')](_0xb4225f))_0x5529e4[_0x3024('0xa4')]();else{if(_0xb4225f['containsRange'](_0x144ad6)){const _0x5ea3c0=this[_0x3024('0x6f')][_0x3024('0x17')](_0x144ad6[_0x3024('0x163')]['nodeBefore'],_0x3024('0x51'));this['_setSuggestionRange'](_0x5529e4,this[_0x3024('0x6f')][_0x3024('0x12d')](_0xb4225f[_0x3024('0x163')],_0x5ea3c0));const _0x225724=_0x25b08a(),_0x26b772=_0x5529e4['creator']['id'],_0xcd470b=_0x5529e4[_0x3024('0x132')]+':'+_0x5529e4[_0x3024('0x7c')];this[_0x3024('0x8')]({'id':_0x225724,'type':_0xcd470b,'createdAt':new Date(),'authorId':_0x26b772,'data':_0x5529e4[_0x3024('0x49')],'attributes':_0x5529e4[_0x3024('0x3e')]});const _0x168d8d=this['_model']['createPositionAt'](_0x144ad6['end']['parent'],_0x3024('0x24')),_0x2d6cbb=this[_0x3024('0x6f')][_0x3024('0x12d')](_0x168d8d,_0xb4225f['end']);this[_0x3024('0xe6')](_0xcd470b,_0x225724,_0x26b772,_0x2d6cbb);}else{if(_0xb4225f[_0x3024('0x105')](_0x144ad6[_0x3024('0x163')])){const _0x46ad52=this[_0x3024('0x6f')][_0x3024('0x17')](_0x144ad6[_0x3024('0x163')][_0x3024('0x4c')],_0x3024('0x51'));this[_0x3024('0x75')](_0x5529e4,this[_0x3024('0x6f')][_0x3024('0x12d')](_0xb4225f[_0x3024('0x163')],_0x46ad52));}else{const _0x9c5590=this[_0x3024('0x6f')][_0x3024('0x17')](_0x144ad6[_0x3024('0x51')][_0x3024('0x7f')],_0x3024('0x24'));this[_0x3024('0x75')](_0x5529e4,this[_0x3024('0x6f')][_0x3024('0x12d')](_0x9c5590,_0xb4225f['end']));}}}}[_0x3024('0xf0')](_0x15c421){for(const {suggestion:_0x13c762,meta:_0x735e3a}of this[_0x3024('0x148')](_0x15c421,_0x3024('0xac'))){if(!_0x735e3a[_0x3024('0xf8')])continue;const _0xbc7b18=_0x13c762[_0x3024('0x84')]();for(const _0x5e9362 of _0xbc7b18)if(!_0x15c421[_0x3024('0x13e')](_0x5e9362)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1d05e6){const _0x3c350c=this[_0x3024('0x154')][_0x3024('0x5c')][_0x3024('0xa0')](_0x3024('0xd8'))['getUser'](_0x1d05e6);if(!_0x3c350c)throw new _0x255fda(_0x3024('0xd3'),this);return _0x3c350c;}[_0x3024('0xaa')](_0x1221ff){const _0x15fff5=this['editor'][_0x3024('0x5c')][_0x3024('0xa0')](_0x3024('0xd8')),_0x463567=_0x4a1e6a(_0x3024('0x11b')+_0x1221ff),_0x4ac671=_0x15fff5[_0x3024('0x10a')](_0x463567);return _0x4ac671||_0x15fff5[_0x3024('0x16e')]({'id':_0x463567,'name':_0x1221ff});}['_createSuggestion'](_0x6f507c,_0x386fad,_0x4fa913,_0x43e1cd,_0x2f17e3){const _0x4e7ec8=this[_0x3024('0x126')](_0x43e1cd),_0x35eed7=this[_0x3024('0x71')][_0x3024('0xc')](_0x6f507c,_0x386fad,_0x4fa913,_0x4e7ec8,_0x2f17e3,_0x2aec11=>{this[_0x3024('0x14a')](_0x4fa913,{'attributes':_0x2aec11});const _0x156a89=this[_0x3024('0x179')](_0x4fa913);this[_0x3024('0x68')](new Set([_0x156a89])),this['_refreshSuggestionsChain'](new Set([_0x156a89]));});return this[_0x3024('0x128')](_0x35eed7,_0x3024('0x14c'),()=>{this['_updateSuggestionData'](_0x4fa913,{'state':_0x3024('0x14e')});},{'priority':_0x3024('0x41')}),this[_0x3024('0x128')](_0x35eed7,_0x3024('0x40'),()=>{this['_updateSuggestionData'](_0x4fa913,{'state':_0x3024('0x177')});},{'priority':_0x3024('0x41')}),this['_suggestions'][_0x3024('0x17c')](_0x4fa913,_0x35eed7),this[_0x3024('0x16b')][_0x3024('0x17c')](_0x35eed7,_0x3024('0xb')),_0x35eed7;}[_0x3024('0xdd')](_0x3a144e){const _0x2ba0fb=_0x3a144e[_0x3024('0x28')](':');return{'group':_0x2ba0fb[0x0],'type':_0x2ba0fb[0x1],'subType':_0x2ba0fb[_0x3024('0x2')]>=0x5?_0x2ba0fb[0x2]:null,'id':_0x2ba0fb[_0x3024('0x2')]<0x5?_0x2ba0fb[0x2]:_0x2ba0fb[0x3],'authorId':_0x2ba0fb[_0x3024('0x2')]<0x5?_0x2ba0fb[0x3]:_0x2ba0fb[0x4],'markerCount':0x6==_0x2ba0fb[_0x3024('0x2')]?_0x2ba0fb[0x5]:null};}[_0x3024('0x162')](_0x499e7b,_0x7d11c5,_0x3ddf6d){const _0x39b4c7=_0x499e7b['getFirstRange'](),_0x35506e=_0x39b4c7[_0x3024('0x163')],_0x2ad953=_0x39b4c7[_0x3024('0x51')];this[_0x3024('0x75')](_0x499e7b,this[_0x3024('0x6f')][_0x3024('0x12d')](_0x35506e,_0x7d11c5));const _0x493ea4=_0x25b08a(),_0x3c4be1=_0x499e7b['creator']['id'],_0xd16c89=_0x499e7b[_0x3024('0x132')]+(_0x499e7b[_0x3024('0x7c')]?':'+_0x499e7b[_0x3024('0x7c')]:'');this[_0x3024('0x8')]({'id':_0x493ea4,'type':_0xd16c89,'createdAt':new Date(),'authorId':_0x3c4be1,'originalSuggestionId':_0x499e7b['id'],'attributes':_0x499e7b[_0x3024('0x3e')],'data':_0x499e7b['data']});const _0x1e646d=this[_0x3024('0x72')](_0x499e7b);(_0x3024('0x85')==_0x499e7b[_0x3024('0x132')]||_0x1e646d&&this[_0x3024('0x7e')](_0x1e646d))&&(_0x3ddf6d=this[_0x3024('0x6f')][_0x3024('0x145')](_0x3ddf6d[_0x3024('0x7f')])),this['_addSuggestionMarker'](_0xd16c89,_0x493ea4,_0x3c4be1,this[_0x3024('0x6f')]['createRange'](_0x3ddf6d,_0x2ad953));}[_0x3024('0x148')](_0x4a2b75,_0x28988b=null){const _0x82472e=[],_0x418ec2=this['editor'][_0x3024('0x5c')]['get'](_0x3024('0xd8'))['me'];Array[_0x3024('0x151')](_0x4a2b75)||(_0x4a2b75=[_0x4a2b75]);for(const _0x28946a of this['getSuggestions']()){if(!_0x28946a[_0x3024('0x144')])continue;if(_0x28988b&&_0x28946a[_0x3024('0x132')]!=_0x28988b)continue;let _0x4785e4=!0x1;for(const _0x134aa7 of _0x28946a[_0x3024('0x84')]()){for(const _0x7bb8ad of _0x4a2b75){const _0x4f61d1=_0x7bb8ad['start'][_0x3024('0xc9')](_0x134aa7[_0x3024('0x51')])||_0x7bb8ad['end'][_0x3024('0xc9')](_0x134aa7['start']);if(_0x4f61d1||_0x7bb8ad[_0x3024('0xfd')](_0x134aa7)){const _0x127f84=_0x7bb8ad[_0x3024('0xb6')](_0x134aa7)&&xt(this[_0x3024('0x6f')][_0x3024('0x104')],_0x134aa7['start'],_0x7bb8ad),_0x4dbe35=_0x134aa7[_0x3024('0xb6')](_0x7bb8ad)&&xt(this['_model'][_0x3024('0x104')],_0x7bb8ad['start'],_0x134aa7);_0x82472e[_0x3024('0xdc')]({'suggestion':_0x28946a,'meta':{'isOwn':_0x418ec2==_0x28946a['author'],'isNextTo':_0x4f61d1,'isInsideObject':_0x127f84,'containsRangeInObject':_0x4dbe35}}),_0x4785e4=!0x0;break;}}if(_0x4785e4)break;}}return _0x82472e;}['_addSuggestionMarker'](_0x16657b,_0x291a35,_0x6383de,_0x5c4e60,_0x13ce1a){this[_0x3024('0x6f')][_0x3024('0x11f')](_0x4b5ccc=>{let _0x2fac6e=_0x3024('0x9')+_0x16657b+':'+_0x291a35+':'+_0x6383de;_0x13ce1a&&(_0x2fac6e=_0x2fac6e+':'+_0x13ce1a),_0x4b5ccc[_0x3024('0x127')](_0x2fac6e,{'range':_0x5c4e60,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x3024('0x43')](_0x19e4c5){const _0x1027b3=_0x19e4c5['previous'],_0x45e3e5=_0x19e4c5[_0x3024('0x130')];_0x19e4c5['previous']=null,_0x19e4c5[_0x3024('0x130')]=null,null!=_0x1027b3&&_0x1027b3[_0x3024('0x130')]==_0x19e4c5&&(_0x1027b3[_0x3024('0x130')]=_0x45e3e5),null!=_0x45e3e5&&_0x45e3e5['previous']==_0x19e4c5&&(_0x45e3e5[_0x3024('0x16a')]=_0x1027b3),'ready'==this[_0x3024('0x16b')][_0x3024('0xa0')](_0x19e4c5)&&(this[_0x3024('0x16b')]['set'](_0x19e4c5,_0x3024('0x3f')),this[_0x3024('0xa3')](_0x3024('0xaf'),_0x19e4c5,_0x1027b3,_0x45e3e5));}['_setSuggestionData'](_0x5dc8ca){const _0x4c7e76=_0x5dc8ca['id'],_0x44c105=this[_0x3024('0x25')](_0x5dc8ca);if(this['_adapter']&&this['_adapter'][_0x3024('0xbf')]){const _0x53560f=this['editor']['plugins'][_0x3024('0xa0')](_0x3024('0xa9')),_0x91df99=_0x44c105[_0x3024('0x8f')],_0xd63110=_0x44c105[_0x3024('0x7c')]?_0x44c105[_0x3024('0x132')]+':'+_0x44c105['subType']:_0x44c105[_0x3024('0x132')],_0x63d1fb=this[_0x3024('0x154')]['locale'],_0x577a98=_0x53560f[_0x3024('0x54')](_0x44f115(_0x63d1fb,_0x3024('0xea'))),_0x56959e={'id':_0x4c7e76,'type':_0xd63110,'hasComments':_0x91df99,'data':_0x5dc8ca[_0x3024('0x49')]||null,'originalSuggestionId':_0x5dc8ca[_0x3024('0x1f')]||null,'attributes':_0x44c105['attributes']};this[_0x3024('0x60')][_0x3024('0xbf')](_0x56959e)[_0x3024('0x31')](_0x19eb95=>{_0x44c105[_0x3024('0x113')]=!0x0,_0x53560f[_0x3024('0x1e')](_0x577a98),_0x19eb95&&_0x19eb95[_0x3024('0x166')]&&(this[_0x3024('0xe1')][_0x3024('0xa0')](_0x4c7e76)[_0x3024('0x166')]=_0x19eb95[_0x3024('0x166')]);})[_0x3024('0x14b')](_0x4e9110=>{throw _0x59dd10(_0x3024('0x110')),this[_0x3024('0x154')][_0x3024('0xfa')][_0x3024('0x176')]({'isUndoable':!0x1},()=>{_0x44c105['discard']();}),_0x44c105[_0x3024('0x9f')](),this[_0x3024('0xe1')]['delete'](_0x44c105['id']),this[_0x3024('0x16b')][_0x3024('0x108')](_0x44c105),_0x4e9110;});}return _0x44c105;}[_0x3024('0x7e')](_0x71710b){return this['_blockAttributeKeys']['has'](_0x71710b);}['_updateSuggestionData'](_0x128fe8,_0x424b25){const _0x3fb59a=this[_0x3024('0x154')]['plugins'][_0x3024('0xa0')](_0x3024('0xa9')),_0x6e8d0a=this['getSuggestion'](_0x128fe8);if(this[_0x3024('0x60')]&&this[_0x3024('0x60')][_0x3024('0xe3')]){if(_0x6e8d0a[_0x3024('0x113')]){const _0x941a16=_0x3fb59a[_0x3024('0x54')](_0x44f115(this[_0x3024('0x154')][_0x3024('0xb2')],_0x3024('0xea')));this[_0x3024('0x60')]['updateSuggestion'](_0x128fe8,_0x424b25)[_0x3024('0x31')](()=>{_0x3fb59a[_0x3024('0x1e')](_0x941a16);});}else _0x6e8d0a['on'](_0x3024('0x26'),()=>{this['_updateSuggestionData'](_0x128fe8,_0x424b25);});}}[_0x3024('0xe7')](_0x1e1584){if(!this['_adapter']||!this[_0x3024('0x60')][_0x3024('0x179')])throw new _0x255fda(_0x3024('0xd9'),this);return this[_0x3024('0x60')][_0x3024('0x179')](_0x1e1584);}[_0x3024('0x155')](_0x547eeb){const {id:_0x691f76,type:_0x545b63,subType:_0x23fdfc,authorId:_0x19e3c5}=this[_0x3024('0xdd')](_0x547eeb),_0x585b54=this[_0x3024('0xe1')][_0x3024('0xa0')](_0x691f76)||this[_0x3024('0x156')](_0x545b63,_0x23fdfc,_0x691f76,_0x19e3c5,{});switch(this[_0x3024('0xc6')](_0x585b54,_0x545b63,_0x23fdfc,_0x19e3c5),this[_0x3024('0x16b')]['get'](_0x585b54)){case _0x3024('0xb'):this['_getSuggestionData'](_0x691f76)[_0x3024('0x31')](_0x598523=>{let _0x8a951f=Promise[_0x3024('0x107')]();_0x598523[_0x3024('0x8f')]&&(_0x8a951f=this[_0x3024('0xa')][_0x3024('0x159')]({'channelId':this['editor'][_0x3024('0xb9')]['get'](_0x3024('0x123')),'threadId':_0x691f76})),_0x8a951f['then'](()=>{this[_0x3024('0x25')](_0x598523)['_saved']=!0x0;});}),this[_0x3024('0x16b')][_0x3024('0x17c')](_0x585b54,_0x3024('0x5e'));break;case _0x3024('0x3f'):this[_0x3024('0x14a')](_0x691f76,{'state':_0x3024('0x50')});case _0x3024('0xe'):this['_suggestionState'][_0x3024('0x17c')](_0x585b54,_0x3024('0x81')),this['fire'](_0x3024('0x39'),_0x585b54);break;case _0x3024('0x81'):this['fire'](_0x3024('0x138'),_0x585b54);}return _0x585b54[_0x3024('0x141')](_0x547eeb),_0x585b54;}[_0x3024('0x96')](_0x232c92){const _0x42f068=Array['from'](_0x232c92),_0x4c0801=_0x42f068['filter'](_0x4f3aad=>_0x3024('0x13f')==_0x4f3aad[_0x3024('0x132')]);this[_0x3024('0x167')](_0x4c0801);const _0x118566=_0x42f068['filter'](_0x427fb5=>!_0x427fb5[_0x3024('0x8a')]&&_0x3024('0x13f')!=_0x427fb5['type']),_0x12fad3=this[_0x3024('0x44')]({'skipNotAttached':!0x0})[_0x3024('0x17a')](_0x28caf8=>!_0x28caf8['isMultiRange']&&_0x3024('0x13f')!=_0x28caf8[_0x3024('0x132')]),_0x5111b1=_0x12fad3[_0x3024('0x17a')](_0xbccd5e=>!_0x232c92[_0x3024('0x14f')](_0xbccd5e)),_0x40661f=new Map(_0x12fad3[_0x3024('0x53')](_0x31403f=>[_0x31403f,this[_0x3024('0x71')][_0x3024('0x11a')](_0x31403f[_0x3024('0x132')],_0x31403f[_0x3024('0x7c')],_0x3024('0x164'))])),_0x510c3f=new Map(_0x12fad3['map'](_0x1c8813=>[_0x1c8813,_0x1c8813[_0x3024('0x137')]()])),_0x238bc5=new Set(),_0x4bdcd4=new Set();for(let _0x1a459c=0x0;_0x1a459c<_0x118566[_0x3024('0x2')];_0x1a459c++)_0x5998d4(_0x118566[_0x1a459c],_0x118566,_0x1a459c+0x1);for(let _0x487b94=0x0;_0x487b94<_0x118566['length'];_0x487b94++)_0x5998d4(_0x118566[_0x487b94],_0x5111b1,0x0);const _0x14241f=new Set();for(let _0x4f34f5=0x0;_0x4f34f5<_0x118566[_0x3024('0x2')];_0x4f34f5++){const _0x5b0748=_0x118566[_0x4f34f5];!_0x4bdcd4[_0x3024('0x14f')](_0x5b0748)&&_0x5b0748[_0x3024('0x16a')]&&(_0x14241f[_0x3024('0x54')](_0x5b0748[_0x3024('0x16a')]),_0x5b0748['previous'][_0x3024('0x130')]===_0x5b0748&&(_0x5b0748['previous'][_0x3024('0x130')]=null),_0x5b0748[_0x3024('0x16a')]=null),!_0x238bc5[_0x3024('0x14f')](_0x5b0748)&&_0x5b0748['next']&&(_0x14241f[_0x3024('0x54')](_0x5b0748[_0x3024('0x130')]),_0x5b0748[_0x3024('0x130')]['previous']===_0x5b0748&&(_0x5b0748['next']['previous']=null),_0x5b0748[_0x3024('0x130')]=null);}function _0x5998d4(_0x35deae,_0x4b394b,_0x405b35){for(let _0x568d83=_0x405b35;_0x568d83<_0x4b394b['length'];_0x568d83++){const _0x2b430b=_0x435224(_0x35deae,_0x4b394b[_0x568d83]);_0x2b430b&&(_0x2b430b[0x0][_0x3024('0x130')]=_0x2b430b[0x1],_0x2b430b[0x1][_0x3024('0x16a')]=_0x2b430b[0x0],_0x238bc5[_0x3024('0x54')](_0x2b430b[0x0]),_0x4bdcd4['add'](_0x2b430b[0x1]));}}function _0x435224(_0x50c474,_0x40c063){if(_0x50c474['author']['id']!==_0x40c063[_0x3024('0x1d')]['id'])return null;const _0x3b5307=_0x40661f['get'](_0x50c474)(_0x50c474,_0x40c063,_0x510c3f[_0x3024('0xa0')](_0x50c474),_0x510c3f[_0x3024('0xa0')](_0x40c063));if(!_0x3b5307)return null;return _0x40661f[_0x3024('0xa0')](_0x40c063)(_0x50c474,_0x40c063,_0x510c3f[_0x3024('0xa0')](_0x50c474),_0x510c3f[_0x3024('0xa0')](_0x40c063))?_0x3b5307[0x1][_0x3024('0x37')]&&_0x3b5307[0x1][_0x3024('0x37')]['length']?null:_0x3b5307:null;}_0x14241f[_0x3024('0x6d')]&&this[_0x3024('0x96')](_0x14241f);}[_0x3024('0x167')](_0x2c3dc1){if(0x0==_0x2c3dc1[_0x3024('0x2')])return;const _0x259fd6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2abe87=>'attribute'==_0x2abe87[_0x3024('0x132')]&&_0x2abe87['_isDataLoaded']),_0xd29c86=[],_0x3034da=new Map();for(const _0x15d7cc of _0x259fd6){const _0x39e619=_0x4a1e6a(_0x15d7cc[_0x3024('0x3e')]);_0x3034da['has'](_0x39e619)||(_0x3034da[_0x3024('0x17c')](_0x39e619,_0xd29c86['length']),_0xd29c86[_0x3024('0xdc')]([]));const _0x4720d5=_0x3034da[_0x3024('0xa0')](_0x39e619);_0xd29c86[_0x4720d5][_0x3024('0xdc')](_0x15d7cc);}!function(){_0xd29c86['sort']((_0x446619,_0x714fc4)=>{const _0x4573fd=_0x446619[0x0]['createdAt'],_0x264eeb=_0x714fc4[0x0]['createdAt'];return _0x4573fd==_0x264eeb?_0x446619[0x0]['attributes'][_0x3024('0x1')]<_0x714fc4[0x0][_0x3024('0x3e')][_0x3024('0x1')]?-0x1:0x1:_0x4573fd<_0x264eeb?-0x1:0x1;});for(const _0xf3aa4 of _0xd29c86)_0xf3aa4[_0x3024('0x3b')]((_0x1b8104,_0x148c1a)=>_0x1b8104['id']<_0x148c1a['id']?-0x1:0x1);}();for(let _0x51884c=0x0;_0x51884c<_0xd29c86['length'];_0x51884c++){if(0x0==_0xd29c86[_0x51884c][_0x3024('0x2')])continue;const _0x147cd1=[];for(let _0x5499b6=_0x51884c+0x1;_0x5499b6<_0xd29c86[_0x3024('0x2')];_0x5499b6++)0x0!=_0xd29c86[_0x5499b6][_0x3024('0x2')]&&_0x3ef553(_0xd29c86[_0x51884c],_0xd29c86[_0x5499b6])&&_0x147cd1[_0x3024('0xdc')](_0x5499b6);for(const _0x43db33 of _0x147cd1)_0xd29c86[_0x51884c]=_0xd29c86[_0x51884c][_0x3024('0x115')](_0xd29c86[_0x43db33]),_0xd29c86[_0x43db33]=[];}for(const _0x124e69 of _0xd29c86)for(let _0x53604c=0x0;_0x53604c<_0x124e69[_0x3024('0x2')];_0x53604c++)_0x124e69[_0x53604c][_0x3024('0x130')]=_0x124e69[_0x53604c+0x1]||null;for(const _0x4ee21f of _0xd29c86)for(let _0x10c9dd=0x0;_0x10c9dd<_0x4ee21f[_0x3024('0x2')];_0x10c9dd++)_0x4ee21f[_0x10c9dd][_0x3024('0x16a')]=_0x4ee21f[_0x10c9dd-0x1]||null;function _0x3ef553(_0x4dcc31,_0x209d39){if(_0x4dcc31[0x0][_0x3024('0x3e')][_0x3024('0x1')]!==_0x209d39[0x0][_0x3024('0x3e')]['groupId']&&_0x4dcc31[0x0][_0x3024('0x1d')]!==_0x209d39[0x0]['author'])return!0x1;if(!function(_0x253df1,_0x176ca4){if(!_0x253df1[_0x3024('0x8f')]&&!_0x176ca4[_0x3024('0x8f')])return!0x0;if(_0x253df1[_0x3024('0x8f')]&&_0x176ca4[_0x3024('0x8f')])return!0x1;if(_0x253df1[_0x3024('0x8f')]&&_0x176ca4[_0x3024('0x166')]<_0x253df1[_0x3024('0x37')][_0x3024('0x5')]['get'](0x0)[_0x3024('0x166')])return!0x0;if(_0x176ca4['hasComments']&&_0x253df1[_0x3024('0x166')]<_0x176ca4[_0x3024('0x37')][_0x3024('0x5')][_0x3024('0xa0')](0x0)[_0x3024('0x166')])return!0x0;return!0x1;}(_0x4dcc31[0x0],_0x209d39[0x0]))return!0x1;const _0x253833=_0x5a017a(_0x4dcc31[0x0][_0x3024('0x3e')],'groupId'),_0x48df63=_0x5a017a(_0x209d39[0x0][_0x3024('0x3e')],_0x3024('0x1'));if(!_0x2963a5(_0x253833,_0x48df63))return!0x1;return!!_0x4dcc31[_0x3024('0x9b')](_0x2b1801=>_0x209d39[_0x3024('0x30')](_0x5e79c7=>_0x2b1801[_0x3024('0x137')]()[_0x3024('0xc9')](_0x5e79c7['getFirstRange']())))&&_0x209d39['every'](_0x1fa442=>_0x4dcc31['some'](_0x53ea61=>_0x1fa442[_0x3024('0x137')]()['isEqual'](_0x53ea61[_0x3024('0x137')]())));}}[_0x3024('0x68')](_0x4d8794){const _0x391185=Array[_0x3024('0xec')](_0x4d8794),_0x28c190=this['getSuggestions']({'skipNotAttached':!0x0}),_0x7d52d3=_0x28c190[_0x3024('0x17a')](_0x26b6e1=>!_0x4d8794[_0x3024('0x14f')](_0x26b6e1)),_0x5f2519=new Map(_0x391185['map'](_0x24aeed=>[_0x24aeed,this[_0x3024('0x71')][_0x3024('0x11a')](_0x24aeed[_0x3024('0x132')],_0x24aeed[_0x3024('0x7c')],_0x3024('0x175'))])),_0x262efb=new Map(_0x28c190[_0x3024('0x53')](_0x53db9c=>[_0x53db9c,_0x53db9c[_0x3024('0x84')]()]));for(let _0x38fa5b=0x0;_0x38fa5b<_0x391185[_0x3024('0x2')];_0x38fa5b++){if(_0x1a4c1e(this,_0x391185[_0x38fa5b],_0x391185,_0x38fa5b+0x1))return!0x0;}for(let _0x51cbb8=0x0;_0x51cbb8<_0x391185[_0x3024('0x2')];_0x51cbb8++){if(_0x1a4c1e(this,_0x391185[_0x51cbb8],_0x7d52d3,0x0))return!0x0;}return!0x1;function _0x1a4c1e(_0x826590,_0x21e1e9,_0x1e4491,_0x77e2e9){for(let _0x48626d=_0x77e2e9;_0x48626d<_0x1e4491[_0x3024('0x2')];_0x48626d++){const _0x5e9502=_0x1e4491[_0x48626d];if(_0x5e9502[_0x3024('0x132')]!==_0x21e1e9[_0x3024('0x132')]||_0x5e9502[_0x3024('0x1d')]['id']!==_0x21e1e9[_0x3024('0x1d')]['id']||_0x5e9502[_0x3024('0x7c')]!==_0x21e1e9[_0x3024('0x7c')])continue;if(!Ft(_0x21e1e9,_0x5e9502,['groupId']))continue;if(_0x3024('0x13f')==_0x21e1e9['type']&&_0x21e1e9[_0x3024('0x49')][_0x3024('0xf5')]!=_0x5e9502['data'][_0x3024('0xf5')])continue;if(_0x3024('0x13f')==_0x21e1e9[_0x3024('0x132')]&&_0x826590[_0x3024('0x7e')](_0x21e1e9[_0x3024('0x49')][_0x3024('0xb8')]))continue;if(_0x3024('0x85')==_0x21e1e9[_0x3024('0x132')]){const _0x2d9d55=_0x826590[_0x3024('0x154')]['model'],_0x285a03=_0x21e1e9[_0x3024('0xed')]();if(_0x285a03&&(_0x2d9d55[_0x3024('0x104')][_0x3024('0x86')](_0x285a03)||_0x2d9d55['schema'][_0x3024('0xc1')](_0x285a03)))continue;}const _0x2939b9=_0x5f2519['get'](_0x21e1e9),_0x2b2773=_0x262efb[_0x3024('0xa0')](_0x21e1e9),_0xabbb81=_0x262efb[_0x3024('0xa0')](_0x5e9502),_0xa39de6=_0x21e1e9[_0x3024('0x37')]&&_0x21e1e9[_0x3024('0x37')][_0x3024('0x2')],_0x384b2d=_0x5e9502['commentThread']&&_0x5e9502['commentThread'][_0x3024('0x2')];if(!_0xa39de6&&_0x2939b9(_0xabbb81,_0x2b2773))return _0x826590[_0x3024('0x133')](_0x5e9502,_0x21e1e9),_0x262efb['delete'](_0x21e1e9),!0x0;if(!_0x384b2d&&_0x2939b9(_0x2b2773,_0xabbb81))return _0x826590['_joinSuggestions'](_0x21e1e9,_0x5e9502),_0x262efb['delete'](_0x5e9502),!0x0;}return!0x1;}}[_0x3024('0x133')](_0x570e1e,_0x5b2a20){if(_0x570e1e['isMultiRange'])for(const _0x236588 of _0x5b2a20[_0x3024('0x84')]())_0x570e1e['addRange'](_0x236588);else{const _0x4501a3=_0x5b2a20['getFirstRange']()[_0x3024('0x51')];this[_0x3024('0x75')](_0x570e1e,this['_model'][_0x3024('0x12d')](_0x570e1e[_0x3024('0x137')]()[_0x3024('0x163')],_0x4501a3));}_0x5b2a20[_0x3024('0xa4')]();}['_getMarkerAnnouncementText'](_0x5867e0,_0x55daad){const _0x526751=_0x5867e0[_0x3024('0x131')](_0x3024('0x160'))||_0x5867e0['startsWith'](_0x3024('0x13f'))?_0x3024('0x103'):_0x5867e0[_0x3024('0x15c')]();return _0x44f115(this[_0x3024('0x154')]['locale'],_0x55daad+'_'+_0x526751+'_SUGGESTION_ANNOUNCEMENT');}[_0x3024('0x142')](){const _0x43daed=this[_0x3024('0x154')];_0x471275(this[_0x3024('0x6f')],({left:_0x36c3d5,entered:_0x31460d})=>{const _0x31b552=[];for(const _0x578499 of _0x36c3d5){const {group:_0x16b92f,type:_0xf1eb13}=this['_splitMarkerName'](_0x578499['name']);if(_0x3024('0x168')===_0x16b92f){_0x31b552[_0x3024('0xdc')](this[_0x3024('0x91')](_0xf1eb13,'LEAVE'));break;}}for(const _0xe701d0 of _0x31460d){const {group:_0x6637b7,type:_0x3cc97c}=this[_0x3024('0xdd')](_0xe701d0[_0x3024('0x17d')]);if(_0x3024('0x168')===_0x6637b7){_0x31b552['push'](this[_0x3024('0x91')](_0x3cc97c,'ENTER'));break;}}_0x31b552[_0x3024('0x2')]&&_0x43daed['ui'][_0x3024('0x120')][_0x3024('0x55')](_0x3024('0x98'),_0x31b552[_0x3024('0x175')]('\x20'));});}[_0x3024('0x32')](_0x379c7f){if(this[_0x3024('0xbe')])return!0x1;const _0xe5715a=this[_0x3024('0x154')],_0x2f68fb=_0xe5715a[_0x3024('0xfa')][_0x3024('0xf9')]['differ'][_0x3024('0x4d')]();if(0x0==_0x2f68fb[_0x3024('0x2')])return!0x1;const _0x51dd18=[],_0x60fa50=_0x2f68fb[_0x3024('0x17a')](_0x5ab1de=>_0x3024('0x13f')==_0x5ab1de[_0x3024('0x132')]),_0x6e32ff=_0x2f68fb[_0x3024('0x17a')](_0xe610b0=>_0x3024('0x35')==_0xe610b0['type']&&_0x3024('0x100')!=_0xe610b0['name']),_0x181f1b=_0x2f68fb[_0x3024('0x17a')](_0x2ce394=>_0x3024('0x1e')==_0x2ce394[_0x3024('0x132')]&&'$text'!=_0x2ce394[_0x3024('0x17d')]);for(const _0x54195b of _0x60fa50)_0x51dd18[_0x3024('0xdc')]({'key':_0x54195b[_0x3024('0x12c')],'newValue':_0x54195b['attributeNewValue'],'oldValue':_0x54195b[_0x3024('0x22')],'range':Ut(_0x54195b[_0x3024('0x10c')],_0xe5715a[_0x3024('0xfa')])});for(const _0x53aa50 of _0x6e32ff){const _0x100cda=_0x181f1b[_0x3024('0x33')](_0x3f9747=>_0x3f9747[_0x3024('0x83')][_0x3024('0xc9')](_0x53aa50[_0x3024('0x83')]));_0x100cda&&_0x51dd18[_0x3024('0xdc')]({'key':_0x3024('0x10e'),'newValue':_0x53aa50[_0x3024('0x17d')],'oldValue':_0x100cda[_0x3024('0x17d')],'range':_0xe5715a[_0x3024('0xfa')]['createRangeOn'](_0x53aa50[_0x3024('0x83')]['nodeAfter'])});}return 0x0!=_0x51dd18[_0x3024('0x2')]&&this[_0x3024('0xab')](_0x379c7f,_0x51dd18);}['_processAttributeSuggestions'](_0x55efda){let _0xfd803f=!0x1;const _0x523020=this[_0x3024('0x154')][_0x3024('0xfa')][_0x3024('0xf9')]['differ'][_0x3024('0x13a')]()[_0x3024('0x17a')](_0x582e17=>_0x582e17['data'][_0x3024('0x64')]&&_0x582e17['name'][_0x3024('0x131')](_0x3024('0xc7')));for(const _0x3d331e of _0x523020){const {subType:_0x10e632,id:_0x29b9db}=this[_0x3024('0xdd')](_0x3d331e[_0x3024('0x17d')]),_0x669740=_0x10e632[_0x3024('0x28')]('|')[0x0];for(const _0x9c9bac of this[_0x3024('0x44')]({'skipNotAttached':!0x0}))_0x9c9bac['id']!=_0x29b9db&&'attribute'==_0x9c9bac[_0x3024('0x132')]&&_0x9c9bac[_0x3024('0x49')]&&_0x9c9bac['data'][_0x3024('0xb8')]==_0x669740&&_0x9c9bac[_0x3024('0x137')]()[_0x3024('0x134')](_0x3d331e[_0x3024('0x49')]['newRange'])&&(this[_0x3024('0x48')](_0x9c9bac,_0x3d331e['data'][_0x3024('0x64')],_0x55efda),_0xfd803f=!0x0);}return _0xfd803f;}[_0x3024('0x12e')](_0xbfee5b){this[_0x3024('0x154')],(this[_0x3024('0xbe')]=!0x0,_0xbfee5b());}[_0x3024('0xb7')](_0x211ba0){const _0x3ca0b5=this['_isBlockAttribute'](_0x211ba0),_0x4e2de5=this[_0x3024('0xd7')][_0x3024('0x14f')](_0x211ba0);return _0x3ca0b5||_0x4e2de5;}['_reduceExistingSuggestions'](_0x4a645d,_0x5a8068){if(0x0==_0x5a8068['length'])return!0x1;let _0x2aa86b=!0x1;for(const _0x16be1b of _0x5a8068){const _0x5b908d=this[_0x3024('0x148')](_0x16be1b['range'],_0x3024('0x13f'))[_0x3024('0x17a')](_0x3c3692=>!_0x3c3692[_0x3024('0x89')][_0x3024('0x23')])[_0x3024('0x53')](_0x5c7ac3=>_0x5c7ac3['suggestion']),_0x1a89d7=_0x4a1e6a({'newValue':_0x16be1b[_0x3024('0x76')]});_0x5b908d[_0x3024('0x17a')](_0x59473c=>{const [_0x847c0e,_0x38e8af]=_0x59473c[_0x3024('0x7c')][_0x3024('0x28')]('|');return _0x847c0e==_0x16be1b[_0x3024('0xb8')]&&_0x38e8af!=_0x1a89d7;})[_0x3024('0x36')](_0x2dba06=>{this['_reduceSuggestionAttributeRange'](_0x2dba06,_0x16be1b[_0x3024('0x10c')],_0x4a645d),_0x2aa86b=!0x0;});}return _0x2aa86b;}['_reduceSuggestionAttributeRange'](_0xa821d2,_0x24f636,_0x48e644){const _0x32ee03=_0xa821d2[_0x3024('0x137')]()[_0x3024('0x13e')](_0x24f636);0x0!==_0x32ee03[_0x3024('0x2')]?0x1!==_0x32ee03['length']?this[_0x3024('0x162')](_0xa821d2,_0x24f636[_0x3024('0x163')],_0x24f636['end']):this[_0x3024('0x75')](_0xa821d2,_0x32ee03[0x0]):_0x48e644[_0x3024('0x5b')](_0xa821d2[_0x3024('0x14d')]());}}class Bt{constructor(_0x4b00f9){this[_0x3024('0xcb')]=_0x4b00f9,this['_model']=_0x4b00f9[_0x3024('0xfa')],this['_customCallbacks']=new Map(),this[_0x3024('0xf3')]=new Map(),this['_registerDefaultCallbacks']();}[_0x3024('0xc')](_0x53f81d,_0x3ce7ab,_0x23945a,_0x52054c,_0x43a494,_0xefb61e){return new _0x1f2ce3(this[_0x3024('0x6f')],{'type':_0x53f81d,'subType':_0x3ce7ab,'id':_0x23945a,'author':_0x52054c,'creator':_0x52054c,'attributes':_0x43a494,'onAttributesChange':_0xefb61e,'onAccept':(..._0x2ad376)=>this[_0x3024('0x11a')](_0x53f81d,_0x3ce7ab,_0x3024('0x14c'))(..._0x2ad376),'onDiscard':(..._0x51cc64)=>this[_0x3024('0x11a')](_0x53f81d,_0x3ce7ab,'discard')(..._0x51cc64)});}[_0x3024('0xd5')](_0x41c913,_0x4e6d30,_0x45e9c0,_0x497e20){const _0x414e1c=_0x41c913+':'+_0x4e6d30+':'+_0x45e9c0;this[_0x3024('0xfb')][_0x3024('0x17c')](_0x414e1c,_0x497e20);}[_0x3024('0x11a')](_0x5f4a6b,_0x2e566a,_0x346cbc){const _0x314900=_0x5f4a6b+':'+_0x2e566a+':'+_0x346cbc;return this[_0x3024('0xfb')][_0x3024('0xa0')](_0x314900)||this[_0x3024('0xf3')]['get'](_0x5f4a6b+':'+_0x346cbc);}[_0x3024('0x70')](){const _0x56bed8=()=>!0x1,_0x58de8d=_0x2f78b4=>{_0x2f78b4[_0x3024('0x3b')]((_0x5e5c14,_0x5ad484)=>_0x5e5c14['start'][_0x3024('0x79')](_0x5ad484[_0x3024('0x163')])?0x1:-0x1),this['_model'][_0x3024('0x11f')](_0x59456e=>{for(const _0x58bc65 of _0x2f78b4){let _0x662168;_0x662168=_0x58bc65['end'][_0x3024('0x12a')]&&_0x58bc65[_0x3024('0x51')][_0x3024('0x7f')]==_0x58bc65[_0x3024('0x163')][_0x3024('0xf2')]?_0x59456e[_0x3024('0xcf')](_0x58bc65[_0x3024('0x163')]['nodeAfter'],'on'):_0x59456e[_0x3024('0xcf')](_0x58bc65),this['_model']['deleteContent'](_0x662168,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1bdf32=(_0x295db5,_0x14f3ed)=>{_0x14f3ed&&this['_model']['change'](_0x3e0dcb=>{const {commandName:_0x535004,commandParams:_0x390942=[]}=_0x14f3ed,_0x188e14=_0x295db5[_0x3024('0x53')](_0x4e7849=>(Rt(_0x4e7849)&&(_0x4e7849=this[_0x3024('0x6f')][_0x3024('0x12d')](_0x4e7849['end'])),_0x4e7849))['filter'](_0x2b9a6b=>_0x3024('0xb5')!==_0x2b9a6b[_0x3024('0xd0')][_0x3024('0x6e')]);if(_0x188e14[_0x3024('0x2')]<0x1)return;const _0xb76483=Array[_0x3024('0xec')](this[_0x3024('0x6f')]['document'][_0x3024('0x118')][_0x3024('0x84')]())['map'](_0x54ab81=>_0x205e8b[_0x3024('0x15b')](_0x54ab81));_0x3e0dcb[_0x3024('0xd')](_0x188e14);for(const _0x209b22 of this[_0x3024('0xcb')]['commands']['commands']())_0x209b22['refresh']();_0x390942[_0x3024('0xdc')]({'forceDefaultExecution':!0x0}),this[_0x3024('0xcb')][_0x3024('0xf1')](_0x535004,..._0x390942);const _0x445ed2=_0xb76483[_0x3024('0x17a')](_0x5c45b2=>_0x3024('0xb5')!=_0x5c45b2[_0x3024('0xd0')][_0x3024('0x6e')]);_0x445ed2['length']>0x0&&_0x3e0dcb[_0x3024('0xd')](_0x445ed2);for(const _0x400d0d of _0xb76483)_0x400d0d['detach']();});},_0x1c987c=(_0xc71e00,_0x45f011)=>0x1==_0xc71e00[_0x3024('0x2')]&&0x1==_0x45f011['length']&&_0xc71e00[0x0][_0x3024('0x51')][_0x3024('0xc9')](_0x45f011[0x0][_0x3024('0x163')]),_0xc9ab48=(_0x2f3d8a,_0x4069e6,_0x5a577e,_0x5cda3c)=>Gt(_0x2f3d8a,_0x4069e6,_0x5a577e,_0x5cda3c,this[_0x3024('0x6f')])?[_0x2f3d8a,_0x4069e6]:Gt(_0x4069e6,_0x2f3d8a,_0x5cda3c,_0x5a577e,this[_0x3024('0x6f')])?[_0x4069e6,_0x2f3d8a]:null;this[_0x3024('0xf3')][_0x3024('0x17c')]('insertion:accept',_0x56bed8),this[_0x3024('0xf3')][_0x3024('0x17c')](_0x3024('0x2a'),_0x58de8d),this['_defaultCallbacks']['set']('insertion:join',_0x1c987c),this[_0x3024('0xf3')]['set'](_0x3024('0x8e'),_0xc9ab48),this[_0x3024('0xf3')]['set'](_0x3024('0x74'),_0x58de8d),this['_defaultCallbacks'][_0x3024('0x17c')](_0x3024('0x9d'),_0x56bed8),this[_0x3024('0xf3')][_0x3024('0x17c')](_0x3024('0xf7'),_0x1c987c),this[_0x3024('0xf3')]['set'](_0x3024('0xb3'),_0xc9ab48),this[_0x3024('0xf3')][_0x3024('0x17c')](_0x3024('0x65'),_0x1bdf32),this[_0x3024('0xf3')]['set'](_0x3024('0x58'),_0x56bed8),this[_0x3024('0xf3')][_0x3024('0x17c')](_0x3024('0x106'),_0x1c987c),this[_0x3024('0xf3')][_0x3024('0x17c')](_0x3024('0x10'),_0x56bed8),this[_0x3024('0xf3')]['set'](_0x3024('0xc2'),_0x1bdf32),this[_0x3024('0xf3')][_0x3024('0x17c')](_0x3024('0x87'),_0x56bed8),this[_0x3024('0xf3')][_0x3024('0x17c')](_0x3024('0x146'),_0x1c987c),this[_0x3024('0xf3')][_0x3024('0x17c')](_0x3024('0x47'),_0x56bed8),this[_0x3024('0xf3')][_0x3024('0x17c')](_0x3024('0xc3'),_0x56bed8),this['_defaultCallbacks'][_0x3024('0x17c')](_0x3024('0xe0'),(_0x4283a1,_0x3b286c)=>{if(!_0x3b286c)return;const _0x4fe540=this[_0x3024('0xcb')]['plugins'][_0x3024('0xa0')](p);this[_0x3024('0x6f')][_0x3024('0x11f')](_0xc1f66b=>{if('$elementName'==_0x3b286c['key'])for(const _0x351796 of _0x4283a1){const _0x323a80=_0x351796[_0x3024('0x163')]['nodeAfter'],_0x4e5124=_0x3b286c['oldValue'];_0xc1f66b['rename'](_0x323a80,_0x4e5124);}else{if(_0x4fe540[_0x3024('0x7e')](_0x3b286c['key']))for(const _0xac1e81 of _0x4283a1)void 0x0!==_0x3b286c['oldValue']?_0xc1f66b[_0x3024('0x18')](_0x3b286c['key'],_0x3b286c[_0x3024('0xf5')],_0xac1e81[_0x3024('0x163')][_0x3024('0xf2')]):_0xc1f66b[_0x3024('0x42')](_0x3b286c[_0x3024('0xb8')],_0xac1e81[_0x3024('0x163')][_0x3024('0xf2')]);else for(const _0x31a22a of _0x4283a1)_0x3b286c[_0x3024('0xf5')]?_0xc1f66b[_0x3024('0x18')](_0x3b286c[_0x3024('0xb8')],_0x3b286c[_0x3024('0xf5')],_0x31a22a):_0xc1f66b[_0x3024('0x42')](_0x3b286c['key'],_0x31a22a);}});}),this['_defaultCallbacks'][_0x3024('0x17c')](_0x3024('0x16c'),_0x1c987c);}}function xt(_0x8d611d,_0x11b7d7,_0x2d8bb2){for(const _0x1564dd of _0x11b7d7[_0x3024('0x7f')][_0x3024('0xf')]({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1564dd[_0x3024('0xd0')]==_0x1564dd)return!0x1;if(!_0x2d8bb2[_0x3024('0x80')](_0x1564dd))return!0x1;if(_0x8d611d['isObject'](_0x1564dd)||_0x8d611d[_0x3024('0xc1')](_0x1564dd))return!0x0;}return!0x1;}function Rt(_0x5f514d){return _0x5f514d['end'][_0x3024('0x7f')]==_0x5f514d[_0x3024('0x163')][_0x3024('0xf2')]&&_0x5f514d[_0x3024('0x51')][_0x3024('0x11e')];}function Tt(_0x590a22,_0x414f4e,_0x379cd5,_0x236590){const _0x156a1f=_0x2fe15e=>!_0x2fe15e['item']['is'](_0x3024('0x15f'))&&!_0x236590[_0x3024('0x86')](_0x2fe15e['item']),_0x582da0=_0x590a22[_0x3024('0x163')][_0x3024('0x111')](_0x156a1f),_0x734f88=_0x590a22[_0x3024('0x51')]['getLastMatchingPosition'](_0x156a1f,{'direction':_0x3024('0xcd')});return(!_0x590a22[_0x3024('0x163')][_0x3024('0xc9')](_0x582da0)||!_0x590a22[_0x3024('0x51')][_0x3024('0xc9')](_0x734f88))&&(_0x582da0[_0x3024('0x79')](_0x734f88)?_0x379cd5[_0x3024('0x11')](_0x414f4e,{'range':_0x379cd5[_0x3024('0x12d')](_0x582da0,_0x734f88)}):_0x379cd5['removeMarker'](_0x414f4e),!0x0);}function Et(_0x4634f9){return _0x4a1e6a(_0x4634f9);}function Vt(_0x97cd0){const _0x49a638=_0x97cd0[_0x3024('0x163')]['nodeAfter'];return _0x49a638&&_0x49a638['is']('element');}function Ut(_0x1ed39d,_0x10571e){return null==_0x1ed39d['end'][_0x3024('0x4c')]&&_0x1ed39d[_0x3024('0x51')][_0x3024('0x7f')]==_0x1ed39d['start'][_0x3024('0xf2')]?Ot(_0x1ed39d[_0x3024('0x163')][_0x3024('0xf2')],_0x10571e):_0x1ed39d;}function Ot(_0x40649d,_0x26f47d){const _0xb459bf=_0x26f47d['schema']['isObject'](_0x40649d)||_0x26f47d[_0x3024('0x104')]['isSelectable'](_0x40649d);return _0x26f47d[_0x3024('0x12d')](_0x26f47d['createPositionAt'](_0x40649d,_0x3024('0x149')),_0xb459bf?_0x26f47d[_0x3024('0x153')](_0x40649d):_0x26f47d[_0x3024('0x17')](_0x40649d,_0x3024('0x51')));}function Gt(_0x5d0630,_0x3d8217,_0x2f8c7e,_0x3e84f6,_0x52d8be){if(!Ft(_0x5d0630,_0x3d8217))return!0x1;if(_0x2f8c7e[_0x3024('0x51')][_0x3024('0xc9')](_0x3e84f6[_0x3024('0x163')]))return!0x0;if(_0x5d0630[_0x3024('0x132')]!=_0x3d8217[_0x3024('0x132')])return!0x1;if(!_0x2f8c7e[_0x3024('0x51')]['isTouching'](_0x3e84f6[_0x3024('0x163')]))return!0x1;const _0x36dc69=_0x52d8be[_0x3024('0x12d')](_0x2f8c7e[_0x3024('0x51')],_0x3e84f6['start'])[_0x3024('0x172')]();for(const _0x480150 of _0x36dc69)if([_0x3024('0x67'),'elementEnd'][_0x3024('0xad')](_0x480150[_0x3024('0x132')])&&_0x52d8be[_0x3024('0x104')][_0x3024('0xc1')](_0x480150['item']))return!0x1;return!0x0;}function Ft(_0x218f8b,_0x5de237,_0x41bc5a=[]){return!(!_0x218f8b[_0x3024('0x27')]||!_0x5de237[_0x3024('0x27')])&&_0x2963a5(_0x5a017a(_0x218f8b[_0x3024('0x3e')],_0x41bc5a),_0x5a017a(_0x5de237[_0x3024('0x3e')],_0x41bc5a));}function Pt(_0x5c97bb,_0x94e3fa){const _0x225779=Lt(_0x5c97bb['attributes']),_0x1b588b=Lt(_0x94e3fa);if(!_0x5c97bb[_0x3024('0x27')])return!0x1;for(const _0x5e149d of Object[_0x3024('0x19')](_0x1b588b))if(!_0x2963a5(_0x225779[_0x5e149d],_0x1b588b[_0x5e149d]))return!0x1;return!0x0;}function Lt(_0x4fb839){const _0x3130aa=Object['assign']({},_0x4fb839);return delete _0x3130aa['skipNestingCheck'],delete _0x3130aa[_0x3024('0xdb')],_0x3130aa;}