@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231212.0 → 0.0.0-nightly-20231214.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 _0x4c83=['hasContent','_fixRange','_processRootBeforeSave','config','_revisionId','text','addRevisionData','_generateTape','string','_isPendingUpdate','_handleRootAttributeOperation','for','_initialRevisionId','end','_baseRootsAttributes','rootsAttributes','_diffRoots','_bufferedUpdates','_bufferUpdate','sourcePosition','_loadRevisionData','_createCurrentRevision','path','revision:','position','insertion','afterInit','getAttribute','document','vid_end','size','_handleMoveOperation','createRange','finally','getRoot','pluginName','NEGATIVE_INFINITY','_makeIdsRoot','getCurrentRevisionId','getData','insert','RevisionTracker','shift','getTransformedByOperation','paragraph','_prepareViewToSave','sort','_saveMetaData','_insertChild','revision','_makeModelFromViewString','authorsIds','_getViewJson','plugins','_touched','buildRevisionData','_applyOperations','_appendChild','push','markerToData','_pendingAction','_touchedRoots','clone','getRevisionDocumentData','_cloneOperation','_removePendingAction','RealTimeCollaborationClient','map','newRange','tableCell','attachChange','getMovedRangeStart','changeRootAttribute','getChildren','sendBufferedUpdates','_getPreviousFrom','Empty\x20document','revisionHistory.resumeUnsavedRevision','_isAttached','markers','_lastTo','_operations','_createInitialRevision','reinsert','_getBaseVids','_transformMarkers','_createFromRanges','getWalker','repository','slice','_continueCurrentRevision','_removeRevisionMarkers','data','requires','useFillerType','some','_copyMarkers','createRevision','from','_lastFrom','_touchedMarkers','item','$graveyard','type','createPositionAt','getOperations','values','newValue','attributes','isEqual','has','vid','_getState','_source','elementEnd','$text','merge','removeRootAttribute','_handleOperation','getAncestors','_loadState','name','marked','_startingRevisionId','processor','childCount','_reset','rootName','createdAt','_fixOperation','_fixPosition','isAdd','documentFragment','toData','_getFromVersion','editing','version','reverse','key','children','isAttached','getRevisionRootsAttributes','getChild','initial','source','deletions','includes','parent','createRangeIn','setRevisionData','getTime','_diffRootsAttributes','offsetSize','_idsRoots','get','insertionPosition','editor','createPositionAfter','currentRevision','_handleMarkerOperation','root','element','revision-end','_update','_handleRootOperation','data-revision-','set','graveyardPosition','fromEntries','keepParagraph','stickiness','start','loadState','oldRange','_savedMetaData','baseVersion','remove','_setConversion','default','_execute','add','targetPosition','addRoot','getAttributes','insertions','offset','PENDING_ACTION_REVISION_HISTORY','toView','_findInsertionIndex','_makeRevision','filter','elementStart','getUser','model','_markChanges','forEach','Users','_authorId','_addPendingAction','startsWith','init','delete','_markers','createPositionBefore','saveRevision','length','range','editor-initial-data-replaced-with-revision-data','collaboration.channelId','addRootAttribute','creator','keys','getOperation','then','marker','isEnabled','getRootNames','define','initialData','_baseIdsRoots','creatorId','clear','locale','getIndex','history','getRevision','dataDowncast','view','roots','adapter','detachRoot','_replaceEditorDataWithRevisionData','attributesBefore','userId','_handleInsertOperation','_getVidAttributeName','howMany','PendingActions','previousPosition','_baseRoots','diffData','split','createPositionFromPath','resolve','move','_handleMergeOperation','_calculateMetaData','find','trim','upcast','_loadedStateData','getNodeByPath','_setAttribute','_startingVersion','parse','toModel','fromVersion','isReady','vid_start','_isInit','revision-start','max','toVersion','attributesAfter','authors','_revisionDataBuilder','addRevision'];(function(_0x5afec8,_0x4c8397){const _0x48e72c=function(_0x3f39b4){while(--_0x3f39b4){_0x5afec8['push'](_0x5afec8['shift']());}};_0x48e72c(++_0x4c8397);}(_0x4c83,0x1e2));const _0x48e7=function(_0x5afec8,_0x4c8397){_0x5afec8=_0x5afec8-0x0;let _0x48e72c=_0x4c83[_0x5afec8];return _0x48e72c;};import{Users as _0x51497b}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x303873,PendingActions as _0x45a542}from'ckeditor5/src/core';import{logWarning as _0x432ec6,uid as _0x2015e0}from'ckeditor5/src/utils';import{Position as _0x4aad63,Range as _0xbc7ce5,Element as _0x118471,DocumentFragment as _0x5dd335,ViewText as _0x46907f,ViewElement as _0x27f53a,ViewContainerElement as _0x1237d5,ViewAttributeElement as _0x307c2d,ViewEmptyElement as _0x45f515,ViewRawElement as _0x1f678d,ViewUIElement as _0x12eeb2,ViewDocumentFragment as _0x2d79ab}from'ckeditor5/src/engine';import _0x36a846 from'./revisionsrepository';import{getTranslation as _0x420640}from'./utils/common-translations';import{cloneDeep as _0x186c6b,isEqual as _0xcfdd79}from'lodash-es';const B={'c':_0x1237d5,'a':_0x307c2d,'e':_0x45f515,'r':_0x1f678d,'u':_0x12eeb2};export default class l extends _0x303873{static get[_0x48e7('0x57')](){return _0x48e7('0x5d');}static get[_0x48e7('0x91')](){return[_0x51497b,_0x36a846,_0x45a542];}constructor(_0x3ad289){super(_0x3ad289),this[_0x48e7('0xe')]=null,this[_0x48e7('0xd2')]=null,this[_0x48e7('0x32')]=new H(this['editor']),this[_0x48e7('0x40')]=this[_0x48e7('0xd0')]['config'][_0x48e7('0xce')](_0x48e7('0x104'))||_0x48e7('0xc3'),this[_0x48e7('0x45')]=new Map(),this[_0x48e7('0x23')]=null;const _0x40f7ad=_0x2015e0();this[_0x48e7('0xa5')]={'history':this[_0x48e7('0xd0')][_0x48e7('0xf5')][_0x48e7('0x50')][_0x48e7('0x9')],'getLatestVersion':()=>Promise[_0x48e7('0x1c')](this['editor'][_0x48e7('0xf5')]['document'][_0x48e7('0xbc')]),'getCurrentRevisionId':()=>_0x40f7ad},this[_0x48e7('0xda')](_0x48e7('0x2a'),!0x1),this[_0x48e7('0xda')](_0x48e7('0x0'),!0x0),this['set'](_0x48e7('0x3d'),!0x1),this[_0x48e7('0xd0')][_0x48e7('0x37')][_0x48e7('0x2')](_0x48e7('0x81'),!0x0),this[_0x48e7('0xd0')]['conversion'][_0x48e7('0x3f')](_0x48e7('0x22'))['dataToMarker']({'view':_0x48e7('0x65')});}[_0x48e7('0xfc')](){this['repository']=this[_0x48e7('0xd0')][_0x48e7('0x69')]['get']('RevisionsRepository'),this[_0x48e7('0xe5')](),this['editor'][_0x48e7('0x90')]['on']('ready',()=>{const _0x4a7bc6=this[_0x48e7('0x8c')][_0x48e7('0xa')](0x0),_0x468f8b=_0x4a7bc6&&null===_0x4a7bc6['creator']?_0x4a7bc6:null;if(this[_0x48e7('0x8e')]=!!_0x468f8b&&this[_0x48e7('0xd0')][_0x48e7('0x37')][_0x48e7('0xce')](_0x48e7('0x81')),this[_0x48e7('0xd0')][_0x48e7('0x69')][_0x48e7('0xa2')](_0x48e7('0x76'))){const _0x413754=this[_0x48e7('0xa5')][_0x48e7('0x5a')](),_0x3e2a12=this[_0x48e7('0x8c')][_0x48e7('0xa')](_0x413754);if(_0x3e2a12)this[_0x48e7('0x26')]=_0x3e2a12[_0x48e7('0x29')],this['_continueCurrentRevision']=!0x1;else{const _0x2a5d2=this[_0x48e7('0xa5')][_0x48e7('0x9')][_0x48e7('0x85')][_0x48e7('0x20')](_0x5b6305=>!_0x5b6305[_0x48e7('0x2c')]),_0x308d8b=_0x2a5d2?_0x2a5d2[_0x48e7('0xe3')]:this[_0x48e7('0xa5')][_0x48e7('0x9')][_0x48e7('0xbc')];_0x4a7bc6?(_0x4a7bc6[_0x48e7('0x2f')]<_0x308d8b&&_0x4a7bc6[_0x48e7('0xd7')]({'toVersion':_0x308d8b}),this[_0x48e7('0x8e')]?(this['_source'][_0x48e7('0x5a')]=()=>_0x468f8b['id'],this[_0x48e7('0x26')]=_0x468f8b['fromVersion']):(this[_0x48e7('0x26')]=_0x4a7bc6[_0x48e7('0x2f')],this[_0x48e7('0x8e')]=!0x1)):(this[_0x48e7('0x26')]=_0x308d8b,this[_0x48e7('0x8e')]=!0x1);}}else _0x468f8b&&(this[_0x48e7('0xd0')][_0x48e7('0xf5')][_0x48e7('0x50')]['history']['version']=Math[_0x48e7('0x2e')](_0x468f8b[_0x48e7('0x2f')],this[_0x48e7('0xd0')][_0x48e7('0xf5')][_0x48e7('0x50')][_0x48e7('0x9')][_0x48e7('0xbc')]),_0x468f8b['fromVersion']===_0x468f8b['toVersion']?(0x0!==_0x468f8b[_0x48e7('0x29')]&&(this[_0x48e7('0xa5')][_0x48e7('0x5a')]=()=>_0x468f8b['id']),this[_0x48e7('0x8e')]=!0x1):this['_continueCurrentRevision']&&(this[_0x48e7('0xa5')]['getCurrentRevisionId']=()=>_0x468f8b['id'],this[_0x48e7('0x26')]=_0x468f8b[_0x48e7('0x29')])),this[_0x48e7('0x8e')]||(this[_0x48e7('0x26')]=this[_0x48e7('0xd0')][_0x48e7('0xf5')][_0x48e7('0x50')][_0x48e7('0xbc')]);this[_0x48e7('0x32')][_0x48e7('0xfc')](this[_0x48e7('0xa5')][_0x48e7('0x9')]),this['_createInitialRevision'](this[_0x48e7('0x26')]),this[_0x48e7('0x49')](this[_0x48e7('0x26')]),this['adapter']&&this[_0x48e7('0x7e')]();}),this['bind']('isReady')['to'](this,_0x48e7('0x3d'),_0x4fb706=>!_0x4fb706);}async[_0x48e7('0x4e')](){if(this[_0x48e7('0x8c')][_0x48e7('0x101')]>0x0){const _0x3582cd=this[_0x48e7('0x8c')][_0x48e7('0xa')](0x0),_0xfde8bb=await this[_0x48e7('0x73')](_0x3582cd),_0xf44dc9=await this['getRevisionRootsAttributes'](_0x3582cd);this[_0x48e7('0x10')](_0xfde8bb,_0xf44dc9);}}['setSource'](_0x3310d1){this[_0x48e7('0xa5')]=_0x3310d1;}async['update'](){const _0x853d13=await this['_source']['getLatestVersion']();if(_0x853d13>this[_0x48e7('0xd2')]['toVersion']){await this[_0x48e7('0xac')]();const _0x130dad=this[_0x48e7('0x6b')]({'revision':this[_0x48e7('0xd2')],'to':_0x853d13});_0x130dad[_0x48e7('0x31')]=_0x130dad['authorsIds'][_0x48e7('0x77')](_0x329e7=>this['editor'][_0x48e7('0x69')]['get'](_0x48e7('0xf8'))[_0x48e7('0xf4')](_0x329e7)),this[_0x48e7('0xd2')][_0x48e7('0xd7')](_0x130dad);}}async[_0x48e7('0xac')](){this[_0x48e7('0x8e')]&&!this[_0x48e7('0x23')]&&(await this[_0x48e7('0x48')](this[_0x48e7('0xd2')]),this['_revisionDataBuilder'][_0x48e7('0xe0')](this[_0x48e7('0xd2')]),this[_0x48e7('0x23')]={'fromVersion':this['currentRevision'][_0x48e7('0x29')],'authors':this['currentRevision'][_0x48e7('0x31')][_0x48e7('0x8d')]()});}async[_0x48e7('0x100')](_0xd9e4f3={},_0x5b1129=null){const _0x1277e2=[];await this['_loadState'](),this[_0x48e7('0x8e')]=!0x1,_0x5b1129>this[_0x48e7('0xd2')]['toVersion']&&(_0x5b1129=null),null===_0x5b1129&&(_0x5b1129=await this[_0x48e7('0xa5')]['getLatestVersion']());const _0x357048=this[_0x48e7('0xba')](_0x5b1129),_0x1f339c=this[_0x48e7('0x6b')]({'from':_0x357048,'to':_0x5b1129});if(this[_0x48e7('0xd2')][_0x48e7('0x2f')]<_0x5b1129){const _0x38178a=this[_0x48e7('0x6b')]({'revision':this[_0x48e7('0xd2')],'from':_0x5b1129,'to':_0x5b1129});_0x38178a[_0x48e7('0x31')]=[],_0x38178a[_0x48e7('0x67')]=[],_0x38178a['id']=this[_0x48e7('0xd2')]['id'],this[_0x48e7('0xd2')][_0x48e7('0xd7')](_0x38178a,!0x0),delete _0x38178a[_0x48e7('0x31')],_0x1277e2['push'](_0x38178a);}_0xd9e4f3[_0x48e7('0x5')]=this[_0x48e7('0xd0')][_0x48e7('0x69')][_0x48e7('0xce')](_0x48e7('0xf8'))['me']['id'],_0xd9e4f3[_0x48e7('0xad')]=_0xd9e4f3[_0x48e7('0xad')]||null,_0xd9e4f3['id']=_0xd9e4f3['id']||_0x2015e0(),_0xd9e4f3={..._0xd9e4f3,..._0x1f339c};const _0x41e9b5=this[_0x48e7('0x3a')](_0xd9e4f3);_0x1277e2[_0x48e7('0x6e')](_0xd9e4f3);const _0x5d283b=this[_0x48e7('0x8c')][_0x48e7('0x8')](_0x41e9b5);if(0x0!==_0x5d283b){const _0x3d4313=this['repository'][_0x48e7('0xa')](_0x5d283b-0x1);if(_0x3d4313[_0x48e7('0x29')]!==_0x5b1129){const _0x1c7446=this[_0x48e7('0x32')][_0x48e7('0x5b')](_0x5b1129,_0x3d4313[_0x48e7('0x2f')]),_0x3bc353={'id':_0x3d4313['id'],'diffData':_0x1c7446[_0x48e7('0x19')],'authorsIds':_0x1c7446[_0x48e7('0x67')],'authors':_0x1c7446[_0x48e7('0x67')][_0x48e7('0x77')](_0x173e72=>this['editor'][_0x48e7('0x69')][_0x48e7('0xce')](_0x48e7('0xf8'))[_0x48e7('0xf4')](_0x173e72)),'fromVersion':_0x5b1129};_0x3d4313===this[_0x48e7('0xd2')]&&(_0x3bc353['createdAt']=new Date(_0xd9e4f3[_0x48e7('0xb4')][_0x48e7('0xca')]()+0xa)),_0x3d4313[_0x48e7('0xd7')](_0x3bc353,!0x0),delete _0x3bc353['authors'],_0x1277e2[_0x48e7('0x6e')](_0x3bc353);}}if(this[_0x48e7('0xe')]){for(const _0x4dad23 of _0x1277e2)this[_0x48e7('0x46')](_0x4dad23['id'],_0x4dad23,!0x0);this['sendBufferedUpdates']();}return _0x41e9b5;}[_0x48e7('0x3a')](_0x3d61fb){const _0x562a0c=this[_0x48e7('0x8c')][_0x48e7('0x95')](_0x3d61fb);return this[_0x48e7('0xe')]&&_0x562a0c['on'](_0x48e7('0xd7'),(_0x216c01,_0x237101,_0x1e1bc9)=>{_0x1e1bc9||(this['_bufferUpdate'](_0x237101['id'],_0x237101,!0x0),this['sendBufferedUpdates']());}),this['repository'][_0x48e7('0x33')](_0x562a0c,this[_0x48e7('0xf0')](_0x562a0c)),_0x562a0c;}async['getRevisionDocumentData'](_0x385000){await this['_loadRevisionData'](_0x385000);const _0x368809={};for(const _0x2ab1a8 in _0x385000[_0x48e7('0x19')]){if(_0x385000[_0x48e7('0x19')][_0x2ab1a8][_0x48e7('0x7a')]&&!_0x385000[_0x48e7('0x19')][_0x2ab1a8][_0x48e7('0x7a')]['isAttached'])continue;const _0x50c4f2=this['_removeRevisionMarkers'](JSON['parse'](_0x385000[_0x48e7('0x19')][_0x2ab1a8]['insertions'])),_0x2ffceb=this[_0x48e7('0xd0')][_0x48e7('0xbb')][_0x48e7('0xc')][_0x48e7('0x50')],_0x595606=new _0x2d79ab(_0x2ffceb,_0x50c4f2[_0x48e7('0x77')](_0x3d348e=>J(_0x3d348e,this[_0x48e7('0xd0')])));this['editor'][_0x48e7('0x90')]['processor'][_0x48e7('0x92')](_0x48e7('0xae')),_0x368809[_0x2ab1a8]=this['editor']['data'][_0x48e7('0xb0')][_0x48e7('0xb9')](_0x595606),this['editor'][_0x48e7('0x90')][_0x48e7('0xb0')][_0x48e7('0x92')](_0x48e7('0xe6'));}return _0x368809;}async[_0x48e7('0xc1')](_0x55ceef){await this['_loadRevisionData'](_0x55ceef);const _0x27afba={};for(const _0x33a453 in _0x55ceef[_0x48e7('0x19')])_0x55ceef[_0x48e7('0x19')][_0x33a453]['attachChange']&&!_0x55ceef[_0x48e7('0x19')][_0x33a453][_0x48e7('0x7a')][_0x48e7('0xc0')]||(_0x27afba[_0x33a453]=_0x55ceef[_0x48e7('0x19')][_0x33a453][_0x48e7('0x30')]||{});return _0x27afba;}['sendBufferedUpdates'](){if(0x0===this[_0x48e7('0x45')][_0x48e7('0x52')])return;if(this[_0x48e7('0x3d')])return;let _0x120898=Array[_0x48e7('0x96')](this['_bufferedUpdates'][_0x48e7('0x9e')]());this[_0x48e7('0x45')][_0x48e7('0x6')]();for(let _0xb5aec8=0x0;_0xb5aec8<_0x120898[_0x48e7('0x101')];_0xb5aec8++){const _0x56ca2d=_0x120898[_0xb5aec8];let _0x4d4c8a=!0x1;for(const _0x1dca77 of Object[_0x48e7('0x107')](_0x56ca2d))void 0x0===_0x56ca2d[_0x1dca77]?delete _0x56ca2d[_0x1dca77]:'id'!==_0x1dca77&&(_0x4d4c8a=!0x0);_0x4d4c8a||(_0x120898[_0xb5aec8]=null);}if(_0x120898=_0x120898[_0x48e7('0xf2')](_0xe8ce28=>null!==_0xe8ce28),!_0x120898[_0x48e7('0x101')])return;for(let _0x4346ee=0x0;_0x4346ee<_0x120898[_0x48e7('0x101')];_0x4346ee++){const _0xce09f=_0x120898[_0x4346ee];void 0x0!==_0xce09f[_0x48e7('0x29')]&&void 0x0===_0xce09f['toVersion']&&(_0xce09f['toVersion']=this['repository'][_0x48e7('0xa')](_0xce09f['id'])['toVersion']),void 0x0!==_0xce09f[_0x48e7('0x2f')]&&void 0x0===_0xce09f[_0x48e7('0x29')]&&(_0xce09f['fromVersion']=this['repository'][_0x48e7('0xa')](_0xce09f['id'])[_0x48e7('0x29')]);}const _0x78402c=this[_0x48e7('0xd0')]['config'][_0x48e7('0xce')](_0x48e7('0x104'));this[_0x48e7('0x3d')]=!0x0,this[_0x48e7('0xfa')](),this['adapter']['updateRevisions'](_0x120898,_0x78402c)[_0x48e7('0x55')](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3fad6b=>{if(_0x3fad6b)for(const _0xc92f28 of _0x3fad6b)this['setRevisionData']({'id':_0xc92f28['id'],'createdAt':_0xc92f28['createdAt']});this[_0x48e7('0x75')](),this[_0x48e7('0x7e')]();});}[_0x48e7('0x10')](_0x54b1ae,_0x50570e){let _0x5cc1bc=this[_0x48e7('0xd0')][_0x48e7('0x37')][_0x48e7('0xce')](_0x48e7('0x3')),_0x4f34fd=this[_0x48e7('0xd0')][_0x48e7('0x37')][_0x48e7('0xce')]('rootsAttributes');if(void 0x0===_0x5cc1bc){_0x5cc1bc={};for(const _0x43649b of this['editor'][_0x48e7('0xf5')][_0x48e7('0x50')][_0x48e7('0x1')]())_0x5cc1bc[_0x43649b]='';}if(_0x48e7('0x3c')==typeof _0x5cc1bc&&(_0x5cc1bc={'main':_0x5cc1bc}),void 0x0===_0x4f34fd){_0x4f34fd={};for(const _0x3c002c of this[_0x48e7('0xd0')]['model'][_0x48e7('0x50')]['getRootNames']())_0x4f34fd[_0x3c002c]={};}let _0x4f53e7=!0x1;const _0x26cdec=Object[_0x48e7('0x107')](_0x5cc1bc),_0x2d56dd=Object[_0x48e7('0x107')](_0x54b1ae);for(const _0x44241c of _0x26cdec){if(_0x5cc1bc[_0x44241c]!==_0x54b1ae[_0x44241c]&&''!==_0x5cc1bc[_0x44241c][_0x48e7('0x21')]()){_0x4f53e7=!0x0;break;}if(!_0xcfdd79(_0x4f34fd[_0x44241c],_0x50570e[_0x44241c])&&Object[_0x48e7('0x107')](_0x4f34fd[_0x44241c])[_0x48e7('0x101')]>0x0){_0x4f53e7=!0x0;break;}}_0x4f53e7||(_0x4f53e7=_0x2d56dd[_0x48e7('0x93')](_0x334a45=>!this[_0x48e7('0xd0')][_0x48e7('0xf5')]['document'][_0x48e7('0x56')](_0x334a45))),_0x4f53e7&&_0x432ec6(_0x48e7('0x103'),{'editorData':_0x5cc1bc,'editorRootsAttributes':_0x4f34fd,'revisionData':_0x54b1ae,'revisionRootsAttributes':_0x50570e}),this[_0x48e7('0xd0')][_0x48e7('0x37')][_0x48e7('0xda')]('initialData',_0x54b1ae),this['editor'][_0x48e7('0x37')]['set'](_0x48e7('0x43'),_0x50570e);}['_addPendingAction'](){if(!this[_0x48e7('0x70')]){const _0x43e5e4=this['editor']['plugins']['get'](_0x48e7('0x16'));this[_0x48e7('0x70')]=_0x43e5e4[_0x48e7('0xe8')](_0x420640(this[_0x48e7('0xd0')]['locale'],_0x48e7('0xee')));}}[_0x48e7('0x75')](){this[_0x48e7('0x70')]&&(this[_0x48e7('0xd0')]['plugins'][_0x48e7('0xce')]('PendingActions')[_0x48e7('0xe4')](this['_pendingAction']),this[_0x48e7('0x70')]=null);}['_findInsertionIndex'](_0x35c6ba){const _0x46bfd9=this[_0x48e7('0x8c')]['getRevisions']();_0x46bfd9[_0x48e7('0xbd')]();let _0x235a2e=0x0;for(;_0x235a2e<_0x46bfd9[_0x48e7('0x101')];){const _0x5da17d=_0x46bfd9[_0x235a2e];if(_0x5da17d===this['currentRevision']){_0x235a2e++;continue;}if(_0x5da17d['id']===this['_initialRevisionId'])break;const _0x3f316c=_0x35c6ba[_0x48e7('0x2f')]-_0x5da17d[_0x48e7('0x2f')]||_0x35c6ba['fromVersion']-_0x5da17d[_0x48e7('0x29')];if(_0x3f316c>0x0)break;if(_0x3f316c<0x0)_0x235a2e++;else{if(!_0x35c6ba[_0x48e7('0x106')]&&_0x5da17d[_0x48e7('0x106')])break;if(_0x5da17d['creator']||!_0x35c6ba['creator']){if(_0x35c6ba[_0x48e7('0xb4')]>_0x5da17d[_0x48e7('0xb4')])break;_0x235a2e++;}else _0x235a2e++;}}return _0x235a2e;}[_0x48e7('0xc9')](_0x4bf3a6){const _0x115218=this[_0x48e7('0x8c')][_0x48e7('0xa')](_0x4bf3a6['id']);if(_0x4bf3a6[_0x48e7('0xb4')]&&(_0x4bf3a6[_0x48e7('0xb4')]=new Date(_0x4bf3a6[_0x48e7('0xb4')])),_0x4bf3a6[_0x48e7('0x67')]){const _0x585918=this[_0x48e7('0xd0')][_0x48e7('0x69')]['get'](_0x48e7('0xf8'));_0x4bf3a6[_0x48e7('0x31')]=_0x4bf3a6[_0x48e7('0x67')][_0x48e7('0x77')](_0x2e3f09=>_0x585918[_0x48e7('0xf4')](_0x2e3f09));}_0x115218[_0x48e7('0xd7')](_0x4bf3a6,!0x0);}[_0x48e7('0x6b')]({revision:_0x186659=null,from:_0x38e198=null,to:_0x5649c9=null}){_0x38e198=null!==_0x38e198?_0x38e198:_0x186659[_0x48e7('0x29')],_0x5649c9=null!==_0x5649c9?_0x5649c9:_0x186659[_0x48e7('0x2f')];const _0x332329=this[_0x48e7('0x32')][_0x48e7('0x5b')](_0x38e198,_0x5649c9),_0x134596={'diffData':_0x332329[_0x48e7('0x19')],'authorsIds':_0x332329[_0x48e7('0x67')],'fromVersion':_0x38e198,'toVersion':_0x5649c9};if(!_0x186659||_0x5649c9!==_0x186659['toVersion']){const _0x908103=_0x5649c9-0x1,_0x5c6c22=this['_source'][_0x48e7('0x9')][_0x48e7('0x108')](_0x908103);_0x134596[_0x48e7('0xb4')]=_0x5c6c22&&_0x5c6c22[_0x48e7('0xb4')]||new Date();}if(this['_loadedStateData']&&_0x38e198===this[_0x48e7('0x23')][_0x48e7('0x29')])for(const _0x1b2f6c of this['_loadedStateData']['authors'])_0x134596['authorsIds'][_0x48e7('0xc6')](_0x1b2f6c['id'])||_0x134596['authorsIds'][_0x48e7('0x6e')](_0x1b2f6c['id']);return _0x134596;}[_0x48e7('0x48')](_0x5344e0){if(!_0x5344e0||_0x5344e0['diffData'])return Promise['resolve']();{const _0x3476bf=this['editor'][_0x48e7('0x37')][_0x48e7('0xce')](_0x48e7('0x104'));return this[_0x48e7('0xe')][_0x48e7('0xa')]({'channelId':_0x3476bf,'revisionId':_0x5344e0['id']})[_0x48e7('0x109')](_0x62f4ef=>{_0x5344e0['diffData']=_0x62f4ef[_0x48e7('0x19')];});}}[_0x48e7('0x46')](_0x5ae0af,_0x298b9f,_0x580832){if(this[_0x48e7('0x45')][_0x48e7('0xa2')](_0x5ae0af)){const _0x591e5a=this[_0x48e7('0x45')]['get'](_0x5ae0af);_0x298b9f=_0x580832?{..._0x591e5a,..._0x298b9f}:{..._0x298b9f,..._0x591e5a};}this[_0x48e7('0x45')][_0x48e7('0xda')](_0x5ae0af,_0x298b9f);}[_0x48e7('0xba')](_0x5c9517){const _0x487b28=this[_0x48e7('0x8c')]['getRevisions']();_0x487b28[_0x48e7('0xbd')](),_0x487b28[_0x48e7('0x5e')]();const _0x57198d=_0x487b28[_0x48e7('0x20')](_0x1c6967=>_0x1c6967[_0x48e7('0x2f')]<=_0x5c9517)[_0x48e7('0x2f')];return _0x57198d<this['_startingVersion']?this[_0x48e7('0x26')]:_0x57198d;}[_0x48e7('0x86')](_0x43434e){const _0x19a2a4=this['repository'][_0x48e7('0xa')](this[_0x48e7('0x8c')]['length']-0x1);if(_0x19a2a4)this[_0x48e7('0x40')]=_0x19a2a4['id'];else{const _0x403df4=!this['editor'][_0x48e7('0xf5')][_0x48e7('0x50')]['roots']['find'](_0x7d38ed=>this[_0x48e7('0xd0')]['model'][_0x48e7('0x34')](_0x7d38ed)),_0x55d3e0=this[_0x48e7('0xd0')][_0x48e7('0x69')][_0x48e7('0xce')](_0x48e7('0xf8'))['me']['id'],_0x3705f0=_0x420640(this[_0x48e7('0xd0')][_0x48e7('0x7')],_0x403df4?_0x48e7('0x80'):'Initial\x20revision');this['_makeRevision']({'from':_0x43434e,'to':_0x43434e,'id':this['_initialRevisionId'],'name':_0x3705f0,'creatorId':_0x55d3e0});}}['_createCurrentRevision'](_0x27bdf0){const _0x211003=this[_0x48e7('0xa5')][_0x48e7('0x5a')]();this[_0x48e7('0xd2')]=this[_0x48e7('0x8c')][_0x48e7('0xa')](_0x211003),this[_0x48e7('0xd2')]||(this['currentRevision']=this['_makeRevision']({'from':_0x27bdf0,'to':_0x27bdf0,'id':_0x211003,'name':'','creatorId':null}));}[_0x48e7('0xf1')]({name:_0x1b80f7,from:_0x1b6f78,to:_0x3ca581,creatorId:_0x38fba5,id:_0x3f1881}){const _0x114308=this[_0x48e7('0x6b')]({'from':_0x1b6f78,'to':_0x3ca581});_0x114308['name']=_0x1b80f7,_0x114308[_0x48e7('0x5')]=_0x38fba5,_0x114308['id']=_0x3f1881;const _0x162827=this[_0x48e7('0x3a')](_0x114308);return this[_0x48e7('0xe')]&&this['_bufferUpdate'](_0x114308['id'],_0x114308,!0x0),_0x162827;}[_0x48e7('0xe5')](){this[_0x48e7('0xd0')]['conversion'][_0x48e7('0x3f')](_0x48e7('0xb'))[_0x48e7('0x6f')]({'model':'revision'});}[_0x48e7('0x8f')](_0x268fd8){return(_0x268fd8=_0x268fd8['filter'](_0x30e938=>!_0x30e938[_0x48e7('0xad')]||_0x48e7('0x2d')!==_0x30e938[_0x48e7('0xad')]&&_0x48e7('0xd6')!==_0x30e938[_0x48e7('0xad')]))[_0x48e7('0xf7')](_0x5dd8bc=>{_0x48e7('0x3c')!=typeof _0x5dd8bc&&(_0x5dd8bc[_0x48e7('0xbf')]=this[_0x48e7('0x8f')](_0x5dd8bc[_0x48e7('0xbf')]),_0x5dd8bc[_0x48e7('0xa0')]=_0x5dd8bc[_0x48e7('0xa0')][_0x48e7('0xf2')](_0x228a33=>!_0x228a33[0x0][_0x48e7('0xfb')](_0x48e7('0xd9'))));}),_0x268fd8;}}function J(_0x42cdea,_0x550101){const _0x33ba64=_0x550101['editing']['view'][_0x48e7('0x50')];if(_0x48e7('0x3c')==typeof _0x42cdea)return new _0x46907f(_0x33ba64,_0x42cdea);{const _0x453a0a=_0x42cdea[_0x48e7('0xbf')]['map'](_0x44959a=>J(_0x44959a,_0x550101));return new(B[_0x42cdea[(_0x48e7('0x9b'))]]||_0x27f53a)(_0x33ba64,_0x42cdea['name'],_0x42cdea[_0x48e7('0xa0')],_0x453a0a);}}class H{constructor(_0x56316a){this['editor']=_0x56316a,this[_0x48e7('0xe2')]=new Map(),this['_lastFrom']=-0x1,this[_0x48e7('0x84')]=-0x1,this[_0x48e7('0xfe')]=new Map(),this[_0x48e7('0x44')]=new Map(),this[_0x48e7('0xcb')]=new Map(),this[_0x48e7('0x18')]=new Map(),this[_0x48e7('0x42')]=new Map(),this[_0x48e7('0xcd')]=new Map(),this['_baseIdsRoots']=new Map(),this[_0x48e7('0x6a')]=new Map(),this[_0x48e7('0x98')]=new Map(),this[_0x48e7('0x71')]=new Map(),this['_revisionId']=0x1;}[_0x48e7('0xfc')](_0xee551f){this[_0x48e7('0xc4')]=_0xee551f;const _0x4122d1=new Map(),_0x78c30a=new Map(),_0xefb65a=this[_0x48e7('0xd0')][_0x48e7('0xf5')]['document'][_0x48e7('0xd')]['map'](_0x1963f9=>_0x1963f9[_0x48e7('0xb3')]);for(const _0x24c9a5 of _0xefb65a){const _0x3d06ee=this['editor'][_0x48e7('0xf5')][_0x48e7('0x50')]['getRoot'](_0x24c9a5),_0x38111f=q(_0x3d06ee);_0x4122d1[_0x48e7('0xda')](_0x24c9a5,_0x38111f),_0x78c30a[_0x48e7('0xda')](_0x24c9a5,Object[_0x48e7('0xdc')](_0x3d06ee['getAttributes']()));}const _0x293bb0=Array[_0x48e7('0x96')](this['editor'][_0x48e7('0xf5')]['markers'])[_0x48e7('0x77')](_0x177e16=>[_0x177e16['name'],_0x177e16['getRange']()]),_0x18c2bc=this[_0x48e7('0xc4')]['version'];this['_saveMetaData'](_0x18c2bc,_0x4122d1,_0x293bb0,_0x78c30a),this[_0x48e7('0xaf')]=this[_0x48e7('0x38')];const _0x3c1a12=new Map(),_0x35936c=new Map();for(const _0x2160f9 of _0xefb65a){const _0x3ab1a6=G(_0x2160f9);_0x3c1a12[_0x48e7('0xda')](_0x2160f9,_0x3ab1a6),_0x35936c[_0x48e7('0xda')](_0x2160f9,{});}this[_0x48e7('0x63')](Number[_0x48e7('0x58')],_0x3c1a12,[],_0x35936c);}[_0x48e7('0x5b')](_0x35ffcd,_0x511903){if(this['_lastFrom']===_0x35ffcd&&this['_lastTo']<=_0x511903)this[_0x48e7('0xe2')][_0x48e7('0x52')]>0x1&&this['_removeMetaData'](this[_0x48e7('0x84')]),this['_applyOperations'](this['_lastTo'],_0x511903,!0x0);else{if(!this['_savedMetaData'][_0x48e7('0xa2')](_0x35ffcd)){const _0x303d33=this[_0x48e7('0x7f')](_0x35ffcd);this['_calculateMetaData'](_0x303d33,_0x35ffcd,!0x1);}this[_0x48e7('0x1f')](_0x35ffcd,_0x511903,!0x0);}return this['_lastFrom']=_0x35ffcd,this['_lastTo']=_0x511903,this[_0x48e7('0xa4')]();}[_0x48e7('0xe0')](_0x2e817c){this['_reset'](),this[_0x48e7('0x97')]=_0x2e817c[_0x48e7('0x29')],this[_0x48e7('0x84')]=_0x2e817c[_0x48e7('0x2f')];for(const _0x397dff in _0x2e817c[_0x48e7('0x19')]){const _0x1d50b0=_0x2e817c[_0x48e7('0x19')][_0x397dff][_0x48e7('0x7a')],_0x13c4b5=_0x186c6b(_0x2e817c['diffData'][_0x397dff][_0x48e7('0x11')])||{},_0x110e41=this[_0x48e7('0x66')](_0x2e817c[_0x48e7('0x19')][_0x397dff][_0x48e7('0xc5')]);_0x110e41[_0x48e7('0xb3')]=_0x397dff,_0x110e41[_0x48e7('0x82')]=!_0x1d50b0||!_0x1d50b0[_0x48e7('0xc0')],_0x110e41[_0x48e7('0xc0')]=()=>_0x110e41[_0x48e7('0x82')],this[_0x48e7('0x18')][_0x48e7('0xda')](_0x397dff,_0x110e41),this['_baseRootsAttributes'][_0x48e7('0xda')](_0x397dff,_0x13c4b5),_0x1d50b0&&this[_0x48e7('0x71')][_0x48e7('0xda')](_0x397dff,_0x1d50b0);const _0x1016cc=this['_makeIdsRoot'](_0x110e41);this[_0x48e7('0x4')][_0x48e7('0xda')](_0x397dff,_0x1016cc);for(const [_0x356d59,_0x3c423d]of _0x110e41[_0x48e7('0x83')]){if(!_0x356d59[_0x48e7('0xfb')](_0x48e7('0x4b')))continue;const _0x1f8060=_0x356d59['split'](':')[0x2];for(const _0x4cd06b of _0x3c423d[_0x48e7('0x8b')]({'singleCharacters':!0x0})){const _0x3678bd=this['_getVidAttributeName'](_0x4cd06b),_0x26f049=_0x48e7('0xa6')==_0x4cd06b[_0x48e7('0x9b')]?_0x4cd06b[_0x48e7('0x17')][_0x48e7('0x4a')]['slice'](0x0,-0x1):_0x4cd06b['previousPosition'][_0x48e7('0x4a')],_0x39a48f=_0x1016cc[_0x48e7('0x24')](_0x26f049)[_0x48e7('0x4f')](_0x3678bd);this[_0x48e7('0x6a')][_0x48e7('0xda')](_0x39a48f,{'userId':_0x1f8060});}}}this[_0x48e7('0xaf')]=this['_revisionId'];const _0x3926eb=[...Array(this[_0x48e7('0x38')])['keys']()][_0x48e7('0x8d')](0x1)[_0x48e7('0xf2')](_0x5a34d8=>!this['_touched'][_0x48e7('0xa2')](_0x5a34d8));let _0x50c756=0x0;const _0x5423ad=new Map();for(const _0x3dbd67 in _0x2e817c[_0x48e7('0x19')]){const _0x264c44=_0x2e817c[_0x48e7('0x19')][_0x3dbd67]['attachChange'],_0x2494ab=_0x186c6b(_0x2e817c[_0x48e7('0x19')][_0x3dbd67][_0x48e7('0x30')])||{},_0x4b280c=this[_0x48e7('0x66')](_0x2e817c[_0x48e7('0x19')][_0x3dbd67][_0x48e7('0xec')]);_0x4b280c[_0x48e7('0xb3')]=_0x3dbd67,_0x4b280c[_0x48e7('0x82')]=!_0x264c44||_0x264c44[_0x48e7('0xc0')],_0x4b280c['isAttached']=()=>_0x4b280c[_0x48e7('0x82')],this[_0x48e7('0x44')][_0x48e7('0xda')](_0x3dbd67,_0x4b280c),this['_diffRootsAttributes'][_0x48e7('0xda')](_0x3dbd67,_0x2494ab);const _0x45ad30=this[_0x48e7('0x59')](_0x4b280c,Number[_0x48e7('0x58')]);this[_0x48e7('0xcd')][_0x48e7('0xda')](_0x3dbd67,_0x45ad30),_0x5423ad['set'](_0x3dbd67,_0x4b280c[_0x48e7('0xc0')]()?_0x2494ab:{});for(const [_0x7a494a,_0x176dd8]of _0x4b280c[_0x48e7('0x83')]){if(!_0x7a494a[_0x48e7('0xfb')]('revision:'))continue;const _0x5d4dd7=_0x7a494a[_0x48e7('0x1a')](':')[0x2];for(const _0x53039d of _0x176dd8[_0x48e7('0x8b')]({'singleCharacters':!0x0})){const _0x8993b2=this[_0x48e7('0x14')](_0x53039d),_0xeb092=this[_0x48e7('0x38')]++,_0x449913='elementEnd'==_0x53039d[_0x48e7('0x9b')]?_0x53039d[_0x48e7('0x17')][_0x48e7('0x4a')][_0x48e7('0x8d')](0x0,-0x1):_0x53039d[_0x48e7('0x17')][_0x48e7('0x4a')];_0x45ad30['getNodeByPath'](_0x449913)['_setAttribute'](_0x8993b2,_0xeb092),this[_0x48e7('0x6a')][_0x48e7('0xda')](_0xeb092,{'userId':_0x5d4dd7});}}for(const _0x5952f0 of this['editor']['model'][_0x48e7('0xc8')](_0x4b280c)[_0x48e7('0x8b')]({'singleCharacters':!0x0})){const _0x3d1134=this[_0x48e7('0x14')](_0x5952f0),_0xd64854=_0x48e7('0xa6')==_0x5952f0[_0x48e7('0x9b')]?_0x5952f0['previousPosition'][_0x48e7('0x4a')][_0x48e7('0x8d')](0x0,-0x1):_0x5952f0[_0x48e7('0x17')][_0x48e7('0x4a')],_0x50dd85=_0x45ad30[_0x48e7('0x24')](_0xd64854);_0x50dd85[_0x48e7('0x4f')](_0x3d1134)>0x0||_0x50dd85[_0x48e7('0x25')](_0x3d1134,_0x3926eb[_0x50c756++]);}for(const [_0x512999,_0x20a10f]of _0x4b280c[_0x48e7('0x83')])_0x512999[_0x48e7('0xfb')](_0x48e7('0x4b'))||this[_0x48e7('0xfe')]['set'](_0x512999,_0x20a10f);}const _0x1ddf91=G('$graveyard');this[_0x48e7('0x18')][_0x48e7('0xda')](_0x48e7('0x9a'),_0x1ddf91),this['_baseIdsRoots'][_0x48e7('0xda')](_0x48e7('0x9a'),this['_makeIdsRoot'](_0x1ddf91,0x1));const _0x4ca865=G(_0x48e7('0x9a'));this['_diffRoots'][_0x48e7('0xda')](_0x48e7('0x9a'),_0x4ca865),this[_0x48e7('0xcd')]['set'](_0x48e7('0x9a'),this[_0x48e7('0x59')](_0x4ca865,0x1));const _0x3b8f39=Array['from'](this[_0x48e7('0x44')])['map'](([_0x3aaa21,_0x9c4019])=>[_0x3aaa21,q(_0x9c4019)]);this[_0x48e7('0x63')](this[_0x48e7('0x84')],_0x3b8f39,this[_0x48e7('0xfe')],_0x5423ad);}[_0x48e7('0x66')](_0x20cb8b){const _0x38709b=JSON[_0x48e7('0x27')](_0x20cb8b),_0x27eb69=this[_0x48e7('0xd0')][_0x48e7('0xbb')]['view'][_0x48e7('0x50')],_0x42c957=new _0x2d79ab(_0x27eb69,_0x38709b['map'](_0x47e958=>J(_0x47e958,this[_0x48e7('0xd0')])));return this[_0x48e7('0xd0')]['data'][_0x48e7('0x28')](_0x42c957);}[_0x48e7('0x63')](_0x5b03c4,_0x2e5e87,_0x4cb567,_0x3316ec){const _0x4a3d29=new Map(_0x2e5e87),_0x11d128=new Map(_0x186c6b(_0x3316ec)),_0x3c83c6=new Map();for(const [_0x270ee6,_0x16a6f6]of _0x4cb567)_0x3c83c6[_0x48e7('0xda')](_0x270ee6,{'start':_0x16a6f6[_0x48e7('0xdf')][_0x48e7('0x72')](),'end':_0x16a6f6[_0x48e7('0x41')][_0x48e7('0x72')](),'rootName':_0x16a6f6[_0x48e7('0xd4')][_0x48e7('0xb3')]});this['_savedMetaData']['set'](_0x5b03c4,{'roots':_0x4a3d29,'markers':_0x3c83c6,'rootsAttributes':_0x11d128});}['_removeMetaData'](_0x270ed6){this[_0x48e7('0xe2')][_0x48e7('0xfd')](_0x270ed6);}['reInit'](){this[_0x48e7('0xb2')](),this['_lastFrom']=-0x1,this[_0x48e7('0x84')]=-0x1,this[_0x48e7('0xe2')][_0x48e7('0x6')](),this[_0x48e7('0xfc')](this[_0x48e7('0xc4')]);}[_0x48e7('0xb2')](){this[_0x48e7('0x6a')]['clear'](),this[_0x48e7('0x98')][_0x48e7('0x6')](),this['_touchedRoots'][_0x48e7('0x6')](),this[_0x48e7('0x44')][_0x48e7('0x6')](),this[_0x48e7('0xcb')][_0x48e7('0x6')](),this['_baseRoots'][_0x48e7('0x6')](),this[_0x48e7('0x42')][_0x48e7('0x6')](),this[_0x48e7('0xcd')][_0x48e7('0x6')](),this[_0x48e7('0x4')][_0x48e7('0x6')](),this['_markers'][_0x48e7('0x6')](),this['_revisionId']=0x1,this[_0x48e7('0xaf')]=this[_0x48e7('0x38')];}['_makeIdsRoot'](_0x5c87cf,_0x5f8dfe=null){let _0x4cd058=null;_0x5c87cf['is'](_0x48e7('0xb8'))||(_0x4cd058=new _0x118471(_0x5c87cf[_0x48e7('0xad')],{'vid_start':null===_0x5f8dfe?this[_0x48e7('0x38')]++:_0x5f8dfe++}));const _0x4c6525=[];for(const _0x49dcd3 of _0x5c87cf[_0x48e7('0x7d')]())if(_0x49dcd3['is'](_0x48e7('0xd5'))){_0x4c6525['push'](this[_0x48e7('0x59')](_0x49dcd3,_0x5f8dfe));const _0xc63b76=_0x4c6525[_0x4c6525[_0x48e7('0x101')]-0x1];null!==_0x5f8dfe&&(_0x5f8dfe=_0xc63b76['is'](_0x48e7('0xd5'),_0x48e7('0xa7'))?_0xc63b76['getAttribute'](_0x48e7('0xa3'))+0x1:_0xc63b76[_0x48e7('0x4f')]('vid_end')+0x1);}else for(let _0x636c18=0x0;_0x636c18<_0x49dcd3[_0x48e7('0xcc')];_0x636c18++)_0x4c6525[_0x48e7('0x6e')](new _0x118471('$text',{'vid':null===_0x5f8dfe?this[_0x48e7('0x38')]++:_0x5f8dfe++}));if(_0x5c87cf['is'](_0x48e7('0xb8'))){const _0x3796d3=G(_0x5c87cf[_0x48e7('0xb3')]);return _0x3796d3[_0x48e7('0x64')](0x0,_0x4c6525),_0x3796d3;}return _0x4cd058[_0x48e7('0x25')](_0x48e7('0x51'),null===_0x5f8dfe?this[_0x48e7('0x38')]++:_0x5f8dfe++),_0x4cd058[_0x48e7('0x64')](0x0,_0x4c6525),_0x4cd058;}[_0x48e7('0x1f')](_0x497b16,_0x2369a6,_0x2191cc){this[_0x48e7('0xb2')]();const {roots:_0x4e1139,markers:_0x3c8e59,rootsAttributes:_0x567645}=this[_0x48e7('0xe2')][_0x48e7('0xce')](_0x497b16);this[_0x48e7('0x18')]=new Map(_0x4e1139),this[_0x48e7('0x42')]=new Map(_0x186c6b(_0x567645));for(const [_0x573921,_0x399cc7]of this[_0x48e7('0x18')])if(_0x48e7('0x9a')!==_0x573921&&(this[_0x48e7('0x44')][_0x48e7('0xda')](_0x573921,q(_0x399cc7)),this[_0x48e7('0xcb')]=new Map(_0x186c6b(_0x567645)),_0x2191cc)){const _0x37f075=this['_revisionId'];this[_0x48e7('0xcd')][_0x48e7('0xda')](_0x573921,this[_0x48e7('0x59')](_0x399cc7)),this[_0x48e7('0x4')][_0x48e7('0xda')](_0x573921,this[_0x48e7('0x59')](_0x399cc7,_0x37f075));}this[_0x48e7('0xaf')]=this['_revisionId'],this[_0x48e7('0x44')]['set'](_0x48e7('0x9a'),q(this['_baseRoots']['get']('$graveyard'))),_0x2191cc&&this[_0x48e7('0xcd')]['set'](_0x48e7('0x9a'),this[_0x48e7('0x59')](this[_0x48e7('0x18')]['get'](_0x48e7('0x9a'))));for(const [_0x10f9da,_0x1931ed]of _0x3c8e59){const _0x5d725c=this[_0x48e7('0x18')][_0x48e7('0xce')](_0x1931ed[_0x48e7('0xb3')]),_0x143abc=this[_0x48e7('0x44')][_0x48e7('0xce')](_0x1931ed['rootName']),_0x3a63d1=new _0xbc7ce5(this[_0x48e7('0xb6')](_0x1931ed[_0x48e7('0xdf')],_0x5d725c),this[_0x48e7('0xb6')](_0x1931ed[_0x48e7('0x41')],_0x5d725c)),_0x1b8464=this[_0x48e7('0x35')](_0x3a63d1,_0x143abc);_0x5d725c[_0x48e7('0x83')][_0x48e7('0xda')](_0x10f9da,_0x3a63d1),this[_0x48e7('0xfe')]['set'](_0x10f9da,_0x1b8464);}this['_applyOperations'](_0x497b16,_0x2369a6,_0x2191cc);}[_0x48e7('0x6c')](_0x22c69e,_0x50554b,_0x174b69){for(const _0x160ce2 of this['source'][_0x48e7('0x9d')](_0x22c69e,_0x50554b))this[_0x48e7('0xaa')](_0x160ce2,_0x174b69);for(const _0x19a97a of this[_0x48e7('0x44')][_0x48e7('0x9e')]())_0x19a97a[_0x48e7('0x83')][_0x48e7('0x6')]();for(const [_0x131047,_0x2e32de]of this[_0x48e7('0xfe')]){this[_0x48e7('0x44')]['get'](_0x2e32de['root'][_0x48e7('0xb3')])[_0x48e7('0x83')]['set'](_0x131047,_0x2e32de[_0x48e7('0x72')]());}const _0x121520=new Map(),_0x1d9d2e=new Map();for(const [_0x14861b,_0x15e0b8]of this['_diffRoots'])_0x121520[_0x48e7('0xda')](_0x14861b,q(_0x15e0b8)),_0x1d9d2e[_0x48e7('0xda')](_0x14861b,this[_0x48e7('0xcb')][_0x48e7('0xce')](_0x14861b));this[_0x48e7('0x63')](_0x50554b,_0x121520,this[_0x48e7('0xfe')],_0x1d9d2e);}['_getPreviousFrom'](_0x3b25e1){const _0x4ed26d=Array['from'](this[_0x48e7('0xe2')]['keys']());_0x4ed26d[_0x48e7('0x62')]((_0x3eba66,_0x105c7b)=>_0x3eba66-_0x105c7b),_0x4ed26d[_0x48e7('0xbd')]();for(const _0x3d7026 of _0x4ed26d)if(_0x3d7026<_0x3b25e1)return _0x3d7026;return Number[_0x48e7('0x58')];}[_0x48e7('0x94')](_0x163639,_0x35ab40){const _0x2ac95d=Array[_0x48e7('0x96')](_0x35ab40[_0x48e7('0x83')])[_0x48e7('0x77')](([_0x5a9025,_0x4b5aa2])=>[_0x5a9025,this[_0x48e7('0x35')](_0x4b5aa2,_0x163639)]);_0x163639[_0x48e7('0x83')]=new Map(_0x2ac95d);}[_0x48e7('0x89')](_0x522402){for(const _0x26046c of this[_0x48e7('0xfe')][_0x48e7('0x9e')]()){const _0x5e2140=_0x26046c[_0x48e7('0x5f')](_0x522402),_0x266bec=_0xbc7ce5[_0x48e7('0x8a')](_0x5e2140);_0x26046c[_0x48e7('0xdf')]=_0x266bec[_0x48e7('0xdf')],_0x26046c['end']=_0x266bec[_0x48e7('0x41')];}}[_0x48e7('0xaa')](_0x3efe22,_0x4173e0){if(_0x48e7('0xea')==_0x3efe22[_0x48e7('0x9b')]||_0x48e7('0xf')==_0x3efe22[_0x48e7('0x9b')])return void this[_0x48e7('0xd8')](_0x3efe22,_0x4173e0);if('insert'==_0x3efe22[_0x48e7('0x9b')]){const _0x279ae7=_0x3efe22[_0x48e7('0x4c')][_0x48e7('0xd4')]['rootName'];this[_0x48e7('0x44')][_0x48e7('0xa2')](_0x279ae7)||(this[_0x48e7('0x44')][_0x48e7('0xda')](_0x279ae7,G(_0x279ae7,!0x0)),this['_diffRootsAttributes'][_0x48e7('0xda')](_0x279ae7,{}),_0x4173e0&&this[_0x48e7('0xcd')]['set'](_0x279ae7,G(_0x279ae7,!0x0)));}else{if(_0x48e7('0x105')==_0x3efe22[_0x48e7('0x9b')]||_0x48e7('0xa9')==_0x3efe22[_0x48e7('0x9b')]||_0x48e7('0x7c')==_0x3efe22['type'])return void this[_0x48e7('0x3e')](_0x3efe22);}const _0x57feb7=this[_0x48e7('0x74')](_0x3efe22,this['_diffRoots']);if(_0x48e7('0x10a')!==_0x3efe22[_0x48e7('0x9b')]&&(_0x57feb7[_0x48e7('0xe7')](),this[_0x48e7('0x89')](_0x57feb7)),_0x4173e0)switch(_0x57feb7[_0x48e7('0x9b')]){case _0x48e7('0x5c'):this[_0x48e7('0x13')](_0x3efe22);break;case _0x48e7('0x1d'):case _0x48e7('0xe4'):case _0x48e7('0x87'):this['_handleMoveOperation'](_0x3efe22);break;case _0x48e7('0xa8'):this[_0x48e7('0x1e')](_0x3efe22);break;case _0x48e7('0x1a'):this['_handleSplitOperation'](_0x3efe22);break;case _0x48e7('0x10a'):this[_0x48e7('0xd3')](_0x3efe22);}}[_0x48e7('0x74')](_0x5527c7,_0x455693){const _0x44a532=_0x5527c7[_0x48e7('0x72')]();return _0x44a532[_0x48e7('0xf9')]=_0x5527c7['_authorId'],this[_0x48e7('0xb5')](_0x44a532,_0x455693),_0x44a532;}[_0x48e7('0x88')](_0x148c84){return _0x148c84[_0x48e7('0x77')](_0x15fdc5=>{const _0x349552=this[_0x48e7('0x14')](_0x15fdc5);return Number(_0x15fdc5[_0x48e7('0x99')][_0x48e7('0x4f')](_0x349552));});}['_generateTape'](_0x9c4e2c,_0x122b1d){if(_0x9c4e2c['is']('element',_0x48e7('0xa7')))_0x122b1d[_0x48e7('0x6e')]({'item':_0x9c4e2c,'type':_0x48e7('0x39')});else{_0x9c4e2c['is'](_0x48e7('0xd5'))&&_0x122b1d['push']({'item':_0x9c4e2c,'type':_0x48e7('0xf3')});for(const _0x4be89f of _0x9c4e2c[_0x48e7('0x7d')]())this[_0x48e7('0x3b')](_0x4be89f,_0x122b1d);_0x9c4e2c['is'](_0x48e7('0xd5'))&&_0x122b1d[_0x48e7('0x6e')]({'item':_0x9c4e2c,'type':'elementEnd'});}return _0x122b1d;}[_0x48e7('0xa4')](){const _0x1ba934=new Map(this['_touched']),_0x1d312c=new Map(_0x1ba934),_0x353f68=new Map(),_0x98d584={'insertions':{},'deletions':{}},_0x3edd9f={'insertions':{},'deletions':{}},_0x3b33ab=new Map(),_0x44f475=new Set([...this[_0x48e7('0x18')]['keys'](),...this[_0x48e7('0x44')][_0x48e7('0x107')]()]);_0x44f475[_0x48e7('0xfd')](_0x48e7('0x9a'));for(const _0x753560 of _0x44f475){const _0x41ade8=this[_0x48e7('0x44')][_0x48e7('0xce')](_0x753560)||G(_0x753560,!0x1),_0x4d11c8=this[_0x48e7('0x18')][_0x48e7('0xce')](_0x753560)||G(_0x753560,!0x1);_0x41ade8[_0x48e7('0xc0')]()||_0x4d11c8[_0x48e7('0xc0')]()?(_0x98d584[_0x48e7('0xec')][_0x753560]=q(_0x41ade8),_0x98d584[_0x48e7('0xc5')][_0x753560]=q(_0x4d11c8),this[_0x48e7('0x94')](_0x98d584[_0x48e7('0xc5')][_0x753560],_0x4d11c8),this[_0x48e7('0x94')](_0x98d584[_0x48e7('0xec')][_0x753560],_0x41ade8),_0x3edd9f['insertions'][_0x753560]=this[_0x48e7('0x3b')](this[_0x48e7('0xcd')][_0x48e7('0xce')](_0x753560),[]),_0x3edd9f['deletions'][_0x753560]=this[_0x48e7('0x3b')](this[_0x48e7('0x4')]['get'](_0x753560)||G(_0x753560,!0x1),[])):_0x44f475[_0x48e7('0xfd')](_0x753560);}for(const _0x4a3dbf of _0x44f475){const _0x1aea10=_0x3edd9f[_0x48e7('0xec')][_0x4a3dbf];for(const _0x3f7b7e of _0x1aea10){const _0x1c3f14=this[_0x48e7('0x14')](_0x3f7b7e),_0x90f0d5=_0x3f7b7e[_0x48e7('0x99')]['getAttribute'](_0x1c3f14);_0x1d312c[_0x48e7('0xfd')](_0x90f0d5),_0x90f0d5>=this[_0x48e7('0xaf')]&&_0x353f68[_0x48e7('0xda')](_0x90f0d5,_0x1ba934['get'](_0x90f0d5));}}for(const _0x348e82 of _0x44f475){const _0x518a69=_0x3edd9f[_0x48e7('0xec')][_0x348e82],_0xf466ac=this[_0x48e7('0x88')](_0x3edd9f[_0x48e7('0xc5')][_0x348e82]);let _0x9e577=0x0;for(const _0x3980d1 of _0x518a69){const _0x284d19=this[_0x48e7('0x14')](_0x3980d1),_0x365f75=_0x3980d1[_0x48e7('0x99')][_0x48e7('0x4f')](_0x284d19);if(!_0x353f68[_0x48e7('0xa2')](_0x365f75)&&!_0x3b33ab[_0x48e7('0xa2')](_0x365f75)){if(_0x1d312c[_0x48e7('0xa2')](_0x365f75))_0x9e577++;else{if(_0x365f75!=_0xf466ac[_0x9e577]){const _0x597e20=_0x1ba934[_0x48e7('0xce')](_0x365f75)||_0x1ba934[_0x48e7('0xce')](_0xf466ac[_0x9e577]);for(;_0x365f75!=_0xf466ac[_0x9e577];)_0x1d312c[_0x48e7('0xa2')](_0xf466ac[_0x9e577])||(_0x3b33ab[_0x48e7('0xda')](_0xf466ac[_0x9e577],_0x597e20),_0x1ba934['set'](_0xf466ac[_0x9e577],_0x597e20)),_0x9e577++;}_0x9e577++;}}}}for(const _0x29cba3 of _0x44f475){const _0x2bff18=_0x3edd9f[_0x48e7('0xec')][_0x29cba3];for(const _0x54cd83 of _0x2bff18){const _0x5e6450=this['_getVidAttributeName'](_0x54cd83),_0x5c463a=_0x54cd83['item'][_0x48e7('0x4f')](_0x5e6450);if(_0x3b33ab[_0x48e7('0xa2')](_0x5c463a)){const _0x571f85=_0x3b33ab[_0x48e7('0xce')](_0x5c463a);_0x1d312c[_0x48e7('0xa2')](_0x5c463a)||_0x1d312c[_0x48e7('0xda')](_0x5c463a,{..._0x571f85}),_0x353f68[_0x48e7('0xda')](_0x5c463a,{..._0x571f85});}}}for(const _0x35e818 of _0x1d312c[_0x48e7('0x107')]())_0x35e818>=this[_0x48e7('0xaf')]&&_0x1d312c[_0x48e7('0xfd')](_0x35e818);const _0x422d1d=new Map();for(const _0x13c3cd of _0x44f475){let _0x2d6c33=_0x3edd9f[_0x48e7('0xec')][_0x13c3cd];for(const _0x2b79a2 of _0x2d6c33)if(_0x2b79a2[_0x48e7('0x99')]['is'](_0x48e7('0xd5'),_0x48e7('0x79'))){const _0x36a999=this['_getVidAttributeName'](_0x2b79a2),_0x55dd95=_0x2b79a2[_0x48e7('0x99')][_0x48e7('0x4f')](_0x36a999);if(_0x353f68[_0x48e7('0xa2')](_0x55dd95)){const _0x10e9b7=_0x2b79a2[_0x48e7('0x99')][_0x48e7('0xc7')]['parent'][_0x48e7('0x4f')]('vid_start'),_0x5281f5=_0x422d1d['get'](_0x10e9b7)||new Set();_0x5281f5[_0x48e7('0xe8')](_0x353f68[_0x48e7('0xce')](_0x55dd95)[_0x48e7('0x12')]),_0x422d1d[_0x48e7('0xda')](_0x10e9b7,_0x5281f5);}}_0x2d6c33=_0x3edd9f[_0x48e7('0xc5')][_0x13c3cd];for(const _0x3ff691 of _0x2d6c33)if(_0x3ff691[_0x48e7('0x99')]['is'](_0x48e7('0xd5'),'tableCell')){const _0x5297ad=this['_getVidAttributeName'](_0x3ff691),_0x584eef=_0x3ff691[_0x48e7('0x99')][_0x48e7('0x4f')](_0x5297ad);if(_0x1d312c['has'](_0x584eef)){const _0x2403f1=_0x3ff691[_0x48e7('0x99')][_0x48e7('0xc7')][_0x48e7('0xc7')][_0x48e7('0x4f')](_0x48e7('0x2b')),_0x45ca47=_0x422d1d[_0x48e7('0xce')](_0x2403f1)||new Set();_0x45ca47['add'](_0x1d312c[_0x48e7('0xce')](_0x584eef)[_0x48e7('0x12')]),_0x422d1d[_0x48e7('0xda')](_0x2403f1,_0x45ca47);}}for(const _0x559ba3 of _0x422d1d[_0x48e7('0x107')]())(_0x353f68[_0x48e7('0xa2')](_0x559ba3)||_0x1d312c['has'](_0x559ba3))&&_0x422d1d['delete'](_0x559ba3);}for(const _0x2c1bf4 of _0x44f475){const _0x21abc2=_0x3edd9f['insertions'][_0x2c1bf4];let _0x5bf2e7=null,_0x2a0daf=null;for(const _0x5854bb of _0x21abc2){const _0xf0761b=this[_0x48e7('0x14')](_0x5854bb),_0x1d23cd=_0x5854bb['item'][_0x48e7('0x4f')](_0xf0761b),_0x5d4370=_0x422d1d[_0x48e7('0xce')](_0x1d23cd);_0x5d4370&&_0x48e7('0xf3')==_0x5854bb[_0x48e7('0x9b')]&&(_0x5bf2e7=Array['from'](_0x5d4370)[0x0],_0x2a0daf=_0x5854bb[_0x48e7('0x99')][_0x48e7('0x4f')](_0x48e7('0x51'))),_0x5bf2e7&&(_0x1d312c[_0x48e7('0xda')](_0x1d23cd,{'userId':_0x5bf2e7}),_0x353f68['set'](_0x1d23cd,{'userId':_0x5bf2e7})),_0x1d23cd==_0x2a0daf&&(_0x5bf2e7=null,_0x2a0daf=null);}}const _0x432032={},_0x25b0e2=new Set();for(const _0x602ff5 of _0x44f475){const _0x4a7a81=_0x98d584['deletions'][_0x602ff5],_0x1b96ee=_0x98d584[_0x48e7('0xec')][_0x602ff5];for(const {userId:_0x295eaf}of this[_0x48e7('0x98')][_0x48e7('0x9e')]())null!==_0x295eaf&&_0x25b0e2[_0x48e7('0xe8')](_0x295eaf);for(const {userId:_0x586fc0}of this[_0x48e7('0x71')][_0x48e7('0x9e')]())null!==_0x586fc0&&_0x25b0e2['add'](_0x586fc0);this[_0x48e7('0xf6')](_0x1b96ee,_0x3edd9f[_0x48e7('0xec')][_0x602ff5],_0x353f68,_0x48e7('0x4d'),_0x25b0e2),this['_markChanges'](_0x4a7a81,_0x3edd9f[_0x48e7('0xc5')][_0x602ff5],_0x1d312c,'deletion',_0x25b0e2),_0x432032[_0x602ff5]={'insertions':this['_prepareViewToSave'](_0x1b96ee),'deletions':this['_prepareViewToSave'](_0x4a7a81),'attachChange':this[_0x48e7('0x71')][_0x48e7('0xce')](_0x602ff5)||null,'attributesBefore':_0x186c6b(this[_0x48e7('0x42')][_0x48e7('0xce')](_0x602ff5))||{},'attributesAfter':_0x186c6b(this[_0x48e7('0xcb')][_0x48e7('0xce')](_0x602ff5))};}return{'diffData':_0x432032,'authorsIds':Array[_0x48e7('0x96')](_0x25b0e2)};}[_0x48e7('0x36')](_0xd007aa){for(const [,_0x1bcfc1]of _0xd007aa[_0x48e7('0x83')]){const _0x244720=_0x1bcfc1[_0x48e7('0xdf')][_0x48e7('0xab')]()['filter'](_0x411e02=>_0x48e7('0x79')==_0x411e02[_0x48e7('0xad')]);for(const _0x3d9e62 of _0x244720)0x1==_0x3d9e62[_0x48e7('0xb1')]&&_0x3d9e62['getChild'](0x0)['is']('element',_0x48e7('0x60'))&&_0x3d9e62['getChild'](0x0)[_0x48e7('0x25')](_0x48e7('0xdd'),!0x0);}}[_0x48e7('0x61')](_0x499fe3){this[_0x48e7('0x36')](_0x499fe3);const _0xa88b54=this[_0x48e7('0xd0')][_0x48e7('0x90')][_0x48e7('0xef')](_0x499fe3,{}),_0x2cab3a=Array[_0x48e7('0x96')](_0xa88b54[_0x48e7('0x7d')]())['map'](_0x373a0d=>this[_0x48e7('0x68')](_0x373a0d));return JSON['stringify'](_0x2cab3a);}[_0x48e7('0x68')](_0x7936f5){if(_0x7936f5['is'](_0x48e7('0xa7')))return _0x7936f5['data'];{const _0x28757e=_0x7936f5;return{'type':Object[_0x48e7('0x107')](B)['find'](_0x3d5b3b=>_0x7936f5 instanceof B[_0x3d5b3b]),'name':_0x28757e[_0x48e7('0xad')],'attributes':Array[_0x48e7('0x96')](_0x28757e[_0x48e7('0xeb')]()),'children':Array[_0x48e7('0x96')](_0x28757e[_0x48e7('0x7d')]())[_0x48e7('0x77')](_0x390357=>this[_0x48e7('0x68')](_0x390357))};}}[_0x48e7('0xf6')](_0x4db3f6,_0x2ab7ea,_0xfc3209,_0x2f0368,_0x41aafb){let _0x5a1b29=null,_0x1cec98=null,_0x535500=0x0;const _0x2e268e=this[_0x48e7('0xd0')][_0x48e7('0xf5')];for(let _0x1459f6=0x0;_0x1459f6<_0x2ab7ea[_0x48e7('0x101')];_0x1459f6++){const _0x7536d8=this[_0x48e7('0x14')](_0x2ab7ea[_0x1459f6]),_0x39dfa1=_0x2ab7ea[_0x1459f6]['item'][_0x48e7('0x4f')](_0x7536d8),_0x343289=_0xfc3209['get'](_0x39dfa1),_0x3fd917=_0x1459f6==_0x2ab7ea[_0x48e7('0x101')]-0x1;(!_0x5a1b29&&_0x343289&&(_0x5a1b29=_0x343289,_0x1cec98=_0x2ab7ea[_0x1459f6]),_0x5a1b29&&(!_0x343289||_0x343289[_0x48e7('0x12')]!=_0x5a1b29['userId']))&&(_0x314552(_0x343289,L(_0x1cec98,_0x4db3f6,_0x2e268e),L(_0x2ab7ea[_0x1459f6],_0x4db3f6,_0x2e268e)),_0x5a1b29=_0x343289||null,_0x1cec98=_0x343289?_0x2ab7ea[_0x1459f6]:null),_0x5a1b29&&_0x3fd917&&_0x314552(_0x343289,L(_0x1cec98,_0x4db3f6,_0x2e268e),W(_0x2ab7ea[_0x1459f6],_0x4db3f6,_0x2e268e));}function _0x314552(_0xd510a5,_0x5d2c36,_0x1ea7b3){const _0x383a6b=_0x5a1b29[_0x48e7('0x12')],_0x18e718=_0x48e7('0x4b')+_0x2f0368+':'+_0x383a6b+':'+_0x535500++,_0x1e383d=_0x2e268e[_0x48e7('0x54')](_0x5d2c36,_0x1ea7b3);_0x4db3f6[_0x48e7('0x83')][_0x48e7('0xda')](_0x18e718,_0x1e383d),null!==_0x383a6b&&_0x41aafb[_0x48e7('0xe8')](_0x383a6b);}}[_0x48e7('0x14')](_0x485a7b){switch(_0x485a7b[_0x48e7('0x9b')]){case _0x48e7('0xf3'):return'vid_start';case _0x48e7('0xa6'):return _0x48e7('0x51');default:return'vid';}}[_0x48e7('0xb5')](_0x2e0846,_0x19df62){_0x2e0846['baseVersion']=null;for(const _0x20fff3 in _0x2e0846){const _0x5bf6da=_0x2e0846[_0x20fff3];if(_0x5bf6da instanceof _0x4aad63){const _0x2bc50f=_0x19df62['get'](_0x5bf6da[_0x48e7('0xd4')][_0x48e7('0xb3')]);_0x2e0846[_0x20fff3]=this['_fixPosition'](_0x5bf6da,_0x2bc50f);}if(_0x5bf6da instanceof _0xbc7ce5){const _0x59b513=_0x19df62[_0x48e7('0xce')](_0x5bf6da[_0x48e7('0xd4')]['rootName']);_0x2e0846[_0x20fff3]=this[_0x48e7('0x35')](_0x5bf6da,_0x59b513);}_0x48e7('0xd4')===_0x20fff3&&(_0x2e0846[_0x48e7('0xd4')]=_0x19df62[_0x48e7('0xce')](_0x2e0846[_0x48e7('0xd4')]['rootName']));}}[_0x48e7('0x35')](_0x27e3ac,_0x398795){return this[_0x48e7('0xd0')][_0x48e7('0xf5')][_0x48e7('0x54')](this[_0x48e7('0xb6')](_0x27e3ac[_0x48e7('0xdf')],_0x398795),this[_0x48e7('0xb6')](_0x27e3ac['end'],_0x398795));}['_fixPosition'](_0x1d008d,_0x2e03cd){return this['editor'][_0x48e7('0xf5')][_0x48e7('0x1b')](_0x2e03cd,_0x1d008d[_0x48e7('0x4a')],_0x1d008d[_0x48e7('0xde')]);}[_0x48e7('0x13')](_0x50d36d){const _0x2e3c88=this['_idsRoots'][_0x48e7('0xce')](_0x50d36d['position'][_0x48e7('0xd4')]['rootName']),_0x14906d=this['_fixPosition'](_0x50d36d[_0x48e7('0x4c')],_0x2e3c88),_0x583a1a=null===_0x50d36d[_0x48e7('0xf9')]?null:_0x50d36d['_authorId']||this[_0x48e7('0xd0')][_0x48e7('0x69')][_0x48e7('0xce')](_0x48e7('0xf8'))['me']['id'],_0xd7431=_0x14906d[_0x48e7('0xc7')],_0x129645=this[_0x48e7('0x38')],_0x28f511=[];for(const _0xc127c0 of _0x50d36d['nodes'])if(_0xc127c0['is'](_0x48e7('0xd5')))_0x28f511[_0x48e7('0x6e')](this[_0x48e7('0x59')](_0xc127c0));else for(let _0x57599a=0x0;_0x57599a<_0xc127c0[_0x48e7('0xcc')];_0x57599a++)_0x28f511[_0x48e7('0x6e')](new _0x118471(_0x48e7('0xa7'),{'vid':this['_revisionId']++}));const _0x1cad51=this[_0x48e7('0x38')];for(let _0x5be5ae=_0x129645;_0x5be5ae<_0x1cad51;_0x5be5ae++)this[_0x48e7('0x6a')]['set'](_0x5be5ae,{'userId':_0x583a1a});_0xd7431[_0x48e7('0x64')](_0x14906d[_0x48e7('0xed')],_0x28f511);}[_0x48e7('0x53')](_0x559fed){(_0x559fed=this[_0x48e7('0x74')](_0x559fed,this[_0x48e7('0xcd')]))[_0x48e7('0xe7')]();const _0x3d8008=null===_0x559fed[_0x48e7('0xf9')]?null:_0x559fed[_0x48e7('0xf9')]||this[_0x48e7('0xd0')][_0x48e7('0x69')][_0x48e7('0xce')](_0x48e7('0xf8'))['me']['id'],_0x2c8c97=_0x559fed[_0x48e7('0x7b')](),_0x3e3bda=_0x2c8c97[_0x48e7('0xc7')],_0x41de16=_0x2c8c97['offset'];!function _0x351d3e(_0x5aa4bc,_0x2dcc13,_0x5064e1,_0x2d5c8b){for(let _0x2485e4=_0x5064e1;_0x2485e4<_0x2d5c8b;_0x2485e4++){const _0x5ec790=_0x2dcc13[_0x48e7('0xc2')](_0x2485e4);_0x5ec790['is'](_0x48e7('0xd5'),'$text')?_0x5aa4bc[_0x48e7('0xda')](_0x5ec790[_0x48e7('0x4f')](_0x48e7('0xa3')),{'userId':_0x3d8008}):(_0x5aa4bc[_0x48e7('0xda')](_0x5ec790['getAttribute']('vid_start'),{'userId':_0x3d8008}),_0x351d3e(_0x5aa4bc,_0x5ec790,0x0,_0x5ec790[_0x48e7('0xb1')]),_0x5aa4bc['set'](_0x5ec790[_0x48e7('0x4f')](_0x48e7('0x51')),{'userId':_0x3d8008}));}}(this[_0x48e7('0x6a')],_0x3e3bda,_0x41de16,_0x41de16+_0x559fed[_0x48e7('0x15')]);}[_0x48e7('0x1e')](_0x9f6f10){const _0x5ecedf=null===(_0x9f6f10=this[_0x48e7('0x74')](_0x9f6f10,this[_0x48e7('0xcd')]))[_0x48e7('0xf9')]?null:_0x9f6f10['_authorId']||this[_0x48e7('0xd0')][_0x48e7('0x69')][_0x48e7('0xce')](_0x48e7('0xf8'))['me']['id'],_0x1948a5=_0x9f6f10[_0x48e7('0xe9')][_0x48e7('0xc7')],_0x59c094=_0x9f6f10[_0x48e7('0x47')][_0x48e7('0xc7')],_0x2fee03=_0x1948a5[_0x48e7('0x4f')]('vid_end'),_0x49007b=_0x59c094[_0x48e7('0x4f')](_0x48e7('0x2b'));_0x1948a5[_0x48e7('0x25')](_0x48e7('0x51'),_0x59c094[_0x48e7('0x4f')](_0x48e7('0x51'))),_0x59c094[_0x48e7('0x25')]('vid_end',_0x2fee03),this[_0x48e7('0x6a')][_0x48e7('0xda')](_0x49007b,{'userId':_0x5ecedf}),this[_0x48e7('0x6a')][_0x48e7('0xda')](_0x2fee03,{'userId':_0x5ecedf}),_0x9f6f10[_0x48e7('0xe7')]();}['_handleSplitOperation'](_0x4168d2){const _0xb40666=null===(_0x4168d2=this[_0x48e7('0x74')](_0x4168d2,this[_0x48e7('0xcd')]))['_authorId']?null:_0x4168d2[_0x48e7('0xf9')]||this[_0x48e7('0xd0')][_0x48e7('0x69')][_0x48e7('0xce')](_0x48e7('0xf8'))['me']['id'],_0x5d4b6a=_0x4168d2[_0x48e7('0xdb')],_0x199afc=_0x4168d2['splitPosition'][_0x48e7('0xc7')];_0x4168d2[_0x48e7('0xe7')]();const _0x47a966=_0x199afc[_0x48e7('0x4f')](_0x48e7('0x51')),_0x2419ae=_0x4168d2[_0x48e7('0xcf')]['nodeAfter'];if(_0x5d4b6a){const _0x48a148=_0x2419ae[_0x48e7('0x4f')](_0x48e7('0x51')),_0x1d328b=_0x199afc['getAttribute'](_0x48e7('0x51'));_0x199afc[_0x48e7('0x25')](_0x48e7('0x51'),_0x48a148),_0x2419ae['_setAttribute']('vid_end',_0x1d328b),this[_0x48e7('0x6a')]['set'](_0x199afc[_0x48e7('0x4f')](_0x48e7('0x51')),{'userId':_0xb40666}),this[_0x48e7('0x6a')][_0x48e7('0xda')](_0x2419ae[_0x48e7('0x4f')](_0x48e7('0x2b')),{'userId':_0xb40666});}else{const _0x1c8898=this[_0x48e7('0x38')]++,_0x5e321c=this[_0x48e7('0x38')]++;_0x199afc[_0x48e7('0x25')](_0x48e7('0x51'),_0x1c8898),_0x2419ae[_0x48e7('0x25')](_0x48e7('0x2b'),_0x5e321c),_0x2419ae[_0x48e7('0x25')]('vid_end',_0x47a966),this[_0x48e7('0x6a')][_0x48e7('0xda')](_0x1c8898,{'userId':_0xb40666}),this[_0x48e7('0x6a')][_0x48e7('0xda')](_0x5e321c,{'userId':_0xb40666});}}[_0x48e7('0xd3')](_0xb0b403){if(!_0xb0b403['affectsData'])return;const _0x4c9b6a=(_0xb0b403=this[_0x48e7('0x74')](_0xb0b403,this[_0x48e7('0x44')]))[_0x48e7('0xe1')]?_0xb0b403['oldRange'][_0x48e7('0xd4')]:null,_0x410423=_0xb0b403['newRange']?_0xb0b403[_0x48e7('0x78')][_0x48e7('0xd4')]:null;_0x4c9b6a&&this[_0x48e7('0xfe')]['delete'](_0xb0b403[_0x48e7('0xad')]),_0x410423&&this[_0x48e7('0xfe')][_0x48e7('0xda')](_0xb0b403[_0x48e7('0xad')],_0xb0b403['newRange'][_0x48e7('0x72')]());const _0x337a9e=null===_0xb0b403[_0x48e7('0xf9')]?null:_0xb0b403[_0x48e7('0xf9')]||this[_0x48e7('0xd0')][_0x48e7('0x69')][_0x48e7('0xce')](_0x48e7('0xf8'))['me']['id'],_0x53241a=_0xb0b403[_0x48e7('0xad')];if(!this['_touchedMarkers'][_0x48e7('0xa2')](_0x53241a))return void this['_touchedMarkers'][_0x48e7('0xda')](_0x53241a,{'range':_0xb0b403[_0x48e7('0xe1')],'userId':_0x337a9e});const _0x37549f=this[_0x48e7('0x98')][_0x48e7('0xce')](_0x53241a),_0x50ca51=_0x37549f[_0x48e7('0x102')],_0x52cc10=_0xb0b403['newRange'];null==_0x50ca51&&null==_0x52cc10||_0x50ca51&&_0x52cc10&&_0x50ca51[_0x48e7('0xa1')](_0x52cc10)?this[_0x48e7('0x98')][_0x48e7('0xfd')](_0xb0b403[_0x48e7('0xad')]):_0x37549f[_0x48e7('0x12')]=_0x337a9e;}[_0x48e7('0xd8')](_0x5c3d22,_0x29226f){this[_0x48e7('0x44')][_0x48e7('0xa2')](_0x5c3d22[_0x48e7('0xb3')])?this[_0x48e7('0x44')][_0x48e7('0xce')](_0x5c3d22[_0x48e7('0xb3')])[_0x48e7('0x82')]=_0x5c3d22[_0x48e7('0xb7')]:(this[_0x48e7('0x44')][_0x48e7('0xda')](_0x5c3d22['rootName'],G(_0x5c3d22['rootName'],!0x0)),this['_diffRootsAttributes'][_0x48e7('0xda')](_0x5c3d22[_0x48e7('0xb3')],{}),_0x29226f&&this[_0x48e7('0xcd')][_0x48e7('0xda')](_0x5c3d22[_0x48e7('0xb3')],G(_0x5c3d22['rootName'],!0x0)));const _0x38d0e5=null===_0x5c3d22[_0x48e7('0xf9')]?null:_0x5c3d22[_0x48e7('0xf9')]||this['editor'][_0x48e7('0x69')]['get']('Users')['me']['id'],_0x591a37=this[_0x48e7('0x71')][_0x48e7('0xce')](_0x5c3d22[_0x48e7('0xb3')]);_0x591a37&&_0x591a37[_0x48e7('0x12')]===_0x38d0e5?this['_touchedRoots']['delete'](_0x5c3d22['rootName']):this['_touchedRoots'][_0x48e7('0xda')](_0x5c3d22[_0x48e7('0xb3')],{'userId':_0x38d0e5,'isAttached':_0x5c3d22['isAdd']});}[_0x48e7('0x3e')](_0x4887c0){const _0x3ab74d=this[_0x48e7('0xcb')]['get'](_0x4887c0['root'][_0x48e7('0xb3')]);null===_0x4887c0[_0x48e7('0x9f')]?delete _0x3ab74d[_0x4887c0[_0x48e7('0xbe')]]:_0x3ab74d[_0x4887c0[_0x48e7('0xbe')]]=_0x4887c0[_0x48e7('0x9f')];}}function q(_0x4d250c){const _0x2101f1=G(_0x4d250c[_0x48e7('0xb3')],_0x4d250c[_0x48e7('0xc0')]());for(const _0x5b0c9a of _0x4d250c[_0x48e7('0x7d')]()){const _0x4b8eee=_0x5b0c9a['_clone'](!0x0);_0x2101f1[_0x48e7('0x6d')](_0x4b8eee);}return _0x2101f1;}function G(_0x31cb69,_0x33a9fe=!0x0){const _0x3d685a=new _0x5dd335();return _0x3d685a['rootName']=_0x31cb69,_0x3d685a[_0x48e7('0x82')]=_0x33a9fe,_0x3d685a[_0x48e7('0xc0')]=()=>_0x3d685a[_0x48e7('0x82')],_0x3d685a;}function L(_0x1d9409,_0x496c1d,_0x383669){const _0x18d49c=_0x48e7('0xa6')==_0x1d9409['type']?_0x383669[_0x48e7('0x9c')](_0x1d9409[_0x48e7('0x99')],_0x48e7('0x41')):_0x383669[_0x48e7('0xff')](_0x1d9409[_0x48e7('0x99')]);return _0x383669['createPositionFromPath'](_0x496c1d,_0x18d49c[_0x48e7('0x4a')],_0x18d49c[_0x48e7('0xde')]);}function W(_0x5777d5,_0x341678,_0x1da19b){const _0x18016f='elementStart'==_0x5777d5[_0x48e7('0x9b')]?_0x1da19b[_0x48e7('0x9c')](_0x5777d5[_0x48e7('0x99')],0x0):_0x1da19b[_0x48e7('0xd1')](_0x5777d5[_0x48e7('0x99')]);return _0x1da19b['createPositionFromPath'](_0x341678,_0x18016f['path'],_0x18016f[_0x48e7('0xde')]);}
23
+ const _0x47ff=['_createInitialRevision','startsWith','getAttribute','_isInit','_pendingAction','createdAt','loadState','documentFragment','_processRootBeforeSave','init','max','getRevisionRootsAttributes','_prepareViewToSave','_removePendingAction','elementStart','_clone','size','creatorId','getRevisions','revision','_makeModelFromViewString','createPositionAt','addRootAttribute','_handleInsertOperation','_idsRoots','includes','getOperations','PendingActions','elementEnd','_touched','_continueCurrentRevision','_generateTape','saveRevision','length','createRange','conversion','createRevision','authorsIds','getData','end','_loadState','isEnabled','_loadedStateData','add','_reset','default','getUser','NEGATIVE_INFINITY','_removeRevisionMarkers','type','getAttributes','nodeAfter','source','_handleOperation','_baseRootsAttributes','getLatestVersion','_getVidAttributeName','shift','element','model','insertions','_isAttached','getIndex','stringify','map','_diffRootsAttributes','split','parent','nodes','getRevision','_appendChild','_lastTo','_replaceEditorDataWithRevisionData','getRootNames','changeRootAttribute','attachChange','_applyOperations','insert','_makeIdsRoot','_saveMetaData','_operations','buildRevisionData','_isPendingUpdate','_handleMarkerOperation','define','item','getAncestors','createPositionAfter','data-revision-','revision:','diffData','_touchedMarkers','values','then','rootsAttributes','addRevisionData','toVersion','newValue','stickiness','_addPendingAction','sendBufferedUpdates','range','$text','attributes','find','key','_handleRootAttributeOperation','trim','collaboration.channelId','isAttached','from','toView','_createCurrentRevision','paragraph','forEach','_revisionDataBuilder','config','userId','getTransformedByOperation','_fixRange','_removeMetaData','removeRootAttribute','string','some','_getState','_getPreviousFrom','document','markerToData','repository','parse','isAdd','_getBaseVids','_setConversion','_handleMoveOperation','_handleRootOperation','vid','_bufferedUpdates','markers','splitPosition','afterInit','createPositionFromPath','fromEntries','oldRange','roots','processor','fromVersion','_insertChild','push','tableCell','start','_setAttribute','data','_touchedRoots','offset','remove','resolve','upcast','hasContent','getRevisionDocumentData','version','getCurrentRevisionId','deletion','_startingRevisionId','getNodeByPath','createRangeIn','has','rootName','addRevision','RevisionTracker','getChildren','isEqual','update','toData','_authorId','text','_diffRoots','finally','childCount','vid_start','reInit','PENDING_ACTION_REVISION_HISTORY','useFillerType','_findInsertionIndex','deletions','reinsert','authors','_handleMergeOperation','_bufferUpdate','_baseIdsRoots','_cloneOperation','plugins','clone','Users','offsetSize','_source','_execute','detachRoot','RevisionsRepository','previousPosition','_initialRevisionId','getWalker','get','_update','updateRevisions','pluginName','affectsData','currentRevision','keys','vid_end','_handleSplitOperation','path','isReady','_getFromVersion','_getViewJson','_revisionId','clear','setSource','filter','_markers','attributesAfter','_savedMetaData','getChild','requires','_loadRevisionData','slice','delete','$graveyard','_startingVersion','getRange','setRevisionData','editor','getOperation','getRoot','newRange','howMany','reverse','sort','_fixPosition','dataDowncast','RealTimeCollaborationClient','graveyardPosition','marker','locale','editor-initial-data-replaced-with-revision-data','for','history','creator','_calculateMetaData','dataToMarker','_baseRoots','_markChanges','set','adapter','createPositionBefore','children','Initial\x20revision','sourcePosition','_lastFrom','insertion','revisionHistory.resumeUnsavedRevision','baseVersion','getTime','root','name','_copyMarkers','position','view'];(function(_0x4cf2ea,_0x47ff92){const _0x431f25=function(_0x201a3b){while(--_0x201a3b){_0x4cf2ea['push'](_0x4cf2ea['shift']());}};_0x431f25(++_0x47ff92);}(_0x47ff,0x1a7));const _0x431f=function(_0x4cf2ea,_0x47ff92){_0x4cf2ea=_0x4cf2ea-0x0;let _0x431f25=_0x47ff[_0x4cf2ea];return _0x431f25;};import{Users as _0x424797}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x3b6270,PendingActions as _0x472035}from'ckeditor5/src/core';import{logWarning as _0xf7151,uid as _0x42ca40}from'ckeditor5/src/utils';import{Position as _0x1514a2,Range as _0x1415b9,Element as _0x25a114,DocumentFragment as _0x273bfd,ViewText as _0x2598fb,ViewElement as _0x460c82,ViewContainerElement as _0x1d0ae5,ViewAttributeElement as _0x111191,ViewEmptyElement as _0xdb150c,ViewRawElement as _0x4cf16e,ViewUIElement as _0x4e7a3e,ViewDocumentFragment as _0x384c62}from'ckeditor5/src/engine';import _0x349da8 from'./revisionsrepository';import{getTranslation as _0x1b642f}from'./utils/common-translations';import{cloneDeep as _0x330c50,isEqual as _0x1a1441}from'lodash-es';const B={'c':_0x1d0ae5,'a':_0x111191,'e':_0xdb150c,'r':_0x4cf16e,'u':_0x4e7a3e};export default class l extends _0x3b6270{static get[_0x431f('0x30')](){return _0x431f('0xc');}static get[_0x431f('0x42')](){return[_0x424797,_0x349da8,_0x472035];}constructor(_0x3dd448){super(_0x3dd448),this['adapter']=null,this[_0x431f('0x32')]=null,this['_revisionDataBuilder']=new H(this[_0x431f('0x4a')]),this[_0x431f('0x2b')]=this[_0x431f('0x4a')][_0x431f('0xe3')][_0x431f('0x2d')](_0x431f('0xdb'))||'initial',this[_0x431f('0xf7')]=new Map(),this[_0x431f('0x99')]=null;const _0x4ebcc6=_0x42ca40();this[_0x431f('0x26')]={'history':this[_0x431f('0x4a')][_0x431f('0xaa')][_0x431f('0xed')][_0x431f('0x59')],'getLatestVersion':()=>Promise[_0x431f('0x10a')](this[_0x431f('0x4a')]['model'][_0x431f('0xed')][_0x431f('0x3')]),'getCurrentRevisionId':()=>_0x4ebcc6},this[_0x431f('0x5f')]('isReady',!0x1),this['set'](_0x431f('0x98'),!0x0),this[_0x431f('0x5f')](_0x431f('0xc1'),!0x1),this[_0x431f('0x4a')][_0x431f('0xe3')][_0x431f('0xc3')](_0x431f('0x67'),!0x0),this[_0x431f('0x4a')][_0x431f('0x92')]['for'](_0x431f('0x0'))[_0x431f('0x5c')]({'view':_0x431f('0x82')});}[_0x431f('0x78')](){this['repository']=this['editor'][_0x431f('0x22')][_0x431f('0x2d')](_0x431f('0x29')),this['_setConversion'](),this['editor'][_0x431f('0x106')]['on']('ready',()=>{const _0x12c52b=this[_0x431f('0xef')]['getRevision'](0x0),_0x112fb4=_0x12c52b&&null===_0x12c52b[_0x431f('0x5a')]?_0x12c52b:null;if(this[_0x431f('0x8d')]=!!_0x112fb4&&this[_0x431f('0x4a')][_0x431f('0xe3')]['get']('revisionHistory.resumeUnsavedRevision'),this[_0x431f('0x4a')][_0x431f('0x22')][_0x431f('0x9')](_0x431f('0x53'))){const _0x366fa5=this[_0x431f('0x26')][_0x431f('0x4')](),_0x1df14b=this[_0x431f('0xef')][_0x431f('0xb4')](_0x366fa5);if(_0x1df14b)this[_0x431f('0x47')]=_0x1df14b[_0x431f('0x100')],this['_continueCurrentRevision']=!0x1;else{const _0x366330=this[_0x431f('0x26')]['history'][_0x431f('0xbf')]['find'](_0x3089ba=>!_0x3089ba[_0x431f('0x72')]),_0x112e47=_0x366330?_0x366330[_0x431f('0x68')]:this[_0x431f('0x26')][_0x431f('0x59')][_0x431f('0x3')];_0x12c52b?(_0x12c52b[_0x431f('0xcf')]<_0x112e47&&_0x12c52b[_0x431f('0x2e')]({'toVersion':_0x112e47}),this['_continueCurrentRevision']?(this[_0x431f('0x26')][_0x431f('0x4')]=()=>_0x112fb4['id'],this['_startingVersion']=_0x112fb4['fromVersion']):(this['_startingVersion']=_0x12c52b[_0x431f('0xcf')],this['_continueCurrentRevision']=!0x1)):(this[_0x431f('0x47')]=_0x112e47,this[_0x431f('0x8d')]=!0x1);}}else _0x112fb4&&(this[_0x431f('0x4a')][_0x431f('0xaa')]['document']['history']['version']=Math[_0x431f('0x79')](_0x112fb4['toVersion'],this[_0x431f('0x4a')][_0x431f('0xaa')][_0x431f('0xed')][_0x431f('0x59')][_0x431f('0x3')]),_0x112fb4[_0x431f('0x100')]===_0x112fb4[_0x431f('0xcf')]?(0x0!==_0x112fb4[_0x431f('0x100')]&&(this[_0x431f('0x26')][_0x431f('0x4')]=()=>_0x112fb4['id']),this['_continueCurrentRevision']=!0x1):this[_0x431f('0x8d')]&&(this[_0x431f('0x26')][_0x431f('0x4')]=()=>_0x112fb4['id'],this[_0x431f('0x47')]=_0x112fb4[_0x431f('0x100')])),this[_0x431f('0x8d')]||(this['_startingVersion']=this['editor'][_0x431f('0xaa')][_0x431f('0xed')][_0x431f('0x3')]);this[_0x431f('0xe2')][_0x431f('0x78')](this[_0x431f('0x26')][_0x431f('0x59')]),this[_0x431f('0x6f')](this[_0x431f('0x47')]),this[_0x431f('0xdf')](this[_0x431f('0x47')]),this[_0x431f('0x60')]&&this['sendBufferedUpdates']();}),this['bind'](_0x431f('0x37'))['to'](this,_0x431f('0xc1'),_0x237bf8=>!_0x237bf8);}async[_0x431f('0xfa')](){if(this['repository'][_0x431f('0x90')]>0x0){const _0x439602=this[_0x431f('0xef')][_0x431f('0xb4')](0x0),_0x2e94a4=await this['getRevisionDocumentData'](_0x439602),_0x5f4657=await this[_0x431f('0x7a')](_0x439602);this[_0x431f('0xb7')](_0x2e94a4,_0x5f4657);}}[_0x431f('0x3c')](_0x55db5e){this[_0x431f('0x26')]=_0x55db5e;}async[_0x431f('0xf')](){const _0xbaa81=await this[_0x431f('0x26')][_0x431f('0xa6')]();if(_0xbaa81>this[_0x431f('0x32')]['toVersion']){await this[_0x431f('0x97')]();const _0x454e03=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0xbaa81});_0x454e03[_0x431f('0x1d')]=_0x454e03[_0x431f('0x94')][_0x431f('0xaf')](_0x4371fe=>this[_0x431f('0x4a')][_0x431f('0x22')]['get'](_0x431f('0x24'))[_0x431f('0x9d')](_0x4371fe)),this['currentRevision'][_0x431f('0x2e')](_0x454e03);}}async[_0x431f('0x97')](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this[_0x431f('0x43')](this[_0x431f('0x32')]),this[_0x431f('0xe2')][_0x431f('0x75')](this[_0x431f('0x32')]),this['_loadedStateData']={'fromVersion':this[_0x431f('0x32')][_0x431f('0x100')],'authors':this['currentRevision'][_0x431f('0x1d')][_0x431f('0x44')]()});}async[_0x431f('0x8f')](_0x3a9303={},_0x12a10d=null){const _0x1eea68=[];await this[_0x431f('0x97')](),this[_0x431f('0x8d')]=!0x1,_0x12a10d>this[_0x431f('0x32')][_0x431f('0xcf')]&&(_0x12a10d=null),null===_0x12a10d&&(_0x12a10d=await this[_0x431f('0x26')][_0x431f('0xa6')]());const _0x589342=this['_getFromVersion'](_0x12a10d),_0xc6da9e=this[_0x431f('0xc0')]({'from':_0x589342,'to':_0x12a10d});if(this['currentRevision'][_0x431f('0xcf')]<_0x12a10d){const _0xdb5cb5=this[_0x431f('0xc0')]({'revision':this[_0x431f('0x32')],'from':_0x12a10d,'to':_0x12a10d});_0xdb5cb5[_0x431f('0x1d')]=[],_0xdb5cb5['authorsIds']=[],_0xdb5cb5['id']=this[_0x431f('0x32')]['id'],this[_0x431f('0x32')]['_update'](_0xdb5cb5,!0x0),delete _0xdb5cb5[_0x431f('0x1d')],_0x1eea68[_0x431f('0x102')](_0xdb5cb5);}_0x3a9303[_0x431f('0x80')]=this['editor']['plugins']['get'](_0x431f('0x24'))['me']['id'],_0x3a9303['name']=_0x3a9303[_0x431f('0x6b')]||null,_0x3a9303['id']=_0x3a9303['id']||_0x42ca40(),_0x3a9303={..._0x3a9303,..._0xc6da9e};const _0x5a06e4=this[_0x431f('0xce')](_0x3a9303);_0x1eea68[_0x431f('0x102')](_0x3a9303);const _0x5d5e5b=this[_0x431f('0xef')][_0x431f('0xad')](_0x5a06e4);if(0x0!==_0x5d5e5b){const _0x1bf2ae=this[_0x431f('0xef')][_0x431f('0xb4')](_0x5d5e5b-0x1);if(_0x1bf2ae[_0x431f('0x100')]!==_0x12a10d){const _0x45a5d2=this['_revisionDataBuilder'][_0x431f('0x95')](_0x12a10d,_0x1bf2ae[_0x431f('0xcf')]),_0x17c071={'id':_0x1bf2ae['id'],'diffData':_0x45a5d2[_0x431f('0xc9')],'authorsIds':_0x45a5d2['authorsIds'],'authors':_0x45a5d2['authorsIds'][_0x431f('0xaf')](_0x97da81=>this[_0x431f('0x4a')][_0x431f('0x22')][_0x431f('0x2d')]('Users')[_0x431f('0x9d')](_0x97da81)),'fromVersion':_0x12a10d};_0x1bf2ae===this[_0x431f('0x32')]&&(_0x17c071['createdAt']=new Date(_0x3a9303[_0x431f('0x74')][_0x431f('0x69')]()+0xa)),_0x1bf2ae['_update'](_0x17c071,!0x0),delete _0x17c071[_0x431f('0x1d')],_0x1eea68[_0x431f('0x102')](_0x17c071);}}if(this['adapter']){for(const _0x421465 of _0x1eea68)this['_bufferUpdate'](_0x421465['id'],_0x421465,!0x0);this['sendBufferedUpdates']();}return _0x5a06e4;}[_0x431f('0xce')](_0x1bcc82){const _0xb9f5db=this[_0x431f('0xef')][_0x431f('0x93')](_0x1bcc82);return this[_0x431f('0x60')]&&_0xb9f5db['on'](_0x431f('0x2e'),(_0x16e9be,_0x33c935,_0x3507e9)=>{_0x3507e9||(this['_bufferUpdate'](_0x33c935['id'],_0x33c935,!0x0),this[_0x431f('0xd3')]());}),this[_0x431f('0xef')][_0x431f('0xb')](_0xb9f5db,this[_0x431f('0x1a')](_0xb9f5db)),_0xb9f5db;}async[_0x431f('0x2')](_0x327a6a){await this[_0x431f('0x43')](_0x327a6a);const _0x394827={};for(const _0x26be76 in _0x327a6a[_0x431f('0xc9')]){if(_0x327a6a[_0x431f('0xc9')][_0x26be76][_0x431f('0xba')]&&!_0x327a6a['diffData'][_0x26be76][_0x431f('0xba')][_0x431f('0xdc')])continue;const _0x3c9c47=this['_removeRevisionMarkers'](JSON[_0x431f('0xf0')](_0x327a6a[_0x431f('0xc9')][_0x26be76][_0x431f('0xab')])),_0xc68e59=this[_0x431f('0x4a')]['editing'][_0x431f('0x6e')][_0x431f('0xed')],_0x531315=new _0x384c62(_0xc68e59,_0x3c9c47[_0x431f('0xaf')](_0x476e20=>J(_0x476e20,this['editor'])));this['editor'][_0x431f('0x106')][_0x431f('0xff')][_0x431f('0x19')]('marked'),_0x394827[_0x26be76]=this['editor'][_0x431f('0x106')]['processor'][_0x431f('0x10')](_0x531315),this[_0x431f('0x4a')][_0x431f('0x106')][_0x431f('0xff')][_0x431f('0x19')](_0x431f('0x9c'));}return _0x394827;}async[_0x431f('0x7a')](_0x5d3193){await this['_loadRevisionData'](_0x5d3193);const _0x27a59b={};for(const _0x99dd31 in _0x5d3193[_0x431f('0xc9')])_0x5d3193[_0x431f('0xc9')][_0x99dd31][_0x431f('0xba')]&&!_0x5d3193[_0x431f('0xc9')][_0x99dd31]['attachChange']['isAttached']||(_0x27a59b[_0x99dd31]=_0x5d3193[_0x431f('0xc9')][_0x99dd31][_0x431f('0x3f')]||{});return _0x27a59b;}[_0x431f('0xd3')](){if(0x0===this[_0x431f('0xf7')]['size'])return;if(this['_isPendingUpdate'])return;let _0x4f89dc=Array[_0x431f('0xdd')](this[_0x431f('0xf7')][_0x431f('0xcb')]());this[_0x431f('0xf7')][_0x431f('0x3b')]();for(let _0x2bbfaa=0x0;_0x2bbfaa<_0x4f89dc['length'];_0x2bbfaa++){const _0x6ba7fa=_0x4f89dc[_0x2bbfaa];let _0x361df2=!0x1;for(const _0x386424 of Object[_0x431f('0x33')](_0x6ba7fa))void 0x0===_0x6ba7fa[_0x386424]?delete _0x6ba7fa[_0x386424]:'id'!==_0x386424&&(_0x361df2=!0x0);_0x361df2||(_0x4f89dc[_0x2bbfaa]=null);}if(_0x4f89dc=_0x4f89dc['filter'](_0x44160=>null!==_0x44160),!_0x4f89dc['length'])return;for(let _0x40027a=0x0;_0x40027a<_0x4f89dc['length'];_0x40027a++){const _0x50b5b1=_0x4f89dc[_0x40027a];void 0x0!==_0x50b5b1[_0x431f('0x100')]&&void 0x0===_0x50b5b1[_0x431f('0xcf')]&&(_0x50b5b1[_0x431f('0xcf')]=this[_0x431f('0xef')][_0x431f('0xb4')](_0x50b5b1['id'])[_0x431f('0xcf')]),void 0x0!==_0x50b5b1[_0x431f('0xcf')]&&void 0x0===_0x50b5b1[_0x431f('0x100')]&&(_0x50b5b1['fromVersion']=this[_0x431f('0xef')][_0x431f('0xb4')](_0x50b5b1['id'])[_0x431f('0x100')]);}const _0x50a3b8=this[_0x431f('0x4a')][_0x431f('0xe3')][_0x431f('0x2d')](_0x431f('0xdb'));this['_isPendingUpdate']=!0x0,this[_0x431f('0xd2')](),this[_0x431f('0x60')][_0x431f('0x2f')](_0x4f89dc,_0x50a3b8)[_0x431f('0x14')](()=>{this[_0x431f('0xc1')]=!0x1;})[_0x431f('0xcc')](_0x38da4b=>{if(_0x38da4b)for(const _0x5dd45c of _0x38da4b)this[_0x431f('0x49')]({'id':_0x5dd45c['id'],'createdAt':_0x5dd45c['createdAt']});this[_0x431f('0x7c')](),this[_0x431f('0xd3')]();});}[_0x431f('0xb7')](_0x2cb053,_0x4faca7){let _0x59fb88=this[_0x431f('0x4a')][_0x431f('0xe3')][_0x431f('0x2d')]('initialData'),_0x24aa98=this['editor'][_0x431f('0xe3')][_0x431f('0x2d')](_0x431f('0xcd'));if(void 0x0===_0x59fb88){_0x59fb88={};for(const _0x177464 of this[_0x431f('0x4a')][_0x431f('0xaa')][_0x431f('0xed')][_0x431f('0xb8')]())_0x59fb88[_0x177464]='';}if('string'==typeof _0x59fb88&&(_0x59fb88={'main':_0x59fb88}),void 0x0===_0x24aa98){_0x24aa98={};for(const _0x3b4581 of this[_0x431f('0x4a')][_0x431f('0xaa')][_0x431f('0xed')][_0x431f('0xb8')]())_0x24aa98[_0x3b4581]={};}let _0x39f5ac=!0x1;const _0x52bfac=Object['keys'](_0x59fb88),_0x120175=Object['keys'](_0x2cb053);for(const _0x3b900e of _0x52bfac){if(_0x59fb88[_0x3b900e]!==_0x2cb053[_0x3b900e]&&''!==_0x59fb88[_0x3b900e][_0x431f('0xda')]()){_0x39f5ac=!0x0;break;}if(!_0x1a1441(_0x24aa98[_0x3b900e],_0x4faca7[_0x3b900e])&&Object['keys'](_0x24aa98[_0x3b900e])[_0x431f('0x90')]>0x0){_0x39f5ac=!0x0;break;}}_0x39f5ac||(_0x39f5ac=_0x120175[_0x431f('0xea')](_0x4ebdd8=>!this[_0x431f('0x4a')][_0x431f('0xaa')][_0x431f('0xed')][_0x431f('0x4c')](_0x4ebdd8))),_0x39f5ac&&_0xf7151(_0x431f('0x57'),{'editorData':_0x59fb88,'editorRootsAttributes':_0x24aa98,'revisionData':_0x2cb053,'revisionRootsAttributes':_0x4faca7}),this[_0x431f('0x4a')][_0x431f('0xe3')][_0x431f('0x5f')]('initialData',_0x2cb053),this[_0x431f('0x4a')][_0x431f('0xe3')][_0x431f('0x5f')](_0x431f('0xcd'),_0x4faca7);}[_0x431f('0xd2')](){if(!this[_0x431f('0x73')]){const _0x20487d=this[_0x431f('0x4a')][_0x431f('0x22')]['get'](_0x431f('0x8a'));this[_0x431f('0x73')]=_0x20487d[_0x431f('0x9a')](_0x1b642f(this['editor'][_0x431f('0x56')],_0x431f('0x18')));}}[_0x431f('0x7c')](){this[_0x431f('0x73')]&&(this[_0x431f('0x4a')][_0x431f('0x22')][_0x431f('0x2d')](_0x431f('0x8a'))[_0x431f('0x109')](this['_pendingAction']),this[_0x431f('0x73')]=null);}[_0x431f('0x1a')](_0x2d3140){const _0x48d7ab=this['repository'][_0x431f('0x81')]();_0x48d7ab['reverse']();let _0x1fee62=0x0;for(;_0x1fee62<_0x48d7ab[_0x431f('0x90')];){const _0x4b1ff1=_0x48d7ab[_0x1fee62];if(_0x4b1ff1===this[_0x431f('0x32')]){_0x1fee62++;continue;}if(_0x4b1ff1['id']===this[_0x431f('0x2b')])break;const _0x2b4cc7=_0x2d3140[_0x431f('0xcf')]-_0x4b1ff1['toVersion']||_0x2d3140[_0x431f('0x100')]-_0x4b1ff1[_0x431f('0x100')];if(_0x2b4cc7>0x0)break;if(_0x2b4cc7<0x0)_0x1fee62++;else{if(!_0x2d3140[_0x431f('0x5a')]&&_0x4b1ff1[_0x431f('0x5a')])break;if(_0x4b1ff1[_0x431f('0x5a')]||!_0x2d3140[_0x431f('0x5a')]){if(_0x2d3140[_0x431f('0x74')]>_0x4b1ff1[_0x431f('0x74')])break;_0x1fee62++;}else _0x1fee62++;}}return _0x1fee62;}['setRevisionData'](_0x3030e8){const _0x51e486=this['repository'][_0x431f('0xb4')](_0x3030e8['id']);if(_0x3030e8['createdAt']&&(_0x3030e8['createdAt']=new Date(_0x3030e8[_0x431f('0x74')])),_0x3030e8[_0x431f('0x94')]){const _0x1d3b90=this['editor']['plugins']['get']('Users');_0x3030e8[_0x431f('0x1d')]=_0x3030e8[_0x431f('0x94')][_0x431f('0xaf')](_0x1ffcbb=>_0x1d3b90['getUser'](_0x1ffcbb));}_0x51e486[_0x431f('0x2e')](_0x3030e8,!0x0);}[_0x431f('0xc0')]({revision:_0x18bea6=null,from:_0x45fef0=null,to:_0x3f081a=null}){_0x45fef0=null!==_0x45fef0?_0x45fef0:_0x18bea6[_0x431f('0x100')],_0x3f081a=null!==_0x3f081a?_0x3f081a:_0x18bea6[_0x431f('0xcf')];const _0x281565=this['_revisionDataBuilder'][_0x431f('0x95')](_0x45fef0,_0x3f081a),_0x1e565c={'diffData':_0x281565[_0x431f('0xc9')],'authorsIds':_0x281565[_0x431f('0x94')],'fromVersion':_0x45fef0,'toVersion':_0x3f081a};if(!_0x18bea6||_0x3f081a!==_0x18bea6[_0x431f('0xcf')]){const _0xc37e1a=_0x3f081a-0x1,_0x9e7cef=this['_source'][_0x431f('0x59')][_0x431f('0x4b')](_0xc37e1a);_0x1e565c[_0x431f('0x74')]=_0x9e7cef&&_0x9e7cef[_0x431f('0x74')]||new Date();}if(this[_0x431f('0x99')]&&_0x45fef0===this[_0x431f('0x99')][_0x431f('0x100')])for(const _0x486c33 of this[_0x431f('0x99')][_0x431f('0x1d')])_0x1e565c[_0x431f('0x94')][_0x431f('0x88')](_0x486c33['id'])||_0x1e565c[_0x431f('0x94')][_0x431f('0x102')](_0x486c33['id']);return _0x1e565c;}[_0x431f('0x43')](_0x511da0){if(!_0x511da0||_0x511da0[_0x431f('0xc9')])return Promise['resolve']();{const _0x3e1642=this['editor'][_0x431f('0xe3')][_0x431f('0x2d')](_0x431f('0xdb'));return this[_0x431f('0x60')][_0x431f('0xb4')]({'channelId':_0x3e1642,'revisionId':_0x511da0['id']})['then'](_0x140e9c=>{_0x511da0[_0x431f('0xc9')]=_0x140e9c[_0x431f('0xc9')];});}}[_0x431f('0x1f')](_0x23665b,_0x3b684a,_0x5e0555){if(this['_bufferedUpdates'][_0x431f('0x9')](_0x23665b)){const _0x49f677=this['_bufferedUpdates'][_0x431f('0x2d')](_0x23665b);_0x3b684a=_0x5e0555?{..._0x49f677,..._0x3b684a}:{..._0x3b684a,..._0x49f677};}this[_0x431f('0xf7')][_0x431f('0x5f')](_0x23665b,_0x3b684a);}[_0x431f('0x38')](_0x241783){const _0x4cec56=this[_0x431f('0xef')][_0x431f('0x81')]();_0x4cec56[_0x431f('0x4f')](),_0x4cec56[_0x431f('0xa8')]();const _0x126057=_0x4cec56[_0x431f('0xd7')](_0x4f51f6=>_0x4f51f6[_0x431f('0xcf')]<=_0x241783)['toVersion'];return _0x126057<this[_0x431f('0x47')]?this[_0x431f('0x47')]:_0x126057;}[_0x431f('0x6f')](_0x232a65){const _0x478cde=this[_0x431f('0xef')][_0x431f('0xb4')](this[_0x431f('0xef')][_0x431f('0x90')]-0x1);if(_0x478cde)this[_0x431f('0x2b')]=_0x478cde['id'];else{const _0x361397=!this[_0x431f('0x4a')][_0x431f('0xaa')][_0x431f('0xed')][_0x431f('0xfe')][_0x431f('0xd7')](_0x32500c=>this[_0x431f('0x4a')][_0x431f('0xaa')][_0x431f('0x1')](_0x32500c)),_0x44eb70=this[_0x431f('0x4a')][_0x431f('0x22')][_0x431f('0x2d')]('Users')['me']['id'],_0xb6ed4b=_0x1b642f(this[_0x431f('0x4a')][_0x431f('0x56')],_0x361397?'Empty\x20document':_0x431f('0x63'));this['_makeRevision']({'from':_0x232a65,'to':_0x232a65,'id':this['_initialRevisionId'],'name':_0xb6ed4b,'creatorId':_0x44eb70});}}[_0x431f('0xdf')](_0x1b6887){const _0x4cf537=this[_0x431f('0x26')]['getCurrentRevisionId']();this['currentRevision']=this[_0x431f('0xef')][_0x431f('0xb4')](_0x4cf537),this['currentRevision']||(this[_0x431f('0x32')]=this['_makeRevision']({'from':_0x1b6887,'to':_0x1b6887,'id':_0x4cf537,'name':'','creatorId':null}));}['_makeRevision']({name:_0x4c67dc,from:_0x4c4f01,to:_0x281502,creatorId:_0x458a2d,id:_0x50f1c7}){const _0x53426c=this['buildRevisionData']({'from':_0x4c4f01,'to':_0x281502});_0x53426c[_0x431f('0x6b')]=_0x4c67dc,_0x53426c[_0x431f('0x80')]=_0x458a2d,_0x53426c['id']=_0x50f1c7;const _0x366a91=this[_0x431f('0xce')](_0x53426c);return this[_0x431f('0x60')]&&this[_0x431f('0x1f')](_0x53426c['id'],_0x53426c,!0x0),_0x366a91;}[_0x431f('0xf3')](){this[_0x431f('0x4a')][_0x431f('0x92')][_0x431f('0x58')](_0x431f('0x52'))[_0x431f('0xee')]({'model':'revision'});}[_0x431f('0x9f')](_0x4cc2ff){return(_0x4cc2ff=_0x4cc2ff[_0x431f('0x3d')](_0x243928=>!_0x243928[_0x431f('0x6b')]||'revision-start'!==_0x243928['name']&&'revision-end'!==_0x243928[_0x431f('0x6b')]))[_0x431f('0xe1')](_0x2523fc=>{_0x431f('0xe9')!=typeof _0x2523fc&&(_0x2523fc[_0x431f('0x62')]=this['_removeRevisionMarkers'](_0x2523fc['children']),_0x2523fc[_0x431f('0xd6')]=_0x2523fc[_0x431f('0xd6')][_0x431f('0x3d')](_0x35b920=>!_0x35b920[0x0][_0x431f('0x70')](_0x431f('0xc7'))));}),_0x4cc2ff;}}function J(_0x5856f4,_0xcea817){const _0x570285=_0xcea817['editing'][_0x431f('0x6e')][_0x431f('0xed')];if(_0x431f('0xe9')==typeof _0x5856f4)return new _0x2598fb(_0x570285,_0x5856f4);{const _0x2d294f=_0x5856f4['children'][_0x431f('0xaf')](_0x43ae43=>J(_0x43ae43,_0xcea817));return new(B[_0x5856f4['type']]||_0x460c82)(_0x570285,_0x5856f4[_0x431f('0x6b')],_0x5856f4[_0x431f('0xd6')],_0x2d294f);}}class H{constructor(_0x3dce30){this[_0x431f('0x4a')]=_0x3dce30,this[_0x431f('0x40')]=new Map(),this[_0x431f('0x65')]=-0x1,this[_0x431f('0xb6')]=-0x1,this[_0x431f('0x3e')]=new Map(),this[_0x431f('0x13')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x431f('0x5d')]=new Map(),this[_0x431f('0xa5')]=new Map(),this[_0x431f('0x87')]=new Map(),this[_0x431f('0x20')]=new Map(),this[_0x431f('0x8c')]=new Map(),this[_0x431f('0xca')]=new Map(),this[_0x431f('0x107')]=new Map(),this['_revisionId']=0x1;}['init'](_0x3b2c20){this[_0x431f('0xa3')]=_0x3b2c20;const _0x18ae80=new Map(),_0x316419=new Map(),_0x13d20f=this['editor']['model'][_0x431f('0xed')][_0x431f('0xfe')]['map'](_0x2721be=>_0x2721be[_0x431f('0xa')]);for(const _0x36338c of _0x13d20f){const _0x153d3f=this[_0x431f('0x4a')][_0x431f('0xaa')]['document'][_0x431f('0x4c')](_0x36338c),_0x2c8315=q(_0x153d3f);_0x18ae80[_0x431f('0x5f')](_0x36338c,_0x2c8315),_0x316419['set'](_0x36338c,Object[_0x431f('0xfc')](_0x153d3f[_0x431f('0xa1')]()));}const _0x13dee0=Array[_0x431f('0xdd')](this['editor']['model'][_0x431f('0xf8')])['map'](_0x493179=>[_0x493179[_0x431f('0x6b')],_0x493179[_0x431f('0x48')]()]),_0x58de0e=this[_0x431f('0xa3')]['version'];this[_0x431f('0xbe')](_0x58de0e,_0x18ae80,_0x13dee0,_0x316419),this[_0x431f('0x6')]=this[_0x431f('0x3a')];const _0xefc32a=new Map(),_0x173d9c=new Map();for(const _0x3f8f51 of _0x13d20f){const _0x166d78=G(_0x3f8f51);_0xefc32a['set'](_0x3f8f51,_0x166d78),_0x173d9c[_0x431f('0x5f')](_0x3f8f51,{});}this[_0x431f('0xbe')](Number[_0x431f('0x9e')],_0xefc32a,[],_0x173d9c);}['getData'](_0x177ae1,_0x18eedb){if(this['_lastFrom']===_0x177ae1&&this['_lastTo']<=_0x18eedb)this['_savedMetaData'][_0x431f('0x7f')]>0x1&&this['_removeMetaData'](this[_0x431f('0xb6')]),this[_0x431f('0xbb')](this['_lastTo'],_0x18eedb,!0x0);else{if(!this['_savedMetaData'][_0x431f('0x9')](_0x177ae1)){const _0x17a147=this['_getPreviousFrom'](_0x177ae1);this[_0x431f('0x5b')](_0x17a147,_0x177ae1,!0x1);}this[_0x431f('0x5b')](_0x177ae1,_0x18eedb,!0x0);}return this[_0x431f('0x65')]=_0x177ae1,this[_0x431f('0xb6')]=_0x18eedb,this[_0x431f('0xeb')]();}['loadState'](_0x3ab7de){this['_reset'](),this['_lastFrom']=_0x3ab7de[_0x431f('0x100')],this[_0x431f('0xb6')]=_0x3ab7de[_0x431f('0xcf')];for(const _0x1df3ba in _0x3ab7de[_0x431f('0xc9')]){const _0x324aa7=_0x3ab7de['diffData'][_0x1df3ba][_0x431f('0xba')],_0x1e8c95=_0x330c50(_0x3ab7de['diffData'][_0x1df3ba]['attributesBefore'])||{},_0x1b292e=this[_0x431f('0x83')](_0x3ab7de[_0x431f('0xc9')][_0x1df3ba][_0x431f('0x1b')]);_0x1b292e[_0x431f('0xa')]=_0x1df3ba,_0x1b292e['_isAttached']=!_0x324aa7||!_0x324aa7[_0x431f('0xdc')],_0x1b292e[_0x431f('0xdc')]=()=>_0x1b292e[_0x431f('0xac')],this[_0x431f('0x5d')][_0x431f('0x5f')](_0x1df3ba,_0x1b292e),this['_baseRootsAttributes'][_0x431f('0x5f')](_0x1df3ba,_0x1e8c95),_0x324aa7&&this[_0x431f('0x107')][_0x431f('0x5f')](_0x1df3ba,_0x324aa7);const _0x50767c=this['_makeIdsRoot'](_0x1b292e);this['_baseIdsRoots'][_0x431f('0x5f')](_0x1df3ba,_0x50767c);for(const [_0x82670f,_0x47c8f3]of _0x1b292e[_0x431f('0xf8')]){if(!_0x82670f[_0x431f('0x70')](_0x431f('0xc8')))continue;const _0x11779e=_0x82670f['split'](':')[0x2];for(const _0xdaf8a8 of _0x47c8f3[_0x431f('0x2c')]({'singleCharacters':!0x0})){const _0x3ddcb9=this[_0x431f('0xa7')](_0xdaf8a8),_0x2daa0e='elementEnd'==_0xdaf8a8[_0x431f('0xa0')]?_0xdaf8a8[_0x431f('0x2a')][_0x431f('0x36')]['slice'](0x0,-0x1):_0xdaf8a8[_0x431f('0x2a')]['path'],_0x52bfeb=_0x50767c['getNodeByPath'](_0x2daa0e)['getAttribute'](_0x3ddcb9);this['_touched'][_0x431f('0x5f')](_0x52bfeb,{'userId':_0x11779e});}}}this['_startingRevisionId']=this['_revisionId'];const _0x2be552=[...Array(this[_0x431f('0x3a')])[_0x431f('0x33')]()]['slice'](0x1)[_0x431f('0x3d')](_0x4a1e6e=>!this['_touched'][_0x431f('0x9')](_0x4a1e6e));let _0x44aeae=0x0;const _0x43152a=new Map();for(const _0x4f1b21 in _0x3ab7de[_0x431f('0xc9')]){const _0x2d2a4d=_0x3ab7de['diffData'][_0x4f1b21][_0x431f('0xba')],_0x1aef0e=_0x330c50(_0x3ab7de[_0x431f('0xc9')][_0x4f1b21][_0x431f('0x3f')])||{},_0x25abf0=this[_0x431f('0x83')](_0x3ab7de[_0x431f('0xc9')][_0x4f1b21][_0x431f('0xab')]);_0x25abf0[_0x431f('0xa')]=_0x4f1b21,_0x25abf0[_0x431f('0xac')]=!_0x2d2a4d||_0x2d2a4d[_0x431f('0xdc')],_0x25abf0[_0x431f('0xdc')]=()=>_0x25abf0['_isAttached'],this['_diffRoots']['set'](_0x4f1b21,_0x25abf0),this['_diffRootsAttributes']['set'](_0x4f1b21,_0x1aef0e);const _0x483ccd=this[_0x431f('0xbd')](_0x25abf0,Number[_0x431f('0x9e')]);this['_idsRoots'][_0x431f('0x5f')](_0x4f1b21,_0x483ccd),_0x43152a['set'](_0x4f1b21,_0x25abf0['isAttached']()?_0x1aef0e:{});for(const [_0x3e4126,_0x5291ef]of _0x25abf0[_0x431f('0xf8')]){if(!_0x3e4126[_0x431f('0x70')](_0x431f('0xc8')))continue;const _0x131ca7=_0x3e4126[_0x431f('0xb1')](':')[0x2];for(const _0x452d08 of _0x5291ef['getWalker']({'singleCharacters':!0x0})){const _0x53bd85=this[_0x431f('0xa7')](_0x452d08),_0x2cb1cc=this['_revisionId']++,_0xffcf60='elementEnd'==_0x452d08[_0x431f('0xa0')]?_0x452d08[_0x431f('0x2a')][_0x431f('0x36')][_0x431f('0x44')](0x0,-0x1):_0x452d08['previousPosition']['path'];_0x483ccd[_0x431f('0x7')](_0xffcf60)[_0x431f('0x105')](_0x53bd85,_0x2cb1cc),this['_touched']['set'](_0x2cb1cc,{'userId':_0x131ca7});}}for(const _0x26a91f of this[_0x431f('0x4a')][_0x431f('0xaa')][_0x431f('0x8')](_0x25abf0)[_0x431f('0x2c')]({'singleCharacters':!0x0})){const _0x4b143a=this[_0x431f('0xa7')](_0x26a91f),_0x32a2e2=_0x431f('0x8b')==_0x26a91f['type']?_0x26a91f['previousPosition'][_0x431f('0x36')][_0x431f('0x44')](0x0,-0x1):_0x26a91f['previousPosition'][_0x431f('0x36')],_0x52a4b3=_0x483ccd[_0x431f('0x7')](_0x32a2e2);_0x52a4b3[_0x431f('0x71')](_0x4b143a)>0x0||_0x52a4b3[_0x431f('0x105')](_0x4b143a,_0x2be552[_0x44aeae++]);}for(const [_0x4f7f33,_0x4c6299]of _0x25abf0[_0x431f('0xf8')])_0x4f7f33[_0x431f('0x70')]('revision:')||this[_0x431f('0x3e')][_0x431f('0x5f')](_0x4f7f33,_0x4c6299);}const _0x47ab30=G('$graveyard');this['_baseRoots'][_0x431f('0x5f')]('$graveyard',_0x47ab30),this[_0x431f('0x20')][_0x431f('0x5f')](_0x431f('0x46'),this[_0x431f('0xbd')](_0x47ab30,0x1));const _0x435c4a=G(_0x431f('0x46'));this[_0x431f('0x13')]['set'](_0x431f('0x46'),_0x435c4a),this[_0x431f('0x87')][_0x431f('0x5f')](_0x431f('0x46'),this[_0x431f('0xbd')](_0x435c4a,0x1));const _0x3daf41=Array[_0x431f('0xdd')](this['_diffRoots'])[_0x431f('0xaf')](([_0x5a12b6,_0x43380f])=>[_0x5a12b6,q(_0x43380f)]);this[_0x431f('0xbe')](this[_0x431f('0xb6')],_0x3daf41,this[_0x431f('0x3e')],_0x43152a);}[_0x431f('0x83')](_0x4185fb){const _0x20862d=JSON[_0x431f('0xf0')](_0x4185fb),_0x187397=this[_0x431f('0x4a')]['editing'][_0x431f('0x6e')][_0x431f('0xed')],_0x22a49b=new _0x384c62(_0x187397,_0x20862d[_0x431f('0xaf')](_0x264bbf=>J(_0x264bbf,this[_0x431f('0x4a')])));return this[_0x431f('0x4a')][_0x431f('0x106')]['toModel'](_0x22a49b);}[_0x431f('0xbe')](_0xcfe73b,_0x238e75,_0x1a56dc,_0x19ce22){const _0x20d6e5=new Map(_0x238e75),_0x46d34b=new Map(_0x330c50(_0x19ce22)),_0xbd7c10=new Map();for(const [_0x330cd8,_0x1cf4d1]of _0x1a56dc)_0xbd7c10[_0x431f('0x5f')](_0x330cd8,{'start':_0x1cf4d1[_0x431f('0x104')]['clone'](),'end':_0x1cf4d1[_0x431f('0x96')][_0x431f('0x23')](),'rootName':_0x1cf4d1['root'][_0x431f('0xa')]});this[_0x431f('0x40')][_0x431f('0x5f')](_0xcfe73b,{'roots':_0x20d6e5,'markers':_0xbd7c10,'rootsAttributes':_0x46d34b});}[_0x431f('0xe7')](_0x1e6d7f){this[_0x431f('0x40')][_0x431f('0x45')](_0x1e6d7f);}[_0x431f('0x17')](){this[_0x431f('0x9b')](),this[_0x431f('0x65')]=-0x1,this[_0x431f('0xb6')]=-0x1,this[_0x431f('0x40')][_0x431f('0x3b')](),this[_0x431f('0x78')](this['source']);}[_0x431f('0x9b')](){this[_0x431f('0x8c')]['clear'](),this[_0x431f('0xca')][_0x431f('0x3b')](),this[_0x431f('0x107')][_0x431f('0x3b')](),this[_0x431f('0x13')][_0x431f('0x3b')](),this[_0x431f('0xb0')][_0x431f('0x3b')](),this['_baseRoots'][_0x431f('0x3b')](),this['_baseRootsAttributes'][_0x431f('0x3b')](),this[_0x431f('0x87')][_0x431f('0x3b')](),this['_baseIdsRoots'][_0x431f('0x3b')](),this[_0x431f('0x3e')][_0x431f('0x3b')](),this[_0x431f('0x3a')]=0x1,this[_0x431f('0x6')]=this[_0x431f('0x3a')];}[_0x431f('0xbd')](_0x322896,_0x3af1af=null){let _0x3cc60d=null;_0x322896['is']('documentFragment')||(_0x3cc60d=new _0x25a114(_0x322896[_0x431f('0x6b')],{'vid_start':null===_0x3af1af?this[_0x431f('0x3a')]++:_0x3af1af++}));const _0x2ab93f=[];for(const _0x54dfd4 of _0x322896['getChildren']())if(_0x54dfd4['is']('element')){_0x2ab93f[_0x431f('0x102')](this[_0x431f('0xbd')](_0x54dfd4,_0x3af1af));const _0x153ab4=_0x2ab93f[_0x2ab93f['length']-0x1];null!==_0x3af1af&&(_0x3af1af=_0x153ab4['is'](_0x431f('0xa9'),_0x431f('0xd5'))?_0x153ab4[_0x431f('0x71')](_0x431f('0xf6'))+0x1:_0x153ab4[_0x431f('0x71')](_0x431f('0x34'))+0x1);}else for(let _0x3cc415=0x0;_0x3cc415<_0x54dfd4[_0x431f('0x25')];_0x3cc415++)_0x2ab93f[_0x431f('0x102')](new _0x25a114(_0x431f('0xd5'),{'vid':null===_0x3af1af?this['_revisionId']++:_0x3af1af++}));if(_0x322896['is'](_0x431f('0x76'))){const _0x103f6e=G(_0x322896['rootName']);return _0x103f6e[_0x431f('0x101')](0x0,_0x2ab93f),_0x103f6e;}return _0x3cc60d[_0x431f('0x105')]('vid_end',null===_0x3af1af?this[_0x431f('0x3a')]++:_0x3af1af++),_0x3cc60d[_0x431f('0x101')](0x0,_0x2ab93f),_0x3cc60d;}[_0x431f('0x5b')](_0x29bb48,_0x3f832b,_0x27d040){this[_0x431f('0x9b')]();const {roots:_0x137010,markers:_0x5bca46,rootsAttributes:_0x39ebcb}=this[_0x431f('0x40')]['get'](_0x29bb48);this[_0x431f('0x5d')]=new Map(_0x137010),this[_0x431f('0xa5')]=new Map(_0x330c50(_0x39ebcb));for(const [_0x1138c1,_0x18d58d]of this['_baseRoots'])if(_0x431f('0x46')!==_0x1138c1&&(this['_diffRoots'][_0x431f('0x5f')](_0x1138c1,q(_0x18d58d)),this[_0x431f('0xb0')]=new Map(_0x330c50(_0x39ebcb)),_0x27d040)){const _0x260514=this[_0x431f('0x3a')];this['_idsRoots']['set'](_0x1138c1,this['_makeIdsRoot'](_0x18d58d)),this[_0x431f('0x20')][_0x431f('0x5f')](_0x1138c1,this['_makeIdsRoot'](_0x18d58d,_0x260514));}this[_0x431f('0x6')]=this[_0x431f('0x3a')],this[_0x431f('0x13')]['set'](_0x431f('0x46'),q(this[_0x431f('0x5d')]['get'](_0x431f('0x46')))),_0x27d040&&this[_0x431f('0x87')][_0x431f('0x5f')](_0x431f('0x46'),this[_0x431f('0xbd')](this[_0x431f('0x5d')][_0x431f('0x2d')](_0x431f('0x46'))));for(const [_0x25c2d4,_0x2fb0f8]of _0x5bca46){const _0x516d37=this[_0x431f('0x5d')][_0x431f('0x2d')](_0x2fb0f8[_0x431f('0xa')]),_0x2023f3=this[_0x431f('0x13')][_0x431f('0x2d')](_0x2fb0f8['rootName']),_0x3c131a=new _0x1415b9(this[_0x431f('0x51')](_0x2fb0f8[_0x431f('0x104')],_0x516d37),this[_0x431f('0x51')](_0x2fb0f8[_0x431f('0x96')],_0x516d37)),_0x30a4c1=this[_0x431f('0xe6')](_0x3c131a,_0x2023f3);_0x516d37[_0x431f('0xf8')]['set'](_0x25c2d4,_0x3c131a),this[_0x431f('0x3e')][_0x431f('0x5f')](_0x25c2d4,_0x30a4c1);}this['_applyOperations'](_0x29bb48,_0x3f832b,_0x27d040);}['_applyOperations'](_0x58ee0d,_0x3fa8ca,_0x219c57){for(const _0x5f008f of this[_0x431f('0xa3')][_0x431f('0x89')](_0x58ee0d,_0x3fa8ca))this[_0x431f('0xa4')](_0x5f008f,_0x219c57);for(const _0x7bdaea of this[_0x431f('0x13')][_0x431f('0xcb')]())_0x7bdaea[_0x431f('0xf8')][_0x431f('0x3b')]();for(const [_0x27d846,_0xe25650]of this[_0x431f('0x3e')]){this[_0x431f('0x13')][_0x431f('0x2d')](_0xe25650[_0x431f('0x6a')][_0x431f('0xa')])[_0x431f('0xf8')]['set'](_0x27d846,_0xe25650[_0x431f('0x23')]());}const _0x16161d=new Map(),_0x3373e2=new Map();for(const [_0x45d128,_0x3ca2d3]of this[_0x431f('0x13')])_0x16161d[_0x431f('0x5f')](_0x45d128,q(_0x3ca2d3)),_0x3373e2['set'](_0x45d128,this['_diffRootsAttributes'][_0x431f('0x2d')](_0x45d128));this[_0x431f('0xbe')](_0x3fa8ca,_0x16161d,this[_0x431f('0x3e')],_0x3373e2);}[_0x431f('0xec')](_0x5eae43){const _0x66ff0=Array[_0x431f('0xdd')](this[_0x431f('0x40')][_0x431f('0x33')]());_0x66ff0[_0x431f('0x50')]((_0x34d483,_0x1487fa)=>_0x34d483-_0x1487fa),_0x66ff0[_0x431f('0x4f')]();for(const _0x318cb3 of _0x66ff0)if(_0x318cb3<_0x5eae43)return _0x318cb3;return Number[_0x431f('0x9e')];}[_0x431f('0x6c')](_0x51ecbc,_0x4ca55c){const _0x55a6c8=Array['from'](_0x4ca55c['markers'])['map'](([_0x2cb04b,_0x4b9bb9])=>[_0x2cb04b,this['_fixRange'](_0x4b9bb9,_0x51ecbc)]);_0x51ecbc[_0x431f('0xf8')]=new Map(_0x55a6c8);}['_transformMarkers'](_0x2ee541){for(const _0x1aaba0 of this['_markers']['values']()){const _0x3dfe9f=_0x1aaba0[_0x431f('0xe5')](_0x2ee541),_0x261829=_0x1415b9['_createFromRanges'](_0x3dfe9f);_0x1aaba0[_0x431f('0x104')]=_0x261829['start'],_0x1aaba0[_0x431f('0x96')]=_0x261829[_0x431f('0x96')];}}[_0x431f('0xa4')](_0xc29844,_0x408c6d){if('addRoot'==_0xc29844[_0x431f('0xa0')]||_0x431f('0x28')==_0xc29844[_0x431f('0xa0')])return void this[_0x431f('0xf5')](_0xc29844,_0x408c6d);if(_0x431f('0xbc')==_0xc29844[_0x431f('0xa0')]){const _0x31ebfe=_0xc29844['position'][_0x431f('0x6a')][_0x431f('0xa')];this[_0x431f('0x13')][_0x431f('0x9')](_0x31ebfe)||(this[_0x431f('0x13')][_0x431f('0x5f')](_0x31ebfe,G(_0x31ebfe,!0x0)),this[_0x431f('0xb0')][_0x431f('0x5f')](_0x31ebfe,{}),_0x408c6d&&this[_0x431f('0x87')][_0x431f('0x5f')](_0x31ebfe,G(_0x31ebfe,!0x0)));}else{if(_0x431f('0x85')==_0xc29844[_0x431f('0xa0')]||_0x431f('0xe8')==_0xc29844[_0x431f('0xa0')]||_0x431f('0xb9')==_0xc29844[_0x431f('0xa0')])return void this[_0x431f('0xd9')](_0xc29844);}const _0x6cfe66=this[_0x431f('0x21')](_0xc29844,this[_0x431f('0x13')]);if(_0x431f('0x55')!==_0xc29844['type']&&(_0x6cfe66[_0x431f('0x27')](),this['_transformMarkers'](_0x6cfe66)),_0x408c6d)switch(_0x6cfe66[_0x431f('0xa0')]){case _0x431f('0xbc'):this[_0x431f('0x86')](_0xc29844);break;case'move':case _0x431f('0x109'):case _0x431f('0x1c'):this[_0x431f('0xf4')](_0xc29844);break;case'merge':this[_0x431f('0x1e')](_0xc29844);break;case _0x431f('0xb1'):this['_handleSplitOperation'](_0xc29844);break;case _0x431f('0x55'):this[_0x431f('0xc2')](_0xc29844);}}[_0x431f('0x21')](_0x1dbbe3,_0xa18747){const _0x2d642c=_0x1dbbe3[_0x431f('0x23')]();return _0x2d642c[_0x431f('0x11')]=_0x1dbbe3[_0x431f('0x11')],this['_fixOperation'](_0x2d642c,_0xa18747),_0x2d642c;}[_0x431f('0xf2')](_0x159ba5){return _0x159ba5[_0x431f('0xaf')](_0x41184b=>{const _0x2ab020=this[_0x431f('0xa7')](_0x41184b);return Number(_0x41184b['item'][_0x431f('0x71')](_0x2ab020));});}[_0x431f('0x8e')](_0x43c6c4,_0x13db03){if(_0x43c6c4['is'](_0x431f('0xa9'),'$text'))_0x13db03[_0x431f('0x102')]({'item':_0x43c6c4,'type':_0x431f('0x12')});else{_0x43c6c4['is']('element')&&_0x13db03[_0x431f('0x102')]({'item':_0x43c6c4,'type':_0x431f('0x7d')});for(const _0x20f405 of _0x43c6c4['getChildren']())this[_0x431f('0x8e')](_0x20f405,_0x13db03);_0x43c6c4['is'](_0x431f('0xa9'))&&_0x13db03[_0x431f('0x102')]({'item':_0x43c6c4,'type':_0x431f('0x8b')});}return _0x13db03;}[_0x431f('0xeb')](){const _0xb53861=new Map(this['_touched']),_0x515ee3=new Map(_0xb53861),_0xf5d2a0=new Map(),_0x446551={'insertions':{},'deletions':{}},_0x4ca124={'insertions':{},'deletions':{}},_0x49197e=new Map(),_0x316e0a=new Set([...this['_baseRoots'][_0x431f('0x33')](),...this[_0x431f('0x13')]['keys']()]);_0x316e0a[_0x431f('0x45')]('$graveyard');for(const _0x20117b of _0x316e0a){const _0x288047=this[_0x431f('0x13')][_0x431f('0x2d')](_0x20117b)||G(_0x20117b,!0x1),_0x55ce86=this[_0x431f('0x5d')][_0x431f('0x2d')](_0x20117b)||G(_0x20117b,!0x1);_0x288047[_0x431f('0xdc')]()||_0x55ce86[_0x431f('0xdc')]()?(_0x446551[_0x431f('0xab')][_0x20117b]=q(_0x288047),_0x446551[_0x431f('0x1b')][_0x20117b]=q(_0x55ce86),this[_0x431f('0x6c')](_0x446551[_0x431f('0x1b')][_0x20117b],_0x55ce86),this[_0x431f('0x6c')](_0x446551[_0x431f('0xab')][_0x20117b],_0x288047),_0x4ca124[_0x431f('0xab')][_0x20117b]=this['_generateTape'](this[_0x431f('0x87')][_0x431f('0x2d')](_0x20117b),[]),_0x4ca124[_0x431f('0x1b')][_0x20117b]=this[_0x431f('0x8e')](this[_0x431f('0x20')][_0x431f('0x2d')](_0x20117b)||G(_0x20117b,!0x1),[])):_0x316e0a[_0x431f('0x45')](_0x20117b);}for(const _0x5b30eb of _0x316e0a){const _0x44ba6c=_0x4ca124[_0x431f('0xab')][_0x5b30eb];for(const _0x52f5bf of _0x44ba6c){const _0x57c278=this[_0x431f('0xa7')](_0x52f5bf),_0x197b19=_0x52f5bf['item'][_0x431f('0x71')](_0x57c278);_0x515ee3['delete'](_0x197b19),_0x197b19>=this[_0x431f('0x6')]&&_0xf5d2a0['set'](_0x197b19,_0xb53861['get'](_0x197b19));}}for(const _0x29d9d2 of _0x316e0a){const _0x5cd657=_0x4ca124[_0x431f('0xab')][_0x29d9d2],_0x3160a3=this[_0x431f('0xf2')](_0x4ca124[_0x431f('0x1b')][_0x29d9d2]);let _0x1df3d5=0x0;for(const _0x1f0132 of _0x5cd657){const _0x5c556a=this[_0x431f('0xa7')](_0x1f0132),_0x11d836=_0x1f0132['item'][_0x431f('0x71')](_0x5c556a);if(!_0xf5d2a0[_0x431f('0x9')](_0x11d836)&&!_0x49197e[_0x431f('0x9')](_0x11d836)){if(_0x515ee3[_0x431f('0x9')](_0x11d836))_0x1df3d5++;else{if(_0x11d836!=_0x3160a3[_0x1df3d5]){const _0x4da5b7=_0xb53861['get'](_0x11d836)||_0xb53861['get'](_0x3160a3[_0x1df3d5]);for(;_0x11d836!=_0x3160a3[_0x1df3d5];)_0x515ee3[_0x431f('0x9')](_0x3160a3[_0x1df3d5])||(_0x49197e[_0x431f('0x5f')](_0x3160a3[_0x1df3d5],_0x4da5b7),_0xb53861[_0x431f('0x5f')](_0x3160a3[_0x1df3d5],_0x4da5b7)),_0x1df3d5++;}_0x1df3d5++;}}}}for(const _0x3344cf of _0x316e0a){const _0x33cecb=_0x4ca124['insertions'][_0x3344cf];for(const _0x2a8b0c of _0x33cecb){const _0x4fc4f0=this[_0x431f('0xa7')](_0x2a8b0c),_0x452e14=_0x2a8b0c[_0x431f('0xc4')][_0x431f('0x71')](_0x4fc4f0);if(_0x49197e[_0x431f('0x9')](_0x452e14)){const _0x4e77a3=_0x49197e['get'](_0x452e14);_0x515ee3['has'](_0x452e14)||_0x515ee3[_0x431f('0x5f')](_0x452e14,{..._0x4e77a3}),_0xf5d2a0[_0x431f('0x5f')](_0x452e14,{..._0x4e77a3});}}}for(const _0x48fd58 of _0x515ee3[_0x431f('0x33')]())_0x48fd58>=this[_0x431f('0x6')]&&_0x515ee3[_0x431f('0x45')](_0x48fd58);const _0x1d188e=new Map();for(const _0x34eaf4 of _0x316e0a){let _0x3565ce=_0x4ca124['insertions'][_0x34eaf4];for(const _0x34df1f of _0x3565ce)if(_0x34df1f[_0x431f('0xc4')]['is'](_0x431f('0xa9'),_0x431f('0x103'))){const _0x3f9d3e=this['_getVidAttributeName'](_0x34df1f),_0x152b6f=_0x34df1f[_0x431f('0xc4')][_0x431f('0x71')](_0x3f9d3e);if(_0xf5d2a0['has'](_0x152b6f)){const _0x562210=_0x34df1f['item'][_0x431f('0xb2')][_0x431f('0xb2')][_0x431f('0x71')]('vid_start'),_0x2b3d20=_0x1d188e[_0x431f('0x2d')](_0x562210)||new Set();_0x2b3d20['add'](_0xf5d2a0[_0x431f('0x2d')](_0x152b6f)['userId']),_0x1d188e[_0x431f('0x5f')](_0x562210,_0x2b3d20);}}_0x3565ce=_0x4ca124[_0x431f('0x1b')][_0x34eaf4];for(const _0x5567e9 of _0x3565ce)if(_0x5567e9[_0x431f('0xc4')]['is'](_0x431f('0xa9'),_0x431f('0x103'))){const _0x284c5c=this[_0x431f('0xa7')](_0x5567e9),_0x298511=_0x5567e9[_0x431f('0xc4')][_0x431f('0x71')](_0x284c5c);if(_0x515ee3[_0x431f('0x9')](_0x298511)){const _0x33d268=_0x5567e9['item'][_0x431f('0xb2')][_0x431f('0xb2')][_0x431f('0x71')](_0x431f('0x16')),_0x529537=_0x1d188e[_0x431f('0x2d')](_0x33d268)||new Set();_0x529537['add'](_0x515ee3[_0x431f('0x2d')](_0x298511)['userId']),_0x1d188e[_0x431f('0x5f')](_0x33d268,_0x529537);}}for(const _0x59d1ba of _0x1d188e['keys']())(_0xf5d2a0[_0x431f('0x9')](_0x59d1ba)||_0x515ee3['has'](_0x59d1ba))&&_0x1d188e['delete'](_0x59d1ba);}for(const _0x668dcd of _0x316e0a){const _0x49f8ff=_0x4ca124[_0x431f('0xab')][_0x668dcd];let _0x5f0de8=null,_0x275d09=null;for(const _0x522e19 of _0x49f8ff){const _0x666a24=this[_0x431f('0xa7')](_0x522e19),_0x3c008c=_0x522e19['item']['getAttribute'](_0x666a24),_0x419c12=_0x1d188e[_0x431f('0x2d')](_0x3c008c);_0x419c12&&_0x431f('0x7d')==_0x522e19[_0x431f('0xa0')]&&(_0x5f0de8=Array[_0x431f('0xdd')](_0x419c12)[0x0],_0x275d09=_0x522e19[_0x431f('0xc4')][_0x431f('0x71')](_0x431f('0x34'))),_0x5f0de8&&(_0x515ee3[_0x431f('0x5f')](_0x3c008c,{'userId':_0x5f0de8}),_0xf5d2a0[_0x431f('0x5f')](_0x3c008c,{'userId':_0x5f0de8})),_0x3c008c==_0x275d09&&(_0x5f0de8=null,_0x275d09=null);}}const _0x44aaf2={},_0xc7041c=new Set();for(const _0x147a25 of _0x316e0a){const _0x3fe381=_0x446551[_0x431f('0x1b')][_0x147a25],_0x2f87cc=_0x446551[_0x431f('0xab')][_0x147a25];for(const {userId:_0x1147b6}of this[_0x431f('0xca')][_0x431f('0xcb')]())null!==_0x1147b6&&_0xc7041c[_0x431f('0x9a')](_0x1147b6);for(const {userId:_0xbaa47b}of this['_touchedRoots'][_0x431f('0xcb')]())null!==_0xbaa47b&&_0xc7041c[_0x431f('0x9a')](_0xbaa47b);this['_markChanges'](_0x2f87cc,_0x4ca124[_0x431f('0xab')][_0x147a25],_0xf5d2a0,_0x431f('0x66'),_0xc7041c),this[_0x431f('0x5e')](_0x3fe381,_0x4ca124[_0x431f('0x1b')][_0x147a25],_0x515ee3,_0x431f('0x5'),_0xc7041c),_0x44aaf2[_0x147a25]={'insertions':this[_0x431f('0x7b')](_0x2f87cc),'deletions':this[_0x431f('0x7b')](_0x3fe381),'attachChange':this[_0x431f('0x107')][_0x431f('0x2d')](_0x147a25)||null,'attributesBefore':_0x330c50(this[_0x431f('0xa5')][_0x431f('0x2d')](_0x147a25))||{},'attributesAfter':_0x330c50(this[_0x431f('0xb0')][_0x431f('0x2d')](_0x147a25))};}return{'diffData':_0x44aaf2,'authorsIds':Array['from'](_0xc7041c)};}[_0x431f('0x77')](_0x3f75e6){for(const [,_0x25ebb2]of _0x3f75e6[_0x431f('0xf8')]){const _0x3f4981=_0x25ebb2['start'][_0x431f('0xc5')]()[_0x431f('0x3d')](_0x297a49=>'tableCell'==_0x297a49[_0x431f('0x6b')]);for(const _0x1ab334 of _0x3f4981)0x1==_0x1ab334[_0x431f('0x15')]&&_0x1ab334[_0x431f('0x41')](0x0)['is'](_0x431f('0xa9'),_0x431f('0xe0'))&&_0x1ab334[_0x431f('0x41')](0x0)[_0x431f('0x105')]('keepParagraph',!0x0);}}[_0x431f('0x7b')](_0x5333c6){this['_processRootBeforeSave'](_0x5333c6);const _0x11324a=this[_0x431f('0x4a')][_0x431f('0x106')][_0x431f('0xde')](_0x5333c6,{}),_0xcb892e=Array[_0x431f('0xdd')](_0x11324a[_0x431f('0xd')]())[_0x431f('0xaf')](_0x348b92=>this['_getViewJson'](_0x348b92));return JSON[_0x431f('0xae')](_0xcb892e);}[_0x431f('0x39')](_0x50b7e3){if(_0x50b7e3['is'](_0x431f('0xd5')))return _0x50b7e3[_0x431f('0x106')];{const _0x32f9b4=_0x50b7e3;return{'type':Object[_0x431f('0x33')](B)[_0x431f('0xd7')](_0xd2729b=>_0x50b7e3 instanceof B[_0xd2729b]),'name':_0x32f9b4[_0x431f('0x6b')],'attributes':Array[_0x431f('0xdd')](_0x32f9b4[_0x431f('0xa1')]()),'children':Array[_0x431f('0xdd')](_0x32f9b4[_0x431f('0xd')]())[_0x431f('0xaf')](_0x4e2f4f=>this[_0x431f('0x39')](_0x4e2f4f))};}}[_0x431f('0x5e')](_0x46e0d6,_0x132762,_0x57394e,_0xb86111,_0x45c345){let _0x3c5d0b=null,_0x4f7be2=null,_0x59766a=0x0;const _0x2e6cd6=this['editor']['model'];for(let _0x450b26=0x0;_0x450b26<_0x132762[_0x431f('0x90')];_0x450b26++){const _0x8451c9=this[_0x431f('0xa7')](_0x132762[_0x450b26]),_0x8c0995=_0x132762[_0x450b26][_0x431f('0xc4')][_0x431f('0x71')](_0x8451c9),_0x160474=_0x57394e[_0x431f('0x2d')](_0x8c0995),_0x6e8e8f=_0x450b26==_0x132762['length']-0x1;(!_0x3c5d0b&&_0x160474&&(_0x3c5d0b=_0x160474,_0x4f7be2=_0x132762[_0x450b26]),_0x3c5d0b&&(!_0x160474||_0x160474[_0x431f('0xe4')]!=_0x3c5d0b[_0x431f('0xe4')]))&&(_0x2a5e7d(_0x160474,L(_0x4f7be2,_0x46e0d6,_0x2e6cd6),L(_0x132762[_0x450b26],_0x46e0d6,_0x2e6cd6)),_0x3c5d0b=_0x160474||null,_0x4f7be2=_0x160474?_0x132762[_0x450b26]:null),_0x3c5d0b&&_0x6e8e8f&&_0x2a5e7d(_0x160474,L(_0x4f7be2,_0x46e0d6,_0x2e6cd6),W(_0x132762[_0x450b26],_0x46e0d6,_0x2e6cd6));}function _0x2a5e7d(_0x2d7047,_0x3abc12,_0x2c418a){const _0x548890=_0x3c5d0b[_0x431f('0xe4')],_0x522f48='revision:'+_0xb86111+':'+_0x548890+':'+_0x59766a++,_0xd8f105=_0x2e6cd6[_0x431f('0x91')](_0x3abc12,_0x2c418a);_0x46e0d6[_0x431f('0xf8')]['set'](_0x522f48,_0xd8f105),null!==_0x548890&&_0x45c345[_0x431f('0x9a')](_0x548890);}}['_getVidAttributeName'](_0x15d324){switch(_0x15d324['type']){case _0x431f('0x7d'):return _0x431f('0x16');case _0x431f('0x8b'):return _0x431f('0x34');default:return'vid';}}['_fixOperation'](_0x1d670c,_0x1d8bbe){_0x1d670c[_0x431f('0x68')]=null;for(const _0x2f7aae in _0x1d670c){const _0x2a74a7=_0x1d670c[_0x2f7aae];if(_0x2a74a7 instanceof _0x1514a2){const _0x1df449=_0x1d8bbe[_0x431f('0x2d')](_0x2a74a7[_0x431f('0x6a')][_0x431f('0xa')]);_0x1d670c[_0x2f7aae]=this['_fixPosition'](_0x2a74a7,_0x1df449);}if(_0x2a74a7 instanceof _0x1415b9){const _0x2ec5d4=_0x1d8bbe[_0x431f('0x2d')](_0x2a74a7[_0x431f('0x6a')][_0x431f('0xa')]);_0x1d670c[_0x2f7aae]=this[_0x431f('0xe6')](_0x2a74a7,_0x2ec5d4);}_0x431f('0x6a')===_0x2f7aae&&(_0x1d670c[_0x431f('0x6a')]=_0x1d8bbe[_0x431f('0x2d')](_0x1d670c[_0x431f('0x6a')][_0x431f('0xa')]));}}['_fixRange'](_0x552f88,_0x3d5cbb){return this[_0x431f('0x4a')]['model'][_0x431f('0x91')](this[_0x431f('0x51')](_0x552f88[_0x431f('0x104')],_0x3d5cbb),this[_0x431f('0x51')](_0x552f88[_0x431f('0x96')],_0x3d5cbb));}[_0x431f('0x51')](_0xb17852,_0x2d70ad){return this[_0x431f('0x4a')][_0x431f('0xaa')][_0x431f('0xfb')](_0x2d70ad,_0xb17852[_0x431f('0x36')],_0xb17852['stickiness']);}[_0x431f('0x86')](_0x2eb1c4){const _0x1f2974=this[_0x431f('0x87')][_0x431f('0x2d')](_0x2eb1c4[_0x431f('0x6d')]['root'][_0x431f('0xa')]),_0xbf6a9d=this[_0x431f('0x51')](_0x2eb1c4[_0x431f('0x6d')],_0x1f2974),_0x499922=null===_0x2eb1c4[_0x431f('0x11')]?null:_0x2eb1c4[_0x431f('0x11')]||this[_0x431f('0x4a')][_0x431f('0x22')][_0x431f('0x2d')](_0x431f('0x24'))['me']['id'],_0x5861ab=_0xbf6a9d[_0x431f('0xb2')],_0x1accbb=this['_revisionId'],_0x428025=[];for(const _0x171722 of _0x2eb1c4[_0x431f('0xb3')])if(_0x171722['is'](_0x431f('0xa9')))_0x428025[_0x431f('0x102')](this['_makeIdsRoot'](_0x171722));else for(let _0x1b151f=0x0;_0x1b151f<_0x171722[_0x431f('0x25')];_0x1b151f++)_0x428025[_0x431f('0x102')](new _0x25a114(_0x431f('0xd5'),{'vid':this[_0x431f('0x3a')]++}));const _0x5069f1=this[_0x431f('0x3a')];for(let _0x48dd65=_0x1accbb;_0x48dd65<_0x5069f1;_0x48dd65++)this[_0x431f('0x8c')][_0x431f('0x5f')](_0x48dd65,{'userId':_0x499922});_0x5861ab['_insertChild'](_0xbf6a9d['offset'],_0x428025);}[_0x431f('0xf4')](_0x5538b3){(_0x5538b3=this[_0x431f('0x21')](_0x5538b3,this[_0x431f('0x87')]))[_0x431f('0x27')]();const _0x4e16cd=null===_0x5538b3['_authorId']?null:_0x5538b3[_0x431f('0x11')]||this[_0x431f('0x4a')]['plugins'][_0x431f('0x2d')](_0x431f('0x24'))['me']['id'],_0x4eda6e=_0x5538b3['getMovedRangeStart'](),_0x5d4091=_0x4eda6e[_0x431f('0xb2')],_0x55aafb=_0x4eda6e[_0x431f('0x108')];!function _0x4bdda5(_0x16cbf0,_0x2d1604,_0x4477e4,_0x1aaec7){for(let _0x41628f=_0x4477e4;_0x41628f<_0x1aaec7;_0x41628f++){const _0xd37257=_0x2d1604[_0x431f('0x41')](_0x41628f);_0xd37257['is'](_0x431f('0xa9'),'$text')?_0x16cbf0[_0x431f('0x5f')](_0xd37257[_0x431f('0x71')](_0x431f('0xf6')),{'userId':_0x4e16cd}):(_0x16cbf0[_0x431f('0x5f')](_0xd37257[_0x431f('0x71')]('vid_start'),{'userId':_0x4e16cd}),_0x4bdda5(_0x16cbf0,_0xd37257,0x0,_0xd37257['childCount']),_0x16cbf0['set'](_0xd37257[_0x431f('0x71')]('vid_end'),{'userId':_0x4e16cd}));}}(this[_0x431f('0x8c')],_0x5d4091,_0x55aafb,_0x55aafb+_0x5538b3[_0x431f('0x4e')]);}['_handleMergeOperation'](_0x4d5649){const _0x2129d1=null===(_0x4d5649=this[_0x431f('0x21')](_0x4d5649,this['_idsRoots']))['_authorId']?null:_0x4d5649['_authorId']||this[_0x431f('0x4a')][_0x431f('0x22')][_0x431f('0x2d')](_0x431f('0x24'))['me']['id'],_0x5e1748=_0x4d5649['targetPosition'][_0x431f('0xb2')],_0x98815e=_0x4d5649[_0x431f('0x64')][_0x431f('0xb2')],_0x24cf70=_0x5e1748[_0x431f('0x71')](_0x431f('0x34')),_0x432ce7=_0x98815e[_0x431f('0x71')](_0x431f('0x16'));_0x5e1748['_setAttribute'](_0x431f('0x34'),_0x98815e['getAttribute'](_0x431f('0x34'))),_0x98815e[_0x431f('0x105')](_0x431f('0x34'),_0x24cf70),this[_0x431f('0x8c')][_0x431f('0x5f')](_0x432ce7,{'userId':_0x2129d1}),this[_0x431f('0x8c')][_0x431f('0x5f')](_0x24cf70,{'userId':_0x2129d1}),_0x4d5649['_execute']();}[_0x431f('0x35')](_0x27dc6e){const _0x35b8db=null===(_0x27dc6e=this['_cloneOperation'](_0x27dc6e,this[_0x431f('0x87')]))[_0x431f('0x11')]?null:_0x27dc6e[_0x431f('0x11')]||this[_0x431f('0x4a')][_0x431f('0x22')][_0x431f('0x2d')](_0x431f('0x24'))['me']['id'],_0x299826=_0x27dc6e[_0x431f('0x54')],_0x57ce8b=_0x27dc6e[_0x431f('0xf9')][_0x431f('0xb2')];_0x27dc6e[_0x431f('0x27')]();const _0x4b3e12=_0x57ce8b['getAttribute'](_0x431f('0x34')),_0x1cd5a1=_0x27dc6e['insertionPosition'][_0x431f('0xa2')];if(_0x299826){const _0x221743=_0x1cd5a1[_0x431f('0x71')]('vid_end'),_0x320a68=_0x57ce8b[_0x431f('0x71')](_0x431f('0x34'));_0x57ce8b[_0x431f('0x105')](_0x431f('0x34'),_0x221743),_0x1cd5a1[_0x431f('0x105')]('vid_end',_0x320a68),this[_0x431f('0x8c')]['set'](_0x57ce8b[_0x431f('0x71')](_0x431f('0x34')),{'userId':_0x35b8db}),this[_0x431f('0x8c')][_0x431f('0x5f')](_0x1cd5a1[_0x431f('0x71')](_0x431f('0x16')),{'userId':_0x35b8db});}else{const _0x536b81=this[_0x431f('0x3a')]++,_0xcc7f5a=this['_revisionId']++;_0x57ce8b[_0x431f('0x105')]('vid_end',_0x536b81),_0x1cd5a1[_0x431f('0x105')]('vid_start',_0xcc7f5a),_0x1cd5a1[_0x431f('0x105')](_0x431f('0x34'),_0x4b3e12),this['_touched'][_0x431f('0x5f')](_0x536b81,{'userId':_0x35b8db}),this[_0x431f('0x8c')][_0x431f('0x5f')](_0xcc7f5a,{'userId':_0x35b8db});}}[_0x431f('0xc2')](_0x9863d8){if(!_0x9863d8[_0x431f('0x31')])return;const _0x42e2fa=(_0x9863d8=this[_0x431f('0x21')](_0x9863d8,this['_diffRoots']))[_0x431f('0xfd')]?_0x9863d8['oldRange'][_0x431f('0x6a')]:null,_0x4ddde1=_0x9863d8['newRange']?_0x9863d8['newRange']['root']:null;_0x42e2fa&&this['_markers'][_0x431f('0x45')](_0x9863d8[_0x431f('0x6b')]),_0x4ddde1&&this[_0x431f('0x3e')][_0x431f('0x5f')](_0x9863d8[_0x431f('0x6b')],_0x9863d8[_0x431f('0x4d')][_0x431f('0x23')]());const _0x3d6727=null===_0x9863d8[_0x431f('0x11')]?null:_0x9863d8[_0x431f('0x11')]||this[_0x431f('0x4a')][_0x431f('0x22')]['get'](_0x431f('0x24'))['me']['id'],_0x2f8089=_0x9863d8[_0x431f('0x6b')];if(!this[_0x431f('0xca')][_0x431f('0x9')](_0x2f8089))return void this[_0x431f('0xca')][_0x431f('0x5f')](_0x2f8089,{'range':_0x9863d8[_0x431f('0xfd')],'userId':_0x3d6727});const _0xb38375=this[_0x431f('0xca')][_0x431f('0x2d')](_0x2f8089),_0x43114c=_0xb38375[_0x431f('0xd4')],_0x4f059=_0x9863d8['newRange'];null==_0x43114c&&null==_0x4f059||_0x43114c&&_0x4f059&&_0x43114c[_0x431f('0xe')](_0x4f059)?this['_touchedMarkers'][_0x431f('0x45')](_0x9863d8[_0x431f('0x6b')]):_0xb38375[_0x431f('0xe4')]=_0x3d6727;}[_0x431f('0xf5')](_0x55cbff,_0x4a94c2){this['_diffRoots'][_0x431f('0x9')](_0x55cbff[_0x431f('0xa')])?this[_0x431f('0x13')][_0x431f('0x2d')](_0x55cbff['rootName'])[_0x431f('0xac')]=_0x55cbff[_0x431f('0xf1')]:(this[_0x431f('0x13')][_0x431f('0x5f')](_0x55cbff[_0x431f('0xa')],G(_0x55cbff[_0x431f('0xa')],!0x0)),this['_diffRootsAttributes'][_0x431f('0x5f')](_0x55cbff[_0x431f('0xa')],{}),_0x4a94c2&&this['_idsRoots'][_0x431f('0x5f')](_0x55cbff[_0x431f('0xa')],G(_0x55cbff[_0x431f('0xa')],!0x0)));const _0x2cce31=null===_0x55cbff[_0x431f('0x11')]?null:_0x55cbff[_0x431f('0x11')]||this['editor']['plugins'][_0x431f('0x2d')](_0x431f('0x24'))['me']['id'],_0x4414dd=this[_0x431f('0x107')][_0x431f('0x2d')](_0x55cbff['rootName']);_0x4414dd&&_0x4414dd[_0x431f('0xe4')]===_0x2cce31?this[_0x431f('0x107')][_0x431f('0x45')](_0x55cbff[_0x431f('0xa')]):this[_0x431f('0x107')]['set'](_0x55cbff[_0x431f('0xa')],{'userId':_0x2cce31,'isAttached':_0x55cbff[_0x431f('0xf1')]});}['_handleRootAttributeOperation'](_0x248d9b){const _0x37d917=this['_diffRootsAttributes'][_0x431f('0x2d')](_0x248d9b['root']['rootName']);null===_0x248d9b['newValue']?delete _0x37d917[_0x248d9b['key']]:_0x37d917[_0x248d9b[_0x431f('0xd8')]]=_0x248d9b[_0x431f('0xd0')];}}function q(_0x486d42){const _0x200ec0=G(_0x486d42[_0x431f('0xa')],_0x486d42[_0x431f('0xdc')]());for(const _0x45930d of _0x486d42[_0x431f('0xd')]()){const _0x3db13c=_0x45930d[_0x431f('0x7e')](!0x0);_0x200ec0[_0x431f('0xb5')](_0x3db13c);}return _0x200ec0;}function G(_0x32d71c,_0x148f70=!0x0){const _0x3465b1=new _0x273bfd();return _0x3465b1[_0x431f('0xa')]=_0x32d71c,_0x3465b1[_0x431f('0xac')]=_0x148f70,_0x3465b1[_0x431f('0xdc')]=()=>_0x3465b1['_isAttached'],_0x3465b1;}function L(_0xbe3614,_0x2c8ed8,_0x8b25f8){const _0x1f4f25='elementEnd'==_0xbe3614[_0x431f('0xa0')]?_0x8b25f8[_0x431f('0x84')](_0xbe3614[_0x431f('0xc4')],_0x431f('0x96')):_0x8b25f8[_0x431f('0x61')](_0xbe3614[_0x431f('0xc4')]);return _0x8b25f8['createPositionFromPath'](_0x2c8ed8,_0x1f4f25[_0x431f('0x36')],_0x1f4f25[_0x431f('0xd1')]);}function W(_0x2ca15b,_0x2eb0a2,_0x455364){const _0x1dbdb5=_0x431f('0x7d')==_0x2ca15b[_0x431f('0xa0')]?_0x455364[_0x431f('0x84')](_0x2ca15b[_0x431f('0xc4')],0x0):_0x455364[_0x431f('0xc6')](_0x2ca15b['item']);return _0x455364[_0x431f('0xfb')](_0x2eb0a2,_0x1dbdb5[_0x431f('0x36')],_0x1dbdb5[_0x431f('0xd1')]);}