@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231025.0 → 0.0.0-nightly-20231026.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +6 -6
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x41b5=['repository','_setConversion','getAttribute','_getFromVersion','_handleInsertOperation','_findInsertionIndex','Empty\x20document','item','pluginName','revision-start','parent','insertion','fromVersion','_setAttribute','createPositionAfter','data','getWalker','_saveMetaData','addRevisionData','sort','vid_start','authorsIds','isReady','RevisionTracker','createdAt','clear','getLatestVersion','_handleMoveOperation','fromEntries','loadState','RevisionsRepository','_createCurrentRevision','Initial\x20revision','getAttributes','model','source','_makeModelFromViewString','NEGATIVE_INFINITY','_startingRevisionId','_makeRevision','startsWith','merge','ready','reinsert','afterInit','getMovedRangeStart','useFillerType','roots','insertions','childCount','_handleMergeOperation','history','initialData','delete','creatorId','_replaceEditorDataWithRevisionData','_diffRootsAttributes','for','view','add','authors','isAttached','collaboration.channelId','position','from','text','finally','previousPosition','slice','_reset','_loadRevisionData','buildRevisionData','getTime','_generateTape','end','createPositionFromPath','deletion','RealTimeCollaborationClient','nodes','hasContent','_baseRootsAttributes','document','createRevision','length','createPositionAt','deletions','_continueCurrentRevision','getRootNames','_initialRevisionId','getRevisionRootsAttributes','get','_revisionDataBuilder','clone','key','_transformMarkers','_processRootBeforeSave','requires','PendingActions','resolve','some','children','getRevision','move','root','trim','_lastTo','offset','getRange','getIndex','addRevision','_createFromRanges','_lastFrom','_update','_baseIdsRoots','PENDING_ACTION_REVISION_HISTORY','_insertChild','_removePendingAction','attributes','_removeRevisionMarkers','_getState','$text','_fixPosition','path','_authorId','_applyOperations','update','getChildren','_getViewJson','_handleOperation','splitPosition','revision:','_loadState','_handleRootOperation','changeRootAttribute','editing','Users','_cloneOperation','isEnabled','element','dataDowncast','getCurrentRevisionId','_markChanges','revisionHistory.resumeUnsavedRevision','$graveyard','detachRoot','toVersion','_execute','markerToData','_operations','elementEnd','_clone','toView','adapter','_addPendingAction','keys','start','rootsAttributes','rootName','_isPendingUpdate','offsetSize','map','size','sourcePosition','markers','vid_end','conversion','name','config','split','default','_source','attachChange','getData','stickiness','_removeMetaData','_startingVersion','newValue','getUser','reverse','diffData','insert','type','_fixRange','_idsRoots','_bufferedUpdates','_markers','_bufferUpdate','define','newRange','createRange','marker','remove','createPositionBefore','_makeIdsRoot','push','_baseRoots','baseVersion','_createInitialRevision','_fixOperation','getNodeByPath','vid','_getVidAttributeName','_loadedStateData','getOperation','initial','currentRevision','_handleSplitOperation','getRevisionDocumentData','paragraph','has','revision','string','_calculateMetaData','_touchedRoots','values','init','oldRange','elementStart','plugins','_savedMetaData','set','_copyMarkers','isAdd','marked','_handleRootAttributeOperation','addRoot','saveRevision','creator','_getPreviousFrom','tableCell','updateRevisions','toModel','_getBaseVids','_pendingAction','attributesAfter','_touchedMarkers','_touched','_isAttached','userId','locale','editor','find','parse','_diffRoots','getChild','sendBufferedUpdates','version','setSource','_revisionId','filter','_handleMarkerOperation','graveyardPosition','getTransformedByOperation'];(function(_0x59fd9b,_0x41b502){const _0x33476b=function(_0xe2d2f0){while(--_0xe2d2f0){_0x59fd9b['push'](_0x59fd9b['shift']());}};_0x33476b(++_0x41b502);}(_0x41b5,0x1de));const _0x3347=function(_0x59fd9b,_0x41b502){_0x59fd9b=_0x59fd9b-0x0;let _0x33476b=_0x41b5[_0x59fd9b];return _0x33476b;};import{Users as _0x5b0ea9}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x3a2db4,PendingActions as _0x470ea4}from'ckeditor5/src/core';import{logWarning as _0x54d0e2,uid as _0x285280}from'ckeditor5/src/utils';import{Position as _0x35969a,Range as _0x7f1367,Element as _0x4e33b1,DocumentFragment as _0x56135f,ViewText as _0x3f54b5,ViewElement as _0x1d5ee1,ViewContainerElement as _0x3c8d05,ViewAttributeElement as _0x48fec1,ViewEmptyElement as _0x48de5e,ViewRawElement as _0x2f9d8a,ViewUIElement as _0x16654c,ViewDocumentFragment as _0x34afa3}from'ckeditor5/src/engine';import _0x4acb95 from'./revisionsrepository';import{getTranslation as _0x142d06}from'./utils/common-translations';import{cloneDeep as _0x2f8f84,isEqual as _0x5abe5b}from'lodash-es';const B={'c':_0x3c8d05,'a':_0x48fec1,'e':_0x48de5e,'r':_0x2f9d8a,'u':_0x16654c};export default class l extends _0x3a2db4{static get[_0x3347('0x24')](){return _0x3347('0x33');}static get[_0x3347('0x7c')](){return[_0x5b0ea9,_0x4acb95,_0x470ea4];}constructor(_0x2b02ac){super(_0x2b02ac),this[_0x3347('0xb4')]=null,this['currentRevision']=null,this[_0x3347('0x77')]=new H(this[_0x3347('0xf')]),this[_0x3347('0x74')]=this[_0x3347('0xf')]['config']['get']('collaboration.channelId')||_0x3347('0xe8'),this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x46df09=_0x285280();this[_0x3347('0xc6')]={'history':this[_0x3347('0xf')]['model'][_0x3347('0x6d')][_0x3347('0x4f')],'getLatestVersion':()=>Promise[_0x3347('0x7e')](this['editor'][_0x3347('0x3e')][_0x3347('0x6d')][_0x3347('0x15')]),'getCurrentRevisionId':()=>_0x46df09},this['set'](_0x3347('0x32'),!0x1),this[_0x3347('0xf8')](_0x3347('0xa5'),!0x0),this[_0x3347('0xf8')](_0x3347('0xba'),!0x1),this['editor']['config'][_0x3347('0xd7')](_0x3347('0xaa'),!0x0),this[_0x3347('0xf')]['conversion'][_0x3347('0x55')]('upcast')['dataToMarker']({'view':_0x3347('0xee')});}[_0x3347('0xf3')](){this[_0x3347('0x1c')]=this[_0x3347('0xf')][_0x3347('0xf6')]['get'](_0x3347('0x3a')),this[_0x3347('0x1d')](),this[_0x3347('0xf')][_0x3347('0x2b')]['on'](_0x3347('0x46'),()=>{const _0x49cfab=this[_0x3347('0x1c')][_0x3347('0x81')](0x0),_0xd407bc=_0x49cfab&&null===_0x49cfab['creator']?_0x49cfab:null;if(this[_0x3347('0x72')]=!!_0xd407bc&&this[_0x3347('0xf')][_0x3347('0xc3')][_0x3347('0x76')](_0x3347('0xaa')),this['editor'][_0x3347('0xf6')]['has'](_0x3347('0x69'))){const _0x194353=this[_0x3347('0xc6')][_0x3347('0xa8')](),_0x2dac3f=this[_0x3347('0x1c')][_0x3347('0x81')](_0x194353);if(_0x2dac3f)this[_0x3347('0xcb')]=_0x2dac3f[_0x3347('0x28')],this[_0x3347('0x72')]=!0x1;else{const _0x5e32da=this[_0x3347('0xc6')][_0x3347('0x4f')][_0x3347('0xb0')][_0x3347('0x10')](_0x55c14d=>!_0x55c14d['_isInit']),_0x21a1bd=_0x5e32da?_0x5e32da[_0x3347('0xe0')]:this[_0x3347('0xc6')][_0x3347('0x4f')][_0x3347('0x15')];_0x49cfab?(_0x49cfab[_0x3347('0xad')]<_0x21a1bd&&_0x49cfab[_0x3347('0x8c')]({'toVersion':_0x21a1bd}),this[_0x3347('0x72')]?(this[_0x3347('0xc6')][_0x3347('0xa8')]=()=>_0xd407bc['id'],this['_startingVersion']=_0xd407bc['fromVersion']):(this['_startingVersion']=_0x49cfab[_0x3347('0xad')],this[_0x3347('0x72')]=!0x1)):(this[_0x3347('0xcb')]=_0x21a1bd,this[_0x3347('0x72')]=!0x1);}}else _0xd407bc&&(this[_0x3347('0xf')][_0x3347('0x3e')][_0x3347('0x6d')][_0x3347('0x4f')][_0x3347('0x15')]=Math['max'](_0xd407bc['toVersion'],this[_0x3347('0xf')][_0x3347('0x3e')]['document'][_0x3347('0x4f')]['version']),_0xd407bc['fromVersion']===_0xd407bc[_0x3347('0xad')]?(0x0!==_0xd407bc['fromVersion']&&(this['_source'][_0x3347('0xa8')]=()=>_0xd407bc['id']),this[_0x3347('0x72')]=!0x1):this['_continueCurrentRevision']&&(this[_0x3347('0xc6')][_0x3347('0xa8')]=()=>_0xd407bc['id'],this['_startingVersion']=_0xd407bc[_0x3347('0x28')])),this[_0x3347('0x72')]||(this['_startingVersion']=this[_0x3347('0xf')][_0x3347('0x3e')][_0x3347('0x6d')][_0x3347('0x15')]);this[_0x3347('0x77')][_0x3347('0xf3')](this[_0x3347('0xc6')][_0x3347('0x4f')]),this[_0x3347('0xe1')](this[_0x3347('0xcb')]),this[_0x3347('0x3b')](this['_startingVersion']),this[_0x3347('0xb4')]&&this[_0x3347('0x14')]();}),this['bind'](_0x3347('0x32'))['to'](this,_0x3347('0xba'),_0x226b55=>!_0x226b55);}async[_0x3347('0x48')](){if(this[_0x3347('0x1c')]['length']>0x0){const _0x3a3302=this[_0x3347('0x1c')][_0x3347('0x81')](0x0),_0x10a4c7=await this[_0x3347('0xeb')](_0x3a3302),_0x474038=await this[_0x3347('0x75')](_0x3a3302);this[_0x3347('0x53')](_0x10a4c7,_0x474038);}}[_0x3347('0x16')](_0x634f70){this[_0x3347('0xc6')]=_0x634f70;}async[_0x3347('0x99')](){const _0x19df9f=await this[_0x3347('0xc6')][_0x3347('0x36')]();if(_0x19df9f>this[_0x3347('0xe9')]['toVersion']){await this[_0x3347('0x9f')]();const _0x430cc3=this[_0x3347('0x63')]({'revision':this[_0x3347('0xe9')],'to':_0x19df9f});_0x430cc3['authors']=_0x430cc3[_0x3347('0x31')][_0x3347('0xbc')](_0x20901b=>this['editor'][_0x3347('0xf6')]['get'](_0x3347('0xa3'))[_0x3347('0xcd')](_0x20901b)),this[_0x3347('0xe9')]['_update'](_0x430cc3);}}async[_0x3347('0x9f')](){this['_continueCurrentRevision']&&!this[_0x3347('0xe6')]&&(await this['_loadRevisionData'](this[_0x3347('0xe9')]),this[_0x3347('0x77')][_0x3347('0x39')](this[_0x3347('0xe9')]),this[_0x3347('0xe6')]={'fromVersion':this['currentRevision'][_0x3347('0x28')],'authors':this[_0x3347('0xe9')]['authors'][_0x3347('0x60')]()});}async[_0x3347('0x1')](_0x19b5a2={},_0x139e0a=null){const _0x29ea9b=[];await this[_0x3347('0x9f')](),this[_0x3347('0x72')]=!0x1,_0x139e0a>this[_0x3347('0xe9')][_0x3347('0xad')]&&(_0x139e0a=null),null===_0x139e0a&&(_0x139e0a=await this['_source']['getLatestVersion']());const _0x3ad37d=this[_0x3347('0x1f')](_0x139e0a),_0x410b25=this[_0x3347('0x63')]({'from':_0x3ad37d,'to':_0x139e0a});if(this[_0x3347('0xe9')][_0x3347('0xad')]<_0x139e0a){const _0x21a6a8=this[_0x3347('0x63')]({'revision':this[_0x3347('0xe9')],'from':_0x139e0a,'to':_0x139e0a});_0x21a6a8[_0x3347('0x58')]=[],_0x21a6a8[_0x3347('0x31')]=[],_0x21a6a8['id']=this[_0x3347('0xe9')]['id'],this[_0x3347('0xe9')]['_update'](_0x21a6a8,!0x0),delete _0x21a6a8[_0x3347('0x58')],_0x29ea9b[_0x3347('0xde')](_0x21a6a8);}_0x19b5a2['creatorId']=this[_0x3347('0xf')][_0x3347('0xf6')]['get']('Users')['me']['id'],_0x19b5a2['name']=_0x19b5a2['name']||null,_0x19b5a2['id']=_0x19b5a2['id']||_0x285280(),_0x19b5a2={..._0x19b5a2,..._0x410b25};const _0x2d244c=this[_0x3347('0x2e')](_0x19b5a2);_0x29ea9b[_0x3347('0xde')](_0x19b5a2);const _0x3dbdac=this[_0x3347('0x1c')][_0x3347('0x88')](_0x2d244c);if(0x0!==_0x3dbdac){const _0x3f5fe7=this[_0x3347('0x1c')][_0x3347('0x81')](_0x3dbdac-0x1);if(_0x3f5fe7['fromVersion']!==_0x139e0a){const _0x294a54=this['_revisionDataBuilder'][_0x3347('0xc8')](_0x139e0a,_0x3f5fe7['toVersion']),_0xedf33f={'id':_0x3f5fe7['id'],'diffData':_0x294a54['diffData'],'authorsIds':_0x294a54[_0x3347('0x31')],'authors':_0x294a54[_0x3347('0x31')][_0x3347('0xbc')](_0x38f7b7=>this['editor'][_0x3347('0xf6')][_0x3347('0x76')](_0x3347('0xa3'))['getUser'](_0x38f7b7)),'fromVersion':_0x139e0a};_0x3f5fe7===this[_0x3347('0xe9')]&&(_0xedf33f[_0x3347('0x34')]=new Date(_0x19b5a2[_0x3347('0x34')][_0x3347('0x64')]()+0xa)),_0x3f5fe7[_0x3347('0x8c')](_0xedf33f,!0x0),delete _0xedf33f[_0x3347('0x58')],_0x29ea9b[_0x3347('0xde')](_0xedf33f);}}if(this[_0x3347('0xb4')]){for(const _0x20e014 of _0x29ea9b)this[_0x3347('0xd6')](_0x20e014['id'],_0x20e014,!0x0);this[_0x3347('0x14')]();}return _0x2d244c;}['addRevisionData'](_0x285fd1){const _0x5381c1=this[_0x3347('0x1c')][_0x3347('0x6e')](_0x285fd1);return this[_0x3347('0xb4')]&&_0x5381c1['on'](_0x3347('0x8c'),(_0x20a1e3,_0x1a1a22,_0x48cf26)=>{_0x48cf26||(this['_bufferUpdate'](_0x1a1a22['id'],_0x1a1a22,!0x0),this[_0x3347('0x14')]());}),this[_0x3347('0x1c')][_0x3347('0x89')](_0x5381c1,this[_0x3347('0x21')](_0x5381c1)),_0x5381c1;}async[_0x3347('0xeb')](_0x424708){await this[_0x3347('0x62')](_0x424708);const _0x5b3c86={};for(const _0x276378 in _0x424708[_0x3347('0xcf')]){if(_0x424708[_0x3347('0xcf')][_0x276378]['attachChange']&&!_0x424708[_0x3347('0xcf')][_0x276378]['attachChange'][_0x3347('0x59')])continue;const _0x40858e=this[_0x3347('0x92')](JSON[_0x3347('0x11')](_0x424708['diffData'][_0x276378][_0x3347('0x4c')])),_0x472a84=this[_0x3347('0xf')][_0x3347('0xa2')][_0x3347('0x56')][_0x3347('0x6d')],_0x5eb94e=new _0x34afa3(_0x472a84,_0x40858e[_0x3347('0xbc')](_0x4acdc2=>J(_0x4acdc2,this[_0x3347('0xf')])));this['editor']['data']['processor'][_0x3347('0x4a')](_0x3347('0xfb')),_0x5b3c86[_0x276378]=this[_0x3347('0xf')]['data']['processor']['toData'](_0x5eb94e),this[_0x3347('0xf')][_0x3347('0x2b')]['processor'][_0x3347('0x4a')](_0x3347('0xc5'));}return _0x5b3c86;}async[_0x3347('0x75')](_0x50b7b4){await this['_loadRevisionData'](_0x50b7b4);const _0x2b9f14={};for(const _0x2073f2 in _0x50b7b4[_0x3347('0xcf')])_0x50b7b4[_0x3347('0xcf')][_0x2073f2][_0x3347('0xc7')]&&!_0x50b7b4[_0x3347('0xcf')][_0x2073f2]['attachChange']['isAttached']||(_0x2b9f14[_0x2073f2]=_0x50b7b4['diffData'][_0x2073f2][_0x3347('0x9')]||{});return _0x2b9f14;}['sendBufferedUpdates'](){if(0x0===this[_0x3347('0xd4')][_0x3347('0xbd')])return;if(this['_isPendingUpdate'])return;let _0x523a83=Array[_0x3347('0x5c')](this[_0x3347('0xd4')][_0x3347('0xf2')]());this[_0x3347('0xd4')][_0x3347('0x35')]();for(let _0x3d8af6=0x0;_0x3d8af6<_0x523a83[_0x3347('0x6f')];_0x3d8af6++){const _0x185bdd=_0x523a83[_0x3d8af6];let _0x1f8024=!0x1;for(const _0x1abd5f of Object[_0x3347('0xb6')](_0x185bdd))void 0x0===_0x185bdd[_0x1abd5f]?delete _0x185bdd[_0x1abd5f]:'id'!==_0x1abd5f&&(_0x1f8024=!0x0);_0x1f8024||(_0x523a83[_0x3d8af6]=null);}if(_0x523a83=_0x523a83['filter'](_0x20a9d2=>null!==_0x20a9d2),!_0x523a83[_0x3347('0x6f')])return;for(let _0x1b29a8=0x0;_0x1b29a8<_0x523a83[_0x3347('0x6f')];_0x1b29a8++){const _0x2914ab=_0x523a83[_0x1b29a8];void 0x0!==_0x2914ab[_0x3347('0x28')]&&void 0x0===_0x2914ab[_0x3347('0xad')]&&(_0x2914ab['toVersion']=this['repository'][_0x3347('0x81')](_0x2914ab['id'])[_0x3347('0xad')]),void 0x0!==_0x2914ab[_0x3347('0xad')]&&void 0x0===_0x2914ab[_0x3347('0x28')]&&(_0x2914ab[_0x3347('0x28')]=this['repository'][_0x3347('0x81')](_0x2914ab['id'])[_0x3347('0x28')]);}const _0x48f330=this['editor'][_0x3347('0xc3')][_0x3347('0x76')](_0x3347('0x5a'));this[_0x3347('0xba')]=!0x0,this[_0x3347('0xb5')](),this[_0x3347('0xb4')][_0x3347('0x5')](_0x523a83,_0x48f330)[_0x3347('0x5e')](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x49220f=>{if(_0x49220f)for(const _0x35de32 of _0x49220f)this['setRevisionData']({'id':_0x35de32['id'],'createdAt':_0x35de32[_0x3347('0x34')]});this[_0x3347('0x90')](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x571d5d,_0xdd00b0){let _0x398d73=this[_0x3347('0xf')][_0x3347('0xc3')][_0x3347('0x76')](_0x3347('0x50')),_0x44b1c3=this[_0x3347('0xf')][_0x3347('0xc3')][_0x3347('0x76')]('rootsAttributes');if(void 0x0===_0x398d73){_0x398d73={};for(const _0x44efb5 of this[_0x3347('0xf')][_0x3347('0x3e')][_0x3347('0x6d')]['getRootNames']())_0x398d73[_0x44efb5]='';}if(_0x3347('0xef')==typeof _0x398d73&&(_0x398d73={'main':_0x398d73}),void 0x0===_0x44b1c3){_0x44b1c3={};for(const _0x5f1958 of this[_0x3347('0xf')][_0x3347('0x3e')][_0x3347('0x6d')][_0x3347('0x73')]())_0x44b1c3[_0x5f1958]={};}let _0x5664c2=!0x1;const _0x336d47=Object[_0x3347('0xb6')](_0x398d73),_0x5662d4=Object[_0x3347('0xb6')](_0x571d5d);for(const _0x22800c of _0x336d47){if(_0x398d73[_0x22800c]!==_0x571d5d[_0x22800c]&&''!==_0x398d73[_0x22800c][_0x3347('0x84')]()){_0x5664c2=!0x0;break;}if(!_0x5abe5b(_0x44b1c3[_0x22800c],_0xdd00b0[_0x22800c])&&Object[_0x3347('0xb6')](_0x44b1c3[_0x22800c])[_0x3347('0x6f')]>0x0){_0x5664c2=!0x0;break;}}_0x5664c2||(_0x5664c2=_0x5662d4[_0x3347('0x7f')](_0x567536=>!this[_0x3347('0xf')][_0x3347('0x3e')][_0x3347('0x6d')]['getRoot'](_0x567536))),_0x5664c2&&_0x54d0e2('editor-initial-data-replaced-with-revision-data',{'editorData':_0x398d73,'editorRootsAttributes':_0x44b1c3,'revisionData':_0x571d5d,'revisionRootsAttributes':_0xdd00b0}),this[_0x3347('0xf')]['config'][_0x3347('0xf8')](_0x3347('0x50'),_0x571d5d),this[_0x3347('0xf')][_0x3347('0xc3')][_0x3347('0xf8')](_0x3347('0xb8'),_0xdd00b0);}['_addPendingAction'](){if(!this[_0x3347('0x8')]){const _0x14fe44=this[_0x3347('0xf')][_0x3347('0xf6')]['get'](_0x3347('0x7d'));this[_0x3347('0x8')]=_0x14fe44[_0x3347('0x57')](_0x142d06(this[_0x3347('0xf')][_0x3347('0xe')],_0x3347('0x8e')));}}[_0x3347('0x90')](){this['_pendingAction']&&(this['editor']['plugins'][_0x3347('0x76')](_0x3347('0x7d'))[_0x3347('0xdb')](this[_0x3347('0x8')]),this['_pendingAction']=null);}['_findInsertionIndex'](_0x3bb3f8){const _0x1c6e98=this[_0x3347('0x1c')]['getRevisions']();_0x1c6e98[_0x3347('0xce')]();let _0x2b9982=0x0;for(;_0x2b9982<_0x1c6e98[_0x3347('0x6f')];){const _0x4d3648=_0x1c6e98[_0x2b9982];if(_0x4d3648===this[_0x3347('0xe9')]){_0x2b9982++;continue;}if(_0x4d3648['id']===this[_0x3347('0x74')])break;const _0xcbfc90=_0x3bb3f8[_0x3347('0xad')]-_0x4d3648['toVersion']||_0x3bb3f8[_0x3347('0x28')]-_0x4d3648[_0x3347('0x28')];if(_0xcbfc90>0x0)break;if(_0xcbfc90<0x0)_0x2b9982++;else{if(!_0x3bb3f8[_0x3347('0x2')]&&_0x4d3648[_0x3347('0x2')])break;if(_0x4d3648[_0x3347('0x2')]||!_0x3bb3f8[_0x3347('0x2')]){if(_0x3bb3f8['createdAt']>_0x4d3648[_0x3347('0x34')])break;_0x2b9982++;}else _0x2b9982++;}}return _0x2b9982;}['setRevisionData'](_0x5c7439){const _0x141c49=this['repository'][_0x3347('0x81')](_0x5c7439['id']);if(_0x5c7439[_0x3347('0x34')]&&(_0x5c7439[_0x3347('0x34')]=new Date(_0x5c7439[_0x3347('0x34')])),_0x5c7439[_0x3347('0x31')]){const _0x18ab63=this[_0x3347('0xf')][_0x3347('0xf6')][_0x3347('0x76')]('Users');_0x5c7439[_0x3347('0x58')]=_0x5c7439[_0x3347('0x31')][_0x3347('0xbc')](_0x5b4a4b=>_0x18ab63[_0x3347('0xcd')](_0x5b4a4b));}_0x141c49[_0x3347('0x8c')](_0x5c7439,!0x0);}[_0x3347('0x63')]({revision:_0xda0455=null,from:_0x2dd736=null,to:_0x3efdbb=null}){_0x2dd736=null!==_0x2dd736?_0x2dd736:_0xda0455[_0x3347('0x28')],_0x3efdbb=null!==_0x3efdbb?_0x3efdbb:_0xda0455[_0x3347('0xad')];const _0x55c0a8=this[_0x3347('0x77')][_0x3347('0xc8')](_0x2dd736,_0x3efdbb),_0x4370aa={'diffData':_0x55c0a8['diffData'],'authorsIds':_0x55c0a8[_0x3347('0x31')],'fromVersion':_0x2dd736,'toVersion':_0x3efdbb};if(!_0xda0455||_0x3efdbb!==_0xda0455['toVersion']){const _0x3c98c5=_0x3efdbb-0x1,_0x19b262=this[_0x3347('0xc6')][_0x3347('0x4f')][_0x3347('0xe7')](_0x3c98c5);_0x4370aa[_0x3347('0x34')]=_0x19b262&&_0x19b262[_0x3347('0x34')]||new Date();}if(this[_0x3347('0xe6')]&&_0x2dd736===this[_0x3347('0xe6')][_0x3347('0x28')])for(const _0x2746a4 of this[_0x3347('0xe6')][_0x3347('0x58')])_0x4370aa[_0x3347('0x31')]['includes'](_0x2746a4['id'])||_0x4370aa[_0x3347('0x31')]['push'](_0x2746a4['id']);return _0x4370aa;}[_0x3347('0x62')](_0x1985cf){if(!_0x1985cf||_0x1985cf[_0x3347('0xcf')])return Promise[_0x3347('0x7e')]();{const _0x392ba0=this['editor'][_0x3347('0xc3')][_0x3347('0x76')](_0x3347('0x5a'));return this[_0x3347('0xb4')]['getRevision']({'channelId':_0x392ba0,'revisionId':_0x1985cf['id']})['then'](_0x8f4737=>{_0x1985cf[_0x3347('0xcf')]=_0x8f4737['diffData'];});}}[_0x3347('0xd6')](_0x16b01e,_0x28c563,_0x10742f){if(this[_0x3347('0xd4')]['has'](_0x16b01e)){const _0xf77f9a=this[_0x3347('0xd4')][_0x3347('0x76')](_0x16b01e);_0x28c563=_0x10742f?{..._0xf77f9a,..._0x28c563}:{..._0x28c563,..._0xf77f9a};}this[_0x3347('0xd4')][_0x3347('0xf8')](_0x16b01e,_0x28c563);}[_0x3347('0x1f')](_0x4e5f7){const _0xc9bc84=this['repository']['getRevisions']();_0xc9bc84[_0x3347('0xce')](),_0xc9bc84['shift']();const _0xaec426=_0xc9bc84['find'](_0x13db15=>_0x13db15[_0x3347('0xad')]<=_0x4e5f7)[_0x3347('0xad')];return _0xaec426<this['_startingVersion']?this[_0x3347('0xcb')]:_0xaec426;}['_createInitialRevision'](_0x579e3e){const _0x1aa6f1=this['repository'][_0x3347('0x81')](this[_0x3347('0x1c')][_0x3347('0x6f')]-0x1);if(_0x1aa6f1)this[_0x3347('0x74')]=_0x1aa6f1['id'];else{const _0x4f1f94=!this[_0x3347('0xf')][_0x3347('0x3e')][_0x3347('0x6d')][_0x3347('0x4b')]['find'](_0x20aa56=>this[_0x3347('0xf')][_0x3347('0x3e')][_0x3347('0x6b')](_0x20aa56)),_0x4c30fc=this[_0x3347('0xf')][_0x3347('0xf6')]['get'](_0x3347('0xa3'))['me']['id'],_0x4a6977=_0x142d06(this[_0x3347('0xf')]['locale'],_0x4f1f94?_0x3347('0x22'):_0x3347('0x3c'));this[_0x3347('0x43')]({'from':_0x579e3e,'to':_0x579e3e,'id':this[_0x3347('0x74')],'name':_0x4a6977,'creatorId':_0x4c30fc});}}['_createCurrentRevision'](_0x47b5bf){const _0xfcfe6=this[_0x3347('0xc6')][_0x3347('0xa8')]();this[_0x3347('0xe9')]=this[_0x3347('0x1c')][_0x3347('0x81')](_0xfcfe6),this[_0x3347('0xe9')]||(this[_0x3347('0xe9')]=this[_0x3347('0x43')]({'from':_0x47b5bf,'to':_0x47b5bf,'id':_0xfcfe6,'name':'','creatorId':null}));}[_0x3347('0x43')]({name:_0xd34d7c,from:_0x747fe6,to:_0x4d610e,creatorId:_0x4d5e7e,id:_0x245257}){const _0x4956b6=this[_0x3347('0x63')]({'from':_0x747fe6,'to':_0x4d610e});_0x4956b6[_0x3347('0xc2')]=_0xd34d7c,_0x4956b6[_0x3347('0x52')]=_0x4d5e7e,_0x4956b6['id']=_0x245257;const _0x1f4c3a=this['addRevisionData'](_0x4956b6);return this[_0x3347('0xb4')]&&this[_0x3347('0xd6')](_0x4956b6['id'],_0x4956b6,!0x0),_0x1f4c3a;}[_0x3347('0x1d')](){this[_0x3347('0xf')][_0x3347('0xc1')][_0x3347('0x55')](_0x3347('0xa7'))[_0x3347('0xaf')]({'model':'revision'});}[_0x3347('0x92')](_0x284c5d){return(_0x284c5d=_0x284c5d['filter'](_0x49f402=>!_0x49f402[_0x3347('0xc2')]||_0x3347('0x25')!==_0x49f402[_0x3347('0xc2')]&&'revision-end'!==_0x49f402[_0x3347('0xc2')]))['forEach'](_0x3419b5=>{_0x3347('0xef')!=typeof _0x3419b5&&(_0x3419b5[_0x3347('0x80')]=this[_0x3347('0x92')](_0x3419b5[_0x3347('0x80')]),_0x3419b5[_0x3347('0x91')]=_0x3419b5['attributes'][_0x3347('0x18')](_0x53eb7e=>!_0x53eb7e[0x0][_0x3347('0x44')]('data-revision-')));}),_0x284c5d;}}function J(_0x3199dd,_0x1f1caa){const _0x2fefe1=_0x1f1caa[_0x3347('0xa2')]['view']['document'];if(_0x3347('0xef')==typeof _0x3199dd)return new _0x3f54b5(_0x2fefe1,_0x3199dd);{const _0x4a7068=_0x3199dd[_0x3347('0x80')][_0x3347('0xbc')](_0x2a8fbb=>J(_0x2a8fbb,_0x1f1caa));return new(B[_0x3199dd['type']]||_0x1d5ee1)(_0x2fefe1,_0x3199dd[_0x3347('0xc2')],_0x3199dd[_0x3347('0x91')],_0x4a7068);}}class H{constructor(_0x487e92){this['editor']=_0x487e92,this[_0x3347('0xf7')]=new Map(),this[_0x3347('0x8b')]=-0x1,this[_0x3347('0x85')]=-0x1,this[_0x3347('0xd5')]=new Map(),this['_diffRoots']=new Map(),this[_0x3347('0x54')]=new Map(),this[_0x3347('0xdf')]=new Map(),this['_baseRootsAttributes']=new Map(),this['_idsRoots']=new Map(),this[_0x3347('0x8d')]=new Map(),this[_0x3347('0xb')]=new Map(),this[_0x3347('0xa')]=new Map(),this[_0x3347('0xf1')]=new Map(),this[_0x3347('0x17')]=0x1;}['init'](_0x4e83e2){this[_0x3347('0x3f')]=_0x4e83e2;const _0x17300e=new Map(),_0x3d0dda=new Map(),_0x19ee0b=this[_0x3347('0xf')][_0x3347('0x3e')][_0x3347('0x6d')]['roots'][_0x3347('0xbc')](_0x414366=>_0x414366[_0x3347('0xb9')]);for(const _0x3fd19d of _0x19ee0b){const _0x44df88=this[_0x3347('0xf')]['model'][_0x3347('0x6d')]['getRoot'](_0x3fd19d),_0x55bf71=q(_0x44df88);_0x17300e[_0x3347('0xf8')](_0x3fd19d,_0x55bf71),_0x3d0dda[_0x3347('0xf8')](_0x3fd19d,Object[_0x3347('0x38')](_0x44df88[_0x3347('0x3d')]()));}const _0x5ca9ab=Array[_0x3347('0x5c')](this[_0x3347('0xf')]['model'][_0x3347('0xbf')])['map'](_0x2b4f51=>[_0x2b4f51[_0x3347('0xc2')],_0x2b4f51[_0x3347('0x87')]()]),_0x598c1e=this[_0x3347('0x3f')][_0x3347('0x15')];this[_0x3347('0x2d')](_0x598c1e,_0x17300e,_0x5ca9ab,_0x3d0dda),this['_startingRevisionId']=this[_0x3347('0x17')];const _0x486621=new Map(),_0x1ae5a6=new Map();for(const _0x3f0e67 of _0x19ee0b){const _0x442ee5=G(_0x3f0e67);_0x486621[_0x3347('0xf8')](_0x3f0e67,_0x442ee5),_0x1ae5a6['set'](_0x3f0e67,{});}this[_0x3347('0x2d')](Number['NEGATIVE_INFINITY'],_0x486621,[],_0x1ae5a6);}[_0x3347('0xc8')](_0x4890c4,_0x32fe85){if(this[_0x3347('0x8b')]===_0x4890c4&&this[_0x3347('0x85')]<=_0x32fe85)this[_0x3347('0xf7')][_0x3347('0xbd')]>0x1&&this[_0x3347('0xca')](this['_lastTo']),this[_0x3347('0x98')](this[_0x3347('0x85')],_0x32fe85,!0x0);else{if(!this[_0x3347('0xf7')][_0x3347('0xed')](_0x4890c4)){const _0xfb270b=this[_0x3347('0x3')](_0x4890c4);this[_0x3347('0xf0')](_0xfb270b,_0x4890c4,!0x1);}this[_0x3347('0xf0')](_0x4890c4,_0x32fe85,!0x0);}return this['_lastFrom']=_0x4890c4,this[_0x3347('0x85')]=_0x32fe85,this[_0x3347('0x93')]();}[_0x3347('0x39')](_0x1e3816){this['_reset'](),this[_0x3347('0x8b')]=_0x1e3816[_0x3347('0x28')],this[_0x3347('0x85')]=_0x1e3816[_0x3347('0xad')];for(const _0x110448 in _0x1e3816[_0x3347('0xcf')]){const _0x4678ba=_0x1e3816[_0x3347('0xcf')][_0x110448][_0x3347('0xc7')],_0x2d124e=_0x2f8f84(_0x1e3816['diffData'][_0x110448]['attributesBefore'])||{},_0x2eafdc=this[_0x3347('0x40')](_0x1e3816['diffData'][_0x110448][_0x3347('0x71')]);_0x2eafdc[_0x3347('0xb9')]=_0x110448,_0x2eafdc[_0x3347('0xc')]=!_0x4678ba||!_0x4678ba[_0x3347('0x59')],_0x2eafdc[_0x3347('0x59')]=()=>_0x2eafdc[_0x3347('0xc')],this[_0x3347('0xdf')][_0x3347('0xf8')](_0x110448,_0x2eafdc),this[_0x3347('0x6c')][_0x3347('0xf8')](_0x110448,_0x2d124e),_0x4678ba&&this[_0x3347('0xf1')]['set'](_0x110448,_0x4678ba);const _0x4e6c7c=this[_0x3347('0xdd')](_0x2eafdc);this[_0x3347('0x8d')][_0x3347('0xf8')](_0x110448,_0x4e6c7c);for(const [_0x1fefa7,_0x4f1897]of _0x2eafdc['markers']){if(!_0x1fefa7[_0x3347('0x44')]('revision:'))continue;const _0x45f940=_0x1fefa7[_0x3347('0xc4')](':')[0x2];for(const _0x119d33 of _0x4f1897[_0x3347('0x2c')]({'singleCharacters':!0x0})){const _0x3a32a8=this[_0x3347('0xe5')](_0x119d33),_0x224917=_0x3347('0xb1')==_0x119d33['type']?_0x119d33[_0x3347('0x5f')][_0x3347('0x96')][_0x3347('0x60')](0x0,-0x1):_0x119d33[_0x3347('0x5f')][_0x3347('0x96')],_0x3306ec=_0x4e6c7c['getNodeByPath'](_0x224917)[_0x3347('0x1e')](_0x3a32a8);this[_0x3347('0xb')]['set'](_0x3306ec,{'userId':_0x45f940});}}}this['_startingRevisionId']=this[_0x3347('0x17')];const _0xe317e8=[...Array(this['_revisionId'])[_0x3347('0xb6')]()][_0x3347('0x60')](0x1)[_0x3347('0x18')](_0x5339a7=>!this[_0x3347('0xb')]['has'](_0x5339a7));let _0x5762dd=0x0;const _0x543af3=new Map();for(const _0x55b9b7 in _0x1e3816[_0x3347('0xcf')]){const _0x269ffb=_0x1e3816[_0x3347('0xcf')][_0x55b9b7][_0x3347('0xc7')],_0x40eeca=_0x2f8f84(_0x1e3816[_0x3347('0xcf')][_0x55b9b7][_0x3347('0x9')])||{},_0x472a42=this['_makeModelFromViewString'](_0x1e3816['diffData'][_0x55b9b7][_0x3347('0x4c')]);_0x472a42[_0x3347('0xb9')]=_0x55b9b7,_0x472a42['_isAttached']=!_0x269ffb||_0x269ffb[_0x3347('0x59')],_0x472a42[_0x3347('0x59')]=()=>_0x472a42[_0x3347('0xc')],this[_0x3347('0x12')]['set'](_0x55b9b7,_0x472a42),this[_0x3347('0x54')][_0x3347('0xf8')](_0x55b9b7,_0x40eeca);const _0x4c2bb5=this['_makeIdsRoot'](_0x472a42,Number[_0x3347('0x41')]);this[_0x3347('0xd3')]['set'](_0x55b9b7,_0x4c2bb5),_0x543af3[_0x3347('0xf8')](_0x55b9b7,_0x472a42[_0x3347('0x59')]()?_0x40eeca:{});for(const [_0x354ec4,_0x4a9c2f]of _0x472a42[_0x3347('0xbf')]){if(!_0x354ec4[_0x3347('0x44')]('revision:'))continue;const _0x5b9369=_0x354ec4[_0x3347('0xc4')](':')[0x2];for(const _0x5f2bdc of _0x4a9c2f[_0x3347('0x2c')]({'singleCharacters':!0x0})){const _0x546a15=this[_0x3347('0xe5')](_0x5f2bdc),_0x16cae9=this['_revisionId']++,_0xca0385=_0x3347('0xb1')==_0x5f2bdc['type']?_0x5f2bdc['previousPosition']['path'][_0x3347('0x60')](0x0,-0x1):_0x5f2bdc[_0x3347('0x5f')][_0x3347('0x96')];_0x4c2bb5[_0x3347('0xe3')](_0xca0385)[_0x3347('0x29')](_0x546a15,_0x16cae9),this[_0x3347('0xb')]['set'](_0x16cae9,{'userId':_0x5b9369});}}for(const _0x3e3af1 of this[_0x3347('0xf')]['model']['createRangeIn'](_0x472a42)[_0x3347('0x2c')]({'singleCharacters':!0x0})){const _0x2538e7=this[_0x3347('0xe5')](_0x3e3af1),_0xbc63a8='elementEnd'==_0x3e3af1[_0x3347('0xd1')]?_0x3e3af1[_0x3347('0x5f')][_0x3347('0x96')][_0x3347('0x60')](0x0,-0x1):_0x3e3af1['previousPosition'][_0x3347('0x96')],_0x155895=_0x4c2bb5[_0x3347('0xe3')](_0xbc63a8);_0x155895[_0x3347('0x1e')](_0x2538e7)>0x0||_0x155895[_0x3347('0x29')](_0x2538e7,_0xe317e8[_0x5762dd++]);}for(const [_0x495a3b,_0x364227]of _0x472a42[_0x3347('0xbf')])_0x495a3b[_0x3347('0x44')](_0x3347('0x9e'))||this[_0x3347('0xd5')][_0x3347('0xf8')](_0x495a3b,_0x364227);}const _0x34b4e1=G(_0x3347('0xab'));this[_0x3347('0xdf')][_0x3347('0xf8')](_0x3347('0xab'),_0x34b4e1),this[_0x3347('0x8d')][_0x3347('0xf8')](_0x3347('0xab'),this[_0x3347('0xdd')](_0x34b4e1,0x1));const _0x564a75=G(_0x3347('0xab'));this[_0x3347('0x12')][_0x3347('0xf8')](_0x3347('0xab'),_0x564a75),this[_0x3347('0xd3')][_0x3347('0xf8')](_0x3347('0xab'),this['_makeIdsRoot'](_0x564a75,0x1));const _0x57540d=Array[_0x3347('0x5c')](this[_0x3347('0x12')])['map'](([_0x37dab4,_0x8c86f4])=>[_0x37dab4,q(_0x8c86f4)]);this[_0x3347('0x2d')](this[_0x3347('0x85')],_0x57540d,this[_0x3347('0xd5')],_0x543af3);}[_0x3347('0x40')](_0x4442e1){const _0x4509e9=JSON['parse'](_0x4442e1),_0x311c76=this['editor'][_0x3347('0xa2')][_0x3347('0x56')]['document'],_0x248364=new _0x34afa3(_0x311c76,_0x4509e9[_0x3347('0xbc')](_0x475aa6=>J(_0x475aa6,this[_0x3347('0xf')])));return this[_0x3347('0xf')][_0x3347('0x2b')][_0x3347('0x6')](_0x248364);}[_0x3347('0x2d')](_0x14c8cb,_0x4ca190,_0x5b5234,_0x1624eb){const _0x49329e=new Map(_0x4ca190),_0x543af0=new Map(_0x2f8f84(_0x1624eb)),_0x5ecb06=new Map();for(const [_0x59217c,_0x2d7a9e]of _0x5b5234)_0x5ecb06[_0x3347('0xf8')](_0x59217c,{'start':_0x2d7a9e[_0x3347('0xb7')]['clone'](),'end':_0x2d7a9e[_0x3347('0x66')][_0x3347('0x78')](),'rootName':_0x2d7a9e[_0x3347('0x83')][_0x3347('0xb9')]});this['_savedMetaData'][_0x3347('0xf8')](_0x14c8cb,{'roots':_0x49329e,'markers':_0x5ecb06,'rootsAttributes':_0x543af0});}[_0x3347('0xca')](_0x1abb56){this[_0x3347('0xf7')][_0x3347('0x51')](_0x1abb56);}['reInit'](){this[_0x3347('0x61')](),this[_0x3347('0x8b')]=-0x1,this['_lastTo']=-0x1,this['_savedMetaData'][_0x3347('0x35')](),this[_0x3347('0xf3')](this[_0x3347('0x3f')]);}[_0x3347('0x61')](){this[_0x3347('0xb')][_0x3347('0x35')](),this[_0x3347('0xa')][_0x3347('0x35')](),this[_0x3347('0xf1')]['clear'](),this[_0x3347('0x12')][_0x3347('0x35')](),this[_0x3347('0x54')][_0x3347('0x35')](),this[_0x3347('0xdf')][_0x3347('0x35')](),this[_0x3347('0x6c')]['clear'](),this[_0x3347('0xd3')][_0x3347('0x35')](),this['_baseIdsRoots']['clear'](),this[_0x3347('0xd5')][_0x3347('0x35')](),this[_0x3347('0x17')]=0x1,this[_0x3347('0x42')]=this[_0x3347('0x17')];}[_0x3347('0xdd')](_0x275d88,_0x568868=null){let _0x44636d=null;_0x275d88['is']('documentFragment')||(_0x44636d=new _0x4e33b1(_0x275d88[_0x3347('0xc2')],{'vid_start':null===_0x568868?this[_0x3347('0x17')]++:_0x568868++}));const _0x12004d=[];for(const _0x4fc1bb of _0x275d88[_0x3347('0x9a')]())if(_0x4fc1bb['is'](_0x3347('0xa6'))){_0x12004d['push'](this[_0x3347('0xdd')](_0x4fc1bb,_0x568868));const _0x538b18=_0x12004d[_0x12004d[_0x3347('0x6f')]-0x1];null!==_0x568868&&(_0x568868=_0x538b18['is'](_0x3347('0xa6'),'$text')?_0x538b18[_0x3347('0x1e')](_0x3347('0xe4'))+0x1:_0x538b18['getAttribute'](_0x3347('0xc0'))+0x1);}else for(let _0x5ef6dc=0x0;_0x5ef6dc<_0x4fc1bb['offsetSize'];_0x5ef6dc++)_0x12004d['push'](new _0x4e33b1(_0x3347('0x94'),{'vid':null===_0x568868?this[_0x3347('0x17')]++:_0x568868++}));if(_0x275d88['is']('documentFragment')){const _0x19fcd0=G(_0x275d88[_0x3347('0xb9')]);return _0x19fcd0[_0x3347('0x8f')](0x0,_0x12004d),_0x19fcd0;}return _0x44636d[_0x3347('0x29')]('vid_end',null===_0x568868?this['_revisionId']++:_0x568868++),_0x44636d[_0x3347('0x8f')](0x0,_0x12004d),_0x44636d;}['_calculateMetaData'](_0x37b350,_0x48cd95,_0x382dfc){this[_0x3347('0x61')]();const {roots:_0x4f0ff2,markers:_0x197a37,rootsAttributes:_0x255dc0}=this[_0x3347('0xf7')][_0x3347('0x76')](_0x37b350);this[_0x3347('0xdf')]=new Map(_0x4f0ff2),this[_0x3347('0x6c')]=new Map(_0x2f8f84(_0x255dc0));for(const [_0x2c13ae,_0x2e263e]of this[_0x3347('0xdf')])if(_0x3347('0xab')!==_0x2c13ae&&(this[_0x3347('0x12')][_0x3347('0xf8')](_0x2c13ae,q(_0x2e263e)),this['_diffRootsAttributes']=new Map(_0x2f8f84(_0x255dc0)),_0x382dfc)){const _0x30c737=this[_0x3347('0x17')];this[_0x3347('0xd3')]['set'](_0x2c13ae,this[_0x3347('0xdd')](_0x2e263e)),this[_0x3347('0x8d')][_0x3347('0xf8')](_0x2c13ae,this['_makeIdsRoot'](_0x2e263e,_0x30c737));}this['_startingRevisionId']=this[_0x3347('0x17')],this[_0x3347('0x12')]['set'](_0x3347('0xab'),q(this[_0x3347('0xdf')][_0x3347('0x76')](_0x3347('0xab')))),_0x382dfc&&this['_idsRoots'][_0x3347('0xf8')](_0x3347('0xab'),this[_0x3347('0xdd')](this['_baseRoots']['get'](_0x3347('0xab'))));for(const [_0x5d2665,_0x1bf35e]of _0x197a37){const _0x14d12c=this[_0x3347('0xdf')]['get'](_0x1bf35e['rootName']),_0xc1a650=this['_diffRoots'][_0x3347('0x76')](_0x1bf35e['rootName']),_0x2d64c9=new _0x7f1367(this[_0x3347('0x95')](_0x1bf35e['start'],_0x14d12c),this[_0x3347('0x95')](_0x1bf35e[_0x3347('0x66')],_0x14d12c)),_0x2f1448=this['_fixRange'](_0x2d64c9,_0xc1a650);_0x14d12c[_0x3347('0xbf')][_0x3347('0xf8')](_0x5d2665,_0x2d64c9),this[_0x3347('0xd5')][_0x3347('0xf8')](_0x5d2665,_0x2f1448);}this[_0x3347('0x98')](_0x37b350,_0x48cd95,_0x382dfc);}[_0x3347('0x98')](_0x23a1c2,_0x2a278f,_0x4c4e32){for(const _0x5bf5a1 of this[_0x3347('0x3f')]['getOperations'](_0x23a1c2,_0x2a278f))this[_0x3347('0x9c')](_0x5bf5a1,_0x4c4e32);for(const _0x1681f3 of this[_0x3347('0x12')][_0x3347('0xf2')]())_0x1681f3[_0x3347('0xbf')][_0x3347('0x35')]();for(const [_0xb8f7db,_0x38dad7]of this['_markers']){this[_0x3347('0x12')][_0x3347('0x76')](_0x38dad7[_0x3347('0x83')][_0x3347('0xb9')])[_0x3347('0xbf')][_0x3347('0xf8')](_0xb8f7db,_0x38dad7[_0x3347('0x78')]());}const _0x375425=new Map(),_0x4bf651=new Map();for(const [_0x4bf252,_0x35625a]of this[_0x3347('0x12')])_0x375425[_0x3347('0xf8')](_0x4bf252,q(_0x35625a)),_0x4bf651['set'](_0x4bf252,this['_diffRootsAttributes'][_0x3347('0x76')](_0x4bf252));this['_saveMetaData'](_0x2a278f,_0x375425,this[_0x3347('0xd5')],_0x4bf651);}['_getPreviousFrom'](_0xe8c188){const _0x2314fd=Array[_0x3347('0x5c')](this[_0x3347('0xf7')][_0x3347('0xb6')]());_0x2314fd[_0x3347('0x2f')]((_0x36932e,_0x3b14ca)=>_0x36932e-_0x3b14ca),_0x2314fd[_0x3347('0xce')]();for(const _0x568e2a of _0x2314fd)if(_0x568e2a<_0xe8c188)return _0x568e2a;return Number[_0x3347('0x41')];}['_copyMarkers'](_0x1ddeb6,_0x34976d){const _0x53ded0=Array[_0x3347('0x5c')](_0x34976d['markers'])[_0x3347('0xbc')](([_0x19b7e0,_0x207c2d])=>[_0x19b7e0,this[_0x3347('0xd2')](_0x207c2d,_0x1ddeb6)]);_0x1ddeb6[_0x3347('0xbf')]=new Map(_0x53ded0);}[_0x3347('0x7a')](_0x559b38){for(const _0x72e05b of this['_markers']['values']()){const _0x22a6fb=_0x72e05b[_0x3347('0x1b')](_0x559b38),_0x1d7514=_0x7f1367[_0x3347('0x8a')](_0x22a6fb);_0x72e05b[_0x3347('0xb7')]=_0x1d7514['start'],_0x72e05b[_0x3347('0x66')]=_0x1d7514['end'];}}[_0x3347('0x9c')](_0x3f4aca,_0x35f4a6){if(_0x3347('0x0')==_0x3f4aca[_0x3347('0xd1')]||_0x3347('0xac')==_0x3f4aca[_0x3347('0xd1')])return void this['_handleRootOperation'](_0x3f4aca,_0x35f4a6);if('insert'==_0x3f4aca[_0x3347('0xd1')]){const _0x21bde1=_0x3f4aca['position'][_0x3347('0x83')]['rootName'];this[_0x3347('0x12')][_0x3347('0xed')](_0x21bde1)||(this[_0x3347('0x12')][_0x3347('0xf8')](_0x21bde1,G(_0x21bde1,!0x0)),this[_0x3347('0x54')][_0x3347('0xf8')](_0x21bde1,{}),_0x35f4a6&&this[_0x3347('0xd3')]['set'](_0x21bde1,G(_0x21bde1,!0x0)));}else{if('addRootAttribute'==_0x3f4aca[_0x3347('0xd1')]||'removeRootAttribute'==_0x3f4aca['type']||_0x3347('0xa1')==_0x3f4aca[_0x3347('0xd1')])return void this[_0x3347('0xfc')](_0x3f4aca);}const _0x4eff92=this['_cloneOperation'](_0x3f4aca,this['_diffRoots']);if(_0x3347('0xda')!==_0x3f4aca[_0x3347('0xd1')]&&(_0x4eff92[_0x3347('0xae')](),this[_0x3347('0x7a')](_0x4eff92)),_0x35f4a6)switch(_0x4eff92[_0x3347('0xd1')]){case _0x3347('0xd0'):this[_0x3347('0x20')](_0x3f4aca);break;case _0x3347('0x82'):case _0x3347('0xdb'):case _0x3347('0x47'):this['_handleMoveOperation'](_0x3f4aca);break;case _0x3347('0x45'):this[_0x3347('0x4e')](_0x3f4aca);break;case _0x3347('0xc4'):this[_0x3347('0xea')](_0x3f4aca);break;case _0x3347('0xda'):this[_0x3347('0x19')](_0x3f4aca);}}[_0x3347('0xa4')](_0x286296,_0xc7709e){const _0x29f1e0=_0x286296[_0x3347('0x78')]();return _0x29f1e0[_0x3347('0x97')]=_0x286296[_0x3347('0x97')],this[_0x3347('0xe2')](_0x29f1e0,_0xc7709e),_0x29f1e0;}[_0x3347('0x7')](_0x252e6c){return _0x252e6c[_0x3347('0xbc')](_0x441590=>{const _0x7dfc8e=this[_0x3347('0xe5')](_0x441590);return Number(_0x441590[_0x3347('0x23')][_0x3347('0x1e')](_0x7dfc8e));});}[_0x3347('0x65')](_0x206a4a,_0x39b988){if(_0x206a4a['is'](_0x3347('0xa6'),'$text'))_0x39b988['push']({'item':_0x206a4a,'type':_0x3347('0x5d')});else{_0x206a4a['is'](_0x3347('0xa6'))&&_0x39b988[_0x3347('0xde')]({'item':_0x206a4a,'type':_0x3347('0xf5')});for(const _0x2c39e9 of _0x206a4a[_0x3347('0x9a')]())this[_0x3347('0x65')](_0x2c39e9,_0x39b988);_0x206a4a['is'](_0x3347('0xa6'))&&_0x39b988[_0x3347('0xde')]({'item':_0x206a4a,'type':_0x3347('0xb1')});}return _0x39b988;}[_0x3347('0x93')](){const _0x522e93=new Map(this[_0x3347('0xb')]),_0x3c57fe=new Map(_0x522e93),_0x46c5f2=new Map(),_0x47a4c7={'insertions':{},'deletions':{}},_0x19cf2d={'insertions':{},'deletions':{}},_0x2be429=new Map(),_0x2a96a9=new Set([...this['_baseRoots'][_0x3347('0xb6')](),...this[_0x3347('0x12')][_0x3347('0xb6')]()]);_0x2a96a9[_0x3347('0x51')](_0x3347('0xab'));for(const _0x1bc4e6 of _0x2a96a9){const _0x5ad079=this[_0x3347('0x12')][_0x3347('0x76')](_0x1bc4e6)||G(_0x1bc4e6,!0x1),_0x363bca=this[_0x3347('0xdf')][_0x3347('0x76')](_0x1bc4e6)||G(_0x1bc4e6,!0x1);_0x5ad079[_0x3347('0x59')]()||_0x363bca[_0x3347('0x59')]()?(_0x47a4c7[_0x3347('0x4c')][_0x1bc4e6]=q(_0x5ad079),_0x47a4c7['deletions'][_0x1bc4e6]=q(_0x363bca),this[_0x3347('0xf9')](_0x47a4c7[_0x3347('0x71')][_0x1bc4e6],_0x363bca),this['_copyMarkers'](_0x47a4c7[_0x3347('0x4c')][_0x1bc4e6],_0x5ad079),_0x19cf2d[_0x3347('0x4c')][_0x1bc4e6]=this[_0x3347('0x65')](this['_idsRoots']['get'](_0x1bc4e6),[]),_0x19cf2d['deletions'][_0x1bc4e6]=this[_0x3347('0x65')](this['_baseIdsRoots']['get'](_0x1bc4e6)||G(_0x1bc4e6,!0x1),[])):_0x2a96a9['delete'](_0x1bc4e6);}for(const _0x1c4004 of _0x2a96a9){const _0x445c9b=_0x19cf2d[_0x3347('0x4c')][_0x1c4004];for(const _0xc2a224 of _0x445c9b){const _0x24a008=this[_0x3347('0xe5')](_0xc2a224),_0x34763e=_0xc2a224[_0x3347('0x23')][_0x3347('0x1e')](_0x24a008);_0x3c57fe[_0x3347('0x51')](_0x34763e),_0x34763e>=this[_0x3347('0x42')]&&_0x46c5f2[_0x3347('0xf8')](_0x34763e,_0x522e93['get'](_0x34763e));}}for(const _0x1a5b02 of _0x2a96a9){const _0x3d512e=_0x19cf2d[_0x3347('0x4c')][_0x1a5b02],_0x29c35a=this['_getBaseVids'](_0x19cf2d[_0x3347('0x71')][_0x1a5b02]);let _0xc03dad=0x0;for(const _0x53617f of _0x3d512e){const _0x153c63=this[_0x3347('0xe5')](_0x53617f),_0x184d3b=_0x53617f['item'][_0x3347('0x1e')](_0x153c63);if(!_0x46c5f2[_0x3347('0xed')](_0x184d3b)&&!_0x2be429[_0x3347('0xed')](_0x184d3b)){if(_0x3c57fe['has'](_0x184d3b))_0xc03dad++;else{if(_0x184d3b!=_0x29c35a[_0xc03dad]){const _0x33b686=_0x522e93['get'](_0x184d3b)||_0x522e93[_0x3347('0x76')](_0x29c35a[_0xc03dad]);for(;_0x184d3b!=_0x29c35a[_0xc03dad];)_0x3c57fe[_0x3347('0xed')](_0x29c35a[_0xc03dad])||(_0x2be429['set'](_0x29c35a[_0xc03dad],_0x33b686),_0x522e93[_0x3347('0xf8')](_0x29c35a[_0xc03dad],_0x33b686)),_0xc03dad++;}_0xc03dad++;}}}}for(const _0x22edb6 of _0x2a96a9){const _0x19f784=_0x19cf2d['insertions'][_0x22edb6];for(const _0x34481b of _0x19f784){const _0x1a5377=this[_0x3347('0xe5')](_0x34481b),_0x2f186c=_0x34481b[_0x3347('0x23')][_0x3347('0x1e')](_0x1a5377);if(_0x2be429[_0x3347('0xed')](_0x2f186c)){const _0x402bee=_0x2be429[_0x3347('0x76')](_0x2f186c);_0x3c57fe[_0x3347('0xed')](_0x2f186c)||_0x3c57fe[_0x3347('0xf8')](_0x2f186c,{..._0x402bee}),_0x46c5f2['set'](_0x2f186c,{..._0x402bee});}}}for(const _0x248488 of _0x3c57fe[_0x3347('0xb6')]())_0x248488>=this[_0x3347('0x42')]&&_0x3c57fe[_0x3347('0x51')](_0x248488);const _0x243297=new Map();for(const _0xcd96b4 of _0x2a96a9){let _0x55943e=_0x19cf2d['insertions'][_0xcd96b4];for(const _0x3c86a2 of _0x55943e)if(_0x3c86a2[_0x3347('0x23')]['is']('element',_0x3347('0x4'))){const _0x33e0a9=this['_getVidAttributeName'](_0x3c86a2),_0x3215a8=_0x3c86a2['item'][_0x3347('0x1e')](_0x33e0a9);if(_0x46c5f2['has'](_0x3215a8)){const _0x5cc3a2=_0x3c86a2[_0x3347('0x23')]['parent']['parent'][_0x3347('0x1e')](_0x3347('0x30')),_0x57244e=_0x243297['get'](_0x5cc3a2)||new Set();_0x57244e[_0x3347('0x57')](_0x46c5f2[_0x3347('0x76')](_0x3215a8)[_0x3347('0xd')]),_0x243297[_0x3347('0xf8')](_0x5cc3a2,_0x57244e);}}_0x55943e=_0x19cf2d[_0x3347('0x71')][_0xcd96b4];for(const _0xc2d0c1 of _0x55943e)if(_0xc2d0c1[_0x3347('0x23')]['is'](_0x3347('0xa6'),_0x3347('0x4'))){const _0x29bae7=this['_getVidAttributeName'](_0xc2d0c1),_0x3c7fae=_0xc2d0c1[_0x3347('0x23')][_0x3347('0x1e')](_0x29bae7);if(_0x3c57fe[_0x3347('0xed')](_0x3c7fae)){const _0xe96a19=_0xc2d0c1[_0x3347('0x23')]['parent'][_0x3347('0x26')]['getAttribute'](_0x3347('0x30')),_0x4d1642=_0x243297[_0x3347('0x76')](_0xe96a19)||new Set();_0x4d1642['add'](_0x3c57fe[_0x3347('0x76')](_0x3c7fae)['userId']),_0x243297['set'](_0xe96a19,_0x4d1642);}}for(const _0x5b332e of _0x243297[_0x3347('0xb6')]())(_0x46c5f2[_0x3347('0xed')](_0x5b332e)||_0x3c57fe['has'](_0x5b332e))&&_0x243297[_0x3347('0x51')](_0x5b332e);}for(const _0x400f09 of _0x2a96a9){const _0x38f93=_0x19cf2d[_0x3347('0x4c')][_0x400f09];let _0x4c466f=null,_0x57e552=null;for(const _0x2fd0b6 of _0x38f93){const _0x2a7547=this['_getVidAttributeName'](_0x2fd0b6),_0x297988=_0x2fd0b6[_0x3347('0x23')][_0x3347('0x1e')](_0x2a7547),_0x37429d=_0x243297[_0x3347('0x76')](_0x297988);_0x37429d&&'elementStart'==_0x2fd0b6[_0x3347('0xd1')]&&(_0x4c466f=Array['from'](_0x37429d)[0x0],_0x57e552=_0x2fd0b6[_0x3347('0x23')][_0x3347('0x1e')](_0x3347('0xc0'))),_0x4c466f&&(_0x3c57fe[_0x3347('0xf8')](_0x297988,{'userId':_0x4c466f}),_0x46c5f2[_0x3347('0xf8')](_0x297988,{'userId':_0x4c466f})),_0x297988==_0x57e552&&(_0x4c466f=null,_0x57e552=null);}}const _0x33ff4f={},_0x948e06=new Set();for(const _0x3bebe7 of _0x2a96a9){const _0x32f18e=_0x47a4c7[_0x3347('0x71')][_0x3bebe7],_0xc4aa31=_0x47a4c7[_0x3347('0x4c')][_0x3bebe7];for(const {userId:_0x4e1a00}of this[_0x3347('0xa')][_0x3347('0xf2')]())null!==_0x4e1a00&&_0x948e06[_0x3347('0x57')](_0x4e1a00);for(const {userId:_0xc3c457}of this[_0x3347('0xf1')][_0x3347('0xf2')]())null!==_0xc3c457&&_0x948e06[_0x3347('0x57')](_0xc3c457);this['_markChanges'](_0xc4aa31,_0x19cf2d[_0x3347('0x4c')][_0x3bebe7],_0x46c5f2,_0x3347('0x27'),_0x948e06),this[_0x3347('0xa9')](_0x32f18e,_0x19cf2d[_0x3347('0x71')][_0x3bebe7],_0x3c57fe,_0x3347('0x68'),_0x948e06),_0x33ff4f[_0x3bebe7]={'insertions':this['_prepareViewToSave'](_0xc4aa31),'deletions':this['_prepareViewToSave'](_0x32f18e),'attachChange':this[_0x3347('0xf1')][_0x3347('0x76')](_0x3bebe7)||null,'attributesBefore':_0x2f8f84(this['_baseRootsAttributes']['get'](_0x3bebe7))||{},'attributesAfter':_0x2f8f84(this[_0x3347('0x54')][_0x3347('0x76')](_0x3bebe7))};}return{'diffData':_0x33ff4f,'authorsIds':Array[_0x3347('0x5c')](_0x948e06)};}[_0x3347('0x7b')](_0x3db14b){for(const [,_0x494891]of _0x3db14b['markers']){const _0xa059df=_0x494891[_0x3347('0xb7')]['getAncestors']()[_0x3347('0x18')](_0x5da19d=>_0x3347('0x4')==_0x5da19d[_0x3347('0xc2')]);for(const _0x1ce72d of _0xa059df)0x1==_0x1ce72d[_0x3347('0x4d')]&&_0x1ce72d[_0x3347('0x13')](0x0)['is']('element',_0x3347('0xec'))&&_0x1ce72d['getChild'](0x0)[_0x3347('0x29')]('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4ba180){this[_0x3347('0x7b')](_0x4ba180);const _0x2d6d67=this[_0x3347('0xf')]['data'][_0x3347('0xb3')](_0x4ba180,{}),_0x46df01=Array[_0x3347('0x5c')](_0x2d6d67[_0x3347('0x9a')]())[_0x3347('0xbc')](_0x569a58=>this[_0x3347('0x9b')](_0x569a58));return JSON['stringify'](_0x46df01);}['_getViewJson'](_0x57731b){if(_0x57731b['is'](_0x3347('0x94')))return _0x57731b[_0x3347('0x2b')];{const _0x5b4a19=_0x57731b;return{'type':Object[_0x3347('0xb6')](B)[_0x3347('0x10')](_0x3bb3d3=>_0x57731b instanceof B[_0x3bb3d3]),'name':_0x5b4a19[_0x3347('0xc2')],'attributes':Array[_0x3347('0x5c')](_0x5b4a19['getAttributes']()),'children':Array[_0x3347('0x5c')](_0x5b4a19[_0x3347('0x9a')]())[_0x3347('0xbc')](_0x54e981=>this[_0x3347('0x9b')](_0x54e981))};}}['_markChanges'](_0x103392,_0x545f4f,_0x17cee3,_0x3d71ed,_0x3d7967){let _0x25d61c=null,_0x2ac700=null,_0x1b1190=0x0;const _0x2291fb=this[_0x3347('0xf')][_0x3347('0x3e')];for(let _0x185f2e=0x0;_0x185f2e<_0x545f4f['length'];_0x185f2e++){const _0x23a351=this[_0x3347('0xe5')](_0x545f4f[_0x185f2e]),_0x5653e5=_0x545f4f[_0x185f2e]['item'][_0x3347('0x1e')](_0x23a351),_0x3702a5=_0x17cee3['get'](_0x5653e5),_0x5e2556=_0x185f2e==_0x545f4f[_0x3347('0x6f')]-0x1;(!_0x25d61c&&_0x3702a5&&(_0x25d61c=_0x3702a5,_0x2ac700=_0x545f4f[_0x185f2e]),_0x25d61c&&(!_0x3702a5||_0x3702a5[_0x3347('0xd')]!=_0x25d61c[_0x3347('0xd')]))&&(_0xf4dd5f(_0x3702a5,L(_0x2ac700,_0x103392,_0x2291fb),L(_0x545f4f[_0x185f2e],_0x103392,_0x2291fb)),_0x25d61c=_0x3702a5||null,_0x2ac700=_0x3702a5?_0x545f4f[_0x185f2e]:null),_0x25d61c&&_0x5e2556&&_0xf4dd5f(_0x3702a5,L(_0x2ac700,_0x103392,_0x2291fb),W(_0x545f4f[_0x185f2e],_0x103392,_0x2291fb));}function _0xf4dd5f(_0x1bd63c,_0x1b6d55,_0x4f3c27){const _0x252230=_0x25d61c['userId'],_0x47dd04=_0x3347('0x9e')+_0x3d71ed+':'+_0x252230+':'+_0x1b1190++,_0x35997c=_0x2291fb['createRange'](_0x1b6d55,_0x4f3c27);_0x103392[_0x3347('0xbf')][_0x3347('0xf8')](_0x47dd04,_0x35997c),null!==_0x252230&&_0x3d7967[_0x3347('0x57')](_0x252230);}}[_0x3347('0xe5')](_0x4c64de){switch(_0x4c64de[_0x3347('0xd1')]){case'elementStart':return _0x3347('0x30');case _0x3347('0xb1'):return'vid_end';default:return _0x3347('0xe4');}}['_fixOperation'](_0x420309,_0x27b5b8){_0x420309[_0x3347('0xe0')]=null;for(const _0x568445 in _0x420309){const _0x19150a=_0x420309[_0x568445];if(_0x19150a instanceof _0x35969a){const _0x367af1=_0x27b5b8[_0x3347('0x76')](_0x19150a['root'][_0x3347('0xb9')]);_0x420309[_0x568445]=this[_0x3347('0x95')](_0x19150a,_0x367af1);}if(_0x19150a instanceof _0x7f1367){const _0x53ff0c=_0x27b5b8[_0x3347('0x76')](_0x19150a[_0x3347('0x83')][_0x3347('0xb9')]);_0x420309[_0x568445]=this[_0x3347('0xd2')](_0x19150a,_0x53ff0c);}_0x3347('0x83')===_0x568445&&(_0x420309[_0x3347('0x83')]=_0x27b5b8['get'](_0x420309[_0x3347('0x83')]['rootName']));}}[_0x3347('0xd2')](_0x7173fc,_0x11a1f7){return this['editor'][_0x3347('0x3e')][_0x3347('0xd9')](this['_fixPosition'](_0x7173fc[_0x3347('0xb7')],_0x11a1f7),this[_0x3347('0x95')](_0x7173fc[_0x3347('0x66')],_0x11a1f7));}['_fixPosition'](_0x1cedeb,_0x12675c){return this[_0x3347('0xf')][_0x3347('0x3e')][_0x3347('0x67')](_0x12675c,_0x1cedeb['path'],_0x1cedeb[_0x3347('0xc9')]);}['_handleInsertOperation'](_0x1cfa95){const _0x4cc73f=this[_0x3347('0xd3')]['get'](_0x1cfa95[_0x3347('0x5b')][_0x3347('0x83')][_0x3347('0xb9')]),_0x53ec7e=this[_0x3347('0x95')](_0x1cfa95[_0x3347('0x5b')],_0x4cc73f),_0x5631ca=null===_0x1cfa95[_0x3347('0x97')]?null:_0x1cfa95[_0x3347('0x97')]||this['editor'][_0x3347('0xf6')]['get']('Users')['me']['id'],_0x1777aa=_0x53ec7e[_0x3347('0x26')],_0x533126=this[_0x3347('0x17')],_0x56be5b=[];for(const _0x3deaeb of _0x1cfa95[_0x3347('0x6a')])if(_0x3deaeb['is'](_0x3347('0xa6')))_0x56be5b['push'](this['_makeIdsRoot'](_0x3deaeb));else for(let _0x3dcaaa=0x0;_0x3dcaaa<_0x3deaeb[_0x3347('0xbb')];_0x3dcaaa++)_0x56be5b['push'](new _0x4e33b1(_0x3347('0x94'),{'vid':this['_revisionId']++}));const _0x404337=this[_0x3347('0x17')];for(let _0x349225=_0x533126;_0x349225<_0x404337;_0x349225++)this[_0x3347('0xb')]['set'](_0x349225,{'userId':_0x5631ca});_0x1777aa[_0x3347('0x8f')](_0x53ec7e['offset'],_0x56be5b);}[_0x3347('0x37')](_0x590e2f){(_0x590e2f=this[_0x3347('0xa4')](_0x590e2f,this['_idsRoots']))[_0x3347('0xae')]();const _0x47c958=null===_0x590e2f[_0x3347('0x97')]?null:_0x590e2f[_0x3347('0x97')]||this[_0x3347('0xf')]['plugins'][_0x3347('0x76')]('Users')['me']['id'],_0x3383b2=_0x590e2f[_0x3347('0x49')](),_0x49609a=_0x3383b2[_0x3347('0x26')],_0x3ec32=_0x3383b2[_0x3347('0x86')];!function _0x4b5053(_0x2f50f6,_0x20b066,_0x3246e0,_0x5de4cd){for(let _0x157d79=_0x3246e0;_0x157d79<_0x5de4cd;_0x157d79++){const _0x3b5ffd=_0x20b066[_0x3347('0x13')](_0x157d79);_0x3b5ffd['is'](_0x3347('0xa6'),_0x3347('0x94'))?_0x2f50f6[_0x3347('0xf8')](_0x3b5ffd[_0x3347('0x1e')](_0x3347('0xe4')),{'userId':_0x47c958}):(_0x2f50f6[_0x3347('0xf8')](_0x3b5ffd['getAttribute'](_0x3347('0x30')),{'userId':_0x47c958}),_0x4b5053(_0x2f50f6,_0x3b5ffd,0x0,_0x3b5ffd['childCount']),_0x2f50f6[_0x3347('0xf8')](_0x3b5ffd['getAttribute'](_0x3347('0xc0')),{'userId':_0x47c958}));}}(this['_touched'],_0x49609a,_0x3ec32,_0x3ec32+_0x590e2f['howMany']);}[_0x3347('0x4e')](_0xf0b802){const _0x35529f=null===(_0xf0b802=this[_0x3347('0xa4')](_0xf0b802,this['_idsRoots']))[_0x3347('0x97')]?null:_0xf0b802[_0x3347('0x97')]||this['editor'][_0x3347('0xf6')][_0x3347('0x76')](_0x3347('0xa3'))['me']['id'],_0x498f68=_0xf0b802['targetPosition'][_0x3347('0x26')],_0x4ad00b=_0xf0b802[_0x3347('0xbe')][_0x3347('0x26')],_0x3b85e2=_0x498f68[_0x3347('0x1e')](_0x3347('0xc0')),_0x43b73e=_0x4ad00b[_0x3347('0x1e')]('vid_start');_0x498f68[_0x3347('0x29')](_0x3347('0xc0'),_0x4ad00b[_0x3347('0x1e')](_0x3347('0xc0'))),_0x4ad00b[_0x3347('0x29')](_0x3347('0xc0'),_0x3b85e2),this[_0x3347('0xb')][_0x3347('0xf8')](_0x43b73e,{'userId':_0x35529f}),this[_0x3347('0xb')][_0x3347('0xf8')](_0x3b85e2,{'userId':_0x35529f}),_0xf0b802[_0x3347('0xae')]();}[_0x3347('0xea')](_0x2cda79){const _0x3a5627=null===(_0x2cda79=this[_0x3347('0xa4')](_0x2cda79,this['_idsRoots']))[_0x3347('0x97')]?null:_0x2cda79['_authorId']||this[_0x3347('0xf')][_0x3347('0xf6')][_0x3347('0x76')]('Users')['me']['id'],_0x3f216c=_0x2cda79[_0x3347('0x1a')],_0xd4a7b1=_0x2cda79[_0x3347('0x9d')][_0x3347('0x26')];_0x2cda79[_0x3347('0xae')]();const _0x49d914=_0xd4a7b1[_0x3347('0x1e')](_0x3347('0xc0')),_0x57cf0a=_0x2cda79['insertionPosition']['nodeAfter'];if(_0x3f216c){const _0x18df4a=_0x57cf0a[_0x3347('0x1e')](_0x3347('0xc0')),_0x4dea89=_0xd4a7b1[_0x3347('0x1e')](_0x3347('0xc0'));_0xd4a7b1[_0x3347('0x29')](_0x3347('0xc0'),_0x18df4a),_0x57cf0a[_0x3347('0x29')](_0x3347('0xc0'),_0x4dea89),this['_touched'][_0x3347('0xf8')](_0xd4a7b1[_0x3347('0x1e')](_0x3347('0xc0')),{'userId':_0x3a5627}),this['_touched'][_0x3347('0xf8')](_0x57cf0a['getAttribute'](_0x3347('0x30')),{'userId':_0x3a5627});}else{const _0x258f72=this[_0x3347('0x17')]++,_0x266d8e=this['_revisionId']++;_0xd4a7b1[_0x3347('0x29')](_0x3347('0xc0'),_0x258f72),_0x57cf0a[_0x3347('0x29')](_0x3347('0x30'),_0x266d8e),_0x57cf0a['_setAttribute'](_0x3347('0xc0'),_0x49d914),this[_0x3347('0xb')]['set'](_0x258f72,{'userId':_0x3a5627}),this[_0x3347('0xb')]['set'](_0x266d8e,{'userId':_0x3a5627});}}['_handleMarkerOperation'](_0x2b08a6){if(!_0x2b08a6['affectsData'])return;const _0x3f07cb=(_0x2b08a6=this['_cloneOperation'](_0x2b08a6,this[_0x3347('0x12')]))['oldRange']?_0x2b08a6[_0x3347('0xf4')][_0x3347('0x83')]:null,_0x53efa4=_0x2b08a6[_0x3347('0xd8')]?_0x2b08a6[_0x3347('0xd8')][_0x3347('0x83')]:null;_0x3f07cb&&this[_0x3347('0xd5')][_0x3347('0x51')](_0x2b08a6[_0x3347('0xc2')]),_0x53efa4&&this[_0x3347('0xd5')][_0x3347('0xf8')](_0x2b08a6[_0x3347('0xc2')],_0x2b08a6[_0x3347('0xd8')]['clone']());const _0x4bb1f1=null===_0x2b08a6[_0x3347('0x97')]?null:_0x2b08a6[_0x3347('0x97')]||this['editor']['plugins'][_0x3347('0x76')]('Users')['me']['id'],_0x9209fd=_0x2b08a6[_0x3347('0xc2')];if(!this[_0x3347('0xa')][_0x3347('0xed')](_0x9209fd))return void this['_touchedMarkers'][_0x3347('0xf8')](_0x9209fd,{'range':_0x2b08a6[_0x3347('0xf4')],'userId':_0x4bb1f1});const _0x251f1f=this[_0x3347('0xa')][_0x3347('0x76')](_0x9209fd),_0x22394=_0x251f1f['range'],_0x34a9b6=_0x2b08a6[_0x3347('0xd8')];null==_0x22394&&null==_0x34a9b6||_0x22394&&_0x34a9b6&&_0x22394['isEqual'](_0x34a9b6)?this[_0x3347('0xa')][_0x3347('0x51')](_0x2b08a6['name']):_0x251f1f[_0x3347('0xd')]=_0x4bb1f1;}[_0x3347('0xa0')](_0x2dce4c,_0x41664c){this[_0x3347('0x12')][_0x3347('0xed')](_0x2dce4c['rootName'])?this['_diffRoots']['get'](_0x2dce4c[_0x3347('0xb9')])[_0x3347('0xc')]=_0x2dce4c[_0x3347('0xfa')]:(this['_diffRoots'][_0x3347('0xf8')](_0x2dce4c[_0x3347('0xb9')],G(_0x2dce4c[_0x3347('0xb9')],!0x0)),this[_0x3347('0x54')][_0x3347('0xf8')](_0x2dce4c[_0x3347('0xb9')],{}),_0x41664c&&this[_0x3347('0xd3')][_0x3347('0xf8')](_0x2dce4c[_0x3347('0xb9')],G(_0x2dce4c[_0x3347('0xb9')],!0x0)));const _0xe449a3=null===_0x2dce4c[_0x3347('0x97')]?null:_0x2dce4c['_authorId']||this['editor']['plugins']['get'](_0x3347('0xa3'))['me']['id'],_0x5c6fd2=this[_0x3347('0xf1')][_0x3347('0x76')](_0x2dce4c[_0x3347('0xb9')]);_0x5c6fd2&&_0x5c6fd2[_0x3347('0xd')]===_0xe449a3?this[_0x3347('0xf1')][_0x3347('0x51')](_0x2dce4c[_0x3347('0xb9')]):this[_0x3347('0xf1')][_0x3347('0xf8')](_0x2dce4c[_0x3347('0xb9')],{'userId':_0xe449a3,'isAttached':_0x2dce4c[_0x3347('0xfa')]});}[_0x3347('0xfc')](_0x59d384){const _0x334cb0=this[_0x3347('0x54')][_0x3347('0x76')](_0x59d384['root'][_0x3347('0xb9')]);null===_0x59d384['newValue']?delete _0x334cb0[_0x59d384[_0x3347('0x79')]]:_0x334cb0[_0x59d384['key']]=_0x59d384[_0x3347('0xcc')];}}function q(_0x4be601){const _0x30e814=G(_0x4be601['rootName'],_0x4be601[_0x3347('0x59')]());for(const _0x38f606 of _0x4be601[_0x3347('0x9a')]()){const _0x10fe9f=_0x38f606[_0x3347('0xb2')](!0x0);_0x30e814['_appendChild'](_0x10fe9f);}return _0x30e814;}function G(_0x2b7374,_0x3f41ec=!0x0){const _0x30085f=new _0x56135f();return _0x30085f[_0x3347('0xb9')]=_0x2b7374,_0x30085f[_0x3347('0xc')]=_0x3f41ec,_0x30085f[_0x3347('0x59')]=()=>_0x30085f[_0x3347('0xc')],_0x30085f;}function L(_0xbea314,_0x28a1f2,_0x2fda30){const _0x307611=_0x3347('0xb1')==_0xbea314['type']?_0x2fda30[_0x3347('0x70')](_0xbea314[_0x3347('0x23')],_0x3347('0x66')):_0x2fda30[_0x3347('0xdc')](_0xbea314[_0x3347('0x23')]);return _0x2fda30[_0x3347('0x67')](_0x28a1f2,_0x307611['path'],_0x307611[_0x3347('0xc9')]);}function W(_0x46ff66,_0x419508,_0x5ec1af){const _0x2bd319=_0x3347('0xf5')==_0x46ff66[_0x3347('0xd1')]?_0x5ec1af[_0x3347('0x70')](_0x46ff66['item'],0x0):_0x5ec1af[_0x3347('0x2a')](_0x46ff66[_0x3347('0x23')]);return _0x5ec1af[_0x3347('0x67')](_0x419508,_0x2bd319[_0x3347('0x96')],_0x2bd319[_0x3347('0xc9')]);}
23
+ const _0x2fb2=['_prepareViewToSave','resolve','_fixPosition','get','_startingRevisionId','stickiness','_findInsertionIndex','insertions','currentRevision','_getFromVersion','_fixRange','markerToData','offset','data','addRevision','_makeRevision','_handleOperation','toVersion','_insertChild','getRootNames','_appendChild','name','_authorId','_bufferUpdate','clear','_savedMetaData','attributes','isAdd','key','path','baseVersion','getCurrentRevisionId','collaboration.channelId','reinsert','model','creatorId','values','Initial\x20revision','then','Users','useFillerType','has','getOperation','_diffRoots','toData','_replaceEditorDataWithRevisionData','keys','getAttribute','_touchedRoots','markers','dataDowncast','_addPendingAction','getMovedRangeStart','max','_removeRevisionMarkers','slice','graveyardPosition','_fixOperation','history','fromVersion','getRoot','PENDING_ACTION_REVISION_HISTORY','_lastTo','_calculateMetaData','_getBaseVids','includes','delete','createPositionAfter','_touchedMarkers','init','getAttributes','loadState','_bufferedUpdates','reverse','element','_copyMarkers','_getVidAttributeName','tableCell','_removeMetaData','_setConversion','_handleMarkerOperation','isReady','getWalker','_handleRootAttributeOperation','_markChanges','createRangeIn','define','NEGATIVE_INFINITY','addRoot','previousPosition','_execute','setSource','fromEntries','isAttached','position','editor-initial-data-replaced-with-revision-data','initialData','createPositionBefore','_applyOperations','getLatestVersion','createRange','editing','_loadState','_generateTape','attachChange','_isAttached','_saveMetaData','stringify','Empty\x20document','length','getNodeByPath','sendBufferedUpdates','_makeModelFromViewString','toView','merge','_baseRoots','_removePendingAction','_handleInsertOperation','find','detachRoot','end','getRevisionRootsAttributes','deletions','rootName','_baseRootsAttributes','_makeIdsRoot','_startingVersion','shift','_createInitialRevision','document','_diffRootsAttributes','config','_getViewJson','getTransformedByOperation','getTime','revision','finally','forEach','getRevisionDocumentData','newRange','bind','isEnabled','editor','RealTimeCollaborationClient','processor','afterInit','remove','splitPosition','marker','offsetSize','createdAt','parse','saveRevision','_pendingAction','insertion','_initialRevisionId','locale','getUser','RevisionsRepository','_getPreviousFrom','set','getAncestors','vid_start','newValue','_baseIdsRoots','_createCurrentRevision','_isPendingUpdate','clone','addRevisionData','keepParagraph','nodes','getData','repository','_revisionDataBuilder','initial','_handleMergeOperation','$text','getChild','range','_createFromRanges','roots','_touched','updateRevisions','size','revisionHistory.resumeUnsavedRevision','nodeAfter','string','type','rootsAttributes','_idsRoots','_update','start','documentFragment','_clone','getOperations','changeRootAttribute','revision:','_operations','createPositionFromPath','version','sourcePosition','split','deletion','$graveyard','some','elementEnd','buildRevisionData','update','_revisionId','_source','_getState','childCount','children','PendingActions','_reset','requires','plugins','insert','source','getChildren','attributesAfter','adapter','howMany','push','vid','for','_isInit','map','upcast','dataToMarker','_loadedStateData','root','getRevision','_setAttribute','creator','_markers','_cloneOperation','createPositionAt','_lastFrom','vid_end','parent','_handleMoveOperation','_continueCurrentRevision','item','pluginName','revision-start','userId','startsWith','toModel','insertionPosition','authors','elementStart','getRevisions','view','_loadRevisionData','_handleSplitOperation','authorsIds','diffData','add','getIndex','oldRange','conversion','from','_transformMarkers','filter','setRevisionData','attributesBefore'];(function(_0x4b147a,_0x2fb247){const _0x50c0b3=function(_0x490168){while(--_0x490168){_0x4b147a['push'](_0x4b147a['shift']());}};_0x50c0b3(++_0x2fb247);}(_0x2fb2,0x19f));const _0x50c0=function(_0x4b147a,_0x2fb247){_0x4b147a=_0x4b147a-0x0;let _0x50c0b3=_0x2fb2[_0x4b147a];return _0x50c0b3;};import{Users as _0x4d9a82}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x3831e3,PendingActions as _0x37dec1}from'ckeditor5/src/core';import{logWarning as _0x59f0b2,uid as _0x35cac9}from'ckeditor5/src/utils';import{Position as _0x53c7bd,Range as _0x4d128e,Element as _0x230b69,DocumentFragment as _0x88f57b,ViewText as _0x34e707,ViewElement as _0x3404d8,ViewContainerElement as _0x398f49,ViewAttributeElement as _0x412f63,ViewEmptyElement as _0x44fdb2,ViewRawElement as _0xcb41f6,ViewUIElement as _0x3b1332,ViewDocumentFragment as _0x35c3c0}from'ckeditor5/src/engine';import _0x2214a5 from'./revisionsrepository';import{getTranslation as _0x38eb67}from'./utils/common-translations';import{cloneDeep as _0x879743,isEqual as _0x42e45c}from'lodash-es';const B={'c':_0x398f49,'a':_0x412f63,'e':_0x44fdb2,'r':_0xcb41f6,'u':_0x3b1332};export default class l extends _0x3831e3{static get[_0x50c0('0x60')](){return'RevisionTracker';}static get[_0x50c0('0x43')](){return[_0x4d9a82,_0x2214a5,_0x37dec1];}constructor(_0x55ea71){super(_0x55ea71),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new H(this[_0x50c0('0x105')]),this[_0x50c0('0x7')]=this[_0x50c0('0x105')][_0x50c0('0xfa')]['get'](_0x50c0('0x97'))||_0x50c0('0x1a'),this[_0x50c0('0xbf')]=new Map(),this[_0x50c0('0x52')]=null;const _0x2bc3c6=_0x35cac9();this[_0x50c0('0x3d')]={'history':this['editor']['model'][_0x50c0('0xf8')][_0x50c0('0xb1')],'getLatestVersion':()=>Promise[_0x50c0('0x78')](this[_0x50c0('0x105')]['model']['document'][_0x50c0('0x33')]),'getCurrentRevisionId':()=>_0x2bc3c6},this[_0x50c0('0xc')](_0x50c0('0xc8'),!0x1),this['set'](_0x50c0('0x104'),!0x0),this[_0x50c0('0xc')](_0x50c0('0x12'),!0x1),this[_0x50c0('0x105')][_0x50c0('0xfa')][_0x50c0('0xcd')](_0x50c0('0x24'),!0x0),this['editor'][_0x50c0('0x71')][_0x50c0('0x4d')](_0x50c0('0x50'))[_0x50c0('0x51')]({'view':_0x50c0('0xfe')});}[_0x50c0('0xbc')](){this[_0x50c0('0x18')]=this[_0x50c0('0x105')]['plugins'][_0x50c0('0x7a')](_0x50c0('0xa')),this[_0x50c0('0xc6')](),this[_0x50c0('0x105')]['data']['on']('ready',()=>{const _0xfd3c49=this['repository']['getRevision'](0x0),_0x2ce3fb=_0xfd3c49&&null===_0xfd3c49[_0x50c0('0x56')]?_0xfd3c49:null;if(this['_continueCurrentRevision']=!!_0x2ce3fb&&this[_0x50c0('0x105')][_0x50c0('0xfa')]['get'](_0x50c0('0x24')),this[_0x50c0('0x105')][_0x50c0('0x44')][_0x50c0('0xa0')](_0x50c0('0x106'))){const _0x59a9f5=this[_0x50c0('0x3d')][_0x50c0('0x96')](),_0x2561a4=this['repository'][_0x50c0('0x54')](_0x59a9f5);if(_0x2561a4)this[_0x50c0('0xf5')]=_0x2561a4[_0x50c0('0xb2')],this[_0x50c0('0x5e')]=!0x1;else{const _0x1c7315=this[_0x50c0('0x3d')][_0x50c0('0xb1')][_0x50c0('0x31')][_0x50c0('0xed')](_0x2c05f8=>!_0x2c05f8[_0x50c0('0x4e')]),_0x451cb6=_0x1c7315?_0x1c7315[_0x50c0('0x95')]:this['_source']['history']['version'];_0xfd3c49?(_0xfd3c49['toVersion']<_0x451cb6&&_0xfd3c49[_0x50c0('0x2a')]({'toVersion':_0x451cb6}),this['_continueCurrentRevision']?(this[_0x50c0('0x3d')][_0x50c0('0x96')]=()=>_0x2ce3fb['id'],this[_0x50c0('0xf5')]=_0x2ce3fb[_0x50c0('0xb2')]):(this[_0x50c0('0xf5')]=_0xfd3c49[_0x50c0('0x88')],this['_continueCurrentRevision']=!0x1)):(this[_0x50c0('0xf5')]=_0x451cb6,this[_0x50c0('0x5e')]=!0x1);}}else _0x2ce3fb&&(this[_0x50c0('0x105')][_0x50c0('0x99')][_0x50c0('0xf8')][_0x50c0('0xb1')][_0x50c0('0x33')]=Math[_0x50c0('0xac')](_0x2ce3fb[_0x50c0('0x88')],this[_0x50c0('0x105')][_0x50c0('0x99')][_0x50c0('0xf8')]['history'][_0x50c0('0x33')]),_0x2ce3fb['fromVersion']===_0x2ce3fb['toVersion']?(0x0!==_0x2ce3fb['fromVersion']&&(this[_0x50c0('0x3d')][_0x50c0('0x96')]=()=>_0x2ce3fb['id']),this[_0x50c0('0x5e')]=!0x1):this[_0x50c0('0x5e')]&&(this[_0x50c0('0x3d')][_0x50c0('0x96')]=()=>_0x2ce3fb['id'],this['_startingVersion']=_0x2ce3fb['fromVersion'])),this[_0x50c0('0x5e')]||(this[_0x50c0('0xf5')]=this[_0x50c0('0x105')][_0x50c0('0x99')][_0x50c0('0xf8')][_0x50c0('0x33')]);this[_0x50c0('0x19')][_0x50c0('0xbc')](this[_0x50c0('0x3d')][_0x50c0('0xb1')]),this[_0x50c0('0xf7')](this[_0x50c0('0xf5')]),this[_0x50c0('0x11')](this[_0x50c0('0xf5')]),this['adapter']&&this['sendBufferedUpdates']();}),this[_0x50c0('0x103')](_0x50c0('0xc8'))['to'](this,_0x50c0('0x12'),_0x100947=>!_0x100947);}async[_0x50c0('0x108')](){if(this[_0x50c0('0x18')][_0x50c0('0xe4')]>0x0){const _0x5eea3e=this[_0x50c0('0x18')]['getRevision'](0x0),_0x5474ef=await this[_0x50c0('0x101')](_0x5eea3e),_0x57cf05=await this[_0x50c0('0xf0')](_0x5eea3e);this[_0x50c0('0xa4')](_0x5474ef,_0x57cf05);}}[_0x50c0('0xd2')](_0x14a47f){this[_0x50c0('0x3d')]=_0x14a47f;}async[_0x50c0('0x3b')](){const _0x3ab27a=await this[_0x50c0('0x3d')][_0x50c0('0xda')]();if(_0x3ab27a>this[_0x50c0('0x7f')][_0x50c0('0x88')]){await this['_loadState']();const _0x3bcacc=this['buildRevisionData']({'revision':this[_0x50c0('0x7f')],'to':_0x3ab27a});_0x3bcacc[_0x50c0('0x66')]=_0x3bcacc[_0x50c0('0x6c')]['map'](_0xb53b96=>this['editor'][_0x50c0('0x44')][_0x50c0('0x7a')](_0x50c0('0x9e'))['getUser'](_0xb53b96)),this[_0x50c0('0x7f')][_0x50c0('0x2a')](_0x3bcacc);}}async[_0x50c0('0xdd')](){this['_continueCurrentRevision']&&!this[_0x50c0('0x52')]&&(await this[_0x50c0('0x6a')](this[_0x50c0('0x7f')]),this[_0x50c0('0x19')][_0x50c0('0xbe')](this[_0x50c0('0x7f')]),this[_0x50c0('0x52')]={'fromVersion':this[_0x50c0('0x7f')]['fromVersion'],'authors':this[_0x50c0('0x7f')][_0x50c0('0x66')]['slice']()});}async[_0x50c0('0x4')](_0x5dcfbd={},_0x176a53=null){const _0x3e20dc=[];await this[_0x50c0('0xdd')](),this[_0x50c0('0x5e')]=!0x1,_0x176a53>this[_0x50c0('0x7f')][_0x50c0('0x88')]&&(_0x176a53=null),null===_0x176a53&&(_0x176a53=await this['_source'][_0x50c0('0xda')]());const _0x6add56=this[_0x50c0('0x80')](_0x176a53),_0x5a31d9=this[_0x50c0('0x3a')]({'from':_0x6add56,'to':_0x176a53});if(this[_0x50c0('0x7f')]['toVersion']<_0x176a53){const _0x21e0d1=this['buildRevisionData']({'revision':this[_0x50c0('0x7f')],'from':_0x176a53,'to':_0x176a53});_0x21e0d1[_0x50c0('0x66')]=[],_0x21e0d1[_0x50c0('0x6c')]=[],_0x21e0d1['id']=this[_0x50c0('0x7f')]['id'],this[_0x50c0('0x7f')][_0x50c0('0x2a')](_0x21e0d1,!0x0),delete _0x21e0d1[_0x50c0('0x66')],_0x3e20dc[_0x50c0('0x4b')](_0x21e0d1);}_0x5dcfbd[_0x50c0('0x9a')]=this[_0x50c0('0x105')][_0x50c0('0x44')]['get'](_0x50c0('0x9e'))['me']['id'],_0x5dcfbd['name']=_0x5dcfbd[_0x50c0('0x8c')]||null,_0x5dcfbd['id']=_0x5dcfbd['id']||_0x35cac9(),_0x5dcfbd={..._0x5dcfbd,..._0x5a31d9};const _0x1f4e83=this['addRevisionData'](_0x5dcfbd);_0x3e20dc['push'](_0x5dcfbd);const _0x32278f=this[_0x50c0('0x18')][_0x50c0('0x6f')](_0x1f4e83);if(0x0!==_0x32278f){const _0xc7c428=this['repository']['getRevision'](_0x32278f-0x1);if(_0xc7c428[_0x50c0('0xb2')]!==_0x176a53){const _0x5ce5cb=this[_0x50c0('0x19')][_0x50c0('0x17')](_0x176a53,_0xc7c428['toVersion']),_0x176745={'id':_0xc7c428['id'],'diffData':_0x5ce5cb[_0x50c0('0x6d')],'authorsIds':_0x5ce5cb[_0x50c0('0x6c')],'authors':_0x5ce5cb['authorsIds'][_0x50c0('0x4f')](_0x1a47f3=>this[_0x50c0('0x105')][_0x50c0('0x44')][_0x50c0('0x7a')]('Users')[_0x50c0('0x9')](_0x1a47f3)),'fromVersion':_0x176a53};_0xc7c428===this['currentRevision']&&(_0x176745[_0x50c0('0x2')]=new Date(_0x5dcfbd['createdAt'][_0x50c0('0xfd')]()+0xa)),_0xc7c428['_update'](_0x176745,!0x0),delete _0x176745[_0x50c0('0x66')],_0x3e20dc[_0x50c0('0x4b')](_0x176745);}}if(this[_0x50c0('0x49')]){for(const _0x5578a1 of _0x3e20dc)this[_0x50c0('0x8e')](_0x5578a1['id'],_0x5578a1,!0x0);this[_0x50c0('0xe6')]();}return _0x1f4e83;}[_0x50c0('0x14')](_0x2971ef){const _0x16eaa4=this[_0x50c0('0x18')]['createRevision'](_0x2971ef);return this[_0x50c0('0x49')]&&_0x16eaa4['on'](_0x50c0('0x2a'),(_0x39a383,_0x537da7,_0x5b46b5)=>{_0x5b46b5||(this['_bufferUpdate'](_0x537da7['id'],_0x537da7,!0x0),this[_0x50c0('0xe6')]());}),this[_0x50c0('0x18')][_0x50c0('0x85')](_0x16eaa4,this[_0x50c0('0x7d')](_0x16eaa4)),_0x16eaa4;}async['getRevisionDocumentData'](_0x2fa692){await this['_loadRevisionData'](_0x2fa692);const _0x5c67f2={};for(const _0x5523d5 in _0x2fa692['diffData']){if(_0x2fa692[_0x50c0('0x6d')][_0x5523d5][_0x50c0('0xdf')]&&!_0x2fa692['diffData'][_0x5523d5]['attachChange'][_0x50c0('0xd4')])continue;const _0x16e617=this['_removeRevisionMarkers'](JSON[_0x50c0('0x3')](_0x2fa692[_0x50c0('0x6d')][_0x5523d5][_0x50c0('0x7e')])),_0x15c758=this[_0x50c0('0x105')][_0x50c0('0xdc')][_0x50c0('0x69')][_0x50c0('0xf8')],_0x515545=new _0x35c3c0(_0x15c758,_0x16e617[_0x50c0('0x4f')](_0xea2401=>J(_0xea2401,this[_0x50c0('0x105')])));this[_0x50c0('0x105')][_0x50c0('0x84')][_0x50c0('0x107')]['useFillerType']('marked'),_0x5c67f2[_0x5523d5]=this[_0x50c0('0x105')][_0x50c0('0x84')]['processor'][_0x50c0('0xa3')](_0x515545),this[_0x50c0('0x105')][_0x50c0('0x84')][_0x50c0('0x107')][_0x50c0('0x9f')]('default');}return _0x5c67f2;}async[_0x50c0('0xf0')](_0x46630b){await this[_0x50c0('0x6a')](_0x46630b);const _0x10ed53={};for(const _0x1f88d5 in _0x46630b[_0x50c0('0x6d')])_0x46630b[_0x50c0('0x6d')][_0x1f88d5][_0x50c0('0xdf')]&&!_0x46630b[_0x50c0('0x6d')][_0x1f88d5][_0x50c0('0xdf')]['isAttached']||(_0x10ed53[_0x1f88d5]=_0x46630b[_0x50c0('0x6d')][_0x1f88d5][_0x50c0('0x48')]||{});return _0x10ed53;}['sendBufferedUpdates'](){if(0x0===this[_0x50c0('0xbf')]['size'])return;if(this[_0x50c0('0x12')])return;let _0x273c8a=Array[_0x50c0('0x72')](this[_0x50c0('0xbf')]['values']());this[_0x50c0('0xbf')][_0x50c0('0x8f')]();for(let _0xc5a176=0x0;_0xc5a176<_0x273c8a[_0x50c0('0xe4')];_0xc5a176++){const _0x28ac74=_0x273c8a[_0xc5a176];let _0x59a26d=!0x1;for(const _0x22df85 of Object[_0x50c0('0xa5')](_0x28ac74))void 0x0===_0x28ac74[_0x22df85]?delete _0x28ac74[_0x22df85]:'id'!==_0x22df85&&(_0x59a26d=!0x0);_0x59a26d||(_0x273c8a[_0xc5a176]=null);}if(_0x273c8a=_0x273c8a[_0x50c0('0x74')](_0x57c128=>null!==_0x57c128),!_0x273c8a[_0x50c0('0xe4')])return;for(let _0x4810eb=0x0;_0x4810eb<_0x273c8a['length'];_0x4810eb++){const _0xf4c79a=_0x273c8a[_0x4810eb];void 0x0!==_0xf4c79a['fromVersion']&&void 0x0===_0xf4c79a[_0x50c0('0x88')]&&(_0xf4c79a[_0x50c0('0x88')]=this[_0x50c0('0x18')][_0x50c0('0x54')](_0xf4c79a['id'])[_0x50c0('0x88')]),void 0x0!==_0xf4c79a[_0x50c0('0x88')]&&void 0x0===_0xf4c79a['fromVersion']&&(_0xf4c79a[_0x50c0('0xb2')]=this['repository'][_0x50c0('0x54')](_0xf4c79a['id'])[_0x50c0('0xb2')]);}const _0x59d6ef=this[_0x50c0('0x105')]['config']['get'](_0x50c0('0x97'));this[_0x50c0('0x12')]=!0x0,this[_0x50c0('0xaa')](),this[_0x50c0('0x49')][_0x50c0('0x22')](_0x273c8a,_0x59d6ef)[_0x50c0('0xff')](()=>{this['_isPendingUpdate']=!0x1;})[_0x50c0('0x9d')](_0x5c1ba7=>{if(_0x5c1ba7)for(const _0x248f68 of _0x5c1ba7)this[_0x50c0('0x75')]({'id':_0x248f68['id'],'createdAt':_0x248f68[_0x50c0('0x2')]});this[_0x50c0('0xeb')](),this[_0x50c0('0xe6')]();});}[_0x50c0('0xa4')](_0x410e24,_0x19a9cc){let _0x2fb5c4=this[_0x50c0('0x105')][_0x50c0('0xfa')][_0x50c0('0x7a')](_0x50c0('0xd7')),_0x25a7a4=this[_0x50c0('0x105')]['config']['get'](_0x50c0('0x28'));if(void 0x0===_0x2fb5c4){_0x2fb5c4={};for(const _0xd9762b of this[_0x50c0('0x105')][_0x50c0('0x99')]['document'][_0x50c0('0x8a')]())_0x2fb5c4[_0xd9762b]='';}if(_0x50c0('0x26')==typeof _0x2fb5c4&&(_0x2fb5c4={'main':_0x2fb5c4}),void 0x0===_0x25a7a4){_0x25a7a4={};for(const _0x8fa07c of this[_0x50c0('0x105')][_0x50c0('0x99')]['document'][_0x50c0('0x8a')]())_0x25a7a4[_0x8fa07c]={};}let _0x283559=!0x1;const _0x9fc5b9=Object[_0x50c0('0xa5')](_0x2fb5c4),_0x5d1d76=Object[_0x50c0('0xa5')](_0x410e24);for(const _0x5dcf47 of _0x9fc5b9){if(_0x2fb5c4[_0x5dcf47]!==_0x410e24[_0x5dcf47]&&''!==_0x2fb5c4[_0x5dcf47]['trim']()){_0x283559=!0x0;break;}if(!_0x42e45c(_0x25a7a4[_0x5dcf47],_0x19a9cc[_0x5dcf47])&&Object[_0x50c0('0xa5')](_0x25a7a4[_0x5dcf47])[_0x50c0('0xe4')]>0x0){_0x283559=!0x0;break;}}_0x283559||(_0x283559=_0x5d1d76[_0x50c0('0x38')](_0x79bb8=>!this['editor']['model'][_0x50c0('0xf8')][_0x50c0('0xb3')](_0x79bb8))),_0x283559&&_0x59f0b2(_0x50c0('0xd6'),{'editorData':_0x2fb5c4,'editorRootsAttributes':_0x25a7a4,'revisionData':_0x410e24,'revisionRootsAttributes':_0x19a9cc}),this[_0x50c0('0x105')][_0x50c0('0xfa')][_0x50c0('0xc')]('initialData',_0x410e24),this[_0x50c0('0x105')]['config']['set'](_0x50c0('0x28'),_0x19a9cc);}[_0x50c0('0xaa')](){if(!this[_0x50c0('0x5')]){const _0x47af30=this[_0x50c0('0x105')][_0x50c0('0x44')][_0x50c0('0x7a')](_0x50c0('0x41'));this[_0x50c0('0x5')]=_0x47af30['add'](_0x38eb67(this[_0x50c0('0x105')]['locale'],_0x50c0('0xb4')));}}['_removePendingAction'](){this[_0x50c0('0x5')]&&(this[_0x50c0('0x105')]['plugins'][_0x50c0('0x7a')](_0x50c0('0x41'))[_0x50c0('0x109')](this[_0x50c0('0x5')]),this[_0x50c0('0x5')]=null);}[_0x50c0('0x7d')](_0x2dd973){const _0x834824=this[_0x50c0('0x18')][_0x50c0('0x68')]();_0x834824['reverse']();let _0x2fbf41=0x0;for(;_0x2fbf41<_0x834824[_0x50c0('0xe4')];){const _0x513d4c=_0x834824[_0x2fbf41];if(_0x513d4c===this[_0x50c0('0x7f')]){_0x2fbf41++;continue;}if(_0x513d4c['id']===this[_0x50c0('0x7')])break;const _0x396d91=_0x2dd973[_0x50c0('0x88')]-_0x513d4c[_0x50c0('0x88')]||_0x2dd973[_0x50c0('0xb2')]-_0x513d4c[_0x50c0('0xb2')];if(_0x396d91>0x0)break;if(_0x396d91<0x0)_0x2fbf41++;else{if(!_0x2dd973['creator']&&_0x513d4c[_0x50c0('0x56')])break;if(_0x513d4c[_0x50c0('0x56')]||!_0x2dd973['creator']){if(_0x2dd973[_0x50c0('0x2')]>_0x513d4c['createdAt'])break;_0x2fbf41++;}else _0x2fbf41++;}}return _0x2fbf41;}[_0x50c0('0x75')](_0x476ca3){const _0x204364=this[_0x50c0('0x18')]['getRevision'](_0x476ca3['id']);if(_0x476ca3[_0x50c0('0x2')]&&(_0x476ca3[_0x50c0('0x2')]=new Date(_0x476ca3[_0x50c0('0x2')])),_0x476ca3[_0x50c0('0x6c')]){const _0x92d005=this['editor'][_0x50c0('0x44')]['get'](_0x50c0('0x9e'));_0x476ca3['authors']=_0x476ca3[_0x50c0('0x6c')][_0x50c0('0x4f')](_0x2a6eea=>_0x92d005[_0x50c0('0x9')](_0x2a6eea));}_0x204364[_0x50c0('0x2a')](_0x476ca3,!0x0);}[_0x50c0('0x3a')]({revision:_0x26e814=null,from:_0x29cefa=null,to:_0x9b1ad5=null}){_0x29cefa=null!==_0x29cefa?_0x29cefa:_0x26e814[_0x50c0('0xb2')],_0x9b1ad5=null!==_0x9b1ad5?_0x9b1ad5:_0x26e814['toVersion'];const _0x29e294=this['_revisionDataBuilder']['getData'](_0x29cefa,_0x9b1ad5),_0x541e50={'diffData':_0x29e294[_0x50c0('0x6d')],'authorsIds':_0x29e294[_0x50c0('0x6c')],'fromVersion':_0x29cefa,'toVersion':_0x9b1ad5};if(!_0x26e814||_0x9b1ad5!==_0x26e814[_0x50c0('0x88')]){const _0x41f901=_0x9b1ad5-0x1,_0x40a197=this['_source']['history'][_0x50c0('0xa1')](_0x41f901);_0x541e50[_0x50c0('0x2')]=_0x40a197&&_0x40a197[_0x50c0('0x2')]||new Date();}if(this[_0x50c0('0x52')]&&_0x29cefa===this[_0x50c0('0x52')]['fromVersion'])for(const _0x148f1f of this[_0x50c0('0x52')]['authors'])_0x541e50[_0x50c0('0x6c')][_0x50c0('0xb8')](_0x148f1f['id'])||_0x541e50[_0x50c0('0x6c')][_0x50c0('0x4b')](_0x148f1f['id']);return _0x541e50;}[_0x50c0('0x6a')](_0x20f7d0){if(!_0x20f7d0||_0x20f7d0[_0x50c0('0x6d')])return Promise[_0x50c0('0x78')]();{const _0x45f3b2=this[_0x50c0('0x105')][_0x50c0('0xfa')][_0x50c0('0x7a')](_0x50c0('0x97'));return this[_0x50c0('0x49')][_0x50c0('0x54')]({'channelId':_0x45f3b2,'revisionId':_0x20f7d0['id']})['then'](_0x2d4f1f=>{_0x20f7d0[_0x50c0('0x6d')]=_0x2d4f1f['diffData'];});}}[_0x50c0('0x8e')](_0x3e6560,_0x3c624f,_0x4c5a67){if(this[_0x50c0('0xbf')][_0x50c0('0xa0')](_0x3e6560)){const _0x3d9f37=this[_0x50c0('0xbf')][_0x50c0('0x7a')](_0x3e6560);_0x3c624f=_0x4c5a67?{..._0x3d9f37,..._0x3c624f}:{..._0x3c624f,..._0x3d9f37};}this[_0x50c0('0xbf')][_0x50c0('0xc')](_0x3e6560,_0x3c624f);}[_0x50c0('0x80')](_0x198d49){const _0x40e7b7=this[_0x50c0('0x18')]['getRevisions']();_0x40e7b7[_0x50c0('0xc0')](),_0x40e7b7[_0x50c0('0xf6')]();const _0x1313c1=_0x40e7b7[_0x50c0('0xed')](_0x5b7771=>_0x5b7771['toVersion']<=_0x198d49)[_0x50c0('0x88')];return _0x1313c1<this[_0x50c0('0xf5')]?this[_0x50c0('0xf5')]:_0x1313c1;}[_0x50c0('0xf7')](_0x259433){const _0x16079d=this['repository'][_0x50c0('0x54')](this['repository'][_0x50c0('0xe4')]-0x1);if(_0x16079d)this[_0x50c0('0x7')]=_0x16079d['id'];else{const _0x576691=!this[_0x50c0('0x105')][_0x50c0('0x99')][_0x50c0('0xf8')][_0x50c0('0x20')][_0x50c0('0xed')](_0x1c53a=>this[_0x50c0('0x105')][_0x50c0('0x99')]['hasContent'](_0x1c53a)),_0x52a504=this[_0x50c0('0x105')][_0x50c0('0x44')][_0x50c0('0x7a')](_0x50c0('0x9e'))['me']['id'],_0x2d587b=_0x38eb67(this[_0x50c0('0x105')][_0x50c0('0x8')],_0x576691?_0x50c0('0xe3'):_0x50c0('0x9c'));this[_0x50c0('0x86')]({'from':_0x259433,'to':_0x259433,'id':this[_0x50c0('0x7')],'name':_0x2d587b,'creatorId':_0x52a504});}}['_createCurrentRevision'](_0x1d75b3){const _0x496b4e=this['_source'][_0x50c0('0x96')]();this[_0x50c0('0x7f')]=this[_0x50c0('0x18')][_0x50c0('0x54')](_0x496b4e),this[_0x50c0('0x7f')]||(this[_0x50c0('0x7f')]=this['_makeRevision']({'from':_0x1d75b3,'to':_0x1d75b3,'id':_0x496b4e,'name':'','creatorId':null}));}[_0x50c0('0x86')]({name:_0x3d533b,from:_0x475ddb,to:_0xdc199e,creatorId:_0x5a698d,id:_0x4e8c6e}){const _0x576a96=this[_0x50c0('0x3a')]({'from':_0x475ddb,'to':_0xdc199e});_0x576a96[_0x50c0('0x8c')]=_0x3d533b,_0x576a96[_0x50c0('0x9a')]=_0x5a698d,_0x576a96['id']=_0x4e8c6e;const _0x1695ac=this[_0x50c0('0x14')](_0x576a96);return this[_0x50c0('0x49')]&&this[_0x50c0('0x8e')](_0x576a96['id'],_0x576a96,!0x0),_0x1695ac;}[_0x50c0('0xc6')](){this[_0x50c0('0x105')][_0x50c0('0x71')][_0x50c0('0x4d')](_0x50c0('0xa9'))[_0x50c0('0x82')]({'model':_0x50c0('0xfe')});}[_0x50c0('0xad')](_0x32b397){return(_0x32b397=_0x32b397['filter'](_0xdbc59=>!_0xdbc59['name']||_0x50c0('0x61')!==_0xdbc59[_0x50c0('0x8c')]&&'revision-end'!==_0xdbc59['name']))[_0x50c0('0x100')](_0x4bd8d6=>{_0x50c0('0x26')!=typeof _0x4bd8d6&&(_0x4bd8d6[_0x50c0('0x40')]=this[_0x50c0('0xad')](_0x4bd8d6[_0x50c0('0x40')]),_0x4bd8d6[_0x50c0('0x91')]=_0x4bd8d6['attributes'][_0x50c0('0x74')](_0x28aed2=>!_0x28aed2[0x0][_0x50c0('0x63')]('data-revision-')));}),_0x32b397;}}function J(_0x78def,_0x322534){const _0x5ca7a6=_0x322534[_0x50c0('0xdc')]['view']['document'];if('string'==typeof _0x78def)return new _0x34e707(_0x5ca7a6,_0x78def);{const _0x477406=_0x78def[_0x50c0('0x40')][_0x50c0('0x4f')](_0xa3a74b=>J(_0xa3a74b,_0x322534));return new(B[_0x78def[(_0x50c0('0x27'))]]||_0x3404d8)(_0x5ca7a6,_0x78def['name'],_0x78def[_0x50c0('0x91')],_0x477406);}}class H{constructor(_0x2cbd7e){this[_0x50c0('0x105')]=_0x2cbd7e,this[_0x50c0('0x90')]=new Map(),this[_0x50c0('0x5a')]=-0x1,this[_0x50c0('0xb5')]=-0x1,this['_markers']=new Map(),this[_0x50c0('0xa2')]=new Map(),this[_0x50c0('0xf9')]=new Map(),this[_0x50c0('0xea')]=new Map(),this[_0x50c0('0xf3')]=new Map(),this[_0x50c0('0x29')]=new Map(),this[_0x50c0('0x10')]=new Map(),this[_0x50c0('0x21')]=new Map(),this[_0x50c0('0xbb')]=new Map(),this[_0x50c0('0xa7')]=new Map(),this[_0x50c0('0x3c')]=0x1;}[_0x50c0('0xbc')](_0x1e840d){this[_0x50c0('0x46')]=_0x1e840d;const _0xdac93b=new Map(),_0x281128=new Map(),_0x2369a0=this[_0x50c0('0x105')]['model']['document'][_0x50c0('0x20')][_0x50c0('0x4f')](_0x2ad84a=>_0x2ad84a['rootName']);for(const _0x3d3265 of _0x2369a0){const _0x44a0c9=this[_0x50c0('0x105')][_0x50c0('0x99')][_0x50c0('0xf8')][_0x50c0('0xb3')](_0x3d3265),_0x233319=q(_0x44a0c9);_0xdac93b['set'](_0x3d3265,_0x233319),_0x281128['set'](_0x3d3265,Object[_0x50c0('0xd3')](_0x44a0c9['getAttributes']()));}const _0x176cec=Array[_0x50c0('0x72')](this[_0x50c0('0x105')][_0x50c0('0x99')][_0x50c0('0xa8')])[_0x50c0('0x4f')](_0x151d0e=>[_0x151d0e['name'],_0x151d0e['getRange']()]),_0x246031=this[_0x50c0('0x46')][_0x50c0('0x33')];this[_0x50c0('0xe1')](_0x246031,_0xdac93b,_0x176cec,_0x281128),this[_0x50c0('0x7b')]=this['_revisionId'];const _0xcaa5c7=new Map(),_0xfa13b8=new Map();for(const _0x1d4b9d of _0x2369a0){const _0x213815=G(_0x1d4b9d);_0xcaa5c7['set'](_0x1d4b9d,_0x213815),_0xfa13b8[_0x50c0('0xc')](_0x1d4b9d,{});}this[_0x50c0('0xe1')](Number['NEGATIVE_INFINITY'],_0xcaa5c7,[],_0xfa13b8);}[_0x50c0('0x17')](_0x217887,_0x44a7bb){if(this[_0x50c0('0x5a')]===_0x217887&&this[_0x50c0('0xb5')]<=_0x44a7bb)this[_0x50c0('0x90')][_0x50c0('0x23')]>0x1&&this[_0x50c0('0xc5')](this[_0x50c0('0xb5')]),this['_applyOperations'](this[_0x50c0('0xb5')],_0x44a7bb,!0x0);else{if(!this[_0x50c0('0x90')][_0x50c0('0xa0')](_0x217887)){const _0x3797f0=this[_0x50c0('0xb')](_0x217887);this[_0x50c0('0xb6')](_0x3797f0,_0x217887,!0x1);}this['_calculateMetaData'](_0x217887,_0x44a7bb,!0x0);}return this['_lastFrom']=_0x217887,this[_0x50c0('0xb5')]=_0x44a7bb,this[_0x50c0('0x3e')]();}['loadState'](_0x2409e1){this[_0x50c0('0x42')](),this['_lastFrom']=_0x2409e1['fromVersion'],this[_0x50c0('0xb5')]=_0x2409e1[_0x50c0('0x88')];for(const _0x49d6c9 in _0x2409e1['diffData']){const _0x491702=_0x2409e1[_0x50c0('0x6d')][_0x49d6c9][_0x50c0('0xdf')],_0x8a38ce=_0x879743(_0x2409e1[_0x50c0('0x6d')][_0x49d6c9][_0x50c0('0x76')])||{},_0x5a3bc3=this[_0x50c0('0xe7')](_0x2409e1[_0x50c0('0x6d')][_0x49d6c9]['deletions']);_0x5a3bc3[_0x50c0('0xf2')]=_0x49d6c9,_0x5a3bc3[_0x50c0('0xe0')]=!_0x491702||!_0x491702[_0x50c0('0xd4')],_0x5a3bc3[_0x50c0('0xd4')]=()=>_0x5a3bc3['_isAttached'],this[_0x50c0('0xea')][_0x50c0('0xc')](_0x49d6c9,_0x5a3bc3),this['_baseRootsAttributes'][_0x50c0('0xc')](_0x49d6c9,_0x8a38ce),_0x491702&&this[_0x50c0('0xa7')][_0x50c0('0xc')](_0x49d6c9,_0x491702);const _0x235ee1=this['_makeIdsRoot'](_0x5a3bc3);this['_baseIdsRoots'][_0x50c0('0xc')](_0x49d6c9,_0x235ee1);for(const [_0x31765f,_0x56b1ba]of _0x5a3bc3[_0x50c0('0xa8')]){if(!_0x31765f[_0x50c0('0x63')](_0x50c0('0x30')))continue;const _0xb546c7=_0x31765f[_0x50c0('0x35')](':')[0x2];for(const _0x55ce35 of _0x56b1ba[_0x50c0('0xc9')]({'singleCharacters':!0x0})){const _0x205e8d=this[_0x50c0('0xc3')](_0x55ce35),_0x1b963e=_0x50c0('0x39')==_0x55ce35[_0x50c0('0x27')]?_0x55ce35[_0x50c0('0xd0')][_0x50c0('0x94')][_0x50c0('0xae')](0x0,-0x1):_0x55ce35['previousPosition']['path'],_0x2502f9=_0x235ee1[_0x50c0('0xe5')](_0x1b963e)['getAttribute'](_0x205e8d);this['_touched']['set'](_0x2502f9,{'userId':_0xb546c7});}}}this[_0x50c0('0x7b')]=this['_revisionId'];const _0x588e68=[...Array(this[_0x50c0('0x3c')])[_0x50c0('0xa5')]()][_0x50c0('0xae')](0x1)[_0x50c0('0x74')](_0xa45977=>!this[_0x50c0('0x21')][_0x50c0('0xa0')](_0xa45977));let _0x6eb1e=0x0;const _0x5916ef=new Map();for(const _0x5e2940 in _0x2409e1[_0x50c0('0x6d')]){const _0x2c3661=_0x2409e1['diffData'][_0x5e2940][_0x50c0('0xdf')],_0x2e14a2=_0x879743(_0x2409e1[_0x50c0('0x6d')][_0x5e2940][_0x50c0('0x48')])||{},_0x15d877=this[_0x50c0('0xe7')](_0x2409e1[_0x50c0('0x6d')][_0x5e2940][_0x50c0('0x7e')]);_0x15d877[_0x50c0('0xf2')]=_0x5e2940,_0x15d877[_0x50c0('0xe0')]=!_0x2c3661||_0x2c3661['isAttached'],_0x15d877[_0x50c0('0xd4')]=()=>_0x15d877[_0x50c0('0xe0')],this[_0x50c0('0xa2')]['set'](_0x5e2940,_0x15d877),this[_0x50c0('0xf9')]['set'](_0x5e2940,_0x2e14a2);const _0xd32f76=this[_0x50c0('0xf4')](_0x15d877,Number[_0x50c0('0xce')]);this['_idsRoots'][_0x50c0('0xc')](_0x5e2940,_0xd32f76),_0x5916ef['set'](_0x5e2940,_0x15d877['isAttached']()?_0x2e14a2:{});for(const [_0x58d56a,_0x40a2f6]of _0x15d877[_0x50c0('0xa8')]){if(!_0x58d56a[_0x50c0('0x63')](_0x50c0('0x30')))continue;const _0x49d5d5=_0x58d56a['split'](':')[0x2];for(const _0x125ddf of _0x40a2f6[_0x50c0('0xc9')]({'singleCharacters':!0x0})){const _0x1736c1=this[_0x50c0('0xc3')](_0x125ddf),_0x1aa2ce=this[_0x50c0('0x3c')]++,_0x4417d0=_0x50c0('0x39')==_0x125ddf[_0x50c0('0x27')]?_0x125ddf[_0x50c0('0xd0')][_0x50c0('0x94')]['slice'](0x0,-0x1):_0x125ddf[_0x50c0('0xd0')][_0x50c0('0x94')];_0xd32f76[_0x50c0('0xe5')](_0x4417d0)[_0x50c0('0x55')](_0x1736c1,_0x1aa2ce),this[_0x50c0('0x21')][_0x50c0('0xc')](_0x1aa2ce,{'userId':_0x49d5d5});}}for(const _0x16245f of this['editor'][_0x50c0('0x99')][_0x50c0('0xcc')](_0x15d877)[_0x50c0('0xc9')]({'singleCharacters':!0x0})){const _0x4f84cc=this[_0x50c0('0xc3')](_0x16245f),_0x23b6f1='elementEnd'==_0x16245f['type']?_0x16245f[_0x50c0('0xd0')][_0x50c0('0x94')][_0x50c0('0xae')](0x0,-0x1):_0x16245f[_0x50c0('0xd0')][_0x50c0('0x94')],_0x431d39=_0xd32f76['getNodeByPath'](_0x23b6f1);_0x431d39[_0x50c0('0xa6')](_0x4f84cc)>0x0||_0x431d39[_0x50c0('0x55')](_0x4f84cc,_0x588e68[_0x6eb1e++]);}for(const [_0x553f67,_0x2c1998]of _0x15d877[_0x50c0('0xa8')])_0x553f67[_0x50c0('0x63')]('revision:')||this[_0x50c0('0x57')][_0x50c0('0xc')](_0x553f67,_0x2c1998);}const _0x2976aa=G(_0x50c0('0x37'));this[_0x50c0('0xea')][_0x50c0('0xc')](_0x50c0('0x37'),_0x2976aa),this[_0x50c0('0x10')][_0x50c0('0xc')](_0x50c0('0x37'),this[_0x50c0('0xf4')](_0x2976aa,0x1));const _0x5b0453=G(_0x50c0('0x37'));this[_0x50c0('0xa2')][_0x50c0('0xc')]('$graveyard',_0x5b0453),this[_0x50c0('0x29')][_0x50c0('0xc')](_0x50c0('0x37'),this[_0x50c0('0xf4')](_0x5b0453,0x1));const _0x509604=Array[_0x50c0('0x72')](this[_0x50c0('0xa2')])['map'](([_0x59d780,_0xb246ee])=>[_0x59d780,q(_0xb246ee)]);this[_0x50c0('0xe1')](this['_lastTo'],_0x509604,this['_markers'],_0x5916ef);}[_0x50c0('0xe7')](_0x42ef43){const _0x418c09=JSON['parse'](_0x42ef43),_0x5438d1=this['editor'][_0x50c0('0xdc')]['view'][_0x50c0('0xf8')],_0x23adbb=new _0x35c3c0(_0x5438d1,_0x418c09[_0x50c0('0x4f')](_0x1fe392=>J(_0x1fe392,this[_0x50c0('0x105')])));return this[_0x50c0('0x105')][_0x50c0('0x84')][_0x50c0('0x64')](_0x23adbb);}[_0x50c0('0xe1')](_0x4a1fb3,_0x3d13f8,_0x6a2de4,_0x1bd2ef){const _0x1b6e39=new Map(_0x3d13f8),_0x5560eb=new Map(_0x879743(_0x1bd2ef)),_0x4d4346=new Map();for(const [_0x5c04cb,_0x231d7e]of _0x6a2de4)_0x4d4346[_0x50c0('0xc')](_0x5c04cb,{'start':_0x231d7e['start'][_0x50c0('0x13')](),'end':_0x231d7e['end'][_0x50c0('0x13')](),'rootName':_0x231d7e[_0x50c0('0x53')][_0x50c0('0xf2')]});this[_0x50c0('0x90')][_0x50c0('0xc')](_0x4a1fb3,{'roots':_0x1b6e39,'markers':_0x4d4346,'rootsAttributes':_0x5560eb});}[_0x50c0('0xc5')](_0x59308e){this['_savedMetaData']['delete'](_0x59308e);}['reInit'](){this[_0x50c0('0x42')](),this[_0x50c0('0x5a')]=-0x1,this['_lastTo']=-0x1,this[_0x50c0('0x90')][_0x50c0('0x8f')](),this[_0x50c0('0xbc')](this['source']);}[_0x50c0('0x42')](){this['_touched'][_0x50c0('0x8f')](),this[_0x50c0('0xbb')][_0x50c0('0x8f')](),this[_0x50c0('0xa7')][_0x50c0('0x8f')](),this[_0x50c0('0xa2')][_0x50c0('0x8f')](),this[_0x50c0('0xf9')][_0x50c0('0x8f')](),this[_0x50c0('0xea')][_0x50c0('0x8f')](),this[_0x50c0('0xf3')][_0x50c0('0x8f')](),this[_0x50c0('0x29')]['clear'](),this['_baseIdsRoots'][_0x50c0('0x8f')](),this[_0x50c0('0x57')][_0x50c0('0x8f')](),this[_0x50c0('0x3c')]=0x1,this[_0x50c0('0x7b')]=this[_0x50c0('0x3c')];}[_0x50c0('0xf4')](_0x398c6a,_0x23a6a3=null){let _0x24e006=null;_0x398c6a['is']('documentFragment')||(_0x24e006=new _0x230b69(_0x398c6a[_0x50c0('0x8c')],{'vid_start':null===_0x23a6a3?this[_0x50c0('0x3c')]++:_0x23a6a3++}));const _0x800ba4=[];for(const _0xfaefba of _0x398c6a['getChildren']())if(_0xfaefba['is'](_0x50c0('0xc1'))){_0x800ba4[_0x50c0('0x4b')](this['_makeIdsRoot'](_0xfaefba,_0x23a6a3));const _0x567fd5=_0x800ba4[_0x800ba4[_0x50c0('0xe4')]-0x1];null!==_0x23a6a3&&(_0x23a6a3=_0x567fd5['is'](_0x50c0('0xc1'),_0x50c0('0x1c'))?_0x567fd5['getAttribute']('vid')+0x1:_0x567fd5[_0x50c0('0xa6')](_0x50c0('0x5b'))+0x1);}else for(let _0x21030c=0x0;_0x21030c<_0xfaefba[_0x50c0('0x1')];_0x21030c++)_0x800ba4[_0x50c0('0x4b')](new _0x230b69(_0x50c0('0x1c'),{'vid':null===_0x23a6a3?this[_0x50c0('0x3c')]++:_0x23a6a3++}));if(_0x398c6a['is'](_0x50c0('0x2c'))){const _0x749ef3=G(_0x398c6a[_0x50c0('0xf2')]);return _0x749ef3['_insertChild'](0x0,_0x800ba4),_0x749ef3;}return _0x24e006[_0x50c0('0x55')](_0x50c0('0x5b'),null===_0x23a6a3?this[_0x50c0('0x3c')]++:_0x23a6a3++),_0x24e006['_insertChild'](0x0,_0x800ba4),_0x24e006;}['_calculateMetaData'](_0x5cf37a,_0x573c2f,_0x1b2abe){this[_0x50c0('0x42')]();const {roots:_0x5a92dc,markers:_0x12399a,rootsAttributes:_0x16bfda}=this[_0x50c0('0x90')][_0x50c0('0x7a')](_0x5cf37a);this[_0x50c0('0xea')]=new Map(_0x5a92dc),this[_0x50c0('0xf3')]=new Map(_0x879743(_0x16bfda));for(const [_0x5e4457,_0x491459]of this[_0x50c0('0xea')])if(_0x50c0('0x37')!==_0x5e4457&&(this[_0x50c0('0xa2')][_0x50c0('0xc')](_0x5e4457,q(_0x491459)),this[_0x50c0('0xf9')]=new Map(_0x879743(_0x16bfda)),_0x1b2abe)){const _0x175597=this[_0x50c0('0x3c')];this[_0x50c0('0x29')]['set'](_0x5e4457,this[_0x50c0('0xf4')](_0x491459)),this[_0x50c0('0x10')][_0x50c0('0xc')](_0x5e4457,this[_0x50c0('0xf4')](_0x491459,_0x175597));}this['_startingRevisionId']=this[_0x50c0('0x3c')],this[_0x50c0('0xa2')][_0x50c0('0xc')](_0x50c0('0x37'),q(this[_0x50c0('0xea')][_0x50c0('0x7a')](_0x50c0('0x37')))),_0x1b2abe&&this[_0x50c0('0x29')][_0x50c0('0xc')](_0x50c0('0x37'),this[_0x50c0('0xf4')](this[_0x50c0('0xea')][_0x50c0('0x7a')](_0x50c0('0x37'))));for(const [_0x58a36d,_0x3a8e3c]of _0x12399a){const _0x162d30=this[_0x50c0('0xea')][_0x50c0('0x7a')](_0x3a8e3c[_0x50c0('0xf2')]),_0x20861c=this[_0x50c0('0xa2')][_0x50c0('0x7a')](_0x3a8e3c[_0x50c0('0xf2')]),_0x4d62c0=new _0x4d128e(this[_0x50c0('0x79')](_0x3a8e3c[_0x50c0('0x2b')],_0x162d30),this[_0x50c0('0x79')](_0x3a8e3c[_0x50c0('0xef')],_0x162d30)),_0x5317a7=this['_fixRange'](_0x4d62c0,_0x20861c);_0x162d30[_0x50c0('0xa8')][_0x50c0('0xc')](_0x58a36d,_0x4d62c0),this[_0x50c0('0x57')]['set'](_0x58a36d,_0x5317a7);}this[_0x50c0('0xd9')](_0x5cf37a,_0x573c2f,_0x1b2abe);}[_0x50c0('0xd9')](_0xc23e6,_0x45ec2a,_0x3eae6d){for(const _0x5e6555 of this[_0x50c0('0x46')][_0x50c0('0x2e')](_0xc23e6,_0x45ec2a))this[_0x50c0('0x87')](_0x5e6555,_0x3eae6d);for(const _0x201dbd of this[_0x50c0('0xa2')][_0x50c0('0x9b')]())_0x201dbd['markers'][_0x50c0('0x8f')]();for(const [_0x630592,_0x3ae19f]of this[_0x50c0('0x57')]){this['_diffRoots'][_0x50c0('0x7a')](_0x3ae19f[_0x50c0('0x53')][_0x50c0('0xf2')])[_0x50c0('0xa8')]['set'](_0x630592,_0x3ae19f['clone']());}const _0xe95eb3=new Map(),_0x366dc3=new Map();for(const [_0x1641c2,_0x5986a0]of this[_0x50c0('0xa2')])_0xe95eb3[_0x50c0('0xc')](_0x1641c2,q(_0x5986a0)),_0x366dc3[_0x50c0('0xc')](_0x1641c2,this[_0x50c0('0xf9')]['get'](_0x1641c2));this['_saveMetaData'](_0x45ec2a,_0xe95eb3,this[_0x50c0('0x57')],_0x366dc3);}[_0x50c0('0xb')](_0x4b3fff){const _0x4b4676=Array[_0x50c0('0x72')](this[_0x50c0('0x90')]['keys']());_0x4b4676['sort']((_0x114b81,_0x1b4f40)=>_0x114b81-_0x1b4f40),_0x4b4676['reverse']();for(const _0x30053f of _0x4b4676)if(_0x30053f<_0x4b3fff)return _0x30053f;return Number[_0x50c0('0xce')];}['_copyMarkers'](_0x185d08,_0x3226d4){const _0x231098=Array[_0x50c0('0x72')](_0x3226d4['markers'])[_0x50c0('0x4f')](([_0x275dec,_0x4a2152])=>[_0x275dec,this[_0x50c0('0x81')](_0x4a2152,_0x185d08)]);_0x185d08[_0x50c0('0xa8')]=new Map(_0x231098);}[_0x50c0('0x73')](_0x4d3cd5){for(const _0x430247 of this[_0x50c0('0x57')][_0x50c0('0x9b')]()){const _0x185308=_0x430247[_0x50c0('0xfc')](_0x4d3cd5),_0xaeca49=_0x4d128e[_0x50c0('0x1f')](_0x185308);_0x430247[_0x50c0('0x2b')]=_0xaeca49[_0x50c0('0x2b')],_0x430247['end']=_0xaeca49[_0x50c0('0xef')];}}['_handleOperation'](_0x2c15a3,_0x9bb35d){if(_0x50c0('0xcf')==_0x2c15a3['type']||_0x50c0('0xee')==_0x2c15a3[_0x50c0('0x27')])return void this['_handleRootOperation'](_0x2c15a3,_0x9bb35d);if(_0x50c0('0x45')==_0x2c15a3[_0x50c0('0x27')]){const _0x402321=_0x2c15a3['position'][_0x50c0('0x53')][_0x50c0('0xf2')];this['_diffRoots'][_0x50c0('0xa0')](_0x402321)||(this[_0x50c0('0xa2')][_0x50c0('0xc')](_0x402321,G(_0x402321,!0x0)),this[_0x50c0('0xf9')][_0x50c0('0xc')](_0x402321,{}),_0x9bb35d&&this[_0x50c0('0x29')][_0x50c0('0xc')](_0x402321,G(_0x402321,!0x0)));}else{if('addRootAttribute'==_0x2c15a3[_0x50c0('0x27')]||'removeRootAttribute'==_0x2c15a3[_0x50c0('0x27')]||_0x50c0('0x2f')==_0x2c15a3[_0x50c0('0x27')])return void this[_0x50c0('0xca')](_0x2c15a3);}const _0x2a5e6b=this[_0x50c0('0x58')](_0x2c15a3,this[_0x50c0('0xa2')]);if(_0x50c0('0x0')!==_0x2c15a3[_0x50c0('0x27')]&&(_0x2a5e6b[_0x50c0('0xd1')](),this[_0x50c0('0x73')](_0x2a5e6b)),_0x9bb35d)switch(_0x2a5e6b['type']){case _0x50c0('0x45'):this[_0x50c0('0xec')](_0x2c15a3);break;case'move':case _0x50c0('0x109'):case _0x50c0('0x98'):this[_0x50c0('0x5d')](_0x2c15a3);break;case _0x50c0('0xe9'):this[_0x50c0('0x1b')](_0x2c15a3);break;case'split':this[_0x50c0('0x6b')](_0x2c15a3);break;case _0x50c0('0x0'):this[_0x50c0('0xc7')](_0x2c15a3);}}[_0x50c0('0x58')](_0x5b0941,_0x159df7){const _0x2c95ca=_0x5b0941[_0x50c0('0x13')]();return _0x2c95ca[_0x50c0('0x8d')]=_0x5b0941['_authorId'],this['_fixOperation'](_0x2c95ca,_0x159df7),_0x2c95ca;}[_0x50c0('0xb7')](_0x1fb6ac){return _0x1fb6ac[_0x50c0('0x4f')](_0x310b19=>{const _0x961f60=this[_0x50c0('0xc3')](_0x310b19);return Number(_0x310b19[_0x50c0('0x5f')][_0x50c0('0xa6')](_0x961f60));});}[_0x50c0('0xde')](_0x3439a3,_0x1e0832){if(_0x3439a3['is'](_0x50c0('0xc1'),_0x50c0('0x1c')))_0x1e0832[_0x50c0('0x4b')]({'item':_0x3439a3,'type':'text'});else{_0x3439a3['is'](_0x50c0('0xc1'))&&_0x1e0832[_0x50c0('0x4b')]({'item':_0x3439a3,'type':_0x50c0('0x67')});for(const _0x139ff7 of _0x3439a3[_0x50c0('0x47')]())this[_0x50c0('0xde')](_0x139ff7,_0x1e0832);_0x3439a3['is'](_0x50c0('0xc1'))&&_0x1e0832[_0x50c0('0x4b')]({'item':_0x3439a3,'type':_0x50c0('0x39')});}return _0x1e0832;}[_0x50c0('0x3e')](){const _0xe68199=new Map(this[_0x50c0('0x21')]),_0x5cd61d=new Map(_0xe68199),_0x350303=new Map(),_0x1f6d62={'insertions':{},'deletions':{}},_0x16688={'insertions':{},'deletions':{}},_0x540c3b=new Map(),_0x39be80=new Set([...this[_0x50c0('0xea')][_0x50c0('0xa5')](),...this['_diffRoots'][_0x50c0('0xa5')]()]);_0x39be80[_0x50c0('0xb9')](_0x50c0('0x37'));for(const _0x41fefc of _0x39be80){const _0x2d405d=this['_diffRoots']['get'](_0x41fefc)||G(_0x41fefc,!0x1),_0x11427a=this[_0x50c0('0xea')][_0x50c0('0x7a')](_0x41fefc)||G(_0x41fefc,!0x1);_0x2d405d[_0x50c0('0xd4')]()||_0x11427a['isAttached']()?(_0x1f6d62[_0x50c0('0x7e')][_0x41fefc]=q(_0x2d405d),_0x1f6d62[_0x50c0('0xf1')][_0x41fefc]=q(_0x11427a),this[_0x50c0('0xc2')](_0x1f6d62['deletions'][_0x41fefc],_0x11427a),this[_0x50c0('0xc2')](_0x1f6d62[_0x50c0('0x7e')][_0x41fefc],_0x2d405d),_0x16688[_0x50c0('0x7e')][_0x41fefc]=this[_0x50c0('0xde')](this['_idsRoots'][_0x50c0('0x7a')](_0x41fefc),[]),_0x16688['deletions'][_0x41fefc]=this['_generateTape'](this[_0x50c0('0x10')][_0x50c0('0x7a')](_0x41fefc)||G(_0x41fefc,!0x1),[])):_0x39be80[_0x50c0('0xb9')](_0x41fefc);}for(const _0x2a5558 of _0x39be80){const _0x171f01=_0x16688[_0x50c0('0x7e')][_0x2a5558];for(const _0x36839e of _0x171f01){const _0x94eb5=this[_0x50c0('0xc3')](_0x36839e),_0xed0e47=_0x36839e[_0x50c0('0x5f')]['getAttribute'](_0x94eb5);_0x5cd61d['delete'](_0xed0e47),_0xed0e47>=this[_0x50c0('0x7b')]&&_0x350303[_0x50c0('0xc')](_0xed0e47,_0xe68199[_0x50c0('0x7a')](_0xed0e47));}}for(const _0x33edd1 of _0x39be80){const _0x4a7897=_0x16688[_0x50c0('0x7e')][_0x33edd1],_0xa75375=this['_getBaseVids'](_0x16688['deletions'][_0x33edd1]);let _0x5ee301=0x0;for(const _0xdc513a of _0x4a7897){const _0x3832ef=this['_getVidAttributeName'](_0xdc513a),_0x50ad01=_0xdc513a[_0x50c0('0x5f')][_0x50c0('0xa6')](_0x3832ef);if(!_0x350303[_0x50c0('0xa0')](_0x50ad01)&&!_0x540c3b[_0x50c0('0xa0')](_0x50ad01)){if(_0x5cd61d['has'](_0x50ad01))_0x5ee301++;else{if(_0x50ad01!=_0xa75375[_0x5ee301]){const _0x3f8486=_0xe68199[_0x50c0('0x7a')](_0x50ad01)||_0xe68199[_0x50c0('0x7a')](_0xa75375[_0x5ee301]);for(;_0x50ad01!=_0xa75375[_0x5ee301];)_0x5cd61d[_0x50c0('0xa0')](_0xa75375[_0x5ee301])||(_0x540c3b[_0x50c0('0xc')](_0xa75375[_0x5ee301],_0x3f8486),_0xe68199[_0x50c0('0xc')](_0xa75375[_0x5ee301],_0x3f8486)),_0x5ee301++;}_0x5ee301++;}}}}for(const _0x3319b0 of _0x39be80){const _0x4400da=_0x16688[_0x50c0('0x7e')][_0x3319b0];for(const _0x458362 of _0x4400da){const _0x3ba700=this['_getVidAttributeName'](_0x458362),_0x3da30e=_0x458362[_0x50c0('0x5f')][_0x50c0('0xa6')](_0x3ba700);if(_0x540c3b[_0x50c0('0xa0')](_0x3da30e)){const _0xa06a69=_0x540c3b['get'](_0x3da30e);_0x5cd61d[_0x50c0('0xa0')](_0x3da30e)||_0x5cd61d[_0x50c0('0xc')](_0x3da30e,{..._0xa06a69}),_0x350303[_0x50c0('0xc')](_0x3da30e,{..._0xa06a69});}}}for(const _0x47e6b3 of _0x5cd61d['keys']())_0x47e6b3>=this['_startingRevisionId']&&_0x5cd61d[_0x50c0('0xb9')](_0x47e6b3);const _0x508d5a=new Map();for(const _0x2a81eb of _0x39be80){let _0x5cc8b8=_0x16688[_0x50c0('0x7e')][_0x2a81eb];for(const _0x47ef46 of _0x5cc8b8)if(_0x47ef46[_0x50c0('0x5f')]['is'](_0x50c0('0xc1'),'tableCell')){const _0x506006=this[_0x50c0('0xc3')](_0x47ef46),_0x3c9049=_0x47ef46[_0x50c0('0x5f')][_0x50c0('0xa6')](_0x506006);if(_0x350303[_0x50c0('0xa0')](_0x3c9049)){const _0x442168=_0x47ef46['item'][_0x50c0('0x5c')][_0x50c0('0x5c')][_0x50c0('0xa6')](_0x50c0('0xe')),_0x19fa6c=_0x508d5a[_0x50c0('0x7a')](_0x442168)||new Set();_0x19fa6c[_0x50c0('0x6e')](_0x350303[_0x50c0('0x7a')](_0x3c9049)[_0x50c0('0x62')]),_0x508d5a['set'](_0x442168,_0x19fa6c);}}_0x5cc8b8=_0x16688[_0x50c0('0xf1')][_0x2a81eb];for(const _0x4778d9 of _0x5cc8b8)if(_0x4778d9['item']['is'](_0x50c0('0xc1'),_0x50c0('0xc4'))){const _0x3666ce=this['_getVidAttributeName'](_0x4778d9),_0x422b39=_0x4778d9[_0x50c0('0x5f')]['getAttribute'](_0x3666ce);if(_0x5cd61d['has'](_0x422b39)){const _0x3025bf=_0x4778d9[_0x50c0('0x5f')][_0x50c0('0x5c')][_0x50c0('0x5c')][_0x50c0('0xa6')](_0x50c0('0xe')),_0x41d67d=_0x508d5a[_0x50c0('0x7a')](_0x3025bf)||new Set();_0x41d67d[_0x50c0('0x6e')](_0x5cd61d['get'](_0x422b39)['userId']),_0x508d5a[_0x50c0('0xc')](_0x3025bf,_0x41d67d);}}for(const _0x403a4d of _0x508d5a[_0x50c0('0xa5')]())(_0x350303[_0x50c0('0xa0')](_0x403a4d)||_0x5cd61d[_0x50c0('0xa0')](_0x403a4d))&&_0x508d5a['delete'](_0x403a4d);}for(const _0x25c3da of _0x39be80){const _0x5dc3e1=_0x16688['insertions'][_0x25c3da];let _0x1190a6=null,_0x3edc57=null;for(const _0x66bd3e of _0x5dc3e1){const _0x96bb26=this['_getVidAttributeName'](_0x66bd3e),_0x4852f1=_0x66bd3e[_0x50c0('0x5f')][_0x50c0('0xa6')](_0x96bb26),_0x188a6b=_0x508d5a[_0x50c0('0x7a')](_0x4852f1);_0x188a6b&&'elementStart'==_0x66bd3e['type']&&(_0x1190a6=Array[_0x50c0('0x72')](_0x188a6b)[0x0],_0x3edc57=_0x66bd3e[_0x50c0('0x5f')][_0x50c0('0xa6')](_0x50c0('0x5b'))),_0x1190a6&&(_0x5cd61d[_0x50c0('0xc')](_0x4852f1,{'userId':_0x1190a6}),_0x350303[_0x50c0('0xc')](_0x4852f1,{'userId':_0x1190a6})),_0x4852f1==_0x3edc57&&(_0x1190a6=null,_0x3edc57=null);}}const _0x5a4abb={},_0x3c28bb=new Set();for(const _0x1477cc of _0x39be80){const _0x4408f1=_0x1f6d62[_0x50c0('0xf1')][_0x1477cc],_0x137436=_0x1f6d62[_0x50c0('0x7e')][_0x1477cc];for(const {userId:_0x218048}of this[_0x50c0('0xbb')][_0x50c0('0x9b')]())null!==_0x218048&&_0x3c28bb[_0x50c0('0x6e')](_0x218048);for(const {userId:_0x6e71c8}of this[_0x50c0('0xa7')][_0x50c0('0x9b')]())null!==_0x6e71c8&&_0x3c28bb[_0x50c0('0x6e')](_0x6e71c8);this[_0x50c0('0xcb')](_0x137436,_0x16688[_0x50c0('0x7e')][_0x1477cc],_0x350303,_0x50c0('0x6'),_0x3c28bb),this['_markChanges'](_0x4408f1,_0x16688[_0x50c0('0xf1')][_0x1477cc],_0x5cd61d,_0x50c0('0x36'),_0x3c28bb),_0x5a4abb[_0x1477cc]={'insertions':this[_0x50c0('0x77')](_0x137436),'deletions':this[_0x50c0('0x77')](_0x4408f1),'attachChange':this[_0x50c0('0xa7')][_0x50c0('0x7a')](_0x1477cc)||null,'attributesBefore':_0x879743(this[_0x50c0('0xf3')][_0x50c0('0x7a')](_0x1477cc))||{},'attributesAfter':_0x879743(this[_0x50c0('0xf9')]['get'](_0x1477cc))};}return{'diffData':_0x5a4abb,'authorsIds':Array[_0x50c0('0x72')](_0x3c28bb)};}['_processRootBeforeSave'](_0x100012){for(const [,_0x8b1ae9]of _0x100012[_0x50c0('0xa8')]){const _0x273a5c=_0x8b1ae9[_0x50c0('0x2b')][_0x50c0('0xd')]()['filter'](_0x5dde8f=>_0x50c0('0xc4')==_0x5dde8f['name']);for(const _0x356a5f of _0x273a5c)0x1==_0x356a5f[_0x50c0('0x3f')]&&_0x356a5f[_0x50c0('0x1d')](0x0)['is'](_0x50c0('0xc1'),'paragraph')&&_0x356a5f[_0x50c0('0x1d')](0x0)[_0x50c0('0x55')](_0x50c0('0x15'),!0x0);}}[_0x50c0('0x77')](_0x3ee1f8){this['_processRootBeforeSave'](_0x3ee1f8);const _0x2863e0=this[_0x50c0('0x105')][_0x50c0('0x84')][_0x50c0('0xe8')](_0x3ee1f8,{}),_0x4334dc=Array[_0x50c0('0x72')](_0x2863e0[_0x50c0('0x47')]())[_0x50c0('0x4f')](_0x583060=>this['_getViewJson'](_0x583060));return JSON[_0x50c0('0xe2')](_0x4334dc);}[_0x50c0('0xfb')](_0x36b230){if(_0x36b230['is'](_0x50c0('0x1c')))return _0x36b230['data'];{const _0x19cc79=_0x36b230;return{'type':Object[_0x50c0('0xa5')](B)[_0x50c0('0xed')](_0x19f0fb=>_0x36b230 instanceof B[_0x19f0fb]),'name':_0x19cc79['name'],'attributes':Array[_0x50c0('0x72')](_0x19cc79[_0x50c0('0xbd')]()),'children':Array[_0x50c0('0x72')](_0x19cc79[_0x50c0('0x47')]())[_0x50c0('0x4f')](_0x319dba=>this['_getViewJson'](_0x319dba))};}}[_0x50c0('0xcb')](_0x7f952d,_0x400242,_0x4c1bab,_0xa51af,_0x29c0f5){let _0x138a87=null,_0x25cb51=null,_0x1e1cf4=0x0;const _0x8f5f02=this['editor'][_0x50c0('0x99')];for(let _0xefb4d=0x0;_0xefb4d<_0x400242['length'];_0xefb4d++){const _0x2070cb=this['_getVidAttributeName'](_0x400242[_0xefb4d]),_0x311704=_0x400242[_0xefb4d][_0x50c0('0x5f')][_0x50c0('0xa6')](_0x2070cb),_0x90894=_0x4c1bab[_0x50c0('0x7a')](_0x311704),_0x25fd71=_0xefb4d==_0x400242[_0x50c0('0xe4')]-0x1;(!_0x138a87&&_0x90894&&(_0x138a87=_0x90894,_0x25cb51=_0x400242[_0xefb4d]),_0x138a87&&(!_0x90894||_0x90894[_0x50c0('0x62')]!=_0x138a87[_0x50c0('0x62')]))&&(_0x342656(_0x90894,L(_0x25cb51,_0x7f952d,_0x8f5f02),L(_0x400242[_0xefb4d],_0x7f952d,_0x8f5f02)),_0x138a87=_0x90894||null,_0x25cb51=_0x90894?_0x400242[_0xefb4d]:null),_0x138a87&&_0x25fd71&&_0x342656(_0x90894,L(_0x25cb51,_0x7f952d,_0x8f5f02),W(_0x400242[_0xefb4d],_0x7f952d,_0x8f5f02));}function _0x342656(_0x533c17,_0x20b04a,_0x5b22b7){const _0x4669ea=_0x138a87[_0x50c0('0x62')],_0x1405c3=_0x50c0('0x30')+_0xa51af+':'+_0x4669ea+':'+_0x1e1cf4++,_0x16097f=_0x8f5f02['createRange'](_0x20b04a,_0x5b22b7);_0x7f952d[_0x50c0('0xa8')][_0x50c0('0xc')](_0x1405c3,_0x16097f),null!==_0x4669ea&&_0x29c0f5[_0x50c0('0x6e')](_0x4669ea);}}[_0x50c0('0xc3')](_0x16d5d9){switch(_0x16d5d9[_0x50c0('0x27')]){case _0x50c0('0x67'):return'vid_start';case _0x50c0('0x39'):return _0x50c0('0x5b');default:return _0x50c0('0x4c');}}[_0x50c0('0xb0')](_0x1f2860,_0x49dd97){_0x1f2860[_0x50c0('0x95')]=null;for(const _0x3b8e76 in _0x1f2860){const _0x2ec3bf=_0x1f2860[_0x3b8e76];if(_0x2ec3bf instanceof _0x53c7bd){const _0x1c8e16=_0x49dd97[_0x50c0('0x7a')](_0x2ec3bf[_0x50c0('0x53')][_0x50c0('0xf2')]);_0x1f2860[_0x3b8e76]=this[_0x50c0('0x79')](_0x2ec3bf,_0x1c8e16);}if(_0x2ec3bf instanceof _0x4d128e){const _0x49abaf=_0x49dd97[_0x50c0('0x7a')](_0x2ec3bf[_0x50c0('0x53')]['rootName']);_0x1f2860[_0x3b8e76]=this[_0x50c0('0x81')](_0x2ec3bf,_0x49abaf);}_0x50c0('0x53')===_0x3b8e76&&(_0x1f2860[_0x50c0('0x53')]=_0x49dd97[_0x50c0('0x7a')](_0x1f2860[_0x50c0('0x53')][_0x50c0('0xf2')]));}}['_fixRange'](_0x38563a,_0x3b618d){return this['editor'][_0x50c0('0x99')][_0x50c0('0xdb')](this[_0x50c0('0x79')](_0x38563a['start'],_0x3b618d),this[_0x50c0('0x79')](_0x38563a['end'],_0x3b618d));}[_0x50c0('0x79')](_0x323ed0,_0x2819c8){return this[_0x50c0('0x105')][_0x50c0('0x99')][_0x50c0('0x32')](_0x2819c8,_0x323ed0[_0x50c0('0x94')],_0x323ed0[_0x50c0('0x7c')]);}[_0x50c0('0xec')](_0x382e4a){const _0x4f9f84=this[_0x50c0('0x29')][_0x50c0('0x7a')](_0x382e4a[_0x50c0('0xd5')][_0x50c0('0x53')][_0x50c0('0xf2')]),_0x5c9c6a=this[_0x50c0('0x79')](_0x382e4a['position'],_0x4f9f84),_0x1e8af9=null===_0x382e4a['_authorId']?null:_0x382e4a[_0x50c0('0x8d')]||this[_0x50c0('0x105')][_0x50c0('0x44')][_0x50c0('0x7a')](_0x50c0('0x9e'))['me']['id'],_0x27e734=_0x5c9c6a[_0x50c0('0x5c')],_0x40ba0a=this[_0x50c0('0x3c')],_0x594ed8=[];for(const _0x41e911 of _0x382e4a[_0x50c0('0x16')])if(_0x41e911['is'](_0x50c0('0xc1')))_0x594ed8['push'](this[_0x50c0('0xf4')](_0x41e911));else for(let _0x30475d=0x0;_0x30475d<_0x41e911['offsetSize'];_0x30475d++)_0x594ed8[_0x50c0('0x4b')](new _0x230b69(_0x50c0('0x1c'),{'vid':this[_0x50c0('0x3c')]++}));const _0x38a27d=this[_0x50c0('0x3c')];for(let _0x4dddb5=_0x40ba0a;_0x4dddb5<_0x38a27d;_0x4dddb5++)this[_0x50c0('0x21')][_0x50c0('0xc')](_0x4dddb5,{'userId':_0x1e8af9});_0x27e734[_0x50c0('0x89')](_0x5c9c6a[_0x50c0('0x83')],_0x594ed8);}[_0x50c0('0x5d')](_0x550b21){(_0x550b21=this[_0x50c0('0x58')](_0x550b21,this[_0x50c0('0x29')]))['_execute']();const _0x4c7504=null===_0x550b21['_authorId']?null:_0x550b21[_0x50c0('0x8d')]||this['editor'][_0x50c0('0x44')][_0x50c0('0x7a')](_0x50c0('0x9e'))['me']['id'],_0x2e417e=_0x550b21[_0x50c0('0xab')](),_0x2fc97e=_0x2e417e['parent'],_0x2265ab=_0x2e417e[_0x50c0('0x83')];!function _0x3d145a(_0x4df8aa,_0x5737e0,_0x1f935f,_0x1bb76b){for(let _0x3ec8b5=_0x1f935f;_0x3ec8b5<_0x1bb76b;_0x3ec8b5++){const _0x4fc939=_0x5737e0[_0x50c0('0x1d')](_0x3ec8b5);_0x4fc939['is']('element','$text')?_0x4df8aa[_0x50c0('0xc')](_0x4fc939[_0x50c0('0xa6')](_0x50c0('0x4c')),{'userId':_0x4c7504}):(_0x4df8aa[_0x50c0('0xc')](_0x4fc939[_0x50c0('0xa6')](_0x50c0('0xe')),{'userId':_0x4c7504}),_0x3d145a(_0x4df8aa,_0x4fc939,0x0,_0x4fc939[_0x50c0('0x3f')]),_0x4df8aa[_0x50c0('0xc')](_0x4fc939[_0x50c0('0xa6')](_0x50c0('0x5b')),{'userId':_0x4c7504}));}}(this[_0x50c0('0x21')],_0x2fc97e,_0x2265ab,_0x2265ab+_0x550b21[_0x50c0('0x4a')]);}['_handleMergeOperation'](_0x4d3d0c){const _0x504f3d=null===(_0x4d3d0c=this['_cloneOperation'](_0x4d3d0c,this[_0x50c0('0x29')]))['_authorId']?null:_0x4d3d0c['_authorId']||this[_0x50c0('0x105')][_0x50c0('0x44')][_0x50c0('0x7a')](_0x50c0('0x9e'))['me']['id'],_0x39a7aa=_0x4d3d0c['targetPosition'][_0x50c0('0x5c')],_0x397e3c=_0x4d3d0c[_0x50c0('0x34')][_0x50c0('0x5c')],_0x5bc17c=_0x39a7aa[_0x50c0('0xa6')]('vid_end'),_0x3d2a9d=_0x397e3c['getAttribute'](_0x50c0('0xe'));_0x39a7aa['_setAttribute']('vid_end',_0x397e3c[_0x50c0('0xa6')](_0x50c0('0x5b'))),_0x397e3c['_setAttribute'](_0x50c0('0x5b'),_0x5bc17c),this[_0x50c0('0x21')]['set'](_0x3d2a9d,{'userId':_0x504f3d}),this['_touched']['set'](_0x5bc17c,{'userId':_0x504f3d}),_0x4d3d0c[_0x50c0('0xd1')]();}['_handleSplitOperation'](_0x26caec){const _0x39d3c4=null===(_0x26caec=this[_0x50c0('0x58')](_0x26caec,this[_0x50c0('0x29')]))['_authorId']?null:_0x26caec[_0x50c0('0x8d')]||this[_0x50c0('0x105')]['plugins'][_0x50c0('0x7a')](_0x50c0('0x9e'))['me']['id'],_0x1a46b7=_0x26caec[_0x50c0('0xaf')],_0x3af6ef=_0x26caec[_0x50c0('0x10a')][_0x50c0('0x5c')];_0x26caec[_0x50c0('0xd1')]();const _0x3c48c6=_0x3af6ef[_0x50c0('0xa6')](_0x50c0('0x5b')),_0x29ca4e=_0x26caec[_0x50c0('0x65')][_0x50c0('0x25')];if(_0x1a46b7){const _0x29cd4a=_0x29ca4e['getAttribute']('vid_end'),_0x7e135b=_0x3af6ef[_0x50c0('0xa6')](_0x50c0('0x5b'));_0x3af6ef[_0x50c0('0x55')](_0x50c0('0x5b'),_0x29cd4a),_0x29ca4e[_0x50c0('0x55')]('vid_end',_0x7e135b),this[_0x50c0('0x21')][_0x50c0('0xc')](_0x3af6ef[_0x50c0('0xa6')](_0x50c0('0x5b')),{'userId':_0x39d3c4}),this[_0x50c0('0x21')][_0x50c0('0xc')](_0x29ca4e['getAttribute'](_0x50c0('0xe')),{'userId':_0x39d3c4});}else{const _0x32343f=this[_0x50c0('0x3c')]++,_0xa069e=this[_0x50c0('0x3c')]++;_0x3af6ef['_setAttribute'](_0x50c0('0x5b'),_0x32343f),_0x29ca4e['_setAttribute'](_0x50c0('0xe'),_0xa069e),_0x29ca4e[_0x50c0('0x55')](_0x50c0('0x5b'),_0x3c48c6),this[_0x50c0('0x21')][_0x50c0('0xc')](_0x32343f,{'userId':_0x39d3c4}),this[_0x50c0('0x21')][_0x50c0('0xc')](_0xa069e,{'userId':_0x39d3c4});}}['_handleMarkerOperation'](_0x5d1ab8){if(!_0x5d1ab8['affectsData'])return;const _0x1a6e7a=(_0x5d1ab8=this[_0x50c0('0x58')](_0x5d1ab8,this[_0x50c0('0xa2')]))[_0x50c0('0x70')]?_0x5d1ab8[_0x50c0('0x70')][_0x50c0('0x53')]:null,_0x1371cd=_0x5d1ab8[_0x50c0('0x102')]?_0x5d1ab8[_0x50c0('0x102')][_0x50c0('0x53')]:null;_0x1a6e7a&&this[_0x50c0('0x57')][_0x50c0('0xb9')](_0x5d1ab8[_0x50c0('0x8c')]),_0x1371cd&&this[_0x50c0('0x57')][_0x50c0('0xc')](_0x5d1ab8[_0x50c0('0x8c')],_0x5d1ab8['newRange'][_0x50c0('0x13')]());const _0x14d707=null===_0x5d1ab8[_0x50c0('0x8d')]?null:_0x5d1ab8[_0x50c0('0x8d')]||this['editor']['plugins'][_0x50c0('0x7a')]('Users')['me']['id'],_0x4a84d9=_0x5d1ab8[_0x50c0('0x8c')];if(!this[_0x50c0('0xbb')][_0x50c0('0xa0')](_0x4a84d9))return void this[_0x50c0('0xbb')][_0x50c0('0xc')](_0x4a84d9,{'range':_0x5d1ab8['oldRange'],'userId':_0x14d707});const _0x1b9147=this[_0x50c0('0xbb')][_0x50c0('0x7a')](_0x4a84d9),_0x2c63cf=_0x1b9147[_0x50c0('0x1e')],_0x3897b2=_0x5d1ab8[_0x50c0('0x102')];null==_0x2c63cf&&null==_0x3897b2||_0x2c63cf&&_0x3897b2&&_0x2c63cf['isEqual'](_0x3897b2)?this['_touchedMarkers'][_0x50c0('0xb9')](_0x5d1ab8[_0x50c0('0x8c')]):_0x1b9147[_0x50c0('0x62')]=_0x14d707;}['_handleRootOperation'](_0x1999b6,_0x5072cc){this[_0x50c0('0xa2')][_0x50c0('0xa0')](_0x1999b6[_0x50c0('0xf2')])?this[_0x50c0('0xa2')][_0x50c0('0x7a')](_0x1999b6[_0x50c0('0xf2')])[_0x50c0('0xe0')]=_0x1999b6['isAdd']:(this[_0x50c0('0xa2')][_0x50c0('0xc')](_0x1999b6[_0x50c0('0xf2')],G(_0x1999b6[_0x50c0('0xf2')],!0x0)),this[_0x50c0('0xf9')][_0x50c0('0xc')](_0x1999b6[_0x50c0('0xf2')],{}),_0x5072cc&&this[_0x50c0('0x29')][_0x50c0('0xc')](_0x1999b6[_0x50c0('0xf2')],G(_0x1999b6['rootName'],!0x0)));const _0x5c1352=null===_0x1999b6['_authorId']?null:_0x1999b6[_0x50c0('0x8d')]||this[_0x50c0('0x105')][_0x50c0('0x44')]['get'](_0x50c0('0x9e'))['me']['id'],_0x3fa05b=this[_0x50c0('0xa7')][_0x50c0('0x7a')](_0x1999b6[_0x50c0('0xf2')]);_0x3fa05b&&_0x3fa05b[_0x50c0('0x62')]===_0x5c1352?this[_0x50c0('0xa7')][_0x50c0('0xb9')](_0x1999b6[_0x50c0('0xf2')]):this[_0x50c0('0xa7')][_0x50c0('0xc')](_0x1999b6['rootName'],{'userId':_0x5c1352,'isAttached':_0x1999b6[_0x50c0('0x92')]});}[_0x50c0('0xca')](_0x2cf495){const _0x225269=this[_0x50c0('0xf9')]['get'](_0x2cf495[_0x50c0('0x53')][_0x50c0('0xf2')]);null===_0x2cf495[_0x50c0('0xf')]?delete _0x225269[_0x2cf495[_0x50c0('0x93')]]:_0x225269[_0x2cf495[_0x50c0('0x93')]]=_0x2cf495[_0x50c0('0xf')];}}function q(_0x186637){const _0x3e1de0=G(_0x186637[_0x50c0('0xf2')],_0x186637[_0x50c0('0xd4')]());for(const _0x2d2e1e of _0x186637[_0x50c0('0x47')]()){const _0x42f701=_0x2d2e1e[_0x50c0('0x2d')](!0x0);_0x3e1de0[_0x50c0('0x8b')](_0x42f701);}return _0x3e1de0;}function G(_0xb917ac,_0x37bae6=!0x0){const _0x5ec567=new _0x88f57b();return _0x5ec567[_0x50c0('0xf2')]=_0xb917ac,_0x5ec567[_0x50c0('0xe0')]=_0x37bae6,_0x5ec567[_0x50c0('0xd4')]=()=>_0x5ec567[_0x50c0('0xe0')],_0x5ec567;}function L(_0x131eb7,_0x3d967d,_0x404ec7){const _0x5a9ab4=_0x50c0('0x39')==_0x131eb7['type']?_0x404ec7[_0x50c0('0x59')](_0x131eb7[_0x50c0('0x5f')],_0x50c0('0xef')):_0x404ec7[_0x50c0('0xd8')](_0x131eb7[_0x50c0('0x5f')]);return _0x404ec7[_0x50c0('0x32')](_0x3d967d,_0x5a9ab4['path'],_0x5a9ab4['stickiness']);}function W(_0x5baf3b,_0x2a1081,_0x396041){const _0x339aad=_0x50c0('0x67')==_0x5baf3b[_0x50c0('0x27')]?_0x396041[_0x50c0('0x59')](_0x5baf3b[_0x50c0('0x5f')],0x0):_0x396041[_0x50c0('0xba')](_0x5baf3b['item']);return _0x396041['createPositionFromPath'](_0x2a1081,_0x339aad['path'],_0x339aad['stickiness']);}