@ckeditor/ckeditor5-revision-history 37.0.0 → 37.1.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 (36) hide show
  1. package/build/revision-history.js +1 -1
  2. package/build/translations/sr.js +1 -1
  3. package/lang/translations/sr.po +1 -1
  4. package/package.json +6 -6
  5. package/src/changeitem.d.ts +5 -0
  6. package/src/changeitem.js +1 -1
  7. package/src/editor/revisionviewereditor.js +1 -1
  8. package/src/editor/revisionviewereditorui.js +1 -1
  9. package/src/editor/revisionviewereditoruiview.js +1 -1
  10. package/src/revision.js +1 -1
  11. package/src/revisiondiff.d.ts +1 -0
  12. package/src/revisiondiff.js +1 -1
  13. package/src/revisionhistory.js +1 -1
  14. package/src/revisionsrepository.js +1 -1
  15. package/src/revisiontracker.js +1 -1
  16. package/src/revisionviewer.js +1 -1
  17. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  18. package/src/ui/revision/revisionauthorview.js +1 -1
  19. package/src/ui/revision/revisionnameview.js +1 -1
  20. package/src/ui/revision/revisionview.js +1 -1
  21. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  22. package/src/ui/revision/subrevisionview.js +1 -1
  23. package/src/ui/revision/utils.js +1 -1
  24. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  25. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  26. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  27. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  28. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  29. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  30. package/src/ui/revisionssidebar/utils.js +1 -1
  31. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  32. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  33. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  34. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  35. package/src/utils/common-translations.js +1 -1
  36. package/theme/revisionviewer.css +16 -0
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x310c=['_getViewJson','getWalker','createRange','Empty\x20document','affectsData','_isPendingUpdate','getRevision','clone','deletions','RealTimeCollaborationClient','$text','_handleMergeOperation','_getPreviousFrom','_markers','elementStart','_fixRange','toVersion','roots','tableCell','locale','parse','_reset','_execute','clear','keepParagraph','start','vid_end','stickiness','view','startsWith','getRoot','_removeRevisionMarkers','markers','editing','get','_loadState','element','toModel','getTime','marker','adapter','toView','default','forEach','loadState','initialData','_loadedStateData','afterInit','keys','getRevisions','values','_isInit','authors','_copyMarkers','map','nodes','isReady','_appendChild','_clone','setSource','collaboration.channelId','init','includes','type','_setConversion','creatorId','creator','move','attributes','$graveyard','_diffRoots','nodeAfter','_handleMoveOperation','reverse','insertion','_makeRevision','_applyOperations','PENDING_ACTION_REVISION_HISTORY','_removePendingAction','insert','source','addRevisionData','fromVersion','newRange','sendBufferedUpdates','config','_handleOperation','_startingRevisionId','buildRevisionData','_createInitialRevision','_source','elementEnd','_baseIdsRoots','remove','getAttribute','_lastFrom','_fixPosition','_idsRoots','howMany','insertionPosition','_touchedMarkers','find','data-revision-','repository','_generateTape','_createCurrentRevision','getData','_markChanges','trim','childCount','_continueCurrentRevision','_loadRevisionData','insertions','_findInsertionIndex','_handleInsertOperation','max','_createFromRanges','vid_start','_lastTo','getLatestVersion','string','revision:','revision-end','editor-initial-data-replaced-with-revision-data','_cloneOperation','shift','revisionHistory.resumeUnsavedRevision','createdAt','from','oldRange','userId','_touched','children','_operations','for','deletion','slice','_update','_savedMetaData','_setAttribute','_bufferedUpdates','getIndex','_fixOperation','has','_baseRoots','useFillerType','_processRootBeforeSave','bind','updateRevisions','end','length','model','authorsIds','push','graveyardPosition','version','RevisionTracker','set','_getState','getNodeByPath','isEqual','_getVidAttributeName','getAncestors','getRange','history','parent','NEGATIVE_INFINITY','_replaceEditorDataWithRevisionData','size','_getBaseVids','_authorId','_initialRevisionId','sort','delete','RevisionsRepository','getUser','createPositionAt','text','_removeMetaData','_calculateMetaData','data','editor','baseVersion','initial','resolve','currentRevision','createPositionAfter','PendingActions','getOperations','offset','sourcePosition','_makeIdsRoot','_prepareViewToSave','name','finally','getCurrentRevisionId','_getFromVersion','marked','stringify','toData','_revisionDataBuilder','_rootNames','conversion','getOperation','reinsert','_insertChild','getChildren','rootName','root','_makeModelFromViewString','hasContent','split','documentFragment','Users','processor','getRevisionDocumentData','offsetSize','_addPendingAction','vid','createPositionFromPath','_bufferUpdate','getTransformedByOperation','filter','document','revision-start','_saveMetaData','add','revision','paragraph','path','_startingVersion','previousPosition','_revisionId','_pendingAction','_handleMarkerOperation','diffData','range','_handleSplitOperation','item','targetPosition','getRootNames','_saveEmptyMetaData','ready','then','plugins','requires'];(function(_0x21f6b7,_0x310c1d){const _0x23baca=function(_0x412928){while(--_0x412928){_0x21f6b7['push'](_0x21f6b7['shift']());}};_0x23baca(++_0x310c1d);}(_0x310c,0xf2));const _0x23ba=function(_0x21f6b7,_0x310c1d){_0x21f6b7=_0x21f6b7-0x0;let _0x23baca=_0x310c[_0x21f6b7];return _0x23baca;};import{Users as _0x5dfa45}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0xb35329,PendingActions as _0x334170}from'ckeditor5/src/core';import{logWarning as _0x2d0833,uid as _0x20b1ec}from'ckeditor5/src/utils';import{Position as _0x1394e0,Range as _0x1e150f,Element as _0x463cd8,DocumentFragment as _0x19b136,ViewText as _0x26ed65,ViewElement as _0x3f6c7f,ViewContainerElement as _0x5a5ea4,ViewAttributeElement as _0x10e9d6,ViewEmptyElement as _0x44a202,ViewRawElement as _0x284716,ViewUIElement as _0xb2d2d8,ViewDocumentFragment as _0x3f73e9}from'ckeditor5/src/engine';import _0x7c5365 from'./revisionsrepository';import{getTranslation as _0x25704c}from'./utils/common-translations';const V={'c':_0x5a5ea4,'a':_0x10e9d6,'e':_0x44a202,'r':_0x284716,'u':_0xb2d2d8};export default class l extends _0xb35329{static get['pluginName'](){return _0x23ba('0xa0');}static get[_0x23ba('0x3')](){return[_0x5dfa45,_0x7c5365,_0x334170];}constructor(_0x10e114){super(_0x10e114),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this[_0x23ba('0xb9')]),this[_0x23ba('0xaf')]=this[_0x23ba('0xb9')][_0x23ba('0x59')][_0x23ba('0x26')](_0x23ba('0x40'))||_0x23ba('0xbb'),this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x4facd2=_0x20b1ec();this[_0x23ba('0x5e')]={'history':this['editor'][_0x23ba('0x9b')][_0x23ba('0xe3')][_0x23ba('0xa8')],'getLatestVersion':()=>Promise[_0x23ba('0xbc')](this[_0x23ba('0xb9')][_0x23ba('0x9b')][_0x23ba('0xe3')]['version']),'getCurrentRevisionId':()=>_0x4facd2},this[_0x23ba('0xa1')](_0x23ba('0x3c'),!0x1),this[_0x23ba('0xa1')]('isEnabled',!0x0),this[_0x23ba('0xa1')](_0x23ba('0x9'),!0x1),this[_0x23ba('0xb9')][_0x23ba('0x59')]['define'](_0x23ba('0x82'),!0x0),this[_0x23ba('0xb9')][_0x23ba('0xce')]['for']('upcast')['dataToMarker']({'view':_0x23ba('0xe7')});}[_0x23ba('0x41')](){this[_0x23ba('0x6b')]=this[_0x23ba('0xb9')][_0x23ba('0x2')][_0x23ba('0x26')](_0x23ba('0xb2')),this['_setConversion'](),this[_0x23ba('0xb9')][_0x23ba('0xb8')]['on'](_0x23ba('0x0'),()=>{const _0x3fd9bb=this[_0x23ba('0x6b')][_0x23ba('0xa')](0x0),_0x4789be=_0x3fd9bb&&null===_0x3fd9bb[_0x23ba('0x46')]?_0x3fd9bb:null;if(this[_0x23ba('0x72')]=!!_0x4789be&&this[_0x23ba('0xb9')]['config'][_0x23ba('0x26')](_0x23ba('0x82')),this[_0x23ba('0xb9')][_0x23ba('0x2')][_0x23ba('0x93')](_0x23ba('0xd'))){const _0x290c9d=this['_source'][_0x23ba('0xc7')](),_0x38be80=this[_0x23ba('0x6b')]['getRevision'](_0x290c9d);if(_0x38be80)this['_startingVersion']=_0x38be80[_0x23ba('0x56')],this[_0x23ba('0x72')]=!0x1;else{const _0x14db51=this[_0x23ba('0x5e')]['history'][_0x23ba('0x89')][_0x23ba('0x69')](_0x245260=>!_0x245260[_0x23ba('0x37')]),_0x529464=_0x14db51?_0x14db51['baseVersion']:this[_0x23ba('0x5e')][_0x23ba('0xa8')]['version'];_0x3fd9bb?(_0x3fd9bb[_0x23ba('0x14')]<_0x529464&&_0x3fd9bb['_update']({'toVersion':_0x529464}),this['_continueCurrentRevision']?(this[_0x23ba('0x5e')][_0x23ba('0xc7')]=()=>_0x4789be['id'],this[_0x23ba('0xea')]=_0x4789be['fromVersion']):(this[_0x23ba('0xea')]=_0x3fd9bb['toVersion'],this[_0x23ba('0x72')]=!0x1)):(this[_0x23ba('0xea')]=_0x529464,this[_0x23ba('0x72')]=!0x1);}}else _0x4789be&&(this[_0x23ba('0xb9')][_0x23ba('0x9b')][_0x23ba('0xe3')][_0x23ba('0xa8')][_0x23ba('0x9f')]=Math[_0x23ba('0x77')](_0x4789be['toVersion'],this[_0x23ba('0xb9')][_0x23ba('0x9b')][_0x23ba('0xe3')][_0x23ba('0xa8')][_0x23ba('0x9f')]),_0x4789be[_0x23ba('0x56')]===_0x4789be[_0x23ba('0x14')]?(0x0!==_0x4789be[_0x23ba('0x56')]&&(this[_0x23ba('0x5e')][_0x23ba('0xc7')]=()=>_0x4789be['id']),this[_0x23ba('0x72')]=!0x1):this['_continueCurrentRevision']&&(this['_source'][_0x23ba('0xc7')]=()=>_0x4789be['id'],this['_startingVersion']=_0x4789be['fromVersion'])),this[_0x23ba('0x72')]||(this[_0x23ba('0xea')]=this['editor'][_0x23ba('0x9b')]['document']['version']);this[_0x23ba('0xcc')]['init'](this[_0x23ba('0x5e')][_0x23ba('0xa8')]),this['_createInitialRevision'](this[_0x23ba('0xea')]),this[_0x23ba('0x6d')](this[_0x23ba('0xea')]),this['adapter']&&this[_0x23ba('0x58')]();}),this[_0x23ba('0x97')](_0x23ba('0x3c'))['to'](this,_0x23ba('0x9'),_0x1f948e=>!_0x1f948e);}async[_0x23ba('0x33')](){if(this[_0x23ba('0x6b')][_0x23ba('0x9a')]>0x0){const _0x446acb=this[_0x23ba('0x6b')][_0x23ba('0xa')](0x0),_0x81e6ae=await this['getRevisionDocumentData'](_0x446acb);this[_0x23ba('0xab')](_0x81e6ae);}}[_0x23ba('0x3f')](_0x1fdacb){this['_source']=_0x1fdacb;}async['update'](){const _0x363fec=await this[_0x23ba('0x5e')][_0x23ba('0x7b')]();if(_0x363fec>this['currentRevision'][_0x23ba('0x14')]){await this[_0x23ba('0x27')]();const _0x56f6fc=this['buildRevisionData']({'revision':this[_0x23ba('0xbd')],'to':_0x363fec});_0x56f6fc[_0x23ba('0x38')]=_0x56f6fc['authorsIds'][_0x23ba('0x3a')](_0x5c5fdc=>this[_0x23ba('0xb9')]['plugins'][_0x23ba('0x26')]('Users')[_0x23ba('0xb3')](_0x5c5fdc)),this[_0x23ba('0xbd')]['_update'](_0x56f6fc);}}async[_0x23ba('0x27')](){this[_0x23ba('0x72')]&&!this[_0x23ba('0x32')]&&(await this[_0x23ba('0x73')](this[_0x23ba('0xbd')]),this[_0x23ba('0xcc')][_0x23ba('0x30')](this[_0x23ba('0xbd')]),this[_0x23ba('0x32')]={'fromVersion':this['currentRevision'][_0x23ba('0x56')],'authors':this[_0x23ba('0xbd')][_0x23ba('0x38')]['slice']()});}async['saveRevision'](_0xa04770={},_0x13fbde=null){const _0x339228=[];await this[_0x23ba('0x27')](),this[_0x23ba('0x72')]=!0x1,_0x13fbde>this['currentRevision'][_0x23ba('0x14')]&&(_0x13fbde=null),null===_0x13fbde&&(_0x13fbde=await this[_0x23ba('0x5e')][_0x23ba('0x7b')]());const _0x336953=this[_0x23ba('0xc8')](_0x13fbde),_0x3e632b=this['buildRevisionData']({'from':_0x336953,'to':_0x13fbde});if(this[_0x23ba('0xbd')][_0x23ba('0x14')]<_0x13fbde){const _0xbb432b=this[_0x23ba('0x5c')]({'revision':this[_0x23ba('0xbd')],'from':_0x13fbde,'to':_0x13fbde});_0xbb432b[_0x23ba('0x38')]=[],_0xbb432b[_0x23ba('0x9c')]=[],_0xbb432b['id']=this['currentRevision']['id'],this[_0x23ba('0xbd')][_0x23ba('0x8d')](_0xbb432b,!0x0),delete _0xbb432b[_0x23ba('0x38')],_0x339228['push'](_0xbb432b);}_0xa04770['creatorId']=this[_0x23ba('0xb9')]['plugins'][_0x23ba('0x26')](_0x23ba('0xd9'))['me']['id'],_0xa04770[_0x23ba('0xc5')]=_0xa04770['name']||null,_0xa04770['id']=_0xa04770['id']||_0x20b1ec(),_0xa04770={..._0xa04770,..._0x3e632b};const _0x5c4e09=this[_0x23ba('0x55')](_0xa04770);_0x339228[_0x23ba('0x9d')](_0xa04770);const _0x3836e5=this['repository'][_0x23ba('0x91')](_0x5c4e09);if(0x0!==_0x3836e5){const _0x28764d=this[_0x23ba('0x6b')][_0x23ba('0xa')](_0x3836e5-0x1);if(_0x28764d['fromVersion']!==_0x13fbde){const _0x4cf470=this[_0x23ba('0xcc')][_0x23ba('0x6e')](_0x13fbde,_0x28764d['toVersion']),_0x5a079b={'id':_0x28764d['id'],'diffData':_0x4cf470[_0x23ba('0xef')],'authorsIds':_0x4cf470[_0x23ba('0x9c')],'authors':_0x4cf470['authorsIds'][_0x23ba('0x3a')](_0x46f53f=>this[_0x23ba('0xb9')][_0x23ba('0x2')][_0x23ba('0x26')]('Users')[_0x23ba('0xb3')](_0x46f53f)),'fromVersion':_0x13fbde};_0x28764d===this[_0x23ba('0xbd')]&&(_0x5a079b[_0x23ba('0x83')]=new Date(_0xa04770[_0x23ba('0x83')][_0x23ba('0x2a')]()+0xa)),_0x28764d['_update'](_0x5a079b,!0x0),delete _0x5a079b['authors'],_0x339228[_0x23ba('0x9d')](_0x5a079b);}}if(this[_0x23ba('0x2c')]){for(const _0x4d10f0 of _0x339228)this[_0x23ba('0xe0')](_0x4d10f0['id'],_0x4d10f0,!0x0);this[_0x23ba('0x58')]();}return _0x5c4e09;}[_0x23ba('0x55')](_0x17bfe0){const _0x5cad5c=this[_0x23ba('0x6b')]['createRevision'](_0x17bfe0);return this[_0x23ba('0x2c')]&&_0x5cad5c['on']('_update',(_0x5948d6,_0x556399,_0x3cd219)=>{_0x3cd219||(this[_0x23ba('0xe0')](_0x556399['id'],_0x556399,!0x0),this[_0x23ba('0x58')]());}),this['repository']['addRevision'](_0x5cad5c,this[_0x23ba('0x75')](_0x5cad5c)),_0x5cad5c;}async[_0x23ba('0xdb')](_0x11613f){await this[_0x23ba('0x73')](_0x11613f);const _0x4c1e74={};for(const _0x1fbc2f in _0x11613f[_0x23ba('0xef')]){const _0x21cee7=this[_0x23ba('0x23')](JSON['parse'](_0x11613f['diffData'][_0x1fbc2f][_0x23ba('0x74')])),_0x55976f=this['editor'][_0x23ba('0x25')][_0x23ba('0x20')][_0x23ba('0xe3')],_0x5c8e73=new _0x3f73e9(_0x55976f,_0x21cee7[_0x23ba('0x3a')](_0x140afa=>F(_0x140afa,this[_0x23ba('0xb9')])));this[_0x23ba('0xb9')][_0x23ba('0xb8')][_0x23ba('0xda')][_0x23ba('0x95')](_0x23ba('0xc9')),_0x4c1e74[_0x1fbc2f]=this[_0x23ba('0xb9')][_0x23ba('0xb8')]['processor'][_0x23ba('0xcb')](_0x5c8e73),this['editor']['data']['processor'][_0x23ba('0x95')](_0x23ba('0x2e'));}return _0x4c1e74;}[_0x23ba('0x58')](){if(0x0===this[_0x23ba('0x90')][_0x23ba('0xac')])return;if(this[_0x23ba('0x9')])return;let _0x922ab0=Array[_0x23ba('0x84')](this['_bufferedUpdates']['values']());this[_0x23ba('0x90')][_0x23ba('0x1b')]();for(let _0x28998b=0x0;_0x28998b<_0x922ab0['length'];_0x28998b++){const _0x24eb62=_0x922ab0[_0x28998b];let _0x4419d7=!0x1;for(const _0x423759 of Object['keys'](_0x24eb62))void 0x0===_0x24eb62[_0x423759]?delete _0x24eb62[_0x423759]:'id'!==_0x423759&&(_0x4419d7=!0x0);_0x4419d7||(_0x922ab0[_0x28998b]=null);}if(_0x922ab0=_0x922ab0['filter'](_0x4eb51a=>null!==_0x4eb51a),!_0x922ab0['length'])return;for(let _0x32537b=0x0;_0x32537b<_0x922ab0['length'];_0x32537b++){const _0x3e717f=_0x922ab0[_0x32537b];void 0x0!==_0x3e717f[_0x23ba('0x56')]&&void 0x0===_0x3e717f['toVersion']&&(_0x3e717f[_0x23ba('0x14')]=this[_0x23ba('0x6b')][_0x23ba('0xa')](_0x3e717f['id'])[_0x23ba('0x14')]),void 0x0!==_0x3e717f[_0x23ba('0x14')]&&void 0x0===_0x3e717f[_0x23ba('0x56')]&&(_0x3e717f[_0x23ba('0x56')]=this[_0x23ba('0x6b')]['getRevision'](_0x3e717f['id'])[_0x23ba('0x56')]);}const _0xd47d60=this[_0x23ba('0xb9')][_0x23ba('0x59')][_0x23ba('0x26')](_0x23ba('0x40'));this[_0x23ba('0x9')]=!0x0,this[_0x23ba('0xdd')](),this[_0x23ba('0x2c')][_0x23ba('0x98')](_0x922ab0,_0xd47d60)[_0x23ba('0xc6')](()=>{this[_0x23ba('0x9')]=!0x1;})[_0x23ba('0x1')](_0x12499a=>{if(_0x12499a)for(const _0x389d32 of _0x12499a)this['setRevisionData']({'id':_0x389d32['id'],'createdAt':_0x389d32[_0x23ba('0x83')]});this[_0x23ba('0x52')](),this[_0x23ba('0x58')]();});}[_0x23ba('0xab')](_0x48a6fc){let _0x4286fc=this['editor'][_0x23ba('0x59')]['get']('initialData');if(void 0x0===_0x4286fc){_0x4286fc={};for(const _0x39e45d of this['editor'][_0x23ba('0x9b')][_0x23ba('0xe3')][_0x23ba('0xf4')]())_0x4286fc[_0x39e45d]='';}_0x23ba('0x7c')==typeof _0x4286fc&&(_0x4286fc={'main':_0x4286fc});let _0x1fd275=!0x1;for(const _0x9a16d4 of Object[_0x23ba('0x34')](_0x4286fc))_0x48a6fc[_0x9a16d4]&&(_0x4286fc[_0x9a16d4]!==_0x48a6fc[_0x9a16d4]&&''!==_0x4286fc[_0x9a16d4][_0x23ba('0x70')]()&&(_0x1fd275=!0x0),_0x4286fc[_0x9a16d4]=_0x48a6fc[_0x9a16d4]);_0x1fd275&&_0x2d0833(_0x23ba('0x7f')),this[_0x23ba('0xb9')][_0x23ba('0x59')]['set'](_0x23ba('0x31'),_0x4286fc);}[_0x23ba('0xdd')](){if(!this['_pendingAction']){const _0x3bb858=this[_0x23ba('0xb9')][_0x23ba('0x2')][_0x23ba('0x26')](_0x23ba('0xbf'));this[_0x23ba('0xed')]=_0x3bb858[_0x23ba('0xe6')](_0x25704c(this[_0x23ba('0xb9')][_0x23ba('0x17')],_0x23ba('0x51')));}}[_0x23ba('0x52')](){this['_pendingAction']&&(this[_0x23ba('0xb9')][_0x23ba('0x2')]['get'](_0x23ba('0xbf'))[_0x23ba('0x61')](this[_0x23ba('0xed')]),this[_0x23ba('0xed')]=null);}[_0x23ba('0x75')](_0x5be0c0){const _0x40aecc=this[_0x23ba('0x6b')][_0x23ba('0x35')]();_0x40aecc[_0x23ba('0x4d')]();let _0x2590d4=0x0;for(;_0x2590d4<_0x40aecc[_0x23ba('0x9a')];){const _0x314720=_0x40aecc[_0x2590d4];if(_0x314720===this[_0x23ba('0xbd')]){_0x2590d4++;continue;}if(_0x314720['id']===this[_0x23ba('0xaf')])break;const _0x3484c5=_0x5be0c0[_0x23ba('0x14')]-_0x314720[_0x23ba('0x14')]||_0x5be0c0[_0x23ba('0x56')]-_0x314720['fromVersion'];if(_0x3484c5>0x0)break;if(_0x3484c5<0x0)_0x2590d4++;else{if(!_0x5be0c0['creator']&&_0x314720[_0x23ba('0x46')])break;if(_0x314720[_0x23ba('0x46')]||!_0x5be0c0[_0x23ba('0x46')]){if(_0x5be0c0[_0x23ba('0x83')]>_0x314720[_0x23ba('0x83')])break;_0x2590d4++;}else _0x2590d4++;}}return _0x2590d4;}['setRevisionData'](_0x2b6e5e){const _0x1f085d=this['repository'][_0x23ba('0xa')](_0x2b6e5e['id']);if(_0x2b6e5e['createdAt']&&(_0x2b6e5e[_0x23ba('0x83')]=new Date(_0x2b6e5e['createdAt'])),_0x2b6e5e[_0x23ba('0x9c')]){const _0x64a2d7=this[_0x23ba('0xb9')][_0x23ba('0x2')][_0x23ba('0x26')](_0x23ba('0xd9'));_0x2b6e5e[_0x23ba('0x38')]=_0x2b6e5e[_0x23ba('0x9c')][_0x23ba('0x3a')](_0x3a7337=>_0x64a2d7['getUser'](_0x3a7337));}_0x1f085d[_0x23ba('0x8d')](_0x2b6e5e,!0x0);}[_0x23ba('0x5c')]({revision:_0x5e9dd2=null,from:_0x7405ed=null,to:_0x419076=null}){_0x7405ed=null!==_0x7405ed?_0x7405ed:_0x5e9dd2[_0x23ba('0x56')],_0x419076=null!==_0x419076?_0x419076:_0x5e9dd2[_0x23ba('0x14')];const _0x5599af=this['_revisionDataBuilder'][_0x23ba('0x6e')](_0x7405ed,_0x419076),_0x5c3a65={'diffData':_0x5599af[_0x23ba('0xef')],'authorsIds':_0x5599af[_0x23ba('0x9c')],'fromVersion':_0x7405ed,'toVersion':_0x419076};if(!_0x5e9dd2||_0x419076!==_0x5e9dd2[_0x23ba('0x14')]){const _0x5700ef=_0x419076-0x1,_0x29b913=this['_source'][_0x23ba('0xa8')][_0x23ba('0xcf')](_0x5700ef);_0x5c3a65[_0x23ba('0x83')]=_0x29b913&&_0x29b913[_0x23ba('0x83')]||new Date();}if(this[_0x23ba('0x32')]&&_0x7405ed===this[_0x23ba('0x32')][_0x23ba('0x56')])for(const _0x2bf69a of this[_0x23ba('0x32')][_0x23ba('0x38')])_0x5c3a65[_0x23ba('0x9c')][_0x23ba('0x42')](_0x2bf69a['id'])||_0x5c3a65[_0x23ba('0x9c')][_0x23ba('0x9d')](_0x2bf69a['id']);return _0x5c3a65;}[_0x23ba('0x73')](_0x3a8b14){if(!_0x3a8b14||_0x3a8b14[_0x23ba('0xef')])return Promise[_0x23ba('0xbc')]();{const _0x94c6fd=this[_0x23ba('0xb9')][_0x23ba('0x59')][_0x23ba('0x26')](_0x23ba('0x40'));return this[_0x23ba('0x2c')][_0x23ba('0xa')]({'channelId':_0x94c6fd,'revisionId':_0x3a8b14['id']})[_0x23ba('0x1')](_0x519312=>{_0x3a8b14[_0x23ba('0xef')]=_0x519312[_0x23ba('0xef')];});}}['_bufferUpdate'](_0x19ab8c,_0x5000e6,_0x3510f5){if(this['_bufferedUpdates'][_0x23ba('0x93')](_0x19ab8c)){const _0x4a4391=this['_bufferedUpdates']['get'](_0x19ab8c);_0x5000e6=_0x3510f5?{..._0x4a4391,..._0x5000e6}:{..._0x5000e6,..._0x4a4391};}this['_bufferedUpdates'][_0x23ba('0xa1')](_0x19ab8c,_0x5000e6);}[_0x23ba('0xc8')](_0x259e2b){const _0x15c87e=this[_0x23ba('0x6b')][_0x23ba('0x35')]();_0x15c87e[_0x23ba('0x4d')](),_0x15c87e[_0x23ba('0x81')]();const _0x19f865=_0x15c87e[_0x23ba('0x69')](_0x490acc=>_0x490acc[_0x23ba('0x14')]<=_0x259e2b)[_0x23ba('0x14')];return _0x19f865<this['_startingVersion']?this[_0x23ba('0xea')]:_0x19f865;}[_0x23ba('0x5d')](_0x519e06){const _0x311db1=this['repository'][_0x23ba('0xa')](this[_0x23ba('0x6b')]['length']-0x1);if(_0x311db1)this[_0x23ba('0xaf')]=_0x311db1['id'];else{const _0x39454c=!this[_0x23ba('0xb9')]['model'][_0x23ba('0xe3')][_0x23ba('0x15')][_0x23ba('0x69')](_0x3fc1d2=>this[_0x23ba('0xb9')][_0x23ba('0x9b')][_0x23ba('0xd6')](_0x3fc1d2)),_0x39abc8=this[_0x23ba('0xb9')][_0x23ba('0x2')]['get'](_0x23ba('0xd9'))['me']['id'],_0x14decf=_0x25704c(this[_0x23ba('0xb9')]['locale'],_0x39454c?_0x23ba('0x7'):'Initial\x20revision');this[_0x23ba('0x4f')]({'from':_0x519e06,'to':_0x519e06,'id':this[_0x23ba('0xaf')],'name':_0x14decf,'creatorId':_0x39abc8});}}[_0x23ba('0x6d')](_0x5d87ff){const _0x2dee18=this[_0x23ba('0x5e')][_0x23ba('0xc7')]();this['currentRevision']=this[_0x23ba('0x6b')][_0x23ba('0xa')](_0x2dee18),this['currentRevision']||(this[_0x23ba('0xbd')]=this[_0x23ba('0x4f')]({'from':_0x5d87ff,'to':_0x5d87ff,'id':_0x2dee18,'name':'','creatorId':null}));}[_0x23ba('0x4f')]({name:_0x20cef2,from:_0x407f83,to:_0x43eaaa,creatorId:_0xe8ba66,id:_0x3c7d01}){const _0x3b5a90=this[_0x23ba('0x5c')]({'from':_0x407f83,'to':_0x43eaaa});_0x3b5a90[_0x23ba('0xc5')]=_0x20cef2,_0x3b5a90[_0x23ba('0x45')]=_0xe8ba66,_0x3b5a90['id']=_0x3c7d01;const _0x2c1a74=this[_0x23ba('0x55')](_0x3b5a90);return this[_0x23ba('0x2c')]&&this[_0x23ba('0xe0')](_0x3b5a90['id'],_0x3b5a90,!0x0),_0x2c1a74;}[_0x23ba('0x44')](){this[_0x23ba('0xb9')][_0x23ba('0xce')][_0x23ba('0x8a')]('dataDowncast')['markerToData']({'model':_0x23ba('0xe7')});}[_0x23ba('0x23')](_0x563271){return(_0x563271=_0x563271[_0x23ba('0xe2')](_0x1de5fc=>!_0x1de5fc[_0x23ba('0xc5')]||_0x23ba('0xe4')!==_0x1de5fc[_0x23ba('0xc5')]&&_0x23ba('0x7e')!==_0x1de5fc[_0x23ba('0xc5')]))[_0x23ba('0x2f')](_0x356012=>{'string'!=typeof _0x356012&&(_0x356012[_0x23ba('0x88')]=this[_0x23ba('0x23')](_0x356012[_0x23ba('0x88')]),_0x356012[_0x23ba('0x48')]=_0x356012[_0x23ba('0x48')][_0x23ba('0xe2')](_0x59a275=>!_0x59a275[0x0][_0x23ba('0x21')](_0x23ba('0x6a'))));}),_0x563271;}}function F(_0x2f95fd,_0x24526a){const _0x580e47=_0x24526a[_0x23ba('0x25')][_0x23ba('0x20')][_0x23ba('0xe3')];if(_0x23ba('0x7c')==typeof _0x2f95fd)return new _0x26ed65(_0x580e47,_0x2f95fd);{const _0x3297f6=_0x2f95fd[_0x23ba('0x88')][_0x23ba('0x3a')](_0x4b6690=>F(_0x4b6690,_0x24526a));return new(V[_0x2f95fd['type']]||_0x3f6c7f)(_0x580e47,_0x2f95fd['name'],_0x2f95fd[_0x23ba('0x48')],_0x3297f6);}}class T{constructor(_0x589ec2){this['editor']=_0x589ec2,this[_0x23ba('0x8e')]=new Map(),this[_0x23ba('0x63')]=-0x1,this['_lastTo']=-0x1,this[_0x23ba('0x11')]=new Map(),this[_0x23ba('0x4a')]=new Map(),this['_baseRoots']=new Map(),this[_0x23ba('0x65')]=new Map(),this['_baseIdsRoots']=new Map(),this[_0x23ba('0x87')]=new Map(),this[_0x23ba('0x68')]=new Map(),this[_0x23ba('0xec')]=0x1,this[_0x23ba('0xcd')]=this[_0x23ba('0xb9')][_0x23ba('0x9b')][_0x23ba('0xe3')]['getRootNames'](),this[_0x23ba('0xcd')][_0x23ba('0x9d')]('$graveyard');}[_0x23ba('0x41')](_0x455bb8){this['source']=_0x455bb8;const _0x22c551=new Map();for(const _0x5a34a of this['_rootNames']){const _0x2ce3ee=J(this[_0x23ba('0xb9')][_0x23ba('0x9b')][_0x23ba('0xe3')][_0x23ba('0x22')](_0x5a34a));_0x22c551[_0x23ba('0xa1')](_0x5a34a,_0x2ce3ee);}const _0x1d40f2=Array[_0x23ba('0x84')](this['editor'][_0x23ba('0x9b')]['markers'])[_0x23ba('0x3a')](_0x583f80=>[_0x583f80[_0x23ba('0xc5')],_0x583f80[_0x23ba('0xa7')]()]),_0x3b4232=this[_0x23ba('0x54')][_0x23ba('0x9f')];this[_0x23ba('0xe5')](_0x3b4232,_0x22c551,_0x1d40f2),this[_0x23ba('0x5b')]=this[_0x23ba('0xec')];}[_0x23ba('0x6e')](_0x5dcdb1,_0x2f325a){if(this['_lastFrom']===_0x5dcdb1&&this[_0x23ba('0x7a')]<=_0x2f325a)this[_0x23ba('0x8e')][_0x23ba('0xac')]>0x1&&this[_0x23ba('0xb6')](this[_0x23ba('0x7a')]),this[_0x23ba('0x50')](this['_lastTo'],_0x2f325a,!0x0);else{if(!this[_0x23ba('0x8e')][_0x23ba('0x93')](_0x5dcdb1)){const _0x471c8b=this[_0x23ba('0x10')](_0x5dcdb1);this['_calculateMetaData'](_0x471c8b,_0x5dcdb1,!0x1);}this['_calculateMetaData'](_0x5dcdb1,_0x2f325a,!0x0);}return this[_0x23ba('0x63')]=_0x5dcdb1,this[_0x23ba('0x7a')]=_0x2f325a,this[_0x23ba('0xa2')]();}[_0x23ba('0x30')](_0x46ca8f){this[_0x23ba('0x19')](),this[_0x23ba('0x63')]=_0x46ca8f[_0x23ba('0x56')],this[_0x23ba('0x7a')]=_0x46ca8f[_0x23ba('0x14')];for(const _0x1fa5f9 in _0x46ca8f['diffData']){const _0x579f9f=this['_makeModelFromViewString'](_0x46ca8f['diffData'][_0x1fa5f9][_0x23ba('0xc')]);_0x579f9f['rootName']=_0x1fa5f9,this[_0x23ba('0x94')][_0x23ba('0xa1')](_0x1fa5f9,_0x579f9f);const _0x1a639b=this[_0x23ba('0xc3')](_0x579f9f);this['_baseIdsRoots'][_0x23ba('0xa1')](_0x1fa5f9,_0x1a639b);for(const [_0x1d87be,_0x4d74fa]of _0x579f9f['markers']){if(!_0x1d87be[_0x23ba('0x21')](_0x23ba('0x7d')))continue;const _0x3aed3d=_0x1d87be[_0x23ba('0xd7')](':')[0x2];for(const _0x1fb0b8 of _0x4d74fa[_0x23ba('0x5')]({'singleCharacters':!0x0})){const _0x101ff6=this[_0x23ba('0xa5')](_0x1fb0b8),_0x4982ee='elementEnd'==_0x1fb0b8[_0x23ba('0x43')]?_0x1fb0b8[_0x23ba('0xeb')][_0x23ba('0xe9')][_0x23ba('0x8c')](0x0,-0x1):_0x1fb0b8[_0x23ba('0xeb')][_0x23ba('0xe9')],_0x31bb7a=_0x1a639b[_0x23ba('0xa3')](_0x4982ee)[_0x23ba('0x62')](_0x101ff6);this[_0x23ba('0x87')][_0x23ba('0xa1')](_0x31bb7a,{'userId':_0x3aed3d});}}}this[_0x23ba('0x5b')]=this[_0x23ba('0xec')];const _0x21e610=[...Array(this[_0x23ba('0xec')])['keys']()][_0x23ba('0x8c')](0x1)['filter'](_0xcd5278=>!this[_0x23ba('0x87')][_0x23ba('0x93')](_0xcd5278));let _0x355ba4=0x0;for(const _0x163521 in _0x46ca8f[_0x23ba('0xef')]){const _0x379f80=this[_0x23ba('0xd5')](_0x46ca8f[_0x23ba('0xef')][_0x163521][_0x23ba('0x74')]);_0x379f80['rootName']=_0x163521,this['_diffRoots']['set'](_0x163521,_0x379f80);const _0x3bdd43=this['_makeIdsRoot'](_0x379f80,Number[_0x23ba('0xaa')]);this[_0x23ba('0x65')][_0x23ba('0xa1')](_0x163521,_0x3bdd43);for(const [_0xf70532,_0x57b146]of _0x379f80[_0x23ba('0x24')]){if(!_0xf70532[_0x23ba('0x21')](_0x23ba('0x7d')))continue;const _0x1f3334=_0xf70532[_0x23ba('0xd7')](':')[0x2];for(const _0x51ac70 of _0x57b146['getWalker']({'singleCharacters':!0x0})){const _0x538cc2=this[_0x23ba('0xa5')](_0x51ac70),_0x4a124c=this[_0x23ba('0xec')]++,_0x50d772=_0x23ba('0x5f')==_0x51ac70['type']?_0x51ac70[_0x23ba('0xeb')][_0x23ba('0xe9')][_0x23ba('0x8c')](0x0,-0x1):_0x51ac70[_0x23ba('0xeb')][_0x23ba('0xe9')];_0x3bdd43['getNodeByPath'](_0x50d772)[_0x23ba('0x8f')](_0x538cc2,_0x4a124c),this[_0x23ba('0x87')][_0x23ba('0xa1')](_0x4a124c,{'userId':_0x1f3334});}}for(const _0x1a80af of this[_0x23ba('0xb9')][_0x23ba('0x9b')]['createRangeIn'](_0x379f80)['getWalker']({'singleCharacters':!0x0})){const _0x4f84c6=this[_0x23ba('0xa5')](_0x1a80af),_0x5e1dc9=_0x23ba('0x5f')==_0x1a80af[_0x23ba('0x43')]?_0x1a80af[_0x23ba('0xeb')][_0x23ba('0xe9')][_0x23ba('0x8c')](0x0,-0x1):_0x1a80af[_0x23ba('0xeb')][_0x23ba('0xe9')],_0x47504f=_0x3bdd43[_0x23ba('0xa3')](_0x5e1dc9);_0x47504f[_0x23ba('0x62')](_0x4f84c6)>0x0||_0x47504f[_0x23ba('0x8f')](_0x4f84c6,_0x21e610[_0x355ba4++]);}const _0x113327=new _0x19b136();_0x113327[_0x23ba('0xd3')]=_0x23ba('0x49'),this[_0x23ba('0x94')][_0x23ba('0xa1')]('$graveyard',_0x113327),this[_0x23ba('0x60')][_0x23ba('0xa1')](_0x23ba('0x49'),this['_makeIdsRoot'](_0x113327,0x1));const _0x4614c2=new _0x19b136();_0x4614c2['rootName']=_0x23ba('0x49'),this['_diffRoots'][_0x23ba('0xa1')](_0x23ba('0x49'),_0x4614c2),this[_0x23ba('0x65')][_0x23ba('0xa1')](_0x23ba('0x49'),this[_0x23ba('0xc3')](_0x4614c2,0x1));for(const [_0x515e1f,_0x5d0ff8]of _0x379f80[_0x23ba('0x24')])_0x515e1f['startsWith'](_0x23ba('0x7d'))||this[_0x23ba('0x11')][_0x23ba('0xa1')](_0x515e1f,_0x5d0ff8);}const _0x542044=Array[_0x23ba('0x84')](this[_0x23ba('0x4a')])[_0x23ba('0x3a')](([_0x1e5a2a,_0xa07a10])=>[_0x1e5a2a,J(_0xa07a10)]);this[_0x23ba('0xe5')](this[_0x23ba('0x7a')],_0x542044,this[_0x23ba('0x11')]);}[_0x23ba('0xd5')](_0x1ccede){const _0x50d3f0=JSON[_0x23ba('0x18')](_0x1ccede),_0x559a60=this[_0x23ba('0xb9')]['editing'][_0x23ba('0x20')][_0x23ba('0xe3')],_0xdbef9b=new _0x3f73e9(_0x559a60,_0x50d3f0[_0x23ba('0x3a')](_0x14fc3c=>F(_0x14fc3c,this[_0x23ba('0xb9')])));return this[_0x23ba('0xb9')][_0x23ba('0xb8')][_0x23ba('0x29')](_0xdbef9b);}['_saveEmptyMetaData'](){const _0x57d292=new Map();for(const _0x3350fb of this[_0x23ba('0xcd')]){const _0x1e6ae6=new _0x19b136();_0x1e6ae6[_0x23ba('0xd3')]=_0x3350fb,_0x57d292[_0x23ba('0xa1')](_0x3350fb,_0x1e6ae6);}this[_0x23ba('0xe5')](Number[_0x23ba('0xaa')],_0x57d292,[]);}[_0x23ba('0xe5')](_0x16ac55,_0x29bdf8,_0x3ece57){const _0x3ab914=new Map(_0x29bdf8),_0x7dbdd2=new Map();for(const [_0x1dea37,_0x29d05d]of _0x3ece57)_0x7dbdd2[_0x23ba('0xa1')](_0x1dea37,{'start':_0x29d05d[_0x23ba('0x1d')][_0x23ba('0xb')](),'end':_0x29d05d[_0x23ba('0x99')]['clone'](),'rootName':_0x29d05d[_0x23ba('0xd4')][_0x23ba('0xd3')]});this[_0x23ba('0x8e')][_0x23ba('0xa1')](_0x16ac55,{'roots':_0x3ab914,'markers':_0x7dbdd2});}[_0x23ba('0xb6')](_0x26ff2e){this[_0x23ba('0x8e')]['delete'](_0x26ff2e);}['reInit'](){this['_reset'](),this[_0x23ba('0x63')]=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this[_0x23ba('0x41')](this[_0x23ba('0x54')]);}['_reset'](){this[_0x23ba('0x87')][_0x23ba('0x1b')](),this['_touchedMarkers'][_0x23ba('0x1b')](),this[_0x23ba('0x4a')][_0x23ba('0x1b')](),this[_0x23ba('0x94')][_0x23ba('0x1b')](),this[_0x23ba('0x65')][_0x23ba('0x1b')](),this[_0x23ba('0x60')]['clear'](),this[_0x23ba('0x11')][_0x23ba('0x1b')](),this[_0x23ba('0xec')]=0x1,this[_0x23ba('0x5b')]=this[_0x23ba('0xec')];}['_makeIdsRoot'](_0x1ac9a1,_0x3c60a3=null){let _0x587def=null;_0x1ac9a1['is']('documentFragment')||(_0x587def=new _0x463cd8(_0x1ac9a1[_0x23ba('0xc5')],{'vid_start':null===_0x3c60a3?this[_0x23ba('0xec')]++:_0x3c60a3++}));const _0x27257a=[];for(const _0x50f63f of _0x1ac9a1['getChildren']())if(_0x50f63f['is']('element')){_0x27257a[_0x23ba('0x9d')](this['_makeIdsRoot'](_0x50f63f,_0x3c60a3));const _0xb22d93=_0x27257a[_0x27257a[_0x23ba('0x9a')]-0x1];null!==_0x3c60a3&&(_0x3c60a3=_0xb22d93['is'](_0x23ba('0x28'),_0x23ba('0xe'))?_0xb22d93[_0x23ba('0x62')]('vid')+0x1:_0xb22d93[_0x23ba('0x62')](_0x23ba('0x1e'))+0x1);}else for(let _0x30d92a=0x0;_0x30d92a<_0x50f63f[_0x23ba('0xdc')];_0x30d92a++)_0x27257a[_0x23ba('0x9d')](new _0x463cd8(_0x23ba('0xe'),{'vid':null===_0x3c60a3?this['_revisionId']++:_0x3c60a3++}));if(_0x1ac9a1['is'](_0x23ba('0xd8'))){const _0x1548a8=new _0x19b136(_0x27257a);return _0x1548a8['rootName']=_0x1ac9a1[_0x23ba('0xd3')],_0x1548a8;}return _0x587def[_0x23ba('0x8f')](_0x23ba('0x1e'),null===_0x3c60a3?this[_0x23ba('0xec')]++:_0x3c60a3++),_0x587def[_0x23ba('0xd1')](0x0,_0x27257a),_0x587def;}[_0x23ba('0xb7')](_0x1d4e94,_0xb50eb4,_0x150cee){this[_0x23ba('0x19')]();const {roots:_0x9a4f9c,markers:_0x2af9c2}=this[_0x23ba('0x8e')][_0x23ba('0x26')](_0x1d4e94);this[_0x23ba('0x94')]=new Map(_0x9a4f9c);for(const [_0x320299,_0x30aad4]of this[_0x23ba('0x94')])if('$graveyard'!==_0x320299&&(this[_0x23ba('0x4a')][_0x23ba('0xa1')](_0x320299,J(_0x30aad4)),_0x150cee)){const _0x1cdabe=this[_0x23ba('0xec')];this[_0x23ba('0x65')][_0x23ba('0xa1')](_0x320299,this[_0x23ba('0xc3')](_0x30aad4)),this[_0x23ba('0x60')][_0x23ba('0xa1')](_0x320299,this[_0x23ba('0xc3')](_0x30aad4,_0x1cdabe));}this[_0x23ba('0x5b')]=this[_0x23ba('0xec')],this[_0x23ba('0x4a')][_0x23ba('0xa1')](_0x23ba('0x49'),J(this[_0x23ba('0x94')][_0x23ba('0x26')](_0x23ba('0x49')))),_0x150cee&&this[_0x23ba('0x65')][_0x23ba('0xa1')](_0x23ba('0x49'),this['_makeIdsRoot'](this[_0x23ba('0x94')][_0x23ba('0x26')](_0x23ba('0x49'))));for(const [_0x38b93b,_0x185769]of _0x2af9c2){const _0x19bd03=this[_0x23ba('0x94')][_0x23ba('0x26')](_0x185769[_0x23ba('0xd3')]),_0x2929f3=this[_0x23ba('0x4a')][_0x23ba('0x26')](_0x185769['rootName']),_0x3fd7f5=new _0x1e150f(this['_fixPosition'](_0x185769[_0x23ba('0x1d')],_0x19bd03),this[_0x23ba('0x64')](_0x185769[_0x23ba('0x99')],_0x19bd03)),_0x16f403=this[_0x23ba('0x13')](_0x3fd7f5,_0x2929f3);_0x19bd03[_0x23ba('0x24')][_0x23ba('0xa1')](_0x38b93b,_0x3fd7f5),this[_0x23ba('0x11')][_0x23ba('0xa1')](_0x38b93b,_0x16f403);}this[_0x23ba('0x50')](_0x1d4e94,_0xb50eb4,_0x150cee);}[_0x23ba('0x50')](_0x455bbf,_0x243b00,_0x135356){for(const _0x138d6a of this[_0x23ba('0x54')][_0x23ba('0xc0')](_0x455bbf,_0x243b00))this[_0x23ba('0x5a')](_0x138d6a,_0x135356);for(const _0xcc4973 of this[_0x23ba('0x4a')][_0x23ba('0x36')]())_0xcc4973[_0x23ba('0x24')][_0x23ba('0x1b')]();for(const [_0x153994,_0x3c6bb5]of this[_0x23ba('0x11')]){this[_0x23ba('0x4a')][_0x23ba('0x26')](_0x3c6bb5[_0x23ba('0xd4')][_0x23ba('0xd3')])['markers'][_0x23ba('0xa1')](_0x153994,_0x3c6bb5[_0x23ba('0xb')]());}this[_0x23ba('0xe5')](_0x243b00,Array[_0x23ba('0x84')](this[_0x23ba('0x4a')])[_0x23ba('0x3a')](([_0x12db68,_0x2f4b9b])=>[_0x12db68,J(_0x2f4b9b)]),this[_0x23ba('0x11')]);}[_0x23ba('0x10')](_0x4361a5){const _0x1914da=Array[_0x23ba('0x84')](this[_0x23ba('0x8e')][_0x23ba('0x34')]());_0x1914da[_0x23ba('0xb0')]((_0x3fa1ab,_0x9f24c8)=>_0x3fa1ab-_0x9f24c8),_0x1914da[_0x23ba('0x4d')]();for(const _0x4592a7 of _0x1914da)if(_0x4592a7<_0x4361a5)return _0x4592a7;return this[_0x23ba('0xf5')](),Number[_0x23ba('0xaa')];}['_copyMarkers'](_0x17aa32,_0x14f60b){const _0xf09bbb=Array[_0x23ba('0x84')](_0x14f60b[_0x23ba('0x24')])[_0x23ba('0x3a')](([_0x4e60f2,_0x78901d])=>[_0x4e60f2,this[_0x23ba('0x13')](_0x78901d,_0x17aa32)]);_0x17aa32[_0x23ba('0x24')]=new Map(_0xf09bbb);}['_transformMarkers'](_0x2d9e41){for(const _0x5dcba4 of this[_0x23ba('0x11')][_0x23ba('0x36')]()){const _0x2b69be=_0x5dcba4[_0x23ba('0xe1')](_0x2d9e41),_0x4f16a2=_0x1e150f[_0x23ba('0x78')](_0x2b69be);_0x5dcba4[_0x23ba('0x1d')]=_0x4f16a2[_0x23ba('0x1d')],_0x5dcba4[_0x23ba('0x99')]=_0x4f16a2[_0x23ba('0x99')];}}['_handleOperation'](_0x228551,_0x1fc61d){const _0x497c4d=this[_0x23ba('0x80')](_0x228551,this[_0x23ba('0x4a')]);if(_0x23ba('0x2b')!==_0x228551[_0x23ba('0x43')]&&(_0x497c4d[_0x23ba('0x1a')](),this['_transformMarkers'](_0x497c4d)),_0x1fc61d)switch(_0x497c4d[_0x23ba('0x43')]){case _0x23ba('0x53'):this[_0x23ba('0x76')](_0x228551);break;case _0x23ba('0x47'):case _0x23ba('0x61'):case _0x23ba('0xd0'):this['_handleMoveOperation'](_0x228551);break;case'merge':this[_0x23ba('0xf')](_0x228551);break;case _0x23ba('0xd7'):this[_0x23ba('0xf1')](_0x228551);break;case _0x23ba('0x2b'):this[_0x23ba('0xee')](_0x228551);}}[_0x23ba('0x80')](_0xcf7a8c,_0x2283ab){const _0x417d7f=_0xcf7a8c[_0x23ba('0xb')]();return _0x417d7f['_authorId']=_0xcf7a8c['_authorId'],this['_fixOperation'](_0x417d7f,_0x2283ab),_0x417d7f;}[_0x23ba('0xad')](_0xae8c34){return _0xae8c34['map'](_0x12e9c9=>{const _0xf7df97=this['_getVidAttributeName'](_0x12e9c9);return Number(_0x12e9c9['item']['getAttribute'](_0xf7df97));});}[_0x23ba('0x6c')](_0x3a8a03,_0x4587ec){if(_0x3a8a03['is'](_0x23ba('0x28'),_0x23ba('0xe')))_0x4587ec[_0x23ba('0x9d')]({'item':_0x3a8a03,'type':_0x23ba('0xb5')});else{_0x3a8a03['is']('element')&&_0x4587ec[_0x23ba('0x9d')]({'item':_0x3a8a03,'type':'elementStart'});for(const _0x2fdf05 of _0x3a8a03[_0x23ba('0xd2')]())this[_0x23ba('0x6c')](_0x2fdf05,_0x4587ec);_0x3a8a03['is'](_0x23ba('0x28'))&&_0x4587ec['push']({'item':_0x3a8a03,'type':'elementEnd'});}return _0x4587ec;}['_getState'](){const _0x1d2df5=this[_0x23ba('0xb9')][_0x23ba('0x9b')]['document'][_0x23ba('0xf4')](),_0x3a6a8b=new Map(this['_touched']),_0x11de35=new Map(_0x3a6a8b),_0x5690ad=new Map(),_0x15e017={'insertions':{},'deletions':{}},_0x1d4993={'insertions':{},'deletions':{}},_0x316727=new Map();for(const _0x55eb0e of _0x1d2df5){const _0xce6d18=this[_0x23ba('0x4a')]['get'](_0x55eb0e),_0x3df043=this[_0x23ba('0x94')][_0x23ba('0x26')](_0x55eb0e);_0x15e017[_0x23ba('0x74')][_0x55eb0e]=J(_0xce6d18),_0x15e017[_0x23ba('0xc')][_0x55eb0e]=J(_0x3df043),this[_0x23ba('0x39')](_0x15e017[_0x23ba('0xc')][_0x55eb0e],_0x3df043),this[_0x23ba('0x39')](_0x15e017[_0x23ba('0x74')][_0x55eb0e],_0xce6d18),_0x1d4993['insertions'][_0x55eb0e]=this[_0x23ba('0x6c')](this['_idsRoots'][_0x23ba('0x26')](_0x55eb0e),[]),_0x1d4993[_0x23ba('0xc')][_0x55eb0e]=this[_0x23ba('0x6c')](this[_0x23ba('0x60')]['get'](_0x55eb0e),[]);}for(const _0xc8dd4d of _0x1d2df5){const _0x2d31ac=_0x1d4993['insertions'][_0xc8dd4d];for(const _0x1601ae of _0x2d31ac){const _0x3aea09=this['_getVidAttributeName'](_0x1601ae),_0x20c399=_0x1601ae[_0x23ba('0xf2')][_0x23ba('0x62')](_0x3aea09);_0x11de35['delete'](_0x20c399),_0x20c399>=this[_0x23ba('0x5b')]&&_0x5690ad[_0x23ba('0xa1')](_0x20c399,_0x3a6a8b[_0x23ba('0x26')](_0x20c399));}}for(const _0x549c88 of _0x1d2df5){const _0x554099=_0x1d4993[_0x23ba('0x74')][_0x549c88],_0x5f05da=this[_0x23ba('0xad')](_0x1d4993[_0x23ba('0xc')][_0x549c88]);let _0x823c3b=0x0;for(const _0x4187f5 of _0x554099){const _0xfd84a=this[_0x23ba('0xa5')](_0x4187f5),_0x400aa6=_0x4187f5['item'][_0x23ba('0x62')](_0xfd84a);if(!_0x5690ad[_0x23ba('0x93')](_0x400aa6)&&!_0x316727[_0x23ba('0x93')](_0x400aa6)){if(_0x11de35['has'](_0x400aa6))_0x823c3b++;else{if(_0x400aa6!=_0x5f05da[_0x823c3b]){const _0x28bf44=_0x3a6a8b[_0x23ba('0x26')](_0x400aa6)||_0x3a6a8b[_0x23ba('0x26')](_0x5f05da[_0x823c3b]);for(;_0x400aa6!=_0x5f05da[_0x823c3b];)_0x11de35['has'](_0x5f05da[_0x823c3b])||(_0x316727[_0x23ba('0xa1')](_0x5f05da[_0x823c3b],_0x28bf44),_0x3a6a8b[_0x23ba('0xa1')](_0x5f05da[_0x823c3b],_0x28bf44)),_0x823c3b++;}_0x823c3b++;}}}}for(const _0x39f018 of _0x1d2df5){const _0x387c7d=_0x1d4993[_0x23ba('0x74')][_0x39f018];for(const _0x165320 of _0x387c7d){const _0x1c58d1=this['_getVidAttributeName'](_0x165320),_0x5708c4=_0x165320[_0x23ba('0xf2')][_0x23ba('0x62')](_0x1c58d1);if(_0x316727[_0x23ba('0x93')](_0x5708c4)){const _0x57295c=_0x316727[_0x23ba('0x26')](_0x5708c4);_0x11de35['has'](_0x5708c4)||_0x11de35['set'](_0x5708c4,{..._0x57295c}),_0x5690ad[_0x23ba('0xa1')](_0x5708c4,{..._0x57295c});}}}for(const _0x12a49c of _0x11de35[_0x23ba('0x34')]())_0x12a49c>=this[_0x23ba('0x5b')]&&_0x11de35[_0x23ba('0xb1')](_0x12a49c);const _0x509099=new Map();for(const _0x587ecf of _0x1d2df5){let _0x3e4b03=_0x1d4993[_0x23ba('0x74')][_0x587ecf];for(const _0x19b0f7 of _0x3e4b03)if(_0x19b0f7[_0x23ba('0xf2')]['is'](_0x23ba('0x28'),_0x23ba('0x16'))){const _0x3ed763=this[_0x23ba('0xa5')](_0x19b0f7),_0x190a1b=_0x19b0f7['item'][_0x23ba('0x62')](_0x3ed763);if(_0x5690ad['has'](_0x190a1b)){const _0x163548=_0x19b0f7[_0x23ba('0xf2')][_0x23ba('0xa9')][_0x23ba('0xa9')]['getAttribute'](_0x23ba('0x79')),_0x2c7c67=_0x509099[_0x23ba('0x26')](_0x163548)||new Set();_0x2c7c67['add'](_0x5690ad['get'](_0x190a1b)[_0x23ba('0x86')]),_0x509099[_0x23ba('0xa1')](_0x163548,_0x2c7c67);}}_0x3e4b03=_0x1d4993[_0x23ba('0xc')][_0x587ecf];for(const _0x2ec54c of _0x3e4b03)if(_0x2ec54c['item']['is'](_0x23ba('0x28'),'tableCell')){const _0x1a1a87=this['_getVidAttributeName'](_0x2ec54c),_0x1b23b5=_0x2ec54c['item'][_0x23ba('0x62')](_0x1a1a87);if(_0x11de35[_0x23ba('0x93')](_0x1b23b5)){const _0x5c52a6=_0x2ec54c[_0x23ba('0xf2')][_0x23ba('0xa9')][_0x23ba('0xa9')]['getAttribute'](_0x23ba('0x79')),_0x30d964=_0x509099[_0x23ba('0x26')](_0x5c52a6)||new Set();_0x30d964['add'](_0x11de35['get'](_0x1b23b5)[_0x23ba('0x86')]),_0x509099[_0x23ba('0xa1')](_0x5c52a6,_0x30d964);}}for(const _0x38be8a of _0x509099[_0x23ba('0x34')]())(_0x5690ad['has'](_0x38be8a)||_0x11de35[_0x23ba('0x93')](_0x38be8a))&&_0x509099[_0x23ba('0xb1')](_0x38be8a);}for(const _0x499283 of _0x1d2df5){const _0x27634a=_0x1d4993['insertions'][_0x499283];let _0x4f26b4=null,_0x5b4888=null;for(const _0x2792f5 of _0x27634a){const _0x718b32=this[_0x23ba('0xa5')](_0x2792f5),_0x3806fa=_0x2792f5['item'][_0x23ba('0x62')](_0x718b32),_0x36c28e=_0x509099[_0x23ba('0x26')](_0x3806fa);_0x36c28e&&_0x23ba('0x12')==_0x2792f5[_0x23ba('0x43')]&&(_0x4f26b4=Array['from'](_0x36c28e)[0x0],_0x5b4888=_0x2792f5['item']['getAttribute']('vid_end')),_0x4f26b4&&(_0x11de35['set'](_0x3806fa,{'userId':_0x4f26b4}),_0x5690ad[_0x23ba('0xa1')](_0x3806fa,{'userId':_0x4f26b4})),_0x3806fa==_0x5b4888&&(_0x4f26b4=null,_0x5b4888=null);}}const _0x1c4049={},_0x4e98c5=new Set();for(const _0x21ee4b of _0x1d2df5){const _0x326d96=_0x15e017[_0x23ba('0xc')][_0x21ee4b],_0x1b47fc=_0x15e017[_0x23ba('0x74')][_0x21ee4b];for(const {userId:_0x162976}of this['_touchedMarkers']['values']())null!==_0x162976&&_0x4e98c5['add'](_0x162976);this[_0x23ba('0x6f')](_0x1b47fc,_0x1d4993[_0x23ba('0x74')][_0x21ee4b],_0x5690ad,_0x23ba('0x4e'),_0x4e98c5),this[_0x23ba('0x6f')](_0x326d96,_0x1d4993[_0x23ba('0xc')][_0x21ee4b],_0x11de35,_0x23ba('0x8b'),_0x4e98c5),_0x1c4049[_0x21ee4b]={'insertions':this[_0x23ba('0xc4')](_0x1b47fc),'deletions':this[_0x23ba('0xc4')](_0x326d96)};}return{'diffData':_0x1c4049,'authorsIds':Array[_0x23ba('0x84')](_0x4e98c5)};}[_0x23ba('0x96')](_0x4db96f){for(const [,_0xa65efd]of _0x4db96f[_0x23ba('0x24')]){const _0x148393=_0xa65efd[_0x23ba('0x1d')][_0x23ba('0xa6')]()[_0x23ba('0xe2')](_0x3c7999=>_0x23ba('0x16')==_0x3c7999[_0x23ba('0xc5')]);for(const _0x314538 of _0x148393)0x1==_0x314538[_0x23ba('0x71')]&&_0x314538['getChild'](0x0)['is'](_0x23ba('0x28'),_0x23ba('0xe8'))&&_0x314538['getChild'](0x0)[_0x23ba('0x8f')](_0x23ba('0x1c'),!0x0);}}[_0x23ba('0xc4')](_0x3a148f){this[_0x23ba('0x96')](_0x3a148f);const _0x384472=this[_0x23ba('0xb9')][_0x23ba('0xb8')][_0x23ba('0x2d')](_0x3a148f,{}),_0xa96fb9=Array[_0x23ba('0x84')](_0x384472[_0x23ba('0xd2')]())['map'](_0x2874fe=>this[_0x23ba('0x4')](_0x2874fe));return JSON[_0x23ba('0xca')](_0xa96fb9);}['_getViewJson'](_0x276420){if(_0x276420['is'](_0x23ba('0xe')))return _0x276420['data'];{const _0x19200c=_0x276420;return{'type':Object['keys'](V)[_0x23ba('0x69')](_0x2b93c0=>_0x276420 instanceof V[_0x2b93c0]),'name':_0x19200c[_0x23ba('0xc5')],'attributes':Array[_0x23ba('0x84')](_0x19200c['getAttributes']()),'children':Array['from'](_0x19200c[_0x23ba('0xd2')]())[_0x23ba('0x3a')](_0x517c06=>this[_0x23ba('0x4')](_0x517c06))};}}[_0x23ba('0x6f')](_0x1cf1e7,_0x4eb90c,_0x1a440a,_0x41ae0a,_0x128374){let _0x74f26f=null,_0x4a8d9a=null,_0x147d92=0x0;const _0x4fb659=this[_0x23ba('0xb9')][_0x23ba('0x9b')];for(let _0x2d8c88=0x0;_0x2d8c88<_0x4eb90c[_0x23ba('0x9a')];_0x2d8c88++){const _0x3eb3af=this['_getVidAttributeName'](_0x4eb90c[_0x2d8c88]),_0x2443a5=_0x4eb90c[_0x2d8c88][_0x23ba('0xf2')][_0x23ba('0x62')](_0x3eb3af),_0x59c074=_0x1a440a[_0x23ba('0x26')](_0x2443a5),_0x29e2d2=_0x2d8c88==_0x4eb90c['length']-0x1;(!_0x74f26f&&_0x59c074&&(_0x74f26f=_0x59c074,_0x4a8d9a=_0x4eb90c[_0x2d8c88]),_0x74f26f&&(!_0x59c074||_0x59c074['userId']!=_0x74f26f['userId']))&&(_0x3cd3b9(_0x59c074,j(_0x4a8d9a,_0x1cf1e7,_0x4fb659),j(_0x4eb90c[_0x2d8c88],_0x1cf1e7,_0x4fb659)),_0x74f26f=_0x59c074||null,_0x4a8d9a=_0x59c074?_0x4eb90c[_0x2d8c88]:null),_0x74f26f&&_0x29e2d2&&_0x3cd3b9(_0x59c074,j(_0x4a8d9a,_0x1cf1e7,_0x4fb659),B(_0x4eb90c[_0x2d8c88],_0x1cf1e7,_0x4fb659));}function _0x3cd3b9(_0x3c87b5,_0x4bbf0e,_0x359978){const _0x24315c=_0x74f26f[_0x23ba('0x86')],_0x5711f1=_0x23ba('0x7d')+_0x41ae0a+':'+_0x24315c+':'+_0x147d92++,_0x3540ad=_0x4fb659[_0x23ba('0x6')](_0x4bbf0e,_0x359978);_0x1cf1e7[_0x23ba('0x24')][_0x23ba('0xa1')](_0x5711f1,_0x3540ad),null!==_0x24315c&&_0x128374[_0x23ba('0xe6')](_0x24315c);}}[_0x23ba('0xa5')](_0x507f44){switch(_0x507f44[_0x23ba('0x43')]){case'elementStart':return _0x23ba('0x79');case _0x23ba('0x5f'):return _0x23ba('0x1e');default:return _0x23ba('0xde');}}[_0x23ba('0x92')](_0x28eba7,_0x6a683a){_0x28eba7[_0x23ba('0xba')]=null;for(const _0x2ccb4a in _0x28eba7){const _0x55c39b=_0x28eba7[_0x2ccb4a];if(_0x55c39b instanceof _0x1394e0){const _0xb52fb1=_0x6a683a[_0x23ba('0x26')](_0x55c39b[_0x23ba('0xd4')][_0x23ba('0xd3')]);_0x28eba7[_0x2ccb4a]=this[_0x23ba('0x64')](_0x55c39b,_0xb52fb1);}if(_0x55c39b instanceof _0x1e150f){const _0xa98c52=_0x6a683a[_0x23ba('0x26')](_0x55c39b[_0x23ba('0xd4')][_0x23ba('0xd3')]);_0x28eba7[_0x2ccb4a]=this[_0x23ba('0x13')](_0x55c39b,_0xa98c52);}}_0x28eba7[_0x23ba('0xd4')]&&(_0x28eba7[_0x23ba('0xd4')]=_0x6a683a['get'](_0x28eba7['root'][_0x23ba('0xd3')]));}[_0x23ba('0x13')](_0x3f334f,_0x2fc755){return this['editor'][_0x23ba('0x9b')][_0x23ba('0x6')](this[_0x23ba('0x64')](_0x3f334f[_0x23ba('0x1d')],_0x2fc755),this[_0x23ba('0x64')](_0x3f334f[_0x23ba('0x99')],_0x2fc755));}[_0x23ba('0x64')](_0x2a2309,_0x1c5a0){return this[_0x23ba('0xb9')][_0x23ba('0x9b')]['createPositionFromPath'](_0x1c5a0,_0x2a2309[_0x23ba('0xe9')],_0x2a2309['stickiness']);}[_0x23ba('0x76')](_0x36e1c6){const _0x21e676=this[_0x23ba('0x65')][_0x23ba('0x26')](_0x36e1c6['position']['root']['rootName']),_0x36ac4b=this[_0x23ba('0x64')](_0x36e1c6['position'],_0x21e676),_0x564645=null===_0x36e1c6[_0x23ba('0xae')]?null:_0x36e1c6[_0x23ba('0xae')]||this[_0x23ba('0xb9')][_0x23ba('0x2')]['get'](_0x23ba('0xd9'))['me']['id'],_0x8b4c2b=_0x36ac4b[_0x23ba('0xa9')],_0x670b8a=this[_0x23ba('0xec')],_0x58df2b=[];for(const _0x15bfe0 of _0x36e1c6[_0x23ba('0x3b')])if(_0x15bfe0['is']('element'))_0x58df2b['push'](this['_makeIdsRoot'](_0x15bfe0));else for(let _0x5dd612=0x0;_0x5dd612<_0x15bfe0[_0x23ba('0xdc')];_0x5dd612++)_0x58df2b['push'](new _0x463cd8(_0x23ba('0xe'),{'vid':this[_0x23ba('0xec')]++}));const _0x35965e=this[_0x23ba('0xec')];for(let _0x18159d=_0x670b8a;_0x18159d<_0x35965e;_0x18159d++)this[_0x23ba('0x87')][_0x23ba('0xa1')](_0x18159d,{'userId':_0x564645});_0x8b4c2b[_0x23ba('0xd1')](_0x36ac4b[_0x23ba('0xc1')],_0x58df2b);}[_0x23ba('0x4c')](_0x376dff){(_0x376dff=this[_0x23ba('0x80')](_0x376dff,this['_idsRoots']))['_execute']();const _0x3caef3=null===_0x376dff[_0x23ba('0xae')]?null:_0x376dff[_0x23ba('0xae')]||this['editor'][_0x23ba('0x2')][_0x23ba('0x26')](_0x23ba('0xd9'))['me']['id'],_0x583cb9=_0x376dff['getMovedRangeStart'](),_0x2ec0ad=_0x583cb9[_0x23ba('0xa9')],_0x5532fc=_0x583cb9[_0x23ba('0xc1')];!function _0x3cc5b0(_0x2a3b43,_0x38c928,_0x5b8651,_0x13695b){for(let _0xab4d6d=_0x5b8651;_0xab4d6d<_0x13695b;_0xab4d6d++){const _0x3fc760=_0x38c928['getChild'](_0xab4d6d);_0x3fc760['is'](_0x23ba('0x28'),_0x23ba('0xe'))?_0x2a3b43[_0x23ba('0xa1')](_0x3fc760[_0x23ba('0x62')](_0x23ba('0xde')),{'userId':_0x3caef3}):(_0x2a3b43[_0x23ba('0xa1')](_0x3fc760[_0x23ba('0x62')](_0x23ba('0x79')),{'userId':_0x3caef3}),_0x3cc5b0(_0x2a3b43,_0x3fc760,0x0,_0x3fc760[_0x23ba('0x71')]),_0x2a3b43[_0x23ba('0xa1')](_0x3fc760[_0x23ba('0x62')]('vid_end'),{'userId':_0x3caef3}));}}(this[_0x23ba('0x87')],_0x2ec0ad,_0x5532fc,_0x5532fc+_0x376dff[_0x23ba('0x66')]);}[_0x23ba('0xf')](_0x1e7e3c){const _0x591112=null===(_0x1e7e3c=this[_0x23ba('0x80')](_0x1e7e3c,this[_0x23ba('0x65')]))[_0x23ba('0xae')]?null:_0x1e7e3c[_0x23ba('0xae')]||this[_0x23ba('0xb9')]['plugins'][_0x23ba('0x26')](_0x23ba('0xd9'))['me']['id'],_0x46123a=_0x1e7e3c[_0x23ba('0xf3')][_0x23ba('0xa9')],_0x63fc03=_0x1e7e3c[_0x23ba('0xc2')]['parent'],_0x2b6b63=_0x46123a[_0x23ba('0x62')]('vid_end'),_0x1730cb=_0x63fc03[_0x23ba('0x62')]('vid_start');_0x46123a[_0x23ba('0x8f')](_0x23ba('0x1e'),_0x63fc03[_0x23ba('0x62')](_0x23ba('0x1e'))),_0x63fc03[_0x23ba('0x8f')](_0x23ba('0x1e'),_0x2b6b63),this[_0x23ba('0x87')][_0x23ba('0xa1')](_0x1730cb,{'userId':_0x591112}),this[_0x23ba('0x87')][_0x23ba('0xa1')](_0x2b6b63,{'userId':_0x591112}),_0x1e7e3c['_execute']();}[_0x23ba('0xf1')](_0x39c623){const _0x12ab6e=null===(_0x39c623=this[_0x23ba('0x80')](_0x39c623,this['_idsRoots']))[_0x23ba('0xae')]?null:_0x39c623[_0x23ba('0xae')]||this[_0x23ba('0xb9')]['plugins']['get'](_0x23ba('0xd9'))['me']['id'],_0x18d70d=_0x39c623[_0x23ba('0x9e')],_0xf6abd7=_0x39c623['splitPosition']['parent'];_0x39c623[_0x23ba('0x1a')]();const _0x5310db=_0xf6abd7[_0x23ba('0x62')](_0x23ba('0x1e')),_0x2ad409=_0x39c623[_0x23ba('0x67')][_0x23ba('0x4b')];if(_0x18d70d){const _0x12b6d2=_0x2ad409[_0x23ba('0x62')](_0x23ba('0x1e')),_0x484232=_0xf6abd7[_0x23ba('0x62')](_0x23ba('0x1e'));_0xf6abd7['_setAttribute']('vid_end',_0x12b6d2),_0x2ad409[_0x23ba('0x8f')]('vid_end',_0x484232),this[_0x23ba('0x87')]['set'](_0xf6abd7[_0x23ba('0x62')](_0x23ba('0x1e')),{'userId':_0x12ab6e}),this['_touched'][_0x23ba('0xa1')](_0x2ad409[_0x23ba('0x62')](_0x23ba('0x79')),{'userId':_0x12ab6e});}else{const _0x20fc95=this[_0x23ba('0xec')]++,_0x1cec5b=this[_0x23ba('0xec')]++;_0xf6abd7['_setAttribute'](_0x23ba('0x1e'),_0x20fc95),_0x2ad409[_0x23ba('0x8f')](_0x23ba('0x79'),_0x1cec5b),_0x2ad409[_0x23ba('0x8f')]('vid_end',_0x5310db),this[_0x23ba('0x87')][_0x23ba('0xa1')](_0x20fc95,{'userId':_0x12ab6e}),this[_0x23ba('0x87')][_0x23ba('0xa1')](_0x1cec5b,{'userId':_0x12ab6e});}}['_handleMarkerOperation'](_0x38c7dc){if(!_0x38c7dc[_0x23ba('0x8')])return;const _0x378559=(_0x38c7dc=this[_0x23ba('0x80')](_0x38c7dc,this[_0x23ba('0x4a')]))[_0x23ba('0x85')]?_0x38c7dc[_0x23ba('0x85')][_0x23ba('0xd4')]:null,_0x2f924a=_0x38c7dc['newRange']?_0x38c7dc[_0x23ba('0x57')]['root']:null;_0x378559&&this[_0x23ba('0x11')]['delete'](_0x38c7dc[_0x23ba('0xc5')]),_0x2f924a&&this[_0x23ba('0x11')][_0x23ba('0xa1')](_0x38c7dc['name'],_0x38c7dc['newRange'][_0x23ba('0xb')]());const _0x746683=null===_0x38c7dc[_0x23ba('0xae')]?null:_0x38c7dc[_0x23ba('0xae')]||this[_0x23ba('0xb9')][_0x23ba('0x2')][_0x23ba('0x26')](_0x23ba('0xd9'))['me']['id'],_0xa90eb1=_0x38c7dc[_0x23ba('0xc5')];if(!this[_0x23ba('0x68')][_0x23ba('0x93')](_0xa90eb1))return void this[_0x23ba('0x68')]['set'](_0xa90eb1,{'range':_0x38c7dc[_0x23ba('0x85')],'userId':_0x746683});const _0x57f57c=this[_0x23ba('0x68')][_0x23ba('0x26')](_0xa90eb1),_0x206dba=_0x57f57c[_0x23ba('0xf0')],_0x2bbd24=_0x38c7dc[_0x23ba('0x57')];null==_0x206dba&&null==_0x2bbd24||_0x206dba&&_0x2bbd24&&_0x206dba[_0x23ba('0xa4')](_0x2bbd24)?this[_0x23ba('0x68')][_0x23ba('0xb1')](_0x38c7dc['name']):_0x57f57c['userId']=_0x746683;}}function J(_0x2221ae){const _0x4aef90=new _0x19b136();_0x4aef90[_0x23ba('0xd3')]=_0x2221ae[_0x23ba('0xd3')];for(const _0x2b7524 of _0x2221ae[_0x23ba('0xd2')]()){const _0x4bfe9f=_0x2b7524[_0x23ba('0x3e')](!0x0);_0x4aef90[_0x23ba('0x3d')](_0x4bfe9f);}return _0x4aef90;}function j(_0xba588f,_0x4dd4e0,_0x19d342){const _0x1efeaa='elementEnd'==_0xba588f['type']?_0x19d342[_0x23ba('0xb4')](_0xba588f[_0x23ba('0xf2')],_0x23ba('0x99')):_0x19d342['createPositionBefore'](_0xba588f['item']);return _0x19d342['createPositionFromPath'](_0x4dd4e0,_0x1efeaa['path'],_0x1efeaa['stickiness']);}function B(_0x1184d6,_0x17835f,_0x43db5b){const _0x20dfd8=_0x23ba('0x12')==_0x1184d6[_0x23ba('0x43')]?_0x43db5b[_0x23ba('0xb4')](_0x1184d6[_0x23ba('0xf2')],0x0):_0x43db5b[_0x23ba('0xbe')](_0x1184d6[_0x23ba('0xf2')]);return _0x43db5b[_0x23ba('0xdf')](_0x17835f,_0x20dfd8['path'],_0x20dfd8[_0x23ba('0x1f')]);}
23
+ const _0x54b0=['_getFromVersion','_handleOperation','_revisionId','_bufferUpdate','_initialRevisionId','elementEnd','source','deletion','authorsIds','setRevisionData','get','version','requires','vid','getChild','_initialRoots','_reset','parse','history','getRevisionRootsAttributes','key','for','plugins','add','_cloneOperation','set','currentRevision','view','_calculateMetaData','stickiness','conversion','getRevision','type','getRange','insertionPosition','name','_transformMarkers','creatorId','addRevisionData','_appendChild','_pendingAction','getData','createRevision','path','rootName','slice','length','childCount','createPositionFromPath','createdAt','_operations','clone','pluginName','editing','_removeRevisionMarkers','config','revisionHistory.resumeUnsavedRevision','reverse','getAncestors','creator','diffData','addRootAttribute','data','addRevision','_copyMarkers','useFillerType','_markChanges','deletions','locale','editor-initial-data-replaced-with-revision-data','_setConversion','has','_handleMoveOperation','_handleInsertOperation','max','default','document','collaboration.channelId','marker','dataDowncast','nodes','_authorId','getWalker','_touched','_processRootBeforeSave','_getState','RevisionTracker','some','_startingVersion','_handleMarkerOperation','RevisionsRepository','newValue','_createFromRanges','revision:','getAttributes','revision-start','_generateTape','_handleMergeOperation','userId','model','_baseRootsAttributes','_touchedMarkers','children','getChildren','roots','_addPendingAction','range','updateRevisions','keys','upcast','_loadRevisionData','item','RealTimeCollaborationClient','affectsData','repository','from','getOperations','update','split','_update','text','_removePendingAction','_revisionDataBuilder','toVersion','loadState','offset','getTransformedByOperation','_setAttribute','addRoot','markerToData','_insertChild','_lastTo','map','_makeIdsRoot','_handleRootAttributeOperation','insert','_replaceEditorDataWithRevisionData','graveyardPosition','saveRevision','_source','NEGATIVE_INFINITY','_getBaseVids','_removeMetaData','filter','_isAttached','createPositionBefore','createRangeIn','define','authors','_prepareViewToSave','getLatestVersion','attributesAfter','getUser','$text','baseVersion','_startingRevisionId','offsetSize','vid_end','getRevisions','_makeRevision','_createInitialRevision','position','targetPosition','createPositionAfter','_isPendingUpdate','getCurrentRevisionId','_loadedStateData','_diffRoots','rootsAttributes','remove','splitPosition','sendBufferedUpdates','isReady','insertions','_applyOperations','delete','markers','start','previousPosition','_loadState','_baseRoots','values','_getViewJson','PendingActions','parent','$graveyard','vid_start','Initial\x20revision','resolve','startsWith','insertion','root','attachChange','tableCell','reInit','documentFragment','includes','isAdd','marked','nodeAfter','getRootNames','string','_getVidAttributeName','_saveMetaData','Empty\x20document','createPositionAt','_continueCurrentRevision','editor','reinsert','initial','_diffRootsAttributes','_baseIdsRoots','getAttribute','fromVersion','_fixRange','push','newRange','_fixPosition','_idsRoots','_getPreviousFrom','dataToMarker','_createCurrentRevision','buildRevisionData','Users','find','_fixOperation','getRoot','forEach','_findInsertionIndex','_execute','paragraph','getNodeByPath','getMovedRangeStart','revision','getTime','getRevisionDocumentData','_savedMetaData','move','clear','_makeModelFromViewString','element','size','toModel','_lastFrom','keepParagraph','isAttached','attributes','end','data-revision-','elementStart','processor','initialData','_handleSplitOperation','_markers','then','adapter','_touchedRoots','oldRange','createRange','shift','isEnabled','_handleRootOperation','_bufferedUpdates'];(function(_0x4e1d9c,_0x54b046){const _0x2e0382=function(_0x251664){while(--_0x251664){_0x4e1d9c['push'](_0x4e1d9c['shift']());}};_0x2e0382(++_0x54b046);}(_0x54b0,0x1ac));const _0x2e03=function(_0x4e1d9c,_0x54b046){_0x4e1d9c=_0x4e1d9c-0x0;let _0x2e0382=_0x54b0[_0x4e1d9c];return _0x2e0382;};import{Users as _0x215de0}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x367a74,PendingActions as _0x7fb05a}from'ckeditor5/src/core';import{logWarning as _0x191f0f,uid as _0x3c0177}from'ckeditor5/src/utils';import{Position as _0x5e3514,Range as _0x3f86f7,Element as _0x1692b2,DocumentFragment as _0x3273da,ViewText as _0x1e2bf1,ViewElement as _0x8dac77,ViewContainerElement as _0x56c3ab,ViewAttributeElement as _0x199011,ViewEmptyElement as _0x3b2003,ViewRawElement as _0xf71056,ViewUIElement as _0x59da95,ViewDocumentFragment as _0x3c9387}from'ckeditor5/src/engine';import _0x4a8dbd from'./revisionsrepository';import{getTranslation as _0x557fb8}from'./utils/common-translations';import{cloneDeep as _0x4eb609,isEqual as _0x182be6}from'lodash-es';const j={'c':_0x56c3ab,'a':_0x199011,'e':_0x3b2003,'r':_0xf71056,'u':_0x59da95};export default class l extends _0x367a74{static get[_0x2e03('0x96')](){return _0x2e03('0xb8');}static get[_0x2e03('0x6e')](){return[_0x215de0,_0x4a8dbd,_0x7fb05a];}constructor(_0x5394a0){super(_0x5394a0),this[_0x2e03('0x5a')]=null,this[_0x2e03('0x7c')]=null,this[_0x2e03('0xdc')]=new T(this[_0x2e03('0x2a')]),this[_0x2e03('0x66')]=this[_0x2e03('0x2a')][_0x2e03('0x99')]['get']('collaboration.channelId')||_0x2e03('0x2c'),this['_bufferedUpdates']=new Map(),this[_0x2e03('0x1')]=null;const _0x357abf=_0x3c0177();this[_0x2e03('0xed')]={'history':this[_0x2e03('0x2a')][_0x2e03('0xc5')][_0x2e03('0xae')]['history'],'getLatestVersion':()=>Promise['resolve'](this[_0x2e03('0x2a')]['model'][_0x2e03('0xae')][_0x2e03('0x6d')]),'getCurrentRevisionId':()=>_0x357abf},this[_0x2e03('0x7b')](_0x2e03('0x7'),!0x1),this[_0x2e03('0x7b')](_0x2e03('0x5f'),!0x0),this[_0x2e03('0x7b')](_0x2e03('0x106'),!0x1),this[_0x2e03('0x2a')][_0x2e03('0x99')][_0x2e03('0xf5')](_0x2e03('0x9a'),!0x0),this[_0x2e03('0x2a')]['conversion'][_0x2e03('0x77')](_0x2e03('0xcf'))[_0x2e03('0x37')]({'view':'revision'});}['init'](){this[_0x2e03('0xd4')]=this['editor'][_0x2e03('0x78')][_0x2e03('0x6c')](_0x2e03('0xbc')),this[_0x2e03('0xa8')](),this[_0x2e03('0x2a')][_0x2e03('0xa0')]['on']('ready',()=>{const _0x369a86=this[_0x2e03('0xd4')]['getRevision'](0x0),_0x2d9ee6=_0x369a86&&null===_0x369a86[_0x2e03('0x9d')]?_0x369a86:null;if(this[_0x2e03('0x29')]=!!_0x2d9ee6&&this['editor']['config'][_0x2e03('0x6c')](_0x2e03('0x9a')),this[_0x2e03('0x2a')][_0x2e03('0x78')][_0x2e03('0xa9')](_0x2e03('0xd2'))){const _0x452a1f=this[_0x2e03('0xed')]['getCurrentRevisionId'](),_0x13dfe4=this['repository']['getRevision'](_0x452a1f);if(_0x13dfe4)this['_startingVersion']=_0x13dfe4[_0x2e03('0x30')],this[_0x2e03('0x29')]=!0x1;else{const _0x1e6e4a=this[_0x2e03('0xed')][_0x2e03('0x74')][_0x2e03('0x94')]['find'](_0x1d75dd=>!_0x1d75dd['_isInit']),_0x30c3d2=_0x1e6e4a?_0x1e6e4a[_0x2e03('0xfc')]:this[_0x2e03('0xed')][_0x2e03('0x74')][_0x2e03('0x6d')];_0x369a86?(_0x369a86['toVersion']<_0x30c3d2&&_0x369a86[_0x2e03('0xd9')]({'toVersion':_0x30c3d2}),this[_0x2e03('0x29')]?(this[_0x2e03('0xed')][_0x2e03('0x0')]=()=>_0x2d9ee6['id'],this[_0x2e03('0xba')]=_0x2d9ee6[_0x2e03('0x30')]):(this[_0x2e03('0xba')]=_0x369a86[_0x2e03('0xdd')],this['_continueCurrentRevision']=!0x1)):(this[_0x2e03('0xba')]=_0x30c3d2,this['_continueCurrentRevision']=!0x1);}}else _0x2d9ee6&&(this[_0x2e03('0x2a')][_0x2e03('0xc5')][_0x2e03('0xae')]['history'][_0x2e03('0x6d')]=Math[_0x2e03('0xac')](_0x2d9ee6[_0x2e03('0xdd')],this[_0x2e03('0x2a')][_0x2e03('0xc5')][_0x2e03('0xae')][_0x2e03('0x74')][_0x2e03('0x6d')]),_0x2d9ee6[_0x2e03('0x30')]===_0x2d9ee6[_0x2e03('0xdd')]?(0x0!==_0x2d9ee6[_0x2e03('0x30')]&&(this['_source'][_0x2e03('0x0')]=()=>_0x2d9ee6['id']),this[_0x2e03('0x29')]=!0x1):this['_continueCurrentRevision']&&(this[_0x2e03('0xed')][_0x2e03('0x0')]=()=>_0x2d9ee6['id'],this[_0x2e03('0xba')]=_0x2d9ee6[_0x2e03('0x30')])),this[_0x2e03('0x29')]||(this[_0x2e03('0xba')]=this[_0x2e03('0x2a')][_0x2e03('0xc5')][_0x2e03('0xae')][_0x2e03('0x6d')]);this[_0x2e03('0xdc')]['init'](this['_source'][_0x2e03('0x74')]),this['_createInitialRevision'](this[_0x2e03('0xba')]),this[_0x2e03('0x38')](this['_startingVersion']),this[_0x2e03('0x5a')]&&this[_0x2e03('0x6')]();}),this['bind']('isReady')['to'](this,_0x2e03('0x106'),_0x474f07=>!_0x474f07);}async['afterInit'](){if(this[_0x2e03('0xd4')][_0x2e03('0x90')]>0x0){const _0x295f73=this[_0x2e03('0xd4')]['getRevision'](0x0),_0x172b43=await this[_0x2e03('0x46')](_0x295f73),_0x1dc5a0=await this[_0x2e03('0x75')](_0x295f73);this[_0x2e03('0xea')](_0x172b43,_0x1dc5a0);}}['setSource'](_0x27cf3c){this[_0x2e03('0xed')]=_0x27cf3c;}async[_0x2e03('0xd7')](){const _0x4ac5c0=await this['_source'][_0x2e03('0xf8')]();if(_0x4ac5c0>this[_0x2e03('0x7c')][_0x2e03('0xdd')]){await this[_0x2e03('0xe')]();const _0x4c8ddf=this[_0x2e03('0x39')]({'revision':this[_0x2e03('0x7c')],'to':_0x4ac5c0});_0x4c8ddf[_0x2e03('0xf6')]=_0x4c8ddf[_0x2e03('0x6a')][_0x2e03('0xe6')](_0x3beb26=>this[_0x2e03('0x2a')][_0x2e03('0x78')][_0x2e03('0x6c')](_0x2e03('0x3a'))[_0x2e03('0xfa')](_0x3beb26)),this['currentRevision'][_0x2e03('0xd9')](_0x4c8ddf);}}async[_0x2e03('0xe')](){this[_0x2e03('0x29')]&&!this[_0x2e03('0x1')]&&(await this['_loadRevisionData'](this[_0x2e03('0x7c')]),this[_0x2e03('0xdc')][_0x2e03('0xde')](this[_0x2e03('0x7c')]),this[_0x2e03('0x1')]={'fromVersion':this[_0x2e03('0x7c')][_0x2e03('0x30')],'authors':this[_0x2e03('0x7c')]['authors'][_0x2e03('0x8f')]()});}async[_0x2e03('0xec')](_0x33b7e4={},_0x2f6114=null){const _0x23881b=[];await this['_loadState'](),this[_0x2e03('0x29')]=!0x1,_0x2f6114>this[_0x2e03('0x7c')][_0x2e03('0xdd')]&&(_0x2f6114=null),null===_0x2f6114&&(_0x2f6114=await this[_0x2e03('0xed')][_0x2e03('0xf8')]());const _0x59b2a5=this[_0x2e03('0x62')](_0x2f6114),_0x4801ad=this[_0x2e03('0x39')]({'from':_0x59b2a5,'to':_0x2f6114});if(this[_0x2e03('0x7c')][_0x2e03('0xdd')]<_0x2f6114){const _0x4326d0=this['buildRevisionData']({'revision':this[_0x2e03('0x7c')],'from':_0x2f6114,'to':_0x2f6114});_0x4326d0[_0x2e03('0xf6')]=[],_0x4326d0['authorsIds']=[],_0x4326d0['id']=this['currentRevision']['id'],this[_0x2e03('0x7c')][_0x2e03('0xd9')](_0x4326d0,!0x0),delete _0x4326d0[_0x2e03('0xf6')],_0x23881b[_0x2e03('0x32')](_0x4326d0);}_0x33b7e4[_0x2e03('0x87')]=this[_0x2e03('0x2a')]['plugins'][_0x2e03('0x6c')]('Users')['me']['id'],_0x33b7e4['name']=_0x33b7e4[_0x2e03('0x85')]||null,_0x33b7e4['id']=_0x33b7e4['id']||_0x3c0177(),_0x33b7e4={..._0x33b7e4,..._0x4801ad};const _0x32e2cd=this['addRevisionData'](_0x33b7e4);_0x23881b[_0x2e03('0x32')](_0x33b7e4);const _0x26b970=this['repository']['getIndex'](_0x32e2cd);if(0x0!==_0x26b970){const _0x51cd25=this['repository'][_0x2e03('0x81')](_0x26b970-0x1);if(_0x51cd25['fromVersion']!==_0x2f6114){const _0x1fb19a=this['_revisionDataBuilder']['getData'](_0x2f6114,_0x51cd25[_0x2e03('0xdd')]),_0x26b91c={'id':_0x51cd25['id'],'diffData':_0x1fb19a[_0x2e03('0x9e')],'authorsIds':_0x1fb19a['authorsIds'],'authors':_0x1fb19a[_0x2e03('0x6a')][_0x2e03('0xe6')](_0x3dfe8c=>this['editor']['plugins']['get'](_0x2e03('0x3a'))[_0x2e03('0xfa')](_0x3dfe8c)),'fromVersion':_0x2f6114};_0x51cd25===this['currentRevision']&&(_0x26b91c[_0x2e03('0x93')]=new Date(_0x33b7e4['createdAt'][_0x2e03('0x45')]()+0xa)),_0x51cd25['_update'](_0x26b91c,!0x0),delete _0x26b91c[_0x2e03('0xf6')],_0x23881b['push'](_0x26b91c);}}if(this[_0x2e03('0x5a')]){for(const _0x2cc1ec of _0x23881b)this[_0x2e03('0x65')](_0x2cc1ec['id'],_0x2cc1ec,!0x0);this[_0x2e03('0x6')]();}return _0x32e2cd;}['addRevisionData'](_0x5a3d70){const _0xb2acf7=this[_0x2e03('0xd4')][_0x2e03('0x8c')](_0x5a3d70);return this[_0x2e03('0x5a')]&&_0xb2acf7['on']('_update',(_0x26d7cc,_0x31cd5d,_0x5992fb)=>{_0x5992fb||(this[_0x2e03('0x65')](_0x31cd5d['id'],_0x31cd5d,!0x0),this[_0x2e03('0x6')]());}),this[_0x2e03('0xd4')][_0x2e03('0xa1')](_0xb2acf7,this[_0x2e03('0x3f')](_0xb2acf7)),_0xb2acf7;}async[_0x2e03('0x46')](_0x5e0bc0){await this[_0x2e03('0xd0')](_0x5e0bc0);const _0x3db305={};for(const _0x2c1cbd in _0x5e0bc0['diffData']){if(_0x5e0bc0[_0x2e03('0x9e')][_0x2c1cbd][_0x2e03('0x1b')]&&!_0x5e0bc0['diffData'][_0x2c1cbd]['attachChange'][_0x2e03('0x50')])continue;const _0x5a1d61=this[_0x2e03('0x98')](JSON['parse'](_0x5e0bc0['diffData'][_0x2c1cbd]['insertions'])),_0x6dc965=this['editor']['editing']['view']['document'],_0x1f8943=new _0x3c9387(_0x6dc965,_0x5a1d61[_0x2e03('0xe6')](_0x50d3ea=>F(_0x50d3ea,this[_0x2e03('0x2a')])));this[_0x2e03('0x2a')]['data'][_0x2e03('0x55')][_0x2e03('0xa3')](_0x2e03('0x21')),_0x3db305[_0x2c1cbd]=this['editor'][_0x2e03('0xa0')]['processor']['toData'](_0x1f8943),this['editor'][_0x2e03('0xa0')][_0x2e03('0x55')]['useFillerType'](_0x2e03('0xad'));}return _0x3db305;}async[_0x2e03('0x75')](_0x426974){await this[_0x2e03('0xd0')](_0x426974);const _0x82fbc0={};for(const _0x3c4053 in _0x426974['diffData'])_0x426974[_0x2e03('0x9e')][_0x3c4053][_0x2e03('0x1b')]&&!_0x426974[_0x2e03('0x9e')][_0x3c4053]['attachChange'][_0x2e03('0x50')]||(_0x82fbc0[_0x3c4053]=_0x426974[_0x2e03('0x9e')][_0x3c4053][_0x2e03('0xf9')]);return _0x82fbc0;}[_0x2e03('0x6')](){if(0x0===this['_bufferedUpdates']['size'])return;if(this[_0x2e03('0x106')])return;let _0x2709e9=Array[_0x2e03('0xd5')](this[_0x2e03('0x61')]['values']());this[_0x2e03('0x61')][_0x2e03('0x49')]();for(let _0x32f776=0x0;_0x32f776<_0x2709e9[_0x2e03('0x90')];_0x32f776++){const _0x47f8e9=_0x2709e9[_0x32f776];let _0x5278af=!0x1;for(const _0x1da10b of Object['keys'](_0x47f8e9))void 0x0===_0x47f8e9[_0x1da10b]?delete _0x47f8e9[_0x1da10b]:'id'!==_0x1da10b&&(_0x5278af=!0x0);_0x5278af||(_0x2709e9[_0x32f776]=null);}if(_0x2709e9=_0x2709e9[_0x2e03('0xf1')](_0xff24ff=>null!==_0xff24ff),!_0x2709e9['length'])return;for(let _0x4da575=0x0;_0x4da575<_0x2709e9[_0x2e03('0x90')];_0x4da575++){const _0x3ec4b0=_0x2709e9[_0x4da575];void 0x0!==_0x3ec4b0['fromVersion']&&void 0x0===_0x3ec4b0[_0x2e03('0xdd')]&&(_0x3ec4b0[_0x2e03('0xdd')]=this['repository'][_0x2e03('0x81')](_0x3ec4b0['id'])[_0x2e03('0xdd')]),void 0x0!==_0x3ec4b0[_0x2e03('0xdd')]&&void 0x0===_0x3ec4b0[_0x2e03('0x30')]&&(_0x3ec4b0[_0x2e03('0x30')]=this[_0x2e03('0xd4')][_0x2e03('0x81')](_0x3ec4b0['id'])[_0x2e03('0x30')]);}const _0x1ad6a2=this['editor']['config'][_0x2e03('0x6c')]('collaboration.channelId');this[_0x2e03('0x106')]=!0x0,this[_0x2e03('0xcb')](),this[_0x2e03('0x5a')][_0x2e03('0xcd')](_0x2709e9,_0x1ad6a2)['finally'](()=>{this[_0x2e03('0x106')]=!0x1;})[_0x2e03('0x59')](_0xd2024d=>{if(_0xd2024d)for(const _0xb0e1f2 of _0xd2024d)this[_0x2e03('0x6b')]({'id':_0xb0e1f2['id'],'createdAt':_0xb0e1f2[_0x2e03('0x93')]});this[_0x2e03('0xdb')](),this[_0x2e03('0x6')]();});}[_0x2e03('0xea')](_0x34be8e,_0x33ae59){let _0x1cddf7=this[_0x2e03('0x2a')][_0x2e03('0x99')][_0x2e03('0x6c')](_0x2e03('0x56')),_0x8fbcac=this['editor'][_0x2e03('0x99')]['get'](_0x2e03('0x3'));if(void 0x0===_0x1cddf7){_0x1cddf7={};for(const _0x416376 of this[_0x2e03('0x2a')][_0x2e03('0xc5')]['document'][_0x2e03('0x23')]())_0x1cddf7[_0x416376]='';}if(_0x2e03('0x24')==typeof _0x1cddf7&&(_0x1cddf7={'main':_0x1cddf7}),void 0x0===_0x8fbcac){_0x8fbcac={};for(const _0x85bc1 of this[_0x2e03('0x2a')]['model'][_0x2e03('0xae')]['getRootNames']())_0x8fbcac[_0x85bc1]={};}let _0x7f9a14=!0x1;const _0x149bc0=Object[_0x2e03('0xce')](_0x1cddf7),_0x17c4a1=Object[_0x2e03('0xce')](_0x34be8e);for(const _0x4fc202 of _0x149bc0){if(_0x1cddf7[_0x4fc202]!==_0x34be8e[_0x4fc202]&&''!==_0x1cddf7[_0x4fc202]['trim']()){_0x7f9a14=!0x0;break;}if(!_0x182be6(_0x8fbcac[_0x4fc202],_0x33ae59[_0x4fc202])&&Object[_0x2e03('0xce')](_0x8fbcac[_0x4fc202])[_0x2e03('0x90')]>0x0){_0x7f9a14=!0x0;break;}}_0x7f9a14||(_0x7f9a14=_0x17c4a1[_0x2e03('0xb9')](_0x3c85e3=>!_0x149bc0[_0x2e03('0x1f')](_0x3c85e3))),_0x7f9a14&&_0x191f0f(_0x2e03('0xa7'),{'editorData':_0x1cddf7,'editorRootsAttributes':_0x8fbcac,'revisionData':_0x34be8e,'revisionRootsAttributes':_0x33ae59}),this[_0x2e03('0x2a')][_0x2e03('0x99')][_0x2e03('0x7b')]('initialData',_0x34be8e),this[_0x2e03('0x2a')][_0x2e03('0x99')][_0x2e03('0x7b')](_0x2e03('0x3'),_0x33ae59);}['_addPendingAction'](){if(!this[_0x2e03('0x8a')]){const _0x15d535=this[_0x2e03('0x2a')][_0x2e03('0x78')][_0x2e03('0x6c')](_0x2e03('0x12'));this['_pendingAction']=_0x15d535[_0x2e03('0x79')](_0x557fb8(this[_0x2e03('0x2a')][_0x2e03('0xa6')],'PENDING_ACTION_REVISION_HISTORY'));}}[_0x2e03('0xdb')](){this[_0x2e03('0x8a')]&&(this[_0x2e03('0x2a')][_0x2e03('0x78')][_0x2e03('0x6c')]('PendingActions')['remove'](this[_0x2e03('0x8a')]),this[_0x2e03('0x8a')]=null);}[_0x2e03('0x3f')](_0x2403a7){const _0xcfb68c=this['repository'][_0x2e03('0x100')]();_0xcfb68c[_0x2e03('0x9b')]();let _0x5a9ba5=0x0;for(;_0x5a9ba5<_0xcfb68c[_0x2e03('0x90')];){const _0x48c3f9=_0xcfb68c[_0x5a9ba5];if(_0x48c3f9===this[_0x2e03('0x7c')]){_0x5a9ba5++;continue;}if(_0x48c3f9['id']===this['_initialRevisionId'])break;const _0x32b39c=_0x2403a7[_0x2e03('0xdd')]-_0x48c3f9[_0x2e03('0xdd')]||_0x2403a7[_0x2e03('0x30')]-_0x48c3f9[_0x2e03('0x30')];if(_0x32b39c>0x0)break;if(_0x32b39c<0x0)_0x5a9ba5++;else{if(!_0x2403a7[_0x2e03('0x9d')]&&_0x48c3f9['creator'])break;if(_0x48c3f9['creator']||!_0x2403a7[_0x2e03('0x9d')]){if(_0x2403a7['createdAt']>_0x48c3f9[_0x2e03('0x93')])break;_0x5a9ba5++;}else _0x5a9ba5++;}}return _0x5a9ba5;}[_0x2e03('0x6b')](_0x1f5e51){const _0x4c9745=this[_0x2e03('0xd4')]['getRevision'](_0x1f5e51['id']);if(_0x1f5e51[_0x2e03('0x93')]&&(_0x1f5e51[_0x2e03('0x93')]=new Date(_0x1f5e51[_0x2e03('0x93')])),_0x1f5e51[_0x2e03('0x6a')]){const _0x2662a3=this[_0x2e03('0x2a')]['plugins'][_0x2e03('0x6c')](_0x2e03('0x3a'));_0x1f5e51[_0x2e03('0xf6')]=_0x1f5e51['authorsIds'][_0x2e03('0xe6')](_0x2d2dd3=>_0x2662a3[_0x2e03('0xfa')](_0x2d2dd3));}_0x4c9745[_0x2e03('0xd9')](_0x1f5e51,!0x0);}[_0x2e03('0x39')]({revision:_0x368a60=null,from:_0x3b5f41=null,to:_0x24cf8e=null}){_0x3b5f41=null!==_0x3b5f41?_0x3b5f41:_0x368a60[_0x2e03('0x30')],_0x24cf8e=null!==_0x24cf8e?_0x24cf8e:_0x368a60[_0x2e03('0xdd')];const _0x3c6c12=this['_revisionDataBuilder']['getData'](_0x3b5f41,_0x24cf8e),_0x28c1f3={'diffData':_0x3c6c12[_0x2e03('0x9e')],'authorsIds':_0x3c6c12['authorsIds'],'fromVersion':_0x3b5f41,'toVersion':_0x24cf8e};if(!_0x368a60||_0x24cf8e!==_0x368a60[_0x2e03('0xdd')]){const _0x48ca39=_0x24cf8e-0x1,_0x39ded5=this[_0x2e03('0xed')]['history']['getOperation'](_0x48ca39);_0x28c1f3[_0x2e03('0x93')]=_0x39ded5&&_0x39ded5['createdAt']||new Date();}if(this[_0x2e03('0x1')]&&_0x3b5f41===this['_loadedStateData'][_0x2e03('0x30')])for(const _0x136d73 of this[_0x2e03('0x1')][_0x2e03('0xf6')])_0x28c1f3[_0x2e03('0x6a')][_0x2e03('0x1f')](_0x136d73['id'])||_0x28c1f3['authorsIds']['push'](_0x136d73['id']);return _0x28c1f3;}[_0x2e03('0xd0')](_0xbf8a28){if(!_0xbf8a28||_0xbf8a28['diffData'])return Promise[_0x2e03('0x17')]();{const _0x31ff8c=this[_0x2e03('0x2a')][_0x2e03('0x99')][_0x2e03('0x6c')](_0x2e03('0xaf'));return this['adapter']['getRevision']({'channelId':_0x31ff8c,'revisionId':_0xbf8a28['id']})[_0x2e03('0x59')](_0x2f5ea0=>{_0xbf8a28[_0x2e03('0x9e')]=_0x2f5ea0[_0x2e03('0x9e')];});}}[_0x2e03('0x65')](_0x43acab,_0x9fce97,_0x621af3){if(this[_0x2e03('0x61')][_0x2e03('0xa9')](_0x43acab)){const _0xdfa725=this['_bufferedUpdates'][_0x2e03('0x6c')](_0x43acab);_0x9fce97=_0x621af3?{..._0xdfa725,..._0x9fce97}:{..._0x9fce97,..._0xdfa725};}this['_bufferedUpdates'][_0x2e03('0x7b')](_0x43acab,_0x9fce97);}[_0x2e03('0x62')](_0x56fad0){const _0x2ad32d=this[_0x2e03('0xd4')][_0x2e03('0x100')]();_0x2ad32d[_0x2e03('0x9b')](),_0x2ad32d[_0x2e03('0x5e')]();const _0x5921b1=_0x2ad32d[_0x2e03('0x3b')](_0x387248=>_0x387248[_0x2e03('0xdd')]<=_0x56fad0)[_0x2e03('0xdd')];return _0x5921b1<this[_0x2e03('0xba')]?this['_startingVersion']:_0x5921b1;}[_0x2e03('0x102')](_0xa57434){const _0x35a821=this[_0x2e03('0xd4')][_0x2e03('0x81')](this[_0x2e03('0xd4')]['length']-0x1);if(_0x35a821)this['_initialRevisionId']=_0x35a821['id'];else{const _0x4bb1ab=!this[_0x2e03('0x2a')][_0x2e03('0xc5')][_0x2e03('0xae')][_0x2e03('0xca')][_0x2e03('0x3b')](_0x33d217=>this[_0x2e03('0x2a')][_0x2e03('0xc5')]['hasContent'](_0x33d217)),_0x5487e8=this[_0x2e03('0x2a')][_0x2e03('0x78')]['get'](_0x2e03('0x3a'))['me']['id'],_0x32cb46=_0x557fb8(this[_0x2e03('0x2a')][_0x2e03('0xa6')],_0x4bb1ab?_0x2e03('0x27'):_0x2e03('0x16'));this[_0x2e03('0x101')]({'from':_0xa57434,'to':_0xa57434,'id':this['_initialRevisionId'],'name':_0x32cb46,'creatorId':_0x5487e8});}}[_0x2e03('0x38')](_0x5da909){const _0x2a7353=this[_0x2e03('0xed')][_0x2e03('0x0')]();this[_0x2e03('0x7c')]=this[_0x2e03('0xd4')]['getRevision'](_0x2a7353),this['currentRevision']||(this[_0x2e03('0x7c')]=this[_0x2e03('0x101')]({'from':_0x5da909,'to':_0x5da909,'id':_0x2a7353,'name':'','creatorId':null}));}[_0x2e03('0x101')]({name:_0x55de17,from:_0x15e830,to:_0x3366bc,creatorId:_0x38ff72,id:_0x929cd7}){const _0x31b787=this[_0x2e03('0x39')]({'from':_0x15e830,'to':_0x3366bc});_0x31b787['name']=_0x55de17,_0x31b787[_0x2e03('0x87')]=_0x38ff72,_0x31b787['id']=_0x929cd7;const _0x350067=this[_0x2e03('0x88')](_0x31b787);return this[_0x2e03('0x5a')]&&this[_0x2e03('0x65')](_0x31b787['id'],_0x31b787,!0x0),_0x350067;}[_0x2e03('0xa8')](){this[_0x2e03('0x2a')][_0x2e03('0x80')][_0x2e03('0x77')](_0x2e03('0xb1'))[_0x2e03('0xe3')]({'model':_0x2e03('0x44')});}[_0x2e03('0x98')](_0x121bc1){return(_0x121bc1=_0x121bc1[_0x2e03('0xf1')](_0x2c03b6=>!_0x2c03b6['name']||_0x2e03('0xc1')!==_0x2c03b6[_0x2e03('0x85')]&&'revision-end'!==_0x2c03b6['name']))[_0x2e03('0x3e')](_0x256073=>{_0x2e03('0x24')!=typeof _0x256073&&(_0x256073[_0x2e03('0xc8')]=this[_0x2e03('0x98')](_0x256073[_0x2e03('0xc8')]),_0x256073[_0x2e03('0x51')]=_0x256073[_0x2e03('0x51')][_0x2e03('0xf1')](_0x33191b=>!_0x33191b[0x0]['startsWith'](_0x2e03('0x53'))));}),_0x121bc1;}}function F(_0x14b3ff,_0x1b9563){const _0x10a9b8=_0x1b9563[_0x2e03('0x97')][_0x2e03('0x7d')][_0x2e03('0xae')];if(_0x2e03('0x24')==typeof _0x14b3ff)return new _0x1e2bf1(_0x10a9b8,_0x14b3ff);{const _0x3a3e5b=_0x14b3ff['children'][_0x2e03('0xe6')](_0x3db31c=>F(_0x3db31c,_0x1b9563));return new(j[_0x14b3ff[(_0x2e03('0x82'))]]||_0x8dac77)(_0x10a9b8,_0x14b3ff[_0x2e03('0x85')],_0x14b3ff[_0x2e03('0x51')],_0x3a3e5b);}}class T{constructor(_0x26922f){this['editor']=_0x26922f,this['_savedMetaData']=new Map(),this[_0x2e03('0x4e')]=-0x1,this[_0x2e03('0xe5')]=-0x1,this['_markers']=new Map(),this[_0x2e03('0x2')]=new Map(),this[_0x2e03('0x2d')]=new Map(),this['_baseRoots']=new Map(),this[_0x2e03('0xc6')]=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this[_0x2e03('0xb5')]=new Map(),this[_0x2e03('0xc7')]=new Map(),this[_0x2e03('0x5b')]=new Map(),this['_revisionId']=0x1,this['_initialRoots']=this[_0x2e03('0x2a')][_0x2e03('0xc5')]['document'][_0x2e03('0x23')](),this[_0x2e03('0x71')]['push']('$graveyard');}['init'](_0x176312){this[_0x2e03('0x68')]=_0x176312;const _0x442d90=new Map(),_0x395d50=new Map(),_0x3e4e5f=this[_0x2e03('0x2a')][_0x2e03('0xc5')][_0x2e03('0xae')][_0x2e03('0x23')](!0x0);_0x3e4e5f['push'](_0x2e03('0x14'));for(const _0x2bdab0 of _0x3e4e5f){const _0x185cac=this[_0x2e03('0x2a')][_0x2e03('0xc5')][_0x2e03('0xae')][_0x2e03('0x3d')](_0x2bdab0),_0x4a5f28=B(_0x185cac);_0x442d90[_0x2e03('0x7b')](_0x2bdab0,_0x4a5f28),_0x395d50['set'](_0x2bdab0,Object['fromEntries'](_0x185cac['getAttributes']()));}const _0x3c63bf=Array[_0x2e03('0xd5')](this[_0x2e03('0x2a')][_0x2e03('0xc5')][_0x2e03('0xb')])[_0x2e03('0xe6')](_0x42058b=>[_0x42058b[_0x2e03('0x85')],_0x42058b[_0x2e03('0x83')]()]),_0x451e75=this[_0x2e03('0x68')][_0x2e03('0x6d')];this['_saveMetaData'](_0x451e75,_0x442d90,_0x3c63bf,_0x395d50),this[_0x2e03('0xfd')]=this[_0x2e03('0x64')];const _0x52b0f6=new Map(),_0x181b0e=new Map();for(const _0x4400cf of this['_initialRoots']){const _0x99e4ae=J(_0x4400cf);_0x52b0f6[_0x2e03('0x7b')](_0x4400cf,_0x99e4ae),_0x181b0e[_0x2e03('0x7b')](_0x4400cf,{});}this[_0x2e03('0x26')](Number[_0x2e03('0xee')],_0x52b0f6,[],_0x181b0e);}[_0x2e03('0x8b')](_0x39f5a9,_0x1f1d38){if(this[_0x2e03('0x4e')]===_0x39f5a9&&this[_0x2e03('0xe5')]<=_0x1f1d38)this['_savedMetaData'][_0x2e03('0x4c')]>0x1&&this['_removeMetaData'](this[_0x2e03('0xe5')]),this['_applyOperations'](this[_0x2e03('0xe5')],_0x1f1d38,!0x0);else{if(!this['_savedMetaData']['has'](_0x39f5a9)){const _0x494078=this['_getPreviousFrom'](_0x39f5a9);this[_0x2e03('0x7e')](_0x494078,_0x39f5a9,!0x1);}this[_0x2e03('0x7e')](_0x39f5a9,_0x1f1d38,!0x0);}return this[_0x2e03('0x4e')]=_0x39f5a9,this[_0x2e03('0xe5')]=_0x1f1d38,this['_getState']();}['loadState'](_0x4f80d2){this[_0x2e03('0x72')](),this[_0x2e03('0x4e')]=_0x4f80d2[_0x2e03('0x30')],this[_0x2e03('0xe5')]=_0x4f80d2[_0x2e03('0xdd')];for(const _0x2203d4 in _0x4f80d2[_0x2e03('0x9e')]){const _0x5de2f1=_0x4f80d2[_0x2e03('0x9e')][_0x2203d4][_0x2e03('0x1b')],_0x3427dc=_0x4eb609(_0x4f80d2[_0x2e03('0x9e')][_0x2203d4]['attributesBefore'])||{},_0x1a3755=this[_0x2e03('0x4a')](_0x4f80d2[_0x2e03('0x9e')][_0x2203d4][_0x2e03('0xa5')]);_0x1a3755[_0x2e03('0x8e')]=_0x2203d4,_0x1a3755['_isAttached']=!_0x5de2f1||!_0x5de2f1[_0x2e03('0x50')],_0x1a3755[_0x2e03('0x50')]=()=>_0x1a3755[_0x2e03('0xf2')],this[_0x2e03('0xf')][_0x2e03('0x7b')](_0x2203d4,_0x1a3755),this['_baseRootsAttributes'][_0x2e03('0x7b')](_0x2203d4,_0x3427dc),_0x5de2f1&&this[_0x2e03('0x5b')][_0x2e03('0x7b')](_0x2203d4,_0x5de2f1);const _0x40e0f6=this['_makeIdsRoot'](_0x1a3755);this[_0x2e03('0x2e')][_0x2e03('0x7b')](_0x2203d4,_0x40e0f6);for(const [_0xbb13a4,_0x2ee617]of _0x1a3755[_0x2e03('0xb')]){if(!_0xbb13a4[_0x2e03('0x18')](_0x2e03('0xbf')))continue;const _0xb784ec=_0xbb13a4[_0x2e03('0xd8')](':')[0x2];for(const _0x23bc8 of _0x2ee617['getWalker']({'singleCharacters':!0x0})){const _0xbfb1ba=this['_getVidAttributeName'](_0x23bc8),_0x9bc31='elementEnd'==_0x23bc8['type']?_0x23bc8[_0x2e03('0xd')]['path'][_0x2e03('0x8f')](0x0,-0x1):_0x23bc8[_0x2e03('0xd')][_0x2e03('0x8d')],_0x2f9da6=_0x40e0f6[_0x2e03('0x42')](_0x9bc31)[_0x2e03('0x2f')](_0xbfb1ba);this[_0x2e03('0xb5')][_0x2e03('0x7b')](_0x2f9da6,{'userId':_0xb784ec});}}}this[_0x2e03('0xfd')]=this[_0x2e03('0x64')];const _0x3cb52d=[...Array(this[_0x2e03('0x64')])[_0x2e03('0xce')]()][_0x2e03('0x8f')](0x1)[_0x2e03('0xf1')](_0x45b073=>!this[_0x2e03('0xb5')][_0x2e03('0xa9')](_0x45b073));let _0x273805=0x0;const _0x28b283=new Map();for(const _0x387abe in _0x4f80d2['diffData']){const _0x3dfe85=_0x4f80d2[_0x2e03('0x9e')][_0x387abe][_0x2e03('0x1b')],_0x5750d1=_0x4eb609(_0x4f80d2[_0x2e03('0x9e')][_0x387abe][_0x2e03('0xf9')])||{},_0x139fe0=this[_0x2e03('0x4a')](_0x4f80d2[_0x2e03('0x9e')][_0x387abe]['insertions']);_0x139fe0['rootName']=_0x387abe,_0x139fe0[_0x2e03('0xf2')]=!_0x3dfe85||_0x3dfe85[_0x2e03('0x50')],_0x139fe0[_0x2e03('0x50')]=()=>_0x139fe0[_0x2e03('0xf2')],this[_0x2e03('0x2')][_0x2e03('0x7b')](_0x387abe,_0x139fe0),this[_0x2e03('0x2d')][_0x2e03('0x7b')](_0x387abe,_0x5750d1);const _0x4d3d4b=this['_makeIdsRoot'](_0x139fe0,Number[_0x2e03('0xee')]);this[_0x2e03('0x35')][_0x2e03('0x7b')](_0x387abe,_0x4d3d4b),_0x28b283[_0x2e03('0x7b')](_0x387abe,_0x139fe0[_0x2e03('0x50')]()?_0x5750d1:{});for(const [_0x2a26e1,_0x19cf66]of _0x139fe0[_0x2e03('0xb')]){if(!_0x2a26e1[_0x2e03('0x18')](_0x2e03('0xbf')))continue;const _0x218f05=_0x2a26e1[_0x2e03('0xd8')](':')[0x2];for(const _0x396959 of _0x19cf66[_0x2e03('0xb4')]({'singleCharacters':!0x0})){const _0x5baaad=this[_0x2e03('0x25')](_0x396959),_0x11ab7e=this[_0x2e03('0x64')]++,_0x34d5be='elementEnd'==_0x396959[_0x2e03('0x82')]?_0x396959[_0x2e03('0xd')][_0x2e03('0x8d')][_0x2e03('0x8f')](0x0,-0x1):_0x396959[_0x2e03('0xd')][_0x2e03('0x8d')];_0x4d3d4b['getNodeByPath'](_0x34d5be)[_0x2e03('0xe1')](_0x5baaad,_0x11ab7e),this[_0x2e03('0xb5')][_0x2e03('0x7b')](_0x11ab7e,{'userId':_0x218f05});}}for(const _0x32a7af of this[_0x2e03('0x2a')][_0x2e03('0xc5')][_0x2e03('0xf4')](_0x139fe0)[_0x2e03('0xb4')]({'singleCharacters':!0x0})){const _0x323250=this[_0x2e03('0x25')](_0x32a7af),_0x46e7c3=_0x2e03('0x67')==_0x32a7af['type']?_0x32a7af[_0x2e03('0xd')][_0x2e03('0x8d')]['slice'](0x0,-0x1):_0x32a7af[_0x2e03('0xd')][_0x2e03('0x8d')],_0x492e3=_0x4d3d4b[_0x2e03('0x42')](_0x46e7c3);_0x492e3[_0x2e03('0x2f')](_0x323250)>0x0||_0x492e3['_setAttribute'](_0x323250,_0x3cb52d[_0x273805++]);}for(const [_0x157f2f,_0x265e7a]of _0x139fe0[_0x2e03('0xb')])_0x157f2f[_0x2e03('0x18')](_0x2e03('0xbf'))||this[_0x2e03('0x58')][_0x2e03('0x7b')](_0x157f2f,_0x265e7a);}const _0x92f84c=J(_0x2e03('0x14'));this[_0x2e03('0xf')][_0x2e03('0x7b')](_0x2e03('0x14'),_0x92f84c),this[_0x2e03('0x2e')]['set']('$graveyard',this[_0x2e03('0xe7')](_0x92f84c,0x1));const _0x3e17a8=J(_0x2e03('0x14'));this[_0x2e03('0x2')][_0x2e03('0x7b')](_0x2e03('0x14'),_0x3e17a8),this[_0x2e03('0x35')][_0x2e03('0x7b')]('$graveyard',this['_makeIdsRoot'](_0x3e17a8,0x1));const _0xef1129=Array[_0x2e03('0xd5')](this[_0x2e03('0x2')])[_0x2e03('0xe6')](([_0x2332a2,_0x38cd17])=>[_0x2332a2,B(_0x38cd17)]);this[_0x2e03('0x26')](this[_0x2e03('0xe5')],_0xef1129,this['_markers'],_0x28b283);}[_0x2e03('0x4a')](_0x1ad7b8){const _0xbc2839=JSON[_0x2e03('0x73')](_0x1ad7b8),_0x16f60d=this['editor'][_0x2e03('0x97')][_0x2e03('0x7d')][_0x2e03('0xae')],_0x1e4fc9=new _0x3c9387(_0x16f60d,_0xbc2839[_0x2e03('0xe6')](_0x415f5e=>F(_0x415f5e,this[_0x2e03('0x2a')])));return this[_0x2e03('0x2a')]['data'][_0x2e03('0x4d')](_0x1e4fc9);}[_0x2e03('0x26')](_0x579f11,_0x2b9a75,_0x49e127,_0x3d89a4){const _0x1ab742=new Map(_0x2b9a75),_0x29c648=new Map(_0x4eb609(_0x3d89a4)),_0x2c4845=new Map();for(const [_0x426e3b,_0xb33fb8]of _0x49e127)_0x2c4845['set'](_0x426e3b,{'start':_0xb33fb8[_0x2e03('0xc')][_0x2e03('0x95')](),'end':_0xb33fb8[_0x2e03('0x52')][_0x2e03('0x95')](),'rootName':_0xb33fb8[_0x2e03('0x1a')][_0x2e03('0x8e')]});this[_0x2e03('0x47')][_0x2e03('0x7b')](_0x579f11,{'roots':_0x1ab742,'markers':_0x2c4845,'rootsAttributes':_0x29c648});}[_0x2e03('0xf0')](_0x364cc1){this[_0x2e03('0x47')]['delete'](_0x364cc1);}[_0x2e03('0x1d')](){this[_0x2e03('0x72')](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this[_0x2e03('0x47')][_0x2e03('0x49')](),this['init'](this['source']);}['_reset'](){this[_0x2e03('0xb5')][_0x2e03('0x49')](),this['_touchedMarkers'][_0x2e03('0x49')](),this[_0x2e03('0x5b')][_0x2e03('0x49')](),this[_0x2e03('0x2')][_0x2e03('0x49')](),this[_0x2e03('0x2d')][_0x2e03('0x49')](),this['_baseRoots']['clear'](),this[_0x2e03('0xc6')][_0x2e03('0x49')](),this[_0x2e03('0x35')][_0x2e03('0x49')](),this['_baseIdsRoots'][_0x2e03('0x49')](),this[_0x2e03('0x58')][_0x2e03('0x49')](),this['_revisionId']=0x1,this['_startingRevisionId']=this[_0x2e03('0x64')];}[_0x2e03('0xe7')](_0x18ad0d,_0x6f4bbc=null){let _0x2246c4=null;_0x18ad0d['is'](_0x2e03('0x1e'))||(_0x2246c4=new _0x1692b2(_0x18ad0d[_0x2e03('0x85')],{'vid_start':null===_0x6f4bbc?this[_0x2e03('0x64')]++:_0x6f4bbc++}));const _0x3bd790=[];for(const _0x2a9b7d of _0x18ad0d[_0x2e03('0xc9')]())if(_0x2a9b7d['is'](_0x2e03('0x4b'))){_0x3bd790[_0x2e03('0x32')](this['_makeIdsRoot'](_0x2a9b7d,_0x6f4bbc));const _0x2f5d93=_0x3bd790[_0x3bd790[_0x2e03('0x90')]-0x1];null!==_0x6f4bbc&&(_0x6f4bbc=_0x2f5d93['is']('element','$text')?_0x2f5d93['getAttribute'](_0x2e03('0x6f'))+0x1:_0x2f5d93[_0x2e03('0x2f')](_0x2e03('0xff'))+0x1);}else for(let _0x2e8058=0x0;_0x2e8058<_0x2a9b7d[_0x2e03('0xfe')];_0x2e8058++)_0x3bd790[_0x2e03('0x32')](new _0x1692b2(_0x2e03('0xfb'),{'vid':null===_0x6f4bbc?this[_0x2e03('0x64')]++:_0x6f4bbc++}));if(_0x18ad0d['is'](_0x2e03('0x1e'))){const _0x5c7774=J(_0x18ad0d[_0x2e03('0x8e')]);return _0x5c7774[_0x2e03('0xe4')](0x0,_0x3bd790),_0x5c7774;}return _0x2246c4['_setAttribute'](_0x2e03('0xff'),null===_0x6f4bbc?this[_0x2e03('0x64')]++:_0x6f4bbc++),_0x2246c4[_0x2e03('0xe4')](0x0,_0x3bd790),_0x2246c4;}[_0x2e03('0x7e')](_0x5c37af,_0x472630,_0x461b9d){this[_0x2e03('0x72')]();const {roots:_0x266e72,markers:_0x21dbce,rootsAttributes:_0x58dd60}=this[_0x2e03('0x47')][_0x2e03('0x6c')](_0x5c37af);this[_0x2e03('0xf')]=new Map(_0x266e72),this[_0x2e03('0xc6')]=new Map(_0x4eb609(_0x58dd60));for(const [_0x1ee333,_0x168fa4]of this[_0x2e03('0xf')])if('$graveyard'!==_0x1ee333&&(this[_0x2e03('0x2')][_0x2e03('0x7b')](_0x1ee333,B(_0x168fa4)),this[_0x2e03('0x2d')]=new Map(_0x4eb609(_0x58dd60)),_0x461b9d)){const _0x1a8444=this[_0x2e03('0x64')];this[_0x2e03('0x35')][_0x2e03('0x7b')](_0x1ee333,this[_0x2e03('0xe7')](_0x168fa4)),this['_baseIdsRoots'][_0x2e03('0x7b')](_0x1ee333,this[_0x2e03('0xe7')](_0x168fa4,_0x1a8444));}this['_startingRevisionId']=this['_revisionId'],this[_0x2e03('0x2')][_0x2e03('0x7b')](_0x2e03('0x14'),B(this[_0x2e03('0xf')][_0x2e03('0x6c')](_0x2e03('0x14')))),_0x461b9d&&this[_0x2e03('0x35')][_0x2e03('0x7b')](_0x2e03('0x14'),this[_0x2e03('0xe7')](this[_0x2e03('0xf')]['get'](_0x2e03('0x14'))));for(const [_0x3707c7,_0x34718d]of _0x21dbce){const _0x432b98=this[_0x2e03('0xf')][_0x2e03('0x6c')](_0x34718d[_0x2e03('0x8e')]),_0x4f8a89=this[_0x2e03('0x2')][_0x2e03('0x6c')](_0x34718d[_0x2e03('0x8e')]),_0x13b944=new _0x3f86f7(this['_fixPosition'](_0x34718d['start'],_0x432b98),this['_fixPosition'](_0x34718d[_0x2e03('0x52')],_0x432b98)),_0x4d008b=this[_0x2e03('0x31')](_0x13b944,_0x4f8a89);_0x432b98['markers'][_0x2e03('0x7b')](_0x3707c7,_0x13b944),this['_markers'][_0x2e03('0x7b')](_0x3707c7,_0x4d008b);}this[_0x2e03('0x9')](_0x5c37af,_0x472630,_0x461b9d);}[_0x2e03('0x9')](_0x24808d,_0x113e14,_0x3a513b){for(const _0x50802c of this[_0x2e03('0x68')][_0x2e03('0xd6')](_0x24808d,_0x113e14))this[_0x2e03('0x63')](_0x50802c,_0x3a513b);for(const _0x4197c7 of this[_0x2e03('0x2')][_0x2e03('0x10')]())_0x4197c7['markers'][_0x2e03('0x49')]();for(const [_0x1afe77,_0x46ae54]of this['_markers']){this['_diffRoots'][_0x2e03('0x6c')](_0x46ae54[_0x2e03('0x1a')][_0x2e03('0x8e')])[_0x2e03('0xb')]['set'](_0x1afe77,_0x46ae54[_0x2e03('0x95')]());}const _0x8f320b=new Map(),_0x34aa31=new Map();for(const [_0x216f39,_0x672733]of this[_0x2e03('0x2')])_0x8f320b[_0x2e03('0x7b')](_0x216f39,B(_0x672733)),_0x34aa31[_0x2e03('0x7b')](_0x216f39,this[_0x2e03('0x2d')][_0x2e03('0x6c')](_0x216f39));this['_saveMetaData'](_0x113e14,_0x8f320b,this[_0x2e03('0x58')],_0x34aa31);}[_0x2e03('0x36')](_0x1719d1){const _0x17ff7c=Array['from'](this[_0x2e03('0x47')][_0x2e03('0xce')]());_0x17ff7c['sort']((_0x165bb2,_0x4a7511)=>_0x165bb2-_0x4a7511),_0x17ff7c['reverse']();for(const _0x1de069 of _0x17ff7c)if(_0x1de069<_0x1719d1)return _0x1de069;return Number[_0x2e03('0xee')];}['_copyMarkers'](_0x3cc0c5,_0xf694cc){const _0x1c127c=Array[_0x2e03('0xd5')](_0xf694cc[_0x2e03('0xb')])[_0x2e03('0xe6')](([_0x36cbef,_0x538481])=>[_0x36cbef,this['_fixRange'](_0x538481,_0x3cc0c5)]);_0x3cc0c5[_0x2e03('0xb')]=new Map(_0x1c127c);}['_transformMarkers'](_0x35eef2){for(const _0x55c879 of this['_markers'][_0x2e03('0x10')]()){const _0x1ac13e=_0x55c879[_0x2e03('0xe0')](_0x35eef2),_0x215698=_0x3f86f7[_0x2e03('0xbe')](_0x1ac13e);_0x55c879[_0x2e03('0xc')]=_0x215698[_0x2e03('0xc')],_0x55c879[_0x2e03('0x52')]=_0x215698[_0x2e03('0x52')];}}['_handleOperation'](_0x27325b,_0x2f9e04){if(_0x2e03('0xe2')==_0x27325b[_0x2e03('0x82')]||'detachRoot'==_0x27325b['type'])return void this[_0x2e03('0x60')](_0x27325b,_0x2f9e04);if(_0x2e03('0xe9')==_0x27325b[_0x2e03('0x82')]){const _0x10780f=_0x27325b[_0x2e03('0x103')][_0x2e03('0x1a')][_0x2e03('0x8e')];this[_0x2e03('0x2')][_0x2e03('0xa9')](_0x10780f)||(this[_0x2e03('0x2')][_0x2e03('0x7b')](_0x10780f,J(_0x10780f,!0x0)),this[_0x2e03('0x2d')]['set'](_0x10780f,{}),_0x2f9e04&&this['_idsRoots'][_0x2e03('0x7b')](_0x10780f,J(_0x10780f,!0x0)));}if(_0x2e03('0x9f')==_0x27325b[_0x2e03('0x82')]||'removeRootAttribute'==_0x27325b[_0x2e03('0x82')]||'changeRootAttribute'==_0x27325b[_0x2e03('0x82')])return void this[_0x2e03('0xe8')](_0x27325b);const _0x477722=this['_cloneOperation'](_0x27325b,this[_0x2e03('0x2')]);if(_0x2e03('0xb0')!==_0x27325b[_0x2e03('0x82')]&&(_0x477722['_execute'](),this[_0x2e03('0x86')](_0x477722)),_0x2f9e04)switch(_0x477722[_0x2e03('0x82')]){case _0x2e03('0xe9'):this['_handleInsertOperation'](_0x27325b);break;case _0x2e03('0x48'):case _0x2e03('0x4'):case _0x2e03('0x2b'):this['_handleMoveOperation'](_0x27325b);break;case'merge':this[_0x2e03('0xc3')](_0x27325b);break;case _0x2e03('0xd8'):this[_0x2e03('0x57')](_0x27325b);break;case _0x2e03('0xb0'):this[_0x2e03('0xbb')](_0x27325b);}}[_0x2e03('0x7a')](_0x140d9b,_0x480a0e){const _0x9d0966=_0x140d9b[_0x2e03('0x95')]();return _0x9d0966[_0x2e03('0xb3')]=_0x140d9b['_authorId'],this[_0x2e03('0x3c')](_0x9d0966,_0x480a0e),_0x9d0966;}[_0x2e03('0xef')](_0x426da2){return _0x426da2['map'](_0x451e91=>{const _0x5e9ecf=this[_0x2e03('0x25')](_0x451e91);return Number(_0x451e91['item']['getAttribute'](_0x5e9ecf));});}['_generateTape'](_0x4efb0d,_0x1438b){if(_0x4efb0d['is'](_0x2e03('0x4b'),'$text'))_0x1438b[_0x2e03('0x32')]({'item':_0x4efb0d,'type':_0x2e03('0xda')});else{_0x4efb0d['is']('element')&&_0x1438b[_0x2e03('0x32')]({'item':_0x4efb0d,'type':_0x2e03('0x54')});for(const _0x2d4646 of _0x4efb0d[_0x2e03('0xc9')]())this[_0x2e03('0xc2')](_0x2d4646,_0x1438b);_0x4efb0d['is']('element')&&_0x1438b[_0x2e03('0x32')]({'item':_0x4efb0d,'type':_0x2e03('0x67')});}return _0x1438b;}[_0x2e03('0xb7')](){const _0x278f03=new Map(this['_touched']),_0x203fc8=new Map(_0x278f03),_0x370634=new Map(),_0x181677={'insertions':{},'deletions':{}},_0x18ad6f={'insertions':{},'deletions':{}},_0x22428d=new Map(),_0x32452b=new Set([...this[_0x2e03('0xf')][_0x2e03('0xce')](),...this[_0x2e03('0x2')][_0x2e03('0xce')]()]);_0x32452b[_0x2e03('0xa')](_0x2e03('0x14'));for(const _0x533434 of _0x32452b){const _0x4fe339=this[_0x2e03('0x2')][_0x2e03('0x6c')](_0x533434)||J(_0x533434,!0x1),_0x35aa78=this['_baseRoots']['get'](_0x533434)||J(_0x533434,!0x1);_0x4fe339[_0x2e03('0x50')]()||_0x35aa78[_0x2e03('0x50')]()?(_0x181677['insertions'][_0x533434]=B(_0x4fe339),_0x181677['deletions'][_0x533434]=B(_0x35aa78),this['_copyMarkers'](_0x181677[_0x2e03('0xa5')][_0x533434],_0x35aa78),this[_0x2e03('0xa2')](_0x181677[_0x2e03('0x8')][_0x533434],_0x4fe339),_0x18ad6f['insertions'][_0x533434]=this['_generateTape'](this[_0x2e03('0x35')][_0x2e03('0x6c')](_0x533434),[]),_0x18ad6f['deletions'][_0x533434]=this[_0x2e03('0xc2')](this[_0x2e03('0x2e')]['get'](_0x533434)||J(_0x533434,!0x1),[])):_0x32452b['delete'](_0x533434);}for(const _0x12d50c of _0x32452b){const _0x2b4bc7=_0x18ad6f['insertions'][_0x12d50c];for(const _0xafa194 of _0x2b4bc7){const _0x1e7908=this['_getVidAttributeName'](_0xafa194),_0x491819=_0xafa194['item'][_0x2e03('0x2f')](_0x1e7908);_0x203fc8[_0x2e03('0xa')](_0x491819),_0x491819>=this[_0x2e03('0xfd')]&&_0x370634[_0x2e03('0x7b')](_0x491819,_0x278f03[_0x2e03('0x6c')](_0x491819));}}for(const _0x3dcaa0 of _0x32452b){const _0x91eca2=_0x18ad6f['insertions'][_0x3dcaa0],_0x5a9139=this[_0x2e03('0xef')](_0x18ad6f[_0x2e03('0xa5')][_0x3dcaa0]);let _0x3e4ea0=0x0;for(const _0x52d43d of _0x91eca2){const _0x190b37=this[_0x2e03('0x25')](_0x52d43d),_0x52cd8c=_0x52d43d['item'][_0x2e03('0x2f')](_0x190b37);if(!_0x370634[_0x2e03('0xa9')](_0x52cd8c)&&!_0x22428d[_0x2e03('0xa9')](_0x52cd8c)){if(_0x203fc8[_0x2e03('0xa9')](_0x52cd8c))_0x3e4ea0++;else{if(_0x52cd8c!=_0x5a9139[_0x3e4ea0]){const _0x209d8b=_0x278f03[_0x2e03('0x6c')](_0x52cd8c)||_0x278f03[_0x2e03('0x6c')](_0x5a9139[_0x3e4ea0]);for(;_0x52cd8c!=_0x5a9139[_0x3e4ea0];)_0x203fc8['has'](_0x5a9139[_0x3e4ea0])||(_0x22428d[_0x2e03('0x7b')](_0x5a9139[_0x3e4ea0],_0x209d8b),_0x278f03[_0x2e03('0x7b')](_0x5a9139[_0x3e4ea0],_0x209d8b)),_0x3e4ea0++;}_0x3e4ea0++;}}}}for(const _0x450f1f of _0x32452b){const _0x2c7b6a=_0x18ad6f['insertions'][_0x450f1f];for(const _0x5f6450 of _0x2c7b6a){const _0x24dfe7=this[_0x2e03('0x25')](_0x5f6450),_0xf3cd09=_0x5f6450[_0x2e03('0xd1')][_0x2e03('0x2f')](_0x24dfe7);if(_0x22428d[_0x2e03('0xa9')](_0xf3cd09)){const _0x35bb3f=_0x22428d[_0x2e03('0x6c')](_0xf3cd09);_0x203fc8[_0x2e03('0xa9')](_0xf3cd09)||_0x203fc8['set'](_0xf3cd09,{..._0x35bb3f}),_0x370634[_0x2e03('0x7b')](_0xf3cd09,{..._0x35bb3f});}}}for(const _0x16a144 of _0x203fc8['keys']())_0x16a144>=this[_0x2e03('0xfd')]&&_0x203fc8[_0x2e03('0xa')](_0x16a144);const _0x1ee6c9=new Map();for(const _0x12bd40 of _0x32452b){let _0x456ed4=_0x18ad6f[_0x2e03('0x8')][_0x12bd40];for(const _0x1b4315 of _0x456ed4)if(_0x1b4315['item']['is'](_0x2e03('0x4b'),_0x2e03('0x1c'))){const _0x586b18=this[_0x2e03('0x25')](_0x1b4315),_0x212672=_0x1b4315[_0x2e03('0xd1')][_0x2e03('0x2f')](_0x586b18);if(_0x370634['has'](_0x212672)){const _0x56116f=_0x1b4315['item']['parent'][_0x2e03('0x13')][_0x2e03('0x2f')](_0x2e03('0x15')),_0xc3019d=_0x1ee6c9[_0x2e03('0x6c')](_0x56116f)||new Set();_0xc3019d[_0x2e03('0x79')](_0x370634[_0x2e03('0x6c')](_0x212672)[_0x2e03('0xc4')]),_0x1ee6c9['set'](_0x56116f,_0xc3019d);}}_0x456ed4=_0x18ad6f[_0x2e03('0xa5')][_0x12bd40];for(const _0x3519cb of _0x456ed4)if(_0x3519cb['item']['is'](_0x2e03('0x4b'),_0x2e03('0x1c'))){const _0x4a586b=this[_0x2e03('0x25')](_0x3519cb),_0x224baf=_0x3519cb[_0x2e03('0xd1')][_0x2e03('0x2f')](_0x4a586b);if(_0x203fc8[_0x2e03('0xa9')](_0x224baf)){const _0x44b97e=_0x3519cb[_0x2e03('0xd1')][_0x2e03('0x13')]['parent']['getAttribute'](_0x2e03('0x15')),_0x20ee11=_0x1ee6c9[_0x2e03('0x6c')](_0x44b97e)||new Set();_0x20ee11[_0x2e03('0x79')](_0x203fc8[_0x2e03('0x6c')](_0x224baf)['userId']),_0x1ee6c9[_0x2e03('0x7b')](_0x44b97e,_0x20ee11);}}for(const _0x5e7aa6 of _0x1ee6c9[_0x2e03('0xce')]())(_0x370634[_0x2e03('0xa9')](_0x5e7aa6)||_0x203fc8[_0x2e03('0xa9')](_0x5e7aa6))&&_0x1ee6c9[_0x2e03('0xa')](_0x5e7aa6);}for(const _0x37fbfc of _0x32452b){const _0x5c9647=_0x18ad6f[_0x2e03('0x8')][_0x37fbfc];let _0x2c4881=null,_0x51d778=null;for(const _0x1024d5 of _0x5c9647){const _0x286caa=this[_0x2e03('0x25')](_0x1024d5),_0x32ae24=_0x1024d5[_0x2e03('0xd1')][_0x2e03('0x2f')](_0x286caa),_0x42db2b=_0x1ee6c9['get'](_0x32ae24);_0x42db2b&&_0x2e03('0x54')==_0x1024d5[_0x2e03('0x82')]&&(_0x2c4881=Array['from'](_0x42db2b)[0x0],_0x51d778=_0x1024d5[_0x2e03('0xd1')][_0x2e03('0x2f')](_0x2e03('0xff'))),_0x2c4881&&(_0x203fc8[_0x2e03('0x7b')](_0x32ae24,{'userId':_0x2c4881}),_0x370634[_0x2e03('0x7b')](_0x32ae24,{'userId':_0x2c4881})),_0x32ae24==_0x51d778&&(_0x2c4881=null,_0x51d778=null);}}const _0x385c8e={},_0x1435cf=new Set();for(const _0x1743f0 of _0x32452b){const _0x28e6b8=_0x181677[_0x2e03('0xa5')][_0x1743f0],_0x546fc6=_0x181677[_0x2e03('0x8')][_0x1743f0];for(const {userId:_0x7d9ac6}of this[_0x2e03('0xc7')][_0x2e03('0x10')]())null!==_0x7d9ac6&&_0x1435cf[_0x2e03('0x79')](_0x7d9ac6);for(const {userId:_0x3437d5}of this[_0x2e03('0x5b')][_0x2e03('0x10')]())null!==_0x3437d5&&_0x1435cf[_0x2e03('0x79')](_0x3437d5);this[_0x2e03('0xa4')](_0x546fc6,_0x18ad6f[_0x2e03('0x8')][_0x1743f0],_0x370634,_0x2e03('0x19'),_0x1435cf),this[_0x2e03('0xa4')](_0x28e6b8,_0x18ad6f[_0x2e03('0xa5')][_0x1743f0],_0x203fc8,_0x2e03('0x69'),_0x1435cf),_0x385c8e[_0x1743f0]={'insertions':this[_0x2e03('0xf7')](_0x546fc6),'deletions':this['_prepareViewToSave'](_0x28e6b8),'attachChange':this[_0x2e03('0x5b')][_0x2e03('0x6c')](_0x1743f0)||null,'attributesBefore':_0x4eb609(this[_0x2e03('0xc6')]['get'](_0x1743f0))||{},'attributesAfter':_0x4eb609(this[_0x2e03('0x2d')][_0x2e03('0x6c')](_0x1743f0))};}return{'diffData':_0x385c8e,'authorsIds':Array[_0x2e03('0xd5')](_0x1435cf)};}['_processRootBeforeSave'](_0x43f282){for(const [,_0x3b6bd1]of _0x43f282[_0x2e03('0xb')]){const _0x17deb4=_0x3b6bd1[_0x2e03('0xc')][_0x2e03('0x9c')]()['filter'](_0x17ce07=>_0x2e03('0x1c')==_0x17ce07[_0x2e03('0x85')]);for(const _0x5bb3d5 of _0x17deb4)0x1==_0x5bb3d5['childCount']&&_0x5bb3d5[_0x2e03('0x70')](0x0)['is']('element',_0x2e03('0x41'))&&_0x5bb3d5[_0x2e03('0x70')](0x0)[_0x2e03('0xe1')](_0x2e03('0x4f'),!0x0);}}[_0x2e03('0xf7')](_0xdb21e8){this[_0x2e03('0xb6')](_0xdb21e8);const _0x886059=this[_0x2e03('0x2a')][_0x2e03('0xa0')]['toView'](_0xdb21e8,{}),_0x42ceae=Array[_0x2e03('0xd5')](_0x886059['getChildren']())['map'](_0x273179=>this[_0x2e03('0x11')](_0x273179));return JSON['stringify'](_0x42ceae);}[_0x2e03('0x11')](_0x40290a){if(_0x40290a['is'](_0x2e03('0xfb')))return _0x40290a[_0x2e03('0xa0')];{const _0x2101aa=_0x40290a;return{'type':Object[_0x2e03('0xce')](j)[_0x2e03('0x3b')](_0xe41fb4=>_0x40290a instanceof j[_0xe41fb4]),'name':_0x2101aa['name'],'attributes':Array[_0x2e03('0xd5')](_0x2101aa[_0x2e03('0xc0')]()),'children':Array[_0x2e03('0xd5')](_0x2101aa['getChildren']())[_0x2e03('0xe6')](_0x416f9c=>this[_0x2e03('0x11')](_0x416f9c))};}}[_0x2e03('0xa4')](_0x17a9cf,_0x194739,_0x5de6ad,_0x2eb546,_0x5a45fb){let _0x4b909d=null,_0x12a465=null,_0xdff686=0x0;const _0x39f68e=this[_0x2e03('0x2a')]['model'];for(let _0x551ab0=0x0;_0x551ab0<_0x194739[_0x2e03('0x90')];_0x551ab0++){const _0x1cf2ef=this[_0x2e03('0x25')](_0x194739[_0x551ab0]),_0x1f77a0=_0x194739[_0x551ab0][_0x2e03('0xd1')][_0x2e03('0x2f')](_0x1cf2ef),_0x4d13ea=_0x5de6ad[_0x2e03('0x6c')](_0x1f77a0),_0x370b2d=_0x551ab0==_0x194739[_0x2e03('0x90')]-0x1;(!_0x4b909d&&_0x4d13ea&&(_0x4b909d=_0x4d13ea,_0x12a465=_0x194739[_0x551ab0]),_0x4b909d&&(!_0x4d13ea||_0x4d13ea[_0x2e03('0xc4')]!=_0x4b909d['userId']))&&(_0xc731c8(_0x4d13ea,H(_0x12a465,_0x17a9cf,_0x39f68e),H(_0x194739[_0x551ab0],_0x17a9cf,_0x39f68e)),_0x4b909d=_0x4d13ea||null,_0x12a465=_0x4d13ea?_0x194739[_0x551ab0]:null),_0x4b909d&&_0x370b2d&&_0xc731c8(_0x4d13ea,H(_0x12a465,_0x17a9cf,_0x39f68e),q(_0x194739[_0x551ab0],_0x17a9cf,_0x39f68e));}function _0xc731c8(_0x5a799d,_0x278df0,_0x369a57){const _0x472e28=_0x4b909d[_0x2e03('0xc4')],_0x50cad9=_0x2e03('0xbf')+_0x2eb546+':'+_0x472e28+':'+_0xdff686++,_0x54615a=_0x39f68e[_0x2e03('0x5d')](_0x278df0,_0x369a57);_0x17a9cf['markers'][_0x2e03('0x7b')](_0x50cad9,_0x54615a),null!==_0x472e28&&_0x5a45fb[_0x2e03('0x79')](_0x472e28);}}[_0x2e03('0x25')](_0x165134){switch(_0x165134[_0x2e03('0x82')]){case _0x2e03('0x54'):return _0x2e03('0x15');case _0x2e03('0x67'):return _0x2e03('0xff');default:return _0x2e03('0x6f');}}[_0x2e03('0x3c')](_0x26799f,_0x2b6170){_0x26799f['baseVersion']=null;for(const _0x12c0cb in _0x26799f){const _0x1f1c32=_0x26799f[_0x12c0cb];if(_0x1f1c32 instanceof _0x5e3514){const _0x2d6cc6=_0x2b6170['get'](_0x1f1c32[_0x2e03('0x1a')][_0x2e03('0x8e')]);_0x26799f[_0x12c0cb]=this[_0x2e03('0x34')](_0x1f1c32,_0x2d6cc6);}if(_0x1f1c32 instanceof _0x3f86f7){const _0x26e0ca=_0x2b6170[_0x2e03('0x6c')](_0x1f1c32[_0x2e03('0x1a')][_0x2e03('0x8e')]);_0x26799f[_0x12c0cb]=this[_0x2e03('0x31')](_0x1f1c32,_0x26e0ca);}_0x2e03('0x1a')===_0x12c0cb&&(_0x26799f[_0x2e03('0x1a')]=_0x2b6170[_0x2e03('0x6c')](_0x26799f[_0x2e03('0x1a')][_0x2e03('0x8e')]));}}[_0x2e03('0x31')](_0x289d78,_0x1855f5){return this['editor'][_0x2e03('0xc5')]['createRange'](this[_0x2e03('0x34')](_0x289d78['start'],_0x1855f5),this[_0x2e03('0x34')](_0x289d78[_0x2e03('0x52')],_0x1855f5));}[_0x2e03('0x34')](_0x13e3cd,_0x4abb50){return this[_0x2e03('0x2a')][_0x2e03('0xc5')][_0x2e03('0x92')](_0x4abb50,_0x13e3cd['path'],_0x13e3cd['stickiness']);}[_0x2e03('0xab')](_0x5e94bc){const _0x586d91=this['_idsRoots']['get'](_0x5e94bc[_0x2e03('0x103')][_0x2e03('0x1a')][_0x2e03('0x8e')]),_0x42068a=this[_0x2e03('0x34')](_0x5e94bc[_0x2e03('0x103')],_0x586d91),_0x2b72f1=null===_0x5e94bc[_0x2e03('0xb3')]?null:_0x5e94bc[_0x2e03('0xb3')]||this['editor'][_0x2e03('0x78')][_0x2e03('0x6c')](_0x2e03('0x3a'))['me']['id'],_0x1e9ce6=_0x42068a[_0x2e03('0x13')],_0x58895c=this[_0x2e03('0x64')],_0x14c0d6=[];for(const _0x29d967 of _0x5e94bc[_0x2e03('0xb2')])if(_0x29d967['is'](_0x2e03('0x4b')))_0x14c0d6[_0x2e03('0x32')](this['_makeIdsRoot'](_0x29d967));else for(let _0x260ac6=0x0;_0x260ac6<_0x29d967[_0x2e03('0xfe')];_0x260ac6++)_0x14c0d6['push'](new _0x1692b2(_0x2e03('0xfb'),{'vid':this[_0x2e03('0x64')]++}));const _0x46d6e6=this[_0x2e03('0x64')];for(let _0x578e93=_0x58895c;_0x578e93<_0x46d6e6;_0x578e93++)this[_0x2e03('0xb5')][_0x2e03('0x7b')](_0x578e93,{'userId':_0x2b72f1});_0x1e9ce6[_0x2e03('0xe4')](_0x42068a['offset'],_0x14c0d6);}[_0x2e03('0xaa')](_0x2a2672){(_0x2a2672=this[_0x2e03('0x7a')](_0x2a2672,this[_0x2e03('0x35')]))[_0x2e03('0x40')]();const _0x90960e=null===_0x2a2672[_0x2e03('0xb3')]?null:_0x2a2672[_0x2e03('0xb3')]||this[_0x2e03('0x2a')]['plugins']['get']('Users')['me']['id'],_0x2ac012=_0x2a2672[_0x2e03('0x43')](),_0x1df46c=_0x2ac012[_0x2e03('0x13')],_0x355805=_0x2ac012[_0x2e03('0xdf')];!function _0x2e67e4(_0x3fe524,_0x28bea8,_0x216b21,_0xa45e79){for(let _0x23c5de=_0x216b21;_0x23c5de<_0xa45e79;_0x23c5de++){const _0x5d37ce=_0x28bea8[_0x2e03('0x70')](_0x23c5de);_0x5d37ce['is'](_0x2e03('0x4b'),_0x2e03('0xfb'))?_0x3fe524[_0x2e03('0x7b')](_0x5d37ce[_0x2e03('0x2f')](_0x2e03('0x6f')),{'userId':_0x90960e}):(_0x3fe524['set'](_0x5d37ce['getAttribute'](_0x2e03('0x15')),{'userId':_0x90960e}),_0x2e67e4(_0x3fe524,_0x5d37ce,0x0,_0x5d37ce[_0x2e03('0x91')]),_0x3fe524['set'](_0x5d37ce[_0x2e03('0x2f')](_0x2e03('0xff')),{'userId':_0x90960e}));}}(this[_0x2e03('0xb5')],_0x1df46c,_0x355805,_0x355805+_0x2a2672['howMany']);}[_0x2e03('0xc3')](_0x116485){const _0x50562c=null===(_0x116485=this['_cloneOperation'](_0x116485,this[_0x2e03('0x35')]))[_0x2e03('0xb3')]?null:_0x116485[_0x2e03('0xb3')]||this[_0x2e03('0x2a')]['plugins']['get'](_0x2e03('0x3a'))['me']['id'],_0x2ab7cb=_0x116485[_0x2e03('0x104')]['parent'],_0x416964=_0x116485['sourcePosition']['parent'],_0x21bf21=_0x2ab7cb[_0x2e03('0x2f')]('vid_end'),_0x423a3b=_0x416964['getAttribute'](_0x2e03('0x15'));_0x2ab7cb['_setAttribute']('vid_end',_0x416964[_0x2e03('0x2f')](_0x2e03('0xff'))),_0x416964[_0x2e03('0xe1')](_0x2e03('0xff'),_0x21bf21),this[_0x2e03('0xb5')][_0x2e03('0x7b')](_0x423a3b,{'userId':_0x50562c}),this[_0x2e03('0xb5')][_0x2e03('0x7b')](_0x21bf21,{'userId':_0x50562c}),_0x116485['_execute']();}[_0x2e03('0x57')](_0x518586){const _0xbd892d=null===(_0x518586=this[_0x2e03('0x7a')](_0x518586,this[_0x2e03('0x35')]))[_0x2e03('0xb3')]?null:_0x518586[_0x2e03('0xb3')]||this[_0x2e03('0x2a')][_0x2e03('0x78')]['get'](_0x2e03('0x3a'))['me']['id'],_0x44e71b=_0x518586[_0x2e03('0xeb')],_0x19eae8=_0x518586[_0x2e03('0x5')][_0x2e03('0x13')];_0x518586[_0x2e03('0x40')]();const _0x2e128e=_0x19eae8[_0x2e03('0x2f')](_0x2e03('0xff')),_0x2d9736=_0x518586[_0x2e03('0x84')][_0x2e03('0x22')];if(_0x44e71b){const _0x89e2fd=_0x2d9736[_0x2e03('0x2f')]('vid_end'),_0x2e6119=_0x19eae8[_0x2e03('0x2f')]('vid_end');_0x19eae8[_0x2e03('0xe1')](_0x2e03('0xff'),_0x89e2fd),_0x2d9736[_0x2e03('0xe1')](_0x2e03('0xff'),_0x2e6119),this[_0x2e03('0xb5')][_0x2e03('0x7b')](_0x19eae8[_0x2e03('0x2f')](_0x2e03('0xff')),{'userId':_0xbd892d}),this['_touched'][_0x2e03('0x7b')](_0x2d9736[_0x2e03('0x2f')]('vid_start'),{'userId':_0xbd892d});}else{const _0x2f533f=this[_0x2e03('0x64')]++,_0x409763=this[_0x2e03('0x64')]++;_0x19eae8[_0x2e03('0xe1')]('vid_end',_0x2f533f),_0x2d9736[_0x2e03('0xe1')](_0x2e03('0x15'),_0x409763),_0x2d9736[_0x2e03('0xe1')](_0x2e03('0xff'),_0x2e128e),this[_0x2e03('0xb5')]['set'](_0x2f533f,{'userId':_0xbd892d}),this['_touched'][_0x2e03('0x7b')](_0x409763,{'userId':_0xbd892d});}}[_0x2e03('0xbb')](_0x569100){if(!_0x569100[_0x2e03('0xd3')])return;const _0x19bef9=(_0x569100=this[_0x2e03('0x7a')](_0x569100,this[_0x2e03('0x2')]))[_0x2e03('0x5c')]?_0x569100[_0x2e03('0x5c')][_0x2e03('0x1a')]:null,_0x529154=_0x569100['newRange']?_0x569100[_0x2e03('0x33')][_0x2e03('0x1a')]:null;_0x19bef9&&this[_0x2e03('0x58')][_0x2e03('0xa')](_0x569100['name']),_0x529154&&this[_0x2e03('0x58')][_0x2e03('0x7b')](_0x569100[_0x2e03('0x85')],_0x569100['newRange'][_0x2e03('0x95')]());const _0xd5adef=null===_0x569100['_authorId']?null:_0x569100['_authorId']||this[_0x2e03('0x2a')][_0x2e03('0x78')][_0x2e03('0x6c')](_0x2e03('0x3a'))['me']['id'],_0x21fc30=_0x569100[_0x2e03('0x85')];if(!this[_0x2e03('0xc7')][_0x2e03('0xa9')](_0x21fc30))return void this[_0x2e03('0xc7')][_0x2e03('0x7b')](_0x21fc30,{'range':_0x569100[_0x2e03('0x5c')],'userId':_0xd5adef});const _0x4ed19a=this['_touchedMarkers'][_0x2e03('0x6c')](_0x21fc30),_0x169192=_0x4ed19a[_0x2e03('0xcc')],_0x3e67eb=_0x569100[_0x2e03('0x33')];null==_0x169192&&null==_0x3e67eb||_0x169192&&_0x3e67eb&&_0x169192['isEqual'](_0x3e67eb)?this[_0x2e03('0xc7')][_0x2e03('0xa')](_0x569100['name']):_0x4ed19a[_0x2e03('0xc4')]=_0xd5adef;}['_handleRootOperation'](_0x73605,_0x1c6424){this['_diffRoots'][_0x2e03('0xa9')](_0x73605[_0x2e03('0x8e')])?this[_0x2e03('0x2')][_0x2e03('0x6c')](_0x73605['rootName'])[_0x2e03('0xf2')]=_0x73605['isAdd']:(this[_0x2e03('0x2')][_0x2e03('0x7b')](_0x73605['rootName'],J(_0x73605[_0x2e03('0x8e')],!0x0)),this[_0x2e03('0x2d')][_0x2e03('0x7b')](_0x73605[_0x2e03('0x8e')],{}),_0x1c6424&&this['_idsRoots'][_0x2e03('0x7b')](_0x73605['rootName'],J(_0x73605[_0x2e03('0x8e')],!0x0)));const _0x140348=null===_0x73605[_0x2e03('0xb3')]?null:_0x73605[_0x2e03('0xb3')]||this[_0x2e03('0x2a')][_0x2e03('0x78')][_0x2e03('0x6c')]('Users')['me']['id'],_0x24029d=this[_0x2e03('0x5b')][_0x2e03('0x6c')](_0x73605[_0x2e03('0x8e')]);_0x24029d&&_0x24029d[_0x2e03('0xc4')]===_0x140348?this['_touchedRoots']['delete'](_0x73605[_0x2e03('0x8e')]):this[_0x2e03('0x5b')][_0x2e03('0x7b')](_0x73605[_0x2e03('0x8e')],{'userId':_0x140348,'isAttached':_0x73605[_0x2e03('0x20')]});}['_handleRootAttributeOperation'](_0x1ab10b){const _0x4eeb09=this[_0x2e03('0x2d')][_0x2e03('0x6c')](_0x1ab10b[_0x2e03('0x1a')][_0x2e03('0x8e')]);null===_0x1ab10b['newValue']?delete _0x4eeb09[_0x1ab10b[_0x2e03('0x76')]]:_0x4eeb09[_0x1ab10b[_0x2e03('0x76')]]=_0x1ab10b[_0x2e03('0xbd')];}}function B(_0x465536){const _0x372110=J(_0x465536[_0x2e03('0x8e')],_0x465536[_0x2e03('0x50')]());for(const _0x47b6b9 of _0x465536[_0x2e03('0xc9')]()){const _0x5b18f0=_0x47b6b9['_clone'](!0x0);_0x372110[_0x2e03('0x89')](_0x5b18f0);}return _0x372110;}function J(_0x29c3a6,_0x5bbb7f=!0x0){const _0x59d2bd=new _0x3273da();return _0x59d2bd[_0x2e03('0x8e')]=_0x29c3a6,_0x59d2bd[_0x2e03('0xf2')]=_0x5bbb7f,_0x59d2bd[_0x2e03('0x50')]=()=>_0x59d2bd[_0x2e03('0xf2')],_0x59d2bd;}function H(_0x184a72,_0x441136,_0x12bb48){const _0x2ceeca=_0x2e03('0x67')==_0x184a72[_0x2e03('0x82')]?_0x12bb48[_0x2e03('0x28')](_0x184a72[_0x2e03('0xd1')],_0x2e03('0x52')):_0x12bb48[_0x2e03('0xf3')](_0x184a72[_0x2e03('0xd1')]);return _0x12bb48['createPositionFromPath'](_0x441136,_0x2ceeca['path'],_0x2ceeca['stickiness']);}function q(_0x4d63a6,_0x425e7c,_0xc849aa){const _0x4dff61=_0x2e03('0x54')==_0x4d63a6[_0x2e03('0x82')]?_0xc849aa[_0x2e03('0x28')](_0x4d63a6[_0x2e03('0xd1')],0x0):_0xc849aa[_0x2e03('0x105')](_0x4d63a6[_0x2e03('0xd1')]);return _0xc849aa[_0x2e03('0x92')](_0x425e7c,_0x4dff61[_0x2e03('0x8d')],_0x4dff61[_0x2e03('0x7f')]);}