@ckeditor/ckeditor5-revision-history 37.1.0 → 38.0.0-rc.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 (87) hide show
  1. package/build/revision-history.js +1 -1
  2. package/lang/translations/af.po +1 -1
  3. package/lang/translations/ar.po +1 -1
  4. package/lang/translations/az.po +1 -1
  5. package/lang/translations/bg.po +1 -1
  6. package/lang/translations/bn.po +1 -1
  7. package/lang/translations/bs.po +1 -1
  8. package/lang/translations/ca.po +1 -1
  9. package/lang/translations/cs.po +1 -1
  10. package/lang/translations/da.po +1 -1
  11. package/lang/translations/de-ch.po +1 -1
  12. package/lang/translations/de.po +1 -1
  13. package/lang/translations/el.po +1 -1
  14. package/lang/translations/en-au.po +1 -1
  15. package/lang/translations/en-gb.po +1 -1
  16. package/lang/translations/es-co.po +1 -1
  17. package/lang/translations/es.po +1 -1
  18. package/lang/translations/et.po +1 -1
  19. package/lang/translations/fa.po +1 -1
  20. package/lang/translations/fi.po +1 -1
  21. package/lang/translations/fr.po +1 -1
  22. package/lang/translations/gl.po +1 -1
  23. package/lang/translations/he.po +1 -1
  24. package/lang/translations/hi.po +1 -1
  25. package/lang/translations/hr.po +1 -1
  26. package/lang/translations/hu.po +1 -1
  27. package/lang/translations/id.po +1 -1
  28. package/lang/translations/it.po +1 -1
  29. package/lang/translations/ja.po +1 -1
  30. package/lang/translations/jv.po +1 -1
  31. package/lang/translations/ko.po +1 -1
  32. package/lang/translations/ku.po +1 -1
  33. package/lang/translations/lt.po +1 -1
  34. package/lang/translations/lv.po +1 -1
  35. package/lang/translations/ms.po +1 -1
  36. package/lang/translations/ne.po +1 -1
  37. package/lang/translations/nl.po +1 -1
  38. package/lang/translations/no.po +1 -1
  39. package/lang/translations/pl.po +1 -1
  40. package/lang/translations/pt-br.po +1 -1
  41. package/lang/translations/pt.po +1 -1
  42. package/lang/translations/ro.po +1 -1
  43. package/lang/translations/ru.po +1 -1
  44. package/lang/translations/sk.po +1 -1
  45. package/lang/translations/sr-latn.po +1 -1
  46. package/lang/translations/sr.po +1 -1
  47. package/lang/translations/sv.po +1 -1
  48. package/lang/translations/th.po +1 -1
  49. package/lang/translations/tk.po +1 -1
  50. package/lang/translations/tr.po +1 -1
  51. package/lang/translations/tt.po +1 -1
  52. package/lang/translations/ug.po +1 -1
  53. package/lang/translations/uk.po +1 -1
  54. package/lang/translations/ur.po +1 -1
  55. package/lang/translations/vi.po +1 -1
  56. package/lang/translations/zh-cn.po +1 -1
  57. package/lang/translations/zh.po +1 -1
  58. package/package.json +2 -2
  59. package/src/changeitem.js +1 -1
  60. package/src/editor/revisionviewereditor.js +1 -1
  61. package/src/editor/revisionviewereditorui.js +1 -1
  62. package/src/editor/revisionviewereditoruiview.js +1 -1
  63. package/src/revision.js +1 -1
  64. package/src/revisiondiff.js +1 -1
  65. package/src/revisionhistory.js +1 -1
  66. package/src/revisionsrepository.js +1 -1
  67. package/src/revisiontracker.js +1 -1
  68. package/src/revisionviewer.js +1 -1
  69. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  70. package/src/ui/revision/revisionauthorview.js +1 -1
  71. package/src/ui/revision/revisionnameview.js +1 -1
  72. package/src/ui/revision/revisionview.js +1 -1
  73. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  74. package/src/ui/revision/subrevisionview.js +1 -1
  75. package/src/ui/revision/utils.js +1 -1
  76. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  77. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  78. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  79. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  80. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  81. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  82. package/src/ui/revisionssidebar/utils.js +1 -1
  83. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  84. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  85. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  86. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  87. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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')]);}
23
+ const _0x170e=['_isPendingUpdate','isReady','model','children','update','updateRevisions','howMany','root','reInit','_replaceEditorDataWithRevisionData','keys','_prepareViewToSave','plugins','repository','_createInitialRevision','markerToData','config','nodeAfter','data-revision-','elementEnd','_fixPosition','_loadedStateData','_getBaseVids','key','revisionHistory.resumeUnsavedRevision','revision-end','attributes','previousPosition','start','vid','createPositionFromPath','getCurrentRevisionId','attributesAfter','_handleRootAttributeOperation','_initialRoots','_lastTo','splitPosition','reverse','PendingActions','split','insertions','getRevisions','history','document','insert','_idsRoots','_markChanges','upcast','_removeRevisionMarkers','toModel','_reset','reinsert','_handleMoveOperation','shift','_execute','dataDowncast','_createFromRanges','_processRootBeforeSave','$text','end','createPositionAfter','affectsData','size','Empty\x20document','from','_saveMetaData','_initialRevisionId','marker','_source','_removePendingAction','_touchedMarkers','toData','fromVersion','setRevisionData','length','_insertChild','item','createdAt','initialData','startsWith','rootName','currentRevision','oldRange','ready','element','getAncestors','vid_start','source','getUser','_update','bind','_removeMetaData','_handleInsertOperation','_makeRevision','roots','toVersion','processor','remove','rootsAttributes','collaboration.channelId','saveRevision','editor','revision:','set','afterInit','createRange','locale','getRoot','_touched','Users','markers','toView','_transformMarkers','creatorId','addRevision','move','_handleRootOperation','addRootAttribute','_applyOperations','_getState','_makeModelFromViewString','attachChange','sendBufferedUpdates','init','_bufferedUpdates','string','documentFragment','revision','Initial\x20revision','_bufferUpdate','range','_clone','clear','position','revision-start','_findInsertionIndex','getNodeByPath','delete','view','getChild','getChildren','_lastFrom','elementStart','includes','_isInit','push','getAttributes','_startingVersion','createRevision','_generateTape','_calculateMetaData','newRange','resolve','max','creator','RevisionTracker','getRange','name','type','path','_baseRootsAttributes','useFillerType','NEGATIVE_INFINITY','authorsIds','_diffRoots','find','version','getIndex','_touchedRoots','RealTimeCollaborationClient','isEqual','keepParagraph','createPositionAt','_loadRevisionData','setSource','getWalker','_markers','_diffRootsAttributes','_fixRange','_handleMarkerOperation','clone','isAdd','parent','_cloneOperation','hasContent','buildRevisionData','_addPendingAction','RevisionsRepository','filter','getAttribute','_setConversion','stickiness','merge','_handleSplitOperation','_revisionDataBuilder','getRevisionDocumentData','_baseIdsRoots','dataToMarker','_loadState','deletion','some','_getVidAttributeName','diffData','_copyMarkers','requires','for','map','_handleOperation','get','_continueCurrentRevision','_isAttached','vid_end','tableCell','add','_pendingAction','editing','_startingRevisionId','conversion','isAttached','define','authors','getRevision','userId','getTime','_savedMetaData','_revisionId','has','newValue','_handleMergeOperation','_authorId','addRevisionData','attributesBefore','nodes','graveyardPosition','targetPosition','createPositionBefore','getRootNames','deletions','then','_getPreviousFrom','_createCurrentRevision','getRevisionRootsAttributes','paragraph','_setAttribute','_getFromVersion','_makeIdsRoot','getData','getLatestVersion','_baseRoots','data','slice','baseVersion','loadState','parse','offsetSize','values','adapter','_fixOperation','isEnabled','getTransformedByOperation','finally','$graveyard','forEach'];(function(_0x44854e,_0x170e17){const _0x584882=function(_0x429d74){while(--_0x429d74){_0x44854e['push'](_0x44854e['shift']());}};_0x584882(++_0x170e17);}(_0x170e,0x184));const _0x5848=function(_0x44854e,_0x170e17){_0x44854e=_0x44854e-0x0;let _0x584882=_0x170e[_0x44854e];return _0x584882;};import{Users as _0x1a6a68}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x34844c,PendingActions as _0xfdd86a}from'ckeditor5/src/core';import{logWarning as _0x1461fb,uid as _0x31c0d1}from'ckeditor5/src/utils';import{Position as _0x5cf6ce,Range as _0x325215,Element as _0xff880d,DocumentFragment as _0x2edb62,ViewText as _0x4a0d50,ViewElement as _0x6a31b0,ViewContainerElement as _0x20aef9,ViewAttributeElement as _0x301b3c,ViewEmptyElement as _0x3e16a4,ViewRawElement as _0x45d35d,ViewUIElement as _0x3d25ea,ViewDocumentFragment as _0x27b500}from'ckeditor5/src/engine';import _0x222cd5 from'./revisionsrepository';import{getTranslation as _0x20a1bb}from'./utils/common-translations';import{cloneDeep as _0x1a20f3,isEqual as _0xa78a5b}from'lodash-es';const j={'c':_0x20aef9,'a':_0x301b3c,'e':_0x3e16a4,'r':_0x45d35d,'u':_0x3d25ea};export default class l extends _0x34844c{static get['pluginName'](){return _0x5848('0x1e');}static get[_0x5848('0x4f')](){return[_0x1a6a68,_0x222cd5,_0xfdd86a];}constructor(_0x5daa1b){super(_0x5daa1b),this['adapter']=null,this[_0x5848('0xdb')]=null,this['_revisionDataBuilder']=new T(this[_0x5848('0xef')]),this[_0x5848('0xcc')]=this[_0x5848('0xef')][_0x5848('0x9a')]['get'](_0x5848('0xed'))||'initial',this[_0x5848('0x106')]=new Map(),this[_0x5848('0x9f')]=null;const _0x4e287c=_0x31c0d1();this[_0x5848('0xce')]={'history':this[_0x5848('0xef')][_0x5848('0x8c')][_0x5848('0xb5')][_0x5848('0xb4')],'getLatestVersion':()=>Promise[_0x5848('0x1b')](this[_0x5848('0xef')][_0x5848('0x8c')]['document']['version']),'getCurrentRevisionId':()=>_0x4e287c},this['set'](_0x5848('0x8b'),!0x1),this[_0x5848('0xf1')](_0x5848('0x85'),!0x0),this['set'](_0x5848('0x8a'),!0x1),this[_0x5848('0xef')][_0x5848('0x9a')][_0x5848('0x5e')](_0x5848('0xa2'),!0x0),this[_0x5848('0xef')][_0x5848('0x5c')][_0x5848('0x50')](_0x5848('0xb9'))[_0x5848('0x48')]({'view':_0x5848('0x2')});}[_0x5848('0x105')](){this[_0x5848('0x97')]=this['editor'][_0x5848('0x96')]['get'](_0x5848('0x3e')),this[_0x5848('0x41')](),this[_0x5848('0xef')][_0x5848('0x7c')]['on'](_0x5848('0xdd'),()=>{const _0x54f114=this['repository'][_0x5848('0x60')](0x0),_0x58c4f9=_0x54f114&&null===_0x54f114['creator']?_0x54f114:null;if(this['_continueCurrentRevision']=!!_0x58c4f9&&this['editor']['config']['get'](_0x5848('0xa2')),this[_0x5848('0xef')][_0x5848('0x96')][_0x5848('0x65')](_0x5848('0x2c'))){const _0x2e4d3d=this[_0x5848('0xce')][_0x5848('0xa9')](),_0x1a2cc3=this[_0x5848('0x97')][_0x5848('0x60')](_0x2e4d3d);if(_0x1a2cc3)this[_0x5848('0x16')]=_0x1a2cc3['fromVersion'],this[_0x5848('0x54')]=!0x1;else{const _0x41b3d2=this['_source'][_0x5848('0xb4')]['_operations'][_0x5848('0x28')](_0x45f996=>!_0x45f996[_0x5848('0x13')]),_0x3ebd81=_0x41b3d2?_0x41b3d2[_0x5848('0x7e')]:this[_0x5848('0xce')][_0x5848('0xb4')][_0x5848('0x29')];_0x54f114?(_0x54f114[_0x5848('0xe9')]<_0x3ebd81&&_0x54f114[_0x5848('0xe3')]({'toVersion':_0x3ebd81}),this['_continueCurrentRevision']?(this[_0x5848('0xce')][_0x5848('0xa9')]=()=>_0x58c4f9['id'],this[_0x5848('0x16')]=_0x58c4f9[_0x5848('0xd2')]):(this['_startingVersion']=_0x54f114['toVersion'],this[_0x5848('0x54')]=!0x1)):(this['_startingVersion']=_0x3ebd81,this[_0x5848('0x54')]=!0x1);}}else _0x58c4f9&&(this[_0x5848('0xef')]['model'][_0x5848('0xb5')][_0x5848('0xb4')][_0x5848('0x29')]=Math[_0x5848('0x1c')](_0x58c4f9[_0x5848('0xe9')],this['editor']['model'][_0x5848('0xb5')][_0x5848('0xb4')][_0x5848('0x29')]),_0x58c4f9[_0x5848('0xd2')]===_0x58c4f9['toVersion']?(0x0!==_0x58c4f9[_0x5848('0xd2')]&&(this['_source'][_0x5848('0xa9')]=()=>_0x58c4f9['id']),this['_continueCurrentRevision']=!0x1):this[_0x5848('0x54')]&&(this[_0x5848('0xce')][_0x5848('0xa9')]=()=>_0x58c4f9['id'],this[_0x5848('0x16')]=_0x58c4f9[_0x5848('0xd2')])),this['_continueCurrentRevision']||(this[_0x5848('0x16')]=this[_0x5848('0xef')][_0x5848('0x8c')][_0x5848('0xb5')][_0x5848('0x29')]);this[_0x5848('0x45')]['init'](this[_0x5848('0xce')][_0x5848('0xb4')]),this[_0x5848('0x98')](this['_startingVersion']),this[_0x5848('0x73')](this['_startingVersion']),this[_0x5848('0x83')]&&this[_0x5848('0x104')]();}),this[_0x5848('0xe4')](_0x5848('0x8b'))['to'](this,_0x5848('0x8a'),_0x2aa687=>!_0x2aa687);}async[_0x5848('0xf2')](){if(this[_0x5848('0x97')][_0x5848('0xd4')]>0x0){const _0x4fea36=this['repository'][_0x5848('0x60')](0x0),_0x1ea2f7=await this[_0x5848('0x46')](_0x4fea36),_0x3d111c=await this[_0x5848('0x74')](_0x4fea36);this['_replaceEditorDataWithRevisionData'](_0x1ea2f7,_0x3d111c);}}[_0x5848('0x31')](_0x1f989c){this[_0x5848('0xce')]=_0x1f989c;}async[_0x5848('0x8e')](){const _0x2520e8=await this['_source'][_0x5848('0x7a')]();if(_0x2520e8>this[_0x5848('0xdb')][_0x5848('0xe9')]){await this[_0x5848('0x49')]();const _0x2ff7db=this['buildRevisionData']({'revision':this[_0x5848('0xdb')],'to':_0x2520e8});_0x2ff7db[_0x5848('0x5f')]=_0x2ff7db[_0x5848('0x26')]['map'](_0x5300c2=>this[_0x5848('0xef')][_0x5848('0x96')][_0x5848('0x53')](_0x5848('0xf7'))[_0x5848('0xe2')](_0x5300c2)),this[_0x5848('0xdb')][_0x5848('0xe3')](_0x2ff7db);}}async['_loadState'](){this['_continueCurrentRevision']&&!this[_0x5848('0x9f')]&&(await this[_0x5848('0x30')](this[_0x5848('0xdb')]),this[_0x5848('0x45')][_0x5848('0x7f')](this['currentRevision']),this[_0x5848('0x9f')]={'fromVersion':this[_0x5848('0xdb')][_0x5848('0xd2')],'authors':this[_0x5848('0xdb')][_0x5848('0x5f')][_0x5848('0x7d')]()});}async[_0x5848('0xee')](_0x1dca98={},_0x44a843=null){const _0x4a009b=[];await this['_loadState'](),this[_0x5848('0x54')]=!0x1,_0x44a843>this[_0x5848('0xdb')][_0x5848('0xe9')]&&(_0x44a843=null),null===_0x44a843&&(_0x44a843=await this[_0x5848('0xce')]['getLatestVersion']());const _0x104468=this[_0x5848('0x77')](_0x44a843),_0x224943=this[_0x5848('0x3c')]({'from':_0x104468,'to':_0x44a843});if(this[_0x5848('0xdb')][_0x5848('0xe9')]<_0x44a843){const _0x6d1434=this[_0x5848('0x3c')]({'revision':this[_0x5848('0xdb')],'from':_0x44a843,'to':_0x44a843});_0x6d1434[_0x5848('0x5f')]=[],_0x6d1434[_0x5848('0x26')]=[],_0x6d1434['id']=this[_0x5848('0xdb')]['id'],this[_0x5848('0xdb')]['_update'](_0x6d1434,!0x0),delete _0x6d1434[_0x5848('0x5f')],_0x4a009b[_0x5848('0x14')](_0x6d1434);}_0x1dca98[_0x5848('0xfb')]=this[_0x5848('0xef')][_0x5848('0x96')][_0x5848('0x53')]('Users')['me']['id'],_0x1dca98[_0x5848('0x20')]=_0x1dca98[_0x5848('0x20')]||null,_0x1dca98['id']=_0x1dca98['id']||_0x31c0d1(),_0x1dca98={..._0x1dca98,..._0x224943};const _0x305b20=this['addRevisionData'](_0x1dca98);_0x4a009b['push'](_0x1dca98);const _0x1e8cb6=this['repository'][_0x5848('0x2a')](_0x305b20);if(0x0!==_0x1e8cb6){const _0x3bbd18=this[_0x5848('0x97')][_0x5848('0x60')](_0x1e8cb6-0x1);if(_0x3bbd18[_0x5848('0xd2')]!==_0x44a843){const _0x3544c4=this[_0x5848('0x45')]['getData'](_0x44a843,_0x3bbd18['toVersion']),_0xb5a21c={'id':_0x3bbd18['id'],'diffData':_0x3544c4['diffData'],'authorsIds':_0x3544c4['authorsIds'],'authors':_0x3544c4[_0x5848('0x26')][_0x5848('0x51')](_0x497d45=>this[_0x5848('0xef')]['plugins'][_0x5848('0x53')](_0x5848('0xf7'))['getUser'](_0x497d45)),'fromVersion':_0x44a843};_0x3bbd18===this[_0x5848('0xdb')]&&(_0xb5a21c['createdAt']=new Date(_0x1dca98[_0x5848('0xd7')][_0x5848('0x62')]()+0xa)),_0x3bbd18[_0x5848('0xe3')](_0xb5a21c,!0x0),delete _0xb5a21c['authors'],_0x4a009b[_0x5848('0x14')](_0xb5a21c);}}if(this[_0x5848('0x83')]){for(const _0x115e42 of _0x4a009b)this[_0x5848('0x4')](_0x115e42['id'],_0x115e42,!0x0);this[_0x5848('0x104')]();}return _0x305b20;}[_0x5848('0x69')](_0x30738d){const _0x560f6c=this[_0x5848('0x97')][_0x5848('0x17')](_0x30738d);return this[_0x5848('0x83')]&&_0x560f6c['on']('_update',(_0x21ad72,_0xba6b1b,_0x1fb655)=>{_0x1fb655||(this['_bufferUpdate'](_0xba6b1b['id'],_0xba6b1b,!0x0),this['sendBufferedUpdates']());}),this['repository'][_0x5848('0xfc')](_0x560f6c,this[_0x5848('0xa')](_0x560f6c)),_0x560f6c;}async['getRevisionDocumentData'](_0x277a3e){await this[_0x5848('0x30')](_0x277a3e);const _0x41a5c4={};for(const _0x3f93d5 in _0x277a3e[_0x5848('0x4d')]){if(_0x277a3e['diffData'][_0x3f93d5]['attachChange']&&!_0x277a3e[_0x5848('0x4d')][_0x3f93d5]['attachChange'][_0x5848('0x5d')])continue;const _0x238ea4=this[_0x5848('0xba')](JSON[_0x5848('0x80')](_0x277a3e['diffData'][_0x3f93d5][_0x5848('0xb2')])),_0x1f90df=this['editor']['editing'][_0x5848('0xd')]['document'],_0x4834ce=new _0x27b500(_0x1f90df,_0x238ea4['map'](_0xa25a08=>F(_0xa25a08,this['editor'])));this[_0x5848('0xef')]['data']['processor']['useFillerType']('marked'),_0x41a5c4[_0x3f93d5]=this[_0x5848('0xef')][_0x5848('0x7c')][_0x5848('0xea')][_0x5848('0xd1')](_0x4834ce),this['editor']['data'][_0x5848('0xea')][_0x5848('0x24')]('default');}return _0x41a5c4;}async['getRevisionRootsAttributes'](_0xefd3a6){await this[_0x5848('0x30')](_0xefd3a6);const _0xfc244a={};for(const _0x2fa8c1 in _0xefd3a6[_0x5848('0x4d')])_0xefd3a6['diffData'][_0x2fa8c1][_0x5848('0x103')]&&!_0xefd3a6[_0x5848('0x4d')][_0x2fa8c1][_0x5848('0x103')][_0x5848('0x5d')]||(_0xfc244a[_0x2fa8c1]=_0xefd3a6[_0x5848('0x4d')][_0x2fa8c1][_0x5848('0xaa')]||{});return _0xfc244a;}['sendBufferedUpdates'](){if(0x0===this[_0x5848('0x106')][_0x5848('0xc8')])return;if(this[_0x5848('0x8a')])return;let _0x5e5f16=Array[_0x5848('0xca')](this[_0x5848('0x106')][_0x5848('0x82')]());this[_0x5848('0x106')]['clear']();for(let _0x4da5a5=0x0;_0x4da5a5<_0x5e5f16[_0x5848('0xd4')];_0x4da5a5++){const _0x5681e2=_0x5e5f16[_0x4da5a5];let _0x1d72b7=!0x1;for(const _0x17d447 of Object['keys'](_0x5681e2))void 0x0===_0x5681e2[_0x17d447]?delete _0x5681e2[_0x17d447]:'id'!==_0x17d447&&(_0x1d72b7=!0x0);_0x1d72b7||(_0x5e5f16[_0x4da5a5]=null);}if(_0x5e5f16=_0x5e5f16['filter'](_0x5d4666=>null!==_0x5d4666),!_0x5e5f16[_0x5848('0xd4')])return;for(let _0x16b662=0x0;_0x16b662<_0x5e5f16[_0x5848('0xd4')];_0x16b662++){const _0x3da442=_0x5e5f16[_0x16b662];void 0x0!==_0x3da442['fromVersion']&&void 0x0===_0x3da442[_0x5848('0xe9')]&&(_0x3da442[_0x5848('0xe9')]=this[_0x5848('0x97')][_0x5848('0x60')](_0x3da442['id'])['toVersion']),void 0x0!==_0x3da442[_0x5848('0xe9')]&&void 0x0===_0x3da442[_0x5848('0xd2')]&&(_0x3da442[_0x5848('0xd2')]=this[_0x5848('0x97')][_0x5848('0x60')](_0x3da442['id'])[_0x5848('0xd2')]);}const _0x203ebe=this[_0x5848('0xef')][_0x5848('0x9a')]['get'](_0x5848('0xed'));this[_0x5848('0x8a')]=!0x0,this[_0x5848('0x3d')](),this[_0x5848('0x83')][_0x5848('0x8f')](_0x5e5f16,_0x203ebe)[_0x5848('0x87')](()=>{this[_0x5848('0x8a')]=!0x1;})[_0x5848('0x71')](_0xbd48ff=>{if(_0xbd48ff)for(const _0x1b4343 of _0xbd48ff)this['setRevisionData']({'id':_0x1b4343['id'],'createdAt':_0x1b4343[_0x5848('0xd7')]});this['_removePendingAction'](),this[_0x5848('0x104')]();});}[_0x5848('0x93')](_0x19233e,_0x2f5be8){let _0x913122=this[_0x5848('0xef')][_0x5848('0x9a')]['get'](_0x5848('0xd8')),_0xa23260=this[_0x5848('0xef')][_0x5848('0x9a')][_0x5848('0x53')](_0x5848('0xec'));if(void 0x0===_0x913122){_0x913122={};for(const _0x4f5962 of this[_0x5848('0xef')][_0x5848('0x8c')][_0x5848('0xb5')][_0x5848('0x6f')]())_0x913122[_0x4f5962]='';}if(_0x5848('0x0')==typeof _0x913122&&(_0x913122={'main':_0x913122}),void 0x0===_0xa23260){_0xa23260={};for(const _0x466a91 of this[_0x5848('0xef')][_0x5848('0x8c')][_0x5848('0xb5')][_0x5848('0x6f')]())_0xa23260[_0x466a91]={};}let _0x5ad8c6=!0x1;const _0xc1e762=Object[_0x5848('0x94')](_0x913122),_0x4e6283=Object[_0x5848('0x94')](_0x19233e);for(const _0x559c37 of _0xc1e762){if(_0x913122[_0x559c37]!==_0x19233e[_0x559c37]&&''!==_0x913122[_0x559c37]['trim']()){_0x5ad8c6=!0x0;break;}if(!_0xa78a5b(_0xa23260[_0x559c37],_0x2f5be8[_0x559c37])&&Object[_0x5848('0x94')](_0xa23260[_0x559c37])[_0x5848('0xd4')]>0x0){_0x5ad8c6=!0x0;break;}}_0x5ad8c6||(_0x5ad8c6=_0x4e6283[_0x5848('0x4b')](_0x49bbcd=>!_0xc1e762[_0x5848('0x12')](_0x49bbcd))),_0x5ad8c6&&_0x1461fb('editor-initial-data-replaced-with-revision-data',{'editorData':_0x913122,'editorRootsAttributes':_0xa23260,'revisionData':_0x19233e,'revisionRootsAttributes':_0x2f5be8}),this['editor']['config']['set'](_0x5848('0xd8'),_0x19233e),this[_0x5848('0xef')][_0x5848('0x9a')][_0x5848('0xf1')](_0x5848('0xec'),_0x2f5be8);}[_0x5848('0x3d')](){if(!this[_0x5848('0x59')]){const _0x25a1e2=this[_0x5848('0xef')][_0x5848('0x96')][_0x5848('0x53')](_0x5848('0xb0'));this[_0x5848('0x59')]=_0x25a1e2[_0x5848('0x58')](_0x20a1bb(this[_0x5848('0xef')][_0x5848('0xf4')],'PENDING_ACTION_REVISION_HISTORY'));}}[_0x5848('0xcf')](){this[_0x5848('0x59')]&&(this['editor'][_0x5848('0x96')]['get']('PendingActions')['remove'](this[_0x5848('0x59')]),this[_0x5848('0x59')]=null);}[_0x5848('0xa')](_0xed97a4){const _0xa7ba5=this[_0x5848('0x97')][_0x5848('0xb3')]();_0xa7ba5[_0x5848('0xaf')]();let _0x2d6a2a=0x0;for(;_0x2d6a2a<_0xa7ba5['length'];){const _0x1481d4=_0xa7ba5[_0x2d6a2a];if(_0x1481d4===this[_0x5848('0xdb')]){_0x2d6a2a++;continue;}if(_0x1481d4['id']===this[_0x5848('0xcc')])break;const _0x149689=_0xed97a4[_0x5848('0xe9')]-_0x1481d4[_0x5848('0xe9')]||_0xed97a4[_0x5848('0xd2')]-_0x1481d4['fromVersion'];if(_0x149689>0x0)break;if(_0x149689<0x0)_0x2d6a2a++;else{if(!_0xed97a4['creator']&&_0x1481d4[_0x5848('0x1d')])break;if(_0x1481d4[_0x5848('0x1d')]||!_0xed97a4['creator']){if(_0xed97a4[_0x5848('0xd7')]>_0x1481d4[_0x5848('0xd7')])break;_0x2d6a2a++;}else _0x2d6a2a++;}}return _0x2d6a2a;}[_0x5848('0xd3')](_0x2a9955){const _0x39d767=this[_0x5848('0x97')]['getRevision'](_0x2a9955['id']);if(_0x2a9955[_0x5848('0xd7')]&&(_0x2a9955[_0x5848('0xd7')]=new Date(_0x2a9955[_0x5848('0xd7')])),_0x2a9955[_0x5848('0x26')]){const _0x517c88=this['editor']['plugins']['get'](_0x5848('0xf7'));_0x2a9955[_0x5848('0x5f')]=_0x2a9955[_0x5848('0x26')][_0x5848('0x51')](_0x318d7b=>_0x517c88[_0x5848('0xe2')](_0x318d7b));}_0x39d767[_0x5848('0xe3')](_0x2a9955,!0x0);}['buildRevisionData']({revision:_0xe990b8=null,from:_0x72646b=null,to:_0x109cc6=null}){_0x72646b=null!==_0x72646b?_0x72646b:_0xe990b8[_0x5848('0xd2')],_0x109cc6=null!==_0x109cc6?_0x109cc6:_0xe990b8[_0x5848('0xe9')];const _0xcfd75f=this[_0x5848('0x45')]['getData'](_0x72646b,_0x109cc6),_0x1b84c8={'diffData':_0xcfd75f[_0x5848('0x4d')],'authorsIds':_0xcfd75f[_0x5848('0x26')],'fromVersion':_0x72646b,'toVersion':_0x109cc6};if(!_0xe990b8||_0x109cc6!==_0xe990b8[_0x5848('0xe9')]){const _0x3fe118=_0x109cc6-0x1,_0x4cdf19=this[_0x5848('0xce')][_0x5848('0xb4')]['getOperation'](_0x3fe118);_0x1b84c8['createdAt']=_0x4cdf19&&_0x4cdf19[_0x5848('0xd7')]||new Date();}if(this[_0x5848('0x9f')]&&_0x72646b===this['_loadedStateData'][_0x5848('0xd2')])for(const _0x18c804 of this[_0x5848('0x9f')]['authors'])_0x1b84c8['authorsIds'][_0x5848('0x12')](_0x18c804['id'])||_0x1b84c8[_0x5848('0x26')][_0x5848('0x14')](_0x18c804['id']);return _0x1b84c8;}['_loadRevisionData'](_0x11747e){if(!_0x11747e||_0x11747e[_0x5848('0x4d')])return Promise['resolve']();{const _0x5d4d15=this['editor'][_0x5848('0x9a')][_0x5848('0x53')]('collaboration.channelId');return this[_0x5848('0x83')][_0x5848('0x60')]({'channelId':_0x5d4d15,'revisionId':_0x11747e['id']})['then'](_0x2e9d88=>{_0x11747e[_0x5848('0x4d')]=_0x2e9d88['diffData'];});}}['_bufferUpdate'](_0x500ea5,_0x3e5c8d,_0x40a137){if(this[_0x5848('0x106')][_0x5848('0x65')](_0x500ea5)){const _0x400865=this['_bufferedUpdates'][_0x5848('0x53')](_0x500ea5);_0x3e5c8d=_0x40a137?{..._0x400865,..._0x3e5c8d}:{..._0x3e5c8d,..._0x400865};}this[_0x5848('0x106')]['set'](_0x500ea5,_0x3e5c8d);}[_0x5848('0x77')](_0x238965){const _0x5de286=this['repository'][_0x5848('0xb3')]();_0x5de286[_0x5848('0xaf')](),_0x5de286[_0x5848('0xbf')]();const _0x354486=_0x5de286[_0x5848('0x28')](_0x201afb=>_0x201afb[_0x5848('0xe9')]<=_0x238965)['toVersion'];return _0x354486<this['_startingVersion']?this[_0x5848('0x16')]:_0x354486;}['_createInitialRevision'](_0x5674ca){const _0x34eab4=this[_0x5848('0x97')][_0x5848('0x60')](this[_0x5848('0x97')][_0x5848('0xd4')]-0x1);if(_0x34eab4)this[_0x5848('0xcc')]=_0x34eab4['id'];else{const _0x44c998=!this[_0x5848('0xef')][_0x5848('0x8c')][_0x5848('0xb5')][_0x5848('0xe8')][_0x5848('0x28')](_0x16b8c4=>this[_0x5848('0xef')][_0x5848('0x8c')][_0x5848('0x3b')](_0x16b8c4)),_0x4e010d=this[_0x5848('0xef')][_0x5848('0x96')][_0x5848('0x53')]('Users')['me']['id'],_0x554a6c=_0x20a1bb(this[_0x5848('0xef')][_0x5848('0xf4')],_0x44c998?_0x5848('0xc9'):_0x5848('0x3'));this[_0x5848('0xe7')]({'from':_0x5674ca,'to':_0x5674ca,'id':this['_initialRevisionId'],'name':_0x554a6c,'creatorId':_0x4e010d});}}[_0x5848('0x73')](_0x21d2af){const _0x47129b=this[_0x5848('0xce')][_0x5848('0xa9')]();this['currentRevision']=this[_0x5848('0x97')][_0x5848('0x60')](_0x47129b),this[_0x5848('0xdb')]||(this[_0x5848('0xdb')]=this[_0x5848('0xe7')]({'from':_0x21d2af,'to':_0x21d2af,'id':_0x47129b,'name':'','creatorId':null}));}[_0x5848('0xe7')]({name:_0x4214a6,from:_0x2f01d2,to:_0x46021e,creatorId:_0x1e893a,id:_0x1f2713}){const _0x39f9f9=this['buildRevisionData']({'from':_0x2f01d2,'to':_0x46021e});_0x39f9f9[_0x5848('0x20')]=_0x4214a6,_0x39f9f9[_0x5848('0xfb')]=_0x1e893a,_0x39f9f9['id']=_0x1f2713;const _0x370776=this[_0x5848('0x69')](_0x39f9f9);return this[_0x5848('0x83')]&&this['_bufferUpdate'](_0x39f9f9['id'],_0x39f9f9,!0x0),_0x370776;}['_setConversion'](){this[_0x5848('0xef')][_0x5848('0x5c')][_0x5848('0x50')](_0x5848('0xc1'))[_0x5848('0x99')]({'model':'revision'});}[_0x5848('0xba')](_0x5e1a89){return(_0x5e1a89=_0x5e1a89[_0x5848('0x3f')](_0xfe9db3=>!_0xfe9db3['name']||_0x5848('0x9')!==_0xfe9db3[_0x5848('0x20')]&&_0x5848('0xa3')!==_0xfe9db3[_0x5848('0x20')]))[_0x5848('0x89')](_0xeecb02=>{_0x5848('0x0')!=typeof _0xeecb02&&(_0xeecb02[_0x5848('0x8d')]=this[_0x5848('0xba')](_0xeecb02[_0x5848('0x8d')]),_0xeecb02['attributes']=_0xeecb02[_0x5848('0xa4')][_0x5848('0x3f')](_0x8a8c6a=>!_0x8a8c6a[0x0]['startsWith'](_0x5848('0x9c'))));}),_0x5e1a89;}}function F(_0x2e7b7b,_0x3480e0){const _0x42ae79=_0x3480e0[_0x5848('0x5a')][_0x5848('0xd')]['document'];if(_0x5848('0x0')==typeof _0x2e7b7b)return new _0x4a0d50(_0x42ae79,_0x2e7b7b);{const _0x385323=_0x2e7b7b[_0x5848('0x8d')][_0x5848('0x51')](_0x530269=>F(_0x530269,_0x3480e0));return new(j[_0x2e7b7b[(_0x5848('0x21'))]]||_0x6a31b0)(_0x42ae79,_0x2e7b7b[_0x5848('0x20')],_0x2e7b7b['attributes'],_0x385323);}}class T{constructor(_0x21b36f){this[_0x5848('0xef')]=_0x21b36f,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this[_0x5848('0xad')]=-0x1,this[_0x5848('0x33')]=new Map(),this['_diffRoots']=new Map(),this[_0x5848('0x34')]=new Map(),this[_0x5848('0x7b')]=new Map(),this[_0x5848('0x23')]=new Map(),this[_0x5848('0xb7')]=new Map(),this[_0x5848('0x47')]=new Map(),this[_0x5848('0xf6')]=new Map(),this['_touchedMarkers']=new Map(),this[_0x5848('0x2b')]=new Map(),this[_0x5848('0x64')]=0x1,this[_0x5848('0xac')]=this[_0x5848('0xef')][_0x5848('0x8c')][_0x5848('0xb5')][_0x5848('0x6f')](),this[_0x5848('0xac')][_0x5848('0x14')](_0x5848('0x88'));}[_0x5848('0x105')](_0x2550a5){this[_0x5848('0xe1')]=_0x2550a5;const _0x72b35b=new Map(),_0x18d540=new Map(),_0x5361a3=this['editor'][_0x5848('0x8c')][_0x5848('0xb5')][_0x5848('0x6f')](!0x0);_0x5361a3[_0x5848('0x14')]('$graveyard');for(const _0x4fd033 of _0x5361a3){const _0x2b35a8=this['editor'][_0x5848('0x8c')]['document'][_0x5848('0xf5')](_0x4fd033),_0x1501b7=B(_0x2b35a8);_0x72b35b[_0x5848('0xf1')](_0x4fd033,_0x1501b7),_0x18d540[_0x5848('0xf1')](_0x4fd033,Object['fromEntries'](_0x2b35a8['getAttributes']()));}const _0x9cd1b6=Array['from'](this[_0x5848('0xef')]['model'][_0x5848('0xf8')])[_0x5848('0x51')](_0x2e6581=>[_0x2e6581[_0x5848('0x20')],_0x2e6581[_0x5848('0x1f')]()]),_0x353739=this[_0x5848('0xe1')][_0x5848('0x29')];this['_saveMetaData'](_0x353739,_0x72b35b,_0x9cd1b6,_0x18d540),this[_0x5848('0x5b')]=this['_revisionId'];const _0x5ddc28=new Map(),_0x2596ca=new Map();for(const _0x53a146 of this[_0x5848('0xac')]){const _0x1a76a3=J(_0x53a146);_0x5ddc28[_0x5848('0xf1')](_0x53a146,_0x1a76a3),_0x2596ca[_0x5848('0xf1')](_0x53a146,{});}this[_0x5848('0xcb')](Number[_0x5848('0x25')],_0x5ddc28,[],_0x2596ca);}[_0x5848('0x79')](_0x319154,_0x5b5849){if(this[_0x5848('0x10')]===_0x319154&&this[_0x5848('0xad')]<=_0x5b5849)this[_0x5848('0x63')]['size']>0x1&&this[_0x5848('0xe5')](this[_0x5848('0xad')]),this['_applyOperations'](this[_0x5848('0xad')],_0x5b5849,!0x0);else{if(!this[_0x5848('0x63')]['has'](_0x319154)){const _0x42389e=this[_0x5848('0x72')](_0x319154);this['_calculateMetaData'](_0x42389e,_0x319154,!0x1);}this[_0x5848('0x19')](_0x319154,_0x5b5849,!0x0);}return this[_0x5848('0x10')]=_0x319154,this['_lastTo']=_0x5b5849,this[_0x5848('0x101')]();}[_0x5848('0x7f')](_0xdf5efe){this[_0x5848('0xbc')](),this['_lastFrom']=_0xdf5efe[_0x5848('0xd2')],this['_lastTo']=_0xdf5efe[_0x5848('0xe9')];for(const _0x390c38 in _0xdf5efe[_0x5848('0x4d')]){const _0x4027cc=_0xdf5efe[_0x5848('0x4d')][_0x390c38][_0x5848('0x103')],_0x5d4f77=_0x1a20f3(_0xdf5efe[_0x5848('0x4d')][_0x390c38][_0x5848('0x6a')])||{},_0x45de3c=this[_0x5848('0x102')](_0xdf5efe[_0x5848('0x4d')][_0x390c38][_0x5848('0x70')]);_0x45de3c['rootName']=_0x390c38,_0x45de3c[_0x5848('0x55')]=!_0x4027cc||!_0x4027cc[_0x5848('0x5d')],_0x45de3c['isAttached']=()=>_0x45de3c[_0x5848('0x55')],this[_0x5848('0x7b')]['set'](_0x390c38,_0x45de3c),this[_0x5848('0x23')][_0x5848('0xf1')](_0x390c38,_0x5d4f77),_0x4027cc&&this[_0x5848('0x2b')][_0x5848('0xf1')](_0x390c38,_0x4027cc);const _0x4e5f47=this[_0x5848('0x78')](_0x45de3c);this[_0x5848('0x47')][_0x5848('0xf1')](_0x390c38,_0x4e5f47);for(const [_0x1a8aa2,_0x31380d]of _0x45de3c[_0x5848('0xf8')]){if(!_0x1a8aa2[_0x5848('0xd9')](_0x5848('0xf0')))continue;const _0x1e6523=_0x1a8aa2['split'](':')[0x2];for(const _0x5c67a6 of _0x31380d[_0x5848('0x32')]({'singleCharacters':!0x0})){const _0x3001c1=this[_0x5848('0x4c')](_0x5c67a6),_0x24ab94=_0x5848('0x9d')==_0x5c67a6[_0x5848('0x21')]?_0x5c67a6['previousPosition']['path']['slice'](0x0,-0x1):_0x5c67a6[_0x5848('0xa5')][_0x5848('0x22')],_0x13791c=_0x4e5f47[_0x5848('0xb')](_0x24ab94)[_0x5848('0x40')](_0x3001c1);this[_0x5848('0xf6')][_0x5848('0xf1')](_0x13791c,{'userId':_0x1e6523});}}}this[_0x5848('0x5b')]=this['_revisionId'];const _0x320835=[...Array(this[_0x5848('0x64')])[_0x5848('0x94')]()]['slice'](0x1)['filter'](_0x4aa281=>!this['_touched']['has'](_0x4aa281));let _0x4cf247=0x0;const _0x404bcf=new Map();for(const _0x572c10 in _0xdf5efe['diffData']){const _0x588e9d=_0xdf5efe[_0x5848('0x4d')][_0x572c10][_0x5848('0x103')],_0x399cc7=_0x1a20f3(_0xdf5efe[_0x5848('0x4d')][_0x572c10][_0x5848('0xaa')])||{},_0x1d0a5c=this[_0x5848('0x102')](_0xdf5efe[_0x5848('0x4d')][_0x572c10]['insertions']);_0x1d0a5c[_0x5848('0xda')]=_0x572c10,_0x1d0a5c[_0x5848('0x55')]=!_0x588e9d||_0x588e9d[_0x5848('0x5d')],_0x1d0a5c[_0x5848('0x5d')]=()=>_0x1d0a5c['_isAttached'],this[_0x5848('0x27')][_0x5848('0xf1')](_0x572c10,_0x1d0a5c),this[_0x5848('0x34')][_0x5848('0xf1')](_0x572c10,_0x399cc7);const _0x965183=this[_0x5848('0x78')](_0x1d0a5c,Number[_0x5848('0x25')]);this[_0x5848('0xb7')]['set'](_0x572c10,_0x965183),_0x404bcf['set'](_0x572c10,_0x1d0a5c[_0x5848('0x5d')]()?_0x399cc7:{});for(const [_0x5355ca,_0x202300]of _0x1d0a5c[_0x5848('0xf8')]){if(!_0x5355ca[_0x5848('0xd9')](_0x5848('0xf0')))continue;const _0x398a3c=_0x5355ca[_0x5848('0xb1')](':')[0x2];for(const _0x27afc9 of _0x202300[_0x5848('0x32')]({'singleCharacters':!0x0})){const _0x1713e9=this[_0x5848('0x4c')](_0x27afc9),_0x76c766=this['_revisionId']++,_0x283089='elementEnd'==_0x27afc9[_0x5848('0x21')]?_0x27afc9[_0x5848('0xa5')][_0x5848('0x22')][_0x5848('0x7d')](0x0,-0x1):_0x27afc9[_0x5848('0xa5')][_0x5848('0x22')];_0x965183['getNodeByPath'](_0x283089)[_0x5848('0x76')](_0x1713e9,_0x76c766),this[_0x5848('0xf6')]['set'](_0x76c766,{'userId':_0x398a3c});}}for(const _0x343414 of this[_0x5848('0xef')][_0x5848('0x8c')]['createRangeIn'](_0x1d0a5c)[_0x5848('0x32')]({'singleCharacters':!0x0})){const _0xbade6c=this[_0x5848('0x4c')](_0x343414),_0x63a914=_0x5848('0x9d')==_0x343414['type']?_0x343414['previousPosition'][_0x5848('0x22')]['slice'](0x0,-0x1):_0x343414[_0x5848('0xa5')][_0x5848('0x22')],_0x24963f=_0x965183[_0x5848('0xb')](_0x63a914);_0x24963f['getAttribute'](_0xbade6c)>0x0||_0x24963f[_0x5848('0x76')](_0xbade6c,_0x320835[_0x4cf247++]);}for(const [_0x31314c,_0x5370a2]of _0x1d0a5c[_0x5848('0xf8')])_0x31314c['startsWith'](_0x5848('0xf0'))||this[_0x5848('0x33')]['set'](_0x31314c,_0x5370a2);}const _0x16a159=J(_0x5848('0x88'));this[_0x5848('0x7b')][_0x5848('0xf1')]('$graveyard',_0x16a159),this[_0x5848('0x47')][_0x5848('0xf1')](_0x5848('0x88'),this[_0x5848('0x78')](_0x16a159,0x1));const _0x1db5a2=J(_0x5848('0x88'));this[_0x5848('0x27')][_0x5848('0xf1')](_0x5848('0x88'),_0x1db5a2),this[_0x5848('0xb7')][_0x5848('0xf1')]('$graveyard',this['_makeIdsRoot'](_0x1db5a2,0x1));const _0x5ac608=Array['from'](this[_0x5848('0x27')])[_0x5848('0x51')](([_0x43a984,_0x338203])=>[_0x43a984,B(_0x338203)]);this[_0x5848('0xcb')](this[_0x5848('0xad')],_0x5ac608,this[_0x5848('0x33')],_0x404bcf);}[_0x5848('0x102')](_0x3a5596){const _0x4f012f=JSON[_0x5848('0x80')](_0x3a5596),_0x490355=this[_0x5848('0xef')][_0x5848('0x5a')]['view'][_0x5848('0xb5')],_0x33ecb3=new _0x27b500(_0x490355,_0x4f012f[_0x5848('0x51')](_0x42e951=>F(_0x42e951,this[_0x5848('0xef')])));return this['editor']['data'][_0x5848('0xbb')](_0x33ecb3);}[_0x5848('0xcb')](_0x5b118e,_0x3b6b30,_0x2977de,_0x465ceb){const _0x187d82=new Map(_0x3b6b30),_0x23c0db=new Map(_0x1a20f3(_0x465ceb)),_0x13681c=new Map();for(const [_0x6f96e1,_0x4753eb]of _0x2977de)_0x13681c[_0x5848('0xf1')](_0x6f96e1,{'start':_0x4753eb[_0x5848('0xa6')]['clone'](),'end':_0x4753eb[_0x5848('0xc5')][_0x5848('0x37')](),'rootName':_0x4753eb[_0x5848('0x91')][_0x5848('0xda')]});this['_savedMetaData'][_0x5848('0xf1')](_0x5b118e,{'roots':_0x187d82,'markers':_0x13681c,'rootsAttributes':_0x23c0db});}[_0x5848('0xe5')](_0x199486){this[_0x5848('0x63')][_0x5848('0xc')](_0x199486);}[_0x5848('0x92')](){this['_reset'](),this[_0x5848('0x10')]=-0x1,this[_0x5848('0xad')]=-0x1,this['_savedMetaData'][_0x5848('0x7')](),this[_0x5848('0x105')](this[_0x5848('0xe1')]);}[_0x5848('0xbc')](){this['_touched'][_0x5848('0x7')](),this['_touchedMarkers'][_0x5848('0x7')](),this[_0x5848('0x2b')][_0x5848('0x7')](),this['_diffRoots'][_0x5848('0x7')](),this[_0x5848('0x34')][_0x5848('0x7')](),this[_0x5848('0x7b')]['clear'](),this[_0x5848('0x23')][_0x5848('0x7')](),this[_0x5848('0xb7')][_0x5848('0x7')](),this[_0x5848('0x47')][_0x5848('0x7')](),this[_0x5848('0x33')][_0x5848('0x7')](),this[_0x5848('0x64')]=0x1,this[_0x5848('0x5b')]=this['_revisionId'];}[_0x5848('0x78')](_0x4aef02,_0x562078=null){let _0x15ba03=null;_0x4aef02['is'](_0x5848('0x1'))||(_0x15ba03=new _0xff880d(_0x4aef02[_0x5848('0x20')],{'vid_start':null===_0x562078?this['_revisionId']++:_0x562078++}));const _0x2d0b9b=[];for(const _0xdee884 of _0x4aef02['getChildren']())if(_0xdee884['is'](_0x5848('0xde'))){_0x2d0b9b[_0x5848('0x14')](this['_makeIdsRoot'](_0xdee884,_0x562078));const _0x1dc338=_0x2d0b9b[_0x2d0b9b[_0x5848('0xd4')]-0x1];null!==_0x562078&&(_0x562078=_0x1dc338['is'](_0x5848('0xde'),_0x5848('0xc4'))?_0x1dc338[_0x5848('0x40')](_0x5848('0xa7'))+0x1:_0x1dc338[_0x5848('0x40')](_0x5848('0x56'))+0x1);}else for(let _0x34d5d4=0x0;_0x34d5d4<_0xdee884[_0x5848('0x81')];_0x34d5d4++)_0x2d0b9b['push'](new _0xff880d(_0x5848('0xc4'),{'vid':null===_0x562078?this[_0x5848('0x64')]++:_0x562078++}));if(_0x4aef02['is']('documentFragment')){const _0x60b564=J(_0x4aef02[_0x5848('0xda')]);return _0x60b564[_0x5848('0xd5')](0x0,_0x2d0b9b),_0x60b564;}return _0x15ba03[_0x5848('0x76')]('vid_end',null===_0x562078?this['_revisionId']++:_0x562078++),_0x15ba03['_insertChild'](0x0,_0x2d0b9b),_0x15ba03;}[_0x5848('0x19')](_0x5a3c2e,_0x495786,_0x400aff){this[_0x5848('0xbc')]();const {roots:_0x3585ff,markers:_0x49694e,rootsAttributes:_0x2b33aa}=this[_0x5848('0x63')][_0x5848('0x53')](_0x5a3c2e);this[_0x5848('0x7b')]=new Map(_0x3585ff),this[_0x5848('0x23')]=new Map(_0x1a20f3(_0x2b33aa));for(const [_0x1d93c2,_0x54bd38]of this['_baseRoots'])if(_0x5848('0x88')!==_0x1d93c2&&(this[_0x5848('0x27')]['set'](_0x1d93c2,B(_0x54bd38)),this['_diffRootsAttributes']=new Map(_0x1a20f3(_0x2b33aa)),_0x400aff)){const _0x328a1d=this[_0x5848('0x64')];this['_idsRoots'][_0x5848('0xf1')](_0x1d93c2,this['_makeIdsRoot'](_0x54bd38)),this[_0x5848('0x47')][_0x5848('0xf1')](_0x1d93c2,this[_0x5848('0x78')](_0x54bd38,_0x328a1d));}this[_0x5848('0x5b')]=this[_0x5848('0x64')],this[_0x5848('0x27')][_0x5848('0xf1')](_0x5848('0x88'),B(this[_0x5848('0x7b')]['get'](_0x5848('0x88')))),_0x400aff&&this[_0x5848('0xb7')]['set']('$graveyard',this[_0x5848('0x78')](this[_0x5848('0x7b')][_0x5848('0x53')](_0x5848('0x88'))));for(const [_0x183e99,_0x443b11]of _0x49694e){const _0x3d572a=this[_0x5848('0x7b')][_0x5848('0x53')](_0x443b11[_0x5848('0xda')]),_0x27e87a=this['_diffRoots'][_0x5848('0x53')](_0x443b11['rootName']),_0x383afe=new _0x325215(this[_0x5848('0x9e')](_0x443b11[_0x5848('0xa6')],_0x3d572a),this[_0x5848('0x9e')](_0x443b11['end'],_0x3d572a)),_0x3dcc29=this[_0x5848('0x35')](_0x383afe,_0x27e87a);_0x3d572a[_0x5848('0xf8')][_0x5848('0xf1')](_0x183e99,_0x383afe),this[_0x5848('0x33')]['set'](_0x183e99,_0x3dcc29);}this[_0x5848('0x100')](_0x5a3c2e,_0x495786,_0x400aff);}[_0x5848('0x100')](_0x28e70c,_0xd5cf94,_0x68da8f){for(const _0x47c3c7 of this['source']['getOperations'](_0x28e70c,_0xd5cf94))this[_0x5848('0x52')](_0x47c3c7,_0x68da8f);for(const _0x21a05c of this[_0x5848('0x27')][_0x5848('0x82')]())_0x21a05c[_0x5848('0xf8')][_0x5848('0x7')]();for(const [_0x589540,_0x2f245f]of this[_0x5848('0x33')]){this['_diffRoots']['get'](_0x2f245f[_0x5848('0x91')][_0x5848('0xda')])[_0x5848('0xf8')][_0x5848('0xf1')](_0x589540,_0x2f245f['clone']());}const _0x1e5439=new Map(),_0x2a4ae5=new Map();for(const [_0x372b77,_0x204426]of this['_diffRoots'])_0x1e5439[_0x5848('0xf1')](_0x372b77,B(_0x204426)),_0x2a4ae5['set'](_0x372b77,this[_0x5848('0x34')][_0x5848('0x53')](_0x372b77));this[_0x5848('0xcb')](_0xd5cf94,_0x1e5439,this[_0x5848('0x33')],_0x2a4ae5);}[_0x5848('0x72')](_0x49ed40){const _0x2fc8fa=Array[_0x5848('0xca')](this[_0x5848('0x63')][_0x5848('0x94')]());_0x2fc8fa['sort']((_0xb2c73e,_0x40b2ec)=>_0xb2c73e-_0x40b2ec),_0x2fc8fa[_0x5848('0xaf')]();for(const _0x7314e9 of _0x2fc8fa)if(_0x7314e9<_0x49ed40)return _0x7314e9;return Number['NEGATIVE_INFINITY'];}[_0x5848('0x4e')](_0x19342c,_0x4a1a18){const _0x151e50=Array[_0x5848('0xca')](_0x4a1a18[_0x5848('0xf8')])['map'](([_0x5726c2,_0x1dc0fe])=>[_0x5726c2,this[_0x5848('0x35')](_0x1dc0fe,_0x19342c)]);_0x19342c[_0x5848('0xf8')]=new Map(_0x151e50);}['_transformMarkers'](_0x1f0330){for(const _0x1ae008 of this[_0x5848('0x33')][_0x5848('0x82')]()){const _0x50149d=_0x1ae008[_0x5848('0x86')](_0x1f0330),_0x3fa2e9=_0x325215[_0x5848('0xc2')](_0x50149d);_0x1ae008[_0x5848('0xa6')]=_0x3fa2e9[_0x5848('0xa6')],_0x1ae008[_0x5848('0xc5')]=_0x3fa2e9[_0x5848('0xc5')];}}[_0x5848('0x52')](_0x29e121,_0x23ae0b){if('addRoot'==_0x29e121['type']||'detachRoot'==_0x29e121[_0x5848('0x21')])return void this[_0x5848('0xfe')](_0x29e121,_0x23ae0b);if(_0x5848('0xb6')==_0x29e121['type']){const _0x507f98=_0x29e121[_0x5848('0x8')][_0x5848('0x91')][_0x5848('0xda')];this[_0x5848('0x27')][_0x5848('0x65')](_0x507f98)||(this[_0x5848('0x27')][_0x5848('0xf1')](_0x507f98,J(_0x507f98,!0x0)),this[_0x5848('0x34')][_0x5848('0xf1')](_0x507f98,{}),_0x23ae0b&&this[_0x5848('0xb7')]['set'](_0x507f98,J(_0x507f98,!0x0)));}if(_0x5848('0xff')==_0x29e121['type']||'removeRootAttribute'==_0x29e121[_0x5848('0x21')]||'changeRootAttribute'==_0x29e121[_0x5848('0x21')])return void this[_0x5848('0xab')](_0x29e121);const _0x150237=this[_0x5848('0x3a')](_0x29e121,this[_0x5848('0x27')]);if(_0x5848('0xcd')!==_0x29e121[_0x5848('0x21')]&&(_0x150237[_0x5848('0xc0')](),this[_0x5848('0xfa')](_0x150237)),_0x23ae0b)switch(_0x150237[_0x5848('0x21')]){case _0x5848('0xb6'):this[_0x5848('0xe6')](_0x29e121);break;case _0x5848('0xfd'):case _0x5848('0xeb'):case _0x5848('0xbd'):this['_handleMoveOperation'](_0x29e121);break;case _0x5848('0x43'):this[_0x5848('0x67')](_0x29e121);break;case _0x5848('0xb1'):this[_0x5848('0x44')](_0x29e121);break;case'marker':this[_0x5848('0x36')](_0x29e121);}}[_0x5848('0x3a')](_0x130013,_0x48cffd){const _0x2ae05f=_0x130013[_0x5848('0x37')]();return _0x2ae05f['_authorId']=_0x130013[_0x5848('0x68')],this[_0x5848('0x84')](_0x2ae05f,_0x48cffd),_0x2ae05f;}[_0x5848('0xa0')](_0x4aa2f9){return _0x4aa2f9[_0x5848('0x51')](_0x4d36d1=>{const _0x310de0=this['_getVidAttributeName'](_0x4d36d1);return Number(_0x4d36d1[_0x5848('0xd6')][_0x5848('0x40')](_0x310de0));});}[_0x5848('0x18')](_0x5f575a,_0x400662){if(_0x5f575a['is'](_0x5848('0xde'),_0x5848('0xc4')))_0x400662[_0x5848('0x14')]({'item':_0x5f575a,'type':'text'});else{_0x5f575a['is']('element')&&_0x400662[_0x5848('0x14')]({'item':_0x5f575a,'type':'elementStart'});for(const _0x342a31 of _0x5f575a[_0x5848('0xf')]())this['_generateTape'](_0x342a31,_0x400662);_0x5f575a['is'](_0x5848('0xde'))&&_0x400662[_0x5848('0x14')]({'item':_0x5f575a,'type':_0x5848('0x9d')});}return _0x400662;}['_getState'](){const _0xaf0202=new Map(this[_0x5848('0xf6')]),_0x1607f9=new Map(_0xaf0202),_0x3bab6f=new Map(),_0xd3cfb2={'insertions':{},'deletions':{}},_0xe03a61={'insertions':{},'deletions':{}},_0x93cea4=new Map(),_0xfdc68c=new Set([...this[_0x5848('0x7b')][_0x5848('0x94')](),...this[_0x5848('0x27')][_0x5848('0x94')]()]);_0xfdc68c[_0x5848('0xc')]('$graveyard');for(const _0x2093d4 of _0xfdc68c){const _0x1b7edf=this[_0x5848('0x27')][_0x5848('0x53')](_0x2093d4)||J(_0x2093d4,!0x1),_0x3d38da=this[_0x5848('0x7b')][_0x5848('0x53')](_0x2093d4)||J(_0x2093d4,!0x1);_0x1b7edf['isAttached']()||_0x3d38da[_0x5848('0x5d')]()?(_0xd3cfb2[_0x5848('0xb2')][_0x2093d4]=B(_0x1b7edf),_0xd3cfb2[_0x5848('0x70')][_0x2093d4]=B(_0x3d38da),this[_0x5848('0x4e')](_0xd3cfb2['deletions'][_0x2093d4],_0x3d38da),this[_0x5848('0x4e')](_0xd3cfb2[_0x5848('0xb2')][_0x2093d4],_0x1b7edf),_0xe03a61[_0x5848('0xb2')][_0x2093d4]=this[_0x5848('0x18')](this['_idsRoots']['get'](_0x2093d4),[]),_0xe03a61[_0x5848('0x70')][_0x2093d4]=this[_0x5848('0x18')](this['_baseIdsRoots'][_0x5848('0x53')](_0x2093d4)||J(_0x2093d4,!0x1),[])):_0xfdc68c['delete'](_0x2093d4);}for(const _0x5dd3ce of _0xfdc68c){const _0x585f05=_0xe03a61[_0x5848('0xb2')][_0x5dd3ce];for(const _0x12236f of _0x585f05){const _0x3081ef=this[_0x5848('0x4c')](_0x12236f),_0x46f284=_0x12236f[_0x5848('0xd6')][_0x5848('0x40')](_0x3081ef);_0x1607f9[_0x5848('0xc')](_0x46f284),_0x46f284>=this['_startingRevisionId']&&_0x3bab6f[_0x5848('0xf1')](_0x46f284,_0xaf0202[_0x5848('0x53')](_0x46f284));}}for(const _0x5f0c82 of _0xfdc68c){const _0x55d8b4=_0xe03a61[_0x5848('0xb2')][_0x5f0c82],_0x21b007=this['_getBaseVids'](_0xe03a61[_0x5848('0x70')][_0x5f0c82]);let _0x435e01=0x0;for(const _0x5e6522 of _0x55d8b4){const _0x2dcb58=this[_0x5848('0x4c')](_0x5e6522),_0x384f=_0x5e6522[_0x5848('0xd6')][_0x5848('0x40')](_0x2dcb58);if(!_0x3bab6f[_0x5848('0x65')](_0x384f)&&!_0x93cea4[_0x5848('0x65')](_0x384f)){if(_0x1607f9[_0x5848('0x65')](_0x384f))_0x435e01++;else{if(_0x384f!=_0x21b007[_0x435e01]){const _0x1fcf90=_0xaf0202['get'](_0x384f)||_0xaf0202['get'](_0x21b007[_0x435e01]);for(;_0x384f!=_0x21b007[_0x435e01];)_0x1607f9['has'](_0x21b007[_0x435e01])||(_0x93cea4[_0x5848('0xf1')](_0x21b007[_0x435e01],_0x1fcf90),_0xaf0202['set'](_0x21b007[_0x435e01],_0x1fcf90)),_0x435e01++;}_0x435e01++;}}}}for(const _0x3f4d13 of _0xfdc68c){const _0xcac51c=_0xe03a61[_0x5848('0xb2')][_0x3f4d13];for(const _0x55a87e of _0xcac51c){const _0x28591a=this[_0x5848('0x4c')](_0x55a87e),_0x26ea51=_0x55a87e[_0x5848('0xd6')][_0x5848('0x40')](_0x28591a);if(_0x93cea4[_0x5848('0x65')](_0x26ea51)){const _0x27f1d4=_0x93cea4['get'](_0x26ea51);_0x1607f9[_0x5848('0x65')](_0x26ea51)||_0x1607f9[_0x5848('0xf1')](_0x26ea51,{..._0x27f1d4}),_0x3bab6f[_0x5848('0xf1')](_0x26ea51,{..._0x27f1d4});}}}for(const _0x591466 of _0x1607f9[_0x5848('0x94')]())_0x591466>=this[_0x5848('0x5b')]&&_0x1607f9['delete'](_0x591466);const _0x17ca21=new Map();for(const _0x36ef5e of _0xfdc68c){let _0x4a6fdd=_0xe03a61['insertions'][_0x36ef5e];for(const _0x410333 of _0x4a6fdd)if(_0x410333[_0x5848('0xd6')]['is'](_0x5848('0xde'),_0x5848('0x57'))){const _0x99e570=this[_0x5848('0x4c')](_0x410333),_0x2c7e26=_0x410333[_0x5848('0xd6')][_0x5848('0x40')](_0x99e570);if(_0x3bab6f[_0x5848('0x65')](_0x2c7e26)){const _0x291290=_0x410333['item'][_0x5848('0x39')][_0x5848('0x39')]['getAttribute']('vid_start'),_0x2bfa59=_0x17ca21['get'](_0x291290)||new Set();_0x2bfa59['add'](_0x3bab6f['get'](_0x2c7e26)[_0x5848('0x61')]),_0x17ca21[_0x5848('0xf1')](_0x291290,_0x2bfa59);}}_0x4a6fdd=_0xe03a61[_0x5848('0x70')][_0x36ef5e];for(const _0x3c04da of _0x4a6fdd)if(_0x3c04da[_0x5848('0xd6')]['is'](_0x5848('0xde'),'tableCell')){const _0x1425d1=this[_0x5848('0x4c')](_0x3c04da),_0x590778=_0x3c04da[_0x5848('0xd6')][_0x5848('0x40')](_0x1425d1);if(_0x1607f9['has'](_0x590778)){const _0x3b3247=_0x3c04da['item'][_0x5848('0x39')][_0x5848('0x39')][_0x5848('0x40')]('vid_start'),_0x108e15=_0x17ca21[_0x5848('0x53')](_0x3b3247)||new Set();_0x108e15['add'](_0x1607f9[_0x5848('0x53')](_0x590778)[_0x5848('0x61')]),_0x17ca21[_0x5848('0xf1')](_0x3b3247,_0x108e15);}}for(const _0x5399bd of _0x17ca21['keys']())(_0x3bab6f[_0x5848('0x65')](_0x5399bd)||_0x1607f9[_0x5848('0x65')](_0x5399bd))&&_0x17ca21[_0x5848('0xc')](_0x5399bd);}for(const _0x30dfed of _0xfdc68c){const _0x22b9a2=_0xe03a61['insertions'][_0x30dfed];let _0x343536=null,_0x34cf67=null;for(const _0x397a39 of _0x22b9a2){const _0x7d2af2=this[_0x5848('0x4c')](_0x397a39),_0x247a7a=_0x397a39[_0x5848('0xd6')]['getAttribute'](_0x7d2af2),_0x394944=_0x17ca21['get'](_0x247a7a);_0x394944&&_0x5848('0x11')==_0x397a39['type']&&(_0x343536=Array[_0x5848('0xca')](_0x394944)[0x0],_0x34cf67=_0x397a39['item'][_0x5848('0x40')](_0x5848('0x56'))),_0x343536&&(_0x1607f9[_0x5848('0xf1')](_0x247a7a,{'userId':_0x343536}),_0x3bab6f['set'](_0x247a7a,{'userId':_0x343536})),_0x247a7a==_0x34cf67&&(_0x343536=null,_0x34cf67=null);}}const _0x56b9a0={},_0x59d97d=new Set();for(const _0x18c5bf of _0xfdc68c){const _0x458fcb=_0xd3cfb2['deletions'][_0x18c5bf],_0x18e975=_0xd3cfb2[_0x5848('0xb2')][_0x18c5bf];for(const {userId:_0x1bebef}of this['_touchedMarkers'][_0x5848('0x82')]())null!==_0x1bebef&&_0x59d97d['add'](_0x1bebef);for(const {userId:_0x46fb9c}of this['_touchedRoots'][_0x5848('0x82')]())null!==_0x46fb9c&&_0x59d97d['add'](_0x46fb9c);this[_0x5848('0xb8')](_0x18e975,_0xe03a61[_0x5848('0xb2')][_0x18c5bf],_0x3bab6f,'insertion',_0x59d97d),this[_0x5848('0xb8')](_0x458fcb,_0xe03a61['deletions'][_0x18c5bf],_0x1607f9,_0x5848('0x4a'),_0x59d97d),_0x56b9a0[_0x18c5bf]={'insertions':this[_0x5848('0x95')](_0x18e975),'deletions':this[_0x5848('0x95')](_0x458fcb),'attachChange':this[_0x5848('0x2b')][_0x5848('0x53')](_0x18c5bf)||null,'attributesBefore':_0x1a20f3(this['_baseRootsAttributes'][_0x5848('0x53')](_0x18c5bf))||{},'attributesAfter':_0x1a20f3(this[_0x5848('0x34')]['get'](_0x18c5bf))};}return{'diffData':_0x56b9a0,'authorsIds':Array['from'](_0x59d97d)};}['_processRootBeforeSave'](_0x178dc7){for(const [,_0x167ee2]of _0x178dc7[_0x5848('0xf8')]){const _0x3695ed=_0x167ee2[_0x5848('0xa6')][_0x5848('0xdf')]()[_0x5848('0x3f')](_0x147095=>'tableCell'==_0x147095[_0x5848('0x20')]);for(const _0x1f3891 of _0x3695ed)0x1==_0x1f3891['childCount']&&_0x1f3891[_0x5848('0xe')](0x0)['is']('element',_0x5848('0x75'))&&_0x1f3891['getChild'](0x0)[_0x5848('0x76')](_0x5848('0x2e'),!0x0);}}[_0x5848('0x95')](_0x4681d6){this[_0x5848('0xc3')](_0x4681d6);const _0x1681d0=this['editor'][_0x5848('0x7c')][_0x5848('0xf9')](_0x4681d6,{}),_0x2bae2a=Array[_0x5848('0xca')](_0x1681d0['getChildren']())[_0x5848('0x51')](_0x44284f=>this['_getViewJson'](_0x44284f));return JSON['stringify'](_0x2bae2a);}['_getViewJson'](_0x1fc4ec){if(_0x1fc4ec['is'](_0x5848('0xc4')))return _0x1fc4ec[_0x5848('0x7c')];{const _0x41836d=_0x1fc4ec;return{'type':Object['keys'](j)['find'](_0x13ca77=>_0x1fc4ec instanceof j[_0x13ca77]),'name':_0x41836d[_0x5848('0x20')],'attributes':Array[_0x5848('0xca')](_0x41836d[_0x5848('0x15')]()),'children':Array[_0x5848('0xca')](_0x41836d['getChildren']())[_0x5848('0x51')](_0x3972c4=>this['_getViewJson'](_0x3972c4))};}}['_markChanges'](_0x1d7f6b,_0x6a6c49,_0x95d36e,_0x86b9c0,_0x384f7d){let _0x11fd68=null,_0x51616b=null,_0x351c93=0x0;const _0x16967c=this[_0x5848('0xef')][_0x5848('0x8c')];for(let _0x1caab6=0x0;_0x1caab6<_0x6a6c49[_0x5848('0xd4')];_0x1caab6++){const _0x58984f=this['_getVidAttributeName'](_0x6a6c49[_0x1caab6]),_0x6e9da9=_0x6a6c49[_0x1caab6][_0x5848('0xd6')][_0x5848('0x40')](_0x58984f),_0x14f561=_0x95d36e[_0x5848('0x53')](_0x6e9da9),_0x597c71=_0x1caab6==_0x6a6c49[_0x5848('0xd4')]-0x1;(!_0x11fd68&&_0x14f561&&(_0x11fd68=_0x14f561,_0x51616b=_0x6a6c49[_0x1caab6]),_0x11fd68&&(!_0x14f561||_0x14f561[_0x5848('0x61')]!=_0x11fd68[_0x5848('0x61')]))&&(_0x4580f6(_0x14f561,H(_0x51616b,_0x1d7f6b,_0x16967c),H(_0x6a6c49[_0x1caab6],_0x1d7f6b,_0x16967c)),_0x11fd68=_0x14f561||null,_0x51616b=_0x14f561?_0x6a6c49[_0x1caab6]:null),_0x11fd68&&_0x597c71&&_0x4580f6(_0x14f561,H(_0x51616b,_0x1d7f6b,_0x16967c),q(_0x6a6c49[_0x1caab6],_0x1d7f6b,_0x16967c));}function _0x4580f6(_0x1959ed,_0x3af606,_0x122370){const _0x1bdc58=_0x11fd68[_0x5848('0x61')],_0x150bf9=_0x5848('0xf0')+_0x86b9c0+':'+_0x1bdc58+':'+_0x351c93++,_0x21df43=_0x16967c[_0x5848('0xf3')](_0x3af606,_0x122370);_0x1d7f6b[_0x5848('0xf8')][_0x5848('0xf1')](_0x150bf9,_0x21df43),null!==_0x1bdc58&&_0x384f7d[_0x5848('0x58')](_0x1bdc58);}}[_0x5848('0x4c')](_0x15b305){switch(_0x15b305[_0x5848('0x21')]){case _0x5848('0x11'):return _0x5848('0xe0');case _0x5848('0x9d'):return _0x5848('0x56');default:return'vid';}}['_fixOperation'](_0x203c29,_0x178a6b){_0x203c29['baseVersion']=null;for(const _0x116bf1 in _0x203c29){const _0x1662bf=_0x203c29[_0x116bf1];if(_0x1662bf instanceof _0x5cf6ce){const _0x5707de=_0x178a6b[_0x5848('0x53')](_0x1662bf[_0x5848('0x91')][_0x5848('0xda')]);_0x203c29[_0x116bf1]=this[_0x5848('0x9e')](_0x1662bf,_0x5707de);}if(_0x1662bf instanceof _0x325215){const _0x47e539=_0x178a6b['get'](_0x1662bf[_0x5848('0x91')][_0x5848('0xda')]);_0x203c29[_0x116bf1]=this[_0x5848('0x35')](_0x1662bf,_0x47e539);}_0x5848('0x91')===_0x116bf1&&(_0x203c29[_0x5848('0x91')]=_0x178a6b[_0x5848('0x53')](_0x203c29[_0x5848('0x91')][_0x5848('0xda')]));}}[_0x5848('0x35')](_0x50bfa1,_0x525f99){return this['editor']['model'][_0x5848('0xf3')](this[_0x5848('0x9e')](_0x50bfa1[_0x5848('0xa6')],_0x525f99),this[_0x5848('0x9e')](_0x50bfa1[_0x5848('0xc5')],_0x525f99));}[_0x5848('0x9e')](_0x348592,_0x17b3dc){return this[_0x5848('0xef')][_0x5848('0x8c')][_0x5848('0xa8')](_0x17b3dc,_0x348592[_0x5848('0x22')],_0x348592[_0x5848('0x42')]);}['_handleInsertOperation'](_0x1b44fa){const _0x3f6ed0=this[_0x5848('0xb7')][_0x5848('0x53')](_0x1b44fa[_0x5848('0x8')][_0x5848('0x91')][_0x5848('0xda')]),_0x13318d=this[_0x5848('0x9e')](_0x1b44fa[_0x5848('0x8')],_0x3f6ed0),_0x520dd7=null===_0x1b44fa['_authorId']?null:_0x1b44fa['_authorId']||this['editor']['plugins'][_0x5848('0x53')]('Users')['me']['id'],_0x4d052f=_0x13318d['parent'],_0x16d18e=this[_0x5848('0x64')],_0x3d1c68=[];for(const _0x373d8b of _0x1b44fa[_0x5848('0x6b')])if(_0x373d8b['is']('element'))_0x3d1c68[_0x5848('0x14')](this[_0x5848('0x78')](_0x373d8b));else for(let _0x46540a=0x0;_0x46540a<_0x373d8b['offsetSize'];_0x46540a++)_0x3d1c68['push'](new _0xff880d('$text',{'vid':this['_revisionId']++}));const _0x11c6c8=this[_0x5848('0x64')];for(let _0x2b1e37=_0x16d18e;_0x2b1e37<_0x11c6c8;_0x2b1e37++)this[_0x5848('0xf6')][_0x5848('0xf1')](_0x2b1e37,{'userId':_0x520dd7});_0x4d052f[_0x5848('0xd5')](_0x13318d['offset'],_0x3d1c68);}[_0x5848('0xbe')](_0x15329e){(_0x15329e=this[_0x5848('0x3a')](_0x15329e,this[_0x5848('0xb7')]))[_0x5848('0xc0')]();const _0x34f79b=null===_0x15329e[_0x5848('0x68')]?null:_0x15329e['_authorId']||this[_0x5848('0xef')]['plugins'][_0x5848('0x53')](_0x5848('0xf7'))['me']['id'],_0x1a23ef=_0x15329e['getMovedRangeStart'](),_0x3119b5=_0x1a23ef[_0x5848('0x39')],_0x9474ce=_0x1a23ef['offset'];!function _0x54a64e(_0x4a4cea,_0x2c68f8,_0x25e142,_0x5ec7e3){for(let _0x294934=_0x25e142;_0x294934<_0x5ec7e3;_0x294934++){const _0x22d496=_0x2c68f8[_0x5848('0xe')](_0x294934);_0x22d496['is'](_0x5848('0xde'),_0x5848('0xc4'))?_0x4a4cea[_0x5848('0xf1')](_0x22d496[_0x5848('0x40')](_0x5848('0xa7')),{'userId':_0x34f79b}):(_0x4a4cea[_0x5848('0xf1')](_0x22d496[_0x5848('0x40')](_0x5848('0xe0')),{'userId':_0x34f79b}),_0x54a64e(_0x4a4cea,_0x22d496,0x0,_0x22d496['childCount']),_0x4a4cea[_0x5848('0xf1')](_0x22d496[_0x5848('0x40')](_0x5848('0x56')),{'userId':_0x34f79b}));}}(this[_0x5848('0xf6')],_0x3119b5,_0x9474ce,_0x9474ce+_0x15329e[_0x5848('0x90')]);}[_0x5848('0x67')](_0x2381c2){const _0x23ebe7=null===(_0x2381c2=this['_cloneOperation'](_0x2381c2,this[_0x5848('0xb7')]))['_authorId']?null:_0x2381c2[_0x5848('0x68')]||this['editor']['plugins']['get'](_0x5848('0xf7'))['me']['id'],_0x2d2306=_0x2381c2[_0x5848('0x6d')][_0x5848('0x39')],_0x4839fc=_0x2381c2['sourcePosition'][_0x5848('0x39')],_0x143f8a=_0x2d2306[_0x5848('0x40')](_0x5848('0x56')),_0x3e6737=_0x4839fc[_0x5848('0x40')](_0x5848('0xe0'));_0x2d2306[_0x5848('0x76')](_0x5848('0x56'),_0x4839fc[_0x5848('0x40')]('vid_end')),_0x4839fc[_0x5848('0x76')]('vid_end',_0x143f8a),this[_0x5848('0xf6')]['set'](_0x3e6737,{'userId':_0x23ebe7}),this[_0x5848('0xf6')]['set'](_0x143f8a,{'userId':_0x23ebe7}),_0x2381c2[_0x5848('0xc0')]();}['_handleSplitOperation'](_0x56da36){const _0x3e3a90=null===(_0x56da36=this[_0x5848('0x3a')](_0x56da36,this[_0x5848('0xb7')]))[_0x5848('0x68')]?null:_0x56da36['_authorId']||this[_0x5848('0xef')][_0x5848('0x96')]['get'](_0x5848('0xf7'))['me']['id'],_0x5f22b3=_0x56da36[_0x5848('0x6c')],_0xefa9f6=_0x56da36[_0x5848('0xae')][_0x5848('0x39')];_0x56da36[_0x5848('0xc0')]();const _0x148be6=_0xefa9f6['getAttribute'](_0x5848('0x56')),_0x5d3580=_0x56da36['insertionPosition'][_0x5848('0x9b')];if(_0x5f22b3){const _0x1c74b5=_0x5d3580['getAttribute'](_0x5848('0x56')),_0x5e1f9b=_0xefa9f6[_0x5848('0x40')](_0x5848('0x56'));_0xefa9f6[_0x5848('0x76')](_0x5848('0x56'),_0x1c74b5),_0x5d3580[_0x5848('0x76')]('vid_end',_0x5e1f9b),this[_0x5848('0xf6')][_0x5848('0xf1')](_0xefa9f6['getAttribute']('vid_end'),{'userId':_0x3e3a90}),this[_0x5848('0xf6')][_0x5848('0xf1')](_0x5d3580[_0x5848('0x40')](_0x5848('0xe0')),{'userId':_0x3e3a90});}else{const _0x2f12d0=this[_0x5848('0x64')]++,_0x1d4787=this[_0x5848('0x64')]++;_0xefa9f6[_0x5848('0x76')](_0x5848('0x56'),_0x2f12d0),_0x5d3580[_0x5848('0x76')]('vid_start',_0x1d4787),_0x5d3580[_0x5848('0x76')](_0x5848('0x56'),_0x148be6),this[_0x5848('0xf6')]['set'](_0x2f12d0,{'userId':_0x3e3a90}),this[_0x5848('0xf6')]['set'](_0x1d4787,{'userId':_0x3e3a90});}}[_0x5848('0x36')](_0x5c7f35){if(!_0x5c7f35[_0x5848('0xc7')])return;const _0x4b6fa9=(_0x5c7f35=this[_0x5848('0x3a')](_0x5c7f35,this[_0x5848('0x27')]))[_0x5848('0xdc')]?_0x5c7f35[_0x5848('0xdc')][_0x5848('0x91')]:null,_0x51f1cd=_0x5c7f35[_0x5848('0x1a')]?_0x5c7f35['newRange'][_0x5848('0x91')]:null;_0x4b6fa9&&this['_markers'][_0x5848('0xc')](_0x5c7f35[_0x5848('0x20')]),_0x51f1cd&&this['_markers'][_0x5848('0xf1')](_0x5c7f35['name'],_0x5c7f35[_0x5848('0x1a')]['clone']());const _0x2ecc28=null===_0x5c7f35[_0x5848('0x68')]?null:_0x5c7f35['_authorId']||this[_0x5848('0xef')][_0x5848('0x96')][_0x5848('0x53')](_0x5848('0xf7'))['me']['id'],_0x5dcdf9=_0x5c7f35[_0x5848('0x20')];if(!this[_0x5848('0xd0')]['has'](_0x5dcdf9))return void this[_0x5848('0xd0')][_0x5848('0xf1')](_0x5dcdf9,{'range':_0x5c7f35[_0x5848('0xdc')],'userId':_0x2ecc28});const _0x44a0a0=this[_0x5848('0xd0')][_0x5848('0x53')](_0x5dcdf9),_0x1dd533=_0x44a0a0[_0x5848('0x5')],_0x1d71bc=_0x5c7f35[_0x5848('0x1a')];null==_0x1dd533&&null==_0x1d71bc||_0x1dd533&&_0x1d71bc&&_0x1dd533[_0x5848('0x2d')](_0x1d71bc)?this[_0x5848('0xd0')][_0x5848('0xc')](_0x5c7f35[_0x5848('0x20')]):_0x44a0a0[_0x5848('0x61')]=_0x2ecc28;}[_0x5848('0xfe')](_0x2e8d5d,_0x26830c){this[_0x5848('0x27')]['has'](_0x2e8d5d['rootName'])?this[_0x5848('0x27')]['get'](_0x2e8d5d[_0x5848('0xda')])[_0x5848('0x55')]=_0x2e8d5d[_0x5848('0x38')]:(this['_diffRoots'][_0x5848('0xf1')](_0x2e8d5d[_0x5848('0xda')],J(_0x2e8d5d[_0x5848('0xda')],!0x0)),this['_diffRootsAttributes'][_0x5848('0xf1')](_0x2e8d5d['rootName'],{}),_0x26830c&&this['_idsRoots'][_0x5848('0xf1')](_0x2e8d5d[_0x5848('0xda')],J(_0x2e8d5d['rootName'],!0x0)));const _0x45e843=null===_0x2e8d5d[_0x5848('0x68')]?null:_0x2e8d5d['_authorId']||this[_0x5848('0xef')]['plugins'][_0x5848('0x53')](_0x5848('0xf7'))['me']['id'],_0x2f5f48=this[_0x5848('0x2b')]['get'](_0x2e8d5d[_0x5848('0xda')]);_0x2f5f48&&_0x2f5f48[_0x5848('0x61')]===_0x45e843?this[_0x5848('0x2b')]['delete'](_0x2e8d5d[_0x5848('0xda')]):this[_0x5848('0x2b')][_0x5848('0xf1')](_0x2e8d5d[_0x5848('0xda')],{'userId':_0x45e843,'isAttached':_0x2e8d5d[_0x5848('0x38')]});}[_0x5848('0xab')](_0xf0809d){const _0x43bcd8=this[_0x5848('0x34')][_0x5848('0x53')](_0xf0809d[_0x5848('0x91')][_0x5848('0xda')]);null===_0xf0809d[_0x5848('0x66')]?delete _0x43bcd8[_0xf0809d[_0x5848('0xa1')]]:_0x43bcd8[_0xf0809d[_0x5848('0xa1')]]=_0xf0809d[_0x5848('0x66')];}}function B(_0xf61e04){const _0x5d7896=J(_0xf61e04[_0x5848('0xda')],_0xf61e04['isAttached']());for(const _0x2b5200 of _0xf61e04[_0x5848('0xf')]()){const _0x47743a=_0x2b5200[_0x5848('0x6')](!0x0);_0x5d7896['_appendChild'](_0x47743a);}return _0x5d7896;}function J(_0x4a76fa,_0x510292=!0x0){const _0x1ea547=new _0x2edb62();return _0x1ea547[_0x5848('0xda')]=_0x4a76fa,_0x1ea547[_0x5848('0x55')]=_0x510292,_0x1ea547[_0x5848('0x5d')]=()=>_0x1ea547[_0x5848('0x55')],_0x1ea547;}function H(_0xb1dfac,_0x3c93ce,_0x47fdf2){const _0x4ac448=_0x5848('0x9d')==_0xb1dfac[_0x5848('0x21')]?_0x47fdf2[_0x5848('0x2f')](_0xb1dfac[_0x5848('0xd6')],'end'):_0x47fdf2[_0x5848('0x6e')](_0xb1dfac[_0x5848('0xd6')]);return _0x47fdf2['createPositionFromPath'](_0x3c93ce,_0x4ac448[_0x5848('0x22')],_0x4ac448['stickiness']);}function q(_0x52bdda,_0x2e7753,_0x28fcc0){const _0x4b7ba5=_0x5848('0x11')==_0x52bdda[_0x5848('0x21')]?_0x28fcc0['createPositionAt'](_0x52bdda['item'],0x0):_0x28fcc0[_0x5848('0xc6')](_0x52bdda['item']);return _0x28fcc0['createPositionFromPath'](_0x2e7753,_0x4b7ba5[_0x5848('0x22')],_0x4b7ba5['stickiness']);}