@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230810.0 → 0.0.0-nightly-20230811.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +6 -6
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3368=['locale','_handleMergeOperation','stickiness','toVersion','_bufferedUpdates','_makeModelFromViewString','end','userId','history','pluginName','marker','for','addRootAttribute','resolve','_cloneOperation','getRevisionRootsAttributes','diffData','_transformMarkers','_loadRevisionData','getUser','getChild','plugins','paragraph','fromVersion','_continueCurrentRevision','rootsAttributes','then','attachChange','startsWith','_getViewJson','getTransformedByOperation','_bufferUpdate','_touchedRoots','vid_start','_startingVersion','finally','push','_getFromVersion','getRevisions','getData','_handleMarkerOperation','_getBaseVids','reverse','key','_source','conversion','remove','max','isEqual','trim','initial','detachRoot','map','_execute','clear','RevisionTracker','revisionHistory.resumeUnsavedRevision','_replaceEditorDataWithRevisionData','getRoot','deletions','createdAt','length','merge','$text','find','useFillerType','_removeRevisionMarkers','root','createPositionAfter','Initial\x20revision','getAttributes','removeRootAttribute','howMany','editing','filter','_diffRootsAttributes','_generateTape','_handleInsertOperation','isReady','_handleRootAttributeOperation','parse','hasContent','item','slice','_createCurrentRevision','_revisionDataBuilder','_touched','name','createPositionAt','_handleRootOperation','$graveyard','_idsRoots','saveRevision','dataDowncast','toData','_isInit','elementStart','split','childCount','newRange','baseVersion','children','_touchedMarkers','_baseRootsAttributes','_addPendingAction','_authorId','view','_initialRevisionId','_fixOperation','offsetSize','roots','position','delete','previousPosition','_markChanges','getCurrentRevisionId','PENDING_ACTION_REVISION_HISTORY','getTime','_findInsertionIndex','buildRevisionData','_insertChild','model','string','_savedMetaData','graveyardPosition','parent','clone','_update','path','version','_isAttached','_applyOperations','range','_loadedStateData','keepParagraph','config','_loadState','_copyMarkers','NEGATIVE_INFINITY','_markers','add','ready','isEnabled','createRange','_startingRevisionId','newValue','sourcePosition','vid_end','setSource','type','_getVidAttributeName','toView','_createFromRanges','creator','get','getOperation','bind','start','tableCell','_removeMetaData','loadState','_baseRoots','RevisionsRepository','_isPendingUpdate','elementEnd','getNodeByPath','vid','_getPreviousFrom','targetPosition','markers','from','getMovedRangeStart','attributesAfter','keys','sendBufferedUpdates','includes','processor','addRevision','createPositionFromPath','_handleOperation','setRevisionData','initialData','attributes','define','data-revision-','_fixPosition','forEach','repository','_createInitialRevision','_handleSplitOperation','getRange','init','values','_diffRoots','isAdd','_reset','insertions','_revisionId','authorsIds','_prepareViewToSave','getOperations','createPositionBefore','_setAttribute','markerToData','stringify','collaboration.channelId','_lastFrom','authors','affectsData','offset','revision:','getWalker','source','text','PendingActions','data','_calculateMetaData','_fixRange','Empty\x20document','getChildren','currentRevision','has','attributesBefore','editor-initial-data-replaced-with-revision-data','isAttached','getLatestVersion','_setConversion','_lastTo','nodeAfter','_getState','revision-end','adapter','revision-start','upcast','set','rootName','_makeIdsRoot','insert','Users','sort','_saveMetaData','getRootNames','getAncestors','_makeRevision','editor','getRevisionDocumentData','splitPosition','deletion','_pendingAction','_baseIdsRoots','document','_handleMoveOperation','getRevision','addRevisionData','oldRange','element','createRevision','_removePendingAction','revision','getIndex','getAttribute'];(function(_0x37c9d2,_0x3368e3){const _0x2f992b=function(_0x2446a8){while(--_0x2446a8){_0x37c9d2['push'](_0x37c9d2['shift']());}};_0x2f992b(++_0x3368e3);}(_0x3368,0x14e));const _0x2f99=function(_0x37c9d2,_0x3368e3){_0x37c9d2=_0x37c9d2-0x0;let _0x2f992b=_0x3368[_0x37c9d2];return _0x2f992b;};import{Users as _0x38d5b3}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x4b4187,PendingActions as _0x59257d}from'ckeditor5/src/core';import{logWarning as _0x405d31,uid as _0x5ac653}from'ckeditor5/src/utils';import{Position as _0x327957,Range as _0x4f257e,Element as _0x5b9915,DocumentFragment as _0x5cc77d,ViewText as _0x5cf2f8,ViewElement as _0x5122c1,ViewContainerElement as _0x3501e4,ViewAttributeElement as _0x526cee,ViewEmptyElement as _0x4c01bf,ViewRawElement as _0x2336d8,ViewUIElement as _0x32587f,ViewDocumentFragment as _0x3ea209}from'ckeditor5/src/engine';import _0x2e2471 from'./revisionsrepository';import{getTranslation as _0x37a241}from'./utils/common-translations';import{cloneDeep as _0x4a4127,isEqual as _0x393872}from'lodash-es';const B={'c':_0x3501e4,'a':_0x526cee,'e':_0x4c01bf,'r':_0x2336d8,'u':_0x32587f};export default class l extends _0x4b4187{static get[_0x2f99('0xc5')](){return _0x2f99('0xf3');}static get['requires'](){return[_0x38d5b3,_0x2e2471,_0x59257d];}constructor(_0x1f66ee){super(_0x1f66ee),this[_0x2f99('0x9e')]=null,this[_0x2f99('0x93')]=null,this[_0x2f99('0xc')]=new H(this[_0x2f99('0xab')]),this[_0x2f99('0x22')]=this[_0x2f99('0xab')]['config'][_0x2f99('0x51')](_0x2f99('0x84'))||_0x2f99('0xee'),this[_0x2f99('0xc0')]=new Map(),this['_loadedStateData']=null;const _0x2fa5ba=_0x5ac653();this[_0x2f99('0xe8')]={'history':this['editor'][_0x2f99('0x30')][_0x2f99('0xb1')][_0x2f99('0xc4')],'getLatestVersion':()=>Promise['resolve'](this[_0x2f99('0xab')]['model']['document'][_0x2f99('0x38')]),'getCurrentRevisionId':()=>_0x2fa5ba},this[_0x2f99('0xa1')](_0x2f99('0x5'),!0x1),this[_0x2f99('0xa1')](_0x2f99('0x45'),!0x0),this[_0x2f99('0xa1')](_0x2f99('0x5a'),!0x1),this[_0x2f99('0xab')]['config'][_0x2f99('0x6e')](_0x2f99('0xf4'),!0x0),this[_0x2f99('0xab')][_0x2f99('0xe9')][_0x2f99('0xc7')](_0x2f99('0xa0'))['dataToMarker']({'view':_0x2f99('0xb9')});}[_0x2f99('0x76')](){this[_0x2f99('0x72')]=this[_0x2f99('0xab')][_0x2f99('0xd1')][_0x2f99('0x51')](_0x2f99('0x59')),this['_setConversion'](),this[_0x2f99('0xab')][_0x2f99('0x8e')]['on'](_0x2f99('0x44'),()=>{const _0x27f344=this[_0x2f99('0x72')]['getRevision'](0x0),_0x1a43f2=_0x27f344&&null===_0x27f344[_0x2f99('0x50')]?_0x27f344:null;if(this['_continueCurrentRevision']=!!_0x1a43f2&&this[_0x2f99('0xab')]['config'][_0x2f99('0x51')](_0x2f99('0xf4')),this[_0x2f99('0xab')][_0x2f99('0xd1')][_0x2f99('0x94')]('RealTimeCollaborationClient')){const _0x5f5da7=this['_source']['getCurrentRevisionId'](),_0x3e6fcf=this[_0x2f99('0x72')][_0x2f99('0xb3')](_0x5f5da7);if(_0x3e6fcf)this['_startingVersion']=_0x3e6fcf['fromVersion'],this[_0x2f99('0xd4')]=!0x1;else{const _0x17725a=this['_source'][_0x2f99('0xc4')]['_operations']['find'](_0x45b4f9=>!_0x45b4f9[_0x2f99('0x16')]),_0x54a4ac=_0x17725a?_0x17725a[_0x2f99('0x1b')]:this[_0x2f99('0xe8')][_0x2f99('0xc4')][_0x2f99('0x38')];_0x27f344?(_0x27f344[_0x2f99('0xbf')]<_0x54a4ac&&_0x27f344[_0x2f99('0x36')]({'toVersion':_0x54a4ac}),this[_0x2f99('0xd4')]?(this['_source']['getCurrentRevisionId']=()=>_0x1a43f2['id'],this[_0x2f99('0xde')]=_0x1a43f2['fromVersion']):(this[_0x2f99('0xde')]=_0x27f344[_0x2f99('0xbf')],this[_0x2f99('0xd4')]=!0x1)):(this[_0x2f99('0xde')]=_0x54a4ac,this[_0x2f99('0xd4')]=!0x1);}}else _0x1a43f2&&(this[_0x2f99('0xab')][_0x2f99('0x30')][_0x2f99('0xb1')][_0x2f99('0xc4')][_0x2f99('0x38')]=Math[_0x2f99('0xeb')](_0x1a43f2[_0x2f99('0xbf')],this[_0x2f99('0xab')][_0x2f99('0x30')]['document']['history'][_0x2f99('0x38')]),_0x1a43f2[_0x2f99('0xd3')]===_0x1a43f2['toVersion']?(0x0!==_0x1a43f2[_0x2f99('0xd3')]&&(this[_0x2f99('0xe8')][_0x2f99('0x2a')]=()=>_0x1a43f2['id']),this[_0x2f99('0xd4')]=!0x1):this[_0x2f99('0xd4')]&&(this['_source']['getCurrentRevisionId']=()=>_0x1a43f2['id'],this[_0x2f99('0xde')]=_0x1a43f2['fromVersion'])),this[_0x2f99('0xd4')]||(this[_0x2f99('0xde')]=this['editor']['model']['document'][_0x2f99('0x38')]);this[_0x2f99('0xc')][_0x2f99('0x76')](this['_source'][_0x2f99('0xc4')]),this[_0x2f99('0x73')](this['_startingVersion']),this[_0x2f99('0xb')](this[_0x2f99('0xde')]),this[_0x2f99('0x9e')]&&this[_0x2f99('0x65')]();}),this[_0x2f99('0x53')](_0x2f99('0x5'))['to'](this,_0x2f99('0x5a'),_0x6f399e=>!_0x6f399e);}async['afterInit'](){if(this[_0x2f99('0x72')][_0x2f99('0xf9')]>0x0){const _0x2586ad=this['repository'][_0x2f99('0xb3')](0x0),_0x4593ad=await this[_0x2f99('0xac')](_0x2586ad),_0x594f9d=await this['getRevisionRootsAttributes'](_0x2586ad);this[_0x2f99('0xf5')](_0x4593ad,_0x594f9d);}}[_0x2f99('0x4b')](_0x52c4f8){this[_0x2f99('0xe8')]=_0x52c4f8;}async['update'](){const _0x3b87c8=await this[_0x2f99('0xe8')][_0x2f99('0x98')]();if(_0x3b87c8>this[_0x2f99('0x93')][_0x2f99('0xbf')]){await this[_0x2f99('0x3f')]();const _0xb1dd29=this[_0x2f99('0x2e')]({'revision':this['currentRevision'],'to':_0x3b87c8});_0xb1dd29['authors']=_0xb1dd29['authorsIds'][_0x2f99('0xf0')](_0x41a02b=>this[_0x2f99('0xab')][_0x2f99('0xd1')][_0x2f99('0x51')]('Users')[_0x2f99('0xcf')](_0x41a02b)),this[_0x2f99('0x93')][_0x2f99('0x36')](_0xb1dd29);}}async[_0x2f99('0x3f')](){this[_0x2f99('0xd4')]&&!this['_loadedStateData']&&(await this[_0x2f99('0xce')](this['currentRevision']),this['_revisionDataBuilder'][_0x2f99('0x57')](this[_0x2f99('0x93')]),this[_0x2f99('0x3c')]={'fromVersion':this['currentRevision'][_0x2f99('0xd3')],'authors':this[_0x2f99('0x93')]['authors'][_0x2f99('0xa')]()});}async[_0x2f99('0x13')](_0x33cfb9={},_0x18f01d=null){const _0x4a4a84=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x18f01d>this['currentRevision'][_0x2f99('0xbf')]&&(_0x18f01d=null),null===_0x18f01d&&(_0x18f01d=await this[_0x2f99('0xe8')][_0x2f99('0x98')]());const _0x334336=this[_0x2f99('0xe1')](_0x18f01d),_0x1baafe=this[_0x2f99('0x2e')]({'from':_0x334336,'to':_0x18f01d});if(this[_0x2f99('0x93')][_0x2f99('0xbf')]<_0x18f01d){const _0x1aa56f=this[_0x2f99('0x2e')]({'revision':this[_0x2f99('0x93')],'from':_0x18f01d,'to':_0x18f01d});_0x1aa56f['authors']=[],_0x1aa56f[_0x2f99('0x7d')]=[],_0x1aa56f['id']=this[_0x2f99('0x93')]['id'],this['currentRevision'][_0x2f99('0x36')](_0x1aa56f,!0x0),delete _0x1aa56f[_0x2f99('0x86')],_0x4a4a84[_0x2f99('0xe0')](_0x1aa56f);}_0x33cfb9['creatorId']=this[_0x2f99('0xab')][_0x2f99('0xd1')][_0x2f99('0x51')](_0x2f99('0xa5'))['me']['id'],_0x33cfb9['name']=_0x33cfb9['name']||null,_0x33cfb9['id']=_0x33cfb9['id']||_0x5ac653(),_0x33cfb9={..._0x33cfb9,..._0x1baafe};const _0x384c95=this[_0x2f99('0xb4')](_0x33cfb9);_0x4a4a84[_0x2f99('0xe0')](_0x33cfb9);const _0x2cdd9b=this[_0x2f99('0x72')][_0x2f99('0xba')](_0x384c95);if(0x0!==_0x2cdd9b){const _0x1d0b4c=this[_0x2f99('0x72')]['getRevision'](_0x2cdd9b-0x1);if(_0x1d0b4c[_0x2f99('0xd3')]!==_0x18f01d){const _0xffbfe0=this['_revisionDataBuilder'][_0x2f99('0xe3')](_0x18f01d,_0x1d0b4c[_0x2f99('0xbf')]),_0x483509={'id':_0x1d0b4c['id'],'diffData':_0xffbfe0[_0x2f99('0xcc')],'authorsIds':_0xffbfe0[_0x2f99('0x7d')],'authors':_0xffbfe0[_0x2f99('0x7d')][_0x2f99('0xf0')](_0xbe67bf=>this['editor'][_0x2f99('0xd1')][_0x2f99('0x51')](_0x2f99('0xa5'))[_0x2f99('0xcf')](_0xbe67bf)),'fromVersion':_0x18f01d};_0x1d0b4c===this['currentRevision']&&(_0x483509[_0x2f99('0xf8')]=new Date(_0x33cfb9[_0x2f99('0xf8')][_0x2f99('0x2c')]()+0xa)),_0x1d0b4c[_0x2f99('0x36')](_0x483509,!0x0),delete _0x483509['authors'],_0x4a4a84[_0x2f99('0xe0')](_0x483509);}}if(this[_0x2f99('0x9e')]){for(const _0x1c20f3 of _0x4a4a84)this[_0x2f99('0xdb')](_0x1c20f3['id'],_0x1c20f3,!0x0);this['sendBufferedUpdates']();}return _0x384c95;}[_0x2f99('0xb4')](_0x2191dc){const _0x1fc2f1=this[_0x2f99('0x72')][_0x2f99('0xb7')](_0x2191dc);return this['adapter']&&_0x1fc2f1['on'](_0x2f99('0x36'),(_0x54de34,_0x10ee80,_0x1f6d05)=>{_0x1f6d05||(this['_bufferUpdate'](_0x10ee80['id'],_0x10ee80,!0x0),this[_0x2f99('0x65')]());}),this[_0x2f99('0x72')][_0x2f99('0x68')](_0x1fc2f1,this[_0x2f99('0x2d')](_0x1fc2f1)),_0x1fc2f1;}async[_0x2f99('0xac')](_0xb95aa3){await this[_0x2f99('0xce')](_0xb95aa3);const _0x32d0c6={};for(const _0x54bd37 in _0xb95aa3[_0x2f99('0xcc')]){if(_0xb95aa3['diffData'][_0x54bd37]['attachChange']&&!_0xb95aa3[_0x2f99('0xcc')][_0x54bd37][_0x2f99('0xd7')][_0x2f99('0x97')])continue;const _0x1cc4e4=this[_0x2f99('0xfe')](JSON[_0x2f99('0x7')](_0xb95aa3[_0x2f99('0xcc')][_0x54bd37][_0x2f99('0x7b')])),_0x4cd390=this[_0x2f99('0xab')][_0x2f99('0x0')][_0x2f99('0x21')]['document'],_0xe725b=new _0x3ea209(_0x4cd390,_0x1cc4e4['map'](_0x2fa910=>J(_0x2fa910,this[_0x2f99('0xab')])));this[_0x2f99('0xab')][_0x2f99('0x8e')][_0x2f99('0x67')][_0x2f99('0xfd')]('marked'),_0x32d0c6[_0x54bd37]=this['editor'][_0x2f99('0x8e')][_0x2f99('0x67')][_0x2f99('0x15')](_0xe725b),this[_0x2f99('0xab')][_0x2f99('0x8e')][_0x2f99('0x67')][_0x2f99('0xfd')]('default');}return _0x32d0c6;}async[_0x2f99('0xcb')](_0x149a25){await this[_0x2f99('0xce')](_0x149a25);const _0x1c4658={};for(const _0x276e2a in _0x149a25[_0x2f99('0xcc')])_0x149a25[_0x2f99('0xcc')][_0x276e2a][_0x2f99('0xd7')]&&!_0x149a25[_0x2f99('0xcc')][_0x276e2a][_0x2f99('0xd7')][_0x2f99('0x97')]||(_0x1c4658[_0x276e2a]=_0x149a25[_0x2f99('0xcc')][_0x276e2a][_0x2f99('0x63')]||{});return _0x1c4658;}[_0x2f99('0x65')](){if(0x0===this[_0x2f99('0xc0')]['size'])return;if(this[_0x2f99('0x5a')])return;let _0x292860=Array[_0x2f99('0x61')](this[_0x2f99('0xc0')]['values']());this['_bufferedUpdates']['clear']();for(let _0x4833bd=0x0;_0x4833bd<_0x292860[_0x2f99('0xf9')];_0x4833bd++){const _0x2c13f3=_0x292860[_0x4833bd];let _0x31ab53=!0x1;for(const _0x22bcdc of Object['keys'](_0x2c13f3))void 0x0===_0x2c13f3[_0x22bcdc]?delete _0x2c13f3[_0x22bcdc]:'id'!==_0x22bcdc&&(_0x31ab53=!0x0);_0x31ab53||(_0x292860[_0x4833bd]=null);}if(_0x292860=_0x292860[_0x2f99('0x1')](_0x1284b7=>null!==_0x1284b7),!_0x292860['length'])return;for(let _0x4533fa=0x0;_0x4533fa<_0x292860['length'];_0x4533fa++){const _0x1fe45b=_0x292860[_0x4533fa];void 0x0!==_0x1fe45b['fromVersion']&&void 0x0===_0x1fe45b[_0x2f99('0xbf')]&&(_0x1fe45b[_0x2f99('0xbf')]=this[_0x2f99('0x72')][_0x2f99('0xb3')](_0x1fe45b['id'])[_0x2f99('0xbf')]),void 0x0!==_0x1fe45b[_0x2f99('0xbf')]&&void 0x0===_0x1fe45b['fromVersion']&&(_0x1fe45b[_0x2f99('0xd3')]=this[_0x2f99('0x72')][_0x2f99('0xb3')](_0x1fe45b['id'])[_0x2f99('0xd3')]);}const _0x48f8fa=this[_0x2f99('0xab')][_0x2f99('0x3e')]['get']('collaboration.channelId');this[_0x2f99('0x5a')]=!0x0,this[_0x2f99('0x1f')](),this[_0x2f99('0x9e')]['updateRevisions'](_0x292860,_0x48f8fa)[_0x2f99('0xdf')](()=>{this[_0x2f99('0x5a')]=!0x1;})['then'](_0x5a105b=>{if(_0x5a105b)for(const _0x1076f6 of _0x5a105b)this[_0x2f99('0x6b')]({'id':_0x1076f6['id'],'createdAt':_0x1076f6[_0x2f99('0xf8')]});this['_removePendingAction'](),this['sendBufferedUpdates']();});}[_0x2f99('0xf5')](_0x283417,_0xba6daf){let _0x2b1d36=this[_0x2f99('0xab')][_0x2f99('0x3e')][_0x2f99('0x51')]('initialData'),_0x408f65=this[_0x2f99('0xab')][_0x2f99('0x3e')][_0x2f99('0x51')](_0x2f99('0xd5'));if(void 0x0===_0x2b1d36){_0x2b1d36={};for(const _0x4dd46a of this['editor'][_0x2f99('0x30')][_0x2f99('0xb1')][_0x2f99('0xa8')]())_0x2b1d36[_0x4dd46a]='';}if(_0x2f99('0x31')==typeof _0x2b1d36&&(_0x2b1d36={'main':_0x2b1d36}),void 0x0===_0x408f65){_0x408f65={};for(const _0x437b5c of this[_0x2f99('0xab')][_0x2f99('0x30')][_0x2f99('0xb1')][_0x2f99('0xa8')]())_0x408f65[_0x437b5c]={};}let _0x4a14e1=!0x1;const _0x383d0a=Object[_0x2f99('0x64')](_0x2b1d36),_0x1d1755=Object[_0x2f99('0x64')](_0x283417);for(const _0x4e6fee of _0x383d0a){if(_0x2b1d36[_0x4e6fee]!==_0x283417[_0x4e6fee]&&''!==_0x2b1d36[_0x4e6fee][_0x2f99('0xed')]()){_0x4a14e1=!0x0;break;}if(!_0x393872(_0x408f65[_0x4e6fee],_0xba6daf[_0x4e6fee])&&Object[_0x2f99('0x64')](_0x408f65[_0x4e6fee])[_0x2f99('0xf9')]>0x0){_0x4a14e1=!0x0;break;}}_0x4a14e1||(_0x4a14e1=_0x1d1755['some'](_0x2caa68=>!this[_0x2f99('0xab')][_0x2f99('0x30')][_0x2f99('0xb1')][_0x2f99('0xf6')](_0x2caa68))),_0x4a14e1&&_0x405d31(_0x2f99('0x96'),{'editorData':_0x2b1d36,'editorRootsAttributes':_0x408f65,'revisionData':_0x283417,'revisionRootsAttributes':_0xba6daf}),this[_0x2f99('0xab')][_0x2f99('0x3e')]['set'](_0x2f99('0x6c'),_0x283417),this[_0x2f99('0xab')]['config'][_0x2f99('0xa1')](_0x2f99('0xd5'),_0xba6daf);}['_addPendingAction'](){if(!this[_0x2f99('0xaf')]){const _0x29d8e9=this[_0x2f99('0xab')]['plugins']['get'](_0x2f99('0x8d'));this['_pendingAction']=_0x29d8e9[_0x2f99('0x43')](_0x37a241(this[_0x2f99('0xab')][_0x2f99('0xbc')],_0x2f99('0x2b')));}}[_0x2f99('0xb8')](){this[_0x2f99('0xaf')]&&(this[_0x2f99('0xab')][_0x2f99('0xd1')][_0x2f99('0x51')](_0x2f99('0x8d'))[_0x2f99('0xea')](this[_0x2f99('0xaf')]),this[_0x2f99('0xaf')]=null);}[_0x2f99('0x2d')](_0x399ea9){const _0x4ca7a5=this[_0x2f99('0x72')][_0x2f99('0xe2')]();_0x4ca7a5[_0x2f99('0xe6')]();let _0x62b4b8=0x0;for(;_0x62b4b8<_0x4ca7a5[_0x2f99('0xf9')];){const _0x55d72e=_0x4ca7a5[_0x62b4b8];if(_0x55d72e===this['currentRevision']){_0x62b4b8++;continue;}if(_0x55d72e['id']===this[_0x2f99('0x22')])break;const _0x15b205=_0x399ea9['toVersion']-_0x55d72e['toVersion']||_0x399ea9[_0x2f99('0xd3')]-_0x55d72e['fromVersion'];if(_0x15b205>0x0)break;if(_0x15b205<0x0)_0x62b4b8++;else{if(!_0x399ea9[_0x2f99('0x50')]&&_0x55d72e[_0x2f99('0x50')])break;if(_0x55d72e['creator']||!_0x399ea9[_0x2f99('0x50')]){if(_0x399ea9[_0x2f99('0xf8')]>_0x55d72e[_0x2f99('0xf8')])break;_0x62b4b8++;}else _0x62b4b8++;}}return _0x62b4b8;}[_0x2f99('0x6b')](_0x1d77c4){const _0x395cc2=this[_0x2f99('0x72')][_0x2f99('0xb3')](_0x1d77c4['id']);if(_0x1d77c4['createdAt']&&(_0x1d77c4['createdAt']=new Date(_0x1d77c4[_0x2f99('0xf8')])),_0x1d77c4['authorsIds']){const _0x23cf56=this[_0x2f99('0xab')]['plugins'][_0x2f99('0x51')](_0x2f99('0xa5'));_0x1d77c4[_0x2f99('0x86')]=_0x1d77c4[_0x2f99('0x7d')]['map'](_0x3f1d10=>_0x23cf56[_0x2f99('0xcf')](_0x3f1d10));}_0x395cc2['_update'](_0x1d77c4,!0x0);}['buildRevisionData']({revision:_0x32c689=null,from:_0x53c016=null,to:_0x4fce3b=null}){_0x53c016=null!==_0x53c016?_0x53c016:_0x32c689[_0x2f99('0xd3')],_0x4fce3b=null!==_0x4fce3b?_0x4fce3b:_0x32c689['toVersion'];const _0xbf6279=this[_0x2f99('0xc')][_0x2f99('0xe3')](_0x53c016,_0x4fce3b),_0x293d89={'diffData':_0xbf6279['diffData'],'authorsIds':_0xbf6279['authorsIds'],'fromVersion':_0x53c016,'toVersion':_0x4fce3b};if(!_0x32c689||_0x4fce3b!==_0x32c689[_0x2f99('0xbf')]){const _0x143389=_0x4fce3b-0x1,_0x34cbf6=this[_0x2f99('0xe8')][_0x2f99('0xc4')][_0x2f99('0x52')](_0x143389);_0x293d89[_0x2f99('0xf8')]=_0x34cbf6&&_0x34cbf6[_0x2f99('0xf8')]||new Date();}if(this[_0x2f99('0x3c')]&&_0x53c016===this[_0x2f99('0x3c')][_0x2f99('0xd3')])for(const _0x43fd93 of this['_loadedStateData']['authors'])_0x293d89[_0x2f99('0x7d')][_0x2f99('0x66')](_0x43fd93['id'])||_0x293d89['authorsIds']['push'](_0x43fd93['id']);return _0x293d89;}[_0x2f99('0xce')](_0x32816d){if(!_0x32816d||_0x32816d['diffData'])return Promise[_0x2f99('0xc9')]();{const _0x27099a=this[_0x2f99('0xab')]['config'][_0x2f99('0x51')]('collaboration.channelId');return this[_0x2f99('0x9e')][_0x2f99('0xb3')]({'channelId':_0x27099a,'revisionId':_0x32816d['id']})[_0x2f99('0xd6')](_0x348515=>{_0x32816d[_0x2f99('0xcc')]=_0x348515['diffData'];});}}[_0x2f99('0xdb')](_0x3811ce,_0x22970e,_0x59f2e5){if(this['_bufferedUpdates'][_0x2f99('0x94')](_0x3811ce)){const _0x4508fe=this['_bufferedUpdates']['get'](_0x3811ce);_0x22970e=_0x59f2e5?{..._0x4508fe,..._0x22970e}:{..._0x22970e,..._0x4508fe};}this['_bufferedUpdates'][_0x2f99('0xa1')](_0x3811ce,_0x22970e);}[_0x2f99('0xe1')](_0x36c7e5){const _0x23621b=this[_0x2f99('0x72')][_0x2f99('0xe2')]();_0x23621b[_0x2f99('0xe6')](),_0x23621b['shift']();const _0x2c8afd=_0x23621b[_0x2f99('0xfc')](_0x47724b=>_0x47724b[_0x2f99('0xbf')]<=_0x36c7e5)[_0x2f99('0xbf')];return _0x2c8afd<this[_0x2f99('0xde')]?this[_0x2f99('0xde')]:_0x2c8afd;}[_0x2f99('0x73')](_0x5bf5ec){const _0x44c524=this[_0x2f99('0x72')][_0x2f99('0xb3')](this[_0x2f99('0x72')][_0x2f99('0xf9')]-0x1);if(_0x44c524)this[_0x2f99('0x22')]=_0x44c524['id'];else{const _0x1b9621=!this[_0x2f99('0xab')][_0x2f99('0x30')]['document'][_0x2f99('0x25')][_0x2f99('0xfc')](_0x1fe706=>this[_0x2f99('0xab')][_0x2f99('0x30')][_0x2f99('0x8')](_0x1fe706)),_0x138104=this[_0x2f99('0xab')][_0x2f99('0xd1')][_0x2f99('0x51')](_0x2f99('0xa5'))['me']['id'],_0x29b861=_0x37a241(this['editor'][_0x2f99('0xbc')],_0x1b9621?_0x2f99('0x91'):_0x2f99('0x101'));this[_0x2f99('0xaa')]({'from':_0x5bf5ec,'to':_0x5bf5ec,'id':this[_0x2f99('0x22')],'name':_0x29b861,'creatorId':_0x138104});}}['_createCurrentRevision'](_0x275a7c){const _0x4b7533=this['_source'][_0x2f99('0x2a')]();this[_0x2f99('0x93')]=this[_0x2f99('0x72')]['getRevision'](_0x4b7533),this[_0x2f99('0x93')]||(this[_0x2f99('0x93')]=this['_makeRevision']({'from':_0x275a7c,'to':_0x275a7c,'id':_0x4b7533,'name':'','creatorId':null}));}[_0x2f99('0xaa')]({name:_0x2b0ce8,from:_0x19489a,to:_0x557ec4,creatorId:_0x38284f,id:_0x19d75a}){const _0x3dfd44=this['buildRevisionData']({'from':_0x19489a,'to':_0x557ec4});_0x3dfd44['name']=_0x2b0ce8,_0x3dfd44['creatorId']=_0x38284f,_0x3dfd44['id']=_0x19d75a;const _0x5676fa=this[_0x2f99('0xb4')](_0x3dfd44);return this[_0x2f99('0x9e')]&&this[_0x2f99('0xdb')](_0x3dfd44['id'],_0x3dfd44,!0x0),_0x5676fa;}[_0x2f99('0x99')](){this[_0x2f99('0xab')][_0x2f99('0xe9')]['for'](_0x2f99('0x14'))[_0x2f99('0x82')]({'model':_0x2f99('0xb9')});}[_0x2f99('0xfe')](_0x13e32c){return(_0x13e32c=_0x13e32c[_0x2f99('0x1')](_0x4d2c1d=>!_0x4d2c1d['name']||_0x2f99('0x9f')!==_0x4d2c1d[_0x2f99('0xe')]&&_0x2f99('0x9d')!==_0x4d2c1d[_0x2f99('0xe')]))[_0x2f99('0x71')](_0x5713f8=>{_0x2f99('0x31')!=typeof _0x5713f8&&(_0x5713f8['children']=this[_0x2f99('0xfe')](_0x5713f8[_0x2f99('0x1c')]),_0x5713f8[_0x2f99('0x6d')]=_0x5713f8[_0x2f99('0x6d')][_0x2f99('0x1')](_0x5f2232=>!_0x5f2232[0x0][_0x2f99('0xd8')](_0x2f99('0x6f'))));}),_0x13e32c;}}function J(_0x24d5e5,_0x113dac){const _0x37928c=_0x113dac['editing'][_0x2f99('0x21')]['document'];if('string'==typeof _0x24d5e5)return new _0x5cf2f8(_0x37928c,_0x24d5e5);{const _0x138f6e=_0x24d5e5['children']['map'](_0x3aec06=>J(_0x3aec06,_0x113dac));return new(B[_0x24d5e5['type']]||_0x5122c1)(_0x37928c,_0x24d5e5[_0x2f99('0xe')],_0x24d5e5[_0x2f99('0x6d')],_0x138f6e);}}class H{constructor(_0xbc2223){this['editor']=_0xbc2223,this[_0x2f99('0x32')]=new Map(),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this[_0x2f99('0x42')]=new Map(),this['_diffRoots']=new Map(),this[_0x2f99('0x2')]=new Map(),this[_0x2f99('0x58')]=new Map(),this['_baseRootsAttributes']=new Map(),this['_idsRoots']=new Map(),this[_0x2f99('0xb0')]=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this[_0x2f99('0xdc')]=new Map(),this[_0x2f99('0x7c')]=0x1;}[_0x2f99('0x76')](_0x10368c){this[_0x2f99('0x8b')]=_0x10368c;const _0xf69eaa=new Map(),_0x25a2ce=new Map(),_0x567f04=this[_0x2f99('0xab')][_0x2f99('0x30')][_0x2f99('0xb1')][_0x2f99('0x25')][_0x2f99('0xf0')](_0x2f3c1c=>_0x2f3c1c['rootName']);for(const _0x4841d0 of _0x567f04){const _0x8cc6c2=this[_0x2f99('0xab')][_0x2f99('0x30')][_0x2f99('0xb1')][_0x2f99('0xf6')](_0x4841d0),_0x282427=q(_0x8cc6c2);_0xf69eaa[_0x2f99('0xa1')](_0x4841d0,_0x282427),_0x25a2ce['set'](_0x4841d0,Object['fromEntries'](_0x8cc6c2['getAttributes']()));}const _0x4f36b5=Array['from'](this[_0x2f99('0xab')][_0x2f99('0x30')][_0x2f99('0x60')])[_0x2f99('0xf0')](_0x270520=>[_0x270520[_0x2f99('0xe')],_0x270520[_0x2f99('0x75')]()]),_0x5cb79d=this[_0x2f99('0x8b')][_0x2f99('0x38')];this['_saveMetaData'](_0x5cb79d,_0xf69eaa,_0x4f36b5,_0x25a2ce),this[_0x2f99('0x47')]=this[_0x2f99('0x7c')];const _0xc30ce=new Map(),_0x381880=new Map();for(const _0x35c186 of _0x567f04){const _0x371509=G(_0x35c186);_0xc30ce['set'](_0x35c186,_0x371509),_0x381880[_0x2f99('0xa1')](_0x35c186,{});}this[_0x2f99('0xa7')](Number[_0x2f99('0x41')],_0xc30ce,[],_0x381880);}[_0x2f99('0xe3')](_0x3c01bc,_0x334751){if(this[_0x2f99('0x85')]===_0x3c01bc&&this[_0x2f99('0x9a')]<=_0x334751)this[_0x2f99('0x32')]['size']>0x1&&this[_0x2f99('0x56')](this[_0x2f99('0x9a')]),this[_0x2f99('0x3a')](this[_0x2f99('0x9a')],_0x334751,!0x0);else{if(!this['_savedMetaData'][_0x2f99('0x94')](_0x3c01bc)){const _0x514246=this[_0x2f99('0x5e')](_0x3c01bc);this[_0x2f99('0x8f')](_0x514246,_0x3c01bc,!0x1);}this[_0x2f99('0x8f')](_0x3c01bc,_0x334751,!0x0);}return this[_0x2f99('0x85')]=_0x3c01bc,this['_lastTo']=_0x334751,this[_0x2f99('0x9c')]();}[_0x2f99('0x57')](_0x2f6c2b){this['_reset'](),this[_0x2f99('0x85')]=_0x2f6c2b[_0x2f99('0xd3')],this[_0x2f99('0x9a')]=_0x2f6c2b[_0x2f99('0xbf')];for(const _0x12f2e0 in _0x2f6c2b[_0x2f99('0xcc')]){const _0x1e2d8c=_0x2f6c2b[_0x2f99('0xcc')][_0x12f2e0]['attachChange'],_0x1db4e1=_0x4a4127(_0x2f6c2b[_0x2f99('0xcc')][_0x12f2e0][_0x2f99('0x95')])||{},_0x48151e=this[_0x2f99('0xc1')](_0x2f6c2b['diffData'][_0x12f2e0]['deletions']);_0x48151e[_0x2f99('0xa2')]=_0x12f2e0,_0x48151e[_0x2f99('0x39')]=!_0x1e2d8c||!_0x1e2d8c[_0x2f99('0x97')],_0x48151e[_0x2f99('0x97')]=()=>_0x48151e[_0x2f99('0x39')],this[_0x2f99('0x58')][_0x2f99('0xa1')](_0x12f2e0,_0x48151e),this[_0x2f99('0x1e')]['set'](_0x12f2e0,_0x1db4e1),_0x1e2d8c&&this[_0x2f99('0xdc')]['set'](_0x12f2e0,_0x1e2d8c);const _0xadf0d5=this[_0x2f99('0xa3')](_0x48151e);this[_0x2f99('0xb0')]['set'](_0x12f2e0,_0xadf0d5);for(const [_0x4be934,_0x8dc2c2]of _0x48151e[_0x2f99('0x60')]){if(!_0x4be934[_0x2f99('0xd8')]('revision:'))continue;const _0x296214=_0x4be934[_0x2f99('0x18')](':')[0x2];for(const _0x3b6f5c of _0x8dc2c2[_0x2f99('0x8a')]({'singleCharacters':!0x0})){const _0x480565=this[_0x2f99('0x4d')](_0x3b6f5c),_0x3df10b=_0x2f99('0x5b')==_0x3b6f5c[_0x2f99('0x4c')]?_0x3b6f5c[_0x2f99('0x28')][_0x2f99('0x37')]['slice'](0x0,-0x1):_0x3b6f5c[_0x2f99('0x28')][_0x2f99('0x37')],_0xb5870d=_0xadf0d5[_0x2f99('0x5c')](_0x3df10b)[_0x2f99('0xbb')](_0x480565);this[_0x2f99('0xd')]['set'](_0xb5870d,{'userId':_0x296214});}}}this['_startingRevisionId']=this[_0x2f99('0x7c')];const _0x4c5224=[...Array(this[_0x2f99('0x7c')])[_0x2f99('0x64')]()]['slice'](0x1)[_0x2f99('0x1')](_0x6b47e6=>!this[_0x2f99('0xd')][_0x2f99('0x94')](_0x6b47e6));let _0xe8f9a8=0x0;const _0x255d0e=new Map();for(const _0xb61377 in _0x2f6c2b[_0x2f99('0xcc')]){const _0x10e70c=_0x2f6c2b['diffData'][_0xb61377][_0x2f99('0xd7')],_0x4feb68=_0x4a4127(_0x2f6c2b[_0x2f99('0xcc')][_0xb61377]['attributesAfter'])||{},_0x5bf2a8=this[_0x2f99('0xc1')](_0x2f6c2b[_0x2f99('0xcc')][_0xb61377][_0x2f99('0x7b')]);_0x5bf2a8['rootName']=_0xb61377,_0x5bf2a8[_0x2f99('0x39')]=!_0x10e70c||_0x10e70c[_0x2f99('0x97')],_0x5bf2a8['isAttached']=()=>_0x5bf2a8[_0x2f99('0x39')],this[_0x2f99('0x78')]['set'](_0xb61377,_0x5bf2a8),this[_0x2f99('0x2')][_0x2f99('0xa1')](_0xb61377,_0x4feb68);const _0x48687b=this[_0x2f99('0xa3')](_0x5bf2a8,Number[_0x2f99('0x41')]);this['_idsRoots'][_0x2f99('0xa1')](_0xb61377,_0x48687b),_0x255d0e[_0x2f99('0xa1')](_0xb61377,_0x5bf2a8[_0x2f99('0x97')]()?_0x4feb68:{});for(const [_0xe0e94a,_0x250652]of _0x5bf2a8[_0x2f99('0x60')]){if(!_0xe0e94a[_0x2f99('0xd8')](_0x2f99('0x89')))continue;const _0xcf099=_0xe0e94a[_0x2f99('0x18')](':')[0x2];for(const _0x49af59 of _0x250652['getWalker']({'singleCharacters':!0x0})){const _0x113b77=this[_0x2f99('0x4d')](_0x49af59),_0x1c0339=this['_revisionId']++,_0x35304d=_0x2f99('0x5b')==_0x49af59[_0x2f99('0x4c')]?_0x49af59[_0x2f99('0x28')][_0x2f99('0x37')][_0x2f99('0xa')](0x0,-0x1):_0x49af59['previousPosition'][_0x2f99('0x37')];_0x48687b['getNodeByPath'](_0x35304d)[_0x2f99('0x81')](_0x113b77,_0x1c0339),this[_0x2f99('0xd')][_0x2f99('0xa1')](_0x1c0339,{'userId':_0xcf099});}}for(const _0x1fc83c of this['editor']['model']['createRangeIn'](_0x5bf2a8)[_0x2f99('0x8a')]({'singleCharacters':!0x0})){const _0x358e06=this[_0x2f99('0x4d')](_0x1fc83c),_0x391d0e=_0x2f99('0x5b')==_0x1fc83c['type']?_0x1fc83c[_0x2f99('0x28')][_0x2f99('0x37')][_0x2f99('0xa')](0x0,-0x1):_0x1fc83c[_0x2f99('0x28')][_0x2f99('0x37')],_0x5423b2=_0x48687b[_0x2f99('0x5c')](_0x391d0e);_0x5423b2['getAttribute'](_0x358e06)>0x0||_0x5423b2['_setAttribute'](_0x358e06,_0x4c5224[_0xe8f9a8++]);}for(const [_0x226a1b,_0x2e62f9]of _0x5bf2a8[_0x2f99('0x60')])_0x226a1b['startsWith'](_0x2f99('0x89'))||this['_markers'][_0x2f99('0xa1')](_0x226a1b,_0x2e62f9);}const _0xc5c715=G('$graveyard');this[_0x2f99('0x58')]['set'](_0x2f99('0x11'),_0xc5c715),this['_baseIdsRoots'][_0x2f99('0xa1')](_0x2f99('0x11'),this[_0x2f99('0xa3')](_0xc5c715,0x1));const _0x47a3ec=G(_0x2f99('0x11'));this['_diffRoots'][_0x2f99('0xa1')](_0x2f99('0x11'),_0x47a3ec),this[_0x2f99('0x12')]['set'](_0x2f99('0x11'),this['_makeIdsRoot'](_0x47a3ec,0x1));const _0x9d7521=Array['from'](this[_0x2f99('0x78')])[_0x2f99('0xf0')](([_0xb01f49,_0x1eb5aa])=>[_0xb01f49,q(_0x1eb5aa)]);this[_0x2f99('0xa7')](this[_0x2f99('0x9a')],_0x9d7521,this[_0x2f99('0x42')],_0x255d0e);}['_makeModelFromViewString'](_0x5c48ae){const _0x7104c1=JSON[_0x2f99('0x7')](_0x5c48ae),_0x1992c8=this['editor'][_0x2f99('0x0')][_0x2f99('0x21')][_0x2f99('0xb1')],_0x4ea161=new _0x3ea209(_0x1992c8,_0x7104c1['map'](_0x119f15=>J(_0x119f15,this[_0x2f99('0xab')])));return this[_0x2f99('0xab')][_0x2f99('0x8e')]['toModel'](_0x4ea161);}['_saveMetaData'](_0x2a265a,_0x415e8d,_0xfcff5e,_0x50114a){const _0x5a0495=new Map(_0x415e8d),_0x44e44d=new Map(_0x4a4127(_0x50114a)),_0x361def=new Map();for(const [_0x1b870d,_0xe0a042]of _0xfcff5e)_0x361def[_0x2f99('0xa1')](_0x1b870d,{'start':_0xe0a042[_0x2f99('0x54')]['clone'](),'end':_0xe0a042['end'][_0x2f99('0x35')](),'rootName':_0xe0a042[_0x2f99('0xff')][_0x2f99('0xa2')]});this[_0x2f99('0x32')][_0x2f99('0xa1')](_0x2a265a,{'roots':_0x5a0495,'markers':_0x361def,'rootsAttributes':_0x44e44d});}[_0x2f99('0x56')](_0x45e794){this[_0x2f99('0x32')][_0x2f99('0x27')](_0x45e794);}['reInit'](){this[_0x2f99('0x7a')](),this[_0x2f99('0x85')]=-0x1,this[_0x2f99('0x9a')]=-0x1,this[_0x2f99('0x32')][_0x2f99('0xf2')](),this[_0x2f99('0x76')](this['source']);}[_0x2f99('0x7a')](){this[_0x2f99('0xd')][_0x2f99('0xf2')](),this[_0x2f99('0x1d')][_0x2f99('0xf2')](),this['_touchedRoots']['clear'](),this[_0x2f99('0x78')][_0x2f99('0xf2')](),this['_diffRootsAttributes']['clear'](),this[_0x2f99('0x58')][_0x2f99('0xf2')](),this['_baseRootsAttributes'][_0x2f99('0xf2')](),this[_0x2f99('0x12')][_0x2f99('0xf2')](),this[_0x2f99('0xb0')]['clear'](),this[_0x2f99('0x42')][_0x2f99('0xf2')](),this[_0x2f99('0x7c')]=0x1,this[_0x2f99('0x47')]=this[_0x2f99('0x7c')];}[_0x2f99('0xa3')](_0x57e855,_0x296ac2=null){let _0x442212=null;_0x57e855['is']('documentFragment')||(_0x442212=new _0x5b9915(_0x57e855[_0x2f99('0xe')],{'vid_start':null===_0x296ac2?this['_revisionId']++:_0x296ac2++}));const _0x19dafc=[];for(const _0x4150c1 of _0x57e855[_0x2f99('0x92')]())if(_0x4150c1['is']('element')){_0x19dafc[_0x2f99('0xe0')](this['_makeIdsRoot'](_0x4150c1,_0x296ac2));const _0x2dac1c=_0x19dafc[_0x19dafc[_0x2f99('0xf9')]-0x1];null!==_0x296ac2&&(_0x296ac2=_0x2dac1c['is'](_0x2f99('0xb6'),_0x2f99('0xfb'))?_0x2dac1c['getAttribute'](_0x2f99('0x5d'))+0x1:_0x2dac1c['getAttribute'](_0x2f99('0x4a'))+0x1);}else for(let _0x18b6d0=0x0;_0x18b6d0<_0x4150c1['offsetSize'];_0x18b6d0++)_0x19dafc['push'](new _0x5b9915('$text',{'vid':null===_0x296ac2?this[_0x2f99('0x7c')]++:_0x296ac2++}));if(_0x57e855['is']('documentFragment')){const _0x1763fa=G(_0x57e855[_0x2f99('0xa2')]);return _0x1763fa[_0x2f99('0x2f')](0x0,_0x19dafc),_0x1763fa;}return _0x442212['_setAttribute'](_0x2f99('0x4a'),null===_0x296ac2?this[_0x2f99('0x7c')]++:_0x296ac2++),_0x442212[_0x2f99('0x2f')](0x0,_0x19dafc),_0x442212;}[_0x2f99('0x8f')](_0x36e056,_0x4ab4ce,_0x57f0f5){this[_0x2f99('0x7a')]();const {roots:_0x1df3d2,markers:_0x57d2fe,rootsAttributes:_0x1ba6ca}=this[_0x2f99('0x32')]['get'](_0x36e056);this['_baseRoots']=new Map(_0x1df3d2),this['_baseRootsAttributes']=new Map(_0x4a4127(_0x1ba6ca));for(const [_0x1c560b,_0xc780d9]of this['_baseRoots'])if(_0x2f99('0x11')!==_0x1c560b&&(this['_diffRoots'][_0x2f99('0xa1')](_0x1c560b,q(_0xc780d9)),this[_0x2f99('0x2')]=new Map(_0x4a4127(_0x1ba6ca)),_0x57f0f5)){const _0x4b5bdf=this[_0x2f99('0x7c')];this['_idsRoots'][_0x2f99('0xa1')](_0x1c560b,this[_0x2f99('0xa3')](_0xc780d9)),this[_0x2f99('0xb0')]['set'](_0x1c560b,this[_0x2f99('0xa3')](_0xc780d9,_0x4b5bdf));}this[_0x2f99('0x47')]=this['_revisionId'],this['_diffRoots']['set'](_0x2f99('0x11'),q(this[_0x2f99('0x58')][_0x2f99('0x51')](_0x2f99('0x11')))),_0x57f0f5&&this['_idsRoots'][_0x2f99('0xa1')]('$graveyard',this['_makeIdsRoot'](this[_0x2f99('0x58')][_0x2f99('0x51')](_0x2f99('0x11'))));for(const [_0x2a9699,_0x2427cf]of _0x57d2fe){const _0x4bb832=this[_0x2f99('0x58')][_0x2f99('0x51')](_0x2427cf[_0x2f99('0xa2')]),_0x48e0d6=this[_0x2f99('0x78')][_0x2f99('0x51')](_0x2427cf[_0x2f99('0xa2')]),_0x87d41a=new _0x4f257e(this[_0x2f99('0x70')](_0x2427cf['start'],_0x4bb832),this[_0x2f99('0x70')](_0x2427cf['end'],_0x4bb832)),_0x32c6d5=this['_fixRange'](_0x87d41a,_0x48e0d6);_0x4bb832[_0x2f99('0x60')][_0x2f99('0xa1')](_0x2a9699,_0x87d41a),this['_markers'][_0x2f99('0xa1')](_0x2a9699,_0x32c6d5);}this[_0x2f99('0x3a')](_0x36e056,_0x4ab4ce,_0x57f0f5);}[_0x2f99('0x3a')](_0x2a34dd,_0x149a35,_0x1244d9){for(const _0xe1fffc of this[_0x2f99('0x8b')][_0x2f99('0x7f')](_0x2a34dd,_0x149a35))this[_0x2f99('0x6a')](_0xe1fffc,_0x1244d9);for(const _0xbb9161 of this[_0x2f99('0x78')][_0x2f99('0x77')]())_0xbb9161[_0x2f99('0x60')][_0x2f99('0xf2')]();for(const [_0x13b67e,_0x52359d]of this[_0x2f99('0x42')]){this['_diffRoots'][_0x2f99('0x51')](_0x52359d[_0x2f99('0xff')][_0x2f99('0xa2')])['markers'][_0x2f99('0xa1')](_0x13b67e,_0x52359d[_0x2f99('0x35')]());}const _0x12a2df=new Map(),_0x22b924=new Map();for(const [_0x2e3ca1,_0x12e061]of this['_diffRoots'])_0x12a2df['set'](_0x2e3ca1,q(_0x12e061)),_0x22b924['set'](_0x2e3ca1,this[_0x2f99('0x2')][_0x2f99('0x51')](_0x2e3ca1));this['_saveMetaData'](_0x149a35,_0x12a2df,this['_markers'],_0x22b924);}[_0x2f99('0x5e')](_0x515dab){const _0x1318c2=Array[_0x2f99('0x61')](this[_0x2f99('0x32')][_0x2f99('0x64')]());_0x1318c2[_0x2f99('0xa6')]((_0x531ab8,_0x42635b)=>_0x531ab8-_0x42635b),_0x1318c2[_0x2f99('0xe6')]();for(const _0x14ba12 of _0x1318c2)if(_0x14ba12<_0x515dab)return _0x14ba12;return Number[_0x2f99('0x41')];}[_0x2f99('0x40')](_0x21c89b,_0xadbf29){const _0x56b8b5=Array[_0x2f99('0x61')](_0xadbf29[_0x2f99('0x60')])['map'](([_0x2a6284,_0x340a75])=>[_0x2a6284,this[_0x2f99('0x90')](_0x340a75,_0x21c89b)]);_0x21c89b[_0x2f99('0x60')]=new Map(_0x56b8b5);}[_0x2f99('0xcd')](_0x1d0cf2){for(const _0x24ac27 of this['_markers']['values']()){const _0x5415e8=_0x24ac27[_0x2f99('0xda')](_0x1d0cf2),_0x221cfe=_0x4f257e[_0x2f99('0x4f')](_0x5415e8);_0x24ac27[_0x2f99('0x54')]=_0x221cfe['start'],_0x24ac27[_0x2f99('0xc2')]=_0x221cfe[_0x2f99('0xc2')];}}[_0x2f99('0x6a')](_0x24066f,_0x48dd3c){if('addRoot'==_0x24066f[_0x2f99('0x4c')]||_0x2f99('0xef')==_0x24066f['type'])return void this[_0x2f99('0x10')](_0x24066f,_0x48dd3c);if(_0x2f99('0xa4')==_0x24066f[_0x2f99('0x4c')]){const _0xf34028=_0x24066f[_0x2f99('0x26')][_0x2f99('0xff')][_0x2f99('0xa2')];this[_0x2f99('0x78')][_0x2f99('0x94')](_0xf34028)||(this[_0x2f99('0x78')]['set'](_0xf34028,G(_0xf34028,!0x0)),this['_diffRootsAttributes'][_0x2f99('0xa1')](_0xf34028,{}),_0x48dd3c&&this[_0x2f99('0x12')][_0x2f99('0xa1')](_0xf34028,G(_0xf34028,!0x0)));}else{if(_0x2f99('0xc8')==_0x24066f[_0x2f99('0x4c')]||_0x2f99('0x103')==_0x24066f[_0x2f99('0x4c')]||'changeRootAttribute'==_0x24066f[_0x2f99('0x4c')])return void this[_0x2f99('0x6')](_0x24066f);}const _0x16bd78=this[_0x2f99('0xca')](_0x24066f,this[_0x2f99('0x78')]);if(_0x2f99('0xc6')!==_0x24066f[_0x2f99('0x4c')]&&(_0x16bd78[_0x2f99('0xf1')](),this[_0x2f99('0xcd')](_0x16bd78)),_0x48dd3c)switch(_0x16bd78[_0x2f99('0x4c')]){case _0x2f99('0xa4'):this['_handleInsertOperation'](_0x24066f);break;case'move':case _0x2f99('0xea'):case'reinsert':this[_0x2f99('0xb2')](_0x24066f);break;case _0x2f99('0xfa'):this[_0x2f99('0xbd')](_0x24066f);break;case _0x2f99('0x18'):this[_0x2f99('0x74')](_0x24066f);break;case _0x2f99('0xc6'):this['_handleMarkerOperation'](_0x24066f);}}[_0x2f99('0xca')](_0x4509b6,_0x1407f5){const _0x4ecbb7=_0x4509b6['clone']();return _0x4ecbb7[_0x2f99('0x20')]=_0x4509b6[_0x2f99('0x20')],this[_0x2f99('0x23')](_0x4ecbb7,_0x1407f5),_0x4ecbb7;}['_getBaseVids'](_0x5145ae){return _0x5145ae[_0x2f99('0xf0')](_0x52d663=>{const _0x2b95de=this[_0x2f99('0x4d')](_0x52d663);return Number(_0x52d663[_0x2f99('0x9')][_0x2f99('0xbb')](_0x2b95de));});}[_0x2f99('0x3')](_0x540d46,_0x440668){if(_0x540d46['is']('element',_0x2f99('0xfb')))_0x440668['push']({'item':_0x540d46,'type':_0x2f99('0x8c')});else{_0x540d46['is']('element')&&_0x440668['push']({'item':_0x540d46,'type':_0x2f99('0x17')});for(const _0x45fe85 of _0x540d46['getChildren']())this[_0x2f99('0x3')](_0x45fe85,_0x440668);_0x540d46['is']('element')&&_0x440668[_0x2f99('0xe0')]({'item':_0x540d46,'type':_0x2f99('0x5b')});}return _0x440668;}[_0x2f99('0x9c')](){const _0x3bff3d=new Map(this[_0x2f99('0xd')]),_0x57ac71=new Map(_0x3bff3d),_0x4506ed=new Map(),_0x521b23={'insertions':{},'deletions':{}},_0x247a93={'insertions':{},'deletions':{}},_0x5582fe=new Map(),_0x3d8feb=new Set([...this['_baseRoots'][_0x2f99('0x64')](),...this[_0x2f99('0x78')]['keys']()]);_0x3d8feb[_0x2f99('0x27')](_0x2f99('0x11'));for(const _0x3702b4 of _0x3d8feb){const _0x55379a=this['_diffRoots'][_0x2f99('0x51')](_0x3702b4)||G(_0x3702b4,!0x1),_0x15bac0=this[_0x2f99('0x58')][_0x2f99('0x51')](_0x3702b4)||G(_0x3702b4,!0x1);_0x55379a[_0x2f99('0x97')]()||_0x15bac0[_0x2f99('0x97')]()?(_0x521b23[_0x2f99('0x7b')][_0x3702b4]=q(_0x55379a),_0x521b23[_0x2f99('0xf7')][_0x3702b4]=q(_0x15bac0),this[_0x2f99('0x40')](_0x521b23['deletions'][_0x3702b4],_0x15bac0),this[_0x2f99('0x40')](_0x521b23[_0x2f99('0x7b')][_0x3702b4],_0x55379a),_0x247a93['insertions'][_0x3702b4]=this[_0x2f99('0x3')](this['_idsRoots'][_0x2f99('0x51')](_0x3702b4),[]),_0x247a93[_0x2f99('0xf7')][_0x3702b4]=this['_generateTape'](this[_0x2f99('0xb0')]['get'](_0x3702b4)||G(_0x3702b4,!0x1),[])):_0x3d8feb[_0x2f99('0x27')](_0x3702b4);}for(const _0x491ecd of _0x3d8feb){const _0x29e100=_0x247a93[_0x2f99('0x7b')][_0x491ecd];for(const _0x53056 of _0x29e100){const _0x40300e=this['_getVidAttributeName'](_0x53056),_0x1b3c4f=_0x53056['item'][_0x2f99('0xbb')](_0x40300e);_0x57ac71[_0x2f99('0x27')](_0x1b3c4f),_0x1b3c4f>=this[_0x2f99('0x47')]&&_0x4506ed['set'](_0x1b3c4f,_0x3bff3d['get'](_0x1b3c4f));}}for(const _0x5403ed of _0x3d8feb){const _0x24037b=_0x247a93[_0x2f99('0x7b')][_0x5403ed],_0x5e54ca=this[_0x2f99('0xe5')](_0x247a93[_0x2f99('0xf7')][_0x5403ed]);let _0x1b681e=0x0;for(const _0x277afc of _0x24037b){const _0xfe1471=this[_0x2f99('0x4d')](_0x277afc),_0x4a4f77=_0x277afc['item'][_0x2f99('0xbb')](_0xfe1471);if(!_0x4506ed[_0x2f99('0x94')](_0x4a4f77)&&!_0x5582fe[_0x2f99('0x94')](_0x4a4f77)){if(_0x57ac71[_0x2f99('0x94')](_0x4a4f77))_0x1b681e++;else{if(_0x4a4f77!=_0x5e54ca[_0x1b681e]){const _0x4b09dd=_0x3bff3d[_0x2f99('0x51')](_0x4a4f77)||_0x3bff3d[_0x2f99('0x51')](_0x5e54ca[_0x1b681e]);for(;_0x4a4f77!=_0x5e54ca[_0x1b681e];)_0x57ac71['has'](_0x5e54ca[_0x1b681e])||(_0x5582fe[_0x2f99('0xa1')](_0x5e54ca[_0x1b681e],_0x4b09dd),_0x3bff3d[_0x2f99('0xa1')](_0x5e54ca[_0x1b681e],_0x4b09dd)),_0x1b681e++;}_0x1b681e++;}}}}for(const _0x26d296 of _0x3d8feb){const _0x53bc4f=_0x247a93[_0x2f99('0x7b')][_0x26d296];for(const _0x302cd4 of _0x53bc4f){const _0x19f80c=this[_0x2f99('0x4d')](_0x302cd4),_0x4157e9=_0x302cd4[_0x2f99('0x9')]['getAttribute'](_0x19f80c);if(_0x5582fe[_0x2f99('0x94')](_0x4157e9)){const _0x2d1014=_0x5582fe['get'](_0x4157e9);_0x57ac71[_0x2f99('0x94')](_0x4157e9)||_0x57ac71[_0x2f99('0xa1')](_0x4157e9,{..._0x2d1014}),_0x4506ed[_0x2f99('0xa1')](_0x4157e9,{..._0x2d1014});}}}for(const _0x44a9ea of _0x57ac71[_0x2f99('0x64')]())_0x44a9ea>=this[_0x2f99('0x47')]&&_0x57ac71[_0x2f99('0x27')](_0x44a9ea);const _0x42bc84=new Map();for(const _0x2765e5 of _0x3d8feb){let _0x373be8=_0x247a93[_0x2f99('0x7b')][_0x2765e5];for(const _0x392a94 of _0x373be8)if(_0x392a94['item']['is'](_0x2f99('0xb6'),_0x2f99('0x55'))){const _0x5965c9=this['_getVidAttributeName'](_0x392a94),_0x2b0c13=_0x392a94[_0x2f99('0x9')][_0x2f99('0xbb')](_0x5965c9);if(_0x4506ed[_0x2f99('0x94')](_0x2b0c13)){const _0x4df578=_0x392a94[_0x2f99('0x9')][_0x2f99('0x34')]['parent'][_0x2f99('0xbb')](_0x2f99('0xdd')),_0x1e6774=_0x42bc84[_0x2f99('0x51')](_0x4df578)||new Set();_0x1e6774[_0x2f99('0x43')](_0x4506ed['get'](_0x2b0c13)['userId']),_0x42bc84[_0x2f99('0xa1')](_0x4df578,_0x1e6774);}}_0x373be8=_0x247a93[_0x2f99('0xf7')][_0x2765e5];for(const _0x1d9f09 of _0x373be8)if(_0x1d9f09[_0x2f99('0x9')]['is'](_0x2f99('0xb6'),_0x2f99('0x55'))){const _0x227165=this[_0x2f99('0x4d')](_0x1d9f09),_0x339e9f=_0x1d9f09[_0x2f99('0x9')][_0x2f99('0xbb')](_0x227165);if(_0x57ac71[_0x2f99('0x94')](_0x339e9f)){const _0x591377=_0x1d9f09['item'][_0x2f99('0x34')][_0x2f99('0x34')]['getAttribute'](_0x2f99('0xdd')),_0x1472b8=_0x42bc84[_0x2f99('0x51')](_0x591377)||new Set();_0x1472b8[_0x2f99('0x43')](_0x57ac71[_0x2f99('0x51')](_0x339e9f)['userId']),_0x42bc84[_0x2f99('0xa1')](_0x591377,_0x1472b8);}}for(const _0x413fe5 of _0x42bc84[_0x2f99('0x64')]())(_0x4506ed[_0x2f99('0x94')](_0x413fe5)||_0x57ac71['has'](_0x413fe5))&&_0x42bc84[_0x2f99('0x27')](_0x413fe5);}for(const _0x36faea of _0x3d8feb){const _0xc37d4f=_0x247a93['insertions'][_0x36faea];let _0x11217f=null,_0x2a5845=null;for(const _0x19c40c of _0xc37d4f){const _0x37df25=this[_0x2f99('0x4d')](_0x19c40c),_0x49f28e=_0x19c40c[_0x2f99('0x9')]['getAttribute'](_0x37df25),_0x3cfbd6=_0x42bc84[_0x2f99('0x51')](_0x49f28e);_0x3cfbd6&&_0x2f99('0x17')==_0x19c40c[_0x2f99('0x4c')]&&(_0x11217f=Array[_0x2f99('0x61')](_0x3cfbd6)[0x0],_0x2a5845=_0x19c40c[_0x2f99('0x9')][_0x2f99('0xbb')](_0x2f99('0x4a'))),_0x11217f&&(_0x57ac71['set'](_0x49f28e,{'userId':_0x11217f}),_0x4506ed[_0x2f99('0xa1')](_0x49f28e,{'userId':_0x11217f})),_0x49f28e==_0x2a5845&&(_0x11217f=null,_0x2a5845=null);}}const _0x1822a1={},_0x5a5036=new Set();for(const _0x3cf246 of _0x3d8feb){const _0x2ef129=_0x521b23[_0x2f99('0xf7')][_0x3cf246],_0x3f528d=_0x521b23[_0x2f99('0x7b')][_0x3cf246];for(const {userId:_0x3a2cf8}of this[_0x2f99('0x1d')][_0x2f99('0x77')]())null!==_0x3a2cf8&&_0x5a5036[_0x2f99('0x43')](_0x3a2cf8);for(const {userId:_0x334c5f}of this['_touchedRoots']['values']())null!==_0x334c5f&&_0x5a5036['add'](_0x334c5f);this[_0x2f99('0x29')](_0x3f528d,_0x247a93['insertions'][_0x3cf246],_0x4506ed,'insertion',_0x5a5036),this[_0x2f99('0x29')](_0x2ef129,_0x247a93[_0x2f99('0xf7')][_0x3cf246],_0x57ac71,_0x2f99('0xae'),_0x5a5036),_0x1822a1[_0x3cf246]={'insertions':this['_prepareViewToSave'](_0x3f528d),'deletions':this[_0x2f99('0x7e')](_0x2ef129),'attachChange':this[_0x2f99('0xdc')]['get'](_0x3cf246)||null,'attributesBefore':_0x4a4127(this[_0x2f99('0x1e')][_0x2f99('0x51')](_0x3cf246))||{},'attributesAfter':_0x4a4127(this['_diffRootsAttributes'][_0x2f99('0x51')](_0x3cf246))};}return{'diffData':_0x1822a1,'authorsIds':Array['from'](_0x5a5036)};}['_processRootBeforeSave'](_0xa0bb8a){for(const [,_0x553c76]of _0xa0bb8a[_0x2f99('0x60')]){const _0x536118=_0x553c76[_0x2f99('0x54')][_0x2f99('0xa9')]()[_0x2f99('0x1')](_0x52ad13=>'tableCell'==_0x52ad13[_0x2f99('0xe')]);for(const _0x12b323 of _0x536118)0x1==_0x12b323[_0x2f99('0x19')]&&_0x12b323['getChild'](0x0)['is'](_0x2f99('0xb6'),_0x2f99('0xd2'))&&_0x12b323[_0x2f99('0xd0')](0x0)['_setAttribute'](_0x2f99('0x3d'),!0x0);}}['_prepareViewToSave'](_0x5d109c){this['_processRootBeforeSave'](_0x5d109c);const _0x5d09be=this['editor']['data'][_0x2f99('0x4e')](_0x5d109c,{}),_0x35a44c=Array[_0x2f99('0x61')](_0x5d09be[_0x2f99('0x92')]())[_0x2f99('0xf0')](_0x24235f=>this[_0x2f99('0xd9')](_0x24235f));return JSON[_0x2f99('0x83')](_0x35a44c);}[_0x2f99('0xd9')](_0x46f38a){if(_0x46f38a['is']('$text'))return _0x46f38a[_0x2f99('0x8e')];{const _0x21f533=_0x46f38a;return{'type':Object[_0x2f99('0x64')](B)[_0x2f99('0xfc')](_0x53ca30=>_0x46f38a instanceof B[_0x53ca30]),'name':_0x21f533['name'],'attributes':Array['from'](_0x21f533[_0x2f99('0x102')]()),'children':Array[_0x2f99('0x61')](_0x21f533['getChildren']())[_0x2f99('0xf0')](_0x129eed=>this[_0x2f99('0xd9')](_0x129eed))};}}['_markChanges'](_0x4e494b,_0xcb9e16,_0x3cd0a8,_0x5c6c6f,_0x51ea08){let _0x1d873e=null,_0x32db46=null,_0x49e369=0x0;const _0x10357d=this[_0x2f99('0xab')][_0x2f99('0x30')];for(let _0x494590=0x0;_0x494590<_0xcb9e16[_0x2f99('0xf9')];_0x494590++){const _0x44378b=this[_0x2f99('0x4d')](_0xcb9e16[_0x494590]),_0x1c9d20=_0xcb9e16[_0x494590]['item'][_0x2f99('0xbb')](_0x44378b),_0x498a61=_0x3cd0a8[_0x2f99('0x51')](_0x1c9d20),_0x223b9d=_0x494590==_0xcb9e16[_0x2f99('0xf9')]-0x1;(!_0x1d873e&&_0x498a61&&(_0x1d873e=_0x498a61,_0x32db46=_0xcb9e16[_0x494590]),_0x1d873e&&(!_0x498a61||_0x498a61[_0x2f99('0xc3')]!=_0x1d873e['userId']))&&(_0x2ea77f(_0x498a61,L(_0x32db46,_0x4e494b,_0x10357d),L(_0xcb9e16[_0x494590],_0x4e494b,_0x10357d)),_0x1d873e=_0x498a61||null,_0x32db46=_0x498a61?_0xcb9e16[_0x494590]:null),_0x1d873e&&_0x223b9d&&_0x2ea77f(_0x498a61,L(_0x32db46,_0x4e494b,_0x10357d),W(_0xcb9e16[_0x494590],_0x4e494b,_0x10357d));}function _0x2ea77f(_0x4da8fa,_0x6e5117,_0x57c504){const _0x41f3ce=_0x1d873e[_0x2f99('0xc3')],_0x214e2f='revision:'+_0x5c6c6f+':'+_0x41f3ce+':'+_0x49e369++,_0x4c74c8=_0x10357d[_0x2f99('0x46')](_0x6e5117,_0x57c504);_0x4e494b[_0x2f99('0x60')][_0x2f99('0xa1')](_0x214e2f,_0x4c74c8),null!==_0x41f3ce&&_0x51ea08[_0x2f99('0x43')](_0x41f3ce);}}[_0x2f99('0x4d')](_0x24fdb5){switch(_0x24fdb5[_0x2f99('0x4c')]){case _0x2f99('0x17'):return _0x2f99('0xdd');case _0x2f99('0x5b'):return _0x2f99('0x4a');default:return _0x2f99('0x5d');}}['_fixOperation'](_0x2ffaca,_0x1fa36d){_0x2ffaca[_0x2f99('0x1b')]=null;for(const _0x3a1e68 in _0x2ffaca){const _0x91d469=_0x2ffaca[_0x3a1e68];if(_0x91d469 instanceof _0x327957){const _0x154642=_0x1fa36d[_0x2f99('0x51')](_0x91d469['root']['rootName']);_0x2ffaca[_0x3a1e68]=this['_fixPosition'](_0x91d469,_0x154642);}if(_0x91d469 instanceof _0x4f257e){const _0x34367a=_0x1fa36d['get'](_0x91d469['root'][_0x2f99('0xa2')]);_0x2ffaca[_0x3a1e68]=this[_0x2f99('0x90')](_0x91d469,_0x34367a);}_0x2f99('0xff')===_0x3a1e68&&(_0x2ffaca[_0x2f99('0xff')]=_0x1fa36d[_0x2f99('0x51')](_0x2ffaca[_0x2f99('0xff')]['rootName']));}}['_fixRange'](_0x2a63ab,_0xd59a62){return this[_0x2f99('0xab')][_0x2f99('0x30')][_0x2f99('0x46')](this[_0x2f99('0x70')](_0x2a63ab[_0x2f99('0x54')],_0xd59a62),this[_0x2f99('0x70')](_0x2a63ab[_0x2f99('0xc2')],_0xd59a62));}[_0x2f99('0x70')](_0x53e8b4,_0x26c43a){return this[_0x2f99('0xab')][_0x2f99('0x30')]['createPositionFromPath'](_0x26c43a,_0x53e8b4[_0x2f99('0x37')],_0x53e8b4[_0x2f99('0xbe')]);}[_0x2f99('0x4')](_0x503a4f){const _0x5ec54a=this[_0x2f99('0x12')][_0x2f99('0x51')](_0x503a4f[_0x2f99('0x26')][_0x2f99('0xff')][_0x2f99('0xa2')]),_0x4bb22d=this[_0x2f99('0x70')](_0x503a4f[_0x2f99('0x26')],_0x5ec54a),_0x32dd92=null===_0x503a4f['_authorId']?null:_0x503a4f['_authorId']||this[_0x2f99('0xab')][_0x2f99('0xd1')][_0x2f99('0x51')](_0x2f99('0xa5'))['me']['id'],_0xb8886=_0x4bb22d[_0x2f99('0x34')],_0x4ceea1=this[_0x2f99('0x7c')],_0x4ea8a9=[];for(const _0x16337c of _0x503a4f['nodes'])if(_0x16337c['is'](_0x2f99('0xb6')))_0x4ea8a9[_0x2f99('0xe0')](this['_makeIdsRoot'](_0x16337c));else for(let _0x509a5d=0x0;_0x509a5d<_0x16337c[_0x2f99('0x24')];_0x509a5d++)_0x4ea8a9['push'](new _0x5b9915(_0x2f99('0xfb'),{'vid':this[_0x2f99('0x7c')]++}));const _0x1339b8=this[_0x2f99('0x7c')];for(let _0x1fe344=_0x4ceea1;_0x1fe344<_0x1339b8;_0x1fe344++)this[_0x2f99('0xd')]['set'](_0x1fe344,{'userId':_0x32dd92});_0xb8886[_0x2f99('0x2f')](_0x4bb22d[_0x2f99('0x88')],_0x4ea8a9);}[_0x2f99('0xb2')](_0x2027fd){(_0x2027fd=this[_0x2f99('0xca')](_0x2027fd,this[_0x2f99('0x12')]))['_execute']();const _0x4a267e=null===_0x2027fd['_authorId']?null:_0x2027fd[_0x2f99('0x20')]||this['editor'][_0x2f99('0xd1')]['get'](_0x2f99('0xa5'))['me']['id'],_0x2858bf=_0x2027fd[_0x2f99('0x62')](),_0x3523bc=_0x2858bf[_0x2f99('0x34')],_0x5ca570=_0x2858bf['offset'];!function _0x4ed1e5(_0x5d58c8,_0x2c228e,_0x5b53f7,_0x137508){for(let _0x165b8e=_0x5b53f7;_0x165b8e<_0x137508;_0x165b8e++){const _0x3f4178=_0x2c228e[_0x2f99('0xd0')](_0x165b8e);_0x3f4178['is'](_0x2f99('0xb6'),_0x2f99('0xfb'))?_0x5d58c8[_0x2f99('0xa1')](_0x3f4178[_0x2f99('0xbb')](_0x2f99('0x5d')),{'userId':_0x4a267e}):(_0x5d58c8[_0x2f99('0xa1')](_0x3f4178[_0x2f99('0xbb')](_0x2f99('0xdd')),{'userId':_0x4a267e}),_0x4ed1e5(_0x5d58c8,_0x3f4178,0x0,_0x3f4178[_0x2f99('0x19')]),_0x5d58c8['set'](_0x3f4178[_0x2f99('0xbb')](_0x2f99('0x4a')),{'userId':_0x4a267e}));}}(this[_0x2f99('0xd')],_0x3523bc,_0x5ca570,_0x5ca570+_0x2027fd[_0x2f99('0x104')]);}[_0x2f99('0xbd')](_0x18cc1c){const _0x165939=null===(_0x18cc1c=this['_cloneOperation'](_0x18cc1c,this[_0x2f99('0x12')]))[_0x2f99('0x20')]?null:_0x18cc1c['_authorId']||this[_0x2f99('0xab')][_0x2f99('0xd1')][_0x2f99('0x51')](_0x2f99('0xa5'))['me']['id'],_0x3dab43=_0x18cc1c[_0x2f99('0x5f')][_0x2f99('0x34')],_0x2bd1bf=_0x18cc1c[_0x2f99('0x49')][_0x2f99('0x34')],_0x31ff2e=_0x3dab43[_0x2f99('0xbb')]('vid_end'),_0x44a281=_0x2bd1bf[_0x2f99('0xbb')](_0x2f99('0xdd'));_0x3dab43[_0x2f99('0x81')](_0x2f99('0x4a'),_0x2bd1bf[_0x2f99('0xbb')]('vid_end')),_0x2bd1bf[_0x2f99('0x81')](_0x2f99('0x4a'),_0x31ff2e),this['_touched'][_0x2f99('0xa1')](_0x44a281,{'userId':_0x165939}),this[_0x2f99('0xd')][_0x2f99('0xa1')](_0x31ff2e,{'userId':_0x165939}),_0x18cc1c[_0x2f99('0xf1')]();}['_handleSplitOperation'](_0x4afbbc){const _0x405caa=null===(_0x4afbbc=this[_0x2f99('0xca')](_0x4afbbc,this[_0x2f99('0x12')]))[_0x2f99('0x20')]?null:_0x4afbbc[_0x2f99('0x20')]||this['editor']['plugins'][_0x2f99('0x51')](_0x2f99('0xa5'))['me']['id'],_0x44956a=_0x4afbbc[_0x2f99('0x33')],_0x5c2475=_0x4afbbc[_0x2f99('0xad')][_0x2f99('0x34')];_0x4afbbc[_0x2f99('0xf1')]();const _0x4d7c8c=_0x5c2475['getAttribute'](_0x2f99('0x4a')),_0x205130=_0x4afbbc['insertionPosition'][_0x2f99('0x9b')];if(_0x44956a){const _0x1d0070=_0x205130[_0x2f99('0xbb')]('vid_end'),_0x21b76f=_0x5c2475[_0x2f99('0xbb')]('vid_end');_0x5c2475[_0x2f99('0x81')](_0x2f99('0x4a'),_0x1d0070),_0x205130['_setAttribute'](_0x2f99('0x4a'),_0x21b76f),this[_0x2f99('0xd')][_0x2f99('0xa1')](_0x5c2475[_0x2f99('0xbb')]('vid_end'),{'userId':_0x405caa}),this[_0x2f99('0xd')]['set'](_0x205130[_0x2f99('0xbb')](_0x2f99('0xdd')),{'userId':_0x405caa});}else{const _0x1a312d=this[_0x2f99('0x7c')]++,_0x17e410=this[_0x2f99('0x7c')]++;_0x5c2475[_0x2f99('0x81')](_0x2f99('0x4a'),_0x1a312d),_0x205130[_0x2f99('0x81')](_0x2f99('0xdd'),_0x17e410),_0x205130[_0x2f99('0x81')](_0x2f99('0x4a'),_0x4d7c8c),this['_touched']['set'](_0x1a312d,{'userId':_0x405caa}),this[_0x2f99('0xd')]['set'](_0x17e410,{'userId':_0x405caa});}}[_0x2f99('0xe4')](_0x39e780){if(!_0x39e780[_0x2f99('0x87')])return;const _0x44b08f=(_0x39e780=this[_0x2f99('0xca')](_0x39e780,this[_0x2f99('0x78')]))['oldRange']?_0x39e780[_0x2f99('0xb5')][_0x2f99('0xff')]:null,_0x58fe8b=_0x39e780['newRange']?_0x39e780['newRange'][_0x2f99('0xff')]:null;_0x44b08f&&this[_0x2f99('0x42')]['delete'](_0x39e780[_0x2f99('0xe')]),_0x58fe8b&&this['_markers']['set'](_0x39e780[_0x2f99('0xe')],_0x39e780[_0x2f99('0x1a')][_0x2f99('0x35')]());const _0x1d684c=null===_0x39e780['_authorId']?null:_0x39e780[_0x2f99('0x20')]||this[_0x2f99('0xab')][_0x2f99('0xd1')]['get']('Users')['me']['id'],_0x535d3b=_0x39e780[_0x2f99('0xe')];if(!this[_0x2f99('0x1d')]['has'](_0x535d3b))return void this[_0x2f99('0x1d')][_0x2f99('0xa1')](_0x535d3b,{'range':_0x39e780[_0x2f99('0xb5')],'userId':_0x1d684c});const _0x1b309e=this[_0x2f99('0x1d')]['get'](_0x535d3b),_0x54af48=_0x1b309e[_0x2f99('0x3b')],_0x45fbf6=_0x39e780[_0x2f99('0x1a')];null==_0x54af48&&null==_0x45fbf6||_0x54af48&&_0x45fbf6&&_0x54af48[_0x2f99('0xec')](_0x45fbf6)?this['_touchedMarkers'][_0x2f99('0x27')](_0x39e780['name']):_0x1b309e[_0x2f99('0xc3')]=_0x1d684c;}['_handleRootOperation'](_0x11c224,_0x5aa779){this[_0x2f99('0x78')][_0x2f99('0x94')](_0x11c224[_0x2f99('0xa2')])?this[_0x2f99('0x78')]['get'](_0x11c224[_0x2f99('0xa2')])[_0x2f99('0x39')]=_0x11c224[_0x2f99('0x79')]:(this['_diffRoots'][_0x2f99('0xa1')](_0x11c224[_0x2f99('0xa2')],G(_0x11c224[_0x2f99('0xa2')],!0x0)),this[_0x2f99('0x2')]['set'](_0x11c224[_0x2f99('0xa2')],{}),_0x5aa779&&this[_0x2f99('0x12')][_0x2f99('0xa1')](_0x11c224[_0x2f99('0xa2')],G(_0x11c224[_0x2f99('0xa2')],!0x0)));const _0x21b4b1=null===_0x11c224[_0x2f99('0x20')]?null:_0x11c224['_authorId']||this[_0x2f99('0xab')][_0x2f99('0xd1')][_0x2f99('0x51')](_0x2f99('0xa5'))['me']['id'],_0x477727=this['_touchedRoots']['get'](_0x11c224['rootName']);_0x477727&&_0x477727[_0x2f99('0xc3')]===_0x21b4b1?this[_0x2f99('0xdc')][_0x2f99('0x27')](_0x11c224[_0x2f99('0xa2')]):this['_touchedRoots'][_0x2f99('0xa1')](_0x11c224[_0x2f99('0xa2')],{'userId':_0x21b4b1,'isAttached':_0x11c224['isAdd']});}[_0x2f99('0x6')](_0x5d7361){const _0x143a1e=this[_0x2f99('0x2')][_0x2f99('0x51')](_0x5d7361['root'][_0x2f99('0xa2')]);null===_0x5d7361[_0x2f99('0x48')]?delete _0x143a1e[_0x5d7361[_0x2f99('0xe7')]]:_0x143a1e[_0x5d7361[_0x2f99('0xe7')]]=_0x5d7361[_0x2f99('0x48')];}}function q(_0x30d8cd){const _0x519021=G(_0x30d8cd[_0x2f99('0xa2')],_0x30d8cd[_0x2f99('0x97')]());for(const _0x7f03cf of _0x30d8cd[_0x2f99('0x92')]()){const _0x9f0aa2=_0x7f03cf['_clone'](!0x0);_0x519021['_appendChild'](_0x9f0aa2);}return _0x519021;}function G(_0x1067f4,_0x56bff7=!0x0){const _0x1150f1=new _0x5cc77d();return _0x1150f1[_0x2f99('0xa2')]=_0x1067f4,_0x1150f1[_0x2f99('0x39')]=_0x56bff7,_0x1150f1[_0x2f99('0x97')]=()=>_0x1150f1['_isAttached'],_0x1150f1;}function L(_0x4aa07b,_0x462204,_0x4785d6){const _0x3d41d4=_0x2f99('0x5b')==_0x4aa07b[_0x2f99('0x4c')]?_0x4785d6['createPositionAt'](_0x4aa07b[_0x2f99('0x9')],_0x2f99('0xc2')):_0x4785d6[_0x2f99('0x80')](_0x4aa07b['item']);return _0x4785d6[_0x2f99('0x69')](_0x462204,_0x3d41d4['path'],_0x3d41d4[_0x2f99('0xbe')]);}function W(_0x1820d3,_0x22bb8c,_0x3430fe){const _0x4aa286=_0x2f99('0x17')==_0x1820d3[_0x2f99('0x4c')]?_0x3430fe[_0x2f99('0xf')](_0x1820d3[_0x2f99('0x9')],0x0):_0x3430fe[_0x2f99('0x100')](_0x1820d3['item']);return _0x3430fe[_0x2f99('0x69')](_0x22bb8c,_0x4aa286[_0x2f99('0x37')],_0x4aa286[_0x2f99('0xbe')]);}
23
+ const _0xe1ab=['some','push','getTransformedByOperation','setSource','type','$graveyard','nodes','_revisionDataBuilder','_copyMarkers','rootsAttributes','_removeMetaData','getChild','model','then','attributes','updateRevisions','source','collaboration.channelId','sendBufferedUpdates','hasContent','ready','initialData','processor','_baseRoots','paragraph','vid','elementStart','getLatestVersion','stringify','getTime','isAttached','_makeIdsRoot','$text','get','define','_applyOperations','_handleRootOperation','update','_diffRootsAttributes','pluginName','_operations','includes','_lastFrom','shift','insert','document','_touchedMarkers','parent','getUser','_loadRevisionData','_getBaseVids','filter','isAdd','elementEnd','NEGATIVE_INFINITY','getAttribute','removeRootAttribute','createPositionAfter','tableCell','history','upcast','getOperations','Users','text','_getPreviousFrom','Initial\x20revision','for','_handleMergeOperation','fromEntries','vid_end','children','_baseIdsRoots','_initialRevisionId','getRange','_startingRevisionId','documentFragment','size','startsWith','deletion','toModel','revision:','_handleSplitOperation','createRevision','detachRoot','_savedMetaData','_getViewJson','_removePendingAction','_makeRevision','_saveMetaData','_calculateMetaData','_handleOperation','marker','path','graveyardPosition','dataToMarker','affectsData','_baseRootsAttributes','markerToData','_createInitialRevision','_fixOperation','isReady','RevisionTracker','getRoot','createPositionFromPath','data','insertionPosition','getAncestors','map','getData','_continueCurrentRevision','roots','_handleMarkerOperation','_startingVersion','parse','toData','config','from','repository','editing','requires','clear','diffData','marked','attachChange','position','buildRevisionData','conversion','_getState','has','_lastTo','_markChanges','createPositionBefore','attributesBefore','getWalker','values','reverse','finally','Empty\x20document','insertion','_findInsertionIndex','loadState','data-revision-','createPositionAt','revisionHistory.resumeUnsavedRevision','_execute','_source','clone','_fixPosition','slice','userId','offset','authorsIds','item','_bufferUpdate','_removeRevisionMarkers','_cloneOperation','offsetSize','_clone','saveRevision','key','getRootNames','addRevision','_setConversion','isEqual','newRange','getAttributes','setRevisionData','getChildren','view','getRevisions','_transformMarkers','add','_generateTape','bind','creator','_isPendingUpdate','createRange','_update','reInit','root','PendingActions','getRevision','version','name','_prepareViewToSave','createdAt','plugins','fromVersion','_revisionId','attributesAfter','_pendingAction','previousPosition','addRevisionData','set','_diffRoots','_idsRoots','addRootAttribute','_handleInsertOperation','getCurrentRevisionId','_reset','start','end','authors','keys','newValue','max','sort','getRevisionDocumentData','PENDING_ACTION_REVISION_HISTORY','resolve','stickiness','isEnabled','delete','_loadedStateData','createRangeIn','_makeModelFromViewString','_touchedRoots','reinsert','getRevisionRootsAttributes','_isAttached','_bufferedUpdates','toView','useFillerType','length','_fixRange','remove','getNodeByPath','addRoot','insertions','creatorId','_touched','_createCurrentRevision','markers','vid_start','_markers','_setAttribute','afterInit','find','baseVersion','_handleMoveOperation','deletions','howMany','_insertChild','_processRootBeforeSave','init','getIndex','rootName','element','_loadState','_getFromVersion','string','forEach','_replaceEditorDataWithRevisionData','oldRange','RevisionsRepository','targetPosition','_getVidAttributeName','toVersion','split','_authorId','editor','currentRevision','changeRootAttribute','adapter','sourcePosition'];(function(_0x1c8105,_0xe1abc){const _0x1a24ef=function(_0x1fec88){while(--_0x1fec88){_0x1c8105['push'](_0x1c8105['shift']());}};_0x1a24ef(++_0xe1abc);}(_0xe1ab,0xdb));const _0x1a24=function(_0x1c8105,_0xe1abc){_0x1c8105=_0x1c8105-0x0;let _0x1a24ef=_0xe1ab[_0x1c8105];return _0x1a24ef;};import{Users as _0x594b86}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x21c315,PendingActions as _0x437c3a}from'ckeditor5/src/core';import{logWarning as _0x46c24a,uid as _0x5af1bb}from'ckeditor5/src/utils';import{Position as _0x59bba7,Range as _0xb6f6a0,Element as _0x347e6a,DocumentFragment as _0x152ab9,ViewText as _0xacadac,ViewElement as _0x501efc,ViewContainerElement as _0x5481d5,ViewAttributeElement as _0x2e87cd,ViewEmptyElement as _0x42034e,ViewRawElement as _0xd60728,ViewUIElement as _0x448027,ViewDocumentFragment as _0x3557c8}from'ckeditor5/src/engine';import _0x1d56a4 from'./revisionsrepository';import{getTranslation as _0x513818}from'./utils/common-translations';import{cloneDeep as _0x1c148a,isEqual as _0x56b0ba}from'lodash-es';const B={'c':_0x5481d5,'a':_0x2e87cd,'e':_0x42034e,'r':_0xd60728,'u':_0x448027};export default class l extends _0x21c315{static get[_0x1a24('0x55')](){return _0x1a24('0x93');}static get[_0x1a24('0xa5')](){return[_0x594b86,_0x1d56a4,_0x437c3a];}constructor(_0x366b4c){super(_0x366b4c),this[_0x1a24('0x2c')]=null,this[_0x1a24('0x2a')]=null,this[_0x1a24('0x35')]=new H(this['editor']),this[_0x1a24('0x76')]=this[_0x1a24('0x29')][_0x1a24('0xa1')][_0x1a24('0x4f')](_0x1a24('0x3f'))||'initial',this[_0x1a24('0x1')]=new Map(),this[_0x1a24('0x103')]=null;const _0xc670b2=_0x5af1bb();this['_source']={'history':this[_0x1a24('0x29')][_0x1a24('0x3a')]['document'][_0x1a24('0x69')],'getLatestVersion':()=>Promise[_0x1a24('0xff')](this[_0x1a24('0x29')][_0x1a24('0x3a')][_0x1a24('0x5b')]['version']),'getCurrentRevisionId':()=>_0xc670b2},this[_0x1a24('0xef')](_0x1a24('0x92'),!0x1),this['set'](_0x1a24('0x101'),!0x0),this[_0x1a24('0xef')](_0x1a24('0xdd'),!0x1),this[_0x1a24('0x29')][_0x1a24('0xa1')][_0x1a24('0x50')](_0x1a24('0xbd'),!0x0),this[_0x1a24('0x29')][_0x1a24('0xac')][_0x1a24('0x70')](_0x1a24('0x6a'))[_0x1a24('0x8c')]({'view':'revision'});}['init'](){this[_0x1a24('0xa3')]=this['editor'][_0x1a24('0xe8')][_0x1a24('0x4f')](_0x1a24('0x23')),this[_0x1a24('0xd0')](),this[_0x1a24('0x29')]['data']['on'](_0x1a24('0x42'),()=>{const _0xb73217=this['repository'][_0x1a24('0xe3')](0x0),_0x56050b=_0xb73217&&null===_0xb73217[_0x1a24('0xdc')]?_0xb73217:null;if(this[_0x1a24('0x9b')]=!!_0x56050b&&this[_0x1a24('0x29')][_0x1a24('0xa1')][_0x1a24('0x4f')](_0x1a24('0xbd')),this['editor'][_0x1a24('0xe8')][_0x1a24('0xae')]('RealTimeCollaborationClient')){const _0x580842=this[_0x1a24('0xbf')][_0x1a24('0xf4')](),_0x5a78f2=this[_0x1a24('0xa3')][_0x1a24('0xe3')](_0x580842);if(_0x5a78f2)this[_0x1a24('0x9e')]=_0x5a78f2[_0x1a24('0xe9')],this[_0x1a24('0x9b')]=!0x1;else{const _0x15c931=this[_0x1a24('0xbf')][_0x1a24('0x69')][_0x1a24('0x56')][_0x1a24('0x12')](_0x5edbaa=>!_0x5edbaa['_isInit']),_0x9a09fb=_0x15c931?_0x15c931[_0x1a24('0x13')]:this[_0x1a24('0xbf')][_0x1a24('0x69')][_0x1a24('0xe4')];_0xb73217?(_0xb73217[_0x1a24('0x26')]<_0x9a09fb&&_0xb73217[_0x1a24('0xdf')]({'toVersion':_0x9a09fb}),this[_0x1a24('0x9b')]?(this['_source'][_0x1a24('0xf4')]=()=>_0x56050b['id'],this['_startingVersion']=_0x56050b['fromVersion']):(this[_0x1a24('0x9e')]=_0xb73217[_0x1a24('0x26')],this[_0x1a24('0x9b')]=!0x1)):(this[_0x1a24('0x9e')]=_0x9a09fb,this[_0x1a24('0x9b')]=!0x1);}}else _0x56050b&&(this[_0x1a24('0x29')]['model'][_0x1a24('0x5b')]['history'][_0x1a24('0xe4')]=Math[_0x1a24('0xfb')](_0x56050b['toVersion'],this[_0x1a24('0x29')][_0x1a24('0x3a')][_0x1a24('0x5b')]['history'][_0x1a24('0xe4')]),_0x56050b[_0x1a24('0xe9')]===_0x56050b[_0x1a24('0x26')]?(0x0!==_0x56050b[_0x1a24('0xe9')]&&(this[_0x1a24('0xbf')]['getCurrentRevisionId']=()=>_0x56050b['id']),this[_0x1a24('0x9b')]=!0x1):this[_0x1a24('0x9b')]&&(this['_source'][_0x1a24('0xf4')]=()=>_0x56050b['id'],this[_0x1a24('0x9e')]=_0x56050b[_0x1a24('0xe9')])),this[_0x1a24('0x9b')]||(this[_0x1a24('0x9e')]=this[_0x1a24('0x29')]['model'][_0x1a24('0x5b')][_0x1a24('0xe4')]);this[_0x1a24('0x35')][_0x1a24('0x19')](this[_0x1a24('0xbf')][_0x1a24('0x69')]),this[_0x1a24('0x90')](this[_0x1a24('0x9e')]),this[_0x1a24('0xc')](this[_0x1a24('0x9e')]),this['adapter']&&this[_0x1a24('0x40')]();}),this[_0x1a24('0xdb')](_0x1a24('0x92'))['to'](this,_0x1a24('0xdd'),_0x4a212d=>!_0x4a212d);}async[_0x1a24('0x11')](){if(this['repository'][_0x1a24('0x4')]>0x0){const _0x4d2f1a=this[_0x1a24('0xa3')]['getRevision'](0x0),_0x42487c=await this['getRevisionDocumentData'](_0x4d2f1a),_0x179fce=await this[_0x1a24('0x108')](_0x4d2f1a);this[_0x1a24('0x21')](_0x42487c,_0x179fce);}}[_0x1a24('0x31')](_0x3e0537){this[_0x1a24('0xbf')]=_0x3e0537;}async[_0x1a24('0x53')](){const _0x92d1a2=await this['_source']['getLatestVersion']();if(_0x92d1a2>this[_0x1a24('0x2a')]['toVersion']){await this[_0x1a24('0x1d')]();const _0x41f44c=this[_0x1a24('0xab')]({'revision':this[_0x1a24('0x2a')],'to':_0x92d1a2});_0x41f44c['authors']=_0x41f44c[_0x1a24('0xc5')]['map'](_0x83fd12=>this['editor']['plugins'][_0x1a24('0x4f')](_0x1a24('0x6c'))['getUser'](_0x83fd12)),this[_0x1a24('0x2a')][_0x1a24('0xdf')](_0x41f44c);}}async['_loadState'](){this[_0x1a24('0x9b')]&&!this[_0x1a24('0x103')]&&(await this[_0x1a24('0x5f')](this['currentRevision']),this['_revisionDataBuilder'][_0x1a24('0xba')](this[_0x1a24('0x2a')]),this[_0x1a24('0x103')]={'fromVersion':this[_0x1a24('0x2a')][_0x1a24('0xe9')],'authors':this['currentRevision']['authors'][_0x1a24('0xc2')]()});}async[_0x1a24('0xcc')](_0x1e24f5={},_0xf5f4a=null){const _0x5ed1c8=[];await this[_0x1a24('0x1d')](),this['_continueCurrentRevision']=!0x1,_0xf5f4a>this[_0x1a24('0x2a')][_0x1a24('0x26')]&&(_0xf5f4a=null),null===_0xf5f4a&&(_0xf5f4a=await this[_0x1a24('0xbf')][_0x1a24('0x49')]());const _0x38e5ee=this[_0x1a24('0x1e')](_0xf5f4a),_0x42a8f2=this[_0x1a24('0xab')]({'from':_0x38e5ee,'to':_0xf5f4a});if(this[_0x1a24('0x2a')][_0x1a24('0x26')]<_0xf5f4a){const _0x193247=this[_0x1a24('0xab')]({'revision':this[_0x1a24('0x2a')],'from':_0xf5f4a,'to':_0xf5f4a});_0x193247['authors']=[],_0x193247[_0x1a24('0xc5')]=[],_0x193247['id']=this[_0x1a24('0x2a')]['id'],this[_0x1a24('0x2a')][_0x1a24('0xdf')](_0x193247,!0x0),delete _0x193247['authors'],_0x5ed1c8[_0x1a24('0x2f')](_0x193247);}_0x1e24f5[_0x1a24('0xa')]=this[_0x1a24('0x29')][_0x1a24('0xe8')][_0x1a24('0x4f')](_0x1a24('0x6c'))['me']['id'],_0x1e24f5[_0x1a24('0xe5')]=_0x1e24f5['name']||null,_0x1e24f5['id']=_0x1e24f5['id']||_0x5af1bb(),_0x1e24f5={..._0x1e24f5,..._0x42a8f2};const _0x2df520=this[_0x1a24('0xee')](_0x1e24f5);_0x5ed1c8[_0x1a24('0x2f')](_0x1e24f5);const _0x5bcb32=this[_0x1a24('0xa3')][_0x1a24('0x1a')](_0x2df520);if(0x0!==_0x5bcb32){const _0x3e2afb=this[_0x1a24('0xa3')][_0x1a24('0xe3')](_0x5bcb32-0x1);if(_0x3e2afb['fromVersion']!==_0xf5f4a){const _0x435ad0=this[_0x1a24('0x35')]['getData'](_0xf5f4a,_0x3e2afb[_0x1a24('0x26')]),_0x7a42d3={'id':_0x3e2afb['id'],'diffData':_0x435ad0[_0x1a24('0xa7')],'authorsIds':_0x435ad0['authorsIds'],'authors':_0x435ad0['authorsIds'][_0x1a24('0x99')](_0x1c8f92=>this[_0x1a24('0x29')][_0x1a24('0xe8')][_0x1a24('0x4f')]('Users')[_0x1a24('0x5e')](_0x1c8f92)),'fromVersion':_0xf5f4a};_0x3e2afb===this['currentRevision']&&(_0x7a42d3[_0x1a24('0xe7')]=new Date(_0x1e24f5['createdAt'][_0x1a24('0x4b')]()+0xa)),_0x3e2afb[_0x1a24('0xdf')](_0x7a42d3,!0x0),delete _0x7a42d3[_0x1a24('0xf8')],_0x5ed1c8[_0x1a24('0x2f')](_0x7a42d3);}}if(this[_0x1a24('0x2c')]){for(const _0x36ef1c of _0x5ed1c8)this[_0x1a24('0xc7')](_0x36ef1c['id'],_0x36ef1c,!0x0);this['sendBufferedUpdates']();}return _0x2df520;}[_0x1a24('0xee')](_0x456de2){const _0x567a2e=this['repository'][_0x1a24('0x80')](_0x456de2);return this['adapter']&&_0x567a2e['on'](_0x1a24('0xdf'),(_0x5ee1b5,_0x3d3bf7,_0x2ac589)=>{_0x2ac589||(this['_bufferUpdate'](_0x3d3bf7['id'],_0x3d3bf7,!0x0),this[_0x1a24('0x40')]());}),this[_0x1a24('0xa3')][_0x1a24('0xcf')](_0x567a2e,this['_findInsertionIndex'](_0x567a2e)),_0x567a2e;}async[_0x1a24('0xfd')](_0x44066d){await this['_loadRevisionData'](_0x44066d);const _0x3c4ab7={};for(const _0x979e95 in _0x44066d[_0x1a24('0xa7')]){if(_0x44066d['diffData'][_0x979e95][_0x1a24('0xa9')]&&!_0x44066d[_0x1a24('0xa7')][_0x979e95][_0x1a24('0xa9')][_0x1a24('0x4c')])continue;const _0x4ebae4=this['_removeRevisionMarkers'](JSON[_0x1a24('0x9f')](_0x44066d[_0x1a24('0xa7')][_0x979e95][_0x1a24('0x9')])),_0x4b1562=this[_0x1a24('0x29')]['editing'][_0x1a24('0xd6')][_0x1a24('0x5b')],_0x1de0f8=new _0x3557c8(_0x4b1562,_0x4ebae4[_0x1a24('0x99')](_0x10f793=>J(_0x10f793,this[_0x1a24('0x29')])));this[_0x1a24('0x29')]['data'][_0x1a24('0x44')][_0x1a24('0x3')](_0x1a24('0xa8')),_0x3c4ab7[_0x979e95]=this[_0x1a24('0x29')][_0x1a24('0x96')][_0x1a24('0x44')][_0x1a24('0xa0')](_0x1de0f8),this['editor'][_0x1a24('0x96')][_0x1a24('0x44')]['useFillerType']('default');}return _0x3c4ab7;}async[_0x1a24('0x108')](_0x27dba5){await this[_0x1a24('0x5f')](_0x27dba5);const _0x5d77ca={};for(const _0x325993 in _0x27dba5[_0x1a24('0xa7')])_0x27dba5[_0x1a24('0xa7')][_0x325993][_0x1a24('0xa9')]&&!_0x27dba5[_0x1a24('0xa7')][_0x325993][_0x1a24('0xa9')]['isAttached']||(_0x5d77ca[_0x325993]=_0x27dba5[_0x1a24('0xa7')][_0x325993][_0x1a24('0xeb')]||{});return _0x5d77ca;}[_0x1a24('0x40')](){if(0x0===this['_bufferedUpdates']['size'])return;if(this[_0x1a24('0xdd')])return;let _0x235193=Array[_0x1a24('0xa2')](this['_bufferedUpdates'][_0x1a24('0xb4')]());this['_bufferedUpdates'][_0x1a24('0xa6')]();for(let _0x419abc=0x0;_0x419abc<_0x235193[_0x1a24('0x4')];_0x419abc++){const _0x464461=_0x235193[_0x419abc];let _0x424e0c=!0x1;for(const _0x12a394 of Object[_0x1a24('0xf9')](_0x464461))void 0x0===_0x464461[_0x12a394]?delete _0x464461[_0x12a394]:'id'!==_0x12a394&&(_0x424e0c=!0x0);_0x424e0c||(_0x235193[_0x419abc]=null);}if(_0x235193=_0x235193[_0x1a24('0x61')](_0x47b5a8=>null!==_0x47b5a8),!_0x235193[_0x1a24('0x4')])return;for(let _0x159b1d=0x0;_0x159b1d<_0x235193[_0x1a24('0x4')];_0x159b1d++){const _0x5f7054=_0x235193[_0x159b1d];void 0x0!==_0x5f7054['fromVersion']&&void 0x0===_0x5f7054[_0x1a24('0x26')]&&(_0x5f7054['toVersion']=this[_0x1a24('0xa3')][_0x1a24('0xe3')](_0x5f7054['id'])[_0x1a24('0x26')]),void 0x0!==_0x5f7054[_0x1a24('0x26')]&&void 0x0===_0x5f7054[_0x1a24('0xe9')]&&(_0x5f7054[_0x1a24('0xe9')]=this[_0x1a24('0xa3')][_0x1a24('0xe3')](_0x5f7054['id'])['fromVersion']);}const _0xb83067=this[_0x1a24('0x29')][_0x1a24('0xa1')][_0x1a24('0x4f')](_0x1a24('0x3f'));this[_0x1a24('0xdd')]=!0x0,this['_addPendingAction'](),this['adapter'][_0x1a24('0x3d')](_0x235193,_0xb83067)[_0x1a24('0xb6')](()=>{this[_0x1a24('0xdd')]=!0x1;})['then'](_0x202373=>{if(_0x202373)for(const _0x27bcd4 of _0x202373)this['setRevisionData']({'id':_0x27bcd4['id'],'createdAt':_0x27bcd4[_0x1a24('0xe7')]});this['_removePendingAction'](),this[_0x1a24('0x40')]();});}[_0x1a24('0x21')](_0x8754b9,_0x1917a2){let _0x80279f=this[_0x1a24('0x29')][_0x1a24('0xa1')]['get'](_0x1a24('0x43')),_0xa6617=this['editor']['config'][_0x1a24('0x4f')](_0x1a24('0x37'));if(void 0x0===_0x80279f){_0x80279f={};for(const _0x10510c of this[_0x1a24('0x29')][_0x1a24('0x3a')][_0x1a24('0x5b')][_0x1a24('0xce')]())_0x80279f[_0x10510c]='';}if(_0x1a24('0x1f')==typeof _0x80279f&&(_0x80279f={'main':_0x80279f}),void 0x0===_0xa6617){_0xa6617={};for(const _0x5bc71f of this[_0x1a24('0x29')][_0x1a24('0x3a')]['document']['getRootNames']())_0xa6617[_0x5bc71f]={};}let _0x1c7924=!0x1;const _0x51a397=Object[_0x1a24('0xf9')](_0x80279f),_0x2e5073=Object[_0x1a24('0xf9')](_0x8754b9);for(const _0x119010 of _0x51a397){if(_0x80279f[_0x119010]!==_0x8754b9[_0x119010]&&''!==_0x80279f[_0x119010]['trim']()){_0x1c7924=!0x0;break;}if(!_0x56b0ba(_0xa6617[_0x119010],_0x1917a2[_0x119010])&&Object[_0x1a24('0xf9')](_0xa6617[_0x119010])[_0x1a24('0x4')]>0x0){_0x1c7924=!0x0;break;}}_0x1c7924||(_0x1c7924=_0x2e5073[_0x1a24('0x2e')](_0x204ecc=>!this[_0x1a24('0x29')][_0x1a24('0x3a')]['document']['getRoot'](_0x204ecc))),_0x1c7924&&_0x46c24a('editor-initial-data-replaced-with-revision-data',{'editorData':_0x80279f,'editorRootsAttributes':_0xa6617,'revisionData':_0x8754b9,'revisionRootsAttributes':_0x1917a2}),this[_0x1a24('0x29')][_0x1a24('0xa1')][_0x1a24('0xef')](_0x1a24('0x43'),_0x8754b9),this['editor'][_0x1a24('0xa1')][_0x1a24('0xef')](_0x1a24('0x37'),_0x1917a2);}['_addPendingAction'](){if(!this[_0x1a24('0xec')]){const _0x5ccc1d=this[_0x1a24('0x29')][_0x1a24('0xe8')][_0x1a24('0x4f')](_0x1a24('0xe2'));this['_pendingAction']=_0x5ccc1d[_0x1a24('0xd9')](_0x513818(this[_0x1a24('0x29')]['locale'],_0x1a24('0xfe')));}}[_0x1a24('0x84')](){this[_0x1a24('0xec')]&&(this[_0x1a24('0x29')][_0x1a24('0xe8')][_0x1a24('0x4f')](_0x1a24('0xe2'))[_0x1a24('0x6')](this[_0x1a24('0xec')]),this['_pendingAction']=null);}[_0x1a24('0xb9')](_0x21127a){const _0x5e351d=this[_0x1a24('0xa3')][_0x1a24('0xd7')]();_0x5e351d[_0x1a24('0xb5')]();let _0xcc5bc8=0x0;for(;_0xcc5bc8<_0x5e351d[_0x1a24('0x4')];){const _0x16e2bd=_0x5e351d[_0xcc5bc8];if(_0x16e2bd===this[_0x1a24('0x2a')]){_0xcc5bc8++;continue;}if(_0x16e2bd['id']===this['_initialRevisionId'])break;const _0x3db60b=_0x21127a[_0x1a24('0x26')]-_0x16e2bd[_0x1a24('0x26')]||_0x21127a[_0x1a24('0xe9')]-_0x16e2bd[_0x1a24('0xe9')];if(_0x3db60b>0x0)break;if(_0x3db60b<0x0)_0xcc5bc8++;else{if(!_0x21127a[_0x1a24('0xdc')]&&_0x16e2bd[_0x1a24('0xdc')])break;if(_0x16e2bd[_0x1a24('0xdc')]||!_0x21127a['creator']){if(_0x21127a[_0x1a24('0xe7')]>_0x16e2bd[_0x1a24('0xe7')])break;_0xcc5bc8++;}else _0xcc5bc8++;}}return _0xcc5bc8;}[_0x1a24('0xd4')](_0x4dcc0b){const _0x2b3c79=this[_0x1a24('0xa3')]['getRevision'](_0x4dcc0b['id']);if(_0x4dcc0b[_0x1a24('0xe7')]&&(_0x4dcc0b[_0x1a24('0xe7')]=new Date(_0x4dcc0b[_0x1a24('0xe7')])),_0x4dcc0b[_0x1a24('0xc5')]){const _0x11bd24=this[_0x1a24('0x29')][_0x1a24('0xe8')]['get'](_0x1a24('0x6c'));_0x4dcc0b[_0x1a24('0xf8')]=_0x4dcc0b[_0x1a24('0xc5')][_0x1a24('0x99')](_0x7f6f77=>_0x11bd24['getUser'](_0x7f6f77));}_0x2b3c79['_update'](_0x4dcc0b,!0x0);}[_0x1a24('0xab')]({revision:_0x415d8e=null,from:_0x280f2b=null,to:_0x51d663=null}){_0x280f2b=null!==_0x280f2b?_0x280f2b:_0x415d8e['fromVersion'],_0x51d663=null!==_0x51d663?_0x51d663:_0x415d8e[_0x1a24('0x26')];const _0xc7f875=this[_0x1a24('0x35')][_0x1a24('0x9a')](_0x280f2b,_0x51d663),_0x13e4d2={'diffData':_0xc7f875['diffData'],'authorsIds':_0xc7f875['authorsIds'],'fromVersion':_0x280f2b,'toVersion':_0x51d663};if(!_0x415d8e||_0x51d663!==_0x415d8e[_0x1a24('0x26')]){const _0x226486=_0x51d663-0x1,_0x5ee00d=this[_0x1a24('0xbf')][_0x1a24('0x69')]['getOperation'](_0x226486);_0x13e4d2[_0x1a24('0xe7')]=_0x5ee00d&&_0x5ee00d[_0x1a24('0xe7')]||new Date();}if(this['_loadedStateData']&&_0x280f2b===this['_loadedStateData'][_0x1a24('0xe9')])for(const _0x7b4a79 of this['_loadedStateData'][_0x1a24('0xf8')])_0x13e4d2['authorsIds'][_0x1a24('0x57')](_0x7b4a79['id'])||_0x13e4d2[_0x1a24('0xc5')][_0x1a24('0x2f')](_0x7b4a79['id']);return _0x13e4d2;}[_0x1a24('0x5f')](_0x56a5cc){if(!_0x56a5cc||_0x56a5cc[_0x1a24('0xa7')])return Promise[_0x1a24('0xff')]();{const _0x367d3d=this[_0x1a24('0x29')]['config'][_0x1a24('0x4f')](_0x1a24('0x3f'));return this[_0x1a24('0x2c')][_0x1a24('0xe3')]({'channelId':_0x367d3d,'revisionId':_0x56a5cc['id']})[_0x1a24('0x3b')](_0xce1ba6=>{_0x56a5cc[_0x1a24('0xa7')]=_0xce1ba6[_0x1a24('0xa7')];});}}[_0x1a24('0xc7')](_0x29bb35,_0x1c402a,_0x435518){if(this[_0x1a24('0x1')][_0x1a24('0xae')](_0x29bb35)){const _0x34a15b=this[_0x1a24('0x1')][_0x1a24('0x4f')](_0x29bb35);_0x1c402a=_0x435518?{..._0x34a15b,..._0x1c402a}:{..._0x1c402a,..._0x34a15b};}this[_0x1a24('0x1')]['set'](_0x29bb35,_0x1c402a);}['_getFromVersion'](_0x35446b){const _0x3df88e=this['repository']['getRevisions']();_0x3df88e['reverse'](),_0x3df88e[_0x1a24('0x59')]();const _0x57e0a9=_0x3df88e[_0x1a24('0x12')](_0x5d1dbf=>_0x5d1dbf['toVersion']<=_0x35446b)[_0x1a24('0x26')];return _0x57e0a9<this['_startingVersion']?this[_0x1a24('0x9e')]:_0x57e0a9;}[_0x1a24('0x90')](_0x1c12b6){const _0x11eec9=this[_0x1a24('0xa3')]['getRevision'](this[_0x1a24('0xa3')]['length']-0x1);if(_0x11eec9)this[_0x1a24('0x76')]=_0x11eec9['id'];else{const _0x31f976=!this[_0x1a24('0x29')][_0x1a24('0x3a')][_0x1a24('0x5b')][_0x1a24('0x9c')]['find'](_0x1f0e11=>this[_0x1a24('0x29')][_0x1a24('0x3a')][_0x1a24('0x41')](_0x1f0e11)),_0x32948c=this[_0x1a24('0x29')]['plugins']['get']('Users')['me']['id'],_0x161eaa=_0x513818(this[_0x1a24('0x29')]['locale'],_0x31f976?_0x1a24('0xb7'):_0x1a24('0x6f'));this[_0x1a24('0x85')]({'from':_0x1c12b6,'to':_0x1c12b6,'id':this['_initialRevisionId'],'name':_0x161eaa,'creatorId':_0x32948c});}}[_0x1a24('0xc')](_0x3ec35e){const _0x58df73=this['_source']['getCurrentRevisionId']();this[_0x1a24('0x2a')]=this[_0x1a24('0xa3')][_0x1a24('0xe3')](_0x58df73),this[_0x1a24('0x2a')]||(this[_0x1a24('0x2a')]=this[_0x1a24('0x85')]({'from':_0x3ec35e,'to':_0x3ec35e,'id':_0x58df73,'name':'','creatorId':null}));}[_0x1a24('0x85')]({name:_0x108e03,from:_0x1eebbd,to:_0x51405a,creatorId:_0x478fa1,id:_0x176d8e}){const _0x49d76c=this['buildRevisionData']({'from':_0x1eebbd,'to':_0x51405a});_0x49d76c[_0x1a24('0xe5')]=_0x108e03,_0x49d76c[_0x1a24('0xa')]=_0x478fa1,_0x49d76c['id']=_0x176d8e;const _0xc6c581=this[_0x1a24('0xee')](_0x49d76c);return this['adapter']&&this['_bufferUpdate'](_0x49d76c['id'],_0x49d76c,!0x0),_0xc6c581;}['_setConversion'](){this['editor'][_0x1a24('0xac')]['for']('dataDowncast')[_0x1a24('0x8f')]({'model':'revision'});}[_0x1a24('0xc8')](_0x12136e){return(_0x12136e=_0x12136e[_0x1a24('0x61')](_0x4882eb=>!_0x4882eb[_0x1a24('0xe5')]||'revision-start'!==_0x4882eb['name']&&'revision-end'!==_0x4882eb[_0x1a24('0xe5')]))[_0x1a24('0x20')](_0x546c4d=>{_0x1a24('0x1f')!=typeof _0x546c4d&&(_0x546c4d['children']=this[_0x1a24('0xc8')](_0x546c4d[_0x1a24('0x74')]),_0x546c4d['attributes']=_0x546c4d[_0x1a24('0x3c')][_0x1a24('0x61')](_0x22b5f1=>!_0x22b5f1[0x0][_0x1a24('0x7b')](_0x1a24('0xbb'))));}),_0x12136e;}}function J(_0x33a63a,_0x10aa24){const _0x50f3e5=_0x10aa24['editing']['view'][_0x1a24('0x5b')];if('string'==typeof _0x33a63a)return new _0xacadac(_0x50f3e5,_0x33a63a);{const _0x4e08b1=_0x33a63a[_0x1a24('0x74')][_0x1a24('0x99')](_0x39c945=>J(_0x39c945,_0x10aa24));return new(B[_0x33a63a[(_0x1a24('0x32'))]]||_0x501efc)(_0x50f3e5,_0x33a63a[_0x1a24('0xe5')],_0x33a63a[_0x1a24('0x3c')],_0x4e08b1);}}class H{constructor(_0x54ad34){this[_0x1a24('0x29')]=_0x54ad34,this['_savedMetaData']=new Map(),this[_0x1a24('0x58')]=-0x1,this[_0x1a24('0xaf')]=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this[_0x1a24('0x54')]=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this[_0x1a24('0xf1')]=new Map(),this['_baseIdsRoots']=new Map(),this['_touched']=new Map(),this[_0x1a24('0x5c')]=new Map(),this['_touchedRoots']=new Map(),this[_0x1a24('0xea')]=0x1;}['init'](_0x306640){this['source']=_0x306640;const _0x13c39f=new Map(),_0x431b81=new Map(),_0x5d64bb=this[_0x1a24('0x29')][_0x1a24('0x3a')][_0x1a24('0x5b')][_0x1a24('0x9c')][_0x1a24('0x99')](_0x1f973c=>_0x1f973c[_0x1a24('0x1b')]);for(const _0x5b10b2 of _0x5d64bb){const _0x1280ff=this['editor'][_0x1a24('0x3a')][_0x1a24('0x5b')][_0x1a24('0x94')](_0x5b10b2),_0x832750=q(_0x1280ff);_0x13c39f[_0x1a24('0xef')](_0x5b10b2,_0x832750),_0x431b81[_0x1a24('0xef')](_0x5b10b2,Object[_0x1a24('0x72')](_0x1280ff[_0x1a24('0xd3')]()));}const _0x1ef57f=Array['from'](this[_0x1a24('0x29')]['model'][_0x1a24('0xd')])[_0x1a24('0x99')](_0x237b7b=>[_0x237b7b['name'],_0x237b7b[_0x1a24('0x77')]()]),_0x82b062=this['source'][_0x1a24('0xe4')];this['_saveMetaData'](_0x82b062,_0x13c39f,_0x1ef57f,_0x431b81),this[_0x1a24('0x78')]=this[_0x1a24('0xea')];const _0x582f75=new Map(),_0x51d483=new Map();for(const _0xece56f of _0x5d64bb){const _0x223451=G(_0xece56f);_0x582f75['set'](_0xece56f,_0x223451),_0x51d483['set'](_0xece56f,{});}this[_0x1a24('0x86')](Number['NEGATIVE_INFINITY'],_0x582f75,[],_0x51d483);}[_0x1a24('0x9a')](_0x48193c,_0x22803e){if(this[_0x1a24('0x58')]===_0x48193c&&this[_0x1a24('0xaf')]<=_0x22803e)this['_savedMetaData'][_0x1a24('0x7a')]>0x1&&this[_0x1a24('0x38')](this[_0x1a24('0xaf')]),this[_0x1a24('0x51')](this[_0x1a24('0xaf')],_0x22803e,!0x0);else{if(!this[_0x1a24('0x82')][_0x1a24('0xae')](_0x48193c)){const _0x515a87=this['_getPreviousFrom'](_0x48193c);this[_0x1a24('0x87')](_0x515a87,_0x48193c,!0x1);}this['_calculateMetaData'](_0x48193c,_0x22803e,!0x0);}return this[_0x1a24('0x58')]=_0x48193c,this[_0x1a24('0xaf')]=_0x22803e,this['_getState']();}['loadState'](_0x24abd1){this[_0x1a24('0xf5')](),this[_0x1a24('0x58')]=_0x24abd1[_0x1a24('0xe9')],this['_lastTo']=_0x24abd1['toVersion'];for(const _0x29c1da in _0x24abd1[_0x1a24('0xa7')]){const _0x319dd8=_0x24abd1[_0x1a24('0xa7')][_0x29c1da][_0x1a24('0xa9')],_0x466f51=_0x1c148a(_0x24abd1[_0x1a24('0xa7')][_0x29c1da][_0x1a24('0xb2')])||{},_0x5a4d92=this[_0x1a24('0x105')](_0x24abd1[_0x1a24('0xa7')][_0x29c1da]['deletions']);_0x5a4d92[_0x1a24('0x1b')]=_0x29c1da,_0x5a4d92[_0x1a24('0x0')]=!_0x319dd8||!_0x319dd8['isAttached'],_0x5a4d92[_0x1a24('0x4c')]=()=>_0x5a4d92[_0x1a24('0x0')],this[_0x1a24('0x45')][_0x1a24('0xef')](_0x29c1da,_0x5a4d92),this[_0x1a24('0x8e')]['set'](_0x29c1da,_0x466f51),_0x319dd8&&this[_0x1a24('0x106')][_0x1a24('0xef')](_0x29c1da,_0x319dd8);const _0x3b977b=this[_0x1a24('0x4d')](_0x5a4d92);this[_0x1a24('0x75')][_0x1a24('0xef')](_0x29c1da,_0x3b977b);for(const [_0xc33203,_0x39d3fc]of _0x5a4d92['markers']){if(!_0xc33203[_0x1a24('0x7b')](_0x1a24('0x7e')))continue;const _0x58d328=_0xc33203['split'](':')[0x2];for(const _0x333fbb of _0x39d3fc[_0x1a24('0xb3')]({'singleCharacters':!0x0})){const _0x4c1699=this['_getVidAttributeName'](_0x333fbb),_0x3144a7=_0x1a24('0x63')==_0x333fbb[_0x1a24('0x32')]?_0x333fbb['previousPosition'][_0x1a24('0x8a')][_0x1a24('0xc2')](0x0,-0x1):_0x333fbb['previousPosition'][_0x1a24('0x8a')],_0x2ad256=_0x3b977b[_0x1a24('0x7')](_0x3144a7)[_0x1a24('0x65')](_0x4c1699);this['_touched'][_0x1a24('0xef')](_0x2ad256,{'userId':_0x58d328});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4adfb3=[...Array(this[_0x1a24('0xea')])['keys']()][_0x1a24('0xc2')](0x1)[_0x1a24('0x61')](_0x3ba3ba=>!this[_0x1a24('0xb')][_0x1a24('0xae')](_0x3ba3ba));let _0x517944=0x0;const _0x53478f=new Map();for(const _0x219114 in _0x24abd1[_0x1a24('0xa7')]){const _0x2b669a=_0x24abd1[_0x1a24('0xa7')][_0x219114][_0x1a24('0xa9')],_0x28d832=_0x1c148a(_0x24abd1[_0x1a24('0xa7')][_0x219114][_0x1a24('0xeb')])||{},_0x4c284d=this['_makeModelFromViewString'](_0x24abd1[_0x1a24('0xa7')][_0x219114][_0x1a24('0x9')]);_0x4c284d[_0x1a24('0x1b')]=_0x219114,_0x4c284d[_0x1a24('0x0')]=!_0x2b669a||_0x2b669a['isAttached'],_0x4c284d[_0x1a24('0x4c')]=()=>_0x4c284d[_0x1a24('0x0')],this['_diffRoots'][_0x1a24('0xef')](_0x219114,_0x4c284d),this[_0x1a24('0x54')][_0x1a24('0xef')](_0x219114,_0x28d832);const _0x1193df=this[_0x1a24('0x4d')](_0x4c284d,Number[_0x1a24('0x64')]);this[_0x1a24('0xf1')][_0x1a24('0xef')](_0x219114,_0x1193df),_0x53478f['set'](_0x219114,_0x4c284d[_0x1a24('0x4c')]()?_0x28d832:{});for(const [_0x3b9fd8,_0x12d6ce]of _0x4c284d[_0x1a24('0xd')]){if(!_0x3b9fd8[_0x1a24('0x7b')](_0x1a24('0x7e')))continue;const _0x425e82=_0x3b9fd8[_0x1a24('0x27')](':')[0x2];for(const _0x31bc6b of _0x12d6ce['getWalker']({'singleCharacters':!0x0})){const _0x2eba74=this[_0x1a24('0x25')](_0x31bc6b),_0x571cf9=this['_revisionId']++,_0x1e99fa=_0x1a24('0x63')==_0x31bc6b['type']?_0x31bc6b['previousPosition'][_0x1a24('0x8a')][_0x1a24('0xc2')](0x0,-0x1):_0x31bc6b['previousPosition'][_0x1a24('0x8a')];_0x1193df[_0x1a24('0x7')](_0x1e99fa)[_0x1a24('0x10')](_0x2eba74,_0x571cf9),this[_0x1a24('0xb')][_0x1a24('0xef')](_0x571cf9,{'userId':_0x425e82});}}for(const _0xed23af of this[_0x1a24('0x29')][_0x1a24('0x3a')][_0x1a24('0x104')](_0x4c284d)[_0x1a24('0xb3')]({'singleCharacters':!0x0})){const _0xbaa845=this[_0x1a24('0x25')](_0xed23af),_0x3cf0d6=_0x1a24('0x63')==_0xed23af[_0x1a24('0x32')]?_0xed23af[_0x1a24('0xed')]['path']['slice'](0x0,-0x1):_0xed23af[_0x1a24('0xed')][_0x1a24('0x8a')],_0x1d005a=_0x1193df['getNodeByPath'](_0x3cf0d6);_0x1d005a['getAttribute'](_0xbaa845)>0x0||_0x1d005a[_0x1a24('0x10')](_0xbaa845,_0x4adfb3[_0x517944++]);}for(const [_0x2090cf,_0x383bb9]of _0x4c284d[_0x1a24('0xd')])_0x2090cf['startsWith'](_0x1a24('0x7e'))||this[_0x1a24('0xf')][_0x1a24('0xef')](_0x2090cf,_0x383bb9);}const _0xa6418c=G('$graveyard');this[_0x1a24('0x45')][_0x1a24('0xef')]('$graveyard',_0xa6418c),this[_0x1a24('0x75')][_0x1a24('0xef')](_0x1a24('0x33'),this[_0x1a24('0x4d')](_0xa6418c,0x1));const _0x6f2e45=G('$graveyard');this['_diffRoots']['set'](_0x1a24('0x33'),_0x6f2e45),this[_0x1a24('0xf1')][_0x1a24('0xef')](_0x1a24('0x33'),this['_makeIdsRoot'](_0x6f2e45,0x1));const _0x18b68b=Array[_0x1a24('0xa2')](this[_0x1a24('0xf0')])[_0x1a24('0x99')](([_0x4d908a,_0x51d7b0])=>[_0x4d908a,q(_0x51d7b0)]);this[_0x1a24('0x86')](this[_0x1a24('0xaf')],_0x18b68b,this['_markers'],_0x53478f);}[_0x1a24('0x105')](_0x57adea){const _0x5b8133=JSON[_0x1a24('0x9f')](_0x57adea),_0x2f1703=this['editor'][_0x1a24('0xa4')][_0x1a24('0xd6')]['document'],_0x145c80=new _0x3557c8(_0x2f1703,_0x5b8133[_0x1a24('0x99')](_0x5a3fb2=>J(_0x5a3fb2,this[_0x1a24('0x29')])));return this[_0x1a24('0x29')]['data'][_0x1a24('0x7d')](_0x145c80);}[_0x1a24('0x86')](_0x55599f,_0x28dd44,_0x23e6e9,_0x215b96){const _0x166675=new Map(_0x28dd44),_0xaeea5f=new Map(_0x1c148a(_0x215b96)),_0x39d6af=new Map();for(const [_0xd43724,_0x420edb]of _0x23e6e9)_0x39d6af[_0x1a24('0xef')](_0xd43724,{'start':_0x420edb[_0x1a24('0xf6')][_0x1a24('0xc0')](),'end':_0x420edb[_0x1a24('0xf7')]['clone'](),'rootName':_0x420edb[_0x1a24('0xe1')][_0x1a24('0x1b')]});this[_0x1a24('0x82')][_0x1a24('0xef')](_0x55599f,{'roots':_0x166675,'markers':_0x39d6af,'rootsAttributes':_0xaeea5f});}[_0x1a24('0x38')](_0x985166){this[_0x1a24('0x82')][_0x1a24('0x102')](_0x985166);}[_0x1a24('0xe0')](){this[_0x1a24('0xf5')](),this[_0x1a24('0x58')]=-0x1,this[_0x1a24('0xaf')]=-0x1,this[_0x1a24('0x82')]['clear'](),this[_0x1a24('0x19')](this[_0x1a24('0x3e')]);}[_0x1a24('0xf5')](){this['_touched'][_0x1a24('0xa6')](),this[_0x1a24('0x5c')]['clear'](),this['_touchedRoots']['clear'](),this[_0x1a24('0xf0')][_0x1a24('0xa6')](),this['_diffRootsAttributes'][_0x1a24('0xa6')](),this['_baseRoots'][_0x1a24('0xa6')](),this[_0x1a24('0x8e')][_0x1a24('0xa6')](),this[_0x1a24('0xf1')][_0x1a24('0xa6')](),this['_baseIdsRoots']['clear'](),this[_0x1a24('0xf')][_0x1a24('0xa6')](),this[_0x1a24('0xea')]=0x1,this[_0x1a24('0x78')]=this[_0x1a24('0xea')];}[_0x1a24('0x4d')](_0xf9be81,_0x3338c0=null){let _0x3f1a33=null;_0xf9be81['is'](_0x1a24('0x79'))||(_0x3f1a33=new _0x347e6a(_0xf9be81[_0x1a24('0xe5')],{'vid_start':null===_0x3338c0?this[_0x1a24('0xea')]++:_0x3338c0++}));const _0x39594a=[];for(const _0x205ed2 of _0xf9be81[_0x1a24('0xd5')]())if(_0x205ed2['is'](_0x1a24('0x1c'))){_0x39594a[_0x1a24('0x2f')](this[_0x1a24('0x4d')](_0x205ed2,_0x3338c0));const _0x214e03=_0x39594a[_0x39594a[_0x1a24('0x4')]-0x1];null!==_0x3338c0&&(_0x3338c0=_0x214e03['is']('element','$text')?_0x214e03[_0x1a24('0x65')](_0x1a24('0x47'))+0x1:_0x214e03[_0x1a24('0x65')]('vid_end')+0x1);}else for(let _0x488d11=0x0;_0x488d11<_0x205ed2['offsetSize'];_0x488d11++)_0x39594a[_0x1a24('0x2f')](new _0x347e6a('$text',{'vid':null===_0x3338c0?this[_0x1a24('0xea')]++:_0x3338c0++}));if(_0xf9be81['is'](_0x1a24('0x79'))){const _0x105a20=G(_0xf9be81[_0x1a24('0x1b')]);return _0x105a20[_0x1a24('0x17')](0x0,_0x39594a),_0x105a20;}return _0x3f1a33[_0x1a24('0x10')](_0x1a24('0x73'),null===_0x3338c0?this['_revisionId']++:_0x3338c0++),_0x3f1a33[_0x1a24('0x17')](0x0,_0x39594a),_0x3f1a33;}[_0x1a24('0x87')](_0x20e2d1,_0x8db079,_0x421871){this[_0x1a24('0xf5')]();const {roots:_0x3b931d,markers:_0x5f2444,rootsAttributes:_0x54c5ae}=this[_0x1a24('0x82')][_0x1a24('0x4f')](_0x20e2d1);this[_0x1a24('0x45')]=new Map(_0x3b931d),this[_0x1a24('0x8e')]=new Map(_0x1c148a(_0x54c5ae));for(const [_0x39c73a,_0x106c53]of this['_baseRoots'])if(_0x1a24('0x33')!==_0x39c73a&&(this[_0x1a24('0xf0')]['set'](_0x39c73a,q(_0x106c53)),this['_diffRootsAttributes']=new Map(_0x1c148a(_0x54c5ae)),_0x421871)){const _0x3414a7=this[_0x1a24('0xea')];this['_idsRoots'][_0x1a24('0xef')](_0x39c73a,this[_0x1a24('0x4d')](_0x106c53)),this[_0x1a24('0x75')][_0x1a24('0xef')](_0x39c73a,this[_0x1a24('0x4d')](_0x106c53,_0x3414a7));}this[_0x1a24('0x78')]=this['_revisionId'],this[_0x1a24('0xf0')][_0x1a24('0xef')](_0x1a24('0x33'),q(this[_0x1a24('0x45')][_0x1a24('0x4f')](_0x1a24('0x33')))),_0x421871&&this[_0x1a24('0xf1')][_0x1a24('0xef')](_0x1a24('0x33'),this[_0x1a24('0x4d')](this[_0x1a24('0x45')]['get'](_0x1a24('0x33'))));for(const [_0x50a2f6,_0x5781d3]of _0x5f2444){const _0x2ce360=this[_0x1a24('0x45')][_0x1a24('0x4f')](_0x5781d3['rootName']),_0x1a94f=this[_0x1a24('0xf0')][_0x1a24('0x4f')](_0x5781d3[_0x1a24('0x1b')]),_0x1e998e=new _0xb6f6a0(this['_fixPosition'](_0x5781d3[_0x1a24('0xf6')],_0x2ce360),this[_0x1a24('0xc1')](_0x5781d3['end'],_0x2ce360)),_0x46c42b=this[_0x1a24('0x5')](_0x1e998e,_0x1a94f);_0x2ce360[_0x1a24('0xd')][_0x1a24('0xef')](_0x50a2f6,_0x1e998e),this[_0x1a24('0xf')]['set'](_0x50a2f6,_0x46c42b);}this['_applyOperations'](_0x20e2d1,_0x8db079,_0x421871);}[_0x1a24('0x51')](_0x2cb081,_0x1e0fed,_0x17cfbd){for(const _0x4a3495 of this[_0x1a24('0x3e')][_0x1a24('0x6b')](_0x2cb081,_0x1e0fed))this[_0x1a24('0x88')](_0x4a3495,_0x17cfbd);for(const _0x20b503 of this['_diffRoots'][_0x1a24('0xb4')]())_0x20b503[_0x1a24('0xd')]['clear']();for(const [_0x3db748,_0x35f09e]of this[_0x1a24('0xf')]){this[_0x1a24('0xf0')][_0x1a24('0x4f')](_0x35f09e[_0x1a24('0xe1')][_0x1a24('0x1b')])['markers'][_0x1a24('0xef')](_0x3db748,_0x35f09e[_0x1a24('0xc0')]());}const _0x228500=new Map(),_0x596f4e=new Map();for(const [_0x256904,_0x19c7d4]of this[_0x1a24('0xf0')])_0x228500[_0x1a24('0xef')](_0x256904,q(_0x19c7d4)),_0x596f4e[_0x1a24('0xef')](_0x256904,this['_diffRootsAttributes'][_0x1a24('0x4f')](_0x256904));this[_0x1a24('0x86')](_0x1e0fed,_0x228500,this['_markers'],_0x596f4e);}[_0x1a24('0x6e')](_0x2c7600){const _0x452146=Array['from'](this[_0x1a24('0x82')][_0x1a24('0xf9')]());_0x452146[_0x1a24('0xfc')]((_0x1ac82c,_0x5ede43)=>_0x1ac82c-_0x5ede43),_0x452146[_0x1a24('0xb5')]();for(const _0x633909 of _0x452146)if(_0x633909<_0x2c7600)return _0x633909;return Number['NEGATIVE_INFINITY'];}[_0x1a24('0x36')](_0xb60e4e,_0x3e82c0){const _0x140cad=Array[_0x1a24('0xa2')](_0x3e82c0[_0x1a24('0xd')])[_0x1a24('0x99')](([_0x560e18,_0x3b640b])=>[_0x560e18,this[_0x1a24('0x5')](_0x3b640b,_0xb60e4e)]);_0xb60e4e[_0x1a24('0xd')]=new Map(_0x140cad);}['_transformMarkers'](_0xa5d3c2){for(const _0x1ebe42 of this['_markers'][_0x1a24('0xb4')]()){const _0x14ffe0=_0x1ebe42[_0x1a24('0x30')](_0xa5d3c2),_0xeed32d=_0xb6f6a0['_createFromRanges'](_0x14ffe0);_0x1ebe42[_0x1a24('0xf6')]=_0xeed32d[_0x1a24('0xf6')],_0x1ebe42[_0x1a24('0xf7')]=_0xeed32d[_0x1a24('0xf7')];}}[_0x1a24('0x88')](_0xf7113,_0x183021){if(_0x1a24('0x8')==_0xf7113[_0x1a24('0x32')]||_0x1a24('0x81')==_0xf7113[_0x1a24('0x32')])return void this[_0x1a24('0x52')](_0xf7113,_0x183021);if(_0x1a24('0x5a')==_0xf7113[_0x1a24('0x32')]){const _0xbe25c3=_0xf7113[_0x1a24('0xaa')]['root'][_0x1a24('0x1b')];this['_diffRoots']['has'](_0xbe25c3)||(this[_0x1a24('0xf0')][_0x1a24('0xef')](_0xbe25c3,G(_0xbe25c3,!0x0)),this[_0x1a24('0x54')]['set'](_0xbe25c3,{}),_0x183021&&this[_0x1a24('0xf1')]['set'](_0xbe25c3,G(_0xbe25c3,!0x0)));}else{if(_0x1a24('0xf2')==_0xf7113['type']||_0x1a24('0x66')==_0xf7113[_0x1a24('0x32')]||_0x1a24('0x2b')==_0xf7113['type'])return void this['_handleRootAttributeOperation'](_0xf7113);}const _0x30f7cc=this['_cloneOperation'](_0xf7113,this['_diffRoots']);if(_0x1a24('0x89')!==_0xf7113[_0x1a24('0x32')]&&(_0x30f7cc['_execute'](),this[_0x1a24('0xd8')](_0x30f7cc)),_0x183021)switch(_0x30f7cc[_0x1a24('0x32')]){case _0x1a24('0x5a'):this[_0x1a24('0xf3')](_0xf7113);break;case'move':case _0x1a24('0x6'):case _0x1a24('0x107'):this[_0x1a24('0x14')](_0xf7113);break;case'merge':this[_0x1a24('0x71')](_0xf7113);break;case _0x1a24('0x27'):this['_handleSplitOperation'](_0xf7113);break;case'marker':this[_0x1a24('0x9d')](_0xf7113);}}[_0x1a24('0xc9')](_0x4f2c91,_0x23b739){const _0x345b25=_0x4f2c91['clone']();return _0x345b25[_0x1a24('0x28')]=_0x4f2c91[_0x1a24('0x28')],this['_fixOperation'](_0x345b25,_0x23b739),_0x345b25;}[_0x1a24('0x60')](_0x60afc7){return _0x60afc7[_0x1a24('0x99')](_0x19366e=>{const _0x2edb9f=this[_0x1a24('0x25')](_0x19366e);return Number(_0x19366e[_0x1a24('0xc6')][_0x1a24('0x65')](_0x2edb9f));});}['_generateTape'](_0xcd0a34,_0xd4638c){if(_0xcd0a34['is'](_0x1a24('0x1c'),'$text'))_0xd4638c[_0x1a24('0x2f')]({'item':_0xcd0a34,'type':_0x1a24('0x6d')});else{_0xcd0a34['is']('element')&&_0xd4638c[_0x1a24('0x2f')]({'item':_0xcd0a34,'type':_0x1a24('0x48')});for(const _0x3a0294 of _0xcd0a34[_0x1a24('0xd5')]())this[_0x1a24('0xda')](_0x3a0294,_0xd4638c);_0xcd0a34['is']('element')&&_0xd4638c['push']({'item':_0xcd0a34,'type':_0x1a24('0x63')});}return _0xd4638c;}[_0x1a24('0xad')](){const _0x19b209=new Map(this[_0x1a24('0xb')]),_0x8f3209=new Map(_0x19b209),_0x1440ff=new Map(),_0x243bbf={'insertions':{},'deletions':{}},_0x432743={'insertions':{},'deletions':{}},_0x54bb7b=new Map(),_0x2a2a13=new Set([...this[_0x1a24('0x45')][_0x1a24('0xf9')](),...this['_diffRoots'][_0x1a24('0xf9')]()]);_0x2a2a13['delete'](_0x1a24('0x33'));for(const _0x55de5b of _0x2a2a13){const _0x5bb28d=this[_0x1a24('0xf0')][_0x1a24('0x4f')](_0x55de5b)||G(_0x55de5b,!0x1),_0x1d46f5=this[_0x1a24('0x45')]['get'](_0x55de5b)||G(_0x55de5b,!0x1);_0x5bb28d['isAttached']()||_0x1d46f5[_0x1a24('0x4c')]()?(_0x243bbf[_0x1a24('0x9')][_0x55de5b]=q(_0x5bb28d),_0x243bbf['deletions'][_0x55de5b]=q(_0x1d46f5),this[_0x1a24('0x36')](_0x243bbf['deletions'][_0x55de5b],_0x1d46f5),this['_copyMarkers'](_0x243bbf[_0x1a24('0x9')][_0x55de5b],_0x5bb28d),_0x432743[_0x1a24('0x9')][_0x55de5b]=this[_0x1a24('0xda')](this['_idsRoots'][_0x1a24('0x4f')](_0x55de5b),[]),_0x432743['deletions'][_0x55de5b]=this[_0x1a24('0xda')](this[_0x1a24('0x75')][_0x1a24('0x4f')](_0x55de5b)||G(_0x55de5b,!0x1),[])):_0x2a2a13[_0x1a24('0x102')](_0x55de5b);}for(const _0x4e6c37 of _0x2a2a13){const _0x2f1650=_0x432743[_0x1a24('0x9')][_0x4e6c37];for(const _0x8ae5d5 of _0x2f1650){const _0x5ba525=this['_getVidAttributeName'](_0x8ae5d5),_0x4766f9=_0x8ae5d5[_0x1a24('0xc6')][_0x1a24('0x65')](_0x5ba525);_0x8f3209[_0x1a24('0x102')](_0x4766f9),_0x4766f9>=this[_0x1a24('0x78')]&&_0x1440ff[_0x1a24('0xef')](_0x4766f9,_0x19b209[_0x1a24('0x4f')](_0x4766f9));}}for(const _0x1a14f0 of _0x2a2a13){const _0x31c047=_0x432743[_0x1a24('0x9')][_0x1a14f0],_0x1bb058=this[_0x1a24('0x60')](_0x432743[_0x1a24('0x15')][_0x1a14f0]);let _0x2ee853=0x0;for(const _0x135e9c of _0x31c047){const _0x2fd5d9=this['_getVidAttributeName'](_0x135e9c),_0x35c6b8=_0x135e9c[_0x1a24('0xc6')]['getAttribute'](_0x2fd5d9);if(!_0x1440ff[_0x1a24('0xae')](_0x35c6b8)&&!_0x54bb7b[_0x1a24('0xae')](_0x35c6b8)){if(_0x8f3209['has'](_0x35c6b8))_0x2ee853++;else{if(_0x35c6b8!=_0x1bb058[_0x2ee853]){const _0x22d432=_0x19b209[_0x1a24('0x4f')](_0x35c6b8)||_0x19b209[_0x1a24('0x4f')](_0x1bb058[_0x2ee853]);for(;_0x35c6b8!=_0x1bb058[_0x2ee853];)_0x8f3209[_0x1a24('0xae')](_0x1bb058[_0x2ee853])||(_0x54bb7b[_0x1a24('0xef')](_0x1bb058[_0x2ee853],_0x22d432),_0x19b209['set'](_0x1bb058[_0x2ee853],_0x22d432)),_0x2ee853++;}_0x2ee853++;}}}}for(const _0x31be82 of _0x2a2a13){const _0x54c92e=_0x432743[_0x1a24('0x9')][_0x31be82];for(const _0x5b44d7 of _0x54c92e){const _0x59d83e=this[_0x1a24('0x25')](_0x5b44d7),_0x243542=_0x5b44d7[_0x1a24('0xc6')][_0x1a24('0x65')](_0x59d83e);if(_0x54bb7b[_0x1a24('0xae')](_0x243542)){const _0x35bf22=_0x54bb7b[_0x1a24('0x4f')](_0x243542);_0x8f3209[_0x1a24('0xae')](_0x243542)||_0x8f3209[_0x1a24('0xef')](_0x243542,{..._0x35bf22}),_0x1440ff[_0x1a24('0xef')](_0x243542,{..._0x35bf22});}}}for(const _0x7f034b of _0x8f3209['keys']())_0x7f034b>=this[_0x1a24('0x78')]&&_0x8f3209[_0x1a24('0x102')](_0x7f034b);const _0x261a88=new Map();for(const _0x4eed14 of _0x2a2a13){let _0x2cbb6a=_0x432743['insertions'][_0x4eed14];for(const _0xc0d494 of _0x2cbb6a)if(_0xc0d494[_0x1a24('0xc6')]['is'](_0x1a24('0x1c'),_0x1a24('0x68'))){const _0x189d2a=this[_0x1a24('0x25')](_0xc0d494),_0x19b7f6=_0xc0d494[_0x1a24('0xc6')]['getAttribute'](_0x189d2a);if(_0x1440ff[_0x1a24('0xae')](_0x19b7f6)){const _0x4de90b=_0xc0d494[_0x1a24('0xc6')][_0x1a24('0x5d')][_0x1a24('0x5d')][_0x1a24('0x65')](_0x1a24('0xe')),_0x3482f1=_0x261a88[_0x1a24('0x4f')](_0x4de90b)||new Set();_0x3482f1[_0x1a24('0xd9')](_0x1440ff['get'](_0x19b7f6)[_0x1a24('0xc3')]),_0x261a88['set'](_0x4de90b,_0x3482f1);}}_0x2cbb6a=_0x432743[_0x1a24('0x15')][_0x4eed14];for(const _0x3f496a of _0x2cbb6a)if(_0x3f496a['item']['is'](_0x1a24('0x1c'),_0x1a24('0x68'))){const _0x54476e=this[_0x1a24('0x25')](_0x3f496a),_0x383997=_0x3f496a[_0x1a24('0xc6')]['getAttribute'](_0x54476e);if(_0x8f3209[_0x1a24('0xae')](_0x383997)){const _0x284e22=_0x3f496a[_0x1a24('0xc6')][_0x1a24('0x5d')][_0x1a24('0x5d')][_0x1a24('0x65')]('vid_start'),_0x54e0ab=_0x261a88[_0x1a24('0x4f')](_0x284e22)||new Set();_0x54e0ab[_0x1a24('0xd9')](_0x8f3209[_0x1a24('0x4f')](_0x383997)[_0x1a24('0xc3')]),_0x261a88[_0x1a24('0xef')](_0x284e22,_0x54e0ab);}}for(const _0x7bafb3 of _0x261a88[_0x1a24('0xf9')]())(_0x1440ff[_0x1a24('0xae')](_0x7bafb3)||_0x8f3209[_0x1a24('0xae')](_0x7bafb3))&&_0x261a88[_0x1a24('0x102')](_0x7bafb3);}for(const _0x4d7614 of _0x2a2a13){const _0x417444=_0x432743[_0x1a24('0x9')][_0x4d7614];let _0x5960dc=null,_0x54749d=null;for(const _0x1df8e7 of _0x417444){const _0x5575da=this[_0x1a24('0x25')](_0x1df8e7),_0x1471b0=_0x1df8e7[_0x1a24('0xc6')][_0x1a24('0x65')](_0x5575da),_0xa65407=_0x261a88[_0x1a24('0x4f')](_0x1471b0);_0xa65407&&_0x1a24('0x48')==_0x1df8e7['type']&&(_0x5960dc=Array[_0x1a24('0xa2')](_0xa65407)[0x0],_0x54749d=_0x1df8e7[_0x1a24('0xc6')][_0x1a24('0x65')]('vid_end')),_0x5960dc&&(_0x8f3209[_0x1a24('0xef')](_0x1471b0,{'userId':_0x5960dc}),_0x1440ff['set'](_0x1471b0,{'userId':_0x5960dc})),_0x1471b0==_0x54749d&&(_0x5960dc=null,_0x54749d=null);}}const _0x20b138={},_0xa6eb6=new Set();for(const _0x1ff830 of _0x2a2a13){const _0x19e221=_0x243bbf[_0x1a24('0x15')][_0x1ff830],_0x5db9f8=_0x243bbf[_0x1a24('0x9')][_0x1ff830];for(const {userId:_0x3c68bb}of this['_touchedMarkers']['values']())null!==_0x3c68bb&&_0xa6eb6[_0x1a24('0xd9')](_0x3c68bb);for(const {userId:_0xfef1c3}of this[_0x1a24('0x106')]['values']())null!==_0xfef1c3&&_0xa6eb6[_0x1a24('0xd9')](_0xfef1c3);this[_0x1a24('0xb0')](_0x5db9f8,_0x432743[_0x1a24('0x9')][_0x1ff830],_0x1440ff,_0x1a24('0xb8'),_0xa6eb6),this['_markChanges'](_0x19e221,_0x432743[_0x1a24('0x15')][_0x1ff830],_0x8f3209,_0x1a24('0x7c'),_0xa6eb6),_0x20b138[_0x1ff830]={'insertions':this[_0x1a24('0xe6')](_0x5db9f8),'deletions':this[_0x1a24('0xe6')](_0x19e221),'attachChange':this[_0x1a24('0x106')][_0x1a24('0x4f')](_0x1ff830)||null,'attributesBefore':_0x1c148a(this[_0x1a24('0x8e')][_0x1a24('0x4f')](_0x1ff830))||{},'attributesAfter':_0x1c148a(this[_0x1a24('0x54')][_0x1a24('0x4f')](_0x1ff830))};}return{'diffData':_0x20b138,'authorsIds':Array['from'](_0xa6eb6)};}[_0x1a24('0x18')](_0x38a22d){for(const [,_0x25fcd1]of _0x38a22d[_0x1a24('0xd')]){const _0x2efab0=_0x25fcd1[_0x1a24('0xf6')][_0x1a24('0x98')]()[_0x1a24('0x61')](_0x273744=>_0x1a24('0x68')==_0x273744[_0x1a24('0xe5')]);for(const _0x166353 of _0x2efab0)0x1==_0x166353['childCount']&&_0x166353[_0x1a24('0x39')](0x0)['is'](_0x1a24('0x1c'),_0x1a24('0x46'))&&_0x166353[_0x1a24('0x39')](0x0)[_0x1a24('0x10')]('keepParagraph',!0x0);}}[_0x1a24('0xe6')](_0x3a9754){this[_0x1a24('0x18')](_0x3a9754);const _0xb38948=this[_0x1a24('0x29')]['data'][_0x1a24('0x2')](_0x3a9754,{}),_0x19a56c=Array[_0x1a24('0xa2')](_0xb38948[_0x1a24('0xd5')]())[_0x1a24('0x99')](_0x31c843=>this[_0x1a24('0x83')](_0x31c843));return JSON[_0x1a24('0x4a')](_0x19a56c);}['_getViewJson'](_0x89f2cb){if(_0x89f2cb['is']('$text'))return _0x89f2cb[_0x1a24('0x96')];{const _0x395cea=_0x89f2cb;return{'type':Object[_0x1a24('0xf9')](B)[_0x1a24('0x12')](_0x1d466a=>_0x89f2cb instanceof B[_0x1d466a]),'name':_0x395cea[_0x1a24('0xe5')],'attributes':Array['from'](_0x395cea[_0x1a24('0xd3')]()),'children':Array[_0x1a24('0xa2')](_0x395cea['getChildren']())[_0x1a24('0x99')](_0x138e78=>this[_0x1a24('0x83')](_0x138e78))};}}[_0x1a24('0xb0')](_0x2c0ce9,_0x951d0a,_0x5d1886,_0x17e3f5,_0x2fe876){let _0x1373e7=null,_0x3fb1ad=null,_0x105b7a=0x0;const _0xaf50b7=this[_0x1a24('0x29')][_0x1a24('0x3a')];for(let _0x1c001e=0x0;_0x1c001e<_0x951d0a['length'];_0x1c001e++){const _0x573835=this[_0x1a24('0x25')](_0x951d0a[_0x1c001e]),_0x5d293b=_0x951d0a[_0x1c001e]['item']['getAttribute'](_0x573835),_0x1ce3d9=_0x5d1886[_0x1a24('0x4f')](_0x5d293b),_0x4cb7af=_0x1c001e==_0x951d0a[_0x1a24('0x4')]-0x1;(!_0x1373e7&&_0x1ce3d9&&(_0x1373e7=_0x1ce3d9,_0x3fb1ad=_0x951d0a[_0x1c001e]),_0x1373e7&&(!_0x1ce3d9||_0x1ce3d9[_0x1a24('0xc3')]!=_0x1373e7['userId']))&&(_0x3de49f(_0x1ce3d9,L(_0x3fb1ad,_0x2c0ce9,_0xaf50b7),L(_0x951d0a[_0x1c001e],_0x2c0ce9,_0xaf50b7)),_0x1373e7=_0x1ce3d9||null,_0x3fb1ad=_0x1ce3d9?_0x951d0a[_0x1c001e]:null),_0x1373e7&&_0x4cb7af&&_0x3de49f(_0x1ce3d9,L(_0x3fb1ad,_0x2c0ce9,_0xaf50b7),W(_0x951d0a[_0x1c001e],_0x2c0ce9,_0xaf50b7));}function _0x3de49f(_0x5b1d41,_0x415f5c,_0x337635){const _0x1ec296=_0x1373e7['userId'],_0x404f2a='revision:'+_0x17e3f5+':'+_0x1ec296+':'+_0x105b7a++,_0x3856e6=_0xaf50b7[_0x1a24('0xde')](_0x415f5c,_0x337635);_0x2c0ce9[_0x1a24('0xd')][_0x1a24('0xef')](_0x404f2a,_0x3856e6),null!==_0x1ec296&&_0x2fe876[_0x1a24('0xd9')](_0x1ec296);}}[_0x1a24('0x25')](_0x311f52){switch(_0x311f52[_0x1a24('0x32')]){case _0x1a24('0x48'):return'vid_start';case'elementEnd':return _0x1a24('0x73');default:return'vid';}}[_0x1a24('0x91')](_0x388b85,_0x10f8a3){_0x388b85['baseVersion']=null;for(const _0xef7f29 in _0x388b85){const _0x5c6492=_0x388b85[_0xef7f29];if(_0x5c6492 instanceof _0x59bba7){const _0x2c2b33=_0x10f8a3[_0x1a24('0x4f')](_0x5c6492['root'][_0x1a24('0x1b')]);_0x388b85[_0xef7f29]=this[_0x1a24('0xc1')](_0x5c6492,_0x2c2b33);}if(_0x5c6492 instanceof _0xb6f6a0){const _0x510c68=_0x10f8a3[_0x1a24('0x4f')](_0x5c6492[_0x1a24('0xe1')]['rootName']);_0x388b85[_0xef7f29]=this[_0x1a24('0x5')](_0x5c6492,_0x510c68);}_0x1a24('0xe1')===_0xef7f29&&(_0x388b85[_0x1a24('0xe1')]=_0x10f8a3['get'](_0x388b85['root'][_0x1a24('0x1b')]));}}[_0x1a24('0x5')](_0x11c45c,_0x229432){return this[_0x1a24('0x29')][_0x1a24('0x3a')][_0x1a24('0xde')](this['_fixPosition'](_0x11c45c[_0x1a24('0xf6')],_0x229432),this['_fixPosition'](_0x11c45c[_0x1a24('0xf7')],_0x229432));}[_0x1a24('0xc1')](_0x45da19,_0x44500e){return this[_0x1a24('0x29')][_0x1a24('0x3a')]['createPositionFromPath'](_0x44500e,_0x45da19[_0x1a24('0x8a')],_0x45da19[_0x1a24('0x100')]);}['_handleInsertOperation'](_0x49c40d){const _0x10d3f1=this[_0x1a24('0xf1')]['get'](_0x49c40d[_0x1a24('0xaa')][_0x1a24('0xe1')]['rootName']),_0x10e14d=this[_0x1a24('0xc1')](_0x49c40d[_0x1a24('0xaa')],_0x10d3f1),_0x47804c=null===_0x49c40d[_0x1a24('0x28')]?null:_0x49c40d['_authorId']||this[_0x1a24('0x29')]['plugins'][_0x1a24('0x4f')](_0x1a24('0x6c'))['me']['id'],_0x3db0aa=_0x10e14d[_0x1a24('0x5d')],_0x41fe73=this[_0x1a24('0xea')],_0x3f0ca7=[];for(const _0x2cd002 of _0x49c40d[_0x1a24('0x34')])if(_0x2cd002['is'](_0x1a24('0x1c')))_0x3f0ca7[_0x1a24('0x2f')](this[_0x1a24('0x4d')](_0x2cd002));else for(let _0x53ac17=0x0;_0x53ac17<_0x2cd002[_0x1a24('0xca')];_0x53ac17++)_0x3f0ca7[_0x1a24('0x2f')](new _0x347e6a(_0x1a24('0x4e'),{'vid':this['_revisionId']++}));const _0x468889=this[_0x1a24('0xea')];for(let _0x1301e1=_0x41fe73;_0x1301e1<_0x468889;_0x1301e1++)this[_0x1a24('0xb')][_0x1a24('0xef')](_0x1301e1,{'userId':_0x47804c});_0x3db0aa['_insertChild'](_0x10e14d['offset'],_0x3f0ca7);}[_0x1a24('0x14')](_0x3e06be){(_0x3e06be=this[_0x1a24('0xc9')](_0x3e06be,this[_0x1a24('0xf1')]))['_execute']();const _0x457b91=null===_0x3e06be[_0x1a24('0x28')]?null:_0x3e06be['_authorId']||this[_0x1a24('0x29')]['plugins']['get']('Users')['me']['id'],_0x17d81a=_0x3e06be['getMovedRangeStart'](),_0x2bca4b=_0x17d81a[_0x1a24('0x5d')],_0x2cec72=_0x17d81a[_0x1a24('0xc4')];!function _0x1e0fd3(_0x389ba6,_0x175df7,_0x55ec3d,_0x4ab5c5){for(let _0x2e5446=_0x55ec3d;_0x2e5446<_0x4ab5c5;_0x2e5446++){const _0x3393e5=_0x175df7[_0x1a24('0x39')](_0x2e5446);_0x3393e5['is'](_0x1a24('0x1c'),_0x1a24('0x4e'))?_0x389ba6[_0x1a24('0xef')](_0x3393e5[_0x1a24('0x65')]('vid'),{'userId':_0x457b91}):(_0x389ba6[_0x1a24('0xef')](_0x3393e5['getAttribute'](_0x1a24('0xe')),{'userId':_0x457b91}),_0x1e0fd3(_0x389ba6,_0x3393e5,0x0,_0x3393e5['childCount']),_0x389ba6[_0x1a24('0xef')](_0x3393e5[_0x1a24('0x65')]('vid_end'),{'userId':_0x457b91}));}}(this[_0x1a24('0xb')],_0x2bca4b,_0x2cec72,_0x2cec72+_0x3e06be[_0x1a24('0x16')]);}[_0x1a24('0x71')](_0x1eaa6a){const _0x885915=null===(_0x1eaa6a=this[_0x1a24('0xc9')](_0x1eaa6a,this[_0x1a24('0xf1')]))[_0x1a24('0x28')]?null:_0x1eaa6a['_authorId']||this[_0x1a24('0x29')][_0x1a24('0xe8')]['get'](_0x1a24('0x6c'))['me']['id'],_0x42e91f=_0x1eaa6a[_0x1a24('0x24')][_0x1a24('0x5d')],_0x25f5b5=_0x1eaa6a[_0x1a24('0x2d')][_0x1a24('0x5d')],_0x5c6c49=_0x42e91f[_0x1a24('0x65')](_0x1a24('0x73')),_0x5b371d=_0x25f5b5[_0x1a24('0x65')]('vid_start');_0x42e91f['_setAttribute'](_0x1a24('0x73'),_0x25f5b5[_0x1a24('0x65')](_0x1a24('0x73'))),_0x25f5b5[_0x1a24('0x10')](_0x1a24('0x73'),_0x5c6c49),this['_touched'][_0x1a24('0xef')](_0x5b371d,{'userId':_0x885915}),this[_0x1a24('0xb')][_0x1a24('0xef')](_0x5c6c49,{'userId':_0x885915}),_0x1eaa6a[_0x1a24('0xbe')]();}[_0x1a24('0x7f')](_0x33fb94){const _0x407c69=null===(_0x33fb94=this[_0x1a24('0xc9')](_0x33fb94,this['_idsRoots']))['_authorId']?null:_0x33fb94['_authorId']||this['editor']['plugins'][_0x1a24('0x4f')](_0x1a24('0x6c'))['me']['id'],_0x1e71a2=_0x33fb94[_0x1a24('0x8b')],_0x27f64f=_0x33fb94['splitPosition'][_0x1a24('0x5d')];_0x33fb94[_0x1a24('0xbe')]();const _0x4ccaf1=_0x27f64f['getAttribute']('vid_end'),_0x10b539=_0x33fb94[_0x1a24('0x97')]['nodeAfter'];if(_0x1e71a2){const _0x471b13=_0x10b539[_0x1a24('0x65')]('vid_end'),_0x48d69c=_0x27f64f['getAttribute'](_0x1a24('0x73'));_0x27f64f[_0x1a24('0x10')](_0x1a24('0x73'),_0x471b13),_0x10b539['_setAttribute'](_0x1a24('0x73'),_0x48d69c),this['_touched'][_0x1a24('0xef')](_0x27f64f[_0x1a24('0x65')](_0x1a24('0x73')),{'userId':_0x407c69}),this[_0x1a24('0xb')][_0x1a24('0xef')](_0x10b539['getAttribute'](_0x1a24('0xe')),{'userId':_0x407c69});}else{const _0x13a883=this['_revisionId']++,_0x4d7721=this[_0x1a24('0xea')]++;_0x27f64f[_0x1a24('0x10')](_0x1a24('0x73'),_0x13a883),_0x10b539[_0x1a24('0x10')]('vid_start',_0x4d7721),_0x10b539[_0x1a24('0x10')](_0x1a24('0x73'),_0x4ccaf1),this['_touched'][_0x1a24('0xef')](_0x13a883,{'userId':_0x407c69}),this[_0x1a24('0xb')][_0x1a24('0xef')](_0x4d7721,{'userId':_0x407c69});}}[_0x1a24('0x9d')](_0x21103c){if(!_0x21103c[_0x1a24('0x8d')])return;const _0x22898f=(_0x21103c=this[_0x1a24('0xc9')](_0x21103c,this[_0x1a24('0xf0')]))[_0x1a24('0x22')]?_0x21103c[_0x1a24('0x22')][_0x1a24('0xe1')]:null,_0x2f12d9=_0x21103c[_0x1a24('0xd2')]?_0x21103c[_0x1a24('0xd2')][_0x1a24('0xe1')]:null;_0x22898f&&this[_0x1a24('0xf')]['delete'](_0x21103c[_0x1a24('0xe5')]),_0x2f12d9&&this['_markers'][_0x1a24('0xef')](_0x21103c[_0x1a24('0xe5')],_0x21103c['newRange'][_0x1a24('0xc0')]());const _0x8783e=null===_0x21103c[_0x1a24('0x28')]?null:_0x21103c[_0x1a24('0x28')]||this[_0x1a24('0x29')][_0x1a24('0xe8')][_0x1a24('0x4f')](_0x1a24('0x6c'))['me']['id'],_0x248375=_0x21103c['name'];if(!this[_0x1a24('0x5c')][_0x1a24('0xae')](_0x248375))return void this['_touchedMarkers'][_0x1a24('0xef')](_0x248375,{'range':_0x21103c[_0x1a24('0x22')],'userId':_0x8783e});const _0x126fad=this[_0x1a24('0x5c')][_0x1a24('0x4f')](_0x248375),_0x1e0d10=_0x126fad['range'],_0x2a373c=_0x21103c['newRange'];null==_0x1e0d10&&null==_0x2a373c||_0x1e0d10&&_0x2a373c&&_0x1e0d10[_0x1a24('0xd1')](_0x2a373c)?this[_0x1a24('0x5c')][_0x1a24('0x102')](_0x21103c[_0x1a24('0xe5')]):_0x126fad[_0x1a24('0xc3')]=_0x8783e;}[_0x1a24('0x52')](_0x479579,_0x5a3156){this[_0x1a24('0xf0')][_0x1a24('0xae')](_0x479579[_0x1a24('0x1b')])?this[_0x1a24('0xf0')][_0x1a24('0x4f')](_0x479579[_0x1a24('0x1b')])[_0x1a24('0x0')]=_0x479579['isAdd']:(this['_diffRoots'][_0x1a24('0xef')](_0x479579[_0x1a24('0x1b')],G(_0x479579['rootName'],!0x0)),this[_0x1a24('0x54')][_0x1a24('0xef')](_0x479579[_0x1a24('0x1b')],{}),_0x5a3156&&this[_0x1a24('0xf1')][_0x1a24('0xef')](_0x479579['rootName'],G(_0x479579['rootName'],!0x0)));const _0x3e17ab=null===_0x479579[_0x1a24('0x28')]?null:_0x479579['_authorId']||this['editor'][_0x1a24('0xe8')]['get']('Users')['me']['id'],_0x356e2a=this[_0x1a24('0x106')][_0x1a24('0x4f')](_0x479579[_0x1a24('0x1b')]);_0x356e2a&&_0x356e2a[_0x1a24('0xc3')]===_0x3e17ab?this['_touchedRoots']['delete'](_0x479579['rootName']):this[_0x1a24('0x106')]['set'](_0x479579[_0x1a24('0x1b')],{'userId':_0x3e17ab,'isAttached':_0x479579[_0x1a24('0x62')]});}['_handleRootAttributeOperation'](_0x4dec78){const _0x476555=this[_0x1a24('0x54')][_0x1a24('0x4f')](_0x4dec78['root'][_0x1a24('0x1b')]);null===_0x4dec78[_0x1a24('0xfa')]?delete _0x476555[_0x4dec78[_0x1a24('0xcd')]]:_0x476555[_0x4dec78[_0x1a24('0xcd')]]=_0x4dec78[_0x1a24('0xfa')];}}function q(_0x3e0f93){const _0x585c80=G(_0x3e0f93[_0x1a24('0x1b')],_0x3e0f93[_0x1a24('0x4c')]());for(const _0x1d885a of _0x3e0f93['getChildren']()){const _0x1d6e0f=_0x1d885a[_0x1a24('0xcb')](!0x0);_0x585c80['_appendChild'](_0x1d6e0f);}return _0x585c80;}function G(_0x4f8236,_0x2e6b33=!0x0){const _0xe68236=new _0x152ab9();return _0xe68236[_0x1a24('0x1b')]=_0x4f8236,_0xe68236[_0x1a24('0x0')]=_0x2e6b33,_0xe68236[_0x1a24('0x4c')]=()=>_0xe68236[_0x1a24('0x0')],_0xe68236;}function L(_0x31e873,_0x9432af,_0x371e51){const _0x503e06=_0x1a24('0x63')==_0x31e873[_0x1a24('0x32')]?_0x371e51[_0x1a24('0xbc')](_0x31e873[_0x1a24('0xc6')],_0x1a24('0xf7')):_0x371e51[_0x1a24('0xb1')](_0x31e873[_0x1a24('0xc6')]);return _0x371e51[_0x1a24('0x95')](_0x9432af,_0x503e06[_0x1a24('0x8a')],_0x503e06['stickiness']);}function W(_0x2d6f8c,_0x1db755,_0x9c8e79){const _0x6ef9a8='elementStart'==_0x2d6f8c['type']?_0x9c8e79[_0x1a24('0xbc')](_0x2d6f8c[_0x1a24('0xc6')],0x0):_0x9c8e79[_0x1a24('0x67')](_0x2d6f8c[_0x1a24('0xc6')]);return _0x9c8e79[_0x1a24('0x95')](_0x1db755,_0x6ef9a8[_0x1a24('0x8a')],_0x6ef9a8[_0x1a24('0x100')]);}