@ckeditor/ckeditor5-revision-history 35.2.1 → 35.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/build/revision-history.js +1 -1
- package/package.json +7 -7
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/revisiontracker.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1e8d=['root','_fixRange','_isInit','requires','insertion','_loadRevisionData','getChild','PendingActions','collaboration.channelId','_continueCurrentRevision','_saveMetaData','insertions','_startingRevisionId','createRange','Empty\x20document','paragraph','buildRevisionData','range','_fixOperation','affectsData','name','map','_removePendingAction','graveyardPosition','repository','editing','getRootNames','data','_applyOperations','_findInsertionIndex','_prepareViewToSave','_handleMoveOperation','_startingVersion','toModel','authorsIds','revision-end','getWalker','_cloneOperation','startsWith','isReady','_bufferedUpdates','length','_calculateMetaData','createRevision','finally','tableCell','_execute','_markers','_operations','define','parse','initialData','_makeModelFromViewString','_transformMarkers','addRevisionData','userId','version','element','markers','set','max','revisionHistory.resumeUnsavedRevision','getRevisions','roots','_createCurrentRevision','marker','createRangeIn','diffData','config','default','saveRevision','_touchedMarkers','view','updateRevisions','data-revision-','_diffRoots','fromVersion','update','reInit','RealTimeCollaborationClient','_bufferUpdate','plugins','oldRange','push','vid','_markChanges','for','getData','sendBufferedUpdates','document','_createFromRanges','getOperations','toData','nodeAfter','getRange','_baseIdsRoots','howMany','getUser','getRevisionDocumentData','createPositionFromPath','targetPosition','locale','keepParagraph','offsetSize','_revisionDataBuilder','_addPendingAction','_loadedStateData','_source','processor','source','toView','_getViewJson','_baseRoots','conversion','find','_saveEmptyMetaData','vid_start','_clone','_getVidAttributeName','splitPosition','size','_lastTo','getAttributes','rootName','isPendingUpdate','offset','creator','string','getAncestors','setRevisionData','pluginName','isEnabled','_revisionId','getAttribute','clone','reverse','keys','_replaceEditorDataWithRevisionData','get','filter','_lastFrom','from','_appendChild','getRevision','_processRootBeforeSave','dataToMarker','init','addRevision','add','_getState','deletions','PENDING_ACTION_REVISION_HISTORY','_copyMarkers','_savedMetaData','type','documentFragment','_authorId','childCount','editor','forEach','getCurrentRevisionId','start','clear','isEqual','_generateTape','_handleMarkerOperation','text','toVersion','_getPreviousFrom','elementEnd','_getFromVersion','parent','revision','getChildren','_getBaseVids','_isPendingUpdate','_handleMergeOperation','NEGATIVE_INFINITY','path','setSource','deletion','createPositionBefore','dataDowncast','previousPosition','afterInit','_makeRevision','vid_end','_idsRoots','_handleOperation','history','_update','position','slice','_loadState','_handleSplitOperation','children','merge','_setAttribute','stickiness','adapter','has','split','insertionPosition','revision:','RevisionsRepository','attributes','getLatestVersion','reinsert','getMovedRangeStart','createdAt','createPositionAt','_touched','Users','_initialRevisionId','item','_rootNames','getRoot','createPositionAfter','_pendingAction','newRange','_reset','baseVersion','loadState','_makeIdsRoot','model','values','initial','delete','end','_removeMetaData','remove','_removeRevisionMarkers','$text','_insertChild','sort','getNodeByPath','then','editor-initial-data-replaced-with-revision-data','elementStart','_setConversion','$graveyard','authors','includes','currentRevision','creatorId','insert','resolve','getOperation','_fixPosition','_handleInsertOperation'];(function(_0x2ef8c5,_0x1e8de5){const _0x1fd933=function(_0x236d82){while(--_0x236d82){_0x2ef8c5['push'](_0x2ef8c5['shift']());}};_0x1fd933(++_0x1e8de5);}(_0x1e8d,0x129));const _0x1fd9=function(_0x2ef8c5,_0x1e8de5){_0x2ef8c5=_0x2ef8c5-0x0;let _0x1fd933=_0x1e8d[_0x2ef8c5];return _0x1fd933;};import{Users as _0x586538}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x522f82,PendingActions as _0x29c99b}from'ckeditor5/src/core';import{logWarning as _0x134e8d,uid as _0x2c1e37}from'ckeditor5/src/utils';import{Position as _0x4e2940,Range as _0x376643,Element as _0x420226,DocumentFragment as _0x584dd6,ViewText as _0x20c37a,ViewElement as _0x5cdbe6,ViewContainerElement as _0x26eb5c,ViewAttributeElement as _0x5ebcd4,ViewEmptyElement as _0x31ee01,ViewRawElement as _0xb3ad0f,ViewUIElement as _0x522d21,ViewDocumentFragment as _0x4a06c5}from'ckeditor5/src/engine';import _0x20bfcf from'./revisionsrepository';import{getTranslation as _0x256b49}from'./utils/common-translations';const J={'c':_0x26eb5c,'a':_0x5ebcd4,'e':_0x31ee01,'r':_0xb3ad0f,'u':_0x522d21};export default class u extends _0x522f82{static get[_0x1fd9('0x53')](){return'RevisionTracker';}static get[_0x1fd9('0xce')](){return[_0x586538,_0x20bfcf,_0x29c99b];}constructor(..._0x1c590c){super(..._0x1c590c),this[_0x1fd9('0x98')]=null,this['set']('isReady',!0x1),this[_0x1fd9('0xc')](_0x1fd9('0x54'),!0x0),this[_0x1fd9('0xc4')]=null;const _0x526e17=_0x2c1e37();this[_0x1fd9('0x3c')]={'history':this[_0x1fd9('0x6f')][_0x1fd9('0xb1')][_0x1fd9('0x2a')]['history'],'getLatestVersion':()=>Promise['resolve'](this[_0x1fd9('0x6f')][_0x1fd9('0xb1')][_0x1fd9('0x2a')][_0x1fd9('0x9')]),'getCurrentRevisionId':()=>_0x526e17},this[_0x1fd9('0x39')]=new B(this[_0x1fd9('0x6f')]),this[_0x1fd9('0xa6')]=this[_0x1fd9('0x6f')]['config'][_0x1fd9('0x5b')](_0x1fd9('0xd3'))||_0x1fd9('0xb3'),this[_0x1fd9('0xc')](_0x1fd9('0x4d'),!0x1),this[_0x1fd9('0xf3')]=new Map(),this['editor'][_0x1fd9('0x15')][_0x1fd9('0x2')]('revisionHistory.resumeUnsavedRevision',!0x0),this[_0x1fd9('0x3b')]=null,this[_0x1fd9('0x6f')][_0x1fd9('0x42')][_0x1fd9('0x27')]('upcast')[_0x1fd9('0x62')]({'view':'revision'});}['init'](){this[_0x1fd9('0xe3')]=this['editor'][_0x1fd9('0x22')][_0x1fd9('0x5b')](_0x1fd9('0x9d')),this[_0x1fd9('0xc0')](),this['editor'][_0x1fd9('0xe6')]['on']('ready',()=>{const _0x4f55b0=this[_0x1fd9('0xe3')][_0x1fd9('0x60')](0x0),_0x3dfc65=_0x4f55b0&&null===_0x4f55b0[_0x1fd9('0x4f')]?_0x4f55b0:null;if(this[_0x1fd9('0xd4')]=!!_0x3dfc65&&this[_0x1fd9('0x6f')][_0x1fd9('0x15')][_0x1fd9('0x5b')](_0x1fd9('0xe')),this['editor']['plugins'][_0x1fd9('0x99')](_0x1fd9('0x20'))){const _0x1d569e=this[_0x1fd9('0x3c')]['getCurrentRevisionId'](),_0xe7866e=this[_0x1fd9('0xe3')][_0x1fd9('0x60')](_0x1d569e);if(_0xe7866e)this[_0x1fd9('0xeb')]=_0xe7866e[_0x1fd9('0x1d')],this[_0x1fd9('0xd4')]=!0x1;else{const _0x452ee6=this[_0x1fd9('0x3c')]['history'][_0x1fd9('0x1')][_0x1fd9('0x43')](_0x3b7979=>!_0x3b7979[_0x1fd9('0xcd')]),_0x3b6a1b=_0x452ee6?_0x452ee6[_0x1fd9('0xae')]:this['_source'][_0x1fd9('0x8e')][_0x1fd9('0x9')];_0x4f55b0?(_0x4f55b0['toVersion']<_0x3b6a1b&&_0x4f55b0['_update']({'toVersion':_0x3b6a1b}),this[_0x1fd9('0xd4')]?(this[_0x1fd9('0x3c')]['getCurrentRevisionId']=()=>_0x3dfc65['id'],this[_0x1fd9('0xeb')]=_0x3dfc65[_0x1fd9('0x1d')]):(this['_startingVersion']=_0x4f55b0[_0x1fd9('0x78')],this['_continueCurrentRevision']=!0x1)):(this[_0x1fd9('0xeb')]=_0x3b6a1b,this[_0x1fd9('0xd4')]=!0x1);}}else _0x3dfc65&&(this['editor'][_0x1fd9('0xb1')][_0x1fd9('0x2a')]['history'][_0x1fd9('0x9')]=Math[_0x1fd9('0xd')](_0x3dfc65['toVersion'],this[_0x1fd9('0x6f')][_0x1fd9('0xb1')][_0x1fd9('0x2a')][_0x1fd9('0x8e')]['version']),_0x3dfc65[_0x1fd9('0x1d')]===_0x3dfc65[_0x1fd9('0x78')]?(0x0!==_0x3dfc65[_0x1fd9('0x1d')]&&(this['_source'][_0x1fd9('0x71')]=()=>_0x3dfc65['id']),this[_0x1fd9('0xd4')]=!0x1):this[_0x1fd9('0xd4')]&&(this[_0x1fd9('0x3c')][_0x1fd9('0x71')]=()=>_0x3dfc65['id'],this['_startingVersion']=_0x3dfc65[_0x1fd9('0x1d')])),this[_0x1fd9('0xd4')]||(this[_0x1fd9('0xeb')]=this[_0x1fd9('0x6f')]['model']['document'][_0x1fd9('0x9')]);this[_0x1fd9('0x39')]['init'](this['_source']['history']),this['_createInitialRevision'](this['_startingVersion']),this['_createCurrentRevision'](this[_0x1fd9('0xeb')]),this['adapter']&&this['sendBufferedUpdates']();}),this['bind'](_0x1fd9('0xf2'))['to'](this,'_isPendingUpdate',_0x2a994b=>!_0x2a994b);}async[_0x1fd9('0x89')](){if(this[_0x1fd9('0xe3')]['length']>0x0){const _0x3cefb9=this['repository']['getRevision'](0x0),_0x8c7b06=await this['getRevisionDocumentData'](_0x3cefb9);this[_0x1fd9('0x5a')](_0x8c7b06);}}[_0x1fd9('0x84')](_0xbfb24f){this[_0x1fd9('0x3c')]=_0xbfb24f;}async[_0x1fd9('0x1e')](){const _0xc02603=await this[_0x1fd9('0x3c')][_0x1fd9('0x9f')]();if(_0xc02603>this[_0x1fd9('0xc4')][_0x1fd9('0x78')]){await this[_0x1fd9('0x92')]();const _0x5b9604=this[_0x1fd9('0xdb')]({'revision':this['currentRevision'],'to':_0xc02603});_0x5b9604['authors']=_0x5b9604['authorsIds']['map'](_0x15215f=>this[_0x1fd9('0x6f')][_0x1fd9('0x22')][_0x1fd9('0x5b')](_0x1fd9('0xa5'))[_0x1fd9('0x32')](_0x15215f)),this[_0x1fd9('0xc4')][_0x1fd9('0x8f')](_0x5b9604);}}async[_0x1fd9('0x92')](){this['_continueCurrentRevision']&&!this[_0x1fd9('0x3b')]&&(await this[_0x1fd9('0xd0')](this[_0x1fd9('0xc4')]),this[_0x1fd9('0x39')][_0x1fd9('0xaf')](this[_0x1fd9('0xc4')]),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this[_0x1fd9('0xc4')][_0x1fd9('0xc2')][_0x1fd9('0x91')]()});}async[_0x1fd9('0x17')](_0xb9493c={},_0x414634=null){const _0x2f61aa=[];await this['_loadState'](),this[_0x1fd9('0xd4')]=!0x1,_0x414634>this[_0x1fd9('0xc4')][_0x1fd9('0x78')]&&(_0x414634=null),null===_0x414634&&(_0x414634=await this[_0x1fd9('0x3c')][_0x1fd9('0x9f')]());const _0x1dd50d=this[_0x1fd9('0x7b')](_0x414634),_0x6513eb=this['buildRevisionData']({'from':_0x1dd50d,'to':_0x414634});if(this[_0x1fd9('0xc4')][_0x1fd9('0x78')]<_0x414634){const _0x45b190=this['buildRevisionData']({'revision':this[_0x1fd9('0xc4')],'from':_0x414634,'to':_0x414634});_0x45b190[_0x1fd9('0xc2')]=[],_0x45b190[_0x1fd9('0xed')]=[],_0x45b190['id']=this[_0x1fd9('0xc4')]['id'],this[_0x1fd9('0xc4')][_0x1fd9('0x8f')](_0x45b190,!0x0),delete _0x45b190['authors'],_0x2f61aa[_0x1fd9('0x24')](_0x45b190);}_0xb9493c[_0x1fd9('0xc5')]=this['editor']['plugins'][_0x1fd9('0x5b')]('Users')['me']['id'],_0xb9493c['name']=_0xb9493c['name']||null,_0xb9493c['id']=_0xb9493c['id']||_0x2c1e37(),_0xb9493c={..._0xb9493c,..._0x6513eb};const _0x32221d=this[_0x1fd9('0x7')](_0xb9493c);_0x2f61aa[_0x1fd9('0x24')](_0xb9493c);const _0x1d8a4d=this['repository']['getIndex'](_0x32221d);if(0x0!==_0x1d8a4d){const _0x5dbf54=this[_0x1fd9('0xe3')][_0x1fd9('0x60')](_0x1d8a4d-0x1);if(_0x5dbf54['fromVersion']!==_0x414634){const _0x312225=this[_0x1fd9('0x39')][_0x1fd9('0x28')](_0x414634,_0x5dbf54[_0x1fd9('0x78')]),_0x3f2246={'id':_0x5dbf54['id'],'diffData':_0x312225[_0x1fd9('0x14')],'authorsIds':_0x312225[_0x1fd9('0xed')],'authors':_0x312225['authorsIds'][_0x1fd9('0xe0')](_0x35b92e=>this[_0x1fd9('0x6f')][_0x1fd9('0x22')]['get']('Users')[_0x1fd9('0x32')](_0x35b92e)),'fromVersion':_0x414634};_0x5dbf54===this[_0x1fd9('0xc4')]&&(_0x3f2246[_0x1fd9('0xa2')]=new Date(_0xb9493c['createdAt']['getTime']()+0xa)),_0x5dbf54[_0x1fd9('0x8f')](_0x3f2246,!0x0),delete _0x3f2246['authors'],_0x2f61aa['push'](_0x3f2246);}}if(this[_0x1fd9('0x98')]){for(const _0x4e50e3 of _0x2f61aa)this[_0x1fd9('0x21')](_0x4e50e3['id'],_0x4e50e3,!0x0);this['sendBufferedUpdates']();}return _0x32221d;}[_0x1fd9('0x7')](_0x913bda){const _0x5711c4=this[_0x1fd9('0xe3')][_0x1fd9('0xf6')](_0x913bda);return this[_0x1fd9('0x98')]&&_0x5711c4['on']('_update',(_0x54d27a,_0x16a88a,_0x11bac5)=>{_0x11bac5||(this[_0x1fd9('0x21')](_0x16a88a['id'],_0x16a88a,!0x0),this['sendBufferedUpdates']());}),this[_0x1fd9('0xe3')][_0x1fd9('0x64')](_0x5711c4,this[_0x1fd9('0xe8')](_0x5711c4)),_0x5711c4;}async[_0x1fd9('0x33')](_0x24e475){await this[_0x1fd9('0xd0')](_0x24e475);const _0x4a6fe7={};for(const _0x229051 in _0x24e475[_0x1fd9('0x14')]){const _0x2075f3=this[_0x1fd9('0xb8')](JSON[_0x1fd9('0x3')](_0x24e475[_0x1fd9('0x14')][_0x229051]['insertions'])),_0x4b6b49=this[_0x1fd9('0x6f')]['editing']['view'][_0x1fd9('0x2a')],_0x391aa1=new _0x4a06c5(_0x4b6b49,_0x2075f3[_0x1fd9('0xe0')](_0x30c0da=>j(_0x30c0da,this['editor'])));this['editor'][_0x1fd9('0xe6')][_0x1fd9('0x3d')]['useFillerType']('marked'),_0x4a6fe7[_0x229051]=this['editor'][_0x1fd9('0xe6')][_0x1fd9('0x3d')][_0x1fd9('0x2d')](_0x391aa1),this[_0x1fd9('0x6f')][_0x1fd9('0xe6')]['processor']['useFillerType'](_0x1fd9('0x16'));}return _0x4a6fe7;}['sendBufferedUpdates'](){if(0x0===this[_0x1fd9('0xf3')][_0x1fd9('0x49')])return;if(this[_0x1fd9('0x80')])return;let _0x4d965a=Array[_0x1fd9('0x5e')](this[_0x1fd9('0xf3')]['values']());this[_0x1fd9('0xf3')][_0x1fd9('0x73')]();for(let _0x5a772e=0x0;_0x5a772e<_0x4d965a[_0x1fd9('0xf4')];_0x5a772e++){const _0x119c6a=_0x4d965a[_0x5a772e];let _0x371622=!0x1;for(const _0x35db85 of Object['keys'](_0x119c6a))void 0x0===_0x119c6a[_0x35db85]?delete _0x119c6a[_0x35db85]:'id'!==_0x35db85&&(_0x371622=!0x0);_0x371622||(_0x4d965a[_0x5a772e]=null);}if(_0x4d965a=_0x4d965a[_0x1fd9('0x5c')](_0x158bcc=>null!==_0x158bcc),!_0x4d965a[_0x1fd9('0xf4')])return;for(let _0x1fc027=0x0;_0x1fc027<_0x4d965a[_0x1fd9('0xf4')];_0x1fc027++){const _0x49d29d=_0x4d965a[_0x1fc027];void 0x0!==_0x49d29d['fromVersion']&&void 0x0===_0x49d29d['toVersion']&&(_0x49d29d['toVersion']=this['repository'][_0x1fd9('0x60')](_0x49d29d['id'])['toVersion']),void 0x0!==_0x49d29d[_0x1fd9('0x78')]&&void 0x0===_0x49d29d[_0x1fd9('0x1d')]&&(_0x49d29d[_0x1fd9('0x1d')]=this[_0x1fd9('0xe3')]['getRevision'](_0x49d29d['id'])[_0x1fd9('0x1d')]);}const _0x254f23=this[_0x1fd9('0x6f')][_0x1fd9('0x15')]['get']('collaboration.channelId');this[_0x1fd9('0x80')]=!0x0,this['_addPendingAction'](),this[_0x1fd9('0x98')][_0x1fd9('0x1a')](_0x4d965a,_0x254f23)[_0x1fd9('0xf7')](()=>{this[_0x1fd9('0x80')]=!0x1;})[_0x1fd9('0xbd')](_0x5194fc=>{if(_0x5194fc)for(const _0x580387 of _0x5194fc)this['setRevisionData']({'id':_0x580387['id'],'createdAt':_0x580387[_0x1fd9('0xa2')]});this[_0x1fd9('0xe1')](),this[_0x1fd9('0x29')]();});}[_0x1fd9('0x5a')](_0x32b725){let _0x53bb81=this[_0x1fd9('0x6f')]['config']['get']('initialData');if(void 0x0===_0x53bb81){_0x53bb81={};for(const _0x536ec5 of this[_0x1fd9('0x6f')][_0x1fd9('0xb1')][_0x1fd9('0x2a')][_0x1fd9('0xe5')]())_0x53bb81[_0x536ec5]='';}_0x1fd9('0x50')==typeof _0x53bb81&&(_0x53bb81={'main':_0x53bb81});let _0x2d4283=!0x1;for(const _0x1cbd0b of Object[_0x1fd9('0x59')](_0x53bb81))_0x32b725[_0x1cbd0b]&&(_0x53bb81[_0x1cbd0b]!==_0x32b725[_0x1cbd0b]&&''!==_0x53bb81[_0x1cbd0b]['trim']()&&(_0x2d4283=!0x0),_0x53bb81[_0x1cbd0b]=_0x32b725[_0x1cbd0b]);_0x2d4283&&_0x134e8d(_0x1fd9('0xbe')),this[_0x1fd9('0x6f')]['config'][_0x1fd9('0xc')](_0x1fd9('0x4'),_0x53bb81);}[_0x1fd9('0x3a')](){if(!this[_0x1fd9('0xab')]){const _0x586972=this[_0x1fd9('0x6f')][_0x1fd9('0x22')][_0x1fd9('0x5b')](_0x1fd9('0xd2'));this[_0x1fd9('0xab')]=_0x586972[_0x1fd9('0x65')](_0x256b49(this[_0x1fd9('0x6f')]['locale'],_0x1fd9('0x68')));}}[_0x1fd9('0xe1')](){this[_0x1fd9('0xab')]&&(this[_0x1fd9('0x6f')]['plugins'][_0x1fd9('0x5b')](_0x1fd9('0xd2'))[_0x1fd9('0xb7')](this['_pendingAction']),this['_pendingAction']=null);}[_0x1fd9('0xe8')](_0xd8f269){const _0x29c7a3=this[_0x1fd9('0xe3')][_0x1fd9('0xf')]();_0x29c7a3['reverse']();let _0x3defe7=0x0;for(;_0x3defe7<_0x29c7a3[_0x1fd9('0xf4')];){const _0x262f9c=_0x29c7a3[_0x3defe7];if(_0x262f9c===this['currentRevision']){_0x3defe7++;continue;}if(_0x262f9c['id']===this['_initialRevisionId'])break;const _0x176c8f=_0xd8f269[_0x1fd9('0x78')]-_0x262f9c[_0x1fd9('0x78')]||_0xd8f269[_0x1fd9('0x1d')]-_0x262f9c[_0x1fd9('0x1d')];if(_0x176c8f>0x0)break;if(_0x176c8f<0x0)_0x3defe7++;else{if(!_0xd8f269[_0x1fd9('0x4f')]&&_0x262f9c[_0x1fd9('0x4f')])break;if(_0x262f9c[_0x1fd9('0x4f')]||!_0xd8f269[_0x1fd9('0x4f')]){if(_0xd8f269['createdAt']>_0x262f9c[_0x1fd9('0xa2')])break;_0x3defe7++;}else _0x3defe7++;}}return _0x3defe7;}[_0x1fd9('0x52')](_0x223363){const _0x439c5f=this[_0x1fd9('0xe3')][_0x1fd9('0x60')](_0x223363['id']);if(_0x223363[_0x1fd9('0xa2')]&&(_0x223363[_0x1fd9('0xa2')]=new Date(_0x223363[_0x1fd9('0xa2')])),_0x223363[_0x1fd9('0xed')]){const _0x210d16=this['editor'][_0x1fd9('0x22')]['get'](_0x1fd9('0xa5'));_0x223363[_0x1fd9('0xc2')]=_0x223363['authorsIds']['map'](_0x5c5702=>_0x210d16['getUser'](_0x5c5702));}_0x439c5f[_0x1fd9('0x8f')](_0x223363,!0x0);}[_0x1fd9('0xdb')]({revision:_0x4a1381=null,from:_0x43d9c0=null,to:_0x4957d3=null}){_0x43d9c0=null!==_0x43d9c0?_0x43d9c0:_0x4a1381[_0x1fd9('0x1d')],_0x4957d3=null!==_0x4957d3?_0x4957d3:_0x4a1381[_0x1fd9('0x78')];const _0x5e7d04=this[_0x1fd9('0x39')][_0x1fd9('0x28')](_0x43d9c0,_0x4957d3),_0x36bca9={'diffData':_0x5e7d04['diffData'],'authorsIds':_0x5e7d04[_0x1fd9('0xed')],'fromVersion':_0x43d9c0,'toVersion':_0x4957d3};if(!_0x4a1381||_0x4957d3!==_0x4a1381[_0x1fd9('0x78')]){const _0x1620cf=_0x4957d3-0x1,_0x2c99a5=this[_0x1fd9('0x3c')][_0x1fd9('0x8e')][_0x1fd9('0xc8')](_0x1620cf);_0x36bca9[_0x1fd9('0xa2')]=_0x2c99a5&&_0x2c99a5['createdAt']||new Date();}if(this[_0x1fd9('0x3b')]&&_0x43d9c0===this[_0x1fd9('0x3b')][_0x1fd9('0x1d')])for(const _0x4151db of this['_loadedStateData'][_0x1fd9('0xc2')])_0x36bca9[_0x1fd9('0xed')][_0x1fd9('0xc3')](_0x4151db['id'])||_0x36bca9[_0x1fd9('0xed')][_0x1fd9('0x24')](_0x4151db['id']);return _0x36bca9;}[_0x1fd9('0xd0')](_0x3ee294){if(!_0x3ee294||_0x3ee294[_0x1fd9('0x14')])return Promise[_0x1fd9('0xc7')]();{const _0xb69f85=this[_0x1fd9('0x6f')][_0x1fd9('0x15')][_0x1fd9('0x5b')](_0x1fd9('0xd3'));return this[_0x1fd9('0x98')][_0x1fd9('0x60')]({'channelId':_0xb69f85,'revisionId':_0x3ee294['id']})['then'](_0x4990ec=>{_0x3ee294[_0x1fd9('0x14')]=_0x4990ec[_0x1fd9('0x14')];});}}[_0x1fd9('0x21')](_0x5e1abb,_0x135c23,_0x2e0b0d){if(this[_0x1fd9('0xf3')][_0x1fd9('0x99')](_0x5e1abb)){const _0x1138a8=this[_0x1fd9('0xf3')][_0x1fd9('0x5b')](_0x5e1abb);_0x135c23=_0x2e0b0d?{..._0x1138a8,..._0x135c23}:{..._0x135c23,..._0x1138a8};}this[_0x1fd9('0xf3')][_0x1fd9('0xc')](_0x5e1abb,_0x135c23);}[_0x1fd9('0x7b')](_0x6d8600){const _0x117012=this[_0x1fd9('0xe3')][_0x1fd9('0xf')]();_0x117012[_0x1fd9('0x58')](),_0x117012['shift']();const _0x14761b=_0x117012[_0x1fd9('0x43')](_0x208c4a=>_0x208c4a['toVersion']<=_0x6d8600)[_0x1fd9('0x78')];return _0x14761b<this['_startingVersion']?this[_0x1fd9('0xeb')]:_0x14761b;}['_createInitialRevision'](_0x15e93e){const _0x1f6e81=this[_0x1fd9('0xe3')]['getRevision'](this[_0x1fd9('0xe3')]['length']-0x1);if(_0x1f6e81)this[_0x1fd9('0xa6')]=_0x1f6e81['id'];else{const _0x29b6e9=!this['editor'][_0x1fd9('0xb1')][_0x1fd9('0x2a')][_0x1fd9('0x10')][_0x1fd9('0x43')](_0x1e08b8=>this[_0x1fd9('0x6f')][_0x1fd9('0xb1')]['hasContent'](_0x1e08b8)),_0x3da68a=this[_0x1fd9('0x6f')][_0x1fd9('0x22')][_0x1fd9('0x5b')](_0x1fd9('0xa5'))['me']['id'],_0x38d7f5=_0x256b49(this[_0x1fd9('0x6f')][_0x1fd9('0x36')],_0x29b6e9?_0x1fd9('0xd9'):'Initial\x20revision');this[_0x1fd9('0x8a')]({'from':_0x15e93e,'to':_0x15e93e,'id':this[_0x1fd9('0xa6')],'name':_0x38d7f5,'creatorId':_0x3da68a});}}[_0x1fd9('0x11')](_0x1a5032){const _0x209813=this['_source'][_0x1fd9('0x71')]();this[_0x1fd9('0xc4')]=this[_0x1fd9('0xe3')][_0x1fd9('0x60')](_0x209813),this[_0x1fd9('0xc4')]||(this[_0x1fd9('0xc4')]=this[_0x1fd9('0x8a')]({'from':_0x1a5032,'to':_0x1a5032,'id':_0x209813,'name':'','creatorId':null}));}[_0x1fd9('0x8a')]({name:_0x3276b3,from:_0x1ffc10,to:_0x3bc19c,creatorId:_0x25d32b,id:_0x54b66a}){const _0x226147=this[_0x1fd9('0xdb')]({'from':_0x1ffc10,'to':_0x3bc19c});_0x226147[_0x1fd9('0xdf')]=_0x3276b3,_0x226147[_0x1fd9('0xc5')]=_0x25d32b,_0x226147['id']=_0x54b66a;const _0x29dff3=this[_0x1fd9('0x7')](_0x226147);return this[_0x1fd9('0x98')]&&this[_0x1fd9('0x21')](_0x226147['id'],_0x226147,!0x0),_0x29dff3;}['_setConversion'](){this[_0x1fd9('0x6f')]['conversion']['for'](_0x1fd9('0x87'))['markerToData']({'model':_0x1fd9('0x7d')});}[_0x1fd9('0xb8')](_0x245159){return(_0x245159=_0x245159[_0x1fd9('0x5c')](_0x3801ab=>!_0x3801ab['name']||'revision-start'!==_0x3801ab[_0x1fd9('0xdf')]&&_0x1fd9('0xee')!==_0x3801ab['name']))[_0x1fd9('0x70')](_0x17656c=>{'string'!=typeof _0x17656c&&(_0x17656c[_0x1fd9('0x94')]=this[_0x1fd9('0xb8')](_0x17656c[_0x1fd9('0x94')]),_0x17656c[_0x1fd9('0x9e')]=_0x17656c[_0x1fd9('0x9e')][_0x1fd9('0x5c')](_0x4335e2=>!_0x4335e2[0x0]['startsWith'](_0x1fd9('0x1b'))));}),_0x245159;}}function j(_0x2ffde8,_0x4725af){const _0x4dd187=_0x4725af[_0x1fd9('0xe4')]['view']['document'];if(_0x1fd9('0x50')==typeof _0x2ffde8)return new _0x20c37a(_0x4dd187,_0x2ffde8);{const _0x38d625=_0x2ffde8[_0x1fd9('0x94')]['map'](_0x48d768=>j(_0x48d768,_0x4725af));return new(J[_0x2ffde8[(_0x1fd9('0x6b'))]]||_0x5cdbe6)(_0x4dd187,_0x2ffde8[_0x1fd9('0xdf')],_0x2ffde8[_0x1fd9('0x9e')],_0x38d625);}}class B{constructor(_0x2f8f23){this[_0x1fd9('0x6f')]=_0x2f8f23,this[_0x1fd9('0x6a')]=new Map(),this[_0x1fd9('0x5d')]=-0x1,this[_0x1fd9('0x4a')]=-0x1,this['_markers']=new Map(),this[_0x1fd9('0x1c')]=new Map(),this[_0x1fd9('0x41')]=new Map(),this[_0x1fd9('0x8c')]=new Map(),this[_0x1fd9('0x30')]=new Map(),this[_0x1fd9('0xa4')]=new Map(),this[_0x1fd9('0x18')]=new Map(),this[_0x1fd9('0x55')]=0x1,this[_0x1fd9('0xa8')]=this[_0x1fd9('0x6f')][_0x1fd9('0xb1')][_0x1fd9('0x2a')][_0x1fd9('0xe5')](),this['_rootNames'][_0x1fd9('0x24')](_0x1fd9('0xc1'));}[_0x1fd9('0x63')](_0x183ebb){this[_0x1fd9('0x3e')]=_0x183ebb;const _0xd422f3=new Map();for(const _0x36b5a9 of this[_0x1fd9('0xa8')]){const _0x826041=H(this['editor'][_0x1fd9('0xb1')]['document'][_0x1fd9('0xa9')](_0x36b5a9));_0xd422f3[_0x1fd9('0xc')](_0x36b5a9,_0x826041);}const _0x20cb03=Array[_0x1fd9('0x5e')](this[_0x1fd9('0x6f')]['model'][_0x1fd9('0xb')])[_0x1fd9('0xe0')](_0x347fb9=>[_0x347fb9[_0x1fd9('0xdf')],_0x347fb9[_0x1fd9('0x2f')]()]),_0x8b2077=this[_0x1fd9('0x3e')][_0x1fd9('0x9')];this[_0x1fd9('0xd5')](_0x8b2077,_0xd422f3,_0x20cb03),this[_0x1fd9('0xd7')]=this[_0x1fd9('0x55')];}[_0x1fd9('0x28')](_0x48c1c8,_0x36de1e){if(this['_lastFrom']===_0x48c1c8&&this['_lastTo']<=_0x36de1e)this[_0x1fd9('0x6a')][_0x1fd9('0x49')]>0x1&&this[_0x1fd9('0xb6')](this['_lastTo']),this['_applyOperations'](this[_0x1fd9('0x4a')],_0x36de1e,!0x0);else{if(!this[_0x1fd9('0x6a')][_0x1fd9('0x99')](_0x48c1c8)){const _0x47ed0b=this['_getPreviousFrom'](_0x48c1c8);this['_calculateMetaData'](_0x47ed0b,_0x48c1c8,!0x1);}this[_0x1fd9('0xf5')](_0x48c1c8,_0x36de1e,!0x0);}return this['_lastFrom']=_0x48c1c8,this[_0x1fd9('0x4a')]=_0x36de1e,this[_0x1fd9('0x66')]();}['loadState'](_0xe378da){this[_0x1fd9('0xad')](),this[_0x1fd9('0x5d')]=_0xe378da[_0x1fd9('0x1d')],this[_0x1fd9('0x4a')]=_0xe378da[_0x1fd9('0x78')];for(const _0x4e2408 in _0xe378da[_0x1fd9('0x14')]){const _0x59caab=this[_0x1fd9('0x5')](_0xe378da[_0x1fd9('0x14')][_0x4e2408][_0x1fd9('0x67')]);_0x59caab[_0x1fd9('0x4c')]=_0x4e2408,this[_0x1fd9('0x41')][_0x1fd9('0xc')](_0x4e2408,_0x59caab);const _0x42c48b=this[_0x1fd9('0xb0')](_0x59caab);this[_0x1fd9('0x30')][_0x1fd9('0xc')](_0x4e2408,_0x42c48b);for(const [_0x413723,_0x13ad91]of _0x59caab['markers']){if(!_0x413723['startsWith'](_0x1fd9('0x9c')))continue;const _0x54b07e=_0x413723['split'](':')[0x2];for(const _0x5163d7 of _0x13ad91[_0x1fd9('0xef')]({'singleCharacters':!0x0})){const _0x4781b2=this['_getVidAttributeName'](_0x5163d7),_0x3b7066=_0x1fd9('0x7a')==_0x5163d7['type']?_0x5163d7['previousPosition']['path'][_0x1fd9('0x91')](0x0,-0x1):_0x5163d7[_0x1fd9('0x88')][_0x1fd9('0x83')],_0x344274=_0x42c48b[_0x1fd9('0xbc')](_0x3b7066)[_0x1fd9('0x56')](_0x4781b2);this[_0x1fd9('0xa4')][_0x1fd9('0xc')](_0x344274,{'userId':_0x54b07e});}}}this[_0x1fd9('0xd7')]=this[_0x1fd9('0x55')];const _0x42a828=[...Array(this[_0x1fd9('0x55')])[_0x1fd9('0x59')]()]['slice'](0x1)[_0x1fd9('0x5c')](_0x227244=>!this[_0x1fd9('0xa4')][_0x1fd9('0x99')](_0x227244));let _0x2d034e=0x0;for(const _0x3977b7 in _0xe378da[_0x1fd9('0x14')]){const _0x167236=this[_0x1fd9('0x5')](_0xe378da[_0x1fd9('0x14')][_0x3977b7][_0x1fd9('0xd6')]);_0x167236[_0x1fd9('0x4c')]=_0x3977b7,this[_0x1fd9('0x1c')][_0x1fd9('0xc')](_0x3977b7,_0x167236);const _0xc240de=this['_makeIdsRoot'](_0x167236,Number[_0x1fd9('0x82')]);this[_0x1fd9('0x8c')]['set'](_0x3977b7,_0xc240de);for(const [_0x2bd3d3,_0x51619]of _0x167236[_0x1fd9('0xb')]){if(!_0x2bd3d3['startsWith']('revision:'))continue;const _0x1f36f4=_0x2bd3d3[_0x1fd9('0x9a')](':')[0x2];for(const _0x2ec584 of _0x51619[_0x1fd9('0xef')]({'singleCharacters':!0x0})){const _0x3d5fb3=this[_0x1fd9('0x47')](_0x2ec584),_0x24707=this[_0x1fd9('0x55')]++,_0x4841a7=_0x1fd9('0x7a')==_0x2ec584[_0x1fd9('0x6b')]?_0x2ec584[_0x1fd9('0x88')]['path'][_0x1fd9('0x91')](0x0,-0x1):_0x2ec584[_0x1fd9('0x88')]['path'];_0xc240de[_0x1fd9('0xbc')](_0x4841a7)[_0x1fd9('0x96')](_0x3d5fb3,_0x24707),this['_touched'][_0x1fd9('0xc')](_0x24707,{'userId':_0x1f36f4});}}for(const _0x2e6ae8 of this[_0x1fd9('0x6f')][_0x1fd9('0xb1')][_0x1fd9('0x13')](_0x167236)[_0x1fd9('0xef')]({'singleCharacters':!0x0})){const _0x356ee1=this[_0x1fd9('0x47')](_0x2e6ae8),_0x29ac5f='elementEnd'==_0x2e6ae8[_0x1fd9('0x6b')]?_0x2e6ae8[_0x1fd9('0x88')][_0x1fd9('0x83')]['slice'](0x0,-0x1):_0x2e6ae8[_0x1fd9('0x88')]['path'],_0x2f96d8=_0xc240de[_0x1fd9('0xbc')](_0x29ac5f);_0x2f96d8[_0x1fd9('0x56')](_0x356ee1)>0x0||_0x2f96d8['_setAttribute'](_0x356ee1,_0x42a828[_0x2d034e++]);}const _0x52dab0=new _0x584dd6();_0x52dab0[_0x1fd9('0x4c')]='$graveyard',this[_0x1fd9('0x41')][_0x1fd9('0xc')](_0x1fd9('0xc1'),_0x52dab0),this[_0x1fd9('0x30')]['set'](_0x1fd9('0xc1'),this[_0x1fd9('0xb0')](_0x52dab0,0x1));const _0x4eb3c4=new _0x584dd6();_0x4eb3c4[_0x1fd9('0x4c')]=_0x1fd9('0xc1'),this['_diffRoots']['set'](_0x1fd9('0xc1'),_0x4eb3c4),this['_idsRoots'][_0x1fd9('0xc')]('$graveyard',this['_makeIdsRoot'](_0x4eb3c4,0x1));for(const [_0x31835e,_0x3408e9]of _0x167236[_0x1fd9('0xb')])_0x31835e[_0x1fd9('0xf1')](_0x1fd9('0x9c'))||this[_0x1fd9('0x0')]['set'](_0x31835e,_0x3408e9);}const _0x6b0a34=Array[_0x1fd9('0x5e')](this[_0x1fd9('0x1c')])[_0x1fd9('0xe0')](([_0x27d0d0,_0x5013ca])=>[_0x27d0d0,H(_0x5013ca)]);this['_saveMetaData'](this['_lastTo'],_0x6b0a34,this[_0x1fd9('0x0')]);}['_makeModelFromViewString'](_0x5f5a37){const _0x4b4fb4=JSON[_0x1fd9('0x3')](_0x5f5a37),_0x35d189=this[_0x1fd9('0x6f')][_0x1fd9('0xe4')][_0x1fd9('0x19')][_0x1fd9('0x2a')],_0x304c3b=new _0x4a06c5(_0x35d189,_0x4b4fb4[_0x1fd9('0xe0')](_0x22cac7=>j(_0x22cac7,this[_0x1fd9('0x6f')])));return this['editor'][_0x1fd9('0xe6')][_0x1fd9('0xec')](_0x304c3b);}[_0x1fd9('0x44')](){const _0x7ce236=new Map();for(const _0x4220cb of this[_0x1fd9('0xa8')]){const _0x1b5c31=new _0x584dd6();_0x1b5c31[_0x1fd9('0x4c')]=_0x4220cb,_0x7ce236[_0x1fd9('0xc')](_0x4220cb,_0x1b5c31);}this[_0x1fd9('0xd5')](Number['NEGATIVE_INFINITY'],_0x7ce236,[]);}[_0x1fd9('0xd5')](_0x5ae052,_0xb9ad1a,_0x309ee4){const _0x44a75b=new Map(_0xb9ad1a),_0x335d49=new Map();for(const [_0x5c9c80,_0x1144eb]of _0x309ee4)_0x335d49[_0x1fd9('0xc')](_0x5c9c80,{'start':_0x1144eb['start']['clone'](),'end':_0x1144eb[_0x1fd9('0xb5')]['clone'](),'rootName':_0x1144eb[_0x1fd9('0xcb')][_0x1fd9('0x4c')]});this[_0x1fd9('0x6a')][_0x1fd9('0xc')](_0x5ae052,{'roots':_0x44a75b,'markers':_0x335d49});}[_0x1fd9('0xb6')](_0x58aa7a){this[_0x1fd9('0x6a')][_0x1fd9('0xb4')](_0x58aa7a);}[_0x1fd9('0x1f')](){this[_0x1fd9('0xad')](),this[_0x1fd9('0x5d')]=-0x1,this[_0x1fd9('0x4a')]=-0x1,this[_0x1fd9('0x6a')][_0x1fd9('0x73')](),this['init'](this['source']);}[_0x1fd9('0xad')](){this[_0x1fd9('0xa4')][_0x1fd9('0x73')](),this[_0x1fd9('0x18')][_0x1fd9('0x73')](),this[_0x1fd9('0x1c')]['clear'](),this[_0x1fd9('0x41')][_0x1fd9('0x73')](),this[_0x1fd9('0x8c')][_0x1fd9('0x73')](),this[_0x1fd9('0x30')][_0x1fd9('0x73')](),this[_0x1fd9('0x0')][_0x1fd9('0x73')](),this[_0x1fd9('0x55')]=0x1,this['_startingRevisionId']=this[_0x1fd9('0x55')];}[_0x1fd9('0xb0')](_0x3d2c94,_0x285d21=null){let _0x2d0c6d=null;_0x3d2c94['is']('documentFragment')||(_0x2d0c6d=new _0x420226(_0x3d2c94[_0x1fd9('0xdf')],{'vid_start':null===_0x285d21?this['_revisionId']++:_0x285d21++}));const _0x5528e3=[];for(const _0x117a72 of _0x3d2c94[_0x1fd9('0x7e')]())if(_0x117a72['is'](_0x1fd9('0xa'))){_0x5528e3[_0x1fd9('0x24')](this[_0x1fd9('0xb0')](_0x117a72,_0x285d21));const _0x327dea=_0x5528e3[_0x5528e3[_0x1fd9('0xf4')]-0x1];null!==_0x285d21&&(_0x285d21=_0x327dea['is']('element',_0x1fd9('0xb9'))?_0x327dea[_0x1fd9('0x56')](_0x1fd9('0x25'))+0x1:_0x327dea['getAttribute'](_0x1fd9('0x8b'))+0x1);}else for(let _0xb3318e=0x0;_0xb3318e<_0x117a72[_0x1fd9('0x38')];_0xb3318e++)_0x5528e3[_0x1fd9('0x24')](new _0x420226(_0x1fd9('0xb9'),{'vid':null===_0x285d21?this[_0x1fd9('0x55')]++:_0x285d21++}));if(_0x3d2c94['is'](_0x1fd9('0x6c'))){const _0x494d52=new _0x584dd6(_0x5528e3);return _0x494d52[_0x1fd9('0x4c')]=_0x3d2c94[_0x1fd9('0x4c')],_0x494d52;}return _0x2d0c6d['_setAttribute'](_0x1fd9('0x8b'),null===_0x285d21?this[_0x1fd9('0x55')]++:_0x285d21++),_0x2d0c6d[_0x1fd9('0xba')](0x0,_0x5528e3),_0x2d0c6d;}[_0x1fd9('0xf5')](_0x492783,_0x12be72,_0x1807b5){this['_reset']();const {roots:_0xf41e4,markers:_0xad58ea}=this[_0x1fd9('0x6a')][_0x1fd9('0x5b')](_0x492783);this[_0x1fd9('0x41')]=new Map(_0xf41e4);for(const [_0x1f4038,_0x17ba22]of this[_0x1fd9('0x41')])if(_0x1fd9('0xc1')!==_0x1f4038&&(this[_0x1fd9('0x1c')][_0x1fd9('0xc')](_0x1f4038,H(_0x17ba22)),_0x1807b5)){const _0x33c403=this['_revisionId'];this[_0x1fd9('0x8c')][_0x1fd9('0xc')](_0x1f4038,this[_0x1fd9('0xb0')](_0x17ba22)),this[_0x1fd9('0x30')][_0x1fd9('0xc')](_0x1f4038,this[_0x1fd9('0xb0')](_0x17ba22,_0x33c403));}this[_0x1fd9('0xd7')]=this[_0x1fd9('0x55')],this[_0x1fd9('0x1c')][_0x1fd9('0xc')](_0x1fd9('0xc1'),H(this[_0x1fd9('0x41')][_0x1fd9('0x5b')](_0x1fd9('0xc1')))),_0x1807b5&&this['_idsRoots'][_0x1fd9('0xc')](_0x1fd9('0xc1'),this['_makeIdsRoot'](this[_0x1fd9('0x41')][_0x1fd9('0x5b')](_0x1fd9('0xc1'))));for(const [_0x483f77,_0xce03ed]of _0xad58ea){const _0x1e491d=this[_0x1fd9('0x41')][_0x1fd9('0x5b')](_0xce03ed[_0x1fd9('0x4c')]),_0x13a82b=this['_diffRoots'][_0x1fd9('0x5b')](_0xce03ed[_0x1fd9('0x4c')]),_0xaaf962=new _0x376643(this[_0x1fd9('0xc9')](_0xce03ed[_0x1fd9('0x72')],_0x1e491d),this[_0x1fd9('0xc9')](_0xce03ed[_0x1fd9('0xb5')],_0x1e491d)),_0x206b47=this[_0x1fd9('0xcc')](_0xaaf962,_0x13a82b);_0x1e491d[_0x1fd9('0xb')][_0x1fd9('0xc')](_0x483f77,_0xaaf962),this[_0x1fd9('0x0')][_0x1fd9('0xc')](_0x483f77,_0x206b47);}this[_0x1fd9('0xe7')](_0x492783,_0x12be72,_0x1807b5);}[_0x1fd9('0xe7')](_0x27d63b,_0x1bfeb5,_0x25ac4a){for(const _0x2e23fd of this['source'][_0x1fd9('0x2c')](_0x27d63b,_0x1bfeb5))this[_0x1fd9('0x8d')](_0x2e23fd,_0x25ac4a);for(const _0x186197 of this[_0x1fd9('0x1c')][_0x1fd9('0xb2')]())_0x186197['markers'][_0x1fd9('0x73')]();for(const [_0x3f255a,_0x2dcf40]of this[_0x1fd9('0x0')]){this[_0x1fd9('0x1c')][_0x1fd9('0x5b')](_0x2dcf40['root'][_0x1fd9('0x4c')])[_0x1fd9('0xb')][_0x1fd9('0xc')](_0x3f255a,_0x2dcf40['clone']());}this[_0x1fd9('0xd5')](_0x1bfeb5,Array['from'](this[_0x1fd9('0x1c')])[_0x1fd9('0xe0')](([_0x56afb9,_0x489484])=>[_0x56afb9,H(_0x489484)]),this['_markers']);}[_0x1fd9('0x79')](_0xfe77b7){const _0x28510e=Array['from'](this['_savedMetaData']['keys']());_0x28510e[_0x1fd9('0xbb')]((_0x49bdd6,_0x3fd664)=>_0x49bdd6-_0x3fd664),_0x28510e[_0x1fd9('0x58')]();for(const _0x407eca of _0x28510e)if(_0x407eca<_0xfe77b7)return _0x407eca;return this[_0x1fd9('0x44')](),Number[_0x1fd9('0x82')];}[_0x1fd9('0x69')](_0xbba93b,_0x10193e){const _0x50d7d1=Array[_0x1fd9('0x5e')](_0x10193e[_0x1fd9('0xb')])[_0x1fd9('0xe0')](([_0x35f7de,_0x14ea60])=>[_0x35f7de,this['_fixRange'](_0x14ea60,_0xbba93b)]);_0xbba93b[_0x1fd9('0xb')]=new Map(_0x50d7d1);}[_0x1fd9('0x6')](_0x51b4fe){for(const _0x20219f of this[_0x1fd9('0x0')][_0x1fd9('0xb2')]()){const _0x2bb5e1=_0x20219f['getTransformedByOperation'](_0x51b4fe),_0x1c8fca=_0x376643[_0x1fd9('0x2b')](_0x2bb5e1);_0x20219f[_0x1fd9('0x72')]=_0x1c8fca[_0x1fd9('0x72')],_0x20219f[_0x1fd9('0xb5')]=_0x1c8fca[_0x1fd9('0xb5')];}}['_handleOperation'](_0x34b8da,_0xacad2f){const _0x92acb1=this[_0x1fd9('0xf0')](_0x34b8da,this['_diffRoots']);if(_0x1fd9('0x12')!==_0x34b8da[_0x1fd9('0x6b')]&&(_0x92acb1['_execute'](),this[_0x1fd9('0x6')](_0x92acb1)),_0xacad2f)switch(_0x92acb1[_0x1fd9('0x6b')]){case _0x1fd9('0xc6'):this[_0x1fd9('0xca')](_0x34b8da);break;case'move':case _0x1fd9('0xb7'):case _0x1fd9('0xa0'):this['_handleMoveOperation'](_0x34b8da);break;case _0x1fd9('0x95'):this['_handleMergeOperation'](_0x34b8da);break;case _0x1fd9('0x9a'):this[_0x1fd9('0x93')](_0x34b8da);break;case'marker':this[_0x1fd9('0x76')](_0x34b8da);}}[_0x1fd9('0xf0')](_0x4e6a1f,_0x3308a2){const _0x305c8a=_0x4e6a1f[_0x1fd9('0x57')]();return _0x305c8a[_0x1fd9('0x6d')]=_0x4e6a1f['_authorId'],this[_0x1fd9('0xdd')](_0x305c8a,_0x3308a2),_0x305c8a;}[_0x1fd9('0x7f')](_0x266a39){return _0x266a39[_0x1fd9('0xe0')](_0x26f167=>{const _0x4f828f=this['_getVidAttributeName'](_0x26f167);return Number(_0x26f167[_0x1fd9('0xa7')][_0x1fd9('0x56')](_0x4f828f));});}[_0x1fd9('0x75')](_0x129e5d,_0x37caea){if(_0x129e5d['is']('element',_0x1fd9('0xb9')))_0x37caea[_0x1fd9('0x24')]({'item':_0x129e5d,'type':_0x1fd9('0x77')});else{_0x129e5d['is'](_0x1fd9('0xa'))&&_0x37caea[_0x1fd9('0x24')]({'item':_0x129e5d,'type':_0x1fd9('0xbf')});for(const _0x1dbdb5 of _0x129e5d[_0x1fd9('0x7e')]())this[_0x1fd9('0x75')](_0x1dbdb5,_0x37caea);_0x129e5d['is'](_0x1fd9('0xa'))&&_0x37caea['push']({'item':_0x129e5d,'type':'elementEnd'});}return _0x37caea;}[_0x1fd9('0x66')](){const _0x1db013=this[_0x1fd9('0x6f')][_0x1fd9('0xb1')][_0x1fd9('0x2a')][_0x1fd9('0xe5')](),_0x18a2da=new Map(this[_0x1fd9('0xa4')]),_0x1cccd0=new Map(_0x18a2da),_0x39b295=new Map(),_0x17cd32={'insertions':{},'deletions':{}},_0x40e3ba={'insertions':{},'deletions':{}},_0x2d08d8=new Map();for(const _0x508fc7 of _0x1db013){const _0x35ff19=this[_0x1fd9('0x1c')]['get'](_0x508fc7),_0x318493=this['_baseRoots'][_0x1fd9('0x5b')](_0x508fc7);_0x17cd32[_0x1fd9('0xd6')][_0x508fc7]=H(_0x35ff19),_0x17cd32[_0x1fd9('0x67')][_0x508fc7]=H(_0x318493),this[_0x1fd9('0x69')](_0x17cd32['deletions'][_0x508fc7],_0x318493),this[_0x1fd9('0x69')](_0x17cd32[_0x1fd9('0xd6')][_0x508fc7],_0x35ff19),_0x40e3ba[_0x1fd9('0xd6')][_0x508fc7]=this[_0x1fd9('0x75')](this['_idsRoots']['get'](_0x508fc7),[]),_0x40e3ba['deletions'][_0x508fc7]=this[_0x1fd9('0x75')](this[_0x1fd9('0x30')]['get'](_0x508fc7),[]);}for(const _0x300f65 of _0x1db013){const _0x3792c1=_0x40e3ba['insertions'][_0x300f65];for(const _0x582c96 of _0x3792c1){const _0x5395f5=this[_0x1fd9('0x47')](_0x582c96),_0x3c4bbd=_0x582c96[_0x1fd9('0xa7')][_0x1fd9('0x56')](_0x5395f5);_0x1cccd0[_0x1fd9('0xb4')](_0x3c4bbd),_0x3c4bbd>=this['_startingRevisionId']&&_0x39b295[_0x1fd9('0xc')](_0x3c4bbd,_0x18a2da[_0x1fd9('0x5b')](_0x3c4bbd));}}for(const _0x127fd5 of _0x1db013){const _0x1f0b0d=_0x40e3ba['insertions'][_0x127fd5],_0x4b7163=this[_0x1fd9('0x7f')](_0x40e3ba['deletions'][_0x127fd5]);let _0x16f9c6=0x0;for(const _0x6884d of _0x1f0b0d){const _0x24c122=this['_getVidAttributeName'](_0x6884d),_0x957eb7=_0x6884d['item'][_0x1fd9('0x56')](_0x24c122);if(!_0x39b295['has'](_0x957eb7)&&!_0x2d08d8[_0x1fd9('0x99')](_0x957eb7)){if(_0x1cccd0['has'](_0x957eb7))_0x16f9c6++;else{if(_0x957eb7!=_0x4b7163[_0x16f9c6]){const _0x194359=_0x18a2da[_0x1fd9('0x5b')](_0x957eb7)||_0x18a2da[_0x1fd9('0x5b')](_0x4b7163[_0x16f9c6]);for(;_0x957eb7!=_0x4b7163[_0x16f9c6];)_0x1cccd0[_0x1fd9('0x99')](_0x4b7163[_0x16f9c6])||(_0x2d08d8[_0x1fd9('0xc')](_0x4b7163[_0x16f9c6],_0x194359),_0x18a2da['set'](_0x4b7163[_0x16f9c6],_0x194359)),_0x16f9c6++;}_0x16f9c6++;}}}}for(const _0x50ab4c of _0x1db013){const _0x7f2806=_0x40e3ba[_0x1fd9('0xd6')][_0x50ab4c];for(const _0x484de8 of _0x7f2806){const _0x451d0f=this['_getVidAttributeName'](_0x484de8),_0x38569b=_0x484de8[_0x1fd9('0xa7')][_0x1fd9('0x56')](_0x451d0f);if(_0x2d08d8['has'](_0x38569b)){const _0xb96d29=_0x2d08d8[_0x1fd9('0x5b')](_0x38569b);_0x1cccd0[_0x1fd9('0x99')](_0x38569b)||_0x1cccd0[_0x1fd9('0xc')](_0x38569b,{..._0xb96d29}),_0x39b295['set'](_0x38569b,{..._0xb96d29});}}}for(const _0x241886 of _0x1cccd0[_0x1fd9('0x59')]())_0x241886>=this[_0x1fd9('0xd7')]&&_0x1cccd0['delete'](_0x241886);const _0x22bc39=new Map();for(const _0x49548a of _0x1db013){let _0x3fbe2a=_0x40e3ba[_0x1fd9('0xd6')][_0x49548a];for(const _0x56015f of _0x3fbe2a)if(_0x56015f[_0x1fd9('0xa7')]['is'](_0x1fd9('0xa'),_0x1fd9('0xf8'))){const _0x32401e=this[_0x1fd9('0x47')](_0x56015f),_0x51fbf5=_0x56015f['item'][_0x1fd9('0x56')](_0x32401e);if(_0x39b295[_0x1fd9('0x99')](_0x51fbf5)){const _0x592818=_0x56015f[_0x1fd9('0xa7')]['parent'][_0x1fd9('0x7c')][_0x1fd9('0x56')]('vid_start'),_0x1fe3b6=_0x22bc39[_0x1fd9('0x5b')](_0x592818)||new Set();_0x1fe3b6[_0x1fd9('0x65')](_0x39b295['get'](_0x51fbf5)['userId']),_0x22bc39['set'](_0x592818,_0x1fe3b6);}}_0x3fbe2a=_0x40e3ba[_0x1fd9('0x67')][_0x49548a];for(const _0x19f28c of _0x3fbe2a)if(_0x19f28c[_0x1fd9('0xa7')]['is'](_0x1fd9('0xa'),_0x1fd9('0xf8'))){const _0x364d20=this[_0x1fd9('0x47')](_0x19f28c),_0x417c4c=_0x19f28c['item'][_0x1fd9('0x56')](_0x364d20);if(_0x1cccd0[_0x1fd9('0x99')](_0x417c4c)){const _0x169f07=_0x19f28c['item'][_0x1fd9('0x7c')]['parent'][_0x1fd9('0x56')](_0x1fd9('0x45')),_0x407ef4=_0x22bc39[_0x1fd9('0x5b')](_0x169f07)||new Set();_0x407ef4[_0x1fd9('0x65')](_0x1cccd0[_0x1fd9('0x5b')](_0x417c4c)['userId']),_0x22bc39[_0x1fd9('0xc')](_0x169f07,_0x407ef4);}}for(const _0x1ac17a of _0x22bc39[_0x1fd9('0x59')]())(_0x39b295['has'](_0x1ac17a)||_0x1cccd0[_0x1fd9('0x99')](_0x1ac17a))&&_0x22bc39['delete'](_0x1ac17a);}for(const _0x32877c of _0x1db013){const _0x2cd9aa=_0x40e3ba['insertions'][_0x32877c];let _0x409723=null,_0x55b0f3=null;for(const _0x151979 of _0x2cd9aa){const _0x217de5=this[_0x1fd9('0x47')](_0x151979),_0x2ecb54=_0x151979[_0x1fd9('0xa7')]['getAttribute'](_0x217de5),_0x20d923=_0x22bc39[_0x1fd9('0x5b')](_0x2ecb54);_0x20d923&&_0x1fd9('0xbf')==_0x151979[_0x1fd9('0x6b')]&&(_0x409723=Array[_0x1fd9('0x5e')](_0x20d923)[0x0],_0x55b0f3=_0x151979[_0x1fd9('0xa7')][_0x1fd9('0x56')]('vid_end')),_0x409723&&(_0x1cccd0['set'](_0x2ecb54,{'userId':_0x409723}),_0x39b295['set'](_0x2ecb54,{'userId':_0x409723})),_0x2ecb54==_0x55b0f3&&(_0x409723=null,_0x55b0f3=null);}}const _0x691b91={},_0x6fc13a=new Set();for(const _0x56047c of _0x1db013){const _0xdfec6c=_0x17cd32[_0x1fd9('0x67')][_0x56047c],_0x3750a8=_0x17cd32[_0x1fd9('0xd6')][_0x56047c];for(const {userId:_0x1713f1}of this[_0x1fd9('0x18')][_0x1fd9('0xb2')]())null!==_0x1713f1&&_0x6fc13a['add'](_0x1713f1);this[_0x1fd9('0x26')](_0x3750a8,_0x40e3ba[_0x1fd9('0xd6')][_0x56047c],_0x39b295,_0x1fd9('0xcf'),_0x6fc13a),this[_0x1fd9('0x26')](_0xdfec6c,_0x40e3ba[_0x1fd9('0x67')][_0x56047c],_0x1cccd0,_0x1fd9('0x85'),_0x6fc13a),_0x691b91[_0x56047c]={'insertions':this[_0x1fd9('0xe9')](_0x3750a8),'deletions':this['_prepareViewToSave'](_0xdfec6c)};}return{'diffData':_0x691b91,'authorsIds':Array[_0x1fd9('0x5e')](_0x6fc13a)};}[_0x1fd9('0x61')](_0x2f6fc6){for(const [,_0x2e4b18]of _0x2f6fc6['markers']){const _0x6569b8=_0x2e4b18[_0x1fd9('0x72')][_0x1fd9('0x51')]()['filter'](_0x1316d9=>_0x1fd9('0xf8')==_0x1316d9[_0x1fd9('0xdf')]);for(const _0x3831bb of _0x6569b8)0x1==_0x3831bb[_0x1fd9('0x6e')]&&_0x3831bb[_0x1fd9('0xd1')](0x0)['is'](_0x1fd9('0xa'),_0x1fd9('0xda'))&&_0x3831bb['getChild'](0x0)[_0x1fd9('0x96')](_0x1fd9('0x37'),!0x0);}}[_0x1fd9('0xe9')](_0xc8b165){this[_0x1fd9('0x61')](_0xc8b165);const _0x19620f=this[_0x1fd9('0x6f')][_0x1fd9('0xe6')][_0x1fd9('0x3f')](_0xc8b165,{}),_0x322a9d=Array[_0x1fd9('0x5e')](_0x19620f['getChildren']())[_0x1fd9('0xe0')](_0x15ba83=>this[_0x1fd9('0x40')](_0x15ba83));return JSON['stringify'](_0x322a9d);}[_0x1fd9('0x40')](_0x3e2c5f){if(_0x3e2c5f['is'](_0x1fd9('0x77')))return _0x3e2c5f[_0x1fd9('0xe6')];return{'type':Object[_0x1fd9('0x59')](J)[_0x1fd9('0x43')](_0x288c97=>_0x3e2c5f instanceof J[_0x288c97]),'name':_0x3e2c5f['name'],'attributes':Array['from'](_0x3e2c5f[_0x1fd9('0x4b')]()),'children':Array[_0x1fd9('0x5e')](_0x3e2c5f[_0x1fd9('0x7e')]())['map'](_0x2d6cc5=>this[_0x1fd9('0x40')](_0x2d6cc5))};}['_markChanges'](_0x3c967b,_0x432c6d,_0x483ab0,_0x5729e5,_0x16536e){let _0x573120=null,_0x12a960=null,_0x2a52ce=0x0;const _0x512e05=this[_0x1fd9('0x6f')][_0x1fd9('0xb1')];for(let _0x5a5cad=0x0;_0x5a5cad<_0x432c6d[_0x1fd9('0xf4')];_0x5a5cad++){const _0x702205=this['_getVidAttributeName'](_0x432c6d[_0x5a5cad]),_0x2acc1e=_0x432c6d[_0x5a5cad]['item'][_0x1fd9('0x56')](_0x702205),_0x40a938=_0x483ab0[_0x1fd9('0x5b')](_0x2acc1e),_0x574326=_0x5a5cad==_0x432c6d[_0x1fd9('0xf4')]-0x1;(!_0x573120&&_0x40a938&&(_0x573120=_0x40a938,_0x12a960=_0x432c6d[_0x5a5cad]),_0x573120&&(!_0x40a938||_0x40a938[_0x1fd9('0x8')]!=_0x573120[_0x1fd9('0x8')]))&&(_0x1b2562(_0x40a938,q(_0x12a960,_0x3c967b,_0x512e05),q(_0x432c6d[_0x5a5cad],_0x3c967b,_0x512e05)),_0x573120=_0x40a938||null,_0x12a960=_0x40a938?_0x432c6d[_0x5a5cad]:null),_0x573120&&_0x574326&&_0x1b2562(_0x40a938,q(_0x12a960,_0x3c967b,_0x512e05),G(_0x432c6d[_0x5a5cad],_0x3c967b,_0x512e05));}function _0x1b2562(_0x5e9077,_0x5cdb62,_0x5ac301){const _0x57d372=_0x573120[_0x1fd9('0x8')],_0x30559a=_0x1fd9('0x9c')+_0x5729e5+':'+_0x57d372+':'+_0x2a52ce++,_0x63934=_0x512e05['createRange'](_0x5cdb62,_0x5ac301);_0x3c967b[_0x1fd9('0xb')][_0x1fd9('0xc')](_0x30559a,_0x63934),null!==_0x57d372&&_0x16536e[_0x1fd9('0x65')](_0x57d372);}}[_0x1fd9('0x47')](_0x1eea4b){switch(_0x1eea4b['type']){case'elementStart':return'vid_start';case'elementEnd':return _0x1fd9('0x8b');default:return _0x1fd9('0x25');}}['_fixOperation'](_0x19c2e5,_0x5da67f){_0x19c2e5[_0x1fd9('0xae')]=null;for(const _0x318b82 in _0x19c2e5){if(_0x19c2e5[_0x318b82]instanceof _0x4e2940){const _0x113bb2=_0x5da67f['get'](_0x19c2e5[_0x318b82][_0x1fd9('0xcb')][_0x1fd9('0x4c')]);_0x19c2e5[_0x318b82]=this['_fixPosition'](_0x19c2e5[_0x318b82],_0x113bb2);}if(_0x19c2e5[_0x318b82]instanceof _0x376643){const _0x881562=_0x5da67f[_0x1fd9('0x5b')](_0x19c2e5[_0x318b82][_0x1fd9('0xcb')][_0x1fd9('0x4c')]);_0x19c2e5[_0x318b82]=this[_0x1fd9('0xcc')](_0x19c2e5[_0x318b82],_0x881562);}}_0x19c2e5[_0x1fd9('0xcb')]&&(_0x19c2e5[_0x1fd9('0xcb')]=_0x5da67f[_0x1fd9('0x5b')](_0x19c2e5[_0x1fd9('0xcb')]['rootName']));}['_fixRange'](_0x418667,_0x40b841){return this[_0x1fd9('0x6f')][_0x1fd9('0xb1')][_0x1fd9('0xd8')](this[_0x1fd9('0xc9')](_0x418667[_0x1fd9('0x72')],_0x40b841),this[_0x1fd9('0xc9')](_0x418667[_0x1fd9('0xb5')],_0x40b841));}[_0x1fd9('0xc9')](_0x2c987e,_0x268059){return this[_0x1fd9('0x6f')][_0x1fd9('0xb1')][_0x1fd9('0x34')](_0x268059,_0x2c987e[_0x1fd9('0x83')],_0x2c987e[_0x1fd9('0x97')]);}['_handleInsertOperation'](_0x57f517){const _0x5a60d1=this['_idsRoots'][_0x1fd9('0x5b')](_0x57f517[_0x1fd9('0x90')][_0x1fd9('0xcb')][_0x1fd9('0x4c')]),_0x1ab2f9=this[_0x1fd9('0xc9')](_0x57f517[_0x1fd9('0x90')],_0x5a60d1),_0x5db33b=null===_0x57f517['_authorId']?null:_0x57f517[_0x1fd9('0x6d')]||this[_0x1fd9('0x6f')]['plugins'][_0x1fd9('0x5b')]('Users')['me']['id'],_0x3f22f2=_0x1ab2f9[_0x1fd9('0x7c')],_0x228efd=this['_revisionId'],_0x328c27=[];for(const _0x228bc7 of _0x57f517['nodes'])if(_0x228bc7['is'](_0x1fd9('0xa')))_0x328c27['push'](this['_makeIdsRoot'](_0x228bc7));else for(let _0xefc594=0x0;_0xefc594<_0x228bc7[_0x1fd9('0x38')];_0xefc594++)_0x328c27[_0x1fd9('0x24')](new _0x420226(_0x1fd9('0xb9'),{'vid':this['_revisionId']++}));const _0x445d3f=this['_revisionId'];for(let _0x45a223=_0x228efd;_0x45a223<_0x445d3f;_0x45a223++)this[_0x1fd9('0xa4')][_0x1fd9('0xc')](_0x45a223,{'userId':_0x5db33b});_0x3f22f2[_0x1fd9('0xba')](_0x1ab2f9[_0x1fd9('0x4e')],_0x328c27);}[_0x1fd9('0xea')](_0x6e0374){(_0x6e0374=this[_0x1fd9('0xf0')](_0x6e0374,this['_idsRoots']))[_0x1fd9('0xf9')]();const _0x55fffb=null===_0x6e0374[_0x1fd9('0x6d')]?null:_0x6e0374[_0x1fd9('0x6d')]||this[_0x1fd9('0x6f')][_0x1fd9('0x22')][_0x1fd9('0x5b')](_0x1fd9('0xa5'))['me']['id'],_0x75ee78=_0x6e0374[_0x1fd9('0xa1')](),_0x576ff9=_0x75ee78[_0x1fd9('0x7c')],_0x471fb0=_0x75ee78[_0x1fd9('0x4e')];!function _0x6972da(_0x4475e4,_0x12a6fe,_0x141b0d,_0x13bd51){for(let _0x428015=_0x141b0d;_0x428015<_0x13bd51;_0x428015++){const _0x268d09=_0x12a6fe['getChild'](_0x428015);_0x268d09['is'](_0x1fd9('0xa'),_0x1fd9('0xb9'))?_0x4475e4[_0x1fd9('0xc')](_0x268d09[_0x1fd9('0x56')](_0x1fd9('0x25')),{'userId':_0x55fffb}):(_0x4475e4['set'](_0x268d09[_0x1fd9('0x56')](_0x1fd9('0x45')),{'userId':_0x55fffb}),_0x6972da(_0x4475e4,_0x268d09,0x0,_0x268d09[_0x1fd9('0x6e')]),_0x4475e4[_0x1fd9('0xc')](_0x268d09['getAttribute'](_0x1fd9('0x8b')),{'userId':_0x55fffb}));}}(this[_0x1fd9('0xa4')],_0x576ff9,_0x471fb0,_0x471fb0+_0x6e0374[_0x1fd9('0x31')]);}[_0x1fd9('0x81')](_0x50c3db){const _0x2a85ca=null===(_0x50c3db=this['_cloneOperation'](_0x50c3db,this[_0x1fd9('0x8c')]))['_authorId']?null:_0x50c3db[_0x1fd9('0x6d')]||this['editor'][_0x1fd9('0x22')][_0x1fd9('0x5b')](_0x1fd9('0xa5'))['me']['id'],_0x2323e3=_0x50c3db[_0x1fd9('0x35')][_0x1fd9('0x7c')],_0x4a858f=_0x50c3db['sourcePosition'][_0x1fd9('0x7c')],_0x30a77a=_0x2323e3[_0x1fd9('0x56')](_0x1fd9('0x8b')),_0x3520f5=_0x4a858f[_0x1fd9('0x56')](_0x1fd9('0x45'));_0x2323e3[_0x1fd9('0x96')]('vid_end',_0x4a858f[_0x1fd9('0x56')](_0x1fd9('0x8b'))),_0x4a858f[_0x1fd9('0x96')](_0x1fd9('0x8b'),_0x30a77a),this[_0x1fd9('0xa4')]['set'](_0x3520f5,{'userId':_0x2a85ca}),this['_touched'][_0x1fd9('0xc')](_0x30a77a,{'userId':_0x2a85ca}),_0x50c3db[_0x1fd9('0xf9')]();}[_0x1fd9('0x93')](_0x3823bc){const _0xb6b567=null===(_0x3823bc=this['_cloneOperation'](_0x3823bc,this[_0x1fd9('0x8c')]))['_authorId']?null:_0x3823bc[_0x1fd9('0x6d')]||this[_0x1fd9('0x6f')]['plugins'][_0x1fd9('0x5b')](_0x1fd9('0xa5'))['me']['id'],_0x2da422=_0x3823bc[_0x1fd9('0xe2')],_0x2e2be2=_0x3823bc[_0x1fd9('0x48')][_0x1fd9('0x7c')];_0x3823bc['_execute']();const _0x4fb5fd=_0x2e2be2[_0x1fd9('0x56')](_0x1fd9('0x8b')),_0x198764=_0x3823bc[_0x1fd9('0x9b')][_0x1fd9('0x2e')];if(_0x2da422){const _0x18c267=_0x198764[_0x1fd9('0x56')]('vid_end'),_0x234cda=_0x2e2be2[_0x1fd9('0x56')]('vid_end');_0x2e2be2[_0x1fd9('0x96')](_0x1fd9('0x8b'),_0x18c267),_0x198764['_setAttribute'](_0x1fd9('0x8b'),_0x234cda),this['_touched'][_0x1fd9('0xc')](_0x2e2be2['getAttribute'](_0x1fd9('0x8b')),{'userId':_0xb6b567}),this[_0x1fd9('0xa4')]['set'](_0x198764['getAttribute'](_0x1fd9('0x45')),{'userId':_0xb6b567});}else{const _0x16e738=this[_0x1fd9('0x55')]++,_0x1017b4=this[_0x1fd9('0x55')]++;_0x2e2be2['_setAttribute']('vid_end',_0x16e738),_0x198764['_setAttribute']('vid_start',_0x1017b4),_0x198764[_0x1fd9('0x96')](_0x1fd9('0x8b'),_0x4fb5fd),this[_0x1fd9('0xa4')][_0x1fd9('0xc')](_0x16e738,{'userId':_0xb6b567}),this['_touched'][_0x1fd9('0xc')](_0x1017b4,{'userId':_0xb6b567});}}[_0x1fd9('0x76')](_0x1422b0){if(!_0x1422b0[_0x1fd9('0xde')])return;const _0x2406ab=(_0x1422b0=this[_0x1fd9('0xf0')](_0x1422b0,this[_0x1fd9('0x1c')]))[_0x1fd9('0x23')]?_0x1422b0[_0x1fd9('0x23')][_0x1fd9('0xcb')]:null,_0x5ab125=_0x1422b0[_0x1fd9('0xac')]?_0x1422b0['newRange'][_0x1fd9('0xcb')]:null;_0x2406ab&&this[_0x1fd9('0x0')][_0x1fd9('0xb4')](_0x1422b0[_0x1fd9('0xdf')]),_0x5ab125&&this[_0x1fd9('0x0')][_0x1fd9('0xc')](_0x1422b0[_0x1fd9('0xdf')],_0x1422b0['newRange'][_0x1fd9('0x57')]());const _0xa77423=null===_0x1422b0[_0x1fd9('0x6d')]?null:_0x1422b0['_authorId']||this['editor'][_0x1fd9('0x22')]['get']('Users')['me']['id'],_0x3e5046=_0x1422b0['name'];if(!this['_touchedMarkers'][_0x1fd9('0x99')](_0x3e5046))return void this[_0x1fd9('0x18')][_0x1fd9('0xc')](_0x3e5046,{'range':_0x1422b0['oldRange'],'userId':_0xa77423});const _0x1c9554=this['_touchedMarkers'][_0x1fd9('0x5b')](_0x3e5046),_0x260319=_0x1c9554[_0x1fd9('0xdc')],_0x29ffe0=_0x1422b0[_0x1fd9('0xac')];null==_0x260319&&null==_0x29ffe0||_0x260319&&_0x29ffe0&&_0x260319[_0x1fd9('0x74')](_0x29ffe0)?this[_0x1fd9('0x18')][_0x1fd9('0xb4')](_0x1422b0[_0x1fd9('0xdf')]):_0x1c9554[_0x1fd9('0x8')]=_0xa77423;}}function H(_0x4f46b8){const _0xd8a0e1=new _0x584dd6();_0xd8a0e1[_0x1fd9('0x4c')]=_0x4f46b8[_0x1fd9('0x4c')];for(const _0x210ae9 of _0x4f46b8[_0x1fd9('0x7e')]()){const _0x4f7f00=_0x210ae9[_0x1fd9('0x46')](!0x0);_0xd8a0e1[_0x1fd9('0x5f')](_0x4f7f00);}return _0xd8a0e1;}function q(_0x316b4f,_0x580a67,_0x538c39){const _0x36357d=_0x1fd9('0x7a')==_0x316b4f[_0x1fd9('0x6b')]?_0x538c39[_0x1fd9('0xa3')](_0x316b4f[_0x1fd9('0xa7')],'end'):_0x538c39[_0x1fd9('0x86')](_0x316b4f[_0x1fd9('0xa7')]);return _0x36357d[_0x1fd9('0xcb')]=_0x580a67,_0x36357d;}function G(_0x1d28c5,_0x583f85,_0x59e38f){const _0x2d6b41=_0x1fd9('0xbf')==_0x1d28c5['type']?_0x59e38f['createPositionAt'](_0x1d28c5[_0x1fd9('0xa7')],0x0):_0x59e38f[_0x1fd9('0xaa')](_0x1d28c5[_0x1fd9('0xa7')]);return _0x2d6b41[_0x1fd9('0xcb')]=_0x583f85,_0x2d6b41;}
|
|
23
|
+
const _0x5e0b=['root','_fixOperation','currentRevision','dataDowncast','createPositionBefore','processor','_reset','sourcePosition','revision','_createInitialRevision','rootName','from','getData','config','elementEnd','repository','getCurrentRevisionId','_source','_loadState','getWalker','insert','_handleOperation','_diffRoots','_lastTo','isEnabled','revisionHistory.resumeUnsavedRevision','_baseRoots','_addPendingAction','Users','_markers','length','keys','markerToData','_saveMetaData','childCount','_touchedMarkers','max','filter','init','_isInit','fromVersion','toData','_operations','_clone','version','_appendChild','_startingRevisionId','_getViewJson','getLatestVersion','conversion','keepParagraph','_initialRevisionId','add','item','_calculateMetaData','editor-initial-data-replaced-with-revision-data','_touched','name','locale','getRootNames','_makeRevision','remove','_processRootBeforeSave','oldRange','clear','RevisionsRepository','createPositionAt','_loadRevisionData','clone','marked','_pendingAction','has','hasContent','creator','updateRevisions','_handleMoveOperation','type','history','_copyMarkers','forEach','getRoot','pluginName','graveyardPosition','includes','parse','bind','_createCurrentRevision','position','NEGATIVE_INFINITY','vid','toModel','ready','_prepareViewToSave','isReady','sendBufferedUpdates','_rootNames','range','previousPosition','createRangeIn','getNodeByPath','_update','parent','userId','shift','update','find','initialData','nodes','delete','afterInit','set','elementStart','targetPosition','_getVidAttributeName','split','getChild','_savedMetaData','_baseIdsRoots','finally','buildRevisionData','reinsert','_makeModelFromViewString','children','getRevisionDocumentData','PendingActions','_isPendingUpdate','_transformMarkers','_removeRevisionMarkers','for','startsWith','document','push','getRevisions','sort','getMovedRangeStart','_removePendingAction','view','setRevisionData','insertions','createdAt','element','paragraph','_getState','size','$text','merge','_startingVersion','_execute','getTransformedByOperation','_handleSplitOperation','createPositionFromPath','_revisionId','resolve','collaboration.channelId','authors','vid_start','_handleMarkerOperation','move','stringify','define','trim','_replaceEditorDataWithRevisionData','_setConversion','offsetSize','values','_findInsertionIndex','offset','authorsIds','_fixPosition','addRevision','getRevision','toVersion','stickiness','addRevisionData','loadState','source','_authorId','splitPosition','upcast','_revisionDataBuilder','getAttribute','RealTimeCollaborationClient','text','data','then','creatorId','_bufferedUpdates','reInit','getTime','marker','dataToMarker','newRange','get','_removeMetaData','useFillerType','plugins','_loadedStateData','getAttributes','tableCell','string','isPendingUpdate','_markChanges','_saveEmptyMetaData','_bufferUpdate','_continueCurrentRevision','editing','_getFromVersion','map','getOperations','documentFragment','model','adapter','start','toView','slice','diffData','getIndex','nodeAfter','attributes','editor','insertion','initial','vid_end','_makeIdsRoot','_cloneOperation','revision-end','$graveyard','getChildren','markers','_getBaseVids','deletions','_generateTape','baseVersion','_getPreviousFrom','PENDING_ACTION_REVISION_HISTORY','_lastFrom','createRange','_idsRoots','_fixRange','getAncestors','end','revision-start','reverse','_setAttribute','path','_applyOperations','insertionPosition','requires'];(function(_0x107a56,_0x5e0bc7){const _0x1b2f1a=function(_0x41d2c3){while(--_0x41d2c3){_0x107a56['push'](_0x107a56['shift']());}};_0x1b2f1a(++_0x5e0bc7);}(_0x5e0b,0xa9));const _0x1b2f=function(_0x107a56,_0x5e0bc7){_0x107a56=_0x107a56-0x0;let _0x1b2f1a=_0x5e0b[_0x107a56];return _0x1b2f1a;};import{Users as _0x28a163}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x21d08d,PendingActions as _0x14cfcf}from'ckeditor5/src/core';import{logWarning as _0x12b7e5,uid as _0x333ed5}from'ckeditor5/src/utils';import{Position as _0x57323c,Range as _0x561f91,Element as _0x5731e8,DocumentFragment as _0x5ab7a7,ViewText as _0x4c415b,ViewElement as _0x42304f,ViewContainerElement as _0x2665dc,ViewAttributeElement as _0x15006d,ViewEmptyElement as _0x486dcb,ViewRawElement as _0x40d326,ViewUIElement as _0x4045e8,ViewDocumentFragment as _0x2e8905}from'ckeditor5/src/engine';import _0x59f988 from'./revisionsrepository';import{getTranslation as _0x430d45}from'./utils/common-translations';const J={'c':_0x2665dc,'a':_0x15006d,'e':_0x486dcb,'r':_0x40d326,'u':_0x4045e8};export default class u extends _0x21d08d{static get[_0x1b2f('0xa0')](){return'RevisionTracker';}static get[_0x1b2f('0x4e')](){return[_0x28a163,_0x59f988,_0x14cfcf];}constructor(..._0x10bf27){super(..._0x10bf27),this[_0x1b2f('0x2a')]=null,this[_0x1b2f('0xbd')](_0x1b2f('0xac'),!0x1),this[_0x1b2f('0xbd')](_0x1b2f('0x67'),!0x0),this[_0x1b2f('0x51')]=null;const _0x57377e=_0x333ed5();this[_0x1b2f('0x60')]={'history':this[_0x1b2f('0x32')][_0x1b2f('0x29')][_0x1b2f('0xd1')][_0x1b2f('0x9c')],'getLatestVersion':()=>Promise[_0x1b2f('0xe7')](this[_0x1b2f('0x32')][_0x1b2f('0x29')]['document'][_0x1b2f('0x7b')]),'getCurrentRevisionId':()=>_0x57377e},this[_0x1b2f('0xa')]=new B(this['editor']),this[_0x1b2f('0x82')]=this[_0x1b2f('0x32')]['config'][_0x1b2f('0x17')]('collaboration.channelId')||_0x1b2f('0x34'),this[_0x1b2f('0xbd')](_0x1b2f('0x1f'),!0x1),this['_bufferedUpdates']=new Map(),this[_0x1b2f('0x32')][_0x1b2f('0x5c')][_0x1b2f('0xee')]('revisionHistory.resumeUnsavedRevision',!0x0),this['_loadedStateData']=null,this[_0x1b2f('0x32')][_0x1b2f('0x80')][_0x1b2f('0xcf')](_0x1b2f('0x9'))[_0x1b2f('0x15')]({'view':_0x1b2f('0x57')});}['init'](){this['repository']=this['editor'][_0x1b2f('0x1a')]['get'](_0x1b2f('0x90')),this[_0x1b2f('0xf1')](),this[_0x1b2f('0x32')]['data']['on'](_0x1b2f('0xaa'),()=>{const _0x10701e=this[_0x1b2f('0x5e')]['getRevision'](0x0),_0x391da9=_0x10701e&&null===_0x10701e[_0x1b2f('0x98')]?_0x10701e:null;if(this[_0x1b2f('0x23')]=!!_0x391da9&&this[_0x1b2f('0x32')][_0x1b2f('0x5c')]['get'](_0x1b2f('0x68')),this[_0x1b2f('0x32')][_0x1b2f('0x1a')][_0x1b2f('0x96')](_0x1b2f('0xc'))){const _0x4b3d27=this[_0x1b2f('0x60')][_0x1b2f('0x5f')](),_0x3b3f93=this['repository'][_0x1b2f('0x1')](_0x4b3d27);if(_0x3b3f93)this[_0x1b2f('0xe1')]=_0x3b3f93[_0x1b2f('0x77')],this['_continueCurrentRevision']=!0x1;else{const _0x1cff38=this['_source'][_0x1b2f('0x9c')][_0x1b2f('0x79')][_0x1b2f('0xb8')](_0x384d0d=>!_0x384d0d[_0x1b2f('0x76')]),_0x165300=_0x1cff38?_0x1cff38[_0x1b2f('0x3f')]:this['_source'][_0x1b2f('0x9c')][_0x1b2f('0x7b')];_0x10701e?(_0x10701e[_0x1b2f('0x2')]<_0x165300&&_0x10701e[_0x1b2f('0xb3')]({'toVersion':_0x165300}),this[_0x1b2f('0x23')]?(this[_0x1b2f('0x60')][_0x1b2f('0x5f')]=()=>_0x391da9['id'],this[_0x1b2f('0xe1')]=_0x391da9['fromVersion']):(this['_startingVersion']=_0x10701e['toVersion'],this['_continueCurrentRevision']=!0x1)):(this[_0x1b2f('0xe1')]=_0x165300,this['_continueCurrentRevision']=!0x1);}}else _0x391da9&&(this['editor'][_0x1b2f('0x29')][_0x1b2f('0xd1')]['history'][_0x1b2f('0x7b')]=Math[_0x1b2f('0x73')](_0x391da9[_0x1b2f('0x2')],this[_0x1b2f('0x32')][_0x1b2f('0x29')][_0x1b2f('0xd1')][_0x1b2f('0x9c')]['version']),_0x391da9[_0x1b2f('0x77')]===_0x391da9['toVersion']?(0x0!==_0x391da9[_0x1b2f('0x77')]&&(this[_0x1b2f('0x60')][_0x1b2f('0x5f')]=()=>_0x391da9['id']),this[_0x1b2f('0x23')]=!0x1):this[_0x1b2f('0x23')]&&(this[_0x1b2f('0x60')][_0x1b2f('0x5f')]=()=>_0x391da9['id'],this['_startingVersion']=_0x391da9[_0x1b2f('0x77')])),this[_0x1b2f('0x23')]||(this[_0x1b2f('0xe1')]=this[_0x1b2f('0x32')][_0x1b2f('0x29')]['document'][_0x1b2f('0x7b')]);this[_0x1b2f('0xa')][_0x1b2f('0x75')](this[_0x1b2f('0x60')][_0x1b2f('0x9c')]),this['_createInitialRevision'](this['_startingVersion']),this[_0x1b2f('0xa5')](this[_0x1b2f('0xe1')]),this['adapter']&&this[_0x1b2f('0xad')]();}),this[_0x1b2f('0xa4')]('isReady')['to'](this,_0x1b2f('0xcc'),_0x429bf6=>!_0x429bf6);}async[_0x1b2f('0xbc')](){if(this['repository'][_0x1b2f('0x6d')]>0x0){const _0x4db99d=this[_0x1b2f('0x5e')][_0x1b2f('0x1')](0x0),_0x3e5b4a=await this[_0x1b2f('0xca')](_0x4db99d);this['_replaceEditorDataWithRevisionData'](_0x3e5b4a);}}['setSource'](_0x151d82){this[_0x1b2f('0x60')]=_0x151d82;}async[_0x1b2f('0xb7')](){const _0x4e33f0=await this['_source'][_0x1b2f('0x7f')]();if(_0x4e33f0>this[_0x1b2f('0x51')]['toVersion']){await this[_0x1b2f('0x61')]();const _0x5f3149=this[_0x1b2f('0xc6')]({'revision':this['currentRevision'],'to':_0x4e33f0});_0x5f3149[_0x1b2f('0xe9')]=_0x5f3149['authorsIds'][_0x1b2f('0x26')](_0x47f8b6=>this['editor'][_0x1b2f('0x1a')][_0x1b2f('0x17')]('Users')['getUser'](_0x47f8b6)),this['currentRevision'][_0x1b2f('0xb3')](_0x5f3149);}}async[_0x1b2f('0x61')](){this[_0x1b2f('0x23')]&&!this['_loadedStateData']&&(await this[_0x1b2f('0x92')](this[_0x1b2f('0x51')]),this[_0x1b2f('0xa')][_0x1b2f('0x5')](this['currentRevision']),this[_0x1b2f('0x1b')]={'fromVersion':this[_0x1b2f('0x51')]['fromVersion'],'authors':this[_0x1b2f('0x51')][_0x1b2f('0xe9')][_0x1b2f('0x2d')]()});}async['saveRevision'](_0x2df93c={},_0x11af43=null){const _0x46e2d6=[];await this[_0x1b2f('0x61')](),this[_0x1b2f('0x23')]=!0x1,_0x11af43>this[_0x1b2f('0x51')][_0x1b2f('0x2')]&&(_0x11af43=null),null===_0x11af43&&(_0x11af43=await this[_0x1b2f('0x60')][_0x1b2f('0x7f')]());const _0xffd1a1=this[_0x1b2f('0x25')](_0x11af43),_0xa76bf2=this['buildRevisionData']({'from':_0xffd1a1,'to':_0x11af43});if(this[_0x1b2f('0x51')][_0x1b2f('0x2')]<_0x11af43){const _0x31cc4b=this[_0x1b2f('0xc6')]({'revision':this[_0x1b2f('0x51')],'from':_0x11af43,'to':_0x11af43});_0x31cc4b[_0x1b2f('0xe9')]=[],_0x31cc4b[_0x1b2f('0xf6')]=[],_0x31cc4b['id']=this[_0x1b2f('0x51')]['id'],this[_0x1b2f('0x51')][_0x1b2f('0xb3')](_0x31cc4b,!0x0),delete _0x31cc4b[_0x1b2f('0xe9')],_0x46e2d6[_0x1b2f('0xd2')](_0x31cc4b);}_0x2df93c['creatorId']=this[_0x1b2f('0x32')][_0x1b2f('0x1a')]['get'](_0x1b2f('0x6b'))['me']['id'],_0x2df93c[_0x1b2f('0x88')]=_0x2df93c[_0x1b2f('0x88')]||null,_0x2df93c['id']=_0x2df93c['id']||_0x333ed5(),_0x2df93c={..._0x2df93c,..._0xa76bf2};const _0x1dc27e=this[_0x1b2f('0x4')](_0x2df93c);_0x46e2d6['push'](_0x2df93c);const _0x4830d3=this['repository'][_0x1b2f('0x2f')](_0x1dc27e);if(0x0!==_0x4830d3){const _0x323efb=this[_0x1b2f('0x5e')][_0x1b2f('0x1')](_0x4830d3-0x1);if(_0x323efb['fromVersion']!==_0x11af43){const _0xadfc28=this['_revisionDataBuilder'][_0x1b2f('0x5b')](_0x11af43,_0x323efb['toVersion']),_0x203a18={'id':_0x323efb['id'],'diffData':_0xadfc28[_0x1b2f('0x2e')],'authorsIds':_0xadfc28[_0x1b2f('0xf6')],'authors':_0xadfc28[_0x1b2f('0xf6')][_0x1b2f('0x26')](_0x103d16=>this[_0x1b2f('0x32')][_0x1b2f('0x1a')][_0x1b2f('0x17')](_0x1b2f('0x6b'))['getUser'](_0x103d16)),'fromVersion':_0x11af43};_0x323efb===this['currentRevision']&&(_0x203a18[_0x1b2f('0xda')]=new Date(_0x2df93c[_0x1b2f('0xda')][_0x1b2f('0x13')]()+0xa)),_0x323efb['_update'](_0x203a18,!0x0),delete _0x203a18[_0x1b2f('0xe9')],_0x46e2d6['push'](_0x203a18);}}if(this[_0x1b2f('0x2a')]){for(const _0x6e5141 of _0x46e2d6)this['_bufferUpdate'](_0x6e5141['id'],_0x6e5141,!0x0);this[_0x1b2f('0xad')]();}return _0x1dc27e;}[_0x1b2f('0x4')](_0x19d467){const _0x2dac11=this[_0x1b2f('0x5e')]['createRevision'](_0x19d467);return this[_0x1b2f('0x2a')]&&_0x2dac11['on'](_0x1b2f('0xb3'),(_0x11bb88,_0x4d7c2d,_0x4d2505)=>{_0x4d2505||(this[_0x1b2f('0x22')](_0x4d7c2d['id'],_0x4d7c2d,!0x0),this[_0x1b2f('0xad')]());}),this[_0x1b2f('0x5e')][_0x1b2f('0x0')](_0x2dac11,this[_0x1b2f('0xf4')](_0x2dac11)),_0x2dac11;}async['getRevisionDocumentData'](_0x15283a){await this['_loadRevisionData'](_0x15283a);const _0x462e28={};for(const _0x5ae347 in _0x15283a[_0x1b2f('0x2e')]){const _0x45f020=this[_0x1b2f('0xce')](JSON[_0x1b2f('0xa3')](_0x15283a[_0x1b2f('0x2e')][_0x5ae347]['insertions'])),_0x56103c=this[_0x1b2f('0x32')][_0x1b2f('0x24')][_0x1b2f('0xd7')][_0x1b2f('0xd1')],_0x39e8e2=new _0x2e8905(_0x56103c,_0x45f020['map'](_0x4302b1=>j(_0x4302b1,this[_0x1b2f('0x32')])));this[_0x1b2f('0x32')][_0x1b2f('0xe')][_0x1b2f('0x54')][_0x1b2f('0x19')](_0x1b2f('0x94')),_0x462e28[_0x5ae347]=this[_0x1b2f('0x32')][_0x1b2f('0xe')][_0x1b2f('0x54')][_0x1b2f('0x78')](_0x39e8e2),this[_0x1b2f('0x32')][_0x1b2f('0xe')][_0x1b2f('0x54')]['useFillerType']('default');}return _0x462e28;}[_0x1b2f('0xad')](){if(0x0===this[_0x1b2f('0x11')]['size'])return;if(this[_0x1b2f('0xcc')])return;let _0x5d2ac0=Array[_0x1b2f('0x5a')](this[_0x1b2f('0x11')][_0x1b2f('0xf3')]());this[_0x1b2f('0x11')][_0x1b2f('0x8f')]();for(let _0xac1115=0x0;_0xac1115<_0x5d2ac0[_0x1b2f('0x6d')];_0xac1115++){const _0x56a3e3=_0x5d2ac0[_0xac1115];let _0x489e11=!0x1;for(const _0x28493b of Object[_0x1b2f('0x6e')](_0x56a3e3))void 0x0===_0x56a3e3[_0x28493b]?delete _0x56a3e3[_0x28493b]:'id'!==_0x28493b&&(_0x489e11=!0x0);_0x489e11||(_0x5d2ac0[_0xac1115]=null);}if(_0x5d2ac0=_0x5d2ac0['filter'](_0x3fbda5=>null!==_0x3fbda5),!_0x5d2ac0[_0x1b2f('0x6d')])return;for(let _0x108ae2=0x0;_0x108ae2<_0x5d2ac0[_0x1b2f('0x6d')];_0x108ae2++){const _0x37f0a3=_0x5d2ac0[_0x108ae2];void 0x0!==_0x37f0a3['fromVersion']&&void 0x0===_0x37f0a3[_0x1b2f('0x2')]&&(_0x37f0a3[_0x1b2f('0x2')]=this[_0x1b2f('0x5e')][_0x1b2f('0x1')](_0x37f0a3['id'])[_0x1b2f('0x2')]),void 0x0!==_0x37f0a3[_0x1b2f('0x2')]&&void 0x0===_0x37f0a3['fromVersion']&&(_0x37f0a3['fromVersion']=this[_0x1b2f('0x5e')][_0x1b2f('0x1')](_0x37f0a3['id'])[_0x1b2f('0x77')]);}const _0x134057=this[_0x1b2f('0x32')][_0x1b2f('0x5c')]['get'](_0x1b2f('0xe8'));this[_0x1b2f('0xcc')]=!0x0,this[_0x1b2f('0x6a')](),this['adapter'][_0x1b2f('0x99')](_0x5d2ac0,_0x134057)[_0x1b2f('0xc5')](()=>{this[_0x1b2f('0xcc')]=!0x1;})[_0x1b2f('0xf')](_0x10d6fe=>{if(_0x10d6fe)for(const _0x30f037 of _0x10d6fe)this[_0x1b2f('0xd8')]({'id':_0x30f037['id'],'createdAt':_0x30f037[_0x1b2f('0xda')]});this[_0x1b2f('0xd6')](),this[_0x1b2f('0xad')]();});}[_0x1b2f('0xf0')](_0x281e74){let _0x29cb04=this[_0x1b2f('0x32')]['config']['get'](_0x1b2f('0xb9'));if(void 0x0===_0x29cb04){_0x29cb04={};for(const _0x2b3b93 of this[_0x1b2f('0x32')]['model'][_0x1b2f('0xd1')][_0x1b2f('0x8a')]())_0x29cb04[_0x2b3b93]='';}_0x1b2f('0x1e')==typeof _0x29cb04&&(_0x29cb04={'main':_0x29cb04});let _0x566305=!0x1;for(const _0x36b4b9 of Object[_0x1b2f('0x6e')](_0x29cb04))_0x281e74[_0x36b4b9]&&(_0x29cb04[_0x36b4b9]!==_0x281e74[_0x36b4b9]&&''!==_0x29cb04[_0x36b4b9][_0x1b2f('0xef')]()&&(_0x566305=!0x0),_0x29cb04[_0x36b4b9]=_0x281e74[_0x36b4b9]);_0x566305&&_0x12b7e5(_0x1b2f('0x86')),this[_0x1b2f('0x32')]['config'][_0x1b2f('0xbd')](_0x1b2f('0xb9'),_0x29cb04);}[_0x1b2f('0x6a')](){if(!this[_0x1b2f('0x95')]){const _0x33c4ee=this[_0x1b2f('0x32')][_0x1b2f('0x1a')][_0x1b2f('0x17')](_0x1b2f('0xcb'));this[_0x1b2f('0x95')]=_0x33c4ee[_0x1b2f('0x83')](_0x430d45(this['editor']['locale'],_0x1b2f('0x41')));}}[_0x1b2f('0xd6')](){this[_0x1b2f('0x95')]&&(this[_0x1b2f('0x32')][_0x1b2f('0x1a')]['get'](_0x1b2f('0xcb'))[_0x1b2f('0x8c')](this['_pendingAction']),this[_0x1b2f('0x95')]=null);}[_0x1b2f('0xf4')](_0x118616){const _0xe5f2df=this[_0x1b2f('0x5e')][_0x1b2f('0xd3')]();_0xe5f2df[_0x1b2f('0x49')]();let _0x2d5e68=0x0;for(;_0x2d5e68<_0xe5f2df[_0x1b2f('0x6d')];){const _0x2453f2=_0xe5f2df[_0x2d5e68];if(_0x2453f2===this[_0x1b2f('0x51')]){_0x2d5e68++;continue;}if(_0x2453f2['id']===this[_0x1b2f('0x82')])break;const _0x288b37=_0x118616[_0x1b2f('0x2')]-_0x2453f2['toVersion']||_0x118616['fromVersion']-_0x2453f2[_0x1b2f('0x77')];if(_0x288b37>0x0)break;if(_0x288b37<0x0)_0x2d5e68++;else{if(!_0x118616[_0x1b2f('0x98')]&&_0x2453f2['creator'])break;if(_0x2453f2[_0x1b2f('0x98')]||!_0x118616[_0x1b2f('0x98')]){if(_0x118616[_0x1b2f('0xda')]>_0x2453f2['createdAt'])break;_0x2d5e68++;}else _0x2d5e68++;}}return _0x2d5e68;}[_0x1b2f('0xd8')](_0x2d5ddf){const _0x331cd4=this[_0x1b2f('0x5e')][_0x1b2f('0x1')](_0x2d5ddf['id']);if(_0x2d5ddf[_0x1b2f('0xda')]&&(_0x2d5ddf[_0x1b2f('0xda')]=new Date(_0x2d5ddf[_0x1b2f('0xda')])),_0x2d5ddf[_0x1b2f('0xf6')]){const _0xf20c87=this[_0x1b2f('0x32')][_0x1b2f('0x1a')]['get']('Users');_0x2d5ddf['authors']=_0x2d5ddf[_0x1b2f('0xf6')][_0x1b2f('0x26')](_0xba1b4c=>_0xf20c87['getUser'](_0xba1b4c));}_0x331cd4[_0x1b2f('0xb3')](_0x2d5ddf,!0x0);}[_0x1b2f('0xc6')]({revision:_0x40a619=null,from:_0x2a7843=null,to:_0x5bf18a=null}){_0x2a7843=null!==_0x2a7843?_0x2a7843:_0x40a619['fromVersion'],_0x5bf18a=null!==_0x5bf18a?_0x5bf18a:_0x40a619[_0x1b2f('0x2')];const _0x5994a3=this[_0x1b2f('0xa')][_0x1b2f('0x5b')](_0x2a7843,_0x5bf18a),_0x3736c3={'diffData':_0x5994a3['diffData'],'authorsIds':_0x5994a3[_0x1b2f('0xf6')],'fromVersion':_0x2a7843,'toVersion':_0x5bf18a};if(!_0x40a619||_0x5bf18a!==_0x40a619[_0x1b2f('0x2')]){const _0x82314e=_0x5bf18a-0x1,_0x1555df=this['_source']['history']['getOperation'](_0x82314e);_0x3736c3[_0x1b2f('0xda')]=_0x1555df&&_0x1555df[_0x1b2f('0xda')]||new Date();}if(this['_loadedStateData']&&_0x2a7843===this[_0x1b2f('0x1b')][_0x1b2f('0x77')])for(const _0xc2e8c4 of this[_0x1b2f('0x1b')][_0x1b2f('0xe9')])_0x3736c3[_0x1b2f('0xf6')][_0x1b2f('0xa2')](_0xc2e8c4['id'])||_0x3736c3[_0x1b2f('0xf6')]['push'](_0xc2e8c4['id']);return _0x3736c3;}[_0x1b2f('0x92')](_0x4255d3){if(!_0x4255d3||_0x4255d3['diffData'])return Promise[_0x1b2f('0xe7')]();{const _0x39ba64=this[_0x1b2f('0x32')][_0x1b2f('0x5c')][_0x1b2f('0x17')](_0x1b2f('0xe8'));return this['adapter'][_0x1b2f('0x1')]({'channelId':_0x39ba64,'revisionId':_0x4255d3['id']})[_0x1b2f('0xf')](_0x3bef46=>{_0x4255d3[_0x1b2f('0x2e')]=_0x3bef46[_0x1b2f('0x2e')];});}}[_0x1b2f('0x22')](_0xf5dc6c,_0x542333,_0x1e2b35){if(this[_0x1b2f('0x11')][_0x1b2f('0x96')](_0xf5dc6c)){const _0x505c77=this[_0x1b2f('0x11')][_0x1b2f('0x17')](_0xf5dc6c);_0x542333=_0x1e2b35?{..._0x505c77,..._0x542333}:{..._0x542333,..._0x505c77};}this[_0x1b2f('0x11')][_0x1b2f('0xbd')](_0xf5dc6c,_0x542333);}[_0x1b2f('0x25')](_0xc69c24){const _0x242e5a=this[_0x1b2f('0x5e')][_0x1b2f('0xd3')]();_0x242e5a['reverse'](),_0x242e5a[_0x1b2f('0xb6')]();const _0xd810b4=_0x242e5a[_0x1b2f('0xb8')](_0x14d34a=>_0x14d34a[_0x1b2f('0x2')]<=_0xc69c24)[_0x1b2f('0x2')];return _0xd810b4<this[_0x1b2f('0xe1')]?this[_0x1b2f('0xe1')]:_0xd810b4;}[_0x1b2f('0x58')](_0x142374){const _0x123564=this[_0x1b2f('0x5e')]['getRevision'](this[_0x1b2f('0x5e')][_0x1b2f('0x6d')]-0x1);if(_0x123564)this[_0x1b2f('0x82')]=_0x123564['id'];else{const _0x3ff09f=!this[_0x1b2f('0x32')]['model'][_0x1b2f('0xd1')]['roots'][_0x1b2f('0xb8')](_0x36de27=>this['editor'][_0x1b2f('0x29')][_0x1b2f('0x97')](_0x36de27)),_0x461b1e=this['editor']['plugins'][_0x1b2f('0x17')](_0x1b2f('0x6b'))['me']['id'],_0x5e7ab7=_0x430d45(this[_0x1b2f('0x32')][_0x1b2f('0x89')],_0x3ff09f?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x142374,'to':_0x142374,'id':this[_0x1b2f('0x82')],'name':_0x5e7ab7,'creatorId':_0x461b1e});}}[_0x1b2f('0xa5')](_0x1d667d){const _0x2d8a9f=this[_0x1b2f('0x60')][_0x1b2f('0x5f')]();this[_0x1b2f('0x51')]=this[_0x1b2f('0x5e')][_0x1b2f('0x1')](_0x2d8a9f),this[_0x1b2f('0x51')]||(this[_0x1b2f('0x51')]=this[_0x1b2f('0x8b')]({'from':_0x1d667d,'to':_0x1d667d,'id':_0x2d8a9f,'name':'','creatorId':null}));}['_makeRevision']({name:_0x53fb5c,from:_0x108019,to:_0x19b93e,creatorId:_0x28019a,id:_0xdec74b}){const _0x321887=this['buildRevisionData']({'from':_0x108019,'to':_0x19b93e});_0x321887[_0x1b2f('0x88')]=_0x53fb5c,_0x321887[_0x1b2f('0x10')]=_0x28019a,_0x321887['id']=_0xdec74b;const _0xe4b0d=this[_0x1b2f('0x4')](_0x321887);return this[_0x1b2f('0x2a')]&&this[_0x1b2f('0x22')](_0x321887['id'],_0x321887,!0x0),_0xe4b0d;}[_0x1b2f('0xf1')](){this['editor'][_0x1b2f('0x80')][_0x1b2f('0xcf')](_0x1b2f('0x52'))[_0x1b2f('0x6f')]({'model':'revision'});}[_0x1b2f('0xce')](_0x11b1ef){return(_0x11b1ef=_0x11b1ef[_0x1b2f('0x74')](_0x1d33e7=>!_0x1d33e7[_0x1b2f('0x88')]||_0x1b2f('0x48')!==_0x1d33e7[_0x1b2f('0x88')]&&_0x1b2f('0x38')!==_0x1d33e7[_0x1b2f('0x88')]))[_0x1b2f('0x9e')](_0x15651d=>{_0x1b2f('0x1e')!=typeof _0x15651d&&(_0x15651d[_0x1b2f('0xc9')]=this['_removeRevisionMarkers'](_0x15651d[_0x1b2f('0xc9')]),_0x15651d[_0x1b2f('0x31')]=_0x15651d['attributes'][_0x1b2f('0x74')](_0x11fcb5=>!_0x11fcb5[0x0][_0x1b2f('0xd0')]('data-revision-')));}),_0x11b1ef;}}function j(_0x310e56,_0xe96c04){const _0x5ae60c=_0xe96c04[_0x1b2f('0x24')][_0x1b2f('0xd7')]['document'];if('string'==typeof _0x310e56)return new _0x4c415b(_0x5ae60c,_0x310e56);{const _0x47ffbf=_0x310e56[_0x1b2f('0xc9')][_0x1b2f('0x26')](_0x257769=>j(_0x257769,_0xe96c04));return new(J[_0x310e56['type']]||_0x42304f)(_0x5ae60c,_0x310e56[_0x1b2f('0x88')],_0x310e56[_0x1b2f('0x31')],_0x47ffbf);}}class B{constructor(_0x38ac17){this['editor']=_0x38ac17,this['_savedMetaData']=new Map(),this[_0x1b2f('0x42')]=-0x1,this[_0x1b2f('0x66')]=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this[_0x1b2f('0x69')]=new Map(),this[_0x1b2f('0x44')]=new Map(),this[_0x1b2f('0xc4')]=new Map(),this[_0x1b2f('0x87')]=new Map(),this[_0x1b2f('0x72')]=new Map(),this[_0x1b2f('0xe6')]=0x1,this['_rootNames']=this[_0x1b2f('0x32')]['model'][_0x1b2f('0xd1')][_0x1b2f('0x8a')](),this['_rootNames']['push'](_0x1b2f('0x39'));}[_0x1b2f('0x75')](_0x3f27af){this[_0x1b2f('0x6')]=_0x3f27af;const _0x3b26f1=new Map();for(const _0x28a245 of this[_0x1b2f('0xae')]){const _0x4fe16d=H(this[_0x1b2f('0x32')][_0x1b2f('0x29')]['document'][_0x1b2f('0x9f')](_0x28a245));_0x3b26f1[_0x1b2f('0xbd')](_0x28a245,_0x4fe16d);}const _0x6421b9=Array[_0x1b2f('0x5a')](this[_0x1b2f('0x32')][_0x1b2f('0x29')][_0x1b2f('0x3b')])[_0x1b2f('0x26')](_0x18f831=>[_0x18f831[_0x1b2f('0x88')],_0x18f831['getRange']()]),_0x358800=this[_0x1b2f('0x6')][_0x1b2f('0x7b')];this[_0x1b2f('0x70')](_0x358800,_0x3b26f1,_0x6421b9),this[_0x1b2f('0x7d')]=this[_0x1b2f('0xe6')];}[_0x1b2f('0x5b')](_0x5bd2fc,_0x802893){if(this[_0x1b2f('0x42')]===_0x5bd2fc&&this[_0x1b2f('0x66')]<=_0x802893)this[_0x1b2f('0xc3')][_0x1b2f('0xde')]>0x1&&this[_0x1b2f('0x18')](this[_0x1b2f('0x66')]),this[_0x1b2f('0x4c')](this[_0x1b2f('0x66')],_0x802893,!0x0);else{if(!this['_savedMetaData']['has'](_0x5bd2fc)){const _0x503197=this[_0x1b2f('0x40')](_0x5bd2fc);this[_0x1b2f('0x85')](_0x503197,_0x5bd2fc,!0x1);}this[_0x1b2f('0x85')](_0x5bd2fc,_0x802893,!0x0);}return this['_lastFrom']=_0x5bd2fc,this[_0x1b2f('0x66')]=_0x802893,this[_0x1b2f('0xdd')]();}[_0x1b2f('0x5')](_0x2f1ca8){this[_0x1b2f('0x55')](),this['_lastFrom']=_0x2f1ca8[_0x1b2f('0x77')],this[_0x1b2f('0x66')]=_0x2f1ca8[_0x1b2f('0x2')];for(const _0x3a4fc9 in _0x2f1ca8[_0x1b2f('0x2e')]){const _0x1764fc=this[_0x1b2f('0xc8')](_0x2f1ca8[_0x1b2f('0x2e')][_0x3a4fc9][_0x1b2f('0x3d')]);_0x1764fc[_0x1b2f('0x59')]=_0x3a4fc9,this[_0x1b2f('0x69')][_0x1b2f('0xbd')](_0x3a4fc9,_0x1764fc);const _0x4d8f48=this['_makeIdsRoot'](_0x1764fc);this[_0x1b2f('0xc4')][_0x1b2f('0xbd')](_0x3a4fc9,_0x4d8f48);for(const [_0x24b3e9,_0x23464f]of _0x1764fc[_0x1b2f('0x3b')]){if(!_0x24b3e9[_0x1b2f('0xd0')]('revision:'))continue;const _0x392565=_0x24b3e9[_0x1b2f('0xc1')](':')[0x2];for(const _0x59c076 of _0x23464f['getWalker']({'singleCharacters':!0x0})){const _0x1a4ee0=this['_getVidAttributeName'](_0x59c076),_0x19cc57=_0x1b2f('0x5d')==_0x59c076[_0x1b2f('0x9b')]?_0x59c076[_0x1b2f('0xb0')][_0x1b2f('0x4b')][_0x1b2f('0x2d')](0x0,-0x1):_0x59c076[_0x1b2f('0xb0')][_0x1b2f('0x4b')],_0x232769=_0x4d8f48['getNodeByPath'](_0x19cc57)[_0x1b2f('0xb')](_0x1a4ee0);this[_0x1b2f('0x87')]['set'](_0x232769,{'userId':_0x392565});}}}this[_0x1b2f('0x7d')]=this[_0x1b2f('0xe6')];const _0x32ba00=[...Array(this[_0x1b2f('0xe6')])['keys']()]['slice'](0x1)[_0x1b2f('0x74')](_0x138d27=>!this['_touched'][_0x1b2f('0x96')](_0x138d27));let _0x1475ac=0x0;for(const _0x4fd138 in _0x2f1ca8[_0x1b2f('0x2e')]){const _0x4b4677=this[_0x1b2f('0xc8')](_0x2f1ca8[_0x1b2f('0x2e')][_0x4fd138][_0x1b2f('0xd9')]);_0x4b4677['rootName']=_0x4fd138,this[_0x1b2f('0x65')][_0x1b2f('0xbd')](_0x4fd138,_0x4b4677);const _0x1c36de=this['_makeIdsRoot'](_0x4b4677,Number[_0x1b2f('0xa7')]);this['_idsRoots'][_0x1b2f('0xbd')](_0x4fd138,_0x1c36de);for(const [_0x3e5590,_0x49ee99]of _0x4b4677['markers']){if(!_0x3e5590['startsWith']('revision:'))continue;const _0x571ec0=_0x3e5590[_0x1b2f('0xc1')](':')[0x2];for(const _0x32a6f6 of _0x49ee99[_0x1b2f('0x62')]({'singleCharacters':!0x0})){const _0xdb954d=this[_0x1b2f('0xc0')](_0x32a6f6),_0xf26a02=this['_revisionId']++,_0x592ee8=_0x1b2f('0x5d')==_0x32a6f6['type']?_0x32a6f6[_0x1b2f('0xb0')][_0x1b2f('0x4b')][_0x1b2f('0x2d')](0x0,-0x1):_0x32a6f6[_0x1b2f('0xb0')]['path'];_0x1c36de[_0x1b2f('0xb2')](_0x592ee8)[_0x1b2f('0x4a')](_0xdb954d,_0xf26a02),this[_0x1b2f('0x87')][_0x1b2f('0xbd')](_0xf26a02,{'userId':_0x571ec0});}}for(const _0x2f5d5c of this[_0x1b2f('0x32')]['model'][_0x1b2f('0xb1')](_0x4b4677)['getWalker']({'singleCharacters':!0x0})){const _0x3e02c9=this['_getVidAttributeName'](_0x2f5d5c),_0x19c6f4=_0x1b2f('0x5d')==_0x2f5d5c[_0x1b2f('0x9b')]?_0x2f5d5c[_0x1b2f('0xb0')]['path'][_0x1b2f('0x2d')](0x0,-0x1):_0x2f5d5c[_0x1b2f('0xb0')][_0x1b2f('0x4b')],_0x5b8a66=_0x1c36de['getNodeByPath'](_0x19c6f4);_0x5b8a66[_0x1b2f('0xb')](_0x3e02c9)>0x0||_0x5b8a66[_0x1b2f('0x4a')](_0x3e02c9,_0x32ba00[_0x1475ac++]);}const _0x2eb298=new _0x5ab7a7();_0x2eb298[_0x1b2f('0x59')]='$graveyard',this['_baseRoots']['set'](_0x1b2f('0x39'),_0x2eb298),this['_baseIdsRoots'][_0x1b2f('0xbd')](_0x1b2f('0x39'),this['_makeIdsRoot'](_0x2eb298,0x1));const _0x20cf74=new _0x5ab7a7();_0x20cf74[_0x1b2f('0x59')]='$graveyard',this[_0x1b2f('0x65')][_0x1b2f('0xbd')](_0x1b2f('0x39'),_0x20cf74),this[_0x1b2f('0x44')][_0x1b2f('0xbd')]('$graveyard',this['_makeIdsRoot'](_0x20cf74,0x1));for(const [_0x102de0,_0x3d4636]of _0x4b4677['markers'])_0x102de0[_0x1b2f('0xd0')]('revision:')||this['_markers'][_0x1b2f('0xbd')](_0x102de0,_0x3d4636);}const _0x485a4a=Array[_0x1b2f('0x5a')](this[_0x1b2f('0x65')])[_0x1b2f('0x26')](([_0x2a56ff,_0x2c2053])=>[_0x2a56ff,H(_0x2c2053)]);this[_0x1b2f('0x70')](this[_0x1b2f('0x66')],_0x485a4a,this[_0x1b2f('0x6c')]);}[_0x1b2f('0xc8')](_0x5312f0){const _0x53e1c3=JSON[_0x1b2f('0xa3')](_0x5312f0),_0x3b2d1a=this[_0x1b2f('0x32')]['editing']['view']['document'],_0x22e315=new _0x2e8905(_0x3b2d1a,_0x53e1c3[_0x1b2f('0x26')](_0x4a040c=>j(_0x4a040c,this['editor'])));return this[_0x1b2f('0x32')][_0x1b2f('0xe')][_0x1b2f('0xa9')](_0x22e315);}[_0x1b2f('0x21')](){const _0x1f2529=new Map();for(const _0x201d3e of this['_rootNames']){const _0x1864e4=new _0x5ab7a7();_0x1864e4['rootName']=_0x201d3e,_0x1f2529[_0x1b2f('0xbd')](_0x201d3e,_0x1864e4);}this[_0x1b2f('0x70')](Number['NEGATIVE_INFINITY'],_0x1f2529,[]);}[_0x1b2f('0x70')](_0x45fab9,_0x35f804,_0x2f1cdc){const _0x1c4d06=new Map(_0x35f804),_0x26a9d1=new Map();for(const [_0x30dd5c,_0x505aa9]of _0x2f1cdc)_0x26a9d1[_0x1b2f('0xbd')](_0x30dd5c,{'start':_0x505aa9[_0x1b2f('0x2b')][_0x1b2f('0x93')](),'end':_0x505aa9[_0x1b2f('0x47')][_0x1b2f('0x93')](),'rootName':_0x505aa9['root']['rootName']});this[_0x1b2f('0xc3')][_0x1b2f('0xbd')](_0x45fab9,{'roots':_0x1c4d06,'markers':_0x26a9d1});}['_removeMetaData'](_0xe67f31){this[_0x1b2f('0xc3')]['delete'](_0xe67f31);}[_0x1b2f('0x12')](){this[_0x1b2f('0x55')](),this['_lastFrom']=-0x1,this[_0x1b2f('0x66')]=-0x1,this[_0x1b2f('0xc3')]['clear'](),this['init'](this[_0x1b2f('0x6')]);}['_reset'](){this[_0x1b2f('0x87')][_0x1b2f('0x8f')](),this[_0x1b2f('0x72')][_0x1b2f('0x8f')](),this[_0x1b2f('0x65')]['clear'](),this[_0x1b2f('0x69')][_0x1b2f('0x8f')](),this[_0x1b2f('0x44')]['clear'](),this[_0x1b2f('0xc4')]['clear'](),this[_0x1b2f('0x6c')][_0x1b2f('0x8f')](),this[_0x1b2f('0xe6')]=0x1,this['_startingRevisionId']=this[_0x1b2f('0xe6')];}[_0x1b2f('0x36')](_0x2540e0,_0x5ae429=null){let _0x11487f=null;_0x2540e0['is'](_0x1b2f('0x28'))||(_0x11487f=new _0x5731e8(_0x2540e0[_0x1b2f('0x88')],{'vid_start':null===_0x5ae429?this[_0x1b2f('0xe6')]++:_0x5ae429++}));const _0x48b124=[];for(const _0x322ed7 of _0x2540e0[_0x1b2f('0x3a')]())if(_0x322ed7['is'](_0x1b2f('0xdb'))){_0x48b124[_0x1b2f('0xd2')](this['_makeIdsRoot'](_0x322ed7,_0x5ae429));const _0x330170=_0x48b124[_0x48b124[_0x1b2f('0x6d')]-0x1];null!==_0x5ae429&&(_0x5ae429=_0x330170['is']('element',_0x1b2f('0xdf'))?_0x330170[_0x1b2f('0xb')](_0x1b2f('0xa8'))+0x1:_0x330170[_0x1b2f('0xb')](_0x1b2f('0x35'))+0x1);}else for(let _0x3b548c=0x0;_0x3b548c<_0x322ed7[_0x1b2f('0xf2')];_0x3b548c++)_0x48b124['push'](new _0x5731e8(_0x1b2f('0xdf'),{'vid':null===_0x5ae429?this[_0x1b2f('0xe6')]++:_0x5ae429++}));if(_0x2540e0['is'](_0x1b2f('0x28'))){const _0x4b0cfd=new _0x5ab7a7(_0x48b124);return _0x4b0cfd[_0x1b2f('0x59')]=_0x2540e0[_0x1b2f('0x59')],_0x4b0cfd;}return _0x11487f[_0x1b2f('0x4a')](_0x1b2f('0x35'),null===_0x5ae429?this[_0x1b2f('0xe6')]++:_0x5ae429++),_0x11487f['_insertChild'](0x0,_0x48b124),_0x11487f;}[_0x1b2f('0x85')](_0x2ce7ce,_0x3839bd,_0x440067){this[_0x1b2f('0x55')]();const {roots:_0x29e070,markers:_0x21c1a8}=this[_0x1b2f('0xc3')][_0x1b2f('0x17')](_0x2ce7ce);this[_0x1b2f('0x69')]=new Map(_0x29e070);for(const [_0x781120,_0x58e332]of this[_0x1b2f('0x69')])if('$graveyard'!==_0x781120&&(this[_0x1b2f('0x65')][_0x1b2f('0xbd')](_0x781120,H(_0x58e332)),_0x440067)){const _0x46a075=this[_0x1b2f('0xe6')];this['_idsRoots'][_0x1b2f('0xbd')](_0x781120,this[_0x1b2f('0x36')](_0x58e332)),this[_0x1b2f('0xc4')][_0x1b2f('0xbd')](_0x781120,this[_0x1b2f('0x36')](_0x58e332,_0x46a075));}this[_0x1b2f('0x7d')]=this[_0x1b2f('0xe6')],this[_0x1b2f('0x65')][_0x1b2f('0xbd')](_0x1b2f('0x39'),H(this[_0x1b2f('0x69')][_0x1b2f('0x17')](_0x1b2f('0x39')))),_0x440067&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this[_0x1b2f('0x69')]['get']('$graveyard')));for(const [_0x66f43,_0x112e0d]of _0x21c1a8){const _0x3eb77f=this[_0x1b2f('0x69')][_0x1b2f('0x17')](_0x112e0d[_0x1b2f('0x59')]),_0x1defa6=this[_0x1b2f('0x65')][_0x1b2f('0x17')](_0x112e0d['rootName']),_0x181306=new _0x561f91(this['_fixPosition'](_0x112e0d[_0x1b2f('0x2b')],_0x3eb77f),this[_0x1b2f('0xf7')](_0x112e0d[_0x1b2f('0x47')],_0x3eb77f)),_0x5f1f42=this[_0x1b2f('0x45')](_0x181306,_0x1defa6);_0x3eb77f[_0x1b2f('0x3b')][_0x1b2f('0xbd')](_0x66f43,_0x181306),this[_0x1b2f('0x6c')][_0x1b2f('0xbd')](_0x66f43,_0x5f1f42);}this[_0x1b2f('0x4c')](_0x2ce7ce,_0x3839bd,_0x440067);}[_0x1b2f('0x4c')](_0x4ab86a,_0x49ab0d,_0x48c8b8){for(const _0x2d1310 of this[_0x1b2f('0x6')][_0x1b2f('0x27')](_0x4ab86a,_0x49ab0d))this[_0x1b2f('0x64')](_0x2d1310,_0x48c8b8);for(const _0x2c6855 of this[_0x1b2f('0x65')]['values']())_0x2c6855[_0x1b2f('0x3b')]['clear']();for(const [_0x24a027,_0x2974e9]of this[_0x1b2f('0x6c')]){this['_diffRoots'][_0x1b2f('0x17')](_0x2974e9['root'][_0x1b2f('0x59')])[_0x1b2f('0x3b')]['set'](_0x24a027,_0x2974e9[_0x1b2f('0x93')]());}this[_0x1b2f('0x70')](_0x49ab0d,Array[_0x1b2f('0x5a')](this[_0x1b2f('0x65')])[_0x1b2f('0x26')](([_0x398f00,_0x2f82cb])=>[_0x398f00,H(_0x2f82cb)]),this[_0x1b2f('0x6c')]);}[_0x1b2f('0x40')](_0x23e74f){const _0x755e01=Array[_0x1b2f('0x5a')](this[_0x1b2f('0xc3')][_0x1b2f('0x6e')]());_0x755e01[_0x1b2f('0xd4')]((_0x588669,_0xa6daf9)=>_0x588669-_0xa6daf9),_0x755e01[_0x1b2f('0x49')]();for(const _0x31d30b of _0x755e01)if(_0x31d30b<_0x23e74f)return _0x31d30b;return this[_0x1b2f('0x21')](),Number[_0x1b2f('0xa7')];}['_copyMarkers'](_0x46068e,_0x15443f){const _0xa8903b=Array[_0x1b2f('0x5a')](_0x15443f[_0x1b2f('0x3b')])[_0x1b2f('0x26')](([_0x281ad3,_0x2e5997])=>[_0x281ad3,this['_fixRange'](_0x2e5997,_0x46068e)]);_0x46068e[_0x1b2f('0x3b')]=new Map(_0xa8903b);}[_0x1b2f('0xcd')](_0x552ee1){for(const _0x41780b of this[_0x1b2f('0x6c')]['values']()){const _0x4b033c=_0x41780b[_0x1b2f('0xe3')](_0x552ee1),_0x408619=_0x561f91['_createFromRanges'](_0x4b033c);_0x41780b[_0x1b2f('0x2b')]=_0x408619[_0x1b2f('0x2b')],_0x41780b[_0x1b2f('0x47')]=_0x408619['end'];}}['_handleOperation'](_0x34b3fd,_0x2a5bf9){const _0x5637cc=this[_0x1b2f('0x37')](_0x34b3fd,this['_diffRoots']);if(_0x1b2f('0x14')!==_0x34b3fd[_0x1b2f('0x9b')]&&(_0x5637cc[_0x1b2f('0xe2')](),this[_0x1b2f('0xcd')](_0x5637cc)),_0x2a5bf9)switch(_0x5637cc[_0x1b2f('0x9b')]){case _0x1b2f('0x63'):this['_handleInsertOperation'](_0x34b3fd);break;case _0x1b2f('0xec'):case _0x1b2f('0x8c'):case _0x1b2f('0xc7'):this[_0x1b2f('0x9a')](_0x34b3fd);break;case _0x1b2f('0xe0'):this['_handleMergeOperation'](_0x34b3fd);break;case'split':this[_0x1b2f('0xe4')](_0x34b3fd);break;case _0x1b2f('0x14'):this[_0x1b2f('0xeb')](_0x34b3fd);}}[_0x1b2f('0x37')](_0x382dfa,_0x1d4680){const _0x34b127=_0x382dfa[_0x1b2f('0x93')]();return _0x34b127[_0x1b2f('0x7')]=_0x382dfa['_authorId'],this[_0x1b2f('0x50')](_0x34b127,_0x1d4680),_0x34b127;}[_0x1b2f('0x3c')](_0x19f361){return _0x19f361[_0x1b2f('0x26')](_0x151153=>{const _0x235e10=this[_0x1b2f('0xc0')](_0x151153);return Number(_0x151153[_0x1b2f('0x84')][_0x1b2f('0xb')](_0x235e10));});}['_generateTape'](_0x104142,_0x4d280d){if(_0x104142['is'](_0x1b2f('0xdb'),_0x1b2f('0xdf')))_0x4d280d[_0x1b2f('0xd2')]({'item':_0x104142,'type':_0x1b2f('0xd')});else{_0x104142['is'](_0x1b2f('0xdb'))&&_0x4d280d[_0x1b2f('0xd2')]({'item':_0x104142,'type':_0x1b2f('0xbe')});for(const _0x567171 of _0x104142['getChildren']())this[_0x1b2f('0x3e')](_0x567171,_0x4d280d);_0x104142['is'](_0x1b2f('0xdb'))&&_0x4d280d[_0x1b2f('0xd2')]({'item':_0x104142,'type':_0x1b2f('0x5d')});}return _0x4d280d;}['_getState'](){const _0x14b72f=this[_0x1b2f('0x32')][_0x1b2f('0x29')][_0x1b2f('0xd1')][_0x1b2f('0x8a')](),_0x2554fb=new Map(this[_0x1b2f('0x87')]),_0x1422f1=new Map(_0x2554fb),_0x361a5c=new Map(),_0x2974fe={'insertions':{},'deletions':{}},_0x77cc96={'insertions':{},'deletions':{}},_0x51b410=new Map();for(const _0x5cb043 of _0x14b72f){const _0x46023c=this[_0x1b2f('0x65')][_0x1b2f('0x17')](_0x5cb043),_0x26cdf4=this[_0x1b2f('0x69')][_0x1b2f('0x17')](_0x5cb043);_0x2974fe[_0x1b2f('0xd9')][_0x5cb043]=H(_0x46023c),_0x2974fe['deletions'][_0x5cb043]=H(_0x26cdf4),this[_0x1b2f('0x9d')](_0x2974fe[_0x1b2f('0x3d')][_0x5cb043],_0x26cdf4),this['_copyMarkers'](_0x2974fe[_0x1b2f('0xd9')][_0x5cb043],_0x46023c),_0x77cc96[_0x1b2f('0xd9')][_0x5cb043]=this[_0x1b2f('0x3e')](this[_0x1b2f('0x44')]['get'](_0x5cb043),[]),_0x77cc96['deletions'][_0x5cb043]=this[_0x1b2f('0x3e')](this[_0x1b2f('0xc4')][_0x1b2f('0x17')](_0x5cb043),[]);}for(const _0x55e2af of _0x14b72f){const _0x42aed9=_0x77cc96[_0x1b2f('0xd9')][_0x55e2af];for(const _0x3ad68c of _0x42aed9){const _0x3f54cc=this[_0x1b2f('0xc0')](_0x3ad68c),_0x1a8a64=_0x3ad68c['item']['getAttribute'](_0x3f54cc);_0x1422f1[_0x1b2f('0xbb')](_0x1a8a64),_0x1a8a64>=this['_startingRevisionId']&&_0x361a5c[_0x1b2f('0xbd')](_0x1a8a64,_0x2554fb[_0x1b2f('0x17')](_0x1a8a64));}}for(const _0x44467a of _0x14b72f){const _0x46f659=_0x77cc96[_0x1b2f('0xd9')][_0x44467a],_0x35fdf5=this[_0x1b2f('0x3c')](_0x77cc96[_0x1b2f('0x3d')][_0x44467a]);let _0x18e2ad=0x0;for(const _0x12e531 of _0x46f659){const _0x784ce4=this[_0x1b2f('0xc0')](_0x12e531),_0x2960ff=_0x12e531[_0x1b2f('0x84')]['getAttribute'](_0x784ce4);if(!_0x361a5c['has'](_0x2960ff)&&!_0x51b410[_0x1b2f('0x96')](_0x2960ff)){if(_0x1422f1[_0x1b2f('0x96')](_0x2960ff))_0x18e2ad++;else{if(_0x2960ff!=_0x35fdf5[_0x18e2ad]){const _0x150715=_0x2554fb[_0x1b2f('0x17')](_0x2960ff)||_0x2554fb[_0x1b2f('0x17')](_0x35fdf5[_0x18e2ad]);for(;_0x2960ff!=_0x35fdf5[_0x18e2ad];)_0x1422f1[_0x1b2f('0x96')](_0x35fdf5[_0x18e2ad])||(_0x51b410[_0x1b2f('0xbd')](_0x35fdf5[_0x18e2ad],_0x150715),_0x2554fb[_0x1b2f('0xbd')](_0x35fdf5[_0x18e2ad],_0x150715)),_0x18e2ad++;}_0x18e2ad++;}}}}for(const _0x3afb64 of _0x14b72f){const _0x2a32d8=_0x77cc96[_0x1b2f('0xd9')][_0x3afb64];for(const _0x1c93b5 of _0x2a32d8){const _0x66b7ea=this[_0x1b2f('0xc0')](_0x1c93b5),_0x41db39=_0x1c93b5[_0x1b2f('0x84')][_0x1b2f('0xb')](_0x66b7ea);if(_0x51b410['has'](_0x41db39)){const _0x4a5007=_0x51b410[_0x1b2f('0x17')](_0x41db39);_0x1422f1[_0x1b2f('0x96')](_0x41db39)||_0x1422f1[_0x1b2f('0xbd')](_0x41db39,{..._0x4a5007}),_0x361a5c['set'](_0x41db39,{..._0x4a5007});}}}for(const _0x191287 of _0x1422f1[_0x1b2f('0x6e')]())_0x191287>=this[_0x1b2f('0x7d')]&&_0x1422f1['delete'](_0x191287);const _0x2f1d32=new Map();for(const _0x48656c of _0x14b72f){let _0x32c203=_0x77cc96['insertions'][_0x48656c];for(const _0x4a23ab of _0x32c203)if(_0x4a23ab[_0x1b2f('0x84')]['is'](_0x1b2f('0xdb'),_0x1b2f('0x1d'))){const _0x244de6=this[_0x1b2f('0xc0')](_0x4a23ab),_0x31aa24=_0x4a23ab[_0x1b2f('0x84')]['getAttribute'](_0x244de6);if(_0x361a5c['has'](_0x31aa24)){const _0x5f47d9=_0x4a23ab['item'][_0x1b2f('0xb4')][_0x1b2f('0xb4')][_0x1b2f('0xb')](_0x1b2f('0xea')),_0x413612=_0x2f1d32['get'](_0x5f47d9)||new Set();_0x413612[_0x1b2f('0x83')](_0x361a5c['get'](_0x31aa24)[_0x1b2f('0xb5')]),_0x2f1d32[_0x1b2f('0xbd')](_0x5f47d9,_0x413612);}}_0x32c203=_0x77cc96[_0x1b2f('0x3d')][_0x48656c];for(const _0x581a18 of _0x32c203)if(_0x581a18[_0x1b2f('0x84')]['is']('element',_0x1b2f('0x1d'))){const _0x2a85b1=this[_0x1b2f('0xc0')](_0x581a18),_0x3c1074=_0x581a18['item']['getAttribute'](_0x2a85b1);if(_0x1422f1[_0x1b2f('0x96')](_0x3c1074)){const _0x2a94cb=_0x581a18[_0x1b2f('0x84')][_0x1b2f('0xb4')][_0x1b2f('0xb4')][_0x1b2f('0xb')]('vid_start'),_0x35efe6=_0x2f1d32[_0x1b2f('0x17')](_0x2a94cb)||new Set();_0x35efe6[_0x1b2f('0x83')](_0x1422f1[_0x1b2f('0x17')](_0x3c1074)[_0x1b2f('0xb5')]),_0x2f1d32[_0x1b2f('0xbd')](_0x2a94cb,_0x35efe6);}}for(const _0x58ae9a of _0x2f1d32[_0x1b2f('0x6e')]())(_0x361a5c['has'](_0x58ae9a)||_0x1422f1[_0x1b2f('0x96')](_0x58ae9a))&&_0x2f1d32[_0x1b2f('0xbb')](_0x58ae9a);}for(const _0x334c3d of _0x14b72f){const _0x2abb77=_0x77cc96[_0x1b2f('0xd9')][_0x334c3d];let _0x42b2c2=null,_0x118292=null;for(const _0xeb37e5 of _0x2abb77){const _0x240ca6=this[_0x1b2f('0xc0')](_0xeb37e5),_0x5d7fb5=_0xeb37e5[_0x1b2f('0x84')]['getAttribute'](_0x240ca6),_0x4bac70=_0x2f1d32[_0x1b2f('0x17')](_0x5d7fb5);_0x4bac70&&_0x1b2f('0xbe')==_0xeb37e5[_0x1b2f('0x9b')]&&(_0x42b2c2=Array[_0x1b2f('0x5a')](_0x4bac70)[0x0],_0x118292=_0xeb37e5[_0x1b2f('0x84')]['getAttribute'](_0x1b2f('0x35'))),_0x42b2c2&&(_0x1422f1[_0x1b2f('0xbd')](_0x5d7fb5,{'userId':_0x42b2c2}),_0x361a5c[_0x1b2f('0xbd')](_0x5d7fb5,{'userId':_0x42b2c2})),_0x5d7fb5==_0x118292&&(_0x42b2c2=null,_0x118292=null);}}const _0x8d797e={},_0x2d8aa5=new Set();for(const _0x5f059b of _0x14b72f){const _0x37a736=_0x2974fe['deletions'][_0x5f059b],_0x28f582=_0x2974fe[_0x1b2f('0xd9')][_0x5f059b];for(const {userId:_0x152114}of this[_0x1b2f('0x72')][_0x1b2f('0xf3')]())null!==_0x152114&&_0x2d8aa5[_0x1b2f('0x83')](_0x152114);this[_0x1b2f('0x20')](_0x28f582,_0x77cc96[_0x1b2f('0xd9')][_0x5f059b],_0x361a5c,_0x1b2f('0x33'),_0x2d8aa5),this[_0x1b2f('0x20')](_0x37a736,_0x77cc96[_0x1b2f('0x3d')][_0x5f059b],_0x1422f1,'deletion',_0x2d8aa5),_0x8d797e[_0x5f059b]={'insertions':this['_prepareViewToSave'](_0x28f582),'deletions':this[_0x1b2f('0xab')](_0x37a736)};}return{'diffData':_0x8d797e,'authorsIds':Array['from'](_0x2d8aa5)};}[_0x1b2f('0x8d')](_0x3392fc){for(const [,_0x364c8d]of _0x3392fc[_0x1b2f('0x3b')]){const _0x4e0b18=_0x364c8d['start'][_0x1b2f('0x46')]()[_0x1b2f('0x74')](_0x27ee05=>_0x1b2f('0x1d')==_0x27ee05[_0x1b2f('0x88')]);for(const _0x1f087e of _0x4e0b18)0x1==_0x1f087e[_0x1b2f('0x71')]&&_0x1f087e[_0x1b2f('0xc2')](0x0)['is']('element',_0x1b2f('0xdc'))&&_0x1f087e[_0x1b2f('0xc2')](0x0)[_0x1b2f('0x4a')](_0x1b2f('0x81'),!0x0);}}[_0x1b2f('0xab')](_0x3e17ed){this[_0x1b2f('0x8d')](_0x3e17ed);const _0x59f743=this[_0x1b2f('0x32')][_0x1b2f('0xe')][_0x1b2f('0x2c')](_0x3e17ed,{}),_0x35850f=Array['from'](_0x59f743[_0x1b2f('0x3a')]())[_0x1b2f('0x26')](_0x4ab8ba=>this[_0x1b2f('0x7e')](_0x4ab8ba));return JSON[_0x1b2f('0xed')](_0x35850f);}['_getViewJson'](_0x69a6bc){if(_0x69a6bc['is'](_0x1b2f('0xd')))return _0x69a6bc[_0x1b2f('0xe')];return{'type':Object['keys'](J)['find'](_0x415a59=>_0x69a6bc instanceof J[_0x415a59]),'name':_0x69a6bc[_0x1b2f('0x88')],'attributes':Array['from'](_0x69a6bc[_0x1b2f('0x1c')]()),'children':Array[_0x1b2f('0x5a')](_0x69a6bc[_0x1b2f('0x3a')]())[_0x1b2f('0x26')](_0x3199b5=>this[_0x1b2f('0x7e')](_0x3199b5))};}[_0x1b2f('0x20')](_0x2d1b4c,_0x5acdb1,_0x429ce9,_0x3aa6b5,_0x2fe03c){let _0xd63c2a=null,_0x591ceb=null,_0x1b7c2f=0x0;const _0x44afab=this['editor'][_0x1b2f('0x29')];for(let _0x51eef6=0x0;_0x51eef6<_0x5acdb1[_0x1b2f('0x6d')];_0x51eef6++){const _0x453438=this['_getVidAttributeName'](_0x5acdb1[_0x51eef6]),_0x138457=_0x5acdb1[_0x51eef6][_0x1b2f('0x84')]['getAttribute'](_0x453438),_0x255e3b=_0x429ce9[_0x1b2f('0x17')](_0x138457),_0x57b4d8=_0x51eef6==_0x5acdb1[_0x1b2f('0x6d')]-0x1;(!_0xd63c2a&&_0x255e3b&&(_0xd63c2a=_0x255e3b,_0x591ceb=_0x5acdb1[_0x51eef6]),_0xd63c2a&&(!_0x255e3b||_0x255e3b[_0x1b2f('0xb5')]!=_0xd63c2a[_0x1b2f('0xb5')]))&&(_0x1e2c26(_0x255e3b,q(_0x591ceb,_0x2d1b4c,_0x44afab),q(_0x5acdb1[_0x51eef6],_0x2d1b4c,_0x44afab)),_0xd63c2a=_0x255e3b||null,_0x591ceb=_0x255e3b?_0x5acdb1[_0x51eef6]:null),_0xd63c2a&&_0x57b4d8&&_0x1e2c26(_0x255e3b,q(_0x591ceb,_0x2d1b4c,_0x44afab),G(_0x5acdb1[_0x51eef6],_0x2d1b4c,_0x44afab));}function _0x1e2c26(_0x407305,_0x1b73d4,_0x5721f5){const _0x571389=_0xd63c2a[_0x1b2f('0xb5')],_0x140422='revision:'+_0x3aa6b5+':'+_0x571389+':'+_0x1b7c2f++,_0x113623=_0x44afab[_0x1b2f('0x43')](_0x1b73d4,_0x5721f5);_0x2d1b4c[_0x1b2f('0x3b')][_0x1b2f('0xbd')](_0x140422,_0x113623),null!==_0x571389&&_0x2fe03c[_0x1b2f('0x83')](_0x571389);}}[_0x1b2f('0xc0')](_0x4ecbab){switch(_0x4ecbab['type']){case _0x1b2f('0xbe'):return'vid_start';case _0x1b2f('0x5d'):return _0x1b2f('0x35');default:return _0x1b2f('0xa8');}}[_0x1b2f('0x50')](_0x3e8233,_0x5914b6){_0x3e8233['baseVersion']=null;for(const _0x28a854 in _0x3e8233){if(_0x3e8233[_0x28a854]instanceof _0x57323c){const _0xe6c7f8=_0x5914b6[_0x1b2f('0x17')](_0x3e8233[_0x28a854]['root'][_0x1b2f('0x59')]);_0x3e8233[_0x28a854]=this[_0x1b2f('0xf7')](_0x3e8233[_0x28a854],_0xe6c7f8);}if(_0x3e8233[_0x28a854]instanceof _0x561f91){const _0x24ba60=_0x5914b6[_0x1b2f('0x17')](_0x3e8233[_0x28a854]['root'][_0x1b2f('0x59')]);_0x3e8233[_0x28a854]=this['_fixRange'](_0x3e8233[_0x28a854],_0x24ba60);}}_0x3e8233['root']&&(_0x3e8233[_0x1b2f('0x4f')]=_0x5914b6[_0x1b2f('0x17')](_0x3e8233[_0x1b2f('0x4f')][_0x1b2f('0x59')]));}['_fixRange'](_0x16e989,_0x4d01fc){return this[_0x1b2f('0x32')][_0x1b2f('0x29')][_0x1b2f('0x43')](this[_0x1b2f('0xf7')](_0x16e989[_0x1b2f('0x2b')],_0x4d01fc),this[_0x1b2f('0xf7')](_0x16e989['end'],_0x4d01fc));}[_0x1b2f('0xf7')](_0x44d1f4,_0xe67dc3){return this[_0x1b2f('0x32')][_0x1b2f('0x29')][_0x1b2f('0xe5')](_0xe67dc3,_0x44d1f4[_0x1b2f('0x4b')],_0x44d1f4[_0x1b2f('0x3')]);}['_handleInsertOperation'](_0x1f169b){const _0x5b9ada=this[_0x1b2f('0x44')][_0x1b2f('0x17')](_0x1f169b[_0x1b2f('0xa6')][_0x1b2f('0x4f')][_0x1b2f('0x59')]),_0x1086cd=this[_0x1b2f('0xf7')](_0x1f169b[_0x1b2f('0xa6')],_0x5b9ada),_0x2e7827=null===_0x1f169b[_0x1b2f('0x7')]?null:_0x1f169b[_0x1b2f('0x7')]||this[_0x1b2f('0x32')][_0x1b2f('0x1a')]['get']('Users')['me']['id'],_0x262477=_0x1086cd[_0x1b2f('0xb4')],_0x1bd13b=this[_0x1b2f('0xe6')],_0x576062=[];for(const _0x562daa of _0x1f169b[_0x1b2f('0xba')])if(_0x562daa['is']('element'))_0x576062['push'](this[_0x1b2f('0x36')](_0x562daa));else for(let _0x2ffe67=0x0;_0x2ffe67<_0x562daa['offsetSize'];_0x2ffe67++)_0x576062[_0x1b2f('0xd2')](new _0x5731e8('$text',{'vid':this[_0x1b2f('0xe6')]++}));const _0x451b6a=this['_revisionId'];for(let _0x2cb5ec=_0x1bd13b;_0x2cb5ec<_0x451b6a;_0x2cb5ec++)this[_0x1b2f('0x87')][_0x1b2f('0xbd')](_0x2cb5ec,{'userId':_0x2e7827});_0x262477['_insertChild'](_0x1086cd[_0x1b2f('0xf5')],_0x576062);}[_0x1b2f('0x9a')](_0x4db8f2){(_0x4db8f2=this[_0x1b2f('0x37')](_0x4db8f2,this[_0x1b2f('0x44')]))[_0x1b2f('0xe2')]();const _0x275fbe=null===_0x4db8f2[_0x1b2f('0x7')]?null:_0x4db8f2[_0x1b2f('0x7')]||this[_0x1b2f('0x32')][_0x1b2f('0x1a')][_0x1b2f('0x17')]('Users')['me']['id'],_0x23a4ea=_0x4db8f2[_0x1b2f('0xd5')](),_0x197270=_0x23a4ea['parent'],_0x962f66=_0x23a4ea[_0x1b2f('0xf5')];!function _0x58b34f(_0x46355e,_0x1f53b7,_0x15890b,_0x4b9ef3){for(let _0x2cdd36=_0x15890b;_0x2cdd36<_0x4b9ef3;_0x2cdd36++){const _0x1323a5=_0x1f53b7['getChild'](_0x2cdd36);_0x1323a5['is']('element',_0x1b2f('0xdf'))?_0x46355e['set'](_0x1323a5[_0x1b2f('0xb')](_0x1b2f('0xa8')),{'userId':_0x275fbe}):(_0x46355e[_0x1b2f('0xbd')](_0x1323a5['getAttribute'](_0x1b2f('0xea')),{'userId':_0x275fbe}),_0x58b34f(_0x46355e,_0x1323a5,0x0,_0x1323a5[_0x1b2f('0x71')]),_0x46355e['set'](_0x1323a5[_0x1b2f('0xb')](_0x1b2f('0x35')),{'userId':_0x275fbe}));}}(this[_0x1b2f('0x87')],_0x197270,_0x962f66,_0x962f66+_0x4db8f2['howMany']);}['_handleMergeOperation'](_0x2de3a9){const _0x2fe136=null===(_0x2de3a9=this[_0x1b2f('0x37')](_0x2de3a9,this[_0x1b2f('0x44')]))[_0x1b2f('0x7')]?null:_0x2de3a9[_0x1b2f('0x7')]||this[_0x1b2f('0x32')]['plugins']['get'](_0x1b2f('0x6b'))['me']['id'],_0x29a6be=_0x2de3a9[_0x1b2f('0xbf')][_0x1b2f('0xb4')],_0x50334f=_0x2de3a9[_0x1b2f('0x56')]['parent'],_0x4bba29=_0x29a6be[_0x1b2f('0xb')](_0x1b2f('0x35')),_0x210197=_0x50334f[_0x1b2f('0xb')](_0x1b2f('0xea'));_0x29a6be[_0x1b2f('0x4a')](_0x1b2f('0x35'),_0x50334f[_0x1b2f('0xb')](_0x1b2f('0x35'))),_0x50334f['_setAttribute'](_0x1b2f('0x35'),_0x4bba29),this[_0x1b2f('0x87')][_0x1b2f('0xbd')](_0x210197,{'userId':_0x2fe136}),this[_0x1b2f('0x87')]['set'](_0x4bba29,{'userId':_0x2fe136}),_0x2de3a9[_0x1b2f('0xe2')]();}[_0x1b2f('0xe4')](_0x4cacbc){const _0x52e5a8=null===(_0x4cacbc=this[_0x1b2f('0x37')](_0x4cacbc,this[_0x1b2f('0x44')]))[_0x1b2f('0x7')]?null:_0x4cacbc[_0x1b2f('0x7')]||this[_0x1b2f('0x32')][_0x1b2f('0x1a')][_0x1b2f('0x17')]('Users')['me']['id'],_0x59961b=_0x4cacbc[_0x1b2f('0xa1')],_0x27732d=_0x4cacbc[_0x1b2f('0x8')]['parent'];_0x4cacbc[_0x1b2f('0xe2')]();const _0x135a66=_0x27732d[_0x1b2f('0xb')](_0x1b2f('0x35')),_0x40ecae=_0x4cacbc[_0x1b2f('0x4d')][_0x1b2f('0x30')];if(_0x59961b){const _0x3cb45b=_0x40ecae[_0x1b2f('0xb')](_0x1b2f('0x35')),_0x29cca5=_0x27732d[_0x1b2f('0xb')](_0x1b2f('0x35'));_0x27732d['_setAttribute'](_0x1b2f('0x35'),_0x3cb45b),_0x40ecae['_setAttribute'](_0x1b2f('0x35'),_0x29cca5),this[_0x1b2f('0x87')]['set'](_0x27732d[_0x1b2f('0xb')](_0x1b2f('0x35')),{'userId':_0x52e5a8}),this[_0x1b2f('0x87')]['set'](_0x40ecae[_0x1b2f('0xb')]('vid_start'),{'userId':_0x52e5a8});}else{const _0x5f0ea1=this[_0x1b2f('0xe6')]++,_0x55a90b=this[_0x1b2f('0xe6')]++;_0x27732d[_0x1b2f('0x4a')](_0x1b2f('0x35'),_0x5f0ea1),_0x40ecae[_0x1b2f('0x4a')](_0x1b2f('0xea'),_0x55a90b),_0x40ecae[_0x1b2f('0x4a')](_0x1b2f('0x35'),_0x135a66),this[_0x1b2f('0x87')][_0x1b2f('0xbd')](_0x5f0ea1,{'userId':_0x52e5a8}),this[_0x1b2f('0x87')][_0x1b2f('0xbd')](_0x55a90b,{'userId':_0x52e5a8});}}[_0x1b2f('0xeb')](_0x8a693f){if(!_0x8a693f['affectsData'])return;const _0x53b9c0=(_0x8a693f=this[_0x1b2f('0x37')](_0x8a693f,this[_0x1b2f('0x65')]))[_0x1b2f('0x8e')]?_0x8a693f[_0x1b2f('0x8e')][_0x1b2f('0x4f')]:null,_0x23ae5b=_0x8a693f[_0x1b2f('0x16')]?_0x8a693f[_0x1b2f('0x16')][_0x1b2f('0x4f')]:null;_0x53b9c0&&this[_0x1b2f('0x6c')][_0x1b2f('0xbb')](_0x8a693f[_0x1b2f('0x88')]),_0x23ae5b&&this[_0x1b2f('0x6c')]['set'](_0x8a693f[_0x1b2f('0x88')],_0x8a693f[_0x1b2f('0x16')]['clone']());const _0x3e3c80=null===_0x8a693f[_0x1b2f('0x7')]?null:_0x8a693f[_0x1b2f('0x7')]||this[_0x1b2f('0x32')][_0x1b2f('0x1a')][_0x1b2f('0x17')](_0x1b2f('0x6b'))['me']['id'],_0x15e60c=_0x8a693f[_0x1b2f('0x88')];if(!this['_touchedMarkers']['has'](_0x15e60c))return void this['_touchedMarkers'][_0x1b2f('0xbd')](_0x15e60c,{'range':_0x8a693f[_0x1b2f('0x8e')],'userId':_0x3e3c80});const _0x22898d=this[_0x1b2f('0x72')]['get'](_0x15e60c),_0x7768d5=_0x22898d[_0x1b2f('0xaf')],_0x5f3693=_0x8a693f[_0x1b2f('0x16')];null==_0x7768d5&&null==_0x5f3693||_0x7768d5&&_0x5f3693&&_0x7768d5['isEqual'](_0x5f3693)?this['_touchedMarkers'][_0x1b2f('0xbb')](_0x8a693f[_0x1b2f('0x88')]):_0x22898d[_0x1b2f('0xb5')]=_0x3e3c80;}}function H(_0xfb9b5d){const _0x34e932=new _0x5ab7a7();_0x34e932[_0x1b2f('0x59')]=_0xfb9b5d[_0x1b2f('0x59')];for(const _0x5080a8 of _0xfb9b5d[_0x1b2f('0x3a')]()){const _0x1be289=_0x5080a8[_0x1b2f('0x7a')](!0x0);_0x34e932[_0x1b2f('0x7c')](_0x1be289);}return _0x34e932;}function q(_0x275eea,_0xfd03c1,_0x5e2558){const _0x4f58d5=_0x1b2f('0x5d')==_0x275eea[_0x1b2f('0x9b')]?_0x5e2558[_0x1b2f('0x91')](_0x275eea[_0x1b2f('0x84')],'end'):_0x5e2558[_0x1b2f('0x53')](_0x275eea[_0x1b2f('0x84')]);return _0x4f58d5[_0x1b2f('0x4f')]=_0xfd03c1,_0x4f58d5;}function G(_0x5dff92,_0x1f1b2d,_0x311e92){const _0x52f232='elementStart'==_0x5dff92[_0x1b2f('0x9b')]?_0x311e92[_0x1b2f('0x91')](_0x5dff92[_0x1b2f('0x84')],0x0):_0x311e92['createPositionAfter'](_0x5dff92[_0x1b2f('0x84')]);return _0x52f232['root']=_0x1f1b2d,_0x52f232;}
|