@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231006.0 → 0.0.0-nightly-20231008.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 _0x18f1=['useFillerType','splitPosition','rootName','howMany','end','initial','getTransformedByOperation','Empty\x20document','_prepareViewToSave','_removeRevisionMarkers','isAttached','$text','_makeRevision','creator','_makeIdsRoot','getRootNames','revision-start','getAttribute','default','markerToData','trim','vid_start','_authorId','getAttributes','previousPosition','insert','affectsData','newRange','element','type','dataDowncast','_touched','stickiness','getNodeByPath','_fixPosition','_update','data','_getViewJson','_loadRevisionData','_bufferUpdate','paragraph','config','ready','insertions','_baseRootsAttributes','forEach','_insertChild','reInit','then','has','_revisionDataBuilder','text','_cloneOperation','_applyOperations','_clone','_handleSplitOperation','revision:','clone','_lastFrom','getRange','data-revision-','deletions','_diffRoots','getIndex','_handleRootAttributeOperation','_continueCurrentRevision','graveyardPosition','set','collaboration.channelId','_source','_getVidAttributeName','_initialRevisionId','fromVersion','_appendChild','toData','_handleMoveOperation','_bufferedUpdates','revision','slice','editor','parent','userId','addRootAttribute','root','from','add','children','repository','_findInsertionIndex','sourcePosition','offset','RevisionsRepository','_handleInsertOperation','addRoot','getUser','baseVersion','_removeMetaData','find','newValue','_operations','getTime','_makeModelFromViewString','startsWith','_savedMetaData','hasContent','_addPendingAction','_markers','creatorId','sendBufferedUpdates','getChildren','isAdd','RealTimeCollaborationClient','_processRootBeforeSave','_diffRootsAttributes','bind','fromEntries','loadState','keys','reinsert','clear','createPositionFromPath','toVersion','stringify','filter','offsetSize','getChild','document','_startingVersion','_lastTo','_setConversion','createPositionAfter','_getPreviousFrom','rootsAttributes','some','diffData','resolve','reverse','createPositionBefore','version','view','init','NEGATIVE_INFINITY','_createFromRanges','Users','includes','getLatestVersion','_handleMarkerOperation','dataToMarker','_reset','history','string','shift','_createCurrentRevision','deletion','initialData','map','vid_end','addRevisionData','authorsIds','currentRevision','item','delete','RevisionTracker','push','length','nodes','_getBaseVids','setRevisionData','elementEnd','_setAttribute','move','keepParagraph','_startingRevisionId','createRevision','getOperation','max','_execute','_baseIdsRoots','createdAt','buildRevisionData','getWalker','$graveyard','getCurrentRevisionId','processor','Initial\x20revision','isReady','revisionHistory.resumeUnsavedRevision','attributesAfter','_loadState','_isPendingUpdate','_getFromVersion','getRoot','adapter','_saveMetaData','tableCell','_markChanges','childCount','conversion','_getState','oldRange','PendingActions','createRangeIn','_replaceEditorDataWithRevisionData','_createInitialRevision','getData','_removePendingAction','model','_touchedRoots','requires','parse','_handleOperation','_touchedMarkers','getRevision','editing','_copyMarkers','_handleRootOperation','_revisionId','roots','path','_idsRoots','createPositionAt','vid','insertionPosition','_transformMarkers','getRevisionDocumentData','source','key','_baseRoots','name','_generateTape','editor-initial-data-replaced-with-revision-data','_fixOperation','attributes','nodeAfter','_pendingAction','revision-end','detachRoot','position','markers','for','range','getRevisions','authors','attachChange','merge','split','start','plugins','_fixRange','_isAttached','get','size','define','marker','removeRootAttribute','values','elementStart','_loadedStateData'];(function(_0x1ba22b,_0x18f1b5){const _0x3e90c6=function(_0x468475){while(--_0x468475){_0x1ba22b['push'](_0x1ba22b['shift']());}};_0x3e90c6(++_0x18f1b5);}(_0x18f1,0xd8));const _0x3e90=function(_0x1ba22b,_0x18f1b5){_0x1ba22b=_0x1ba22b-0x0;let _0x3e90c6=_0x18f1[_0x1ba22b];return _0x3e90c6;};import{Users as _0x282716}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x34e2c8,PendingActions as _0x33c126}from'ckeditor5/src/core';import{logWarning as _0x53e235,uid as _0x1de020}from'ckeditor5/src/utils';import{Position as _0x24d00e,Range as _0x377985,Element as _0x46eb7f,DocumentFragment as _0x5942d3,ViewText as _0x1b7d16,ViewElement as _0xe1fa3f,ViewContainerElement as _0xc246c8,ViewAttributeElement as _0x4db05e,ViewEmptyElement as _0x3fa25b,ViewRawElement as _0x5e8ca4,ViewUIElement as _0xd59d64,ViewDocumentFragment as _0x59cbb8}from'ckeditor5/src/engine';import _0xf52e66 from'./revisionsrepository';import{getTranslation as _0x309c37}from'./utils/common-translations';import{cloneDeep as _0x446191,isEqual as _0x345ca}from'lodash-es';const B={'c':_0xc246c8,'a':_0x4db05e,'e':_0x3fa25b,'r':_0x5e8ca4,'u':_0xd59d64};export default class l extends _0x34e2c8{static get['pluginName'](){return _0x3e90('0xcc');}static get[_0x3e90('0xfa')](){return[_0x282716,_0xf52e66,_0x33c126];}constructor(_0x16b3fb){super(_0x16b3fb),this['adapter']=null,this[_0x3e90('0xc9')]=null,this[_0x3e90('0x5c')]=new H(this[_0x3e90('0x79')]),this[_0x3e90('0x71')]=this['editor'][_0x3e90('0x53')][_0x3e90('0x22')](_0x3e90('0x6e'))||_0x3e90('0x2f'),this['_bufferedUpdates']=new Map(),this[_0x3e90('0x29')]=null;const _0x388182=_0x1de020();this[_0x3e90('0x6f')]={'history':this[_0x3e90('0x79')][_0x3e90('0xf8')]['document'][_0x3e90('0xbf')],'getLatestVersion':()=>Promise['resolve'](this[_0x3e90('0x79')][_0x3e90('0xf8')][_0x3e90('0xa8')][_0x3e90('0xb4')]),'getCurrentRevisionId':()=>_0x388182},this[_0x3e90('0x6d')](_0x3e90('0xe3'),!0x1),this[_0x3e90('0x6d')]('isEnabled',!0x0),this[_0x3e90('0x6d')]('_isPendingUpdate',!0x1),this[_0x3e90('0x79')][_0x3e90('0x53')][_0x3e90('0x24')](_0x3e90('0xe4'),!0x0),this[_0x3e90('0x79')][_0x3e90('0xef')][_0x3e90('0x17')]('upcast')[_0x3e90('0xbd')]({'view':_0x3e90('0x77')});}['init'](){this[_0x3e90('0x81')]=this[_0x3e90('0x79')][_0x3e90('0x1f')][_0x3e90('0x22')](_0x3e90('0x85')),this['_setConversion'](),this[_0x3e90('0x79')][_0x3e90('0x4e')]['on'](_0x3e90('0x54'),()=>{const _0x1b9a79=this[_0x3e90('0x81')][_0x3e90('0xfe')](0x0),_0x252f6d=_0x1b9a79&&null===_0x1b9a79['creator']?_0x1b9a79:null;if(this['_continueCurrentRevision']=!!_0x252f6d&&this[_0x3e90('0x79')]['config'][_0x3e90('0x22')]('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins'][_0x3e90('0x5b')](_0x3e90('0x99'))){const _0x2189a7=this[_0x3e90('0x6f')][_0x3e90('0xe0')](),_0x505390=this['repository']['getRevision'](_0x2189a7);if(_0x505390)this[_0x3e90('0xa9')]=_0x505390[_0x3e90('0x72')],this[_0x3e90('0x6b')]=!0x1;else{const _0x2c862c=this['_source'][_0x3e90('0xbf')][_0x3e90('0x8d')][_0x3e90('0x8b')](_0x21f181=>!_0x21f181['_isInit']),_0x59d256=_0x2c862c?_0x2c862c[_0x3e90('0x89')]:this[_0x3e90('0x6f')][_0x3e90('0xbf')][_0x3e90('0xb4')];_0x1b9a79?(_0x1b9a79[_0x3e90('0xa3')]<_0x59d256&&_0x1b9a79[_0x3e90('0x4d')]({'toVersion':_0x59d256}),this[_0x3e90('0x6b')]?(this[_0x3e90('0x6f')][_0x3e90('0xe0')]=()=>_0x252f6d['id'],this[_0x3e90('0xa9')]=_0x252f6d['fromVersion']):(this[_0x3e90('0xa9')]=_0x1b9a79[_0x3e90('0xa3')],this[_0x3e90('0x6b')]=!0x1)):(this[_0x3e90('0xa9')]=_0x59d256,this[_0x3e90('0x6b')]=!0x1);}}else _0x252f6d&&(this[_0x3e90('0x79')][_0x3e90('0xf8')][_0x3e90('0xa8')][_0x3e90('0xbf')][_0x3e90('0xb4')]=Math[_0x3e90('0xd9')](_0x252f6d['toVersion'],this['editor']['model'][_0x3e90('0xa8')][_0x3e90('0xbf')][_0x3e90('0xb4')]),_0x252f6d['fromVersion']===_0x252f6d[_0x3e90('0xa3')]?(0x0!==_0x252f6d[_0x3e90('0x72')]&&(this[_0x3e90('0x6f')][_0x3e90('0xe0')]=()=>_0x252f6d['id']),this[_0x3e90('0x6b')]=!0x1):this[_0x3e90('0x6b')]&&(this[_0x3e90('0x6f')][_0x3e90('0xe0')]=()=>_0x252f6d['id'],this[_0x3e90('0xa9')]=_0x252f6d[_0x3e90('0x72')])),this[_0x3e90('0x6b')]||(this[_0x3e90('0xa9')]=this[_0x3e90('0x79')][_0x3e90('0xf8')]['document'][_0x3e90('0xb4')]);this[_0x3e90('0x5c')][_0x3e90('0xb6')](this[_0x3e90('0x6f')][_0x3e90('0xbf')]),this[_0x3e90('0xf5')](this[_0x3e90('0xa9')]),this['_createCurrentRevision'](this[_0x3e90('0xa9')]),this[_0x3e90('0xea')]&&this['sendBufferedUpdates']();}),this[_0x3e90('0x9c')](_0x3e90('0xe3'))['to'](this,_0x3e90('0xe7'),_0x272c1f=>!_0x272c1f);}async['afterInit'](){if(this[_0x3e90('0x81')][_0x3e90('0xce')]>0x0){const _0x2c7a3f=this['repository'][_0x3e90('0xfe')](0x0),_0x46aef5=await this[_0x3e90('0x8')](_0x2c7a3f),_0xa987c6=await this['getRevisionRootsAttributes'](_0x2c7a3f);this[_0x3e90('0xf4')](_0x46aef5,_0xa987c6);}}['setSource'](_0x4f9760){this[_0x3e90('0x6f')]=_0x4f9760;}async['update'](){const _0x576de=await this[_0x3e90('0x6f')]['getLatestVersion']();if(_0x576de>this[_0x3e90('0xc9')][_0x3e90('0xa3')]){await this['_loadState']();const _0x1bc85d=this[_0x3e90('0xdd')]({'revision':this[_0x3e90('0xc9')],'to':_0x576de});_0x1bc85d[_0x3e90('0x1a')]=_0x1bc85d[_0x3e90('0xc8')][_0x3e90('0xc5')](_0x2c7367=>this[_0x3e90('0x79')][_0x3e90('0x1f')][_0x3e90('0x22')]('Users')[_0x3e90('0x88')](_0x2c7367)),this[_0x3e90('0xc9')]['_update'](_0x1bc85d);}}async[_0x3e90('0xe6')](){this[_0x3e90('0x6b')]&&!this[_0x3e90('0x29')]&&(await this[_0x3e90('0x50')](this[_0x3e90('0xc9')]),this[_0x3e90('0x5c')][_0x3e90('0x9e')](this[_0x3e90('0xc9')]),this['_loadedStateData']={'fromVersion':this[_0x3e90('0xc9')][_0x3e90('0x72')],'authors':this[_0x3e90('0xc9')][_0x3e90('0x1a')][_0x3e90('0x78')]()});}async['saveRevision'](_0x1b15cc={},_0x33e36b=null){const _0x847f1d=[];await this[_0x3e90('0xe6')](),this[_0x3e90('0x6b')]=!0x1,_0x33e36b>this[_0x3e90('0xc9')][_0x3e90('0xa3')]&&(_0x33e36b=null),null===_0x33e36b&&(_0x33e36b=await this['_source'][_0x3e90('0xbb')]());const _0x17678c=this[_0x3e90('0xe8')](_0x33e36b),_0x3000f8=this[_0x3e90('0xdd')]({'from':_0x17678c,'to':_0x33e36b});if(this[_0x3e90('0xc9')][_0x3e90('0xa3')]<_0x33e36b){const _0x11d894=this[_0x3e90('0xdd')]({'revision':this[_0x3e90('0xc9')],'from':_0x33e36b,'to':_0x33e36b});_0x11d894[_0x3e90('0x1a')]=[],_0x11d894[_0x3e90('0xc8')]=[],_0x11d894['id']=this['currentRevision']['id'],this[_0x3e90('0xc9')][_0x3e90('0x4d')](_0x11d894,!0x0),delete _0x11d894[_0x3e90('0x1a')],_0x847f1d[_0x3e90('0xcd')](_0x11d894);}_0x1b15cc[_0x3e90('0x95')]=this[_0x3e90('0x79')][_0x3e90('0x1f')][_0x3e90('0x22')](_0x3e90('0xb9'))['me']['id'],_0x1b15cc[_0x3e90('0xc')]=_0x1b15cc[_0x3e90('0xc')]||null,_0x1b15cc['id']=_0x1b15cc['id']||_0x1de020(),_0x1b15cc={..._0x1b15cc,..._0x3000f8};const _0x349589=this['addRevisionData'](_0x1b15cc);_0x847f1d[_0x3e90('0xcd')](_0x1b15cc);const _0x16dd13=this['repository'][_0x3e90('0x69')](_0x349589);if(0x0!==_0x16dd13){const _0x424bb9=this[_0x3e90('0x81')][_0x3e90('0xfe')](_0x16dd13-0x1);if(_0x424bb9[_0x3e90('0x72')]!==_0x33e36b){const _0x2582f4=this['_revisionDataBuilder']['getData'](_0x33e36b,_0x424bb9['toVersion']),_0x3c70d4={'id':_0x424bb9['id'],'diffData':_0x2582f4[_0x3e90('0xb0')],'authorsIds':_0x2582f4[_0x3e90('0xc8')],'authors':_0x2582f4[_0x3e90('0xc8')][_0x3e90('0xc5')](_0x304b53=>this[_0x3e90('0x79')][_0x3e90('0x1f')]['get'](_0x3e90('0xb9'))[_0x3e90('0x88')](_0x304b53)),'fromVersion':_0x33e36b};_0x424bb9===this['currentRevision']&&(_0x3c70d4[_0x3e90('0xdc')]=new Date(_0x1b15cc[_0x3e90('0xdc')][_0x3e90('0x8e')]()+0xa)),_0x424bb9[_0x3e90('0x4d')](_0x3c70d4,!0x0),delete _0x3c70d4[_0x3e90('0x1a')],_0x847f1d[_0x3e90('0xcd')](_0x3c70d4);}}if(this[_0x3e90('0xea')]){for(const _0x2071e5 of _0x847f1d)this[_0x3e90('0x51')](_0x2071e5['id'],_0x2071e5,!0x0);this[_0x3e90('0x96')]();}return _0x349589;}[_0x3e90('0xc7')](_0xbb5791){const _0x54142e=this[_0x3e90('0x81')][_0x3e90('0xd7')](_0xbb5791);return this[_0x3e90('0xea')]&&_0x54142e['on'](_0x3e90('0x4d'),(_0x26bcbc,_0x195cd3,_0x3a6a96)=>{_0x3a6a96||(this[_0x3e90('0x51')](_0x195cd3['id'],_0x195cd3,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x54142e,this[_0x3e90('0x82')](_0x54142e)),_0x54142e;}async[_0x3e90('0x8')](_0x2be1ee){await this[_0x3e90('0x50')](_0x2be1ee);const _0x5e27eb={};for(const _0x5bda7a in _0x2be1ee[_0x3e90('0xb0')]){if(_0x2be1ee['diffData'][_0x5bda7a]['attachChange']&&!_0x2be1ee[_0x3e90('0xb0')][_0x5bda7a][_0x3e90('0x1b')][_0x3e90('0x34')])continue;const _0x3f73cc=this[_0x3e90('0x33')](JSON[_0x3e90('0xfb')](_0x2be1ee[_0x3e90('0xb0')][_0x5bda7a][_0x3e90('0x55')])),_0xd03498=this[_0x3e90('0x79')]['editing']['view'][_0x3e90('0xa8')],_0x4990f0=new _0x59cbb8(_0xd03498,_0x3f73cc['map'](_0x502a53=>J(_0x502a53,this[_0x3e90('0x79')])));this['editor'][_0x3e90('0x4e')][_0x3e90('0xe1')][_0x3e90('0x2a')]('marked'),_0x5e27eb[_0x5bda7a]=this[_0x3e90('0x79')][_0x3e90('0x4e')][_0x3e90('0xe1')][_0x3e90('0x74')](_0x4990f0),this[_0x3e90('0x79')][_0x3e90('0x4e')][_0x3e90('0xe1')][_0x3e90('0x2a')](_0x3e90('0x3c'));}return _0x5e27eb;}async['getRevisionRootsAttributes'](_0x5d0fe3){await this[_0x3e90('0x50')](_0x5d0fe3);const _0x26a01c={};for(const _0x30d460 in _0x5d0fe3[_0x3e90('0xb0')])_0x5d0fe3[_0x3e90('0xb0')][_0x30d460][_0x3e90('0x1b')]&&!_0x5d0fe3[_0x3e90('0xb0')][_0x30d460][_0x3e90('0x1b')][_0x3e90('0x34')]||(_0x26a01c[_0x30d460]=_0x5d0fe3[_0x3e90('0xb0')][_0x30d460]['attributesAfter']||{});return _0x26a01c;}[_0x3e90('0x96')](){if(0x0===this[_0x3e90('0x76')][_0x3e90('0x23')])return;if(this['_isPendingUpdate'])return;let _0x36150b=Array[_0x3e90('0x7e')](this[_0x3e90('0x76')][_0x3e90('0x27')]());this[_0x3e90('0x76')][_0x3e90('0xa1')]();for(let _0x502440=0x0;_0x502440<_0x36150b['length'];_0x502440++){const _0x2d3954=_0x36150b[_0x502440];let _0x630409=!0x1;for(const _0x1f2f61 of Object[_0x3e90('0x9f')](_0x2d3954))void 0x0===_0x2d3954[_0x1f2f61]?delete _0x2d3954[_0x1f2f61]:'id'!==_0x1f2f61&&(_0x630409=!0x0);_0x630409||(_0x36150b[_0x502440]=null);}if(_0x36150b=_0x36150b[_0x3e90('0xa5')](_0x24efd8=>null!==_0x24efd8),!_0x36150b[_0x3e90('0xce')])return;for(let _0x48b6ea=0x0;_0x48b6ea<_0x36150b[_0x3e90('0xce')];_0x48b6ea++){const _0x2a28b5=_0x36150b[_0x48b6ea];void 0x0!==_0x2a28b5[_0x3e90('0x72')]&&void 0x0===_0x2a28b5[_0x3e90('0xa3')]&&(_0x2a28b5['toVersion']=this[_0x3e90('0x81')][_0x3e90('0xfe')](_0x2a28b5['id'])['toVersion']),void 0x0!==_0x2a28b5[_0x3e90('0xa3')]&&void 0x0===_0x2a28b5[_0x3e90('0x72')]&&(_0x2a28b5[_0x3e90('0x72')]=this[_0x3e90('0x81')][_0x3e90('0xfe')](_0x2a28b5['id'])[_0x3e90('0x72')]);}const _0x311a14=this[_0x3e90('0x79')][_0x3e90('0x53')]['get'](_0x3e90('0x6e'));this[_0x3e90('0xe7')]=!0x0,this['_addPendingAction'](),this[_0x3e90('0xea')]['updateRevisions'](_0x36150b,_0x311a14)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x16cd4e=>{if(_0x16cd4e)for(const _0x2832ab of _0x16cd4e)this[_0x3e90('0xd1')]({'id':_0x2832ab['id'],'createdAt':_0x2832ab[_0x3e90('0xdc')]});this[_0x3e90('0xf7')](),this[_0x3e90('0x96')]();});}[_0x3e90('0xf4')](_0x3dce8f,_0x28ff60){let _0x13eb46=this[_0x3e90('0x79')][_0x3e90('0x53')]['get'](_0x3e90('0xc4')),_0x1c43f5=this[_0x3e90('0x79')][_0x3e90('0x53')][_0x3e90('0x22')](_0x3e90('0xae'));if(void 0x0===_0x13eb46){_0x13eb46={};for(const _0x5150b8 of this[_0x3e90('0x79')]['model']['document']['getRootNames']())_0x13eb46[_0x5150b8]='';}if(_0x3e90('0xc0')==typeof _0x13eb46&&(_0x13eb46={'main':_0x13eb46}),void 0x0===_0x1c43f5){_0x1c43f5={};for(const _0x3e8963 of this[_0x3e90('0x79')][_0x3e90('0xf8')]['document'][_0x3e90('0x39')]())_0x1c43f5[_0x3e8963]={};}let _0x1374b0=!0x1;const _0x35c033=Object[_0x3e90('0x9f')](_0x13eb46),_0xbc1907=Object[_0x3e90('0x9f')](_0x3dce8f);for(const _0x3aea0f of _0x35c033){if(_0x13eb46[_0x3aea0f]!==_0x3dce8f[_0x3aea0f]&&''!==_0x13eb46[_0x3aea0f][_0x3e90('0x3e')]()){_0x1374b0=!0x0;break;}if(!_0x345ca(_0x1c43f5[_0x3aea0f],_0x28ff60[_0x3aea0f])&&Object[_0x3e90('0x9f')](_0x1c43f5[_0x3aea0f])[_0x3e90('0xce')]>0x0){_0x1374b0=!0x0;break;}}_0x1374b0||(_0x1374b0=_0xbc1907[_0x3e90('0xaf')](_0x1a6e1c=>!this[_0x3e90('0x79')]['model']['document'][_0x3e90('0xe9')](_0x1a6e1c))),_0x1374b0&&_0x53e235(_0x3e90('0xe'),{'editorData':_0x13eb46,'editorRootsAttributes':_0x1c43f5,'revisionData':_0x3dce8f,'revisionRootsAttributes':_0x28ff60}),this[_0x3e90('0x79')][_0x3e90('0x53')]['set'](_0x3e90('0xc4'),_0x3dce8f),this['editor'][_0x3e90('0x53')][_0x3e90('0x6d')](_0x3e90('0xae'),_0x28ff60);}[_0x3e90('0x93')](){if(!this[_0x3e90('0x12')]){const _0x1d1aec=this[_0x3e90('0x79')]['plugins'][_0x3e90('0x22')](_0x3e90('0xf2'));this[_0x3e90('0x12')]=_0x1d1aec[_0x3e90('0x7f')](_0x309c37(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}[_0x3e90('0xf7')](){this['_pendingAction']&&(this['editor']['plugins'][_0x3e90('0x22')](_0x3e90('0xf2'))['remove'](this[_0x3e90('0x12')]),this[_0x3e90('0x12')]=null);}['_findInsertionIndex'](_0x3a5f4a){const _0x3b47b1=this[_0x3e90('0x81')][_0x3e90('0x19')]();_0x3b47b1[_0x3e90('0xb2')]();let _0x55876e=0x0;for(;_0x55876e<_0x3b47b1[_0x3e90('0xce')];){const _0x27a174=_0x3b47b1[_0x55876e];if(_0x27a174===this['currentRevision']){_0x55876e++;continue;}if(_0x27a174['id']===this[_0x3e90('0x71')])break;const _0x5cdeac=_0x3a5f4a[_0x3e90('0xa3')]-_0x27a174[_0x3e90('0xa3')]||_0x3a5f4a[_0x3e90('0x72')]-_0x27a174['fromVersion'];if(_0x5cdeac>0x0)break;if(_0x5cdeac<0x0)_0x55876e++;else{if(!_0x3a5f4a['creator']&&_0x27a174[_0x3e90('0x37')])break;if(_0x27a174[_0x3e90('0x37')]||!_0x3a5f4a['creator']){if(_0x3a5f4a['createdAt']>_0x27a174[_0x3e90('0xdc')])break;_0x55876e++;}else _0x55876e++;}}return _0x55876e;}['setRevisionData'](_0x303861){const _0x34ea70=this['repository'][_0x3e90('0xfe')](_0x303861['id']);if(_0x303861[_0x3e90('0xdc')]&&(_0x303861[_0x3e90('0xdc')]=new Date(_0x303861['createdAt'])),_0x303861[_0x3e90('0xc8')]){const _0xbbcc04=this[_0x3e90('0x79')][_0x3e90('0x1f')][_0x3e90('0x22')](_0x3e90('0xb9'));_0x303861[_0x3e90('0x1a')]=_0x303861[_0x3e90('0xc8')]['map'](_0x2ed3a1=>_0xbbcc04[_0x3e90('0x88')](_0x2ed3a1));}_0x34ea70[_0x3e90('0x4d')](_0x303861,!0x0);}[_0x3e90('0xdd')]({revision:_0x33a48e=null,from:_0x553968=null,to:_0x26e69f=null}){_0x553968=null!==_0x553968?_0x553968:_0x33a48e[_0x3e90('0x72')],_0x26e69f=null!==_0x26e69f?_0x26e69f:_0x33a48e[_0x3e90('0xa3')];const _0x97a072=this[_0x3e90('0x5c')][_0x3e90('0xf6')](_0x553968,_0x26e69f),_0x4945f9={'diffData':_0x97a072['diffData'],'authorsIds':_0x97a072[_0x3e90('0xc8')],'fromVersion':_0x553968,'toVersion':_0x26e69f};if(!_0x33a48e||_0x26e69f!==_0x33a48e[_0x3e90('0xa3')]){const _0x2d8148=_0x26e69f-0x1,_0x17dcc2=this[_0x3e90('0x6f')]['history'][_0x3e90('0xd8')](_0x2d8148);_0x4945f9['createdAt']=_0x17dcc2&&_0x17dcc2[_0x3e90('0xdc')]||new Date();}if(this[_0x3e90('0x29')]&&_0x553968===this['_loadedStateData']['fromVersion'])for(const _0x16c0cc of this['_loadedStateData'][_0x3e90('0x1a')])_0x4945f9[_0x3e90('0xc8')][_0x3e90('0xba')](_0x16c0cc['id'])||_0x4945f9[_0x3e90('0xc8')]['push'](_0x16c0cc['id']);return _0x4945f9;}[_0x3e90('0x50')](_0x387b8b){if(!_0x387b8b||_0x387b8b[_0x3e90('0xb0')])return Promise[_0x3e90('0xb1')]();{const _0x41f1c6=this[_0x3e90('0x79')][_0x3e90('0x53')][_0x3e90('0x22')]('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x41f1c6,'revisionId':_0x387b8b['id']})[_0x3e90('0x5a')](_0x5b0a8b=>{_0x387b8b[_0x3e90('0xb0')]=_0x5b0a8b[_0x3e90('0xb0')];});}}[_0x3e90('0x51')](_0x129e93,_0x5c2907,_0x2614b6){if(this['_bufferedUpdates'][_0x3e90('0x5b')](_0x129e93)){const _0x3197b2=this[_0x3e90('0x76')][_0x3e90('0x22')](_0x129e93);_0x5c2907=_0x2614b6?{..._0x3197b2,..._0x5c2907}:{..._0x5c2907,..._0x3197b2};}this[_0x3e90('0x76')]['set'](_0x129e93,_0x5c2907);}['_getFromVersion'](_0x2c77e0){const _0x372e10=this[_0x3e90('0x81')][_0x3e90('0x19')]();_0x372e10[_0x3e90('0xb2')](),_0x372e10[_0x3e90('0xc1')]();const _0xfc98c=_0x372e10['find'](_0x334bed=>_0x334bed[_0x3e90('0xa3')]<=_0x2c77e0)['toVersion'];return _0xfc98c<this[_0x3e90('0xa9')]?this['_startingVersion']:_0xfc98c;}['_createInitialRevision'](_0x44bc5d){const _0x395274=this[_0x3e90('0x81')][_0x3e90('0xfe')](this[_0x3e90('0x81')][_0x3e90('0xce')]-0x1);if(_0x395274)this[_0x3e90('0x71')]=_0x395274['id'];else{const _0x28d18a=!this['editor']['model'][_0x3e90('0xa8')]['roots']['find'](_0x3aabb8=>this[_0x3e90('0x79')]['model'][_0x3e90('0x92')](_0x3aabb8)),_0x195255=this['editor'][_0x3e90('0x1f')][_0x3e90('0x22')](_0x3e90('0xb9'))['me']['id'],_0x4b5661=_0x309c37(this[_0x3e90('0x79')]['locale'],_0x28d18a?_0x3e90('0x31'):_0x3e90('0xe2'));this[_0x3e90('0x36')]({'from':_0x44bc5d,'to':_0x44bc5d,'id':this['_initialRevisionId'],'name':_0x4b5661,'creatorId':_0x195255});}}[_0x3e90('0xc2')](_0x32d044){const _0x482a17=this[_0x3e90('0x6f')][_0x3e90('0xe0')]();this[_0x3e90('0xc9')]=this[_0x3e90('0x81')][_0x3e90('0xfe')](_0x482a17),this[_0x3e90('0xc9')]||(this['currentRevision']=this[_0x3e90('0x36')]({'from':_0x32d044,'to':_0x32d044,'id':_0x482a17,'name':'','creatorId':null}));}['_makeRevision']({name:_0x438bf7,from:_0x434e25,to:_0x29a8ff,creatorId:_0x3dcdab,id:_0x39a48c}){const _0x220bf4=this['buildRevisionData']({'from':_0x434e25,'to':_0x29a8ff});_0x220bf4[_0x3e90('0xc')]=_0x438bf7,_0x220bf4[_0x3e90('0x95')]=_0x3dcdab,_0x220bf4['id']=_0x39a48c;const _0x148791=this[_0x3e90('0xc7')](_0x220bf4);return this[_0x3e90('0xea')]&&this[_0x3e90('0x51')](_0x220bf4['id'],_0x220bf4,!0x0),_0x148791;}[_0x3e90('0xab')](){this[_0x3e90('0x79')]['conversion'][_0x3e90('0x17')](_0x3e90('0x48'))[_0x3e90('0x3d')]({'model':_0x3e90('0x77')});}[_0x3e90('0x33')](_0x123fe5){return(_0x123fe5=_0x123fe5[_0x3e90('0xa5')](_0x4dc08e=>!_0x4dc08e['name']||_0x3e90('0x3a')!==_0x4dc08e[_0x3e90('0xc')]&&_0x3e90('0x13')!==_0x4dc08e['name']))[_0x3e90('0x57')](_0x47fd66=>{'string'!=typeof _0x47fd66&&(_0x47fd66[_0x3e90('0x80')]=this['_removeRevisionMarkers'](_0x47fd66[_0x3e90('0x80')]),_0x47fd66['attributes']=_0x47fd66[_0x3e90('0x10')][_0x3e90('0xa5')](_0x3e3f1=>!_0x3e3f1[0x0][_0x3e90('0x90')](_0x3e90('0x66'))));}),_0x123fe5;}}function J(_0x4f9c9a,_0x29c0a5){const _0x3f7fd2=_0x29c0a5['editing'][_0x3e90('0xb5')][_0x3e90('0xa8')];if('string'==typeof _0x4f9c9a)return new _0x1b7d16(_0x3f7fd2,_0x4f9c9a);{const _0x1932fd=_0x4f9c9a[_0x3e90('0x80')][_0x3e90('0xc5')](_0x2bc009=>J(_0x2bc009,_0x29c0a5));return new(B[_0x4f9c9a[(_0x3e90('0x47'))]]||_0xe1fa3f)(_0x3f7fd2,_0x4f9c9a['name'],_0x4f9c9a[_0x3e90('0x10')],_0x1932fd);}}class H{constructor(_0x1bd9db){this['editor']=_0x1bd9db,this[_0x3e90('0x91')]=new Map(),this[_0x3e90('0x64')]=-0x1,this[_0x3e90('0xaa')]=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this[_0x3e90('0x9b')]=new Map(),this[_0x3e90('0xb')]=new Map(),this[_0x3e90('0x56')]=new Map(),this[_0x3e90('0x3')]=new Map(),this[_0x3e90('0xdb')]=new Map(),this[_0x3e90('0x49')]=new Map(),this[_0x3e90('0xfd')]=new Map(),this[_0x3e90('0xf9')]=new Map(),this['_revisionId']=0x1;}['init'](_0x56d7d1){this[_0x3e90('0x9')]=_0x56d7d1;const _0x2a344b=new Map(),_0x1b9b51=new Map(),_0x329ef5=this[_0x3e90('0x79')][_0x3e90('0xf8')]['document'][_0x3e90('0x1')][_0x3e90('0xc5')](_0x357e26=>_0x357e26[_0x3e90('0x2c')]);for(const _0x38f7cd of _0x329ef5){const _0x288ca2=this[_0x3e90('0x79')][_0x3e90('0xf8')]['document']['getRoot'](_0x38f7cd),_0x23fc95=q(_0x288ca2);_0x2a344b['set'](_0x38f7cd,_0x23fc95),_0x1b9b51[_0x3e90('0x6d')](_0x38f7cd,Object[_0x3e90('0x9d')](_0x288ca2[_0x3e90('0x41')]()));}const _0x582280=Array['from'](this[_0x3e90('0x79')][_0x3e90('0xf8')][_0x3e90('0x16')])[_0x3e90('0xc5')](_0x3f3bee=>[_0x3f3bee[_0x3e90('0xc')],_0x3f3bee[_0x3e90('0x65')]()]),_0x1e7806=this['source'][_0x3e90('0xb4')];this[_0x3e90('0xeb')](_0x1e7806,_0x2a344b,_0x582280,_0x1b9b51),this['_startingRevisionId']=this[_0x3e90('0x0')];const _0x25e54d=new Map(),_0x39c53e=new Map();for(const _0x28b82f of _0x329ef5){const _0x22f6b3=G(_0x28b82f);_0x25e54d[_0x3e90('0x6d')](_0x28b82f,_0x22f6b3),_0x39c53e[_0x3e90('0x6d')](_0x28b82f,{});}this[_0x3e90('0xeb')](Number['NEGATIVE_INFINITY'],_0x25e54d,[],_0x39c53e);}['getData'](_0x3c51c1,_0x4d6704){if(this[_0x3e90('0x64')]===_0x3c51c1&&this['_lastTo']<=_0x4d6704)this[_0x3e90('0x91')][_0x3e90('0x23')]>0x1&&this[_0x3e90('0x8a')](this[_0x3e90('0xaa')]),this['_applyOperations'](this['_lastTo'],_0x4d6704,!0x0);else{if(!this['_savedMetaData']['has'](_0x3c51c1)){const _0x156207=this['_getPreviousFrom'](_0x3c51c1);this['_calculateMetaData'](_0x156207,_0x3c51c1,!0x1);}this['_calculateMetaData'](_0x3c51c1,_0x4d6704,!0x0);}return this[_0x3e90('0x64')]=_0x3c51c1,this['_lastTo']=_0x4d6704,this['_getState']();}[_0x3e90('0x9e')](_0x2d69be){this['_reset'](),this[_0x3e90('0x64')]=_0x2d69be[_0x3e90('0x72')],this[_0x3e90('0xaa')]=_0x2d69be[_0x3e90('0xa3')];for(const _0x3aa208 in _0x2d69be[_0x3e90('0xb0')]){const _0x4997c0=_0x2d69be[_0x3e90('0xb0')][_0x3aa208]['attachChange'],_0x10054c=_0x446191(_0x2d69be[_0x3e90('0xb0')][_0x3aa208]['attributesBefore'])||{},_0x46e8b5=this[_0x3e90('0x8f')](_0x2d69be['diffData'][_0x3aa208][_0x3e90('0x67')]);_0x46e8b5[_0x3e90('0x2c')]=_0x3aa208,_0x46e8b5[_0x3e90('0x21')]=!_0x4997c0||!_0x4997c0[_0x3e90('0x34')],_0x46e8b5[_0x3e90('0x34')]=()=>_0x46e8b5[_0x3e90('0x21')],this[_0x3e90('0xb')]['set'](_0x3aa208,_0x46e8b5),this['_baseRootsAttributes'][_0x3e90('0x6d')](_0x3aa208,_0x10054c),_0x4997c0&&this[_0x3e90('0xf9')][_0x3e90('0x6d')](_0x3aa208,_0x4997c0);const _0x362beb=this['_makeIdsRoot'](_0x46e8b5);this[_0x3e90('0xdb')][_0x3e90('0x6d')](_0x3aa208,_0x362beb);for(const [_0x5315ce,_0x3d4463]of _0x46e8b5[_0x3e90('0x16')]){if(!_0x5315ce[_0x3e90('0x90')](_0x3e90('0x62')))continue;const _0x116b0a=_0x5315ce[_0x3e90('0x1d')](':')[0x2];for(const _0x144ca7 of _0x3d4463[_0x3e90('0xde')]({'singleCharacters':!0x0})){const _0xd4cd37=this[_0x3e90('0x70')](_0x144ca7),_0x1c63ea=_0x3e90('0xd2')==_0x144ca7[_0x3e90('0x47')]?_0x144ca7['previousPosition']['path'][_0x3e90('0x78')](0x0,-0x1):_0x144ca7['previousPosition'][_0x3e90('0x2')],_0x194ac7=_0x362beb[_0x3e90('0x4b')](_0x1c63ea)[_0x3e90('0x3b')](_0xd4cd37);this['_touched'][_0x3e90('0x6d')](_0x194ac7,{'userId':_0x116b0a});}}}this[_0x3e90('0xd6')]=this[_0x3e90('0x0')];const _0x2241d7=[...Array(this[_0x3e90('0x0')])[_0x3e90('0x9f')]()][_0x3e90('0x78')](0x1)[_0x3e90('0xa5')](_0x3dddc7=>!this[_0x3e90('0x49')]['has'](_0x3dddc7));let _0x416b68=0x0;const _0x2928d5=new Map();for(const _0xd85be3 in _0x2d69be[_0x3e90('0xb0')]){const _0x47b620=_0x2d69be[_0x3e90('0xb0')][_0xd85be3]['attachChange'],_0x5a57b2=_0x446191(_0x2d69be[_0x3e90('0xb0')][_0xd85be3][_0x3e90('0xe5')])||{},_0x546dbd=this[_0x3e90('0x8f')](_0x2d69be[_0x3e90('0xb0')][_0xd85be3][_0x3e90('0x55')]);_0x546dbd[_0x3e90('0x2c')]=_0xd85be3,_0x546dbd[_0x3e90('0x21')]=!_0x47b620||_0x47b620['isAttached'],_0x546dbd['isAttached']=()=>_0x546dbd[_0x3e90('0x21')],this[_0x3e90('0x68')][_0x3e90('0x6d')](_0xd85be3,_0x546dbd),this[_0x3e90('0x9b')][_0x3e90('0x6d')](_0xd85be3,_0x5a57b2);const _0x24b25c=this[_0x3e90('0x38')](_0x546dbd,Number[_0x3e90('0xb7')]);this['_idsRoots'][_0x3e90('0x6d')](_0xd85be3,_0x24b25c),_0x2928d5['set'](_0xd85be3,_0x546dbd[_0x3e90('0x34')]()?_0x5a57b2:{});for(const [_0x598f46,_0x5db175]of _0x546dbd[_0x3e90('0x16')]){if(!_0x598f46[_0x3e90('0x90')](_0x3e90('0x62')))continue;const _0x2e8d6b=_0x598f46[_0x3e90('0x1d')](':')[0x2];for(const _0x21dedb of _0x5db175['getWalker']({'singleCharacters':!0x0})){const _0x69189a=this[_0x3e90('0x70')](_0x21dedb),_0x3a071d=this['_revisionId']++,_0xaa07e4='elementEnd'==_0x21dedb['type']?_0x21dedb[_0x3e90('0x42')][_0x3e90('0x2')][_0x3e90('0x78')](0x0,-0x1):_0x21dedb[_0x3e90('0x42')]['path'];_0x24b25c[_0x3e90('0x4b')](_0xaa07e4)[_0x3e90('0xd3')](_0x69189a,_0x3a071d),this[_0x3e90('0x49')][_0x3e90('0x6d')](_0x3a071d,{'userId':_0x2e8d6b});}}for(const _0x4f2bb2 of this['editor'][_0x3e90('0xf8')][_0x3e90('0xf3')](_0x546dbd)[_0x3e90('0xde')]({'singleCharacters':!0x0})){const _0xb0e05b=this[_0x3e90('0x70')](_0x4f2bb2),_0x57df0a=_0x3e90('0xd2')==_0x4f2bb2['type']?_0x4f2bb2[_0x3e90('0x42')][_0x3e90('0x2')][_0x3e90('0x78')](0x0,-0x1):_0x4f2bb2[_0x3e90('0x42')][_0x3e90('0x2')],_0x2c670b=_0x24b25c['getNodeByPath'](_0x57df0a);_0x2c670b[_0x3e90('0x3b')](_0xb0e05b)>0x0||_0x2c670b[_0x3e90('0xd3')](_0xb0e05b,_0x2241d7[_0x416b68++]);}for(const [_0x217645,_0x177bde]of _0x546dbd[_0x3e90('0x16')])_0x217645[_0x3e90('0x90')](_0x3e90('0x62'))||this[_0x3e90('0x94')][_0x3e90('0x6d')](_0x217645,_0x177bde);}const _0x27c737=G('$graveyard');this[_0x3e90('0xb')][_0x3e90('0x6d')](_0x3e90('0xdf'),_0x27c737),this[_0x3e90('0xdb')]['set'](_0x3e90('0xdf'),this[_0x3e90('0x38')](_0x27c737,0x1));const _0x518dbc=G(_0x3e90('0xdf'));this[_0x3e90('0x68')]['set'](_0x3e90('0xdf'),_0x518dbc),this[_0x3e90('0x3')][_0x3e90('0x6d')](_0x3e90('0xdf'),this['_makeIdsRoot'](_0x518dbc,0x1));const _0x3d0239=Array[_0x3e90('0x7e')](this[_0x3e90('0x68')])['map'](([_0x10c82b,_0x1a21b6])=>[_0x10c82b,q(_0x1a21b6)]);this[_0x3e90('0xeb')](this[_0x3e90('0xaa')],_0x3d0239,this['_markers'],_0x2928d5);}[_0x3e90('0x8f')](_0x3bf543){const _0x3bc81e=JSON[_0x3e90('0xfb')](_0x3bf543),_0x1376c9=this['editor'][_0x3e90('0xff')][_0x3e90('0xb5')]['document'],_0x25f4d3=new _0x59cbb8(_0x1376c9,_0x3bc81e[_0x3e90('0xc5')](_0x326ffc=>J(_0x326ffc,this[_0x3e90('0x79')])));return this['editor'][_0x3e90('0x4e')]['toModel'](_0x25f4d3);}[_0x3e90('0xeb')](_0x22f813,_0x1abf37,_0x48733b,_0x8fba07){const _0x4174b4=new Map(_0x1abf37),_0x39e6d5=new Map(_0x446191(_0x8fba07)),_0x3f0901=new Map();for(const [_0x1695d1,_0x1f63d3]of _0x48733b)_0x3f0901[_0x3e90('0x6d')](_0x1695d1,{'start':_0x1f63d3[_0x3e90('0x1e')][_0x3e90('0x63')](),'end':_0x1f63d3[_0x3e90('0x2e')][_0x3e90('0x63')](),'rootName':_0x1f63d3[_0x3e90('0x7d')]['rootName']});this['_savedMetaData'][_0x3e90('0x6d')](_0x22f813,{'roots':_0x4174b4,'markers':_0x3f0901,'rootsAttributes':_0x39e6d5});}[_0x3e90('0x8a')](_0x2e09df){this[_0x3e90('0x91')][_0x3e90('0xcb')](_0x2e09df);}[_0x3e90('0x59')](){this[_0x3e90('0xbe')](),this[_0x3e90('0x64')]=-0x1,this[_0x3e90('0xaa')]=-0x1,this['_savedMetaData'][_0x3e90('0xa1')](),this[_0x3e90('0xb6')](this[_0x3e90('0x9')]);}[_0x3e90('0xbe')](){this[_0x3e90('0x49')]['clear'](),this[_0x3e90('0xfd')]['clear'](),this[_0x3e90('0xf9')][_0x3e90('0xa1')](),this['_diffRoots'][_0x3e90('0xa1')](),this[_0x3e90('0x9b')]['clear'](),this[_0x3e90('0xb')][_0x3e90('0xa1')](),this[_0x3e90('0x56')][_0x3e90('0xa1')](),this[_0x3e90('0x3')]['clear'](),this[_0x3e90('0xdb')]['clear'](),this[_0x3e90('0x94')][_0x3e90('0xa1')](),this['_revisionId']=0x1,this['_startingRevisionId']=this[_0x3e90('0x0')];}[_0x3e90('0x38')](_0x18f592,_0x4ec0f1=null){let _0x90e943=null;_0x18f592['is']('documentFragment')||(_0x90e943=new _0x46eb7f(_0x18f592['name'],{'vid_start':null===_0x4ec0f1?this[_0x3e90('0x0')]++:_0x4ec0f1++}));const _0x52c1bc=[];for(const _0x1ab7bd of _0x18f592[_0x3e90('0x97')]())if(_0x1ab7bd['is'](_0x3e90('0x46'))){_0x52c1bc['push'](this['_makeIdsRoot'](_0x1ab7bd,_0x4ec0f1));const _0x2e903b=_0x52c1bc[_0x52c1bc[_0x3e90('0xce')]-0x1];null!==_0x4ec0f1&&(_0x4ec0f1=_0x2e903b['is']('element',_0x3e90('0x35'))?_0x2e903b[_0x3e90('0x3b')](_0x3e90('0x5'))+0x1:_0x2e903b[_0x3e90('0x3b')](_0x3e90('0xc6'))+0x1);}else for(let _0xc42226=0x0;_0xc42226<_0x1ab7bd['offsetSize'];_0xc42226++)_0x52c1bc[_0x3e90('0xcd')](new _0x46eb7f(_0x3e90('0x35'),{'vid':null===_0x4ec0f1?this[_0x3e90('0x0')]++:_0x4ec0f1++}));if(_0x18f592['is']('documentFragment')){const _0x2ddacc=G(_0x18f592[_0x3e90('0x2c')]);return _0x2ddacc[_0x3e90('0x58')](0x0,_0x52c1bc),_0x2ddacc;}return _0x90e943[_0x3e90('0xd3')]('vid_end',null===_0x4ec0f1?this[_0x3e90('0x0')]++:_0x4ec0f1++),_0x90e943[_0x3e90('0x58')](0x0,_0x52c1bc),_0x90e943;}['_calculateMetaData'](_0x4fbbe3,_0x366ce6,_0x569c2a){this[_0x3e90('0xbe')]();const {roots:_0x2f69ad,markers:_0x3cabcd,rootsAttributes:_0x55f87b}=this[_0x3e90('0x91')][_0x3e90('0x22')](_0x4fbbe3);this['_baseRoots']=new Map(_0x2f69ad),this[_0x3e90('0x56')]=new Map(_0x446191(_0x55f87b));for(const [_0x20bfa0,_0x5125ba]of this[_0x3e90('0xb')])if('$graveyard'!==_0x20bfa0&&(this['_diffRoots'][_0x3e90('0x6d')](_0x20bfa0,q(_0x5125ba)),this[_0x3e90('0x9b')]=new Map(_0x446191(_0x55f87b)),_0x569c2a)){const _0x30ddfb=this[_0x3e90('0x0')];this[_0x3e90('0x3')][_0x3e90('0x6d')](_0x20bfa0,this[_0x3e90('0x38')](_0x5125ba)),this[_0x3e90('0xdb')]['set'](_0x20bfa0,this['_makeIdsRoot'](_0x5125ba,_0x30ddfb));}this[_0x3e90('0xd6')]=this[_0x3e90('0x0')],this[_0x3e90('0x68')][_0x3e90('0x6d')](_0x3e90('0xdf'),q(this['_baseRoots'][_0x3e90('0x22')]('$graveyard'))),_0x569c2a&&this['_idsRoots'][_0x3e90('0x6d')](_0x3e90('0xdf'),this['_makeIdsRoot'](this[_0x3e90('0xb')][_0x3e90('0x22')](_0x3e90('0xdf'))));for(const [_0x5e0779,_0x128dc8]of _0x3cabcd){const _0xe326d8=this[_0x3e90('0xb')][_0x3e90('0x22')](_0x128dc8[_0x3e90('0x2c')]),_0x31f15=this[_0x3e90('0x68')][_0x3e90('0x22')](_0x128dc8[_0x3e90('0x2c')]),_0x55e9d0=new _0x377985(this[_0x3e90('0x4c')](_0x128dc8[_0x3e90('0x1e')],_0xe326d8),this[_0x3e90('0x4c')](_0x128dc8[_0x3e90('0x2e')],_0xe326d8)),_0x268dba=this[_0x3e90('0x20')](_0x55e9d0,_0x31f15);_0xe326d8[_0x3e90('0x16')]['set'](_0x5e0779,_0x55e9d0),this[_0x3e90('0x94')]['set'](_0x5e0779,_0x268dba);}this[_0x3e90('0x5f')](_0x4fbbe3,_0x366ce6,_0x569c2a);}[_0x3e90('0x5f')](_0x312027,_0x3695dd,_0x5cc349){for(const _0x22953f of this[_0x3e90('0x9')]['getOperations'](_0x312027,_0x3695dd))this[_0x3e90('0xfc')](_0x22953f,_0x5cc349);for(const _0x2c63e8 of this[_0x3e90('0x68')][_0x3e90('0x27')]())_0x2c63e8[_0x3e90('0x16')][_0x3e90('0xa1')]();for(const [_0x49f58,_0x2c7210]of this['_markers']){this[_0x3e90('0x68')]['get'](_0x2c7210[_0x3e90('0x7d')][_0x3e90('0x2c')])[_0x3e90('0x16')]['set'](_0x49f58,_0x2c7210[_0x3e90('0x63')]());}const _0x38ab3b=new Map(),_0x269617=new Map();for(const [_0x507f20,_0x49a9f9]of this[_0x3e90('0x68')])_0x38ab3b[_0x3e90('0x6d')](_0x507f20,q(_0x49a9f9)),_0x269617[_0x3e90('0x6d')](_0x507f20,this[_0x3e90('0x9b')][_0x3e90('0x22')](_0x507f20));this[_0x3e90('0xeb')](_0x3695dd,_0x38ab3b,this[_0x3e90('0x94')],_0x269617);}[_0x3e90('0xad')](_0x1dfc9a){const _0x59e326=Array[_0x3e90('0x7e')](this[_0x3e90('0x91')]['keys']());_0x59e326['sort']((_0x23ed08,_0x4c70e5)=>_0x23ed08-_0x4c70e5),_0x59e326['reverse']();for(const _0xf2eb3f of _0x59e326)if(_0xf2eb3f<_0x1dfc9a)return _0xf2eb3f;return Number[_0x3e90('0xb7')];}[_0x3e90('0x100')](_0x468836,_0x3372dc){const _0x39de58=Array['from'](_0x3372dc[_0x3e90('0x16')])['map'](([_0x32cf00,_0x2a9004])=>[_0x32cf00,this['_fixRange'](_0x2a9004,_0x468836)]);_0x468836[_0x3e90('0x16')]=new Map(_0x39de58);}['_transformMarkers'](_0x44b6ea){for(const _0x5c9e5b of this['_markers']['values']()){const _0x399a3b=_0x5c9e5b[_0x3e90('0x30')](_0x44b6ea),_0x8fb2e6=_0x377985[_0x3e90('0xb8')](_0x399a3b);_0x5c9e5b[_0x3e90('0x1e')]=_0x8fb2e6[_0x3e90('0x1e')],_0x5c9e5b[_0x3e90('0x2e')]=_0x8fb2e6[_0x3e90('0x2e')];}}[_0x3e90('0xfc')](_0x5141e7,_0x4e5aaf){if(_0x3e90('0x87')==_0x5141e7[_0x3e90('0x47')]||_0x3e90('0x14')==_0x5141e7[_0x3e90('0x47')])return void this[_0x3e90('0x101')](_0x5141e7,_0x4e5aaf);if(_0x3e90('0x43')==_0x5141e7[_0x3e90('0x47')]){const _0x195504=_0x5141e7['position'][_0x3e90('0x7d')][_0x3e90('0x2c')];this[_0x3e90('0x68')][_0x3e90('0x5b')](_0x195504)||(this['_diffRoots']['set'](_0x195504,G(_0x195504,!0x0)),this[_0x3e90('0x9b')][_0x3e90('0x6d')](_0x195504,{}),_0x4e5aaf&&this[_0x3e90('0x3')][_0x3e90('0x6d')](_0x195504,G(_0x195504,!0x0)));}else{if(_0x3e90('0x7c')==_0x5141e7[_0x3e90('0x47')]||_0x3e90('0x26')==_0x5141e7[_0x3e90('0x47')]||'changeRootAttribute'==_0x5141e7[_0x3e90('0x47')])return void this[_0x3e90('0x6a')](_0x5141e7);}const _0x4806d4=this[_0x3e90('0x5e')](_0x5141e7,this[_0x3e90('0x68')]);if(_0x3e90('0x25')!==_0x5141e7[_0x3e90('0x47')]&&(_0x4806d4[_0x3e90('0xda')](),this[_0x3e90('0x7')](_0x4806d4)),_0x4e5aaf)switch(_0x4806d4[_0x3e90('0x47')]){case _0x3e90('0x43'):this[_0x3e90('0x86')](_0x5141e7);break;case _0x3e90('0xd4'):case'remove':case _0x3e90('0xa0'):this[_0x3e90('0x75')](_0x5141e7);break;case _0x3e90('0x1c'):this['_handleMergeOperation'](_0x5141e7);break;case _0x3e90('0x1d'):this['_handleSplitOperation'](_0x5141e7);break;case _0x3e90('0x25'):this[_0x3e90('0xbc')](_0x5141e7);}}[_0x3e90('0x5e')](_0x3741bd,_0x2b4820){const _0x5e38a4=_0x3741bd['clone']();return _0x5e38a4['_authorId']=_0x3741bd[_0x3e90('0x40')],this[_0x3e90('0xf')](_0x5e38a4,_0x2b4820),_0x5e38a4;}[_0x3e90('0xd0')](_0x30af97){return _0x30af97[_0x3e90('0xc5')](_0x40752c=>{const _0x5a9aef=this[_0x3e90('0x70')](_0x40752c);return Number(_0x40752c[_0x3e90('0xca')][_0x3e90('0x3b')](_0x5a9aef));});}['_generateTape'](_0x5e39dd,_0x5a4844){if(_0x5e39dd['is']('element',_0x3e90('0x35')))_0x5a4844['push']({'item':_0x5e39dd,'type':_0x3e90('0x5d')});else{_0x5e39dd['is'](_0x3e90('0x46'))&&_0x5a4844[_0x3e90('0xcd')]({'item':_0x5e39dd,'type':_0x3e90('0x28')});for(const _0xa5aec2 of _0x5e39dd[_0x3e90('0x97')]())this[_0x3e90('0xd')](_0xa5aec2,_0x5a4844);_0x5e39dd['is']('element')&&_0x5a4844[_0x3e90('0xcd')]({'item':_0x5e39dd,'type':_0x3e90('0xd2')});}return _0x5a4844;}[_0x3e90('0xf0')](){const _0xa08363=new Map(this[_0x3e90('0x49')]),_0x782130=new Map(_0xa08363),_0x45de22=new Map(),_0x4ea98f={'insertions':{},'deletions':{}},_0x5c280a={'insertions':{},'deletions':{}},_0x323f34=new Map(),_0xc3150b=new Set([...this[_0x3e90('0xb')][_0x3e90('0x9f')](),...this[_0x3e90('0x68')][_0x3e90('0x9f')]()]);_0xc3150b[_0x3e90('0xcb')](_0x3e90('0xdf'));for(const _0x61da52 of _0xc3150b){const _0xb07912=this[_0x3e90('0x68')][_0x3e90('0x22')](_0x61da52)||G(_0x61da52,!0x1),_0x1bd4c5=this['_baseRoots'][_0x3e90('0x22')](_0x61da52)||G(_0x61da52,!0x1);_0xb07912[_0x3e90('0x34')]()||_0x1bd4c5[_0x3e90('0x34')]()?(_0x4ea98f[_0x3e90('0x55')][_0x61da52]=q(_0xb07912),_0x4ea98f[_0x3e90('0x67')][_0x61da52]=q(_0x1bd4c5),this['_copyMarkers'](_0x4ea98f[_0x3e90('0x67')][_0x61da52],_0x1bd4c5),this[_0x3e90('0x100')](_0x4ea98f['insertions'][_0x61da52],_0xb07912),_0x5c280a['insertions'][_0x61da52]=this['_generateTape'](this[_0x3e90('0x3')][_0x3e90('0x22')](_0x61da52),[]),_0x5c280a[_0x3e90('0x67')][_0x61da52]=this[_0x3e90('0xd')](this[_0x3e90('0xdb')][_0x3e90('0x22')](_0x61da52)||G(_0x61da52,!0x1),[])):_0xc3150b['delete'](_0x61da52);}for(const _0x207c74 of _0xc3150b){const _0x5c7cc1=_0x5c280a[_0x3e90('0x55')][_0x207c74];for(const _0x54f666 of _0x5c7cc1){const _0x5647c2=this['_getVidAttributeName'](_0x54f666),_0x1301e0=_0x54f666[_0x3e90('0xca')][_0x3e90('0x3b')](_0x5647c2);_0x782130[_0x3e90('0xcb')](_0x1301e0),_0x1301e0>=this[_0x3e90('0xd6')]&&_0x45de22[_0x3e90('0x6d')](_0x1301e0,_0xa08363[_0x3e90('0x22')](_0x1301e0));}}for(const _0x49cde2 of _0xc3150b){const _0x33422f=_0x5c280a[_0x3e90('0x55')][_0x49cde2],_0x2bf6eb=this[_0x3e90('0xd0')](_0x5c280a['deletions'][_0x49cde2]);let _0x15d4db=0x0;for(const _0x454ba2 of _0x33422f){const _0x51b2d8=this[_0x3e90('0x70')](_0x454ba2),_0x39379c=_0x454ba2[_0x3e90('0xca')][_0x3e90('0x3b')](_0x51b2d8);if(!_0x45de22['has'](_0x39379c)&&!_0x323f34[_0x3e90('0x5b')](_0x39379c)){if(_0x782130[_0x3e90('0x5b')](_0x39379c))_0x15d4db++;else{if(_0x39379c!=_0x2bf6eb[_0x15d4db]){const _0x24435c=_0xa08363[_0x3e90('0x22')](_0x39379c)||_0xa08363[_0x3e90('0x22')](_0x2bf6eb[_0x15d4db]);for(;_0x39379c!=_0x2bf6eb[_0x15d4db];)_0x782130[_0x3e90('0x5b')](_0x2bf6eb[_0x15d4db])||(_0x323f34[_0x3e90('0x6d')](_0x2bf6eb[_0x15d4db],_0x24435c),_0xa08363[_0x3e90('0x6d')](_0x2bf6eb[_0x15d4db],_0x24435c)),_0x15d4db++;}_0x15d4db++;}}}}for(const _0xa8ed31 of _0xc3150b){const _0x266488=_0x5c280a[_0x3e90('0x55')][_0xa8ed31];for(const _0x1360ef of _0x266488){const _0x16176a=this[_0x3e90('0x70')](_0x1360ef),_0x3860a9=_0x1360ef['item'][_0x3e90('0x3b')](_0x16176a);if(_0x323f34[_0x3e90('0x5b')](_0x3860a9)){const _0x547c56=_0x323f34[_0x3e90('0x22')](_0x3860a9);_0x782130[_0x3e90('0x5b')](_0x3860a9)||_0x782130[_0x3e90('0x6d')](_0x3860a9,{..._0x547c56}),_0x45de22[_0x3e90('0x6d')](_0x3860a9,{..._0x547c56});}}}for(const _0x4f6e57 of _0x782130[_0x3e90('0x9f')]())_0x4f6e57>=this[_0x3e90('0xd6')]&&_0x782130[_0x3e90('0xcb')](_0x4f6e57);const _0x312faa=new Map();for(const _0x4bcb95 of _0xc3150b){let _0x269001=_0x5c280a[_0x3e90('0x55')][_0x4bcb95];for(const _0x47adea of _0x269001)if(_0x47adea[_0x3e90('0xca')]['is']('element',_0x3e90('0xec'))){const _0x181e10=this['_getVidAttributeName'](_0x47adea),_0x159636=_0x47adea['item']['getAttribute'](_0x181e10);if(_0x45de22['has'](_0x159636)){const _0x30894b=_0x47adea['item'][_0x3e90('0x7a')]['parent'][_0x3e90('0x3b')](_0x3e90('0x3f')),_0x307ef0=_0x312faa[_0x3e90('0x22')](_0x30894b)||new Set();_0x307ef0['add'](_0x45de22['get'](_0x159636)[_0x3e90('0x7b')]),_0x312faa['set'](_0x30894b,_0x307ef0);}}_0x269001=_0x5c280a[_0x3e90('0x67')][_0x4bcb95];for(const _0x35ca12 of _0x269001)if(_0x35ca12[_0x3e90('0xca')]['is'](_0x3e90('0x46'),_0x3e90('0xec'))){const _0x5a63de=this[_0x3e90('0x70')](_0x35ca12),_0x5870bc=_0x35ca12[_0x3e90('0xca')][_0x3e90('0x3b')](_0x5a63de);if(_0x782130[_0x3e90('0x5b')](_0x5870bc)){const _0x313071=_0x35ca12['item']['parent']['parent'][_0x3e90('0x3b')](_0x3e90('0x3f')),_0x2ceecd=_0x312faa[_0x3e90('0x22')](_0x313071)||new Set();_0x2ceecd['add'](_0x782130[_0x3e90('0x22')](_0x5870bc)['userId']),_0x312faa[_0x3e90('0x6d')](_0x313071,_0x2ceecd);}}for(const _0x444286 of _0x312faa['keys']())(_0x45de22[_0x3e90('0x5b')](_0x444286)||_0x782130[_0x3e90('0x5b')](_0x444286))&&_0x312faa[_0x3e90('0xcb')](_0x444286);}for(const _0x1e9b0e of _0xc3150b){const _0x38a5b7=_0x5c280a[_0x3e90('0x55')][_0x1e9b0e];let _0x451a30=null,_0x1e01cb=null;for(const _0x20d680 of _0x38a5b7){const _0xec3239=this['_getVidAttributeName'](_0x20d680),_0x5e5931=_0x20d680[_0x3e90('0xca')][_0x3e90('0x3b')](_0xec3239),_0x2b0cfa=_0x312faa['get'](_0x5e5931);_0x2b0cfa&&_0x3e90('0x28')==_0x20d680[_0x3e90('0x47')]&&(_0x451a30=Array[_0x3e90('0x7e')](_0x2b0cfa)[0x0],_0x1e01cb=_0x20d680[_0x3e90('0xca')]['getAttribute']('vid_end')),_0x451a30&&(_0x782130['set'](_0x5e5931,{'userId':_0x451a30}),_0x45de22['set'](_0x5e5931,{'userId':_0x451a30})),_0x5e5931==_0x1e01cb&&(_0x451a30=null,_0x1e01cb=null);}}const _0x4c58d5={},_0x549899=new Set();for(const _0xbc28ea of _0xc3150b){const _0x590080=_0x4ea98f[_0x3e90('0x67')][_0xbc28ea],_0x6d218d=_0x4ea98f[_0x3e90('0x55')][_0xbc28ea];for(const {userId:_0x5a1b7c}of this['_touchedMarkers'][_0x3e90('0x27')]())null!==_0x5a1b7c&&_0x549899[_0x3e90('0x7f')](_0x5a1b7c);for(const {userId:_0x218c27}of this[_0x3e90('0xf9')][_0x3e90('0x27')]())null!==_0x218c27&&_0x549899[_0x3e90('0x7f')](_0x218c27);this['_markChanges'](_0x6d218d,_0x5c280a[_0x3e90('0x55')][_0xbc28ea],_0x45de22,'insertion',_0x549899),this[_0x3e90('0xed')](_0x590080,_0x5c280a[_0x3e90('0x67')][_0xbc28ea],_0x782130,_0x3e90('0xc3'),_0x549899),_0x4c58d5[_0xbc28ea]={'insertions':this['_prepareViewToSave'](_0x6d218d),'deletions':this[_0x3e90('0x32')](_0x590080),'attachChange':this[_0x3e90('0xf9')]['get'](_0xbc28ea)||null,'attributesBefore':_0x446191(this[_0x3e90('0x56')][_0x3e90('0x22')](_0xbc28ea))||{},'attributesAfter':_0x446191(this['_diffRootsAttributes']['get'](_0xbc28ea))};}return{'diffData':_0x4c58d5,'authorsIds':Array['from'](_0x549899)};}['_processRootBeforeSave'](_0x39fa5f){for(const [,_0x4c5713]of _0x39fa5f['markers']){const _0x1af484=_0x4c5713[_0x3e90('0x1e')]['getAncestors']()['filter'](_0x5070b2=>_0x3e90('0xec')==_0x5070b2[_0x3e90('0xc')]);for(const _0x4e09ea of _0x1af484)0x1==_0x4e09ea[_0x3e90('0xee')]&&_0x4e09ea['getChild'](0x0)['is']('element',_0x3e90('0x52'))&&_0x4e09ea['getChild'](0x0)['_setAttribute'](_0x3e90('0xd5'),!0x0);}}[_0x3e90('0x32')](_0x4225b4){this[_0x3e90('0x9a')](_0x4225b4);const _0x9650ba=this['editor'][_0x3e90('0x4e')]['toView'](_0x4225b4,{}),_0x3dfcc4=Array[_0x3e90('0x7e')](_0x9650ba['getChildren']())[_0x3e90('0xc5')](_0x5b9fcf=>this[_0x3e90('0x4f')](_0x5b9fcf));return JSON[_0x3e90('0xa4')](_0x3dfcc4);}[_0x3e90('0x4f')](_0x3006dd){if(_0x3006dd['is'](_0x3e90('0x35')))return _0x3006dd[_0x3e90('0x4e')];{const _0x593510=_0x3006dd;return{'type':Object[_0x3e90('0x9f')](B)['find'](_0x360e7e=>_0x3006dd instanceof B[_0x360e7e]),'name':_0x593510[_0x3e90('0xc')],'attributes':Array[_0x3e90('0x7e')](_0x593510[_0x3e90('0x41')]()),'children':Array[_0x3e90('0x7e')](_0x593510[_0x3e90('0x97')]())['map'](_0x324282=>this['_getViewJson'](_0x324282))};}}[_0x3e90('0xed')](_0x25d4ac,_0x45f14a,_0x564fae,_0x292daa,_0x28c004){let _0x25e8c8=null,_0x345e19=null,_0x197e7f=0x0;const _0x15f873=this[_0x3e90('0x79')][_0x3e90('0xf8')];for(let _0x5b97c4=0x0;_0x5b97c4<_0x45f14a['length'];_0x5b97c4++){const _0x4bde4d=this[_0x3e90('0x70')](_0x45f14a[_0x5b97c4]),_0x331f17=_0x45f14a[_0x5b97c4]['item']['getAttribute'](_0x4bde4d),_0x391a39=_0x564fae[_0x3e90('0x22')](_0x331f17),_0x288258=_0x5b97c4==_0x45f14a[_0x3e90('0xce')]-0x1;(!_0x25e8c8&&_0x391a39&&(_0x25e8c8=_0x391a39,_0x345e19=_0x45f14a[_0x5b97c4]),_0x25e8c8&&(!_0x391a39||_0x391a39[_0x3e90('0x7b')]!=_0x25e8c8[_0x3e90('0x7b')]))&&(_0x13828f(_0x391a39,L(_0x345e19,_0x25d4ac,_0x15f873),L(_0x45f14a[_0x5b97c4],_0x25d4ac,_0x15f873)),_0x25e8c8=_0x391a39||null,_0x345e19=_0x391a39?_0x45f14a[_0x5b97c4]:null),_0x25e8c8&&_0x288258&&_0x13828f(_0x391a39,L(_0x345e19,_0x25d4ac,_0x15f873),W(_0x45f14a[_0x5b97c4],_0x25d4ac,_0x15f873));}function _0x13828f(_0x1b2528,_0x4016b5,_0x28c08d){const _0x1ad13e=_0x25e8c8[_0x3e90('0x7b')],_0x574a5c='revision:'+_0x292daa+':'+_0x1ad13e+':'+_0x197e7f++,_0x19197f=_0x15f873['createRange'](_0x4016b5,_0x28c08d);_0x25d4ac[_0x3e90('0x16')]['set'](_0x574a5c,_0x19197f),null!==_0x1ad13e&&_0x28c004[_0x3e90('0x7f')](_0x1ad13e);}}['_getVidAttributeName'](_0x14758e){switch(_0x14758e['type']){case'elementStart':return _0x3e90('0x3f');case _0x3e90('0xd2'):return _0x3e90('0xc6');default:return _0x3e90('0x5');}}[_0x3e90('0xf')](_0x173343,_0x1a6578){_0x173343[_0x3e90('0x89')]=null;for(const _0x39dab0 in _0x173343){const _0x47f399=_0x173343[_0x39dab0];if(_0x47f399 instanceof _0x24d00e){const _0x3d6da0=_0x1a6578[_0x3e90('0x22')](_0x47f399['root'][_0x3e90('0x2c')]);_0x173343[_0x39dab0]=this[_0x3e90('0x4c')](_0x47f399,_0x3d6da0);}if(_0x47f399 instanceof _0x377985){const _0x3d5378=_0x1a6578['get'](_0x47f399[_0x3e90('0x7d')][_0x3e90('0x2c')]);_0x173343[_0x39dab0]=this[_0x3e90('0x20')](_0x47f399,_0x3d5378);}_0x3e90('0x7d')===_0x39dab0&&(_0x173343[_0x3e90('0x7d')]=_0x1a6578[_0x3e90('0x22')](_0x173343[_0x3e90('0x7d')][_0x3e90('0x2c')]));}}[_0x3e90('0x20')](_0x46bba2,_0x48cf7a){return this['editor'][_0x3e90('0xf8')]['createRange'](this['_fixPosition'](_0x46bba2[_0x3e90('0x1e')],_0x48cf7a),this[_0x3e90('0x4c')](_0x46bba2[_0x3e90('0x2e')],_0x48cf7a));}[_0x3e90('0x4c')](_0x36e3d0,_0xc7375){return this[_0x3e90('0x79')][_0x3e90('0xf8')][_0x3e90('0xa2')](_0xc7375,_0x36e3d0[_0x3e90('0x2')],_0x36e3d0[_0x3e90('0x4a')]);}[_0x3e90('0x86')](_0x2d2bfe){const _0x4b7118=this[_0x3e90('0x3')][_0x3e90('0x22')](_0x2d2bfe[_0x3e90('0x15')]['root']['rootName']),_0x59701f=this[_0x3e90('0x4c')](_0x2d2bfe[_0x3e90('0x15')],_0x4b7118),_0x7a3aa1=null===_0x2d2bfe[_0x3e90('0x40')]?null:_0x2d2bfe[_0x3e90('0x40')]||this[_0x3e90('0x79')][_0x3e90('0x1f')]['get'](_0x3e90('0xb9'))['me']['id'],_0x3ca5c6=_0x59701f[_0x3e90('0x7a')],_0xf0c9e4=this[_0x3e90('0x0')],_0x264def=[];for(const _0x31a855 of _0x2d2bfe[_0x3e90('0xcf')])if(_0x31a855['is'](_0x3e90('0x46')))_0x264def[_0x3e90('0xcd')](this['_makeIdsRoot'](_0x31a855));else for(let _0x4b17c3=0x0;_0x4b17c3<_0x31a855[_0x3e90('0xa6')];_0x4b17c3++)_0x264def[_0x3e90('0xcd')](new _0x46eb7f(_0x3e90('0x35'),{'vid':this[_0x3e90('0x0')]++}));const _0x11e761=this['_revisionId'];for(let _0x2c0513=_0xf0c9e4;_0x2c0513<_0x11e761;_0x2c0513++)this['_touched'][_0x3e90('0x6d')](_0x2c0513,{'userId':_0x7a3aa1});_0x3ca5c6['_insertChild'](_0x59701f[_0x3e90('0x84')],_0x264def);}[_0x3e90('0x75')](_0x1d7820){(_0x1d7820=this[_0x3e90('0x5e')](_0x1d7820,this[_0x3e90('0x3')]))[_0x3e90('0xda')]();const _0x64dfeb=null===_0x1d7820[_0x3e90('0x40')]?null:_0x1d7820[_0x3e90('0x40')]||this['editor'][_0x3e90('0x1f')][_0x3e90('0x22')](_0x3e90('0xb9'))['me']['id'],_0x265879=_0x1d7820['getMovedRangeStart'](),_0x4dfccf=_0x265879['parent'],_0x54060e=_0x265879[_0x3e90('0x84')];!function _0x4bb9ab(_0xac17e5,_0x38890f,_0x5e5480,_0x4865ab){for(let _0x2058cf=_0x5e5480;_0x2058cf<_0x4865ab;_0x2058cf++){const _0x501d69=_0x38890f[_0x3e90('0xa7')](_0x2058cf);_0x501d69['is']('element',_0x3e90('0x35'))?_0xac17e5[_0x3e90('0x6d')](_0x501d69['getAttribute'](_0x3e90('0x5')),{'userId':_0x64dfeb}):(_0xac17e5[_0x3e90('0x6d')](_0x501d69[_0x3e90('0x3b')](_0x3e90('0x3f')),{'userId':_0x64dfeb}),_0x4bb9ab(_0xac17e5,_0x501d69,0x0,_0x501d69[_0x3e90('0xee')]),_0xac17e5[_0x3e90('0x6d')](_0x501d69[_0x3e90('0x3b')]('vid_end'),{'userId':_0x64dfeb}));}}(this[_0x3e90('0x49')],_0x4dfccf,_0x54060e,_0x54060e+_0x1d7820[_0x3e90('0x2d')]);}['_handleMergeOperation'](_0x48b353){const _0x5f5d0b=null===(_0x48b353=this[_0x3e90('0x5e')](_0x48b353,this['_idsRoots']))[_0x3e90('0x40')]?null:_0x48b353[_0x3e90('0x40')]||this['editor']['plugins'][_0x3e90('0x22')](_0x3e90('0xb9'))['me']['id'],_0x2f2d32=_0x48b353['targetPosition'][_0x3e90('0x7a')],_0x87cb02=_0x48b353[_0x3e90('0x83')][_0x3e90('0x7a')],_0x19932=_0x2f2d32[_0x3e90('0x3b')]('vid_end'),_0x4fc0b4=_0x87cb02['getAttribute'](_0x3e90('0x3f'));_0x2f2d32[_0x3e90('0xd3')](_0x3e90('0xc6'),_0x87cb02[_0x3e90('0x3b')](_0x3e90('0xc6'))),_0x87cb02['_setAttribute'](_0x3e90('0xc6'),_0x19932),this['_touched'][_0x3e90('0x6d')](_0x4fc0b4,{'userId':_0x5f5d0b}),this[_0x3e90('0x49')][_0x3e90('0x6d')](_0x19932,{'userId':_0x5f5d0b}),_0x48b353['_execute']();}[_0x3e90('0x61')](_0x1fa0da){const _0x28ec67=null===(_0x1fa0da=this[_0x3e90('0x5e')](_0x1fa0da,this['_idsRoots']))[_0x3e90('0x40')]?null:_0x1fa0da[_0x3e90('0x40')]||this[_0x3e90('0x79')][_0x3e90('0x1f')][_0x3e90('0x22')](_0x3e90('0xb9'))['me']['id'],_0x15d04f=_0x1fa0da[_0x3e90('0x6c')],_0x2e449a=_0x1fa0da[_0x3e90('0x2b')]['parent'];_0x1fa0da[_0x3e90('0xda')]();const _0x99030=_0x2e449a[_0x3e90('0x3b')]('vid_end'),_0x152cf4=_0x1fa0da[_0x3e90('0x6')][_0x3e90('0x11')];if(_0x15d04f){const _0x3b7b91=_0x152cf4[_0x3e90('0x3b')]('vid_end'),_0x3acb0a=_0x2e449a['getAttribute'](_0x3e90('0xc6'));_0x2e449a[_0x3e90('0xd3')]('vid_end',_0x3b7b91),_0x152cf4[_0x3e90('0xd3')](_0x3e90('0xc6'),_0x3acb0a),this[_0x3e90('0x49')][_0x3e90('0x6d')](_0x2e449a[_0x3e90('0x3b')]('vid_end'),{'userId':_0x28ec67}),this[_0x3e90('0x49')]['set'](_0x152cf4[_0x3e90('0x3b')]('vid_start'),{'userId':_0x28ec67});}else{const _0x9680bc=this[_0x3e90('0x0')]++,_0x3981f6=this[_0x3e90('0x0')]++;_0x2e449a['_setAttribute'](_0x3e90('0xc6'),_0x9680bc),_0x152cf4[_0x3e90('0xd3')]('vid_start',_0x3981f6),_0x152cf4[_0x3e90('0xd3')]('vid_end',_0x99030),this[_0x3e90('0x49')][_0x3e90('0x6d')](_0x9680bc,{'userId':_0x28ec67}),this[_0x3e90('0x49')]['set'](_0x3981f6,{'userId':_0x28ec67});}}[_0x3e90('0xbc')](_0x52f9a7){if(!_0x52f9a7[_0x3e90('0x44')])return;const _0x2e5b20=(_0x52f9a7=this[_0x3e90('0x5e')](_0x52f9a7,this[_0x3e90('0x68')]))[_0x3e90('0xf1')]?_0x52f9a7[_0x3e90('0xf1')][_0x3e90('0x7d')]:null,_0x2475eb=_0x52f9a7[_0x3e90('0x45')]?_0x52f9a7['newRange'][_0x3e90('0x7d')]:null;_0x2e5b20&&this['_markers'][_0x3e90('0xcb')](_0x52f9a7[_0x3e90('0xc')]),_0x2475eb&&this[_0x3e90('0x94')][_0x3e90('0x6d')](_0x52f9a7['name'],_0x52f9a7[_0x3e90('0x45')][_0x3e90('0x63')]());const _0x33f239=null===_0x52f9a7['_authorId']?null:_0x52f9a7[_0x3e90('0x40')]||this[_0x3e90('0x79')][_0x3e90('0x1f')][_0x3e90('0x22')](_0x3e90('0xb9'))['me']['id'],_0x273c48=_0x52f9a7[_0x3e90('0xc')];if(!this[_0x3e90('0xfd')][_0x3e90('0x5b')](_0x273c48))return void this[_0x3e90('0xfd')][_0x3e90('0x6d')](_0x273c48,{'range':_0x52f9a7[_0x3e90('0xf1')],'userId':_0x33f239});const _0x3adbda=this[_0x3e90('0xfd')][_0x3e90('0x22')](_0x273c48),_0xce6f29=_0x3adbda[_0x3e90('0x18')],_0x450a0e=_0x52f9a7['newRange'];null==_0xce6f29&&null==_0x450a0e||_0xce6f29&&_0x450a0e&&_0xce6f29['isEqual'](_0x450a0e)?this[_0x3e90('0xfd')]['delete'](_0x52f9a7[_0x3e90('0xc')]):_0x3adbda[_0x3e90('0x7b')]=_0x33f239;}[_0x3e90('0x101')](_0x559599,_0x5f60df){this[_0x3e90('0x68')][_0x3e90('0x5b')](_0x559599[_0x3e90('0x2c')])?this[_0x3e90('0x68')]['get'](_0x559599[_0x3e90('0x2c')])['_isAttached']=_0x559599[_0x3e90('0x98')]:(this[_0x3e90('0x68')]['set'](_0x559599['rootName'],G(_0x559599[_0x3e90('0x2c')],!0x0)),this[_0x3e90('0x9b')][_0x3e90('0x6d')](_0x559599[_0x3e90('0x2c')],{}),_0x5f60df&&this[_0x3e90('0x3')][_0x3e90('0x6d')](_0x559599[_0x3e90('0x2c')],G(_0x559599[_0x3e90('0x2c')],!0x0)));const _0x36c1=null===_0x559599[_0x3e90('0x40')]?null:_0x559599[_0x3e90('0x40')]||this[_0x3e90('0x79')][_0x3e90('0x1f')][_0x3e90('0x22')](_0x3e90('0xb9'))['me']['id'],_0x3d675b=this[_0x3e90('0xf9')]['get'](_0x559599[_0x3e90('0x2c')]);_0x3d675b&&_0x3d675b['userId']===_0x36c1?this[_0x3e90('0xf9')][_0x3e90('0xcb')](_0x559599[_0x3e90('0x2c')]):this['_touchedRoots'][_0x3e90('0x6d')](_0x559599['rootName'],{'userId':_0x36c1,'isAttached':_0x559599[_0x3e90('0x98')]});}[_0x3e90('0x6a')](_0xdb596d){const _0x14d939=this[_0x3e90('0x9b')][_0x3e90('0x22')](_0xdb596d[_0x3e90('0x7d')][_0x3e90('0x2c')]);null===_0xdb596d[_0x3e90('0x8c')]?delete _0x14d939[_0xdb596d[_0x3e90('0xa')]]:_0x14d939[_0xdb596d[_0x3e90('0xa')]]=_0xdb596d[_0x3e90('0x8c')];}}function q(_0x74beed){const _0x518c99=G(_0x74beed[_0x3e90('0x2c')],_0x74beed[_0x3e90('0x34')]());for(const _0x24c001 of _0x74beed[_0x3e90('0x97')]()){const _0x259201=_0x24c001[_0x3e90('0x60')](!0x0);_0x518c99[_0x3e90('0x73')](_0x259201);}return _0x518c99;}function G(_0x1faa8e,_0xed353e=!0x0){const _0x2f7685=new _0x5942d3();return _0x2f7685['rootName']=_0x1faa8e,_0x2f7685[_0x3e90('0x21')]=_0xed353e,_0x2f7685['isAttached']=()=>_0x2f7685[_0x3e90('0x21')],_0x2f7685;}function L(_0x3be63e,_0x5316b0,_0x235fdd){const _0x3a2062=_0x3e90('0xd2')==_0x3be63e[_0x3e90('0x47')]?_0x235fdd['createPositionAt'](_0x3be63e[_0x3e90('0xca')],'end'):_0x235fdd[_0x3e90('0xb3')](_0x3be63e[_0x3e90('0xca')]);return _0x235fdd[_0x3e90('0xa2')](_0x5316b0,_0x3a2062[_0x3e90('0x2')],_0x3a2062[_0x3e90('0x4a')]);}function W(_0x335238,_0x73f8d0,_0x3bb4f5){const _0x37bd9e=_0x3e90('0x28')==_0x335238[_0x3e90('0x47')]?_0x3bb4f5[_0x3e90('0x4')](_0x335238[_0x3e90('0xca')],0x0):_0x3bb4f5[_0x3e90('0xac')](_0x335238[_0x3e90('0xca')]);return _0x3bb4f5[_0x3e90('0xa2')](_0x73f8d0,_0x37bd9e[_0x3e90('0x2')],_0x37bd9e['stickiness']);}
23
+ const _0x3413=['source','_handleOperation','RevisionTracker','documentFragment','path','position','_loadState','_getFromVersion','_revisionDataBuilder','_handleSplitOperation','_markers','elementEnd','length','filter','rootsAttributes','attributes','_update','_loadedStateData','useFillerType','_startingVersion','_source','addRevisionData','dataToMarker','text','_setAttribute','markerToData','from','addRevision','insertions','type','_getState','_removeRevisionMarkers','_getVidAttributeName','_processRootBeforeSave','_execute','createPositionBefore','NEGATIVE_INFINITY','has','data','createPositionAfter','fromVersion','_loadRevisionData','split','_makeIdsRoot','_diffRoots','_saveMetaData','authorsIds','_reset','getData','createPositionFromPath','createRange','fromEntries','getMovedRangeStart','insertion','add','isEnabled','_baseRoots','getTime','getNodeByPath','editing','dataDowncast','start','parse','toModel','history','_isAttached','PendingActions','element','range','getChild','repository','map','getChildren','values','roots','_operations','childCount','collaboration.channelId','_fixRange','affectsData','howMany','_handleMergeOperation','_setConversion','nodes','Users','keys','marker','clear','setRevisionData','_fixPosition','sendBufferedUpdates','deletions','_transformMarkers','createdAt','_touchedMarkers','_touched','createRangeIn','offsetSize','changeRootAttribute','insert','toVersion','then','getRange','stickiness','getRevisions','creator','_diffRootsAttributes','sourcePosition','markers','vid','createRevision','delete','_cloneOperation','_makeRevision','_touchedRoots','getLatestVersion','_handleMoveOperation','set','$graveyard','_makeModelFromViewString','revision-end','_applyOperations','_initialRevisionId','_idsRoots','baseVersion','_prepareViewToSave','for','document','editor','key','_handleRootOperation','buildRevisionData','model','_startingRevisionId','_appendChild','adapter','_createCurrentRevision','PENDING_ACTION_REVISION_HISTORY','getAttributes','getUser','init','offset','vid_end','authors','view','plugins','_getPreviousFrom','revisionHistory.resumeUnsavedRevision','getTransformedByOperation','forEach','creatorId','isReady','get','_findInsertionIndex','children','getWalker','processor','userId','getRevision','oldRange','isAdd','previousPosition','_createInitialRevision','_handleRootAttributeOperation','_removeMetaData','attachChange','vid_start','toData','keepParagraph','RealTimeCollaborationClient','size','version','getIndex','_continueCurrentRevision','getRoot','push','root','clone','item','updateRevisions','startsWith','toView','locale','loadState','getRevisionRootsAttributes','getCurrentRevisionId','_savedMetaData','saveRevision','move','_getBaseVids','initialData','_authorId','stringify','merge','tableCell','_markChanges','end','find','graveyardPosition','string','resolve','_addPendingAction','_pendingAction','attributesAfter','_removePendingAction','currentRevision','targetPosition','name','includes','reInit','default','addRootAttribute','$text','isAttached','_baseRootsAttributes','bind','_clone','_insertChild','getAncestors','_getViewJson','revision','_handleInsertOperation','getAttribute','_fixOperation','conversion','_generateTape','_handleMarkerOperation','parent','data-revision-','finally','_lastFrom','getRevisionDocumentData','getRootNames','elementStart','_baseIdsRoots','slice','rootName','_revisionId','sort','update','RevisionsRepository','insertionPosition','config','newRange','addRoot','revision:','_bufferUpdate','_lastTo','newValue','_bufferedUpdates','diffData','_copyMarkers','isEqual','ready','reverse'];(function(_0x30a4d1,_0x34139a){const _0x5779a1=function(_0xad33bb){while(--_0xad33bb){_0x30a4d1['push'](_0x30a4d1['shift']());}};_0x5779a1(++_0x34139a);}(_0x3413,0x70));const _0x5779=function(_0x30a4d1,_0x34139a){_0x30a4d1=_0x30a4d1-0x0;let _0x5779a1=_0x3413[_0x30a4d1];return _0x5779a1;};import{Users as _0x2fb386}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0xa4e993,PendingActions as _0x36ba0a}from'ckeditor5/src/core';import{logWarning as _0x437c49,uid as _0x54a455}from'ckeditor5/src/utils';import{Position as _0x59e44b,Range as _0x3b7305,Element as _0x531e94,DocumentFragment as _0x2d3eef,ViewText as _0x3c27ae,ViewElement as _0xf5a0a5,ViewContainerElement as _0x18af0b,ViewAttributeElement as _0x2588ec,ViewEmptyElement as _0x52cdad,ViewRawElement as _0x4f2d83,ViewUIElement as _0x3271a8,ViewDocumentFragment as _0x38fcfa}from'ckeditor5/src/engine';import _0x5ce2f7 from'./revisionsrepository';import{getTranslation as _0x2f71b0}from'./utils/common-translations';import{cloneDeep as _0xdaae97,isEqual as _0x4a1bba}from'lodash-es';const B={'c':_0x18af0b,'a':_0x2588ec,'e':_0x52cdad,'r':_0x4f2d83,'u':_0x3271a8};export default class l extends _0xa4e993{static get['pluginName'](){return _0x5779('0x91');}static get['requires'](){return[_0x2fb386,_0x5ce2f7,_0x36ba0a];}constructor(_0x11deb3){super(_0x11deb3),this['adapter']=null,this[_0x5779('0x5d')]=null,this['_revisionDataBuilder']=new H(this['editor']),this[_0x5779('0xa')]=this['editor'][_0x5779('0x82')][_0x5779('0x28')](_0x5779('0xdc'))||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2f59e5=_0x54a455();this[_0x5779('0xa3')]={'history':this['editor'][_0x5779('0x14')]['document']['history'],'getLatestVersion':()=>Promise[_0x5779('0x58')](this['editor'][_0x5779('0x14')]['document'][_0x5779('0x3b')]),'getCurrentRevisionId':()=>_0x2f59e5},this['set'](_0x5779('0x27'),!0x1),this[_0x5779('0x5')](_0x5779('0xc6'),!0x0),this[_0x5779('0x5')]('_isPendingUpdate',!0x1),this[_0x5779('0x10')]['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this[_0x5779('0x10')][_0x5779('0x70')][_0x5779('0xe')]('upcast')[_0x5779('0xa5')]({'view':_0x5779('0x6c')});}[_0x5779('0x1c')](){this['repository']=this[_0x5779('0x10')][_0x5779('0x21')]['get'](_0x5779('0x80')),this[_0x5779('0xe1')](),this['editor']['data']['on'](_0x5779('0x8d'),()=>{const _0x146441=this[_0x5779('0xd5')][_0x5779('0x2e')](0x0),_0x5a0724=_0x146441&&null===_0x146441['creator']?_0x146441:null;if(this[_0x5779('0x3d')]=!!_0x5a0724&&this[_0x5779('0x10')][_0x5779('0x82')][_0x5779('0x28')](_0x5779('0x23')),this[_0x5779('0x10')][_0x5779('0x21')][_0x5779('0xb4')](_0x5779('0x39'))){const _0x58e820=this[_0x5779('0xa3')]['getCurrentRevisionId'](),_0x12c6a8=this[_0x5779('0xd5')][_0x5779('0x2e')](_0x58e820);if(_0x12c6a8)this[_0x5779('0xa2')]=_0x12c6a8[_0x5779('0xb7')],this[_0x5779('0x3d')]=!0x1;else{const _0x11a1bb=this[_0x5779('0xa3')][_0x5779('0xcf')][_0x5779('0xda')][_0x5779('0x55')](_0x36ff88=>!_0x36ff88['_isInit']),_0x54f911=_0x11a1bb?_0x11a1bb[_0x5779('0xc')]:this[_0x5779('0xa3')][_0x5779('0xcf')]['version'];_0x146441?(_0x146441[_0x5779('0xf3')]<_0x54f911&&_0x146441[_0x5779('0x9f')]({'toVersion':_0x54f911}),this[_0x5779('0x3d')]?(this[_0x5779('0xa3')][_0x5779('0x49')]=()=>_0x5a0724['id'],this[_0x5779('0xa2')]=_0x5a0724['fromVersion']):(this[_0x5779('0xa2')]=_0x146441[_0x5779('0xf3')],this[_0x5779('0x3d')]=!0x1)):(this[_0x5779('0xa2')]=_0x54f911,this['_continueCurrentRevision']=!0x1);}}else _0x5a0724&&(this[_0x5779('0x10')]['model'][_0x5779('0xf')]['history']['version']=Math['max'](_0x5a0724[_0x5779('0xf3')],this['editor'][_0x5779('0x14')][_0x5779('0xf')][_0x5779('0xcf')][_0x5779('0x3b')]),_0x5a0724[_0x5779('0xb7')]===_0x5a0724[_0x5779('0xf3')]?(0x0!==_0x5a0724[_0x5779('0xb7')]&&(this[_0x5779('0xa3')][_0x5779('0x49')]=()=>_0x5a0724['id']),this[_0x5779('0x3d')]=!0x1):this[_0x5779('0x3d')]&&(this[_0x5779('0xa3')]['getCurrentRevisionId']=()=>_0x5a0724['id'],this['_startingVersion']=_0x5a0724[_0x5779('0xb7')])),this[_0x5779('0x3d')]||(this[_0x5779('0xa2')]=this[_0x5779('0x10')][_0x5779('0x14')]['document'][_0x5779('0x3b')]);this['_revisionDataBuilder'][_0x5779('0x1c')](this[_0x5779('0xa3')][_0x5779('0xcf')]),this[_0x5779('0x32')](this[_0x5779('0xa2')]),this[_0x5779('0x18')](this[_0x5779('0xa2')]),this[_0x5779('0x17')]&&this[_0x5779('0xe9')]();}),this[_0x5779('0x67')]('isReady')['to'](this,'_isPendingUpdate',_0x18ce2b=>!_0x18ce2b);}async['afterInit'](){if(this[_0x5779('0xd5')][_0x5779('0x9b')]>0x0){const _0x30205e=this['repository']['getRevision'](0x0),_0x5dccd9=await this[_0x5779('0x77')](_0x30205e),_0x4f3e04=await this[_0x5779('0x48')](_0x30205e);this['_replaceEditorDataWithRevisionData'](_0x5dccd9,_0x4f3e04);}}['setSource'](_0x5356e1){this[_0x5779('0xa3')]=_0x5356e1;}async[_0x5779('0x7f')](){const _0x5a31ee=await this[_0x5779('0xa3')][_0x5779('0x3')]();if(_0x5a31ee>this[_0x5779('0x5d')][_0x5779('0xf3')]){await this[_0x5779('0x95')]();const _0x43f59c=this['buildRevisionData']({'revision':this[_0x5779('0x5d')],'to':_0x5a31ee});_0x43f59c[_0x5779('0x1f')]=_0x43f59c[_0x5779('0xbd')]['map'](_0x40de40=>this['editor'][_0x5779('0x21')][_0x5779('0x28')](_0x5779('0xe3'))[_0x5779('0x1b')](_0x40de40)),this[_0x5779('0x5d')][_0x5779('0x9f')](_0x43f59c);}}async['_loadState'](){this['_continueCurrentRevision']&&!this[_0x5779('0xa0')]&&(await this['_loadRevisionData'](this['currentRevision']),this[_0x5779('0x97')][_0x5779('0x47')](this[_0x5779('0x5d')]),this[_0x5779('0xa0')]={'fromVersion':this[_0x5779('0x5d')][_0x5779('0xb7')],'authors':this[_0x5779('0x5d')][_0x5779('0x1f')][_0x5779('0x7b')]()});}async[_0x5779('0x4b')](_0x3b55d4={},_0x2a7f5a=null){const _0x38eb67=[];await this[_0x5779('0x95')](),this['_continueCurrentRevision']=!0x1,_0x2a7f5a>this[_0x5779('0x5d')][_0x5779('0xf3')]&&(_0x2a7f5a=null),null===_0x2a7f5a&&(_0x2a7f5a=await this['_source'][_0x5779('0x3')]());const _0xaccd2e=this[_0x5779('0x96')](_0x2a7f5a),_0x2fc9f1=this[_0x5779('0x13')]({'from':_0xaccd2e,'to':_0x2a7f5a});if(this[_0x5779('0x5d')][_0x5779('0xf3')]<_0x2a7f5a){const _0x32e7ea=this[_0x5779('0x13')]({'revision':this[_0x5779('0x5d')],'from':_0x2a7f5a,'to':_0x2a7f5a});_0x32e7ea[_0x5779('0x1f')]=[],_0x32e7ea['authorsIds']=[],_0x32e7ea['id']=this[_0x5779('0x5d')]['id'],this['currentRevision'][_0x5779('0x9f')](_0x32e7ea,!0x0),delete _0x32e7ea[_0x5779('0x1f')],_0x38eb67[_0x5779('0x3f')](_0x32e7ea);}_0x3b55d4['creatorId']=this[_0x5779('0x10')][_0x5779('0x21')][_0x5779('0x28')](_0x5779('0xe3'))['me']['id'],_0x3b55d4[_0x5779('0x5f')]=_0x3b55d4[_0x5779('0x5f')]||null,_0x3b55d4['id']=_0x3b55d4['id']||_0x54a455(),_0x3b55d4={..._0x3b55d4,..._0x2fc9f1};const _0x56bcb4=this['addRevisionData'](_0x3b55d4);_0x38eb67[_0x5779('0x3f')](_0x3b55d4);const _0x520d10=this['repository'][_0x5779('0x3c')](_0x56bcb4);if(0x0!==_0x520d10){const _0x57e14a=this[_0x5779('0xd5')][_0x5779('0x2e')](_0x520d10-0x1);if(_0x57e14a[_0x5779('0xb7')]!==_0x2a7f5a){const _0x583c40=this[_0x5779('0x97')]['getData'](_0x2a7f5a,_0x57e14a[_0x5779('0xf3')]),_0x52e33d={'id':_0x57e14a['id'],'diffData':_0x583c40['diffData'],'authorsIds':_0x583c40[_0x5779('0xbd')],'authors':_0x583c40[_0x5779('0xbd')][_0x5779('0xd6')](_0x2f5c75=>this[_0x5779('0x10')][_0x5779('0x21')][_0x5779('0x28')]('Users')[_0x5779('0x1b')](_0x2f5c75)),'fromVersion':_0x2a7f5a};_0x57e14a===this['currentRevision']&&(_0x52e33d[_0x5779('0xec')]=new Date(_0x3b55d4[_0x5779('0xec')][_0x5779('0xc8')]()+0xa)),_0x57e14a['_update'](_0x52e33d,!0x0),delete _0x52e33d[_0x5779('0x1f')],_0x38eb67['push'](_0x52e33d);}}if(this[_0x5779('0x17')]){for(const _0x518710 of _0x38eb67)this[_0x5779('0x86')](_0x518710['id'],_0x518710,!0x0);this[_0x5779('0xe9')]();}return _0x56bcb4;}[_0x5779('0xa4')](_0x51e79c){const _0x2c136c=this['repository'][_0x5779('0xfd')](_0x51e79c);return this[_0x5779('0x17')]&&_0x2c136c['on'](_0x5779('0x9f'),(_0x173acf,_0x92802c,_0x1a0075)=>{_0x1a0075||(this['_bufferUpdate'](_0x92802c['id'],_0x92802c,!0x0),this[_0x5779('0xe9')]());}),this[_0x5779('0xd5')][_0x5779('0xaa')](_0x2c136c,this['_findInsertionIndex'](_0x2c136c)),_0x2c136c;}async[_0x5779('0x77')](_0x2bfbd3){await this[_0x5779('0xb8')](_0x2bfbd3);const _0x463450={};for(const _0x25a92d in _0x2bfbd3[_0x5779('0x8a')]){if(_0x2bfbd3[_0x5779('0x8a')][_0x25a92d][_0x5779('0x35')]&&!_0x2bfbd3[_0x5779('0x8a')][_0x25a92d][_0x5779('0x35')]['isAttached'])continue;const _0x2cbba2=this[_0x5779('0xae')](JSON[_0x5779('0xcd')](_0x2bfbd3['diffData'][_0x25a92d][_0x5779('0xab')])),_0x590796=this[_0x5779('0x10')][_0x5779('0xca')][_0x5779('0x20')][_0x5779('0xf')],_0x2bc190=new _0x38fcfa(_0x590796,_0x2cbba2['map'](_0x5922f6=>J(_0x5922f6,this['editor'])));this[_0x5779('0x10')]['data'][_0x5779('0x2c')]['useFillerType']('marked'),_0x463450[_0x25a92d]=this[_0x5779('0x10')][_0x5779('0xb5')]['processor'][_0x5779('0x37')](_0x2bc190),this[_0x5779('0x10')][_0x5779('0xb5')][_0x5779('0x2c')][_0x5779('0xa1')](_0x5779('0x62'));}return _0x463450;}async[_0x5779('0x48')](_0x757c18){await this[_0x5779('0xb8')](_0x757c18);const _0xf4df2={};for(const _0x100e1c in _0x757c18[_0x5779('0x8a')])_0x757c18['diffData'][_0x100e1c][_0x5779('0x35')]&&!_0x757c18[_0x5779('0x8a')][_0x100e1c]['attachChange'][_0x5779('0x65')]||(_0xf4df2[_0x100e1c]=_0x757c18[_0x5779('0x8a')][_0x100e1c][_0x5779('0x5b')]||{});return _0xf4df2;}[_0x5779('0xe9')](){if(0x0===this['_bufferedUpdates'][_0x5779('0x3a')])return;if(this['_isPendingUpdate'])return;let _0x4a0aa4=Array[_0x5779('0xa9')](this[_0x5779('0x89')][_0x5779('0xd8')]());this[_0x5779('0x89')]['clear']();for(let _0x14efed=0x0;_0x14efed<_0x4a0aa4[_0x5779('0x9b')];_0x14efed++){const _0x598899=_0x4a0aa4[_0x14efed];let _0x24627c=!0x1;for(const _0x103aba of Object['keys'](_0x598899))void 0x0===_0x598899[_0x103aba]?delete _0x598899[_0x103aba]:'id'!==_0x103aba&&(_0x24627c=!0x0);_0x24627c||(_0x4a0aa4[_0x14efed]=null);}if(_0x4a0aa4=_0x4a0aa4[_0x5779('0x9c')](_0x3ec6d5=>null!==_0x3ec6d5),!_0x4a0aa4[_0x5779('0x9b')])return;for(let _0x19cfde=0x0;_0x19cfde<_0x4a0aa4[_0x5779('0x9b')];_0x19cfde++){const _0x1e6889=_0x4a0aa4[_0x19cfde];void 0x0!==_0x1e6889[_0x5779('0xb7')]&&void 0x0===_0x1e6889['toVersion']&&(_0x1e6889[_0x5779('0xf3')]=this[_0x5779('0xd5')]['getRevision'](_0x1e6889['id'])[_0x5779('0xf3')]),void 0x0!==_0x1e6889[_0x5779('0xf3')]&&void 0x0===_0x1e6889[_0x5779('0xb7')]&&(_0x1e6889['fromVersion']=this[_0x5779('0xd5')]['getRevision'](_0x1e6889['id'])[_0x5779('0xb7')]);}const _0x52e993=this['editor'][_0x5779('0x82')][_0x5779('0x28')](_0x5779('0xdc'));this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this[_0x5779('0x17')][_0x5779('0x43')](_0x4a0aa4,_0x52e993)[_0x5779('0x75')](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x5e1dfd=>{if(_0x5e1dfd)for(const _0x4d065a of _0x5e1dfd)this[_0x5779('0xe7')]({'id':_0x4d065a['id'],'createdAt':_0x4d065a[_0x5779('0xec')]});this[_0x5779('0x5c')](),this[_0x5779('0xe9')]();});}['_replaceEditorDataWithRevisionData'](_0x118483,_0x45ab7d){let _0x94ae87=this[_0x5779('0x10')][_0x5779('0x82')][_0x5779('0x28')](_0x5779('0x4e')),_0x215478=this[_0x5779('0x10')][_0x5779('0x82')][_0x5779('0x28')](_0x5779('0x9d'));if(void 0x0===_0x94ae87){_0x94ae87={};for(const _0x5cd00c of this['editor'][_0x5779('0x14')][_0x5779('0xf')][_0x5779('0x78')]())_0x94ae87[_0x5cd00c]='';}if(_0x5779('0x57')==typeof _0x94ae87&&(_0x94ae87={'main':_0x94ae87}),void 0x0===_0x215478){_0x215478={};for(const _0x356ecb of this[_0x5779('0x10')][_0x5779('0x14')][_0x5779('0xf')][_0x5779('0x78')]())_0x215478[_0x356ecb]={};}let _0x337b90=!0x1;const _0x621075=Object[_0x5779('0xe4')](_0x94ae87),_0x5ab5b5=Object[_0x5779('0xe4')](_0x118483);for(const _0x1b1ee2 of _0x621075){if(_0x94ae87[_0x1b1ee2]!==_0x118483[_0x1b1ee2]&&''!==_0x94ae87[_0x1b1ee2]['trim']()){_0x337b90=!0x0;break;}if(!_0x4a1bba(_0x215478[_0x1b1ee2],_0x45ab7d[_0x1b1ee2])&&Object['keys'](_0x215478[_0x1b1ee2])[_0x5779('0x9b')]>0x0){_0x337b90=!0x0;break;}}_0x337b90||(_0x337b90=_0x5ab5b5['some'](_0x3ed5ad=>!this['editor']['model']['document'][_0x5779('0x3e')](_0x3ed5ad))),_0x337b90&&_0x437c49('editor-initial-data-replaced-with-revision-data',{'editorData':_0x94ae87,'editorRootsAttributes':_0x215478,'revisionData':_0x118483,'revisionRootsAttributes':_0x45ab7d}),this['editor'][_0x5779('0x82')][_0x5779('0x5')](_0x5779('0x4e'),_0x118483),this[_0x5779('0x10')][_0x5779('0x82')][_0x5779('0x5')]('rootsAttributes',_0x45ab7d);}[_0x5779('0x59')](){if(!this[_0x5779('0x5a')]){const _0x3f0dff=this[_0x5779('0x10')][_0x5779('0x21')][_0x5779('0x28')]('PendingActions');this[_0x5779('0x5a')]=_0x3f0dff[_0x5779('0xc5')](_0x2f71b0(this['editor'][_0x5779('0x46')],_0x5779('0x19')));}}[_0x5779('0x5c')](){this[_0x5779('0x5a')]&&(this['editor'][_0x5779('0x21')][_0x5779('0x28')](_0x5779('0xd1'))['remove'](this['_pendingAction']),this['_pendingAction']=null);}[_0x5779('0x29')](_0x17a2c0){const _0x223b13=this[_0x5779('0xd5')]['getRevisions']();_0x223b13[_0x5779('0x8e')]();let _0x2ddfb4=0x0;for(;_0x2ddfb4<_0x223b13[_0x5779('0x9b')];){const _0x31fe5b=_0x223b13[_0x2ddfb4];if(_0x31fe5b===this[_0x5779('0x5d')]){_0x2ddfb4++;continue;}if(_0x31fe5b['id']===this[_0x5779('0xa')])break;const _0x148c85=_0x17a2c0[_0x5779('0xf3')]-_0x31fe5b[_0x5779('0xf3')]||_0x17a2c0[_0x5779('0xb7')]-_0x31fe5b['fromVersion'];if(_0x148c85>0x0)break;if(_0x148c85<0x0)_0x2ddfb4++;else{if(!_0x17a2c0[_0x5779('0xf8')]&&_0x31fe5b[_0x5779('0xf8')])break;if(_0x31fe5b[_0x5779('0xf8')]||!_0x17a2c0[_0x5779('0xf8')]){if(_0x17a2c0[_0x5779('0xec')]>_0x31fe5b['createdAt'])break;_0x2ddfb4++;}else _0x2ddfb4++;}}return _0x2ddfb4;}['setRevisionData'](_0x4bd887){const _0x370ae3=this['repository'][_0x5779('0x2e')](_0x4bd887['id']);if(_0x4bd887[_0x5779('0xec')]&&(_0x4bd887['createdAt']=new Date(_0x4bd887[_0x5779('0xec')])),_0x4bd887[_0x5779('0xbd')]){const _0x326e32=this['editor'][_0x5779('0x21')][_0x5779('0x28')]('Users');_0x4bd887[_0x5779('0x1f')]=_0x4bd887[_0x5779('0xbd')]['map'](_0x40056f=>_0x326e32[_0x5779('0x1b')](_0x40056f));}_0x370ae3[_0x5779('0x9f')](_0x4bd887,!0x0);}['buildRevisionData']({revision:_0x45e12d=null,from:_0x5cd803=null,to:_0x5e1a5f=null}){_0x5cd803=null!==_0x5cd803?_0x5cd803:_0x45e12d[_0x5779('0xb7')],_0x5e1a5f=null!==_0x5e1a5f?_0x5e1a5f:_0x45e12d[_0x5779('0xf3')];const _0x1c3d8f=this['_revisionDataBuilder'][_0x5779('0xbf')](_0x5cd803,_0x5e1a5f),_0x17043b={'diffData':_0x1c3d8f['diffData'],'authorsIds':_0x1c3d8f[_0x5779('0xbd')],'fromVersion':_0x5cd803,'toVersion':_0x5e1a5f};if(!_0x45e12d||_0x5e1a5f!==_0x45e12d[_0x5779('0xf3')]){const _0x511842=_0x5e1a5f-0x1,_0x48c06c=this[_0x5779('0xa3')][_0x5779('0xcf')]['getOperation'](_0x511842);_0x17043b['createdAt']=_0x48c06c&&_0x48c06c[_0x5779('0xec')]||new Date();}if(this[_0x5779('0xa0')]&&_0x5cd803===this['_loadedStateData'][_0x5779('0xb7')])for(const _0x524ca6 of this[_0x5779('0xa0')][_0x5779('0x1f')])_0x17043b['authorsIds'][_0x5779('0x60')](_0x524ca6['id'])||_0x17043b[_0x5779('0xbd')][_0x5779('0x3f')](_0x524ca6['id']);return _0x17043b;}['_loadRevisionData'](_0x14841){if(!_0x14841||_0x14841[_0x5779('0x8a')])return Promise[_0x5779('0x58')]();{const _0x55f1e0=this['editor']['config'][_0x5779('0x28')](_0x5779('0xdc'));return this['adapter'][_0x5779('0x2e')]({'channelId':_0x55f1e0,'revisionId':_0x14841['id']})[_0x5779('0xf4')](_0x405adf=>{_0x14841[_0x5779('0x8a')]=_0x405adf[_0x5779('0x8a')];});}}[_0x5779('0x86')](_0x4ce87b,_0x580115,_0x3a2c6d){if(this[_0x5779('0x89')]['has'](_0x4ce87b)){const _0x56bc22=this[_0x5779('0x89')][_0x5779('0x28')](_0x4ce87b);_0x580115=_0x3a2c6d?{..._0x56bc22,..._0x580115}:{..._0x580115,..._0x56bc22};}this[_0x5779('0x89')]['set'](_0x4ce87b,_0x580115);}['_getFromVersion'](_0x1d8ba6){const _0x3fce52=this['repository'][_0x5779('0xf7')]();_0x3fce52[_0x5779('0x8e')](),_0x3fce52['shift']();const _0x1c06e8=_0x3fce52[_0x5779('0x55')](_0x30c467=>_0x30c467['toVersion']<=_0x1d8ba6)[_0x5779('0xf3')];return _0x1c06e8<this['_startingVersion']?this['_startingVersion']:_0x1c06e8;}['_createInitialRevision'](_0x5df7c9){const _0x11dba3=this['repository'][_0x5779('0x2e')](this[_0x5779('0xd5')][_0x5779('0x9b')]-0x1);if(_0x11dba3)this['_initialRevisionId']=_0x11dba3['id'];else{const _0x4c3808=!this[_0x5779('0x10')]['model'][_0x5779('0xf')][_0x5779('0xd9')]['find'](_0x20cf09=>this['editor'][_0x5779('0x14')]['hasContent'](_0x20cf09)),_0x1a5012=this['editor'][_0x5779('0x21')]['get']('Users')['me']['id'],_0xb64885=_0x2f71b0(this['editor'][_0x5779('0x46')],_0x4c3808?'Empty\x20document':'Initial\x20revision');this[_0x5779('0x1')]({'from':_0x5df7c9,'to':_0x5df7c9,'id':this[_0x5779('0xa')],'name':_0xb64885,'creatorId':_0x1a5012});}}[_0x5779('0x18')](_0x560f75){const _0x19a884=this[_0x5779('0xa3')][_0x5779('0x49')]();this[_0x5779('0x5d')]=this[_0x5779('0xd5')]['getRevision'](_0x19a884),this['currentRevision']||(this[_0x5779('0x5d')]=this['_makeRevision']({'from':_0x560f75,'to':_0x560f75,'id':_0x19a884,'name':'','creatorId':null}));}[_0x5779('0x1')]({name:_0x34fa6d,from:_0x36add4,to:_0x4e5ca0,creatorId:_0x41cc79,id:_0x589aa0}){const _0x5a230b=this[_0x5779('0x13')]({'from':_0x36add4,'to':_0x4e5ca0});_0x5a230b[_0x5779('0x5f')]=_0x34fa6d,_0x5a230b[_0x5779('0x26')]=_0x41cc79,_0x5a230b['id']=_0x589aa0;const _0x582f45=this[_0x5779('0xa4')](_0x5a230b);return this[_0x5779('0x17')]&&this[_0x5779('0x86')](_0x5a230b['id'],_0x5a230b,!0x0),_0x582f45;}[_0x5779('0xe1')](){this[_0x5779('0x10')][_0x5779('0x70')][_0x5779('0xe')](_0x5779('0xcb'))[_0x5779('0xa8')]({'model':_0x5779('0x6c')});}[_0x5779('0xae')](_0x4c6adc){return(_0x4c6adc=_0x4c6adc[_0x5779('0x9c')](_0x5926c8=>!_0x5926c8[_0x5779('0x5f')]||'revision-start'!==_0x5926c8['name']&&_0x5779('0x8')!==_0x5926c8[_0x5779('0x5f')]))[_0x5779('0x25')](_0x15bfdf=>{_0x5779('0x57')!=typeof _0x15bfdf&&(_0x15bfdf[_0x5779('0x2a')]=this[_0x5779('0xae')](_0x15bfdf[_0x5779('0x2a')]),_0x15bfdf[_0x5779('0x9e')]=_0x15bfdf[_0x5779('0x9e')]['filter'](_0x5e00ce=>!_0x5e00ce[0x0][_0x5779('0x44')](_0x5779('0x74'))));}),_0x4c6adc;}}function J(_0x537429,_0x2883a3){const _0x1a3ade=_0x2883a3[_0x5779('0xca')]['view'][_0x5779('0xf')];if(_0x5779('0x57')==typeof _0x537429)return new _0x3c27ae(_0x1a3ade,_0x537429);{const _0x5bf9aa=_0x537429['children'][_0x5779('0xd6')](_0x251689=>J(_0x251689,_0x2883a3));return new(B[_0x537429['type']]||_0xf5a0a5)(_0x1a3ade,_0x537429[_0x5779('0x5f')],_0x537429[_0x5779('0x9e')],_0x5bf9aa);}}class H{constructor(_0x2e752f){this[_0x5779('0x10')]=_0x2e752f,this[_0x5779('0x4a')]=new Map(),this[_0x5779('0x76')]=-0x1,this[_0x5779('0x87')]=-0x1,this['_markers']=new Map(),this[_0x5779('0xbb')]=new Map(),this[_0x5779('0xf9')]=new Map(),this[_0x5779('0xc7')]=new Map(),this[_0x5779('0x66')]=new Map(),this[_0x5779('0xb')]=new Map(),this[_0x5779('0x7a')]=new Map(),this[_0x5779('0xee')]=new Map(),this[_0x5779('0xed')]=new Map(),this[_0x5779('0x2')]=new Map(),this[_0x5779('0x7d')]=0x1;}[_0x5779('0x1c')](_0x81ef5){this[_0x5779('0x8f')]=_0x81ef5;const _0x4ddefd=new Map(),_0x1b96b5=new Map(),_0xe1ce29=this[_0x5779('0x10')][_0x5779('0x14')]['document'][_0x5779('0xd9')][_0x5779('0xd6')](_0x380660=>_0x380660['rootName']);for(const _0x4af762 of _0xe1ce29){const _0x27bfd7=this[_0x5779('0x10')][_0x5779('0x14')][_0x5779('0xf')][_0x5779('0x3e')](_0x4af762),_0x3a40d7=q(_0x27bfd7);_0x4ddefd[_0x5779('0x5')](_0x4af762,_0x3a40d7),_0x1b96b5[_0x5779('0x5')](_0x4af762,Object[_0x5779('0xc2')](_0x27bfd7['getAttributes']()));}const _0x49cd37=Array[_0x5779('0xa9')](this[_0x5779('0x10')][_0x5779('0x14')][_0x5779('0xfb')])[_0x5779('0xd6')](_0x2b8306=>[_0x2b8306[_0x5779('0x5f')],_0x2b8306[_0x5779('0xf5')]()]),_0x29b8d1=this['source']['version'];this[_0x5779('0xbc')](_0x29b8d1,_0x4ddefd,_0x49cd37,_0x1b96b5),this['_startingRevisionId']=this[_0x5779('0x7d')];const _0xa141c8=new Map(),_0x5109bf=new Map();for(const _0x1ba16e of _0xe1ce29){const _0xb32f75=G(_0x1ba16e);_0xa141c8[_0x5779('0x5')](_0x1ba16e,_0xb32f75),_0x5109bf[_0x5779('0x5')](_0x1ba16e,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xa141c8,[],_0x5109bf);}[_0x5779('0xbf')](_0x27cc14,_0x9788fc){if(this[_0x5779('0x76')]===_0x27cc14&&this[_0x5779('0x87')]<=_0x9788fc)this[_0x5779('0x4a')][_0x5779('0x3a')]>0x1&&this[_0x5779('0x34')](this[_0x5779('0x87')]),this[_0x5779('0x9')](this[_0x5779('0x87')],_0x9788fc,!0x0);else{if(!this[_0x5779('0x4a')]['has'](_0x27cc14)){const _0x28ce64=this[_0x5779('0x22')](_0x27cc14);this['_calculateMetaData'](_0x28ce64,_0x27cc14,!0x1);}this['_calculateMetaData'](_0x27cc14,_0x9788fc,!0x0);}return this[_0x5779('0x76')]=_0x27cc14,this[_0x5779('0x87')]=_0x9788fc,this[_0x5779('0xad')]();}['loadState'](_0x5a4b37){this[_0x5779('0xbe')](),this[_0x5779('0x76')]=_0x5a4b37[_0x5779('0xb7')],this[_0x5779('0x87')]=_0x5a4b37['toVersion'];for(const _0x3de72d in _0x5a4b37[_0x5779('0x8a')]){const _0x228a31=_0x5a4b37['diffData'][_0x3de72d][_0x5779('0x35')],_0x3fd03e=_0xdaae97(_0x5a4b37[_0x5779('0x8a')][_0x3de72d]['attributesBefore'])||{},_0x5d5de3=this[_0x5779('0x7')](_0x5a4b37[_0x5779('0x8a')][_0x3de72d]['deletions']);_0x5d5de3[_0x5779('0x7c')]=_0x3de72d,_0x5d5de3[_0x5779('0xd0')]=!_0x228a31||!_0x228a31[_0x5779('0x65')],_0x5d5de3[_0x5779('0x65')]=()=>_0x5d5de3[_0x5779('0xd0')],this[_0x5779('0xc7')]['set'](_0x3de72d,_0x5d5de3),this[_0x5779('0x66')][_0x5779('0x5')](_0x3de72d,_0x3fd03e),_0x228a31&&this[_0x5779('0x2')][_0x5779('0x5')](_0x3de72d,_0x228a31);const _0x10c087=this[_0x5779('0xba')](_0x5d5de3);this[_0x5779('0x7a')]['set'](_0x3de72d,_0x10c087);for(const [_0x43c688,_0x5d7b34]of _0x5d5de3[_0x5779('0xfb')]){if(!_0x43c688[_0x5779('0x44')](_0x5779('0x85')))continue;const _0x42b508=_0x43c688[_0x5779('0xb9')](':')[0x2];for(const _0x1beb22 of _0x5d7b34[_0x5779('0x2b')]({'singleCharacters':!0x0})){const _0x3c9fc5=this[_0x5779('0xaf')](_0x1beb22),_0x43aa16=_0x5779('0x9a')==_0x1beb22[_0x5779('0xac')]?_0x1beb22[_0x5779('0x31')]['path'][_0x5779('0x7b')](0x0,-0x1):_0x1beb22['previousPosition'][_0x5779('0x93')],_0x519323=_0x10c087['getNodeByPath'](_0x43aa16)[_0x5779('0x6e')](_0x3c9fc5);this[_0x5779('0xee')][_0x5779('0x5')](_0x519323,{'userId':_0x42b508});}}}this[_0x5779('0x15')]=this[_0x5779('0x7d')];const _0x240207=[...Array(this[_0x5779('0x7d')])['keys']()][_0x5779('0x7b')](0x1)[_0x5779('0x9c')](_0x3b7852=>!this[_0x5779('0xee')][_0x5779('0xb4')](_0x3b7852));let _0x4e6022=0x0;const _0x114d7a=new Map();for(const _0xc7592b in _0x5a4b37['diffData']){const _0x4aba98=_0x5a4b37[_0x5779('0x8a')][_0xc7592b]['attachChange'],_0x4a2ce4=_0xdaae97(_0x5a4b37['diffData'][_0xc7592b][_0x5779('0x5b')])||{},_0x4d26c6=this['_makeModelFromViewString'](_0x5a4b37[_0x5779('0x8a')][_0xc7592b][_0x5779('0xab')]);_0x4d26c6[_0x5779('0x7c')]=_0xc7592b,_0x4d26c6[_0x5779('0xd0')]=!_0x4aba98||_0x4aba98[_0x5779('0x65')],_0x4d26c6['isAttached']=()=>_0x4d26c6[_0x5779('0xd0')],this[_0x5779('0xbb')]['set'](_0xc7592b,_0x4d26c6),this[_0x5779('0xf9')]['set'](_0xc7592b,_0x4a2ce4);const _0x4af268=this[_0x5779('0xba')](_0x4d26c6,Number[_0x5779('0xb3')]);this['_idsRoots'][_0x5779('0x5')](_0xc7592b,_0x4af268),_0x114d7a['set'](_0xc7592b,_0x4d26c6[_0x5779('0x65')]()?_0x4a2ce4:{});for(const [_0x8f9f23,_0x516889]of _0x4d26c6[_0x5779('0xfb')]){if(!_0x8f9f23[_0x5779('0x44')]('revision:'))continue;const _0xb99edd=_0x8f9f23[_0x5779('0xb9')](':')[0x2];for(const _0x5ac701 of _0x516889['getWalker']({'singleCharacters':!0x0})){const _0x273184=this[_0x5779('0xaf')](_0x5ac701),_0x3b2d85=this[_0x5779('0x7d')]++,_0x1286c9=_0x5779('0x9a')==_0x5ac701[_0x5779('0xac')]?_0x5ac701['previousPosition'][_0x5779('0x93')]['slice'](0x0,-0x1):_0x5ac701['previousPosition']['path'];_0x4af268[_0x5779('0xc9')](_0x1286c9)['_setAttribute'](_0x273184,_0x3b2d85),this[_0x5779('0xee')][_0x5779('0x5')](_0x3b2d85,{'userId':_0xb99edd});}}for(const _0x204c21 of this[_0x5779('0x10')][_0x5779('0x14')][_0x5779('0xef')](_0x4d26c6)[_0x5779('0x2b')]({'singleCharacters':!0x0})){const _0x32aa20=this[_0x5779('0xaf')](_0x204c21),_0x18419b=_0x5779('0x9a')==_0x204c21[_0x5779('0xac')]?_0x204c21[_0x5779('0x31')]['path']['slice'](0x0,-0x1):_0x204c21[_0x5779('0x31')][_0x5779('0x93')],_0x2b5b22=_0x4af268['getNodeByPath'](_0x18419b);_0x2b5b22[_0x5779('0x6e')](_0x32aa20)>0x0||_0x2b5b22[_0x5779('0xa7')](_0x32aa20,_0x240207[_0x4e6022++]);}for(const [_0x150c0e,_0xddaa02]of _0x4d26c6['markers'])_0x150c0e[_0x5779('0x44')](_0x5779('0x85'))||this['_markers'][_0x5779('0x5')](_0x150c0e,_0xddaa02);}const _0x522bd9=G(_0x5779('0x6'));this['_baseRoots'][_0x5779('0x5')](_0x5779('0x6'),_0x522bd9),this[_0x5779('0x7a')]['set'](_0x5779('0x6'),this[_0x5779('0xba')](_0x522bd9,0x1));const _0x1c2a80=G(_0x5779('0x6'));this['_diffRoots']['set'](_0x5779('0x6'),_0x1c2a80),this['_idsRoots'][_0x5779('0x5')](_0x5779('0x6'),this['_makeIdsRoot'](_0x1c2a80,0x1));const _0x33c425=Array['from'](this[_0x5779('0xbb')])[_0x5779('0xd6')](([_0x584a2d,_0x40ede0])=>[_0x584a2d,q(_0x40ede0)]);this[_0x5779('0xbc')](this['_lastTo'],_0x33c425,this[_0x5779('0x99')],_0x114d7a);}[_0x5779('0x7')](_0x45f9dd){const _0x44ca49=JSON['parse'](_0x45f9dd),_0x262002=this[_0x5779('0x10')]['editing'][_0x5779('0x20')][_0x5779('0xf')],_0x27654a=new _0x38fcfa(_0x262002,_0x44ca49[_0x5779('0xd6')](_0x23fc86=>J(_0x23fc86,this[_0x5779('0x10')])));return this['editor']['data'][_0x5779('0xce')](_0x27654a);}[_0x5779('0xbc')](_0x46e4bb,_0x1c59bf,_0x5caa57,_0x229a29){const _0x341b54=new Map(_0x1c59bf),_0x45a362=new Map(_0xdaae97(_0x229a29)),_0x2a4a5b=new Map();for(const [_0x49232b,_0x54be42]of _0x5caa57)_0x2a4a5b[_0x5779('0x5')](_0x49232b,{'start':_0x54be42[_0x5779('0xcc')]['clone'](),'end':_0x54be42[_0x5779('0x54')]['clone'](),'rootName':_0x54be42[_0x5779('0x40')][_0x5779('0x7c')]});this[_0x5779('0x4a')][_0x5779('0x5')](_0x46e4bb,{'roots':_0x341b54,'markers':_0x2a4a5b,'rootsAttributes':_0x45a362});}[_0x5779('0x34')](_0x49c6cc){this[_0x5779('0x4a')][_0x5779('0xfe')](_0x49c6cc);}[_0x5779('0x61')](){this[_0x5779('0xbe')](),this[_0x5779('0x76')]=-0x1,this['_lastTo']=-0x1,this[_0x5779('0x4a')][_0x5779('0xe6')](),this[_0x5779('0x1c')](this[_0x5779('0x8f')]);}[_0x5779('0xbe')](){this[_0x5779('0xee')][_0x5779('0xe6')](),this[_0x5779('0xed')][_0x5779('0xe6')](),this[_0x5779('0x2')]['clear'](),this[_0x5779('0xbb')][_0x5779('0xe6')](),this[_0x5779('0xf9')][_0x5779('0xe6')](),this[_0x5779('0xc7')][_0x5779('0xe6')](),this['_baseRootsAttributes'][_0x5779('0xe6')](),this[_0x5779('0xb')][_0x5779('0xe6')](),this[_0x5779('0x7a')][_0x5779('0xe6')](),this[_0x5779('0x99')][_0x5779('0xe6')](),this[_0x5779('0x7d')]=0x1,this[_0x5779('0x15')]=this[_0x5779('0x7d')];}[_0x5779('0xba')](_0x323b62,_0x57b85e=null){let _0x3224f2=null;_0x323b62['is'](_0x5779('0x92'))||(_0x3224f2=new _0x531e94(_0x323b62['name'],{'vid_start':null===_0x57b85e?this[_0x5779('0x7d')]++:_0x57b85e++}));const _0x5ac0a8=[];for(const _0x1a3b65 of _0x323b62['getChildren']())if(_0x1a3b65['is'](_0x5779('0xd2'))){_0x5ac0a8[_0x5779('0x3f')](this[_0x5779('0xba')](_0x1a3b65,_0x57b85e));const _0x242742=_0x5ac0a8[_0x5ac0a8[_0x5779('0x9b')]-0x1];null!==_0x57b85e&&(_0x57b85e=_0x242742['is'](_0x5779('0xd2'),_0x5779('0x64'))?_0x242742[_0x5779('0x6e')](_0x5779('0xfc'))+0x1:_0x242742['getAttribute'](_0x5779('0x1e'))+0x1);}else for(let _0x5a4609=0x0;_0x5a4609<_0x1a3b65[_0x5779('0xf0')];_0x5a4609++)_0x5ac0a8['push'](new _0x531e94(_0x5779('0x64'),{'vid':null===_0x57b85e?this[_0x5779('0x7d')]++:_0x57b85e++}));if(_0x323b62['is']('documentFragment')){const _0x50e4c9=G(_0x323b62[_0x5779('0x7c')]);return _0x50e4c9[_0x5779('0x69')](0x0,_0x5ac0a8),_0x50e4c9;}return _0x3224f2['_setAttribute'](_0x5779('0x1e'),null===_0x57b85e?this['_revisionId']++:_0x57b85e++),_0x3224f2[_0x5779('0x69')](0x0,_0x5ac0a8),_0x3224f2;}['_calculateMetaData'](_0x276af1,_0x5c08d3,_0x56bbc0){this[_0x5779('0xbe')]();const {roots:_0x597bf3,markers:_0x1b22ca,rootsAttributes:_0x285e62}=this[_0x5779('0x4a')][_0x5779('0x28')](_0x276af1);this[_0x5779('0xc7')]=new Map(_0x597bf3),this[_0x5779('0x66')]=new Map(_0xdaae97(_0x285e62));for(const [_0x5defb6,_0x5f176e]of this[_0x5779('0xc7')])if(_0x5779('0x6')!==_0x5defb6&&(this[_0x5779('0xbb')][_0x5779('0x5')](_0x5defb6,q(_0x5f176e)),this[_0x5779('0xf9')]=new Map(_0xdaae97(_0x285e62)),_0x56bbc0)){const _0x3f34d1=this[_0x5779('0x7d')];this[_0x5779('0xb')][_0x5779('0x5')](_0x5defb6,this[_0x5779('0xba')](_0x5f176e)),this[_0x5779('0x7a')][_0x5779('0x5')](_0x5defb6,this[_0x5779('0xba')](_0x5f176e,_0x3f34d1));}this[_0x5779('0x15')]=this[_0x5779('0x7d')],this[_0x5779('0xbb')][_0x5779('0x5')](_0x5779('0x6'),q(this[_0x5779('0xc7')][_0x5779('0x28')]('$graveyard'))),_0x56bbc0&&this[_0x5779('0xb')]['set'](_0x5779('0x6'),this['_makeIdsRoot'](this[_0x5779('0xc7')][_0x5779('0x28')](_0x5779('0x6'))));for(const [_0x48e2c4,_0x310127]of _0x1b22ca){const _0x1fe115=this[_0x5779('0xc7')]['get'](_0x310127[_0x5779('0x7c')]),_0xdb82c5=this['_diffRoots'][_0x5779('0x28')](_0x310127[_0x5779('0x7c')]),_0x1b0872=new _0x3b7305(this[_0x5779('0xe8')](_0x310127[_0x5779('0xcc')],_0x1fe115),this['_fixPosition'](_0x310127[_0x5779('0x54')],_0x1fe115)),_0x5ea63a=this[_0x5779('0xdd')](_0x1b0872,_0xdb82c5);_0x1fe115[_0x5779('0xfb')][_0x5779('0x5')](_0x48e2c4,_0x1b0872),this[_0x5779('0x99')][_0x5779('0x5')](_0x48e2c4,_0x5ea63a);}this['_applyOperations'](_0x276af1,_0x5c08d3,_0x56bbc0);}['_applyOperations'](_0x66bd2b,_0x2d2952,_0x475d69){for(const _0x141398 of this[_0x5779('0x8f')]['getOperations'](_0x66bd2b,_0x2d2952))this['_handleOperation'](_0x141398,_0x475d69);for(const _0x224e05 of this['_diffRoots'][_0x5779('0xd8')]())_0x224e05[_0x5779('0xfb')][_0x5779('0xe6')]();for(const [_0x7c63c7,_0x38c959]of this[_0x5779('0x99')]){this[_0x5779('0xbb')]['get'](_0x38c959[_0x5779('0x40')][_0x5779('0x7c')])[_0x5779('0xfb')][_0x5779('0x5')](_0x7c63c7,_0x38c959[_0x5779('0x41')]());}const _0x26d21b=new Map(),_0x13334e=new Map();for(const [_0x53e25f,_0x49f5d8]of this[_0x5779('0xbb')])_0x26d21b[_0x5779('0x5')](_0x53e25f,q(_0x49f5d8)),_0x13334e['set'](_0x53e25f,this['_diffRootsAttributes'][_0x5779('0x28')](_0x53e25f));this[_0x5779('0xbc')](_0x2d2952,_0x26d21b,this[_0x5779('0x99')],_0x13334e);}['_getPreviousFrom'](_0x8594bb){const _0x1b09bc=Array[_0x5779('0xa9')](this[_0x5779('0x4a')][_0x5779('0xe4')]());_0x1b09bc[_0x5779('0x7e')]((_0x2f29d2,_0x1ae6af)=>_0x2f29d2-_0x1ae6af),_0x1b09bc[_0x5779('0x8e')]();for(const _0x55c0de of _0x1b09bc)if(_0x55c0de<_0x8594bb)return _0x55c0de;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x592ef6,_0x4af723){const _0x2f48a6=Array['from'](_0x4af723['markers'])[_0x5779('0xd6')](([_0xfeb3,_0x45ffc7])=>[_0xfeb3,this['_fixRange'](_0x45ffc7,_0x592ef6)]);_0x592ef6['markers']=new Map(_0x2f48a6);}[_0x5779('0xeb')](_0x191551){for(const _0x170014 of this['_markers'][_0x5779('0xd8')]()){const _0x1cf515=_0x170014[_0x5779('0x24')](_0x191551),_0x457cf5=_0x3b7305['_createFromRanges'](_0x1cf515);_0x170014['start']=_0x457cf5[_0x5779('0xcc')],_0x170014['end']=_0x457cf5[_0x5779('0x54')];}}[_0x5779('0x90')](_0x87b0e6,_0x1233ba){if(_0x5779('0x84')==_0x87b0e6[_0x5779('0xac')]||'detachRoot'==_0x87b0e6[_0x5779('0xac')])return void this[_0x5779('0x12')](_0x87b0e6,_0x1233ba);if(_0x5779('0xf2')==_0x87b0e6['type']){const _0x47a08a=_0x87b0e6['position'][_0x5779('0x40')][_0x5779('0x7c')];this[_0x5779('0xbb')][_0x5779('0xb4')](_0x47a08a)||(this[_0x5779('0xbb')][_0x5779('0x5')](_0x47a08a,G(_0x47a08a,!0x0)),this['_diffRootsAttributes'][_0x5779('0x5')](_0x47a08a,{}),_0x1233ba&&this[_0x5779('0xb')][_0x5779('0x5')](_0x47a08a,G(_0x47a08a,!0x0)));}else{if(_0x5779('0x63')==_0x87b0e6[_0x5779('0xac')]||'removeRootAttribute'==_0x87b0e6['type']||_0x5779('0xf1')==_0x87b0e6['type'])return void this[_0x5779('0x33')](_0x87b0e6);}const _0x3a5f53=this['_cloneOperation'](_0x87b0e6,this['_diffRoots']);if(_0x5779('0xe5')!==_0x87b0e6['type']&&(_0x3a5f53['_execute'](),this[_0x5779('0xeb')](_0x3a5f53)),_0x1233ba)switch(_0x3a5f53['type']){case'insert':this[_0x5779('0x6d')](_0x87b0e6);break;case _0x5779('0x4c'):case'remove':case'reinsert':this[_0x5779('0x4')](_0x87b0e6);break;case _0x5779('0x51'):this[_0x5779('0xe0')](_0x87b0e6);break;case'split':this[_0x5779('0x98')](_0x87b0e6);break;case'marker':this[_0x5779('0x72')](_0x87b0e6);}}[_0x5779('0x0')](_0x16d1ad,_0x5b2674){const _0x1b07b9=_0x16d1ad[_0x5779('0x41')]();return _0x1b07b9[_0x5779('0x4f')]=_0x16d1ad[_0x5779('0x4f')],this[_0x5779('0x6f')](_0x1b07b9,_0x5b2674),_0x1b07b9;}[_0x5779('0x4d')](_0x688d02){return _0x688d02[_0x5779('0xd6')](_0x1068d6=>{const _0x4048dc=this[_0x5779('0xaf')](_0x1068d6);return Number(_0x1068d6[_0x5779('0x42')]['getAttribute'](_0x4048dc));});}[_0x5779('0x71')](_0x38c822,_0x1e597c){if(_0x38c822['is'](_0x5779('0xd2'),_0x5779('0x64')))_0x1e597c['push']({'item':_0x38c822,'type':_0x5779('0xa6')});else{_0x38c822['is'](_0x5779('0xd2'))&&_0x1e597c[_0x5779('0x3f')]({'item':_0x38c822,'type':'elementStart'});for(const _0x14c5a5 of _0x38c822[_0x5779('0xd7')]())this[_0x5779('0x71')](_0x14c5a5,_0x1e597c);_0x38c822['is'](_0x5779('0xd2'))&&_0x1e597c[_0x5779('0x3f')]({'item':_0x38c822,'type':_0x5779('0x9a')});}return _0x1e597c;}[_0x5779('0xad')](){const _0x3c4519=new Map(this[_0x5779('0xee')]),_0x27e27d=new Map(_0x3c4519),_0x303639=new Map(),_0x11ec5f={'insertions':{},'deletions':{}},_0x389673={'insertions':{},'deletions':{}},_0xdd673=new Map(),_0x1d663b=new Set([...this[_0x5779('0xc7')]['keys'](),...this[_0x5779('0xbb')][_0x5779('0xe4')]()]);_0x1d663b['delete'](_0x5779('0x6'));for(const _0x3e4839 of _0x1d663b){const _0x3e03c3=this[_0x5779('0xbb')][_0x5779('0x28')](_0x3e4839)||G(_0x3e4839,!0x1),_0x101b66=this['_baseRoots'][_0x5779('0x28')](_0x3e4839)||G(_0x3e4839,!0x1);_0x3e03c3['isAttached']()||_0x101b66['isAttached']()?(_0x11ec5f[_0x5779('0xab')][_0x3e4839]=q(_0x3e03c3),_0x11ec5f[_0x5779('0xea')][_0x3e4839]=q(_0x101b66),this[_0x5779('0x8b')](_0x11ec5f[_0x5779('0xea')][_0x3e4839],_0x101b66),this[_0x5779('0x8b')](_0x11ec5f[_0x5779('0xab')][_0x3e4839],_0x3e03c3),_0x389673[_0x5779('0xab')][_0x3e4839]=this[_0x5779('0x71')](this[_0x5779('0xb')][_0x5779('0x28')](_0x3e4839),[]),_0x389673[_0x5779('0xea')][_0x3e4839]=this[_0x5779('0x71')](this[_0x5779('0x7a')][_0x5779('0x28')](_0x3e4839)||G(_0x3e4839,!0x1),[])):_0x1d663b[_0x5779('0xfe')](_0x3e4839);}for(const _0x3d1f19 of _0x1d663b){const _0x35320f=_0x389673[_0x5779('0xab')][_0x3d1f19];for(const _0x1afa60 of _0x35320f){const _0x65fed3=this[_0x5779('0xaf')](_0x1afa60),_0x127c8f=_0x1afa60[_0x5779('0x42')]['getAttribute'](_0x65fed3);_0x27e27d[_0x5779('0xfe')](_0x127c8f),_0x127c8f>=this['_startingRevisionId']&&_0x303639[_0x5779('0x5')](_0x127c8f,_0x3c4519['get'](_0x127c8f));}}for(const _0x28e968 of _0x1d663b){const _0x3b0637=_0x389673['insertions'][_0x28e968],_0x11f462=this[_0x5779('0x4d')](_0x389673['deletions'][_0x28e968]);let _0x435b82=0x0;for(const _0x4e8d0b of _0x3b0637){const _0x29dbbc=this[_0x5779('0xaf')](_0x4e8d0b),_0x3ab27e=_0x4e8d0b['item'][_0x5779('0x6e')](_0x29dbbc);if(!_0x303639['has'](_0x3ab27e)&&!_0xdd673[_0x5779('0xb4')](_0x3ab27e)){if(_0x27e27d[_0x5779('0xb4')](_0x3ab27e))_0x435b82++;else{if(_0x3ab27e!=_0x11f462[_0x435b82]){const _0x3b6cc9=_0x3c4519[_0x5779('0x28')](_0x3ab27e)||_0x3c4519[_0x5779('0x28')](_0x11f462[_0x435b82]);for(;_0x3ab27e!=_0x11f462[_0x435b82];)_0x27e27d[_0x5779('0xb4')](_0x11f462[_0x435b82])||(_0xdd673[_0x5779('0x5')](_0x11f462[_0x435b82],_0x3b6cc9),_0x3c4519['set'](_0x11f462[_0x435b82],_0x3b6cc9)),_0x435b82++;}_0x435b82++;}}}}for(const _0x24959f of _0x1d663b){const _0x13c828=_0x389673[_0x5779('0xab')][_0x24959f];for(const _0x14bb7d of _0x13c828){const _0x368668=this['_getVidAttributeName'](_0x14bb7d),_0x3b9891=_0x14bb7d[_0x5779('0x42')][_0x5779('0x6e')](_0x368668);if(_0xdd673[_0x5779('0xb4')](_0x3b9891)){const _0x266fcf=_0xdd673[_0x5779('0x28')](_0x3b9891);_0x27e27d[_0x5779('0xb4')](_0x3b9891)||_0x27e27d[_0x5779('0x5')](_0x3b9891,{..._0x266fcf}),_0x303639[_0x5779('0x5')](_0x3b9891,{..._0x266fcf});}}}for(const _0x5024cd of _0x27e27d['keys']())_0x5024cd>=this['_startingRevisionId']&&_0x27e27d[_0x5779('0xfe')](_0x5024cd);const _0x557e19=new Map();for(const _0x5148c6 of _0x1d663b){let _0x1bafbd=_0x389673['insertions'][_0x5148c6];for(const _0x31f241 of _0x1bafbd)if(_0x31f241[_0x5779('0x42')]['is'](_0x5779('0xd2'),_0x5779('0x52'))){const _0x37f1b9=this[_0x5779('0xaf')](_0x31f241),_0x22696f=_0x31f241['item'][_0x5779('0x6e')](_0x37f1b9);if(_0x303639[_0x5779('0xb4')](_0x22696f)){const _0x4d9e20=_0x31f241[_0x5779('0x42')]['parent']['parent'][_0x5779('0x6e')](_0x5779('0x36')),_0x51a5bc=_0x557e19[_0x5779('0x28')](_0x4d9e20)||new Set();_0x51a5bc['add'](_0x303639[_0x5779('0x28')](_0x22696f)['userId']),_0x557e19[_0x5779('0x5')](_0x4d9e20,_0x51a5bc);}}_0x1bafbd=_0x389673[_0x5779('0xea')][_0x5148c6];for(const _0xff04a6 of _0x1bafbd)if(_0xff04a6[_0x5779('0x42')]['is']('element','tableCell')){const _0x2fa75d=this[_0x5779('0xaf')](_0xff04a6),_0x190e7a=_0xff04a6['item'][_0x5779('0x6e')](_0x2fa75d);if(_0x27e27d[_0x5779('0xb4')](_0x190e7a)){const _0x8976d6=_0xff04a6[_0x5779('0x42')][_0x5779('0x73')][_0x5779('0x73')]['getAttribute'](_0x5779('0x36')),_0x3c9945=_0x557e19[_0x5779('0x28')](_0x8976d6)||new Set();_0x3c9945['add'](_0x27e27d[_0x5779('0x28')](_0x190e7a)[_0x5779('0x2d')]),_0x557e19[_0x5779('0x5')](_0x8976d6,_0x3c9945);}}for(const _0x2f0465 of _0x557e19[_0x5779('0xe4')]())(_0x303639[_0x5779('0xb4')](_0x2f0465)||_0x27e27d[_0x5779('0xb4')](_0x2f0465))&&_0x557e19['delete'](_0x2f0465);}for(const _0xa6c7ec of _0x1d663b){const _0x171bdd=_0x389673[_0x5779('0xab')][_0xa6c7ec];let _0x5676fc=null,_0x50e646=null;for(const _0x1dc407 of _0x171bdd){const _0x5480b9=this['_getVidAttributeName'](_0x1dc407),_0x4059f8=_0x1dc407[_0x5779('0x42')][_0x5779('0x6e')](_0x5480b9),_0x227bc6=_0x557e19[_0x5779('0x28')](_0x4059f8);_0x227bc6&&_0x5779('0x79')==_0x1dc407['type']&&(_0x5676fc=Array['from'](_0x227bc6)[0x0],_0x50e646=_0x1dc407[_0x5779('0x42')][_0x5779('0x6e')](_0x5779('0x1e'))),_0x5676fc&&(_0x27e27d[_0x5779('0x5')](_0x4059f8,{'userId':_0x5676fc}),_0x303639[_0x5779('0x5')](_0x4059f8,{'userId':_0x5676fc})),_0x4059f8==_0x50e646&&(_0x5676fc=null,_0x50e646=null);}}const _0x1b5001={},_0x51a370=new Set();for(const _0x52b11c of _0x1d663b){const _0x3ebb17=_0x11ec5f[_0x5779('0xea')][_0x52b11c],_0x5ab00e=_0x11ec5f[_0x5779('0xab')][_0x52b11c];for(const {userId:_0x443ea1}of this[_0x5779('0xed')]['values']())null!==_0x443ea1&&_0x51a370[_0x5779('0xc5')](_0x443ea1);for(const {userId:_0x5f11b8}of this[_0x5779('0x2')]['values']())null!==_0x5f11b8&&_0x51a370[_0x5779('0xc5')](_0x5f11b8);this['_markChanges'](_0x5ab00e,_0x389673[_0x5779('0xab')][_0x52b11c],_0x303639,_0x5779('0xc4'),_0x51a370),this[_0x5779('0x53')](_0x3ebb17,_0x389673['deletions'][_0x52b11c],_0x27e27d,'deletion',_0x51a370),_0x1b5001[_0x52b11c]={'insertions':this[_0x5779('0xd')](_0x5ab00e),'deletions':this['_prepareViewToSave'](_0x3ebb17),'attachChange':this[_0x5779('0x2')][_0x5779('0x28')](_0x52b11c)||null,'attributesBefore':_0xdaae97(this[_0x5779('0x66')][_0x5779('0x28')](_0x52b11c))||{},'attributesAfter':_0xdaae97(this[_0x5779('0xf9')][_0x5779('0x28')](_0x52b11c))};}return{'diffData':_0x1b5001,'authorsIds':Array[_0x5779('0xa9')](_0x51a370)};}['_processRootBeforeSave'](_0x2b4464){for(const [,_0x2df4e9]of _0x2b4464[_0x5779('0xfb')]){const _0x65f1b1=_0x2df4e9['start'][_0x5779('0x6a')]()['filter'](_0x54184b=>_0x5779('0x52')==_0x54184b[_0x5779('0x5f')]);for(const _0xa1a3d7 of _0x65f1b1)0x1==_0xa1a3d7[_0x5779('0xdb')]&&_0xa1a3d7['getChild'](0x0)['is'](_0x5779('0xd2'),'paragraph')&&_0xa1a3d7[_0x5779('0xd4')](0x0)[_0x5779('0xa7')](_0x5779('0x38'),!0x0);}}['_prepareViewToSave'](_0x383542){this[_0x5779('0xb0')](_0x383542);const _0xd8ad68=this['editor'][_0x5779('0xb5')][_0x5779('0x45')](_0x383542,{}),_0xb1d726=Array[_0x5779('0xa9')](_0xd8ad68[_0x5779('0xd7')]())[_0x5779('0xd6')](_0x1f1d97=>this[_0x5779('0x6b')](_0x1f1d97));return JSON[_0x5779('0x50')](_0xb1d726);}[_0x5779('0x6b')](_0x2b90da){if(_0x2b90da['is'](_0x5779('0x64')))return _0x2b90da['data'];{const _0x4e1a95=_0x2b90da;return{'type':Object[_0x5779('0xe4')](B)[_0x5779('0x55')](_0x28fa9d=>_0x2b90da instanceof B[_0x28fa9d]),'name':_0x4e1a95[_0x5779('0x5f')],'attributes':Array[_0x5779('0xa9')](_0x4e1a95[_0x5779('0x1a')]()),'children':Array[_0x5779('0xa9')](_0x4e1a95[_0x5779('0xd7')]())[_0x5779('0xd6')](_0x1ab124=>this[_0x5779('0x6b')](_0x1ab124))};}}[_0x5779('0x53')](_0x3f9d68,_0x483c88,_0x299e3f,_0x2e4d14,_0x3f49e9){let _0x40b525=null,_0x5694c7=null,_0x59fb1d=0x0;const _0x586caf=this['editor'][_0x5779('0x14')];for(let _0x57551e=0x0;_0x57551e<_0x483c88[_0x5779('0x9b')];_0x57551e++){const _0x69243e=this[_0x5779('0xaf')](_0x483c88[_0x57551e]),_0x5a7bcd=_0x483c88[_0x57551e][_0x5779('0x42')][_0x5779('0x6e')](_0x69243e),_0x5db531=_0x299e3f['get'](_0x5a7bcd),_0x15dca1=_0x57551e==_0x483c88[_0x5779('0x9b')]-0x1;(!_0x40b525&&_0x5db531&&(_0x40b525=_0x5db531,_0x5694c7=_0x483c88[_0x57551e]),_0x40b525&&(!_0x5db531||_0x5db531[_0x5779('0x2d')]!=_0x40b525['userId']))&&(_0x56ec19(_0x5db531,L(_0x5694c7,_0x3f9d68,_0x586caf),L(_0x483c88[_0x57551e],_0x3f9d68,_0x586caf)),_0x40b525=_0x5db531||null,_0x5694c7=_0x5db531?_0x483c88[_0x57551e]:null),_0x40b525&&_0x15dca1&&_0x56ec19(_0x5db531,L(_0x5694c7,_0x3f9d68,_0x586caf),W(_0x483c88[_0x57551e],_0x3f9d68,_0x586caf));}function _0x56ec19(_0xcd2d0a,_0x2b12ab,_0x164bdf){const _0x14f3c8=_0x40b525[_0x5779('0x2d')],_0x3cd704=_0x5779('0x85')+_0x2e4d14+':'+_0x14f3c8+':'+_0x59fb1d++,_0x35ed2a=_0x586caf[_0x5779('0xc1')](_0x2b12ab,_0x164bdf);_0x3f9d68[_0x5779('0xfb')][_0x5779('0x5')](_0x3cd704,_0x35ed2a),null!==_0x14f3c8&&_0x3f49e9[_0x5779('0xc5')](_0x14f3c8);}}[_0x5779('0xaf')](_0x2c58b0){switch(_0x2c58b0[_0x5779('0xac')]){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}[_0x5779('0x6f')](_0x3ad837,_0x581139){_0x3ad837[_0x5779('0xc')]=null;for(const _0x9024b8 in _0x3ad837){const _0x5470b9=_0x3ad837[_0x9024b8];if(_0x5470b9 instanceof _0x59e44b){const _0x7a9c8e=_0x581139[_0x5779('0x28')](_0x5470b9[_0x5779('0x40')]['rootName']);_0x3ad837[_0x9024b8]=this[_0x5779('0xe8')](_0x5470b9,_0x7a9c8e);}if(_0x5470b9 instanceof _0x3b7305){const _0x1cb89a=_0x581139['get'](_0x5470b9[_0x5779('0x40')][_0x5779('0x7c')]);_0x3ad837[_0x9024b8]=this['_fixRange'](_0x5470b9,_0x1cb89a);}_0x5779('0x40')===_0x9024b8&&(_0x3ad837[_0x5779('0x40')]=_0x581139['get'](_0x3ad837['root']['rootName']));}}[_0x5779('0xdd')](_0x3abc3c,_0x3df8b2){return this[_0x5779('0x10')][_0x5779('0x14')]['createRange'](this[_0x5779('0xe8')](_0x3abc3c[_0x5779('0xcc')],_0x3df8b2),this[_0x5779('0xe8')](_0x3abc3c[_0x5779('0x54')],_0x3df8b2));}[_0x5779('0xe8')](_0x279b9d,_0x21bf8f){return this['editor']['model'][_0x5779('0xc0')](_0x21bf8f,_0x279b9d[_0x5779('0x93')],_0x279b9d[_0x5779('0xf6')]);}[_0x5779('0x6d')](_0x33ca01){const _0x2eabbe=this[_0x5779('0xb')][_0x5779('0x28')](_0x33ca01[_0x5779('0x94')][_0x5779('0x40')][_0x5779('0x7c')]),_0x25772e=this[_0x5779('0xe8')](_0x33ca01[_0x5779('0x94')],_0x2eabbe),_0x7129fa=null===_0x33ca01[_0x5779('0x4f')]?null:_0x33ca01['_authorId']||this[_0x5779('0x10')][_0x5779('0x21')][_0x5779('0x28')](_0x5779('0xe3'))['me']['id'],_0xdbc14=_0x25772e[_0x5779('0x73')],_0x249240=this[_0x5779('0x7d')],_0x3987e6=[];for(const _0x16fbaf of _0x33ca01[_0x5779('0xe2')])if(_0x16fbaf['is']('element'))_0x3987e6[_0x5779('0x3f')](this[_0x5779('0xba')](_0x16fbaf));else for(let _0x2bd5bd=0x0;_0x2bd5bd<_0x16fbaf[_0x5779('0xf0')];_0x2bd5bd++)_0x3987e6['push'](new _0x531e94(_0x5779('0x64'),{'vid':this[_0x5779('0x7d')]++}));const _0x1fb4b5=this[_0x5779('0x7d')];for(let _0x1e9849=_0x249240;_0x1e9849<_0x1fb4b5;_0x1e9849++)this[_0x5779('0xee')][_0x5779('0x5')](_0x1e9849,{'userId':_0x7129fa});_0xdbc14[_0x5779('0x69')](_0x25772e[_0x5779('0x1d')],_0x3987e6);}[_0x5779('0x4')](_0x585bee){(_0x585bee=this['_cloneOperation'](_0x585bee,this[_0x5779('0xb')]))[_0x5779('0xb1')]();const _0x5516c=null===_0x585bee[_0x5779('0x4f')]?null:_0x585bee[_0x5779('0x4f')]||this['editor'][_0x5779('0x21')][_0x5779('0x28')](_0x5779('0xe3'))['me']['id'],_0x46dffb=_0x585bee[_0x5779('0xc3')](),_0x440908=_0x46dffb[_0x5779('0x73')],_0x282d5e=_0x46dffb[_0x5779('0x1d')];!function _0x19f222(_0x1e9b20,_0x4561dc,_0x21dcf6,_0x16c16e){for(let _0x3e82ed=_0x21dcf6;_0x3e82ed<_0x16c16e;_0x3e82ed++){const _0x8eaa14=_0x4561dc[_0x5779('0xd4')](_0x3e82ed);_0x8eaa14['is'](_0x5779('0xd2'),_0x5779('0x64'))?_0x1e9b20[_0x5779('0x5')](_0x8eaa14[_0x5779('0x6e')]('vid'),{'userId':_0x5516c}):(_0x1e9b20['set'](_0x8eaa14[_0x5779('0x6e')]('vid_start'),{'userId':_0x5516c}),_0x19f222(_0x1e9b20,_0x8eaa14,0x0,_0x8eaa14[_0x5779('0xdb')]),_0x1e9b20[_0x5779('0x5')](_0x8eaa14[_0x5779('0x6e')]('vid_end'),{'userId':_0x5516c}));}}(this[_0x5779('0xee')],_0x440908,_0x282d5e,_0x282d5e+_0x585bee[_0x5779('0xdf')]);}[_0x5779('0xe0')](_0x3db4b5){const _0x231d60=null===(_0x3db4b5=this[_0x5779('0x0')](_0x3db4b5,this[_0x5779('0xb')]))[_0x5779('0x4f')]?null:_0x3db4b5['_authorId']||this[_0x5779('0x10')][_0x5779('0x21')]['get'](_0x5779('0xe3'))['me']['id'],_0x378672=_0x3db4b5[_0x5779('0x5e')]['parent'],_0x4f176a=_0x3db4b5[_0x5779('0xfa')][_0x5779('0x73')],_0x457b77=_0x378672[_0x5779('0x6e')](_0x5779('0x1e')),_0x26e117=_0x4f176a[_0x5779('0x6e')](_0x5779('0x36'));_0x378672['_setAttribute'](_0x5779('0x1e'),_0x4f176a['getAttribute'](_0x5779('0x1e'))),_0x4f176a[_0x5779('0xa7')](_0x5779('0x1e'),_0x457b77),this[_0x5779('0xee')][_0x5779('0x5')](_0x26e117,{'userId':_0x231d60}),this[_0x5779('0xee')][_0x5779('0x5')](_0x457b77,{'userId':_0x231d60}),_0x3db4b5[_0x5779('0xb1')]();}[_0x5779('0x98')](_0x196e9e){const _0x2a4ad2=null===(_0x196e9e=this[_0x5779('0x0')](_0x196e9e,this[_0x5779('0xb')]))['_authorId']?null:_0x196e9e['_authorId']||this[_0x5779('0x10')][_0x5779('0x21')][_0x5779('0x28')](_0x5779('0xe3'))['me']['id'],_0x1622a7=_0x196e9e[_0x5779('0x56')],_0x39bf60=_0x196e9e['splitPosition']['parent'];_0x196e9e[_0x5779('0xb1')]();const _0x5a27fa=_0x39bf60[_0x5779('0x6e')]('vid_end'),_0x172bd7=_0x196e9e[_0x5779('0x81')]['nodeAfter'];if(_0x1622a7){const _0x3e3916=_0x172bd7['getAttribute']('vid_end'),_0x15534b=_0x39bf60[_0x5779('0x6e')](_0x5779('0x1e'));_0x39bf60[_0x5779('0xa7')](_0x5779('0x1e'),_0x3e3916),_0x172bd7[_0x5779('0xa7')](_0x5779('0x1e'),_0x15534b),this[_0x5779('0xee')][_0x5779('0x5')](_0x39bf60['getAttribute']('vid_end'),{'userId':_0x2a4ad2}),this[_0x5779('0xee')][_0x5779('0x5')](_0x172bd7['getAttribute']('vid_start'),{'userId':_0x2a4ad2});}else{const _0x32f9ca=this['_revisionId']++,_0x55b592=this[_0x5779('0x7d')]++;_0x39bf60['_setAttribute'](_0x5779('0x1e'),_0x32f9ca),_0x172bd7[_0x5779('0xa7')]('vid_start',_0x55b592),_0x172bd7[_0x5779('0xa7')](_0x5779('0x1e'),_0x5a27fa),this['_touched']['set'](_0x32f9ca,{'userId':_0x2a4ad2}),this['_touched']['set'](_0x55b592,{'userId':_0x2a4ad2});}}[_0x5779('0x72')](_0x27060b){if(!_0x27060b[_0x5779('0xde')])return;const _0x13cc77=(_0x27060b=this[_0x5779('0x0')](_0x27060b,this[_0x5779('0xbb')]))['oldRange']?_0x27060b['oldRange'][_0x5779('0x40')]:null,_0x47b1e3=_0x27060b[_0x5779('0x83')]?_0x27060b['newRange']['root']:null;_0x13cc77&&this['_markers'][_0x5779('0xfe')](_0x27060b[_0x5779('0x5f')]),_0x47b1e3&&this[_0x5779('0x99')][_0x5779('0x5')](_0x27060b[_0x5779('0x5f')],_0x27060b[_0x5779('0x83')][_0x5779('0x41')]());const _0x112e90=null===_0x27060b[_0x5779('0x4f')]?null:_0x27060b[_0x5779('0x4f')]||this[_0x5779('0x10')][_0x5779('0x21')]['get'](_0x5779('0xe3'))['me']['id'],_0x185d69=_0x27060b[_0x5779('0x5f')];if(!this[_0x5779('0xed')][_0x5779('0xb4')](_0x185d69))return void this['_touchedMarkers'][_0x5779('0x5')](_0x185d69,{'range':_0x27060b[_0x5779('0x2f')],'userId':_0x112e90});const _0x37c1ca=this['_touchedMarkers'][_0x5779('0x28')](_0x185d69),_0x256d6b=_0x37c1ca[_0x5779('0xd3')],_0x51ab46=_0x27060b['newRange'];null==_0x256d6b&&null==_0x51ab46||_0x256d6b&&_0x51ab46&&_0x256d6b[_0x5779('0x8c')](_0x51ab46)?this[_0x5779('0xed')]['delete'](_0x27060b[_0x5779('0x5f')]):_0x37c1ca[_0x5779('0x2d')]=_0x112e90;}[_0x5779('0x12')](_0x2fa120,_0x32f43e){this[_0x5779('0xbb')]['has'](_0x2fa120[_0x5779('0x7c')])?this[_0x5779('0xbb')]['get'](_0x2fa120[_0x5779('0x7c')])[_0x5779('0xd0')]=_0x2fa120[_0x5779('0x30')]:(this['_diffRoots']['set'](_0x2fa120[_0x5779('0x7c')],G(_0x2fa120['rootName'],!0x0)),this[_0x5779('0xf9')][_0x5779('0x5')](_0x2fa120[_0x5779('0x7c')],{}),_0x32f43e&&this[_0x5779('0xb')]['set'](_0x2fa120[_0x5779('0x7c')],G(_0x2fa120['rootName'],!0x0)));const _0xb0b0b4=null===_0x2fa120[_0x5779('0x4f')]?null:_0x2fa120[_0x5779('0x4f')]||this['editor'][_0x5779('0x21')][_0x5779('0x28')](_0x5779('0xe3'))['me']['id'],_0x9bfcf5=this[_0x5779('0x2')][_0x5779('0x28')](_0x2fa120[_0x5779('0x7c')]);_0x9bfcf5&&_0x9bfcf5[_0x5779('0x2d')]===_0xb0b0b4?this[_0x5779('0x2')][_0x5779('0xfe')](_0x2fa120['rootName']):this[_0x5779('0x2')]['set'](_0x2fa120[_0x5779('0x7c')],{'userId':_0xb0b0b4,'isAttached':_0x2fa120[_0x5779('0x30')]});}[_0x5779('0x33')](_0x496da4){const _0x1105dd=this[_0x5779('0xf9')][_0x5779('0x28')](_0x496da4[_0x5779('0x40')][_0x5779('0x7c')]);null===_0x496da4[_0x5779('0x88')]?delete _0x1105dd[_0x496da4[_0x5779('0x11')]]:_0x1105dd[_0x496da4[_0x5779('0x11')]]=_0x496da4[_0x5779('0x88')];}}function q(_0x44c7fc){const _0x4dbd79=G(_0x44c7fc[_0x5779('0x7c')],_0x44c7fc[_0x5779('0x65')]());for(const _0x224484 of _0x44c7fc[_0x5779('0xd7')]()){const _0x910475=_0x224484[_0x5779('0x68')](!0x0);_0x4dbd79[_0x5779('0x16')](_0x910475);}return _0x4dbd79;}function G(_0x1f9d6d,_0x138882=!0x0){const _0x5b884e=new _0x2d3eef();return _0x5b884e['rootName']=_0x1f9d6d,_0x5b884e[_0x5779('0xd0')]=_0x138882,_0x5b884e[_0x5779('0x65')]=()=>_0x5b884e[_0x5779('0xd0')],_0x5b884e;}function L(_0x1117e6,_0xb842c0,_0x37e976){const _0x3bc112=_0x5779('0x9a')==_0x1117e6[_0x5779('0xac')]?_0x37e976['createPositionAt'](_0x1117e6[_0x5779('0x42')],'end'):_0x37e976[_0x5779('0xb2')](_0x1117e6[_0x5779('0x42')]);return _0x37e976['createPositionFromPath'](_0xb842c0,_0x3bc112['path'],_0x3bc112[_0x5779('0xf6')]);}function W(_0xe2bc1c,_0x409a0e,_0x583c49){const _0x58f275=_0x5779('0x79')==_0xe2bc1c[_0x5779('0xac')]?_0x583c49['createPositionAt'](_0xe2bc1c['item'],0x0):_0x583c49[_0x5779('0xb6')](_0xe2bc1c[_0x5779('0x42')]);return _0x583c49[_0x5779('0xc0')](_0x409a0e,_0x58f275[_0x5779('0x93')],_0x58f275[_0x5779('0xf6')]);}