@ckeditor/ckeditor5-revision-history 35.3.2 → 35.4.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 +2 -1
  2. package/build/translations/af.js +1 -0
  3. package/build/translations/ar.js +1 -0
  4. package/build/translations/az.js +1 -0
  5. package/build/translations/bg.js +1 -0
  6. package/build/translations/bn.js +1 -0
  7. package/build/translations/bs.js +1 -0
  8. package/build/translations/ca.js +1 -0
  9. package/build/translations/cs.js +1 -0
  10. package/build/translations/da.js +1 -0
  11. package/build/translations/de-ch.js +1 -0
  12. package/build/translations/de.js +1 -0
  13. package/build/translations/el.js +1 -0
  14. package/build/translations/en-au.js +1 -0
  15. package/build/translations/en-gb.js +1 -0
  16. package/build/translations/es-co.js +1 -0
  17. package/build/translations/es.js +1 -0
  18. package/build/translations/et.js +1 -0
  19. package/build/translations/fa.js +1 -0
  20. package/build/translations/fi.js +1 -0
  21. package/build/translations/fr.js +1 -0
  22. package/build/translations/gl.js +1 -0
  23. package/build/translations/he.js +1 -0
  24. package/build/translations/hi.js +1 -0
  25. package/build/translations/hr.js +1 -0
  26. package/build/translations/hu.js +1 -0
  27. package/build/translations/id.js +1 -0
  28. package/build/translations/it.js +1 -0
  29. package/build/translations/ja.js +1 -0
  30. package/build/translations/jv.js +1 -0
  31. package/build/translations/ko.js +1 -0
  32. package/build/translations/ku.js +1 -0
  33. package/build/translations/lt.js +1 -0
  34. package/build/translations/lv.js +1 -0
  35. package/build/translations/ms.js +1 -0
  36. package/build/translations/ne.js +1 -0
  37. package/build/translations/nl.js +1 -0
  38. package/build/translations/no.js +1 -0
  39. package/build/translations/pl.js +1 -0
  40. package/build/translations/pt-br.js +1 -0
  41. package/build/translations/pt.js +1 -0
  42. package/build/translations/ro.js +1 -0
  43. package/build/translations/ru.js +1 -0
  44. package/build/translations/sk.js +1 -0
  45. package/build/translations/sr-latn.js +1 -0
  46. package/build/translations/sr.js +1 -0
  47. package/build/translations/sv.js +1 -0
  48. package/build/translations/th.js +1 -0
  49. package/build/translations/tk.js +1 -0
  50. package/build/translations/tr.js +1 -0
  51. package/build/translations/tt.js +1 -0
  52. package/build/translations/ug.js +1 -0
  53. package/build/translations/uk.js +1 -0
  54. package/build/translations/ur.js +1 -0
  55. package/build/translations/vi.js +1 -0
  56. package/build/translations/zh-cn.js +1 -0
  57. package/build/translations/zh.js +1 -0
  58. package/package.json +7 -7
  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 _0x1e7d=['remove','version','shift','_handleInsertOperation','config','offsetSize','parse','NEGATIVE_INFINITY','vid','_bufferedUpdates','oldRange','_makeModelFromViewString','getRevision','PENDING_ACTION_REVISION_HISTORY','_handleMergeOperation','createRangeIn','_saveMetaData','getChildren','start','setRevisionData','graveyardPosition','_execute','addRevisionData','string','_getVidAttributeName','_startingRevisionId','document','_fixRange','_getPreviousFrom','editor','position','sourcePosition','isEqual','attributes','revisionHistory.resumeUnsavedRevision','finally','conversion','clone','push','data-revision-','upcast','text','getAttributes','size','for','reinsert','filter','isReady','set','_getFromVersion','elementStart','getChild','_isInit','_fixPosition','repository','define','_lastTo','_operations','marked','update','bind','_touched','childCount','buildRevisionData','sendBufferedUpdates','_initialRevisionId','_loadState','element','_removePendingAction','authorsIds','insertion','_markers','_processRootBeforeSave','creatorId','_handleMarkerOperation','getLatestVersion','map','_prepareViewToSave','dataToMarker','trim','sort','toModel','$graveyard','previousPosition','adapter','isPendingUpdate','fromVersion','_makeRevision','editing','editor-initial-data-replaced-with-revision-data','getCurrentRevisionId','_createInitialRevision','RevisionTracker','add','_loadRevisionData','length','documentFragment','vid_start','_lastFrom','_saveEmptyMetaData','source','deletion','_update','toData','_reset','newRange','revision-end','initialData','processor','getRevisions','vid_end','_setAttribute','loadState','model','_startingVersion','addRevision','diffData','getWalker','_createCurrentRevision','revision-start','_isPendingUpdate','setSource','_diffRoots','pluginName','getOperations','afterInit','end','_insertChild','getRootNames','_addPendingAction','max','find','Empty\x20document','includes','merge','authors','useFillerType','createPositionBefore','insertions','has','_getViewJson','startsWith','nodes','_fixOperation','initial','locale','rootName','resolve','reverse','hasContent','_source','insertionPosition','markerToData','createRange','toView','_generateTape','root','getTransformedByOperation','getAncestors','currentRevision','_idsRoots','_rootNames','_savedMetaData','_handleOperation','name','$text','clear','tableCell','children','_getState','creator','_bufferUpdate','nodeAfter','getUser','slice','isEnabled','Users','_calculateMetaData','_makeIdsRoot','_applyOperations','paragraph','revision:','_createFromRanges','saveRevision','_cloneOperation','data','getTime','view','range','revision','getAttribute','parent','_transformMarkers','toVersion','_pendingAction','init','_baseRoots','_copyMarkers','createdAt','_handleMoveOperation','_continueCurrentRevision','history','then','keys','_loadedStateData','deletions','stickiness','markers','_removeMetaData','PendingActions','splitPosition','_revisionId','offset','item','plugins','values','_setConversion','_removeRevisionMarkers','_revisionDataBuilder','getNodeByPath','path','_replaceEditorDataWithRevisionData','reInit','_touchedMarkers','split','ready','_markChanges','_getBaseVids','move','_baseIdsRoots','_handleSplitOperation','get','elementEnd','howMany','updateRevisions','createPositionAfter','Initial\x20revision','default','type','userId','targetPosition','getIndex','_authorId','collaboration.channelId','stringify','from','delete'];(function(_0x53d841,_0x1e7deb){const _0x1234f2=function(_0x648d80){while(--_0x648d80){_0x53d841['push'](_0x53d841['shift']());}};_0x1234f2(++_0x1e7deb);}(_0x1e7d,0x1c4));const _0x1234=function(_0x53d841,_0x1e7deb){_0x53d841=_0x53d841-0x0;let _0x1234f2=_0x1e7d[_0x53d841];return _0x1234f2;};import{Users as _0x2989fb}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x5a67c8,PendingActions as _0x518e5c}from'ckeditor5/src/core';import{logWarning as _0x451913,uid as _0x313654}from'ckeditor5/src/utils';import{Position as _0x1156e2,Range as _0x683339,Element as _0x329849,DocumentFragment as _0x17ba17,ViewText as _0x469f0a,ViewElement as _0x189ec4,ViewContainerElement as _0x547d22,ViewAttributeElement as _0xf10854,ViewEmptyElement as _0x3242c2,ViewRawElement as _0x2f1b51,ViewUIElement as _0x44f6b1,ViewDocumentFragment as _0x19ce55}from'ckeditor5/src/engine';import _0x5da4bf from'./revisionsrepository';import{getTranslation as _0x54ec1b}from'./utils/common-translations';const J={'c':_0x547d22,'a':_0xf10854,'e':_0x3242c2,'r':_0x2f1b51,'u':_0x44f6b1};export default class u extends _0x5a67c8{static get[_0x1234('0xa5')](){return _0x1234('0x86');}static get['requires'](){return[_0x2989fb,_0x5da4bf,_0x518e5c];}constructor(..._0x1b767c){super(..._0x1b767c),this[_0x1234('0x7e')]=null,this[_0x1234('0x5a')](_0x1234('0x59'),!0x1),this[_0x1234('0x5a')](_0x1234('0xd9'),!0x0),this[_0x1234('0xc9')]=null;const _0x1eeaa5=_0x313654();this['_source']={'history':this['editor']['model']['document'][_0x1234('0xf3')],'getLatestVersion':()=>Promise[_0x1234('0xbd')](this['editor']['model'][_0x1234('0x44')][_0x1234('0x2b')]),'getCurrentRevisionId':()=>_0x1eeaa5},this['_revisionDataBuilder']=new B(this[_0x1234('0x47')]),this['_initialRevisionId']=this[_0x1234('0x47')][_0x1234('0x2e')][_0x1234('0x1a')](_0x1234('0x26'))||_0x1234('0xba'),this[_0x1234('0x5a')](_0x1234('0x7f'),!0x1),this[_0x1234('0x33')]=new Map(),this['editor']['config'][_0x1234('0x61')](_0x1234('0x4c'),!0x0),this[_0x1234('0xf6')]=null,this[_0x1234('0x47')][_0x1234('0x4e')][_0x1234('0x56')](_0x1234('0x52'))[_0x1234('0x78')]({'view':_0x1234('0xe7')});}['init'](){this[_0x1234('0x60')]=this['editor']['plugins'][_0x1234('0x1a')]('RevisionsRepository'),this[_0x1234('0xb')](),this['editor']['data']['on'](_0x1234('0x14'),()=>{const _0x1e9a2a=this['repository']['getRevision'](0x0),_0x3caa44=_0x1e9a2a&&null===_0x1e9a2a[_0x1234('0xd4')]?_0x1e9a2a:null;if(this[_0x1234('0xf2')]=!!_0x3caa44&&this[_0x1234('0x47')][_0x1234('0x2e')][_0x1234('0x1a')](_0x1234('0x4c')),this[_0x1234('0x47')][_0x1234('0x9')][_0x1234('0xb5')]('RealTimeCollaborationClient')){const _0x251352=this['_source'][_0x1234('0x84')](),_0x6a6fad=this[_0x1234('0x60')][_0x1234('0x36')](_0x251352);if(_0x6a6fad)this[_0x1234('0x9c')]=_0x6a6fad['fromVersion'],this[_0x1234('0xf2')]=!0x1;else{const _0x1bdd24=this[_0x1234('0xc0')][_0x1234('0xf3')][_0x1234('0x63')][_0x1234('0xad')](_0x1e8d18=>!_0x1e8d18[_0x1234('0x5e')]),_0x1fb350=_0x1bdd24?_0x1bdd24['baseVersion']:this['_source'][_0x1234('0xf3')][_0x1234('0x2b')];_0x1e9a2a?(_0x1e9a2a[_0x1234('0xeb')]<_0x1fb350&&_0x1e9a2a[_0x1234('0x90')]({'toVersion':_0x1fb350}),this[_0x1234('0xf2')]?(this['_source'][_0x1234('0x84')]=()=>_0x3caa44['id'],this[_0x1234('0x9c')]=_0x3caa44[_0x1234('0x80')]):(this['_startingVersion']=_0x1e9a2a[_0x1234('0xeb')],this[_0x1234('0xf2')]=!0x1)):(this[_0x1234('0x9c')]=_0x1fb350,this[_0x1234('0xf2')]=!0x1);}}else _0x3caa44&&(this[_0x1234('0x47')][_0x1234('0x9b')][_0x1234('0x44')][_0x1234('0xf3')][_0x1234('0x2b')]=Math[_0x1234('0xac')](_0x3caa44['toVersion'],this[_0x1234('0x47')][_0x1234('0x9b')]['document'][_0x1234('0xf3')][_0x1234('0x2b')]),_0x3caa44[_0x1234('0x80')]===_0x3caa44[_0x1234('0xeb')]?(0x0!==_0x3caa44[_0x1234('0x80')]&&(this[_0x1234('0xc0')]['getCurrentRevisionId']=()=>_0x3caa44['id']),this[_0x1234('0xf2')]=!0x1):this[_0x1234('0xf2')]&&(this[_0x1234('0xc0')]['getCurrentRevisionId']=()=>_0x3caa44['id'],this['_startingVersion']=_0x3caa44[_0x1234('0x80')])),this[_0x1234('0xf2')]||(this[_0x1234('0x9c')]=this[_0x1234('0x47')][_0x1234('0x9b')]['document'][_0x1234('0x2b')]);this[_0x1234('0xd')]['init'](this[_0x1234('0xc0')][_0x1234('0xf3')]),this[_0x1234('0x85')](this[_0x1234('0x9c')]),this['_createCurrentRevision'](this['_startingVersion']),this['adapter']&&this['sendBufferedUpdates']();}),this[_0x1234('0x66')](_0x1234('0x59'))['to'](this,'_isPendingUpdate',_0x5942ad=>!_0x5942ad);}async[_0x1234('0xa7')](){if(this['repository']['length']>0x0){const _0x10ad60=this[_0x1234('0x60')]['getRevision'](0x0),_0xc0d09=await this['getRevisionDocumentData'](_0x10ad60);this[_0x1234('0x10')](_0xc0d09);}}[_0x1234('0xa3')](_0x53bfd9){this[_0x1234('0xc0')]=_0x53bfd9;}async[_0x1234('0x65')](){const _0x3a6ef0=await this[_0x1234('0xc0')][_0x1234('0x75')]();if(_0x3a6ef0>this[_0x1234('0xc9')]['toVersion']){await this[_0x1234('0x6c')]();const _0x17f435=this['buildRevisionData']({'revision':this[_0x1234('0xc9')],'to':_0x3a6ef0});_0x17f435[_0x1234('0xb1')]=_0x17f435['authorsIds']['map'](_0x26e379=>this[_0x1234('0x47')][_0x1234('0x9')][_0x1234('0x1a')]('Users')[_0x1234('0xd7')](_0x26e379)),this[_0x1234('0xc9')][_0x1234('0x90')](_0x17f435);}}async['_loadState'](){this[_0x1234('0xf2')]&&!this['_loadedStateData']&&(await this[_0x1234('0x88')](this[_0x1234('0xc9')]),this[_0x1234('0xd')]['loadState'](this[_0x1234('0xc9')]),this[_0x1234('0xf6')]={'fromVersion':this[_0x1234('0xc9')][_0x1234('0x80')],'authors':this['currentRevision']['authors'][_0x1234('0xd8')]()});}async[_0x1234('0xe1')](_0x39910c={},_0x40dcbd=null){const _0x4a9c07=[];await this[_0x1234('0x6c')](),this[_0x1234('0xf2')]=!0x1,_0x40dcbd>this['currentRevision'][_0x1234('0xeb')]&&(_0x40dcbd=null),null===_0x40dcbd&&(_0x40dcbd=await this['_source']['getLatestVersion']());const _0x1a0bc7=this[_0x1234('0x5b')](_0x40dcbd),_0x5b3650=this[_0x1234('0x69')]({'from':_0x1a0bc7,'to':_0x40dcbd});if(this['currentRevision'][_0x1234('0xeb')]<_0x40dcbd){const _0x1ce8c0=this[_0x1234('0x69')]({'revision':this[_0x1234('0xc9')],'from':_0x40dcbd,'to':_0x40dcbd});_0x1ce8c0[_0x1234('0xb1')]=[],_0x1ce8c0[_0x1234('0x6f')]=[],_0x1ce8c0['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1ce8c0,!0x0),delete _0x1ce8c0['authors'],_0x4a9c07[_0x1234('0x50')](_0x1ce8c0);}_0x39910c[_0x1234('0x73')]=this['editor'][_0x1234('0x9')][_0x1234('0x1a')](_0x1234('0xda'))['me']['id'],_0x39910c['name']=_0x39910c['name']||null,_0x39910c['id']=_0x39910c['id']||_0x313654(),_0x39910c={..._0x39910c,..._0x5b3650};const _0x243cd0=this[_0x1234('0x40')](_0x39910c);_0x4a9c07['push'](_0x39910c);const _0x2b1a52=this[_0x1234('0x60')][_0x1234('0x24')](_0x243cd0);if(0x0!==_0x2b1a52){const _0x51de79=this[_0x1234('0x60')][_0x1234('0x36')](_0x2b1a52-0x1);if(_0x51de79[_0x1234('0x80')]!==_0x40dcbd){const _0x4daeb9=this['_revisionDataBuilder']['getData'](_0x40dcbd,_0x51de79[_0x1234('0xeb')]),_0x5710c4={'id':_0x51de79['id'],'diffData':_0x4daeb9[_0x1234('0x9e')],'authorsIds':_0x4daeb9['authorsIds'],'authors':_0x4daeb9[_0x1234('0x6f')][_0x1234('0x76')](_0xe50b7c=>this[_0x1234('0x47')][_0x1234('0x9')][_0x1234('0x1a')](_0x1234('0xda'))[_0x1234('0xd7')](_0xe50b7c)),'fromVersion':_0x40dcbd};_0x51de79===this[_0x1234('0xc9')]&&(_0x5710c4[_0x1234('0xf0')]=new Date(_0x39910c['createdAt'][_0x1234('0xe4')]()+0xa)),_0x51de79[_0x1234('0x90')](_0x5710c4,!0x0),delete _0x5710c4[_0x1234('0xb1')],_0x4a9c07[_0x1234('0x50')](_0x5710c4);}}if(this[_0x1234('0x7e')]){for(const _0x33dbd9 of _0x4a9c07)this[_0x1234('0xd5')](_0x33dbd9['id'],_0x33dbd9,!0x0);this[_0x1234('0x6a')]();}return _0x243cd0;}['addRevisionData'](_0x11faff){const _0x2f78cf=this[_0x1234('0x60')]['createRevision'](_0x11faff);return this[_0x1234('0x7e')]&&_0x2f78cf['on']('_update',(_0x525fcf,_0x2bb68e,_0x23e94c)=>{_0x23e94c||(this[_0x1234('0xd5')](_0x2bb68e['id'],_0x2bb68e,!0x0),this['sendBufferedUpdates']());}),this[_0x1234('0x60')][_0x1234('0x9d')](_0x2f78cf,this['_findInsertionIndex'](_0x2f78cf)),_0x2f78cf;}async['getRevisionDocumentData'](_0x54cec7){await this[_0x1234('0x88')](_0x54cec7);const _0x571a81={};for(const _0x1a4b29 in _0x54cec7[_0x1234('0x9e')]){const _0xcce063=this[_0x1234('0xc')](JSON[_0x1234('0x30')](_0x54cec7[_0x1234('0x9e')][_0x1a4b29][_0x1234('0xb4')])),_0x121498=this[_0x1234('0x47')]['editing'][_0x1234('0xe5')][_0x1234('0x44')],_0x355149=new _0x19ce55(_0x121498,_0xcce063[_0x1234('0x76')](_0x2cf64a=>j(_0x2cf64a,this[_0x1234('0x47')])));this[_0x1234('0x47')]['data'][_0x1234('0x96')][_0x1234('0xb2')](_0x1234('0x64')),_0x571a81[_0x1a4b29]=this['editor']['data'][_0x1234('0x96')][_0x1234('0x91')](_0x355149),this[_0x1234('0x47')][_0x1234('0xe3')]['processor']['useFillerType'](_0x1234('0x20'));}return _0x571a81;}[_0x1234('0x6a')](){if(0x0===this[_0x1234('0x33')][_0x1234('0x55')])return;if(this[_0x1234('0xa2')])return;let _0x2ca64b=Array[_0x1234('0x28')](this[_0x1234('0x33')][_0x1234('0xa')]());this[_0x1234('0x33')]['clear']();for(let _0x3379cb=0x0;_0x3379cb<_0x2ca64b[_0x1234('0x89')];_0x3379cb++){const _0x5c0c12=_0x2ca64b[_0x3379cb];let _0x281024=!0x1;for(const _0x1732d9 of Object[_0x1234('0xf5')](_0x5c0c12))void 0x0===_0x5c0c12[_0x1732d9]?delete _0x5c0c12[_0x1732d9]:'id'!==_0x1732d9&&(_0x281024=!0x0);_0x281024||(_0x2ca64b[_0x3379cb]=null);}if(_0x2ca64b=_0x2ca64b[_0x1234('0x58')](_0x2f92ec=>null!==_0x2f92ec),!_0x2ca64b[_0x1234('0x89')])return;for(let _0x24ba03=0x0;_0x24ba03<_0x2ca64b[_0x1234('0x89')];_0x24ba03++){const _0x521696=_0x2ca64b[_0x24ba03];void 0x0!==_0x521696[_0x1234('0x80')]&&void 0x0===_0x521696[_0x1234('0xeb')]&&(_0x521696[_0x1234('0xeb')]=this[_0x1234('0x60')][_0x1234('0x36')](_0x521696['id'])[_0x1234('0xeb')]),void 0x0!==_0x521696['toVersion']&&void 0x0===_0x521696[_0x1234('0x80')]&&(_0x521696[_0x1234('0x80')]=this[_0x1234('0x60')][_0x1234('0x36')](_0x521696['id'])[_0x1234('0x80')]);}const _0x16dc45=this[_0x1234('0x47')][_0x1234('0x2e')]['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this[_0x1234('0xab')](),this[_0x1234('0x7e')][_0x1234('0x1d')](_0x2ca64b,_0x16dc45)[_0x1234('0x4d')](()=>{this[_0x1234('0xa2')]=!0x1;})[_0x1234('0xf4')](_0x1857a0=>{if(_0x1857a0)for(const _0x117599 of _0x1857a0)this[_0x1234('0x3d')]({'id':_0x117599['id'],'createdAt':_0x117599[_0x1234('0xf0')]});this[_0x1234('0x6e')](),this[_0x1234('0x6a')]();});}[_0x1234('0x10')](_0x4765ef){let _0x2ca889=this[_0x1234('0x47')][_0x1234('0x2e')][_0x1234('0x1a')]('initialData');if(void 0x0===_0x2ca889){_0x2ca889={};for(const _0x5cfa8b of this[_0x1234('0x47')][_0x1234('0x9b')][_0x1234('0x44')][_0x1234('0xaa')]())_0x2ca889[_0x5cfa8b]='';}_0x1234('0x41')==typeof _0x2ca889&&(_0x2ca889={'main':_0x2ca889});let _0x2e9f6c=!0x1;for(const _0xcf7d08 of Object[_0x1234('0xf5')](_0x2ca889))_0x4765ef[_0xcf7d08]&&(_0x2ca889[_0xcf7d08]!==_0x4765ef[_0xcf7d08]&&''!==_0x2ca889[_0xcf7d08][_0x1234('0x79')]()&&(_0x2e9f6c=!0x0),_0x2ca889[_0xcf7d08]=_0x4765ef[_0xcf7d08]);_0x2e9f6c&&_0x451913(_0x1234('0x83')),this[_0x1234('0x47')]['config'][_0x1234('0x5a')](_0x1234('0x95'),_0x2ca889);}['_addPendingAction'](){if(!this[_0x1234('0xec')]){const _0x384243=this['editor'][_0x1234('0x9')][_0x1234('0x1a')]('PendingActions');this[_0x1234('0xec')]=_0x384243[_0x1234('0x87')](_0x54ec1b(this[_0x1234('0x47')][_0x1234('0xbb')],_0x1234('0x37')));}}['_removePendingAction'](){this['_pendingAction']&&(this[_0x1234('0x47')][_0x1234('0x9')][_0x1234('0x1a')](_0x1234('0x4'))[_0x1234('0x2a')](this[_0x1234('0xec')]),this[_0x1234('0xec')]=null);}['_findInsertionIndex'](_0x2cc1ab){const _0x1c421d=this[_0x1234('0x60')][_0x1234('0x97')]();_0x1c421d[_0x1234('0xbe')]();let _0x333244=0x0;for(;_0x333244<_0x1c421d[_0x1234('0x89')];){const _0x1cce65=_0x1c421d[_0x333244];if(_0x1cce65===this[_0x1234('0xc9')]){_0x333244++;continue;}if(_0x1cce65['id']===this['_initialRevisionId'])break;const _0x112e90=_0x2cc1ab[_0x1234('0xeb')]-_0x1cce65['toVersion']||_0x2cc1ab[_0x1234('0x80')]-_0x1cce65['fromVersion'];if(_0x112e90>0x0)break;if(_0x112e90<0x0)_0x333244++;else{if(!_0x2cc1ab[_0x1234('0xd4')]&&_0x1cce65[_0x1234('0xd4')])break;if(_0x1cce65[_0x1234('0xd4')]||!_0x2cc1ab['creator']){if(_0x2cc1ab['createdAt']>_0x1cce65[_0x1234('0xf0')])break;_0x333244++;}else _0x333244++;}}return _0x333244;}[_0x1234('0x3d')](_0x27cd55){const _0x5687fb=this['repository'][_0x1234('0x36')](_0x27cd55['id']);if(_0x27cd55[_0x1234('0xf0')]&&(_0x27cd55[_0x1234('0xf0')]=new Date(_0x27cd55[_0x1234('0xf0')])),_0x27cd55['authorsIds']){const _0x4621a4=this[_0x1234('0x47')][_0x1234('0x9')]['get'](_0x1234('0xda'));_0x27cd55[_0x1234('0xb1')]=_0x27cd55[_0x1234('0x6f')][_0x1234('0x76')](_0xcc7992=>_0x4621a4[_0x1234('0xd7')](_0xcc7992));}_0x5687fb['_update'](_0x27cd55,!0x0);}[_0x1234('0x69')]({revision:_0x57fdde=null,from:_0x48113e=null,to:_0x25fd7f=null}){_0x48113e=null!==_0x48113e?_0x48113e:_0x57fdde[_0x1234('0x80')],_0x25fd7f=null!==_0x25fd7f?_0x25fd7f:_0x57fdde[_0x1234('0xeb')];const _0x1c6d65=this[_0x1234('0xd')]['getData'](_0x48113e,_0x25fd7f),_0x409970={'diffData':_0x1c6d65[_0x1234('0x9e')],'authorsIds':_0x1c6d65['authorsIds'],'fromVersion':_0x48113e,'toVersion':_0x25fd7f};if(!_0x57fdde||_0x25fd7f!==_0x57fdde[_0x1234('0xeb')]){const _0x1d2631=_0x25fd7f-0x1,_0x69e8eb=this['_source'][_0x1234('0xf3')]['getOperation'](_0x1d2631);_0x409970[_0x1234('0xf0')]=_0x69e8eb&&_0x69e8eb[_0x1234('0xf0')]||new Date();}if(this[_0x1234('0xf6')]&&_0x48113e===this[_0x1234('0xf6')][_0x1234('0x80')])for(const _0x1161a7 of this['_loadedStateData'][_0x1234('0xb1')])_0x409970['authorsIds'][_0x1234('0xaf')](_0x1161a7['id'])||_0x409970['authorsIds'][_0x1234('0x50')](_0x1161a7['id']);return _0x409970;}['_loadRevisionData'](_0x22ded4){if(!_0x22ded4||_0x22ded4[_0x1234('0x9e')])return Promise['resolve']();{const _0x576da3=this[_0x1234('0x47')]['config'][_0x1234('0x1a')](_0x1234('0x26'));return this[_0x1234('0x7e')][_0x1234('0x36')]({'channelId':_0x576da3,'revisionId':_0x22ded4['id']})[_0x1234('0xf4')](_0x2ad9f4=>{_0x22ded4[_0x1234('0x9e')]=_0x2ad9f4[_0x1234('0x9e')];});}}[_0x1234('0xd5')](_0x241793,_0x447223,_0x4485e4){if(this[_0x1234('0x33')][_0x1234('0xb5')](_0x241793)){const _0x944701=this[_0x1234('0x33')][_0x1234('0x1a')](_0x241793);_0x447223=_0x4485e4?{..._0x944701,..._0x447223}:{..._0x447223,..._0x944701};}this[_0x1234('0x33')][_0x1234('0x5a')](_0x241793,_0x447223);}[_0x1234('0x5b')](_0x1226c6){const _0x44b897=this['repository']['getRevisions']();_0x44b897[_0x1234('0xbe')](),_0x44b897[_0x1234('0x2c')]();const _0x6b9b72=_0x44b897[_0x1234('0xad')](_0x1ae625=>_0x1ae625[_0x1234('0xeb')]<=_0x1226c6)['toVersion'];return _0x6b9b72<this['_startingVersion']?this[_0x1234('0x9c')]:_0x6b9b72;}['_createInitialRevision'](_0x4f24d8){const _0x4b1210=this[_0x1234('0x60')]['getRevision'](this[_0x1234('0x60')][_0x1234('0x89')]-0x1);if(_0x4b1210)this[_0x1234('0x6b')]=_0x4b1210['id'];else{const _0x281a95=!this[_0x1234('0x47')]['model'][_0x1234('0x44')]['roots'][_0x1234('0xad')](_0x210c04=>this['editor'][_0x1234('0x9b')][_0x1234('0xbf')](_0x210c04)),_0x1ebffb=this[_0x1234('0x47')]['plugins'][_0x1234('0x1a')](_0x1234('0xda'))['me']['id'],_0x40810d=_0x54ec1b(this[_0x1234('0x47')][_0x1234('0xbb')],_0x281a95?_0x1234('0xae'):_0x1234('0x1f'));this[_0x1234('0x81')]({'from':_0x4f24d8,'to':_0x4f24d8,'id':this[_0x1234('0x6b')],'name':_0x40810d,'creatorId':_0x1ebffb});}}[_0x1234('0xa0')](_0x37b805){const _0x53108f=this[_0x1234('0xc0')]['getCurrentRevisionId']();this[_0x1234('0xc9')]=this['repository'][_0x1234('0x36')](_0x53108f),this[_0x1234('0xc9')]||(this[_0x1234('0xc9')]=this[_0x1234('0x81')]({'from':_0x37b805,'to':_0x37b805,'id':_0x53108f,'name':'','creatorId':null}));}[_0x1234('0x81')]({name:_0x12dfa9,from:_0x2a3d2d,to:_0x3f6852,creatorId:_0x59d4f3,id:_0x2e264e}){const _0x25f763=this[_0x1234('0x69')]({'from':_0x2a3d2d,'to':_0x3f6852});_0x25f763[_0x1234('0xce')]=_0x12dfa9,_0x25f763[_0x1234('0x73')]=_0x59d4f3,_0x25f763['id']=_0x2e264e;const _0x4b1f30=this[_0x1234('0x40')](_0x25f763);return this[_0x1234('0x7e')]&&this[_0x1234('0xd5')](_0x25f763['id'],_0x25f763,!0x0),_0x4b1f30;}[_0x1234('0xb')](){this[_0x1234('0x47')]['conversion'][_0x1234('0x56')]('dataDowncast')[_0x1234('0xc2')]({'model':_0x1234('0xe7')});}[_0x1234('0xc')](_0xa3644e){return(_0xa3644e=_0xa3644e['filter'](_0x39c95d=>!_0x39c95d['name']||_0x1234('0xa1')!==_0x39c95d[_0x1234('0xce')]&&_0x1234('0x94')!==_0x39c95d[_0x1234('0xce')]))['forEach'](_0x43eb88=>{_0x1234('0x41')!=typeof _0x43eb88&&(_0x43eb88[_0x1234('0xd2')]=this['_removeRevisionMarkers'](_0x43eb88[_0x1234('0xd2')]),_0x43eb88[_0x1234('0x4b')]=_0x43eb88[_0x1234('0x4b')]['filter'](_0x24255e=>!_0x24255e[0x0][_0x1234('0xb7')](_0x1234('0x51'))));}),_0xa3644e;}}function j(_0x3c6dd8,_0x5ab707){const _0x20fc45=_0x5ab707[_0x1234('0x82')][_0x1234('0xe5')][_0x1234('0x44')];if('string'==typeof _0x3c6dd8)return new _0x469f0a(_0x20fc45,_0x3c6dd8);{const _0x41baec=_0x3c6dd8[_0x1234('0xd2')]['map'](_0x4da21e=>j(_0x4da21e,_0x5ab707));return new(J[_0x3c6dd8[(_0x1234('0x21'))]]||_0x189ec4)(_0x20fc45,_0x3c6dd8[_0x1234('0xce')],_0x3c6dd8[_0x1234('0x4b')],_0x41baec);}}class B{constructor(_0x290248){this[_0x1234('0x47')]=_0x290248,this[_0x1234('0xcc')]=new Map(),this[_0x1234('0x8c')]=-0x1,this[_0x1234('0x62')]=-0x1,this['_markers']=new Map(),this[_0x1234('0xa4')]=new Map(),this[_0x1234('0xee')]=new Map(),this[_0x1234('0xca')]=new Map(),this[_0x1234('0x18')]=new Map(),this[_0x1234('0x67')]=new Map(),this[_0x1234('0x12')]=new Map(),this[_0x1234('0x6')]=0x1,this['_rootNames']=this[_0x1234('0x47')][_0x1234('0x9b')][_0x1234('0x44')][_0x1234('0xaa')](),this[_0x1234('0xcb')][_0x1234('0x50')](_0x1234('0x7c'));}[_0x1234('0xed')](_0x28933b){this[_0x1234('0x8e')]=_0x28933b;const _0xc786c1=new Map();for(const _0xe68b12 of this['_rootNames']){const _0x106a7d=H(this['editor'][_0x1234('0x9b')][_0x1234('0x44')]['getRoot'](_0xe68b12));_0xc786c1['set'](_0xe68b12,_0x106a7d);}const _0x321ffd=Array['from'](this[_0x1234('0x47')]['model'][_0x1234('0x2')])['map'](_0x2c5fec=>[_0x2c5fec[_0x1234('0xce')],_0x2c5fec['getRange']()]),_0x497892=this[_0x1234('0x8e')][_0x1234('0x2b')];this['_saveMetaData'](_0x497892,_0xc786c1,_0x321ffd),this['_startingRevisionId']=this[_0x1234('0x6')];}['getData'](_0xa4558,_0x415e76){if(this[_0x1234('0x8c')]===_0xa4558&&this[_0x1234('0x62')]<=_0x415e76)this[_0x1234('0xcc')][_0x1234('0x55')]>0x1&&this['_removeMetaData'](this['_lastTo']),this[_0x1234('0xdd')](this[_0x1234('0x62')],_0x415e76,!0x0);else{if(!this[_0x1234('0xcc')][_0x1234('0xb5')](_0xa4558)){const _0x516a7a=this[_0x1234('0x46')](_0xa4558);this['_calculateMetaData'](_0x516a7a,_0xa4558,!0x1);}this[_0x1234('0xdb')](_0xa4558,_0x415e76,!0x0);}return this[_0x1234('0x8c')]=_0xa4558,this[_0x1234('0x62')]=_0x415e76,this[_0x1234('0xd3')]();}[_0x1234('0x9a')](_0x8bdbe0){this[_0x1234('0x92')](),this[_0x1234('0x8c')]=_0x8bdbe0['fromVersion'],this[_0x1234('0x62')]=_0x8bdbe0[_0x1234('0xeb')];for(const _0x3f151a in _0x8bdbe0[_0x1234('0x9e')]){const _0x1788fd=this[_0x1234('0x35')](_0x8bdbe0[_0x1234('0x9e')][_0x3f151a][_0x1234('0x0')]);_0x1788fd[_0x1234('0xbc')]=_0x3f151a,this[_0x1234('0xee')][_0x1234('0x5a')](_0x3f151a,_0x1788fd);const _0x3bca71=this[_0x1234('0xdc')](_0x1788fd);this[_0x1234('0x18')][_0x1234('0x5a')](_0x3f151a,_0x3bca71);for(const [_0xdcb7cb,_0x23aec5]of _0x1788fd['markers']){if(!_0xdcb7cb[_0x1234('0xb7')](_0x1234('0xdf')))continue;const _0x47826e=_0xdcb7cb[_0x1234('0x13')](':')[0x2];for(const _0xf6ddde of _0x23aec5[_0x1234('0x9f')]({'singleCharacters':!0x0})){const _0x154ae5=this[_0x1234('0x42')](_0xf6ddde),_0x2289b4=_0x1234('0x1b')==_0xf6ddde['type']?_0xf6ddde[_0x1234('0x7d')][_0x1234('0xf')][_0x1234('0xd8')](0x0,-0x1):_0xf6ddde[_0x1234('0x7d')][_0x1234('0xf')],_0x3d10a5=_0x3bca71[_0x1234('0xe')](_0x2289b4)[_0x1234('0xe8')](_0x154ae5);this[_0x1234('0x67')]['set'](_0x3d10a5,{'userId':_0x47826e});}}}this[_0x1234('0x43')]=this[_0x1234('0x6')];const _0x219e07=[...Array(this[_0x1234('0x6')])[_0x1234('0xf5')]()][_0x1234('0xd8')](0x1)[_0x1234('0x58')](_0x1e90bf=>!this[_0x1234('0x67')][_0x1234('0xb5')](_0x1e90bf));let _0x190f60=0x0;for(const _0x3783d8 in _0x8bdbe0[_0x1234('0x9e')]){const _0x4a7f38=this['_makeModelFromViewString'](_0x8bdbe0[_0x1234('0x9e')][_0x3783d8][_0x1234('0xb4')]);_0x4a7f38['rootName']=_0x3783d8,this['_diffRoots']['set'](_0x3783d8,_0x4a7f38);const _0x5b8064=this['_makeIdsRoot'](_0x4a7f38,Number[_0x1234('0x31')]);this[_0x1234('0xca')][_0x1234('0x5a')](_0x3783d8,_0x5b8064);for(const [_0x394e7e,_0x25e1e3]of _0x4a7f38[_0x1234('0x2')]){if(!_0x394e7e[_0x1234('0xb7')](_0x1234('0xdf')))continue;const _0x130a4b=_0x394e7e[_0x1234('0x13')](':')[0x2];for(const _0x4b187e of _0x25e1e3[_0x1234('0x9f')]({'singleCharacters':!0x0})){const _0x308767=this[_0x1234('0x42')](_0x4b187e),_0xe8038f=this[_0x1234('0x6')]++,_0x2e90b0=_0x1234('0x1b')==_0x4b187e[_0x1234('0x21')]?_0x4b187e[_0x1234('0x7d')]['path']['slice'](0x0,-0x1):_0x4b187e[_0x1234('0x7d')][_0x1234('0xf')];_0x5b8064[_0x1234('0xe')](_0x2e90b0)[_0x1234('0x99')](_0x308767,_0xe8038f),this[_0x1234('0x67')]['set'](_0xe8038f,{'userId':_0x130a4b});}}for(const _0x1a21f5 of this['editor'][_0x1234('0x9b')][_0x1234('0x39')](_0x4a7f38)[_0x1234('0x9f')]({'singleCharacters':!0x0})){const _0x48920b=this[_0x1234('0x42')](_0x1a21f5),_0xa30fee=_0x1234('0x1b')==_0x1a21f5[_0x1234('0x21')]?_0x1a21f5[_0x1234('0x7d')][_0x1234('0xf')][_0x1234('0xd8')](0x0,-0x1):_0x1a21f5['previousPosition'][_0x1234('0xf')],_0x19c66a=_0x5b8064[_0x1234('0xe')](_0xa30fee);_0x19c66a[_0x1234('0xe8')](_0x48920b)>0x0||_0x19c66a['_setAttribute'](_0x48920b,_0x219e07[_0x190f60++]);}const _0x1718d6=new _0x17ba17();_0x1718d6[_0x1234('0xbc')]='$graveyard',this[_0x1234('0xee')]['set'](_0x1234('0x7c'),_0x1718d6),this[_0x1234('0x18')][_0x1234('0x5a')]('$graveyard',this[_0x1234('0xdc')](_0x1718d6,0x1));const _0x246ac8=new _0x17ba17();_0x246ac8[_0x1234('0xbc')]=_0x1234('0x7c'),this[_0x1234('0xa4')][_0x1234('0x5a')](_0x1234('0x7c'),_0x246ac8),this[_0x1234('0xca')][_0x1234('0x5a')](_0x1234('0x7c'),this[_0x1234('0xdc')](_0x246ac8,0x1));for(const [_0x2f5480,_0x47c823]of _0x4a7f38[_0x1234('0x2')])_0x2f5480[_0x1234('0xb7')](_0x1234('0xdf'))||this['_markers'][_0x1234('0x5a')](_0x2f5480,_0x47c823);}const _0x1fc357=Array[_0x1234('0x28')](this[_0x1234('0xa4')])[_0x1234('0x76')](([_0x5f5368,_0x194638])=>[_0x5f5368,H(_0x194638)]);this[_0x1234('0x3a')](this[_0x1234('0x62')],_0x1fc357,this['_markers']);}['_makeModelFromViewString'](_0x3dcac6){const _0x437c9f=JSON['parse'](_0x3dcac6),_0x438094=this['editor'][_0x1234('0x82')][_0x1234('0xe5')]['document'],_0x271bff=new _0x19ce55(_0x438094,_0x437c9f[_0x1234('0x76')](_0x2d57a5=>j(_0x2d57a5,this[_0x1234('0x47')])));return this[_0x1234('0x47')]['data'][_0x1234('0x7b')](_0x271bff);}[_0x1234('0x8d')](){const _0x593372=new Map();for(const _0x3198d9 of this['_rootNames']){const _0x4abec4=new _0x17ba17();_0x4abec4[_0x1234('0xbc')]=_0x3198d9,_0x593372[_0x1234('0x5a')](_0x3198d9,_0x4abec4);}this[_0x1234('0x3a')](Number['NEGATIVE_INFINITY'],_0x593372,[]);}['_saveMetaData'](_0xd85694,_0x138439,_0x4c7e16){const _0x23fb7a=new Map(_0x138439),_0x42070a=new Map();for(const [_0x5f230f,_0x387f5a]of _0x4c7e16)_0x42070a[_0x1234('0x5a')](_0x5f230f,{'start':_0x387f5a[_0x1234('0x3c')][_0x1234('0x4f')](),'end':_0x387f5a[_0x1234('0xa8')]['clone'](),'rootName':_0x387f5a[_0x1234('0xc6')][_0x1234('0xbc')]});this[_0x1234('0xcc')][_0x1234('0x5a')](_0xd85694,{'roots':_0x23fb7a,'markers':_0x42070a});}[_0x1234('0x3')](_0x583ced){this[_0x1234('0xcc')]['delete'](_0x583ced);}[_0x1234('0x11')](){this[_0x1234('0x92')](),this[_0x1234('0x8c')]=-0x1,this[_0x1234('0x62')]=-0x1,this[_0x1234('0xcc')][_0x1234('0xd0')](),this[_0x1234('0xed')](this[_0x1234('0x8e')]);}[_0x1234('0x92')](){this[_0x1234('0x67')]['clear'](),this[_0x1234('0x12')][_0x1234('0xd0')](),this['_diffRoots'][_0x1234('0xd0')](),this[_0x1234('0xee')]['clear'](),this[_0x1234('0xca')][_0x1234('0xd0')](),this[_0x1234('0x18')][_0x1234('0xd0')](),this[_0x1234('0x71')][_0x1234('0xd0')](),this[_0x1234('0x6')]=0x1,this[_0x1234('0x43')]=this[_0x1234('0x6')];}[_0x1234('0xdc')](_0x252441,_0x77dad4=null){let _0x776550=null;_0x252441['is'](_0x1234('0x8a'))||(_0x776550=new _0x329849(_0x252441[_0x1234('0xce')],{'vid_start':null===_0x77dad4?this[_0x1234('0x6')]++:_0x77dad4++}));const _0x10c1a8=[];for(const _0x4bcc32 of _0x252441[_0x1234('0x3b')]())if(_0x4bcc32['is']('element')){_0x10c1a8[_0x1234('0x50')](this['_makeIdsRoot'](_0x4bcc32,_0x77dad4));const _0x21475c=_0x10c1a8[_0x10c1a8[_0x1234('0x89')]-0x1];null!==_0x77dad4&&(_0x77dad4=_0x21475c['is'](_0x1234('0x6d'),'$text')?_0x21475c['getAttribute'](_0x1234('0x32'))+0x1:_0x21475c['getAttribute'](_0x1234('0x98'))+0x1);}else for(let _0x4df8fc=0x0;_0x4df8fc<_0x4bcc32[_0x1234('0x2f')];_0x4df8fc++)_0x10c1a8[_0x1234('0x50')](new _0x329849(_0x1234('0xcf'),{'vid':null===_0x77dad4?this['_revisionId']++:_0x77dad4++}));if(_0x252441['is'](_0x1234('0x8a'))){const _0x4c4722=new _0x17ba17(_0x10c1a8);return _0x4c4722['rootName']=_0x252441[_0x1234('0xbc')],_0x4c4722;}return _0x776550[_0x1234('0x99')](_0x1234('0x98'),null===_0x77dad4?this[_0x1234('0x6')]++:_0x77dad4++),_0x776550[_0x1234('0xa9')](0x0,_0x10c1a8),_0x776550;}['_calculateMetaData'](_0x5443d9,_0x65191,_0x3920e3){this['_reset']();const {roots:_0xbe5f7d,markers:_0x125dd1}=this['_savedMetaData'][_0x1234('0x1a')](_0x5443d9);this['_baseRoots']=new Map(_0xbe5f7d);for(const [_0x5457b0,_0x4d95b8]of this[_0x1234('0xee')])if(_0x1234('0x7c')!==_0x5457b0&&(this[_0x1234('0xa4')][_0x1234('0x5a')](_0x5457b0,H(_0x4d95b8)),_0x3920e3)){const _0x42c486=this[_0x1234('0x6')];this[_0x1234('0xca')][_0x1234('0x5a')](_0x5457b0,this[_0x1234('0xdc')](_0x4d95b8)),this['_baseIdsRoots'][_0x1234('0x5a')](_0x5457b0,this[_0x1234('0xdc')](_0x4d95b8,_0x42c486));}this[_0x1234('0x43')]=this[_0x1234('0x6')],this['_diffRoots'][_0x1234('0x5a')](_0x1234('0x7c'),H(this[_0x1234('0xee')][_0x1234('0x1a')](_0x1234('0x7c')))),_0x3920e3&&this[_0x1234('0xca')][_0x1234('0x5a')](_0x1234('0x7c'),this[_0x1234('0xdc')](this[_0x1234('0xee')]['get']('$graveyard')));for(const [_0x496a08,_0x524ae6]of _0x125dd1){const _0x3f7efe=this[_0x1234('0xee')][_0x1234('0x1a')](_0x524ae6[_0x1234('0xbc')]),_0x4d26a3=this[_0x1234('0xa4')][_0x1234('0x1a')](_0x524ae6[_0x1234('0xbc')]),_0x2c2b01=new _0x683339(this[_0x1234('0x5f')](_0x524ae6[_0x1234('0x3c')],_0x3f7efe),this[_0x1234('0x5f')](_0x524ae6[_0x1234('0xa8')],_0x3f7efe)),_0xd2bb89=this[_0x1234('0x45')](_0x2c2b01,_0x4d26a3);_0x3f7efe[_0x1234('0x2')]['set'](_0x496a08,_0x2c2b01),this['_markers'][_0x1234('0x5a')](_0x496a08,_0xd2bb89);}this[_0x1234('0xdd')](_0x5443d9,_0x65191,_0x3920e3);}[_0x1234('0xdd')](_0x38baf4,_0x3c98f8,_0x240210){for(const _0x567e2a of this[_0x1234('0x8e')][_0x1234('0xa6')](_0x38baf4,_0x3c98f8))this[_0x1234('0xcd')](_0x567e2a,_0x240210);for(const _0x3d9b2f of this[_0x1234('0xa4')][_0x1234('0xa')]())_0x3d9b2f[_0x1234('0x2')][_0x1234('0xd0')]();for(const [_0x32d72d,_0x19cf8b]of this[_0x1234('0x71')]){this['_diffRoots'][_0x1234('0x1a')](_0x19cf8b[_0x1234('0xc6')][_0x1234('0xbc')])[_0x1234('0x2')][_0x1234('0x5a')](_0x32d72d,_0x19cf8b[_0x1234('0x4f')]());}this['_saveMetaData'](_0x3c98f8,Array['from'](this[_0x1234('0xa4')])[_0x1234('0x76')](([_0x3df0a8,_0x1434b5])=>[_0x3df0a8,H(_0x1434b5)]),this['_markers']);}['_getPreviousFrom'](_0x5de64b){const _0x2c3a85=Array[_0x1234('0x28')](this[_0x1234('0xcc')][_0x1234('0xf5')]());_0x2c3a85[_0x1234('0x7a')]((_0x4071f5,_0x33164a)=>_0x4071f5-_0x33164a),_0x2c3a85[_0x1234('0xbe')]();for(const _0x52bacd of _0x2c3a85)if(_0x52bacd<_0x5de64b)return _0x52bacd;return this[_0x1234('0x8d')](),Number[_0x1234('0x31')];}[_0x1234('0xef')](_0x397409,_0x3321ee){const _0x45af18=Array['from'](_0x3321ee[_0x1234('0x2')])['map'](([_0x233341,_0x19ad06])=>[_0x233341,this[_0x1234('0x45')](_0x19ad06,_0x397409)]);_0x397409[_0x1234('0x2')]=new Map(_0x45af18);}[_0x1234('0xea')](_0x108c0){for(const _0x5c778e of this[_0x1234('0x71')]['values']()){const _0x5c8654=_0x5c778e[_0x1234('0xc7')](_0x108c0),_0x516d18=_0x683339[_0x1234('0xe0')](_0x5c8654);_0x5c778e[_0x1234('0x3c')]=_0x516d18[_0x1234('0x3c')],_0x5c778e[_0x1234('0xa8')]=_0x516d18[_0x1234('0xa8')];}}[_0x1234('0xcd')](_0x10e02a,_0x28ea9e){const _0x45faf5=this[_0x1234('0xe2')](_0x10e02a,this['_diffRoots']);if('marker'!==_0x10e02a[_0x1234('0x21')]&&(_0x45faf5[_0x1234('0x3f')](),this[_0x1234('0xea')](_0x45faf5)),_0x28ea9e)switch(_0x45faf5[_0x1234('0x21')]){case'insert':this[_0x1234('0x2d')](_0x10e02a);break;case _0x1234('0x17'):case _0x1234('0x2a'):case _0x1234('0x57'):this[_0x1234('0xf1')](_0x10e02a);break;case _0x1234('0xb0'):this[_0x1234('0x38')](_0x10e02a);break;case _0x1234('0x13'):this[_0x1234('0x19')](_0x10e02a);break;case'marker':this[_0x1234('0x74')](_0x10e02a);}}[_0x1234('0xe2')](_0x17d871,_0x2ab08f){const _0x4c56e7=_0x17d871[_0x1234('0x4f')]();return _0x4c56e7['_authorId']=_0x17d871[_0x1234('0x25')],this[_0x1234('0xb9')](_0x4c56e7,_0x2ab08f),_0x4c56e7;}[_0x1234('0x16')](_0x23fa3a){return _0x23fa3a[_0x1234('0x76')](_0xad7faf=>{const _0x4df884=this[_0x1234('0x42')](_0xad7faf);return Number(_0xad7faf[_0x1234('0x8')][_0x1234('0xe8')](_0x4df884));});}[_0x1234('0xc5')](_0x655c82,_0x29b8ea){if(_0x655c82['is'](_0x1234('0x6d'),_0x1234('0xcf')))_0x29b8ea['push']({'item':_0x655c82,'type':_0x1234('0x53')});else{_0x655c82['is'](_0x1234('0x6d'))&&_0x29b8ea[_0x1234('0x50')]({'item':_0x655c82,'type':_0x1234('0x5c')});for(const _0x2c41de of _0x655c82[_0x1234('0x3b')]())this[_0x1234('0xc5')](_0x2c41de,_0x29b8ea);_0x655c82['is'](_0x1234('0x6d'))&&_0x29b8ea[_0x1234('0x50')]({'item':_0x655c82,'type':'elementEnd'});}return _0x29b8ea;}[_0x1234('0xd3')](){const _0x3f9ea4=this[_0x1234('0x47')][_0x1234('0x9b')][_0x1234('0x44')][_0x1234('0xaa')](),_0x60db20=new Map(this[_0x1234('0x67')]),_0x3db05=new Map(_0x60db20),_0x2c19e7=new Map(),_0x106794={'insertions':{},'deletions':{}},_0x44febc={'insertions':{},'deletions':{}},_0xc3cdec=new Map();for(const _0x32b5ae of _0x3f9ea4){const _0x44f0c2=this[_0x1234('0xa4')][_0x1234('0x1a')](_0x32b5ae),_0xf5f481=this[_0x1234('0xee')][_0x1234('0x1a')](_0x32b5ae);_0x106794['insertions'][_0x32b5ae]=H(_0x44f0c2),_0x106794[_0x1234('0x0')][_0x32b5ae]=H(_0xf5f481),this[_0x1234('0xef')](_0x106794['deletions'][_0x32b5ae],_0xf5f481),this[_0x1234('0xef')](_0x106794['insertions'][_0x32b5ae],_0x44f0c2),_0x44febc[_0x1234('0xb4')][_0x32b5ae]=this[_0x1234('0xc5')](this['_idsRoots'][_0x1234('0x1a')](_0x32b5ae),[]),_0x44febc['deletions'][_0x32b5ae]=this[_0x1234('0xc5')](this[_0x1234('0x18')][_0x1234('0x1a')](_0x32b5ae),[]);}for(const _0x3e7c68 of _0x3f9ea4){const _0xe45843=_0x44febc[_0x1234('0xb4')][_0x3e7c68];for(const _0x569c71 of _0xe45843){const _0x9fb6fc=this[_0x1234('0x42')](_0x569c71),_0x58638f=_0x569c71[_0x1234('0x8')][_0x1234('0xe8')](_0x9fb6fc);_0x3db05[_0x1234('0x29')](_0x58638f),_0x58638f>=this[_0x1234('0x43')]&&_0x2c19e7[_0x1234('0x5a')](_0x58638f,_0x60db20[_0x1234('0x1a')](_0x58638f));}}for(const _0x4e2cfe of _0x3f9ea4){const _0x4552cb=_0x44febc[_0x1234('0xb4')][_0x4e2cfe],_0x570e4f=this['_getBaseVids'](_0x44febc[_0x1234('0x0')][_0x4e2cfe]);let _0x581595=0x0;for(const _0x46b3bc of _0x4552cb){const _0x2e0649=this[_0x1234('0x42')](_0x46b3bc),_0x53dca8=_0x46b3bc[_0x1234('0x8')][_0x1234('0xe8')](_0x2e0649);if(!_0x2c19e7[_0x1234('0xb5')](_0x53dca8)&&!_0xc3cdec[_0x1234('0xb5')](_0x53dca8)){if(_0x3db05[_0x1234('0xb5')](_0x53dca8))_0x581595++;else{if(_0x53dca8!=_0x570e4f[_0x581595]){const _0x5293c6=_0x60db20[_0x1234('0x1a')](_0x53dca8)||_0x60db20[_0x1234('0x1a')](_0x570e4f[_0x581595]);for(;_0x53dca8!=_0x570e4f[_0x581595];)_0x3db05[_0x1234('0xb5')](_0x570e4f[_0x581595])||(_0xc3cdec['set'](_0x570e4f[_0x581595],_0x5293c6),_0x60db20[_0x1234('0x5a')](_0x570e4f[_0x581595],_0x5293c6)),_0x581595++;}_0x581595++;}}}}for(const _0x1c1246 of _0x3f9ea4){const _0x16cb1d=_0x44febc['insertions'][_0x1c1246];for(const _0x41bf5b of _0x16cb1d){const _0x523e6d=this[_0x1234('0x42')](_0x41bf5b),_0x2c20e0=_0x41bf5b[_0x1234('0x8')][_0x1234('0xe8')](_0x523e6d);if(_0xc3cdec[_0x1234('0xb5')](_0x2c20e0)){const _0x1101c2=_0xc3cdec[_0x1234('0x1a')](_0x2c20e0);_0x3db05[_0x1234('0xb5')](_0x2c20e0)||_0x3db05[_0x1234('0x5a')](_0x2c20e0,{..._0x1101c2}),_0x2c19e7['set'](_0x2c20e0,{..._0x1101c2});}}}for(const _0x4727a0 of _0x3db05[_0x1234('0xf5')]())_0x4727a0>=this['_startingRevisionId']&&_0x3db05['delete'](_0x4727a0);const _0x5f08c8=new Map();for(const _0x35aa2c of _0x3f9ea4){let _0x387fb5=_0x44febc['insertions'][_0x35aa2c];for(const _0x18b306 of _0x387fb5)if(_0x18b306[_0x1234('0x8')]['is']('element',_0x1234('0xd1'))){const _0x3c34d1=this['_getVidAttributeName'](_0x18b306),_0x5c30dd=_0x18b306[_0x1234('0x8')][_0x1234('0xe8')](_0x3c34d1);if(_0x2c19e7[_0x1234('0xb5')](_0x5c30dd)){const _0x4aea18=_0x18b306[_0x1234('0x8')][_0x1234('0xe9')][_0x1234('0xe9')][_0x1234('0xe8')](_0x1234('0x8b')),_0xa9c6ab=_0x5f08c8[_0x1234('0x1a')](_0x4aea18)||new Set();_0xa9c6ab[_0x1234('0x87')](_0x2c19e7['get'](_0x5c30dd)[_0x1234('0x22')]),_0x5f08c8[_0x1234('0x5a')](_0x4aea18,_0xa9c6ab);}}_0x387fb5=_0x44febc[_0x1234('0x0')][_0x35aa2c];for(const _0x155ef8 of _0x387fb5)if(_0x155ef8['item']['is'](_0x1234('0x6d'),_0x1234('0xd1'))){const _0x1caf70=this[_0x1234('0x42')](_0x155ef8),_0x30ade2=_0x155ef8[_0x1234('0x8')][_0x1234('0xe8')](_0x1caf70);if(_0x3db05[_0x1234('0xb5')](_0x30ade2)){const _0x2a97b8=_0x155ef8['item']['parent'][_0x1234('0xe9')][_0x1234('0xe8')](_0x1234('0x8b')),_0x8f5a97=_0x5f08c8[_0x1234('0x1a')](_0x2a97b8)||new Set();_0x8f5a97[_0x1234('0x87')](_0x3db05[_0x1234('0x1a')](_0x30ade2)[_0x1234('0x22')]),_0x5f08c8[_0x1234('0x5a')](_0x2a97b8,_0x8f5a97);}}for(const _0x5484d8 of _0x5f08c8[_0x1234('0xf5')]())(_0x2c19e7[_0x1234('0xb5')](_0x5484d8)||_0x3db05[_0x1234('0xb5')](_0x5484d8))&&_0x5f08c8['delete'](_0x5484d8);}for(const _0x4d79f7 of _0x3f9ea4){const _0x444d6a=_0x44febc['insertions'][_0x4d79f7];let _0x37b49e=null,_0x20aeeb=null;for(const _0x234373 of _0x444d6a){const _0x58032b=this[_0x1234('0x42')](_0x234373),_0x4974d3=_0x234373[_0x1234('0x8')][_0x1234('0xe8')](_0x58032b),_0x5f4878=_0x5f08c8[_0x1234('0x1a')](_0x4974d3);_0x5f4878&&_0x1234('0x5c')==_0x234373[_0x1234('0x21')]&&(_0x37b49e=Array[_0x1234('0x28')](_0x5f4878)[0x0],_0x20aeeb=_0x234373[_0x1234('0x8')][_0x1234('0xe8')](_0x1234('0x98'))),_0x37b49e&&(_0x3db05[_0x1234('0x5a')](_0x4974d3,{'userId':_0x37b49e}),_0x2c19e7[_0x1234('0x5a')](_0x4974d3,{'userId':_0x37b49e})),_0x4974d3==_0x20aeeb&&(_0x37b49e=null,_0x20aeeb=null);}}const _0x54daa0={},_0x49f881=new Set();for(const _0x20eca8 of _0x3f9ea4){const _0x403498=_0x106794['deletions'][_0x20eca8],_0x1307c4=_0x106794[_0x1234('0xb4')][_0x20eca8];for(const {userId:_0x360612}of this[_0x1234('0x12')][_0x1234('0xa')]())null!==_0x360612&&_0x49f881[_0x1234('0x87')](_0x360612);this['_markChanges'](_0x1307c4,_0x44febc[_0x1234('0xb4')][_0x20eca8],_0x2c19e7,_0x1234('0x70'),_0x49f881),this[_0x1234('0x15')](_0x403498,_0x44febc[_0x1234('0x0')][_0x20eca8],_0x3db05,_0x1234('0x8f'),_0x49f881),_0x54daa0[_0x20eca8]={'insertions':this[_0x1234('0x77')](_0x1307c4),'deletions':this[_0x1234('0x77')](_0x403498)};}return{'diffData':_0x54daa0,'authorsIds':Array['from'](_0x49f881)};}['_processRootBeforeSave'](_0x24c8fc){for(const [,_0x4ccca7]of _0x24c8fc['markers']){const _0x5012a9=_0x4ccca7['start'][_0x1234('0xc8')]()['filter'](_0xc2cde=>_0x1234('0xd1')==_0xc2cde['name']);for(const _0x1686bc of _0x5012a9)0x1==_0x1686bc[_0x1234('0x68')]&&_0x1686bc[_0x1234('0x5d')](0x0)['is']('element',_0x1234('0xde'))&&_0x1686bc[_0x1234('0x5d')](0x0)['_setAttribute']('keepParagraph',!0x0);}}[_0x1234('0x77')](_0x4f52da){this[_0x1234('0x72')](_0x4f52da);const _0x3ca6ef=this[_0x1234('0x47')]['data'][_0x1234('0xc4')](_0x4f52da,{}),_0x4b3d09=Array['from'](_0x3ca6ef['getChildren']())[_0x1234('0x76')](_0x52fd0d=>this['_getViewJson'](_0x52fd0d));return JSON[_0x1234('0x27')](_0x4b3d09);}[_0x1234('0xb6')](_0x1e8061){if(_0x1e8061['is']('text'))return _0x1e8061['data'];return{'type':Object['keys'](J)[_0x1234('0xad')](_0x429c91=>_0x1e8061 instanceof J[_0x429c91]),'name':_0x1e8061['name'],'attributes':Array[_0x1234('0x28')](_0x1e8061[_0x1234('0x54')]()),'children':Array[_0x1234('0x28')](_0x1e8061[_0x1234('0x3b')]())[_0x1234('0x76')](_0x42f1b2=>this[_0x1234('0xb6')](_0x42f1b2))};}[_0x1234('0x15')](_0x49d5a8,_0x457219,_0x2ca7ae,_0x4aea2c,_0x29d234){let _0x5b68e9=null,_0x43b2ca=null,_0x4a337e=0x0;const _0x99b164=this[_0x1234('0x47')][_0x1234('0x9b')];for(let _0x57aa8d=0x0;_0x57aa8d<_0x457219[_0x1234('0x89')];_0x57aa8d++){const _0x187b08=this[_0x1234('0x42')](_0x457219[_0x57aa8d]),_0x492540=_0x457219[_0x57aa8d][_0x1234('0x8')]['getAttribute'](_0x187b08),_0x499961=_0x2ca7ae[_0x1234('0x1a')](_0x492540),_0x12778c=_0x57aa8d==_0x457219[_0x1234('0x89')]-0x1;(!_0x5b68e9&&_0x499961&&(_0x5b68e9=_0x499961,_0x43b2ca=_0x457219[_0x57aa8d]),_0x5b68e9&&(!_0x499961||_0x499961[_0x1234('0x22')]!=_0x5b68e9[_0x1234('0x22')]))&&(_0x4d1346(_0x499961,q(_0x43b2ca,_0x49d5a8,_0x99b164),q(_0x457219[_0x57aa8d],_0x49d5a8,_0x99b164)),_0x5b68e9=_0x499961||null,_0x43b2ca=_0x499961?_0x457219[_0x57aa8d]:null),_0x5b68e9&&_0x12778c&&_0x4d1346(_0x499961,q(_0x43b2ca,_0x49d5a8,_0x99b164),G(_0x457219[_0x57aa8d],_0x49d5a8,_0x99b164));}function _0x4d1346(_0x465bad,_0x5026af,_0x230c9d){const _0x2e10bc=_0x5b68e9[_0x1234('0x22')],_0x59c9dd=_0x1234('0xdf')+_0x4aea2c+':'+_0x2e10bc+':'+_0x4a337e++,_0x5f3176=_0x99b164[_0x1234('0xc3')](_0x5026af,_0x230c9d);_0x49d5a8[_0x1234('0x2')][_0x1234('0x5a')](_0x59c9dd,_0x5f3176),null!==_0x2e10bc&&_0x29d234[_0x1234('0x87')](_0x2e10bc);}}[_0x1234('0x42')](_0x25de71){switch(_0x25de71[_0x1234('0x21')]){case _0x1234('0x5c'):return'vid_start';case _0x1234('0x1b'):return'vid_end';default:return _0x1234('0x32');}}[_0x1234('0xb9')](_0x4add97,_0x31c98b){_0x4add97['baseVersion']=null;for(const _0x3d57bd in _0x4add97){if(_0x4add97[_0x3d57bd]instanceof _0x1156e2){const _0x196b9d=_0x31c98b[_0x1234('0x1a')](_0x4add97[_0x3d57bd][_0x1234('0xc6')][_0x1234('0xbc')]);_0x4add97[_0x3d57bd]=this['_fixPosition'](_0x4add97[_0x3d57bd],_0x196b9d);}if(_0x4add97[_0x3d57bd]instanceof _0x683339){const _0x38ee74=_0x31c98b['get'](_0x4add97[_0x3d57bd]['root']['rootName']);_0x4add97[_0x3d57bd]=this[_0x1234('0x45')](_0x4add97[_0x3d57bd],_0x38ee74);}}_0x4add97['root']&&(_0x4add97[_0x1234('0xc6')]=_0x31c98b['get'](_0x4add97['root'][_0x1234('0xbc')]));}[_0x1234('0x45')](_0x2a603c,_0xe22e07){return this[_0x1234('0x47')][_0x1234('0x9b')][_0x1234('0xc3')](this[_0x1234('0x5f')](_0x2a603c[_0x1234('0x3c')],_0xe22e07),this[_0x1234('0x5f')](_0x2a603c['end'],_0xe22e07));}[_0x1234('0x5f')](_0x3687de,_0x4a438d){return this[_0x1234('0x47')][_0x1234('0x9b')]['createPositionFromPath'](_0x4a438d,_0x3687de[_0x1234('0xf')],_0x3687de[_0x1234('0x1')]);}[_0x1234('0x2d')](_0x139449){const _0x5b9e8b=this[_0x1234('0xca')][_0x1234('0x1a')](_0x139449[_0x1234('0x48')][_0x1234('0xc6')][_0x1234('0xbc')]),_0x5be41c=this['_fixPosition'](_0x139449[_0x1234('0x48')],_0x5b9e8b),_0x5ae34c=null===_0x139449['_authorId']?null:_0x139449[_0x1234('0x25')]||this[_0x1234('0x47')][_0x1234('0x9')][_0x1234('0x1a')]('Users')['me']['id'],_0x111ec8=_0x5be41c['parent'],_0x1b2c06=this[_0x1234('0x6')],_0x94ff74=[];for(const _0x722faa of _0x139449[_0x1234('0xb8')])if(_0x722faa['is'](_0x1234('0x6d')))_0x94ff74[_0x1234('0x50')](this['_makeIdsRoot'](_0x722faa));else for(let _0x4573d2=0x0;_0x4573d2<_0x722faa[_0x1234('0x2f')];_0x4573d2++)_0x94ff74[_0x1234('0x50')](new _0x329849('$text',{'vid':this[_0x1234('0x6')]++}));const _0x5a8b9b=this[_0x1234('0x6')];for(let _0x5133d9=_0x1b2c06;_0x5133d9<_0x5a8b9b;_0x5133d9++)this[_0x1234('0x67')][_0x1234('0x5a')](_0x5133d9,{'userId':_0x5ae34c});_0x111ec8[_0x1234('0xa9')](_0x5be41c[_0x1234('0x7')],_0x94ff74);}[_0x1234('0xf1')](_0x5aa19c){(_0x5aa19c=this[_0x1234('0xe2')](_0x5aa19c,this[_0x1234('0xca')]))[_0x1234('0x3f')]();const _0x33d7e3=null===_0x5aa19c[_0x1234('0x25')]?null:_0x5aa19c[_0x1234('0x25')]||this['editor'][_0x1234('0x9')][_0x1234('0x1a')]('Users')['me']['id'],_0x5b9354=_0x5aa19c['getMovedRangeStart'](),_0x579ae4=_0x5b9354['parent'],_0x47f387=_0x5b9354[_0x1234('0x7')];!function _0x167b71(_0x4237cd,_0x482a11,_0x3b6e77,_0x32f738){for(let _0x17d1eb=_0x3b6e77;_0x17d1eb<_0x32f738;_0x17d1eb++){const _0x3622aa=_0x482a11[_0x1234('0x5d')](_0x17d1eb);_0x3622aa['is']('element',_0x1234('0xcf'))?_0x4237cd[_0x1234('0x5a')](_0x3622aa[_0x1234('0xe8')](_0x1234('0x32')),{'userId':_0x33d7e3}):(_0x4237cd[_0x1234('0x5a')](_0x3622aa['getAttribute']('vid_start'),{'userId':_0x33d7e3}),_0x167b71(_0x4237cd,_0x3622aa,0x0,_0x3622aa[_0x1234('0x68')]),_0x4237cd[_0x1234('0x5a')](_0x3622aa['getAttribute'](_0x1234('0x98')),{'userId':_0x33d7e3}));}}(this['_touched'],_0x579ae4,_0x47f387,_0x47f387+_0x5aa19c[_0x1234('0x1c')]);}[_0x1234('0x38')](_0x4720ca){const _0xd1738=null===(_0x4720ca=this[_0x1234('0xe2')](_0x4720ca,this[_0x1234('0xca')]))[_0x1234('0x25')]?null:_0x4720ca[_0x1234('0x25')]||this[_0x1234('0x47')][_0x1234('0x9')][_0x1234('0x1a')](_0x1234('0xda'))['me']['id'],_0x21c974=_0x4720ca[_0x1234('0x23')]['parent'],_0x2fde7e=_0x4720ca[_0x1234('0x49')][_0x1234('0xe9')],_0x330023=_0x21c974[_0x1234('0xe8')](_0x1234('0x98')),_0x4d9f03=_0x2fde7e[_0x1234('0xe8')]('vid_start');_0x21c974[_0x1234('0x99')](_0x1234('0x98'),_0x2fde7e[_0x1234('0xe8')](_0x1234('0x98'))),_0x2fde7e[_0x1234('0x99')](_0x1234('0x98'),_0x330023),this['_touched'][_0x1234('0x5a')](_0x4d9f03,{'userId':_0xd1738}),this[_0x1234('0x67')][_0x1234('0x5a')](_0x330023,{'userId':_0xd1738}),_0x4720ca[_0x1234('0x3f')]();}[_0x1234('0x19')](_0xf2cee6){const _0x2ea305=null===(_0xf2cee6=this['_cloneOperation'](_0xf2cee6,this['_idsRoots']))[_0x1234('0x25')]?null:_0xf2cee6['_authorId']||this[_0x1234('0x47')][_0x1234('0x9')]['get'](_0x1234('0xda'))['me']['id'],_0x57f169=_0xf2cee6[_0x1234('0x3e')],_0x34cc4e=_0xf2cee6[_0x1234('0x5')][_0x1234('0xe9')];_0xf2cee6[_0x1234('0x3f')]();const _0x2ef575=_0x34cc4e[_0x1234('0xe8')](_0x1234('0x98')),_0x358d9e=_0xf2cee6[_0x1234('0xc1')][_0x1234('0xd6')];if(_0x57f169){const _0x16464d=_0x358d9e[_0x1234('0xe8')]('vid_end'),_0x2821e7=_0x34cc4e[_0x1234('0xe8')](_0x1234('0x98'));_0x34cc4e[_0x1234('0x99')](_0x1234('0x98'),_0x16464d),_0x358d9e[_0x1234('0x99')]('vid_end',_0x2821e7),this[_0x1234('0x67')][_0x1234('0x5a')](_0x34cc4e[_0x1234('0xe8')](_0x1234('0x98')),{'userId':_0x2ea305}),this[_0x1234('0x67')][_0x1234('0x5a')](_0x358d9e[_0x1234('0xe8')](_0x1234('0x8b')),{'userId':_0x2ea305});}else{const _0x12c3cf=this[_0x1234('0x6')]++,_0x144eee=this[_0x1234('0x6')]++;_0x34cc4e[_0x1234('0x99')](_0x1234('0x98'),_0x12c3cf),_0x358d9e[_0x1234('0x99')]('vid_start',_0x144eee),_0x358d9e[_0x1234('0x99')](_0x1234('0x98'),_0x2ef575),this[_0x1234('0x67')][_0x1234('0x5a')](_0x12c3cf,{'userId':_0x2ea305}),this['_touched'][_0x1234('0x5a')](_0x144eee,{'userId':_0x2ea305});}}[_0x1234('0x74')](_0x779d6a){if(!_0x779d6a['affectsData'])return;const _0x47402c=(_0x779d6a=this[_0x1234('0xe2')](_0x779d6a,this[_0x1234('0xa4')]))[_0x1234('0x34')]?_0x779d6a['oldRange']['root']:null,_0x1695a4=_0x779d6a[_0x1234('0x93')]?_0x779d6a['newRange'][_0x1234('0xc6')]:null;_0x47402c&&this[_0x1234('0x71')][_0x1234('0x29')](_0x779d6a[_0x1234('0xce')]),_0x1695a4&&this[_0x1234('0x71')][_0x1234('0x5a')](_0x779d6a[_0x1234('0xce')],_0x779d6a[_0x1234('0x93')][_0x1234('0x4f')]());const _0x3f890b=null===_0x779d6a[_0x1234('0x25')]?null:_0x779d6a['_authorId']||this[_0x1234('0x47')][_0x1234('0x9')]['get'](_0x1234('0xda'))['me']['id'],_0x13bbda=_0x779d6a[_0x1234('0xce')];if(!this[_0x1234('0x12')]['has'](_0x13bbda))return void this[_0x1234('0x12')][_0x1234('0x5a')](_0x13bbda,{'range':_0x779d6a[_0x1234('0x34')],'userId':_0x3f890b});const _0x4ed9e4=this[_0x1234('0x12')][_0x1234('0x1a')](_0x13bbda),_0x423937=_0x4ed9e4[_0x1234('0xe6')],_0x38e58c=_0x779d6a[_0x1234('0x93')];null==_0x423937&&null==_0x38e58c||_0x423937&&_0x38e58c&&_0x423937[_0x1234('0x4a')](_0x38e58c)?this[_0x1234('0x12')][_0x1234('0x29')](_0x779d6a[_0x1234('0xce')]):_0x4ed9e4[_0x1234('0x22')]=_0x3f890b;}}function H(_0x2d19e5){const _0x3abfdc=new _0x17ba17();_0x3abfdc[_0x1234('0xbc')]=_0x2d19e5['rootName'];for(const _0xd17179 of _0x2d19e5['getChildren']()){const _0x44987d=_0xd17179['_clone'](!0x0);_0x3abfdc['_appendChild'](_0x44987d);}return _0x3abfdc;}function q(_0x2e73f4,_0x42e718,_0x286772){const _0x13c1f7=_0x1234('0x1b')==_0x2e73f4[_0x1234('0x21')]?_0x286772['createPositionAt'](_0x2e73f4[_0x1234('0x8')],_0x1234('0xa8')):_0x286772[_0x1234('0xb3')](_0x2e73f4[_0x1234('0x8')]);return _0x13c1f7[_0x1234('0xc6')]=_0x42e718,_0x13c1f7;}function G(_0x25f39e,_0x14d424,_0x2281f1){const _0x4d33b9=_0x1234('0x5c')==_0x25f39e[_0x1234('0x21')]?_0x2281f1['createPositionAt'](_0x25f39e[_0x1234('0x8')],0x0):_0x2281f1[_0x1234('0x1e')](_0x25f39e[_0x1234('0x8')]);return _0x4d33b9[_0x1234('0xc6')]=_0x14d424,_0x4d33b9;}
23
+ const _0x4be9=['_setAttribute','conversion','PendingActions','deletion','offsetSize','editor','requires','reinsert','getRoot','stickiness','_diffRoots','name','end','getCurrentRevisionId','sort','markers','view','_getViewJson','position','vid_end','finally','attributes','path','_removeMetaData','range','_clone','_transformMarkers','_handleMergeOperation','_applyOperations','data','getData','parent','toView','find','_handleOperation','initialData','getRevision','from','type','loadState','updateRevisions','get','getRange','createdAt','resolve','setRevisionData','createPositionAfter','toData','markerToData','dataDowncast','_cloneOperation','map','item','offset','createPositionAt','creator','_continueCurrentRevision','_setConversion','_touched','_makeIdsRoot','upcast','_bufferedUpdates','marker','buildRevisionData','_savedMetaData','reverse','$graveyard','element','addRevision','adapter','getOperations','getIndex','revision-start','_startingRevisionId','oldRange','_fixRange','_handleInsertOperation','_findInsertionIndex','userId','useFillerType','insertions','_bufferUpdate','shift','for','getNodeByPath','string','revision','nodeAfter','update','_baseIdsRoots','_addPendingAction','_getVidAttributeName','isEnabled','includes','keys','revision:','_insertChild','_reset','_loadRevisionData','_replaceEditorDataWithRevisionData','_saveMetaData','_startingVersion','dataToMarker','_lastFrom','_loadedStateData','getWalker','afterInit','paragraph','set','move','_makeModelFromViewString','_markers','has','default','getChild','_handleMarkerOperation','clear','getRevisionDocumentData','_generateTape','_calculateMetaData','vid','locale','_getPreviousFrom','elementEnd','diffData','push','_removeRevisionMarkers','_loadState','_isPendingUpdate','graveyardPosition','_getBaseVids','insert','previousPosition','getRootNames','clone','createRangeIn','_createCurrentRevision','baseVersion','collaboration.channelId','_touchedMarkers','addRevisionData','_getState','config','version','_markChanges','affectsData','toVersion','Initial\x20revision','documentFragment','source','filter','getOperation','deletions','_makeRevision','nodes','elementStart','_fixOperation','_prepareViewToSave','getChildren','vid_start','fromVersion','RealTimeCollaborationClient','roots','getLatestVersion','currentRevision','splitPosition','_handleMoveOperation','getMovedRangeStart','PENDING_ACTION_REVISION_HISTORY','_processRootBeforeSave','_getFromVersion','isReady','isPendingUpdate','size','childCount','_pendingAction','remove','then','_copyMarkers','tableCell','slice','createPositionFromPath','parse','revisionHistory.resumeUnsavedRevision','_saveEmptyMetaData','editing','_source','length','setSource','_execute','data-revision-','split','document','_createInitialRevision','_revisionId','startsWith','repository','createRange','pluginName','model','getTime','values','_createFromRanges','getUser','start','delete','_initialRevisionId','creatorId','reInit','children','rootName','createRevision','targetPosition','getTransformedByOperation','_rootNames','root','saveRevision','_idsRoots','_revisionDataBuilder','_update','stringify','history','sendBufferedUpdates','howMany','$text','text','init','authors','isEqual','Users','authorsIds','_baseRoots','newRange','_handleSplitOperation','getRevisions','forEach','_authorId','_fixPosition','RevisionsRepository','_lastTo','plugins','marked','sourcePosition','add','NEGATIVE_INFINITY','getAttribute'];(function(_0x335359,_0x4be91e){const _0x1ffc78=function(_0x4411d7){while(--_0x4411d7){_0x335359['push'](_0x335359['shift']());}};_0x1ffc78(++_0x4be91e);}(_0x4be9,0x13b));const _0x1ffc=function(_0x335359,_0x4be91e){_0x335359=_0x335359-0x0;let _0x1ffc78=_0x4be9[_0x335359];return _0x1ffc78;};import{Users as _0x49b043}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x208e89,PendingActions as _0x6a751b}from'ckeditor5/src/core';import{logWarning as _0x21e039,uid as _0xf0ab0d}from'ckeditor5/src/utils';import{Position as _0x29deb2,Range as _0x21882a,Element as _0x230a92,DocumentFragment as _0xfd6a74,ViewText as _0x4ede3d,ViewElement as _0x5af39b,ViewContainerElement as _0x2a8b8e,ViewAttributeElement as _0x490ea3,ViewEmptyElement as _0x176d2e,ViewRawElement as _0x170b85,ViewUIElement as _0x277a27,ViewDocumentFragment as _0x242b3a}from'ckeditor5/src/engine';import _0x510d8c from'./revisionsrepository';import{getTranslation as _0x2536e9}from'./utils/common-translations';const V={'c':_0x2a8b8e,'a':_0x490ea3,'e':_0x176d2e,'r':_0x170b85,'u':_0x277a27};export default class l extends _0x208e89{static get[_0x1ffc('0x81')](){return'RevisionTracker';}static get[_0x1ffc('0xb7')](){return[_0x49b043,_0x510d8c,_0x6a751b];}constructor(..._0x231433){super(..._0x231433),this['adapter']=null,this[_0x1ffc('0x27')]('isReady',!0x1),this[_0x1ffc('0x27')](_0x1ffc('0x17'),!0x0),this[_0x1ffc('0x5f')]=null;const _0x36b98e=_0xf0ab0d();this[_0x1ffc('0x75')]={'history':this[_0x1ffc('0xb6')][_0x1ffc('0x82')][_0x1ffc('0x7b')][_0x1ffc('0x98')],'getLatestVersion':()=>Promise[_0x1ffc('0xdd')](this['editor'][_0x1ffc('0x82')][_0x1ffc('0x7b')][_0x1ffc('0x4a')]),'getCurrentRevisionId':()=>_0x36b98e},this[_0x1ffc('0x95')]=new T(this[_0x1ffc('0xb6')]),this[_0x1ffc('0x89')]=this[_0x1ffc('0xb6')][_0x1ffc('0x49')][_0x1ffc('0xda')](_0x1ffc('0x45'))||'initial',this['set'](_0x1ffc('0x67'),!0x1),this['_bufferedUpdates']=new Map(),this[_0x1ffc('0xb6')][_0x1ffc('0x49')]['define'](_0x1ffc('0x72'),!0x0),this[_0x1ffc('0x23')]=null,this[_0x1ffc('0xb6')]['conversion'][_0x1ffc('0xe')](_0x1ffc('0xed'))[_0x1ffc('0x21')]({'view':_0x1ffc('0x11')});}[_0x1ffc('0x9d')](){this[_0x1ffc('0x7f')]=this[_0x1ffc('0xb6')][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xa9')),this[_0x1ffc('0xea')](),this[_0x1ffc('0xb6')][_0x1ffc('0xce')]['on']('ready',()=>{const _0xdf51c3=this[_0x1ffc('0x7f')]['getRevision'](0x0),_0xd5a98f=_0xdf51c3&&null===_0xdf51c3[_0x1ffc('0xe8')]?_0xdf51c3:null;if(this[_0x1ffc('0xe9')]=!!_0xd5a98f&&this[_0x1ffc('0xb6')][_0x1ffc('0x49')][_0x1ffc('0xda')](_0x1ffc('0x72')),this[_0x1ffc('0xb6')]['plugins']['has'](_0x1ffc('0x5c'))){const _0x9ca637=this[_0x1ffc('0x75')][_0x1ffc('0xbe')](),_0x1ebeae=this[_0x1ffc('0x7f')][_0x1ffc('0xd5')](_0x9ca637);if(_0x1ebeae)this[_0x1ffc('0x20')]=_0x1ebeae[_0x1ffc('0x5b')],this[_0x1ffc('0xe9')]=!0x1;else{const _0x2fa5d5=this[_0x1ffc('0x75')][_0x1ffc('0x98')]['_operations'][_0x1ffc('0xd2')](_0x5bf3cb=>!_0x5bf3cb['_isInit']),_0x2ed99e=_0x2fa5d5?_0x2fa5d5[_0x1ffc('0x44')]:this[_0x1ffc('0x75')]['history'][_0x1ffc('0x4a')];_0xdf51c3?(_0xdf51c3[_0x1ffc('0x4d')]<_0x2ed99e&&_0xdf51c3['_update']({'toVersion':_0x2ed99e}),this[_0x1ffc('0xe9')]?(this[_0x1ffc('0x75')][_0x1ffc('0xbe')]=()=>_0xd5a98f['id'],this['_startingVersion']=_0xd5a98f[_0x1ffc('0x5b')]):(this[_0x1ffc('0x20')]=_0xdf51c3[_0x1ffc('0x4d')],this[_0x1ffc('0xe9')]=!0x1)):(this[_0x1ffc('0x20')]=_0x2ed99e,this[_0x1ffc('0xe9')]=!0x1);}}else _0xd5a98f&&(this[_0x1ffc('0xb6')][_0x1ffc('0x82')][_0x1ffc('0x7b')]['history'][_0x1ffc('0x4a')]=Math['max'](_0xd5a98f[_0x1ffc('0x4d')],this[_0x1ffc('0xb6')][_0x1ffc('0x82')][_0x1ffc('0x7b')][_0x1ffc('0x98')][_0x1ffc('0x4a')]),_0xd5a98f[_0x1ffc('0x5b')]===_0xd5a98f['toVersion']?(0x0!==_0xd5a98f['fromVersion']&&(this['_source'][_0x1ffc('0xbe')]=()=>_0xd5a98f['id']),this[_0x1ffc('0xe9')]=!0x1):this[_0x1ffc('0xe9')]&&(this['_source'][_0x1ffc('0xbe')]=()=>_0xd5a98f['id'],this[_0x1ffc('0x20')]=_0xd5a98f[_0x1ffc('0x5b')])),this[_0x1ffc('0xe9')]||(this[_0x1ffc('0x20')]=this[_0x1ffc('0xb6')][_0x1ffc('0x82')][_0x1ffc('0x7b')]['version']);this[_0x1ffc('0x95')][_0x1ffc('0x9d')](this['_source'][_0x1ffc('0x98')]),this[_0x1ffc('0x7c')](this[_0x1ffc('0x20')]),this[_0x1ffc('0x43')](this[_0x1ffc('0x20')]),this[_0x1ffc('0x0')]&&this[_0x1ffc('0x99')]();}),this['bind'](_0x1ffc('0x66'))['to'](this,_0x1ffc('0x3b'),_0x355356=>!_0x355356);}async[_0x1ffc('0x25')](){if(this[_0x1ffc('0x7f')][_0x1ffc('0x76')]>0x0){const _0x24cbae=this[_0x1ffc('0x7f')][_0x1ffc('0xd5')](0x0),_0x10e11c=await this['getRevisionDocumentData'](_0x24cbae);this[_0x1ffc('0x1e')](_0x10e11c);}}[_0x1ffc('0x77')](_0x594511){this[_0x1ffc('0x75')]=_0x594511;}async[_0x1ffc('0x13')](){const _0x2c2133=await this[_0x1ffc('0x75')]['getLatestVersion']();if(_0x2c2133>this[_0x1ffc('0x5f')][_0x1ffc('0x4d')]){await this[_0x1ffc('0x3a')]();const _0x14e100=this[_0x1ffc('0xf0')]({'revision':this['currentRevision'],'to':_0x2c2133});_0x14e100['authors']=_0x14e100['authorsIds'][_0x1ffc('0xe4')](_0x3b6bf8=>this[_0x1ffc('0xb6')][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xa0'))['getUser'](_0x3b6bf8)),this[_0x1ffc('0x5f')][_0x1ffc('0x96')](_0x14e100);}}async[_0x1ffc('0x3a')](){this['_continueCurrentRevision']&&!this[_0x1ffc('0x23')]&&(await this['_loadRevisionData'](this[_0x1ffc('0x5f')]),this[_0x1ffc('0x95')]['loadState'](this['currentRevision']),this[_0x1ffc('0x23')]={'fromVersion':this[_0x1ffc('0x5f')]['fromVersion'],'authors':this['currentRevision'][_0x1ffc('0x9e')][_0x1ffc('0x6f')]()});}async[_0x1ffc('0x93')](_0x7ad87d={},_0x5298e0=null){const _0x223480=[];await this['_loadState'](),this[_0x1ffc('0xe9')]=!0x1,_0x5298e0>this[_0x1ffc('0x5f')][_0x1ffc('0x4d')]&&(_0x5298e0=null),null===_0x5298e0&&(_0x5298e0=await this[_0x1ffc('0x75')][_0x1ffc('0x5e')]());const _0x234d61=this[_0x1ffc('0x65')](_0x5298e0),_0x4c56b6=this[_0x1ffc('0xf0')]({'from':_0x234d61,'to':_0x5298e0});if(this[_0x1ffc('0x5f')][_0x1ffc('0x4d')]<_0x5298e0){const _0x139810=this[_0x1ffc('0xf0')]({'revision':this[_0x1ffc('0x5f')],'from':_0x5298e0,'to':_0x5298e0});_0x139810[_0x1ffc('0x9e')]=[],_0x139810[_0x1ffc('0xa1')]=[],_0x139810['id']=this[_0x1ffc('0x5f')]['id'],this[_0x1ffc('0x5f')][_0x1ffc('0x96')](_0x139810,!0x0),delete _0x139810['authors'],_0x223480[_0x1ffc('0x38')](_0x139810);}_0x7ad87d[_0x1ffc('0x8a')]=this[_0x1ffc('0xb6')]['plugins'][_0x1ffc('0xda')](_0x1ffc('0xa0'))['me']['id'],_0x7ad87d[_0x1ffc('0xbc')]=_0x7ad87d['name']||null,_0x7ad87d['id']=_0x7ad87d['id']||_0xf0ab0d(),_0x7ad87d={..._0x7ad87d,..._0x4c56b6};const _0x51bc4c=this[_0x1ffc('0x47')](_0x7ad87d);_0x223480['push'](_0x7ad87d);const _0x52f84e=this['repository'][_0x1ffc('0x2')](_0x51bc4c);if(0x0!==_0x52f84e){const _0x2fb4a7=this[_0x1ffc('0x7f')]['getRevision'](_0x52f84e-0x1);if(_0x2fb4a7[_0x1ffc('0x5b')]!==_0x5298e0){const _0x76b7a7=this[_0x1ffc('0x95')][_0x1ffc('0xcf')](_0x5298e0,_0x2fb4a7[_0x1ffc('0x4d')]),_0x3980c5={'id':_0x2fb4a7['id'],'diffData':_0x76b7a7[_0x1ffc('0x37')],'authorsIds':_0x76b7a7[_0x1ffc('0xa1')],'authors':_0x76b7a7['authorsIds'][_0x1ffc('0xe4')](_0x258c83=>this[_0x1ffc('0xb6')][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xa0'))[_0x1ffc('0x86')](_0x258c83)),'fromVersion':_0x5298e0};_0x2fb4a7===this[_0x1ffc('0x5f')]&&(_0x3980c5[_0x1ffc('0xdc')]=new Date(_0x7ad87d[_0x1ffc('0xdc')][_0x1ffc('0x83')]()+0xa)),_0x2fb4a7[_0x1ffc('0x96')](_0x3980c5,!0x0),delete _0x3980c5[_0x1ffc('0x9e')],_0x223480[_0x1ffc('0x38')](_0x3980c5);}}if(this[_0x1ffc('0x0')]){for(const _0xb1f122 of _0x223480)this[_0x1ffc('0xc')](_0xb1f122['id'],_0xb1f122,!0x0);this[_0x1ffc('0x99')]();}return _0x51bc4c;}[_0x1ffc('0x47')](_0x4b6474){const _0x1413e9=this[_0x1ffc('0x7f')][_0x1ffc('0x8e')](_0x4b6474);return this[_0x1ffc('0x0')]&&_0x1413e9['on']('_update',(_0x7dc66a,_0x338e72,_0x5df22e)=>{_0x5df22e||(this['_bufferUpdate'](_0x338e72['id'],_0x338e72,!0x0),this['sendBufferedUpdates']());}),this['repository'][_0x1ffc('0xf5')](_0x1413e9,this[_0x1ffc('0x8')](_0x1413e9)),_0x1413e9;}async[_0x1ffc('0x30')](_0x5ba2bc){await this[_0x1ffc('0x1d')](_0x5ba2bc);const _0x3db561={};for(const _0x543fa9 in _0x5ba2bc[_0x1ffc('0x37')]){const _0x344345=this[_0x1ffc('0x39')](JSON[_0x1ffc('0x71')](_0x5ba2bc[_0x1ffc('0x37')][_0x543fa9][_0x1ffc('0xb')])),_0x37e103=this[_0x1ffc('0xb6')]['editing'][_0x1ffc('0xc1')][_0x1ffc('0x7b')],_0x29cb13=new _0x242b3a(_0x37e103,_0x344345[_0x1ffc('0xe4')](_0xc794e=>F(_0xc794e,this[_0x1ffc('0xb6')])));this[_0x1ffc('0xb6')][_0x1ffc('0xce')]['processor'][_0x1ffc('0xa')](_0x1ffc('0xac')),_0x3db561[_0x543fa9]=this[_0x1ffc('0xb6')][_0x1ffc('0xce')]['processor'][_0x1ffc('0xe0')](_0x29cb13),this['editor'][_0x1ffc('0xce')]['processor'][_0x1ffc('0xa')](_0x1ffc('0x2c'));}return _0x3db561;}[_0x1ffc('0x99')](){if(0x0===this[_0x1ffc('0xee')][_0x1ffc('0x68')])return;if(this[_0x1ffc('0x3b')])return;let _0x49465e=Array[_0x1ffc('0xd6')](this[_0x1ffc('0xee')][_0x1ffc('0x84')]());this[_0x1ffc('0xee')][_0x1ffc('0x2f')]();for(let _0x50364c=0x0;_0x50364c<_0x49465e[_0x1ffc('0x76')];_0x50364c++){const _0x31edf1=_0x49465e[_0x50364c];let _0x1e97ce=!0x1;for(const _0x2c8355 of Object[_0x1ffc('0x19')](_0x31edf1))void 0x0===_0x31edf1[_0x2c8355]?delete _0x31edf1[_0x2c8355]:'id'!==_0x2c8355&&(_0x1e97ce=!0x0);_0x1e97ce||(_0x49465e[_0x50364c]=null);}if(_0x49465e=_0x49465e[_0x1ffc('0x51')](_0x5a5fbe=>null!==_0x5a5fbe),!_0x49465e[_0x1ffc('0x76')])return;for(let _0x20340d=0x0;_0x20340d<_0x49465e[_0x1ffc('0x76')];_0x20340d++){const _0x404c65=_0x49465e[_0x20340d];void 0x0!==_0x404c65[_0x1ffc('0x5b')]&&void 0x0===_0x404c65['toVersion']&&(_0x404c65['toVersion']=this['repository'][_0x1ffc('0xd5')](_0x404c65['id'])[_0x1ffc('0x4d')]),void 0x0!==_0x404c65[_0x1ffc('0x4d')]&&void 0x0===_0x404c65['fromVersion']&&(_0x404c65[_0x1ffc('0x5b')]=this[_0x1ffc('0x7f')][_0x1ffc('0xd5')](_0x404c65['id'])[_0x1ffc('0x5b')]);}const _0x51f1f3=this[_0x1ffc('0xb6')][_0x1ffc('0x49')][_0x1ffc('0xda')](_0x1ffc('0x45'));this[_0x1ffc('0x3b')]=!0x0,this[_0x1ffc('0x15')](),this[_0x1ffc('0x0')][_0x1ffc('0xd9')](_0x49465e,_0x51f1f3)[_0x1ffc('0xc5')](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0xa13f66=>{if(_0xa13f66)for(const _0x5c269c of _0xa13f66)this[_0x1ffc('0xde')]({'id':_0x5c269c['id'],'createdAt':_0x5c269c[_0x1ffc('0xdc')]});this['_removePendingAction'](),this[_0x1ffc('0x99')]();});}[_0x1ffc('0x1e')](_0x2b3fb8){let _0x4b1ca0=this['editor'][_0x1ffc('0x49')]['get'](_0x1ffc('0xd4'));if(void 0x0===_0x4b1ca0){_0x4b1ca0={};for(const _0x5847e5 of this['editor'][_0x1ffc('0x82')][_0x1ffc('0x7b')][_0x1ffc('0x40')]())_0x4b1ca0[_0x5847e5]='';}'string'==typeof _0x4b1ca0&&(_0x4b1ca0={'main':_0x4b1ca0});let _0x465f3b=!0x1;for(const _0x8c01ba of Object[_0x1ffc('0x19')](_0x4b1ca0))_0x2b3fb8[_0x8c01ba]&&(_0x4b1ca0[_0x8c01ba]!==_0x2b3fb8[_0x8c01ba]&&''!==_0x4b1ca0[_0x8c01ba]['trim']()&&(_0x465f3b=!0x0),_0x4b1ca0[_0x8c01ba]=_0x2b3fb8[_0x8c01ba]);_0x465f3b&&_0x21e039('editor-initial-data-replaced-with-revision-data'),this[_0x1ffc('0xb6')][_0x1ffc('0x49')][_0x1ffc('0x27')](_0x1ffc('0xd4'),_0x4b1ca0);}[_0x1ffc('0x15')](){if(!this[_0x1ffc('0x6a')]){const _0x4e36dc=this[_0x1ffc('0xb6')][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xb3'));this[_0x1ffc('0x6a')]=_0x4e36dc[_0x1ffc('0xae')](_0x2536e9(this[_0x1ffc('0xb6')][_0x1ffc('0x34')],_0x1ffc('0x63')));}}['_removePendingAction'](){this[_0x1ffc('0x6a')]&&(this['editor'][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xb3'))[_0x1ffc('0x6b')](this[_0x1ffc('0x6a')]),this[_0x1ffc('0x6a')]=null);}['_findInsertionIndex'](_0x5e95a4){const _0x2adbf5=this[_0x1ffc('0x7f')][_0x1ffc('0xa5')]();_0x2adbf5[_0x1ffc('0xf2')]();let _0x325be0=0x0;for(;_0x325be0<_0x2adbf5['length'];){const _0x364305=_0x2adbf5[_0x325be0];if(_0x364305===this[_0x1ffc('0x5f')]){_0x325be0++;continue;}if(_0x364305['id']===this[_0x1ffc('0x89')])break;const _0x4bc3d8=_0x5e95a4[_0x1ffc('0x4d')]-_0x364305['toVersion']||_0x5e95a4[_0x1ffc('0x5b')]-_0x364305[_0x1ffc('0x5b')];if(_0x4bc3d8>0x0)break;if(_0x4bc3d8<0x0)_0x325be0++;else{if(!_0x5e95a4['creator']&&_0x364305[_0x1ffc('0xe8')])break;if(_0x364305[_0x1ffc('0xe8')]||!_0x5e95a4[_0x1ffc('0xe8')]){if(_0x5e95a4[_0x1ffc('0xdc')]>_0x364305[_0x1ffc('0xdc')])break;_0x325be0++;}else _0x325be0++;}}return _0x325be0;}[_0x1ffc('0xde')](_0x34fe2d){const _0xa8f35c=this[_0x1ffc('0x7f')][_0x1ffc('0xd5')](_0x34fe2d['id']);if(_0x34fe2d['createdAt']&&(_0x34fe2d[_0x1ffc('0xdc')]=new Date(_0x34fe2d[_0x1ffc('0xdc')])),_0x34fe2d[_0x1ffc('0xa1')]){const _0x1e05cb=this[_0x1ffc('0xb6')][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xa0'));_0x34fe2d['authors']=_0x34fe2d[_0x1ffc('0xa1')][_0x1ffc('0xe4')](_0x4d63e1=>_0x1e05cb[_0x1ffc('0x86')](_0x4d63e1));}_0xa8f35c[_0x1ffc('0x96')](_0x34fe2d,!0x0);}[_0x1ffc('0xf0')]({revision:_0x16a82d=null,from:_0x4594b0=null,to:_0xe62b03=null}){_0x4594b0=null!==_0x4594b0?_0x4594b0:_0x16a82d[_0x1ffc('0x5b')],_0xe62b03=null!==_0xe62b03?_0xe62b03:_0x16a82d[_0x1ffc('0x4d')];const _0x2c49cb=this[_0x1ffc('0x95')][_0x1ffc('0xcf')](_0x4594b0,_0xe62b03),_0x5e07ad={'diffData':_0x2c49cb[_0x1ffc('0x37')],'authorsIds':_0x2c49cb['authorsIds'],'fromVersion':_0x4594b0,'toVersion':_0xe62b03};if(!_0x16a82d||_0xe62b03!==_0x16a82d[_0x1ffc('0x4d')]){const _0x242e32=_0xe62b03-0x1,_0x383c27=this[_0x1ffc('0x75')][_0x1ffc('0x98')][_0x1ffc('0x52')](_0x242e32);_0x5e07ad['createdAt']=_0x383c27&&_0x383c27[_0x1ffc('0xdc')]||new Date();}if(this[_0x1ffc('0x23')]&&_0x4594b0===this[_0x1ffc('0x23')][_0x1ffc('0x5b')])for(const _0x196884 of this[_0x1ffc('0x23')][_0x1ffc('0x9e')])_0x5e07ad[_0x1ffc('0xa1')][_0x1ffc('0x18')](_0x196884['id'])||_0x5e07ad[_0x1ffc('0xa1')][_0x1ffc('0x38')](_0x196884['id']);return _0x5e07ad;}[_0x1ffc('0x1d')](_0x52d6b7){if(!_0x52d6b7||_0x52d6b7[_0x1ffc('0x37')])return Promise[_0x1ffc('0xdd')]();{const _0x6df019=this[_0x1ffc('0xb6')][_0x1ffc('0x49')]['get'](_0x1ffc('0x45'));return this[_0x1ffc('0x0')][_0x1ffc('0xd5')]({'channelId':_0x6df019,'revisionId':_0x52d6b7['id']})[_0x1ffc('0x6c')](_0x55be98=>{_0x52d6b7[_0x1ffc('0x37')]=_0x55be98[_0x1ffc('0x37')];});}}['_bufferUpdate'](_0x2977b3,_0x46d583,_0x53fe08){if(this['_bufferedUpdates'][_0x1ffc('0x2b')](_0x2977b3)){const _0x481f59=this[_0x1ffc('0xee')][_0x1ffc('0xda')](_0x2977b3);_0x46d583=_0x53fe08?{..._0x481f59,..._0x46d583}:{..._0x46d583,..._0x481f59};}this[_0x1ffc('0xee')]['set'](_0x2977b3,_0x46d583);}[_0x1ffc('0x65')](_0x487d1d){const _0x4ad7df=this[_0x1ffc('0x7f')][_0x1ffc('0xa5')]();_0x4ad7df['reverse'](),_0x4ad7df[_0x1ffc('0xd')]();const _0x52683a=_0x4ad7df[_0x1ffc('0xd2')](_0x2bb484=>_0x2bb484['toVersion']<=_0x487d1d)[_0x1ffc('0x4d')];return _0x52683a<this[_0x1ffc('0x20')]?this['_startingVersion']:_0x52683a;}[_0x1ffc('0x7c')](_0x3029dd){const _0x450f0a=this[_0x1ffc('0x7f')]['getRevision'](this[_0x1ffc('0x7f')]['length']-0x1);if(_0x450f0a)this['_initialRevisionId']=_0x450f0a['id'];else{const _0x5b716a=!this[_0x1ffc('0xb6')][_0x1ffc('0x82')][_0x1ffc('0x7b')][_0x1ffc('0x5d')][_0x1ffc('0xd2')](_0x16577d=>this[_0x1ffc('0xb6')][_0x1ffc('0x82')]['hasContent'](_0x16577d)),_0x266d20=this[_0x1ffc('0xb6')][_0x1ffc('0xab')]['get'](_0x1ffc('0xa0'))['me']['id'],_0x5102e0=_0x2536e9(this[_0x1ffc('0xb6')][_0x1ffc('0x34')],_0x5b716a?'Empty\x20document':_0x1ffc('0x4e'));this[_0x1ffc('0x54')]({'from':_0x3029dd,'to':_0x3029dd,'id':this['_initialRevisionId'],'name':_0x5102e0,'creatorId':_0x266d20});}}['_createCurrentRevision'](_0x39b599){const _0x3883d1=this[_0x1ffc('0x75')][_0x1ffc('0xbe')]();this['currentRevision']=this[_0x1ffc('0x7f')]['getRevision'](_0x3883d1),this[_0x1ffc('0x5f')]||(this[_0x1ffc('0x5f')]=this['_makeRevision']({'from':_0x39b599,'to':_0x39b599,'id':_0x3883d1,'name':'','creatorId':null}));}[_0x1ffc('0x54')]({name:_0x33ce5c,from:_0x205a64,to:_0x1138a3,creatorId:_0x4faee4,id:_0x5abe7e}){const _0x3af37d=this[_0x1ffc('0xf0')]({'from':_0x205a64,'to':_0x1138a3});_0x3af37d[_0x1ffc('0xbc')]=_0x33ce5c,_0x3af37d[_0x1ffc('0x8a')]=_0x4faee4,_0x3af37d['id']=_0x5abe7e;const _0x42af25=this['addRevisionData'](_0x3af37d);return this[_0x1ffc('0x0')]&&this['_bufferUpdate'](_0x3af37d['id'],_0x3af37d,!0x0),_0x42af25;}[_0x1ffc('0xea')](){this['editor'][_0x1ffc('0xb2')]['for'](_0x1ffc('0xe2'))[_0x1ffc('0xe1')]({'model':_0x1ffc('0x11')});}[_0x1ffc('0x39')](_0x497a73){return(_0x497a73=_0x497a73[_0x1ffc('0x51')](_0xe915c5=>!_0xe915c5[_0x1ffc('0xbc')]||_0x1ffc('0x3')!==_0xe915c5[_0x1ffc('0xbc')]&&'revision-end'!==_0xe915c5[_0x1ffc('0xbc')]))[_0x1ffc('0xa6')](_0xdb3849=>{_0x1ffc('0x10')!=typeof _0xdb3849&&(_0xdb3849['children']=this[_0x1ffc('0x39')](_0xdb3849[_0x1ffc('0x8c')]),_0xdb3849[_0x1ffc('0xc6')]=_0xdb3849[_0x1ffc('0xc6')][_0x1ffc('0x51')](_0x4c4c73=>!_0x4c4c73[0x0]['startsWith'](_0x1ffc('0x79'))));}),_0x497a73;}}function F(_0x22eae1,_0x36f7be){const _0x7846cf=_0x36f7be[_0x1ffc('0x74')][_0x1ffc('0xc1')][_0x1ffc('0x7b')];if(_0x1ffc('0x10')==typeof _0x22eae1)return new _0x4ede3d(_0x7846cf,_0x22eae1);{const _0x264591=_0x22eae1[_0x1ffc('0x8c')][_0x1ffc('0xe4')](_0x936a5f=>F(_0x936a5f,_0x36f7be));return new(V[_0x22eae1[(_0x1ffc('0xd7'))]]||_0x5af39b)(_0x7846cf,_0x22eae1[_0x1ffc('0xbc')],_0x22eae1[_0x1ffc('0xc6')],_0x264591);}}class T{constructor(_0x786bf){this[_0x1ffc('0xb6')]=_0x786bf,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this[_0x1ffc('0xaa')]=-0x1,this[_0x1ffc('0x2a')]=new Map(),this['_diffRoots']=new Map(),this[_0x1ffc('0xa2')]=new Map(),this[_0x1ffc('0x94')]=new Map(),this['_baseIdsRoots']=new Map(),this[_0x1ffc('0xeb')]=new Map(),this[_0x1ffc('0x46')]=new Map(),this[_0x1ffc('0x7d')]=0x1,this[_0x1ffc('0x91')]=this['editor'][_0x1ffc('0x82')]['document']['getRootNames'](),this['_rootNames'][_0x1ffc('0x38')]('$graveyard');}[_0x1ffc('0x9d')](_0x1318d8){this[_0x1ffc('0x50')]=_0x1318d8;const _0x3a0e45=new Map();for(const _0x5b5c6e of this[_0x1ffc('0x91')]){const _0x5c4ec4=J(this['editor']['model'][_0x1ffc('0x7b')][_0x1ffc('0xb9')](_0x5b5c6e));_0x3a0e45[_0x1ffc('0x27')](_0x5b5c6e,_0x5c4ec4);}const _0x24e1aa=Array[_0x1ffc('0xd6')](this[_0x1ffc('0xb6')][_0x1ffc('0x82')][_0x1ffc('0xc0')])['map'](_0x4e5f02=>[_0x4e5f02['name'],_0x4e5f02[_0x1ffc('0xdb')]()]),_0x3a2ba2=this[_0x1ffc('0x50')][_0x1ffc('0x4a')];this[_0x1ffc('0x1f')](_0x3a2ba2,_0x3a0e45,_0x24e1aa),this['_startingRevisionId']=this[_0x1ffc('0x7d')];}[_0x1ffc('0xcf')](_0x1e5cd5,_0x221cc0){if(this[_0x1ffc('0x22')]===_0x1e5cd5&&this[_0x1ffc('0xaa')]<=_0x221cc0)this[_0x1ffc('0xf1')]['size']>0x1&&this[_0x1ffc('0xc8')](this[_0x1ffc('0xaa')]),this[_0x1ffc('0xcd')](this[_0x1ffc('0xaa')],_0x221cc0,!0x0);else{if(!this[_0x1ffc('0xf1')]['has'](_0x1e5cd5)){const _0x347443=this[_0x1ffc('0x35')](_0x1e5cd5);this[_0x1ffc('0x32')](_0x347443,_0x1e5cd5,!0x1);}this[_0x1ffc('0x32')](_0x1e5cd5,_0x221cc0,!0x0);}return this[_0x1ffc('0x22')]=_0x1e5cd5,this[_0x1ffc('0xaa')]=_0x221cc0,this['_getState']();}[_0x1ffc('0xd8')](_0x4af375){this[_0x1ffc('0x1c')](),this[_0x1ffc('0x22')]=_0x4af375[_0x1ffc('0x5b')],this[_0x1ffc('0xaa')]=_0x4af375[_0x1ffc('0x4d')];for(const _0x1670b2 in _0x4af375[_0x1ffc('0x37')]){const _0x211f1d=this[_0x1ffc('0x29')](_0x4af375[_0x1ffc('0x37')][_0x1670b2]['deletions']);_0x211f1d[_0x1ffc('0x8d')]=_0x1670b2,this[_0x1ffc('0xa2')][_0x1ffc('0x27')](_0x1670b2,_0x211f1d);const _0x287e8c=this[_0x1ffc('0xec')](_0x211f1d);this[_0x1ffc('0x14')][_0x1ffc('0x27')](_0x1670b2,_0x287e8c);for(const [_0x49c0ff,_0x54c4f0]of _0x211f1d[_0x1ffc('0xc0')]){if(!_0x49c0ff['startsWith']('revision:'))continue;const _0x55f1d7=_0x49c0ff['split'](':')[0x2];for(const _0x2ad630 of _0x54c4f0[_0x1ffc('0x24')]({'singleCharacters':!0x0})){const _0x245716=this['_getVidAttributeName'](_0x2ad630),_0x300f29=_0x1ffc('0x36')==_0x2ad630[_0x1ffc('0xd7')]?_0x2ad630['previousPosition'][_0x1ffc('0xc7')]['slice'](0x0,-0x1):_0x2ad630[_0x1ffc('0x3f')][_0x1ffc('0xc7')],_0x3fb031=_0x287e8c[_0x1ffc('0xf')](_0x300f29)[_0x1ffc('0xb0')](_0x245716);this[_0x1ffc('0xeb')][_0x1ffc('0x27')](_0x3fb031,{'userId':_0x55f1d7});}}}this[_0x1ffc('0x4')]=this[_0x1ffc('0x7d')];const _0x3839f7=[...Array(this[_0x1ffc('0x7d')])[_0x1ffc('0x19')]()]['slice'](0x1)[_0x1ffc('0x51')](_0x3a4107=>!this[_0x1ffc('0xeb')][_0x1ffc('0x2b')](_0x3a4107));let _0xcf6814=0x0;for(const _0x19adb7 in _0x4af375[_0x1ffc('0x37')]){const _0x4a91ae=this[_0x1ffc('0x29')](_0x4af375[_0x1ffc('0x37')][_0x19adb7][_0x1ffc('0xb')]);_0x4a91ae[_0x1ffc('0x8d')]=_0x19adb7,this['_diffRoots']['set'](_0x19adb7,_0x4a91ae);const _0x1e765e=this[_0x1ffc('0xec')](_0x4a91ae,Number[_0x1ffc('0xaf')]);this['_idsRoots'][_0x1ffc('0x27')](_0x19adb7,_0x1e765e);for(const [_0x430c32,_0x1fad8d]of _0x4a91ae[_0x1ffc('0xc0')]){if(!_0x430c32['startsWith'](_0x1ffc('0x1a')))continue;const _0x16b410=_0x430c32[_0x1ffc('0x7a')](':')[0x2];for(const _0x12e65e of _0x1fad8d[_0x1ffc('0x24')]({'singleCharacters':!0x0})){const _0x3537d7=this[_0x1ffc('0x16')](_0x12e65e),_0x5f3de2=this[_0x1ffc('0x7d')]++,_0x3cda4d=_0x1ffc('0x36')==_0x12e65e['type']?_0x12e65e[_0x1ffc('0x3f')][_0x1ffc('0xc7')]['slice'](0x0,-0x1):_0x12e65e[_0x1ffc('0x3f')][_0x1ffc('0xc7')];_0x1e765e['getNodeByPath'](_0x3cda4d)[_0x1ffc('0xb1')](_0x3537d7,_0x5f3de2),this[_0x1ffc('0xeb')][_0x1ffc('0x27')](_0x5f3de2,{'userId':_0x16b410});}}for(const _0x1a1f97 of this[_0x1ffc('0xb6')]['model'][_0x1ffc('0x42')](_0x4a91ae)[_0x1ffc('0x24')]({'singleCharacters':!0x0})){const _0x5f2e57=this[_0x1ffc('0x16')](_0x1a1f97),_0x2d4ee4='elementEnd'==_0x1a1f97['type']?_0x1a1f97[_0x1ffc('0x3f')][_0x1ffc('0xc7')][_0x1ffc('0x6f')](0x0,-0x1):_0x1a1f97[_0x1ffc('0x3f')][_0x1ffc('0xc7')],_0x7d46fe=_0x1e765e['getNodeByPath'](_0x2d4ee4);_0x7d46fe[_0x1ffc('0xb0')](_0x5f2e57)>0x0||_0x7d46fe[_0x1ffc('0xb1')](_0x5f2e57,_0x3839f7[_0xcf6814++]);}const _0x33753b=new _0xfd6a74();_0x33753b['rootName']=_0x1ffc('0xf3'),this['_baseRoots']['set']('$graveyard',_0x33753b),this['_baseIdsRoots'][_0x1ffc('0x27')](_0x1ffc('0xf3'),this[_0x1ffc('0xec')](_0x33753b,0x1));const _0x1fdcf5=new _0xfd6a74();_0x1fdcf5['rootName']='$graveyard',this['_diffRoots'][_0x1ffc('0x27')]('$graveyard',_0x1fdcf5),this['_idsRoots'][_0x1ffc('0x27')]('$graveyard',this['_makeIdsRoot'](_0x1fdcf5,0x1));for(const [_0x42f563,_0x3bec41]of _0x4a91ae[_0x1ffc('0xc0')])_0x42f563[_0x1ffc('0x7e')]('revision:')||this[_0x1ffc('0x2a')][_0x1ffc('0x27')](_0x42f563,_0x3bec41);}const _0xe7bf0f=Array[_0x1ffc('0xd6')](this[_0x1ffc('0xbb')])['map'](([_0x575e05,_0x233f6c])=>[_0x575e05,J(_0x233f6c)]);this[_0x1ffc('0x1f')](this['_lastTo'],_0xe7bf0f,this['_markers']);}[_0x1ffc('0x29')](_0x56d3f6){const _0xdbbc1f=JSON['parse'](_0x56d3f6),_0x5241fd=this[_0x1ffc('0xb6')][_0x1ffc('0x74')]['view'][_0x1ffc('0x7b')],_0x4c0ada=new _0x242b3a(_0x5241fd,_0xdbbc1f[_0x1ffc('0xe4')](_0x368908=>F(_0x368908,this[_0x1ffc('0xb6')])));return this[_0x1ffc('0xb6')][_0x1ffc('0xce')]['toModel'](_0x4c0ada);}[_0x1ffc('0x73')](){const _0x2c6cca=new Map();for(const _0x3b4135 of this[_0x1ffc('0x91')]){const _0x43dc35=new _0xfd6a74();_0x43dc35[_0x1ffc('0x8d')]=_0x3b4135,_0x2c6cca[_0x1ffc('0x27')](_0x3b4135,_0x43dc35);}this[_0x1ffc('0x1f')](Number[_0x1ffc('0xaf')],_0x2c6cca,[]);}[_0x1ffc('0x1f')](_0x5a5b93,_0x559c31,_0x3b89b2){const _0x22424b=new Map(_0x559c31),_0x9a0d8e=new Map();for(const [_0x1003b7,_0x2e4cf0]of _0x3b89b2)_0x9a0d8e[_0x1ffc('0x27')](_0x1003b7,{'start':_0x2e4cf0[_0x1ffc('0x87')][_0x1ffc('0x41')](),'end':_0x2e4cf0['end'][_0x1ffc('0x41')](),'rootName':_0x2e4cf0[_0x1ffc('0x92')]['rootName']});this[_0x1ffc('0xf1')][_0x1ffc('0x27')](_0x5a5b93,{'roots':_0x22424b,'markers':_0x9a0d8e});}[_0x1ffc('0xc8')](_0x128ee4){this[_0x1ffc('0xf1')][_0x1ffc('0x88')](_0x128ee4);}[_0x1ffc('0x8b')](){this[_0x1ffc('0x1c')](),this[_0x1ffc('0x22')]=-0x1,this[_0x1ffc('0xaa')]=-0x1,this[_0x1ffc('0xf1')]['clear'](),this[_0x1ffc('0x9d')](this[_0x1ffc('0x50')]);}[_0x1ffc('0x1c')](){this[_0x1ffc('0xeb')][_0x1ffc('0x2f')](),this[_0x1ffc('0x46')][_0x1ffc('0x2f')](),this[_0x1ffc('0xbb')][_0x1ffc('0x2f')](),this['_baseRoots'][_0x1ffc('0x2f')](),this[_0x1ffc('0x94')][_0x1ffc('0x2f')](),this[_0x1ffc('0x14')][_0x1ffc('0x2f')](),this[_0x1ffc('0x2a')][_0x1ffc('0x2f')](),this[_0x1ffc('0x7d')]=0x1,this[_0x1ffc('0x4')]=this['_revisionId'];}[_0x1ffc('0xec')](_0x467a0d,_0xc202d5=null){let _0x43c073=null;_0x467a0d['is'](_0x1ffc('0x4f'))||(_0x43c073=new _0x230a92(_0x467a0d[_0x1ffc('0xbc')],{'vid_start':null===_0xc202d5?this[_0x1ffc('0x7d')]++:_0xc202d5++}));const _0x2e9cf5=[];for(const _0x11eb4e of _0x467a0d[_0x1ffc('0x59')]())if(_0x11eb4e['is'](_0x1ffc('0xf4'))){_0x2e9cf5[_0x1ffc('0x38')](this[_0x1ffc('0xec')](_0x11eb4e,_0xc202d5));const _0x3a73e5=_0x2e9cf5[_0x2e9cf5['length']-0x1];null!==_0xc202d5&&(_0xc202d5=_0x3a73e5['is'](_0x1ffc('0xf4'),_0x1ffc('0x9b'))?_0x3a73e5[_0x1ffc('0xb0')](_0x1ffc('0x33'))+0x1:_0x3a73e5['getAttribute']('vid_end')+0x1);}else for(let _0x5ad1b2=0x0;_0x5ad1b2<_0x11eb4e[_0x1ffc('0xb5')];_0x5ad1b2++)_0x2e9cf5['push'](new _0x230a92('$text',{'vid':null===_0xc202d5?this[_0x1ffc('0x7d')]++:_0xc202d5++}));if(_0x467a0d['is'](_0x1ffc('0x4f'))){const _0x3894bc=new _0xfd6a74(_0x2e9cf5);return _0x3894bc[_0x1ffc('0x8d')]=_0x467a0d['rootName'],_0x3894bc;}return _0x43c073[_0x1ffc('0xb1')](_0x1ffc('0xc4'),null===_0xc202d5?this['_revisionId']++:_0xc202d5++),_0x43c073[_0x1ffc('0x1b')](0x0,_0x2e9cf5),_0x43c073;}[_0x1ffc('0x32')](_0x3e928f,_0x5bf16a,_0x313ae1){this[_0x1ffc('0x1c')]();const {roots:_0x3dcd60,markers:_0x30aad3}=this[_0x1ffc('0xf1')][_0x1ffc('0xda')](_0x3e928f);this['_baseRoots']=new Map(_0x3dcd60);for(const [_0x5d2e2d,_0x5c8e99]of this[_0x1ffc('0xa2')])if('$graveyard'!==_0x5d2e2d&&(this[_0x1ffc('0xbb')][_0x1ffc('0x27')](_0x5d2e2d,J(_0x5c8e99)),_0x313ae1)){const _0x574b8a=this[_0x1ffc('0x7d')];this[_0x1ffc('0x94')][_0x1ffc('0x27')](_0x5d2e2d,this[_0x1ffc('0xec')](_0x5c8e99)),this[_0x1ffc('0x14')]['set'](_0x5d2e2d,this[_0x1ffc('0xec')](_0x5c8e99,_0x574b8a));}this['_startingRevisionId']=this[_0x1ffc('0x7d')],this['_diffRoots']['set'](_0x1ffc('0xf3'),J(this[_0x1ffc('0xa2')][_0x1ffc('0xda')]('$graveyard'))),_0x313ae1&&this[_0x1ffc('0x94')][_0x1ffc('0x27')]('$graveyard',this[_0x1ffc('0xec')](this[_0x1ffc('0xa2')][_0x1ffc('0xda')](_0x1ffc('0xf3'))));for(const [_0x2d33f6,_0x104594]of _0x30aad3){const _0x59fa06=this[_0x1ffc('0xa2')][_0x1ffc('0xda')](_0x104594[_0x1ffc('0x8d')]),_0x56c319=this[_0x1ffc('0xbb')][_0x1ffc('0xda')](_0x104594[_0x1ffc('0x8d')]),_0x51e99a=new _0x21882a(this[_0x1ffc('0xa8')](_0x104594[_0x1ffc('0x87')],_0x59fa06),this[_0x1ffc('0xa8')](_0x104594[_0x1ffc('0xbd')],_0x59fa06)),_0x1901e9=this[_0x1ffc('0x6')](_0x51e99a,_0x56c319);_0x59fa06[_0x1ffc('0xc0')]['set'](_0x2d33f6,_0x51e99a),this[_0x1ffc('0x2a')][_0x1ffc('0x27')](_0x2d33f6,_0x1901e9);}this[_0x1ffc('0xcd')](_0x3e928f,_0x5bf16a,_0x313ae1);}[_0x1ffc('0xcd')](_0x5a0184,_0x46095b,_0x429a50){for(const _0x52f0c4 of this['source'][_0x1ffc('0x1')](_0x5a0184,_0x46095b))this[_0x1ffc('0xd3')](_0x52f0c4,_0x429a50);for(const _0x5bd46b of this[_0x1ffc('0xbb')][_0x1ffc('0x84')]())_0x5bd46b[_0x1ffc('0xc0')][_0x1ffc('0x2f')]();for(const [_0x16b88e,_0x50d225]of this[_0x1ffc('0x2a')]){this[_0x1ffc('0xbb')][_0x1ffc('0xda')](_0x50d225['root'][_0x1ffc('0x8d')])[_0x1ffc('0xc0')][_0x1ffc('0x27')](_0x16b88e,_0x50d225[_0x1ffc('0x41')]());}this[_0x1ffc('0x1f')](_0x46095b,Array['from'](this['_diffRoots'])[_0x1ffc('0xe4')](([_0x2faa63,_0xb44f61])=>[_0x2faa63,J(_0xb44f61)]),this['_markers']);}['_getPreviousFrom'](_0x5e4d91){const _0x15fcd8=Array[_0x1ffc('0xd6')](this['_savedMetaData'][_0x1ffc('0x19')]());_0x15fcd8[_0x1ffc('0xbf')]((_0x1a477c,_0x5239f4)=>_0x1a477c-_0x5239f4),_0x15fcd8[_0x1ffc('0xf2')]();for(const _0x166f0b of _0x15fcd8)if(_0x166f0b<_0x5e4d91)return _0x166f0b;return this[_0x1ffc('0x73')](),Number[_0x1ffc('0xaf')];}['_copyMarkers'](_0x462bcb,_0x20c951){const _0x5b39df=Array['from'](_0x20c951['markers'])[_0x1ffc('0xe4')](([_0x1b7757,_0x5eda30])=>[_0x1b7757,this[_0x1ffc('0x6')](_0x5eda30,_0x462bcb)]);_0x462bcb[_0x1ffc('0xc0')]=new Map(_0x5b39df);}['_transformMarkers'](_0x5e02e6){for(const _0x50e713 of this['_markers']['values']()){const _0x2b6f74=_0x50e713[_0x1ffc('0x90')](_0x5e02e6),_0x462fc9=_0x21882a[_0x1ffc('0x85')](_0x2b6f74);_0x50e713['start']=_0x462fc9[_0x1ffc('0x87')],_0x50e713['end']=_0x462fc9['end'];}}['_handleOperation'](_0x202f10,_0x485c3a){const _0x55e23c=this['_cloneOperation'](_0x202f10,this[_0x1ffc('0xbb')]);if(_0x1ffc('0xef')!==_0x202f10['type']&&(_0x55e23c[_0x1ffc('0x78')](),this[_0x1ffc('0xcb')](_0x55e23c)),_0x485c3a)switch(_0x55e23c['type']){case _0x1ffc('0x3e'):this[_0x1ffc('0x7')](_0x202f10);break;case _0x1ffc('0x28'):case _0x1ffc('0x6b'):case _0x1ffc('0xb8'):this['_handleMoveOperation'](_0x202f10);break;case'merge':this[_0x1ffc('0xcc')](_0x202f10);break;case'split':this[_0x1ffc('0xa4')](_0x202f10);break;case _0x1ffc('0xef'):this[_0x1ffc('0x2e')](_0x202f10);}}['_cloneOperation'](_0x511c77,_0x54f405){const _0x2410fc=_0x511c77[_0x1ffc('0x41')]();return _0x2410fc[_0x1ffc('0xa7')]=_0x511c77[_0x1ffc('0xa7')],this['_fixOperation'](_0x2410fc,_0x54f405),_0x2410fc;}[_0x1ffc('0x3d')](_0x120214){return _0x120214[_0x1ffc('0xe4')](_0x2a0503=>{const _0x2de7ae=this[_0x1ffc('0x16')](_0x2a0503);return Number(_0x2a0503[_0x1ffc('0xe5')][_0x1ffc('0xb0')](_0x2de7ae));});}['_generateTape'](_0x519b58,_0x19bbfc){if(_0x519b58['is']('element','$text'))_0x19bbfc[_0x1ffc('0x38')]({'item':_0x519b58,'type':'text'});else{_0x519b58['is'](_0x1ffc('0xf4'))&&_0x19bbfc['push']({'item':_0x519b58,'type':_0x1ffc('0x56')});for(const _0xbd0e85 of _0x519b58[_0x1ffc('0x59')]())this['_generateTape'](_0xbd0e85,_0x19bbfc);_0x519b58['is']('element')&&_0x19bbfc[_0x1ffc('0x38')]({'item':_0x519b58,'type':_0x1ffc('0x36')});}return _0x19bbfc;}[_0x1ffc('0x48')](){const _0x79aeb4=this[_0x1ffc('0xb6')][_0x1ffc('0x82')][_0x1ffc('0x7b')][_0x1ffc('0x40')](),_0x15588c=new Map(this[_0x1ffc('0xeb')]),_0x441f59=new Map(_0x15588c),_0x5d373d=new Map(),_0x590861={'insertions':{},'deletions':{}},_0x984c6e={'insertions':{},'deletions':{}},_0x1dbcbb=new Map();for(const _0x5cf460 of _0x79aeb4){const _0x33152e=this[_0x1ffc('0xbb')][_0x1ffc('0xda')](_0x5cf460),_0xa1e812=this[_0x1ffc('0xa2')][_0x1ffc('0xda')](_0x5cf460);_0x590861[_0x1ffc('0xb')][_0x5cf460]=J(_0x33152e),_0x590861['deletions'][_0x5cf460]=J(_0xa1e812),this[_0x1ffc('0x6d')](_0x590861['deletions'][_0x5cf460],_0xa1e812),this[_0x1ffc('0x6d')](_0x590861[_0x1ffc('0xb')][_0x5cf460],_0x33152e),_0x984c6e['insertions'][_0x5cf460]=this['_generateTape'](this[_0x1ffc('0x94')][_0x1ffc('0xda')](_0x5cf460),[]),_0x984c6e[_0x1ffc('0x53')][_0x5cf460]=this[_0x1ffc('0x31')](this['_baseIdsRoots'][_0x1ffc('0xda')](_0x5cf460),[]);}for(const _0x4fe41b of _0x79aeb4){const _0x1a2963=_0x984c6e['insertions'][_0x4fe41b];for(const _0x53e098 of _0x1a2963){const _0x485952=this[_0x1ffc('0x16')](_0x53e098),_0x291aef=_0x53e098[_0x1ffc('0xe5')][_0x1ffc('0xb0')](_0x485952);_0x441f59[_0x1ffc('0x88')](_0x291aef),_0x291aef>=this[_0x1ffc('0x4')]&&_0x5d373d['set'](_0x291aef,_0x15588c[_0x1ffc('0xda')](_0x291aef));}}for(const _0x1d155d of _0x79aeb4){const _0x2963ca=_0x984c6e[_0x1ffc('0xb')][_0x1d155d],_0x51c2a7=this[_0x1ffc('0x3d')](_0x984c6e[_0x1ffc('0x53')][_0x1d155d]);let _0x3d198d=0x0;for(const _0x54b038 of _0x2963ca){const _0xb58278=this['_getVidAttributeName'](_0x54b038),_0x2de699=_0x54b038[_0x1ffc('0xe5')][_0x1ffc('0xb0')](_0xb58278);if(!_0x5d373d[_0x1ffc('0x2b')](_0x2de699)&&!_0x1dbcbb[_0x1ffc('0x2b')](_0x2de699)){if(_0x441f59[_0x1ffc('0x2b')](_0x2de699))_0x3d198d++;else{if(_0x2de699!=_0x51c2a7[_0x3d198d]){const _0x2aad84=_0x15588c[_0x1ffc('0xda')](_0x2de699)||_0x15588c[_0x1ffc('0xda')](_0x51c2a7[_0x3d198d]);for(;_0x2de699!=_0x51c2a7[_0x3d198d];)_0x441f59[_0x1ffc('0x2b')](_0x51c2a7[_0x3d198d])||(_0x1dbcbb[_0x1ffc('0x27')](_0x51c2a7[_0x3d198d],_0x2aad84),_0x15588c[_0x1ffc('0x27')](_0x51c2a7[_0x3d198d],_0x2aad84)),_0x3d198d++;}_0x3d198d++;}}}}for(const _0x29482e of _0x79aeb4){const _0x757487=_0x984c6e[_0x1ffc('0xb')][_0x29482e];for(const _0x223af9 of _0x757487){const _0x283ee2=this[_0x1ffc('0x16')](_0x223af9),_0x474179=_0x223af9['item'][_0x1ffc('0xb0')](_0x283ee2);if(_0x1dbcbb[_0x1ffc('0x2b')](_0x474179)){const _0x138e0e=_0x1dbcbb[_0x1ffc('0xda')](_0x474179);_0x441f59[_0x1ffc('0x2b')](_0x474179)||_0x441f59['set'](_0x474179,{..._0x138e0e}),_0x5d373d[_0x1ffc('0x27')](_0x474179,{..._0x138e0e});}}}for(const _0x499261 of _0x441f59['keys']())_0x499261>=this[_0x1ffc('0x4')]&&_0x441f59[_0x1ffc('0x88')](_0x499261);const _0x339e0c=new Map();for(const _0x44d418 of _0x79aeb4){let _0x2ed6ab=_0x984c6e[_0x1ffc('0xb')][_0x44d418];for(const _0x3208a8 of _0x2ed6ab)if(_0x3208a8[_0x1ffc('0xe5')]['is'](_0x1ffc('0xf4'),_0x1ffc('0x6e'))){const _0x5dee5a=this[_0x1ffc('0x16')](_0x3208a8),_0x3f45dc=_0x3208a8[_0x1ffc('0xe5')][_0x1ffc('0xb0')](_0x5dee5a);if(_0x5d373d['has'](_0x3f45dc)){const _0x4e29cf=_0x3208a8[_0x1ffc('0xe5')][_0x1ffc('0xd0')][_0x1ffc('0xd0')]['getAttribute']('vid_start'),_0xde4faf=_0x339e0c['get'](_0x4e29cf)||new Set();_0xde4faf[_0x1ffc('0xae')](_0x5d373d[_0x1ffc('0xda')](_0x3f45dc)[_0x1ffc('0x9')]),_0x339e0c[_0x1ffc('0x27')](_0x4e29cf,_0xde4faf);}}_0x2ed6ab=_0x984c6e[_0x1ffc('0x53')][_0x44d418];for(const _0x46cab4 of _0x2ed6ab)if(_0x46cab4[_0x1ffc('0xe5')]['is'](_0x1ffc('0xf4'),_0x1ffc('0x6e'))){const _0x37dad9=this[_0x1ffc('0x16')](_0x46cab4),_0x538c0a=_0x46cab4[_0x1ffc('0xe5')][_0x1ffc('0xb0')](_0x37dad9);if(_0x441f59[_0x1ffc('0x2b')](_0x538c0a)){const _0x1359ae=_0x46cab4['item'][_0x1ffc('0xd0')][_0x1ffc('0xd0')][_0x1ffc('0xb0')](_0x1ffc('0x5a')),_0x341df6=_0x339e0c[_0x1ffc('0xda')](_0x1359ae)||new Set();_0x341df6['add'](_0x441f59[_0x1ffc('0xda')](_0x538c0a)['userId']),_0x339e0c['set'](_0x1359ae,_0x341df6);}}for(const _0x4b4123 of _0x339e0c[_0x1ffc('0x19')]())(_0x5d373d[_0x1ffc('0x2b')](_0x4b4123)||_0x441f59['has'](_0x4b4123))&&_0x339e0c[_0x1ffc('0x88')](_0x4b4123);}for(const _0x17a890 of _0x79aeb4){const _0x1fe2e8=_0x984c6e[_0x1ffc('0xb')][_0x17a890];let _0x1bb34b=null,_0x96da53=null;for(const _0x4618f6 of _0x1fe2e8){const _0x9bd616=this[_0x1ffc('0x16')](_0x4618f6),_0x1bc636=_0x4618f6[_0x1ffc('0xe5')][_0x1ffc('0xb0')](_0x9bd616),_0x19f596=_0x339e0c['get'](_0x1bc636);_0x19f596&&_0x1ffc('0x56')==_0x4618f6['type']&&(_0x1bb34b=Array[_0x1ffc('0xd6')](_0x19f596)[0x0],_0x96da53=_0x4618f6['item'][_0x1ffc('0xb0')](_0x1ffc('0xc4'))),_0x1bb34b&&(_0x441f59[_0x1ffc('0x27')](_0x1bc636,{'userId':_0x1bb34b}),_0x5d373d[_0x1ffc('0x27')](_0x1bc636,{'userId':_0x1bb34b})),_0x1bc636==_0x96da53&&(_0x1bb34b=null,_0x96da53=null);}}const _0x3c4d6d={},_0x49e611=new Set();for(const _0x49ffe8 of _0x79aeb4){const _0x5a7552=_0x590861[_0x1ffc('0x53')][_0x49ffe8],_0x5d7730=_0x590861[_0x1ffc('0xb')][_0x49ffe8];for(const {userId:_0x2b9e0c}of this[_0x1ffc('0x46')][_0x1ffc('0x84')]())null!==_0x2b9e0c&&_0x49e611[_0x1ffc('0xae')](_0x2b9e0c);this[_0x1ffc('0x4b')](_0x5d7730,_0x984c6e[_0x1ffc('0xb')][_0x49ffe8],_0x5d373d,'insertion',_0x49e611),this['_markChanges'](_0x5a7552,_0x984c6e[_0x1ffc('0x53')][_0x49ffe8],_0x441f59,_0x1ffc('0xb4'),_0x49e611),_0x3c4d6d[_0x49ffe8]={'insertions':this[_0x1ffc('0x58')](_0x5d7730),'deletions':this[_0x1ffc('0x58')](_0x5a7552)};}return{'diffData':_0x3c4d6d,'authorsIds':Array[_0x1ffc('0xd6')](_0x49e611)};}[_0x1ffc('0x64')](_0xb895ab){for(const [,_0x137bab]of _0xb895ab['markers']){const _0xfff0ef=_0x137bab['start']['getAncestors']()['filter'](_0x250bc4=>_0x1ffc('0x6e')==_0x250bc4['name']);for(const _0x5be3e4 of _0xfff0ef)0x1==_0x5be3e4[_0x1ffc('0x69')]&&_0x5be3e4[_0x1ffc('0x2d')](0x0)['is'](_0x1ffc('0xf4'),_0x1ffc('0x26'))&&_0x5be3e4[_0x1ffc('0x2d')](0x0)[_0x1ffc('0xb1')]('keepParagraph',!0x0);}}[_0x1ffc('0x58')](_0x4d9bd1){this[_0x1ffc('0x64')](_0x4d9bd1);const _0xd5ac9b=this[_0x1ffc('0xb6')][_0x1ffc('0xce')][_0x1ffc('0xd1')](_0x4d9bd1,{}),_0x524360=Array[_0x1ffc('0xd6')](_0xd5ac9b[_0x1ffc('0x59')]())[_0x1ffc('0xe4')](_0x550b03=>this[_0x1ffc('0xc2')](_0x550b03));return JSON[_0x1ffc('0x97')](_0x524360);}[_0x1ffc('0xc2')](_0x368ce2){if(_0x368ce2['is'](_0x1ffc('0x9c')))return _0x368ce2[_0x1ffc('0xce')];return{'type':Object[_0x1ffc('0x19')](V)['find'](_0x39cdf4=>_0x368ce2 instanceof V[_0x39cdf4]),'name':_0x368ce2[_0x1ffc('0xbc')],'attributes':Array[_0x1ffc('0xd6')](_0x368ce2['getAttributes']()),'children':Array[_0x1ffc('0xd6')](_0x368ce2[_0x1ffc('0x59')]())[_0x1ffc('0xe4')](_0x4fb103=>this[_0x1ffc('0xc2')](_0x4fb103))};}[_0x1ffc('0x4b')](_0x1d6085,_0x3b6f4d,_0x2b9968,_0x5d6384,_0x2a6386){let _0x456799=null,_0x1aee14=null,_0x39df5b=0x0;const _0x42edc1=this['editor'][_0x1ffc('0x82')];for(let _0x1e668a=0x0;_0x1e668a<_0x3b6f4d[_0x1ffc('0x76')];_0x1e668a++){const _0x2b1337=this[_0x1ffc('0x16')](_0x3b6f4d[_0x1e668a]),_0x12b433=_0x3b6f4d[_0x1e668a][_0x1ffc('0xe5')][_0x1ffc('0xb0')](_0x2b1337),_0x2baa21=_0x2b9968[_0x1ffc('0xda')](_0x12b433),_0x52b66d=_0x1e668a==_0x3b6f4d[_0x1ffc('0x76')]-0x1;(!_0x456799&&_0x2baa21&&(_0x456799=_0x2baa21,_0x1aee14=_0x3b6f4d[_0x1e668a]),_0x456799&&(!_0x2baa21||_0x2baa21[_0x1ffc('0x9')]!=_0x456799['userId']))&&(_0x44295d(_0x2baa21,j(_0x1aee14,_0x1d6085,_0x42edc1),j(_0x3b6f4d[_0x1e668a],_0x1d6085,_0x42edc1)),_0x456799=_0x2baa21||null,_0x1aee14=_0x2baa21?_0x3b6f4d[_0x1e668a]:null),_0x456799&&_0x52b66d&&_0x44295d(_0x2baa21,j(_0x1aee14,_0x1d6085,_0x42edc1),B(_0x3b6f4d[_0x1e668a],_0x1d6085,_0x42edc1));}function _0x44295d(_0x15b19c,_0x1382f1,_0x3e22e7){const _0x1ab7aa=_0x456799[_0x1ffc('0x9')],_0x19ec44=_0x1ffc('0x1a')+_0x5d6384+':'+_0x1ab7aa+':'+_0x39df5b++,_0x2c7f91=_0x42edc1[_0x1ffc('0x80')](_0x1382f1,_0x3e22e7);_0x1d6085[_0x1ffc('0xc0')][_0x1ffc('0x27')](_0x19ec44,_0x2c7f91),null!==_0x1ab7aa&&_0x2a6386[_0x1ffc('0xae')](_0x1ab7aa);}}['_getVidAttributeName'](_0xdaa4fd){switch(_0xdaa4fd[_0x1ffc('0xd7')]){case'elementStart':return _0x1ffc('0x5a');case _0x1ffc('0x36'):return _0x1ffc('0xc4');default:return _0x1ffc('0x33');}}[_0x1ffc('0x57')](_0x25ec9f,_0x478680){_0x25ec9f['baseVersion']=null;for(const _0x395ec7 in _0x25ec9f){if(_0x25ec9f[_0x395ec7]instanceof _0x29deb2){const _0x37a663=_0x478680[_0x1ffc('0xda')](_0x25ec9f[_0x395ec7][_0x1ffc('0x92')]['rootName']);_0x25ec9f[_0x395ec7]=this[_0x1ffc('0xa8')](_0x25ec9f[_0x395ec7],_0x37a663);}if(_0x25ec9f[_0x395ec7]instanceof _0x21882a){const _0x4ca2b9=_0x478680['get'](_0x25ec9f[_0x395ec7][_0x1ffc('0x92')][_0x1ffc('0x8d')]);_0x25ec9f[_0x395ec7]=this[_0x1ffc('0x6')](_0x25ec9f[_0x395ec7],_0x4ca2b9);}}_0x25ec9f[_0x1ffc('0x92')]&&(_0x25ec9f['root']=_0x478680[_0x1ffc('0xda')](_0x25ec9f['root'][_0x1ffc('0x8d')]));}['_fixRange'](_0x58e111,_0x40acc3){return this['editor']['model']['createRange'](this['_fixPosition'](_0x58e111[_0x1ffc('0x87')],_0x40acc3),this[_0x1ffc('0xa8')](_0x58e111[_0x1ffc('0xbd')],_0x40acc3));}[_0x1ffc('0xa8')](_0x1f28c5,_0x43b009){return this[_0x1ffc('0xb6')][_0x1ffc('0x82')][_0x1ffc('0x70')](_0x43b009,_0x1f28c5['path'],_0x1f28c5[_0x1ffc('0xba')]);}[_0x1ffc('0x7')](_0x10543a){const _0x70a88d=this[_0x1ffc('0x94')]['get'](_0x10543a[_0x1ffc('0xc3')][_0x1ffc('0x92')][_0x1ffc('0x8d')]),_0x3e0b1f=this['_fixPosition'](_0x10543a['position'],_0x70a88d),_0x5183b7=null===_0x10543a[_0x1ffc('0xa7')]?null:_0x10543a[_0x1ffc('0xa7')]||this[_0x1ffc('0xb6')][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xa0'))['me']['id'],_0x353c85=_0x3e0b1f['parent'],_0x46ccfa=this['_revisionId'],_0x42d5b8=[];for(const _0x4a58f9 of _0x10543a[_0x1ffc('0x55')])if(_0x4a58f9['is'](_0x1ffc('0xf4')))_0x42d5b8[_0x1ffc('0x38')](this[_0x1ffc('0xec')](_0x4a58f9));else for(let _0x158f20=0x0;_0x158f20<_0x4a58f9[_0x1ffc('0xb5')];_0x158f20++)_0x42d5b8[_0x1ffc('0x38')](new _0x230a92('$text',{'vid':this[_0x1ffc('0x7d')]++}));const _0x88fc3e=this[_0x1ffc('0x7d')];for(let _0x221ca9=_0x46ccfa;_0x221ca9<_0x88fc3e;_0x221ca9++)this[_0x1ffc('0xeb')]['set'](_0x221ca9,{'userId':_0x5183b7});_0x353c85[_0x1ffc('0x1b')](_0x3e0b1f[_0x1ffc('0xe6')],_0x42d5b8);}[_0x1ffc('0x61')](_0x3a3068){(_0x3a3068=this[_0x1ffc('0xe3')](_0x3a3068,this[_0x1ffc('0x94')]))[_0x1ffc('0x78')]();const _0x4440cd=null===_0x3a3068[_0x1ffc('0xa7')]?null:_0x3a3068[_0x1ffc('0xa7')]||this['editor'][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xa0'))['me']['id'],_0x3c86eb=_0x3a3068[_0x1ffc('0x62')](),_0xdf1417=_0x3c86eb['parent'],_0x84c461=_0x3c86eb['offset'];!function _0x11544b(_0x2522af,_0x548f3b,_0x519160,_0x31f363){for(let _0x13b7fa=_0x519160;_0x13b7fa<_0x31f363;_0x13b7fa++){const _0xae7a62=_0x548f3b['getChild'](_0x13b7fa);_0xae7a62['is']('element',_0x1ffc('0x9b'))?_0x2522af[_0x1ffc('0x27')](_0xae7a62[_0x1ffc('0xb0')]('vid'),{'userId':_0x4440cd}):(_0x2522af[_0x1ffc('0x27')](_0xae7a62['getAttribute'](_0x1ffc('0x5a')),{'userId':_0x4440cd}),_0x11544b(_0x2522af,_0xae7a62,0x0,_0xae7a62['childCount']),_0x2522af[_0x1ffc('0x27')](_0xae7a62[_0x1ffc('0xb0')](_0x1ffc('0xc4')),{'userId':_0x4440cd}));}}(this[_0x1ffc('0xeb')],_0xdf1417,_0x84c461,_0x84c461+_0x3a3068[_0x1ffc('0x9a')]);}[_0x1ffc('0xcc')](_0x2eb287){const _0xb147ed=null===(_0x2eb287=this[_0x1ffc('0xe3')](_0x2eb287,this[_0x1ffc('0x94')]))[_0x1ffc('0xa7')]?null:_0x2eb287[_0x1ffc('0xa7')]||this['editor'][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xa0'))['me']['id'],_0xfa0d99=_0x2eb287[_0x1ffc('0x8f')][_0x1ffc('0xd0')],_0x4b3f4b=_0x2eb287[_0x1ffc('0xad')]['parent'],_0x236fd5=_0xfa0d99[_0x1ffc('0xb0')](_0x1ffc('0xc4')),_0x411e45=_0x4b3f4b[_0x1ffc('0xb0')]('vid_start');_0xfa0d99[_0x1ffc('0xb1')](_0x1ffc('0xc4'),_0x4b3f4b[_0x1ffc('0xb0')]('vid_end')),_0x4b3f4b[_0x1ffc('0xb1')](_0x1ffc('0xc4'),_0x236fd5),this['_touched'][_0x1ffc('0x27')](_0x411e45,{'userId':_0xb147ed}),this[_0x1ffc('0xeb')][_0x1ffc('0x27')](_0x236fd5,{'userId':_0xb147ed}),_0x2eb287[_0x1ffc('0x78')]();}[_0x1ffc('0xa4')](_0x17d998){const _0x31106f=null===(_0x17d998=this['_cloneOperation'](_0x17d998,this[_0x1ffc('0x94')]))[_0x1ffc('0xa7')]?null:_0x17d998[_0x1ffc('0xa7')]||this[_0x1ffc('0xb6')]['plugins'][_0x1ffc('0xda')](_0x1ffc('0xa0'))['me']['id'],_0x1e1bdb=_0x17d998[_0x1ffc('0x3c')],_0x456a7f=_0x17d998[_0x1ffc('0x60')][_0x1ffc('0xd0')];_0x17d998['_execute']();const _0x5e40ca=_0x456a7f[_0x1ffc('0xb0')]('vid_end'),_0x1d8ced=_0x17d998['insertionPosition'][_0x1ffc('0x12')];if(_0x1e1bdb){const _0x226666=_0x1d8ced[_0x1ffc('0xb0')](_0x1ffc('0xc4')),_0x242fbe=_0x456a7f['getAttribute'](_0x1ffc('0xc4'));_0x456a7f['_setAttribute'](_0x1ffc('0xc4'),_0x226666),_0x1d8ced['_setAttribute'](_0x1ffc('0xc4'),_0x242fbe),this['_touched'][_0x1ffc('0x27')](_0x456a7f[_0x1ffc('0xb0')](_0x1ffc('0xc4')),{'userId':_0x31106f}),this[_0x1ffc('0xeb')][_0x1ffc('0x27')](_0x1d8ced[_0x1ffc('0xb0')]('vid_start'),{'userId':_0x31106f});}else{const _0x5c8541=this['_revisionId']++,_0x3218cd=this['_revisionId']++;_0x456a7f['_setAttribute'](_0x1ffc('0xc4'),_0x5c8541),_0x1d8ced[_0x1ffc('0xb1')](_0x1ffc('0x5a'),_0x3218cd),_0x1d8ced[_0x1ffc('0xb1')](_0x1ffc('0xc4'),_0x5e40ca),this[_0x1ffc('0xeb')][_0x1ffc('0x27')](_0x5c8541,{'userId':_0x31106f}),this[_0x1ffc('0xeb')][_0x1ffc('0x27')](_0x3218cd,{'userId':_0x31106f});}}[_0x1ffc('0x2e')](_0xbed57d){if(!_0xbed57d[_0x1ffc('0x4c')])return;const _0x3778c2=(_0xbed57d=this[_0x1ffc('0xe3')](_0xbed57d,this[_0x1ffc('0xbb')]))[_0x1ffc('0x5')]?_0xbed57d['oldRange'][_0x1ffc('0x92')]:null,_0x3fe3c8=_0xbed57d[_0x1ffc('0xa3')]?_0xbed57d[_0x1ffc('0xa3')][_0x1ffc('0x92')]:null;_0x3778c2&&this[_0x1ffc('0x2a')][_0x1ffc('0x88')](_0xbed57d[_0x1ffc('0xbc')]),_0x3fe3c8&&this[_0x1ffc('0x2a')][_0x1ffc('0x27')](_0xbed57d['name'],_0xbed57d[_0x1ffc('0xa3')][_0x1ffc('0x41')]());const _0x86395b=null===_0xbed57d['_authorId']?null:_0xbed57d['_authorId']||this[_0x1ffc('0xb6')][_0x1ffc('0xab')][_0x1ffc('0xda')](_0x1ffc('0xa0'))['me']['id'],_0x3a82ea=_0xbed57d[_0x1ffc('0xbc')];if(!this[_0x1ffc('0x46')]['has'](_0x3a82ea))return void this[_0x1ffc('0x46')]['set'](_0x3a82ea,{'range':_0xbed57d['oldRange'],'userId':_0x86395b});const _0x514d70=this[_0x1ffc('0x46')][_0x1ffc('0xda')](_0x3a82ea),_0x2e7047=_0x514d70[_0x1ffc('0xc9')],_0x6df361=_0xbed57d[_0x1ffc('0xa3')];null==_0x2e7047&&null==_0x6df361||_0x2e7047&&_0x6df361&&_0x2e7047[_0x1ffc('0x9f')](_0x6df361)?this['_touchedMarkers']['delete'](_0xbed57d['name']):_0x514d70[_0x1ffc('0x9')]=_0x86395b;}}function J(_0x3d701b){const _0x13e7da=new _0xfd6a74();_0x13e7da[_0x1ffc('0x8d')]=_0x3d701b['rootName'];for(const _0x32b2ad of _0x3d701b[_0x1ffc('0x59')]()){const _0x2e458c=_0x32b2ad[_0x1ffc('0xca')](!0x0);_0x13e7da['_appendChild'](_0x2e458c);}return _0x13e7da;}function j(_0x37dcb1,_0x30152c,_0x1e0d99){const _0x560ca7='elementEnd'==_0x37dcb1['type']?_0x1e0d99[_0x1ffc('0xe7')](_0x37dcb1[_0x1ffc('0xe5')],_0x1ffc('0xbd')):_0x1e0d99['createPositionBefore'](_0x37dcb1[_0x1ffc('0xe5')]);return _0x560ca7[_0x1ffc('0x92')]=_0x30152c,_0x560ca7;}function B(_0x188fd9,_0x55543a,_0x7c2cf8){const _0x3d79ee=_0x1ffc('0x56')==_0x188fd9['type']?_0x7c2cf8[_0x1ffc('0xe7')](_0x188fd9[_0x1ffc('0xe5')],0x0):_0x7c2cf8[_0x1ffc('0xdf')](_0x188fd9['item']);return _0x3d79ee['root']=_0x55543a,_0x3d79ee;}