@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230807.0 → 0.0.0-nightly-20230809.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 (33) hide show
  1. package/LICENSE.md +5 -5
  2. package/README.md +10 -10
  3. package/build/revision-history.js +1 -1
  4. package/package.json +6 -6
  5. package/src/changeitem.js +1 -1
  6. package/src/editor/revisionviewereditor.js +1 -1
  7. package/src/editor/revisionviewereditorui.js +1 -1
  8. package/src/editor/revisionviewereditoruiview.js +1 -1
  9. package/src/revision.js +1 -1
  10. package/src/revisiondiff.js +1 -1
  11. package/src/revisionhistory.js +1 -1
  12. package/src/revisionsrepository.js +1 -1
  13. package/src/revisiontracker.js +1 -1
  14. package/src/revisionviewer.js +1 -1
  15. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  16. package/src/ui/revision/revisionauthorview.js +1 -1
  17. package/src/ui/revision/revisionnameview.js +1 -1
  18. package/src/ui/revision/revisionview.js +1 -1
  19. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  20. package/src/ui/revision/subrevisionview.js +1 -1
  21. package/src/ui/revision/utils.js +1 -1
  22. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  23. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  26. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  27. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  28. package/src/ui/revisionssidebar/utils.js +1 -1
  29. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  30. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  31. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  32. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  33. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ce1=['size','attributes','_handleMarkerOperation','_makeRevision','addRootAttribute','_copyMarkers','_revisionDataBuilder','elementStart','_authorId','_setConversion','ready','offsetSize','startsWith','creatorId','childCount','_setAttribute','_appendChild','_cloneOperation','_lastFrom','_loadState','for','addRevisionData','finally','graveyardPosition','position','$graveyard','_initialRevisionId','getRevisionRootsAttributes','userId','delete','vid_end','_handleRootAttributeOperation','howMany','_markChanges','_handleMergeOperation','_fixRange','_addPendingAction','reverse','revision','toView','_source','_touchedMarkers','pluginName','buildRevisionData','_getVidAttributeName','initial','_makeModelFromViewString','config','key','children','Users','_handleRootOperation','changeRootAttribute','slice','deletion','_getViewJson','isAdd','hasContent','item','_handleMoveOperation','map','saveRevision','element','_handleSplitOperation','createPositionFromPath','editor-initial-data-replaced-with-revision-data','root','parent','get','baseVersion','remove','dataDowncast','upcast','createPositionAfter','filter','getIndex','_insertChild','oldRange','NEGATIVE_INFINITY','repository','authors','history','newRange','name','isEqual','detachRoot','_continueCurrentRevision','_transformMarkers','split','includes','_touchedRoots','getWalker','sendBufferedUpdates','_removeMetaData','_applyOperations','vid_start','insertionPosition','_operations','locale','Initial\x20revision','_replaceEditorDataWithRevisionData','move','insertions','_bufferUpdate','end','keepParagraph','model','from','getRootNames','PENDING_ACTION_REVISION_HISTORY','_loadRevisionData','bind','revision-start','_isPendingUpdate','document','adapter','insert','getOperation','set','_getFromVersion','_isAttached','getLatestVersion','collaboration.channelId','removeRootAttribute','nodes','getData','getAncestors','requires','RealTimeCollaborationClient','createRange','deletions','_isInit','add','_baseRoots','elementEnd','type','_removePendingAction','initialData','getRevisions','_clone','_getBaseVids','_revisionId','_calculateMetaData','addRevision','getTransformedByOperation','rootName','values','_getState','_pendingAction','isReady','_generateTape','push','_savedMetaData','editing','dataToMarker','Empty\x20document','length','_idsRoots','source','_makeIdsRoot','documentFragment','path','markerToData','splitPosition','max','getUser','marked','version','affectsData','createPositionAt','_markers','createRangeIn','_diffRoots','_baseRootsAttributes','_processRootBeforeSave','_baseIdsRoots','newValue','data','reInit','attributesAfter','attachChange','_saveMetaData','loadState','afterInit','previousPosition','markers','editor','currentRevision','default','PendingActions','revision:','view','clear','_fixPosition','_touched','getNodeByPath','processor','clone','createPositionBefore','roots','find','getCurrentRevisionId','targetPosition','$text','getAttribute','_bufferedUpdates','getRevision','creator','_createInitialRevision','RevisionsRepository','update','getChildren','_handleInsertOperation','vid','_lastTo','insertion','nodeAfter','start','keys','plugins','trim','_handleOperation','getChild','_reset','marker','getAttributes','useFillerType','data-revision-','has','_createCurrentRevision','rootsAttributes','_fixOperation','tableCell','range','createdAt','RevisionTracker','updateRevisions','getRevisionDocumentData','authorsIds','fromEntries','_diffRootsAttributes','some','getMovedRangeStart','toVersion','setSource','_removeRevisionMarkers','init','stringify','fromVersion','parse','getRoot','getOperations','forEach','paragraph','offset','_update','_findInsertionIndex','_createFromRanges','conversion','_startingVersion','string','then','_prepareViewToSave','_execute','stickiness','isAttached','_loadedStateData','_getPreviousFrom','setRevisionData','_startingRevisionId','sort','diffData'];(function(_0x429730,_0x4ce167){const _0x50fe70=function(_0x399159){while(--_0x399159){_0x429730['push'](_0x429730['shift']());}};_0x50fe70(++_0x4ce167);}(_0x4ce1,0x17b));const _0x50fe=function(_0x429730,_0x4ce167){_0x429730=_0x429730-0x0;let _0x50fe70=_0x4ce1[_0x429730];return _0x50fe70;};import{Users as _0x1129fb}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0xdf8ace,PendingActions as _0x566baa}from'ckeditor5/src/core';import{logWarning as _0x5dc35f,uid as _0x5ca389}from'ckeditor5/src/utils';import{Position as _0x42716c,Range as _0x4ce064,Element as _0x59be18,DocumentFragment as _0x1ad183,ViewText as _0x2a6498,ViewElement as _0x5dd5eb,ViewContainerElement as _0x55cbf6,ViewAttributeElement as _0x129dc6,ViewEmptyElement as _0x1f2be4,ViewRawElement as _0x1cc95e,ViewUIElement as _0x54edc1,ViewDocumentFragment as _0x20ce28}from'ckeditor5/src/engine';import _0xf5fa97 from'./revisionsrepository';import{getTranslation as _0x4b8e3b}from'./utils/common-translations';import{cloneDeep as _0x12af63,isEqual as _0x50686d}from'lodash-es';const B={'c':_0x55cbf6,'a':_0x129dc6,'e':_0x1f2be4,'r':_0x1cc95e,'u':_0x54edc1};export default class l extends _0xdf8ace{static get[_0x50fe('0xcf')](){return _0x50fe('0x80');}static get[_0x50fe('0x14')](){return[_0x1129fb,_0xf5fa97,_0x566baa];}constructor(_0x1c2236){super(_0x1c2236),this[_0x50fe('0x8')]=null,this[_0x50fe('0x50')]=null,this[_0x50fe('0xab')]=new H(this['editor']),this[_0x50fe('0xbf')]=this['editor']['config']['get'](_0x50fe('0xf'))||_0x50fe('0xd2'),this[_0x50fe('0x62')]=new Map(),this['_loadedStateData']=null;const _0x101466=_0x5ca389();this['_source']={'history':this['editor'][_0x50fe('0x10f')]['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor'][_0x50fe('0x10f')]['document']['version']),'getCurrentRevisionId':()=>_0x101466},this[_0x50fe('0xb')](_0x50fe('0x2a'),!0x1),this[_0x50fe('0xb')]('isEnabled',!0x0),this[_0x50fe('0xb')](_0x50fe('0x6'),!0x1),this[_0x50fe('0x4f')]['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this[_0x50fe('0x4f')][_0x50fe('0x97')][_0x50fe('0xb9')](_0x50fe('0xed'))[_0x50fe('0x2f')]({'view':'revision'});}[_0x50fe('0x8b')](){this[_0x50fe('0xf4')]=this[_0x50fe('0x4f')]['plugins'][_0x50fe('0xe9')](_0x50fe('0x66')),this[_0x50fe('0xae')](),this[_0x50fe('0x4f')][_0x50fe('0x46')]['on'](_0x50fe('0xaf'),()=>{const _0x5a4e9a=this[_0x50fe('0xf4')][_0x50fe('0x63')](0x0),_0x313990=_0x5a4e9a&&null===_0x5a4e9a[_0x50fe('0x64')]?_0x5a4e9a:null;if(this[_0x50fe('0xfb')]=!!_0x313990&&this[_0x50fe('0x4f')][_0x50fe('0xd4')][_0x50fe('0xe9')]('revisionHistory.resumeUnsavedRevision'),this[_0x50fe('0x4f')]['plugins']['has'](_0x50fe('0x15'))){const _0x64973b=this['_source'][_0x50fe('0x5e')](),_0x4c136e=this[_0x50fe('0xf4')][_0x50fe('0x63')](_0x64973b);if(_0x4c136e)this[_0x50fe('0x98')]=_0x4c136e[_0x50fe('0x8d')],this[_0x50fe('0xfb')]=!0x1;else{const _0x4ada49=this[_0x50fe('0xcd')][_0x50fe('0xf6')][_0x50fe('0x106')][_0x50fe('0x5d')](_0x52ca09=>!_0x52ca09[_0x50fe('0x18')]),_0x228483=_0x4ada49?_0x4ada49[_0x50fe('0xea')]:this[_0x50fe('0xcd')][_0x50fe('0xf6')][_0x50fe('0x3c')];_0x5a4e9a?(_0x5a4e9a[_0x50fe('0x88')]<_0x228483&&_0x5a4e9a['_update']({'toVersion':_0x228483}),this[_0x50fe('0xfb')]?(this['_source'][_0x50fe('0x5e')]=()=>_0x313990['id'],this[_0x50fe('0x98')]=_0x313990['fromVersion']):(this[_0x50fe('0x98')]=_0x5a4e9a[_0x50fe('0x88')],this[_0x50fe('0xfb')]=!0x1)):(this[_0x50fe('0x98')]=_0x228483,this[_0x50fe('0xfb')]=!0x1);}}else _0x313990&&(this[_0x50fe('0x4f')][_0x50fe('0x10f')][_0x50fe('0x7')][_0x50fe('0xf6')]['version']=Math[_0x50fe('0x39')](_0x313990[_0x50fe('0x88')],this[_0x50fe('0x4f')][_0x50fe('0x10f')][_0x50fe('0x7')][_0x50fe('0xf6')][_0x50fe('0x3c')]),_0x313990[_0x50fe('0x8d')]===_0x313990[_0x50fe('0x88')]?(0x0!==_0x313990[_0x50fe('0x8d')]&&(this[_0x50fe('0xcd')][_0x50fe('0x5e')]=()=>_0x313990['id']),this[_0x50fe('0xfb')]=!0x1):this[_0x50fe('0xfb')]&&(this[_0x50fe('0xcd')][_0x50fe('0x5e')]=()=>_0x313990['id'],this[_0x50fe('0x98')]=_0x313990[_0x50fe('0x8d')])),this['_continueCurrentRevision']||(this['_startingVersion']=this[_0x50fe('0x4f')][_0x50fe('0x10f')][_0x50fe('0x7')][_0x50fe('0x3c')]);this[_0x50fe('0xab')][_0x50fe('0x8b')](this[_0x50fe('0xcd')][_0x50fe('0xf6')]),this['_createInitialRevision'](this[_0x50fe('0x98')]),this[_0x50fe('0x7a')](this[_0x50fe('0x98')]),this[_0x50fe('0x8')]&&this[_0x50fe('0x101')]();}),this[_0x50fe('0x4')](_0x50fe('0x2a'))['to'](this,_0x50fe('0x6'),_0x23b093=>!_0x23b093);}async[_0x50fe('0x4c')](){if(this['repository'][_0x50fe('0x31')]>0x0){const _0x373f10=this[_0x50fe('0xf4')][_0x50fe('0x63')](0x0),_0x1fbdcd=await this[_0x50fe('0x82')](_0x373f10),_0x59fee0=await this[_0x50fe('0xc0')](_0x373f10);this[_0x50fe('0x109')](_0x1fbdcd,_0x59fee0);}}[_0x50fe('0x89')](_0x51235b){this[_0x50fe('0xcd')]=_0x51235b;}async[_0x50fe('0x67')](){const _0xe321a1=await this['_source'][_0x50fe('0xe')]();if(_0xe321a1>this[_0x50fe('0x50')]['toVersion']){await this[_0x50fe('0xb8')]();const _0x359e4c=this[_0x50fe('0xd0')]({'revision':this[_0x50fe('0x50')],'to':_0xe321a1});_0x359e4c[_0x50fe('0xf5')]=_0x359e4c[_0x50fe('0x83')][_0x50fe('0xe1')](_0x54698b=>this[_0x50fe('0x4f')][_0x50fe('0x70')][_0x50fe('0xe9')](_0x50fe('0xd7'))['getUser'](_0x54698b)),this[_0x50fe('0x50')][_0x50fe('0x94')](_0x359e4c);}}async[_0x50fe('0xb8')](){this[_0x50fe('0xfb')]&&!this[_0x50fe('0x9f')]&&(await this[_0x50fe('0x3')](this[_0x50fe('0x50')]),this[_0x50fe('0xab')][_0x50fe('0x4b')](this[_0x50fe('0x50')]),this[_0x50fe('0x9f')]={'fromVersion':this['currentRevision'][_0x50fe('0x8d')],'authors':this['currentRevision'][_0x50fe('0xf5')][_0x50fe('0xda')]()});}async[_0x50fe('0xe2')](_0xc501a2={},_0x34915f=null){const _0x2809d8=[];await this[_0x50fe('0xb8')](),this['_continueCurrentRevision']=!0x1,_0x34915f>this[_0x50fe('0x50')][_0x50fe('0x88')]&&(_0x34915f=null),null===_0x34915f&&(_0x34915f=await this[_0x50fe('0xcd')][_0x50fe('0xe')]());const _0x256373=this['_getFromVersion'](_0x34915f),_0x39a3c4=this['buildRevisionData']({'from':_0x256373,'to':_0x34915f});if(this['currentRevision']['toVersion']<_0x34915f){const _0x4002fe=this['buildRevisionData']({'revision':this[_0x50fe('0x50')],'from':_0x34915f,'to':_0x34915f});_0x4002fe['authors']=[],_0x4002fe[_0x50fe('0x83')]=[],_0x4002fe['id']=this['currentRevision']['id'],this[_0x50fe('0x50')]['_update'](_0x4002fe,!0x0),delete _0x4002fe[_0x50fe('0xf5')],_0x2809d8[_0x50fe('0x2c')](_0x4002fe);}_0xc501a2['creatorId']=this[_0x50fe('0x4f')][_0x50fe('0x70')][_0x50fe('0xe9')](_0x50fe('0xd7'))['me']['id'],_0xc501a2[_0x50fe('0xf8')]=_0xc501a2[_0x50fe('0xf8')]||null,_0xc501a2['id']=_0xc501a2['id']||_0x5ca389(),_0xc501a2={..._0xc501a2,..._0x39a3c4};const _0x3e85bd=this['addRevisionData'](_0xc501a2);_0x2809d8['push'](_0xc501a2);const _0x875a18=this[_0x50fe('0xf4')][_0x50fe('0xf0')](_0x3e85bd);if(0x0!==_0x875a18){const _0x4e5f04=this['repository'][_0x50fe('0x63')](_0x875a18-0x1);if(_0x4e5f04[_0x50fe('0x8d')]!==_0x34915f){const _0x599ec8=this[_0x50fe('0xab')][_0x50fe('0x12')](_0x34915f,_0x4e5f04[_0x50fe('0x88')]),_0x4e2f08={'id':_0x4e5f04['id'],'diffData':_0x599ec8[_0x50fe('0xa4')],'authorsIds':_0x599ec8[_0x50fe('0x83')],'authors':_0x599ec8[_0x50fe('0x83')]['map'](_0x3d3547=>this['editor'][_0x50fe('0x70')]['get'](_0x50fe('0xd7'))[_0x50fe('0x3a')](_0x3d3547)),'fromVersion':_0x34915f};_0x4e5f04===this[_0x50fe('0x50')]&&(_0x4e2f08[_0x50fe('0x7f')]=new Date(_0xc501a2[_0x50fe('0x7f')]['getTime']()+0xa)),_0x4e5f04[_0x50fe('0x94')](_0x4e2f08,!0x0),delete _0x4e2f08[_0x50fe('0xf5')],_0x2809d8[_0x50fe('0x2c')](_0x4e2f08);}}if(this[_0x50fe('0x8')]){for(const _0xa3652f of _0x2809d8)this[_0x50fe('0x10c')](_0xa3652f['id'],_0xa3652f,!0x0);this['sendBufferedUpdates']();}return _0x3e85bd;}['addRevisionData'](_0xd1732f){const _0x384c27=this['repository']['createRevision'](_0xd1732f);return this[_0x50fe('0x8')]&&_0x384c27['on'](_0x50fe('0x94'),(_0x4e9a12,_0x15267f,_0x41c42a)=>{_0x41c42a||(this['_bufferUpdate'](_0x15267f['id'],_0x15267f,!0x0),this['sendBufferedUpdates']());}),this[_0x50fe('0xf4')][_0x50fe('0x24')](_0x384c27,this['_findInsertionIndex'](_0x384c27)),_0x384c27;}async[_0x50fe('0x82')](_0x134c80){await this[_0x50fe('0x3')](_0x134c80);const _0x410b20={};for(const _0x542cfe in _0x134c80['diffData']){if(_0x134c80[_0x50fe('0xa4')][_0x542cfe]['attachChange']&&!_0x134c80[_0x50fe('0xa4')][_0x542cfe][_0x50fe('0x49')]['isAttached'])continue;const _0x348ad5=this[_0x50fe('0x8a')](JSON[_0x50fe('0x8e')](_0x134c80[_0x50fe('0xa4')][_0x542cfe][_0x50fe('0x10b')])),_0x2e45b2=this['editor']['editing'][_0x50fe('0x54')][_0x50fe('0x7')],_0x26ce88=new _0x20ce28(_0x2e45b2,_0x348ad5[_0x50fe('0xe1')](_0x355caf=>J(_0x355caf,this[_0x50fe('0x4f')])));this[_0x50fe('0x4f')]['data'][_0x50fe('0x59')][_0x50fe('0x77')](_0x50fe('0x3b')),_0x410b20[_0x542cfe]=this[_0x50fe('0x4f')]['data'][_0x50fe('0x59')]['toData'](_0x26ce88),this[_0x50fe('0x4f')][_0x50fe('0x46')][_0x50fe('0x59')]['useFillerType'](_0x50fe('0x51'));}return _0x410b20;}async['getRevisionRootsAttributes'](_0x39d072){await this[_0x50fe('0x3')](_0x39d072);const _0x2f617a={};for(const _0x2dee30 in _0x39d072[_0x50fe('0xa4')])_0x39d072[_0x50fe('0xa4')][_0x2dee30][_0x50fe('0x49')]&&!_0x39d072['diffData'][_0x2dee30][_0x50fe('0x49')][_0x50fe('0x9e')]||(_0x2f617a[_0x2dee30]=_0x39d072['diffData'][_0x2dee30][_0x50fe('0x48')]||{});return _0x2f617a;}[_0x50fe('0x101')](){if(0x0===this[_0x50fe('0x62')]['size'])return;if(this['_isPendingUpdate'])return;let _0x44c89b=Array[_0x50fe('0x0')](this['_bufferedUpdates'][_0x50fe('0x27')]());this['_bufferedUpdates'][_0x50fe('0x55')]();for(let _0x2a7f20=0x0;_0x2a7f20<_0x44c89b[_0x50fe('0x31')];_0x2a7f20++){const _0x412e5f=_0x44c89b[_0x2a7f20];let _0x21aa30=!0x1;for(const _0x5ea35c of Object[_0x50fe('0x6f')](_0x412e5f))void 0x0===_0x412e5f[_0x5ea35c]?delete _0x412e5f[_0x5ea35c]:'id'!==_0x5ea35c&&(_0x21aa30=!0x0);_0x21aa30||(_0x44c89b[_0x2a7f20]=null);}if(_0x44c89b=_0x44c89b[_0x50fe('0xef')](_0x1aa105=>null!==_0x1aa105),!_0x44c89b['length'])return;for(let _0x32c9e3=0x0;_0x32c9e3<_0x44c89b[_0x50fe('0x31')];_0x32c9e3++){const _0x573941=_0x44c89b[_0x32c9e3];void 0x0!==_0x573941['fromVersion']&&void 0x0===_0x573941[_0x50fe('0x88')]&&(_0x573941[_0x50fe('0x88')]=this['repository'][_0x50fe('0x63')](_0x573941['id'])[_0x50fe('0x88')]),void 0x0!==_0x573941[_0x50fe('0x88')]&&void 0x0===_0x573941[_0x50fe('0x8d')]&&(_0x573941[_0x50fe('0x8d')]=this[_0x50fe('0xf4')][_0x50fe('0x63')](_0x573941['id'])[_0x50fe('0x8d')]);}const _0x44ff7e=this['editor'][_0x50fe('0xd4')]['get'](_0x50fe('0xf'));this[_0x50fe('0x6')]=!0x0,this['_addPendingAction'](),this[_0x50fe('0x8')][_0x50fe('0x81')](_0x44c89b,_0x44ff7e)[_0x50fe('0xbb')](()=>{this['_isPendingUpdate']=!0x1;})[_0x50fe('0x9a')](_0xa85022=>{if(_0xa85022)for(const _0x3f6af3 of _0xa85022)this[_0x50fe('0xa1')]({'id':_0x3f6af3['id'],'createdAt':_0x3f6af3['createdAt']});this[_0x50fe('0x1d')](),this['sendBufferedUpdates']();});}[_0x50fe('0x109')](_0x3041b3,_0xd4eea8){let _0x553bd7=this[_0x50fe('0x4f')][_0x50fe('0xd4')]['get'](_0x50fe('0x1e')),_0x47ae10=this[_0x50fe('0x4f')][_0x50fe('0xd4')]['get'](_0x50fe('0x7b'));if(void 0x0===_0x553bd7){_0x553bd7={};for(const _0x4c4ab9 of this[_0x50fe('0x4f')][_0x50fe('0x10f')]['document'][_0x50fe('0x1')]())_0x553bd7[_0x4c4ab9]='';}if(_0x50fe('0x99')==typeof _0x553bd7&&(_0x553bd7={'main':_0x553bd7}),void 0x0===_0x47ae10){_0x47ae10={};for(const _0x4d9944 of this['editor'][_0x50fe('0x10f')][_0x50fe('0x7')][_0x50fe('0x1')]())_0x47ae10[_0x4d9944]={};}let _0x45f5b8=!0x1;const _0x355fa3=Object[_0x50fe('0x6f')](_0x553bd7),_0x279c29=Object[_0x50fe('0x6f')](_0x3041b3);for(const _0x48806a of _0x355fa3){if(_0x553bd7[_0x48806a]!==_0x3041b3[_0x48806a]&&''!==_0x553bd7[_0x48806a][_0x50fe('0x71')]()){_0x45f5b8=!0x0;break;}if(!_0x50686d(_0x47ae10[_0x48806a],_0xd4eea8[_0x48806a])&&Object['keys'](_0x47ae10[_0x48806a])[_0x50fe('0x31')]>0x0){_0x45f5b8=!0x0;break;}}_0x45f5b8||(_0x45f5b8=_0x279c29[_0x50fe('0x86')](_0x58faa3=>!this['editor']['model'][_0x50fe('0x7')][_0x50fe('0x8f')](_0x58faa3))),_0x45f5b8&&_0x5dc35f(_0x50fe('0xe6'),{'editorData':_0x553bd7,'editorRootsAttributes':_0x47ae10,'revisionData':_0x3041b3,'revisionRootsAttributes':_0xd4eea8}),this[_0x50fe('0x4f')]['config'][_0x50fe('0xb')]('initialData',_0x3041b3),this[_0x50fe('0x4f')]['config'][_0x50fe('0xb')](_0x50fe('0x7b'),_0xd4eea8);}[_0x50fe('0xc9')](){if(!this[_0x50fe('0x29')]){const _0x41f58c=this[_0x50fe('0x4f')][_0x50fe('0x70')][_0x50fe('0xe9')](_0x50fe('0x52'));this[_0x50fe('0x29')]=_0x41f58c[_0x50fe('0x19')](_0x4b8e3b(this['editor'][_0x50fe('0x107')],_0x50fe('0x2')));}}[_0x50fe('0x1d')](){this[_0x50fe('0x29')]&&(this[_0x50fe('0x4f')]['plugins'][_0x50fe('0xe9')](_0x50fe('0x52'))['remove'](this['_pendingAction']),this[_0x50fe('0x29')]=null);}[_0x50fe('0x95')](_0x2df5b6){const _0x510744=this[_0x50fe('0xf4')][_0x50fe('0x1f')]();_0x510744[_0x50fe('0xca')]();let _0xab46aa=0x0;for(;_0xab46aa<_0x510744[_0x50fe('0x31')];){const _0xa0dd3c=_0x510744[_0xab46aa];if(_0xa0dd3c===this[_0x50fe('0x50')]){_0xab46aa++;continue;}if(_0xa0dd3c['id']===this['_initialRevisionId'])break;const _0x19e242=_0x2df5b6[_0x50fe('0x88')]-_0xa0dd3c[_0x50fe('0x88')]||_0x2df5b6[_0x50fe('0x8d')]-_0xa0dd3c[_0x50fe('0x8d')];if(_0x19e242>0x0)break;if(_0x19e242<0x0)_0xab46aa++;else{if(!_0x2df5b6[_0x50fe('0x64')]&&_0xa0dd3c[_0x50fe('0x64')])break;if(_0xa0dd3c[_0x50fe('0x64')]||!_0x2df5b6[_0x50fe('0x64')]){if(_0x2df5b6['createdAt']>_0xa0dd3c['createdAt'])break;_0xab46aa++;}else _0xab46aa++;}}return _0xab46aa;}[_0x50fe('0xa1')](_0x1e0380){const _0x2ef8a0=this[_0x50fe('0xf4')]['getRevision'](_0x1e0380['id']);if(_0x1e0380[_0x50fe('0x7f')]&&(_0x1e0380[_0x50fe('0x7f')]=new Date(_0x1e0380[_0x50fe('0x7f')])),_0x1e0380[_0x50fe('0x83')]){const _0x29e392=this[_0x50fe('0x4f')][_0x50fe('0x70')][_0x50fe('0xe9')](_0x50fe('0xd7'));_0x1e0380[_0x50fe('0xf5')]=_0x1e0380[_0x50fe('0x83')][_0x50fe('0xe1')](_0x2c9c44=>_0x29e392[_0x50fe('0x3a')](_0x2c9c44));}_0x2ef8a0[_0x50fe('0x94')](_0x1e0380,!0x0);}[_0x50fe('0xd0')]({revision:_0x5afa36=null,from:_0x3b9695=null,to:_0x434f57=null}){_0x3b9695=null!==_0x3b9695?_0x3b9695:_0x5afa36[_0x50fe('0x8d')],_0x434f57=null!==_0x434f57?_0x434f57:_0x5afa36['toVersion'];const _0x405ddc=this[_0x50fe('0xab')]['getData'](_0x3b9695,_0x434f57),_0x5e88c0={'diffData':_0x405ddc[_0x50fe('0xa4')],'authorsIds':_0x405ddc[_0x50fe('0x83')],'fromVersion':_0x3b9695,'toVersion':_0x434f57};if(!_0x5afa36||_0x434f57!==_0x5afa36[_0x50fe('0x88')]){const _0x3b6e28=_0x434f57-0x1,_0x1f6711=this['_source']['history'][_0x50fe('0xa')](_0x3b6e28);_0x5e88c0[_0x50fe('0x7f')]=_0x1f6711&&_0x1f6711['createdAt']||new Date();}if(this[_0x50fe('0x9f')]&&_0x3b9695===this[_0x50fe('0x9f')][_0x50fe('0x8d')])for(const _0x5315e4 of this[_0x50fe('0x9f')][_0x50fe('0xf5')])_0x5e88c0[_0x50fe('0x83')][_0x50fe('0xfe')](_0x5315e4['id'])||_0x5e88c0[_0x50fe('0x83')][_0x50fe('0x2c')](_0x5315e4['id']);return _0x5e88c0;}[_0x50fe('0x3')](_0xf9e75f){if(!_0xf9e75f||_0xf9e75f[_0x50fe('0xa4')])return Promise['resolve']();{const _0x417e1b=this['editor'][_0x50fe('0xd4')][_0x50fe('0xe9')](_0x50fe('0xf'));return this[_0x50fe('0x8')]['getRevision']({'channelId':_0x417e1b,'revisionId':_0xf9e75f['id']})[_0x50fe('0x9a')](_0x3fca99=>{_0xf9e75f[_0x50fe('0xa4')]=_0x3fca99[_0x50fe('0xa4')];});}}[_0x50fe('0x10c')](_0x262d2b,_0x3f2c33,_0x26197c){if(this[_0x50fe('0x62')]['has'](_0x262d2b)){const _0x4e06ec=this[_0x50fe('0x62')]['get'](_0x262d2b);_0x3f2c33=_0x26197c?{..._0x4e06ec,..._0x3f2c33}:{..._0x3f2c33,..._0x4e06ec};}this[_0x50fe('0x62')][_0x50fe('0xb')](_0x262d2b,_0x3f2c33);}[_0x50fe('0xc')](_0x458416){const _0x3c5514=this['repository'][_0x50fe('0x1f')]();_0x3c5514['reverse'](),_0x3c5514['shift']();const _0x17f8e3=_0x3c5514['find'](_0x59bc2f=>_0x59bc2f['toVersion']<=_0x458416)[_0x50fe('0x88')];return _0x17f8e3<this[_0x50fe('0x98')]?this[_0x50fe('0x98')]:_0x17f8e3;}[_0x50fe('0x65')](_0x453382){const _0x255a84=this[_0x50fe('0xf4')][_0x50fe('0x63')](this[_0x50fe('0xf4')][_0x50fe('0x31')]-0x1);if(_0x255a84)this[_0x50fe('0xbf')]=_0x255a84['id'];else{const _0x3cd780=!this[_0x50fe('0x4f')][_0x50fe('0x10f')][_0x50fe('0x7')][_0x50fe('0x5c')][_0x50fe('0x5d')](_0x4d081b=>this[_0x50fe('0x4f')][_0x50fe('0x10f')][_0x50fe('0xde')](_0x4d081b)),_0x994f54=this['editor']['plugins'][_0x50fe('0xe9')](_0x50fe('0xd7'))['me']['id'],_0x51a3a1=_0x4b8e3b(this[_0x50fe('0x4f')][_0x50fe('0x107')],_0x3cd780?_0x50fe('0x30'):_0x50fe('0x108'));this['_makeRevision']({'from':_0x453382,'to':_0x453382,'id':this[_0x50fe('0xbf')],'name':_0x51a3a1,'creatorId':_0x994f54});}}[_0x50fe('0x7a')](_0x161a14){const _0x5be4e2=this['_source'][_0x50fe('0x5e')]();this[_0x50fe('0x50')]=this[_0x50fe('0xf4')][_0x50fe('0x63')](_0x5be4e2),this['currentRevision']||(this[_0x50fe('0x50')]=this['_makeRevision']({'from':_0x161a14,'to':_0x161a14,'id':_0x5be4e2,'name':'','creatorId':null}));}[_0x50fe('0xa8')]({name:_0x1a3bc8,from:_0x352fcd,to:_0x1f17c9,creatorId:_0x1a139c,id:_0xbf4688}){const _0xa32f55=this[_0x50fe('0xd0')]({'from':_0x352fcd,'to':_0x1f17c9});_0xa32f55['name']=_0x1a3bc8,_0xa32f55[_0x50fe('0xb2')]=_0x1a139c,_0xa32f55['id']=_0xbf4688;const _0x2c7a4c=this[_0x50fe('0xba')](_0xa32f55);return this['adapter']&&this['_bufferUpdate'](_0xa32f55['id'],_0xa32f55,!0x0),_0x2c7a4c;}[_0x50fe('0xae')](){this[_0x50fe('0x4f')]['conversion'][_0x50fe('0xb9')](_0x50fe('0xec'))[_0x50fe('0x37')]({'model':_0x50fe('0xcb')});}[_0x50fe('0x8a')](_0x1aa635){return(_0x1aa635=_0x1aa635[_0x50fe('0xef')](_0x34d450=>!_0x34d450[_0x50fe('0xf8')]||_0x50fe('0x5')!==_0x34d450[_0x50fe('0xf8')]&&'revision-end'!==_0x34d450[_0x50fe('0xf8')]))[_0x50fe('0x91')](_0xf2a94a=>{'string'!=typeof _0xf2a94a&&(_0xf2a94a[_0x50fe('0xd6')]=this['_removeRevisionMarkers'](_0xf2a94a[_0x50fe('0xd6')]),_0xf2a94a[_0x50fe('0xa6')]=_0xf2a94a[_0x50fe('0xa6')][_0x50fe('0xef')](_0x5a6371=>!_0x5a6371[0x0][_0x50fe('0xb1')](_0x50fe('0x78'))));}),_0x1aa635;}}function J(_0x52671f,_0x2a134b){const _0x59fd59=_0x2a134b['editing'][_0x50fe('0x54')][_0x50fe('0x7')];if(_0x50fe('0x99')==typeof _0x52671f)return new _0x2a6498(_0x59fd59,_0x52671f);{const _0x260a37=_0x52671f[_0x50fe('0xd6')][_0x50fe('0xe1')](_0x283e81=>J(_0x283e81,_0x2a134b));return new(B[_0x52671f[(_0x50fe('0x1c'))]]||_0x5dd5eb)(_0x59fd59,_0x52671f[_0x50fe('0xf8')],_0x52671f[_0x50fe('0xa6')],_0x260a37);}}class H{constructor(_0x1c4059){this[_0x50fe('0x4f')]=_0x1c4059,this[_0x50fe('0x2d')]=new Map(),this[_0x50fe('0xb7')]=-0x1,this[_0x50fe('0x6b')]=-0x1,this[_0x50fe('0x3f')]=new Map(),this[_0x50fe('0x41')]=new Map(),this[_0x50fe('0x85')]=new Map(),this[_0x50fe('0x1a')]=new Map(),this[_0x50fe('0x42')]=new Map(),this['_idsRoots']=new Map(),this[_0x50fe('0x44')]=new Map(),this[_0x50fe('0x57')]=new Map(),this[_0x50fe('0xce')]=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}['init'](_0x22f38d){this[_0x50fe('0x33')]=_0x22f38d;const _0x3981ad=new Map(),_0x32a574=new Map(),_0x23f43a=this[_0x50fe('0x4f')][_0x50fe('0x10f')][_0x50fe('0x7')][_0x50fe('0x5c')]['map'](_0x2dae70=>_0x2dae70[_0x50fe('0x26')]);for(const _0x532d97 of _0x23f43a){const _0x28069a=this['editor']['model'][_0x50fe('0x7')][_0x50fe('0x8f')](_0x532d97),_0x286996=q(_0x28069a);_0x3981ad['set'](_0x532d97,_0x286996),_0x32a574[_0x50fe('0xb')](_0x532d97,Object[_0x50fe('0x84')](_0x28069a[_0x50fe('0x76')]()));}const _0xc0987a=Array[_0x50fe('0x0')](this['editor'][_0x50fe('0x10f')]['markers'])[_0x50fe('0xe1')](_0x23aeef=>[_0x23aeef[_0x50fe('0xf8')],_0x23aeef['getRange']()]),_0x2896cf=this[_0x50fe('0x33')]['version'];this[_0x50fe('0x4a')](_0x2896cf,_0x3981ad,_0xc0987a,_0x32a574),this[_0x50fe('0xa2')]=this['_revisionId'];const _0x39fcb2=new Map(),_0x4e3811=new Map();for(const _0xb5b52f of _0x23f43a){const _0x1c307c=G(_0xb5b52f);_0x39fcb2[_0x50fe('0xb')](_0xb5b52f,_0x1c307c),_0x4e3811[_0x50fe('0xb')](_0xb5b52f,{});}this[_0x50fe('0x4a')](Number[_0x50fe('0xf3')],_0x39fcb2,[],_0x4e3811);}['getData'](_0x534d7e,_0x58c193){if(this[_0x50fe('0xb7')]===_0x534d7e&&this['_lastTo']<=_0x58c193)this[_0x50fe('0x2d')][_0x50fe('0xa5')]>0x1&&this[_0x50fe('0x102')](this['_lastTo']),this['_applyOperations'](this[_0x50fe('0x6b')],_0x58c193,!0x0);else{if(!this[_0x50fe('0x2d')][_0x50fe('0x79')](_0x534d7e)){const _0x12cb94=this[_0x50fe('0xa0')](_0x534d7e);this[_0x50fe('0x23')](_0x12cb94,_0x534d7e,!0x1);}this[_0x50fe('0x23')](_0x534d7e,_0x58c193,!0x0);}return this['_lastFrom']=_0x534d7e,this['_lastTo']=_0x58c193,this['_getState']();}[_0x50fe('0x4b')](_0x9db0b3){this[_0x50fe('0x74')](),this['_lastFrom']=_0x9db0b3['fromVersion'],this[_0x50fe('0x6b')]=_0x9db0b3['toVersion'];for(const _0x1b0224 in _0x9db0b3[_0x50fe('0xa4')]){const _0x173e65=_0x9db0b3[_0x50fe('0xa4')][_0x1b0224]['attachChange'],_0x47451d=_0x12af63(_0x9db0b3[_0x50fe('0xa4')][_0x1b0224]['attributesBefore'])||{},_0x4a9c93=this[_0x50fe('0xd3')](_0x9db0b3['diffData'][_0x1b0224][_0x50fe('0x17')]);_0x4a9c93['rootName']=_0x1b0224,_0x4a9c93[_0x50fe('0xd')]=!_0x173e65||!_0x173e65['isAttached'],_0x4a9c93['isAttached']=()=>_0x4a9c93[_0x50fe('0xd')],this['_baseRoots'][_0x50fe('0xb')](_0x1b0224,_0x4a9c93),this[_0x50fe('0x42')][_0x50fe('0xb')](_0x1b0224,_0x47451d),_0x173e65&&this[_0x50fe('0xff')]['set'](_0x1b0224,_0x173e65);const _0x3f9d38=this[_0x50fe('0x34')](_0x4a9c93);this[_0x50fe('0x44')]['set'](_0x1b0224,_0x3f9d38);for(const [_0x3d9fba,_0x4a11f1]of _0x4a9c93['markers']){if(!_0x3d9fba[_0x50fe('0xb1')](_0x50fe('0x53')))continue;const _0x5d5613=_0x3d9fba[_0x50fe('0xfd')](':')[0x2];for(const _0x5b25c2 of _0x4a11f1[_0x50fe('0x100')]({'singleCharacters':!0x0})){const _0x4abd9a=this[_0x50fe('0xd1')](_0x5b25c2),_0x28a524=_0x50fe('0x1b')==_0x5b25c2[_0x50fe('0x1c')]?_0x5b25c2[_0x50fe('0x4d')][_0x50fe('0x36')][_0x50fe('0xda')](0x0,-0x1):_0x5b25c2['previousPosition'][_0x50fe('0x36')],_0x41844c=_0x3f9d38[_0x50fe('0x58')](_0x28a524)[_0x50fe('0x61')](_0x4abd9a);this[_0x50fe('0x57')][_0x50fe('0xb')](_0x41844c,{'userId':_0x5d5613});}}}this[_0x50fe('0xa2')]=this[_0x50fe('0x22')];const _0x533c10=[...Array(this[_0x50fe('0x22')])['keys']()][_0x50fe('0xda')](0x1)[_0x50fe('0xef')](_0x816e31=>!this['_touched'][_0x50fe('0x79')](_0x816e31));let _0x251b3f=0x0;const _0x44934d=new Map();for(const _0x28ed46 in _0x9db0b3['diffData']){const _0x15f8a0=_0x9db0b3[_0x50fe('0xa4')][_0x28ed46][_0x50fe('0x49')],_0x25caa6=_0x12af63(_0x9db0b3[_0x50fe('0xa4')][_0x28ed46][_0x50fe('0x48')])||{},_0x4af9fb=this[_0x50fe('0xd3')](_0x9db0b3['diffData'][_0x28ed46][_0x50fe('0x10b')]);_0x4af9fb[_0x50fe('0x26')]=_0x28ed46,_0x4af9fb[_0x50fe('0xd')]=!_0x15f8a0||_0x15f8a0[_0x50fe('0x9e')],_0x4af9fb[_0x50fe('0x9e')]=()=>_0x4af9fb['_isAttached'],this[_0x50fe('0x41')]['set'](_0x28ed46,_0x4af9fb),this[_0x50fe('0x85')][_0x50fe('0xb')](_0x28ed46,_0x25caa6);const _0x256baf=this[_0x50fe('0x34')](_0x4af9fb,Number[_0x50fe('0xf3')]);this[_0x50fe('0x32')]['set'](_0x28ed46,_0x256baf),_0x44934d['set'](_0x28ed46,_0x4af9fb[_0x50fe('0x9e')]()?_0x25caa6:{});for(const [_0x264bc2,_0x83fdbd]of _0x4af9fb[_0x50fe('0x4e')]){if(!_0x264bc2['startsWith'](_0x50fe('0x53')))continue;const _0x493d9f=_0x264bc2[_0x50fe('0xfd')](':')[0x2];for(const _0x390fb6 of _0x83fdbd['getWalker']({'singleCharacters':!0x0})){const _0x1e0100=this[_0x50fe('0xd1')](_0x390fb6),_0x25c380=this['_revisionId']++,_0x580afb=_0x50fe('0x1b')==_0x390fb6[_0x50fe('0x1c')]?_0x390fb6['previousPosition'][_0x50fe('0x36')][_0x50fe('0xda')](0x0,-0x1):_0x390fb6[_0x50fe('0x4d')]['path'];_0x256baf[_0x50fe('0x58')](_0x580afb)[_0x50fe('0xb4')](_0x1e0100,_0x25c380),this['_touched']['set'](_0x25c380,{'userId':_0x493d9f});}}for(const _0x5c175d of this['editor'][_0x50fe('0x10f')][_0x50fe('0x40')](_0x4af9fb)['getWalker']({'singleCharacters':!0x0})){const _0xf2a90f=this[_0x50fe('0xd1')](_0x5c175d),_0x4a66c2=_0x50fe('0x1b')==_0x5c175d[_0x50fe('0x1c')]?_0x5c175d['previousPosition'][_0x50fe('0x36')][_0x50fe('0xda')](0x0,-0x1):_0x5c175d[_0x50fe('0x4d')][_0x50fe('0x36')],_0x10cc1c=_0x256baf[_0x50fe('0x58')](_0x4a66c2);_0x10cc1c[_0x50fe('0x61')](_0xf2a90f)>0x0||_0x10cc1c[_0x50fe('0xb4')](_0xf2a90f,_0x533c10[_0x251b3f++]);}for(const [_0x4987e2,_0x20cb01]of _0x4af9fb[_0x50fe('0x4e')])_0x4987e2[_0x50fe('0xb1')](_0x50fe('0x53'))||this[_0x50fe('0x3f')][_0x50fe('0xb')](_0x4987e2,_0x20cb01);}const _0x2a9d76=G(_0x50fe('0xbe'));this['_baseRoots'][_0x50fe('0xb')](_0x50fe('0xbe'),_0x2a9d76),this[_0x50fe('0x44')][_0x50fe('0xb')]('$graveyard',this[_0x50fe('0x34')](_0x2a9d76,0x1));const _0x72e7=G(_0x50fe('0xbe'));this['_diffRoots'][_0x50fe('0xb')](_0x50fe('0xbe'),_0x72e7),this[_0x50fe('0x32')][_0x50fe('0xb')](_0x50fe('0xbe'),this[_0x50fe('0x34')](_0x72e7,0x1));const _0x1f65de=Array[_0x50fe('0x0')](this[_0x50fe('0x41')])['map'](([_0x3b5ca7,_0x5c602a])=>[_0x3b5ca7,q(_0x5c602a)]);this[_0x50fe('0x4a')](this[_0x50fe('0x6b')],_0x1f65de,this[_0x50fe('0x3f')],_0x44934d);}['_makeModelFromViewString'](_0x2c4bc4){const _0x23119d=JSON[_0x50fe('0x8e')](_0x2c4bc4),_0x1bd968=this[_0x50fe('0x4f')][_0x50fe('0x2e')]['view'][_0x50fe('0x7')],_0x5b8804=new _0x20ce28(_0x1bd968,_0x23119d[_0x50fe('0xe1')](_0x343257=>J(_0x343257,this[_0x50fe('0x4f')])));return this[_0x50fe('0x4f')][_0x50fe('0x46')]['toModel'](_0x5b8804);}[_0x50fe('0x4a')](_0xa0287,_0x599a6a,_0x47cd8f,_0x16af19){const _0x57e4e8=new Map(_0x599a6a),_0x4aec99=new Map(_0x12af63(_0x16af19)),_0x3ff457=new Map();for(const [_0x36584d,_0x3aad06]of _0x47cd8f)_0x3ff457[_0x50fe('0xb')](_0x36584d,{'start':_0x3aad06[_0x50fe('0x6e')][_0x50fe('0x5a')](),'end':_0x3aad06[_0x50fe('0x10d')][_0x50fe('0x5a')](),'rootName':_0x3aad06[_0x50fe('0xe7')]['rootName']});this['_savedMetaData'][_0x50fe('0xb')](_0xa0287,{'roots':_0x57e4e8,'markers':_0x3ff457,'rootsAttributes':_0x4aec99});}[_0x50fe('0x102')](_0x5cc0d6){this['_savedMetaData'][_0x50fe('0xc2')](_0x5cc0d6);}[_0x50fe('0x47')](){this[_0x50fe('0x74')](),this[_0x50fe('0xb7')]=-0x1,this[_0x50fe('0x6b')]=-0x1,this[_0x50fe('0x2d')][_0x50fe('0x55')](),this['init'](this[_0x50fe('0x33')]);}[_0x50fe('0x74')](){this[_0x50fe('0x57')]['clear'](),this[_0x50fe('0xce')]['clear'](),this[_0x50fe('0xff')][_0x50fe('0x55')](),this[_0x50fe('0x41')][_0x50fe('0x55')](),this[_0x50fe('0x85')][_0x50fe('0x55')](),this[_0x50fe('0x1a')][_0x50fe('0x55')](),this[_0x50fe('0x42')][_0x50fe('0x55')](),this[_0x50fe('0x32')][_0x50fe('0x55')](),this[_0x50fe('0x44')][_0x50fe('0x55')](),this[_0x50fe('0x3f')][_0x50fe('0x55')](),this[_0x50fe('0x22')]=0x1,this[_0x50fe('0xa2')]=this[_0x50fe('0x22')];}[_0x50fe('0x34')](_0xdce4f2,_0x77a087=null){let _0x1aeb9f=null;_0xdce4f2['is']('documentFragment')||(_0x1aeb9f=new _0x59be18(_0xdce4f2[_0x50fe('0xf8')],{'vid_start':null===_0x77a087?this[_0x50fe('0x22')]++:_0x77a087++}));const _0x389cbc=[];for(const _0x3fb0ab of _0xdce4f2[_0x50fe('0x68')]())if(_0x3fb0ab['is'](_0x50fe('0xe3'))){_0x389cbc[_0x50fe('0x2c')](this[_0x50fe('0x34')](_0x3fb0ab,_0x77a087));const _0x230b00=_0x389cbc[_0x389cbc[_0x50fe('0x31')]-0x1];null!==_0x77a087&&(_0x77a087=_0x230b00['is'](_0x50fe('0xe3'),'$text')?_0x230b00['getAttribute'](_0x50fe('0x6a'))+0x1:_0x230b00[_0x50fe('0x61')]('vid_end')+0x1);}else for(let _0x41c3a7=0x0;_0x41c3a7<_0x3fb0ab[_0x50fe('0xb0')];_0x41c3a7++)_0x389cbc[_0x50fe('0x2c')](new _0x59be18('$text',{'vid':null===_0x77a087?this[_0x50fe('0x22')]++:_0x77a087++}));if(_0xdce4f2['is'](_0x50fe('0x35'))){const _0xe7cc24=G(_0xdce4f2[_0x50fe('0x26')]);return _0xe7cc24[_0x50fe('0xf1')](0x0,_0x389cbc),_0xe7cc24;}return _0x1aeb9f[_0x50fe('0xb4')](_0x50fe('0xc3'),null===_0x77a087?this[_0x50fe('0x22')]++:_0x77a087++),_0x1aeb9f[_0x50fe('0xf1')](0x0,_0x389cbc),_0x1aeb9f;}[_0x50fe('0x23')](_0x331e68,_0x47bd76,_0x1cb427){this[_0x50fe('0x74')]();const {roots:_0x518742,markers:_0x5e938e,rootsAttributes:_0x23c5d6}=this['_savedMetaData'][_0x50fe('0xe9')](_0x331e68);this[_0x50fe('0x1a')]=new Map(_0x518742),this['_baseRootsAttributes']=new Map(_0x12af63(_0x23c5d6));for(const [_0x945f80,_0x5a8002]of this[_0x50fe('0x1a')])if(_0x50fe('0xbe')!==_0x945f80&&(this['_diffRoots']['set'](_0x945f80,q(_0x5a8002)),this[_0x50fe('0x85')]=new Map(_0x12af63(_0x23c5d6)),_0x1cb427)){const _0x23583a=this[_0x50fe('0x22')];this['_idsRoots']['set'](_0x945f80,this[_0x50fe('0x34')](_0x5a8002)),this[_0x50fe('0x44')][_0x50fe('0xb')](_0x945f80,this[_0x50fe('0x34')](_0x5a8002,_0x23583a));}this['_startingRevisionId']=this[_0x50fe('0x22')],this[_0x50fe('0x41')][_0x50fe('0xb')](_0x50fe('0xbe'),q(this[_0x50fe('0x1a')][_0x50fe('0xe9')](_0x50fe('0xbe')))),_0x1cb427&&this[_0x50fe('0x32')]['set']('$graveyard',this['_makeIdsRoot'](this[_0x50fe('0x1a')][_0x50fe('0xe9')](_0x50fe('0xbe'))));for(const [_0x1cf7eb,_0x1b7e12]of _0x5e938e){const _0x73739=this[_0x50fe('0x1a')][_0x50fe('0xe9')](_0x1b7e12[_0x50fe('0x26')]),_0x496840=this['_diffRoots'][_0x50fe('0xe9')](_0x1b7e12[_0x50fe('0x26')]),_0x1bfb87=new _0x4ce064(this['_fixPosition'](_0x1b7e12['start'],_0x73739),this[_0x50fe('0x56')](_0x1b7e12[_0x50fe('0x10d')],_0x73739)),_0x3a0ff0=this[_0x50fe('0xc8')](_0x1bfb87,_0x496840);_0x73739[_0x50fe('0x4e')][_0x50fe('0xb')](_0x1cf7eb,_0x1bfb87),this[_0x50fe('0x3f')]['set'](_0x1cf7eb,_0x3a0ff0);}this[_0x50fe('0x103')](_0x331e68,_0x47bd76,_0x1cb427);}[_0x50fe('0x103')](_0xb0b003,_0x4af11a,_0x359115){for(const _0x302d5d of this[_0x50fe('0x33')][_0x50fe('0x90')](_0xb0b003,_0x4af11a))this[_0x50fe('0x72')](_0x302d5d,_0x359115);for(const _0x3b3690 of this[_0x50fe('0x41')]['values']())_0x3b3690[_0x50fe('0x4e')][_0x50fe('0x55')]();for(const [_0x4a9358,_0x3f4c1c]of this[_0x50fe('0x3f')]){this[_0x50fe('0x41')]['get'](_0x3f4c1c[_0x50fe('0xe7')]['rootName'])[_0x50fe('0x4e')]['set'](_0x4a9358,_0x3f4c1c['clone']());}const _0x33d401=new Map(),_0x5f07c3=new Map();for(const [_0x4e241c,_0x23a3cd]of this['_diffRoots'])_0x33d401['set'](_0x4e241c,q(_0x23a3cd)),_0x5f07c3[_0x50fe('0xb')](_0x4e241c,this[_0x50fe('0x85')][_0x50fe('0xe9')](_0x4e241c));this[_0x50fe('0x4a')](_0x4af11a,_0x33d401,this[_0x50fe('0x3f')],_0x5f07c3);}[_0x50fe('0xa0')](_0x16619c){const _0x192f36=Array[_0x50fe('0x0')](this[_0x50fe('0x2d')]['keys']());_0x192f36[_0x50fe('0xa3')]((_0x43dc7a,_0x2b82cd)=>_0x43dc7a-_0x2b82cd),_0x192f36['reverse']();for(const _0x3c386b of _0x192f36)if(_0x3c386b<_0x16619c)return _0x3c386b;return Number['NEGATIVE_INFINITY'];}[_0x50fe('0xaa')](_0x55961c,_0x579287){const _0x3e68af=Array['from'](_0x579287['markers'])['map'](([_0x130f96,_0x146030])=>[_0x130f96,this['_fixRange'](_0x146030,_0x55961c)]);_0x55961c[_0x50fe('0x4e')]=new Map(_0x3e68af);}['_transformMarkers'](_0x546026){for(const _0x215209 of this[_0x50fe('0x3f')][_0x50fe('0x27')]()){const _0x88a5f7=_0x215209[_0x50fe('0x25')](_0x546026),_0x1a7107=_0x4ce064[_0x50fe('0x96')](_0x88a5f7);_0x215209[_0x50fe('0x6e')]=_0x1a7107['start'],_0x215209['end']=_0x1a7107[_0x50fe('0x10d')];}}[_0x50fe('0x72')](_0x2abbae,_0xdfff3d){if('addRoot'==_0x2abbae[_0x50fe('0x1c')]||_0x50fe('0xfa')==_0x2abbae[_0x50fe('0x1c')])return void this[_0x50fe('0xd8')](_0x2abbae,_0xdfff3d);if(_0x50fe('0x9')==_0x2abbae[_0x50fe('0x1c')]){const _0x26bbda=_0x2abbae[_0x50fe('0xbd')][_0x50fe('0xe7')][_0x50fe('0x26')];this[_0x50fe('0x41')][_0x50fe('0x79')](_0x26bbda)||(this[_0x50fe('0x41')]['set'](_0x26bbda,G(_0x26bbda,!0x0)),this[_0x50fe('0x85')]['set'](_0x26bbda,{}),_0xdfff3d&&this[_0x50fe('0x32')][_0x50fe('0xb')](_0x26bbda,G(_0x26bbda,!0x0)));}else{if(_0x50fe('0xa9')==_0x2abbae[_0x50fe('0x1c')]||_0x50fe('0x10')==_0x2abbae[_0x50fe('0x1c')]||_0x50fe('0xd9')==_0x2abbae[_0x50fe('0x1c')])return void this[_0x50fe('0xc4')](_0x2abbae);}const _0x23c3d5=this[_0x50fe('0xb6')](_0x2abbae,this[_0x50fe('0x41')]);if(_0x50fe('0x75')!==_0x2abbae[_0x50fe('0x1c')]&&(_0x23c3d5[_0x50fe('0x9c')](),this[_0x50fe('0xfc')](_0x23c3d5)),_0xdfff3d)switch(_0x23c3d5[_0x50fe('0x1c')]){case _0x50fe('0x9'):this[_0x50fe('0x69')](_0x2abbae);break;case _0x50fe('0x10a'):case _0x50fe('0xeb'):case'reinsert':this['_handleMoveOperation'](_0x2abbae);break;case'merge':this[_0x50fe('0xc7')](_0x2abbae);break;case _0x50fe('0xfd'):this[_0x50fe('0xe4')](_0x2abbae);break;case _0x50fe('0x75'):this[_0x50fe('0xa7')](_0x2abbae);}}[_0x50fe('0xb6')](_0x29f6d5,_0x40296e){const _0xc9e574=_0x29f6d5[_0x50fe('0x5a')]();return _0xc9e574[_0x50fe('0xad')]=_0x29f6d5[_0x50fe('0xad')],this[_0x50fe('0x7c')](_0xc9e574,_0x40296e),_0xc9e574;}[_0x50fe('0x21')](_0x3d9e30){return _0x3d9e30[_0x50fe('0xe1')](_0x27819b=>{const _0x3a491f=this[_0x50fe('0xd1')](_0x27819b);return Number(_0x27819b[_0x50fe('0xdf')][_0x50fe('0x61')](_0x3a491f));});}[_0x50fe('0x2b')](_0x151949,_0x338a6f){if(_0x151949['is'](_0x50fe('0xe3'),_0x50fe('0x60')))_0x338a6f['push']({'item':_0x151949,'type':'text'});else{_0x151949['is'](_0x50fe('0xe3'))&&_0x338a6f[_0x50fe('0x2c')]({'item':_0x151949,'type':_0x50fe('0xac')});for(const _0xd064a of _0x151949['getChildren']())this[_0x50fe('0x2b')](_0xd064a,_0x338a6f);_0x151949['is'](_0x50fe('0xe3'))&&_0x338a6f['push']({'item':_0x151949,'type':'elementEnd'});}return _0x338a6f;}[_0x50fe('0x28')](){const _0x4d4def=new Map(this[_0x50fe('0x57')]),_0x376b2c=new Map(_0x4d4def),_0x108fb3=new Map(),_0xbf2961={'insertions':{},'deletions':{}},_0x198852={'insertions':{},'deletions':{}},_0x1896cc=new Map(),_0x1de033=new Set([...this[_0x50fe('0x1a')][_0x50fe('0x6f')](),...this[_0x50fe('0x41')][_0x50fe('0x6f')]()]);_0x1de033[_0x50fe('0xc2')](_0x50fe('0xbe'));for(const _0x57af5d of _0x1de033){const _0xbb3915=this['_diffRoots'][_0x50fe('0xe9')](_0x57af5d)||G(_0x57af5d,!0x1),_0x302d54=this[_0x50fe('0x1a')][_0x50fe('0xe9')](_0x57af5d)||G(_0x57af5d,!0x1);_0xbb3915['isAttached']()||_0x302d54[_0x50fe('0x9e')]()?(_0xbf2961[_0x50fe('0x10b')][_0x57af5d]=q(_0xbb3915),_0xbf2961['deletions'][_0x57af5d]=q(_0x302d54),this[_0x50fe('0xaa')](_0xbf2961[_0x50fe('0x17')][_0x57af5d],_0x302d54),this[_0x50fe('0xaa')](_0xbf2961[_0x50fe('0x10b')][_0x57af5d],_0xbb3915),_0x198852[_0x50fe('0x10b')][_0x57af5d]=this['_generateTape'](this['_idsRoots']['get'](_0x57af5d),[]),_0x198852[_0x50fe('0x17')][_0x57af5d]=this[_0x50fe('0x2b')](this[_0x50fe('0x44')][_0x50fe('0xe9')](_0x57af5d)||G(_0x57af5d,!0x1),[])):_0x1de033[_0x50fe('0xc2')](_0x57af5d);}for(const _0x392c33 of _0x1de033){const _0x20fe0e=_0x198852[_0x50fe('0x10b')][_0x392c33];for(const _0x513142 of _0x20fe0e){const _0x15ef2e=this[_0x50fe('0xd1')](_0x513142),_0x58e1a3=_0x513142[_0x50fe('0xdf')][_0x50fe('0x61')](_0x15ef2e);_0x376b2c[_0x50fe('0xc2')](_0x58e1a3),_0x58e1a3>=this[_0x50fe('0xa2')]&&_0x108fb3[_0x50fe('0xb')](_0x58e1a3,_0x4d4def['get'](_0x58e1a3));}}for(const _0x349749 of _0x1de033){const _0x1693ee=_0x198852[_0x50fe('0x10b')][_0x349749],_0xed29d9=this['_getBaseVids'](_0x198852[_0x50fe('0x17')][_0x349749]);let _0x5389d8=0x0;for(const _0x25f18e of _0x1693ee){const _0x3e6311=this[_0x50fe('0xd1')](_0x25f18e),_0x1ad19a=_0x25f18e[_0x50fe('0xdf')][_0x50fe('0x61')](_0x3e6311);if(!_0x108fb3[_0x50fe('0x79')](_0x1ad19a)&&!_0x1896cc[_0x50fe('0x79')](_0x1ad19a)){if(_0x376b2c[_0x50fe('0x79')](_0x1ad19a))_0x5389d8++;else{if(_0x1ad19a!=_0xed29d9[_0x5389d8]){const _0x251415=_0x4d4def['get'](_0x1ad19a)||_0x4d4def[_0x50fe('0xe9')](_0xed29d9[_0x5389d8]);for(;_0x1ad19a!=_0xed29d9[_0x5389d8];)_0x376b2c[_0x50fe('0x79')](_0xed29d9[_0x5389d8])||(_0x1896cc['set'](_0xed29d9[_0x5389d8],_0x251415),_0x4d4def[_0x50fe('0xb')](_0xed29d9[_0x5389d8],_0x251415)),_0x5389d8++;}_0x5389d8++;}}}}for(const _0x28fecb of _0x1de033){const _0x5e52b0=_0x198852[_0x50fe('0x10b')][_0x28fecb];for(const _0x37965a of _0x5e52b0){const _0x1b8f2f=this['_getVidAttributeName'](_0x37965a),_0x124442=_0x37965a[_0x50fe('0xdf')][_0x50fe('0x61')](_0x1b8f2f);if(_0x1896cc[_0x50fe('0x79')](_0x124442)){const _0x3c3b5f=_0x1896cc[_0x50fe('0xe9')](_0x124442);_0x376b2c[_0x50fe('0x79')](_0x124442)||_0x376b2c[_0x50fe('0xb')](_0x124442,{..._0x3c3b5f}),_0x108fb3[_0x50fe('0xb')](_0x124442,{..._0x3c3b5f});}}}for(const _0x13a7bf of _0x376b2c[_0x50fe('0x6f')]())_0x13a7bf>=this[_0x50fe('0xa2')]&&_0x376b2c[_0x50fe('0xc2')](_0x13a7bf);const _0x457d48=new Map();for(const _0x18414e of _0x1de033){let _0x5f40d3=_0x198852[_0x50fe('0x10b')][_0x18414e];for(const _0x4e4697 of _0x5f40d3)if(_0x4e4697[_0x50fe('0xdf')]['is']('element',_0x50fe('0x7d'))){const _0x22c97f=this[_0x50fe('0xd1')](_0x4e4697),_0x944e71=_0x4e4697[_0x50fe('0xdf')][_0x50fe('0x61')](_0x22c97f);if(_0x108fb3[_0x50fe('0x79')](_0x944e71)){const _0x39e377=_0x4e4697[_0x50fe('0xdf')]['parent']['parent'][_0x50fe('0x61')](_0x50fe('0x104')),_0x2d4c88=_0x457d48[_0x50fe('0xe9')](_0x39e377)||new Set();_0x2d4c88['add'](_0x108fb3['get'](_0x944e71)['userId']),_0x457d48[_0x50fe('0xb')](_0x39e377,_0x2d4c88);}}_0x5f40d3=_0x198852[_0x50fe('0x17')][_0x18414e];for(const _0x4cdab6 of _0x5f40d3)if(_0x4cdab6[_0x50fe('0xdf')]['is'](_0x50fe('0xe3'),_0x50fe('0x7d'))){const _0x12dc6e=this[_0x50fe('0xd1')](_0x4cdab6),_0x2a0426=_0x4cdab6[_0x50fe('0xdf')][_0x50fe('0x61')](_0x12dc6e);if(_0x376b2c['has'](_0x2a0426)){const _0x49e80f=_0x4cdab6[_0x50fe('0xdf')][_0x50fe('0xe8')][_0x50fe('0xe8')][_0x50fe('0x61')](_0x50fe('0x104')),_0x4af140=_0x457d48[_0x50fe('0xe9')](_0x49e80f)||new Set();_0x4af140['add'](_0x376b2c[_0x50fe('0xe9')](_0x2a0426)[_0x50fe('0xc1')]),_0x457d48['set'](_0x49e80f,_0x4af140);}}for(const _0x1ee18c of _0x457d48[_0x50fe('0x6f')]())(_0x108fb3[_0x50fe('0x79')](_0x1ee18c)||_0x376b2c[_0x50fe('0x79')](_0x1ee18c))&&_0x457d48['delete'](_0x1ee18c);}for(const _0x582128 of _0x1de033){const _0x31728d=_0x198852['insertions'][_0x582128];let _0x39e184=null,_0x3e52b6=null;for(const _0x2c0895 of _0x31728d){const _0x379438=this[_0x50fe('0xd1')](_0x2c0895),_0x49c62b=_0x2c0895[_0x50fe('0xdf')][_0x50fe('0x61')](_0x379438),_0x1f771a=_0x457d48[_0x50fe('0xe9')](_0x49c62b);_0x1f771a&&_0x50fe('0xac')==_0x2c0895[_0x50fe('0x1c')]&&(_0x39e184=Array[_0x50fe('0x0')](_0x1f771a)[0x0],_0x3e52b6=_0x2c0895[_0x50fe('0xdf')]['getAttribute'](_0x50fe('0xc3'))),_0x39e184&&(_0x376b2c[_0x50fe('0xb')](_0x49c62b,{'userId':_0x39e184}),_0x108fb3['set'](_0x49c62b,{'userId':_0x39e184})),_0x49c62b==_0x3e52b6&&(_0x39e184=null,_0x3e52b6=null);}}const _0x43ffb5={},_0x11dd8f=new Set();for(const _0x597d07 of _0x1de033){const _0x1585b3=_0xbf2961[_0x50fe('0x17')][_0x597d07],_0x15410d=_0xbf2961[_0x50fe('0x10b')][_0x597d07];for(const {userId:_0x3edd5b}of this['_touchedMarkers']['values']())null!==_0x3edd5b&&_0x11dd8f['add'](_0x3edd5b);for(const {userId:_0x173214}of this[_0x50fe('0xff')]['values']())null!==_0x173214&&_0x11dd8f[_0x50fe('0x19')](_0x173214);this[_0x50fe('0xc6')](_0x15410d,_0x198852[_0x50fe('0x10b')][_0x597d07],_0x108fb3,_0x50fe('0x6c'),_0x11dd8f),this[_0x50fe('0xc6')](_0x1585b3,_0x198852[_0x50fe('0x17')][_0x597d07],_0x376b2c,_0x50fe('0xdb'),_0x11dd8f),_0x43ffb5[_0x597d07]={'insertions':this[_0x50fe('0x9b')](_0x15410d),'deletions':this[_0x50fe('0x9b')](_0x1585b3),'attachChange':this['_touchedRoots']['get'](_0x597d07)||null,'attributesBefore':_0x12af63(this['_baseRootsAttributes']['get'](_0x597d07))||{},'attributesAfter':_0x12af63(this[_0x50fe('0x85')][_0x50fe('0xe9')](_0x597d07))};}return{'diffData':_0x43ffb5,'authorsIds':Array['from'](_0x11dd8f)};}[_0x50fe('0x43')](_0x236385){for(const [,_0xeec3e8]of _0x236385['markers']){const _0x262abd=_0xeec3e8[_0x50fe('0x6e')][_0x50fe('0x13')]()[_0x50fe('0xef')](_0x4d90e7=>_0x50fe('0x7d')==_0x4d90e7[_0x50fe('0xf8')]);for(const _0x44766b of _0x262abd)0x1==_0x44766b[_0x50fe('0xb3')]&&_0x44766b['getChild'](0x0)['is'](_0x50fe('0xe3'),_0x50fe('0x92'))&&_0x44766b[_0x50fe('0x73')](0x0)[_0x50fe('0xb4')](_0x50fe('0x10e'),!0x0);}}[_0x50fe('0x9b')](_0x4f5000){this[_0x50fe('0x43')](_0x4f5000);const _0x3cb57a=this[_0x50fe('0x4f')]['data'][_0x50fe('0xcc')](_0x4f5000,{}),_0x79fc6d=Array['from'](_0x3cb57a[_0x50fe('0x68')]())['map'](_0x8d3816=>this[_0x50fe('0xdc')](_0x8d3816));return JSON[_0x50fe('0x8c')](_0x79fc6d);}[_0x50fe('0xdc')](_0x3e5f95){if(_0x3e5f95['is'](_0x50fe('0x60')))return _0x3e5f95['data'];{const _0x1b1e8b=_0x3e5f95;return{'type':Object[_0x50fe('0x6f')](B)[_0x50fe('0x5d')](_0x332418=>_0x3e5f95 instanceof B[_0x332418]),'name':_0x1b1e8b['name'],'attributes':Array['from'](_0x1b1e8b['getAttributes']()),'children':Array[_0x50fe('0x0')](_0x1b1e8b[_0x50fe('0x68')]())['map'](_0x2e319f=>this[_0x50fe('0xdc')](_0x2e319f))};}}[_0x50fe('0xc6')](_0x2e53e1,_0x747081,_0x58d5fc,_0x2d8f69,_0x1f7c7b){let _0x42f6d3=null,_0x2a2c6e=null,_0x3cd105=0x0;const _0x833d17=this[_0x50fe('0x4f')]['model'];for(let _0x51393f=0x0;_0x51393f<_0x747081['length'];_0x51393f++){const _0x5386a7=this[_0x50fe('0xd1')](_0x747081[_0x51393f]),_0x12d588=_0x747081[_0x51393f]['item'][_0x50fe('0x61')](_0x5386a7),_0x1d3a6e=_0x58d5fc[_0x50fe('0xe9')](_0x12d588),_0x3c28f0=_0x51393f==_0x747081[_0x50fe('0x31')]-0x1;(!_0x42f6d3&&_0x1d3a6e&&(_0x42f6d3=_0x1d3a6e,_0x2a2c6e=_0x747081[_0x51393f]),_0x42f6d3&&(!_0x1d3a6e||_0x1d3a6e[_0x50fe('0xc1')]!=_0x42f6d3['userId']))&&(_0x14d97b(_0x1d3a6e,L(_0x2a2c6e,_0x2e53e1,_0x833d17),L(_0x747081[_0x51393f],_0x2e53e1,_0x833d17)),_0x42f6d3=_0x1d3a6e||null,_0x2a2c6e=_0x1d3a6e?_0x747081[_0x51393f]:null),_0x42f6d3&&_0x3c28f0&&_0x14d97b(_0x1d3a6e,L(_0x2a2c6e,_0x2e53e1,_0x833d17),W(_0x747081[_0x51393f],_0x2e53e1,_0x833d17));}function _0x14d97b(_0x425880,_0x33b868,_0x556f7c){const _0x13495e=_0x42f6d3['userId'],_0x3180ee='revision:'+_0x2d8f69+':'+_0x13495e+':'+_0x3cd105++,_0x79b619=_0x833d17[_0x50fe('0x16')](_0x33b868,_0x556f7c);_0x2e53e1[_0x50fe('0x4e')][_0x50fe('0xb')](_0x3180ee,_0x79b619),null!==_0x13495e&&_0x1f7c7b[_0x50fe('0x19')](_0x13495e);}}[_0x50fe('0xd1')](_0x333867){switch(_0x333867['type']){case _0x50fe('0xac'):return _0x50fe('0x104');case _0x50fe('0x1b'):return _0x50fe('0xc3');default:return _0x50fe('0x6a');}}[_0x50fe('0x7c')](_0xcc6d85,_0x172e9b){_0xcc6d85['baseVersion']=null;for(const _0x12b3db in _0xcc6d85){const _0x241166=_0xcc6d85[_0x12b3db];if(_0x241166 instanceof _0x42716c){const _0x5b3c7e=_0x172e9b[_0x50fe('0xe9')](_0x241166[_0x50fe('0xe7')][_0x50fe('0x26')]);_0xcc6d85[_0x12b3db]=this[_0x50fe('0x56')](_0x241166,_0x5b3c7e);}if(_0x241166 instanceof _0x4ce064){const _0x2da5a8=_0x172e9b[_0x50fe('0xe9')](_0x241166[_0x50fe('0xe7')][_0x50fe('0x26')]);_0xcc6d85[_0x12b3db]=this[_0x50fe('0xc8')](_0x241166,_0x2da5a8);}_0x50fe('0xe7')===_0x12b3db&&(_0xcc6d85['root']=_0x172e9b[_0x50fe('0xe9')](_0xcc6d85[_0x50fe('0xe7')][_0x50fe('0x26')]));}}[_0x50fe('0xc8')](_0xb1a989,_0x131d53){return this[_0x50fe('0x4f')][_0x50fe('0x10f')][_0x50fe('0x16')](this[_0x50fe('0x56')](_0xb1a989[_0x50fe('0x6e')],_0x131d53),this[_0x50fe('0x56')](_0xb1a989['end'],_0x131d53));}[_0x50fe('0x56')](_0x37e820,_0x242e17){return this[_0x50fe('0x4f')][_0x50fe('0x10f')][_0x50fe('0xe5')](_0x242e17,_0x37e820['path'],_0x37e820['stickiness']);}['_handleInsertOperation'](_0x4ba2b1){const _0x54f936=this[_0x50fe('0x32')][_0x50fe('0xe9')](_0x4ba2b1['position'][_0x50fe('0xe7')][_0x50fe('0x26')]),_0x136b0c=this[_0x50fe('0x56')](_0x4ba2b1[_0x50fe('0xbd')],_0x54f936),_0x49e98f=null===_0x4ba2b1[_0x50fe('0xad')]?null:_0x4ba2b1[_0x50fe('0xad')]||this['editor'][_0x50fe('0x70')][_0x50fe('0xe9')](_0x50fe('0xd7'))['me']['id'],_0x2fcd76=_0x136b0c[_0x50fe('0xe8')],_0x310476=this[_0x50fe('0x22')],_0x282483=[];for(const _0x5da985 of _0x4ba2b1[_0x50fe('0x11')])if(_0x5da985['is'](_0x50fe('0xe3')))_0x282483['push'](this['_makeIdsRoot'](_0x5da985));else for(let _0x5999a8=0x0;_0x5999a8<_0x5da985[_0x50fe('0xb0')];_0x5999a8++)_0x282483['push'](new _0x59be18('$text',{'vid':this[_0x50fe('0x22')]++}));const _0x40b86f=this[_0x50fe('0x22')];for(let _0x2246ae=_0x310476;_0x2246ae<_0x40b86f;_0x2246ae++)this[_0x50fe('0x57')][_0x50fe('0xb')](_0x2246ae,{'userId':_0x49e98f});_0x2fcd76[_0x50fe('0xf1')](_0x136b0c[_0x50fe('0x93')],_0x282483);}[_0x50fe('0xe0')](_0x2e140e){(_0x2e140e=this[_0x50fe('0xb6')](_0x2e140e,this[_0x50fe('0x32')]))[_0x50fe('0x9c')]();const _0x3d115a=null===_0x2e140e['_authorId']?null:_0x2e140e[_0x50fe('0xad')]||this[_0x50fe('0x4f')][_0x50fe('0x70')][_0x50fe('0xe9')](_0x50fe('0xd7'))['me']['id'],_0x1820b3=_0x2e140e[_0x50fe('0x87')](),_0x3cba97=_0x1820b3['parent'],_0x414da3=_0x1820b3['offset'];!function _0x36a75f(_0x10d44d,_0x10f2d5,_0x114d78,_0x16f3c5){for(let _0x36c302=_0x114d78;_0x36c302<_0x16f3c5;_0x36c302++){const _0xde6497=_0x10f2d5[_0x50fe('0x73')](_0x36c302);_0xde6497['is']('element',_0x50fe('0x60'))?_0x10d44d[_0x50fe('0xb')](_0xde6497[_0x50fe('0x61')](_0x50fe('0x6a')),{'userId':_0x3d115a}):(_0x10d44d[_0x50fe('0xb')](_0xde6497[_0x50fe('0x61')](_0x50fe('0x104')),{'userId':_0x3d115a}),_0x36a75f(_0x10d44d,_0xde6497,0x0,_0xde6497[_0x50fe('0xb3')]),_0x10d44d[_0x50fe('0xb')](_0xde6497[_0x50fe('0x61')](_0x50fe('0xc3')),{'userId':_0x3d115a}));}}(this[_0x50fe('0x57')],_0x3cba97,_0x414da3,_0x414da3+_0x2e140e[_0x50fe('0xc5')]);}[_0x50fe('0xc7')](_0x1304e9){const _0x2f5674=null===(_0x1304e9=this['_cloneOperation'](_0x1304e9,this[_0x50fe('0x32')]))[_0x50fe('0xad')]?null:_0x1304e9[_0x50fe('0xad')]||this[_0x50fe('0x4f')]['plugins'][_0x50fe('0xe9')]('Users')['me']['id'],_0x34e64e=_0x1304e9[_0x50fe('0x5f')][_0x50fe('0xe8')],_0x4c8026=_0x1304e9['sourcePosition']['parent'],_0xed046c=_0x34e64e['getAttribute'](_0x50fe('0xc3')),_0x5cf523=_0x4c8026[_0x50fe('0x61')](_0x50fe('0x104'));_0x34e64e[_0x50fe('0xb4')](_0x50fe('0xc3'),_0x4c8026[_0x50fe('0x61')](_0x50fe('0xc3'))),_0x4c8026['_setAttribute'](_0x50fe('0xc3'),_0xed046c),this['_touched'][_0x50fe('0xb')](_0x5cf523,{'userId':_0x2f5674}),this[_0x50fe('0x57')]['set'](_0xed046c,{'userId':_0x2f5674}),_0x1304e9['_execute']();}[_0x50fe('0xe4')](_0x53eb04){const _0x188ff3=null===(_0x53eb04=this[_0x50fe('0xb6')](_0x53eb04,this[_0x50fe('0x32')]))['_authorId']?null:_0x53eb04[_0x50fe('0xad')]||this['editor'][_0x50fe('0x70')][_0x50fe('0xe9')]('Users')['me']['id'],_0x2b85be=_0x53eb04[_0x50fe('0xbc')],_0x4b620b=_0x53eb04[_0x50fe('0x38')]['parent'];_0x53eb04[_0x50fe('0x9c')]();const _0x18842e=_0x4b620b[_0x50fe('0x61')](_0x50fe('0xc3')),_0x5afb75=_0x53eb04[_0x50fe('0x105')][_0x50fe('0x6d')];if(_0x2b85be){const _0x28ee51=_0x5afb75[_0x50fe('0x61')](_0x50fe('0xc3')),_0x5e8530=_0x4b620b['getAttribute'](_0x50fe('0xc3'));_0x4b620b[_0x50fe('0xb4')]('vid_end',_0x28ee51),_0x5afb75[_0x50fe('0xb4')](_0x50fe('0xc3'),_0x5e8530),this['_touched'][_0x50fe('0xb')](_0x4b620b[_0x50fe('0x61')](_0x50fe('0xc3')),{'userId':_0x188ff3}),this[_0x50fe('0x57')][_0x50fe('0xb')](_0x5afb75[_0x50fe('0x61')](_0x50fe('0x104')),{'userId':_0x188ff3});}else{const _0x45913a=this['_revisionId']++,_0x1a7eef=this['_revisionId']++;_0x4b620b[_0x50fe('0xb4')](_0x50fe('0xc3'),_0x45913a),_0x5afb75[_0x50fe('0xb4')]('vid_start',_0x1a7eef),_0x5afb75['_setAttribute'](_0x50fe('0xc3'),_0x18842e),this[_0x50fe('0x57')][_0x50fe('0xb')](_0x45913a,{'userId':_0x188ff3}),this[_0x50fe('0x57')][_0x50fe('0xb')](_0x1a7eef,{'userId':_0x188ff3});}}[_0x50fe('0xa7')](_0x4a05e0){if(!_0x4a05e0[_0x50fe('0x3d')])return;const _0x558673=(_0x4a05e0=this[_0x50fe('0xb6')](_0x4a05e0,this['_diffRoots']))[_0x50fe('0xf2')]?_0x4a05e0[_0x50fe('0xf2')]['root']:null,_0x254462=_0x4a05e0[_0x50fe('0xf7')]?_0x4a05e0[_0x50fe('0xf7')][_0x50fe('0xe7')]:null;_0x558673&&this['_markers'][_0x50fe('0xc2')](_0x4a05e0[_0x50fe('0xf8')]),_0x254462&&this[_0x50fe('0x3f')][_0x50fe('0xb')](_0x4a05e0[_0x50fe('0xf8')],_0x4a05e0[_0x50fe('0xf7')][_0x50fe('0x5a')]());const _0x266d08=null===_0x4a05e0[_0x50fe('0xad')]?null:_0x4a05e0[_0x50fe('0xad')]||this['editor'][_0x50fe('0x70')][_0x50fe('0xe9')]('Users')['me']['id'],_0x191a41=_0x4a05e0[_0x50fe('0xf8')];if(!this['_touchedMarkers'][_0x50fe('0x79')](_0x191a41))return void this[_0x50fe('0xce')]['set'](_0x191a41,{'range':_0x4a05e0[_0x50fe('0xf2')],'userId':_0x266d08});const _0x358246=this[_0x50fe('0xce')][_0x50fe('0xe9')](_0x191a41),_0x1dc9a2=_0x358246[_0x50fe('0x7e')],_0x16d897=_0x4a05e0[_0x50fe('0xf7')];null==_0x1dc9a2&&null==_0x16d897||_0x1dc9a2&&_0x16d897&&_0x1dc9a2[_0x50fe('0xf9')](_0x16d897)?this[_0x50fe('0xce')][_0x50fe('0xc2')](_0x4a05e0[_0x50fe('0xf8')]):_0x358246[_0x50fe('0xc1')]=_0x266d08;}['_handleRootOperation'](_0x3b06bf,_0x4786a9){this['_diffRoots'][_0x50fe('0x79')](_0x3b06bf[_0x50fe('0x26')])?this[_0x50fe('0x41')][_0x50fe('0xe9')](_0x3b06bf[_0x50fe('0x26')])[_0x50fe('0xd')]=_0x3b06bf['isAdd']:(this['_diffRoots']['set'](_0x3b06bf[_0x50fe('0x26')],G(_0x3b06bf[_0x50fe('0x26')],!0x0)),this[_0x50fe('0x85')][_0x50fe('0xb')](_0x3b06bf[_0x50fe('0x26')],{}),_0x4786a9&&this[_0x50fe('0x32')][_0x50fe('0xb')](_0x3b06bf[_0x50fe('0x26')],G(_0x3b06bf['rootName'],!0x0)));const _0x5c0382=null===_0x3b06bf['_authorId']?null:_0x3b06bf['_authorId']||this['editor']['plugins'][_0x50fe('0xe9')]('Users')['me']['id'],_0x3c590c=this[_0x50fe('0xff')]['get'](_0x3b06bf[_0x50fe('0x26')]);_0x3c590c&&_0x3c590c[_0x50fe('0xc1')]===_0x5c0382?this[_0x50fe('0xff')][_0x50fe('0xc2')](_0x3b06bf['rootName']):this['_touchedRoots'][_0x50fe('0xb')](_0x3b06bf['rootName'],{'userId':_0x5c0382,'isAttached':_0x3b06bf[_0x50fe('0xdd')]});}[_0x50fe('0xc4')](_0x108973){const _0x3da32a=this[_0x50fe('0x85')][_0x50fe('0xe9')](_0x108973[_0x50fe('0xe7')][_0x50fe('0x26')]);null===_0x108973['newValue']?delete _0x3da32a[_0x108973[_0x50fe('0xd5')]]:_0x3da32a[_0x108973[_0x50fe('0xd5')]]=_0x108973[_0x50fe('0x45')];}}function q(_0x27679a){const _0xe39569=G(_0x27679a[_0x50fe('0x26')],_0x27679a[_0x50fe('0x9e')]());for(const _0x4a1671 of _0x27679a[_0x50fe('0x68')]()){const _0x32aa7f=_0x4a1671[_0x50fe('0x20')](!0x0);_0xe39569[_0x50fe('0xb5')](_0x32aa7f);}return _0xe39569;}function G(_0xe71c5c,_0x4f8494=!0x0){const _0x396f04=new _0x1ad183();return _0x396f04['rootName']=_0xe71c5c,_0x396f04['_isAttached']=_0x4f8494,_0x396f04[_0x50fe('0x9e')]=()=>_0x396f04[_0x50fe('0xd')],_0x396f04;}function L(_0x4419eb,_0x56aebc,_0xc5241f){const _0x3ab08e=_0x50fe('0x1b')==_0x4419eb[_0x50fe('0x1c')]?_0xc5241f[_0x50fe('0x3e')](_0x4419eb['item'],_0x50fe('0x10d')):_0xc5241f[_0x50fe('0x5b')](_0x4419eb[_0x50fe('0xdf')]);return _0xc5241f[_0x50fe('0xe5')](_0x56aebc,_0x3ab08e[_0x50fe('0x36')],_0x3ab08e[_0x50fe('0x9d')]);}function W(_0x33269b,_0x3d0148,_0x72382){const _0x571aa9=_0x50fe('0xac')==_0x33269b[_0x50fe('0x1c')]?_0x72382['createPositionAt'](_0x33269b['item'],0x0):_0x72382[_0x50fe('0xee')](_0x33269b['item']);return _0x72382[_0x50fe('0xe5')](_0x3d0148,_0x571aa9[_0x50fe('0x36')],_0x571aa9[_0x50fe('0x9d')]);}
23
+ const _0x3385=['getUser','upcast','filter','hasContent','detachRoot','getOperation','view','bind','_touchedMarkers','vid_end','getNodeByPath','requires','createRange','insert','createPositionAt','then','$text','addRootAttribute','move','elementStart','editor','toModel','keys','addRevision','sourcePosition','item','currentRevision','editor-initial-data-replaced-with-revision-data','_reset','insertionPosition','_touchedRoots','slice','revisionHistory.resumeUnsavedRevision','add','getRange','init','_cloneOperation','attributesAfter','_diffRootsAttributes','_setAttribute','key','_handleRootOperation','getRoot','fromVersion','history','_handleInsertOperation','_copyMarkers','trim','_fixOperation','RealTimeCollaborationClient','clear','config','_getState','addRevisionData','end','createPositionFromPath','_isPendingUpdate','_startingRevisionId','from','attributesBefore','useFillerType','_markers','remove','deletion','Users','removeRootAttribute','_touched','getChild','initialData','get','_handleMarkerOperation','_startingVersion','length','getRevisionDocumentData','resolve','type','getRevision','children','_pendingAction','startsWith','path','set','_fixPosition','_markChanges','isAttached','reinsert','root','elementEnd','getData','_continueCurrentRevision','parent','_addPendingAction','_removePendingAction','newValue','marked','getIndex','includes','buildRevisionData','parse','previousPosition','newRange','_bufferedUpdates','isAdd','revision-start','document','processor','baseVersion','_clone','updateRevisions','conversion','push','update','creatorId','oldRange','element','_removeRevisionMarkers','_calculateMetaData','_revisionDataBuilder','data-revision-','_isAttached','forEach','PENDING_ACTION_REVISION_HISTORY','isReady','_isInit','split','_source','_applyOperations','reInit','_generateTape','data','insertion','revision','_loadState','stickiness','_replaceEditorDataWithRevisionData','offset','range','getRevisionRootsAttributes','_getVidAttributeName','map','name','rootsAttributes','getWalker','repository','_getBaseVids','deletions','_fixRange','values','finally','revision-end','some','_handleMergeOperation','position','_initialRevisionId','_getPreviousFrom','has','for','_findInsertionIndex','source','_diffRoots','toVersion','marker','getLatestVersion','setSource','version','_createCurrentRevision','_update','locale','saveRevision','createdAt','getAttributes','_handleOperation','_processRootBeforeSave','_bufferUpdate','getRevisions','_authorId','adapter','_baseRootsAttributes','default','_getViewJson','collaboration.channelId','_makeModelFromViewString','find','_makeRevision','_setConversion','$graveyard','_lastTo','howMany','offsetSize','_baseRoots','splitPosition','getCurrentRevisionId','_insertChild','roots','_handleSplitOperation','vid_start','authorsIds','getRootNames','setRevisionData','_createFromRanges','start','diffData','markers','NEGATIVE_INFINITY','max','clone','initial','insertions','createPositionAfter','affectsData','_revisionId','_lastFrom','rootName','size','tableCell','_loadRevisionData','Empty\x20document','_removeMetaData','_loadedStateData','creator','getMovedRangeStart','getAttribute','_createInitialRevision','_handleRootAttributeOperation','getChildren','PendingActions','string','childCount','_makeIdsRoot','markerToData','addRoot','delete','toData','_idsRoots','nodeAfter','createRangeIn','dataToMarker','attachChange','model','reverse','_prepareViewToSave','stringify','isEqual','userId','_saveMetaData','graveyardPosition','_baseIdsRoots','vid','_getFromVersion','_execute','_savedMetaData','plugins','shift','authors','sendBufferedUpdates','keepParagraph','editing','revision:','loadState'];(function(_0x3232b9,_0x338547){const _0x2c3fc9=function(_0x1398b1){while(--_0x1398b1){_0x3232b9['push'](_0x3232b9['shift']());}};_0x2c3fc9(++_0x338547);}(_0x3385,0x137));const _0x2c3f=function(_0x3232b9,_0x338547){_0x3232b9=_0x3232b9-0x0;let _0x2c3fc9=_0x3385[_0x3232b9];return _0x2c3fc9;};import{Users as _0x672194}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x370324,PendingActions as _0x5b0903}from'ckeditor5/src/core';import{logWarning as _0x232210,uid as _0x51def7}from'ckeditor5/src/utils';import{Position as _0x14de34,Range as _0x169f5a,Element as _0x450319,DocumentFragment as _0x126caa,ViewText as _0x42498e,ViewElement as _0x567810,ViewContainerElement as _0x408415,ViewAttributeElement as _0x547667,ViewEmptyElement as _0x18399c,ViewRawElement as _0x142ccb,ViewUIElement as _0x4f7ce2,ViewDocumentFragment as _0x92e906}from'ckeditor5/src/engine';import _0x5f4e57 from'./revisionsrepository';import{getTranslation as _0xe28fab}from'./utils/common-translations';import{cloneDeep as _0x475970,isEqual as _0x211cd6}from'lodash-es';const B={'c':_0x408415,'a':_0x547667,'e':_0x18399c,'r':_0x142ccb,'u':_0x4f7ce2};export default class l extends _0x370324{static get['pluginName'](){return'RevisionTracker';}static get[_0x2c3f('0xda')](){return[_0x672194,_0x5f4e57,_0x5b0903];}constructor(_0xd23aac){super(_0xd23aac),this[_0x2c3f('0x7c')]=null,this[_0x2c3f('0xe9')]=null,this['_revisionDataBuilder']=new H(this['editor']),this[_0x2c3f('0x65')]=this[_0x2c3f('0xe3')]['config'][_0x2c3f('0x11')](_0x2c3f('0x80'))||_0x2c3f('0x9a'),this['_bufferedUpdates']=new Map(),this[_0x2c3f('0xa6')]=null;const _0xfc7d55=_0x51def7();this[_0x2c3f('0x49')]={'history':this[_0x2c3f('0xe3')][_0x2c3f('0xba')][_0x2c3f('0x34')][_0x2c3f('0xfb')],'getLatestVersion':()=>Promise[_0x2c3f('0x16')](this[_0x2c3f('0xe3')][_0x2c3f('0xba')][_0x2c3f('0x34')]['version']),'getCurrentRevisionId':()=>_0xfc7d55},this[_0x2c3f('0x1d')](_0x2c3f('0x46'),!0x1),this[_0x2c3f('0x1d')]('isEnabled',!0x0),this[_0x2c3f('0x1d')](_0x2c3f('0x4'),!0x1),this['editor']['config']['define'](_0x2c3f('0xef'),!0x0),this['editor']['conversion'][_0x2c3f('0x68')](_0x2c3f('0xd0'))[_0x2c3f('0xb8')]({'view':_0x2c3f('0x4f')});}['init'](){this[_0x2c3f('0x5b')]=this[_0x2c3f('0xe3')]['plugins'][_0x2c3f('0x11')]('RevisionsRepository'),this[_0x2c3f('0x84')](),this['editor'][_0x2c3f('0x4d')]['on']('ready',()=>{const _0x518fe9=this['repository'][_0x2c3f('0x18')](0x0),_0x13202b=_0x518fe9&&null===_0x518fe9[_0x2c3f('0xa7')]?_0x518fe9:null;if(this[_0x2c3f('0x25')]=!!_0x13202b&&this[_0x2c3f('0xe3')]['config'][_0x2c3f('0x11')](_0x2c3f('0xef')),this['editor'][_0x2c3f('0xc7')][_0x2c3f('0x67')](_0x2c3f('0x100'))){const _0x1e4b9f=this[_0x2c3f('0x49')][_0x2c3f('0x8b')](),_0x5285a4=this[_0x2c3f('0x5b')]['getRevision'](_0x1e4b9f);if(_0x5285a4)this[_0x2c3f('0x13')]=_0x5285a4[_0x2c3f('0xfa')],this[_0x2c3f('0x25')]=!0x1;else{const _0x7b246=this[_0x2c3f('0x49')][_0x2c3f('0xfb')]['_operations'][_0x2c3f('0x82')](_0x3ec13b=>!_0x3ec13b[_0x2c3f('0x47')]),_0x523a7e=_0x7b246?_0x7b246[_0x2c3f('0x36')]:this[_0x2c3f('0x49')][_0x2c3f('0xfb')][_0x2c3f('0x70')];_0x518fe9?(_0x518fe9[_0x2c3f('0x6c')]<_0x523a7e&&_0x518fe9[_0x2c3f('0x72')]({'toVersion':_0x523a7e}),this[_0x2c3f('0x25')]?(this[_0x2c3f('0x49')][_0x2c3f('0x8b')]=()=>_0x13202b['id'],this[_0x2c3f('0x13')]=_0x13202b['fromVersion']):(this['_startingVersion']=_0x518fe9['toVersion'],this[_0x2c3f('0x25')]=!0x1)):(this['_startingVersion']=_0x523a7e,this['_continueCurrentRevision']=!0x1);}}else _0x13202b&&(this[_0x2c3f('0xe3')][_0x2c3f('0xba')]['document'][_0x2c3f('0xfb')]['version']=Math[_0x2c3f('0x98')](_0x13202b['toVersion'],this[_0x2c3f('0xe3')][_0x2c3f('0xba')]['document'][_0x2c3f('0xfb')]['version']),_0x13202b[_0x2c3f('0xfa')]===_0x13202b[_0x2c3f('0x6c')]?(0x0!==_0x13202b[_0x2c3f('0xfa')]&&(this[_0x2c3f('0x49')][_0x2c3f('0x8b')]=()=>_0x13202b['id']),this[_0x2c3f('0x25')]=!0x1):this[_0x2c3f('0x25')]&&(this['_source'][_0x2c3f('0x8b')]=()=>_0x13202b['id'],this[_0x2c3f('0x13')]=_0x13202b[_0x2c3f('0xfa')])),this[_0x2c3f('0x25')]||(this['_startingVersion']=this[_0x2c3f('0xe3')][_0x2c3f('0xba')][_0x2c3f('0x34')]['version']);this[_0x2c3f('0x41')]['init'](this[_0x2c3f('0x49')][_0x2c3f('0xfb')]),this[_0x2c3f('0xaa')](this[_0x2c3f('0x13')]),this['_createCurrentRevision'](this[_0x2c3f('0x13')]),this[_0x2c3f('0x7c')]&&this[_0x2c3f('0xca')]();}),this[_0x2c3f('0xd6')](_0x2c3f('0x46'))['to'](this,'_isPendingUpdate',_0x273948=>!_0x273948);}async['afterInit'](){if(this[_0x2c3f('0x5b')][_0x2c3f('0x14')]>0x0){const _0x5244d8=this[_0x2c3f('0x5b')][_0x2c3f('0x18')](0x0),_0x48fd9c=await this[_0x2c3f('0x15')](_0x5244d8),_0x25e630=await this[_0x2c3f('0x55')](_0x5244d8);this['_replaceEditorDataWithRevisionData'](_0x48fd9c,_0x25e630);}}[_0x2c3f('0x6f')](_0x3c50bf){this[_0x2c3f('0x49')]=_0x3c50bf;}async[_0x2c3f('0x3b')](){const _0x48aa26=await this[_0x2c3f('0x49')]['getLatestVersion']();if(_0x48aa26>this[_0x2c3f('0xe9')][_0x2c3f('0x6c')]){await this[_0x2c3f('0x50')]();const _0x4e3bd8=this[_0x2c3f('0x2d')]({'revision':this[_0x2c3f('0xe9')],'to':_0x48aa26});_0x4e3bd8[_0x2c3f('0xc9')]=_0x4e3bd8[_0x2c3f('0x90')][_0x2c3f('0x57')](_0x39b2f6=>this[_0x2c3f('0xe3')]['plugins'][_0x2c3f('0x11')](_0x2c3f('0xc'))[_0x2c3f('0xcf')](_0x39b2f6)),this['currentRevision'][_0x2c3f('0x72')](_0x4e3bd8);}}async[_0x2c3f('0x50')](){this[_0x2c3f('0x25')]&&!this[_0x2c3f('0xa6')]&&(await this[_0x2c3f('0xa3')](this[_0x2c3f('0xe9')]),this['_revisionDataBuilder'][_0x2c3f('0xce')](this[_0x2c3f('0xe9')]),this[_0x2c3f('0xa6')]={'fromVersion':this[_0x2c3f('0xe9')][_0x2c3f('0xfa')],'authors':this[_0x2c3f('0xe9')]['authors'][_0x2c3f('0xee')]()});}async[_0x2c3f('0x74')](_0x2abee3={},_0x3295e4=null){const _0x47a58e=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3295e4>this[_0x2c3f('0xe9')][_0x2c3f('0x6c')]&&(_0x3295e4=null),null===_0x3295e4&&(_0x3295e4=await this['_source'][_0x2c3f('0x6e')]());const _0x3bc9ee=this[_0x2c3f('0xc4')](_0x3295e4),_0x260661=this['buildRevisionData']({'from':_0x3bc9ee,'to':_0x3295e4});if(this[_0x2c3f('0xe9')][_0x2c3f('0x6c')]<_0x3295e4){const _0x3bbe6a=this[_0x2c3f('0x2d')]({'revision':this['currentRevision'],'from':_0x3295e4,'to':_0x3295e4});_0x3bbe6a[_0x2c3f('0xc9')]=[],_0x3bbe6a[_0x2c3f('0x90')]=[],_0x3bbe6a['id']=this['currentRevision']['id'],this[_0x2c3f('0xe9')][_0x2c3f('0x72')](_0x3bbe6a,!0x0),delete _0x3bbe6a['authors'],_0x47a58e[_0x2c3f('0x3a')](_0x3bbe6a);}_0x2abee3[_0x2c3f('0x3c')]=this[_0x2c3f('0xe3')][_0x2c3f('0xc7')][_0x2c3f('0x11')]('Users')['me']['id'],_0x2abee3[_0x2c3f('0x58')]=_0x2abee3[_0x2c3f('0x58')]||null,_0x2abee3['id']=_0x2abee3['id']||_0x51def7(),_0x2abee3={..._0x2abee3,..._0x260661};const _0x324fa4=this[_0x2c3f('0x1')](_0x2abee3);_0x47a58e['push'](_0x2abee3);const _0x3a54b1=this[_0x2c3f('0x5b')][_0x2c3f('0x2b')](_0x324fa4);if(0x0!==_0x3a54b1){const _0x35dda9=this[_0x2c3f('0x5b')][_0x2c3f('0x18')](_0x3a54b1-0x1);if(_0x35dda9[_0x2c3f('0xfa')]!==_0x3295e4){const _0x3499f8=this[_0x2c3f('0x41')][_0x2c3f('0x24')](_0x3295e4,_0x35dda9[_0x2c3f('0x6c')]),_0x5203bc={'id':_0x35dda9['id'],'diffData':_0x3499f8[_0x2c3f('0x95')],'authorsIds':_0x3499f8[_0x2c3f('0x90')],'authors':_0x3499f8[_0x2c3f('0x90')][_0x2c3f('0x57')](_0x5ea8b=>this['editor'][_0x2c3f('0xc7')]['get']('Users')[_0x2c3f('0xcf')](_0x5ea8b)),'fromVersion':_0x3295e4};_0x35dda9===this[_0x2c3f('0xe9')]&&(_0x5203bc[_0x2c3f('0x75')]=new Date(_0x2abee3[_0x2c3f('0x75')]['getTime']()+0xa)),_0x35dda9[_0x2c3f('0x72')](_0x5203bc,!0x0),delete _0x5203bc[_0x2c3f('0xc9')],_0x47a58e['push'](_0x5203bc);}}if(this[_0x2c3f('0x7c')]){for(const _0xb0df14 of _0x47a58e)this['_bufferUpdate'](_0xb0df14['id'],_0xb0df14,!0x0);this['sendBufferedUpdates']();}return _0x324fa4;}[_0x2c3f('0x1')](_0x2df78e){const _0x448b2c=this[_0x2c3f('0x5b')]['createRevision'](_0x2df78e);return this[_0x2c3f('0x7c')]&&_0x448b2c['on'](_0x2c3f('0x72'),(_0xb3bff6,_0x19a6c5,_0x30e567)=>{_0x30e567||(this[_0x2c3f('0x79')](_0x19a6c5['id'],_0x19a6c5,!0x0),this[_0x2c3f('0xca')]());}),this[_0x2c3f('0x5b')][_0x2c3f('0xe6')](_0x448b2c,this[_0x2c3f('0x69')](_0x448b2c)),_0x448b2c;}async[_0x2c3f('0x15')](_0xa4aba2){await this['_loadRevisionData'](_0xa4aba2);const _0x54e63c={};for(const _0x2a3349 in _0xa4aba2['diffData']){if(_0xa4aba2[_0x2c3f('0x95')][_0x2a3349][_0x2c3f('0xb9')]&&!_0xa4aba2['diffData'][_0x2a3349]['attachChange'][_0x2c3f('0x20')])continue;const _0x39e8f9=this[_0x2c3f('0x3f')](JSON[_0x2c3f('0x2e')](_0xa4aba2[_0x2c3f('0x95')][_0x2a3349][_0x2c3f('0x9b')])),_0x301a87=this['editor'][_0x2c3f('0xcc')][_0x2c3f('0xd5')][_0x2c3f('0x34')],_0x324ace=new _0x92e906(_0x301a87,_0x39e8f9[_0x2c3f('0x57')](_0x53116d=>J(_0x53116d,this['editor'])));this[_0x2c3f('0xe3')]['data'][_0x2c3f('0x35')][_0x2c3f('0x8')](_0x2c3f('0x2a')),_0x54e63c[_0x2a3349]=this[_0x2c3f('0xe3')][_0x2c3f('0x4d')]['processor'][_0x2c3f('0xb4')](_0x324ace),this['editor'][_0x2c3f('0x4d')][_0x2c3f('0x35')]['useFillerType'](_0x2c3f('0x7e'));}return _0x54e63c;}async[_0x2c3f('0x55')](_0x9b586f){await this[_0x2c3f('0xa3')](_0x9b586f);const _0x3a9aaf={};for(const _0x6c038 in _0x9b586f[_0x2c3f('0x95')])_0x9b586f[_0x2c3f('0x95')][_0x6c038][_0x2c3f('0xb9')]&&!_0x9b586f[_0x2c3f('0x95')][_0x6c038]['attachChange'][_0x2c3f('0x20')]||(_0x3a9aaf[_0x6c038]=_0x9b586f[_0x2c3f('0x95')][_0x6c038][_0x2c3f('0xf4')]||{});return _0x3a9aaf;}[_0x2c3f('0xca')](){if(0x0===this[_0x2c3f('0x31')][_0x2c3f('0xa1')])return;if(this[_0x2c3f('0x4')])return;let _0x17adee=Array[_0x2c3f('0x6')](this['_bufferedUpdates'][_0x2c3f('0x5f')]());this[_0x2c3f('0x31')][_0x2c3f('0x101')]();for(let _0x3d843d=0x0;_0x3d843d<_0x17adee['length'];_0x3d843d++){const _0x19500=_0x17adee[_0x3d843d];let _0x424bb6=!0x1;for(const _0x49b355 of Object[_0x2c3f('0xe5')](_0x19500))void 0x0===_0x19500[_0x49b355]?delete _0x19500[_0x49b355]:'id'!==_0x49b355&&(_0x424bb6=!0x0);_0x424bb6||(_0x17adee[_0x3d843d]=null);}if(_0x17adee=_0x17adee[_0x2c3f('0xd1')](_0x128ab0=>null!==_0x128ab0),!_0x17adee[_0x2c3f('0x14')])return;for(let _0x28ab86=0x0;_0x28ab86<_0x17adee[_0x2c3f('0x14')];_0x28ab86++){const _0x1a17c8=_0x17adee[_0x28ab86];void 0x0!==_0x1a17c8[_0x2c3f('0xfa')]&&void 0x0===_0x1a17c8[_0x2c3f('0x6c')]&&(_0x1a17c8[_0x2c3f('0x6c')]=this[_0x2c3f('0x5b')][_0x2c3f('0x18')](_0x1a17c8['id'])[_0x2c3f('0x6c')]),void 0x0!==_0x1a17c8[_0x2c3f('0x6c')]&&void 0x0===_0x1a17c8['fromVersion']&&(_0x1a17c8[_0x2c3f('0xfa')]=this['repository']['getRevision'](_0x1a17c8['id'])[_0x2c3f('0xfa')]);}const _0x3886fa=this[_0x2c3f('0xe3')]['config']['get']('collaboration.channelId');this[_0x2c3f('0x4')]=!0x0,this['_addPendingAction'](),this['adapter'][_0x2c3f('0x38')](_0x17adee,_0x3886fa)[_0x2c3f('0x60')](()=>{this[_0x2c3f('0x4')]=!0x1;})[_0x2c3f('0xde')](_0x33730e=>{if(_0x33730e)for(const _0x3336bc of _0x33730e)this[_0x2c3f('0x92')]({'id':_0x3336bc['id'],'createdAt':_0x3336bc[_0x2c3f('0x75')]});this['_removePendingAction'](),this[_0x2c3f('0xca')]();});}[_0x2c3f('0x52')](_0x429be8,_0x20a435){let _0x493c08=this[_0x2c3f('0xe3')][_0x2c3f('0x102')]['get'](_0x2c3f('0x10')),_0x310a87=this[_0x2c3f('0xe3')][_0x2c3f('0x102')][_0x2c3f('0x11')](_0x2c3f('0x59'));if(void 0x0===_0x493c08){_0x493c08={};for(const _0x4bbef2 of this[_0x2c3f('0xe3')][_0x2c3f('0xba')][_0x2c3f('0x34')][_0x2c3f('0x91')]())_0x493c08[_0x4bbef2]='';}if(_0x2c3f('0xae')==typeof _0x493c08&&(_0x493c08={'main':_0x493c08}),void 0x0===_0x310a87){_0x310a87={};for(const _0xbea62a of this[_0x2c3f('0xe3')][_0x2c3f('0xba')][_0x2c3f('0x34')][_0x2c3f('0x91')]())_0x310a87[_0xbea62a]={};}let _0x50c31b=!0x1;const _0x24c58d=Object[_0x2c3f('0xe5')](_0x493c08),_0x10fe0c=Object[_0x2c3f('0xe5')](_0x429be8);for(const _0x1ef2f9 of _0x24c58d){if(_0x493c08[_0x1ef2f9]!==_0x429be8[_0x1ef2f9]&&''!==_0x493c08[_0x1ef2f9][_0x2c3f('0xfe')]()){_0x50c31b=!0x0;break;}if(!_0x211cd6(_0x310a87[_0x1ef2f9],_0x20a435[_0x1ef2f9])&&Object['keys'](_0x310a87[_0x1ef2f9])['length']>0x0){_0x50c31b=!0x0;break;}}_0x50c31b||(_0x50c31b=_0x10fe0c[_0x2c3f('0x62')](_0x215166=>!this[_0x2c3f('0xe3')]['model'][_0x2c3f('0x34')]['getRoot'](_0x215166))),_0x50c31b&&_0x232210(_0x2c3f('0xea'),{'editorData':_0x493c08,'editorRootsAttributes':_0x310a87,'revisionData':_0x429be8,'revisionRootsAttributes':_0x20a435}),this[_0x2c3f('0xe3')][_0x2c3f('0x102')][_0x2c3f('0x1d')](_0x2c3f('0x10'),_0x429be8),this[_0x2c3f('0xe3')]['config']['set'](_0x2c3f('0x59'),_0x20a435);}[_0x2c3f('0x27')](){if(!this[_0x2c3f('0x1a')]){const _0x34d466=this[_0x2c3f('0xe3')][_0x2c3f('0xc7')][_0x2c3f('0x11')](_0x2c3f('0xad'));this[_0x2c3f('0x1a')]=_0x34d466[_0x2c3f('0xf0')](_0xe28fab(this[_0x2c3f('0xe3')][_0x2c3f('0x73')],_0x2c3f('0x45')));}}[_0x2c3f('0x28')](){this[_0x2c3f('0x1a')]&&(this['editor'][_0x2c3f('0xc7')][_0x2c3f('0x11')](_0x2c3f('0xad'))[_0x2c3f('0xa')](this[_0x2c3f('0x1a')]),this[_0x2c3f('0x1a')]=null);}[_0x2c3f('0x69')](_0x56ba2f){const _0x51ba1a=this[_0x2c3f('0x5b')]['getRevisions']();_0x51ba1a[_0x2c3f('0xbb')]();let _0x197233=0x0;for(;_0x197233<_0x51ba1a['length'];){const _0x4ec4cd=_0x51ba1a[_0x197233];if(_0x4ec4cd===this[_0x2c3f('0xe9')]){_0x197233++;continue;}if(_0x4ec4cd['id']===this[_0x2c3f('0x65')])break;const _0x203c37=_0x56ba2f['toVersion']-_0x4ec4cd[_0x2c3f('0x6c')]||_0x56ba2f[_0x2c3f('0xfa')]-_0x4ec4cd[_0x2c3f('0xfa')];if(_0x203c37>0x0)break;if(_0x203c37<0x0)_0x197233++;else{if(!_0x56ba2f[_0x2c3f('0xa7')]&&_0x4ec4cd[_0x2c3f('0xa7')])break;if(_0x4ec4cd[_0x2c3f('0xa7')]||!_0x56ba2f[_0x2c3f('0xa7')]){if(_0x56ba2f[_0x2c3f('0x75')]>_0x4ec4cd[_0x2c3f('0x75')])break;_0x197233++;}else _0x197233++;}}return _0x197233;}[_0x2c3f('0x92')](_0x3a308a){const _0x68bd68=this[_0x2c3f('0x5b')][_0x2c3f('0x18')](_0x3a308a['id']);if(_0x3a308a[_0x2c3f('0x75')]&&(_0x3a308a[_0x2c3f('0x75')]=new Date(_0x3a308a[_0x2c3f('0x75')])),_0x3a308a[_0x2c3f('0x90')]){const _0x5760b5=this['editor']['plugins'][_0x2c3f('0x11')](_0x2c3f('0xc'));_0x3a308a[_0x2c3f('0xc9')]=_0x3a308a[_0x2c3f('0x90')]['map'](_0x1e07b9=>_0x5760b5['getUser'](_0x1e07b9));}_0x68bd68['_update'](_0x3a308a,!0x0);}['buildRevisionData']({revision:_0x19804c=null,from:_0x1c76e1=null,to:_0x4e50da=null}){_0x1c76e1=null!==_0x1c76e1?_0x1c76e1:_0x19804c[_0x2c3f('0xfa')],_0x4e50da=null!==_0x4e50da?_0x4e50da:_0x19804c[_0x2c3f('0x6c')];const _0xc4c38b=this['_revisionDataBuilder'][_0x2c3f('0x24')](_0x1c76e1,_0x4e50da),_0x312cd5={'diffData':_0xc4c38b[_0x2c3f('0x95')],'authorsIds':_0xc4c38b[_0x2c3f('0x90')],'fromVersion':_0x1c76e1,'toVersion':_0x4e50da};if(!_0x19804c||_0x4e50da!==_0x19804c[_0x2c3f('0x6c')]){const _0x202db6=_0x4e50da-0x1,_0x2f9271=this[_0x2c3f('0x49')][_0x2c3f('0xfb')][_0x2c3f('0xd4')](_0x202db6);_0x312cd5['createdAt']=_0x2f9271&&_0x2f9271[_0x2c3f('0x75')]||new Date();}if(this[_0x2c3f('0xa6')]&&_0x1c76e1===this['_loadedStateData']['fromVersion'])for(const _0x42209a of this['_loadedStateData'][_0x2c3f('0xc9')])_0x312cd5[_0x2c3f('0x90')][_0x2c3f('0x2c')](_0x42209a['id'])||_0x312cd5[_0x2c3f('0x90')]['push'](_0x42209a['id']);return _0x312cd5;}['_loadRevisionData'](_0x5ef6aa){if(!_0x5ef6aa||_0x5ef6aa[_0x2c3f('0x95')])return Promise[_0x2c3f('0x16')]();{const _0x8c2299=this['editor'][_0x2c3f('0x102')][_0x2c3f('0x11')](_0x2c3f('0x80'));return this[_0x2c3f('0x7c')][_0x2c3f('0x18')]({'channelId':_0x8c2299,'revisionId':_0x5ef6aa['id']})[_0x2c3f('0xde')](_0x22ba57=>{_0x5ef6aa[_0x2c3f('0x95')]=_0x22ba57['diffData'];});}}[_0x2c3f('0x79')](_0x42496e,_0x25f0e,_0x251664){if(this[_0x2c3f('0x31')][_0x2c3f('0x67')](_0x42496e)){const _0x44df47=this[_0x2c3f('0x31')][_0x2c3f('0x11')](_0x42496e);_0x25f0e=_0x251664?{..._0x44df47,..._0x25f0e}:{..._0x25f0e,..._0x44df47};}this[_0x2c3f('0x31')]['set'](_0x42496e,_0x25f0e);}[_0x2c3f('0xc4')](_0x44a3a2){const _0x4a8c73=this[_0x2c3f('0x5b')][_0x2c3f('0x7a')]();_0x4a8c73['reverse'](),_0x4a8c73[_0x2c3f('0xc8')]();const _0x20f14d=_0x4a8c73[_0x2c3f('0x82')](_0x205639=>_0x205639['toVersion']<=_0x44a3a2)[_0x2c3f('0x6c')];return _0x20f14d<this['_startingVersion']?this['_startingVersion']:_0x20f14d;}[_0x2c3f('0xaa')](_0x21acdd){const _0x129c97=this[_0x2c3f('0x5b')]['getRevision'](this['repository']['length']-0x1);if(_0x129c97)this[_0x2c3f('0x65')]=_0x129c97['id'];else{const _0x461763=!this[_0x2c3f('0xe3')][_0x2c3f('0xba')]['document']['roots'][_0x2c3f('0x82')](_0x14c7f1=>this['editor'][_0x2c3f('0xba')][_0x2c3f('0xd2')](_0x14c7f1)),_0x116f9b=this['editor'][_0x2c3f('0xc7')]['get']('Users')['me']['id'],_0x2838ab=_0xe28fab(this['editor'][_0x2c3f('0x73')],_0x461763?_0x2c3f('0xa4'):'Initial\x20revision');this[_0x2c3f('0x83')]({'from':_0x21acdd,'to':_0x21acdd,'id':this[_0x2c3f('0x65')],'name':_0x2838ab,'creatorId':_0x116f9b});}}[_0x2c3f('0x71')](_0x1c01b8){const _0x489ff3=this[_0x2c3f('0x49')][_0x2c3f('0x8b')]();this[_0x2c3f('0xe9')]=this[_0x2c3f('0x5b')]['getRevision'](_0x489ff3),this['currentRevision']||(this['currentRevision']=this[_0x2c3f('0x83')]({'from':_0x1c01b8,'to':_0x1c01b8,'id':_0x489ff3,'name':'','creatorId':null}));}[_0x2c3f('0x83')]({name:_0x42d206,from:_0x1634ac,to:_0x11d442,creatorId:_0x7fbdc5,id:_0x3a9764}){const _0x6c2c83=this[_0x2c3f('0x2d')]({'from':_0x1634ac,'to':_0x11d442});_0x6c2c83[_0x2c3f('0x58')]=_0x42d206,_0x6c2c83[_0x2c3f('0x3c')]=_0x7fbdc5,_0x6c2c83['id']=_0x3a9764;const _0x3c45f3=this[_0x2c3f('0x1')](_0x6c2c83);return this[_0x2c3f('0x7c')]&&this[_0x2c3f('0x79')](_0x6c2c83['id'],_0x6c2c83,!0x0),_0x3c45f3;}[_0x2c3f('0x84')](){this['editor'][_0x2c3f('0x39')]['for']('dataDowncast')[_0x2c3f('0xb1')]({'model':_0x2c3f('0x4f')});}[_0x2c3f('0x3f')](_0x3dc8e9){return(_0x3dc8e9=_0x3dc8e9[_0x2c3f('0xd1')](_0x242d51=>!_0x242d51[_0x2c3f('0x58')]||_0x2c3f('0x33')!==_0x242d51[_0x2c3f('0x58')]&&_0x2c3f('0x61')!==_0x242d51[_0x2c3f('0x58')]))[_0x2c3f('0x44')](_0x215537=>{_0x2c3f('0xae')!=typeof _0x215537&&(_0x215537[_0x2c3f('0x19')]=this[_0x2c3f('0x3f')](_0x215537[_0x2c3f('0x19')]),_0x215537['attributes']=_0x215537['attributes'][_0x2c3f('0xd1')](_0x5414b8=>!_0x5414b8[0x0][_0x2c3f('0x1b')](_0x2c3f('0x42'))));}),_0x3dc8e9;}}function J(_0x200c04,_0x47d821){const _0x227a9d=_0x47d821[_0x2c3f('0xcc')][_0x2c3f('0xd5')][_0x2c3f('0x34')];if('string'==typeof _0x200c04)return new _0x42498e(_0x227a9d,_0x200c04);{const _0x2f0a7c=_0x200c04[_0x2c3f('0x19')]['map'](_0x43b4bd=>J(_0x43b4bd,_0x47d821));return new(B[_0x200c04['type']]||_0x567810)(_0x227a9d,_0x200c04[_0x2c3f('0x58')],_0x200c04['attributes'],_0x2f0a7c);}}class H{constructor(_0x215b44){this[_0x2c3f('0xe3')]=_0x215b44,this['_savedMetaData']=new Map(),this[_0x2c3f('0x9f')]=-0x1,this[_0x2c3f('0x86')]=-0x1,this[_0x2c3f('0x9')]=new Map(),this[_0x2c3f('0x6b')]=new Map(),this[_0x2c3f('0xf5')]=new Map(),this[_0x2c3f('0x89')]=new Map(),this[_0x2c3f('0x7d')]=new Map(),this[_0x2c3f('0xb5')]=new Map(),this[_0x2c3f('0xc2')]=new Map(),this[_0x2c3f('0xe')]=new Map(),this[_0x2c3f('0xd7')]=new Map(),this[_0x2c3f('0xed')]=new Map(),this[_0x2c3f('0x9e')]=0x1;}[_0x2c3f('0xf2')](_0xeda64d){this[_0x2c3f('0x6a')]=_0xeda64d;const _0x426e94=new Map(),_0xb33f85=new Map(),_0x4181ba=this[_0x2c3f('0xe3')][_0x2c3f('0xba')][_0x2c3f('0x34')][_0x2c3f('0x8d')]['map'](_0x26a33f=>_0x26a33f[_0x2c3f('0xa0')]);for(const _0x42d5bd of _0x4181ba){const _0x4cc8f4=this[_0x2c3f('0xe3')][_0x2c3f('0xba')][_0x2c3f('0x34')][_0x2c3f('0xf9')](_0x42d5bd),_0x1f46e4=q(_0x4cc8f4);_0x426e94['set'](_0x42d5bd,_0x1f46e4),_0xb33f85[_0x2c3f('0x1d')](_0x42d5bd,Object['fromEntries'](_0x4cc8f4[_0x2c3f('0x76')]()));}const _0x44df99=Array[_0x2c3f('0x6')](this[_0x2c3f('0xe3')][_0x2c3f('0xba')][_0x2c3f('0x96')])[_0x2c3f('0x57')](_0x46f81b=>[_0x46f81b[_0x2c3f('0x58')],_0x46f81b[_0x2c3f('0xf1')]()]),_0x2f24cc=this[_0x2c3f('0x6a')]['version'];this['_saveMetaData'](_0x2f24cc,_0x426e94,_0x44df99,_0xb33f85),this[_0x2c3f('0x5')]=this[_0x2c3f('0x9e')];const _0x9d9919=new Map(),_0x12b62e=new Map();for(const _0x5944f0 of _0x4181ba){const _0x260699=G(_0x5944f0);_0x9d9919[_0x2c3f('0x1d')](_0x5944f0,_0x260699),_0x12b62e[_0x2c3f('0x1d')](_0x5944f0,{});}this[_0x2c3f('0xc0')](Number[_0x2c3f('0x97')],_0x9d9919,[],_0x12b62e);}['getData'](_0x463bb7,_0x1a4541){if(this[_0x2c3f('0x9f')]===_0x463bb7&&this['_lastTo']<=_0x1a4541)this[_0x2c3f('0xc6')][_0x2c3f('0xa1')]>0x1&&this['_removeMetaData'](this['_lastTo']),this[_0x2c3f('0x4a')](this[_0x2c3f('0x86')],_0x1a4541,!0x0);else{if(!this[_0x2c3f('0xc6')][_0x2c3f('0x67')](_0x463bb7)){const _0x132021=this[_0x2c3f('0x66')](_0x463bb7);this['_calculateMetaData'](_0x132021,_0x463bb7,!0x1);}this[_0x2c3f('0x40')](_0x463bb7,_0x1a4541,!0x0);}return this[_0x2c3f('0x9f')]=_0x463bb7,this[_0x2c3f('0x86')]=_0x1a4541,this['_getState']();}[_0x2c3f('0xce')](_0x30f302){this[_0x2c3f('0xeb')](),this[_0x2c3f('0x9f')]=_0x30f302[_0x2c3f('0xfa')],this[_0x2c3f('0x86')]=_0x30f302[_0x2c3f('0x6c')];for(const _0x348c6b in _0x30f302[_0x2c3f('0x95')]){const _0x49f797=_0x30f302[_0x2c3f('0x95')][_0x348c6b][_0x2c3f('0xb9')],_0x43ea2d=_0x475970(_0x30f302['diffData'][_0x348c6b][_0x2c3f('0x7')])||{},_0x1700b9=this['_makeModelFromViewString'](_0x30f302[_0x2c3f('0x95')][_0x348c6b][_0x2c3f('0x5d')]);_0x1700b9[_0x2c3f('0xa0')]=_0x348c6b,_0x1700b9[_0x2c3f('0x43')]=!_0x49f797||!_0x49f797[_0x2c3f('0x20')],_0x1700b9[_0x2c3f('0x20')]=()=>_0x1700b9['_isAttached'],this[_0x2c3f('0x89')][_0x2c3f('0x1d')](_0x348c6b,_0x1700b9),this[_0x2c3f('0x7d')][_0x2c3f('0x1d')](_0x348c6b,_0x43ea2d),_0x49f797&&this[_0x2c3f('0xed')][_0x2c3f('0x1d')](_0x348c6b,_0x49f797);const _0x1604e4=this['_makeIdsRoot'](_0x1700b9);this[_0x2c3f('0xc2')][_0x2c3f('0x1d')](_0x348c6b,_0x1604e4);for(const [_0x440996,_0x5dd277]of _0x1700b9[_0x2c3f('0x96')]){if(!_0x440996[_0x2c3f('0x1b')](_0x2c3f('0xcd')))continue;const _0x4356f3=_0x440996[_0x2c3f('0x48')](':')[0x2];for(const _0x30bfe5 of _0x5dd277[_0x2c3f('0x5a')]({'singleCharacters':!0x0})){const _0x570675=this['_getVidAttributeName'](_0x30bfe5),_0x3b36bb=_0x2c3f('0x23')==_0x30bfe5[_0x2c3f('0x17')]?_0x30bfe5[_0x2c3f('0x2f')][_0x2c3f('0x1c')][_0x2c3f('0xee')](0x0,-0x1):_0x30bfe5[_0x2c3f('0x2f')][_0x2c3f('0x1c')],_0x24c844=_0x1604e4[_0x2c3f('0xd9')](_0x3b36bb)[_0x2c3f('0xa9')](_0x570675);this[_0x2c3f('0xe')]['set'](_0x24c844,{'userId':_0x4356f3});}}}this[_0x2c3f('0x5')]=this[_0x2c3f('0x9e')];const _0x433437=[...Array(this[_0x2c3f('0x9e')])[_0x2c3f('0xe5')]()][_0x2c3f('0xee')](0x1)[_0x2c3f('0xd1')](_0x1a5e26=>!this[_0x2c3f('0xe')][_0x2c3f('0x67')](_0x1a5e26));let _0x587ab0=0x0;const _0x3932df=new Map();for(const _0x3a463a in _0x30f302[_0x2c3f('0x95')]){const _0x4085f5=_0x30f302['diffData'][_0x3a463a]['attachChange'],_0x3d6b96=_0x475970(_0x30f302[_0x2c3f('0x95')][_0x3a463a][_0x2c3f('0xf4')])||{},_0x473782=this[_0x2c3f('0x81')](_0x30f302[_0x2c3f('0x95')][_0x3a463a]['insertions']);_0x473782['rootName']=_0x3a463a,_0x473782[_0x2c3f('0x43')]=!_0x4085f5||_0x4085f5['isAttached'],_0x473782['isAttached']=()=>_0x473782[_0x2c3f('0x43')],this[_0x2c3f('0x6b')][_0x2c3f('0x1d')](_0x3a463a,_0x473782),this[_0x2c3f('0xf5')][_0x2c3f('0x1d')](_0x3a463a,_0x3d6b96);const _0x47a4aa=this[_0x2c3f('0xb0')](_0x473782,Number[_0x2c3f('0x97')]);this[_0x2c3f('0xb5')][_0x2c3f('0x1d')](_0x3a463a,_0x47a4aa),_0x3932df['set'](_0x3a463a,_0x473782[_0x2c3f('0x20')]()?_0x3d6b96:{});for(const [_0x460c91,_0xc928c]of _0x473782[_0x2c3f('0x96')]){if(!_0x460c91[_0x2c3f('0x1b')](_0x2c3f('0xcd')))continue;const _0x2e158c=_0x460c91[_0x2c3f('0x48')](':')[0x2];for(const _0x239b51 of _0xc928c[_0x2c3f('0x5a')]({'singleCharacters':!0x0})){const _0xdb73e=this[_0x2c3f('0x56')](_0x239b51),_0xcb0e20=this[_0x2c3f('0x9e')]++,_0x13d091=_0x2c3f('0x23')==_0x239b51[_0x2c3f('0x17')]?_0x239b51['previousPosition'][_0x2c3f('0x1c')]['slice'](0x0,-0x1):_0x239b51[_0x2c3f('0x2f')][_0x2c3f('0x1c')];_0x47a4aa[_0x2c3f('0xd9')](_0x13d091)[_0x2c3f('0xf6')](_0xdb73e,_0xcb0e20),this[_0x2c3f('0xe')]['set'](_0xcb0e20,{'userId':_0x2e158c});}}for(const _0x40f101 of this['editor'][_0x2c3f('0xba')][_0x2c3f('0xb7')](_0x473782)[_0x2c3f('0x5a')]({'singleCharacters':!0x0})){const _0x197af0=this['_getVidAttributeName'](_0x40f101),_0xe66892=_0x2c3f('0x23')==_0x40f101['type']?_0x40f101[_0x2c3f('0x2f')][_0x2c3f('0x1c')][_0x2c3f('0xee')](0x0,-0x1):_0x40f101[_0x2c3f('0x2f')][_0x2c3f('0x1c')],_0x247980=_0x47a4aa[_0x2c3f('0xd9')](_0xe66892);_0x247980[_0x2c3f('0xa9')](_0x197af0)>0x0||_0x247980[_0x2c3f('0xf6')](_0x197af0,_0x433437[_0x587ab0++]);}for(const [_0xd116ce,_0x2115de]of _0x473782[_0x2c3f('0x96')])_0xd116ce[_0x2c3f('0x1b')](_0x2c3f('0xcd'))||this['_markers']['set'](_0xd116ce,_0x2115de);}const _0x502557=G(_0x2c3f('0x85'));this['_baseRoots'][_0x2c3f('0x1d')]('$graveyard',_0x502557),this[_0x2c3f('0xc2')][_0x2c3f('0x1d')](_0x2c3f('0x85'),this[_0x2c3f('0xb0')](_0x502557,0x1));const _0x283663=G(_0x2c3f('0x85'));this[_0x2c3f('0x6b')][_0x2c3f('0x1d')](_0x2c3f('0x85'),_0x283663),this[_0x2c3f('0xb5')]['set']('$graveyard',this[_0x2c3f('0xb0')](_0x283663,0x1));const _0x77ac30=Array[_0x2c3f('0x6')](this['_diffRoots'])[_0x2c3f('0x57')](([_0x1e43f1,_0x32d2f7])=>[_0x1e43f1,q(_0x32d2f7)]);this['_saveMetaData'](this[_0x2c3f('0x86')],_0x77ac30,this[_0x2c3f('0x9')],_0x3932df);}['_makeModelFromViewString'](_0x17cca2){const _0x362a65=JSON[_0x2c3f('0x2e')](_0x17cca2),_0x45d8a6=this[_0x2c3f('0xe3')][_0x2c3f('0xcc')]['view'][_0x2c3f('0x34')],_0x24e55d=new _0x92e906(_0x45d8a6,_0x362a65[_0x2c3f('0x57')](_0x47f698=>J(_0x47f698,this[_0x2c3f('0xe3')])));return this[_0x2c3f('0xe3')][_0x2c3f('0x4d')][_0x2c3f('0xe4')](_0x24e55d);}['_saveMetaData'](_0x27787a,_0x23800f,_0x27e523,_0x1e534a){const _0x1c9cb1=new Map(_0x23800f),_0x3b4522=new Map(_0x475970(_0x1e534a)),_0x3d8621=new Map();for(const [_0xbc9d45,_0x3f30f2]of _0x27e523)_0x3d8621['set'](_0xbc9d45,{'start':_0x3f30f2[_0x2c3f('0x94')][_0x2c3f('0x99')](),'end':_0x3f30f2['end'][_0x2c3f('0x99')](),'rootName':_0x3f30f2[_0x2c3f('0x22')][_0x2c3f('0xa0')]});this[_0x2c3f('0xc6')][_0x2c3f('0x1d')](_0x27787a,{'roots':_0x1c9cb1,'markers':_0x3d8621,'rootsAttributes':_0x3b4522});}[_0x2c3f('0xa5')](_0x35b33d){this[_0x2c3f('0xc6')]['delete'](_0x35b33d);}[_0x2c3f('0x4b')](){this[_0x2c3f('0xeb')](),this[_0x2c3f('0x9f')]=-0x1,this['_lastTo']=-0x1,this['_savedMetaData'][_0x2c3f('0x101')](),this['init'](this[_0x2c3f('0x6a')]);}[_0x2c3f('0xeb')](){this[_0x2c3f('0xe')]['clear'](),this['_touchedMarkers'][_0x2c3f('0x101')](),this[_0x2c3f('0xed')][_0x2c3f('0x101')](),this[_0x2c3f('0x6b')][_0x2c3f('0x101')](),this[_0x2c3f('0xf5')][_0x2c3f('0x101')](),this[_0x2c3f('0x89')]['clear'](),this[_0x2c3f('0x7d')][_0x2c3f('0x101')](),this[_0x2c3f('0xb5')][_0x2c3f('0x101')](),this[_0x2c3f('0xc2')]['clear'](),this[_0x2c3f('0x9')][_0x2c3f('0x101')](),this[_0x2c3f('0x9e')]=0x1,this[_0x2c3f('0x5')]=this['_revisionId'];}[_0x2c3f('0xb0')](_0x49c38e,_0x8597db=null){let _0x1015cf=null;_0x49c38e['is']('documentFragment')||(_0x1015cf=new _0x450319(_0x49c38e['name'],{'vid_start':null===_0x8597db?this[_0x2c3f('0x9e')]++:_0x8597db++}));const _0x2dfeb1=[];for(const _0x4fd3ca of _0x49c38e[_0x2c3f('0xac')]())if(_0x4fd3ca['is'](_0x2c3f('0x3e'))){_0x2dfeb1['push'](this[_0x2c3f('0xb0')](_0x4fd3ca,_0x8597db));const _0x34d6e4=_0x2dfeb1[_0x2dfeb1[_0x2c3f('0x14')]-0x1];null!==_0x8597db&&(_0x8597db=_0x34d6e4['is']('element',_0x2c3f('0xdf'))?_0x34d6e4[_0x2c3f('0xa9')](_0x2c3f('0xc3'))+0x1:_0x34d6e4['getAttribute'](_0x2c3f('0xd8'))+0x1);}else for(let _0x4f348c=0x0;_0x4f348c<_0x4fd3ca['offsetSize'];_0x4f348c++)_0x2dfeb1[_0x2c3f('0x3a')](new _0x450319('$text',{'vid':null===_0x8597db?this[_0x2c3f('0x9e')]++:_0x8597db++}));if(_0x49c38e['is']('documentFragment')){const _0x4995c0=G(_0x49c38e[_0x2c3f('0xa0')]);return _0x4995c0[_0x2c3f('0x8c')](0x0,_0x2dfeb1),_0x4995c0;}return _0x1015cf[_0x2c3f('0xf6')](_0x2c3f('0xd8'),null===_0x8597db?this['_revisionId']++:_0x8597db++),_0x1015cf[_0x2c3f('0x8c')](0x0,_0x2dfeb1),_0x1015cf;}[_0x2c3f('0x40')](_0x230679,_0x3ebc03,_0x32320d){this[_0x2c3f('0xeb')]();const {roots:_0x19f7fc,markers:_0x488af9,rootsAttributes:_0x356e16}=this[_0x2c3f('0xc6')][_0x2c3f('0x11')](_0x230679);this[_0x2c3f('0x89')]=new Map(_0x19f7fc),this[_0x2c3f('0x7d')]=new Map(_0x475970(_0x356e16));for(const [_0xf89ecd,_0x3fa34e]of this[_0x2c3f('0x89')])if('$graveyard'!==_0xf89ecd&&(this[_0x2c3f('0x6b')][_0x2c3f('0x1d')](_0xf89ecd,q(_0x3fa34e)),this[_0x2c3f('0xf5')]=new Map(_0x475970(_0x356e16)),_0x32320d)){const _0x17de59=this[_0x2c3f('0x9e')];this[_0x2c3f('0xb5')][_0x2c3f('0x1d')](_0xf89ecd,this[_0x2c3f('0xb0')](_0x3fa34e)),this['_baseIdsRoots'][_0x2c3f('0x1d')](_0xf89ecd,this[_0x2c3f('0xb0')](_0x3fa34e,_0x17de59));}this[_0x2c3f('0x5')]=this[_0x2c3f('0x9e')],this[_0x2c3f('0x6b')][_0x2c3f('0x1d')](_0x2c3f('0x85'),q(this[_0x2c3f('0x89')][_0x2c3f('0x11')](_0x2c3f('0x85')))),_0x32320d&&this['_idsRoots'][_0x2c3f('0x1d')]('$graveyard',this[_0x2c3f('0xb0')](this[_0x2c3f('0x89')][_0x2c3f('0x11')](_0x2c3f('0x85'))));for(const [_0x23d288,_0x207c6f]of _0x488af9){const _0x1060e5=this[_0x2c3f('0x89')]['get'](_0x207c6f['rootName']),_0x1685e8=this[_0x2c3f('0x6b')][_0x2c3f('0x11')](_0x207c6f[_0x2c3f('0xa0')]),_0x1125df=new _0x169f5a(this[_0x2c3f('0x1e')](_0x207c6f[_0x2c3f('0x94')],_0x1060e5),this['_fixPosition'](_0x207c6f['end'],_0x1060e5)),_0x41432b=this['_fixRange'](_0x1125df,_0x1685e8);_0x1060e5['markers'][_0x2c3f('0x1d')](_0x23d288,_0x1125df),this['_markers'][_0x2c3f('0x1d')](_0x23d288,_0x41432b);}this[_0x2c3f('0x4a')](_0x230679,_0x3ebc03,_0x32320d);}[_0x2c3f('0x4a')](_0x1bec5e,_0x145e7c,_0x242a29){for(const _0x17762c of this['source']['getOperations'](_0x1bec5e,_0x145e7c))this['_handleOperation'](_0x17762c,_0x242a29);for(const _0x41a89e of this['_diffRoots'][_0x2c3f('0x5f')]())_0x41a89e[_0x2c3f('0x96')]['clear']();for(const [_0x29db49,_0x2569ca]of this['_markers']){this[_0x2c3f('0x6b')][_0x2c3f('0x11')](_0x2569ca['root'][_0x2c3f('0xa0')])['markers'][_0x2c3f('0x1d')](_0x29db49,_0x2569ca[_0x2c3f('0x99')]());}const _0x311ecb=new Map(),_0xaed826=new Map();for(const [_0x128641,_0x4345e8]of this['_diffRoots'])_0x311ecb[_0x2c3f('0x1d')](_0x128641,q(_0x4345e8)),_0xaed826[_0x2c3f('0x1d')](_0x128641,this['_diffRootsAttributes'][_0x2c3f('0x11')](_0x128641));this[_0x2c3f('0xc0')](_0x145e7c,_0x311ecb,this['_markers'],_0xaed826);}[_0x2c3f('0x66')](_0x45e82b){const _0x346021=Array[_0x2c3f('0x6')](this[_0x2c3f('0xc6')][_0x2c3f('0xe5')]());_0x346021['sort']((_0x4abc15,_0x2ef5ce)=>_0x4abc15-_0x2ef5ce),_0x346021[_0x2c3f('0xbb')]();for(const _0x33baca of _0x346021)if(_0x33baca<_0x45e82b)return _0x33baca;return Number[_0x2c3f('0x97')];}[_0x2c3f('0xfd')](_0x592cab,_0x537d88){const _0x4cf729=Array[_0x2c3f('0x6')](_0x537d88['markers'])[_0x2c3f('0x57')](([_0x818fa5,_0x1bc830])=>[_0x818fa5,this[_0x2c3f('0x5e')](_0x1bc830,_0x592cab)]);_0x592cab[_0x2c3f('0x96')]=new Map(_0x4cf729);}['_transformMarkers'](_0x3f3ede){for(const _0x5a4e65 of this[_0x2c3f('0x9')]['values']()){const _0x556d9e=_0x5a4e65['getTransformedByOperation'](_0x3f3ede),_0x2a1023=_0x169f5a[_0x2c3f('0x93')](_0x556d9e);_0x5a4e65['start']=_0x2a1023[_0x2c3f('0x94')],_0x5a4e65['end']=_0x2a1023[_0x2c3f('0x2')];}}[_0x2c3f('0x77')](_0x1a2c2d,_0xcc3acb){if(_0x2c3f('0xb2')==_0x1a2c2d['type']||_0x2c3f('0xd3')==_0x1a2c2d[_0x2c3f('0x17')])return void this[_0x2c3f('0xf8')](_0x1a2c2d,_0xcc3acb);if(_0x2c3f('0xdc')==_0x1a2c2d['type']){const _0x853d54=_0x1a2c2d[_0x2c3f('0x64')][_0x2c3f('0x22')][_0x2c3f('0xa0')];this[_0x2c3f('0x6b')][_0x2c3f('0x67')](_0x853d54)||(this[_0x2c3f('0x6b')][_0x2c3f('0x1d')](_0x853d54,G(_0x853d54,!0x0)),this['_diffRootsAttributes'][_0x2c3f('0x1d')](_0x853d54,{}),_0xcc3acb&&this[_0x2c3f('0xb5')][_0x2c3f('0x1d')](_0x853d54,G(_0x853d54,!0x0)));}else{if(_0x2c3f('0xe0')==_0x1a2c2d[_0x2c3f('0x17')]||_0x2c3f('0xd')==_0x1a2c2d[_0x2c3f('0x17')]||'changeRootAttribute'==_0x1a2c2d[_0x2c3f('0x17')])return void this[_0x2c3f('0xab')](_0x1a2c2d);}const _0x5628b4=this['_cloneOperation'](_0x1a2c2d,this[_0x2c3f('0x6b')]);if(_0x2c3f('0x6d')!==_0x1a2c2d[_0x2c3f('0x17')]&&(_0x5628b4[_0x2c3f('0xc5')](),this['_transformMarkers'](_0x5628b4)),_0xcc3acb)switch(_0x5628b4[_0x2c3f('0x17')]){case _0x2c3f('0xdc'):this[_0x2c3f('0xfc')](_0x1a2c2d);break;case _0x2c3f('0xe1'):case _0x2c3f('0xa'):case _0x2c3f('0x21'):this['_handleMoveOperation'](_0x1a2c2d);break;case'merge':this[_0x2c3f('0x63')](_0x1a2c2d);break;case _0x2c3f('0x48'):this[_0x2c3f('0x8e')](_0x1a2c2d);break;case _0x2c3f('0x6d'):this[_0x2c3f('0x12')](_0x1a2c2d);}}[_0x2c3f('0xf3')](_0x21be9d,_0x1e4005){const _0x3455ff=_0x21be9d[_0x2c3f('0x99')]();return _0x3455ff['_authorId']=_0x21be9d[_0x2c3f('0x7b')],this[_0x2c3f('0xff')](_0x3455ff,_0x1e4005),_0x3455ff;}['_getBaseVids'](_0x56039c){return _0x56039c['map'](_0x43547b=>{const _0x4d7143=this[_0x2c3f('0x56')](_0x43547b);return Number(_0x43547b[_0x2c3f('0xe8')][_0x2c3f('0xa9')](_0x4d7143));});}[_0x2c3f('0x4c')](_0x5f3ef8,_0x219808){if(_0x5f3ef8['is']('element',_0x2c3f('0xdf')))_0x219808[_0x2c3f('0x3a')]({'item':_0x5f3ef8,'type':'text'});else{_0x5f3ef8['is']('element')&&_0x219808[_0x2c3f('0x3a')]({'item':_0x5f3ef8,'type':_0x2c3f('0xe2')});for(const _0xbaf35 of _0x5f3ef8[_0x2c3f('0xac')]())this[_0x2c3f('0x4c')](_0xbaf35,_0x219808);_0x5f3ef8['is']('element')&&_0x219808[_0x2c3f('0x3a')]({'item':_0x5f3ef8,'type':_0x2c3f('0x23')});}return _0x219808;}[_0x2c3f('0x0')](){const _0x39e95b=new Map(this[_0x2c3f('0xe')]),_0x5d34dd=new Map(_0x39e95b),_0x1a9ef4=new Map(),_0x2ded81={'insertions':{},'deletions':{}},_0x38015a={'insertions':{},'deletions':{}},_0xf61f96=new Map(),_0x24b5b6=new Set([...this[_0x2c3f('0x89')]['keys'](),...this[_0x2c3f('0x6b')][_0x2c3f('0xe5')]()]);_0x24b5b6[_0x2c3f('0xb3')]('$graveyard');for(const _0x4f46fd of _0x24b5b6){const _0x481df5=this['_diffRoots'][_0x2c3f('0x11')](_0x4f46fd)||G(_0x4f46fd,!0x1),_0x8c78b9=this[_0x2c3f('0x89')][_0x2c3f('0x11')](_0x4f46fd)||G(_0x4f46fd,!0x1);_0x481df5[_0x2c3f('0x20')]()||_0x8c78b9['isAttached']()?(_0x2ded81[_0x2c3f('0x9b')][_0x4f46fd]=q(_0x481df5),_0x2ded81[_0x2c3f('0x5d')][_0x4f46fd]=q(_0x8c78b9),this[_0x2c3f('0xfd')](_0x2ded81[_0x2c3f('0x5d')][_0x4f46fd],_0x8c78b9),this[_0x2c3f('0xfd')](_0x2ded81[_0x2c3f('0x9b')][_0x4f46fd],_0x481df5),_0x38015a[_0x2c3f('0x9b')][_0x4f46fd]=this[_0x2c3f('0x4c')](this[_0x2c3f('0xb5')]['get'](_0x4f46fd),[]),_0x38015a[_0x2c3f('0x5d')][_0x4f46fd]=this[_0x2c3f('0x4c')](this['_baseIdsRoots']['get'](_0x4f46fd)||G(_0x4f46fd,!0x1),[])):_0x24b5b6[_0x2c3f('0xb3')](_0x4f46fd);}for(const _0x841a7b of _0x24b5b6){const _0x1a8d2d=_0x38015a[_0x2c3f('0x9b')][_0x841a7b];for(const _0x1fe347 of _0x1a8d2d){const _0x59f7fa=this[_0x2c3f('0x56')](_0x1fe347),_0x1880b8=_0x1fe347[_0x2c3f('0xe8')]['getAttribute'](_0x59f7fa);_0x5d34dd[_0x2c3f('0xb3')](_0x1880b8),_0x1880b8>=this[_0x2c3f('0x5')]&&_0x1a9ef4['set'](_0x1880b8,_0x39e95b[_0x2c3f('0x11')](_0x1880b8));}}for(const _0x6c61ba of _0x24b5b6){const _0x33255b=_0x38015a[_0x2c3f('0x9b')][_0x6c61ba],_0x334ae4=this[_0x2c3f('0x5c')](_0x38015a[_0x2c3f('0x5d')][_0x6c61ba]);let _0x11ba36=0x0;for(const _0x508efb of _0x33255b){const _0x2b5984=this[_0x2c3f('0x56')](_0x508efb),_0x117566=_0x508efb['item'][_0x2c3f('0xa9')](_0x2b5984);if(!_0x1a9ef4['has'](_0x117566)&&!_0xf61f96[_0x2c3f('0x67')](_0x117566)){if(_0x5d34dd[_0x2c3f('0x67')](_0x117566))_0x11ba36++;else{if(_0x117566!=_0x334ae4[_0x11ba36]){const _0x3e57ac=_0x39e95b[_0x2c3f('0x11')](_0x117566)||_0x39e95b[_0x2c3f('0x11')](_0x334ae4[_0x11ba36]);for(;_0x117566!=_0x334ae4[_0x11ba36];)_0x5d34dd[_0x2c3f('0x67')](_0x334ae4[_0x11ba36])||(_0xf61f96[_0x2c3f('0x1d')](_0x334ae4[_0x11ba36],_0x3e57ac),_0x39e95b['set'](_0x334ae4[_0x11ba36],_0x3e57ac)),_0x11ba36++;}_0x11ba36++;}}}}for(const _0x3f7c3f of _0x24b5b6){const _0x2d7267=_0x38015a[_0x2c3f('0x9b')][_0x3f7c3f];for(const _0x1723dc of _0x2d7267){const _0x1c82a1=this['_getVidAttributeName'](_0x1723dc),_0x5d35dd=_0x1723dc[_0x2c3f('0xe8')]['getAttribute'](_0x1c82a1);if(_0xf61f96['has'](_0x5d35dd)){const _0x5ac703=_0xf61f96[_0x2c3f('0x11')](_0x5d35dd);_0x5d34dd[_0x2c3f('0x67')](_0x5d35dd)||_0x5d34dd['set'](_0x5d35dd,{..._0x5ac703}),_0x1a9ef4[_0x2c3f('0x1d')](_0x5d35dd,{..._0x5ac703});}}}for(const _0x451da2 of _0x5d34dd[_0x2c3f('0xe5')]())_0x451da2>=this[_0x2c3f('0x5')]&&_0x5d34dd['delete'](_0x451da2);const _0xa3ecf0=new Map();for(const _0x460327 of _0x24b5b6){let _0x520d35=_0x38015a[_0x2c3f('0x9b')][_0x460327];for(const _0x3b9213 of _0x520d35)if(_0x3b9213[_0x2c3f('0xe8')]['is'](_0x2c3f('0x3e'),'tableCell')){const _0x3fb4fb=this[_0x2c3f('0x56')](_0x3b9213),_0x449eeb=_0x3b9213[_0x2c3f('0xe8')]['getAttribute'](_0x3fb4fb);if(_0x1a9ef4[_0x2c3f('0x67')](_0x449eeb)){const _0x443df0=_0x3b9213[_0x2c3f('0xe8')][_0x2c3f('0x26')][_0x2c3f('0x26')][_0x2c3f('0xa9')](_0x2c3f('0x8f')),_0x179b96=_0xa3ecf0[_0x2c3f('0x11')](_0x443df0)||new Set();_0x179b96[_0x2c3f('0xf0')](_0x1a9ef4[_0x2c3f('0x11')](_0x449eeb)[_0x2c3f('0xbf')]),_0xa3ecf0[_0x2c3f('0x1d')](_0x443df0,_0x179b96);}}_0x520d35=_0x38015a[_0x2c3f('0x5d')][_0x460327];for(const _0x4e24ae of _0x520d35)if(_0x4e24ae[_0x2c3f('0xe8')]['is'](_0x2c3f('0x3e'),_0x2c3f('0xa2'))){const _0x18c0ac=this['_getVidAttributeName'](_0x4e24ae),_0x26234d=_0x4e24ae[_0x2c3f('0xe8')][_0x2c3f('0xa9')](_0x18c0ac);if(_0x5d34dd[_0x2c3f('0x67')](_0x26234d)){const _0x2f0e00=_0x4e24ae['item'][_0x2c3f('0x26')][_0x2c3f('0x26')][_0x2c3f('0xa9')]('vid_start'),_0x571e57=_0xa3ecf0['get'](_0x2f0e00)||new Set();_0x571e57['add'](_0x5d34dd['get'](_0x26234d)[_0x2c3f('0xbf')]),_0xa3ecf0[_0x2c3f('0x1d')](_0x2f0e00,_0x571e57);}}for(const _0xc7a3 of _0xa3ecf0[_0x2c3f('0xe5')]())(_0x1a9ef4[_0x2c3f('0x67')](_0xc7a3)||_0x5d34dd['has'](_0xc7a3))&&_0xa3ecf0[_0x2c3f('0xb3')](_0xc7a3);}for(const _0x206ab0 of _0x24b5b6){const _0x353d2b=_0x38015a[_0x2c3f('0x9b')][_0x206ab0];let _0x20236f=null,_0x389561=null;for(const _0x31af14 of _0x353d2b){const _0x3f0863=this[_0x2c3f('0x56')](_0x31af14),_0x581ccb=_0x31af14['item'][_0x2c3f('0xa9')](_0x3f0863),_0x4286fa=_0xa3ecf0[_0x2c3f('0x11')](_0x581ccb);_0x4286fa&&_0x2c3f('0xe2')==_0x31af14[_0x2c3f('0x17')]&&(_0x20236f=Array[_0x2c3f('0x6')](_0x4286fa)[0x0],_0x389561=_0x31af14['item'][_0x2c3f('0xa9')]('vid_end')),_0x20236f&&(_0x5d34dd[_0x2c3f('0x1d')](_0x581ccb,{'userId':_0x20236f}),_0x1a9ef4[_0x2c3f('0x1d')](_0x581ccb,{'userId':_0x20236f})),_0x581ccb==_0x389561&&(_0x20236f=null,_0x389561=null);}}const _0x389900={},_0x2587e0=new Set();for(const _0x5427c8 of _0x24b5b6){const _0x2d01ce=_0x2ded81[_0x2c3f('0x5d')][_0x5427c8],_0x21489f=_0x2ded81['insertions'][_0x5427c8];for(const {userId:_0x2e4d08}of this[_0x2c3f('0xd7')]['values']())null!==_0x2e4d08&&_0x2587e0['add'](_0x2e4d08);for(const {userId:_0x48faa1}of this[_0x2c3f('0xed')][_0x2c3f('0x5f')]())null!==_0x48faa1&&_0x2587e0['add'](_0x48faa1);this[_0x2c3f('0x1f')](_0x21489f,_0x38015a[_0x2c3f('0x9b')][_0x5427c8],_0x1a9ef4,_0x2c3f('0x4e'),_0x2587e0),this[_0x2c3f('0x1f')](_0x2d01ce,_0x38015a['deletions'][_0x5427c8],_0x5d34dd,_0x2c3f('0xb'),_0x2587e0),_0x389900[_0x5427c8]={'insertions':this[_0x2c3f('0xbc')](_0x21489f),'deletions':this['_prepareViewToSave'](_0x2d01ce),'attachChange':this[_0x2c3f('0xed')]['get'](_0x5427c8)||null,'attributesBefore':_0x475970(this[_0x2c3f('0x7d')]['get'](_0x5427c8))||{},'attributesAfter':_0x475970(this[_0x2c3f('0xf5')][_0x2c3f('0x11')](_0x5427c8))};}return{'diffData':_0x389900,'authorsIds':Array[_0x2c3f('0x6')](_0x2587e0)};}[_0x2c3f('0x78')](_0x7de61f){for(const [,_0x1f6b7f]of _0x7de61f[_0x2c3f('0x96')]){const _0x238c7a=_0x1f6b7f['start']['getAncestors']()['filter'](_0x28962b=>_0x2c3f('0xa2')==_0x28962b[_0x2c3f('0x58')]);for(const _0xe4e67a of _0x238c7a)0x1==_0xe4e67a['childCount']&&_0xe4e67a['getChild'](0x0)['is'](_0x2c3f('0x3e'),'paragraph')&&_0xe4e67a['getChild'](0x0)[_0x2c3f('0xf6')](_0x2c3f('0xcb'),!0x0);}}[_0x2c3f('0xbc')](_0x4b7ac1){this['_processRootBeforeSave'](_0x4b7ac1);const _0x31f282=this[_0x2c3f('0xe3')]['data']['toView'](_0x4b7ac1,{}),_0x35c619=Array[_0x2c3f('0x6')](_0x31f282[_0x2c3f('0xac')]())['map'](_0x5f4f3d=>this[_0x2c3f('0x7f')](_0x5f4f3d));return JSON[_0x2c3f('0xbd')](_0x35c619);}[_0x2c3f('0x7f')](_0x258f5d){if(_0x258f5d['is'](_0x2c3f('0xdf')))return _0x258f5d[_0x2c3f('0x4d')];{const _0x4e2a5e=_0x258f5d;return{'type':Object[_0x2c3f('0xe5')](B)[_0x2c3f('0x82')](_0x2bfb6d=>_0x258f5d instanceof B[_0x2bfb6d]),'name':_0x4e2a5e[_0x2c3f('0x58')],'attributes':Array['from'](_0x4e2a5e[_0x2c3f('0x76')]()),'children':Array['from'](_0x4e2a5e[_0x2c3f('0xac')]())[_0x2c3f('0x57')](_0x1176fd=>this[_0x2c3f('0x7f')](_0x1176fd))};}}['_markChanges'](_0x3a211c,_0x6a5e8a,_0x5e7e9c,_0x3642c3,_0x56ab71){let _0x15abe9=null,_0x17dfdd=null,_0x1ac2e4=0x0;const _0x3c7c43=this[_0x2c3f('0xe3')]['model'];for(let _0x591680=0x0;_0x591680<_0x6a5e8a[_0x2c3f('0x14')];_0x591680++){const _0x35e5aa=this[_0x2c3f('0x56')](_0x6a5e8a[_0x591680]),_0x2d56a6=_0x6a5e8a[_0x591680][_0x2c3f('0xe8')][_0x2c3f('0xa9')](_0x35e5aa),_0x5b2d66=_0x5e7e9c[_0x2c3f('0x11')](_0x2d56a6),_0xcf4131=_0x591680==_0x6a5e8a[_0x2c3f('0x14')]-0x1;(!_0x15abe9&&_0x5b2d66&&(_0x15abe9=_0x5b2d66,_0x17dfdd=_0x6a5e8a[_0x591680]),_0x15abe9&&(!_0x5b2d66||_0x5b2d66[_0x2c3f('0xbf')]!=_0x15abe9[_0x2c3f('0xbf')]))&&(_0x3e367e(_0x5b2d66,L(_0x17dfdd,_0x3a211c,_0x3c7c43),L(_0x6a5e8a[_0x591680],_0x3a211c,_0x3c7c43)),_0x15abe9=_0x5b2d66||null,_0x17dfdd=_0x5b2d66?_0x6a5e8a[_0x591680]:null),_0x15abe9&&_0xcf4131&&_0x3e367e(_0x5b2d66,L(_0x17dfdd,_0x3a211c,_0x3c7c43),W(_0x6a5e8a[_0x591680],_0x3a211c,_0x3c7c43));}function _0x3e367e(_0xd97639,_0x22fdb8,_0x472e0a){const _0x352743=_0x15abe9[_0x2c3f('0xbf')],_0x3fb939=_0x2c3f('0xcd')+_0x3642c3+':'+_0x352743+':'+_0x1ac2e4++,_0x3dc591=_0x3c7c43[_0x2c3f('0xdb')](_0x22fdb8,_0x472e0a);_0x3a211c[_0x2c3f('0x96')]['set'](_0x3fb939,_0x3dc591),null!==_0x352743&&_0x56ab71[_0x2c3f('0xf0')](_0x352743);}}['_getVidAttributeName'](_0x36efbb){switch(_0x36efbb['type']){case _0x2c3f('0xe2'):return'vid_start';case'elementEnd':return _0x2c3f('0xd8');default:return _0x2c3f('0xc3');}}[_0x2c3f('0xff')](_0x536d59,_0x108153){_0x536d59[_0x2c3f('0x36')]=null;for(const _0x57e701 in _0x536d59){const _0x54b2d3=_0x536d59[_0x57e701];if(_0x54b2d3 instanceof _0x14de34){const _0x4f60e1=_0x108153[_0x2c3f('0x11')](_0x54b2d3[_0x2c3f('0x22')][_0x2c3f('0xa0')]);_0x536d59[_0x57e701]=this['_fixPosition'](_0x54b2d3,_0x4f60e1);}if(_0x54b2d3 instanceof _0x169f5a){const _0x241728=_0x108153['get'](_0x54b2d3[_0x2c3f('0x22')]['rootName']);_0x536d59[_0x57e701]=this[_0x2c3f('0x5e')](_0x54b2d3,_0x241728);}_0x2c3f('0x22')===_0x57e701&&(_0x536d59['root']=_0x108153[_0x2c3f('0x11')](_0x536d59[_0x2c3f('0x22')][_0x2c3f('0xa0')]));}}[_0x2c3f('0x5e')](_0x595957,_0x36b8c6){return this[_0x2c3f('0xe3')][_0x2c3f('0xba')][_0x2c3f('0xdb')](this[_0x2c3f('0x1e')](_0x595957[_0x2c3f('0x94')],_0x36b8c6),this[_0x2c3f('0x1e')](_0x595957[_0x2c3f('0x2')],_0x36b8c6));}[_0x2c3f('0x1e')](_0x2a7c11,_0x44884a){return this[_0x2c3f('0xe3')]['model'][_0x2c3f('0x3')](_0x44884a,_0x2a7c11[_0x2c3f('0x1c')],_0x2a7c11[_0x2c3f('0x51')]);}[_0x2c3f('0xfc')](_0xda5ce6){const _0x51144b=this[_0x2c3f('0xb5')][_0x2c3f('0x11')](_0xda5ce6['position'][_0x2c3f('0x22')]['rootName']),_0x37551f=this[_0x2c3f('0x1e')](_0xda5ce6['position'],_0x51144b),_0x607b7b=null===_0xda5ce6['_authorId']?null:_0xda5ce6[_0x2c3f('0x7b')]||this['editor']['plugins']['get']('Users')['me']['id'],_0x29e384=_0x37551f[_0x2c3f('0x26')],_0x4e267f=this[_0x2c3f('0x9e')],_0x367906=[];for(const _0x3250ab of _0xda5ce6['nodes'])if(_0x3250ab['is'](_0x2c3f('0x3e')))_0x367906['push'](this[_0x2c3f('0xb0')](_0x3250ab));else for(let _0x4773cb=0x0;_0x4773cb<_0x3250ab[_0x2c3f('0x88')];_0x4773cb++)_0x367906[_0x2c3f('0x3a')](new _0x450319(_0x2c3f('0xdf'),{'vid':this['_revisionId']++}));const _0x2cf531=this[_0x2c3f('0x9e')];for(let _0x238db6=_0x4e267f;_0x238db6<_0x2cf531;_0x238db6++)this[_0x2c3f('0xe')][_0x2c3f('0x1d')](_0x238db6,{'userId':_0x607b7b});_0x29e384[_0x2c3f('0x8c')](_0x37551f[_0x2c3f('0x53')],_0x367906);}['_handleMoveOperation'](_0x50254d){(_0x50254d=this[_0x2c3f('0xf3')](_0x50254d,this[_0x2c3f('0xb5')]))[_0x2c3f('0xc5')]();const _0x208d0b=null===_0x50254d[_0x2c3f('0x7b')]?null:_0x50254d[_0x2c3f('0x7b')]||this[_0x2c3f('0xe3')][_0x2c3f('0xc7')]['get'](_0x2c3f('0xc'))['me']['id'],_0x31b33b=_0x50254d[_0x2c3f('0xa8')](),_0x33bd5e=_0x31b33b[_0x2c3f('0x26')],_0x59034f=_0x31b33b[_0x2c3f('0x53')];!function _0x53cdb1(_0x48648f,_0x984b78,_0x5d54f4,_0x4ebb62){for(let _0x359f65=_0x5d54f4;_0x359f65<_0x4ebb62;_0x359f65++){const _0x2d69ab=_0x984b78[_0x2c3f('0xf')](_0x359f65);_0x2d69ab['is'](_0x2c3f('0x3e'),'$text')?_0x48648f['set'](_0x2d69ab[_0x2c3f('0xa9')](_0x2c3f('0xc3')),{'userId':_0x208d0b}):(_0x48648f[_0x2c3f('0x1d')](_0x2d69ab[_0x2c3f('0xa9')](_0x2c3f('0x8f')),{'userId':_0x208d0b}),_0x53cdb1(_0x48648f,_0x2d69ab,0x0,_0x2d69ab[_0x2c3f('0xaf')]),_0x48648f['set'](_0x2d69ab[_0x2c3f('0xa9')](_0x2c3f('0xd8')),{'userId':_0x208d0b}));}}(this[_0x2c3f('0xe')],_0x33bd5e,_0x59034f,_0x59034f+_0x50254d[_0x2c3f('0x87')]);}[_0x2c3f('0x63')](_0x3f5184){const _0x58899d=null===(_0x3f5184=this['_cloneOperation'](_0x3f5184,this[_0x2c3f('0xb5')]))['_authorId']?null:_0x3f5184[_0x2c3f('0x7b')]||this[_0x2c3f('0xe3')]['plugins'][_0x2c3f('0x11')](_0x2c3f('0xc'))['me']['id'],_0x46a49f=_0x3f5184['targetPosition'][_0x2c3f('0x26')],_0xa4f469=_0x3f5184[_0x2c3f('0xe7')]['parent'],_0x29770c=_0x46a49f['getAttribute'](_0x2c3f('0xd8')),_0x173388=_0xa4f469['getAttribute'](_0x2c3f('0x8f'));_0x46a49f[_0x2c3f('0xf6')]('vid_end',_0xa4f469[_0x2c3f('0xa9')](_0x2c3f('0xd8'))),_0xa4f469[_0x2c3f('0xf6')](_0x2c3f('0xd8'),_0x29770c),this[_0x2c3f('0xe')][_0x2c3f('0x1d')](_0x173388,{'userId':_0x58899d}),this[_0x2c3f('0xe')][_0x2c3f('0x1d')](_0x29770c,{'userId':_0x58899d}),_0x3f5184[_0x2c3f('0xc5')]();}[_0x2c3f('0x8e')](_0x156487){const _0x41c4be=null===(_0x156487=this[_0x2c3f('0xf3')](_0x156487,this[_0x2c3f('0xb5')]))['_authorId']?null:_0x156487[_0x2c3f('0x7b')]||this[_0x2c3f('0xe3')][_0x2c3f('0xc7')][_0x2c3f('0x11')](_0x2c3f('0xc'))['me']['id'],_0x3981a9=_0x156487[_0x2c3f('0xc1')],_0x18da91=_0x156487[_0x2c3f('0x8a')]['parent'];_0x156487[_0x2c3f('0xc5')]();const _0x5d9fb5=_0x18da91[_0x2c3f('0xa9')](_0x2c3f('0xd8')),_0x375b1f=_0x156487[_0x2c3f('0xec')][_0x2c3f('0xb6')];if(_0x3981a9){const _0x3190b5=_0x375b1f[_0x2c3f('0xa9')]('vid_end'),_0x5cb324=_0x18da91[_0x2c3f('0xa9')](_0x2c3f('0xd8'));_0x18da91[_0x2c3f('0xf6')](_0x2c3f('0xd8'),_0x3190b5),_0x375b1f[_0x2c3f('0xf6')](_0x2c3f('0xd8'),_0x5cb324),this[_0x2c3f('0xe')]['set'](_0x18da91[_0x2c3f('0xa9')](_0x2c3f('0xd8')),{'userId':_0x41c4be}),this['_touched'][_0x2c3f('0x1d')](_0x375b1f[_0x2c3f('0xa9')](_0x2c3f('0x8f')),{'userId':_0x41c4be});}else{const _0x4c9075=this[_0x2c3f('0x9e')]++,_0xc462ad=this[_0x2c3f('0x9e')]++;_0x18da91[_0x2c3f('0xf6')](_0x2c3f('0xd8'),_0x4c9075),_0x375b1f[_0x2c3f('0xf6')](_0x2c3f('0x8f'),_0xc462ad),_0x375b1f[_0x2c3f('0xf6')](_0x2c3f('0xd8'),_0x5d9fb5),this[_0x2c3f('0xe')][_0x2c3f('0x1d')](_0x4c9075,{'userId':_0x41c4be}),this['_touched'][_0x2c3f('0x1d')](_0xc462ad,{'userId':_0x41c4be});}}[_0x2c3f('0x12')](_0x319ac0){if(!_0x319ac0[_0x2c3f('0x9d')])return;const _0x2ddbdf=(_0x319ac0=this['_cloneOperation'](_0x319ac0,this[_0x2c3f('0x6b')]))['oldRange']?_0x319ac0[_0x2c3f('0x3d')][_0x2c3f('0x22')]:null,_0x2d5a7d=_0x319ac0[_0x2c3f('0x30')]?_0x319ac0[_0x2c3f('0x30')][_0x2c3f('0x22')]:null;_0x2ddbdf&&this['_markers'][_0x2c3f('0xb3')](_0x319ac0[_0x2c3f('0x58')]),_0x2d5a7d&&this[_0x2c3f('0x9')][_0x2c3f('0x1d')](_0x319ac0[_0x2c3f('0x58')],_0x319ac0[_0x2c3f('0x30')]['clone']());const _0x3c0a9a=null===_0x319ac0[_0x2c3f('0x7b')]?null:_0x319ac0[_0x2c3f('0x7b')]||this['editor'][_0x2c3f('0xc7')][_0x2c3f('0x11')](_0x2c3f('0xc'))['me']['id'],_0x50b84d=_0x319ac0['name'];if(!this['_touchedMarkers'][_0x2c3f('0x67')](_0x50b84d))return void this[_0x2c3f('0xd7')]['set'](_0x50b84d,{'range':_0x319ac0['oldRange'],'userId':_0x3c0a9a});const _0x5ccede=this[_0x2c3f('0xd7')][_0x2c3f('0x11')](_0x50b84d),_0xeaff16=_0x5ccede[_0x2c3f('0x54')],_0x136a78=_0x319ac0[_0x2c3f('0x30')];null==_0xeaff16&&null==_0x136a78||_0xeaff16&&_0x136a78&&_0xeaff16[_0x2c3f('0xbe')](_0x136a78)?this[_0x2c3f('0xd7')][_0x2c3f('0xb3')](_0x319ac0[_0x2c3f('0x58')]):_0x5ccede['userId']=_0x3c0a9a;}[_0x2c3f('0xf8')](_0x2162ca,_0x53c8b2){this[_0x2c3f('0x6b')][_0x2c3f('0x67')](_0x2162ca[_0x2c3f('0xa0')])?this['_diffRoots'][_0x2c3f('0x11')](_0x2162ca[_0x2c3f('0xa0')])[_0x2c3f('0x43')]=_0x2162ca[_0x2c3f('0x32')]:(this['_diffRoots'][_0x2c3f('0x1d')](_0x2162ca[_0x2c3f('0xa0')],G(_0x2162ca[_0x2c3f('0xa0')],!0x0)),this[_0x2c3f('0xf5')][_0x2c3f('0x1d')](_0x2162ca[_0x2c3f('0xa0')],{}),_0x53c8b2&&this[_0x2c3f('0xb5')][_0x2c3f('0x1d')](_0x2162ca[_0x2c3f('0xa0')],G(_0x2162ca[_0x2c3f('0xa0')],!0x0)));const _0x53bf96=null===_0x2162ca[_0x2c3f('0x7b')]?null:_0x2162ca[_0x2c3f('0x7b')]||this['editor'][_0x2c3f('0xc7')][_0x2c3f('0x11')](_0x2c3f('0xc'))['me']['id'],_0x5a38a6=this[_0x2c3f('0xed')]['get'](_0x2162ca[_0x2c3f('0xa0')]);_0x5a38a6&&_0x5a38a6[_0x2c3f('0xbf')]===_0x53bf96?this[_0x2c3f('0xed')][_0x2c3f('0xb3')](_0x2162ca[_0x2c3f('0xa0')]):this[_0x2c3f('0xed')][_0x2c3f('0x1d')](_0x2162ca[_0x2c3f('0xa0')],{'userId':_0x53bf96,'isAttached':_0x2162ca['isAdd']});}['_handleRootAttributeOperation'](_0x286ca6){const _0x4164bd=this[_0x2c3f('0xf5')][_0x2c3f('0x11')](_0x286ca6['root'][_0x2c3f('0xa0')]);null===_0x286ca6[_0x2c3f('0x29')]?delete _0x4164bd[_0x286ca6[_0x2c3f('0xf7')]]:_0x4164bd[_0x286ca6[_0x2c3f('0xf7')]]=_0x286ca6[_0x2c3f('0x29')];}}function q(_0x2c4ea6){const _0x26ddc4=G(_0x2c4ea6[_0x2c3f('0xa0')],_0x2c4ea6[_0x2c3f('0x20')]());for(const _0x2afa75 of _0x2c4ea6[_0x2c3f('0xac')]()){const _0x2c6f00=_0x2afa75[_0x2c3f('0x37')](!0x0);_0x26ddc4['_appendChild'](_0x2c6f00);}return _0x26ddc4;}function G(_0x2ba732,_0x2913a6=!0x0){const _0x53cdc8=new _0x126caa();return _0x53cdc8['rootName']=_0x2ba732,_0x53cdc8[_0x2c3f('0x43')]=_0x2913a6,_0x53cdc8['isAttached']=()=>_0x53cdc8[_0x2c3f('0x43')],_0x53cdc8;}function L(_0x222d88,_0x4a7c1a,_0x684a7c){const _0x460200=_0x2c3f('0x23')==_0x222d88[_0x2c3f('0x17')]?_0x684a7c[_0x2c3f('0xdd')](_0x222d88[_0x2c3f('0xe8')],_0x2c3f('0x2')):_0x684a7c['createPositionBefore'](_0x222d88[_0x2c3f('0xe8')]);return _0x684a7c['createPositionFromPath'](_0x4a7c1a,_0x460200[_0x2c3f('0x1c')],_0x460200[_0x2c3f('0x51')]);}function W(_0x8797,_0x549eb6,_0x1d4d3a){const _0x1af715='elementStart'==_0x8797[_0x2c3f('0x17')]?_0x1d4d3a[_0x2c3f('0xdd')](_0x8797[_0x2c3f('0xe8')],0x0):_0x1d4d3a[_0x2c3f('0x9c')](_0x8797[_0x2c3f('0xe8')]);return _0x1d4d3a['createPositionFromPath'](_0x549eb6,_0x1af715['path'],_0x1af715[_0x2c3f('0x51')]);}