@ckeditor/ckeditor5-revision-history 36.0.0 → 37.0.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +23 -8
  3. package/src/augmentation.d.ts +25 -0
  4. package/src/augmentation.js +23 -0
  5. package/src/changeitem.d.ts +52 -0
  6. package/src/changeitem.js +1 -1
  7. package/src/editor/revisionviewereditor.d.ts +27 -0
  8. package/src/editor/revisionviewereditor.js +1 -1
  9. package/src/editor/revisionviewereditorui.d.ts +28 -0
  10. package/src/editor/revisionviewereditorui.js +1 -1
  11. package/src/editor/revisionviewereditoruiview.d.ts +43 -0
  12. package/src/editor/revisionviewereditoruiview.js +1 -1
  13. package/src/index.d.ts +10 -0
  14. package/src/index.js +1 -1
  15. package/src/revision.d.ts +153 -0
  16. package/src/revision.js +1 -1
  17. package/src/revisiondiff.d.ts +19 -0
  18. package/src/revisiondiff.js +1 -1
  19. package/src/revisionhistory.d.ts +93 -0
  20. package/src/revisionhistory.js +1 -1
  21. package/src/revisionhistoryadapter.d.ts +60 -0
  22. package/src/revisionhistoryadapter.js +23 -0
  23. package/src/revisionhistoryconfig.d.ts +60 -0
  24. package/src/revisionhistoryconfig.js +23 -0
  25. package/src/revisionsrepository.d.ts +43 -0
  26. package/src/revisionsrepository.js +1 -1
  27. package/src/revisiontracker.d.ts +72 -0
  28. package/src/revisiontracker.js +1 -1
  29. package/src/revisionviewer.d.ts +21 -0
  30. package/src/revisionviewer.js +1 -1
  31. package/src/ui/revision/createrevisionactionsdropdown.d.ts +9 -0
  32. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  33. package/src/ui/revision/revisionauthorview.d.ts +4 -0
  34. package/src/ui/revision/revisionauthorview.js +1 -1
  35. package/src/ui/revision/revisionnameview.d.ts +4 -0
  36. package/src/ui/revision/revisionnameview.js +1 -1
  37. package/src/ui/revision/revisionview.d.ts +91 -0
  38. package/src/ui/revision/revisionview.js +1 -1
  39. package/src/ui/revision/subrevisioncollapserview.d.ts +17 -0
  40. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  41. package/src/ui/revision/subrevisionview.d.ts +30 -0
  42. package/src/ui/revision/subrevisionview.js +1 -1
  43. package/src/ui/revision/utils.d.ts +4 -0
  44. package/src/ui/revision/utils.js +1 -1
  45. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +80 -0
  46. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  47. package/src/ui/revisionhistory/revisionhistoryui.d.ts +21 -0
  48. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  49. package/src/ui/revisionssidebar/revisionssidebar.d.ts +39 -0
  50. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  51. package/src/ui/revisionssidebar/revisionssidebarheaderview.d.ts +4 -0
  52. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  53. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +25 -0
  54. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  55. package/src/ui/revisionssidebar/revisionssidebarview.d.ts +40 -0
  56. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  57. package/src/ui/revisionssidebar/utils.d.ts +8 -0
  58. package/src/ui/revisionssidebar/utils.js +1 -1
  59. package/src/ui/revisionviewer/changedetailsview.d.ts +18 -0
  60. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  61. package/src/ui/revisionviewer/changesnavigationview.d.ts +36 -0
  62. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  63. package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +22 -0
  64. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  65. package/src/ui/revisionviewer/revisionviewerui.d.ts +22 -0
  66. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  67. package/src/utils/common-translations.d.ts +7 -0
  68. package/src/utils/common-translations.js +1 -1
@@ -0,0 +1,72 @@
1
+ import { Plugin, type PluginDependencies, type Editor } from 'ckeditor5/src/core';
2
+ import RevisionsRepository from './revisionsrepository';
3
+ import type { RevisionHistoryAdapter } from './revisionhistoryadapter';
4
+ import type { default as Revision, RevisionData } from './revision';
5
+ /**
6
+ * Creates and updates revisions based on changes of the editor content.
7
+ *
8
+ * There are always at least two revisions available for the document: the initial revision and the current revision.
9
+ * If those revisions have not been created for the document yet, they are created when the editor data is loaded.
10
+ *
11
+ * The initial revision contains the initial document data from when the document was loaded for the first time.
12
+ *
13
+ * The current revision contains all the unsaved document changes, that is changes which have not been saved yet as a specific revision.
14
+ * The current revision is always available and it is always the "top" revision (most recent).
15
+ */
16
+ export default class RevisionTracker extends Plugin {
17
+ /**
18
+ * An adapter object that should communicate with the data source to fetch or save the revisions data.
19
+ *
20
+ * This property is also set through {@link module:revision-history/revisionhistory~RevisionHistory#adapter}.
21
+ */
22
+ adapter: RevisionHistoryAdapter | null;
23
+ repository?: RevisionsRepository;
24
+ static get pluginName(): 'RevisionTracker';
25
+ static get requires(): PluginDependencies;
26
+ constructor(editor: Editor);
27
+ /**
28
+ * @inheritDoc
29
+ */
30
+ init(): void;
31
+ afterInit(): Promise<void>;
32
+ /**
33
+ * Adds the new document changes to the current revision.
34
+ *
35
+ * This method should be called before document data and revision data is saved (for example, in the autosave callback).
36
+ *
37
+ * @returns Promise that is resolved after the revision is updated locally (the promise does not wait for the adapter update).
38
+ */
39
+ update(): Promise<void>;
40
+ private _loadState;
41
+ /**
42
+ * Creates and saves a new revision.
43
+ *
44
+ * ```ts
45
+ * // Saves all the unsaved changes as a revision without a name.
46
+ * const myRevision = await revisionTracker.saveRevision();
47
+ *
48
+ * // Saves all the unsaved changes as a revision named 'My revision'.
49
+ * const myRevision = await revisionTracker.saveRevision( { name: 'My revision' } );
50
+ *
51
+ * // Saves a revision named 'My revision'.
52
+ * // It will include document data with all the changes up to document version `30`.
53
+ * // The revision will be on "top" of the closest revision with a lower document version.
54
+ * // The revision diff will include all the changes since the previous revision up to document version `30`.
55
+ * const myRevision = await revisionTracker.saveRevision( { name: 'My revision' }, 30 );
56
+ * ```
57
+ *
58
+ * A new revision can be created in the middle of the revision history. In such case, already existing revisions will be
59
+ * appropriately updated.
60
+ *
61
+ * @param revisionData Revision data to set on the created revision.
62
+ * @param version {@link module:engine/model/document~Document#version Document version} on which the revision is saved.
63
+ * If not set, the revision will be saved for the current (most recent) document state.
64
+ * @returns Promise that resolves with the created revision after it is saved locally (the promise does not wait for the
65
+ * adapter update).
66
+ */
67
+ saveRevision(revisionData?: RevisionData, version?: number | null): Promise<Revision>;
68
+ /**
69
+ * Creates a revision basing on given revision data and adds it to the revision tracker and revision repository.
70
+ */
71
+ addRevisionData(revisionData: RevisionData): Revision;
72
+ }
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb4eb=['_getViewJson','sendBufferedUpdates','_revisionId','forEach','_source','clear','getAttributes','_getPreviousFrom','set','addRevision','_lastTo','newRange','PendingActions','createRangeIn','getTransformedByOperation','_fixOperation','keepParagraph','revision','childCount','init','tableCell','getRevisions','oldRange','nodeAfter','elementStart','_createCurrentRevision','from','_initialRevisionId','map','finally','editor','update','getMovedRangeStart','RevisionsRepository','toData','clone','default','fromVersion','afterInit','remove','resolve','buildRevisionData','_generateTape','_revisionDataBuilder','_bufferedUpdates','add','Users','$text','includes','affectsData','split','attributes','isReady','editing','stringify','dataDowncast','_applyOperations','_fixPosition','Initial\x20revision','locale','start','element','_prepareViewToSave','_getFromVersion','previousPosition','_diffRoots','creatorId','graveyardPosition','_markChanges','addRevisionData','_makeIdsRoot','authors','_isPendingUpdate','type','baseVersion','vid','keys','startsWith','getOperation','_createInitialRevision','config','getChildren','plugins','_update','_baseRoots','define','elementEnd','getNodeByPath','_markers','RevisionTracker','isPendingUpdate','_makeModelFromViewString','data','_savedMetaData','slice','_removePendingAction','$graveyard','NEGATIVE_INFINITY','getWalker','offsetSize','vid_start','view','version','createPositionAfter','nodes','userId','hasContent','children','bind','get','ready','_handleMergeOperation','_authorId','_handleMarkerOperation','initialData','move','_getVidAttributeName','revisionHistory.resumeUnsavedRevision','marked','revision-end','getLatestVersion','_pendingAction','reinsert','_reset','revision:','_setAttribute','dataToMarker','getCurrentRevisionId','insert','saveRevision','_loadState','name','getRevision','_handleInsertOperation','reverse','_touchedMarkers','createPositionAt','toVersion','_operations','setRevisionData','source','trim','filter','_touched','_setConversion','getTime','_removeMetaData','reInit','parent','data-revision-','range','item','_appendChild','toView','_saveMetaData','insertion','targetPosition','_cloneOperation','createdAt','stickiness','getRange','isEnabled','_insertChild','insertionPosition','_getState','getUser','length','pluginName','has','_idsRoots','_bufferUpdate','markers','delete','_copyMarkers','deletions','creator','then','getChild','_loadRevisionData','end','getAttribute','revision-start','toModel','createRange','getRootNames','model','offset','_baseIdsRoots','max','_transformMarkers','_continueCurrentRevision','path','createRevision','_handleSplitOperation','_execute','getRoot','requires','root','_lastFrom','conversion','authorsIds','_handleMoveOperation','diffData','text','_processRootBeforeSave','document','position','_loadedStateData','insertions','_fixRange','RealTimeCollaborationClient','getData','vid_end','_clone','createPositionFromPath','rootName','loadState','useFillerType','_getBaseVids','_saveEmptyMetaData','getAncestors','isEqual','_makeRevision','documentFragment','sort','_startingRevisionId','splitPosition','adapter','_createFromRanges','getOperations','shift','PENDING_ACTION_REVISION_HISTORY','size','editor-initial-data-replaced-with-revision-data','_removeRevisionMarkers','push','marker','find','_calculateMetaData','processor','values','collaboration.channelId','for','_rootNames','_addPendingAction','_handleOperation','_findInsertionIndex','repository','currentRevision','_replaceEditorDataWithRevisionData','history','_startingVersion'];(function(_0x25da9c,_0xb4ebd5){const _0x4bb284=function(_0x4842f6){while(--_0x4842f6){_0x25da9c['push'](_0x25da9c['shift']());}};_0x4bb284(++_0xb4ebd5);}(_0xb4eb,0x103));const _0x4bb2=function(_0x25da9c,_0xb4ebd5){_0x25da9c=_0x25da9c-0x0;let _0x4bb284=_0xb4eb[_0x25da9c];return _0x4bb284;};import{Users as _0x2d6ec2}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x22a175,PendingActions as _0x4c6364}from'ckeditor5/src/core';import{logWarning as _0x33e8e8,uid as _0x5c81e7}from'ckeditor5/src/utils';import{Position as _0x275e0c,Range as _0x432887,Element as _0x462dd8,DocumentFragment as _0x2825b5,ViewText as _0x1f7fe1,ViewElement as _0xbda67c,ViewContainerElement as _0x956a26,ViewAttributeElement as _0x5d7e66,ViewEmptyElement as _0x5d43d7,ViewRawElement as _0x50cb3d,ViewUIElement as _0x3f5859,ViewDocumentFragment as _0x498469}from'ckeditor5/src/engine';import _0x2376cc from'./revisionsrepository';import{getTranslation as _0x1cade3}from'./utils/common-translations';const V={'c':_0x956a26,'a':_0x5d7e66,'e':_0x5d43d7,'r':_0x50cb3d,'u':_0x3f5859};export default class l extends _0x22a175{static get[_0x4bb2('0xa0')](){return _0x4bb2('0x52');}static get[_0x4bb2('0xbd')](){return[_0x2d6ec2,_0x2376cc,_0x4c6364];}constructor(..._0xbfcfba){super(..._0xbfcfba),this[_0x4bb2('0xdc')]=null,this['set'](_0x4bb2('0x2d'),!0x1),this[_0x4bb2('0x1')](_0x4bb2('0x9a'),!0x0),this[_0x4bb2('0xf1')]=null;const _0x1516d5=_0x5c81e7();this[_0x4bb2('0xf9')]={'history':this[_0x4bb2('0x17')][_0x4bb2('0xb2')][_0x4bb2('0xc6')][_0x4bb2('0xf3')],'getLatestVersion':()=>Promise[_0x4bb2('0x21')](this[_0x4bb2('0x17')][_0x4bb2('0xb2')][_0x4bb2('0xc6')]['version']),'getCurrentRevisionId':()=>_0x1516d5},this[_0x4bb2('0x24')]=new T(this[_0x4bb2('0x17')]),this[_0x4bb2('0x14')]=this[_0x4bb2('0x17')][_0x4bb2('0x49')][_0x4bb2('0x66')]('collaboration.channelId')||'initial',this[_0x4bb2('0x1')](_0x4bb2('0x53'),!0x1),this['_bufferedUpdates']=new Map(),this['editor'][_0x4bb2('0x49')][_0x4bb2('0x4e')](_0x4bb2('0x6e'),!0x0),this[_0x4bb2('0xc8')]=null,this[_0x4bb2('0x17')][_0x4bb2('0xc0')][_0x4bb2('0xeb')]('upcast')[_0x4bb2('0x77')]({'view':_0x4bb2('0xa')});}[_0x4bb2('0xc')](){this[_0x4bb2('0xf0')]=this[_0x4bb2('0x17')][_0x4bb2('0x4b')]['get'](_0x4bb2('0x1a')),this[_0x4bb2('0x89')](),this['editor'][_0x4bb2('0x55')]['on'](_0x4bb2('0x67'),()=>{const _0x471dd2=this[_0x4bb2('0xf0')][_0x4bb2('0x7d')](0x0),_0x4fbc3b=_0x471dd2&&null===_0x471dd2[_0x4bb2('0xa8')]?_0x471dd2:null;if(this[_0x4bb2('0xb7')]=!!_0x4fbc3b&&this['editor']['config'][_0x4bb2('0x66')](_0x4bb2('0x6e')),this[_0x4bb2('0x17')][_0x4bb2('0x4b')][_0x4bb2('0xa1')](_0x4bb2('0xcb'))){const _0x3d16b6=this['_source']['getCurrentRevisionId'](),_0x1ff7c6=this['repository']['getRevision'](_0x3d16b6);if(_0x1ff7c6)this['_startingVersion']=_0x1ff7c6[_0x4bb2('0x1e')],this[_0x4bb2('0xb7')]=!0x1;else{const _0xf97543=this['_source'][_0x4bb2('0xf3')][_0x4bb2('0x83')]['find'](_0x590bb4=>!_0x590bb4['_isInit']),_0x377e89=_0xf97543?_0xf97543['baseVersion']:this[_0x4bb2('0xf9')][_0x4bb2('0xf3')][_0x4bb2('0x5f')];_0x471dd2?(_0x471dd2[_0x4bb2('0x82')]<_0x377e89&&_0x471dd2[_0x4bb2('0x4c')]({'toVersion':_0x377e89}),this[_0x4bb2('0xb7')]?(this['_source'][_0x4bb2('0x78')]=()=>_0x4fbc3b['id'],this[_0x4bb2('0xf4')]=_0x4fbc3b[_0x4bb2('0x1e')]):(this[_0x4bb2('0xf4')]=_0x471dd2[_0x4bb2('0x82')],this[_0x4bb2('0xb7')]=!0x1)):(this[_0x4bb2('0xf4')]=_0x377e89,this[_0x4bb2('0xb7')]=!0x1);}}else _0x4fbc3b&&(this[_0x4bb2('0x17')][_0x4bb2('0xb2')][_0x4bb2('0xc6')]['history'][_0x4bb2('0x5f')]=Math[_0x4bb2('0xb5')](_0x4fbc3b[_0x4bb2('0x82')],this[_0x4bb2('0x17')][_0x4bb2('0xb2')]['document'][_0x4bb2('0xf3')][_0x4bb2('0x5f')]),_0x4fbc3b['fromVersion']===_0x4fbc3b['toVersion']?(0x0!==_0x4fbc3b['fromVersion']&&(this[_0x4bb2('0xf9')][_0x4bb2('0x78')]=()=>_0x4fbc3b['id']),this['_continueCurrentRevision']=!0x1):this[_0x4bb2('0xb7')]&&(this[_0x4bb2('0xf9')][_0x4bb2('0x78')]=()=>_0x4fbc3b['id'],this[_0x4bb2('0xf4')]=_0x4fbc3b[_0x4bb2('0x1e')])),this[_0x4bb2('0xb7')]||(this[_0x4bb2('0xf4')]=this[_0x4bb2('0x17')][_0x4bb2('0xb2')][_0x4bb2('0xc6')][_0x4bb2('0x5f')]);this[_0x4bb2('0x24')][_0x4bb2('0xc')](this[_0x4bb2('0xf9')][_0x4bb2('0xf3')]),this['_createInitialRevision'](this[_0x4bb2('0xf4')]),this[_0x4bb2('0x12')](this[_0x4bb2('0xf4')]),this[_0x4bb2('0xdc')]&&this[_0x4bb2('0xf6')]();}),this[_0x4bb2('0x65')](_0x4bb2('0x2d'))['to'](this,_0x4bb2('0x41'),_0x1fad99=>!_0x1fad99);}async[_0x4bb2('0x1f')](){if(this[_0x4bb2('0xf0')][_0x4bb2('0x9f')]>0x0){const _0x52013d=this['repository'][_0x4bb2('0x7d')](0x0),_0x2266eb=await this['getRevisionDocumentData'](_0x52013d);this[_0x4bb2('0xf2')](_0x2266eb);}}['setSource'](_0x3c02fa){this[_0x4bb2('0xf9')]=_0x3c02fa;}async[_0x4bb2('0x18')](){const _0x3e381d=await this[_0x4bb2('0xf9')][_0x4bb2('0x71')]();if(_0x3e381d>this['currentRevision']['toVersion']){await this[_0x4bb2('0x7b')]();const _0x72bde=this[_0x4bb2('0x22')]({'revision':this[_0x4bb2('0xf1')],'to':_0x3e381d});_0x72bde[_0x4bb2('0x40')]=_0x72bde[_0x4bb2('0xc1')][_0x4bb2('0x15')](_0x4913c5=>this[_0x4bb2('0x17')]['plugins'][_0x4bb2('0x66')](_0x4bb2('0x27'))[_0x4bb2('0x9e')](_0x4913c5)),this[_0x4bb2('0xf1')][_0x4bb2('0x4c')](_0x72bde);}}async[_0x4bb2('0x7b')](){this[_0x4bb2('0xb7')]&&!this[_0x4bb2('0xc8')]&&(await this[_0x4bb2('0xab')](this['currentRevision']),this[_0x4bb2('0x24')][_0x4bb2('0xd1')](this[_0x4bb2('0xf1')]),this[_0x4bb2('0xc8')]={'fromVersion':this[_0x4bb2('0xf1')][_0x4bb2('0x1e')],'authors':this[_0x4bb2('0xf1')][_0x4bb2('0x40')][_0x4bb2('0x57')]()});}async[_0x4bb2('0x7a')](_0x15e4cd={},_0x39ca87=null){const _0x288c29=[];await this[_0x4bb2('0x7b')](),this[_0x4bb2('0xb7')]=!0x1,_0x39ca87>this['currentRevision'][_0x4bb2('0x82')]&&(_0x39ca87=null),null===_0x39ca87&&(_0x39ca87=await this[_0x4bb2('0xf9')][_0x4bb2('0x71')]());const _0x52093b=this['_getFromVersion'](_0x39ca87),_0x2e10db=this[_0x4bb2('0x22')]({'from':_0x52093b,'to':_0x39ca87});if(this[_0x4bb2('0xf1')][_0x4bb2('0x82')]<_0x39ca87){const _0x375d7a=this[_0x4bb2('0x22')]({'revision':this[_0x4bb2('0xf1')],'from':_0x39ca87,'to':_0x39ca87});_0x375d7a[_0x4bb2('0x40')]=[],_0x375d7a['authorsIds']=[],_0x375d7a['id']=this[_0x4bb2('0xf1')]['id'],this[_0x4bb2('0xf1')][_0x4bb2('0x4c')](_0x375d7a,!0x0),delete _0x375d7a[_0x4bb2('0x40')],_0x288c29[_0x4bb2('0xe4')](_0x375d7a);}_0x15e4cd['creatorId']=this['editor'][_0x4bb2('0x4b')][_0x4bb2('0x66')]('Users')['me']['id'],_0x15e4cd[_0x4bb2('0x7c')]=_0x15e4cd[_0x4bb2('0x7c')]||null,_0x15e4cd['id']=_0x15e4cd['id']||_0x5c81e7(),_0x15e4cd={..._0x15e4cd,..._0x2e10db};const _0x1fd5e3=this[_0x4bb2('0x3e')](_0x15e4cd);_0x288c29['push'](_0x15e4cd);const _0x3856bb=this[_0x4bb2('0xf0')]['getIndex'](_0x1fd5e3);if(0x0!==_0x3856bb){const _0x483144=this[_0x4bb2('0xf0')][_0x4bb2('0x7d')](_0x3856bb-0x1);if(_0x483144[_0x4bb2('0x1e')]!==_0x39ca87){const _0x3a2bee=this[_0x4bb2('0x24')][_0x4bb2('0xcc')](_0x39ca87,_0x483144[_0x4bb2('0x82')]),_0x5aa5ce={'id':_0x483144['id'],'diffData':_0x3a2bee[_0x4bb2('0xc3')],'authorsIds':_0x3a2bee[_0x4bb2('0xc1')],'authors':_0x3a2bee[_0x4bb2('0xc1')][_0x4bb2('0x15')](_0x12e483=>this[_0x4bb2('0x17')]['plugins'][_0x4bb2('0x66')]('Users')[_0x4bb2('0x9e')](_0x12e483)),'fromVersion':_0x39ca87};_0x483144===this[_0x4bb2('0xf1')]&&(_0x5aa5ce[_0x4bb2('0x97')]=new Date(_0x15e4cd[_0x4bb2('0x97')][_0x4bb2('0x8a')]()+0xa)),_0x483144['_update'](_0x5aa5ce,!0x0),delete _0x5aa5ce['authors'],_0x288c29['push'](_0x5aa5ce);}}if(this[_0x4bb2('0xdc')]){for(const _0x5a9265 of _0x288c29)this[_0x4bb2('0xa3')](_0x5a9265['id'],_0x5a9265,!0x0);this[_0x4bb2('0xf6')]();}return _0x1fd5e3;}['addRevisionData'](_0xa72754){const _0x5b3381=this[_0x4bb2('0xf0')][_0x4bb2('0xb9')](_0xa72754);return this[_0x4bb2('0xdc')]&&_0x5b3381['on'](_0x4bb2('0x4c'),(_0xf75d64,_0x4ba66e,_0x4e8217)=>{_0x4e8217||(this[_0x4bb2('0xa3')](_0x4ba66e['id'],_0x4ba66e,!0x0),this[_0x4bb2('0xf6')]());}),this[_0x4bb2('0xf0')][_0x4bb2('0x2')](_0x5b3381,this[_0x4bb2('0xef')](_0x5b3381)),_0x5b3381;}async['getRevisionDocumentData'](_0x303eda){await this[_0x4bb2('0xab')](_0x303eda);const _0x1d4615={};for(const _0x1c1c61 in _0x303eda[_0x4bb2('0xc3')]){const _0x321a38=this[_0x4bb2('0xe3')](JSON['parse'](_0x303eda[_0x4bb2('0xc3')][_0x1c1c61]['insertions'])),_0x4f6068=this[_0x4bb2('0x17')][_0x4bb2('0x2e')][_0x4bb2('0x5e')][_0x4bb2('0xc6')],_0x40fc11=new _0x498469(_0x4f6068,_0x321a38[_0x4bb2('0x15')](_0x2a5032=>F(_0x2a5032,this[_0x4bb2('0x17')])));this['editor']['data']['processor'][_0x4bb2('0xd2')](_0x4bb2('0x6f')),_0x1d4615[_0x1c1c61]=this[_0x4bb2('0x17')][_0x4bb2('0x55')][_0x4bb2('0xe8')][_0x4bb2('0x1b')](_0x40fc11),this[_0x4bb2('0x17')]['data'][_0x4bb2('0xe8')][_0x4bb2('0xd2')](_0x4bb2('0x1d'));}return _0x1d4615;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this[_0x4bb2('0x41')])return;let _0x581348=Array[_0x4bb2('0x13')](this['_bufferedUpdates']['values']());this[_0x4bb2('0x25')][_0x4bb2('0xfa')]();for(let _0x4f7efa=0x0;_0x4f7efa<_0x581348[_0x4bb2('0x9f')];_0x4f7efa++){const _0x43fca3=_0x581348[_0x4f7efa];let _0x288ca8=!0x1;for(const _0x25d0c0 of Object[_0x4bb2('0x45')](_0x43fca3))void 0x0===_0x43fca3[_0x25d0c0]?delete _0x43fca3[_0x25d0c0]:'id'!==_0x25d0c0&&(_0x288ca8=!0x0);_0x288ca8||(_0x581348[_0x4f7efa]=null);}if(_0x581348=_0x581348[_0x4bb2('0x87')](_0x1546c3=>null!==_0x1546c3),!_0x581348[_0x4bb2('0x9f')])return;for(let _0x5ceccb=0x0;_0x5ceccb<_0x581348[_0x4bb2('0x9f')];_0x5ceccb++){const _0xc5444a=_0x581348[_0x5ceccb];void 0x0!==_0xc5444a[_0x4bb2('0x1e')]&&void 0x0===_0xc5444a[_0x4bb2('0x82')]&&(_0xc5444a[_0x4bb2('0x82')]=this['repository']['getRevision'](_0xc5444a['id'])[_0x4bb2('0x82')]),void 0x0!==_0xc5444a['toVersion']&&void 0x0===_0xc5444a[_0x4bb2('0x1e')]&&(_0xc5444a[_0x4bb2('0x1e')]=this[_0x4bb2('0xf0')]['getRevision'](_0xc5444a['id'])['fromVersion']);}const _0x5e38b1=this[_0x4bb2('0x17')][_0x4bb2('0x49')][_0x4bb2('0x66')](_0x4bb2('0xea'));this[_0x4bb2('0x41')]=!0x0,this[_0x4bb2('0xed')](),this[_0x4bb2('0xdc')]['updateRevisions'](_0x581348,_0x5e38b1)[_0x4bb2('0x16')](()=>{this[_0x4bb2('0x41')]=!0x1;})[_0x4bb2('0xa9')](_0x27af57=>{if(_0x27af57)for(const _0x5344b5 of _0x27af57)this[_0x4bb2('0x84')]({'id':_0x5344b5['id'],'createdAt':_0x5344b5[_0x4bb2('0x97')]});this[_0x4bb2('0x58')](),this[_0x4bb2('0xf6')]();});}[_0x4bb2('0xf2')](_0x3f9df6){let _0x1a22d5=this['editor'][_0x4bb2('0x49')][_0x4bb2('0x66')](_0x4bb2('0x6b'));if(void 0x0===_0x1a22d5){_0x1a22d5={};for(const _0x10d878 of this[_0x4bb2('0x17')][_0x4bb2('0xb2')]['document'][_0x4bb2('0xb1')]())_0x1a22d5[_0x10d878]='';}'string'==typeof _0x1a22d5&&(_0x1a22d5={'main':_0x1a22d5});let _0x25195b=!0x1;for(const _0x1babf3 of Object['keys'](_0x1a22d5))_0x3f9df6[_0x1babf3]&&(_0x1a22d5[_0x1babf3]!==_0x3f9df6[_0x1babf3]&&''!==_0x1a22d5[_0x1babf3][_0x4bb2('0x86')]()&&(_0x25195b=!0x0),_0x1a22d5[_0x1babf3]=_0x3f9df6[_0x1babf3]);_0x25195b&&_0x33e8e8(_0x4bb2('0xe2')),this['editor'][_0x4bb2('0x49')][_0x4bb2('0x1')](_0x4bb2('0x6b'),_0x1a22d5);}[_0x4bb2('0xed')](){if(!this[_0x4bb2('0x72')]){const _0x9c6f46=this['editor']['plugins']['get'](_0x4bb2('0x5'));this[_0x4bb2('0x72')]=_0x9c6f46['add'](_0x1cade3(this[_0x4bb2('0x17')]['locale'],_0x4bb2('0xe0')));}}[_0x4bb2('0x58')](){this[_0x4bb2('0x72')]&&(this['editor'][_0x4bb2('0x4b')]['get'](_0x4bb2('0x5'))['remove'](this[_0x4bb2('0x72')]),this[_0x4bb2('0x72')]=null);}[_0x4bb2('0xef')](_0x4c3c84){const _0x25ba26=this['repository'][_0x4bb2('0xe')]();_0x25ba26[_0x4bb2('0x7f')]();let _0x1e3c14=0x0;for(;_0x1e3c14<_0x25ba26[_0x4bb2('0x9f')];){const _0xf4337e=_0x25ba26[_0x1e3c14];if(_0xf4337e===this[_0x4bb2('0xf1')]){_0x1e3c14++;continue;}if(_0xf4337e['id']===this[_0x4bb2('0x14')])break;const _0x3b2847=_0x4c3c84[_0x4bb2('0x82')]-_0xf4337e['toVersion']||_0x4c3c84[_0x4bb2('0x1e')]-_0xf4337e[_0x4bb2('0x1e')];if(_0x3b2847>0x0)break;if(_0x3b2847<0x0)_0x1e3c14++;else{if(!_0x4c3c84['creator']&&_0xf4337e['creator'])break;if(_0xf4337e['creator']||!_0x4c3c84[_0x4bb2('0xa8')]){if(_0x4c3c84[_0x4bb2('0x97')]>_0xf4337e[_0x4bb2('0x97')])break;_0x1e3c14++;}else _0x1e3c14++;}}return _0x1e3c14;}['setRevisionData'](_0x402c83){const _0x10a90c=this['repository']['getRevision'](_0x402c83['id']);if(_0x402c83[_0x4bb2('0x97')]&&(_0x402c83['createdAt']=new Date(_0x402c83[_0x4bb2('0x97')])),_0x402c83[_0x4bb2('0xc1')]){const _0xb0e557=this[_0x4bb2('0x17')][_0x4bb2('0x4b')]['get'](_0x4bb2('0x27'));_0x402c83[_0x4bb2('0x40')]=_0x402c83[_0x4bb2('0xc1')]['map'](_0x5b7123=>_0xb0e557[_0x4bb2('0x9e')](_0x5b7123));}_0x10a90c['_update'](_0x402c83,!0x0);}[_0x4bb2('0x22')]({revision:_0xcadf34=null,from:_0x369513=null,to:_0x5803c6=null}){_0x369513=null!==_0x369513?_0x369513:_0xcadf34['fromVersion'],_0x5803c6=null!==_0x5803c6?_0x5803c6:_0xcadf34[_0x4bb2('0x82')];const _0x508ab2=this[_0x4bb2('0x24')][_0x4bb2('0xcc')](_0x369513,_0x5803c6),_0x2d44c9={'diffData':_0x508ab2[_0x4bb2('0xc3')],'authorsIds':_0x508ab2[_0x4bb2('0xc1')],'fromVersion':_0x369513,'toVersion':_0x5803c6};if(!_0xcadf34||_0x5803c6!==_0xcadf34[_0x4bb2('0x82')]){const _0x2d0d9d=_0x5803c6-0x1,_0xff5eab=this[_0x4bb2('0xf9')]['history'][_0x4bb2('0x47')](_0x2d0d9d);_0x2d44c9[_0x4bb2('0x97')]=_0xff5eab&&_0xff5eab[_0x4bb2('0x97')]||new Date();}if(this[_0x4bb2('0xc8')]&&_0x369513===this[_0x4bb2('0xc8')][_0x4bb2('0x1e')])for(const _0xbd4e3c of this[_0x4bb2('0xc8')][_0x4bb2('0x40')])_0x2d44c9['authorsIds'][_0x4bb2('0x29')](_0xbd4e3c['id'])||_0x2d44c9[_0x4bb2('0xc1')][_0x4bb2('0xe4')](_0xbd4e3c['id']);return _0x2d44c9;}['_loadRevisionData'](_0x5ce1ba){if(!_0x5ce1ba||_0x5ce1ba[_0x4bb2('0xc3')])return Promise[_0x4bb2('0x21')]();{const _0x248b15=this[_0x4bb2('0x17')]['config']['get'](_0x4bb2('0xea'));return this[_0x4bb2('0xdc')][_0x4bb2('0x7d')]({'channelId':_0x248b15,'revisionId':_0x5ce1ba['id']})['then'](_0x702db8=>{_0x5ce1ba[_0x4bb2('0xc3')]=_0x702db8[_0x4bb2('0xc3')];});}}['_bufferUpdate'](_0x84665a,_0x41fc7f,_0x24d93b){if(this['_bufferedUpdates'][_0x4bb2('0xa1')](_0x84665a)){const _0x281277=this[_0x4bb2('0x25')][_0x4bb2('0x66')](_0x84665a);_0x41fc7f=_0x24d93b?{..._0x281277,..._0x41fc7f}:{..._0x41fc7f,..._0x281277};}this[_0x4bb2('0x25')][_0x4bb2('0x1')](_0x84665a,_0x41fc7f);}[_0x4bb2('0x38')](_0x23d60b){const _0x47e819=this[_0x4bb2('0xf0')][_0x4bb2('0xe')]();_0x47e819['reverse'](),_0x47e819[_0x4bb2('0xdf')]();const _0x44fa7f=_0x47e819[_0x4bb2('0xe6')](_0x10a7b6=>_0x10a7b6[_0x4bb2('0x82')]<=_0x23d60b)['toVersion'];return _0x44fa7f<this[_0x4bb2('0xf4')]?this[_0x4bb2('0xf4')]:_0x44fa7f;}[_0x4bb2('0x48')](_0x1df2d7){const _0x46385a=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x46385a)this['_initialRevisionId']=_0x46385a['id'];else{const _0x2eb777=!this['editor'][_0x4bb2('0xb2')]['document']['roots'][_0x4bb2('0xe6')](_0x53b64f=>this[_0x4bb2('0x17')][_0x4bb2('0xb2')][_0x4bb2('0x63')](_0x53b64f)),_0x25e9db=this[_0x4bb2('0x17')][_0x4bb2('0x4b')][_0x4bb2('0x66')](_0x4bb2('0x27'))['me']['id'],_0x2ab267=_0x1cade3(this[_0x4bb2('0x17')][_0x4bb2('0x34')],_0x2eb777?'Empty\x20document':_0x4bb2('0x33'));this[_0x4bb2('0xd7')]({'from':_0x1df2d7,'to':_0x1df2d7,'id':this[_0x4bb2('0x14')],'name':_0x2ab267,'creatorId':_0x25e9db});}}['_createCurrentRevision'](_0x29ba94){const _0x4602e0=this[_0x4bb2('0xf9')][_0x4bb2('0x78')]();this[_0x4bb2('0xf1')]=this[_0x4bb2('0xf0')][_0x4bb2('0x7d')](_0x4602e0),this[_0x4bb2('0xf1')]||(this[_0x4bb2('0xf1')]=this['_makeRevision']({'from':_0x29ba94,'to':_0x29ba94,'id':_0x4602e0,'name':'','creatorId':null}));}['_makeRevision']({name:_0x24938d,from:_0x5638e8,to:_0x4f37aa,creatorId:_0x81cc0f,id:_0xc2a40}){const _0x5c3ad2=this[_0x4bb2('0x22')]({'from':_0x5638e8,'to':_0x4f37aa});_0x5c3ad2[_0x4bb2('0x7c')]=_0x24938d,_0x5c3ad2[_0x4bb2('0x3b')]=_0x81cc0f,_0x5c3ad2['id']=_0xc2a40;const _0x5b89b1=this[_0x4bb2('0x3e')](_0x5c3ad2);return this['adapter']&&this[_0x4bb2('0xa3')](_0x5c3ad2['id'],_0x5c3ad2,!0x0),_0x5b89b1;}[_0x4bb2('0x89')](){this[_0x4bb2('0x17')][_0x4bb2('0xc0')][_0x4bb2('0xeb')](_0x4bb2('0x30'))['markerToData']({'model':_0x4bb2('0xa')});}[_0x4bb2('0xe3')](_0x2b5d4a){return(_0x2b5d4a=_0x2b5d4a[_0x4bb2('0x87')](_0x6f4f10=>!_0x6f4f10[_0x4bb2('0x7c')]||_0x4bb2('0xae')!==_0x6f4f10['name']&&_0x4bb2('0x70')!==_0x6f4f10[_0x4bb2('0x7c')]))[_0x4bb2('0xf8')](_0x2cb901=>{'string'!=typeof _0x2cb901&&(_0x2cb901['children']=this['_removeRevisionMarkers'](_0x2cb901[_0x4bb2('0x64')]),_0x2cb901[_0x4bb2('0x2c')]=_0x2cb901[_0x4bb2('0x2c')][_0x4bb2('0x87')](_0x1be93c=>!_0x1be93c[0x0][_0x4bb2('0x46')](_0x4bb2('0x8e'))));}),_0x2b5d4a;}}function F(_0x4da2a6,_0x5eb054){const _0x420e4b=_0x5eb054[_0x4bb2('0x2e')]['view'][_0x4bb2('0xc6')];if('string'==typeof _0x4da2a6)return new _0x1f7fe1(_0x420e4b,_0x4da2a6);{const _0x53fab2=_0x4da2a6[_0x4bb2('0x64')][_0x4bb2('0x15')](_0x438d56=>F(_0x438d56,_0x5eb054));return new(V[_0x4da2a6[(_0x4bb2('0x42'))]]||_0xbda67c)(_0x420e4b,_0x4da2a6['name'],_0x4da2a6[_0x4bb2('0x2c')],_0x53fab2);}}class T{constructor(_0x3ae62a){this[_0x4bb2('0x17')]=_0x3ae62a,this[_0x4bb2('0x56')]=new Map(),this['_lastFrom']=-0x1,this[_0x4bb2('0x3')]=-0x1,this[_0x4bb2('0x51')]=new Map(),this['_diffRoots']=new Map(),this[_0x4bb2('0x4d')]=new Map(),this[_0x4bb2('0xa2')]=new Map(),this[_0x4bb2('0xb4')]=new Map(),this[_0x4bb2('0x88')]=new Map(),this[_0x4bb2('0x80')]=new Map(),this[_0x4bb2('0xf7')]=0x1,this[_0x4bb2('0xec')]=this[_0x4bb2('0x17')][_0x4bb2('0xb2')][_0x4bb2('0xc6')][_0x4bb2('0xb1')](),this['_rootNames'][_0x4bb2('0xe4')](_0x4bb2('0x59'));}[_0x4bb2('0xc')](_0x24e1d1){this['source']=_0x24e1d1;const _0x20f4e4=new Map();for(const _0x314377 of this[_0x4bb2('0xec')]){const _0xacedcd=J(this[_0x4bb2('0x17')][_0x4bb2('0xb2')][_0x4bb2('0xc6')][_0x4bb2('0xbc')](_0x314377));_0x20f4e4['set'](_0x314377,_0xacedcd);}const _0x20a2ee=Array['from'](this[_0x4bb2('0x17')][_0x4bb2('0xb2')]['markers'])[_0x4bb2('0x15')](_0x1e9c94=>[_0x1e9c94[_0x4bb2('0x7c')],_0x1e9c94[_0x4bb2('0x99')]()]),_0x2b0fb5=this[_0x4bb2('0x85')][_0x4bb2('0x5f')];this[_0x4bb2('0x93')](_0x2b0fb5,_0x20f4e4,_0x20a2ee),this[_0x4bb2('0xda')]=this[_0x4bb2('0xf7')];}[_0x4bb2('0xcc')](_0x451ede,_0x10f71f){if(this[_0x4bb2('0xbf')]===_0x451ede&&this[_0x4bb2('0x3')]<=_0x10f71f)this[_0x4bb2('0x56')][_0x4bb2('0xe1')]>0x1&&this['_removeMetaData'](this[_0x4bb2('0x3')]),this[_0x4bb2('0x31')](this['_lastTo'],_0x10f71f,!0x0);else{if(!this['_savedMetaData'][_0x4bb2('0xa1')](_0x451ede)){const _0x4483e2=this[_0x4bb2('0x0')](_0x451ede);this[_0x4bb2('0xe7')](_0x4483e2,_0x451ede,!0x1);}this[_0x4bb2('0xe7')](_0x451ede,_0x10f71f,!0x0);}return this[_0x4bb2('0xbf')]=_0x451ede,this['_lastTo']=_0x10f71f,this['_getState']();}[_0x4bb2('0xd1')](_0x4820a4){this[_0x4bb2('0x74')](),this[_0x4bb2('0xbf')]=_0x4820a4['fromVersion'],this[_0x4bb2('0x3')]=_0x4820a4[_0x4bb2('0x82')];for(const _0xaf30c in _0x4820a4[_0x4bb2('0xc3')]){const _0x1e8508=this['_makeModelFromViewString'](_0x4820a4[_0x4bb2('0xc3')][_0xaf30c][_0x4bb2('0xa7')]);_0x1e8508[_0x4bb2('0xd0')]=_0xaf30c,this[_0x4bb2('0x4d')][_0x4bb2('0x1')](_0xaf30c,_0x1e8508);const _0x1c87e2=this[_0x4bb2('0x3f')](_0x1e8508);this[_0x4bb2('0xb4')]['set'](_0xaf30c,_0x1c87e2);for(const [_0x5ef28a,_0x373fba]of _0x1e8508['markers']){if(!_0x5ef28a[_0x4bb2('0x46')](_0x4bb2('0x75')))continue;const _0x20cc4d=_0x5ef28a[_0x4bb2('0x2b')](':')[0x2];for(const _0x65a24c of _0x373fba[_0x4bb2('0x5b')]({'singleCharacters':!0x0})){const _0x137e4c=this[_0x4bb2('0x6d')](_0x65a24c),_0x1b56d0='elementEnd'==_0x65a24c[_0x4bb2('0x42')]?_0x65a24c['previousPosition']['path'][_0x4bb2('0x57')](0x0,-0x1):_0x65a24c[_0x4bb2('0x39')][_0x4bb2('0xb8')],_0x3827c6=_0x1c87e2[_0x4bb2('0x50')](_0x1b56d0)[_0x4bb2('0xad')](_0x137e4c);this[_0x4bb2('0x88')][_0x4bb2('0x1')](_0x3827c6,{'userId':_0x20cc4d});}}}this['_startingRevisionId']=this[_0x4bb2('0xf7')];const _0xcae046=[...Array(this[_0x4bb2('0xf7')])[_0x4bb2('0x45')]()][_0x4bb2('0x57')](0x1)[_0x4bb2('0x87')](_0x3689e0=>!this[_0x4bb2('0x88')]['has'](_0x3689e0));let _0x5625f7=0x0;for(const _0x30c960 in _0x4820a4[_0x4bb2('0xc3')]){const _0x166b7f=this[_0x4bb2('0x54')](_0x4820a4['diffData'][_0x30c960]['insertions']);_0x166b7f[_0x4bb2('0xd0')]=_0x30c960,this['_diffRoots'][_0x4bb2('0x1')](_0x30c960,_0x166b7f);const _0xb77cfc=this[_0x4bb2('0x3f')](_0x166b7f,Number[_0x4bb2('0x5a')]);this[_0x4bb2('0xa2')][_0x4bb2('0x1')](_0x30c960,_0xb77cfc);for(const [_0x298b13,_0x554b9b]of _0x166b7f['markers']){if(!_0x298b13['startsWith'](_0x4bb2('0x75')))continue;const _0x17eb46=_0x298b13['split'](':')[0x2];for(const _0x5c6e03 of _0x554b9b[_0x4bb2('0x5b')]({'singleCharacters':!0x0})){const _0x2c971d=this[_0x4bb2('0x6d')](_0x5c6e03),_0x21585c=this[_0x4bb2('0xf7')]++,_0x17e49a=_0x4bb2('0x4f')==_0x5c6e03[_0x4bb2('0x42')]?_0x5c6e03[_0x4bb2('0x39')][_0x4bb2('0xb8')]['slice'](0x0,-0x1):_0x5c6e03[_0x4bb2('0x39')]['path'];_0xb77cfc['getNodeByPath'](_0x17e49a)[_0x4bb2('0x76')](_0x2c971d,_0x21585c),this[_0x4bb2('0x88')][_0x4bb2('0x1')](_0x21585c,{'userId':_0x17eb46});}}for(const _0x1e8078 of this['editor'][_0x4bb2('0xb2')][_0x4bb2('0x6')](_0x166b7f)[_0x4bb2('0x5b')]({'singleCharacters':!0x0})){const _0x234a4d=this['_getVidAttributeName'](_0x1e8078),_0x5efb7f=_0x4bb2('0x4f')==_0x1e8078[_0x4bb2('0x42')]?_0x1e8078[_0x4bb2('0x39')][_0x4bb2('0xb8')]['slice'](0x0,-0x1):_0x1e8078[_0x4bb2('0x39')][_0x4bb2('0xb8')],_0x1ac9cd=_0xb77cfc['getNodeByPath'](_0x5efb7f);_0x1ac9cd[_0x4bb2('0xad')](_0x234a4d)>0x0||_0x1ac9cd[_0x4bb2('0x76')](_0x234a4d,_0xcae046[_0x5625f7++]);}const _0x1f7cee=new _0x2825b5();_0x1f7cee['rootName']=_0x4bb2('0x59'),this[_0x4bb2('0x4d')]['set'](_0x4bb2('0x59'),_0x1f7cee),this[_0x4bb2('0xb4')][_0x4bb2('0x1')](_0x4bb2('0x59'),this['_makeIdsRoot'](_0x1f7cee,0x1));const _0x408c89=new _0x2825b5();_0x408c89['rootName']=_0x4bb2('0x59'),this[_0x4bb2('0x3a')]['set'](_0x4bb2('0x59'),_0x408c89),this[_0x4bb2('0xa2')][_0x4bb2('0x1')](_0x4bb2('0x59'),this[_0x4bb2('0x3f')](_0x408c89,0x1));for(const [_0x2f830d,_0x2f2d5a]of _0x166b7f[_0x4bb2('0xa4')])_0x2f830d[_0x4bb2('0x46')]('revision:')||this['_markers'][_0x4bb2('0x1')](_0x2f830d,_0x2f2d5a);}const _0x31de3c=Array[_0x4bb2('0x13')](this['_diffRoots'])['map'](([_0x1b9077,_0x21e075])=>[_0x1b9077,J(_0x21e075)]);this[_0x4bb2('0x93')](this[_0x4bb2('0x3')],_0x31de3c,this['_markers']);}[_0x4bb2('0x54')](_0x5d20ff){const _0x34a33b=JSON['parse'](_0x5d20ff),_0x404fae=this[_0x4bb2('0x17')][_0x4bb2('0x2e')][_0x4bb2('0x5e')][_0x4bb2('0xc6')],_0x3a47c2=new _0x498469(_0x404fae,_0x34a33b['map'](_0xa69733=>F(_0xa69733,this[_0x4bb2('0x17')])));return this[_0x4bb2('0x17')]['data'][_0x4bb2('0xaf')](_0x3a47c2);}[_0x4bb2('0xd4')](){const _0x1913c6=new Map();for(const _0xa14144 of this['_rootNames']){const _0x31eaf6=new _0x2825b5();_0x31eaf6[_0x4bb2('0xd0')]=_0xa14144,_0x1913c6[_0x4bb2('0x1')](_0xa14144,_0x31eaf6);}this[_0x4bb2('0x93')](Number[_0x4bb2('0x5a')],_0x1913c6,[]);}[_0x4bb2('0x93')](_0x186dca,_0x4b767d,_0x45f4fd){const _0x5c6981=new Map(_0x4b767d),_0x36abcf=new Map();for(const [_0x43cded,_0x58f65c]of _0x45f4fd)_0x36abcf['set'](_0x43cded,{'start':_0x58f65c[_0x4bb2('0x35')]['clone'](),'end':_0x58f65c[_0x4bb2('0xac')][_0x4bb2('0x1c')](),'rootName':_0x58f65c[_0x4bb2('0xbe')][_0x4bb2('0xd0')]});this[_0x4bb2('0x56')]['set'](_0x186dca,{'roots':_0x5c6981,'markers':_0x36abcf});}[_0x4bb2('0x8b')](_0x471904){this['_savedMetaData'][_0x4bb2('0xa5')](_0x471904);}[_0x4bb2('0x8c')](){this[_0x4bb2('0x74')](),this[_0x4bb2('0xbf')]=-0x1,this[_0x4bb2('0x3')]=-0x1,this['_savedMetaData'][_0x4bb2('0xfa')](),this['init'](this[_0x4bb2('0x85')]);}['_reset'](){this[_0x4bb2('0x88')]['clear'](),this[_0x4bb2('0x80')][_0x4bb2('0xfa')](),this[_0x4bb2('0x3a')][_0x4bb2('0xfa')](),this[_0x4bb2('0x4d')][_0x4bb2('0xfa')](),this[_0x4bb2('0xa2')][_0x4bb2('0xfa')](),this['_baseIdsRoots'][_0x4bb2('0xfa')](),this[_0x4bb2('0x51')][_0x4bb2('0xfa')](),this[_0x4bb2('0xf7')]=0x1,this[_0x4bb2('0xda')]=this[_0x4bb2('0xf7')];}[_0x4bb2('0x3f')](_0x54506c,_0x3dfc53=null){let _0x3459e1=null;_0x54506c['is'](_0x4bb2('0xd8'))||(_0x3459e1=new _0x462dd8(_0x54506c[_0x4bb2('0x7c')],{'vid_start':null===_0x3dfc53?this[_0x4bb2('0xf7')]++:_0x3dfc53++}));const _0x124eea=[];for(const _0x51868d of _0x54506c[_0x4bb2('0x4a')]())if(_0x51868d['is'](_0x4bb2('0x36'))){_0x124eea[_0x4bb2('0xe4')](this[_0x4bb2('0x3f')](_0x51868d,_0x3dfc53));const _0xb5c92a=_0x124eea[_0x124eea['length']-0x1];null!==_0x3dfc53&&(_0x3dfc53=_0xb5c92a['is'](_0x4bb2('0x36'),_0x4bb2('0x28'))?_0xb5c92a[_0x4bb2('0xad')](_0x4bb2('0x44'))+0x1:_0xb5c92a[_0x4bb2('0xad')](_0x4bb2('0xcd'))+0x1);}else for(let _0x5a07be=0x0;_0x5a07be<_0x51868d[_0x4bb2('0x5c')];_0x5a07be++)_0x124eea['push'](new _0x462dd8(_0x4bb2('0x28'),{'vid':null===_0x3dfc53?this[_0x4bb2('0xf7')]++:_0x3dfc53++}));if(_0x54506c['is']('documentFragment')){const _0x47bb16=new _0x2825b5(_0x124eea);return _0x47bb16[_0x4bb2('0xd0')]=_0x54506c[_0x4bb2('0xd0')],_0x47bb16;}return _0x3459e1[_0x4bb2('0x76')]('vid_end',null===_0x3dfc53?this[_0x4bb2('0xf7')]++:_0x3dfc53++),_0x3459e1[_0x4bb2('0x9b')](0x0,_0x124eea),_0x3459e1;}[_0x4bb2('0xe7')](_0x5063fd,_0x497213,_0x5d9493){this[_0x4bb2('0x74')]();const {roots:_0x49b162,markers:_0x2d2d6a}=this[_0x4bb2('0x56')]['get'](_0x5063fd);this[_0x4bb2('0x4d')]=new Map(_0x49b162);for(const [_0x508b11,_0x203d84]of this[_0x4bb2('0x4d')])if('$graveyard'!==_0x508b11&&(this[_0x4bb2('0x3a')][_0x4bb2('0x1')](_0x508b11,J(_0x203d84)),_0x5d9493)){const _0x145745=this[_0x4bb2('0xf7')];this[_0x4bb2('0xa2')][_0x4bb2('0x1')](_0x508b11,this[_0x4bb2('0x3f')](_0x203d84)),this[_0x4bb2('0xb4')]['set'](_0x508b11,this[_0x4bb2('0x3f')](_0x203d84,_0x145745));}this[_0x4bb2('0xda')]=this['_revisionId'],this['_diffRoots'][_0x4bb2('0x1')](_0x4bb2('0x59'),J(this[_0x4bb2('0x4d')][_0x4bb2('0x66')]('$graveyard'))),_0x5d9493&&this[_0x4bb2('0xa2')][_0x4bb2('0x1')](_0x4bb2('0x59'),this[_0x4bb2('0x3f')](this[_0x4bb2('0x4d')][_0x4bb2('0x66')](_0x4bb2('0x59'))));for(const [_0x201ef3,_0x4ad8fc]of _0x2d2d6a){const _0x181d6b=this['_baseRoots'][_0x4bb2('0x66')](_0x4ad8fc['rootName']),_0x22f053=this[_0x4bb2('0x3a')]['get'](_0x4ad8fc['rootName']),_0x5bb208=new _0x432887(this[_0x4bb2('0x32')](_0x4ad8fc['start'],_0x181d6b),this[_0x4bb2('0x32')](_0x4ad8fc['end'],_0x181d6b)),_0x33531c=this[_0x4bb2('0xca')](_0x5bb208,_0x22f053);_0x181d6b[_0x4bb2('0xa4')][_0x4bb2('0x1')](_0x201ef3,_0x5bb208),this['_markers'][_0x4bb2('0x1')](_0x201ef3,_0x33531c);}this[_0x4bb2('0x31')](_0x5063fd,_0x497213,_0x5d9493);}['_applyOperations'](_0x49fb52,_0xc49fcd,_0x43f8d5){for(const _0x5040c4 of this[_0x4bb2('0x85')][_0x4bb2('0xde')](_0x49fb52,_0xc49fcd))this[_0x4bb2('0xee')](_0x5040c4,_0x43f8d5);for(const _0xa0f69 of this[_0x4bb2('0x3a')]['values']())_0xa0f69[_0x4bb2('0xa4')]['clear']();for(const [_0x574cea,_0x3a6beb]of this[_0x4bb2('0x51')]){this[_0x4bb2('0x3a')]['get'](_0x3a6beb[_0x4bb2('0xbe')]['rootName'])[_0x4bb2('0xa4')][_0x4bb2('0x1')](_0x574cea,_0x3a6beb[_0x4bb2('0x1c')]());}this['_saveMetaData'](_0xc49fcd,Array[_0x4bb2('0x13')](this[_0x4bb2('0x3a')])['map'](([_0x41eaac,_0x163cbb])=>[_0x41eaac,J(_0x163cbb)]),this['_markers']);}[_0x4bb2('0x0')](_0x19a05d){const _0x58b3ee=Array[_0x4bb2('0x13')](this[_0x4bb2('0x56')][_0x4bb2('0x45')]());_0x58b3ee[_0x4bb2('0xd9')]((_0x3d1576,_0x1eba20)=>_0x3d1576-_0x1eba20),_0x58b3ee[_0x4bb2('0x7f')]();for(const _0x5e9015 of _0x58b3ee)if(_0x5e9015<_0x19a05d)return _0x5e9015;return this['_saveEmptyMetaData'](),Number[_0x4bb2('0x5a')];}['_copyMarkers'](_0x34c52f,_0x24fad8){const _0x5369e0=Array[_0x4bb2('0x13')](_0x24fad8['markers'])[_0x4bb2('0x15')](([_0xcff563,_0x2bd3df])=>[_0xcff563,this[_0x4bb2('0xca')](_0x2bd3df,_0x34c52f)]);_0x34c52f[_0x4bb2('0xa4')]=new Map(_0x5369e0);}['_transformMarkers'](_0x1cbb07){for(const _0x5b32d2 of this[_0x4bb2('0x51')][_0x4bb2('0xe9')]()){const _0x36c369=_0x5b32d2[_0x4bb2('0x7')](_0x1cbb07),_0x2c335c=_0x432887[_0x4bb2('0xdd')](_0x36c369);_0x5b32d2[_0x4bb2('0x35')]=_0x2c335c['start'],_0x5b32d2[_0x4bb2('0xac')]=_0x2c335c['end'];}}[_0x4bb2('0xee')](_0x5435f1,_0x4de016){const _0x40365b=this[_0x4bb2('0x96')](_0x5435f1,this[_0x4bb2('0x3a')]);if(_0x4bb2('0xe5')!==_0x5435f1[_0x4bb2('0x42')]&&(_0x40365b['_execute'](),this[_0x4bb2('0xb6')](_0x40365b)),_0x4de016)switch(_0x40365b[_0x4bb2('0x42')]){case _0x4bb2('0x79'):this[_0x4bb2('0x7e')](_0x5435f1);break;case _0x4bb2('0x6c'):case _0x4bb2('0x20'):case _0x4bb2('0x73'):this['_handleMoveOperation'](_0x5435f1);break;case'merge':this['_handleMergeOperation'](_0x5435f1);break;case _0x4bb2('0x2b'):this[_0x4bb2('0xba')](_0x5435f1);break;case _0x4bb2('0xe5'):this[_0x4bb2('0x6a')](_0x5435f1);}}[_0x4bb2('0x96')](_0x6ae598,_0x41c9c8){const _0x530f43=_0x6ae598[_0x4bb2('0x1c')]();return _0x530f43[_0x4bb2('0x69')]=_0x6ae598[_0x4bb2('0x69')],this['_fixOperation'](_0x530f43,_0x41c9c8),_0x530f43;}[_0x4bb2('0xd3')](_0x4879f7){return _0x4879f7[_0x4bb2('0x15')](_0x400250=>{const _0x5d50d=this[_0x4bb2('0x6d')](_0x400250);return Number(_0x400250[_0x4bb2('0x90')][_0x4bb2('0xad')](_0x5d50d));});}[_0x4bb2('0x23')](_0x3baf23,_0x43e804){if(_0x3baf23['is'](_0x4bb2('0x36'),'$text'))_0x43e804[_0x4bb2('0xe4')]({'item':_0x3baf23,'type':_0x4bb2('0xc4')});else{_0x3baf23['is'](_0x4bb2('0x36'))&&_0x43e804['push']({'item':_0x3baf23,'type':_0x4bb2('0x11')});for(const _0x1373ac of _0x3baf23[_0x4bb2('0x4a')]())this[_0x4bb2('0x23')](_0x1373ac,_0x43e804);_0x3baf23['is'](_0x4bb2('0x36'))&&_0x43e804['push']({'item':_0x3baf23,'type':_0x4bb2('0x4f')});}return _0x43e804;}[_0x4bb2('0x9d')](){const _0x1f38f6=this[_0x4bb2('0x17')][_0x4bb2('0xb2')][_0x4bb2('0xc6')]['getRootNames'](),_0x2c21a5=new Map(this[_0x4bb2('0x88')]),_0x30601b=new Map(_0x2c21a5),_0x38f723=new Map(),_0x564013={'insertions':{},'deletions':{}},_0x1ff7f4={'insertions':{},'deletions':{}},_0x152fa9=new Map();for(const _0x38f636 of _0x1f38f6){const _0x23d78f=this[_0x4bb2('0x3a')][_0x4bb2('0x66')](_0x38f636),_0x38cc2a=this[_0x4bb2('0x4d')][_0x4bb2('0x66')](_0x38f636);_0x564013[_0x4bb2('0xc9')][_0x38f636]=J(_0x23d78f),_0x564013['deletions'][_0x38f636]=J(_0x38cc2a),this[_0x4bb2('0xa6')](_0x564013['deletions'][_0x38f636],_0x38cc2a),this[_0x4bb2('0xa6')](_0x564013[_0x4bb2('0xc9')][_0x38f636],_0x23d78f),_0x1ff7f4[_0x4bb2('0xc9')][_0x38f636]=this[_0x4bb2('0x23')](this[_0x4bb2('0xa2')][_0x4bb2('0x66')](_0x38f636),[]),_0x1ff7f4[_0x4bb2('0xa7')][_0x38f636]=this[_0x4bb2('0x23')](this[_0x4bb2('0xb4')]['get'](_0x38f636),[]);}for(const _0x2373e9 of _0x1f38f6){const _0x222330=_0x1ff7f4[_0x4bb2('0xc9')][_0x2373e9];for(const _0x49bb9d of _0x222330){const _0x13da21=this['_getVidAttributeName'](_0x49bb9d),_0x45647d=_0x49bb9d[_0x4bb2('0x90')][_0x4bb2('0xad')](_0x13da21);_0x30601b[_0x4bb2('0xa5')](_0x45647d),_0x45647d>=this['_startingRevisionId']&&_0x38f723[_0x4bb2('0x1')](_0x45647d,_0x2c21a5[_0x4bb2('0x66')](_0x45647d));}}for(const _0x438d7a of _0x1f38f6){const _0x2edce9=_0x1ff7f4[_0x4bb2('0xc9')][_0x438d7a],_0x20b559=this[_0x4bb2('0xd3')](_0x1ff7f4['deletions'][_0x438d7a]);let _0x4b4381=0x0;for(const _0x47744f of _0x2edce9){const _0x3ecdfc=this[_0x4bb2('0x6d')](_0x47744f),_0x21eb11=_0x47744f[_0x4bb2('0x90')][_0x4bb2('0xad')](_0x3ecdfc);if(!_0x38f723['has'](_0x21eb11)&&!_0x152fa9[_0x4bb2('0xa1')](_0x21eb11)){if(_0x30601b[_0x4bb2('0xa1')](_0x21eb11))_0x4b4381++;else{if(_0x21eb11!=_0x20b559[_0x4b4381]){const _0x16d084=_0x2c21a5[_0x4bb2('0x66')](_0x21eb11)||_0x2c21a5[_0x4bb2('0x66')](_0x20b559[_0x4b4381]);for(;_0x21eb11!=_0x20b559[_0x4b4381];)_0x30601b[_0x4bb2('0xa1')](_0x20b559[_0x4b4381])||(_0x152fa9[_0x4bb2('0x1')](_0x20b559[_0x4b4381],_0x16d084),_0x2c21a5[_0x4bb2('0x1')](_0x20b559[_0x4b4381],_0x16d084)),_0x4b4381++;}_0x4b4381++;}}}}for(const _0x556475 of _0x1f38f6){const _0x3b3e73=_0x1ff7f4[_0x4bb2('0xc9')][_0x556475];for(const _0xc944af of _0x3b3e73){const _0x37eb65=this[_0x4bb2('0x6d')](_0xc944af),_0x582008=_0xc944af[_0x4bb2('0x90')][_0x4bb2('0xad')](_0x37eb65);if(_0x152fa9[_0x4bb2('0xa1')](_0x582008)){const _0x26df4f=_0x152fa9[_0x4bb2('0x66')](_0x582008);_0x30601b[_0x4bb2('0xa1')](_0x582008)||_0x30601b[_0x4bb2('0x1')](_0x582008,{..._0x26df4f}),_0x38f723[_0x4bb2('0x1')](_0x582008,{..._0x26df4f});}}}for(const _0x226ed9 of _0x30601b[_0x4bb2('0x45')]())_0x226ed9>=this[_0x4bb2('0xda')]&&_0x30601b['delete'](_0x226ed9);const _0x596d80=new Map();for(const _0x34b9fb of _0x1f38f6){let _0x2d0018=_0x1ff7f4['insertions'][_0x34b9fb];for(const _0x17d128 of _0x2d0018)if(_0x17d128[_0x4bb2('0x90')]['is'](_0x4bb2('0x36'),_0x4bb2('0xd'))){const _0x2ab099=this[_0x4bb2('0x6d')](_0x17d128),_0x3351f4=_0x17d128[_0x4bb2('0x90')][_0x4bb2('0xad')](_0x2ab099);if(_0x38f723['has'](_0x3351f4)){const _0x1a1e1e=_0x17d128[_0x4bb2('0x90')][_0x4bb2('0x8d')][_0x4bb2('0x8d')][_0x4bb2('0xad')](_0x4bb2('0x5d')),_0x532b36=_0x596d80[_0x4bb2('0x66')](_0x1a1e1e)||new Set();_0x532b36[_0x4bb2('0x26')](_0x38f723[_0x4bb2('0x66')](_0x3351f4)[_0x4bb2('0x62')]),_0x596d80[_0x4bb2('0x1')](_0x1a1e1e,_0x532b36);}}_0x2d0018=_0x1ff7f4[_0x4bb2('0xa7')][_0x34b9fb];for(const _0x2efefe of _0x2d0018)if(_0x2efefe['item']['is'](_0x4bb2('0x36'),_0x4bb2('0xd'))){const _0x708344=this['_getVidAttributeName'](_0x2efefe),_0x1643c2=_0x2efefe[_0x4bb2('0x90')][_0x4bb2('0xad')](_0x708344);if(_0x30601b[_0x4bb2('0xa1')](_0x1643c2)){const _0x4881e8=_0x2efefe[_0x4bb2('0x90')][_0x4bb2('0x8d')]['parent'][_0x4bb2('0xad')](_0x4bb2('0x5d')),_0x40b249=_0x596d80[_0x4bb2('0x66')](_0x4881e8)||new Set();_0x40b249[_0x4bb2('0x26')](_0x30601b[_0x4bb2('0x66')](_0x1643c2)[_0x4bb2('0x62')]),_0x596d80[_0x4bb2('0x1')](_0x4881e8,_0x40b249);}}for(const _0x20f8e5 of _0x596d80['keys']())(_0x38f723[_0x4bb2('0xa1')](_0x20f8e5)||_0x30601b[_0x4bb2('0xa1')](_0x20f8e5))&&_0x596d80[_0x4bb2('0xa5')](_0x20f8e5);}for(const _0x10004a of _0x1f38f6){const _0x3030f9=_0x1ff7f4[_0x4bb2('0xc9')][_0x10004a];let _0x5302a2=null,_0x191c7b=null;for(const _0x3c05fa of _0x3030f9){const _0x361c0f=this['_getVidAttributeName'](_0x3c05fa),_0x430f5f=_0x3c05fa['item'][_0x4bb2('0xad')](_0x361c0f),_0x1d0a04=_0x596d80[_0x4bb2('0x66')](_0x430f5f);_0x1d0a04&&_0x4bb2('0x11')==_0x3c05fa[_0x4bb2('0x42')]&&(_0x5302a2=Array[_0x4bb2('0x13')](_0x1d0a04)[0x0],_0x191c7b=_0x3c05fa['item'][_0x4bb2('0xad')](_0x4bb2('0xcd'))),_0x5302a2&&(_0x30601b[_0x4bb2('0x1')](_0x430f5f,{'userId':_0x5302a2}),_0x38f723['set'](_0x430f5f,{'userId':_0x5302a2})),_0x430f5f==_0x191c7b&&(_0x5302a2=null,_0x191c7b=null);}}const _0x5cab4c={},_0xa63b5d=new Set();for(const _0x1ce113 of _0x1f38f6){const _0x42cec4=_0x564013[_0x4bb2('0xa7')][_0x1ce113],_0x36313e=_0x564013['insertions'][_0x1ce113];for(const {userId:_0x3bf7bb}of this['_touchedMarkers']['values']())null!==_0x3bf7bb&&_0xa63b5d['add'](_0x3bf7bb);this[_0x4bb2('0x3d')](_0x36313e,_0x1ff7f4[_0x4bb2('0xc9')][_0x1ce113],_0x38f723,_0x4bb2('0x94'),_0xa63b5d),this['_markChanges'](_0x42cec4,_0x1ff7f4[_0x4bb2('0xa7')][_0x1ce113],_0x30601b,'deletion',_0xa63b5d),_0x5cab4c[_0x1ce113]={'insertions':this[_0x4bb2('0x37')](_0x36313e),'deletions':this[_0x4bb2('0x37')](_0x42cec4)};}return{'diffData':_0x5cab4c,'authorsIds':Array['from'](_0xa63b5d)};}[_0x4bb2('0xc5')](_0xddb4a2){for(const [,_0x39dcab]of _0xddb4a2[_0x4bb2('0xa4')]){const _0x36bf08=_0x39dcab[_0x4bb2('0x35')][_0x4bb2('0xd5')]()[_0x4bb2('0x87')](_0x530978=>_0x4bb2('0xd')==_0x530978[_0x4bb2('0x7c')]);for(const _0x5840ea of _0x36bf08)0x1==_0x5840ea['childCount']&&_0x5840ea[_0x4bb2('0xaa')](0x0)['is'](_0x4bb2('0x36'),'paragraph')&&_0x5840ea['getChild'](0x0)[_0x4bb2('0x76')](_0x4bb2('0x9'),!0x0);}}[_0x4bb2('0x37')](_0x38b40){this[_0x4bb2('0xc5')](_0x38b40);const _0x299fb6=this[_0x4bb2('0x17')][_0x4bb2('0x55')][_0x4bb2('0x92')](_0x38b40,{}),_0x2ad18a=Array[_0x4bb2('0x13')](_0x299fb6[_0x4bb2('0x4a')]())['map'](_0x5d1929=>this[_0x4bb2('0xf5')](_0x5d1929));return JSON[_0x4bb2('0x2f')](_0x2ad18a);}[_0x4bb2('0xf5')](_0x43ab91){if(_0x43ab91['is'](_0x4bb2('0xc4')))return _0x43ab91[_0x4bb2('0x55')];return{'type':Object[_0x4bb2('0x45')](V)[_0x4bb2('0xe6')](_0x367991=>_0x43ab91 instanceof V[_0x367991]),'name':_0x43ab91[_0x4bb2('0x7c')],'attributes':Array[_0x4bb2('0x13')](_0x43ab91[_0x4bb2('0xfb')]()),'children':Array[_0x4bb2('0x13')](_0x43ab91[_0x4bb2('0x4a')]())[_0x4bb2('0x15')](_0xc75b46=>this[_0x4bb2('0xf5')](_0xc75b46))};}[_0x4bb2('0x3d')](_0x198217,_0x4eb113,_0x1251d6,_0x3078c0,_0xf271eb){let _0x461d2c=null,_0x44685e=null,_0x153f98=0x0;const _0x503427=this[_0x4bb2('0x17')][_0x4bb2('0xb2')];for(let _0x22534a=0x0;_0x22534a<_0x4eb113[_0x4bb2('0x9f')];_0x22534a++){const _0x4875f1=this[_0x4bb2('0x6d')](_0x4eb113[_0x22534a]),_0xe297b1=_0x4eb113[_0x22534a][_0x4bb2('0x90')][_0x4bb2('0xad')](_0x4875f1),_0x5b6e03=_0x1251d6[_0x4bb2('0x66')](_0xe297b1),_0x331db=_0x22534a==_0x4eb113[_0x4bb2('0x9f')]-0x1;(!_0x461d2c&&_0x5b6e03&&(_0x461d2c=_0x5b6e03,_0x44685e=_0x4eb113[_0x22534a]),_0x461d2c&&(!_0x5b6e03||_0x5b6e03[_0x4bb2('0x62')]!=_0x461d2c['userId']))&&(_0x3fcb96(_0x5b6e03,j(_0x44685e,_0x198217,_0x503427),j(_0x4eb113[_0x22534a],_0x198217,_0x503427)),_0x461d2c=_0x5b6e03||null,_0x44685e=_0x5b6e03?_0x4eb113[_0x22534a]:null),_0x461d2c&&_0x331db&&_0x3fcb96(_0x5b6e03,j(_0x44685e,_0x198217,_0x503427),B(_0x4eb113[_0x22534a],_0x198217,_0x503427));}function _0x3fcb96(_0x15770d,_0x42ff43,_0x3ac300){const _0x47c506=_0x461d2c[_0x4bb2('0x62')],_0x456852=_0x4bb2('0x75')+_0x3078c0+':'+_0x47c506+':'+_0x153f98++,_0x2feabc=_0x503427[_0x4bb2('0xb0')](_0x42ff43,_0x3ac300);_0x198217[_0x4bb2('0xa4')][_0x4bb2('0x1')](_0x456852,_0x2feabc),null!==_0x47c506&&_0xf271eb[_0x4bb2('0x26')](_0x47c506);}}[_0x4bb2('0x6d')](_0x55168f){switch(_0x55168f[_0x4bb2('0x42')]){case _0x4bb2('0x11'):return _0x4bb2('0x5d');case _0x4bb2('0x4f'):return _0x4bb2('0xcd');default:return _0x4bb2('0x44');}}[_0x4bb2('0x8')](_0x3b16c2,_0x4a56ba){_0x3b16c2[_0x4bb2('0x43')]=null;for(const _0x11c27f in _0x3b16c2){if(_0x3b16c2[_0x11c27f]instanceof _0x275e0c){const _0x1151af=_0x4a56ba[_0x4bb2('0x66')](_0x3b16c2[_0x11c27f][_0x4bb2('0xbe')][_0x4bb2('0xd0')]);_0x3b16c2[_0x11c27f]=this[_0x4bb2('0x32')](_0x3b16c2[_0x11c27f],_0x1151af);}if(_0x3b16c2[_0x11c27f]instanceof _0x432887){const _0x4d8def=_0x4a56ba['get'](_0x3b16c2[_0x11c27f][_0x4bb2('0xbe')][_0x4bb2('0xd0')]);_0x3b16c2[_0x11c27f]=this[_0x4bb2('0xca')](_0x3b16c2[_0x11c27f],_0x4d8def);}}_0x3b16c2['root']&&(_0x3b16c2[_0x4bb2('0xbe')]=_0x4a56ba[_0x4bb2('0x66')](_0x3b16c2['root'][_0x4bb2('0xd0')]));}['_fixRange'](_0x2f4a07,_0x907e18){return this[_0x4bb2('0x17')]['model']['createRange'](this[_0x4bb2('0x32')](_0x2f4a07['start'],_0x907e18),this[_0x4bb2('0x32')](_0x2f4a07[_0x4bb2('0xac')],_0x907e18));}[_0x4bb2('0x32')](_0x80e2ce,_0x5422bc){return this[_0x4bb2('0x17')][_0x4bb2('0xb2')][_0x4bb2('0xcf')](_0x5422bc,_0x80e2ce[_0x4bb2('0xb8')],_0x80e2ce[_0x4bb2('0x98')]);}[_0x4bb2('0x7e')](_0x341b93){const _0x10481=this['_idsRoots'][_0x4bb2('0x66')](_0x341b93[_0x4bb2('0xc7')][_0x4bb2('0xbe')][_0x4bb2('0xd0')]),_0x14adf6=this[_0x4bb2('0x32')](_0x341b93[_0x4bb2('0xc7')],_0x10481),_0x1de307=null===_0x341b93[_0x4bb2('0x69')]?null:_0x341b93[_0x4bb2('0x69')]||this[_0x4bb2('0x17')]['plugins'][_0x4bb2('0x66')]('Users')['me']['id'],_0x351e1e=_0x14adf6[_0x4bb2('0x8d')],_0x17b709=this[_0x4bb2('0xf7')],_0x5ee038=[];for(const _0x4054da of _0x341b93[_0x4bb2('0x61')])if(_0x4054da['is'](_0x4bb2('0x36')))_0x5ee038[_0x4bb2('0xe4')](this[_0x4bb2('0x3f')](_0x4054da));else for(let _0x9530ac=0x0;_0x9530ac<_0x4054da[_0x4bb2('0x5c')];_0x9530ac++)_0x5ee038[_0x4bb2('0xe4')](new _0x462dd8('$text',{'vid':this[_0x4bb2('0xf7')]++}));const _0x285020=this['_revisionId'];for(let _0x41a334=_0x17b709;_0x41a334<_0x285020;_0x41a334++)this[_0x4bb2('0x88')][_0x4bb2('0x1')](_0x41a334,{'userId':_0x1de307});_0x351e1e['_insertChild'](_0x14adf6['offset'],_0x5ee038);}[_0x4bb2('0xc2')](_0x395c4e){(_0x395c4e=this[_0x4bb2('0x96')](_0x395c4e,this[_0x4bb2('0xa2')]))[_0x4bb2('0xbb')]();const _0x47b498=null===_0x395c4e['_authorId']?null:_0x395c4e[_0x4bb2('0x69')]||this[_0x4bb2('0x17')][_0x4bb2('0x4b')][_0x4bb2('0x66')](_0x4bb2('0x27'))['me']['id'],_0x3405ac=_0x395c4e[_0x4bb2('0x19')](),_0x4fab36=_0x3405ac[_0x4bb2('0x8d')],_0x360706=_0x3405ac[_0x4bb2('0xb3')];!function _0x18664e(_0x35a6d3,_0x1dcb70,_0x5b698f,_0x22f031){for(let _0x37bb4f=_0x5b698f;_0x37bb4f<_0x22f031;_0x37bb4f++){const _0x47be52=_0x1dcb70[_0x4bb2('0xaa')](_0x37bb4f);_0x47be52['is'](_0x4bb2('0x36'),_0x4bb2('0x28'))?_0x35a6d3[_0x4bb2('0x1')](_0x47be52[_0x4bb2('0xad')](_0x4bb2('0x44')),{'userId':_0x47b498}):(_0x35a6d3['set'](_0x47be52[_0x4bb2('0xad')](_0x4bb2('0x5d')),{'userId':_0x47b498}),_0x18664e(_0x35a6d3,_0x47be52,0x0,_0x47be52[_0x4bb2('0xb')]),_0x35a6d3[_0x4bb2('0x1')](_0x47be52[_0x4bb2('0xad')](_0x4bb2('0xcd')),{'userId':_0x47b498}));}}(this[_0x4bb2('0x88')],_0x4fab36,_0x360706,_0x360706+_0x395c4e['howMany']);}[_0x4bb2('0x68')](_0x30e2d4){const _0x29f19b=null===(_0x30e2d4=this[_0x4bb2('0x96')](_0x30e2d4,this[_0x4bb2('0xa2')]))[_0x4bb2('0x69')]?null:_0x30e2d4['_authorId']||this[_0x4bb2('0x17')][_0x4bb2('0x4b')][_0x4bb2('0x66')](_0x4bb2('0x27'))['me']['id'],_0x1f8d14=_0x30e2d4[_0x4bb2('0x95')][_0x4bb2('0x8d')],_0x2c8f0a=_0x30e2d4['sourcePosition'][_0x4bb2('0x8d')],_0x17d081=_0x1f8d14[_0x4bb2('0xad')](_0x4bb2('0xcd')),_0xcf6284=_0x2c8f0a[_0x4bb2('0xad')](_0x4bb2('0x5d'));_0x1f8d14[_0x4bb2('0x76')](_0x4bb2('0xcd'),_0x2c8f0a[_0x4bb2('0xad')](_0x4bb2('0xcd'))),_0x2c8f0a[_0x4bb2('0x76')]('vid_end',_0x17d081),this['_touched']['set'](_0xcf6284,{'userId':_0x29f19b}),this[_0x4bb2('0x88')][_0x4bb2('0x1')](_0x17d081,{'userId':_0x29f19b}),_0x30e2d4[_0x4bb2('0xbb')]();}['_handleSplitOperation'](_0x1fc507){const _0x12512c=null===(_0x1fc507=this['_cloneOperation'](_0x1fc507,this[_0x4bb2('0xa2')]))[_0x4bb2('0x69')]?null:_0x1fc507[_0x4bb2('0x69')]||this['editor']['plugins'][_0x4bb2('0x66')](_0x4bb2('0x27'))['me']['id'],_0x1d2836=_0x1fc507[_0x4bb2('0x3c')],_0x33a776=_0x1fc507[_0x4bb2('0xdb')]['parent'];_0x1fc507[_0x4bb2('0xbb')]();const _0x3c86e6=_0x33a776[_0x4bb2('0xad')](_0x4bb2('0xcd')),_0x15101b=_0x1fc507[_0x4bb2('0x9c')][_0x4bb2('0x10')];if(_0x1d2836){const _0x2168c3=_0x15101b[_0x4bb2('0xad')](_0x4bb2('0xcd')),_0x32bc74=_0x33a776[_0x4bb2('0xad')](_0x4bb2('0xcd'));_0x33a776[_0x4bb2('0x76')](_0x4bb2('0xcd'),_0x2168c3),_0x15101b['_setAttribute']('vid_end',_0x32bc74),this[_0x4bb2('0x88')][_0x4bb2('0x1')](_0x33a776[_0x4bb2('0xad')](_0x4bb2('0xcd')),{'userId':_0x12512c}),this[_0x4bb2('0x88')][_0x4bb2('0x1')](_0x15101b[_0x4bb2('0xad')](_0x4bb2('0x5d')),{'userId':_0x12512c});}else{const _0x7616a7=this['_revisionId']++,_0x4ed498=this[_0x4bb2('0xf7')]++;_0x33a776[_0x4bb2('0x76')](_0x4bb2('0xcd'),_0x7616a7),_0x15101b[_0x4bb2('0x76')](_0x4bb2('0x5d'),_0x4ed498),_0x15101b[_0x4bb2('0x76')](_0x4bb2('0xcd'),_0x3c86e6),this[_0x4bb2('0x88')][_0x4bb2('0x1')](_0x7616a7,{'userId':_0x12512c}),this['_touched'][_0x4bb2('0x1')](_0x4ed498,{'userId':_0x12512c});}}[_0x4bb2('0x6a')](_0x15b56b){if(!_0x15b56b[_0x4bb2('0x2a')])return;const _0x367fa6=(_0x15b56b=this[_0x4bb2('0x96')](_0x15b56b,this[_0x4bb2('0x3a')]))[_0x4bb2('0xf')]?_0x15b56b[_0x4bb2('0xf')][_0x4bb2('0xbe')]:null,_0x16f06a=_0x15b56b[_0x4bb2('0x4')]?_0x15b56b['newRange'][_0x4bb2('0xbe')]:null;_0x367fa6&&this[_0x4bb2('0x51')][_0x4bb2('0xa5')](_0x15b56b[_0x4bb2('0x7c')]),_0x16f06a&&this[_0x4bb2('0x51')]['set'](_0x15b56b[_0x4bb2('0x7c')],_0x15b56b[_0x4bb2('0x4')][_0x4bb2('0x1c')]());const _0x7a57b9=null===_0x15b56b['_authorId']?null:_0x15b56b[_0x4bb2('0x69')]||this[_0x4bb2('0x17')]['plugins']['get'](_0x4bb2('0x27'))['me']['id'],_0x23b18b=_0x15b56b[_0x4bb2('0x7c')];if(!this[_0x4bb2('0x80')][_0x4bb2('0xa1')](_0x23b18b))return void this['_touchedMarkers'][_0x4bb2('0x1')](_0x23b18b,{'range':_0x15b56b[_0x4bb2('0xf')],'userId':_0x7a57b9});const _0x419a21=this[_0x4bb2('0x80')][_0x4bb2('0x66')](_0x23b18b),_0x3ddcb2=_0x419a21[_0x4bb2('0x8f')],_0x57d394=_0x15b56b['newRange'];null==_0x3ddcb2&&null==_0x57d394||_0x3ddcb2&&_0x57d394&&_0x3ddcb2[_0x4bb2('0xd6')](_0x57d394)?this['_touchedMarkers'][_0x4bb2('0xa5')](_0x15b56b['name']):_0x419a21['userId']=_0x7a57b9;}}function J(_0x38a1b8){const _0x39d089=new _0x2825b5();_0x39d089[_0x4bb2('0xd0')]=_0x38a1b8[_0x4bb2('0xd0')];for(const _0x208596 of _0x38a1b8[_0x4bb2('0x4a')]()){const _0x3b91eb=_0x208596[_0x4bb2('0xce')](!0x0);_0x39d089[_0x4bb2('0x91')](_0x3b91eb);}return _0x39d089;}function j(_0x18cc2f,_0x451db7,_0x4cb9c8){const _0x9617f9=_0x4bb2('0x4f')==_0x18cc2f['type']?_0x4cb9c8[_0x4bb2('0x81')](_0x18cc2f[_0x4bb2('0x90')],_0x4bb2('0xac')):_0x4cb9c8['createPositionBefore'](_0x18cc2f[_0x4bb2('0x90')]);return _0x9617f9['root']=_0x451db7,_0x9617f9;}function B(_0xa0879,_0x38f234,_0x21c880){const _0x2713ef='elementStart'==_0xa0879['type']?_0x21c880[_0x4bb2('0x81')](_0xa0879[_0x4bb2('0x90')],0x0):_0x21c880[_0x4bb2('0x60')](_0xa0879[_0x4bb2('0x90')]);return _0x2713ef[_0x4bb2('0xbe')]=_0x38f234,_0x2713ef;}
23
+ const _0x45a4=['text','root','_diffRoots','_reset','previousPosition','documentFragment','offset','_removeMetaData','baseVersion','_setAttribute','_handleSplitOperation','_savedMetaData','insertionPosition','_baseIdsRoots','_getState','history','_handleOperation','_execute','insert','getUser','requires','hasContent','for','bind','processor','_lastTo','getRevision','isReady','_removePendingAction','filter','markerToData','vid_end','end','_baseRoots','_continueCurrentRevision','marked','reInit','define','deletions','vid','item','ready','type','getNodeByPath','delete','_loadRevisionData','dataDowncast','insertion','getWalker','$graveyard','slice','createPositionAt','getRevisionDocumentData','stickiness','remove','update','childCount','elementEnd','source','pluginName','has','getRootNames','clear','path','view','createPositionBefore','getRevisions','length','fromVersion','_fixRange','_addPendingAction','config','stringify','_getFromVersion','_source','_touchedMarkers','name','toView','dataToMarker','version','set','nodeAfter','keepParagraph','_authorId','startsWith','Empty\x20document','_prepareViewToSave','_handleMoveOperation','_handleMarkerOperation','move','_loadedStateData','toModel','get','_createInitialRevision','getAttribute','nodes','collaboration.channelId','PENDING_ACTION_REVISION_HISTORY','creator','plugins','split','addRevision','size','_getViewJson','editor','merge','_saveMetaData','afterInit','_initialRevisionId','getOperation','getAttributes','_getVidAttributeName','from','getCurrentRevisionId','getRoot','paragraph','_bufferedUpdates','toVersion','locale','tableCell','_idsRoots','diffData','_isPendingUpdate','getLatestVersion','_cloneOperation','_createCurrentRevision','oldRange','Users','_startingVersion','elementStart','_setConversion','affectsData','RevisionsRepository','upcast','_replaceEditorDataWithRevisionData','createRange','data','getData','_getBaseVids','sendBufferedUpdates','getTime','targetPosition','setRevisionData','_appendChild','editing','attributes','insertions','clone','_startingRevisionId','offsetSize','initial','getRange','createRangeIn','RealTimeCollaborationClient','then','start','_touched','vid_start','_removeRevisionMarkers','_copyMarkers','_calculateMetaData','buildRevisionData','parent','_transformMarkers','_findInsertionIndex','getChildren','_fixOperation','revision','document','getAncestors','keys','init','useFillerType','position','RevisionTracker','_fixPosition','_applyOperations','_loadState','$text','push','_handleInsertOperation','_processRootBeforeSave','getOperations','_revisionDataBuilder','markers','createPositionAfter','_rootNames','_markers','authorsIds','_insertChild','userId','authors','find','_markChanges','string','addRevisionData','_operations','reverse','initialData','createPositionFromPath','_makeModelFromViewString','sort','_lastFrom','_handleMergeOperation','_isInit','revision:','map','adapter','element','add','_generateTape','trim','loadState','getTransformedByOperation','max','_update','graveyardPosition','newRange','_bufferUpdate','children','marker','rootName','revision-end','values','PendingActions','repository','_makeIdsRoot','getChild','reinsert','currentRevision','creatorId','setSource','_pendingAction','_makeRevision','_revisionId','conversion','model','createdAt','_createFromRanges'];(function(_0xf90af3,_0x45a497){const _0xe08c20=function(_0x26780d){while(--_0x26780d){_0xf90af3['push'](_0xf90af3['shift']());}};_0xe08c20(++_0x45a497);}(_0x45a4,0xa5));const _0xe08c=function(_0xf90af3,_0x45a497){_0xf90af3=_0xf90af3-0x0;let _0xe08c20=_0x45a4[_0xf90af3];return _0xe08c20;};import{Users as _0x4623a4}from'ckeditor5-collaboration/src/collaboration-core';import{Plugin as _0x2fd8db,PendingActions as _0x2532ec}from'ckeditor5/src/core';import{logWarning as _0x6ec304,uid as _0x37c5ee}from'ckeditor5/src/utils';import{Position as _0x3a19a0,Range as _0x18b630,Element as _0x45e8ea,DocumentFragment as _0x588493,ViewText as _0x9a4db5,ViewElement as _0xc72f6f,ViewContainerElement as _0x43cfc1,ViewAttributeElement as _0x2c176b,ViewEmptyElement as _0x46fdea,ViewRawElement as _0x4ffca5,ViewUIElement as _0x328a24,ViewDocumentFragment as _0x409a7f}from'ckeditor5/src/engine';import _0x114a5e from'./revisionsrepository';import{getTranslation as _0x2bf8a0}from'./utils/common-translations';const V={'c':_0x43cfc1,'a':_0x2c176b,'e':_0x46fdea,'r':_0x4ffca5,'u':_0x328a24};export default class l extends _0x2fd8db{static get[_0xe08c('0x85')](){return _0xe08c('0x9');}static get[_0xe08c('0x5e')](){return[_0x4623a4,_0x114a5e,_0x2532ec];}constructor(_0x40dfa7){super(_0x40dfa7),this[_0xe08c('0x2a')]=null,this[_0xe08c('0x40')]=null,this[_0xe08c('0x12')]=new T(this['editor']),this[_0xe08c('0xb6')]=this[_0xe08c('0xb2')][_0xe08c('0x91')]['get'](_0xe08c('0xaa'))||_0xe08c('0xe0'),this[_0xe08c('0xbe')]=new Map(),this['_loadedStateData']=null;const _0x4840eb=_0x37c5ee();this[_0xe08c('0x94')]={'history':this[_0xe08c('0xb2')][_0xe08c('0x47')]['document'][_0xe08c('0x59')],'getLatestVersion':()=>Promise['resolve'](this[_0xe08c('0xb2')][_0xe08c('0x47')][_0xe08c('0x3')][_0xe08c('0x99')]),'getCurrentRevisionId':()=>_0x4840eb},this[_0xe08c('0x9a')]('isReady',!0x1),this['set']('isEnabled',!0x0),this[_0xe08c('0x9a')]('_isPendingUpdate',!0x1),this[_0xe08c('0xb2')]['config'][_0xe08c('0x6f')]('revisionHistory.resumeUnsavedRevision',!0x0),this[_0xe08c('0xb2')][_0xe08c('0x46')][_0xe08c('0x60')](_0xe08c('0xcf'))[_0xe08c('0x98')]({'view':'revision'});}[_0xe08c('0x6')](){this['repository']=this[_0xe08c('0xb2')][_0xe08c('0xad')][_0xe08c('0xa6')](_0xe08c('0xce')),this[_0xe08c('0xcc')](),this['editor']['data']['on'](_0xe08c('0x73'),()=>{const _0x4857fd=this[_0xe08c('0x3c')][_0xe08c('0x64')](0x0),_0x85f8d1=_0x4857fd&&null===_0x4857fd[_0xe08c('0xac')]?_0x4857fd:null;if(this[_0xe08c('0x6c')]=!!_0x85f8d1&&this[_0xe08c('0xb2')]['config'][_0xe08c('0xa6')]('revisionHistory.resumeUnsavedRevision'),this['editor'][_0xe08c('0xad')]['has'](_0xe08c('0xe3'))){const _0x1a9145=this['_source'][_0xe08c('0xbb')](),_0x1f6452=this[_0xe08c('0x3c')][_0xe08c('0x64')](_0x1a9145);if(_0x1f6452)this['_startingVersion']=_0x1f6452[_0xe08c('0x8e')],this[_0xe08c('0x6c')]=!0x1;else{const _0x1c91a7=this[_0xe08c('0x94')][_0xe08c('0x59')][_0xe08c('0x1f')][_0xe08c('0x1b')](_0x1c55b6=>!_0x1c55b6[_0xe08c('0x27')]),_0x12125c=_0x1c91a7?_0x1c91a7[_0xe08c('0x52')]:this[_0xe08c('0x94')][_0xe08c('0x59')][_0xe08c('0x99')];_0x4857fd?(_0x4857fd['toVersion']<_0x12125c&&_0x4857fd['_update']({'toVersion':_0x12125c}),this[_0xe08c('0x6c')]?(this[_0xe08c('0x94')][_0xe08c('0xbb')]=()=>_0x85f8d1['id'],this[_0xe08c('0xca')]=_0x85f8d1[_0xe08c('0x8e')]):(this[_0xe08c('0xca')]=_0x4857fd['toVersion'],this[_0xe08c('0x6c')]=!0x1)):(this[_0xe08c('0xca')]=_0x12125c,this[_0xe08c('0x6c')]=!0x1);}}else _0x85f8d1&&(this['editor'][_0xe08c('0x47')][_0xe08c('0x3')][_0xe08c('0x59')][_0xe08c('0x99')]=Math[_0xe08c('0x31')](_0x85f8d1[_0xe08c('0xbf')],this['editor'][_0xe08c('0x47')][_0xe08c('0x3')][_0xe08c('0x59')]['version']),_0x85f8d1[_0xe08c('0x8e')]===_0x85f8d1[_0xe08c('0xbf')]?(0x0!==_0x85f8d1[_0xe08c('0x8e')]&&(this[_0xe08c('0x94')]['getCurrentRevisionId']=()=>_0x85f8d1['id']),this[_0xe08c('0x6c')]=!0x1):this[_0xe08c('0x6c')]&&(this['_source'][_0xe08c('0xbb')]=()=>_0x85f8d1['id'],this[_0xe08c('0xca')]=_0x85f8d1[_0xe08c('0x8e')])),this['_continueCurrentRevision']||(this[_0xe08c('0xca')]=this[_0xe08c('0xb2')][_0xe08c('0x47')][_0xe08c('0x3')][_0xe08c('0x99')]);this[_0xe08c('0x12')][_0xe08c('0x6')](this[_0xe08c('0x94')][_0xe08c('0x59')]),this[_0xe08c('0xa7')](this[_0xe08c('0xca')]),this[_0xe08c('0xc7')](this[_0xe08c('0xca')]),this[_0xe08c('0x2a')]&&this['sendBufferedUpdates']();}),this[_0xe08c('0x61')](_0xe08c('0x65'))['to'](this,_0xe08c('0xc4'),_0x4eaebe=>!_0x4eaebe);}async[_0xe08c('0xb5')](){if(this[_0xe08c('0x3c')][_0xe08c('0x8d')]>0x0){const _0x92bdbf=this[_0xe08c('0x3c')][_0xe08c('0x64')](0x0),_0x2e2164=await this[_0xe08c('0x7e')](_0x92bdbf);this[_0xe08c('0xd0')](_0x2e2164);}}[_0xe08c('0x42')](_0x3e6ae4){this['_source']=_0x3e6ae4;}async[_0xe08c('0x81')](){const _0xa9ab01=await this[_0xe08c('0x94')]['getLatestVersion']();if(_0xa9ab01>this[_0xe08c('0x40')][_0xe08c('0xbf')]){await this[_0xe08c('0xc')]();const _0x464929=this[_0xe08c('0xeb')]({'revision':this[_0xe08c('0x40')],'to':_0xa9ab01});_0x464929['authors']=_0x464929['authorsIds'][_0xe08c('0x29')](_0x5b9161=>this[_0xe08c('0xb2')]['plugins'][_0xe08c('0xa6')](_0xe08c('0xc9'))[_0xe08c('0x5d')](_0x5b9161)),this['currentRevision']['_update'](_0x464929);}}async[_0xe08c('0xc')](){this['_continueCurrentRevision']&&!this[_0xe08c('0xa4')]&&(await this[_0xe08c('0x77')](this[_0xe08c('0x40')]),this[_0xe08c('0x12')]['loadState'](this['currentRevision']),this[_0xe08c('0xa4')]={'fromVersion':this[_0xe08c('0x40')][_0xe08c('0x8e')],'authors':this[_0xe08c('0x40')]['authors']['slice']()});}async['saveRevision'](_0x26414b={},_0x44cdfd=null){const _0x3d1598=[];await this[_0xe08c('0xc')](),this[_0xe08c('0x6c')]=!0x1,_0x44cdfd>this[_0xe08c('0x40')][_0xe08c('0xbf')]&&(_0x44cdfd=null),null===_0x44cdfd&&(_0x44cdfd=await this[_0xe08c('0x94')][_0xe08c('0xc5')]());const _0xc622e3=this['_getFromVersion'](_0x44cdfd),_0x2b0680=this['buildRevisionData']({'from':_0xc622e3,'to':_0x44cdfd});if(this[_0xe08c('0x40')][_0xe08c('0xbf')]<_0x44cdfd){const _0x144b6a=this[_0xe08c('0xeb')]({'revision':this['currentRevision'],'from':_0x44cdfd,'to':_0x44cdfd});_0x144b6a['authors']=[],_0x144b6a[_0xe08c('0x17')]=[],_0x144b6a['id']=this[_0xe08c('0x40')]['id'],this[_0xe08c('0x40')][_0xe08c('0x32')](_0x144b6a,!0x0),delete _0x144b6a[_0xe08c('0x1a')],_0x3d1598[_0xe08c('0xe')](_0x144b6a);}_0x26414b['creatorId']=this[_0xe08c('0xb2')][_0xe08c('0xad')]['get']('Users')['me']['id'],_0x26414b[_0xe08c('0x96')]=_0x26414b[_0xe08c('0x96')]||null,_0x26414b['id']=_0x26414b['id']||_0x37c5ee(),_0x26414b={..._0x26414b,..._0x2b0680};const _0x4d76cc=this[_0xe08c('0x1e')](_0x26414b);_0x3d1598[_0xe08c('0xe')](_0x26414b);const _0x2c2286=this['repository']['getIndex'](_0x4d76cc);if(0x0!==_0x2c2286){const _0x12aa58=this[_0xe08c('0x3c')][_0xe08c('0x64')](_0x2c2286-0x1);if(_0x12aa58[_0xe08c('0x8e')]!==_0x44cdfd){const _0x3cc61b=this[_0xe08c('0x12')][_0xe08c('0xd3')](_0x44cdfd,_0x12aa58[_0xe08c('0xbf')]),_0x2e92c5={'id':_0x12aa58['id'],'diffData':_0x3cc61b['diffData'],'authorsIds':_0x3cc61b[_0xe08c('0x17')],'authors':_0x3cc61b[_0xe08c('0x17')][_0xe08c('0x29')](_0x5d02eb=>this['editor'][_0xe08c('0xad')][_0xe08c('0xa6')](_0xe08c('0xc9'))[_0xe08c('0x5d')](_0x5d02eb)),'fromVersion':_0x44cdfd};_0x12aa58===this[_0xe08c('0x40')]&&(_0x2e92c5[_0xe08c('0x48')]=new Date(_0x26414b['createdAt'][_0xe08c('0xd6')]()+0xa)),_0x12aa58[_0xe08c('0x32')](_0x2e92c5,!0x0),delete _0x2e92c5['authors'],_0x3d1598[_0xe08c('0xe')](_0x2e92c5);}}if(this[_0xe08c('0x2a')]){for(const _0x126cb0 of _0x3d1598)this['_bufferUpdate'](_0x126cb0['id'],_0x126cb0,!0x0);this[_0xe08c('0xd5')]();}return _0x4d76cc;}[_0xe08c('0x1e')](_0x5eea17){const _0x46a821=this[_0xe08c('0x3c')]['createRevision'](_0x5eea17);return this[_0xe08c('0x2a')]&&_0x46a821['on'](_0xe08c('0x32'),(_0x10351f,_0x3fef8d,_0x3bfe14)=>{_0x3bfe14||(this[_0xe08c('0x35')](_0x3fef8d['id'],_0x3fef8d,!0x0),this[_0xe08c('0xd5')]());}),this[_0xe08c('0x3c')][_0xe08c('0xaf')](_0x46a821,this[_0xe08c('0xee')](_0x46a821)),_0x46a821;}async[_0xe08c('0x7e')](_0x487bbe){await this[_0xe08c('0x77')](_0x487bbe);const _0x3383a7={};for(const _0x4fda3f in _0x487bbe['diffData']){const _0x28dc16=this[_0xe08c('0xe8')](JSON['parse'](_0x487bbe[_0xe08c('0xc3')][_0x4fda3f]['insertions'])),_0x2e3adc=this['editor'][_0xe08c('0xda')][_0xe08c('0x8a')][_0xe08c('0x3')],_0x3037c5=new _0x409a7f(_0x2e3adc,_0x28dc16[_0xe08c('0x29')](_0x430662=>F(_0x430662,this[_0xe08c('0xb2')])));this[_0xe08c('0xb2')][_0xe08c('0xd2')]['processor'][_0xe08c('0x7')](_0xe08c('0x6d')),_0x3383a7[_0x4fda3f]=this[_0xe08c('0xb2')][_0xe08c('0xd2')][_0xe08c('0x62')]['toData'](_0x3037c5),this[_0xe08c('0xb2')]['data'][_0xe08c('0x62')]['useFillerType']('default');}return _0x3383a7;}[_0xe08c('0xd5')](){if(0x0===this['_bufferedUpdates']['size'])return;if(this[_0xe08c('0xc4')])return;let _0x1ee2c3=Array[_0xe08c('0xba')](this['_bufferedUpdates']['values']());this[_0xe08c('0xbe')][_0xe08c('0x88')]();for(let _0x3e8bc5=0x0;_0x3e8bc5<_0x1ee2c3[_0xe08c('0x8d')];_0x3e8bc5++){const _0x55c4f9=_0x1ee2c3[_0x3e8bc5];let _0x254c5c=!0x1;for(const _0xffe922 of Object[_0xe08c('0x5')](_0x55c4f9))void 0x0===_0x55c4f9[_0xffe922]?delete _0x55c4f9[_0xffe922]:'id'!==_0xffe922&&(_0x254c5c=!0x0);_0x254c5c||(_0x1ee2c3[_0x3e8bc5]=null);}if(_0x1ee2c3=_0x1ee2c3[_0xe08c('0x67')](_0x3fa2db=>null!==_0x3fa2db),!_0x1ee2c3[_0xe08c('0x8d')])return;for(let _0x5bcc3f=0x0;_0x5bcc3f<_0x1ee2c3[_0xe08c('0x8d')];_0x5bcc3f++){const _0x47539c=_0x1ee2c3[_0x5bcc3f];void 0x0!==_0x47539c[_0xe08c('0x8e')]&&void 0x0===_0x47539c[_0xe08c('0xbf')]&&(_0x47539c['toVersion']=this[_0xe08c('0x3c')][_0xe08c('0x64')](_0x47539c['id'])[_0xe08c('0xbf')]),void 0x0!==_0x47539c[_0xe08c('0xbf')]&&void 0x0===_0x47539c['fromVersion']&&(_0x47539c[_0xe08c('0x8e')]=this[_0xe08c('0x3c')][_0xe08c('0x64')](_0x47539c['id'])['fromVersion']);}const _0x27a76d=this[_0xe08c('0xb2')][_0xe08c('0x91')][_0xe08c('0xa6')](_0xe08c('0xaa'));this[_0xe08c('0xc4')]=!0x0,this[_0xe08c('0x90')](),this[_0xe08c('0x2a')]['updateRevisions'](_0x1ee2c3,_0x27a76d)['finally'](()=>{this[_0xe08c('0xc4')]=!0x1;})[_0xe08c('0xe4')](_0x2c9f88=>{if(_0x2c9f88)for(const _0x59d58c of _0x2c9f88)this[_0xe08c('0xd8')]({'id':_0x59d58c['id'],'createdAt':_0x59d58c[_0xe08c('0x48')]});this[_0xe08c('0x66')](),this[_0xe08c('0xd5')]();});}[_0xe08c('0xd0')](_0x3c13a3){let _0x56cb88=this['editor'][_0xe08c('0x91')][_0xe08c('0xa6')](_0xe08c('0x21'));if(void 0x0===_0x56cb88){_0x56cb88={};for(const _0x278232 of this['editor']['model'][_0xe08c('0x3')][_0xe08c('0x87')]())_0x56cb88[_0x278232]='';}_0xe08c('0x1d')==typeof _0x56cb88&&(_0x56cb88={'main':_0x56cb88});let _0x2f6fad=!0x1;for(const _0x4ff293 of Object['keys'](_0x56cb88))_0x3c13a3[_0x4ff293]&&(_0x56cb88[_0x4ff293]!==_0x3c13a3[_0x4ff293]&&''!==_0x56cb88[_0x4ff293][_0xe08c('0x2e')]()&&(_0x2f6fad=!0x0),_0x56cb88[_0x4ff293]=_0x3c13a3[_0x4ff293]);_0x2f6fad&&_0x6ec304('editor-initial-data-replaced-with-revision-data'),this['editor'][_0xe08c('0x91')][_0xe08c('0x9a')]('initialData',_0x56cb88);}[_0xe08c('0x90')](){if(!this['_pendingAction']){const _0x5c2fed=this[_0xe08c('0xb2')][_0xe08c('0xad')]['get'](_0xe08c('0x3b'));this[_0xe08c('0x43')]=_0x5c2fed[_0xe08c('0x2c')](_0x2bf8a0(this['editor']['locale'],_0xe08c('0xab')));}}[_0xe08c('0x66')](){this[_0xe08c('0x43')]&&(this[_0xe08c('0xb2')][_0xe08c('0xad')][_0xe08c('0xa6')](_0xe08c('0x3b'))[_0xe08c('0x80')](this['_pendingAction']),this[_0xe08c('0x43')]=null);}[_0xe08c('0xee')](_0x3610c9){const _0x391477=this[_0xe08c('0x3c')][_0xe08c('0x8c')]();_0x391477[_0xe08c('0x20')]();let _0xacac58=0x0;for(;_0xacac58<_0x391477[_0xe08c('0x8d')];){const _0x3f8e0a=_0x391477[_0xacac58];if(_0x3f8e0a===this[_0xe08c('0x40')]){_0xacac58++;continue;}if(_0x3f8e0a['id']===this['_initialRevisionId'])break;const _0x39c4fc=_0x3610c9[_0xe08c('0xbf')]-_0x3f8e0a['toVersion']||_0x3610c9['fromVersion']-_0x3f8e0a[_0xe08c('0x8e')];if(_0x39c4fc>0x0)break;if(_0x39c4fc<0x0)_0xacac58++;else{if(!_0x3610c9[_0xe08c('0xac')]&&_0x3f8e0a[_0xe08c('0xac')])break;if(_0x3f8e0a[_0xe08c('0xac')]||!_0x3610c9[_0xe08c('0xac')]){if(_0x3610c9[_0xe08c('0x48')]>_0x3f8e0a[_0xe08c('0x48')])break;_0xacac58++;}else _0xacac58++;}}return _0xacac58;}[_0xe08c('0xd8')](_0x46fd5c){const _0x4e5311=this[_0xe08c('0x3c')][_0xe08c('0x64')](_0x46fd5c['id']);if(_0x46fd5c[_0xe08c('0x48')]&&(_0x46fd5c[_0xe08c('0x48')]=new Date(_0x46fd5c[_0xe08c('0x48')])),_0x46fd5c[_0xe08c('0x17')]){const _0x3c695e=this[_0xe08c('0xb2')]['plugins'][_0xe08c('0xa6')]('Users');_0x46fd5c[_0xe08c('0x1a')]=_0x46fd5c['authorsIds'][_0xe08c('0x29')](_0x21e4a0=>_0x3c695e['getUser'](_0x21e4a0));}_0x4e5311['_update'](_0x46fd5c,!0x0);}[_0xe08c('0xeb')]({revision:_0x2a6be7=null,from:_0x2cf3a3=null,to:_0x1cc586=null}){_0x2cf3a3=null!==_0x2cf3a3?_0x2cf3a3:_0x2a6be7[_0xe08c('0x8e')],_0x1cc586=null!==_0x1cc586?_0x1cc586:_0x2a6be7[_0xe08c('0xbf')];const _0x3bd308=this[_0xe08c('0x12')][_0xe08c('0xd3')](_0x2cf3a3,_0x1cc586),_0x49d84b={'diffData':_0x3bd308[_0xe08c('0xc3')],'authorsIds':_0x3bd308[_0xe08c('0x17')],'fromVersion':_0x2cf3a3,'toVersion':_0x1cc586};if(!_0x2a6be7||_0x1cc586!==_0x2a6be7[_0xe08c('0xbf')]){const _0x445c48=_0x1cc586-0x1,_0x6bde10=this['_source']['history'][_0xe08c('0xb7')](_0x445c48);_0x49d84b['createdAt']=_0x6bde10&&_0x6bde10[_0xe08c('0x48')]||new Date();}if(this[_0xe08c('0xa4')]&&_0x2cf3a3===this['_loadedStateData'][_0xe08c('0x8e')])for(const _0x64174a of this[_0xe08c('0xa4')][_0xe08c('0x1a')])_0x49d84b['authorsIds']['includes'](_0x64174a['id'])||_0x49d84b[_0xe08c('0x17')][_0xe08c('0xe')](_0x64174a['id']);return _0x49d84b;}['_loadRevisionData'](_0x8240f5){if(!_0x8240f5||_0x8240f5['diffData'])return Promise['resolve']();{const _0x5b7e7d=this['editor'][_0xe08c('0x91')]['get'](_0xe08c('0xaa'));return this[_0xe08c('0x2a')][_0xe08c('0x64')]({'channelId':_0x5b7e7d,'revisionId':_0x8240f5['id']})[_0xe08c('0xe4')](_0x43b67d=>{_0x8240f5['diffData']=_0x43b67d[_0xe08c('0xc3')];});}}[_0xe08c('0x35')](_0xddf155,_0x488beb,_0x343f13){if(this[_0xe08c('0xbe')][_0xe08c('0x86')](_0xddf155)){const _0x35f227=this[_0xe08c('0xbe')][_0xe08c('0xa6')](_0xddf155);_0x488beb=_0x343f13?{..._0x35f227,..._0x488beb}:{..._0x488beb,..._0x35f227};}this[_0xe08c('0xbe')]['set'](_0xddf155,_0x488beb);}[_0xe08c('0x93')](_0xf0e0e3){const _0x2ed5e7=this[_0xe08c('0x3c')][_0xe08c('0x8c')]();_0x2ed5e7[_0xe08c('0x20')](),_0x2ed5e7['shift']();const _0x3ec06d=_0x2ed5e7[_0xe08c('0x1b')](_0xc0fbd1=>_0xc0fbd1[_0xe08c('0xbf')]<=_0xf0e0e3)[_0xe08c('0xbf')];return _0x3ec06d<this[_0xe08c('0xca')]?this[_0xe08c('0xca')]:_0x3ec06d;}[_0xe08c('0xa7')](_0xbe5993){const _0x4abe7b=this[_0xe08c('0x3c')][_0xe08c('0x64')](this[_0xe08c('0x3c')]['length']-0x1);if(_0x4abe7b)this[_0xe08c('0xb6')]=_0x4abe7b['id'];else{const _0x56f476=!this[_0xe08c('0xb2')]['model'][_0xe08c('0x3')]['roots'][_0xe08c('0x1b')](_0x103577=>this['editor']['model'][_0xe08c('0x5f')](_0x103577)),_0x3c3775=this[_0xe08c('0xb2')][_0xe08c('0xad')][_0xe08c('0xa6')](_0xe08c('0xc9'))['me']['id'],_0x44d218=_0x2bf8a0(this['editor'][_0xe08c('0xc0')],_0x56f476?_0xe08c('0x9f'):'Initial\x20revision');this[_0xe08c('0x44')]({'from':_0xbe5993,'to':_0xbe5993,'id':this[_0xe08c('0xb6')],'name':_0x44d218,'creatorId':_0x3c3775});}}[_0xe08c('0xc7')](_0x1196af){const _0x5bf210=this[_0xe08c('0x94')]['getCurrentRevisionId']();this['currentRevision']=this['repository'][_0xe08c('0x64')](_0x5bf210),this['currentRevision']||(this[_0xe08c('0x40')]=this['_makeRevision']({'from':_0x1196af,'to':_0x1196af,'id':_0x5bf210,'name':'','creatorId':null}));}[_0xe08c('0x44')]({name:_0x39568e,from:_0x1ad87d,to:_0xc74caf,creatorId:_0x2d641a,id:_0xbeed2e}){const _0x4186ce=this['buildRevisionData']({'from':_0x1ad87d,'to':_0xc74caf});_0x4186ce[_0xe08c('0x96')]=_0x39568e,_0x4186ce[_0xe08c('0x41')]=_0x2d641a,_0x4186ce['id']=_0xbeed2e;const _0x261c4=this[_0xe08c('0x1e')](_0x4186ce);return this[_0xe08c('0x2a')]&&this[_0xe08c('0x35')](_0x4186ce['id'],_0x4186ce,!0x0),_0x261c4;}['_setConversion'](){this[_0xe08c('0xb2')][_0xe08c('0x46')][_0xe08c('0x60')](_0xe08c('0x78'))[_0xe08c('0x68')]({'model':_0xe08c('0x2')});}[_0xe08c('0xe8')](_0x50ec08){return(_0x50ec08=_0x50ec08[_0xe08c('0x67')](_0x4634bd=>!_0x4634bd['name']||'revision-start'!==_0x4634bd[_0xe08c('0x96')]&&_0xe08c('0x39')!==_0x4634bd[_0xe08c('0x96')]))['forEach'](_0x3f62ef=>{_0xe08c('0x1d')!=typeof _0x3f62ef&&(_0x3f62ef['children']=this[_0xe08c('0xe8')](_0x3f62ef['children']),_0x3f62ef[_0xe08c('0xdb')]=_0x3f62ef['attributes'][_0xe08c('0x67')](_0xa33251=>!_0xa33251[0x0][_0xe08c('0x9e')]('data-revision-')));}),_0x50ec08;}}function F(_0x5b4ad4,_0x42a73d){const _0x17741e=_0x42a73d[_0xe08c('0xda')][_0xe08c('0x8a')]['document'];if('string'==typeof _0x5b4ad4)return new _0x9a4db5(_0x17741e,_0x5b4ad4);{const _0x14bfe4=_0x5b4ad4[_0xe08c('0x36')]['map'](_0x574ad3=>F(_0x574ad3,_0x42a73d));return new(V[_0x5b4ad4[(_0xe08c('0x74'))]]||_0xc72f6f)(_0x17741e,_0x5b4ad4[_0xe08c('0x96')],_0x5b4ad4[_0xe08c('0xdb')],_0x14bfe4);}}class T{constructor(_0x2bbc2f){this[_0xe08c('0xb2')]=_0x2bbc2f,this[_0xe08c('0x55')]=new Map(),this[_0xe08c('0x25')]=-0x1,this[_0xe08c('0x63')]=-0x1,this[_0xe08c('0x16')]=new Map(),this[_0xe08c('0x4c')]=new Map(),this[_0xe08c('0x6b')]=new Map(),this[_0xe08c('0xc2')]=new Map(),this[_0xe08c('0x57')]=new Map(),this['_touched']=new Map(),this[_0xe08c('0x95')]=new Map(),this['_revisionId']=0x1,this['_rootNames']=this[_0xe08c('0xb2')]['model']['document'][_0xe08c('0x87')](),this[_0xe08c('0x15')]['push'](_0xe08c('0x7b'));}[_0xe08c('0x6')](_0x41c8bd){this['source']=_0x41c8bd;const _0x7b8706=new Map();for(const _0x57a0f7 of this[_0xe08c('0x15')]){const _0x386713=J(this[_0xe08c('0xb2')][_0xe08c('0x47')]['document'][_0xe08c('0xbc')](_0x57a0f7));_0x7b8706['set'](_0x57a0f7,_0x386713);}const _0x226a08=Array['from'](this[_0xe08c('0xb2')][_0xe08c('0x47')][_0xe08c('0x13')])[_0xe08c('0x29')](_0x115036=>[_0x115036[_0xe08c('0x96')],_0x115036[_0xe08c('0xe1')]()]),_0x2b65c9=this[_0xe08c('0x84')]['version'];this['_saveMetaData'](_0x2b65c9,_0x7b8706,_0x226a08),this[_0xe08c('0xde')]=this[_0xe08c('0x45')];}[_0xe08c('0xd3')](_0x5b569b,_0x1bd82a){if(this['_lastFrom']===_0x5b569b&&this[_0xe08c('0x63')]<=_0x1bd82a)this['_savedMetaData'][_0xe08c('0xb0')]>0x1&&this[_0xe08c('0x51')](this[_0xe08c('0x63')]),this[_0xe08c('0xb')](this[_0xe08c('0x63')],_0x1bd82a,!0x0);else{if(!this['_savedMetaData'][_0xe08c('0x86')](_0x5b569b)){const _0xc7139f=this['_getPreviousFrom'](_0x5b569b);this['_calculateMetaData'](_0xc7139f,_0x5b569b,!0x1);}this[_0xe08c('0xea')](_0x5b569b,_0x1bd82a,!0x0);}return this['_lastFrom']=_0x5b569b,this[_0xe08c('0x63')]=_0x1bd82a,this[_0xe08c('0x58')]();}[_0xe08c('0x2f')](_0x3824bd){this[_0xe08c('0x4d')](),this[_0xe08c('0x25')]=_0x3824bd[_0xe08c('0x8e')],this[_0xe08c('0x63')]=_0x3824bd[_0xe08c('0xbf')];for(const _0x389777 in _0x3824bd[_0xe08c('0xc3')]){const _0x35d647=this['_makeModelFromViewString'](_0x3824bd[_0xe08c('0xc3')][_0x389777][_0xe08c('0x70')]);_0x35d647[_0xe08c('0x38')]=_0x389777,this[_0xe08c('0x6b')][_0xe08c('0x9a')](_0x389777,_0x35d647);const _0x5cbef3=this[_0xe08c('0x3d')](_0x35d647);this[_0xe08c('0x57')][_0xe08c('0x9a')](_0x389777,_0x5cbef3);for(const [_0x45a5e6,_0x2970c9]of _0x35d647[_0xe08c('0x13')]){if(!_0x45a5e6[_0xe08c('0x9e')]('revision:'))continue;const _0x13f80c=_0x45a5e6['split'](':')[0x2];for(const _0x271932 of _0x2970c9[_0xe08c('0x7a')]({'singleCharacters':!0x0})){const _0x48d8e1=this['_getVidAttributeName'](_0x271932),_0x176437=_0xe08c('0x83')==_0x271932[_0xe08c('0x74')]?_0x271932[_0xe08c('0x4e')]['path'][_0xe08c('0x7c')](0x0,-0x1):_0x271932[_0xe08c('0x4e')][_0xe08c('0x89')],_0x994f93=_0x5cbef3[_0xe08c('0x75')](_0x176437)[_0xe08c('0xa8')](_0x48d8e1);this[_0xe08c('0xe6')]['set'](_0x994f93,{'userId':_0x13f80c});}}}this['_startingRevisionId']=this[_0xe08c('0x45')];const _0x2ecae5=[...Array(this[_0xe08c('0x45')])[_0xe08c('0x5')]()]['slice'](0x1)[_0xe08c('0x67')](_0x224d3=>!this[_0xe08c('0xe6')]['has'](_0x224d3));let _0x10e51c=0x0;for(const _0x1b3606 in _0x3824bd[_0xe08c('0xc3')]){const _0xa98682=this['_makeModelFromViewString'](_0x3824bd[_0xe08c('0xc3')][_0x1b3606][_0xe08c('0xdc')]);_0xa98682[_0xe08c('0x38')]=_0x1b3606,this[_0xe08c('0x4c')][_0xe08c('0x9a')](_0x1b3606,_0xa98682);const _0x170ffd=this[_0xe08c('0x3d')](_0xa98682,Number['NEGATIVE_INFINITY']);this[_0xe08c('0xc2')]['set'](_0x1b3606,_0x170ffd);for(const [_0x52bebd,_0x43bbe1]of _0xa98682[_0xe08c('0x13')]){if(!_0x52bebd[_0xe08c('0x9e')](_0xe08c('0x28')))continue;const _0x18deab=_0x52bebd[_0xe08c('0xae')](':')[0x2];for(const _0x5f1924 of _0x43bbe1[_0xe08c('0x7a')]({'singleCharacters':!0x0})){const _0x143312=this[_0xe08c('0xb9')](_0x5f1924),_0x18afed=this[_0xe08c('0x45')]++,_0x25cdb4=_0xe08c('0x83')==_0x5f1924[_0xe08c('0x74')]?_0x5f1924[_0xe08c('0x4e')][_0xe08c('0x89')][_0xe08c('0x7c')](0x0,-0x1):_0x5f1924[_0xe08c('0x4e')][_0xe08c('0x89')];_0x170ffd[_0xe08c('0x75')](_0x25cdb4)[_0xe08c('0x53')](_0x143312,_0x18afed),this[_0xe08c('0xe6')][_0xe08c('0x9a')](_0x18afed,{'userId':_0x18deab});}}for(const _0x3df0b4 of this['editor']['model'][_0xe08c('0xe2')](_0xa98682)[_0xe08c('0x7a')]({'singleCharacters':!0x0})){const _0x25ef70=this[_0xe08c('0xb9')](_0x3df0b4),_0x548ede=_0xe08c('0x83')==_0x3df0b4['type']?_0x3df0b4['previousPosition'][_0xe08c('0x89')][_0xe08c('0x7c')](0x0,-0x1):_0x3df0b4[_0xe08c('0x4e')]['path'],_0x1c820b=_0x170ffd[_0xe08c('0x75')](_0x548ede);_0x1c820b['getAttribute'](_0x25ef70)>0x0||_0x1c820b[_0xe08c('0x53')](_0x25ef70,_0x2ecae5[_0x10e51c++]);}const _0x339412=new _0x588493();_0x339412[_0xe08c('0x38')]='$graveyard',this[_0xe08c('0x6b')]['set'](_0xe08c('0x7b'),_0x339412),this[_0xe08c('0x57')][_0xe08c('0x9a')](_0xe08c('0x7b'),this['_makeIdsRoot'](_0x339412,0x1));const _0x1e62ab=new _0x588493();_0x1e62ab[_0xe08c('0x38')]='$graveyard',this[_0xe08c('0x4c')][_0xe08c('0x9a')](_0xe08c('0x7b'),_0x1e62ab),this[_0xe08c('0xc2')]['set'](_0xe08c('0x7b'),this['_makeIdsRoot'](_0x1e62ab,0x1));for(const [_0x12be67,_0x175c59]of _0xa98682[_0xe08c('0x13')])_0x12be67[_0xe08c('0x9e')]('revision:')||this['_markers'][_0xe08c('0x9a')](_0x12be67,_0x175c59);}const _0x21032b=Array[_0xe08c('0xba')](this[_0xe08c('0x4c')])[_0xe08c('0x29')](([_0x1eae6e,_0x1810d8])=>[_0x1eae6e,J(_0x1810d8)]);this['_saveMetaData'](this['_lastTo'],_0x21032b,this[_0xe08c('0x16')]);}[_0xe08c('0x23')](_0x150a12){const _0x1ff70c=JSON['parse'](_0x150a12),_0x5155db=this[_0xe08c('0xb2')]['editing']['view'][_0xe08c('0x3')],_0x1ada4c=new _0x409a7f(_0x5155db,_0x1ff70c[_0xe08c('0x29')](_0x2be2ac=>F(_0x2be2ac,this[_0xe08c('0xb2')])));return this['editor']['data'][_0xe08c('0xa5')](_0x1ada4c);}['_saveEmptyMetaData'](){const _0xcce444=new Map();for(const _0xe98fb8 of this[_0xe08c('0x15')]){const _0x13e70a=new _0x588493();_0x13e70a[_0xe08c('0x38')]=_0xe98fb8,_0xcce444[_0xe08c('0x9a')](_0xe98fb8,_0x13e70a);}this[_0xe08c('0xb4')](Number['NEGATIVE_INFINITY'],_0xcce444,[]);}[_0xe08c('0xb4')](_0x8b875f,_0xf1a587,_0x2b1885){const _0x2419e5=new Map(_0xf1a587),_0x2a6431=new Map();for(const [_0x3ba63a,_0x474713]of _0x2b1885)_0x2a6431['set'](_0x3ba63a,{'start':_0x474713[_0xe08c('0xe5')]['clone'](),'end':_0x474713['end'][_0xe08c('0xdd')](),'rootName':_0x474713['root'][_0xe08c('0x38')]});this[_0xe08c('0x55')][_0xe08c('0x9a')](_0x8b875f,{'roots':_0x2419e5,'markers':_0x2a6431});}[_0xe08c('0x51')](_0x3154a7){this[_0xe08c('0x55')][_0xe08c('0x76')](_0x3154a7);}[_0xe08c('0x6e')](){this[_0xe08c('0x4d')](),this['_lastFrom']=-0x1,this[_0xe08c('0x63')]=-0x1,this[_0xe08c('0x55')][_0xe08c('0x88')](),this[_0xe08c('0x6')](this[_0xe08c('0x84')]);}['_reset'](){this[_0xe08c('0xe6')]['clear'](),this[_0xe08c('0x95')][_0xe08c('0x88')](),this[_0xe08c('0x4c')][_0xe08c('0x88')](),this['_baseRoots'][_0xe08c('0x88')](),this[_0xe08c('0xc2')][_0xe08c('0x88')](),this[_0xe08c('0x57')][_0xe08c('0x88')](),this['_markers']['clear'](),this[_0xe08c('0x45')]=0x1,this[_0xe08c('0xde')]=this['_revisionId'];}[_0xe08c('0x3d')](_0x3637bc,_0x47ffce=null){let _0x1a4d9d=null;_0x3637bc['is'](_0xe08c('0x4f'))||(_0x1a4d9d=new _0x45e8ea(_0x3637bc[_0xe08c('0x96')],{'vid_start':null===_0x47ffce?this[_0xe08c('0x45')]++:_0x47ffce++}));const _0x57197d=[];for(const _0x6d24e5 of _0x3637bc['getChildren']())if(_0x6d24e5['is'](_0xe08c('0x2b'))){_0x57197d[_0xe08c('0xe')](this[_0xe08c('0x3d')](_0x6d24e5,_0x47ffce));const _0x38d081=_0x57197d[_0x57197d[_0xe08c('0x8d')]-0x1];null!==_0x47ffce&&(_0x47ffce=_0x38d081['is'](_0xe08c('0x2b'),_0xe08c('0xd'))?_0x38d081[_0xe08c('0xa8')](_0xe08c('0x71'))+0x1:_0x38d081[_0xe08c('0xa8')](_0xe08c('0x69'))+0x1);}else for(let _0x2f95a4=0x0;_0x2f95a4<_0x6d24e5['offsetSize'];_0x2f95a4++)_0x57197d['push'](new _0x45e8ea(_0xe08c('0xd'),{'vid':null===_0x47ffce?this['_revisionId']++:_0x47ffce++}));if(_0x3637bc['is'](_0xe08c('0x4f'))){const _0x50213f=new _0x588493(_0x57197d);return _0x50213f[_0xe08c('0x38')]=_0x3637bc[_0xe08c('0x38')],_0x50213f;}return _0x1a4d9d[_0xe08c('0x53')](_0xe08c('0x69'),null===_0x47ffce?this[_0xe08c('0x45')]++:_0x47ffce++),_0x1a4d9d[_0xe08c('0x18')](0x0,_0x57197d),_0x1a4d9d;}[_0xe08c('0xea')](_0x1ec7ac,_0x19c75c,_0xc6cb73){this[_0xe08c('0x4d')]();const {roots:_0xa1ee06,markers:_0x51dc0c}=this[_0xe08c('0x55')]['get'](_0x1ec7ac);this[_0xe08c('0x6b')]=new Map(_0xa1ee06);for(const [_0x41e39f,_0x2bae2d]of this[_0xe08c('0x6b')])if('$graveyard'!==_0x41e39f&&(this[_0xe08c('0x4c')][_0xe08c('0x9a')](_0x41e39f,J(_0x2bae2d)),_0xc6cb73)){const _0x4795cc=this[_0xe08c('0x45')];this[_0xe08c('0xc2')][_0xe08c('0x9a')](_0x41e39f,this[_0xe08c('0x3d')](_0x2bae2d)),this[_0xe08c('0x57')][_0xe08c('0x9a')](_0x41e39f,this[_0xe08c('0x3d')](_0x2bae2d,_0x4795cc));}this[_0xe08c('0xde')]=this[_0xe08c('0x45')],this[_0xe08c('0x4c')][_0xe08c('0x9a')](_0xe08c('0x7b'),J(this[_0xe08c('0x6b')][_0xe08c('0xa6')](_0xe08c('0x7b')))),_0xc6cb73&&this[_0xe08c('0xc2')][_0xe08c('0x9a')](_0xe08c('0x7b'),this[_0xe08c('0x3d')](this[_0xe08c('0x6b')][_0xe08c('0xa6')](_0xe08c('0x7b'))));for(const [_0x537765,_0x5d8579]of _0x51dc0c){const _0x567e91=this[_0xe08c('0x6b')][_0xe08c('0xa6')](_0x5d8579[_0xe08c('0x38')]),_0x465fc2=this[_0xe08c('0x4c')][_0xe08c('0xa6')](_0x5d8579['rootName']),_0x1c7165=new _0x18b630(this[_0xe08c('0xa')](_0x5d8579[_0xe08c('0xe5')],_0x567e91),this[_0xe08c('0xa')](_0x5d8579['end'],_0x567e91)),_0x339c0d=this['_fixRange'](_0x1c7165,_0x465fc2);_0x567e91[_0xe08c('0x13')]['set'](_0x537765,_0x1c7165),this[_0xe08c('0x16')][_0xe08c('0x9a')](_0x537765,_0x339c0d);}this[_0xe08c('0xb')](_0x1ec7ac,_0x19c75c,_0xc6cb73);}[_0xe08c('0xb')](_0x28de3e,_0x5882ad,_0x434157){for(const _0x65494a of this[_0xe08c('0x84')][_0xe08c('0x11')](_0x28de3e,_0x5882ad))this['_handleOperation'](_0x65494a,_0x434157);for(const _0x38a725 of this[_0xe08c('0x4c')][_0xe08c('0x3a')]())_0x38a725[_0xe08c('0x13')][_0xe08c('0x88')]();for(const [_0x41c5c4,_0x23b9d3]of this[_0xe08c('0x16')]){this[_0xe08c('0x4c')][_0xe08c('0xa6')](_0x23b9d3[_0xe08c('0x4b')][_0xe08c('0x38')])['markers'][_0xe08c('0x9a')](_0x41c5c4,_0x23b9d3[_0xe08c('0xdd')]());}this[_0xe08c('0xb4')](_0x5882ad,Array['from'](this['_diffRoots'])['map'](([_0x1bf2ef,_0x2d7e03])=>[_0x1bf2ef,J(_0x2d7e03)]),this['_markers']);}['_getPreviousFrom'](_0x3a6a81){const _0x160cef=Array[_0xe08c('0xba')](this[_0xe08c('0x55')][_0xe08c('0x5')]());_0x160cef[_0xe08c('0x24')]((_0x299369,_0x1cf472)=>_0x299369-_0x1cf472),_0x160cef['reverse']();for(const _0xcee2ae of _0x160cef)if(_0xcee2ae<_0x3a6a81)return _0xcee2ae;return this['_saveEmptyMetaData'](),Number['NEGATIVE_INFINITY'];}[_0xe08c('0xe9')](_0x3e9f9d,_0x30737a){const _0x5a9bcb=Array[_0xe08c('0xba')](_0x30737a[_0xe08c('0x13')])[_0xe08c('0x29')](([_0x57a8f0,_0x4ee401])=>[_0x57a8f0,this['_fixRange'](_0x4ee401,_0x3e9f9d)]);_0x3e9f9d[_0xe08c('0x13')]=new Map(_0x5a9bcb);}['_transformMarkers'](_0x231b92){for(const _0x57e46b of this[_0xe08c('0x16')]['values']()){const _0x48ed0c=_0x57e46b[_0xe08c('0x30')](_0x231b92),_0x2a0801=_0x18b630[_0xe08c('0x49')](_0x48ed0c);_0x57e46b[_0xe08c('0xe5')]=_0x2a0801[_0xe08c('0xe5')],_0x57e46b['end']=_0x2a0801[_0xe08c('0x6a')];}}[_0xe08c('0x5a')](_0xe035f7,_0xa1c44){const _0xd73914=this[_0xe08c('0xc6')](_0xe035f7,this[_0xe08c('0x4c')]);if(_0xe08c('0x37')!==_0xe035f7[_0xe08c('0x74')]&&(_0xd73914[_0xe08c('0x5b')](),this[_0xe08c('0xed')](_0xd73914)),_0xa1c44)switch(_0xd73914[_0xe08c('0x74')]){case _0xe08c('0x5c'):this[_0xe08c('0xf')](_0xe035f7);break;case _0xe08c('0xa3'):case'remove':case _0xe08c('0x3f'):this['_handleMoveOperation'](_0xe035f7);break;case _0xe08c('0xb3'):this[_0xe08c('0x26')](_0xe035f7);break;case _0xe08c('0xae'):this[_0xe08c('0x54')](_0xe035f7);break;case _0xe08c('0x37'):this[_0xe08c('0xa2')](_0xe035f7);}}[_0xe08c('0xc6')](_0x2a526c,_0x57b76a){const _0x489c7f=_0x2a526c['clone']();return _0x489c7f[_0xe08c('0x9d')]=_0x2a526c[_0xe08c('0x9d')],this['_fixOperation'](_0x489c7f,_0x57b76a),_0x489c7f;}[_0xe08c('0xd4')](_0x1632c8){return _0x1632c8[_0xe08c('0x29')](_0x2bd1a2=>{const _0x52584c=this[_0xe08c('0xb9')](_0x2bd1a2);return Number(_0x2bd1a2[_0xe08c('0x72')]['getAttribute'](_0x52584c));});}['_generateTape'](_0x4e2b01,_0x459860){if(_0x4e2b01['is'](_0xe08c('0x2b'),_0xe08c('0xd')))_0x459860[_0xe08c('0xe')]({'item':_0x4e2b01,'type':_0xe08c('0x4a')});else{_0x4e2b01['is']('element')&&_0x459860['push']({'item':_0x4e2b01,'type':_0xe08c('0xcb')});for(const _0x237d79 of _0x4e2b01['getChildren']())this[_0xe08c('0x2d')](_0x237d79,_0x459860);_0x4e2b01['is'](_0xe08c('0x2b'))&&_0x459860[_0xe08c('0xe')]({'item':_0x4e2b01,'type':_0xe08c('0x83')});}return _0x459860;}[_0xe08c('0x58')](){const _0xa8163f=this[_0xe08c('0xb2')]['model'][_0xe08c('0x3')]['getRootNames'](),_0x31ae5f=new Map(this[_0xe08c('0xe6')]),_0x3a7b8b=new Map(_0x31ae5f),_0x355854=new Map(),_0x3cf27f={'insertions':{},'deletions':{}},_0x67cb26={'insertions':{},'deletions':{}},_0x5d4b47=new Map();for(const _0x14b827 of _0xa8163f){const _0x263667=this['_diffRoots'][_0xe08c('0xa6')](_0x14b827),_0x24b5ad=this[_0xe08c('0x6b')][_0xe08c('0xa6')](_0x14b827);_0x3cf27f['insertions'][_0x14b827]=J(_0x263667),_0x3cf27f['deletions'][_0x14b827]=J(_0x24b5ad),this[_0xe08c('0xe9')](_0x3cf27f[_0xe08c('0x70')][_0x14b827],_0x24b5ad),this[_0xe08c('0xe9')](_0x3cf27f[_0xe08c('0xdc')][_0x14b827],_0x263667),_0x67cb26['insertions'][_0x14b827]=this[_0xe08c('0x2d')](this['_idsRoots'][_0xe08c('0xa6')](_0x14b827),[]),_0x67cb26[_0xe08c('0x70')][_0x14b827]=this['_generateTape'](this[_0xe08c('0x57')][_0xe08c('0xa6')](_0x14b827),[]);}for(const _0x308404 of _0xa8163f){const _0x572a02=_0x67cb26[_0xe08c('0xdc')][_0x308404];for(const _0x3f03f4 of _0x572a02){const _0x52da7e=this['_getVidAttributeName'](_0x3f03f4),_0x33420a=_0x3f03f4['item'][_0xe08c('0xa8')](_0x52da7e);_0x3a7b8b[_0xe08c('0x76')](_0x33420a),_0x33420a>=this[_0xe08c('0xde')]&&_0x355854[_0xe08c('0x9a')](_0x33420a,_0x31ae5f['get'](_0x33420a));}}for(const _0x5c43fd of _0xa8163f){const _0x1dd50=_0x67cb26['insertions'][_0x5c43fd],_0x2030df=this[_0xe08c('0xd4')](_0x67cb26[_0xe08c('0x70')][_0x5c43fd]);let _0x3ac49b=0x0;for(const _0x5ee59e of _0x1dd50){const _0x503f97=this[_0xe08c('0xb9')](_0x5ee59e),_0x180c8e=_0x5ee59e[_0xe08c('0x72')]['getAttribute'](_0x503f97);if(!_0x355854['has'](_0x180c8e)&&!_0x5d4b47[_0xe08c('0x86')](_0x180c8e)){if(_0x3a7b8b[_0xe08c('0x86')](_0x180c8e))_0x3ac49b++;else{if(_0x180c8e!=_0x2030df[_0x3ac49b]){const _0x5d500b=_0x31ae5f['get'](_0x180c8e)||_0x31ae5f[_0xe08c('0xa6')](_0x2030df[_0x3ac49b]);for(;_0x180c8e!=_0x2030df[_0x3ac49b];)_0x3a7b8b[_0xe08c('0x86')](_0x2030df[_0x3ac49b])||(_0x5d4b47[_0xe08c('0x9a')](_0x2030df[_0x3ac49b],_0x5d500b),_0x31ae5f[_0xe08c('0x9a')](_0x2030df[_0x3ac49b],_0x5d500b)),_0x3ac49b++;}_0x3ac49b++;}}}}for(const _0x2c15dc of _0xa8163f){const _0x31323f=_0x67cb26[_0xe08c('0xdc')][_0x2c15dc];for(const _0x5ee702 of _0x31323f){const _0x13b768=this[_0xe08c('0xb9')](_0x5ee702),_0x573f90=_0x5ee702[_0xe08c('0x72')][_0xe08c('0xa8')](_0x13b768);if(_0x5d4b47[_0xe08c('0x86')](_0x573f90)){const _0x2fb456=_0x5d4b47[_0xe08c('0xa6')](_0x573f90);_0x3a7b8b[_0xe08c('0x86')](_0x573f90)||_0x3a7b8b[_0xe08c('0x9a')](_0x573f90,{..._0x2fb456}),_0x355854[_0xe08c('0x9a')](_0x573f90,{..._0x2fb456});}}}for(const _0x10be4e of _0x3a7b8b[_0xe08c('0x5')]())_0x10be4e>=this[_0xe08c('0xde')]&&_0x3a7b8b[_0xe08c('0x76')](_0x10be4e);const _0x1dcd0a=new Map();for(const _0x47141c of _0xa8163f){let _0x371bf4=_0x67cb26['insertions'][_0x47141c];for(const _0x211a26 of _0x371bf4)if(_0x211a26[_0xe08c('0x72')]['is']('element',_0xe08c('0xc1'))){const _0x19f5e6=this[_0xe08c('0xb9')](_0x211a26),_0x40809a=_0x211a26['item'][_0xe08c('0xa8')](_0x19f5e6);if(_0x355854[_0xe08c('0x86')](_0x40809a)){const _0x1baa41=_0x211a26[_0xe08c('0x72')][_0xe08c('0xec')][_0xe08c('0xec')]['getAttribute'](_0xe08c('0xe7')),_0xfb2f7a=_0x1dcd0a[_0xe08c('0xa6')](_0x1baa41)||new Set();_0xfb2f7a[_0xe08c('0x2c')](_0x355854[_0xe08c('0xa6')](_0x40809a)[_0xe08c('0x19')]),_0x1dcd0a[_0xe08c('0x9a')](_0x1baa41,_0xfb2f7a);}}_0x371bf4=_0x67cb26[_0xe08c('0x70')][_0x47141c];for(const _0x8e149d of _0x371bf4)if(_0x8e149d[_0xe08c('0x72')]['is'](_0xe08c('0x2b'),_0xe08c('0xc1'))){const _0x50f9e2=this['_getVidAttributeName'](_0x8e149d),_0x121240=_0x8e149d[_0xe08c('0x72')][_0xe08c('0xa8')](_0x50f9e2);if(_0x3a7b8b[_0xe08c('0x86')](_0x121240)){const _0x14b6e6=_0x8e149d['item']['parent'][_0xe08c('0xec')]['getAttribute'](_0xe08c('0xe7')),_0xd8309a=_0x1dcd0a[_0xe08c('0xa6')](_0x14b6e6)||new Set();_0xd8309a[_0xe08c('0x2c')](_0x3a7b8b[_0xe08c('0xa6')](_0x121240)[_0xe08c('0x19')]),_0x1dcd0a[_0xe08c('0x9a')](_0x14b6e6,_0xd8309a);}}for(const _0x198f81 of _0x1dcd0a[_0xe08c('0x5')]())(_0x355854['has'](_0x198f81)||_0x3a7b8b[_0xe08c('0x86')](_0x198f81))&&_0x1dcd0a[_0xe08c('0x76')](_0x198f81);}for(const _0x3e5204 of _0xa8163f){const _0x455ef5=_0x67cb26['insertions'][_0x3e5204];let _0x3591fa=null,_0x7dd944=null;for(const _0xaa9f8c of _0x455ef5){const _0x354dd6=this[_0xe08c('0xb9')](_0xaa9f8c),_0x532454=_0xaa9f8c[_0xe08c('0x72')][_0xe08c('0xa8')](_0x354dd6),_0x2b4c03=_0x1dcd0a[_0xe08c('0xa6')](_0x532454);_0x2b4c03&&'elementStart'==_0xaa9f8c[_0xe08c('0x74')]&&(_0x3591fa=Array[_0xe08c('0xba')](_0x2b4c03)[0x0],_0x7dd944=_0xaa9f8c[_0xe08c('0x72')][_0xe08c('0xa8')]('vid_end')),_0x3591fa&&(_0x3a7b8b[_0xe08c('0x9a')](_0x532454,{'userId':_0x3591fa}),_0x355854['set'](_0x532454,{'userId':_0x3591fa})),_0x532454==_0x7dd944&&(_0x3591fa=null,_0x7dd944=null);}}const _0x4cd568={},_0x1709bc=new Set();for(const _0xb9ffb8 of _0xa8163f){const _0x3cc1a0=_0x3cf27f[_0xe08c('0x70')][_0xb9ffb8],_0x256724=_0x3cf27f[_0xe08c('0xdc')][_0xb9ffb8];for(const {userId:_0x1383d4}of this['_touchedMarkers'][_0xe08c('0x3a')]())null!==_0x1383d4&&_0x1709bc[_0xe08c('0x2c')](_0x1383d4);this[_0xe08c('0x1c')](_0x256724,_0x67cb26[_0xe08c('0xdc')][_0xb9ffb8],_0x355854,_0xe08c('0x79'),_0x1709bc),this['_markChanges'](_0x3cc1a0,_0x67cb26['deletions'][_0xb9ffb8],_0x3a7b8b,'deletion',_0x1709bc),_0x4cd568[_0xb9ffb8]={'insertions':this[_0xe08c('0xa0')](_0x256724),'deletions':this[_0xe08c('0xa0')](_0x3cc1a0)};}return{'diffData':_0x4cd568,'authorsIds':Array[_0xe08c('0xba')](_0x1709bc)};}['_processRootBeforeSave'](_0x594426){for(const [,_0x3eda62]of _0x594426[_0xe08c('0x13')]){const _0x15ea00=_0x3eda62['start'][_0xe08c('0x4')]()[_0xe08c('0x67')](_0x1fbbbe=>_0xe08c('0xc1')==_0x1fbbbe['name']);for(const _0x570714 of _0x15ea00)0x1==_0x570714[_0xe08c('0x82')]&&_0x570714[_0xe08c('0x3e')](0x0)['is'](_0xe08c('0x2b'),_0xe08c('0xbd'))&&_0x570714[_0xe08c('0x3e')](0x0)['_setAttribute'](_0xe08c('0x9c'),!0x0);}}[_0xe08c('0xa0')](_0x4833d8){this[_0xe08c('0x10')](_0x4833d8);const _0x5b05be=this[_0xe08c('0xb2')][_0xe08c('0xd2')][_0xe08c('0x97')](_0x4833d8,{}),_0x1d20fb=Array[_0xe08c('0xba')](_0x5b05be[_0xe08c('0x0')]())[_0xe08c('0x29')](_0x42ed40=>this[_0xe08c('0xb1')](_0x42ed40));return JSON[_0xe08c('0x92')](_0x1d20fb);}[_0xe08c('0xb1')](_0x67ab){if(_0x67ab['is']('$text'))return _0x67ab[_0xe08c('0xd2')];{const _0x543380=_0x67ab;return{'type':Object['keys'](V)[_0xe08c('0x1b')](_0x54ad89=>_0x67ab instanceof V[_0x54ad89]),'name':_0x543380['name'],'attributes':Array['from'](_0x543380[_0xe08c('0xb8')]()),'children':Array[_0xe08c('0xba')](_0x543380['getChildren']())['map'](_0xa965c6=>this[_0xe08c('0xb1')](_0xa965c6))};}}[_0xe08c('0x1c')](_0x167743,_0xf7e92a,_0xeb02dd,_0xa81418,_0x251882){let _0x2b6bbf=null,_0xb4abb2=null,_0xf6605b=0x0;const _0x200b79=this['editor'][_0xe08c('0x47')];for(let _0x5b77b0=0x0;_0x5b77b0<_0xf7e92a[_0xe08c('0x8d')];_0x5b77b0++){const _0x399124=this['_getVidAttributeName'](_0xf7e92a[_0x5b77b0]),_0x1d34ee=_0xf7e92a[_0x5b77b0]['item'][_0xe08c('0xa8')](_0x399124),_0x432868=_0xeb02dd['get'](_0x1d34ee),_0x50fce2=_0x5b77b0==_0xf7e92a[_0xe08c('0x8d')]-0x1;(!_0x2b6bbf&&_0x432868&&(_0x2b6bbf=_0x432868,_0xb4abb2=_0xf7e92a[_0x5b77b0]),_0x2b6bbf&&(!_0x432868||_0x432868[_0xe08c('0x19')]!=_0x2b6bbf[_0xe08c('0x19')]))&&(_0x55fd5c(_0x432868,j(_0xb4abb2,_0x167743,_0x200b79),j(_0xf7e92a[_0x5b77b0],_0x167743,_0x200b79)),_0x2b6bbf=_0x432868||null,_0xb4abb2=_0x432868?_0xf7e92a[_0x5b77b0]:null),_0x2b6bbf&&_0x50fce2&&_0x55fd5c(_0x432868,j(_0xb4abb2,_0x167743,_0x200b79),B(_0xf7e92a[_0x5b77b0],_0x167743,_0x200b79));}function _0x55fd5c(_0x51144a,_0x2f08c5,_0x2003aa){const _0x245883=_0x2b6bbf[_0xe08c('0x19')],_0x3a1ea=_0xe08c('0x28')+_0xa81418+':'+_0x245883+':'+_0xf6605b++,_0x1b2c13=_0x200b79[_0xe08c('0xd1')](_0x2f08c5,_0x2003aa);_0x167743[_0xe08c('0x13')][_0xe08c('0x9a')](_0x3a1ea,_0x1b2c13),null!==_0x245883&&_0x251882[_0xe08c('0x2c')](_0x245883);}}[_0xe08c('0xb9')](_0x896b6d){switch(_0x896b6d['type']){case _0xe08c('0xcb'):return _0xe08c('0xe7');case _0xe08c('0x83'):return _0xe08c('0x69');default:return _0xe08c('0x71');}}[_0xe08c('0x1')](_0x42addd,_0xe3658){_0x42addd[_0xe08c('0x52')]=null;for(const _0x541a59 in _0x42addd){const _0x182740=_0x42addd[_0x541a59];if(_0x182740 instanceof _0x3a19a0){const _0x5d2e04=_0xe3658['get'](_0x182740[_0xe08c('0x4b')]['rootName']);_0x42addd[_0x541a59]=this[_0xe08c('0xa')](_0x182740,_0x5d2e04);}if(_0x182740 instanceof _0x18b630){const _0x4a3b58=_0xe3658['get'](_0x182740[_0xe08c('0x4b')][_0xe08c('0x38')]);_0x42addd[_0x541a59]=this['_fixRange'](_0x182740,_0x4a3b58);}}_0x42addd[_0xe08c('0x4b')]&&(_0x42addd[_0xe08c('0x4b')]=_0xe3658['get'](_0x42addd[_0xe08c('0x4b')]['rootName']));}[_0xe08c('0x8f')](_0x2a483f,_0x4355d7){return this['editor'][_0xe08c('0x47')][_0xe08c('0xd1')](this[_0xe08c('0xa')](_0x2a483f[_0xe08c('0xe5')],_0x4355d7),this[_0xe08c('0xa')](_0x2a483f[_0xe08c('0x6a')],_0x4355d7));}['_fixPosition'](_0x63fc86,_0x4c6a49){return this[_0xe08c('0xb2')][_0xe08c('0x47')]['createPositionFromPath'](_0x4c6a49,_0x63fc86[_0xe08c('0x89')],_0x63fc86[_0xe08c('0x7f')]);}[_0xe08c('0xf')](_0x25d625){const _0x1cb41d=this[_0xe08c('0xc2')]['get'](_0x25d625[_0xe08c('0x8')][_0xe08c('0x4b')][_0xe08c('0x38')]),_0x4de156=this['_fixPosition'](_0x25d625['position'],_0x1cb41d),_0x294d13=null===_0x25d625[_0xe08c('0x9d')]?null:_0x25d625[_0xe08c('0x9d')]||this[_0xe08c('0xb2')][_0xe08c('0xad')][_0xe08c('0xa6')]('Users')['me']['id'],_0x17f000=_0x4de156[_0xe08c('0xec')],_0x5f035f=this[_0xe08c('0x45')],_0x28b763=[];for(const _0x1c2556 of _0x25d625[_0xe08c('0xa9')])if(_0x1c2556['is'](_0xe08c('0x2b')))_0x28b763['push'](this[_0xe08c('0x3d')](_0x1c2556));else for(let _0x1f1379=0x0;_0x1f1379<_0x1c2556[_0xe08c('0xdf')];_0x1f1379++)_0x28b763[_0xe08c('0xe')](new _0x45e8ea(_0xe08c('0xd'),{'vid':this[_0xe08c('0x45')]++}));const _0x10072d=this['_revisionId'];for(let _0x45f000=_0x5f035f;_0x45f000<_0x10072d;_0x45f000++)this[_0xe08c('0xe6')][_0xe08c('0x9a')](_0x45f000,{'userId':_0x294d13});_0x17f000[_0xe08c('0x18')](_0x4de156[_0xe08c('0x50')],_0x28b763);}[_0xe08c('0xa1')](_0x1ab13f){(_0x1ab13f=this[_0xe08c('0xc6')](_0x1ab13f,this[_0xe08c('0xc2')]))[_0xe08c('0x5b')]();const _0x33f72c=null===_0x1ab13f[_0xe08c('0x9d')]?null:_0x1ab13f[_0xe08c('0x9d')]||this[_0xe08c('0xb2')][_0xe08c('0xad')][_0xe08c('0xa6')]('Users')['me']['id'],_0x4a7b4d=_0x1ab13f['getMovedRangeStart'](),_0x402f53=_0x4a7b4d[_0xe08c('0xec')],_0x44b21c=_0x4a7b4d['offset'];!function _0x3f532c(_0xafa5b6,_0x5c86b6,_0x38d0ee,_0x504e6c){for(let _0x3f4308=_0x38d0ee;_0x3f4308<_0x504e6c;_0x3f4308++){const _0x27b436=_0x5c86b6[_0xe08c('0x3e')](_0x3f4308);_0x27b436['is'](_0xe08c('0x2b'),_0xe08c('0xd'))?_0xafa5b6['set'](_0x27b436[_0xe08c('0xa8')](_0xe08c('0x71')),{'userId':_0x33f72c}):(_0xafa5b6['set'](_0x27b436[_0xe08c('0xa8')](_0xe08c('0xe7')),{'userId':_0x33f72c}),_0x3f532c(_0xafa5b6,_0x27b436,0x0,_0x27b436['childCount']),_0xafa5b6[_0xe08c('0x9a')](_0x27b436[_0xe08c('0xa8')](_0xe08c('0x69')),{'userId':_0x33f72c}));}}(this['_touched'],_0x402f53,_0x44b21c,_0x44b21c+_0x1ab13f['howMany']);}[_0xe08c('0x26')](_0x28fd9f){const _0x3d93ef=null===(_0x28fd9f=this['_cloneOperation'](_0x28fd9f,this[_0xe08c('0xc2')]))['_authorId']?null:_0x28fd9f[_0xe08c('0x9d')]||this[_0xe08c('0xb2')][_0xe08c('0xad')][_0xe08c('0xa6')](_0xe08c('0xc9'))['me']['id'],_0x55fdf1=_0x28fd9f[_0xe08c('0xd7')][_0xe08c('0xec')],_0x1a315e=_0x28fd9f['sourcePosition'][_0xe08c('0xec')],_0x2ef7ac=_0x55fdf1[_0xe08c('0xa8')]('vid_end'),_0x6fcc80=_0x1a315e[_0xe08c('0xa8')](_0xe08c('0xe7'));_0x55fdf1['_setAttribute'](_0xe08c('0x69'),_0x1a315e[_0xe08c('0xa8')](_0xe08c('0x69'))),_0x1a315e[_0xe08c('0x53')](_0xe08c('0x69'),_0x2ef7ac),this[_0xe08c('0xe6')][_0xe08c('0x9a')](_0x6fcc80,{'userId':_0x3d93ef}),this[_0xe08c('0xe6')][_0xe08c('0x9a')](_0x2ef7ac,{'userId':_0x3d93ef}),_0x28fd9f[_0xe08c('0x5b')]();}[_0xe08c('0x54')](_0x3f1953){const _0x26e8fe=null===(_0x3f1953=this[_0xe08c('0xc6')](_0x3f1953,this['_idsRoots']))[_0xe08c('0x9d')]?null:_0x3f1953[_0xe08c('0x9d')]||this['editor']['plugins'][_0xe08c('0xa6')](_0xe08c('0xc9'))['me']['id'],_0x379ed4=_0x3f1953[_0xe08c('0x33')],_0x3de718=_0x3f1953['splitPosition'][_0xe08c('0xec')];_0x3f1953[_0xe08c('0x5b')]();const _0x5f1f34=_0x3de718[_0xe08c('0xa8')]('vid_end'),_0x2eeae2=_0x3f1953[_0xe08c('0x56')][_0xe08c('0x9b')];if(_0x379ed4){const _0x2277af=_0x2eeae2['getAttribute']('vid_end'),_0x18e2f3=_0x3de718['getAttribute'](_0xe08c('0x69'));_0x3de718[_0xe08c('0x53')](_0xe08c('0x69'),_0x2277af),_0x2eeae2[_0xe08c('0x53')](_0xe08c('0x69'),_0x18e2f3),this[_0xe08c('0xe6')]['set'](_0x3de718[_0xe08c('0xa8')](_0xe08c('0x69')),{'userId':_0x26e8fe}),this[_0xe08c('0xe6')][_0xe08c('0x9a')](_0x2eeae2['getAttribute']('vid_start'),{'userId':_0x26e8fe});}else{const _0x124780=this['_revisionId']++,_0x3a2382=this[_0xe08c('0x45')]++;_0x3de718[_0xe08c('0x53')](_0xe08c('0x69'),_0x124780),_0x2eeae2[_0xe08c('0x53')](_0xe08c('0xe7'),_0x3a2382),_0x2eeae2[_0xe08c('0x53')]('vid_end',_0x5f1f34),this[_0xe08c('0xe6')][_0xe08c('0x9a')](_0x124780,{'userId':_0x26e8fe}),this[_0xe08c('0xe6')][_0xe08c('0x9a')](_0x3a2382,{'userId':_0x26e8fe});}}[_0xe08c('0xa2')](_0x1bda00){if(!_0x1bda00[_0xe08c('0xcd')])return;const _0x3cfe8d=(_0x1bda00=this['_cloneOperation'](_0x1bda00,this[_0xe08c('0x4c')]))[_0xe08c('0xc8')]?_0x1bda00[_0xe08c('0xc8')][_0xe08c('0x4b')]:null,_0x9943f4=_0x1bda00['newRange']?_0x1bda00['newRange']['root']:null;_0x3cfe8d&&this[_0xe08c('0x16')]['delete'](_0x1bda00[_0xe08c('0x96')]),_0x9943f4&&this['_markers']['set'](_0x1bda00['name'],_0x1bda00[_0xe08c('0x34')][_0xe08c('0xdd')]());const _0x24a8cd=null===_0x1bda00[_0xe08c('0x9d')]?null:_0x1bda00[_0xe08c('0x9d')]||this[_0xe08c('0xb2')][_0xe08c('0xad')][_0xe08c('0xa6')]('Users')['me']['id'],_0x442312=_0x1bda00[_0xe08c('0x96')];if(!this[_0xe08c('0x95')]['has'](_0x442312))return void this[_0xe08c('0x95')][_0xe08c('0x9a')](_0x442312,{'range':_0x1bda00[_0xe08c('0xc8')],'userId':_0x24a8cd});const _0x12b544=this[_0xe08c('0x95')][_0xe08c('0xa6')](_0x442312),_0x260c98=_0x12b544['range'],_0xfdc8ac=_0x1bda00[_0xe08c('0x34')];null==_0x260c98&&null==_0xfdc8ac||_0x260c98&&_0xfdc8ac&&_0x260c98['isEqual'](_0xfdc8ac)?this[_0xe08c('0x95')][_0xe08c('0x76')](_0x1bda00[_0xe08c('0x96')]):_0x12b544[_0xe08c('0x19')]=_0x24a8cd;}}function J(_0x55a7de){const _0x908456=new _0x588493();_0x908456['rootName']=_0x55a7de[_0xe08c('0x38')];for(const _0x55d30d of _0x55a7de[_0xe08c('0x0')]()){const _0x44212a=_0x55d30d['_clone'](!0x0);_0x908456[_0xe08c('0xd9')](_0x44212a);}return _0x908456;}function j(_0x27dd33,_0x10e681,_0x2d1e71){const _0xc60e4a='elementEnd'==_0x27dd33[_0xe08c('0x74')]?_0x2d1e71['createPositionAt'](_0x27dd33[_0xe08c('0x72')],_0xe08c('0x6a')):_0x2d1e71[_0xe08c('0x8b')](_0x27dd33[_0xe08c('0x72')]);return _0x2d1e71[_0xe08c('0x22')](_0x10e681,_0xc60e4a[_0xe08c('0x89')],_0xc60e4a[_0xe08c('0x7f')]);}function B(_0x4a6ffe,_0xec4d7e,_0x3411c5){const _0x4b865f=_0xe08c('0xcb')==_0x4a6ffe['type']?_0x3411c5[_0xe08c('0x7d')](_0x4a6ffe[_0xe08c('0x72')],0x0):_0x3411c5[_0xe08c('0x14')](_0x4a6ffe['item']);return _0x3411c5[_0xe08c('0x22')](_0xec4d7e,_0x4b865f['path'],_0x4b865f['stickiness']);}
@@ -0,0 +1,21 @@
1
+ import '../theme/revisionviewer.css';
2
+ /**
3
+ function printTape( tape ) {
4
+ const elements = tape.map(
5
+ item => item.item.data ? item.item.data : item.type == 'elementStart' ? '<' + item.item.name + '>' : '</' + item.item.name + '>'
6
+ ).join( '' );
7
+
8
+ const signs = tape.map( v => {
9
+ const item = v.item;
10
+ const sign = ( v.isAdded || v.isAddSuggestion ) ? v.isRemoved ? '=' : '+' : v.isRemoved ? '-' : ' ';
11
+ const len = item.data ? item.data.length : v.type == 'elementStart' ? item.name.length + 2 : item.name.length + 3;
12
+
13
+ return sign.repeat( len );
14
+ } ).join( '' );
15
+
16
+ console.log( elements );
17
+ console.log( signs );
18
+ }
19
+
20
+ window.printTape = printTape;
21
+ /**/