@ckeditor/ckeditor5-revision-history 38.0.0-rc.1 → 38.0.1

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 _0x1a1b=['view','locale','_getBaseVids','key','creatorId','fromVersion','range','detachRoot','sendBufferedUpdates','RevisionTracker','howMany','_getState','nodes','_startingRevisionId','data','_isInit','createRevision','insertions','_loadRevisionData','_removeMetaData','bind','previousPosition','collaboration.channelId','_applyOperations','_revisionDataBuilder','_idsRoots','RevisionsRepository','_handleRootAttributeOperation','length','documentFragment','attributesAfter','_diffRoots','_markers','_touchedRoots','elementStart','addRevision','_startingVersion','start','offsetSize','initial','loadState','roots','getChild','getCurrentRevisionId','find','_baseIdsRoots','insertion','_saveMetaData','element','position','history','default','markerToData','get','isEnabled','RealTimeCollaborationClient','attributes','getRoot','userId','isAttached','reInit','getUser','_createInitialRevision','size','authors','_handleSplitOperation','_baseRootsAttributes','push','useFillerType','split','reinsert','attachChange','_getVidAttributeName','repository','createRange','setSource','_handleMarkerOperation','vid','createPositionAt','_fixRange','getLatestVersion','_markChanges','set','authorsIds','has','_isPendingUpdate','revision-start','oldRange','_revisionId','getChildren','newRange','getRange','affectsData','marker','toData','setRevisionData','includes','delete','_handleRootOperation','_baseRoots','item','toView','_insertChild','isReady','merge','_getFromVersion','resolve','offset','isEqual','stickiness','baseVersion','insert','_getViewJson','initialData','graveyardPosition','addRevisionData','end','_copyMarkers','_fixPosition','revision','string','_fixOperation','_clone','$text','getWalker','_continueCurrentRevision','getAttributes','shift','getNodeByPath','dataDowncast','parse','_touchedMarkers','getRevisionDocumentData','map','removeRootAttribute','move','editor-initial-data-replaced-with-revision-data','addRoot','startsWith','config','clone','_handleMoveOperation','trim','_bufferedUpdates','root','elementEnd','model','path','_createCurrentRevision','diffData','childCount','_makeIdsRoot','_execute','source','editing','fromEntries','keepParagraph','_transformMarkers','_calculateMetaData','_lastTo','deletion','some','isAdd','values','_touched','_authorId','getRevisionRootsAttributes','clear','getAttribute','_lastFrom','from','insertionPosition','vid_end','getTransformedByOperation','max','PendingActions','toVersion','_loadState','rootsAttributes','_getPreviousFrom','getOperation','_setAttribute','_savedMetaData','type','_initialRevisionId','sort','_cloneOperation','keys','newValue','toModel','pluginName','sourcePosition','version','revision-end','_appendChild','markers','creator','createdAt','_handleMergeOperation','createRangeIn','adapter','_update','_source','slice','processor','name','conversion','add','_makeModelFromViewString','_diffRootsAttributes','_pendingAction','_setConversion','hasContent','_handleInsertOperation','upcast','createPositionFromPath','PENDING_ACTION_REVISION_HISTORY','document','rootName','getAncestors','ready','vid_start','getData','_handleOperation','_generateTape','buildRevisionData','filter','revision:','tableCell','_initialRoots','plugins','afterInit','remove','_makeRevision','createPositionAfter','getTime','_loadedStateData','NEGATIVE_INFINITY','_createFromRanges','then','saveRevision','_bufferUpdate','Users','currentRevision','_removePendingAction','requires','_isAttached','deletions','_replaceEditorDataWithRevisionData','reverse','children','forEach','getRootNames','$graveyard','revisionHistory.resumeUnsavedRevision','editor','_findInsertionIndex','paragraph','getIndex','getRevision','updateRevisions','_removeRevisionMarkers','for','define','init','parent','_prepareViewToSave','targetPosition'];(function(_0x428d8c,_0x1a1bc5){const _0x4dd5ff=function(_0x34d596){while(--_0x34d596){_0x428d8c['push'](_0x428d8c['shift']());}};_0x4dd5ff(++_0x1a1bc5);}(_0x1a1b,0x17b));const _0x4dd5=function(_0x428d8c,_0x1a1bc5){_0x428d8c=_0x428d8c-0x0;let _0x4dd5ff=_0x1a1b[_0x428d8c];return _0x4dd5ff;};import{Users as _0x4b38ff}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x1b1345,PendingActions as _0x16e63f}from'ckeditor5/src/core';import{logWarning as _0x2f3209,uid as _0x1906ad}from'ckeditor5/src/utils';import{Position as _0x3ba29e,Range as _0x5d0701,Element as _0x4bbddb,DocumentFragment as _0xa7f566,ViewText as _0x182b62,ViewElement as _0xcad7c8,ViewContainerElement as _0x51b763,ViewAttributeElement as _0x375ece,ViewEmptyElement as _0x3fb80c,ViewRawElement as _0x2fdb4f,ViewUIElement as _0x5eb3e1,ViewDocumentFragment as _0x43e6fd}from'ckeditor5/src/engine';import _0x41a4bb from'./revisionsrepository';import{getTranslation as _0x829b0}from'./utils/common-translations';import{cloneDeep as _0x5bdcbe,isEqual as _0x490a96}from'lodash-es';const j={'c':_0x51b763,'a':_0x375ece,'e':_0x3fb80c,'r':_0x2fdb4f,'u':_0x5eb3e1};export default class l extends _0x1b1345{static get[_0x4dd5('0x4f')](){return _0x4dd5('0xa6');}static get[_0x4dd5('0x86')](){return[_0x4b38ff,_0x41a4bb,_0x16e63f];}constructor(_0x4aca61){super(_0x4aca61),this['adapter']=null,this['currentRevision']=null,this[_0x4dd5('0xb5')]=new T(this[_0x4dd5('0x90')]),this[_0x4dd5('0x49')]=this[_0x4dd5('0x90')]['config'][_0x4dd5('0xd2')](_0x4dd5('0xb3'))||_0x4dd5('0xc4'),this[_0x4dd5('0x20')]=new Map(),this[_0x4dd5('0x7d')]=null;const _0xc9355a=_0x1906ad();this[_0x4dd5('0x5b')]={'history':this['editor'][_0x4dd5('0x23')][_0x4dd5('0x6a')][_0x4dd5('0xcf')],'getLatestVersion':()=>Promise[_0x4dd5('0x107')](this['editor'][_0x4dd5('0x23')][_0x4dd5('0x6a')][_0x4dd5('0x51')]),'getCurrentRevisionId':()=>_0xc9355a},this['set'](_0x4dd5('0x104'),!0x1),this[_0x4dd5('0xef')](_0x4dd5('0xd3'),!0x0),this[_0x4dd5('0xef')](_0x4dd5('0xf2'),!0x1),this[_0x4dd5('0x90')]['config'][_0x4dd5('0x98')](_0x4dd5('0x8f'),!0x0),this[_0x4dd5('0x90')]['conversion']['for'](_0x4dd5('0x67'))['dataToMarker']({'view':_0x4dd5('0x8')});}[_0x4dd5('0x99')](){this[_0x4dd5('0xe6')]=this[_0x4dd5('0x90')][_0x4dd5('0x77')][_0x4dd5('0xd2')](_0x4dd5('0xb7')),this[_0x4dd5('0x64')](),this[_0x4dd5('0x90')][_0x4dd5('0xab')]['on'](_0x4dd5('0x6d'),()=>{const _0x50cc49=this[_0x4dd5('0xe6')][_0x4dd5('0x94')](0x0),_0x488da5=_0x50cc49&&null===_0x50cc49['creator']?_0x50cc49:null;if(this['_continueCurrentRevision']=!!_0x488da5&&this[_0x4dd5('0x90')][_0x4dd5('0x1c')][_0x4dd5('0xd2')](_0x4dd5('0x8f')),this[_0x4dd5('0x90')][_0x4dd5('0x77')][_0x4dd5('0xf1')](_0x4dd5('0xd4'))){const _0x30c00f=this[_0x4dd5('0x5b')][_0x4dd5('0xc8')](),_0x34158c=this['repository']['getRevision'](_0x30c00f);if(_0x34158c)this['_startingVersion']=_0x34158c[_0x4dd5('0xa2')],this[_0x4dd5('0xe')]=!0x1;else{const _0x2f7185=this['_source'][_0x4dd5('0xcf')]['_operations'][_0x4dd5('0xc9')](_0x54a14c=>!_0x54a14c[_0x4dd5('0xac')]),_0x52e089=_0x2f7185?_0x2f7185[_0x4dd5('0x10b')]:this[_0x4dd5('0x5b')][_0x4dd5('0xcf')][_0x4dd5('0x51')];_0x50cc49?(_0x50cc49['toVersion']<_0x52e089&&_0x50cc49[_0x4dd5('0x5a')]({'toVersion':_0x52e089}),this[_0x4dd5('0xe')]?(this[_0x4dd5('0x5b')]['getCurrentRevisionId']=()=>_0x488da5['id'],this[_0x4dd5('0xc1')]=_0x488da5[_0x4dd5('0xa2')]):(this[_0x4dd5('0xc1')]=_0x50cc49[_0x4dd5('0x41')],this[_0x4dd5('0xe')]=!0x1)):(this[_0x4dd5('0xc1')]=_0x52e089,this[_0x4dd5('0xe')]=!0x1);}}else _0x488da5&&(this[_0x4dd5('0x90')][_0x4dd5('0x23')][_0x4dd5('0x6a')][_0x4dd5('0xcf')]['version']=Math[_0x4dd5('0x3f')](_0x488da5[_0x4dd5('0x41')],this[_0x4dd5('0x90')][_0x4dd5('0x23')]['document'][_0x4dd5('0xcf')][_0x4dd5('0x51')]),_0x488da5[_0x4dd5('0xa2')]===_0x488da5['toVersion']?(0x0!==_0x488da5['fromVersion']&&(this[_0x4dd5('0x5b')][_0x4dd5('0xc8')]=()=>_0x488da5['id']),this[_0x4dd5('0xe')]=!0x1):this[_0x4dd5('0xe')]&&(this[_0x4dd5('0x5b')][_0x4dd5('0xc8')]=()=>_0x488da5['id'],this[_0x4dd5('0xc1')]=_0x488da5[_0x4dd5('0xa2')])),this[_0x4dd5('0xe')]||(this[_0x4dd5('0xc1')]=this[_0x4dd5('0x90')]['model']['document'][_0x4dd5('0x51')]);this[_0x4dd5('0xb5')][_0x4dd5('0x99')](this[_0x4dd5('0x5b')][_0x4dd5('0xcf')]),this['_createInitialRevision'](this[_0x4dd5('0xc1')]),this['_createCurrentRevision'](this[_0x4dd5('0xc1')]),this['adapter']&&this['sendBufferedUpdates']();}),this[_0x4dd5('0xb1')]('isReady')['to'](this,_0x4dd5('0xf2'),_0x9ad9a0=>!_0x9ad9a0);}async[_0x4dd5('0x78')](){if(this[_0x4dd5('0xe6')][_0x4dd5('0xb9')]>0x0){const _0xea2f5b=this[_0x4dd5('0xe6')][_0x4dd5('0x94')](0x0),_0xb00a7=await this[_0x4dd5('0x15')](_0xea2f5b),_0x114ec5=await this[_0x4dd5('0x37')](_0xea2f5b);this[_0x4dd5('0x89')](_0xb00a7,_0x114ec5);}}[_0x4dd5('0xe8')](_0x53e772){this[_0x4dd5('0x5b')]=_0x53e772;}async['update'](){const _0x558fb8=await this['_source'][_0x4dd5('0xed')]();if(_0x558fb8>this[_0x4dd5('0x84')][_0x4dd5('0x41')]){await this[_0x4dd5('0x42')]();const _0x54fcde=this['buildRevisionData']({'revision':this[_0x4dd5('0x84')],'to':_0x558fb8});_0x54fcde['authors']=_0x54fcde[_0x4dd5('0xf0')][_0x4dd5('0x16')](_0x25cbc2=>this[_0x4dd5('0x90')][_0x4dd5('0x77')][_0x4dd5('0xd2')](_0x4dd5('0x83'))[_0x4dd5('0xda')](_0x25cbc2)),this[_0x4dd5('0x84')][_0x4dd5('0x5a')](_0x54fcde);}}async[_0x4dd5('0x42')](){this[_0x4dd5('0xe')]&&!this[_0x4dd5('0x7d')]&&(await this['_loadRevisionData'](this['currentRevision']),this[_0x4dd5('0xb5')][_0x4dd5('0xc5')](this[_0x4dd5('0x84')]),this[_0x4dd5('0x7d')]={'fromVersion':this[_0x4dd5('0x84')][_0x4dd5('0xa2')],'authors':this[_0x4dd5('0x84')][_0x4dd5('0xdd')][_0x4dd5('0x5c')]()});}async[_0x4dd5('0x81')](_0x208b49={},_0x58064e=null){const _0x47eb46=[];await this[_0x4dd5('0x42')](),this[_0x4dd5('0xe')]=!0x1,_0x58064e>this['currentRevision'][_0x4dd5('0x41')]&&(_0x58064e=null),null===_0x58064e&&(_0x58064e=await this[_0x4dd5('0x5b')][_0x4dd5('0xed')]());const _0x3f2cde=this[_0x4dd5('0x106')](_0x58064e),_0x293a97=this[_0x4dd5('0x72')]({'from':_0x3f2cde,'to':_0x58064e});if(this['currentRevision'][_0x4dd5('0x41')]<_0x58064e){const _0x1d72a4=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x58064e,'to':_0x58064e});_0x1d72a4[_0x4dd5('0xdd')]=[],_0x1d72a4['authorsIds']=[],_0x1d72a4['id']=this[_0x4dd5('0x84')]['id'],this[_0x4dd5('0x84')][_0x4dd5('0x5a')](_0x1d72a4,!0x0),delete _0x1d72a4['authors'],_0x47eb46[_0x4dd5('0xe0')](_0x1d72a4);}_0x208b49[_0x4dd5('0xa1')]=this[_0x4dd5('0x90')][_0x4dd5('0x77')]['get'](_0x4dd5('0x83'))['me']['id'],_0x208b49[_0x4dd5('0x5e')]=_0x208b49['name']||null,_0x208b49['id']=_0x208b49['id']||_0x1906ad(),_0x208b49={..._0x208b49,..._0x293a97};const _0x11d3e5=this[_0x4dd5('0x4')](_0x208b49);_0x47eb46[_0x4dd5('0xe0')](_0x208b49);const _0x597a7a=this[_0x4dd5('0xe6')][_0x4dd5('0x93')](_0x11d3e5);if(0x0!==_0x597a7a){const _0x5e6336=this[_0x4dd5('0xe6')][_0x4dd5('0x94')](_0x597a7a-0x1);if(_0x5e6336[_0x4dd5('0xa2')]!==_0x58064e){const _0x1da376=this[_0x4dd5('0xb5')][_0x4dd5('0x6f')](_0x58064e,_0x5e6336[_0x4dd5('0x41')]),_0x94a3d4={'id':_0x5e6336['id'],'diffData':_0x1da376['diffData'],'authorsIds':_0x1da376[_0x4dd5('0xf0')],'authors':_0x1da376[_0x4dd5('0xf0')][_0x4dd5('0x16')](_0x10b7a0=>this[_0x4dd5('0x90')][_0x4dd5('0x77')][_0x4dd5('0xd2')](_0x4dd5('0x83'))[_0x4dd5('0xda')](_0x10b7a0)),'fromVersion':_0x58064e};_0x5e6336===this['currentRevision']&&(_0x94a3d4[_0x4dd5('0x56')]=new Date(_0x208b49[_0x4dd5('0x56')][_0x4dd5('0x7c')]()+0xa)),_0x5e6336[_0x4dd5('0x5a')](_0x94a3d4,!0x0),delete _0x94a3d4[_0x4dd5('0xdd')],_0x47eb46[_0x4dd5('0xe0')](_0x94a3d4);}}if(this[_0x4dd5('0x59')]){for(const _0x18270a of _0x47eb46)this[_0x4dd5('0x82')](_0x18270a['id'],_0x18270a,!0x0);this[_0x4dd5('0xa5')]();}return _0x11d3e5;}[_0x4dd5('0x4')](_0x34614e){const _0x507a0a=this[_0x4dd5('0xe6')][_0x4dd5('0xad')](_0x34614e);return this[_0x4dd5('0x59')]&&_0x507a0a['on']('_update',(_0x1b01ea,_0x5e7998,_0x390c3c)=>{_0x390c3c||(this[_0x4dd5('0x82')](_0x5e7998['id'],_0x5e7998,!0x0),this[_0x4dd5('0xa5')]());}),this['repository'][_0x4dd5('0xc0')](_0x507a0a,this[_0x4dd5('0x91')](_0x507a0a)),_0x507a0a;}async['getRevisionDocumentData'](_0x30b927){await this[_0x4dd5('0xaf')](_0x30b927);const _0x5f4188={};for(const _0x48fa9d in _0x30b927['diffData']){if(_0x30b927[_0x4dd5('0x26')][_0x48fa9d]['attachChange']&&!_0x30b927[_0x4dd5('0x26')][_0x48fa9d][_0x4dd5('0xe4')][_0x4dd5('0xd8')])continue;const _0x42363c=this[_0x4dd5('0x96')](JSON[_0x4dd5('0x13')](_0x30b927[_0x4dd5('0x26')][_0x48fa9d][_0x4dd5('0xae')])),_0x131e2d=this[_0x4dd5('0x90')][_0x4dd5('0x2b')][_0x4dd5('0x9d')][_0x4dd5('0x6a')],_0x2c2cd3=new _0x43e6fd(_0x131e2d,_0x42363c[_0x4dd5('0x16')](_0x4a5fc1=>F(_0x4a5fc1,this['editor'])));this[_0x4dd5('0x90')]['data'][_0x4dd5('0x5d')][_0x4dd5('0xe1')]('marked'),_0x5f4188[_0x48fa9d]=this[_0x4dd5('0x90')][_0x4dd5('0xab')][_0x4dd5('0x5d')][_0x4dd5('0xfb')](_0x2c2cd3),this[_0x4dd5('0x90')][_0x4dd5('0xab')][_0x4dd5('0x5d')][_0x4dd5('0xe1')](_0x4dd5('0xd0'));}return _0x5f4188;}async[_0x4dd5('0x37')](_0xd79fd9){await this[_0x4dd5('0xaf')](_0xd79fd9);const _0x48fb60={};for(const _0x5cac4d in _0xd79fd9[_0x4dd5('0x26')])_0xd79fd9[_0x4dd5('0x26')][_0x5cac4d][_0x4dd5('0xe4')]&&!_0xd79fd9[_0x4dd5('0x26')][_0x5cac4d][_0x4dd5('0xe4')][_0x4dd5('0xd8')]||(_0x48fb60[_0x5cac4d]=_0xd79fd9['diffData'][_0x5cac4d][_0x4dd5('0xbb')]||{});return _0x48fb60;}[_0x4dd5('0xa5')](){if(0x0===this[_0x4dd5('0x20')][_0x4dd5('0xdc')])return;if(this[_0x4dd5('0xf2')])return;let _0x4247e3=Array[_0x4dd5('0x3b')](this[_0x4dd5('0x20')][_0x4dd5('0x34')]());this[_0x4dd5('0x20')]['clear']();for(let _0x15c69c=0x0;_0x15c69c<_0x4247e3[_0x4dd5('0xb9')];_0x15c69c++){const _0x3f8fe8=_0x4247e3[_0x15c69c];let _0x7fcfbb=!0x1;for(const _0x1c5441 of Object[_0x4dd5('0x4c')](_0x3f8fe8))void 0x0===_0x3f8fe8[_0x1c5441]?delete _0x3f8fe8[_0x1c5441]:'id'!==_0x1c5441&&(_0x7fcfbb=!0x0);_0x7fcfbb||(_0x4247e3[_0x15c69c]=null);}if(_0x4247e3=_0x4247e3[_0x4dd5('0x73')](_0x181fdb=>null!==_0x181fdb),!_0x4247e3[_0x4dd5('0xb9')])return;for(let _0x51331a=0x0;_0x51331a<_0x4247e3[_0x4dd5('0xb9')];_0x51331a++){const _0x13617d=_0x4247e3[_0x51331a];void 0x0!==_0x13617d[_0x4dd5('0xa2')]&&void 0x0===_0x13617d[_0x4dd5('0x41')]&&(_0x13617d[_0x4dd5('0x41')]=this['repository'][_0x4dd5('0x94')](_0x13617d['id'])[_0x4dd5('0x41')]),void 0x0!==_0x13617d[_0x4dd5('0x41')]&&void 0x0===_0x13617d['fromVersion']&&(_0x13617d[_0x4dd5('0xa2')]=this[_0x4dd5('0xe6')]['getRevision'](_0x13617d['id'])[_0x4dd5('0xa2')]);}const _0xb53411=this['editor'][_0x4dd5('0x1c')]['get'](_0x4dd5('0xb3'));this[_0x4dd5('0xf2')]=!0x0,this['_addPendingAction'](),this[_0x4dd5('0x59')][_0x4dd5('0x95')](_0x4247e3,_0xb53411)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x326feb=>{if(_0x326feb)for(const _0x357cd2 of _0x326feb)this[_0x4dd5('0xfc')]({'id':_0x357cd2['id'],'createdAt':_0x357cd2[_0x4dd5('0x56')]});this[_0x4dd5('0x85')](),this['sendBufferedUpdates']();});}[_0x4dd5('0x89')](_0x527fcd,_0x23ff17){let _0x5f4bbc=this[_0x4dd5('0x90')][_0x4dd5('0x1c')]['get'](_0x4dd5('0x2')),_0x25ad82=this[_0x4dd5('0x90')]['config'][_0x4dd5('0xd2')](_0x4dd5('0x43'));if(void 0x0===_0x5f4bbc){_0x5f4bbc={};for(const _0x5e6b00 of this[_0x4dd5('0x90')][_0x4dd5('0x23')][_0x4dd5('0x6a')]['getRootNames']())_0x5f4bbc[_0x5e6b00]='';}if(_0x4dd5('0x9')==typeof _0x5f4bbc&&(_0x5f4bbc={'main':_0x5f4bbc}),void 0x0===_0x25ad82){_0x25ad82={};for(const _0x13ee4e of this[_0x4dd5('0x90')][_0x4dd5('0x23')][_0x4dd5('0x6a')][_0x4dd5('0x8d')]())_0x25ad82[_0x13ee4e]={};}let _0x3958a1=!0x1;const _0x37ea5f=Object['keys'](_0x5f4bbc),_0x83a468=Object[_0x4dd5('0x4c')](_0x527fcd);for(const _0x1f1fbd of _0x37ea5f){if(_0x5f4bbc[_0x1f1fbd]!==_0x527fcd[_0x1f1fbd]&&''!==_0x5f4bbc[_0x1f1fbd][_0x4dd5('0x1f')]()){_0x3958a1=!0x0;break;}if(!_0x490a96(_0x25ad82[_0x1f1fbd],_0x23ff17[_0x1f1fbd])&&Object['keys'](_0x25ad82[_0x1f1fbd])['length']>0x0){_0x3958a1=!0x0;break;}}_0x3958a1||(_0x3958a1=_0x83a468[_0x4dd5('0x32')](_0x1024da=>!_0x37ea5f[_0x4dd5('0xfd')](_0x1024da))),_0x3958a1&&_0x2f3209(_0x4dd5('0x19'),{'editorData':_0x5f4bbc,'editorRootsAttributes':_0x25ad82,'revisionData':_0x527fcd,'revisionRootsAttributes':_0x23ff17}),this[_0x4dd5('0x90')][_0x4dd5('0x1c')][_0x4dd5('0xef')](_0x4dd5('0x2'),_0x527fcd),this[_0x4dd5('0x90')][_0x4dd5('0x1c')][_0x4dd5('0xef')]('rootsAttributes',_0x23ff17);}['_addPendingAction'](){if(!this[_0x4dd5('0x63')]){const _0x42cd3e=this[_0x4dd5('0x90')][_0x4dd5('0x77')]['get'](_0x4dd5('0x40'));this[_0x4dd5('0x63')]=_0x42cd3e['add'](_0x829b0(this['editor'][_0x4dd5('0x9e')],_0x4dd5('0x69')));}}['_removePendingAction'](){this[_0x4dd5('0x63')]&&(this[_0x4dd5('0x90')]['plugins']['get'](_0x4dd5('0x40'))[_0x4dd5('0x79')](this[_0x4dd5('0x63')]),this[_0x4dd5('0x63')]=null);}[_0x4dd5('0x91')](_0x535759){const _0x4bace3=this['repository']['getRevisions']();_0x4bace3[_0x4dd5('0x8a')]();let _0x4b803e=0x0;for(;_0x4b803e<_0x4bace3[_0x4dd5('0xb9')];){const _0x94f1a1=_0x4bace3[_0x4b803e];if(_0x94f1a1===this[_0x4dd5('0x84')]){_0x4b803e++;continue;}if(_0x94f1a1['id']===this[_0x4dd5('0x49')])break;const _0x2515a0=_0x535759[_0x4dd5('0x41')]-_0x94f1a1['toVersion']||_0x535759[_0x4dd5('0xa2')]-_0x94f1a1[_0x4dd5('0xa2')];if(_0x2515a0>0x0)break;if(_0x2515a0<0x0)_0x4b803e++;else{if(!_0x535759[_0x4dd5('0x55')]&&_0x94f1a1[_0x4dd5('0x55')])break;if(_0x94f1a1['creator']||!_0x535759['creator']){if(_0x535759[_0x4dd5('0x56')]>_0x94f1a1[_0x4dd5('0x56')])break;_0x4b803e++;}else _0x4b803e++;}}return _0x4b803e;}['setRevisionData'](_0x37301a){const _0x313af2=this[_0x4dd5('0xe6')]['getRevision'](_0x37301a['id']);if(_0x37301a[_0x4dd5('0x56')]&&(_0x37301a[_0x4dd5('0x56')]=new Date(_0x37301a[_0x4dd5('0x56')])),_0x37301a[_0x4dd5('0xf0')]){const _0x5e3333=this[_0x4dd5('0x90')][_0x4dd5('0x77')][_0x4dd5('0xd2')](_0x4dd5('0x83'));_0x37301a[_0x4dd5('0xdd')]=_0x37301a[_0x4dd5('0xf0')][_0x4dd5('0x16')](_0x14b9ec=>_0x5e3333[_0x4dd5('0xda')](_0x14b9ec));}_0x313af2[_0x4dd5('0x5a')](_0x37301a,!0x0);}[_0x4dd5('0x72')]({revision:_0x154128=null,from:_0x32bf72=null,to:_0x375993=null}){_0x32bf72=null!==_0x32bf72?_0x32bf72:_0x154128['fromVersion'],_0x375993=null!==_0x375993?_0x375993:_0x154128[_0x4dd5('0x41')];const _0x54ac20=this['_revisionDataBuilder']['getData'](_0x32bf72,_0x375993),_0x118df3={'diffData':_0x54ac20[_0x4dd5('0x26')],'authorsIds':_0x54ac20['authorsIds'],'fromVersion':_0x32bf72,'toVersion':_0x375993};if(!_0x154128||_0x375993!==_0x154128['toVersion']){const _0x2dca54=_0x375993-0x1,_0x34012b=this[_0x4dd5('0x5b')][_0x4dd5('0xcf')][_0x4dd5('0x45')](_0x2dca54);_0x118df3[_0x4dd5('0x56')]=_0x34012b&&_0x34012b[_0x4dd5('0x56')]||new Date();}if(this[_0x4dd5('0x7d')]&&_0x32bf72===this[_0x4dd5('0x7d')][_0x4dd5('0xa2')])for(const _0x541955 of this[_0x4dd5('0x7d')][_0x4dd5('0xdd')])_0x118df3[_0x4dd5('0xf0')][_0x4dd5('0xfd')](_0x541955['id'])||_0x118df3[_0x4dd5('0xf0')]['push'](_0x541955['id']);return _0x118df3;}['_loadRevisionData'](_0x4cfd7c){if(!_0x4cfd7c||_0x4cfd7c['diffData'])return Promise[_0x4dd5('0x107')]();{const _0x3260fd=this[_0x4dd5('0x90')][_0x4dd5('0x1c')][_0x4dd5('0xd2')](_0x4dd5('0xb3'));return this[_0x4dd5('0x59')]['getRevision']({'channelId':_0x3260fd,'revisionId':_0x4cfd7c['id']})[_0x4dd5('0x80')](_0x19cff6=>{_0x4cfd7c[_0x4dd5('0x26')]=_0x19cff6[_0x4dd5('0x26')];});}}[_0x4dd5('0x82')](_0x2403dc,_0x3197ae,_0x21be00){if(this[_0x4dd5('0x20')][_0x4dd5('0xf1')](_0x2403dc)){const _0x183ee7=this[_0x4dd5('0x20')][_0x4dd5('0xd2')](_0x2403dc);_0x3197ae=_0x21be00?{..._0x183ee7,..._0x3197ae}:{..._0x3197ae,..._0x183ee7};}this[_0x4dd5('0x20')][_0x4dd5('0xef')](_0x2403dc,_0x3197ae);}[_0x4dd5('0x106')](_0x51ee26){const _0x2c4633=this[_0x4dd5('0xe6')]['getRevisions']();_0x2c4633[_0x4dd5('0x8a')](),_0x2c4633[_0x4dd5('0x10')]();const _0x955cae=_0x2c4633['find'](_0x37914f=>_0x37914f[_0x4dd5('0x41')]<=_0x51ee26)[_0x4dd5('0x41')];return _0x955cae<this[_0x4dd5('0xc1')]?this[_0x4dd5('0xc1')]:_0x955cae;}[_0x4dd5('0xdb')](_0x63fff4){const _0x2ee4fe=this[_0x4dd5('0xe6')][_0x4dd5('0x94')](this[_0x4dd5('0xe6')]['length']-0x1);if(_0x2ee4fe)this[_0x4dd5('0x49')]=_0x2ee4fe['id'];else{const _0x5ceebb=!this['editor'][_0x4dd5('0x23')][_0x4dd5('0x6a')][_0x4dd5('0xc6')]['find'](_0x3df601=>this['editor'][_0x4dd5('0x23')][_0x4dd5('0x65')](_0x3df601)),_0x2a963f=this['editor'][_0x4dd5('0x77')]['get'](_0x4dd5('0x83'))['me']['id'],_0x37641b=_0x829b0(this['editor'][_0x4dd5('0x9e')],_0x5ceebb?'Empty\x20document':'Initial\x20revision');this[_0x4dd5('0x7a')]({'from':_0x63fff4,'to':_0x63fff4,'id':this[_0x4dd5('0x49')],'name':_0x37641b,'creatorId':_0x2a963f});}}[_0x4dd5('0x25')](_0x52f367){const _0x963ea5=this['_source'][_0x4dd5('0xc8')]();this[_0x4dd5('0x84')]=this[_0x4dd5('0xe6')][_0x4dd5('0x94')](_0x963ea5),this['currentRevision']||(this[_0x4dd5('0x84')]=this[_0x4dd5('0x7a')]({'from':_0x52f367,'to':_0x52f367,'id':_0x963ea5,'name':'','creatorId':null}));}[_0x4dd5('0x7a')]({name:_0x325221,from:_0x1d839e,to:_0xb4ae2a,creatorId:_0x52921b,id:_0xf97ca}){const _0x886477=this[_0x4dd5('0x72')]({'from':_0x1d839e,'to':_0xb4ae2a});_0x886477[_0x4dd5('0x5e')]=_0x325221,_0x886477['creatorId']=_0x52921b,_0x886477['id']=_0xf97ca;const _0x5c2a2c=this[_0x4dd5('0x4')](_0x886477);return this['adapter']&&this['_bufferUpdate'](_0x886477['id'],_0x886477,!0x0),_0x5c2a2c;}[_0x4dd5('0x64')](){this[_0x4dd5('0x90')][_0x4dd5('0x5f')][_0x4dd5('0x97')](_0x4dd5('0x12'))[_0x4dd5('0xd1')]({'model':_0x4dd5('0x8')});}['_removeRevisionMarkers'](_0x536cae){return(_0x536cae=_0x536cae[_0x4dd5('0x73')](_0x47ab56=>!_0x47ab56['name']||_0x4dd5('0xf3')!==_0x47ab56[_0x4dd5('0x5e')]&&_0x4dd5('0x52')!==_0x47ab56[_0x4dd5('0x5e')]))[_0x4dd5('0x8c')](_0x544f9e=>{_0x4dd5('0x9')!=typeof _0x544f9e&&(_0x544f9e[_0x4dd5('0x8b')]=this[_0x4dd5('0x96')](_0x544f9e['children']),_0x544f9e[_0x4dd5('0xd5')]=_0x544f9e[_0x4dd5('0xd5')][_0x4dd5('0x73')](_0x40d70b=>!_0x40d70b[0x0][_0x4dd5('0x1b')]('data-revision-')));}),_0x536cae;}}function F(_0x4f195f,_0x60598a){const _0x567074=_0x60598a[_0x4dd5('0x2b')]['view'][_0x4dd5('0x6a')];if('string'==typeof _0x4f195f)return new _0x182b62(_0x567074,_0x4f195f);{const _0x12816b=_0x4f195f[_0x4dd5('0x8b')][_0x4dd5('0x16')](_0x3bb07d=>F(_0x3bb07d,_0x60598a));return new(j[_0x4f195f[(_0x4dd5('0x48'))]]||_0xcad7c8)(_0x567074,_0x4f195f[_0x4dd5('0x5e')],_0x4f195f[_0x4dd5('0xd5')],_0x12816b);}}class T{constructor(_0x146a6b){this[_0x4dd5('0x90')]=_0x146a6b,this[_0x4dd5('0x47')]=new Map(),this['_lastFrom']=-0x1,this[_0x4dd5('0x30')]=-0x1,this[_0x4dd5('0xbd')]=new Map(),this[_0x4dd5('0xbc')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x4dd5('0x100')]=new Map(),this['_baseRootsAttributes']=new Map(),this['_idsRoots']=new Map(),this[_0x4dd5('0xca')]=new Map(),this[_0x4dd5('0x35')]=new Map(),this[_0x4dd5('0x14')]=new Map(),this[_0x4dd5('0xbe')]=new Map(),this['_revisionId']=0x1,this[_0x4dd5('0x76')]=this[_0x4dd5('0x90')]['model'][_0x4dd5('0x6a')]['getRootNames'](),this[_0x4dd5('0x76')][_0x4dd5('0xe0')]('$graveyard');}['init'](_0x584a81){this[_0x4dd5('0x2a')]=_0x584a81;const _0x5b04ce=new Map(),_0xdae952=new Map(),_0x308f59=this[_0x4dd5('0x90')][_0x4dd5('0x23')]['document']['getRootNames'](!0x0);_0x308f59[_0x4dd5('0xe0')](_0x4dd5('0x8e'));for(const _0x43e10b of _0x308f59){const _0x28e3fb=this['editor'][_0x4dd5('0x23')]['document'][_0x4dd5('0xd6')](_0x43e10b),_0x4232b8=B(_0x28e3fb);_0x5b04ce['set'](_0x43e10b,_0x4232b8),_0xdae952[_0x4dd5('0xef')](_0x43e10b,Object[_0x4dd5('0x2c')](_0x28e3fb[_0x4dd5('0xf')]()));}const _0x5b38bc=Array[_0x4dd5('0x3b')](this[_0x4dd5('0x90')][_0x4dd5('0x23')]['markers'])[_0x4dd5('0x16')](_0x35b340=>[_0x35b340[_0x4dd5('0x5e')],_0x35b340[_0x4dd5('0xf8')]()]),_0x4c445c=this[_0x4dd5('0x2a')][_0x4dd5('0x51')];this[_0x4dd5('0xcc')](_0x4c445c,_0x5b04ce,_0x5b38bc,_0xdae952),this['_startingRevisionId']=this[_0x4dd5('0xf5')];const _0x5e2fbf=new Map(),_0x56f0b6=new Map();for(const _0x3e9209 of this[_0x4dd5('0x76')]){const _0x4ba63c=J(_0x3e9209);_0x5e2fbf['set'](_0x3e9209,_0x4ba63c),_0x56f0b6[_0x4dd5('0xef')](_0x3e9209,{});}this[_0x4dd5('0xcc')](Number[_0x4dd5('0x7e')],_0x5e2fbf,[],_0x56f0b6);}[_0x4dd5('0x6f')](_0x341ef3,_0x5de71c){if(this[_0x4dd5('0x3a')]===_0x341ef3&&this[_0x4dd5('0x30')]<=_0x5de71c)this['_savedMetaData'][_0x4dd5('0xdc')]>0x1&&this[_0x4dd5('0xb0')](this[_0x4dd5('0x30')]),this[_0x4dd5('0xb4')](this[_0x4dd5('0x30')],_0x5de71c,!0x0);else{if(!this[_0x4dd5('0x47')][_0x4dd5('0xf1')](_0x341ef3)){const _0x32e872=this[_0x4dd5('0x44')](_0x341ef3);this[_0x4dd5('0x2f')](_0x32e872,_0x341ef3,!0x1);}this[_0x4dd5('0x2f')](_0x341ef3,_0x5de71c,!0x0);}return this[_0x4dd5('0x3a')]=_0x341ef3,this['_lastTo']=_0x5de71c,this[_0x4dd5('0xa8')]();}[_0x4dd5('0xc5')](_0x39d6d5){this['_reset'](),this['_lastFrom']=_0x39d6d5[_0x4dd5('0xa2')],this[_0x4dd5('0x30')]=_0x39d6d5['toVersion'];for(const _0x3694c1 in _0x39d6d5[_0x4dd5('0x26')]){const _0x5d9569=_0x39d6d5['diffData'][_0x3694c1]['attachChange'],_0x17924a=_0x5bdcbe(_0x39d6d5[_0x4dd5('0x26')][_0x3694c1]['attributesBefore'])||{},_0x3baa01=this[_0x4dd5('0x61')](_0x39d6d5[_0x4dd5('0x26')][_0x3694c1][_0x4dd5('0x88')]);_0x3baa01[_0x4dd5('0x6b')]=_0x3694c1,_0x3baa01[_0x4dd5('0x87')]=!_0x5d9569||!_0x5d9569[_0x4dd5('0xd8')],_0x3baa01[_0x4dd5('0xd8')]=()=>_0x3baa01['_isAttached'],this[_0x4dd5('0x100')][_0x4dd5('0xef')](_0x3694c1,_0x3baa01),this[_0x4dd5('0xdf')][_0x4dd5('0xef')](_0x3694c1,_0x17924a),_0x5d9569&&this['_touchedRoots'][_0x4dd5('0xef')](_0x3694c1,_0x5d9569);const _0x3b4da9=this[_0x4dd5('0x28')](_0x3baa01);this[_0x4dd5('0xca')]['set'](_0x3694c1,_0x3b4da9);for(const [_0x17f88b,_0x32db4a]of _0x3baa01[_0x4dd5('0x54')]){if(!_0x17f88b[_0x4dd5('0x1b')]('revision:'))continue;const _0x3f2d75=_0x17f88b['split'](':')[0x2];for(const _0x520cb8 of _0x32db4a['getWalker']({'singleCharacters':!0x0})){const _0x508ace=this['_getVidAttributeName'](_0x520cb8),_0x1a8562='elementEnd'==_0x520cb8['type']?_0x520cb8['previousPosition'][_0x4dd5('0x24')]['slice'](0x0,-0x1):_0x520cb8['previousPosition']['path'],_0x30ff4d=_0x3b4da9[_0x4dd5('0x11')](_0x1a8562)[_0x4dd5('0x39')](_0x508ace);this['_touched']['set'](_0x30ff4d,{'userId':_0x3f2d75});}}}this[_0x4dd5('0xaa')]=this[_0x4dd5('0xf5')];const _0x72e717=[...Array(this['_revisionId'])[_0x4dd5('0x4c')]()][_0x4dd5('0x5c')](0x1)[_0x4dd5('0x73')](_0x484371=>!this[_0x4dd5('0x35')][_0x4dd5('0xf1')](_0x484371));let _0x399170=0x0;const _0xebd323=new Map();for(const _0x12b487 in _0x39d6d5[_0x4dd5('0x26')]){const _0xf7d30f=_0x39d6d5[_0x4dd5('0x26')][_0x12b487][_0x4dd5('0xe4')],_0x43b104=_0x5bdcbe(_0x39d6d5['diffData'][_0x12b487][_0x4dd5('0xbb')])||{},_0x4557f7=this[_0x4dd5('0x61')](_0x39d6d5[_0x4dd5('0x26')][_0x12b487][_0x4dd5('0xae')]);_0x4557f7[_0x4dd5('0x6b')]=_0x12b487,_0x4557f7[_0x4dd5('0x87')]=!_0xf7d30f||_0xf7d30f[_0x4dd5('0xd8')],_0x4557f7[_0x4dd5('0xd8')]=()=>_0x4557f7['_isAttached'],this['_diffRoots'][_0x4dd5('0xef')](_0x12b487,_0x4557f7),this[_0x4dd5('0x62')][_0x4dd5('0xef')](_0x12b487,_0x43b104);const _0x116267=this[_0x4dd5('0x28')](_0x4557f7,Number[_0x4dd5('0x7e')]);this[_0x4dd5('0xb6')][_0x4dd5('0xef')](_0x12b487,_0x116267),_0xebd323['set'](_0x12b487,_0x4557f7[_0x4dd5('0xd8')]()?_0x43b104:{});for(const [_0xdd0eac,_0x5299ad]of _0x4557f7[_0x4dd5('0x54')]){if(!_0xdd0eac[_0x4dd5('0x1b')](_0x4dd5('0x74')))continue;const _0x358aee=_0xdd0eac[_0x4dd5('0xe2')](':')[0x2];for(const _0x4f6711 of _0x5299ad[_0x4dd5('0xd')]({'singleCharacters':!0x0})){const _0x402486=this[_0x4dd5('0xe5')](_0x4f6711),_0x84bcd7=this[_0x4dd5('0xf5')]++,_0x54b10e='elementEnd'==_0x4f6711[_0x4dd5('0x48')]?_0x4f6711[_0x4dd5('0xb2')]['path'][_0x4dd5('0x5c')](0x0,-0x1):_0x4f6711[_0x4dd5('0xb2')][_0x4dd5('0x24')];_0x116267['getNodeByPath'](_0x54b10e)[_0x4dd5('0x46')](_0x402486,_0x84bcd7),this[_0x4dd5('0x35')][_0x4dd5('0xef')](_0x84bcd7,{'userId':_0x358aee});}}for(const _0x43407c of this[_0x4dd5('0x90')]['model'][_0x4dd5('0x58')](_0x4557f7)[_0x4dd5('0xd')]({'singleCharacters':!0x0})){const _0x57385c=this[_0x4dd5('0xe5')](_0x43407c),_0x122062='elementEnd'==_0x43407c['type']?_0x43407c['previousPosition'][_0x4dd5('0x24')][_0x4dd5('0x5c')](0x0,-0x1):_0x43407c[_0x4dd5('0xb2')][_0x4dd5('0x24')],_0x29b2a8=_0x116267['getNodeByPath'](_0x122062);_0x29b2a8[_0x4dd5('0x39')](_0x57385c)>0x0||_0x29b2a8[_0x4dd5('0x46')](_0x57385c,_0x72e717[_0x399170++]);}for(const [_0x43fbc0,_0x4df78f]of _0x4557f7['markers'])_0x43fbc0['startsWith']('revision:')||this['_markers'][_0x4dd5('0xef')](_0x43fbc0,_0x4df78f);}const _0xca9071=J('$graveyard');this[_0x4dd5('0x100')][_0x4dd5('0xef')](_0x4dd5('0x8e'),_0xca9071),this['_baseIdsRoots'][_0x4dd5('0xef')](_0x4dd5('0x8e'),this[_0x4dd5('0x28')](_0xca9071,0x1));const _0xe45f62=J(_0x4dd5('0x8e'));this['_diffRoots'][_0x4dd5('0xef')](_0x4dd5('0x8e'),_0xe45f62),this[_0x4dd5('0xb6')][_0x4dd5('0xef')](_0x4dd5('0x8e'),this['_makeIdsRoot'](_0xe45f62,0x1));const _0x5ccd08=Array['from'](this[_0x4dd5('0xbc')])['map'](([_0x411a88,_0x49ee8d])=>[_0x411a88,B(_0x49ee8d)]);this['_saveMetaData'](this['_lastTo'],_0x5ccd08,this['_markers'],_0xebd323);}[_0x4dd5('0x61')](_0x156da4){const _0x4c6274=JSON[_0x4dd5('0x13')](_0x156da4),_0x10008b=this[_0x4dd5('0x90')][_0x4dd5('0x2b')][_0x4dd5('0x9d')][_0x4dd5('0x6a')],_0x12764f=new _0x43e6fd(_0x10008b,_0x4c6274[_0x4dd5('0x16')](_0x17b116=>F(_0x17b116,this[_0x4dd5('0x90')])));return this['editor'][_0x4dd5('0xab')][_0x4dd5('0x4e')](_0x12764f);}['_saveMetaData'](_0xc77f12,_0x201266,_0x2c7d82,_0x4f2cba){const _0x2f1ca9=new Map(_0x201266),_0x524216=new Map(_0x5bdcbe(_0x4f2cba)),_0x3555ab=new Map();for(const [_0x49262e,_0xe076ef]of _0x2c7d82)_0x3555ab[_0x4dd5('0xef')](_0x49262e,{'start':_0xe076ef['start'][_0x4dd5('0x1d')](),'end':_0xe076ef[_0x4dd5('0x5')][_0x4dd5('0x1d')](),'rootName':_0xe076ef['root'][_0x4dd5('0x6b')]});this[_0x4dd5('0x47')]['set'](_0xc77f12,{'roots':_0x2f1ca9,'markers':_0x3555ab,'rootsAttributes':_0x524216});}[_0x4dd5('0xb0')](_0x395c08){this[_0x4dd5('0x47')][_0x4dd5('0xfe')](_0x395c08);}[_0x4dd5('0xd9')](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData'][_0x4dd5('0x38')](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers'][_0x4dd5('0x38')](),this['_touchedRoots'][_0x4dd5('0x38')](),this['_diffRoots'][_0x4dd5('0x38')](),this[_0x4dd5('0x62')]['clear'](),this[_0x4dd5('0x100')][_0x4dd5('0x38')](),this[_0x4dd5('0xdf')][_0x4dd5('0x38')](),this[_0x4dd5('0xb6')][_0x4dd5('0x38')](),this[_0x4dd5('0xca')][_0x4dd5('0x38')](),this[_0x4dd5('0xbd')]['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this[_0x4dd5('0xf5')];}['_makeIdsRoot'](_0x2d7f0c,_0x4ea68c=null){let _0x55d380=null;_0x2d7f0c['is'](_0x4dd5('0xba'))||(_0x55d380=new _0x4bbddb(_0x2d7f0c['name'],{'vid_start':null===_0x4ea68c?this[_0x4dd5('0xf5')]++:_0x4ea68c++}));const _0x23af60=[];for(const _0x8fb61b of _0x2d7f0c[_0x4dd5('0xf6')]())if(_0x8fb61b['is'](_0x4dd5('0xcd'))){_0x23af60[_0x4dd5('0xe0')](this[_0x4dd5('0x28')](_0x8fb61b,_0x4ea68c));const _0x33c7c7=_0x23af60[_0x23af60[_0x4dd5('0xb9')]-0x1];null!==_0x4ea68c&&(_0x4ea68c=_0x33c7c7['is'](_0x4dd5('0xcd'),_0x4dd5('0xc'))?_0x33c7c7['getAttribute'](_0x4dd5('0xea'))+0x1:_0x33c7c7[_0x4dd5('0x39')](_0x4dd5('0x3d'))+0x1);}else for(let _0x4d884e=0x0;_0x4d884e<_0x8fb61b[_0x4dd5('0xc3')];_0x4d884e++)_0x23af60['push'](new _0x4bbddb(_0x4dd5('0xc'),{'vid':null===_0x4ea68c?this[_0x4dd5('0xf5')]++:_0x4ea68c++}));if(_0x2d7f0c['is']('documentFragment')){const _0x141a4b=J(_0x2d7f0c['rootName']);return _0x141a4b[_0x4dd5('0x103')](0x0,_0x23af60),_0x141a4b;}return _0x55d380[_0x4dd5('0x46')](_0x4dd5('0x3d'),null===_0x4ea68c?this[_0x4dd5('0xf5')]++:_0x4ea68c++),_0x55d380[_0x4dd5('0x103')](0x0,_0x23af60),_0x55d380;}[_0x4dd5('0x2f')](_0x4cc779,_0x313154,_0x50f65f){this['_reset']();const {roots:_0x423778,markers:_0x80e74d,rootsAttributes:_0xabc87a}=this[_0x4dd5('0x47')]['get'](_0x4cc779);this['_baseRoots']=new Map(_0x423778),this[_0x4dd5('0xdf')]=new Map(_0x5bdcbe(_0xabc87a));for(const [_0x5155c1,_0x218152]of this[_0x4dd5('0x100')])if(_0x4dd5('0x8e')!==_0x5155c1&&(this[_0x4dd5('0xbc')][_0x4dd5('0xef')](_0x5155c1,B(_0x218152)),this[_0x4dd5('0x62')]=new Map(_0x5bdcbe(_0xabc87a)),_0x50f65f)){const _0x1e53c8=this['_revisionId'];this[_0x4dd5('0xb6')][_0x4dd5('0xef')](_0x5155c1,this['_makeIdsRoot'](_0x218152)),this[_0x4dd5('0xca')][_0x4dd5('0xef')](_0x5155c1,this[_0x4dd5('0x28')](_0x218152,_0x1e53c8));}this[_0x4dd5('0xaa')]=this['_revisionId'],this[_0x4dd5('0xbc')]['set'](_0x4dd5('0x8e'),B(this[_0x4dd5('0x100')][_0x4dd5('0xd2')](_0x4dd5('0x8e')))),_0x50f65f&&this[_0x4dd5('0xb6')][_0x4dd5('0xef')]('$graveyard',this['_makeIdsRoot'](this[_0x4dd5('0x100')][_0x4dd5('0xd2')](_0x4dd5('0x8e'))));for(const [_0x4c55db,_0x1091bc]of _0x80e74d){const _0x3df9d4=this['_baseRoots'][_0x4dd5('0xd2')](_0x1091bc[_0x4dd5('0x6b')]),_0x203310=this[_0x4dd5('0xbc')][_0x4dd5('0xd2')](_0x1091bc[_0x4dd5('0x6b')]),_0xed48b2=new _0x5d0701(this[_0x4dd5('0x7')](_0x1091bc[_0x4dd5('0xc2')],_0x3df9d4),this['_fixPosition'](_0x1091bc[_0x4dd5('0x5')],_0x3df9d4)),_0x13e016=this[_0x4dd5('0xec')](_0xed48b2,_0x203310);_0x3df9d4['markers']['set'](_0x4c55db,_0xed48b2),this[_0x4dd5('0xbd')]['set'](_0x4c55db,_0x13e016);}this['_applyOperations'](_0x4cc779,_0x313154,_0x50f65f);}[_0x4dd5('0xb4')](_0x5703b9,_0x4bbe86,_0x3d8432){for(const _0x5c7cef of this['source']['getOperations'](_0x5703b9,_0x4bbe86))this[_0x4dd5('0x70')](_0x5c7cef,_0x3d8432);for(const _0x2db8df of this[_0x4dd5('0xbc')][_0x4dd5('0x34')]())_0x2db8df[_0x4dd5('0x54')][_0x4dd5('0x38')]();for(const [_0x335cc6,_0x32dc99]of this[_0x4dd5('0xbd')]){this[_0x4dd5('0xbc')][_0x4dd5('0xd2')](_0x32dc99[_0x4dd5('0x21')][_0x4dd5('0x6b')])[_0x4dd5('0x54')][_0x4dd5('0xef')](_0x335cc6,_0x32dc99['clone']());}const _0x414f26=new Map(),_0x32b77a=new Map();for(const [_0x45a823,_0x2936fb]of this[_0x4dd5('0xbc')])_0x414f26['set'](_0x45a823,B(_0x2936fb)),_0x32b77a[_0x4dd5('0xef')](_0x45a823,this[_0x4dd5('0x62')][_0x4dd5('0xd2')](_0x45a823));this[_0x4dd5('0xcc')](_0x4bbe86,_0x414f26,this[_0x4dd5('0xbd')],_0x32b77a);}[_0x4dd5('0x44')](_0x5b4b2b){const _0x251bf3=Array['from'](this[_0x4dd5('0x47')][_0x4dd5('0x4c')]());_0x251bf3[_0x4dd5('0x4a')]((_0x4760d2,_0x1c21e9)=>_0x4760d2-_0x1c21e9),_0x251bf3[_0x4dd5('0x8a')]();for(const _0x1f720b of _0x251bf3)if(_0x1f720b<_0x5b4b2b)return _0x1f720b;return Number[_0x4dd5('0x7e')];}[_0x4dd5('0x6')](_0x2223ba,_0x44d3e0){const _0x512c7=Array['from'](_0x44d3e0[_0x4dd5('0x54')])[_0x4dd5('0x16')](([_0x527a54,_0x2850c7])=>[_0x527a54,this[_0x4dd5('0xec')](_0x2850c7,_0x2223ba)]);_0x2223ba['markers']=new Map(_0x512c7);}['_transformMarkers'](_0x1eec9a){for(const _0x37e712 of this[_0x4dd5('0xbd')][_0x4dd5('0x34')]()){const _0x448b21=_0x37e712[_0x4dd5('0x3e')](_0x1eec9a),_0x2aa6bd=_0x5d0701[_0x4dd5('0x7f')](_0x448b21);_0x37e712[_0x4dd5('0xc2')]=_0x2aa6bd[_0x4dd5('0xc2')],_0x37e712[_0x4dd5('0x5')]=_0x2aa6bd[_0x4dd5('0x5')];}}['_handleOperation'](_0x2aa9f1,_0x58bc82){if(_0x4dd5('0x1a')==_0x2aa9f1[_0x4dd5('0x48')]||_0x4dd5('0xa4')==_0x2aa9f1[_0x4dd5('0x48')])return void this[_0x4dd5('0xff')](_0x2aa9f1,_0x58bc82);if(_0x4dd5('0x0')==_0x2aa9f1['type']){const _0x1c3b1f=_0x2aa9f1[_0x4dd5('0xce')]['root'][_0x4dd5('0x6b')];this['_diffRoots']['has'](_0x1c3b1f)||(this[_0x4dd5('0xbc')]['set'](_0x1c3b1f,J(_0x1c3b1f,!0x0)),this[_0x4dd5('0x62')][_0x4dd5('0xef')](_0x1c3b1f,{}),_0x58bc82&&this[_0x4dd5('0xb6')]['set'](_0x1c3b1f,J(_0x1c3b1f,!0x0)));}if('addRootAttribute'==_0x2aa9f1['type']||_0x4dd5('0x17')==_0x2aa9f1[_0x4dd5('0x48')]||'changeRootAttribute'==_0x2aa9f1['type'])return void this[_0x4dd5('0xb8')](_0x2aa9f1);const _0x4f8d88=this[_0x4dd5('0x4b')](_0x2aa9f1,this['_diffRoots']);if('marker'!==_0x2aa9f1[_0x4dd5('0x48')]&&(_0x4f8d88[_0x4dd5('0x29')](),this[_0x4dd5('0x2e')](_0x4f8d88)),_0x58bc82)switch(_0x4f8d88[_0x4dd5('0x48')]){case _0x4dd5('0x0'):this[_0x4dd5('0x66')](_0x2aa9f1);break;case _0x4dd5('0x18'):case _0x4dd5('0x79'):case _0x4dd5('0xe3'):this[_0x4dd5('0x1e')](_0x2aa9f1);break;case _0x4dd5('0x105'):this[_0x4dd5('0x57')](_0x2aa9f1);break;case'split':this['_handleSplitOperation'](_0x2aa9f1);break;case _0x4dd5('0xfa'):this[_0x4dd5('0xe9')](_0x2aa9f1);}}[_0x4dd5('0x4b')](_0x133609,_0x18316e){const _0x251452=_0x133609[_0x4dd5('0x1d')]();return _0x251452['_authorId']=_0x133609['_authorId'],this[_0x4dd5('0xa')](_0x251452,_0x18316e),_0x251452;}[_0x4dd5('0x9f')](_0x618dff){return _0x618dff['map'](_0x454bc7=>{const _0x3d6163=this['_getVidAttributeName'](_0x454bc7);return Number(_0x454bc7[_0x4dd5('0x101')]['getAttribute'](_0x3d6163));});}[_0x4dd5('0x71')](_0x30697f,_0x4b934c){if(_0x30697f['is'](_0x4dd5('0xcd'),'$text'))_0x4b934c[_0x4dd5('0xe0')]({'item':_0x30697f,'type':'text'});else{_0x30697f['is'](_0x4dd5('0xcd'))&&_0x4b934c[_0x4dd5('0xe0')]({'item':_0x30697f,'type':_0x4dd5('0xbf')});for(const _0x42b8a2 of _0x30697f['getChildren']())this[_0x4dd5('0x71')](_0x42b8a2,_0x4b934c);_0x30697f['is'](_0x4dd5('0xcd'))&&_0x4b934c[_0x4dd5('0xe0')]({'item':_0x30697f,'type':'elementEnd'});}return _0x4b934c;}[_0x4dd5('0xa8')](){const _0x4e9b43=new Map(this[_0x4dd5('0x35')]),_0x41b9ed=new Map(_0x4e9b43),_0x58d741=new Map(),_0x13bd66={'insertions':{},'deletions':{}},_0x270a6b={'insertions':{},'deletions':{}},_0xe61f3f=new Map(),_0x5bf6c6=new Set([...this[_0x4dd5('0x100')][_0x4dd5('0x4c')](),...this[_0x4dd5('0xbc')][_0x4dd5('0x4c')]()]);_0x5bf6c6[_0x4dd5('0xfe')]('$graveyard');for(const _0x3094f0 of _0x5bf6c6){const _0x33624e=this[_0x4dd5('0xbc')][_0x4dd5('0xd2')](_0x3094f0)||J(_0x3094f0,!0x1),_0x5ac43b=this[_0x4dd5('0x100')][_0x4dd5('0xd2')](_0x3094f0)||J(_0x3094f0,!0x1);_0x33624e['isAttached']()||_0x5ac43b[_0x4dd5('0xd8')]()?(_0x13bd66[_0x4dd5('0xae')][_0x3094f0]=B(_0x33624e),_0x13bd66['deletions'][_0x3094f0]=B(_0x5ac43b),this[_0x4dd5('0x6')](_0x13bd66['deletions'][_0x3094f0],_0x5ac43b),this[_0x4dd5('0x6')](_0x13bd66['insertions'][_0x3094f0],_0x33624e),_0x270a6b['insertions'][_0x3094f0]=this['_generateTape'](this[_0x4dd5('0xb6')][_0x4dd5('0xd2')](_0x3094f0),[]),_0x270a6b[_0x4dd5('0x88')][_0x3094f0]=this[_0x4dd5('0x71')](this[_0x4dd5('0xca')][_0x4dd5('0xd2')](_0x3094f0)||J(_0x3094f0,!0x1),[])):_0x5bf6c6[_0x4dd5('0xfe')](_0x3094f0);}for(const _0x13e180 of _0x5bf6c6){const _0x56996e=_0x270a6b[_0x4dd5('0xae')][_0x13e180];for(const _0xc43ab0 of _0x56996e){const _0x44a962=this[_0x4dd5('0xe5')](_0xc43ab0),_0x2320fe=_0xc43ab0[_0x4dd5('0x101')][_0x4dd5('0x39')](_0x44a962);_0x41b9ed[_0x4dd5('0xfe')](_0x2320fe),_0x2320fe>=this[_0x4dd5('0xaa')]&&_0x58d741['set'](_0x2320fe,_0x4e9b43['get'](_0x2320fe));}}for(const _0x1d37b1 of _0x5bf6c6){const _0x4ae217=_0x270a6b['insertions'][_0x1d37b1],_0x1bf307=this['_getBaseVids'](_0x270a6b[_0x4dd5('0x88')][_0x1d37b1]);let _0x3a9410=0x0;for(const _0x4b6773 of _0x4ae217){const _0x162e0b=this[_0x4dd5('0xe5')](_0x4b6773),_0x676f37=_0x4b6773['item'][_0x4dd5('0x39')](_0x162e0b);if(!_0x58d741[_0x4dd5('0xf1')](_0x676f37)&&!_0xe61f3f[_0x4dd5('0xf1')](_0x676f37)){if(_0x41b9ed[_0x4dd5('0xf1')](_0x676f37))_0x3a9410++;else{if(_0x676f37!=_0x1bf307[_0x3a9410]){const _0x245135=_0x4e9b43[_0x4dd5('0xd2')](_0x676f37)||_0x4e9b43[_0x4dd5('0xd2')](_0x1bf307[_0x3a9410]);for(;_0x676f37!=_0x1bf307[_0x3a9410];)_0x41b9ed[_0x4dd5('0xf1')](_0x1bf307[_0x3a9410])||(_0xe61f3f['set'](_0x1bf307[_0x3a9410],_0x245135),_0x4e9b43['set'](_0x1bf307[_0x3a9410],_0x245135)),_0x3a9410++;}_0x3a9410++;}}}}for(const _0x497d0a of _0x5bf6c6){const _0x5d6111=_0x270a6b[_0x4dd5('0xae')][_0x497d0a];for(const _0x4cb696 of _0x5d6111){const _0x3ae469=this['_getVidAttributeName'](_0x4cb696),_0x4e7baf=_0x4cb696[_0x4dd5('0x101')][_0x4dd5('0x39')](_0x3ae469);if(_0xe61f3f[_0x4dd5('0xf1')](_0x4e7baf)){const _0x5a1af8=_0xe61f3f[_0x4dd5('0xd2')](_0x4e7baf);_0x41b9ed[_0x4dd5('0xf1')](_0x4e7baf)||_0x41b9ed['set'](_0x4e7baf,{..._0x5a1af8}),_0x58d741[_0x4dd5('0xef')](_0x4e7baf,{..._0x5a1af8});}}}for(const _0x9955da of _0x41b9ed[_0x4dd5('0x4c')]())_0x9955da>=this[_0x4dd5('0xaa')]&&_0x41b9ed[_0x4dd5('0xfe')](_0x9955da);const _0x52ddf7=new Map();for(const _0x27c3fc of _0x5bf6c6){let _0x3b2904=_0x270a6b[_0x4dd5('0xae')][_0x27c3fc];for(const _0x1d0332 of _0x3b2904)if(_0x1d0332['item']['is'](_0x4dd5('0xcd'),_0x4dd5('0x75'))){const _0x373ff6=this[_0x4dd5('0xe5')](_0x1d0332),_0x6acfda=_0x1d0332[_0x4dd5('0x101')][_0x4dd5('0x39')](_0x373ff6);if(_0x58d741[_0x4dd5('0xf1')](_0x6acfda)){const _0x3e8204=_0x1d0332[_0x4dd5('0x101')][_0x4dd5('0x9a')]['parent'][_0x4dd5('0x39')](_0x4dd5('0x6e')),_0x597bd4=_0x52ddf7[_0x4dd5('0xd2')](_0x3e8204)||new Set();_0x597bd4[_0x4dd5('0x60')](_0x58d741['get'](_0x6acfda)[_0x4dd5('0xd7')]),_0x52ddf7[_0x4dd5('0xef')](_0x3e8204,_0x597bd4);}}_0x3b2904=_0x270a6b[_0x4dd5('0x88')][_0x27c3fc];for(const _0x1ce66c of _0x3b2904)if(_0x1ce66c[_0x4dd5('0x101')]['is']('element',_0x4dd5('0x75'))){const _0x2843d5=this['_getVidAttributeName'](_0x1ce66c),_0x2da4ff=_0x1ce66c['item'][_0x4dd5('0x39')](_0x2843d5);if(_0x41b9ed['has'](_0x2da4ff)){const _0x9ba114=_0x1ce66c[_0x4dd5('0x101')][_0x4dd5('0x9a')]['parent']['getAttribute'](_0x4dd5('0x6e')),_0x1c26f7=_0x52ddf7[_0x4dd5('0xd2')](_0x9ba114)||new Set();_0x1c26f7[_0x4dd5('0x60')](_0x41b9ed[_0x4dd5('0xd2')](_0x2da4ff)[_0x4dd5('0xd7')]),_0x52ddf7['set'](_0x9ba114,_0x1c26f7);}}for(const _0x1d43d9 of _0x52ddf7[_0x4dd5('0x4c')]())(_0x58d741['has'](_0x1d43d9)||_0x41b9ed[_0x4dd5('0xf1')](_0x1d43d9))&&_0x52ddf7[_0x4dd5('0xfe')](_0x1d43d9);}for(const _0x42d623 of _0x5bf6c6){const _0x628be7=_0x270a6b[_0x4dd5('0xae')][_0x42d623];let _0x1f0f00=null,_0x461ff8=null;for(const _0x39b118 of _0x628be7){const _0x4a31a1=this[_0x4dd5('0xe5')](_0x39b118),_0x5aaed6=_0x39b118[_0x4dd5('0x101')][_0x4dd5('0x39')](_0x4a31a1),_0x5cb165=_0x52ddf7[_0x4dd5('0xd2')](_0x5aaed6);_0x5cb165&&_0x4dd5('0xbf')==_0x39b118[_0x4dd5('0x48')]&&(_0x1f0f00=Array['from'](_0x5cb165)[0x0],_0x461ff8=_0x39b118[_0x4dd5('0x101')][_0x4dd5('0x39')](_0x4dd5('0x3d'))),_0x1f0f00&&(_0x41b9ed[_0x4dd5('0xef')](_0x5aaed6,{'userId':_0x1f0f00}),_0x58d741[_0x4dd5('0xef')](_0x5aaed6,{'userId':_0x1f0f00})),_0x5aaed6==_0x461ff8&&(_0x1f0f00=null,_0x461ff8=null);}}const _0x731ef7={},_0x6c5c8a=new Set();for(const _0x53bc5f of _0x5bf6c6){const _0x40112d=_0x13bd66['deletions'][_0x53bc5f],_0x81f74=_0x13bd66[_0x4dd5('0xae')][_0x53bc5f];for(const {userId:_0x4b7627}of this[_0x4dd5('0x14')]['values']())null!==_0x4b7627&&_0x6c5c8a[_0x4dd5('0x60')](_0x4b7627);for(const {userId:_0x50e62c}of this[_0x4dd5('0xbe')][_0x4dd5('0x34')]())null!==_0x50e62c&&_0x6c5c8a[_0x4dd5('0x60')](_0x50e62c);this[_0x4dd5('0xee')](_0x81f74,_0x270a6b[_0x4dd5('0xae')][_0x53bc5f],_0x58d741,_0x4dd5('0xcb'),_0x6c5c8a),this[_0x4dd5('0xee')](_0x40112d,_0x270a6b[_0x4dd5('0x88')][_0x53bc5f],_0x41b9ed,_0x4dd5('0x31'),_0x6c5c8a),_0x731ef7[_0x53bc5f]={'insertions':this['_prepareViewToSave'](_0x81f74),'deletions':this[_0x4dd5('0x9b')](_0x40112d),'attachChange':this[_0x4dd5('0xbe')]['get'](_0x53bc5f)||null,'attributesBefore':_0x5bdcbe(this['_baseRootsAttributes']['get'](_0x53bc5f))||{},'attributesAfter':_0x5bdcbe(this['_diffRootsAttributes']['get'](_0x53bc5f))};}return{'diffData':_0x731ef7,'authorsIds':Array[_0x4dd5('0x3b')](_0x6c5c8a)};}['_processRootBeforeSave'](_0x2342b9){for(const [,_0x4b27c]of _0x2342b9[_0x4dd5('0x54')]){const _0x22efe2=_0x4b27c[_0x4dd5('0xc2')][_0x4dd5('0x6c')]()[_0x4dd5('0x73')](_0x3caca7=>_0x4dd5('0x75')==_0x3caca7['name']);for(const _0x328d1c of _0x22efe2)0x1==_0x328d1c[_0x4dd5('0x27')]&&_0x328d1c[_0x4dd5('0xc7')](0x0)['is'](_0x4dd5('0xcd'),_0x4dd5('0x92'))&&_0x328d1c[_0x4dd5('0xc7')](0x0)['_setAttribute'](_0x4dd5('0x2d'),!0x0);}}[_0x4dd5('0x9b')](_0x43b074){this['_processRootBeforeSave'](_0x43b074);const _0x56d589=this[_0x4dd5('0x90')][_0x4dd5('0xab')][_0x4dd5('0x102')](_0x43b074,{}),_0x3a23bc=Array[_0x4dd5('0x3b')](_0x56d589[_0x4dd5('0xf6')]())[_0x4dd5('0x16')](_0x1c8a43=>this[_0x4dd5('0x1')](_0x1c8a43));return JSON['stringify'](_0x3a23bc);}[_0x4dd5('0x1')](_0x3fa59b){if(_0x3fa59b['is'](_0x4dd5('0xc')))return _0x3fa59b[_0x4dd5('0xab')];{const _0x401fa2=_0x3fa59b;return{'type':Object['keys'](j)[_0x4dd5('0xc9')](_0x1b2f14=>_0x3fa59b instanceof j[_0x1b2f14]),'name':_0x401fa2[_0x4dd5('0x5e')],'attributes':Array[_0x4dd5('0x3b')](_0x401fa2[_0x4dd5('0xf')]()),'children':Array[_0x4dd5('0x3b')](_0x401fa2[_0x4dd5('0xf6')]())[_0x4dd5('0x16')](_0x312b2b=>this[_0x4dd5('0x1')](_0x312b2b))};}}[_0x4dd5('0xee')](_0x2a9ebe,_0x3e2952,_0x415289,_0x334d9d,_0x4c11d6){let _0x512010=null,_0x274b09=null,_0x211764=0x0;const _0x49dc24=this[_0x4dd5('0x90')][_0x4dd5('0x23')];for(let _0x27391c=0x0;_0x27391c<_0x3e2952['length'];_0x27391c++){const _0x4d4f70=this[_0x4dd5('0xe5')](_0x3e2952[_0x27391c]),_0xbf0ae0=_0x3e2952[_0x27391c]['item']['getAttribute'](_0x4d4f70),_0x2c05ae=_0x415289[_0x4dd5('0xd2')](_0xbf0ae0),_0x2adb55=_0x27391c==_0x3e2952[_0x4dd5('0xb9')]-0x1;(!_0x512010&&_0x2c05ae&&(_0x512010=_0x2c05ae,_0x274b09=_0x3e2952[_0x27391c]),_0x512010&&(!_0x2c05ae||_0x2c05ae['userId']!=_0x512010[_0x4dd5('0xd7')]))&&(_0x2f5182(_0x2c05ae,H(_0x274b09,_0x2a9ebe,_0x49dc24),H(_0x3e2952[_0x27391c],_0x2a9ebe,_0x49dc24)),_0x512010=_0x2c05ae||null,_0x274b09=_0x2c05ae?_0x3e2952[_0x27391c]:null),_0x512010&&_0x2adb55&&_0x2f5182(_0x2c05ae,H(_0x274b09,_0x2a9ebe,_0x49dc24),q(_0x3e2952[_0x27391c],_0x2a9ebe,_0x49dc24));}function _0x2f5182(_0x939559,_0x530b18,_0x28b18b){const _0x5a56e4=_0x512010['userId'],_0x1c95cb=_0x4dd5('0x74')+_0x334d9d+':'+_0x5a56e4+':'+_0x211764++,_0xb52c88=_0x49dc24[_0x4dd5('0xe7')](_0x530b18,_0x28b18b);_0x2a9ebe[_0x4dd5('0x54')][_0x4dd5('0xef')](_0x1c95cb,_0xb52c88),null!==_0x5a56e4&&_0x4c11d6[_0x4dd5('0x60')](_0x5a56e4);}}[_0x4dd5('0xe5')](_0x4d3a7c){switch(_0x4d3a7c[_0x4dd5('0x48')]){case'elementStart':return _0x4dd5('0x6e');case'elementEnd':return _0x4dd5('0x3d');default:return _0x4dd5('0xea');}}[_0x4dd5('0xa')](_0x1ea002,_0x3b4b55){_0x1ea002['baseVersion']=null;for(const _0x3a93c1 in _0x1ea002){const _0x2f2841=_0x1ea002[_0x3a93c1];if(_0x2f2841 instanceof _0x3ba29e){const _0xfb48c6=_0x3b4b55[_0x4dd5('0xd2')](_0x2f2841['root'][_0x4dd5('0x6b')]);_0x1ea002[_0x3a93c1]=this[_0x4dd5('0x7')](_0x2f2841,_0xfb48c6);}if(_0x2f2841 instanceof _0x5d0701){const _0x58c79e=_0x3b4b55[_0x4dd5('0xd2')](_0x2f2841[_0x4dd5('0x21')]['rootName']);_0x1ea002[_0x3a93c1]=this[_0x4dd5('0xec')](_0x2f2841,_0x58c79e);}_0x4dd5('0x21')===_0x3a93c1&&(_0x1ea002['root']=_0x3b4b55[_0x4dd5('0xd2')](_0x1ea002[_0x4dd5('0x21')][_0x4dd5('0x6b')]));}}[_0x4dd5('0xec')](_0x1ccad2,_0xaf212d){return this[_0x4dd5('0x90')][_0x4dd5('0x23')][_0x4dd5('0xe7')](this[_0x4dd5('0x7')](_0x1ccad2[_0x4dd5('0xc2')],_0xaf212d),this[_0x4dd5('0x7')](_0x1ccad2[_0x4dd5('0x5')],_0xaf212d));}['_fixPosition'](_0x142d75,_0xbcd49d){return this[_0x4dd5('0x90')][_0x4dd5('0x23')][_0x4dd5('0x68')](_0xbcd49d,_0x142d75[_0x4dd5('0x24')],_0x142d75['stickiness']);}[_0x4dd5('0x66')](_0x2b7f60){const _0x251b4e=this['_idsRoots'][_0x4dd5('0xd2')](_0x2b7f60[_0x4dd5('0xce')]['root'][_0x4dd5('0x6b')]),_0x4a99ec=this[_0x4dd5('0x7')](_0x2b7f60[_0x4dd5('0xce')],_0x251b4e),_0x1767dc=null===_0x2b7f60[_0x4dd5('0x36')]?null:_0x2b7f60[_0x4dd5('0x36')]||this[_0x4dd5('0x90')][_0x4dd5('0x77')][_0x4dd5('0xd2')](_0x4dd5('0x83'))['me']['id'],_0x270d34=_0x4a99ec[_0x4dd5('0x9a')],_0x51b637=this['_revisionId'],_0x2065ff=[];for(const _0x5de3fa of _0x2b7f60[_0x4dd5('0xa9')])if(_0x5de3fa['is']('element'))_0x2065ff['push'](this['_makeIdsRoot'](_0x5de3fa));else for(let _0xceb3a6=0x0;_0xceb3a6<_0x5de3fa[_0x4dd5('0xc3')];_0xceb3a6++)_0x2065ff[_0x4dd5('0xe0')](new _0x4bbddb('$text',{'vid':this['_revisionId']++}));const _0x109b09=this[_0x4dd5('0xf5')];for(let _0x2a8229=_0x51b637;_0x2a8229<_0x109b09;_0x2a8229++)this[_0x4dd5('0x35')][_0x4dd5('0xef')](_0x2a8229,{'userId':_0x1767dc});_0x270d34[_0x4dd5('0x103')](_0x4a99ec[_0x4dd5('0x108')],_0x2065ff);}[_0x4dd5('0x1e')](_0x5186fb){(_0x5186fb=this[_0x4dd5('0x4b')](_0x5186fb,this[_0x4dd5('0xb6')]))['_execute']();const _0xa77d6d=null===_0x5186fb[_0x4dd5('0x36')]?null:_0x5186fb[_0x4dd5('0x36')]||this[_0x4dd5('0x90')][_0x4dd5('0x77')][_0x4dd5('0xd2')](_0x4dd5('0x83'))['me']['id'],_0x47f8e3=_0x5186fb['getMovedRangeStart'](),_0x342cb1=_0x47f8e3[_0x4dd5('0x9a')],_0x3cd84d=_0x47f8e3[_0x4dd5('0x108')];!function _0x5cb33a(_0x245a33,_0x246654,_0xab0ea1,_0x534793){for(let _0x39f4e7=_0xab0ea1;_0x39f4e7<_0x534793;_0x39f4e7++){const _0x5db45f=_0x246654[_0x4dd5('0xc7')](_0x39f4e7);_0x5db45f['is'](_0x4dd5('0xcd'),_0x4dd5('0xc'))?_0x245a33[_0x4dd5('0xef')](_0x5db45f[_0x4dd5('0x39')](_0x4dd5('0xea')),{'userId':_0xa77d6d}):(_0x245a33[_0x4dd5('0xef')](_0x5db45f[_0x4dd5('0x39')]('vid_start'),{'userId':_0xa77d6d}),_0x5cb33a(_0x245a33,_0x5db45f,0x0,_0x5db45f[_0x4dd5('0x27')]),_0x245a33[_0x4dd5('0xef')](_0x5db45f['getAttribute'](_0x4dd5('0x3d')),{'userId':_0xa77d6d}));}}(this['_touched'],_0x342cb1,_0x3cd84d,_0x3cd84d+_0x5186fb[_0x4dd5('0xa7')]);}[_0x4dd5('0x57')](_0x551691){const _0xdcdcc9=null===(_0x551691=this[_0x4dd5('0x4b')](_0x551691,this[_0x4dd5('0xb6')]))[_0x4dd5('0x36')]?null:_0x551691[_0x4dd5('0x36')]||this['editor'][_0x4dd5('0x77')][_0x4dd5('0xd2')](_0x4dd5('0x83'))['me']['id'],_0x38df7c=_0x551691[_0x4dd5('0x9c')]['parent'],_0x2f5faf=_0x551691[_0x4dd5('0x50')][_0x4dd5('0x9a')],_0x1d3f72=_0x38df7c['getAttribute'](_0x4dd5('0x3d')),_0x1729b4=_0x2f5faf[_0x4dd5('0x39')](_0x4dd5('0x6e'));_0x38df7c[_0x4dd5('0x46')](_0x4dd5('0x3d'),_0x2f5faf['getAttribute'](_0x4dd5('0x3d'))),_0x2f5faf[_0x4dd5('0x46')]('vid_end',_0x1d3f72),this[_0x4dd5('0x35')][_0x4dd5('0xef')](_0x1729b4,{'userId':_0xdcdcc9}),this[_0x4dd5('0x35')][_0x4dd5('0xef')](_0x1d3f72,{'userId':_0xdcdcc9}),_0x551691[_0x4dd5('0x29')]();}[_0x4dd5('0xde')](_0x501c7f){const _0x414a5e=null===(_0x501c7f=this[_0x4dd5('0x4b')](_0x501c7f,this[_0x4dd5('0xb6')]))[_0x4dd5('0x36')]?null:_0x501c7f[_0x4dd5('0x36')]||this['editor'][_0x4dd5('0x77')][_0x4dd5('0xd2')](_0x4dd5('0x83'))['me']['id'],_0x59f3a4=_0x501c7f[_0x4dd5('0x3')],_0x3af5bb=_0x501c7f['splitPosition'][_0x4dd5('0x9a')];_0x501c7f[_0x4dd5('0x29')]();const _0x4e6112=_0x3af5bb[_0x4dd5('0x39')](_0x4dd5('0x3d')),_0x1fd471=_0x501c7f[_0x4dd5('0x3c')]['nodeAfter'];if(_0x59f3a4){const _0x3b82c2=_0x1fd471[_0x4dd5('0x39')]('vid_end'),_0x4f3128=_0x3af5bb[_0x4dd5('0x39')]('vid_end');_0x3af5bb[_0x4dd5('0x46')](_0x4dd5('0x3d'),_0x3b82c2),_0x1fd471['_setAttribute'](_0x4dd5('0x3d'),_0x4f3128),this[_0x4dd5('0x35')]['set'](_0x3af5bb[_0x4dd5('0x39')]('vid_end'),{'userId':_0x414a5e}),this[_0x4dd5('0x35')][_0x4dd5('0xef')](_0x1fd471[_0x4dd5('0x39')]('vid_start'),{'userId':_0x414a5e});}else{const _0x2c452a=this[_0x4dd5('0xf5')]++,_0x4fcf3e=this[_0x4dd5('0xf5')]++;_0x3af5bb['_setAttribute'](_0x4dd5('0x3d'),_0x2c452a),_0x1fd471[_0x4dd5('0x46')](_0x4dd5('0x6e'),_0x4fcf3e),_0x1fd471[_0x4dd5('0x46')](_0x4dd5('0x3d'),_0x4e6112),this['_touched'][_0x4dd5('0xef')](_0x2c452a,{'userId':_0x414a5e}),this[_0x4dd5('0x35')][_0x4dd5('0xef')](_0x4fcf3e,{'userId':_0x414a5e});}}[_0x4dd5('0xe9')](_0x46a6f1){if(!_0x46a6f1[_0x4dd5('0xf9')])return;const _0x4907c3=(_0x46a6f1=this[_0x4dd5('0x4b')](_0x46a6f1,this[_0x4dd5('0xbc')]))['oldRange']?_0x46a6f1[_0x4dd5('0xf4')][_0x4dd5('0x21')]:null,_0xf777d7=_0x46a6f1[_0x4dd5('0xf7')]?_0x46a6f1['newRange'][_0x4dd5('0x21')]:null;_0x4907c3&&this['_markers'][_0x4dd5('0xfe')](_0x46a6f1[_0x4dd5('0x5e')]),_0xf777d7&&this[_0x4dd5('0xbd')]['set'](_0x46a6f1[_0x4dd5('0x5e')],_0x46a6f1['newRange'][_0x4dd5('0x1d')]());const _0x565dc6=null===_0x46a6f1[_0x4dd5('0x36')]?null:_0x46a6f1[_0x4dd5('0x36')]||this[_0x4dd5('0x90')]['plugins'][_0x4dd5('0xd2')](_0x4dd5('0x83'))['me']['id'],_0x415cf5=_0x46a6f1[_0x4dd5('0x5e')];if(!this[_0x4dd5('0x14')][_0x4dd5('0xf1')](_0x415cf5))return void this[_0x4dd5('0x14')][_0x4dd5('0xef')](_0x415cf5,{'range':_0x46a6f1[_0x4dd5('0xf4')],'userId':_0x565dc6});const _0x2e9ff3=this['_touchedMarkers'][_0x4dd5('0xd2')](_0x415cf5),_0x9a5984=_0x2e9ff3[_0x4dd5('0xa3')],_0x5d5cc5=_0x46a6f1['newRange'];null==_0x9a5984&&null==_0x5d5cc5||_0x9a5984&&_0x5d5cc5&&_0x9a5984[_0x4dd5('0x109')](_0x5d5cc5)?this['_touchedMarkers']['delete'](_0x46a6f1[_0x4dd5('0x5e')]):_0x2e9ff3[_0x4dd5('0xd7')]=_0x565dc6;}[_0x4dd5('0xff')](_0x44d883,_0x540f1d){this[_0x4dd5('0xbc')][_0x4dd5('0xf1')](_0x44d883[_0x4dd5('0x6b')])?this['_diffRoots'][_0x4dd5('0xd2')](_0x44d883[_0x4dd5('0x6b')])[_0x4dd5('0x87')]=_0x44d883[_0x4dd5('0x33')]:(this['_diffRoots'][_0x4dd5('0xef')](_0x44d883[_0x4dd5('0x6b')],J(_0x44d883['rootName'],!0x0)),this[_0x4dd5('0x62')][_0x4dd5('0xef')](_0x44d883[_0x4dd5('0x6b')],{}),_0x540f1d&&this['_idsRoots'][_0x4dd5('0xef')](_0x44d883['rootName'],J(_0x44d883[_0x4dd5('0x6b')],!0x0)));const _0x3443f0=null===_0x44d883[_0x4dd5('0x36')]?null:_0x44d883[_0x4dd5('0x36')]||this[_0x4dd5('0x90')]['plugins'][_0x4dd5('0xd2')](_0x4dd5('0x83'))['me']['id'],_0x116da5=this['_touchedRoots'][_0x4dd5('0xd2')](_0x44d883[_0x4dd5('0x6b')]);_0x116da5&&_0x116da5[_0x4dd5('0xd7')]===_0x3443f0?this[_0x4dd5('0xbe')][_0x4dd5('0xfe')](_0x44d883[_0x4dd5('0x6b')]):this[_0x4dd5('0xbe')][_0x4dd5('0xef')](_0x44d883[_0x4dd5('0x6b')],{'userId':_0x3443f0,'isAttached':_0x44d883[_0x4dd5('0x33')]});}['_handleRootAttributeOperation'](_0x47458d){const _0x1f939b=this[_0x4dd5('0x62')][_0x4dd5('0xd2')](_0x47458d['root']['rootName']);null===_0x47458d['newValue']?delete _0x1f939b[_0x47458d[_0x4dd5('0xa0')]]:_0x1f939b[_0x47458d[_0x4dd5('0xa0')]]=_0x47458d[_0x4dd5('0x4d')];}}function B(_0x5bbb46){const _0x4e5b12=J(_0x5bbb46[_0x4dd5('0x6b')],_0x5bbb46['isAttached']());for(const _0x410b0f of _0x5bbb46[_0x4dd5('0xf6')]()){const _0x11ddd5=_0x410b0f[_0x4dd5('0xb')](!0x0);_0x4e5b12[_0x4dd5('0x53')](_0x11ddd5);}return _0x4e5b12;}function J(_0x250ac8,_0x57192c=!0x0){const _0x531db6=new _0xa7f566();return _0x531db6[_0x4dd5('0x6b')]=_0x250ac8,_0x531db6[_0x4dd5('0x87')]=_0x57192c,_0x531db6[_0x4dd5('0xd8')]=()=>_0x531db6[_0x4dd5('0x87')],_0x531db6;}function H(_0x4ea95e,_0x36fdf7,_0x378353){const _0x107405=_0x4dd5('0x22')==_0x4ea95e[_0x4dd5('0x48')]?_0x378353[_0x4dd5('0xeb')](_0x4ea95e['item'],_0x4dd5('0x5')):_0x378353['createPositionBefore'](_0x4ea95e['item']);return _0x378353[_0x4dd5('0x68')](_0x36fdf7,_0x107405[_0x4dd5('0x24')],_0x107405[_0x4dd5('0x10a')]);}function q(_0x20570a,_0x18add9,_0x52e646){const _0x3a6d6e=_0x4dd5('0xbf')==_0x20570a[_0x4dd5('0x48')]?_0x52e646[_0x4dd5('0xeb')](_0x20570a[_0x4dd5('0x101')],0x0):_0x52e646[_0x4dd5('0x7b')](_0x20570a[_0x4dd5('0x101')]);return _0x52e646[_0x4dd5('0x68')](_0x18add9,_0x3a6d6e['path'],_0x3a6d6e[_0x4dd5('0x10a')]);}
23
+ const _0x3e95=['$graveyard','_handleRootOperation','RevisionTracker','includes','_touchedRoots','_getViewJson','deletions','createRevision','revisionHistory.resumeUnsavedRevision','_source','_removePendingAction','getTransformedByOperation','version','length','getCurrentRevisionId','data','markers','model','_revisionDataBuilder','children','_getPreviousFrom','_reset','marked','_generateTape','markerToData','createRangeIn','affectsData','targetPosition','_pendingAction','start','_isAttached','insertion','ready','insert','editing','_removeMetaData','slice','collaboration.channelId','clone','getAttributes','size','newValue','_fixPosition','_diffRootsAttributes','_lastFrom','parse','isAttached','name','end','merge','createPositionFromPath','_baseIdsRoots','_setConversion','rootsAttributes','_fixRange','requires','_makeModelFromViewString','_markers','getRoot','marker','_saveMetaData','item','stickiness','startsWith','string','reverse','buildRevisionData','newRange','howMany','_processRootBeforeSave','dataDowncast','getRevisions','_handleRootAttributeOperation','_update','previousPosition','filter','userId','addRootAttribute','_findInsertionIndex','for','getAncestors','view','_bufferUpdate','getLatestVersion','clear','getAttribute','oldRange','keepParagraph','_handleInsertOperation','resolve','getRevision','diffData','RealTimeCollaborationClient','adapter','_baseRoots','document','getTime','getWalker','loadState','sort','_cloneOperation','then','_diffRoots','_createInitialRevision','bind','data-revision-','reInit','rootName','getChild','_execute','getRootNames','detachRoot','createdAt','_isInit','childCount','_idsRoots','_getState','source','vid','setSource','_baseRootsAttributes','elementEnd','_applyOperations','setRevisionData','_setAttribute','_handleSplitOperation','_copyMarkers','_getBaseVids','_fixOperation','elementStart','currentRevision','_removeRevisionMarkers','_touchedMarkers','updateRevisions','_touched','pluginName','_lastTo','isReady','parent','initialData','conversion','_initialRevisionId','attributesAfter','from','get','insertionPosition','editor-initial-data-replaced-with-revision-data','_authorId','RevisionsRepository','_handleMergeOperation','creator','removeRootAttribute','$text','update','_makeRevision','getNodeByPath','path','_startingRevisionId','some','root','creatorId','roots','_markChanges','plugins','sendBufferedUpdates','revision-start','_handleMarkerOperation','isEqual','default','position','createPositionAt','map','add','splitPosition','revision-end','values','toVersion','getUser','upcast','hasContent','define','_loadState','_initialRoots','vid_end','NEGATIVE_INFINITY','find','_loadedStateData','init','_revisionId','_handleMoveOperation','addRevisionData','Initial\x20revision','baseVersion','attributesBefore','revision:','_continueCurrentRevision','deletion','authors','nodes','processor','attributes','getRevisionRootsAttributes','_createCurrentRevision','_calculateMetaData','_getFromVersion','dataToMarker','_makeIdsRoot','_addPendingAction','_loadRevisionData','useFillerType','offsetSize','toModel','authorsIds','_getVidAttributeName','forEach','getData','history','editor','key','_startingVersion','initial','offset','getOperations','repository','fromEntries','vid_start','set','graveyardPosition','Users','fromVersion','createPositionAfter','saveRevision','config','_handleOperation','_replaceEditorDataWithRevisionData','PendingActions','_savedMetaData','_isPendingUpdate','getChildren','toData','keys','paragraph','_operations','addRoot','changeRootAttribute','tableCell','getOperation','isAdd','_transformMarkers','_createFromRanges','createRange','split','push','_prepareViewToSave','delete','type','insertions','_bufferedUpdates','attachChange','documentFragment','_insertChild','nodeAfter','remove','_clone','element','toView','reinsert','has','revision'];(function(_0x4845d8,_0x3e9517){const _0x329c48=function(_0x4e1869){while(--_0x4e1869){_0x4845d8['push'](_0x4845d8['shift']());}};_0x329c48(++_0x3e9517);}(_0x3e95,0x193));const _0x329c=function(_0x4845d8,_0x3e9517){_0x4845d8=_0x4845d8-0x0;let _0x329c48=_0x3e95[_0x4845d8];return _0x329c48;};import{Users as _0x7aae2f}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0xc96d0e,PendingActions as _0x107c7e}from'ckeditor5/src/core';import{logWarning as _0x2aa93e,uid as _0x18bbc3}from'ckeditor5/src/utils';import{Position as _0x12f2d2,Range as _0x60a973,Element as _0x48a53c,DocumentFragment as _0x16b774,ViewText as _0x5b422c,ViewElement as _0x37da6a,ViewContainerElement as _0x5c7608,ViewAttributeElement as _0x5bd2d2,ViewEmptyElement as _0x2db38c,ViewRawElement as _0x4dfacf,ViewUIElement as _0x34694d,ViewDocumentFragment as _0x4fcb82}from'ckeditor5/src/engine';import _0x495a00 from'./revisionsrepository';import{getTranslation as _0x573f70}from'./utils/common-translations';import{cloneDeep as _0x45e264,isEqual as _0xb522f9}from'lodash-es';const j={'c':_0x5c7608,'a':_0x5bd2d2,'e':_0x2db38c,'r':_0x4dfacf,'u':_0x34694d};export default class l extends _0xc96d0e{static get[_0x329c('0x1')](){return _0x329c('0x89');}static get[_0x329c('0xbe')](){return[_0x7aae2f,_0x495a00,_0x107c7e];}constructor(_0x3d8b20){super(_0x3d8b20),this[_0x329c('0xe4')]=null,this[_0x329c('0x109')]=null,this[_0x329c('0x99')]=new T(this[_0x329c('0x53')]),this['_initialRevisionId']=this[_0x329c('0x53')][_0x329c('0x62')][_0x329c('0xa')](_0x329c('0xac'))||_0x329c('0x56'),this[_0x329c('0x7b')]=new Map(),this[_0x329c('0x34')]=null;const _0x14d9c2=_0x18bbc3();this[_0x329c('0x90')]={'history':this[_0x329c('0x53')][_0x329c('0x98')][_0x329c('0xe6')][_0x329c('0x52')],'getLatestVersion':()=>Promise[_0x329c('0xe0')](this[_0x329c('0x53')][_0x329c('0x98')]['document'][_0x329c('0x93')]),'getCurrentRevisionId':()=>_0x14d9c2},this['set'](_0x329c('0x3'),!0x1),this[_0x329c('0x5c')]('isEnabled',!0x0),this[_0x329c('0x5c')](_0x329c('0x67'),!0x1),this[_0x329c('0x53')][_0x329c('0x62')][_0x329c('0x2e')](_0x329c('0x8f'),!0x0),this['editor'][_0x329c('0x6')][_0x329c('0xd6')](_0x329c('0x2c'))[_0x329c('0x47')]({'view':_0x329c('0x86')});}[_0x329c('0x35')](){this['repository']=this[_0x329c('0x53')][_0x329c('0x1d')][_0x329c('0xa')](_0x329c('0xe')),this[_0x329c('0xbb')](),this[_0x329c('0x53')][_0x329c('0x96')]['on'](_0x329c('0xa7'),()=>{const _0x5a6d72=this[_0x329c('0x59')][_0x329c('0xe1')](0x0),_0x17a16d=_0x5a6d72&&null===_0x5a6d72[_0x329c('0x10')]?_0x5a6d72:null;if(this[_0x329c('0x3d')]=!!_0x17a16d&&this['editor'][_0x329c('0x62')][_0x329c('0xa')](_0x329c('0x8f')),this['editor']['plugins'][_0x329c('0x85')](_0x329c('0xe3'))){const _0x2cced8=this[_0x329c('0x90')][_0x329c('0x95')](),_0x182912=this[_0x329c('0x59')][_0x329c('0xe1')](_0x2cced8);if(_0x182912)this[_0x329c('0x55')]=_0x182912[_0x329c('0x5f')],this[_0x329c('0x3d')]=!0x1;else{const _0x248a11=this[_0x329c('0x90')]['history'][_0x329c('0x6c')][_0x329c('0x33')](_0x35cd4c=>!_0x35cd4c[_0x329c('0xf8')]),_0x58a6b0=_0x248a11?_0x248a11[_0x329c('0x3a')]:this['_source'][_0x329c('0x52')][_0x329c('0x93')];_0x5a6d72?(_0x5a6d72[_0x329c('0x2a')]<_0x58a6b0&&_0x5a6d72[_0x329c('0xd0')]({'toVersion':_0x58a6b0}),this[_0x329c('0x3d')]?(this[_0x329c('0x90')][_0x329c('0x95')]=()=>_0x17a16d['id'],this[_0x329c('0x55')]=_0x17a16d['fromVersion']):(this[_0x329c('0x55')]=_0x5a6d72[_0x329c('0x2a')],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x58a6b0,this[_0x329c('0x3d')]=!0x1);}}else _0x17a16d&&(this[_0x329c('0x53')][_0x329c('0x98')][_0x329c('0xe6')][_0x329c('0x52')][_0x329c('0x93')]=Math['max'](_0x17a16d['toVersion'],this[_0x329c('0x53')][_0x329c('0x98')][_0x329c('0xe6')]['history'][_0x329c('0x93')]),_0x17a16d[_0x329c('0x5f')]===_0x17a16d[_0x329c('0x2a')]?(0x0!==_0x17a16d[_0x329c('0x5f')]&&(this[_0x329c('0x90')][_0x329c('0x95')]=()=>_0x17a16d['id']),this[_0x329c('0x3d')]=!0x1):this[_0x329c('0x3d')]&&(this[_0x329c('0x90')][_0x329c('0x95')]=()=>_0x17a16d['id'],this['_startingVersion']=_0x17a16d[_0x329c('0x5f')])),this[_0x329c('0x3d')]||(this['_startingVersion']=this[_0x329c('0x53')]['model'][_0x329c('0xe6')][_0x329c('0x93')]);this['_revisionDataBuilder'][_0x329c('0x35')](this[_0x329c('0x90')][_0x329c('0x52')]),this[_0x329c('0xee')](this[_0x329c('0x55')]),this[_0x329c('0x44')](this[_0x329c('0x55')]),this[_0x329c('0xe4')]&&this['sendBufferedUpdates']();}),this[_0x329c('0xef')](_0x329c('0x3'))['to'](this,'_isPendingUpdate',_0x33142d=>!_0x33142d);}async['afterInit'](){if(this[_0x329c('0x59')][_0x329c('0x94')]>0x0){const _0x3af537=this[_0x329c('0x59')][_0x329c('0xe1')](0x0),_0x577ae1=await this['getRevisionDocumentData'](_0x3af537),_0x12b0ed=await this[_0x329c('0x43')](_0x3af537);this['_replaceEditorDataWithRevisionData'](_0x577ae1,_0x12b0ed);}}[_0x329c('0xfe')](_0x419fb1){this[_0x329c('0x90')]=_0x419fb1;}async[_0x329c('0x13')](){const _0x2afc37=await this[_0x329c('0x90')][_0x329c('0xda')]();if(_0x2afc37>this[_0x329c('0x109')][_0x329c('0x2a')]){await this[_0x329c('0x2f')]();const _0x3c80f8=this[_0x329c('0xc9')]({'revision':this[_0x329c('0x109')],'to':_0x2afc37});_0x3c80f8[_0x329c('0x3f')]=_0x3c80f8[_0x329c('0x4e')][_0x329c('0x25')](_0x3d6ea4=>this[_0x329c('0x53')]['plugins'][_0x329c('0xa')](_0x329c('0x5e'))['getUser'](_0x3d6ea4)),this['currentRevision']['_update'](_0x3c80f8);}}async[_0x329c('0x2f')](){this[_0x329c('0x3d')]&&!this[_0x329c('0x34')]&&(await this[_0x329c('0x4a')](this['currentRevision']),this[_0x329c('0x99')][_0x329c('0xe9')](this['currentRevision']),this[_0x329c('0x34')]={'fromVersion':this['currentRevision']['fromVersion'],'authors':this[_0x329c('0x109')][_0x329c('0x3f')][_0x329c('0xab')]()});}async[_0x329c('0x61')](_0x405ea9={},_0x93437b=null){const _0x20c804=[];await this[_0x329c('0x2f')](),this['_continueCurrentRevision']=!0x1,_0x93437b>this[_0x329c('0x109')][_0x329c('0x2a')]&&(_0x93437b=null),null===_0x93437b&&(_0x93437b=await this['_source'][_0x329c('0xda')]());const _0x2bb285=this[_0x329c('0x46')](_0x93437b),_0x45fb8c=this[_0x329c('0xc9')]({'from':_0x2bb285,'to':_0x93437b});if(this[_0x329c('0x109')][_0x329c('0x2a')]<_0x93437b){const _0x4bfa0b=this[_0x329c('0xc9')]({'revision':this[_0x329c('0x109')],'from':_0x93437b,'to':_0x93437b});_0x4bfa0b[_0x329c('0x3f')]=[],_0x4bfa0b[_0x329c('0x4e')]=[],_0x4bfa0b['id']=this[_0x329c('0x109')]['id'],this[_0x329c('0x109')][_0x329c('0xd0')](_0x4bfa0b,!0x0),delete _0x4bfa0b[_0x329c('0x3f')],_0x20c804['push'](_0x4bfa0b);}_0x405ea9[_0x329c('0x1a')]=this[_0x329c('0x53')]['plugins']['get'](_0x329c('0x5e'))['me']['id'],_0x405ea9[_0x329c('0xb6')]=_0x405ea9['name']||null,_0x405ea9['id']=_0x405ea9['id']||_0x18bbc3(),_0x405ea9={..._0x405ea9,..._0x45fb8c};const _0x5d10a2=this[_0x329c('0x38')](_0x405ea9);_0x20c804['push'](_0x405ea9);const _0x34f21c=this['repository']['getIndex'](_0x5d10a2);if(0x0!==_0x34f21c){const _0x1f57b7=this[_0x329c('0x59')][_0x329c('0xe1')](_0x34f21c-0x1);if(_0x1f57b7[_0x329c('0x5f')]!==_0x93437b){const _0x1716cb=this['_revisionDataBuilder']['getData'](_0x93437b,_0x1f57b7[_0x329c('0x2a')]),_0x4c64cf={'id':_0x1f57b7['id'],'diffData':_0x1716cb[_0x329c('0xe2')],'authorsIds':_0x1716cb[_0x329c('0x4e')],'authors':_0x1716cb[_0x329c('0x4e')]['map'](_0x50a123=>this['editor']['plugins'][_0x329c('0xa')](_0x329c('0x5e'))[_0x329c('0x2b')](_0x50a123)),'fromVersion':_0x93437b};_0x1f57b7===this[_0x329c('0x109')]&&(_0x4c64cf[_0x329c('0xf7')]=new Date(_0x405ea9[_0x329c('0xf7')][_0x329c('0xe7')]()+0xa)),_0x1f57b7['_update'](_0x4c64cf,!0x0),delete _0x4c64cf[_0x329c('0x3f')],_0x20c804[_0x329c('0x76')](_0x4c64cf);}}if(this['adapter']){for(const _0x35135b of _0x20c804)this[_0x329c('0xd9')](_0x35135b['id'],_0x35135b,!0x0);this[_0x329c('0x1e')]();}return _0x5d10a2;}[_0x329c('0x38')](_0x3d8b0f){const _0x500d80=this[_0x329c('0x59')][_0x329c('0x8e')](_0x3d8b0f);return this[_0x329c('0xe4')]&&_0x500d80['on'](_0x329c('0xd0'),(_0x5a860c,_0x4158ff,_0x49d931)=>{_0x49d931||(this['_bufferUpdate'](_0x4158ff['id'],_0x4158ff,!0x0),this[_0x329c('0x1e')]());}),this['repository']['addRevision'](_0x500d80,this[_0x329c('0xd5')](_0x500d80)),_0x500d80;}async['getRevisionDocumentData'](_0x43f4f2){await this[_0x329c('0x4a')](_0x43f4f2);const _0x1b189c={};for(const _0x253cf4 in _0x43f4f2[_0x329c('0xe2')]){if(_0x43f4f2[_0x329c('0xe2')][_0x253cf4][_0x329c('0x7c')]&&!_0x43f4f2[_0x329c('0xe2')][_0x253cf4][_0x329c('0x7c')][_0x329c('0xb5')])continue;const _0x54514e=this[_0x329c('0x10a')](JSON[_0x329c('0xb4')](_0x43f4f2['diffData'][_0x253cf4]['insertions'])),_0x17fa0a=this[_0x329c('0x53')][_0x329c('0xa9')]['view'][_0x329c('0xe6')],_0x3ec9ef=new _0x4fcb82(_0x17fa0a,_0x54514e[_0x329c('0x25')](_0x35131d=>F(_0x35131d,this['editor'])));this[_0x329c('0x53')][_0x329c('0x96')][_0x329c('0x41')][_0x329c('0x4b')](_0x329c('0x9d')),_0x1b189c[_0x253cf4]=this['editor'][_0x329c('0x96')]['processor'][_0x329c('0x69')](_0x3ec9ef),this[_0x329c('0x53')][_0x329c('0x96')][_0x329c('0x41')]['useFillerType'](_0x329c('0x22'));}return _0x1b189c;}async[_0x329c('0x43')](_0xbb6c9a){await this[_0x329c('0x4a')](_0xbb6c9a);const _0x2b05af={};for(const _0x9d0e18 in _0xbb6c9a[_0x329c('0xe2')])_0xbb6c9a[_0x329c('0xe2')][_0x9d0e18][_0x329c('0x7c')]&&!_0xbb6c9a[_0x329c('0xe2')][_0x9d0e18][_0x329c('0x7c')][_0x329c('0xb5')]||(_0x2b05af[_0x9d0e18]=_0xbb6c9a[_0x329c('0xe2')][_0x9d0e18]['attributesAfter']||{});return _0x2b05af;}[_0x329c('0x1e')](){if(0x0===this[_0x329c('0x7b')][_0x329c('0xaf')])return;if(this[_0x329c('0x67')])return;let _0x3b97a4=Array['from'](this[_0x329c('0x7b')][_0x329c('0x29')]());this[_0x329c('0x7b')][_0x329c('0xdb')]();for(let _0x14c03f=0x0;_0x14c03f<_0x3b97a4[_0x329c('0x94')];_0x14c03f++){const _0x4fd26a=_0x3b97a4[_0x14c03f];let _0x10141d=!0x1;for(const _0x97f878 of Object[_0x329c('0x6a')](_0x4fd26a))void 0x0===_0x4fd26a[_0x97f878]?delete _0x4fd26a[_0x97f878]:'id'!==_0x97f878&&(_0x10141d=!0x0);_0x10141d||(_0x3b97a4[_0x14c03f]=null);}if(_0x3b97a4=_0x3b97a4[_0x329c('0xd2')](_0x2f8a42=>null!==_0x2f8a42),!_0x3b97a4[_0x329c('0x94')])return;for(let _0x205f65=0x0;_0x205f65<_0x3b97a4['length'];_0x205f65++){const _0x184feb=_0x3b97a4[_0x205f65];void 0x0!==_0x184feb[_0x329c('0x5f')]&&void 0x0===_0x184feb[_0x329c('0x2a')]&&(_0x184feb[_0x329c('0x2a')]=this['repository'][_0x329c('0xe1')](_0x184feb['id'])[_0x329c('0x2a')]),void 0x0!==_0x184feb['toVersion']&&void 0x0===_0x184feb[_0x329c('0x5f')]&&(_0x184feb['fromVersion']=this[_0x329c('0x59')][_0x329c('0xe1')](_0x184feb['id'])[_0x329c('0x5f')]);}const _0x361a20=this[_0x329c('0x53')][_0x329c('0x62')]['get'](_0x329c('0xac'));this['_isPendingUpdate']=!0x0,this[_0x329c('0x49')](),this['adapter'][_0x329c('0x10c')](_0x3b97a4,_0x361a20)['finally'](()=>{this[_0x329c('0x67')]=!0x1;})['then'](_0x1fd03d=>{if(_0x1fd03d)for(const _0xa56b77 of _0x1fd03d)this['setRevisionData']({'id':_0xa56b77['id'],'createdAt':_0xa56b77[_0x329c('0xf7')]});this['_removePendingAction'](),this[_0x329c('0x1e')]();});}[_0x329c('0x64')](_0xe533e1,_0x55eab6){let _0x19f0b0=this['editor'][_0x329c('0x62')]['get'](_0x329c('0x5')),_0x480c6b=this[_0x329c('0x53')][_0x329c('0x62')][_0x329c('0xa')](_0x329c('0xbc'));if(void 0x0===_0x19f0b0){_0x19f0b0={};for(const _0x43c1d5 of this['editor']['model'][_0x329c('0xe6')][_0x329c('0xf5')]())_0x19f0b0[_0x43c1d5]='';}if(_0x329c('0xc7')==typeof _0x19f0b0&&(_0x19f0b0={'main':_0x19f0b0}),void 0x0===_0x480c6b){_0x480c6b={};for(const _0x38476b of this[_0x329c('0x53')][_0x329c('0x98')]['document'][_0x329c('0xf5')]())_0x480c6b[_0x38476b]={};}let _0xaf1438=!0x1;const _0x1d2190=Object[_0x329c('0x6a')](_0x19f0b0),_0x163534=Object[_0x329c('0x6a')](_0xe533e1);for(const _0x456dc3 of _0x1d2190){if(_0x19f0b0[_0x456dc3]!==_0xe533e1[_0x456dc3]&&''!==_0x19f0b0[_0x456dc3]['trim']()){_0xaf1438=!0x0;break;}if(!_0xb522f9(_0x480c6b[_0x456dc3],_0x55eab6[_0x456dc3])&&Object[_0x329c('0x6a')](_0x480c6b[_0x456dc3])[_0x329c('0x94')]>0x0){_0xaf1438=!0x0;break;}}_0xaf1438||(_0xaf1438=_0x163534[_0x329c('0x18')](_0xc7a3a7=>!_0x1d2190[_0x329c('0x8a')](_0xc7a3a7))),_0xaf1438&&_0x2aa93e(_0x329c('0xc'),{'editorData':_0x19f0b0,'editorRootsAttributes':_0x480c6b,'revisionData':_0xe533e1,'revisionRootsAttributes':_0x55eab6}),this[_0x329c('0x53')]['config'][_0x329c('0x5c')]('initialData',_0xe533e1),this[_0x329c('0x53')][_0x329c('0x62')][_0x329c('0x5c')](_0x329c('0xbc'),_0x55eab6);}[_0x329c('0x49')](){if(!this[_0x329c('0xa3')]){const _0x49a31f=this[_0x329c('0x53')][_0x329c('0x1d')][_0x329c('0xa')]('PendingActions');this[_0x329c('0xa3')]=_0x49a31f[_0x329c('0x26')](_0x573f70(this[_0x329c('0x53')]['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}[_0x329c('0x91')](){this[_0x329c('0xa3')]&&(this[_0x329c('0x53')][_0x329c('0x1d')][_0x329c('0xa')](_0x329c('0x65'))[_0x329c('0x80')](this['_pendingAction']),this[_0x329c('0xa3')]=null);}['_findInsertionIndex'](_0x1439c6){const _0x2b543f=this[_0x329c('0x59')][_0x329c('0xce')]();_0x2b543f[_0x329c('0xc8')]();let _0x4a92a9=0x0;for(;_0x4a92a9<_0x2b543f[_0x329c('0x94')];){const _0x483490=_0x2b543f[_0x4a92a9];if(_0x483490===this[_0x329c('0x109')]){_0x4a92a9++;continue;}if(_0x483490['id']===this[_0x329c('0x7')])break;const _0x24c06c=_0x1439c6[_0x329c('0x2a')]-_0x483490[_0x329c('0x2a')]||_0x1439c6[_0x329c('0x5f')]-_0x483490[_0x329c('0x5f')];if(_0x24c06c>0x0)break;if(_0x24c06c<0x0)_0x4a92a9++;else{if(!_0x1439c6[_0x329c('0x10')]&&_0x483490[_0x329c('0x10')])break;if(_0x483490['creator']||!_0x1439c6[_0x329c('0x10')]){if(_0x1439c6[_0x329c('0xf7')]>_0x483490['createdAt'])break;_0x4a92a9++;}else _0x4a92a9++;}}return _0x4a92a9;}[_0x329c('0x102')](_0x95549c){const _0x37569c=this[_0x329c('0x59')][_0x329c('0xe1')](_0x95549c['id']);if(_0x95549c[_0x329c('0xf7')]&&(_0x95549c['createdAt']=new Date(_0x95549c[_0x329c('0xf7')])),_0x95549c[_0x329c('0x4e')]){const _0xde62eb=this[_0x329c('0x53')][_0x329c('0x1d')][_0x329c('0xa')](_0x329c('0x5e'));_0x95549c[_0x329c('0x3f')]=_0x95549c['authorsIds']['map'](_0x284ddd=>_0xde62eb[_0x329c('0x2b')](_0x284ddd));}_0x37569c[_0x329c('0xd0')](_0x95549c,!0x0);}['buildRevisionData']({revision:_0x52cea3=null,from:_0x16374b=null,to:_0x119740=null}){_0x16374b=null!==_0x16374b?_0x16374b:_0x52cea3[_0x329c('0x5f')],_0x119740=null!==_0x119740?_0x119740:_0x52cea3[_0x329c('0x2a')];const _0x527cc8=this['_revisionDataBuilder'][_0x329c('0x51')](_0x16374b,_0x119740),_0x386025={'diffData':_0x527cc8[_0x329c('0xe2')],'authorsIds':_0x527cc8[_0x329c('0x4e')],'fromVersion':_0x16374b,'toVersion':_0x119740};if(!_0x52cea3||_0x119740!==_0x52cea3['toVersion']){const _0x1fa0d0=_0x119740-0x1,_0x22109f=this['_source'][_0x329c('0x52')][_0x329c('0x70')](_0x1fa0d0);_0x386025[_0x329c('0xf7')]=_0x22109f&&_0x22109f[_0x329c('0xf7')]||new Date();}if(this[_0x329c('0x34')]&&_0x16374b===this[_0x329c('0x34')][_0x329c('0x5f')])for(const _0x104ae8 of this[_0x329c('0x34')][_0x329c('0x3f')])_0x386025[_0x329c('0x4e')][_0x329c('0x8a')](_0x104ae8['id'])||_0x386025[_0x329c('0x4e')]['push'](_0x104ae8['id']);return _0x386025;}[_0x329c('0x4a')](_0x29ac98){if(!_0x29ac98||_0x29ac98[_0x329c('0xe2')])return Promise[_0x329c('0xe0')]();{const _0x5c7aa8=this[_0x329c('0x53')][_0x329c('0x62')]['get']('collaboration.channelId');return this['adapter'][_0x329c('0xe1')]({'channelId':_0x5c7aa8,'revisionId':_0x29ac98['id']})[_0x329c('0xec')](_0x3d0b56=>{_0x29ac98[_0x329c('0xe2')]=_0x3d0b56[_0x329c('0xe2')];});}}[_0x329c('0xd9')](_0x436da5,_0x17086d,_0x9e82a2){if(this[_0x329c('0x7b')][_0x329c('0x85')](_0x436da5)){const _0x10f227=this[_0x329c('0x7b')][_0x329c('0xa')](_0x436da5);_0x17086d=_0x9e82a2?{..._0x10f227,..._0x17086d}:{..._0x17086d,..._0x10f227};}this['_bufferedUpdates'][_0x329c('0x5c')](_0x436da5,_0x17086d);}[_0x329c('0x46')](_0x21eb57){const _0x4230be=this['repository'][_0x329c('0xce')]();_0x4230be[_0x329c('0xc8')](),_0x4230be['shift']();const _0xc36ba7=_0x4230be['find'](_0x1582a2=>_0x1582a2[_0x329c('0x2a')]<=_0x21eb57)['toVersion'];return _0xc36ba7<this[_0x329c('0x55')]?this['_startingVersion']:_0xc36ba7;}[_0x329c('0xee')](_0x1332dc){const _0x29fc0f=this[_0x329c('0x59')][_0x329c('0xe1')](this[_0x329c('0x59')][_0x329c('0x94')]-0x1);if(_0x29fc0f)this[_0x329c('0x7')]=_0x29fc0f['id'];else{const _0x5c2c84=!this[_0x329c('0x53')][_0x329c('0x98')][_0x329c('0xe6')][_0x329c('0x1b')][_0x329c('0x33')](_0x54960b=>this['editor'][_0x329c('0x98')][_0x329c('0x2d')](_0x54960b)),_0x249401=this['editor'][_0x329c('0x1d')][_0x329c('0xa')](_0x329c('0x5e'))['me']['id'],_0x8faaaa=_0x573f70(this[_0x329c('0x53')]['locale'],_0x5c2c84?'Empty\x20document':_0x329c('0x39'));this['_makeRevision']({'from':_0x1332dc,'to':_0x1332dc,'id':this[_0x329c('0x7')],'name':_0x8faaaa,'creatorId':_0x249401});}}[_0x329c('0x44')](_0x58fb13){const _0x23ca8d=this[_0x329c('0x90')][_0x329c('0x95')]();this['currentRevision']=this[_0x329c('0x59')][_0x329c('0xe1')](_0x23ca8d),this[_0x329c('0x109')]||(this[_0x329c('0x109')]=this['_makeRevision']({'from':_0x58fb13,'to':_0x58fb13,'id':_0x23ca8d,'name':'','creatorId':null}));}[_0x329c('0x14')]({name:_0xc06ecc,from:_0x49fa4d,to:_0x31649d,creatorId:_0x39bca8,id:_0x53b4e8}){const _0x29a5e5=this[_0x329c('0xc9')]({'from':_0x49fa4d,'to':_0x31649d});_0x29a5e5[_0x329c('0xb6')]=_0xc06ecc,_0x29a5e5[_0x329c('0x1a')]=_0x39bca8,_0x29a5e5['id']=_0x53b4e8;const _0x3bc945=this['addRevisionData'](_0x29a5e5);return this['adapter']&&this['_bufferUpdate'](_0x29a5e5['id'],_0x29a5e5,!0x0),_0x3bc945;}[_0x329c('0xbb')](){this[_0x329c('0x53')][_0x329c('0x6')][_0x329c('0xd6')](_0x329c('0xcd'))[_0x329c('0x9f')]({'model':'revision'});}[_0x329c('0x10a')](_0x5e3564){return(_0x5e3564=_0x5e3564[_0x329c('0xd2')](_0x33decf=>!_0x33decf[_0x329c('0xb6')]||_0x329c('0x1f')!==_0x33decf[_0x329c('0xb6')]&&_0x329c('0x28')!==_0x33decf[_0x329c('0xb6')]))[_0x329c('0x50')](_0xc29fb7=>{'string'!=typeof _0xc29fb7&&(_0xc29fb7[_0x329c('0x9a')]=this['_removeRevisionMarkers'](_0xc29fb7['children']),_0xc29fb7['attributes']=_0xc29fb7[_0x329c('0x42')]['filter'](_0x4000cc=>!_0x4000cc[0x0][_0x329c('0xc6')](_0x329c('0xf0'))));}),_0x5e3564;}}function F(_0x5e73ef,_0x21a8a0){const _0x3876a2=_0x21a8a0[_0x329c('0xa9')][_0x329c('0xd8')][_0x329c('0xe6')];if(_0x329c('0xc7')==typeof _0x5e73ef)return new _0x5b422c(_0x3876a2,_0x5e73ef);{const _0x37ed8e=_0x5e73ef[_0x329c('0x9a')]['map'](_0x2b5ae6=>F(_0x2b5ae6,_0x21a8a0));return new(j[_0x5e73ef['type']]||_0x37da6a)(_0x3876a2,_0x5e73ef['name'],_0x5e73ef[_0x329c('0x42')],_0x37ed8e);}}class T{constructor(_0x2ae105){this['editor']=_0x2ae105,this[_0x329c('0x66')]=new Map(),this[_0x329c('0xb3')]=-0x1,this['_lastTo']=-0x1,this[_0x329c('0xc0')]=new Map(),this[_0x329c('0xed')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x329c('0xe5')]=new Map(),this['_baseRootsAttributes']=new Map(),this[_0x329c('0xfa')]=new Map(),this['_baseIdsRoots']=new Map(),this[_0x329c('0x0')]=new Map(),this['_touchedMarkers']=new Map(),this[_0x329c('0x8b')]=new Map(),this[_0x329c('0x36')]=0x1,this[_0x329c('0x30')]=this['editor'][_0x329c('0x98')][_0x329c('0xe6')][_0x329c('0xf5')](),this[_0x329c('0x30')][_0x329c('0x76')](_0x329c('0x87'));}[_0x329c('0x35')](_0x397bfb){this[_0x329c('0xfc')]=_0x397bfb;const _0x2bc98b=new Map(),_0xe4ccc4=new Map(),_0x239ef4=this[_0x329c('0x53')][_0x329c('0x98')][_0x329c('0xe6')]['getRootNames'](!0x0);_0x239ef4[_0x329c('0x76')]('$graveyard');for(const _0x5811cb of _0x239ef4){const _0x22c975=this[_0x329c('0x53')]['model']['document'][_0x329c('0xc1')](_0x5811cb),_0x109a42=B(_0x22c975);_0x2bc98b[_0x329c('0x5c')](_0x5811cb,_0x109a42),_0xe4ccc4['set'](_0x5811cb,Object[_0x329c('0x5a')](_0x22c975[_0x329c('0xae')]()));}const _0x34dea5=Array[_0x329c('0x9')](this[_0x329c('0x53')]['model']['markers'])[_0x329c('0x25')](_0x5a2ae7=>[_0x5a2ae7[_0x329c('0xb6')],_0x5a2ae7['getRange']()]),_0x187188=this[_0x329c('0xfc')][_0x329c('0x93')];this['_saveMetaData'](_0x187188,_0x2bc98b,_0x34dea5,_0xe4ccc4),this[_0x329c('0x17')]=this['_revisionId'];const _0x361439=new Map(),_0x12ec95=new Map();for(const _0x1a6b3b of this[_0x329c('0x30')]){const _0x132819=J(_0x1a6b3b);_0x361439[_0x329c('0x5c')](_0x1a6b3b,_0x132819),_0x12ec95['set'](_0x1a6b3b,{});}this['_saveMetaData'](Number[_0x329c('0x32')],_0x361439,[],_0x12ec95);}['getData'](_0x43ec89,_0x2d2a68){if(this[_0x329c('0xb3')]===_0x43ec89&&this[_0x329c('0x2')]<=_0x2d2a68)this['_savedMetaData']['size']>0x1&&this[_0x329c('0xaa')](this[_0x329c('0x2')]),this[_0x329c('0x101')](this[_0x329c('0x2')],_0x2d2a68,!0x0);else{if(!this[_0x329c('0x66')][_0x329c('0x85')](_0x43ec89)){const _0x136491=this['_getPreviousFrom'](_0x43ec89);this[_0x329c('0x45')](_0x136491,_0x43ec89,!0x1);}this['_calculateMetaData'](_0x43ec89,_0x2d2a68,!0x0);}return this['_lastFrom']=_0x43ec89,this[_0x329c('0x2')]=_0x2d2a68,this['_getState']();}['loadState'](_0x12ff0b){this[_0x329c('0x9c')](),this[_0x329c('0xb3')]=_0x12ff0b[_0x329c('0x5f')],this[_0x329c('0x2')]=_0x12ff0b[_0x329c('0x2a')];for(const _0x2f6f4c in _0x12ff0b['diffData']){const _0x3ab911=_0x12ff0b[_0x329c('0xe2')][_0x2f6f4c][_0x329c('0x7c')],_0x565b94=_0x45e264(_0x12ff0b[_0x329c('0xe2')][_0x2f6f4c][_0x329c('0x3b')])||{},_0x2b7401=this['_makeModelFromViewString'](_0x12ff0b[_0x329c('0xe2')][_0x2f6f4c][_0x329c('0x8d')]);_0x2b7401[_0x329c('0xf2')]=_0x2f6f4c,_0x2b7401[_0x329c('0xa5')]=!_0x3ab911||!_0x3ab911[_0x329c('0xb5')],_0x2b7401[_0x329c('0xb5')]=()=>_0x2b7401[_0x329c('0xa5')],this[_0x329c('0xe5')][_0x329c('0x5c')](_0x2f6f4c,_0x2b7401),this[_0x329c('0xff')][_0x329c('0x5c')](_0x2f6f4c,_0x565b94),_0x3ab911&&this['_touchedRoots'][_0x329c('0x5c')](_0x2f6f4c,_0x3ab911);const _0x739818=this[_0x329c('0x48')](_0x2b7401);this['_baseIdsRoots'][_0x329c('0x5c')](_0x2f6f4c,_0x739818);for(const [_0xcaacfb,_0x58c9b2]of _0x2b7401[_0x329c('0x97')]){if(!_0xcaacfb['startsWith'](_0x329c('0x3c')))continue;const _0x4b72c0=_0xcaacfb['split'](':')[0x2];for(const _0x1612ec of _0x58c9b2['getWalker']({'singleCharacters':!0x0})){const _0x357081=this[_0x329c('0x4f')](_0x1612ec),_0x22617b=_0x329c('0x100')==_0x1612ec['type']?_0x1612ec[_0x329c('0xd1')][_0x329c('0x16')][_0x329c('0xab')](0x0,-0x1):_0x1612ec[_0x329c('0xd1')][_0x329c('0x16')],_0x3cf471=_0x739818[_0x329c('0x15')](_0x22617b)['getAttribute'](_0x357081);this[_0x329c('0x0')][_0x329c('0x5c')](_0x3cf471,{'userId':_0x4b72c0});}}}this[_0x329c('0x17')]=this[_0x329c('0x36')];const _0x3f86fc=[...Array(this['_revisionId'])[_0x329c('0x6a')]()][_0x329c('0xab')](0x1)[_0x329c('0xd2')](_0xc22462=>!this[_0x329c('0x0')]['has'](_0xc22462));let _0x4e2af9=0x0;const _0x165b3f=new Map();for(const _0x5d6844 in _0x12ff0b[_0x329c('0xe2')]){const _0x5d76fa=_0x12ff0b[_0x329c('0xe2')][_0x5d6844][_0x329c('0x7c')],_0x5c157a=_0x45e264(_0x12ff0b['diffData'][_0x5d6844][_0x329c('0x8')])||{},_0x2171ee=this[_0x329c('0xbf')](_0x12ff0b[_0x329c('0xe2')][_0x5d6844]['insertions']);_0x2171ee[_0x329c('0xf2')]=_0x5d6844,_0x2171ee[_0x329c('0xa5')]=!_0x5d76fa||_0x5d76fa[_0x329c('0xb5')],_0x2171ee['isAttached']=()=>_0x2171ee[_0x329c('0xa5')],this[_0x329c('0xed')][_0x329c('0x5c')](_0x5d6844,_0x2171ee),this['_diffRootsAttributes'][_0x329c('0x5c')](_0x5d6844,_0x5c157a);const _0xe0955b=this[_0x329c('0x48')](_0x2171ee,Number[_0x329c('0x32')]);this[_0x329c('0xfa')][_0x329c('0x5c')](_0x5d6844,_0xe0955b),_0x165b3f[_0x329c('0x5c')](_0x5d6844,_0x2171ee[_0x329c('0xb5')]()?_0x5c157a:{});for(const [_0x51af4d,_0x64b5fe]of _0x2171ee[_0x329c('0x97')]){if(!_0x51af4d[_0x329c('0xc6')]('revision:'))continue;const _0x5a64b0=_0x51af4d['split'](':')[0x2];for(const _0x5ba466 of _0x64b5fe[_0x329c('0xe8')]({'singleCharacters':!0x0})){const _0x4f6269=this[_0x329c('0x4f')](_0x5ba466),_0x5c114d=this[_0x329c('0x36')]++,_0xb5ab47='elementEnd'==_0x5ba466['type']?_0x5ba466[_0x329c('0xd1')][_0x329c('0x16')]['slice'](0x0,-0x1):_0x5ba466[_0x329c('0xd1')][_0x329c('0x16')];_0xe0955b[_0x329c('0x15')](_0xb5ab47)[_0x329c('0x103')](_0x4f6269,_0x5c114d),this[_0x329c('0x0')]['set'](_0x5c114d,{'userId':_0x5a64b0});}}for(const _0x50fd27 of this[_0x329c('0x53')]['model'][_0x329c('0xa0')](_0x2171ee)[_0x329c('0xe8')]({'singleCharacters':!0x0})){const _0x687af5=this['_getVidAttributeName'](_0x50fd27),_0x216260=_0x329c('0x100')==_0x50fd27[_0x329c('0x79')]?_0x50fd27[_0x329c('0xd1')][_0x329c('0x16')]['slice'](0x0,-0x1):_0x50fd27['previousPosition'][_0x329c('0x16')],_0x2d5f87=_0xe0955b[_0x329c('0x15')](_0x216260);_0x2d5f87[_0x329c('0xdc')](_0x687af5)>0x0||_0x2d5f87['_setAttribute'](_0x687af5,_0x3f86fc[_0x4e2af9++]);}for(const [_0x51a815,_0x3c66c5]of _0x2171ee[_0x329c('0x97')])_0x51a815[_0x329c('0xc6')](_0x329c('0x3c'))||this[_0x329c('0xc0')][_0x329c('0x5c')](_0x51a815,_0x3c66c5);}const _0x20de89=J(_0x329c('0x87'));this[_0x329c('0xe5')]['set'](_0x329c('0x87'),_0x20de89),this[_0x329c('0xba')][_0x329c('0x5c')]('$graveyard',this[_0x329c('0x48')](_0x20de89,0x1));const _0xcaeff=J(_0x329c('0x87'));this[_0x329c('0xed')]['set'](_0x329c('0x87'),_0xcaeff),this[_0x329c('0xfa')][_0x329c('0x5c')](_0x329c('0x87'),this[_0x329c('0x48')](_0xcaeff,0x1));const _0x3cd5a7=Array['from'](this[_0x329c('0xed')])['map'](([_0xb49d02,_0x4813da])=>[_0xb49d02,B(_0x4813da)]);this[_0x329c('0xc3')](this[_0x329c('0x2')],_0x3cd5a7,this[_0x329c('0xc0')],_0x165b3f);}[_0x329c('0xbf')](_0x47e6cb){const _0x2d0aeb=JSON[_0x329c('0xb4')](_0x47e6cb),_0xd502a8=this[_0x329c('0x53')][_0x329c('0xa9')][_0x329c('0xd8')][_0x329c('0xe6')],_0x1768c0=new _0x4fcb82(_0xd502a8,_0x2d0aeb[_0x329c('0x25')](_0x1093a7=>F(_0x1093a7,this['editor'])));return this[_0x329c('0x53')][_0x329c('0x96')][_0x329c('0x4d')](_0x1768c0);}[_0x329c('0xc3')](_0x372a3b,_0x49e14b,_0x1ed2b2,_0x2cd0f8){const _0x163dea=new Map(_0x49e14b),_0x35a406=new Map(_0x45e264(_0x2cd0f8)),_0x3a56d3=new Map();for(const [_0x2a5f42,_0x220d7a]of _0x1ed2b2)_0x3a56d3['set'](_0x2a5f42,{'start':_0x220d7a['start'][_0x329c('0xad')](),'end':_0x220d7a[_0x329c('0xb7')][_0x329c('0xad')](),'rootName':_0x220d7a[_0x329c('0x19')][_0x329c('0xf2')]});this[_0x329c('0x66')][_0x329c('0x5c')](_0x372a3b,{'roots':_0x163dea,'markers':_0x3a56d3,'rootsAttributes':_0x35a406});}[_0x329c('0xaa')](_0x5c653f){this['_savedMetaData'][_0x329c('0x78')](_0x5c653f);}[_0x329c('0xf1')](){this[_0x329c('0x9c')](),this[_0x329c('0xb3')]=-0x1,this[_0x329c('0x2')]=-0x1,this[_0x329c('0x66')][_0x329c('0xdb')](),this[_0x329c('0x35')](this[_0x329c('0xfc')]);}['_reset'](){this['_touched']['clear'](),this[_0x329c('0x10b')]['clear'](),this[_0x329c('0x8b')][_0x329c('0xdb')](),this[_0x329c('0xed')]['clear'](),this['_diffRootsAttributes'][_0x329c('0xdb')](),this[_0x329c('0xe5')][_0x329c('0xdb')](),this[_0x329c('0xff')][_0x329c('0xdb')](),this[_0x329c('0xfa')]['clear'](),this[_0x329c('0xba')][_0x329c('0xdb')](),this[_0x329c('0xc0')][_0x329c('0xdb')](),this[_0x329c('0x36')]=0x1,this['_startingRevisionId']=this['_revisionId'];}[_0x329c('0x48')](_0x4ffcf3,_0x52001a=null){let _0x81feed=null;_0x4ffcf3['is'](_0x329c('0x7d'))||(_0x81feed=new _0x48a53c(_0x4ffcf3[_0x329c('0xb6')],{'vid_start':null===_0x52001a?this[_0x329c('0x36')]++:_0x52001a++}));const _0x7c18b=[];for(const _0x14a60f of _0x4ffcf3[_0x329c('0x68')]())if(_0x14a60f['is'](_0x329c('0x82'))){_0x7c18b['push'](this[_0x329c('0x48')](_0x14a60f,_0x52001a));const _0x39d11a=_0x7c18b[_0x7c18b[_0x329c('0x94')]-0x1];null!==_0x52001a&&(_0x52001a=_0x39d11a['is'](_0x329c('0x82'),_0x329c('0x12'))?_0x39d11a[_0x329c('0xdc')](_0x329c('0xfd'))+0x1:_0x39d11a[_0x329c('0xdc')](_0x329c('0x31'))+0x1);}else for(let _0x2d1b10=0x0;_0x2d1b10<_0x14a60f['offsetSize'];_0x2d1b10++)_0x7c18b[_0x329c('0x76')](new _0x48a53c(_0x329c('0x12'),{'vid':null===_0x52001a?this[_0x329c('0x36')]++:_0x52001a++}));if(_0x4ffcf3['is'](_0x329c('0x7d'))){const _0x21526b=J(_0x4ffcf3[_0x329c('0xf2')]);return _0x21526b[_0x329c('0x7e')](0x0,_0x7c18b),_0x21526b;}return _0x81feed[_0x329c('0x103')](_0x329c('0x31'),null===_0x52001a?this[_0x329c('0x36')]++:_0x52001a++),_0x81feed[_0x329c('0x7e')](0x0,_0x7c18b),_0x81feed;}[_0x329c('0x45')](_0x59215d,_0x696f99,_0xac37cb){this[_0x329c('0x9c')]();const {roots:_0x1b6c9a,markers:_0x390f4e,rootsAttributes:_0x154651}=this[_0x329c('0x66')][_0x329c('0xa')](_0x59215d);this[_0x329c('0xe5')]=new Map(_0x1b6c9a),this[_0x329c('0xff')]=new Map(_0x45e264(_0x154651));for(const [_0x1747b2,_0x4eb81a]of this[_0x329c('0xe5')])if(_0x329c('0x87')!==_0x1747b2&&(this[_0x329c('0xed')]['set'](_0x1747b2,B(_0x4eb81a)),this[_0x329c('0xb2')]=new Map(_0x45e264(_0x154651)),_0xac37cb)){const _0x4b11c9=this[_0x329c('0x36')];this[_0x329c('0xfa')][_0x329c('0x5c')](_0x1747b2,this[_0x329c('0x48')](_0x4eb81a)),this['_baseIdsRoots'][_0x329c('0x5c')](_0x1747b2,this[_0x329c('0x48')](_0x4eb81a,_0x4b11c9));}this[_0x329c('0x17')]=this['_revisionId'],this['_diffRoots'][_0x329c('0x5c')](_0x329c('0x87'),B(this[_0x329c('0xe5')][_0x329c('0xa')]('$graveyard'))),_0xac37cb&&this[_0x329c('0xfa')]['set'](_0x329c('0x87'),this['_makeIdsRoot'](this[_0x329c('0xe5')][_0x329c('0xa')]('$graveyard')));for(const [_0x3bd48e,_0x5ebcf3]of _0x390f4e){const _0x23e178=this['_baseRoots'][_0x329c('0xa')](_0x5ebcf3[_0x329c('0xf2')]),_0x16abc7=this[_0x329c('0xed')]['get'](_0x5ebcf3['rootName']),_0x2172a4=new _0x60a973(this[_0x329c('0xb1')](_0x5ebcf3[_0x329c('0xa4')],_0x23e178),this[_0x329c('0xb1')](_0x5ebcf3[_0x329c('0xb7')],_0x23e178)),_0x2c56f5=this['_fixRange'](_0x2172a4,_0x16abc7);_0x23e178[_0x329c('0x97')][_0x329c('0x5c')](_0x3bd48e,_0x2172a4),this[_0x329c('0xc0')][_0x329c('0x5c')](_0x3bd48e,_0x2c56f5);}this['_applyOperations'](_0x59215d,_0x696f99,_0xac37cb);}[_0x329c('0x101')](_0x2613a9,_0x4d974b,_0x484b9f){for(const _0x46b2fc of this['source'][_0x329c('0x58')](_0x2613a9,_0x4d974b))this['_handleOperation'](_0x46b2fc,_0x484b9f);for(const _0x3632b8 of this[_0x329c('0xed')][_0x329c('0x29')]())_0x3632b8[_0x329c('0x97')][_0x329c('0xdb')]();for(const [_0x494b92,_0x433663]of this[_0x329c('0xc0')]){this[_0x329c('0xed')][_0x329c('0xa')](_0x433663[_0x329c('0x19')][_0x329c('0xf2')])['markers'][_0x329c('0x5c')](_0x494b92,_0x433663['clone']());}const _0x138846=new Map(),_0x3a0df8=new Map();for(const [_0x2869e3,_0x4a944c]of this['_diffRoots'])_0x138846[_0x329c('0x5c')](_0x2869e3,B(_0x4a944c)),_0x3a0df8[_0x329c('0x5c')](_0x2869e3,this[_0x329c('0xb2')]['get'](_0x2869e3));this[_0x329c('0xc3')](_0x4d974b,_0x138846,this[_0x329c('0xc0')],_0x3a0df8);}[_0x329c('0x9b')](_0x1b0a79){const _0x1f73a6=Array[_0x329c('0x9')](this[_0x329c('0x66')][_0x329c('0x6a')]());_0x1f73a6[_0x329c('0xea')]((_0x7dc89,_0x52ba8e)=>_0x7dc89-_0x52ba8e),_0x1f73a6[_0x329c('0xc8')]();for(const _0x11325f of _0x1f73a6)if(_0x11325f<_0x1b0a79)return _0x11325f;return Number[_0x329c('0x32')];}['_copyMarkers'](_0x77a810,_0x53feb2){const _0x104d44=Array[_0x329c('0x9')](_0x53feb2['markers'])[_0x329c('0x25')](([_0x57bc78,_0x39cc4a])=>[_0x57bc78,this[_0x329c('0xbd')](_0x39cc4a,_0x77a810)]);_0x77a810[_0x329c('0x97')]=new Map(_0x104d44);}[_0x329c('0x72')](_0x5eb941){for(const _0x1f321e of this[_0x329c('0xc0')][_0x329c('0x29')]()){const _0x1ac057=_0x1f321e[_0x329c('0x92')](_0x5eb941),_0x4283ec=_0x60a973[_0x329c('0x73')](_0x1ac057);_0x1f321e[_0x329c('0xa4')]=_0x4283ec[_0x329c('0xa4')],_0x1f321e['end']=_0x4283ec[_0x329c('0xb7')];}}[_0x329c('0x63')](_0x579fe0,_0x3b5b01){if(_0x329c('0x6d')==_0x579fe0[_0x329c('0x79')]||_0x329c('0xf6')==_0x579fe0[_0x329c('0x79')])return void this[_0x329c('0x88')](_0x579fe0,_0x3b5b01);if(_0x329c('0xa8')==_0x579fe0[_0x329c('0x79')]){const _0x1692da=_0x579fe0[_0x329c('0x23')]['root'][_0x329c('0xf2')];this[_0x329c('0xed')]['has'](_0x1692da)||(this[_0x329c('0xed')]['set'](_0x1692da,J(_0x1692da,!0x0)),this[_0x329c('0xb2')][_0x329c('0x5c')](_0x1692da,{}),_0x3b5b01&&this['_idsRoots']['set'](_0x1692da,J(_0x1692da,!0x0)));}if(_0x329c('0xd4')==_0x579fe0[_0x329c('0x79')]||_0x329c('0x11')==_0x579fe0['type']||_0x329c('0x6e')==_0x579fe0[_0x329c('0x79')])return void this[_0x329c('0xcf')](_0x579fe0);const _0x8950cf=this[_0x329c('0xeb')](_0x579fe0,this['_diffRoots']);if(_0x329c('0xc2')!==_0x579fe0[_0x329c('0x79')]&&(_0x8950cf[_0x329c('0xf4')](),this[_0x329c('0x72')](_0x8950cf)),_0x3b5b01)switch(_0x8950cf[_0x329c('0x79')]){case'insert':this[_0x329c('0xdf')](_0x579fe0);break;case'move':case _0x329c('0x80'):case _0x329c('0x84'):this['_handleMoveOperation'](_0x579fe0);break;case _0x329c('0xb8'):this[_0x329c('0xf')](_0x579fe0);break;case _0x329c('0x75'):this['_handleSplitOperation'](_0x579fe0);break;case _0x329c('0xc2'):this[_0x329c('0x20')](_0x579fe0);}}[_0x329c('0xeb')](_0x397729,_0xc50bf1){const _0x210eda=_0x397729[_0x329c('0xad')]();return _0x210eda['_authorId']=_0x397729[_0x329c('0xd')],this['_fixOperation'](_0x210eda,_0xc50bf1),_0x210eda;}[_0x329c('0x106')](_0x492a6b){return _0x492a6b['map'](_0xfd310c=>{const _0xb187bb=this[_0x329c('0x4f')](_0xfd310c);return Number(_0xfd310c['item'][_0x329c('0xdc')](_0xb187bb));});}['_generateTape'](_0x1afd7a,_0x4c97f2){if(_0x1afd7a['is'](_0x329c('0x82'),_0x329c('0x12')))_0x4c97f2[_0x329c('0x76')]({'item':_0x1afd7a,'type':'text'});else{_0x1afd7a['is']('element')&&_0x4c97f2['push']({'item':_0x1afd7a,'type':_0x329c('0x108')});for(const _0xe51a03 of _0x1afd7a[_0x329c('0x68')]())this['_generateTape'](_0xe51a03,_0x4c97f2);_0x1afd7a['is'](_0x329c('0x82'))&&_0x4c97f2['push']({'item':_0x1afd7a,'type':_0x329c('0x100')});}return _0x4c97f2;}[_0x329c('0xfb')](){const _0x5c7795=new Map(this['_touched']),_0x2b4f40=new Map(_0x5c7795),_0x46e516=new Map(),_0x34ec91={'insertions':{},'deletions':{}},_0x49214e={'insertions':{},'deletions':{}},_0xc54a7c=new Map(),_0x1d7137=new Set([...this['_baseRoots'][_0x329c('0x6a')](),...this[_0x329c('0xed')][_0x329c('0x6a')]()]);_0x1d7137[_0x329c('0x78')](_0x329c('0x87'));for(const _0x1a655e of _0x1d7137){const _0x2b1100=this['_diffRoots']['get'](_0x1a655e)||J(_0x1a655e,!0x1),_0x34cac6=this[_0x329c('0xe5')][_0x329c('0xa')](_0x1a655e)||J(_0x1a655e,!0x1);_0x2b1100[_0x329c('0xb5')]()||_0x34cac6[_0x329c('0xb5')]()?(_0x34ec91[_0x329c('0x7a')][_0x1a655e]=B(_0x2b1100),_0x34ec91[_0x329c('0x8d')][_0x1a655e]=B(_0x34cac6),this[_0x329c('0x105')](_0x34ec91[_0x329c('0x8d')][_0x1a655e],_0x34cac6),this[_0x329c('0x105')](_0x34ec91[_0x329c('0x7a')][_0x1a655e],_0x2b1100),_0x49214e[_0x329c('0x7a')][_0x1a655e]=this['_generateTape'](this[_0x329c('0xfa')][_0x329c('0xa')](_0x1a655e),[]),_0x49214e['deletions'][_0x1a655e]=this[_0x329c('0x9e')](this[_0x329c('0xba')][_0x329c('0xa')](_0x1a655e)||J(_0x1a655e,!0x1),[])):_0x1d7137['delete'](_0x1a655e);}for(const _0x30cb6e of _0x1d7137){const _0x524c31=_0x49214e[_0x329c('0x7a')][_0x30cb6e];for(const _0x57e01a of _0x524c31){const _0x379ae1=this[_0x329c('0x4f')](_0x57e01a),_0x68b47e=_0x57e01a[_0x329c('0xc4')][_0x329c('0xdc')](_0x379ae1);_0x2b4f40[_0x329c('0x78')](_0x68b47e),_0x68b47e>=this[_0x329c('0x17')]&&_0x46e516[_0x329c('0x5c')](_0x68b47e,_0x5c7795[_0x329c('0xa')](_0x68b47e));}}for(const _0x11fede of _0x1d7137){const _0xbf741f=_0x49214e['insertions'][_0x11fede],_0x33542e=this[_0x329c('0x106')](_0x49214e[_0x329c('0x8d')][_0x11fede]);let _0x31b4b4=0x0;for(const _0x459c45 of _0xbf741f){const _0x126c76=this[_0x329c('0x4f')](_0x459c45),_0x23654e=_0x459c45['item'][_0x329c('0xdc')](_0x126c76);if(!_0x46e516[_0x329c('0x85')](_0x23654e)&&!_0xc54a7c[_0x329c('0x85')](_0x23654e)){if(_0x2b4f40[_0x329c('0x85')](_0x23654e))_0x31b4b4++;else{if(_0x23654e!=_0x33542e[_0x31b4b4]){const _0x489123=_0x5c7795[_0x329c('0xa')](_0x23654e)||_0x5c7795[_0x329c('0xa')](_0x33542e[_0x31b4b4]);for(;_0x23654e!=_0x33542e[_0x31b4b4];)_0x2b4f40[_0x329c('0x85')](_0x33542e[_0x31b4b4])||(_0xc54a7c['set'](_0x33542e[_0x31b4b4],_0x489123),_0x5c7795[_0x329c('0x5c')](_0x33542e[_0x31b4b4],_0x489123)),_0x31b4b4++;}_0x31b4b4++;}}}}for(const _0x57a745 of _0x1d7137){const _0x49657d=_0x49214e['insertions'][_0x57a745];for(const _0x360665 of _0x49657d){const _0x524ffe=this[_0x329c('0x4f')](_0x360665),_0x3bffb0=_0x360665[_0x329c('0xc4')]['getAttribute'](_0x524ffe);if(_0xc54a7c[_0x329c('0x85')](_0x3bffb0)){const _0x37409c=_0xc54a7c[_0x329c('0xa')](_0x3bffb0);_0x2b4f40[_0x329c('0x85')](_0x3bffb0)||_0x2b4f40[_0x329c('0x5c')](_0x3bffb0,{..._0x37409c}),_0x46e516['set'](_0x3bffb0,{..._0x37409c});}}}for(const _0x766dd7 of _0x2b4f40[_0x329c('0x6a')]())_0x766dd7>=this[_0x329c('0x17')]&&_0x2b4f40[_0x329c('0x78')](_0x766dd7);const _0x3c336d=new Map();for(const _0x2b17a0 of _0x1d7137){let _0x58780c=_0x49214e[_0x329c('0x7a')][_0x2b17a0];for(const _0x5e1aae of _0x58780c)if(_0x5e1aae['item']['is']('element','tableCell')){const _0x5e1ac8=this[_0x329c('0x4f')](_0x5e1aae),_0x20f4b8=_0x5e1aae[_0x329c('0xc4')][_0x329c('0xdc')](_0x5e1ac8);if(_0x46e516[_0x329c('0x85')](_0x20f4b8)){const _0x39dbb1=_0x5e1aae[_0x329c('0xc4')][_0x329c('0x4')][_0x329c('0x4')][_0x329c('0xdc')](_0x329c('0x5b')),_0x3e043f=_0x3c336d['get'](_0x39dbb1)||new Set();_0x3e043f[_0x329c('0x26')](_0x46e516[_0x329c('0xa')](_0x20f4b8)[_0x329c('0xd3')]),_0x3c336d['set'](_0x39dbb1,_0x3e043f);}}_0x58780c=_0x49214e[_0x329c('0x8d')][_0x2b17a0];for(const _0x3b0a90 of _0x58780c)if(_0x3b0a90['item']['is'](_0x329c('0x82'),'tableCell')){const _0x4509cc=this[_0x329c('0x4f')](_0x3b0a90),_0x35ef4c=_0x3b0a90[_0x329c('0xc4')]['getAttribute'](_0x4509cc);if(_0x2b4f40[_0x329c('0x85')](_0x35ef4c)){const _0x459641=_0x3b0a90[_0x329c('0xc4')][_0x329c('0x4')]['parent'][_0x329c('0xdc')]('vid_start'),_0x322b30=_0x3c336d[_0x329c('0xa')](_0x459641)||new Set();_0x322b30[_0x329c('0x26')](_0x2b4f40[_0x329c('0xa')](_0x35ef4c)[_0x329c('0xd3')]),_0x3c336d[_0x329c('0x5c')](_0x459641,_0x322b30);}}for(const _0x59e331 of _0x3c336d[_0x329c('0x6a')]())(_0x46e516['has'](_0x59e331)||_0x2b4f40[_0x329c('0x85')](_0x59e331))&&_0x3c336d[_0x329c('0x78')](_0x59e331);}for(const _0x270568 of _0x1d7137){const _0x18068d=_0x49214e[_0x329c('0x7a')][_0x270568];let _0x2e89ca=null,_0x143fb7=null;for(const _0x1824e0 of _0x18068d){const _0x110fad=this['_getVidAttributeName'](_0x1824e0),_0x5f214f=_0x1824e0[_0x329c('0xc4')][_0x329c('0xdc')](_0x110fad),_0xc89377=_0x3c336d['get'](_0x5f214f);_0xc89377&&_0x329c('0x108')==_0x1824e0['type']&&(_0x2e89ca=Array['from'](_0xc89377)[0x0],_0x143fb7=_0x1824e0[_0x329c('0xc4')]['getAttribute'](_0x329c('0x31'))),_0x2e89ca&&(_0x2b4f40[_0x329c('0x5c')](_0x5f214f,{'userId':_0x2e89ca}),_0x46e516[_0x329c('0x5c')](_0x5f214f,{'userId':_0x2e89ca})),_0x5f214f==_0x143fb7&&(_0x2e89ca=null,_0x143fb7=null);}}const _0x19b44b={},_0x50e224=new Set();for(const _0x4549a7 of _0x1d7137){const _0x270af1=_0x34ec91['deletions'][_0x4549a7],_0x9f0048=_0x34ec91[_0x329c('0x7a')][_0x4549a7];for(const {userId:_0x3cb5f6}of this[_0x329c('0x10b')]['values']())null!==_0x3cb5f6&&_0x50e224[_0x329c('0x26')](_0x3cb5f6);for(const {userId:_0x5b9d22}of this[_0x329c('0x8b')][_0x329c('0x29')]())null!==_0x5b9d22&&_0x50e224[_0x329c('0x26')](_0x5b9d22);this[_0x329c('0x1c')](_0x9f0048,_0x49214e[_0x329c('0x7a')][_0x4549a7],_0x46e516,_0x329c('0xa6'),_0x50e224),this[_0x329c('0x1c')](_0x270af1,_0x49214e[_0x329c('0x8d')][_0x4549a7],_0x2b4f40,_0x329c('0x3e'),_0x50e224),_0x19b44b[_0x4549a7]={'insertions':this['_prepareViewToSave'](_0x9f0048),'deletions':this[_0x329c('0x77')](_0x270af1),'attachChange':this['_touchedRoots'][_0x329c('0xa')](_0x4549a7)||null,'attributesBefore':_0x45e264(this[_0x329c('0xff')][_0x329c('0xa')](_0x4549a7))||{},'attributesAfter':_0x45e264(this['_diffRootsAttributes'][_0x329c('0xa')](_0x4549a7))};}return{'diffData':_0x19b44b,'authorsIds':Array['from'](_0x50e224)};}[_0x329c('0xcc')](_0x1617f6){for(const [,_0x5ad3f9]of _0x1617f6[_0x329c('0x97')]){const _0xec1f68=_0x5ad3f9[_0x329c('0xa4')][_0x329c('0xd7')]()[_0x329c('0xd2')](_0x4d8436=>_0x329c('0x6f')==_0x4d8436[_0x329c('0xb6')]);for(const _0x314f99 of _0xec1f68)0x1==_0x314f99[_0x329c('0xf9')]&&_0x314f99[_0x329c('0xf3')](0x0)['is']('element',_0x329c('0x6b'))&&_0x314f99[_0x329c('0xf3')](0x0)['_setAttribute'](_0x329c('0xde'),!0x0);}}[_0x329c('0x77')](_0x232066){this[_0x329c('0xcc')](_0x232066);const _0x4bc55c=this[_0x329c('0x53')][_0x329c('0x96')][_0x329c('0x83')](_0x232066,{}),_0x2b24d9=Array['from'](_0x4bc55c[_0x329c('0x68')]())['map'](_0x5a1e6b=>this[_0x329c('0x8c')](_0x5a1e6b));return JSON['stringify'](_0x2b24d9);}['_getViewJson'](_0x4a9948){if(_0x4a9948['is'](_0x329c('0x12')))return _0x4a9948[_0x329c('0x96')];{const _0x3de209=_0x4a9948;return{'type':Object[_0x329c('0x6a')](j)[_0x329c('0x33')](_0x40fc8b=>_0x4a9948 instanceof j[_0x40fc8b]),'name':_0x3de209[_0x329c('0xb6')],'attributes':Array[_0x329c('0x9')](_0x3de209['getAttributes']()),'children':Array['from'](_0x3de209[_0x329c('0x68')]())[_0x329c('0x25')](_0x28d6a0=>this[_0x329c('0x8c')](_0x28d6a0))};}}['_markChanges'](_0x2f1795,_0x15d7cf,_0x1fe3ee,_0x81f58f,_0x1fc717){let _0x358a6e=null,_0x1cb087=null,_0x2373dc=0x0;const _0x533bcd=this[_0x329c('0x53')][_0x329c('0x98')];for(let _0x4a7982=0x0;_0x4a7982<_0x15d7cf[_0x329c('0x94')];_0x4a7982++){const _0x28ac9a=this['_getVidAttributeName'](_0x15d7cf[_0x4a7982]),_0x5c0832=_0x15d7cf[_0x4a7982][_0x329c('0xc4')][_0x329c('0xdc')](_0x28ac9a),_0x204909=_0x1fe3ee[_0x329c('0xa')](_0x5c0832),_0x314c25=_0x4a7982==_0x15d7cf['length']-0x1;(!_0x358a6e&&_0x204909&&(_0x358a6e=_0x204909,_0x1cb087=_0x15d7cf[_0x4a7982]),_0x358a6e&&(!_0x204909||_0x204909[_0x329c('0xd3')]!=_0x358a6e[_0x329c('0xd3')]))&&(_0x190d01(_0x204909,H(_0x1cb087,_0x2f1795,_0x533bcd),H(_0x15d7cf[_0x4a7982],_0x2f1795,_0x533bcd)),_0x358a6e=_0x204909||null,_0x1cb087=_0x204909?_0x15d7cf[_0x4a7982]:null),_0x358a6e&&_0x314c25&&_0x190d01(_0x204909,H(_0x1cb087,_0x2f1795,_0x533bcd),q(_0x15d7cf[_0x4a7982],_0x2f1795,_0x533bcd));}function _0x190d01(_0xdd183f,_0x395a8b,_0x10b1ef){const _0xdd04ed=_0x358a6e[_0x329c('0xd3')],_0x3b9a67=_0x329c('0x3c')+_0x81f58f+':'+_0xdd04ed+':'+_0x2373dc++,_0x40db84=_0x533bcd[_0x329c('0x74')](_0x395a8b,_0x10b1ef);_0x2f1795[_0x329c('0x97')][_0x329c('0x5c')](_0x3b9a67,_0x40db84),null!==_0xdd04ed&&_0x1fc717['add'](_0xdd04ed);}}['_getVidAttributeName'](_0x1affb8){switch(_0x1affb8[_0x329c('0x79')]){case _0x329c('0x108'):return _0x329c('0x5b');case _0x329c('0x100'):return _0x329c('0x31');default:return _0x329c('0xfd');}}[_0x329c('0x107')](_0x287266,_0x4662c3){_0x287266[_0x329c('0x3a')]=null;for(const _0xe36f7f in _0x287266){const _0x49ad31=_0x287266[_0xe36f7f];if(_0x49ad31 instanceof _0x12f2d2){const _0x53be32=_0x4662c3[_0x329c('0xa')](_0x49ad31[_0x329c('0x19')]['rootName']);_0x287266[_0xe36f7f]=this[_0x329c('0xb1')](_0x49ad31,_0x53be32);}if(_0x49ad31 instanceof _0x60a973){const _0x500880=_0x4662c3[_0x329c('0xa')](_0x49ad31[_0x329c('0x19')]['rootName']);_0x287266[_0xe36f7f]=this[_0x329c('0xbd')](_0x49ad31,_0x500880);}'root'===_0xe36f7f&&(_0x287266[_0x329c('0x19')]=_0x4662c3['get'](_0x287266[_0x329c('0x19')]['rootName']));}}[_0x329c('0xbd')](_0x42f21b,_0xdd3f57){return this[_0x329c('0x53')]['model'][_0x329c('0x74')](this[_0x329c('0xb1')](_0x42f21b[_0x329c('0xa4')],_0xdd3f57),this[_0x329c('0xb1')](_0x42f21b[_0x329c('0xb7')],_0xdd3f57));}[_0x329c('0xb1')](_0x22bb68,_0x30243c){return this[_0x329c('0x53')][_0x329c('0x98')][_0x329c('0xb9')](_0x30243c,_0x22bb68[_0x329c('0x16')],_0x22bb68[_0x329c('0xc5')]);}[_0x329c('0xdf')](_0x28abcf){const _0x5d4392=this[_0x329c('0xfa')][_0x329c('0xa')](_0x28abcf[_0x329c('0x23')][_0x329c('0x19')][_0x329c('0xf2')]),_0x44b30a=this[_0x329c('0xb1')](_0x28abcf['position'],_0x5d4392),_0xc57edb=null===_0x28abcf[_0x329c('0xd')]?null:_0x28abcf['_authorId']||this[_0x329c('0x53')]['plugins']['get']('Users')['me']['id'],_0x51110b=_0x44b30a[_0x329c('0x4')],_0x3aac5a=this[_0x329c('0x36')],_0x152f6a=[];for(const _0x38dbd7 of _0x28abcf[_0x329c('0x40')])if(_0x38dbd7['is'](_0x329c('0x82')))_0x152f6a[_0x329c('0x76')](this['_makeIdsRoot'](_0x38dbd7));else for(let _0x30b01a=0x0;_0x30b01a<_0x38dbd7[_0x329c('0x4c')];_0x30b01a++)_0x152f6a['push'](new _0x48a53c(_0x329c('0x12'),{'vid':this[_0x329c('0x36')]++}));const _0x36df05=this[_0x329c('0x36')];for(let _0x2b2de3=_0x3aac5a;_0x2b2de3<_0x36df05;_0x2b2de3++)this[_0x329c('0x0')][_0x329c('0x5c')](_0x2b2de3,{'userId':_0xc57edb});_0x51110b[_0x329c('0x7e')](_0x44b30a[_0x329c('0x57')],_0x152f6a);}[_0x329c('0x37')](_0x4ac22a){(_0x4ac22a=this[_0x329c('0xeb')](_0x4ac22a,this['_idsRoots']))[_0x329c('0xf4')]();const _0x32b62c=null===_0x4ac22a[_0x329c('0xd')]?null:_0x4ac22a['_authorId']||this['editor']['plugins'][_0x329c('0xa')](_0x329c('0x5e'))['me']['id'],_0x4d4199=_0x4ac22a['getMovedRangeStart'](),_0x42c36a=_0x4d4199[_0x329c('0x4')],_0x20f1ec=_0x4d4199[_0x329c('0x57')];!function _0x2c68c6(_0x52e81f,_0x3d0a13,_0x2e63d1,_0x2c7cbe){for(let _0xa75097=_0x2e63d1;_0xa75097<_0x2c7cbe;_0xa75097++){const _0x1bddd4=_0x3d0a13[_0x329c('0xf3')](_0xa75097);_0x1bddd4['is'](_0x329c('0x82'),'$text')?_0x52e81f[_0x329c('0x5c')](_0x1bddd4[_0x329c('0xdc')](_0x329c('0xfd')),{'userId':_0x32b62c}):(_0x52e81f[_0x329c('0x5c')](_0x1bddd4[_0x329c('0xdc')](_0x329c('0x5b')),{'userId':_0x32b62c}),_0x2c68c6(_0x52e81f,_0x1bddd4,0x0,_0x1bddd4[_0x329c('0xf9')]),_0x52e81f[_0x329c('0x5c')](_0x1bddd4[_0x329c('0xdc')](_0x329c('0x31')),{'userId':_0x32b62c}));}}(this[_0x329c('0x0')],_0x42c36a,_0x20f1ec,_0x20f1ec+_0x4ac22a[_0x329c('0xcb')]);}['_handleMergeOperation'](_0x40dedf){const _0x5c911b=null===(_0x40dedf=this[_0x329c('0xeb')](_0x40dedf,this[_0x329c('0xfa')]))[_0x329c('0xd')]?null:_0x40dedf['_authorId']||this['editor'][_0x329c('0x1d')]['get'](_0x329c('0x5e'))['me']['id'],_0x110c4b=_0x40dedf[_0x329c('0xa2')][_0x329c('0x4')],_0x549426=_0x40dedf['sourcePosition']['parent'],_0xa6c09e=_0x110c4b[_0x329c('0xdc')](_0x329c('0x31')),_0x2bd2ff=_0x549426[_0x329c('0xdc')](_0x329c('0x5b'));_0x110c4b[_0x329c('0x103')](_0x329c('0x31'),_0x549426[_0x329c('0xdc')](_0x329c('0x31'))),_0x549426[_0x329c('0x103')](_0x329c('0x31'),_0xa6c09e),this[_0x329c('0x0')][_0x329c('0x5c')](_0x2bd2ff,{'userId':_0x5c911b}),this[_0x329c('0x0')]['set'](_0xa6c09e,{'userId':_0x5c911b}),_0x40dedf[_0x329c('0xf4')]();}[_0x329c('0x104')](_0x38ab63){const _0x1d9919=null===(_0x38ab63=this['_cloneOperation'](_0x38ab63,this[_0x329c('0xfa')]))[_0x329c('0xd')]?null:_0x38ab63[_0x329c('0xd')]||this[_0x329c('0x53')][_0x329c('0x1d')]['get']('Users')['me']['id'],_0x4edf1c=_0x38ab63[_0x329c('0x5d')],_0x22fe9f=_0x38ab63[_0x329c('0x27')][_0x329c('0x4')];_0x38ab63[_0x329c('0xf4')]();const _0x237a77=_0x22fe9f[_0x329c('0xdc')](_0x329c('0x31')),_0x4fd179=_0x38ab63[_0x329c('0xb')][_0x329c('0x7f')];if(_0x4edf1c){const _0x35d30b=_0x4fd179[_0x329c('0xdc')]('vid_end'),_0x4cabb1=_0x22fe9f[_0x329c('0xdc')]('vid_end');_0x22fe9f[_0x329c('0x103')](_0x329c('0x31'),_0x35d30b),_0x4fd179[_0x329c('0x103')](_0x329c('0x31'),_0x4cabb1),this[_0x329c('0x0')][_0x329c('0x5c')](_0x22fe9f[_0x329c('0xdc')](_0x329c('0x31')),{'userId':_0x1d9919}),this[_0x329c('0x0')][_0x329c('0x5c')](_0x4fd179['getAttribute'](_0x329c('0x5b')),{'userId':_0x1d9919});}else{const _0x53ef8b=this[_0x329c('0x36')]++,_0x317157=this['_revisionId']++;_0x22fe9f[_0x329c('0x103')](_0x329c('0x31'),_0x53ef8b),_0x4fd179[_0x329c('0x103')](_0x329c('0x5b'),_0x317157),_0x4fd179[_0x329c('0x103')](_0x329c('0x31'),_0x237a77),this['_touched']['set'](_0x53ef8b,{'userId':_0x1d9919}),this[_0x329c('0x0')]['set'](_0x317157,{'userId':_0x1d9919});}}[_0x329c('0x20')](_0x1cb15e){if(!_0x1cb15e[_0x329c('0xa1')])return;const _0x50bd57=(_0x1cb15e=this['_cloneOperation'](_0x1cb15e,this['_diffRoots']))[_0x329c('0xdd')]?_0x1cb15e[_0x329c('0xdd')]['root']:null,_0x56a72e=_0x1cb15e['newRange']?_0x1cb15e[_0x329c('0xca')][_0x329c('0x19')]:null;_0x50bd57&&this[_0x329c('0xc0')]['delete'](_0x1cb15e[_0x329c('0xb6')]),_0x56a72e&&this[_0x329c('0xc0')][_0x329c('0x5c')](_0x1cb15e[_0x329c('0xb6')],_0x1cb15e[_0x329c('0xca')][_0x329c('0xad')]());const _0x37cf21=null===_0x1cb15e[_0x329c('0xd')]?null:_0x1cb15e['_authorId']||this[_0x329c('0x53')][_0x329c('0x1d')][_0x329c('0xa')](_0x329c('0x5e'))['me']['id'],_0x226890=_0x1cb15e[_0x329c('0xb6')];if(!this[_0x329c('0x10b')][_0x329c('0x85')](_0x226890))return void this[_0x329c('0x10b')][_0x329c('0x5c')](_0x226890,{'range':_0x1cb15e[_0x329c('0xdd')],'userId':_0x37cf21});const _0x52dea2=this[_0x329c('0x10b')][_0x329c('0xa')](_0x226890),_0x35b525=_0x52dea2['range'],_0x500066=_0x1cb15e[_0x329c('0xca')];null==_0x35b525&&null==_0x500066||_0x35b525&&_0x500066&&_0x35b525[_0x329c('0x21')](_0x500066)?this[_0x329c('0x10b')]['delete'](_0x1cb15e[_0x329c('0xb6')]):_0x52dea2[_0x329c('0xd3')]=_0x37cf21;}[_0x329c('0x88')](_0x53f6c4,_0x3b08f2){this['_diffRoots'][_0x329c('0x85')](_0x53f6c4[_0x329c('0xf2')])?this[_0x329c('0xed')]['get'](_0x53f6c4['rootName'])[_0x329c('0xa5')]=_0x53f6c4[_0x329c('0x71')]:(this[_0x329c('0xed')]['set'](_0x53f6c4[_0x329c('0xf2')],J(_0x53f6c4[_0x329c('0xf2')],!0x0)),this[_0x329c('0xb2')][_0x329c('0x5c')](_0x53f6c4['rootName'],{}),_0x3b08f2&&this['_idsRoots'][_0x329c('0x5c')](_0x53f6c4[_0x329c('0xf2')],J(_0x53f6c4[_0x329c('0xf2')],!0x0)));const _0x19c641=null===_0x53f6c4[_0x329c('0xd')]?null:_0x53f6c4['_authorId']||this[_0x329c('0x53')]['plugins']['get'](_0x329c('0x5e'))['me']['id'],_0x14c431=this[_0x329c('0x8b')][_0x329c('0xa')](_0x53f6c4[_0x329c('0xf2')]);_0x14c431&&_0x14c431[_0x329c('0xd3')]===_0x19c641?this[_0x329c('0x8b')][_0x329c('0x78')](_0x53f6c4[_0x329c('0xf2')]):this['_touchedRoots'][_0x329c('0x5c')](_0x53f6c4[_0x329c('0xf2')],{'userId':_0x19c641,'isAttached':_0x53f6c4[_0x329c('0x71')]});}[_0x329c('0xcf')](_0x57d021){const _0x46c981=this[_0x329c('0xb2')][_0x329c('0xa')](_0x57d021[_0x329c('0x19')][_0x329c('0xf2')]);null===_0x57d021['newValue']?delete _0x46c981[_0x57d021[_0x329c('0x54')]]:_0x46c981[_0x57d021['key']]=_0x57d021[_0x329c('0xb0')];}}function B(_0x31a87b){const _0x52ee78=J(_0x31a87b[_0x329c('0xf2')],_0x31a87b[_0x329c('0xb5')]());for(const _0x274df1 of _0x31a87b[_0x329c('0x68')]()){const _0x8aa975=_0x274df1[_0x329c('0x81')](!0x0);_0x52ee78['_appendChild'](_0x8aa975);}return _0x52ee78;}function J(_0x3b0208,_0x4bd1b2=!0x0){const _0xd1ec1c=new _0x16b774();return _0xd1ec1c[_0x329c('0xf2')]=_0x3b0208,_0xd1ec1c['_isAttached']=_0x4bd1b2,_0xd1ec1c[_0x329c('0xb5')]=()=>_0xd1ec1c[_0x329c('0xa5')],_0xd1ec1c;}function H(_0x574dec,_0x28163b,_0x5b5fc2){const _0x1cd772=_0x329c('0x100')==_0x574dec[_0x329c('0x79')]?_0x5b5fc2[_0x329c('0x24')](_0x574dec[_0x329c('0xc4')],'end'):_0x5b5fc2['createPositionBefore'](_0x574dec[_0x329c('0xc4')]);return _0x5b5fc2[_0x329c('0xb9')](_0x28163b,_0x1cd772[_0x329c('0x16')],_0x1cd772['stickiness']);}function q(_0x194b49,_0x383955,_0xb9cf4f){const _0x2ab0a5=_0x329c('0x108')==_0x194b49[_0x329c('0x79')]?_0xb9cf4f[_0x329c('0x24')](_0x194b49['item'],0x0):_0xb9cf4f[_0x329c('0x60')](_0x194b49[_0x329c('0xc4')]);return _0xb9cf4f['createPositionFromPath'](_0x383955,_0x2ab0a5['path'],_0x2ab0a5[_0x329c('0xc5')]);}