@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230724.0 → 0.0.0-nightly-20230725.1

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 (62) hide show
  1. package/README.md +0 -1
  2. package/build/revision-history.js +1 -1
  3. package/package.json +6 -6
  4. package/src/augmentation.d.ts +4 -0
  5. package/src/changeitem.d.ts +2 -1
  6. package/src/changeitem.js +1 -1
  7. package/src/editor/revisionviewereditor.js +1 -1
  8. package/src/editor/revisionviewereditorui.js +1 -1
  9. package/src/editor/revisionviewereditoruiview.js +1 -1
  10. package/src/index.d.ts +4 -0
  11. package/src/revision.d.ts +2 -2
  12. package/src/revision.js +1 -1
  13. package/src/revisiondiff.d.ts +4 -0
  14. package/src/revisiondiff.js +1 -1
  15. package/src/revisionhistory.d.ts +4 -0
  16. package/src/revisionhistory.js +1 -1
  17. package/src/revisionhistoryadapter.d.ts +4 -0
  18. package/src/revisionhistoryconfig.d.ts +2 -2
  19. package/src/revisionsrepository.d.ts +4 -0
  20. package/src/revisionsrepository.js +1 -1
  21. package/src/revisiontracker.d.ts +4 -0
  22. package/src/revisiontracker.js +1 -1
  23. package/src/revisionviewer.d.ts +4 -0
  24. package/src/revisionviewer.js +1 -1
  25. package/src/ui/revision/createrevisionactionsdropdown.d.ts +2 -1
  26. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  27. package/src/ui/revision/revisionauthorview.d.ts +2 -1
  28. package/src/ui/revision/revisionauthorview.js +1 -1
  29. package/src/ui/revision/revisionnameview.d.ts +2 -1
  30. package/src/ui/revision/revisionnameview.js +1 -1
  31. package/src/ui/revision/revisionview.d.ts +4 -0
  32. package/src/ui/revision/revisionview.js +1 -1
  33. package/src/ui/revision/subrevisioncollapserview.d.ts +4 -0
  34. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  35. package/src/ui/revision/subrevisionview.d.ts +4 -0
  36. package/src/ui/revision/subrevisionview.js +1 -1
  37. package/src/ui/revision/utils.d.ts +2 -1
  38. package/src/ui/revision/utils.js +1 -1
  39. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +2 -1
  40. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  41. package/src/ui/revisionhistory/revisionhistoryui.d.ts +4 -0
  42. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  43. package/src/ui/revisionssidebar/revisionssidebar.d.ts +4 -0
  44. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  45. package/src/ui/revisionssidebar/revisionssidebarheaderview.d.ts +2 -1
  46. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  47. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +4 -0
  48. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  49. package/src/ui/revisionssidebar/revisionssidebarview.d.ts +4 -0
  50. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  51. package/src/ui/revisionssidebar/utils.d.ts +2 -1
  52. package/src/ui/revisionssidebar/utils.js +1 -1
  53. package/src/ui/revisionviewer/changedetailsview.d.ts +4 -0
  54. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  55. package/src/ui/revisionviewer/changesnavigationview.d.ts +4 -0
  56. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  57. package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +4 -0
  58. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  59. package/src/ui/revisionviewer/revisionviewerui.d.ts +4 -0
  60. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  61. package/src/utils/common-translations.d.ts +4 -0
  62. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4dfc=['clone','_setConversion','buildRevisionData','afterInit','insertions','attachChange','locale','text','trim','fromVersion','_reset','_createCurrentRevision','string','getData','add','isAdd','data','config','authors','insert','_update','finally','RevisionsRepository','bind','_handleOperation','elementEnd','updateRevisions','forEach','userId','_processRootBeforeSave','parse','_revisionId','_copyMarkers','insertionPosition','_handleMarkerOperation','getRevisionRootsAttributes','addRoot','offsetSize','end','saveRevision','collaboration.channelId','_cloneOperation','marked','from','setRevisionData','howMany','sort','update','start','creator','push','deletions','paragraph','createdAt','nodes','_markChanges','slice','offset','_bufferedUpdates','delete','default','_getState','getChild','get','PendingActions','view','createPositionAfter','markerToData','reinsert','_fixOperation','Empty\x20document','length','PENDING_ACTION_REVISION_HISTORY','_revisionDataBuilder','revision:','vid_end','toData','_isPendingUpdate','insertion','getRevision','getRevisions','isEqual','_diffRoots','toVersion','creatorId','position','values','loadState','createPositionAt','adapter','_initialRevisionId','markers','version','_touchedMarkers','_getViewJson','_handleMergeOperation','getNodeByPath','newValue','rootName','_isAttached','vid','filter','upcast','elementStart','affectsData','conversion','_operations','_calculateMetaData','revision-start','has','NEGATIVE_INFINITY','_idsRoots','RevisionTracker','rootsAttributes','changeRootAttribute','previousPosition','_pendingAction','_createInitialRevision','authorsIds','name','getCurrentRevisionId','attributesAfter','_makeModelFromViewString','startsWith','_removePendingAction','shift','_getBaseVids','createRevision','_loadRevisionData','_prepareViewToSave','_baseRootsAttributes','_loadState','getTime','_clone','resolve','_source','_applyOperations','type','_createFromRanges','_insertChild','root','RealTimeCollaborationClient','_startingVersion','getIndex','document','getRange','path','_loadedStateData','oldRange','_touchedRoots','_getVidAttributeName','isAttached','getRootNames','detachRoot','processor','_markers','_execute','children','_makeIdsRoot','_setAttribute','find','clear','reverse','_fixRange','_handleSplitOperation','_authorId','currentRevision','_fixPosition','getRoot','targetPosition','$text','_initialRoots','tableCell','remove','parent','set','_startingRevisionId','_baseRoots','initial','_handleInsertOperation','getWalker','revision-end','_transformMarkers','addRevisionData','_generateTape','roots','_isInit','$graveyard','_appendChild','marker','getAttributes','size','_saveMetaData','_removeMetaData','_continueCurrentRevision','setSource','keys','addRevision','data-revision-','_removeRevisionMarkers','range','_makeRevision','_replaceEditorDataWithRevisionData','getAttribute','_addPendingAction','baseVersion','documentFragment','sendBufferedUpdates','Users','some','key','toView','_savedMetaData','getLatestVersion','initialData','diffData','_handleMoveOperation','_lastTo','plugins','childCount','nodeAfter','isReady','createPositionFromPath','model','element','newRange','stickiness','requires','_baseIdsRoots','split','vid_start','includes','init','revision','history','_bufferUpdate','isEnabled','createRangeIn','getUser','_touched','dataDowncast','Initial\x20revision','revisionHistory.resumeUnsavedRevision','fromEntries','dataToMarker','getChildren','_getFromVersion','repository','item','getMovedRangeStart','_lastFrom','getTransformedByOperation','useFillerType','map','editing','then','_handleRootOperation','ready','attributesBefore','createRange','source','editor','_diffRootsAttributes','attributes'];(function(_0x5aef4a,_0x4dfc92){const _0x363bc7=function(_0x307f58){while(--_0x307f58){_0x5aef4a['push'](_0x5aef4a['shift']());}};_0x363bc7(++_0x4dfc92);}(_0x4dfc,0x1e2));const _0x363b=function(_0x5aef4a,_0x4dfc92){_0x5aef4a=_0x5aef4a-0x0;let _0x363bc7=_0x4dfc[_0x5aef4a];return _0x363bc7;};import{Users as _0x4e4173}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x576cfb,PendingActions as _0x31c758}from'ckeditor5/src/core';import{logWarning as _0x5836a5,uid as _0x24c4f2}from'ckeditor5/src/utils';import{Position as _0x2d407b,Range as _0x198628,Element as _0x59fbf0,DocumentFragment as _0x1e2b71,ViewText as _0x59e135,ViewElement as _0x3e3907,ViewContainerElement as _0x1ac531,ViewAttributeElement as _0x5a079f,ViewEmptyElement as _0x40cd52,ViewRawElement as _0x511271,ViewUIElement as _0x193e16,ViewDocumentFragment as _0x1851ef}from'ckeditor5/src/engine';import _0xe53db8 from'./revisionsrepository';import{getTranslation as _0x13a64c}from'./utils/common-translations';import{cloneDeep as _0x451b46,isEqual as _0x59c7e7}from'lodash-es';const B={'c':_0x1ac531,'a':_0x5a079f,'e':_0x40cd52,'r':_0x511271,'u':_0x193e16};export default class l extends _0x576cfb{static get['pluginName'](){return _0x363b('0x9e');}static get[_0x363b('0x9')](){return[_0x4e4173,_0xe53db8,_0x31c758];}constructor(_0x4f7493){super(_0x4f7493),this[_0x363b('0x87')]=null,this[_0x363b('0xd4')]=null,this[_0x363b('0x77')]=new H(this[_0x363b('0x2b')]),this[_0x363b('0x88')]=this[_0x363b('0x2b')][_0x363b('0x3f')][_0x363b('0x6d')]('collaboration.channelId')||_0x363b('0xe0'),this[_0x363b('0x68')]=new Map(),this[_0x363b('0xc1')]=null;const _0x2b491f=_0x24c4f2();this[_0x363b('0xb5')]={'history':this[_0x363b('0x2b')][_0x363b('0x5')][_0x363b('0xbe')][_0x363b('0x10')],'getLatestVersion':()=>Promise['resolve'](this['editor']['model'][_0x363b('0xbe')][_0x363b('0x8a')]),'getCurrentRevisionId':()=>_0x2b491f},this[_0x363b('0xdd')](_0x363b('0x3'),!0x1),this[_0x363b('0xdd')](_0x363b('0x12'),!0x0),this[_0x363b('0xdd')](_0x363b('0x7b'),!0x1),this[_0x363b('0x2b')][_0x363b('0x3f')]['define'](_0x363b('0x18'),!0x0),this[_0x363b('0x2b')]['conversion']['for'](_0x363b('0x94'))[_0x363b('0x1a')]({'view':_0x363b('0xf')});}['init'](){this['repository']=this[_0x363b('0x2b')][_0x363b('0x0')][_0x363b('0x6d')](_0x363b('0x44')),this[_0x363b('0x2f')](),this['editor']['data']['on'](_0x363b('0x27'),()=>{const _0x7e6e3f=this[_0x363b('0x1d')][_0x363b('0x7d')](0x0),_0x5afc16=_0x7e6e3f&&null===_0x7e6e3f[_0x363b('0x5f')]?_0x7e6e3f:null;if(this[_0x363b('0xf0')]=!!_0x5afc16&&this[_0x363b('0x2b')][_0x363b('0x3f')][_0x363b('0x6d')](_0x363b('0x18')),this[_0x363b('0x2b')][_0x363b('0x0')]['has'](_0x363b('0xbb'))){const _0x1c50bd=this['_source']['getCurrentRevisionId'](),_0x758a55=this[_0x363b('0x1d')][_0x363b('0x7d')](_0x1c50bd);if(_0x758a55)this[_0x363b('0xbc')]=_0x758a55[_0x363b('0x37')],this[_0x363b('0xf0')]=!0x1;else{const _0x361c44=this[_0x363b('0xb5')][_0x363b('0x10')][_0x363b('0x98')]['find'](_0x10ea47=>!_0x10ea47[_0x363b('0xe8')]),_0x5b7824=_0x361c44?_0x361c44[_0x363b('0xfb')]:this[_0x363b('0xb5')][_0x363b('0x10')][_0x363b('0x8a')];_0x7e6e3f?(_0x7e6e3f[_0x363b('0x81')]<_0x5b7824&&_0x7e6e3f[_0x363b('0x42')]({'toVersion':_0x5b7824}),this[_0x363b('0xf0')]?(this[_0x363b('0xb5')][_0x363b('0xa6')]=()=>_0x5afc16['id'],this[_0x363b('0xbc')]=_0x5afc16[_0x363b('0x37')]):(this[_0x363b('0xbc')]=_0x7e6e3f[_0x363b('0x81')],this[_0x363b('0xf0')]=!0x1)):(this['_startingVersion']=_0x5b7824,this['_continueCurrentRevision']=!0x1);}}else _0x5afc16&&(this[_0x363b('0x2b')][_0x363b('0x5')][_0x363b('0xbe')][_0x363b('0x10')][_0x363b('0x8a')]=Math['max'](_0x5afc16[_0x363b('0x81')],this[_0x363b('0x2b')][_0x363b('0x5')][_0x363b('0xbe')][_0x363b('0x10')]['version']),_0x5afc16['fromVersion']===_0x5afc16[_0x363b('0x81')]?(0x0!==_0x5afc16[_0x363b('0x37')]&&(this[_0x363b('0xb5')][_0x363b('0xa6')]=()=>_0x5afc16['id']),this[_0x363b('0xf0')]=!0x1):this['_continueCurrentRevision']&&(this[_0x363b('0xb5')][_0x363b('0xa6')]=()=>_0x5afc16['id'],this[_0x363b('0xbc')]=_0x5afc16[_0x363b('0x37')])),this[_0x363b('0xf0')]||(this[_0x363b('0xbc')]=this[_0x363b('0x2b')][_0x363b('0x5')][_0x363b('0xbe')][_0x363b('0x8a')]);this[_0x363b('0x77')][_0x363b('0xe')](this['_source'][_0x363b('0x10')]),this[_0x363b('0xa3')](this[_0x363b('0xbc')]),this['_createCurrentRevision'](this[_0x363b('0xbc')]),this[_0x363b('0x87')]&&this[_0x363b('0xfd')]();}),this[_0x363b('0x45')](_0x363b('0x3'))['to'](this,_0x363b('0x7b'),_0x13bfc9=>!_0x13bfc9);}async[_0x363b('0x31')](){if(this[_0x363b('0x1d')]['length']>0x0){const _0x44a55c=this[_0x363b('0x1d')][_0x363b('0x7d')](0x0),_0x50d931=await this['getRevisionDocumentData'](_0x44a55c),_0x4b76d3=await this[_0x363b('0x51')](_0x44a55c);this[_0x363b('0xf8')](_0x50d931,_0x4b76d3);}}[_0x363b('0xf1')](_0x1c8e73){this['_source']=_0x1c8e73;}async[_0x363b('0x5d')](){const _0x52ebad=await this[_0x363b('0xb5')][_0x363b('0x103')]();if(_0x52ebad>this[_0x363b('0xd4')][_0x363b('0x81')]){await this[_0x363b('0xb1')]();const _0x27e08a=this[_0x363b('0x30')]({'revision':this[_0x363b('0xd4')],'to':_0x52ebad});_0x27e08a[_0x363b('0x40')]=_0x27e08a[_0x363b('0xa4')]['map'](_0x1dc9f9=>this['editor'][_0x363b('0x0')]['get'](_0x363b('0xfe'))[_0x363b('0x14')](_0x1dc9f9)),this[_0x363b('0xd4')]['_update'](_0x27e08a);}}async[_0x363b('0xb1')](){this[_0x363b('0xf0')]&&!this['_loadedStateData']&&(await this[_0x363b('0xae')](this[_0x363b('0xd4')]),this[_0x363b('0x77')]['loadState'](this[_0x363b('0xd4')]),this[_0x363b('0xc1')]={'fromVersion':this[_0x363b('0xd4')][_0x363b('0x37')],'authors':this['currentRevision'][_0x363b('0x40')][_0x363b('0x66')]()});}async[_0x363b('0x55')](_0x55bb9a={},_0x40d364=null){const _0x250757=[];await this[_0x363b('0xb1')](),this[_0x363b('0xf0')]=!0x1,_0x40d364>this[_0x363b('0xd4')]['toVersion']&&(_0x40d364=null),null===_0x40d364&&(_0x40d364=await this[_0x363b('0xb5')]['getLatestVersion']());const _0x22dd7b=this[_0x363b('0x1c')](_0x40d364),_0x56ae38=this[_0x363b('0x30')]({'from':_0x22dd7b,'to':_0x40d364});if(this[_0x363b('0xd4')][_0x363b('0x81')]<_0x40d364){const _0x25e33c=this[_0x363b('0x30')]({'revision':this[_0x363b('0xd4')],'from':_0x40d364,'to':_0x40d364});_0x25e33c[_0x363b('0x40')]=[],_0x25e33c['authorsIds']=[],_0x25e33c['id']=this[_0x363b('0xd4')]['id'],this[_0x363b('0xd4')][_0x363b('0x42')](_0x25e33c,!0x0),delete _0x25e33c['authors'],_0x250757['push'](_0x25e33c);}_0x55bb9a[_0x363b('0x82')]=this[_0x363b('0x2b')]['plugins'][_0x363b('0x6d')]('Users')['me']['id'],_0x55bb9a[_0x363b('0xa5')]=_0x55bb9a[_0x363b('0xa5')]||null,_0x55bb9a['id']=_0x55bb9a['id']||_0x24c4f2(),_0x55bb9a={..._0x55bb9a,..._0x56ae38};const _0x10c9ef=this[_0x363b('0xe5')](_0x55bb9a);_0x250757[_0x363b('0x60')](_0x55bb9a);const _0x3ca472=this[_0x363b('0x1d')][_0x363b('0xbd')](_0x10c9ef);if(0x0!==_0x3ca472){const _0x5aefd0=this[_0x363b('0x1d')]['getRevision'](_0x3ca472-0x1);if(_0x5aefd0[_0x363b('0x37')]!==_0x40d364){const _0x4aee2a=this[_0x363b('0x77')][_0x363b('0x3b')](_0x40d364,_0x5aefd0[_0x363b('0x81')]),_0x5c3ad4={'id':_0x5aefd0['id'],'diffData':_0x4aee2a[_0x363b('0x105')],'authorsIds':_0x4aee2a[_0x363b('0xa4')],'authors':_0x4aee2a[_0x363b('0xa4')]['map'](_0x358bee=>this[_0x363b('0x2b')][_0x363b('0x0')][_0x363b('0x6d')]('Users')[_0x363b('0x14')](_0x358bee)),'fromVersion':_0x40d364};_0x5aefd0===this[_0x363b('0xd4')]&&(_0x5c3ad4[_0x363b('0x63')]=new Date(_0x55bb9a[_0x363b('0x63')][_0x363b('0xb2')]()+0xa)),_0x5aefd0['_update'](_0x5c3ad4,!0x0),delete _0x5c3ad4[_0x363b('0x40')],_0x250757[_0x363b('0x60')](_0x5c3ad4);}}if(this[_0x363b('0x87')]){for(const _0x42ec6b of _0x250757)this[_0x363b('0x11')](_0x42ec6b['id'],_0x42ec6b,!0x0);this['sendBufferedUpdates']();}return _0x10c9ef;}[_0x363b('0xe5')](_0x379f80){const _0x531789=this[_0x363b('0x1d')][_0x363b('0xad')](_0x379f80);return this[_0x363b('0x87')]&&_0x531789['on']('_update',(_0x3ea9ac,_0x3bcb4f,_0x3ea440)=>{_0x3ea440||(this['_bufferUpdate'](_0x3bcb4f['id'],_0x3bcb4f,!0x0),this[_0x363b('0xfd')]());}),this[_0x363b('0x1d')][_0x363b('0xf3')](_0x531789,this['_findInsertionIndex'](_0x531789)),_0x531789;}async['getRevisionDocumentData'](_0x38f1f8){await this[_0x363b('0xae')](_0x38f1f8);const _0x25adb9={};for(const _0x3741ac in _0x38f1f8[_0x363b('0x105')]){if(_0x38f1f8['diffData'][_0x3741ac][_0x363b('0x33')]&&!_0x38f1f8['diffData'][_0x3741ac][_0x363b('0x33')]['isAttached'])continue;const _0x1ccf8f=this[_0x363b('0xf5')](JSON['parse'](_0x38f1f8[_0x363b('0x105')][_0x3741ac]['insertions'])),_0x586dc0=this[_0x363b('0x2b')][_0x363b('0x24')][_0x363b('0x6f')]['document'],_0x2c04e0=new _0x1851ef(_0x586dc0,_0x1ccf8f[_0x363b('0x23')](_0x3ef50c=>J(_0x3ef50c,this[_0x363b('0x2b')])));this[_0x363b('0x2b')][_0x363b('0x3e')][_0x363b('0xc8')][_0x363b('0x22')](_0x363b('0x58')),_0x25adb9[_0x3741ac]=this[_0x363b('0x2b')][_0x363b('0x3e')][_0x363b('0xc8')][_0x363b('0x7a')](_0x2c04e0),this['editor'][_0x363b('0x3e')][_0x363b('0xc8')]['useFillerType'](_0x363b('0x6a'));}return _0x25adb9;}async[_0x363b('0x51')](_0x9ea1b1){await this[_0x363b('0xae')](_0x9ea1b1);const _0x1bc81a={};for(const _0x1f57bd in _0x9ea1b1['diffData'])_0x9ea1b1['diffData'][_0x1f57bd]['attachChange']&&!_0x9ea1b1[_0x363b('0x105')][_0x1f57bd][_0x363b('0x33')]['isAttached']||(_0x1bc81a[_0x1f57bd]=_0x9ea1b1[_0x363b('0x105')][_0x1f57bd][_0x363b('0xa7')]||{});return _0x1bc81a;}[_0x363b('0xfd')](){if(0x0===this[_0x363b('0x68')]['size'])return;if(this[_0x363b('0x7b')])return;let _0x13c7eb=Array[_0x363b('0x59')](this[_0x363b('0x68')][_0x363b('0x84')]());this['_bufferedUpdates'][_0x363b('0xcf')]();for(let _0x3d57f8=0x0;_0x3d57f8<_0x13c7eb[_0x363b('0x75')];_0x3d57f8++){const _0x1fd4ca=_0x13c7eb[_0x3d57f8];let _0x54edd9=!0x1;for(const _0x2680f1 of Object[_0x363b('0xf2')](_0x1fd4ca))void 0x0===_0x1fd4ca[_0x2680f1]?delete _0x1fd4ca[_0x2680f1]:'id'!==_0x2680f1&&(_0x54edd9=!0x0);_0x54edd9||(_0x13c7eb[_0x3d57f8]=null);}if(_0x13c7eb=_0x13c7eb[_0x363b('0x93')](_0x5055f1=>null!==_0x5055f1),!_0x13c7eb[_0x363b('0x75')])return;for(let _0x487609=0x0;_0x487609<_0x13c7eb[_0x363b('0x75')];_0x487609++){const _0x3fd5f3=_0x13c7eb[_0x487609];void 0x0!==_0x3fd5f3[_0x363b('0x37')]&&void 0x0===_0x3fd5f3['toVersion']&&(_0x3fd5f3[_0x363b('0x81')]=this[_0x363b('0x1d')][_0x363b('0x7d')](_0x3fd5f3['id'])[_0x363b('0x81')]),void 0x0!==_0x3fd5f3[_0x363b('0x81')]&&void 0x0===_0x3fd5f3[_0x363b('0x37')]&&(_0x3fd5f3[_0x363b('0x37')]=this[_0x363b('0x1d')]['getRevision'](_0x3fd5f3['id'])[_0x363b('0x37')]);}const _0x558fee=this[_0x363b('0x2b')]['config'][_0x363b('0x6d')](_0x363b('0x56'));this['_isPendingUpdate']=!0x0,this[_0x363b('0xfa')](),this[_0x363b('0x87')][_0x363b('0x48')](_0x13c7eb,_0x558fee)[_0x363b('0x43')](()=>{this['_isPendingUpdate']=!0x1;})[_0x363b('0x25')](_0x3dc146=>{if(_0x3dc146)for(const _0x121748 of _0x3dc146)this[_0x363b('0x5a')]({'id':_0x121748['id'],'createdAt':_0x121748[_0x363b('0x63')]});this[_0x363b('0xaa')](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x3296ec,_0x2e19a3){let _0x476b2e=this[_0x363b('0x2b')]['config']['get'](_0x363b('0x104')),_0x5a0b4f=this[_0x363b('0x2b')][_0x363b('0x3f')][_0x363b('0x6d')](_0x363b('0x9f'));if(void 0x0===_0x476b2e){_0x476b2e={};for(const _0x30cbca of this['editor']['model'][_0x363b('0xbe')][_0x363b('0xc6')]())_0x476b2e[_0x30cbca]='';}if('string'==typeof _0x476b2e&&(_0x476b2e={'main':_0x476b2e}),void 0x0===_0x5a0b4f){_0x5a0b4f={};for(const _0x13e6fd of this['editor'][_0x363b('0x5')]['document'][_0x363b('0xc6')]())_0x5a0b4f[_0x13e6fd]={};}let _0x2402ae=!0x1;const _0x4d9f5a=Object[_0x363b('0xf2')](_0x476b2e),_0x58b593=Object[_0x363b('0xf2')](_0x3296ec);for(const _0x5d1940 of _0x4d9f5a){if(_0x476b2e[_0x5d1940]!==_0x3296ec[_0x5d1940]&&''!==_0x476b2e[_0x5d1940][_0x363b('0x36')]()){_0x2402ae=!0x0;break;}if(!_0x59c7e7(_0x5a0b4f[_0x5d1940],_0x2e19a3[_0x5d1940])&&Object[_0x363b('0xf2')](_0x5a0b4f[_0x5d1940])[_0x363b('0x75')]>0x0){_0x2402ae=!0x0;break;}}_0x2402ae||(_0x2402ae=_0x58b593[_0x363b('0xff')](_0x11ec0d=>!_0x4d9f5a['includes'](_0x11ec0d))),_0x2402ae&&_0x5836a5('editor-initial-data-replaced-with-revision-data',{'editorData':_0x476b2e,'editorRootsAttributes':_0x5a0b4f,'revisionData':_0x3296ec,'revisionRootsAttributes':_0x2e19a3}),this['editor'][_0x363b('0x3f')]['set'](_0x363b('0x104'),_0x3296ec),this[_0x363b('0x2b')]['config'][_0x363b('0xdd')]('rootsAttributes',_0x2e19a3);}[_0x363b('0xfa')](){if(!this[_0x363b('0xa2')]){const _0x569aca=this[_0x363b('0x2b')]['plugins'][_0x363b('0x6d')](_0x363b('0x6e'));this[_0x363b('0xa2')]=_0x569aca[_0x363b('0x3c')](_0x13a64c(this[_0x363b('0x2b')][_0x363b('0x34')],_0x363b('0x76')));}}[_0x363b('0xaa')](){this[_0x363b('0xa2')]&&(this[_0x363b('0x2b')][_0x363b('0x0')][_0x363b('0x6d')](_0x363b('0x6e'))[_0x363b('0xdb')](this[_0x363b('0xa2')]),this['_pendingAction']=null);}['_findInsertionIndex'](_0x17afe7){const _0x4c2428=this[_0x363b('0x1d')][_0x363b('0x7e')]();_0x4c2428[_0x363b('0xd0')]();let _0x86bb15=0x0;for(;_0x86bb15<_0x4c2428[_0x363b('0x75')];){const _0x768b13=_0x4c2428[_0x86bb15];if(_0x768b13===this[_0x363b('0xd4')]){_0x86bb15++;continue;}if(_0x768b13['id']===this['_initialRevisionId'])break;const _0x1946a3=_0x17afe7[_0x363b('0x81')]-_0x768b13['toVersion']||_0x17afe7['fromVersion']-_0x768b13[_0x363b('0x37')];if(_0x1946a3>0x0)break;if(_0x1946a3<0x0)_0x86bb15++;else{if(!_0x17afe7['creator']&&_0x768b13[_0x363b('0x5f')])break;if(_0x768b13[_0x363b('0x5f')]||!_0x17afe7[_0x363b('0x5f')]){if(_0x17afe7[_0x363b('0x63')]>_0x768b13[_0x363b('0x63')])break;_0x86bb15++;}else _0x86bb15++;}}return _0x86bb15;}['setRevisionData'](_0x385147){const _0x263ef3=this[_0x363b('0x1d')][_0x363b('0x7d')](_0x385147['id']);if(_0x385147[_0x363b('0x63')]&&(_0x385147[_0x363b('0x63')]=new Date(_0x385147['createdAt'])),_0x385147[_0x363b('0xa4')]){const _0x4b8228=this['editor'][_0x363b('0x0')][_0x363b('0x6d')](_0x363b('0xfe'));_0x385147[_0x363b('0x40')]=_0x385147['authorsIds']['map'](_0x4ec0cd=>_0x4b8228['getUser'](_0x4ec0cd));}_0x263ef3['_update'](_0x385147,!0x0);}['buildRevisionData']({revision:_0x595b73=null,from:_0x15e9d5=null,to:_0x413ed4=null}){_0x15e9d5=null!==_0x15e9d5?_0x15e9d5:_0x595b73['fromVersion'],_0x413ed4=null!==_0x413ed4?_0x413ed4:_0x595b73['toVersion'];const _0x3fab78=this['_revisionDataBuilder'][_0x363b('0x3b')](_0x15e9d5,_0x413ed4),_0x2ceff8={'diffData':_0x3fab78[_0x363b('0x105')],'authorsIds':_0x3fab78[_0x363b('0xa4')],'fromVersion':_0x15e9d5,'toVersion':_0x413ed4};if(!_0x595b73||_0x413ed4!==_0x595b73[_0x363b('0x81')]){const _0x44e649=_0x413ed4-0x1,_0x1b8e2d=this['_source'][_0x363b('0x10')]['getOperation'](_0x44e649);_0x2ceff8[_0x363b('0x63')]=_0x1b8e2d&&_0x1b8e2d[_0x363b('0x63')]||new Date();}if(this[_0x363b('0xc1')]&&_0x15e9d5===this['_loadedStateData'][_0x363b('0x37')])for(const _0x320c79 of this[_0x363b('0xc1')]['authors'])_0x2ceff8[_0x363b('0xa4')][_0x363b('0xd')](_0x320c79['id'])||_0x2ceff8[_0x363b('0xa4')][_0x363b('0x60')](_0x320c79['id']);return _0x2ceff8;}['_loadRevisionData'](_0x22c837){if(!_0x22c837||_0x22c837[_0x363b('0x105')])return Promise[_0x363b('0xb4')]();{const _0x7f47bc=this[_0x363b('0x2b')][_0x363b('0x3f')]['get'](_0x363b('0x56'));return this[_0x363b('0x87')]['getRevision']({'channelId':_0x7f47bc,'revisionId':_0x22c837['id']})['then'](_0x4991c0=>{_0x22c837['diffData']=_0x4991c0[_0x363b('0x105')];});}}[_0x363b('0x11')](_0x36e498,_0x4cadbf,_0x230a18){if(this['_bufferedUpdates']['has'](_0x36e498)){const _0x381645=this[_0x363b('0x68')]['get'](_0x36e498);_0x4cadbf=_0x230a18?{..._0x381645,..._0x4cadbf}:{..._0x4cadbf,..._0x381645};}this[_0x363b('0x68')]['set'](_0x36e498,_0x4cadbf);}[_0x363b('0x1c')](_0x19d99b){const _0x133699=this[_0x363b('0x1d')]['getRevisions']();_0x133699[_0x363b('0xd0')](),_0x133699[_0x363b('0xab')]();const _0x2f16d8=_0x133699[_0x363b('0xce')](_0x3ad41e=>_0x3ad41e[_0x363b('0x81')]<=_0x19d99b)[_0x363b('0x81')];return _0x2f16d8<this[_0x363b('0xbc')]?this[_0x363b('0xbc')]:_0x2f16d8;}[_0x363b('0xa3')](_0x1c0dfb){const _0x1f983d=this[_0x363b('0x1d')][_0x363b('0x7d')](this['repository'][_0x363b('0x75')]-0x1);if(_0x1f983d)this[_0x363b('0x88')]=_0x1f983d['id'];else{const _0x405bd9=!this['editor'][_0x363b('0x5')][_0x363b('0xbe')][_0x363b('0xe7')][_0x363b('0xce')](_0x3d3a98=>this[_0x363b('0x2b')][_0x363b('0x5')]['hasContent'](_0x3d3a98)),_0x404bb8=this[_0x363b('0x2b')][_0x363b('0x0')][_0x363b('0x6d')]('Users')['me']['id'],_0x3a041f=_0x13a64c(this[_0x363b('0x2b')][_0x363b('0x34')],_0x405bd9?_0x363b('0x74'):_0x363b('0x17'));this[_0x363b('0xf7')]({'from':_0x1c0dfb,'to':_0x1c0dfb,'id':this[_0x363b('0x88')],'name':_0x3a041f,'creatorId':_0x404bb8});}}[_0x363b('0x39')](_0x4e1f85){const _0x1eb279=this[_0x363b('0xb5')][_0x363b('0xa6')]();this[_0x363b('0xd4')]=this[_0x363b('0x1d')][_0x363b('0x7d')](_0x1eb279),this[_0x363b('0xd4')]||(this['currentRevision']=this[_0x363b('0xf7')]({'from':_0x4e1f85,'to':_0x4e1f85,'id':_0x1eb279,'name':'','creatorId':null}));}[_0x363b('0xf7')]({name:_0x31c919,from:_0x20c6c3,to:_0x175e01,creatorId:_0x418d2f,id:_0x893c4b}){const _0x438d53=this['buildRevisionData']({'from':_0x20c6c3,'to':_0x175e01});_0x438d53[_0x363b('0xa5')]=_0x31c919,_0x438d53['creatorId']=_0x418d2f,_0x438d53['id']=_0x893c4b;const _0x47f3d8=this[_0x363b('0xe5')](_0x438d53);return this[_0x363b('0x87')]&&this[_0x363b('0x11')](_0x438d53['id'],_0x438d53,!0x0),_0x47f3d8;}[_0x363b('0x2f')](){this[_0x363b('0x2b')][_0x363b('0x97')]['for'](_0x363b('0x16'))[_0x363b('0x71')]({'model':_0x363b('0xf')});}[_0x363b('0xf5')](_0x132153){return(_0x132153=_0x132153[_0x363b('0x93')](_0x879832=>!_0x879832['name']||_0x363b('0x9a')!==_0x879832[_0x363b('0xa5')]&&_0x363b('0xe3')!==_0x879832[_0x363b('0xa5')]))[_0x363b('0x49')](_0x259f27=>{_0x363b('0x3a')!=typeof _0x259f27&&(_0x259f27[_0x363b('0xcb')]=this[_0x363b('0xf5')](_0x259f27[_0x363b('0xcb')]),_0x259f27[_0x363b('0x2d')]=_0x259f27[_0x363b('0x2d')][_0x363b('0x93')](_0x446799=>!_0x446799[0x0][_0x363b('0xa9')](_0x363b('0xf4'))));}),_0x132153;}}function J(_0x3cfb26,_0x1d8cf5){const _0xa2855=_0x1d8cf5[_0x363b('0x24')][_0x363b('0x6f')][_0x363b('0xbe')];if(_0x363b('0x3a')==typeof _0x3cfb26)return new _0x59e135(_0xa2855,_0x3cfb26);{const _0x54a1e9=_0x3cfb26[_0x363b('0xcb')][_0x363b('0x23')](_0x8c6a77=>J(_0x8c6a77,_0x1d8cf5));return new(B[_0x3cfb26[(_0x363b('0xb7'))]]||_0x3e3907)(_0xa2855,_0x3cfb26[_0x363b('0xa5')],_0x3cfb26[_0x363b('0x2d')],_0x54a1e9);}}class H{constructor(_0x1b3116){this['editor']=_0x1b3116,this['_savedMetaData']=new Map(),this[_0x363b('0x20')]=-0x1,this[_0x363b('0x107')]=-0x1,this[_0x363b('0xc9')]=new Map(),this['_diffRoots']=new Map(),this[_0x363b('0x2c')]=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this[_0x363b('0x9d')]=new Map(),this[_0x363b('0xa')]=new Map(),this[_0x363b('0x15')]=new Map(),this[_0x363b('0x8b')]=new Map(),this[_0x363b('0xc3')]=new Map(),this['_revisionId']=0x1,this[_0x363b('0xd9')]=this['editor']['model'][_0x363b('0xbe')][_0x363b('0xc6')](),this['_initialRoots']['push'](_0x363b('0xe9'));}['init'](_0x2837a0){this[_0x363b('0x2a')]=_0x2837a0;const _0xe2109b=new Map(),_0x1e5f92=new Map(),_0x22b2d1=this[_0x363b('0x2b')][_0x363b('0x5')][_0x363b('0xbe')][_0x363b('0xc6')](!0x0);_0x22b2d1[_0x363b('0x60')]('$graveyard');for(const _0x56f71e of _0x22b2d1){const _0x13271e=this[_0x363b('0x2b')][_0x363b('0x5')]['document'][_0x363b('0xd6')](_0x56f71e),_0x1c415d=q(_0x13271e);_0xe2109b[_0x363b('0xdd')](_0x56f71e,_0x1c415d),_0x1e5f92[_0x363b('0xdd')](_0x56f71e,Object[_0x363b('0x19')](_0x13271e[_0x363b('0xec')]()));}const _0x5f0a80=Array[_0x363b('0x59')](this['editor'][_0x363b('0x5')]['markers'])[_0x363b('0x23')](_0x232227=>[_0x232227[_0x363b('0xa5')],_0x232227[_0x363b('0xbf')]()]),_0x5c41fb=this['source'][_0x363b('0x8a')];this[_0x363b('0xee')](_0x5c41fb,_0xe2109b,_0x5f0a80,_0x1e5f92),this['_startingRevisionId']=this[_0x363b('0x4d')];const _0x4d8a4f=new Map(),_0x7066bf=new Map();for(const _0x4b1e38 of this[_0x363b('0xd9')]){const _0x34af2d=G(_0x4b1e38);_0x4d8a4f['set'](_0x4b1e38,_0x34af2d),_0x7066bf[_0x363b('0xdd')](_0x4b1e38,{});}this[_0x363b('0xee')](Number[_0x363b('0x9c')],_0x4d8a4f,[],_0x7066bf);}[_0x363b('0x3b')](_0x4ed7b7,_0x2ea640){if(this[_0x363b('0x20')]===_0x4ed7b7&&this[_0x363b('0x107')]<=_0x2ea640)this['_savedMetaData'][_0x363b('0xed')]>0x1&&this[_0x363b('0xef')](this['_lastTo']),this[_0x363b('0xb6')](this[_0x363b('0x107')],_0x2ea640,!0x0);else{if(!this['_savedMetaData'][_0x363b('0x9b')](_0x4ed7b7)){const _0x329faa=this['_getPreviousFrom'](_0x4ed7b7);this[_0x363b('0x99')](_0x329faa,_0x4ed7b7,!0x1);}this[_0x363b('0x99')](_0x4ed7b7,_0x2ea640,!0x0);}return this[_0x363b('0x20')]=_0x4ed7b7,this[_0x363b('0x107')]=_0x2ea640,this['_getState']();}[_0x363b('0x85')](_0x28c29b){this[_0x363b('0x38')](),this[_0x363b('0x20')]=_0x28c29b[_0x363b('0x37')],this[_0x363b('0x107')]=_0x28c29b[_0x363b('0x81')];for(const _0xfdcd7f in _0x28c29b[_0x363b('0x105')]){const _0x55b9e7=_0x28c29b[_0x363b('0x105')][_0xfdcd7f]['attachChange'],_0x2eb415=_0x451b46(_0x28c29b[_0x363b('0x105')][_0xfdcd7f][_0x363b('0x28')])||{},_0x51b31e=this[_0x363b('0xa8')](_0x28c29b[_0x363b('0x105')][_0xfdcd7f][_0x363b('0x61')]);_0x51b31e[_0x363b('0x90')]=_0xfdcd7f,_0x51b31e['_isAttached']=!_0x55b9e7||!_0x55b9e7['isAttached'],_0x51b31e[_0x363b('0xc5')]=()=>_0x51b31e[_0x363b('0x91')],this[_0x363b('0xdf')]['set'](_0xfdcd7f,_0x51b31e),this[_0x363b('0xb0')][_0x363b('0xdd')](_0xfdcd7f,_0x2eb415),_0x55b9e7&&this[_0x363b('0xc3')][_0x363b('0xdd')](_0xfdcd7f,_0x55b9e7);const _0x36fb70=this[_0x363b('0xcc')](_0x51b31e);this[_0x363b('0xa')][_0x363b('0xdd')](_0xfdcd7f,_0x36fb70);for(const [_0x253b11,_0x52b87b]of _0x51b31e[_0x363b('0x89')]){if(!_0x253b11['startsWith'](_0x363b('0x78')))continue;const _0xa1ba20=_0x253b11[_0x363b('0xb')](':')[0x2];for(const _0x5861ae of _0x52b87b[_0x363b('0xe2')]({'singleCharacters':!0x0})){const _0xc77be1=this[_0x363b('0xc4')](_0x5861ae),_0x1de01a=_0x363b('0x47')==_0x5861ae[_0x363b('0xb7')]?_0x5861ae[_0x363b('0xa1')][_0x363b('0xc0')][_0x363b('0x66')](0x0,-0x1):_0x5861ae[_0x363b('0xa1')][_0x363b('0xc0')],_0x316e65=_0x36fb70[_0x363b('0x8e')](_0x1de01a)[_0x363b('0xf9')](_0xc77be1);this['_touched'][_0x363b('0xdd')](_0x316e65,{'userId':_0xa1ba20});}}}this['_startingRevisionId']=this['_revisionId'];const _0x432f1d=[...Array(this['_revisionId'])[_0x363b('0xf2')]()][_0x363b('0x66')](0x1)[_0x363b('0x93')](_0x20820b=>!this[_0x363b('0x15')][_0x363b('0x9b')](_0x20820b));let _0x370909=0x0;const _0x2d7ec7=new Map();for(const _0x35b215 in _0x28c29b[_0x363b('0x105')]){const _0x1fe177=_0x28c29b[_0x363b('0x105')][_0x35b215][_0x363b('0x33')],_0x17316a=_0x451b46(_0x28c29b[_0x363b('0x105')][_0x35b215][_0x363b('0xa7')])||{},_0x20846b=this[_0x363b('0xa8')](_0x28c29b[_0x363b('0x105')][_0x35b215][_0x363b('0x32')]);_0x20846b[_0x363b('0x90')]=_0x35b215,_0x20846b[_0x363b('0x91')]=!_0x1fe177||_0x1fe177['isAttached'],_0x20846b['isAttached']=()=>_0x20846b[_0x363b('0x91')],this['_diffRoots'][_0x363b('0xdd')](_0x35b215,_0x20846b),this['_diffRootsAttributes']['set'](_0x35b215,_0x17316a);const _0x1b6292=this[_0x363b('0xcc')](_0x20846b,Number['NEGATIVE_INFINITY']);this[_0x363b('0x9d')]['set'](_0x35b215,_0x1b6292),_0x2d7ec7[_0x363b('0xdd')](_0x35b215,_0x20846b['isAttached']()?_0x17316a:{});for(const [_0x38d3c4,_0x1e6a0e]of _0x20846b[_0x363b('0x89')]){if(!_0x38d3c4[_0x363b('0xa9')](_0x363b('0x78')))continue;const _0x2ddd70=_0x38d3c4[_0x363b('0xb')](':')[0x2];for(const _0x5602d5 of _0x1e6a0e[_0x363b('0xe2')]({'singleCharacters':!0x0})){const _0x57e23f=this[_0x363b('0xc4')](_0x5602d5),_0xf41d0c=this[_0x363b('0x4d')]++,_0x37d56b=_0x363b('0x47')==_0x5602d5[_0x363b('0xb7')]?_0x5602d5[_0x363b('0xa1')][_0x363b('0xc0')][_0x363b('0x66')](0x0,-0x1):_0x5602d5[_0x363b('0xa1')]['path'];_0x1b6292[_0x363b('0x8e')](_0x37d56b)[_0x363b('0xcd')](_0x57e23f,_0xf41d0c),this[_0x363b('0x15')][_0x363b('0xdd')](_0xf41d0c,{'userId':_0x2ddd70});}}for(const _0x214d8b of this[_0x363b('0x2b')]['model'][_0x363b('0x13')](_0x20846b)['getWalker']({'singleCharacters':!0x0})){const _0x51d515=this[_0x363b('0xc4')](_0x214d8b),_0x12b9fe='elementEnd'==_0x214d8b[_0x363b('0xb7')]?_0x214d8b[_0x363b('0xa1')][_0x363b('0xc0')]['slice'](0x0,-0x1):_0x214d8b[_0x363b('0xa1')][_0x363b('0xc0')],_0x5034e5=_0x1b6292[_0x363b('0x8e')](_0x12b9fe);_0x5034e5[_0x363b('0xf9')](_0x51d515)>0x0||_0x5034e5[_0x363b('0xcd')](_0x51d515,_0x432f1d[_0x370909++]);}for(const [_0x2ebc78,_0x5e36c4]of _0x20846b[_0x363b('0x89')])_0x2ebc78[_0x363b('0xa9')](_0x363b('0x78'))||this[_0x363b('0xc9')][_0x363b('0xdd')](_0x2ebc78,_0x5e36c4);}const _0x3d6deb=G('$graveyard');this['_baseRoots'][_0x363b('0xdd')](_0x363b('0xe9'),_0x3d6deb),this['_baseIdsRoots']['set'](_0x363b('0xe9'),this[_0x363b('0xcc')](_0x3d6deb,0x1));const _0x4ae6c6=G('$graveyard');this[_0x363b('0x80')][_0x363b('0xdd')](_0x363b('0xe9'),_0x4ae6c6),this[_0x363b('0x9d')][_0x363b('0xdd')](_0x363b('0xe9'),this[_0x363b('0xcc')](_0x4ae6c6,0x1));const _0x368385=Array[_0x363b('0x59')](this['_diffRoots'])['map'](([_0x249c5c,_0x1a6fca])=>[_0x249c5c,q(_0x1a6fca)]);this['_saveMetaData'](this[_0x363b('0x107')],_0x368385,this[_0x363b('0xc9')],_0x2d7ec7);}[_0x363b('0xa8')](_0x416b01){const _0x17bd7d=JSON[_0x363b('0x4c')](_0x416b01),_0x337ca9=this[_0x363b('0x2b')][_0x363b('0x24')][_0x363b('0x6f')][_0x363b('0xbe')],_0x44518d=new _0x1851ef(_0x337ca9,_0x17bd7d[_0x363b('0x23')](_0x169b6b=>J(_0x169b6b,this['editor'])));return this['editor'][_0x363b('0x3e')]['toModel'](_0x44518d);}[_0x363b('0xee')](_0x28bc24,_0x487166,_0x176893,_0xf204c8){const _0x348239=new Map(_0x487166),_0x40443d=new Map(_0x451b46(_0xf204c8)),_0x803569=new Map();for(const [_0x2ec87b,_0xea37f1]of _0x176893)_0x803569[_0x363b('0xdd')](_0x2ec87b,{'start':_0xea37f1[_0x363b('0x5e')][_0x363b('0x2e')](),'end':_0xea37f1[_0x363b('0x54')]['clone'](),'rootName':_0xea37f1['root'][_0x363b('0x90')]});this['_savedMetaData'][_0x363b('0xdd')](_0x28bc24,{'roots':_0x348239,'markers':_0x803569,'rootsAttributes':_0x40443d});}[_0x363b('0xef')](_0x2ae8c9){this['_savedMetaData'][_0x363b('0x69')](_0x2ae8c9);}['reInit'](){this[_0x363b('0x38')](),this['_lastFrom']=-0x1,this[_0x363b('0x107')]=-0x1,this[_0x363b('0x102')]['clear'](),this[_0x363b('0xe')](this[_0x363b('0x2a')]);}[_0x363b('0x38')](){this[_0x363b('0x15')]['clear'](),this[_0x363b('0x8b')][_0x363b('0xcf')](),this[_0x363b('0xc3')][_0x363b('0xcf')](),this[_0x363b('0x80')][_0x363b('0xcf')](),this['_diffRootsAttributes'][_0x363b('0xcf')](),this[_0x363b('0xdf')][_0x363b('0xcf')](),this['_baseRootsAttributes'][_0x363b('0xcf')](),this[_0x363b('0x9d')][_0x363b('0xcf')](),this[_0x363b('0xa')][_0x363b('0xcf')](),this[_0x363b('0xc9')][_0x363b('0xcf')](),this['_revisionId']=0x1,this[_0x363b('0xde')]=this[_0x363b('0x4d')];}[_0x363b('0xcc')](_0x549370,_0x285ddf=null){let _0x1fe517=null;_0x549370['is'](_0x363b('0xfc'))||(_0x1fe517=new _0x59fbf0(_0x549370[_0x363b('0xa5')],{'vid_start':null===_0x285ddf?this[_0x363b('0x4d')]++:_0x285ddf++}));const _0x189008=[];for(const _0x368f99 of _0x549370[_0x363b('0x1b')]())if(_0x368f99['is'](_0x363b('0x6'))){_0x189008[_0x363b('0x60')](this[_0x363b('0xcc')](_0x368f99,_0x285ddf));const _0x14cfb5=_0x189008[_0x189008[_0x363b('0x75')]-0x1];null!==_0x285ddf&&(_0x285ddf=_0x14cfb5['is'](_0x363b('0x6'),'$text')?_0x14cfb5[_0x363b('0xf9')]('vid')+0x1:_0x14cfb5[_0x363b('0xf9')](_0x363b('0x79'))+0x1);}else for(let _0x191330=0x0;_0x191330<_0x368f99['offsetSize'];_0x191330++)_0x189008[_0x363b('0x60')](new _0x59fbf0('$text',{'vid':null===_0x285ddf?this[_0x363b('0x4d')]++:_0x285ddf++}));if(_0x549370['is'](_0x363b('0xfc'))){const _0x54830d=G(_0x549370[_0x363b('0x90')]);return _0x54830d[_0x363b('0xb9')](0x0,_0x189008),_0x54830d;}return _0x1fe517[_0x363b('0xcd')]('vid_end',null===_0x285ddf?this['_revisionId']++:_0x285ddf++),_0x1fe517[_0x363b('0xb9')](0x0,_0x189008),_0x1fe517;}[_0x363b('0x99')](_0xe9f7fb,_0xca3223,_0x4f0d20){this[_0x363b('0x38')]();const {roots:_0x4cd2cc,markers:_0x38922e,rootsAttributes:_0x59eb8d}=this[_0x363b('0x102')][_0x363b('0x6d')](_0xe9f7fb);this['_baseRoots']=new Map(_0x4cd2cc),this[_0x363b('0xb0')]=new Map(_0x451b46(_0x59eb8d));for(const [_0x3ec1d9,_0x52d013]of this[_0x363b('0xdf')])if(_0x363b('0xe9')!==_0x3ec1d9&&(this[_0x363b('0x80')][_0x363b('0xdd')](_0x3ec1d9,q(_0x52d013)),this[_0x363b('0x2c')]=new Map(_0x451b46(_0x59eb8d)),_0x4f0d20)){const _0x23167e=this[_0x363b('0x4d')];this[_0x363b('0x9d')]['set'](_0x3ec1d9,this[_0x363b('0xcc')](_0x52d013)),this[_0x363b('0xa')][_0x363b('0xdd')](_0x3ec1d9,this[_0x363b('0xcc')](_0x52d013,_0x23167e));}this['_startingRevisionId']=this['_revisionId'],this[_0x363b('0x80')]['set'](_0x363b('0xe9'),q(this[_0x363b('0xdf')][_0x363b('0x6d')](_0x363b('0xe9')))),_0x4f0d20&&this[_0x363b('0x9d')]['set'](_0x363b('0xe9'),this[_0x363b('0xcc')](this[_0x363b('0xdf')][_0x363b('0x6d')](_0x363b('0xe9'))));for(const [_0x392fcb,_0x21a41e]of _0x38922e){const _0x24557f=this[_0x363b('0xdf')][_0x363b('0x6d')](_0x21a41e['rootName']),_0x135c95=this[_0x363b('0x80')]['get'](_0x21a41e[_0x363b('0x90')]),_0x718606=new _0x198628(this[_0x363b('0xd5')](_0x21a41e[_0x363b('0x5e')],_0x24557f),this[_0x363b('0xd5')](_0x21a41e['end'],_0x24557f)),_0x51142a=this['_fixRange'](_0x718606,_0x135c95);_0x24557f[_0x363b('0x89')][_0x363b('0xdd')](_0x392fcb,_0x718606),this[_0x363b('0xc9')][_0x363b('0xdd')](_0x392fcb,_0x51142a);}this['_applyOperations'](_0xe9f7fb,_0xca3223,_0x4f0d20);}[_0x363b('0xb6')](_0x426af6,_0x252974,_0x197395){for(const _0x4bde3b of this[_0x363b('0x2a')]['getOperations'](_0x426af6,_0x252974))this[_0x363b('0x46')](_0x4bde3b,_0x197395);for(const _0x130093 of this[_0x363b('0x80')]['values']())_0x130093[_0x363b('0x89')]['clear']();for(const [_0x20b9a2,_0x3b8dc0]of this[_0x363b('0xc9')]){this[_0x363b('0x80')]['get'](_0x3b8dc0['root'][_0x363b('0x90')])[_0x363b('0x89')][_0x363b('0xdd')](_0x20b9a2,_0x3b8dc0[_0x363b('0x2e')]());}const _0x4dcded=new Map(),_0x231da3=new Map();for(const [_0x57c88b,_0x385f97]of this['_diffRoots'])_0x4dcded['set'](_0x57c88b,q(_0x385f97)),_0x231da3[_0x363b('0xdd')](_0x57c88b,this[_0x363b('0x2c')][_0x363b('0x6d')](_0x57c88b));this[_0x363b('0xee')](_0x252974,_0x4dcded,this[_0x363b('0xc9')],_0x231da3);}['_getPreviousFrom'](_0x544c8d){const _0x1b375f=Array[_0x363b('0x59')](this[_0x363b('0x102')]['keys']());_0x1b375f[_0x363b('0x5c')]((_0x4d2bd3,_0x181dba)=>_0x4d2bd3-_0x181dba),_0x1b375f[_0x363b('0xd0')]();for(const _0x40450a of _0x1b375f)if(_0x40450a<_0x544c8d)return _0x40450a;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x43b563,_0x2286f6){const _0x520e53=Array['from'](_0x2286f6[_0x363b('0x89')])['map'](([_0x591eaf,_0x75999e])=>[_0x591eaf,this[_0x363b('0xd1')](_0x75999e,_0x43b563)]);_0x43b563[_0x363b('0x89')]=new Map(_0x520e53);}[_0x363b('0xe4')](_0x5189f8){for(const _0x1132bb of this['_markers']['values']()){const _0x594f92=_0x1132bb[_0x363b('0x21')](_0x5189f8),_0x1d1e36=_0x198628[_0x363b('0xb8')](_0x594f92);_0x1132bb['start']=_0x1d1e36[_0x363b('0x5e')],_0x1132bb[_0x363b('0x54')]=_0x1d1e36[_0x363b('0x54')];}}[_0x363b('0x46')](_0x193567,_0x3a0dc8){if(_0x363b('0x52')==_0x193567[_0x363b('0xb7')]||_0x363b('0xc7')==_0x193567[_0x363b('0xb7')])return void this[_0x363b('0x26')](_0x193567,_0x3a0dc8);if(_0x363b('0x41')==_0x193567[_0x363b('0xb7')]){const _0x197f06=_0x193567[_0x363b('0x83')]['root']['rootName'];this[_0x363b('0x80')][_0x363b('0x9b')](_0x197f06)||(this[_0x363b('0x80')][_0x363b('0xdd')](_0x197f06,G(_0x197f06,!0x0)),this['_diffRootsAttributes'][_0x363b('0xdd')](_0x197f06,{}),_0x3a0dc8&&this[_0x363b('0x9d')]['set'](_0x197f06,G(_0x197f06,!0x0)));}if('addRootAttribute'==_0x193567['type']||'removeRootAttribute'==_0x193567[_0x363b('0xb7')]||_0x363b('0xa0')==_0x193567[_0x363b('0xb7')])return void this['_handleRootAttributeOperation'](_0x193567);const _0x53507c=this['_cloneOperation'](_0x193567,this[_0x363b('0x80')]);if('marker'!==_0x193567['type']&&(_0x53507c[_0x363b('0xca')](),this[_0x363b('0xe4')](_0x53507c)),_0x3a0dc8)switch(_0x53507c['type']){case _0x363b('0x41'):this['_handleInsertOperation'](_0x193567);break;case'move':case _0x363b('0xdb'):case _0x363b('0x72'):this[_0x363b('0x106')](_0x193567);break;case'merge':this[_0x363b('0x8d')](_0x193567);break;case _0x363b('0xb'):this[_0x363b('0xd2')](_0x193567);break;case _0x363b('0xeb'):this[_0x363b('0x50')](_0x193567);}}[_0x363b('0x57')](_0x35dd29,_0x2e4e00){const _0x294923=_0x35dd29[_0x363b('0x2e')]();return _0x294923[_0x363b('0xd3')]=_0x35dd29[_0x363b('0xd3')],this[_0x363b('0x73')](_0x294923,_0x2e4e00),_0x294923;}['_getBaseVids'](_0x2d719b){return _0x2d719b['map'](_0xb78b81=>{const _0x90b647=this['_getVidAttributeName'](_0xb78b81);return Number(_0xb78b81[_0x363b('0x1e')][_0x363b('0xf9')](_0x90b647));});}[_0x363b('0xe6')](_0x8a4e31,_0x4b235c){if(_0x8a4e31['is'](_0x363b('0x6'),'$text'))_0x4b235c['push']({'item':_0x8a4e31,'type':_0x363b('0x35')});else{_0x8a4e31['is'](_0x363b('0x6'))&&_0x4b235c[_0x363b('0x60')]({'item':_0x8a4e31,'type':_0x363b('0x95')});for(const _0x1bf903 of _0x8a4e31[_0x363b('0x1b')]())this[_0x363b('0xe6')](_0x1bf903,_0x4b235c);_0x8a4e31['is'](_0x363b('0x6'))&&_0x4b235c[_0x363b('0x60')]({'item':_0x8a4e31,'type':_0x363b('0x47')});}return _0x4b235c;}[_0x363b('0x6b')](){const _0x49bb7e=new Map(this['_touched']),_0x173e24=new Map(_0x49bb7e),_0x251240=new Map(),_0x42c530={'insertions':{},'deletions':{}},_0xdb8b22={'insertions':{},'deletions':{}},_0xc74623=new Map(),_0x5b6ba4=new Set([...this['_baseRoots'][_0x363b('0xf2')](),...this[_0x363b('0x80')][_0x363b('0xf2')]()]);_0x5b6ba4[_0x363b('0x69')](_0x363b('0xe9'));for(const _0x21ed84 of _0x5b6ba4){const _0x223805=this['_diffRoots'][_0x363b('0x6d')](_0x21ed84)||G(_0x21ed84,!0x1),_0x20d824=this[_0x363b('0xdf')][_0x363b('0x6d')](_0x21ed84)||G(_0x21ed84,!0x1);_0x223805[_0x363b('0xc5')]()||_0x20d824['isAttached']()?(_0x42c530[_0x363b('0x32')][_0x21ed84]=q(_0x223805),_0x42c530['deletions'][_0x21ed84]=q(_0x20d824),this[_0x363b('0x4e')](_0x42c530[_0x363b('0x61')][_0x21ed84],_0x20d824),this[_0x363b('0x4e')](_0x42c530[_0x363b('0x32')][_0x21ed84],_0x223805),_0xdb8b22[_0x363b('0x32')][_0x21ed84]=this[_0x363b('0xe6')](this[_0x363b('0x9d')]['get'](_0x21ed84),[]),_0xdb8b22['deletions'][_0x21ed84]=this['_generateTape'](this[_0x363b('0xa')][_0x363b('0x6d')](_0x21ed84)||G(_0x21ed84,!0x1),[])):_0x5b6ba4['delete'](_0x21ed84);}for(const _0x55aea4 of _0x5b6ba4){const _0x3daea2=_0xdb8b22[_0x363b('0x32')][_0x55aea4];for(const _0x2e1fc9 of _0x3daea2){const _0x142b39=this[_0x363b('0xc4')](_0x2e1fc9),_0x4a3f79=_0x2e1fc9['item'][_0x363b('0xf9')](_0x142b39);_0x173e24[_0x363b('0x69')](_0x4a3f79),_0x4a3f79>=this[_0x363b('0xde')]&&_0x251240[_0x363b('0xdd')](_0x4a3f79,_0x49bb7e[_0x363b('0x6d')](_0x4a3f79));}}for(const _0x17774c of _0x5b6ba4){const _0x2bb935=_0xdb8b22['insertions'][_0x17774c],_0x130556=this[_0x363b('0xac')](_0xdb8b22['deletions'][_0x17774c]);let _0x3aefb6=0x0;for(const _0x1a9810 of _0x2bb935){const _0x3e1a36=this[_0x363b('0xc4')](_0x1a9810),_0x4e73dd=_0x1a9810[_0x363b('0x1e')][_0x363b('0xf9')](_0x3e1a36);if(!_0x251240[_0x363b('0x9b')](_0x4e73dd)&&!_0xc74623['has'](_0x4e73dd)){if(_0x173e24[_0x363b('0x9b')](_0x4e73dd))_0x3aefb6++;else{if(_0x4e73dd!=_0x130556[_0x3aefb6]){const _0x1ff187=_0x49bb7e['get'](_0x4e73dd)||_0x49bb7e['get'](_0x130556[_0x3aefb6]);for(;_0x4e73dd!=_0x130556[_0x3aefb6];)_0x173e24[_0x363b('0x9b')](_0x130556[_0x3aefb6])||(_0xc74623[_0x363b('0xdd')](_0x130556[_0x3aefb6],_0x1ff187),_0x49bb7e['set'](_0x130556[_0x3aefb6],_0x1ff187)),_0x3aefb6++;}_0x3aefb6++;}}}}for(const _0x3fedd0 of _0x5b6ba4){const _0x18eba7=_0xdb8b22[_0x363b('0x32')][_0x3fedd0];for(const _0x517365 of _0x18eba7){const _0x4205cb=this['_getVidAttributeName'](_0x517365),_0x29fb00=_0x517365[_0x363b('0x1e')][_0x363b('0xf9')](_0x4205cb);if(_0xc74623[_0x363b('0x9b')](_0x29fb00)){const _0xb634da=_0xc74623['get'](_0x29fb00);_0x173e24[_0x363b('0x9b')](_0x29fb00)||_0x173e24[_0x363b('0xdd')](_0x29fb00,{..._0xb634da}),_0x251240[_0x363b('0xdd')](_0x29fb00,{..._0xb634da});}}}for(const _0x34b469 of _0x173e24[_0x363b('0xf2')]())_0x34b469>=this[_0x363b('0xde')]&&_0x173e24[_0x363b('0x69')](_0x34b469);const _0x1e9391=new Map();for(const _0x1c34d3 of _0x5b6ba4){let _0xf63f93=_0xdb8b22['insertions'][_0x1c34d3];for(const _0x3fa15e of _0xf63f93)if(_0x3fa15e[_0x363b('0x1e')]['is']('element',_0x363b('0xda'))){const _0x1b43d5=this['_getVidAttributeName'](_0x3fa15e),_0x4543fb=_0x3fa15e[_0x363b('0x1e')][_0x363b('0xf9')](_0x1b43d5);if(_0x251240[_0x363b('0x9b')](_0x4543fb)){const _0x152094=_0x3fa15e[_0x363b('0x1e')]['parent']['parent'][_0x363b('0xf9')](_0x363b('0xc')),_0x49d423=_0x1e9391[_0x363b('0x6d')](_0x152094)||new Set();_0x49d423['add'](_0x251240['get'](_0x4543fb)[_0x363b('0x4a')]),_0x1e9391[_0x363b('0xdd')](_0x152094,_0x49d423);}}_0xf63f93=_0xdb8b22['deletions'][_0x1c34d3];for(const _0xaaccca of _0xf63f93)if(_0xaaccca[_0x363b('0x1e')]['is']('element',_0x363b('0xda'))){const _0x4d6508=this[_0x363b('0xc4')](_0xaaccca),_0x3c98f0=_0xaaccca[_0x363b('0x1e')][_0x363b('0xf9')](_0x4d6508);if(_0x173e24[_0x363b('0x9b')](_0x3c98f0)){const _0xb845e=_0xaaccca[_0x363b('0x1e')][_0x363b('0xdc')][_0x363b('0xdc')][_0x363b('0xf9')]('vid_start'),_0x1d24d6=_0x1e9391[_0x363b('0x6d')](_0xb845e)||new Set();_0x1d24d6[_0x363b('0x3c')](_0x173e24['get'](_0x3c98f0)[_0x363b('0x4a')]),_0x1e9391[_0x363b('0xdd')](_0xb845e,_0x1d24d6);}}for(const _0xb091a4 of _0x1e9391['keys']())(_0x251240[_0x363b('0x9b')](_0xb091a4)||_0x173e24[_0x363b('0x9b')](_0xb091a4))&&_0x1e9391[_0x363b('0x69')](_0xb091a4);}for(const _0x91ace5 of _0x5b6ba4){const _0x5adf98=_0xdb8b22[_0x363b('0x32')][_0x91ace5];let _0xece703=null,_0x52e6a3=null;for(const _0x140a2c of _0x5adf98){const _0x1109ac=this[_0x363b('0xc4')](_0x140a2c),_0x43588e=_0x140a2c['item']['getAttribute'](_0x1109ac),_0x47318c=_0x1e9391['get'](_0x43588e);_0x47318c&&'elementStart'==_0x140a2c[_0x363b('0xb7')]&&(_0xece703=Array[_0x363b('0x59')](_0x47318c)[0x0],_0x52e6a3=_0x140a2c[_0x363b('0x1e')][_0x363b('0xf9')](_0x363b('0x79'))),_0xece703&&(_0x173e24['set'](_0x43588e,{'userId':_0xece703}),_0x251240[_0x363b('0xdd')](_0x43588e,{'userId':_0xece703})),_0x43588e==_0x52e6a3&&(_0xece703=null,_0x52e6a3=null);}}const _0x31148a={},_0x3c212f=new Set();for(const _0x290b7c of _0x5b6ba4){const _0x3c5f48=_0x42c530[_0x363b('0x61')][_0x290b7c],_0x9c777a=_0x42c530[_0x363b('0x32')][_0x290b7c];for(const {userId:_0x2a08df}of this[_0x363b('0x8b')][_0x363b('0x84')]())null!==_0x2a08df&&_0x3c212f[_0x363b('0x3c')](_0x2a08df);for(const {userId:_0xf4c5bc}of this['_touchedRoots']['values']())null!==_0xf4c5bc&&_0x3c212f['add'](_0xf4c5bc);this[_0x363b('0x65')](_0x9c777a,_0xdb8b22[_0x363b('0x32')][_0x290b7c],_0x251240,_0x363b('0x7c'),_0x3c212f),this[_0x363b('0x65')](_0x3c5f48,_0xdb8b22[_0x363b('0x61')][_0x290b7c],_0x173e24,'deletion',_0x3c212f),_0x31148a[_0x290b7c]={'insertions':this[_0x363b('0xaf')](_0x9c777a),'deletions':this[_0x363b('0xaf')](_0x3c5f48),'attachChange':this['_touchedRoots'][_0x363b('0x6d')](_0x290b7c)||null,'attributesBefore':_0x451b46(this[_0x363b('0xb0')][_0x363b('0x6d')](_0x290b7c))||{},'attributesAfter':_0x451b46(this[_0x363b('0x2c')][_0x363b('0x6d')](_0x290b7c))};}return{'diffData':_0x31148a,'authorsIds':Array['from'](_0x3c212f)};}[_0x363b('0x4b')](_0x2fb063){for(const [,_0x432903]of _0x2fb063[_0x363b('0x89')]){const _0x8277fd=_0x432903[_0x363b('0x5e')]['getAncestors']()['filter'](_0x49d5b8=>_0x363b('0xda')==_0x49d5b8[_0x363b('0xa5')]);for(const _0x2706ef of _0x8277fd)0x1==_0x2706ef[_0x363b('0x1')]&&_0x2706ef[_0x363b('0x6c')](0x0)['is'](_0x363b('0x6'),_0x363b('0x62'))&&_0x2706ef['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}[_0x363b('0xaf')](_0x1d1496){this[_0x363b('0x4b')](_0x1d1496);const _0x179ff3=this[_0x363b('0x2b')][_0x363b('0x3e')][_0x363b('0x101')](_0x1d1496,{}),_0x1f23a5=Array[_0x363b('0x59')](_0x179ff3[_0x363b('0x1b')]())[_0x363b('0x23')](_0x48df33=>this[_0x363b('0x8c')](_0x48df33));return JSON['stringify'](_0x1f23a5);}[_0x363b('0x8c')](_0x3a1821){if(_0x3a1821['is']('$text'))return _0x3a1821[_0x363b('0x3e')];{const _0x17b376=_0x3a1821;return{'type':Object[_0x363b('0xf2')](B)['find'](_0x40d83a=>_0x3a1821 instanceof B[_0x40d83a]),'name':_0x17b376[_0x363b('0xa5')],'attributes':Array['from'](_0x17b376['getAttributes']()),'children':Array[_0x363b('0x59')](_0x17b376[_0x363b('0x1b')]())[_0x363b('0x23')](_0x3aa0ff=>this[_0x363b('0x8c')](_0x3aa0ff))};}}['_markChanges'](_0x3b1b20,_0x472350,_0x206e09,_0x468ed6,_0x578779){let _0x4e82e3=null,_0x202a1a=null,_0x1e2479=0x0;const _0x572db1=this[_0x363b('0x2b')][_0x363b('0x5')];for(let _0x2da177=0x0;_0x2da177<_0x472350['length'];_0x2da177++){const _0xce135e=this[_0x363b('0xc4')](_0x472350[_0x2da177]),_0x36cc57=_0x472350[_0x2da177]['item'][_0x363b('0xf9')](_0xce135e),_0x2bb7da=_0x206e09['get'](_0x36cc57),_0xdbc664=_0x2da177==_0x472350[_0x363b('0x75')]-0x1;(!_0x4e82e3&&_0x2bb7da&&(_0x4e82e3=_0x2bb7da,_0x202a1a=_0x472350[_0x2da177]),_0x4e82e3&&(!_0x2bb7da||_0x2bb7da['userId']!=_0x4e82e3[_0x363b('0x4a')]))&&(_0x16db87(_0x2bb7da,L(_0x202a1a,_0x3b1b20,_0x572db1),L(_0x472350[_0x2da177],_0x3b1b20,_0x572db1)),_0x4e82e3=_0x2bb7da||null,_0x202a1a=_0x2bb7da?_0x472350[_0x2da177]:null),_0x4e82e3&&_0xdbc664&&_0x16db87(_0x2bb7da,L(_0x202a1a,_0x3b1b20,_0x572db1),W(_0x472350[_0x2da177],_0x3b1b20,_0x572db1));}function _0x16db87(_0x1660f0,_0x28a79f,_0x3553b9){const _0x39da6c=_0x4e82e3[_0x363b('0x4a')],_0x3a293b=_0x363b('0x78')+_0x468ed6+':'+_0x39da6c+':'+_0x1e2479++,_0x353f22=_0x572db1[_0x363b('0x29')](_0x28a79f,_0x3553b9);_0x3b1b20[_0x363b('0x89')][_0x363b('0xdd')](_0x3a293b,_0x353f22),null!==_0x39da6c&&_0x578779[_0x363b('0x3c')](_0x39da6c);}}['_getVidAttributeName'](_0x30cfe4){switch(_0x30cfe4[_0x363b('0xb7')]){case _0x363b('0x95'):return _0x363b('0xc');case _0x363b('0x47'):return _0x363b('0x79');default:return'vid';}}[_0x363b('0x73')](_0x33e1dd,_0x344010){_0x33e1dd['baseVersion']=null;for(const _0x53bec9 in _0x33e1dd){const _0x59ef90=_0x33e1dd[_0x53bec9];if(_0x59ef90 instanceof _0x2d407b){const _0xbc401b=_0x344010[_0x363b('0x6d')](_0x59ef90[_0x363b('0xba')][_0x363b('0x90')]);_0x33e1dd[_0x53bec9]=this[_0x363b('0xd5')](_0x59ef90,_0xbc401b);}if(_0x59ef90 instanceof _0x198628){const _0x1a2c51=_0x344010['get'](_0x59ef90[_0x363b('0xba')][_0x363b('0x90')]);_0x33e1dd[_0x53bec9]=this['_fixRange'](_0x59ef90,_0x1a2c51);}'root'===_0x53bec9&&(_0x33e1dd['root']=_0x344010['get'](_0x33e1dd[_0x363b('0xba')]['rootName']));}}[_0x363b('0xd1')](_0x33d208,_0x3f6f64){return this['editor'][_0x363b('0x5')][_0x363b('0x29')](this[_0x363b('0xd5')](_0x33d208['start'],_0x3f6f64),this[_0x363b('0xd5')](_0x33d208['end'],_0x3f6f64));}[_0x363b('0xd5')](_0x5bd427,_0x3201d9){return this['editor'][_0x363b('0x5')][_0x363b('0x4')](_0x3201d9,_0x5bd427[_0x363b('0xc0')],_0x5bd427['stickiness']);}[_0x363b('0xe1')](_0x4241b6){const _0x2819f7=this[_0x363b('0x9d')][_0x363b('0x6d')](_0x4241b6[_0x363b('0x83')][_0x363b('0xba')][_0x363b('0x90')]),_0x7118b8=this[_0x363b('0xd5')](_0x4241b6[_0x363b('0x83')],_0x2819f7),_0x3e3d30=null===_0x4241b6[_0x363b('0xd3')]?null:_0x4241b6[_0x363b('0xd3')]||this[_0x363b('0x2b')][_0x363b('0x0')][_0x363b('0x6d')](_0x363b('0xfe'))['me']['id'],_0x2cf664=_0x7118b8['parent'],_0x5ec0b9=this[_0x363b('0x4d')],_0x446e82=[];for(const _0x22ed70 of _0x4241b6[_0x363b('0x64')])if(_0x22ed70['is'](_0x363b('0x6')))_0x446e82[_0x363b('0x60')](this[_0x363b('0xcc')](_0x22ed70));else for(let _0x158981=0x0;_0x158981<_0x22ed70[_0x363b('0x53')];_0x158981++)_0x446e82['push'](new _0x59fbf0('$text',{'vid':this[_0x363b('0x4d')]++}));const _0x583f8c=this[_0x363b('0x4d')];for(let _0x243a54=_0x5ec0b9;_0x243a54<_0x583f8c;_0x243a54++)this[_0x363b('0x15')][_0x363b('0xdd')](_0x243a54,{'userId':_0x3e3d30});_0x2cf664[_0x363b('0xb9')](_0x7118b8[_0x363b('0x67')],_0x446e82);}['_handleMoveOperation'](_0x4e924a){(_0x4e924a=this[_0x363b('0x57')](_0x4e924a,this[_0x363b('0x9d')]))[_0x363b('0xca')]();const _0xfbcb44=null===_0x4e924a['_authorId']?null:_0x4e924a[_0x363b('0xd3')]||this[_0x363b('0x2b')][_0x363b('0x0')]['get'](_0x363b('0xfe'))['me']['id'],_0x344189=_0x4e924a[_0x363b('0x1f')](),_0x1e52d3=_0x344189[_0x363b('0xdc')],_0x252987=_0x344189[_0x363b('0x67')];!function _0x277850(_0x28fa09,_0x3fb93f,_0x91f72e,_0x187153){for(let _0x54609c=_0x91f72e;_0x54609c<_0x187153;_0x54609c++){const _0x45803e=_0x3fb93f[_0x363b('0x6c')](_0x54609c);_0x45803e['is'](_0x363b('0x6'),_0x363b('0xd8'))?_0x28fa09[_0x363b('0xdd')](_0x45803e['getAttribute'](_0x363b('0x92')),{'userId':_0xfbcb44}):(_0x28fa09[_0x363b('0xdd')](_0x45803e[_0x363b('0xf9')](_0x363b('0xc')),{'userId':_0xfbcb44}),_0x277850(_0x28fa09,_0x45803e,0x0,_0x45803e['childCount']),_0x28fa09[_0x363b('0xdd')](_0x45803e[_0x363b('0xf9')](_0x363b('0x79')),{'userId':_0xfbcb44}));}}(this[_0x363b('0x15')],_0x1e52d3,_0x252987,_0x252987+_0x4e924a[_0x363b('0x5b')]);}['_handleMergeOperation'](_0x213730){const _0x253a0b=null===(_0x213730=this[_0x363b('0x57')](_0x213730,this[_0x363b('0x9d')]))[_0x363b('0xd3')]?null:_0x213730[_0x363b('0xd3')]||this[_0x363b('0x2b')][_0x363b('0x0')]['get'](_0x363b('0xfe'))['me']['id'],_0x517cbc=_0x213730[_0x363b('0xd7')][_0x363b('0xdc')],_0x23d8af=_0x213730['sourcePosition'][_0x363b('0xdc')],_0xf08799=_0x517cbc['getAttribute'](_0x363b('0x79')),_0x391d0e=_0x23d8af[_0x363b('0xf9')](_0x363b('0xc'));_0x517cbc[_0x363b('0xcd')](_0x363b('0x79'),_0x23d8af[_0x363b('0xf9')](_0x363b('0x79'))),_0x23d8af['_setAttribute'](_0x363b('0x79'),_0xf08799),this[_0x363b('0x15')]['set'](_0x391d0e,{'userId':_0x253a0b}),this[_0x363b('0x15')][_0x363b('0xdd')](_0xf08799,{'userId':_0x253a0b}),_0x213730[_0x363b('0xca')]();}['_handleSplitOperation'](_0x1c8651){const _0x561eee=null===(_0x1c8651=this['_cloneOperation'](_0x1c8651,this[_0x363b('0x9d')]))['_authorId']?null:_0x1c8651[_0x363b('0xd3')]||this[_0x363b('0x2b')]['plugins'][_0x363b('0x6d')](_0x363b('0xfe'))['me']['id'],_0x591edd=_0x1c8651['graveyardPosition'],_0x4ff1d7=_0x1c8651['splitPosition'][_0x363b('0xdc')];_0x1c8651[_0x363b('0xca')]();const _0x125578=_0x4ff1d7['getAttribute'](_0x363b('0x79')),_0x9d2b83=_0x1c8651[_0x363b('0x4f')][_0x363b('0x2')];if(_0x591edd){const _0x560533=_0x9d2b83[_0x363b('0xf9')](_0x363b('0x79')),_0x619c06=_0x4ff1d7[_0x363b('0xf9')]('vid_end');_0x4ff1d7['_setAttribute']('vid_end',_0x560533),_0x9d2b83[_0x363b('0xcd')](_0x363b('0x79'),_0x619c06),this[_0x363b('0x15')][_0x363b('0xdd')](_0x4ff1d7[_0x363b('0xf9')](_0x363b('0x79')),{'userId':_0x561eee}),this[_0x363b('0x15')][_0x363b('0xdd')](_0x9d2b83[_0x363b('0xf9')](_0x363b('0xc')),{'userId':_0x561eee});}else{const _0x330550=this[_0x363b('0x4d')]++,_0x5c929c=this[_0x363b('0x4d')]++;_0x4ff1d7['_setAttribute'](_0x363b('0x79'),_0x330550),_0x9d2b83[_0x363b('0xcd')](_0x363b('0xc'),_0x5c929c),_0x9d2b83[_0x363b('0xcd')](_0x363b('0x79'),_0x125578),this[_0x363b('0x15')]['set'](_0x330550,{'userId':_0x561eee}),this['_touched']['set'](_0x5c929c,{'userId':_0x561eee});}}['_handleMarkerOperation'](_0x23e52d){if(!_0x23e52d[_0x363b('0x96')])return;const _0x33c719=(_0x23e52d=this[_0x363b('0x57')](_0x23e52d,this[_0x363b('0x80')]))[_0x363b('0xc2')]?_0x23e52d[_0x363b('0xc2')][_0x363b('0xba')]:null,_0x25504c=_0x23e52d[_0x363b('0x7')]?_0x23e52d['newRange'][_0x363b('0xba')]:null;_0x33c719&&this[_0x363b('0xc9')][_0x363b('0x69')](_0x23e52d[_0x363b('0xa5')]),_0x25504c&&this[_0x363b('0xc9')]['set'](_0x23e52d[_0x363b('0xa5')],_0x23e52d[_0x363b('0x7')][_0x363b('0x2e')]());const _0x49e241=null===_0x23e52d['_authorId']?null:_0x23e52d['_authorId']||this['editor'][_0x363b('0x0')]['get'](_0x363b('0xfe'))['me']['id'],_0x490fc3=_0x23e52d[_0x363b('0xa5')];if(!this[_0x363b('0x8b')][_0x363b('0x9b')](_0x490fc3))return void this[_0x363b('0x8b')][_0x363b('0xdd')](_0x490fc3,{'range':_0x23e52d[_0x363b('0xc2')],'userId':_0x49e241});const _0x1eb250=this[_0x363b('0x8b')][_0x363b('0x6d')](_0x490fc3),_0x3759fd=_0x1eb250[_0x363b('0xf6')],_0xa801cf=_0x23e52d[_0x363b('0x7')];null==_0x3759fd&&null==_0xa801cf||_0x3759fd&&_0xa801cf&&_0x3759fd[_0x363b('0x7f')](_0xa801cf)?this[_0x363b('0x8b')]['delete'](_0x23e52d[_0x363b('0xa5')]):_0x1eb250[_0x363b('0x4a')]=_0x49e241;}['_handleRootOperation'](_0x4bf38e,_0x14c746){this[_0x363b('0x80')][_0x363b('0x9b')](_0x4bf38e['rootName'])?this[_0x363b('0x80')][_0x363b('0x6d')](_0x4bf38e[_0x363b('0x90')])[_0x363b('0x91')]=_0x4bf38e[_0x363b('0x3d')]:(this[_0x363b('0x80')][_0x363b('0xdd')](_0x4bf38e['rootName'],G(_0x4bf38e[_0x363b('0x90')],!0x0)),this['_diffRootsAttributes']['set'](_0x4bf38e[_0x363b('0x90')],{}),_0x14c746&&this[_0x363b('0x9d')][_0x363b('0xdd')](_0x4bf38e['rootName'],G(_0x4bf38e[_0x363b('0x90')],!0x0)));const _0x1d8acc=null===_0x4bf38e[_0x363b('0xd3')]?null:_0x4bf38e['_authorId']||this[_0x363b('0x2b')][_0x363b('0x0')]['get']('Users')['me']['id'],_0x232f86=this[_0x363b('0xc3')][_0x363b('0x6d')](_0x4bf38e['rootName']);_0x232f86&&_0x232f86[_0x363b('0x4a')]===_0x1d8acc?this[_0x363b('0xc3')][_0x363b('0x69')](_0x4bf38e['rootName']):this['_touchedRoots'][_0x363b('0xdd')](_0x4bf38e[_0x363b('0x90')],{'userId':_0x1d8acc,'isAttached':_0x4bf38e[_0x363b('0x3d')]});}['_handleRootAttributeOperation'](_0x3ab92e){const _0xe0a5e7=this[_0x363b('0x2c')][_0x363b('0x6d')](_0x3ab92e[_0x363b('0xba')][_0x363b('0x90')]);null===_0x3ab92e[_0x363b('0x8f')]?delete _0xe0a5e7[_0x3ab92e[_0x363b('0x100')]]:_0xe0a5e7[_0x3ab92e[_0x363b('0x100')]]=_0x3ab92e[_0x363b('0x8f')];}}function q(_0x19921f){const _0x1d6c0a=G(_0x19921f[_0x363b('0x90')],_0x19921f[_0x363b('0xc5')]());for(const _0x27249f of _0x19921f[_0x363b('0x1b')]()){const _0xab27=_0x27249f[_0x363b('0xb3')](!0x0);_0x1d6c0a[_0x363b('0xea')](_0xab27);}return _0x1d6c0a;}function G(_0x3a97dd,_0x1727f6=!0x0){const _0x4fbf7e=new _0x1e2b71();return _0x4fbf7e[_0x363b('0x90')]=_0x3a97dd,_0x4fbf7e[_0x363b('0x91')]=_0x1727f6,_0x4fbf7e[_0x363b('0xc5')]=()=>_0x4fbf7e[_0x363b('0x91')],_0x4fbf7e;}function L(_0xfceaf2,_0x3c1d6f,_0x17a69c){const _0xa1b3fd=_0x363b('0x47')==_0xfceaf2[_0x363b('0xb7')]?_0x17a69c[_0x363b('0x86')](_0xfceaf2[_0x363b('0x1e')],_0x363b('0x54')):_0x17a69c['createPositionBefore'](_0xfceaf2['item']);return _0x17a69c[_0x363b('0x4')](_0x3c1d6f,_0xa1b3fd[_0x363b('0xc0')],_0xa1b3fd[_0x363b('0x8')]);}function W(_0x1427e7,_0x1213ae,_0x436033){const _0x2f40e3=_0x363b('0x95')==_0x1427e7[_0x363b('0xb7')]?_0x436033[_0x363b('0x86')](_0x1427e7[_0x363b('0x1e')],0x0):_0x436033[_0x363b('0x70')](_0x1427e7[_0x363b('0x1e')]);return _0x436033[_0x363b('0x4')](_0x1213ae,_0x2f40e3['path'],_0x2f40e3['stickiness']);}
23
+ const _0x317d=['initialData','$text','_replaceEditorDataWithRevisionData','getRevisionDocumentData','_isAttached','_source','reInit','_update','createPositionFromPath','_insertChild','history','element','oldRange','_fixPosition','_createFromRanges','markerToData','_findInsertionIndex','offset','_saveMetaData','attributesAfter','bind','_getVidAttributeName','createPositionAt','_authorId','_handleMoveOperation','type','_handleInsertOperation','_baseRoots','_copyMarkers','_makeRevision','deletions','getRootNames','toVersion','isAttached','getRoot','newRange','elementStart','_reset','_removeRevisionMarkers','insertion','keys','_handleRootAttributeOperation','creatorId','paragraph','addRevision','isReady','previousPosition','createPositionBefore','revision','_revisionId','_diffRoots','some','creator','editor','remove','filter','name','_markers','resolve','forEach','map','_baseIdsRoots','useFillerType','changeRootAttribute','_diffRootsAttributes','clone','getWalker','_lastFrom','revision:','_markChanges','_handleRootOperation','createRange','from','pluginName','delete','$graveyard','_fixRange','_setConversion','diffData','_getState','finally','getAncestors','_loadRevisionData','_startingVersion','data','attributes','_removePendingAction','data-revision-','path','_touchedRoots','range','buildRevisionData','text','getRevisionRootsAttributes','sourcePosition','clear','markers','plugins','getChild','isEnabled','_baseRootsAttributes','_getFromVersion','get','affectsData','length','_setAttribute','Empty\x20document','editor-initial-data-replaced-with-revision-data','_continueCurrentRevision','saveRevision','revision-end','_isInit','getRevision','split','_savedMetaData','dataToMarker','RevisionsRepository','getUser','root','fromEntries','_createInitialRevision','_processRootBeforeSave','end','_prepareViewToSave','_addPendingAction','_touched','_makeIdsRoot','_createCurrentRevision','_getBaseVids','size','revision-start','getRange','values','vid','version','has','_bufferedUpdates','authorsIds','reinsert','model','marked','childCount','createRangeIn','parent','hasContent','sendBufferedUpdates','_execute','_getViewJson','view','nodeAfter','attachChange','_makeModelFromViewString','NEGATIVE_INFINITY','source','isAdd','getData','_revisionDataBuilder','document','repository','locale','getOperation','insertions','_handleMergeOperation','marker','createRevision','_operations','getChildren','find','rootName','createPositionAfter','currentRevision','_isPendingUpdate','getCurrentRevisionId','item','add','_transformMarkers','vid_start','removeRootAttribute','slice','getLatestVersion','init','_handleSplitOperation','getOperations','processor','newValue','deletion','start','addRoot','reverse','keepParagraph','adapter','howMany','revisionHistory.resumeUnsavedRevision','detachRoot','set','ready','toModel','_handleMarkerOperation','offsetSize','position','documentFragment','loadState','_idsRoots','baseVersion','insert','PendingActions','elementEnd','_bufferUpdate','initial','_fixOperation','createdAt','stringify','conversion','setRevisionData','_loadState','upcast','targetPosition','fromVersion','then','move','getIndex','_removeMetaData','isEqual','config','_generateTape','push','_calculateMetaData','attributesBefore','Users','_loadedStateData','getNodeByPath','_pendingAction','string','sort','getAttribute','_startingRevisionId','_appendChild','update','Initial\x20revision','_touchedMarkers','_applyOperations','_getPreviousFrom','roots','_initialRoots','userId','_clone','startsWith','getAttributes','tableCell','_cloneOperation','vid_end','_lastTo','children','includes','editing','addRevisionData','getMovedRangeStart','stickiness','afterInit','authors','PENDING_ACTION_REVISION_HISTORY','collaboration.channelId','getRevisions'];(function(_0x3f91aa,_0x317dfc){const _0x3786a5=function(_0x42ad22){while(--_0x42ad22){_0x3f91aa['push'](_0x3f91aa['shift']());}};_0x3786a5(++_0x317dfc);}(_0x317d,0x16f));const _0x3786=function(_0x3f91aa,_0x317dfc){_0x3f91aa=_0x3f91aa-0x0;let _0x3786a5=_0x317d[_0x3f91aa];return _0x3786a5;};import{Users as _0x5d2c4c}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x2b8f11,PendingActions as _0x2402a3}from'ckeditor5/src/core';import{logWarning as _0x340e0c,uid as _0x231d5f}from'ckeditor5/src/utils';import{Position as _0x3128a9,Range as _0x53717c,Element as _0x1b8bbd,DocumentFragment as _0x41a162,ViewText as _0x2746cf,ViewElement as _0x247ec7,ViewContainerElement as _0x210b8c,ViewAttributeElement as _0x24a468,ViewEmptyElement as _0x455a4a,ViewRawElement as _0x97aa98,ViewUIElement as _0x320ad1,ViewDocumentFragment as _0xa83c73}from'ckeditor5/src/engine';import _0x1a2bbc from'./revisionsrepository';import{getTranslation as _0x42a1d2}from'./utils/common-translations';import{cloneDeep as _0x4c85e6,isEqual as _0xa0e00f}from'lodash-es';const B={'c':_0x210b8c,'a':_0x24a468,'e':_0x455a4a,'r':_0x97aa98,'u':_0x320ad1};export default class l extends _0x2b8f11{static get[_0x3786('0xe8')](){return'RevisionTracker';}static get['requires'](){return[_0x5d2c4c,_0x1a2bbc,_0x2402a3];}constructor(_0x103524){super(_0x103524),this[_0x3786('0x56')]=null,this['currentRevision']=null,this[_0x3786('0x34')]=new H(this['editor']),this['_initialRevisionId']=this[_0x3786('0xd4')]['config'][_0x3786('0x105')](_0x3786('0x9d'))||_0x3786('0x68'),this[_0x3786('0x20')]=new Map(),this[_0x3786('0x7d')]=null;const _0x1e2b41=_0x231d5f();this[_0x3786('0xa4')]={'history':this[_0x3786('0xd4')]['model'][_0x3786('0x35')][_0x3786('0xa9')],'getLatestVersion':()=>Promise[_0x3786('0xd9')](this[_0x3786('0xd4')][_0x3786('0x23')][_0x3786('0x35')][_0x3786('0x1e')]),'getCurrentRevisionId':()=>_0x1e2b41},this[_0x3786('0x5a')](_0x3786('0xcc'),!0x1),this[_0x3786('0x5a')](_0x3786('0x102'),!0x0),this[_0x3786('0x5a')](_0x3786('0x43'),!0x1),this[_0x3786('0xd4')]['config']['define'](_0x3786('0x58'),!0x0),this[_0x3786('0xd4')][_0x3786('0x6c')]['for'](_0x3786('0x6f'))[_0x3786('0xb')]({'view':_0x3786('0xcf')});}[_0x3786('0x4c')](){this[_0x3786('0x36')]=this[_0x3786('0xd4')]['plugins']['get'](_0x3786('0xc')),this[_0x3786('0xec')](),this[_0x3786('0xd4')][_0x3786('0xf3')]['on'](_0x3786('0x5b'),()=>{const _0x366239=this['repository'][_0x3786('0x8')](0x0),_0x273272=_0x366239&&null===_0x366239[_0x3786('0xd3')]?_0x366239:null;if(this[_0x3786('0x4')]=!!_0x273272&&this[_0x3786('0xd4')][_0x3786('0x77')][_0x3786('0x105')]('revisionHistory.resumeUnsavedRevision'),this[_0x3786('0xd4')]['plugins']['has']('RealTimeCollaborationClient')){const _0x16d0d1=this[_0x3786('0xa4')]['getCurrentRevisionId'](),_0x13596f=this[_0x3786('0x36')][_0x3786('0x8')](_0x16d0d1);if(_0x13596f)this[_0x3786('0xf2')]=_0x13596f[_0x3786('0x71')],this['_continueCurrentRevision']=!0x1;else{const _0x3236cc=this[_0x3786('0xa4')][_0x3786('0xa9')][_0x3786('0x3d')][_0x3786('0x3f')](_0xeb49f5=>!_0xeb49f5[_0x3786('0x7')]),_0x4fa4c9=_0x3236cc?_0x3236cc[_0x3786('0x63')]:this[_0x3786('0xa4')][_0x3786('0xa9')][_0x3786('0x1e')];_0x366239?(_0x366239[_0x3786('0xbf')]<_0x4fa4c9&&_0x366239[_0x3786('0xa6')]({'toVersion':_0x4fa4c9}),this[_0x3786('0x4')]?(this[_0x3786('0xa4')][_0x3786('0x44')]=()=>_0x273272['id'],this[_0x3786('0xf2')]=_0x273272[_0x3786('0x71')]):(this[_0x3786('0xf2')]=_0x366239[_0x3786('0xbf')],this[_0x3786('0x4')]=!0x1)):(this[_0x3786('0xf2')]=_0x4fa4c9,this['_continueCurrentRevision']=!0x1);}}else _0x273272&&(this[_0x3786('0xd4')][_0x3786('0x23')][_0x3786('0x35')]['history'][_0x3786('0x1e')]=Math['max'](_0x273272['toVersion'],this[_0x3786('0xd4')]['model'][_0x3786('0x35')]['history'][_0x3786('0x1e')]),_0x273272[_0x3786('0x71')]===_0x273272[_0x3786('0xbf')]?(0x0!==_0x273272[_0x3786('0x71')]&&(this['_source'][_0x3786('0x44')]=()=>_0x273272['id']),this[_0x3786('0x4')]=!0x1):this[_0x3786('0x4')]&&(this[_0x3786('0xa4')]['getCurrentRevisionId']=()=>_0x273272['id'],this[_0x3786('0xf2')]=_0x273272[_0x3786('0x71')])),this['_continueCurrentRevision']||(this['_startingVersion']=this[_0x3786('0xd4')]['model'][_0x3786('0x35')][_0x3786('0x1e')]);this[_0x3786('0x34')]['init'](this[_0x3786('0xa4')][_0x3786('0xa9')]),this[_0x3786('0x10')](this[_0x3786('0xf2')]),this[_0x3786('0x17')](this[_0x3786('0xf2')]),this[_0x3786('0x56')]&&this[_0x3786('0x29')]();}),this[_0x3786('0xb3')](_0x3786('0xcc'))['to'](this,_0x3786('0x43'),_0x2f3356=>!_0x2f3356);}async[_0x3786('0x9a')](){if(this[_0x3786('0x36')]['length']>0x0){const _0x260283=this[_0x3786('0x36')]['getRevision'](0x0),_0x1d857b=await this['getRevisionDocumentData'](_0x260283),_0x1e58cc=await this[_0x3786('0xfc')](_0x260283);this[_0x3786('0xa1')](_0x1d857b,_0x1e58cc);}}['setSource'](_0x16da99){this['_source']=_0x16da99;}async[_0x3786('0x85')](){const _0x42bf05=await this[_0x3786('0xa4')][_0x3786('0x4b')]();if(_0x42bf05>this[_0x3786('0x42')][_0x3786('0xbf')]){await this[_0x3786('0x6e')]();const _0x33f8e6=this[_0x3786('0xfa')]({'revision':this[_0x3786('0x42')],'to':_0x42bf05});_0x33f8e6[_0x3786('0x9b')]=_0x33f8e6[_0x3786('0x21')]['map'](_0x2d5435=>this['editor'][_0x3786('0x100')]['get'](_0x3786('0x7c'))[_0x3786('0xd')](_0x2d5435)),this[_0x3786('0x42')][_0x3786('0xa6')](_0x33f8e6);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this[_0x3786('0x42')]),this[_0x3786('0x34')]['loadState'](this[_0x3786('0x42')]),this[_0x3786('0x7d')]={'fromVersion':this['currentRevision'][_0x3786('0x71')],'authors':this['currentRevision']['authors'][_0x3786('0x4a')]()});}async[_0x3786('0x5')](_0x341d4a={},_0x134d32=null){const _0x8b454e=[];await this[_0x3786('0x6e')](),this[_0x3786('0x4')]=!0x1,_0x134d32>this[_0x3786('0x42')][_0x3786('0xbf')]&&(_0x134d32=null),null===_0x134d32&&(_0x134d32=await this['_source']['getLatestVersion']());const _0x43fde4=this[_0x3786('0x104')](_0x134d32),_0x3e3b8d=this['buildRevisionData']({'from':_0x43fde4,'to':_0x134d32});if(this['currentRevision'][_0x3786('0xbf')]<_0x134d32){const _0x4951b4=this[_0x3786('0xfa')]({'revision':this[_0x3786('0x42')],'from':_0x134d32,'to':_0x134d32});_0x4951b4['authors']=[],_0x4951b4[_0x3786('0x21')]=[],_0x4951b4['id']=this['currentRevision']['id'],this[_0x3786('0x42')][_0x3786('0xa6')](_0x4951b4,!0x0),delete _0x4951b4[_0x3786('0x9b')],_0x8b454e[_0x3786('0x79')](_0x4951b4);}_0x341d4a[_0x3786('0xc9')]=this[_0x3786('0xd4')]['plugins']['get']('Users')['me']['id'],_0x341d4a['name']=_0x341d4a[_0x3786('0xd7')]||null,_0x341d4a['id']=_0x341d4a['id']||_0x231d5f(),_0x341d4a={..._0x341d4a,..._0x3e3b8d};const _0xe3c382=this[_0x3786('0x97')](_0x341d4a);_0x8b454e['push'](_0x341d4a);const _0x17a10a=this[_0x3786('0x36')][_0x3786('0x74')](_0xe3c382);if(0x0!==_0x17a10a){const _0x59e9d7=this[_0x3786('0x36')]['getRevision'](_0x17a10a-0x1);if(_0x59e9d7[_0x3786('0x71')]!==_0x134d32){const _0x26a911=this[_0x3786('0x34')]['getData'](_0x134d32,_0x59e9d7[_0x3786('0xbf')]),_0x553e44={'id':_0x59e9d7['id'],'diffData':_0x26a911[_0x3786('0xed')],'authorsIds':_0x26a911[_0x3786('0x21')],'authors':_0x26a911[_0x3786('0x21')][_0x3786('0xdb')](_0xc95608=>this[_0x3786('0xd4')][_0x3786('0x100')]['get']('Users')[_0x3786('0xd')](_0xc95608)),'fromVersion':_0x134d32};_0x59e9d7===this[_0x3786('0x42')]&&(_0x553e44[_0x3786('0x6a')]=new Date(_0x341d4a[_0x3786('0x6a')]['getTime']()+0xa)),_0x59e9d7[_0x3786('0xa6')](_0x553e44,!0x0),delete _0x553e44[_0x3786('0x9b')],_0x8b454e['push'](_0x553e44);}}if(this[_0x3786('0x56')]){for(const _0x4f0b66 of _0x8b454e)this['_bufferUpdate'](_0x4f0b66['id'],_0x4f0b66,!0x0);this['sendBufferedUpdates']();}return _0xe3c382;}[_0x3786('0x97')](_0x1139d9){const _0x134252=this[_0x3786('0x36')][_0x3786('0x3c')](_0x1139d9);return this[_0x3786('0x56')]&&_0x134252['on'](_0x3786('0xa6'),(_0x156d2f,_0x59fb8d,_0x2237d9)=>{_0x2237d9||(this[_0x3786('0x67')](_0x59fb8d['id'],_0x59fb8d,!0x0),this[_0x3786('0x29')]());}),this[_0x3786('0x36')][_0x3786('0xcb')](_0x134252,this[_0x3786('0xaf')](_0x134252)),_0x134252;}async[_0x3786('0xa2')](_0x2650fe){await this[_0x3786('0xf1')](_0x2650fe);const _0x2ec16c={};for(const _0x172a12 in _0x2650fe[_0x3786('0xed')]){if(_0x2650fe[_0x3786('0xed')][_0x172a12]['attachChange']&&!_0x2650fe[_0x3786('0xed')][_0x172a12][_0x3786('0x2e')]['isAttached'])continue;const _0x54a7d9=this[_0x3786('0xc5')](JSON['parse'](_0x2650fe['diffData'][_0x172a12]['insertions'])),_0x5781ca=this[_0x3786('0xd4')][_0x3786('0x96')]['view'][_0x3786('0x35')],_0x20e2bd=new _0xa83c73(_0x5781ca,_0x54a7d9[_0x3786('0xdb')](_0x33b841=>J(_0x33b841,this[_0x3786('0xd4')])));this[_0x3786('0xd4')][_0x3786('0xf3')][_0x3786('0x4f')]['useFillerType'](_0x3786('0x24')),_0x2ec16c[_0x172a12]=this[_0x3786('0xd4')][_0x3786('0xf3')]['processor']['toData'](_0x20e2bd),this[_0x3786('0xd4')]['data'][_0x3786('0x4f')][_0x3786('0xdd')]('default');}return _0x2ec16c;}async[_0x3786('0xfc')](_0x518b16){await this[_0x3786('0xf1')](_0x518b16);const _0x3cb03d={};for(const _0x408b4d in _0x518b16[_0x3786('0xed')])_0x518b16[_0x3786('0xed')][_0x408b4d]['attachChange']&&!_0x518b16[_0x3786('0xed')][_0x408b4d][_0x3786('0x2e')][_0x3786('0xc0')]||(_0x3cb03d[_0x408b4d]=_0x518b16[_0x3786('0xed')][_0x408b4d][_0x3786('0xb2')]||{});return _0x3cb03d;}[_0x3786('0x29')](){if(0x0===this[_0x3786('0x20')][_0x3786('0x19')])return;if(this[_0x3786('0x43')])return;let _0x5f5bc7=Array[_0x3786('0xe7')](this[_0x3786('0x20')][_0x3786('0x1c')]());this[_0x3786('0x20')][_0x3786('0xfe')]();for(let _0xc71582=0x0;_0xc71582<_0x5f5bc7['length'];_0xc71582++){const _0x23e10e=_0x5f5bc7[_0xc71582];let _0x4bdba0=!0x1;for(const _0x5907e4 of Object[_0x3786('0xc7')](_0x23e10e))void 0x0===_0x23e10e[_0x5907e4]?delete _0x23e10e[_0x5907e4]:'id'!==_0x5907e4&&(_0x4bdba0=!0x0);_0x4bdba0||(_0x5f5bc7[_0xc71582]=null);}if(_0x5f5bc7=_0x5f5bc7[_0x3786('0xd6')](_0x1bd370=>null!==_0x1bd370),!_0x5f5bc7[_0x3786('0x0')])return;for(let _0x59d305=0x0;_0x59d305<_0x5f5bc7[_0x3786('0x0')];_0x59d305++){const _0x46caeb=_0x5f5bc7[_0x59d305];void 0x0!==_0x46caeb['fromVersion']&&void 0x0===_0x46caeb['toVersion']&&(_0x46caeb[_0x3786('0xbf')]=this[_0x3786('0x36')]['getRevision'](_0x46caeb['id'])[_0x3786('0xbf')]),void 0x0!==_0x46caeb[_0x3786('0xbf')]&&void 0x0===_0x46caeb[_0x3786('0x71')]&&(_0x46caeb[_0x3786('0x71')]=this[_0x3786('0x36')][_0x3786('0x8')](_0x46caeb['id'])['fromVersion']);}const _0x1c06a8=this[_0x3786('0xd4')][_0x3786('0x77')][_0x3786('0x105')](_0x3786('0x9d'));this[_0x3786('0x43')]=!0x0,this[_0x3786('0x14')](),this[_0x3786('0x56')]['updateRevisions'](_0x5f5bc7,_0x1c06a8)[_0x3786('0xef')](()=>{this['_isPendingUpdate']=!0x1;})[_0x3786('0x72')](_0x517476=>{if(_0x517476)for(const _0x38bab2 of _0x517476)this['setRevisionData']({'id':_0x38bab2['id'],'createdAt':_0x38bab2[_0x3786('0x6a')]});this[_0x3786('0xf5')](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x45d61d,_0x4c828e){let _0x12c546=this[_0x3786('0xd4')][_0x3786('0x77')][_0x3786('0x105')](_0x3786('0x9f')),_0x20591f=this['editor'][_0x3786('0x77')][_0x3786('0x105')]('rootsAttributes');if(void 0x0===_0x12c546){_0x12c546={};for(const _0x2b3cce of this[_0x3786('0xd4')][_0x3786('0x23')][_0x3786('0x35')][_0x3786('0xbe')]())_0x12c546[_0x2b3cce]='';}if(_0x3786('0x80')==typeof _0x12c546&&(_0x12c546={'main':_0x12c546}),void 0x0===_0x20591f){_0x20591f={};for(const _0xa28627 of this[_0x3786('0xd4')][_0x3786('0x23')]['document']['getRootNames']())_0x20591f[_0xa28627]={};}let _0x5a667f=!0x1;const _0x50d4c4=Object[_0x3786('0xc7')](_0x12c546),_0x575118=Object[_0x3786('0xc7')](_0x45d61d);for(const _0x21807a of _0x50d4c4){if(_0x12c546[_0x21807a]!==_0x45d61d[_0x21807a]&&''!==_0x12c546[_0x21807a]['trim']()){_0x5a667f=!0x0;break;}if(!_0xa0e00f(_0x20591f[_0x21807a],_0x4c828e[_0x21807a])&&Object[_0x3786('0xc7')](_0x20591f[_0x21807a])[_0x3786('0x0')]>0x0){_0x5a667f=!0x0;break;}}_0x5a667f||(_0x5a667f=_0x575118[_0x3786('0xd2')](_0x3927bd=>!_0x50d4c4[_0x3786('0x95')](_0x3927bd))),_0x5a667f&&_0x340e0c(_0x3786('0x3'),{'editorData':_0x12c546,'editorRootsAttributes':_0x20591f,'revisionData':_0x45d61d,'revisionRootsAttributes':_0x4c828e}),this[_0x3786('0xd4')][_0x3786('0x77')][_0x3786('0x5a')](_0x3786('0x9f'),_0x45d61d),this['editor']['config'][_0x3786('0x5a')]('rootsAttributes',_0x4c828e);}[_0x3786('0x14')](){if(!this[_0x3786('0x7f')]){const _0x124611=this[_0x3786('0xd4')][_0x3786('0x100')][_0x3786('0x105')](_0x3786('0x65'));this['_pendingAction']=_0x124611['add'](_0x42a1d2(this['editor'][_0x3786('0x37')],_0x3786('0x9c')));}}['_removePendingAction'](){this[_0x3786('0x7f')]&&(this['editor']['plugins'][_0x3786('0x105')]('PendingActions')[_0x3786('0xd5')](this['_pendingAction']),this[_0x3786('0x7f')]=null);}['_findInsertionIndex'](_0xc01bf9){const _0x1a6c04=this[_0x3786('0x36')]['getRevisions']();_0x1a6c04['reverse']();let _0x5e8da6=0x0;for(;_0x5e8da6<_0x1a6c04['length'];){const _0x46ec1f=_0x1a6c04[_0x5e8da6];if(_0x46ec1f===this['currentRevision']){_0x5e8da6++;continue;}if(_0x46ec1f['id']===this['_initialRevisionId'])break;const _0x515b55=_0xc01bf9[_0x3786('0xbf')]-_0x46ec1f[_0x3786('0xbf')]||_0xc01bf9[_0x3786('0x71')]-_0x46ec1f[_0x3786('0x71')];if(_0x515b55>0x0)break;if(_0x515b55<0x0)_0x5e8da6++;else{if(!_0xc01bf9['creator']&&_0x46ec1f[_0x3786('0xd3')])break;if(_0x46ec1f[_0x3786('0xd3')]||!_0xc01bf9[_0x3786('0xd3')]){if(_0xc01bf9[_0x3786('0x6a')]>_0x46ec1f[_0x3786('0x6a')])break;_0x5e8da6++;}else _0x5e8da6++;}}return _0x5e8da6;}[_0x3786('0x6d')](_0x242171){const _0x140adc=this[_0x3786('0x36')]['getRevision'](_0x242171['id']);if(_0x242171['createdAt']&&(_0x242171[_0x3786('0x6a')]=new Date(_0x242171[_0x3786('0x6a')])),_0x242171['authorsIds']){const _0x151413=this[_0x3786('0xd4')][_0x3786('0x100')][_0x3786('0x105')](_0x3786('0x7c'));_0x242171['authors']=_0x242171[_0x3786('0x21')][_0x3786('0xdb')](_0x32f59b=>_0x151413[_0x3786('0xd')](_0x32f59b));}_0x140adc[_0x3786('0xa6')](_0x242171,!0x0);}[_0x3786('0xfa')]({revision:_0x2a7981=null,from:_0x571426=null,to:_0x2ab75f=null}){_0x571426=null!==_0x571426?_0x571426:_0x2a7981[_0x3786('0x71')],_0x2ab75f=null!==_0x2ab75f?_0x2ab75f:_0x2a7981[_0x3786('0xbf')];const _0x3786c9=this[_0x3786('0x34')][_0x3786('0x33')](_0x571426,_0x2ab75f),_0x33f596={'diffData':_0x3786c9[_0x3786('0xed')],'authorsIds':_0x3786c9[_0x3786('0x21')],'fromVersion':_0x571426,'toVersion':_0x2ab75f};if(!_0x2a7981||_0x2ab75f!==_0x2a7981[_0x3786('0xbf')]){const _0x265140=_0x2ab75f-0x1,_0x436947=this['_source'][_0x3786('0xa9')][_0x3786('0x38')](_0x265140);_0x33f596['createdAt']=_0x436947&&_0x436947[_0x3786('0x6a')]||new Date();}if(this[_0x3786('0x7d')]&&_0x571426===this['_loadedStateData']['fromVersion'])for(const _0x258cbc of this[_0x3786('0x7d')][_0x3786('0x9b')])_0x33f596['authorsIds'][_0x3786('0x95')](_0x258cbc['id'])||_0x33f596[_0x3786('0x21')][_0x3786('0x79')](_0x258cbc['id']);return _0x33f596;}[_0x3786('0xf1')](_0x51cc45){if(!_0x51cc45||_0x51cc45[_0x3786('0xed')])return Promise[_0x3786('0xd9')]();{const _0x48669b=this[_0x3786('0xd4')][_0x3786('0x77')]['get']('collaboration.channelId');return this[_0x3786('0x56')]['getRevision']({'channelId':_0x48669b,'revisionId':_0x51cc45['id']})[_0x3786('0x72')](_0x239c30=>{_0x51cc45[_0x3786('0xed')]=_0x239c30[_0x3786('0xed')];});}}['_bufferUpdate'](_0x34f13d,_0xde55e4,_0x5ba62b){if(this[_0x3786('0x20')]['has'](_0x34f13d)){const _0x39a69f=this[_0x3786('0x20')][_0x3786('0x105')](_0x34f13d);_0xde55e4=_0x5ba62b?{..._0x39a69f,..._0xde55e4}:{..._0xde55e4,..._0x39a69f};}this[_0x3786('0x20')][_0x3786('0x5a')](_0x34f13d,_0xde55e4);}[_0x3786('0x104')](_0x402beb){const _0x3b36d6=this[_0x3786('0x36')][_0x3786('0x9e')]();_0x3b36d6[_0x3786('0x54')](),_0x3b36d6['shift']();const _0x5df6a5=_0x3b36d6[_0x3786('0x3f')](_0x31faa1=>_0x31faa1[_0x3786('0xbf')]<=_0x402beb)[_0x3786('0xbf')];return _0x5df6a5<this[_0x3786('0xf2')]?this['_startingVersion']:_0x5df6a5;}[_0x3786('0x10')](_0x49b3b7){const _0x7a1f0e=this[_0x3786('0x36')][_0x3786('0x8')](this[_0x3786('0x36')][_0x3786('0x0')]-0x1);if(_0x7a1f0e)this['_initialRevisionId']=_0x7a1f0e['id'];else{const _0x5cf15e=!this[_0x3786('0xd4')][_0x3786('0x23')][_0x3786('0x35')][_0x3786('0x8a')][_0x3786('0x3f')](_0x5e256c=>this[_0x3786('0xd4')][_0x3786('0x23')][_0x3786('0x28')](_0x5e256c)),_0x172d82=this[_0x3786('0xd4')][_0x3786('0x100')][_0x3786('0x105')](_0x3786('0x7c'))['me']['id'],_0x49dcab=_0x42a1d2(this[_0x3786('0xd4')][_0x3786('0x37')],_0x5cf15e?_0x3786('0x2'):_0x3786('0x86'));this[_0x3786('0xbc')]({'from':_0x49b3b7,'to':_0x49b3b7,'id':this['_initialRevisionId'],'name':_0x49dcab,'creatorId':_0x172d82});}}[_0x3786('0x17')](_0x5df917){const _0x5cfc1b=this[_0x3786('0xa4')][_0x3786('0x44')]();this[_0x3786('0x42')]=this[_0x3786('0x36')][_0x3786('0x8')](_0x5cfc1b),this[_0x3786('0x42')]||(this[_0x3786('0x42')]=this[_0x3786('0xbc')]({'from':_0x5df917,'to':_0x5df917,'id':_0x5cfc1b,'name':'','creatorId':null}));}[_0x3786('0xbc')]({name:_0x48b868,from:_0x364820,to:_0x29d92a,creatorId:_0x3f58f3,id:_0x467a55}){const _0x2833db=this[_0x3786('0xfa')]({'from':_0x364820,'to':_0x29d92a});_0x2833db[_0x3786('0xd7')]=_0x48b868,_0x2833db[_0x3786('0xc9')]=_0x3f58f3,_0x2833db['id']=_0x467a55;const _0x592168=this[_0x3786('0x97')](_0x2833db);return this['adapter']&&this[_0x3786('0x67')](_0x2833db['id'],_0x2833db,!0x0),_0x592168;}[_0x3786('0xec')](){this[_0x3786('0xd4')]['conversion']['for']('dataDowncast')[_0x3786('0xae')]({'model':'revision'});}['_removeRevisionMarkers'](_0x30fb32){return(_0x30fb32=_0x30fb32[_0x3786('0xd6')](_0x48080a=>!_0x48080a[_0x3786('0xd7')]||_0x3786('0x1a')!==_0x48080a[_0x3786('0xd7')]&&_0x3786('0x6')!==_0x48080a['name']))[_0x3786('0xda')](_0x2858cd=>{_0x3786('0x80')!=typeof _0x2858cd&&(_0x2858cd[_0x3786('0x94')]=this['_removeRevisionMarkers'](_0x2858cd[_0x3786('0x94')]),_0x2858cd[_0x3786('0xf4')]=_0x2858cd[_0x3786('0xf4')]['filter'](_0x100b9=>!_0x100b9[0x0][_0x3786('0x8e')](_0x3786('0xf6'))));}),_0x30fb32;}}function J(_0x3aaac3,_0x54bfa0){const _0x341bee=_0x54bfa0['editing'][_0x3786('0x2c')][_0x3786('0x35')];if(_0x3786('0x80')==typeof _0x3aaac3)return new _0x2746cf(_0x341bee,_0x3aaac3);{const _0x274c88=_0x3aaac3['children'][_0x3786('0xdb')](_0x5787bc=>J(_0x5787bc,_0x54bfa0));return new(B[_0x3aaac3[(_0x3786('0xb8'))]]||_0x247ec7)(_0x341bee,_0x3aaac3['name'],_0x3aaac3[_0x3786('0xf4')],_0x274c88);}}class H{constructor(_0x4a8406){this[_0x3786('0xd4')]=_0x4a8406,this[_0x3786('0xa')]=new Map(),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_markers']=new Map(),this[_0x3786('0xd1')]=new Map(),this['_diffRootsAttributes']=new Map(),this[_0x3786('0xba')]=new Map(),this[_0x3786('0x103')]=new Map(),this[_0x3786('0x62')]=new Map(),this[_0x3786('0xdc')]=new Map(),this[_0x3786('0x15')]=new Map(),this[_0x3786('0x87')]=new Map(),this[_0x3786('0xf8')]=new Map(),this['_revisionId']=0x1,this[_0x3786('0x8b')]=this[_0x3786('0xd4')]['model'][_0x3786('0x35')]['getRootNames'](),this[_0x3786('0x8b')]['push']('$graveyard');}[_0x3786('0x4c')](_0x46aea8){this['source']=_0x46aea8;const _0x51e19f=new Map(),_0x77d3ab=new Map(),_0x343126=this[_0x3786('0xd4')][_0x3786('0x23')]['document'][_0x3786('0xbe')](!0x0);_0x343126[_0x3786('0x79')]('$graveyard');for(const _0x39cada of _0x343126){const _0xc41def=this[_0x3786('0xd4')]['model']['document'][_0x3786('0xc1')](_0x39cada),_0xde2f50=q(_0xc41def);_0x51e19f[_0x3786('0x5a')](_0x39cada,_0xde2f50),_0x77d3ab[_0x3786('0x5a')](_0x39cada,Object[_0x3786('0xf')](_0xc41def[_0x3786('0x8f')]()));}const _0x2bdaec=Array[_0x3786('0xe7')](this[_0x3786('0xd4')][_0x3786('0x23')][_0x3786('0xff')])['map'](_0x4ac653=>[_0x4ac653['name'],_0x4ac653[_0x3786('0x1b')]()]),_0x457cdd=this['source'][_0x3786('0x1e')];this['_saveMetaData'](_0x457cdd,_0x51e19f,_0x2bdaec,_0x77d3ab),this[_0x3786('0x83')]=this[_0x3786('0xd0')];const _0x225a02=new Map(),_0x327769=new Map();for(const _0x44d067 of this[_0x3786('0x8b')]){const _0x40718f=G(_0x44d067);_0x225a02['set'](_0x44d067,_0x40718f),_0x327769[_0x3786('0x5a')](_0x44d067,{});}this[_0x3786('0xb1')](Number['NEGATIVE_INFINITY'],_0x225a02,[],_0x327769);}['getData'](_0x53a4c7,_0x26ce2f){if(this['_lastFrom']===_0x53a4c7&&this[_0x3786('0x93')]<=_0x26ce2f)this[_0x3786('0xa')][_0x3786('0x19')]>0x1&&this['_removeMetaData'](this[_0x3786('0x93')]),this[_0x3786('0x88')](this[_0x3786('0x93')],_0x26ce2f,!0x0);else{if(!this[_0x3786('0xa')][_0x3786('0x1f')](_0x53a4c7)){const _0x29a298=this[_0x3786('0x89')](_0x53a4c7);this['_calculateMetaData'](_0x29a298,_0x53a4c7,!0x1);}this['_calculateMetaData'](_0x53a4c7,_0x26ce2f,!0x0);}return this[_0x3786('0xe2')]=_0x53a4c7,this[_0x3786('0x93')]=_0x26ce2f,this['_getState']();}[_0x3786('0x61')](_0x385bf4){this[_0x3786('0xc4')](),this[_0x3786('0xe2')]=_0x385bf4[_0x3786('0x71')],this[_0x3786('0x93')]=_0x385bf4['toVersion'];for(const _0x2eb15d in _0x385bf4[_0x3786('0xed')]){const _0x2e2030=_0x385bf4['diffData'][_0x2eb15d]['attachChange'],_0x20250b=_0x4c85e6(_0x385bf4[_0x3786('0xed')][_0x2eb15d][_0x3786('0x7b')])||{},_0xdfe463=this[_0x3786('0x2f')](_0x385bf4[_0x3786('0xed')][_0x2eb15d]['deletions']);_0xdfe463[_0x3786('0x40')]=_0x2eb15d,_0xdfe463['_isAttached']=!_0x2e2030||!_0x2e2030['isAttached'],_0xdfe463[_0x3786('0xc0')]=()=>_0xdfe463[_0x3786('0xa3')],this['_baseRoots'][_0x3786('0x5a')](_0x2eb15d,_0xdfe463),this[_0x3786('0x103')][_0x3786('0x5a')](_0x2eb15d,_0x20250b),_0x2e2030&&this['_touchedRoots'][_0x3786('0x5a')](_0x2eb15d,_0x2e2030);const _0x299398=this[_0x3786('0x16')](_0xdfe463);this[_0x3786('0xdc')][_0x3786('0x5a')](_0x2eb15d,_0x299398);for(const [_0x258aea,_0x38dac1]of _0xdfe463[_0x3786('0xff')]){if(!_0x258aea[_0x3786('0x8e')](_0x3786('0xe3')))continue;const _0x148fc9=_0x258aea[_0x3786('0x9')](':')[0x2];for(const _0x182b02 of _0x38dac1[_0x3786('0xe1')]({'singleCharacters':!0x0})){const _0x356559=this[_0x3786('0xb4')](_0x182b02),_0x591ba9=_0x3786('0x66')==_0x182b02[_0x3786('0xb8')]?_0x182b02[_0x3786('0xcd')][_0x3786('0xf7')][_0x3786('0x4a')](0x0,-0x1):_0x182b02['previousPosition'][_0x3786('0xf7')],_0x50900e=_0x299398[_0x3786('0x7e')](_0x591ba9)[_0x3786('0x82')](_0x356559);this[_0x3786('0x15')][_0x3786('0x5a')](_0x50900e,{'userId':_0x148fc9});}}}this[_0x3786('0x83')]=this['_revisionId'];const _0x2b4a57=[...Array(this[_0x3786('0xd0')])[_0x3786('0xc7')]()][_0x3786('0x4a')](0x1)[_0x3786('0xd6')](_0x214433=>!this[_0x3786('0x15')][_0x3786('0x1f')](_0x214433));let _0x2a040f=0x0;const _0x1f0411=new Map();for(const _0x4d4a7d in _0x385bf4[_0x3786('0xed')]){const _0x4f6c75=_0x385bf4['diffData'][_0x4d4a7d][_0x3786('0x2e')],_0x1ac6a9=_0x4c85e6(_0x385bf4[_0x3786('0xed')][_0x4d4a7d][_0x3786('0xb2')])||{},_0x41433d=this['_makeModelFromViewString'](_0x385bf4['diffData'][_0x4d4a7d][_0x3786('0x39')]);_0x41433d['rootName']=_0x4d4a7d,_0x41433d[_0x3786('0xa3')]=!_0x4f6c75||_0x4f6c75['isAttached'],_0x41433d[_0x3786('0xc0')]=()=>_0x41433d[_0x3786('0xa3')],this[_0x3786('0xd1')]['set'](_0x4d4a7d,_0x41433d),this['_diffRootsAttributes'][_0x3786('0x5a')](_0x4d4a7d,_0x1ac6a9);const _0x4d6b78=this[_0x3786('0x16')](_0x41433d,Number[_0x3786('0x30')]);this[_0x3786('0x62')][_0x3786('0x5a')](_0x4d4a7d,_0x4d6b78),_0x1f0411[_0x3786('0x5a')](_0x4d4a7d,_0x41433d[_0x3786('0xc0')]()?_0x1ac6a9:{});for(const [_0x43b2db,_0x4b0217]of _0x41433d[_0x3786('0xff')]){if(!_0x43b2db[_0x3786('0x8e')](_0x3786('0xe3')))continue;const _0x5ba6b0=_0x43b2db[_0x3786('0x9')](':')[0x2];for(const _0x5b760c of _0x4b0217[_0x3786('0xe1')]({'singleCharacters':!0x0})){const _0x56eaf9=this['_getVidAttributeName'](_0x5b760c),_0xb8b307=this[_0x3786('0xd0')]++,_0xfbc8b0=_0x3786('0x66')==_0x5b760c[_0x3786('0xb8')]?_0x5b760c[_0x3786('0xcd')][_0x3786('0xf7')][_0x3786('0x4a')](0x0,-0x1):_0x5b760c[_0x3786('0xcd')]['path'];_0x4d6b78[_0x3786('0x7e')](_0xfbc8b0)[_0x3786('0x1')](_0x56eaf9,_0xb8b307),this['_touched'][_0x3786('0x5a')](_0xb8b307,{'userId':_0x5ba6b0});}}for(const _0x383327 of this[_0x3786('0xd4')][_0x3786('0x23')][_0x3786('0x26')](_0x41433d)['getWalker']({'singleCharacters':!0x0})){const _0x21af27=this[_0x3786('0xb4')](_0x383327),_0x535e7b=_0x3786('0x66')==_0x383327[_0x3786('0xb8')]?_0x383327[_0x3786('0xcd')][_0x3786('0xf7')][_0x3786('0x4a')](0x0,-0x1):_0x383327['previousPosition'][_0x3786('0xf7')],_0x435723=_0x4d6b78[_0x3786('0x7e')](_0x535e7b);_0x435723[_0x3786('0x82')](_0x21af27)>0x0||_0x435723['_setAttribute'](_0x21af27,_0x2b4a57[_0x2a040f++]);}for(const [_0x1d7f86,_0xf362ff]of _0x41433d[_0x3786('0xff')])_0x1d7f86['startsWith'](_0x3786('0xe3'))||this['_markers']['set'](_0x1d7f86,_0xf362ff);}const _0x365fab=G('$graveyard');this[_0x3786('0xba')][_0x3786('0x5a')](_0x3786('0xea'),_0x365fab),this['_baseIdsRoots'][_0x3786('0x5a')](_0x3786('0xea'),this[_0x3786('0x16')](_0x365fab,0x1));const _0x2f9522=G(_0x3786('0xea'));this[_0x3786('0xd1')][_0x3786('0x5a')](_0x3786('0xea'),_0x2f9522),this[_0x3786('0x62')][_0x3786('0x5a')](_0x3786('0xea'),this[_0x3786('0x16')](_0x2f9522,0x1));const _0x4209b0=Array[_0x3786('0xe7')](this['_diffRoots'])[_0x3786('0xdb')](([_0x1fc2bf,_0x145a61])=>[_0x1fc2bf,q(_0x145a61)]);this['_saveMetaData'](this[_0x3786('0x93')],_0x4209b0,this[_0x3786('0xd8')],_0x1f0411);}[_0x3786('0x2f')](_0x5c484f){const _0x5db279=JSON['parse'](_0x5c484f),_0x394bef=this[_0x3786('0xd4')][_0x3786('0x96')][_0x3786('0x2c')][_0x3786('0x35')],_0x294991=new _0xa83c73(_0x394bef,_0x5db279[_0x3786('0xdb')](_0x38c883=>J(_0x38c883,this[_0x3786('0xd4')])));return this[_0x3786('0xd4')][_0x3786('0xf3')][_0x3786('0x5c')](_0x294991);}[_0x3786('0xb1')](_0x52ca64,_0x436983,_0x3a9637,_0x541345){const _0x406951=new Map(_0x436983),_0x2c306f=new Map(_0x4c85e6(_0x541345)),_0xf8cff0=new Map();for(const [_0x1e0aae,_0x1e5065]of _0x3a9637)_0xf8cff0[_0x3786('0x5a')](_0x1e0aae,{'start':_0x1e5065['start'][_0x3786('0xe0')](),'end':_0x1e5065[_0x3786('0x12')][_0x3786('0xe0')](),'rootName':_0x1e5065[_0x3786('0xe')]['rootName']});this['_savedMetaData'][_0x3786('0x5a')](_0x52ca64,{'roots':_0x406951,'markers':_0xf8cff0,'rootsAttributes':_0x2c306f});}[_0x3786('0x75')](_0x41f6b1){this['_savedMetaData'][_0x3786('0xe9')](_0x41f6b1);}[_0x3786('0xa5')](){this['_reset'](),this[_0x3786('0xe2')]=-0x1,this[_0x3786('0x93')]=-0x1,this['_savedMetaData']['clear'](),this[_0x3786('0x4c')](this[_0x3786('0x31')]);}[_0x3786('0xc4')](){this['_touched']['clear'](),this['_touchedMarkers'][_0x3786('0xfe')](),this['_touchedRoots']['clear'](),this['_diffRoots'][_0x3786('0xfe')](),this[_0x3786('0xdf')]['clear'](),this[_0x3786('0xba')][_0x3786('0xfe')](),this[_0x3786('0x103')][_0x3786('0xfe')](),this[_0x3786('0x62')]['clear'](),this[_0x3786('0xdc')][_0x3786('0xfe')](),this['_markers'][_0x3786('0xfe')](),this[_0x3786('0xd0')]=0x1,this[_0x3786('0x83')]=this[_0x3786('0xd0')];}['_makeIdsRoot'](_0x5abc5f,_0x5a29af=null){let _0x1f0f11=null;_0x5abc5f['is']('documentFragment')||(_0x1f0f11=new _0x1b8bbd(_0x5abc5f[_0x3786('0xd7')],{'vid_start':null===_0x5a29af?this['_revisionId']++:_0x5a29af++}));const _0x2e5653=[];for(const _0x4afafa of _0x5abc5f[_0x3786('0x3e')]())if(_0x4afafa['is'](_0x3786('0xaa'))){_0x2e5653['push'](this[_0x3786('0x16')](_0x4afafa,_0x5a29af));const _0x5efdc3=_0x2e5653[_0x2e5653[_0x3786('0x0')]-0x1];null!==_0x5a29af&&(_0x5a29af=_0x5efdc3['is'](_0x3786('0xaa'),_0x3786('0xa0'))?_0x5efdc3[_0x3786('0x82')](_0x3786('0x1d'))+0x1:_0x5efdc3['getAttribute'](_0x3786('0x92'))+0x1);}else for(let _0x2b476a=0x0;_0x2b476a<_0x4afafa[_0x3786('0x5e')];_0x2b476a++)_0x2e5653[_0x3786('0x79')](new _0x1b8bbd(_0x3786('0xa0'),{'vid':null===_0x5a29af?this[_0x3786('0xd0')]++:_0x5a29af++}));if(_0x5abc5f['is'](_0x3786('0x60'))){const _0x1dc195=G(_0x5abc5f[_0x3786('0x40')]);return _0x1dc195[_0x3786('0xa8')](0x0,_0x2e5653),_0x1dc195;}return _0x1f0f11['_setAttribute']('vid_end',null===_0x5a29af?this[_0x3786('0xd0')]++:_0x5a29af++),_0x1f0f11[_0x3786('0xa8')](0x0,_0x2e5653),_0x1f0f11;}[_0x3786('0x7a')](_0x4689a7,_0x22fd3d,_0x41d91c){this['_reset']();const {roots:_0x518e46,markers:_0x1836ad,rootsAttributes:_0x64875d}=this[_0x3786('0xa')][_0x3786('0x105')](_0x4689a7);this[_0x3786('0xba')]=new Map(_0x518e46),this[_0x3786('0x103')]=new Map(_0x4c85e6(_0x64875d));for(const [_0x5f5248,_0x163114]of this[_0x3786('0xba')])if(_0x3786('0xea')!==_0x5f5248&&(this['_diffRoots']['set'](_0x5f5248,q(_0x163114)),this['_diffRootsAttributes']=new Map(_0x4c85e6(_0x64875d)),_0x41d91c)){const _0x207f02=this[_0x3786('0xd0')];this[_0x3786('0x62')][_0x3786('0x5a')](_0x5f5248,this[_0x3786('0x16')](_0x163114)),this[_0x3786('0xdc')][_0x3786('0x5a')](_0x5f5248,this[_0x3786('0x16')](_0x163114,_0x207f02));}this[_0x3786('0x83')]=this[_0x3786('0xd0')],this['_diffRoots'][_0x3786('0x5a')](_0x3786('0xea'),q(this['_baseRoots'][_0x3786('0x105')]('$graveyard'))),_0x41d91c&&this[_0x3786('0x62')][_0x3786('0x5a')]('$graveyard',this[_0x3786('0x16')](this['_baseRoots']['get'](_0x3786('0xea'))));for(const [_0x45c8d8,_0xf44a08]of _0x1836ad){const _0x56d774=this[_0x3786('0xba')][_0x3786('0x105')](_0xf44a08[_0x3786('0x40')]),_0x8b1bd0=this[_0x3786('0xd1')][_0x3786('0x105')](_0xf44a08[_0x3786('0x40')]),_0x3b08d0=new _0x53717c(this[_0x3786('0xac')](_0xf44a08[_0x3786('0x52')],_0x56d774),this[_0x3786('0xac')](_0xf44a08[_0x3786('0x12')],_0x56d774)),_0x2c5ade=this['_fixRange'](_0x3b08d0,_0x8b1bd0);_0x56d774[_0x3786('0xff')]['set'](_0x45c8d8,_0x3b08d0),this[_0x3786('0xd8')][_0x3786('0x5a')](_0x45c8d8,_0x2c5ade);}this[_0x3786('0x88')](_0x4689a7,_0x22fd3d,_0x41d91c);}[_0x3786('0x88')](_0x3ac87d,_0x117414,_0x1778cf){for(const _0x1f0a97 of this[_0x3786('0x31')][_0x3786('0x4e')](_0x3ac87d,_0x117414))this['_handleOperation'](_0x1f0a97,_0x1778cf);for(const _0x35577b of this[_0x3786('0xd1')]['values']())_0x35577b[_0x3786('0xff')][_0x3786('0xfe')]();for(const [_0x22c3e4,_0xef2ca6]of this[_0x3786('0xd8')]){this[_0x3786('0xd1')][_0x3786('0x105')](_0xef2ca6['root'][_0x3786('0x40')])[_0x3786('0xff')]['set'](_0x22c3e4,_0xef2ca6[_0x3786('0xe0')]());}const _0x143017=new Map(),_0x3a4aa7=new Map();for(const [_0x11e298,_0x3add33]of this[_0x3786('0xd1')])_0x143017[_0x3786('0x5a')](_0x11e298,q(_0x3add33)),_0x3a4aa7['set'](_0x11e298,this[_0x3786('0xdf')][_0x3786('0x105')](_0x11e298));this['_saveMetaData'](_0x117414,_0x143017,this[_0x3786('0xd8')],_0x3a4aa7);}[_0x3786('0x89')](_0x5340a2){const _0x289b7e=Array[_0x3786('0xe7')](this[_0x3786('0xa')][_0x3786('0xc7')]());_0x289b7e[_0x3786('0x81')]((_0x53c0f7,_0x28d149)=>_0x53c0f7-_0x28d149),_0x289b7e[_0x3786('0x54')]();for(const _0x501ac9 of _0x289b7e)if(_0x501ac9<_0x5340a2)return _0x501ac9;return Number[_0x3786('0x30')];}[_0x3786('0xbb')](_0x6b0ab4,_0x3f9337){const _0x3b0600=Array[_0x3786('0xe7')](_0x3f9337[_0x3786('0xff')])[_0x3786('0xdb')](([_0x504240,_0x3fa185])=>[_0x504240,this[_0x3786('0xeb')](_0x3fa185,_0x6b0ab4)]);_0x6b0ab4[_0x3786('0xff')]=new Map(_0x3b0600);}[_0x3786('0x47')](_0x35df0a){for(const _0x30b7eb of this[_0x3786('0xd8')]['values']()){const _0x42218e=_0x30b7eb['getTransformedByOperation'](_0x35df0a),_0x3a460f=_0x53717c[_0x3786('0xad')](_0x42218e);_0x30b7eb['start']=_0x3a460f[_0x3786('0x52')],_0x30b7eb[_0x3786('0x12')]=_0x3a460f[_0x3786('0x12')];}}['_handleOperation'](_0x23f937,_0x2726c6){if(_0x3786('0x53')==_0x23f937[_0x3786('0xb8')]||_0x3786('0x59')==_0x23f937[_0x3786('0xb8')])return void this[_0x3786('0xe5')](_0x23f937,_0x2726c6);if(_0x3786('0x64')==_0x23f937[_0x3786('0xb8')]){const _0xa061a3=_0x23f937[_0x3786('0x5f')][_0x3786('0xe')][_0x3786('0x40')];this['_diffRoots'][_0x3786('0x1f')](_0xa061a3)||(this[_0x3786('0xd1')]['set'](_0xa061a3,G(_0xa061a3,!0x0)),this[_0x3786('0xdf')][_0x3786('0x5a')](_0xa061a3,{}),_0x2726c6&&this[_0x3786('0x62')][_0x3786('0x5a')](_0xa061a3,G(_0xa061a3,!0x0)));}if('addRootAttribute'==_0x23f937[_0x3786('0xb8')]||_0x3786('0x49')==_0x23f937[_0x3786('0xb8')]||_0x3786('0xde')==_0x23f937[_0x3786('0xb8')])return void this[_0x3786('0xc8')](_0x23f937);const _0x467547=this[_0x3786('0x91')](_0x23f937,this[_0x3786('0xd1')]);if(_0x3786('0x3b')!==_0x23f937[_0x3786('0xb8')]&&(_0x467547['_execute'](),this[_0x3786('0x47')](_0x467547)),_0x2726c6)switch(_0x467547[_0x3786('0xb8')]){case _0x3786('0x64'):this[_0x3786('0xb9')](_0x23f937);break;case _0x3786('0x73'):case _0x3786('0xd5'):case _0x3786('0x22'):this[_0x3786('0xb7')](_0x23f937);break;case'merge':this[_0x3786('0x3a')](_0x23f937);break;case _0x3786('0x9'):this[_0x3786('0x4d')](_0x23f937);break;case _0x3786('0x3b'):this[_0x3786('0x5d')](_0x23f937);}}[_0x3786('0x91')](_0x55bc7c,_0x150993){const _0x5d5197=_0x55bc7c[_0x3786('0xe0')]();return _0x5d5197[_0x3786('0xb6')]=_0x55bc7c[_0x3786('0xb6')],this['_fixOperation'](_0x5d5197,_0x150993),_0x5d5197;}[_0x3786('0x18')](_0x35cbbb){return _0x35cbbb[_0x3786('0xdb')](_0x530413=>{const _0x2b2669=this['_getVidAttributeName'](_0x530413);return Number(_0x530413[_0x3786('0x45')][_0x3786('0x82')](_0x2b2669));});}[_0x3786('0x78')](_0x691cb3,_0x5243bc){if(_0x691cb3['is'](_0x3786('0xaa'),'$text'))_0x5243bc[_0x3786('0x79')]({'item':_0x691cb3,'type':_0x3786('0xfb')});else{_0x691cb3['is'](_0x3786('0xaa'))&&_0x5243bc[_0x3786('0x79')]({'item':_0x691cb3,'type':_0x3786('0xc3')});for(const _0xebc827 of _0x691cb3['getChildren']())this[_0x3786('0x78')](_0xebc827,_0x5243bc);_0x691cb3['is'](_0x3786('0xaa'))&&_0x5243bc[_0x3786('0x79')]({'item':_0x691cb3,'type':_0x3786('0x66')});}return _0x5243bc;}[_0x3786('0xee')](){const _0x2af9ba=new Map(this[_0x3786('0x15')]),_0x34e0a7=new Map(_0x2af9ba),_0x115884=new Map(),_0xe36d2a={'insertions':{},'deletions':{}},_0x4e15d4={'insertions':{},'deletions':{}},_0x5b4650=new Map(),_0x3c82d2=new Set([...this[_0x3786('0xba')][_0x3786('0xc7')](),...this['_diffRoots'][_0x3786('0xc7')]()]);_0x3c82d2[_0x3786('0xe9')](_0x3786('0xea'));for(const _0x5a2419 of _0x3c82d2){const _0x2a3131=this[_0x3786('0xd1')][_0x3786('0x105')](_0x5a2419)||G(_0x5a2419,!0x1),_0x4f5137=this[_0x3786('0xba')][_0x3786('0x105')](_0x5a2419)||G(_0x5a2419,!0x1);_0x2a3131[_0x3786('0xc0')]()||_0x4f5137[_0x3786('0xc0')]()?(_0xe36d2a[_0x3786('0x39')][_0x5a2419]=q(_0x2a3131),_0xe36d2a[_0x3786('0xbd')][_0x5a2419]=q(_0x4f5137),this['_copyMarkers'](_0xe36d2a[_0x3786('0xbd')][_0x5a2419],_0x4f5137),this[_0x3786('0xbb')](_0xe36d2a[_0x3786('0x39')][_0x5a2419],_0x2a3131),_0x4e15d4[_0x3786('0x39')][_0x5a2419]=this[_0x3786('0x78')](this[_0x3786('0x62')][_0x3786('0x105')](_0x5a2419),[]),_0x4e15d4[_0x3786('0xbd')][_0x5a2419]=this[_0x3786('0x78')](this['_baseIdsRoots'][_0x3786('0x105')](_0x5a2419)||G(_0x5a2419,!0x1),[])):_0x3c82d2[_0x3786('0xe9')](_0x5a2419);}for(const _0x50b9ea of _0x3c82d2){const _0x1c5cbf=_0x4e15d4[_0x3786('0x39')][_0x50b9ea];for(const _0x3a6b3d of _0x1c5cbf){const _0x3f025b=this[_0x3786('0xb4')](_0x3a6b3d),_0x19ff98=_0x3a6b3d[_0x3786('0x45')][_0x3786('0x82')](_0x3f025b);_0x34e0a7['delete'](_0x19ff98),_0x19ff98>=this[_0x3786('0x83')]&&_0x115884[_0x3786('0x5a')](_0x19ff98,_0x2af9ba[_0x3786('0x105')](_0x19ff98));}}for(const _0x4fa22b of _0x3c82d2){const _0x22f81e=_0x4e15d4[_0x3786('0x39')][_0x4fa22b],_0x735839=this[_0x3786('0x18')](_0x4e15d4[_0x3786('0xbd')][_0x4fa22b]);let _0xb18136=0x0;for(const _0x11773b of _0x22f81e){const _0x2dbe2d=this[_0x3786('0xb4')](_0x11773b),_0x307862=_0x11773b[_0x3786('0x45')]['getAttribute'](_0x2dbe2d);if(!_0x115884[_0x3786('0x1f')](_0x307862)&&!_0x5b4650[_0x3786('0x1f')](_0x307862)){if(_0x34e0a7['has'](_0x307862))_0xb18136++;else{if(_0x307862!=_0x735839[_0xb18136]){const _0x37f5de=_0x2af9ba[_0x3786('0x105')](_0x307862)||_0x2af9ba[_0x3786('0x105')](_0x735839[_0xb18136]);for(;_0x307862!=_0x735839[_0xb18136];)_0x34e0a7[_0x3786('0x1f')](_0x735839[_0xb18136])||(_0x5b4650[_0x3786('0x5a')](_0x735839[_0xb18136],_0x37f5de),_0x2af9ba[_0x3786('0x5a')](_0x735839[_0xb18136],_0x37f5de)),_0xb18136++;}_0xb18136++;}}}}for(const _0x4320aa of _0x3c82d2){const _0x229ba2=_0x4e15d4[_0x3786('0x39')][_0x4320aa];for(const _0x1e07a4 of _0x229ba2){const _0x43de55=this[_0x3786('0xb4')](_0x1e07a4),_0xa59d7a=_0x1e07a4[_0x3786('0x45')][_0x3786('0x82')](_0x43de55);if(_0x5b4650[_0x3786('0x1f')](_0xa59d7a)){const _0x25db0c=_0x5b4650[_0x3786('0x105')](_0xa59d7a);_0x34e0a7['has'](_0xa59d7a)||_0x34e0a7[_0x3786('0x5a')](_0xa59d7a,{..._0x25db0c}),_0x115884[_0x3786('0x5a')](_0xa59d7a,{..._0x25db0c});}}}for(const _0x2727b9 of _0x34e0a7[_0x3786('0xc7')]())_0x2727b9>=this[_0x3786('0x83')]&&_0x34e0a7[_0x3786('0xe9')](_0x2727b9);const _0x49b18a=new Map();for(const _0x4024cb of _0x3c82d2){let _0x31e5d3=_0x4e15d4[_0x3786('0x39')][_0x4024cb];for(const _0x357aaa of _0x31e5d3)if(_0x357aaa[_0x3786('0x45')]['is'](_0x3786('0xaa'),_0x3786('0x90'))){const _0x32117e=this[_0x3786('0xb4')](_0x357aaa),_0x169e51=_0x357aaa['item'][_0x3786('0x82')](_0x32117e);if(_0x115884[_0x3786('0x1f')](_0x169e51)){const _0xbb2d23=_0x357aaa[_0x3786('0x45')]['parent']['parent']['getAttribute'](_0x3786('0x48')),_0x3a6e8f=_0x49b18a['get'](_0xbb2d23)||new Set();_0x3a6e8f[_0x3786('0x46')](_0x115884['get'](_0x169e51)[_0x3786('0x8c')]),_0x49b18a[_0x3786('0x5a')](_0xbb2d23,_0x3a6e8f);}}_0x31e5d3=_0x4e15d4['deletions'][_0x4024cb];for(const _0x12ef7b of _0x31e5d3)if(_0x12ef7b['item']['is'](_0x3786('0xaa'),_0x3786('0x90'))){const _0x1093ae=this[_0x3786('0xb4')](_0x12ef7b),_0x17191a=_0x12ef7b[_0x3786('0x45')][_0x3786('0x82')](_0x1093ae);if(_0x34e0a7['has'](_0x17191a)){const _0x2b4055=_0x12ef7b[_0x3786('0x45')][_0x3786('0x27')][_0x3786('0x27')][_0x3786('0x82')]('vid_start'),_0x3ff116=_0x49b18a['get'](_0x2b4055)||new Set();_0x3ff116['add'](_0x34e0a7[_0x3786('0x105')](_0x17191a)['userId']),_0x49b18a[_0x3786('0x5a')](_0x2b4055,_0x3ff116);}}for(const _0x2d676d of _0x49b18a[_0x3786('0xc7')]())(_0x115884[_0x3786('0x1f')](_0x2d676d)||_0x34e0a7[_0x3786('0x1f')](_0x2d676d))&&_0x49b18a[_0x3786('0xe9')](_0x2d676d);}for(const _0x9fc3d2 of _0x3c82d2){const _0x136853=_0x4e15d4[_0x3786('0x39')][_0x9fc3d2];let _0x44f7ea=null,_0xaf8f7a=null;for(const _0x34c57b of _0x136853){const _0x786237=this[_0x3786('0xb4')](_0x34c57b),_0x36b1b6=_0x34c57b[_0x3786('0x45')][_0x3786('0x82')](_0x786237),_0x4a4982=_0x49b18a[_0x3786('0x105')](_0x36b1b6);_0x4a4982&&'elementStart'==_0x34c57b['type']&&(_0x44f7ea=Array[_0x3786('0xe7')](_0x4a4982)[0x0],_0xaf8f7a=_0x34c57b[_0x3786('0x45')][_0x3786('0x82')]('vid_end')),_0x44f7ea&&(_0x34e0a7[_0x3786('0x5a')](_0x36b1b6,{'userId':_0x44f7ea}),_0x115884['set'](_0x36b1b6,{'userId':_0x44f7ea})),_0x36b1b6==_0xaf8f7a&&(_0x44f7ea=null,_0xaf8f7a=null);}}const _0x4537ba={},_0x197c55=new Set();for(const _0x2f031a of _0x3c82d2){const _0x2fad5e=_0xe36d2a[_0x3786('0xbd')][_0x2f031a],_0x1d3313=_0xe36d2a[_0x3786('0x39')][_0x2f031a];for(const {userId:_0x2666c3}of this[_0x3786('0x87')][_0x3786('0x1c')]())null!==_0x2666c3&&_0x197c55['add'](_0x2666c3);for(const {userId:_0x19f790}of this[_0x3786('0xf8')][_0x3786('0x1c')]())null!==_0x19f790&&_0x197c55[_0x3786('0x46')](_0x19f790);this[_0x3786('0xe4')](_0x1d3313,_0x4e15d4['insertions'][_0x2f031a],_0x115884,_0x3786('0xc6'),_0x197c55),this[_0x3786('0xe4')](_0x2fad5e,_0x4e15d4[_0x3786('0xbd')][_0x2f031a],_0x34e0a7,_0x3786('0x51'),_0x197c55),_0x4537ba[_0x2f031a]={'insertions':this[_0x3786('0x13')](_0x1d3313),'deletions':this['_prepareViewToSave'](_0x2fad5e),'attachChange':this[_0x3786('0xf8')]['get'](_0x2f031a)||null,'attributesBefore':_0x4c85e6(this['_baseRootsAttributes']['get'](_0x2f031a))||{},'attributesAfter':_0x4c85e6(this[_0x3786('0xdf')][_0x3786('0x105')](_0x2f031a))};}return{'diffData':_0x4537ba,'authorsIds':Array['from'](_0x197c55)};}['_processRootBeforeSave'](_0x39452b){for(const [,_0x3b1a3e]of _0x39452b['markers']){const _0xbe1db0=_0x3b1a3e[_0x3786('0x52')][_0x3786('0xf0')]()[_0x3786('0xd6')](_0x5a0dfc=>_0x3786('0x90')==_0x5a0dfc[_0x3786('0xd7')]);for(const _0x3566f7 of _0xbe1db0)0x1==_0x3566f7['childCount']&&_0x3566f7['getChild'](0x0)['is'](_0x3786('0xaa'),_0x3786('0xca'))&&_0x3566f7['getChild'](0x0)[_0x3786('0x1')](_0x3786('0x55'),!0x0);}}[_0x3786('0x13')](_0x5565d9){this[_0x3786('0x11')](_0x5565d9);const _0x48dbdb=this[_0x3786('0xd4')][_0x3786('0xf3')]['toView'](_0x5565d9,{}),_0x4a5757=Array['from'](_0x48dbdb[_0x3786('0x3e')]())[_0x3786('0xdb')](_0x11032e=>this[_0x3786('0x2b')](_0x11032e));return JSON[_0x3786('0x6b')](_0x4a5757);}[_0x3786('0x2b')](_0x5dc327){if(_0x5dc327['is'](_0x3786('0xa0')))return _0x5dc327[_0x3786('0xf3')];{const _0xb46910=_0x5dc327;return{'type':Object[_0x3786('0xc7')](B)[_0x3786('0x3f')](_0x1a8ecf=>_0x5dc327 instanceof B[_0x1a8ecf]),'name':_0xb46910['name'],'attributes':Array[_0x3786('0xe7')](_0xb46910[_0x3786('0x8f')]()),'children':Array['from'](_0xb46910[_0x3786('0x3e')]())[_0x3786('0xdb')](_0x137021=>this[_0x3786('0x2b')](_0x137021))};}}[_0x3786('0xe4')](_0x48fb5c,_0x5c6d26,_0x55fd98,_0x5914d8,_0x332415){let _0x5e0d23=null,_0x1dc323=null,_0x3d129b=0x0;const _0x5ccc22=this[_0x3786('0xd4')][_0x3786('0x23')];for(let _0x407472=0x0;_0x407472<_0x5c6d26[_0x3786('0x0')];_0x407472++){const _0x192da6=this['_getVidAttributeName'](_0x5c6d26[_0x407472]),_0x2c3516=_0x5c6d26[_0x407472][_0x3786('0x45')]['getAttribute'](_0x192da6),_0x5f10d8=_0x55fd98[_0x3786('0x105')](_0x2c3516),_0x6bad9e=_0x407472==_0x5c6d26[_0x3786('0x0')]-0x1;(!_0x5e0d23&&_0x5f10d8&&(_0x5e0d23=_0x5f10d8,_0x1dc323=_0x5c6d26[_0x407472]),_0x5e0d23&&(!_0x5f10d8||_0x5f10d8['userId']!=_0x5e0d23['userId']))&&(_0x5a6766(_0x5f10d8,L(_0x1dc323,_0x48fb5c,_0x5ccc22),L(_0x5c6d26[_0x407472],_0x48fb5c,_0x5ccc22)),_0x5e0d23=_0x5f10d8||null,_0x1dc323=_0x5f10d8?_0x5c6d26[_0x407472]:null),_0x5e0d23&&_0x6bad9e&&_0x5a6766(_0x5f10d8,L(_0x1dc323,_0x48fb5c,_0x5ccc22),W(_0x5c6d26[_0x407472],_0x48fb5c,_0x5ccc22));}function _0x5a6766(_0x388deb,_0x3c983e,_0x2891b7){const _0xe4af06=_0x5e0d23[_0x3786('0x8c')],_0xd878ce=_0x3786('0xe3')+_0x5914d8+':'+_0xe4af06+':'+_0x3d129b++,_0x535753=_0x5ccc22[_0x3786('0xe6')](_0x3c983e,_0x2891b7);_0x48fb5c[_0x3786('0xff')]['set'](_0xd878ce,_0x535753),null!==_0xe4af06&&_0x332415['add'](_0xe4af06);}}[_0x3786('0xb4')](_0x1ee2be){switch(_0x1ee2be['type']){case'elementStart':return _0x3786('0x48');case'elementEnd':return'vid_end';default:return'vid';}}[_0x3786('0x69')](_0x4ae38e,_0x5d03f5){_0x4ae38e[_0x3786('0x63')]=null;for(const _0x5295d8 in _0x4ae38e){const _0x3fa72=_0x4ae38e[_0x5295d8];if(_0x3fa72 instanceof _0x3128a9){const _0x99e527=_0x5d03f5[_0x3786('0x105')](_0x3fa72[_0x3786('0xe')][_0x3786('0x40')]);_0x4ae38e[_0x5295d8]=this[_0x3786('0xac')](_0x3fa72,_0x99e527);}if(_0x3fa72 instanceof _0x53717c){const _0x30fc0b=_0x5d03f5[_0x3786('0x105')](_0x3fa72[_0x3786('0xe')][_0x3786('0x40')]);_0x4ae38e[_0x5295d8]=this['_fixRange'](_0x3fa72,_0x30fc0b);}_0x3786('0xe')===_0x5295d8&&(_0x4ae38e[_0x3786('0xe')]=_0x5d03f5['get'](_0x4ae38e['root'][_0x3786('0x40')]));}}['_fixRange'](_0x1878ae,_0x1ea471){return this[_0x3786('0xd4')][_0x3786('0x23')][_0x3786('0xe6')](this['_fixPosition'](_0x1878ae[_0x3786('0x52')],_0x1ea471),this[_0x3786('0xac')](_0x1878ae[_0x3786('0x12')],_0x1ea471));}[_0x3786('0xac')](_0x52c0d9,_0x22d2ef){return this['editor'][_0x3786('0x23')][_0x3786('0xa7')](_0x22d2ef,_0x52c0d9['path'],_0x52c0d9[_0x3786('0x99')]);}[_0x3786('0xb9')](_0x1d908c){const _0x3931fb=this['_idsRoots'][_0x3786('0x105')](_0x1d908c[_0x3786('0x5f')][_0x3786('0xe')][_0x3786('0x40')]),_0x22c117=this[_0x3786('0xac')](_0x1d908c[_0x3786('0x5f')],_0x3931fb),_0x21d480=null===_0x1d908c['_authorId']?null:_0x1d908c[_0x3786('0xb6')]||this[_0x3786('0xd4')][_0x3786('0x100')][_0x3786('0x105')]('Users')['me']['id'],_0x2a548c=_0x22c117[_0x3786('0x27')],_0xbe003b=this['_revisionId'],_0x3178b0=[];for(const _0x496f82 of _0x1d908c['nodes'])if(_0x496f82['is']('element'))_0x3178b0[_0x3786('0x79')](this['_makeIdsRoot'](_0x496f82));else for(let _0x53b252=0x0;_0x53b252<_0x496f82[_0x3786('0x5e')];_0x53b252++)_0x3178b0['push'](new _0x1b8bbd(_0x3786('0xa0'),{'vid':this[_0x3786('0xd0')]++}));const _0xfbe362=this[_0x3786('0xd0')];for(let _0x4e2d81=_0xbe003b;_0x4e2d81<_0xfbe362;_0x4e2d81++)this[_0x3786('0x15')][_0x3786('0x5a')](_0x4e2d81,{'userId':_0x21d480});_0x2a548c['_insertChild'](_0x22c117[_0x3786('0xb0')],_0x3178b0);}[_0x3786('0xb7')](_0x1c052d){(_0x1c052d=this[_0x3786('0x91')](_0x1c052d,this[_0x3786('0x62')]))[_0x3786('0x2a')]();const _0x56d369=null===_0x1c052d[_0x3786('0xb6')]?null:_0x1c052d[_0x3786('0xb6')]||this[_0x3786('0xd4')][_0x3786('0x100')][_0x3786('0x105')]('Users')['me']['id'],_0x3807f2=_0x1c052d[_0x3786('0x98')](),_0x45991a=_0x3807f2[_0x3786('0x27')],_0x4c1fc4=_0x3807f2[_0x3786('0xb0')];!function _0x32f0ce(_0x443d95,_0xc39062,_0x8d5ab6,_0x3fcc9f){for(let _0x2417c7=_0x8d5ab6;_0x2417c7<_0x3fcc9f;_0x2417c7++){const _0x3d7b93=_0xc39062[_0x3786('0x101')](_0x2417c7);_0x3d7b93['is'](_0x3786('0xaa'),'$text')?_0x443d95[_0x3786('0x5a')](_0x3d7b93[_0x3786('0x82')](_0x3786('0x1d')),{'userId':_0x56d369}):(_0x443d95[_0x3786('0x5a')](_0x3d7b93[_0x3786('0x82')]('vid_start'),{'userId':_0x56d369}),_0x32f0ce(_0x443d95,_0x3d7b93,0x0,_0x3d7b93[_0x3786('0x25')]),_0x443d95[_0x3786('0x5a')](_0x3d7b93['getAttribute'](_0x3786('0x92')),{'userId':_0x56d369}));}}(this[_0x3786('0x15')],_0x45991a,_0x4c1fc4,_0x4c1fc4+_0x1c052d[_0x3786('0x57')]);}[_0x3786('0x3a')](_0x554daf){const _0x372ab6=null===(_0x554daf=this[_0x3786('0x91')](_0x554daf,this['_idsRoots']))['_authorId']?null:_0x554daf['_authorId']||this[_0x3786('0xd4')][_0x3786('0x100')]['get'](_0x3786('0x7c'))['me']['id'],_0x59b6bb=_0x554daf[_0x3786('0x70')]['parent'],_0x2ed792=_0x554daf[_0x3786('0xfd')][_0x3786('0x27')],_0xf8010f=_0x59b6bb['getAttribute'](_0x3786('0x92')),_0x1a61f3=_0x2ed792[_0x3786('0x82')]('vid_start');_0x59b6bb['_setAttribute'](_0x3786('0x92'),_0x2ed792['getAttribute']('vid_end')),_0x2ed792['_setAttribute']('vid_end',_0xf8010f),this[_0x3786('0x15')][_0x3786('0x5a')](_0x1a61f3,{'userId':_0x372ab6}),this[_0x3786('0x15')][_0x3786('0x5a')](_0xf8010f,{'userId':_0x372ab6}),_0x554daf[_0x3786('0x2a')]();}['_handleSplitOperation'](_0x29eea7){const _0xb800d6=null===(_0x29eea7=this[_0x3786('0x91')](_0x29eea7,this['_idsRoots']))[_0x3786('0xb6')]?null:_0x29eea7[_0x3786('0xb6')]||this[_0x3786('0xd4')]['plugins'][_0x3786('0x105')](_0x3786('0x7c'))['me']['id'],_0x51d33a=_0x29eea7['graveyardPosition'],_0x3e0ebf=_0x29eea7['splitPosition'][_0x3786('0x27')];_0x29eea7[_0x3786('0x2a')]();const _0x327f65=_0x3e0ebf['getAttribute'](_0x3786('0x92')),_0x2e858c=_0x29eea7['insertionPosition'][_0x3786('0x2d')];if(_0x51d33a){const _0x86f283=_0x2e858c[_0x3786('0x82')](_0x3786('0x92')),_0x43da05=_0x3e0ebf[_0x3786('0x82')](_0x3786('0x92'));_0x3e0ebf['_setAttribute'](_0x3786('0x92'),_0x86f283),_0x2e858c[_0x3786('0x1')](_0x3786('0x92'),_0x43da05),this['_touched']['set'](_0x3e0ebf[_0x3786('0x82')](_0x3786('0x92')),{'userId':_0xb800d6}),this[_0x3786('0x15')][_0x3786('0x5a')](_0x2e858c[_0x3786('0x82')]('vid_start'),{'userId':_0xb800d6});}else{const _0x4e20f5=this[_0x3786('0xd0')]++,_0x24457f=this[_0x3786('0xd0')]++;_0x3e0ebf[_0x3786('0x1')](_0x3786('0x92'),_0x4e20f5),_0x2e858c[_0x3786('0x1')](_0x3786('0x48'),_0x24457f),_0x2e858c[_0x3786('0x1')]('vid_end',_0x327f65),this['_touched'][_0x3786('0x5a')](_0x4e20f5,{'userId':_0xb800d6}),this['_touched'][_0x3786('0x5a')](_0x24457f,{'userId':_0xb800d6});}}['_handleMarkerOperation'](_0x5146d1){if(!_0x5146d1[_0x3786('0x106')])return;const _0x3480f5=(_0x5146d1=this['_cloneOperation'](_0x5146d1,this[_0x3786('0xd1')]))['oldRange']?_0x5146d1[_0x3786('0xab')]['root']:null,_0xafa8dc=_0x5146d1[_0x3786('0xc2')]?_0x5146d1['newRange']['root']:null;_0x3480f5&&this[_0x3786('0xd8')]['delete'](_0x5146d1['name']),_0xafa8dc&&this[_0x3786('0xd8')]['set'](_0x5146d1[_0x3786('0xd7')],_0x5146d1[_0x3786('0xc2')][_0x3786('0xe0')]());const _0x254aa3=null===_0x5146d1[_0x3786('0xb6')]?null:_0x5146d1['_authorId']||this[_0x3786('0xd4')][_0x3786('0x100')]['get'](_0x3786('0x7c'))['me']['id'],_0x5b0c60=_0x5146d1[_0x3786('0xd7')];if(!this[_0x3786('0x87')]['has'](_0x5b0c60))return void this[_0x3786('0x87')][_0x3786('0x5a')](_0x5b0c60,{'range':_0x5146d1[_0x3786('0xab')],'userId':_0x254aa3});const _0x451044=this[_0x3786('0x87')][_0x3786('0x105')](_0x5b0c60),_0x35b196=_0x451044[_0x3786('0xf9')],_0xbc8927=_0x5146d1[_0x3786('0xc2')];null==_0x35b196&&null==_0xbc8927||_0x35b196&&_0xbc8927&&_0x35b196[_0x3786('0x76')](_0xbc8927)?this[_0x3786('0x87')]['delete'](_0x5146d1[_0x3786('0xd7')]):_0x451044[_0x3786('0x8c')]=_0x254aa3;}[_0x3786('0xe5')](_0x35fb1c,_0x492a09){this[_0x3786('0xd1')]['has'](_0x35fb1c['rootName'])?this['_diffRoots'][_0x3786('0x105')](_0x35fb1c['rootName'])[_0x3786('0xa3')]=_0x35fb1c[_0x3786('0x32')]:(this['_diffRoots'][_0x3786('0x5a')](_0x35fb1c[_0x3786('0x40')],G(_0x35fb1c['rootName'],!0x0)),this[_0x3786('0xdf')]['set'](_0x35fb1c[_0x3786('0x40')],{}),_0x492a09&&this[_0x3786('0x62')][_0x3786('0x5a')](_0x35fb1c[_0x3786('0x40')],G(_0x35fb1c[_0x3786('0x40')],!0x0)));const _0x4139dc=null===_0x35fb1c['_authorId']?null:_0x35fb1c[_0x3786('0xb6')]||this[_0x3786('0xd4')][_0x3786('0x100')][_0x3786('0x105')](_0x3786('0x7c'))['me']['id'],_0x3ae180=this[_0x3786('0xf8')]['get'](_0x35fb1c[_0x3786('0x40')]);_0x3ae180&&_0x3ae180['userId']===_0x4139dc?this[_0x3786('0xf8')][_0x3786('0xe9')](_0x35fb1c[_0x3786('0x40')]):this[_0x3786('0xf8')][_0x3786('0x5a')](_0x35fb1c['rootName'],{'userId':_0x4139dc,'isAttached':_0x35fb1c[_0x3786('0x32')]});}[_0x3786('0xc8')](_0xa3566b){const _0x517b4e=this[_0x3786('0xdf')][_0x3786('0x105')](_0xa3566b[_0x3786('0xe')]['rootName']);null===_0xa3566b['newValue']?delete _0x517b4e[_0xa3566b['key']]:_0x517b4e[_0xa3566b['key']]=_0xa3566b[_0x3786('0x50')];}}function q(_0x574cc5){const _0x232b9b=G(_0x574cc5[_0x3786('0x40')],_0x574cc5['isAttached']());for(const _0x368fcc of _0x574cc5[_0x3786('0x3e')]()){const _0x6490=_0x368fcc[_0x3786('0x8d')](!0x0);_0x232b9b[_0x3786('0x84')](_0x6490);}return _0x232b9b;}function G(_0x3c6bbc,_0x8374c0=!0x0){const _0x55c896=new _0x41a162();return _0x55c896[_0x3786('0x40')]=_0x3c6bbc,_0x55c896[_0x3786('0xa3')]=_0x8374c0,_0x55c896['isAttached']=()=>_0x55c896[_0x3786('0xa3')],_0x55c896;}function L(_0x4bd7fa,_0x469580,_0x43ae1b){const _0x1ba304=_0x3786('0x66')==_0x4bd7fa[_0x3786('0xb8')]?_0x43ae1b[_0x3786('0xb5')](_0x4bd7fa['item'],_0x3786('0x12')):_0x43ae1b[_0x3786('0xce')](_0x4bd7fa['item']);return _0x43ae1b[_0x3786('0xa7')](_0x469580,_0x1ba304[_0x3786('0xf7')],_0x1ba304[_0x3786('0x99')]);}function W(_0x5b8378,_0x1c7626,_0x41ad69){const _0x6452e7=_0x3786('0xc3')==_0x5b8378[_0x3786('0xb8')]?_0x41ad69[_0x3786('0xb5')](_0x5b8378[_0x3786('0x45')],0x0):_0x41ad69[_0x3786('0x41')](_0x5b8378[_0x3786('0x45')]);return _0x41ad69[_0x3786('0xa7')](_0x1c7626,_0x6452e7[_0x3786('0xf7')],_0x6452e7['stickiness']);}
@@ -1,3 +1,7 @@
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
+ */
1
5
  import '../theme/revisionviewer.css';
2
6
  /**
3
7
  function printTape( tape ) {