@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230728.0 → 0.0.0-nightly-20230730.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +6 -6
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1049=['marked','_pendingAction','vid','getWalker','_applyOperations','document','_lastTo','collaboration.channelId','_createInitialRevision','insert','children','fromEntries','markerToData','toVersion','plugins','_handleMoveOperation','addRevisionData','ready','isReady','baseVersion','_getPreviousFrom','_isInit','diffData','stringify','_copyMarkers','attributesBefore','affectsData','revisionHistory.resumeUnsavedRevision','reverse','_startingVersion','initialData','marker','clear','_replaceEditorDataWithRevisionData','_isAttached','type','newRange','howMany','_revisionDataBuilder','path','_getVidAttributeName','_createCurrentRevision','offset','shift','delete','get','_makeModelFromViewString','previousPosition','has','createRevision','_update','editing','keepParagraph','_loadedStateData','getAttributes','name','_initialRevisionId','upcast','startsWith','attributesAfter','_makeIdsRoot','split','move','stickiness','includes','_diffRootsAttributes','find','_handleRootOperation','locale','_setAttribute','currentRevision','revision-end','pluginName','_getState','newValue','root','authorsIds','_appendChild','item','_source','_baseIdsRoots','view','sourcePosition','reinsert','resolve','offsetSize','position','parent','Empty\x20document','push','getChild','isAttached','documentFragment','sendBufferedUpdates','size','_diffRoots','_touchedMarkers','map','_reset','vid_start','insertionPosition','deletions','Users','PendingActions','getNodeByPath','_calculateMetaData','_clone','init','$graveyard','_getBaseVids','_removePendingAction','getOperation','getRange','attachChange','conversion','_baseRootsAttributes','add','toData','getRevisions','createPositionBefore','_loadRevisionData','_findInsertionIndex','keys','update','adapter','length','remove','nodes','_startingRevisionId','_handleInsertOperation','getCurrentRevisionId','getAttribute','_continueCurrentRevision','nodeAfter','vid_end','createPositionAt','revision-start','creatorId','createPositionAfter','_makeRevision','set','_markers','revision','_bufferUpdate','_handleMarkerOperation','isAdd','fromVersion','userId','_savedMetaData','reInit','roots','_saveMetaData','processor','_loadState','rootsAttributes','config','getRoot','history','_execute','_lastFrom','createdAt','_bufferedUpdates','PENDING_ACTION_REVISION_HISTORY','_removeRevisionMarkers','getRootNames','_touched','initial','_cloneOperation','start','loadState','buildRevisionData','createPositionFromPath','_prepareViewToSave','creator','_setConversion','end','attributes','addRoot','merge','setRevisionData','repository','revision:','_handleSplitOperation','getRevisionRootsAttributes','addRootAttribute','_fixPosition','string','_revisionId','_handleMergeOperation','_getFromVersion','$text','_markChanges','deletion','for','bind','_transformMarkers','getData','_getViewJson','graveyardPosition','_authorId','rootName','data','values','createRange','key','_idsRoots','paragraph','clone','addRevision','RevisionsRepository','some','_processRootBeforeSave','_insertChild','dataToMarker','hasContent','editor','oldRange','_generateTape','useFillerType','getLatestVersion','authors','_isPendingUpdate','insertions','slice','updateRevisions','forEach','elementStart','filter','element','tableCell','_handleOperation','getUser','_touchedRoots','markers','insertion','_addPendingAction','from','source','parse','removeRootAttribute','detachRoot','getRevisionDocumentData','getChildren','version','then','_baseRoots','getRevision','_handleRootAttributeOperation','max','toModel','_fixRange','RealTimeCollaborationClient','model','NEGATIVE_INFINITY','elementEnd','createRangeIn'];(function(_0x5e7034,_0x1049f8){const _0x28a2ca=function(_0x2e8506){while(--_0x2e8506){_0x5e7034['push'](_0x5e7034['shift']());}};_0x28a2ca(++_0x1049f8);}(_0x1049,0x1f1));const _0x28a2=function(_0x5e7034,_0x1049f8){_0x5e7034=_0x5e7034-0x0;let _0x28a2ca=_0x1049[_0x5e7034];return _0x28a2ca;};import{Users as _0x525a76}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x210168,PendingActions as _0x309a48}from'ckeditor5/src/core';import{logWarning as _0x183192,uid as _0x418475}from'ckeditor5/src/utils';import{Position as _0x31e047,Range as _0x51c84c,Element as _0x2b9992,DocumentFragment as _0x262073,ViewText as _0x175c36,ViewElement as _0x5777b2,ViewContainerElement as _0x3a74ed,ViewAttributeElement as _0x594d20,ViewEmptyElement as _0xbac4c,ViewRawElement as _0x13afa5,ViewUIElement as _0x33fb6e,ViewDocumentFragment as _0x2ed0a2}from'ckeditor5/src/engine';import _0x37c2bd from'./revisionsrepository';import{getTranslation as _0x1eaa92}from'./utils/common-translations';import{cloneDeep as _0x29ed97,isEqual as _0x1b3a03}from'lodash-es';const B={'c':_0x3a74ed,'a':_0x594d20,'e':_0xbac4c,'r':_0x13afa5,'u':_0x33fb6e};export default class l extends _0x210168{static get[_0x28a2('0x57')](){return'RevisionTracker';}static get['requires'](){return[_0x525a76,_0x37c2bd,_0x309a48];}constructor(_0x9281fb){super(_0x9281fb),this[_0x28a2('0x8b')]=null,this[_0x28a2('0x55')]=null,this[_0x28a2('0x35')]=new H(this[_0x28a2('0xe6')]),this['_initialRevisionId']=this[_0x28a2('0xe6')]['config'][_0x28a2('0x3c')]('collaboration.channelId')||_0x28a2('0xb5'),this['_bufferedUpdates']=new Map(),this[_0x28a2('0x44')]=null;const _0x124027=_0x418475();this[_0x28a2('0x5e')]={'history':this[_0x28a2('0xe6')]['model'][_0x28a2('0x14')][_0x28a2('0xac')],'getLatestVersion':()=>Promise[_0x28a2('0x63')](this['editor'][_0x28a2('0xb')][_0x28a2('0x14')][_0x28a2('0x2')]),'getCurrentRevisionId':()=>_0x124027},this[_0x28a2('0x9b')]('isReady',!0x1),this['set']('isEnabled',!0x0),this['set'](_0x28a2('0xec'),!0x1),this[_0x28a2('0xe6')]['config']['define'](_0x28a2('0x2a'),!0x0),this[_0x28a2('0xe6')][_0x28a2('0x81')][_0x28a2('0xd0')](_0x28a2('0x48'))[_0x28a2('0xe4')]({'view':_0x28a2('0x9d')});}[_0x28a2('0x7a')](){this[_0x28a2('0xc3')]=this[_0x28a2('0xe6')][_0x28a2('0x1d')][_0x28a2('0x3c')](_0x28a2('0xe0')),this['_setConversion'](),this[_0x28a2('0xe6')][_0x28a2('0xd8')]['on'](_0x28a2('0x20'),()=>{const _0x177746=this[_0x28a2('0xc3')][_0x28a2('0x5')](0x0),_0x4454d2=_0x177746&&null===_0x177746[_0x28a2('0xbc')]?_0x177746:null;if(this[_0x28a2('0x93')]=!!_0x4454d2&&this[_0x28a2('0xe6')]['config'][_0x28a2('0x3c')](_0x28a2('0x2a')),this[_0x28a2('0xe6')][_0x28a2('0x1d')]['has'](_0x28a2('0xa'))){const _0x9b917e=this[_0x28a2('0x5e')][_0x28a2('0x91')](),_0x2d748c=this[_0x28a2('0xc3')]['getRevision'](_0x9b917e);if(_0x2d748c)this[_0x28a2('0x2c')]=_0x2d748c[_0x28a2('0xa1')],this[_0x28a2('0x93')]=!0x1;else{const _0x2ee004=this['_source'][_0x28a2('0xac')]['_operations'][_0x28a2('0x51')](_0x41838a=>!_0x41838a[_0x28a2('0x24')]),_0x12e05f=_0x2ee004?_0x2ee004[_0x28a2('0x22')]:this[_0x28a2('0x5e')][_0x28a2('0xac')][_0x28a2('0x2')];_0x177746?(_0x177746[_0x28a2('0x1c')]<_0x12e05f&&_0x177746[_0x28a2('0x41')]({'toVersion':_0x12e05f}),this[_0x28a2('0x93')]?(this[_0x28a2('0x5e')]['getCurrentRevisionId']=()=>_0x4454d2['id'],this[_0x28a2('0x2c')]=_0x4454d2[_0x28a2('0xa1')]):(this[_0x28a2('0x2c')]=_0x177746[_0x28a2('0x1c')],this[_0x28a2('0x93')]=!0x1)):(this[_0x28a2('0x2c')]=_0x12e05f,this[_0x28a2('0x93')]=!0x1);}}else _0x4454d2&&(this[_0x28a2('0xe6')][_0x28a2('0xb')][_0x28a2('0x14')][_0x28a2('0xac')][_0x28a2('0x2')]=Math[_0x28a2('0x7')](_0x4454d2['toVersion'],this['editor'][_0x28a2('0xb')][_0x28a2('0x14')][_0x28a2('0xac')][_0x28a2('0x2')]),_0x4454d2[_0x28a2('0xa1')]===_0x4454d2[_0x28a2('0x1c')]?(0x0!==_0x4454d2[_0x28a2('0xa1')]&&(this[_0x28a2('0x5e')][_0x28a2('0x91')]=()=>_0x4454d2['id']),this[_0x28a2('0x93')]=!0x1):this['_continueCurrentRevision']&&(this[_0x28a2('0x5e')][_0x28a2('0x91')]=()=>_0x4454d2['id'],this[_0x28a2('0x2c')]=_0x4454d2[_0x28a2('0xa1')])),this['_continueCurrentRevision']||(this[_0x28a2('0x2c')]=this[_0x28a2('0xe6')][_0x28a2('0xb')][_0x28a2('0x14')]['version']);this[_0x28a2('0x35')]['init'](this[_0x28a2('0x5e')]['history']),this[_0x28a2('0x17')](this[_0x28a2('0x2c')]),this[_0x28a2('0x38')](this[_0x28a2('0x2c')]),this[_0x28a2('0x8b')]&&this['sendBufferedUpdates']();}),this[_0x28a2('0xd1')](_0x28a2('0x21'))['to'](this,_0x28a2('0xec'),_0x3f8f2a=>!_0x3f8f2a);}async['afterInit'](){if(this[_0x28a2('0xc3')][_0x28a2('0x8c')]>0x0){const _0x51a518=this[_0x28a2('0xc3')]['getRevision'](0x0),_0x565860=await this[_0x28a2('0x0')](_0x51a518),_0x4b09aa=await this[_0x28a2('0xc6')](_0x51a518);this['_replaceEditorDataWithRevisionData'](_0x565860,_0x4b09aa);}}['setSource'](_0xd50ef2){this[_0x28a2('0x5e')]=_0xd50ef2;}async[_0x28a2('0x8a')](){const _0x1126d2=await this['_source'][_0x28a2('0xea')]();if(_0x1126d2>this[_0x28a2('0x55')][_0x28a2('0x1c')]){await this[_0x28a2('0xa8')]();const _0x520d32=this[_0x28a2('0xb9')]({'revision':this[_0x28a2('0x55')],'to':_0x1126d2});_0x520d32['authors']=_0x520d32['authorsIds'][_0x28a2('0x70')](_0x2165ab=>this[_0x28a2('0xe6')][_0x28a2('0x1d')][_0x28a2('0x3c')](_0x28a2('0x75'))['getUser'](_0x2165ab)),this[_0x28a2('0x55')]['_update'](_0x520d32);}}async['_loadState'](){this['_continueCurrentRevision']&&!this[_0x28a2('0x44')]&&(await this[_0x28a2('0x87')](this['currentRevision']),this[_0x28a2('0x35')][_0x28a2('0xb8')](this[_0x28a2('0x55')]),this[_0x28a2('0x44')]={'fromVersion':this[_0x28a2('0x55')][_0x28a2('0xa1')],'authors':this[_0x28a2('0x55')][_0x28a2('0xeb')][_0x28a2('0xee')]()});}async['saveRevision'](_0x3afc8d={},_0x5b252e=null){const _0x36b757=[];await this['_loadState'](),this[_0x28a2('0x93')]=!0x1,_0x5b252e>this[_0x28a2('0x55')][_0x28a2('0x1c')]&&(_0x5b252e=null),null===_0x5b252e&&(_0x5b252e=await this[_0x28a2('0x5e')][_0x28a2('0xea')]());const _0x337d67=this[_0x28a2('0xcc')](_0x5b252e),_0x5b7302=this[_0x28a2('0xb9')]({'from':_0x337d67,'to':_0x5b252e});if(this[_0x28a2('0x55')]['toVersion']<_0x5b252e){const _0x241e7a=this['buildRevisionData']({'revision':this[_0x28a2('0x55')],'from':_0x5b252e,'to':_0x5b252e});_0x241e7a[_0x28a2('0xeb')]=[],_0x241e7a[_0x28a2('0x5b')]=[],_0x241e7a['id']=this[_0x28a2('0x55')]['id'],this[_0x28a2('0x55')][_0x28a2('0x41')](_0x241e7a,!0x0),delete _0x241e7a[_0x28a2('0xeb')],_0x36b757['push'](_0x241e7a);}_0x3afc8d[_0x28a2('0x98')]=this[_0x28a2('0xe6')][_0x28a2('0x1d')][_0x28a2('0x3c')](_0x28a2('0x75'))['me']['id'],_0x3afc8d[_0x28a2('0x46')]=_0x3afc8d[_0x28a2('0x46')]||null,_0x3afc8d['id']=_0x3afc8d['id']||_0x418475(),_0x3afc8d={..._0x3afc8d,..._0x5b7302};const _0x2026c9=this['addRevisionData'](_0x3afc8d);_0x36b757[_0x28a2('0x68')](_0x3afc8d);const _0x48fe6d=this[_0x28a2('0xc3')]['getIndex'](_0x2026c9);if(0x0!==_0x48fe6d){const _0x3af6ac=this[_0x28a2('0xc3')][_0x28a2('0x5')](_0x48fe6d-0x1);if(_0x3af6ac[_0x28a2('0xa1')]!==_0x5b252e){const _0x2b6252=this[_0x28a2('0x35')][_0x28a2('0xd3')](_0x5b252e,_0x3af6ac['toVersion']),_0x1289d0={'id':_0x3af6ac['id'],'diffData':_0x2b6252[_0x28a2('0x25')],'authorsIds':_0x2b6252[_0x28a2('0x5b')],'authors':_0x2b6252['authorsIds'][_0x28a2('0x70')](_0x220013=>this[_0x28a2('0xe6')][_0x28a2('0x1d')][_0x28a2('0x3c')]('Users')[_0x28a2('0xf6')](_0x220013)),'fromVersion':_0x5b252e};_0x3af6ac===this['currentRevision']&&(_0x1289d0[_0x28a2('0xaf')]=new Date(_0x3afc8d[_0x28a2('0xaf')]['getTime']()+0xa)),_0x3af6ac[_0x28a2('0x41')](_0x1289d0,!0x0),delete _0x1289d0[_0x28a2('0xeb')],_0x36b757[_0x28a2('0x68')](_0x1289d0);}}if(this[_0x28a2('0x8b')]){for(const _0x5c7ae8 of _0x36b757)this[_0x28a2('0x9e')](_0x5c7ae8['id'],_0x5c7ae8,!0x0);this['sendBufferedUpdates']();}return _0x2026c9;}['addRevisionData'](_0x4f96ed){const _0x3a7965=this[_0x28a2('0xc3')][_0x28a2('0x40')](_0x4f96ed);return this[_0x28a2('0x8b')]&&_0x3a7965['on']('_update',(_0x4a72c7,_0x2d28ce,_0x3da2ae)=>{_0x3da2ae||(this[_0x28a2('0x9e')](_0x2d28ce['id'],_0x2d28ce,!0x0),this[_0x28a2('0x6c')]());}),this[_0x28a2('0xc3')][_0x28a2('0xdf')](_0x3a7965,this[_0x28a2('0x88')](_0x3a7965)),_0x3a7965;}async[_0x28a2('0x0')](_0x473dc9){await this[_0x28a2('0x87')](_0x473dc9);const _0x4633e8={};for(const _0xe3f20 in _0x473dc9['diffData']){if(_0x473dc9['diffData'][_0xe3f20]['attachChange']&&!_0x473dc9[_0x28a2('0x25')][_0xe3f20]['attachChange'][_0x28a2('0x6a')])continue;const _0x8b2e9e=this[_0x28a2('0xb2')](JSON[_0x28a2('0xfd')](_0x473dc9[_0x28a2('0x25')][_0xe3f20][_0x28a2('0xed')])),_0xccb18b=this[_0x28a2('0xe6')][_0x28a2('0x42')]['view'][_0x28a2('0x14')],_0xf2bb8=new _0x2ed0a2(_0xccb18b,_0x8b2e9e[_0x28a2('0x70')](_0x1443a8=>J(_0x1443a8,this['editor'])));this['editor']['data'][_0x28a2('0xa7')]['useFillerType'](_0x28a2('0xf')),_0x4633e8[_0xe3f20]=this[_0x28a2('0xe6')]['data'][_0x28a2('0xa7')][_0x28a2('0x84')](_0xf2bb8),this[_0x28a2('0xe6')]['data'][_0x28a2('0xa7')][_0x28a2('0xe9')]('default');}return _0x4633e8;}async[_0x28a2('0xc6')](_0x4d64db){await this['_loadRevisionData'](_0x4d64db);const _0x40f6c5={};for(const _0x2b73e0 in _0x4d64db[_0x28a2('0x25')])_0x4d64db['diffData'][_0x2b73e0][_0x28a2('0x80')]&&!_0x4d64db[_0x28a2('0x25')][_0x2b73e0][_0x28a2('0x80')][_0x28a2('0x6a')]||(_0x40f6c5[_0x2b73e0]=_0x4d64db[_0x28a2('0x25')][_0x2b73e0][_0x28a2('0x4a')]||{});return _0x40f6c5;}[_0x28a2('0x6c')](){if(0x0===this[_0x28a2('0xb0')][_0x28a2('0x6d')])return;if(this[_0x28a2('0xec')])return;let _0x42b633=Array[_0x28a2('0xfb')](this['_bufferedUpdates']['values']());this[_0x28a2('0xb0')][_0x28a2('0x2f')]();for(let _0x450a03=0x0;_0x450a03<_0x42b633['length'];_0x450a03++){const _0x278e9f=_0x42b633[_0x450a03];let _0x43ef0c=!0x1;for(const _0x221d22 of Object[_0x28a2('0x89')](_0x278e9f))void 0x0===_0x278e9f[_0x221d22]?delete _0x278e9f[_0x221d22]:'id'!==_0x221d22&&(_0x43ef0c=!0x0);_0x43ef0c||(_0x42b633[_0x450a03]=null);}if(_0x42b633=_0x42b633[_0x28a2('0xf2')](_0x3f9c3d=>null!==_0x3f9c3d),!_0x42b633[_0x28a2('0x8c')])return;for(let _0x4754ad=0x0;_0x4754ad<_0x42b633[_0x28a2('0x8c')];_0x4754ad++){const _0xa9f776=_0x42b633[_0x4754ad];void 0x0!==_0xa9f776[_0x28a2('0xa1')]&&void 0x0===_0xa9f776[_0x28a2('0x1c')]&&(_0xa9f776['toVersion']=this[_0x28a2('0xc3')][_0x28a2('0x5')](_0xa9f776['id'])['toVersion']),void 0x0!==_0xa9f776[_0x28a2('0x1c')]&&void 0x0===_0xa9f776[_0x28a2('0xa1')]&&(_0xa9f776['fromVersion']=this[_0x28a2('0xc3')][_0x28a2('0x5')](_0xa9f776['id'])[_0x28a2('0xa1')]);}const _0x1f80e9=this[_0x28a2('0xe6')][_0x28a2('0xaa')][_0x28a2('0x3c')](_0x28a2('0x16'));this[_0x28a2('0xec')]=!0x0,this[_0x28a2('0xfa')](),this[_0x28a2('0x8b')][_0x28a2('0xef')](_0x42b633,_0x1f80e9)['finally'](()=>{this[_0x28a2('0xec')]=!0x1;})[_0x28a2('0x3')](_0x106fb4=>{if(_0x106fb4)for(const _0x2572ff of _0x106fb4)this[_0x28a2('0xc2')]({'id':_0x2572ff['id'],'createdAt':_0x2572ff[_0x28a2('0xaf')]});this[_0x28a2('0x7d')](),this['sendBufferedUpdates']();});}[_0x28a2('0x30')](_0x4d4030,_0x5c225b){let _0x36d4af=this['editor'][_0x28a2('0xaa')][_0x28a2('0x3c')](_0x28a2('0x2d')),_0x205422=this[_0x28a2('0xe6')]['config'][_0x28a2('0x3c')](_0x28a2('0xa9'));if(void 0x0===_0x36d4af){_0x36d4af={};for(const _0x27574b of this['editor']['model'][_0x28a2('0x14')][_0x28a2('0xb3')]())_0x36d4af[_0x27574b]='';}if(_0x28a2('0xc9')==typeof _0x36d4af&&(_0x36d4af={'main':_0x36d4af}),void 0x0===_0x205422){_0x205422={};for(const _0x448748 of this[_0x28a2('0xe6')][_0x28a2('0xb')][_0x28a2('0x14')]['getRootNames']())_0x205422[_0x448748]={};}let _0x1e0401=!0x1;const _0x5e1f4b=Object[_0x28a2('0x89')](_0x36d4af),_0x3cc05a=Object[_0x28a2('0x89')](_0x4d4030);for(const _0x4fca5e of _0x5e1f4b){if(_0x36d4af[_0x4fca5e]!==_0x4d4030[_0x4fca5e]&&''!==_0x36d4af[_0x4fca5e]['trim']()){_0x1e0401=!0x0;break;}if(!_0x1b3a03(_0x205422[_0x4fca5e],_0x5c225b[_0x4fca5e])&&Object[_0x28a2('0x89')](_0x205422[_0x4fca5e])['length']>0x0){_0x1e0401=!0x0;break;}}_0x1e0401||(_0x1e0401=_0x3cc05a[_0x28a2('0xe1')](_0x4e109c=>!this[_0x28a2('0xe6')][_0x28a2('0xb')][_0x28a2('0x14')][_0x28a2('0xab')](_0x4e109c))),_0x1e0401&&_0x183192('editor-initial-data-replaced-with-revision-data',{'editorData':_0x36d4af,'editorRootsAttributes':_0x205422,'revisionData':_0x4d4030,'revisionRootsAttributes':_0x5c225b}),this[_0x28a2('0xe6')][_0x28a2('0xaa')][_0x28a2('0x9b')](_0x28a2('0x2d'),_0x4d4030),this[_0x28a2('0xe6')][_0x28a2('0xaa')]['set'](_0x28a2('0xa9'),_0x5c225b);}[_0x28a2('0xfa')](){if(!this[_0x28a2('0x10')]){const _0x113c3f=this[_0x28a2('0xe6')]['plugins']['get'](_0x28a2('0x76'));this[_0x28a2('0x10')]=_0x113c3f[_0x28a2('0x83')](_0x1eaa92(this[_0x28a2('0xe6')][_0x28a2('0x53')],_0x28a2('0xb1')));}}['_removePendingAction'](){this[_0x28a2('0x10')]&&(this['editor']['plugins']['get'](_0x28a2('0x76'))[_0x28a2('0x8d')](this[_0x28a2('0x10')]),this[_0x28a2('0x10')]=null);}[_0x28a2('0x88')](_0x5d82d3){const _0x237c5a=this[_0x28a2('0xc3')][_0x28a2('0x85')]();_0x237c5a[_0x28a2('0x2b')]();let _0x1e0997=0x0;for(;_0x1e0997<_0x237c5a['length'];){const _0x310d56=_0x237c5a[_0x1e0997];if(_0x310d56===this[_0x28a2('0x55')]){_0x1e0997++;continue;}if(_0x310d56['id']===this[_0x28a2('0x47')])break;const _0x20fd9e=_0x5d82d3[_0x28a2('0x1c')]-_0x310d56[_0x28a2('0x1c')]||_0x5d82d3[_0x28a2('0xa1')]-_0x310d56[_0x28a2('0xa1')];if(_0x20fd9e>0x0)break;if(_0x20fd9e<0x0)_0x1e0997++;else{if(!_0x5d82d3[_0x28a2('0xbc')]&&_0x310d56['creator'])break;if(_0x310d56[_0x28a2('0xbc')]||!_0x5d82d3[_0x28a2('0xbc')]){if(_0x5d82d3[_0x28a2('0xaf')]>_0x310d56['createdAt'])break;_0x1e0997++;}else _0x1e0997++;}}return _0x1e0997;}['setRevisionData'](_0x2c4e78){const _0xb75408=this[_0x28a2('0xc3')]['getRevision'](_0x2c4e78['id']);if(_0x2c4e78[_0x28a2('0xaf')]&&(_0x2c4e78[_0x28a2('0xaf')]=new Date(_0x2c4e78[_0x28a2('0xaf')])),_0x2c4e78[_0x28a2('0x5b')]){const _0x3ab484=this[_0x28a2('0xe6')]['plugins'][_0x28a2('0x3c')](_0x28a2('0x75'));_0x2c4e78['authors']=_0x2c4e78[_0x28a2('0x5b')][_0x28a2('0x70')](_0x148c8c=>_0x3ab484[_0x28a2('0xf6')](_0x148c8c));}_0xb75408[_0x28a2('0x41')](_0x2c4e78,!0x0);}['buildRevisionData']({revision:_0x51b46d=null,from:_0x95ffce=null,to:_0x42475a=null}){_0x95ffce=null!==_0x95ffce?_0x95ffce:_0x51b46d[_0x28a2('0xa1')],_0x42475a=null!==_0x42475a?_0x42475a:_0x51b46d['toVersion'];const _0x167421=this[_0x28a2('0x35')][_0x28a2('0xd3')](_0x95ffce,_0x42475a),_0x4b1ebd={'diffData':_0x167421[_0x28a2('0x25')],'authorsIds':_0x167421['authorsIds'],'fromVersion':_0x95ffce,'toVersion':_0x42475a};if(!_0x51b46d||_0x42475a!==_0x51b46d[_0x28a2('0x1c')]){const _0x11fff8=_0x42475a-0x1,_0x59a93d=this[_0x28a2('0x5e')]['history'][_0x28a2('0x7e')](_0x11fff8);_0x4b1ebd[_0x28a2('0xaf')]=_0x59a93d&&_0x59a93d[_0x28a2('0xaf')]||new Date();}if(this['_loadedStateData']&&_0x95ffce===this[_0x28a2('0x44')][_0x28a2('0xa1')])for(const _0x24e1dd of this[_0x28a2('0x44')][_0x28a2('0xeb')])_0x4b1ebd['authorsIds'][_0x28a2('0x4f')](_0x24e1dd['id'])||_0x4b1ebd['authorsIds'][_0x28a2('0x68')](_0x24e1dd['id']);return _0x4b1ebd;}['_loadRevisionData'](_0xa32c89){if(!_0xa32c89||_0xa32c89[_0x28a2('0x25')])return Promise['resolve']();{const _0x2e6db1=this['editor'][_0x28a2('0xaa')][_0x28a2('0x3c')](_0x28a2('0x16'));return this['adapter'][_0x28a2('0x5')]({'channelId':_0x2e6db1,'revisionId':_0xa32c89['id']})['then'](_0x440f86=>{_0xa32c89[_0x28a2('0x25')]=_0x440f86['diffData'];});}}[_0x28a2('0x9e')](_0x4b8407,_0x2cbeab,_0x32f774){if(this['_bufferedUpdates'][_0x28a2('0x3f')](_0x4b8407)){const _0x143730=this[_0x28a2('0xb0')][_0x28a2('0x3c')](_0x4b8407);_0x2cbeab=_0x32f774?{..._0x143730,..._0x2cbeab}:{..._0x2cbeab,..._0x143730};}this['_bufferedUpdates']['set'](_0x4b8407,_0x2cbeab);}['_getFromVersion'](_0xa87187){const _0x5c344f=this[_0x28a2('0xc3')][_0x28a2('0x85')]();_0x5c344f[_0x28a2('0x2b')](),_0x5c344f[_0x28a2('0x3a')]();const _0x35d78d=_0x5c344f['find'](_0x5df3be=>_0x5df3be['toVersion']<=_0xa87187)[_0x28a2('0x1c')];return _0x35d78d<this[_0x28a2('0x2c')]?this[_0x28a2('0x2c')]:_0x35d78d;}[_0x28a2('0x17')](_0x126770){const _0x14beec=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x14beec)this[_0x28a2('0x47')]=_0x14beec['id'];else{const _0x67fef9=!this[_0x28a2('0xe6')]['model'][_0x28a2('0x14')]['roots']['find'](_0x19c2a9=>this[_0x28a2('0xe6')][_0x28a2('0xb')][_0x28a2('0xe5')](_0x19c2a9)),_0x58ce2e=this[_0x28a2('0xe6')][_0x28a2('0x1d')][_0x28a2('0x3c')](_0x28a2('0x75'))['me']['id'],_0x31036c=_0x1eaa92(this[_0x28a2('0xe6')][_0x28a2('0x53')],_0x67fef9?_0x28a2('0x67'):'Initial\x20revision');this['_makeRevision']({'from':_0x126770,'to':_0x126770,'id':this[_0x28a2('0x47')],'name':_0x31036c,'creatorId':_0x58ce2e});}}[_0x28a2('0x38')](_0x4b13be){const _0x3cf874=this[_0x28a2('0x5e')]['getCurrentRevisionId']();this[_0x28a2('0x55')]=this[_0x28a2('0xc3')][_0x28a2('0x5')](_0x3cf874),this[_0x28a2('0x55')]||(this['currentRevision']=this['_makeRevision']({'from':_0x4b13be,'to':_0x4b13be,'id':_0x3cf874,'name':'','creatorId':null}));}[_0x28a2('0x9a')]({name:_0xffc322,from:_0x54633a,to:_0xf3b809,creatorId:_0xcadce6,id:_0x330098}){const _0x280558=this[_0x28a2('0xb9')]({'from':_0x54633a,'to':_0xf3b809});_0x280558['name']=_0xffc322,_0x280558['creatorId']=_0xcadce6,_0x280558['id']=_0x330098;const _0x4967fa=this[_0x28a2('0x1f')](_0x280558);return this[_0x28a2('0x8b')]&&this[_0x28a2('0x9e')](_0x280558['id'],_0x280558,!0x0),_0x4967fa;}[_0x28a2('0xbd')](){this[_0x28a2('0xe6')][_0x28a2('0x81')]['for']('dataDowncast')[_0x28a2('0x1b')]({'model':_0x28a2('0x9d')});}[_0x28a2('0xb2')](_0x13cef7){return(_0x13cef7=_0x13cef7[_0x28a2('0xf2')](_0x3605c1=>!_0x3605c1[_0x28a2('0x46')]||_0x28a2('0x97')!==_0x3605c1['name']&&_0x28a2('0x56')!==_0x3605c1[_0x28a2('0x46')]))[_0x28a2('0xf0')](_0x48f77c=>{_0x28a2('0xc9')!=typeof _0x48f77c&&(_0x48f77c['children']=this['_removeRevisionMarkers'](_0x48f77c['children']),_0x48f77c[_0x28a2('0xbf')]=_0x48f77c['attributes']['filter'](_0x42c013=>!_0x42c013[0x0][_0x28a2('0x49')]('data-revision-')));}),_0x13cef7;}}function J(_0x3782f0,_0x2cf899){const _0x2ae884=_0x2cf899[_0x28a2('0x42')][_0x28a2('0x60')][_0x28a2('0x14')];if(_0x28a2('0xc9')==typeof _0x3782f0)return new _0x175c36(_0x2ae884,_0x3782f0);{const _0x58a9e=_0x3782f0[_0x28a2('0x19')]['map'](_0x486d4f=>J(_0x486d4f,_0x2cf899));return new(B[_0x3782f0[(_0x28a2('0x32'))]]||_0x5777b2)(_0x2ae884,_0x3782f0[_0x28a2('0x46')],_0x3782f0[_0x28a2('0xbf')],_0x58a9e);}}class H{constructor(_0x1a83d8){this[_0x28a2('0xe6')]=_0x1a83d8,this[_0x28a2('0xa3')]=new Map(),this['_lastFrom']=-0x1,this[_0x28a2('0x15')]=-0x1,this[_0x28a2('0x9c')]=new Map(),this[_0x28a2('0x6e')]=new Map(),this[_0x28a2('0x50')]=new Map(),this[_0x28a2('0x4')]=new Map(),this[_0x28a2('0x82')]=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this['_touched']=new Map(),this[_0x28a2('0x6f')]=new Map(),this[_0x28a2('0xf7')]=new Map(),this[_0x28a2('0xca')]=0x1;}[_0x28a2('0x7a')](_0x3f27c4){this['source']=_0x3f27c4;const _0xbd72f=new Map(),_0x258d35=new Map(),_0x4230ce=this[_0x28a2('0xe6')][_0x28a2('0xb')][_0x28a2('0x14')][_0x28a2('0xa5')]['map'](_0x18e2d8=>_0x18e2d8[_0x28a2('0xd7')]);for(const _0x4feef5 of _0x4230ce){const _0x2c4c9b=this[_0x28a2('0xe6')][_0x28a2('0xb')][_0x28a2('0x14')][_0x28a2('0xab')](_0x4feef5),_0xfdf515=q(_0x2c4c9b);_0xbd72f[_0x28a2('0x9b')](_0x4feef5,_0xfdf515),_0x258d35[_0x28a2('0x9b')](_0x4feef5,Object[_0x28a2('0x1a')](_0x2c4c9b[_0x28a2('0x45')]()));}const _0xa4581e=Array[_0x28a2('0xfb')](this[_0x28a2('0xe6')][_0x28a2('0xb')][_0x28a2('0xf8')])['map'](_0x5cbbfd=>[_0x5cbbfd['name'],_0x5cbbfd[_0x28a2('0x7f')]()]),_0xb36784=this[_0x28a2('0xfc')]['version'];this[_0x28a2('0xa6')](_0xb36784,_0xbd72f,_0xa4581e,_0x258d35),this[_0x28a2('0x8f')]=this['_revisionId'];const _0x308fe2=new Map(),_0x45ef6c=new Map();for(const _0x7e4166 of _0x4230ce){const _0xa309fb=G(_0x7e4166);_0x308fe2[_0x28a2('0x9b')](_0x7e4166,_0xa309fb),_0x45ef6c[_0x28a2('0x9b')](_0x7e4166,{});}this[_0x28a2('0xa6')](Number[_0x28a2('0xc')],_0x308fe2,[],_0x45ef6c);}[_0x28a2('0xd3')](_0x4de931,_0x39e22f){if(this[_0x28a2('0xae')]===_0x4de931&&this['_lastTo']<=_0x39e22f)this[_0x28a2('0xa3')]['size']>0x1&&this['_removeMetaData'](this[_0x28a2('0x15')]),this[_0x28a2('0x13')](this[_0x28a2('0x15')],_0x39e22f,!0x0);else{if(!this[_0x28a2('0xa3')]['has'](_0x4de931)){const _0x1d4f04=this[_0x28a2('0x23')](_0x4de931);this['_calculateMetaData'](_0x1d4f04,_0x4de931,!0x1);}this[_0x28a2('0x78')](_0x4de931,_0x39e22f,!0x0);}return this[_0x28a2('0xae')]=_0x4de931,this[_0x28a2('0x15')]=_0x39e22f,this[_0x28a2('0x58')]();}[_0x28a2('0xb8')](_0x525fd5){this[_0x28a2('0x71')](),this[_0x28a2('0xae')]=_0x525fd5[_0x28a2('0xa1')],this[_0x28a2('0x15')]=_0x525fd5[_0x28a2('0x1c')];for(const _0x5a9b58 in _0x525fd5[_0x28a2('0x25')]){const _0x3a9e71=_0x525fd5[_0x28a2('0x25')][_0x5a9b58][_0x28a2('0x80')],_0x1f232c=_0x29ed97(_0x525fd5['diffData'][_0x5a9b58][_0x28a2('0x28')])||{},_0x35038b=this['_makeModelFromViewString'](_0x525fd5[_0x28a2('0x25')][_0x5a9b58][_0x28a2('0x74')]);_0x35038b[_0x28a2('0xd7')]=_0x5a9b58,_0x35038b[_0x28a2('0x31')]=!_0x3a9e71||!_0x3a9e71['isAttached'],_0x35038b[_0x28a2('0x6a')]=()=>_0x35038b[_0x28a2('0x31')],this['_baseRoots'][_0x28a2('0x9b')](_0x5a9b58,_0x35038b),this['_baseRootsAttributes'][_0x28a2('0x9b')](_0x5a9b58,_0x1f232c),_0x3a9e71&&this[_0x28a2('0xf7')][_0x28a2('0x9b')](_0x5a9b58,_0x3a9e71);const _0xb7889a=this[_0x28a2('0x4b')](_0x35038b);this['_baseIdsRoots'][_0x28a2('0x9b')](_0x5a9b58,_0xb7889a);for(const [_0x450d0c,_0x4e486c]of _0x35038b['markers']){if(!_0x450d0c[_0x28a2('0x49')]('revision:'))continue;const _0x14bb77=_0x450d0c[_0x28a2('0x4c')](':')[0x2];for(const _0x285f04 of _0x4e486c[_0x28a2('0x12')]({'singleCharacters':!0x0})){const _0x4c311d=this['_getVidAttributeName'](_0x285f04),_0x2af4e5=_0x28a2('0xd')==_0x285f04[_0x28a2('0x32')]?_0x285f04[_0x28a2('0x3e')][_0x28a2('0x36')]['slice'](0x0,-0x1):_0x285f04[_0x28a2('0x3e')][_0x28a2('0x36')],_0x10e2c8=_0xb7889a[_0x28a2('0x77')](_0x2af4e5)[_0x28a2('0x92')](_0x4c311d);this[_0x28a2('0xb4')]['set'](_0x10e2c8,{'userId':_0x14bb77});}}}this['_startingRevisionId']=this[_0x28a2('0xca')];const _0x5ea213=[...Array(this[_0x28a2('0xca')])[_0x28a2('0x89')]()][_0x28a2('0xee')](0x1)['filter'](_0x588874=>!this['_touched']['has'](_0x588874));let _0x5f3858=0x0;const _0x462af1=new Map();for(const _0xea4e1f in _0x525fd5[_0x28a2('0x25')]){const _0x16b1f7=_0x525fd5[_0x28a2('0x25')][_0xea4e1f][_0x28a2('0x80')],_0x3dd438=_0x29ed97(_0x525fd5[_0x28a2('0x25')][_0xea4e1f]['attributesAfter'])||{},_0x2308af=this[_0x28a2('0x3d')](_0x525fd5[_0x28a2('0x25')][_0xea4e1f][_0x28a2('0xed')]);_0x2308af[_0x28a2('0xd7')]=_0xea4e1f,_0x2308af[_0x28a2('0x31')]=!_0x16b1f7||_0x16b1f7[_0x28a2('0x6a')],_0x2308af[_0x28a2('0x6a')]=()=>_0x2308af['_isAttached'],this[_0x28a2('0x6e')]['set'](_0xea4e1f,_0x2308af),this[_0x28a2('0x50')]['set'](_0xea4e1f,_0x3dd438);const _0x2350ce=this[_0x28a2('0x4b')](_0x2308af,Number[_0x28a2('0xc')]);this['_idsRoots'][_0x28a2('0x9b')](_0xea4e1f,_0x2350ce),_0x462af1[_0x28a2('0x9b')](_0xea4e1f,_0x2308af[_0x28a2('0x6a')]()?_0x3dd438:{});for(const [_0x56e234,_0x30647e]of _0x2308af[_0x28a2('0xf8')]){if(!_0x56e234[_0x28a2('0x49')](_0x28a2('0xc4')))continue;const _0x54ddf7=_0x56e234[_0x28a2('0x4c')](':')[0x2];for(const _0x175b8d of _0x30647e['getWalker']({'singleCharacters':!0x0})){const _0x4aa3cd=this['_getVidAttributeName'](_0x175b8d),_0x30081a=this[_0x28a2('0xca')]++,_0x4c5b64=_0x28a2('0xd')==_0x175b8d['type']?_0x175b8d[_0x28a2('0x3e')][_0x28a2('0x36')][_0x28a2('0xee')](0x0,-0x1):_0x175b8d[_0x28a2('0x3e')][_0x28a2('0x36')];_0x2350ce[_0x28a2('0x77')](_0x4c5b64)[_0x28a2('0x54')](_0x4aa3cd,_0x30081a),this[_0x28a2('0xb4')][_0x28a2('0x9b')](_0x30081a,{'userId':_0x54ddf7});}}for(const _0x412f6a of this[_0x28a2('0xe6')][_0x28a2('0xb')][_0x28a2('0xe')](_0x2308af)['getWalker']({'singleCharacters':!0x0})){const _0x206dc1=this['_getVidAttributeName'](_0x412f6a),_0xe1d509=_0x28a2('0xd')==_0x412f6a['type']?_0x412f6a[_0x28a2('0x3e')]['path'][_0x28a2('0xee')](0x0,-0x1):_0x412f6a['previousPosition'][_0x28a2('0x36')],_0x464981=_0x2350ce[_0x28a2('0x77')](_0xe1d509);_0x464981[_0x28a2('0x92')](_0x206dc1)>0x0||_0x464981[_0x28a2('0x54')](_0x206dc1,_0x5ea213[_0x5f3858++]);}for(const [_0x4e9d2c,_0x135b47]of _0x2308af[_0x28a2('0xf8')])_0x4e9d2c[_0x28a2('0x49')](_0x28a2('0xc4'))||this[_0x28a2('0x9c')]['set'](_0x4e9d2c,_0x135b47);}const _0x460869=G(_0x28a2('0x7b'));this[_0x28a2('0x4')][_0x28a2('0x9b')](_0x28a2('0x7b'),_0x460869),this[_0x28a2('0x5f')][_0x28a2('0x9b')]('$graveyard',this['_makeIdsRoot'](_0x460869,0x1));const _0x1d3659=G('$graveyard');this[_0x28a2('0x6e')][_0x28a2('0x9b')]('$graveyard',_0x1d3659),this[_0x28a2('0xdc')][_0x28a2('0x9b')](_0x28a2('0x7b'),this[_0x28a2('0x4b')](_0x1d3659,0x1));const _0x2227c1=Array[_0x28a2('0xfb')](this['_diffRoots'])['map'](([_0x40625d,_0x39643b])=>[_0x40625d,q(_0x39643b)]);this[_0x28a2('0xa6')](this['_lastTo'],_0x2227c1,this[_0x28a2('0x9c')],_0x462af1);}[_0x28a2('0x3d')](_0x124f6f){const _0x439556=JSON[_0x28a2('0xfd')](_0x124f6f),_0x55ba2b=this[_0x28a2('0xe6')]['editing'][_0x28a2('0x60')][_0x28a2('0x14')],_0x5b0734=new _0x2ed0a2(_0x55ba2b,_0x439556[_0x28a2('0x70')](_0x44577b=>J(_0x44577b,this[_0x28a2('0xe6')])));return this[_0x28a2('0xe6')][_0x28a2('0xd8')][_0x28a2('0x8')](_0x5b0734);}[_0x28a2('0xa6')](_0x1ed5f9,_0x4739be,_0x12c2f4,_0x21bf0c){const _0x2fedac=new Map(_0x4739be),_0x12e32b=new Map(_0x29ed97(_0x21bf0c)),_0x46583b=new Map();for(const [_0x7e9c2c,_0xee892b]of _0x12c2f4)_0x46583b[_0x28a2('0x9b')](_0x7e9c2c,{'start':_0xee892b[_0x28a2('0xb7')][_0x28a2('0xde')](),'end':_0xee892b['end'][_0x28a2('0xde')](),'rootName':_0xee892b[_0x28a2('0x5a')]['rootName']});this['_savedMetaData'][_0x28a2('0x9b')](_0x1ed5f9,{'roots':_0x2fedac,'markers':_0x46583b,'rootsAttributes':_0x12e32b});}['_removeMetaData'](_0x2a4edd){this[_0x28a2('0xa3')][_0x28a2('0x3b')](_0x2a4edd);}[_0x28a2('0xa4')](){this['_reset'](),this[_0x28a2('0xae')]=-0x1,this[_0x28a2('0x15')]=-0x1,this[_0x28a2('0xa3')][_0x28a2('0x2f')](),this[_0x28a2('0x7a')](this[_0x28a2('0xfc')]);}[_0x28a2('0x71')](){this[_0x28a2('0xb4')][_0x28a2('0x2f')](),this['_touchedMarkers'][_0x28a2('0x2f')](),this['_touchedRoots'][_0x28a2('0x2f')](),this['_diffRoots'][_0x28a2('0x2f')](),this[_0x28a2('0x50')][_0x28a2('0x2f')](),this[_0x28a2('0x4')]['clear'](),this[_0x28a2('0x82')][_0x28a2('0x2f')](),this[_0x28a2('0xdc')][_0x28a2('0x2f')](),this[_0x28a2('0x5f')][_0x28a2('0x2f')](),this[_0x28a2('0x9c')][_0x28a2('0x2f')](),this['_revisionId']=0x1,this[_0x28a2('0x8f')]=this[_0x28a2('0xca')];}[_0x28a2('0x4b')](_0x831d91,_0x51f6ec=null){let _0x134873=null;_0x831d91['is'](_0x28a2('0x6b'))||(_0x134873=new _0x2b9992(_0x831d91[_0x28a2('0x46')],{'vid_start':null===_0x51f6ec?this[_0x28a2('0xca')]++:_0x51f6ec++}));const _0x3bbffd=[];for(const _0x40cce2 of _0x831d91['getChildren']())if(_0x40cce2['is']('element')){_0x3bbffd[_0x28a2('0x68')](this[_0x28a2('0x4b')](_0x40cce2,_0x51f6ec));const _0x41d81b=_0x3bbffd[_0x3bbffd[_0x28a2('0x8c')]-0x1];null!==_0x51f6ec&&(_0x51f6ec=_0x41d81b['is'](_0x28a2('0xf3'),_0x28a2('0xcd'))?_0x41d81b[_0x28a2('0x92')](_0x28a2('0x11'))+0x1:_0x41d81b[_0x28a2('0x92')](_0x28a2('0x95'))+0x1);}else for(let _0x34d6e3=0x0;_0x34d6e3<_0x40cce2['offsetSize'];_0x34d6e3++)_0x3bbffd[_0x28a2('0x68')](new _0x2b9992('$text',{'vid':null===_0x51f6ec?this['_revisionId']++:_0x51f6ec++}));if(_0x831d91['is']('documentFragment')){const _0x53125b=G(_0x831d91[_0x28a2('0xd7')]);return _0x53125b['_insertChild'](0x0,_0x3bbffd),_0x53125b;}return _0x134873['_setAttribute'](_0x28a2('0x95'),null===_0x51f6ec?this['_revisionId']++:_0x51f6ec++),_0x134873[_0x28a2('0xe3')](0x0,_0x3bbffd),_0x134873;}[_0x28a2('0x78')](_0x3dabef,_0x26d1ab,_0x7b33a0){this[_0x28a2('0x71')]();const {roots:_0x435f4c,markers:_0xa929b2,rootsAttributes:_0x2c8567}=this[_0x28a2('0xa3')]['get'](_0x3dabef);this[_0x28a2('0x4')]=new Map(_0x435f4c),this[_0x28a2('0x82')]=new Map(_0x29ed97(_0x2c8567));for(const [_0x2bedf5,_0x5e648b]of this[_0x28a2('0x4')])if(_0x28a2('0x7b')!==_0x2bedf5&&(this[_0x28a2('0x6e')]['set'](_0x2bedf5,q(_0x5e648b)),this[_0x28a2('0x50')]=new Map(_0x29ed97(_0x2c8567)),_0x7b33a0)){const _0x363d19=this[_0x28a2('0xca')];this[_0x28a2('0xdc')]['set'](_0x2bedf5,this['_makeIdsRoot'](_0x5e648b)),this[_0x28a2('0x5f')][_0x28a2('0x9b')](_0x2bedf5,this[_0x28a2('0x4b')](_0x5e648b,_0x363d19));}this[_0x28a2('0x8f')]=this[_0x28a2('0xca')],this[_0x28a2('0x6e')][_0x28a2('0x9b')](_0x28a2('0x7b'),q(this[_0x28a2('0x4')][_0x28a2('0x3c')]('$graveyard'))),_0x7b33a0&&this[_0x28a2('0xdc')]['set'](_0x28a2('0x7b'),this[_0x28a2('0x4b')](this['_baseRoots'][_0x28a2('0x3c')](_0x28a2('0x7b'))));for(const [_0xb14d98,_0x2e4734]of _0xa929b2){const _0x21f925=this[_0x28a2('0x4')]['get'](_0x2e4734[_0x28a2('0xd7')]),_0x4f63ca=this['_diffRoots'][_0x28a2('0x3c')](_0x2e4734[_0x28a2('0xd7')]),_0x493071=new _0x51c84c(this[_0x28a2('0xc8')](_0x2e4734[_0x28a2('0xb7')],_0x21f925),this[_0x28a2('0xc8')](_0x2e4734['end'],_0x21f925)),_0x38c241=this[_0x28a2('0x9')](_0x493071,_0x4f63ca);_0x21f925['markers'][_0x28a2('0x9b')](_0xb14d98,_0x493071),this[_0x28a2('0x9c')][_0x28a2('0x9b')](_0xb14d98,_0x38c241);}this[_0x28a2('0x13')](_0x3dabef,_0x26d1ab,_0x7b33a0);}[_0x28a2('0x13')](_0x17ff93,_0x5e5a9d,_0x2504c9){for(const _0xa8afac of this[_0x28a2('0xfc')]['getOperations'](_0x17ff93,_0x5e5a9d))this[_0x28a2('0xf5')](_0xa8afac,_0x2504c9);for(const _0x45b9c6 of this[_0x28a2('0x6e')][_0x28a2('0xd9')]())_0x45b9c6['markers'][_0x28a2('0x2f')]();for(const [_0x46097c,_0x55c90b]of this[_0x28a2('0x9c')]){this['_diffRoots']['get'](_0x55c90b[_0x28a2('0x5a')][_0x28a2('0xd7')])[_0x28a2('0xf8')][_0x28a2('0x9b')](_0x46097c,_0x55c90b['clone']());}const _0xa9e02d=new Map(),_0x559de9=new Map();for(const [_0x2ad656,_0x5547d4]of this[_0x28a2('0x6e')])_0xa9e02d[_0x28a2('0x9b')](_0x2ad656,q(_0x5547d4)),_0x559de9[_0x28a2('0x9b')](_0x2ad656,this[_0x28a2('0x50')][_0x28a2('0x3c')](_0x2ad656));this['_saveMetaData'](_0x5e5a9d,_0xa9e02d,this[_0x28a2('0x9c')],_0x559de9);}[_0x28a2('0x23')](_0x26bbc6){const _0x4ed57f=Array[_0x28a2('0xfb')](this[_0x28a2('0xa3')]['keys']());_0x4ed57f['sort']((_0x239d64,_0x30f49b)=>_0x239d64-_0x30f49b),_0x4ed57f['reverse']();for(const _0x390b7b of _0x4ed57f)if(_0x390b7b<_0x26bbc6)return _0x390b7b;return Number[_0x28a2('0xc')];}[_0x28a2('0x27')](_0x54caac,_0x3337cc){const _0x5d953c=Array[_0x28a2('0xfb')](_0x3337cc[_0x28a2('0xf8')])[_0x28a2('0x70')](([_0x49cd5e,_0xe43618])=>[_0x49cd5e,this[_0x28a2('0x9')](_0xe43618,_0x54caac)]);_0x54caac['markers']=new Map(_0x5d953c);}[_0x28a2('0xd2')](_0x112cdd){for(const _0x275f06 of this[_0x28a2('0x9c')][_0x28a2('0xd9')]()){const _0x45b6e0=_0x275f06['getTransformedByOperation'](_0x112cdd),_0x4edb93=_0x51c84c['_createFromRanges'](_0x45b6e0);_0x275f06[_0x28a2('0xb7')]=_0x4edb93[_0x28a2('0xb7')],_0x275f06['end']=_0x4edb93[_0x28a2('0xbe')];}}['_handleOperation'](_0x2f6566,_0x194d93){if(_0x28a2('0xc0')==_0x2f6566['type']||_0x28a2('0xff')==_0x2f6566[_0x28a2('0x32')])return void this[_0x28a2('0x52')](_0x2f6566,_0x194d93);if(_0x28a2('0x18')==_0x2f6566[_0x28a2('0x32')]){const _0x55b7d4=_0x2f6566['position'][_0x28a2('0x5a')][_0x28a2('0xd7')];this[_0x28a2('0x6e')][_0x28a2('0x3f')](_0x55b7d4)||(this['_diffRoots'][_0x28a2('0x9b')](_0x55b7d4,G(_0x55b7d4,!0x0)),this[_0x28a2('0x50')]['set'](_0x55b7d4,{}),_0x194d93&&this[_0x28a2('0xdc')][_0x28a2('0x9b')](_0x55b7d4,G(_0x55b7d4,!0x0)));}else{if(_0x28a2('0xc7')==_0x2f6566[_0x28a2('0x32')]||_0x28a2('0xfe')==_0x2f6566[_0x28a2('0x32')]||'changeRootAttribute'==_0x2f6566[_0x28a2('0x32')])return void this[_0x28a2('0x6')](_0x2f6566);}const _0x3fd2c=this[_0x28a2('0xb6')](_0x2f6566,this[_0x28a2('0x6e')]);if('marker'!==_0x2f6566[_0x28a2('0x32')]&&(_0x3fd2c['_execute'](),this[_0x28a2('0xd2')](_0x3fd2c)),_0x194d93)switch(_0x3fd2c[_0x28a2('0x32')]){case _0x28a2('0x18'):this[_0x28a2('0x90')](_0x2f6566);break;case _0x28a2('0x4d'):case _0x28a2('0x8d'):case _0x28a2('0x62'):this[_0x28a2('0x1e')](_0x2f6566);break;case _0x28a2('0xc1'):this[_0x28a2('0xcb')](_0x2f6566);break;case _0x28a2('0x4c'):this[_0x28a2('0xc5')](_0x2f6566);break;case _0x28a2('0x2e'):this[_0x28a2('0x9f')](_0x2f6566);}}[_0x28a2('0xb6')](_0x48e268,_0x37c0b7){const _0x136833=_0x48e268[_0x28a2('0xde')]();return _0x136833[_0x28a2('0xd6')]=_0x48e268['_authorId'],this['_fixOperation'](_0x136833,_0x37c0b7),_0x136833;}[_0x28a2('0x7c')](_0x18ad39){return _0x18ad39[_0x28a2('0x70')](_0x270cee=>{const _0x27af04=this[_0x28a2('0x37')](_0x270cee);return Number(_0x270cee[_0x28a2('0x5d')][_0x28a2('0x92')](_0x27af04));});}[_0x28a2('0xe8')](_0x166bd8,_0x5735ec){if(_0x166bd8['is'](_0x28a2('0xf3'),'$text'))_0x5735ec[_0x28a2('0x68')]({'item':_0x166bd8,'type':'text'});else{_0x166bd8['is']('element')&&_0x5735ec['push']({'item':_0x166bd8,'type':_0x28a2('0xf1')});for(const _0x45d429 of _0x166bd8[_0x28a2('0x1')]())this[_0x28a2('0xe8')](_0x45d429,_0x5735ec);_0x166bd8['is'](_0x28a2('0xf3'))&&_0x5735ec['push']({'item':_0x166bd8,'type':_0x28a2('0xd')});}return _0x5735ec;}[_0x28a2('0x58')](){const _0x11e87a=new Map(this[_0x28a2('0xb4')]),_0x3449f3=new Map(_0x11e87a),_0xba4c19=new Map(),_0x5907eb={'insertions':{},'deletions':{}},_0x1422af={'insertions':{},'deletions':{}},_0x59ce30=new Map(),_0x4ffac4=new Set([...this['_baseRoots'][_0x28a2('0x89')](),...this[_0x28a2('0x6e')][_0x28a2('0x89')]()]);_0x4ffac4[_0x28a2('0x3b')](_0x28a2('0x7b'));for(const _0xfd89fd of _0x4ffac4){const _0x296a14=this['_diffRoots'][_0x28a2('0x3c')](_0xfd89fd)||G(_0xfd89fd,!0x1),_0xc38c44=this[_0x28a2('0x4')][_0x28a2('0x3c')](_0xfd89fd)||G(_0xfd89fd,!0x1);_0x296a14[_0x28a2('0x6a')]()||_0xc38c44['isAttached']()?(_0x5907eb[_0x28a2('0xed')][_0xfd89fd]=q(_0x296a14),_0x5907eb[_0x28a2('0x74')][_0xfd89fd]=q(_0xc38c44),this[_0x28a2('0x27')](_0x5907eb[_0x28a2('0x74')][_0xfd89fd],_0xc38c44),this['_copyMarkers'](_0x5907eb['insertions'][_0xfd89fd],_0x296a14),_0x1422af['insertions'][_0xfd89fd]=this[_0x28a2('0xe8')](this[_0x28a2('0xdc')][_0x28a2('0x3c')](_0xfd89fd),[]),_0x1422af[_0x28a2('0x74')][_0xfd89fd]=this[_0x28a2('0xe8')](this[_0x28a2('0x5f')][_0x28a2('0x3c')](_0xfd89fd)||G(_0xfd89fd,!0x1),[])):_0x4ffac4[_0x28a2('0x3b')](_0xfd89fd);}for(const _0x389cd0 of _0x4ffac4){const _0x3587e2=_0x1422af[_0x28a2('0xed')][_0x389cd0];for(const _0x4b89a6 of _0x3587e2){const _0x4e5d89=this[_0x28a2('0x37')](_0x4b89a6),_0x2083c3=_0x4b89a6[_0x28a2('0x5d')][_0x28a2('0x92')](_0x4e5d89);_0x3449f3[_0x28a2('0x3b')](_0x2083c3),_0x2083c3>=this[_0x28a2('0x8f')]&&_0xba4c19['set'](_0x2083c3,_0x11e87a['get'](_0x2083c3));}}for(const _0x5ca3c6 of _0x4ffac4){const _0x31b626=_0x1422af[_0x28a2('0xed')][_0x5ca3c6],_0x344d9c=this[_0x28a2('0x7c')](_0x1422af[_0x28a2('0x74')][_0x5ca3c6]);let _0xc437bb=0x0;for(const _0x18e646 of _0x31b626){const _0x1e163a=this[_0x28a2('0x37')](_0x18e646),_0x3f72dd=_0x18e646['item'][_0x28a2('0x92')](_0x1e163a);if(!_0xba4c19[_0x28a2('0x3f')](_0x3f72dd)&&!_0x59ce30[_0x28a2('0x3f')](_0x3f72dd)){if(_0x3449f3[_0x28a2('0x3f')](_0x3f72dd))_0xc437bb++;else{if(_0x3f72dd!=_0x344d9c[_0xc437bb]){const _0x257e4e=_0x11e87a[_0x28a2('0x3c')](_0x3f72dd)||_0x11e87a[_0x28a2('0x3c')](_0x344d9c[_0xc437bb]);for(;_0x3f72dd!=_0x344d9c[_0xc437bb];)_0x3449f3['has'](_0x344d9c[_0xc437bb])||(_0x59ce30['set'](_0x344d9c[_0xc437bb],_0x257e4e),_0x11e87a[_0x28a2('0x9b')](_0x344d9c[_0xc437bb],_0x257e4e)),_0xc437bb++;}_0xc437bb++;}}}}for(const _0x3053db of _0x4ffac4){const _0x55b801=_0x1422af['insertions'][_0x3053db];for(const _0x2a8683 of _0x55b801){const _0x3058d3=this[_0x28a2('0x37')](_0x2a8683),_0x479a33=_0x2a8683[_0x28a2('0x5d')][_0x28a2('0x92')](_0x3058d3);if(_0x59ce30[_0x28a2('0x3f')](_0x479a33)){const _0x2ede9e=_0x59ce30['get'](_0x479a33);_0x3449f3['has'](_0x479a33)||_0x3449f3[_0x28a2('0x9b')](_0x479a33,{..._0x2ede9e}),_0xba4c19[_0x28a2('0x9b')](_0x479a33,{..._0x2ede9e});}}}for(const _0xac6548 of _0x3449f3[_0x28a2('0x89')]())_0xac6548>=this[_0x28a2('0x8f')]&&_0x3449f3[_0x28a2('0x3b')](_0xac6548);const _0x459e4d=new Map();for(const _0x53dc0f of _0x4ffac4){let _0x54d4e6=_0x1422af[_0x28a2('0xed')][_0x53dc0f];for(const _0xb99478 of _0x54d4e6)if(_0xb99478['item']['is'](_0x28a2('0xf3'),_0x28a2('0xf4'))){const _0x230d22=this[_0x28a2('0x37')](_0xb99478),_0x1f7e94=_0xb99478[_0x28a2('0x5d')][_0x28a2('0x92')](_0x230d22);if(_0xba4c19[_0x28a2('0x3f')](_0x1f7e94)){const _0x299768=_0xb99478[_0x28a2('0x5d')]['parent'][_0x28a2('0x66')]['getAttribute'](_0x28a2('0x72')),_0x1072fb=_0x459e4d[_0x28a2('0x3c')](_0x299768)||new Set();_0x1072fb[_0x28a2('0x83')](_0xba4c19[_0x28a2('0x3c')](_0x1f7e94)[_0x28a2('0xa2')]),_0x459e4d[_0x28a2('0x9b')](_0x299768,_0x1072fb);}}_0x54d4e6=_0x1422af[_0x28a2('0x74')][_0x53dc0f];for(const _0x13c026 of _0x54d4e6)if(_0x13c026[_0x28a2('0x5d')]['is'](_0x28a2('0xf3'),_0x28a2('0xf4'))){const _0xf9bfa7=this[_0x28a2('0x37')](_0x13c026),_0x4e79b4=_0x13c026[_0x28a2('0x5d')][_0x28a2('0x92')](_0xf9bfa7);if(_0x3449f3['has'](_0x4e79b4)){const _0x90e045=_0x13c026[_0x28a2('0x5d')][_0x28a2('0x66')][_0x28a2('0x66')]['getAttribute'](_0x28a2('0x72')),_0x4eed4b=_0x459e4d[_0x28a2('0x3c')](_0x90e045)||new Set();_0x4eed4b[_0x28a2('0x83')](_0x3449f3[_0x28a2('0x3c')](_0x4e79b4)[_0x28a2('0xa2')]),_0x459e4d[_0x28a2('0x9b')](_0x90e045,_0x4eed4b);}}for(const _0x366c14 of _0x459e4d[_0x28a2('0x89')]())(_0xba4c19['has'](_0x366c14)||_0x3449f3[_0x28a2('0x3f')](_0x366c14))&&_0x459e4d[_0x28a2('0x3b')](_0x366c14);}for(const _0xb81832 of _0x4ffac4){const _0x5c9e93=_0x1422af['insertions'][_0xb81832];let _0x546721=null,_0x5901d4=null;for(const _0x5162c6 of _0x5c9e93){const _0x1d317=this[_0x28a2('0x37')](_0x5162c6),_0x56d74f=_0x5162c6[_0x28a2('0x5d')][_0x28a2('0x92')](_0x1d317),_0x4c7199=_0x459e4d[_0x28a2('0x3c')](_0x56d74f);_0x4c7199&&'elementStart'==_0x5162c6[_0x28a2('0x32')]&&(_0x546721=Array[_0x28a2('0xfb')](_0x4c7199)[0x0],_0x5901d4=_0x5162c6[_0x28a2('0x5d')][_0x28a2('0x92')](_0x28a2('0x95'))),_0x546721&&(_0x3449f3[_0x28a2('0x9b')](_0x56d74f,{'userId':_0x546721}),_0xba4c19[_0x28a2('0x9b')](_0x56d74f,{'userId':_0x546721})),_0x56d74f==_0x5901d4&&(_0x546721=null,_0x5901d4=null);}}const _0x1dcb06={},_0x49bce7=new Set();for(const _0x146270 of _0x4ffac4){const _0x54c34b=_0x5907eb[_0x28a2('0x74')][_0x146270],_0x33c3a2=_0x5907eb[_0x28a2('0xed')][_0x146270];for(const {userId:_0x4b7441}of this[_0x28a2('0x6f')][_0x28a2('0xd9')]())null!==_0x4b7441&&_0x49bce7[_0x28a2('0x83')](_0x4b7441);for(const {userId:_0x2a08c7}of this[_0x28a2('0xf7')][_0x28a2('0xd9')]())null!==_0x2a08c7&&_0x49bce7[_0x28a2('0x83')](_0x2a08c7);this[_0x28a2('0xce')](_0x33c3a2,_0x1422af[_0x28a2('0xed')][_0x146270],_0xba4c19,_0x28a2('0xf9'),_0x49bce7),this['_markChanges'](_0x54c34b,_0x1422af['deletions'][_0x146270],_0x3449f3,_0x28a2('0xcf'),_0x49bce7),_0x1dcb06[_0x146270]={'insertions':this['_prepareViewToSave'](_0x33c3a2),'deletions':this[_0x28a2('0xbb')](_0x54c34b),'attachChange':this[_0x28a2('0xf7')][_0x28a2('0x3c')](_0x146270)||null,'attributesBefore':_0x29ed97(this[_0x28a2('0x82')][_0x28a2('0x3c')](_0x146270))||{},'attributesAfter':_0x29ed97(this[_0x28a2('0x50')]['get'](_0x146270))};}return{'diffData':_0x1dcb06,'authorsIds':Array[_0x28a2('0xfb')](_0x49bce7)};}[_0x28a2('0xe2')](_0x5755ee){for(const [,_0x1769e7]of _0x5755ee['markers']){const _0x903b27=_0x1769e7[_0x28a2('0xb7')]['getAncestors']()[_0x28a2('0xf2')](_0x502836=>_0x28a2('0xf4')==_0x502836[_0x28a2('0x46')]);for(const _0x3eddb7 of _0x903b27)0x1==_0x3eddb7['childCount']&&_0x3eddb7['getChild'](0x0)['is'](_0x28a2('0xf3'),_0x28a2('0xdd'))&&_0x3eddb7[_0x28a2('0x69')](0x0)['_setAttribute'](_0x28a2('0x43'),!0x0);}}[_0x28a2('0xbb')](_0x5a48a6){this[_0x28a2('0xe2')](_0x5a48a6);const _0x53fc1d=this[_0x28a2('0xe6')]['data']['toView'](_0x5a48a6,{}),_0xca0fb=Array[_0x28a2('0xfb')](_0x53fc1d[_0x28a2('0x1')]())[_0x28a2('0x70')](_0x5f4ce9=>this[_0x28a2('0xd4')](_0x5f4ce9));return JSON[_0x28a2('0x26')](_0xca0fb);}[_0x28a2('0xd4')](_0xe309ae){if(_0xe309ae['is'](_0x28a2('0xcd')))return _0xe309ae[_0x28a2('0xd8')];{const _0x53f9ca=_0xe309ae;return{'type':Object[_0x28a2('0x89')](B)['find'](_0x330ad5=>_0xe309ae instanceof B[_0x330ad5]),'name':_0x53f9ca[_0x28a2('0x46')],'attributes':Array[_0x28a2('0xfb')](_0x53f9ca[_0x28a2('0x45')]()),'children':Array[_0x28a2('0xfb')](_0x53f9ca[_0x28a2('0x1')]())[_0x28a2('0x70')](_0x40cd80=>this[_0x28a2('0xd4')](_0x40cd80))};}}[_0x28a2('0xce')](_0x2ce67b,_0x33a8b0,_0x9b1f5f,_0x173e6c,_0x50c676){let _0xb14b5a=null,_0x186ed0=null,_0x4fe401=0x0;const _0x1c933b=this[_0x28a2('0xe6')]['model'];for(let _0xaff098=0x0;_0xaff098<_0x33a8b0[_0x28a2('0x8c')];_0xaff098++){const _0x3bbf80=this[_0x28a2('0x37')](_0x33a8b0[_0xaff098]),_0x4dd026=_0x33a8b0[_0xaff098][_0x28a2('0x5d')][_0x28a2('0x92')](_0x3bbf80),_0x4e734b=_0x9b1f5f['get'](_0x4dd026),_0x4c84d9=_0xaff098==_0x33a8b0['length']-0x1;(!_0xb14b5a&&_0x4e734b&&(_0xb14b5a=_0x4e734b,_0x186ed0=_0x33a8b0[_0xaff098]),_0xb14b5a&&(!_0x4e734b||_0x4e734b[_0x28a2('0xa2')]!=_0xb14b5a[_0x28a2('0xa2')]))&&(_0x2e05cf(_0x4e734b,L(_0x186ed0,_0x2ce67b,_0x1c933b),L(_0x33a8b0[_0xaff098],_0x2ce67b,_0x1c933b)),_0xb14b5a=_0x4e734b||null,_0x186ed0=_0x4e734b?_0x33a8b0[_0xaff098]:null),_0xb14b5a&&_0x4c84d9&&_0x2e05cf(_0x4e734b,L(_0x186ed0,_0x2ce67b,_0x1c933b),W(_0x33a8b0[_0xaff098],_0x2ce67b,_0x1c933b));}function _0x2e05cf(_0x44ac60,_0x2fe06e,_0x490abe){const _0x1dac59=_0xb14b5a[_0x28a2('0xa2')],_0x86f58e='revision:'+_0x173e6c+':'+_0x1dac59+':'+_0x4fe401++,_0x455ec3=_0x1c933b[_0x28a2('0xda')](_0x2fe06e,_0x490abe);_0x2ce67b[_0x28a2('0xf8')]['set'](_0x86f58e,_0x455ec3),null!==_0x1dac59&&_0x50c676['add'](_0x1dac59);}}[_0x28a2('0x37')](_0x1bdd47){switch(_0x1bdd47[_0x28a2('0x32')]){case _0x28a2('0xf1'):return _0x28a2('0x72');case'elementEnd':return _0x28a2('0x95');default:return'vid';}}['_fixOperation'](_0x55b317,_0x2d2504){_0x55b317[_0x28a2('0x22')]=null;for(const _0x541b2e in _0x55b317){const _0x26324f=_0x55b317[_0x541b2e];if(_0x26324f instanceof _0x31e047){const _0x178ca3=_0x2d2504[_0x28a2('0x3c')](_0x26324f[_0x28a2('0x5a')][_0x28a2('0xd7')]);_0x55b317[_0x541b2e]=this[_0x28a2('0xc8')](_0x26324f,_0x178ca3);}if(_0x26324f instanceof _0x51c84c){const _0xd0ead5=_0x2d2504[_0x28a2('0x3c')](_0x26324f['root'][_0x28a2('0xd7')]);_0x55b317[_0x541b2e]=this['_fixRange'](_0x26324f,_0xd0ead5);}'root'===_0x541b2e&&(_0x55b317[_0x28a2('0x5a')]=_0x2d2504['get'](_0x55b317[_0x28a2('0x5a')][_0x28a2('0xd7')]));}}[_0x28a2('0x9')](_0x162115,_0xa46513){return this[_0x28a2('0xe6')][_0x28a2('0xb')]['createRange'](this['_fixPosition'](_0x162115[_0x28a2('0xb7')],_0xa46513),this['_fixPosition'](_0x162115[_0x28a2('0xbe')],_0xa46513));}[_0x28a2('0xc8')](_0x472585,_0x186d80){return this[_0x28a2('0xe6')][_0x28a2('0xb')][_0x28a2('0xba')](_0x186d80,_0x472585['path'],_0x472585[_0x28a2('0x4e')]);}['_handleInsertOperation'](_0x1ae589){const _0x319008=this[_0x28a2('0xdc')][_0x28a2('0x3c')](_0x1ae589[_0x28a2('0x65')][_0x28a2('0x5a')][_0x28a2('0xd7')]),_0xc71cff=this[_0x28a2('0xc8')](_0x1ae589[_0x28a2('0x65')],_0x319008),_0x1bf6dc=null===_0x1ae589[_0x28a2('0xd6')]?null:_0x1ae589[_0x28a2('0xd6')]||this[_0x28a2('0xe6')][_0x28a2('0x1d')][_0x28a2('0x3c')](_0x28a2('0x75'))['me']['id'],_0x9c5516=_0xc71cff[_0x28a2('0x66')],_0x52c11b=this[_0x28a2('0xca')],_0x5e9ef1=[];for(const _0x15ee10 of _0x1ae589[_0x28a2('0x8e')])if(_0x15ee10['is']('element'))_0x5e9ef1[_0x28a2('0x68')](this[_0x28a2('0x4b')](_0x15ee10));else for(let _0x3e816f=0x0;_0x3e816f<_0x15ee10[_0x28a2('0x64')];_0x3e816f++)_0x5e9ef1['push'](new _0x2b9992(_0x28a2('0xcd'),{'vid':this[_0x28a2('0xca')]++}));const _0x121f03=this[_0x28a2('0xca')];for(let _0x1fc8e9=_0x52c11b;_0x1fc8e9<_0x121f03;_0x1fc8e9++)this[_0x28a2('0xb4')][_0x28a2('0x9b')](_0x1fc8e9,{'userId':_0x1bf6dc});_0x9c5516['_insertChild'](_0xc71cff[_0x28a2('0x39')],_0x5e9ef1);}[_0x28a2('0x1e')](_0x2e6d6d){(_0x2e6d6d=this['_cloneOperation'](_0x2e6d6d,this['_idsRoots']))['_execute']();const _0x4520c8=null===_0x2e6d6d[_0x28a2('0xd6')]?null:_0x2e6d6d[_0x28a2('0xd6')]||this[_0x28a2('0xe6')][_0x28a2('0x1d')][_0x28a2('0x3c')](_0x28a2('0x75'))['me']['id'],_0x50e8e4=_0x2e6d6d['getMovedRangeStart'](),_0x89ff46=_0x50e8e4[_0x28a2('0x66')],_0x4c8fd9=_0x50e8e4[_0x28a2('0x39')];!function _0x5c3ab1(_0x5bebf4,_0x21dcdd,_0x2883cc,_0x59c2f5){for(let _0x46b315=_0x2883cc;_0x46b315<_0x59c2f5;_0x46b315++){const _0x28d591=_0x21dcdd[_0x28a2('0x69')](_0x46b315);_0x28d591['is']('element',_0x28a2('0xcd'))?_0x5bebf4[_0x28a2('0x9b')](_0x28d591[_0x28a2('0x92')](_0x28a2('0x11')),{'userId':_0x4520c8}):(_0x5bebf4[_0x28a2('0x9b')](_0x28d591[_0x28a2('0x92')](_0x28a2('0x72')),{'userId':_0x4520c8}),_0x5c3ab1(_0x5bebf4,_0x28d591,0x0,_0x28d591['childCount']),_0x5bebf4[_0x28a2('0x9b')](_0x28d591[_0x28a2('0x92')](_0x28a2('0x95')),{'userId':_0x4520c8}));}}(this[_0x28a2('0xb4')],_0x89ff46,_0x4c8fd9,_0x4c8fd9+_0x2e6d6d[_0x28a2('0x34')]);}[_0x28a2('0xcb')](_0x3c2a69){const _0x3bd901=null===(_0x3c2a69=this[_0x28a2('0xb6')](_0x3c2a69,this[_0x28a2('0xdc')]))[_0x28a2('0xd6')]?null:_0x3c2a69['_authorId']||this['editor'][_0x28a2('0x1d')][_0x28a2('0x3c')](_0x28a2('0x75'))['me']['id'],_0xab1c17=_0x3c2a69['targetPosition'][_0x28a2('0x66')],_0x19bf24=_0x3c2a69[_0x28a2('0x61')][_0x28a2('0x66')],_0x5cf7f1=_0xab1c17['getAttribute'](_0x28a2('0x95')),_0x1c4faf=_0x19bf24['getAttribute'](_0x28a2('0x72'));_0xab1c17[_0x28a2('0x54')]('vid_end',_0x19bf24[_0x28a2('0x92')](_0x28a2('0x95'))),_0x19bf24[_0x28a2('0x54')](_0x28a2('0x95'),_0x5cf7f1),this[_0x28a2('0xb4')][_0x28a2('0x9b')](_0x1c4faf,{'userId':_0x3bd901}),this[_0x28a2('0xb4')][_0x28a2('0x9b')](_0x5cf7f1,{'userId':_0x3bd901}),_0x3c2a69[_0x28a2('0xad')]();}[_0x28a2('0xc5')](_0x2c8f2c){const _0x53e623=null===(_0x2c8f2c=this[_0x28a2('0xb6')](_0x2c8f2c,this['_idsRoots']))[_0x28a2('0xd6')]?null:_0x2c8f2c[_0x28a2('0xd6')]||this[_0x28a2('0xe6')][_0x28a2('0x1d')]['get'](_0x28a2('0x75'))['me']['id'],_0x141734=_0x2c8f2c[_0x28a2('0xd5')],_0x5d68a3=_0x2c8f2c['splitPosition'][_0x28a2('0x66')];_0x2c8f2c[_0x28a2('0xad')]();const _0x520d41=_0x5d68a3[_0x28a2('0x92')](_0x28a2('0x95')),_0x2219e5=_0x2c8f2c[_0x28a2('0x73')][_0x28a2('0x94')];if(_0x141734){const _0x1b75d1=_0x2219e5[_0x28a2('0x92')](_0x28a2('0x95')),_0x410aeb=_0x5d68a3[_0x28a2('0x92')]('vid_end');_0x5d68a3[_0x28a2('0x54')](_0x28a2('0x95'),_0x1b75d1),_0x2219e5[_0x28a2('0x54')](_0x28a2('0x95'),_0x410aeb),this[_0x28a2('0xb4')][_0x28a2('0x9b')](_0x5d68a3[_0x28a2('0x92')](_0x28a2('0x95')),{'userId':_0x53e623}),this[_0x28a2('0xb4')][_0x28a2('0x9b')](_0x2219e5['getAttribute'](_0x28a2('0x72')),{'userId':_0x53e623});}else{const _0x135032=this[_0x28a2('0xca')]++,_0x446025=this[_0x28a2('0xca')]++;_0x5d68a3[_0x28a2('0x54')](_0x28a2('0x95'),_0x135032),_0x2219e5['_setAttribute'](_0x28a2('0x72'),_0x446025),_0x2219e5['_setAttribute'](_0x28a2('0x95'),_0x520d41),this[_0x28a2('0xb4')][_0x28a2('0x9b')](_0x135032,{'userId':_0x53e623}),this[_0x28a2('0xb4')][_0x28a2('0x9b')](_0x446025,{'userId':_0x53e623});}}[_0x28a2('0x9f')](_0x422f39){if(!_0x422f39[_0x28a2('0x29')])return;const _0x303768=(_0x422f39=this[_0x28a2('0xb6')](_0x422f39,this['_diffRoots']))[_0x28a2('0xe7')]?_0x422f39[_0x28a2('0xe7')][_0x28a2('0x5a')]:null,_0x2867a3=_0x422f39[_0x28a2('0x33')]?_0x422f39[_0x28a2('0x33')][_0x28a2('0x5a')]:null;_0x303768&&this['_markers']['delete'](_0x422f39[_0x28a2('0x46')]),_0x2867a3&&this['_markers'][_0x28a2('0x9b')](_0x422f39[_0x28a2('0x46')],_0x422f39['newRange'][_0x28a2('0xde')]());const _0x1eb63e=null===_0x422f39['_authorId']?null:_0x422f39['_authorId']||this['editor'][_0x28a2('0x1d')][_0x28a2('0x3c')](_0x28a2('0x75'))['me']['id'],_0x21d37b=_0x422f39[_0x28a2('0x46')];if(!this[_0x28a2('0x6f')][_0x28a2('0x3f')](_0x21d37b))return void this[_0x28a2('0x6f')]['set'](_0x21d37b,{'range':_0x422f39[_0x28a2('0xe7')],'userId':_0x1eb63e});const _0x2f9497=this[_0x28a2('0x6f')][_0x28a2('0x3c')](_0x21d37b),_0x2d0aea=_0x2f9497['range'],_0x32822e=_0x422f39[_0x28a2('0x33')];null==_0x2d0aea&&null==_0x32822e||_0x2d0aea&&_0x32822e&&_0x2d0aea['isEqual'](_0x32822e)?this[_0x28a2('0x6f')]['delete'](_0x422f39['name']):_0x2f9497[_0x28a2('0xa2')]=_0x1eb63e;}['_handleRootOperation'](_0x59d060,_0x596dc4){this[_0x28a2('0x6e')][_0x28a2('0x3f')](_0x59d060[_0x28a2('0xd7')])?this[_0x28a2('0x6e')][_0x28a2('0x3c')](_0x59d060[_0x28a2('0xd7')])[_0x28a2('0x31')]=_0x59d060[_0x28a2('0xa0')]:(this[_0x28a2('0x6e')][_0x28a2('0x9b')](_0x59d060[_0x28a2('0xd7')],G(_0x59d060[_0x28a2('0xd7')],!0x0)),this[_0x28a2('0x50')][_0x28a2('0x9b')](_0x59d060[_0x28a2('0xd7')],{}),_0x596dc4&&this[_0x28a2('0xdc')]['set'](_0x59d060[_0x28a2('0xd7')],G(_0x59d060[_0x28a2('0xd7')],!0x0)));const _0x263ec9=null===_0x59d060[_0x28a2('0xd6')]?null:_0x59d060['_authorId']||this[_0x28a2('0xe6')][_0x28a2('0x1d')]['get'](_0x28a2('0x75'))['me']['id'],_0x3e268f=this['_touchedRoots'][_0x28a2('0x3c')](_0x59d060['rootName']);_0x3e268f&&_0x3e268f['userId']===_0x263ec9?this[_0x28a2('0xf7')][_0x28a2('0x3b')](_0x59d060[_0x28a2('0xd7')]):this['_touchedRoots'][_0x28a2('0x9b')](_0x59d060['rootName'],{'userId':_0x263ec9,'isAttached':_0x59d060['isAdd']});}[_0x28a2('0x6')](_0x317321){const _0xdda846=this['_diffRootsAttributes'][_0x28a2('0x3c')](_0x317321[_0x28a2('0x5a')][_0x28a2('0xd7')]);null===_0x317321[_0x28a2('0x59')]?delete _0xdda846[_0x317321[_0x28a2('0xdb')]]:_0xdda846[_0x317321[_0x28a2('0xdb')]]=_0x317321['newValue'];}}function q(_0x3140af){const _0x1529fb=G(_0x3140af[_0x28a2('0xd7')],_0x3140af[_0x28a2('0x6a')]());for(const _0x5ac4c1 of _0x3140af[_0x28a2('0x1')]()){const _0x4a1348=_0x5ac4c1[_0x28a2('0x79')](!0x0);_0x1529fb[_0x28a2('0x5c')](_0x4a1348);}return _0x1529fb;}function G(_0x12a5c8,_0x148a45=!0x0){const _0x3751e2=new _0x262073();return _0x3751e2[_0x28a2('0xd7')]=_0x12a5c8,_0x3751e2[_0x28a2('0x31')]=_0x148a45,_0x3751e2[_0x28a2('0x6a')]=()=>_0x3751e2[_0x28a2('0x31')],_0x3751e2;}function L(_0x36ba8f,_0xe0737c,_0x57d767){const _0x4b55d5='elementEnd'==_0x36ba8f[_0x28a2('0x32')]?_0x57d767[_0x28a2('0x96')](_0x36ba8f[_0x28a2('0x5d')],'end'):_0x57d767[_0x28a2('0x86')](_0x36ba8f['item']);return _0x57d767[_0x28a2('0xba')](_0xe0737c,_0x4b55d5['path'],_0x4b55d5['stickiness']);}function W(_0x23f104,_0x5dc98f,_0x5d80fb){const _0x67a6a5=_0x28a2('0xf1')==_0x23f104[_0x28a2('0x32')]?_0x5d80fb[_0x28a2('0x96')](_0x23f104[_0x28a2('0x5d')],0x0):_0x5d80fb[_0x28a2('0x99')](_0x23f104[_0x28a2('0x5d')]);return _0x5d80fb[_0x28a2('0xba')](_0x5dc98f,_0x67a6a5[_0x28a2('0x36')],_0x67a6a5[_0x28a2('0x4e')]);}
23
+ const _0x21a4=['insertions','revisionHistory.resumeUnsavedRevision','path','getAncestors','bind','initialData','name','_getFromVersion','creator','_makeModelFromViewString','add','_handleMergeOperation','item','roots','from','Users','_loadRevisionData','_lastTo','max','clear','_source','NEGATIVE_INFINITY','getNodeByPath','_loadedStateData','vid','repository','remove','key','_createFromRanges','_transformMarkers','attributesBefore','for','vid_start','slice','document','removeRootAttribute','_setAttribute','_touchedMarkers','config','attachChange','define','elementEnd','createRangeIn','isReady','_baseRoots','set','toVersion','_appendChild','_bufferUpdate','reverse','keys','oldRange','_fixRange','processor','_diffRootsAttributes','getRevisionRootsAttributes','_execute','RealTimeCollaborationClient','has','clone','reInit','_handleInsertOperation','plugins','fromEntries','newRange','initial','_touchedRoots','_isPendingUpdate','_baseRootsAttributes','useFillerType','history','dataDowncast','_createInitialRevision','saveRevision','_addPendingAction','_fixPosition','_findInsertionIndex','$text','isEnabled','revision-end','_removeRevisionMarkers','createPositionAt','Initial\x20revision','deletions','targetPosition','forEach','marked','getAttribute','authorsIds','_replaceEditorDataWithRevisionData','collaboration.channelId','splitPosition','source','_initialRevisionId','_handleMoveOperation','get','_getVidAttributeName','getRevision','model','attributesAfter','tableCell','_getPreviousFrom','update','_copyMarkers','values','trim','data','resolve','graveyardPosition','element','addRevision','toModel','currentRevision','_fixOperation','editor-initial-data-replaced-with-revision-data','_getBaseVids','getData','_saveMetaData','userId','some','_authorId','_update','_removePendingAction','markers','_handleRootOperation','getRange','_lastFrom','getUser','_applyOperations','rootsAttributes','isAttached','root','_insertChild','$graveyard','merge','getMovedRangeStart','rootName','_pendingAction','default','_handleMarkerOperation','_diffRoots','getChildren','editing','createPositionAfter','elementStart','_startingVersion','detachRoot','childCount','attributes','_revisionDataBuilder','_continueCurrentRevision','_touched','delete','_calculateMetaData','paragraph','find','sort','getTransformedByOperation','includes','_cloneOperation','howMany','view','createRange','filter','_bufferedUpdates','_handleSplitOperation','_makeIdsRoot','_startingRevisionId','_getViewJson','init','_idsRoots','fromVersion','size','baseVersion','_handleRootAttributeOperation','_markers','_generateTape','vid_end','end','nodes','conversion','getRootNames','getRevisions','_reset','PendingActions','RevisionsRepository','marker','_savedMetaData','version','_markChanges','stickiness','start','affectsData','addRevisionData','getLatestVersion','getCurrentRevisionId','type','_operations','insert','createPositionFromPath','parse','_revisionId','_isInit','getWalker','locale','push','adapter','getAttributes','then','_setConversion','_isAttached','nodeAfter','newValue','dataToMarker','move','_baseIdsRoots','parent','updateRevisions','_loadState','_processRootBeforeSave','getRevisionDocumentData','insertionPosition','_removeMetaData','offset','_prepareViewToSave','reinsert','changeRootAttribute','map','_makeRevision','length','_getState','getIndex','editor','afterInit','Empty\x20document','documentFragment','getChild','creatorId','revision','children','sendBufferedUpdates','getRoot','setRevisionData','RevisionTracker','startsWith','diffData','stringify','split','markerToData','_handleOperation','position','isAdd','previousPosition','authors','buildRevisionData','offsetSize','string','revision-start','revision:','createdAt','_createCurrentRevision'];(function(_0x1a9247,_0x21a48){const _0x4065b0=function(_0x28c3b4){while(--_0x28c3b4){_0x1a9247['push'](_0x1a9247['shift']());}};_0x4065b0(++_0x21a48);}(_0x21a4,0xd3));const _0x4065=function(_0x1a9247,_0x21a48){_0x1a9247=_0x1a9247-0x0;let _0x4065b0=_0x21a4[_0x1a9247];return _0x4065b0;};import{Users as _0x750897}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x358dea,PendingActions as _0x4b055b}from'ckeditor5/src/core';import{logWarning as _0x6c823,uid as _0x50d016}from'ckeditor5/src/utils';import{Position as _0x2080ef,Range as _0x369295,Element as _0x43e22b,DocumentFragment as _0x267fe9,ViewText as _0x93ba7b,ViewElement as _0x3ec5fb,ViewContainerElement as _0x943a8e,ViewAttributeElement as _0x47414e,ViewEmptyElement as _0x13ae7a,ViewRawElement as _0xab4798,ViewUIElement as _0x51c262,ViewDocumentFragment as _0x44be92}from'ckeditor5/src/engine';import _0x44c7cc from'./revisionsrepository';import{getTranslation as _0x3a6ea8}from'./utils/common-translations';import{cloneDeep as _0x27fc92,isEqual as _0x25181f}from'lodash-es';const B={'c':_0x943a8e,'a':_0x47414e,'e':_0x13ae7a,'r':_0xab4798,'u':_0x51c262};export default class l extends _0x358dea{static get['pluginName'](){return _0x4065('0x20');}static get['requires'](){return[_0x750897,_0x44c7cc,_0x4b055b];}constructor(_0x7ad13f){super(_0x7ad13f),this['adapter']=null,this[_0x4065('0xa2')]=null,this['_revisionDataBuilder']=new H(this[_0x4065('0x15')]),this[_0x4065('0x8f')]=this[_0x4065('0x15')][_0x4065('0x58')]['get']('collaboration.channelId')||_0x4065('0x73'),this[_0x4065('0xd6')]=new Map(),this['_loadedStateData']=null;const _0x500a9e=_0x50d016();this[_0x4065('0x46')]={'history':this[_0x4065('0x15')][_0x4065('0x94')]['document'][_0x4065('0x78')],'getLatestVersion':()=>Promise[_0x4065('0x9d')](this[_0x4065('0x15')][_0x4065('0x94')][_0x4065('0x54')][_0x4065('0xee')]),'getCurrentRevisionId':()=>_0x500a9e},this[_0x4065('0x5f')](_0x4065('0x5d'),!0x1),this[_0x4065('0x5f')](_0x4065('0x80'),!0x0),this[_0x4065('0x5f')](_0x4065('0x75'),!0x1),this[_0x4065('0x15')][_0x4065('0x58')][_0x4065('0x5a')]('revisionHistory.resumeUnsavedRevision',!0x0),this[_0x4065('0x15')][_0x4065('0xe6')]['for']('upcast')[_0x4065('0x2')]({'view':_0x4065('0x1b')});}[_0x4065('0xdb')](){this['repository']=this[_0x4065('0x15')]['plugins']['get'](_0x4065('0xeb')),this[_0x4065('0x103')](),this[_0x4065('0x15')][_0x4065('0x9c')]['on']('ready',()=>{const _0x5dce61=this['repository'][_0x4065('0x93')](0x0),_0xb97711=_0x5dce61&&null===_0x5dce61[_0x4065('0x3a')]?_0x5dce61:null;if(this['_continueCurrentRevision']=!!_0xb97711&&this[_0x4065('0x15')][_0x4065('0x58')][_0x4065('0x91')](_0x4065('0x33')),this['editor'][_0x4065('0x70')][_0x4065('0x6c')](_0x4065('0x6b'))){const _0x59355e=this[_0x4065('0x46')]['getCurrentRevisionId'](),_0x1cc419=this[_0x4065('0x4b')][_0x4065('0x93')](_0x59355e);if(_0x1cc419)this[_0x4065('0xc3')]=_0x1cc419[_0x4065('0xdd')],this[_0x4065('0xc8')]=!0x1;else{const _0x38653f=this[_0x4065('0x46')][_0x4065('0x78')][_0x4065('0xf7')][_0x4065('0xcd')](_0x3b0bcb=>!_0x3b0bcb[_0x4065('0xfc')]),_0x942021=_0x38653f?_0x38653f[_0x4065('0xdf')]:this[_0x4065('0x46')][_0x4065('0x78')][_0x4065('0xee')];_0x5dce61?(_0x5dce61[_0x4065('0x60')]<_0x942021&&_0x5dce61[_0x4065('0xab')]({'toVersion':_0x942021}),this[_0x4065('0xc8')]?(this[_0x4065('0x46')]['getCurrentRevisionId']=()=>_0xb97711['id'],this['_startingVersion']=_0xb97711[_0x4065('0xdd')]):(this[_0x4065('0xc3')]=_0x5dce61['toVersion'],this[_0x4065('0xc8')]=!0x1)):(this[_0x4065('0xc3')]=_0x942021,this[_0x4065('0xc8')]=!0x1);}}else _0xb97711&&(this[_0x4065('0x15')]['model'][_0x4065('0x54')][_0x4065('0x78')][_0x4065('0xee')]=Math[_0x4065('0x44')](_0xb97711['toVersion'],this[_0x4065('0x15')][_0x4065('0x94')][_0x4065('0x54')][_0x4065('0x78')][_0x4065('0xee')]),_0xb97711['fromVersion']===_0xb97711[_0x4065('0x60')]?(0x0!==_0xb97711[_0x4065('0xdd')]&&(this[_0x4065('0x46')][_0x4065('0xf5')]=()=>_0xb97711['id']),this[_0x4065('0xc8')]=!0x1):this['_continueCurrentRevision']&&(this[_0x4065('0x46')][_0x4065('0xf5')]=()=>_0xb97711['id'],this[_0x4065('0xc3')]=_0xb97711[_0x4065('0xdd')])),this[_0x4065('0xc8')]||(this[_0x4065('0xc3')]=this['editor'][_0x4065('0x94')][_0x4065('0x54')][_0x4065('0xee')]);this[_0x4065('0xc7')][_0x4065('0xdb')](this[_0x4065('0x46')][_0x4065('0x78')]),this[_0x4065('0x7a')](this[_0x4065('0xc3')]),this[_0x4065('0x31')](this[_0x4065('0xc3')]),this['adapter']&&this[_0x4065('0x1d')]();}),this[_0x4065('0x36')](_0x4065('0x5d'))['to'](this,_0x4065('0x75'),_0x51ff17=>!_0x51ff17);}async[_0x4065('0x16')](){if(this['repository'][_0x4065('0x12')]>0x0){const _0x1f840c=this[_0x4065('0x4b')]['getRevision'](0x0),_0x384e07=await this[_0x4065('0x9')](_0x1f840c),_0x47459e=await this[_0x4065('0x69')](_0x1f840c);this[_0x4065('0x8b')](_0x384e07,_0x47459e);}}['setSource'](_0x267720){this['_source']=_0x267720;}async[_0x4065('0x98')](){const _0x2708f7=await this[_0x4065('0x46')]['getLatestVersion']();if(_0x2708f7>this[_0x4065('0xa2')][_0x4065('0x60')]){await this[_0x4065('0x7')]();const _0x5aad9e=this[_0x4065('0x2b')]({'revision':this[_0x4065('0xa2')],'to':_0x2708f7});_0x5aad9e[_0x4065('0x2a')]=_0x5aad9e['authorsIds'][_0x4065('0x10')](_0x409d1b=>this[_0x4065('0x15')][_0x4065('0x70')][_0x4065('0x91')](_0x4065('0x41'))[_0x4065('0xb1')](_0x409d1b)),this[_0x4065('0xa2')][_0x4065('0xab')](_0x5aad9e);}}async['_loadState'](){this[_0x4065('0xc8')]&&!this['_loadedStateData']&&(await this[_0x4065('0x42')](this[_0x4065('0xa2')]),this[_0x4065('0xc7')]['loadState'](this[_0x4065('0xa2')]),this['_loadedStateData']={'fromVersion':this[_0x4065('0xa2')][_0x4065('0xdd')],'authors':this['currentRevision'][_0x4065('0x2a')][_0x4065('0x53')]()});}async[_0x4065('0x7b')](_0x4c0e1f={},_0x1a5945=null){const _0xf402fa=[];await this[_0x4065('0x7')](),this[_0x4065('0xc8')]=!0x1,_0x1a5945>this[_0x4065('0xa2')][_0x4065('0x60')]&&(_0x1a5945=null),null===_0x1a5945&&(_0x1a5945=await this[_0x4065('0x46')][_0x4065('0xf4')]());const _0x31c54a=this[_0x4065('0x39')](_0x1a5945),_0x8efd78=this[_0x4065('0x2b')]({'from':_0x31c54a,'to':_0x1a5945});if(this[_0x4065('0xa2')]['toVersion']<_0x1a5945){const _0x195b2a=this[_0x4065('0x2b')]({'revision':this[_0x4065('0xa2')],'from':_0x1a5945,'to':_0x1a5945});_0x195b2a[_0x4065('0x2a')]=[],_0x195b2a[_0x4065('0x8a')]=[],_0x195b2a['id']=this[_0x4065('0xa2')]['id'],this[_0x4065('0xa2')]['_update'](_0x195b2a,!0x0),delete _0x195b2a[_0x4065('0x2a')],_0xf402fa[_0x4065('0xff')](_0x195b2a);}_0x4c0e1f[_0x4065('0x1a')]=this[_0x4065('0x15')][_0x4065('0x70')]['get'](_0x4065('0x41'))['me']['id'],_0x4c0e1f['name']=_0x4c0e1f['name']||null,_0x4c0e1f['id']=_0x4c0e1f['id']||_0x50d016(),_0x4c0e1f={..._0x4c0e1f,..._0x8efd78};const _0x2eeb81=this[_0x4065('0xf3')](_0x4c0e1f);_0xf402fa[_0x4065('0xff')](_0x4c0e1f);const _0xea9596=this['repository'][_0x4065('0x14')](_0x2eeb81);if(0x0!==_0xea9596){const _0x21d09d=this[_0x4065('0x4b')]['getRevision'](_0xea9596-0x1);if(_0x21d09d[_0x4065('0xdd')]!==_0x1a5945){const _0x39de07=this['_revisionDataBuilder']['getData'](_0x1a5945,_0x21d09d[_0x4065('0x60')]),_0x31fdf2={'id':_0x21d09d['id'],'diffData':_0x39de07[_0x4065('0x22')],'authorsIds':_0x39de07[_0x4065('0x8a')],'authors':_0x39de07[_0x4065('0x8a')][_0x4065('0x10')](_0x5deabc=>this['editor'][_0x4065('0x70')][_0x4065('0x91')](_0x4065('0x41'))[_0x4065('0xb1')](_0x5deabc)),'fromVersion':_0x1a5945};_0x21d09d===this['currentRevision']&&(_0x31fdf2[_0x4065('0x30')]=new Date(_0x4c0e1f[_0x4065('0x30')]['getTime']()+0xa)),_0x21d09d[_0x4065('0xab')](_0x31fdf2,!0x0),delete _0x31fdf2[_0x4065('0x2a')],_0xf402fa[_0x4065('0xff')](_0x31fdf2);}}if(this[_0x4065('0x100')]){for(const _0xcc920a of _0xf402fa)this[_0x4065('0x62')](_0xcc920a['id'],_0xcc920a,!0x0);this[_0x4065('0x1d')]();}return _0x2eeb81;}[_0x4065('0xf3')](_0x20c8b4){const _0x17aa7c=this[_0x4065('0x4b')]['createRevision'](_0x20c8b4);return this[_0x4065('0x100')]&&_0x17aa7c['on'](_0x4065('0xab'),(_0xc3a53c,_0x46eaf0,_0x12248a)=>{_0x12248a||(this['_bufferUpdate'](_0x46eaf0['id'],_0x46eaf0,!0x0),this['sendBufferedUpdates']());}),this[_0x4065('0x4b')][_0x4065('0xa0')](_0x17aa7c,this[_0x4065('0x7e')](_0x17aa7c)),_0x17aa7c;}async[_0x4065('0x9')](_0x3ab669){await this[_0x4065('0x42')](_0x3ab669);const _0x4e5d30={};for(const _0x3666fa in _0x3ab669[_0x4065('0x22')]){if(_0x3ab669['diffData'][_0x3666fa][_0x4065('0x59')]&&!_0x3ab669[_0x4065('0x22')][_0x3666fa]['attachChange'][_0x4065('0xb4')])continue;const _0x407912=this[_0x4065('0x82')](JSON[_0x4065('0xfa')](_0x3ab669[_0x4065('0x22')][_0x3666fa][_0x4065('0x32')])),_0x565f56=this[_0x4065('0x15')][_0x4065('0xc0')][_0x4065('0xd3')][_0x4065('0x54')],_0x387d25=new _0x44be92(_0x565f56,_0x407912[_0x4065('0x10')](_0x5255f5=>J(_0x5255f5,this[_0x4065('0x15')])));this[_0x4065('0x15')][_0x4065('0x9c')][_0x4065('0x67')][_0x4065('0x77')](_0x4065('0x88')),_0x4e5d30[_0x3666fa]=this[_0x4065('0x15')]['data'][_0x4065('0x67')]['toData'](_0x387d25),this[_0x4065('0x15')][_0x4065('0x9c')][_0x4065('0x67')][_0x4065('0x77')](_0x4065('0xbc'));}return _0x4e5d30;}async[_0x4065('0x69')](_0x4ff29e){await this[_0x4065('0x42')](_0x4ff29e);const _0x58e43e={};for(const _0x46ed4a in _0x4ff29e[_0x4065('0x22')])_0x4ff29e[_0x4065('0x22')][_0x46ed4a][_0x4065('0x59')]&&!_0x4ff29e[_0x4065('0x22')][_0x46ed4a]['attachChange']['isAttached']||(_0x58e43e[_0x46ed4a]=_0x4ff29e['diffData'][_0x46ed4a]['attributesAfter']||{});return _0x58e43e;}['sendBufferedUpdates'](){if(0x0===this[_0x4065('0xd6')][_0x4065('0xde')])return;if(this[_0x4065('0x75')])return;let _0x595292=Array['from'](this[_0x4065('0xd6')][_0x4065('0x9a')]());this['_bufferedUpdates'][_0x4065('0x45')]();for(let _0x4084ef=0x0;_0x4084ef<_0x595292[_0x4065('0x12')];_0x4084ef++){const _0x401219=_0x595292[_0x4084ef];let _0x3bba80=!0x1;for(const _0x32aec9 of Object[_0x4065('0x64')](_0x401219))void 0x0===_0x401219[_0x32aec9]?delete _0x401219[_0x32aec9]:'id'!==_0x32aec9&&(_0x3bba80=!0x0);_0x3bba80||(_0x595292[_0x4084ef]=null);}if(_0x595292=_0x595292[_0x4065('0xd5')](_0x3c9008=>null!==_0x3c9008),!_0x595292[_0x4065('0x12')])return;for(let _0x3f7eea=0x0;_0x3f7eea<_0x595292[_0x4065('0x12')];_0x3f7eea++){const _0x14e51a=_0x595292[_0x3f7eea];void 0x0!==_0x14e51a[_0x4065('0xdd')]&&void 0x0===_0x14e51a['toVersion']&&(_0x14e51a[_0x4065('0x60')]=this['repository'][_0x4065('0x93')](_0x14e51a['id'])[_0x4065('0x60')]),void 0x0!==_0x14e51a['toVersion']&&void 0x0===_0x14e51a['fromVersion']&&(_0x14e51a['fromVersion']=this[_0x4065('0x4b')]['getRevision'](_0x14e51a['id'])[_0x4065('0xdd')]);}const _0x4fd471=this[_0x4065('0x15')]['config'][_0x4065('0x91')]('collaboration.channelId');this[_0x4065('0x75')]=!0x0,this['_addPendingAction'](),this[_0x4065('0x100')][_0x4065('0x6')](_0x595292,_0x4fd471)['finally'](()=>{this[_0x4065('0x75')]=!0x1;})['then'](_0x45849f=>{if(_0x45849f)for(const _0xf3cd61 of _0x45849f)this[_0x4065('0x1f')]({'id':_0xf3cd61['id'],'createdAt':_0xf3cd61[_0x4065('0x30')]});this[_0x4065('0xac')](),this['sendBufferedUpdates']();});}[_0x4065('0x8b')](_0x3f042f,_0x52715c){let _0x2638fd=this[_0x4065('0x15')][_0x4065('0x58')][_0x4065('0x91')]('initialData'),_0x7d787a=this['editor'][_0x4065('0x58')][_0x4065('0x91')](_0x4065('0xb3'));if(void 0x0===_0x2638fd){_0x2638fd={};for(const _0xaea37 of this[_0x4065('0x15')][_0x4065('0x94')]['document']['getRootNames']())_0x2638fd[_0xaea37]='';}if(_0x4065('0x2d')==typeof _0x2638fd&&(_0x2638fd={'main':_0x2638fd}),void 0x0===_0x7d787a){_0x7d787a={};for(const _0x569c3a of this[_0x4065('0x15')][_0x4065('0x94')][_0x4065('0x54')][_0x4065('0xe7')]())_0x7d787a[_0x569c3a]={};}let _0x470439=!0x1;const _0x127753=Object[_0x4065('0x64')](_0x2638fd),_0x3ce391=Object[_0x4065('0x64')](_0x3f042f);for(const _0x1bfdd7 of _0x127753){if(_0x2638fd[_0x1bfdd7]!==_0x3f042f[_0x1bfdd7]&&''!==_0x2638fd[_0x1bfdd7][_0x4065('0x9b')]()){_0x470439=!0x0;break;}if(!_0x25181f(_0x7d787a[_0x1bfdd7],_0x52715c[_0x1bfdd7])&&Object[_0x4065('0x64')](_0x7d787a[_0x1bfdd7])[_0x4065('0x12')]>0x0){_0x470439=!0x0;break;}}_0x470439||(_0x470439=_0x3ce391[_0x4065('0xa9')](_0x3cd01e=>!this['editor'][_0x4065('0x94')][_0x4065('0x54')][_0x4065('0x1e')](_0x3cd01e))),_0x470439&&_0x6c823(_0x4065('0xa4'),{'editorData':_0x2638fd,'editorRootsAttributes':_0x7d787a,'revisionData':_0x3f042f,'revisionRootsAttributes':_0x52715c}),this['editor'][_0x4065('0x58')][_0x4065('0x5f')](_0x4065('0x37'),_0x3f042f),this[_0x4065('0x15')][_0x4065('0x58')][_0x4065('0x5f')](_0x4065('0xb3'),_0x52715c);}[_0x4065('0x7c')](){if(!this[_0x4065('0xbb')]){const _0x4e746c=this[_0x4065('0x15')][_0x4065('0x70')]['get'](_0x4065('0xea'));this[_0x4065('0xbb')]=_0x4e746c[_0x4065('0x3c')](_0x3a6ea8(this[_0x4065('0x15')][_0x4065('0xfe')],'PENDING_ACTION_REVISION_HISTORY'));}}[_0x4065('0xac')](){this[_0x4065('0xbb')]&&(this[_0x4065('0x15')]['plugins'][_0x4065('0x91')](_0x4065('0xea'))[_0x4065('0x4c')](this[_0x4065('0xbb')]),this[_0x4065('0xbb')]=null);}[_0x4065('0x7e')](_0x112e0b){const _0x44ab74=this[_0x4065('0x4b')][_0x4065('0xe8')]();_0x44ab74['reverse']();let _0x1d83e4=0x0;for(;_0x1d83e4<_0x44ab74[_0x4065('0x12')];){const _0x538da4=_0x44ab74[_0x1d83e4];if(_0x538da4===this[_0x4065('0xa2')]){_0x1d83e4++;continue;}if(_0x538da4['id']===this[_0x4065('0x8f')])break;const _0x3d2a0=_0x112e0b[_0x4065('0x60')]-_0x538da4['toVersion']||_0x112e0b[_0x4065('0xdd')]-_0x538da4['fromVersion'];if(_0x3d2a0>0x0)break;if(_0x3d2a0<0x0)_0x1d83e4++;else{if(!_0x112e0b[_0x4065('0x3a')]&&_0x538da4[_0x4065('0x3a')])break;if(_0x538da4[_0x4065('0x3a')]||!_0x112e0b['creator']){if(_0x112e0b[_0x4065('0x30')]>_0x538da4[_0x4065('0x30')])break;_0x1d83e4++;}else _0x1d83e4++;}}return _0x1d83e4;}[_0x4065('0x1f')](_0x18ec86){const _0x71bf9b=this['repository'][_0x4065('0x93')](_0x18ec86['id']);if(_0x18ec86[_0x4065('0x30')]&&(_0x18ec86[_0x4065('0x30')]=new Date(_0x18ec86['createdAt'])),_0x18ec86[_0x4065('0x8a')]){const _0x410258=this[_0x4065('0x15')][_0x4065('0x70')][_0x4065('0x91')]('Users');_0x18ec86[_0x4065('0x2a')]=_0x18ec86[_0x4065('0x8a')]['map'](_0x2b15f0=>_0x410258['getUser'](_0x2b15f0));}_0x71bf9b[_0x4065('0xab')](_0x18ec86,!0x0);}['buildRevisionData']({revision:_0x4180c0=null,from:_0x4df7a1=null,to:_0x596deb=null}){_0x4df7a1=null!==_0x4df7a1?_0x4df7a1:_0x4180c0['fromVersion'],_0x596deb=null!==_0x596deb?_0x596deb:_0x4180c0['toVersion'];const _0x3b43f8=this[_0x4065('0xc7')][_0x4065('0xa6')](_0x4df7a1,_0x596deb),_0x5e1f0c={'diffData':_0x3b43f8[_0x4065('0x22')],'authorsIds':_0x3b43f8[_0x4065('0x8a')],'fromVersion':_0x4df7a1,'toVersion':_0x596deb};if(!_0x4180c0||_0x596deb!==_0x4180c0[_0x4065('0x60')]){const _0x408337=_0x596deb-0x1,_0x32ddc7=this[_0x4065('0x46')][_0x4065('0x78')]['getOperation'](_0x408337);_0x5e1f0c[_0x4065('0x30')]=_0x32ddc7&&_0x32ddc7['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4df7a1===this[_0x4065('0x49')]['fromVersion'])for(const _0x3287fc of this[_0x4065('0x49')]['authors'])_0x5e1f0c[_0x4065('0x8a')][_0x4065('0xd0')](_0x3287fc['id'])||_0x5e1f0c['authorsIds']['push'](_0x3287fc['id']);return _0x5e1f0c;}[_0x4065('0x42')](_0x4da157){if(!_0x4da157||_0x4da157[_0x4065('0x22')])return Promise['resolve']();{const _0x15efff=this[_0x4065('0x15')]['config'][_0x4065('0x91')](_0x4065('0x8c'));return this[_0x4065('0x100')][_0x4065('0x93')]({'channelId':_0x15efff,'revisionId':_0x4da157['id']})[_0x4065('0x102')](_0x468034=>{_0x4da157['diffData']=_0x468034['diffData'];});}}[_0x4065('0x62')](_0x5a041a,_0x1912b3,_0x4f0748){if(this[_0x4065('0xd6')][_0x4065('0x6c')](_0x5a041a)){const _0xff5659=this['_bufferedUpdates'][_0x4065('0x91')](_0x5a041a);_0x1912b3=_0x4f0748?{..._0xff5659,..._0x1912b3}:{..._0x1912b3,..._0xff5659};}this[_0x4065('0xd6')]['set'](_0x5a041a,_0x1912b3);}[_0x4065('0x39')](_0x12df6b){const _0xe93c0e=this[_0x4065('0x4b')]['getRevisions']();_0xe93c0e['reverse'](),_0xe93c0e['shift']();const _0x12685a=_0xe93c0e[_0x4065('0xcd')](_0x43646b=>_0x43646b[_0x4065('0x60')]<=_0x12df6b)['toVersion'];return _0x12685a<this[_0x4065('0xc3')]?this[_0x4065('0xc3')]:_0x12685a;}['_createInitialRevision'](_0x14d725){const _0x10fb4f=this[_0x4065('0x4b')][_0x4065('0x93')](this[_0x4065('0x4b')][_0x4065('0x12')]-0x1);if(_0x10fb4f)this[_0x4065('0x8f')]=_0x10fb4f['id'];else{const _0x4913f6=!this[_0x4065('0x15')][_0x4065('0x94')][_0x4065('0x54')][_0x4065('0x3f')][_0x4065('0xcd')](_0x12b896=>this[_0x4065('0x15')][_0x4065('0x94')]['hasContent'](_0x12b896)),_0x1482cd=this[_0x4065('0x15')][_0x4065('0x70')][_0x4065('0x91')](_0x4065('0x41'))['me']['id'],_0x93847c=_0x3a6ea8(this[_0x4065('0x15')][_0x4065('0xfe')],_0x4913f6?_0x4065('0x17'):_0x4065('0x84'));this[_0x4065('0x11')]({'from':_0x14d725,'to':_0x14d725,'id':this[_0x4065('0x8f')],'name':_0x93847c,'creatorId':_0x1482cd});}}[_0x4065('0x31')](_0x41f236){const _0x2171a4=this['_source'][_0x4065('0xf5')]();this[_0x4065('0xa2')]=this[_0x4065('0x4b')]['getRevision'](_0x2171a4),this[_0x4065('0xa2')]||(this[_0x4065('0xa2')]=this['_makeRevision']({'from':_0x41f236,'to':_0x41f236,'id':_0x2171a4,'name':'','creatorId':null}));}['_makeRevision']({name:_0x57485f,from:_0x65cfd7,to:_0x2a06df,creatorId:_0x3a0685,id:_0x48b068}){const _0x2214be=this['buildRevisionData']({'from':_0x65cfd7,'to':_0x2a06df});_0x2214be[_0x4065('0x38')]=_0x57485f,_0x2214be[_0x4065('0x1a')]=_0x3a0685,_0x2214be['id']=_0x48b068;const _0x3bff80=this[_0x4065('0xf3')](_0x2214be);return this[_0x4065('0x100')]&&this[_0x4065('0x62')](_0x2214be['id'],_0x2214be,!0x0),_0x3bff80;}[_0x4065('0x103')](){this[_0x4065('0x15')][_0x4065('0xe6')][_0x4065('0x51')](_0x4065('0x79'))[_0x4065('0x25')]({'model':'revision'});}[_0x4065('0x82')](_0x25e824){return(_0x25e824=_0x25e824[_0x4065('0xd5')](_0x1cd043=>!_0x1cd043[_0x4065('0x38')]||_0x4065('0x2e')!==_0x1cd043['name']&&_0x4065('0x81')!==_0x1cd043[_0x4065('0x38')]))[_0x4065('0x87')](_0x255481=>{_0x4065('0x2d')!=typeof _0x255481&&(_0x255481['children']=this[_0x4065('0x82')](_0x255481[_0x4065('0x1c')]),_0x255481['attributes']=_0x255481[_0x4065('0xc6')][_0x4065('0xd5')](_0x411df7=>!_0x411df7[0x0]['startsWith']('data-revision-')));}),_0x25e824;}}function J(_0x52c977,_0x1b8798){const _0x237819=_0x1b8798['editing'][_0x4065('0xd3')]['document'];if(_0x4065('0x2d')==typeof _0x52c977)return new _0x93ba7b(_0x237819,_0x52c977);{const _0x11d53e=_0x52c977[_0x4065('0x1c')][_0x4065('0x10')](_0x51446b=>J(_0x51446b,_0x1b8798));return new(B[_0x52c977['type']]||_0x3ec5fb)(_0x237819,_0x52c977[_0x4065('0x38')],_0x52c977[_0x4065('0xc6')],_0x11d53e);}}class H{constructor(_0x403e53){this['editor']=_0x403e53,this[_0x4065('0xed')]=new Map(),this[_0x4065('0xb0')]=-0x1,this[_0x4065('0x43')]=-0x1,this[_0x4065('0xe1')]=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this['_baseRoots']=new Map(),this[_0x4065('0x76')]=new Map(),this['_idsRoots']=new Map(),this[_0x4065('0x4')]=new Map(),this[_0x4065('0xc9')]=new Map(),this[_0x4065('0x57')]=new Map(),this[_0x4065('0x74')]=new Map(),this[_0x4065('0xfb')]=0x1;}[_0x4065('0xdb')](_0x1fd877){this['source']=_0x1fd877;const _0x5853bb=new Map(),_0x541a43=new Map(),_0x422d37=this[_0x4065('0x15')]['model'][_0x4065('0x54')]['roots']['map'](_0x43dd05=>_0x43dd05[_0x4065('0xba')]);for(const _0x2c7532 of _0x422d37){const _0x4d535c=this[_0x4065('0x15')][_0x4065('0x94')][_0x4065('0x54')][_0x4065('0x1e')](_0x2c7532),_0x3b0380=q(_0x4d535c);_0x5853bb['set'](_0x2c7532,_0x3b0380),_0x541a43['set'](_0x2c7532,Object[_0x4065('0x71')](_0x4d535c['getAttributes']()));}const _0x1f6530=Array[_0x4065('0x40')](this[_0x4065('0x15')]['model'][_0x4065('0xad')])[_0x4065('0x10')](_0x12d76d=>[_0x12d76d[_0x4065('0x38')],_0x12d76d[_0x4065('0xaf')]()]),_0x17bc5f=this['source'][_0x4065('0xee')];this[_0x4065('0xa7')](_0x17bc5f,_0x5853bb,_0x1f6530,_0x541a43),this[_0x4065('0xd9')]=this[_0x4065('0xfb')];const _0x805e2d=new Map(),_0x5bbab3=new Map();for(const _0x5905df of _0x422d37){const _0x4edca4=G(_0x5905df);_0x805e2d['set'](_0x5905df,_0x4edca4),_0x5bbab3[_0x4065('0x5f')](_0x5905df,{});}this[_0x4065('0xa7')](Number[_0x4065('0x47')],_0x805e2d,[],_0x5bbab3);}['getData'](_0x696022,_0x2075e8){if(this['_lastFrom']===_0x696022&&this[_0x4065('0x43')]<=_0x2075e8)this[_0x4065('0xed')][_0x4065('0xde')]>0x1&&this[_0x4065('0xb')](this['_lastTo']),this[_0x4065('0xb2')](this[_0x4065('0x43')],_0x2075e8,!0x0);else{if(!this[_0x4065('0xed')][_0x4065('0x6c')](_0x696022)){const _0x56cbd1=this[_0x4065('0x97')](_0x696022);this[_0x4065('0xcb')](_0x56cbd1,_0x696022,!0x1);}this[_0x4065('0xcb')](_0x696022,_0x2075e8,!0x0);}return this[_0x4065('0xb0')]=_0x696022,this[_0x4065('0x43')]=_0x2075e8,this['_getState']();}['loadState'](_0x451b38){this['_reset'](),this[_0x4065('0xb0')]=_0x451b38[_0x4065('0xdd')],this[_0x4065('0x43')]=_0x451b38[_0x4065('0x60')];for(const _0x1a1aef in _0x451b38['diffData']){const _0x158419=_0x451b38[_0x4065('0x22')][_0x1a1aef][_0x4065('0x59')],_0x28f9f1=_0x27fc92(_0x451b38[_0x4065('0x22')][_0x1a1aef][_0x4065('0x50')])||{},_0x1b48e7=this[_0x4065('0x3b')](_0x451b38[_0x4065('0x22')][_0x1a1aef][_0x4065('0x85')]);_0x1b48e7[_0x4065('0xba')]=_0x1a1aef,_0x1b48e7[_0x4065('0x104')]=!_0x158419||!_0x158419['isAttached'],_0x1b48e7[_0x4065('0xb4')]=()=>_0x1b48e7[_0x4065('0x104')],this['_baseRoots'][_0x4065('0x5f')](_0x1a1aef,_0x1b48e7),this[_0x4065('0x76')][_0x4065('0x5f')](_0x1a1aef,_0x28f9f1),_0x158419&&this[_0x4065('0x74')][_0x4065('0x5f')](_0x1a1aef,_0x158419);const _0x70f56e=this[_0x4065('0xd8')](_0x1b48e7);this['_baseIdsRoots'][_0x4065('0x5f')](_0x1a1aef,_0x70f56e);for(const [_0x526e6f,_0x35bcf0]of _0x1b48e7['markers']){if(!_0x526e6f[_0x4065('0x21')]('revision:'))continue;const _0x1651c1=_0x526e6f[_0x4065('0x24')](':')[0x2];for(const _0x41d891 of _0x35bcf0['getWalker']({'singleCharacters':!0x0})){const _0x2d5b33=this[_0x4065('0x92')](_0x41d891),_0xe5e0e9=_0x4065('0x5b')==_0x41d891[_0x4065('0xf6')]?_0x41d891[_0x4065('0x29')][_0x4065('0x34')][_0x4065('0x53')](0x0,-0x1):_0x41d891[_0x4065('0x29')]['path'],_0x47db3a=_0x70f56e[_0x4065('0x48')](_0xe5e0e9)[_0x4065('0x89')](_0x2d5b33);this[_0x4065('0xc9')][_0x4065('0x5f')](_0x47db3a,{'userId':_0x1651c1});}}}this['_startingRevisionId']=this['_revisionId'];const _0x269a15=[...Array(this[_0x4065('0xfb')])['keys']()][_0x4065('0x53')](0x1)['filter'](_0x1fea6a=>!this[_0x4065('0xc9')]['has'](_0x1fea6a));let _0x10c556=0x0;const _0x191555=new Map();for(const _0x8c6cca in _0x451b38['diffData']){const _0x433920=_0x451b38['diffData'][_0x8c6cca][_0x4065('0x59')],_0xbc6fd3=_0x27fc92(_0x451b38[_0x4065('0x22')][_0x8c6cca][_0x4065('0x95')])||{},_0x3854b1=this[_0x4065('0x3b')](_0x451b38[_0x4065('0x22')][_0x8c6cca][_0x4065('0x32')]);_0x3854b1[_0x4065('0xba')]=_0x8c6cca,_0x3854b1[_0x4065('0x104')]=!_0x433920||_0x433920[_0x4065('0xb4')],_0x3854b1[_0x4065('0xb4')]=()=>_0x3854b1['_isAttached'],this[_0x4065('0xbe')]['set'](_0x8c6cca,_0x3854b1),this[_0x4065('0x68')][_0x4065('0x5f')](_0x8c6cca,_0xbc6fd3);const _0x1af81f=this[_0x4065('0xd8')](_0x3854b1,Number[_0x4065('0x47')]);this['_idsRoots'][_0x4065('0x5f')](_0x8c6cca,_0x1af81f),_0x191555[_0x4065('0x5f')](_0x8c6cca,_0x3854b1[_0x4065('0xb4')]()?_0xbc6fd3:{});for(const [_0x46322b,_0x2ebfaa]of _0x3854b1[_0x4065('0xad')]){if(!_0x46322b['startsWith'](_0x4065('0x2f')))continue;const _0x4a92b7=_0x46322b[_0x4065('0x24')](':')[0x2];for(const _0x27c4ae of _0x2ebfaa[_0x4065('0xfd')]({'singleCharacters':!0x0})){const _0x4b291c=this[_0x4065('0x92')](_0x27c4ae),_0xfaf27c=this[_0x4065('0xfb')]++,_0x19ac59=_0x4065('0x5b')==_0x27c4ae[_0x4065('0xf6')]?_0x27c4ae[_0x4065('0x29')][_0x4065('0x34')][_0x4065('0x53')](0x0,-0x1):_0x27c4ae['previousPosition'][_0x4065('0x34')];_0x1af81f['getNodeByPath'](_0x19ac59)[_0x4065('0x56')](_0x4b291c,_0xfaf27c),this[_0x4065('0xc9')][_0x4065('0x5f')](_0xfaf27c,{'userId':_0x4a92b7});}}for(const _0x117f41 of this['editor'][_0x4065('0x94')][_0x4065('0x5c')](_0x3854b1)[_0x4065('0xfd')]({'singleCharacters':!0x0})){const _0x4ec99a=this[_0x4065('0x92')](_0x117f41),_0x45d22d=_0x4065('0x5b')==_0x117f41[_0x4065('0xf6')]?_0x117f41[_0x4065('0x29')][_0x4065('0x34')]['slice'](0x0,-0x1):_0x117f41[_0x4065('0x29')][_0x4065('0x34')],_0x2a3d24=_0x1af81f['getNodeByPath'](_0x45d22d);_0x2a3d24[_0x4065('0x89')](_0x4ec99a)>0x0||_0x2a3d24[_0x4065('0x56')](_0x4ec99a,_0x269a15[_0x10c556++]);}for(const [_0x217b26,_0x1b9360]of _0x3854b1[_0x4065('0xad')])_0x217b26[_0x4065('0x21')](_0x4065('0x2f'))||this[_0x4065('0xe1')]['set'](_0x217b26,_0x1b9360);}const _0x290b6=G(_0x4065('0xb7'));this[_0x4065('0x5e')]['set'](_0x4065('0xb7'),_0x290b6),this[_0x4065('0x4')][_0x4065('0x5f')](_0x4065('0xb7'),this[_0x4065('0xd8')](_0x290b6,0x1));const _0x43960b=G(_0x4065('0xb7'));this['_diffRoots']['set']('$graveyard',_0x43960b),this['_idsRoots'][_0x4065('0x5f')](_0x4065('0xb7'),this[_0x4065('0xd8')](_0x43960b,0x1));const _0x148c04=Array[_0x4065('0x40')](this[_0x4065('0xbe')])[_0x4065('0x10')](([_0x27f22b,_0x769cf])=>[_0x27f22b,q(_0x769cf)]);this['_saveMetaData'](this['_lastTo'],_0x148c04,this['_markers'],_0x191555);}[_0x4065('0x3b')](_0x2f8da3){const _0x17aaf6=JSON[_0x4065('0xfa')](_0x2f8da3),_0x1b4e74=this['editor'][_0x4065('0xc0')]['view'][_0x4065('0x54')],_0x59c291=new _0x44be92(_0x1b4e74,_0x17aaf6[_0x4065('0x10')](_0x7abd6b=>J(_0x7abd6b,this[_0x4065('0x15')])));return this[_0x4065('0x15')]['data'][_0x4065('0xa1')](_0x59c291);}['_saveMetaData'](_0x302191,_0x4e4424,_0x22c1cf,_0x360b6f){const _0x15c840=new Map(_0x4e4424),_0x375771=new Map(_0x27fc92(_0x360b6f)),_0x3e971d=new Map();for(const [_0x420e24,_0x1c4695]of _0x22c1cf)_0x3e971d['set'](_0x420e24,{'start':_0x1c4695['start'][_0x4065('0x6d')](),'end':_0x1c4695['end'][_0x4065('0x6d')](),'rootName':_0x1c4695[_0x4065('0xb5')]['rootName']});this[_0x4065('0xed')]['set'](_0x302191,{'roots':_0x15c840,'markers':_0x3e971d,'rootsAttributes':_0x375771});}[_0x4065('0xb')](_0xfe605a){this[_0x4065('0xed')][_0x4065('0xca')](_0xfe605a);}[_0x4065('0x6e')](){this['_reset'](),this[_0x4065('0xb0')]=-0x1,this[_0x4065('0x43')]=-0x1,this[_0x4065('0xed')][_0x4065('0x45')](),this['init'](this[_0x4065('0x8e')]);}[_0x4065('0xe9')](){this[_0x4065('0xc9')][_0x4065('0x45')](),this[_0x4065('0x57')][_0x4065('0x45')](),this[_0x4065('0x74')][_0x4065('0x45')](),this[_0x4065('0xbe')]['clear'](),this[_0x4065('0x68')][_0x4065('0x45')](),this[_0x4065('0x5e')][_0x4065('0x45')](),this[_0x4065('0x76')][_0x4065('0x45')](),this[_0x4065('0xdc')][_0x4065('0x45')](),this['_baseIdsRoots'][_0x4065('0x45')](),this['_markers'][_0x4065('0x45')](),this[_0x4065('0xfb')]=0x1,this['_startingRevisionId']=this[_0x4065('0xfb')];}[_0x4065('0xd8')](_0x114af8,_0x1c813e=null){let _0x22e4b8=null;_0x114af8['is'](_0x4065('0x18'))||(_0x22e4b8=new _0x43e22b(_0x114af8['name'],{'vid_start':null===_0x1c813e?this[_0x4065('0xfb')]++:_0x1c813e++}));const _0x203dc3=[];for(const _0x576ed3 of _0x114af8[_0x4065('0xbf')]())if(_0x576ed3['is'](_0x4065('0x9f'))){_0x203dc3[_0x4065('0xff')](this['_makeIdsRoot'](_0x576ed3,_0x1c813e));const _0x5d8b88=_0x203dc3[_0x203dc3[_0x4065('0x12')]-0x1];null!==_0x1c813e&&(_0x1c813e=_0x5d8b88['is'](_0x4065('0x9f'),_0x4065('0x7f'))?_0x5d8b88[_0x4065('0x89')]('vid')+0x1:_0x5d8b88[_0x4065('0x89')](_0x4065('0xe3'))+0x1);}else for(let _0x4e5ca4=0x0;_0x4e5ca4<_0x576ed3['offsetSize'];_0x4e5ca4++)_0x203dc3[_0x4065('0xff')](new _0x43e22b(_0x4065('0x7f'),{'vid':null===_0x1c813e?this['_revisionId']++:_0x1c813e++}));if(_0x114af8['is'](_0x4065('0x18'))){const _0x599732=G(_0x114af8[_0x4065('0xba')]);return _0x599732[_0x4065('0xb6')](0x0,_0x203dc3),_0x599732;}return _0x22e4b8[_0x4065('0x56')](_0x4065('0xe3'),null===_0x1c813e?this[_0x4065('0xfb')]++:_0x1c813e++),_0x22e4b8[_0x4065('0xb6')](0x0,_0x203dc3),_0x22e4b8;}[_0x4065('0xcb')](_0x1d4723,_0x36a87b,_0x1b53a2){this[_0x4065('0xe9')]();const {roots:_0x28c709,markers:_0xdb238f,rootsAttributes:_0x3a2900}=this['_savedMetaData'][_0x4065('0x91')](_0x1d4723);this[_0x4065('0x5e')]=new Map(_0x28c709),this[_0x4065('0x76')]=new Map(_0x27fc92(_0x3a2900));for(const [_0x3fb5d1,_0x5d1ce8]of this[_0x4065('0x5e')])if(_0x4065('0xb7')!==_0x3fb5d1&&(this[_0x4065('0xbe')][_0x4065('0x5f')](_0x3fb5d1,q(_0x5d1ce8)),this['_diffRootsAttributes']=new Map(_0x27fc92(_0x3a2900)),_0x1b53a2)){const _0x31bc17=this[_0x4065('0xfb')];this['_idsRoots'][_0x4065('0x5f')](_0x3fb5d1,this[_0x4065('0xd8')](_0x5d1ce8)),this['_baseIdsRoots']['set'](_0x3fb5d1,this[_0x4065('0xd8')](_0x5d1ce8,_0x31bc17));}this[_0x4065('0xd9')]=this[_0x4065('0xfb')],this[_0x4065('0xbe')]['set']('$graveyard',q(this['_baseRoots'][_0x4065('0x91')](_0x4065('0xb7')))),_0x1b53a2&&this[_0x4065('0xdc')][_0x4065('0x5f')](_0x4065('0xb7'),this[_0x4065('0xd8')](this[_0x4065('0x5e')][_0x4065('0x91')](_0x4065('0xb7'))));for(const [_0x26b223,_0x2630d3]of _0xdb238f){const _0x119e68=this[_0x4065('0x5e')][_0x4065('0x91')](_0x2630d3[_0x4065('0xba')]),_0x43576f=this['_diffRoots'][_0x4065('0x91')](_0x2630d3[_0x4065('0xba')]),_0x23634e=new _0x369295(this[_0x4065('0x7d')](_0x2630d3[_0x4065('0xf1')],_0x119e68),this['_fixPosition'](_0x2630d3[_0x4065('0xe4')],_0x119e68)),_0x56477c=this[_0x4065('0x66')](_0x23634e,_0x43576f);_0x119e68[_0x4065('0xad')]['set'](_0x26b223,_0x23634e),this[_0x4065('0xe1')][_0x4065('0x5f')](_0x26b223,_0x56477c);}this[_0x4065('0xb2')](_0x1d4723,_0x36a87b,_0x1b53a2);}['_applyOperations'](_0x44167e,_0x17a5ec,_0xc8c85){for(const _0x175866 of this[_0x4065('0x8e')]['getOperations'](_0x44167e,_0x17a5ec))this[_0x4065('0x26')](_0x175866,_0xc8c85);for(const _0xfe548d of this[_0x4065('0xbe')][_0x4065('0x9a')]())_0xfe548d[_0x4065('0xad')][_0x4065('0x45')]();for(const [_0x49d591,_0x3e1041]of this[_0x4065('0xe1')]){this[_0x4065('0xbe')][_0x4065('0x91')](_0x3e1041[_0x4065('0xb5')][_0x4065('0xba')])[_0x4065('0xad')][_0x4065('0x5f')](_0x49d591,_0x3e1041[_0x4065('0x6d')]());}const _0x525568=new Map(),_0x3797ff=new Map();for(const [_0x4fccca,_0x3112c3]of this[_0x4065('0xbe')])_0x525568['set'](_0x4fccca,q(_0x3112c3)),_0x3797ff[_0x4065('0x5f')](_0x4fccca,this[_0x4065('0x68')]['get'](_0x4fccca));this[_0x4065('0xa7')](_0x17a5ec,_0x525568,this[_0x4065('0xe1')],_0x3797ff);}['_getPreviousFrom'](_0x427cd0){const _0x48aff1=Array['from'](this[_0x4065('0xed')]['keys']());_0x48aff1[_0x4065('0xce')]((_0xff3a4b,_0x4714b4)=>_0xff3a4b-_0x4714b4),_0x48aff1[_0x4065('0x63')]();for(const _0x27eb18 of _0x48aff1)if(_0x27eb18<_0x427cd0)return _0x27eb18;return Number[_0x4065('0x47')];}['_copyMarkers'](_0x569243,_0x2235d8){const _0x2f46f3=Array[_0x4065('0x40')](_0x2235d8[_0x4065('0xad')])[_0x4065('0x10')](([_0x2bf613,_0x2547fd])=>[_0x2bf613,this[_0x4065('0x66')](_0x2547fd,_0x569243)]);_0x569243['markers']=new Map(_0x2f46f3);}['_transformMarkers'](_0x2fed7f){for(const _0x3791de of this[_0x4065('0xe1')][_0x4065('0x9a')]()){const _0x13a83b=_0x3791de[_0x4065('0xcf')](_0x2fed7f),_0x5b6eb8=_0x369295[_0x4065('0x4e')](_0x13a83b);_0x3791de[_0x4065('0xf1')]=_0x5b6eb8[_0x4065('0xf1')],_0x3791de['end']=_0x5b6eb8[_0x4065('0xe4')];}}[_0x4065('0x26')](_0x3b5cd3,_0x358fff){if('addRoot'==_0x3b5cd3['type']||_0x4065('0xc4')==_0x3b5cd3[_0x4065('0xf6')])return void this['_handleRootOperation'](_0x3b5cd3,_0x358fff);if(_0x4065('0xf8')==_0x3b5cd3[_0x4065('0xf6')]){const _0x15c65a=_0x3b5cd3[_0x4065('0x27')][_0x4065('0xb5')]['rootName'];this[_0x4065('0xbe')]['has'](_0x15c65a)||(this[_0x4065('0xbe')]['set'](_0x15c65a,G(_0x15c65a,!0x0)),this['_diffRootsAttributes'][_0x4065('0x5f')](_0x15c65a,{}),_0x358fff&&this[_0x4065('0xdc')][_0x4065('0x5f')](_0x15c65a,G(_0x15c65a,!0x0)));}else{if('addRootAttribute'==_0x3b5cd3[_0x4065('0xf6')]||_0x4065('0x55')==_0x3b5cd3[_0x4065('0xf6')]||_0x4065('0xf')==_0x3b5cd3['type'])return void this[_0x4065('0xe0')](_0x3b5cd3);}const _0x4a14c7=this[_0x4065('0xd1')](_0x3b5cd3,this['_diffRoots']);if('marker'!==_0x3b5cd3[_0x4065('0xf6')]&&(_0x4a14c7[_0x4065('0x6a')](),this[_0x4065('0x4f')](_0x4a14c7)),_0x358fff)switch(_0x4a14c7['type']){case'insert':this['_handleInsertOperation'](_0x3b5cd3);break;case _0x4065('0x3'):case _0x4065('0x4c'):case _0x4065('0xe'):this[_0x4065('0x90')](_0x3b5cd3);break;case _0x4065('0xb8'):this[_0x4065('0x3d')](_0x3b5cd3);break;case _0x4065('0x24'):this[_0x4065('0xd7')](_0x3b5cd3);break;case _0x4065('0xec'):this[_0x4065('0xbd')](_0x3b5cd3);}}[_0x4065('0xd1')](_0x3c6da0,_0x11efd5){const _0x3a5a22=_0x3c6da0[_0x4065('0x6d')]();return _0x3a5a22[_0x4065('0xaa')]=_0x3c6da0['_authorId'],this[_0x4065('0xa3')](_0x3a5a22,_0x11efd5),_0x3a5a22;}[_0x4065('0xa5')](_0x2de6c8){return _0x2de6c8[_0x4065('0x10')](_0xdf99fd=>{const _0x5ac51f=this[_0x4065('0x92')](_0xdf99fd);return Number(_0xdf99fd[_0x4065('0x3e')][_0x4065('0x89')](_0x5ac51f));});}[_0x4065('0xe2')](_0x594d8,_0x4cf830){if(_0x594d8['is']('element','$text'))_0x4cf830[_0x4065('0xff')]({'item':_0x594d8,'type':'text'});else{_0x594d8['is'](_0x4065('0x9f'))&&_0x4cf830[_0x4065('0xff')]({'item':_0x594d8,'type':'elementStart'});for(const _0x2fc4cf of _0x594d8[_0x4065('0xbf')]())this[_0x4065('0xe2')](_0x2fc4cf,_0x4cf830);_0x594d8['is']('element')&&_0x4cf830['push']({'item':_0x594d8,'type':_0x4065('0x5b')});}return _0x4cf830;}[_0x4065('0x13')](){const _0x1214e9=new Map(this['_touched']),_0x37e371=new Map(_0x1214e9),_0x5e2216=new Map(),_0x24fbf3={'insertions':{},'deletions':{}},_0x101a3b={'insertions':{},'deletions':{}},_0x42737d=new Map(),_0x3423d6=new Set([...this[_0x4065('0x5e')][_0x4065('0x64')](),...this[_0x4065('0xbe')][_0x4065('0x64')]()]);_0x3423d6[_0x4065('0xca')](_0x4065('0xb7'));for(const _0xc4ebbb of _0x3423d6){const _0x3ee8a0=this[_0x4065('0xbe')][_0x4065('0x91')](_0xc4ebbb)||G(_0xc4ebbb,!0x1),_0x3d3c9c=this[_0x4065('0x5e')][_0x4065('0x91')](_0xc4ebbb)||G(_0xc4ebbb,!0x1);_0x3ee8a0['isAttached']()||_0x3d3c9c[_0x4065('0xb4')]()?(_0x24fbf3['insertions'][_0xc4ebbb]=q(_0x3ee8a0),_0x24fbf3[_0x4065('0x85')][_0xc4ebbb]=q(_0x3d3c9c),this[_0x4065('0x99')](_0x24fbf3[_0x4065('0x85')][_0xc4ebbb],_0x3d3c9c),this[_0x4065('0x99')](_0x24fbf3[_0x4065('0x32')][_0xc4ebbb],_0x3ee8a0),_0x101a3b[_0x4065('0x32')][_0xc4ebbb]=this[_0x4065('0xe2')](this[_0x4065('0xdc')][_0x4065('0x91')](_0xc4ebbb),[]),_0x101a3b[_0x4065('0x85')][_0xc4ebbb]=this['_generateTape'](this[_0x4065('0x4')]['get'](_0xc4ebbb)||G(_0xc4ebbb,!0x1),[])):_0x3423d6[_0x4065('0xca')](_0xc4ebbb);}for(const _0x30863f of _0x3423d6){const _0x11e969=_0x101a3b[_0x4065('0x32')][_0x30863f];for(const _0x1e7cfd of _0x11e969){const _0xbfa8a1=this[_0x4065('0x92')](_0x1e7cfd),_0x5e6648=_0x1e7cfd[_0x4065('0x3e')]['getAttribute'](_0xbfa8a1);_0x37e371[_0x4065('0xca')](_0x5e6648),_0x5e6648>=this[_0x4065('0xd9')]&&_0x5e2216[_0x4065('0x5f')](_0x5e6648,_0x1214e9[_0x4065('0x91')](_0x5e6648));}}for(const _0x3bb2e0 of _0x3423d6){const _0x53d7e5=_0x101a3b[_0x4065('0x32')][_0x3bb2e0],_0x1b4824=this['_getBaseVids'](_0x101a3b[_0x4065('0x85')][_0x3bb2e0]);let _0x45318d=0x0;for(const _0x17b9bf of _0x53d7e5){const _0x266237=this['_getVidAttributeName'](_0x17b9bf),_0x48eed0=_0x17b9bf[_0x4065('0x3e')]['getAttribute'](_0x266237);if(!_0x5e2216[_0x4065('0x6c')](_0x48eed0)&&!_0x42737d['has'](_0x48eed0)){if(_0x37e371[_0x4065('0x6c')](_0x48eed0))_0x45318d++;else{if(_0x48eed0!=_0x1b4824[_0x45318d]){const _0x1b91de=_0x1214e9['get'](_0x48eed0)||_0x1214e9[_0x4065('0x91')](_0x1b4824[_0x45318d]);for(;_0x48eed0!=_0x1b4824[_0x45318d];)_0x37e371[_0x4065('0x6c')](_0x1b4824[_0x45318d])||(_0x42737d[_0x4065('0x5f')](_0x1b4824[_0x45318d],_0x1b91de),_0x1214e9[_0x4065('0x5f')](_0x1b4824[_0x45318d],_0x1b91de)),_0x45318d++;}_0x45318d++;}}}}for(const _0x33997f of _0x3423d6){const _0x89bf5f=_0x101a3b['insertions'][_0x33997f];for(const _0x308636 of _0x89bf5f){const _0x41979f=this[_0x4065('0x92')](_0x308636),_0x3aee1=_0x308636['item'][_0x4065('0x89')](_0x41979f);if(_0x42737d['has'](_0x3aee1)){const _0x275e19=_0x42737d[_0x4065('0x91')](_0x3aee1);_0x37e371[_0x4065('0x6c')](_0x3aee1)||_0x37e371[_0x4065('0x5f')](_0x3aee1,{..._0x275e19}),_0x5e2216[_0x4065('0x5f')](_0x3aee1,{..._0x275e19});}}}for(const _0x3002f4 of _0x37e371['keys']())_0x3002f4>=this[_0x4065('0xd9')]&&_0x37e371[_0x4065('0xca')](_0x3002f4);const _0x548f52=new Map();for(const _0x5f479c of _0x3423d6){let _0xeb38a4=_0x101a3b[_0x4065('0x32')][_0x5f479c];for(const _0x4bfe43 of _0xeb38a4)if(_0x4bfe43[_0x4065('0x3e')]['is']('element',_0x4065('0x96'))){const _0x5e9acb=this['_getVidAttributeName'](_0x4bfe43),_0x4350a0=_0x4bfe43[_0x4065('0x3e')][_0x4065('0x89')](_0x5e9acb);if(_0x5e2216[_0x4065('0x6c')](_0x4350a0)){const _0x124e48=_0x4bfe43['item'][_0x4065('0x5')][_0x4065('0x5')]['getAttribute']('vid_start'),_0x3e49d6=_0x548f52[_0x4065('0x91')](_0x124e48)||new Set();_0x3e49d6[_0x4065('0x3c')](_0x5e2216[_0x4065('0x91')](_0x4350a0)['userId']),_0x548f52[_0x4065('0x5f')](_0x124e48,_0x3e49d6);}}_0xeb38a4=_0x101a3b[_0x4065('0x85')][_0x5f479c];for(const _0x54d5ae of _0xeb38a4)if(_0x54d5ae['item']['is'](_0x4065('0x9f'),_0x4065('0x96'))){const _0x42544a=this[_0x4065('0x92')](_0x54d5ae),_0x44cda9=_0x54d5ae[_0x4065('0x3e')][_0x4065('0x89')](_0x42544a);if(_0x37e371[_0x4065('0x6c')](_0x44cda9)){const _0x17e2f0=_0x54d5ae[_0x4065('0x3e')][_0x4065('0x5')][_0x4065('0x5')][_0x4065('0x89')](_0x4065('0x52')),_0x56af94=_0x548f52['get'](_0x17e2f0)||new Set();_0x56af94['add'](_0x37e371[_0x4065('0x91')](_0x44cda9)['userId']),_0x548f52[_0x4065('0x5f')](_0x17e2f0,_0x56af94);}}for(const _0x25b23c of _0x548f52[_0x4065('0x64')]())(_0x5e2216[_0x4065('0x6c')](_0x25b23c)||_0x37e371[_0x4065('0x6c')](_0x25b23c))&&_0x548f52[_0x4065('0xca')](_0x25b23c);}for(const _0x34a02a of _0x3423d6){const _0x5d2d9d=_0x101a3b[_0x4065('0x32')][_0x34a02a];let _0x1cdfe2=null,_0x45c270=null;for(const _0x57cda8 of _0x5d2d9d){const _0x175607=this[_0x4065('0x92')](_0x57cda8),_0x5f1d2d=_0x57cda8['item'][_0x4065('0x89')](_0x175607),_0x5247c0=_0x548f52['get'](_0x5f1d2d);_0x5247c0&&_0x4065('0xc2')==_0x57cda8[_0x4065('0xf6')]&&(_0x1cdfe2=Array['from'](_0x5247c0)[0x0],_0x45c270=_0x57cda8[_0x4065('0x3e')][_0x4065('0x89')](_0x4065('0xe3'))),_0x1cdfe2&&(_0x37e371[_0x4065('0x5f')](_0x5f1d2d,{'userId':_0x1cdfe2}),_0x5e2216[_0x4065('0x5f')](_0x5f1d2d,{'userId':_0x1cdfe2})),_0x5f1d2d==_0x45c270&&(_0x1cdfe2=null,_0x45c270=null);}}const _0xffb466={},_0x1a626e=new Set();for(const _0x1cc721 of _0x3423d6){const _0x2cea54=_0x24fbf3[_0x4065('0x85')][_0x1cc721],_0x425ee2=_0x24fbf3['insertions'][_0x1cc721];for(const {userId:_0x32542b}of this['_touchedMarkers'][_0x4065('0x9a')]())null!==_0x32542b&&_0x1a626e['add'](_0x32542b);for(const {userId:_0x1f3c18}of this[_0x4065('0x74')][_0x4065('0x9a')]())null!==_0x1f3c18&&_0x1a626e[_0x4065('0x3c')](_0x1f3c18);this['_markChanges'](_0x425ee2,_0x101a3b[_0x4065('0x32')][_0x1cc721],_0x5e2216,'insertion',_0x1a626e),this[_0x4065('0xef')](_0x2cea54,_0x101a3b[_0x4065('0x85')][_0x1cc721],_0x37e371,'deletion',_0x1a626e),_0xffb466[_0x1cc721]={'insertions':this[_0x4065('0xd')](_0x425ee2),'deletions':this['_prepareViewToSave'](_0x2cea54),'attachChange':this['_touchedRoots'][_0x4065('0x91')](_0x1cc721)||null,'attributesBefore':_0x27fc92(this[_0x4065('0x76')][_0x4065('0x91')](_0x1cc721))||{},'attributesAfter':_0x27fc92(this['_diffRootsAttributes'][_0x4065('0x91')](_0x1cc721))};}return{'diffData':_0xffb466,'authorsIds':Array['from'](_0x1a626e)};}['_processRootBeforeSave'](_0x4b6967){for(const [,_0xf9bddf]of _0x4b6967[_0x4065('0xad')]){const _0x479373=_0xf9bddf[_0x4065('0xf1')][_0x4065('0x35')]()[_0x4065('0xd5')](_0x5cc296=>_0x4065('0x96')==_0x5cc296[_0x4065('0x38')]);for(const _0x5eb9c1 of _0x479373)0x1==_0x5eb9c1[_0x4065('0xc5')]&&_0x5eb9c1['getChild'](0x0)['is'](_0x4065('0x9f'),_0x4065('0xcc'))&&_0x5eb9c1['getChild'](0x0)[_0x4065('0x56')]('keepParagraph',!0x0);}}[_0x4065('0xd')](_0x128e79){this[_0x4065('0x8')](_0x128e79);const _0x12c0c5=this[_0x4065('0x15')]['data']['toView'](_0x128e79,{}),_0x1aa26a=Array[_0x4065('0x40')](_0x12c0c5[_0x4065('0xbf')]())[_0x4065('0x10')](_0x4e7e1c=>this[_0x4065('0xda')](_0x4e7e1c));return JSON[_0x4065('0x23')](_0x1aa26a);}['_getViewJson'](_0x357a4b){if(_0x357a4b['is'](_0x4065('0x7f')))return _0x357a4b['data'];{const _0x31ced5=_0x357a4b;return{'type':Object['keys'](B)[_0x4065('0xcd')](_0x58ef61=>_0x357a4b instanceof B[_0x58ef61]),'name':_0x31ced5[_0x4065('0x38')],'attributes':Array[_0x4065('0x40')](_0x31ced5[_0x4065('0x101')]()),'children':Array[_0x4065('0x40')](_0x31ced5[_0x4065('0xbf')]())['map'](_0x2e9812=>this[_0x4065('0xda')](_0x2e9812))};}}['_markChanges'](_0x31a4b3,_0x5d5d7d,_0x181ee6,_0x44d479,_0x480dde){let _0x249a8f=null,_0x2843ee=null,_0x568333=0x0;const _0x25b60a=this['editor'][_0x4065('0x94')];for(let _0x1ffdfa=0x0;_0x1ffdfa<_0x5d5d7d[_0x4065('0x12')];_0x1ffdfa++){const _0x5a27c7=this[_0x4065('0x92')](_0x5d5d7d[_0x1ffdfa]),_0x29cab8=_0x5d5d7d[_0x1ffdfa]['item'][_0x4065('0x89')](_0x5a27c7),_0xad79e9=_0x181ee6['get'](_0x29cab8),_0xc9996c=_0x1ffdfa==_0x5d5d7d[_0x4065('0x12')]-0x1;(!_0x249a8f&&_0xad79e9&&(_0x249a8f=_0xad79e9,_0x2843ee=_0x5d5d7d[_0x1ffdfa]),_0x249a8f&&(!_0xad79e9||_0xad79e9[_0x4065('0xa8')]!=_0x249a8f[_0x4065('0xa8')]))&&(_0x5d8b96(_0xad79e9,L(_0x2843ee,_0x31a4b3,_0x25b60a),L(_0x5d5d7d[_0x1ffdfa],_0x31a4b3,_0x25b60a)),_0x249a8f=_0xad79e9||null,_0x2843ee=_0xad79e9?_0x5d5d7d[_0x1ffdfa]:null),_0x249a8f&&_0xc9996c&&_0x5d8b96(_0xad79e9,L(_0x2843ee,_0x31a4b3,_0x25b60a),W(_0x5d5d7d[_0x1ffdfa],_0x31a4b3,_0x25b60a));}function _0x5d8b96(_0x217c2c,_0x5cd215,_0x1fed69){const _0x250cb1=_0x249a8f[_0x4065('0xa8')],_0x2355df=_0x4065('0x2f')+_0x44d479+':'+_0x250cb1+':'+_0x568333++,_0x3f07cb=_0x25b60a[_0x4065('0xd4')](_0x5cd215,_0x1fed69);_0x31a4b3['markers'][_0x4065('0x5f')](_0x2355df,_0x3f07cb),null!==_0x250cb1&&_0x480dde[_0x4065('0x3c')](_0x250cb1);}}[_0x4065('0x92')](_0x501d9d){switch(_0x501d9d[_0x4065('0xf6')]){case _0x4065('0xc2'):return _0x4065('0x52');case _0x4065('0x5b'):return _0x4065('0xe3');default:return _0x4065('0x4a');}}[_0x4065('0xa3')](_0x3e2e58,_0x2c0a9f){_0x3e2e58['baseVersion']=null;for(const _0x47896b in _0x3e2e58){const _0x3ce931=_0x3e2e58[_0x47896b];if(_0x3ce931 instanceof _0x2080ef){const _0x5b29f4=_0x2c0a9f['get'](_0x3ce931[_0x4065('0xb5')][_0x4065('0xba')]);_0x3e2e58[_0x47896b]=this['_fixPosition'](_0x3ce931,_0x5b29f4);}if(_0x3ce931 instanceof _0x369295){const _0x3835e8=_0x2c0a9f[_0x4065('0x91')](_0x3ce931[_0x4065('0xb5')][_0x4065('0xba')]);_0x3e2e58[_0x47896b]=this[_0x4065('0x66')](_0x3ce931,_0x3835e8);}_0x4065('0xb5')===_0x47896b&&(_0x3e2e58[_0x4065('0xb5')]=_0x2c0a9f[_0x4065('0x91')](_0x3e2e58[_0x4065('0xb5')]['rootName']));}}[_0x4065('0x66')](_0x2f0753,_0x4edd23){return this[_0x4065('0x15')]['model'][_0x4065('0xd4')](this[_0x4065('0x7d')](_0x2f0753[_0x4065('0xf1')],_0x4edd23),this['_fixPosition'](_0x2f0753[_0x4065('0xe4')],_0x4edd23));}['_fixPosition'](_0x5dab6,_0x535376){return this['editor'][_0x4065('0x94')]['createPositionFromPath'](_0x535376,_0x5dab6[_0x4065('0x34')],_0x5dab6['stickiness']);}[_0x4065('0x6f')](_0x380214){const _0x594d78=this[_0x4065('0xdc')][_0x4065('0x91')](_0x380214['position'][_0x4065('0xb5')][_0x4065('0xba')]),_0x10dce0=this[_0x4065('0x7d')](_0x380214['position'],_0x594d78),_0x467354=null===_0x380214['_authorId']?null:_0x380214[_0x4065('0xaa')]||this[_0x4065('0x15')][_0x4065('0x70')][_0x4065('0x91')](_0x4065('0x41'))['me']['id'],_0x3a4d90=_0x10dce0[_0x4065('0x5')],_0x1091d4=this[_0x4065('0xfb')],_0x12ac79=[];for(const _0x44a6aa of _0x380214[_0x4065('0xe5')])if(_0x44a6aa['is']('element'))_0x12ac79[_0x4065('0xff')](this['_makeIdsRoot'](_0x44a6aa));else for(let _0x2e3a0d=0x0;_0x2e3a0d<_0x44a6aa[_0x4065('0x2c')];_0x2e3a0d++)_0x12ac79[_0x4065('0xff')](new _0x43e22b(_0x4065('0x7f'),{'vid':this['_revisionId']++}));const _0x103ed3=this[_0x4065('0xfb')];for(let _0x42ecb1=_0x1091d4;_0x42ecb1<_0x103ed3;_0x42ecb1++)this['_touched'][_0x4065('0x5f')](_0x42ecb1,{'userId':_0x467354});_0x3a4d90[_0x4065('0xb6')](_0x10dce0[_0x4065('0xc')],_0x12ac79);}['_handleMoveOperation'](_0x46db8c){(_0x46db8c=this[_0x4065('0xd1')](_0x46db8c,this['_idsRoots']))[_0x4065('0x6a')]();const _0x112c87=null===_0x46db8c[_0x4065('0xaa')]?null:_0x46db8c[_0x4065('0xaa')]||this[_0x4065('0x15')][_0x4065('0x70')][_0x4065('0x91')](_0x4065('0x41'))['me']['id'],_0x4b0964=_0x46db8c[_0x4065('0xb9')](),_0x4bdbb4=_0x4b0964[_0x4065('0x5')],_0x529d17=_0x4b0964[_0x4065('0xc')];!function _0x5500ab(_0x4f0cb0,_0x248041,_0x664c4,_0x1ffc50){for(let _0x1531ce=_0x664c4;_0x1531ce<_0x1ffc50;_0x1531ce++){const _0x16d3f1=_0x248041[_0x4065('0x19')](_0x1531ce);_0x16d3f1['is'](_0x4065('0x9f'),_0x4065('0x7f'))?_0x4f0cb0[_0x4065('0x5f')](_0x16d3f1['getAttribute'](_0x4065('0x4a')),{'userId':_0x112c87}):(_0x4f0cb0[_0x4065('0x5f')](_0x16d3f1[_0x4065('0x89')](_0x4065('0x52')),{'userId':_0x112c87}),_0x5500ab(_0x4f0cb0,_0x16d3f1,0x0,_0x16d3f1[_0x4065('0xc5')]),_0x4f0cb0['set'](_0x16d3f1[_0x4065('0x89')]('vid_end'),{'userId':_0x112c87}));}}(this[_0x4065('0xc9')],_0x4bdbb4,_0x529d17,_0x529d17+_0x46db8c[_0x4065('0xd2')]);}[_0x4065('0x3d')](_0x4b5a8e){const _0x3c3c67=null===(_0x4b5a8e=this[_0x4065('0xd1')](_0x4b5a8e,this[_0x4065('0xdc')]))[_0x4065('0xaa')]?null:_0x4b5a8e[_0x4065('0xaa')]||this[_0x4065('0x15')][_0x4065('0x70')][_0x4065('0x91')](_0x4065('0x41'))['me']['id'],_0x4bc030=_0x4b5a8e[_0x4065('0x86')]['parent'],_0x59b874=_0x4b5a8e['sourcePosition'][_0x4065('0x5')],_0x110cba=_0x4bc030[_0x4065('0x89')]('vid_end'),_0x520b5d=_0x59b874[_0x4065('0x89')](_0x4065('0x52'));_0x4bc030[_0x4065('0x56')]('vid_end',_0x59b874['getAttribute'](_0x4065('0xe3'))),_0x59b874[_0x4065('0x56')](_0x4065('0xe3'),_0x110cba),this[_0x4065('0xc9')][_0x4065('0x5f')](_0x520b5d,{'userId':_0x3c3c67}),this[_0x4065('0xc9')][_0x4065('0x5f')](_0x110cba,{'userId':_0x3c3c67}),_0x4b5a8e[_0x4065('0x6a')]();}['_handleSplitOperation'](_0x190cd9){const _0x494bd5=null===(_0x190cd9=this[_0x4065('0xd1')](_0x190cd9,this[_0x4065('0xdc')]))['_authorId']?null:_0x190cd9[_0x4065('0xaa')]||this[_0x4065('0x15')][_0x4065('0x70')][_0x4065('0x91')](_0x4065('0x41'))['me']['id'],_0x55cc30=_0x190cd9[_0x4065('0x9e')],_0x23ce12=_0x190cd9[_0x4065('0x8d')][_0x4065('0x5')];_0x190cd9[_0x4065('0x6a')]();const _0x1f0cf5=_0x23ce12['getAttribute'](_0x4065('0xe3')),_0x35ce4d=_0x190cd9[_0x4065('0xa')][_0x4065('0x0')];if(_0x55cc30){const _0x784d36=_0x35ce4d[_0x4065('0x89')](_0x4065('0xe3')),_0x5f1ca6=_0x23ce12['getAttribute'](_0x4065('0xe3'));_0x23ce12[_0x4065('0x56')](_0x4065('0xe3'),_0x784d36),_0x35ce4d[_0x4065('0x56')](_0x4065('0xe3'),_0x5f1ca6),this[_0x4065('0xc9')][_0x4065('0x5f')](_0x23ce12[_0x4065('0x89')](_0x4065('0xe3')),{'userId':_0x494bd5}),this[_0x4065('0xc9')]['set'](_0x35ce4d[_0x4065('0x89')](_0x4065('0x52')),{'userId':_0x494bd5});}else{const _0xcb5833=this[_0x4065('0xfb')]++,_0x21de83=this[_0x4065('0xfb')]++;_0x23ce12[_0x4065('0x56')](_0x4065('0xe3'),_0xcb5833),_0x35ce4d['_setAttribute'](_0x4065('0x52'),_0x21de83),_0x35ce4d[_0x4065('0x56')]('vid_end',_0x1f0cf5),this[_0x4065('0xc9')][_0x4065('0x5f')](_0xcb5833,{'userId':_0x494bd5}),this['_touched'][_0x4065('0x5f')](_0x21de83,{'userId':_0x494bd5});}}[_0x4065('0xbd')](_0x25a93a){if(!_0x25a93a[_0x4065('0xf2')])return;const _0x4d3441=(_0x25a93a=this[_0x4065('0xd1')](_0x25a93a,this[_0x4065('0xbe')]))['oldRange']?_0x25a93a['oldRange'][_0x4065('0xb5')]:null,_0x559b1c=_0x25a93a['newRange']?_0x25a93a[_0x4065('0x72')][_0x4065('0xb5')]:null;_0x4d3441&&this[_0x4065('0xe1')][_0x4065('0xca')](_0x25a93a[_0x4065('0x38')]),_0x559b1c&&this[_0x4065('0xe1')][_0x4065('0x5f')](_0x25a93a['name'],_0x25a93a[_0x4065('0x72')][_0x4065('0x6d')]());const _0x3e5539=null===_0x25a93a['_authorId']?null:_0x25a93a[_0x4065('0xaa')]||this[_0x4065('0x15')][_0x4065('0x70')][_0x4065('0x91')](_0x4065('0x41'))['me']['id'],_0x268ff8=_0x25a93a[_0x4065('0x38')];if(!this[_0x4065('0x57')]['has'](_0x268ff8))return void this[_0x4065('0x57')]['set'](_0x268ff8,{'range':_0x25a93a[_0x4065('0x65')],'userId':_0x3e5539});const _0xa4937e=this[_0x4065('0x57')][_0x4065('0x91')](_0x268ff8),_0x52bc4=_0xa4937e['range'],_0x5f1077=_0x25a93a[_0x4065('0x72')];null==_0x52bc4&&null==_0x5f1077||_0x52bc4&&_0x5f1077&&_0x52bc4['isEqual'](_0x5f1077)?this['_touchedMarkers'][_0x4065('0xca')](_0x25a93a['name']):_0xa4937e['userId']=_0x3e5539;}[_0x4065('0xae')](_0x2b0b2b,_0x184d07){this[_0x4065('0xbe')][_0x4065('0x6c')](_0x2b0b2b[_0x4065('0xba')])?this[_0x4065('0xbe')][_0x4065('0x91')](_0x2b0b2b[_0x4065('0xba')])['_isAttached']=_0x2b0b2b[_0x4065('0x28')]:(this[_0x4065('0xbe')]['set'](_0x2b0b2b[_0x4065('0xba')],G(_0x2b0b2b['rootName'],!0x0)),this['_diffRootsAttributes'][_0x4065('0x5f')](_0x2b0b2b['rootName'],{}),_0x184d07&&this[_0x4065('0xdc')][_0x4065('0x5f')](_0x2b0b2b['rootName'],G(_0x2b0b2b[_0x4065('0xba')],!0x0)));const _0x1c0106=null===_0x2b0b2b[_0x4065('0xaa')]?null:_0x2b0b2b[_0x4065('0xaa')]||this[_0x4065('0x15')]['plugins'][_0x4065('0x91')](_0x4065('0x41'))['me']['id'],_0x1824af=this[_0x4065('0x74')][_0x4065('0x91')](_0x2b0b2b['rootName']);_0x1824af&&_0x1824af[_0x4065('0xa8')]===_0x1c0106?this[_0x4065('0x74')][_0x4065('0xca')](_0x2b0b2b[_0x4065('0xba')]):this[_0x4065('0x74')][_0x4065('0x5f')](_0x2b0b2b[_0x4065('0xba')],{'userId':_0x1c0106,'isAttached':_0x2b0b2b[_0x4065('0x28')]});}['_handleRootAttributeOperation'](_0x420962){const _0x32d2ce=this[_0x4065('0x68')][_0x4065('0x91')](_0x420962[_0x4065('0xb5')][_0x4065('0xba')]);null===_0x420962['newValue']?delete _0x32d2ce[_0x420962[_0x4065('0x4d')]]:_0x32d2ce[_0x420962['key']]=_0x420962[_0x4065('0x1')];}}function q(_0x514de0){const _0x1b87a7=G(_0x514de0[_0x4065('0xba')],_0x514de0[_0x4065('0xb4')]());for(const _0x35bd17 of _0x514de0[_0x4065('0xbf')]()){const _0x2c5f67=_0x35bd17['_clone'](!0x0);_0x1b87a7[_0x4065('0x61')](_0x2c5f67);}return _0x1b87a7;}function G(_0x1bceed,_0x1c0627=!0x0){const _0x42921b=new _0x267fe9();return _0x42921b[_0x4065('0xba')]=_0x1bceed,_0x42921b[_0x4065('0x104')]=_0x1c0627,_0x42921b[_0x4065('0xb4')]=()=>_0x42921b['_isAttached'],_0x42921b;}function L(_0x44e86c,_0x11829d,_0x27a61a){const _0x47ccae=_0x4065('0x5b')==_0x44e86c[_0x4065('0xf6')]?_0x27a61a['createPositionAt'](_0x44e86c[_0x4065('0x3e')],'end'):_0x27a61a['createPositionBefore'](_0x44e86c[_0x4065('0x3e')]);return _0x27a61a[_0x4065('0xf9')](_0x11829d,_0x47ccae[_0x4065('0x34')],_0x47ccae[_0x4065('0xf0')]);}function W(_0x2e2e3b,_0x357f2c,_0xeda350){const _0x1ee16d=_0x4065('0xc2')==_0x2e2e3b['type']?_0xeda350[_0x4065('0x83')](_0x2e2e3b[_0x4065('0x3e')],0x0):_0xeda350[_0x4065('0xc1')](_0x2e2e3b[_0x4065('0x3e')]);return _0xeda350[_0x4065('0xf9')](_0x357f2c,_0x1ee16d[_0x4065('0x34')],_0x1ee16d['stickiness']);}