@ckeditor/ckeditor5-revision-history 37.0.0-rc.0 → 37.0.1

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 _0x45a4=['text','root','_diffRoots','_reset','previousPosition','documentFragment','offset','_removeMetaData','baseVersion','_setAttribute','_handleSplitOperation','_savedMetaData','insertionPosition','_baseIdsRoots','_getState','history','_handleOperation','_execute','insert','getUser','requires','hasContent','for','bind','processor','_lastTo','getRevision','isReady','_removePendingAction','filter','markerToData','vid_end','end','_baseRoots','_continueCurrentRevision','marked','reInit','define','deletions','vid','item','ready','type','getNodeByPath','delete','_loadRevisionData','dataDowncast','insertion','getWalker','$graveyard','slice','createPositionAt','getRevisionDocumentData','stickiness','remove','update','childCount','elementEnd','source','pluginName','has','getRootNames','clear','path','view','createPositionBefore','getRevisions','length','fromVersion','_fixRange','_addPendingAction','config','stringify','_getFromVersion','_source','_touchedMarkers','name','toView','dataToMarker','version','set','nodeAfter','keepParagraph','_authorId','startsWith','Empty\x20document','_prepareViewToSave','_handleMoveOperation','_handleMarkerOperation','move','_loadedStateData','toModel','get','_createInitialRevision','getAttribute','nodes','collaboration.channelId','PENDING_ACTION_REVISION_HISTORY','creator','plugins','split','addRevision','size','_getViewJson','editor','merge','_saveMetaData','afterInit','_initialRevisionId','getOperation','getAttributes','_getVidAttributeName','from','getCurrentRevisionId','getRoot','paragraph','_bufferedUpdates','toVersion','locale','tableCell','_idsRoots','diffData','_isPendingUpdate','getLatestVersion','_cloneOperation','_createCurrentRevision','oldRange','Users','_startingVersion','elementStart','_setConversion','affectsData','RevisionsRepository','upcast','_replaceEditorDataWithRevisionData','createRange','data','getData','_getBaseVids','sendBufferedUpdates','getTime','targetPosition','setRevisionData','_appendChild','editing','attributes','insertions','clone','_startingRevisionId','offsetSize','initial','getRange','createRangeIn','RealTimeCollaborationClient','then','start','_touched','vid_start','_removeRevisionMarkers','_copyMarkers','_calculateMetaData','buildRevisionData','parent','_transformMarkers','_findInsertionIndex','getChildren','_fixOperation','revision','document','getAncestors','keys','init','useFillerType','position','RevisionTracker','_fixPosition','_applyOperations','_loadState','$text','push','_handleInsertOperation','_processRootBeforeSave','getOperations','_revisionDataBuilder','markers','createPositionAfter','_rootNames','_markers','authorsIds','_insertChild','userId','authors','find','_markChanges','string','addRevisionData','_operations','reverse','initialData','createPositionFromPath','_makeModelFromViewString','sort','_lastFrom','_handleMergeOperation','_isInit','revision:','map','adapter','element','add','_generateTape','trim','loadState','getTransformedByOperation','max','_update','graveyardPosition','newRange','_bufferUpdate','children','marker','rootName','revision-end','values','PendingActions','repository','_makeIdsRoot','getChild','reinsert','currentRevision','creatorId','setSource','_pendingAction','_makeRevision','_revisionId','conversion','model','createdAt','_createFromRanges'];(function(_0xf90af3,_0x45a497){const _0xe08c20=function(_0x26780d){while(--_0x26780d){_0xf90af3['push'](_0xf90af3['shift']());}};_0xe08c20(++_0x45a497);}(_0x45a4,0xa5));const _0xe08c=function(_0xf90af3,_0x45a497){_0xf90af3=_0xf90af3-0x0;let _0xe08c20=_0x45a4[_0xf90af3];return _0xe08c20;};import{Users as _0x4623a4}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x2fd8db,PendingActions as _0x2532ec}from'ckeditor5/src/core';import{logWarning as _0x6ec304,uid as _0x37c5ee}from'ckeditor5/src/utils';import{Position as _0x3a19a0,Range as _0x18b630,Element as _0x45e8ea,DocumentFragment as _0x588493,ViewText as _0x9a4db5,ViewElement as _0xc72f6f,ViewContainerElement as _0x43cfc1,ViewAttributeElement as _0x2c176b,ViewEmptyElement as _0x46fdea,ViewRawElement as _0x4ffca5,ViewUIElement as _0x328a24,ViewDocumentFragment as _0x409a7f}from'ckeditor5/src/engine';import _0x114a5e from'./revisionsrepository';import{getTranslation as _0x2bf8a0}from'./utils/common-translations';const V={'c':_0x43cfc1,'a':_0x2c176b,'e':_0x46fdea,'r':_0x4ffca5,'u':_0x328a24};export default class l extends _0x2fd8db{static get[_0xe08c('0x85')](){return _0xe08c('0x9');}static get[_0xe08c('0x5e')](){return[_0x4623a4,_0x114a5e,_0x2532ec];}constructor(_0x40dfa7){super(_0x40dfa7),this[_0xe08c('0x2a')]=null,this[_0xe08c('0x40')]=null,this[_0xe08c('0x12')]=new T(this['editor']),this[_0xe08c('0xb6')]=this[_0xe08c('0xb2')][_0xe08c('0x91')]['get'](_0xe08c('0xaa'))||_0xe08c('0xe0'),this[_0xe08c('0xbe')]=new Map(),this['_loadedStateData']=null;const _0x4840eb=_0x37c5ee();this[_0xe08c('0x94')]={'history':this[_0xe08c('0xb2')][_0xe08c('0x47')]['document'][_0xe08c('0x59')],'getLatestVersion':()=>Promise['resolve'](this[_0xe08c('0xb2')][_0xe08c('0x47')][_0xe08c('0x3')][_0xe08c('0x99')]),'getCurrentRevisionId':()=>_0x4840eb},this[_0xe08c('0x9a')]('isReady',!0x1),this['set']('isEnabled',!0x0),this[_0xe08c('0x9a')]('_isPendingUpdate',!0x1),this[_0xe08c('0xb2')]['config'][_0xe08c('0x6f')]('revisionHistory.resumeUnsavedRevision',!0x0),this[_0xe08c('0xb2')][_0xe08c('0x46')][_0xe08c('0x60')](_0xe08c('0xcf'))[_0xe08c('0x98')]({'view':'revision'});}[_0xe08c('0x6')](){this['repository']=this[_0xe08c('0xb2')][_0xe08c('0xad')][_0xe08c('0xa6')](_0xe08c('0xce')),this[_0xe08c('0xcc')](),this['editor']['data']['on'](_0xe08c('0x73'),()=>{const _0x4857fd=this[_0xe08c('0x3c')][_0xe08c('0x64')](0x0),_0x85f8d1=_0x4857fd&&null===_0x4857fd[_0xe08c('0xac')]?_0x4857fd:null;if(this[_0xe08c('0x6c')]=!!_0x85f8d1&&this[_0xe08c('0xb2')]['config'][_0xe08c('0xa6')]('revisionHistory.resumeUnsavedRevision'),this['editor'][_0xe08c('0xad')]['has'](_0xe08c('0xe3'))){const _0x1a9145=this['_source'][_0xe08c('0xbb')](),_0x1f6452=this[_0xe08c('0x3c')][_0xe08c('0x64')](_0x1a9145);if(_0x1f6452)this['_startingVersion']=_0x1f6452[_0xe08c('0x8e')],this[_0xe08c('0x6c')]=!0x1;else{const _0x1c91a7=this[_0xe08c('0x94')][_0xe08c('0x59')][_0xe08c('0x1f')][_0xe08c('0x1b')](_0x1c55b6=>!_0x1c55b6[_0xe08c('0x27')]),_0x12125c=_0x1c91a7?_0x1c91a7[_0xe08c('0x52')]:this[_0xe08c('0x94')][_0xe08c('0x59')][_0xe08c('0x99')];_0x4857fd?(_0x4857fd['toVersion']<_0x12125c&&_0x4857fd['_update']({'toVersion':_0x12125c}),this[_0xe08c('0x6c')]?(this[_0xe08c('0x94')][_0xe08c('0xbb')]=()=>_0x85f8d1['id'],this[_0xe08c('0xca')]=_0x85f8d1[_0xe08c('0x8e')]):(this[_0xe08c('0xca')]=_0x4857fd['toVersion'],this[_0xe08c('0x6c')]=!0x1)):(this[_0xe08c('0xca')]=_0x12125c,this[_0xe08c('0x6c')]=!0x1);}}else _0x85f8d1&&(this['editor'][_0xe08c('0x47')][_0xe08c('0x3')][_0xe08c('0x59')][_0xe08c('0x99')]=Math[_0xe08c('0x31')](_0x85f8d1[_0xe08c('0xbf')],this['editor'][_0xe08c('0x47')][_0xe08c('0x3')][_0xe08c('0x59')]['version']),_0x85f8d1[_0xe08c('0x8e')]===_0x85f8d1[_0xe08c('0xbf')]?(0x0!==_0x85f8d1[_0xe08c('0x8e')]&&(this[_0xe08c('0x94')]['getCurrentRevisionId']=()=>_0x85f8d1['id']),this[_0xe08c('0x6c')]=!0x1):this[_0xe08c('0x6c')]&&(this['_source'][_0xe08c('0xbb')]=()=>_0x85f8d1['id'],this[_0xe08c('0xca')]=_0x85f8d1[_0xe08c('0x8e')])),this['_continueCurrentRevision']||(this[_0xe08c('0xca')]=this[_0xe08c('0xb2')][_0xe08c('0x47')][_0xe08c('0x3')][_0xe08c('0x99')]);this[_0xe08c('0x12')][_0xe08c('0x6')](this[_0xe08c('0x94')][_0xe08c('0x59')]),this[_0xe08c('0xa7')](this[_0xe08c('0xca')]),this[_0xe08c('0xc7')](this[_0xe08c('0xca')]),this[_0xe08c('0x2a')]&&this['sendBufferedUpdates']();}),this[_0xe08c('0x61')](_0xe08c('0x65'))['to'](this,_0xe08c('0xc4'),_0x4eaebe=>!_0x4eaebe);}async[_0xe08c('0xb5')](){if(this[_0xe08c('0x3c')][_0xe08c('0x8d')]>0x0){const _0x92bdbf=this[_0xe08c('0x3c')][_0xe08c('0x64')](0x0),_0x2e2164=await this[_0xe08c('0x7e')](_0x92bdbf);this[_0xe08c('0xd0')](_0x2e2164);}}[_0xe08c('0x42')](_0x3e6ae4){this['_source']=_0x3e6ae4;}async[_0xe08c('0x81')](){const _0xa9ab01=await this[_0xe08c('0x94')]['getLatestVersion']();if(_0xa9ab01>this[_0xe08c('0x40')][_0xe08c('0xbf')]){await this[_0xe08c('0xc')]();const _0x464929=this[_0xe08c('0xeb')]({'revision':this[_0xe08c('0x40')],'to':_0xa9ab01});_0x464929['authors']=_0x464929['authorsIds'][_0xe08c('0x29')](_0x5b9161=>this[_0xe08c('0xb2')]['plugins'][_0xe08c('0xa6')](_0xe08c('0xc9'))[_0xe08c('0x5d')](_0x5b9161)),this['currentRevision']['_update'](_0x464929);}}async[_0xe08c('0xc')](){this['_continueCurrentRevision']&&!this[_0xe08c('0xa4')]&&(await this[_0xe08c('0x77')](this[_0xe08c('0x40')]),this[_0xe08c('0x12')]['loadState'](this['currentRevision']),this[_0xe08c('0xa4')]={'fromVersion':this[_0xe08c('0x40')][_0xe08c('0x8e')],'authors':this[_0xe08c('0x40')]['authors']['slice']()});}async['saveRevision'](_0x26414b={},_0x44cdfd=null){const _0x3d1598=[];await this[_0xe08c('0xc')](),this[_0xe08c('0x6c')]=!0x1,_0x44cdfd>this[_0xe08c('0x40')][_0xe08c('0xbf')]&&(_0x44cdfd=null),null===_0x44cdfd&&(_0x44cdfd=await this[_0xe08c('0x94')][_0xe08c('0xc5')]());const _0xc622e3=this['_getFromVersion'](_0x44cdfd),_0x2b0680=this['buildRevisionData']({'from':_0xc622e3,'to':_0x44cdfd});if(this[_0xe08c('0x40')][_0xe08c('0xbf')]<_0x44cdfd){const _0x144b6a=this[_0xe08c('0xeb')]({'revision':this['currentRevision'],'from':_0x44cdfd,'to':_0x44cdfd});_0x144b6a['authors']=[],_0x144b6a[_0xe08c('0x17')]=[],_0x144b6a['id']=this[_0xe08c('0x40')]['id'],this[_0xe08c('0x40')][_0xe08c('0x32')](_0x144b6a,!0x0),delete _0x144b6a[_0xe08c('0x1a')],_0x3d1598[_0xe08c('0xe')](_0x144b6a);}_0x26414b['creatorId']=this[_0xe08c('0xb2')][_0xe08c('0xad')]['get']('Users')['me']['id'],_0x26414b[_0xe08c('0x96')]=_0x26414b[_0xe08c('0x96')]||null,_0x26414b['id']=_0x26414b['id']||_0x37c5ee(),_0x26414b={..._0x26414b,..._0x2b0680};const _0x4d76cc=this[_0xe08c('0x1e')](_0x26414b);_0x3d1598[_0xe08c('0xe')](_0x26414b);const _0x2c2286=this['repository']['getIndex'](_0x4d76cc);if(0x0!==_0x2c2286){const _0x12aa58=this[_0xe08c('0x3c')][_0xe08c('0x64')](_0x2c2286-0x1);if(_0x12aa58[_0xe08c('0x8e')]!==_0x44cdfd){const _0x3cc61b=this[_0xe08c('0x12')][_0xe08c('0xd3')](_0x44cdfd,_0x12aa58[_0xe08c('0xbf')]),_0x2e92c5={'id':_0x12aa58['id'],'diffData':_0x3cc61b['diffData'],'authorsIds':_0x3cc61b[_0xe08c('0x17')],'authors':_0x3cc61b[_0xe08c('0x17')][_0xe08c('0x29')](_0x5d02eb=>this['editor'][_0xe08c('0xad')][_0xe08c('0xa6')](_0xe08c('0xc9'))[_0xe08c('0x5d')](_0x5d02eb)),'fromVersion':_0x44cdfd};_0x12aa58===this[_0xe08c('0x40')]&&(_0x2e92c5[_0xe08c('0x48')]=new Date(_0x26414b['createdAt'][_0xe08c('0xd6')]()+0xa)),_0x12aa58[_0xe08c('0x32')](_0x2e92c5,!0x0),delete _0x2e92c5['authors'],_0x3d1598[_0xe08c('0xe')](_0x2e92c5);}}if(this[_0xe08c('0x2a')]){for(const _0x126cb0 of _0x3d1598)this['_bufferUpdate'](_0x126cb0['id'],_0x126cb0,!0x0);this[_0xe08c('0xd5')]();}return _0x4d76cc;}[_0xe08c('0x1e')](_0x5eea17){const _0x46a821=this[_0xe08c('0x3c')]['createRevision'](_0x5eea17);return this[_0xe08c('0x2a')]&&_0x46a821['on'](_0xe08c('0x32'),(_0x10351f,_0x3fef8d,_0x3bfe14)=>{_0x3bfe14||(this[_0xe08c('0x35')](_0x3fef8d['id'],_0x3fef8d,!0x0),this[_0xe08c('0xd5')]());}),this[_0xe08c('0x3c')][_0xe08c('0xaf')](_0x46a821,this[_0xe08c('0xee')](_0x46a821)),_0x46a821;}async[_0xe08c('0x7e')](_0x487bbe){await this[_0xe08c('0x77')](_0x487bbe);const _0x3383a7={};for(const _0x4fda3f in _0x487bbe['diffData']){const _0x28dc16=this[_0xe08c('0xe8')](JSON['parse'](_0x487bbe[_0xe08c('0xc3')][_0x4fda3f]['insertions'])),_0x2e3adc=this['editor'][_0xe08c('0xda')][_0xe08c('0x8a')][_0xe08c('0x3')],_0x3037c5=new _0x409a7f(_0x2e3adc,_0x28dc16[_0xe08c('0x29')](_0x430662=>F(_0x430662,this[_0xe08c('0xb2')])));this[_0xe08c('0xb2')][_0xe08c('0xd2')]['processor'][_0xe08c('0x7')](_0xe08c('0x6d')),_0x3383a7[_0x4fda3f]=this[_0xe08c('0xb2')][_0xe08c('0xd2')][_0xe08c('0x62')]['toData'](_0x3037c5),this[_0xe08c('0xb2')]['data'][_0xe08c('0x62')]['useFillerType']('default');}return _0x3383a7;}[_0xe08c('0xd5')](){if(0x0===this['_bufferedUpdates']['size'])return;if(this[_0xe08c('0xc4')])return;let _0x1ee2c3=Array[_0xe08c('0xba')](this['_bufferedUpdates']['values']());this[_0xe08c('0xbe')][_0xe08c('0x88')]();for(let _0x3e8bc5=0x0;_0x3e8bc5<_0x1ee2c3[_0xe08c('0x8d')];_0x3e8bc5++){const _0x55c4f9=_0x1ee2c3[_0x3e8bc5];let _0x254c5c=!0x1;for(const _0xffe922 of Object[_0xe08c('0x5')](_0x55c4f9))void 0x0===_0x55c4f9[_0xffe922]?delete _0x55c4f9[_0xffe922]:'id'!==_0xffe922&&(_0x254c5c=!0x0);_0x254c5c||(_0x1ee2c3[_0x3e8bc5]=null);}if(_0x1ee2c3=_0x1ee2c3[_0xe08c('0x67')](_0x3fa2db=>null!==_0x3fa2db),!_0x1ee2c3[_0xe08c('0x8d')])return;for(let _0x5bcc3f=0x0;_0x5bcc3f<_0x1ee2c3[_0xe08c('0x8d')];_0x5bcc3f++){const _0x47539c=_0x1ee2c3[_0x5bcc3f];void 0x0!==_0x47539c[_0xe08c('0x8e')]&&void 0x0===_0x47539c[_0xe08c('0xbf')]&&(_0x47539c['toVersion']=this[_0xe08c('0x3c')][_0xe08c('0x64')](_0x47539c['id'])[_0xe08c('0xbf')]),void 0x0!==_0x47539c[_0xe08c('0xbf')]&&void 0x0===_0x47539c['fromVersion']&&(_0x47539c[_0xe08c('0x8e')]=this[_0xe08c('0x3c')][_0xe08c('0x64')](_0x47539c['id'])['fromVersion']);}const _0x27a76d=this[_0xe08c('0xb2')][_0xe08c('0x91')][_0xe08c('0xa6')](_0xe08c('0xaa'));this[_0xe08c('0xc4')]=!0x0,this[_0xe08c('0x90')](),this[_0xe08c('0x2a')]['updateRevisions'](_0x1ee2c3,_0x27a76d)['finally'](()=>{this[_0xe08c('0xc4')]=!0x1;})[_0xe08c('0xe4')](_0x2c9f88=>{if(_0x2c9f88)for(const _0x59d58c of _0x2c9f88)this[_0xe08c('0xd8')]({'id':_0x59d58c['id'],'createdAt':_0x59d58c[_0xe08c('0x48')]});this[_0xe08c('0x66')](),this[_0xe08c('0xd5')]();});}[_0xe08c('0xd0')](_0x3c13a3){let _0x56cb88=this['editor'][_0xe08c('0x91')][_0xe08c('0xa6')](_0xe08c('0x21'));if(void 0x0===_0x56cb88){_0x56cb88={};for(const _0x278232 of this['editor']['model'][_0xe08c('0x3')][_0xe08c('0x87')]())_0x56cb88[_0x278232]='';}_0xe08c('0x1d')==typeof _0x56cb88&&(_0x56cb88={'main':_0x56cb88});let _0x2f6fad=!0x1;for(const _0x4ff293 of Object['keys'](_0x56cb88))_0x3c13a3[_0x4ff293]&&(_0x56cb88[_0x4ff293]!==_0x3c13a3[_0x4ff293]&&''!==_0x56cb88[_0x4ff293][_0xe08c('0x2e')]()&&(_0x2f6fad=!0x0),_0x56cb88[_0x4ff293]=_0x3c13a3[_0x4ff293]);_0x2f6fad&&_0x6ec304('editor-initial-data-replaced-with-revision-data'),this['editor'][_0xe08c('0x91')][_0xe08c('0x9a')]('initialData',_0x56cb88);}[_0xe08c('0x90')](){if(!this['_pendingAction']){const _0x5c2fed=this[_0xe08c('0xb2')][_0xe08c('0xad')]['get'](_0xe08c('0x3b'));this[_0xe08c('0x43')]=_0x5c2fed[_0xe08c('0x2c')](_0x2bf8a0(this['editor']['locale'],_0xe08c('0xab')));}}[_0xe08c('0x66')](){this[_0xe08c('0x43')]&&(this[_0xe08c('0xb2')][_0xe08c('0xad')][_0xe08c('0xa6')](_0xe08c('0x3b'))[_0xe08c('0x80')](this['_pendingAction']),this[_0xe08c('0x43')]=null);}[_0xe08c('0xee')](_0x3610c9){const _0x391477=this[_0xe08c('0x3c')][_0xe08c('0x8c')]();_0x391477[_0xe08c('0x20')]();let _0xacac58=0x0;for(;_0xacac58<_0x391477[_0xe08c('0x8d')];){const _0x3f8e0a=_0x391477[_0xacac58];if(_0x3f8e0a===this[_0xe08c('0x40')]){_0xacac58++;continue;}if(_0x3f8e0a['id']===this['_initialRevisionId'])break;const _0x39c4fc=_0x3610c9[_0xe08c('0xbf')]-_0x3f8e0a['toVersion']||_0x3610c9['fromVersion']-_0x3f8e0a[_0xe08c('0x8e')];if(_0x39c4fc>0x0)break;if(_0x39c4fc<0x0)_0xacac58++;else{if(!_0x3610c9[_0xe08c('0xac')]&&_0x3f8e0a[_0xe08c('0xac')])break;if(_0x3f8e0a[_0xe08c('0xac')]||!_0x3610c9[_0xe08c('0xac')]){if(_0x3610c9[_0xe08c('0x48')]>_0x3f8e0a[_0xe08c('0x48')])break;_0xacac58++;}else _0xacac58++;}}return _0xacac58;}[_0xe08c('0xd8')](_0x46fd5c){const _0x4e5311=this[_0xe08c('0x3c')][_0xe08c('0x64')](_0x46fd5c['id']);if(_0x46fd5c[_0xe08c('0x48')]&&(_0x46fd5c[_0xe08c('0x48')]=new Date(_0x46fd5c[_0xe08c('0x48')])),_0x46fd5c[_0xe08c('0x17')]){const _0x3c695e=this[_0xe08c('0xb2')]['plugins'][_0xe08c('0xa6')]('Users');_0x46fd5c[_0xe08c('0x1a')]=_0x46fd5c['authorsIds'][_0xe08c('0x29')](_0x21e4a0=>_0x3c695e['getUser'](_0x21e4a0));}_0x4e5311['_update'](_0x46fd5c,!0x0);}[_0xe08c('0xeb')]({revision:_0x2a6be7=null,from:_0x2cf3a3=null,to:_0x1cc586=null}){_0x2cf3a3=null!==_0x2cf3a3?_0x2cf3a3:_0x2a6be7[_0xe08c('0x8e')],_0x1cc586=null!==_0x1cc586?_0x1cc586:_0x2a6be7[_0xe08c('0xbf')];const _0x3bd308=this[_0xe08c('0x12')][_0xe08c('0xd3')](_0x2cf3a3,_0x1cc586),_0x49d84b={'diffData':_0x3bd308[_0xe08c('0xc3')],'authorsIds':_0x3bd308[_0xe08c('0x17')],'fromVersion':_0x2cf3a3,'toVersion':_0x1cc586};if(!_0x2a6be7||_0x1cc586!==_0x2a6be7[_0xe08c('0xbf')]){const _0x445c48=_0x1cc586-0x1,_0x6bde10=this['_source']['history'][_0xe08c('0xb7')](_0x445c48);_0x49d84b['createdAt']=_0x6bde10&&_0x6bde10[_0xe08c('0x48')]||new Date();}if(this[_0xe08c('0xa4')]&&_0x2cf3a3===this['_loadedStateData'][_0xe08c('0x8e')])for(const _0x64174a of this[_0xe08c('0xa4')][_0xe08c('0x1a')])_0x49d84b['authorsIds']['includes'](_0x64174a['id'])||_0x49d84b[_0xe08c('0x17')][_0xe08c('0xe')](_0x64174a['id']);return _0x49d84b;}['_loadRevisionData'](_0x8240f5){if(!_0x8240f5||_0x8240f5['diffData'])return Promise['resolve']();{const _0x5b7e7d=this['editor'][_0xe08c('0x91')]['get'](_0xe08c('0xaa'));return this[_0xe08c('0x2a')][_0xe08c('0x64')]({'channelId':_0x5b7e7d,'revisionId':_0x8240f5['id']})[_0xe08c('0xe4')](_0x43b67d=>{_0x8240f5['diffData']=_0x43b67d[_0xe08c('0xc3')];});}}[_0xe08c('0x35')](_0xddf155,_0x488beb,_0x343f13){if(this[_0xe08c('0xbe')][_0xe08c('0x86')](_0xddf155)){const _0x35f227=this[_0xe08c('0xbe')][_0xe08c('0xa6')](_0xddf155);_0x488beb=_0x343f13?{..._0x35f227,..._0x488beb}:{..._0x488beb,..._0x35f227};}this[_0xe08c('0xbe')]['set'](_0xddf155,_0x488beb);}[_0xe08c('0x93')](_0xf0e0e3){const _0x2ed5e7=this[_0xe08c('0x3c')][_0xe08c('0x8c')]();_0x2ed5e7[_0xe08c('0x20')](),_0x2ed5e7['shift']();const _0x3ec06d=_0x2ed5e7[_0xe08c('0x1b')](_0xc0fbd1=>_0xc0fbd1[_0xe08c('0xbf')]<=_0xf0e0e3)[_0xe08c('0xbf')];return _0x3ec06d<this[_0xe08c('0xca')]?this[_0xe08c('0xca')]:_0x3ec06d;}[_0xe08c('0xa7')](_0xbe5993){const _0x4abe7b=this[_0xe08c('0x3c')][_0xe08c('0x64')](this[_0xe08c('0x3c')]['length']-0x1);if(_0x4abe7b)this[_0xe08c('0xb6')]=_0x4abe7b['id'];else{const _0x56f476=!this[_0xe08c('0xb2')]['model'][_0xe08c('0x3')]['roots'][_0xe08c('0x1b')](_0x103577=>this['editor']['model'][_0xe08c('0x5f')](_0x103577)),_0x3c3775=this[_0xe08c('0xb2')][_0xe08c('0xad')][_0xe08c('0xa6')](_0xe08c('0xc9'))['me']['id'],_0x44d218=_0x2bf8a0(this['editor'][_0xe08c('0xc0')],_0x56f476?_0xe08c('0x9f'):'Initial\x20revision');this[_0xe08c('0x44')]({'from':_0xbe5993,'to':_0xbe5993,'id':this[_0xe08c('0xb6')],'name':_0x44d218,'creatorId':_0x3c3775});}}[_0xe08c('0xc7')](_0x1196af){const _0x5bf210=this[_0xe08c('0x94')]['getCurrentRevisionId']();this['currentRevision']=this['repository'][_0xe08c('0x64')](_0x5bf210),this['currentRevision']||(this[_0xe08c('0x40')]=this['_makeRevision']({'from':_0x1196af,'to':_0x1196af,'id':_0x5bf210,'name':'','creatorId':null}));}[_0xe08c('0x44')]({name:_0x39568e,from:_0x1ad87d,to:_0xc74caf,creatorId:_0x2d641a,id:_0xbeed2e}){const _0x4186ce=this['buildRevisionData']({'from':_0x1ad87d,'to':_0xc74caf});_0x4186ce[_0xe08c('0x96')]=_0x39568e,_0x4186ce[_0xe08c('0x41')]=_0x2d641a,_0x4186ce['id']=_0xbeed2e;const _0x261c4=this[_0xe08c('0x1e')](_0x4186ce);return this[_0xe08c('0x2a')]&&this[_0xe08c('0x35')](_0x4186ce['id'],_0x4186ce,!0x0),_0x261c4;}['_setConversion'](){this[_0xe08c('0xb2')][_0xe08c('0x46')][_0xe08c('0x60')](_0xe08c('0x78'))[_0xe08c('0x68')]({'model':_0xe08c('0x2')});}[_0xe08c('0xe8')](_0x50ec08){return(_0x50ec08=_0x50ec08[_0xe08c('0x67')](_0x4634bd=>!_0x4634bd['name']||'revision-start'!==_0x4634bd[_0xe08c('0x96')]&&_0xe08c('0x39')!==_0x4634bd[_0xe08c('0x96')]))['forEach'](_0x3f62ef=>{_0xe08c('0x1d')!=typeof _0x3f62ef&&(_0x3f62ef['children']=this[_0xe08c('0xe8')](_0x3f62ef['children']),_0x3f62ef[_0xe08c('0xdb')]=_0x3f62ef['attributes'][_0xe08c('0x67')](_0xa33251=>!_0xa33251[0x0][_0xe08c('0x9e')]('data-revision-')));}),_0x50ec08;}}function F(_0x5b4ad4,_0x42a73d){const _0x17741e=_0x42a73d[_0xe08c('0xda')][_0xe08c('0x8a')]['document'];if('string'==typeof _0x5b4ad4)return new _0x9a4db5(_0x17741e,_0x5b4ad4);{const _0x14bfe4=_0x5b4ad4[_0xe08c('0x36')]['map'](_0x574ad3=>F(_0x574ad3,_0x42a73d));return new(V[_0x5b4ad4[(_0xe08c('0x74'))]]||_0xc72f6f)(_0x17741e,_0x5b4ad4[_0xe08c('0x96')],_0x5b4ad4[_0xe08c('0xdb')],_0x14bfe4);}}class T{constructor(_0x2bbc2f){this[_0xe08c('0xb2')]=_0x2bbc2f,this[_0xe08c('0x55')]=new Map(),this[_0xe08c('0x25')]=-0x1,this[_0xe08c('0x63')]=-0x1,this[_0xe08c('0x16')]=new Map(),this[_0xe08c('0x4c')]=new Map(),this[_0xe08c('0x6b')]=new Map(),this[_0xe08c('0xc2')]=new Map(),this[_0xe08c('0x57')]=new Map(),this['_touched']=new Map(),this[_0xe08c('0x95')]=new Map(),this['_revisionId']=0x1,this['_rootNames']=this[_0xe08c('0xb2')]['model']['document'][_0xe08c('0x87')](),this[_0xe08c('0x15')]['push'](_0xe08c('0x7b'));}[_0xe08c('0x6')](_0x41c8bd){this['source']=_0x41c8bd;const _0x7b8706=new Map();for(const _0x57a0f7 of this[_0xe08c('0x15')]){const _0x386713=J(this[_0xe08c('0xb2')][_0xe08c('0x47')]['document'][_0xe08c('0xbc')](_0x57a0f7));_0x7b8706['set'](_0x57a0f7,_0x386713);}const _0x226a08=Array['from'](this[_0xe08c('0xb2')][_0xe08c('0x47')][_0xe08c('0x13')])[_0xe08c('0x29')](_0x115036=>[_0x115036[_0xe08c('0x96')],_0x115036[_0xe08c('0xe1')]()]),_0x2b65c9=this[_0xe08c('0x84')]['version'];this['_saveMetaData'](_0x2b65c9,_0x7b8706,_0x226a08),this[_0xe08c('0xde')]=this[_0xe08c('0x45')];}[_0xe08c('0xd3')](_0x5b569b,_0x1bd82a){if(this['_lastFrom']===_0x5b569b&&this[_0xe08c('0x63')]<=_0x1bd82a)this['_savedMetaData'][_0xe08c('0xb0')]>0x1&&this[_0xe08c('0x51')](this[_0xe08c('0x63')]),this[_0xe08c('0xb')](this[_0xe08c('0x63')],_0x1bd82a,!0x0);else{if(!this['_savedMetaData'][_0xe08c('0x86')](_0x5b569b)){const _0xc7139f=this['_getPreviousFrom'](_0x5b569b);this['_calculateMetaData'](_0xc7139f,_0x5b569b,!0x1);}this[_0xe08c('0xea')](_0x5b569b,_0x1bd82a,!0x0);}return this['_lastFrom']=_0x5b569b,this[_0xe08c('0x63')]=_0x1bd82a,this[_0xe08c('0x58')]();}[_0xe08c('0x2f')](_0x3824bd){this[_0xe08c('0x4d')](),this[_0xe08c('0x25')]=_0x3824bd[_0xe08c('0x8e')],this[_0xe08c('0x63')]=_0x3824bd[_0xe08c('0xbf')];for(const _0x389777 in _0x3824bd[_0xe08c('0xc3')]){const _0x35d647=this['_makeModelFromViewString'](_0x3824bd[_0xe08c('0xc3')][_0x389777][_0xe08c('0x70')]);_0x35d647[_0xe08c('0x38')]=_0x389777,this[_0xe08c('0x6b')][_0xe08c('0x9a')](_0x389777,_0x35d647);const _0x5cbef3=this[_0xe08c('0x3d')](_0x35d647);this[_0xe08c('0x57')][_0xe08c('0x9a')](_0x389777,_0x5cbef3);for(const [_0x45a5e6,_0x2970c9]of _0x35d647[_0xe08c('0x13')]){if(!_0x45a5e6[_0xe08c('0x9e')]('revision:'))continue;const _0x13f80c=_0x45a5e6['split'](':')[0x2];for(const _0x271932 of _0x2970c9[_0xe08c('0x7a')]({'singleCharacters':!0x0})){const _0x48d8e1=this['_getVidAttributeName'](_0x271932),_0x176437=_0xe08c('0x83')==_0x271932[_0xe08c('0x74')]?_0x271932[_0xe08c('0x4e')]['path'][_0xe08c('0x7c')](0x0,-0x1):_0x271932[_0xe08c('0x4e')][_0xe08c('0x89')],_0x994f93=_0x5cbef3[_0xe08c('0x75')](_0x176437)[_0xe08c('0xa8')](_0x48d8e1);this[_0xe08c('0xe6')]['set'](_0x994f93,{'userId':_0x13f80c});}}}this['_startingRevisionId']=this[_0xe08c('0x45')];const _0x2ecae5=[...Array(this[_0xe08c('0x45')])[_0xe08c('0x5')]()]['slice'](0x1)[_0xe08c('0x67')](_0x224d3=>!this[_0xe08c('0xe6')]['has'](_0x224d3));let _0x10e51c=0x0;for(const _0x1b3606 in _0x3824bd[_0xe08c('0xc3')]){const _0xa98682=this['_makeModelFromViewString'](_0x3824bd[_0xe08c('0xc3')][_0x1b3606][_0xe08c('0xdc')]);_0xa98682[_0xe08c('0x38')]=_0x1b3606,this[_0xe08c('0x4c')][_0xe08c('0x9a')](_0x1b3606,_0xa98682);const _0x170ffd=this[_0xe08c('0x3d')](_0xa98682,Number['NEGATIVE_INFINITY']);this[_0xe08c('0xc2')]['set'](_0x1b3606,_0x170ffd);for(const [_0x52bebd,_0x43bbe1]of _0xa98682[_0xe08c('0x13')]){if(!_0x52bebd[_0xe08c('0x9e')](_0xe08c('0x28')))continue;const _0x18deab=_0x52bebd[_0xe08c('0xae')](':')[0x2];for(const _0x5f1924 of _0x43bbe1[_0xe08c('0x7a')]({'singleCharacters':!0x0})){const _0x143312=this[_0xe08c('0xb9')](_0x5f1924),_0x18afed=this[_0xe08c('0x45')]++,_0x25cdb4=_0xe08c('0x83')==_0x5f1924[_0xe08c('0x74')]?_0x5f1924[_0xe08c('0x4e')][_0xe08c('0x89')][_0xe08c('0x7c')](0x0,-0x1):_0x5f1924[_0xe08c('0x4e')][_0xe08c('0x89')];_0x170ffd[_0xe08c('0x75')](_0x25cdb4)[_0xe08c('0x53')](_0x143312,_0x18afed),this[_0xe08c('0xe6')][_0xe08c('0x9a')](_0x18afed,{'userId':_0x18deab});}}for(const _0x3df0b4 of this['editor']['model'][_0xe08c('0xe2')](_0xa98682)[_0xe08c('0x7a')]({'singleCharacters':!0x0})){const _0x25ef70=this[_0xe08c('0xb9')](_0x3df0b4),_0x548ede=_0xe08c('0x83')==_0x3df0b4['type']?_0x3df0b4['previousPosition'][_0xe08c('0x89')][_0xe08c('0x7c')](0x0,-0x1):_0x3df0b4[_0xe08c('0x4e')]['path'],_0x1c820b=_0x170ffd[_0xe08c('0x75')](_0x548ede);_0x1c820b['getAttribute'](_0x25ef70)>0x0||_0x1c820b[_0xe08c('0x53')](_0x25ef70,_0x2ecae5[_0x10e51c++]);}const _0x339412=new _0x588493();_0x339412[_0xe08c('0x38')]='$graveyard',this[_0xe08c('0x6b')]['set'](_0xe08c('0x7b'),_0x339412),this[_0xe08c('0x57')][_0xe08c('0x9a')](_0xe08c('0x7b'),this['_makeIdsRoot'](_0x339412,0x1));const _0x1e62ab=new _0x588493();_0x1e62ab[_0xe08c('0x38')]='$graveyard',this[_0xe08c('0x4c')][_0xe08c('0x9a')](_0xe08c('0x7b'),_0x1e62ab),this[_0xe08c('0xc2')]['set'](_0xe08c('0x7b'),this['_makeIdsRoot'](_0x1e62ab,0x1));for(const [_0x12be67,_0x175c59]of _0xa98682[_0xe08c('0x13')])_0x12be67[_0xe08c('0x9e')]('revision:')||this['_markers'][_0xe08c('0x9a')](_0x12be67,_0x175c59);}const _0x21032b=Array[_0xe08c('0xba')](this[_0xe08c('0x4c')])[_0xe08c('0x29')](([_0x1eae6e,_0x1810d8])=>[_0x1eae6e,J(_0x1810d8)]);this['_saveMetaData'](this['_lastTo'],_0x21032b,this[_0xe08c('0x16')]);}[_0xe08c('0x23')](_0x150a12){const _0x1ff70c=JSON['parse'](_0x150a12),_0x5155db=this[_0xe08c('0xb2')]['editing']['view'][_0xe08c('0x3')],_0x1ada4c=new _0x409a7f(_0x5155db,_0x1ff70c[_0xe08c('0x29')](_0x2be2ac=>F(_0x2be2ac,this[_0xe08c('0xb2')])));return this['editor']['data'][_0xe08c('0xa5')](_0x1ada4c);}['_saveEmptyMetaData'](){const _0xcce444=new Map();for(const _0xe98fb8 of this[_0xe08c('0x15')]){const _0x13e70a=new _0x588493();_0x13e70a[_0xe08c('0x38')]=_0xe98fb8,_0xcce444[_0xe08c('0x9a')](_0xe98fb8,_0x13e70a);}this[_0xe08c('0xb4')](Number['NEGATIVE_INFINITY'],_0xcce444,[]);}[_0xe08c('0xb4')](_0x8b875f,_0xf1a587,_0x2b1885){const _0x2419e5=new Map(_0xf1a587),_0x2a6431=new Map();for(const [_0x3ba63a,_0x474713]of _0x2b1885)_0x2a6431['set'](_0x3ba63a,{'start':_0x474713[_0xe08c('0xe5')]['clone'](),'end':_0x474713['end'][_0xe08c('0xdd')](),'rootName':_0x474713['root'][_0xe08c('0x38')]});this[_0xe08c('0x55')][_0xe08c('0x9a')](_0x8b875f,{'roots':_0x2419e5,'markers':_0x2a6431});}[_0xe08c('0x51')](_0x3154a7){this[_0xe08c('0x55')][_0xe08c('0x76')](_0x3154a7);}[_0xe08c('0x6e')](){this[_0xe08c('0x4d')](),this['_lastFrom']=-0x1,this[_0xe08c('0x63')]=-0x1,this[_0xe08c('0x55')][_0xe08c('0x88')](),this[_0xe08c('0x6')](this[_0xe08c('0x84')]);}['_reset'](){this[_0xe08c('0xe6')]['clear'](),this[_0xe08c('0x95')][_0xe08c('0x88')](),this[_0xe08c('0x4c')][_0xe08c('0x88')](),this['_baseRoots'][_0xe08c('0x88')](),this[_0xe08c('0xc2')][_0xe08c('0x88')](),this[_0xe08c('0x57')][_0xe08c('0x88')](),this['_markers']['clear'](),this[_0xe08c('0x45')]=0x1,this[_0xe08c('0xde')]=this['_revisionId'];}[_0xe08c('0x3d')](_0x3637bc,_0x47ffce=null){let _0x1a4d9d=null;_0x3637bc['is'](_0xe08c('0x4f'))||(_0x1a4d9d=new _0x45e8ea(_0x3637bc[_0xe08c('0x96')],{'vid_start':null===_0x47ffce?this[_0xe08c('0x45')]++:_0x47ffce++}));const _0x57197d=[];for(const _0x6d24e5 of _0x3637bc['getChildren']())if(_0x6d24e5['is'](_0xe08c('0x2b'))){_0x57197d[_0xe08c('0xe')](this[_0xe08c('0x3d')](_0x6d24e5,_0x47ffce));const _0x38d081=_0x57197d[_0x57197d[_0xe08c('0x8d')]-0x1];null!==_0x47ffce&&(_0x47ffce=_0x38d081['is'](_0xe08c('0x2b'),_0xe08c('0xd'))?_0x38d081[_0xe08c('0xa8')](_0xe08c('0x71'))+0x1:_0x38d081[_0xe08c('0xa8')](_0xe08c('0x69'))+0x1);}else for(let _0x2f95a4=0x0;_0x2f95a4<_0x6d24e5['offsetSize'];_0x2f95a4++)_0x57197d['push'](new _0x45e8ea(_0xe08c('0xd'),{'vid':null===_0x47ffce?this['_revisionId']++:_0x47ffce++}));if(_0x3637bc['is'](_0xe08c('0x4f'))){const _0x50213f=new _0x588493(_0x57197d);return _0x50213f[_0xe08c('0x38')]=_0x3637bc[_0xe08c('0x38')],_0x50213f;}return _0x1a4d9d[_0xe08c('0x53')](_0xe08c('0x69'),null===_0x47ffce?this[_0xe08c('0x45')]++:_0x47ffce++),_0x1a4d9d[_0xe08c('0x18')](0x0,_0x57197d),_0x1a4d9d;}[_0xe08c('0xea')](_0x1ec7ac,_0x19c75c,_0xc6cb73){this[_0xe08c('0x4d')]();const {roots:_0xa1ee06,markers:_0x51dc0c}=this[_0xe08c('0x55')]['get'](_0x1ec7ac);this[_0xe08c('0x6b')]=new Map(_0xa1ee06);for(const [_0x41e39f,_0x2bae2d]of this[_0xe08c('0x6b')])if('$graveyard'!==_0x41e39f&&(this[_0xe08c('0x4c')][_0xe08c('0x9a')](_0x41e39f,J(_0x2bae2d)),_0xc6cb73)){const _0x4795cc=this[_0xe08c('0x45')];this[_0xe08c('0xc2')][_0xe08c('0x9a')](_0x41e39f,this[_0xe08c('0x3d')](_0x2bae2d)),this[_0xe08c('0x57')][_0xe08c('0x9a')](_0x41e39f,this[_0xe08c('0x3d')](_0x2bae2d,_0x4795cc));}this[_0xe08c('0xde')]=this[_0xe08c('0x45')],this[_0xe08c('0x4c')][_0xe08c('0x9a')](_0xe08c('0x7b'),J(this[_0xe08c('0x6b')][_0xe08c('0xa6')](_0xe08c('0x7b')))),_0xc6cb73&&this[_0xe08c('0xc2')][_0xe08c('0x9a')](_0xe08c('0x7b'),this[_0xe08c('0x3d')](this[_0xe08c('0x6b')][_0xe08c('0xa6')](_0xe08c('0x7b'))));for(const [_0x537765,_0x5d8579]of _0x51dc0c){const _0x567e91=this[_0xe08c('0x6b')][_0xe08c('0xa6')](_0x5d8579[_0xe08c('0x38')]),_0x465fc2=this[_0xe08c('0x4c')][_0xe08c('0xa6')](_0x5d8579['rootName']),_0x1c7165=new _0x18b630(this[_0xe08c('0xa')](_0x5d8579[_0xe08c('0xe5')],_0x567e91),this[_0xe08c('0xa')](_0x5d8579['end'],_0x567e91)),_0x339c0d=this['_fixRange'](_0x1c7165,_0x465fc2);_0x567e91[_0xe08c('0x13')]['set'](_0x537765,_0x1c7165),this[_0xe08c('0x16')][_0xe08c('0x9a')](_0x537765,_0x339c0d);}this[_0xe08c('0xb')](_0x1ec7ac,_0x19c75c,_0xc6cb73);}[_0xe08c('0xb')](_0x28de3e,_0x5882ad,_0x434157){for(const _0x65494a of this[_0xe08c('0x84')][_0xe08c('0x11')](_0x28de3e,_0x5882ad))this['_handleOperation'](_0x65494a,_0x434157);for(const _0x38a725 of this[_0xe08c('0x4c')][_0xe08c('0x3a')]())_0x38a725[_0xe08c('0x13')][_0xe08c('0x88')]();for(const [_0x41c5c4,_0x23b9d3]of this[_0xe08c('0x16')]){this[_0xe08c('0x4c')][_0xe08c('0xa6')](_0x23b9d3[_0xe08c('0x4b')][_0xe08c('0x38')])['markers'][_0xe08c('0x9a')](_0x41c5c4,_0x23b9d3[_0xe08c('0xdd')]());}this[_0xe08c('0xb4')](_0x5882ad,Array['from'](this['_diffRoots'])['map'](([_0x1bf2ef,_0x2d7e03])=>[_0x1bf2ef,J(_0x2d7e03)]),this['_markers']);}['_getPreviousFrom'](_0x3a6a81){const _0x160cef=Array[_0xe08c('0xba')](this[_0xe08c('0x55')][_0xe08c('0x5')]());_0x160cef[_0xe08c('0x24')]((_0x299369,_0x1cf472)=>_0x299369-_0x1cf472),_0x160cef['reverse']();for(const _0xcee2ae of _0x160cef)if(_0xcee2ae<_0x3a6a81)return _0xcee2ae;return this['_saveEmptyMetaData'](),Number['NEGATIVE_INFINITY'];}[_0xe08c('0xe9')](_0x3e9f9d,_0x30737a){const _0x5a9bcb=Array[_0xe08c('0xba')](_0x30737a[_0xe08c('0x13')])[_0xe08c('0x29')](([_0x57a8f0,_0x4ee401])=>[_0x57a8f0,this['_fixRange'](_0x4ee401,_0x3e9f9d)]);_0x3e9f9d[_0xe08c('0x13')]=new Map(_0x5a9bcb);}['_transformMarkers'](_0x231b92){for(const _0x57e46b of this[_0xe08c('0x16')]['values']()){const _0x48ed0c=_0x57e46b[_0xe08c('0x30')](_0x231b92),_0x2a0801=_0x18b630[_0xe08c('0x49')](_0x48ed0c);_0x57e46b[_0xe08c('0xe5')]=_0x2a0801[_0xe08c('0xe5')],_0x57e46b['end']=_0x2a0801[_0xe08c('0x6a')];}}[_0xe08c('0x5a')](_0xe035f7,_0xa1c44){const _0xd73914=this[_0xe08c('0xc6')](_0xe035f7,this[_0xe08c('0x4c')]);if(_0xe08c('0x37')!==_0xe035f7[_0xe08c('0x74')]&&(_0xd73914[_0xe08c('0x5b')](),this[_0xe08c('0xed')](_0xd73914)),_0xa1c44)switch(_0xd73914[_0xe08c('0x74')]){case _0xe08c('0x5c'):this[_0xe08c('0xf')](_0xe035f7);break;case _0xe08c('0xa3'):case'remove':case _0xe08c('0x3f'):this['_handleMoveOperation'](_0xe035f7);break;case _0xe08c('0xb3'):this[_0xe08c('0x26')](_0xe035f7);break;case _0xe08c('0xae'):this[_0xe08c('0x54')](_0xe035f7);break;case _0xe08c('0x37'):this[_0xe08c('0xa2')](_0xe035f7);}}[_0xe08c('0xc6')](_0x2a526c,_0x57b76a){const _0x489c7f=_0x2a526c['clone']();return _0x489c7f[_0xe08c('0x9d')]=_0x2a526c[_0xe08c('0x9d')],this['_fixOperation'](_0x489c7f,_0x57b76a),_0x489c7f;}[_0xe08c('0xd4')](_0x1632c8){return _0x1632c8[_0xe08c('0x29')](_0x2bd1a2=>{const _0x52584c=this[_0xe08c('0xb9')](_0x2bd1a2);return Number(_0x2bd1a2[_0xe08c('0x72')]['getAttribute'](_0x52584c));});}['_generateTape'](_0x4e2b01,_0x459860){if(_0x4e2b01['is'](_0xe08c('0x2b'),_0xe08c('0xd')))_0x459860[_0xe08c('0xe')]({'item':_0x4e2b01,'type':_0xe08c('0x4a')});else{_0x4e2b01['is']('element')&&_0x459860['push']({'item':_0x4e2b01,'type':_0xe08c('0xcb')});for(const _0x237d79 of _0x4e2b01['getChildren']())this[_0xe08c('0x2d')](_0x237d79,_0x459860);_0x4e2b01['is'](_0xe08c('0x2b'))&&_0x459860[_0xe08c('0xe')]({'item':_0x4e2b01,'type':_0xe08c('0x83')});}return _0x459860;}[_0xe08c('0x58')](){const _0xa8163f=this[_0xe08c('0xb2')]['model'][_0xe08c('0x3')]['getRootNames'](),_0x31ae5f=new Map(this[_0xe08c('0xe6')]),_0x3a7b8b=new Map(_0x31ae5f),_0x355854=new Map(),_0x3cf27f={'insertions':{},'deletions':{}},_0x67cb26={'insertions':{},'deletions':{}},_0x5d4b47=new Map();for(const _0x14b827 of _0xa8163f){const _0x263667=this['_diffRoots'][_0xe08c('0xa6')](_0x14b827),_0x24b5ad=this[_0xe08c('0x6b')][_0xe08c('0xa6')](_0x14b827);_0x3cf27f['insertions'][_0x14b827]=J(_0x263667),_0x3cf27f['deletions'][_0x14b827]=J(_0x24b5ad),this[_0xe08c('0xe9')](_0x3cf27f[_0xe08c('0x70')][_0x14b827],_0x24b5ad),this[_0xe08c('0xe9')](_0x3cf27f[_0xe08c('0xdc')][_0x14b827],_0x263667),_0x67cb26['insertions'][_0x14b827]=this[_0xe08c('0x2d')](this['_idsRoots'][_0xe08c('0xa6')](_0x14b827),[]),_0x67cb26[_0xe08c('0x70')][_0x14b827]=this['_generateTape'](this[_0xe08c('0x57')][_0xe08c('0xa6')](_0x14b827),[]);}for(const _0x308404 of _0xa8163f){const _0x572a02=_0x67cb26[_0xe08c('0xdc')][_0x308404];for(const _0x3f03f4 of _0x572a02){const _0x52da7e=this['_getVidAttributeName'](_0x3f03f4),_0x33420a=_0x3f03f4['item'][_0xe08c('0xa8')](_0x52da7e);_0x3a7b8b[_0xe08c('0x76')](_0x33420a),_0x33420a>=this[_0xe08c('0xde')]&&_0x355854[_0xe08c('0x9a')](_0x33420a,_0x31ae5f['get'](_0x33420a));}}for(const _0x5c43fd of _0xa8163f){const _0x1dd50=_0x67cb26['insertions'][_0x5c43fd],_0x2030df=this[_0xe08c('0xd4')](_0x67cb26[_0xe08c('0x70')][_0x5c43fd]);let _0x3ac49b=0x0;for(const _0x5ee59e of _0x1dd50){const _0x503f97=this[_0xe08c('0xb9')](_0x5ee59e),_0x180c8e=_0x5ee59e[_0xe08c('0x72')]['getAttribute'](_0x503f97);if(!_0x355854['has'](_0x180c8e)&&!_0x5d4b47[_0xe08c('0x86')](_0x180c8e)){if(_0x3a7b8b[_0xe08c('0x86')](_0x180c8e))_0x3ac49b++;else{if(_0x180c8e!=_0x2030df[_0x3ac49b]){const _0x5d500b=_0x31ae5f['get'](_0x180c8e)||_0x31ae5f[_0xe08c('0xa6')](_0x2030df[_0x3ac49b]);for(;_0x180c8e!=_0x2030df[_0x3ac49b];)_0x3a7b8b[_0xe08c('0x86')](_0x2030df[_0x3ac49b])||(_0x5d4b47[_0xe08c('0x9a')](_0x2030df[_0x3ac49b],_0x5d500b),_0x31ae5f[_0xe08c('0x9a')](_0x2030df[_0x3ac49b],_0x5d500b)),_0x3ac49b++;}_0x3ac49b++;}}}}for(const _0x2c15dc of _0xa8163f){const _0x31323f=_0x67cb26[_0xe08c('0xdc')][_0x2c15dc];for(const _0x5ee702 of _0x31323f){const _0x13b768=this[_0xe08c('0xb9')](_0x5ee702),_0x573f90=_0x5ee702[_0xe08c('0x72')][_0xe08c('0xa8')](_0x13b768);if(_0x5d4b47[_0xe08c('0x86')](_0x573f90)){const _0x2fb456=_0x5d4b47[_0xe08c('0xa6')](_0x573f90);_0x3a7b8b[_0xe08c('0x86')](_0x573f90)||_0x3a7b8b[_0xe08c('0x9a')](_0x573f90,{..._0x2fb456}),_0x355854[_0xe08c('0x9a')](_0x573f90,{..._0x2fb456});}}}for(const _0x10be4e of _0x3a7b8b[_0xe08c('0x5')]())_0x10be4e>=this[_0xe08c('0xde')]&&_0x3a7b8b[_0xe08c('0x76')](_0x10be4e);const _0x1dcd0a=new Map();for(const _0x47141c of _0xa8163f){let _0x371bf4=_0x67cb26['insertions'][_0x47141c];for(const _0x211a26 of _0x371bf4)if(_0x211a26[_0xe08c('0x72')]['is']('element',_0xe08c('0xc1'))){const _0x19f5e6=this[_0xe08c('0xb9')](_0x211a26),_0x40809a=_0x211a26['item'][_0xe08c('0xa8')](_0x19f5e6);if(_0x355854[_0xe08c('0x86')](_0x40809a)){const _0x1baa41=_0x211a26[_0xe08c('0x72')][_0xe08c('0xec')][_0xe08c('0xec')]['getAttribute'](_0xe08c('0xe7')),_0xfb2f7a=_0x1dcd0a[_0xe08c('0xa6')](_0x1baa41)||new Set();_0xfb2f7a[_0xe08c('0x2c')](_0x355854[_0xe08c('0xa6')](_0x40809a)[_0xe08c('0x19')]),_0x1dcd0a[_0xe08c('0x9a')](_0x1baa41,_0xfb2f7a);}}_0x371bf4=_0x67cb26[_0xe08c('0x70')][_0x47141c];for(const _0x8e149d of _0x371bf4)if(_0x8e149d[_0xe08c('0x72')]['is'](_0xe08c('0x2b'),_0xe08c('0xc1'))){const _0x50f9e2=this['_getVidAttributeName'](_0x8e149d),_0x121240=_0x8e149d[_0xe08c('0x72')][_0xe08c('0xa8')](_0x50f9e2);if(_0x3a7b8b[_0xe08c('0x86')](_0x121240)){const _0x14b6e6=_0x8e149d['item']['parent'][_0xe08c('0xec')]['getAttribute'](_0xe08c('0xe7')),_0xd8309a=_0x1dcd0a[_0xe08c('0xa6')](_0x14b6e6)||new Set();_0xd8309a[_0xe08c('0x2c')](_0x3a7b8b[_0xe08c('0xa6')](_0x121240)[_0xe08c('0x19')]),_0x1dcd0a[_0xe08c('0x9a')](_0x14b6e6,_0xd8309a);}}for(const _0x198f81 of _0x1dcd0a[_0xe08c('0x5')]())(_0x355854['has'](_0x198f81)||_0x3a7b8b[_0xe08c('0x86')](_0x198f81))&&_0x1dcd0a[_0xe08c('0x76')](_0x198f81);}for(const _0x3e5204 of _0xa8163f){const _0x455ef5=_0x67cb26['insertions'][_0x3e5204];let _0x3591fa=null,_0x7dd944=null;for(const _0xaa9f8c of _0x455ef5){const _0x354dd6=this[_0xe08c('0xb9')](_0xaa9f8c),_0x532454=_0xaa9f8c[_0xe08c('0x72')][_0xe08c('0xa8')](_0x354dd6),_0x2b4c03=_0x1dcd0a[_0xe08c('0xa6')](_0x532454);_0x2b4c03&&'elementStart'==_0xaa9f8c[_0xe08c('0x74')]&&(_0x3591fa=Array[_0xe08c('0xba')](_0x2b4c03)[0x0],_0x7dd944=_0xaa9f8c[_0xe08c('0x72')][_0xe08c('0xa8')]('vid_end')),_0x3591fa&&(_0x3a7b8b[_0xe08c('0x9a')](_0x532454,{'userId':_0x3591fa}),_0x355854['set'](_0x532454,{'userId':_0x3591fa})),_0x532454==_0x7dd944&&(_0x3591fa=null,_0x7dd944=null);}}const _0x4cd568={},_0x1709bc=new Set();for(const _0xb9ffb8 of _0xa8163f){const _0x3cc1a0=_0x3cf27f[_0xe08c('0x70')][_0xb9ffb8],_0x256724=_0x3cf27f[_0xe08c('0xdc')][_0xb9ffb8];for(const {userId:_0x1383d4}of this['_touchedMarkers'][_0xe08c('0x3a')]())null!==_0x1383d4&&_0x1709bc[_0xe08c('0x2c')](_0x1383d4);this[_0xe08c('0x1c')](_0x256724,_0x67cb26[_0xe08c('0xdc')][_0xb9ffb8],_0x355854,_0xe08c('0x79'),_0x1709bc),this['_markChanges'](_0x3cc1a0,_0x67cb26['deletions'][_0xb9ffb8],_0x3a7b8b,'deletion',_0x1709bc),_0x4cd568[_0xb9ffb8]={'insertions':this[_0xe08c('0xa0')](_0x256724),'deletions':this[_0xe08c('0xa0')](_0x3cc1a0)};}return{'diffData':_0x4cd568,'authorsIds':Array[_0xe08c('0xba')](_0x1709bc)};}['_processRootBeforeSave'](_0x594426){for(const [,_0x3eda62]of _0x594426[_0xe08c('0x13')]){const _0x15ea00=_0x3eda62['start'][_0xe08c('0x4')]()[_0xe08c('0x67')](_0x1fbbbe=>_0xe08c('0xc1')==_0x1fbbbe['name']);for(const _0x570714 of _0x15ea00)0x1==_0x570714[_0xe08c('0x82')]&&_0x570714[_0xe08c('0x3e')](0x0)['is'](_0xe08c('0x2b'),_0xe08c('0xbd'))&&_0x570714[_0xe08c('0x3e')](0x0)['_setAttribute'](_0xe08c('0x9c'),!0x0);}}[_0xe08c('0xa0')](_0x4833d8){this[_0xe08c('0x10')](_0x4833d8);const _0x5b05be=this[_0xe08c('0xb2')][_0xe08c('0xd2')][_0xe08c('0x97')](_0x4833d8,{}),_0x1d20fb=Array[_0xe08c('0xba')](_0x5b05be[_0xe08c('0x0')]())[_0xe08c('0x29')](_0x42ed40=>this[_0xe08c('0xb1')](_0x42ed40));return JSON[_0xe08c('0x92')](_0x1d20fb);}[_0xe08c('0xb1')](_0x67ab){if(_0x67ab['is']('$text'))return _0x67ab[_0xe08c('0xd2')];{const _0x543380=_0x67ab;return{'type':Object['keys'](V)[_0xe08c('0x1b')](_0x54ad89=>_0x67ab instanceof V[_0x54ad89]),'name':_0x543380['name'],'attributes':Array['from'](_0x543380[_0xe08c('0xb8')]()),'children':Array[_0xe08c('0xba')](_0x543380['getChildren']())['map'](_0xa965c6=>this[_0xe08c('0xb1')](_0xa965c6))};}}[_0xe08c('0x1c')](_0x167743,_0xf7e92a,_0xeb02dd,_0xa81418,_0x251882){let _0x2b6bbf=null,_0xb4abb2=null,_0xf6605b=0x0;const _0x200b79=this['editor'][_0xe08c('0x47')];for(let _0x5b77b0=0x0;_0x5b77b0<_0xf7e92a[_0xe08c('0x8d')];_0x5b77b0++){const _0x399124=this['_getVidAttributeName'](_0xf7e92a[_0x5b77b0]),_0x1d34ee=_0xf7e92a[_0x5b77b0]['item'][_0xe08c('0xa8')](_0x399124),_0x432868=_0xeb02dd['get'](_0x1d34ee),_0x50fce2=_0x5b77b0==_0xf7e92a[_0xe08c('0x8d')]-0x1;(!_0x2b6bbf&&_0x432868&&(_0x2b6bbf=_0x432868,_0xb4abb2=_0xf7e92a[_0x5b77b0]),_0x2b6bbf&&(!_0x432868||_0x432868[_0xe08c('0x19')]!=_0x2b6bbf[_0xe08c('0x19')]))&&(_0x55fd5c(_0x432868,j(_0xb4abb2,_0x167743,_0x200b79),j(_0xf7e92a[_0x5b77b0],_0x167743,_0x200b79)),_0x2b6bbf=_0x432868||null,_0xb4abb2=_0x432868?_0xf7e92a[_0x5b77b0]:null),_0x2b6bbf&&_0x50fce2&&_0x55fd5c(_0x432868,j(_0xb4abb2,_0x167743,_0x200b79),B(_0xf7e92a[_0x5b77b0],_0x167743,_0x200b79));}function _0x55fd5c(_0x51144a,_0x2f08c5,_0x2003aa){const _0x245883=_0x2b6bbf[_0xe08c('0x19')],_0x3a1ea=_0xe08c('0x28')+_0xa81418+':'+_0x245883+':'+_0xf6605b++,_0x1b2c13=_0x200b79[_0xe08c('0xd1')](_0x2f08c5,_0x2003aa);_0x167743[_0xe08c('0x13')][_0xe08c('0x9a')](_0x3a1ea,_0x1b2c13),null!==_0x245883&&_0x251882[_0xe08c('0x2c')](_0x245883);}}[_0xe08c('0xb9')](_0x896b6d){switch(_0x896b6d['type']){case _0xe08c('0xcb'):return _0xe08c('0xe7');case _0xe08c('0x83'):return _0xe08c('0x69');default:return _0xe08c('0x71');}}[_0xe08c('0x1')](_0x42addd,_0xe3658){_0x42addd[_0xe08c('0x52')]=null;for(const _0x541a59 in _0x42addd){const _0x182740=_0x42addd[_0x541a59];if(_0x182740 instanceof _0x3a19a0){const _0x5d2e04=_0xe3658['get'](_0x182740[_0xe08c('0x4b')]['rootName']);_0x42addd[_0x541a59]=this[_0xe08c('0xa')](_0x182740,_0x5d2e04);}if(_0x182740 instanceof _0x18b630){const _0x4a3b58=_0xe3658['get'](_0x182740[_0xe08c('0x4b')][_0xe08c('0x38')]);_0x42addd[_0x541a59]=this['_fixRange'](_0x182740,_0x4a3b58);}}_0x42addd[_0xe08c('0x4b')]&&(_0x42addd[_0xe08c('0x4b')]=_0xe3658['get'](_0x42addd[_0xe08c('0x4b')]['rootName']));}[_0xe08c('0x8f')](_0x2a483f,_0x4355d7){return this['editor'][_0xe08c('0x47')][_0xe08c('0xd1')](this[_0xe08c('0xa')](_0x2a483f[_0xe08c('0xe5')],_0x4355d7),this[_0xe08c('0xa')](_0x2a483f[_0xe08c('0x6a')],_0x4355d7));}['_fixPosition'](_0x63fc86,_0x4c6a49){return this[_0xe08c('0xb2')][_0xe08c('0x47')]['createPositionFromPath'](_0x4c6a49,_0x63fc86[_0xe08c('0x89')],_0x63fc86[_0xe08c('0x7f')]);}[_0xe08c('0xf')](_0x25d625){const _0x1cb41d=this[_0xe08c('0xc2')]['get'](_0x25d625[_0xe08c('0x8')][_0xe08c('0x4b')][_0xe08c('0x38')]),_0x4de156=this['_fixPosition'](_0x25d625['position'],_0x1cb41d),_0x294d13=null===_0x25d625[_0xe08c('0x9d')]?null:_0x25d625[_0xe08c('0x9d')]||this[_0xe08c('0xb2')][_0xe08c('0xad')][_0xe08c('0xa6')]('Users')['me']['id'],_0x17f000=_0x4de156[_0xe08c('0xec')],_0x5f035f=this[_0xe08c('0x45')],_0x28b763=[];for(const _0x1c2556 of _0x25d625[_0xe08c('0xa9')])if(_0x1c2556['is'](_0xe08c('0x2b')))_0x28b763['push'](this[_0xe08c('0x3d')](_0x1c2556));else for(let _0x1f1379=0x0;_0x1f1379<_0x1c2556[_0xe08c('0xdf')];_0x1f1379++)_0x28b763[_0xe08c('0xe')](new _0x45e8ea(_0xe08c('0xd'),{'vid':this[_0xe08c('0x45')]++}));const _0x10072d=this['_revisionId'];for(let _0x45f000=_0x5f035f;_0x45f000<_0x10072d;_0x45f000++)this[_0xe08c('0xe6')][_0xe08c('0x9a')](_0x45f000,{'userId':_0x294d13});_0x17f000[_0xe08c('0x18')](_0x4de156[_0xe08c('0x50')],_0x28b763);}[_0xe08c('0xa1')](_0x1ab13f){(_0x1ab13f=this[_0xe08c('0xc6')](_0x1ab13f,this[_0xe08c('0xc2')]))[_0xe08c('0x5b')]();const _0x33f72c=null===_0x1ab13f[_0xe08c('0x9d')]?null:_0x1ab13f[_0xe08c('0x9d')]||this[_0xe08c('0xb2')][_0xe08c('0xad')][_0xe08c('0xa6')]('Users')['me']['id'],_0x4a7b4d=_0x1ab13f['getMovedRangeStart'](),_0x402f53=_0x4a7b4d[_0xe08c('0xec')],_0x44b21c=_0x4a7b4d['offset'];!function _0x3f532c(_0xafa5b6,_0x5c86b6,_0x38d0ee,_0x504e6c){for(let _0x3f4308=_0x38d0ee;_0x3f4308<_0x504e6c;_0x3f4308++){const _0x27b436=_0x5c86b6[_0xe08c('0x3e')](_0x3f4308);_0x27b436['is'](_0xe08c('0x2b'),_0xe08c('0xd'))?_0xafa5b6['set'](_0x27b436[_0xe08c('0xa8')](_0xe08c('0x71')),{'userId':_0x33f72c}):(_0xafa5b6['set'](_0x27b436[_0xe08c('0xa8')](_0xe08c('0xe7')),{'userId':_0x33f72c}),_0x3f532c(_0xafa5b6,_0x27b436,0x0,_0x27b436['childCount']),_0xafa5b6[_0xe08c('0x9a')](_0x27b436[_0xe08c('0xa8')](_0xe08c('0x69')),{'userId':_0x33f72c}));}}(this['_touched'],_0x402f53,_0x44b21c,_0x44b21c+_0x1ab13f['howMany']);}[_0xe08c('0x26')](_0x28fd9f){const _0x3d93ef=null===(_0x28fd9f=this['_cloneOperation'](_0x28fd9f,this[_0xe08c('0xc2')]))['_authorId']?null:_0x28fd9f[_0xe08c('0x9d')]||this[_0xe08c('0xb2')][_0xe08c('0xad')][_0xe08c('0xa6')](_0xe08c('0xc9'))['me']['id'],_0x55fdf1=_0x28fd9f[_0xe08c('0xd7')][_0xe08c('0xec')],_0x1a315e=_0x28fd9f['sourcePosition'][_0xe08c('0xec')],_0x2ef7ac=_0x55fdf1[_0xe08c('0xa8')]('vid_end'),_0x6fcc80=_0x1a315e[_0xe08c('0xa8')](_0xe08c('0xe7'));_0x55fdf1['_setAttribute'](_0xe08c('0x69'),_0x1a315e[_0xe08c('0xa8')](_0xe08c('0x69'))),_0x1a315e[_0xe08c('0x53')](_0xe08c('0x69'),_0x2ef7ac),this[_0xe08c('0xe6')][_0xe08c('0x9a')](_0x6fcc80,{'userId':_0x3d93ef}),this[_0xe08c('0xe6')][_0xe08c('0x9a')](_0x2ef7ac,{'userId':_0x3d93ef}),_0x28fd9f[_0xe08c('0x5b')]();}[_0xe08c('0x54')](_0x3f1953){const _0x26e8fe=null===(_0x3f1953=this[_0xe08c('0xc6')](_0x3f1953,this['_idsRoots']))[_0xe08c('0x9d')]?null:_0x3f1953[_0xe08c('0x9d')]||this['editor']['plugins'][_0xe08c('0xa6')](_0xe08c('0xc9'))['me']['id'],_0x379ed4=_0x3f1953[_0xe08c('0x33')],_0x3de718=_0x3f1953['splitPosition'][_0xe08c('0xec')];_0x3f1953[_0xe08c('0x5b')]();const _0x5f1f34=_0x3de718[_0xe08c('0xa8')]('vid_end'),_0x2eeae2=_0x3f1953[_0xe08c('0x56')][_0xe08c('0x9b')];if(_0x379ed4){const _0x2277af=_0x2eeae2['getAttribute']('vid_end'),_0x18e2f3=_0x3de718['getAttribute'](_0xe08c('0x69'));_0x3de718[_0xe08c('0x53')](_0xe08c('0x69'),_0x2277af),_0x2eeae2[_0xe08c('0x53')](_0xe08c('0x69'),_0x18e2f3),this[_0xe08c('0xe6')]['set'](_0x3de718[_0xe08c('0xa8')](_0xe08c('0x69')),{'userId':_0x26e8fe}),this[_0xe08c('0xe6')][_0xe08c('0x9a')](_0x2eeae2['getAttribute']('vid_start'),{'userId':_0x26e8fe});}else{const _0x124780=this['_revisionId']++,_0x3a2382=this[_0xe08c('0x45')]++;_0x3de718[_0xe08c('0x53')](_0xe08c('0x69'),_0x124780),_0x2eeae2[_0xe08c('0x53')](_0xe08c('0xe7'),_0x3a2382),_0x2eeae2[_0xe08c('0x53')]('vid_end',_0x5f1f34),this[_0xe08c('0xe6')][_0xe08c('0x9a')](_0x124780,{'userId':_0x26e8fe}),this[_0xe08c('0xe6')][_0xe08c('0x9a')](_0x3a2382,{'userId':_0x26e8fe});}}[_0xe08c('0xa2')](_0x1bda00){if(!_0x1bda00[_0xe08c('0xcd')])return;const _0x3cfe8d=(_0x1bda00=this['_cloneOperation'](_0x1bda00,this[_0xe08c('0x4c')]))[_0xe08c('0xc8')]?_0x1bda00[_0xe08c('0xc8')][_0xe08c('0x4b')]:null,_0x9943f4=_0x1bda00['newRange']?_0x1bda00['newRange']['root']:null;_0x3cfe8d&&this[_0xe08c('0x16')]['delete'](_0x1bda00[_0xe08c('0x96')]),_0x9943f4&&this['_markers']['set'](_0x1bda00['name'],_0x1bda00[_0xe08c('0x34')][_0xe08c('0xdd')]());const _0x24a8cd=null===_0x1bda00[_0xe08c('0x9d')]?null:_0x1bda00[_0xe08c('0x9d')]||this[_0xe08c('0xb2')][_0xe08c('0xad')][_0xe08c('0xa6')]('Users')['me']['id'],_0x442312=_0x1bda00[_0xe08c('0x96')];if(!this[_0xe08c('0x95')]['has'](_0x442312))return void this[_0xe08c('0x95')][_0xe08c('0x9a')](_0x442312,{'range':_0x1bda00[_0xe08c('0xc8')],'userId':_0x24a8cd});const _0x12b544=this[_0xe08c('0x95')][_0xe08c('0xa6')](_0x442312),_0x260c98=_0x12b544['range'],_0xfdc8ac=_0x1bda00[_0xe08c('0x34')];null==_0x260c98&&null==_0xfdc8ac||_0x260c98&&_0xfdc8ac&&_0x260c98['isEqual'](_0xfdc8ac)?this[_0xe08c('0x95')][_0xe08c('0x76')](_0x1bda00[_0xe08c('0x96')]):_0x12b544[_0xe08c('0x19')]=_0x24a8cd;}}function J(_0x55a7de){const _0x908456=new _0x588493();_0x908456['rootName']=_0x55a7de[_0xe08c('0x38')];for(const _0x55d30d of _0x55a7de[_0xe08c('0x0')]()){const _0x44212a=_0x55d30d['_clone'](!0x0);_0x908456[_0xe08c('0xd9')](_0x44212a);}return _0x908456;}function j(_0x27dd33,_0x10e681,_0x2d1e71){const _0xc60e4a='elementEnd'==_0x27dd33[_0xe08c('0x74')]?_0x2d1e71['createPositionAt'](_0x27dd33[_0xe08c('0x72')],_0xe08c('0x6a')):_0x2d1e71[_0xe08c('0x8b')](_0x27dd33[_0xe08c('0x72')]);return _0x2d1e71[_0xe08c('0x22')](_0x10e681,_0xc60e4a[_0xe08c('0x89')],_0xc60e4a[_0xe08c('0x7f')]);}function B(_0x4a6ffe,_0xec4d7e,_0x3411c5){const _0x4b865f=_0xe08c('0xcb')==_0x4a6ffe['type']?_0x3411c5[_0xe08c('0x7d')](_0x4a6ffe[_0xe08c('0x72')],0x0):_0x3411c5[_0xe08c('0x14')](_0x4a6ffe['item']);return _0x3411c5[_0xe08c('0x22')](_0xec4d7e,_0x4b865f['path'],_0x4b865f['stickiness']);}
23
+ const _0x33d9=['_removeRevisionMarkers','getUser','clear','_appendChild','source','addRevisionData','RevisionsRepository','getChildren','$graveyard','previousPosition','_prepareViewToSave','upcast','_fixRange','_findInsertionIndex','getTime','getAttribute','getRevision','_markChanges','split','model','markerToData','createPositionAt','getChild','getRootNames','_source','_createCurrentRevision','_diffRoots','keepParagraph','_createFromRanges','_handleSplitOperation','map','clone','tableCell','_startingRevisionId','createRevision','deletions','_createInitialRevision','_makeIdsRoot','Users','range','revision:','locale','length','init','_getVidAttributeName','sendBufferedUpdates','filter','then','creator','currentRevision','repository','reinsert','_insertChild','_execute','_initialRevisionId','_revisionDataBuilder','adapter','Empty\x20document','ready','_clone','_savedMetaData','targetPosition','root','_lastTo','data-revision-','history','push','_markers','merge','elementStart','_handleMergeOperation','stickiness','_applyOperations','toVersion','documentFragment','_revisionId','markers','editing','getWalker','vid','_calculateMetaData','_startingVersion','getOperations','plugins','userId','updateRevisions','getData','_operations','_loadedStateData','parse','attributes','_generateTape','_idsRoots','getRange','RevisionTracker','vid_end','define','toModel','editor','revision-end','_update','config','data','_getViewJson','_handleMarkerOperation','_cloneOperation','view','name','_rootNames','insertionPosition','text','createRangeIn','reInit','_getBaseVids','find','getRevisionDocumentData','setRevisionData','authorsIds','_baseRoots','_handleMoveOperation','buildRevisionData','end','howMany','pluginName','NEGATIVE_INFINITY','children','newRange','offsetSize','sourcePosition','path','loadState','dataToMarker','_makeModelFromViewString','afterInit','_addPendingAction','initialData','_removePendingAction','slice','has','_fixOperation','useFillerType','vid_start','getLatestVersion','position','revision','diffData','delete','getCurrentRevisionId','default','_isPendingUpdate','start','rootName','insert','conversion','PendingActions','creatorId','affectsData','offset','getAttributes','add','_touchedMarkers','insertions','values','_authorId','_handleOperation','from','createRange','getMovedRangeStart','nodeAfter','element','_transformMarkers','resolve','fromVersion','collaboration.channelId','includes','_handleInsertOperation','_baseIdsRoots','size','document','elementEnd','isReady','_makeRevision','_processRootBeforeSave','_setConversion','string','set','getTransformedByOperation','insertion','addRevision','_isInit','authors','_removeMetaData','baseVersion','version','_lastFrom','forEach','_loadState','getNodeByPath','_touched','_setAttribute','reverse','oldRange','get','createPositionBefore','deletion','max','stringify','createdAt','getOperation','marker','getIndex','update','childCount','_bufferedUpdates','remove','_replaceEditorDataWithRevisionData','parent','revision-start','getRevisions','_copyMarkers','_getPreviousFrom','_reset','roots','shift','_continueCurrentRevision','_fixPosition','_pendingAction','trim','for','processor','_saveEmptyMetaData','item','_bufferUpdate','_saveMetaData','_getFromVersion','$text','_loadRevisionData','startsWith','createPositionFromPath','finally','toView','paragraph','_getState','keys','RealTimeCollaborationClient','type'];(function(_0x4f18c2,_0x33d918){const _0x5a890d=function(_0x436fa6){while(--_0x436fa6){_0x4f18c2['push'](_0x4f18c2['shift']());}};_0x5a890d(++_0x33d918);}(_0x33d9,0x1b0));const _0x5a89=function(_0x4f18c2,_0x33d918){_0x4f18c2=_0x4f18c2-0x0;let _0x5a890d=_0x33d9[_0x4f18c2];return _0x5a890d;};import{Users as _0x29c150}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x1bb518,PendingActions as _0x449223}from'ckeditor5/src/core';import{logWarning as _0x14dec7,uid as _0x1b65a6}from'ckeditor5/src/utils';import{Position as _0x58df94,Range as _0x51a6c6,Element as _0x29a21d,DocumentFragment as _0x58153f,ViewText as _0x485b5c,ViewElement as _0x401dfd,ViewContainerElement as _0x2f6074,ViewAttributeElement as _0x40fa4e,ViewEmptyElement as _0x23907f,ViewRawElement as _0x374208,ViewUIElement as _0x26d003,ViewDocumentFragment as _0x3b43a7}from'ckeditor5/src/engine';import _0x53cf28 from'./revisionsrepository';import{getTranslation as _0x450ffd}from'./utils/common-translations';const V={'c':_0x2f6074,'a':_0x40fa4e,'e':_0x23907f,'r':_0x374208,'u':_0x26d003};export default class l extends _0x1bb518{static get[_0x5a89('0xb7')](){return _0x5a89('0x9a');}static get['requires'](){return[_0x29c150,_0x53cf28,_0x449223];}constructor(_0x10caa7){super(_0x10caa7),this[_0x5a89('0x74')]=null,this[_0x5a89('0x6d')]=null,this[_0x5a89('0x73')]=new T(this[_0x5a89('0x9e')]),this[_0x5a89('0x72')]=this[_0x5a89('0x9e')][_0x5a89('0xa1')][_0x5a89('0x10')](_0x5a89('0xe9'))||'initial',this[_0x5a89('0x1b')]=new Map(),this[_0x5a89('0x94')]=null;const _0x154f39=_0x1b65a6();this[_0x5a89('0x54')]={'history':this['editor']['model'][_0x5a89('0xee')]['history'],'getLatestVersion':()=>Promise[_0x5a89('0xe7')](this[_0x5a89('0x9e')][_0x5a89('0x4f')][_0x5a89('0xee')][_0x5a89('0x7')]),'getCurrentRevisionId':()=>_0x154f39},this[_0x5a89('0xf5')](_0x5a89('0xf0'),!0x1),this['set']('isEnabled',!0x0),this[_0x5a89('0xf5')]('_isPendingUpdate',!0x1),this[_0x5a89('0x9e')][_0x5a89('0xa1')][_0x5a89('0x9c')]('revisionHistory.resumeUnsavedRevision',!0x0),this[_0x5a89('0x9e')][_0x5a89('0xd5')]['for'](_0x5a89('0x47'))[_0x5a89('0xbf')]({'view':_0x5a89('0xcc')});}[_0x5a89('0x67')](){this['repository']=this[_0x5a89('0x9e')][_0x5a89('0x8f')][_0x5a89('0x10')](_0x5a89('0x42')),this[_0x5a89('0xf3')](),this[_0x5a89('0x9e')][_0x5a89('0xa2')]['on'](_0x5a89('0x76'),()=>{const _0x12698f=this['repository'][_0x5a89('0x4c')](0x0),_0x2c21d5=_0x12698f&&null===_0x12698f['creator']?_0x12698f:null;if(this[_0x5a89('0x26')]=!!_0x2c21d5&&this['editor'][_0x5a89('0xa1')][_0x5a89('0x10')]('revisionHistory.resumeUnsavedRevision'),this[_0x5a89('0x9e')]['plugins'][_0x5a89('0xc6')](_0x5a89('0x3a'))){const _0x505a01=this[_0x5a89('0x54')]['getCurrentRevisionId'](),_0x120e5b=this[_0x5a89('0x6e')][_0x5a89('0x4c')](_0x505a01);if(_0x120e5b)this[_0x5a89('0x8d')]=_0x120e5b[_0x5a89('0xe8')],this[_0x5a89('0x26')]=!0x1;else{const _0x431302=this[_0x5a89('0x54')]['history'][_0x5a89('0x93')]['find'](_0x19c8ba=>!_0x19c8ba[_0x5a89('0x3')]),_0x1fa26c=_0x431302?_0x431302[_0x5a89('0x6')]:this[_0x5a89('0x54')][_0x5a89('0x7d')][_0x5a89('0x7')];_0x12698f?(_0x12698f[_0x5a89('0x85')]<_0x1fa26c&&_0x12698f[_0x5a89('0xa0')]({'toVersion':_0x1fa26c}),this[_0x5a89('0x26')]?(this[_0x5a89('0x54')][_0x5a89('0xcf')]=()=>_0x2c21d5['id'],this[_0x5a89('0x8d')]=_0x2c21d5[_0x5a89('0xe8')]):(this[_0x5a89('0x8d')]=_0x12698f[_0x5a89('0x85')],this['_continueCurrentRevision']=!0x1)):(this[_0x5a89('0x8d')]=_0x1fa26c,this['_continueCurrentRevision']=!0x1);}}else _0x2c21d5&&(this[_0x5a89('0x9e')][_0x5a89('0x4f')][_0x5a89('0xee')][_0x5a89('0x7d')][_0x5a89('0x7')]=Math[_0x5a89('0x13')](_0x2c21d5['toVersion'],this['editor'][_0x5a89('0x4f')]['document'][_0x5a89('0x7d')][_0x5a89('0x7')]),_0x2c21d5[_0x5a89('0xe8')]===_0x2c21d5[_0x5a89('0x85')]?(0x0!==_0x2c21d5[_0x5a89('0xe8')]&&(this['_source']['getCurrentRevisionId']=()=>_0x2c21d5['id']),this[_0x5a89('0x26')]=!0x1):this[_0x5a89('0x26')]&&(this['_source']['getCurrentRevisionId']=()=>_0x2c21d5['id'],this[_0x5a89('0x8d')]=_0x2c21d5['fromVersion'])),this['_continueCurrentRevision']||(this[_0x5a89('0x8d')]=this['editor'][_0x5a89('0x4f')][_0x5a89('0xee')][_0x5a89('0x7')]);this[_0x5a89('0x73')][_0x5a89('0x67')](this['_source'][_0x5a89('0x7d')]),this[_0x5a89('0x60')](this[_0x5a89('0x8d')]),this[_0x5a89('0x55')](this[_0x5a89('0x8d')]),this['adapter']&&this[_0x5a89('0x69')]();}),this['bind']('isReady')['to'](this,_0x5a89('0xd1'),_0x33c731=>!_0x33c731);}async[_0x5a89('0xc1')](){if(this[_0x5a89('0x6e')][_0x5a89('0x66')]>0x0){const _0x4286b2=this['repository'][_0x5a89('0x4c')](0x0),_0x35a396=await this[_0x5a89('0xaf')](_0x4286b2);this[_0x5a89('0x1d')](_0x35a396);}}['setSource'](_0x86acdd){this[_0x5a89('0x54')]=_0x86acdd;}async[_0x5a89('0x19')](){const _0x24ca4b=await this['_source']['getLatestVersion']();if(_0x24ca4b>this[_0x5a89('0x6d')][_0x5a89('0x85')]){await this[_0x5a89('0xa')]();const _0x92547=this[_0x5a89('0xb4')]({'revision':this[_0x5a89('0x6d')],'to':_0x24ca4b});_0x92547[_0x5a89('0x4')]=_0x92547[_0x5a89('0xb1')]['map'](_0x21e000=>this[_0x5a89('0x9e')][_0x5a89('0x8f')]['get'](_0x5a89('0x62'))['getUser'](_0x21e000)),this[_0x5a89('0x6d')][_0x5a89('0xa0')](_0x92547);}}async[_0x5a89('0xa')](){this[_0x5a89('0x26')]&&!this[_0x5a89('0x94')]&&(await this[_0x5a89('0x32')](this[_0x5a89('0x6d')]),this[_0x5a89('0x73')]['loadState'](this[_0x5a89('0x6d')]),this[_0x5a89('0x94')]={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision'][_0x5a89('0x4')][_0x5a89('0xc5')]()});}async['saveRevision'](_0x36ca8e={},_0x169d56=null){const _0x1128e6=[];await this[_0x5a89('0xa')](),this[_0x5a89('0x26')]=!0x1,_0x169d56>this[_0x5a89('0x6d')][_0x5a89('0x85')]&&(_0x169d56=null),null===_0x169d56&&(_0x169d56=await this[_0x5a89('0x54')][_0x5a89('0xca')]());const _0x1f6934=this[_0x5a89('0x30')](_0x169d56),_0x150485=this[_0x5a89('0xb4')]({'from':_0x1f6934,'to':_0x169d56});if(this[_0x5a89('0x6d')][_0x5a89('0x85')]<_0x169d56){const _0x3245ef=this[_0x5a89('0xb4')]({'revision':this[_0x5a89('0x6d')],'from':_0x169d56,'to':_0x169d56});_0x3245ef[_0x5a89('0x4')]=[],_0x3245ef[_0x5a89('0xb1')]=[],_0x3245ef['id']=this[_0x5a89('0x6d')]['id'],this[_0x5a89('0x6d')][_0x5a89('0xa0')](_0x3245ef,!0x0),delete _0x3245ef[_0x5a89('0x4')],_0x1128e6[_0x5a89('0x7e')](_0x3245ef);}_0x36ca8e['creatorId']=this['editor']['plugins']['get'](_0x5a89('0x62'))['me']['id'],_0x36ca8e[_0x5a89('0xa7')]=_0x36ca8e[_0x5a89('0xa7')]||null,_0x36ca8e['id']=_0x36ca8e['id']||_0x1b65a6(),_0x36ca8e={..._0x36ca8e,..._0x150485};const _0x5488b5=this[_0x5a89('0x41')](_0x36ca8e);_0x1128e6[_0x5a89('0x7e')](_0x36ca8e);const _0x2aa881=this[_0x5a89('0x6e')][_0x5a89('0x18')](_0x5488b5);if(0x0!==_0x2aa881){const _0x4881f8=this[_0x5a89('0x6e')][_0x5a89('0x4c')](_0x2aa881-0x1);if(_0x4881f8[_0x5a89('0xe8')]!==_0x169d56){const _0x1ab40f=this[_0x5a89('0x73')][_0x5a89('0x92')](_0x169d56,_0x4881f8[_0x5a89('0x85')]),_0x45daf9={'id':_0x4881f8['id'],'diffData':_0x1ab40f[_0x5a89('0xcd')],'authorsIds':_0x1ab40f[_0x5a89('0xb1')],'authors':_0x1ab40f[_0x5a89('0xb1')][_0x5a89('0x5a')](_0x156c4c=>this[_0x5a89('0x9e')]['plugins'][_0x5a89('0x10')]('Users')[_0x5a89('0x3d')](_0x156c4c)),'fromVersion':_0x169d56};_0x4881f8===this[_0x5a89('0x6d')]&&(_0x45daf9[_0x5a89('0x15')]=new Date(_0x36ca8e[_0x5a89('0x15')][_0x5a89('0x4a')]()+0xa)),_0x4881f8['_update'](_0x45daf9,!0x0),delete _0x45daf9['authors'],_0x1128e6[_0x5a89('0x7e')](_0x45daf9);}}if(this[_0x5a89('0x74')]){for(const _0x3a981d of _0x1128e6)this[_0x5a89('0x2e')](_0x3a981d['id'],_0x3a981d,!0x0);this[_0x5a89('0x69')]();}return _0x5488b5;}[_0x5a89('0x41')](_0x57ffe4){const _0x1d53ef=this['repository'][_0x5a89('0x5e')](_0x57ffe4);return this[_0x5a89('0x74')]&&_0x1d53ef['on'](_0x5a89('0xa0'),(_0x325663,_0xecb16b,_0x48dd97)=>{_0x48dd97||(this['_bufferUpdate'](_0xecb16b['id'],_0xecb16b,!0x0),this[_0x5a89('0x69')]());}),this[_0x5a89('0x6e')][_0x5a89('0x2')](_0x1d53ef,this[_0x5a89('0x49')](_0x1d53ef)),_0x1d53ef;}async['getRevisionDocumentData'](_0x4ae066){await this[_0x5a89('0x32')](_0x4ae066);const _0x29dbf3={};for(const _0x2bb0d8 in _0x4ae066[_0x5a89('0xcd')]){const _0x564290=this[_0x5a89('0x3c')](JSON[_0x5a89('0x95')](_0x4ae066['diffData'][_0x2bb0d8][_0x5a89('0xdd')])),_0x14d732=this['editor'][_0x5a89('0x89')]['view'][_0x5a89('0xee')],_0x2cf6bd=new _0x3b43a7(_0x14d732,_0x564290[_0x5a89('0x5a')](_0x2fb3a5=>F(_0x2fb3a5,this[_0x5a89('0x9e')])));this[_0x5a89('0x9e')][_0x5a89('0xa2')]['processor'][_0x5a89('0xc8')]('marked'),_0x29dbf3[_0x2bb0d8]=this[_0x5a89('0x9e')][_0x5a89('0xa2')][_0x5a89('0x2b')]['toData'](_0x2cf6bd),this['editor'][_0x5a89('0xa2')][_0x5a89('0x2b')][_0x5a89('0xc8')](_0x5a89('0xd0'));}return _0x29dbf3;}['sendBufferedUpdates'](){if(0x0===this[_0x5a89('0x1b')]['size'])return;if(this[_0x5a89('0xd1')])return;let _0x526e65=Array[_0x5a89('0xe1')](this[_0x5a89('0x1b')][_0x5a89('0xde')]());this[_0x5a89('0x1b')]['clear']();for(let _0xf78902=0x0;_0xf78902<_0x526e65[_0x5a89('0x66')];_0xf78902++){const _0x1cbde3=_0x526e65[_0xf78902];let _0x12cccc=!0x1;for(const _0x150949 of Object[_0x5a89('0x39')](_0x1cbde3))void 0x0===_0x1cbde3[_0x150949]?delete _0x1cbde3[_0x150949]:'id'!==_0x150949&&(_0x12cccc=!0x0);_0x12cccc||(_0x526e65[_0xf78902]=null);}if(_0x526e65=_0x526e65['filter'](_0x4d224d=>null!==_0x4d224d),!_0x526e65[_0x5a89('0x66')])return;for(let _0x1be84b=0x0;_0x1be84b<_0x526e65[_0x5a89('0x66')];_0x1be84b++){const _0x3879d5=_0x526e65[_0x1be84b];void 0x0!==_0x3879d5[_0x5a89('0xe8')]&&void 0x0===_0x3879d5[_0x5a89('0x85')]&&(_0x3879d5['toVersion']=this[_0x5a89('0x6e')][_0x5a89('0x4c')](_0x3879d5['id'])['toVersion']),void 0x0!==_0x3879d5[_0x5a89('0x85')]&&void 0x0===_0x3879d5[_0x5a89('0xe8')]&&(_0x3879d5[_0x5a89('0xe8')]=this[_0x5a89('0x6e')][_0x5a89('0x4c')](_0x3879d5['id'])['fromVersion']);}const _0x38e0ef=this['editor'][_0x5a89('0xa1')][_0x5a89('0x10')](_0x5a89('0xe9'));this[_0x5a89('0xd1')]=!0x0,this[_0x5a89('0xc2')](),this[_0x5a89('0x74')][_0x5a89('0x91')](_0x526e65,_0x38e0ef)[_0x5a89('0x35')](()=>{this[_0x5a89('0xd1')]=!0x1;})[_0x5a89('0x6b')](_0x163394=>{if(_0x163394)for(const _0x52b872 of _0x163394)this[_0x5a89('0xb0')]({'id':_0x52b872['id'],'createdAt':_0x52b872['createdAt']});this['_removePendingAction'](),this[_0x5a89('0x69')]();});}[_0x5a89('0x1d')](_0x444fd9){let _0x23c1c9=this['editor'][_0x5a89('0xa1')][_0x5a89('0x10')](_0x5a89('0xc3'));if(void 0x0===_0x23c1c9){_0x23c1c9={};for(const _0x1018f4 of this[_0x5a89('0x9e')][_0x5a89('0x4f')][_0x5a89('0xee')][_0x5a89('0x53')]())_0x23c1c9[_0x1018f4]='';}_0x5a89('0xf4')==typeof _0x23c1c9&&(_0x23c1c9={'main':_0x23c1c9});let _0x3fd9b2=!0x1;for(const _0x26d41c of Object[_0x5a89('0x39')](_0x23c1c9))_0x444fd9[_0x26d41c]&&(_0x23c1c9[_0x26d41c]!==_0x444fd9[_0x26d41c]&&''!==_0x23c1c9[_0x26d41c][_0x5a89('0x29')]()&&(_0x3fd9b2=!0x0),_0x23c1c9[_0x26d41c]=_0x444fd9[_0x26d41c]);_0x3fd9b2&&_0x14dec7('editor-initial-data-replaced-with-revision-data'),this[_0x5a89('0x9e')][_0x5a89('0xa1')][_0x5a89('0xf5')](_0x5a89('0xc3'),_0x23c1c9);}[_0x5a89('0xc2')](){if(!this[_0x5a89('0x28')]){const _0xad9826=this[_0x5a89('0x9e')]['plugins'][_0x5a89('0x10')](_0x5a89('0xd6'));this[_0x5a89('0x28')]=_0xad9826[_0x5a89('0xdb')](_0x450ffd(this['editor'][_0x5a89('0x65')],'PENDING_ACTION_REVISION_HISTORY'));}}[_0x5a89('0xc4')](){this['_pendingAction']&&(this[_0x5a89('0x9e')][_0x5a89('0x8f')][_0x5a89('0x10')](_0x5a89('0xd6'))[_0x5a89('0x1c')](this[_0x5a89('0x28')]),this[_0x5a89('0x28')]=null);}[_0x5a89('0x49')](_0x3cdbc){const _0x2cbb7c=this['repository'][_0x5a89('0x20')]();_0x2cbb7c['reverse']();let _0x2a0694=0x0;for(;_0x2a0694<_0x2cbb7c[_0x5a89('0x66')];){const _0x2e656e=_0x2cbb7c[_0x2a0694];if(_0x2e656e===this[_0x5a89('0x6d')]){_0x2a0694++;continue;}if(_0x2e656e['id']===this[_0x5a89('0x72')])break;const _0x4a50ea=_0x3cdbc[_0x5a89('0x85')]-_0x2e656e[_0x5a89('0x85')]||_0x3cdbc[_0x5a89('0xe8')]-_0x2e656e[_0x5a89('0xe8')];if(_0x4a50ea>0x0)break;if(_0x4a50ea<0x0)_0x2a0694++;else{if(!_0x3cdbc['creator']&&_0x2e656e[_0x5a89('0x6c')])break;if(_0x2e656e[_0x5a89('0x6c')]||!_0x3cdbc[_0x5a89('0x6c')]){if(_0x3cdbc['createdAt']>_0x2e656e[_0x5a89('0x15')])break;_0x2a0694++;}else _0x2a0694++;}}return _0x2a0694;}[_0x5a89('0xb0')](_0xe19e32){const _0x276746=this[_0x5a89('0x6e')][_0x5a89('0x4c')](_0xe19e32['id']);if(_0xe19e32[_0x5a89('0x15')]&&(_0xe19e32[_0x5a89('0x15')]=new Date(_0xe19e32['createdAt'])),_0xe19e32[_0x5a89('0xb1')]){const _0x439285=this[_0x5a89('0x9e')]['plugins'][_0x5a89('0x10')](_0x5a89('0x62'));_0xe19e32[_0x5a89('0x4')]=_0xe19e32['authorsIds'][_0x5a89('0x5a')](_0x4c25d6=>_0x439285[_0x5a89('0x3d')](_0x4c25d6));}_0x276746[_0x5a89('0xa0')](_0xe19e32,!0x0);}['buildRevisionData']({revision:_0x5ec68b=null,from:_0x4637b7=null,to:_0x1d2876=null}){_0x4637b7=null!==_0x4637b7?_0x4637b7:_0x5ec68b[_0x5a89('0xe8')],_0x1d2876=null!==_0x1d2876?_0x1d2876:_0x5ec68b[_0x5a89('0x85')];const _0x1da128=this['_revisionDataBuilder'][_0x5a89('0x92')](_0x4637b7,_0x1d2876),_0x23aafb={'diffData':_0x1da128[_0x5a89('0xcd')],'authorsIds':_0x1da128[_0x5a89('0xb1')],'fromVersion':_0x4637b7,'toVersion':_0x1d2876};if(!_0x5ec68b||_0x1d2876!==_0x5ec68b['toVersion']){const _0x512eea=_0x1d2876-0x1,_0x4089b7=this[_0x5a89('0x54')][_0x5a89('0x7d')][_0x5a89('0x16')](_0x512eea);_0x23aafb[_0x5a89('0x15')]=_0x4089b7&&_0x4089b7[_0x5a89('0x15')]||new Date();}if(this[_0x5a89('0x94')]&&_0x4637b7===this[_0x5a89('0x94')][_0x5a89('0xe8')])for(const _0x23e663 of this[_0x5a89('0x94')][_0x5a89('0x4')])_0x23aafb[_0x5a89('0xb1')][_0x5a89('0xea')](_0x23e663['id'])||_0x23aafb['authorsIds']['push'](_0x23e663['id']);return _0x23aafb;}[_0x5a89('0x32')](_0x2f8913){if(!_0x2f8913||_0x2f8913[_0x5a89('0xcd')])return Promise[_0x5a89('0xe7')]();{const _0x4ed91a=this[_0x5a89('0x9e')][_0x5a89('0xa1')][_0x5a89('0x10')]('collaboration.channelId');return this[_0x5a89('0x74')]['getRevision']({'channelId':_0x4ed91a,'revisionId':_0x2f8913['id']})[_0x5a89('0x6b')](_0x3cd2b1=>{_0x2f8913['diffData']=_0x3cd2b1['diffData'];});}}['_bufferUpdate'](_0x52ad1a,_0x2b9945,_0x2af69b){if(this[_0x5a89('0x1b')][_0x5a89('0xc6')](_0x52ad1a)){const _0x1e081f=this[_0x5a89('0x1b')][_0x5a89('0x10')](_0x52ad1a);_0x2b9945=_0x2af69b?{..._0x1e081f,..._0x2b9945}:{..._0x2b9945,..._0x1e081f};}this['_bufferedUpdates'][_0x5a89('0xf5')](_0x52ad1a,_0x2b9945);}[_0x5a89('0x30')](_0x3ba52e){const _0x5dd203=this[_0x5a89('0x6e')][_0x5a89('0x20')]();_0x5dd203[_0x5a89('0xe')](),_0x5dd203[_0x5a89('0x25')]();const _0x53ff6d=_0x5dd203[_0x5a89('0xae')](_0x4fc010=>_0x4fc010[_0x5a89('0x85')]<=_0x3ba52e)[_0x5a89('0x85')];return _0x53ff6d<this[_0x5a89('0x8d')]?this['_startingVersion']:_0x53ff6d;}[_0x5a89('0x60')](_0x1aa3ab){const _0x32c389=this['repository'][_0x5a89('0x4c')](this[_0x5a89('0x6e')][_0x5a89('0x66')]-0x1);if(_0x32c389)this[_0x5a89('0x72')]=_0x32c389['id'];else{const _0x1fe250=!this[_0x5a89('0x9e')][_0x5a89('0x4f')][_0x5a89('0xee')][_0x5a89('0x24')][_0x5a89('0xae')](_0x2cf226=>this[_0x5a89('0x9e')]['model']['hasContent'](_0x2cf226)),_0x1c50ee=this[_0x5a89('0x9e')][_0x5a89('0x8f')][_0x5a89('0x10')](_0x5a89('0x62'))['me']['id'],_0x46686e=_0x450ffd(this[_0x5a89('0x9e')][_0x5a89('0x65')],_0x1fe250?_0x5a89('0x75'):'Initial\x20revision');this['_makeRevision']({'from':_0x1aa3ab,'to':_0x1aa3ab,'id':this[_0x5a89('0x72')],'name':_0x46686e,'creatorId':_0x1c50ee});}}[_0x5a89('0x55')](_0x4f5a95){const _0x1added=this['_source'][_0x5a89('0xcf')]();this['currentRevision']=this[_0x5a89('0x6e')][_0x5a89('0x4c')](_0x1added),this[_0x5a89('0x6d')]||(this[_0x5a89('0x6d')]=this[_0x5a89('0xf1')]({'from':_0x4f5a95,'to':_0x4f5a95,'id':_0x1added,'name':'','creatorId':null}));}[_0x5a89('0xf1')]({name:_0x50d4b3,from:_0x17e46d,to:_0x6fda4b,creatorId:_0x558eeb,id:_0x1542fb}){const _0x43a3dd=this[_0x5a89('0xb4')]({'from':_0x17e46d,'to':_0x6fda4b});_0x43a3dd[_0x5a89('0xa7')]=_0x50d4b3,_0x43a3dd[_0x5a89('0xd7')]=_0x558eeb,_0x43a3dd['id']=_0x1542fb;const _0x3fdb08=this['addRevisionData'](_0x43a3dd);return this['adapter']&&this[_0x5a89('0x2e')](_0x43a3dd['id'],_0x43a3dd,!0x0),_0x3fdb08;}[_0x5a89('0xf3')](){this[_0x5a89('0x9e')][_0x5a89('0xd5')][_0x5a89('0x2a')]('dataDowncast')[_0x5a89('0x50')]({'model':'revision'});}['_removeRevisionMarkers'](_0x236874){return(_0x236874=_0x236874[_0x5a89('0x6a')](_0x5a3a7d=>!_0x5a3a7d['name']||_0x5a89('0x1f')!==_0x5a3a7d[_0x5a89('0xa7')]&&_0x5a89('0x9f')!==_0x5a3a7d[_0x5a89('0xa7')]))[_0x5a89('0x9')](_0x3952df=>{_0x5a89('0xf4')!=typeof _0x3952df&&(_0x3952df['children']=this[_0x5a89('0x3c')](_0x3952df[_0x5a89('0xb9')]),_0x3952df[_0x5a89('0x96')]=_0x3952df[_0x5a89('0x96')][_0x5a89('0x6a')](_0x55a117=>!_0x55a117[0x0][_0x5a89('0x33')](_0x5a89('0x7c'))));}),_0x236874;}}function F(_0x40b3d6,_0xa79844){const _0x17ddf2=_0xa79844[_0x5a89('0x89')][_0x5a89('0xa6')][_0x5a89('0xee')];if(_0x5a89('0xf4')==typeof _0x40b3d6)return new _0x485b5c(_0x17ddf2,_0x40b3d6);{const _0xf1ede8=_0x40b3d6[_0x5a89('0xb9')][_0x5a89('0x5a')](_0x362fed=>F(_0x362fed,_0xa79844));return new(V[_0x40b3d6[(_0x5a89('0x3b'))]]||_0x401dfd)(_0x17ddf2,_0x40b3d6['name'],_0x40b3d6[_0x5a89('0x96')],_0xf1ede8);}}class T{constructor(_0xd54c1d){this[_0x5a89('0x9e')]=_0xd54c1d,this[_0x5a89('0x78')]=new Map(),this[_0x5a89('0x8')]=-0x1,this[_0x5a89('0x7b')]=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this[_0x5a89('0xb2')]=new Map(),this[_0x5a89('0x98')]=new Map(),this[_0x5a89('0xec')]=new Map(),this['_touched']=new Map(),this[_0x5a89('0xdc')]=new Map(),this[_0x5a89('0x87')]=0x1,this['_rootNames']=this['editor'][_0x5a89('0x4f')][_0x5a89('0xee')][_0x5a89('0x53')](),this[_0x5a89('0xa8')][_0x5a89('0x7e')](_0x5a89('0x44'));}[_0x5a89('0x67')](_0xc8ab97){this[_0x5a89('0x40')]=_0xc8ab97;const _0x36c142=new Map();for(const _0xf810ad of this[_0x5a89('0xa8')]){const _0x2e0c07=J(this[_0x5a89('0x9e')]['model'][_0x5a89('0xee')]['getRoot'](_0xf810ad));_0x36c142[_0x5a89('0xf5')](_0xf810ad,_0x2e0c07);}const _0x3f57cf=Array[_0x5a89('0xe1')](this[_0x5a89('0x9e')][_0x5a89('0x4f')][_0x5a89('0x88')])[_0x5a89('0x5a')](_0x4b7d85=>[_0x4b7d85[_0x5a89('0xa7')],_0x4b7d85[_0x5a89('0x99')]()]),_0x40623b=this[_0x5a89('0x40')][_0x5a89('0x7')];this[_0x5a89('0x2f')](_0x40623b,_0x36c142,_0x3f57cf),this[_0x5a89('0x5d')]=this['_revisionId'];}[_0x5a89('0x92')](_0x58e392,_0x1e2792){if(this[_0x5a89('0x8')]===_0x58e392&&this[_0x5a89('0x7b')]<=_0x1e2792)this[_0x5a89('0x78')][_0x5a89('0xed')]>0x1&&this['_removeMetaData'](this[_0x5a89('0x7b')]),this[_0x5a89('0x84')](this[_0x5a89('0x7b')],_0x1e2792,!0x0);else{if(!this[_0x5a89('0x78')][_0x5a89('0xc6')](_0x58e392)){const _0xa300ab=this['_getPreviousFrom'](_0x58e392);this[_0x5a89('0x8c')](_0xa300ab,_0x58e392,!0x1);}this[_0x5a89('0x8c')](_0x58e392,_0x1e2792,!0x0);}return this['_lastFrom']=_0x58e392,this['_lastTo']=_0x1e2792,this[_0x5a89('0x38')]();}[_0x5a89('0xbe')](_0x21d7b9){this[_0x5a89('0x23')](),this[_0x5a89('0x8')]=_0x21d7b9[_0x5a89('0xe8')],this['_lastTo']=_0x21d7b9[_0x5a89('0x85')];for(const _0x4c28d2 in _0x21d7b9['diffData']){const _0x3e67bd=this[_0x5a89('0xc0')](_0x21d7b9[_0x5a89('0xcd')][_0x4c28d2]['deletions']);_0x3e67bd['rootName']=_0x4c28d2,this[_0x5a89('0xb2')]['set'](_0x4c28d2,_0x3e67bd);const _0x3b7865=this[_0x5a89('0x61')](_0x3e67bd);this['_baseIdsRoots'][_0x5a89('0xf5')](_0x4c28d2,_0x3b7865);for(const [_0x217ff2,_0x6dd82d]of _0x3e67bd[_0x5a89('0x88')]){if(!_0x217ff2[_0x5a89('0x33')]('revision:'))continue;const _0x42dd4f=_0x217ff2[_0x5a89('0x4e')](':')[0x2];for(const _0x3252e1 of _0x6dd82d[_0x5a89('0x8a')]({'singleCharacters':!0x0})){const _0x4a932f=this[_0x5a89('0x68')](_0x3252e1),_0x1977ec=_0x5a89('0xef')==_0x3252e1[_0x5a89('0x3b')]?_0x3252e1[_0x5a89('0x45')][_0x5a89('0xbd')][_0x5a89('0xc5')](0x0,-0x1):_0x3252e1[_0x5a89('0x45')][_0x5a89('0xbd')],_0x4b981d=_0x3b7865[_0x5a89('0xb')](_0x1977ec)['getAttribute'](_0x4a932f);this[_0x5a89('0xc')][_0x5a89('0xf5')](_0x4b981d,{'userId':_0x42dd4f});}}}this[_0x5a89('0x5d')]=this[_0x5a89('0x87')];const _0x21598d=[...Array(this[_0x5a89('0x87')])[_0x5a89('0x39')]()][_0x5a89('0xc5')](0x1)['filter'](_0x2bea17=>!this[_0x5a89('0xc')][_0x5a89('0xc6')](_0x2bea17));let _0x21d69d=0x0;for(const _0x499d2f in _0x21d7b9[_0x5a89('0xcd')]){const _0x168fba=this[_0x5a89('0xc0')](_0x21d7b9[_0x5a89('0xcd')][_0x499d2f][_0x5a89('0xdd')]);_0x168fba[_0x5a89('0xd3')]=_0x499d2f,this['_diffRoots'][_0x5a89('0xf5')](_0x499d2f,_0x168fba);const _0x1fd5e3=this[_0x5a89('0x61')](_0x168fba,Number['NEGATIVE_INFINITY']);this['_idsRoots'][_0x5a89('0xf5')](_0x499d2f,_0x1fd5e3);for(const [_0x52b145,_0x10d270]of _0x168fba[_0x5a89('0x88')]){if(!_0x52b145[_0x5a89('0x33')](_0x5a89('0x64')))continue;const _0x5674bc=_0x52b145[_0x5a89('0x4e')](':')[0x2];for(const _0x273d4d of _0x10d270[_0x5a89('0x8a')]({'singleCharacters':!0x0})){const _0x146b13=this['_getVidAttributeName'](_0x273d4d),_0xe03256=this[_0x5a89('0x87')]++,_0x25bf41='elementEnd'==_0x273d4d[_0x5a89('0x3b')]?_0x273d4d[_0x5a89('0x45')][_0x5a89('0xbd')][_0x5a89('0xc5')](0x0,-0x1):_0x273d4d[_0x5a89('0x45')][_0x5a89('0xbd')];_0x1fd5e3[_0x5a89('0xb')](_0x25bf41)['_setAttribute'](_0x146b13,_0xe03256),this[_0x5a89('0xc')][_0x5a89('0xf5')](_0xe03256,{'userId':_0x5674bc});}}for(const _0x36c8c4 of this[_0x5a89('0x9e')][_0x5a89('0x4f')][_0x5a89('0xab')](_0x168fba)[_0x5a89('0x8a')]({'singleCharacters':!0x0})){const _0x4b873d=this[_0x5a89('0x68')](_0x36c8c4),_0x231eae=_0x5a89('0xef')==_0x36c8c4[_0x5a89('0x3b')]?_0x36c8c4['previousPosition'][_0x5a89('0xbd')][_0x5a89('0xc5')](0x0,-0x1):_0x36c8c4[_0x5a89('0x45')]['path'],_0xe3d4da=_0x1fd5e3[_0x5a89('0xb')](_0x231eae);_0xe3d4da[_0x5a89('0x4b')](_0x4b873d)>0x0||_0xe3d4da[_0x5a89('0xd')](_0x4b873d,_0x21598d[_0x21d69d++]);}const _0x35d795=new _0x58153f();_0x35d795[_0x5a89('0xd3')]=_0x5a89('0x44'),this[_0x5a89('0xb2')][_0x5a89('0xf5')]('$graveyard',_0x35d795),this[_0x5a89('0xec')][_0x5a89('0xf5')](_0x5a89('0x44'),this['_makeIdsRoot'](_0x35d795,0x1));const _0x291e0f=new _0x58153f();_0x291e0f[_0x5a89('0xd3')]=_0x5a89('0x44'),this[_0x5a89('0x56')][_0x5a89('0xf5')]('$graveyard',_0x291e0f),this['_idsRoots'][_0x5a89('0xf5')](_0x5a89('0x44'),this[_0x5a89('0x61')](_0x291e0f,0x1));for(const [_0x29badb,_0x5589c7]of _0x168fba[_0x5a89('0x88')])_0x29badb[_0x5a89('0x33')](_0x5a89('0x64'))||this[_0x5a89('0x7f')]['set'](_0x29badb,_0x5589c7);}const _0x11ecdc=Array[_0x5a89('0xe1')](this[_0x5a89('0x56')])[_0x5a89('0x5a')](([_0x243ecb,_0x301e52])=>[_0x243ecb,J(_0x301e52)]);this[_0x5a89('0x2f')](this[_0x5a89('0x7b')],_0x11ecdc,this[_0x5a89('0x7f')]);}[_0x5a89('0xc0')](_0x47b8d6){const _0x144a3d=JSON[_0x5a89('0x95')](_0x47b8d6),_0x57562f=this[_0x5a89('0x9e')][_0x5a89('0x89')]['view']['document'],_0x307c42=new _0x3b43a7(_0x57562f,_0x144a3d['map'](_0x2af6e6=>F(_0x2af6e6,this['editor'])));return this[_0x5a89('0x9e')][_0x5a89('0xa2')][_0x5a89('0x9d')](_0x307c42);}['_saveEmptyMetaData'](){const _0x2a93b1=new Map();for(const _0x5ad323 of this[_0x5a89('0xa8')]){const _0x28ddbc=new _0x58153f();_0x28ddbc[_0x5a89('0xd3')]=_0x5ad323,_0x2a93b1[_0x5a89('0xf5')](_0x5ad323,_0x28ddbc);}this['_saveMetaData'](Number[_0x5a89('0xb8')],_0x2a93b1,[]);}['_saveMetaData'](_0x3dda0f,_0x30ce2a,_0x388b81){const _0x6b4435=new Map(_0x30ce2a),_0x5dc0f6=new Map();for(const [_0x3d097f,_0x1ea4bc]of _0x388b81)_0x5dc0f6[_0x5a89('0xf5')](_0x3d097f,{'start':_0x1ea4bc[_0x5a89('0xd2')][_0x5a89('0x5b')](),'end':_0x1ea4bc[_0x5a89('0xb5')]['clone'](),'rootName':_0x1ea4bc['root']['rootName']});this[_0x5a89('0x78')][_0x5a89('0xf5')](_0x3dda0f,{'roots':_0x6b4435,'markers':_0x5dc0f6});}[_0x5a89('0x5')](_0xcbba6d){this['_savedMetaData'][_0x5a89('0xce')](_0xcbba6d);}[_0x5a89('0xac')](){this[_0x5a89('0x23')](),this['_lastFrom']=-0x1,this[_0x5a89('0x7b')]=-0x1,this[_0x5a89('0x78')]['clear'](),this[_0x5a89('0x67')](this[_0x5a89('0x40')]);}[_0x5a89('0x23')](){this[_0x5a89('0xc')][_0x5a89('0x3e')](),this[_0x5a89('0xdc')][_0x5a89('0x3e')](),this['_diffRoots'][_0x5a89('0x3e')](),this[_0x5a89('0xb2')][_0x5a89('0x3e')](),this['_idsRoots'][_0x5a89('0x3e')](),this[_0x5a89('0xec')][_0x5a89('0x3e')](),this[_0x5a89('0x7f')][_0x5a89('0x3e')](),this['_revisionId']=0x1,this[_0x5a89('0x5d')]=this[_0x5a89('0x87')];}['_makeIdsRoot'](_0x5e6281,_0x4293c2=null){let _0x19a34e=null;_0x5e6281['is'](_0x5a89('0x86'))||(_0x19a34e=new _0x29a21d(_0x5e6281[_0x5a89('0xa7')],{'vid_start':null===_0x4293c2?this['_revisionId']++:_0x4293c2++}));const _0x447bb3=[];for(const _0xb7011a of _0x5e6281[_0x5a89('0x43')]())if(_0xb7011a['is'](_0x5a89('0xe5'))){_0x447bb3[_0x5a89('0x7e')](this[_0x5a89('0x61')](_0xb7011a,_0x4293c2));const _0x2ccaa0=_0x447bb3[_0x447bb3[_0x5a89('0x66')]-0x1];null!==_0x4293c2&&(_0x4293c2=_0x2ccaa0['is'](_0x5a89('0xe5'),_0x5a89('0x31'))?_0x2ccaa0[_0x5a89('0x4b')](_0x5a89('0x8b'))+0x1:_0x2ccaa0['getAttribute'](_0x5a89('0x9b'))+0x1);}else for(let _0x3c370d=0x0;_0x3c370d<_0xb7011a[_0x5a89('0xbb')];_0x3c370d++)_0x447bb3['push'](new _0x29a21d('$text',{'vid':null===_0x4293c2?this['_revisionId']++:_0x4293c2++}));if(_0x5e6281['is'](_0x5a89('0x86'))){const _0x2b96c6=new _0x58153f(_0x447bb3);return _0x2b96c6[_0x5a89('0xd3')]=_0x5e6281[_0x5a89('0xd3')],_0x2b96c6;}return _0x19a34e['_setAttribute'](_0x5a89('0x9b'),null===_0x4293c2?this[_0x5a89('0x87')]++:_0x4293c2++),_0x19a34e[_0x5a89('0x70')](0x0,_0x447bb3),_0x19a34e;}[_0x5a89('0x8c')](_0x4d8628,_0x178b4d,_0x45f9ff){this[_0x5a89('0x23')]();const {roots:_0x481b43,markers:_0x4093eb}=this['_savedMetaData']['get'](_0x4d8628);this[_0x5a89('0xb2')]=new Map(_0x481b43);for(const [_0x1aa471,_0x5c0f5e]of this[_0x5a89('0xb2')])if('$graveyard'!==_0x1aa471&&(this['_diffRoots'][_0x5a89('0xf5')](_0x1aa471,J(_0x5c0f5e)),_0x45f9ff)){const _0x585472=this[_0x5a89('0x87')];this[_0x5a89('0x98')][_0x5a89('0xf5')](_0x1aa471,this['_makeIdsRoot'](_0x5c0f5e)),this[_0x5a89('0xec')]['set'](_0x1aa471,this[_0x5a89('0x61')](_0x5c0f5e,_0x585472));}this[_0x5a89('0x5d')]=this[_0x5a89('0x87')],this[_0x5a89('0x56')][_0x5a89('0xf5')](_0x5a89('0x44'),J(this['_baseRoots'][_0x5a89('0x10')](_0x5a89('0x44')))),_0x45f9ff&&this[_0x5a89('0x98')]['set']('$graveyard',this[_0x5a89('0x61')](this[_0x5a89('0xb2')][_0x5a89('0x10')](_0x5a89('0x44'))));for(const [_0x18df67,_0x5dbd76]of _0x4093eb){const _0x27f5cf=this[_0x5a89('0xb2')][_0x5a89('0x10')](_0x5dbd76['rootName']),_0x2df966=this['_diffRoots']['get'](_0x5dbd76[_0x5a89('0xd3')]),_0xd62b79=new _0x51a6c6(this[_0x5a89('0x27')](_0x5dbd76[_0x5a89('0xd2')],_0x27f5cf),this[_0x5a89('0x27')](_0x5dbd76[_0x5a89('0xb5')],_0x27f5cf)),_0xa9a5d7=this[_0x5a89('0x48')](_0xd62b79,_0x2df966);_0x27f5cf[_0x5a89('0x88')]['set'](_0x18df67,_0xd62b79),this[_0x5a89('0x7f')][_0x5a89('0xf5')](_0x18df67,_0xa9a5d7);}this['_applyOperations'](_0x4d8628,_0x178b4d,_0x45f9ff);}[_0x5a89('0x84')](_0x363fc2,_0x50ef46,_0xf9ce0e){for(const _0x4c3ba8 of this['source'][_0x5a89('0x8e')](_0x363fc2,_0x50ef46))this[_0x5a89('0xe0')](_0x4c3ba8,_0xf9ce0e);for(const _0x34d77e of this['_diffRoots'][_0x5a89('0xde')]())_0x34d77e['markers']['clear']();for(const [_0x518307,_0x96477d]of this[_0x5a89('0x7f')]){this['_diffRoots'][_0x5a89('0x10')](_0x96477d[_0x5a89('0x7a')][_0x5a89('0xd3')])[_0x5a89('0x88')][_0x5a89('0xf5')](_0x518307,_0x96477d[_0x5a89('0x5b')]());}this[_0x5a89('0x2f')](_0x50ef46,Array[_0x5a89('0xe1')](this[_0x5a89('0x56')])[_0x5a89('0x5a')](([_0x3c8d35,_0x593896])=>[_0x3c8d35,J(_0x593896)]),this[_0x5a89('0x7f')]);}[_0x5a89('0x22')](_0x57c21f){const _0x938928=Array[_0x5a89('0xe1')](this[_0x5a89('0x78')][_0x5a89('0x39')]());_0x938928['sort']((_0x296dff,_0x1b468f)=>_0x296dff-_0x1b468f),_0x938928[_0x5a89('0xe')]();for(const _0x20f105 of _0x938928)if(_0x20f105<_0x57c21f)return _0x20f105;return this[_0x5a89('0x2c')](),Number['NEGATIVE_INFINITY'];}[_0x5a89('0x21')](_0x2c2b66,_0x6f33a3){const _0x4fb48a=Array[_0x5a89('0xe1')](_0x6f33a3[_0x5a89('0x88')])[_0x5a89('0x5a')](([_0x11f415,_0x58ba69])=>[_0x11f415,this[_0x5a89('0x48')](_0x58ba69,_0x2c2b66)]);_0x2c2b66[_0x5a89('0x88')]=new Map(_0x4fb48a);}[_0x5a89('0xe6')](_0x5c0981){for(const _0x1bfbf7 of this['_markers'][_0x5a89('0xde')]()){const _0x236cb9=_0x1bfbf7[_0x5a89('0x0')](_0x5c0981),_0x55a3fe=_0x51a6c6[_0x5a89('0x58')](_0x236cb9);_0x1bfbf7['start']=_0x55a3fe['start'],_0x1bfbf7[_0x5a89('0xb5')]=_0x55a3fe[_0x5a89('0xb5')];}}['_handleOperation'](_0x283af4,_0x6e3ea7){const _0x57a1bf=this[_0x5a89('0xa5')](_0x283af4,this[_0x5a89('0x56')]);if(_0x5a89('0x17')!==_0x283af4[_0x5a89('0x3b')]&&(_0x57a1bf[_0x5a89('0x71')](),this['_transformMarkers'](_0x57a1bf)),_0x6e3ea7)switch(_0x57a1bf['type']){case _0x5a89('0xd4'):this[_0x5a89('0xeb')](_0x283af4);break;case'move':case _0x5a89('0x1c'):case _0x5a89('0x6f'):this[_0x5a89('0xb3')](_0x283af4);break;case _0x5a89('0x80'):this[_0x5a89('0x82')](_0x283af4);break;case _0x5a89('0x4e'):this[_0x5a89('0x59')](_0x283af4);break;case _0x5a89('0x17'):this[_0x5a89('0xa4')](_0x283af4);}}['_cloneOperation'](_0x138031,_0x211cbe){const _0x33c15e=_0x138031['clone']();return _0x33c15e['_authorId']=_0x138031[_0x5a89('0xdf')],this[_0x5a89('0xc7')](_0x33c15e,_0x211cbe),_0x33c15e;}[_0x5a89('0xad')](_0x280d24){return _0x280d24[_0x5a89('0x5a')](_0x4ffa3a=>{const _0x464ca5=this['_getVidAttributeName'](_0x4ffa3a);return Number(_0x4ffa3a[_0x5a89('0x2d')][_0x5a89('0x4b')](_0x464ca5));});}[_0x5a89('0x97')](_0x3dce07,_0x5cbd42){if(_0x3dce07['is']('element',_0x5a89('0x31')))_0x5cbd42['push']({'item':_0x3dce07,'type':_0x5a89('0xaa')});else{_0x3dce07['is'](_0x5a89('0xe5'))&&_0x5cbd42['push']({'item':_0x3dce07,'type':_0x5a89('0x81')});for(const _0x259093 of _0x3dce07[_0x5a89('0x43')]())this[_0x5a89('0x97')](_0x259093,_0x5cbd42);_0x3dce07['is']('element')&&_0x5cbd42[_0x5a89('0x7e')]({'item':_0x3dce07,'type':_0x5a89('0xef')});}return _0x5cbd42;}[_0x5a89('0x38')](){const _0x232551=this[_0x5a89('0x9e')][_0x5a89('0x4f')]['document'][_0x5a89('0x53')](),_0x382631=new Map(this[_0x5a89('0xc')]),_0x42b5cb=new Map(_0x382631),_0x78f97b=new Map(),_0x57ff2b={'insertions':{},'deletions':{}},_0x12fbf0={'insertions':{},'deletions':{}},_0x1c7744=new Map();for(const _0x1c7208 of _0x232551){const _0x2a1925=this[_0x5a89('0x56')][_0x5a89('0x10')](_0x1c7208),_0x2ecc48=this['_baseRoots'][_0x5a89('0x10')](_0x1c7208);_0x57ff2b[_0x5a89('0xdd')][_0x1c7208]=J(_0x2a1925),_0x57ff2b[_0x5a89('0x5f')][_0x1c7208]=J(_0x2ecc48),this[_0x5a89('0x21')](_0x57ff2b[_0x5a89('0x5f')][_0x1c7208],_0x2ecc48),this['_copyMarkers'](_0x57ff2b[_0x5a89('0xdd')][_0x1c7208],_0x2a1925),_0x12fbf0[_0x5a89('0xdd')][_0x1c7208]=this['_generateTape'](this[_0x5a89('0x98')]['get'](_0x1c7208),[]),_0x12fbf0[_0x5a89('0x5f')][_0x1c7208]=this['_generateTape'](this[_0x5a89('0xec')][_0x5a89('0x10')](_0x1c7208),[]);}for(const _0x5a2223 of _0x232551){const _0x4d0bbf=_0x12fbf0[_0x5a89('0xdd')][_0x5a2223];for(const _0x16d7c8 of _0x4d0bbf){const _0x32f2af=this[_0x5a89('0x68')](_0x16d7c8),_0x465173=_0x16d7c8[_0x5a89('0x2d')][_0x5a89('0x4b')](_0x32f2af);_0x42b5cb[_0x5a89('0xce')](_0x465173),_0x465173>=this[_0x5a89('0x5d')]&&_0x78f97b[_0x5a89('0xf5')](_0x465173,_0x382631[_0x5a89('0x10')](_0x465173));}}for(const _0x426d00 of _0x232551){const _0x3b400b=_0x12fbf0['insertions'][_0x426d00],_0x172f42=this['_getBaseVids'](_0x12fbf0[_0x5a89('0x5f')][_0x426d00]);let _0x2420c0=0x0;for(const _0x49e399 of _0x3b400b){const _0x238bfe=this[_0x5a89('0x68')](_0x49e399),_0x2f4aee=_0x49e399[_0x5a89('0x2d')][_0x5a89('0x4b')](_0x238bfe);if(!_0x78f97b[_0x5a89('0xc6')](_0x2f4aee)&&!_0x1c7744[_0x5a89('0xc6')](_0x2f4aee)){if(_0x42b5cb['has'](_0x2f4aee))_0x2420c0++;else{if(_0x2f4aee!=_0x172f42[_0x2420c0]){const _0x15b42a=_0x382631[_0x5a89('0x10')](_0x2f4aee)||_0x382631[_0x5a89('0x10')](_0x172f42[_0x2420c0]);for(;_0x2f4aee!=_0x172f42[_0x2420c0];)_0x42b5cb[_0x5a89('0xc6')](_0x172f42[_0x2420c0])||(_0x1c7744[_0x5a89('0xf5')](_0x172f42[_0x2420c0],_0x15b42a),_0x382631[_0x5a89('0xf5')](_0x172f42[_0x2420c0],_0x15b42a)),_0x2420c0++;}_0x2420c0++;}}}}for(const _0x4ca83d of _0x232551){const _0x541654=_0x12fbf0[_0x5a89('0xdd')][_0x4ca83d];for(const _0x5003ab of _0x541654){const _0x2fdcdd=this[_0x5a89('0x68')](_0x5003ab),_0xdf782f=_0x5003ab['item'][_0x5a89('0x4b')](_0x2fdcdd);if(_0x1c7744[_0x5a89('0xc6')](_0xdf782f)){const _0x3fb5f7=_0x1c7744['get'](_0xdf782f);_0x42b5cb[_0x5a89('0xc6')](_0xdf782f)||_0x42b5cb[_0x5a89('0xf5')](_0xdf782f,{..._0x3fb5f7}),_0x78f97b[_0x5a89('0xf5')](_0xdf782f,{..._0x3fb5f7});}}}for(const _0x11c62c of _0x42b5cb[_0x5a89('0x39')]())_0x11c62c>=this[_0x5a89('0x5d')]&&_0x42b5cb[_0x5a89('0xce')](_0x11c62c);const _0x245287=new Map();for(const _0xf03c79 of _0x232551){let _0x1566d9=_0x12fbf0[_0x5a89('0xdd')][_0xf03c79];for(const _0x227057 of _0x1566d9)if(_0x227057[_0x5a89('0x2d')]['is']('element','tableCell')){const _0x293193=this['_getVidAttributeName'](_0x227057),_0x1d237b=_0x227057[_0x5a89('0x2d')]['getAttribute'](_0x293193);if(_0x78f97b[_0x5a89('0xc6')](_0x1d237b)){const _0xfd364=_0x227057[_0x5a89('0x2d')][_0x5a89('0x1e')]['parent'][_0x5a89('0x4b')]('vid_start'),_0x13ad56=_0x245287[_0x5a89('0x10')](_0xfd364)||new Set();_0x13ad56[_0x5a89('0xdb')](_0x78f97b['get'](_0x1d237b)[_0x5a89('0x90')]),_0x245287['set'](_0xfd364,_0x13ad56);}}_0x1566d9=_0x12fbf0[_0x5a89('0x5f')][_0xf03c79];for(const _0xe1727d of _0x1566d9)if(_0xe1727d['item']['is']('element',_0x5a89('0x5c'))){const _0x473283=this[_0x5a89('0x68')](_0xe1727d),_0x45d52f=_0xe1727d[_0x5a89('0x2d')][_0x5a89('0x4b')](_0x473283);if(_0x42b5cb[_0x5a89('0xc6')](_0x45d52f)){const _0xb1ba52=_0xe1727d[_0x5a89('0x2d')][_0x5a89('0x1e')][_0x5a89('0x1e')]['getAttribute'](_0x5a89('0xc9')),_0x5386fd=_0x245287[_0x5a89('0x10')](_0xb1ba52)||new Set();_0x5386fd['add'](_0x42b5cb[_0x5a89('0x10')](_0x45d52f)[_0x5a89('0x90')]),_0x245287[_0x5a89('0xf5')](_0xb1ba52,_0x5386fd);}}for(const _0x2fe5fd of _0x245287[_0x5a89('0x39')]())(_0x78f97b[_0x5a89('0xc6')](_0x2fe5fd)||_0x42b5cb[_0x5a89('0xc6')](_0x2fe5fd))&&_0x245287[_0x5a89('0xce')](_0x2fe5fd);}for(const _0x52cb91 of _0x232551){const _0x625d9a=_0x12fbf0[_0x5a89('0xdd')][_0x52cb91];let _0x381123=null,_0x729e7e=null;for(const _0x49d6b3 of _0x625d9a){const _0x120c1b=this[_0x5a89('0x68')](_0x49d6b3),_0x33f0c5=_0x49d6b3['item'][_0x5a89('0x4b')](_0x120c1b),_0x3dc650=_0x245287[_0x5a89('0x10')](_0x33f0c5);_0x3dc650&&_0x5a89('0x81')==_0x49d6b3[_0x5a89('0x3b')]&&(_0x381123=Array[_0x5a89('0xe1')](_0x3dc650)[0x0],_0x729e7e=_0x49d6b3[_0x5a89('0x2d')][_0x5a89('0x4b')](_0x5a89('0x9b'))),_0x381123&&(_0x42b5cb['set'](_0x33f0c5,{'userId':_0x381123}),_0x78f97b['set'](_0x33f0c5,{'userId':_0x381123})),_0x33f0c5==_0x729e7e&&(_0x381123=null,_0x729e7e=null);}}const _0x57feed={},_0x550e27=new Set();for(const _0x56a451 of _0x232551){const _0x442fbf=_0x57ff2b[_0x5a89('0x5f')][_0x56a451],_0xa728f8=_0x57ff2b[_0x5a89('0xdd')][_0x56a451];for(const {userId:_0x1df891}of this[_0x5a89('0xdc')][_0x5a89('0xde')]())null!==_0x1df891&&_0x550e27[_0x5a89('0xdb')](_0x1df891);this[_0x5a89('0x4d')](_0xa728f8,_0x12fbf0[_0x5a89('0xdd')][_0x56a451],_0x78f97b,_0x5a89('0x1'),_0x550e27),this[_0x5a89('0x4d')](_0x442fbf,_0x12fbf0['deletions'][_0x56a451],_0x42b5cb,_0x5a89('0x12'),_0x550e27),_0x57feed[_0x56a451]={'insertions':this[_0x5a89('0x46')](_0xa728f8),'deletions':this[_0x5a89('0x46')](_0x442fbf)};}return{'diffData':_0x57feed,'authorsIds':Array[_0x5a89('0xe1')](_0x550e27)};}['_processRootBeforeSave'](_0x24b1b9){for(const [,_0x208715]of _0x24b1b9[_0x5a89('0x88')]){const _0x4aab04=_0x208715[_0x5a89('0xd2')]['getAncestors']()[_0x5a89('0x6a')](_0x203a16=>'tableCell'==_0x203a16[_0x5a89('0xa7')]);for(const _0x57095e of _0x4aab04)0x1==_0x57095e[_0x5a89('0x1a')]&&_0x57095e[_0x5a89('0x52')](0x0)['is'](_0x5a89('0xe5'),_0x5a89('0x37'))&&_0x57095e[_0x5a89('0x52')](0x0)[_0x5a89('0xd')](_0x5a89('0x57'),!0x0);}}[_0x5a89('0x46')](_0x2c26d6){this[_0x5a89('0xf2')](_0x2c26d6);const _0x2c576b=this[_0x5a89('0x9e')][_0x5a89('0xa2')][_0x5a89('0x36')](_0x2c26d6,{}),_0x502189=Array[_0x5a89('0xe1')](_0x2c576b['getChildren']())[_0x5a89('0x5a')](_0x2b93b5=>this['_getViewJson'](_0x2b93b5));return JSON[_0x5a89('0x14')](_0x502189);}[_0x5a89('0xa3')](_0x1cb4d0){if(_0x1cb4d0['is'](_0x5a89('0x31')))return _0x1cb4d0[_0x5a89('0xa2')];{const _0x169f54=_0x1cb4d0;return{'type':Object[_0x5a89('0x39')](V)['find'](_0x39b961=>_0x1cb4d0 instanceof V[_0x39b961]),'name':_0x169f54[_0x5a89('0xa7')],'attributes':Array[_0x5a89('0xe1')](_0x169f54[_0x5a89('0xda')]()),'children':Array[_0x5a89('0xe1')](_0x169f54[_0x5a89('0x43')]())[_0x5a89('0x5a')](_0x16002e=>this[_0x5a89('0xa3')](_0x16002e))};}}[_0x5a89('0x4d')](_0x4699ef,_0x416025,_0x1105fb,_0x24e4e4,_0x20d6a8){let _0x4dca5a=null,_0x46918b=null,_0x388fd9=0x0;const _0xc56cf7=this[_0x5a89('0x9e')][_0x5a89('0x4f')];for(let _0x1c9222=0x0;_0x1c9222<_0x416025[_0x5a89('0x66')];_0x1c9222++){const _0x41e825=this[_0x5a89('0x68')](_0x416025[_0x1c9222]),_0xd28401=_0x416025[_0x1c9222][_0x5a89('0x2d')][_0x5a89('0x4b')](_0x41e825),_0x52d688=_0x1105fb[_0x5a89('0x10')](_0xd28401),_0x2362dd=_0x1c9222==_0x416025[_0x5a89('0x66')]-0x1;(!_0x4dca5a&&_0x52d688&&(_0x4dca5a=_0x52d688,_0x46918b=_0x416025[_0x1c9222]),_0x4dca5a&&(!_0x52d688||_0x52d688['userId']!=_0x4dca5a['userId']))&&(_0x1d1ebb(_0x52d688,j(_0x46918b,_0x4699ef,_0xc56cf7),j(_0x416025[_0x1c9222],_0x4699ef,_0xc56cf7)),_0x4dca5a=_0x52d688||null,_0x46918b=_0x52d688?_0x416025[_0x1c9222]:null),_0x4dca5a&&_0x2362dd&&_0x1d1ebb(_0x52d688,j(_0x46918b,_0x4699ef,_0xc56cf7),B(_0x416025[_0x1c9222],_0x4699ef,_0xc56cf7));}function _0x1d1ebb(_0x1896da,_0x586ac2,_0x1fa712){const _0x2a2625=_0x4dca5a['userId'],_0x49afa6=_0x5a89('0x64')+_0x24e4e4+':'+_0x2a2625+':'+_0x388fd9++,_0x38029f=_0xc56cf7[_0x5a89('0xe2')](_0x586ac2,_0x1fa712);_0x4699ef['markers']['set'](_0x49afa6,_0x38029f),null!==_0x2a2625&&_0x20d6a8[_0x5a89('0xdb')](_0x2a2625);}}[_0x5a89('0x68')](_0x1a4e35){switch(_0x1a4e35['type']){case _0x5a89('0x81'):return _0x5a89('0xc9');case _0x5a89('0xef'):return _0x5a89('0x9b');default:return'vid';}}['_fixOperation'](_0x17beeb,_0x1d8d05){_0x17beeb[_0x5a89('0x6')]=null;for(const _0x217475 in _0x17beeb){const _0x2b1035=_0x17beeb[_0x217475];if(_0x2b1035 instanceof _0x58df94){const _0xa8f619=_0x1d8d05[_0x5a89('0x10')](_0x2b1035[_0x5a89('0x7a')]['rootName']);_0x17beeb[_0x217475]=this[_0x5a89('0x27')](_0x2b1035,_0xa8f619);}if(_0x2b1035 instanceof _0x51a6c6){const _0x1da08a=_0x1d8d05['get'](_0x2b1035[_0x5a89('0x7a')]['rootName']);_0x17beeb[_0x217475]=this[_0x5a89('0x48')](_0x2b1035,_0x1da08a);}}_0x17beeb[_0x5a89('0x7a')]&&(_0x17beeb[_0x5a89('0x7a')]=_0x1d8d05['get'](_0x17beeb['root'][_0x5a89('0xd3')]));}['_fixRange'](_0x32a5a8,_0x4a3f26){return this[_0x5a89('0x9e')][_0x5a89('0x4f')][_0x5a89('0xe2')](this[_0x5a89('0x27')](_0x32a5a8[_0x5a89('0xd2')],_0x4a3f26),this[_0x5a89('0x27')](_0x32a5a8[_0x5a89('0xb5')],_0x4a3f26));}[_0x5a89('0x27')](_0x2a896a,_0x46833a){return this[_0x5a89('0x9e')][_0x5a89('0x4f')][_0x5a89('0x34')](_0x46833a,_0x2a896a[_0x5a89('0xbd')],_0x2a896a[_0x5a89('0x83')]);}[_0x5a89('0xeb')](_0x27e82a){const _0x36c85f=this[_0x5a89('0x98')][_0x5a89('0x10')](_0x27e82a[_0x5a89('0xcb')][_0x5a89('0x7a')][_0x5a89('0xd3')]),_0xfe7adc=this['_fixPosition'](_0x27e82a[_0x5a89('0xcb')],_0x36c85f),_0x1e71a7=null===_0x27e82a[_0x5a89('0xdf')]?null:_0x27e82a[_0x5a89('0xdf')]||this[_0x5a89('0x9e')]['plugins'][_0x5a89('0x10')]('Users')['me']['id'],_0x451409=_0xfe7adc[_0x5a89('0x1e')],_0x2b2928=this[_0x5a89('0x87')],_0x384bf4=[];for(const _0x463f46 of _0x27e82a['nodes'])if(_0x463f46['is'](_0x5a89('0xe5')))_0x384bf4[_0x5a89('0x7e')](this[_0x5a89('0x61')](_0x463f46));else for(let _0x13355=0x0;_0x13355<_0x463f46[_0x5a89('0xbb')];_0x13355++)_0x384bf4[_0x5a89('0x7e')](new _0x29a21d('$text',{'vid':this[_0x5a89('0x87')]++}));const _0x2d9fb9=this['_revisionId'];for(let _0x156dc8=_0x2b2928;_0x156dc8<_0x2d9fb9;_0x156dc8++)this['_touched']['set'](_0x156dc8,{'userId':_0x1e71a7});_0x451409['_insertChild'](_0xfe7adc[_0x5a89('0xd9')],_0x384bf4);}[_0x5a89('0xb3')](_0x321177){(_0x321177=this['_cloneOperation'](_0x321177,this[_0x5a89('0x98')]))['_execute']();const _0x152fd4=null===_0x321177[_0x5a89('0xdf')]?null:_0x321177[_0x5a89('0xdf')]||this[_0x5a89('0x9e')]['plugins'][_0x5a89('0x10')](_0x5a89('0x62'))['me']['id'],_0xec1889=_0x321177[_0x5a89('0xe3')](),_0xa00109=_0xec1889['parent'],_0x22bb83=_0xec1889[_0x5a89('0xd9')];!function _0x4dcbea(_0x5d1102,_0x576ff4,_0x2acdcb,_0x285e4c){for(let _0x43e988=_0x2acdcb;_0x43e988<_0x285e4c;_0x43e988++){const _0x4e2312=_0x576ff4[_0x5a89('0x52')](_0x43e988);_0x4e2312['is'](_0x5a89('0xe5'),_0x5a89('0x31'))?_0x5d1102[_0x5a89('0xf5')](_0x4e2312[_0x5a89('0x4b')](_0x5a89('0x8b')),{'userId':_0x152fd4}):(_0x5d1102['set'](_0x4e2312[_0x5a89('0x4b')](_0x5a89('0xc9')),{'userId':_0x152fd4}),_0x4dcbea(_0x5d1102,_0x4e2312,0x0,_0x4e2312[_0x5a89('0x1a')]),_0x5d1102['set'](_0x4e2312[_0x5a89('0x4b')](_0x5a89('0x9b')),{'userId':_0x152fd4}));}}(this[_0x5a89('0xc')],_0xa00109,_0x22bb83,_0x22bb83+_0x321177[_0x5a89('0xb6')]);}['_handleMergeOperation'](_0x4e0e12){const _0x11750e=null===(_0x4e0e12=this[_0x5a89('0xa5')](_0x4e0e12,this[_0x5a89('0x98')]))[_0x5a89('0xdf')]?null:_0x4e0e12['_authorId']||this[_0x5a89('0x9e')][_0x5a89('0x8f')][_0x5a89('0x10')](_0x5a89('0x62'))['me']['id'],_0x3b8840=_0x4e0e12[_0x5a89('0x79')]['parent'],_0x178829=_0x4e0e12[_0x5a89('0xbc')]['parent'],_0x126751=_0x3b8840['getAttribute'](_0x5a89('0x9b')),_0x1b9329=_0x178829[_0x5a89('0x4b')]('vid_start');_0x3b8840[_0x5a89('0xd')](_0x5a89('0x9b'),_0x178829[_0x5a89('0x4b')]('vid_end')),_0x178829[_0x5a89('0xd')](_0x5a89('0x9b'),_0x126751),this[_0x5a89('0xc')][_0x5a89('0xf5')](_0x1b9329,{'userId':_0x11750e}),this[_0x5a89('0xc')]['set'](_0x126751,{'userId':_0x11750e}),_0x4e0e12[_0x5a89('0x71')]();}[_0x5a89('0x59')](_0x588c9f){const _0x4dbbc5=null===(_0x588c9f=this[_0x5a89('0xa5')](_0x588c9f,this[_0x5a89('0x98')]))[_0x5a89('0xdf')]?null:_0x588c9f['_authorId']||this[_0x5a89('0x9e')][_0x5a89('0x8f')][_0x5a89('0x10')](_0x5a89('0x62'))['me']['id'],_0x99e541=_0x588c9f['graveyardPosition'],_0x29c4cc=_0x588c9f['splitPosition'][_0x5a89('0x1e')];_0x588c9f[_0x5a89('0x71')]();const _0x453f4e=_0x29c4cc[_0x5a89('0x4b')](_0x5a89('0x9b')),_0x3f3277=_0x588c9f[_0x5a89('0xa9')][_0x5a89('0xe4')];if(_0x99e541){const _0x1c37f9=_0x3f3277[_0x5a89('0x4b')](_0x5a89('0x9b')),_0x8aab7=_0x29c4cc[_0x5a89('0x4b')](_0x5a89('0x9b'));_0x29c4cc['_setAttribute']('vid_end',_0x1c37f9),_0x3f3277[_0x5a89('0xd')](_0x5a89('0x9b'),_0x8aab7),this['_touched'][_0x5a89('0xf5')](_0x29c4cc[_0x5a89('0x4b')]('vid_end'),{'userId':_0x4dbbc5}),this[_0x5a89('0xc')][_0x5a89('0xf5')](_0x3f3277[_0x5a89('0x4b')]('vid_start'),{'userId':_0x4dbbc5});}else{const _0x521a17=this[_0x5a89('0x87')]++,_0x5fd714=this['_revisionId']++;_0x29c4cc[_0x5a89('0xd')](_0x5a89('0x9b'),_0x521a17),_0x3f3277[_0x5a89('0xd')](_0x5a89('0xc9'),_0x5fd714),_0x3f3277['_setAttribute'](_0x5a89('0x9b'),_0x453f4e),this[_0x5a89('0xc')][_0x5a89('0xf5')](_0x521a17,{'userId':_0x4dbbc5}),this[_0x5a89('0xc')]['set'](_0x5fd714,{'userId':_0x4dbbc5});}}['_handleMarkerOperation'](_0x5e084e){if(!_0x5e084e[_0x5a89('0xd8')])return;const _0x6afe1b=(_0x5e084e=this['_cloneOperation'](_0x5e084e,this[_0x5a89('0x56')]))[_0x5a89('0xf')]?_0x5e084e[_0x5a89('0xf')][_0x5a89('0x7a')]:null,_0x55e4d9=_0x5e084e[_0x5a89('0xba')]?_0x5e084e[_0x5a89('0xba')]['root']:null;_0x6afe1b&&this[_0x5a89('0x7f')][_0x5a89('0xce')](_0x5e084e['name']),_0x55e4d9&&this[_0x5a89('0x7f')][_0x5a89('0xf5')](_0x5e084e[_0x5a89('0xa7')],_0x5e084e[_0x5a89('0xba')][_0x5a89('0x5b')]());const _0x44cc1f=null===_0x5e084e['_authorId']?null:_0x5e084e[_0x5a89('0xdf')]||this[_0x5a89('0x9e')]['plugins'][_0x5a89('0x10')]('Users')['me']['id'],_0x46b7c5=_0x5e084e['name'];if(!this[_0x5a89('0xdc')][_0x5a89('0xc6')](_0x46b7c5))return void this['_touchedMarkers'][_0x5a89('0xf5')](_0x46b7c5,{'range':_0x5e084e[_0x5a89('0xf')],'userId':_0x44cc1f});const _0x2a501f=this['_touchedMarkers']['get'](_0x46b7c5),_0x6c4d65=_0x2a501f[_0x5a89('0x63')],_0x2b425b=_0x5e084e['newRange'];null==_0x6c4d65&&null==_0x2b425b||_0x6c4d65&&_0x2b425b&&_0x6c4d65['isEqual'](_0x2b425b)?this[_0x5a89('0xdc')][_0x5a89('0xce')](_0x5e084e[_0x5a89('0xa7')]):_0x2a501f[_0x5a89('0x90')]=_0x44cc1f;}}function J(_0x3bf98b){const _0xd3d42d=new _0x58153f();_0xd3d42d[_0x5a89('0xd3')]=_0x3bf98b[_0x5a89('0xd3')];for(const _0x161e89 of _0x3bf98b[_0x5a89('0x43')]()){const _0x3eb93b=_0x161e89[_0x5a89('0x77')](!0x0);_0xd3d42d[_0x5a89('0x3f')](_0x3eb93b);}return _0xd3d42d;}function j(_0x23fab4,_0x23031c,_0x36e28c){const _0x45b130=_0x5a89('0xef')==_0x23fab4[_0x5a89('0x3b')]?_0x36e28c[_0x5a89('0x51')](_0x23fab4['item'],_0x5a89('0xb5')):_0x36e28c[_0x5a89('0x11')](_0x23fab4[_0x5a89('0x2d')]);return _0x36e28c[_0x5a89('0x34')](_0x23031c,_0x45b130[_0x5a89('0xbd')],_0x45b130['stickiness']);}function B(_0x353c32,_0x444e0b,_0x54dd77){const _0x45dd36='elementStart'==_0x353c32[_0x5a89('0x3b')]?_0x54dd77['createPositionAt'](_0x353c32[_0x5a89('0x2d')],0x0):_0x54dd77['createPositionAfter'](_0x353c32['item']);return _0x54dd77[_0x5a89('0x34')](_0x444e0b,_0x45dd36[_0x5a89('0xbd')],_0x45dd36['stickiness']);}