@ckeditor/ckeditor5-revision-history 40.0.0 → 40.2.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 (66) hide show
  1. package/LICENSE.md +3 -3
  2. package/README.md +11 -11
  3. package/build/revision-history.js +1 -1
  4. package/package.json +6 -6
  5. package/src/augmentation.d.ts +29 -29
  6. package/src/changeitem.d.ts +58 -58
  7. package/src/changeitem.js +1 -1
  8. package/src/editor/revisionviewereditor.d.ts +27 -27
  9. package/src/editor/revisionviewereditor.js +1 -1
  10. package/src/editor/revisionviewereditorui.d.ts +28 -28
  11. package/src/editor/revisionviewereditorui.js +1 -1
  12. package/src/editor/revisionviewereditoruiview.d.ts +43 -43
  13. package/src/editor/revisionviewereditoruiview.js +1 -1
  14. package/src/index.d.ts +15 -15
  15. package/src/revision.d.ts +153 -153
  16. package/src/revision.js +1 -1
  17. package/src/revisiondiff.d.ts +24 -24
  18. package/src/revisiondiff.js +1 -1
  19. package/src/revisionhistory.d.ts +99 -99
  20. package/src/revisionhistory.js +1 -1
  21. package/src/revisionhistoryadapter.d.ts +64 -64
  22. package/src/revisionhistoryconfig.d.ts +60 -60
  23. package/src/revisionsrepository.d.ts +52 -52
  24. package/src/revisionsrepository.js +1 -1
  25. package/src/revisiontracker.d.ts +81 -81
  26. package/src/revisiontracker.js +1 -1
  27. package/src/revisionviewer.d.ts +25 -25
  28. package/src/revisionviewer.js +1 -1
  29. package/src/ui/revision/createrevisionactionsdropdown.d.ts +10 -10
  30. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  31. package/src/ui/revision/revisionauthorview.d.ts +5 -5
  32. package/src/ui/revision/revisionauthorview.js +1 -1
  33. package/src/ui/revision/revisionnameview.d.ts +5 -5
  34. package/src/ui/revision/revisionnameview.js +1 -1
  35. package/src/ui/revision/revisionview.d.ts +95 -95
  36. package/src/ui/revision/revisionview.js +1 -1
  37. package/src/ui/revision/subrevisioncollapserview.d.ts +21 -21
  38. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  39. package/src/ui/revision/subrevisionview.d.ts +34 -34
  40. package/src/ui/revision/subrevisionview.js +1 -1
  41. package/src/ui/revision/utils.d.ts +5 -5
  42. package/src/ui/revision/utils.js +1 -1
  43. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +81 -81
  44. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  45. package/src/ui/revisionhistory/revisionhistoryui.d.ts +26 -26
  46. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  47. package/src/ui/revisionssidebar/revisionssidebar.d.ts +44 -44
  48. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  49. package/src/ui/revisionssidebar/revisionssidebarheaderview.d.ts +5 -5
  50. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  51. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +29 -29
  52. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  53. package/src/ui/revisionssidebar/revisionssidebarview.d.ts +44 -44
  54. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  55. package/src/ui/revisionssidebar/utils.d.ts +9 -9
  56. package/src/ui/revisionssidebar/utils.js +1 -1
  57. package/src/ui/revisionviewer/changedetailsview.d.ts +22 -22
  58. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  59. package/src/ui/revisionviewer/changesnavigationview.d.ts +40 -40
  60. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  61. package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +26 -26
  62. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  63. package/src/ui/revisionviewer/revisionviewerui.d.ts +28 -28
  64. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  65. package/src/utils/common-translations.d.ts +11 -11
  66. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
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')]);}
23
+ const _0xe922=['diffData','tableCell','_cloneOperation','_touched','getTransformedByOperation','_getState','previousPosition','_getFromVersion','_transformMarkers','children','createPositionFromPath','addRevisionData','vid_start','max','insert','_isPendingUpdate','delete','_replaceEditorDataWithRevisionData','_handleRootAttributeOperation','roots','_handleOperation','resolve','isAdd','shift','saveRevision','_removeMetaData','conversion','repository','_fixPosition','getRevisions','_handleSplitOperation','_handleMergeOperation','config','_diffRoots','define','changeRootAttribute','authors','_operations','graveyardPosition','editor-initial-data-replaced-with-revision-data','addRevision','_makeIdsRoot','newValue','useFillerType','revisionHistory.resumeUnsavedRevision','key','then','_continueCurrentRevision','newRange','_initialRevisionId','root','map','_markers','Users','history','text','sendBufferedUpdates','getOperations','stickiness','processor','hasContent','type','_baseRoots','_bufferedUpdates','update','initial','RevisionTracker','Empty\x20document','getRootNames','_handleInsertOperation','_diffRootsAttributes','pluginName','init','merge','PENDING_ACTION_REVISION_HISTORY','_handleMarkerOperation','marker','_loadedStateData','getAncestors','name','attributes','getIndex','keys','Initial\x20revision','userId','add','_savedMetaData','_fixOperation','_calculateMetaData','_source','getChildren','RevisionsRepository','isReady','_baseRootsAttributes','insertionPosition','rootsAttributes','_update','parent','revision-end','isAttached','parse','paragraph','split','_saveMetaData','_makeModelFromViewString','_touchedRoots','clear','_idsRoots','_getBaseVids','getCurrentRevisionId','_lastFrom','plugins','elementEnd','collaboration.channelId','_insertChild','revision:','markerToData','PendingActions','filter','insertions','createRevision','source','_findInsertionIndex','_pendingAction','afterInit','_loadState','getOperation','buildRevisionData','authorsIds','NEGATIVE_INFINITY','elementStart','getRevision','getNodeByPath','end','documentFragment','vid','move','adapter','getRevisionRootsAttributes','createPositionBefore','values','_handleRootOperation','keepParagraph','toView','deletions','upcast','_addPendingAction','isEqual','set','creatorId','startsWith','document','getChild','model','fromEntries','$text','removeRootAttribute','range','baseVersion','getTime','for','RealTimeCollaborationClient','requires','_bufferUpdate','dataDowncast','oldRange','getRange','_startingVersion','markers','get','marked','dataToMarker','createdAt','version','updateRevisions','sort','currentRevision','attributesAfter','view','editor','_setAttribute','_revisionId','nodeAfter','revision-start','setSource','_processRootBeforeSave','_removePendingAction','howMany','_startingRevisionId','stringify','deletion','slice','reverse','attributesBefore','getWalker','_makeRevision','getData','_baseIdsRoots','getAttributes','_appendChild','getUser','fromVersion','from','creator','find','nodes','_setConversion','toVersion','vid_end','attachChange','string','length','_authorId','rootName','_getPreviousFrom','_getVidAttributeName','has','size','_createInitialRevision','data','_loadRevisionData','revision','_fixRange','createRange','getRevisionDocumentData','_revisionDataBuilder','_removeRevisionMarkers','start','_execute','_markChanges','getRoot','getMovedRangeStart','clone','element','getLatestVersion','_getViewJson','_lastTo','offsetSize','_isInit','$graveyard','finally','_isAttached','path','initialData','_prepareViewToSave','_touchedMarkers','_applyOperations','_copyMarkers','createPositionAfter','push','_reset','_createCurrentRevision','getAttribute','item','bind','editing'];(function(_0x109eb5,_0xe9221a){const _0x2f64b2=function(_0x2bd1ed){while(--_0x2bd1ed){_0x109eb5['push'](_0x109eb5['shift']());}};_0x2f64b2(++_0xe9221a);}(_0xe922,0xa9));const _0x2f64=function(_0x109eb5,_0xe9221a){_0x109eb5=_0x109eb5-0x0;let _0x2f64b2=_0xe922[_0x109eb5];return _0x2f64b2;};import{Users as _0x5d8fd8}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0xf48e37,PendingActions as _0x3179f6}from'ckeditor5/src/core';import{logWarning as _0x23e1bd,uid as _0x120365}from'ckeditor5/src/utils';import{Position as _0x3b368c,Range as _0x264834,Element as _0x1e316f,DocumentFragment as _0x480454,ViewText as _0x5809a4,ViewElement as _0x35eb87,ViewContainerElement as _0x4c0906,ViewAttributeElement as _0x5b9546,ViewEmptyElement as _0x34260f,ViewRawElement as _0x414059,ViewUIElement as _0x14a6b7,ViewDocumentFragment as _0x1a6f9d}from'ckeditor5/src/engine';import _0x584024 from'./revisionsrepository';import{getTranslation as _0x1c67a9}from'./utils/common-translations';import{cloneDeep as _0x2bcde0,isEqual as _0x2302f3}from'lodash-es';const B={'c':_0x4c0906,'a':_0x5b9546,'e':_0x34260f,'r':_0x414059,'u':_0x14a6b7};export default class l extends _0xf48e37{static get[_0x2f64('0x9e')](){return _0x2f64('0x99');}static get[_0x2f64('0xf9')](){return[_0x5d8fd8,_0x584024,_0x3179f6];}constructor(_0x106dd8){super(_0x106dd8),this['adapter']=null,this['currentRevision']=null,this[_0x2f64('0x38')]=new H(this[_0x2f64('0xa')]),this[_0x2f64('0x88')]=this[_0x2f64('0xa')][_0x2f64('0x77')][_0x2f64('0x0')](_0x2f64('0xc8'))||_0x2f64('0x98'),this[_0x2f64('0x96')]=new Map(),this[_0x2f64('0xa4')]=null;const _0x4ae85a=_0x120365();this[_0x2f64('0xb0')]={'history':this[_0x2f64('0xa')]['model'][_0x2f64('0xee')][_0x2f64('0x8d')],'getLatestVersion':()=>Promise[_0x2f64('0x6c')](this[_0x2f64('0xa')][_0x2f64('0xf0')]['document'][_0x2f64('0x4')]),'getCurrentRevisionId':()=>_0x4ae85a},this[_0x2f64('0xeb')](_0x2f64('0xb3'),!0x1),this[_0x2f64('0xeb')]('isEnabled',!0x0),this[_0x2f64('0xeb')]('_isPendingUpdate',!0x1),this[_0x2f64('0xa')][_0x2f64('0x77')][_0x2f64('0x79')](_0x2f64('0x83'),!0x0),this[_0x2f64('0xa')][_0x2f64('0x71')][_0x2f64('0xf7')](_0x2f64('0xe8'))[_0x2f64('0x2')]({'view':_0x2f64('0x34')});}[_0x2f64('0x9f')](){this['repository']=this[_0x2f64('0xa')][_0x2f64('0xc6')][_0x2f64('0x0')](_0x2f64('0xb2')),this[_0x2f64('0x25')](),this[_0x2f64('0xa')][_0x2f64('0x32')]['on']('ready',()=>{const _0x312d2a=this[_0x2f64('0x72')][_0x2f64('0xda')](0x0),_0x418eb2=_0x312d2a&&null===_0x312d2a['creator']?_0x312d2a:null;if(this[_0x2f64('0x86')]=!!_0x418eb2&&this[_0x2f64('0xa')][_0x2f64('0x77')][_0x2f64('0x0')](_0x2f64('0x83')),this[_0x2f64('0xa')]['plugins'][_0x2f64('0x2f')](_0x2f64('0xf8'))){const _0x1cf03d=this['_source']['getCurrentRevisionId'](),_0x2285f6=this['repository']['getRevision'](_0x1cf03d);if(_0x2285f6)this[_0x2f64('0xfe')]=_0x2285f6[_0x2f64('0x20')],this[_0x2f64('0x86')]=!0x1;else{const _0xba5a8a=this[_0x2f64('0xb0')][_0x2f64('0x8d')][_0x2f64('0x7c')][_0x2f64('0x23')](_0x3ae090=>!_0x3ae090[_0x2f64('0x45')]),_0x1b825d=_0xba5a8a?_0xba5a8a['baseVersion']:this[_0x2f64('0xb0')][_0x2f64('0x8d')][_0x2f64('0x4')];_0x312d2a?(_0x312d2a[_0x2f64('0x26')]<_0x1b825d&&_0x312d2a['_update']({'toVersion':_0x1b825d}),this[_0x2f64('0x86')]?(this[_0x2f64('0xb0')][_0x2f64('0xc4')]=()=>_0x418eb2['id'],this['_startingVersion']=_0x418eb2[_0x2f64('0x20')]):(this[_0x2f64('0xfe')]=_0x312d2a[_0x2f64('0x26')],this[_0x2f64('0x86')]=!0x1)):(this['_startingVersion']=_0x1b825d,this['_continueCurrentRevision']=!0x1);}}else _0x418eb2&&(this[_0x2f64('0xa')][_0x2f64('0xf0')][_0x2f64('0xee')][_0x2f64('0x8d')][_0x2f64('0x4')]=Math[_0x2f64('0x64')](_0x418eb2[_0x2f64('0x26')],this[_0x2f64('0xa')][_0x2f64('0xf0')][_0x2f64('0xee')]['history'][_0x2f64('0x4')]),_0x418eb2[_0x2f64('0x20')]===_0x418eb2[_0x2f64('0x26')]?(0x0!==_0x418eb2[_0x2f64('0x20')]&&(this[_0x2f64('0xb0')]['getCurrentRevisionId']=()=>_0x418eb2['id']),this[_0x2f64('0x86')]=!0x1):this[_0x2f64('0x86')]&&(this[_0x2f64('0xb0')][_0x2f64('0xc4')]=()=>_0x418eb2['id'],this[_0x2f64('0xfe')]=_0x418eb2[_0x2f64('0x20')])),this[_0x2f64('0x86')]||(this[_0x2f64('0xfe')]=this[_0x2f64('0xa')][_0x2f64('0xf0')]['document'][_0x2f64('0x4')]);this['_revisionDataBuilder'][_0x2f64('0x9f')](this[_0x2f64('0xb0')][_0x2f64('0x8d')]),this[_0x2f64('0x31')](this['_startingVersion']),this[_0x2f64('0x52')](this[_0x2f64('0xfe')]),this[_0x2f64('0xe0')]&&this[_0x2f64('0x8f')]();}),this[_0x2f64('0x55')](_0x2f64('0xb3'))['to'](this,_0x2f64('0x66'),_0x43a4aa=>!_0x43a4aa);}async[_0x2f64('0xd3')](){if(this[_0x2f64('0x72')][_0x2f64('0x2a')]>0x0){const _0x563339=this[_0x2f64('0x72')][_0x2f64('0xda')](0x0),_0x24a16c=await this[_0x2f64('0x37')](_0x563339),_0x577de8=await this[_0x2f64('0xe1')](_0x563339);this[_0x2f64('0x68')](_0x24a16c,_0x577de8);}}[_0x2f64('0xf')](_0x18e637){this[_0x2f64('0xb0')]=_0x18e637;}async[_0x2f64('0x97')](){const _0x345ad8=await this[_0x2f64('0xb0')][_0x2f64('0x41')]();if(_0x345ad8>this[_0x2f64('0x7')][_0x2f64('0x26')]){await this[_0x2f64('0xd4')]();const _0x2eeb02=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x345ad8});_0x2eeb02[_0x2f64('0x7b')]=_0x2eeb02[_0x2f64('0xd7')]['map'](_0x26ecaf=>this[_0x2f64('0xa')][_0x2f64('0xc6')][_0x2f64('0x0')](_0x2f64('0x8c'))[_0x2f64('0x1f')](_0x26ecaf)),this[_0x2f64('0x7')][_0x2f64('0xb7')](_0x2eeb02);}}async[_0x2f64('0xd4')](){this[_0x2f64('0x86')]&&!this[_0x2f64('0xa4')]&&(await this['_loadRevisionData'](this['currentRevision']),this[_0x2f64('0x38')]['loadState'](this[_0x2f64('0x7')]),this[_0x2f64('0xa4')]={'fromVersion':this[_0x2f64('0x7')][_0x2f64('0x20')],'authors':this[_0x2f64('0x7')][_0x2f64('0x7b')][_0x2f64('0x16')]()});}async[_0x2f64('0x6f')](_0x31c9f6={},_0x4fbc9f=null){const _0x3c0ebe=[];await this[_0x2f64('0xd4')](),this[_0x2f64('0x86')]=!0x1,_0x4fbc9f>this['currentRevision'][_0x2f64('0x26')]&&(_0x4fbc9f=null),null===_0x4fbc9f&&(_0x4fbc9f=await this['_source'][_0x2f64('0x41')]());const _0x5348ad=this[_0x2f64('0x5e')](_0x4fbc9f),_0x286167=this[_0x2f64('0xd6')]({'from':_0x5348ad,'to':_0x4fbc9f});if(this[_0x2f64('0x7')][_0x2f64('0x26')]<_0x4fbc9f){const _0x6c0b36=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4fbc9f,'to':_0x4fbc9f});_0x6c0b36[_0x2f64('0x7b')]=[],_0x6c0b36['authorsIds']=[],_0x6c0b36['id']=this[_0x2f64('0x7')]['id'],this[_0x2f64('0x7')][_0x2f64('0xb7')](_0x6c0b36,!0x0),delete _0x6c0b36[_0x2f64('0x7b')],_0x3c0ebe[_0x2f64('0x50')](_0x6c0b36);}_0x31c9f6[_0x2f64('0xec')]=this['editor']['plugins'][_0x2f64('0x0')]('Users')['me']['id'],_0x31c9f6[_0x2f64('0xa6')]=_0x31c9f6[_0x2f64('0xa6')]||null,_0x31c9f6['id']=_0x31c9f6['id']||_0x120365(),_0x31c9f6={..._0x31c9f6,..._0x286167};const _0x117423=this[_0x2f64('0x62')](_0x31c9f6);_0x3c0ebe[_0x2f64('0x50')](_0x31c9f6);const _0x89d0d0=this[_0x2f64('0x72')][_0x2f64('0xa8')](_0x117423);if(0x0!==_0x89d0d0){const _0x4f728e=this[_0x2f64('0x72')][_0x2f64('0xda')](_0x89d0d0-0x1);if(_0x4f728e[_0x2f64('0x20')]!==_0x4fbc9f){const _0xddc55c=this['_revisionDataBuilder']['getData'](_0x4fbc9f,_0x4f728e[_0x2f64('0x26')]),_0x324a33={'id':_0x4f728e['id'],'diffData':_0xddc55c[_0x2f64('0x57')],'authorsIds':_0xddc55c[_0x2f64('0xd7')],'authors':_0xddc55c[_0x2f64('0xd7')][_0x2f64('0x8a')](_0x799214=>this[_0x2f64('0xa')][_0x2f64('0xc6')][_0x2f64('0x0')](_0x2f64('0x8c'))[_0x2f64('0x1f')](_0x799214)),'fromVersion':_0x4fbc9f};_0x4f728e===this['currentRevision']&&(_0x324a33[_0x2f64('0x3')]=new Date(_0x31c9f6[_0x2f64('0x3')][_0x2f64('0xf6')]()+0xa)),_0x4f728e[_0x2f64('0xb7')](_0x324a33,!0x0),delete _0x324a33[_0x2f64('0x7b')],_0x3c0ebe[_0x2f64('0x50')](_0x324a33);}}if(this[_0x2f64('0xe0')]){for(const _0x590615 of _0x3c0ebe)this[_0x2f64('0xfa')](_0x590615['id'],_0x590615,!0x0);this[_0x2f64('0x8f')]();}return _0x117423;}[_0x2f64('0x62')](_0x522d0a){const _0xca7bfd=this[_0x2f64('0x72')][_0x2f64('0xcf')](_0x522d0a);return this[_0x2f64('0xe0')]&&_0xca7bfd['on']('_update',(_0x1a7005,_0x24a7e7,_0x3d2a99)=>{_0x3d2a99||(this[_0x2f64('0xfa')](_0x24a7e7['id'],_0x24a7e7,!0x0),this[_0x2f64('0x8f')]());}),this[_0x2f64('0x72')][_0x2f64('0x7f')](_0xca7bfd,this['_findInsertionIndex'](_0xca7bfd)),_0xca7bfd;}async[_0x2f64('0x37')](_0x84f140){await this[_0x2f64('0x33')](_0x84f140);const _0x341f03={};for(const _0x31dcfa in _0x84f140[_0x2f64('0x57')]){if(_0x84f140[_0x2f64('0x57')][_0x31dcfa][_0x2f64('0x28')]&&!_0x84f140[_0x2f64('0x57')][_0x31dcfa]['attachChange'][_0x2f64('0xba')])continue;const _0x28c749=this[_0x2f64('0x39')](JSON[_0x2f64('0xbb')](_0x84f140['diffData'][_0x31dcfa][_0x2f64('0xce')])),_0x302732=this[_0x2f64('0xa')][_0x2f64('0x56')][_0x2f64('0x9')]['document'],_0x222320=new _0x1a6f9d(_0x302732,_0x28c749[_0x2f64('0x8a')](_0x222314=>J(_0x222314,this[_0x2f64('0xa')])));this[_0x2f64('0xa')]['data'][_0x2f64('0x92')][_0x2f64('0x82')](_0x2f64('0x1')),_0x341f03[_0x31dcfa]=this[_0x2f64('0xa')][_0x2f64('0x32')][_0x2f64('0x92')]['toData'](_0x222320),this[_0x2f64('0xa')][_0x2f64('0x32')]['processor'][_0x2f64('0x82')]('default');}return _0x341f03;}async[_0x2f64('0xe1')](_0x560dc8){await this[_0x2f64('0x33')](_0x560dc8);const _0x38a3ff={};for(const _0x53ee66 in _0x560dc8[_0x2f64('0x57')])_0x560dc8[_0x2f64('0x57')][_0x53ee66][_0x2f64('0x28')]&&!_0x560dc8[_0x2f64('0x57')][_0x53ee66][_0x2f64('0x28')][_0x2f64('0xba')]||(_0x38a3ff[_0x53ee66]=_0x560dc8[_0x2f64('0x57')][_0x53ee66][_0x2f64('0x8')]||{});return _0x38a3ff;}[_0x2f64('0x8f')](){if(0x0===this[_0x2f64('0x96')][_0x2f64('0x30')])return;if(this[_0x2f64('0x66')])return;let _0x3ee83e=Array[_0x2f64('0x21')](this[_0x2f64('0x96')][_0x2f64('0xe3')]());this[_0x2f64('0x96')][_0x2f64('0xc1')]();for(let _0x235631=0x0;_0x235631<_0x3ee83e[_0x2f64('0x2a')];_0x235631++){const _0x4bcbe6=_0x3ee83e[_0x235631];let _0x59dd62=!0x1;for(const _0x4bb32c of Object[_0x2f64('0xa9')](_0x4bcbe6))void 0x0===_0x4bcbe6[_0x4bb32c]?delete _0x4bcbe6[_0x4bb32c]:'id'!==_0x4bb32c&&(_0x59dd62=!0x0);_0x59dd62||(_0x3ee83e[_0x235631]=null);}if(_0x3ee83e=_0x3ee83e[_0x2f64('0xcd')](_0x34d23b=>null!==_0x34d23b),!_0x3ee83e[_0x2f64('0x2a')])return;for(let _0x3400b5=0x0;_0x3400b5<_0x3ee83e[_0x2f64('0x2a')];_0x3400b5++){const _0x56bab7=_0x3ee83e[_0x3400b5];void 0x0!==_0x56bab7[_0x2f64('0x20')]&&void 0x0===_0x56bab7[_0x2f64('0x26')]&&(_0x56bab7['toVersion']=this[_0x2f64('0x72')]['getRevision'](_0x56bab7['id'])[_0x2f64('0x26')]),void 0x0!==_0x56bab7['toVersion']&&void 0x0===_0x56bab7[_0x2f64('0x20')]&&(_0x56bab7[_0x2f64('0x20')]=this[_0x2f64('0x72')][_0x2f64('0xda')](_0x56bab7['id'])[_0x2f64('0x20')]);}const _0x44ca7a=this[_0x2f64('0xa')][_0x2f64('0x77')][_0x2f64('0x0')](_0x2f64('0xc8'));this[_0x2f64('0x66')]=!0x0,this['_addPendingAction'](),this[_0x2f64('0xe0')][_0x2f64('0x5')](_0x3ee83e,_0x44ca7a)[_0x2f64('0x47')](()=>{this['_isPendingUpdate']=!0x1;})[_0x2f64('0x85')](_0x2a0382=>{if(_0x2a0382)for(const _0x3490fa of _0x2a0382)this['setRevisionData']({'id':_0x3490fa['id'],'createdAt':_0x3490fa[_0x2f64('0x3')]});this['_removePendingAction'](),this['sendBufferedUpdates']();});}[_0x2f64('0x68')](_0x559930,_0xe1bb9d){let _0x1fce3e=this[_0x2f64('0xa')][_0x2f64('0x77')][_0x2f64('0x0')](_0x2f64('0x4a')),_0x52e4d8=this[_0x2f64('0xa')]['config']['get'](_0x2f64('0xb6'));if(void 0x0===_0x1fce3e){_0x1fce3e={};for(const _0x5deb6f of this[_0x2f64('0xa')]['model'][_0x2f64('0xee')][_0x2f64('0x9b')]())_0x1fce3e[_0x5deb6f]='';}if('string'==typeof _0x1fce3e&&(_0x1fce3e={'main':_0x1fce3e}),void 0x0===_0x52e4d8){_0x52e4d8={};for(const _0x568f00 of this[_0x2f64('0xa')][_0x2f64('0xf0')][_0x2f64('0xee')]['getRootNames']())_0x52e4d8[_0x568f00]={};}let _0x59d34b=!0x1;const _0x34e322=Object[_0x2f64('0xa9')](_0x1fce3e),_0x21d81d=Object[_0x2f64('0xa9')](_0x559930);for(const _0x289dca of _0x34e322){if(_0x1fce3e[_0x289dca]!==_0x559930[_0x289dca]&&''!==_0x1fce3e[_0x289dca]['trim']()){_0x59d34b=!0x0;break;}if(!_0x2302f3(_0x52e4d8[_0x289dca],_0xe1bb9d[_0x289dca])&&Object[_0x2f64('0xa9')](_0x52e4d8[_0x289dca])[_0x2f64('0x2a')]>0x0){_0x59d34b=!0x0;break;}}_0x59d34b||(_0x59d34b=_0x21d81d['some'](_0x313d17=>!this[_0x2f64('0xa')][_0x2f64('0xf0')][_0x2f64('0xee')][_0x2f64('0x3d')](_0x313d17))),_0x59d34b&&_0x23e1bd(_0x2f64('0x7e'),{'editorData':_0x1fce3e,'editorRootsAttributes':_0x52e4d8,'revisionData':_0x559930,'revisionRootsAttributes':_0xe1bb9d}),this[_0x2f64('0xa')][_0x2f64('0x77')][_0x2f64('0xeb')]('initialData',_0x559930),this[_0x2f64('0xa')]['config']['set'](_0x2f64('0xb6'),_0xe1bb9d);}[_0x2f64('0xe9')](){if(!this[_0x2f64('0xd2')]){const _0x2b0e24=this[_0x2f64('0xa')]['plugins'][_0x2f64('0x0')](_0x2f64('0xcc'));this['_pendingAction']=_0x2b0e24[_0x2f64('0xac')](_0x1c67a9(this['editor']['locale'],_0x2f64('0xa1')));}}[_0x2f64('0x11')](){this[_0x2f64('0xd2')]&&(this[_0x2f64('0xa')][_0x2f64('0xc6')][_0x2f64('0x0')]('PendingActions')['remove'](this[_0x2f64('0xd2')]),this['_pendingAction']=null);}[_0x2f64('0xd1')](_0x4139de){const _0x44ae77=this['repository'][_0x2f64('0x74')]();_0x44ae77[_0x2f64('0x17')]();let _0x25f0de=0x0;for(;_0x25f0de<_0x44ae77['length'];){const _0x189f75=_0x44ae77[_0x25f0de];if(_0x189f75===this[_0x2f64('0x7')]){_0x25f0de++;continue;}if(_0x189f75['id']===this[_0x2f64('0x88')])break;const _0x4c41b0=_0x4139de[_0x2f64('0x26')]-_0x189f75[_0x2f64('0x26')]||_0x4139de['fromVersion']-_0x189f75[_0x2f64('0x20')];if(_0x4c41b0>0x0)break;if(_0x4c41b0<0x0)_0x25f0de++;else{if(!_0x4139de[_0x2f64('0x22')]&&_0x189f75[_0x2f64('0x22')])break;if(_0x189f75['creator']||!_0x4139de[_0x2f64('0x22')]){if(_0x4139de['createdAt']>_0x189f75[_0x2f64('0x3')])break;_0x25f0de++;}else _0x25f0de++;}}return _0x25f0de;}['setRevisionData'](_0x1f01a3){const _0x4f5b48=this['repository'][_0x2f64('0xda')](_0x1f01a3['id']);if(_0x1f01a3['createdAt']&&(_0x1f01a3[_0x2f64('0x3')]=new Date(_0x1f01a3[_0x2f64('0x3')])),_0x1f01a3[_0x2f64('0xd7')]){const _0xc67b54=this['editor'][_0x2f64('0xc6')][_0x2f64('0x0')](_0x2f64('0x8c'));_0x1f01a3[_0x2f64('0x7b')]=_0x1f01a3[_0x2f64('0xd7')][_0x2f64('0x8a')](_0x27a52e=>_0xc67b54[_0x2f64('0x1f')](_0x27a52e));}_0x4f5b48[_0x2f64('0xb7')](_0x1f01a3,!0x0);}[_0x2f64('0xd6')]({revision:_0x2e89d0=null,from:_0x686921=null,to:_0x24257c=null}){_0x686921=null!==_0x686921?_0x686921:_0x2e89d0['fromVersion'],_0x24257c=null!==_0x24257c?_0x24257c:_0x2e89d0[_0x2f64('0x26')];const _0x32e2a6=this[_0x2f64('0x38')][_0x2f64('0x1b')](_0x686921,_0x24257c),_0x49c189={'diffData':_0x32e2a6[_0x2f64('0x57')],'authorsIds':_0x32e2a6[_0x2f64('0xd7')],'fromVersion':_0x686921,'toVersion':_0x24257c};if(!_0x2e89d0||_0x24257c!==_0x2e89d0[_0x2f64('0x26')]){const _0x31f305=_0x24257c-0x1,_0x4b37ae=this[_0x2f64('0xb0')][_0x2f64('0x8d')][_0x2f64('0xd5')](_0x31f305);_0x49c189[_0x2f64('0x3')]=_0x4b37ae&&_0x4b37ae['createdAt']||new Date();}if(this[_0x2f64('0xa4')]&&_0x686921===this[_0x2f64('0xa4')][_0x2f64('0x20')])for(const _0x4c1d18 of this[_0x2f64('0xa4')][_0x2f64('0x7b')])_0x49c189['authorsIds']['includes'](_0x4c1d18['id'])||_0x49c189[_0x2f64('0xd7')][_0x2f64('0x50')](_0x4c1d18['id']);return _0x49c189;}[_0x2f64('0x33')](_0x448abf){if(!_0x448abf||_0x448abf['diffData'])return Promise['resolve']();{const _0x4f3726=this['editor']['config'][_0x2f64('0x0')](_0x2f64('0xc8'));return this[_0x2f64('0xe0')][_0x2f64('0xda')]({'channelId':_0x4f3726,'revisionId':_0x448abf['id']})['then'](_0x19a529=>{_0x448abf[_0x2f64('0x57')]=_0x19a529[_0x2f64('0x57')];});}}['_bufferUpdate'](_0x3836b6,_0x53bc07,_0x5341c9){if(this[_0x2f64('0x96')]['has'](_0x3836b6)){const _0x44b1f9=this[_0x2f64('0x96')][_0x2f64('0x0')](_0x3836b6);_0x53bc07=_0x5341c9?{..._0x44b1f9,..._0x53bc07}:{..._0x53bc07,..._0x44b1f9};}this[_0x2f64('0x96')][_0x2f64('0xeb')](_0x3836b6,_0x53bc07);}[_0x2f64('0x5e')](_0x1d5719){const _0x2bfa03=this['repository'][_0x2f64('0x74')]();_0x2bfa03[_0x2f64('0x17')](),_0x2bfa03[_0x2f64('0x6e')]();const _0x5f494e=_0x2bfa03[_0x2f64('0x23')](_0x1bb8f8=>_0x1bb8f8[_0x2f64('0x26')]<=_0x1d5719)['toVersion'];return _0x5f494e<this['_startingVersion']?this[_0x2f64('0xfe')]:_0x5f494e;}[_0x2f64('0x31')](_0xad4da){const _0x3e69ad=this[_0x2f64('0x72')]['getRevision'](this[_0x2f64('0x72')]['length']-0x1);if(_0x3e69ad)this[_0x2f64('0x88')]=_0x3e69ad['id'];else{const _0xd7e33b=!this[_0x2f64('0xa')]['model'][_0x2f64('0xee')][_0x2f64('0x6a')][_0x2f64('0x23')](_0x3f7c51=>this[_0x2f64('0xa')][_0x2f64('0xf0')][_0x2f64('0x93')](_0x3f7c51)),_0x1c58ce=this[_0x2f64('0xa')]['plugins'][_0x2f64('0x0')](_0x2f64('0x8c'))['me']['id'],_0x3eb6ba=_0x1c67a9(this[_0x2f64('0xa')]['locale'],_0xd7e33b?_0x2f64('0x9a'):_0x2f64('0xaa'));this[_0x2f64('0x1a')]({'from':_0xad4da,'to':_0xad4da,'id':this['_initialRevisionId'],'name':_0x3eb6ba,'creatorId':_0x1c58ce});}}[_0x2f64('0x52')](_0x32dfea){const _0x430014=this['_source']['getCurrentRevisionId']();this['currentRevision']=this[_0x2f64('0x72')][_0x2f64('0xda')](_0x430014),this[_0x2f64('0x7')]||(this['currentRevision']=this[_0x2f64('0x1a')]({'from':_0x32dfea,'to':_0x32dfea,'id':_0x430014,'name':'','creatorId':null}));}['_makeRevision']({name:_0x545682,from:_0x4c76bf,to:_0x50a9be,creatorId:_0x3c6bfe,id:_0x1e38b1}){const _0xdcbfc5=this['buildRevisionData']({'from':_0x4c76bf,'to':_0x50a9be});_0xdcbfc5[_0x2f64('0xa6')]=_0x545682,_0xdcbfc5['creatorId']=_0x3c6bfe,_0xdcbfc5['id']=_0x1e38b1;const _0x26e5fe=this[_0x2f64('0x62')](_0xdcbfc5);return this[_0x2f64('0xe0')]&&this['_bufferUpdate'](_0xdcbfc5['id'],_0xdcbfc5,!0x0),_0x26e5fe;}[_0x2f64('0x25')](){this['editor'][_0x2f64('0x71')][_0x2f64('0xf7')](_0x2f64('0xfb'))[_0x2f64('0xcb')]({'model':_0x2f64('0x34')});}[_0x2f64('0x39')](_0x116f5e){return(_0x116f5e=_0x116f5e[_0x2f64('0xcd')](_0x189154=>!_0x189154[_0x2f64('0xa6')]||_0x2f64('0xe')!==_0x189154['name']&&_0x2f64('0xb9')!==_0x189154[_0x2f64('0xa6')]))['forEach'](_0x5d5a58=>{_0x2f64('0x29')!=typeof _0x5d5a58&&(_0x5d5a58['children']=this[_0x2f64('0x39')](_0x5d5a58[_0x2f64('0x60')]),_0x5d5a58[_0x2f64('0xa7')]=_0x5d5a58[_0x2f64('0xa7')][_0x2f64('0xcd')](_0x3863f7=>!_0x3863f7[0x0][_0x2f64('0xed')]('data-revision-')));}),_0x116f5e;}}function J(_0x40f553,_0x324ed0){const _0x2d9578=_0x324ed0['editing'][_0x2f64('0x9')]['document'];if(_0x2f64('0x29')==typeof _0x40f553)return new _0x5809a4(_0x2d9578,_0x40f553);{const _0x1d06af=_0x40f553[_0x2f64('0x60')][_0x2f64('0x8a')](_0x3a470c=>J(_0x3a470c,_0x324ed0));return new(B[_0x40f553[(_0x2f64('0x94'))]]||_0x35eb87)(_0x2d9578,_0x40f553['name'],_0x40f553[_0x2f64('0xa7')],_0x1d06af);}}class H{constructor(_0x1dbedc){this[_0x2f64('0xa')]=_0x1dbedc,this[_0x2f64('0xad')]=new Map(),this[_0x2f64('0xc5')]=-0x1,this[_0x2f64('0x43')]=-0x1,this['_markers']=new Map(),this[_0x2f64('0x78')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x2f64('0x95')]=new Map(),this['_baseRootsAttributes']=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this[_0x2f64('0x5a')]=new Map(),this['_touchedMarkers']=new Map(),this['_touchedRoots']=new Map(),this[_0x2f64('0xc')]=0x1;}[_0x2f64('0x9f')](_0x3ecc96){this['source']=_0x3ecc96;const _0x47d995=new Map(),_0x559e28=new Map(),_0x15e15b=this[_0x2f64('0xa')][_0x2f64('0xf0')][_0x2f64('0xee')]['roots'][_0x2f64('0x8a')](_0x139ea3=>_0x139ea3[_0x2f64('0x2c')]);for(const _0x1e6bdc of _0x15e15b){const _0x32f65a=this[_0x2f64('0xa')][_0x2f64('0xf0')][_0x2f64('0xee')][_0x2f64('0x3d')](_0x1e6bdc),_0x519a38=q(_0x32f65a);_0x47d995[_0x2f64('0xeb')](_0x1e6bdc,_0x519a38),_0x559e28[_0x2f64('0xeb')](_0x1e6bdc,Object[_0x2f64('0xf1')](_0x32f65a[_0x2f64('0x1d')]()));}const _0x243de7=Array[_0x2f64('0x21')](this[_0x2f64('0xa')][_0x2f64('0xf0')][_0x2f64('0xff')])[_0x2f64('0x8a')](_0x3df096=>[_0x3df096['name'],_0x3df096[_0x2f64('0xfd')]()]),_0x5af727=this[_0x2f64('0xd0')][_0x2f64('0x4')];this[_0x2f64('0xbe')](_0x5af727,_0x47d995,_0x243de7,_0x559e28),this[_0x2f64('0x13')]=this[_0x2f64('0xc')];const _0x42e08b=new Map(),_0x20ecf8=new Map();for(const _0x489c91 of _0x15e15b){const _0xea60ba=G(_0x489c91);_0x42e08b[_0x2f64('0xeb')](_0x489c91,_0xea60ba),_0x20ecf8[_0x2f64('0xeb')](_0x489c91,{});}this[_0x2f64('0xbe')](Number[_0x2f64('0xd8')],_0x42e08b,[],_0x20ecf8);}[_0x2f64('0x1b')](_0x525a04,_0xc0cb27){if(this[_0x2f64('0xc5')]===_0x525a04&&this[_0x2f64('0x43')]<=_0xc0cb27)this[_0x2f64('0xad')]['size']>0x1&&this[_0x2f64('0x70')](this[_0x2f64('0x43')]),this[_0x2f64('0x4d')](this[_0x2f64('0x43')],_0xc0cb27,!0x0);else{if(!this[_0x2f64('0xad')][_0x2f64('0x2f')](_0x525a04)){const _0x735690=this[_0x2f64('0x2d')](_0x525a04);this[_0x2f64('0xaf')](_0x735690,_0x525a04,!0x1);}this[_0x2f64('0xaf')](_0x525a04,_0xc0cb27,!0x0);}return this[_0x2f64('0xc5')]=_0x525a04,this[_0x2f64('0x43')]=_0xc0cb27,this['_getState']();}['loadState'](_0x1341c4){this[_0x2f64('0x51')](),this[_0x2f64('0xc5')]=_0x1341c4[_0x2f64('0x20')],this[_0x2f64('0x43')]=_0x1341c4[_0x2f64('0x26')];for(const _0x3fcec1 in _0x1341c4[_0x2f64('0x57')]){const _0x1aa340=_0x1341c4[_0x2f64('0x57')][_0x3fcec1][_0x2f64('0x28')],_0x434859=_0x2bcde0(_0x1341c4[_0x2f64('0x57')][_0x3fcec1][_0x2f64('0x18')])||{},_0x2810fe=this[_0x2f64('0xbf')](_0x1341c4[_0x2f64('0x57')][_0x3fcec1][_0x2f64('0xe7')]);_0x2810fe['rootName']=_0x3fcec1,_0x2810fe[_0x2f64('0x48')]=!_0x1aa340||!_0x1aa340['isAttached'],_0x2810fe[_0x2f64('0xba')]=()=>_0x2810fe[_0x2f64('0x48')],this[_0x2f64('0x95')][_0x2f64('0xeb')](_0x3fcec1,_0x2810fe),this[_0x2f64('0xb4')][_0x2f64('0xeb')](_0x3fcec1,_0x434859),_0x1aa340&&this['_touchedRoots'][_0x2f64('0xeb')](_0x3fcec1,_0x1aa340);const _0x3942b7=this[_0x2f64('0x80')](_0x2810fe);this['_baseIdsRoots'][_0x2f64('0xeb')](_0x3fcec1,_0x3942b7);for(const [_0x923e2e,_0x3d55fa]of _0x2810fe[_0x2f64('0xff')]){if(!_0x923e2e['startsWith'](_0x2f64('0xca')))continue;const _0x271633=_0x923e2e[_0x2f64('0xbd')](':')[0x2];for(const _0x6be79f of _0x3d55fa['getWalker']({'singleCharacters':!0x0})){const _0x2efe0e=this[_0x2f64('0x2e')](_0x6be79f),_0x1e020e=_0x2f64('0xc7')==_0x6be79f[_0x2f64('0x94')]?_0x6be79f[_0x2f64('0x5d')][_0x2f64('0x49')]['slice'](0x0,-0x1):_0x6be79f['previousPosition'][_0x2f64('0x49')],_0x425994=_0x3942b7[_0x2f64('0xdb')](_0x1e020e)[_0x2f64('0x53')](_0x2efe0e);this[_0x2f64('0x5a')][_0x2f64('0xeb')](_0x425994,{'userId':_0x271633});}}}this['_startingRevisionId']=this[_0x2f64('0xc')];const _0x49815c=[...Array(this['_revisionId'])[_0x2f64('0xa9')]()][_0x2f64('0x16')](0x1)[_0x2f64('0xcd')](_0x4e8c53=>!this[_0x2f64('0x5a')][_0x2f64('0x2f')](_0x4e8c53));let _0x4cf682=0x0;const _0x50761b=new Map();for(const _0x26a7ff in _0x1341c4[_0x2f64('0x57')]){const _0x35f1a8=_0x1341c4['diffData'][_0x26a7ff][_0x2f64('0x28')],_0x47afe1=_0x2bcde0(_0x1341c4[_0x2f64('0x57')][_0x26a7ff][_0x2f64('0x8')])||{},_0x49740d=this[_0x2f64('0xbf')](_0x1341c4[_0x2f64('0x57')][_0x26a7ff][_0x2f64('0xce')]);_0x49740d[_0x2f64('0x2c')]=_0x26a7ff,_0x49740d[_0x2f64('0x48')]=!_0x35f1a8||_0x35f1a8['isAttached'],_0x49740d[_0x2f64('0xba')]=()=>_0x49740d[_0x2f64('0x48')],this[_0x2f64('0x78')][_0x2f64('0xeb')](_0x26a7ff,_0x49740d),this[_0x2f64('0x9d')]['set'](_0x26a7ff,_0x47afe1);const _0x2fa4d0=this[_0x2f64('0x80')](_0x49740d,Number[_0x2f64('0xd8')]);this[_0x2f64('0xc2')][_0x2f64('0xeb')](_0x26a7ff,_0x2fa4d0),_0x50761b[_0x2f64('0xeb')](_0x26a7ff,_0x49740d[_0x2f64('0xba')]()?_0x47afe1:{});for(const [_0x27fcc7,_0x466474]of _0x49740d[_0x2f64('0xff')]){if(!_0x27fcc7[_0x2f64('0xed')]('revision:'))continue;const _0x50dd8f=_0x27fcc7[_0x2f64('0xbd')](':')[0x2];for(const _0x37845e of _0x466474[_0x2f64('0x19')]({'singleCharacters':!0x0})){const _0x261f2e=this[_0x2f64('0x2e')](_0x37845e),_0x5c5c4e=this[_0x2f64('0xc')]++,_0x3d13d0=_0x2f64('0xc7')==_0x37845e[_0x2f64('0x94')]?_0x37845e[_0x2f64('0x5d')][_0x2f64('0x49')]['slice'](0x0,-0x1):_0x37845e[_0x2f64('0x5d')][_0x2f64('0x49')];_0x2fa4d0[_0x2f64('0xdb')](_0x3d13d0)[_0x2f64('0xb')](_0x261f2e,_0x5c5c4e),this[_0x2f64('0x5a')][_0x2f64('0xeb')](_0x5c5c4e,{'userId':_0x50dd8f});}}for(const _0x43a261 of this[_0x2f64('0xa')][_0x2f64('0xf0')]['createRangeIn'](_0x49740d)[_0x2f64('0x19')]({'singleCharacters':!0x0})){const _0x18c238=this[_0x2f64('0x2e')](_0x43a261),_0x5801aa=_0x2f64('0xc7')==_0x43a261['type']?_0x43a261[_0x2f64('0x5d')][_0x2f64('0x49')][_0x2f64('0x16')](0x0,-0x1):_0x43a261[_0x2f64('0x5d')][_0x2f64('0x49')],_0x53b490=_0x2fa4d0[_0x2f64('0xdb')](_0x5801aa);_0x53b490[_0x2f64('0x53')](_0x18c238)>0x0||_0x53b490['_setAttribute'](_0x18c238,_0x49815c[_0x4cf682++]);}for(const [_0x966640,_0x36b5ae]of _0x49740d['markers'])_0x966640[_0x2f64('0xed')](_0x2f64('0xca'))||this[_0x2f64('0x8b')][_0x2f64('0xeb')](_0x966640,_0x36b5ae);}const _0x290083=G(_0x2f64('0x46'));this['_baseRoots'][_0x2f64('0xeb')]('$graveyard',_0x290083),this[_0x2f64('0x1c')][_0x2f64('0xeb')](_0x2f64('0x46'),this[_0x2f64('0x80')](_0x290083,0x1));const _0x4fd58f=G(_0x2f64('0x46'));this[_0x2f64('0x78')][_0x2f64('0xeb')](_0x2f64('0x46'),_0x4fd58f),this[_0x2f64('0xc2')][_0x2f64('0xeb')](_0x2f64('0x46'),this[_0x2f64('0x80')](_0x4fd58f,0x1));const _0x30f6ef=Array[_0x2f64('0x21')](this[_0x2f64('0x78')])['map'](([_0x3ff631,_0x125311])=>[_0x3ff631,q(_0x125311)]);this[_0x2f64('0xbe')](this[_0x2f64('0x43')],_0x30f6ef,this['_markers'],_0x50761b);}[_0x2f64('0xbf')](_0x4c14dd){const _0xd2ce4f=JSON[_0x2f64('0xbb')](_0x4c14dd),_0x4a5512=this[_0x2f64('0xa')][_0x2f64('0x56')][_0x2f64('0x9')]['document'],_0x3a0340=new _0x1a6f9d(_0x4a5512,_0xd2ce4f['map'](_0x31276f=>J(_0x31276f,this[_0x2f64('0xa')])));return this[_0x2f64('0xa')][_0x2f64('0x32')]['toModel'](_0x3a0340);}[_0x2f64('0xbe')](_0x72e168,_0x2cf7eb,_0x12613e,_0x38c83d){const _0x5469ae=new Map(_0x2cf7eb),_0x1a2fbe=new Map(_0x2bcde0(_0x38c83d)),_0x35946e=new Map();for(const [_0x11ee78,_0x302308]of _0x12613e)_0x35946e[_0x2f64('0xeb')](_0x11ee78,{'start':_0x302308[_0x2f64('0x3a')][_0x2f64('0x3f')](),'end':_0x302308[_0x2f64('0xdc')][_0x2f64('0x3f')](),'rootName':_0x302308[_0x2f64('0x89')][_0x2f64('0x2c')]});this[_0x2f64('0xad')][_0x2f64('0xeb')](_0x72e168,{'roots':_0x5469ae,'markers':_0x35946e,'rootsAttributes':_0x1a2fbe});}[_0x2f64('0x70')](_0x27f008){this['_savedMetaData'][_0x2f64('0x67')](_0x27f008);}['reInit'](){this[_0x2f64('0x51')](),this[_0x2f64('0xc5')]=-0x1,this['_lastTo']=-0x1,this[_0x2f64('0xad')][_0x2f64('0xc1')](),this[_0x2f64('0x9f')](this[_0x2f64('0xd0')]);}['_reset'](){this['_touched'][_0x2f64('0xc1')](),this[_0x2f64('0x4c')][_0x2f64('0xc1')](),this[_0x2f64('0xc0')][_0x2f64('0xc1')](),this[_0x2f64('0x78')][_0x2f64('0xc1')](),this[_0x2f64('0x9d')]['clear'](),this[_0x2f64('0x95')][_0x2f64('0xc1')](),this[_0x2f64('0xb4')][_0x2f64('0xc1')](),this[_0x2f64('0xc2')][_0x2f64('0xc1')](),this[_0x2f64('0x1c')][_0x2f64('0xc1')](),this[_0x2f64('0x8b')][_0x2f64('0xc1')](),this['_revisionId']=0x1,this[_0x2f64('0x13')]=this[_0x2f64('0xc')];}[_0x2f64('0x80')](_0x2535db,_0x108afb=null){let _0x5a2830=null;_0x2535db['is'](_0x2f64('0xdd'))||(_0x5a2830=new _0x1e316f(_0x2535db[_0x2f64('0xa6')],{'vid_start':null===_0x108afb?this[_0x2f64('0xc')]++:_0x108afb++}));const _0x28e1ed=[];for(const _0x939e8b of _0x2535db[_0x2f64('0xb1')]())if(_0x939e8b['is'](_0x2f64('0x40'))){_0x28e1ed['push'](this[_0x2f64('0x80')](_0x939e8b,_0x108afb));const _0xd95cab=_0x28e1ed[_0x28e1ed['length']-0x1];null!==_0x108afb&&(_0x108afb=_0xd95cab['is']('element',_0x2f64('0xf2'))?_0xd95cab['getAttribute'](_0x2f64('0xde'))+0x1:_0xd95cab['getAttribute']('vid_end')+0x1);}else for(let _0x5d1250=0x0;_0x5d1250<_0x939e8b['offsetSize'];_0x5d1250++)_0x28e1ed['push'](new _0x1e316f('$text',{'vid':null===_0x108afb?this[_0x2f64('0xc')]++:_0x108afb++}));if(_0x2535db['is'](_0x2f64('0xdd'))){const _0x411a05=G(_0x2535db[_0x2f64('0x2c')]);return _0x411a05[_0x2f64('0xc9')](0x0,_0x28e1ed),_0x411a05;}return _0x5a2830[_0x2f64('0xb')](_0x2f64('0x27'),null===_0x108afb?this['_revisionId']++:_0x108afb++),_0x5a2830[_0x2f64('0xc9')](0x0,_0x28e1ed),_0x5a2830;}[_0x2f64('0xaf')](_0xb9f8a9,_0x5ab724,_0x24d7a8){this[_0x2f64('0x51')]();const {roots:_0x85e823,markers:_0x4200f6,rootsAttributes:_0xabf32d}=this[_0x2f64('0xad')][_0x2f64('0x0')](_0xb9f8a9);this[_0x2f64('0x95')]=new Map(_0x85e823),this['_baseRootsAttributes']=new Map(_0x2bcde0(_0xabf32d));for(const [_0x47c45b,_0x2b91f9]of this[_0x2f64('0x95')])if(_0x2f64('0x46')!==_0x47c45b&&(this[_0x2f64('0x78')][_0x2f64('0xeb')](_0x47c45b,q(_0x2b91f9)),this[_0x2f64('0x9d')]=new Map(_0x2bcde0(_0xabf32d)),_0x24d7a8)){const _0x3c2776=this[_0x2f64('0xc')];this[_0x2f64('0xc2')]['set'](_0x47c45b,this[_0x2f64('0x80')](_0x2b91f9)),this[_0x2f64('0x1c')][_0x2f64('0xeb')](_0x47c45b,this[_0x2f64('0x80')](_0x2b91f9,_0x3c2776));}this[_0x2f64('0x13')]=this[_0x2f64('0xc')],this[_0x2f64('0x78')]['set']('$graveyard',q(this[_0x2f64('0x95')][_0x2f64('0x0')](_0x2f64('0x46')))),_0x24d7a8&&this[_0x2f64('0xc2')]['set'](_0x2f64('0x46'),this['_makeIdsRoot'](this['_baseRoots'][_0x2f64('0x0')](_0x2f64('0x46'))));for(const [_0x1d81bd,_0x3ea27a]of _0x4200f6){const _0x4f5656=this[_0x2f64('0x95')]['get'](_0x3ea27a[_0x2f64('0x2c')]),_0x106de0=this['_diffRoots']['get'](_0x3ea27a['rootName']),_0x42631c=new _0x264834(this[_0x2f64('0x73')](_0x3ea27a[_0x2f64('0x3a')],_0x4f5656),this[_0x2f64('0x73')](_0x3ea27a[_0x2f64('0xdc')],_0x4f5656)),_0x2e797c=this[_0x2f64('0x35')](_0x42631c,_0x106de0);_0x4f5656[_0x2f64('0xff')][_0x2f64('0xeb')](_0x1d81bd,_0x42631c),this[_0x2f64('0x8b')]['set'](_0x1d81bd,_0x2e797c);}this[_0x2f64('0x4d')](_0xb9f8a9,_0x5ab724,_0x24d7a8);}[_0x2f64('0x4d')](_0x2d1019,_0x24cd51,_0x40807d){for(const _0x4b2e75 of this['source'][_0x2f64('0x90')](_0x2d1019,_0x24cd51))this[_0x2f64('0x6b')](_0x4b2e75,_0x40807d);for(const _0x5cdb9b of this[_0x2f64('0x78')][_0x2f64('0xe3')]())_0x5cdb9b[_0x2f64('0xff')]['clear']();for(const [_0x1bc93a,_0x70253c]of this[_0x2f64('0x8b')]){this['_diffRoots'][_0x2f64('0x0')](_0x70253c[_0x2f64('0x89')]['rootName'])[_0x2f64('0xff')][_0x2f64('0xeb')](_0x1bc93a,_0x70253c[_0x2f64('0x3f')]());}const _0xe44a55=new Map(),_0x37e29b=new Map();for(const [_0x52f30b,_0x2cbab3]of this[_0x2f64('0x78')])_0xe44a55[_0x2f64('0xeb')](_0x52f30b,q(_0x2cbab3)),_0x37e29b[_0x2f64('0xeb')](_0x52f30b,this[_0x2f64('0x9d')][_0x2f64('0x0')](_0x52f30b));this['_saveMetaData'](_0x24cd51,_0xe44a55,this[_0x2f64('0x8b')],_0x37e29b);}[_0x2f64('0x2d')](_0x32e6ef){const _0x40357c=Array[_0x2f64('0x21')](this[_0x2f64('0xad')][_0x2f64('0xa9')]());_0x40357c[_0x2f64('0x6')]((_0x2f506c,_0x379482)=>_0x2f506c-_0x379482),_0x40357c[_0x2f64('0x17')]();for(const _0x20d6e9 of _0x40357c)if(_0x20d6e9<_0x32e6ef)return _0x20d6e9;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3a092a,_0x298c81){const _0x595053=Array[_0x2f64('0x21')](_0x298c81['markers'])[_0x2f64('0x8a')](([_0x28a065,_0x344991])=>[_0x28a065,this[_0x2f64('0x35')](_0x344991,_0x3a092a)]);_0x3a092a[_0x2f64('0xff')]=new Map(_0x595053);}['_transformMarkers'](_0x34cac9){for(const _0x5f3cc6 of this[_0x2f64('0x8b')][_0x2f64('0xe3')]()){const _0x4005db=_0x5f3cc6[_0x2f64('0x5b')](_0x34cac9),_0x171c69=_0x264834['_createFromRanges'](_0x4005db);_0x5f3cc6[_0x2f64('0x3a')]=_0x171c69[_0x2f64('0x3a')],_0x5f3cc6[_0x2f64('0xdc')]=_0x171c69[_0x2f64('0xdc')];}}['_handleOperation'](_0x3a67b9,_0x427e1c){if('addRoot'==_0x3a67b9[_0x2f64('0x94')]||'detachRoot'==_0x3a67b9[_0x2f64('0x94')])return void this[_0x2f64('0xe4')](_0x3a67b9,_0x427e1c);if(_0x2f64('0x65')==_0x3a67b9[_0x2f64('0x94')]){const _0x1b3966=_0x3a67b9['position'][_0x2f64('0x89')][_0x2f64('0x2c')];this['_diffRoots'][_0x2f64('0x2f')](_0x1b3966)||(this[_0x2f64('0x78')][_0x2f64('0xeb')](_0x1b3966,G(_0x1b3966,!0x0)),this['_diffRootsAttributes'][_0x2f64('0xeb')](_0x1b3966,{}),_0x427e1c&&this[_0x2f64('0xc2')][_0x2f64('0xeb')](_0x1b3966,G(_0x1b3966,!0x0)));}else{if('addRootAttribute'==_0x3a67b9[_0x2f64('0x94')]||_0x2f64('0xf3')==_0x3a67b9[_0x2f64('0x94')]||_0x2f64('0x7a')==_0x3a67b9[_0x2f64('0x94')])return void this[_0x2f64('0x69')](_0x3a67b9);}const _0x150307=this['_cloneOperation'](_0x3a67b9,this['_diffRoots']);if(_0x2f64('0xa3')!==_0x3a67b9[_0x2f64('0x94')]&&(_0x150307[_0x2f64('0x3b')](),this[_0x2f64('0x5f')](_0x150307)),_0x427e1c)switch(_0x150307['type']){case _0x2f64('0x65'):this[_0x2f64('0x9c')](_0x3a67b9);break;case _0x2f64('0xdf'):case'remove':case'reinsert':this['_handleMoveOperation'](_0x3a67b9);break;case _0x2f64('0xa0'):this['_handleMergeOperation'](_0x3a67b9);break;case'split':this[_0x2f64('0x75')](_0x3a67b9);break;case'marker':this[_0x2f64('0xa2')](_0x3a67b9);}}[_0x2f64('0x59')](_0x53ab10,_0x1f8f5f){const _0x250d85=_0x53ab10[_0x2f64('0x3f')]();return _0x250d85[_0x2f64('0x2b')]=_0x53ab10[_0x2f64('0x2b')],this['_fixOperation'](_0x250d85,_0x1f8f5f),_0x250d85;}[_0x2f64('0xc3')](_0x3c29ff){return _0x3c29ff['map'](_0x431f03=>{const _0x3363f5=this['_getVidAttributeName'](_0x431f03);return Number(_0x431f03[_0x2f64('0x54')][_0x2f64('0x53')](_0x3363f5));});}['_generateTape'](_0xec1884,_0x275413){if(_0xec1884['is']('element',_0x2f64('0xf2')))_0x275413[_0x2f64('0x50')]({'item':_0xec1884,'type':_0x2f64('0x8e')});else{_0xec1884['is'](_0x2f64('0x40'))&&_0x275413[_0x2f64('0x50')]({'item':_0xec1884,'type':_0x2f64('0xd9')});for(const _0x166f3d of _0xec1884['getChildren']())this['_generateTape'](_0x166f3d,_0x275413);_0xec1884['is']('element')&&_0x275413[_0x2f64('0x50')]({'item':_0xec1884,'type':_0x2f64('0xc7')});}return _0x275413;}[_0x2f64('0x5c')](){const _0x74e3d=new Map(this[_0x2f64('0x5a')]),_0x268a26=new Map(_0x74e3d),_0x27951c=new Map(),_0x26808c={'insertions':{},'deletions':{}},_0x6bcd0={'insertions':{},'deletions':{}},_0x221fef=new Map(),_0x2027e9=new Set([...this[_0x2f64('0x95')][_0x2f64('0xa9')](),...this[_0x2f64('0x78')]['keys']()]);_0x2027e9[_0x2f64('0x67')](_0x2f64('0x46'));for(const _0x3dc1dd of _0x2027e9){const _0x55fd60=this[_0x2f64('0x78')][_0x2f64('0x0')](_0x3dc1dd)||G(_0x3dc1dd,!0x1),_0x16d0de=this[_0x2f64('0x95')][_0x2f64('0x0')](_0x3dc1dd)||G(_0x3dc1dd,!0x1);_0x55fd60[_0x2f64('0xba')]()||_0x16d0de[_0x2f64('0xba')]()?(_0x26808c['insertions'][_0x3dc1dd]=q(_0x55fd60),_0x26808c[_0x2f64('0xe7')][_0x3dc1dd]=q(_0x16d0de),this[_0x2f64('0x4e')](_0x26808c['deletions'][_0x3dc1dd],_0x16d0de),this[_0x2f64('0x4e')](_0x26808c['insertions'][_0x3dc1dd],_0x55fd60),_0x6bcd0[_0x2f64('0xce')][_0x3dc1dd]=this['_generateTape'](this[_0x2f64('0xc2')][_0x2f64('0x0')](_0x3dc1dd),[]),_0x6bcd0['deletions'][_0x3dc1dd]=this['_generateTape'](this[_0x2f64('0x1c')][_0x2f64('0x0')](_0x3dc1dd)||G(_0x3dc1dd,!0x1),[])):_0x2027e9['delete'](_0x3dc1dd);}for(const _0x38a1e4 of _0x2027e9){const _0x3e08ce=_0x6bcd0[_0x2f64('0xce')][_0x38a1e4];for(const _0x51a49a of _0x3e08ce){const _0x122dcb=this[_0x2f64('0x2e')](_0x51a49a),_0x1d8e3d=_0x51a49a['item'][_0x2f64('0x53')](_0x122dcb);_0x268a26[_0x2f64('0x67')](_0x1d8e3d),_0x1d8e3d>=this[_0x2f64('0x13')]&&_0x27951c[_0x2f64('0xeb')](_0x1d8e3d,_0x74e3d[_0x2f64('0x0')](_0x1d8e3d));}}for(const _0x5183fe of _0x2027e9){const _0x331684=_0x6bcd0[_0x2f64('0xce')][_0x5183fe],_0x338ef5=this[_0x2f64('0xc3')](_0x6bcd0['deletions'][_0x5183fe]);let _0x2d4de8=0x0;for(const _0x33bc80 of _0x331684){const _0xb11c32=this[_0x2f64('0x2e')](_0x33bc80),_0x8c940a=_0x33bc80[_0x2f64('0x54')][_0x2f64('0x53')](_0xb11c32);if(!_0x27951c[_0x2f64('0x2f')](_0x8c940a)&&!_0x221fef['has'](_0x8c940a)){if(_0x268a26[_0x2f64('0x2f')](_0x8c940a))_0x2d4de8++;else{if(_0x8c940a!=_0x338ef5[_0x2d4de8]){const _0x1f21a1=_0x74e3d[_0x2f64('0x0')](_0x8c940a)||_0x74e3d[_0x2f64('0x0')](_0x338ef5[_0x2d4de8]);for(;_0x8c940a!=_0x338ef5[_0x2d4de8];)_0x268a26[_0x2f64('0x2f')](_0x338ef5[_0x2d4de8])||(_0x221fef[_0x2f64('0xeb')](_0x338ef5[_0x2d4de8],_0x1f21a1),_0x74e3d[_0x2f64('0xeb')](_0x338ef5[_0x2d4de8],_0x1f21a1)),_0x2d4de8++;}_0x2d4de8++;}}}}for(const _0x26f2fe of _0x2027e9){const _0x433546=_0x6bcd0[_0x2f64('0xce')][_0x26f2fe];for(const _0x51dae6 of _0x433546){const _0x25df53=this[_0x2f64('0x2e')](_0x51dae6),_0x1fc196=_0x51dae6[_0x2f64('0x54')][_0x2f64('0x53')](_0x25df53);if(_0x221fef[_0x2f64('0x2f')](_0x1fc196)){const _0x14b74c=_0x221fef[_0x2f64('0x0')](_0x1fc196);_0x268a26[_0x2f64('0x2f')](_0x1fc196)||_0x268a26[_0x2f64('0xeb')](_0x1fc196,{..._0x14b74c}),_0x27951c[_0x2f64('0xeb')](_0x1fc196,{..._0x14b74c});}}}for(const _0x204fc9 of _0x268a26[_0x2f64('0xa9')]())_0x204fc9>=this[_0x2f64('0x13')]&&_0x268a26['delete'](_0x204fc9);const _0x14e984=new Map();for(const _0xf04990 of _0x2027e9){let _0x54b29e=_0x6bcd0[_0x2f64('0xce')][_0xf04990];for(const _0x1ae21f of _0x54b29e)if(_0x1ae21f['item']['is']('element',_0x2f64('0x58'))){const _0x5e8bf3=this[_0x2f64('0x2e')](_0x1ae21f),_0x1d5dee=_0x1ae21f['item'][_0x2f64('0x53')](_0x5e8bf3);if(_0x27951c['has'](_0x1d5dee)){const _0x36929c=_0x1ae21f[_0x2f64('0x54')][_0x2f64('0xb8')][_0x2f64('0xb8')][_0x2f64('0x53')](_0x2f64('0x63')),_0x54bb52=_0x14e984[_0x2f64('0x0')](_0x36929c)||new Set();_0x54bb52['add'](_0x27951c['get'](_0x1d5dee)[_0x2f64('0xab')]),_0x14e984['set'](_0x36929c,_0x54bb52);}}_0x54b29e=_0x6bcd0['deletions'][_0xf04990];for(const _0x304d82 of _0x54b29e)if(_0x304d82[_0x2f64('0x54')]['is'](_0x2f64('0x40'),_0x2f64('0x58'))){const _0x1a61cd=this['_getVidAttributeName'](_0x304d82),_0x35e886=_0x304d82[_0x2f64('0x54')][_0x2f64('0x53')](_0x1a61cd);if(_0x268a26[_0x2f64('0x2f')](_0x35e886)){const _0x2a53a0=_0x304d82[_0x2f64('0x54')][_0x2f64('0xb8')][_0x2f64('0xb8')][_0x2f64('0x53')](_0x2f64('0x63')),_0x4eb0cb=_0x14e984[_0x2f64('0x0')](_0x2a53a0)||new Set();_0x4eb0cb['add'](_0x268a26['get'](_0x35e886)['userId']),_0x14e984[_0x2f64('0xeb')](_0x2a53a0,_0x4eb0cb);}}for(const _0x4ea84c of _0x14e984['keys']())(_0x27951c[_0x2f64('0x2f')](_0x4ea84c)||_0x268a26[_0x2f64('0x2f')](_0x4ea84c))&&_0x14e984['delete'](_0x4ea84c);}for(const _0x2ff6af of _0x2027e9){const _0x579a40=_0x6bcd0[_0x2f64('0xce')][_0x2ff6af];let _0x2a5170=null,_0x4f2fd6=null;for(const _0x55e2d7 of _0x579a40){const _0x29366b=this[_0x2f64('0x2e')](_0x55e2d7),_0x1c9b5d=_0x55e2d7['item'][_0x2f64('0x53')](_0x29366b),_0x429749=_0x14e984[_0x2f64('0x0')](_0x1c9b5d);_0x429749&&'elementStart'==_0x55e2d7[_0x2f64('0x94')]&&(_0x2a5170=Array[_0x2f64('0x21')](_0x429749)[0x0],_0x4f2fd6=_0x55e2d7[_0x2f64('0x54')][_0x2f64('0x53')](_0x2f64('0x27'))),_0x2a5170&&(_0x268a26[_0x2f64('0xeb')](_0x1c9b5d,{'userId':_0x2a5170}),_0x27951c[_0x2f64('0xeb')](_0x1c9b5d,{'userId':_0x2a5170})),_0x1c9b5d==_0x4f2fd6&&(_0x2a5170=null,_0x4f2fd6=null);}}const _0xd1b27a={},_0x34e5d2=new Set();for(const _0x3fc2b1 of _0x2027e9){const _0x43ef72=_0x26808c['deletions'][_0x3fc2b1],_0x56fdb4=_0x26808c[_0x2f64('0xce')][_0x3fc2b1];for(const {userId:_0x2658c2}of this[_0x2f64('0x4c')]['values']())null!==_0x2658c2&&_0x34e5d2[_0x2f64('0xac')](_0x2658c2);for(const {userId:_0x52a9f8}of this[_0x2f64('0xc0')]['values']())null!==_0x52a9f8&&_0x34e5d2['add'](_0x52a9f8);this[_0x2f64('0x3c')](_0x56fdb4,_0x6bcd0[_0x2f64('0xce')][_0x3fc2b1],_0x27951c,'insertion',_0x34e5d2),this['_markChanges'](_0x43ef72,_0x6bcd0['deletions'][_0x3fc2b1],_0x268a26,_0x2f64('0x15'),_0x34e5d2),_0xd1b27a[_0x3fc2b1]={'insertions':this[_0x2f64('0x4b')](_0x56fdb4),'deletions':this[_0x2f64('0x4b')](_0x43ef72),'attachChange':this['_touchedRoots'][_0x2f64('0x0')](_0x3fc2b1)||null,'attributesBefore':_0x2bcde0(this[_0x2f64('0xb4')][_0x2f64('0x0')](_0x3fc2b1))||{},'attributesAfter':_0x2bcde0(this[_0x2f64('0x9d')]['get'](_0x3fc2b1))};}return{'diffData':_0xd1b27a,'authorsIds':Array[_0x2f64('0x21')](_0x34e5d2)};}[_0x2f64('0x10')](_0x4d8932){for(const [,_0x368d8d]of _0x4d8932[_0x2f64('0xff')]){const _0x12790f=_0x368d8d[_0x2f64('0x3a')][_0x2f64('0xa5')]()[_0x2f64('0xcd')](_0xe9483e=>'tableCell'==_0xe9483e[_0x2f64('0xa6')]);for(const _0x3afaca of _0x12790f)0x1==_0x3afaca['childCount']&&_0x3afaca[_0x2f64('0xef')](0x0)['is'](_0x2f64('0x40'),_0x2f64('0xbc'))&&_0x3afaca[_0x2f64('0xef')](0x0)[_0x2f64('0xb')](_0x2f64('0xe5'),!0x0);}}[_0x2f64('0x4b')](_0x3b7e57){this['_processRootBeforeSave'](_0x3b7e57);const _0x1979d4=this[_0x2f64('0xa')][_0x2f64('0x32')][_0x2f64('0xe6')](_0x3b7e57,{}),_0x4d2c94=Array[_0x2f64('0x21')](_0x1979d4[_0x2f64('0xb1')]())[_0x2f64('0x8a')](_0x44f5fc=>this[_0x2f64('0x42')](_0x44f5fc));return JSON[_0x2f64('0x14')](_0x4d2c94);}[_0x2f64('0x42')](_0x3286cf){if(_0x3286cf['is'](_0x2f64('0xf2')))return _0x3286cf['data'];{const _0x193925=_0x3286cf;return{'type':Object[_0x2f64('0xa9')](B)[_0x2f64('0x23')](_0x45024d=>_0x3286cf instanceof B[_0x45024d]),'name':_0x193925[_0x2f64('0xa6')],'attributes':Array[_0x2f64('0x21')](_0x193925['getAttributes']()),'children':Array[_0x2f64('0x21')](_0x193925[_0x2f64('0xb1')]())[_0x2f64('0x8a')](_0x1ec7a9=>this[_0x2f64('0x42')](_0x1ec7a9))};}}[_0x2f64('0x3c')](_0x55baf9,_0xc3ef0c,_0x333c7a,_0x2d43e9,_0xa3f2d0){let _0xbe4391=null,_0x3ca9ce=null,_0x3e4e87=0x0;const _0x37b5ab=this['editor'][_0x2f64('0xf0')];for(let _0xb56428=0x0;_0xb56428<_0xc3ef0c[_0x2f64('0x2a')];_0xb56428++){const _0x4cb6c0=this[_0x2f64('0x2e')](_0xc3ef0c[_0xb56428]),_0x48878b=_0xc3ef0c[_0xb56428][_0x2f64('0x54')][_0x2f64('0x53')](_0x4cb6c0),_0x16e676=_0x333c7a[_0x2f64('0x0')](_0x48878b),_0x5d70a5=_0xb56428==_0xc3ef0c[_0x2f64('0x2a')]-0x1;(!_0xbe4391&&_0x16e676&&(_0xbe4391=_0x16e676,_0x3ca9ce=_0xc3ef0c[_0xb56428]),_0xbe4391&&(!_0x16e676||_0x16e676['userId']!=_0xbe4391[_0x2f64('0xab')]))&&(_0x57bec4(_0x16e676,L(_0x3ca9ce,_0x55baf9,_0x37b5ab),L(_0xc3ef0c[_0xb56428],_0x55baf9,_0x37b5ab)),_0xbe4391=_0x16e676||null,_0x3ca9ce=_0x16e676?_0xc3ef0c[_0xb56428]:null),_0xbe4391&&_0x5d70a5&&_0x57bec4(_0x16e676,L(_0x3ca9ce,_0x55baf9,_0x37b5ab),W(_0xc3ef0c[_0xb56428],_0x55baf9,_0x37b5ab));}function _0x57bec4(_0x4f908e,_0x1cd4bf,_0x1b5d6f){const _0x2779fa=_0xbe4391['userId'],_0x2f1a1f=_0x2f64('0xca')+_0x2d43e9+':'+_0x2779fa+':'+_0x3e4e87++,_0x4d1f33=_0x37b5ab[_0x2f64('0x36')](_0x1cd4bf,_0x1b5d6f);_0x55baf9[_0x2f64('0xff')][_0x2f64('0xeb')](_0x2f1a1f,_0x4d1f33),null!==_0x2779fa&&_0xa3f2d0[_0x2f64('0xac')](_0x2779fa);}}[_0x2f64('0x2e')](_0x36d60b){switch(_0x36d60b[_0x2f64('0x94')]){case _0x2f64('0xd9'):return _0x2f64('0x63');case _0x2f64('0xc7'):return'vid_end';default:return'vid';}}[_0x2f64('0xae')](_0x35f2c1,_0x38cf6b){_0x35f2c1[_0x2f64('0xf5')]=null;for(const _0x5eebcf in _0x35f2c1){const _0x55c597=_0x35f2c1[_0x5eebcf];if(_0x55c597 instanceof _0x3b368c){const _0x1b19f4=_0x38cf6b[_0x2f64('0x0')](_0x55c597['root'][_0x2f64('0x2c')]);_0x35f2c1[_0x5eebcf]=this[_0x2f64('0x73')](_0x55c597,_0x1b19f4);}if(_0x55c597 instanceof _0x264834){const _0x56a60c=_0x38cf6b[_0x2f64('0x0')](_0x55c597[_0x2f64('0x89')][_0x2f64('0x2c')]);_0x35f2c1[_0x5eebcf]=this[_0x2f64('0x35')](_0x55c597,_0x56a60c);}_0x2f64('0x89')===_0x5eebcf&&(_0x35f2c1[_0x2f64('0x89')]=_0x38cf6b[_0x2f64('0x0')](_0x35f2c1[_0x2f64('0x89')]['rootName']));}}[_0x2f64('0x35')](_0x4689bd,_0x381591){return this['editor'][_0x2f64('0xf0')][_0x2f64('0x36')](this[_0x2f64('0x73')](_0x4689bd[_0x2f64('0x3a')],_0x381591),this[_0x2f64('0x73')](_0x4689bd['end'],_0x381591));}['_fixPosition'](_0x48dd3d,_0x551baa){return this['editor'][_0x2f64('0xf0')][_0x2f64('0x61')](_0x551baa,_0x48dd3d['path'],_0x48dd3d['stickiness']);}[_0x2f64('0x9c')](_0x23fa92){const _0x29c7fc=this['_idsRoots'][_0x2f64('0x0')](_0x23fa92['position'][_0x2f64('0x89')][_0x2f64('0x2c')]),_0x15b05c=this['_fixPosition'](_0x23fa92['position'],_0x29c7fc),_0xef28cc=null===_0x23fa92[_0x2f64('0x2b')]?null:_0x23fa92['_authorId']||this[_0x2f64('0xa')][_0x2f64('0xc6')][_0x2f64('0x0')]('Users')['me']['id'],_0x2d239b=_0x15b05c[_0x2f64('0xb8')],_0xc8b599=this[_0x2f64('0xc')],_0x37f77b=[];for(const _0x390673 of _0x23fa92[_0x2f64('0x24')])if(_0x390673['is'](_0x2f64('0x40')))_0x37f77b[_0x2f64('0x50')](this[_0x2f64('0x80')](_0x390673));else for(let _0x5553d0=0x0;_0x5553d0<_0x390673[_0x2f64('0x44')];_0x5553d0++)_0x37f77b[_0x2f64('0x50')](new _0x1e316f(_0x2f64('0xf2'),{'vid':this[_0x2f64('0xc')]++}));const _0x57e0d6=this[_0x2f64('0xc')];for(let _0x1ba423=_0xc8b599;_0x1ba423<_0x57e0d6;_0x1ba423++)this[_0x2f64('0x5a')][_0x2f64('0xeb')](_0x1ba423,{'userId':_0xef28cc});_0x2d239b[_0x2f64('0xc9')](_0x15b05c['offset'],_0x37f77b);}['_handleMoveOperation'](_0x29a33e){(_0x29a33e=this[_0x2f64('0x59')](_0x29a33e,this['_idsRoots']))[_0x2f64('0x3b')]();const _0x487f3f=null===_0x29a33e['_authorId']?null:_0x29a33e[_0x2f64('0x2b')]||this[_0x2f64('0xa')][_0x2f64('0xc6')]['get'](_0x2f64('0x8c'))['me']['id'],_0x520c89=_0x29a33e[_0x2f64('0x3e')](),_0x1b5782=_0x520c89[_0x2f64('0xb8')],_0xdfb394=_0x520c89['offset'];!function _0x54955b(_0x2319c2,_0x4daf7e,_0x18683c,_0x21cb9d){for(let _0x274e50=_0x18683c;_0x274e50<_0x21cb9d;_0x274e50++){const _0x23e515=_0x4daf7e[_0x2f64('0xef')](_0x274e50);_0x23e515['is'](_0x2f64('0x40'),'$text')?_0x2319c2[_0x2f64('0xeb')](_0x23e515[_0x2f64('0x53')](_0x2f64('0xde')),{'userId':_0x487f3f}):(_0x2319c2[_0x2f64('0xeb')](_0x23e515[_0x2f64('0x53')](_0x2f64('0x63')),{'userId':_0x487f3f}),_0x54955b(_0x2319c2,_0x23e515,0x0,_0x23e515['childCount']),_0x2319c2[_0x2f64('0xeb')](_0x23e515[_0x2f64('0x53')](_0x2f64('0x27')),{'userId':_0x487f3f}));}}(this[_0x2f64('0x5a')],_0x1b5782,_0xdfb394,_0xdfb394+_0x29a33e[_0x2f64('0x12')]);}[_0x2f64('0x76')](_0x4b59b5){const _0x5bb270=null===(_0x4b59b5=this['_cloneOperation'](_0x4b59b5,this[_0x2f64('0xc2')]))[_0x2f64('0x2b')]?null:_0x4b59b5[_0x2f64('0x2b')]||this[_0x2f64('0xa')][_0x2f64('0xc6')][_0x2f64('0x0')]('Users')['me']['id'],_0x17c016=_0x4b59b5['targetPosition'][_0x2f64('0xb8')],_0x2fc301=_0x4b59b5['sourcePosition']['parent'],_0x2e0200=_0x17c016[_0x2f64('0x53')](_0x2f64('0x27')),_0x550de0=_0x2fc301['getAttribute'](_0x2f64('0x63'));_0x17c016['_setAttribute'](_0x2f64('0x27'),_0x2fc301[_0x2f64('0x53')](_0x2f64('0x27'))),_0x2fc301[_0x2f64('0xb')](_0x2f64('0x27'),_0x2e0200),this[_0x2f64('0x5a')]['set'](_0x550de0,{'userId':_0x5bb270}),this[_0x2f64('0x5a')][_0x2f64('0xeb')](_0x2e0200,{'userId':_0x5bb270}),_0x4b59b5[_0x2f64('0x3b')]();}[_0x2f64('0x75')](_0x19c3c5){const _0x8b7f02=null===(_0x19c3c5=this[_0x2f64('0x59')](_0x19c3c5,this[_0x2f64('0xc2')]))[_0x2f64('0x2b')]?null:_0x19c3c5[_0x2f64('0x2b')]||this[_0x2f64('0xa')]['plugins']['get'](_0x2f64('0x8c'))['me']['id'],_0x203a32=_0x19c3c5[_0x2f64('0x7d')],_0x140434=_0x19c3c5['splitPosition']['parent'];_0x19c3c5[_0x2f64('0x3b')]();const _0x2ee095=_0x140434[_0x2f64('0x53')](_0x2f64('0x27')),_0x33c3cd=_0x19c3c5[_0x2f64('0xb5')][_0x2f64('0xd')];if(_0x203a32){const _0x7d0522=_0x33c3cd[_0x2f64('0x53')](_0x2f64('0x27')),_0x1d1e1e=_0x140434['getAttribute'](_0x2f64('0x27'));_0x140434[_0x2f64('0xb')](_0x2f64('0x27'),_0x7d0522),_0x33c3cd[_0x2f64('0xb')](_0x2f64('0x27'),_0x1d1e1e),this[_0x2f64('0x5a')][_0x2f64('0xeb')](_0x140434[_0x2f64('0x53')](_0x2f64('0x27')),{'userId':_0x8b7f02}),this['_touched'][_0x2f64('0xeb')](_0x33c3cd['getAttribute'](_0x2f64('0x63')),{'userId':_0x8b7f02});}else{const _0x58760e=this[_0x2f64('0xc')]++,_0x506781=this['_revisionId']++;_0x140434[_0x2f64('0xb')](_0x2f64('0x27'),_0x58760e),_0x33c3cd[_0x2f64('0xb')](_0x2f64('0x63'),_0x506781),_0x33c3cd['_setAttribute'](_0x2f64('0x27'),_0x2ee095),this['_touched'][_0x2f64('0xeb')](_0x58760e,{'userId':_0x8b7f02}),this['_touched'][_0x2f64('0xeb')](_0x506781,{'userId':_0x8b7f02});}}[_0x2f64('0xa2')](_0x2e086f){if(!_0x2e086f['affectsData'])return;const _0x151602=(_0x2e086f=this['_cloneOperation'](_0x2e086f,this[_0x2f64('0x78')]))[_0x2f64('0xfc')]?_0x2e086f[_0x2f64('0xfc')][_0x2f64('0x89')]:null,_0x532c7f=_0x2e086f[_0x2f64('0x87')]?_0x2e086f[_0x2f64('0x87')][_0x2f64('0x89')]:null;_0x151602&&this[_0x2f64('0x8b')][_0x2f64('0x67')](_0x2e086f[_0x2f64('0xa6')]),_0x532c7f&&this[_0x2f64('0x8b')][_0x2f64('0xeb')](_0x2e086f[_0x2f64('0xa6')],_0x2e086f['newRange']['clone']());const _0x3bf3ea=null===_0x2e086f['_authorId']?null:_0x2e086f[_0x2f64('0x2b')]||this['editor'][_0x2f64('0xc6')][_0x2f64('0x0')](_0x2f64('0x8c'))['me']['id'],_0x54b85a=_0x2e086f[_0x2f64('0xa6')];if(!this[_0x2f64('0x4c')][_0x2f64('0x2f')](_0x54b85a))return void this['_touchedMarkers'][_0x2f64('0xeb')](_0x54b85a,{'range':_0x2e086f[_0x2f64('0xfc')],'userId':_0x3bf3ea});const _0x3988fb=this[_0x2f64('0x4c')][_0x2f64('0x0')](_0x54b85a),_0x1764d4=_0x3988fb[_0x2f64('0xf4')],_0x12cd35=_0x2e086f[_0x2f64('0x87')];null==_0x1764d4&&null==_0x12cd35||_0x1764d4&&_0x12cd35&&_0x1764d4[_0x2f64('0xea')](_0x12cd35)?this[_0x2f64('0x4c')][_0x2f64('0x67')](_0x2e086f[_0x2f64('0xa6')]):_0x3988fb[_0x2f64('0xab')]=_0x3bf3ea;}['_handleRootOperation'](_0x3e6eca,_0xe5b26d){this[_0x2f64('0x78')][_0x2f64('0x2f')](_0x3e6eca[_0x2f64('0x2c')])?this[_0x2f64('0x78')][_0x2f64('0x0')](_0x3e6eca[_0x2f64('0x2c')])['_isAttached']=_0x3e6eca[_0x2f64('0x6d')]:(this[_0x2f64('0x78')]['set'](_0x3e6eca[_0x2f64('0x2c')],G(_0x3e6eca['rootName'],!0x0)),this[_0x2f64('0x9d')]['set'](_0x3e6eca['rootName'],{}),_0xe5b26d&&this[_0x2f64('0xc2')][_0x2f64('0xeb')](_0x3e6eca['rootName'],G(_0x3e6eca[_0x2f64('0x2c')],!0x0)));const _0x15efb8=null===_0x3e6eca['_authorId']?null:_0x3e6eca['_authorId']||this[_0x2f64('0xa')][_0x2f64('0xc6')][_0x2f64('0x0')](_0x2f64('0x8c'))['me']['id'],_0x3de671=this[_0x2f64('0xc0')][_0x2f64('0x0')](_0x3e6eca[_0x2f64('0x2c')]);_0x3de671&&_0x3de671['userId']===_0x15efb8?this[_0x2f64('0xc0')]['delete'](_0x3e6eca[_0x2f64('0x2c')]):this[_0x2f64('0xc0')][_0x2f64('0xeb')](_0x3e6eca['rootName'],{'userId':_0x15efb8,'isAttached':_0x3e6eca[_0x2f64('0x6d')]});}[_0x2f64('0x69')](_0x2454b4){const _0x553f8d=this[_0x2f64('0x9d')]['get'](_0x2454b4['root']['rootName']);null===_0x2454b4[_0x2f64('0x81')]?delete _0x553f8d[_0x2454b4[_0x2f64('0x84')]]:_0x553f8d[_0x2454b4[_0x2f64('0x84')]]=_0x2454b4[_0x2f64('0x81')];}}function q(_0x5dd237){const _0x274b67=G(_0x5dd237[_0x2f64('0x2c')],_0x5dd237[_0x2f64('0xba')]());for(const _0x23fe06 of _0x5dd237[_0x2f64('0xb1')]()){const _0x38e442=_0x23fe06['_clone'](!0x0);_0x274b67[_0x2f64('0x1e')](_0x38e442);}return _0x274b67;}function G(_0x4f5c8c,_0x533bf7=!0x0){const _0x556f8d=new _0x480454();return _0x556f8d[_0x2f64('0x2c')]=_0x4f5c8c,_0x556f8d['_isAttached']=_0x533bf7,_0x556f8d['isAttached']=()=>_0x556f8d[_0x2f64('0x48')],_0x556f8d;}function L(_0x15d968,_0x32c68b,_0x31bb49){const _0x2a12bc='elementEnd'==_0x15d968[_0x2f64('0x94')]?_0x31bb49['createPositionAt'](_0x15d968[_0x2f64('0x54')],_0x2f64('0xdc')):_0x31bb49[_0x2f64('0xe2')](_0x15d968['item']);return _0x31bb49[_0x2f64('0x61')](_0x32c68b,_0x2a12bc['path'],_0x2a12bc[_0x2f64('0x91')]);}function W(_0x39a0ce,_0x6cdab4,_0x496809){const _0x27b45f=_0x2f64('0xd9')==_0x39a0ce[_0x2f64('0x94')]?_0x496809['createPositionAt'](_0x39a0ce[_0x2f64('0x54')],0x0):_0x496809[_0x2f64('0x4f')](_0x39a0ce[_0x2f64('0x54')]);return _0x496809[_0x2f64('0x61')](_0x6cdab4,_0x27b45f['path'],_0x27b45f['stickiness']);}
@@ -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
+ /**/