@ckeditor/ckeditor5-revision-history 38.0.0 → 38.1.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 (39) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +13 -11
  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/index.d.ts +1 -0
  8. package/src/revision.js +1 -1
  9. package/src/revisiondiff.js +1 -1
  10. package/src/revisionhistory.d.ts +5 -3
  11. package/src/revisionhistory.js +1 -1
  12. package/src/revisionsrepository.d.ts +8 -3
  13. package/src/revisionsrepository.js +1 -1
  14. package/src/revisiontracker.d.ts +8 -3
  15. package/src/revisiontracker.js +1 -1
  16. package/src/revisionviewer.js +1 -1
  17. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  18. package/src/ui/revision/revisionauthorview.js +1 -1
  19. package/src/ui/revision/revisionnameview.js +1 -1
  20. package/src/ui/revision/revisionview.js +1 -1
  21. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  22. package/src/ui/revision/subrevisionview.js +1 -1
  23. package/src/ui/revision/utils.js +1 -1
  24. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  25. package/src/ui/revisionhistory/revisionhistoryui.d.ts +4 -3
  26. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  27. package/src/ui/revisionssidebar/revisionssidebar.d.ts +4 -3
  28. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  29. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  30. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  31. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  32. package/src/ui/revisionssidebar/utils.js +1 -1
  33. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  34. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  35. package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +1 -1
  36. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  37. package/src/ui/revisionviewer/revisionviewerui.d.ts +5 -3
  38. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  39. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ad7=['getChild','creator','_diffRootsAttributes','requires','_makeRevision','position','_loadRevisionData','paragraph','setRevisionData','marker','newRange','resolve','$graveyard','_baseRootsAttributes','_lastTo','RevisionsRepository','has','clear','string','_removeRevisionMarkers','_pendingAction','_removeMetaData','getOperation','editing','conversion','isReady','_removePendingAction','set','repository','name','_prepareViewToSave','loadState','oldRange','_handleMarkerOperation','plugins','_appendChild','changeRootAttribute','element','define','vid_start','remove','revisionHistory.resumeUnsavedRevision','initial','getOperations','range','_diffRoots','_getBaseVids','view','children','for','root','merge','_authorId','addRevision','some','editor','_getFromVersion','getAttribute','initialData','baseVersion','_baseRoots','fromEntries','tableCell','documentFragment','userId','attributesAfter','split','size','deletion','processor','authors','from','collaboration.channelId','revision:','_handleRootOperation','_createInitialRevision','_continueCurrentRevision','createPositionAfter','keepParagraph','revision-start','offsetSize','push','targetPosition','_fixRange','bind','shift','elementEnd','creatorId','delete','isEnabled','nodes','createPositionAt','getRootNames','_generateTape','_bufferUpdate','values','PendingActions','forEach','sourcePosition','find','_calculateMetaData','clone','filter','getRevisionDocumentData','_lastFrom','attributesBefore','getCurrentRevisionId','_savedMetaData','data','init','getUser','vid','attachChange','insert','dataToMarker','version','keys','attributes','_source','useFillerType','getRevision','_reset','locale','then','_makeModelFromViewString','removeRootAttribute','roots','_update','isEqual','deletions','_execute','Empty\x20document','childCount','sendBufferedUpdates','update','addRevisionData','_saveMetaData','key','_replaceEditorDataWithRevisionData','diffData','getIndex','insertions','path','_setAttribute','createPositionFromPath','_markChanges','getData','rootName','_copyMarkers','getRange','_touchedMarkers','nodeAfter','authorsIds','createRange','currentRevision','trim','PENDING_ACTION_REVISION_HISTORY','buildRevisionData','_revisionId','_clone','getWalker','reInit','getMovedRangeStart','getNodeByPath','revision','getTime','isAdd','_touchedRoots','createdAt','finally','get','_addPendingAction','stickiness','_setConversion','_startingRevisionId','getAncestors','elementStart','_loadState','includes','detachRoot','RealTimeCollaborationClient','hasContent','getChildren','reverse','createRangeIn','default','_getViewJson','afterInit','_bufferedUpdates','_fixPosition','_touched','affectsData','_idsRoots','dataDowncast','_handleMoveOperation','map','max','end','_initialRevisionId','config','slice','model','_cloneOperation','_baseIdsRoots','parent','editor-initial-data-replaced-with-revision-data','RevisionTracker','vid_end','NEGATIVE_INFINITY','_handleOperation','_getState','updateRevisions','createRevision','offset','startsWith','_startingVersion','_processRootBeforeSave','rootsAttributes','getAttributes','addRoot','document','reinsert','text','toVersion','_handleSplitOperation','Users','_transformMarkers','graveyardPosition','$text','toData','length','data-revision-','_isInit','previousPosition','getRevisionRootsAttributes','Initial\x20revision','markerToData','_getVidAttributeName','_fixOperation','_isAttached','getTransformedByOperation','adapter','_findInsertionIndex','add','_makeIdsRoot','_markers','fromVersion','setSource','type','_handleInsertOperation','addRootAttribute','getRevisions','markers','_loadedStateData','_isPendingUpdate','history','parse','_getPreviousFrom','revision-end','isAttached','item','_revisionDataBuilder','_initialRoots','_insertChild','_operations','splitPosition','_handleMergeOperation','stringify','newValue','start','_applyOperations','_createCurrentRevision','source'];(function(_0x5cdddd,_0x4ad75b){const _0xa74930=function(_0x5df8f2){while(--_0x5df8f2){_0x5cdddd['push'](_0x5cdddd['shift']());}};_0xa74930(++_0x4ad75b);}(_0x4ad7,0x7c));const _0xa749=function(_0x5cdddd,_0x4ad75b){_0x5cdddd=_0x5cdddd-0x0;let _0xa74930=_0x4ad7[_0x5cdddd];return _0xa74930;};import{Users as _0x4f8fad}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x935ad3,PendingActions as _0x23de58}from'ckeditor5/src/core';import{logWarning as _0x3bdae5,uid as _0x389857}from'ckeditor5/src/utils';import{Position as _0x4a0de6,Range as _0x130d70,Element as _0xbc8c15,DocumentFragment as _0x33b272,ViewText as _0x5794fc,ViewElement as _0x466aac,ViewContainerElement as _0x270f48,ViewAttributeElement as _0xec83fc,ViewEmptyElement as _0x301448,ViewRawElement as _0x393ed0,ViewUIElement as _0x3193ca,ViewDocumentFragment as _0x58adee}from'ckeditor5/src/engine';import _0x508395 from'./revisionsrepository';import{getTranslation as _0x22c3f1}from'./utils/common-translations';import{cloneDeep as _0x40da37,isEqual as _0x392821}from'lodash-es';const j={'c':_0x270f48,'a':_0xec83fc,'e':_0x301448,'r':_0x393ed0,'u':_0x3193ca};export default class l extends _0x935ad3{static get['pluginName'](){return _0xa749('0x52');}static get[_0xa749('0x98')](){return[_0x4f8fad,_0x508395,_0x23de58];}constructor(_0x40c880){super(_0x40c880),this['adapter']=null,this[_0xa749('0x1e')]=null,this[_0xa749('0x89')]=new T(this[_0xa749('0xcc')]),this['_initialRevisionId']=this[_0xa749('0xcc')][_0xa749('0x4b')][_0xa749('0x2e')](_0xa749('0xdd'))||_0xa749('0xbf'),this[_0xa749('0x40')]=new Map(),this[_0xa749('0x81')]=null;const _0x31752b=_0x389857();this['_source']={'history':this[_0xa749('0xcc')][_0xa749('0x4d')][_0xa749('0x60')]['history'],'getLatestVersion':()=>Promise[_0xa749('0xa0')](this[_0xa749('0xcc')][_0xa749('0x4d')][_0xa749('0x60')][_0xa749('0x108')]),'getCurrentRevisionId':()=>_0x31752b},this[_0xa749('0xb0')](_0xa749('0xae'),!0x1),this[_0xa749('0xb0')](_0xa749('0xee'),!0x0),this[_0xa749('0xb0')](_0xa749('0x82'),!0x1),this['editor'][_0xa749('0x4b')][_0xa749('0xbb')]('revisionHistory.resumeUnsavedRevision',!0x0),this[_0xa749('0xcc')][_0xa749('0xad')][_0xa749('0xc6')]('upcast')[_0xa749('0x107')]({'view':_0xa749('0x28')});}['init'](){this[_0xa749('0xb1')]=this[_0xa749('0xcc')][_0xa749('0xb7')][_0xa749('0x2e')](_0xa749('0xa4')),this[_0xa749('0x31')](),this[_0xa749('0xcc')][_0xa749('0x101')]['on']('ready',()=>{const _0x40a81d=this[_0xa749('0xb1')]['getRevision'](0x0),_0x5e2698=_0x40a81d&&null===_0x40a81d[_0xa749('0x96')]?_0x40a81d:null;if(this['_continueCurrentRevision']=!!_0x5e2698&&this[_0xa749('0xcc')][_0xa749('0x4b')][_0xa749('0x2e')](_0xa749('0xbe')),this[_0xa749('0xcc')][_0xa749('0xb7')][_0xa749('0xa5')](_0xa749('0x38'))){const _0x48adfc=this[_0xa749('0x10b')][_0xa749('0xff')](),_0x346949=this['repository']['getRevision'](_0x48adfc);if(_0x346949)this[_0xa749('0x5b')]=_0x346949['fromVersion'],this[_0xa749('0xe1')]=!0x1;else{const _0x5a0309=this[_0xa749('0x10b')]['history'][_0xa749('0x8c')][_0xa749('0xf8')](_0x31e2a6=>!_0x31e2a6[_0xa749('0x6c')]),_0x429531=_0x5a0309?_0x5a0309[_0xa749('0xd0')]:this[_0xa749('0x10b')]['history'][_0xa749('0x108')];_0x40a81d?(_0x40a81d[_0xa749('0x63')]<_0x429531&&_0x40a81d['_update']({'toVersion':_0x429531}),this[_0xa749('0xe1')]?(this['_source'][_0xa749('0xff')]=()=>_0x5e2698['id'],this['_startingVersion']=_0x5e2698[_0xa749('0x7a')]):(this['_startingVersion']=_0x40a81d[_0xa749('0x63')],this[_0xa749('0xe1')]=!0x1)):(this[_0xa749('0x5b')]=_0x429531,this[_0xa749('0xe1')]=!0x1);}}else _0x5e2698&&(this[_0xa749('0xcc')][_0xa749('0x4d')][_0xa749('0x60')][_0xa749('0x83')][_0xa749('0x108')]=Math[_0xa749('0x48')](_0x5e2698[_0xa749('0x63')],this['editor']['model'][_0xa749('0x60')][_0xa749('0x83')]['version']),_0x5e2698['fromVersion']===_0x5e2698[_0xa749('0x63')]?(0x0!==_0x5e2698[_0xa749('0x7a')]&&(this[_0xa749('0x10b')][_0xa749('0xff')]=()=>_0x5e2698['id']),this[_0xa749('0xe1')]=!0x1):this[_0xa749('0xe1')]&&(this[_0xa749('0x10b')]['getCurrentRevisionId']=()=>_0x5e2698['id'],this[_0xa749('0x5b')]=_0x5e2698[_0xa749('0x7a')])),this[_0xa749('0xe1')]||(this[_0xa749('0x5b')]=this[_0xa749('0xcc')][_0xa749('0x4d')][_0xa749('0x60')]['version']);this[_0xa749('0x89')][_0xa749('0x102')](this[_0xa749('0x10b')][_0xa749('0x83')]),this[_0xa749('0xe0')](this[_0xa749('0x5b')]),this[_0xa749('0x93')](this['_startingVersion']),this[_0xa749('0x75')]&&this[_0xa749('0x9')]();}),this[_0xa749('0xe9')](_0xa749('0xae'))['to'](this,_0xa749('0x82'),_0x9559ef=>!_0x9559ef);}async[_0xa749('0x3f')](){if(this[_0xa749('0xb1')][_0xa749('0x6a')]>0x0){const _0x275ed1=this['repository']['getRevision'](0x0),_0x153451=await this[_0xa749('0xfc')](_0x275ed1),_0x21726d=await this[_0xa749('0x6e')](_0x275ed1);this[_0xa749('0xe')](_0x153451,_0x21726d);}}[_0xa749('0x7b')](_0x500aeb){this[_0xa749('0x10b')]=_0x500aeb;}async[_0xa749('0xa')](){const _0x53b328=await this['_source']['getLatestVersion']();if(_0x53b328>this[_0xa749('0x1e')][_0xa749('0x63')]){await this[_0xa749('0x35')]();const _0x397cd0=this[_0xa749('0x21')]({'revision':this['currentRevision'],'to':_0x53b328});_0x397cd0[_0xa749('0xdb')]=_0x397cd0[_0xa749('0x1c')]['map'](_0x18071a=>this[_0xa749('0xcc')][_0xa749('0xb7')][_0xa749('0x2e')](_0xa749('0x65'))[_0xa749('0x103')](_0x18071a)),this[_0xa749('0x1e')][_0xa749('0x3')](_0x397cd0);}}async[_0xa749('0x35')](){this['_continueCurrentRevision']&&!this[_0xa749('0x81')]&&(await this['_loadRevisionData'](this[_0xa749('0x1e')]),this[_0xa749('0x89')][_0xa749('0xb4')](this['currentRevision']),this[_0xa749('0x81')]={'fromVersion':this['currentRevision'][_0xa749('0x7a')],'authors':this[_0xa749('0x1e')][_0xa749('0xdb')][_0xa749('0x4c')]()});}async['saveRevision'](_0x3daaf8={},_0x285af1=null){const _0x5ccc8c=[];await this[_0xa749('0x35')](),this[_0xa749('0xe1')]=!0x1,_0x285af1>this['currentRevision'][_0xa749('0x63')]&&(_0x285af1=null),null===_0x285af1&&(_0x285af1=await this[_0xa749('0x10b')]['getLatestVersion']());const _0x1b7058=this[_0xa749('0xcd')](_0x285af1),_0x3495a1=this[_0xa749('0x21')]({'from':_0x1b7058,'to':_0x285af1});if(this[_0xa749('0x1e')][_0xa749('0x63')]<_0x285af1){const _0x574881=this['buildRevisionData']({'revision':this[_0xa749('0x1e')],'from':_0x285af1,'to':_0x285af1});_0x574881[_0xa749('0xdb')]=[],_0x574881['authorsIds']=[],_0x574881['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x574881,!0x0),delete _0x574881[_0xa749('0xdb')],_0x5ccc8c['push'](_0x574881);}_0x3daaf8[_0xa749('0xec')]=this[_0xa749('0xcc')][_0xa749('0xb7')]['get'](_0xa749('0x65'))['me']['id'],_0x3daaf8[_0xa749('0xb2')]=_0x3daaf8[_0xa749('0xb2')]||null,_0x3daaf8['id']=_0x3daaf8['id']||_0x389857(),_0x3daaf8={..._0x3daaf8,..._0x3495a1};const _0x31e9c9=this[_0xa749('0xb')](_0x3daaf8);_0x5ccc8c['push'](_0x3daaf8);const _0x57292d=this[_0xa749('0xb1')][_0xa749('0x10')](_0x31e9c9);if(0x0!==_0x57292d){const _0x303dc7=this[_0xa749('0xb1')][_0xa749('0x10d')](_0x57292d-0x1);if(_0x303dc7[_0xa749('0x7a')]!==_0x285af1){const _0x1d8ed3=this['_revisionDataBuilder'][_0xa749('0x16')](_0x285af1,_0x303dc7[_0xa749('0x63')]),_0x521eae={'id':_0x303dc7['id'],'diffData':_0x1d8ed3[_0xa749('0xf')],'authorsIds':_0x1d8ed3[_0xa749('0x1c')],'authors':_0x1d8ed3[_0xa749('0x1c')][_0xa749('0x47')](_0x4397e3=>this[_0xa749('0xcc')][_0xa749('0xb7')]['get'](_0xa749('0x65'))[_0xa749('0x103')](_0x4397e3)),'fromVersion':_0x285af1};_0x303dc7===this[_0xa749('0x1e')]&&(_0x521eae[_0xa749('0x2c')]=new Date(_0x3daaf8[_0xa749('0x2c')][_0xa749('0x29')]()+0xa)),_0x303dc7['_update'](_0x521eae,!0x0),delete _0x521eae['authors'],_0x5ccc8c['push'](_0x521eae);}}if(this[_0xa749('0x75')]){for(const _0x59a354 of _0x5ccc8c)this[_0xa749('0xf3')](_0x59a354['id'],_0x59a354,!0x0);this[_0xa749('0x9')]();}return _0x31e9c9;}[_0xa749('0xb')](_0x14012a){const _0x4f795e=this[_0xa749('0xb1')][_0xa749('0x58')](_0x14012a);return this['adapter']&&_0x4f795e['on']('_update',(_0x1cbeac,_0x29f41a,_0x5de808)=>{_0x5de808||(this['_bufferUpdate'](_0x29f41a['id'],_0x29f41a,!0x0),this[_0xa749('0x9')]());}),this[_0xa749('0xb1')][_0xa749('0xca')](_0x4f795e,this['_findInsertionIndex'](_0x4f795e)),_0x4f795e;}async[_0xa749('0xfc')](_0x43d706){await this[_0xa749('0x9b')](_0x43d706);const _0x2093b1={};for(const _0x54f5a0 in _0x43d706[_0xa749('0xf')]){if(_0x43d706[_0xa749('0xf')][_0x54f5a0][_0xa749('0x105')]&&!_0x43d706[_0xa749('0xf')][_0x54f5a0]['attachChange'][_0xa749('0x87')])continue;const _0x1b3324=this[_0xa749('0xa8')](JSON[_0xa749('0x84')](_0x43d706['diffData'][_0x54f5a0]['insertions'])),_0x2a92dc=this[_0xa749('0xcc')]['editing'][_0xa749('0xc4')][_0xa749('0x60')],_0x548479=new _0x58adee(_0x2a92dc,_0x1b3324[_0xa749('0x47')](_0x1b3346=>F(_0x1b3346,this[_0xa749('0xcc')])));this[_0xa749('0xcc')][_0xa749('0x101')]['processor']['useFillerType']('marked'),_0x2093b1[_0x54f5a0]=this[_0xa749('0xcc')][_0xa749('0x101')][_0xa749('0xda')][_0xa749('0x69')](_0x548479),this[_0xa749('0xcc')][_0xa749('0x101')][_0xa749('0xda')][_0xa749('0x10c')](_0xa749('0x3d'));}return _0x2093b1;}async[_0xa749('0x6e')](_0x17b03d){await this['_loadRevisionData'](_0x17b03d);const _0x31ed08={};for(const _0x2b0580 in _0x17b03d[_0xa749('0xf')])_0x17b03d[_0xa749('0xf')][_0x2b0580][_0xa749('0x105')]&&!_0x17b03d['diffData'][_0x2b0580][_0xa749('0x105')][_0xa749('0x87')]||(_0x31ed08[_0x2b0580]=_0x17b03d[_0xa749('0xf')][_0x2b0580]['attributesAfter']||{});return _0x31ed08;}['sendBufferedUpdates'](){if(0x0===this[_0xa749('0x40')][_0xa749('0xd8')])return;if(this[_0xa749('0x82')])return;let _0x235607=Array[_0xa749('0xdc')](this[_0xa749('0x40')][_0xa749('0xf4')]());this['_bufferedUpdates'][_0xa749('0xa6')]();for(let _0x42647e=0x0;_0x42647e<_0x235607['length'];_0x42647e++){const _0x5e708e=_0x235607[_0x42647e];let _0x49a657=!0x1;for(const _0x232d7e of Object[_0xa749('0x109')](_0x5e708e))void 0x0===_0x5e708e[_0x232d7e]?delete _0x5e708e[_0x232d7e]:'id'!==_0x232d7e&&(_0x49a657=!0x0);_0x49a657||(_0x235607[_0x42647e]=null);}if(_0x235607=_0x235607[_0xa749('0xfb')](_0x23a493=>null!==_0x23a493),!_0x235607[_0xa749('0x6a')])return;for(let _0x4c32a7=0x0;_0x4c32a7<_0x235607[_0xa749('0x6a')];_0x4c32a7++){const _0x167157=_0x235607[_0x4c32a7];void 0x0!==_0x167157[_0xa749('0x7a')]&&void 0x0===_0x167157[_0xa749('0x63')]&&(_0x167157['toVersion']=this[_0xa749('0xb1')]['getRevision'](_0x167157['id'])[_0xa749('0x63')]),void 0x0!==_0x167157['toVersion']&&void 0x0===_0x167157[_0xa749('0x7a')]&&(_0x167157[_0xa749('0x7a')]=this['repository']['getRevision'](_0x167157['id'])[_0xa749('0x7a')]);}const _0xaa6def=this['editor']['config'][_0xa749('0x2e')](_0xa749('0xdd'));this[_0xa749('0x82')]=!0x0,this[_0xa749('0x2f')](),this[_0xa749('0x75')][_0xa749('0x57')](_0x235607,_0xaa6def)[_0xa749('0x2d')](()=>{this[_0xa749('0x82')]=!0x1;})[_0xa749('0x110')](_0x145c65=>{if(_0x145c65)for(const _0x4d825d of _0x145c65)this[_0xa749('0x9d')]({'id':_0x4d825d['id'],'createdAt':_0x4d825d['createdAt']});this['_removePendingAction'](),this[_0xa749('0x9')]();});}['_replaceEditorDataWithRevisionData'](_0x2ff397,_0x5e1ca1){let _0x3788bf=this[_0xa749('0xcc')][_0xa749('0x4b')][_0xa749('0x2e')](_0xa749('0xcf')),_0xfd2ca0=this[_0xa749('0xcc')]['config']['get'](_0xa749('0x5d'));if(void 0x0===_0x3788bf){_0x3788bf={};for(const _0x2b8338 of this['editor'][_0xa749('0x4d')]['document'][_0xa749('0xf1')]())_0x3788bf[_0x2b8338]='';}if('string'==typeof _0x3788bf&&(_0x3788bf={'main':_0x3788bf}),void 0x0===_0xfd2ca0){_0xfd2ca0={};for(const _0xa2fbbd of this['editor'][_0xa749('0x4d')][_0xa749('0x60')][_0xa749('0xf1')]())_0xfd2ca0[_0xa2fbbd]={};}let _0x188315=!0x1;const _0x2134be=Object[_0xa749('0x109')](_0x3788bf),_0x6de7c0=Object['keys'](_0x2ff397);for(const _0x4d6a6c of _0x2134be){if(_0x3788bf[_0x4d6a6c]!==_0x2ff397[_0x4d6a6c]&&''!==_0x3788bf[_0x4d6a6c][_0xa749('0x1f')]()){_0x188315=!0x0;break;}if(!_0x392821(_0xfd2ca0[_0x4d6a6c],_0x5e1ca1[_0x4d6a6c])&&Object[_0xa749('0x109')](_0xfd2ca0[_0x4d6a6c])[_0xa749('0x6a')]>0x0){_0x188315=!0x0;break;}}_0x188315||(_0x188315=_0x6de7c0[_0xa749('0xcb')](_0x150e3c=>!_0x2134be[_0xa749('0x36')](_0x150e3c))),_0x188315&&_0x3bdae5(_0xa749('0x51'),{'editorData':_0x3788bf,'editorRootsAttributes':_0xfd2ca0,'revisionData':_0x2ff397,'revisionRootsAttributes':_0x5e1ca1}),this[_0xa749('0xcc')][_0xa749('0x4b')][_0xa749('0xb0')](_0xa749('0xcf'),_0x2ff397),this[_0xa749('0xcc')][_0xa749('0x4b')][_0xa749('0xb0')](_0xa749('0x5d'),_0x5e1ca1);}[_0xa749('0x2f')](){if(!this['_pendingAction']){const _0x26419f=this[_0xa749('0xcc')][_0xa749('0xb7')][_0xa749('0x2e')](_0xa749('0xf5'));this[_0xa749('0xa9')]=_0x26419f[_0xa749('0x77')](_0x22c3f1(this['editor'][_0xa749('0x10f')],_0xa749('0x20')));}}[_0xa749('0xaf')](){this['_pendingAction']&&(this[_0xa749('0xcc')][_0xa749('0xb7')][_0xa749('0x2e')](_0xa749('0xf5'))[_0xa749('0xbd')](this[_0xa749('0xa9')]),this[_0xa749('0xa9')]=null);}[_0xa749('0x76')](_0x37eb2a){const _0x3af2a9=this[_0xa749('0xb1')][_0xa749('0x7f')]();_0x3af2a9[_0xa749('0x3b')]();let _0xe9f9c9=0x0;for(;_0xe9f9c9<_0x3af2a9['length'];){const _0x54163e=_0x3af2a9[_0xe9f9c9];if(_0x54163e===this['currentRevision']){_0xe9f9c9++;continue;}if(_0x54163e['id']===this['_initialRevisionId'])break;const _0xc0428b=_0x37eb2a[_0xa749('0x63')]-_0x54163e[_0xa749('0x63')]||_0x37eb2a[_0xa749('0x7a')]-_0x54163e['fromVersion'];if(_0xc0428b>0x0)break;if(_0xc0428b<0x0)_0xe9f9c9++;else{if(!_0x37eb2a[_0xa749('0x96')]&&_0x54163e[_0xa749('0x96')])break;if(_0x54163e[_0xa749('0x96')]||!_0x37eb2a[_0xa749('0x96')]){if(_0x37eb2a['createdAt']>_0x54163e[_0xa749('0x2c')])break;_0xe9f9c9++;}else _0xe9f9c9++;}}return _0xe9f9c9;}['setRevisionData'](_0x48277a){const _0x8dbbcd=this[_0xa749('0xb1')]['getRevision'](_0x48277a['id']);if(_0x48277a[_0xa749('0x2c')]&&(_0x48277a[_0xa749('0x2c')]=new Date(_0x48277a[_0xa749('0x2c')])),_0x48277a[_0xa749('0x1c')]){const _0x4091e1=this[_0xa749('0xcc')][_0xa749('0xb7')][_0xa749('0x2e')](_0xa749('0x65'));_0x48277a[_0xa749('0xdb')]=_0x48277a[_0xa749('0x1c')][_0xa749('0x47')](_0x3f0b0f=>_0x4091e1[_0xa749('0x103')](_0x3f0b0f));}_0x8dbbcd[_0xa749('0x3')](_0x48277a,!0x0);}['buildRevisionData']({revision:_0x3afa6a=null,from:_0x4e96a2=null,to:_0x5249c7=null}){_0x4e96a2=null!==_0x4e96a2?_0x4e96a2:_0x3afa6a[_0xa749('0x7a')],_0x5249c7=null!==_0x5249c7?_0x5249c7:_0x3afa6a['toVersion'];const _0x133326=this[_0xa749('0x89')][_0xa749('0x16')](_0x4e96a2,_0x5249c7),_0x59197b={'diffData':_0x133326[_0xa749('0xf')],'authorsIds':_0x133326['authorsIds'],'fromVersion':_0x4e96a2,'toVersion':_0x5249c7};if(!_0x3afa6a||_0x5249c7!==_0x3afa6a[_0xa749('0x63')]){const _0x2567a2=_0x5249c7-0x1,_0x213c04=this[_0xa749('0x10b')][_0xa749('0x83')][_0xa749('0xab')](_0x2567a2);_0x59197b[_0xa749('0x2c')]=_0x213c04&&_0x213c04[_0xa749('0x2c')]||new Date();}if(this[_0xa749('0x81')]&&_0x4e96a2===this['_loadedStateData']['fromVersion'])for(const _0x544dfe of this[_0xa749('0x81')][_0xa749('0xdb')])_0x59197b[_0xa749('0x1c')][_0xa749('0x36')](_0x544dfe['id'])||_0x59197b[_0xa749('0x1c')]['push'](_0x544dfe['id']);return _0x59197b;}['_loadRevisionData'](_0xc84146){if(!_0xc84146||_0xc84146[_0xa749('0xf')])return Promise[_0xa749('0xa0')]();{const _0x29a6fd=this[_0xa749('0xcc')][_0xa749('0x4b')]['get']('collaboration.channelId');return this[_0xa749('0x75')][_0xa749('0x10d')]({'channelId':_0x29a6fd,'revisionId':_0xc84146['id']})['then'](_0xdb15fd=>{_0xc84146[_0xa749('0xf')]=_0xdb15fd['diffData'];});}}[_0xa749('0xf3')](_0xd61ff0,_0x3d2595,_0x2cc307){if(this['_bufferedUpdates'][_0xa749('0xa5')](_0xd61ff0)){const _0x88e799=this['_bufferedUpdates'][_0xa749('0x2e')](_0xd61ff0);_0x3d2595=_0x2cc307?{..._0x88e799,..._0x3d2595}:{..._0x3d2595,..._0x88e799};}this['_bufferedUpdates'][_0xa749('0xb0')](_0xd61ff0,_0x3d2595);}[_0xa749('0xcd')](_0x1403f6){const _0x39a88f=this[_0xa749('0xb1')][_0xa749('0x7f')]();_0x39a88f[_0xa749('0x3b')](),_0x39a88f[_0xa749('0xea')]();const _0x3cae69=_0x39a88f[_0xa749('0xf8')](_0x1546b1=>_0x1546b1[_0xa749('0x63')]<=_0x1403f6)[_0xa749('0x63')];return _0x3cae69<this[_0xa749('0x5b')]?this[_0xa749('0x5b')]:_0x3cae69;}[_0xa749('0xe0')](_0x28a074){const _0x3a06e4=this['repository']['getRevision'](this[_0xa749('0xb1')]['length']-0x1);if(_0x3a06e4)this['_initialRevisionId']=_0x3a06e4['id'];else{const _0x4d2da0=!this[_0xa749('0xcc')][_0xa749('0x4d')][_0xa749('0x60')][_0xa749('0x2')][_0xa749('0xf8')](_0x321f6c=>this['editor']['model'][_0xa749('0x39')](_0x321f6c)),_0x5de62c=this[_0xa749('0xcc')][_0xa749('0xb7')][_0xa749('0x2e')](_0xa749('0x65'))['me']['id'],_0x54421e=_0x22c3f1(this[_0xa749('0xcc')]['locale'],_0x4d2da0?_0xa749('0x7'):_0xa749('0x6f'));this[_0xa749('0x99')]({'from':_0x28a074,'to':_0x28a074,'id':this[_0xa749('0x4a')],'name':_0x54421e,'creatorId':_0x5de62c});}}[_0xa749('0x93')](_0x5e7b65){const _0x459d9c=this[_0xa749('0x10b')][_0xa749('0xff')]();this[_0xa749('0x1e')]=this[_0xa749('0xb1')]['getRevision'](_0x459d9c),this[_0xa749('0x1e')]||(this[_0xa749('0x1e')]=this[_0xa749('0x99')]({'from':_0x5e7b65,'to':_0x5e7b65,'id':_0x459d9c,'name':'','creatorId':null}));}[_0xa749('0x99')]({name:_0x366986,from:_0x1d1a9e,to:_0x3e1c62,creatorId:_0x193f86,id:_0x352ea6}){const _0xc4db89=this[_0xa749('0x21')]({'from':_0x1d1a9e,'to':_0x3e1c62});_0xc4db89['name']=_0x366986,_0xc4db89['creatorId']=_0x193f86,_0xc4db89['id']=_0x352ea6;const _0x3486c3=this[_0xa749('0xb')](_0xc4db89);return this['adapter']&&this['_bufferUpdate'](_0xc4db89['id'],_0xc4db89,!0x0),_0x3486c3;}[_0xa749('0x31')](){this['editor'][_0xa749('0xad')][_0xa749('0xc6')](_0xa749('0x45'))[_0xa749('0x70')]({'model':'revision'});}[_0xa749('0xa8')](_0x46f03e){return(_0x46f03e=_0x46f03e['filter'](_0x19ddbf=>!_0x19ddbf[_0xa749('0xb2')]||_0xa749('0xe4')!==_0x19ddbf['name']&&_0xa749('0x86')!==_0x19ddbf[_0xa749('0xb2')]))[_0xa749('0xf6')](_0x4a7eb3=>{'string'!=typeof _0x4a7eb3&&(_0x4a7eb3['children']=this[_0xa749('0xa8')](_0x4a7eb3[_0xa749('0xc5')]),_0x4a7eb3[_0xa749('0x10a')]=_0x4a7eb3[_0xa749('0x10a')][_0xa749('0xfb')](_0x9d7189=>!_0x9d7189[0x0][_0xa749('0x5a')](_0xa749('0x6b'))));}),_0x46f03e;}}function F(_0x138619,_0x142bd5){const _0x3e20b8=_0x142bd5[_0xa749('0xac')][_0xa749('0xc4')][_0xa749('0x60')];if(_0xa749('0xa7')==typeof _0x138619)return new _0x5794fc(_0x3e20b8,_0x138619);{const _0x5bff53=_0x138619[_0xa749('0xc5')][_0xa749('0x47')](_0x467b80=>F(_0x467b80,_0x142bd5));return new(j[_0x138619['type']]||_0x466aac)(_0x3e20b8,_0x138619[_0xa749('0xb2')],_0x138619[_0xa749('0x10a')],_0x5bff53);}}class T{constructor(_0x4c3bee){this[_0xa749('0xcc')]=_0x4c3bee,this[_0xa749('0x100')]=new Map(),this[_0xa749('0xfd')]=-0x1,this[_0xa749('0xa3')]=-0x1,this[_0xa749('0x79')]=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this[_0xa749('0xd1')]=new Map(),this[_0xa749('0xa2')]=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this[_0xa749('0x42')]=new Map(),this[_0xa749('0x1a')]=new Map(),this[_0xa749('0x2b')]=new Map(),this[_0xa749('0x22')]=0x1,this[_0xa749('0x8a')]=this[_0xa749('0xcc')][_0xa749('0x4d')][_0xa749('0x60')][_0xa749('0xf1')](),this[_0xa749('0x8a')][_0xa749('0xe6')](_0xa749('0xa1'));}[_0xa749('0x102')](_0x516ac1){this[_0xa749('0x94')]=_0x516ac1;const _0x37a3ec=new Map(),_0x4af330=new Map(),_0x2091a0=this['editor'][_0xa749('0x4d')][_0xa749('0x60')][_0xa749('0xf1')](!0x0);_0x2091a0['push'](_0xa749('0xa1'));for(const _0x2f4d38 of _0x2091a0){const _0x5c6940=this[_0xa749('0xcc')]['model'][_0xa749('0x60')]['getRoot'](_0x2f4d38),_0x1d4144=B(_0x5c6940);_0x37a3ec[_0xa749('0xb0')](_0x2f4d38,_0x1d4144),_0x4af330[_0xa749('0xb0')](_0x2f4d38,Object[_0xa749('0xd2')](_0x5c6940['getAttributes']()));}const _0x271591=Array['from'](this['editor'][_0xa749('0x4d')][_0xa749('0x80')])[_0xa749('0x47')](_0x347615=>[_0x347615[_0xa749('0xb2')],_0x347615[_0xa749('0x19')]()]),_0x21c244=this[_0xa749('0x94')][_0xa749('0x108')];this[_0xa749('0xc')](_0x21c244,_0x37a3ec,_0x271591,_0x4af330),this[_0xa749('0x32')]=this[_0xa749('0x22')];const _0x29b12e=new Map(),_0x3bd711=new Map();for(const _0x22cb45 of this[_0xa749('0x8a')]){const _0xb330e5=J(_0x22cb45);_0x29b12e[_0xa749('0xb0')](_0x22cb45,_0xb330e5),_0x3bd711['set'](_0x22cb45,{});}this[_0xa749('0xc')](Number[_0xa749('0x54')],_0x29b12e,[],_0x3bd711);}['getData'](_0x21a5e4,_0x28e7d7){if(this[_0xa749('0xfd')]===_0x21a5e4&&this['_lastTo']<=_0x28e7d7)this['_savedMetaData'][_0xa749('0xd8')]>0x1&&this['_removeMetaData'](this[_0xa749('0xa3')]),this[_0xa749('0x92')](this[_0xa749('0xa3')],_0x28e7d7,!0x0);else{if(!this[_0xa749('0x100')][_0xa749('0xa5')](_0x21a5e4)){const _0x5aa7be=this[_0xa749('0x85')](_0x21a5e4);this[_0xa749('0xf9')](_0x5aa7be,_0x21a5e4,!0x1);}this[_0xa749('0xf9')](_0x21a5e4,_0x28e7d7,!0x0);}return this[_0xa749('0xfd')]=_0x21a5e4,this[_0xa749('0xa3')]=_0x28e7d7,this[_0xa749('0x56')]();}[_0xa749('0xb4')](_0x28c635){this['_reset'](),this['_lastFrom']=_0x28c635[_0xa749('0x7a')],this[_0xa749('0xa3')]=_0x28c635['toVersion'];for(const _0x57a787 in _0x28c635[_0xa749('0xf')]){const _0x457a64=_0x28c635[_0xa749('0xf')][_0x57a787][_0xa749('0x105')],_0x945806=_0x40da37(_0x28c635['diffData'][_0x57a787][_0xa749('0xfe')])||{},_0x5d4167=this[_0xa749('0x0')](_0x28c635['diffData'][_0x57a787][_0xa749('0x5')]);_0x5d4167[_0xa749('0x17')]=_0x57a787,_0x5d4167[_0xa749('0x73')]=!_0x457a64||!_0x457a64[_0xa749('0x87')],_0x5d4167[_0xa749('0x87')]=()=>_0x5d4167[_0xa749('0x73')],this[_0xa749('0xd1')]['set'](_0x57a787,_0x5d4167),this[_0xa749('0xa2')]['set'](_0x57a787,_0x945806),_0x457a64&&this[_0xa749('0x2b')][_0xa749('0xb0')](_0x57a787,_0x457a64);const _0x18ceb6=this[_0xa749('0x78')](_0x5d4167);this['_baseIdsRoots']['set'](_0x57a787,_0x18ceb6);for(const [_0x3693de,_0x222f88]of _0x5d4167[_0xa749('0x80')]){if(!_0x3693de['startsWith'](_0xa749('0xde')))continue;const _0x3c3054=_0x3693de[_0xa749('0xd7')](':')[0x2];for(const _0xf769eb of _0x222f88[_0xa749('0x24')]({'singleCharacters':!0x0})){const _0x3024c5=this[_0xa749('0x71')](_0xf769eb),_0x52236e=_0xa749('0xeb')==_0xf769eb['type']?_0xf769eb['previousPosition']['path'][_0xa749('0x4c')](0x0,-0x1):_0xf769eb[_0xa749('0x6d')]['path'],_0x5764fd=_0x18ceb6[_0xa749('0x27')](_0x52236e)[_0xa749('0xce')](_0x3024c5);this[_0xa749('0x42')][_0xa749('0xb0')](_0x5764fd,{'userId':_0x3c3054});}}}this[_0xa749('0x32')]=this[_0xa749('0x22')];const _0x13b911=[...Array(this['_revisionId'])[_0xa749('0x109')]()][_0xa749('0x4c')](0x1)['filter'](_0x2f6b2b=>!this['_touched'][_0xa749('0xa5')](_0x2f6b2b));let _0x510ddc=0x0;const _0x42f605=new Map();for(const _0x516202 in _0x28c635[_0xa749('0xf')]){const _0x3f766b=_0x28c635[_0xa749('0xf')][_0x516202][_0xa749('0x105')],_0x2c279a=_0x40da37(_0x28c635['diffData'][_0x516202][_0xa749('0xd6')])||{},_0x5c0db2=this[_0xa749('0x0')](_0x28c635[_0xa749('0xf')][_0x516202]['insertions']);_0x5c0db2[_0xa749('0x17')]=_0x516202,_0x5c0db2[_0xa749('0x73')]=!_0x3f766b||_0x3f766b[_0xa749('0x87')],_0x5c0db2[_0xa749('0x87')]=()=>_0x5c0db2['_isAttached'],this[_0xa749('0xc2')]['set'](_0x516202,_0x5c0db2),this['_diffRootsAttributes']['set'](_0x516202,_0x2c279a);const _0x13bd84=this['_makeIdsRoot'](_0x5c0db2,Number[_0xa749('0x54')]);this['_idsRoots']['set'](_0x516202,_0x13bd84),_0x42f605[_0xa749('0xb0')](_0x516202,_0x5c0db2[_0xa749('0x87')]()?_0x2c279a:{});for(const [_0x332a75,_0x4e4caa]of _0x5c0db2[_0xa749('0x80')]){if(!_0x332a75[_0xa749('0x5a')]('revision:'))continue;const _0x3445c6=_0x332a75[_0xa749('0xd7')](':')[0x2];for(const _0xb7b58e of _0x4e4caa[_0xa749('0x24')]({'singleCharacters':!0x0})){const _0x40f9ac=this[_0xa749('0x71')](_0xb7b58e),_0x4fd789=this[_0xa749('0x22')]++,_0x4138b2=_0xa749('0xeb')==_0xb7b58e[_0xa749('0x7c')]?_0xb7b58e[_0xa749('0x6d')][_0xa749('0x12')][_0xa749('0x4c')](0x0,-0x1):_0xb7b58e['previousPosition'][_0xa749('0x12')];_0x13bd84[_0xa749('0x27')](_0x4138b2)[_0xa749('0x13')](_0x40f9ac,_0x4fd789),this['_touched'][_0xa749('0xb0')](_0x4fd789,{'userId':_0x3445c6});}}for(const _0x404e71 of this['editor']['model'][_0xa749('0x3c')](_0x5c0db2)['getWalker']({'singleCharacters':!0x0})){const _0x44b254=this[_0xa749('0x71')](_0x404e71),_0x5c8e33='elementEnd'==_0x404e71[_0xa749('0x7c')]?_0x404e71[_0xa749('0x6d')]['path'][_0xa749('0x4c')](0x0,-0x1):_0x404e71[_0xa749('0x6d')][_0xa749('0x12')],_0xae8985=_0x13bd84[_0xa749('0x27')](_0x5c8e33);_0xae8985[_0xa749('0xce')](_0x44b254)>0x0||_0xae8985[_0xa749('0x13')](_0x44b254,_0x13b911[_0x510ddc++]);}for(const [_0x340421,_0x49bec4]of _0x5c0db2[_0xa749('0x80')])_0x340421[_0xa749('0x5a')](_0xa749('0xde'))||this['_markers']['set'](_0x340421,_0x49bec4);}const _0x3d3f98=J(_0xa749('0xa1'));this['_baseRoots'][_0xa749('0xb0')](_0xa749('0xa1'),_0x3d3f98),this[_0xa749('0x4f')][_0xa749('0xb0')](_0xa749('0xa1'),this['_makeIdsRoot'](_0x3d3f98,0x1));const _0x3028d8=J('$graveyard');this['_diffRoots']['set'](_0xa749('0xa1'),_0x3028d8),this[_0xa749('0x44')]['set'](_0xa749('0xa1'),this[_0xa749('0x78')](_0x3028d8,0x1));const _0x4a50ad=Array['from'](this[_0xa749('0xc2')])['map'](([_0x4ca4e4,_0x335613])=>[_0x4ca4e4,B(_0x335613)]);this[_0xa749('0xc')](this[_0xa749('0xa3')],_0x4a50ad,this[_0xa749('0x79')],_0x42f605);}[_0xa749('0x0')](_0xebfa13){const _0x4881ee=JSON[_0xa749('0x84')](_0xebfa13),_0x386480=this[_0xa749('0xcc')][_0xa749('0xac')][_0xa749('0xc4')][_0xa749('0x60')],_0x6b5c71=new _0x58adee(_0x386480,_0x4881ee[_0xa749('0x47')](_0x48bfd7=>F(_0x48bfd7,this[_0xa749('0xcc')])));return this[_0xa749('0xcc')][_0xa749('0x101')]['toModel'](_0x6b5c71);}[_0xa749('0xc')](_0x391d26,_0x108d39,_0x59a28d,_0x3b0d0e){const _0x101c78=new Map(_0x108d39),_0x1f236c=new Map(_0x40da37(_0x3b0d0e)),_0x2736a0=new Map();for(const [_0x1c1ec3,_0x3aff8f]of _0x59a28d)_0x2736a0[_0xa749('0xb0')](_0x1c1ec3,{'start':_0x3aff8f[_0xa749('0x91')]['clone'](),'end':_0x3aff8f[_0xa749('0x49')][_0xa749('0xfa')](),'rootName':_0x3aff8f[_0xa749('0xc7')]['rootName']});this['_savedMetaData'][_0xa749('0xb0')](_0x391d26,{'roots':_0x101c78,'markers':_0x2736a0,'rootsAttributes':_0x1f236c});}[_0xa749('0xaa')](_0x409d5a){this[_0xa749('0x100')][_0xa749('0xed')](_0x409d5a);}[_0xa749('0x25')](){this[_0xa749('0x10e')](),this[_0xa749('0xfd')]=-0x1,this[_0xa749('0xa3')]=-0x1,this[_0xa749('0x100')]['clear'](),this[_0xa749('0x102')](this['source']);}['_reset'](){this[_0xa749('0x42')]['clear'](),this['_touchedMarkers'][_0xa749('0xa6')](),this['_touchedRoots'][_0xa749('0xa6')](),this[_0xa749('0xc2')]['clear'](),this[_0xa749('0x97')][_0xa749('0xa6')](),this[_0xa749('0xd1')][_0xa749('0xa6')](),this[_0xa749('0xa2')][_0xa749('0xa6')](),this['_idsRoots'][_0xa749('0xa6')](),this[_0xa749('0x4f')][_0xa749('0xa6')](),this[_0xa749('0x79')][_0xa749('0xa6')](),this[_0xa749('0x22')]=0x1,this['_startingRevisionId']=this[_0xa749('0x22')];}[_0xa749('0x78')](_0x4e11e5,_0x1476d2=null){let _0x3a7712=null;_0x4e11e5['is']('documentFragment')||(_0x3a7712=new _0xbc8c15(_0x4e11e5[_0xa749('0xb2')],{'vid_start':null===_0x1476d2?this[_0xa749('0x22')]++:_0x1476d2++}));const _0x1c1f9f=[];for(const _0x45542b of _0x4e11e5[_0xa749('0x3a')]())if(_0x45542b['is']('element')){_0x1c1f9f[_0xa749('0xe6')](this[_0xa749('0x78')](_0x45542b,_0x1476d2));const _0x358e3d=_0x1c1f9f[_0x1c1f9f[_0xa749('0x6a')]-0x1];null!==_0x1476d2&&(_0x1476d2=_0x358e3d['is'](_0xa749('0xba'),_0xa749('0x68'))?_0x358e3d['getAttribute'](_0xa749('0x104'))+0x1:_0x358e3d[_0xa749('0xce')]('vid_end')+0x1);}else for(let _0x465378=0x0;_0x465378<_0x45542b[_0xa749('0xe5')];_0x465378++)_0x1c1f9f[_0xa749('0xe6')](new _0xbc8c15(_0xa749('0x68'),{'vid':null===_0x1476d2?this[_0xa749('0x22')]++:_0x1476d2++}));if(_0x4e11e5['is'](_0xa749('0xd4'))){const _0x1b8c5b=J(_0x4e11e5[_0xa749('0x17')]);return _0x1b8c5b[_0xa749('0x8b')](0x0,_0x1c1f9f),_0x1b8c5b;}return _0x3a7712[_0xa749('0x13')]('vid_end',null===_0x1476d2?this[_0xa749('0x22')]++:_0x1476d2++),_0x3a7712['_insertChild'](0x0,_0x1c1f9f),_0x3a7712;}['_calculateMetaData'](_0x2157a9,_0x305e29,_0x3a9a16){this[_0xa749('0x10e')]();const {roots:_0x50124c,markers:_0x4898f3,rootsAttributes:_0x4c58d5}=this[_0xa749('0x100')]['get'](_0x2157a9);this[_0xa749('0xd1')]=new Map(_0x50124c),this[_0xa749('0xa2')]=new Map(_0x40da37(_0x4c58d5));for(const [_0xfc2dc6,_0x46fbf1]of this[_0xa749('0xd1')])if('$graveyard'!==_0xfc2dc6&&(this[_0xa749('0xc2')][_0xa749('0xb0')](_0xfc2dc6,B(_0x46fbf1)),this[_0xa749('0x97')]=new Map(_0x40da37(_0x4c58d5)),_0x3a9a16)){const _0x50fd1e=this['_revisionId'];this[_0xa749('0x44')][_0xa749('0xb0')](_0xfc2dc6,this[_0xa749('0x78')](_0x46fbf1)),this[_0xa749('0x4f')][_0xa749('0xb0')](_0xfc2dc6,this[_0xa749('0x78')](_0x46fbf1,_0x50fd1e));}this[_0xa749('0x32')]=this[_0xa749('0x22')],this[_0xa749('0xc2')][_0xa749('0xb0')](_0xa749('0xa1'),B(this[_0xa749('0xd1')][_0xa749('0x2e')](_0xa749('0xa1')))),_0x3a9a16&&this[_0xa749('0x44')][_0xa749('0xb0')](_0xa749('0xa1'),this['_makeIdsRoot'](this[_0xa749('0xd1')][_0xa749('0x2e')]('$graveyard')));for(const [_0x2f0158,_0x23eed8]of _0x4898f3){const _0x571774=this[_0xa749('0xd1')]['get'](_0x23eed8[_0xa749('0x17')]),_0x138e40=this[_0xa749('0xc2')][_0xa749('0x2e')](_0x23eed8[_0xa749('0x17')]),_0x409e20=new _0x130d70(this[_0xa749('0x41')](_0x23eed8[_0xa749('0x91')],_0x571774),this[_0xa749('0x41')](_0x23eed8[_0xa749('0x49')],_0x571774)),_0x239bbf=this[_0xa749('0xe8')](_0x409e20,_0x138e40);_0x571774[_0xa749('0x80')][_0xa749('0xb0')](_0x2f0158,_0x409e20),this[_0xa749('0x79')][_0xa749('0xb0')](_0x2f0158,_0x239bbf);}this['_applyOperations'](_0x2157a9,_0x305e29,_0x3a9a16);}['_applyOperations'](_0x3b429d,_0x2ea398,_0x2693e6){for(const _0x33fe48 of this['source'][_0xa749('0xc0')](_0x3b429d,_0x2ea398))this[_0xa749('0x55')](_0x33fe48,_0x2693e6);for(const _0x2cc2ac of this[_0xa749('0xc2')][_0xa749('0xf4')]())_0x2cc2ac[_0xa749('0x80')][_0xa749('0xa6')]();for(const [_0x2f5e40,_0x581145]of this[_0xa749('0x79')]){this[_0xa749('0xc2')][_0xa749('0x2e')](_0x581145['root'][_0xa749('0x17')])['markers']['set'](_0x2f5e40,_0x581145[_0xa749('0xfa')]());}const _0x5b5004=new Map(),_0x4d05e2=new Map();for(const [_0x13c7e7,_0x37251a]of this[_0xa749('0xc2')])_0x5b5004[_0xa749('0xb0')](_0x13c7e7,B(_0x37251a)),_0x4d05e2[_0xa749('0xb0')](_0x13c7e7,this[_0xa749('0x97')]['get'](_0x13c7e7));this[_0xa749('0xc')](_0x2ea398,_0x5b5004,this['_markers'],_0x4d05e2);}[_0xa749('0x85')](_0x19a2c6){const _0x469017=Array['from'](this['_savedMetaData'][_0xa749('0x109')]());_0x469017['sort']((_0x5b6076,_0x1b1ee0)=>_0x5b6076-_0x1b1ee0),_0x469017[_0xa749('0x3b')]();for(const _0x52eab2 of _0x469017)if(_0x52eab2<_0x19a2c6)return _0x52eab2;return Number[_0xa749('0x54')];}[_0xa749('0x18')](_0x13e71f,_0x22d3ea){const _0x3513d8=Array[_0xa749('0xdc')](_0x22d3ea['markers'])[_0xa749('0x47')](([_0x3a4989,_0x41dd36])=>[_0x3a4989,this[_0xa749('0xe8')](_0x41dd36,_0x13e71f)]);_0x13e71f[_0xa749('0x80')]=new Map(_0x3513d8);}[_0xa749('0x66')](_0x34fa62){for(const _0x53e0d9 of this[_0xa749('0x79')][_0xa749('0xf4')]()){const _0x39113f=_0x53e0d9[_0xa749('0x74')](_0x34fa62),_0x119b86=_0x130d70['_createFromRanges'](_0x39113f);_0x53e0d9[_0xa749('0x91')]=_0x119b86[_0xa749('0x91')],_0x53e0d9[_0xa749('0x49')]=_0x119b86[_0xa749('0x49')];}}[_0xa749('0x55')](_0x471c8d,_0x346348){if(_0xa749('0x5f')==_0x471c8d[_0xa749('0x7c')]||_0xa749('0x37')==_0x471c8d['type'])return void this[_0xa749('0xdf')](_0x471c8d,_0x346348);if(_0xa749('0x106')==_0x471c8d[_0xa749('0x7c')]){const _0x4941e5=_0x471c8d[_0xa749('0x9a')][_0xa749('0xc7')][_0xa749('0x17')];this[_0xa749('0xc2')][_0xa749('0xa5')](_0x4941e5)||(this[_0xa749('0xc2')]['set'](_0x4941e5,J(_0x4941e5,!0x0)),this['_diffRootsAttributes'][_0xa749('0xb0')](_0x4941e5,{}),_0x346348&&this[_0xa749('0x44')]['set'](_0x4941e5,J(_0x4941e5,!0x0)));}if(_0xa749('0x7e')==_0x471c8d[_0xa749('0x7c')]||_0xa749('0x1')==_0x471c8d['type']||_0xa749('0xb9')==_0x471c8d[_0xa749('0x7c')])return void this['_handleRootAttributeOperation'](_0x471c8d);const _0x498edf=this[_0xa749('0x4e')](_0x471c8d,this[_0xa749('0xc2')]);if(_0xa749('0x9e')!==_0x471c8d['type']&&(_0x498edf[_0xa749('0x6')](),this[_0xa749('0x66')](_0x498edf)),_0x346348)switch(_0x498edf[_0xa749('0x7c')]){case _0xa749('0x106'):this[_0xa749('0x7d')](_0x471c8d);break;case'move':case _0xa749('0xbd'):case _0xa749('0x61'):this[_0xa749('0x46')](_0x471c8d);break;case _0xa749('0xc8'):this['_handleMergeOperation'](_0x471c8d);break;case'split':this[_0xa749('0x64')](_0x471c8d);break;case'marker':this[_0xa749('0xb6')](_0x471c8d);}}[_0xa749('0x4e')](_0xf32046,_0x5d16ad){const _0x13892e=_0xf32046[_0xa749('0xfa')]();return _0x13892e[_0xa749('0xc9')]=_0xf32046[_0xa749('0xc9')],this[_0xa749('0x72')](_0x13892e,_0x5d16ad),_0x13892e;}[_0xa749('0xc3')](_0x53b7e3){return _0x53b7e3[_0xa749('0x47')](_0x564fc8=>{const _0x5dee4b=this['_getVidAttributeName'](_0x564fc8);return Number(_0x564fc8[_0xa749('0x88')][_0xa749('0xce')](_0x5dee4b));});}['_generateTape'](_0x1be61a,_0x31351e){if(_0x1be61a['is']('element',_0xa749('0x68')))_0x31351e[_0xa749('0xe6')]({'item':_0x1be61a,'type':_0xa749('0x62')});else{_0x1be61a['is'](_0xa749('0xba'))&&_0x31351e['push']({'item':_0x1be61a,'type':_0xa749('0x34')});for(const _0x48b2ec of _0x1be61a[_0xa749('0x3a')]())this[_0xa749('0xf2')](_0x48b2ec,_0x31351e);_0x1be61a['is'](_0xa749('0xba'))&&_0x31351e['push']({'item':_0x1be61a,'type':_0xa749('0xeb')});}return _0x31351e;}['_getState'](){const _0x195f63=new Map(this[_0xa749('0x42')]),_0x350c2c=new Map(_0x195f63),_0x3aac1d=new Map(),_0x1418bc={'insertions':{},'deletions':{}},_0x2d6d6c={'insertions':{},'deletions':{}},_0x59748b=new Map(),_0x15d8bb=new Set([...this[_0xa749('0xd1')]['keys'](),...this[_0xa749('0xc2')][_0xa749('0x109')]()]);_0x15d8bb['delete'](_0xa749('0xa1'));for(const _0x8e2645 of _0x15d8bb){const _0xbb9d1c=this[_0xa749('0xc2')][_0xa749('0x2e')](_0x8e2645)||J(_0x8e2645,!0x1),_0x33c3a0=this['_baseRoots'][_0xa749('0x2e')](_0x8e2645)||J(_0x8e2645,!0x1);_0xbb9d1c[_0xa749('0x87')]()||_0x33c3a0[_0xa749('0x87')]()?(_0x1418bc[_0xa749('0x11')][_0x8e2645]=B(_0xbb9d1c),_0x1418bc['deletions'][_0x8e2645]=B(_0x33c3a0),this[_0xa749('0x18')](_0x1418bc[_0xa749('0x5')][_0x8e2645],_0x33c3a0),this['_copyMarkers'](_0x1418bc[_0xa749('0x11')][_0x8e2645],_0xbb9d1c),_0x2d6d6c[_0xa749('0x11')][_0x8e2645]=this[_0xa749('0xf2')](this[_0xa749('0x44')][_0xa749('0x2e')](_0x8e2645),[]),_0x2d6d6c[_0xa749('0x5')][_0x8e2645]=this[_0xa749('0xf2')](this[_0xa749('0x4f')][_0xa749('0x2e')](_0x8e2645)||J(_0x8e2645,!0x1),[])):_0x15d8bb[_0xa749('0xed')](_0x8e2645);}for(const _0x40bd73 of _0x15d8bb){const _0x78edf1=_0x2d6d6c[_0xa749('0x11')][_0x40bd73];for(const _0x3a5d1e of _0x78edf1){const _0x11b5ab=this[_0xa749('0x71')](_0x3a5d1e),_0x3fca88=_0x3a5d1e[_0xa749('0x88')][_0xa749('0xce')](_0x11b5ab);_0x350c2c[_0xa749('0xed')](_0x3fca88),_0x3fca88>=this[_0xa749('0x32')]&&_0x3aac1d[_0xa749('0xb0')](_0x3fca88,_0x195f63['get'](_0x3fca88));}}for(const _0xf94ef5 of _0x15d8bb){const _0x2163f9=_0x2d6d6c['insertions'][_0xf94ef5],_0x3bebd5=this[_0xa749('0xc3')](_0x2d6d6c[_0xa749('0x5')][_0xf94ef5]);let _0x14b003=0x0;for(const _0x3316b7 of _0x2163f9){const _0x2321ad=this[_0xa749('0x71')](_0x3316b7),_0x561b56=_0x3316b7['item'][_0xa749('0xce')](_0x2321ad);if(!_0x3aac1d[_0xa749('0xa5')](_0x561b56)&&!_0x59748b['has'](_0x561b56)){if(_0x350c2c['has'](_0x561b56))_0x14b003++;else{if(_0x561b56!=_0x3bebd5[_0x14b003]){const _0x4081d1=_0x195f63[_0xa749('0x2e')](_0x561b56)||_0x195f63[_0xa749('0x2e')](_0x3bebd5[_0x14b003]);for(;_0x561b56!=_0x3bebd5[_0x14b003];)_0x350c2c[_0xa749('0xa5')](_0x3bebd5[_0x14b003])||(_0x59748b[_0xa749('0xb0')](_0x3bebd5[_0x14b003],_0x4081d1),_0x195f63[_0xa749('0xb0')](_0x3bebd5[_0x14b003],_0x4081d1)),_0x14b003++;}_0x14b003++;}}}}for(const _0x86d27f of _0x15d8bb){const _0x355f48=_0x2d6d6c[_0xa749('0x11')][_0x86d27f];for(const _0x53fc82 of _0x355f48){const _0x3a9a17=this[_0xa749('0x71')](_0x53fc82),_0x1dbdc1=_0x53fc82[_0xa749('0x88')][_0xa749('0xce')](_0x3a9a17);if(_0x59748b['has'](_0x1dbdc1)){const _0xb09f71=_0x59748b[_0xa749('0x2e')](_0x1dbdc1);_0x350c2c[_0xa749('0xa5')](_0x1dbdc1)||_0x350c2c[_0xa749('0xb0')](_0x1dbdc1,{..._0xb09f71}),_0x3aac1d[_0xa749('0xb0')](_0x1dbdc1,{..._0xb09f71});}}}for(const _0xb2a96 of _0x350c2c[_0xa749('0x109')]())_0xb2a96>=this[_0xa749('0x32')]&&_0x350c2c[_0xa749('0xed')](_0xb2a96);const _0x3be2ba=new Map();for(const _0x5bd42f of _0x15d8bb){let _0x5d0f9c=_0x2d6d6c[_0xa749('0x11')][_0x5bd42f];for(const _0x14a03a of _0x5d0f9c)if(_0x14a03a[_0xa749('0x88')]['is'](_0xa749('0xba'),_0xa749('0xd3'))){const _0x26dabd=this[_0xa749('0x71')](_0x14a03a),_0x31d77c=_0x14a03a['item'][_0xa749('0xce')](_0x26dabd);if(_0x3aac1d['has'](_0x31d77c)){const _0x36fdeb=_0x14a03a['item'][_0xa749('0x50')]['parent'][_0xa749('0xce')](_0xa749('0xbc')),_0x131021=_0x3be2ba[_0xa749('0x2e')](_0x36fdeb)||new Set();_0x131021[_0xa749('0x77')](_0x3aac1d[_0xa749('0x2e')](_0x31d77c)['userId']),_0x3be2ba[_0xa749('0xb0')](_0x36fdeb,_0x131021);}}_0x5d0f9c=_0x2d6d6c[_0xa749('0x5')][_0x5bd42f];for(const _0x332995 of _0x5d0f9c)if(_0x332995['item']['is'](_0xa749('0xba'),_0xa749('0xd3'))){const _0x480311=this[_0xa749('0x71')](_0x332995),_0x3bb1e3=_0x332995[_0xa749('0x88')][_0xa749('0xce')](_0x480311);if(_0x350c2c[_0xa749('0xa5')](_0x3bb1e3)){const _0x1b350a=_0x332995[_0xa749('0x88')][_0xa749('0x50')][_0xa749('0x50')][_0xa749('0xce')]('vid_start'),_0x40d615=_0x3be2ba[_0xa749('0x2e')](_0x1b350a)||new Set();_0x40d615[_0xa749('0x77')](_0x350c2c['get'](_0x3bb1e3)['userId']),_0x3be2ba[_0xa749('0xb0')](_0x1b350a,_0x40d615);}}for(const _0x194648 of _0x3be2ba[_0xa749('0x109')]())(_0x3aac1d['has'](_0x194648)||_0x350c2c[_0xa749('0xa5')](_0x194648))&&_0x3be2ba[_0xa749('0xed')](_0x194648);}for(const _0x23ba32 of _0x15d8bb){const _0x381e51=_0x2d6d6c[_0xa749('0x11')][_0x23ba32];let _0x456274=null,_0x522ed5=null;for(const _0x565366 of _0x381e51){const _0xca7d36=this[_0xa749('0x71')](_0x565366),_0x5359f1=_0x565366[_0xa749('0x88')][_0xa749('0xce')](_0xca7d36),_0x880706=_0x3be2ba[_0xa749('0x2e')](_0x5359f1);_0x880706&&'elementStart'==_0x565366[_0xa749('0x7c')]&&(_0x456274=Array['from'](_0x880706)[0x0],_0x522ed5=_0x565366[_0xa749('0x88')][_0xa749('0xce')](_0xa749('0x53'))),_0x456274&&(_0x350c2c[_0xa749('0xb0')](_0x5359f1,{'userId':_0x456274}),_0x3aac1d[_0xa749('0xb0')](_0x5359f1,{'userId':_0x456274})),_0x5359f1==_0x522ed5&&(_0x456274=null,_0x522ed5=null);}}const _0x44cac3={},_0x59d804=new Set();for(const _0x492656 of _0x15d8bb){const _0x13d4d2=_0x1418bc[_0xa749('0x5')][_0x492656],_0x58c692=_0x1418bc[_0xa749('0x11')][_0x492656];for(const {userId:_0x32772b}of this[_0xa749('0x1a')][_0xa749('0xf4')]())null!==_0x32772b&&_0x59d804[_0xa749('0x77')](_0x32772b);for(const {userId:_0x594817}of this[_0xa749('0x2b')][_0xa749('0xf4')]())null!==_0x594817&&_0x59d804[_0xa749('0x77')](_0x594817);this[_0xa749('0x15')](_0x58c692,_0x2d6d6c[_0xa749('0x11')][_0x492656],_0x3aac1d,'insertion',_0x59d804),this[_0xa749('0x15')](_0x13d4d2,_0x2d6d6c[_0xa749('0x5')][_0x492656],_0x350c2c,_0xa749('0xd9'),_0x59d804),_0x44cac3[_0x492656]={'insertions':this['_prepareViewToSave'](_0x58c692),'deletions':this[_0xa749('0xb3')](_0x13d4d2),'attachChange':this['_touchedRoots']['get'](_0x492656)||null,'attributesBefore':_0x40da37(this[_0xa749('0xa2')]['get'](_0x492656))||{},'attributesAfter':_0x40da37(this[_0xa749('0x97')][_0xa749('0x2e')](_0x492656))};}return{'diffData':_0x44cac3,'authorsIds':Array['from'](_0x59d804)};}['_processRootBeforeSave'](_0x20963a){for(const [,_0x18cf95]of _0x20963a[_0xa749('0x80')]){const _0x495cd7=_0x18cf95[_0xa749('0x91')][_0xa749('0x33')]()[_0xa749('0xfb')](_0x1cd534=>_0xa749('0xd3')==_0x1cd534[_0xa749('0xb2')]);for(const _0x5e2643 of _0x495cd7)0x1==_0x5e2643['childCount']&&_0x5e2643[_0xa749('0x95')](0x0)['is'](_0xa749('0xba'),_0xa749('0x9c'))&&_0x5e2643[_0xa749('0x95')](0x0)['_setAttribute'](_0xa749('0xe3'),!0x0);}}['_prepareViewToSave'](_0x49cf26){this[_0xa749('0x5c')](_0x49cf26);const _0x158ecd=this['editor'][_0xa749('0x101')]['toView'](_0x49cf26,{}),_0x538698=Array[_0xa749('0xdc')](_0x158ecd[_0xa749('0x3a')]())[_0xa749('0x47')](_0x15d221=>this[_0xa749('0x3e')](_0x15d221));return JSON[_0xa749('0x8f')](_0x538698);}[_0xa749('0x3e')](_0x1fceab){if(_0x1fceab['is']('$text'))return _0x1fceab[_0xa749('0x101')];{const _0x3f8cfc=_0x1fceab;return{'type':Object[_0xa749('0x109')](j)[_0xa749('0xf8')](_0x416b40=>_0x1fceab instanceof j[_0x416b40]),'name':_0x3f8cfc[_0xa749('0xb2')],'attributes':Array[_0xa749('0xdc')](_0x3f8cfc[_0xa749('0x5e')]()),'children':Array[_0xa749('0xdc')](_0x3f8cfc[_0xa749('0x3a')]())['map'](_0x5a4466=>this[_0xa749('0x3e')](_0x5a4466))};}}[_0xa749('0x15')](_0x28cdd1,_0x5a1579,_0x246333,_0x4d8b02,_0x1ac6ab){let _0x162f50=null,_0x7eb909=null,_0xc5c8d7=0x0;const _0x5053e7=this[_0xa749('0xcc')]['model'];for(let _0x14ae9a=0x0;_0x14ae9a<_0x5a1579[_0xa749('0x6a')];_0x14ae9a++){const _0x2a7446=this[_0xa749('0x71')](_0x5a1579[_0x14ae9a]),_0x22ddea=_0x5a1579[_0x14ae9a][_0xa749('0x88')][_0xa749('0xce')](_0x2a7446),_0xc28062=_0x246333[_0xa749('0x2e')](_0x22ddea),_0x37e9dd=_0x14ae9a==_0x5a1579[_0xa749('0x6a')]-0x1;(!_0x162f50&&_0xc28062&&(_0x162f50=_0xc28062,_0x7eb909=_0x5a1579[_0x14ae9a]),_0x162f50&&(!_0xc28062||_0xc28062[_0xa749('0xd5')]!=_0x162f50[_0xa749('0xd5')]))&&(_0x3c2799(_0xc28062,H(_0x7eb909,_0x28cdd1,_0x5053e7),H(_0x5a1579[_0x14ae9a],_0x28cdd1,_0x5053e7)),_0x162f50=_0xc28062||null,_0x7eb909=_0xc28062?_0x5a1579[_0x14ae9a]:null),_0x162f50&&_0x37e9dd&&_0x3c2799(_0xc28062,H(_0x7eb909,_0x28cdd1,_0x5053e7),q(_0x5a1579[_0x14ae9a],_0x28cdd1,_0x5053e7));}function _0x3c2799(_0x1aad0d,_0xcfae04,_0x5ed95a){const _0x2cf3cd=_0x162f50[_0xa749('0xd5')],_0x2ffc53=_0xa749('0xde')+_0x4d8b02+':'+_0x2cf3cd+':'+_0xc5c8d7++,_0x53e6fc=_0x5053e7[_0xa749('0x1d')](_0xcfae04,_0x5ed95a);_0x28cdd1[_0xa749('0x80')][_0xa749('0xb0')](_0x2ffc53,_0x53e6fc),null!==_0x2cf3cd&&_0x1ac6ab[_0xa749('0x77')](_0x2cf3cd);}}[_0xa749('0x71')](_0xffaedd){switch(_0xffaedd[_0xa749('0x7c')]){case _0xa749('0x34'):return _0xa749('0xbc');case _0xa749('0xeb'):return _0xa749('0x53');default:return _0xa749('0x104');}}[_0xa749('0x72')](_0x4934d6,_0x24f67c){_0x4934d6[_0xa749('0xd0')]=null;for(const _0x31c299 in _0x4934d6){const _0x3f9efb=_0x4934d6[_0x31c299];if(_0x3f9efb instanceof _0x4a0de6){const _0x2bb14c=_0x24f67c['get'](_0x3f9efb[_0xa749('0xc7')][_0xa749('0x17')]);_0x4934d6[_0x31c299]=this[_0xa749('0x41')](_0x3f9efb,_0x2bb14c);}if(_0x3f9efb instanceof _0x130d70){const _0x512a21=_0x24f67c[_0xa749('0x2e')](_0x3f9efb['root'][_0xa749('0x17')]);_0x4934d6[_0x31c299]=this[_0xa749('0xe8')](_0x3f9efb,_0x512a21);}_0xa749('0xc7')===_0x31c299&&(_0x4934d6[_0xa749('0xc7')]=_0x24f67c[_0xa749('0x2e')](_0x4934d6[_0xa749('0xc7')][_0xa749('0x17')]));}}[_0xa749('0xe8')](_0x359dea,_0x4d623d){return this[_0xa749('0xcc')][_0xa749('0x4d')][_0xa749('0x1d')](this[_0xa749('0x41')](_0x359dea['start'],_0x4d623d),this[_0xa749('0x41')](_0x359dea['end'],_0x4d623d));}[_0xa749('0x41')](_0xc0a8ff,_0x187c5e){return this[_0xa749('0xcc')]['model'][_0xa749('0x14')](_0x187c5e,_0xc0a8ff['path'],_0xc0a8ff[_0xa749('0x30')]);}['_handleInsertOperation'](_0x5f0d33){const _0x51f009=this[_0xa749('0x44')][_0xa749('0x2e')](_0x5f0d33[_0xa749('0x9a')][_0xa749('0xc7')][_0xa749('0x17')]),_0x427841=this[_0xa749('0x41')](_0x5f0d33[_0xa749('0x9a')],_0x51f009),_0x3fc162=null===_0x5f0d33['_authorId']?null:_0x5f0d33[_0xa749('0xc9')]||this[_0xa749('0xcc')][_0xa749('0xb7')][_0xa749('0x2e')]('Users')['me']['id'],_0xc6265c=_0x427841[_0xa749('0x50')],_0x265205=this['_revisionId'],_0xee9fa0=[];for(const _0x145404 of _0x5f0d33[_0xa749('0xef')])if(_0x145404['is'](_0xa749('0xba')))_0xee9fa0['push'](this[_0xa749('0x78')](_0x145404));else for(let _0x3cf5af=0x0;_0x3cf5af<_0x145404['offsetSize'];_0x3cf5af++)_0xee9fa0[_0xa749('0xe6')](new _0xbc8c15(_0xa749('0x68'),{'vid':this['_revisionId']++}));const _0x391a9f=this[_0xa749('0x22')];for(let _0x4790b4=_0x265205;_0x4790b4<_0x391a9f;_0x4790b4++)this[_0xa749('0x42')][_0xa749('0xb0')](_0x4790b4,{'userId':_0x3fc162});_0xc6265c[_0xa749('0x8b')](_0x427841[_0xa749('0x59')],_0xee9fa0);}[_0xa749('0x46')](_0x1f61be){(_0x1f61be=this[_0xa749('0x4e')](_0x1f61be,this[_0xa749('0x44')]))[_0xa749('0x6')]();const _0x10a830=null===_0x1f61be[_0xa749('0xc9')]?null:_0x1f61be['_authorId']||this[_0xa749('0xcc')]['plugins'][_0xa749('0x2e')](_0xa749('0x65'))['me']['id'],_0x4a7104=_0x1f61be[_0xa749('0x26')](),_0x4fc2fe=_0x4a7104['parent'],_0x41dff0=_0x4a7104[_0xa749('0x59')];!function _0x52dd17(_0x55fce8,_0x372b67,_0x2b7ea5,_0x354176){for(let _0x5ddae1=_0x2b7ea5;_0x5ddae1<_0x354176;_0x5ddae1++){const _0x29e409=_0x372b67[_0xa749('0x95')](_0x5ddae1);_0x29e409['is'](_0xa749('0xba'),'$text')?_0x55fce8['set'](_0x29e409[_0xa749('0xce')](_0xa749('0x104')),{'userId':_0x10a830}):(_0x55fce8[_0xa749('0xb0')](_0x29e409[_0xa749('0xce')](_0xa749('0xbc')),{'userId':_0x10a830}),_0x52dd17(_0x55fce8,_0x29e409,0x0,_0x29e409[_0xa749('0x8')]),_0x55fce8[_0xa749('0xb0')](_0x29e409['getAttribute'](_0xa749('0x53')),{'userId':_0x10a830}));}}(this[_0xa749('0x42')],_0x4fc2fe,_0x41dff0,_0x41dff0+_0x1f61be['howMany']);}[_0xa749('0x8e')](_0x42a1a2){const _0x539c73=null===(_0x42a1a2=this['_cloneOperation'](_0x42a1a2,this[_0xa749('0x44')]))['_authorId']?null:_0x42a1a2[_0xa749('0xc9')]||this['editor'][_0xa749('0xb7')]['get'](_0xa749('0x65'))['me']['id'],_0x55e1ef=_0x42a1a2[_0xa749('0xe7')]['parent'],_0x139ad5=_0x42a1a2[_0xa749('0xf7')][_0xa749('0x50')],_0x215e2a=_0x55e1ef[_0xa749('0xce')](_0xa749('0x53')),_0x18ba71=_0x139ad5[_0xa749('0xce')]('vid_start');_0x55e1ef[_0xa749('0x13')](_0xa749('0x53'),_0x139ad5[_0xa749('0xce')]('vid_end')),_0x139ad5[_0xa749('0x13')](_0xa749('0x53'),_0x215e2a),this[_0xa749('0x42')]['set'](_0x18ba71,{'userId':_0x539c73}),this[_0xa749('0x42')]['set'](_0x215e2a,{'userId':_0x539c73}),_0x42a1a2[_0xa749('0x6')]();}['_handleSplitOperation'](_0x564136){const _0xe7e29d=null===(_0x564136=this[_0xa749('0x4e')](_0x564136,this[_0xa749('0x44')]))[_0xa749('0xc9')]?null:_0x564136['_authorId']||this[_0xa749('0xcc')][_0xa749('0xb7')][_0xa749('0x2e')](_0xa749('0x65'))['me']['id'],_0x3ac17b=_0x564136[_0xa749('0x67')],_0x4d3965=_0x564136[_0xa749('0x8d')]['parent'];_0x564136[_0xa749('0x6')]();const _0x3917c1=_0x4d3965['getAttribute'](_0xa749('0x53')),_0x4d95b2=_0x564136['insertionPosition'][_0xa749('0x1b')];if(_0x3ac17b){const _0x1e2a6c=_0x4d95b2[_0xa749('0xce')](_0xa749('0x53')),_0x1990a6=_0x4d3965[_0xa749('0xce')](_0xa749('0x53'));_0x4d3965[_0xa749('0x13')](_0xa749('0x53'),_0x1e2a6c),_0x4d95b2[_0xa749('0x13')](_0xa749('0x53'),_0x1990a6),this[_0xa749('0x42')][_0xa749('0xb0')](_0x4d3965[_0xa749('0xce')](_0xa749('0x53')),{'userId':_0xe7e29d}),this[_0xa749('0x42')]['set'](_0x4d95b2[_0xa749('0xce')](_0xa749('0xbc')),{'userId':_0xe7e29d});}else{const _0xdf8024=this[_0xa749('0x22')]++,_0x3b5811=this[_0xa749('0x22')]++;_0x4d3965[_0xa749('0x13')](_0xa749('0x53'),_0xdf8024),_0x4d95b2[_0xa749('0x13')](_0xa749('0xbc'),_0x3b5811),_0x4d95b2[_0xa749('0x13')]('vid_end',_0x3917c1),this['_touched'][_0xa749('0xb0')](_0xdf8024,{'userId':_0xe7e29d}),this['_touched'][_0xa749('0xb0')](_0x3b5811,{'userId':_0xe7e29d});}}['_handleMarkerOperation'](_0x211d5e){if(!_0x211d5e[_0xa749('0x43')])return;const _0x152267=(_0x211d5e=this[_0xa749('0x4e')](_0x211d5e,this[_0xa749('0xc2')]))[_0xa749('0xb5')]?_0x211d5e[_0xa749('0xb5')][_0xa749('0xc7')]:null,_0x1a65c4=_0x211d5e[_0xa749('0x9f')]?_0x211d5e[_0xa749('0x9f')][_0xa749('0xc7')]:null;_0x152267&&this[_0xa749('0x79')][_0xa749('0xed')](_0x211d5e[_0xa749('0xb2')]),_0x1a65c4&&this[_0xa749('0x79')]['set'](_0x211d5e['name'],_0x211d5e['newRange'][_0xa749('0xfa')]());const _0x1cc016=null===_0x211d5e[_0xa749('0xc9')]?null:_0x211d5e[_0xa749('0xc9')]||this[_0xa749('0xcc')][_0xa749('0xb7')][_0xa749('0x2e')](_0xa749('0x65'))['me']['id'],_0x4db991=_0x211d5e[_0xa749('0xb2')];if(!this[_0xa749('0x1a')]['has'](_0x4db991))return void this[_0xa749('0x1a')][_0xa749('0xb0')](_0x4db991,{'range':_0x211d5e[_0xa749('0xb5')],'userId':_0x1cc016});const _0x5b8ef0=this['_touchedMarkers'][_0xa749('0x2e')](_0x4db991),_0x4ed092=_0x5b8ef0[_0xa749('0xc1')],_0x40b850=_0x211d5e[_0xa749('0x9f')];null==_0x4ed092&&null==_0x40b850||_0x4ed092&&_0x40b850&&_0x4ed092[_0xa749('0x4')](_0x40b850)?this['_touchedMarkers'][_0xa749('0xed')](_0x211d5e['name']):_0x5b8ef0[_0xa749('0xd5')]=_0x1cc016;}['_handleRootOperation'](_0x36dda9,_0x4bcdf6){this[_0xa749('0xc2')]['has'](_0x36dda9[_0xa749('0x17')])?this['_diffRoots'][_0xa749('0x2e')](_0x36dda9[_0xa749('0x17')])[_0xa749('0x73')]=_0x36dda9[_0xa749('0x2a')]:(this[_0xa749('0xc2')][_0xa749('0xb0')](_0x36dda9[_0xa749('0x17')],J(_0x36dda9[_0xa749('0x17')],!0x0)),this[_0xa749('0x97')][_0xa749('0xb0')](_0x36dda9[_0xa749('0x17')],{}),_0x4bcdf6&&this[_0xa749('0x44')]['set'](_0x36dda9[_0xa749('0x17')],J(_0x36dda9[_0xa749('0x17')],!0x0)));const _0x5861f2=null===_0x36dda9[_0xa749('0xc9')]?null:_0x36dda9[_0xa749('0xc9')]||this[_0xa749('0xcc')][_0xa749('0xb7')][_0xa749('0x2e')]('Users')['me']['id'],_0x98783f=this['_touchedRoots'][_0xa749('0x2e')](_0x36dda9[_0xa749('0x17')]);_0x98783f&&_0x98783f[_0xa749('0xd5')]===_0x5861f2?this[_0xa749('0x2b')][_0xa749('0xed')](_0x36dda9[_0xa749('0x17')]):this['_touchedRoots'][_0xa749('0xb0')](_0x36dda9[_0xa749('0x17')],{'userId':_0x5861f2,'isAttached':_0x36dda9['isAdd']});}['_handleRootAttributeOperation'](_0x47a8ea){const _0x34f40e=this[_0xa749('0x97')][_0xa749('0x2e')](_0x47a8ea['root'][_0xa749('0x17')]);null===_0x47a8ea[_0xa749('0x90')]?delete _0x34f40e[_0x47a8ea[_0xa749('0xd')]]:_0x34f40e[_0x47a8ea[_0xa749('0xd')]]=_0x47a8ea[_0xa749('0x90')];}}function B(_0x177a87){const _0x3202c2=J(_0x177a87[_0xa749('0x17')],_0x177a87['isAttached']());for(const _0x109ff0 of _0x177a87[_0xa749('0x3a')]()){const _0x24a69d=_0x109ff0[_0xa749('0x23')](!0x0);_0x3202c2[_0xa749('0xb8')](_0x24a69d);}return _0x3202c2;}function J(_0x17035a,_0x5dad8e=!0x0){const _0x4d2fe7=new _0x33b272();return _0x4d2fe7[_0xa749('0x17')]=_0x17035a,_0x4d2fe7[_0xa749('0x73')]=_0x5dad8e,_0x4d2fe7[_0xa749('0x87')]=()=>_0x4d2fe7['_isAttached'],_0x4d2fe7;}function H(_0x8cc936,_0xbb0bc8,_0x5904b6){const _0x254ae8=_0xa749('0xeb')==_0x8cc936[_0xa749('0x7c')]?_0x5904b6[_0xa749('0xf0')](_0x8cc936[_0xa749('0x88')],_0xa749('0x49')):_0x5904b6['createPositionBefore'](_0x8cc936[_0xa749('0x88')]);return _0x5904b6[_0xa749('0x14')](_0xbb0bc8,_0x254ae8[_0xa749('0x12')],_0x254ae8[_0xa749('0x30')]);}function q(_0x12fcb0,_0x4d78d1,_0x3714ff){const _0xe37c0c=_0xa749('0x34')==_0x12fcb0[_0xa749('0x7c')]?_0x3714ff[_0xa749('0xf0')](_0x12fcb0[_0xa749('0x88')],0x0):_0x3714ff[_0xa749('0xe2')](_0x12fcb0['item']);return _0x3714ff[_0xa749('0x14')](_0x4d78d1,_0xe37c0c[_0xa749('0x12')],_0xe37c0c[_0xa749('0x30')]);}
23
+ const _0x4f48=['getTime','affectsData','attachChange','RevisionTracker','isEqual','root','newRange','initialData','_createCurrentRevision','_reset','name','getAncestors','addRoot','update','repository','getMovedRangeStart','parent','from','slice','revision','getRoot','_touchedRoots','authors','getRange','elementEnd','clone','_startingRevisionId','creator','_getFromVersion','_source','find','_markChanges','_copyMarkers','_operations','getChild','_diffRootsAttributes','_handleMergeOperation','tableCell','markers','keys','trim','_getState','getIndex','getNodeByPath','delete','item','_handleMarkerOperation','processor','_handleSplitOperation','text','start','_clone','_removePendingAction','getRevisionRootsAttributes','diffData','marker','_touched','_lastTo','history','_handleMoveOperation','includes','oldRange','stickiness','creatorId','buildRevisionData','_isPendingUpdate','keepParagraph','$graveyard','revisionHistory.resumeUnsavedRevision','_continueCurrentRevision','getUser','getCurrentRevisionId','_fixOperation','vid_start','then','_setConversion','addRevisionData','createPositionBefore','_lastFrom','isAdd','parse','offsetSize','sendBufferedUpdates','split','getRevisions','deletions','path','createRevision','createPositionAfter','insert','move','isReady','splitPosition','fromVersion','Users','_getPreviousFrom','version','_savedMetaData','_createInitialRevision','key','_fixPosition','_saveMetaData','adapter','length','fromEntries','getAttributes','getChildren','_applyOperations','forEach','stringify','baseVersion','getTransformedByOperation','document','values','_findInsertionIndex','_handleOperation','_touchedMarkers','init','saveRevision','_generateTape','model','attributes','_baseRootsAttributes','_removeMetaData','conversion','getData','setSource','toVersion','isEnabled','authorsIds','data-revision-','_loadState','_bufferedUpdates','paragraph','hasContent','changeRootAttribute','userId','vid_end','plugins','_prepareViewToSave','source','_isAttached','_bufferUpdate','_getBaseVids','_handleRootOperation','filter','_isInit','_initialRevisionId','useFillerType','_makeRevision','howMany','toData','updateRevisions','createdAt','_makeModelFromViewString','getAttribute','_pendingAction','for','Initial\x20revision','_transformMarkers','_diffRoots','offset','attributesAfter','_markers','type','has','clear','add','_loadedStateData','config','getWalker','string','_idsRoots','set','_initialRoots','_appendChild','_handleRootAttributeOperation','getRootNames','RealTimeCollaborationClient','_getViewJson','NEGATIVE_INFINITY','startsWith','currentRevision','_update','attributesBefore','ready','addRevision','reverse','_removeRevisionMarkers','documentFragment','merge','revision-start','_addPendingAction','_startingVersion','_setAttribute','_calculateMetaData','addRootAttribute','Empty\x20document','roots','elementStart','rootName','newValue','sourcePosition','_baseRoots','getRevision','push','_cloneOperation','editor','_fixRange','rootsAttributes','detachRoot','requires','resolve','_revisionId','vid','_execute','_createFromRanges','getRevisionDocumentData','remove','nodeAfter','initial','map','PendingActions','size','isAttached','createPositionFromPath','locale','createPositionAt','childCount','revision:','graveyardPosition','getLatestVersion','createRange','upcast','_getVidAttributeName','_baseIdsRoots','view','insertions','pluginName','toView','editing','element','_replaceEditorDataWithRevisionData','previousPosition','_revisionDataBuilder','targetPosition','default','collaboration.channelId','children','insertion','_makeIdsRoot','position','_insertChild','reInit','end','_authorId','editor-initial-data-replaced-with-revision-data','bind','data','_processRootBeforeSave','_loadRevisionData','max','$text','get'];(function(_0x2bb672,_0x4f48d9){const _0x25246d=function(_0x3afb7f){while(--_0x3afb7f){_0x2bb672['push'](_0x2bb672['shift']());}};_0x25246d(++_0x4f48d9);}(_0x4f48,0x11b));const _0x2524=function(_0x2bb672,_0x4f48d9){_0x2bb672=_0x2bb672-0x0;let _0x25246d=_0x4f48[_0x2bb672];return _0x25246d;};import{Users as _0x24cb6b}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x4994c7,PendingActions as _0x37a2bb}from'ckeditor5/src/core';import{logWarning as _0x557e88,uid as _0x5d90ce}from'ckeditor5/src/utils';import{Position as _0x823d76,Range as _0x176ec4,Element as _0x552bef,DocumentFragment as _0x480898,ViewText as _0x499567,ViewElement as _0x4babdd,ViewContainerElement as _0x97bbcb,ViewAttributeElement as _0xbb222,ViewEmptyElement as _0xb2c24e,ViewRawElement as _0x3293fa,ViewUIElement as _0x10d7b0,ViewDocumentFragment as _0x17d6fe}from'ckeditor5/src/engine';import _0x42a8c7 from'./revisionsrepository';import{getTranslation as _0x10f8b9}from'./utils/common-translations';import{cloneDeep as _0x3cb004,isEqual as _0x587449}from'lodash-es';const F={'c':_0x97bbcb,'a':_0xbb222,'e':_0xb2c24e,'r':_0x3293fa,'u':_0x10d7b0};export default class u extends _0x4994c7{static get[_0x2524('0xdb')](){return _0x2524('0xf8');}static get[_0x2524('0xc0')](){return[_0x24cb6b,_0x42a8c7,_0x37a2bb];}constructor(_0x3e5130){super(_0x3e5130),this[_0x2524('0x53')]=null,this[_0x2524('0xa3')]=null,this[_0x2524('0xe1')]=new B(this[_0x2524('0xbc')]),this[_0x2524('0x80')]=this['editor']['config'][_0x2524('0xf4')]('collaboration.channelId')||_0x2524('0xc9'),this[_0x2524('0x71')]=new Map(),this[_0x2524('0x95')]=null;const _0x3454f9=_0x5d90ce();this[_0x2524('0xa')]={'history':this['editor'][_0x2524('0x65')][_0x2524('0x5d')][_0x2524('0x27')],'getLatestVersion':()=>Promise[_0x2524('0xc1')](this[_0x2524('0xbc')][_0x2524('0x65')][_0x2524('0x5d')][_0x2524('0x4d')]),'getCurrentRevisionId':()=>_0x3454f9},this[_0x2524('0x9a')](_0x2524('0x48'),!0x1),this['set'](_0x2524('0x6d'),!0x0),this['set'](_0x2524('0x2e'),!0x1),this[_0x2524('0xbc')][_0x2524('0x96')]['define'](_0x2524('0x31'),!0x0),this['editor'][_0x2524('0x69')][_0x2524('0x8a')](_0x2524('0xd6'))['dataToMarker']({'view':_0x2524('0x0')});}[_0x2524('0x62')](){this['repository']=this[_0x2524('0xbc')]['plugins'][_0x2524('0xf4')]('RevisionsRepository'),this[_0x2524('0x38')](),this[_0x2524('0xbc')][_0x2524('0xef')]['on'](_0x2524('0xa6'),()=>{const _0x1dcee2=this[_0x2524('0x103')][_0x2524('0xb9')](0x0),_0x4a39e3=_0x1dcee2&&null===_0x1dcee2[_0x2524('0x8')]?_0x1dcee2:null;if(this[_0x2524('0x32')]=!!_0x4a39e3&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this[_0x2524('0xbc')]['plugins'][_0x2524('0x92')](_0x2524('0x9f'))){const _0x3ccdd0=this[_0x2524('0xa')][_0x2524('0x34')](),_0x25467b=this[_0x2524('0x103')]['getRevision'](_0x3ccdd0);if(_0x25467b)this[_0x2524('0xae')]=_0x25467b['fromVersion'],this[_0x2524('0x32')]=!0x1;else{const _0x2e205a=this[_0x2524('0xa')][_0x2524('0x27')][_0x2524('0xe')]['find'](_0x451fc4=>!_0x451fc4[_0x2524('0x7f')]),_0x10c4b1=_0x2e205a?_0x2e205a[_0x2524('0x5b')]:this[_0x2524('0xa')][_0x2524('0x27')][_0x2524('0x4d')];_0x1dcee2?(_0x1dcee2[_0x2524('0x6c')]<_0x10c4b1&&_0x1dcee2[_0x2524('0xa4')]({'toVersion':_0x10c4b1}),this[_0x2524('0x32')]?(this[_0x2524('0xa')]['getCurrentRevisionId']=()=>_0x4a39e3['id'],this[_0x2524('0xae')]=_0x4a39e3['fromVersion']):(this[_0x2524('0xae')]=_0x1dcee2[_0x2524('0x6c')],this[_0x2524('0x32')]=!0x1)):(this[_0x2524('0xae')]=_0x10c4b1,this[_0x2524('0x32')]=!0x1);}}else _0x4a39e3&&(this[_0x2524('0xbc')][_0x2524('0x65')]['document'][_0x2524('0x27')]['version']=Math[_0x2524('0xf2')](_0x4a39e3[_0x2524('0x6c')],this['editor']['model'][_0x2524('0x5d')]['history'][_0x2524('0x4d')]),_0x4a39e3[_0x2524('0x4a')]===_0x4a39e3[_0x2524('0x6c')]?(0x0!==_0x4a39e3['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4a39e3['id']),this['_continueCurrentRevision']=!0x1):this[_0x2524('0x32')]&&(this[_0x2524('0xa')][_0x2524('0x34')]=()=>_0x4a39e3['id'],this[_0x2524('0xae')]=_0x4a39e3['fromVersion'])),this[_0x2524('0x32')]||(this[_0x2524('0xae')]=this[_0x2524('0xbc')][_0x2524('0x65')]['document'][_0x2524('0x4d')]);this[_0x2524('0xe1')][_0x2524('0x62')](this[_0x2524('0xa')]['history']),this[_0x2524('0x4f')](this[_0x2524('0xae')]),this[_0x2524('0xfd')](this['_startingVersion']),this[_0x2524('0x53')]&&this[_0x2524('0x3f')]();}),this[_0x2524('0xee')](_0x2524('0x48'))['to'](this,_0x2524('0x2e'),_0x1402db=>!_0x1402db);}async['afterInit'](){if(this[_0x2524('0x103')][_0x2524('0x54')]>0x0){const _0x3d2757=this[_0x2524('0x103')]['getRevision'](0x0),_0x4ffd2d=await this[_0x2524('0xc6')](_0x3d2757),_0x33777e=await this[_0x2524('0x22')](_0x3d2757);this[_0x2524('0xdf')](_0x4ffd2d,_0x33777e);}}[_0x2524('0x6b')](_0x5c6742){this[_0x2524('0xa')]=_0x5c6742;}async[_0x2524('0x102')](){const _0x1573a7=await this['_source'][_0x2524('0xd4')]();if(_0x1573a7>this[_0x2524('0xa3')][_0x2524('0x6c')]){await this[_0x2524('0x70')]();const _0x55f034=this[_0x2524('0x2d')]({'revision':this['currentRevision'],'to':_0x1573a7});_0x55f034['authors']=_0x55f034[_0x2524('0x6e')][_0x2524('0xca')](_0x5d2ebc=>this['editor'][_0x2524('0x77')]['get'](_0x2524('0x4b'))[_0x2524('0x33')](_0x5d2ebc)),this[_0x2524('0xa3')][_0x2524('0xa4')](_0x55f034);}}async[_0x2524('0x70')](){this[_0x2524('0x32')]&&!this[_0x2524('0x95')]&&(await this[_0x2524('0xf1')](this[_0x2524('0xa3')]),this[_0x2524('0xe1')]['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this[_0x2524('0xa3')][_0x2524('0x4a')],'authors':this['currentRevision'][_0x2524('0x3')][_0x2524('0x107')]()});}async[_0x2524('0x63')](_0x25ac39={},_0x4e9200=null){const _0x22aead=[];await this[_0x2524('0x70')](),this[_0x2524('0x32')]=!0x1,_0x4e9200>this['currentRevision']['toVersion']&&(_0x4e9200=null),null===_0x4e9200&&(_0x4e9200=await this[_0x2524('0xa')]['getLatestVersion']());const _0x2f1ad4=this[_0x2524('0x9')](_0x4e9200),_0x189aad=this[_0x2524('0x2d')]({'from':_0x2f1ad4,'to':_0x4e9200});if(this['currentRevision'][_0x2524('0x6c')]<_0x4e9200){const _0x548174=this[_0x2524('0x2d')]({'revision':this[_0x2524('0xa3')],'from':_0x4e9200,'to':_0x4e9200});_0x548174[_0x2524('0x3')]=[],_0x548174['authorsIds']=[],_0x548174['id']=this['currentRevision']['id'],this['currentRevision'][_0x2524('0xa4')](_0x548174,!0x0),delete _0x548174['authors'],_0x22aead[_0x2524('0xba')](_0x548174);}_0x25ac39[_0x2524('0x2c')]=this['editor'][_0x2524('0x77')][_0x2524('0xf4')](_0x2524('0x4b'))['me']['id'],_0x25ac39[_0x2524('0xff')]=_0x25ac39[_0x2524('0xff')]||null,_0x25ac39['id']=_0x25ac39['id']||_0x5d90ce(),_0x25ac39={..._0x25ac39,..._0x189aad};const _0x55b21a=this[_0x2524('0x39')](_0x25ac39);_0x22aead[_0x2524('0xba')](_0x25ac39);const _0x2c6bf2=this[_0x2524('0x103')][_0x2524('0x17')](_0x55b21a);if(0x0!==_0x2c6bf2){const _0x452957=this[_0x2524('0x103')]['getRevision'](_0x2c6bf2-0x1);if(_0x452957[_0x2524('0x4a')]!==_0x4e9200){const _0x981ff0=this[_0x2524('0xe1')]['getData'](_0x4e9200,_0x452957[_0x2524('0x6c')]),_0x171d9b={'id':_0x452957['id'],'diffData':_0x981ff0[_0x2524('0x23')],'authorsIds':_0x981ff0[_0x2524('0x6e')],'authors':_0x981ff0[_0x2524('0x6e')]['map'](_0x38b1e4=>this[_0x2524('0xbc')]['plugins']['get'](_0x2524('0x4b'))['getUser'](_0x38b1e4)),'fromVersion':_0x4e9200};_0x452957===this[_0x2524('0xa3')]&&(_0x171d9b[_0x2524('0x86')]=new Date(_0x25ac39[_0x2524('0x86')][_0x2524('0xf5')]()+0xa)),_0x452957[_0x2524('0xa4')](_0x171d9b,!0x0),delete _0x171d9b[_0x2524('0x3')],_0x22aead[_0x2524('0xba')](_0x171d9b);}}if(this['adapter']){for(const _0x41ab7d of _0x22aead)this['_bufferUpdate'](_0x41ab7d['id'],_0x41ab7d,!0x0);this[_0x2524('0x3f')]();}return _0x55b21a;}[_0x2524('0x39')](_0x1eb829){const _0x155b94=this[_0x2524('0x103')][_0x2524('0x44')](_0x1eb829);return this[_0x2524('0x53')]&&_0x155b94['on'](_0x2524('0xa4'),(_0x336525,_0x4bd86f,_0x4fc000)=>{_0x4fc000||(this[_0x2524('0x7b')](_0x4bd86f['id'],_0x4bd86f,!0x0),this['sendBufferedUpdates']());}),this['repository'][_0x2524('0xa7')](_0x155b94,this[_0x2524('0x5f')](_0x155b94)),_0x155b94;}async['getRevisionDocumentData'](_0x3b49ad){await this['_loadRevisionData'](_0x3b49ad);const _0x3c2d99={};for(const _0x3da094 in _0x3b49ad[_0x2524('0x23')]){if(_0x3b49ad[_0x2524('0x23')][_0x3da094]['attachChange']&&!_0x3b49ad[_0x2524('0x23')][_0x3da094][_0x2524('0xf7')][_0x2524('0xcd')])continue;const _0x1e8e31=this[_0x2524('0xa9')](JSON[_0x2524('0x3d')](_0x3b49ad[_0x2524('0x23')][_0x3da094][_0x2524('0xda')])),_0x647e3b=this[_0x2524('0xbc')][_0x2524('0xdd')][_0x2524('0xd9')]['document'],_0x35e996=new _0x17d6fe(_0x647e3b,_0x1e8e31['map'](_0xcdd335=>T(_0xcdd335,this[_0x2524('0xbc')])));this[_0x2524('0xbc')][_0x2524('0xef')][_0x2524('0x1c')][_0x2524('0x81')]('marked'),_0x3c2d99[_0x3da094]=this[_0x2524('0xbc')][_0x2524('0xef')][_0x2524('0x1c')][_0x2524('0x84')](_0x35e996),this[_0x2524('0xbc')][_0x2524('0xef')][_0x2524('0x1c')][_0x2524('0x81')](_0x2524('0xe3'));}return _0x3c2d99;}async['getRevisionRootsAttributes'](_0x4174be){await this[_0x2524('0xf1')](_0x4174be);const _0x354315={};for(const _0x589a03 in _0x4174be['diffData'])_0x4174be['diffData'][_0x589a03]['attachChange']&&!_0x4174be[_0x2524('0x23')][_0x589a03][_0x2524('0xf7')][_0x2524('0xcd')]||(_0x354315[_0x589a03]=_0x4174be[_0x2524('0x23')][_0x589a03]['attributesAfter']||{});return _0x354315;}[_0x2524('0x3f')](){if(0x0===this[_0x2524('0x71')]['size'])return;if(this[_0x2524('0x2e')])return;let _0x153715=Array[_0x2524('0x106')](this[_0x2524('0x71')][_0x2524('0x5e')]());this[_0x2524('0x71')][_0x2524('0x93')]();for(let _0x4d80de=0x0;_0x4d80de<_0x153715[_0x2524('0x54')];_0x4d80de++){const _0x165dba=_0x153715[_0x4d80de];let _0x49bb5e=!0x1;for(const _0x353293 of Object[_0x2524('0x14')](_0x165dba))void 0x0===_0x165dba[_0x353293]?delete _0x165dba[_0x353293]:'id'!==_0x353293&&(_0x49bb5e=!0x0);_0x49bb5e||(_0x153715[_0x4d80de]=null);}if(_0x153715=_0x153715[_0x2524('0x7e')](_0x31431a=>null!==_0x31431a),!_0x153715[_0x2524('0x54')])return;for(let _0x2b44bb=0x0;_0x2b44bb<_0x153715[_0x2524('0x54')];_0x2b44bb++){const _0x4afea1=_0x153715[_0x2b44bb];void 0x0!==_0x4afea1[_0x2524('0x4a')]&&void 0x0===_0x4afea1['toVersion']&&(_0x4afea1['toVersion']=this[_0x2524('0x103')]['getRevision'](_0x4afea1['id'])[_0x2524('0x6c')]),void 0x0!==_0x4afea1[_0x2524('0x6c')]&&void 0x0===_0x4afea1[_0x2524('0x4a')]&&(_0x4afea1[_0x2524('0x4a')]=this[_0x2524('0x103')][_0x2524('0xb9')](_0x4afea1['id'])[_0x2524('0x4a')]);}const _0x3d3eea=this[_0x2524('0xbc')][_0x2524('0x96')][_0x2524('0xf4')](_0x2524('0xe4'));this[_0x2524('0x2e')]=!0x0,this[_0x2524('0xad')](),this['adapter'][_0x2524('0x85')](_0x153715,_0x3d3eea)['finally'](()=>{this[_0x2524('0x2e')]=!0x1;})[_0x2524('0x37')](_0x202644=>{if(_0x202644)for(const _0x37b765 of _0x202644)this['setRevisionData']({'id':_0x37b765['id'],'createdAt':_0x37b765[_0x2524('0x86')]});this[_0x2524('0x21')](),this[_0x2524('0x3f')]();});}[_0x2524('0xdf')](_0x1fc2d2,_0x1898ea){let _0x2c8cd3=this[_0x2524('0xbc')][_0x2524('0x96')]['get'](_0x2524('0xfc')),_0x56dc66=this[_0x2524('0xbc')][_0x2524('0x96')][_0x2524('0xf4')](_0x2524('0xbe'));if(void 0x0===_0x2c8cd3){_0x2c8cd3={};for(const _0x858615 of this[_0x2524('0xbc')]['model'][_0x2524('0x5d')][_0x2524('0x9e')]())_0x2c8cd3[_0x858615]='';}if(_0x2524('0x98')==typeof _0x2c8cd3&&(_0x2c8cd3={'main':_0x2c8cd3}),void 0x0===_0x56dc66){_0x56dc66={};for(const _0x2a6747 of this['editor'][_0x2524('0x65')][_0x2524('0x5d')][_0x2524('0x9e')]())_0x56dc66[_0x2a6747]={};}let _0x5322a6=!0x1;const _0xb85d6b=Object[_0x2524('0x14')](_0x2c8cd3),_0x3fee60=Object[_0x2524('0x14')](_0x1fc2d2);for(const _0x28401e of _0xb85d6b){if(_0x2c8cd3[_0x28401e]!==_0x1fc2d2[_0x28401e]&&''!==_0x2c8cd3[_0x28401e][_0x2524('0x15')]()){_0x5322a6=!0x0;break;}if(!_0x587449(_0x56dc66[_0x28401e],_0x1898ea[_0x28401e])&&Object['keys'](_0x56dc66[_0x28401e])[_0x2524('0x54')]>0x0){_0x5322a6=!0x0;break;}}_0x5322a6||(_0x5322a6=_0x3fee60['some'](_0x2d4137=>!_0xb85d6b[_0x2524('0x29')](_0x2d4137))),_0x5322a6&&_0x557e88(_0x2524('0xed'),{'editorData':_0x2c8cd3,'editorRootsAttributes':_0x56dc66,'revisionData':_0x1fc2d2,'revisionRootsAttributes':_0x1898ea}),this[_0x2524('0xbc')]['config'][_0x2524('0x9a')](_0x2524('0xfc'),_0x1fc2d2),this[_0x2524('0xbc')]['config'][_0x2524('0x9a')]('rootsAttributes',_0x1898ea);}[_0x2524('0xad')](){if(!this[_0x2524('0x89')]){const _0x4f4b7f=this[_0x2524('0xbc')][_0x2524('0x77')][_0x2524('0xf4')](_0x2524('0xcb'));this['_pendingAction']=_0x4f4b7f[_0x2524('0x94')](_0x10f8b9(this[_0x2524('0xbc')][_0x2524('0xcf')],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this[_0x2524('0x89')]&&(this['editor']['plugins'][_0x2524('0xf4')](_0x2524('0xcb'))[_0x2524('0xc7')](this['_pendingAction']),this[_0x2524('0x89')]=null);}['_findInsertionIndex'](_0x131f37){const _0x388fc7=this[_0x2524('0x103')][_0x2524('0x41')]();_0x388fc7[_0x2524('0xa8')]();let _0x416d4c=0x0;for(;_0x416d4c<_0x388fc7[_0x2524('0x54')];){const _0x4e0ac0=_0x388fc7[_0x416d4c];if(_0x4e0ac0===this[_0x2524('0xa3')]){_0x416d4c++;continue;}if(_0x4e0ac0['id']===this[_0x2524('0x80')])break;const _0x282b35=_0x131f37[_0x2524('0x6c')]-_0x4e0ac0[_0x2524('0x6c')]||_0x131f37['fromVersion']-_0x4e0ac0[_0x2524('0x4a')];if(_0x282b35>0x0)break;if(_0x282b35<0x0)_0x416d4c++;else{if(!_0x131f37[_0x2524('0x8')]&&_0x4e0ac0['creator'])break;if(_0x4e0ac0[_0x2524('0x8')]||!_0x131f37[_0x2524('0x8')]){if(_0x131f37[_0x2524('0x86')]>_0x4e0ac0[_0x2524('0x86')])break;_0x416d4c++;}else _0x416d4c++;}}return _0x416d4c;}['setRevisionData'](_0x3ecf5b){const _0x17166e=this['repository'][_0x2524('0xb9')](_0x3ecf5b['id']);if(_0x3ecf5b[_0x2524('0x86')]&&(_0x3ecf5b[_0x2524('0x86')]=new Date(_0x3ecf5b[_0x2524('0x86')])),_0x3ecf5b[_0x2524('0x6e')]){const _0x23e1e0=this['editor']['plugins']['get']('Users');_0x3ecf5b['authors']=_0x3ecf5b[_0x2524('0x6e')]['map'](_0x737cc7=>_0x23e1e0[_0x2524('0x33')](_0x737cc7));}_0x17166e[_0x2524('0xa4')](_0x3ecf5b,!0x0);}[_0x2524('0x2d')]({revision:_0x4d745f=null,from:_0x3d6f2a=null,to:_0x2976ef=null}){_0x3d6f2a=null!==_0x3d6f2a?_0x3d6f2a:_0x4d745f['fromVersion'],_0x2976ef=null!==_0x2976ef?_0x2976ef:_0x4d745f['toVersion'];const _0x118548=this[_0x2524('0xe1')][_0x2524('0x6a')](_0x3d6f2a,_0x2976ef),_0xccb279={'diffData':_0x118548['diffData'],'authorsIds':_0x118548[_0x2524('0x6e')],'fromVersion':_0x3d6f2a,'toVersion':_0x2976ef};if(!_0x4d745f||_0x2976ef!==_0x4d745f[_0x2524('0x6c')]){const _0x314076=_0x2976ef-0x1,_0x14a141=this[_0x2524('0xa')][_0x2524('0x27')]['getOperation'](_0x314076);_0xccb279[_0x2524('0x86')]=_0x14a141&&_0x14a141[_0x2524('0x86')]||new Date();}if(this[_0x2524('0x95')]&&_0x3d6f2a===this[_0x2524('0x95')][_0x2524('0x4a')])for(const _0xd0a30b of this['_loadedStateData']['authors'])_0xccb279[_0x2524('0x6e')][_0x2524('0x29')](_0xd0a30b['id'])||_0xccb279[_0x2524('0x6e')][_0x2524('0xba')](_0xd0a30b['id']);return _0xccb279;}[_0x2524('0xf1')](_0x1dded7){if(!_0x1dded7||_0x1dded7[_0x2524('0x23')])return Promise[_0x2524('0xc1')]();{const _0x547fde=this[_0x2524('0xbc')][_0x2524('0x96')]['get'](_0x2524('0xe4'));return this[_0x2524('0x53')]['getRevision']({'channelId':_0x547fde,'revisionId':_0x1dded7['id']})['then'](_0x1c745e=>{_0x1dded7[_0x2524('0x23')]=_0x1c745e['diffData'];});}}[_0x2524('0x7b')](_0x33e5e3,_0x20b5ab,_0x1d4865){if(this[_0x2524('0x71')][_0x2524('0x92')](_0x33e5e3)){const _0x1ef5c5=this[_0x2524('0x71')]['get'](_0x33e5e3);_0x20b5ab=_0x1d4865?{..._0x1ef5c5,..._0x20b5ab}:{..._0x20b5ab,..._0x1ef5c5};}this['_bufferedUpdates'][_0x2524('0x9a')](_0x33e5e3,_0x20b5ab);}['_getFromVersion'](_0x1067e5){const _0x355571=this[_0x2524('0x103')][_0x2524('0x41')]();_0x355571[_0x2524('0xa8')](),_0x355571['shift']();const _0x48ae8f=_0x355571['find'](_0x26cce3=>_0x26cce3[_0x2524('0x6c')]<=_0x1067e5)[_0x2524('0x6c')];return _0x48ae8f<this[_0x2524('0xae')]?this['_startingVersion']:_0x48ae8f;}['_createInitialRevision'](_0x380383){const _0x772f37=this[_0x2524('0x103')][_0x2524('0xb9')](this['repository'][_0x2524('0x54')]-0x1);if(_0x772f37)this['_initialRevisionId']=_0x772f37['id'];else{const _0x154e3c=!this['editor'][_0x2524('0x65')]['document'][_0x2524('0xb3')][_0x2524('0xb')](_0x5f47fb=>this[_0x2524('0xbc')]['model'][_0x2524('0x73')](_0x5f47fb)),_0x5cbff1=this[_0x2524('0xbc')][_0x2524('0x77')][_0x2524('0xf4')]('Users')['me']['id'],_0x4c870c=_0x10f8b9(this[_0x2524('0xbc')]['locale'],_0x154e3c?_0x2524('0xb2'):_0x2524('0x8b'));this[_0x2524('0x82')]({'from':_0x380383,'to':_0x380383,'id':this[_0x2524('0x80')],'name':_0x4c870c,'creatorId':_0x5cbff1});}}['_createCurrentRevision'](_0x3ba91d){const _0x16d4a4=this[_0x2524('0xa')][_0x2524('0x34')]();this['currentRevision']=this[_0x2524('0x103')][_0x2524('0xb9')](_0x16d4a4),this[_0x2524('0xa3')]||(this['currentRevision']=this[_0x2524('0x82')]({'from':_0x3ba91d,'to':_0x3ba91d,'id':_0x16d4a4,'name':'','creatorId':null}));}[_0x2524('0x82')]({name:_0x1cd463,from:_0x39f36a,to:_0x28eefb,creatorId:_0xe7483d,id:_0x32ff56}){const _0x1bcd82=this['buildRevisionData']({'from':_0x39f36a,'to':_0x28eefb});_0x1bcd82[_0x2524('0xff')]=_0x1cd463,_0x1bcd82['creatorId']=_0xe7483d,_0x1bcd82['id']=_0x32ff56;const _0x15c1ff=this[_0x2524('0x39')](_0x1bcd82);return this['adapter']&&this[_0x2524('0x7b')](_0x1bcd82['id'],_0x1bcd82,!0x0),_0x15c1ff;}['_setConversion'](){this[_0x2524('0xbc')][_0x2524('0x69')][_0x2524('0x8a')]('dataDowncast')['markerToData']({'model':'revision'});}[_0x2524('0xa9')](_0x45f452){return(_0x45f452=_0x45f452[_0x2524('0x7e')](_0x182242=>!_0x182242['name']||_0x2524('0xac')!==_0x182242[_0x2524('0xff')]&&'revision-end'!==_0x182242['name']))[_0x2524('0x59')](_0x1ef0b7=>{_0x2524('0x98')!=typeof _0x1ef0b7&&(_0x1ef0b7['children']=this[_0x2524('0xa9')](_0x1ef0b7[_0x2524('0xe5')]),_0x1ef0b7[_0x2524('0x66')]=_0x1ef0b7[_0x2524('0x66')][_0x2524('0x7e')](_0x12da29=>!_0x12da29[0x0][_0x2524('0xa2')](_0x2524('0x6f'))));}),_0x45f452;}}function T(_0x4b1d09,_0x53742c){const _0x500a98=_0x53742c[_0x2524('0xdd')][_0x2524('0xd9')][_0x2524('0x5d')];if('string'==typeof _0x4b1d09)return new _0x499567(_0x500a98,_0x4b1d09);{const _0x111158=_0x4b1d09[_0x2524('0xe5')][_0x2524('0xca')](_0x1fc81e=>T(_0x1fc81e,_0x53742c));return new(F[_0x4b1d09[(_0x2524('0x91'))]]||_0x4babdd)(_0x500a98,_0x4b1d09[_0x2524('0xff')],_0x4b1d09[_0x2524('0x66')],_0x111158);}}class B{constructor(_0x1410c3){this[_0x2524('0xbc')]=_0x1410c3,this[_0x2524('0x4e')]=new Map(),this[_0x2524('0x3b')]=-0x1,this['_lastTo']=-0x1,this[_0x2524('0x90')]=new Map(),this[_0x2524('0x8d')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x2524('0xb8')]=new Map(),this[_0x2524('0x67')]=new Map(),this[_0x2524('0x99')]=new Map(),this[_0x2524('0xd8')]=new Map(),this[_0x2524('0x25')]=new Map(),this[_0x2524('0x61')]=new Map(),this[_0x2524('0x2')]=new Map(),this[_0x2524('0xc2')]=0x1,this[_0x2524('0x9b')]=this['editor'][_0x2524('0x65')]['document']['getRootNames'](),this[_0x2524('0x9b')]['push'](_0x2524('0x30'));}[_0x2524('0x62')](_0x57e4c6){this[_0x2524('0x79')]=_0x57e4c6;const _0x4202ab=new Map(),_0x512f02=new Map(),_0x13d73a=this[_0x2524('0xbc')][_0x2524('0x65')][_0x2524('0x5d')]['getRootNames'](!0x0);_0x13d73a[_0x2524('0xba')](_0x2524('0x30'));for(const _0x1c7041 of _0x13d73a){const _0x5eba14=this[_0x2524('0xbc')]['model'][_0x2524('0x5d')][_0x2524('0x1')](_0x1c7041),_0x56adb8=J(_0x5eba14);_0x4202ab[_0x2524('0x9a')](_0x1c7041,_0x56adb8),_0x512f02['set'](_0x1c7041,Object[_0x2524('0x55')](_0x5eba14[_0x2524('0x56')]()));}const _0x38e4a1=Array['from'](this[_0x2524('0xbc')]['model'][_0x2524('0x13')])[_0x2524('0xca')](_0x46f9e7=>[_0x46f9e7['name'],_0x46f9e7[_0x2524('0x4')]()]),_0x413614=this['source']['version'];this[_0x2524('0x52')](_0x413614,_0x4202ab,_0x38e4a1,_0x512f02),this[_0x2524('0x7')]=this[_0x2524('0xc2')];const _0x3bfb9b=new Map(),_0x24184e=new Map();for(const _0x46845c of this[_0x2524('0x9b')]){const _0x15df01=H(_0x46845c);_0x3bfb9b[_0x2524('0x9a')](_0x46845c,_0x15df01),_0x24184e['set'](_0x46845c,{});}this[_0x2524('0x52')](Number[_0x2524('0xa1')],_0x3bfb9b,[],_0x24184e);}['getData'](_0xfc80e1,_0x19c703){if(this[_0x2524('0x3b')]===_0xfc80e1&&this[_0x2524('0x26')]<=_0x19c703)this[_0x2524('0x4e')][_0x2524('0xcc')]>0x1&&this[_0x2524('0x68')](this[_0x2524('0x26')]),this[_0x2524('0x58')](this[_0x2524('0x26')],_0x19c703,!0x0);else{if(!this[_0x2524('0x4e')][_0x2524('0x92')](_0xfc80e1)){const _0x466fb0=this[_0x2524('0x4c')](_0xfc80e1);this[_0x2524('0xb0')](_0x466fb0,_0xfc80e1,!0x1);}this['_calculateMetaData'](_0xfc80e1,_0x19c703,!0x0);}return this['_lastFrom']=_0xfc80e1,this[_0x2524('0x26')]=_0x19c703,this[_0x2524('0x16')]();}['loadState'](_0x540af){this[_0x2524('0xfe')](),this[_0x2524('0x3b')]=_0x540af['fromVersion'],this[_0x2524('0x26')]=_0x540af[_0x2524('0x6c')];for(const _0x1e119c in _0x540af[_0x2524('0x23')]){const _0x215f53=_0x540af[_0x2524('0x23')][_0x1e119c]['attachChange'],_0x3082ac=_0x3cb004(_0x540af[_0x2524('0x23')][_0x1e119c][_0x2524('0xa5')])||{},_0x57f36d=this[_0x2524('0x87')](_0x540af[_0x2524('0x23')][_0x1e119c]['deletions']);_0x57f36d[_0x2524('0xb5')]=_0x1e119c,_0x57f36d[_0x2524('0x7a')]=!_0x215f53||!_0x215f53[_0x2524('0xcd')],_0x57f36d[_0x2524('0xcd')]=()=>_0x57f36d['_isAttached'],this[_0x2524('0xb8')][_0x2524('0x9a')](_0x1e119c,_0x57f36d),this[_0x2524('0x67')][_0x2524('0x9a')](_0x1e119c,_0x3082ac),_0x215f53&&this[_0x2524('0x2')]['set'](_0x1e119c,_0x215f53);const _0x3a8002=this['_makeIdsRoot'](_0x57f36d);this[_0x2524('0xd8')][_0x2524('0x9a')](_0x1e119c,_0x3a8002);for(const [_0x2870c8,_0x7e9e5f]of _0x57f36d[_0x2524('0x13')]){if(!_0x2870c8[_0x2524('0xa2')]('revision:'))continue;const _0x2f93d2=_0x2870c8['split'](':')[0x2];for(const _0xe4eb9f of _0x7e9e5f[_0x2524('0x97')]({'singleCharacters':!0x0})){const _0x5edd1b=this['_getVidAttributeName'](_0xe4eb9f),_0x5e41ac=_0x2524('0x5')==_0xe4eb9f[_0x2524('0x91')]?_0xe4eb9f[_0x2524('0xe0')][_0x2524('0x43')][_0x2524('0x107')](0x0,-0x1):_0xe4eb9f[_0x2524('0xe0')][_0x2524('0x43')],_0x30e9b7=_0x3a8002[_0x2524('0x18')](_0x5e41ac)['getAttribute'](_0x5edd1b);this[_0x2524('0x25')][_0x2524('0x9a')](_0x30e9b7,{'userId':_0x2f93d2});}}}this[_0x2524('0x7')]=this[_0x2524('0xc2')];const _0x1a9751=[...Array(this['_revisionId'])['keys']()][_0x2524('0x107')](0x1)[_0x2524('0x7e')](_0x51ff42=>!this[_0x2524('0x25')][_0x2524('0x92')](_0x51ff42));let _0x1b4dc7=0x0;const _0x14e44a=new Map();for(const _0x5c0725 in _0x540af[_0x2524('0x23')]){const _0x527154=_0x540af[_0x2524('0x23')][_0x5c0725][_0x2524('0xf7')],_0x40a4a3=_0x3cb004(_0x540af[_0x2524('0x23')][_0x5c0725][_0x2524('0x8f')])||{},_0x368fba=this[_0x2524('0x87')](_0x540af[_0x2524('0x23')][_0x5c0725][_0x2524('0xda')]);_0x368fba['rootName']=_0x5c0725,_0x368fba[_0x2524('0x7a')]=!_0x527154||_0x527154['isAttached'],_0x368fba[_0x2524('0xcd')]=()=>_0x368fba[_0x2524('0x7a')],this[_0x2524('0x8d')][_0x2524('0x9a')](_0x5c0725,_0x368fba),this[_0x2524('0x10')][_0x2524('0x9a')](_0x5c0725,_0x40a4a3);const _0x5b2579=this[_0x2524('0xe7')](_0x368fba,Number['NEGATIVE_INFINITY']);this[_0x2524('0x99')]['set'](_0x5c0725,_0x5b2579),_0x14e44a[_0x2524('0x9a')](_0x5c0725,_0x368fba[_0x2524('0xcd')]()?_0x40a4a3:{});for(const [_0x6507a4,_0x304c10]of _0x368fba['markers']){if(!_0x6507a4[_0x2524('0xa2')](_0x2524('0xd2')))continue;const _0x1d6be0=_0x6507a4[_0x2524('0x40')](':')[0x2];for(const _0x2e3d59 of _0x304c10[_0x2524('0x97')]({'singleCharacters':!0x0})){const _0x2a794d=this[_0x2524('0xd7')](_0x2e3d59),_0x573aae=this[_0x2524('0xc2')]++,_0x835e20='elementEnd'==_0x2e3d59['type']?_0x2e3d59[_0x2524('0xe0')][_0x2524('0x43')][_0x2524('0x107')](0x0,-0x1):_0x2e3d59[_0x2524('0xe0')][_0x2524('0x43')];_0x5b2579[_0x2524('0x18')](_0x835e20)[_0x2524('0xaf')](_0x2a794d,_0x573aae),this['_touched'][_0x2524('0x9a')](_0x573aae,{'userId':_0x1d6be0});}}for(const _0x279d58 of this['editor'][_0x2524('0x65')]['createRangeIn'](_0x368fba)['getWalker']({'singleCharacters':!0x0})){const _0x250133=this[_0x2524('0xd7')](_0x279d58),_0x82ef72='elementEnd'==_0x279d58[_0x2524('0x91')]?_0x279d58[_0x2524('0xe0')]['path'][_0x2524('0x107')](0x0,-0x1):_0x279d58[_0x2524('0xe0')]['path'],_0x556ad1=_0x5b2579[_0x2524('0x18')](_0x82ef72);_0x556ad1[_0x2524('0x88')](_0x250133)>0x0||_0x556ad1[_0x2524('0xaf')](_0x250133,_0x1a9751[_0x1b4dc7++]);}for(const [_0x9044d0,_0x4b442b]of _0x368fba['markers'])_0x9044d0['startsWith']('revision:')||this['_markers'][_0x2524('0x9a')](_0x9044d0,_0x4b442b);}const _0x4178e2=H(_0x2524('0x30'));this[_0x2524('0xb8')][_0x2524('0x9a')](_0x2524('0x30'),_0x4178e2),this[_0x2524('0xd8')][_0x2524('0x9a')]('$graveyard',this[_0x2524('0xe7')](_0x4178e2,0x1));const _0x134203=H('$graveyard');this[_0x2524('0x8d')][_0x2524('0x9a')]('$graveyard',_0x134203),this[_0x2524('0x99')][_0x2524('0x9a')](_0x2524('0x30'),this['_makeIdsRoot'](_0x134203,0x1));const _0x5e458a=Array['from'](this[_0x2524('0x8d')])['map'](([_0x13ffb2,_0x49b0ee])=>[_0x13ffb2,J(_0x49b0ee)]);this[_0x2524('0x52')](this[_0x2524('0x26')],_0x5e458a,this['_markers'],_0x14e44a);}['_makeModelFromViewString'](_0x54e792){const _0x481338=JSON[_0x2524('0x3d')](_0x54e792),_0x4f6768=this['editor'][_0x2524('0xdd')][_0x2524('0xd9')][_0x2524('0x5d')],_0x143c92=new _0x17d6fe(_0x4f6768,_0x481338['map'](_0x6b471e=>T(_0x6b471e,this['editor'])));return this['editor'][_0x2524('0xef')]['toModel'](_0x143c92);}[_0x2524('0x52')](_0x502f16,_0x1968f6,_0x24d579,_0x2cd6d2){const _0x407bee=new Map(_0x1968f6),_0x806491=new Map(_0x3cb004(_0x2cd6d2)),_0x18ec7f=new Map();for(const [_0x43c645,_0xb7a20c]of _0x24d579)_0x18ec7f[_0x2524('0x9a')](_0x43c645,{'start':_0xb7a20c[_0x2524('0x1f')][_0x2524('0x6')](),'end':_0xb7a20c['end'][_0x2524('0x6')](),'rootName':_0xb7a20c[_0x2524('0xfa')][_0x2524('0xb5')]});this[_0x2524('0x4e')]['set'](_0x502f16,{'roots':_0x407bee,'markers':_0x18ec7f,'rootsAttributes':_0x806491});}[_0x2524('0x68')](_0x22b955){this[_0x2524('0x4e')][_0x2524('0x19')](_0x22b955);}[_0x2524('0xea')](){this[_0x2524('0xfe')](),this[_0x2524('0x3b')]=-0x1,this[_0x2524('0x26')]=-0x1,this[_0x2524('0x4e')]['clear'](),this[_0x2524('0x62')](this['source']);}[_0x2524('0xfe')](){this[_0x2524('0x25')][_0x2524('0x93')](),this['_touchedMarkers']['clear'](),this[_0x2524('0x2')][_0x2524('0x93')](),this['_diffRoots'][_0x2524('0x93')](),this[_0x2524('0x10')][_0x2524('0x93')](),this['_baseRoots'][_0x2524('0x93')](),this[_0x2524('0x67')][_0x2524('0x93')](),this[_0x2524('0x99')][_0x2524('0x93')](),this[_0x2524('0xd8')][_0x2524('0x93')](),this['_markers'][_0x2524('0x93')](),this[_0x2524('0xc2')]=0x1,this['_startingRevisionId']=this['_revisionId'];}[_0x2524('0xe7')](_0x367ea6,_0xab2ebf=null){let _0x6fcfce=null;_0x367ea6['is']('documentFragment')||(_0x6fcfce=new _0x552bef(_0x367ea6[_0x2524('0xff')],{'vid_start':null===_0xab2ebf?this['_revisionId']++:_0xab2ebf++}));const _0x3560bb=[];for(const _0x107b4a of _0x367ea6[_0x2524('0x57')]())if(_0x107b4a['is'](_0x2524('0xde'))){_0x3560bb[_0x2524('0xba')](this[_0x2524('0xe7')](_0x107b4a,_0xab2ebf));const _0x550864=_0x3560bb[_0x3560bb['length']-0x1];null!==_0xab2ebf&&(_0xab2ebf=_0x550864['is'](_0x2524('0xde'),_0x2524('0xf3'))?_0x550864[_0x2524('0x88')]('vid')+0x1:_0x550864['getAttribute'](_0x2524('0x76'))+0x1);}else for(let _0x1573a5=0x0;_0x1573a5<_0x107b4a[_0x2524('0x3e')];_0x1573a5++)_0x3560bb[_0x2524('0xba')](new _0x552bef(_0x2524('0xf3'),{'vid':null===_0xab2ebf?this[_0x2524('0xc2')]++:_0xab2ebf++}));if(_0x367ea6['is'](_0x2524('0xaa'))){const _0x554715=H(_0x367ea6[_0x2524('0xb5')]);return _0x554715['_insertChild'](0x0,_0x3560bb),_0x554715;}return _0x6fcfce[_0x2524('0xaf')](_0x2524('0x76'),null===_0xab2ebf?this[_0x2524('0xc2')]++:_0xab2ebf++),_0x6fcfce['_insertChild'](0x0,_0x3560bb),_0x6fcfce;}[_0x2524('0xb0')](_0x458570,_0x32ce71,_0x42b567){this[_0x2524('0xfe')]();const {roots:_0x26b296,markers:_0x1fd1e6,rootsAttributes:_0x3e99e5}=this['_savedMetaData'][_0x2524('0xf4')](_0x458570);this[_0x2524('0xb8')]=new Map(_0x26b296),this[_0x2524('0x67')]=new Map(_0x3cb004(_0x3e99e5));for(const [_0x1644bc,_0x331ade]of this[_0x2524('0xb8')])if(_0x2524('0x30')!==_0x1644bc&&(this['_diffRoots'][_0x2524('0x9a')](_0x1644bc,J(_0x331ade)),this[_0x2524('0x10')]=new Map(_0x3cb004(_0x3e99e5)),_0x42b567)){const _0x17aca6=this[_0x2524('0xc2')];this[_0x2524('0x99')][_0x2524('0x9a')](_0x1644bc,this[_0x2524('0xe7')](_0x331ade)),this[_0x2524('0xd8')][_0x2524('0x9a')](_0x1644bc,this[_0x2524('0xe7')](_0x331ade,_0x17aca6));}this['_startingRevisionId']=this['_revisionId'],this[_0x2524('0x8d')][_0x2524('0x9a')](_0x2524('0x30'),J(this[_0x2524('0xb8')][_0x2524('0xf4')]('$graveyard'))),_0x42b567&&this['_idsRoots'][_0x2524('0x9a')](_0x2524('0x30'),this[_0x2524('0xe7')](this[_0x2524('0xb8')][_0x2524('0xf4')](_0x2524('0x30'))));for(const [_0x5e4001,_0x3c4c7b]of _0x1fd1e6){const _0x3107a9=this[_0x2524('0xb8')][_0x2524('0xf4')](_0x3c4c7b[_0x2524('0xb5')]),_0x869837=this[_0x2524('0x8d')][_0x2524('0xf4')](_0x3c4c7b[_0x2524('0xb5')]),_0x18d368=new _0x176ec4(this[_0x2524('0x51')](_0x3c4c7b['start'],_0x3107a9),this[_0x2524('0x51')](_0x3c4c7b['end'],_0x3107a9)),_0x217629=this[_0x2524('0xbd')](_0x18d368,_0x869837);_0x3107a9['markers'][_0x2524('0x9a')](_0x5e4001,_0x18d368),this[_0x2524('0x90')][_0x2524('0x9a')](_0x5e4001,_0x217629);}this['_applyOperations'](_0x458570,_0x32ce71,_0x42b567);}[_0x2524('0x58')](_0x5ce5f9,_0x2a293d,_0x4c3f82){for(const _0xd4b478 of this[_0x2524('0x79')]['getOperations'](_0x5ce5f9,_0x2a293d))this[_0x2524('0x60')](_0xd4b478,_0x4c3f82);for(const _0x39eb67 of this[_0x2524('0x8d')][_0x2524('0x5e')]())_0x39eb67['markers'][_0x2524('0x93')]();for(const [_0x11d4b6,_0x198fb9]of this[_0x2524('0x90')]){this[_0x2524('0x8d')][_0x2524('0xf4')](_0x198fb9[_0x2524('0xfa')][_0x2524('0xb5')])[_0x2524('0x13')][_0x2524('0x9a')](_0x11d4b6,_0x198fb9[_0x2524('0x6')]());}const _0x48a48e=new Map(),_0x214ae4=new Map();for(const [_0x1e47d7,_0x458699]of this[_0x2524('0x8d')])_0x48a48e[_0x2524('0x9a')](_0x1e47d7,J(_0x458699)),_0x214ae4['set'](_0x1e47d7,this[_0x2524('0x10')][_0x2524('0xf4')](_0x1e47d7));this[_0x2524('0x52')](_0x2a293d,_0x48a48e,this[_0x2524('0x90')],_0x214ae4);}[_0x2524('0x4c')](_0x8d9bd0){const _0x13524e=Array[_0x2524('0x106')](this[_0x2524('0x4e')][_0x2524('0x14')]());_0x13524e['sort']((_0x3955de,_0x50f877)=>_0x3955de-_0x50f877),_0x13524e[_0x2524('0xa8')]();for(const _0x7e7c6c of _0x13524e)if(_0x7e7c6c<_0x8d9bd0)return _0x7e7c6c;return Number[_0x2524('0xa1')];}[_0x2524('0xd')](_0x24f879,_0xf9bf79){const _0x32f568=Array[_0x2524('0x106')](_0xf9bf79[_0x2524('0x13')])[_0x2524('0xca')](([_0x1bb120,_0x5dbdbc])=>[_0x1bb120,this[_0x2524('0xbd')](_0x5dbdbc,_0x24f879)]);_0x24f879[_0x2524('0x13')]=new Map(_0x32f568);}['_transformMarkers'](_0x521129){for(const _0x19dbda of this['_markers'][_0x2524('0x5e')]()){const _0x50e79c=_0x19dbda[_0x2524('0x5c')](_0x521129),_0x9b5064=_0x176ec4[_0x2524('0xc5')](_0x50e79c);_0x19dbda[_0x2524('0x1f')]=_0x9b5064[_0x2524('0x1f')],_0x19dbda[_0x2524('0xeb')]=_0x9b5064[_0x2524('0xeb')];}}[_0x2524('0x60')](_0x17d84a,_0x558a05){if(_0x2524('0x101')==_0x17d84a[_0x2524('0x91')]||_0x2524('0xbf')==_0x17d84a[_0x2524('0x91')])return void this[_0x2524('0x7d')](_0x17d84a,_0x558a05);if(_0x2524('0x46')==_0x17d84a[_0x2524('0x91')]){const _0x266646=_0x17d84a[_0x2524('0xe8')][_0x2524('0xfa')][_0x2524('0xb5')];this[_0x2524('0x8d')][_0x2524('0x92')](_0x266646)||(this[_0x2524('0x8d')][_0x2524('0x9a')](_0x266646,H(_0x266646,!0x0)),this[_0x2524('0x10')]['set'](_0x266646,{}),_0x558a05&&this[_0x2524('0x99')][_0x2524('0x9a')](_0x266646,H(_0x266646,!0x0)));}if(_0x2524('0xb1')==_0x17d84a[_0x2524('0x91')]||'removeRootAttribute'==_0x17d84a['type']||_0x2524('0x74')==_0x17d84a[_0x2524('0x91')])return void this[_0x2524('0x9d')](_0x17d84a);const _0xbf5d0e=this[_0x2524('0xbb')](_0x17d84a,this[_0x2524('0x8d')]);if('marker'!==_0x17d84a[_0x2524('0x91')]&&(_0xbf5d0e['_execute'](),this[_0x2524('0x8c')](_0xbf5d0e)),_0x558a05)switch(_0xbf5d0e[_0x2524('0x91')]){case _0x2524('0x46'):this['_handleInsertOperation'](_0x17d84a);break;case _0x2524('0x47'):case _0x2524('0xc7'):case'reinsert':this[_0x2524('0x28')](_0x17d84a);break;case _0x2524('0xab'):this[_0x2524('0x11')](_0x17d84a);break;case _0x2524('0x40'):this[_0x2524('0x1d')](_0x17d84a);break;case _0x2524('0x24'):this['_handleMarkerOperation'](_0x17d84a);}}[_0x2524('0xbb')](_0x583a7b,_0x23516c){const _0x5bb335=_0x583a7b['clone']();return _0x5bb335[_0x2524('0xec')]=_0x583a7b[_0x2524('0xec')],this[_0x2524('0x35')](_0x5bb335,_0x23516c),_0x5bb335;}[_0x2524('0x7c')](_0x19761a){return _0x19761a[_0x2524('0xca')](_0x334ab1=>{const _0x4863cd=this[_0x2524('0xd7')](_0x334ab1);return Number(_0x334ab1[_0x2524('0x1a')][_0x2524('0x88')](_0x4863cd));});}[_0x2524('0x64')](_0x10ac24,_0x147dc9){if(_0x10ac24['is'](_0x2524('0xde'),_0x2524('0xf3')))_0x147dc9[_0x2524('0xba')]({'item':_0x10ac24,'type':_0x2524('0x1e')});else{_0x10ac24['is'](_0x2524('0xde'))&&_0x147dc9[_0x2524('0xba')]({'item':_0x10ac24,'type':_0x2524('0xb4')});for(const _0x3c030d of _0x10ac24[_0x2524('0x57')]())this['_generateTape'](_0x3c030d,_0x147dc9);_0x10ac24['is'](_0x2524('0xde'))&&_0x147dc9[_0x2524('0xba')]({'item':_0x10ac24,'type':_0x2524('0x5')});}return _0x147dc9;}[_0x2524('0x16')](){const _0x2a74dc=new Map(this[_0x2524('0x25')]),_0x5b94b7=new Map(_0x2a74dc),_0x4fd5fe=new Map(),_0x1574f8={'insertions':{},'deletions':{}},_0x501743={'insertions':{},'deletions':{}},_0x27ddcb=new Map(),_0x5988a1=new Set([...this[_0x2524('0xb8')][_0x2524('0x14')](),...this[_0x2524('0x8d')][_0x2524('0x14')]()]);_0x5988a1[_0x2524('0x19')]('$graveyard');for(const _0x8673f4 of _0x5988a1){const _0x27bed9=this[_0x2524('0x8d')][_0x2524('0xf4')](_0x8673f4)||H(_0x8673f4,!0x1),_0x19ff99=this[_0x2524('0xb8')][_0x2524('0xf4')](_0x8673f4)||H(_0x8673f4,!0x1);_0x27bed9[_0x2524('0xcd')]()||_0x19ff99[_0x2524('0xcd')]()?(_0x1574f8[_0x2524('0xda')][_0x8673f4]=J(_0x27bed9),_0x1574f8[_0x2524('0x42')][_0x8673f4]=J(_0x19ff99),this[_0x2524('0xd')](_0x1574f8[_0x2524('0x42')][_0x8673f4],_0x19ff99),this[_0x2524('0xd')](_0x1574f8[_0x2524('0xda')][_0x8673f4],_0x27bed9),_0x501743[_0x2524('0xda')][_0x8673f4]=this[_0x2524('0x64')](this[_0x2524('0x99')][_0x2524('0xf4')](_0x8673f4),[]),_0x501743[_0x2524('0x42')][_0x8673f4]=this[_0x2524('0x64')](this[_0x2524('0xd8')][_0x2524('0xf4')](_0x8673f4)||H(_0x8673f4,!0x1),[])):_0x5988a1[_0x2524('0x19')](_0x8673f4);}for(const _0x364426 of _0x5988a1){const _0x47010b=_0x501743['insertions'][_0x364426];for(const _0x341ad4 of _0x47010b){const _0x29ade=this['_getVidAttributeName'](_0x341ad4),_0x5ea636=_0x341ad4[_0x2524('0x1a')]['getAttribute'](_0x29ade);_0x5b94b7['delete'](_0x5ea636),_0x5ea636>=this['_startingRevisionId']&&_0x4fd5fe['set'](_0x5ea636,_0x2a74dc[_0x2524('0xf4')](_0x5ea636));}}for(const _0x3187e0 of _0x5988a1){const _0x15191d=_0x501743['insertions'][_0x3187e0],_0x1c7354=this['_getBaseVids'](_0x501743[_0x2524('0x42')][_0x3187e0]);let _0x16b6c1=0x0;for(const _0x502e42 of _0x15191d){const _0xa95d97=this[_0x2524('0xd7')](_0x502e42),_0x51bd7f=_0x502e42['item'][_0x2524('0x88')](_0xa95d97);if(!_0x4fd5fe['has'](_0x51bd7f)&&!_0x27ddcb[_0x2524('0x92')](_0x51bd7f)){if(_0x5b94b7['has'](_0x51bd7f))_0x16b6c1++;else{if(_0x51bd7f!=_0x1c7354[_0x16b6c1]){const _0xa71695=_0x2a74dc[_0x2524('0xf4')](_0x51bd7f)||_0x2a74dc[_0x2524('0xf4')](_0x1c7354[_0x16b6c1]);for(;_0x51bd7f!=_0x1c7354[_0x16b6c1];)_0x5b94b7[_0x2524('0x92')](_0x1c7354[_0x16b6c1])||(_0x27ddcb[_0x2524('0x9a')](_0x1c7354[_0x16b6c1],_0xa71695),_0x2a74dc['set'](_0x1c7354[_0x16b6c1],_0xa71695)),_0x16b6c1++;}_0x16b6c1++;}}}}for(const _0x5e9ca6 of _0x5988a1){const _0x51e5b3=_0x501743[_0x2524('0xda')][_0x5e9ca6];for(const _0x2d0a8e of _0x51e5b3){const _0x521ba8=this[_0x2524('0xd7')](_0x2d0a8e),_0x26fc32=_0x2d0a8e['item'][_0x2524('0x88')](_0x521ba8);if(_0x27ddcb[_0x2524('0x92')](_0x26fc32)){const _0x2f0fe9=_0x27ddcb['get'](_0x26fc32);_0x5b94b7['has'](_0x26fc32)||_0x5b94b7[_0x2524('0x9a')](_0x26fc32,{..._0x2f0fe9}),_0x4fd5fe[_0x2524('0x9a')](_0x26fc32,{..._0x2f0fe9});}}}for(const _0x771cce of _0x5b94b7[_0x2524('0x14')]())_0x771cce>=this[_0x2524('0x7')]&&_0x5b94b7['delete'](_0x771cce);const _0x4930fa=new Map();for(const _0x2d85db of _0x5988a1){let _0x40d635=_0x501743[_0x2524('0xda')][_0x2d85db];for(const _0x47b401 of _0x40d635)if(_0x47b401[_0x2524('0x1a')]['is']('element',_0x2524('0x12'))){const _0x96d461=this[_0x2524('0xd7')](_0x47b401),_0xe80af1=_0x47b401['item']['getAttribute'](_0x96d461);if(_0x4fd5fe[_0x2524('0x92')](_0xe80af1)){const _0x5eefee=_0x47b401['item']['parent']['parent'][_0x2524('0x88')](_0x2524('0x36')),_0x5651a9=_0x4930fa[_0x2524('0xf4')](_0x5eefee)||new Set();_0x5651a9[_0x2524('0x94')](_0x4fd5fe[_0x2524('0xf4')](_0xe80af1)[_0x2524('0x75')]),_0x4930fa[_0x2524('0x9a')](_0x5eefee,_0x5651a9);}}_0x40d635=_0x501743[_0x2524('0x42')][_0x2d85db];for(const _0x4b205d of _0x40d635)if(_0x4b205d['item']['is'](_0x2524('0xde'),_0x2524('0x12'))){const _0xb25209=this[_0x2524('0xd7')](_0x4b205d),_0x4e2142=_0x4b205d[_0x2524('0x1a')][_0x2524('0x88')](_0xb25209);if(_0x5b94b7['has'](_0x4e2142)){const _0x17ecb6=_0x4b205d[_0x2524('0x1a')][_0x2524('0x105')][_0x2524('0x105')][_0x2524('0x88')](_0x2524('0x36')),_0x4164f6=_0x4930fa[_0x2524('0xf4')](_0x17ecb6)||new Set();_0x4164f6[_0x2524('0x94')](_0x5b94b7['get'](_0x4e2142)['userId']),_0x4930fa['set'](_0x17ecb6,_0x4164f6);}}for(const _0x135367 of _0x4930fa[_0x2524('0x14')]())(_0x4fd5fe['has'](_0x135367)||_0x5b94b7[_0x2524('0x92')](_0x135367))&&_0x4930fa['delete'](_0x135367);}for(const _0x2da72a of _0x5988a1){const _0x7a6a49=_0x501743[_0x2524('0xda')][_0x2da72a];let _0x197881=null,_0x3faea1=null;for(const _0x1bf3f5 of _0x7a6a49){const _0x1098b3=this[_0x2524('0xd7')](_0x1bf3f5),_0xa1dee6=_0x1bf3f5[_0x2524('0x1a')]['getAttribute'](_0x1098b3),_0x3a05f9=_0x4930fa[_0x2524('0xf4')](_0xa1dee6);_0x3a05f9&&_0x2524('0xb4')==_0x1bf3f5[_0x2524('0x91')]&&(_0x197881=Array[_0x2524('0x106')](_0x3a05f9)[0x0],_0x3faea1=_0x1bf3f5[_0x2524('0x1a')][_0x2524('0x88')](_0x2524('0x76'))),_0x197881&&(_0x5b94b7[_0x2524('0x9a')](_0xa1dee6,{'userId':_0x197881}),_0x4fd5fe['set'](_0xa1dee6,{'userId':_0x197881})),_0xa1dee6==_0x3faea1&&(_0x197881=null,_0x3faea1=null);}}const _0x69b7c0={},_0x329a73=new Set();for(const _0x243e26 of _0x5988a1){const _0x52022d=_0x1574f8[_0x2524('0x42')][_0x243e26],_0x5c9ff5=_0x1574f8[_0x2524('0xda')][_0x243e26];for(const {userId:_0x2126ee}of this[_0x2524('0x61')]['values']())null!==_0x2126ee&&_0x329a73['add'](_0x2126ee);for(const {userId:_0x11ed39}of this[_0x2524('0x2')][_0x2524('0x5e')]())null!==_0x11ed39&&_0x329a73[_0x2524('0x94')](_0x11ed39);this['_markChanges'](_0x5c9ff5,_0x501743['insertions'][_0x243e26],_0x4fd5fe,_0x2524('0xe6'),_0x329a73),this[_0x2524('0xc')](_0x52022d,_0x501743[_0x2524('0x42')][_0x243e26],_0x5b94b7,'deletion',_0x329a73),_0x69b7c0[_0x243e26]={'insertions':this[_0x2524('0x78')](_0x5c9ff5),'deletions':this['_prepareViewToSave'](_0x52022d),'attachChange':this[_0x2524('0x2')][_0x2524('0xf4')](_0x243e26)||null,'attributesBefore':_0x3cb004(this['_baseRootsAttributes'][_0x2524('0xf4')](_0x243e26))||{},'attributesAfter':_0x3cb004(this[_0x2524('0x10')][_0x2524('0xf4')](_0x243e26))};}return{'diffData':_0x69b7c0,'authorsIds':Array[_0x2524('0x106')](_0x329a73)};}[_0x2524('0xf0')](_0x39ad84){for(const [,_0x829862]of _0x39ad84[_0x2524('0x13')]){const _0x25bc93=_0x829862[_0x2524('0x1f')][_0x2524('0x100')]()[_0x2524('0x7e')](_0xd9da81=>_0x2524('0x12')==_0xd9da81[_0x2524('0xff')]);for(const _0x2f543a of _0x25bc93)0x1==_0x2f543a[_0x2524('0xd1')]&&_0x2f543a[_0x2524('0xf')](0x0)['is'](_0x2524('0xde'),_0x2524('0x72'))&&_0x2f543a[_0x2524('0xf')](0x0)[_0x2524('0xaf')](_0x2524('0x2f'),!0x0);}}['_prepareViewToSave'](_0x4e0725){this[_0x2524('0xf0')](_0x4e0725);const _0x1d7903=this[_0x2524('0xbc')][_0x2524('0xef')][_0x2524('0xdc')](_0x4e0725,{}),_0x26cf8a=Array[_0x2524('0x106')](_0x1d7903[_0x2524('0x57')]())[_0x2524('0xca')](_0x243f19=>this['_getViewJson'](_0x243f19));return JSON[_0x2524('0x5a')](_0x26cf8a);}[_0x2524('0xa0')](_0x525d15){if(_0x525d15['is'](_0x2524('0xf3')))return _0x525d15[_0x2524('0xef')];{const _0x56245a=_0x525d15;return{'type':Object[_0x2524('0x14')](F)[_0x2524('0xb')](_0x320a01=>_0x525d15 instanceof F[_0x320a01]),'name':_0x56245a[_0x2524('0xff')],'attributes':Array['from'](_0x56245a[_0x2524('0x56')]()),'children':Array[_0x2524('0x106')](_0x56245a[_0x2524('0x57')]())[_0x2524('0xca')](_0x35092b=>this[_0x2524('0xa0')](_0x35092b))};}}['_markChanges'](_0x278bdb,_0x172d6f,_0x35f38b,_0x8f12b6,_0xfdac2f){let _0x278f11=null,_0x632d90=null,_0xed695f=0x0;const _0x39b380=this[_0x2524('0xbc')][_0x2524('0x65')];for(let _0x58a2cc=0x0;_0x58a2cc<_0x172d6f['length'];_0x58a2cc++){const _0x4d4a88=this[_0x2524('0xd7')](_0x172d6f[_0x58a2cc]),_0x484f39=_0x172d6f[_0x58a2cc][_0x2524('0x1a')][_0x2524('0x88')](_0x4d4a88),_0x3b363c=_0x35f38b[_0x2524('0xf4')](_0x484f39),_0x1cd468=_0x58a2cc==_0x172d6f[_0x2524('0x54')]-0x1;(!_0x278f11&&_0x3b363c&&(_0x278f11=_0x3b363c,_0x632d90=_0x172d6f[_0x58a2cc]),_0x278f11&&(!_0x3b363c||_0x3b363c[_0x2524('0x75')]!=_0x278f11[_0x2524('0x75')]))&&(_0x78e84c(_0x3b363c,q(_0x632d90,_0x278bdb,_0x39b380),q(_0x172d6f[_0x58a2cc],_0x278bdb,_0x39b380)),_0x278f11=_0x3b363c||null,_0x632d90=_0x3b363c?_0x172d6f[_0x58a2cc]:null),_0x278f11&&_0x1cd468&&_0x78e84c(_0x3b363c,q(_0x632d90,_0x278bdb,_0x39b380),G(_0x172d6f[_0x58a2cc],_0x278bdb,_0x39b380));}function _0x78e84c(_0x49f279,_0xf4bc6f,_0x5d01bb){const _0x2ae7e4=_0x278f11[_0x2524('0x75')],_0x13744a=_0x2524('0xd2')+_0x8f12b6+':'+_0x2ae7e4+':'+_0xed695f++,_0x3b0d72=_0x39b380['createRange'](_0xf4bc6f,_0x5d01bb);_0x278bdb['markers'][_0x2524('0x9a')](_0x13744a,_0x3b0d72),null!==_0x2ae7e4&&_0xfdac2f[_0x2524('0x94')](_0x2ae7e4);}}[_0x2524('0xd7')](_0x16746a){switch(_0x16746a[_0x2524('0x91')]){case _0x2524('0xb4'):return _0x2524('0x36');case'elementEnd':return'vid_end';default:return _0x2524('0xc3');}}[_0x2524('0x35')](_0x16a99e,_0x4abb6d){_0x16a99e['baseVersion']=null;for(const _0x31d25c in _0x16a99e){const _0x1e8d39=_0x16a99e[_0x31d25c];if(_0x1e8d39 instanceof _0x823d76){const _0x48b38e=_0x4abb6d['get'](_0x1e8d39['root'][_0x2524('0xb5')]);_0x16a99e[_0x31d25c]=this[_0x2524('0x51')](_0x1e8d39,_0x48b38e);}if(_0x1e8d39 instanceof _0x176ec4){const _0xc15852=_0x4abb6d[_0x2524('0xf4')](_0x1e8d39[_0x2524('0xfa')]['rootName']);_0x16a99e[_0x31d25c]=this[_0x2524('0xbd')](_0x1e8d39,_0xc15852);}_0x2524('0xfa')===_0x31d25c&&(_0x16a99e[_0x2524('0xfa')]=_0x4abb6d[_0x2524('0xf4')](_0x16a99e[_0x2524('0xfa')][_0x2524('0xb5')]));}}[_0x2524('0xbd')](_0x1f3ba1,_0x5418ae){return this['editor'][_0x2524('0x65')][_0x2524('0xd5')](this[_0x2524('0x51')](_0x1f3ba1[_0x2524('0x1f')],_0x5418ae),this[_0x2524('0x51')](_0x1f3ba1[_0x2524('0xeb')],_0x5418ae));}[_0x2524('0x51')](_0x2502ec,_0x288a5d){return this[_0x2524('0xbc')][_0x2524('0x65')]['createPositionFromPath'](_0x288a5d,_0x2502ec[_0x2524('0x43')],_0x2502ec[_0x2524('0x2b')]);}['_handleInsertOperation'](_0x5656db){const _0x5efb50=this[_0x2524('0x99')][_0x2524('0xf4')](_0x5656db[_0x2524('0xe8')][_0x2524('0xfa')][_0x2524('0xb5')]),_0x1d1bbe=this['_fixPosition'](_0x5656db['position'],_0x5efb50),_0x55d70c=null===_0x5656db['_authorId']?null:_0x5656db[_0x2524('0xec')]||this[_0x2524('0xbc')][_0x2524('0x77')][_0x2524('0xf4')](_0x2524('0x4b'))['me']['id'],_0x19739b=_0x1d1bbe['parent'],_0x47189a=this['_revisionId'],_0x438c08=[];for(const _0x2c23e7 of _0x5656db['nodes'])if(_0x2c23e7['is'](_0x2524('0xde')))_0x438c08[_0x2524('0xba')](this[_0x2524('0xe7')](_0x2c23e7));else for(let _0x585030=0x0;_0x585030<_0x2c23e7['offsetSize'];_0x585030++)_0x438c08['push'](new _0x552bef('$text',{'vid':this[_0x2524('0xc2')]++}));const _0x265126=this[_0x2524('0xc2')];for(let _0x83c89d=_0x47189a;_0x83c89d<_0x265126;_0x83c89d++)this[_0x2524('0x25')][_0x2524('0x9a')](_0x83c89d,{'userId':_0x55d70c});_0x19739b[_0x2524('0xe9')](_0x1d1bbe[_0x2524('0x8e')],_0x438c08);}[_0x2524('0x28')](_0x49c5bf){(_0x49c5bf=this[_0x2524('0xbb')](_0x49c5bf,this[_0x2524('0x99')]))[_0x2524('0xc4')]();const _0x3b9cfe=null===_0x49c5bf[_0x2524('0xec')]?null:_0x49c5bf[_0x2524('0xec')]||this[_0x2524('0xbc')][_0x2524('0x77')]['get'](_0x2524('0x4b'))['me']['id'],_0x2d62a9=_0x49c5bf[_0x2524('0x104')](),_0x40ab32=_0x2d62a9[_0x2524('0x105')],_0x20d5ec=_0x2d62a9[_0x2524('0x8e')];!function _0x1f26b4(_0x574493,_0x20359c,_0x5581c8,_0x510a91){for(let _0x1b24e3=_0x5581c8;_0x1b24e3<_0x510a91;_0x1b24e3++){const _0x28b3ee=_0x20359c['getChild'](_0x1b24e3);_0x28b3ee['is'](_0x2524('0xde'),_0x2524('0xf3'))?_0x574493[_0x2524('0x9a')](_0x28b3ee[_0x2524('0x88')](_0x2524('0xc3')),{'userId':_0x3b9cfe}):(_0x574493[_0x2524('0x9a')](_0x28b3ee[_0x2524('0x88')](_0x2524('0x36')),{'userId':_0x3b9cfe}),_0x1f26b4(_0x574493,_0x28b3ee,0x0,_0x28b3ee[_0x2524('0xd1')]),_0x574493[_0x2524('0x9a')](_0x28b3ee[_0x2524('0x88')](_0x2524('0x76')),{'userId':_0x3b9cfe}));}}(this[_0x2524('0x25')],_0x40ab32,_0x20d5ec,_0x20d5ec+_0x49c5bf[_0x2524('0x83')]);}[_0x2524('0x11')](_0x2cd13e){const _0x690cc6=null===(_0x2cd13e=this[_0x2524('0xbb')](_0x2cd13e,this[_0x2524('0x99')]))[_0x2524('0xec')]?null:_0x2cd13e[_0x2524('0xec')]||this[_0x2524('0xbc')][_0x2524('0x77')]['get'](_0x2524('0x4b'))['me']['id'],_0x27cf8e=_0x2cd13e[_0x2524('0xe2')]['parent'],_0x5f6178=_0x2cd13e[_0x2524('0xb7')][_0x2524('0x105')],_0x2c24f1=_0x27cf8e[_0x2524('0x88')](_0x2524('0x76')),_0x4939ec=_0x5f6178['getAttribute'](_0x2524('0x36'));_0x27cf8e[_0x2524('0xaf')](_0x2524('0x76'),_0x5f6178[_0x2524('0x88')](_0x2524('0x76'))),_0x5f6178[_0x2524('0xaf')](_0x2524('0x76'),_0x2c24f1),this['_touched']['set'](_0x4939ec,{'userId':_0x690cc6}),this[_0x2524('0x25')]['set'](_0x2c24f1,{'userId':_0x690cc6}),_0x2cd13e['_execute']();}['_handleSplitOperation'](_0x3ebcb5){const _0xf18818=null===(_0x3ebcb5=this['_cloneOperation'](_0x3ebcb5,this[_0x2524('0x99')]))[_0x2524('0xec')]?null:_0x3ebcb5[_0x2524('0xec')]||this[_0x2524('0xbc')]['plugins'][_0x2524('0xf4')]('Users')['me']['id'],_0x4223bd=_0x3ebcb5[_0x2524('0xd3')],_0x40825f=_0x3ebcb5[_0x2524('0x49')][_0x2524('0x105')];_0x3ebcb5[_0x2524('0xc4')]();const _0x26bacb=_0x40825f['getAttribute'](_0x2524('0x76')),_0x1d576b=_0x3ebcb5['insertionPosition'][_0x2524('0xc8')];if(_0x4223bd){const _0x475ade=_0x1d576b[_0x2524('0x88')](_0x2524('0x76')),_0x308b2e=_0x40825f[_0x2524('0x88')]('vid_end');_0x40825f[_0x2524('0xaf')](_0x2524('0x76'),_0x475ade),_0x1d576b[_0x2524('0xaf')](_0x2524('0x76'),_0x308b2e),this[_0x2524('0x25')][_0x2524('0x9a')](_0x40825f['getAttribute'](_0x2524('0x76')),{'userId':_0xf18818}),this[_0x2524('0x25')][_0x2524('0x9a')](_0x1d576b[_0x2524('0x88')]('vid_start'),{'userId':_0xf18818});}else{const _0x155808=this[_0x2524('0xc2')]++,_0x1c429f=this[_0x2524('0xc2')]++;_0x40825f[_0x2524('0xaf')](_0x2524('0x76'),_0x155808),_0x1d576b[_0x2524('0xaf')](_0x2524('0x36'),_0x1c429f),_0x1d576b[_0x2524('0xaf')]('vid_end',_0x26bacb),this[_0x2524('0x25')]['set'](_0x155808,{'userId':_0xf18818}),this[_0x2524('0x25')][_0x2524('0x9a')](_0x1c429f,{'userId':_0xf18818});}}[_0x2524('0x1b')](_0x3715fb){if(!_0x3715fb[_0x2524('0xf6')])return;const _0x374500=(_0x3715fb=this[_0x2524('0xbb')](_0x3715fb,this[_0x2524('0x8d')]))[_0x2524('0x2a')]?_0x3715fb[_0x2524('0x2a')][_0x2524('0xfa')]:null,_0x2cf22e=_0x3715fb[_0x2524('0xfb')]?_0x3715fb[_0x2524('0xfb')][_0x2524('0xfa')]:null;_0x374500&&this['_markers'][_0x2524('0x19')](_0x3715fb[_0x2524('0xff')]),_0x2cf22e&&this[_0x2524('0x90')]['set'](_0x3715fb[_0x2524('0xff')],_0x3715fb[_0x2524('0xfb')][_0x2524('0x6')]());const _0xce3aa2=null===_0x3715fb[_0x2524('0xec')]?null:_0x3715fb[_0x2524('0xec')]||this['editor'][_0x2524('0x77')][_0x2524('0xf4')](_0x2524('0x4b'))['me']['id'],_0x4c78c0=_0x3715fb[_0x2524('0xff')];if(!this['_touchedMarkers']['has'](_0x4c78c0))return void this[_0x2524('0x61')]['set'](_0x4c78c0,{'range':_0x3715fb[_0x2524('0x2a')],'userId':_0xce3aa2});const _0x4728fa=this[_0x2524('0x61')]['get'](_0x4c78c0),_0x5587da=_0x4728fa['range'],_0x52e05c=_0x3715fb[_0x2524('0xfb')];null==_0x5587da&&null==_0x52e05c||_0x5587da&&_0x52e05c&&_0x5587da[_0x2524('0xf9')](_0x52e05c)?this[_0x2524('0x61')]['delete'](_0x3715fb[_0x2524('0xff')]):_0x4728fa[_0x2524('0x75')]=_0xce3aa2;}[_0x2524('0x7d')](_0xe70d1f,_0x1c88c4){this['_diffRoots'][_0x2524('0x92')](_0xe70d1f[_0x2524('0xb5')])?this[_0x2524('0x8d')][_0x2524('0xf4')](_0xe70d1f[_0x2524('0xb5')])[_0x2524('0x7a')]=_0xe70d1f[_0x2524('0x3c')]:(this[_0x2524('0x8d')][_0x2524('0x9a')](_0xe70d1f[_0x2524('0xb5')],H(_0xe70d1f[_0x2524('0xb5')],!0x0)),this[_0x2524('0x10')][_0x2524('0x9a')](_0xe70d1f[_0x2524('0xb5')],{}),_0x1c88c4&&this[_0x2524('0x99')][_0x2524('0x9a')](_0xe70d1f[_0x2524('0xb5')],H(_0xe70d1f[_0x2524('0xb5')],!0x0)));const _0x2d6563=null===_0xe70d1f[_0x2524('0xec')]?null:_0xe70d1f[_0x2524('0xec')]||this[_0x2524('0xbc')][_0x2524('0x77')][_0x2524('0xf4')](_0x2524('0x4b'))['me']['id'],_0x180f91=this[_0x2524('0x2')][_0x2524('0xf4')](_0xe70d1f[_0x2524('0xb5')]);_0x180f91&&_0x180f91['userId']===_0x2d6563?this['_touchedRoots']['delete'](_0xe70d1f[_0x2524('0xb5')]):this[_0x2524('0x2')][_0x2524('0x9a')](_0xe70d1f[_0x2524('0xb5')],{'userId':_0x2d6563,'isAttached':_0xe70d1f[_0x2524('0x3c')]});}[_0x2524('0x9d')](_0x4ce82e){const _0x55e514=this[_0x2524('0x10')][_0x2524('0xf4')](_0x4ce82e[_0x2524('0xfa')]['rootName']);null===_0x4ce82e[_0x2524('0xb6')]?delete _0x55e514[_0x4ce82e[_0x2524('0x50')]]:_0x55e514[_0x4ce82e[_0x2524('0x50')]]=_0x4ce82e[_0x2524('0xb6')];}}function J(_0x4cd373){const _0x250ee4=H(_0x4cd373[_0x2524('0xb5')],_0x4cd373[_0x2524('0xcd')]());for(const _0x525686 of _0x4cd373[_0x2524('0x57')]()){const _0x4106e9=_0x525686[_0x2524('0x20')](!0x0);_0x250ee4[_0x2524('0x9c')](_0x4106e9);}return _0x250ee4;}function H(_0x2bc915,_0x2058c4=!0x0){const _0x359e13=new _0x480898();return _0x359e13[_0x2524('0xb5')]=_0x2bc915,_0x359e13['_isAttached']=_0x2058c4,_0x359e13[_0x2524('0xcd')]=()=>_0x359e13[_0x2524('0x7a')],_0x359e13;}function q(_0x41d066,_0x2cf297,_0x19b823){const _0x289b7c='elementEnd'==_0x41d066[_0x2524('0x91')]?_0x19b823[_0x2524('0xd0')](_0x41d066[_0x2524('0x1a')],_0x2524('0xeb')):_0x19b823[_0x2524('0x3a')](_0x41d066[_0x2524('0x1a')]);return _0x19b823[_0x2524('0xce')](_0x2cf297,_0x289b7c[_0x2524('0x43')],_0x289b7c[_0x2524('0x2b')]);}function G(_0x5aaf3b,_0x230f45,_0x41872b){const _0xe86fa4='elementStart'==_0x5aaf3b[_0x2524('0x91')]?_0x41872b[_0x2524('0xd0')](_0x5aaf3b['item'],0x0):_0x41872b[_0x2524('0x45')](_0x5aaf3b[_0x2524('0x1a')]);return _0x41872b['createPositionFromPath'](_0x230f45,_0xe86fa4[_0x2524('0x43')],_0xe86fa4[_0x2524('0x2b')]);}