@ckeditor/ckeditor5-revision-history 39.0.2 → 40.0.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 (80) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +1 -1
  3. package/build/revision-history.js +1 -1
  4. package/ckeditor5-metadata.json +1 -1
  5. package/package.json +6 -6
  6. package/src/augmentation.d.ts +29 -29
  7. package/src/changeitem.d.ts +58 -58
  8. package/src/changeitem.js +1 -1
  9. package/src/editor/revisionviewereditor.d.ts +27 -27
  10. package/src/editor/revisionviewereditor.js +1 -1
  11. package/src/editor/revisionviewereditorui.d.ts +28 -28
  12. package/src/editor/revisionviewereditorui.js +1 -1
  13. package/src/editor/revisionviewereditoruiview.d.ts +43 -43
  14. package/src/editor/revisionviewereditoruiview.js +1 -1
  15. package/src/index.d.ts +15 -15
  16. package/src/revision.d.ts +153 -153
  17. package/src/revision.js +1 -1
  18. package/src/revisiondiff.d.ts +24 -24
  19. package/src/revisiondiff.js +1 -1
  20. package/src/revisionhistory.d.ts +99 -99
  21. package/src/revisionhistory.js +1 -1
  22. package/src/revisionhistoryadapter.d.ts +64 -64
  23. package/src/revisionhistoryconfig.d.ts +60 -60
  24. package/src/revisionsrepository.d.ts +52 -52
  25. package/src/revisionsrepository.js +1 -1
  26. package/src/revisiontracker.d.ts +81 -81
  27. package/src/revisiontracker.js +1 -1
  28. package/src/revisionviewer.d.ts +25 -25
  29. package/src/revisionviewer.js +1 -1
  30. package/src/ui/revision/createrevisionactionsdropdown.d.ts +10 -10
  31. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  32. package/src/ui/revision/revisionauthorview.d.ts +5 -5
  33. package/src/ui/revision/revisionauthorview.js +1 -1
  34. package/src/ui/revision/revisionnameview.d.ts +5 -5
  35. package/src/ui/revision/revisionnameview.js +1 -1
  36. package/src/ui/revision/revisionview.d.ts +95 -95
  37. package/src/ui/revision/revisionview.js +1 -1
  38. package/src/ui/revision/subrevisioncollapserview.d.ts +21 -21
  39. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  40. package/src/ui/revision/subrevisionview.d.ts +34 -34
  41. package/src/ui/revision/subrevisionview.js +1 -1
  42. package/src/ui/revision/utils.d.ts +5 -5
  43. package/src/ui/revision/utils.js +1 -1
  44. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +81 -81
  45. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  46. package/src/ui/revisionhistory/revisionhistoryui.d.ts +26 -26
  47. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  48. package/src/ui/revisionssidebar/revisionssidebar.d.ts +44 -44
  49. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  50. package/src/ui/revisionssidebar/revisionssidebarheaderview.d.ts +5 -5
  51. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  52. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +29 -29
  53. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  54. package/src/ui/revisionssidebar/revisionssidebarview.d.ts +44 -44
  55. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  56. package/src/ui/revisionssidebar/utils.d.ts +9 -9
  57. package/src/ui/revisionssidebar/utils.js +1 -1
  58. package/src/ui/revisionviewer/changedetailsview.d.ts +22 -22
  59. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  60. package/src/ui/revisionviewer/changesnavigationview.d.ts +40 -40
  61. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  62. package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +26 -26
  63. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  64. package/src/ui/revisionviewer/revisionviewerui.d.ts +28 -28
  65. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  66. package/src/utils/common-translations.d.ts +11 -11
  67. package/src/utils/common-translations.js +1 -1
  68. package/theme/changesnavigation.css +9 -0
  69. package/theme/revision/revision.css +9 -0
  70. package/theme/revision/revisionactions.css +9 -0
  71. package/theme/revision/revisionauthor.css +9 -0
  72. package/theme/revision/revisionname.css +9 -0
  73. package/theme/revision/subrevision.css +9 -0
  74. package/theme/revision/subrevisioncollapser.css +9 -0
  75. package/theme/revisionhistorysaverevisionform.css +5 -1
  76. package/theme/revisionssidebar/revisionssidebar.css +9 -0
  77. package/theme/revisionssidebar/revisionssidebarheader.css +9 -0
  78. package/theme/revisionssidebar/revisionssidebartimeperiod.css +9 -0
  79. package/theme/revisionviewer.css +9 -0
  80. package/theme/revisionviewerloadingoverlay.css +9 -0
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4dbd=['baseVersion','max','setSource','_execute','revisionHistory.resumeUnsavedRevision','finally','history','insertion','reinsert','path','buildRevisionData','_setConversion','parse','_savedMetaData','userId','_makeIdsRoot','$graveyard','stickiness','source','revision','_loadState','_source','type','stringify','elementEnd','createPositionFromPath','marker','attributesAfter','_isInit','_applyOperations','processor','_handleRootOperation','editor','dataToMarker','roots','_getState','elementStart','_revisionId','loadState','name','getData','size','_getVidAttributeName','has','_createFromRanges','data','_diffRootsAttributes','_touchedRoots','delete','initial','newValue','shift','define','toModel','_cloneOperation','_getPreviousFrom','previousPosition','_transformMarkers','plugins','_bufferUpdate','_operations','Initial\x20revision','locale','parent','Empty\x20document','children','getAttributes','revision:','_initialRevisionId','data-revision-','_handleInsertOperation','fromEntries','documentFragment','_insertChild','_handleRootAttributeOperation','_copyMarkers','_idsRoots','isAdd','_isAttached','view','item','_generateTape','_pendingAction','clear','_bufferedUpdates','tableCell','fromVersion','update','getChild','key','revision-start','collaboration.channelId','map','diffData','resolve','PENDING_ACTION_REVISION_HISTORY','includes','getRevisionDocumentData','getRoot','insert','_calculateMetaData','insertionPosition','_startingRevisionId','position','find','_isPendingUpdate','slice','init','NEGATIVE_INFINITY','_handleMarkerOperation','get','attributes','push','_touchedMarkers','add','start','_makeRevision','for','getRevisionRootsAttributes','clone','_reset','changeRootAttribute','_prepareViewToSave','_removePendingAction','offset','_makeModelFromViewString','getIndex','getUser','rootsAttributes','editor-initial-data-replaced-with-revision-data','attributesBefore','_baseRoots','_processRootBeforeSave','some','creator','deletions','vid','_lastTo','filter','getCurrentRevisionId','repository','deletion','text','useFillerType','string','getLatestVersion','adapter','_handleSplitOperation','_saveMetaData','_createCurrentRevision','toVersion','getMovedRangeStart','getAncestors','PendingActions','setRevisionData','_fixPosition','createPositionBefore','createRevision','isEnabled','markerToData','_baseRootsAttributes','getRevision','merge','remove','Users','range','model','_addPendingAction','_getFromVersion','getRootNames','removeRootAttribute','_update','graveyardPosition','howMany','reverse','keepParagraph','markers','targetPosition','createRange','addRootAttribute','ready','requires','createdAt','_loadRevisionData','createPositionAt','sendBufferedUpdates','isAttached','getWalker','_removeRevisionMarkers','trim','toView','config','forEach','document','authors','_findInsertionIndex','end','_markChanges','getChildren','RevisionsRepository','default','sort','_removeMetaData','_lastFrom','conversion','vid_start','_touched','dataDowncast','currentRevision','_setAttribute','isEqual','createRangeIn','_diffRoots','_baseIdsRoots','newRange','_clone','_getViewJson','_fixOperation','initialData','RealTimeCollaborationClient','hasContent','getTime','set','version','childCount','length','then','values','root','_createInitialRevision','getAttribute','_markers','from','_fixRange','authorsIds','sourcePosition','revision-end','addRevisionData','isReady','marked','startsWith','_handleMoveOperation','_handleMergeOperation','oldRange','addRoot','editing','bind','$text','_revisionDataBuilder','split','_replaceEditorDataWithRevisionData','getTransformedByOperation','getRevisions','_authorId','move','detachRoot','toData','offsetSize','keys','getOperations','_startingVersion','saveRevision','paragraph','insertions','_continueCurrentRevision','RevisionTracker','getNodeByPath','affectsData','vid_end','_loadedStateData','getRange','element','rootName','_handleOperation','attachChange'];(function(_0x191542,_0x4dbda2){const _0x5401d9=function(_0x5f19ba){while(--_0x5f19ba){_0x191542['push'](_0x191542['shift']());}};_0x5401d9(++_0x4dbda2);}(_0x4dbd,0xcd));const _0x5401=function(_0x191542,_0x4dbda2){_0x191542=_0x191542-0x0;let _0x5401d9=_0x4dbd[_0x191542];return _0x5401d9;};import{Users as _0x4872b2}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0xc036c5,PendingActions as _0x463fbb}from'ckeditor5/src/core';import{logWarning as _0x58718c,uid as _0x46d99f}from'ckeditor5/src/utils';import{Position as _0xacbff5,Range as _0x562ab5,Element as _0x325d60,DocumentFragment as _0x246001,ViewText as _0x57c840,ViewElement as _0x32e0f7,ViewContainerElement as _0x4a28d6,ViewAttributeElement as _0x5b7790,ViewEmptyElement as _0x287557,ViewRawElement as _0x222ab3,ViewUIElement as _0x4c419d,ViewDocumentFragment as _0x2a6fb0}from'ckeditor5/src/engine';import _0x557067 from'./revisionsrepository';import{getTranslation as _0x56ecf0}from'./utils/common-translations';import{cloneDeep as _0x97e44a,isEqual as _0x287f66}from'lodash-es';const B={'c':_0x4a28d6,'a':_0x5b7790,'e':_0x287557,'r':_0x222ab3,'u':_0x4c419d};export default class l extends _0xc036c5{static get['pluginName'](){return _0x5401('0x3c');}static get[_0x5401('0xfb')](){return[_0x4872b2,_0x557067,_0x463fbb];}constructor(_0x1953ab){super(_0x1953ab),this[_0x5401('0xd8')]=null,this[_0x5401('0x3')]=null,this['_revisionDataBuilder']=new H(this[_0x5401('0x66')]),this[_0x5401('0x8a')]=this[_0x5401('0x66')][_0x5401('0x105')]['get']('collaboration.channelId')||_0x5401('0x77'),this[_0x5401('0x9a')]=new Map(),this[_0x5401('0x40')]=null;const _0x251150=_0x46d99f();this[_0x5401('0x5b')]={'history':this['editor']['model'][_0x5401('0x107')][_0x5401('0x4c')],'getLatestVersion':()=>Promise[_0x5401('0xa4')](this[_0x5401('0x66')][_0x5401('0xec')][_0x5401('0x107')][_0x5401('0x12')]),'getCurrentRevisionId':()=>_0x251150},this['set'](_0x5401('0x21'),!0x1),this[_0x5401('0x11')](_0x5401('0xe4'),!0x0),this[_0x5401('0x11')](_0x5401('0xaf'),!0x1),this['editor'][_0x5401('0x105')][_0x5401('0x7a')](_0x5401('0x4a'),!0x0),this[_0x5401('0x66')][_0x5401('0x112')][_0x5401('0xbb')]('upcast')[_0x5401('0x67')]({'view':_0x5401('0x59')});}['init'](){this[_0x5401('0xd2')]=this['editor']['plugins']['get'](_0x5401('0x10d')),this[_0x5401('0x51')](),this[_0x5401('0x66')][_0x5401('0x73')]['on'](_0x5401('0xfa'),()=>{const _0x22ce99=this['repository'][_0x5401('0xe7')](0x0),_0x57a3e8=_0x22ce99&&null===_0x22ce99[_0x5401('0xcc')]?_0x22ce99:null;if(this[_0x5401('0x3b')]=!!_0x57a3e8&&this[_0x5401('0x66')][_0x5401('0x105')][_0x5401('0xb4')](_0x5401('0x4a')),this[_0x5401('0x66')][_0x5401('0x80')]['has'](_0x5401('0xe'))){const _0x3643c9=this[_0x5401('0x5b')]['getCurrentRevisionId'](),_0x2e7db0=this[_0x5401('0xd2')][_0x5401('0xe7')](_0x3643c9);if(_0x2e7db0)this['_startingVersion']=_0x2e7db0[_0x5401('0x9c')],this[_0x5401('0x3b')]=!0x1;else{const _0x59228a=this[_0x5401('0x5b')][_0x5401('0x4c')][_0x5401('0x82')][_0x5401('0xae')](_0x43dad9=>!_0x43dad9[_0x5401('0x62')]),_0x36e923=_0x59228a?_0x59228a[_0x5401('0x46')]:this[_0x5401('0x5b')][_0x5401('0x4c')][_0x5401('0x12')];_0x22ce99?(_0x22ce99[_0x5401('0xdc')]<_0x36e923&&_0x22ce99[_0x5401('0xf1')]({'toVersion':_0x36e923}),this['_continueCurrentRevision']?(this[_0x5401('0x5b')][_0x5401('0xd1')]=()=>_0x57a3e8['id'],this[_0x5401('0x37')]=_0x57a3e8['fromVersion']):(this['_startingVersion']=_0x22ce99[_0x5401('0xdc')],this['_continueCurrentRevision']=!0x1)):(this[_0x5401('0x37')]=_0x36e923,this[_0x5401('0x3b')]=!0x1);}}else _0x57a3e8&&(this[_0x5401('0x66')][_0x5401('0xec')][_0x5401('0x107')][_0x5401('0x4c')][_0x5401('0x12')]=Math[_0x5401('0x47')](_0x57a3e8[_0x5401('0xdc')],this[_0x5401('0x66')]['model'][_0x5401('0x107')][_0x5401('0x4c')][_0x5401('0x12')]),_0x57a3e8[_0x5401('0x9c')]===_0x57a3e8['toVersion']?(0x0!==_0x57a3e8[_0x5401('0x9c')]&&(this[_0x5401('0x5b')][_0x5401('0xd1')]=()=>_0x57a3e8['id']),this['_continueCurrentRevision']=!0x1):this[_0x5401('0x3b')]&&(this[_0x5401('0x5b')][_0x5401('0xd1')]=()=>_0x57a3e8['id'],this[_0x5401('0x37')]=_0x57a3e8[_0x5401('0x9c')])),this[_0x5401('0x3b')]||(this[_0x5401('0x37')]=this['editor'][_0x5401('0xec')][_0x5401('0x107')][_0x5401('0x12')]);this[_0x5401('0x2b')][_0x5401('0xb1')](this[_0x5401('0x5b')][_0x5401('0x4c')]),this[_0x5401('0x18')](this['_startingVersion']),this[_0x5401('0xdb')](this[_0x5401('0x37')]),this[_0x5401('0xd8')]&&this['sendBufferedUpdates']();}),this[_0x5401('0x29')](_0x5401('0x21'))['to'](this,'_isPendingUpdate',_0x3370f8=>!_0x3370f8);}async['afterInit'](){if(this[_0x5401('0xd2')][_0x5401('0x14')]>0x0){const _0x508d88=this['repository'][_0x5401('0xe7')](0x0),_0xfb5ea4=await this['getRevisionDocumentData'](_0x508d88),_0x2a6ee8=await this[_0x5401('0xbc')](_0x508d88);this[_0x5401('0x2d')](_0xfb5ea4,_0x2a6ee8);}}[_0x5401('0x48')](_0x2bd3e3){this[_0x5401('0x5b')]=_0x2bd3e3;}async[_0x5401('0x9d')](){const _0x598ad2=await this['_source'][_0x5401('0xd7')]();if(_0x598ad2>this[_0x5401('0x3')][_0x5401('0xdc')]){await this[_0x5401('0x5a')]();const _0x68c28e=this['buildRevisionData']({'revision':this[_0x5401('0x3')],'to':_0x598ad2});_0x68c28e['authors']=_0x68c28e[_0x5401('0x1d')][_0x5401('0xa2')](_0x16afd1=>this[_0x5401('0x66')][_0x5401('0x80')][_0x5401('0xb4')](_0x5401('0xea'))['getUser'](_0x16afd1)),this['currentRevision'][_0x5401('0xf1')](_0x68c28e);}}async[_0x5401('0x5a')](){this[_0x5401('0x3b')]&&!this[_0x5401('0x40')]&&(await this[_0x5401('0xfd')](this['currentRevision']),this[_0x5401('0x2b')][_0x5401('0x6c')](this[_0x5401('0x3')]),this[_0x5401('0x40')]={'fromVersion':this[_0x5401('0x3')][_0x5401('0x9c')],'authors':this[_0x5401('0x3')][_0x5401('0x108')][_0x5401('0xb0')]()});}async[_0x5401('0x38')](_0xfcd19e={},_0x188b95=null){const _0x284364=[];await this['_loadState'](),this[_0x5401('0x3b')]=!0x1,_0x188b95>this[_0x5401('0x3')]['toVersion']&&(_0x188b95=null),null===_0x188b95&&(_0x188b95=await this['_source'][_0x5401('0xd7')]());const _0x329eb3=this[_0x5401('0xee')](_0x188b95),_0x1f4875=this[_0x5401('0x50')]({'from':_0x329eb3,'to':_0x188b95});if(this[_0x5401('0x3')]['toVersion']<_0x188b95){const _0x4b1339=this[_0x5401('0x50')]({'revision':this[_0x5401('0x3')],'from':_0x188b95,'to':_0x188b95});_0x4b1339[_0x5401('0x108')]=[],_0x4b1339[_0x5401('0x1d')]=[],_0x4b1339['id']=this[_0x5401('0x3')]['id'],this[_0x5401('0x3')][_0x5401('0xf1')](_0x4b1339,!0x0),delete _0x4b1339[_0x5401('0x108')],_0x284364[_0x5401('0xb6')](_0x4b1339);}_0xfcd19e['creatorId']=this[_0x5401('0x66')][_0x5401('0x80')]['get']('Users')['me']['id'],_0xfcd19e['name']=_0xfcd19e[_0x5401('0x6d')]||null,_0xfcd19e['id']=_0xfcd19e['id']||_0x46d99f(),_0xfcd19e={..._0xfcd19e,..._0x1f4875};const _0xf8daee=this[_0x5401('0x20')](_0xfcd19e);_0x284364[_0x5401('0xb6')](_0xfcd19e);const _0x3c8606=this['repository'][_0x5401('0xc4')](_0xf8daee);if(0x0!==_0x3c8606){const _0x579a18=this[_0x5401('0xd2')]['getRevision'](_0x3c8606-0x1);if(_0x579a18['fromVersion']!==_0x188b95){const _0x47b0e5=this[_0x5401('0x2b')][_0x5401('0x6e')](_0x188b95,_0x579a18[_0x5401('0xdc')]),_0x4cdc68={'id':_0x579a18['id'],'diffData':_0x47b0e5[_0x5401('0xa3')],'authorsIds':_0x47b0e5[_0x5401('0x1d')],'authors':_0x47b0e5[_0x5401('0x1d')][_0x5401('0xa2')](_0x4cb5e2=>this['editor'][_0x5401('0x80')][_0x5401('0xb4')]('Users')[_0x5401('0xc5')](_0x4cb5e2)),'fromVersion':_0x188b95};_0x579a18===this[_0x5401('0x3')]&&(_0x4cdc68[_0x5401('0xfc')]=new Date(_0xfcd19e['createdAt'][_0x5401('0x10')]()+0xa)),_0x579a18[_0x5401('0xf1')](_0x4cdc68,!0x0),delete _0x4cdc68[_0x5401('0x108')],_0x284364[_0x5401('0xb6')](_0x4cdc68);}}if(this[_0x5401('0xd8')]){for(const _0x21d1f7 of _0x284364)this[_0x5401('0x81')](_0x21d1f7['id'],_0x21d1f7,!0x0);this[_0x5401('0xff')]();}return _0xf8daee;}[_0x5401('0x20')](_0x18bd6d){const _0x312de6=this[_0x5401('0xd2')][_0x5401('0xe3')](_0x18bd6d);return this[_0x5401('0xd8')]&&_0x312de6['on'](_0x5401('0xf1'),(_0x24aa90,_0x2918da,_0x3da5a5)=>{_0x3da5a5||(this[_0x5401('0x81')](_0x2918da['id'],_0x2918da,!0x0),this[_0x5401('0xff')]());}),this[_0x5401('0xd2')]['addRevision'](_0x312de6,this[_0x5401('0x109')](_0x312de6)),_0x312de6;}async[_0x5401('0xa7')](_0x243e0d){await this['_loadRevisionData'](_0x243e0d);const _0x151d92={};for(const _0x4d2275 in _0x243e0d[_0x5401('0xa3')]){if(_0x243e0d[_0x5401('0xa3')][_0x4d2275][_0x5401('0x45')]&&!_0x243e0d[_0x5401('0xa3')][_0x4d2275][_0x5401('0x45')][_0x5401('0x100')])continue;const _0x1b6171=this[_0x5401('0x102')](JSON[_0x5401('0x52')](_0x243e0d[_0x5401('0xa3')][_0x4d2275][_0x5401('0x3a')])),_0x26d360=this['editor'][_0x5401('0x28')]['view']['document'],_0x255efa=new _0x2a6fb0(_0x26d360,_0x1b6171[_0x5401('0xa2')](_0x3b03cc=>J(_0x3b03cc,this[_0x5401('0x66')])));this[_0x5401('0x66')][_0x5401('0x73')][_0x5401('0x64')]['useFillerType'](_0x5401('0x22')),_0x151d92[_0x4d2275]=this['editor'][_0x5401('0x73')][_0x5401('0x64')][_0x5401('0x33')](_0x255efa),this['editor'][_0x5401('0x73')]['processor'][_0x5401('0xd5')](_0x5401('0x10e'));}return _0x151d92;}async['getRevisionRootsAttributes'](_0x3fdd76){await this['_loadRevisionData'](_0x3fdd76);const _0x1c07f5={};for(const _0x573cf9 in _0x3fdd76[_0x5401('0xa3')])_0x3fdd76[_0x5401('0xa3')][_0x573cf9][_0x5401('0x45')]&&!_0x3fdd76[_0x5401('0xa3')][_0x573cf9]['attachChange'][_0x5401('0x100')]||(_0x1c07f5[_0x573cf9]=_0x3fdd76[_0x5401('0xa3')][_0x573cf9][_0x5401('0x61')]||{});return _0x1c07f5;}['sendBufferedUpdates'](){if(0x0===this[_0x5401('0x9a')][_0x5401('0x6f')])return;if(this[_0x5401('0xaf')])return;let _0x54a1e5=Array[_0x5401('0x1b')](this[_0x5401('0x9a')]['values']());this[_0x5401('0x9a')]['clear']();for(let _0x1e535d=0x0;_0x1e535d<_0x54a1e5[_0x5401('0x14')];_0x1e535d++){const _0x1f2686=_0x54a1e5[_0x1e535d];let _0x2f15bb=!0x1;for(const _0x457b7e of Object[_0x5401('0x35')](_0x1f2686))void 0x0===_0x1f2686[_0x457b7e]?delete _0x1f2686[_0x457b7e]:'id'!==_0x457b7e&&(_0x2f15bb=!0x0);_0x2f15bb||(_0x54a1e5[_0x1e535d]=null);}if(_0x54a1e5=_0x54a1e5[_0x5401('0xd0')](_0x49325d=>null!==_0x49325d),!_0x54a1e5['length'])return;for(let _0x198fae=0x0;_0x198fae<_0x54a1e5[_0x5401('0x14')];_0x198fae++){const _0x511460=_0x54a1e5[_0x198fae];void 0x0!==_0x511460['fromVersion']&&void 0x0===_0x511460['toVersion']&&(_0x511460[_0x5401('0xdc')]=this[_0x5401('0xd2')][_0x5401('0xe7')](_0x511460['id'])[_0x5401('0xdc')]),void 0x0!==_0x511460[_0x5401('0xdc')]&&void 0x0===_0x511460[_0x5401('0x9c')]&&(_0x511460['fromVersion']=this[_0x5401('0xd2')]['getRevision'](_0x511460['id'])['fromVersion']);}const _0x5b709a=this[_0x5401('0x66')]['config']['get'](_0x5401('0xa1'));this[_0x5401('0xaf')]=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x54a1e5,_0x5b709a)[_0x5401('0x4b')](()=>{this['_isPendingUpdate']=!0x1;})[_0x5401('0x15')](_0x59b18d=>{if(_0x59b18d)for(const _0x3adf4f of _0x59b18d)this['setRevisionData']({'id':_0x3adf4f['id'],'createdAt':_0x3adf4f[_0x5401('0xfc')]});this[_0x5401('0xc1')](),this[_0x5401('0xff')]();});}['_replaceEditorDataWithRevisionData'](_0x294167,_0x1b42e8){let _0xada0c4=this[_0x5401('0x66')][_0x5401('0x105')][_0x5401('0xb4')](_0x5401('0xd')),_0xabad70=this[_0x5401('0x66')][_0x5401('0x105')][_0x5401('0xb4')](_0x5401('0xc6'));if(void 0x0===_0xada0c4){_0xada0c4={};for(const _0x2fd4df of this[_0x5401('0x66')]['model'][_0x5401('0x107')]['getRootNames']())_0xada0c4[_0x2fd4df]='';}if('string'==typeof _0xada0c4&&(_0xada0c4={'main':_0xada0c4}),void 0x0===_0xabad70){_0xabad70={};for(const _0x5dcfd6 of this[_0x5401('0x66')][_0x5401('0xec')][_0x5401('0x107')][_0x5401('0xef')]())_0xabad70[_0x5dcfd6]={};}let _0x4f6b1d=!0x1;const _0x37be8f=Object[_0x5401('0x35')](_0xada0c4),_0x3c4e3e=Object[_0x5401('0x35')](_0x294167);for(const _0x3f83f4 of _0x37be8f){if(_0xada0c4[_0x3f83f4]!==_0x294167[_0x3f83f4]&&''!==_0xada0c4[_0x3f83f4][_0x5401('0x103')]()){_0x4f6b1d=!0x0;break;}if(!_0x287f66(_0xabad70[_0x3f83f4],_0x1b42e8[_0x3f83f4])&&Object[_0x5401('0x35')](_0xabad70[_0x3f83f4])[_0x5401('0x14')]>0x0){_0x4f6b1d=!0x0;break;}}_0x4f6b1d||(_0x4f6b1d=_0x3c4e3e[_0x5401('0xcb')](_0xb39ad3=>!this[_0x5401('0x66')]['model'][_0x5401('0x107')][_0x5401('0xa8')](_0xb39ad3))),_0x4f6b1d&&_0x58718c(_0x5401('0xc7'),{'editorData':_0xada0c4,'editorRootsAttributes':_0xabad70,'revisionData':_0x294167,'revisionRootsAttributes':_0x1b42e8}),this[_0x5401('0x66')][_0x5401('0x105')][_0x5401('0x11')](_0x5401('0xd'),_0x294167),this['editor'][_0x5401('0x105')]['set'](_0x5401('0xc6'),_0x1b42e8);}[_0x5401('0xed')](){if(!this[_0x5401('0x98')]){const _0x14ef1b=this[_0x5401('0x66')]['plugins'][_0x5401('0xb4')](_0x5401('0xdf'));this['_pendingAction']=_0x14ef1b[_0x5401('0xb8')](_0x56ecf0(this[_0x5401('0x66')]['locale'],_0x5401('0xa5')));}}['_removePendingAction'](){this[_0x5401('0x98')]&&(this[_0x5401('0x66')][_0x5401('0x80')][_0x5401('0xb4')](_0x5401('0xdf'))[_0x5401('0xe9')](this['_pendingAction']),this[_0x5401('0x98')]=null);}[_0x5401('0x109')](_0x583391){const _0x233394=this['repository'][_0x5401('0x2f')]();_0x233394[_0x5401('0xf4')]();let _0x453f2f=0x0;for(;_0x453f2f<_0x233394[_0x5401('0x14')];){const _0xd152e9=_0x233394[_0x453f2f];if(_0xd152e9===this['currentRevision']){_0x453f2f++;continue;}if(_0xd152e9['id']===this[_0x5401('0x8a')])break;const _0x130423=_0x583391[_0x5401('0xdc')]-_0xd152e9[_0x5401('0xdc')]||_0x583391['fromVersion']-_0xd152e9[_0x5401('0x9c')];if(_0x130423>0x0)break;if(_0x130423<0x0)_0x453f2f++;else{if(!_0x583391['creator']&&_0xd152e9[_0x5401('0xcc')])break;if(_0xd152e9['creator']||!_0x583391[_0x5401('0xcc')]){if(_0x583391[_0x5401('0xfc')]>_0xd152e9[_0x5401('0xfc')])break;_0x453f2f++;}else _0x453f2f++;}}return _0x453f2f;}[_0x5401('0xe0')](_0x3e5a18){const _0x241c02=this['repository'][_0x5401('0xe7')](_0x3e5a18['id']);if(_0x3e5a18['createdAt']&&(_0x3e5a18[_0x5401('0xfc')]=new Date(_0x3e5a18[_0x5401('0xfc')])),_0x3e5a18[_0x5401('0x1d')]){const _0x19c074=this[_0x5401('0x66')][_0x5401('0x80')]['get'](_0x5401('0xea'));_0x3e5a18[_0x5401('0x108')]=_0x3e5a18[_0x5401('0x1d')][_0x5401('0xa2')](_0x159128=>_0x19c074[_0x5401('0xc5')](_0x159128));}_0x241c02[_0x5401('0xf1')](_0x3e5a18,!0x0);}[_0x5401('0x50')]({revision:_0xe414c0=null,from:_0x1f6a52=null,to:_0x29b04f=null}){_0x1f6a52=null!==_0x1f6a52?_0x1f6a52:_0xe414c0[_0x5401('0x9c')],_0x29b04f=null!==_0x29b04f?_0x29b04f:_0xe414c0[_0x5401('0xdc')];const _0x4c6c5f=this[_0x5401('0x2b')][_0x5401('0x6e')](_0x1f6a52,_0x29b04f),_0x5b971b={'diffData':_0x4c6c5f['diffData'],'authorsIds':_0x4c6c5f[_0x5401('0x1d')],'fromVersion':_0x1f6a52,'toVersion':_0x29b04f};if(!_0xe414c0||_0x29b04f!==_0xe414c0['toVersion']){const _0x334cf7=_0x29b04f-0x1,_0xe9cbcf=this['_source'][_0x5401('0x4c')]['getOperation'](_0x334cf7);_0x5b971b[_0x5401('0xfc')]=_0xe9cbcf&&_0xe9cbcf[_0x5401('0xfc')]||new Date();}if(this[_0x5401('0x40')]&&_0x1f6a52===this[_0x5401('0x40')][_0x5401('0x9c')])for(const _0x2f4cf4 of this[_0x5401('0x40')][_0x5401('0x108')])_0x5b971b[_0x5401('0x1d')][_0x5401('0xa6')](_0x2f4cf4['id'])||_0x5b971b[_0x5401('0x1d')][_0x5401('0xb6')](_0x2f4cf4['id']);return _0x5b971b;}['_loadRevisionData'](_0x5c5f1c){if(!_0x5c5f1c||_0x5c5f1c[_0x5401('0xa3')])return Promise[_0x5401('0xa4')]();{const _0xc1d583=this['editor'][_0x5401('0x105')][_0x5401('0xb4')](_0x5401('0xa1'));return this[_0x5401('0xd8')][_0x5401('0xe7')]({'channelId':_0xc1d583,'revisionId':_0x5c5f1c['id']})[_0x5401('0x15')](_0x32477d=>{_0x5c5f1c['diffData']=_0x32477d[_0x5401('0xa3')];});}}[_0x5401('0x81')](_0x455f82,_0x5ea1a7,_0x26fdc6){if(this[_0x5401('0x9a')][_0x5401('0x71')](_0x455f82)){const _0x4f4333=this[_0x5401('0x9a')][_0x5401('0xb4')](_0x455f82);_0x5ea1a7=_0x26fdc6?{..._0x4f4333,..._0x5ea1a7}:{..._0x5ea1a7,..._0x4f4333};}this['_bufferedUpdates'][_0x5401('0x11')](_0x455f82,_0x5ea1a7);}[_0x5401('0xee')](_0x346724){const _0x4edaa3=this['repository'][_0x5401('0x2f')]();_0x4edaa3[_0x5401('0xf4')](),_0x4edaa3[_0x5401('0x79')]();const _0x1cfd61=_0x4edaa3[_0x5401('0xae')](_0x1fc311=>_0x1fc311['toVersion']<=_0x346724)[_0x5401('0xdc')];return _0x1cfd61<this[_0x5401('0x37')]?this[_0x5401('0x37')]:_0x1cfd61;}[_0x5401('0x18')](_0x4474a5){const _0x18bc0d=this[_0x5401('0xd2')]['getRevision'](this[_0x5401('0xd2')][_0x5401('0x14')]-0x1);if(_0x18bc0d)this[_0x5401('0x8a')]=_0x18bc0d['id'];else{const _0x1f6897=!this['editor'][_0x5401('0xec')]['document'][_0x5401('0x68')]['find'](_0xfbd10d=>this[_0x5401('0x66')]['model'][_0x5401('0xf')](_0xfbd10d)),_0x4015b3=this[_0x5401('0x66')][_0x5401('0x80')][_0x5401('0xb4')](_0x5401('0xea'))['me']['id'],_0x516b9a=_0x56ecf0(this[_0x5401('0x66')][_0x5401('0x84')],_0x1f6897?_0x5401('0x86'):_0x5401('0x83'));this[_0x5401('0xba')]({'from':_0x4474a5,'to':_0x4474a5,'id':this[_0x5401('0x8a')],'name':_0x516b9a,'creatorId':_0x4015b3});}}[_0x5401('0xdb')](_0x31dcea){const _0x161b58=this['_source'][_0x5401('0xd1')]();this[_0x5401('0x3')]=this[_0x5401('0xd2')][_0x5401('0xe7')](_0x161b58),this[_0x5401('0x3')]||(this[_0x5401('0x3')]=this[_0x5401('0xba')]({'from':_0x31dcea,'to':_0x31dcea,'id':_0x161b58,'name':'','creatorId':null}));}[_0x5401('0xba')]({name:_0x22ac9f,from:_0xc8707b,to:_0x26ec4c,creatorId:_0x19c0b0,id:_0x2fa13d}){const _0x4ae107=this['buildRevisionData']({'from':_0xc8707b,'to':_0x26ec4c});_0x4ae107['name']=_0x22ac9f,_0x4ae107['creatorId']=_0x19c0b0,_0x4ae107['id']=_0x2fa13d;const _0x20f7a9=this[_0x5401('0x20')](_0x4ae107);return this[_0x5401('0xd8')]&&this[_0x5401('0x81')](_0x4ae107['id'],_0x4ae107,!0x0),_0x20f7a9;}['_setConversion'](){this[_0x5401('0x66')][_0x5401('0x112')][_0x5401('0xbb')](_0x5401('0x2'))[_0x5401('0xe5')]({'model':'revision'});}[_0x5401('0x102')](_0x31c1c8){return(_0x31c1c8=_0x31c1c8[_0x5401('0xd0')](_0x325f1c=>!_0x325f1c['name']||_0x5401('0xa0')!==_0x325f1c[_0x5401('0x6d')]&&_0x5401('0x1f')!==_0x325f1c[_0x5401('0x6d')]))[_0x5401('0x106')](_0x33795c=>{_0x5401('0xd6')!=typeof _0x33795c&&(_0x33795c[_0x5401('0x87')]=this[_0x5401('0x102')](_0x33795c[_0x5401('0x87')]),_0x33795c[_0x5401('0xb5')]=_0x33795c[_0x5401('0xb5')][_0x5401('0xd0')](_0xc121ce=>!_0xc121ce[0x0][_0x5401('0x23')](_0x5401('0x8b'))));}),_0x31c1c8;}}function J(_0x56e50f,_0x1fa910){const _0x63b9d=_0x1fa910[_0x5401('0x28')][_0x5401('0x95')][_0x5401('0x107')];if(_0x5401('0xd6')==typeof _0x56e50f)return new _0x57c840(_0x63b9d,_0x56e50f);{const _0x1a338b=_0x56e50f['children']['map'](_0x518f5a=>J(_0x518f5a,_0x1fa910));return new(B[_0x56e50f[(_0x5401('0x5c'))]]||_0x32e0f7)(_0x63b9d,_0x56e50f['name'],_0x56e50f[_0x5401('0xb5')],_0x1a338b);}}class H{constructor(_0x5c0adc){this[_0x5401('0x66')]=_0x5c0adc,this[_0x5401('0x53')]=new Map(),this[_0x5401('0x111')]=-0x1,this[_0x5401('0xcf')]=-0x1,this[_0x5401('0x1a')]=new Map(),this['_diffRoots']=new Map(),this[_0x5401('0x74')]=new Map(),this[_0x5401('0xc9')]=new Map(),this[_0x5401('0xe6')]=new Map(),this[_0x5401('0x92')]=new Map(),this['_baseIdsRoots']=new Map(),this[_0x5401('0x1')]=new Map(),this[_0x5401('0xb7')]=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}['init'](_0x69f144){this[_0x5401('0x58')]=_0x69f144;const _0x2b0226=new Map(),_0xf6ea0a=new Map(),_0x9b67e7=this['editor'][_0x5401('0xec')]['document']['roots']['map'](_0x1d5e18=>_0x1d5e18[_0x5401('0x43')]);for(const _0x381000 of _0x9b67e7){const _0x32334f=this[_0x5401('0x66')][_0x5401('0xec')]['document'][_0x5401('0xa8')](_0x381000),_0x433657=q(_0x32334f);_0x2b0226[_0x5401('0x11')](_0x381000,_0x433657),_0xf6ea0a[_0x5401('0x11')](_0x381000,Object[_0x5401('0x8d')](_0x32334f[_0x5401('0x88')]()));}const _0x30386d=Array[_0x5401('0x1b')](this[_0x5401('0x66')][_0x5401('0xec')][_0x5401('0xf6')])['map'](_0xe4a0e6=>[_0xe4a0e6['name'],_0xe4a0e6[_0x5401('0x41')]()]),_0x24b110=this[_0x5401('0x58')][_0x5401('0x12')];this[_0x5401('0xda')](_0x24b110,_0x2b0226,_0x30386d,_0xf6ea0a),this[_0x5401('0xac')]=this['_revisionId'];const _0x177471=new Map(),_0x3a191f=new Map();for(const _0x5663d7 of _0x9b67e7){const _0x4b1870=G(_0x5663d7);_0x177471[_0x5401('0x11')](_0x5663d7,_0x4b1870),_0x3a191f[_0x5401('0x11')](_0x5663d7,{});}this[_0x5401('0xda')](Number[_0x5401('0xb2')],_0x177471,[],_0x3a191f);}[_0x5401('0x6e')](_0x59cb3b,_0xfc213c){if(this[_0x5401('0x111')]===_0x59cb3b&&this[_0x5401('0xcf')]<=_0xfc213c)this['_savedMetaData'][_0x5401('0x6f')]>0x1&&this[_0x5401('0x110')](this[_0x5401('0xcf')]),this[_0x5401('0x63')](this[_0x5401('0xcf')],_0xfc213c,!0x0);else{if(!this['_savedMetaData'][_0x5401('0x71')](_0x59cb3b)){const _0x3a5ef8=this[_0x5401('0x7d')](_0x59cb3b);this[_0x5401('0xaa')](_0x3a5ef8,_0x59cb3b,!0x1);}this[_0x5401('0xaa')](_0x59cb3b,_0xfc213c,!0x0);}return this['_lastFrom']=_0x59cb3b,this[_0x5401('0xcf')]=_0xfc213c,this['_getState']();}['loadState'](_0x43628e){this['_reset'](),this[_0x5401('0x111')]=_0x43628e[_0x5401('0x9c')],this[_0x5401('0xcf')]=_0x43628e['toVersion'];for(const _0x501295 in _0x43628e['diffData']){const _0x2e1423=_0x43628e[_0x5401('0xa3')][_0x501295][_0x5401('0x45')],_0x25864a=_0x97e44a(_0x43628e[_0x5401('0xa3')][_0x501295][_0x5401('0xc8')])||{},_0x270e17=this[_0x5401('0xc3')](_0x43628e['diffData'][_0x501295]['deletions']);_0x270e17['rootName']=_0x501295,_0x270e17[_0x5401('0x94')]=!_0x2e1423||!_0x2e1423[_0x5401('0x100')],_0x270e17['isAttached']=()=>_0x270e17['_isAttached'],this[_0x5401('0xc9')][_0x5401('0x11')](_0x501295,_0x270e17),this[_0x5401('0xe6')][_0x5401('0x11')](_0x501295,_0x25864a),_0x2e1423&&this[_0x5401('0x75')][_0x5401('0x11')](_0x501295,_0x2e1423);const _0x2b6984=this[_0x5401('0x55')](_0x270e17);this[_0x5401('0x8')][_0x5401('0x11')](_0x501295,_0x2b6984);for(const [_0x34cb31,_0x26392c]of _0x270e17[_0x5401('0xf6')]){if(!_0x34cb31[_0x5401('0x23')](_0x5401('0x89')))continue;const _0x33d4b1=_0x34cb31[_0x5401('0x2c')](':')[0x2];for(const _0x487b87 of _0x26392c[_0x5401('0x101')]({'singleCharacters':!0x0})){const _0x4255a3=this[_0x5401('0x70')](_0x487b87),_0x4ced97=_0x5401('0x5e')==_0x487b87[_0x5401('0x5c')]?_0x487b87[_0x5401('0x7e')][_0x5401('0x4f')][_0x5401('0xb0')](0x0,-0x1):_0x487b87[_0x5401('0x7e')]['path'],_0x2dceeb=_0x2b6984['getNodeByPath'](_0x4ced97)[_0x5401('0x19')](_0x4255a3);this[_0x5401('0x1')][_0x5401('0x11')](_0x2dceeb,{'userId':_0x33d4b1});}}}this[_0x5401('0xac')]=this['_revisionId'];const _0x4c1d6d=[...Array(this[_0x5401('0x6b')])['keys']()][_0x5401('0xb0')](0x1)[_0x5401('0xd0')](_0x337150=>!this['_touched'][_0x5401('0x71')](_0x337150));let _0x544828=0x0;const _0x400d07=new Map();for(const _0x12b513 in _0x43628e[_0x5401('0xa3')]){const _0x445bf8=_0x43628e[_0x5401('0xa3')][_0x12b513][_0x5401('0x45')],_0x41a823=_0x97e44a(_0x43628e[_0x5401('0xa3')][_0x12b513][_0x5401('0x61')])||{},_0x2c3aaf=this[_0x5401('0xc3')](_0x43628e['diffData'][_0x12b513][_0x5401('0x3a')]);_0x2c3aaf[_0x5401('0x43')]=_0x12b513,_0x2c3aaf[_0x5401('0x94')]=!_0x445bf8||_0x445bf8[_0x5401('0x100')],_0x2c3aaf[_0x5401('0x100')]=()=>_0x2c3aaf[_0x5401('0x94')],this[_0x5401('0x7')][_0x5401('0x11')](_0x12b513,_0x2c3aaf),this[_0x5401('0x74')][_0x5401('0x11')](_0x12b513,_0x41a823);const _0x1cf963=this[_0x5401('0x55')](_0x2c3aaf,Number['NEGATIVE_INFINITY']);this[_0x5401('0x92')]['set'](_0x12b513,_0x1cf963),_0x400d07['set'](_0x12b513,_0x2c3aaf['isAttached']()?_0x41a823:{});for(const [_0xbafbd0,_0xfdf5c4]of _0x2c3aaf[_0x5401('0xf6')]){if(!_0xbafbd0['startsWith']('revision:'))continue;const _0x1f6ce7=_0xbafbd0[_0x5401('0x2c')](':')[0x2];for(const _0x2e5ab3 of _0xfdf5c4[_0x5401('0x101')]({'singleCharacters':!0x0})){const _0x580998=this[_0x5401('0x70')](_0x2e5ab3),_0x296bfa=this[_0x5401('0x6b')]++,_0x1ac6fa=_0x5401('0x5e')==_0x2e5ab3[_0x5401('0x5c')]?_0x2e5ab3[_0x5401('0x7e')]['path'][_0x5401('0xb0')](0x0,-0x1):_0x2e5ab3[_0x5401('0x7e')][_0x5401('0x4f')];_0x1cf963[_0x5401('0x3d')](_0x1ac6fa)[_0x5401('0x4')](_0x580998,_0x296bfa),this[_0x5401('0x1')][_0x5401('0x11')](_0x296bfa,{'userId':_0x1f6ce7});}}for(const _0x47772b of this[_0x5401('0x66')][_0x5401('0xec')][_0x5401('0x6')](_0x2c3aaf)[_0x5401('0x101')]({'singleCharacters':!0x0})){const _0x4021b6=this[_0x5401('0x70')](_0x47772b),_0x37e65c=_0x5401('0x5e')==_0x47772b[_0x5401('0x5c')]?_0x47772b['previousPosition'][_0x5401('0x4f')][_0x5401('0xb0')](0x0,-0x1):_0x47772b['previousPosition'][_0x5401('0x4f')],_0x326aae=_0x1cf963[_0x5401('0x3d')](_0x37e65c);_0x326aae[_0x5401('0x19')](_0x4021b6)>0x0||_0x326aae[_0x5401('0x4')](_0x4021b6,_0x4c1d6d[_0x544828++]);}for(const [_0x3425b9,_0x1ae563]of _0x2c3aaf[_0x5401('0xf6')])_0x3425b9[_0x5401('0x23')](_0x5401('0x89'))||this[_0x5401('0x1a')][_0x5401('0x11')](_0x3425b9,_0x1ae563);}const _0x12b288=G(_0x5401('0x56'));this['_baseRoots']['set'](_0x5401('0x56'),_0x12b288),this[_0x5401('0x8')][_0x5401('0x11')]('$graveyard',this[_0x5401('0x55')](_0x12b288,0x1));const _0x34bb1f=G('$graveyard');this[_0x5401('0x7')][_0x5401('0x11')]('$graveyard',_0x34bb1f),this['_idsRoots'][_0x5401('0x11')](_0x5401('0x56'),this[_0x5401('0x55')](_0x34bb1f,0x1));const _0x36f0b0=Array[_0x5401('0x1b')](this['_diffRoots'])[_0x5401('0xa2')](([_0x3a4784,_0x241b44])=>[_0x3a4784,q(_0x241b44)]);this[_0x5401('0xda')](this[_0x5401('0xcf')],_0x36f0b0,this[_0x5401('0x1a')],_0x400d07);}[_0x5401('0xc3')](_0x1e1714){const _0x43671a=JSON[_0x5401('0x52')](_0x1e1714),_0x50ae9b=this[_0x5401('0x66')][_0x5401('0x28')][_0x5401('0x95')][_0x5401('0x107')],_0x48ff3b=new _0x2a6fb0(_0x50ae9b,_0x43671a['map'](_0x3e8737=>J(_0x3e8737,this['editor'])));return this['editor'][_0x5401('0x73')][_0x5401('0x7b')](_0x48ff3b);}['_saveMetaData'](_0x207e27,_0x3c0b23,_0x3a4ab1,_0x19b770){const _0x547c73=new Map(_0x3c0b23),_0x3a06cf=new Map(_0x97e44a(_0x19b770)),_0x468df2=new Map();for(const [_0x18affa,_0x552768]of _0x3a4ab1)_0x468df2[_0x5401('0x11')](_0x18affa,{'start':_0x552768[_0x5401('0xb9')][_0x5401('0xbd')](),'end':_0x552768[_0x5401('0x10a')]['clone'](),'rootName':_0x552768[_0x5401('0x17')][_0x5401('0x43')]});this[_0x5401('0x53')][_0x5401('0x11')](_0x207e27,{'roots':_0x547c73,'markers':_0x468df2,'rootsAttributes':_0x3a06cf});}[_0x5401('0x110')](_0x524e88){this['_savedMetaData'][_0x5401('0x76')](_0x524e88);}['reInit'](){this[_0x5401('0xbe')](),this[_0x5401('0x111')]=-0x1,this['_lastTo']=-0x1,this['_savedMetaData'][_0x5401('0x99')](),this[_0x5401('0xb1')](this[_0x5401('0x58')]);}[_0x5401('0xbe')](){this[_0x5401('0x1')][_0x5401('0x99')](),this[_0x5401('0xb7')][_0x5401('0x99')](),this[_0x5401('0x75')][_0x5401('0x99')](),this['_diffRoots'][_0x5401('0x99')](),this[_0x5401('0x74')][_0x5401('0x99')](),this[_0x5401('0xc9')][_0x5401('0x99')](),this[_0x5401('0xe6')][_0x5401('0x99')](),this[_0x5401('0x92')][_0x5401('0x99')](),this[_0x5401('0x8')][_0x5401('0x99')](),this[_0x5401('0x1a')][_0x5401('0x99')](),this[_0x5401('0x6b')]=0x1,this[_0x5401('0xac')]=this[_0x5401('0x6b')];}[_0x5401('0x55')](_0x3a1aee,_0x531fb4=null){let _0x5798b9=null;_0x3a1aee['is'](_0x5401('0x8e'))||(_0x5798b9=new _0x325d60(_0x3a1aee[_0x5401('0x6d')],{'vid_start':null===_0x531fb4?this[_0x5401('0x6b')]++:_0x531fb4++}));const _0x1d7f96=[];for(const _0x2cf568 of _0x3a1aee['getChildren']())if(_0x2cf568['is']('element')){_0x1d7f96[_0x5401('0xb6')](this['_makeIdsRoot'](_0x2cf568,_0x531fb4));const _0x3e8102=_0x1d7f96[_0x1d7f96['length']-0x1];null!==_0x531fb4&&(_0x531fb4=_0x3e8102['is']('element',_0x5401('0x2a'))?_0x3e8102[_0x5401('0x19')]('vid')+0x1:_0x3e8102[_0x5401('0x19')](_0x5401('0x3f'))+0x1);}else for(let _0x4b9af6=0x0;_0x4b9af6<_0x2cf568[_0x5401('0x34')];_0x4b9af6++)_0x1d7f96[_0x5401('0xb6')](new _0x325d60(_0x5401('0x2a'),{'vid':null===_0x531fb4?this[_0x5401('0x6b')]++:_0x531fb4++}));if(_0x3a1aee['is'](_0x5401('0x8e'))){const _0x48611b=G(_0x3a1aee['rootName']);return _0x48611b[_0x5401('0x8f')](0x0,_0x1d7f96),_0x48611b;}return _0x5798b9[_0x5401('0x4')](_0x5401('0x3f'),null===_0x531fb4?this[_0x5401('0x6b')]++:_0x531fb4++),_0x5798b9[_0x5401('0x8f')](0x0,_0x1d7f96),_0x5798b9;}[_0x5401('0xaa')](_0xd2a9a0,_0x550f84,_0x5df06d){this[_0x5401('0xbe')]();const {roots:_0x3bb85a,markers:_0x33624d,rootsAttributes:_0x26d834}=this[_0x5401('0x53')][_0x5401('0xb4')](_0xd2a9a0);this['_baseRoots']=new Map(_0x3bb85a),this[_0x5401('0xe6')]=new Map(_0x97e44a(_0x26d834));for(const [_0x2039da,_0x568a90]of this['_baseRoots'])if('$graveyard'!==_0x2039da&&(this[_0x5401('0x7')][_0x5401('0x11')](_0x2039da,q(_0x568a90)),this[_0x5401('0x74')]=new Map(_0x97e44a(_0x26d834)),_0x5df06d)){const _0x4b1feb=this[_0x5401('0x6b')];this[_0x5401('0x92')]['set'](_0x2039da,this[_0x5401('0x55')](_0x568a90)),this[_0x5401('0x8')][_0x5401('0x11')](_0x2039da,this[_0x5401('0x55')](_0x568a90,_0x4b1feb));}this[_0x5401('0xac')]=this[_0x5401('0x6b')],this[_0x5401('0x7')][_0x5401('0x11')](_0x5401('0x56'),q(this[_0x5401('0xc9')][_0x5401('0xb4')](_0x5401('0x56')))),_0x5df06d&&this['_idsRoots'][_0x5401('0x11')](_0x5401('0x56'),this['_makeIdsRoot'](this[_0x5401('0xc9')]['get'](_0x5401('0x56'))));for(const [_0x2b94b8,_0x32a2bc]of _0x33624d){const _0x4ff889=this[_0x5401('0xc9')][_0x5401('0xb4')](_0x32a2bc['rootName']),_0x214df6=this[_0x5401('0x7')]['get'](_0x32a2bc['rootName']),_0x4b76ae=new _0x562ab5(this[_0x5401('0xe1')](_0x32a2bc[_0x5401('0xb9')],_0x4ff889),this[_0x5401('0xe1')](_0x32a2bc[_0x5401('0x10a')],_0x4ff889)),_0x5a9cd5=this[_0x5401('0x1c')](_0x4b76ae,_0x214df6);_0x4ff889[_0x5401('0xf6')]['set'](_0x2b94b8,_0x4b76ae),this[_0x5401('0x1a')][_0x5401('0x11')](_0x2b94b8,_0x5a9cd5);}this[_0x5401('0x63')](_0xd2a9a0,_0x550f84,_0x5df06d);}[_0x5401('0x63')](_0x54b59f,_0x58a92f,_0x4f9757){for(const _0x56a5f4 of this[_0x5401('0x58')][_0x5401('0x36')](_0x54b59f,_0x58a92f))this[_0x5401('0x44')](_0x56a5f4,_0x4f9757);for(const _0x512340 of this['_diffRoots'][_0x5401('0x16')]())_0x512340[_0x5401('0xf6')]['clear']();for(const [_0x160ca3,_0x1dc790]of this['_markers']){this[_0x5401('0x7')][_0x5401('0xb4')](_0x1dc790[_0x5401('0x17')]['rootName'])[_0x5401('0xf6')]['set'](_0x160ca3,_0x1dc790[_0x5401('0xbd')]());}const _0x4d4e49=new Map(),_0x582c65=new Map();for(const [_0x2da39c,_0x175e77]of this[_0x5401('0x7')])_0x4d4e49[_0x5401('0x11')](_0x2da39c,q(_0x175e77)),_0x582c65[_0x5401('0x11')](_0x2da39c,this[_0x5401('0x74')]['get'](_0x2da39c));this['_saveMetaData'](_0x58a92f,_0x4d4e49,this[_0x5401('0x1a')],_0x582c65);}[_0x5401('0x7d')](_0x5af46c){const _0x1e9d38=Array[_0x5401('0x1b')](this['_savedMetaData'][_0x5401('0x35')]());_0x1e9d38[_0x5401('0x10f')]((_0xfbaf,_0x134e4b)=>_0xfbaf-_0x134e4b),_0x1e9d38[_0x5401('0xf4')]();for(const _0x1f3125 of _0x1e9d38)if(_0x1f3125<_0x5af46c)return _0x1f3125;return Number[_0x5401('0xb2')];}[_0x5401('0x91')](_0x34df65,_0x2627af){const _0x417950=Array[_0x5401('0x1b')](_0x2627af['markers'])[_0x5401('0xa2')](([_0x36d137,_0x5b012d])=>[_0x36d137,this[_0x5401('0x1c')](_0x5b012d,_0x34df65)]);_0x34df65[_0x5401('0xf6')]=new Map(_0x417950);}['_transformMarkers'](_0x47f264){for(const _0x1484c5 of this['_markers']['values']()){const _0x5bdd9f=_0x1484c5[_0x5401('0x2e')](_0x47f264),_0x442210=_0x562ab5[_0x5401('0x72')](_0x5bdd9f);_0x1484c5[_0x5401('0xb9')]=_0x442210[_0x5401('0xb9')],_0x1484c5[_0x5401('0x10a')]=_0x442210[_0x5401('0x10a')];}}[_0x5401('0x44')](_0x3716b1,_0x16ddc2){if(_0x5401('0x27')==_0x3716b1[_0x5401('0x5c')]||_0x5401('0x32')==_0x3716b1['type'])return void this['_handleRootOperation'](_0x3716b1,_0x16ddc2);if(_0x5401('0xa9')==_0x3716b1['type']){const _0x6e9d4d=_0x3716b1['position']['root'][_0x5401('0x43')];this[_0x5401('0x7')][_0x5401('0x71')](_0x6e9d4d)||(this['_diffRoots'][_0x5401('0x11')](_0x6e9d4d,G(_0x6e9d4d,!0x0)),this[_0x5401('0x74')][_0x5401('0x11')](_0x6e9d4d,{}),_0x16ddc2&&this['_idsRoots'][_0x5401('0x11')](_0x6e9d4d,G(_0x6e9d4d,!0x0)));}else{if(_0x5401('0xf9')==_0x3716b1[_0x5401('0x5c')]||_0x5401('0xf0')==_0x3716b1[_0x5401('0x5c')]||_0x5401('0xbf')==_0x3716b1[_0x5401('0x5c')])return void this[_0x5401('0x90')](_0x3716b1);}const _0x3ee670=this['_cloneOperation'](_0x3716b1,this[_0x5401('0x7')]);if(_0x5401('0x60')!==_0x3716b1[_0x5401('0x5c')]&&(_0x3ee670['_execute'](),this[_0x5401('0x7f')](_0x3ee670)),_0x16ddc2)switch(_0x3ee670[_0x5401('0x5c')]){case'insert':this['_handleInsertOperation'](_0x3716b1);break;case _0x5401('0x31'):case _0x5401('0xe9'):case _0x5401('0x4e'):this[_0x5401('0x24')](_0x3716b1);break;case _0x5401('0xe8'):this['_handleMergeOperation'](_0x3716b1);break;case'split':this[_0x5401('0xd9')](_0x3716b1);break;case'marker':this['_handleMarkerOperation'](_0x3716b1);}}['_cloneOperation'](_0x3518fc,_0xbba068){const _0x61aef=_0x3518fc[_0x5401('0xbd')]();return _0x61aef[_0x5401('0x30')]=_0x3518fc[_0x5401('0x30')],this[_0x5401('0xc')](_0x61aef,_0xbba068),_0x61aef;}['_getBaseVids'](_0x449e4e){return _0x449e4e[_0x5401('0xa2')](_0x7201f=>{const _0x2c5cec=this[_0x5401('0x70')](_0x7201f);return Number(_0x7201f[_0x5401('0x96')][_0x5401('0x19')](_0x2c5cec));});}['_generateTape'](_0x3461a7,_0x49f412){if(_0x3461a7['is'](_0x5401('0x42'),'$text'))_0x49f412[_0x5401('0xb6')]({'item':_0x3461a7,'type':_0x5401('0xd4')});else{_0x3461a7['is'](_0x5401('0x42'))&&_0x49f412[_0x5401('0xb6')]({'item':_0x3461a7,'type':_0x5401('0x6a')});for(const _0x474b68 of _0x3461a7[_0x5401('0x10c')]())this[_0x5401('0x97')](_0x474b68,_0x49f412);_0x3461a7['is'](_0x5401('0x42'))&&_0x49f412[_0x5401('0xb6')]({'item':_0x3461a7,'type':_0x5401('0x5e')});}return _0x49f412;}[_0x5401('0x69')](){const _0x22f29a=new Map(this['_touched']),_0x1ccb55=new Map(_0x22f29a),_0x467dcb=new Map(),_0x2cb19e={'insertions':{},'deletions':{}},_0x435c97={'insertions':{},'deletions':{}},_0x3f0cc3=new Map(),_0x28d552=new Set([...this[_0x5401('0xc9')]['keys'](),...this[_0x5401('0x7')][_0x5401('0x35')]()]);_0x28d552[_0x5401('0x76')]('$graveyard');for(const _0x22cc52 of _0x28d552){const _0x21e449=this[_0x5401('0x7')][_0x5401('0xb4')](_0x22cc52)||G(_0x22cc52,!0x1),_0xeb431a=this[_0x5401('0xc9')][_0x5401('0xb4')](_0x22cc52)||G(_0x22cc52,!0x1);_0x21e449[_0x5401('0x100')]()||_0xeb431a[_0x5401('0x100')]()?(_0x2cb19e[_0x5401('0x3a')][_0x22cc52]=q(_0x21e449),_0x2cb19e[_0x5401('0xcd')][_0x22cc52]=q(_0xeb431a),this[_0x5401('0x91')](_0x2cb19e[_0x5401('0xcd')][_0x22cc52],_0xeb431a),this['_copyMarkers'](_0x2cb19e[_0x5401('0x3a')][_0x22cc52],_0x21e449),_0x435c97[_0x5401('0x3a')][_0x22cc52]=this[_0x5401('0x97')](this[_0x5401('0x92')][_0x5401('0xb4')](_0x22cc52),[]),_0x435c97[_0x5401('0xcd')][_0x22cc52]=this[_0x5401('0x97')](this['_baseIdsRoots']['get'](_0x22cc52)||G(_0x22cc52,!0x1),[])):_0x28d552[_0x5401('0x76')](_0x22cc52);}for(const _0x2d7c0b of _0x28d552){const _0x1a4925=_0x435c97[_0x5401('0x3a')][_0x2d7c0b];for(const _0x3017f6 of _0x1a4925){const _0x2f1684=this['_getVidAttributeName'](_0x3017f6),_0x2e02a2=_0x3017f6['item'][_0x5401('0x19')](_0x2f1684);_0x1ccb55[_0x5401('0x76')](_0x2e02a2),_0x2e02a2>=this[_0x5401('0xac')]&&_0x467dcb[_0x5401('0x11')](_0x2e02a2,_0x22f29a[_0x5401('0xb4')](_0x2e02a2));}}for(const _0x311c2 of _0x28d552){const _0x329eb9=_0x435c97[_0x5401('0x3a')][_0x311c2],_0x4b914e=this['_getBaseVids'](_0x435c97[_0x5401('0xcd')][_0x311c2]);let _0x1c95eb=0x0;for(const _0x29c5b2 of _0x329eb9){const _0xb79a69=this[_0x5401('0x70')](_0x29c5b2),_0x27d13e=_0x29c5b2[_0x5401('0x96')][_0x5401('0x19')](_0xb79a69);if(!_0x467dcb[_0x5401('0x71')](_0x27d13e)&&!_0x3f0cc3['has'](_0x27d13e)){if(_0x1ccb55[_0x5401('0x71')](_0x27d13e))_0x1c95eb++;else{if(_0x27d13e!=_0x4b914e[_0x1c95eb]){const _0xbf5bd1=_0x22f29a[_0x5401('0xb4')](_0x27d13e)||_0x22f29a['get'](_0x4b914e[_0x1c95eb]);for(;_0x27d13e!=_0x4b914e[_0x1c95eb];)_0x1ccb55['has'](_0x4b914e[_0x1c95eb])||(_0x3f0cc3['set'](_0x4b914e[_0x1c95eb],_0xbf5bd1),_0x22f29a['set'](_0x4b914e[_0x1c95eb],_0xbf5bd1)),_0x1c95eb++;}_0x1c95eb++;}}}}for(const _0x5a6b6f of _0x28d552){const _0x47cb8c=_0x435c97[_0x5401('0x3a')][_0x5a6b6f];for(const _0x52e5e2 of _0x47cb8c){const _0x579ac5=this[_0x5401('0x70')](_0x52e5e2),_0x2f0df6=_0x52e5e2[_0x5401('0x96')][_0x5401('0x19')](_0x579ac5);if(_0x3f0cc3['has'](_0x2f0df6)){const _0x5ab36d=_0x3f0cc3[_0x5401('0xb4')](_0x2f0df6);_0x1ccb55['has'](_0x2f0df6)||_0x1ccb55[_0x5401('0x11')](_0x2f0df6,{..._0x5ab36d}),_0x467dcb['set'](_0x2f0df6,{..._0x5ab36d});}}}for(const _0x2784d5 of _0x1ccb55['keys']())_0x2784d5>=this['_startingRevisionId']&&_0x1ccb55[_0x5401('0x76')](_0x2784d5);const _0x41f198=new Map();for(const _0x4e8fa5 of _0x28d552){let _0x5c3770=_0x435c97['insertions'][_0x4e8fa5];for(const _0x4a7a9a of _0x5c3770)if(_0x4a7a9a[_0x5401('0x96')]['is'](_0x5401('0x42'),_0x5401('0x9b'))){const _0x5ed126=this[_0x5401('0x70')](_0x4a7a9a),_0x1a761b=_0x4a7a9a[_0x5401('0x96')]['getAttribute'](_0x5ed126);if(_0x467dcb[_0x5401('0x71')](_0x1a761b)){const _0x188546=_0x4a7a9a[_0x5401('0x96')][_0x5401('0x85')][_0x5401('0x85')][_0x5401('0x19')]('vid_start'),_0x2b0bb8=_0x41f198[_0x5401('0xb4')](_0x188546)||new Set();_0x2b0bb8[_0x5401('0xb8')](_0x467dcb[_0x5401('0xb4')](_0x1a761b)[_0x5401('0x54')]),_0x41f198[_0x5401('0x11')](_0x188546,_0x2b0bb8);}}_0x5c3770=_0x435c97[_0x5401('0xcd')][_0x4e8fa5];for(const _0x25eac8 of _0x5c3770)if(_0x25eac8[_0x5401('0x96')]['is'](_0x5401('0x42'),_0x5401('0x9b'))){const _0x517b15=this['_getVidAttributeName'](_0x25eac8),_0x2b852f=_0x25eac8[_0x5401('0x96')][_0x5401('0x19')](_0x517b15);if(_0x1ccb55['has'](_0x2b852f)){const _0x4fac53=_0x25eac8[_0x5401('0x96')][_0x5401('0x85')][_0x5401('0x85')][_0x5401('0x19')](_0x5401('0x0')),_0x36c099=_0x41f198[_0x5401('0xb4')](_0x4fac53)||new Set();_0x36c099['add'](_0x1ccb55[_0x5401('0xb4')](_0x2b852f)[_0x5401('0x54')]),_0x41f198[_0x5401('0x11')](_0x4fac53,_0x36c099);}}for(const _0x3460ae of _0x41f198[_0x5401('0x35')]())(_0x467dcb[_0x5401('0x71')](_0x3460ae)||_0x1ccb55[_0x5401('0x71')](_0x3460ae))&&_0x41f198[_0x5401('0x76')](_0x3460ae);}for(const _0x479c73 of _0x28d552){const _0x4bf20b=_0x435c97['insertions'][_0x479c73];let _0x5a1dce=null,_0x9b430a=null;for(const _0x1e19a1 of _0x4bf20b){const _0x512402=this['_getVidAttributeName'](_0x1e19a1),_0x48f128=_0x1e19a1[_0x5401('0x96')]['getAttribute'](_0x512402),_0x3a0c0e=_0x41f198[_0x5401('0xb4')](_0x48f128);_0x3a0c0e&&_0x5401('0x6a')==_0x1e19a1[_0x5401('0x5c')]&&(_0x5a1dce=Array[_0x5401('0x1b')](_0x3a0c0e)[0x0],_0x9b430a=_0x1e19a1[_0x5401('0x96')][_0x5401('0x19')](_0x5401('0x3f'))),_0x5a1dce&&(_0x1ccb55[_0x5401('0x11')](_0x48f128,{'userId':_0x5a1dce}),_0x467dcb['set'](_0x48f128,{'userId':_0x5a1dce})),_0x48f128==_0x9b430a&&(_0x5a1dce=null,_0x9b430a=null);}}const _0x46109d={},_0xb0cbe3=new Set();for(const _0x5ba29e of _0x28d552){const _0x4d042a=_0x2cb19e['deletions'][_0x5ba29e],_0x18d681=_0x2cb19e['insertions'][_0x5ba29e];for(const {userId:_0x4dff15}of this[_0x5401('0xb7')][_0x5401('0x16')]())null!==_0x4dff15&&_0xb0cbe3[_0x5401('0xb8')](_0x4dff15);for(const {userId:_0x4042bc}of this['_touchedRoots'][_0x5401('0x16')]())null!==_0x4042bc&&_0xb0cbe3[_0x5401('0xb8')](_0x4042bc);this[_0x5401('0x10b')](_0x18d681,_0x435c97['insertions'][_0x5ba29e],_0x467dcb,_0x5401('0x4d'),_0xb0cbe3),this[_0x5401('0x10b')](_0x4d042a,_0x435c97[_0x5401('0xcd')][_0x5ba29e],_0x1ccb55,_0x5401('0xd3'),_0xb0cbe3),_0x46109d[_0x5ba29e]={'insertions':this[_0x5401('0xc0')](_0x18d681),'deletions':this[_0x5401('0xc0')](_0x4d042a),'attachChange':this[_0x5401('0x75')]['get'](_0x5ba29e)||null,'attributesBefore':_0x97e44a(this['_baseRootsAttributes'][_0x5401('0xb4')](_0x5ba29e))||{},'attributesAfter':_0x97e44a(this[_0x5401('0x74')]['get'](_0x5ba29e))};}return{'diffData':_0x46109d,'authorsIds':Array[_0x5401('0x1b')](_0xb0cbe3)};}['_processRootBeforeSave'](_0x23cf25){for(const [,_0x508ecd]of _0x23cf25[_0x5401('0xf6')]){const _0x312727=_0x508ecd[_0x5401('0xb9')][_0x5401('0xde')]()[_0x5401('0xd0')](_0x24a3c9=>_0x5401('0x9b')==_0x24a3c9[_0x5401('0x6d')]);for(const _0x39c277 of _0x312727)0x1==_0x39c277[_0x5401('0x13')]&&_0x39c277[_0x5401('0x9e')](0x0)['is'](_0x5401('0x42'),_0x5401('0x39'))&&_0x39c277[_0x5401('0x9e')](0x0)[_0x5401('0x4')](_0x5401('0xf5'),!0x0);}}['_prepareViewToSave'](_0x54936f){this[_0x5401('0xca')](_0x54936f);const _0x5e60ad=this['editor']['data'][_0x5401('0x104')](_0x54936f,{}),_0x46b694=Array[_0x5401('0x1b')](_0x5e60ad[_0x5401('0x10c')]())['map'](_0x425cec=>this[_0x5401('0xb')](_0x425cec));return JSON[_0x5401('0x5d')](_0x46b694);}[_0x5401('0xb')](_0x379cb7){if(_0x379cb7['is'](_0x5401('0x2a')))return _0x379cb7[_0x5401('0x73')];{const _0x44c421=_0x379cb7;return{'type':Object['keys'](B)[_0x5401('0xae')](_0x47feb4=>_0x379cb7 instanceof B[_0x47feb4]),'name':_0x44c421['name'],'attributes':Array[_0x5401('0x1b')](_0x44c421[_0x5401('0x88')]()),'children':Array[_0x5401('0x1b')](_0x44c421[_0x5401('0x10c')]())[_0x5401('0xa2')](_0xe95eaa=>this[_0x5401('0xb')](_0xe95eaa))};}}[_0x5401('0x10b')](_0x5955ac,_0x5b20c8,_0x1c68ab,_0x427a50,_0x32f340){let _0x4e949c=null,_0x16e4c6=null,_0x4a80b4=0x0;const _0x42a7c6=this[_0x5401('0x66')][_0x5401('0xec')];for(let _0x327351=0x0;_0x327351<_0x5b20c8['length'];_0x327351++){const _0x205029=this[_0x5401('0x70')](_0x5b20c8[_0x327351]),_0x4a9ad9=_0x5b20c8[_0x327351][_0x5401('0x96')][_0x5401('0x19')](_0x205029),_0x46d995=_0x1c68ab['get'](_0x4a9ad9),_0x381638=_0x327351==_0x5b20c8['length']-0x1;(!_0x4e949c&&_0x46d995&&(_0x4e949c=_0x46d995,_0x16e4c6=_0x5b20c8[_0x327351]),_0x4e949c&&(!_0x46d995||_0x46d995[_0x5401('0x54')]!=_0x4e949c[_0x5401('0x54')]))&&(_0x23b47f(_0x46d995,L(_0x16e4c6,_0x5955ac,_0x42a7c6),L(_0x5b20c8[_0x327351],_0x5955ac,_0x42a7c6)),_0x4e949c=_0x46d995||null,_0x16e4c6=_0x46d995?_0x5b20c8[_0x327351]:null),_0x4e949c&&_0x381638&&_0x23b47f(_0x46d995,L(_0x16e4c6,_0x5955ac,_0x42a7c6),W(_0x5b20c8[_0x327351],_0x5955ac,_0x42a7c6));}function _0x23b47f(_0x38ba1a,_0x1b0967,_0x14513a){const _0x1b2363=_0x4e949c['userId'],_0x26ff3d='revision:'+_0x427a50+':'+_0x1b2363+':'+_0x4a80b4++,_0x5c7d92=_0x42a7c6[_0x5401('0xf8')](_0x1b0967,_0x14513a);_0x5955ac['markers']['set'](_0x26ff3d,_0x5c7d92),null!==_0x1b2363&&_0x32f340[_0x5401('0xb8')](_0x1b2363);}}[_0x5401('0x70')](_0x55dadd){switch(_0x55dadd[_0x5401('0x5c')]){case _0x5401('0x6a'):return _0x5401('0x0');case'elementEnd':return _0x5401('0x3f');default:return _0x5401('0xce');}}[_0x5401('0xc')](_0x25586d,_0x4e8e07){_0x25586d[_0x5401('0x46')]=null;for(const _0x2c9e44 in _0x25586d){const _0x55fea2=_0x25586d[_0x2c9e44];if(_0x55fea2 instanceof _0xacbff5){const _0xd93d67=_0x4e8e07[_0x5401('0xb4')](_0x55fea2['root'][_0x5401('0x43')]);_0x25586d[_0x2c9e44]=this[_0x5401('0xe1')](_0x55fea2,_0xd93d67);}if(_0x55fea2 instanceof _0x562ab5){const _0x2cd13c=_0x4e8e07[_0x5401('0xb4')](_0x55fea2[_0x5401('0x17')][_0x5401('0x43')]);_0x25586d[_0x2c9e44]=this[_0x5401('0x1c')](_0x55fea2,_0x2cd13c);}_0x5401('0x17')===_0x2c9e44&&(_0x25586d['root']=_0x4e8e07['get'](_0x25586d[_0x5401('0x17')]['rootName']));}}[_0x5401('0x1c')](_0x8bd1b3,_0x3bbdca){return this['editor'][_0x5401('0xec')]['createRange'](this[_0x5401('0xe1')](_0x8bd1b3[_0x5401('0xb9')],_0x3bbdca),this[_0x5401('0xe1')](_0x8bd1b3['end'],_0x3bbdca));}['_fixPosition'](_0x3389b5,_0x19a799){return this['editor'][_0x5401('0xec')][_0x5401('0x5f')](_0x19a799,_0x3389b5['path'],_0x3389b5[_0x5401('0x57')]);}[_0x5401('0x8c')](_0x2d331b){const _0x18054d=this[_0x5401('0x92')][_0x5401('0xb4')](_0x2d331b['position'][_0x5401('0x17')][_0x5401('0x43')]),_0x278605=this[_0x5401('0xe1')](_0x2d331b[_0x5401('0xad')],_0x18054d),_0x23c2c8=null===_0x2d331b['_authorId']?null:_0x2d331b['_authorId']||this[_0x5401('0x66')]['plugins'][_0x5401('0xb4')]('Users')['me']['id'],_0xe8b72f=_0x278605['parent'],_0x36fd4a=this[_0x5401('0x6b')],_0xd463cd=[];for(const _0x4cad89 of _0x2d331b['nodes'])if(_0x4cad89['is'](_0x5401('0x42')))_0xd463cd['push'](this['_makeIdsRoot'](_0x4cad89));else for(let _0x146ac1=0x0;_0x146ac1<_0x4cad89[_0x5401('0x34')];_0x146ac1++)_0xd463cd[_0x5401('0xb6')](new _0x325d60(_0x5401('0x2a'),{'vid':this[_0x5401('0x6b')]++}));const _0x28e05f=this['_revisionId'];for(let _0x214e34=_0x36fd4a;_0x214e34<_0x28e05f;_0x214e34++)this[_0x5401('0x1')][_0x5401('0x11')](_0x214e34,{'userId':_0x23c2c8});_0xe8b72f[_0x5401('0x8f')](_0x278605[_0x5401('0xc2')],_0xd463cd);}['_handleMoveOperation'](_0x10cfb8){(_0x10cfb8=this['_cloneOperation'](_0x10cfb8,this[_0x5401('0x92')]))['_execute']();const _0x3a873d=null===_0x10cfb8[_0x5401('0x30')]?null:_0x10cfb8[_0x5401('0x30')]||this['editor']['plugins'][_0x5401('0xb4')](_0x5401('0xea'))['me']['id'],_0xf8a72d=_0x10cfb8[_0x5401('0xdd')](),_0x18ca48=_0xf8a72d[_0x5401('0x85')],_0x54d930=_0xf8a72d[_0x5401('0xc2')];!function _0x4f18d3(_0x27046c,_0x344161,_0x50c95b,_0x4f2032){for(let _0xcf7adb=_0x50c95b;_0xcf7adb<_0x4f2032;_0xcf7adb++){const _0x3cfedf=_0x344161['getChild'](_0xcf7adb);_0x3cfedf['is'](_0x5401('0x42'),_0x5401('0x2a'))?_0x27046c[_0x5401('0x11')](_0x3cfedf[_0x5401('0x19')]('vid'),{'userId':_0x3a873d}):(_0x27046c[_0x5401('0x11')](_0x3cfedf['getAttribute'](_0x5401('0x0')),{'userId':_0x3a873d}),_0x4f18d3(_0x27046c,_0x3cfedf,0x0,_0x3cfedf[_0x5401('0x13')]),_0x27046c[_0x5401('0x11')](_0x3cfedf[_0x5401('0x19')](_0x5401('0x3f')),{'userId':_0x3a873d}));}}(this[_0x5401('0x1')],_0x18ca48,_0x54d930,_0x54d930+_0x10cfb8[_0x5401('0xf3')]);}[_0x5401('0x25')](_0x237360){const _0x5d292e=null===(_0x237360=this[_0x5401('0x7c')](_0x237360,this[_0x5401('0x92')]))['_authorId']?null:_0x237360[_0x5401('0x30')]||this['editor'][_0x5401('0x80')][_0x5401('0xb4')](_0x5401('0xea'))['me']['id'],_0x54755b=_0x237360[_0x5401('0xf7')][_0x5401('0x85')],_0x496ad1=_0x237360[_0x5401('0x1e')]['parent'],_0x3c05b8=_0x54755b[_0x5401('0x19')](_0x5401('0x3f')),_0x31c37f=_0x496ad1[_0x5401('0x19')](_0x5401('0x0'));_0x54755b[_0x5401('0x4')](_0x5401('0x3f'),_0x496ad1[_0x5401('0x19')]('vid_end')),_0x496ad1[_0x5401('0x4')](_0x5401('0x3f'),_0x3c05b8),this[_0x5401('0x1')][_0x5401('0x11')](_0x31c37f,{'userId':_0x5d292e}),this['_touched'][_0x5401('0x11')](_0x3c05b8,{'userId':_0x5d292e}),_0x237360['_execute']();}[_0x5401('0xd9')](_0xc77ff0){const _0x1401e0=null===(_0xc77ff0=this['_cloneOperation'](_0xc77ff0,this['_idsRoots']))['_authorId']?null:_0xc77ff0['_authorId']||this['editor']['plugins'][_0x5401('0xb4')](_0x5401('0xea'))['me']['id'],_0x247e94=_0xc77ff0[_0x5401('0xf2')],_0x35640d=_0xc77ff0['splitPosition'][_0x5401('0x85')];_0xc77ff0[_0x5401('0x49')]();const _0x400344=_0x35640d[_0x5401('0x19')]('vid_end'),_0x451401=_0xc77ff0[_0x5401('0xab')]['nodeAfter'];if(_0x247e94){const _0x8b75dc=_0x451401[_0x5401('0x19')](_0x5401('0x3f')),_0x415381=_0x35640d['getAttribute'](_0x5401('0x3f'));_0x35640d[_0x5401('0x4')]('vid_end',_0x8b75dc),_0x451401[_0x5401('0x4')]('vid_end',_0x415381),this['_touched']['set'](_0x35640d['getAttribute'](_0x5401('0x3f')),{'userId':_0x1401e0}),this[_0x5401('0x1')][_0x5401('0x11')](_0x451401[_0x5401('0x19')](_0x5401('0x0')),{'userId':_0x1401e0});}else{const _0x215142=this['_revisionId']++,_0x144345=this[_0x5401('0x6b')]++;_0x35640d[_0x5401('0x4')]('vid_end',_0x215142),_0x451401[_0x5401('0x4')](_0x5401('0x0'),_0x144345),_0x451401[_0x5401('0x4')](_0x5401('0x3f'),_0x400344),this[_0x5401('0x1')][_0x5401('0x11')](_0x215142,{'userId':_0x1401e0}),this[_0x5401('0x1')][_0x5401('0x11')](_0x144345,{'userId':_0x1401e0});}}[_0x5401('0xb3')](_0x94e500){if(!_0x94e500[_0x5401('0x3e')])return;const _0x5d7fcd=(_0x94e500=this[_0x5401('0x7c')](_0x94e500,this[_0x5401('0x7')]))[_0x5401('0x26')]?_0x94e500[_0x5401('0x26')]['root']:null,_0x2ffffb=_0x94e500['newRange']?_0x94e500[_0x5401('0x9')][_0x5401('0x17')]:null;_0x5d7fcd&&this[_0x5401('0x1a')][_0x5401('0x76')](_0x94e500[_0x5401('0x6d')]),_0x2ffffb&&this[_0x5401('0x1a')][_0x5401('0x11')](_0x94e500[_0x5401('0x6d')],_0x94e500[_0x5401('0x9')][_0x5401('0xbd')]());const _0x48c55e=null===_0x94e500[_0x5401('0x30')]?null:_0x94e500[_0x5401('0x30')]||this['editor'][_0x5401('0x80')]['get'](_0x5401('0xea'))['me']['id'],_0x584cc3=_0x94e500[_0x5401('0x6d')];if(!this['_touchedMarkers'][_0x5401('0x71')](_0x584cc3))return void this[_0x5401('0xb7')][_0x5401('0x11')](_0x584cc3,{'range':_0x94e500[_0x5401('0x26')],'userId':_0x48c55e});const _0x37e602=this[_0x5401('0xb7')]['get'](_0x584cc3),_0x323780=_0x37e602[_0x5401('0xeb')],_0x3f46a0=_0x94e500[_0x5401('0x9')];null==_0x323780&&null==_0x3f46a0||_0x323780&&_0x3f46a0&&_0x323780[_0x5401('0x5')](_0x3f46a0)?this[_0x5401('0xb7')][_0x5401('0x76')](_0x94e500[_0x5401('0x6d')]):_0x37e602[_0x5401('0x54')]=_0x48c55e;}[_0x5401('0x65')](_0x20281a,_0xdb7ef6){this[_0x5401('0x7')]['has'](_0x20281a['rootName'])?this['_diffRoots'][_0x5401('0xb4')](_0x20281a[_0x5401('0x43')])['_isAttached']=_0x20281a[_0x5401('0x93')]:(this[_0x5401('0x7')][_0x5401('0x11')](_0x20281a[_0x5401('0x43')],G(_0x20281a[_0x5401('0x43')],!0x0)),this[_0x5401('0x74')][_0x5401('0x11')](_0x20281a['rootName'],{}),_0xdb7ef6&&this[_0x5401('0x92')][_0x5401('0x11')](_0x20281a[_0x5401('0x43')],G(_0x20281a['rootName'],!0x0)));const _0x69eecf=null===_0x20281a[_0x5401('0x30')]?null:_0x20281a[_0x5401('0x30')]||this['editor'][_0x5401('0x80')][_0x5401('0xb4')]('Users')['me']['id'],_0x863c9=this[_0x5401('0x75')][_0x5401('0xb4')](_0x20281a[_0x5401('0x43')]);_0x863c9&&_0x863c9[_0x5401('0x54')]===_0x69eecf?this[_0x5401('0x75')][_0x5401('0x76')](_0x20281a[_0x5401('0x43')]):this[_0x5401('0x75')][_0x5401('0x11')](_0x20281a[_0x5401('0x43')],{'userId':_0x69eecf,'isAttached':_0x20281a[_0x5401('0x93')]});}[_0x5401('0x90')](_0x4e900d){const _0x339780=this[_0x5401('0x74')][_0x5401('0xb4')](_0x4e900d[_0x5401('0x17')]['rootName']);null===_0x4e900d[_0x5401('0x78')]?delete _0x339780[_0x4e900d[_0x5401('0x9f')]]:_0x339780[_0x4e900d['key']]=_0x4e900d['newValue'];}}function q(_0x17045b){const _0x849efb=G(_0x17045b[_0x5401('0x43')],_0x17045b[_0x5401('0x100')]());for(const _0x251aef of _0x17045b[_0x5401('0x10c')]()){const _0x409256=_0x251aef[_0x5401('0xa')](!0x0);_0x849efb['_appendChild'](_0x409256);}return _0x849efb;}function G(_0x5d6372,_0x15ac9f=!0x0){const _0x1286c2=new _0x246001();return _0x1286c2[_0x5401('0x43')]=_0x5d6372,_0x1286c2[_0x5401('0x94')]=_0x15ac9f,_0x1286c2[_0x5401('0x100')]=()=>_0x1286c2['_isAttached'],_0x1286c2;}function L(_0x3d3af4,_0x5a08d4,_0x111384){const _0x2c30ae=_0x5401('0x5e')==_0x3d3af4[_0x5401('0x5c')]?_0x111384['createPositionAt'](_0x3d3af4[_0x5401('0x96')],_0x5401('0x10a')):_0x111384[_0x5401('0xe2')](_0x3d3af4[_0x5401('0x96')]);return _0x111384[_0x5401('0x5f')](_0x5a08d4,_0x2c30ae[_0x5401('0x4f')],_0x2c30ae[_0x5401('0x57')]);}function W(_0x5ad551,_0x47cf23,_0x324c6b){const _0x587951=_0x5401('0x6a')==_0x5ad551[_0x5401('0x5c')]?_0x324c6b[_0x5401('0xfe')](_0x5ad551['item'],0x0):_0x324c6b['createPositionAfter'](_0x5ad551[_0x5401('0x96')]);return _0x324c6b[_0x5401('0x5f')](_0x47cf23,_0x587951[_0x5401('0x4f')],_0x587951['stickiness']);}
23
+ const _0x979c=['config','getRevisionDocumentData','_clone','_removeMetaData','elementStart','_createCurrentRevision','reverse','Users','_getState','baseVersion','get','_handleMergeOperation','range','_setAttribute','addRevision','afterInit','_savedMetaData','processor','text','addRoot','elementEnd','adapter','documentFragment','length','keys','start','sendBufferedUpdates','_createInitialRevision','_fixRange','set','root','vid','getRevisions','getIndex','newRange','toData','editor-initial-data-replaced-with-revision-data','_handleMarkerOperation','default','creator','isReady','markers','then','RevisionsRepository','getOperation','createdAt','_removeRevisionMarkers','_touchedMarkers','version','_revisionDataBuilder','_handleRootOperation','collaboration.channelId','hasContent','revision:','currentRevision','_getFromVersion','toModel','_baseIdsRoots','insertion','fromVersion','targetPosition','clone','revision-start','source','_handleRootAttributeOperation','_createFromRanges','rootsAttributes','insertions','_lastFrom','authorsIds','parent','detachRoot','locale','splitPosition','newValue','deletions','updateRevisions','ready','createPositionAfter','getChildren','_bufferedUpdates','values','_markers','upcast','init','addRevisionData','_calculateMetaData','PENDING_ACTION_REVISION_HISTORY','attributesBefore','name','_transformMarkers','getUser','getRootNames','_operations','getRange','define','_markChanges','_saveMetaData','slice','_insertChild','includes','map','getRoot','stickiness','revisionHistory.resumeUnsavedRevision','createPositionAt','_idsRoots','_handleMoveOperation','offset','_getVidAttributeName','revision','_removePendingAction','_baseRoots','children','conversion','data-revision-','initialData','dataDowncast','key','initial','isEqual','isAttached','creatorId','nodes','userId','getCurrentRevisionId','_startingRevisionId','push','has','_makeRevision','_handleOperation','previousPosition','loadState','nodeAfter','remove','_execute','_touchedRoots','rootName','element','parse','_isAttached','_makeIdsRoot','sort','delete','_generateTape','createPositionBefore','split','saveRevision','attributesAfter','_applyOperations','getNodeByPath','model','end','_startingVersion','_isPendingUpdate','createRange','$text','for','add','_getPreviousFrom','view','editor','_loadRevisionData','_reset','resolve','toVersion','_initialRevisionId','merge','RealTimeCollaborationClient','oldRange','_authorId','type','createRevision','document','_makeModelFromViewString','getWalker','_continueCurrentRevision','attachChange','keepParagraph','authors','position','tableCell','pluginName','_findInsertionIndex','buildRevisionData','childCount','_fixPosition','editing','_diffRootsAttributes','_prepareViewToSave','offsetSize','RevisionTracker','plugins','dataToMarker','marked','_cloneOperation','find','getTransformedByOperation','data','diffData','size','string','from','_revisionId','changeRootAttribute','createPositionFromPath','reInit','getChild','_diffRoots','_touched','howMany','path','_handleSplitOperation','clear','getAncestors','_source','fromEntries','some','_fixOperation','_getBaseVids','_handleInsertOperation','requires','item','_appendChild','_loadState','shift','markerToData','Empty\x20document','getAttributes','getMovedRangeStart','insert','filter','isAdd','trim','_replaceEditorDataWithRevisionData','getRevisionRootsAttributes','bind','vid_end','$graveyard','deletion','getData','_getViewJson','getLatestVersion','useFillerType','_loadedStateData','repository','_processRootBeforeSave','_update','setRevisionData','vid_start','_addPendingAction','NEGATIVE_INFINITY','_isInit','startsWith','removeRootAttribute','_baseRootsAttributes','forEach','attributes','_lastTo','sourcePosition','move','marker','PendingActions','_bufferUpdate','getRevision','_copyMarkers','_pendingAction','history','getAttribute'];(function(_0x4d0c6e,_0x979c58){const _0x152e6c=function(_0x16a29e){while(--_0x16a29e){_0x4d0c6e['push'](_0x4d0c6e['shift']());}};_0x152e6c(++_0x979c58);}(_0x979c,0x1a7));const _0x152e=function(_0x4d0c6e,_0x979c58){_0x4d0c6e=_0x4d0c6e-0x0;let _0x152e6c=_0x979c[_0x4d0c6e];return _0x152e6c;};import{Users as _0x15925b}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x56e07c,PendingActions as _0x51462a}from'ckeditor5/src/core';import{logWarning as _0x4fa037,uid as _0x545004}from'ckeditor5/src/utils';import{Position as _0x144535,Range as _0x350b1c,Element as _0x45dbcc,DocumentFragment as _0x287911,ViewText as _0x41fa94,ViewElement as _0x32f564,ViewContainerElement as _0x19f9fd,ViewAttributeElement as _0x452777,ViewEmptyElement as _0x35285b,ViewRawElement as _0x500888,ViewUIElement as _0x456fce,ViewDocumentFragment as _0x3a9bee}from'ckeditor5/src/engine';import _0x509fac from'./revisionsrepository';import{getTranslation as _0x8d4ba2}from'./utils/common-translations';import{cloneDeep as _0x5cb0d4,isEqual as _0x2a7c77}from'lodash-es';const B={'c':_0x19f9fd,'a':_0x452777,'e':_0x35285b,'r':_0x500888,'u':_0x456fce};export default class l extends _0x56e07c{static get[_0x152e('0x1c')](){return _0x152e('0x25');}static get[_0x152e('0x43')](){return[_0x15925b,_0x509fac,_0x51462a];}constructor(_0x283565){super(_0x283565),this[_0x152e('0x88')]=null,this['currentRevision']=null,this[_0x152e('0xa4')]=new H(this[_0x152e('0x7')]),this[_0x152e('0xc')]=this[_0x152e('0x7')]['config'][_0x152e('0x7d')](_0x152e('0xa6'))||_0x152e('0xea'),this[_0x152e('0xc3')]=new Map(),this[_0x152e('0x5a')]=null;const _0x38b8a6=_0x545004();this[_0x152e('0x3d')]={'history':this[_0x152e('0x7')][_0x152e('0x10a')][_0x152e('0x13')]['history'],'getLatestVersion':()=>Promise[_0x152e('0xa')](this[_0x152e('0x7')][_0x152e('0x10a')]['document'][_0x152e('0xa3')]),'getCurrentRevisionId':()=>_0x38b8a6},this['set'](_0x152e('0x9b'),!0x1),this[_0x152e('0x90')]('isEnabled',!0x0),this[_0x152e('0x90')](_0x152e('0x0'),!0x1),this[_0x152e('0x7')][_0x152e('0x73')][_0x152e('0xd2')](_0x152e('0xdb'),!0x0),this['editor']['conversion']['for'](_0x152e('0xc6'))[_0x152e('0x27')]({'view':_0x152e('0xe1')});}[_0x152e('0xc7')](){this['repository']=this[_0x152e('0x7')]['plugins'][_0x152e('0x7d')](_0x152e('0x9e')),this['_setConversion'](),this['editor']['data']['on'](_0x152e('0xc0'),()=>{const _0x2b79b9=this[_0x152e('0x5b')][_0x152e('0x6e')](0x0),_0x428626=_0x2b79b9&&null===_0x2b79b9[_0x152e('0x9a')]?_0x2b79b9:null;if(this['_continueCurrentRevision']=!!_0x428626&&this[_0x152e('0x7')][_0x152e('0x73')][_0x152e('0x7d')](_0x152e('0xdb')),this[_0x152e('0x7')]['plugins'][_0x152e('0xf3')](_0x152e('0xe'))){const _0x1381fe=this[_0x152e('0x3d')][_0x152e('0xf0')](),_0x2e5f00=this[_0x152e('0x5b')][_0x152e('0x6e')](_0x1381fe);if(_0x2e5f00)this['_startingVersion']=_0x2e5f00[_0x152e('0xae')],this['_continueCurrentRevision']=!0x1;else{const _0x1f9221=this[_0x152e('0x3d')][_0x152e('0x71')][_0x152e('0xd0')]['find'](_0x552c86=>!_0x552c86[_0x152e('0x62')]),_0x4efe05=_0x1f9221?_0x1f9221[_0x152e('0x7c')]:this[_0x152e('0x3d')][_0x152e('0x71')][_0x152e('0xa3')];_0x2b79b9?(_0x2b79b9['toVersion']<_0x4efe05&&_0x2b79b9[_0x152e('0x5d')]({'toVersion':_0x4efe05}),this['_continueCurrentRevision']?(this['_source'][_0x152e('0xf0')]=()=>_0x428626['id'],this[_0x152e('0x10c')]=_0x428626[_0x152e('0xae')]):(this[_0x152e('0x10c')]=_0x2b79b9[_0x152e('0xb')],this[_0x152e('0x16')]=!0x1)):(this[_0x152e('0x10c')]=_0x4efe05,this[_0x152e('0x16')]=!0x1);}}else _0x428626&&(this[_0x152e('0x7')]['model'][_0x152e('0x13')][_0x152e('0x71')][_0x152e('0xa3')]=Math['max'](_0x428626['toVersion'],this['editor'][_0x152e('0x10a')][_0x152e('0x13')]['history'][_0x152e('0xa3')]),_0x428626[_0x152e('0xae')]===_0x428626[_0x152e('0xb')]?(0x0!==_0x428626[_0x152e('0xae')]&&(this[_0x152e('0x3d')]['getCurrentRevisionId']=()=>_0x428626['id']),this[_0x152e('0x16')]=!0x1):this[_0x152e('0x16')]&&(this['_source'][_0x152e('0xf0')]=()=>_0x428626['id'],this['_startingVersion']=_0x428626[_0x152e('0xae')])),this[_0x152e('0x16')]||(this['_startingVersion']=this['editor']['model'][_0x152e('0x13')][_0x152e('0xa3')]);this[_0x152e('0xa4')][_0x152e('0xc7')](this[_0x152e('0x3d')]['history']),this['_createInitialRevision'](this[_0x152e('0x10c')]),this[_0x152e('0x78')](this[_0x152e('0x10c')]),this[_0x152e('0x88')]&&this['sendBufferedUpdates']();}),this[_0x152e('0x52')](_0x152e('0x9b'))['to'](this,_0x152e('0x0'),_0x13cb2f=>!_0x13cb2f);}async[_0x152e('0x82')](){if(this[_0x152e('0x5b')][_0x152e('0x8a')]>0x0){const _0x31e3b4=this[_0x152e('0x5b')][_0x152e('0x6e')](0x0),_0x4850d6=await this['getRevisionDocumentData'](_0x31e3b4),_0x1428c7=await this['getRevisionRootsAttributes'](_0x31e3b4);this[_0x152e('0x50')](_0x4850d6,_0x1428c7);}}['setSource'](_0x35f12e){this[_0x152e('0x3d')]=_0x35f12e;}async['update'](){const _0x2d2841=await this[_0x152e('0x3d')][_0x152e('0x58')]();if(_0x2d2841>this[_0x152e('0xa9')][_0x152e('0xb')]){await this[_0x152e('0x46')]();const _0x39558c=this[_0x152e('0x1e')]({'revision':this[_0x152e('0xa9')],'to':_0x2d2841});_0x39558c[_0x152e('0x19')]=_0x39558c[_0x152e('0xb8')][_0x152e('0xd8')](_0xcba1b8=>this[_0x152e('0x7')][_0x152e('0x26')][_0x152e('0x7d')](_0x152e('0x7a'))[_0x152e('0xce')](_0xcba1b8)),this[_0x152e('0xa9')][_0x152e('0x5d')](_0x39558c);}}async[_0x152e('0x46')](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this[_0x152e('0xa9')]),this['_revisionDataBuilder'][_0x152e('0xf7')](this[_0x152e('0xa9')]),this[_0x152e('0x5a')]={'fromVersion':this[_0x152e('0xa9')][_0x152e('0xae')],'authors':this[_0x152e('0xa9')]['authors']['slice']()});}async[_0x152e('0x106')](_0x47cf48={},_0x52cd69=null){const _0x39468a=[];await this[_0x152e('0x46')](),this[_0x152e('0x16')]=!0x1,_0x52cd69>this['currentRevision'][_0x152e('0xb')]&&(_0x52cd69=null),null===_0x52cd69&&(_0x52cd69=await this['_source']['getLatestVersion']());const _0x860b25=this[_0x152e('0xaa')](_0x52cd69),_0xe1261b=this['buildRevisionData']({'from':_0x860b25,'to':_0x52cd69});if(this['currentRevision']['toVersion']<_0x52cd69){const _0x17b1dd=this[_0x152e('0x1e')]({'revision':this[_0x152e('0xa9')],'from':_0x52cd69,'to':_0x52cd69});_0x17b1dd['authors']=[],_0x17b1dd[_0x152e('0xb8')]=[],_0x17b1dd['id']=this[_0x152e('0xa9')]['id'],this[_0x152e('0xa9')][_0x152e('0x5d')](_0x17b1dd,!0x0),delete _0x17b1dd['authors'],_0x39468a[_0x152e('0xf2')](_0x17b1dd);}_0x47cf48[_0x152e('0xed')]=this['editor']['plugins'][_0x152e('0x7d')](_0x152e('0x7a'))['me']['id'],_0x47cf48['name']=_0x47cf48[_0x152e('0xcc')]||null,_0x47cf48['id']=_0x47cf48['id']||_0x545004(),_0x47cf48={..._0x47cf48,..._0xe1261b};const _0x5f1415=this[_0x152e('0xc8')](_0x47cf48);_0x39468a[_0x152e('0xf2')](_0x47cf48);const _0x23b074=this['repository'][_0x152e('0x94')](_0x5f1415);if(0x0!==_0x23b074){const _0x5e03a3=this[_0x152e('0x5b')]['getRevision'](_0x23b074-0x1);if(_0x5e03a3[_0x152e('0xae')]!==_0x52cd69){const _0x20e366=this[_0x152e('0xa4')][_0x152e('0x56')](_0x52cd69,_0x5e03a3[_0x152e('0xb')]),_0x55ec9f={'id':_0x5e03a3['id'],'diffData':_0x20e366['diffData'],'authorsIds':_0x20e366[_0x152e('0xb8')],'authors':_0x20e366[_0x152e('0xb8')][_0x152e('0xd8')](_0x19510f=>this[_0x152e('0x7')][_0x152e('0x26')][_0x152e('0x7d')](_0x152e('0x7a'))[_0x152e('0xce')](_0x19510f)),'fromVersion':_0x52cd69};_0x5e03a3===this[_0x152e('0xa9')]&&(_0x55ec9f[_0x152e('0xa0')]=new Date(_0x47cf48['createdAt']['getTime']()+0xa)),_0x5e03a3[_0x152e('0x5d')](_0x55ec9f,!0x0),delete _0x55ec9f[_0x152e('0x19')],_0x39468a[_0x152e('0xf2')](_0x55ec9f);}}if(this[_0x152e('0x88')]){for(const _0x491ad2 of _0x39468a)this[_0x152e('0x6d')](_0x491ad2['id'],_0x491ad2,!0x0);this[_0x152e('0x8d')]();}return _0x5f1415;}[_0x152e('0xc8')](_0x21aae4){const _0x716065=this[_0x152e('0x5b')][_0x152e('0x12')](_0x21aae4);return this[_0x152e('0x88')]&&_0x716065['on'](_0x152e('0x5d'),(_0x245d54,_0x398fb0,_0x1088bb)=>{_0x1088bb||(this[_0x152e('0x6d')](_0x398fb0['id'],_0x398fb0,!0x0),this['sendBufferedUpdates']());}),this[_0x152e('0x5b')][_0x152e('0x81')](_0x716065,this['_findInsertionIndex'](_0x716065)),_0x716065;}async[_0x152e('0x74')](_0xee86f6){await this[_0x152e('0x8')](_0xee86f6);const _0x2f54e2={};for(const _0x1c1e2a in _0xee86f6[_0x152e('0x2d')]){if(_0xee86f6[_0x152e('0x2d')][_0x1c1e2a][_0x152e('0x17')]&&!_0xee86f6[_0x152e('0x2d')][_0x1c1e2a]['attachChange'][_0x152e('0xec')])continue;const _0xd35f27=this[_0x152e('0xa1')](JSON[_0x152e('0xfe')](_0xee86f6[_0x152e('0x2d')][_0x1c1e2a][_0x152e('0xb6')])),_0x1bd4b7=this[_0x152e('0x7')][_0x152e('0x21')]['view']['document'],_0x2b9f9e=new _0x3a9bee(_0x1bd4b7,_0xd35f27[_0x152e('0xd8')](_0x4127b9=>J(_0x4127b9,this[_0x152e('0x7')])));this[_0x152e('0x7')][_0x152e('0x2c')][_0x152e('0x84')][_0x152e('0x59')](_0x152e('0x28')),_0x2f54e2[_0x1c1e2a]=this[_0x152e('0x7')]['data']['processor'][_0x152e('0x96')](_0x2b9f9e),this['editor'][_0x152e('0x2c')]['processor'][_0x152e('0x59')](_0x152e('0x99'));}return _0x2f54e2;}async[_0x152e('0x51')](_0x473854){await this[_0x152e('0x8')](_0x473854);const _0x77776e={};for(const _0x45c5f9 in _0x473854[_0x152e('0x2d')])_0x473854[_0x152e('0x2d')][_0x45c5f9][_0x152e('0x17')]&&!_0x473854[_0x152e('0x2d')][_0x45c5f9][_0x152e('0x17')][_0x152e('0xec')]||(_0x77776e[_0x45c5f9]=_0x473854[_0x152e('0x2d')][_0x45c5f9][_0x152e('0x107')]||{});return _0x77776e;}[_0x152e('0x8d')](){if(0x0===this['_bufferedUpdates']['size'])return;if(this[_0x152e('0x0')])return;let _0x37bb3d=Array[_0x152e('0x30')](this[_0x152e('0xc3')]['values']());this[_0x152e('0xc3')][_0x152e('0x3b')]();for(let _0x1337b2=0x0;_0x1337b2<_0x37bb3d['length'];_0x1337b2++){const _0x6465d6=_0x37bb3d[_0x1337b2];let _0x31a443=!0x1;for(const _0xb66026 of Object['keys'](_0x6465d6))void 0x0===_0x6465d6[_0xb66026]?delete _0x6465d6[_0xb66026]:'id'!==_0xb66026&&(_0x31a443=!0x0);_0x31a443||(_0x37bb3d[_0x1337b2]=null);}if(_0x37bb3d=_0x37bb3d[_0x152e('0x4d')](_0x157a5f=>null!==_0x157a5f),!_0x37bb3d['length'])return;for(let _0x23fad3=0x0;_0x23fad3<_0x37bb3d[_0x152e('0x8a')];_0x23fad3++){const _0x58a182=_0x37bb3d[_0x23fad3];void 0x0!==_0x58a182['fromVersion']&&void 0x0===_0x58a182[_0x152e('0xb')]&&(_0x58a182['toVersion']=this[_0x152e('0x5b')][_0x152e('0x6e')](_0x58a182['id'])[_0x152e('0xb')]),void 0x0!==_0x58a182[_0x152e('0xb')]&&void 0x0===_0x58a182['fromVersion']&&(_0x58a182[_0x152e('0xae')]=this['repository']['getRevision'](_0x58a182['id'])[_0x152e('0xae')]);}const _0x2f4a8a=this[_0x152e('0x7')]['config'][_0x152e('0x7d')](_0x152e('0xa6'));this['_isPendingUpdate']=!0x0,this[_0x152e('0x60')](),this[_0x152e('0x88')][_0x152e('0xbf')](_0x37bb3d,_0x2f4a8a)['finally'](()=>{this[_0x152e('0x0')]=!0x1;})[_0x152e('0x9d')](_0x1cd7d8=>{if(_0x1cd7d8)for(const _0x4b79dc of _0x1cd7d8)this[_0x152e('0x5e')]({'id':_0x4b79dc['id'],'createdAt':_0x4b79dc['createdAt']});this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x39338b,_0x1a849b){let _0x3fcd00=this[_0x152e('0x7')]['config'][_0x152e('0x7d')](_0x152e('0xe7')),_0x567da2=this['editor'][_0x152e('0x73')][_0x152e('0x7d')]('rootsAttributes');if(void 0x0===_0x3fcd00){_0x3fcd00={};for(const _0x5d924f of this[_0x152e('0x7')][_0x152e('0x10a')][_0x152e('0x13')][_0x152e('0xcf')]())_0x3fcd00[_0x5d924f]='';}if(_0x152e('0x2f')==typeof _0x3fcd00&&(_0x3fcd00={'main':_0x3fcd00}),void 0x0===_0x567da2){_0x567da2={};for(const _0x963ffe of this[_0x152e('0x7')][_0x152e('0x10a')][_0x152e('0x13')][_0x152e('0xcf')]())_0x567da2[_0x963ffe]={};}let _0x3a9c5b=!0x1;const _0x5eaf43=Object[_0x152e('0x8b')](_0x3fcd00),_0x56b14f=Object['keys'](_0x39338b);for(const _0x1eb40c of _0x5eaf43){if(_0x3fcd00[_0x1eb40c]!==_0x39338b[_0x1eb40c]&&''!==_0x3fcd00[_0x1eb40c][_0x152e('0x4f')]()){_0x3a9c5b=!0x0;break;}if(!_0x2a7c77(_0x567da2[_0x1eb40c],_0x1a849b[_0x1eb40c])&&Object[_0x152e('0x8b')](_0x567da2[_0x1eb40c])['length']>0x0){_0x3a9c5b=!0x0;break;}}_0x3a9c5b||(_0x3a9c5b=_0x56b14f[_0x152e('0x3f')](_0x80f080=>!this['editor'][_0x152e('0x10a')]['document'][_0x152e('0xd9')](_0x80f080))),_0x3a9c5b&&_0x4fa037(_0x152e('0x97'),{'editorData':_0x3fcd00,'editorRootsAttributes':_0x567da2,'revisionData':_0x39338b,'revisionRootsAttributes':_0x1a849b}),this[_0x152e('0x7')][_0x152e('0x73')][_0x152e('0x90')](_0x152e('0xe7'),_0x39338b),this['editor'][_0x152e('0x73')][_0x152e('0x90')](_0x152e('0xb5'),_0x1a849b);}[_0x152e('0x60')](){if(!this[_0x152e('0x70')]){const _0x56efce=this['editor']['plugins'][_0x152e('0x7d')]('PendingActions');this['_pendingAction']=_0x56efce['add'](_0x8d4ba2(this[_0x152e('0x7')][_0x152e('0xbb')],_0x152e('0xca')));}}[_0x152e('0xe2')](){this['_pendingAction']&&(this[_0x152e('0x7')][_0x152e('0x26')][_0x152e('0x7d')](_0x152e('0x6c'))[_0x152e('0xf9')](this[_0x152e('0x70')]),this[_0x152e('0x70')]=null);}[_0x152e('0x1d')](_0x3844b3){const _0x4c88fb=this[_0x152e('0x5b')][_0x152e('0x93')]();_0x4c88fb[_0x152e('0x79')]();let _0x2a7037=0x0;for(;_0x2a7037<_0x4c88fb['length'];){const _0x5508cf=_0x4c88fb[_0x2a7037];if(_0x5508cf===this[_0x152e('0xa9')]){_0x2a7037++;continue;}if(_0x5508cf['id']===this[_0x152e('0xc')])break;const _0x9d7393=_0x3844b3[_0x152e('0xb')]-_0x5508cf['toVersion']||_0x3844b3[_0x152e('0xae')]-_0x5508cf[_0x152e('0xae')];if(_0x9d7393>0x0)break;if(_0x9d7393<0x0)_0x2a7037++;else{if(!_0x3844b3[_0x152e('0x9a')]&&_0x5508cf['creator'])break;if(_0x5508cf['creator']||!_0x3844b3[_0x152e('0x9a')]){if(_0x3844b3['createdAt']>_0x5508cf[_0x152e('0xa0')])break;_0x2a7037++;}else _0x2a7037++;}}return _0x2a7037;}['setRevisionData'](_0x370580){const _0x1ef58d=this['repository'][_0x152e('0x6e')](_0x370580['id']);if(_0x370580['createdAt']&&(_0x370580[_0x152e('0xa0')]=new Date(_0x370580[_0x152e('0xa0')])),_0x370580['authorsIds']){const _0x2c7019=this['editor'][_0x152e('0x26')][_0x152e('0x7d')]('Users');_0x370580[_0x152e('0x19')]=_0x370580[_0x152e('0xb8')][_0x152e('0xd8')](_0xef0d1f=>_0x2c7019['getUser'](_0xef0d1f));}_0x1ef58d[_0x152e('0x5d')](_0x370580,!0x0);}[_0x152e('0x1e')]({revision:_0x1b17c2=null,from:_0x2195bc=null,to:_0x182cfd=null}){_0x2195bc=null!==_0x2195bc?_0x2195bc:_0x1b17c2[_0x152e('0xae')],_0x182cfd=null!==_0x182cfd?_0x182cfd:_0x1b17c2[_0x152e('0xb')];const _0x126aba=this[_0x152e('0xa4')][_0x152e('0x56')](_0x2195bc,_0x182cfd),_0x259cb2={'diffData':_0x126aba['diffData'],'authorsIds':_0x126aba[_0x152e('0xb8')],'fromVersion':_0x2195bc,'toVersion':_0x182cfd};if(!_0x1b17c2||_0x182cfd!==_0x1b17c2['toVersion']){const _0x5a828c=_0x182cfd-0x1,_0x5a729b=this[_0x152e('0x3d')][_0x152e('0x71')][_0x152e('0x9f')](_0x5a828c);_0x259cb2[_0x152e('0xa0')]=_0x5a729b&&_0x5a729b[_0x152e('0xa0')]||new Date();}if(this[_0x152e('0x5a')]&&_0x2195bc===this[_0x152e('0x5a')][_0x152e('0xae')])for(const _0x32cdfb of this[_0x152e('0x5a')][_0x152e('0x19')])_0x259cb2[_0x152e('0xb8')][_0x152e('0xd7')](_0x32cdfb['id'])||_0x259cb2[_0x152e('0xb8')][_0x152e('0xf2')](_0x32cdfb['id']);return _0x259cb2;}[_0x152e('0x8')](_0x396d4d){if(!_0x396d4d||_0x396d4d['diffData'])return Promise[_0x152e('0xa')]();{const _0x965080=this[_0x152e('0x7')][_0x152e('0x73')][_0x152e('0x7d')](_0x152e('0xa6'));return this[_0x152e('0x88')][_0x152e('0x6e')]({'channelId':_0x965080,'revisionId':_0x396d4d['id']})[_0x152e('0x9d')](_0x49b16a=>{_0x396d4d[_0x152e('0x2d')]=_0x49b16a['diffData'];});}}[_0x152e('0x6d')](_0x49d2f5,_0x547127,_0x122ab3){if(this['_bufferedUpdates']['has'](_0x49d2f5)){const _0x4b6ffc=this[_0x152e('0xc3')][_0x152e('0x7d')](_0x49d2f5);_0x547127=_0x122ab3?{..._0x4b6ffc,..._0x547127}:{..._0x547127,..._0x4b6ffc};}this[_0x152e('0xc3')][_0x152e('0x90')](_0x49d2f5,_0x547127);}[_0x152e('0xaa')](_0x4c2566){const _0x463f8c=this[_0x152e('0x5b')][_0x152e('0x93')]();_0x463f8c['reverse'](),_0x463f8c[_0x152e('0x47')]();const _0x49a559=_0x463f8c[_0x152e('0x2a')](_0x723c87=>_0x723c87[_0x152e('0xb')]<=_0x4c2566)[_0x152e('0xb')];return _0x49a559<this['_startingVersion']?this[_0x152e('0x10c')]:_0x49a559;}[_0x152e('0x8e')](_0x492357){const _0xf190ea=this[_0x152e('0x5b')][_0x152e('0x6e')](this['repository'][_0x152e('0x8a')]-0x1);if(_0xf190ea)this[_0x152e('0xc')]=_0xf190ea['id'];else{const _0x336774=!this[_0x152e('0x7')][_0x152e('0x10a')][_0x152e('0x13')]['roots'][_0x152e('0x2a')](_0x45e31a=>this[_0x152e('0x7')][_0x152e('0x10a')][_0x152e('0xa7')](_0x45e31a)),_0x4d94c4=this[_0x152e('0x7')][_0x152e('0x26')][_0x152e('0x7d')](_0x152e('0x7a'))['me']['id'],_0x173d4d=_0x8d4ba2(this[_0x152e('0x7')][_0x152e('0xbb')],_0x336774?_0x152e('0x49'):'Initial\x20revision');this['_makeRevision']({'from':_0x492357,'to':_0x492357,'id':this['_initialRevisionId'],'name':_0x173d4d,'creatorId':_0x4d94c4});}}[_0x152e('0x78')](_0x4f216a){const _0x5ccd91=this[_0x152e('0x3d')][_0x152e('0xf0')]();this[_0x152e('0xa9')]=this['repository']['getRevision'](_0x5ccd91),this['currentRevision']||(this[_0x152e('0xa9')]=this[_0x152e('0xf4')]({'from':_0x4f216a,'to':_0x4f216a,'id':_0x5ccd91,'name':'','creatorId':null}));}['_makeRevision']({name:_0x3c2318,from:_0x524251,to:_0x583648,creatorId:_0x39e77b,id:_0x55624e}){const _0x491bc0=this[_0x152e('0x1e')]({'from':_0x524251,'to':_0x583648});_0x491bc0[_0x152e('0xcc')]=_0x3c2318,_0x491bc0[_0x152e('0xed')]=_0x39e77b,_0x491bc0['id']=_0x55624e;const _0x4bfe0f=this[_0x152e('0xc8')](_0x491bc0);return this[_0x152e('0x88')]&&this[_0x152e('0x6d')](_0x491bc0['id'],_0x491bc0,!0x0),_0x4bfe0f;}['_setConversion'](){this[_0x152e('0x7')][_0x152e('0xe5')][_0x152e('0x3')](_0x152e('0xe8'))[_0x152e('0x48')]({'model':_0x152e('0xe1')});}['_removeRevisionMarkers'](_0x19f452){return(_0x19f452=_0x19f452['filter'](_0xf877dc=>!_0xf877dc[_0x152e('0xcc')]||_0x152e('0xb1')!==_0xf877dc[_0x152e('0xcc')]&&'revision-end'!==_0xf877dc[_0x152e('0xcc')]))[_0x152e('0x66')](_0x331473=>{_0x152e('0x2f')!=typeof _0x331473&&(_0x331473['children']=this[_0x152e('0xa1')](_0x331473[_0x152e('0xe4')]),_0x331473[_0x152e('0x67')]=_0x331473[_0x152e('0x67')][_0x152e('0x4d')](_0x3f26fa=>!_0x3f26fa[0x0][_0x152e('0x63')](_0x152e('0xe6'))));}),_0x19f452;}}function J(_0x5c5b71,_0x401129){const _0x4c524a=_0x401129[_0x152e('0x21')][_0x152e('0x6')][_0x152e('0x13')];if(_0x152e('0x2f')==typeof _0x5c5b71)return new _0x41fa94(_0x4c524a,_0x5c5b71);{const _0x25190c=_0x5c5b71[_0x152e('0xe4')][_0x152e('0xd8')](_0x2723a0=>J(_0x2723a0,_0x401129));return new(B[_0x5c5b71[(_0x152e('0x11'))]]||_0x32f564)(_0x4c524a,_0x5c5b71[_0x152e('0xcc')],_0x5c5b71['attributes'],_0x25190c);}}class H{constructor(_0x294acf){this[_0x152e('0x7')]=_0x294acf,this[_0x152e('0x83')]=new Map(),this[_0x152e('0xb7')]=-0x1,this[_0x152e('0x68')]=-0x1,this['_markers']=new Map(),this[_0x152e('0x36')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x152e('0xe3')]=new Map(),this['_baseRootsAttributes']=new Map(),this[_0x152e('0xdd')]=new Map(),this[_0x152e('0xac')]=new Map(),this[_0x152e('0x37')]=new Map(),this[_0x152e('0xa2')]=new Map(),this[_0x152e('0xfb')]=new Map(),this[_0x152e('0x31')]=0x1;}[_0x152e('0xc7')](_0x5dfeb4){this[_0x152e('0xb2')]=_0x5dfeb4;const _0x9840e3=new Map(),_0x89e427=new Map(),_0x50feef=this[_0x152e('0x7')][_0x152e('0x10a')][_0x152e('0x13')]['roots'][_0x152e('0xd8')](_0x5574ca=>_0x5574ca[_0x152e('0xfc')]);for(const _0x121b6e of _0x50feef){const _0x2d549c=this['editor'][_0x152e('0x10a')][_0x152e('0x13')][_0x152e('0xd9')](_0x121b6e),_0xe9b1f9=q(_0x2d549c);_0x9840e3['set'](_0x121b6e,_0xe9b1f9),_0x89e427[_0x152e('0x90')](_0x121b6e,Object[_0x152e('0x3e')](_0x2d549c[_0x152e('0x4a')]()));}const _0x2be3c2=Array[_0x152e('0x30')](this[_0x152e('0x7')][_0x152e('0x10a')][_0x152e('0x9c')])[_0x152e('0xd8')](_0x53d343=>[_0x53d343[_0x152e('0xcc')],_0x53d343[_0x152e('0xd1')]()]),_0x471801=this[_0x152e('0xb2')][_0x152e('0xa3')];this[_0x152e('0xd4')](_0x471801,_0x9840e3,_0x2be3c2,_0x89e427),this[_0x152e('0xf1')]=this[_0x152e('0x31')];const _0x40d8b3=new Map(),_0x5bf80d=new Map();for(const _0x3cf904 of _0x50feef){const _0x3bd114=G(_0x3cf904);_0x40d8b3[_0x152e('0x90')](_0x3cf904,_0x3bd114),_0x5bf80d[_0x152e('0x90')](_0x3cf904,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x40d8b3,[],_0x5bf80d);}[_0x152e('0x56')](_0x5b7cbd,_0x544ce1){if(this[_0x152e('0xb7')]===_0x5b7cbd&&this[_0x152e('0x68')]<=_0x544ce1)this[_0x152e('0x83')][_0x152e('0x2e')]>0x1&&this[_0x152e('0x76')](this[_0x152e('0x68')]),this[_0x152e('0x108')](this[_0x152e('0x68')],_0x544ce1,!0x0);else{if(!this['_savedMetaData'][_0x152e('0xf3')](_0x5b7cbd)){const _0x2aea92=this['_getPreviousFrom'](_0x5b7cbd);this['_calculateMetaData'](_0x2aea92,_0x5b7cbd,!0x1);}this[_0x152e('0xc9')](_0x5b7cbd,_0x544ce1,!0x0);}return this[_0x152e('0xb7')]=_0x5b7cbd,this[_0x152e('0x68')]=_0x544ce1,this['_getState']();}['loadState'](_0x2f722a){this[_0x152e('0x9')](),this[_0x152e('0xb7')]=_0x2f722a[_0x152e('0xae')],this[_0x152e('0x68')]=_0x2f722a[_0x152e('0xb')];for(const _0x581d13 in _0x2f722a[_0x152e('0x2d')]){const _0x18ca4e=_0x2f722a[_0x152e('0x2d')][_0x581d13][_0x152e('0x17')],_0x32ca0e=_0x5cb0d4(_0x2f722a[_0x152e('0x2d')][_0x581d13][_0x152e('0xcb')])||{},_0x4719ef=this[_0x152e('0x14')](_0x2f722a[_0x152e('0x2d')][_0x581d13][_0x152e('0xbe')]);_0x4719ef['rootName']=_0x581d13,_0x4719ef[_0x152e('0xff')]=!_0x18ca4e||!_0x18ca4e['isAttached'],_0x4719ef[_0x152e('0xec')]=()=>_0x4719ef['_isAttached'],this[_0x152e('0xe3')][_0x152e('0x90')](_0x581d13,_0x4719ef),this['_baseRootsAttributes']['set'](_0x581d13,_0x32ca0e),_0x18ca4e&&this['_touchedRoots'][_0x152e('0x90')](_0x581d13,_0x18ca4e);const _0x3d39ec=this['_makeIdsRoot'](_0x4719ef);this['_baseIdsRoots'][_0x152e('0x90')](_0x581d13,_0x3d39ec);for(const [_0x374db3,_0x4f777a]of _0x4719ef[_0x152e('0x9c')]){if(!_0x374db3[_0x152e('0x63')]('revision:'))continue;const _0x2639a7=_0x374db3[_0x152e('0x105')](':')[0x2];for(const _0x2a59fb of _0x4f777a[_0x152e('0x15')]({'singleCharacters':!0x0})){const _0x3124ff=this[_0x152e('0xe0')](_0x2a59fb),_0x2b359d=_0x152e('0x87')==_0x2a59fb[_0x152e('0x11')]?_0x2a59fb['previousPosition'][_0x152e('0x39')][_0x152e('0xd5')](0x0,-0x1):_0x2a59fb['previousPosition'][_0x152e('0x39')],_0x53b14a=_0x3d39ec[_0x152e('0x109')](_0x2b359d)[_0x152e('0x72')](_0x3124ff);this[_0x152e('0x37')][_0x152e('0x90')](_0x53b14a,{'userId':_0x2639a7});}}}this[_0x152e('0xf1')]=this[_0x152e('0x31')];const _0x56e931=[...Array(this['_revisionId'])[_0x152e('0x8b')]()][_0x152e('0xd5')](0x1)[_0x152e('0x4d')](_0x27bf91=>!this[_0x152e('0x37')][_0x152e('0xf3')](_0x27bf91));let _0x318e02=0x0;const _0x532744=new Map();for(const _0x48264c in _0x2f722a['diffData']){const _0x1ad72f=_0x2f722a[_0x152e('0x2d')][_0x48264c][_0x152e('0x17')],_0x214243=_0x5cb0d4(_0x2f722a[_0x152e('0x2d')][_0x48264c][_0x152e('0x107')])||{},_0x431ee5=this[_0x152e('0x14')](_0x2f722a[_0x152e('0x2d')][_0x48264c]['insertions']);_0x431ee5['rootName']=_0x48264c,_0x431ee5[_0x152e('0xff')]=!_0x1ad72f||_0x1ad72f[_0x152e('0xec')],_0x431ee5[_0x152e('0xec')]=()=>_0x431ee5[_0x152e('0xff')],this[_0x152e('0x36')][_0x152e('0x90')](_0x48264c,_0x431ee5),this[_0x152e('0x22')][_0x152e('0x90')](_0x48264c,_0x214243);const _0x483579=this['_makeIdsRoot'](_0x431ee5,Number['NEGATIVE_INFINITY']);this[_0x152e('0xdd')][_0x152e('0x90')](_0x48264c,_0x483579),_0x532744['set'](_0x48264c,_0x431ee5[_0x152e('0xec')]()?_0x214243:{});for(const [_0x5d1373,_0x18a183]of _0x431ee5[_0x152e('0x9c')]){if(!_0x5d1373[_0x152e('0x63')](_0x152e('0xa8')))continue;const _0x18c2de=_0x5d1373[_0x152e('0x105')](':')[0x2];for(const _0x433f37 of _0x18a183['getWalker']({'singleCharacters':!0x0})){const _0x50f00b=this[_0x152e('0xe0')](_0x433f37),_0x437a3a=this[_0x152e('0x31')]++,_0x3f9f8a=_0x152e('0x87')==_0x433f37['type']?_0x433f37['previousPosition'][_0x152e('0x39')]['slice'](0x0,-0x1):_0x433f37[_0x152e('0xf6')][_0x152e('0x39')];_0x483579[_0x152e('0x109')](_0x3f9f8a)[_0x152e('0x80')](_0x50f00b,_0x437a3a),this['_touched'][_0x152e('0x90')](_0x437a3a,{'userId':_0x18c2de});}}for(const _0xa87b1f of this[_0x152e('0x7')]['model']['createRangeIn'](_0x431ee5)[_0x152e('0x15')]({'singleCharacters':!0x0})){const _0x59b467=this['_getVidAttributeName'](_0xa87b1f),_0x50d0b8='elementEnd'==_0xa87b1f[_0x152e('0x11')]?_0xa87b1f[_0x152e('0xf6')]['path'][_0x152e('0xd5')](0x0,-0x1):_0xa87b1f[_0x152e('0xf6')][_0x152e('0x39')],_0x1903c5=_0x483579[_0x152e('0x109')](_0x50d0b8);_0x1903c5[_0x152e('0x72')](_0x59b467)>0x0||_0x1903c5[_0x152e('0x80')](_0x59b467,_0x56e931[_0x318e02++]);}for(const [_0x4e28fb,_0x2965af]of _0x431ee5['markers'])_0x4e28fb['startsWith']('revision:')||this[_0x152e('0xc5')][_0x152e('0x90')](_0x4e28fb,_0x2965af);}const _0x8459a2=G(_0x152e('0x54'));this[_0x152e('0xe3')][_0x152e('0x90')](_0x152e('0x54'),_0x8459a2),this['_baseIdsRoots'][_0x152e('0x90')](_0x152e('0x54'),this[_0x152e('0x100')](_0x8459a2,0x1));const _0x7abc13=G(_0x152e('0x54'));this[_0x152e('0x36')][_0x152e('0x90')](_0x152e('0x54'),_0x7abc13),this[_0x152e('0xdd')][_0x152e('0x90')](_0x152e('0x54'),this['_makeIdsRoot'](_0x7abc13,0x1));const _0x416c8e=Array[_0x152e('0x30')](this[_0x152e('0x36')])['map'](([_0x5f4396,_0x2ad2f6])=>[_0x5f4396,q(_0x2ad2f6)]);this[_0x152e('0xd4')](this[_0x152e('0x68')],_0x416c8e,this[_0x152e('0xc5')],_0x532744);}[_0x152e('0x14')](_0x3fa517){const _0x3297ee=JSON[_0x152e('0xfe')](_0x3fa517),_0x442819=this[_0x152e('0x7')][_0x152e('0x21')][_0x152e('0x6')]['document'],_0x4e9c0d=new _0x3a9bee(_0x442819,_0x3297ee[_0x152e('0xd8')](_0x561c39=>J(_0x561c39,this[_0x152e('0x7')])));return this[_0x152e('0x7')][_0x152e('0x2c')][_0x152e('0xab')](_0x4e9c0d);}[_0x152e('0xd4')](_0x30c469,_0x41c06d,_0x10f24a,_0x217f52){const _0x20dfd9=new Map(_0x41c06d),_0x15a957=new Map(_0x5cb0d4(_0x217f52)),_0x137cf8=new Map();for(const [_0x286c27,_0xe50225]of _0x10f24a)_0x137cf8[_0x152e('0x90')](_0x286c27,{'start':_0xe50225['start'][_0x152e('0xb0')](),'end':_0xe50225[_0x152e('0x10b')]['clone'](),'rootName':_0xe50225['root']['rootName']});this[_0x152e('0x83')][_0x152e('0x90')](_0x30c469,{'roots':_0x20dfd9,'markers':_0x137cf8,'rootsAttributes':_0x15a957});}[_0x152e('0x76')](_0x472264){this[_0x152e('0x83')][_0x152e('0x102')](_0x472264);}[_0x152e('0x34')](){this[_0x152e('0x9')](),this[_0x152e('0xb7')]=-0x1,this['_lastTo']=-0x1,this['_savedMetaData'][_0x152e('0x3b')](),this[_0x152e('0xc7')](this[_0x152e('0xb2')]);}[_0x152e('0x9')](){this['_touched']['clear'](),this[_0x152e('0xa2')][_0x152e('0x3b')](),this[_0x152e('0xfb')][_0x152e('0x3b')](),this[_0x152e('0x36')][_0x152e('0x3b')](),this[_0x152e('0x22')]['clear'](),this['_baseRoots'][_0x152e('0x3b')](),this[_0x152e('0x65')][_0x152e('0x3b')](),this[_0x152e('0xdd')]['clear'](),this[_0x152e('0xac')][_0x152e('0x3b')](),this[_0x152e('0xc5')][_0x152e('0x3b')](),this[_0x152e('0x31')]=0x1,this[_0x152e('0xf1')]=this[_0x152e('0x31')];}[_0x152e('0x100')](_0x1d2b84,_0x56d0f8=null){let _0x556e31=null;_0x1d2b84['is']('documentFragment')||(_0x556e31=new _0x45dbcc(_0x1d2b84[_0x152e('0xcc')],{'vid_start':null===_0x56d0f8?this[_0x152e('0x31')]++:_0x56d0f8++}));const _0x35145e=[];for(const _0x1078cd of _0x1d2b84[_0x152e('0xc2')]())if(_0x1078cd['is'](_0x152e('0xfd'))){_0x35145e[_0x152e('0xf2')](this[_0x152e('0x100')](_0x1078cd,_0x56d0f8));const _0x531a32=_0x35145e[_0x35145e[_0x152e('0x8a')]-0x1];null!==_0x56d0f8&&(_0x56d0f8=_0x531a32['is'](_0x152e('0xfd'),_0x152e('0x2'))?_0x531a32[_0x152e('0x72')](_0x152e('0x92'))+0x1:_0x531a32['getAttribute'](_0x152e('0x53'))+0x1);}else for(let _0x1b498f=0x0;_0x1b498f<_0x1078cd[_0x152e('0x24')];_0x1b498f++)_0x35145e[_0x152e('0xf2')](new _0x45dbcc(_0x152e('0x2'),{'vid':null===_0x56d0f8?this[_0x152e('0x31')]++:_0x56d0f8++}));if(_0x1d2b84['is'](_0x152e('0x89'))){const _0x13a847=G(_0x1d2b84[_0x152e('0xfc')]);return _0x13a847[_0x152e('0xd6')](0x0,_0x35145e),_0x13a847;}return _0x556e31[_0x152e('0x80')](_0x152e('0x53'),null===_0x56d0f8?this[_0x152e('0x31')]++:_0x56d0f8++),_0x556e31['_insertChild'](0x0,_0x35145e),_0x556e31;}[_0x152e('0xc9')](_0x3d4036,_0x564b11,_0x7b8f7c){this['_reset']();const {roots:_0x47f504,markers:_0x44477f,rootsAttributes:_0x5ddc84}=this['_savedMetaData'][_0x152e('0x7d')](_0x3d4036);this[_0x152e('0xe3')]=new Map(_0x47f504),this[_0x152e('0x65')]=new Map(_0x5cb0d4(_0x5ddc84));for(const [_0x425bb2,_0x17cae2]of this[_0x152e('0xe3')])if('$graveyard'!==_0x425bb2&&(this['_diffRoots'][_0x152e('0x90')](_0x425bb2,q(_0x17cae2)),this[_0x152e('0x22')]=new Map(_0x5cb0d4(_0x5ddc84)),_0x7b8f7c)){const _0x3958c6=this[_0x152e('0x31')];this[_0x152e('0xdd')]['set'](_0x425bb2,this['_makeIdsRoot'](_0x17cae2)),this[_0x152e('0xac')][_0x152e('0x90')](_0x425bb2,this['_makeIdsRoot'](_0x17cae2,_0x3958c6));}this[_0x152e('0xf1')]=this[_0x152e('0x31')],this[_0x152e('0x36')][_0x152e('0x90')]('$graveyard',q(this[_0x152e('0xe3')][_0x152e('0x7d')](_0x152e('0x54')))),_0x7b8f7c&&this['_idsRoots'][_0x152e('0x90')](_0x152e('0x54'),this[_0x152e('0x100')](this[_0x152e('0xe3')][_0x152e('0x7d')]('$graveyard')));for(const [_0x1e68cc,_0x28f640]of _0x44477f){const _0x28c0e7=this['_baseRoots']['get'](_0x28f640[_0x152e('0xfc')]),_0x4305fd=this['_diffRoots']['get'](_0x28f640[_0x152e('0xfc')]),_0x25c941=new _0x350b1c(this[_0x152e('0x20')](_0x28f640['start'],_0x28c0e7),this[_0x152e('0x20')](_0x28f640[_0x152e('0x10b')],_0x28c0e7)),_0x4406d2=this[_0x152e('0x8f')](_0x25c941,_0x4305fd);_0x28c0e7[_0x152e('0x9c')][_0x152e('0x90')](_0x1e68cc,_0x25c941),this[_0x152e('0xc5')]['set'](_0x1e68cc,_0x4406d2);}this['_applyOperations'](_0x3d4036,_0x564b11,_0x7b8f7c);}[_0x152e('0x108')](_0x5e5833,_0x1b6e6c,_0x86030d){for(const _0x19d4f3 of this['source']['getOperations'](_0x5e5833,_0x1b6e6c))this[_0x152e('0xf5')](_0x19d4f3,_0x86030d);for(const _0xb59ded of this[_0x152e('0x36')][_0x152e('0xc4')]())_0xb59ded['markers'][_0x152e('0x3b')]();for(const [_0x3c0a62,_0x531644]of this[_0x152e('0xc5')]){this[_0x152e('0x36')][_0x152e('0x7d')](_0x531644[_0x152e('0x91')][_0x152e('0xfc')])[_0x152e('0x9c')][_0x152e('0x90')](_0x3c0a62,_0x531644[_0x152e('0xb0')]());}const _0x5c695e=new Map(),_0x39cc0e=new Map();for(const [_0xfc21f,_0x326fe3]of this[_0x152e('0x36')])_0x5c695e[_0x152e('0x90')](_0xfc21f,q(_0x326fe3)),_0x39cc0e['set'](_0xfc21f,this[_0x152e('0x22')][_0x152e('0x7d')](_0xfc21f));this[_0x152e('0xd4')](_0x1b6e6c,_0x5c695e,this[_0x152e('0xc5')],_0x39cc0e);}[_0x152e('0x5')](_0x384088){const _0x45a157=Array['from'](this[_0x152e('0x83')]['keys']());_0x45a157[_0x152e('0x101')]((_0x44ef11,_0x394115)=>_0x44ef11-_0x394115),_0x45a157[_0x152e('0x79')]();for(const _0x42a4d6 of _0x45a157)if(_0x42a4d6<_0x384088)return _0x42a4d6;return Number[_0x152e('0x61')];}[_0x152e('0x6f')](_0x254dd8,_0x1a299c){const _0x1fb3d8=Array['from'](_0x1a299c[_0x152e('0x9c')])[_0x152e('0xd8')](([_0x280537,_0x31f400])=>[_0x280537,this[_0x152e('0x8f')](_0x31f400,_0x254dd8)]);_0x254dd8[_0x152e('0x9c')]=new Map(_0x1fb3d8);}[_0x152e('0xcd')](_0xb1a788){for(const _0x4be776 of this[_0x152e('0xc5')]['values']()){const _0x77238a=_0x4be776[_0x152e('0x2b')](_0xb1a788),_0x7d8ff7=_0x350b1c[_0x152e('0xb4')](_0x77238a);_0x4be776['start']=_0x7d8ff7[_0x152e('0x8c')],_0x4be776['end']=_0x7d8ff7[_0x152e('0x10b')];}}[_0x152e('0xf5')](_0x4529ac,_0x2dd655){if(_0x152e('0x86')==_0x4529ac[_0x152e('0x11')]||_0x152e('0xba')==_0x4529ac[_0x152e('0x11')])return void this['_handleRootOperation'](_0x4529ac,_0x2dd655);if(_0x152e('0x4c')==_0x4529ac['type']){const _0x444ff8=_0x4529ac[_0x152e('0x1a')][_0x152e('0x91')][_0x152e('0xfc')];this['_diffRoots'][_0x152e('0xf3')](_0x444ff8)||(this[_0x152e('0x36')][_0x152e('0x90')](_0x444ff8,G(_0x444ff8,!0x0)),this[_0x152e('0x22')][_0x152e('0x90')](_0x444ff8,{}),_0x2dd655&&this['_idsRoots'][_0x152e('0x90')](_0x444ff8,G(_0x444ff8,!0x0)));}else{if('addRootAttribute'==_0x4529ac[_0x152e('0x11')]||_0x152e('0x64')==_0x4529ac[_0x152e('0x11')]||_0x152e('0x32')==_0x4529ac['type'])return void this[_0x152e('0xb3')](_0x4529ac);}const _0xe7afc0=this[_0x152e('0x29')](_0x4529ac,this[_0x152e('0x36')]);if(_0x152e('0x6b')!==_0x4529ac[_0x152e('0x11')]&&(_0xe7afc0['_execute'](),this[_0x152e('0xcd')](_0xe7afc0)),_0x2dd655)switch(_0xe7afc0['type']){case _0x152e('0x4c'):this[_0x152e('0x42')](_0x4529ac);break;case _0x152e('0x6a'):case'remove':case'reinsert':this[_0x152e('0xde')](_0x4529ac);break;case _0x152e('0xd'):this[_0x152e('0x7e')](_0x4529ac);break;case _0x152e('0x105'):this[_0x152e('0x3a')](_0x4529ac);break;case _0x152e('0x6b'):this[_0x152e('0x98')](_0x4529ac);}}[_0x152e('0x29')](_0x39ce9d,_0x38873d){const _0x162015=_0x39ce9d[_0x152e('0xb0')]();return _0x162015[_0x152e('0x10')]=_0x39ce9d['_authorId'],this[_0x152e('0x40')](_0x162015,_0x38873d),_0x162015;}[_0x152e('0x41')](_0x4f4582){return _0x4f4582[_0x152e('0xd8')](_0x251a4c=>{const _0x513845=this[_0x152e('0xe0')](_0x251a4c);return Number(_0x251a4c[_0x152e('0x44')][_0x152e('0x72')](_0x513845));});}['_generateTape'](_0x1462c8,_0x2407d9){if(_0x1462c8['is'](_0x152e('0xfd'),'$text'))_0x2407d9[_0x152e('0xf2')]({'item':_0x1462c8,'type':_0x152e('0x85')});else{_0x1462c8['is'](_0x152e('0xfd'))&&_0x2407d9[_0x152e('0xf2')]({'item':_0x1462c8,'type':'elementStart'});for(const _0x4d1b9b of _0x1462c8[_0x152e('0xc2')]())this[_0x152e('0x103')](_0x4d1b9b,_0x2407d9);_0x1462c8['is']('element')&&_0x2407d9['push']({'item':_0x1462c8,'type':_0x152e('0x87')});}return _0x2407d9;}[_0x152e('0x7b')](){const _0x527025=new Map(this[_0x152e('0x37')]),_0x1aa38d=new Map(_0x527025),_0x319080=new Map(),_0x58847f={'insertions':{},'deletions':{}},_0x51f975={'insertions':{},'deletions':{}},_0x41a86d=new Map(),_0xa10071=new Set([...this[_0x152e('0xe3')][_0x152e('0x8b')](),...this[_0x152e('0x36')][_0x152e('0x8b')]()]);_0xa10071[_0x152e('0x102')](_0x152e('0x54'));for(const _0x4da72e of _0xa10071){const _0x1ac8bc=this['_diffRoots']['get'](_0x4da72e)||G(_0x4da72e,!0x1),_0x5afd22=this['_baseRoots']['get'](_0x4da72e)||G(_0x4da72e,!0x1);_0x1ac8bc['isAttached']()||_0x5afd22['isAttached']()?(_0x58847f[_0x152e('0xb6')][_0x4da72e]=q(_0x1ac8bc),_0x58847f['deletions'][_0x4da72e]=q(_0x5afd22),this[_0x152e('0x6f')](_0x58847f[_0x152e('0xbe')][_0x4da72e],_0x5afd22),this[_0x152e('0x6f')](_0x58847f[_0x152e('0xb6')][_0x4da72e],_0x1ac8bc),_0x51f975[_0x152e('0xb6')][_0x4da72e]=this[_0x152e('0x103')](this['_idsRoots'][_0x152e('0x7d')](_0x4da72e),[]),_0x51f975['deletions'][_0x4da72e]=this[_0x152e('0x103')](this[_0x152e('0xac')][_0x152e('0x7d')](_0x4da72e)||G(_0x4da72e,!0x1),[])):_0xa10071['delete'](_0x4da72e);}for(const _0x2e269d of _0xa10071){const _0x2b24c3=_0x51f975[_0x152e('0xb6')][_0x2e269d];for(const _0xe3ec07 of _0x2b24c3){const _0xdc6996=this[_0x152e('0xe0')](_0xe3ec07),_0x24db80=_0xe3ec07[_0x152e('0x44')]['getAttribute'](_0xdc6996);_0x1aa38d['delete'](_0x24db80),_0x24db80>=this[_0x152e('0xf1')]&&_0x319080['set'](_0x24db80,_0x527025['get'](_0x24db80));}}for(const _0x5892b6 of _0xa10071){const _0x21614a=_0x51f975[_0x152e('0xb6')][_0x5892b6],_0x18276e=this[_0x152e('0x41')](_0x51f975['deletions'][_0x5892b6]);let _0x53b53a=0x0;for(const _0x392b70 of _0x21614a){const _0x2fea2c=this[_0x152e('0xe0')](_0x392b70),_0x252e6a=_0x392b70[_0x152e('0x44')][_0x152e('0x72')](_0x2fea2c);if(!_0x319080[_0x152e('0xf3')](_0x252e6a)&&!_0x41a86d[_0x152e('0xf3')](_0x252e6a)){if(_0x1aa38d[_0x152e('0xf3')](_0x252e6a))_0x53b53a++;else{if(_0x252e6a!=_0x18276e[_0x53b53a]){const _0x3bd0bf=_0x527025[_0x152e('0x7d')](_0x252e6a)||_0x527025['get'](_0x18276e[_0x53b53a]);for(;_0x252e6a!=_0x18276e[_0x53b53a];)_0x1aa38d[_0x152e('0xf3')](_0x18276e[_0x53b53a])||(_0x41a86d[_0x152e('0x90')](_0x18276e[_0x53b53a],_0x3bd0bf),_0x527025[_0x152e('0x90')](_0x18276e[_0x53b53a],_0x3bd0bf)),_0x53b53a++;}_0x53b53a++;}}}}for(const _0x28388c of _0xa10071){const _0x54e9ee=_0x51f975['insertions'][_0x28388c];for(const _0x20895f of _0x54e9ee){const _0x328071=this[_0x152e('0xe0')](_0x20895f),_0x9bef67=_0x20895f[_0x152e('0x44')][_0x152e('0x72')](_0x328071);if(_0x41a86d[_0x152e('0xf3')](_0x9bef67)){const _0x106d53=_0x41a86d[_0x152e('0x7d')](_0x9bef67);_0x1aa38d[_0x152e('0xf3')](_0x9bef67)||_0x1aa38d['set'](_0x9bef67,{..._0x106d53}),_0x319080['set'](_0x9bef67,{..._0x106d53});}}}for(const _0x592beb of _0x1aa38d[_0x152e('0x8b')]())_0x592beb>=this['_startingRevisionId']&&_0x1aa38d[_0x152e('0x102')](_0x592beb);const _0x800a26=new Map();for(const _0x2385c9 of _0xa10071){let _0x3134=_0x51f975[_0x152e('0xb6')][_0x2385c9];for(const _0x4de9b5 of _0x3134)if(_0x4de9b5[_0x152e('0x44')]['is'](_0x152e('0xfd'),'tableCell')){const _0x1410f8=this[_0x152e('0xe0')](_0x4de9b5),_0x5eae24=_0x4de9b5['item']['getAttribute'](_0x1410f8);if(_0x319080[_0x152e('0xf3')](_0x5eae24)){const _0x330382=_0x4de9b5[_0x152e('0x44')]['parent']['parent'][_0x152e('0x72')]('vid_start'),_0x287450=_0x800a26[_0x152e('0x7d')](_0x330382)||new Set();_0x287450['add'](_0x319080['get'](_0x5eae24)[_0x152e('0xef')]),_0x800a26['set'](_0x330382,_0x287450);}}_0x3134=_0x51f975[_0x152e('0xbe')][_0x2385c9];for(const _0x392fc8 of _0x3134)if(_0x392fc8[_0x152e('0x44')]['is'](_0x152e('0xfd'),_0x152e('0x1b'))){const _0x51f9b1=this[_0x152e('0xe0')](_0x392fc8),_0x2cbbce=_0x392fc8['item'][_0x152e('0x72')](_0x51f9b1);if(_0x1aa38d[_0x152e('0xf3')](_0x2cbbce)){const _0x334370=_0x392fc8[_0x152e('0x44')][_0x152e('0xb9')][_0x152e('0xb9')][_0x152e('0x72')](_0x152e('0x5f')),_0x4f5a93=_0x800a26[_0x152e('0x7d')](_0x334370)||new Set();_0x4f5a93['add'](_0x1aa38d[_0x152e('0x7d')](_0x2cbbce)[_0x152e('0xef')]),_0x800a26[_0x152e('0x90')](_0x334370,_0x4f5a93);}}for(const _0x16370a of _0x800a26[_0x152e('0x8b')]())(_0x319080[_0x152e('0xf3')](_0x16370a)||_0x1aa38d[_0x152e('0xf3')](_0x16370a))&&_0x800a26[_0x152e('0x102')](_0x16370a);}for(const _0x1cbb7f of _0xa10071){const _0x345a0c=_0x51f975[_0x152e('0xb6')][_0x1cbb7f];let _0x17685f=null,_0x41545e=null;for(const _0x30e659 of _0x345a0c){const _0x1881a8=this['_getVidAttributeName'](_0x30e659),_0x81f771=_0x30e659[_0x152e('0x44')][_0x152e('0x72')](_0x1881a8),_0x3fdeec=_0x800a26[_0x152e('0x7d')](_0x81f771);_0x3fdeec&&_0x152e('0x77')==_0x30e659[_0x152e('0x11')]&&(_0x17685f=Array[_0x152e('0x30')](_0x3fdeec)[0x0],_0x41545e=_0x30e659[_0x152e('0x44')]['getAttribute'](_0x152e('0x53'))),_0x17685f&&(_0x1aa38d[_0x152e('0x90')](_0x81f771,{'userId':_0x17685f}),_0x319080[_0x152e('0x90')](_0x81f771,{'userId':_0x17685f})),_0x81f771==_0x41545e&&(_0x17685f=null,_0x41545e=null);}}const _0x2cefbd={},_0xf18bce=new Set();for(const _0x59cfd8 of _0xa10071){const _0x108ab7=_0x58847f[_0x152e('0xbe')][_0x59cfd8],_0x2cd02b=_0x58847f[_0x152e('0xb6')][_0x59cfd8];for(const {userId:_0x26a832}of this[_0x152e('0xa2')][_0x152e('0xc4')]())null!==_0x26a832&&_0xf18bce[_0x152e('0x4')](_0x26a832);for(const {userId:_0x2473c1}of this[_0x152e('0xfb')][_0x152e('0xc4')]())null!==_0x2473c1&&_0xf18bce[_0x152e('0x4')](_0x2473c1);this['_markChanges'](_0x2cd02b,_0x51f975['insertions'][_0x59cfd8],_0x319080,_0x152e('0xad'),_0xf18bce),this[_0x152e('0xd3')](_0x108ab7,_0x51f975[_0x152e('0xbe')][_0x59cfd8],_0x1aa38d,_0x152e('0x55'),_0xf18bce),_0x2cefbd[_0x59cfd8]={'insertions':this[_0x152e('0x23')](_0x2cd02b),'deletions':this[_0x152e('0x23')](_0x108ab7),'attachChange':this['_touchedRoots'][_0x152e('0x7d')](_0x59cfd8)||null,'attributesBefore':_0x5cb0d4(this[_0x152e('0x65')]['get'](_0x59cfd8))||{},'attributesAfter':_0x5cb0d4(this[_0x152e('0x22')][_0x152e('0x7d')](_0x59cfd8))};}return{'diffData':_0x2cefbd,'authorsIds':Array[_0x152e('0x30')](_0xf18bce)};}[_0x152e('0x5c')](_0x4bf3b5){for(const [,_0x1cb33c]of _0x4bf3b5[_0x152e('0x9c')]){const _0x197802=_0x1cb33c[_0x152e('0x8c')][_0x152e('0x3c')]()[_0x152e('0x4d')](_0x514bf4=>_0x152e('0x1b')==_0x514bf4[_0x152e('0xcc')]);for(const _0x32677e of _0x197802)0x1==_0x32677e[_0x152e('0x1f')]&&_0x32677e[_0x152e('0x35')](0x0)['is'](_0x152e('0xfd'),'paragraph')&&_0x32677e['getChild'](0x0)[_0x152e('0x80')](_0x152e('0x18'),!0x0);}}['_prepareViewToSave'](_0x2bf95d){this[_0x152e('0x5c')](_0x2bf95d);const _0x100a8e=this[_0x152e('0x7')][_0x152e('0x2c')]['toView'](_0x2bf95d,{}),_0x3aee73=Array[_0x152e('0x30')](_0x100a8e['getChildren']())[_0x152e('0xd8')](_0x41b4e7=>this[_0x152e('0x57')](_0x41b4e7));return JSON['stringify'](_0x3aee73);}['_getViewJson'](_0x434d1d){if(_0x434d1d['is'](_0x152e('0x2')))return _0x434d1d[_0x152e('0x2c')];{const _0x19c404=_0x434d1d;return{'type':Object[_0x152e('0x8b')](B)['find'](_0x29f6ef=>_0x434d1d instanceof B[_0x29f6ef]),'name':_0x19c404['name'],'attributes':Array['from'](_0x19c404['getAttributes']()),'children':Array['from'](_0x19c404[_0x152e('0xc2')]())['map'](_0x23e2a8=>this[_0x152e('0x57')](_0x23e2a8))};}}['_markChanges'](_0x41a74e,_0x17e364,_0x46936d,_0x3beb81,_0x7ab45c){let _0x7988ce=null,_0x23a1fa=null,_0x1ea5fe=0x0;const _0x3fca28=this[_0x152e('0x7')][_0x152e('0x10a')];for(let _0x2ffdf9=0x0;_0x2ffdf9<_0x17e364['length'];_0x2ffdf9++){const _0x24e20b=this[_0x152e('0xe0')](_0x17e364[_0x2ffdf9]),_0x2bb387=_0x17e364[_0x2ffdf9]['item']['getAttribute'](_0x24e20b),_0x41ed32=_0x46936d[_0x152e('0x7d')](_0x2bb387),_0x21b081=_0x2ffdf9==_0x17e364[_0x152e('0x8a')]-0x1;(!_0x7988ce&&_0x41ed32&&(_0x7988ce=_0x41ed32,_0x23a1fa=_0x17e364[_0x2ffdf9]),_0x7988ce&&(!_0x41ed32||_0x41ed32['userId']!=_0x7988ce[_0x152e('0xef')]))&&(_0x26d624(_0x41ed32,L(_0x23a1fa,_0x41a74e,_0x3fca28),L(_0x17e364[_0x2ffdf9],_0x41a74e,_0x3fca28)),_0x7988ce=_0x41ed32||null,_0x23a1fa=_0x41ed32?_0x17e364[_0x2ffdf9]:null),_0x7988ce&&_0x21b081&&_0x26d624(_0x41ed32,L(_0x23a1fa,_0x41a74e,_0x3fca28),W(_0x17e364[_0x2ffdf9],_0x41a74e,_0x3fca28));}function _0x26d624(_0x3a5b0b,_0x2911c1,_0x14d07c){const _0x524ab9=_0x7988ce[_0x152e('0xef')],_0x17fd2b=_0x152e('0xa8')+_0x3beb81+':'+_0x524ab9+':'+_0x1ea5fe++,_0x5126fa=_0x3fca28['createRange'](_0x2911c1,_0x14d07c);_0x41a74e[_0x152e('0x9c')][_0x152e('0x90')](_0x17fd2b,_0x5126fa),null!==_0x524ab9&&_0x7ab45c[_0x152e('0x4')](_0x524ab9);}}['_getVidAttributeName'](_0x22f369){switch(_0x22f369[_0x152e('0x11')]){case _0x152e('0x77'):return _0x152e('0x5f');case'elementEnd':return _0x152e('0x53');default:return _0x152e('0x92');}}[_0x152e('0x40')](_0x5a0341,_0x5e1067){_0x5a0341[_0x152e('0x7c')]=null;for(const _0x7388a1 in _0x5a0341){const _0xe29e20=_0x5a0341[_0x7388a1];if(_0xe29e20 instanceof _0x144535){const _0x514900=_0x5e1067[_0x152e('0x7d')](_0xe29e20[_0x152e('0x91')][_0x152e('0xfc')]);_0x5a0341[_0x7388a1]=this[_0x152e('0x20')](_0xe29e20,_0x514900);}if(_0xe29e20 instanceof _0x350b1c){const _0x5e8484=_0x5e1067[_0x152e('0x7d')](_0xe29e20[_0x152e('0x91')][_0x152e('0xfc')]);_0x5a0341[_0x7388a1]=this[_0x152e('0x8f')](_0xe29e20,_0x5e8484);}'root'===_0x7388a1&&(_0x5a0341['root']=_0x5e1067[_0x152e('0x7d')](_0x5a0341['root'][_0x152e('0xfc')]));}}[_0x152e('0x8f')](_0x2a407c,_0xd26488){return this['editor'][_0x152e('0x10a')][_0x152e('0x1')](this[_0x152e('0x20')](_0x2a407c[_0x152e('0x8c')],_0xd26488),this[_0x152e('0x20')](_0x2a407c['end'],_0xd26488));}['_fixPosition'](_0x7eacd5,_0x21eaa5){return this[_0x152e('0x7')][_0x152e('0x10a')]['createPositionFromPath'](_0x21eaa5,_0x7eacd5['path'],_0x7eacd5[_0x152e('0xda')]);}[_0x152e('0x42')](_0x254bfc){const _0x51072f=this[_0x152e('0xdd')][_0x152e('0x7d')](_0x254bfc[_0x152e('0x1a')][_0x152e('0x91')][_0x152e('0xfc')]),_0x2925fb=this[_0x152e('0x20')](_0x254bfc[_0x152e('0x1a')],_0x51072f),_0x5c1646=null===_0x254bfc[_0x152e('0x10')]?null:_0x254bfc[_0x152e('0x10')]||this['editor'][_0x152e('0x26')][_0x152e('0x7d')](_0x152e('0x7a'))['me']['id'],_0x236dd3=_0x2925fb['parent'],_0x4f8ca6=this[_0x152e('0x31')],_0x37019d=[];for(const _0x17ba11 of _0x254bfc[_0x152e('0xee')])if(_0x17ba11['is'](_0x152e('0xfd')))_0x37019d[_0x152e('0xf2')](this[_0x152e('0x100')](_0x17ba11));else for(let _0xee987c=0x0;_0xee987c<_0x17ba11[_0x152e('0x24')];_0xee987c++)_0x37019d[_0x152e('0xf2')](new _0x45dbcc(_0x152e('0x2'),{'vid':this[_0x152e('0x31')]++}));const _0x4f2966=this['_revisionId'];for(let _0x6430b9=_0x4f8ca6;_0x6430b9<_0x4f2966;_0x6430b9++)this[_0x152e('0x37')][_0x152e('0x90')](_0x6430b9,{'userId':_0x5c1646});_0x236dd3[_0x152e('0xd6')](_0x2925fb[_0x152e('0xdf')],_0x37019d);}['_handleMoveOperation'](_0x5cc9ee){(_0x5cc9ee=this[_0x152e('0x29')](_0x5cc9ee,this[_0x152e('0xdd')]))[_0x152e('0xfa')]();const _0x38bda1=null===_0x5cc9ee[_0x152e('0x10')]?null:_0x5cc9ee['_authorId']||this[_0x152e('0x7')][_0x152e('0x26')]['get']('Users')['me']['id'],_0x1b6ddd=_0x5cc9ee[_0x152e('0x4b')](),_0x1f779f=_0x1b6ddd[_0x152e('0xb9')],_0xf88967=_0x1b6ddd[_0x152e('0xdf')];!function _0x131cd4(_0x31ed56,_0x2157b3,_0x54550f,_0x1b01fe){for(let _0x1bb51b=_0x54550f;_0x1bb51b<_0x1b01fe;_0x1bb51b++){const _0x45fdd6=_0x2157b3[_0x152e('0x35')](_0x1bb51b);_0x45fdd6['is'](_0x152e('0xfd'),_0x152e('0x2'))?_0x31ed56[_0x152e('0x90')](_0x45fdd6[_0x152e('0x72')]('vid'),{'userId':_0x38bda1}):(_0x31ed56[_0x152e('0x90')](_0x45fdd6[_0x152e('0x72')](_0x152e('0x5f')),{'userId':_0x38bda1}),_0x131cd4(_0x31ed56,_0x45fdd6,0x0,_0x45fdd6[_0x152e('0x1f')]),_0x31ed56[_0x152e('0x90')](_0x45fdd6[_0x152e('0x72')]('vid_end'),{'userId':_0x38bda1}));}}(this['_touched'],_0x1f779f,_0xf88967,_0xf88967+_0x5cc9ee[_0x152e('0x38')]);}[_0x152e('0x7e')](_0x25ab4f){const _0x291a30=null===(_0x25ab4f=this[_0x152e('0x29')](_0x25ab4f,this[_0x152e('0xdd')]))[_0x152e('0x10')]?null:_0x25ab4f['_authorId']||this[_0x152e('0x7')][_0x152e('0x26')][_0x152e('0x7d')](_0x152e('0x7a'))['me']['id'],_0xbb0149=_0x25ab4f[_0x152e('0xaf')][_0x152e('0xb9')],_0x27f782=_0x25ab4f[_0x152e('0x69')]['parent'],_0x381e62=_0xbb0149[_0x152e('0x72')](_0x152e('0x53')),_0x49cfef=_0x27f782['getAttribute'](_0x152e('0x5f'));_0xbb0149[_0x152e('0x80')](_0x152e('0x53'),_0x27f782['getAttribute'](_0x152e('0x53'))),_0x27f782['_setAttribute']('vid_end',_0x381e62),this[_0x152e('0x37')]['set'](_0x49cfef,{'userId':_0x291a30}),this[_0x152e('0x37')]['set'](_0x381e62,{'userId':_0x291a30}),_0x25ab4f['_execute']();}['_handleSplitOperation'](_0x5068ef){const _0x4726e0=null===(_0x5068ef=this[_0x152e('0x29')](_0x5068ef,this['_idsRoots']))[_0x152e('0x10')]?null:_0x5068ef[_0x152e('0x10')]||this['editor'][_0x152e('0x26')][_0x152e('0x7d')](_0x152e('0x7a'))['me']['id'],_0x2ce398=_0x5068ef['graveyardPosition'],_0x9ba176=_0x5068ef[_0x152e('0xbc')]['parent'];_0x5068ef[_0x152e('0xfa')]();const _0x5b7c41=_0x9ba176[_0x152e('0x72')](_0x152e('0x53')),_0x3f7e88=_0x5068ef['insertionPosition'][_0x152e('0xf8')];if(_0x2ce398){const _0x2fdb6c=_0x3f7e88[_0x152e('0x72')](_0x152e('0x53')),_0x5972ea=_0x9ba176[_0x152e('0x72')]('vid_end');_0x9ba176[_0x152e('0x80')](_0x152e('0x53'),_0x2fdb6c),_0x3f7e88[_0x152e('0x80')](_0x152e('0x53'),_0x5972ea),this[_0x152e('0x37')][_0x152e('0x90')](_0x9ba176[_0x152e('0x72')](_0x152e('0x53')),{'userId':_0x4726e0}),this[_0x152e('0x37')][_0x152e('0x90')](_0x3f7e88[_0x152e('0x72')](_0x152e('0x5f')),{'userId':_0x4726e0});}else{const _0xe5e740=this[_0x152e('0x31')]++,_0x10f599=this[_0x152e('0x31')]++;_0x9ba176[_0x152e('0x80')]('vid_end',_0xe5e740),_0x3f7e88[_0x152e('0x80')](_0x152e('0x5f'),_0x10f599),_0x3f7e88[_0x152e('0x80')]('vid_end',_0x5b7c41),this[_0x152e('0x37')][_0x152e('0x90')](_0xe5e740,{'userId':_0x4726e0}),this[_0x152e('0x37')][_0x152e('0x90')](_0x10f599,{'userId':_0x4726e0});}}[_0x152e('0x98')](_0x2031d8){if(!_0x2031d8['affectsData'])return;const _0x511202=(_0x2031d8=this[_0x152e('0x29')](_0x2031d8,this['_diffRoots']))[_0x152e('0xf')]?_0x2031d8[_0x152e('0xf')]['root']:null,_0x2e2291=_0x2031d8['newRange']?_0x2031d8['newRange'][_0x152e('0x91')]:null;_0x511202&&this[_0x152e('0xc5')][_0x152e('0x102')](_0x2031d8['name']),_0x2e2291&&this[_0x152e('0xc5')][_0x152e('0x90')](_0x2031d8['name'],_0x2031d8['newRange'][_0x152e('0xb0')]());const _0x4a00c2=null===_0x2031d8[_0x152e('0x10')]?null:_0x2031d8[_0x152e('0x10')]||this[_0x152e('0x7')][_0x152e('0x26')][_0x152e('0x7d')](_0x152e('0x7a'))['me']['id'],_0x308aec=_0x2031d8['name'];if(!this['_touchedMarkers'][_0x152e('0xf3')](_0x308aec))return void this[_0x152e('0xa2')][_0x152e('0x90')](_0x308aec,{'range':_0x2031d8[_0x152e('0xf')],'userId':_0x4a00c2});const _0x4a70df=this[_0x152e('0xa2')][_0x152e('0x7d')](_0x308aec),_0x2ab8e0=_0x4a70df[_0x152e('0x7f')],_0x47b360=_0x2031d8[_0x152e('0x95')];null==_0x2ab8e0&&null==_0x47b360||_0x2ab8e0&&_0x47b360&&_0x2ab8e0[_0x152e('0xeb')](_0x47b360)?this[_0x152e('0xa2')][_0x152e('0x102')](_0x2031d8[_0x152e('0xcc')]):_0x4a70df[_0x152e('0xef')]=_0x4a00c2;}[_0x152e('0xa5')](_0x4b4b3e,_0x3e6c4e){this[_0x152e('0x36')]['has'](_0x4b4b3e['rootName'])?this['_diffRoots'][_0x152e('0x7d')](_0x4b4b3e[_0x152e('0xfc')])[_0x152e('0xff')]=_0x4b4b3e[_0x152e('0x4e')]:(this['_diffRoots'][_0x152e('0x90')](_0x4b4b3e[_0x152e('0xfc')],G(_0x4b4b3e[_0x152e('0xfc')],!0x0)),this[_0x152e('0x22')][_0x152e('0x90')](_0x4b4b3e[_0x152e('0xfc')],{}),_0x3e6c4e&&this[_0x152e('0xdd')][_0x152e('0x90')](_0x4b4b3e[_0x152e('0xfc')],G(_0x4b4b3e['rootName'],!0x0)));const _0x355a88=null===_0x4b4b3e[_0x152e('0x10')]?null:_0x4b4b3e[_0x152e('0x10')]||this['editor'][_0x152e('0x26')][_0x152e('0x7d')](_0x152e('0x7a'))['me']['id'],_0x809b27=this['_touchedRoots'][_0x152e('0x7d')](_0x4b4b3e[_0x152e('0xfc')]);_0x809b27&&_0x809b27[_0x152e('0xef')]===_0x355a88?this[_0x152e('0xfb')][_0x152e('0x102')](_0x4b4b3e[_0x152e('0xfc')]):this[_0x152e('0xfb')][_0x152e('0x90')](_0x4b4b3e[_0x152e('0xfc')],{'userId':_0x355a88,'isAttached':_0x4b4b3e[_0x152e('0x4e')]});}[_0x152e('0xb3')](_0x37cf9f){const _0x55bab9=this[_0x152e('0x22')][_0x152e('0x7d')](_0x37cf9f[_0x152e('0x91')][_0x152e('0xfc')]);null===_0x37cf9f[_0x152e('0xbd')]?delete _0x55bab9[_0x37cf9f[_0x152e('0xe9')]]:_0x55bab9[_0x37cf9f[_0x152e('0xe9')]]=_0x37cf9f[_0x152e('0xbd')];}}function q(_0x1dc292){const _0x2dff38=G(_0x1dc292[_0x152e('0xfc')],_0x1dc292[_0x152e('0xec')]());for(const _0x5b9efb of _0x1dc292[_0x152e('0xc2')]()){const _0x3528cc=_0x5b9efb[_0x152e('0x75')](!0x0);_0x2dff38[_0x152e('0x45')](_0x3528cc);}return _0x2dff38;}function G(_0x2cefed,_0x2708db=!0x0){const _0x1cdd82=new _0x287911();return _0x1cdd82[_0x152e('0xfc')]=_0x2cefed,_0x1cdd82['_isAttached']=_0x2708db,_0x1cdd82[_0x152e('0xec')]=()=>_0x1cdd82[_0x152e('0xff')],_0x1cdd82;}function L(_0x5aec21,_0x13459e,_0x153e92){const _0x37fb45='elementEnd'==_0x5aec21[_0x152e('0x11')]?_0x153e92[_0x152e('0xdc')](_0x5aec21[_0x152e('0x44')],'end'):_0x153e92[_0x152e('0x104')](_0x5aec21[_0x152e('0x44')]);return _0x153e92[_0x152e('0x33')](_0x13459e,_0x37fb45[_0x152e('0x39')],_0x37fb45['stickiness']);}function W(_0x121095,_0x441fa8,_0xbab644){const _0xa7fc59=_0x152e('0x77')==_0x121095[_0x152e('0x11')]?_0xbab644['createPositionAt'](_0x121095[_0x152e('0x44')],0x0):_0xbab644[_0x152e('0xc1')](_0x121095[_0x152e('0x44')]);return _0xbab644[_0x152e('0x33')](_0x441fa8,_0xa7fc59['path'],_0xa7fc59[_0x152e('0xda')]);}
@@ -1,25 +1,25 @@
1
- /**
2
- * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
- import '../theme/revisionviewer.css';
6
- /**
7
- function printTape( tape ) {
8
- const elements = tape.map(
9
- item => item.item.data ? item.item.data : item.type == 'elementStart' ? '<' + item.item.name + '>' : '</' + item.item.name + '>'
10
- ).join( '' );
11
-
12
- const signs = tape.map( v => {
13
- const item = v.item;
14
- const sign = ( v.isAdded || v.isAddSuggestion ) ? v.isRemoved ? '=' : '+' : v.isRemoved ? '-' : ' ';
15
- const len = item.data ? item.data.length : v.type == 'elementStart' ? item.name.length + 2 : item.name.length + 3;
16
-
17
- return sign.repeat( len );
18
- } ).join( '' );
19
-
20
- console.log( elements );
21
- console.log( signs );
22
- }
23
-
24
- window.printTape = printTape;
25
- /**/
1
+ /**
2
+ * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ import '../theme/revisionviewer.css';
6
+ /**
7
+ function printTape( tape ) {
8
+ const elements = tape.map(
9
+ item => item.item.data ? item.item.data : item.type == 'elementStart' ? '<' + item.item.name + '>' : '</' + item.item.name + '>'
10
+ ).join( '' );
11
+
12
+ const signs = tape.map( v => {
13
+ const item = v.item;
14
+ const sign = ( v.isAdded || v.isAddSuggestion ) ? v.isRemoved ? '=' : '+' : v.isRemoved ? '-' : ' ';
15
+ const len = item.data ? item.data.length : v.type == 'elementStart' ? item.name.length + 2 : item.name.length + 3;
16
+
17
+ return sign.repeat( len );
18
+ } ).join( '' );
19
+
20
+ console.log( elements );
21
+ console.log( signs );
22
+ }
23
+
24
+ window.printTape = printTape;
25
+ /**/