@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230828.0 → 0.0.0-nightly-20230830.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 _0x44ac=['_handleRootAttributeOperation','_generateTape','_getViewJson','children','_loadedStateData','previousPosition','document','define','childCount','baseVersion','editing','_removeMetaData','values','_createCurrentRevision','set','revision:','Initial\x20revision','_cloneOperation','PENDING_ACTION_REVISION_HISTORY','_getPreviousFrom','_touchedMarkers','loadState','setRevisionData','shift','newValue','addRootAttribute','userId','getWalker','diffData','toVersion','_bufferUpdate','_baseRootsAttributes','update','_idsRoots','documentFragment','offsetSize','get','from','range','has','keys','_removePendingAction','getChild','nodes','_makeModelFromViewString','position','_replaceEditorDataWithRevisionData','_loadState','_addPendingAction','updateRevisions','root','model','RevisionTracker','_saveMetaData','attributesBefore','addRevisionData','size','_source','splitPosition','tableCell','_startingRevisionId','element','attributesAfter','sendBufferedUpdates','_fixRange','_handleInsertOperation','editor','history','path','pluginName','_getVidAttributeName','length','_prepareViewToSave','keepParagraph','newRange','deletions','_startingVersion','RealTimeCollaborationClient','_savedMetaData','elementStart','_makeIdsRoot','elementEnd','_pendingAction','_markers','push','offset','vid_start','createRangeIn','_handleRootOperation','buildRevisionData','_reset','_handleMarkerOperation','initialData','getMovedRangeStart','_handleOperation','_touchedRoots','getRevisions','_fixOperation','currentRevision','afterInit','collaboration.channelId','_fixPosition','sourcePosition','createRange','createPositionAt','roots','_lastTo','addRevision','setSource','isReady','conversion','map','rootsAttributes','_authorId','getRange','removeRootAttribute','max','$graveyard','item','getChildren','parent','data-revision-','insertionPosition','hasContent','detachRoot','end','upcast','type','createdAt','start','revisionHistory.resumeUnsavedRevision','authors','getIndex','_update','_diffRootsAttributes','getRevisionDocumentData','_continueCurrentRevision','_setAttribute','view','_getState','_isInit','insertion','find','_lastFrom','isAttached','createPositionFromPath','revision','_isPendingUpdate','getData','attributes','parse','_setConversion','insertions','version','for','startsWith','toView','targetPosition','getRevision','clone','insert','getNodeByPath','ready','_diffRoots','repository','default','reverse','getTransformedByOperation','affectsData','editor-initial-data-replaced-with-revision-data','_revisionId','_getBaseVids','remove','dataDowncast','toModel','RevisionsRepository','createRevision','_operations','_handleMoveOperation','getAttribute','_markChanges','rootName','vid','sort','getAttributes','fromVersion','_findInsertionIndex','requires','$text','then','clear','_execute','_applyOperations','graveyardPosition','_handleMergeOperation','getCurrentRevisionId','reinsert','_revisionDataBuilder','useFillerType','key','stickiness','locale','resolve','processor','_initialRevisionId','_getFromVersion','howMany','_baseRoots','saveRevision','marker','creator','bind','getLatestVersion','_createInitialRevision','oldRange','_makeRevision','getAncestors','getRevisionRootsAttributes','paragraph','filter','config','authorsIds','_createFromRanges','move','isEnabled','creatorId','getOperation','adapter','isAdd','_copyMarkers','attachChange','plugins','data','PendingActions','vid_end','_loadRevisionData','stringify','name','getRootNames','NEGATIVE_INFINITY','_baseIdsRoots','_transformMarkers','text','_isAttached','string','source','revision-end','delete','init','_insertChild','_bufferedUpdates','createPositionAfter','markerToData','getOperations','_processRootBeforeSave','_removeRevisionMarkers','getRoot','markers','deletion','dataToMarker','_calculateMetaData','split','_touched','add','Users'];(function(_0x4b5adf,_0x44accf){const _0x15b562=function(_0x408026){while(--_0x408026){_0x4b5adf['push'](_0x4b5adf['shift']());}};_0x15b562(++_0x44accf);}(_0x44ac,0x1a0));const _0x15b5=function(_0x4b5adf,_0x44accf){_0x4b5adf=_0x4b5adf-0x0;let _0x15b562=_0x44ac[_0x4b5adf];return _0x15b562;};import{Users as _0x45008a}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x208e19,PendingActions as _0x16d3db}from'ckeditor5/src/core';import{logWarning as _0x29db7e,uid as _0x53ddbb}from'ckeditor5/src/utils';import{Position as _0x4d7909,Range as _0x124c67,Element as _0x245fee,DocumentFragment as _0x254a89,ViewText as _0xf42b80,ViewElement as _0x5ee2d9,ViewContainerElement as _0x4133fb,ViewAttributeElement as _0x4003ee,ViewEmptyElement as _0x361ba2,ViewRawElement as _0x4f9cbd,ViewUIElement as _0x3bf892,ViewDocumentFragment as _0x522da4}from'ckeditor5/src/engine';import _0x53592b from'./revisionsrepository';import{getTranslation as _0x334244}from'./utils/common-translations';import{cloneDeep as _0x1f2f4d,isEqual as _0x509f3b}from'lodash-es';const B={'c':_0x4133fb,'a':_0x4003ee,'e':_0x361ba2,'r':_0x4f9cbd,'u':_0x3bf892};export default class l extends _0x208e19{static get[_0x15b5('0xb7')](){return _0x15b5('0xa6');}static get[_0x15b5('0x24')](){return[_0x45008a,_0x53592b,_0x16d3db];}constructor(_0x381a5b){super(_0x381a5b),this['adapter']=null,this[_0x15b5('0xd4')]=null,this[_0x15b5('0x2e')]=new H(this[_0x15b5('0xb4')]),this['_initialRevisionId']=this['editor'][_0x15b5('0x45')][_0x15b5('0x96')](_0x15b5('0xd6'))||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x593af0=_0x53ddbb();this['_source']={'history':this[_0x15b5('0xb4')][_0x15b5('0xa5')]['document'][_0x15b5('0xb5')],'getLatestVersion':()=>Promise[_0x15b5('0x33')](this['editor']['model'][_0x15b5('0x78')][_0x15b5('0x2')]),'getCurrentRevisionId':()=>_0x593af0},this[_0x15b5('0x80')](_0x15b5('0xdf'),!0x1),this[_0x15b5('0x80')](_0x15b5('0x49'),!0x0),this[_0x15b5('0x80')](_0x15b5('0x105'),!0x1),this[_0x15b5('0xb4')][_0x15b5('0x45')][_0x15b5('0x79')](_0x15b5('0xf4'),!0x0),this[_0x15b5('0xb4')][_0x15b5('0xe0')][_0x15b5('0x3')](_0x15b5('0xf0'))[_0x15b5('0x6c')]({'view':_0x15b5('0x104')});}[_0x15b5('0x61')](){this[_0x15b5('0xd')]=this[_0x15b5('0xb4')][_0x15b5('0x50')][_0x15b5('0x96')](_0x15b5('0x18')),this[_0x15b5('0x0')](),this[_0x15b5('0xb4')][_0x15b5('0x51')]['on'](_0x15b5('0xb'),()=>{const _0x4eca88=this[_0x15b5('0xd')][_0x15b5('0x7')](0x0),_0x4b5c4e=_0x4eca88&&null===_0x4eca88[_0x15b5('0x3b')]?_0x4eca88:null;if(this[_0x15b5('0xfa')]=!!_0x4b5c4e&&this[_0x15b5('0xb4')]['config']['get'](_0x15b5('0xf4')),this[_0x15b5('0xb4')][_0x15b5('0x50')][_0x15b5('0x99')](_0x15b5('0xbf'))){const _0x348801=this[_0x15b5('0xab')][_0x15b5('0x2c')](),_0x1bc83f=this[_0x15b5('0xd')][_0x15b5('0x7')](_0x348801);if(_0x1bc83f)this['_startingVersion']=_0x1bc83f['fromVersion'],this[_0x15b5('0xfa')]=!0x1;else{const _0xfc977=this[_0x15b5('0xab')]['history'][_0x15b5('0x1a')][_0x15b5('0x100')](_0x1b2778=>!_0x1b2778[_0x15b5('0xfe')]),_0x230316=_0xfc977?_0xfc977[_0x15b5('0x7b')]:this[_0x15b5('0xab')][_0x15b5('0xb5')][_0x15b5('0x2')];_0x4eca88?(_0x4eca88[_0x15b5('0x8f')]<_0x230316&&_0x4eca88[_0x15b5('0xf7')]({'toVersion':_0x230316}),this[_0x15b5('0xfa')]?(this[_0x15b5('0xab')]['getCurrentRevisionId']=()=>_0x4b5c4e['id'],this[_0x15b5('0xbe')]=_0x4b5c4e[_0x15b5('0x22')]):(this[_0x15b5('0xbe')]=_0x4eca88[_0x15b5('0x8f')],this['_continueCurrentRevision']=!0x1)):(this[_0x15b5('0xbe')]=_0x230316,this[_0x15b5('0xfa')]=!0x1);}}else _0x4b5c4e&&(this['editor']['model']['document']['history'][_0x15b5('0x2')]=Math[_0x15b5('0xe6')](_0x4b5c4e[_0x15b5('0x8f')],this['editor']['model']['document']['history']['version']),_0x4b5c4e[_0x15b5('0x22')]===_0x4b5c4e['toVersion']?(0x0!==_0x4b5c4e[_0x15b5('0x22')]&&(this[_0x15b5('0xab')][_0x15b5('0x2c')]=()=>_0x4b5c4e['id']),this['_continueCurrentRevision']=!0x1):this[_0x15b5('0xfa')]&&(this[_0x15b5('0xab')][_0x15b5('0x2c')]=()=>_0x4b5c4e['id'],this[_0x15b5('0xbe')]=_0x4b5c4e[_0x15b5('0x22')])),this[_0x15b5('0xfa')]||(this[_0x15b5('0xbe')]=this['editor'][_0x15b5('0xa5')][_0x15b5('0x78')][_0x15b5('0x2')]);this[_0x15b5('0x2e')][_0x15b5('0x61')](this['_source'][_0x15b5('0xb5')]),this[_0x15b5('0x3e')](this[_0x15b5('0xbe')]),this['_createCurrentRevision'](this[_0x15b5('0xbe')]),this[_0x15b5('0x4c')]&&this[_0x15b5('0xb1')]();}),this[_0x15b5('0x3c')](_0x15b5('0xdf'))['to'](this,'_isPendingUpdate',_0x3225ac=>!_0x3225ac);}async[_0x15b5('0xd5')](){if(this[_0x15b5('0xd')][_0x15b5('0xb9')]>0x0){const _0x5dec8b=this[_0x15b5('0xd')][_0x15b5('0x7')](0x0),_0x2a6ee6=await this[_0x15b5('0xf9')](_0x5dec8b),_0x538db9=await this[_0x15b5('0x42')](_0x5dec8b);this[_0x15b5('0xa0')](_0x2a6ee6,_0x538db9);}}[_0x15b5('0xde')](_0x347a01){this[_0x15b5('0xab')]=_0x347a01;}async[_0x15b5('0x92')](){const _0x1d1b53=await this[_0x15b5('0xab')][_0x15b5('0x3d')]();if(_0x1d1b53>this[_0x15b5('0xd4')][_0x15b5('0x8f')]){await this[_0x15b5('0xa1')]();const _0xb094f1=this[_0x15b5('0xcb')]({'revision':this[_0x15b5('0xd4')],'to':_0x1d1b53});_0xb094f1['authors']=_0xb094f1[_0x15b5('0x46')][_0x15b5('0xe1')](_0x373e59=>this[_0x15b5('0xb4')][_0x15b5('0x50')]['get']('Users')['getUser'](_0x373e59)),this[_0x15b5('0xd4')][_0x15b5('0xf7')](_0xb094f1);}}async[_0x15b5('0xa1')](){this[_0x15b5('0xfa')]&&!this[_0x15b5('0x76')]&&(await this[_0x15b5('0x54')](this[_0x15b5('0xd4')]),this[_0x15b5('0x2e')][_0x15b5('0x87')](this[_0x15b5('0xd4')]),this[_0x15b5('0x76')]={'fromVersion':this[_0x15b5('0xd4')][_0x15b5('0x22')],'authors':this['currentRevision'][_0x15b5('0xf5')]['slice']()});}async[_0x15b5('0x39')](_0x2a59f4={},_0x253bc8=null){const _0x3aeb63=[];await this[_0x15b5('0xa1')](),this[_0x15b5('0xfa')]=!0x1,_0x253bc8>this['currentRevision'][_0x15b5('0x8f')]&&(_0x253bc8=null),null===_0x253bc8&&(_0x253bc8=await this[_0x15b5('0xab')][_0x15b5('0x3d')]());const _0x2bde67=this[_0x15b5('0x36')](_0x253bc8),_0x386acd=this['buildRevisionData']({'from':_0x2bde67,'to':_0x253bc8});if(this['currentRevision'][_0x15b5('0x8f')]<_0x253bc8){const _0x172e24=this[_0x15b5('0xcb')]({'revision':this['currentRevision'],'from':_0x253bc8,'to':_0x253bc8});_0x172e24['authors']=[],_0x172e24[_0x15b5('0x46')]=[],_0x172e24['id']=this['currentRevision']['id'],this[_0x15b5('0xd4')]['_update'](_0x172e24,!0x0),delete _0x172e24[_0x15b5('0xf5')],_0x3aeb63[_0x15b5('0xc6')](_0x172e24);}_0x2a59f4['creatorId']=this['editor']['plugins'][_0x15b5('0x96')](_0x15b5('0x71'))['me']['id'],_0x2a59f4[_0x15b5('0x56')]=_0x2a59f4[_0x15b5('0x56')]||null,_0x2a59f4['id']=_0x2a59f4['id']||_0x53ddbb(),_0x2a59f4={..._0x2a59f4,..._0x386acd};const _0x1e3364=this['addRevisionData'](_0x2a59f4);_0x3aeb63['push'](_0x2a59f4);const _0x43549a=this['repository'][_0x15b5('0xf6')](_0x1e3364);if(0x0!==_0x43549a){const _0x273be9=this[_0x15b5('0xd')][_0x15b5('0x7')](_0x43549a-0x1);if(_0x273be9[_0x15b5('0x22')]!==_0x253bc8){const _0x101c65=this[_0x15b5('0x2e')][_0x15b5('0x106')](_0x253bc8,_0x273be9[_0x15b5('0x8f')]),_0x59b18a={'id':_0x273be9['id'],'diffData':_0x101c65[_0x15b5('0x8e')],'authorsIds':_0x101c65[_0x15b5('0x46')],'authors':_0x101c65['authorsIds'][_0x15b5('0xe1')](_0x1b3a76=>this[_0x15b5('0xb4')][_0x15b5('0x50')][_0x15b5('0x96')](_0x15b5('0x71'))['getUser'](_0x1b3a76)),'fromVersion':_0x253bc8};_0x273be9===this[_0x15b5('0xd4')]&&(_0x59b18a[_0x15b5('0xf2')]=new Date(_0x2a59f4[_0x15b5('0xf2')]['getTime']()+0xa)),_0x273be9[_0x15b5('0xf7')](_0x59b18a,!0x0),delete _0x59b18a[_0x15b5('0xf5')],_0x3aeb63[_0x15b5('0xc6')](_0x59b18a);}}if(this['adapter']){for(const _0x2abee7 of _0x3aeb63)this[_0x15b5('0x90')](_0x2abee7['id'],_0x2abee7,!0x0);this['sendBufferedUpdates']();}return _0x1e3364;}[_0x15b5('0xa9')](_0x3ea9f9){const _0x4c0f15=this[_0x15b5('0xd')][_0x15b5('0x19')](_0x3ea9f9);return this['adapter']&&_0x4c0f15['on'](_0x15b5('0xf7'),(_0x422966,_0x5d23d2,_0x15fce4)=>{_0x15fce4||(this[_0x15b5('0x90')](_0x5d23d2['id'],_0x5d23d2,!0x0),this[_0x15b5('0xb1')]());}),this['repository'][_0x15b5('0xdd')](_0x4c0f15,this[_0x15b5('0x23')](_0x4c0f15)),_0x4c0f15;}async[_0x15b5('0xf9')](_0x1976c4){await this[_0x15b5('0x54')](_0x1976c4);const _0x5f77d4={};for(const _0x480c67 in _0x1976c4['diffData']){if(_0x1976c4[_0x15b5('0x8e')][_0x480c67][_0x15b5('0x4f')]&&!_0x1976c4[_0x15b5('0x8e')][_0x480c67][_0x15b5('0x4f')][_0x15b5('0x102')])continue;const _0x2a6732=this['_removeRevisionMarkers'](JSON['parse'](_0x1976c4['diffData'][_0x480c67][_0x15b5('0x1')])),_0xf91395=this['editor'][_0x15b5('0x7c')][_0x15b5('0xfc')][_0x15b5('0x78')],_0x31ca05=new _0x522da4(_0xf91395,_0x2a6732[_0x15b5('0xe1')](_0x5a5e64=>J(_0x5a5e64,this[_0x15b5('0xb4')])));this['editor'][_0x15b5('0x51')][_0x15b5('0x34')][_0x15b5('0x2f')]('marked'),_0x5f77d4[_0x480c67]=this[_0x15b5('0xb4')][_0x15b5('0x51')][_0x15b5('0x34')]['toData'](_0x31ca05),this[_0x15b5('0xb4')][_0x15b5('0x51')][_0x15b5('0x34')][_0x15b5('0x2f')](_0x15b5('0xe'));}return _0x5f77d4;}async[_0x15b5('0x42')](_0x179c07){await this[_0x15b5('0x54')](_0x179c07);const _0x10f63e={};for(const _0x286bbb in _0x179c07['diffData'])_0x179c07[_0x15b5('0x8e')][_0x286bbb][_0x15b5('0x4f')]&&!_0x179c07[_0x15b5('0x8e')][_0x286bbb]['attachChange'][_0x15b5('0x102')]||(_0x10f63e[_0x286bbb]=_0x179c07['diffData'][_0x286bbb]['attributesAfter']||{});return _0x10f63e;}[_0x15b5('0xb1')](){if(0x0===this[_0x15b5('0x63')][_0x15b5('0xaa')])return;if(this['_isPendingUpdate'])return;let _0x302648=Array[_0x15b5('0x97')](this[_0x15b5('0x63')][_0x15b5('0x7e')]());this['_bufferedUpdates'][_0x15b5('0x27')]();for(let _0x304c6f=0x0;_0x304c6f<_0x302648[_0x15b5('0xb9')];_0x304c6f++){const _0x29ff5c=_0x302648[_0x304c6f];let _0x3c7bd2=!0x1;for(const _0x597328 of Object[_0x15b5('0x9a')](_0x29ff5c))void 0x0===_0x29ff5c[_0x597328]?delete _0x29ff5c[_0x597328]:'id'!==_0x597328&&(_0x3c7bd2=!0x0);_0x3c7bd2||(_0x302648[_0x304c6f]=null);}if(_0x302648=_0x302648[_0x15b5('0x44')](_0x47dd52=>null!==_0x47dd52),!_0x302648['length'])return;for(let _0x2a8ae8=0x0;_0x2a8ae8<_0x302648[_0x15b5('0xb9')];_0x2a8ae8++){const _0x18aa53=_0x302648[_0x2a8ae8];void 0x0!==_0x18aa53[_0x15b5('0x22')]&&void 0x0===_0x18aa53[_0x15b5('0x8f')]&&(_0x18aa53[_0x15b5('0x8f')]=this['repository'][_0x15b5('0x7')](_0x18aa53['id'])[_0x15b5('0x8f')]),void 0x0!==_0x18aa53['toVersion']&&void 0x0===_0x18aa53['fromVersion']&&(_0x18aa53['fromVersion']=this[_0x15b5('0xd')]['getRevision'](_0x18aa53['id'])['fromVersion']);}const _0x49f33b=this[_0x15b5('0xb4')][_0x15b5('0x45')][_0x15b5('0x96')](_0x15b5('0xd6'));this[_0x15b5('0x105')]=!0x0,this[_0x15b5('0xa2')](),this['adapter'][_0x15b5('0xa3')](_0x302648,_0x49f33b)['finally'](()=>{this[_0x15b5('0x105')]=!0x1;})[_0x15b5('0x26')](_0x29a089=>{if(_0x29a089)for(const _0x5babb6 of _0x29a089)this[_0x15b5('0x88')]({'id':_0x5babb6['id'],'createdAt':_0x5babb6[_0x15b5('0xf2')]});this[_0x15b5('0x9b')](),this[_0x15b5('0xb1')]();});}[_0x15b5('0xa0')](_0x2f3bc0,_0x4f041b){let _0x312ea1=this[_0x15b5('0xb4')][_0x15b5('0x45')][_0x15b5('0x96')](_0x15b5('0xce')),_0x2324c7=this[_0x15b5('0xb4')][_0x15b5('0x45')]['get'](_0x15b5('0xe2'));if(void 0x0===_0x312ea1){_0x312ea1={};for(const _0x575f65 of this['editor'][_0x15b5('0xa5')][_0x15b5('0x78')]['getRootNames']())_0x312ea1[_0x575f65]='';}if(_0x15b5('0x5d')==typeof _0x312ea1&&(_0x312ea1={'main':_0x312ea1}),void 0x0===_0x2324c7){_0x2324c7={};for(const _0x403b7a of this[_0x15b5('0xb4')][_0x15b5('0xa5')][_0x15b5('0x78')][_0x15b5('0x57')]())_0x2324c7[_0x403b7a]={};}let _0x468e9b=!0x1;const _0x336214=Object[_0x15b5('0x9a')](_0x312ea1),_0x1d33b8=Object[_0x15b5('0x9a')](_0x2f3bc0);for(const _0x3b7a44 of _0x336214){if(_0x312ea1[_0x3b7a44]!==_0x2f3bc0[_0x3b7a44]&&''!==_0x312ea1[_0x3b7a44]['trim']()){_0x468e9b=!0x0;break;}if(!_0x509f3b(_0x2324c7[_0x3b7a44],_0x4f041b[_0x3b7a44])&&Object['keys'](_0x2324c7[_0x3b7a44])[_0x15b5('0xb9')]>0x0){_0x468e9b=!0x0;break;}}_0x468e9b||(_0x468e9b=_0x1d33b8['some'](_0x1ca9b7=>!this['editor']['model']['document'][_0x15b5('0x69')](_0x1ca9b7))),_0x468e9b&&_0x29db7e(_0x15b5('0x12'),{'editorData':_0x312ea1,'editorRootsAttributes':_0x2324c7,'revisionData':_0x2f3bc0,'revisionRootsAttributes':_0x4f041b}),this[_0x15b5('0xb4')][_0x15b5('0x45')][_0x15b5('0x80')](_0x15b5('0xce'),_0x2f3bc0),this[_0x15b5('0xb4')][_0x15b5('0x45')][_0x15b5('0x80')](_0x15b5('0xe2'),_0x4f041b);}[_0x15b5('0xa2')](){if(!this[_0x15b5('0xc4')]){const _0x3ebbeb=this['editor'][_0x15b5('0x50')][_0x15b5('0x96')](_0x15b5('0x52'));this[_0x15b5('0xc4')]=_0x3ebbeb[_0x15b5('0x70')](_0x334244(this[_0x15b5('0xb4')][_0x15b5('0x32')],_0x15b5('0x84')));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor'][_0x15b5('0x50')][_0x15b5('0x96')](_0x15b5('0x52'))[_0x15b5('0x15')](this[_0x15b5('0xc4')]),this[_0x15b5('0xc4')]=null);}[_0x15b5('0x23')](_0x353551){const _0x458984=this[_0x15b5('0xd')][_0x15b5('0xd2')]();_0x458984[_0x15b5('0xf')]();let _0x2aabe6=0x0;for(;_0x2aabe6<_0x458984[_0x15b5('0xb9')];){const _0x5eb2df=_0x458984[_0x2aabe6];if(_0x5eb2df===this[_0x15b5('0xd4')]){_0x2aabe6++;continue;}if(_0x5eb2df['id']===this['_initialRevisionId'])break;const _0x306fa4=_0x353551['toVersion']-_0x5eb2df[_0x15b5('0x8f')]||_0x353551['fromVersion']-_0x5eb2df[_0x15b5('0x22')];if(_0x306fa4>0x0)break;if(_0x306fa4<0x0)_0x2aabe6++;else{if(!_0x353551[_0x15b5('0x3b')]&&_0x5eb2df[_0x15b5('0x3b')])break;if(_0x5eb2df['creator']||!_0x353551['creator']){if(_0x353551[_0x15b5('0xf2')]>_0x5eb2df[_0x15b5('0xf2')])break;_0x2aabe6++;}else _0x2aabe6++;}}return _0x2aabe6;}['setRevisionData'](_0x8906d6){const _0x2c7b9e=this[_0x15b5('0xd')][_0x15b5('0x7')](_0x8906d6['id']);if(_0x8906d6[_0x15b5('0xf2')]&&(_0x8906d6[_0x15b5('0xf2')]=new Date(_0x8906d6[_0x15b5('0xf2')])),_0x8906d6[_0x15b5('0x46')]){const _0x267a46=this[_0x15b5('0xb4')][_0x15b5('0x50')]['get'](_0x15b5('0x71'));_0x8906d6['authors']=_0x8906d6['authorsIds'][_0x15b5('0xe1')](_0x38a989=>_0x267a46['getUser'](_0x38a989));}_0x2c7b9e[_0x15b5('0xf7')](_0x8906d6,!0x0);}[_0x15b5('0xcb')]({revision:_0x4eeeba=null,from:_0x539506=null,to:_0x4e72e2=null}){_0x539506=null!==_0x539506?_0x539506:_0x4eeeba[_0x15b5('0x22')],_0x4e72e2=null!==_0x4e72e2?_0x4e72e2:_0x4eeeba[_0x15b5('0x8f')];const _0xdba1fe=this[_0x15b5('0x2e')][_0x15b5('0x106')](_0x539506,_0x4e72e2),_0x6276fe={'diffData':_0xdba1fe[_0x15b5('0x8e')],'authorsIds':_0xdba1fe[_0x15b5('0x46')],'fromVersion':_0x539506,'toVersion':_0x4e72e2};if(!_0x4eeeba||_0x4e72e2!==_0x4eeeba['toVersion']){const _0x54f0e7=_0x4e72e2-0x1,_0x4dfefa=this[_0x15b5('0xab')]['history'][_0x15b5('0x4b')](_0x54f0e7);_0x6276fe['createdAt']=_0x4dfefa&&_0x4dfefa[_0x15b5('0xf2')]||new Date();}if(this[_0x15b5('0x76')]&&_0x539506===this[_0x15b5('0x76')]['fromVersion'])for(const _0xbc8c4a of this[_0x15b5('0x76')][_0x15b5('0xf5')])_0x6276fe[_0x15b5('0x46')]['includes'](_0xbc8c4a['id'])||_0x6276fe[_0x15b5('0x46')][_0x15b5('0xc6')](_0xbc8c4a['id']);return _0x6276fe;}[_0x15b5('0x54')](_0x449f80){if(!_0x449f80||_0x449f80['diffData'])return Promise[_0x15b5('0x33')]();{const _0x335d2d=this[_0x15b5('0xb4')][_0x15b5('0x45')][_0x15b5('0x96')](_0x15b5('0xd6'));return this[_0x15b5('0x4c')][_0x15b5('0x7')]({'channelId':_0x335d2d,'revisionId':_0x449f80['id']})[_0x15b5('0x26')](_0x36ba70=>{_0x449f80[_0x15b5('0x8e')]=_0x36ba70[_0x15b5('0x8e')];});}}[_0x15b5('0x90')](_0x4ad913,_0x44ec00,_0x2138cc){if(this[_0x15b5('0x63')][_0x15b5('0x99')](_0x4ad913)){const _0x24b9d8=this[_0x15b5('0x63')][_0x15b5('0x96')](_0x4ad913);_0x44ec00=_0x2138cc?{..._0x24b9d8,..._0x44ec00}:{..._0x44ec00,..._0x24b9d8};}this[_0x15b5('0x63')][_0x15b5('0x80')](_0x4ad913,_0x44ec00);}['_getFromVersion'](_0x53d6d0){const _0x50aaed=this['repository'][_0x15b5('0xd2')]();_0x50aaed[_0x15b5('0xf')](),_0x50aaed[_0x15b5('0x89')]();const _0x1fc89d=_0x50aaed[_0x15b5('0x100')](_0x300feb=>_0x300feb[_0x15b5('0x8f')]<=_0x53d6d0)['toVersion'];return _0x1fc89d<this['_startingVersion']?this[_0x15b5('0xbe')]:_0x1fc89d;}[_0x15b5('0x3e')](_0x24c99e){const _0x337379=this['repository'][_0x15b5('0x7')](this[_0x15b5('0xd')][_0x15b5('0xb9')]-0x1);if(_0x337379)this[_0x15b5('0x35')]=_0x337379['id'];else{const _0x75e8a1=!this[_0x15b5('0xb4')][_0x15b5('0xa5')]['document'][_0x15b5('0xdb')][_0x15b5('0x100')](_0x516ae2=>this[_0x15b5('0xb4')][_0x15b5('0xa5')][_0x15b5('0xed')](_0x516ae2)),_0x7af2df=this['editor']['plugins'][_0x15b5('0x96')](_0x15b5('0x71'))['me']['id'],_0x3f8836=_0x334244(this[_0x15b5('0xb4')][_0x15b5('0x32')],_0x75e8a1?'Empty\x20document':_0x15b5('0x82'));this[_0x15b5('0x40')]({'from':_0x24c99e,'to':_0x24c99e,'id':this[_0x15b5('0x35')],'name':_0x3f8836,'creatorId':_0x7af2df});}}[_0x15b5('0x7f')](_0x5fe765){const _0x39d367=this[_0x15b5('0xab')][_0x15b5('0x2c')]();this[_0x15b5('0xd4')]=this[_0x15b5('0xd')]['getRevision'](_0x39d367),this[_0x15b5('0xd4')]||(this[_0x15b5('0xd4')]=this[_0x15b5('0x40')]({'from':_0x5fe765,'to':_0x5fe765,'id':_0x39d367,'name':'','creatorId':null}));}[_0x15b5('0x40')]({name:_0x5cfc89,from:_0x3cc781,to:_0x1bb606,creatorId:_0x4db695,id:_0x6f9845}){const _0xebed7f=this['buildRevisionData']({'from':_0x3cc781,'to':_0x1bb606});_0xebed7f[_0x15b5('0x56')]=_0x5cfc89,_0xebed7f[_0x15b5('0x4a')]=_0x4db695,_0xebed7f['id']=_0x6f9845;const _0x2e43e0=this[_0x15b5('0xa9')](_0xebed7f);return this[_0x15b5('0x4c')]&&this[_0x15b5('0x90')](_0xebed7f['id'],_0xebed7f,!0x0),_0x2e43e0;}['_setConversion'](){this['editor']['conversion'][_0x15b5('0x3')](_0x15b5('0x16'))[_0x15b5('0x65')]({'model':'revision'});}['_removeRevisionMarkers'](_0x4f0a72){return(_0x4f0a72=_0x4f0a72['filter'](_0x57e094=>!_0x57e094[_0x15b5('0x56')]||'revision-start'!==_0x57e094[_0x15b5('0x56')]&&_0x15b5('0x5f')!==_0x57e094[_0x15b5('0x56')]))['forEach'](_0x5efded=>{_0x15b5('0x5d')!=typeof _0x5efded&&(_0x5efded[_0x15b5('0x75')]=this[_0x15b5('0x68')](_0x5efded[_0x15b5('0x75')]),_0x5efded[_0x15b5('0x107')]=_0x5efded[_0x15b5('0x107')][_0x15b5('0x44')](_0x36d24c=>!_0x36d24c[0x0]['startsWith'](_0x15b5('0xeb'))));}),_0x4f0a72;}}function J(_0x3a4525,_0x3dcd52){const _0x21b6f1=_0x3dcd52['editing']['view'][_0x15b5('0x78')];if(_0x15b5('0x5d')==typeof _0x3a4525)return new _0xf42b80(_0x21b6f1,_0x3a4525);{const _0x3ec12d=_0x3a4525[_0x15b5('0x75')][_0x15b5('0xe1')](_0x3c6bde=>J(_0x3c6bde,_0x3dcd52));return new(B[_0x3a4525['type']]||_0x5ee2d9)(_0x21b6f1,_0x3a4525[_0x15b5('0x56')],_0x3a4525[_0x15b5('0x107')],_0x3ec12d);}}class H{constructor(_0x581b6d){this[_0x15b5('0xb4')]=_0x581b6d,this[_0x15b5('0xc0')]=new Map(),this[_0x15b5('0x101')]=-0x1,this[_0x15b5('0xdc')]=-0x1,this[_0x15b5('0xc5')]=new Map(),this[_0x15b5('0xc')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x15b5('0x38')]=new Map(),this[_0x15b5('0x91')]=new Map(),this[_0x15b5('0x93')]=new Map(),this['_baseIdsRoots']=new Map(),this[_0x15b5('0x6f')]=new Map(),this[_0x15b5('0x86')]=new Map(),this[_0x15b5('0xd1')]=new Map(),this[_0x15b5('0x13')]=0x1;}[_0x15b5('0x61')](_0xd31900){this[_0x15b5('0x5e')]=_0xd31900;const _0x4befd6=new Map(),_0x31f9ac=new Map(),_0x5c4102=this[_0x15b5('0xb4')][_0x15b5('0xa5')][_0x15b5('0x78')][_0x15b5('0xdb')][_0x15b5('0xe1')](_0x23a74b=>_0x23a74b[_0x15b5('0x1e')]);for(const _0x24eab4 of _0x5c4102){const _0x13944d=this[_0x15b5('0xb4')]['model'][_0x15b5('0x78')][_0x15b5('0x69')](_0x24eab4),_0x57268c=q(_0x13944d);_0x4befd6[_0x15b5('0x80')](_0x24eab4,_0x57268c),_0x31f9ac['set'](_0x24eab4,Object['fromEntries'](_0x13944d[_0x15b5('0x21')]()));}const _0x10912c=Array['from'](this['editor']['model']['markers'])[_0x15b5('0xe1')](_0x3c8238=>[_0x3c8238[_0x15b5('0x56')],_0x3c8238[_0x15b5('0xe4')]()]),_0x459bc3=this[_0x15b5('0x5e')][_0x15b5('0x2')];this[_0x15b5('0xa7')](_0x459bc3,_0x4befd6,_0x10912c,_0x31f9ac),this[_0x15b5('0xae')]=this[_0x15b5('0x13')];const _0x6c351=new Map(),_0x58f8d2=new Map();for(const _0x462b62 of _0x5c4102){const _0x1e04f9=G(_0x462b62);_0x6c351['set'](_0x462b62,_0x1e04f9),_0x58f8d2[_0x15b5('0x80')](_0x462b62,{});}this[_0x15b5('0xa7')](Number[_0x15b5('0x58')],_0x6c351,[],_0x58f8d2);}[_0x15b5('0x106')](_0xd88925,_0x372600){if(this[_0x15b5('0x101')]===_0xd88925&&this[_0x15b5('0xdc')]<=_0x372600)this['_savedMetaData'][_0x15b5('0xaa')]>0x1&&this[_0x15b5('0x7d')](this['_lastTo']),this[_0x15b5('0x29')](this[_0x15b5('0xdc')],_0x372600,!0x0);else{if(!this['_savedMetaData'][_0x15b5('0x99')](_0xd88925)){const _0x4d51d3=this[_0x15b5('0x85')](_0xd88925);this[_0x15b5('0x6d')](_0x4d51d3,_0xd88925,!0x1);}this[_0x15b5('0x6d')](_0xd88925,_0x372600,!0x0);}return this['_lastFrom']=_0xd88925,this[_0x15b5('0xdc')]=_0x372600,this[_0x15b5('0xfd')]();}[_0x15b5('0x87')](_0x4d8c8d){this[_0x15b5('0xcc')](),this[_0x15b5('0x101')]=_0x4d8c8d[_0x15b5('0x22')],this[_0x15b5('0xdc')]=_0x4d8c8d[_0x15b5('0x8f')];for(const _0x4380b4 in _0x4d8c8d[_0x15b5('0x8e')]){const _0x3fb5fe=_0x4d8c8d[_0x15b5('0x8e')][_0x4380b4]['attachChange'],_0x2e46f8=_0x1f2f4d(_0x4d8c8d['diffData'][_0x4380b4][_0x15b5('0xa8')])||{},_0x1de0af=this[_0x15b5('0x9e')](_0x4d8c8d['diffData'][_0x4380b4][_0x15b5('0xbd')]);_0x1de0af['rootName']=_0x4380b4,_0x1de0af['_isAttached']=!_0x3fb5fe||!_0x3fb5fe[_0x15b5('0x102')],_0x1de0af['isAttached']=()=>_0x1de0af[_0x15b5('0x5c')],this['_baseRoots'][_0x15b5('0x80')](_0x4380b4,_0x1de0af),this[_0x15b5('0x91')][_0x15b5('0x80')](_0x4380b4,_0x2e46f8),_0x3fb5fe&&this[_0x15b5('0xd1')][_0x15b5('0x80')](_0x4380b4,_0x3fb5fe);const _0x35df82=this[_0x15b5('0xc2')](_0x1de0af);this[_0x15b5('0x59')][_0x15b5('0x80')](_0x4380b4,_0x35df82);for(const [_0x2243e6,_0xadf9c6]of _0x1de0af[_0x15b5('0x6a')]){if(!_0x2243e6[_0x15b5('0x4')](_0x15b5('0x81')))continue;const _0x13bf4a=_0x2243e6[_0x15b5('0x6e')](':')[0x2];for(const _0x14ca5f of _0xadf9c6['getWalker']({'singleCharacters':!0x0})){const _0x4499b3=this[_0x15b5('0xb8')](_0x14ca5f),_0x4af208=_0x15b5('0xc3')==_0x14ca5f[_0x15b5('0xf1')]?_0x14ca5f['previousPosition']['path']['slice'](0x0,-0x1):_0x14ca5f[_0x15b5('0x77')][_0x15b5('0xb6')],_0x2edf6a=_0x35df82['getNodeByPath'](_0x4af208)[_0x15b5('0x1c')](_0x4499b3);this[_0x15b5('0x6f')][_0x15b5('0x80')](_0x2edf6a,{'userId':_0x13bf4a});}}}this[_0x15b5('0xae')]=this[_0x15b5('0x13')];const _0x5168e1=[...Array(this[_0x15b5('0x13')])[_0x15b5('0x9a')]()]['slice'](0x1)[_0x15b5('0x44')](_0x18953f=>!this[_0x15b5('0x6f')][_0x15b5('0x99')](_0x18953f));let _0xda7fb0=0x0;const _0x2831bf=new Map();for(const _0x23eb52 in _0x4d8c8d[_0x15b5('0x8e')]){const _0x400b4f=_0x4d8c8d[_0x15b5('0x8e')][_0x23eb52][_0x15b5('0x4f')],_0x4f5360=_0x1f2f4d(_0x4d8c8d[_0x15b5('0x8e')][_0x23eb52][_0x15b5('0xb0')])||{},_0x1069d4=this[_0x15b5('0x9e')](_0x4d8c8d[_0x15b5('0x8e')][_0x23eb52][_0x15b5('0x1')]);_0x1069d4[_0x15b5('0x1e')]=_0x23eb52,_0x1069d4[_0x15b5('0x5c')]=!_0x400b4f||_0x400b4f['isAttached'],_0x1069d4[_0x15b5('0x102')]=()=>_0x1069d4[_0x15b5('0x5c')],this[_0x15b5('0xc')][_0x15b5('0x80')](_0x23eb52,_0x1069d4),this[_0x15b5('0xf8')][_0x15b5('0x80')](_0x23eb52,_0x4f5360);const _0x2d5685=this[_0x15b5('0xc2')](_0x1069d4,Number[_0x15b5('0x58')]);this[_0x15b5('0x93')][_0x15b5('0x80')](_0x23eb52,_0x2d5685),_0x2831bf['set'](_0x23eb52,_0x1069d4[_0x15b5('0x102')]()?_0x4f5360:{});for(const [_0x36bfc0,_0x33d195]of _0x1069d4['markers']){if(!_0x36bfc0['startsWith']('revision:'))continue;const _0x31330d=_0x36bfc0[_0x15b5('0x6e')](':')[0x2];for(const _0x49fcf9 of _0x33d195[_0x15b5('0x8d')]({'singleCharacters':!0x0})){const _0x3e4f02=this[_0x15b5('0xb8')](_0x49fcf9),_0x56c1e6=this[_0x15b5('0x13')]++,_0xc169e3=_0x15b5('0xc3')==_0x49fcf9['type']?_0x49fcf9[_0x15b5('0x77')][_0x15b5('0xb6')]['slice'](0x0,-0x1):_0x49fcf9[_0x15b5('0x77')][_0x15b5('0xb6')];_0x2d5685[_0x15b5('0xa')](_0xc169e3)[_0x15b5('0xfb')](_0x3e4f02,_0x56c1e6),this['_touched']['set'](_0x56c1e6,{'userId':_0x31330d});}}for(const _0x4eb92f of this[_0x15b5('0xb4')]['model'][_0x15b5('0xc9')](_0x1069d4)['getWalker']({'singleCharacters':!0x0})){const _0x493d7d=this['_getVidAttributeName'](_0x4eb92f),_0x517cfa=_0x15b5('0xc3')==_0x4eb92f['type']?_0x4eb92f[_0x15b5('0x77')]['path']['slice'](0x0,-0x1):_0x4eb92f[_0x15b5('0x77')][_0x15b5('0xb6')],_0x2144be=_0x2d5685[_0x15b5('0xa')](_0x517cfa);_0x2144be[_0x15b5('0x1c')](_0x493d7d)>0x0||_0x2144be['_setAttribute'](_0x493d7d,_0x5168e1[_0xda7fb0++]);}for(const [_0x3d8800,_0x584ddb]of _0x1069d4[_0x15b5('0x6a')])_0x3d8800['startsWith'](_0x15b5('0x81'))||this[_0x15b5('0xc5')][_0x15b5('0x80')](_0x3d8800,_0x584ddb);}const _0x3b4e2a=G(_0x15b5('0xe7'));this[_0x15b5('0x38')][_0x15b5('0x80')](_0x15b5('0xe7'),_0x3b4e2a),this[_0x15b5('0x59')][_0x15b5('0x80')](_0x15b5('0xe7'),this[_0x15b5('0xc2')](_0x3b4e2a,0x1));const _0x522cc5=G(_0x15b5('0xe7'));this[_0x15b5('0xc')][_0x15b5('0x80')](_0x15b5('0xe7'),_0x522cc5),this[_0x15b5('0x93')][_0x15b5('0x80')](_0x15b5('0xe7'),this[_0x15b5('0xc2')](_0x522cc5,0x1));const _0x1af932=Array[_0x15b5('0x97')](this[_0x15b5('0xc')])[_0x15b5('0xe1')](([_0x5c69e1,_0x23b314])=>[_0x5c69e1,q(_0x23b314)]);this[_0x15b5('0xa7')](this['_lastTo'],_0x1af932,this[_0x15b5('0xc5')],_0x2831bf);}[_0x15b5('0x9e')](_0x2c77b8){const _0x56c0fa=JSON[_0x15b5('0x108')](_0x2c77b8),_0x21c83e=this[_0x15b5('0xb4')][_0x15b5('0x7c')][_0x15b5('0xfc')][_0x15b5('0x78')],_0x356b3d=new _0x522da4(_0x21c83e,_0x56c0fa[_0x15b5('0xe1')](_0x3cdd2d=>J(_0x3cdd2d,this['editor'])));return this[_0x15b5('0xb4')]['data'][_0x15b5('0x17')](_0x356b3d);}[_0x15b5('0xa7')](_0x393d6d,_0x3a5ceb,_0x5b826f,_0x470490){const _0x9a9736=new Map(_0x3a5ceb),_0x50e5ef=new Map(_0x1f2f4d(_0x470490)),_0x332698=new Map();for(const [_0x4e84f5,_0x4f79cb]of _0x5b826f)_0x332698['set'](_0x4e84f5,{'start':_0x4f79cb[_0x15b5('0xf3')][_0x15b5('0x8')](),'end':_0x4f79cb[_0x15b5('0xef')]['clone'](),'rootName':_0x4f79cb[_0x15b5('0xa4')]['rootName']});this['_savedMetaData'][_0x15b5('0x80')](_0x393d6d,{'roots':_0x9a9736,'markers':_0x332698,'rootsAttributes':_0x50e5ef});}['_removeMetaData'](_0x560cc9){this['_savedMetaData'][_0x15b5('0x60')](_0x560cc9);}['reInit'](){this['_reset'](),this[_0x15b5('0x101')]=-0x1,this[_0x15b5('0xdc')]=-0x1,this[_0x15b5('0xc0')]['clear'](),this['init'](this[_0x15b5('0x5e')]);}[_0x15b5('0xcc')](){this[_0x15b5('0x6f')][_0x15b5('0x27')](),this[_0x15b5('0x86')][_0x15b5('0x27')](),this['_touchedRoots'][_0x15b5('0x27')](),this[_0x15b5('0xc')][_0x15b5('0x27')](),this[_0x15b5('0xf8')][_0x15b5('0x27')](),this[_0x15b5('0x38')]['clear'](),this[_0x15b5('0x91')][_0x15b5('0x27')](),this[_0x15b5('0x93')][_0x15b5('0x27')](),this[_0x15b5('0x59')][_0x15b5('0x27')](),this[_0x15b5('0xc5')][_0x15b5('0x27')](),this['_revisionId']=0x1,this[_0x15b5('0xae')]=this['_revisionId'];}[_0x15b5('0xc2')](_0x442813,_0x5bb064=null){let _0x2b4bcd=null;_0x442813['is'](_0x15b5('0x94'))||(_0x2b4bcd=new _0x245fee(_0x442813[_0x15b5('0x56')],{'vid_start':null===_0x5bb064?this[_0x15b5('0x13')]++:_0x5bb064++}));const _0x2a65dc=[];for(const _0x4c20a0 of _0x442813[_0x15b5('0xe9')]())if(_0x4c20a0['is'](_0x15b5('0xaf'))){_0x2a65dc[_0x15b5('0xc6')](this[_0x15b5('0xc2')](_0x4c20a0,_0x5bb064));const _0x5de62a=_0x2a65dc[_0x2a65dc[_0x15b5('0xb9')]-0x1];null!==_0x5bb064&&(_0x5bb064=_0x5de62a['is'](_0x15b5('0xaf'),_0x15b5('0x25'))?_0x5de62a['getAttribute']('vid')+0x1:_0x5de62a['getAttribute'](_0x15b5('0x53'))+0x1);}else for(let _0x4e69c9=0x0;_0x4e69c9<_0x4c20a0[_0x15b5('0x95')];_0x4e69c9++)_0x2a65dc['push'](new _0x245fee(_0x15b5('0x25'),{'vid':null===_0x5bb064?this['_revisionId']++:_0x5bb064++}));if(_0x442813['is'](_0x15b5('0x94'))){const _0x305e87=G(_0x442813[_0x15b5('0x1e')]);return _0x305e87[_0x15b5('0x62')](0x0,_0x2a65dc),_0x305e87;}return _0x2b4bcd[_0x15b5('0xfb')](_0x15b5('0x53'),null===_0x5bb064?this[_0x15b5('0x13')]++:_0x5bb064++),_0x2b4bcd[_0x15b5('0x62')](0x0,_0x2a65dc),_0x2b4bcd;}[_0x15b5('0x6d')](_0x583660,_0xc8d74b,_0x334d54){this['_reset']();const {roots:_0x19b722,markers:_0x3b3eed,rootsAttributes:_0x179722}=this[_0x15b5('0xc0')][_0x15b5('0x96')](_0x583660);this['_baseRoots']=new Map(_0x19b722),this[_0x15b5('0x91')]=new Map(_0x1f2f4d(_0x179722));for(const [_0xbfb71d,_0x1abfea]of this[_0x15b5('0x38')])if(_0x15b5('0xe7')!==_0xbfb71d&&(this[_0x15b5('0xc')]['set'](_0xbfb71d,q(_0x1abfea)),this[_0x15b5('0xf8')]=new Map(_0x1f2f4d(_0x179722)),_0x334d54)){const _0x2ad97f=this[_0x15b5('0x13')];this[_0x15b5('0x93')]['set'](_0xbfb71d,this['_makeIdsRoot'](_0x1abfea)),this[_0x15b5('0x59')][_0x15b5('0x80')](_0xbfb71d,this[_0x15b5('0xc2')](_0x1abfea,_0x2ad97f));}this[_0x15b5('0xae')]=this[_0x15b5('0x13')],this[_0x15b5('0xc')][_0x15b5('0x80')](_0x15b5('0xe7'),q(this[_0x15b5('0x38')][_0x15b5('0x96')](_0x15b5('0xe7')))),_0x334d54&&this['_idsRoots'][_0x15b5('0x80')](_0x15b5('0xe7'),this['_makeIdsRoot'](this[_0x15b5('0x38')][_0x15b5('0x96')](_0x15b5('0xe7'))));for(const [_0x5be78b,_0x5e33df]of _0x3b3eed){const _0xd9ffb7=this[_0x15b5('0x38')][_0x15b5('0x96')](_0x5e33df['rootName']),_0x4b25dc=this[_0x15b5('0xc')][_0x15b5('0x96')](_0x5e33df[_0x15b5('0x1e')]),_0x4061d2=new _0x124c67(this[_0x15b5('0xd7')](_0x5e33df[_0x15b5('0xf3')],_0xd9ffb7),this[_0x15b5('0xd7')](_0x5e33df[_0x15b5('0xef')],_0xd9ffb7)),_0x5a9db7=this['_fixRange'](_0x4061d2,_0x4b25dc);_0xd9ffb7[_0x15b5('0x6a')][_0x15b5('0x80')](_0x5be78b,_0x4061d2),this[_0x15b5('0xc5')][_0x15b5('0x80')](_0x5be78b,_0x5a9db7);}this[_0x15b5('0x29')](_0x583660,_0xc8d74b,_0x334d54);}[_0x15b5('0x29')](_0x2f2107,_0x141bf9,_0x43f076){for(const _0x1209fc of this[_0x15b5('0x5e')][_0x15b5('0x66')](_0x2f2107,_0x141bf9))this[_0x15b5('0xd0')](_0x1209fc,_0x43f076);for(const _0x2dbe29 of this[_0x15b5('0xc')][_0x15b5('0x7e')]())_0x2dbe29[_0x15b5('0x6a')]['clear']();for(const [_0x41cf29,_0x31c60f]of this[_0x15b5('0xc5')]){this[_0x15b5('0xc')][_0x15b5('0x96')](_0x31c60f[_0x15b5('0xa4')][_0x15b5('0x1e')])['markers']['set'](_0x41cf29,_0x31c60f[_0x15b5('0x8')]());}const _0x45aa4e=new Map(),_0x39db0a=new Map();for(const [_0x412af0,_0x113122]of this[_0x15b5('0xc')])_0x45aa4e[_0x15b5('0x80')](_0x412af0,q(_0x113122)),_0x39db0a[_0x15b5('0x80')](_0x412af0,this[_0x15b5('0xf8')]['get'](_0x412af0));this[_0x15b5('0xa7')](_0x141bf9,_0x45aa4e,this[_0x15b5('0xc5')],_0x39db0a);}[_0x15b5('0x85')](_0x5decd0){const _0x3920bb=Array[_0x15b5('0x97')](this[_0x15b5('0xc0')][_0x15b5('0x9a')]());_0x3920bb[_0x15b5('0x20')]((_0x3c23ea,_0x34c951)=>_0x3c23ea-_0x34c951),_0x3920bb[_0x15b5('0xf')]();for(const _0x5e2d8e of _0x3920bb)if(_0x5e2d8e<_0x5decd0)return _0x5e2d8e;return Number[_0x15b5('0x58')];}[_0x15b5('0x4e')](_0x2c2330,_0x33e70f){const _0x5af28e=Array['from'](_0x33e70f[_0x15b5('0x6a')])['map'](([_0xad9f3a,_0x49e561])=>[_0xad9f3a,this['_fixRange'](_0x49e561,_0x2c2330)]);_0x2c2330[_0x15b5('0x6a')]=new Map(_0x5af28e);}['_transformMarkers'](_0x573829){for(const _0x50cd80 of this[_0x15b5('0xc5')][_0x15b5('0x7e')]()){const _0x26dfae=_0x50cd80[_0x15b5('0x10')](_0x573829),_0x5d15a5=_0x124c67[_0x15b5('0x47')](_0x26dfae);_0x50cd80[_0x15b5('0xf3')]=_0x5d15a5[_0x15b5('0xf3')],_0x50cd80[_0x15b5('0xef')]=_0x5d15a5[_0x15b5('0xef')];}}[_0x15b5('0xd0')](_0x1706f3,_0x429ef2){if('addRoot'==_0x1706f3[_0x15b5('0xf1')]||_0x15b5('0xee')==_0x1706f3[_0x15b5('0xf1')])return void this[_0x15b5('0xca')](_0x1706f3,_0x429ef2);if(_0x15b5('0x9')==_0x1706f3[_0x15b5('0xf1')]){const _0x5ac324=_0x1706f3['position'][_0x15b5('0xa4')][_0x15b5('0x1e')];this[_0x15b5('0xc')]['has'](_0x5ac324)||(this[_0x15b5('0xc')][_0x15b5('0x80')](_0x5ac324,G(_0x5ac324,!0x0)),this['_diffRootsAttributes'][_0x15b5('0x80')](_0x5ac324,{}),_0x429ef2&&this[_0x15b5('0x93')][_0x15b5('0x80')](_0x5ac324,G(_0x5ac324,!0x0)));}else{if(_0x15b5('0x8b')==_0x1706f3['type']||_0x15b5('0xe5')==_0x1706f3[_0x15b5('0xf1')]||'changeRootAttribute'==_0x1706f3[_0x15b5('0xf1')])return void this[_0x15b5('0x72')](_0x1706f3);}const _0x304ef0=this[_0x15b5('0x83')](_0x1706f3,this[_0x15b5('0xc')]);if(_0x15b5('0x3a')!==_0x1706f3['type']&&(_0x304ef0['_execute'](),this[_0x15b5('0x5a')](_0x304ef0)),_0x429ef2)switch(_0x304ef0[_0x15b5('0xf1')]){case'insert':this['_handleInsertOperation'](_0x1706f3);break;case _0x15b5('0x48'):case _0x15b5('0x15'):case _0x15b5('0x2d'):this['_handleMoveOperation'](_0x1706f3);break;case'merge':this[_0x15b5('0x2b')](_0x1706f3);break;case _0x15b5('0x6e'):this['_handleSplitOperation'](_0x1706f3);break;case _0x15b5('0x3a'):this[_0x15b5('0xcd')](_0x1706f3);}}[_0x15b5('0x83')](_0x25e3c8,_0x5cba5c){const _0x473529=_0x25e3c8[_0x15b5('0x8')]();return _0x473529[_0x15b5('0xe3')]=_0x25e3c8['_authorId'],this[_0x15b5('0xd3')](_0x473529,_0x5cba5c),_0x473529;}[_0x15b5('0x14')](_0x4eedec){return _0x4eedec[_0x15b5('0xe1')](_0x525370=>{const _0x144f00=this[_0x15b5('0xb8')](_0x525370);return Number(_0x525370[_0x15b5('0xe8')][_0x15b5('0x1c')](_0x144f00));});}[_0x15b5('0x73')](_0x497492,_0x354530){if(_0x497492['is'](_0x15b5('0xaf'),'$text'))_0x354530[_0x15b5('0xc6')]({'item':_0x497492,'type':_0x15b5('0x5b')});else{_0x497492['is'](_0x15b5('0xaf'))&&_0x354530[_0x15b5('0xc6')]({'item':_0x497492,'type':_0x15b5('0xc1')});for(const _0x59b557 of _0x497492[_0x15b5('0xe9')]())this[_0x15b5('0x73')](_0x59b557,_0x354530);_0x497492['is'](_0x15b5('0xaf'))&&_0x354530['push']({'item':_0x497492,'type':_0x15b5('0xc3')});}return _0x354530;}[_0x15b5('0xfd')](){const _0x1901aa=new Map(this[_0x15b5('0x6f')]),_0x5d1b50=new Map(_0x1901aa),_0xd8a846=new Map(),_0x1bdc41={'insertions':{},'deletions':{}},_0x1815c8={'insertions':{},'deletions':{}},_0x4f0072=new Map(),_0x413111=new Set([...this['_baseRoots'][_0x15b5('0x9a')](),...this[_0x15b5('0xc')]['keys']()]);_0x413111[_0x15b5('0x60')](_0x15b5('0xe7'));for(const _0x243871 of _0x413111){const _0xde39db=this[_0x15b5('0xc')][_0x15b5('0x96')](_0x243871)||G(_0x243871,!0x1),_0x3af079=this['_baseRoots'][_0x15b5('0x96')](_0x243871)||G(_0x243871,!0x1);_0xde39db[_0x15b5('0x102')]()||_0x3af079['isAttached']()?(_0x1bdc41['insertions'][_0x243871]=q(_0xde39db),_0x1bdc41['deletions'][_0x243871]=q(_0x3af079),this[_0x15b5('0x4e')](_0x1bdc41[_0x15b5('0xbd')][_0x243871],_0x3af079),this[_0x15b5('0x4e')](_0x1bdc41[_0x15b5('0x1')][_0x243871],_0xde39db),_0x1815c8[_0x15b5('0x1')][_0x243871]=this[_0x15b5('0x73')](this[_0x15b5('0x93')][_0x15b5('0x96')](_0x243871),[]),_0x1815c8[_0x15b5('0xbd')][_0x243871]=this['_generateTape'](this[_0x15b5('0x59')][_0x15b5('0x96')](_0x243871)||G(_0x243871,!0x1),[])):_0x413111[_0x15b5('0x60')](_0x243871);}for(const _0xde9678 of _0x413111){const _0x406781=_0x1815c8[_0x15b5('0x1')][_0xde9678];for(const _0x405bea of _0x406781){const _0x18a4cc=this[_0x15b5('0xb8')](_0x405bea),_0xd64717=_0x405bea[_0x15b5('0xe8')]['getAttribute'](_0x18a4cc);_0x5d1b50['delete'](_0xd64717),_0xd64717>=this[_0x15b5('0xae')]&&_0xd8a846[_0x15b5('0x80')](_0xd64717,_0x1901aa['get'](_0xd64717));}}for(const _0x3dce16 of _0x413111){const _0x14cc0a=_0x1815c8[_0x15b5('0x1')][_0x3dce16],_0x5e1529=this[_0x15b5('0x14')](_0x1815c8[_0x15b5('0xbd')][_0x3dce16]);let _0x44c29a=0x0;for(const _0x143700 of _0x14cc0a){const _0x5e078f=this['_getVidAttributeName'](_0x143700),_0x350452=_0x143700[_0x15b5('0xe8')][_0x15b5('0x1c')](_0x5e078f);if(!_0xd8a846['has'](_0x350452)&&!_0x4f0072[_0x15b5('0x99')](_0x350452)){if(_0x5d1b50[_0x15b5('0x99')](_0x350452))_0x44c29a++;else{if(_0x350452!=_0x5e1529[_0x44c29a]){const _0x1cc633=_0x1901aa[_0x15b5('0x96')](_0x350452)||_0x1901aa[_0x15b5('0x96')](_0x5e1529[_0x44c29a]);for(;_0x350452!=_0x5e1529[_0x44c29a];)_0x5d1b50['has'](_0x5e1529[_0x44c29a])||(_0x4f0072['set'](_0x5e1529[_0x44c29a],_0x1cc633),_0x1901aa['set'](_0x5e1529[_0x44c29a],_0x1cc633)),_0x44c29a++;}_0x44c29a++;}}}}for(const _0x4909c9 of _0x413111){const _0x1ab90a=_0x1815c8['insertions'][_0x4909c9];for(const _0x1c872a of _0x1ab90a){const _0xb323de=this['_getVidAttributeName'](_0x1c872a),_0x851593=_0x1c872a['item']['getAttribute'](_0xb323de);if(_0x4f0072[_0x15b5('0x99')](_0x851593)){const _0x4b63ce=_0x4f0072[_0x15b5('0x96')](_0x851593);_0x5d1b50['has'](_0x851593)||_0x5d1b50[_0x15b5('0x80')](_0x851593,{..._0x4b63ce}),_0xd8a846[_0x15b5('0x80')](_0x851593,{..._0x4b63ce});}}}for(const _0x2c4931 of _0x5d1b50[_0x15b5('0x9a')]())_0x2c4931>=this[_0x15b5('0xae')]&&_0x5d1b50[_0x15b5('0x60')](_0x2c4931);const _0x2c29e4=new Map();for(const _0x5c33e1 of _0x413111){let _0x407bdf=_0x1815c8[_0x15b5('0x1')][_0x5c33e1];for(const _0xae360d of _0x407bdf)if(_0xae360d['item']['is'](_0x15b5('0xaf'),_0x15b5('0xad'))){const _0x33102d=this[_0x15b5('0xb8')](_0xae360d),_0x1ab2ca=_0xae360d[_0x15b5('0xe8')][_0x15b5('0x1c')](_0x33102d);if(_0xd8a846[_0x15b5('0x99')](_0x1ab2ca)){const _0x111d45=_0xae360d[_0x15b5('0xe8')][_0x15b5('0xea')][_0x15b5('0xea')][_0x15b5('0x1c')]('vid_start'),_0xb737da=_0x2c29e4[_0x15b5('0x96')](_0x111d45)||new Set();_0xb737da[_0x15b5('0x70')](_0xd8a846[_0x15b5('0x96')](_0x1ab2ca)['userId']),_0x2c29e4[_0x15b5('0x80')](_0x111d45,_0xb737da);}}_0x407bdf=_0x1815c8[_0x15b5('0xbd')][_0x5c33e1];for(const _0x40ba8f of _0x407bdf)if(_0x40ba8f[_0x15b5('0xe8')]['is'](_0x15b5('0xaf'),_0x15b5('0xad'))){const _0x589971=this[_0x15b5('0xb8')](_0x40ba8f),_0x267c66=_0x40ba8f[_0x15b5('0xe8')][_0x15b5('0x1c')](_0x589971);if(_0x5d1b50['has'](_0x267c66)){const _0x78b8fb=_0x40ba8f[_0x15b5('0xe8')][_0x15b5('0xea')]['parent'][_0x15b5('0x1c')](_0x15b5('0xc8')),_0x5545a3=_0x2c29e4[_0x15b5('0x96')](_0x78b8fb)||new Set();_0x5545a3['add'](_0x5d1b50[_0x15b5('0x96')](_0x267c66)[_0x15b5('0x8c')]),_0x2c29e4[_0x15b5('0x80')](_0x78b8fb,_0x5545a3);}}for(const _0x3c5206 of _0x2c29e4[_0x15b5('0x9a')]())(_0xd8a846[_0x15b5('0x99')](_0x3c5206)||_0x5d1b50[_0x15b5('0x99')](_0x3c5206))&&_0x2c29e4[_0x15b5('0x60')](_0x3c5206);}for(const _0x4d855a of _0x413111){const _0x2a4264=_0x1815c8[_0x15b5('0x1')][_0x4d855a];let _0xfb7a80=null,_0x500c7b=null;for(const _0x37d134 of _0x2a4264){const _0xb179e5=this[_0x15b5('0xb8')](_0x37d134),_0x3ed84f=_0x37d134[_0x15b5('0xe8')][_0x15b5('0x1c')](_0xb179e5),_0x3b6952=_0x2c29e4[_0x15b5('0x96')](_0x3ed84f);_0x3b6952&&'elementStart'==_0x37d134[_0x15b5('0xf1')]&&(_0xfb7a80=Array['from'](_0x3b6952)[0x0],_0x500c7b=_0x37d134[_0x15b5('0xe8')][_0x15b5('0x1c')](_0x15b5('0x53'))),_0xfb7a80&&(_0x5d1b50[_0x15b5('0x80')](_0x3ed84f,{'userId':_0xfb7a80}),_0xd8a846['set'](_0x3ed84f,{'userId':_0xfb7a80})),_0x3ed84f==_0x500c7b&&(_0xfb7a80=null,_0x500c7b=null);}}const _0x5b9b09={},_0x4c733=new Set();for(const _0x90a74 of _0x413111){const _0x52c041=_0x1bdc41['deletions'][_0x90a74],_0x5118db=_0x1bdc41[_0x15b5('0x1')][_0x90a74];for(const {userId:_0x49eb65}of this['_touchedMarkers']['values']())null!==_0x49eb65&&_0x4c733['add'](_0x49eb65);for(const {userId:_0x337f67}of this['_touchedRoots'][_0x15b5('0x7e')]())null!==_0x337f67&&_0x4c733[_0x15b5('0x70')](_0x337f67);this[_0x15b5('0x1d')](_0x5118db,_0x1815c8[_0x15b5('0x1')][_0x90a74],_0xd8a846,_0x15b5('0xff'),_0x4c733),this['_markChanges'](_0x52c041,_0x1815c8[_0x15b5('0xbd')][_0x90a74],_0x5d1b50,_0x15b5('0x6b'),_0x4c733),_0x5b9b09[_0x90a74]={'insertions':this[_0x15b5('0xba')](_0x5118db),'deletions':this[_0x15b5('0xba')](_0x52c041),'attachChange':this['_touchedRoots'][_0x15b5('0x96')](_0x90a74)||null,'attributesBefore':_0x1f2f4d(this[_0x15b5('0x91')][_0x15b5('0x96')](_0x90a74))||{},'attributesAfter':_0x1f2f4d(this[_0x15b5('0xf8')][_0x15b5('0x96')](_0x90a74))};}return{'diffData':_0x5b9b09,'authorsIds':Array[_0x15b5('0x97')](_0x4c733)};}[_0x15b5('0x67')](_0x42f2d7){for(const [,_0x15687b]of _0x42f2d7['markers']){const _0x41d959=_0x15687b[_0x15b5('0xf3')][_0x15b5('0x41')]()[_0x15b5('0x44')](_0x20390d=>'tableCell'==_0x20390d['name']);for(const _0x56e78a of _0x41d959)0x1==_0x56e78a['childCount']&&_0x56e78a[_0x15b5('0x9c')](0x0)['is'](_0x15b5('0xaf'),_0x15b5('0x43'))&&_0x56e78a[_0x15b5('0x9c')](0x0)[_0x15b5('0xfb')](_0x15b5('0xbb'),!0x0);}}[_0x15b5('0xba')](_0x23fb4f){this['_processRootBeforeSave'](_0x23fb4f);const _0x1ed4fd=this[_0x15b5('0xb4')]['data'][_0x15b5('0x5')](_0x23fb4f,{}),_0x411197=Array[_0x15b5('0x97')](_0x1ed4fd[_0x15b5('0xe9')]())[_0x15b5('0xe1')](_0x2457e8=>this[_0x15b5('0x74')](_0x2457e8));return JSON[_0x15b5('0x55')](_0x411197);}[_0x15b5('0x74')](_0x5f0618){if(_0x5f0618['is']('$text'))return _0x5f0618[_0x15b5('0x51')];{const _0x4c8873=_0x5f0618;return{'type':Object[_0x15b5('0x9a')](B)[_0x15b5('0x100')](_0x473f26=>_0x5f0618 instanceof B[_0x473f26]),'name':_0x4c8873[_0x15b5('0x56')],'attributes':Array[_0x15b5('0x97')](_0x4c8873[_0x15b5('0x21')]()),'children':Array[_0x15b5('0x97')](_0x4c8873[_0x15b5('0xe9')]())[_0x15b5('0xe1')](_0x1e5691=>this[_0x15b5('0x74')](_0x1e5691))};}}[_0x15b5('0x1d')](_0x299072,_0x2b9169,_0x51fbb9,_0x1d149c,_0x4bedf9){let _0x4241b1=null,_0x1e8ecc=null,_0x5dd103=0x0;const _0x5a44a1=this[_0x15b5('0xb4')][_0x15b5('0xa5')];for(let _0x4e557f=0x0;_0x4e557f<_0x2b9169['length'];_0x4e557f++){const _0x4ec3e1=this['_getVidAttributeName'](_0x2b9169[_0x4e557f]),_0x1cc39f=_0x2b9169[_0x4e557f]['item'][_0x15b5('0x1c')](_0x4ec3e1),_0x4740db=_0x51fbb9['get'](_0x1cc39f),_0x3e3f21=_0x4e557f==_0x2b9169[_0x15b5('0xb9')]-0x1;(!_0x4241b1&&_0x4740db&&(_0x4241b1=_0x4740db,_0x1e8ecc=_0x2b9169[_0x4e557f]),_0x4241b1&&(!_0x4740db||_0x4740db['userId']!=_0x4241b1[_0x15b5('0x8c')]))&&(_0x4fdea4(_0x4740db,L(_0x1e8ecc,_0x299072,_0x5a44a1),L(_0x2b9169[_0x4e557f],_0x299072,_0x5a44a1)),_0x4241b1=_0x4740db||null,_0x1e8ecc=_0x4740db?_0x2b9169[_0x4e557f]:null),_0x4241b1&&_0x3e3f21&&_0x4fdea4(_0x4740db,L(_0x1e8ecc,_0x299072,_0x5a44a1),W(_0x2b9169[_0x4e557f],_0x299072,_0x5a44a1));}function _0x4fdea4(_0x5a1bf1,_0x2aedbe,_0x67a3b2){const _0x135a2f=_0x4241b1[_0x15b5('0x8c')],_0xc5be80=_0x15b5('0x81')+_0x1d149c+':'+_0x135a2f+':'+_0x5dd103++,_0x3abe97=_0x5a44a1[_0x15b5('0xd9')](_0x2aedbe,_0x67a3b2);_0x299072[_0x15b5('0x6a')][_0x15b5('0x80')](_0xc5be80,_0x3abe97),null!==_0x135a2f&&_0x4bedf9[_0x15b5('0x70')](_0x135a2f);}}[_0x15b5('0xb8')](_0x3ea3aa){switch(_0x3ea3aa[_0x15b5('0xf1')]){case _0x15b5('0xc1'):return _0x15b5('0xc8');case _0x15b5('0xc3'):return _0x15b5('0x53');default:return _0x15b5('0x1f');}}[_0x15b5('0xd3')](_0x443bf3,_0x5af4b7){_0x443bf3[_0x15b5('0x7b')]=null;for(const _0x32554b in _0x443bf3){const _0x84b3d5=_0x443bf3[_0x32554b];if(_0x84b3d5 instanceof _0x4d7909){const _0x438b51=_0x5af4b7['get'](_0x84b3d5[_0x15b5('0xa4')][_0x15b5('0x1e')]);_0x443bf3[_0x32554b]=this[_0x15b5('0xd7')](_0x84b3d5,_0x438b51);}if(_0x84b3d5 instanceof _0x124c67){const _0x2c321f=_0x5af4b7[_0x15b5('0x96')](_0x84b3d5[_0x15b5('0xa4')][_0x15b5('0x1e')]);_0x443bf3[_0x32554b]=this['_fixRange'](_0x84b3d5,_0x2c321f);}_0x15b5('0xa4')===_0x32554b&&(_0x443bf3[_0x15b5('0xa4')]=_0x5af4b7[_0x15b5('0x96')](_0x443bf3[_0x15b5('0xa4')][_0x15b5('0x1e')]));}}[_0x15b5('0xb2')](_0x808232,_0x58fba7){return this[_0x15b5('0xb4')][_0x15b5('0xa5')][_0x15b5('0xd9')](this[_0x15b5('0xd7')](_0x808232[_0x15b5('0xf3')],_0x58fba7),this['_fixPosition'](_0x808232[_0x15b5('0xef')],_0x58fba7));}[_0x15b5('0xd7')](_0x526f57,_0x1e66d1){return this[_0x15b5('0xb4')][_0x15b5('0xa5')][_0x15b5('0x103')](_0x1e66d1,_0x526f57['path'],_0x526f57[_0x15b5('0x31')]);}[_0x15b5('0xb3')](_0x32d082){const _0x349371=this[_0x15b5('0x93')][_0x15b5('0x96')](_0x32d082[_0x15b5('0x9f')]['root']['rootName']),_0x384aed=this[_0x15b5('0xd7')](_0x32d082[_0x15b5('0x9f')],_0x349371),_0x5d9cb5=null===_0x32d082[_0x15b5('0xe3')]?null:_0x32d082[_0x15b5('0xe3')]||this[_0x15b5('0xb4')]['plugins'][_0x15b5('0x96')]('Users')['me']['id'],_0x2313fc=_0x384aed['parent'],_0x59f69f=this[_0x15b5('0x13')],_0x294852=[];for(const _0x43c0e8 of _0x32d082[_0x15b5('0x9d')])if(_0x43c0e8['is'](_0x15b5('0xaf')))_0x294852['push'](this[_0x15b5('0xc2')](_0x43c0e8));else for(let _0x4110f4=0x0;_0x4110f4<_0x43c0e8[_0x15b5('0x95')];_0x4110f4++)_0x294852['push'](new _0x245fee('$text',{'vid':this['_revisionId']++}));const _0x4a5986=this[_0x15b5('0x13')];for(let _0x2e92fa=_0x59f69f;_0x2e92fa<_0x4a5986;_0x2e92fa++)this[_0x15b5('0x6f')]['set'](_0x2e92fa,{'userId':_0x5d9cb5});_0x2313fc[_0x15b5('0x62')](_0x384aed[_0x15b5('0xc7')],_0x294852);}[_0x15b5('0x1b')](_0x2b487f){(_0x2b487f=this[_0x15b5('0x83')](_0x2b487f,this[_0x15b5('0x93')]))[_0x15b5('0x28')]();const _0x303d76=null===_0x2b487f[_0x15b5('0xe3')]?null:_0x2b487f[_0x15b5('0xe3')]||this[_0x15b5('0xb4')][_0x15b5('0x50')][_0x15b5('0x96')](_0x15b5('0x71'))['me']['id'],_0x37d8ff=_0x2b487f[_0x15b5('0xcf')](),_0x5cd85c=_0x37d8ff['parent'],_0x37baf1=_0x37d8ff[_0x15b5('0xc7')];!function _0x142751(_0x5ad713,_0x17f179,_0x376917,_0x41aa45){for(let _0x450cf6=_0x376917;_0x450cf6<_0x41aa45;_0x450cf6++){const _0x236736=_0x17f179['getChild'](_0x450cf6);_0x236736['is'](_0x15b5('0xaf'),'$text')?_0x5ad713['set'](_0x236736[_0x15b5('0x1c')](_0x15b5('0x1f')),{'userId':_0x303d76}):(_0x5ad713['set'](_0x236736[_0x15b5('0x1c')](_0x15b5('0xc8')),{'userId':_0x303d76}),_0x142751(_0x5ad713,_0x236736,0x0,_0x236736[_0x15b5('0x7a')]),_0x5ad713[_0x15b5('0x80')](_0x236736[_0x15b5('0x1c')]('vid_end'),{'userId':_0x303d76}));}}(this[_0x15b5('0x6f')],_0x5cd85c,_0x37baf1,_0x37baf1+_0x2b487f[_0x15b5('0x37')]);}[_0x15b5('0x2b')](_0x3fc0e6){const _0x360beb=null===(_0x3fc0e6=this[_0x15b5('0x83')](_0x3fc0e6,this[_0x15b5('0x93')]))[_0x15b5('0xe3')]?null:_0x3fc0e6[_0x15b5('0xe3')]||this['editor'][_0x15b5('0x50')][_0x15b5('0x96')](_0x15b5('0x71'))['me']['id'],_0x2a1153=_0x3fc0e6[_0x15b5('0x6')][_0x15b5('0xea')],_0x40b172=_0x3fc0e6[_0x15b5('0xd8')][_0x15b5('0xea')],_0x4eedd2=_0x2a1153[_0x15b5('0x1c')](_0x15b5('0x53')),_0x3569f9=_0x40b172['getAttribute'](_0x15b5('0xc8'));_0x2a1153[_0x15b5('0xfb')](_0x15b5('0x53'),_0x40b172[_0x15b5('0x1c')]('vid_end')),_0x40b172[_0x15b5('0xfb')](_0x15b5('0x53'),_0x4eedd2),this['_touched'][_0x15b5('0x80')](_0x3569f9,{'userId':_0x360beb}),this[_0x15b5('0x6f')][_0x15b5('0x80')](_0x4eedd2,{'userId':_0x360beb}),_0x3fc0e6[_0x15b5('0x28')]();}['_handleSplitOperation'](_0x36092d){const _0x49af94=null===(_0x36092d=this[_0x15b5('0x83')](_0x36092d,this['_idsRoots']))['_authorId']?null:_0x36092d['_authorId']||this['editor']['plugins'][_0x15b5('0x96')](_0x15b5('0x71'))['me']['id'],_0x544f98=_0x36092d[_0x15b5('0x2a')],_0x552075=_0x36092d[_0x15b5('0xac')][_0x15b5('0xea')];_0x36092d[_0x15b5('0x28')]();const _0xb23e81=_0x552075[_0x15b5('0x1c')]('vid_end'),_0x33099b=_0x36092d[_0x15b5('0xec')]['nodeAfter'];if(_0x544f98){const _0x160666=_0x33099b[_0x15b5('0x1c')](_0x15b5('0x53')),_0x1a6323=_0x552075[_0x15b5('0x1c')](_0x15b5('0x53'));_0x552075[_0x15b5('0xfb')](_0x15b5('0x53'),_0x160666),_0x33099b[_0x15b5('0xfb')](_0x15b5('0x53'),_0x1a6323),this['_touched'][_0x15b5('0x80')](_0x552075[_0x15b5('0x1c')](_0x15b5('0x53')),{'userId':_0x49af94}),this[_0x15b5('0x6f')][_0x15b5('0x80')](_0x33099b['getAttribute'](_0x15b5('0xc8')),{'userId':_0x49af94});}else{const _0x317edb=this[_0x15b5('0x13')]++,_0x23649a=this[_0x15b5('0x13')]++;_0x552075['_setAttribute'](_0x15b5('0x53'),_0x317edb),_0x33099b['_setAttribute'](_0x15b5('0xc8'),_0x23649a),_0x33099b[_0x15b5('0xfb')](_0x15b5('0x53'),_0xb23e81),this[_0x15b5('0x6f')][_0x15b5('0x80')](_0x317edb,{'userId':_0x49af94}),this[_0x15b5('0x6f')][_0x15b5('0x80')](_0x23649a,{'userId':_0x49af94});}}[_0x15b5('0xcd')](_0xfdc581){if(!_0xfdc581[_0x15b5('0x11')])return;const _0x6bb08f=(_0xfdc581=this[_0x15b5('0x83')](_0xfdc581,this[_0x15b5('0xc')]))[_0x15b5('0x3f')]?_0xfdc581[_0x15b5('0x3f')][_0x15b5('0xa4')]:null,_0x2da6bf=_0xfdc581[_0x15b5('0xbc')]?_0xfdc581[_0x15b5('0xbc')][_0x15b5('0xa4')]:null;_0x6bb08f&&this[_0x15b5('0xc5')][_0x15b5('0x60')](_0xfdc581[_0x15b5('0x56')]),_0x2da6bf&&this[_0x15b5('0xc5')]['set'](_0xfdc581['name'],_0xfdc581['newRange']['clone']());const _0x3db0a3=null===_0xfdc581[_0x15b5('0xe3')]?null:_0xfdc581[_0x15b5('0xe3')]||this[_0x15b5('0xb4')][_0x15b5('0x50')][_0x15b5('0x96')](_0x15b5('0x71'))['me']['id'],_0x53b686=_0xfdc581[_0x15b5('0x56')];if(!this['_touchedMarkers']['has'](_0x53b686))return void this['_touchedMarkers']['set'](_0x53b686,{'range':_0xfdc581['oldRange'],'userId':_0x3db0a3});const _0x31433d=this[_0x15b5('0x86')][_0x15b5('0x96')](_0x53b686),_0x531a9f=_0x31433d[_0x15b5('0x98')],_0x1a979e=_0xfdc581[_0x15b5('0xbc')];null==_0x531a9f&&null==_0x1a979e||_0x531a9f&&_0x1a979e&&_0x531a9f['isEqual'](_0x1a979e)?this[_0x15b5('0x86')][_0x15b5('0x60')](_0xfdc581[_0x15b5('0x56')]):_0x31433d[_0x15b5('0x8c')]=_0x3db0a3;}['_handleRootOperation'](_0xe9a669,_0x5e54dd){this[_0x15b5('0xc')]['has'](_0xe9a669['rootName'])?this['_diffRoots']['get'](_0xe9a669[_0x15b5('0x1e')])[_0x15b5('0x5c')]=_0xe9a669[_0x15b5('0x4d')]:(this[_0x15b5('0xc')][_0x15b5('0x80')](_0xe9a669['rootName'],G(_0xe9a669['rootName'],!0x0)),this[_0x15b5('0xf8')][_0x15b5('0x80')](_0xe9a669['rootName'],{}),_0x5e54dd&&this['_idsRoots'][_0x15b5('0x80')](_0xe9a669['rootName'],G(_0xe9a669[_0x15b5('0x1e')],!0x0)));const _0x4aec60=null===_0xe9a669['_authorId']?null:_0xe9a669[_0x15b5('0xe3')]||this[_0x15b5('0xb4')][_0x15b5('0x50')][_0x15b5('0x96')](_0x15b5('0x71'))['me']['id'],_0x27dff7=this[_0x15b5('0xd1')]['get'](_0xe9a669['rootName']);_0x27dff7&&_0x27dff7[_0x15b5('0x8c')]===_0x4aec60?this['_touchedRoots'][_0x15b5('0x60')](_0xe9a669[_0x15b5('0x1e')]):this[_0x15b5('0xd1')]['set'](_0xe9a669['rootName'],{'userId':_0x4aec60,'isAttached':_0xe9a669['isAdd']});}[_0x15b5('0x72')](_0x3e6ab0){const _0x1f7628=this[_0x15b5('0xf8')][_0x15b5('0x96')](_0x3e6ab0[_0x15b5('0xa4')][_0x15b5('0x1e')]);null===_0x3e6ab0['newValue']?delete _0x1f7628[_0x3e6ab0[_0x15b5('0x30')]]:_0x1f7628[_0x3e6ab0['key']]=_0x3e6ab0[_0x15b5('0x8a')];}}function q(_0x52a893){const _0x196fb1=G(_0x52a893[_0x15b5('0x1e')],_0x52a893['isAttached']());for(const _0x1b948b of _0x52a893[_0x15b5('0xe9')]()){const _0x79394e=_0x1b948b['_clone'](!0x0);_0x196fb1['_appendChild'](_0x79394e);}return _0x196fb1;}function G(_0x1a6edd,_0xded91=!0x0){const _0x2739f9=new _0x254a89();return _0x2739f9[_0x15b5('0x1e')]=_0x1a6edd,_0x2739f9[_0x15b5('0x5c')]=_0xded91,_0x2739f9[_0x15b5('0x102')]=()=>_0x2739f9[_0x15b5('0x5c')],_0x2739f9;}function L(_0x35bc7b,_0x34da4b,_0x4c7c2d){const _0x2af587='elementEnd'==_0x35bc7b[_0x15b5('0xf1')]?_0x4c7c2d['createPositionAt'](_0x35bc7b['item'],_0x15b5('0xef')):_0x4c7c2d['createPositionBefore'](_0x35bc7b[_0x15b5('0xe8')]);return _0x4c7c2d['createPositionFromPath'](_0x34da4b,_0x2af587[_0x15b5('0xb6')],_0x2af587['stickiness']);}function W(_0x219860,_0x194e46,_0x273a57){const _0x2c52ad=_0x15b5('0xc1')==_0x219860['type']?_0x273a57[_0x15b5('0xda')](_0x219860[_0x15b5('0xe8')],0x0):_0x273a57[_0x15b5('0x64')](_0x219860['item']);return _0x273a57['createPositionFromPath'](_0x194e46,_0x2c52ad[_0x15b5('0xb6')],_0x2c52ad['stickiness']);}
23
+ const _0x2a5f=['Initial\x20revision','bind','values','upcast','filter','find','elementEnd','isReady','isAttached','_addPendingAction','has','reverse','define','createRevision','editor','revision-start','authors','_source','getRevisions','createPositionFromPath','Empty\x20document','newRange','_idsRoots','toVersion','addRevisionData','view','data','_touchedRoots','getRevision','editing','isAdd','elementStart','processor','_bufferedUpdates','length','requires','_makeModelFromViewString','vid_start','locale','push','_fixPosition','parent','conversion','keepParagraph','Users','_handleInsertOperation','insertion','stickiness','newValue','fromEntries','creatorId','_diffRootsAttributes','version','creator','childCount','remove','_processRootBeforeSave','then','oldRange','roots','getWalker','trim','config','fromVersion','sendBufferedUpdates','_baseIdsRoots','keys','document','position','getRootNames','vid','getData','_baseRoots','split','includes','revisionHistory.resumeUnsavedRevision','get','some','_initialRevisionId','howMany','getChildren','start','_getFromVersion','size','getAttribute','_pendingAction','_handleRootOperation','parse','marker','isEnabled','_handleOperation','insert','buildRevisionData','name','_lastTo','collaboration.channelId','move','getLatestVersion','getRoot','baseVersion','_insertChild','documentFragment','range','getIndex','_baseRootsAttributes','RevisionTracker','getNodeByPath','changeRootAttribute','createRangeIn','createPositionAt','_loadedStateData','_operations','sourcePosition','_setConversion','from','type','_execute','_startingRevisionId','_loadRevisionData','path','getAttributes','vid_end','clear','_clone','setRevisionData','detachRoot','toData','getOperation','add','_fixRange','_continueCurrentRevision','repository','_cloneOperation','markerToData','_markChanges','init','children','dataToMarker','_lastFrom','offset','tableCell','string','loadState','reinsert','_handleSplitOperation','userId','hasContent','_revisionDataBuilder','getTransformedByOperation','_loadState','_getBaseVids','revision','data-revision-','_generateTape','updateRevisions','_reset','marked','stringify','markers','_setAttribute','initial','offsetSize','startsWith','RevisionsRepository','delete','revision:','source','_removeRevisionMarkers','history','set','_bufferUpdate','attributes','slice','_startingVersion','targetPosition','attachChange','authorsIds','getCurrentRevisionId','_calculateMetaData','_handleRootAttributeOperation','initialData','addRevision','attributesAfter','getUser','_update','createRange','_prepareViewToSave','_getViewJson','_makeRevision','setSource','map','$text','pluginName','item','getRevisionRootsAttributes','_handleMarkerOperation','diffData','_touched','_copyMarkers','_savedMetaData','resolve','_saveMetaData','NEGATIVE_INFINITY','getOperations','attributesBefore','key','_handleMoveOperation','graveyardPosition','deletion','previousPosition','adapter','_isAttached','$graveyard','_markers','_diffRoots','_makeIdsRoot','getRevisionDocumentData','reInit','_appendChild','createPositionAfter','nodeAfter','insertions','useFillerType','deletions','_applyOperations','clone','_handleMergeOperation','_removePendingAction','getMovedRangeStart','getRange','_getState','affectsData','toModel','_isPendingUpdate','root','_revisionId','rootName','paragraph','model','_createCurrentRevision','_findInsertionIndex','RealTimeCollaborationClient','isEqual','_fixOperation','saveRevision','sort','insertionPosition','_createInitialRevision','_removeMetaData','_touchedMarkers','rootsAttributes','createdAt','getTime','max','end','_authorId','_transformMarkers','_getVidAttributeName','getChild','plugins','element','PendingActions','_getPreviousFrom','currentRevision'];(function(_0x9ec97f,_0x2a5f47){const _0x278f5f=function(_0x37bf9a){while(--_0x37bf9a){_0x9ec97f['push'](_0x9ec97f['shift']());}};_0x278f5f(++_0x2a5f47);}(_0x2a5f,0x8d));const _0x278f=function(_0x9ec97f,_0x2a5f47){_0x9ec97f=_0x9ec97f-0x0;let _0x278f5f=_0x2a5f[_0x9ec97f];return _0x278f5f;};import{Users as _0xfe55ab}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0xa4b1dc,PendingActions as _0x421ffa}from'ckeditor5/src/core';import{logWarning as _0x30e08f,uid as _0x5e4a78}from'ckeditor5/src/utils';import{Position as _0x31ab12,Range as _0x1c53ff,Element as _0x56b0b7,DocumentFragment as _0x5ab8b3,ViewText as _0x8bc594,ViewElement as _0x4bbc5f,ViewContainerElement as _0x4fe476,ViewAttributeElement as _0x437cc4,ViewEmptyElement as _0x114adc,ViewRawElement as _0x392a89,ViewUIElement as _0x2c767d,ViewDocumentFragment as _0x4b065d}from'ckeditor5/src/engine';import _0x11361b from'./revisionsrepository';import{getTranslation as _0x527825}from'./utils/common-translations';import{cloneDeep as _0x297498,isEqual as _0x45c1da}from'lodash-es';const B={'c':_0x4fe476,'a':_0x437cc4,'e':_0x114adc,'r':_0x392a89,'u':_0x2c767d};export default class l extends _0xa4b1dc{static get[_0x278f('0x33')](){return _0x278f('0xe4');}static get[_0x278f('0x9e')](){return[_0xfe55ab,_0x11361b,_0x421ffa];}constructor(_0x2db9ec){super(_0x2db9ec),this[_0x278f('0x45')]=null,this['currentRevision']=null,this['_revisionDataBuilder']=new H(this['editor']),this[_0x278f('0xc9')]=this[_0x278f('0x89')][_0x278f('0xb9')][_0x278f('0xc7')]('collaboration.channelId')||_0x278f('0x13'),this[_0x278f('0x9c')]=new Map(),this[_0x278f('0xe9')]=null;const _0x300689=_0x5e4a78();this[_0x278f('0x8c')]={'history':this[_0x278f('0x89')][_0x278f('0x61')][_0x278f('0xbe')]['history'],'getLatestVersion':()=>Promise[_0x278f('0x3b')](this[_0x278f('0x89')][_0x278f('0x61')][_0x278f('0xbe')][_0x278f('0xaf')]),'getCurrentRevisionId':()=>_0x300689},this[_0x278f('0x1c')](_0x278f('0x82'),!0x1),this['set'](_0x278f('0xd4'),!0x0),this['set'](_0x278f('0x5c'),!0x1),this[_0x278f('0x89')][_0x278f('0xb9')][_0x278f('0x87')](_0x278f('0xc6'),!0x0),this[_0x278f('0x89')][_0x278f('0xa5')]['for'](_0x278f('0x7e'))[_0x278f('0x104')]({'view':_0x278f('0xa')});}[_0x278f('0x102')](){this[_0x278f('0xfe')]=this[_0x278f('0x89')][_0x278f('0x76')][_0x278f('0xc7')](_0x278f('0x16')),this[_0x278f('0xec')](),this[_0x278f('0x89')][_0x278f('0x95')]['on']('ready',()=>{const _0xb0bd55=this[_0x278f('0xfe')][_0x278f('0x97')](0x0),_0x5a16b3=_0xb0bd55&&null===_0xb0bd55['creator']?_0xb0bd55:null;if(this['_continueCurrentRevision']=!!_0x5a16b3&&this['editor'][_0x278f('0xb9')]['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins'][_0x278f('0x85')](_0x278f('0x64'))){const _0x3f4a62=this['_source']['getCurrentRevisionId'](),_0x59f814=this['repository'][_0x278f('0x97')](_0x3f4a62);if(_0x59f814)this[_0x278f('0x20')]=_0x59f814[_0x278f('0xba')],this[_0x278f('0xfd')]=!0x1;else{const _0x446bd0=this[_0x278f('0x8c')]['history'][_0x278f('0xea')]['find'](_0x48e8f9=>!_0x48e8f9['_isInit']),_0x485764=_0x446bd0?_0x446bd0[_0x278f('0xde')]:this[_0x278f('0x8c')]['history']['version'];_0xb0bd55?(_0xb0bd55[_0x278f('0x92')]<_0x485764&&_0xb0bd55['_update']({'toVersion':_0x485764}),this['_continueCurrentRevision']?(this[_0x278f('0x8c')][_0x278f('0x24')]=()=>_0x5a16b3['id'],this['_startingVersion']=_0x5a16b3[_0x278f('0xba')]):(this[_0x278f('0x20')]=_0xb0bd55[_0x278f('0x92')],this[_0x278f('0xfd')]=!0x1)):(this[_0x278f('0x20')]=_0x485764,this[_0x278f('0xfd')]=!0x1);}}else _0x5a16b3&&(this[_0x278f('0x89')][_0x278f('0x61')][_0x278f('0xbe')]['history'][_0x278f('0xaf')]=Math[_0x278f('0x70')](_0x5a16b3[_0x278f('0x92')],this[_0x278f('0x89')]['model'][_0x278f('0xbe')][_0x278f('0x1b')]['version']),_0x5a16b3[_0x278f('0xba')]===_0x5a16b3[_0x278f('0x92')]?(0x0!==_0x5a16b3['fromVersion']&&(this[_0x278f('0x8c')][_0x278f('0x24')]=()=>_0x5a16b3['id']),this['_continueCurrentRevision']=!0x1):this[_0x278f('0xfd')]&&(this[_0x278f('0x8c')][_0x278f('0x24')]=()=>_0x5a16b3['id'],this['_startingVersion']=_0x5a16b3['fromVersion'])),this[_0x278f('0xfd')]||(this[_0x278f('0x20')]=this[_0x278f('0x89')][_0x278f('0x61')]['document']['version']);this[_0x278f('0x6')][_0x278f('0x102')](this[_0x278f('0x8c')]['history']),this[_0x278f('0x6a')](this[_0x278f('0x20')]),this['_createCurrentRevision'](this['_startingVersion']),this[_0x278f('0x45')]&&this['sendBufferedUpdates']();}),this[_0x278f('0x7c')](_0x278f('0x82'))['to'](this,'_isPendingUpdate',_0x5695af=>!_0x5695af);}async['afterInit'](){if(this[_0x278f('0xfe')][_0x278f('0x9d')]>0x0){const _0x5f2a71=this[_0x278f('0xfe')]['getRevision'](0x0),_0x38d774=await this['getRevisionDocumentData'](_0x5f2a71),_0x528955=await this[_0x278f('0x35')](_0x5f2a71);this['_replaceEditorDataWithRevisionData'](_0x38d774,_0x528955);}}[_0x278f('0x30')](_0x1bc134){this[_0x278f('0x8c')]=_0x1bc134;}async['update'](){const _0x3573e4=await this[_0x278f('0x8c')][_0x278f('0xdc')]();if(_0x3573e4>this[_0x278f('0x7a')][_0x278f('0x92')]){await this['_loadState']();const _0x47b504=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x3573e4});_0x47b504[_0x278f('0x8b')]=_0x47b504[_0x278f('0x23')][_0x278f('0x31')](_0x3763cd=>this[_0x278f('0x89')][_0x278f('0x76')][_0x278f('0xc7')](_0x278f('0xa7'))['getUser'](_0x3763cd)),this[_0x278f('0x7a')][_0x278f('0x2b')](_0x47b504);}}async['_loadState'](){this[_0x278f('0xfd')]&&!this[_0x278f('0xe9')]&&(await this[_0x278f('0xf1')](this[_0x278f('0x7a')]),this[_0x278f('0x6')][_0x278f('0x1')](this['currentRevision']),this['_loadedStateData']={'fromVersion':this[_0x278f('0x7a')][_0x278f('0xba')],'authors':this[_0x278f('0x7a')][_0x278f('0x8b')]['slice']()});}async[_0x278f('0x67')](_0x3397b5={},_0x566eea=null){const _0x4182f3=[];await this[_0x278f('0x8')](),this[_0x278f('0xfd')]=!0x1,_0x566eea>this['currentRevision'][_0x278f('0x92')]&&(_0x566eea=null),null===_0x566eea&&(_0x566eea=await this[_0x278f('0x8c')]['getLatestVersion']());const _0x55f8c3=this[_0x278f('0xcd')](_0x566eea),_0x24df04=this[_0x278f('0xd7')]({'from':_0x55f8c3,'to':_0x566eea});if(this[_0x278f('0x7a')][_0x278f('0x92')]<_0x566eea){const _0x35d212=this[_0x278f('0xd7')]({'revision':this[_0x278f('0x7a')],'from':_0x566eea,'to':_0x566eea});_0x35d212[_0x278f('0x8b')]=[],_0x35d212[_0x278f('0x23')]=[],_0x35d212['id']=this[_0x278f('0x7a')]['id'],this['currentRevision'][_0x278f('0x2b')](_0x35d212,!0x0),delete _0x35d212['authors'],_0x4182f3[_0x278f('0xa2')](_0x35d212);}_0x3397b5[_0x278f('0xad')]=this[_0x278f('0x89')][_0x278f('0x76')]['get'](_0x278f('0xa7'))['me']['id'],_0x3397b5[_0x278f('0xd8')]=_0x3397b5[_0x278f('0xd8')]||null,_0x3397b5['id']=_0x3397b5['id']||_0x5e4a78(),_0x3397b5={..._0x3397b5,..._0x24df04};const _0x5e42e5=this[_0x278f('0x93')](_0x3397b5);_0x4182f3[_0x278f('0xa2')](_0x3397b5);const _0x416fd6=this[_0x278f('0xfe')][_0x278f('0xe2')](_0x5e42e5);if(0x0!==_0x416fd6){const _0x164fc4=this[_0x278f('0xfe')][_0x278f('0x97')](_0x416fd6-0x1);if(_0x164fc4['fromVersion']!==_0x566eea){const _0x109e3e=this['_revisionDataBuilder'][_0x278f('0xc2')](_0x566eea,_0x164fc4[_0x278f('0x92')]),_0x495a13={'id':_0x164fc4['id'],'diffData':_0x109e3e[_0x278f('0x37')],'authorsIds':_0x109e3e[_0x278f('0x23')],'authors':_0x109e3e['authorsIds']['map'](_0x38387a=>this[_0x278f('0x89')]['plugins']['get'](_0x278f('0xa7'))[_0x278f('0x2a')](_0x38387a)),'fromVersion':_0x566eea};_0x164fc4===this[_0x278f('0x7a')]&&(_0x495a13[_0x278f('0x6e')]=new Date(_0x3397b5['createdAt'][_0x278f('0x6f')]()+0xa)),_0x164fc4[_0x278f('0x2b')](_0x495a13,!0x0),delete _0x495a13['authors'],_0x4182f3[_0x278f('0xa2')](_0x495a13);}}if(this[_0x278f('0x45')]){for(const _0x3f78d1 of _0x4182f3)this['_bufferUpdate'](_0x3f78d1['id'],_0x3f78d1,!0x0);this[_0x278f('0xbb')]();}return _0x5e42e5;}[_0x278f('0x93')](_0x9b8cc5){const _0x2800aa=this[_0x278f('0xfe')][_0x278f('0x88')](_0x9b8cc5);return this[_0x278f('0x45')]&&_0x2800aa['on']('_update',(_0x3820da,_0x32b3b4,_0x35efac)=>{_0x35efac||(this[_0x278f('0x1d')](_0x32b3b4['id'],_0x32b3b4,!0x0),this[_0x278f('0xbb')]());}),this[_0x278f('0xfe')][_0x278f('0x28')](_0x2800aa,this[_0x278f('0x63')](_0x2800aa)),_0x2800aa;}async[_0x278f('0x4b')](_0x412c4c){await this[_0x278f('0xf1')](_0x412c4c);const _0x4b41db={};for(const _0x4871eb in _0x412c4c[_0x278f('0x37')]){if(_0x412c4c[_0x278f('0x37')][_0x4871eb]['attachChange']&&!_0x412c4c[_0x278f('0x37')][_0x4871eb][_0x278f('0x22')]['isAttached'])continue;const _0x406171=this[_0x278f('0x1a')](JSON['parse'](_0x412c4c['diffData'][_0x4871eb][_0x278f('0x50')])),_0x3e84b0=this[_0x278f('0x89')][_0x278f('0x98')][_0x278f('0x94')]['document'],_0x2e4216=new _0x4b065d(_0x3e84b0,_0x406171[_0x278f('0x31')](_0x3ebfcc=>J(_0x3ebfcc,this['editor'])));this['editor'][_0x278f('0x95')][_0x278f('0x9b')][_0x278f('0x51')](_0x278f('0xf')),_0x4b41db[_0x4871eb]=this[_0x278f('0x89')][_0x278f('0x95')][_0x278f('0x9b')][_0x278f('0xf9')](_0x2e4216),this[_0x278f('0x89')][_0x278f('0x95')][_0x278f('0x9b')][_0x278f('0x51')]('default');}return _0x4b41db;}async[_0x278f('0x35')](_0xf921fe){await this[_0x278f('0xf1')](_0xf921fe);const _0x3a6156={};for(const _0x51c9e6 in _0xf921fe[_0x278f('0x37')])_0xf921fe[_0x278f('0x37')][_0x51c9e6][_0x278f('0x22')]&&!_0xf921fe['diffData'][_0x51c9e6]['attachChange'][_0x278f('0x83')]||(_0x3a6156[_0x51c9e6]=_0xf921fe['diffData'][_0x51c9e6][_0x278f('0x29')]||{});return _0x3a6156;}['sendBufferedUpdates'](){if(0x0===this[_0x278f('0x9c')][_0x278f('0xce')])return;if(this['_isPendingUpdate'])return;let _0x58b8b2=Array['from'](this[_0x278f('0x9c')][_0x278f('0x7d')]());this['_bufferedUpdates'][_0x278f('0xf5')]();for(let _0x3eaa4c=0x0;_0x3eaa4c<_0x58b8b2['length'];_0x3eaa4c++){const _0x2de5da=_0x58b8b2[_0x3eaa4c];let _0x38bccc=!0x1;for(const _0x3355d3 of Object[_0x278f('0xbd')](_0x2de5da))void 0x0===_0x2de5da[_0x3355d3]?delete _0x2de5da[_0x3355d3]:'id'!==_0x3355d3&&(_0x38bccc=!0x0);_0x38bccc||(_0x58b8b2[_0x3eaa4c]=null);}if(_0x58b8b2=_0x58b8b2['filter'](_0x357b25=>null!==_0x357b25),!_0x58b8b2[_0x278f('0x9d')])return;for(let _0x4dbb98=0x0;_0x4dbb98<_0x58b8b2[_0x278f('0x9d')];_0x4dbb98++){const _0x2b0e18=_0x58b8b2[_0x4dbb98];void 0x0!==_0x2b0e18[_0x278f('0xba')]&&void 0x0===_0x2b0e18[_0x278f('0x92')]&&(_0x2b0e18[_0x278f('0x92')]=this[_0x278f('0xfe')][_0x278f('0x97')](_0x2b0e18['id'])[_0x278f('0x92')]),void 0x0!==_0x2b0e18[_0x278f('0x92')]&&void 0x0===_0x2b0e18['fromVersion']&&(_0x2b0e18[_0x278f('0xba')]=this[_0x278f('0xfe')][_0x278f('0x97')](_0x2b0e18['id'])[_0x278f('0xba')]);}const _0x25b2c3=this[_0x278f('0x89')]['config']['get'](_0x278f('0xda'));this[_0x278f('0x5c')]=!0x0,this[_0x278f('0x84')](),this[_0x278f('0x45')][_0x278f('0xd')](_0x58b8b2,_0x25b2c3)['finally'](()=>{this[_0x278f('0x5c')]=!0x1;})[_0x278f('0xb4')](_0x467c91=>{if(_0x467c91)for(const _0x104aad of _0x467c91)this[_0x278f('0xf7')]({'id':_0x104aad['id'],'createdAt':_0x104aad['createdAt']});this[_0x278f('0x56')](),this[_0x278f('0xbb')]();});}['_replaceEditorDataWithRevisionData'](_0x1845ec,_0x27faf4){let _0x34ed12=this[_0x278f('0x89')][_0x278f('0xb9')][_0x278f('0xc7')](_0x278f('0x27')),_0x554c3f=this[_0x278f('0x89')][_0x278f('0xb9')][_0x278f('0xc7')]('rootsAttributes');if(void 0x0===_0x34ed12){_0x34ed12={};for(const _0x59d3d4 of this['editor'][_0x278f('0x61')][_0x278f('0xbe')][_0x278f('0xc0')]())_0x34ed12[_0x59d3d4]='';}if('string'==typeof _0x34ed12&&(_0x34ed12={'main':_0x34ed12}),void 0x0===_0x554c3f){_0x554c3f={};for(const _0x522155 of this[_0x278f('0x89')][_0x278f('0x61')][_0x278f('0xbe')][_0x278f('0xc0')]())_0x554c3f[_0x522155]={};}let _0x567e5c=!0x1;const _0x3eaed6=Object['keys'](_0x34ed12),_0x33caf2=Object[_0x278f('0xbd')](_0x1845ec);for(const _0x4b8bce of _0x3eaed6){if(_0x34ed12[_0x4b8bce]!==_0x1845ec[_0x4b8bce]&&''!==_0x34ed12[_0x4b8bce][_0x278f('0xb8')]()){_0x567e5c=!0x0;break;}if(!_0x45c1da(_0x554c3f[_0x4b8bce],_0x27faf4[_0x4b8bce])&&Object[_0x278f('0xbd')](_0x554c3f[_0x4b8bce])['length']>0x0){_0x567e5c=!0x0;break;}}_0x567e5c||(_0x567e5c=_0x33caf2[_0x278f('0xc8')](_0x44c9b5=>!this['editor']['model'][_0x278f('0xbe')][_0x278f('0xdd')](_0x44c9b5))),_0x567e5c&&_0x30e08f('editor-initial-data-replaced-with-revision-data',{'editorData':_0x34ed12,'editorRootsAttributes':_0x554c3f,'revisionData':_0x1845ec,'revisionRootsAttributes':_0x27faf4}),this['editor'][_0x278f('0xb9')][_0x278f('0x1c')](_0x278f('0x27'),_0x1845ec),this[_0x278f('0x89')]['config'][_0x278f('0x1c')](_0x278f('0x6d'),_0x27faf4);}[_0x278f('0x84')](){if(!this[_0x278f('0xd0')]){const _0x3a8f8f=this['editor']['plugins'][_0x278f('0xc7')](_0x278f('0x78'));this[_0x278f('0xd0')]=_0x3a8f8f[_0x278f('0xfb')](_0x527825(this[_0x278f('0x89')]['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this[_0x278f('0xd0')]&&(this[_0x278f('0x89')][_0x278f('0x76')][_0x278f('0xc7')](_0x278f('0x78'))[_0x278f('0xb2')](this[_0x278f('0xd0')]),this[_0x278f('0xd0')]=null);}[_0x278f('0x63')](_0xd875d9){const _0x37913f=this[_0x278f('0xfe')][_0x278f('0x8d')]();_0x37913f[_0x278f('0x86')]();let _0x4c6570=0x0;for(;_0x4c6570<_0x37913f[_0x278f('0x9d')];){const _0x475d3e=_0x37913f[_0x4c6570];if(_0x475d3e===this['currentRevision']){_0x4c6570++;continue;}if(_0x475d3e['id']===this[_0x278f('0xc9')])break;const _0x181bf4=_0xd875d9[_0x278f('0x92')]-_0x475d3e['toVersion']||_0xd875d9[_0x278f('0xba')]-_0x475d3e[_0x278f('0xba')];if(_0x181bf4>0x0)break;if(_0x181bf4<0x0)_0x4c6570++;else{if(!_0xd875d9[_0x278f('0xb0')]&&_0x475d3e[_0x278f('0xb0')])break;if(_0x475d3e[_0x278f('0xb0')]||!_0xd875d9['creator']){if(_0xd875d9[_0x278f('0x6e')]>_0x475d3e[_0x278f('0x6e')])break;_0x4c6570++;}else _0x4c6570++;}}return _0x4c6570;}[_0x278f('0xf7')](_0x20582a){const _0x4e2cf2=this[_0x278f('0xfe')][_0x278f('0x97')](_0x20582a['id']);if(_0x20582a['createdAt']&&(_0x20582a[_0x278f('0x6e')]=new Date(_0x20582a['createdAt'])),_0x20582a[_0x278f('0x23')]){const _0x389bb2=this[_0x278f('0x89')]['plugins'][_0x278f('0xc7')](_0x278f('0xa7'));_0x20582a[_0x278f('0x8b')]=_0x20582a[_0x278f('0x23')]['map'](_0x13b428=>_0x389bb2[_0x278f('0x2a')](_0x13b428));}_0x4e2cf2[_0x278f('0x2b')](_0x20582a,!0x0);}[_0x278f('0xd7')]({revision:_0x7c02e3=null,from:_0x5de529=null,to:_0x406207=null}){_0x5de529=null!==_0x5de529?_0x5de529:_0x7c02e3[_0x278f('0xba')],_0x406207=null!==_0x406207?_0x406207:_0x7c02e3[_0x278f('0x92')];const _0x182021=this['_revisionDataBuilder'][_0x278f('0xc2')](_0x5de529,_0x406207),_0x187da3={'diffData':_0x182021[_0x278f('0x37')],'authorsIds':_0x182021['authorsIds'],'fromVersion':_0x5de529,'toVersion':_0x406207};if(!_0x7c02e3||_0x406207!==_0x7c02e3[_0x278f('0x92')]){const _0x47b8b9=_0x406207-0x1,_0xdf0acd=this[_0x278f('0x8c')][_0x278f('0x1b')][_0x278f('0xfa')](_0x47b8b9);_0x187da3['createdAt']=_0xdf0acd&&_0xdf0acd['createdAt']||new Date();}if(this[_0x278f('0xe9')]&&_0x5de529===this[_0x278f('0xe9')][_0x278f('0xba')])for(const _0x13f542 of this['_loadedStateData']['authors'])_0x187da3['authorsIds'][_0x278f('0xc5')](_0x13f542['id'])||_0x187da3[_0x278f('0x23')][_0x278f('0xa2')](_0x13f542['id']);return _0x187da3;}[_0x278f('0xf1')](_0x1bf749){if(!_0x1bf749||_0x1bf749[_0x278f('0x37')])return Promise[_0x278f('0x3b')]();{const _0x306a40=this[_0x278f('0x89')][_0x278f('0xb9')]['get'](_0x278f('0xda'));return this[_0x278f('0x45')][_0x278f('0x97')]({'channelId':_0x306a40,'revisionId':_0x1bf749['id']})[_0x278f('0xb4')](_0x2d90d2=>{_0x1bf749['diffData']=_0x2d90d2[_0x278f('0x37')];});}}['_bufferUpdate'](_0x422b88,_0x24e30e,_0x1d95bd){if(this['_bufferedUpdates']['has'](_0x422b88)){const _0x14cbd9=this[_0x278f('0x9c')][_0x278f('0xc7')](_0x422b88);_0x24e30e=_0x1d95bd?{..._0x14cbd9,..._0x24e30e}:{..._0x24e30e,..._0x14cbd9};}this[_0x278f('0x9c')]['set'](_0x422b88,_0x24e30e);}[_0x278f('0xcd')](_0x54d7aa){const _0x36954d=this[_0x278f('0xfe')][_0x278f('0x8d')]();_0x36954d['reverse'](),_0x36954d['shift']();const _0x3fc893=_0x36954d[_0x278f('0x80')](_0x236d2b=>_0x236d2b[_0x278f('0x92')]<=_0x54d7aa)[_0x278f('0x92')];return _0x3fc893<this['_startingVersion']?this[_0x278f('0x20')]:_0x3fc893;}['_createInitialRevision'](_0x16eaab){const _0x1430a4=this['repository']['getRevision'](this[_0x278f('0xfe')][_0x278f('0x9d')]-0x1);if(_0x1430a4)this['_initialRevisionId']=_0x1430a4['id'];else{const _0x3d85b1=!this[_0x278f('0x89')]['model'][_0x278f('0xbe')]['roots'][_0x278f('0x80')](_0x1461af=>this['editor']['model'][_0x278f('0x5')](_0x1461af)),_0x456834=this[_0x278f('0x89')]['plugins'][_0x278f('0xc7')](_0x278f('0xa7'))['me']['id'],_0x3dbc91=_0x527825(this[_0x278f('0x89')][_0x278f('0xa1')],_0x3d85b1?_0x278f('0x8f'):_0x278f('0x7b'));this[_0x278f('0x2f')]({'from':_0x16eaab,'to':_0x16eaab,'id':this[_0x278f('0xc9')],'name':_0x3dbc91,'creatorId':_0x456834});}}[_0x278f('0x62')](_0x69f025){const _0x53c72c=this[_0x278f('0x8c')][_0x278f('0x24')]();this[_0x278f('0x7a')]=this['repository']['getRevision'](_0x53c72c),this[_0x278f('0x7a')]||(this['currentRevision']=this[_0x278f('0x2f')]({'from':_0x69f025,'to':_0x69f025,'id':_0x53c72c,'name':'','creatorId':null}));}[_0x278f('0x2f')]({name:_0x28160c,from:_0x17acb9,to:_0x19d2d2,creatorId:_0x26cf76,id:_0x28c129}){const _0x5bcea3=this[_0x278f('0xd7')]({'from':_0x17acb9,'to':_0x19d2d2});_0x5bcea3['name']=_0x28160c,_0x5bcea3['creatorId']=_0x26cf76,_0x5bcea3['id']=_0x28c129;const _0x1693c3=this[_0x278f('0x93')](_0x5bcea3);return this[_0x278f('0x45')]&&this[_0x278f('0x1d')](_0x5bcea3['id'],_0x5bcea3,!0x0),_0x1693c3;}[_0x278f('0xec')](){this['editor'][_0x278f('0xa5')]['for']('dataDowncast')[_0x278f('0x100')]({'model':_0x278f('0xa')});}[_0x278f('0x1a')](_0x44366e){return(_0x44366e=_0x44366e[_0x278f('0x7f')](_0x254546=>!_0x254546[_0x278f('0xd8')]||_0x278f('0x8a')!==_0x254546[_0x278f('0xd8')]&&'revision-end'!==_0x254546[_0x278f('0xd8')]))['forEach'](_0x467e40=>{_0x278f('0x0')!=typeof _0x467e40&&(_0x467e40[_0x278f('0x103')]=this[_0x278f('0x1a')](_0x467e40[_0x278f('0x103')]),_0x467e40[_0x278f('0x1e')]=_0x467e40['attributes']['filter'](_0x10d471=>!_0x10d471[0x0]['startsWith'](_0x278f('0xb'))));}),_0x44366e;}}function J(_0x4d0967,_0x4da7bb){const _0x272104=_0x4da7bb['editing'][_0x278f('0x94')][_0x278f('0xbe')];if(_0x278f('0x0')==typeof _0x4d0967)return new _0x8bc594(_0x272104,_0x4d0967);{const _0x5180e7=_0x4d0967[_0x278f('0x103')]['map'](_0x1266df=>J(_0x1266df,_0x4da7bb));return new(B[_0x4d0967[(_0x278f('0xee'))]]||_0x4bbc5f)(_0x272104,_0x4d0967['name'],_0x4d0967[_0x278f('0x1e')],_0x5180e7);}}class H{constructor(_0x175e2c){this['editor']=_0x175e2c,this[_0x278f('0x3a')]=new Map(),this[_0x278f('0x105')]=-0x1,this['_lastTo']=-0x1,this[_0x278f('0x48')]=new Map(),this[_0x278f('0x49')]=new Map(),this[_0x278f('0xae')]=new Map(),this['_baseRoots']=new Map(),this[_0x278f('0xe3')]=new Map(),this[_0x278f('0x91')]=new Map(),this['_baseIdsRoots']=new Map(),this[_0x278f('0x38')]=new Map(),this[_0x278f('0x6c')]=new Map(),this[_0x278f('0x96')]=new Map(),this['_revisionId']=0x1;}['init'](_0x1d497e){this[_0x278f('0x19')]=_0x1d497e;const _0x560b8b=new Map(),_0x11b0d9=new Map(),_0x398776=this['editor'][_0x278f('0x61')][_0x278f('0xbe')][_0x278f('0xb6')][_0x278f('0x31')](_0xe62b8d=>_0xe62b8d['rootName']);for(const _0x578dae of _0x398776){const _0x2f954c=this[_0x278f('0x89')]['model'][_0x278f('0xbe')][_0x278f('0xdd')](_0x578dae),_0x174d17=q(_0x2f954c);_0x560b8b[_0x278f('0x1c')](_0x578dae,_0x174d17),_0x11b0d9[_0x278f('0x1c')](_0x578dae,Object[_0x278f('0xac')](_0x2f954c[_0x278f('0xf3')]()));}const _0x31e0a6=Array['from'](this['editor'][_0x278f('0x61')]['markers'])[_0x278f('0x31')](_0x56de5c=>[_0x56de5c[_0x278f('0xd8')],_0x56de5c[_0x278f('0x58')]()]),_0x520f03=this[_0x278f('0x19')][_0x278f('0xaf')];this[_0x278f('0x3c')](_0x520f03,_0x560b8b,_0x31e0a6,_0x11b0d9),this[_0x278f('0xf0')]=this['_revisionId'];const _0x15ae04=new Map(),_0x18ce40=new Map();for(const _0x4877e5 of _0x398776){const _0x3c1b2b=G(_0x4877e5);_0x15ae04[_0x278f('0x1c')](_0x4877e5,_0x3c1b2b),_0x18ce40['set'](_0x4877e5,{});}this[_0x278f('0x3c')](Number[_0x278f('0x3d')],_0x15ae04,[],_0x18ce40);}[_0x278f('0xc2')](_0x7f400c,_0x2ecb32){if(this[_0x278f('0x105')]===_0x7f400c&&this[_0x278f('0xd9')]<=_0x2ecb32)this[_0x278f('0x3a')][_0x278f('0xce')]>0x1&&this[_0x278f('0x6b')](this[_0x278f('0xd9')]),this[_0x278f('0x53')](this[_0x278f('0xd9')],_0x2ecb32,!0x0);else{if(!this[_0x278f('0x3a')][_0x278f('0x85')](_0x7f400c)){const _0x282204=this[_0x278f('0x79')](_0x7f400c);this[_0x278f('0x25')](_0x282204,_0x7f400c,!0x1);}this[_0x278f('0x25')](_0x7f400c,_0x2ecb32,!0x0);}return this[_0x278f('0x105')]=_0x7f400c,this[_0x278f('0xd9')]=_0x2ecb32,this[_0x278f('0x59')]();}[_0x278f('0x1')](_0x406ec0){this['_reset'](),this['_lastFrom']=_0x406ec0[_0x278f('0xba')],this[_0x278f('0xd9')]=_0x406ec0[_0x278f('0x92')];for(const _0x1d8ef6 in _0x406ec0['diffData']){const _0x1c17d1=_0x406ec0[_0x278f('0x37')][_0x1d8ef6][_0x278f('0x22')],_0xd54c0f=_0x297498(_0x406ec0[_0x278f('0x37')][_0x1d8ef6][_0x278f('0x3f')])||{},_0x3056a2=this[_0x278f('0x9f')](_0x406ec0[_0x278f('0x37')][_0x1d8ef6][_0x278f('0x52')]);_0x3056a2[_0x278f('0x5f')]=_0x1d8ef6,_0x3056a2[_0x278f('0x46')]=!_0x1c17d1||!_0x1c17d1[_0x278f('0x83')],_0x3056a2['isAttached']=()=>_0x3056a2[_0x278f('0x46')],this['_baseRoots'][_0x278f('0x1c')](_0x1d8ef6,_0x3056a2),this['_baseRootsAttributes'][_0x278f('0x1c')](_0x1d8ef6,_0xd54c0f),_0x1c17d1&&this['_touchedRoots']['set'](_0x1d8ef6,_0x1c17d1);const _0x19bcc9=this[_0x278f('0x4a')](_0x3056a2);this['_baseIdsRoots']['set'](_0x1d8ef6,_0x19bcc9);for(const [_0x35094a,_0x3dd8ca]of _0x3056a2[_0x278f('0x11')]){if(!_0x35094a[_0x278f('0x15')]('revision:'))continue;const _0x1bd70b=_0x35094a['split'](':')[0x2];for(const _0x32d6b6 of _0x3dd8ca[_0x278f('0xb7')]({'singleCharacters':!0x0})){const _0x73ec95=this[_0x278f('0x74')](_0x32d6b6),_0x4ce4a1=_0x278f('0x81')==_0x32d6b6['type']?_0x32d6b6[_0x278f('0x44')][_0x278f('0xf2')][_0x278f('0x1f')](0x0,-0x1):_0x32d6b6['previousPosition']['path'],_0x48146c=_0x19bcc9['getNodeByPath'](_0x4ce4a1)[_0x278f('0xcf')](_0x73ec95);this[_0x278f('0x38')][_0x278f('0x1c')](_0x48146c,{'userId':_0x1bd70b});}}}this[_0x278f('0xf0')]=this[_0x278f('0x5e')];const _0x133206=[...Array(this[_0x278f('0x5e')])['keys']()]['slice'](0x1)[_0x278f('0x7f')](_0xaab54f=>!this[_0x278f('0x38')][_0x278f('0x85')](_0xaab54f));let _0x3af256=0x0;const _0x544913=new Map();for(const _0x3b0f1d in _0x406ec0[_0x278f('0x37')]){const _0x561520=_0x406ec0['diffData'][_0x3b0f1d][_0x278f('0x22')],_0x34642b=_0x297498(_0x406ec0[_0x278f('0x37')][_0x3b0f1d]['attributesAfter'])||{},_0x3f838d=this[_0x278f('0x9f')](_0x406ec0[_0x278f('0x37')][_0x3b0f1d][_0x278f('0x50')]);_0x3f838d[_0x278f('0x5f')]=_0x3b0f1d,_0x3f838d['_isAttached']=!_0x561520||_0x561520['isAttached'],_0x3f838d['isAttached']=()=>_0x3f838d[_0x278f('0x46')],this[_0x278f('0x49')][_0x278f('0x1c')](_0x3b0f1d,_0x3f838d),this[_0x278f('0xae')][_0x278f('0x1c')](_0x3b0f1d,_0x34642b);const _0x221d17=this[_0x278f('0x4a')](_0x3f838d,Number['NEGATIVE_INFINITY']);this[_0x278f('0x91')][_0x278f('0x1c')](_0x3b0f1d,_0x221d17),_0x544913[_0x278f('0x1c')](_0x3b0f1d,_0x3f838d['isAttached']()?_0x34642b:{});for(const [_0x2418d1,_0x54a628]of _0x3f838d[_0x278f('0x11')]){if(!_0x2418d1[_0x278f('0x15')](_0x278f('0x18')))continue;const _0x5d77fe=_0x2418d1[_0x278f('0xc4')](':')[0x2];for(const _0x4a7996 of _0x54a628['getWalker']({'singleCharacters':!0x0})){const _0x3841fc=this[_0x278f('0x74')](_0x4a7996),_0x3b925e=this['_revisionId']++,_0x3f591e=_0x278f('0x81')==_0x4a7996[_0x278f('0xee')]?_0x4a7996[_0x278f('0x44')][_0x278f('0xf2')][_0x278f('0x1f')](0x0,-0x1):_0x4a7996[_0x278f('0x44')][_0x278f('0xf2')];_0x221d17[_0x278f('0xe5')](_0x3f591e)['_setAttribute'](_0x3841fc,_0x3b925e),this[_0x278f('0x38')][_0x278f('0x1c')](_0x3b925e,{'userId':_0x5d77fe});}}for(const _0x5eb08e of this[_0x278f('0x89')][_0x278f('0x61')][_0x278f('0xe7')](_0x3f838d)[_0x278f('0xb7')]({'singleCharacters':!0x0})){const _0x1aae14=this['_getVidAttributeName'](_0x5eb08e),_0x38f1ff=_0x278f('0x81')==_0x5eb08e['type']?_0x5eb08e[_0x278f('0x44')][_0x278f('0xf2')][_0x278f('0x1f')](0x0,-0x1):_0x5eb08e[_0x278f('0x44')][_0x278f('0xf2')],_0x24d94c=_0x221d17[_0x278f('0xe5')](_0x38f1ff);_0x24d94c[_0x278f('0xcf')](_0x1aae14)>0x0||_0x24d94c['_setAttribute'](_0x1aae14,_0x133206[_0x3af256++]);}for(const [_0x4814d6,_0x3bf109]of _0x3f838d[_0x278f('0x11')])_0x4814d6[_0x278f('0x15')]('revision:')||this[_0x278f('0x48')]['set'](_0x4814d6,_0x3bf109);}const _0x529f76=G(_0x278f('0x47'));this[_0x278f('0xc3')][_0x278f('0x1c')](_0x278f('0x47'),_0x529f76),this[_0x278f('0xbc')]['set']('$graveyard',this[_0x278f('0x4a')](_0x529f76,0x1));const _0x16c90c=G(_0x278f('0x47'));this['_diffRoots'][_0x278f('0x1c')](_0x278f('0x47'),_0x16c90c),this[_0x278f('0x91')][_0x278f('0x1c')]('$graveyard',this[_0x278f('0x4a')](_0x16c90c,0x1));const _0x5d35a6=Array[_0x278f('0xed')](this['_diffRoots'])[_0x278f('0x31')](([_0x153955,_0x2c0957])=>[_0x153955,q(_0x2c0957)]);this[_0x278f('0x3c')](this['_lastTo'],_0x5d35a6,this['_markers'],_0x544913);}[_0x278f('0x9f')](_0x2dca59){const _0x3f156f=JSON[_0x278f('0xd2')](_0x2dca59),_0x46c17d=this[_0x278f('0x89')][_0x278f('0x98')]['view']['document'],_0x1f01f0=new _0x4b065d(_0x46c17d,_0x3f156f[_0x278f('0x31')](_0x541e8e=>J(_0x541e8e,this['editor'])));return this[_0x278f('0x89')][_0x278f('0x95')][_0x278f('0x5b')](_0x1f01f0);}[_0x278f('0x3c')](_0x5782e4,_0x186ae9,_0x50945f,_0x25314e){const _0x3d1da4=new Map(_0x186ae9),_0x4c9800=new Map(_0x297498(_0x25314e)),_0x45e96b=new Map();for(const [_0xd09b2e,_0x479ed5]of _0x50945f)_0x45e96b[_0x278f('0x1c')](_0xd09b2e,{'start':_0x479ed5[_0x278f('0xcc')][_0x278f('0x54')](),'end':_0x479ed5['end'][_0x278f('0x54')](),'rootName':_0x479ed5[_0x278f('0x5d')][_0x278f('0x5f')]});this[_0x278f('0x3a')][_0x278f('0x1c')](_0x5782e4,{'roots':_0x3d1da4,'markers':_0x45e96b,'rootsAttributes':_0x4c9800});}[_0x278f('0x6b')](_0x4286ef){this[_0x278f('0x3a')]['delete'](_0x4286ef);}[_0x278f('0x4c')](){this[_0x278f('0xe')](),this[_0x278f('0x105')]=-0x1,this[_0x278f('0xd9')]=-0x1,this['_savedMetaData']['clear'](),this[_0x278f('0x102')](this[_0x278f('0x19')]);}[_0x278f('0xe')](){this[_0x278f('0x38')]['clear'](),this[_0x278f('0x6c')][_0x278f('0xf5')](),this[_0x278f('0x96')][_0x278f('0xf5')](),this[_0x278f('0x49')]['clear'](),this[_0x278f('0xae')][_0x278f('0xf5')](),this[_0x278f('0xc3')][_0x278f('0xf5')](),this[_0x278f('0xe3')][_0x278f('0xf5')](),this[_0x278f('0x91')]['clear'](),this[_0x278f('0xbc')][_0x278f('0xf5')](),this['_markers'][_0x278f('0xf5')](),this[_0x278f('0x5e')]=0x1,this[_0x278f('0xf0')]=this[_0x278f('0x5e')];}[_0x278f('0x4a')](_0x41c527,_0x2afcab=null){let _0x3d083f=null;_0x41c527['is'](_0x278f('0xe0'))||(_0x3d083f=new _0x56b0b7(_0x41c527[_0x278f('0xd8')],{'vid_start':null===_0x2afcab?this['_revisionId']++:_0x2afcab++}));const _0x53d562=[];for(const _0x4759ea of _0x41c527['getChildren']())if(_0x4759ea['is'](_0x278f('0x77'))){_0x53d562[_0x278f('0xa2')](this[_0x278f('0x4a')](_0x4759ea,_0x2afcab));const _0x218cd1=_0x53d562[_0x53d562[_0x278f('0x9d')]-0x1];null!==_0x2afcab&&(_0x2afcab=_0x218cd1['is']('element',_0x278f('0x32'))?_0x218cd1['getAttribute']('vid')+0x1:_0x218cd1[_0x278f('0xcf')](_0x278f('0xf4'))+0x1);}else for(let _0x572240=0x0;_0x572240<_0x4759ea[_0x278f('0x14')];_0x572240++)_0x53d562[_0x278f('0xa2')](new _0x56b0b7('$text',{'vid':null===_0x2afcab?this[_0x278f('0x5e')]++:_0x2afcab++}));if(_0x41c527['is'](_0x278f('0xe0'))){const _0x2f57fd=G(_0x41c527[_0x278f('0x5f')]);return _0x2f57fd[_0x278f('0xdf')](0x0,_0x53d562),_0x2f57fd;}return _0x3d083f['_setAttribute'](_0x278f('0xf4'),null===_0x2afcab?this[_0x278f('0x5e')]++:_0x2afcab++),_0x3d083f[_0x278f('0xdf')](0x0,_0x53d562),_0x3d083f;}[_0x278f('0x25')](_0x2842a9,_0x36df3d,_0x242ecb){this[_0x278f('0xe')]();const {roots:_0x2a9f55,markers:_0x152bb1,rootsAttributes:_0x31474b}=this[_0x278f('0x3a')][_0x278f('0xc7')](_0x2842a9);this[_0x278f('0xc3')]=new Map(_0x2a9f55),this[_0x278f('0xe3')]=new Map(_0x297498(_0x31474b));for(const [_0x57165d,_0x255863]of this[_0x278f('0xc3')])if('$graveyard'!==_0x57165d&&(this[_0x278f('0x49')]['set'](_0x57165d,q(_0x255863)),this[_0x278f('0xae')]=new Map(_0x297498(_0x31474b)),_0x242ecb)){const _0x165c67=this[_0x278f('0x5e')];this[_0x278f('0x91')][_0x278f('0x1c')](_0x57165d,this['_makeIdsRoot'](_0x255863)),this['_baseIdsRoots'][_0x278f('0x1c')](_0x57165d,this[_0x278f('0x4a')](_0x255863,_0x165c67));}this[_0x278f('0xf0')]=this[_0x278f('0x5e')],this[_0x278f('0x49')][_0x278f('0x1c')]('$graveyard',q(this[_0x278f('0xc3')][_0x278f('0xc7')](_0x278f('0x47')))),_0x242ecb&&this[_0x278f('0x91')][_0x278f('0x1c')](_0x278f('0x47'),this['_makeIdsRoot'](this[_0x278f('0xc3')]['get'](_0x278f('0x47'))));for(const [_0x54df7b,_0x17b8f3]of _0x152bb1){const _0x2063a7=this[_0x278f('0xc3')][_0x278f('0xc7')](_0x17b8f3[_0x278f('0x5f')]),_0xbd80ed=this[_0x278f('0x49')][_0x278f('0xc7')](_0x17b8f3[_0x278f('0x5f')]),_0x2b1d6a=new _0x1c53ff(this['_fixPosition'](_0x17b8f3['start'],_0x2063a7),this[_0x278f('0xa3')](_0x17b8f3[_0x278f('0x71')],_0x2063a7)),_0x3689a0=this[_0x278f('0xfc')](_0x2b1d6a,_0xbd80ed);_0x2063a7[_0x278f('0x11')][_0x278f('0x1c')](_0x54df7b,_0x2b1d6a),this['_markers'][_0x278f('0x1c')](_0x54df7b,_0x3689a0);}this['_applyOperations'](_0x2842a9,_0x36df3d,_0x242ecb);}[_0x278f('0x53')](_0x3dfca6,_0x5ac6f5,_0x25bb72){for(const _0x2971a1 of this[_0x278f('0x19')][_0x278f('0x3e')](_0x3dfca6,_0x5ac6f5))this[_0x278f('0xd5')](_0x2971a1,_0x25bb72);for(const _0x1a893d of this['_diffRoots'][_0x278f('0x7d')]())_0x1a893d['markers']['clear']();for(const [_0x27dcff,_0x4bd8a6]of this[_0x278f('0x48')]){this[_0x278f('0x49')]['get'](_0x4bd8a6[_0x278f('0x5d')][_0x278f('0x5f')])[_0x278f('0x11')]['set'](_0x27dcff,_0x4bd8a6['clone']());}const _0x270353=new Map(),_0x24aa9c=new Map();for(const [_0x5766a9,_0x498670]of this[_0x278f('0x49')])_0x270353[_0x278f('0x1c')](_0x5766a9,q(_0x498670)),_0x24aa9c[_0x278f('0x1c')](_0x5766a9,this['_diffRootsAttributes']['get'](_0x5766a9));this[_0x278f('0x3c')](_0x5ac6f5,_0x270353,this[_0x278f('0x48')],_0x24aa9c);}[_0x278f('0x79')](_0x4ed31e){const _0x1afa8b=Array['from'](this[_0x278f('0x3a')][_0x278f('0xbd')]());_0x1afa8b[_0x278f('0x68')]((_0x496266,_0x240519)=>_0x496266-_0x240519),_0x1afa8b[_0x278f('0x86')]();for(const _0x5f10ff of _0x1afa8b)if(_0x5f10ff<_0x4ed31e)return _0x5f10ff;return Number['NEGATIVE_INFINITY'];}[_0x278f('0x39')](_0x690481,_0x41f59b){const _0x3fc3b2=Array[_0x278f('0xed')](_0x41f59b['markers'])['map'](([_0x5198c9,_0x245e87])=>[_0x5198c9,this[_0x278f('0xfc')](_0x245e87,_0x690481)]);_0x690481[_0x278f('0x11')]=new Map(_0x3fc3b2);}[_0x278f('0x73')](_0x3d89ed){for(const _0x3144a7 of this[_0x278f('0x48')][_0x278f('0x7d')]()){const _0x41d529=_0x3144a7[_0x278f('0x7')](_0x3d89ed),_0x1e510c=_0x1c53ff['_createFromRanges'](_0x41d529);_0x3144a7['start']=_0x1e510c[_0x278f('0xcc')],_0x3144a7[_0x278f('0x71')]=_0x1e510c[_0x278f('0x71')];}}[_0x278f('0xd5')](_0x518109,_0x27dddc){if('addRoot'==_0x518109[_0x278f('0xee')]||_0x278f('0xf8')==_0x518109[_0x278f('0xee')])return void this[_0x278f('0xd1')](_0x518109,_0x27dddc);if(_0x278f('0xd6')==_0x518109[_0x278f('0xee')]){const _0x30e314=_0x518109[_0x278f('0xbf')]['root'][_0x278f('0x5f')];this['_diffRoots'][_0x278f('0x85')](_0x30e314)||(this['_diffRoots'][_0x278f('0x1c')](_0x30e314,G(_0x30e314,!0x0)),this[_0x278f('0xae')][_0x278f('0x1c')](_0x30e314,{}),_0x27dddc&&this[_0x278f('0x91')]['set'](_0x30e314,G(_0x30e314,!0x0)));}else{if('addRootAttribute'==_0x518109['type']||'removeRootAttribute'==_0x518109[_0x278f('0xee')]||_0x278f('0xe6')==_0x518109['type'])return void this[_0x278f('0x26')](_0x518109);}const _0x45eea2=this['_cloneOperation'](_0x518109,this['_diffRoots']);if('marker'!==_0x518109[_0x278f('0xee')]&&(_0x45eea2['_execute'](),this[_0x278f('0x73')](_0x45eea2)),_0x27dddc)switch(_0x45eea2[_0x278f('0xee')]){case _0x278f('0xd6'):this[_0x278f('0xa8')](_0x518109);break;case _0x278f('0xdb'):case'remove':case _0x278f('0x2'):this[_0x278f('0x41')](_0x518109);break;case'merge':this[_0x278f('0x55')](_0x518109);break;case'split':this[_0x278f('0x3')](_0x518109);break;case _0x278f('0xd3'):this[_0x278f('0x36')](_0x518109);}}[_0x278f('0xff')](_0x4d18b8,_0x165477){const _0x252e91=_0x4d18b8[_0x278f('0x54')]();return _0x252e91[_0x278f('0x72')]=_0x4d18b8['_authorId'],this['_fixOperation'](_0x252e91,_0x165477),_0x252e91;}[_0x278f('0x9')](_0x517146){return _0x517146['map'](_0x3906a6=>{const _0x3c8110=this['_getVidAttributeName'](_0x3906a6);return Number(_0x3906a6['item'][_0x278f('0xcf')](_0x3c8110));});}[_0x278f('0xc')](_0x16dfb9,_0x5d15e7){if(_0x16dfb9['is'](_0x278f('0x77'),_0x278f('0x32')))_0x5d15e7[_0x278f('0xa2')]({'item':_0x16dfb9,'type':'text'});else{_0x16dfb9['is'](_0x278f('0x77'))&&_0x5d15e7[_0x278f('0xa2')]({'item':_0x16dfb9,'type':_0x278f('0x9a')});for(const _0x183c08 of _0x16dfb9[_0x278f('0xcb')]())this[_0x278f('0xc')](_0x183c08,_0x5d15e7);_0x16dfb9['is'](_0x278f('0x77'))&&_0x5d15e7[_0x278f('0xa2')]({'item':_0x16dfb9,'type':_0x278f('0x81')});}return _0x5d15e7;}['_getState'](){const _0x59ef9c=new Map(this[_0x278f('0x38')]),_0x2042c6=new Map(_0x59ef9c),_0x38ef14=new Map(),_0x2750ec={'insertions':{},'deletions':{}},_0x4ea661={'insertions':{},'deletions':{}},_0x26c74a=new Map(),_0x5f3e50=new Set([...this[_0x278f('0xc3')][_0x278f('0xbd')](),...this[_0x278f('0x49')][_0x278f('0xbd')]()]);_0x5f3e50[_0x278f('0x17')](_0x278f('0x47'));for(const _0xeac258 of _0x5f3e50){const _0x410afa=this[_0x278f('0x49')][_0x278f('0xc7')](_0xeac258)||G(_0xeac258,!0x1),_0x4a625a=this[_0x278f('0xc3')]['get'](_0xeac258)||G(_0xeac258,!0x1);_0x410afa[_0x278f('0x83')]()||_0x4a625a[_0x278f('0x83')]()?(_0x2750ec['insertions'][_0xeac258]=q(_0x410afa),_0x2750ec[_0x278f('0x52')][_0xeac258]=q(_0x4a625a),this[_0x278f('0x39')](_0x2750ec[_0x278f('0x52')][_0xeac258],_0x4a625a),this['_copyMarkers'](_0x2750ec[_0x278f('0x50')][_0xeac258],_0x410afa),_0x4ea661[_0x278f('0x50')][_0xeac258]=this[_0x278f('0xc')](this[_0x278f('0x91')][_0x278f('0xc7')](_0xeac258),[]),_0x4ea661[_0x278f('0x52')][_0xeac258]=this[_0x278f('0xc')](this['_baseIdsRoots'][_0x278f('0xc7')](_0xeac258)||G(_0xeac258,!0x1),[])):_0x5f3e50['delete'](_0xeac258);}for(const _0xc0bb4e of _0x5f3e50){const _0x2a4c78=_0x4ea661[_0x278f('0x50')][_0xc0bb4e];for(const _0x7d8413 of _0x2a4c78){const _0x244d05=this['_getVidAttributeName'](_0x7d8413),_0xf5821b=_0x7d8413[_0x278f('0x34')]['getAttribute'](_0x244d05);_0x2042c6[_0x278f('0x17')](_0xf5821b),_0xf5821b>=this[_0x278f('0xf0')]&&_0x38ef14['set'](_0xf5821b,_0x59ef9c[_0x278f('0xc7')](_0xf5821b));}}for(const _0x346199 of _0x5f3e50){const _0x4ff6f8=_0x4ea661[_0x278f('0x50')][_0x346199],_0x298bbf=this[_0x278f('0x9')](_0x4ea661[_0x278f('0x52')][_0x346199]);let _0xe46833=0x0;for(const _0x3e3c2b of _0x4ff6f8){const _0x54c171=this[_0x278f('0x74')](_0x3e3c2b),_0x377b3a=_0x3e3c2b[_0x278f('0x34')][_0x278f('0xcf')](_0x54c171);if(!_0x38ef14[_0x278f('0x85')](_0x377b3a)&&!_0x26c74a[_0x278f('0x85')](_0x377b3a)){if(_0x2042c6[_0x278f('0x85')](_0x377b3a))_0xe46833++;else{if(_0x377b3a!=_0x298bbf[_0xe46833]){const _0x41bb69=_0x59ef9c[_0x278f('0xc7')](_0x377b3a)||_0x59ef9c[_0x278f('0xc7')](_0x298bbf[_0xe46833]);for(;_0x377b3a!=_0x298bbf[_0xe46833];)_0x2042c6[_0x278f('0x85')](_0x298bbf[_0xe46833])||(_0x26c74a[_0x278f('0x1c')](_0x298bbf[_0xe46833],_0x41bb69),_0x59ef9c['set'](_0x298bbf[_0xe46833],_0x41bb69)),_0xe46833++;}_0xe46833++;}}}}for(const _0x442966 of _0x5f3e50){const _0x65f4e0=_0x4ea661[_0x278f('0x50')][_0x442966];for(const _0x440db2 of _0x65f4e0){const _0x16652c=this['_getVidAttributeName'](_0x440db2),_0x5d278d=_0x440db2[_0x278f('0x34')][_0x278f('0xcf')](_0x16652c);if(_0x26c74a[_0x278f('0x85')](_0x5d278d)){const _0x156fb3=_0x26c74a[_0x278f('0xc7')](_0x5d278d);_0x2042c6[_0x278f('0x85')](_0x5d278d)||_0x2042c6[_0x278f('0x1c')](_0x5d278d,{..._0x156fb3}),_0x38ef14[_0x278f('0x1c')](_0x5d278d,{..._0x156fb3});}}}for(const _0x260e22 of _0x2042c6[_0x278f('0xbd')]())_0x260e22>=this[_0x278f('0xf0')]&&_0x2042c6['delete'](_0x260e22);const _0x391be8=new Map();for(const _0x5b161e of _0x5f3e50){let _0x40a285=_0x4ea661['insertions'][_0x5b161e];for(const _0x599ab8 of _0x40a285)if(_0x599ab8[_0x278f('0x34')]['is']('element',_0x278f('0x107'))){const _0x14dce9=this[_0x278f('0x74')](_0x599ab8),_0x599dbd=_0x599ab8[_0x278f('0x34')]['getAttribute'](_0x14dce9);if(_0x38ef14[_0x278f('0x85')](_0x599dbd)){const _0x189750=_0x599ab8[_0x278f('0x34')]['parent'][_0x278f('0xa4')][_0x278f('0xcf')](_0x278f('0xa0')),_0x5d377e=_0x391be8[_0x278f('0xc7')](_0x189750)||new Set();_0x5d377e[_0x278f('0xfb')](_0x38ef14[_0x278f('0xc7')](_0x599dbd)['userId']),_0x391be8['set'](_0x189750,_0x5d377e);}}_0x40a285=_0x4ea661[_0x278f('0x52')][_0x5b161e];for(const _0x1da3c1 of _0x40a285)if(_0x1da3c1[_0x278f('0x34')]['is'](_0x278f('0x77'),_0x278f('0x107'))){const _0x34ee2f=this[_0x278f('0x74')](_0x1da3c1),_0x436486=_0x1da3c1[_0x278f('0x34')][_0x278f('0xcf')](_0x34ee2f);if(_0x2042c6['has'](_0x436486)){const _0x1bed38=_0x1da3c1[_0x278f('0x34')][_0x278f('0xa4')][_0x278f('0xa4')][_0x278f('0xcf')]('vid_start'),_0x24bf3f=_0x391be8['get'](_0x1bed38)||new Set();_0x24bf3f[_0x278f('0xfb')](_0x2042c6[_0x278f('0xc7')](_0x436486)[_0x278f('0x4')]),_0x391be8[_0x278f('0x1c')](_0x1bed38,_0x24bf3f);}}for(const _0x24d75b of _0x391be8[_0x278f('0xbd')]())(_0x38ef14['has'](_0x24d75b)||_0x2042c6[_0x278f('0x85')](_0x24d75b))&&_0x391be8[_0x278f('0x17')](_0x24d75b);}for(const _0x8d5da9 of _0x5f3e50){const _0x57c077=_0x4ea661[_0x278f('0x50')][_0x8d5da9];let _0x3f0a35=null,_0x373227=null;for(const _0xe94121 of _0x57c077){const _0x2f8693=this[_0x278f('0x74')](_0xe94121),_0x30969c=_0xe94121[_0x278f('0x34')][_0x278f('0xcf')](_0x2f8693),_0x5e21df=_0x391be8[_0x278f('0xc7')](_0x30969c);_0x5e21df&&_0x278f('0x9a')==_0xe94121[_0x278f('0xee')]&&(_0x3f0a35=Array[_0x278f('0xed')](_0x5e21df)[0x0],_0x373227=_0xe94121['item'][_0x278f('0xcf')](_0x278f('0xf4'))),_0x3f0a35&&(_0x2042c6[_0x278f('0x1c')](_0x30969c,{'userId':_0x3f0a35}),_0x38ef14[_0x278f('0x1c')](_0x30969c,{'userId':_0x3f0a35})),_0x30969c==_0x373227&&(_0x3f0a35=null,_0x373227=null);}}const _0x312263={},_0x1baed7=new Set();for(const _0x472287 of _0x5f3e50){const _0x35c638=_0x2750ec[_0x278f('0x52')][_0x472287],_0x4600b7=_0x2750ec[_0x278f('0x50')][_0x472287];for(const {userId:_0x146120}of this['_touchedMarkers'][_0x278f('0x7d')]())null!==_0x146120&&_0x1baed7[_0x278f('0xfb')](_0x146120);for(const {userId:_0x36268c}of this['_touchedRoots'][_0x278f('0x7d')]())null!==_0x36268c&&_0x1baed7[_0x278f('0xfb')](_0x36268c);this[_0x278f('0x101')](_0x4600b7,_0x4ea661['insertions'][_0x472287],_0x38ef14,_0x278f('0xa9'),_0x1baed7),this[_0x278f('0x101')](_0x35c638,_0x4ea661[_0x278f('0x52')][_0x472287],_0x2042c6,_0x278f('0x43'),_0x1baed7),_0x312263[_0x472287]={'insertions':this['_prepareViewToSave'](_0x4600b7),'deletions':this[_0x278f('0x2d')](_0x35c638),'attachChange':this[_0x278f('0x96')][_0x278f('0xc7')](_0x472287)||null,'attributesBefore':_0x297498(this[_0x278f('0xe3')][_0x278f('0xc7')](_0x472287))||{},'attributesAfter':_0x297498(this[_0x278f('0xae')][_0x278f('0xc7')](_0x472287))};}return{'diffData':_0x312263,'authorsIds':Array['from'](_0x1baed7)};}[_0x278f('0xb3')](_0x4ce19b){for(const [,_0x47c839]of _0x4ce19b['markers']){const _0x5becbc=_0x47c839[_0x278f('0xcc')]['getAncestors']()['filter'](_0x5d1f6e=>_0x278f('0x107')==_0x5d1f6e['name']);for(const _0x785d6c of _0x5becbc)0x1==_0x785d6c['childCount']&&_0x785d6c[_0x278f('0x75')](0x0)['is'](_0x278f('0x77'),_0x278f('0x60'))&&_0x785d6c[_0x278f('0x75')](0x0)['_setAttribute'](_0x278f('0xa6'),!0x0);}}['_prepareViewToSave'](_0x199031){this[_0x278f('0xb3')](_0x199031);const _0x565b02=this[_0x278f('0x89')][_0x278f('0x95')]['toView'](_0x199031,{}),_0x276775=Array[_0x278f('0xed')](_0x565b02[_0x278f('0xcb')]())['map'](_0x28fd1c=>this[_0x278f('0x2e')](_0x28fd1c));return JSON[_0x278f('0x10')](_0x276775);}[_0x278f('0x2e')](_0x4bd6ca){if(_0x4bd6ca['is']('$text'))return _0x4bd6ca[_0x278f('0x95')];{const _0x22f86f=_0x4bd6ca;return{'type':Object[_0x278f('0xbd')](B)[_0x278f('0x80')](_0xbac4f2=>_0x4bd6ca instanceof B[_0xbac4f2]),'name':_0x22f86f[_0x278f('0xd8')],'attributes':Array[_0x278f('0xed')](_0x22f86f['getAttributes']()),'children':Array[_0x278f('0xed')](_0x22f86f[_0x278f('0xcb')]())[_0x278f('0x31')](_0x1dae89=>this[_0x278f('0x2e')](_0x1dae89))};}}[_0x278f('0x101')](_0x281c04,_0x403927,_0x27cb12,_0x292b22,_0x4a8b6a){let _0x5a5430=null,_0x18b222=null,_0x38ca2c=0x0;const _0x49aeb4=this[_0x278f('0x89')][_0x278f('0x61')];for(let _0x36afab=0x0;_0x36afab<_0x403927[_0x278f('0x9d')];_0x36afab++){const _0x3c5eba=this[_0x278f('0x74')](_0x403927[_0x36afab]),_0x43e28e=_0x403927[_0x36afab][_0x278f('0x34')][_0x278f('0xcf')](_0x3c5eba),_0x423613=_0x27cb12[_0x278f('0xc7')](_0x43e28e),_0x33eeb2=_0x36afab==_0x403927[_0x278f('0x9d')]-0x1;(!_0x5a5430&&_0x423613&&(_0x5a5430=_0x423613,_0x18b222=_0x403927[_0x36afab]),_0x5a5430&&(!_0x423613||_0x423613[_0x278f('0x4')]!=_0x5a5430[_0x278f('0x4')]))&&(_0x1f5f32(_0x423613,L(_0x18b222,_0x281c04,_0x49aeb4),L(_0x403927[_0x36afab],_0x281c04,_0x49aeb4)),_0x5a5430=_0x423613||null,_0x18b222=_0x423613?_0x403927[_0x36afab]:null),_0x5a5430&&_0x33eeb2&&_0x1f5f32(_0x423613,L(_0x18b222,_0x281c04,_0x49aeb4),W(_0x403927[_0x36afab],_0x281c04,_0x49aeb4));}function _0x1f5f32(_0x4de050,_0x557503,_0x2bdf0f){const _0x297639=_0x5a5430[_0x278f('0x4')],_0x2fea8a='revision:'+_0x292b22+':'+_0x297639+':'+_0x38ca2c++,_0x4f049b=_0x49aeb4[_0x278f('0x2c')](_0x557503,_0x2bdf0f);_0x281c04[_0x278f('0x11')]['set'](_0x2fea8a,_0x4f049b),null!==_0x297639&&_0x4a8b6a[_0x278f('0xfb')](_0x297639);}}[_0x278f('0x74')](_0x404ce8){switch(_0x404ce8[_0x278f('0xee')]){case _0x278f('0x9a'):return _0x278f('0xa0');case'elementEnd':return _0x278f('0xf4');default:return _0x278f('0xc1');}}[_0x278f('0x66')](_0xd87a53,_0x2b4111){_0xd87a53[_0x278f('0xde')]=null;for(const _0x14bfbd in _0xd87a53){const _0x576cea=_0xd87a53[_0x14bfbd];if(_0x576cea instanceof _0x31ab12){const _0x1e3f4c=_0x2b4111['get'](_0x576cea[_0x278f('0x5d')][_0x278f('0x5f')]);_0xd87a53[_0x14bfbd]=this[_0x278f('0xa3')](_0x576cea,_0x1e3f4c);}if(_0x576cea instanceof _0x1c53ff){const _0x338117=_0x2b4111[_0x278f('0xc7')](_0x576cea[_0x278f('0x5d')][_0x278f('0x5f')]);_0xd87a53[_0x14bfbd]=this['_fixRange'](_0x576cea,_0x338117);}'root'===_0x14bfbd&&(_0xd87a53[_0x278f('0x5d')]=_0x2b4111[_0x278f('0xc7')](_0xd87a53['root'][_0x278f('0x5f')]));}}[_0x278f('0xfc')](_0x36d487,_0x56336c){return this[_0x278f('0x89')][_0x278f('0x61')][_0x278f('0x2c')](this['_fixPosition'](_0x36d487[_0x278f('0xcc')],_0x56336c),this[_0x278f('0xa3')](_0x36d487[_0x278f('0x71')],_0x56336c));}['_fixPosition'](_0x2fc073,_0x482247){return this[_0x278f('0x89')][_0x278f('0x61')][_0x278f('0x8e')](_0x482247,_0x2fc073[_0x278f('0xf2')],_0x2fc073[_0x278f('0xaa')]);}[_0x278f('0xa8')](_0x54bf35){const _0x2dff68=this['_idsRoots'][_0x278f('0xc7')](_0x54bf35[_0x278f('0xbf')][_0x278f('0x5d')][_0x278f('0x5f')]),_0x4b26de=this[_0x278f('0xa3')](_0x54bf35[_0x278f('0xbf')],_0x2dff68),_0x50e335=null===_0x54bf35['_authorId']?null:_0x54bf35['_authorId']||this[_0x278f('0x89')][_0x278f('0x76')][_0x278f('0xc7')](_0x278f('0xa7'))['me']['id'],_0x346c0a=_0x4b26de[_0x278f('0xa4')],_0x42d3cf=this[_0x278f('0x5e')],_0x492239=[];for(const _0x3e175c of _0x54bf35['nodes'])if(_0x3e175c['is'](_0x278f('0x77')))_0x492239[_0x278f('0xa2')](this[_0x278f('0x4a')](_0x3e175c));else for(let _0x2dc838=0x0;_0x2dc838<_0x3e175c['offsetSize'];_0x2dc838++)_0x492239[_0x278f('0xa2')](new _0x56b0b7(_0x278f('0x32'),{'vid':this[_0x278f('0x5e')]++}));const _0x28befc=this['_revisionId'];for(let _0x3b312f=_0x42d3cf;_0x3b312f<_0x28befc;_0x3b312f++)this[_0x278f('0x38')]['set'](_0x3b312f,{'userId':_0x50e335});_0x346c0a[_0x278f('0xdf')](_0x4b26de[_0x278f('0x106')],_0x492239);}[_0x278f('0x41')](_0x5dca83){(_0x5dca83=this[_0x278f('0xff')](_0x5dca83,this['_idsRoots']))[_0x278f('0xef')]();const _0x3a6cc6=null===_0x5dca83[_0x278f('0x72')]?null:_0x5dca83[_0x278f('0x72')]||this['editor'][_0x278f('0x76')][_0x278f('0xc7')](_0x278f('0xa7'))['me']['id'],_0x1bc6e7=_0x5dca83[_0x278f('0x57')](),_0x1b30f9=_0x1bc6e7[_0x278f('0xa4')],_0x4548ec=_0x1bc6e7[_0x278f('0x106')];!function _0x5df5ab(_0x2c7ffc,_0x1be661,_0x22813e,_0x20ba3e){for(let _0x29cdfc=_0x22813e;_0x29cdfc<_0x20ba3e;_0x29cdfc++){const _0x33d507=_0x1be661[_0x278f('0x75')](_0x29cdfc);_0x33d507['is'](_0x278f('0x77'),_0x278f('0x32'))?_0x2c7ffc['set'](_0x33d507[_0x278f('0xcf')](_0x278f('0xc1')),{'userId':_0x3a6cc6}):(_0x2c7ffc['set'](_0x33d507[_0x278f('0xcf')]('vid_start'),{'userId':_0x3a6cc6}),_0x5df5ab(_0x2c7ffc,_0x33d507,0x0,_0x33d507[_0x278f('0xb1')]),_0x2c7ffc[_0x278f('0x1c')](_0x33d507[_0x278f('0xcf')](_0x278f('0xf4')),{'userId':_0x3a6cc6}));}}(this[_0x278f('0x38')],_0x1b30f9,_0x4548ec,_0x4548ec+_0x5dca83[_0x278f('0xca')]);}[_0x278f('0x55')](_0x3cfa8f){const _0x20e3b7=null===(_0x3cfa8f=this[_0x278f('0xff')](_0x3cfa8f,this[_0x278f('0x91')]))[_0x278f('0x72')]?null:_0x3cfa8f[_0x278f('0x72')]||this[_0x278f('0x89')][_0x278f('0x76')]['get'](_0x278f('0xa7'))['me']['id'],_0x271d5a=_0x3cfa8f[_0x278f('0x21')][_0x278f('0xa4')],_0xcb635a=_0x3cfa8f[_0x278f('0xeb')][_0x278f('0xa4')],_0x2145e5=_0x271d5a[_0x278f('0xcf')](_0x278f('0xf4')),_0x4253ae=_0xcb635a[_0x278f('0xcf')](_0x278f('0xa0'));_0x271d5a[_0x278f('0x12')]('vid_end',_0xcb635a[_0x278f('0xcf')](_0x278f('0xf4'))),_0xcb635a['_setAttribute'](_0x278f('0xf4'),_0x2145e5),this[_0x278f('0x38')][_0x278f('0x1c')](_0x4253ae,{'userId':_0x20e3b7}),this['_touched'][_0x278f('0x1c')](_0x2145e5,{'userId':_0x20e3b7}),_0x3cfa8f[_0x278f('0xef')]();}[_0x278f('0x3')](_0x2abe59){const _0x5f372e=null===(_0x2abe59=this['_cloneOperation'](_0x2abe59,this[_0x278f('0x91')]))[_0x278f('0x72')]?null:_0x2abe59[_0x278f('0x72')]||this['editor']['plugins'][_0x278f('0xc7')](_0x278f('0xa7'))['me']['id'],_0x347150=_0x2abe59[_0x278f('0x42')],_0x28fe04=_0x2abe59['splitPosition'][_0x278f('0xa4')];_0x2abe59[_0x278f('0xef')]();const _0x3218cf=_0x28fe04['getAttribute'](_0x278f('0xf4')),_0x5661b4=_0x2abe59[_0x278f('0x69')][_0x278f('0x4f')];if(_0x347150){const _0x16b04d=_0x5661b4[_0x278f('0xcf')](_0x278f('0xf4')),_0x4ec9a8=_0x28fe04[_0x278f('0xcf')](_0x278f('0xf4'));_0x28fe04[_0x278f('0x12')](_0x278f('0xf4'),_0x16b04d),_0x5661b4[_0x278f('0x12')](_0x278f('0xf4'),_0x4ec9a8),this[_0x278f('0x38')][_0x278f('0x1c')](_0x28fe04[_0x278f('0xcf')](_0x278f('0xf4')),{'userId':_0x5f372e}),this[_0x278f('0x38')]['set'](_0x5661b4[_0x278f('0xcf')]('vid_start'),{'userId':_0x5f372e});}else{const _0x1f25df=this[_0x278f('0x5e')]++,_0x297c04=this[_0x278f('0x5e')]++;_0x28fe04[_0x278f('0x12')]('vid_end',_0x1f25df),_0x5661b4[_0x278f('0x12')](_0x278f('0xa0'),_0x297c04),_0x5661b4[_0x278f('0x12')](_0x278f('0xf4'),_0x3218cf),this[_0x278f('0x38')][_0x278f('0x1c')](_0x1f25df,{'userId':_0x5f372e}),this[_0x278f('0x38')][_0x278f('0x1c')](_0x297c04,{'userId':_0x5f372e});}}[_0x278f('0x36')](_0x195466){if(!_0x195466[_0x278f('0x5a')])return;const _0x32ed55=(_0x195466=this[_0x278f('0xff')](_0x195466,this[_0x278f('0x49')]))[_0x278f('0xb5')]?_0x195466[_0x278f('0xb5')][_0x278f('0x5d')]:null,_0x5714fa=_0x195466[_0x278f('0x90')]?_0x195466[_0x278f('0x90')][_0x278f('0x5d')]:null;_0x32ed55&&this[_0x278f('0x48')][_0x278f('0x17')](_0x195466[_0x278f('0xd8')]),_0x5714fa&&this[_0x278f('0x48')][_0x278f('0x1c')](_0x195466[_0x278f('0xd8')],_0x195466[_0x278f('0x90')][_0x278f('0x54')]());const _0x423217=null===_0x195466[_0x278f('0x72')]?null:_0x195466[_0x278f('0x72')]||this[_0x278f('0x89')][_0x278f('0x76')][_0x278f('0xc7')](_0x278f('0xa7'))['me']['id'],_0x3205bf=_0x195466[_0x278f('0xd8')];if(!this[_0x278f('0x6c')]['has'](_0x3205bf))return void this[_0x278f('0x6c')][_0x278f('0x1c')](_0x3205bf,{'range':_0x195466[_0x278f('0xb5')],'userId':_0x423217});const _0x2ec8f6=this[_0x278f('0x6c')]['get'](_0x3205bf),_0x39b815=_0x2ec8f6[_0x278f('0xe1')],_0x6cc0e3=_0x195466[_0x278f('0x90')];null==_0x39b815&&null==_0x6cc0e3||_0x39b815&&_0x6cc0e3&&_0x39b815[_0x278f('0x65')](_0x6cc0e3)?this['_touchedMarkers'][_0x278f('0x17')](_0x195466[_0x278f('0xd8')]):_0x2ec8f6[_0x278f('0x4')]=_0x423217;}['_handleRootOperation'](_0xb51cc6,_0x1424a3){this[_0x278f('0x49')]['has'](_0xb51cc6['rootName'])?this[_0x278f('0x49')][_0x278f('0xc7')](_0xb51cc6[_0x278f('0x5f')])[_0x278f('0x46')]=_0xb51cc6[_0x278f('0x99')]:(this[_0x278f('0x49')][_0x278f('0x1c')](_0xb51cc6[_0x278f('0x5f')],G(_0xb51cc6[_0x278f('0x5f')],!0x0)),this[_0x278f('0xae')][_0x278f('0x1c')](_0xb51cc6['rootName'],{}),_0x1424a3&&this[_0x278f('0x91')][_0x278f('0x1c')](_0xb51cc6[_0x278f('0x5f')],G(_0xb51cc6['rootName'],!0x0)));const _0x16fec5=null===_0xb51cc6[_0x278f('0x72')]?null:_0xb51cc6[_0x278f('0x72')]||this['editor'][_0x278f('0x76')][_0x278f('0xc7')](_0x278f('0xa7'))['me']['id'],_0x324cb6=this[_0x278f('0x96')][_0x278f('0xc7')](_0xb51cc6[_0x278f('0x5f')]);_0x324cb6&&_0x324cb6[_0x278f('0x4')]===_0x16fec5?this['_touchedRoots'][_0x278f('0x17')](_0xb51cc6[_0x278f('0x5f')]):this[_0x278f('0x96')]['set'](_0xb51cc6['rootName'],{'userId':_0x16fec5,'isAttached':_0xb51cc6[_0x278f('0x99')]});}['_handleRootAttributeOperation'](_0x511804){const _0x568b9c=this[_0x278f('0xae')][_0x278f('0xc7')](_0x511804['root'][_0x278f('0x5f')]);null===_0x511804[_0x278f('0xab')]?delete _0x568b9c[_0x511804['key']]:_0x568b9c[_0x511804[_0x278f('0x40')]]=_0x511804[_0x278f('0xab')];}}function q(_0x2b619e){const _0xe38180=G(_0x2b619e[_0x278f('0x5f')],_0x2b619e[_0x278f('0x83')]());for(const _0x1d562a of _0x2b619e[_0x278f('0xcb')]()){const _0x5f07e3=_0x1d562a[_0x278f('0xf6')](!0x0);_0xe38180[_0x278f('0x4d')](_0x5f07e3);}return _0xe38180;}function G(_0x25662d,_0x40c140=!0x0){const _0x37c7b3=new _0x5ab8b3();return _0x37c7b3['rootName']=_0x25662d,_0x37c7b3[_0x278f('0x46')]=_0x40c140,_0x37c7b3[_0x278f('0x83')]=()=>_0x37c7b3[_0x278f('0x46')],_0x37c7b3;}function L(_0x58f0c7,_0x5851d1,_0x561f8a){const _0x276e67=_0x278f('0x81')==_0x58f0c7['type']?_0x561f8a[_0x278f('0xe8')](_0x58f0c7['item'],_0x278f('0x71')):_0x561f8a['createPositionBefore'](_0x58f0c7[_0x278f('0x34')]);return _0x561f8a[_0x278f('0x8e')](_0x5851d1,_0x276e67[_0x278f('0xf2')],_0x276e67[_0x278f('0xaa')]);}function W(_0x35d4c5,_0x2d22d9,_0x5aa978){const _0x5ba174='elementStart'==_0x35d4c5[_0x278f('0xee')]?_0x5aa978[_0x278f('0xe8')](_0x35d4c5[_0x278f('0x34')],0x0):_0x5aa978[_0x278f('0x4e')](_0x35d4c5[_0x278f('0x34')]);return _0x5aa978[_0x278f('0x8e')](_0x2d22d9,_0x5ba174[_0x278f('0xf2')],_0x5ba174[_0x278f('0xaa')]);}