@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230911.0 → 0.0.0-nightly-20230913.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.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +6 -6
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ffd=['_baseIdsRoots','getIndex','currentRevision','_clone','offset','_prepareViewToSave','revision','getAttributes','_pendingAction','_setConversion','merge','howMany','revision-end','_handleInsertOperation','_fixPosition','creator','getAttribute','_lastFrom','plugins','_touchedRoots','_handleOperation','markers','_diffRootsAttributes','rootsAttributes','_handleSplitOperation','_lastTo','get','addRootAttribute','_isAttached','removeRootAttribute','start','attributes','elementStart','_insertChild','from','_setAttribute','RevisionsRepository','getChild','revision:','_revisionId','NEGATIVE_INFINITY','_findInsertionIndex','Initial\x20revision','trim','addRevisionData','length','_initialRevisionId','getCurrentRevisionId','dataToMarker','attachChange','attributesAfter','repository','PendingActions','_execute','rootName','getRange','getRootNames','_revisionDataBuilder','processor','forEach','RealTimeCollaborationClient','_authorId','upcast','graveyardPosition','loadState','isEnabled','name','getRevision','getMovedRangeStart','adapter','hasContent','_processRootBeforeSave','_removeMetaData','previousPosition','filter','_handleRootOperation','_isPendingUpdate','_getState','init','_markers','getData','authorsIds','createPositionBefore','_handleRootAttributeOperation','_makeIdsRoot','tableCell','document','reInit','delete','_fixRange','split','range','buildRevisionData','_applyOperations','_getVidAttributeName','model','changeRootAttribute','has','roots','createdAt','define','detachRoot','parent','set','useFillerType','string','marked','toData','root','path','clear','element','_handleMarkerOperation','includes','nodeAfter','default','Users','push','vid_start','values','isAdd','elementEnd','splitPosition','_getBaseVids','_copyMarkers','userId','saveRevision','_continueCurrentRevision','diffData','find','targetPosition','version','end','baseVersion','vid','view','size','getChildren','_loadRevisionData','_removePendingAction','toModel','getNodeByPath','sort','_replaceEditorDataWithRevisionData','source','getRoot','newRange','_handleMergeOperation','conversion','editor','insertionPosition','_touched','_getFromVersion','_getPreviousFrom','documentFragment','marker','isAttached','_addPendingAction','stickiness','item','createRange','offsetSize','key','_update','_startingVersion','_touchedMarkers','insertions','setRevisionData','_baseRoots','revision-start','editing','keys','setSource','_removeRevisionMarkers','editor-initial-data-replaced-with-revision-data','_bufferUpdate','history','locale','getRevisionDocumentData','getUser','createPositionFromPath','_transformMarkers','data','_idsRoots','remove','nodes','_diffRoots','_loadedStateData','_createFromRanges','_baseRootsAttributes','_loadState','$text','_makeModelFromViewString','keepParagraph','_generateTape','parse','authors','clone','_markChanges','_savedMetaData','initialData','_createCurrentRevision','_makeRevision','_saveMetaData','children','toVersion','createPositionAt','oldRange','updateRevisions','_calculateMetaData','attributesBefore','sourcePosition','config','reverse','dataDowncast','resolve','_handleMoveOperation','map','type','fromVersion','then','vid_end','getWalker','isReady','reinsert','for','_fixOperation','$graveyard','PENDING_ACTION_REVISION_HISTORY','_createInitialRevision','getTime','_startingRevisionId','insert','createRangeIn','_reset','position','revisionHistory.resumeUnsavedRevision','sendBufferedUpdates','addRoot','slice','_bufferedUpdates','afterInit','some','affectsData','toView','deletions','_source','startsWith','add','_cloneOperation','text'];(function(_0x25d3eb,_0x2ffd6b){const _0x7c4123=function(_0x4da809){while(--_0x4da809){_0x25d3eb['push'](_0x25d3eb['shift']());}};_0x7c4123(++_0x2ffd6b);}(_0x2ffd,0x103));const _0x7c41=function(_0x25d3eb,_0x2ffd6b){_0x25d3eb=_0x25d3eb-0x0;let _0x7c4123=_0x2ffd[_0x25d3eb];return _0x7c4123;};import{Users as _0x4937d3}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x19f994,PendingActions as _0x458d0f}from'ckeditor5/src/core';import{logWarning as _0x56d67b,uid as _0x3a9d44}from'ckeditor5/src/utils';import{Position as _0x32346e,Range as _0x34fae3,Element as _0x26a125,DocumentFragment as _0x285c45,ViewText as _0x16e3d3,ViewElement as _0x3e735f,ViewContainerElement as _0x344c63,ViewAttributeElement as _0x2cb87e,ViewEmptyElement as _0x33fabb,ViewRawElement as _0x460365,ViewUIElement as _0x306036,ViewDocumentFragment as _0x1ee88d}from'ckeditor5/src/engine';import _0x3b1191 from'./revisionsrepository';import{getTranslation as _0x73fcda}from'./utils/common-translations';import{cloneDeep as _0x590a64,isEqual as _0x42fc09}from'lodash-es';const B={'c':_0x344c63,'a':_0x2cb87e,'e':_0x33fabb,'r':_0x460365,'u':_0x306036};export default class l extends _0x19f994{static get['pluginName'](){return'RevisionTracker';}static get['requires'](){return[_0x4937d3,_0x3b1191,_0x458d0f];}constructor(_0x57c559){super(_0x57c559),this[_0x7c41('0x3d')]=null,this[_0x7c41('0xf5')]=null,this[_0x7c41('0x31')]=new H(this[_0x7c41('0x8d')]),this[_0x7c41('0x26')]=this[_0x7c41('0x8d')][_0x7c41('0xcc')][_0x7c41('0x12')]('collaboration.channelId')||'initial',this[_0x7c41('0xe8')]=new Map(),this[_0x7c41('0xb3')]=null;const _0x4b9c11=_0x3a9d44();this[_0x7c41('0xee')]={'history':this[_0x7c41('0x8d')]['model'][_0x7c41('0x4e')][_0x7c41('0xa8')],'getLatestVersion':()=>Promise[_0x7c41('0xcf')](this[_0x7c41('0x8d')][_0x7c41('0x57')]['document'][_0x7c41('0x7b')]),'getCurrentRevisionId':()=>_0x4b9c11},this[_0x7c41('0x5f')](_0x7c41('0xd7'),!0x1),this[_0x7c41('0x5f')](_0x7c41('0x39'),!0x0),this[_0x7c41('0x5f')](_0x7c41('0x44'),!0x1),this[_0x7c41('0x8d')][_0x7c41('0xcc')][_0x7c41('0x5c')](_0x7c41('0xe4'),!0x0),this[_0x7c41('0x8d')]['conversion'][_0x7c41('0xd9')](_0x7c41('0x36'))[_0x7c41('0x28')]({'view':_0x7c41('0xf9')});}[_0x7c41('0x46')](){this['repository']=this[_0x7c41('0x8d')]['plugins'][_0x7c41('0x12')](_0x7c41('0x1c')),this[_0x7c41('0x1')](),this[_0x7c41('0x8d')][_0x7c41('0xae')]['on']('ready',()=>{const _0x598f39=this[_0x7c41('0x2b')][_0x7c41('0x3b')](0x0),_0x42f359=_0x598f39&&null===_0x598f39[_0x7c41('0x7')]?_0x598f39:null;if(this['_continueCurrentRevision']=!!_0x42f359&&this[_0x7c41('0x8d')][_0x7c41('0xcc')]['get'](_0x7c41('0xe4')),this[_0x7c41('0x8d')]['plugins'][_0x7c41('0x59')](_0x7c41('0x34'))){const _0x6ba082=this[_0x7c41('0xee')][_0x7c41('0x27')](),_0x42b28d=this['repository'][_0x7c41('0x3b')](_0x6ba082);if(_0x42b28d)this[_0x7c41('0x9c')]=_0x42b28d['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x34b3fa=this[_0x7c41('0xee')][_0x7c41('0xa8')]['_operations']['find'](_0x2412b5=>!_0x2412b5['_isInit']),_0x23be81=_0x34b3fa?_0x34b3fa[_0x7c41('0x7d')]:this[_0x7c41('0xee')][_0x7c41('0xa8')][_0x7c41('0x7b')];_0x598f39?(_0x598f39['toVersion']<_0x23be81&&_0x598f39[_0x7c41('0x9b')]({'toVersion':_0x23be81}),this[_0x7c41('0x77')]?(this[_0x7c41('0xee')][_0x7c41('0x27')]=()=>_0x42f359['id'],this[_0x7c41('0x9c')]=_0x42f359[_0x7c41('0xd3')]):(this[_0x7c41('0x9c')]=_0x598f39[_0x7c41('0xc5')],this[_0x7c41('0x77')]=!0x1)):(this['_startingVersion']=_0x23be81,this[_0x7c41('0x77')]=!0x1);}}else _0x42f359&&(this[_0x7c41('0x8d')][_0x7c41('0x57')][_0x7c41('0x4e')]['history'][_0x7c41('0x7b')]=Math['max'](_0x42f359[_0x7c41('0xc5')],this[_0x7c41('0x8d')][_0x7c41('0x57')]['document']['history'][_0x7c41('0x7b')]),_0x42f359[_0x7c41('0xd3')]===_0x42f359[_0x7c41('0xc5')]?(0x0!==_0x42f359['fromVersion']&&(this['_source'][_0x7c41('0x27')]=()=>_0x42f359['id']),this[_0x7c41('0x77')]=!0x1):this[_0x7c41('0x77')]&&(this[_0x7c41('0xee')]['getCurrentRevisionId']=()=>_0x42f359['id'],this['_startingVersion']=_0x42f359[_0x7c41('0xd3')])),this[_0x7c41('0x77')]||(this['_startingVersion']=this[_0x7c41('0x8d')][_0x7c41('0x57')][_0x7c41('0x4e')][_0x7c41('0x7b')]);this['_revisionDataBuilder']['init'](this[_0x7c41('0xee')][_0x7c41('0xa8')]),this[_0x7c41('0xdd')](this['_startingVersion']),this['_createCurrentRevision'](this['_startingVersion']),this['adapter']&&this[_0x7c41('0xe5')]();}),this['bind'](_0x7c41('0xd7'))['to'](this,_0x7c41('0x44'),_0x30f070=>!_0x30f070);}async[_0x7c41('0xe9')](){if(this[_0x7c41('0x2b')][_0x7c41('0x25')]>0x0){const _0x33aafa=this[_0x7c41('0x2b')][_0x7c41('0x3b')](0x0),_0xeb5bb5=await this[_0x7c41('0xaa')](_0x33aafa),_0x1f9712=await this['getRevisionRootsAttributes'](_0x33aafa);this[_0x7c41('0x87')](_0xeb5bb5,_0x1f9712);}}[_0x7c41('0xa4')](_0xf93380){this[_0x7c41('0xee')]=_0xf93380;}async['update'](){const _0x48e733=await this['_source']['getLatestVersion']();if(_0x48e733>this[_0x7c41('0xf5')][_0x7c41('0xc5')]){await this[_0x7c41('0xb6')]();const _0x50e949=this[_0x7c41('0x54')]({'revision':this[_0x7c41('0xf5')],'to':_0x48e733});_0x50e949[_0x7c41('0xbc')]=_0x50e949[_0x7c41('0x49')][_0x7c41('0xd1')](_0x22d35c=>this[_0x7c41('0x8d')][_0x7c41('0xa')][_0x7c41('0x12')](_0x7c41('0x6c'))[_0x7c41('0xab')](_0x22d35c)),this['currentRevision'][_0x7c41('0x9b')](_0x50e949);}}async[_0x7c41('0xb6')](){this['_continueCurrentRevision']&&!this[_0x7c41('0xb3')]&&(await this[_0x7c41('0x82')](this['currentRevision']),this[_0x7c41('0x31')][_0x7c41('0x38')](this[_0x7c41('0xf5')]),this[_0x7c41('0xb3')]={'fromVersion':this[_0x7c41('0xf5')][_0x7c41('0xd3')],'authors':this[_0x7c41('0xf5')][_0x7c41('0xbc')][_0x7c41('0xe7')]()});}async[_0x7c41('0x76')](_0x33ff8b={},_0x52bd02=null){const _0x4301ac=[];await this[_0x7c41('0xb6')](),this[_0x7c41('0x77')]=!0x1,_0x52bd02>this[_0x7c41('0xf5')]['toVersion']&&(_0x52bd02=null),null===_0x52bd02&&(_0x52bd02=await this[_0x7c41('0xee')]['getLatestVersion']());const _0x1f79a8=this[_0x7c41('0x90')](_0x52bd02),_0x417229=this[_0x7c41('0x54')]({'from':_0x1f79a8,'to':_0x52bd02});if(this[_0x7c41('0xf5')]['toVersion']<_0x52bd02){const _0x4cf751=this[_0x7c41('0x54')]({'revision':this[_0x7c41('0xf5')],'from':_0x52bd02,'to':_0x52bd02});_0x4cf751[_0x7c41('0xbc')]=[],_0x4cf751[_0x7c41('0x49')]=[],_0x4cf751['id']=this['currentRevision']['id'],this[_0x7c41('0xf5')]['_update'](_0x4cf751,!0x0),delete _0x4cf751[_0x7c41('0xbc')],_0x4301ac[_0x7c41('0x6d')](_0x4cf751);}_0x33ff8b['creatorId']=this[_0x7c41('0x8d')][_0x7c41('0xa')]['get'](_0x7c41('0x6c'))['me']['id'],_0x33ff8b[_0x7c41('0x3a')]=_0x33ff8b[_0x7c41('0x3a')]||null,_0x33ff8b['id']=_0x33ff8b['id']||_0x3a9d44(),_0x33ff8b={..._0x33ff8b,..._0x417229};const _0x17ff11=this[_0x7c41('0x24')](_0x33ff8b);_0x4301ac['push'](_0x33ff8b);const _0x345e62=this[_0x7c41('0x2b')][_0x7c41('0xf4')](_0x17ff11);if(0x0!==_0x345e62){const _0x20203f=this[_0x7c41('0x2b')]['getRevision'](_0x345e62-0x1);if(_0x20203f['fromVersion']!==_0x52bd02){const _0x332678=this[_0x7c41('0x31')]['getData'](_0x52bd02,_0x20203f[_0x7c41('0xc5')]),_0x3d867d={'id':_0x20203f['id'],'diffData':_0x332678[_0x7c41('0x78')],'authorsIds':_0x332678[_0x7c41('0x49')],'authors':_0x332678[_0x7c41('0x49')][_0x7c41('0xd1')](_0x131ec8=>this[_0x7c41('0x8d')]['plugins'][_0x7c41('0x12')](_0x7c41('0x6c'))[_0x7c41('0xab')](_0x131ec8)),'fromVersion':_0x52bd02};_0x20203f===this[_0x7c41('0xf5')]&&(_0x3d867d[_0x7c41('0x5b')]=new Date(_0x33ff8b[_0x7c41('0x5b')][_0x7c41('0xde')]()+0xa)),_0x20203f['_update'](_0x3d867d,!0x0),delete _0x3d867d['authors'],_0x4301ac[_0x7c41('0x6d')](_0x3d867d);}}if(this[_0x7c41('0x3d')]){for(const _0x526772 of _0x4301ac)this['_bufferUpdate'](_0x526772['id'],_0x526772,!0x0);this[_0x7c41('0xe5')]();}return _0x17ff11;}[_0x7c41('0x24')](_0xbfba2d){const _0x4607bb=this[_0x7c41('0x2b')]['createRevision'](_0xbfba2d);return this[_0x7c41('0x3d')]&&_0x4607bb['on'](_0x7c41('0x9b'),(_0x2e5d96,_0x5e4ffc,_0x4eb0c0)=>{_0x4eb0c0||(this[_0x7c41('0xa7')](_0x5e4ffc['id'],_0x5e4ffc,!0x0),this[_0x7c41('0xe5')]());}),this[_0x7c41('0x2b')]['addRevision'](_0x4607bb,this[_0x7c41('0x21')](_0x4607bb)),_0x4607bb;}async[_0x7c41('0xaa')](_0x1636fc){await this[_0x7c41('0x82')](_0x1636fc);const _0xd22061={};for(const _0x2ae7cc in _0x1636fc[_0x7c41('0x78')]){if(_0x1636fc['diffData'][_0x2ae7cc]['attachChange']&&!_0x1636fc[_0x7c41('0x78')][_0x2ae7cc][_0x7c41('0x29')][_0x7c41('0x94')])continue;const _0x44f9c4=this[_0x7c41('0xa5')](JSON[_0x7c41('0xbb')](_0x1636fc[_0x7c41('0x78')][_0x2ae7cc]['insertions'])),_0x20a395=this[_0x7c41('0x8d')]['editing'][_0x7c41('0x7f')][_0x7c41('0x4e')],_0x6f2741=new _0x1ee88d(_0x20a395,_0x44f9c4[_0x7c41('0xd1')](_0x2d9c42=>J(_0x2d9c42,this[_0x7c41('0x8d')])));this[_0x7c41('0x8d')][_0x7c41('0xae')][_0x7c41('0x32')]['useFillerType'](_0x7c41('0x62')),_0xd22061[_0x2ae7cc]=this['editor']['data'][_0x7c41('0x32')][_0x7c41('0x63')](_0x6f2741),this[_0x7c41('0x8d')][_0x7c41('0xae')]['processor'][_0x7c41('0x60')](_0x7c41('0x6b'));}return _0xd22061;}async['getRevisionRootsAttributes'](_0x269de4){await this[_0x7c41('0x82')](_0x269de4);const _0x9e5f12={};for(const _0x18b571 in _0x269de4['diffData'])_0x269de4[_0x7c41('0x78')][_0x18b571][_0x7c41('0x29')]&&!_0x269de4[_0x7c41('0x78')][_0x18b571]['attachChange'][_0x7c41('0x94')]||(_0x9e5f12[_0x18b571]=_0x269de4[_0x7c41('0x78')][_0x18b571]['attributesAfter']||{});return _0x9e5f12;}['sendBufferedUpdates'](){if(0x0===this[_0x7c41('0xe8')][_0x7c41('0x80')])return;if(this[_0x7c41('0x44')])return;let _0x1e16cc=Array[_0x7c41('0x1a')](this[_0x7c41('0xe8')][_0x7c41('0x6f')]());this[_0x7c41('0xe8')][_0x7c41('0x66')]();for(let _0x1a3439=0x0;_0x1a3439<_0x1e16cc[_0x7c41('0x25')];_0x1a3439++){const _0x301621=_0x1e16cc[_0x1a3439];let _0x2ef5df=!0x1;for(const _0x2bb5f6 of Object[_0x7c41('0xa3')](_0x301621))void 0x0===_0x301621[_0x2bb5f6]?delete _0x301621[_0x2bb5f6]:'id'!==_0x2bb5f6&&(_0x2ef5df=!0x0);_0x2ef5df||(_0x1e16cc[_0x1a3439]=null);}if(_0x1e16cc=_0x1e16cc[_0x7c41('0x42')](_0x403a86=>null!==_0x403a86),!_0x1e16cc['length'])return;for(let _0x13361a=0x0;_0x13361a<_0x1e16cc[_0x7c41('0x25')];_0x13361a++){const _0xa62abe=_0x1e16cc[_0x13361a];void 0x0!==_0xa62abe['fromVersion']&&void 0x0===_0xa62abe[_0x7c41('0xc5')]&&(_0xa62abe[_0x7c41('0xc5')]=this[_0x7c41('0x2b')]['getRevision'](_0xa62abe['id'])[_0x7c41('0xc5')]),void 0x0!==_0xa62abe[_0x7c41('0xc5')]&&void 0x0===_0xa62abe['fromVersion']&&(_0xa62abe['fromVersion']=this['repository'][_0x7c41('0x3b')](_0xa62abe['id'])[_0x7c41('0xd3')]);}const _0x30be03=this[_0x7c41('0x8d')]['config'][_0x7c41('0x12')]('collaboration.channelId');this[_0x7c41('0x44')]=!0x0,this[_0x7c41('0x95')](),this[_0x7c41('0x3d')][_0x7c41('0xc8')](_0x1e16cc,_0x30be03)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3ce109=>{if(_0x3ce109)for(const _0x2adec9 of _0x3ce109)this[_0x7c41('0x9f')]({'id':_0x2adec9['id'],'createdAt':_0x2adec9[_0x7c41('0x5b')]});this[_0x7c41('0x83')](),this[_0x7c41('0xe5')]();});}['_replaceEditorDataWithRevisionData'](_0x2c5b07,_0xa69467){let _0xd0583b=this[_0x7c41('0x8d')][_0x7c41('0xcc')]['get'](_0x7c41('0xc0')),_0x1bccb3=this[_0x7c41('0x8d')][_0x7c41('0xcc')][_0x7c41('0x12')](_0x7c41('0xf'));if(void 0x0===_0xd0583b){_0xd0583b={};for(const _0x3a6e6a of this['editor'][_0x7c41('0x57')][_0x7c41('0x4e')][_0x7c41('0x30')]())_0xd0583b[_0x3a6e6a]='';}if('string'==typeof _0xd0583b&&(_0xd0583b={'main':_0xd0583b}),void 0x0===_0x1bccb3){_0x1bccb3={};for(const _0x4ec625 of this['editor']['model'][_0x7c41('0x4e')][_0x7c41('0x30')]())_0x1bccb3[_0x4ec625]={};}let _0x5c1443=!0x1;const _0x7cbae6=Object[_0x7c41('0xa3')](_0xd0583b),_0x3b3e52=Object[_0x7c41('0xa3')](_0x2c5b07);for(const _0xb2a25d of _0x7cbae6){if(_0xd0583b[_0xb2a25d]!==_0x2c5b07[_0xb2a25d]&&''!==_0xd0583b[_0xb2a25d][_0x7c41('0x23')]()){_0x5c1443=!0x0;break;}if(!_0x42fc09(_0x1bccb3[_0xb2a25d],_0xa69467[_0xb2a25d])&&Object[_0x7c41('0xa3')](_0x1bccb3[_0xb2a25d])['length']>0x0){_0x5c1443=!0x0;break;}}_0x5c1443||(_0x5c1443=_0x3b3e52[_0x7c41('0xea')](_0x4f0dfb=>!this[_0x7c41('0x8d')][_0x7c41('0x57')][_0x7c41('0x4e')][_0x7c41('0x89')](_0x4f0dfb))),_0x5c1443&&_0x56d67b(_0x7c41('0xa6'),{'editorData':_0xd0583b,'editorRootsAttributes':_0x1bccb3,'revisionData':_0x2c5b07,'revisionRootsAttributes':_0xa69467}),this[_0x7c41('0x8d')]['config']['set'](_0x7c41('0xc0'),_0x2c5b07),this[_0x7c41('0x8d')][_0x7c41('0xcc')][_0x7c41('0x5f')](_0x7c41('0xf'),_0xa69467);}[_0x7c41('0x95')](){if(!this[_0x7c41('0x0')]){const _0x475237=this[_0x7c41('0x8d')][_0x7c41('0xa')][_0x7c41('0x12')](_0x7c41('0x2c'));this[_0x7c41('0x0')]=_0x475237['add'](_0x73fcda(this[_0x7c41('0x8d')][_0x7c41('0xa9')],_0x7c41('0xdc')));}}[_0x7c41('0x83')](){this[_0x7c41('0x0')]&&(this['editor']['plugins'][_0x7c41('0x12')]('PendingActions')[_0x7c41('0xb0')](this[_0x7c41('0x0')]),this[_0x7c41('0x0')]=null);}[_0x7c41('0x21')](_0x5b9b44){const _0x3b9e26=this[_0x7c41('0x2b')]['getRevisions']();_0x3b9e26[_0x7c41('0xcd')]();let _0x1b41fd=0x0;for(;_0x1b41fd<_0x3b9e26[_0x7c41('0x25')];){const _0x3fbfe5=_0x3b9e26[_0x1b41fd];if(_0x3fbfe5===this[_0x7c41('0xf5')]){_0x1b41fd++;continue;}if(_0x3fbfe5['id']===this['_initialRevisionId'])break;const _0x571fe9=_0x5b9b44[_0x7c41('0xc5')]-_0x3fbfe5[_0x7c41('0xc5')]||_0x5b9b44[_0x7c41('0xd3')]-_0x3fbfe5[_0x7c41('0xd3')];if(_0x571fe9>0x0)break;if(_0x571fe9<0x0)_0x1b41fd++;else{if(!_0x5b9b44[_0x7c41('0x7')]&&_0x3fbfe5['creator'])break;if(_0x3fbfe5[_0x7c41('0x7')]||!_0x5b9b44[_0x7c41('0x7')]){if(_0x5b9b44['createdAt']>_0x3fbfe5[_0x7c41('0x5b')])break;_0x1b41fd++;}else _0x1b41fd++;}}return _0x1b41fd;}[_0x7c41('0x9f')](_0x4997a3){const _0x509ad8=this[_0x7c41('0x2b')]['getRevision'](_0x4997a3['id']);if(_0x4997a3['createdAt']&&(_0x4997a3[_0x7c41('0x5b')]=new Date(_0x4997a3[_0x7c41('0x5b')])),_0x4997a3[_0x7c41('0x49')]){const _0x496315=this['editor']['plugins']['get'](_0x7c41('0x6c'));_0x4997a3[_0x7c41('0xbc')]=_0x4997a3[_0x7c41('0x49')]['map'](_0x49a78e=>_0x496315['getUser'](_0x49a78e));}_0x509ad8[_0x7c41('0x9b')](_0x4997a3,!0x0);}[_0x7c41('0x54')]({revision:_0xd99abb=null,from:_0x2a2453=null,to:_0xfe57b0=null}){_0x2a2453=null!==_0x2a2453?_0x2a2453:_0xd99abb[_0x7c41('0xd3')],_0xfe57b0=null!==_0xfe57b0?_0xfe57b0:_0xd99abb['toVersion'];const _0x432a62=this[_0x7c41('0x31')]['getData'](_0x2a2453,_0xfe57b0),_0x4c4261={'diffData':_0x432a62[_0x7c41('0x78')],'authorsIds':_0x432a62[_0x7c41('0x49')],'fromVersion':_0x2a2453,'toVersion':_0xfe57b0};if(!_0xd99abb||_0xfe57b0!==_0xd99abb[_0x7c41('0xc5')]){const _0x30b3d4=_0xfe57b0-0x1,_0x1fd6e7=this[_0x7c41('0xee')][_0x7c41('0xa8')]['getOperation'](_0x30b3d4);_0x4c4261[_0x7c41('0x5b')]=_0x1fd6e7&&_0x1fd6e7[_0x7c41('0x5b')]||new Date();}if(this[_0x7c41('0xb3')]&&_0x2a2453===this[_0x7c41('0xb3')][_0x7c41('0xd3')])for(const _0x6d670e of this[_0x7c41('0xb3')]['authors'])_0x4c4261[_0x7c41('0x49')][_0x7c41('0x69')](_0x6d670e['id'])||_0x4c4261[_0x7c41('0x49')][_0x7c41('0x6d')](_0x6d670e['id']);return _0x4c4261;}[_0x7c41('0x82')](_0xe25a1f){if(!_0xe25a1f||_0xe25a1f[_0x7c41('0x78')])return Promise[_0x7c41('0xcf')]();{const _0x288825=this[_0x7c41('0x8d')][_0x7c41('0xcc')]['get']('collaboration.channelId');return this[_0x7c41('0x3d')][_0x7c41('0x3b')]({'channelId':_0x288825,'revisionId':_0xe25a1f['id']})[_0x7c41('0xd4')](_0x4200dd=>{_0xe25a1f[_0x7c41('0x78')]=_0x4200dd['diffData'];});}}['_bufferUpdate'](_0x4cc393,_0x10b49e,_0x16bd26){if(this[_0x7c41('0xe8')][_0x7c41('0x59')](_0x4cc393)){const _0x366b6a=this[_0x7c41('0xe8')][_0x7c41('0x12')](_0x4cc393);_0x10b49e=_0x16bd26?{..._0x366b6a,..._0x10b49e}:{..._0x10b49e,..._0x366b6a};}this[_0x7c41('0xe8')][_0x7c41('0x5f')](_0x4cc393,_0x10b49e);}[_0x7c41('0x90')](_0x4e99e2){const _0x1e45ff=this[_0x7c41('0x2b')]['getRevisions']();_0x1e45ff[_0x7c41('0xcd')](),_0x1e45ff['shift']();const _0x4e8be7=_0x1e45ff[_0x7c41('0x79')](_0x272ff1=>_0x272ff1[_0x7c41('0xc5')]<=_0x4e99e2)[_0x7c41('0xc5')];return _0x4e8be7<this[_0x7c41('0x9c')]?this['_startingVersion']:_0x4e8be7;}[_0x7c41('0xdd')](_0x44b175){const _0x45279b=this[_0x7c41('0x2b')][_0x7c41('0x3b')](this[_0x7c41('0x2b')]['length']-0x1);if(_0x45279b)this[_0x7c41('0x26')]=_0x45279b['id'];else{const _0x2099ea=!this[_0x7c41('0x8d')]['model']['document'][_0x7c41('0x5a')][_0x7c41('0x79')](_0x41b171=>this[_0x7c41('0x8d')][_0x7c41('0x57')][_0x7c41('0x3e')](_0x41b171)),_0x100d3d=this[_0x7c41('0x8d')]['plugins'][_0x7c41('0x12')](_0x7c41('0x6c'))['me']['id'],_0x4b44ce=_0x73fcda(this[_0x7c41('0x8d')][_0x7c41('0xa9')],_0x2099ea?'Empty\x20document':_0x7c41('0x22'));this['_makeRevision']({'from':_0x44b175,'to':_0x44b175,'id':this[_0x7c41('0x26')],'name':_0x4b44ce,'creatorId':_0x100d3d});}}[_0x7c41('0xc1')](_0x401cce){const _0x37af35=this[_0x7c41('0xee')][_0x7c41('0x27')]();this['currentRevision']=this[_0x7c41('0x2b')][_0x7c41('0x3b')](_0x37af35),this[_0x7c41('0xf5')]||(this['currentRevision']=this[_0x7c41('0xc2')]({'from':_0x401cce,'to':_0x401cce,'id':_0x37af35,'name':'','creatorId':null}));}[_0x7c41('0xc2')]({name:_0x345c50,from:_0xc9b80a,to:_0x3f0077,creatorId:_0x56f820,id:_0x8645ed}){const _0x151a2f=this[_0x7c41('0x54')]({'from':_0xc9b80a,'to':_0x3f0077});_0x151a2f[_0x7c41('0x3a')]=_0x345c50,_0x151a2f['creatorId']=_0x56f820,_0x151a2f['id']=_0x8645ed;const _0x351f4c=this[_0x7c41('0x24')](_0x151a2f);return this[_0x7c41('0x3d')]&&this[_0x7c41('0xa7')](_0x151a2f['id'],_0x151a2f,!0x0),_0x351f4c;}[_0x7c41('0x1')](){this[_0x7c41('0x8d')][_0x7c41('0x8c')][_0x7c41('0xd9')](_0x7c41('0xce'))['markerToData']({'model':_0x7c41('0xf9')});}['_removeRevisionMarkers'](_0x46379a){return(_0x46379a=_0x46379a[_0x7c41('0x42')](_0x318972=>!_0x318972['name']||_0x7c41('0xa1')!==_0x318972[_0x7c41('0x3a')]&&_0x7c41('0x4')!==_0x318972[_0x7c41('0x3a')]))[_0x7c41('0x33')](_0x2f1c96=>{_0x7c41('0x61')!=typeof _0x2f1c96&&(_0x2f1c96[_0x7c41('0xc4')]=this[_0x7c41('0xa5')](_0x2f1c96['children']),_0x2f1c96[_0x7c41('0x17')]=_0x2f1c96[_0x7c41('0x17')][_0x7c41('0x42')](_0x315d4d=>!_0x315d4d[0x0][_0x7c41('0xef')]('data-revision-')));}),_0x46379a;}}function J(_0x22ccd1,_0x467977){const _0x221d31=_0x467977[_0x7c41('0xa2')][_0x7c41('0x7f')][_0x7c41('0x4e')];if('string'==typeof _0x22ccd1)return new _0x16e3d3(_0x221d31,_0x22ccd1);{const _0x106e94=_0x22ccd1[_0x7c41('0xc4')][_0x7c41('0xd1')](_0x461e72=>J(_0x461e72,_0x467977));return new(B[_0x22ccd1[(_0x7c41('0xd2'))]]||_0x3e735f)(_0x221d31,_0x22ccd1[_0x7c41('0x3a')],_0x22ccd1[_0x7c41('0x17')],_0x106e94);}}class H{constructor(_0x33e8c9){this[_0x7c41('0x8d')]=_0x33e8c9,this['_savedMetaData']=new Map(),this[_0x7c41('0x9')]=-0x1,this[_0x7c41('0x11')]=-0x1,this[_0x7c41('0x47')]=new Map(),this[_0x7c41('0xb2')]=new Map(),this[_0x7c41('0xe')]=new Map(),this[_0x7c41('0xa0')]=new Map(),this[_0x7c41('0xb5')]=new Map(),this[_0x7c41('0xaf')]=new Map(),this[_0x7c41('0xf3')]=new Map(),this['_touched']=new Map(),this[_0x7c41('0x9d')]=new Map(),this[_0x7c41('0xb')]=new Map(),this[_0x7c41('0x1f')]=0x1;}[_0x7c41('0x46')](_0x578982){this[_0x7c41('0x88')]=_0x578982;const _0x44f810=new Map(),_0x2f586f=new Map(),_0x246140=this[_0x7c41('0x8d')][_0x7c41('0x57')][_0x7c41('0x4e')][_0x7c41('0x5a')][_0x7c41('0xd1')](_0x5039f0=>_0x5039f0[_0x7c41('0x2e')]);for(const _0x118c40 of _0x246140){const _0x30ef35=this[_0x7c41('0x8d')][_0x7c41('0x57')][_0x7c41('0x4e')][_0x7c41('0x89')](_0x118c40),_0x4dde97=q(_0x30ef35);_0x44f810[_0x7c41('0x5f')](_0x118c40,_0x4dde97),_0x2f586f[_0x7c41('0x5f')](_0x118c40,Object['fromEntries'](_0x30ef35['getAttributes']()));}const _0x21b0c8=Array[_0x7c41('0x1a')](this[_0x7c41('0x8d')]['model']['markers'])[_0x7c41('0xd1')](_0x234c97=>[_0x234c97[_0x7c41('0x3a')],_0x234c97[_0x7c41('0x2f')]()]),_0x69c552=this[_0x7c41('0x88')][_0x7c41('0x7b')];this[_0x7c41('0xc3')](_0x69c552,_0x44f810,_0x21b0c8,_0x2f586f),this[_0x7c41('0xdf')]=this[_0x7c41('0x1f')];const _0x2a5cf1=new Map(),_0x541d02=new Map();for(const _0xd08703 of _0x246140){const _0x467e3a=G(_0xd08703);_0x2a5cf1['set'](_0xd08703,_0x467e3a),_0x541d02[_0x7c41('0x5f')](_0xd08703,{});}this[_0x7c41('0xc3')](Number[_0x7c41('0x20')],_0x2a5cf1,[],_0x541d02);}[_0x7c41('0x48')](_0x1622d9,_0x109272){if(this[_0x7c41('0x9')]===_0x1622d9&&this['_lastTo']<=_0x109272)this[_0x7c41('0xbf')][_0x7c41('0x80')]>0x1&&this[_0x7c41('0x40')](this['_lastTo']),this[_0x7c41('0x55')](this[_0x7c41('0x11')],_0x109272,!0x0);else{if(!this[_0x7c41('0xbf')][_0x7c41('0x59')](_0x1622d9)){const _0x34bf36=this[_0x7c41('0x91')](_0x1622d9);this['_calculateMetaData'](_0x34bf36,_0x1622d9,!0x1);}this[_0x7c41('0xc9')](_0x1622d9,_0x109272,!0x0);}return this[_0x7c41('0x9')]=_0x1622d9,this[_0x7c41('0x11')]=_0x109272,this[_0x7c41('0x45')]();}[_0x7c41('0x38')](_0x41baec){this[_0x7c41('0xe2')](),this[_0x7c41('0x9')]=_0x41baec['fromVersion'],this[_0x7c41('0x11')]=_0x41baec[_0x7c41('0xc5')];for(const _0x1da243 in _0x41baec[_0x7c41('0x78')]){const _0x19e07f=_0x41baec[_0x7c41('0x78')][_0x1da243][_0x7c41('0x29')],_0x5e023d=_0x590a64(_0x41baec[_0x7c41('0x78')][_0x1da243][_0x7c41('0xca')])||{},_0x124609=this[_0x7c41('0xb8')](_0x41baec[_0x7c41('0x78')][_0x1da243][_0x7c41('0xed')]);_0x124609['rootName']=_0x1da243,_0x124609[_0x7c41('0x14')]=!_0x19e07f||!_0x19e07f['isAttached'],_0x124609[_0x7c41('0x94')]=()=>_0x124609[_0x7c41('0x14')],this['_baseRoots'][_0x7c41('0x5f')](_0x1da243,_0x124609),this[_0x7c41('0xb5')][_0x7c41('0x5f')](_0x1da243,_0x5e023d),_0x19e07f&&this[_0x7c41('0xb')][_0x7c41('0x5f')](_0x1da243,_0x19e07f);const _0x35c441=this[_0x7c41('0x4c')](_0x124609);this[_0x7c41('0xf3')][_0x7c41('0x5f')](_0x1da243,_0x35c441);for(const [_0xf65b1c,_0xfce9c2]of _0x124609['markers']){if(!_0xf65b1c[_0x7c41('0xef')]('revision:'))continue;const _0xc2d490=_0xf65b1c[_0x7c41('0x52')](':')[0x2];for(const _0x15e928 of _0xfce9c2[_0x7c41('0xd6')]({'singleCharacters':!0x0})){const _0x1d36dc=this[_0x7c41('0x56')](_0x15e928),_0x8d1eb=_0x7c41('0x71')==_0x15e928[_0x7c41('0xd2')]?_0x15e928[_0x7c41('0x41')]['path'][_0x7c41('0xe7')](0x0,-0x1):_0x15e928['previousPosition'][_0x7c41('0x65')],_0x480743=_0x35c441[_0x7c41('0x85')](_0x8d1eb)[_0x7c41('0x8')](_0x1d36dc);this['_touched'][_0x7c41('0x5f')](_0x480743,{'userId':_0xc2d490});}}}this[_0x7c41('0xdf')]=this[_0x7c41('0x1f')];const _0x1f8e92=[...Array(this[_0x7c41('0x1f')])[_0x7c41('0xa3')]()][_0x7c41('0xe7')](0x1)['filter'](_0xe1f548=>!this[_0x7c41('0x8f')][_0x7c41('0x59')](_0xe1f548));let _0x5d5bde=0x0;const _0x5111b2=new Map();for(const _0x2251c2 in _0x41baec[_0x7c41('0x78')]){const _0x10eeee=_0x41baec[_0x7c41('0x78')][_0x2251c2][_0x7c41('0x29')],_0x1d6483=_0x590a64(_0x41baec[_0x7c41('0x78')][_0x2251c2][_0x7c41('0x2a')])||{},_0x5e41ea=this[_0x7c41('0xb8')](_0x41baec['diffData'][_0x2251c2][_0x7c41('0x9e')]);_0x5e41ea[_0x7c41('0x2e')]=_0x2251c2,_0x5e41ea['_isAttached']=!_0x10eeee||_0x10eeee[_0x7c41('0x94')],_0x5e41ea['isAttached']=()=>_0x5e41ea['_isAttached'],this['_diffRoots'][_0x7c41('0x5f')](_0x2251c2,_0x5e41ea),this[_0x7c41('0xe')][_0x7c41('0x5f')](_0x2251c2,_0x1d6483);const _0x147df9=this[_0x7c41('0x4c')](_0x5e41ea,Number['NEGATIVE_INFINITY']);this[_0x7c41('0xaf')][_0x7c41('0x5f')](_0x2251c2,_0x147df9),_0x5111b2[_0x7c41('0x5f')](_0x2251c2,_0x5e41ea[_0x7c41('0x94')]()?_0x1d6483:{});for(const [_0x59f8de,_0x21238b]of _0x5e41ea[_0x7c41('0xd')]){if(!_0x59f8de['startsWith'](_0x7c41('0x1e')))continue;const _0xc74ed1=_0x59f8de[_0x7c41('0x52')](':')[0x2];for(const _0x2eed13 of _0x21238b[_0x7c41('0xd6')]({'singleCharacters':!0x0})){const _0x380268=this['_getVidAttributeName'](_0x2eed13),_0x3c9743=this[_0x7c41('0x1f')]++,_0x4ad40a='elementEnd'==_0x2eed13[_0x7c41('0xd2')]?_0x2eed13[_0x7c41('0x41')]['path'][_0x7c41('0xe7')](0x0,-0x1):_0x2eed13['previousPosition'][_0x7c41('0x65')];_0x147df9[_0x7c41('0x85')](_0x4ad40a)['_setAttribute'](_0x380268,_0x3c9743),this['_touched']['set'](_0x3c9743,{'userId':_0xc74ed1});}}for(const _0x5f144a of this[_0x7c41('0x8d')][_0x7c41('0x57')][_0x7c41('0xe1')](_0x5e41ea)[_0x7c41('0xd6')]({'singleCharacters':!0x0})){const _0x3db3ea=this[_0x7c41('0x56')](_0x5f144a),_0x428099=_0x7c41('0x71')==_0x5f144a[_0x7c41('0xd2')]?_0x5f144a['previousPosition'][_0x7c41('0x65')][_0x7c41('0xe7')](0x0,-0x1):_0x5f144a[_0x7c41('0x41')][_0x7c41('0x65')],_0x120605=_0x147df9[_0x7c41('0x85')](_0x428099);_0x120605[_0x7c41('0x8')](_0x3db3ea)>0x0||_0x120605[_0x7c41('0x1b')](_0x3db3ea,_0x1f8e92[_0x5d5bde++]);}for(const [_0x482a08,_0x11247d]of _0x5e41ea['markers'])_0x482a08['startsWith'](_0x7c41('0x1e'))||this[_0x7c41('0x47')]['set'](_0x482a08,_0x11247d);}const _0x333d62=G(_0x7c41('0xdb'));this['_baseRoots'][_0x7c41('0x5f')]('$graveyard',_0x333d62),this[_0x7c41('0xf3')]['set']('$graveyard',this['_makeIdsRoot'](_0x333d62,0x1));const _0x56ca0d=G(_0x7c41('0xdb'));this[_0x7c41('0xb2')][_0x7c41('0x5f')](_0x7c41('0xdb'),_0x56ca0d),this[_0x7c41('0xaf')][_0x7c41('0x5f')]('$graveyard',this[_0x7c41('0x4c')](_0x56ca0d,0x1));const _0x5218a0=Array[_0x7c41('0x1a')](this['_diffRoots'])[_0x7c41('0xd1')](([_0xfeea69,_0x2cc5fa])=>[_0xfeea69,q(_0x2cc5fa)]);this[_0x7c41('0xc3')](this[_0x7c41('0x11')],_0x5218a0,this[_0x7c41('0x47')],_0x5111b2);}['_makeModelFromViewString'](_0x1e48e7){const _0x1d7117=JSON[_0x7c41('0xbb')](_0x1e48e7),_0x375d42=this[_0x7c41('0x8d')][_0x7c41('0xa2')]['view'][_0x7c41('0x4e')],_0x4bae0a=new _0x1ee88d(_0x375d42,_0x1d7117[_0x7c41('0xd1')](_0x1be181=>J(_0x1be181,this[_0x7c41('0x8d')])));return this[_0x7c41('0x8d')][_0x7c41('0xae')][_0x7c41('0x84')](_0x4bae0a);}[_0x7c41('0xc3')](_0x837986,_0x2d0e01,_0x5345d8,_0x1bf2fa){const _0x15070a=new Map(_0x2d0e01),_0x49234e=new Map(_0x590a64(_0x1bf2fa)),_0x49f73f=new Map();for(const [_0x5ece6b,_0x94e91d]of _0x5345d8)_0x49f73f[_0x7c41('0x5f')](_0x5ece6b,{'start':_0x94e91d[_0x7c41('0x16')][_0x7c41('0xbd')](),'end':_0x94e91d['end'][_0x7c41('0xbd')](),'rootName':_0x94e91d['root']['rootName']});this[_0x7c41('0xbf')][_0x7c41('0x5f')](_0x837986,{'roots':_0x15070a,'markers':_0x49f73f,'rootsAttributes':_0x49234e});}['_removeMetaData'](_0x596d44){this[_0x7c41('0xbf')][_0x7c41('0x50')](_0x596d44);}[_0x7c41('0x4f')](){this[_0x7c41('0xe2')](),this[_0x7c41('0x9')]=-0x1,this[_0x7c41('0x11')]=-0x1,this[_0x7c41('0xbf')]['clear'](),this[_0x7c41('0x46')](this[_0x7c41('0x88')]);}[_0x7c41('0xe2')](){this[_0x7c41('0x8f')]['clear'](),this[_0x7c41('0x9d')][_0x7c41('0x66')](),this[_0x7c41('0xb')]['clear'](),this[_0x7c41('0xb2')][_0x7c41('0x66')](),this['_diffRootsAttributes']['clear'](),this[_0x7c41('0xa0')][_0x7c41('0x66')](),this['_baseRootsAttributes'][_0x7c41('0x66')](),this[_0x7c41('0xaf')][_0x7c41('0x66')](),this['_baseIdsRoots']['clear'](),this[_0x7c41('0x47')][_0x7c41('0x66')](),this[_0x7c41('0x1f')]=0x1,this[_0x7c41('0xdf')]=this[_0x7c41('0x1f')];}[_0x7c41('0x4c')](_0x190073,_0x3cb2f9=null){let _0x29210e=null;_0x190073['is'](_0x7c41('0x92'))||(_0x29210e=new _0x26a125(_0x190073[_0x7c41('0x3a')],{'vid_start':null===_0x3cb2f9?this[_0x7c41('0x1f')]++:_0x3cb2f9++}));const _0x1b122e=[];for(const _0x4c51a7 of _0x190073[_0x7c41('0x81')]())if(_0x4c51a7['is'](_0x7c41('0x67'))){_0x1b122e[_0x7c41('0x6d')](this[_0x7c41('0x4c')](_0x4c51a7,_0x3cb2f9));const _0xed48a4=_0x1b122e[_0x1b122e[_0x7c41('0x25')]-0x1];null!==_0x3cb2f9&&(_0x3cb2f9=_0xed48a4['is'](_0x7c41('0x67'),'$text')?_0xed48a4['getAttribute'](_0x7c41('0x7e'))+0x1:_0xed48a4['getAttribute'](_0x7c41('0xd5'))+0x1);}else for(let _0x2d3b49=0x0;_0x2d3b49<_0x4c51a7[_0x7c41('0x99')];_0x2d3b49++)_0x1b122e[_0x7c41('0x6d')](new _0x26a125('$text',{'vid':null===_0x3cb2f9?this[_0x7c41('0x1f')]++:_0x3cb2f9++}));if(_0x190073['is'](_0x7c41('0x92'))){const _0x1dfa99=G(_0x190073[_0x7c41('0x2e')]);return _0x1dfa99[_0x7c41('0x19')](0x0,_0x1b122e),_0x1dfa99;}return _0x29210e['_setAttribute'](_0x7c41('0xd5'),null===_0x3cb2f9?this['_revisionId']++:_0x3cb2f9++),_0x29210e[_0x7c41('0x19')](0x0,_0x1b122e),_0x29210e;}[_0x7c41('0xc9')](_0x1cebe8,_0x55d0f0,_0xe024d6){this[_0x7c41('0xe2')]();const {roots:_0x4be6b2,markers:_0x545bb5,rootsAttributes:_0x272b23}=this[_0x7c41('0xbf')][_0x7c41('0x12')](_0x1cebe8);this[_0x7c41('0xa0')]=new Map(_0x4be6b2),this[_0x7c41('0xb5')]=new Map(_0x590a64(_0x272b23));for(const [_0x2de106,_0x9dbaed]of this[_0x7c41('0xa0')])if(_0x7c41('0xdb')!==_0x2de106&&(this[_0x7c41('0xb2')][_0x7c41('0x5f')](_0x2de106,q(_0x9dbaed)),this[_0x7c41('0xe')]=new Map(_0x590a64(_0x272b23)),_0xe024d6)){const _0x2d37d7=this[_0x7c41('0x1f')];this['_idsRoots']['set'](_0x2de106,this[_0x7c41('0x4c')](_0x9dbaed)),this[_0x7c41('0xf3')][_0x7c41('0x5f')](_0x2de106,this[_0x7c41('0x4c')](_0x9dbaed,_0x2d37d7));}this[_0x7c41('0xdf')]=this[_0x7c41('0x1f')],this[_0x7c41('0xb2')]['set'](_0x7c41('0xdb'),q(this['_baseRoots'][_0x7c41('0x12')](_0x7c41('0xdb')))),_0xe024d6&&this[_0x7c41('0xaf')]['set'](_0x7c41('0xdb'),this['_makeIdsRoot'](this[_0x7c41('0xa0')][_0x7c41('0x12')](_0x7c41('0xdb'))));for(const [_0x26e4cb,_0x1fb9b6]of _0x545bb5){const _0x1668f0=this[_0x7c41('0xa0')][_0x7c41('0x12')](_0x1fb9b6[_0x7c41('0x2e')]),_0x3b14bb=this[_0x7c41('0xb2')][_0x7c41('0x12')](_0x1fb9b6['rootName']),_0x42c0b3=new _0x34fae3(this[_0x7c41('0x6')](_0x1fb9b6[_0x7c41('0x16')],_0x1668f0),this[_0x7c41('0x6')](_0x1fb9b6['end'],_0x1668f0)),_0x141ab0=this[_0x7c41('0x51')](_0x42c0b3,_0x3b14bb);_0x1668f0[_0x7c41('0xd')][_0x7c41('0x5f')](_0x26e4cb,_0x42c0b3),this[_0x7c41('0x47')][_0x7c41('0x5f')](_0x26e4cb,_0x141ab0);}this[_0x7c41('0x55')](_0x1cebe8,_0x55d0f0,_0xe024d6);}[_0x7c41('0x55')](_0x321815,_0x21c26e,_0x4ac605){for(const _0x4fe269 of this[_0x7c41('0x88')]['getOperations'](_0x321815,_0x21c26e))this[_0x7c41('0xc')](_0x4fe269,_0x4ac605);for(const _0x42b228 of this[_0x7c41('0xb2')][_0x7c41('0x6f')]())_0x42b228[_0x7c41('0xd')][_0x7c41('0x66')]();for(const [_0x3483a1,_0x8354fc]of this['_markers']){this[_0x7c41('0xb2')][_0x7c41('0x12')](_0x8354fc[_0x7c41('0x64')]['rootName'])[_0x7c41('0xd')]['set'](_0x3483a1,_0x8354fc[_0x7c41('0xbd')]());}const _0x10528c=new Map(),_0x407503=new Map();for(const [_0x4b4dcc,_0x2995e4]of this['_diffRoots'])_0x10528c[_0x7c41('0x5f')](_0x4b4dcc,q(_0x2995e4)),_0x407503['set'](_0x4b4dcc,this[_0x7c41('0xe')][_0x7c41('0x12')](_0x4b4dcc));this[_0x7c41('0xc3')](_0x21c26e,_0x10528c,this[_0x7c41('0x47')],_0x407503);}[_0x7c41('0x91')](_0x244b3b){const _0x26830c=Array[_0x7c41('0x1a')](this['_savedMetaData'][_0x7c41('0xa3')]());_0x26830c[_0x7c41('0x86')]((_0x21397c,_0x41ad8f)=>_0x21397c-_0x41ad8f),_0x26830c[_0x7c41('0xcd')]();for(const _0x2e91e2 of _0x26830c)if(_0x2e91e2<_0x244b3b)return _0x2e91e2;return Number[_0x7c41('0x20')];}[_0x7c41('0x74')](_0xae9941,_0x22e2d4){const _0x170023=Array[_0x7c41('0x1a')](_0x22e2d4[_0x7c41('0xd')])['map'](([_0x2f42d7,_0x126720])=>[_0x2f42d7,this[_0x7c41('0x51')](_0x126720,_0xae9941)]);_0xae9941[_0x7c41('0xd')]=new Map(_0x170023);}[_0x7c41('0xad')](_0x3814af){for(const _0x3f886e of this['_markers'][_0x7c41('0x6f')]()){const _0x19811c=_0x3f886e['getTransformedByOperation'](_0x3814af),_0x3659a5=_0x34fae3[_0x7c41('0xb4')](_0x19811c);_0x3f886e[_0x7c41('0x16')]=_0x3659a5[_0x7c41('0x16')],_0x3f886e[_0x7c41('0x7c')]=_0x3659a5[_0x7c41('0x7c')];}}[_0x7c41('0xc')](_0x1fc110,_0xda69aa){if(_0x7c41('0xe6')==_0x1fc110[_0x7c41('0xd2')]||_0x7c41('0x5d')==_0x1fc110[_0x7c41('0xd2')])return void this[_0x7c41('0x43')](_0x1fc110,_0xda69aa);if('insert'==_0x1fc110['type']){const _0x161caf=_0x1fc110['position'][_0x7c41('0x64')][_0x7c41('0x2e')];this[_0x7c41('0xb2')]['has'](_0x161caf)||(this[_0x7c41('0xb2')]['set'](_0x161caf,G(_0x161caf,!0x0)),this['_diffRootsAttributes']['set'](_0x161caf,{}),_0xda69aa&&this[_0x7c41('0xaf')]['set'](_0x161caf,G(_0x161caf,!0x0)));}else{if(_0x7c41('0x13')==_0x1fc110['type']||_0x7c41('0x15')==_0x1fc110[_0x7c41('0xd2')]||_0x7c41('0x58')==_0x1fc110[_0x7c41('0xd2')])return void this[_0x7c41('0x4b')](_0x1fc110);}const _0x4bc573=this[_0x7c41('0xf1')](_0x1fc110,this[_0x7c41('0xb2')]);if('marker'!==_0x1fc110[_0x7c41('0xd2')]&&(_0x4bc573[_0x7c41('0x2d')](),this[_0x7c41('0xad')](_0x4bc573)),_0xda69aa)switch(_0x4bc573[_0x7c41('0xd2')]){case _0x7c41('0xe0'):this[_0x7c41('0x5')](_0x1fc110);break;case'move':case _0x7c41('0xb0'):case _0x7c41('0xd8'):this[_0x7c41('0xd0')](_0x1fc110);break;case _0x7c41('0x2'):this[_0x7c41('0x8b')](_0x1fc110);break;case'split':this[_0x7c41('0x10')](_0x1fc110);break;case _0x7c41('0x93'):this[_0x7c41('0x68')](_0x1fc110);}}[_0x7c41('0xf1')](_0x5d2736,_0x5a8308){const _0x12f7a9=_0x5d2736[_0x7c41('0xbd')]();return _0x12f7a9[_0x7c41('0x35')]=_0x5d2736[_0x7c41('0x35')],this[_0x7c41('0xda')](_0x12f7a9,_0x5a8308),_0x12f7a9;}[_0x7c41('0x73')](_0x12b024){return _0x12b024['map'](_0x357fee=>{const _0x355919=this[_0x7c41('0x56')](_0x357fee);return Number(_0x357fee['item'][_0x7c41('0x8')](_0x355919));});}['_generateTape'](_0x4f181b,_0x371c1b){if(_0x4f181b['is']('element',_0x7c41('0xb7')))_0x371c1b[_0x7c41('0x6d')]({'item':_0x4f181b,'type':_0x7c41('0xf2')});else{_0x4f181b['is'](_0x7c41('0x67'))&&_0x371c1b['push']({'item':_0x4f181b,'type':_0x7c41('0x18')});for(const _0x163864 of _0x4f181b[_0x7c41('0x81')]())this[_0x7c41('0xba')](_0x163864,_0x371c1b);_0x4f181b['is']('element')&&_0x371c1b[_0x7c41('0x6d')]({'item':_0x4f181b,'type':_0x7c41('0x71')});}return _0x371c1b;}[_0x7c41('0x45')](){const _0x2ca12a=new Map(this[_0x7c41('0x8f')]),_0x3a6a0a=new Map(_0x2ca12a),_0x456ab0=new Map(),_0x4ba08e={'insertions':{},'deletions':{}},_0x424ccf={'insertions':{},'deletions':{}},_0x350faf=new Map(),_0x10d545=new Set([...this[_0x7c41('0xa0')][_0x7c41('0xa3')](),...this['_diffRoots']['keys']()]);_0x10d545[_0x7c41('0x50')]('$graveyard');for(const _0x5be5f3 of _0x10d545){const _0x148a64=this[_0x7c41('0xb2')][_0x7c41('0x12')](_0x5be5f3)||G(_0x5be5f3,!0x1),_0x44b932=this['_baseRoots'][_0x7c41('0x12')](_0x5be5f3)||G(_0x5be5f3,!0x1);_0x148a64['isAttached']()||_0x44b932['isAttached']()?(_0x4ba08e[_0x7c41('0x9e')][_0x5be5f3]=q(_0x148a64),_0x4ba08e[_0x7c41('0xed')][_0x5be5f3]=q(_0x44b932),this['_copyMarkers'](_0x4ba08e[_0x7c41('0xed')][_0x5be5f3],_0x44b932),this[_0x7c41('0x74')](_0x4ba08e[_0x7c41('0x9e')][_0x5be5f3],_0x148a64),_0x424ccf[_0x7c41('0x9e')][_0x5be5f3]=this['_generateTape'](this[_0x7c41('0xaf')][_0x7c41('0x12')](_0x5be5f3),[]),_0x424ccf[_0x7c41('0xed')][_0x5be5f3]=this[_0x7c41('0xba')](this['_baseIdsRoots'][_0x7c41('0x12')](_0x5be5f3)||G(_0x5be5f3,!0x1),[])):_0x10d545[_0x7c41('0x50')](_0x5be5f3);}for(const _0x28e494 of _0x10d545){const _0x3f1cc7=_0x424ccf['insertions'][_0x28e494];for(const _0x54b1fc of _0x3f1cc7){const _0x592acf=this['_getVidAttributeName'](_0x54b1fc),_0x1a5c81=_0x54b1fc[_0x7c41('0x97')][_0x7c41('0x8')](_0x592acf);_0x3a6a0a['delete'](_0x1a5c81),_0x1a5c81>=this[_0x7c41('0xdf')]&&_0x456ab0[_0x7c41('0x5f')](_0x1a5c81,_0x2ca12a[_0x7c41('0x12')](_0x1a5c81));}}for(const _0x16b800 of _0x10d545){const _0x4f21de=_0x424ccf[_0x7c41('0x9e')][_0x16b800],_0x531b6b=this['_getBaseVids'](_0x424ccf[_0x7c41('0xed')][_0x16b800]);let _0x35d397=0x0;for(const _0x5e5858 of _0x4f21de){const _0x2f3e8d=this['_getVidAttributeName'](_0x5e5858),_0x3a9c9b=_0x5e5858[_0x7c41('0x97')][_0x7c41('0x8')](_0x2f3e8d);if(!_0x456ab0[_0x7c41('0x59')](_0x3a9c9b)&&!_0x350faf['has'](_0x3a9c9b)){if(_0x3a6a0a[_0x7c41('0x59')](_0x3a9c9b))_0x35d397++;else{if(_0x3a9c9b!=_0x531b6b[_0x35d397]){const _0x2a6f8f=_0x2ca12a['get'](_0x3a9c9b)||_0x2ca12a['get'](_0x531b6b[_0x35d397]);for(;_0x3a9c9b!=_0x531b6b[_0x35d397];)_0x3a6a0a['has'](_0x531b6b[_0x35d397])||(_0x350faf['set'](_0x531b6b[_0x35d397],_0x2a6f8f),_0x2ca12a[_0x7c41('0x5f')](_0x531b6b[_0x35d397],_0x2a6f8f)),_0x35d397++;}_0x35d397++;}}}}for(const _0x10cc0b of _0x10d545){const _0x4811e1=_0x424ccf[_0x7c41('0x9e')][_0x10cc0b];for(const _0x217579 of _0x4811e1){const _0x218959=this[_0x7c41('0x56')](_0x217579),_0x5ca700=_0x217579['item'][_0x7c41('0x8')](_0x218959);if(_0x350faf[_0x7c41('0x59')](_0x5ca700)){const _0x2ce60f=_0x350faf['get'](_0x5ca700);_0x3a6a0a['has'](_0x5ca700)||_0x3a6a0a[_0x7c41('0x5f')](_0x5ca700,{..._0x2ce60f}),_0x456ab0[_0x7c41('0x5f')](_0x5ca700,{..._0x2ce60f});}}}for(const _0x2d4cb1 of _0x3a6a0a[_0x7c41('0xa3')]())_0x2d4cb1>=this[_0x7c41('0xdf')]&&_0x3a6a0a[_0x7c41('0x50')](_0x2d4cb1);const _0x5c1693=new Map();for(const _0x4cb926 of _0x10d545){let _0x23abbe=_0x424ccf[_0x7c41('0x9e')][_0x4cb926];for(const _0x21aa9e of _0x23abbe)if(_0x21aa9e[_0x7c41('0x97')]['is']('element','tableCell')){const _0x287d4b=this[_0x7c41('0x56')](_0x21aa9e),_0x1cb0e8=_0x21aa9e[_0x7c41('0x97')][_0x7c41('0x8')](_0x287d4b);if(_0x456ab0['has'](_0x1cb0e8)){const _0x2926db=_0x21aa9e[_0x7c41('0x97')][_0x7c41('0x5e')][_0x7c41('0x5e')][_0x7c41('0x8')](_0x7c41('0x6e')),_0x286130=_0x5c1693['get'](_0x2926db)||new Set();_0x286130[_0x7c41('0xf0')](_0x456ab0[_0x7c41('0x12')](_0x1cb0e8)[_0x7c41('0x75')]),_0x5c1693[_0x7c41('0x5f')](_0x2926db,_0x286130);}}_0x23abbe=_0x424ccf['deletions'][_0x4cb926];for(const _0x36d76b of _0x23abbe)if(_0x36d76b[_0x7c41('0x97')]['is']('element',_0x7c41('0x4d'))){const _0x185508=this['_getVidAttributeName'](_0x36d76b),_0xf5420=_0x36d76b[_0x7c41('0x97')][_0x7c41('0x8')](_0x185508);if(_0x3a6a0a[_0x7c41('0x59')](_0xf5420)){const _0x397c89=_0x36d76b[_0x7c41('0x97')]['parent'][_0x7c41('0x5e')][_0x7c41('0x8')]('vid_start'),_0x108934=_0x5c1693[_0x7c41('0x12')](_0x397c89)||new Set();_0x108934[_0x7c41('0xf0')](_0x3a6a0a[_0x7c41('0x12')](_0xf5420)[_0x7c41('0x75')]),_0x5c1693[_0x7c41('0x5f')](_0x397c89,_0x108934);}}for(const _0x6f2c32 of _0x5c1693[_0x7c41('0xa3')]())(_0x456ab0[_0x7c41('0x59')](_0x6f2c32)||_0x3a6a0a[_0x7c41('0x59')](_0x6f2c32))&&_0x5c1693[_0x7c41('0x50')](_0x6f2c32);}for(const _0x1fde96 of _0x10d545){const _0x55690d=_0x424ccf[_0x7c41('0x9e')][_0x1fde96];let _0x40b8ad=null,_0x424b6e=null;for(const _0x543afb of _0x55690d){const _0x16950a=this[_0x7c41('0x56')](_0x543afb),_0x23183b=_0x543afb['item'][_0x7c41('0x8')](_0x16950a),_0x38b757=_0x5c1693['get'](_0x23183b);_0x38b757&&_0x7c41('0x18')==_0x543afb['type']&&(_0x40b8ad=Array[_0x7c41('0x1a')](_0x38b757)[0x0],_0x424b6e=_0x543afb[_0x7c41('0x97')][_0x7c41('0x8')]('vid_end')),_0x40b8ad&&(_0x3a6a0a[_0x7c41('0x5f')](_0x23183b,{'userId':_0x40b8ad}),_0x456ab0[_0x7c41('0x5f')](_0x23183b,{'userId':_0x40b8ad})),_0x23183b==_0x424b6e&&(_0x40b8ad=null,_0x424b6e=null);}}const _0x582080={},_0x5ca99d=new Set();for(const _0x1fe503 of _0x10d545){const _0x57f305=_0x4ba08e[_0x7c41('0xed')][_0x1fe503],_0x167639=_0x4ba08e[_0x7c41('0x9e')][_0x1fe503];for(const {userId:_0x22d487}of this['_touchedMarkers'][_0x7c41('0x6f')]())null!==_0x22d487&&_0x5ca99d['add'](_0x22d487);for(const {userId:_0x518325}of this[_0x7c41('0xb')][_0x7c41('0x6f')]())null!==_0x518325&&_0x5ca99d[_0x7c41('0xf0')](_0x518325);this[_0x7c41('0xbe')](_0x167639,_0x424ccf[_0x7c41('0x9e')][_0x1fe503],_0x456ab0,'insertion',_0x5ca99d),this[_0x7c41('0xbe')](_0x57f305,_0x424ccf[_0x7c41('0xed')][_0x1fe503],_0x3a6a0a,'deletion',_0x5ca99d),_0x582080[_0x1fe503]={'insertions':this[_0x7c41('0xf8')](_0x167639),'deletions':this[_0x7c41('0xf8')](_0x57f305),'attachChange':this[_0x7c41('0xb')][_0x7c41('0x12')](_0x1fe503)||null,'attributesBefore':_0x590a64(this[_0x7c41('0xb5')][_0x7c41('0x12')](_0x1fe503))||{},'attributesAfter':_0x590a64(this[_0x7c41('0xe')][_0x7c41('0x12')](_0x1fe503))};}return{'diffData':_0x582080,'authorsIds':Array[_0x7c41('0x1a')](_0x5ca99d)};}['_processRootBeforeSave'](_0x251744){for(const [,_0x751da9]of _0x251744[_0x7c41('0xd')]){const _0x5bcdc8=_0x751da9[_0x7c41('0x16')]['getAncestors']()[_0x7c41('0x42')](_0x1f8f43=>_0x7c41('0x4d')==_0x1f8f43[_0x7c41('0x3a')]);for(const _0x260a34 of _0x5bcdc8)0x1==_0x260a34['childCount']&&_0x260a34[_0x7c41('0x1d')](0x0)['is'](_0x7c41('0x67'),'paragraph')&&_0x260a34['getChild'](0x0)[_0x7c41('0x1b')](_0x7c41('0xb9'),!0x0);}}[_0x7c41('0xf8')](_0x21d980){this[_0x7c41('0x3f')](_0x21d980);const _0x190bae=this['editor']['data'][_0x7c41('0xec')](_0x21d980,{}),_0x4768cc=Array[_0x7c41('0x1a')](_0x190bae[_0x7c41('0x81')]())[_0x7c41('0xd1')](_0x47ecf9=>this['_getViewJson'](_0x47ecf9));return JSON['stringify'](_0x4768cc);}['_getViewJson'](_0x2925cd){if(_0x2925cd['is'](_0x7c41('0xb7')))return _0x2925cd[_0x7c41('0xae')];{const _0x49fe12=_0x2925cd;return{'type':Object[_0x7c41('0xa3')](B)[_0x7c41('0x79')](_0x4473b9=>_0x2925cd instanceof B[_0x4473b9]),'name':_0x49fe12['name'],'attributes':Array[_0x7c41('0x1a')](_0x49fe12[_0x7c41('0xfa')]()),'children':Array['from'](_0x49fe12[_0x7c41('0x81')]())['map'](_0x5c3cf1=>this['_getViewJson'](_0x5c3cf1))};}}[_0x7c41('0xbe')](_0x5aa6fd,_0x46156c,_0x2c5b5f,_0x21e604,_0x282545){let _0x4dcd1d=null,_0x4d4d3f=null,_0x1963c7=0x0;const _0x3a1fb6=this[_0x7c41('0x8d')]['model'];for(let _0xba710e=0x0;_0xba710e<_0x46156c[_0x7c41('0x25')];_0xba710e++){const _0x41a078=this[_0x7c41('0x56')](_0x46156c[_0xba710e]),_0x29437b=_0x46156c[_0xba710e]['item'][_0x7c41('0x8')](_0x41a078),_0x461dcb=_0x2c5b5f['get'](_0x29437b),_0x662d39=_0xba710e==_0x46156c[_0x7c41('0x25')]-0x1;(!_0x4dcd1d&&_0x461dcb&&(_0x4dcd1d=_0x461dcb,_0x4d4d3f=_0x46156c[_0xba710e]),_0x4dcd1d&&(!_0x461dcb||_0x461dcb[_0x7c41('0x75')]!=_0x4dcd1d['userId']))&&(_0x3791bb(_0x461dcb,L(_0x4d4d3f,_0x5aa6fd,_0x3a1fb6),L(_0x46156c[_0xba710e],_0x5aa6fd,_0x3a1fb6)),_0x4dcd1d=_0x461dcb||null,_0x4d4d3f=_0x461dcb?_0x46156c[_0xba710e]:null),_0x4dcd1d&&_0x662d39&&_0x3791bb(_0x461dcb,L(_0x4d4d3f,_0x5aa6fd,_0x3a1fb6),W(_0x46156c[_0xba710e],_0x5aa6fd,_0x3a1fb6));}function _0x3791bb(_0x32264e,_0x9c286e,_0x520468){const _0x4ecc7b=_0x4dcd1d[_0x7c41('0x75')],_0x2ded1e=_0x7c41('0x1e')+_0x21e604+':'+_0x4ecc7b+':'+_0x1963c7++,_0x15e12a=_0x3a1fb6[_0x7c41('0x98')](_0x9c286e,_0x520468);_0x5aa6fd[_0x7c41('0xd')]['set'](_0x2ded1e,_0x15e12a),null!==_0x4ecc7b&&_0x282545[_0x7c41('0xf0')](_0x4ecc7b);}}['_getVidAttributeName'](_0x5c4478){switch(_0x5c4478['type']){case _0x7c41('0x18'):return'vid_start';case _0x7c41('0x71'):return _0x7c41('0xd5');default:return _0x7c41('0x7e');}}['_fixOperation'](_0x24708a,_0x1e6991){_0x24708a[_0x7c41('0x7d')]=null;for(const _0x55a494 in _0x24708a){const _0x48239f=_0x24708a[_0x55a494];if(_0x48239f instanceof _0x32346e){const _0x58f780=_0x1e6991[_0x7c41('0x12')](_0x48239f[_0x7c41('0x64')][_0x7c41('0x2e')]);_0x24708a[_0x55a494]=this[_0x7c41('0x6')](_0x48239f,_0x58f780);}if(_0x48239f instanceof _0x34fae3){const _0x321f07=_0x1e6991[_0x7c41('0x12')](_0x48239f[_0x7c41('0x64')][_0x7c41('0x2e')]);_0x24708a[_0x55a494]=this[_0x7c41('0x51')](_0x48239f,_0x321f07);}'root'===_0x55a494&&(_0x24708a['root']=_0x1e6991[_0x7c41('0x12')](_0x24708a['root']['rootName']));}}[_0x7c41('0x51')](_0x654875,_0x193809){return this['editor']['model']['createRange'](this[_0x7c41('0x6')](_0x654875[_0x7c41('0x16')],_0x193809),this[_0x7c41('0x6')](_0x654875[_0x7c41('0x7c')],_0x193809));}[_0x7c41('0x6')](_0x333a71,_0x532df0){return this[_0x7c41('0x8d')][_0x7c41('0x57')]['createPositionFromPath'](_0x532df0,_0x333a71['path'],_0x333a71[_0x7c41('0x96')]);}[_0x7c41('0x5')](_0x41a5f1){const _0xd50a7a=this[_0x7c41('0xaf')]['get'](_0x41a5f1[_0x7c41('0xe3')]['root'][_0x7c41('0x2e')]),_0xfd76e4=this[_0x7c41('0x6')](_0x41a5f1['position'],_0xd50a7a),_0x3fb063=null===_0x41a5f1[_0x7c41('0x35')]?null:_0x41a5f1[_0x7c41('0x35')]||this['editor']['plugins']['get'](_0x7c41('0x6c'))['me']['id'],_0x4a08a7=_0xfd76e4[_0x7c41('0x5e')],_0x1a4dc5=this[_0x7c41('0x1f')],_0x178236=[];for(const _0x2e71cf of _0x41a5f1[_0x7c41('0xb1')])if(_0x2e71cf['is'](_0x7c41('0x67')))_0x178236['push'](this['_makeIdsRoot'](_0x2e71cf));else for(let _0x533756=0x0;_0x533756<_0x2e71cf[_0x7c41('0x99')];_0x533756++)_0x178236[_0x7c41('0x6d')](new _0x26a125(_0x7c41('0xb7'),{'vid':this['_revisionId']++}));const _0x295f89=this[_0x7c41('0x1f')];for(let _0x7cdd20=_0x1a4dc5;_0x7cdd20<_0x295f89;_0x7cdd20++)this['_touched']['set'](_0x7cdd20,{'userId':_0x3fb063});_0x4a08a7['_insertChild'](_0xfd76e4[_0x7c41('0xf7')],_0x178236);}['_handleMoveOperation'](_0x15316d){(_0x15316d=this[_0x7c41('0xf1')](_0x15316d,this[_0x7c41('0xaf')]))[_0x7c41('0x2d')]();const _0x311c7d=null===_0x15316d[_0x7c41('0x35')]?null:_0x15316d[_0x7c41('0x35')]||this[_0x7c41('0x8d')]['plugins'][_0x7c41('0x12')](_0x7c41('0x6c'))['me']['id'],_0x1dcb61=_0x15316d[_0x7c41('0x3c')](),_0x163c47=_0x1dcb61[_0x7c41('0x5e')],_0x3d9a61=_0x1dcb61[_0x7c41('0xf7')];!function _0xfc6527(_0x1c7584,_0x39b7f0,_0x58e2d8,_0x2d4f36){for(let _0x34da7e=_0x58e2d8;_0x34da7e<_0x2d4f36;_0x34da7e++){const _0x2f97c2=_0x39b7f0[_0x7c41('0x1d')](_0x34da7e);_0x2f97c2['is'](_0x7c41('0x67'),_0x7c41('0xb7'))?_0x1c7584[_0x7c41('0x5f')](_0x2f97c2['getAttribute']('vid'),{'userId':_0x311c7d}):(_0x1c7584[_0x7c41('0x5f')](_0x2f97c2[_0x7c41('0x8')](_0x7c41('0x6e')),{'userId':_0x311c7d}),_0xfc6527(_0x1c7584,_0x2f97c2,0x0,_0x2f97c2['childCount']),_0x1c7584[_0x7c41('0x5f')](_0x2f97c2[_0x7c41('0x8')](_0x7c41('0xd5')),{'userId':_0x311c7d}));}}(this['_touched'],_0x163c47,_0x3d9a61,_0x3d9a61+_0x15316d[_0x7c41('0x3')]);}[_0x7c41('0x8b')](_0x47cfbd){const _0x99ee31=null===(_0x47cfbd=this[_0x7c41('0xf1')](_0x47cfbd,this[_0x7c41('0xaf')]))['_authorId']?null:_0x47cfbd[_0x7c41('0x35')]||this['editor'][_0x7c41('0xa')]['get'](_0x7c41('0x6c'))['me']['id'],_0x21f05d=_0x47cfbd[_0x7c41('0x7a')][_0x7c41('0x5e')],_0x550009=_0x47cfbd[_0x7c41('0xcb')]['parent'],_0x348ba1=_0x21f05d[_0x7c41('0x8')](_0x7c41('0xd5')),_0x39f63a=_0x550009[_0x7c41('0x8')](_0x7c41('0x6e'));_0x21f05d[_0x7c41('0x1b')]('vid_end',_0x550009[_0x7c41('0x8')](_0x7c41('0xd5'))),_0x550009[_0x7c41('0x1b')](_0x7c41('0xd5'),_0x348ba1),this[_0x7c41('0x8f')][_0x7c41('0x5f')](_0x39f63a,{'userId':_0x99ee31}),this[_0x7c41('0x8f')][_0x7c41('0x5f')](_0x348ba1,{'userId':_0x99ee31}),_0x47cfbd['_execute']();}[_0x7c41('0x10')](_0x13fcde){const _0x2d4dc7=null===(_0x13fcde=this[_0x7c41('0xf1')](_0x13fcde,this[_0x7c41('0xaf')]))['_authorId']?null:_0x13fcde[_0x7c41('0x35')]||this[_0x7c41('0x8d')][_0x7c41('0xa')][_0x7c41('0x12')](_0x7c41('0x6c'))['me']['id'],_0x352320=_0x13fcde[_0x7c41('0x37')],_0x93224e=_0x13fcde[_0x7c41('0x72')][_0x7c41('0x5e')];_0x13fcde[_0x7c41('0x2d')]();const _0x2840b1=_0x93224e[_0x7c41('0x8')](_0x7c41('0xd5')),_0x308a01=_0x13fcde[_0x7c41('0x8e')][_0x7c41('0x6a')];if(_0x352320){const _0x53929e=_0x308a01[_0x7c41('0x8')]('vid_end'),_0x27f100=_0x93224e[_0x7c41('0x8')](_0x7c41('0xd5'));_0x93224e['_setAttribute']('vid_end',_0x53929e),_0x308a01['_setAttribute'](_0x7c41('0xd5'),_0x27f100),this['_touched'][_0x7c41('0x5f')](_0x93224e[_0x7c41('0x8')](_0x7c41('0xd5')),{'userId':_0x2d4dc7}),this[_0x7c41('0x8f')][_0x7c41('0x5f')](_0x308a01[_0x7c41('0x8')](_0x7c41('0x6e')),{'userId':_0x2d4dc7});}else{const _0x10887d=this['_revisionId']++,_0x5d6aeb=this[_0x7c41('0x1f')]++;_0x93224e[_0x7c41('0x1b')]('vid_end',_0x10887d),_0x308a01[_0x7c41('0x1b')](_0x7c41('0x6e'),_0x5d6aeb),_0x308a01[_0x7c41('0x1b')]('vid_end',_0x2840b1),this[_0x7c41('0x8f')][_0x7c41('0x5f')](_0x10887d,{'userId':_0x2d4dc7}),this[_0x7c41('0x8f')][_0x7c41('0x5f')](_0x5d6aeb,{'userId':_0x2d4dc7});}}[_0x7c41('0x68')](_0x1ca4f6){if(!_0x1ca4f6[_0x7c41('0xeb')])return;const _0xe2d48=(_0x1ca4f6=this[_0x7c41('0xf1')](_0x1ca4f6,this[_0x7c41('0xb2')]))[_0x7c41('0xc7')]?_0x1ca4f6[_0x7c41('0xc7')][_0x7c41('0x64')]:null,_0x5ed3e5=_0x1ca4f6['newRange']?_0x1ca4f6[_0x7c41('0x8a')][_0x7c41('0x64')]:null;_0xe2d48&&this[_0x7c41('0x47')][_0x7c41('0x50')](_0x1ca4f6[_0x7c41('0x3a')]),_0x5ed3e5&&this['_markers'][_0x7c41('0x5f')](_0x1ca4f6[_0x7c41('0x3a')],_0x1ca4f6[_0x7c41('0x8a')][_0x7c41('0xbd')]());const _0x2a11f9=null===_0x1ca4f6['_authorId']?null:_0x1ca4f6[_0x7c41('0x35')]||this[_0x7c41('0x8d')][_0x7c41('0xa')]['get'](_0x7c41('0x6c'))['me']['id'],_0x224b31=_0x1ca4f6['name'];if(!this[_0x7c41('0x9d')][_0x7c41('0x59')](_0x224b31))return void this[_0x7c41('0x9d')]['set'](_0x224b31,{'range':_0x1ca4f6[_0x7c41('0xc7')],'userId':_0x2a11f9});const _0x15ef05=this[_0x7c41('0x9d')][_0x7c41('0x12')](_0x224b31),_0x4e48d5=_0x15ef05[_0x7c41('0x53')],_0x32c69a=_0x1ca4f6[_0x7c41('0x8a')];null==_0x4e48d5&&null==_0x32c69a||_0x4e48d5&&_0x32c69a&&_0x4e48d5['isEqual'](_0x32c69a)?this['_touchedMarkers']['delete'](_0x1ca4f6[_0x7c41('0x3a')]):_0x15ef05[_0x7c41('0x75')]=_0x2a11f9;}[_0x7c41('0x43')](_0x294056,_0x2b741b){this[_0x7c41('0xb2')][_0x7c41('0x59')](_0x294056[_0x7c41('0x2e')])?this[_0x7c41('0xb2')]['get'](_0x294056['rootName'])[_0x7c41('0x14')]=_0x294056[_0x7c41('0x70')]:(this['_diffRoots'][_0x7c41('0x5f')](_0x294056['rootName'],G(_0x294056[_0x7c41('0x2e')],!0x0)),this[_0x7c41('0xe')][_0x7c41('0x5f')](_0x294056[_0x7c41('0x2e')],{}),_0x2b741b&&this[_0x7c41('0xaf')][_0x7c41('0x5f')](_0x294056['rootName'],G(_0x294056['rootName'],!0x0)));const _0x1302f3=null===_0x294056[_0x7c41('0x35')]?null:_0x294056[_0x7c41('0x35')]||this['editor'][_0x7c41('0xa')][_0x7c41('0x12')](_0x7c41('0x6c'))['me']['id'],_0x35a836=this[_0x7c41('0xb')][_0x7c41('0x12')](_0x294056['rootName']);_0x35a836&&_0x35a836['userId']===_0x1302f3?this[_0x7c41('0xb')][_0x7c41('0x50')](_0x294056[_0x7c41('0x2e')]):this[_0x7c41('0xb')]['set'](_0x294056[_0x7c41('0x2e')],{'userId':_0x1302f3,'isAttached':_0x294056[_0x7c41('0x70')]});}[_0x7c41('0x4b')](_0x2b8480){const _0x5b934a=this[_0x7c41('0xe')]['get'](_0x2b8480[_0x7c41('0x64')][_0x7c41('0x2e')]);null===_0x2b8480['newValue']?delete _0x5b934a[_0x2b8480[_0x7c41('0x9a')]]:_0x5b934a[_0x2b8480[_0x7c41('0x9a')]]=_0x2b8480['newValue'];}}function q(_0x8fa37){const _0x315bb1=G(_0x8fa37[_0x7c41('0x2e')],_0x8fa37[_0x7c41('0x94')]());for(const _0x486506 of _0x8fa37[_0x7c41('0x81')]()){const _0x4badbf=_0x486506[_0x7c41('0xf6')](!0x0);_0x315bb1['_appendChild'](_0x4badbf);}return _0x315bb1;}function G(_0x2a0d77,_0x41453b=!0x0){const _0x4a1e12=new _0x285c45();return _0x4a1e12[_0x7c41('0x2e')]=_0x2a0d77,_0x4a1e12[_0x7c41('0x14')]=_0x41453b,_0x4a1e12[_0x7c41('0x94')]=()=>_0x4a1e12['_isAttached'],_0x4a1e12;}function L(_0x4a9a1c,_0x2ae952,_0x5ba4d6){const _0x130de3=_0x7c41('0x71')==_0x4a9a1c['type']?_0x5ba4d6[_0x7c41('0xc6')](_0x4a9a1c[_0x7c41('0x97')],_0x7c41('0x7c')):_0x5ba4d6[_0x7c41('0x4a')](_0x4a9a1c['item']);return _0x5ba4d6[_0x7c41('0xac')](_0x2ae952,_0x130de3[_0x7c41('0x65')],_0x130de3[_0x7c41('0x96')]);}function W(_0x2dc0f5,_0x48eade,_0x1f23ee){const _0x5685b5=_0x7c41('0x18')==_0x2dc0f5[_0x7c41('0xd2')]?_0x1f23ee[_0x7c41('0xc6')](_0x2dc0f5[_0x7c41('0x97')],0x0):_0x1f23ee['createPositionAfter'](_0x2dc0f5[_0x7c41('0x97')]);return _0x1f23ee[_0x7c41('0xac')](_0x48eade,_0x5685b5[_0x7c41('0x65')],_0x5685b5['stickiness']);}
23
+ const _0x2860=['attributesAfter','history','revision-end','_handleSplitOperation','forEach','data-revision-','documentFragment','Users','version','NEGATIVE_INFINITY','PENDING_ACTION_REVISION_HISTORY','authors','getRevisionDocumentData','vid_end','getAncestors','remove','getTime','values','marker','push','clear','document','_fixPosition','_getState','afterInit','getRevisionRootsAttributes','_idsRoots','_getVidAttributeName','getChild','toModel','affectsData','revisionHistory.resumeUnsavedRevision','$graveyard','then','_reset','getAttributes','_lastFrom','root','for','offsetSize','_handleMoveOperation','_makeModelFromViewString','_applyOperations','start','key','_bufferUpdate','view','isReady','slice','updateRevisions','_prepareViewToSave','string','markers','addRevision','revision-start','pluginName','getRootNames','creator','data','getRevisions','includes','init','reinsert','define','userId','get','stickiness','sendBufferedUpdates','_fixRange','_operations','PendingActions','_cloneOperation','Empty\x20document','_startingVersion','delete','getNodeByPath','resolve','getCurrentRevisionId','authorsIds','requires','getIndex','addRevisionData','attributesBefore','_calculateMetaData','revision','_markChanges','_setConversion','clone','useFillerType','_processRootBeforeSave','setRevisionData','default','_lastTo','_getPreviousFrom','_makeRevision','_clone','elementStart','currentRevision','_touchedRoots','deletions','keys','collaboration.channelId','_diffRootsAttributes','elementEnd','changeRootAttribute','add','insertion','_makeIdsRoot','parse','hasContent','reverse','find','editor','plugins','has','graveyardPosition','fromEntries','markerToData','paragraph','diffData','repository','name','locale','finally','rootsAttributes','attributes','_getBaseVids','getMovedRangeStart','_removeMetaData','_loadedStateData','previousPosition','_update','max','config','_startingRevisionId','_handleMarkerOperation','saveRevision','editing','createRange','getLatestVersion','_handleRootAttributeOperation','trim','revision:','set','children','addRootAttribute','range','_initialRevisionId','_copyMarkers','getRange','setSource','bind','_saveMetaData','isAttached','_continueCurrentRevision','isAdd','_transformMarkers','position','item','_addPendingAction','vid_start','size','startsWith','offset','text','sort','childCount','map','vid','_markers','oldRange','newValue','initialData','newRange','_touched','_execute','_baseRoots','_revisionId','filter','_removeRevisionMarkers','_setAttribute','end','getData','toVersion','roots','_generateTape','path','_authorId','_diffRoots','deletion','_removePendingAction','_handleInsertOperation','merge','adapter','_getViewJson','loadState','_bufferedUpdates','source','_revisionDataBuilder','_appendChild','insert','conversion','getRevision','createPositionAt','ready','_fixOperation','_source','getOperation','$text','_loadRevisionData','_baseRootsAttributes','from','_replaceEditorDataWithRevisionData','addRoot','element','getTransformedByOperation','toData','length','marked','_handleMergeOperation','getWalker','buildRevisionData','_insertChild','type','split','getUser','_baseIdsRoots','attachChange','tableCell','fromVersion','insertions','RevisionsRepository','shift','getRoot','createRevision','getAttribute','_touchedMarkers','_createCurrentRevision','_loadState','_findInsertionIndex','createdAt','_handleOperation','baseVersion','howMany','_pendingAction','_isInit','creatorId','processor','_isAttached','getChildren','createPositionAfter','_isPendingUpdate','createPositionFromPath','initial','upcast','_handleRootOperation','dataToMarker','stringify','model','RevisionTracker','rootName','parent','_savedMetaData','Initial\x20revision'];(function(_0x40ac0a,_0x2860a0){const _0x392c95=function(_0x47362d){while(--_0x47362d){_0x40ac0a['push'](_0x40ac0a['shift']());}};_0x392c95(++_0x2860a0);}(_0x2860,0x173));const _0x392c=function(_0x40ac0a,_0x2860a0){_0x40ac0a=_0x40ac0a-0x0;let _0x392c95=_0x2860[_0x40ac0a];return _0x392c95;};import{Users as _0xd6e3e6}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x1737bb,PendingActions as _0x3fcd79}from'ckeditor5/src/core';import{logWarning as _0xd5bd1b,uid as _0x120197}from'ckeditor5/src/utils';import{Position as _0xddb985,Range as _0x26052a,Element as _0x36ab16,DocumentFragment as _0x1254c3,ViewText as _0x2de5cd,ViewElement as _0x213095,ViewContainerElement as _0x65bb98,ViewAttributeElement as _0x1c2e5f,ViewEmptyElement as _0x22097b,ViewRawElement as _0x5d8911,ViewUIElement as _0x49f227,ViewDocumentFragment as _0x1378d0}from'ckeditor5/src/engine';import _0x21e927 from'./revisionsrepository';import{getTranslation as _0x2a795c}from'./utils/common-translations';import{cloneDeep as _0x4d9438,isEqual as _0x5d01ed}from'lodash-es';const B={'c':_0x65bb98,'a':_0x1c2e5f,'e':_0x22097b,'r':_0x5d8911,'u':_0x49f227};export default class l extends _0x1737bb{static get[_0x392c('0xd4')](){return _0x392c('0x98');}static get[_0x392c('0xec')](){return[_0xd6e3e6,_0x21e927,_0x3fcd79];}constructor(_0x3fc9c9){super(_0x3fc9c9),this[_0x392c('0x56')]=null,this[_0x392c('0xfe')]=null,this[_0x392c('0x5b')]=new H(this[_0x392c('0x5')]),this[_0x392c('0x28')]=this[_0x392c('0x5')][_0x392c('0x1a')][_0x392c('0xde')](_0x392c('0x102'))||_0x392c('0x92'),this['_bufferedUpdates']=new Map(),this[_0x392c('0x16')]=null;const _0x1c9548=_0x120197();this[_0x392c('0x63')]={'history':this[_0x392c('0x5')]['model'][_0x392c('0xb2')][_0x392c('0x9e')],'getLatestVersion':()=>Promise[_0x392c('0xe9')](this[_0x392c('0x5')][_0x392c('0x97')]['document'][_0x392c('0xa5')]),'getCurrentRevisionId':()=>_0x1c9548},this[_0x392c('0x24')]('isReady',!0x1),this[_0x392c('0x24')]('isEnabled',!0x0),this['set'](_0x392c('0x90'),!0x1),this[_0x392c('0x5')][_0x392c('0x1a')][_0x392c('0xdc')](_0x392c('0xbc'),!0x0),this[_0x392c('0x5')]['conversion'][_0x392c('0xc3')](_0x392c('0x93'))[_0x392c('0x95')]({'view':_0x392c('0xf1')});}[_0x392c('0xda')](){this['repository']=this[_0x392c('0x5')][_0x392c('0x6')][_0x392c('0xde')](_0x392c('0x7c')),this[_0x392c('0xf3')](),this['editor'][_0x392c('0xd7')]['on'](_0x392c('0x61'),()=>{const _0x3e5671=this['repository']['getRevision'](0x0),_0x21f622=_0x3e5671&&null===_0x3e5671[_0x392c('0xd6')]?_0x3e5671:null;if(this[_0x392c('0x2f')]=!!_0x21f622&&this[_0x392c('0x5')][_0x392c('0x1a')][_0x392c('0xde')](_0x392c('0xbc')),this['editor'][_0x392c('0x6')][_0x392c('0x7')]('RealTimeCollaborationClient')){const _0x306fbe=this[_0x392c('0x63')]['getCurrentRevisionId'](),_0x4a0b66=this[_0x392c('0xd')][_0x392c('0x5f')](_0x306fbe);if(_0x4a0b66)this[_0x392c('0xe6')]=_0x4a0b66['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0xf3cae4=this[_0x392c('0x63')][_0x392c('0x9e')][_0x392c('0xe2')][_0x392c('0x4')](_0x3b4309=>!_0x3b4309[_0x392c('0x8a')]),_0x144cf7=_0xf3cae4?_0xf3cae4['baseVersion']:this['_source'][_0x392c('0x9e')][_0x392c('0xa5')];_0x3e5671?(_0x3e5671[_0x392c('0x4c')]<_0x144cf7&&_0x3e5671[_0x392c('0x18')]({'toVersion':_0x144cf7}),this[_0x392c('0x2f')]?(this['_source'][_0x392c('0xea')]=()=>_0x21f622['id'],this[_0x392c('0xe6')]=_0x21f622[_0x392c('0x7a')]):(this[_0x392c('0xe6')]=_0x3e5671[_0x392c('0x4c')],this[_0x392c('0x2f')]=!0x1)):(this['_startingVersion']=_0x144cf7,this['_continueCurrentRevision']=!0x1);}}else _0x21f622&&(this[_0x392c('0x5')][_0x392c('0x97')]['document'][_0x392c('0x9e')][_0x392c('0xa5')]=Math[_0x392c('0x19')](_0x21f622[_0x392c('0x4c')],this['editor'][_0x392c('0x97')]['document'][_0x392c('0x9e')]['version']),_0x21f622[_0x392c('0x7a')]===_0x21f622[_0x392c('0x4c')]?(0x0!==_0x21f622[_0x392c('0x7a')]&&(this['_source']['getCurrentRevisionId']=()=>_0x21f622['id']),this[_0x392c('0x2f')]=!0x1):this[_0x392c('0x2f')]&&(this[_0x392c('0x63')][_0x392c('0xea')]=()=>_0x21f622['id'],this['_startingVersion']=_0x21f622[_0x392c('0x7a')])),this[_0x392c('0x2f')]||(this['_startingVersion']=this['editor'][_0x392c('0x97')][_0x392c('0xb2')][_0x392c('0xa5')]);this[_0x392c('0x5b')][_0x392c('0xda')](this[_0x392c('0x63')][_0x392c('0x9e')]),this['_createInitialRevision'](this['_startingVersion']),this[_0x392c('0x82')](this[_0x392c('0xe6')]),this['adapter']&&this[_0x392c('0xe0')]();}),this[_0x392c('0x2c')](_0x392c('0xcc'))['to'](this,_0x392c('0x90'),_0x42ebe6=>!_0x42ebe6);}async[_0x392c('0xb5')](){if(this[_0x392c('0xd')]['length']>0x0){const _0x4d0ce6=this['repository'][_0x392c('0x5f')](0x0),_0x24af7f=await this[_0x392c('0xa9')](_0x4d0ce6),_0x22d8ce=await this[_0x392c('0xb6')](_0x4d0ce6);this[_0x392c('0x69')](_0x24af7f,_0x22d8ce);}}[_0x392c('0x2b')](_0x524b48){this['_source']=_0x524b48;}async['update'](){const _0x40c375=await this['_source'][_0x392c('0x20')]();if(_0x40c375>this[_0x392c('0xfe')][_0x392c('0x4c')]){await this[_0x392c('0x83')]();const _0x4945dc=this[_0x392c('0x72')]({'revision':this['currentRevision'],'to':_0x40c375});_0x4945dc[_0x392c('0xa8')]=_0x4945dc['authorsIds'][_0x392c('0x3c')](_0x498097=>this[_0x392c('0x5')]['plugins'][_0x392c('0xde')](_0x392c('0xa4'))[_0x392c('0x76')](_0x498097)),this[_0x392c('0xfe')][_0x392c('0x18')](_0x4945dc);}}async[_0x392c('0x83')](){this[_0x392c('0x2f')]&&!this[_0x392c('0x16')]&&(await this[_0x392c('0x66')](this['currentRevision']),this[_0x392c('0x5b')][_0x392c('0x58')](this[_0x392c('0xfe')]),this[_0x392c('0x16')]={'fromVersion':this[_0x392c('0xfe')][_0x392c('0x7a')],'authors':this[_0x392c('0xfe')][_0x392c('0xa8')]['slice']()});}async[_0x392c('0x1d')](_0x56d2ba={},_0x5a05c6=null){const _0x338ec2=[];await this[_0x392c('0x83')](),this['_continueCurrentRevision']=!0x1,_0x5a05c6>this['currentRevision'][_0x392c('0x4c')]&&(_0x5a05c6=null),null===_0x5a05c6&&(_0x5a05c6=await this[_0x392c('0x63')]['getLatestVersion']());const _0x3f0ef7=this['_getFromVersion'](_0x5a05c6),_0x1a1022=this['buildRevisionData']({'from':_0x3f0ef7,'to':_0x5a05c6});if(this[_0x392c('0xfe')]['toVersion']<_0x5a05c6){const _0x25d4c3=this['buildRevisionData']({'revision':this[_0x392c('0xfe')],'from':_0x5a05c6,'to':_0x5a05c6});_0x25d4c3[_0x392c('0xa8')]=[],_0x25d4c3[_0x392c('0xeb')]=[],_0x25d4c3['id']=this[_0x392c('0xfe')]['id'],this[_0x392c('0xfe')][_0x392c('0x18')](_0x25d4c3,!0x0),delete _0x25d4c3[_0x392c('0xa8')],_0x338ec2[_0x392c('0xb0')](_0x25d4c3);}_0x56d2ba[_0x392c('0x8b')]=this[_0x392c('0x5')]['plugins']['get'](_0x392c('0xa4'))['me']['id'],_0x56d2ba[_0x392c('0xe')]=_0x56d2ba['name']||null,_0x56d2ba['id']=_0x56d2ba['id']||_0x120197(),_0x56d2ba={..._0x56d2ba,..._0x1a1022};const _0x4595a5=this[_0x392c('0xee')](_0x56d2ba);_0x338ec2['push'](_0x56d2ba);const _0xb380c4=this[_0x392c('0xd')][_0x392c('0xed')](_0x4595a5);if(0x0!==_0xb380c4){const _0x29dbd6=this[_0x392c('0xd')][_0x392c('0x5f')](_0xb380c4-0x1);if(_0x29dbd6[_0x392c('0x7a')]!==_0x5a05c6){const _0x45b603=this[_0x392c('0x5b')][_0x392c('0x4b')](_0x5a05c6,_0x29dbd6['toVersion']),_0x27ef80={'id':_0x29dbd6['id'],'diffData':_0x45b603[_0x392c('0xc')],'authorsIds':_0x45b603[_0x392c('0xeb')],'authors':_0x45b603[_0x392c('0xeb')][_0x392c('0x3c')](_0x3e738c=>this['editor']['plugins'][_0x392c('0xde')](_0x392c('0xa4'))[_0x392c('0x76')](_0x3e738c)),'fromVersion':_0x5a05c6};_0x29dbd6===this['currentRevision']&&(_0x27ef80[_0x392c('0x85')]=new Date(_0x56d2ba[_0x392c('0x85')][_0x392c('0xad')]()+0xa)),_0x29dbd6[_0x392c('0x18')](_0x27ef80,!0x0),delete _0x27ef80[_0x392c('0xa8')],_0x338ec2[_0x392c('0xb0')](_0x27ef80);}}if(this[_0x392c('0x56')]){for(const _0x10d53d of _0x338ec2)this[_0x392c('0xca')](_0x10d53d['id'],_0x10d53d,!0x0);this['sendBufferedUpdates']();}return _0x4595a5;}[_0x392c('0xee')](_0x384118){const _0x214e4c=this[_0x392c('0xd')][_0x392c('0x7f')](_0x384118);return this[_0x392c('0x56')]&&_0x214e4c['on'](_0x392c('0x18'),(_0x48a64d,_0x213e17,_0x4d025f)=>{_0x4d025f||(this[_0x392c('0xca')](_0x213e17['id'],_0x213e17,!0x0),this[_0x392c('0xe0')]());}),this[_0x392c('0xd')][_0x392c('0xd2')](_0x214e4c,this[_0x392c('0x84')](_0x214e4c)),_0x214e4c;}async[_0x392c('0xa9')](_0x18b88c){await this[_0x392c('0x66')](_0x18b88c);const _0x9d1b48={};for(const _0x65210e in _0x18b88c[_0x392c('0xc')]){if(_0x18b88c[_0x392c('0xc')][_0x65210e][_0x392c('0x78')]&&!_0x18b88c[_0x392c('0xc')][_0x65210e][_0x392c('0x78')][_0x392c('0x2e')])continue;const _0x122d75=this[_0x392c('0x48')](JSON['parse'](_0x18b88c[_0x392c('0xc')][_0x65210e][_0x392c('0x7b')])),_0x539fd5=this['editor'][_0x392c('0x1e')][_0x392c('0xcb')]['document'],_0x3bfb2e=new _0x1378d0(_0x539fd5,_0x122d75[_0x392c('0x3c')](_0x5aa735=>J(_0x5aa735,this[_0x392c('0x5')])));this['editor'][_0x392c('0xd7')][_0x392c('0x8c')][_0x392c('0xf5')](_0x392c('0x6f')),_0x9d1b48[_0x65210e]=this[_0x392c('0x5')][_0x392c('0xd7')][_0x392c('0x8c')][_0x392c('0x6d')](_0x3bfb2e),this[_0x392c('0x5')][_0x392c('0xd7')][_0x392c('0x8c')]['useFillerType'](_0x392c('0xf8'));}return _0x9d1b48;}async[_0x392c('0xb6')](_0x4dade6){await this[_0x392c('0x66')](_0x4dade6);const _0x34a716={};for(const _0x18b3f8 in _0x4dade6[_0x392c('0xc')])_0x4dade6['diffData'][_0x18b3f8][_0x392c('0x78')]&&!_0x4dade6[_0x392c('0xc')][_0x18b3f8][_0x392c('0x78')]['isAttached']||(_0x34a716[_0x18b3f8]=_0x4dade6[_0x392c('0xc')][_0x18b3f8][_0x392c('0x9d')]||{});return _0x34a716;}[_0x392c('0xe0')](){if(0x0===this[_0x392c('0x59')]['size'])return;if(this['_isPendingUpdate'])return;let _0x33a40d=Array[_0x392c('0x68')](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3f499f=0x0;_0x3f499f<_0x33a40d['length'];_0x3f499f++){const _0x474df6=_0x33a40d[_0x3f499f];let _0x2cbbce=!0x1;for(const _0x55f4fb of Object[_0x392c('0x101')](_0x474df6))void 0x0===_0x474df6[_0x55f4fb]?delete _0x474df6[_0x55f4fb]:'id'!==_0x55f4fb&&(_0x2cbbce=!0x0);_0x2cbbce||(_0x33a40d[_0x3f499f]=null);}if(_0x33a40d=_0x33a40d['filter'](_0x1c6c7d=>null!==_0x1c6c7d),!_0x33a40d[_0x392c('0x6e')])return;for(let _0x6f549c=0x0;_0x6f549c<_0x33a40d[_0x392c('0x6e')];_0x6f549c++){const _0x24e3b0=_0x33a40d[_0x6f549c];void 0x0!==_0x24e3b0[_0x392c('0x7a')]&&void 0x0===_0x24e3b0[_0x392c('0x4c')]&&(_0x24e3b0[_0x392c('0x4c')]=this[_0x392c('0xd')][_0x392c('0x5f')](_0x24e3b0['id'])[_0x392c('0x4c')]),void 0x0!==_0x24e3b0['toVersion']&&void 0x0===_0x24e3b0[_0x392c('0x7a')]&&(_0x24e3b0[_0x392c('0x7a')]=this[_0x392c('0xd')]['getRevision'](_0x24e3b0['id'])[_0x392c('0x7a')]);}const _0x4139ce=this['editor'][_0x392c('0x1a')]['get'](_0x392c('0x102'));this['_isPendingUpdate']=!0x0,this[_0x392c('0x34')](),this['adapter'][_0x392c('0xce')](_0x33a40d,_0x4139ce)[_0x392c('0x10')](()=>{this[_0x392c('0x90')]=!0x1;})['then'](_0x40879b=>{if(_0x40879b)for(const _0x208807 of _0x40879b)this['setRevisionData']({'id':_0x208807['id'],'createdAt':_0x208807['createdAt']});this[_0x392c('0x53')](),this[_0x392c('0xe0')]();});}[_0x392c('0x69')](_0x52e91a,_0x12ea0a){let _0xd08ca1=this['editor'][_0x392c('0x1a')][_0x392c('0xde')](_0x392c('0x41')),_0x367a36=this[_0x392c('0x5')][_0x392c('0x1a')][_0x392c('0xde')](_0x392c('0x11'));if(void 0x0===_0xd08ca1){_0xd08ca1={};for(const _0xa14c66 of this['editor'][_0x392c('0x97')][_0x392c('0xb2')][_0x392c('0xd5')]())_0xd08ca1[_0xa14c66]='';}if(_0x392c('0xd0')==typeof _0xd08ca1&&(_0xd08ca1={'main':_0xd08ca1}),void 0x0===_0x367a36){_0x367a36={};for(const _0x1e9f1f of this[_0x392c('0x5')][_0x392c('0x97')][_0x392c('0xb2')]['getRootNames']())_0x367a36[_0x1e9f1f]={};}let _0x157f7e=!0x1;const _0x2ef6c7=Object[_0x392c('0x101')](_0xd08ca1),_0x907d18=Object[_0x392c('0x101')](_0x52e91a);for(const _0xfbed02 of _0x2ef6c7){if(_0xd08ca1[_0xfbed02]!==_0x52e91a[_0xfbed02]&&''!==_0xd08ca1[_0xfbed02][_0x392c('0x22')]()){_0x157f7e=!0x0;break;}if(!_0x5d01ed(_0x367a36[_0xfbed02],_0x12ea0a[_0xfbed02])&&Object[_0x392c('0x101')](_0x367a36[_0xfbed02])[_0x392c('0x6e')]>0x0){_0x157f7e=!0x0;break;}}_0x157f7e||(_0x157f7e=_0x907d18['some'](_0x47b40c=>!this[_0x392c('0x5')][_0x392c('0x97')][_0x392c('0xb2')][_0x392c('0x7e')](_0x47b40c))),_0x157f7e&&_0xd5bd1b('editor-initial-data-replaced-with-revision-data',{'editorData':_0xd08ca1,'editorRootsAttributes':_0x367a36,'revisionData':_0x52e91a,'revisionRootsAttributes':_0x12ea0a}),this[_0x392c('0x5')][_0x392c('0x1a')]['set']('initialData',_0x52e91a),this[_0x392c('0x5')]['config'][_0x392c('0x24')](_0x392c('0x11'),_0x12ea0a);}[_0x392c('0x34')](){if(!this[_0x392c('0x89')]){const _0x53a5e9=this[_0x392c('0x5')][_0x392c('0x6')][_0x392c('0xde')](_0x392c('0xe3'));this['_pendingAction']=_0x53a5e9['add'](_0x2a795c(this['editor'][_0x392c('0xf')],_0x392c('0xa7')));}}[_0x392c('0x53')](){this[_0x392c('0x89')]&&(this[_0x392c('0x5')][_0x392c('0x6')][_0x392c('0xde')](_0x392c('0xe3'))['remove'](this['_pendingAction']),this[_0x392c('0x89')]=null);}[_0x392c('0x84')](_0x5266bb){const _0x348e2e=this['repository'][_0x392c('0xd8')]();_0x348e2e[_0x392c('0x3')]();let _0x11c37e=0x0;for(;_0x11c37e<_0x348e2e[_0x392c('0x6e')];){const _0x2c02e7=_0x348e2e[_0x11c37e];if(_0x2c02e7===this[_0x392c('0xfe')]){_0x11c37e++;continue;}if(_0x2c02e7['id']===this[_0x392c('0x28')])break;const _0x5bfe53=_0x5266bb[_0x392c('0x4c')]-_0x2c02e7[_0x392c('0x4c')]||_0x5266bb[_0x392c('0x7a')]-_0x2c02e7['fromVersion'];if(_0x5bfe53>0x0)break;if(_0x5bfe53<0x0)_0x11c37e++;else{if(!_0x5266bb[_0x392c('0xd6')]&&_0x2c02e7[_0x392c('0xd6')])break;if(_0x2c02e7['creator']||!_0x5266bb['creator']){if(_0x5266bb[_0x392c('0x85')]>_0x2c02e7[_0x392c('0x85')])break;_0x11c37e++;}else _0x11c37e++;}}return _0x11c37e;}[_0x392c('0xf7')](_0x34faed){const _0x46596e=this['repository']['getRevision'](_0x34faed['id']);if(_0x34faed[_0x392c('0x85')]&&(_0x34faed[_0x392c('0x85')]=new Date(_0x34faed['createdAt'])),_0x34faed[_0x392c('0xeb')]){const _0x397bf9=this['editor'][_0x392c('0x6')][_0x392c('0xde')]('Users');_0x34faed[_0x392c('0xa8')]=_0x34faed[_0x392c('0xeb')][_0x392c('0x3c')](_0x34717b=>_0x397bf9[_0x392c('0x76')](_0x34717b));}_0x46596e[_0x392c('0x18')](_0x34faed,!0x0);}[_0x392c('0x72')]({revision:_0x2d1377=null,from:_0x32dc20=null,to:_0x25da85=null}){_0x32dc20=null!==_0x32dc20?_0x32dc20:_0x2d1377[_0x392c('0x7a')],_0x25da85=null!==_0x25da85?_0x25da85:_0x2d1377[_0x392c('0x4c')];const _0x585d47=this[_0x392c('0x5b')][_0x392c('0x4b')](_0x32dc20,_0x25da85),_0xdfad00={'diffData':_0x585d47[_0x392c('0xc')],'authorsIds':_0x585d47[_0x392c('0xeb')],'fromVersion':_0x32dc20,'toVersion':_0x25da85};if(!_0x2d1377||_0x25da85!==_0x2d1377[_0x392c('0x4c')]){const _0xd642ae=_0x25da85-0x1,_0x5c9086=this[_0x392c('0x63')][_0x392c('0x9e')][_0x392c('0x64')](_0xd642ae);_0xdfad00['createdAt']=_0x5c9086&&_0x5c9086[_0x392c('0x85')]||new Date();}if(this[_0x392c('0x16')]&&_0x32dc20===this[_0x392c('0x16')][_0x392c('0x7a')])for(const _0x4deda0 of this['_loadedStateData'][_0x392c('0xa8')])_0xdfad00[_0x392c('0xeb')][_0x392c('0xd9')](_0x4deda0['id'])||_0xdfad00[_0x392c('0xeb')][_0x392c('0xb0')](_0x4deda0['id']);return _0xdfad00;}['_loadRevisionData'](_0x412103){if(!_0x412103||_0x412103[_0x392c('0xc')])return Promise[_0x392c('0xe9')]();{const _0x307533=this[_0x392c('0x5')][_0x392c('0x1a')][_0x392c('0xde')](_0x392c('0x102'));return this[_0x392c('0x56')]['getRevision']({'channelId':_0x307533,'revisionId':_0x412103['id']})[_0x392c('0xbe')](_0x91e170=>{_0x412103[_0x392c('0xc')]=_0x91e170[_0x392c('0xc')];});}}['_bufferUpdate'](_0x308bd4,_0x4dcdc5,_0xabcec3){if(this[_0x392c('0x59')]['has'](_0x308bd4)){const _0x40041e=this[_0x392c('0x59')]['get'](_0x308bd4);_0x4dcdc5=_0xabcec3?{..._0x40041e,..._0x4dcdc5}:{..._0x4dcdc5,..._0x40041e};}this[_0x392c('0x59')][_0x392c('0x24')](_0x308bd4,_0x4dcdc5);}['_getFromVersion'](_0x1b247d){const _0x8af8cf=this[_0x392c('0xd')]['getRevisions']();_0x8af8cf['reverse'](),_0x8af8cf[_0x392c('0x7d')]();const _0x8612cb=_0x8af8cf[_0x392c('0x4')](_0x280316=>_0x280316['toVersion']<=_0x1b247d)[_0x392c('0x4c')];return _0x8612cb<this[_0x392c('0xe6')]?this['_startingVersion']:_0x8612cb;}['_createInitialRevision'](_0x2df8b8){const _0x4244f1=this[_0x392c('0xd')][_0x392c('0x5f')](this[_0x392c('0xd')][_0x392c('0x6e')]-0x1);if(_0x4244f1)this[_0x392c('0x28')]=_0x4244f1['id'];else{const _0x41ea71=!this[_0x392c('0x5')][_0x392c('0x97')]['document'][_0x392c('0x4d')]['find'](_0x28c600=>this[_0x392c('0x5')][_0x392c('0x97')][_0x392c('0x2')](_0x28c600)),_0x5954df=this[_0x392c('0x5')][_0x392c('0x6')][_0x392c('0xde')](_0x392c('0xa4'))['me']['id'],_0x99eb9=_0x2a795c(this['editor'][_0x392c('0xf')],_0x41ea71?_0x392c('0xe5'):_0x392c('0x9c'));this[_0x392c('0xfb')]({'from':_0x2df8b8,'to':_0x2df8b8,'id':this[_0x392c('0x28')],'name':_0x99eb9,'creatorId':_0x5954df});}}[_0x392c('0x82')](_0x195511){const _0x57a2a0=this[_0x392c('0x63')][_0x392c('0xea')]();this['currentRevision']=this[_0x392c('0xd')][_0x392c('0x5f')](_0x57a2a0),this[_0x392c('0xfe')]||(this['currentRevision']=this[_0x392c('0xfb')]({'from':_0x195511,'to':_0x195511,'id':_0x57a2a0,'name':'','creatorId':null}));}['_makeRevision']({name:_0x3eaa8a,from:_0x7c23f6,to:_0x3d771f,creatorId:_0x57f7f4,id:_0x560f05}){const _0x30e88c=this['buildRevisionData']({'from':_0x7c23f6,'to':_0x3d771f});_0x30e88c['name']=_0x3eaa8a,_0x30e88c['creatorId']=_0x57f7f4,_0x30e88c['id']=_0x560f05;const _0x340b9c=this[_0x392c('0xee')](_0x30e88c);return this['adapter']&&this[_0x392c('0xca')](_0x30e88c['id'],_0x30e88c,!0x0),_0x340b9c;}['_setConversion'](){this[_0x392c('0x5')][_0x392c('0x5e')][_0x392c('0xc3')]('dataDowncast')[_0x392c('0xa')]({'model':_0x392c('0xf1')});}[_0x392c('0x48')](_0x3e78aa){return(_0x3e78aa=_0x3e78aa[_0x392c('0x47')](_0x423007=>!_0x423007[_0x392c('0xe')]||_0x392c('0xd3')!==_0x423007[_0x392c('0xe')]&&_0x392c('0x9f')!==_0x423007[_0x392c('0xe')]))[_0x392c('0xa1')](_0x48eeb2=>{'string'!=typeof _0x48eeb2&&(_0x48eeb2[_0x392c('0x25')]=this[_0x392c('0x48')](_0x48eeb2['children']),_0x48eeb2['attributes']=_0x48eeb2['attributes'][_0x392c('0x47')](_0x56b183=>!_0x56b183[0x0][_0x392c('0x37')](_0x392c('0xa2'))));}),_0x3e78aa;}}function J(_0x1f612c,_0x4aa653){const _0x461f9b=_0x4aa653[_0x392c('0x1e')][_0x392c('0xcb')]['document'];if(_0x392c('0xd0')==typeof _0x1f612c)return new _0x2de5cd(_0x461f9b,_0x1f612c);{const _0x1b90ad=_0x1f612c[_0x392c('0x25')][_0x392c('0x3c')](_0x39791d=>J(_0x39791d,_0x4aa653));return new(B[_0x1f612c[(_0x392c('0x74'))]]||_0x213095)(_0x461f9b,_0x1f612c['name'],_0x1f612c[_0x392c('0x12')],_0x1b90ad);}}class H{constructor(_0x3ec5bf){this[_0x392c('0x5')]=_0x3ec5bf,this[_0x392c('0x9b')]=new Map(),this[_0x392c('0xc1')]=-0x1,this[_0x392c('0xf9')]=-0x1,this['_markers']=new Map(),this[_0x392c('0x51')]=new Map(),this[_0x392c('0x103')]=new Map(),this[_0x392c('0x45')]=new Map(),this[_0x392c('0x67')]=new Map(),this['_idsRoots']=new Map(),this[_0x392c('0x77')]=new Map(),this['_touched']=new Map(),this[_0x392c('0x81')]=new Map(),this['_touchedRoots']=new Map(),this[_0x392c('0x46')]=0x1;}['init'](_0x5aa913){this[_0x392c('0x5a')]=_0x5aa913;const _0x3b0456=new Map(),_0x42011e=new Map(),_0x3a985d=this[_0x392c('0x5')][_0x392c('0x97')][_0x392c('0xb2')][_0x392c('0x4d')]['map'](_0x41020c=>_0x41020c['rootName']);for(const _0x5d00d1 of _0x3a985d){const _0x19618d=this['editor']['model'][_0x392c('0xb2')][_0x392c('0x7e')](_0x5d00d1),_0x5d16d0=q(_0x19618d);_0x3b0456[_0x392c('0x24')](_0x5d00d1,_0x5d16d0),_0x42011e[_0x392c('0x24')](_0x5d00d1,Object[_0x392c('0x9')](_0x19618d[_0x392c('0xc0')]()));}const _0x38851f=Array[_0x392c('0x68')](this[_0x392c('0x5')][_0x392c('0x97')][_0x392c('0xd1')])[_0x392c('0x3c')](_0x2e7e35=>[_0x2e7e35[_0x392c('0xe')],_0x2e7e35[_0x392c('0x2a')]()]),_0x3aa282=this[_0x392c('0x5a')][_0x392c('0xa5')];this[_0x392c('0x2d')](_0x3aa282,_0x3b0456,_0x38851f,_0x42011e),this[_0x392c('0x1b')]=this[_0x392c('0x46')];const _0x270e9e=new Map(),_0x586210=new Map();for(const _0x5ce9c7 of _0x3a985d){const _0x2fcb08=G(_0x5ce9c7);_0x270e9e[_0x392c('0x24')](_0x5ce9c7,_0x2fcb08),_0x586210[_0x392c('0x24')](_0x5ce9c7,{});}this[_0x392c('0x2d')](Number[_0x392c('0xa6')],_0x270e9e,[],_0x586210);}[_0x392c('0x4b')](_0x59e57c,_0x312aad){if(this['_lastFrom']===_0x59e57c&&this[_0x392c('0xf9')]<=_0x312aad)this[_0x392c('0x9b')][_0x392c('0x36')]>0x1&&this[_0x392c('0x15')](this[_0x392c('0xf9')]),this[_0x392c('0xc7')](this[_0x392c('0xf9')],_0x312aad,!0x0);else{if(!this[_0x392c('0x9b')][_0x392c('0x7')](_0x59e57c)){const _0x34cd05=this[_0x392c('0xfa')](_0x59e57c);this[_0x392c('0xf0')](_0x34cd05,_0x59e57c,!0x1);}this['_calculateMetaData'](_0x59e57c,_0x312aad,!0x0);}return this[_0x392c('0xc1')]=_0x59e57c,this[_0x392c('0xf9')]=_0x312aad,this[_0x392c('0xb4')]();}[_0x392c('0x58')](_0x498098){this[_0x392c('0xbf')](),this[_0x392c('0xc1')]=_0x498098['fromVersion'],this[_0x392c('0xf9')]=_0x498098[_0x392c('0x4c')];for(const _0x168dae in _0x498098[_0x392c('0xc')]){const _0x576a2d=_0x498098[_0x392c('0xc')][_0x168dae][_0x392c('0x78')],_0x4cb34d=_0x4d9438(_0x498098['diffData'][_0x168dae][_0x392c('0xef')])||{},_0x24e57e=this[_0x392c('0xc6')](_0x498098[_0x392c('0xc')][_0x168dae]['deletions']);_0x24e57e[_0x392c('0x99')]=_0x168dae,_0x24e57e[_0x392c('0x8d')]=!_0x576a2d||!_0x576a2d[_0x392c('0x2e')],_0x24e57e['isAttached']=()=>_0x24e57e['_isAttached'],this[_0x392c('0x45')][_0x392c('0x24')](_0x168dae,_0x24e57e),this[_0x392c('0x67')][_0x392c('0x24')](_0x168dae,_0x4cb34d),_0x576a2d&&this[_0x392c('0xff')][_0x392c('0x24')](_0x168dae,_0x576a2d);const _0x14e408=this[_0x392c('0x0')](_0x24e57e);this[_0x392c('0x77')][_0x392c('0x24')](_0x168dae,_0x14e408);for(const [_0xee5d60,_0x33e24e]of _0x24e57e[_0x392c('0xd1')]){if(!_0xee5d60[_0x392c('0x37')]('revision:'))continue;const _0x429306=_0xee5d60['split'](':')[0x2];for(const _0x402992 of _0x33e24e[_0x392c('0x71')]({'singleCharacters':!0x0})){const _0x4ec7ac=this[_0x392c('0xb8')](_0x402992),_0x55ecbb=_0x392c('0x104')==_0x402992['type']?_0x402992['previousPosition']['path'][_0x392c('0xcd')](0x0,-0x1):_0x402992[_0x392c('0x17')]['path'],_0x40058e=_0x14e408[_0x392c('0xe8')](_0x55ecbb)[_0x392c('0x80')](_0x4ec7ac);this[_0x392c('0x43')][_0x392c('0x24')](_0x40058e,{'userId':_0x429306});}}}this[_0x392c('0x1b')]=this[_0x392c('0x46')];const _0x15b117=[...Array(this[_0x392c('0x46')])['keys']()][_0x392c('0xcd')](0x1)[_0x392c('0x47')](_0x40fd51=>!this[_0x392c('0x43')][_0x392c('0x7')](_0x40fd51));let _0x4cb4b2=0x0;const _0x1af8c2=new Map();for(const _0xd4b6bf in _0x498098['diffData']){const _0x3dbd44=_0x498098['diffData'][_0xd4b6bf]['attachChange'],_0x17a35a=_0x4d9438(_0x498098[_0x392c('0xc')][_0xd4b6bf][_0x392c('0x9d')])||{},_0x26d7bd=this[_0x392c('0xc6')](_0x498098[_0x392c('0xc')][_0xd4b6bf][_0x392c('0x7b')]);_0x26d7bd[_0x392c('0x99')]=_0xd4b6bf,_0x26d7bd[_0x392c('0x8d')]=!_0x3dbd44||_0x3dbd44[_0x392c('0x2e')],_0x26d7bd[_0x392c('0x2e')]=()=>_0x26d7bd[_0x392c('0x8d')],this[_0x392c('0x51')][_0x392c('0x24')](_0xd4b6bf,_0x26d7bd),this['_diffRootsAttributes'][_0x392c('0x24')](_0xd4b6bf,_0x17a35a);const _0x482e40=this[_0x392c('0x0')](_0x26d7bd,Number[_0x392c('0xa6')]);this[_0x392c('0xb7')][_0x392c('0x24')](_0xd4b6bf,_0x482e40),_0x1af8c2[_0x392c('0x24')](_0xd4b6bf,_0x26d7bd[_0x392c('0x2e')]()?_0x17a35a:{});for(const [_0x327998,_0x543bd1]of _0x26d7bd[_0x392c('0xd1')]){if(!_0x327998[_0x392c('0x37')](_0x392c('0x23')))continue;const _0x2da33e=_0x327998[_0x392c('0x75')](':')[0x2];for(const _0x568f55 of _0x543bd1[_0x392c('0x71')]({'singleCharacters':!0x0})){const _0x1a5b41=this[_0x392c('0xb8')](_0x568f55),_0x2fc4ee=this[_0x392c('0x46')]++,_0x2a1308=_0x392c('0x104')==_0x568f55[_0x392c('0x74')]?_0x568f55['previousPosition'][_0x392c('0x4f')][_0x392c('0xcd')](0x0,-0x1):_0x568f55[_0x392c('0x17')][_0x392c('0x4f')];_0x482e40[_0x392c('0xe8')](_0x2a1308)[_0x392c('0x49')](_0x1a5b41,_0x2fc4ee),this['_touched']['set'](_0x2fc4ee,{'userId':_0x2da33e});}}for(const _0x2b7399 of this[_0x392c('0x5')][_0x392c('0x97')]['createRangeIn'](_0x26d7bd)['getWalker']({'singleCharacters':!0x0})){const _0x489c23=this['_getVidAttributeName'](_0x2b7399),_0xe32b85=_0x392c('0x104')==_0x2b7399['type']?_0x2b7399['previousPosition'][_0x392c('0x4f')]['slice'](0x0,-0x1):_0x2b7399[_0x392c('0x17')][_0x392c('0x4f')],_0x544271=_0x482e40[_0x392c('0xe8')](_0xe32b85);_0x544271[_0x392c('0x80')](_0x489c23)>0x0||_0x544271[_0x392c('0x49')](_0x489c23,_0x15b117[_0x4cb4b2++]);}for(const [_0x1df782,_0xe6568d]of _0x26d7bd[_0x392c('0xd1')])_0x1df782[_0x392c('0x37')]('revision:')||this[_0x392c('0x3e')][_0x392c('0x24')](_0x1df782,_0xe6568d);}const _0x174e17=G(_0x392c('0xbd'));this['_baseRoots']['set'](_0x392c('0xbd'),_0x174e17),this['_baseIdsRoots'][_0x392c('0x24')](_0x392c('0xbd'),this[_0x392c('0x0')](_0x174e17,0x1));const _0x468b60=G(_0x392c('0xbd'));this[_0x392c('0x51')][_0x392c('0x24')](_0x392c('0xbd'),_0x468b60),this['_idsRoots'][_0x392c('0x24')]('$graveyard',this[_0x392c('0x0')](_0x468b60,0x1));const _0x14196d=Array[_0x392c('0x68')](this[_0x392c('0x51')])[_0x392c('0x3c')](([_0x5c7236,_0x886ac8])=>[_0x5c7236,q(_0x886ac8)]);this[_0x392c('0x2d')](this['_lastTo'],_0x14196d,this[_0x392c('0x3e')],_0x1af8c2);}[_0x392c('0xc6')](_0x291089){const _0xa4f768=JSON[_0x392c('0x1')](_0x291089),_0x1bdac2=this[_0x392c('0x5')][_0x392c('0x1e')]['view'][_0x392c('0xb2')],_0x359925=new _0x1378d0(_0x1bdac2,_0xa4f768[_0x392c('0x3c')](_0x314e77=>J(_0x314e77,this[_0x392c('0x5')])));return this[_0x392c('0x5')]['data'][_0x392c('0xba')](_0x359925);}[_0x392c('0x2d')](_0x5dda62,_0x4e21d6,_0x9e39,_0x34d7ab){const _0x57d178=new Map(_0x4e21d6),_0x1c8aca=new Map(_0x4d9438(_0x34d7ab)),_0x4db0a1=new Map();for(const [_0x3bc62d,_0x1904dc]of _0x9e39)_0x4db0a1[_0x392c('0x24')](_0x3bc62d,{'start':_0x1904dc[_0x392c('0xc8')][_0x392c('0xf4')](),'end':_0x1904dc[_0x392c('0x4a')][_0x392c('0xf4')](),'rootName':_0x1904dc[_0x392c('0xc2')][_0x392c('0x99')]});this['_savedMetaData'][_0x392c('0x24')](_0x5dda62,{'roots':_0x57d178,'markers':_0x4db0a1,'rootsAttributes':_0x1c8aca});}[_0x392c('0x15')](_0x4464b1){this[_0x392c('0x9b')][_0x392c('0xe7')](_0x4464b1);}['reInit'](){this['_reset'](),this[_0x392c('0xc1')]=-0x1,this['_lastTo']=-0x1,this['_savedMetaData'][_0x392c('0xb1')](),this['init'](this[_0x392c('0x5a')]);}[_0x392c('0xbf')](){this[_0x392c('0x43')][_0x392c('0xb1')](),this['_touchedMarkers'][_0x392c('0xb1')](),this[_0x392c('0xff')][_0x392c('0xb1')](),this[_0x392c('0x51')][_0x392c('0xb1')](),this['_diffRootsAttributes'][_0x392c('0xb1')](),this[_0x392c('0x45')][_0x392c('0xb1')](),this['_baseRootsAttributes'][_0x392c('0xb1')](),this['_idsRoots']['clear'](),this[_0x392c('0x77')][_0x392c('0xb1')](),this['_markers'][_0x392c('0xb1')](),this['_revisionId']=0x1,this[_0x392c('0x1b')]=this[_0x392c('0x46')];}[_0x392c('0x0')](_0x1f4c29,_0x4abbff=null){let _0x521828=null;_0x1f4c29['is'](_0x392c('0xa3'))||(_0x521828=new _0x36ab16(_0x1f4c29[_0x392c('0xe')],{'vid_start':null===_0x4abbff?this[_0x392c('0x46')]++:_0x4abbff++}));const _0x1d3671=[];for(const _0xa8921a of _0x1f4c29['getChildren']())if(_0xa8921a['is'](_0x392c('0x6b'))){_0x1d3671[_0x392c('0xb0')](this[_0x392c('0x0')](_0xa8921a,_0x4abbff));const _0x2ecf20=_0x1d3671[_0x1d3671[_0x392c('0x6e')]-0x1];null!==_0x4abbff&&(_0x4abbff=_0x2ecf20['is'](_0x392c('0x6b'),_0x392c('0x65'))?_0x2ecf20[_0x392c('0x80')](_0x392c('0x3d'))+0x1:_0x2ecf20[_0x392c('0x80')](_0x392c('0xaa'))+0x1);}else for(let _0x349532=0x0;_0x349532<_0xa8921a[_0x392c('0xc4')];_0x349532++)_0x1d3671[_0x392c('0xb0')](new _0x36ab16('$text',{'vid':null===_0x4abbff?this[_0x392c('0x46')]++:_0x4abbff++}));if(_0x1f4c29['is']('documentFragment')){const _0x41458c=G(_0x1f4c29[_0x392c('0x99')]);return _0x41458c['_insertChild'](0x0,_0x1d3671),_0x41458c;}return _0x521828[_0x392c('0x49')](_0x392c('0xaa'),null===_0x4abbff?this['_revisionId']++:_0x4abbff++),_0x521828[_0x392c('0x73')](0x0,_0x1d3671),_0x521828;}[_0x392c('0xf0')](_0x133810,_0x35d32e,_0x508e28){this[_0x392c('0xbf')]();const {roots:_0x4c821f,markers:_0xc9c45f,rootsAttributes:_0x4cc96a}=this[_0x392c('0x9b')][_0x392c('0xde')](_0x133810);this[_0x392c('0x45')]=new Map(_0x4c821f),this['_baseRootsAttributes']=new Map(_0x4d9438(_0x4cc96a));for(const [_0x5213d0,_0x3e0ee7]of this[_0x392c('0x45')])if(_0x392c('0xbd')!==_0x5213d0&&(this[_0x392c('0x51')][_0x392c('0x24')](_0x5213d0,q(_0x3e0ee7)),this[_0x392c('0x103')]=new Map(_0x4d9438(_0x4cc96a)),_0x508e28)){const _0x24cf9f=this[_0x392c('0x46')];this[_0x392c('0xb7')][_0x392c('0x24')](_0x5213d0,this[_0x392c('0x0')](_0x3e0ee7)),this[_0x392c('0x77')][_0x392c('0x24')](_0x5213d0,this[_0x392c('0x0')](_0x3e0ee7,_0x24cf9f));}this[_0x392c('0x1b')]=this[_0x392c('0x46')],this[_0x392c('0x51')][_0x392c('0x24')](_0x392c('0xbd'),q(this[_0x392c('0x45')][_0x392c('0xde')](_0x392c('0xbd')))),_0x508e28&&this[_0x392c('0xb7')]['set'](_0x392c('0xbd'),this['_makeIdsRoot'](this[_0x392c('0x45')][_0x392c('0xde')]('$graveyard')));for(const [_0x3a98bb,_0x285f82]of _0xc9c45f){const _0x323581=this[_0x392c('0x45')][_0x392c('0xde')](_0x285f82[_0x392c('0x99')]),_0x1a635f=this[_0x392c('0x51')][_0x392c('0xde')](_0x285f82[_0x392c('0x99')]),_0x2f4eb2=new _0x26052a(this[_0x392c('0xb3')](_0x285f82[_0x392c('0xc8')],_0x323581),this[_0x392c('0xb3')](_0x285f82[_0x392c('0x4a')],_0x323581)),_0x4605f6=this[_0x392c('0xe1')](_0x2f4eb2,_0x1a635f);_0x323581[_0x392c('0xd1')][_0x392c('0x24')](_0x3a98bb,_0x2f4eb2),this[_0x392c('0x3e')][_0x392c('0x24')](_0x3a98bb,_0x4605f6);}this[_0x392c('0xc7')](_0x133810,_0x35d32e,_0x508e28);}[_0x392c('0xc7')](_0x4b548c,_0x1dc1ae,_0x1d8d54){for(const _0x1934a0 of this['source']['getOperations'](_0x4b548c,_0x1dc1ae))this[_0x392c('0x86')](_0x1934a0,_0x1d8d54);for(const _0x4e2826 of this[_0x392c('0x51')][_0x392c('0xae')]())_0x4e2826['markers'][_0x392c('0xb1')]();for(const [_0x503370,_0x1f8451]of this['_markers']){this['_diffRoots'][_0x392c('0xde')](_0x1f8451['root'][_0x392c('0x99')])[_0x392c('0xd1')]['set'](_0x503370,_0x1f8451[_0x392c('0xf4')]());}const _0x1a4b3d=new Map(),_0x1fa6ba=new Map();for(const [_0x51d5f4,_0x40e403]of this[_0x392c('0x51')])_0x1a4b3d[_0x392c('0x24')](_0x51d5f4,q(_0x40e403)),_0x1fa6ba[_0x392c('0x24')](_0x51d5f4,this[_0x392c('0x103')][_0x392c('0xde')](_0x51d5f4));this['_saveMetaData'](_0x1dc1ae,_0x1a4b3d,this[_0x392c('0x3e')],_0x1fa6ba);}[_0x392c('0xfa')](_0x3553c9){const _0x51e15f=Array[_0x392c('0x68')](this[_0x392c('0x9b')]['keys']());_0x51e15f[_0x392c('0x3a')]((_0x85f316,_0x1dca6a)=>_0x85f316-_0x1dca6a),_0x51e15f[_0x392c('0x3')]();for(const _0x55d5b8 of _0x51e15f)if(_0x55d5b8<_0x3553c9)return _0x55d5b8;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3c75ea,_0x399d5b){const _0x4516b1=Array[_0x392c('0x68')](_0x399d5b[_0x392c('0xd1')])['map'](([_0x1b88ba,_0x2ffab8])=>[_0x1b88ba,this[_0x392c('0xe1')](_0x2ffab8,_0x3c75ea)]);_0x3c75ea[_0x392c('0xd1')]=new Map(_0x4516b1);}[_0x392c('0x31')](_0x52ce6c){for(const _0x348b03 of this[_0x392c('0x3e')][_0x392c('0xae')]()){const _0x24d25b=_0x348b03[_0x392c('0x6c')](_0x52ce6c),_0x5820bf=_0x26052a['_createFromRanges'](_0x24d25b);_0x348b03[_0x392c('0xc8')]=_0x5820bf[_0x392c('0xc8')],_0x348b03[_0x392c('0x4a')]=_0x5820bf['end'];}}[_0x392c('0x86')](_0x3c6598,_0x519e84){if(_0x392c('0x6a')==_0x3c6598[_0x392c('0x74')]||'detachRoot'==_0x3c6598['type'])return void this[_0x392c('0x94')](_0x3c6598,_0x519e84);if(_0x392c('0x5d')==_0x3c6598[_0x392c('0x74')]){const _0x2cd265=_0x3c6598[_0x392c('0x32')][_0x392c('0xc2')][_0x392c('0x99')];this[_0x392c('0x51')][_0x392c('0x7')](_0x2cd265)||(this['_diffRoots'][_0x392c('0x24')](_0x2cd265,G(_0x2cd265,!0x0)),this['_diffRootsAttributes'][_0x392c('0x24')](_0x2cd265,{}),_0x519e84&&this[_0x392c('0xb7')][_0x392c('0x24')](_0x2cd265,G(_0x2cd265,!0x0)));}else{if(_0x392c('0x26')==_0x3c6598[_0x392c('0x74')]||'removeRootAttribute'==_0x3c6598['type']||_0x392c('0x105')==_0x3c6598['type'])return void this[_0x392c('0x21')](_0x3c6598);}const _0x5071c0=this[_0x392c('0xe4')](_0x3c6598,this[_0x392c('0x51')]);if(_0x392c('0xaf')!==_0x3c6598[_0x392c('0x74')]&&(_0x5071c0['_execute'](),this[_0x392c('0x31')](_0x5071c0)),_0x519e84)switch(_0x5071c0[_0x392c('0x74')]){case _0x392c('0x5d'):this[_0x392c('0x54')](_0x3c6598);break;case'move':case _0x392c('0xac'):case _0x392c('0xdb'):this['_handleMoveOperation'](_0x3c6598);break;case _0x392c('0x55'):this[_0x392c('0x70')](_0x3c6598);break;case _0x392c('0x75'):this[_0x392c('0xa0')](_0x3c6598);break;case _0x392c('0xaf'):this[_0x392c('0x1c')](_0x3c6598);}}[_0x392c('0xe4')](_0x28ef4b,_0x534e72){const _0x1edbec=_0x28ef4b[_0x392c('0xf4')]();return _0x1edbec['_authorId']=_0x28ef4b['_authorId'],this['_fixOperation'](_0x1edbec,_0x534e72),_0x1edbec;}[_0x392c('0x13')](_0x2e2a74){return _0x2e2a74[_0x392c('0x3c')](_0x4f055c=>{const _0x244fa2=this[_0x392c('0xb8')](_0x4f055c);return Number(_0x4f055c[_0x392c('0x33')][_0x392c('0x80')](_0x244fa2));});}[_0x392c('0x4e')](_0x304c00,_0x256a52){if(_0x304c00['is']('element','$text'))_0x256a52[_0x392c('0xb0')]({'item':_0x304c00,'type':_0x392c('0x39')});else{_0x304c00['is']('element')&&_0x256a52['push']({'item':_0x304c00,'type':_0x392c('0xfd')});for(const _0x5adb30 of _0x304c00['getChildren']())this[_0x392c('0x4e')](_0x5adb30,_0x256a52);_0x304c00['is']('element')&&_0x256a52['push']({'item':_0x304c00,'type':_0x392c('0x104')});}return _0x256a52;}['_getState'](){const _0x54e555=new Map(this[_0x392c('0x43')]),_0x1afd3d=new Map(_0x54e555),_0x4c92e0=new Map(),_0x40c6f4={'insertions':{},'deletions':{}},_0x7e7b03={'insertions':{},'deletions':{}},_0x12e461=new Map(),_0xf53656=new Set([...this[_0x392c('0x45')][_0x392c('0x101')](),...this['_diffRoots']['keys']()]);_0xf53656[_0x392c('0xe7')](_0x392c('0xbd'));for(const _0x10ab08 of _0xf53656){const _0x1acc44=this[_0x392c('0x51')]['get'](_0x10ab08)||G(_0x10ab08,!0x1),_0x8b23ec=this['_baseRoots'][_0x392c('0xde')](_0x10ab08)||G(_0x10ab08,!0x1);_0x1acc44[_0x392c('0x2e')]()||_0x8b23ec[_0x392c('0x2e')]()?(_0x40c6f4['insertions'][_0x10ab08]=q(_0x1acc44),_0x40c6f4[_0x392c('0x100')][_0x10ab08]=q(_0x8b23ec),this[_0x392c('0x29')](_0x40c6f4[_0x392c('0x100')][_0x10ab08],_0x8b23ec),this[_0x392c('0x29')](_0x40c6f4['insertions'][_0x10ab08],_0x1acc44),_0x7e7b03[_0x392c('0x7b')][_0x10ab08]=this[_0x392c('0x4e')](this[_0x392c('0xb7')]['get'](_0x10ab08),[]),_0x7e7b03[_0x392c('0x100')][_0x10ab08]=this[_0x392c('0x4e')](this[_0x392c('0x77')]['get'](_0x10ab08)||G(_0x10ab08,!0x1),[])):_0xf53656[_0x392c('0xe7')](_0x10ab08);}for(const _0x507ec0 of _0xf53656){const _0x2d551f=_0x7e7b03['insertions'][_0x507ec0];for(const _0x5da092 of _0x2d551f){const _0x5cf425=this[_0x392c('0xb8')](_0x5da092),_0x8d1d81=_0x5da092[_0x392c('0x33')][_0x392c('0x80')](_0x5cf425);_0x1afd3d[_0x392c('0xe7')](_0x8d1d81),_0x8d1d81>=this[_0x392c('0x1b')]&&_0x4c92e0['set'](_0x8d1d81,_0x54e555['get'](_0x8d1d81));}}for(const _0x4ee9dc of _0xf53656){const _0x3dc55e=_0x7e7b03['insertions'][_0x4ee9dc],_0x479f47=this[_0x392c('0x13')](_0x7e7b03[_0x392c('0x100')][_0x4ee9dc]);let _0x505877=0x0;for(const _0xf1bd46 of _0x3dc55e){const _0x5ba638=this[_0x392c('0xb8')](_0xf1bd46),_0x23d0d0=_0xf1bd46[_0x392c('0x33')][_0x392c('0x80')](_0x5ba638);if(!_0x4c92e0[_0x392c('0x7')](_0x23d0d0)&&!_0x12e461[_0x392c('0x7')](_0x23d0d0)){if(_0x1afd3d[_0x392c('0x7')](_0x23d0d0))_0x505877++;else{if(_0x23d0d0!=_0x479f47[_0x505877]){const _0x1ea62e=_0x54e555[_0x392c('0xde')](_0x23d0d0)||_0x54e555[_0x392c('0xde')](_0x479f47[_0x505877]);for(;_0x23d0d0!=_0x479f47[_0x505877];)_0x1afd3d[_0x392c('0x7')](_0x479f47[_0x505877])||(_0x12e461[_0x392c('0x24')](_0x479f47[_0x505877],_0x1ea62e),_0x54e555[_0x392c('0x24')](_0x479f47[_0x505877],_0x1ea62e)),_0x505877++;}_0x505877++;}}}}for(const _0x4c7916 of _0xf53656){const _0x534b24=_0x7e7b03[_0x392c('0x7b')][_0x4c7916];for(const _0x38d69d of _0x534b24){const _0x388f37=this[_0x392c('0xb8')](_0x38d69d),_0x29a8e7=_0x38d69d[_0x392c('0x33')][_0x392c('0x80')](_0x388f37);if(_0x12e461['has'](_0x29a8e7)){const _0x1f2013=_0x12e461[_0x392c('0xde')](_0x29a8e7);_0x1afd3d[_0x392c('0x7')](_0x29a8e7)||_0x1afd3d['set'](_0x29a8e7,{..._0x1f2013}),_0x4c92e0[_0x392c('0x24')](_0x29a8e7,{..._0x1f2013});}}}for(const _0x1a3875 of _0x1afd3d['keys']())_0x1a3875>=this['_startingRevisionId']&&_0x1afd3d[_0x392c('0xe7')](_0x1a3875);const _0x40d04a=new Map();for(const _0x305555 of _0xf53656){let _0x1b5054=_0x7e7b03[_0x392c('0x7b')][_0x305555];for(const _0x589016 of _0x1b5054)if(_0x589016[_0x392c('0x33')]['is'](_0x392c('0x6b'),_0x392c('0x79'))){const _0x1db0cb=this['_getVidAttributeName'](_0x589016),_0xb7bb5e=_0x589016[_0x392c('0x33')][_0x392c('0x80')](_0x1db0cb);if(_0x4c92e0[_0x392c('0x7')](_0xb7bb5e)){const _0x41ab32=_0x589016[_0x392c('0x33')][_0x392c('0x9a')][_0x392c('0x9a')][_0x392c('0x80')](_0x392c('0x35')),_0x468632=_0x40d04a[_0x392c('0xde')](_0x41ab32)||new Set();_0x468632['add'](_0x4c92e0[_0x392c('0xde')](_0xb7bb5e)['userId']),_0x40d04a[_0x392c('0x24')](_0x41ab32,_0x468632);}}_0x1b5054=_0x7e7b03[_0x392c('0x100')][_0x305555];for(const _0x4baacb of _0x1b5054)if(_0x4baacb[_0x392c('0x33')]['is']('element',_0x392c('0x79'))){const _0x37af38=this[_0x392c('0xb8')](_0x4baacb),_0x23c99c=_0x4baacb[_0x392c('0x33')][_0x392c('0x80')](_0x37af38);if(_0x1afd3d['has'](_0x23c99c)){const _0x92ff4a=_0x4baacb[_0x392c('0x33')][_0x392c('0x9a')]['parent'][_0x392c('0x80')]('vid_start'),_0x107bb2=_0x40d04a[_0x392c('0xde')](_0x92ff4a)||new Set();_0x107bb2[_0x392c('0x106')](_0x1afd3d[_0x392c('0xde')](_0x23c99c)['userId']),_0x40d04a[_0x392c('0x24')](_0x92ff4a,_0x107bb2);}}for(const _0xf687b8 of _0x40d04a[_0x392c('0x101')]())(_0x4c92e0['has'](_0xf687b8)||_0x1afd3d[_0x392c('0x7')](_0xf687b8))&&_0x40d04a[_0x392c('0xe7')](_0xf687b8);}for(const _0x5a1e49 of _0xf53656){const _0x69780c=_0x7e7b03[_0x392c('0x7b')][_0x5a1e49];let _0x2f2bf5=null,_0x2141a8=null;for(const _0x52d939 of _0x69780c){const _0x1fe638=this['_getVidAttributeName'](_0x52d939),_0x299ca9=_0x52d939[_0x392c('0x33')]['getAttribute'](_0x1fe638),_0x241e53=_0x40d04a[_0x392c('0xde')](_0x299ca9);_0x241e53&&'elementStart'==_0x52d939[_0x392c('0x74')]&&(_0x2f2bf5=Array[_0x392c('0x68')](_0x241e53)[0x0],_0x2141a8=_0x52d939[_0x392c('0x33')][_0x392c('0x80')]('vid_end')),_0x2f2bf5&&(_0x1afd3d[_0x392c('0x24')](_0x299ca9,{'userId':_0x2f2bf5}),_0x4c92e0[_0x392c('0x24')](_0x299ca9,{'userId':_0x2f2bf5})),_0x299ca9==_0x2141a8&&(_0x2f2bf5=null,_0x2141a8=null);}}const _0x20b63a={},_0x8762b=new Set();for(const _0x235115 of _0xf53656){const _0x21253b=_0x40c6f4['deletions'][_0x235115],_0x506594=_0x40c6f4[_0x392c('0x7b')][_0x235115];for(const {userId:_0x188763}of this[_0x392c('0x81')]['values']())null!==_0x188763&&_0x8762b[_0x392c('0x106')](_0x188763);for(const {userId:_0x5ba5a4}of this['_touchedRoots']['values']())null!==_0x5ba5a4&&_0x8762b['add'](_0x5ba5a4);this[_0x392c('0xf2')](_0x506594,_0x7e7b03[_0x392c('0x7b')][_0x235115],_0x4c92e0,_0x392c('0x107'),_0x8762b),this[_0x392c('0xf2')](_0x21253b,_0x7e7b03[_0x392c('0x100')][_0x235115],_0x1afd3d,_0x392c('0x52'),_0x8762b),_0x20b63a[_0x235115]={'insertions':this[_0x392c('0xcf')](_0x506594),'deletions':this[_0x392c('0xcf')](_0x21253b),'attachChange':this[_0x392c('0xff')][_0x392c('0xde')](_0x235115)||null,'attributesBefore':_0x4d9438(this[_0x392c('0x67')]['get'](_0x235115))||{},'attributesAfter':_0x4d9438(this[_0x392c('0x103')]['get'](_0x235115))};}return{'diffData':_0x20b63a,'authorsIds':Array[_0x392c('0x68')](_0x8762b)};}[_0x392c('0xf6')](_0x514990){for(const [,_0x5bbcfe]of _0x514990[_0x392c('0xd1')]){const _0x14b872=_0x5bbcfe[_0x392c('0xc8')][_0x392c('0xab')]()[_0x392c('0x47')](_0x29789d=>_0x392c('0x79')==_0x29789d[_0x392c('0xe')]);for(const _0x1f477b of _0x14b872)0x1==_0x1f477b[_0x392c('0x3b')]&&_0x1f477b[_0x392c('0xb9')](0x0)['is']('element',_0x392c('0xb'))&&_0x1f477b[_0x392c('0xb9')](0x0)['_setAttribute']('keepParagraph',!0x0);}}[_0x392c('0xcf')](_0x2a0fe7){this[_0x392c('0xf6')](_0x2a0fe7);const _0x2d8d2a=this[_0x392c('0x5')][_0x392c('0xd7')]['toView'](_0x2a0fe7,{}),_0x3f4c94=Array['from'](_0x2d8d2a[_0x392c('0x8e')]())[_0x392c('0x3c')](_0x4dffe2=>this[_0x392c('0x57')](_0x4dffe2));return JSON[_0x392c('0x96')](_0x3f4c94);}[_0x392c('0x57')](_0x3dbc5a){if(_0x3dbc5a['is']('$text'))return _0x3dbc5a[_0x392c('0xd7')];{const _0x41e11f=_0x3dbc5a;return{'type':Object[_0x392c('0x101')](B)[_0x392c('0x4')](_0x3db162=>_0x3dbc5a instanceof B[_0x3db162]),'name':_0x41e11f[_0x392c('0xe')],'attributes':Array[_0x392c('0x68')](_0x41e11f['getAttributes']()),'children':Array['from'](_0x41e11f[_0x392c('0x8e')]())['map'](_0x320502=>this[_0x392c('0x57')](_0x320502))};}}['_markChanges'](_0x4f564c,_0x47ce39,_0x3e2a44,_0x159751,_0x2f7dbf){let _0x528a77=null,_0x5eeace=null,_0x4ed30e=0x0;const _0x2be7e4=this['editor'][_0x392c('0x97')];for(let _0x1e92b6=0x0;_0x1e92b6<_0x47ce39[_0x392c('0x6e')];_0x1e92b6++){const _0x56dde3=this[_0x392c('0xb8')](_0x47ce39[_0x1e92b6]),_0x54285b=_0x47ce39[_0x1e92b6]['item']['getAttribute'](_0x56dde3),_0x40fbf2=_0x3e2a44['get'](_0x54285b),_0x1356aa=_0x1e92b6==_0x47ce39[_0x392c('0x6e')]-0x1;(!_0x528a77&&_0x40fbf2&&(_0x528a77=_0x40fbf2,_0x5eeace=_0x47ce39[_0x1e92b6]),_0x528a77&&(!_0x40fbf2||_0x40fbf2[_0x392c('0xdd')]!=_0x528a77['userId']))&&(_0x28a015(_0x40fbf2,L(_0x5eeace,_0x4f564c,_0x2be7e4),L(_0x47ce39[_0x1e92b6],_0x4f564c,_0x2be7e4)),_0x528a77=_0x40fbf2||null,_0x5eeace=_0x40fbf2?_0x47ce39[_0x1e92b6]:null),_0x528a77&&_0x1356aa&&_0x28a015(_0x40fbf2,L(_0x5eeace,_0x4f564c,_0x2be7e4),W(_0x47ce39[_0x1e92b6],_0x4f564c,_0x2be7e4));}function _0x28a015(_0x17a359,_0x5a7ab6,_0x266239){const _0x4216bf=_0x528a77['userId'],_0x96c1ef=_0x392c('0x23')+_0x159751+':'+_0x4216bf+':'+_0x4ed30e++,_0x1bc268=_0x2be7e4[_0x392c('0x1f')](_0x5a7ab6,_0x266239);_0x4f564c[_0x392c('0xd1')]['set'](_0x96c1ef,_0x1bc268),null!==_0x4216bf&&_0x2f7dbf['add'](_0x4216bf);}}[_0x392c('0xb8')](_0x38029b){switch(_0x38029b[_0x392c('0x74')]){case _0x392c('0xfd'):return _0x392c('0x35');case'elementEnd':return'vid_end';default:return _0x392c('0x3d');}}[_0x392c('0x62')](_0x285c2c,_0x4fe1a6){_0x285c2c[_0x392c('0x87')]=null;for(const _0x1d0eef in _0x285c2c){const _0x6d6e85=_0x285c2c[_0x1d0eef];if(_0x6d6e85 instanceof _0xddb985){const _0x1b56de=_0x4fe1a6[_0x392c('0xde')](_0x6d6e85[_0x392c('0xc2')]['rootName']);_0x285c2c[_0x1d0eef]=this['_fixPosition'](_0x6d6e85,_0x1b56de);}if(_0x6d6e85 instanceof _0x26052a){const _0x3166e2=_0x4fe1a6['get'](_0x6d6e85[_0x392c('0xc2')][_0x392c('0x99')]);_0x285c2c[_0x1d0eef]=this['_fixRange'](_0x6d6e85,_0x3166e2);}_0x392c('0xc2')===_0x1d0eef&&(_0x285c2c[_0x392c('0xc2')]=_0x4fe1a6[_0x392c('0xde')](_0x285c2c[_0x392c('0xc2')][_0x392c('0x99')]));}}[_0x392c('0xe1')](_0x1a19b2,_0x4e7cb7){return this[_0x392c('0x5')][_0x392c('0x97')]['createRange'](this['_fixPosition'](_0x1a19b2[_0x392c('0xc8')],_0x4e7cb7),this['_fixPosition'](_0x1a19b2[_0x392c('0x4a')],_0x4e7cb7));}[_0x392c('0xb3')](_0x59dfbe,_0x4b3c25){return this['editor'][_0x392c('0x97')][_0x392c('0x91')](_0x4b3c25,_0x59dfbe[_0x392c('0x4f')],_0x59dfbe[_0x392c('0xdf')]);}['_handleInsertOperation'](_0x30fa2e){const _0x11084d=this['_idsRoots'][_0x392c('0xde')](_0x30fa2e[_0x392c('0x32')][_0x392c('0xc2')]['rootName']),_0x577808=this['_fixPosition'](_0x30fa2e[_0x392c('0x32')],_0x11084d),_0x7ce768=null===_0x30fa2e[_0x392c('0x50')]?null:_0x30fa2e[_0x392c('0x50')]||this['editor'][_0x392c('0x6')]['get'](_0x392c('0xa4'))['me']['id'],_0x435c0d=_0x577808[_0x392c('0x9a')],_0x39daf2=this['_revisionId'],_0x28dac8=[];for(const _0x1de569 of _0x30fa2e['nodes'])if(_0x1de569['is'](_0x392c('0x6b')))_0x28dac8[_0x392c('0xb0')](this[_0x392c('0x0')](_0x1de569));else for(let _0x4ab58e=0x0;_0x4ab58e<_0x1de569['offsetSize'];_0x4ab58e++)_0x28dac8[_0x392c('0xb0')](new _0x36ab16(_0x392c('0x65'),{'vid':this[_0x392c('0x46')]++}));const _0x5bd845=this[_0x392c('0x46')];for(let _0x4f2371=_0x39daf2;_0x4f2371<_0x5bd845;_0x4f2371++)this[_0x392c('0x43')][_0x392c('0x24')](_0x4f2371,{'userId':_0x7ce768});_0x435c0d[_0x392c('0x73')](_0x577808[_0x392c('0x38')],_0x28dac8);}[_0x392c('0xc5')](_0x3361d4){(_0x3361d4=this['_cloneOperation'](_0x3361d4,this[_0x392c('0xb7')]))[_0x392c('0x44')]();const _0x54ffc6=null===_0x3361d4[_0x392c('0x50')]?null:_0x3361d4[_0x392c('0x50')]||this[_0x392c('0x5')]['plugins']['get'](_0x392c('0xa4'))['me']['id'],_0x5846c6=_0x3361d4[_0x392c('0x14')](),_0x392512=_0x5846c6[_0x392c('0x9a')],_0x283c38=_0x5846c6['offset'];!function _0x310064(_0x13a844,_0x1e897c,_0xe6c65b,_0x15f621){for(let _0x2d1a34=_0xe6c65b;_0x2d1a34<_0x15f621;_0x2d1a34++){const _0x49de97=_0x1e897c[_0x392c('0xb9')](_0x2d1a34);_0x49de97['is'](_0x392c('0x6b'),_0x392c('0x65'))?_0x13a844[_0x392c('0x24')](_0x49de97[_0x392c('0x80')]('vid'),{'userId':_0x54ffc6}):(_0x13a844[_0x392c('0x24')](_0x49de97[_0x392c('0x80')](_0x392c('0x35')),{'userId':_0x54ffc6}),_0x310064(_0x13a844,_0x49de97,0x0,_0x49de97[_0x392c('0x3b')]),_0x13a844[_0x392c('0x24')](_0x49de97['getAttribute']('vid_end'),{'userId':_0x54ffc6}));}}(this[_0x392c('0x43')],_0x392512,_0x283c38,_0x283c38+_0x3361d4[_0x392c('0x88')]);}[_0x392c('0x70')](_0x3047f2){const _0x191543=null===(_0x3047f2=this[_0x392c('0xe4')](_0x3047f2,this[_0x392c('0xb7')]))[_0x392c('0x50')]?null:_0x3047f2['_authorId']||this[_0x392c('0x5')][_0x392c('0x6')][_0x392c('0xde')]('Users')['me']['id'],_0x5ec0bf=_0x3047f2['targetPosition']['parent'],_0x2b5efd=_0x3047f2['sourcePosition'][_0x392c('0x9a')],_0x197684=_0x5ec0bf['getAttribute'](_0x392c('0xaa')),_0xb11c96=_0x2b5efd[_0x392c('0x80')]('vid_start');_0x5ec0bf[_0x392c('0x49')](_0x392c('0xaa'),_0x2b5efd['getAttribute'](_0x392c('0xaa'))),_0x2b5efd[_0x392c('0x49')](_0x392c('0xaa'),_0x197684),this['_touched'][_0x392c('0x24')](_0xb11c96,{'userId':_0x191543}),this['_touched'][_0x392c('0x24')](_0x197684,{'userId':_0x191543}),_0x3047f2[_0x392c('0x44')]();}[_0x392c('0xa0')](_0x408f9d){const _0x4e75c0=null===(_0x408f9d=this[_0x392c('0xe4')](_0x408f9d,this[_0x392c('0xb7')]))['_authorId']?null:_0x408f9d[_0x392c('0x50')]||this[_0x392c('0x5')][_0x392c('0x6')][_0x392c('0xde')]('Users')['me']['id'],_0x13dd55=_0x408f9d[_0x392c('0x8')],_0x2505a7=_0x408f9d['splitPosition'][_0x392c('0x9a')];_0x408f9d[_0x392c('0x44')]();const _0xad5c07=_0x2505a7[_0x392c('0x80')](_0x392c('0xaa')),_0x51fa02=_0x408f9d['insertionPosition']['nodeAfter'];if(_0x13dd55){const _0xf9e42d=_0x51fa02['getAttribute']('vid_end'),_0x53700d=_0x2505a7[_0x392c('0x80')]('vid_end');_0x2505a7['_setAttribute'](_0x392c('0xaa'),_0xf9e42d),_0x51fa02[_0x392c('0x49')]('vid_end',_0x53700d),this[_0x392c('0x43')][_0x392c('0x24')](_0x2505a7['getAttribute'](_0x392c('0xaa')),{'userId':_0x4e75c0}),this[_0x392c('0x43')][_0x392c('0x24')](_0x51fa02[_0x392c('0x80')](_0x392c('0x35')),{'userId':_0x4e75c0});}else{const _0x1786ed=this['_revisionId']++,_0x54846d=this[_0x392c('0x46')]++;_0x2505a7['_setAttribute'](_0x392c('0xaa'),_0x1786ed),_0x51fa02[_0x392c('0x49')](_0x392c('0x35'),_0x54846d),_0x51fa02[_0x392c('0x49')](_0x392c('0xaa'),_0xad5c07),this[_0x392c('0x43')][_0x392c('0x24')](_0x1786ed,{'userId':_0x4e75c0}),this[_0x392c('0x43')][_0x392c('0x24')](_0x54846d,{'userId':_0x4e75c0});}}[_0x392c('0x1c')](_0x157536){if(!_0x157536[_0x392c('0xbb')])return;const _0x1e4feb=(_0x157536=this[_0x392c('0xe4')](_0x157536,this['_diffRoots']))[_0x392c('0x3f')]?_0x157536['oldRange'][_0x392c('0xc2')]:null,_0x2a234c=_0x157536[_0x392c('0x42')]?_0x157536[_0x392c('0x42')]['root']:null;_0x1e4feb&&this[_0x392c('0x3e')]['delete'](_0x157536[_0x392c('0xe')]),_0x2a234c&&this[_0x392c('0x3e')][_0x392c('0x24')](_0x157536[_0x392c('0xe')],_0x157536[_0x392c('0x42')][_0x392c('0xf4')]());const _0x3ad751=null===_0x157536[_0x392c('0x50')]?null:_0x157536[_0x392c('0x50')]||this[_0x392c('0x5')][_0x392c('0x6')][_0x392c('0xde')](_0x392c('0xa4'))['me']['id'],_0xf60f86=_0x157536[_0x392c('0xe')];if(!this[_0x392c('0x81')][_0x392c('0x7')](_0xf60f86))return void this[_0x392c('0x81')][_0x392c('0x24')](_0xf60f86,{'range':_0x157536[_0x392c('0x3f')],'userId':_0x3ad751});const _0x41f3bb=this[_0x392c('0x81')][_0x392c('0xde')](_0xf60f86),_0x503f99=_0x41f3bb[_0x392c('0x27')],_0x1af80e=_0x157536['newRange'];null==_0x503f99&&null==_0x1af80e||_0x503f99&&_0x1af80e&&_0x503f99['isEqual'](_0x1af80e)?this[_0x392c('0x81')][_0x392c('0xe7')](_0x157536[_0x392c('0xe')]):_0x41f3bb[_0x392c('0xdd')]=_0x3ad751;}[_0x392c('0x94')](_0x348747,_0xe56670){this[_0x392c('0x51')][_0x392c('0x7')](_0x348747[_0x392c('0x99')])?this[_0x392c('0x51')][_0x392c('0xde')](_0x348747[_0x392c('0x99')])[_0x392c('0x8d')]=_0x348747['isAdd']:(this[_0x392c('0x51')][_0x392c('0x24')](_0x348747[_0x392c('0x99')],G(_0x348747['rootName'],!0x0)),this[_0x392c('0x103')][_0x392c('0x24')](_0x348747[_0x392c('0x99')],{}),_0xe56670&&this[_0x392c('0xb7')]['set'](_0x348747[_0x392c('0x99')],G(_0x348747[_0x392c('0x99')],!0x0)));const _0x594c26=null===_0x348747[_0x392c('0x50')]?null:_0x348747['_authorId']||this['editor'][_0x392c('0x6')][_0x392c('0xde')](_0x392c('0xa4'))['me']['id'],_0x223e5b=this[_0x392c('0xff')][_0x392c('0xde')](_0x348747[_0x392c('0x99')]);_0x223e5b&&_0x223e5b['userId']===_0x594c26?this[_0x392c('0xff')][_0x392c('0xe7')](_0x348747[_0x392c('0x99')]):this[_0x392c('0xff')][_0x392c('0x24')](_0x348747['rootName'],{'userId':_0x594c26,'isAttached':_0x348747[_0x392c('0x30')]});}[_0x392c('0x21')](_0x4ecea9){const _0x514240=this['_diffRootsAttributes'][_0x392c('0xde')](_0x4ecea9[_0x392c('0xc2')][_0x392c('0x99')]);null===_0x4ecea9['newValue']?delete _0x514240[_0x4ecea9[_0x392c('0xc9')]]:_0x514240[_0x4ecea9[_0x392c('0xc9')]]=_0x4ecea9[_0x392c('0x40')];}}function q(_0x2bbfb7){const _0x109a74=G(_0x2bbfb7['rootName'],_0x2bbfb7[_0x392c('0x2e')]());for(const _0x86bd13 of _0x2bbfb7[_0x392c('0x8e')]()){const _0x57c623=_0x86bd13[_0x392c('0xfc')](!0x0);_0x109a74[_0x392c('0x5c')](_0x57c623);}return _0x109a74;}function G(_0x4740e5,_0x5b7950=!0x0){const _0x36ab54=new _0x1254c3();return _0x36ab54[_0x392c('0x99')]=_0x4740e5,_0x36ab54[_0x392c('0x8d')]=_0x5b7950,_0x36ab54[_0x392c('0x2e')]=()=>_0x36ab54['_isAttached'],_0x36ab54;}function L(_0xee0b29,_0x8fcdf1,_0x5e8589){const _0x4cf16e=_0x392c('0x104')==_0xee0b29[_0x392c('0x74')]?_0x5e8589[_0x392c('0x60')](_0xee0b29[_0x392c('0x33')],_0x392c('0x4a')):_0x5e8589['createPositionBefore'](_0xee0b29[_0x392c('0x33')]);return _0x5e8589[_0x392c('0x91')](_0x8fcdf1,_0x4cf16e[_0x392c('0x4f')],_0x4cf16e['stickiness']);}function W(_0x4ee0e8,_0x222c3f,_0x562d3d){const _0x24da30=_0x392c('0xfd')==_0x4ee0e8[_0x392c('0x74')]?_0x562d3d['createPositionAt'](_0x4ee0e8['item'],0x0):_0x562d3d[_0x392c('0x8f')](_0x4ee0e8[_0x392c('0x33')]);return _0x562d3d[_0x392c('0x91')](_0x222c3f,_0x24da30[_0x392c('0x4f')],_0x24da30[_0x392c('0xdf')]);}