@ckeditor/ckeditor5-revision-history 38.0.0-rc.1 → 38.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +6 -6
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3a7d=['rootName','ck-suggestion-marker-','pairId','target','RevisionViewer','hasClass','_balloon','requires','_changeIdToChange','abs','attributes','keys','processor','addMarker:revision','toModel','vid_end','nodeAfter','_sortAndFilterDiffChanges','parse','ck-revision-history-root-add','getDomRoot','listenTo','then','domConverter','observeMarkers','_makeModelFromViewString','get','restoreRevision','model','uiElement','checkAttribute','upcast','insertions','conversion','destroy','ck-suggestion-marker--active','showNextChange','ck-revision-history-root--active','enableReadOnlyMode','nextSibling','addRevision','unshift','next','isAdded','split','deletion','enqueueChange','item','toData','children','changeId','highest','_markMismatchedRemovedTags','markerToData','deletions','addHighlight','indexOf','addRevisionData','dataDowncast','concat','splice','view','suggestion:','downcastDispatcher','_getDiff','revision','plugins','isAtStart','consume','attributesAfter','oldRevisionId','slice','previousPosition','isBefore','element:pre','roots','offsetSize','type','_getViewObj','elementStart','isNavigationMode','index','return','attachChange','revision-viewer','low','bind','revisionHistoryAttachChange','high','data-revision-','elementEnd','_getChangeFromId','addMarker:revision-suggestion:insertion','isObject','POSITIVE_INFINITY','markerToHighlight','execute','editing','isAttached','ck-suggestion-preview-marker','document','getWalker','ck-editor__editable__overlay','set','ck-revision-history-root-','_threeWayMerge','flat','startIndex','changes','name','_getRevisionsRange','removeMarker:revision','_removeMissingPairs','sort','delete','revision-suggestion','distance','pluginName','map','unbindElementFromMarkerName','_getViewForChange','getAttribute','revision:','forward','comment','isContent','removeAttribute','markerName','_removeRevisionMarkers','range','removeClass','_fixObsoleteTags','useFillerType','insertion','activeView','setAttribute','isRemoveSuggestion','error','change','string','toViewPosition','activeChange','_changeView','for','_processTape','isCollapsed','init','markerRange','endIndex','locale','createRange','ck-suggestion-marker-split','addClass','from','isAfter','isRemoved','test','getRoot','vid','start','filter','_findChangeIdFromDomTarget','text','compare','isIncorrect','getChild','editingDowncast','isReady','revisionHistoryLabel','_activeViewTarget','_update','length','numberOfChanges','createPositionBefore','markersEnd','_refreshStartEndIndex','isAddSuggestion','remove','loadRevisionData','all','nextPosition','data','level','_appendChild','_step','reconvertMarker','change:isEnabled','add','createAttributeElement','bindElementToMarker','_cleanUp','mapper','isInline','shift','config','mouseover','bottom','userId','getRootNames','change:isReady','getRevision','adapter','softBreak','addMarker:revision-suggestion:deletion','schema','revisionHistory','_data','dataToMarker','wrap','consumable','createPositionFromPath','includes','domEvent','getCustomProperty','detachRoot','has','startsWith','isOnRoot','isEqual','data-change-id','_removeUnsupportedChanges','viewItem','getRevisionData','markerNameToElements','_markSuggestions','element','addRoot','diff','_makeTape','end','getItems','span','attributesBefore','commands','getAttributes','getIndex','_markInsertions','collaboration.channelId','_initInteractions','getClientRects','change:activeView','createRevision','side','WidgetToolbarRepository','newRevisionId','forEach','revision-comment:','change:numberOfChanges','isBlock','refresh','diffData','_markMarkers','markersStart','attribute:vid','maxOffset','marked','findIndex','insert','toViewElement','isLimit','right','hasAttribute','isSuggestion','_cleanMarkers','_makeModelFromTape','markers','updatePosition','isEnabled','createRangeIn','_setDistance','createUIElement','_setConversion','-new','resolve','pop','writer','merge','modelRange','ck-suggestion-preview-marker-','repository','parent','selection','push','affectsData','editor','vid_start','authors','mapViewToDom'];(function(_0x106a06,_0x3a7dd8){const _0x2740d9=function(_0x63b02e){while(--_0x63b02e){_0x106a06['push'](_0x106a06['shift']());}};_0x2740d9(++_0x3a7dd8);}(_0x3a7d,0xa8));const _0x2740=function(_0x106a06,_0x3a7dd8){_0x106a06=_0x106a06-0x0;let _0x2740d9=_0x3a7d[_0x106a06];return _0x2740d9;};import{Plugin as _0x5c7b28,Command as _0x1ea961}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x226e14}from'ckeditor5/src/utils';import{ContextualBalloon as _0x5b0197}from'ckeditor5/src/ui';import{DocumentFragment as _0x434b7b,Element as _0x3cc323,Text as _0x14e401,ViewDocumentFragment as _0xb3ff24,ViewText as _0xf22689,ViewElement as _0x272dd6,ViewContainerElement as _0x4b9b94,ViewAttributeElement as _0x35588d,ViewEmptyElement as _0x443c5f,ViewRawElement as _0xfd704b,ViewUIElement as _0x2f6f25}from'ckeditor5/src/engine';import{Users as _0x48d13e,getMarkerDomElement as _0x579c97}from'ckeditor5-collaboration/src/collaboration-core';import _0x376852 from'./ui/revisionviewer/changedetailsview';import _0x367d49 from'./revisionsrepository';import _0x699e92 from'./changeitem';import{default as _0x325185}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x290fc3}from'lodash-es';const X={'c':_0x4b9b94,'a':_0x35588d,'e':_0x443c5f,'r':_0xfd704b,'u':_0x2f6f25};export default class w extends _0x5c7b28{static get[_0x2740('0xed')](){return _0x2740('0x7c');}static get[_0x2740('0x7f')](){return[_0x48d13e,_0x5b0197,_0x367d49];}constructor(_0x311cdd){super(_0x311cdd),this[_0x2740('0x6f')]=this['editor'][_0x2740('0xba')][_0x2740('0x92')]('RevisionsRepository'),this[_0x2740('0xdf')](_0x2740('0x105'),null),this[_0x2740('0xdf')]('activeView',null),this[_0x2740('0x1')]=null,this[_0x2740('0xdf')](_0x2740('0x3b'),null),this[_0x2740('0xdf')](_0x2740('0x11f'),!0x1),this[_0x2740('0xdf')]('isEnabled',!0x0),this['on'](_0x2740('0x12'),(_0xdd18f8,_0x5b500b,_0x396373)=>{this[_0x2740('0x105')]=null,this[_0x2740('0xfe')]=null,this[_0x2740('0x74')]['editing'][_0x2740('0xb5')][_0x2740('0x102')](_0x45aaee=>{for(const _0x464496 of this[_0x2740('0x74')][_0x2740('0xd9')][_0x2740('0xb5')][_0x2740('0xdc')][_0x2740('0xc3')])_0x396373?_0x45aaee[_0x2740('0xfa')](_0x2740('0xde'),_0x464496):_0x45aaee[_0x2740('0x110')]('ck-editor__editable__overlay',_0x464496);});}),this[_0x2740('0xce')](_0x2740('0xc8'))['to'](this,'activeChange',_0x3d0240=>null!==_0x3d0240),this[_0x2740('0xce')]('currentChangeNumber')['to'](this,_0x2740('0x11f'),this,_0x2740('0x3b'),this,_0x2740('0x105'),(_0x52159f,_0x1c2d1d,_0x41345a)=>_0x52159f&&_0x41345a?_0x1c2d1d['changes'][_0x2740('0x43')](_0x41345a):0x0),this[_0x2740('0xce')](_0x2740('0x4'))['to'](this,_0x2740('0x11f'),this,_0x2740('0x3b'),(_0x47ab79,_0x234a31)=>_0x47ab79?_0x234a31[_0x2740('0xe4')]['length']:0x0),this['_changeView']=null,this[_0x2740('0x80')]=new Map(),this[_0x2740('0x21')]=null,this[_0x2740('0x7e')]=this[_0x2740('0x74')][_0x2740('0xba')][_0x2740('0x92')](_0x5b0197);}[_0x2740('0x10a')](){const _0x1f09c3=this[_0x2740('0x74')],_0x241295=new ShowChangeCommand(_0x1f09c3,{'direction':'backward'}),_0x3a3529=new ShowChangeCommand(_0x1f09c3,{'direction':_0x2740('0xf3')});(_0x1f09c3[_0x2740('0x41')][_0x2740('0x13')]('showPreviousChange',_0x241295),_0x1f09c3[_0x2740('0x41')][_0x2740('0x13')](_0x2740('0x9c'),_0x3a3529),_0x1f09c3[_0x2740('0x41')]['add'](_0x2740('0x93'),new RestoreRevisionCommand(_0x1f09c3)),this['on'](_0x2740('0x4f'),()=>{_0x241295[_0x2740('0x51')](),_0x3a3529[_0x2740('0x51')]();}),this[_0x2740('0x67')](),this[_0x2740('0x46')](),_0x1f09c3[_0x2740('0x9e')](_0x2740('0xcc')),_0x1f09c3[_0x2740('0xba')][_0x2740('0x2f')]('WidgetToolbarRepository'))&&_0x1f09c3[_0x2740('0xba')]['get'](_0x2740('0x4b'))['forceDisabled'](_0x2740('0xcc'));}async[_0x2740('0x36')](_0x55a280){await this['loadRevisionData'](_0x55a280);const _0x4c5ef8={};for(const _0x1f0d86 in _0x55a280[_0x2740('0x52')]){if(_0x55a280['diffData'][_0x1f0d86][_0x2740('0xcb')]&&!_0x55a280['diffData'][_0x1f0d86][_0x2740('0xcb')][_0x2740('0xda')])continue;const _0x945c4a=this[_0x2740('0xf8')](JSON[_0x2740('0x8a')](_0x55a280['diffData'][_0x1f0d86][_0x2740('0x98')])),_0x57c909=this[_0x2740('0x74')][_0x2740('0xd9')]['view'][_0x2740('0xdc')],_0x24db17=new _0xb3ff24(_0x57c909,_0x945c4a[_0x2740('0xee')](_0x2b90ab=>this[_0x2740('0xc6')](_0x2b90ab)));this['editor'][_0x2740('0xd')][_0x2740('0x84')][_0x2740('0xfc')](_0x2740('0x57')),_0x4c5ef8[_0x1f0d86]=this[_0x2740('0x74')][_0x2740('0xd')][_0x2740('0x84')][_0x2740('0xa8')](_0x24db17),this[_0x2740('0x74')][_0x2740('0xd')][_0x2740('0x84')]['useFillerType']('default');}return _0x4c5ef8;}async['getRevisionRootsAttributes'](_0x2cde35){await this[_0x2740('0xa')](_0x2cde35);const _0x3461c3={};for(const _0x55418d in _0x2cde35['diffData'])_0x2cde35[_0x2740('0x52')][_0x55418d][_0x2740('0xcb')]&&!_0x2cde35[_0x2740('0x52')][_0x55418d][_0x2740('0xcb')]['isAttached']||(_0x3461c3[_0x55418d]=_0x2cde35[_0x2740('0x52')][_0x55418d][_0x2740('0xbd')]||{});return _0x3461c3;}[_0x2740('0xf8')](_0x571230){return(_0x571230=_0x571230[_0x2740('0x118')](_0x4d8901=>!_0x4d8901[_0x2740('0xe5')]||'revision-start'!==_0x4d8901['name']&&'revision-end'!==_0x4d8901[_0x2740('0xe5')]))['forEach'](_0x5f7fa6=>{_0x2740('0x103')!=typeof _0x5f7fa6&&(_0x5f7fa6[_0x2740('0xa9')]=this[_0x2740('0xf8')](_0x5f7fa6[_0x2740('0xa9')]),_0x5f7fa6['attributes']=_0x5f7fa6[_0x2740('0x82')][_0x2740('0x118')](_0x3a4a63=>!_0x3a4a63[0x0][_0x2740('0x30')](_0x2740('0xd1'))));}),_0x571230;}async[_0x2740('0x11b')](_0x541a9e,_0x4f23ce,_0x49c095=!0x1){if(!this['isEnabled'])return;const _0x52d2ae=this[_0x2740('0x3b')],_0x4ab82f=this[_0x2740('0x6f')],_0xf1547a=_0x2740('0x103')==typeof _0x541a9e?_0x4ab82f[_0x2740('0x20')](_0x541a9e):_0x541a9e,_0x1cace4=_0x2740('0x103')==typeof _0x4f23ce?_0x4ab82f['getRevision'](_0x4f23ce):_0x4f23ce,_0x307dd3=_0xf1547a['id'],_0x553ff9=_0x1cace4?_0x1cace4['id']:null;if(!_0x49c095&&this[_0x2740('0x3b')]&&this['diff']['newRevisionId']===_0x307dd3&&this['diff'][_0x2740('0xbe')]===_0x553ff9)return Promise[_0x2740('0x69')]();this[_0x2740('0x11f')]=!0x1,this['activeView']=null,this[_0x2740('0x105')]=null,this[_0x2740('0x3b')]=new _0x325185(_0x307dd3,_0x553ff9);const _0x3995a7=this[_0x2740('0xe6')](_0xf1547a,_0x1cace4,!0x0)[_0x2740('0xee')](_0x1efc33=>this[_0x2740('0xa')](_0x1efc33));return _0x3995a7[_0x2740('0x72')](new Promise(_0x5fca7e=>{setTimeout(_0x5fca7e,0x14);})),Promise[_0x2740('0xb')](_0x3995a7)['then'](()=>{if(!this[_0x2740('0x63')])return;this[_0x2740('0x16')]();const _0x1bf673=this[_0x2740('0xb8')](_0x307dd3,_0x553ff9);for(const _0x33c7b0 of _0x1bf673['changes'])this[_0x2740('0x80')][_0x2740('0xdf')](_0x33c7b0['id'],_0x33c7b0);this[_0x2740('0x74')][_0x2740('0x94')][_0x2740('0xa6')]({'isUndoable':!0x1},_0x22408c=>{for(const _0x3fe96c of this[_0x2740('0x74')][_0x2740('0x94')]['document']['getRootNames']())_0x22408c[_0x2740('0x2e')](_0x3fe96c);for(const _0x3cd381 of Object['keys'](_0x1bf673['model'])){const _0xbe5519=_0x22408c[_0x2740('0x3a')](_0x3cd381);for(const _0x462fef of Object[_0x2740('0x83')](_0x1bf673[_0x2740('0x82')][_0x3cd381]))_0x22408c['setAttribute'](_0x462fef,_0x1bf673['attributes'][_0x3cd381][_0x462fef],_0xbe5519);_0x22408c[_0x2740('0x59')](_0x1bf673['model'][_0x3cd381],_0xbe5519,0x0);}}),this['diff']['_setChanges'](this[_0x2740('0x89')](_0x1bf673['changes'])),this[_0x2740('0x11f')]=!0x0;})['catch'](_0x50ca43=>{console[_0x2740('0x101')](_0x50ca43),this['_cleanUp'](),_0x52d2ae&&(this[_0x2740('0x3b')]=_0x52d2ae),this[_0x2740('0x11f')]=!0x0;});}[_0x2740('0xb1')](_0x138176,_0xc7b026){const _0x30589a=this[_0x2740('0x6f')][_0x2740('0x49')](_0x138176);return _0x30589a['on']('_update',(_0x28bf6b,_0x216e23,_0xe3cdd5)=>_0xc7b026(_0x216e23,_0xe3cdd5,_0x30589a)),this['repository'][_0x2740('0xa0')](_0x30589a),_0x30589a;}[_0x2740('0xa')](_0x227216){if(!_0x227216||_0x227216[_0x2740('0x52')])return Promise['resolve']();{const _0x54c526=this[_0x2740('0x74')][_0x2740('0x1a')][_0x2740('0x92')](_0x2740('0x45'));return this['adapter'][_0x2740('0x20')]({'channelId':_0x54c526,'revisionId':_0x227216['id']})[_0x2740('0x8e')](_0xa52b9a=>{_0x227216[_0x2740('0x2')]({'diffData':_0xa52b9a['diffData']},!0x0);});}}[_0x2740('0x16')](){this[_0x2740('0x105')]=null,this[_0x2740('0x5f')](),this[_0x2740('0x106')]&&this[_0x2740('0x106')]['destroy'](),this[_0x2740('0x106')]=null,this[_0x2740('0x80')]['clear'](),this['editor'][_0x2740('0x94')][_0x2740('0xa6')]({'isUndoable':!0x1},_0x5bc658=>{for(const _0x1f52d2 of this['editor'][_0x2740('0x94')]['document'][_0x2740('0x1e')]())_0x5bc658[_0x2740('0x2e')](_0x1f52d2);});}[_0x2740('0x89')](_0x598bef){const _0x1e5524=[],_0x3189b1=new Map();for(const _0x467b1d of this[_0x2740('0x74')][_0x2740('0x94')]['document']['getRootNames']()){const _0x1885d4=this[_0x2740('0x74')]['editing']['view']['getDomRoot'](_0x467b1d);if(!_0x1885d4)continue;const _0x5cf9a4=_0x1885d4[_0x2740('0x47')]()[_0x2740('0xa7')](0x0);_0x5cf9a4&&(_0x1e5524[_0x2740('0x72')](_0x467b1d),_0x3189b1[_0x2740('0xdf')](_0x467b1d,_0x5cf9a4));}return _0x1e5524['sort']((_0x1ac543,_0x2b8eb7)=>{const _0x3660a9=_0x3189b1['get'](_0x1ac543),_0x404005=_0x3189b1[_0x2740('0x92')](_0x2b8eb7);return _0x3660a9['y']-_0x404005['y']||_0x3660a9['x']-_0x404005['x'];}),(_0x598bef=_0x598bef[_0x2740('0x118')](_0x3e3637=>_0x1e5524[_0x2740('0x2b')](_0x3e3637[_0x2740('0x78')])))['sort']((_0x30aa98,_0xf7561a)=>_0x1e5524[_0x2740('0xb0')](_0x30aa98[_0x2740('0x78')])-_0x1e5524['indexOf'](_0xf7561a[_0x2740('0x78')])),_0x598bef;}[_0x2740('0x3c')](_0x2fc39c){const _0x257b49=Array['from'](_0x2fc39c[_0x2740('0x61')])[_0x2740('0x118')](([_0x3d913b,_0x1fae76])=>_0x3d913b[_0x2740('0x30')]('revision:')&&!_0x1fae76['isCollapsed']),_0x5eecf1=Array['from'](this[_0x2740('0x74')][_0x2740('0x94')][_0x2740('0x64')](_0x2fc39c)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x257b49[_0x2740('0x3')])for(const _0x4661bf of _0x5eecf1){const [_0x534386,_0x4f4088]=_0x257b49[0x0],[,_0xaf62a0,_0x56f431]=_0x534386[_0x2740('0xa4')](':');if(_0x4f4088[_0x2740('0x3d')]['isEqual'](_0x4661bf['nextPosition'])&&_0x257b49[_0x2740('0x19')](),(_0x4661bf[_0x2740('0xc0')][_0x2740('0x32')](_0x4f4088[_0x2740('0x117')])||_0x4661bf[_0x2740('0xc0')][_0x2740('0x112')](_0x4f4088[_0x2740('0x117')]))&&('insertion'==_0xaf62a0?_0x4661bf[_0x2740('0xa3')]={'userId':_0x56f431}:_0x2740('0xa5')==_0xaf62a0&&(_0x4661bf[_0x2740('0x113')]={'userId':_0x56f431})),0x0==_0x257b49['length'])break;}return _0x5eecf1;}['_refreshStartEndIndex'](_0x4e5153){const _0x66aab9=new Map();for(let _0x1b4a86=0x0;_0x1b4a86<_0x4e5153[_0x2740('0x3')];_0x1b4a86++)_0x2740('0x11a')===_0x4e5153[_0x1b4a86][_0x2740('0xc5')]?(_0x4e5153[_0x1b4a86][_0x2740('0xa7')][_0x2740('0xe3')]=_0x1b4a86,_0x4e5153[_0x1b4a86][_0x2740('0xa7')][_0x2740('0x10c')]=_0x1b4a86):(_0x2740('0xc7')===_0x4e5153[_0x1b4a86][_0x2740('0xc5')]?_0x4e5153[_0x1b4a86]['item'][_0x2740('0xe3')]=_0x1b4a86:'elementEnd'===_0x4e5153[_0x1b4a86]['type']&&(_0x4e5153[_0x1b4a86][_0x2740('0xa7')]['endIndex']=_0x1b4a86),_0x66aab9[_0x2740('0xdf')](_0x4e5153[_0x1b4a86]['id'],_0x1b4a86));for(const _0x348440 of _0x66aab9['values']())_0x2740('0xc7')===_0x4e5153[_0x348440][_0x2740('0xc5')]?_0x4e5153[_0x348440][_0x2740('0xa7')][_0x2740('0x10c')]=_0x66aab9[_0x2740('0x92')](_0x4e5153[_0x348440][_0x2740('0x7a')]):_0x2740('0xd2')===_0x4e5153[_0x348440][_0x2740('0xc5')]&&(_0x4e5153[_0x348440][_0x2740('0xa7')][_0x2740('0xe3')]=_0x66aab9[_0x2740('0x92')](_0x4e5153[_0x348440]['pairId']));}[_0x2740('0x108')](_0x29bffd){for(let _0x5ef277=0x0;_0x5ef277<_0x29bffd[_0x2740('0x3')];_0x5ef277++){if('elementStart'===_0x29bffd[_0x5ef277]['type'])_0x29bffd[_0x5ef277][_0x2740('0xa7')][_0x2740('0xe3')]=_0x5ef277;else{if(_0x2740('0xd2')===_0x29bffd[_0x5ef277][_0x2740('0xc5')]){_0x29bffd[_0x5ef277][_0x2740('0xa7')][_0x2740('0x10c')]=_0x5ef277;const _0x23cebb=_0x29bffd[_0x5ef277][_0x2740('0xa7')]['startIndex'];_0x29bffd[_0x23cebb][_0x2740('0x7a')]=_0x29bffd[_0x5ef277]['id'],_0x29bffd[_0x5ef277]['pairId']=_0x29bffd[_0x23cebb]['id'];}else _0x29bffd[_0x5ef277][_0x2740('0xa7')][_0x2740('0xe3')]=_0x5ef277,_0x29bffd[_0x5ef277]['item'][_0x2740('0x10c')]=_0x5ef277,_0x29bffd[_0x5ef277]['pairId']=null;}_0x29bffd[_0x5ef277]['markersStart']||(_0x29bffd[_0x5ef277][_0x2740('0x54')]=[],_0x29bffd[_0x5ef277]['markersEnd']=[]);}}[_0x2740('0x44')](_0x39a565,_0x32dba7){const _0x334c46=_0x39a565[_0x2740('0x118')](_0x43c660=>!_0x43c660[_0x2740('0xa3')]);for(let _0x37dd24=0x0;_0x37dd24<_0x32dba7[_0x2740('0x3')];_0x37dd24++)_0x32dba7[_0x37dd24][_0x2740('0xa3')]&&(_0x334c46[_0x37dd24][_0x2740('0xa3')]=_0x32dba7[_0x37dd24][_0x2740('0xa3')]);}['_makeModelFromViewString'](_0xe69602){const _0x5899c4=JSON['parse'](_0xe69602),_0x1afd55=this['editor'][_0x2740('0xd9')][_0x2740('0xb5')][_0x2740('0xdc')],_0x2cc83d=new _0xb3ff24(_0x1afd55,_0x5899c4[_0x2740('0xee')](_0x1110a8=>this[_0x2740('0xc6')](_0x1110a8)));return this['editor'][_0x2740('0xd')][_0x2740('0x86')](_0x2cc83d);}[_0x2740('0xc6')](_0x55c45d){const _0x3e8495=this[_0x2740('0x74')]['editing'][_0x2740('0xb5')][_0x2740('0xdc')];if(_0x2740('0x103')==typeof _0x55c45d)return new _0xf22689(_0x3e8495,_0x55c45d);{const _0x2eb675=_0x55c45d[_0x2740('0xa9')][_0x2740('0xee')](_0x1be391=>this[_0x2740('0xc6')](_0x1be391));return new(X[_0x55c45d[(_0x2740('0xc5'))]]||_0x272dd6)(_0x3e8495,_0x55c45d[_0x2740('0xe5')],_0x55c45d[_0x2740('0x82')],_0x2eb675);}}[_0x2740('0xb8')](_0x4c1672,_0x37f9f=null){const _0x52f546=this[_0x2740('0x6f')]['getRevision'](_0x4c1672),_0x158925=_0x37f9f?this[_0x2740('0x6f')][_0x2740('0x20')](_0x37f9f):null,_0x42d249=this['_getRevisionsRange'](_0x52f546,_0x158925),_0xf1e3e0=_0x42d249[_0x42d249['length']-0x1],_0x543e20=new Map(),_0x175977={'model':{},'attributes':{},'changes':[]},_0x556cc7=new Set(),_0x394b90=new Map();for(let _0x5d0cef=_0x42d249[_0x2740('0x3')]-0x1;_0x5d0cef>=0x0;_0x5d0cef--){const _0x27819c=_0x42d249[_0x5d0cef];for(const _0x98b069 of Object['keys'](_0x27819c['diffData']))if(_0x27819c[_0x2740('0x52')][_0x98b069][_0x2740('0xcb')]){const _0x374cb0=_0x27819c[_0x2740('0x52')][_0x98b069][_0x2740('0xcb')];_0x374cb0[_0x2740('0xda')]?(_0x556cc7[_0x2740('0x13')](_0x98b069),_0x394b90[_0x2740('0x2f')](_0x98b069)&&_0x394b90[_0x2740('0x92')](_0x98b069)['userId']==_0x374cb0[_0x2740('0x1d')]?_0x394b90[_0x2740('0xea')](_0x98b069):_0x394b90[_0x2740('0xdf')](_0x98b069,_0x374cb0)):_0x394b90[_0x2740('0x2f')](_0x98b069)?(_0x556cc7[_0x2740('0xea')](_0x98b069),_0x394b90['delete'](_0x98b069)):(_0x556cc7[_0x2740('0x13')](_0x98b069),_0x394b90[_0x2740('0xdf')](_0x98b069,_0x374cb0));}else _0x556cc7[_0x2740('0x13')](_0x98b069);}for(const _0x28d2d6 of _0x556cc7){const _0x129646=_0x394b90[_0x2740('0x2f')](_0x28d2d6)&&!_0x394b90[_0x2740('0x92')](_0x28d2d6)['isAttached'];let _0x219681=_0x129646?_0x42d249[_0x2740('0x3')]-0x1:0x0;const _0x5468eb=_0x129646?-0x1:0x1;for(;_0x42d249[_0x219681];){const _0x17568d=_0x42d249[_0x219681];if(_0x17568d['diffData'][_0x28d2d6]){const _0x5e2276=_0x129646?_0x17568d[_0x2740('0x52')][_0x28d2d6][_0x2740('0x40')]:_0x17568d[_0x2740('0x52')][_0x28d2d6][_0x2740('0xbd')];_0x175977[_0x2740('0x82')][_0x28d2d6]=_0x5e2276?_0x290fc3(_0x5e2276):{};break;}_0x219681+=_0x5468eb;}}for(const _0x2a9f10 of _0x42d249){_0x2a9f10['model']={};for(const _0x447e9f of _0x2a9f10[_0x2740('0x76')])_0x543e20['set'](_0x447e9f['id'],_0x447e9f);for(const _0x1b7cf0 of _0x556cc7){const _0x52cdf5=_0x2a9f10[_0x2740('0x52')][_0x1b7cf0]?_0x2a9f10['diffData'][_0x1b7cf0][_0x2740('0x98')]:'[]',_0x450429=_0x2a9f10[_0x2740('0x52')][_0x1b7cf0]?_0x2a9f10[_0x2740('0x52')][_0x1b7cf0][_0x2740('0xae')]:'[]';_0x2a9f10[_0x2740('0x94')][_0x1b7cf0]={'insertions':this[_0x2740('0x91')](_0x52cdf5),'deletions':this[_0x2740('0x91')](_0x450429)};}}for(const _0x43efda of _0x556cc7){let _0xe17b5d=null,_0x151382=0x0;const _0x285699=new Map(Array[_0x2740('0x111')](_0x52f546[_0x2740('0x94')][_0x43efda][_0x2740('0x98')][_0x2740('0x61')])[_0x2740('0x118')](([_0x24b6cf])=>!_0x24b6cf[_0x2740('0x30')]('revision:')));let _0x316fec=0x0;for(const _0x125306 of _0x42d249){const _0x5b0a09=this[_0x2740('0x3c')](_0x125306[_0x2740('0x94')][_0x43efda]['insertions']);_0x125306==_0x52f546?(_0xe17b5d=_0x5b0a09,_0x151382=_0xe17b5d['length'],_0xe17b5d['forEach'](_0x112084=>{_0x112084['id']=_0x316fec++;}),this['_processTape'](_0xe17b5d)):this['_markInsertions'](_0xe17b5d,_0x5b0a09);const _0x485842=_0xe17b5d[_0x2740('0x118')](_0x4f1dfe=>!_0x4f1dfe[_0x2740('0xa3')])['map'](_0x3dd553=>_0x3dd553['id']);let _0x1f72de=0x0;const _0x1ab49d=this[_0x2740('0x3c')](_0x125306['model'][_0x43efda][_0x2740('0xae')]);_0x1ab49d[_0x2740('0x4d')](_0x12a686=>{_0x12a686['isRemoved']?_0x12a686['id']=_0x151382++:_0x12a686['id']=_0x485842[_0x1f72de++];}),this[_0x2740('0x108')](_0x1ab49d),this[_0x2740('0x65')](_0xe17b5d,_0x2740('0xa3')),this[_0x2740('0x65')](_0x1ab49d,'isRemoved'),_0x125306==_0x52f546&&this[_0x2740('0x53')](_0xe17b5d,_0x285699),_0xe17b5d=this['_joinTapes'](_0xe17b5d,_0x1ab49d),this[_0x2740('0x7')](_0xe17b5d),this[_0x2740('0x65')](_0xe17b5d,_0x2740('0x113'));}_0xe17b5d=_0xe17b5d['filter'](_0x26c2d6=>!(_0x26c2d6[_0x2740('0xa3')]&&_0x26c2d6[_0x2740('0x113')]));const _0x1e0f6c=new Map(_0xf1e3e0[_0x2740('0x94')][_0x43efda][_0x2740('0xae')][_0x2740('0x61')]),_0xd7bb5b=new Set(_0x285699[_0x2740('0x83')]());for(const _0x512180 of _0x1e0f6c['keys']())_0xd7bb5b[_0x2740('0xea')](_0x512180);this[_0x2740('0x38')](_0xe17b5d,_0xd7bb5b),this['_fixObsoleteTags'](_0xe17b5d),_0xe17b5d=this[_0x2740('0xe8')](_0xe17b5d),_0xe17b5d=this[_0x2740('0xac')](_0xe17b5d),_0xe17b5d=this[_0x2740('0x34')](_0xe17b5d);const {root:_0x31c8f9,changes:_0x26ba00}=this[_0x2740('0x60')](_0xe17b5d,_0x543e20,_0x43efda);_0x175977[_0x2740('0x94')][_0x43efda]=_0x31c8f9;const _0x125ce1=_0x394b90[_0x2740('0x92')](_0x43efda);if(_0x125ce1){const _0x28e68d=_0x543e20[_0x2740('0x92')](_0x125ce1[_0x2740('0x1d')]),_0x44b359=new _0x699e92({'author':_0x28e68d,'type':_0x125ce1[_0x2740('0xda')]?_0x2740('0x13'):_0x2740('0x9'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x43efda});_0x26ba00[_0x2740('0xa1')](_0x44b359),_0x175977['attributes'][_0x43efda][_0x2740('0xcf')]=_0x44b359['id'];}_0x175977[_0x2740('0xe4')]=_0x175977['changes'][_0x2740('0xb3')](_0x26ba00);}return _0x175977;}[_0x2740('0x53')](_0x2b47a9,_0x3dceec){for(let _0x31b615=0x0;_0x31b615<_0x2b47a9['length'];_0x31b615++)for(const [_0x4d2a34,_0x25106e]of _0x3dceec)_0x25106e[_0x2740('0x117')][_0x2740('0x32')](_0x2b47a9[_0x31b615][_0x2740('0xc0')])&&_0x2b47a9[_0x31b615]['markersStart'][_0x2740('0x72')](_0x4d2a34),_0x25106e['end'][_0x2740('0x32')](_0x2b47a9[_0x31b615][_0x2740('0xc')])&&_0x2b47a9[_0x31b615][_0x2740('0x6')]['push'](_0x4d2a34);}['_joinTapes'](_0xe9e543,_0x195499){let _0x30d10f=[],_0x416389=0x0,_0x5a0068=0x0;for(;_0x416389<_0xe9e543['length']||_0x5a0068<_0x195499[_0x2740('0x3')];){const _0x2b9b82=_0xe9e543[_0x416389]||{},_0x3b5e8b=_0x195499[_0x5a0068]||{};if(_0x2b9b82['id']==_0x3b5e8b['id'])_0x416389++,_0x5a0068++,_0x30d10f[_0x2740('0x72')](_0x2b9b82);else{if(_0x3b5e8b[_0x2740('0x113')]&&_0x2b9b82[_0x2740('0xa3')]){const {commonTape:_0x412d81,iEnd:_0x2410c2,jEnd:_0x1a0344}=this['_threeWayMerge'](_0xe9e543,_0x416389,_0x195499,_0x5a0068);_0x30d10f=_0x30d10f[_0x2740('0xb3')](_0x412d81),_0x416389=_0x2410c2,_0x5a0068=_0x1a0344;}else _0x3b5e8b[_0x2740('0x113')]?(_0x5a0068++,_0x30d10f[_0x2740('0x72')](_0x3b5e8b)):(_0x416389++,_0x30d10f['push'](_0x2b9b82));}}return _0x30d10f;}[_0x2740('0x38')](_0x1bdaa9,_0x305c38){const _0x5637e8=[];for(let _0x5723b9=0x0;_0x5723b9<_0x1bdaa9[_0x2740('0x3')];_0x5723b9++){for(let _0x47a5d3=0x0;_0x47a5d3<_0x1bdaa9[_0x5723b9][_0x2740('0x54')][_0x2740('0x3')];_0x47a5d3++){const _0x83ae42=_0x1bdaa9[_0x5723b9][_0x2740('0x54')][_0x47a5d3];if(!_0x305c38[_0x2740('0x2f')](_0x83ae42))continue;const {group:_0x511120,type:_0x1144de,authorId:_0x23b6df}=_0x394b0f(_0x83ae42);'revision-suggestion'!=_0x511120||'insertion'!=_0x1144de&&'deletion'!=_0x1144de||(_0x5637e8[_0x2740('0xa1')]({'type':_0x1144de,'name':_0x83ae42,'userId':_0x23b6df}),_0x1bdaa9[_0x5723b9][_0x2740('0x54')][_0x2740('0xb4')](_0x47a5d3,0x1),_0x47a5d3--);}_0x5c7a25(_0x1bdaa9[_0x5723b9]);for(let _0x4063b=0x0;_0x4063b<_0x1bdaa9[_0x5723b9][_0x2740('0x6')][_0x2740('0x3')];_0x4063b++){const _0x1a8d85=_0x1bdaa9[_0x5723b9][_0x2740('0x6')][_0x4063b];if(!_0x305c38[_0x2740('0x2f')](_0x1a8d85))continue;const {group:_0x37da36,type:_0x2f65f1}=_0x394b0f(_0x1a8d85);if(_0x2740('0xeb')!=_0x37da36||_0x2740('0xfd')!=_0x2f65f1&&_0x2740('0xa5')!=_0x2f65f1)continue;_0x1bdaa9[_0x5723b9]['markersEnd'][_0x2740('0xb4')](_0x4063b,0x1),_0x4063b--;const _0x4f19c2=_0x5637e8[_0x2740('0x58')](_0x77af21=>_0x77af21[_0x2740('0xe5')]==_0x1a8d85);_0x4f19c2>-0x1&&_0x5637e8['splice'](_0x4f19c2,0x1);}}function _0x394b0f(_0x5719ef){const _0x24303a=_0x5719ef[_0x2740('0xa4')](':');return{'group':_0x24303a[0x0],'type':_0x24303a[0x1],'subType':_0x24303a[_0x2740('0x3')]>=0x5?_0x24303a[0x2]:null,'id':_0x24303a[_0x2740('0x3')]<0x5?_0x24303a[0x2]:_0x24303a[0x3],'authorId':_0x24303a[_0x2740('0x3')]<0x5?_0x24303a[0x3]:_0x24303a[0x4],'markerCount':0x6==_0x24303a[_0x2740('0x3')]?_0x24303a[0x5]:null};}function _0x5c7a25(_0x20d97e){for(let _0x5d84c5=0x0;_0x5d84c5<_0x5637e8['length'];_0x5d84c5++){if(_0x20d97e[_0x2740('0xa3')]&&_0x2740('0xfd')==_0x5637e8[_0x5d84c5][_0x2740('0xc5')])return _0x20d97e[_0x2740('0x8')]=_0x5637e8[_0x5d84c5],void delete _0x20d97e[_0x2740('0xa3')];if(!_0x20d97e[_0x2740('0xa3')]&&!_0x20d97e[_0x2740('0x113')]&&_0x2740('0xa5')==_0x5637e8[_0x5d84c5][_0x2740('0xc5')])return void(_0x20d97e[_0x2740('0x100')]=_0x5637e8[_0x5d84c5]);}}}[_0x2740('0x65')](_0x2cb16b,_0x317c9e){let _0x15454b=0x0,_0x2093fb=!0x1;const _0xe78612=new Map();for(const _0x4ce459 of _0x2cb16b)_0x4ce459[_0x317c9e]?_0x2093fb&&(_0x15454b++,_0x2093fb=!0x1):(_0x15454b++,_0x2093fb=!0x0),_0xe78612[_0x2740('0xdf')](_0x4ce459['id'],_0x15454b);for(let _0x481733=0x0;_0x481733<_0x2cb16b[_0x2740('0x3')];_0x481733++){if('isRemoved'==_0x317c9e&&_0x2cb16b[_0x481733][_0x2740('0xa3')]||'isAdded'==_0x317c9e&&_0x2cb16b[_0x481733][_0x2740('0x113')])continue;if(_0x2740('0x11a')==_0x2cb16b[_0x481733][_0x2740('0xc5')]){_0x2cb16b[_0x481733][_0x2740('0xec')]=0x0;continue;}const _0x4be5cf=_0xe78612[_0x2740('0x92')](_0x2cb16b[_0x481733][_0x2740('0x7a')]),_0x1c791f=_0xe78612['get'](_0x2cb16b[_0x481733]['id']);_0x2cb16b[_0x481733]['distance']=_0x4be5cf-_0x1c791f;}}['_getRevisionsRange'](_0xec0409,_0x4c9f41,_0x49e097=!0x1){const _0x3149cb=[];let _0x3333da=this[_0x2740('0x6f')][_0x2740('0x43')](_0xec0409),_0x5042a7=this[_0x2740('0x6f')][_0x2740('0x43')](_0x4c9f41);for(-0x1==_0x5042a7&&(_0x5042a7=this[_0x2740('0x6f')]['_revisions'][_0x2740('0x3')],_0x49e097=!0x1);_0x3333da<_0x5042a7;)_0x3149cb['push'](this[_0x2740('0x6f')][_0x2740('0x20')](_0x3333da)),_0x3333da++;return _0x49e097&&_0x3149cb['push'](this[_0x2740('0x6f')][_0x2740('0x20')](_0x3333da)),_0x3149cb;}[_0x2740('0xe1')](_0x1a14fa,_0xb61bb6,_0x183b83,_0x1e8f00){const _0x5dc32d=this[_0x2740('0x74')][_0x2740('0x94')][_0x2740('0x24')];let _0x5738f0=_0xb61bb6;for(;_0x1a14fa[_0x5738f0]&&_0x1a14fa[_0x5738f0][_0x2740('0xa3')];)_0x5738f0++;let _0x2bcd57=_0x1e8f00;for(;_0x183b83[_0x2bcd57]&&_0x183b83[_0x2bcd57][_0x2740('0x113')];)_0x2bcd57++;_0x5461d6(_0x1a14fa,_0xb61bb6,_0x5738f0),_0x5461d6(_0x183b83,_0x1e8f00,_0x2bcd57);const _0x4f3493=_0x183b83[_0x2740('0xbf')](_0x1e8f00,_0x2bcd57)['concat'](_0x1a14fa[_0x2740('0xbf')](_0xb61bb6,_0x5738f0));return _0x4f3493[_0x2740('0xe9')]((_0x4c2c48,_0x5f2594)=>_0x4c2c48['side']!=_0x5f2594[_0x2740('0x4a')]?_0x4c2c48['side']-_0x5f2594[_0x2740('0x4a')]:_0x4c2c48[_0x2740('0xe')]!=_0x5f2594[_0x2740('0xe')]?_0x4c2c48[_0x2740('0xe')]-_0x5f2594[_0x2740('0xe')]:_0x4c2c48[_0x2740('0xec')]!=_0x5f2594[_0x2740('0xec')]?_0x5f2594[_0x2740('0xec')]-_0x4c2c48['distance']:!!_0x4c2c48[_0x2740('0xa3')]!=!!_0x5f2594[_0x2740('0xa3')]?-0x1==_0x4c2c48[_0x2740('0x4a')]||0x0==_0x4c2c48['side']?_0x4c2c48['isAdded']?-0x1:0x1:_0x4c2c48[_0x2740('0xa3')]?0x1:-0x1:_0x4c2c48[_0x2740('0xc9')]-_0x5f2594[_0x2740('0xc9')]),{'commonTape':_0x4f3493,'iEnd':_0x5738f0,'jEnd':_0x2bcd57};function _0x5461d6(_0x35c28e,_0x3bd092,_0x55d192){let _0x5f1cce=-0x1,_0x5db989=Number[_0x2740('0xd6')],_0x49d687=!0x0;for(let _0x49aa=_0x3bd092;_0x49aa<_0x55d192;_0x49aa++)if(_0x5dc32d[_0x2740('0x18')](_0x35c28e[_0x49aa][_0x2740('0xa7')])||(_0x49d687=!0x1),_0x35c28e[_0x49aa][_0x2740('0xa7')][_0x2740('0xe3')]<_0x3bd092&&(_0x5f1cce=_0x49aa),_0x35c28e[_0x49aa]['item']['endIndex']>=_0x55d192){_0x5db989=_0x49aa;break;}_0x49d687&&(_0x5f1cce=_0x55d192-0x1);for(let _0x3d641=_0x3bd092;_0x3d641<_0x55d192;_0x3d641++)_0x35c28e[_0x3d641][_0x2740('0x4a')]=_0x3d641<=_0x5f1cce?-0x1:_0x3d641<_0x5db989?0x0:0x1,_0x35c28e[_0x3d641][_0x2740('0xc9')]=_0x3d641;let _0x2b11f0=0x0;for(let _0xb96e58=_0x3bd092;_0xb96e58<=_0x5f1cce;_0xb96e58++)0x0==_0x35c28e[_0xb96e58][_0x2740('0xec')]?_0x35c28e[_0xb96e58][_0x2740('0xe')]=_0x2b11f0:(_0x2b11f0++,_0x35c28e[_0xb96e58][_0x2740('0xe')]=_0x2b11f0,_0x2b11f0++);for(let _0x5f1864=_0x3bd092;_0x5f1864<_0x55d192;_0x5f1864++)0x0==_0x35c28e[_0x5f1864][_0x2740('0x4a')]&&(_0x35c28e[_0x5f1864][_0x2740('0xe')]=_0x2b11f0);_0x2b11f0=0x0;for(let _0x4bc4dd=_0x55d192-0x1;_0x4bc4dd>=_0x5db989;_0x4bc4dd--)0x0==_0x35c28e[_0x4bc4dd]['distance']?_0x35c28e[_0x4bc4dd]['level']=_0x2b11f0:(_0x2b11f0--,_0x35c28e[_0x4bc4dd][_0x2740('0xe')]=_0x2b11f0,_0x2b11f0--);}}[_0x2740('0xfb')](_0x55f2b0){const _0x263f89=new Map(),_0x55601b=this[_0x2740('0x74')][_0x2740('0x94')]['schema'];for(let _0x36e8c1=0x1;_0x36e8c1<_0x55f2b0['length'];_0x36e8c1++){let _0x592217,_0xe58d6a,_0x1bc04a;const _0x248db8=_0x55f2b0[_0x36e8c1],_0x3059dd=_0x55f2b0[_0x36e8c1-0x1];if(_0x2740('0x11a')==_0x248db8['type'])continue;if(_0x248db8[_0x2740('0xc5')]!=_0x3059dd[_0x2740('0xc5')])continue;if(!_0x55601b[_0x2740('0x50')](_0x3059dd[_0x2740('0xa7')])||_0x55601b['isLimit'](_0x3059dd[_0x2740('0xa7')]))continue;if(!_0x55601b[_0x2740('0x50')](_0x248db8['item'])||_0x55601b[_0x2740('0x5b')](_0x248db8[_0x2740('0xa7')]))continue;if((_0x55f2b0[_0x36e8c1][_0x2740('0xa3')]||_0x55f2b0[_0x36e8c1][_0x2740('0x8')])&&_0x55f2b0[_0x36e8c1-0x1][_0x2740('0x113')])_0x592217=_0x55f2b0[_0x36e8c1],_0xe58d6a=_0x55f2b0[_0x36e8c1-0x1],_0x1bc04a=_0x36e8c1-0x1;else{if(!_0x55f2b0[_0x36e8c1][_0x2740('0x113')]||!_0x55f2b0[_0x36e8c1-0x1]['isAdded']&&!_0x55f2b0[_0x36e8c1-0x1][_0x2740('0x8')])continue;_0x592217=_0x55f2b0[_0x36e8c1-0x1],_0xe58d6a=_0x55f2b0[_0x36e8c1],_0x1bc04a=_0x36e8c1;}const _0x44ad96=_0x592217['level']==_0xe58d6a['level'],_0x19451c=Math[_0x2740('0x81')](_0x592217['level'])<Math[_0x2740('0x81')](_0xe58d6a['level'])&&0x0==_0xe58d6a[_0x2740('0xec')];(_0x44ad96||_0x19451c)&&(_0x263f89['set'](_0xe58d6a['id'],_0x592217['id']),_0x55f2b0[_0x2740('0xb4')](_0x1bc04a,0x1),_0x36e8c1--,_0x592217[_0x2740('0xa3')]=!0x1);}for(let _0x574723=0x0;_0x574723<_0x55f2b0[_0x2740('0x3')];_0x574723++)_0x263f89[_0x2740('0x2f')](_0x55f2b0[_0x574723][_0x2740('0x7a')])&&(_0x55f2b0[_0x574723][_0x2740('0x7a')]=_0x263f89[_0x2740('0x92')](_0x55f2b0[_0x574723][_0x2740('0x7a')]));}[_0x2740('0xe8')](_0x19fa53){const _0x367130=new Set(_0x19fa53[_0x2740('0xee')](_0x53486c=>_0x53486c['id']));for(let _0x17a77d=0x0;_0x17a77d<_0x19fa53['length'];_0x17a77d++)_0x367130[_0x2740('0x2f')](_0x19fa53[_0x17a77d]['pairId'])||0x0==_0x19fa53[_0x17a77d][_0x2740('0xec')]||(_0x19fa53[_0x17a77d][_0x2740('0x11c')]=!0x0);return _0x19fa53[_0x2740('0x118')](_0x1338c0=>!_0x1338c0[_0x2740('0x11c')]);}[_0x2740('0xac')](_0x1325ba){const _0x394bcc=new Set();for(let _0x277b93=0x0;_0x277b93<_0x1325ba['length'];_0x277b93++){if(_0x394bcc[_0x2740('0x2f')](_0x1325ba[_0x277b93]['id'])&&_0x1325ba[_0x277b93][_0x2740('0x113')]&&(_0x1325ba[_0x277b93][_0x2740('0x11c')]=!0x0),_0x1325ba[_0x277b93][_0x2740('0x11c')])continue;if(0x0==_0x1325ba[_0x277b93][_0x2740('0xec')])continue;if(_0x2740('0xc7')!=_0x1325ba[_0x277b93][_0x2740('0xc5')])continue;if(null==_0x1325ba[_0x277b93][_0x2740('0x7a')])continue;let _0x30094f=_0x277b93+0x1,_0x49add1=0x0;for(;_0x1325ba[_0x30094f]['id']!=_0x1325ba[_0x277b93]['pairId'];)'elementStart'==_0x1325ba[_0x30094f][_0x2740('0xc5')]?_0x49add1++:_0x2740('0xd2')==_0x1325ba[_0x30094f][_0x2740('0xc5')]&&_0x49add1--,_0x30094f++;if(0x0!=_0x49add1){if(_0x1325ba[_0x277b93]['isRemoved'])_0x1325ba[_0x277b93][_0x2740('0x11c')]=!0x0;else for(;_0x30094f!=_0x277b93;)_0x1325ba[_0x30094f][_0x2740('0x113')]&&0x0!=_0x1325ba[_0x30094f][_0x2740('0xec')]&&(_0x1325ba[_0x30094f][_0x2740('0x11c')]=!0x0,_0x394bcc[_0x2740('0x13')](_0x1325ba[_0x30094f]['pairId'])),_0x30094f--;}}return _0x1325ba[_0x2740('0x118')](_0x345d79=>!_0x345d79[_0x2740('0x11c')]);}[_0x2740('0x34')](_0x1dd0f8){const _0x3546d7=this[_0x2740('0x74')][_0x2740('0x94')][_0x2740('0x24')];for(let _0x41522a=0x0;_0x41522a<_0x1dd0f8['length'];_0x41522a++){if(!(_0x1dd0f8[_0x41522a]['isAdded']||_0x1dd0f8[_0x41522a]['isAddSuggestion']||_0x1dd0f8[_0x41522a]['isRemoved']||_0x1dd0f8[_0x41522a][_0x2740('0x100')]))continue;if(0x0==_0x1dd0f8[_0x41522a][_0x2740('0xec')])continue;const _0x29ff3c=_0x1dd0f8[_0x41522a]['item'];_0x3546d7[_0x2740('0x50')](_0x29ff3c)||_0x3546d7[_0x2740('0x5b')](_0x29ff3c)||(_0x1dd0f8[_0x41522a]['isAdded']&&delete _0x1dd0f8[_0x41522a][_0x2740('0xa3')],_0x1dd0f8[_0x41522a]['isAddSuggestion']&&delete _0x1dd0f8[_0x41522a][_0x2740('0x8')],_0x1dd0f8[_0x41522a][_0x2740('0x100')]&&delete _0x1dd0f8[_0x41522a][_0x2740('0x100')],_0x1dd0f8[_0x41522a][_0x2740('0x113')]&&(_0x1dd0f8[_0x41522a]['isIncorrect']=!0x0));}return _0x1dd0f8[_0x2740('0x118')](_0x2c28ab=>!_0x2c28ab[_0x2740('0x11c')]);}[_0x2740('0x60')](_0x3d6012,_0x5d0b0b,_0x242810){const _0x529378=new _0x434b7b(),_0x4d2347=[],_0x5112d1=new Map(),_0x4cfcad=this[_0x2740('0x74')][_0x2740('0x94')],_0x152ec7=_0x4cfcad['schema'],_0x5089f2=[_0x529378],_0x43eccf={},_0x231300={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x323579=null;const _0x3b44fc=[0x0];for(let _0xd044eb=0x0;_0xd044eb<_0x3d6012['length'];_0xd044eb++){let _0x4f2033,_0x170d89;if(_0x2740('0xc7')===_0x3d6012[_0xd044eb][_0x2740('0xc5')]){_0x4f2033=_0x4cfcad[_0x2740('0x2a')](_0x529378,_0x3b44fc);const _0x2be27b=new _0x3cc323(_0x3d6012[_0xd044eb][_0x2740('0xa7')][_0x2740('0xe5')],_0x3d6012[_0xd044eb][_0x2740('0xa7')][_0x2740('0x42')]());_0x5089f2[0x0][_0x2740('0xf')](_0x2be27b),_0x3b44fc[_0x2740('0x72')](0x0),_0x5089f2[_0x2740('0xa1')](_0x2be27b),_0x170d89=_0x4cfcad[_0x2740('0x2a')](_0x529378,_0x3b44fc),_0x323579=null;}else{if(_0x2740('0xd2')===_0x3d6012[_0xd044eb][_0x2740('0xc5')])_0x5089f2['shift'](),_0x4f2033=_0x4cfcad['createPositionFromPath'](_0x529378,_0x3b44fc),_0x3b44fc[_0x2740('0x6a')](),_0x3b44fc[_0x3b44fc['length']-0x1]++,_0x170d89=_0x4cfcad[_0x2740('0x2a')](_0x529378,_0x3b44fc),_0x323579=null;else{if(_0x4f2033=_0x4cfcad[_0x2740('0x2a')](_0x529378,_0x3b44fc),_0x323579&&_0x1433a2(_0x323579,_0x3d6012[_0xd044eb][_0x2740('0xa7')]))_0x323579[_0x2740('0x26')]+=_0x3d6012[_0xd044eb]['item']['data'];else{const _0x26a2f7=new _0x14e401(_0x3d6012[_0xd044eb][_0x2740('0xa7')][_0x2740('0xd')],_0x3d6012[_0xd044eb][_0x2740('0xa7')][_0x2740('0x42')]());_0x5089f2[0x0][_0x2740('0xf')](_0x26a2f7),_0x323579=_0x26a2f7;}_0x3b44fc[_0x3b44fc[_0x2740('0x3')]-0x1]+=_0x3d6012[_0xd044eb][_0x2740('0xa7')][_0x2740('0xc4')],_0x170d89=_0x4cfcad[_0x2740('0x2a')](_0x529378,_0x3b44fc);}}for(const _0x289dd2 of _0x3d6012[_0xd044eb][_0x2740('0x54')])_0x5112d1['set'](_0x289dd2,{'start':_0x4f2033,'end':null});_0x5b9f52('isRemoveSuggestion',_0xd044eb,_0x4f2033,_0x170d89),_0x5b9f52('isAddSuggestion',_0xd044eb,_0x4f2033,_0x170d89),_0x5b9f52('isRemoved',_0xd044eb,_0x4f2033,_0x170d89),_0x5b9f52('isAdded',_0xd044eb,_0x4f2033,_0x170d89);for(const _0x14d042 of _0x3d6012[_0xd044eb]['markersEnd']){_0x5112d1['get'](_0x14d042)[_0x2740('0x3d')]=_0x170d89;}}for(const [_0x505606,_0x5d00d1]of _0x5112d1){const _0x37291e=this[_0x2740('0x74')][_0x2740('0x94')][_0x2740('0x10e')](_0x5d00d1['start'],_0x5d00d1[_0x2740('0x3d')]);_0x529378[_0x2740('0x61')]['set'](_0x505606,_0x37291e);}return _0x4d2347['sort']((_0x4131af,_0x3776a0)=>{const _0x4eba2f=_0x529378[_0x2740('0x61')][_0x2740('0x92')](_0x2740('0xf2')+_0x4131af['id']),_0x381222=_0x529378[_0x2740('0x61')][_0x2740('0x92')]('revision:'+_0x3776a0['id']);return _0x4eba2f[_0x2740('0x117')][_0x2740('0xc1')](_0x381222[_0x2740('0x117')])?-0x1:_0x4eba2f['start'][_0x2740('0x112')](_0x381222[_0x2740('0x117')])?0x1:_0x4eba2f['end'][_0x2740('0xc1')](_0x381222[_0x2740('0x3d')])?-0x1:_0x4eba2f[_0x2740('0x3d')][_0x2740('0x112')](_0x381222[_0x2740('0x3d')])?0x1:'add'===_0x4131af[_0x2740('0xc5')]?-0x1:0x1;}),{'root':_0x529378,'changes':_0x4d2347};function _0x5b9f52(_0x3ae2f2,_0x3db705,_0xabc87c,_0x31ecd2){const _0x5dce7d=!!_0x3d6012[_0x3db705][_0x3ae2f2],_0xb32fdb=_0x5dce7d?_0x3d6012[_0x3db705][_0x3ae2f2]['userId']:null,_0xf2880c=_0x3db705===_0x3d6012[_0x2740('0x3')]-0x1,_0x5e4763=_0x231300[_0x3ae2f2][0x0],_0xc86e31=_0x152ec7[_0x2740('0xd5')](_0x3d6012[_0x3db705][_0x2740('0xa7')]);!_0x43eccf[_0x3ae2f2]&&_0x5dce7d?_0x43eccf[_0x3ae2f2]={'start':_0xabc87c,'tapeItem':_0x3d6012[_0x3db705],'userId':_0xb32fdb,'type':_0x3ae2f2}:_0x43eccf[_0x3ae2f2]&&!_0x5dce7d?(_0x43eccf[_0x3ae2f2][_0x2740('0x3d')]=_0xabc87c,_0x17fb2a(_0x43eccf[_0x3ae2f2]),_0x43eccf[_0x3ae2f2]=null):_0x43eccf[_0x3ae2f2]&&_0x5dce7d&&_0x43eccf[_0x3ae2f2][_0x2740('0x1d')]!==_0xb32fdb&&(_0x43eccf[_0x3ae2f2][_0x2740('0x3d')]=_0xabc87c,_0x5e4763&&_0x5e4763[_0x2740('0x1d')]===_0x43eccf[_0x3ae2f2][_0x2740('0x1d')]||_0x17fb2a(_0x43eccf[_0x3ae2f2]),_0x43eccf[_0x3ae2f2]={'start':_0xabc87c,'tapeItem':_0x3d6012[_0x3db705],'userId':_0xb32fdb,'type':_0x3ae2f2}),_0x43eccf[_0x3ae2f2]&&_0xc86e31&&('elementStart'!==_0x3d6012[_0x3db705][_0x2740('0xc5')]||_0x5e4763&&_0x5e4763[_0x2740('0x1d')]===_0xb32fdb||_0x231300[_0x3ae2f2][_0x2740('0xa1')]({'userId':_0xb32fdb,'object':_0x3d6012[_0x3db705]['item'],'change':_0x43eccf[_0x3ae2f2]}),_0x2740('0xd2')===_0x3d6012[_0x3db705]['type']&&_0x5e4763&&_0x5e4763['object']===_0x3d6012[_0x3db705][_0x2740('0xa7')]&&(_0x231300[_0x3ae2f2]['shift'](),_0x43eccf[_0x3ae2f2]=_0x5e4763[_0x2740('0x102')])),_0x43eccf[_0x3ae2f2]&&_0xf2880c&&(_0x43eccf[_0x3ae2f2][_0x2740('0x3d')]=_0x31ecd2,_0x17fb2a(_0x43eccf[_0x3ae2f2]),_0x43eccf[_0x3ae2f2]=null);}function _0x17fb2a({start:_0x8ce9d7,end:_0x4d0529,tapeItem:_0x1567b8,userId:_0x24b459,type:_0x4605e4}){const _0x4ee404=_0x1567b8[_0x2740('0xa7')],_0x4aadc4=_0x4cfcad['schema']['isBlock'](_0x4ee404)&&!_0x4cfcad['schema'][_0x2740('0x5b')](_0x4ee404),_0x46a232=_0x8ce9d7[_0x2740('0x88')]==_0x4d0529[_0x2740('0x70')]&&_0x4d0529[_0x2740('0xbb')];if(_0x4aadc4&&_0x46a232)return;const _0x489448=_0x4cfcad[_0x2740('0x10e')](_0x8ce9d7,_0x4d0529),_0x499fd9=_0x5d0b0b['get'](_0x24b459),_0x461f28=new _0x699e92({'author':_0x499fd9,'type':'isAdded'==_0x4605e4||_0x2740('0x8')==_0x4605e4?'add':'remove','data':{'isSuggestion':_0x2740('0x8')==_0x4605e4||_0x2740('0x100')==_0x4605e4},'createdAt':new Date(),'rootName':_0x242810});_0x4d2347[_0x2740('0x72')](_0x461f28),_0x529378[_0x2740('0x61')]['set'](_0x2740('0xf2')+_0x461f28['id'],_0x489448);}function _0x1433a2(_0x5a1238,_0x152e1f){const _0x348f20=_0x5a1238[_0x2740('0x42')](),_0x12ba5f=_0x152e1f[_0x2740('0x42')]();for(const _0x2ba194 of _0x348f20){if(_0x2ba194[0x1]!==_0x152e1f[_0x2740('0xf1')](_0x2ba194[0x0]))return!0x1;_0x12ba5f['next']();}return _0x12ba5f[_0x2740('0xa2')]()['done'];}}['_setConversion'](){this[_0x2740('0x74')]['conversion'][_0x2740('0x107')]('upcast')[_0x2740('0x27')]({'view':_0x2740('0xb9')}),this[_0x2740('0x74')][_0x2740('0x99')][_0x2740('0x107')](_0x2740('0x11e'))[_0x2740('0xd7')]({'model':'revision','view':_0x5c6a0d=>{const _0xde8714=_0x5c6a0d[_0x2740('0xf7')][_0x2740('0xa4')](':')[0x1],_0x43791e=this[_0x2740('0xd3')](_0xde8714);if(!_0x43791e)return null;const _0x348c04=_0x2740('0x13')==_0x43791e[_0x2740('0xc5')]?_0x2740('0xfd'):_0x2740('0xa5'),_0x5d6048=['ck-suggestion-marker',_0x2740('0x79')+_0x348c04];return _0x43791e[_0x2740('0xd')][_0x2740('0x5e')]&&_0x5d6048['push'](_0x2740('0x79')+_0x348c04+'-new'),this[_0x2740('0x105')]==_0x43791e&&_0x5d6048[_0x2740('0x72')]('ck-suggestion-marker--active'),{'classes':_0x5d6048,'attributes':{'data-change-id':_0xde8714}};}}),this[_0x2740('0x74')][_0x2740('0x99')][_0x2740('0x107')](_0x2740('0x97'))[_0x2740('0x13')](_0x41c32a=>{_0x41c32a['on'](_0x2740('0xc2'),(_0x336fea,_0x11fd25,_0x4682c9)=>{const _0x3a167b=_0x11fd25[_0x2740('0x35')][_0x2740('0x11d')](0x0);if(!_0x3a167b||!_0x3a167b['is'](_0x2740('0x39'),'code'))return;if(!_0x4682c9['consumable']['consume'](_0x3a167b,{'attributes':[_0x2740('0x75'),_0x2740('0x87')]}))return;const _0x255a0f=_0x11fd25[_0x2740('0x6d')][_0x2740('0x117')]['nodeAfter'];_0x4682c9['writer']['setAttribute'](_0x2740('0x75'),_0x3a167b[_0x2740('0xf1')](_0x2740('0x75')),_0x255a0f),_0x4682c9[_0x2740('0x6b')][_0x2740('0xff')]('vid_end',_0x3a167b[_0x2740('0xf1')](_0x2740('0x87')),_0x255a0f);},{'priority':'low'});}),this[_0x2740('0x74')][_0x2740('0x99')][_0x2740('0x107')]('upcast')[_0x2740('0x13')](_0x14bae3=>{_0x14bae3['on'](_0x2740('0x39'),(_0x19abf4,_0x18a983,_0x43bdf6)=>{if(!_0x43bdf6[_0x2740('0x29')]['consume'](_0x18a983['viewItem'],{'attributes':['vid_start',_0x2740('0x87')]}))return;if(_0x18a983[_0x2740('0x6d')][_0x2740('0x109')])return;const _0x32e38d=_0x18a983[_0x2740('0x6d')][_0x2740('0x117')][_0x2740('0x88')];_0x32e38d[_0x2740('0x5d')]('vid_start')||_0x32e38d[_0x2740('0x5d')](_0x2740('0x116'))||(_0x43bdf6[_0x2740('0x6b')][_0x2740('0xff')](_0x2740('0x75'),_0x18a983[_0x2740('0x35')][_0x2740('0xf1')]('vid_start'),_0x32e38d),_0x43bdf6[_0x2740('0x6b')][_0x2740('0xff')](_0x2740('0x87'),_0x18a983[_0x2740('0x35')][_0x2740('0xf1')](_0x2740('0x87')),_0x32e38d));},{'priority':_0x2740('0xcd')});}),this[_0x2740('0x74')][_0x2740('0x99')]['for'](_0x2740('0x97'))['elementToAttribute']({'view':{'name':_0x2740('0x3f'),'attributes':{'vid':!0x0}},'model':{'key':_0x2740('0x116'),'value':_0x5585b0=>_0x5585b0['getAttribute'](_0x2740('0x116'))}}),this['editor']['model'][_0x2740('0x24')]['on'](_0x2740('0x96'),(_0x54452e,[,_0x1f2c42])=>{[_0x2740('0x75'),'vid_end','vid'][_0x2740('0x2b')](_0x1f2c42)&&(_0x54452e[_0x2740('0xca')]=!0x0,_0x54452e['stop']());},{'priority':_0x2740('0xab')}),this[_0x2740('0x74')]['conversion'][_0x2740('0x107')](_0x2740('0xb2'))['add'](_0x2a4c9a=>{_0x2a4c9a['on'](_0x2740('0x55'),(_0x186434,_0x5ecbc1,_0x4ff6fd)=>{if('\x20'!=_0x5ecbc1['item'][_0x2740('0xd')]||_0x5ecbc1[_0x2740('0xa7')][_0x2740('0x70')][_0x2740('0x56')]>0x1)return;if(!_0x4ff6fd['consumable'][_0x2740('0xbc')](_0x5ecbc1[_0x2740('0xa7')],_0x186434['name']))return;const _0x4fda3b=_0x4ff6fd[_0x2740('0x6b')],_0x571d93=_0x4ff6fd[_0x2740('0x17')]['toViewRange'](_0x5ecbc1[_0x2740('0xf9')]);_0x4fda3b[_0x2740('0x28')](_0x571d93,_0x4fda3b[_0x2740('0x14')](_0x2740('0x3f')));});}),this[_0x2740('0x74')]['conversion'][_0x2740('0x107')]('dataDowncast')[_0x2740('0xad')]({'model':_0x2740('0xb9')}),this[_0x2740('0x74')][_0x2740('0xd9')][_0x2740('0xb7')]['on'](_0x2740('0x85'),function(_0x22bfb4){const _0xe6b868=_0x22bfb4[_0x2740('0xba')]['get'](_0x2740('0x7c'));return(_0x220500,_0x5a6209,_0x2d7237)=>{const _0x4cd71f=_0x5a6209[_0x2740('0xf7')][_0x2740('0xa4')](':')[0x1],_0x589b16=_0xe6b868[_0x2740('0xd3')](_0x4cd71f);if(!_0x589b16)return null;const _0x2c074e='add'==_0x589b16['type']?_0x2740('0xa4'):_0x2740('0x6c');if(!_0x2d7237[_0x2740('0x29')]['test'](_0x5a6209[_0x2740('0x10b')],_0x220500['name']))return;const _0x3bf05f=_0x5a6209['markerRange'][_0x2740('0xdd')](),_0x351eb1=_0x5a6209['markerRange'][_0x2740('0x117')],_0x420b37=_0x22bfb4[_0x2740('0x94')][_0x2740('0x24')];let _0x35663e=null,_0x33855d=null,_0x314a0d=!0x1,_0x2c8d14=!0x1;for(const _0x209785 of _0x3bf05f){const _0x424ef2=_0x209785[_0x2740('0xa7')];_0x314a0d=_0x314a0d||_0x420b37['isContent'](_0x424ef2);const _0x10a5e6=_0x2d7237[_0x2740('0x17')][_0x2740('0x5a')](_0x424ef2);if(_0x10a5e6&&_0x10a5e6[_0x2740('0x2d')](_0x2740('0xaf')))return;_0x2740('0xd2')==_0x209785['type']&&(_0x420b37[_0x2740('0x50')](_0x424ef2)&&!_0x420b37[_0x2740('0x5b')](_0x424ef2)&&(_0x424ef2[_0x2740('0x9f')]||_0x351eb1['isAtEnd']?_0x35663e&&_0x35663e['parent']==_0x424ef2||(_0x35663e=_0x424ef2,_0x49e924(_0x209785['previousPosition']),_0x2c8d14=!0x0):_0x33855d=_0x33855d||_0x209785[_0x2740('0xc0')]));}function _0x49e924(_0xf6b3fe){const _0x487368=_0x2d7237[_0x2740('0x6b')][_0x2740('0x66')](_0x2740('0x3f'),{'class':_0x2740('0x79')+_0x2c074e}),_0x40620f=_0x2d7237[_0x2740('0x17')][_0x2740('0x104')](_0xf6b3fe);_0x589b16[_0x2740('0xd')]['isSuggestion']&&_0x2d7237[_0x2740('0x6b')][_0x2740('0x110')](_0x2740('0x79')+_0x2c074e+_0x2740('0x68'),_0x487368),_0xe6b868[_0x2740('0x105')]==_0x589b16&&_0x2d7237[_0x2740('0x6b')][_0x2740('0x110')](_0x2740('0x9b'),_0x487368),_0x2d7237['writer'][_0x2740('0x59')](_0x40620f,_0x487368),_0x2d7237[_0x2740('0x17')]['bindElementToMarker'](_0x487368,_0x5a6209[_0x2740('0xf7')]);}_0x314a0d||_0x2c8d14||!_0x33855d||_0x49e924(_0x33855d);};}(this[_0x2740('0x74')]),{'priority':_0x2740('0xd0')}),this[_0x2740('0x74')][_0x2740('0xd9')][_0x2740('0xb7')]['on'](_0x2740('0xe7'),(_0x39a3f5,_0x1294d3,_0x5b4dbc)=>{const _0x165b5b=_0x5b4dbc[_0x2740('0x17')]['markerNameToElements'](_0x1294d3[_0x2740('0xf7')]);if(_0x165b5b)for(const _0x392c07 of _0x165b5b)(_0x392c07[_0x2740('0x7d')](_0x2740('0x10f'))||_0x392c07[_0x2740('0x7d')]('ck-suggestion-marker-merge'))&&(_0x5b4dbc[_0x2740('0x17')][_0x2740('0xef')](_0x392c07,_0x1294d3[_0x2740('0xf7')]),_0x5b4dbc[_0x2740('0x6b')][_0x2740('0x9')](_0x392c07));},{'priority':_0x2740('0xd0')}),this[_0x2740('0x74')][_0x2740('0xd9')][_0x2740('0xb7')]['on'](_0x2740('0x85'),(_0x2c8cb1,_0x5116b1,_0xaf99d3)=>{const _0x334cd2=_0x5116b1[_0x2740('0xf7')][_0x2740('0xa4')](':')[0x1],_0x1f6ebc=this[_0x2740('0xd3')](_0x334cd2);if(!_0x1f6ebc)return null;const _0x33e92d=_0x2740('0x13')==_0x1f6ebc[_0x2740('0xc5')]?'split':'merge';if(_0xaf99d3[_0x2740('0x29')][_0x2740('0x114')](_0x5116b1['markerRange'],_0x2c8cb1['name']))for(const _0x2bf94e of _0x5116b1['markerRange'][_0x2740('0x3e')]()){if(!_0x2bf94e['is'](_0x2740('0x39'),_0x2740('0x22')))continue;const _0x30d00b=_0xaf99d3['writer'][_0x2740('0x66')]('span',{'class':_0x2740('0x79')+_0x33e92d}),_0x889e7c=_0xaf99d3['mapper'][_0x2740('0x104')](this['editor'][_0x2740('0x94')][_0x2740('0x5')](_0x2bf94e));_0x1f6ebc[_0x2740('0xd')][_0x2740('0x5e')]&&_0xaf99d3[_0x2740('0x6b')][_0x2740('0x110')](_0x2740('0x79')+_0x33e92d+_0x2740('0x68'),_0x30d00b),this[_0x2740('0x105')]==_0x1f6ebc&&_0xaf99d3[_0x2740('0x6b')]['addClass'](_0x2740('0x9b'),_0x30d00b),_0xaf99d3[_0x2740('0x6b')][_0x2740('0x59')](_0x889e7c,_0x30d00b),_0xaf99d3['mapper'][_0x2740('0x15')](_0x30d00b,_0x5116b1[_0x2740('0xf7')]);}},{'priority':_0x2740('0xd0')}),this['editor'][_0x2740('0x94')][_0x2740('0xdc')]['on'](_0x2740('0x102'),()=>{this[_0x2740('0x74')][_0x2740('0xd9')][_0x2740('0xb5')]['change'](_0x484981=>{for(const _0xa2c262 of this['editor'][_0x2740('0x94')][_0x2740('0xdc')][_0x2740('0x1e')]()){const _0x2470b0=this[_0x2740('0x74')][_0x2740('0x94')][_0x2740('0xdc')][_0x2740('0x115')](_0xa2c262),_0x529cea=this[_0x2740('0x74')][_0x2740('0xd9')][_0x2740('0xb5')][_0x2740('0xdc')]['getRoot'](_0xa2c262);if(_0x529cea){const _0x39ba5d=_0x2470b0[_0x2740('0xf1')]('revisionHistoryAttachChange');if(_0x484981[_0x2740('0xf6')](_0x2740('0x33'),_0x529cea),_0x484981['removeClass'](_0x2740('0x8b'),_0x529cea),_0x484981['removeClass']('ck-revision-history-root-remove',_0x529cea),_0x484981[_0x2740('0xfa')](_0x2740('0x9d'),_0x529cea),_0x39ba5d){const _0x565a9e=this['_getChangeFromId'](_0x39ba5d);if(!_0x565a9e)return null;_0x484981[_0x2740('0xff')](_0x2740('0x33'),_0x39ba5d,_0x529cea),_0x484981[_0x2740('0x110')](_0x2740('0xe0')+_0x565a9e[_0x2740('0xc5')],_0x529cea),this['activeChange']==_0x565a9e&&_0x484981[_0x2740('0x110')]('ck-revision-history-root--active',_0x529cea);}}}});}),this[_0x2740('0x74')][_0x2740('0x99')][_0x2740('0x107')]('upcast')[_0x2740('0x27')]({'view':_0x2740('0xf4'),'model':_0x3c9dbd=>_0x2740('0x4e')+_0x3c9dbd,'converterPriority':'highest'}),this['editor'][_0x2740('0x99')][_0x2740('0x107')](_0x2740('0x97'))[_0x2740('0x27')]({'view':'suggestion','model':_0x238712=>'revision-suggestion:'+_0x238712,'converterPriority':_0x2740('0xab')}),this['editor'][_0x2740('0x99')]['for'](_0x2740('0xb2'))['markerToData']({'model':_0x2740('0xeb'),'view':_0x574594=>({'name':_0x2740('0xb6')+_0x574594,'group':'revision-suggestion'}),'converterPriority':_0x2740('0xab')}),this['editor'][_0x2740('0x99')]['for'](_0x2740('0x11e'))[_0x2740('0xd7')]({'model':_0x2740('0xeb'),'view':_0x11dc79=>{const _0x5877be=_0x11dc79[_0x2740('0xf7')][_0x2740('0xa4')](':')[0x1];return _0x2740('0xfd')!=_0x5877be&&_0x2740('0xa5')!=_0x5877be?null:{'classes':[_0x2740('0xdb'),'ck-suggestion-preview-marker-'+_0x5877be]};}}),this[_0x2740('0x74')][_0x2740('0xd9')][_0x2740('0xb7')]['on'](_0x2740('0x23'),Y(this['editor'],'merge'),{'priority':_0x2740('0xd0')}),this['editor'][_0x2740('0xd9')][_0x2740('0xb7')]['on'](_0x2740('0xd4'),Y(this[_0x2740('0x74')],'split'),{'priority':_0x2740('0xd0')}),this[_0x2740('0x74')]['editing'][_0x2740('0xb7')]['on']('removeMarker:revision-suggestion',(_0xb8cb6b,_0x2c235c,_0x3a3550)=>{const _0x172e34=_0x3a3550[_0x2740('0x17')]['markerNameToElements'](_0x2c235c[_0x2740('0xf7')]);if(_0x172e34)for(const _0x44f42a of _0x172e34)_0x44f42a['is'](_0x2740('0x95'))&&(_0x3a3550[_0x2740('0x17')]['unbindElementFromMarkerName'](_0x44f42a,_0x2c235c[_0x2740('0xf7')]),_0x3a3550['writer'][_0x2740('0x9')](_0x44f42a));},{'priority':_0x2740('0xd0')});}[_0x2740('0xd3')](_0x90bdb1){return this[_0x2740('0x80')][_0x2740('0x92')](_0x90bdb1);}[_0x2740('0xf0')](_0x370ae4){return this[_0x2740('0x106')]&&this['_changeView'][_0x2740('0x9a')](),this[_0x2740('0x106')]=new _0x376852(this['editor'][_0x2740('0x10d')],_0x370ae4),this[_0x2740('0x106')];}[_0x2740('0x46')](){this[_0x2740('0x74')][_0x2740('0x94')]['document'][_0x2740('0x71')][_0x2740('0x90')](_0x2740('0xb9')),this['on'](_0x2740('0x48'),(_0x52ede9,_0x4adfd1,_0x48ab7d,_0x4249d2)=>{_0x4249d2&&this[_0x2740('0x7e')][_0x2740('0x9')](_0x4249d2),_0x48ab7d&&(this[_0x2740('0x7e')][_0x2740('0x13')]({'view':_0x48ab7d,'stackId':_0x2740('0x0'),'position':{'target':()=>{const _0x5ee5b6=this[_0x2740('0x74')]['editing'],_0x2257ba=this[_0x2740('0xd3')](_0x48ab7d['changeId']);let _0x389a66;if(_0x2257ba['data'][_0x2740('0x31')]){const _0x3dcc2f=_0x5ee5b6[_0x2740('0xb5')][_0x2740('0x8c')](_0x2257ba[_0x2740('0x78')]);_0x389a66=Array['from'](_0x3dcc2f['getClientRects']());}else{const _0x200c32=this['editor']['model'][_0x2740('0x61')][_0x2740('0x92')](_0x2740('0xf2')+_0x48ab7d[_0x2740('0xaa')]);_0x389a66=Array[_0x2740('0x111')](_0x5ee5b6[_0x2740('0x17')][_0x2740('0x37')](_0x200c32['name']))[_0x2740('0xee')](_0x4bcffd=>_0x5ee5b6[_0x2740('0xb5')][_0x2740('0x8f')][_0x2740('0x77')](_0x4bcffd))[_0x2740('0xee')](_0x372e12=>Array['from'](_0x372e12[_0x2740('0x47')]()))[_0x2740('0xe2')]();}if(!this[_0x2740('0x1')])return _0x389a66[0x0];return _0x389a66['find'](_0x5195ba=>_0x5195ba['top']-0x3<=this[_0x2740('0x1')]['y']&&_0x5195ba[_0x2740('0x1c')]+0x3>=this[_0x2740('0x1')]['y']&&_0x5195ba['left']-0x3<=this[_0x2740('0x1')]['x']&&_0x5195ba[_0x2740('0x5c')]+0x3>=this[_0x2740('0x1')]['x'])||_0x389a66[0x0];}}}),this[_0x2740('0x7e')]['showStack'](_0x2740('0x0')));}),this['on']('change:activeChange',(_0x2d59d8,_0x133f83,_0x8c5698,_0x144b9b)=>{this[_0x2740('0xfe')]=_0x8c5698?this[_0x2740('0xf0')](_0x8c5698):null,this[_0x2740('0x74')][_0x2740('0x94')][_0x2740('0x102')](()=>{const _0x2e6df7=this[_0x2740('0x74')][_0x2740('0xd9')];_0x144b9b&&(_0x144b9b[_0x2740('0xd')][_0x2740('0x31')]?_0x2e6df7['view'][_0x2740('0x102')](_0x4489b8=>{_0x4489b8[_0x2740('0xfa')](_0x2740('0x9d'),_0x2e6df7[_0x2740('0xb5')][_0x2740('0xdc')][_0x2740('0x115')](_0x144b9b['rootName']));}):_0x2e6df7['reconvertMarker'](_0x2740('0xf2')+_0x144b9b['id'])),_0x8c5698&&(_0x8c5698[_0x2740('0xd')][_0x2740('0x31')]?_0x2e6df7[_0x2740('0xb5')][_0x2740('0x102')](_0x1b0ad4=>{_0x1b0ad4[_0x2740('0x110')]('ck-revision-history-root--active',_0x2e6df7['view'][_0x2740('0xdc')]['getRoot'](_0x8c5698['rootName']));}):_0x2e6df7[_0x2740('0x11')]('revision:'+_0x8c5698['id']));});}),this[_0x2740('0x8d')](this[_0x2740('0x74')][_0x2740('0xd9')]['view'][_0x2740('0xdc')],_0x2740('0x1b'),(_0x1c3c53,_0x5a2598)=>{if(this[_0x2740('0x105')])return;const _0xe18f0f=this[_0x2740('0x119')](_0x5a2598[_0x2740('0x7b')]),_0x52fc84=this[_0x2740('0x80')][_0x2740('0x92')](_0xe18f0f);_0x52fc84?(this[_0x2740('0x1')]={'x':_0x5a2598[_0x2740('0x2c')]['x'],'y':_0x5a2598[_0x2740('0x2c')]['y']},this[_0x2740('0xfe')]=this[_0x2740('0xf0')](_0x52fc84)):(this[_0x2740('0x1')]=null,this[_0x2740('0xfe')]=null);}),this[_0x2740('0x8d')](this[_0x2740('0x74')]['editing'][_0x2740('0xb5')][_0x2740('0xdc')],'mousedown',(_0x374017,_0x1d7121)=>{const _0x5b5d5d=this[_0x2740('0x119')](_0x1d7121[_0x2740('0x7b')]),_0x5ae2a5=this[_0x2740('0x80')][_0x2740('0x92')](_0x5b5d5d);_0x5ae2a5?(this[_0x2740('0x1')]={'x':_0x1d7121[_0x2740('0x2c')]['x'],'y':_0x1d7121[_0x2740('0x2c')]['y']},_0x5ae2a5===this[_0x2740('0x105')]?this[_0x2740('0x7e')][_0x2740('0x62')]():this[_0x2740('0x105')]=_0x5ae2a5):(this[_0x2740('0x1')]=null,this[_0x2740('0x105')]=null);});}[_0x2740('0x119')](_0x32a3dc){do{const _0x2388a3=_0x32a3dc[_0x2740('0xf1')](_0x2740('0x33'));if(_0x2388a3)return _0x2388a3;_0x32a3dc=_0x32a3dc[_0x2740('0x70')];}while(_0x32a3dc);return null;}[_0x2740('0x5f')](){this[_0x2740('0x74')]['model']['change'](_0x11b720=>{for(const _0x2c019c of this['editor'][_0x2740('0x94')][_0x2740('0x61')])_0x11b720['removeMarker'](_0x2c019c);});}}function Y(_0x22e864,_0x3b0c35){return(_0x3ac880,_0x4166b4,_0x282423)=>{if(!_0x282423[_0x2740('0x29')][_0x2740('0x114')](_0x4166b4[_0x2740('0x10b')],_0x3ac880[_0x2740('0xe5')]))return;const _0x17403b=_0x4166b4[_0x2740('0x10b')][_0x2740('0xdd')](),_0x2e7d4e=_0x4166b4[_0x2740('0x10b')][_0x2740('0x117')],_0x1738a3=_0x22e864[_0x2740('0x94')][_0x2740('0x24')];let _0x25c418=null,_0xa16f18=null,_0x4c9e55=!0x1,_0x1385b8=!0x1;for(const _0x3cd84e of _0x17403b){const _0xc2e1fa=_0x3cd84e[_0x2740('0xa7')];_0x4c9e55=_0x4c9e55||_0x1738a3[_0x2740('0xf5')](_0xc2e1fa);const _0x1bade6=_0x282423['mapper'][_0x2740('0x5a')](_0xc2e1fa);if(_0x1bade6&&_0x1bade6[_0x2740('0x2d')]('addHighlight'))return;'elementEnd'==_0x3cd84e[_0x2740('0xc5')]&&(_0x1738a3[_0x2740('0x50')](_0xc2e1fa)&&!_0x1738a3[_0x2740('0x5b')](_0xc2e1fa)&&(_0xc2e1fa['nextSibling']||_0x2e7d4e['isAtEnd']?_0x25c418&&_0x25c418[_0x2740('0x70')]==_0xc2e1fa||(_0x25c418=_0xc2e1fa,_0x20b010(_0x3cd84e[_0x2740('0xc0')]),_0x1385b8=!0x0):_0xa16f18=_0xa16f18||_0x3cd84e['previousPosition']));}function _0x20b010(_0x53c736){const _0x56e560=_0x282423[_0x2740('0x17')][_0x2740('0x104')](_0x53c736),_0x3f50b0=_0x282423[_0x2740('0x6b')][_0x2740('0x66')](_0x2740('0x3f'),{'class':_0x2740('0x6e')+_0x3b0c35});_0x282423[_0x2740('0x6b')][_0x2740('0x59')](_0x56e560,_0x3f50b0),_0x282423[_0x2740('0x17')][_0x2740('0x15')](_0x3f50b0,_0x4166b4[_0x2740('0xf7')]);}_0x4c9e55||_0x1385b8||!_0xa16f18||_0x20b010(_0xa16f18);};}export class RestoreRevisionCommand extends _0x1ea961{constructor(_0x6a7e16){super(_0x6a7e16);const _0x1dfeb6=_0x6a7e16[_0x2740('0xba')][_0x2740('0x92')](w);this[_0x2740('0x73')]=!0x1,this[_0x2740('0x8d')](_0x1dfeb6,_0x2740('0x1f'),()=>this[_0x2740('0x51')]()),this['listenTo'](_0x1dfeb6,'change:isEnabled',()=>this[_0x2740('0x51')]());}[_0x2740('0xd8')](){const _0x47f2b9=this[_0x2740('0x74')],_0x466eda=_0x47f2b9['plugins']['get'](w),_0x44b92b=_0x466eda['isReady']?_0x466eda['diff'][_0x2740('0x4c')]:null;_0x47f2b9['config'][_0x2740('0x92')](_0x2740('0x25'))['restoreRevisionCallback'](_0x44b92b);}[_0x2740('0x51')](){const {isReady:_0x4a24f3,isEnabled:_0x554e2e}=this[_0x2740('0x74')][_0x2740('0xba')][_0x2740('0x92')](w);this[_0x2740('0x63')]=_0x4a24f3&&_0x554e2e;}}export class ShowChangeCommand extends _0x1ea961{constructor(_0x3afef5,{direction:_0x3c7a14}){super(_0x3afef5);const _0xc1bb85=_0x3afef5[_0x2740('0xba')]['get'](w);this[_0x2740('0x73')]=!0x1,this[_0x2740('0x10')]='forward'===_0x3c7a14?0x1:-0x1,this[_0x2740('0x8d')](_0xc1bb85,_0x2740('0x1f'),()=>this[_0x2740('0x51')]()),this[_0x2740('0x8d')](_0xc1bb85,_0x2740('0x12'),()=>this['refresh']());}[_0x2740('0xd8')](){const _0xb39783=this[_0x2740('0x74')],_0x2e4687=_0xb39783[_0x2740('0xba')][_0x2740('0x92')](w),{isNavigationMode:_0x4a4f3f,currentChangeNumber:_0x1d7bf5}=_0x2e4687;let _0x27ff01;if(_0x2e4687[_0x2740('0x105')]=_0x4a4f3f?_0x2e4687[_0x2740('0x3b')][_0x2740('0xe4')][_0x2740('0x92')](_0x1d7bf5+this['_step']):_0x2e4687[_0x2740('0x3b')][_0x2740('0xe4')]['first'],_0x2e4687['activeChange']['data']['isOnRoot'])_0x27ff01=_0xb39783[_0x2740('0xd9')]['view'][_0x2740('0x8c')](_0x2e4687[_0x2740('0x105')][_0x2740('0x78')]);else{const _0x5eeecb=_0xb39783[_0x2740('0x94')][_0x2740('0x61')][_0x2740('0x92')](_0x2740('0xf2')+_0x2e4687[_0x2740('0x105')]['id']);_0x27ff01=_0x579c97(_0xb39783[_0x2740('0xd9')],_0x5eeecb);}_0x226e14({'target':_0x27ff01,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x298788,currentChangeNumber:_0x38d35d,numberOfChanges:_0x1d8785,isReady:_0x3c1253,isEnabled:_0x38caad}=this[_0x2740('0x74')][_0x2740('0xba')]['get'](w);this['isEnabled']=!!(_0x38caad&&_0x3c1253&&_0x1d8785)&&(!_0x298788||(0x1===this['_step']?_0x38d35d<_0x1d8785-0x1:_0x38d35d>0x0));}}
23
+ const _0x67be=['previousPosition','collaboration.channelId','top','vid','markerName','addRoot','_setChanges','removeMarker:revision','length','_balloon','end','activeView','listenTo','nextSibling','ck-suggestion-marker','marked','isRemoveSuggestion','splice','_removeUnsupportedChanges','domEvent','isBlock','isEqual','_joinTapes','isAttached','code','mapper','change:activeChange','consume','merge','delete','flat','revision-viewer','isReady','_getRevisionsRange','affectsData','isIncorrect','forceDisabled','revision-comment:','_fixObsoleteTags','attachChange','bottom','viewItem','createUIElement','_makeModelFromTape','document','plugins','abs','getWalker','createRangeIn','hasClass','addMarker:revision-suggestion:insertion','from','_markSuggestions','bindElementToMarker','done','getRoot','rootName','getRootNames','_removeMissingPairs','enqueueChange','schema','markersEnd','RevisionViewer','toModel','elementToAttribute','then','item','removeClass','compare','_makeModelFromViewString','_refreshStartEndIndex','activeChange','suggestion:','data-revision-','forEach','ck-suggestion-marker--active','isNavigationMode','useFillerType','isContent','revisionHistoryLabel','ck-suggestion-marker-','attribute:vid','low','changes','return','enableReadOnlyMode','pluginName','maxOffset','isSuggestion','markerToHighlight','userId','insert','keys','highest','getItems','markersStart','test','text','add','revision','findIndex','change:isReady','RevisionsRepository','markerRange','range','isCollapsed','ck-suggestion-marker-merge','restoreRevision','startIndex','_step','requires','getAttributes','mapViewToDom','isAtStart','consumable','span','pop','nextPosition','has','name','isEnabled','execute','toViewPosition','concat','revision:','config','attributesAfter','shift','modelRange','_markMarkers','_markMismatchedRemovedTags','createAttributeElement','isAtEnd','POSITIVE_INFINITY','showPreviousChange','indexOf','revision-end','model','_markInsertions','showStack','deletion','split','addHighlight','dataToMarker','reconvertMarker','-new','createRevision','_cleanMarkers','dataDowncast','diff','loadRevisionData','endIndex','_changeView','insertion','unbindElementFromMarkerName','refresh','stop','target','createPositionFromPath','toViewElement','index','revisionHistory','parent','editor','createPositionBefore','toData','resolve','ck-suggestion-preview-marker-','isAdded','change','domConverter','hasAttribute','isObject','authors','get','_getChangeFromId','ck-suggestion-preview-marker','oldRevisionId','mouseover','revisionHistoryAttachChange','revision-suggestion','element','diffData','_findChangeIdFromDomTarget','_threeWayMerge','nodeAfter','bind','pairId','getDomRoot','ck-editor__editable__overlay','getAttribute','WidgetToolbarRepository','markerToData','toViewRange','upcast','deletions','getCustomProperty','addRevisionData','comment','getRevision','isRemoved','default','attributes','level','removeAttribute','_changeIdToChange','observeMarkers','offsetSize','destroy','clear','for','showNextChange','addMarker:revision','_getViewForChange','side','_appendChild','elementStart','forward','getRevisionData','left','downcastDispatcher','isAfter','detachRoot','_data','processor','change:isEnabled','currentChangeNumber','vid_start','_processTape','elementEnd','editingDowncast','set','type','_initInteractions','addClass','sort','remove','filter','createRange','wrap','vid_end','addRevision','right','changeId','isLimit','_getDiff','markers','ck-suggestion-marker-split','_getViewObj','checkAttribute','newRevisionId','isAddSuggestion','conversion','push','map','parse','backward','getRevisionRootsAttributes','isOnRoot','children','string','start','data','view','_removeRevisionMarkers','insertions','high','includes','commands','writer','find','mousedown','locale','_setDistance','repository','ck-revision-history-root--active','init','softBreak','_activeViewTarget','unshift','_sortAndFilterDiffChanges','suggestion','isBefore','change:numberOfChanges','setAttribute','isInline','markerNameToElements','_cleanUp','removeMarker','_setConversion','startsWith','distance','editing','_update','ck-revision-history-root-','getClientRects','all','restoreRevisionCallback','_makeTape'];(function(_0x4781eb,_0x67bee4){const _0x5bd4dd=function(_0xe1bd68){while(--_0xe1bd68){_0x4781eb['push'](_0x4781eb['shift']());}};_0x5bd4dd(++_0x67bee4);}(_0x67be,0x190));const _0x5bd4=function(_0x4781eb,_0x67bee4){_0x4781eb=_0x4781eb-0x0;let _0x5bd4dd=_0x67be[_0x4781eb];return _0x5bd4dd;};import{Plugin as _0x5ce30b,Command as _0x5b4a33}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x5214f0}from'ckeditor5/src/utils';import{ContextualBalloon as _0x5ee8bc}from'ckeditor5/src/ui';import{DocumentFragment as _0x2d0625,Element as _0x30ac3d,Text as _0x51642b,ViewDocumentFragment as _0x1dfeab,ViewText as _0x1058e8,ViewElement as _0x3c40ed,ViewContainerElement as _0x59605b,ViewAttributeElement as _0x1df025,ViewEmptyElement as _0x54fdb0,ViewRawElement as _0x50e891,ViewUIElement as _0x45d92e}from'ckeditor5/src/engine';import{Users as _0x2bb188,getMarkerDomElement as _0x222649}from'ckeditor5-collaboration/src/collaboration-core';import _0x5dc8aa from'./ui/revisionviewer/changedetailsview';import _0x464859 from'./revisionsrepository';import _0x33f7bf from'./changeitem';import{default as _0x2420f6}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x5297ec}from'lodash-es';const X={'c':_0x59605b,'a':_0x1df025,'e':_0x54fdb0,'r':_0x50e891,'u':_0x45d92e};export default class w extends _0x5ce30b{static get[_0x5bd4('0x11c')](){return _0x5bd4('0x104');}static get[_0x5bd4('0x9')](){return[_0x2bb188,_0x5ee8bc,_0x464859];}constructor(_0x6db929){super(_0x6db929),this[_0x5bd4('0xad')]=this['editor'][_0x5bd4('0xf3')][_0x5bd4('0x49')](_0x5bd4('0x1')),this['set'](_0x5bd4('0x10d'),null),this['set']('activeView',null),this[_0x5bd4('0xb1')]=null,this['set'](_0x5bd4('0x30'),null),this['set'](_0x5bd4('0xe6'),!0x1),this['set'](_0x5bd4('0x13'),!0x0),this['on'](_0x5bd4('0x7c'),(_0x3b5b4c,_0x487cb7,_0x7bd55f)=>{this[_0x5bd4('0x10d')]=null,this['activeView']=null,this['editor'][_0x5bd4('0xbf')]['view']['change'](_0x3553b3=>{for(const _0x4a901c of this[_0x5bd4('0x3e')][_0x5bd4('0xbf')]['view'][_0x5bd4('0xf2')]['roots'])_0x7bd55f?_0x3553b3[_0x5bd4('0x109')](_0x5bd4('0x58'),_0x4a901c):_0x3553b3[_0x5bd4('0x85')](_0x5bd4('0x58'),_0x4a901c);});}),this['bind'](_0x5bd4('0x112'))['to'](this,_0x5bd4('0x10d'),_0x2bd82f=>null!==_0x2bd82f),this[_0x5bd4('0x55')](_0x5bd4('0x7d'))['to'](this,_0x5bd4('0xe6'),this,_0x5bd4('0x30'),this,_0x5bd4('0x10d'),(_0x2c67ec,_0x6caf51,_0x39594c)=>_0x2c67ec&&_0x39594c?_0x6caf51[_0x5bd4('0x119')]['getIndex'](_0x39594c):0x0),this[_0x5bd4('0x55')]('numberOfChanges')['to'](this,_0x5bd4('0xe6'),this,_0x5bd4('0x30'),(_0x1d82b4,_0x43c10e)=>_0x1d82b4?_0x43c10e[_0x5bd4('0x119')][_0x5bd4('0xce')]:0x0),this[_0x5bd4('0x33')]=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this[_0x5bd4('0x3e')][_0x5bd4('0xf3')][_0x5bd4('0x49')](_0x5ee8bc);}[_0x5bd4('0xaf')](){const _0xcce571=this[_0x5bd4('0x3e')],_0xfd3b78=new ShowChangeCommand(_0xcce571,{'direction':_0x5bd4('0x9b')}),_0x4b214d=new ShowChangeCommand(_0xcce571,{'direction':'forward'});(_0xcce571[_0x5bd4('0xa7')][_0x5bd4('0x128')](_0x5bd4('0x21'),_0xfd3b78),_0xcce571['commands']['add'](_0x5bd4('0x6e'),_0x4b214d),_0xcce571[_0x5bd4('0xa7')]['add'](_0x5bd4('0x6'),new RestoreRevisionCommand(_0xcce571)),this['on'](_0x5bd4('0xb6'),()=>{_0xfd3b78['refresh'](),_0x4b214d[_0x5bd4('0x36')]();}),this[_0x5bd4('0xbc')](),this[_0x5bd4('0x84')](),_0xcce571[_0x5bd4('0x11b')](_0x5bd4('0xe5')),_0xcce571[_0x5bd4('0xf3')][_0x5bd4('0x11')](_0x5bd4('0x5a')))&&_0xcce571[_0x5bd4('0xf3')][_0x5bd4('0x49')](_0x5bd4('0x5a'))[_0x5bd4('0xea')]('revision-viewer');}async[_0x5bd4('0x75')](_0xf2d445){await this['loadRevisionData'](_0xf2d445);const _0x5bf0b0={};for(const _0x2907a7 in _0xf2d445['diffData']){if(_0xf2d445[_0x5bd4('0x51')][_0x2907a7][_0x5bd4('0xed')]&&!_0xf2d445[_0x5bd4('0x51')][_0x2907a7][_0x5bd4('0xed')][_0x5bd4('0xdd')])continue;const _0x3e1940=this[_0x5bd4('0xa3')](JSON['parse'](_0xf2d445[_0x5bd4('0x51')][_0x2907a7][_0x5bd4('0xa4')])),_0x3d8abc=this[_0x5bd4('0x3e')][_0x5bd4('0xbf')]['view'][_0x5bd4('0xf2')],_0x5d64c3=new _0x1dfeab(_0x3d8abc,_0x3e1940['map'](_0x2da0ff=>this[_0x5bd4('0x93')](_0x2da0ff)));this[_0x5bd4('0x3e')][_0x5bd4('0xa1')]['processor']['useFillerType'](_0x5bd4('0xd5')),_0x5bf0b0[_0x2907a7]=this['editor'][_0x5bd4('0xa1')][_0x5bd4('0x7b')][_0x5bd4('0x40')](_0x5d64c3),this[_0x5bd4('0x3e')]['data']['processor'][_0x5bd4('0x113')](_0x5bd4('0x64'));}return _0x5bf0b0;}async[_0x5bd4('0x9c')](_0x2639ea){await this[_0x5bd4('0x31')](_0x2639ea);const _0x11565d={};for(const _0x211796 in _0x2639ea[_0x5bd4('0x51')])_0x2639ea[_0x5bd4('0x51')][_0x211796][_0x5bd4('0xed')]&&!_0x2639ea[_0x5bd4('0x51')][_0x211796][_0x5bd4('0xed')][_0x5bd4('0xdd')]||(_0x11565d[_0x211796]=_0x2639ea[_0x5bd4('0x51')][_0x211796]['attributesAfter']||{});return _0x11565d;}['_removeRevisionMarkers'](_0x1c134d){return(_0x1c134d=_0x1c134d['filter'](_0x112231=>!_0x112231[_0x5bd4('0x12')]||'revision-start'!==_0x112231['name']&&_0x5bd4('0x23')!==_0x112231[_0x5bd4('0x12')]))[_0x5bd4('0x110')](_0x19125b=>{_0x5bd4('0x9f')!=typeof _0x19125b&&(_0x19125b[_0x5bd4('0x9e')]=this[_0x5bd4('0xa3')](_0x19125b[_0x5bd4('0x9e')]),_0x19125b[_0x5bd4('0x65')]=_0x19125b[_0x5bd4('0x65')]['filter'](_0x1f4591=>!_0x1f4591[0x0][_0x5bd4('0xbd')](_0x5bd4('0x10f'))));}),_0x1c134d;}async[_0x5bd4('0x10a')](_0x15d358,_0x107f3b,_0x50e2c7=!0x1){if(!this['isEnabled'])return;const _0x4504d4=this[_0x5bd4('0x30')],_0x9a3503=this[_0x5bd4('0xad')],_0x8ea9dc=_0x5bd4('0x9f')==typeof _0x15d358?_0x9a3503[_0x5bd4('0x62')](_0x15d358):_0x15d358,_0x35a2d5=_0x5bd4('0x9f')==typeof _0x107f3b?_0x9a3503[_0x5bd4('0x62')](_0x107f3b):_0x107f3b,_0x624657=_0x8ea9dc['id'],_0x17a65b=_0x35a2d5?_0x35a2d5['id']:null;if(!_0x50e2c7&&this[_0x5bd4('0x30')]&&this[_0x5bd4('0x30')]['newRevisionId']===_0x624657&&this[_0x5bd4('0x30')][_0x5bd4('0x4c')]===_0x17a65b)return Promise[_0x5bd4('0x41')]();this[_0x5bd4('0xe6')]=!0x1,this[_0x5bd4('0xd1')]=null,this['activeChange']=null,this[_0x5bd4('0x30')]=new _0x2420f6(_0x624657,_0x17a65b);const _0x15695a=this['_getRevisionsRange'](_0x8ea9dc,_0x35a2d5,!0x0)[_0x5bd4('0x99')](_0x59ae0b=>this[_0x5bd4('0x31')](_0x59ae0b));return _0x15695a[_0x5bd4('0x98')](new Promise(_0x36a516=>{setTimeout(_0x36a516,0x14);})),Promise[_0x5bd4('0xc3')](_0x15695a)[_0x5bd4('0x107')](()=>{if(!this[_0x5bd4('0x13')])return;this[_0x5bd4('0xba')]();const _0x4c746d=this[_0x5bd4('0x90')](_0x624657,_0x17a65b);for(const _0x2a1bf4 of _0x4c746d[_0x5bd4('0x119')])this[_0x5bd4('0x68')][_0x5bd4('0x82')](_0x2a1bf4['id'],_0x2a1bf4);this['editor'][_0x5bd4('0x24')][_0x5bd4('0x101')]({'isUndoable':!0x1},_0x14b92e=>{for(const _0x44bf39 of this[_0x5bd4('0x3e')][_0x5bd4('0x24')][_0x5bd4('0xf2')][_0x5bd4('0xff')]())_0x14b92e[_0x5bd4('0x79')](_0x44bf39);for(const _0x560fe0 of Object['keys'](_0x4c746d['model'])){const _0x254a8b=_0x14b92e[_0x5bd4('0xcb')](_0x560fe0);for(const _0x1908c2 of Object[_0x5bd4('0x122')](_0x4c746d[_0x5bd4('0x65')][_0x560fe0]))_0x14b92e['setAttribute'](_0x1908c2,_0x4c746d[_0x5bd4('0x65')][_0x560fe0][_0x1908c2],_0x254a8b);_0x14b92e[_0x5bd4('0x121')](_0x4c746d[_0x5bd4('0x24')][_0x560fe0],_0x254a8b,0x0);}}),this['diff'][_0x5bd4('0xcc')](this['_sortAndFilterDiffChanges'](_0x4c746d[_0x5bd4('0x119')])),this[_0x5bd4('0xe6')]=!0x0;})['catch'](_0x4c2d9c=>{console['error'](_0x4c2d9c),this[_0x5bd4('0xba')](),_0x4504d4&&(this[_0x5bd4('0x30')]=_0x4504d4),this[_0x5bd4('0xe6')]=!0x0;});}[_0x5bd4('0x60')](_0x266253,_0x184bea){const _0x1df2a9=this[_0x5bd4('0xad')][_0x5bd4('0x2d')](_0x266253);return _0x1df2a9['on']('_update',(_0x5c873a,_0x28d1d1,_0x3ba17c)=>_0x184bea(_0x28d1d1,_0x3ba17c,_0x1df2a9)),this[_0x5bd4('0xad')][_0x5bd4('0x8c')](_0x1df2a9),_0x1df2a9;}[_0x5bd4('0x31')](_0x24e1be){if(!_0x24e1be||_0x24e1be['diffData'])return Promise[_0x5bd4('0x41')]();{const _0x4abc38=this[_0x5bd4('0x3e')][_0x5bd4('0x18')]['get'](_0x5bd4('0xc7'));return this['adapter'][_0x5bd4('0x62')]({'channelId':_0x4abc38,'revisionId':_0x24e1be['id']})[_0x5bd4('0x107')](_0x21d506=>{_0x24e1be[_0x5bd4('0xc0')]({'diffData':_0x21d506[_0x5bd4('0x51')]},!0x0);});}}[_0x5bd4('0xba')](){this[_0x5bd4('0x10d')]=null,this[_0x5bd4('0x2e')](),this[_0x5bd4('0x33')]&&this[_0x5bd4('0x33')][_0x5bd4('0x6b')](),this['_changeView']=null,this[_0x5bd4('0x68')][_0x5bd4('0x6c')](),this[_0x5bd4('0x3e')][_0x5bd4('0x24')][_0x5bd4('0x101')]({'isUndoable':!0x1},_0x249cac=>{for(const _0xe130d6 of this[_0x5bd4('0x3e')][_0x5bd4('0x24')][_0x5bd4('0xf2')][_0x5bd4('0xff')]())_0x249cac[_0x5bd4('0x79')](_0xe130d6);});}[_0x5bd4('0xb3')](_0x5d5eb4){const _0x15d7e0=[],_0x1286d8=new Map();for(const _0x3a564b of this['editor'][_0x5bd4('0x24')]['document'][_0x5bd4('0xff')]()){const _0x1276da=this[_0x5bd4('0x3e')]['editing'][_0x5bd4('0xa2')][_0x5bd4('0x57')](_0x3a564b);if(!_0x1276da)continue;const _0xe66a2d=_0x1276da[_0x5bd4('0xc2')]()[_0x5bd4('0x108')](0x0);_0xe66a2d&&(_0x15d7e0[_0x5bd4('0x98')](_0x3a564b),_0x1286d8['set'](_0x3a564b,_0xe66a2d));}return _0x15d7e0[_0x5bd4('0x86')]((_0x173dfd,_0x4ebd66)=>{const _0x3e3f04=_0x1286d8[_0x5bd4('0x49')](_0x173dfd),_0x5bc57c=_0x1286d8['get'](_0x4ebd66);return _0x3e3f04['y']-_0x5bc57c['y']||_0x3e3f04['x']-_0x5bc57c['x'];}),(_0x5d5eb4=_0x5d5eb4[_0x5bd4('0x88')](_0x53deda=>_0x15d7e0['includes'](_0x53deda[_0x5bd4('0xfe')])))[_0x5bd4('0x86')]((_0x6afe2,_0x1d7ed2)=>_0x15d7e0[_0x5bd4('0x22')](_0x6afe2[_0x5bd4('0xfe')])-_0x15d7e0[_0x5bd4('0x22')](_0x1d7ed2['rootName'])),_0x5d5eb4;}[_0x5bd4('0xc5')](_0x187252){const _0x37e79f=Array['from'](_0x187252[_0x5bd4('0x91')])[_0x5bd4('0x88')](([_0x4e8a6e,_0x5cfdee])=>_0x4e8a6e[_0x5bd4('0xbd')]('revision:')&&!_0x5cfdee[_0x5bd4('0x4')]),_0x52bf8a=Array[_0x5bd4('0xf9')](this[_0x5bd4('0x3e')]['model'][_0x5bd4('0xf6')](_0x187252)[_0x5bd4('0xf5')]({'singleCharacters':!0x0}));if(0x0!=_0x37e79f[_0x5bd4('0xce')])for(const _0x524da4 of _0x52bf8a){const [_0x446dba,_0x5e1cad]=_0x37e79f[0x0],[,_0x3e02ea,_0x110c36]=_0x446dba[_0x5bd4('0x28')](':');if(_0x5e1cad['end'][_0x5bd4('0xdb')](_0x524da4[_0x5bd4('0x10')])&&_0x37e79f[_0x5bd4('0x1a')](),(_0x524da4[_0x5bd4('0xc6')][_0x5bd4('0xdb')](_0x5e1cad[_0x5bd4('0xa0')])||_0x524da4[_0x5bd4('0xc6')][_0x5bd4('0x78')](_0x5e1cad[_0x5bd4('0xa0')]))&&(_0x5bd4('0x34')==_0x3e02ea?_0x524da4[_0x5bd4('0x43')]={'userId':_0x110c36}:_0x5bd4('0x27')==_0x3e02ea&&(_0x524da4[_0x5bd4('0x63')]={'userId':_0x110c36})),0x0==_0x37e79f[_0x5bd4('0xce')])break;}return _0x52bf8a;}[_0x5bd4('0x10c')](_0x38c5ef){const _0x383367=new Map();for(let _0x2837e4=0x0;_0x2837e4<_0x38c5ef[_0x5bd4('0xce')];_0x2837e4++)'text'===_0x38c5ef[_0x2837e4][_0x5bd4('0x83')]?(_0x38c5ef[_0x2837e4][_0x5bd4('0x108')]['startIndex']=_0x2837e4,_0x38c5ef[_0x2837e4][_0x5bd4('0x108')][_0x5bd4('0x32')]=_0x2837e4):(_0x5bd4('0x73')===_0x38c5ef[_0x2837e4][_0x5bd4('0x83')]?_0x38c5ef[_0x2837e4][_0x5bd4('0x108')][_0x5bd4('0x7')]=_0x2837e4:'elementEnd'===_0x38c5ef[_0x2837e4][_0x5bd4('0x83')]&&(_0x38c5ef[_0x2837e4][_0x5bd4('0x108')][_0x5bd4('0x32')]=_0x2837e4),_0x383367[_0x5bd4('0x82')](_0x38c5ef[_0x2837e4]['id'],_0x2837e4));for(const _0x389142 of _0x383367['values']())'elementStart'===_0x38c5ef[_0x389142][_0x5bd4('0x83')]?_0x38c5ef[_0x389142][_0x5bd4('0x108')]['endIndex']=_0x383367['get'](_0x38c5ef[_0x389142][_0x5bd4('0x56')]):_0x5bd4('0x80')===_0x38c5ef[_0x389142][_0x5bd4('0x83')]&&(_0x38c5ef[_0x389142][_0x5bd4('0x108')]['startIndex']=_0x383367[_0x5bd4('0x49')](_0x38c5ef[_0x389142][_0x5bd4('0x56')]));}[_0x5bd4('0x7f')](_0x1c4466){for(let _0x38ad59=0x0;_0x38ad59<_0x1c4466[_0x5bd4('0xce')];_0x38ad59++){if(_0x5bd4('0x73')===_0x1c4466[_0x38ad59][_0x5bd4('0x83')])_0x1c4466[_0x38ad59][_0x5bd4('0x108')]['startIndex']=_0x38ad59;else{if(_0x5bd4('0x80')===_0x1c4466[_0x38ad59]['type']){_0x1c4466[_0x38ad59][_0x5bd4('0x108')][_0x5bd4('0x32')]=_0x38ad59;const _0x516df6=_0x1c4466[_0x38ad59][_0x5bd4('0x108')][_0x5bd4('0x7')];_0x1c4466[_0x516df6]['pairId']=_0x1c4466[_0x38ad59]['id'],_0x1c4466[_0x38ad59]['pairId']=_0x1c4466[_0x516df6]['id'];}else _0x1c4466[_0x38ad59][_0x5bd4('0x108')][_0x5bd4('0x7')]=_0x38ad59,_0x1c4466[_0x38ad59][_0x5bd4('0x108')][_0x5bd4('0x32')]=_0x38ad59,_0x1c4466[_0x38ad59][_0x5bd4('0x56')]=null;}_0x1c4466[_0x38ad59]['markersStart']||(_0x1c4466[_0x38ad59]['markersStart']=[],_0x1c4466[_0x38ad59][_0x5bd4('0x103')]=[]);}}[_0x5bd4('0x25')](_0x39ba60,_0x4292df){const _0xbac7f=_0x39ba60['filter'](_0x592ac7=>!_0x592ac7['isAdded']);for(let _0x1212c0=0x0;_0x1212c0<_0x4292df['length'];_0x1212c0++)_0x4292df[_0x1212c0]['isAdded']&&(_0xbac7f[_0x1212c0]['isAdded']=_0x4292df[_0x1212c0][_0x5bd4('0x43')]);}[_0x5bd4('0x10b')](_0x3e84cb){const _0xe83b76=JSON[_0x5bd4('0x9a')](_0x3e84cb),_0x1bb454=this[_0x5bd4('0x3e')][_0x5bd4('0xbf')][_0x5bd4('0xa2')][_0x5bd4('0xf2')],_0x5589fd=new _0x1dfeab(_0x1bb454,_0xe83b76[_0x5bd4('0x99')](_0x3fcb45=>this['_getViewObj'](_0x3fcb45)));return this['editor'][_0x5bd4('0xa1')][_0x5bd4('0x105')](_0x5589fd);}[_0x5bd4('0x93')](_0x4161c9){const _0x43ee74=this[_0x5bd4('0x3e')][_0x5bd4('0xbf')][_0x5bd4('0xa2')][_0x5bd4('0xf2')];if(_0x5bd4('0x9f')==typeof _0x4161c9)return new _0x1058e8(_0x43ee74,_0x4161c9);{const _0x1d0c12=_0x4161c9[_0x5bd4('0x9e')][_0x5bd4('0x99')](_0x3e74ef=>this['_getViewObj'](_0x3e74ef));return new(X[_0x4161c9[(_0x5bd4('0x83'))]]||_0x3c40ed)(_0x43ee74,_0x4161c9['name'],_0x4161c9[_0x5bd4('0x65')],_0x1d0c12);}}[_0x5bd4('0x90')](_0x49cff2,_0x19c867=null){const _0x3792ae=this['repository'][_0x5bd4('0x62')](_0x49cff2),_0x1b0122=_0x19c867?this['repository'][_0x5bd4('0x62')](_0x19c867):null,_0x1221d9=this['_getRevisionsRange'](_0x3792ae,_0x1b0122),_0x154e87=_0x1221d9[_0x1221d9['length']-0x1],_0x5de70f=new Map(),_0x2a26b2={'model':{},'attributes':{},'changes':[]},_0x35ce17=new Set(),_0x7b33d6=new Map();for(let _0x3d70ca=_0x1221d9['length']-0x1;_0x3d70ca>=0x0;_0x3d70ca--){const _0x4d200f=_0x1221d9[_0x3d70ca];for(const _0x5d2f4d of Object['keys'](_0x4d200f[_0x5bd4('0x51')]))if(_0x4d200f['diffData'][_0x5d2f4d][_0x5bd4('0xed')]){const _0x20094d=_0x4d200f[_0x5bd4('0x51')][_0x5d2f4d][_0x5bd4('0xed')];_0x20094d[_0x5bd4('0xdd')]?(_0x35ce17[_0x5bd4('0x128')](_0x5d2f4d),_0x7b33d6[_0x5bd4('0x11')](_0x5d2f4d)&&_0x7b33d6[_0x5bd4('0x49')](_0x5d2f4d)['userId']==_0x20094d['userId']?_0x7b33d6[_0x5bd4('0xe3')](_0x5d2f4d):_0x7b33d6[_0x5bd4('0x82')](_0x5d2f4d,_0x20094d)):_0x7b33d6[_0x5bd4('0x11')](_0x5d2f4d)?(_0x35ce17['delete'](_0x5d2f4d),_0x7b33d6[_0x5bd4('0xe3')](_0x5d2f4d)):(_0x35ce17['add'](_0x5d2f4d),_0x7b33d6[_0x5bd4('0x82')](_0x5d2f4d,_0x20094d));}else _0x35ce17[_0x5bd4('0x128')](_0x5d2f4d);}for(const _0x3898a2 of _0x35ce17){const _0x267570=_0x7b33d6[_0x5bd4('0x11')](_0x3898a2)&&!_0x7b33d6[_0x5bd4('0x49')](_0x3898a2)[_0x5bd4('0xdd')];let _0x377036=_0x267570?_0x1221d9['length']-0x1:0x0;const _0x313b9e=_0x267570?-0x1:0x1;for(;_0x1221d9[_0x377036];){const _0x1fb1ca=_0x1221d9[_0x377036];if(_0x1fb1ca[_0x5bd4('0x51')][_0x3898a2]){const _0x388fed=_0x267570?_0x1fb1ca['diffData'][_0x3898a2]['attributesBefore']:_0x1fb1ca[_0x5bd4('0x51')][_0x3898a2][_0x5bd4('0x19')];_0x2a26b2[_0x5bd4('0x65')][_0x3898a2]=_0x388fed?_0x5297ec(_0x388fed):{};break;}_0x377036+=_0x313b9e;}}for(const _0x283798 of _0x1221d9){_0x283798[_0x5bd4('0x24')]={};for(const _0x121b81 of _0x283798[_0x5bd4('0x48')])_0x5de70f['set'](_0x121b81['id'],_0x121b81);for(const _0x3acc66 of _0x35ce17){const _0x47176b=_0x283798[_0x5bd4('0x51')][_0x3acc66]?_0x283798[_0x5bd4('0x51')][_0x3acc66][_0x5bd4('0xa4')]:'[]',_0xba5e52=_0x283798[_0x5bd4('0x51')][_0x3acc66]?_0x283798[_0x5bd4('0x51')][_0x3acc66][_0x5bd4('0x5e')]:'[]';_0x283798[_0x5bd4('0x24')][_0x3acc66]={'insertions':this['_makeModelFromViewString'](_0x47176b),'deletions':this[_0x5bd4('0x10b')](_0xba5e52)};}}for(const _0x226d0c of _0x35ce17){let _0x151083=null,_0x177450=0x0;const _0x59e058=new Map(Array[_0x5bd4('0xf9')](_0x3792ae['model'][_0x226d0c][_0x5bd4('0xa4')]['markers'])['filter'](([_0x580d99])=>!_0x580d99['startsWith'](_0x5bd4('0x17'))));let _0x4757c2=0x0;for(const _0xc8dad of _0x1221d9){const _0x1269bd=this[_0x5bd4('0xc5')](_0xc8dad[_0x5bd4('0x24')][_0x226d0c]['insertions']);_0xc8dad==_0x3792ae?(_0x151083=_0x1269bd,_0x177450=_0x151083[_0x5bd4('0xce')],_0x151083[_0x5bd4('0x110')](_0x4d8036=>{_0x4d8036['id']=_0x4757c2++;}),this[_0x5bd4('0x7f')](_0x151083)):this[_0x5bd4('0x25')](_0x151083,_0x1269bd);const _0x2fba80=_0x151083['filter'](_0x38403d=>!_0x38403d[_0x5bd4('0x43')])[_0x5bd4('0x99')](_0x5dbd74=>_0x5dbd74['id']);let _0x11475d=0x0;const _0x733221=this[_0x5bd4('0xc5')](_0xc8dad[_0x5bd4('0x24')][_0x226d0c]['deletions']);_0x733221['forEach'](_0x5b257d=>{_0x5b257d[_0x5bd4('0x63')]?_0x5b257d['id']=_0x177450++:_0x5b257d['id']=_0x2fba80[_0x11475d++];}),this['_processTape'](_0x733221),this[_0x5bd4('0xac')](_0x151083,_0x5bd4('0x43')),this['_setDistance'](_0x733221,_0x5bd4('0x63')),_0xc8dad==_0x3792ae&&this[_0x5bd4('0x1c')](_0x151083,_0x59e058),_0x151083=this[_0x5bd4('0xdc')](_0x151083,_0x733221),this[_0x5bd4('0x10c')](_0x151083),this[_0x5bd4('0xac')](_0x151083,_0x5bd4('0x63'));}_0x151083=_0x151083['filter'](_0x9c07dd=>!(_0x9c07dd[_0x5bd4('0x43')]&&_0x9c07dd[_0x5bd4('0x63')]));const _0x147b48=new Map(_0x154e87[_0x5bd4('0x24')][_0x226d0c]['deletions'][_0x5bd4('0x91')]),_0x2bfab1=new Set(_0x59e058['keys']());for(const _0x4be80d of _0x147b48[_0x5bd4('0x122')]())_0x2bfab1['delete'](_0x4be80d);this['_markSuggestions'](_0x151083,_0x2bfab1),this[_0x5bd4('0xec')](_0x151083),_0x151083=this[_0x5bd4('0x100')](_0x151083),_0x151083=this[_0x5bd4('0x1d')](_0x151083),_0x151083=this[_0x5bd4('0xd8')](_0x151083);const {root:_0x25a146,changes:_0x43ead1}=this['_makeModelFromTape'](_0x151083,_0x5de70f,_0x226d0c);_0x2a26b2[_0x5bd4('0x24')][_0x226d0c]=_0x25a146;const _0x4532e0=_0x7b33d6[_0x5bd4('0x49')](_0x226d0c);if(_0x4532e0){const _0x5812a8=_0x5de70f['get'](_0x4532e0[_0x5bd4('0x120')]),_0x542999=new _0x33f7bf({'author':_0x5812a8,'type':_0x4532e0[_0x5bd4('0xdd')]?_0x5bd4('0x128'):_0x5bd4('0x87'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x226d0c});_0x43ead1[_0x5bd4('0xb2')](_0x542999),_0x2a26b2['attributes'][_0x226d0c]['revisionHistoryAttachChange']=_0x542999['id'];}_0x2a26b2['changes']=_0x2a26b2[_0x5bd4('0x119')]['concat'](_0x43ead1);}return _0x2a26b2;}[_0x5bd4('0x1c')](_0x3ceb03,_0x359a70){for(let _0x3b1ae8=0x0;_0x3b1ae8<_0x3ceb03[_0x5bd4('0xce')];_0x3b1ae8++)for(const [_0x3504c4,_0x32f959]of _0x359a70)_0x32f959[_0x5bd4('0xa0')][_0x5bd4('0xdb')](_0x3ceb03[_0x3b1ae8][_0x5bd4('0xc6')])&&_0x3ceb03[_0x3b1ae8][_0x5bd4('0x125')][_0x5bd4('0x98')](_0x3504c4),_0x32f959[_0x5bd4('0xd0')][_0x5bd4('0xdb')](_0x3ceb03[_0x3b1ae8]['nextPosition'])&&_0x3ceb03[_0x3b1ae8][_0x5bd4('0x103')][_0x5bd4('0x98')](_0x3504c4);}[_0x5bd4('0xdc')](_0x24a51c,_0x4d7051){let _0x554d71=[],_0xa5228c=0x0,_0x546fde=0x0;for(;_0xa5228c<_0x24a51c['length']||_0x546fde<_0x4d7051[_0x5bd4('0xce')];){const _0x4bbcdd=_0x24a51c[_0xa5228c]||{},_0x53b9ba=_0x4d7051[_0x546fde]||{};if(_0x4bbcdd['id']==_0x53b9ba['id'])_0xa5228c++,_0x546fde++,_0x554d71[_0x5bd4('0x98')](_0x4bbcdd);else{if(_0x53b9ba[_0x5bd4('0x63')]&&_0x4bbcdd['isAdded']){const {commonTape:_0x281c40,iEnd:_0x31237d,jEnd:_0x1ec7f5}=this['_threeWayMerge'](_0x24a51c,_0xa5228c,_0x4d7051,_0x546fde);_0x554d71=_0x554d71[_0x5bd4('0x16')](_0x281c40),_0xa5228c=_0x31237d,_0x546fde=_0x1ec7f5;}else _0x53b9ba['isRemoved']?(_0x546fde++,_0x554d71[_0x5bd4('0x98')](_0x53b9ba)):(_0xa5228c++,_0x554d71['push'](_0x4bbcdd));}}return _0x554d71;}[_0x5bd4('0xfa')](_0x4bf04e,_0x5a70af){const _0x41fed7=[];for(let _0x44915a=0x0;_0x44915a<_0x4bf04e['length'];_0x44915a++){for(let _0x40d7fe=0x0;_0x40d7fe<_0x4bf04e[_0x44915a][_0x5bd4('0x125')]['length'];_0x40d7fe++){const _0x55b888=_0x4bf04e[_0x44915a][_0x5bd4('0x125')][_0x40d7fe];if(!_0x5a70af[_0x5bd4('0x11')](_0x55b888))continue;const {group:_0x3f34f9,type:_0x482496,authorId:_0x5b9dc7}=_0x1be51d(_0x55b888);_0x5bd4('0x4f')!=_0x3f34f9||_0x5bd4('0x34')!=_0x482496&&_0x5bd4('0x27')!=_0x482496||(_0x41fed7[_0x5bd4('0xb2')]({'type':_0x482496,'name':_0x55b888,'userId':_0x5b9dc7}),_0x4bf04e[_0x44915a]['markersStart'][_0x5bd4('0xd7')](_0x40d7fe,0x1),_0x40d7fe--);}_0x590cd0(_0x4bf04e[_0x44915a]);for(let _0x242394=0x0;_0x242394<_0x4bf04e[_0x44915a][_0x5bd4('0x103')][_0x5bd4('0xce')];_0x242394++){const _0x6f24c1=_0x4bf04e[_0x44915a][_0x5bd4('0x103')][_0x242394];if(!_0x5a70af['has'](_0x6f24c1))continue;const {group:_0x3271b8,type:_0x405c62}=_0x1be51d(_0x6f24c1);if(_0x5bd4('0x4f')!=_0x3271b8||'insertion'!=_0x405c62&&'deletion'!=_0x405c62)continue;_0x4bf04e[_0x44915a][_0x5bd4('0x103')][_0x5bd4('0xd7')](_0x242394,0x1),_0x242394--;const _0x5aaf17=_0x41fed7[_0x5bd4('0x12a')](_0x2ac96e=>_0x2ac96e['name']==_0x6f24c1);_0x5aaf17>-0x1&&_0x41fed7[_0x5bd4('0xd7')](_0x5aaf17,0x1);}}function _0x1be51d(_0x550971){const _0x372d0f=_0x550971['split'](':');return{'group':_0x372d0f[0x0],'type':_0x372d0f[0x1],'subType':_0x372d0f[_0x5bd4('0xce')]>=0x5?_0x372d0f[0x2]:null,'id':_0x372d0f['length']<0x5?_0x372d0f[0x2]:_0x372d0f[0x3],'authorId':_0x372d0f[_0x5bd4('0xce')]<0x5?_0x372d0f[0x3]:_0x372d0f[0x4],'markerCount':0x6==_0x372d0f['length']?_0x372d0f[0x5]:null};}function _0x590cd0(_0x3a587f){for(let _0x1cb1c3=0x0;_0x1cb1c3<_0x41fed7[_0x5bd4('0xce')];_0x1cb1c3++){if(_0x3a587f[_0x5bd4('0x43')]&&_0x5bd4('0x34')==_0x41fed7[_0x1cb1c3]['type'])return _0x3a587f[_0x5bd4('0x96')]=_0x41fed7[_0x1cb1c3],void delete _0x3a587f[_0x5bd4('0x43')];if(!_0x3a587f[_0x5bd4('0x43')]&&!_0x3a587f[_0x5bd4('0x63')]&&_0x5bd4('0x27')==_0x41fed7[_0x1cb1c3][_0x5bd4('0x83')])return void(_0x3a587f[_0x5bd4('0xd6')]=_0x41fed7[_0x1cb1c3]);}}}[_0x5bd4('0xac')](_0x15d236,_0x4e8c6b){let _0x4cdd95=0x0,_0x39d95d=!0x1;const _0x78d29c=new Map();for(const _0x50857e of _0x15d236)_0x50857e[_0x4e8c6b]?_0x39d95d&&(_0x4cdd95++,_0x39d95d=!0x1):(_0x4cdd95++,_0x39d95d=!0x0),_0x78d29c[_0x5bd4('0x82')](_0x50857e['id'],_0x4cdd95);for(let _0x2efac5=0x0;_0x2efac5<_0x15d236[_0x5bd4('0xce')];_0x2efac5++){if('isRemoved'==_0x4e8c6b&&_0x15d236[_0x2efac5]['isAdded']||'isAdded'==_0x4e8c6b&&_0x15d236[_0x2efac5][_0x5bd4('0x63')])continue;if(_0x5bd4('0x127')==_0x15d236[_0x2efac5][_0x5bd4('0x83')]){_0x15d236[_0x2efac5][_0x5bd4('0xbe')]=0x0;continue;}const _0x26e9db=_0x78d29c[_0x5bd4('0x49')](_0x15d236[_0x2efac5][_0x5bd4('0x56')]),_0x296df1=_0x78d29c[_0x5bd4('0x49')](_0x15d236[_0x2efac5]['id']);_0x15d236[_0x2efac5][_0x5bd4('0xbe')]=_0x26e9db-_0x296df1;}}[_0x5bd4('0xe7')](_0x1df8d9,_0x40af28,_0x45623e=!0x1){const _0x2a049e=[];let _0x477270=this[_0x5bd4('0xad')]['getIndex'](_0x1df8d9),_0x115fe3=this['repository']['getIndex'](_0x40af28);for(-0x1==_0x115fe3&&(_0x115fe3=this['repository']['_revisions'][_0x5bd4('0xce')],_0x45623e=!0x1);_0x477270<_0x115fe3;)_0x2a049e[_0x5bd4('0x98')](this[_0x5bd4('0xad')][_0x5bd4('0x62')](_0x477270)),_0x477270++;return _0x45623e&&_0x2a049e[_0x5bd4('0x98')](this[_0x5bd4('0xad')]['getRevision'](_0x477270)),_0x2a049e;}[_0x5bd4('0x53')](_0x17a20c,_0x11848f,_0x5674b5,_0x5914e9){const _0x226a4c=this['editor'][_0x5bd4('0x24')]['schema'];let _0x3a5788=_0x11848f;for(;_0x17a20c[_0x3a5788]&&_0x17a20c[_0x3a5788][_0x5bd4('0x43')];)_0x3a5788++;let _0x3d1c9a=_0x5914e9;for(;_0x5674b5[_0x3d1c9a]&&_0x5674b5[_0x3d1c9a][_0x5bd4('0x63')];)_0x3d1c9a++;_0x5a9ff3(_0x17a20c,_0x11848f,_0x3a5788),_0x5a9ff3(_0x5674b5,_0x5914e9,_0x3d1c9a);const _0x28e652=_0x5674b5['slice'](_0x5914e9,_0x3d1c9a)[_0x5bd4('0x16')](_0x17a20c['slice'](_0x11848f,_0x3a5788));return _0x28e652[_0x5bd4('0x86')]((_0x138123,_0x144713)=>_0x138123[_0x5bd4('0x71')]!=_0x144713['side']?_0x138123[_0x5bd4('0x71')]-_0x144713[_0x5bd4('0x71')]:_0x138123['level']!=_0x144713[_0x5bd4('0x66')]?_0x138123[_0x5bd4('0x66')]-_0x144713['level']:_0x138123[_0x5bd4('0xbe')]!=_0x144713['distance']?_0x144713[_0x5bd4('0xbe')]-_0x138123['distance']:!!_0x138123['isAdded']!=!!_0x144713['isAdded']?-0x1==_0x138123['side']||0x0==_0x138123[_0x5bd4('0x71')]?_0x138123['isAdded']?-0x1:0x1:_0x138123[_0x5bd4('0x43')]?0x1:-0x1:_0x138123['index']-_0x144713[_0x5bd4('0x3b')]),{'commonTape':_0x28e652,'iEnd':_0x3a5788,'jEnd':_0x3d1c9a};function _0x5a9ff3(_0x593594,_0x41f6c1,_0x3d7a5f){let _0x1a72d3=-0x1,_0x385f59=Number[_0x5bd4('0x20')],_0xd554b=!0x0;for(let _0x230912=_0x41f6c1;_0x230912<_0x3d7a5f;_0x230912++)if(_0x226a4c[_0x5bd4('0xb8')](_0x593594[_0x230912][_0x5bd4('0x108')])||(_0xd554b=!0x1),_0x593594[_0x230912][_0x5bd4('0x108')]['startIndex']<_0x41f6c1&&(_0x1a72d3=_0x230912),_0x593594[_0x230912][_0x5bd4('0x108')][_0x5bd4('0x32')]>=_0x3d7a5f){_0x385f59=_0x230912;break;}_0xd554b&&(_0x1a72d3=_0x3d7a5f-0x1);for(let _0x1b46b4=_0x41f6c1;_0x1b46b4<_0x3d7a5f;_0x1b46b4++)_0x593594[_0x1b46b4][_0x5bd4('0x71')]=_0x1b46b4<=_0x1a72d3?-0x1:_0x1b46b4<_0x385f59?0x0:0x1,_0x593594[_0x1b46b4][_0x5bd4('0x3b')]=_0x1b46b4;let _0x10a3fe=0x0;for(let _0x4cc043=_0x41f6c1;_0x4cc043<=_0x1a72d3;_0x4cc043++)0x0==_0x593594[_0x4cc043]['distance']?_0x593594[_0x4cc043][_0x5bd4('0x66')]=_0x10a3fe:(_0x10a3fe++,_0x593594[_0x4cc043][_0x5bd4('0x66')]=_0x10a3fe,_0x10a3fe++);for(let _0x2337b9=_0x41f6c1;_0x2337b9<_0x3d7a5f;_0x2337b9++)0x0==_0x593594[_0x2337b9]['side']&&(_0x593594[_0x2337b9][_0x5bd4('0x66')]=_0x10a3fe);_0x10a3fe=0x0;for(let _0x208854=_0x3d7a5f-0x1;_0x208854>=_0x385f59;_0x208854--)0x0==_0x593594[_0x208854][_0x5bd4('0xbe')]?_0x593594[_0x208854][_0x5bd4('0x66')]=_0x10a3fe:(_0x10a3fe--,_0x593594[_0x208854][_0x5bd4('0x66')]=_0x10a3fe,_0x10a3fe--);}}[_0x5bd4('0xec')](_0x30f237){const _0x2f2864=new Map(),_0x4ef6cf=this[_0x5bd4('0x3e')][_0x5bd4('0x24')][_0x5bd4('0x102')];for(let _0x7f2d57=0x1;_0x7f2d57<_0x30f237[_0x5bd4('0xce')];_0x7f2d57++){let _0x2ca706,_0x156c96,_0x11e129;const _0x1728c4=_0x30f237[_0x7f2d57],_0x2ce784=_0x30f237[_0x7f2d57-0x1];if(_0x5bd4('0x127')==_0x1728c4['type'])continue;if(_0x1728c4[_0x5bd4('0x83')]!=_0x2ce784['type'])continue;if(!_0x4ef6cf[_0x5bd4('0xda')](_0x2ce784[_0x5bd4('0x108')])||_0x4ef6cf[_0x5bd4('0x8f')](_0x2ce784[_0x5bd4('0x108')]))continue;if(!_0x4ef6cf[_0x5bd4('0xda')](_0x1728c4['item'])||_0x4ef6cf['isLimit'](_0x1728c4[_0x5bd4('0x108')]))continue;if((_0x30f237[_0x7f2d57][_0x5bd4('0x43')]||_0x30f237[_0x7f2d57][_0x5bd4('0x96')])&&_0x30f237[_0x7f2d57-0x1]['isRemoved'])_0x2ca706=_0x30f237[_0x7f2d57],_0x156c96=_0x30f237[_0x7f2d57-0x1],_0x11e129=_0x7f2d57-0x1;else{if(!_0x30f237[_0x7f2d57]['isRemoved']||!_0x30f237[_0x7f2d57-0x1][_0x5bd4('0x43')]&&!_0x30f237[_0x7f2d57-0x1][_0x5bd4('0x96')])continue;_0x2ca706=_0x30f237[_0x7f2d57-0x1],_0x156c96=_0x30f237[_0x7f2d57],_0x11e129=_0x7f2d57;}const _0x9e5d48=_0x2ca706[_0x5bd4('0x66')]==_0x156c96[_0x5bd4('0x66')],_0x439644=Math[_0x5bd4('0xf4')](_0x2ca706[_0x5bd4('0x66')])<Math[_0x5bd4('0xf4')](_0x156c96[_0x5bd4('0x66')])&&0x0==_0x156c96[_0x5bd4('0xbe')];(_0x9e5d48||_0x439644)&&(_0x2f2864[_0x5bd4('0x82')](_0x156c96['id'],_0x2ca706['id']),_0x30f237[_0x5bd4('0xd7')](_0x11e129,0x1),_0x7f2d57--,_0x2ca706['isAdded']=!0x1);}for(let _0x145358=0x0;_0x145358<_0x30f237[_0x5bd4('0xce')];_0x145358++)_0x2f2864[_0x5bd4('0x11')](_0x30f237[_0x145358][_0x5bd4('0x56')])&&(_0x30f237[_0x145358]['pairId']=_0x2f2864[_0x5bd4('0x49')](_0x30f237[_0x145358][_0x5bd4('0x56')]));}[_0x5bd4('0x100')](_0x175fae){const _0x19851c=new Set(_0x175fae['map'](_0x4ffa59=>_0x4ffa59['id']));for(let _0x1f212e=0x0;_0x1f212e<_0x175fae['length'];_0x1f212e++)_0x19851c[_0x5bd4('0x11')](_0x175fae[_0x1f212e][_0x5bd4('0x56')])||0x0==_0x175fae[_0x1f212e]['distance']||(_0x175fae[_0x1f212e][_0x5bd4('0xe9')]=!0x0);return _0x175fae[_0x5bd4('0x88')](_0x4a13d1=>!_0x4a13d1[_0x5bd4('0xe9')]);}[_0x5bd4('0x1d')](_0x25c421){const _0x244b18=new Set();for(let _0x471a0a=0x0;_0x471a0a<_0x25c421[_0x5bd4('0xce')];_0x471a0a++){if(_0x244b18[_0x5bd4('0x11')](_0x25c421[_0x471a0a]['id'])&&_0x25c421[_0x471a0a][_0x5bd4('0x63')]&&(_0x25c421[_0x471a0a]['isIncorrect']=!0x0),_0x25c421[_0x471a0a][_0x5bd4('0xe9')])continue;if(0x0==_0x25c421[_0x471a0a][_0x5bd4('0xbe')])continue;if(_0x5bd4('0x73')!=_0x25c421[_0x471a0a][_0x5bd4('0x83')])continue;if(null==_0x25c421[_0x471a0a]['pairId'])continue;let _0x14881c=_0x471a0a+0x1,_0x27cf4b=0x0;for(;_0x25c421[_0x14881c]['id']!=_0x25c421[_0x471a0a][_0x5bd4('0x56')];)_0x5bd4('0x73')==_0x25c421[_0x14881c][_0x5bd4('0x83')]?_0x27cf4b++:_0x5bd4('0x80')==_0x25c421[_0x14881c]['type']&&_0x27cf4b--,_0x14881c++;if(0x0!=_0x27cf4b){if(_0x25c421[_0x471a0a][_0x5bd4('0x63')])_0x25c421[_0x471a0a][_0x5bd4('0xe9')]=!0x0;else for(;_0x14881c!=_0x471a0a;)_0x25c421[_0x14881c][_0x5bd4('0x63')]&&0x0!=_0x25c421[_0x14881c][_0x5bd4('0xbe')]&&(_0x25c421[_0x14881c][_0x5bd4('0xe9')]=!0x0,_0x244b18[_0x5bd4('0x128')](_0x25c421[_0x14881c]['pairId'])),_0x14881c--;}}return _0x25c421[_0x5bd4('0x88')](_0x30493f=>!_0x30493f[_0x5bd4('0xe9')]);}[_0x5bd4('0xd8')](_0x7aa192){const _0xcef480=this[_0x5bd4('0x3e')][_0x5bd4('0x24')][_0x5bd4('0x102')];for(let _0x1313ff=0x0;_0x1313ff<_0x7aa192[_0x5bd4('0xce')];_0x1313ff++){if(!(_0x7aa192[_0x1313ff]['isAdded']||_0x7aa192[_0x1313ff][_0x5bd4('0x96')]||_0x7aa192[_0x1313ff]['isRemoved']||_0x7aa192[_0x1313ff][_0x5bd4('0xd6')]))continue;if(0x0==_0x7aa192[_0x1313ff]['distance'])continue;const _0x4c664a=_0x7aa192[_0x1313ff]['item'];_0xcef480[_0x5bd4('0xda')](_0x4c664a)||_0xcef480[_0x5bd4('0x8f')](_0x4c664a)||(_0x7aa192[_0x1313ff][_0x5bd4('0x43')]&&delete _0x7aa192[_0x1313ff]['isAdded'],_0x7aa192[_0x1313ff]['isAddSuggestion']&&delete _0x7aa192[_0x1313ff]['isAddSuggestion'],_0x7aa192[_0x1313ff][_0x5bd4('0xd6')]&&delete _0x7aa192[_0x1313ff][_0x5bd4('0xd6')],_0x7aa192[_0x1313ff][_0x5bd4('0x63')]&&(_0x7aa192[_0x1313ff][_0x5bd4('0xe9')]=!0x0));}return _0x7aa192[_0x5bd4('0x88')](_0x37c455=>!_0x37c455[_0x5bd4('0xe9')]);}[_0x5bd4('0xf1')](_0x3469e6,_0x198032,_0x4d01c9){const _0x208115=new _0x2d0625(),_0x4e1090=[],_0x5143fe=new Map(),_0x39dcc5=this[_0x5bd4('0x3e')][_0x5bd4('0x24')],_0x553c5d=_0x39dcc5[_0x5bd4('0x102')],_0x39d326=[_0x208115],_0x5e121b={},_0x1213e4={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x369cfc=null;const _0x269a71=[0x0];for(let _0x169ca1=0x0;_0x169ca1<_0x3469e6[_0x5bd4('0xce')];_0x169ca1++){let _0x239211,_0x4b0bea;if(_0x5bd4('0x73')===_0x3469e6[_0x169ca1]['type']){_0x239211=_0x39dcc5[_0x5bd4('0x39')](_0x208115,_0x269a71);const _0x12d058=new _0x30ac3d(_0x3469e6[_0x169ca1][_0x5bd4('0x108')][_0x5bd4('0x12')],_0x3469e6[_0x169ca1][_0x5bd4('0x108')][_0x5bd4('0xa')]());_0x39d326[0x0]['_appendChild'](_0x12d058),_0x269a71[_0x5bd4('0x98')](0x0),_0x39d326['unshift'](_0x12d058),_0x4b0bea=_0x39dcc5[_0x5bd4('0x39')](_0x208115,_0x269a71),_0x369cfc=null;}else{if(_0x5bd4('0x80')===_0x3469e6[_0x169ca1][_0x5bd4('0x83')])_0x39d326[_0x5bd4('0x1a')](),_0x239211=_0x39dcc5[_0x5bd4('0x39')](_0x208115,_0x269a71),_0x269a71[_0x5bd4('0xf')](),_0x269a71[_0x269a71[_0x5bd4('0xce')]-0x1]++,_0x4b0bea=_0x39dcc5[_0x5bd4('0x39')](_0x208115,_0x269a71),_0x369cfc=null;else{if(_0x239211=_0x39dcc5[_0x5bd4('0x39')](_0x208115,_0x269a71),_0x369cfc&&_0x5dc079(_0x369cfc,_0x3469e6[_0x169ca1][_0x5bd4('0x108')]))_0x369cfc[_0x5bd4('0x7a')]+=_0x3469e6[_0x169ca1]['item'][_0x5bd4('0xa1')];else{const _0x5a026e=new _0x51642b(_0x3469e6[_0x169ca1]['item'][_0x5bd4('0xa1')],_0x3469e6[_0x169ca1][_0x5bd4('0x108')][_0x5bd4('0xa')]());_0x39d326[0x0][_0x5bd4('0x72')](_0x5a026e),_0x369cfc=_0x5a026e;}_0x269a71[_0x269a71[_0x5bd4('0xce')]-0x1]+=_0x3469e6[_0x169ca1]['item'][_0x5bd4('0x6a')],_0x4b0bea=_0x39dcc5['createPositionFromPath'](_0x208115,_0x269a71);}}for(const _0x1f2a6d of _0x3469e6[_0x169ca1][_0x5bd4('0x125')])_0x5143fe[_0x5bd4('0x82')](_0x1f2a6d,{'start':_0x239211,'end':null});_0x461fd3('isRemoveSuggestion',_0x169ca1,_0x239211,_0x4b0bea),_0x461fd3(_0x5bd4('0x96'),_0x169ca1,_0x239211,_0x4b0bea),_0x461fd3('isRemoved',_0x169ca1,_0x239211,_0x4b0bea),_0x461fd3(_0x5bd4('0x43'),_0x169ca1,_0x239211,_0x4b0bea);for(const _0xab1c81 of _0x3469e6[_0x169ca1][_0x5bd4('0x103')]){_0x5143fe['get'](_0xab1c81)[_0x5bd4('0xd0')]=_0x4b0bea;}}for(const [_0x104ae1,_0x3e7d95]of _0x5143fe){const _0x16e215=this[_0x5bd4('0x3e')]['model']['createRange'](_0x3e7d95['start'],_0x3e7d95['end']);_0x208115[_0x5bd4('0x91')][_0x5bd4('0x82')](_0x104ae1,_0x16e215);}return _0x4e1090[_0x5bd4('0x86')]((_0xaee37b,_0x331c2d)=>{const _0x4afdc4=_0x208115[_0x5bd4('0x91')][_0x5bd4('0x49')](_0x5bd4('0x17')+_0xaee37b['id']),_0x395f71=_0x208115[_0x5bd4('0x91')][_0x5bd4('0x49')](_0x5bd4('0x17')+_0x331c2d['id']);return _0x4afdc4['start'][_0x5bd4('0xb5')](_0x395f71[_0x5bd4('0xa0')])?-0x1:_0x4afdc4[_0x5bd4('0xa0')][_0x5bd4('0x78')](_0x395f71[_0x5bd4('0xa0')])?0x1:_0x4afdc4[_0x5bd4('0xd0')]['isBefore'](_0x395f71[_0x5bd4('0xd0')])?-0x1:_0x4afdc4[_0x5bd4('0xd0')][_0x5bd4('0x78')](_0x395f71['end'])?0x1:'add'===_0xaee37b[_0x5bd4('0x83')]?-0x1:0x1;}),{'root':_0x208115,'changes':_0x4e1090};function _0x461fd3(_0x4a6f7b,_0x40bab8,_0x46f856,_0x22a64e){const _0x50a5f1=!!_0x3469e6[_0x40bab8][_0x4a6f7b],_0x264732=_0x50a5f1?_0x3469e6[_0x40bab8][_0x4a6f7b][_0x5bd4('0x120')]:null,_0xdb950a=_0x40bab8===_0x3469e6[_0x5bd4('0xce')]-0x1,_0xc81ce=_0x1213e4[_0x4a6f7b][0x0],_0x258805=_0x553c5d[_0x5bd4('0x47')](_0x3469e6[_0x40bab8]['item']);!_0x5e121b[_0x4a6f7b]&&_0x50a5f1?_0x5e121b[_0x4a6f7b]={'start':_0x46f856,'tapeItem':_0x3469e6[_0x40bab8],'userId':_0x264732,'type':_0x4a6f7b}:_0x5e121b[_0x4a6f7b]&&!_0x50a5f1?(_0x5e121b[_0x4a6f7b][_0x5bd4('0xd0')]=_0x46f856,_0x12e945(_0x5e121b[_0x4a6f7b]),_0x5e121b[_0x4a6f7b]=null):_0x5e121b[_0x4a6f7b]&&_0x50a5f1&&_0x5e121b[_0x4a6f7b][_0x5bd4('0x120')]!==_0x264732&&(_0x5e121b[_0x4a6f7b][_0x5bd4('0xd0')]=_0x46f856,_0xc81ce&&_0xc81ce[_0x5bd4('0x120')]===_0x5e121b[_0x4a6f7b][_0x5bd4('0x120')]||_0x12e945(_0x5e121b[_0x4a6f7b]),_0x5e121b[_0x4a6f7b]={'start':_0x46f856,'tapeItem':_0x3469e6[_0x40bab8],'userId':_0x264732,'type':_0x4a6f7b}),_0x5e121b[_0x4a6f7b]&&_0x258805&&('elementStart'!==_0x3469e6[_0x40bab8]['type']||_0xc81ce&&_0xc81ce[_0x5bd4('0x120')]===_0x264732||_0x1213e4[_0x4a6f7b][_0x5bd4('0xb2')]({'userId':_0x264732,'object':_0x3469e6[_0x40bab8][_0x5bd4('0x108')],'change':_0x5e121b[_0x4a6f7b]}),'elementEnd'===_0x3469e6[_0x40bab8]['type']&&_0xc81ce&&_0xc81ce['object']===_0x3469e6[_0x40bab8][_0x5bd4('0x108')]&&(_0x1213e4[_0x4a6f7b][_0x5bd4('0x1a')](),_0x5e121b[_0x4a6f7b]=_0xc81ce[_0x5bd4('0x44')])),_0x5e121b[_0x4a6f7b]&&_0xdb950a&&(_0x5e121b[_0x4a6f7b][_0x5bd4('0xd0')]=_0x22a64e,_0x12e945(_0x5e121b[_0x4a6f7b]),_0x5e121b[_0x4a6f7b]=null);}function _0x12e945({start:_0x6ff1d6,end:_0x4d9eab,tapeItem:_0x52d901,userId:_0x344a50,type:_0x5c4542}){const _0x4077b5=_0x52d901[_0x5bd4('0x108')],_0x755997=_0x39dcc5[_0x5bd4('0x102')][_0x5bd4('0xda')](_0x4077b5)&&!_0x39dcc5[_0x5bd4('0x102')][_0x5bd4('0x8f')](_0x4077b5),_0x935769=_0x6ff1d6[_0x5bd4('0x54')]==_0x4d9eab[_0x5bd4('0x3d')]&&_0x4d9eab[_0x5bd4('0xc')];if(_0x755997&&_0x935769)return;const _0x480d0d=_0x39dcc5[_0x5bd4('0x89')](_0x6ff1d6,_0x4d9eab),_0x2d6a77=_0x198032[_0x5bd4('0x49')](_0x344a50),_0x2a3d68=new _0x33f7bf({'author':_0x2d6a77,'type':'isAdded'==_0x5c4542||_0x5bd4('0x96')==_0x5c4542?_0x5bd4('0x128'):_0x5bd4('0x87'),'data':{'isSuggestion':_0x5bd4('0x96')==_0x5c4542||_0x5bd4('0xd6')==_0x5c4542},'createdAt':new Date(),'rootName':_0x4d01c9});_0x4e1090[_0x5bd4('0x98')](_0x2a3d68),_0x208115['markers'][_0x5bd4('0x82')](_0x5bd4('0x17')+_0x2a3d68['id'],_0x480d0d);}function _0x5dc079(_0x563cf3,_0x503466){const _0x5ab6e1=_0x563cf3[_0x5bd4('0xa')](),_0x3080ad=_0x503466['getAttributes']();for(const _0x980835 of _0x5ab6e1){if(_0x980835[0x1]!==_0x503466[_0x5bd4('0x59')](_0x980835[0x0]))return!0x1;_0x3080ad['next']();}return _0x3080ad['next']()[_0x5bd4('0xfc')];}}[_0x5bd4('0xbc')](){this['editor'][_0x5bd4('0x97')][_0x5bd4('0x6d')](_0x5bd4('0x5d'))[_0x5bd4('0x2a')]({'view':'revision'}),this[_0x5bd4('0x3e')][_0x5bd4('0x97')][_0x5bd4('0x6d')](_0x5bd4('0x81'))[_0x5bd4('0x11f')]({'model':_0x5bd4('0x129'),'view':_0x59331a=>{const _0x28b50b=_0x59331a[_0x5bd4('0xca')][_0x5bd4('0x28')](':')[0x1],_0x5c4364=this[_0x5bd4('0x4a')](_0x28b50b);if(!_0x5c4364)return null;const _0x3d8793=_0x5bd4('0x128')==_0x5c4364[_0x5bd4('0x83')]?_0x5bd4('0x34'):_0x5bd4('0x27'),_0x1c6b2e=[_0x5bd4('0xd4'),'ck-suggestion-marker-'+_0x3d8793];return _0x5c4364[_0x5bd4('0xa1')]['isSuggestion']&&_0x1c6b2e[_0x5bd4('0x98')](_0x5bd4('0x116')+_0x3d8793+'-new'),this[_0x5bd4('0x10d')]==_0x5c4364&&_0x1c6b2e[_0x5bd4('0x98')]('ck-suggestion-marker--active'),{'classes':_0x1c6b2e,'attributes':{'data-change-id':_0x28b50b}};}}),this['editor'][_0x5bd4('0x97')][_0x5bd4('0x6d')]('upcast')[_0x5bd4('0x128')](_0x33e79a=>{_0x33e79a['on']('element:pre',(_0x2379e4,_0x58ba8f,_0x22ae89)=>{const _0xe18870=_0x58ba8f['viewItem']['getChild'](0x0);if(!_0xe18870||!_0xe18870['is'](_0x5bd4('0x50'),_0x5bd4('0xde')))return;if(!_0x22ae89[_0x5bd4('0xd')][_0x5bd4('0xe1')](_0xe18870,{'attributes':[_0x5bd4('0x7e'),_0x5bd4('0x8b')]}))return;const _0x6f0c19=_0x58ba8f[_0x5bd4('0x1b')][_0x5bd4('0xa0')][_0x5bd4('0x54')];_0x22ae89[_0x5bd4('0xa8')][_0x5bd4('0xb7')](_0x5bd4('0x7e'),_0xe18870[_0x5bd4('0x59')](_0x5bd4('0x7e')),_0x6f0c19),_0x22ae89[_0x5bd4('0xa8')][_0x5bd4('0xb7')]('vid_end',_0xe18870[_0x5bd4('0x59')]('vid_end'),_0x6f0c19);},{'priority':_0x5bd4('0x118')});}),this['editor']['conversion'][_0x5bd4('0x6d')](_0x5bd4('0x5d'))[_0x5bd4('0x128')](_0x4458e0=>{_0x4458e0['on'](_0x5bd4('0x50'),(_0x4924fd,_0x45197f,_0x3819af)=>{if(!_0x3819af[_0x5bd4('0xd')][_0x5bd4('0xe1')](_0x45197f['viewItem'],{'attributes':[_0x5bd4('0x7e'),'vid_end']}))return;if(_0x45197f['modelRange']['isCollapsed'])return;const _0x50c99e=_0x45197f[_0x5bd4('0x1b')][_0x5bd4('0xa0')][_0x5bd4('0x54')];_0x50c99e[_0x5bd4('0x46')]('vid_start')||_0x50c99e[_0x5bd4('0x46')]('vid')||(_0x3819af[_0x5bd4('0xa8')][_0x5bd4('0xb7')](_0x5bd4('0x7e'),_0x45197f[_0x5bd4('0xef')][_0x5bd4('0x59')](_0x5bd4('0x7e')),_0x50c99e),_0x3819af[_0x5bd4('0xa8')]['setAttribute'](_0x5bd4('0x8b'),_0x45197f['viewItem'][_0x5bd4('0x59')](_0x5bd4('0x8b')),_0x50c99e));},{'priority':_0x5bd4('0x118')});}),this[_0x5bd4('0x3e')][_0x5bd4('0x97')][_0x5bd4('0x6d')]('upcast')[_0x5bd4('0x106')]({'view':{'name':_0x5bd4('0xe'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x4e533b=>_0x4e533b['getAttribute'](_0x5bd4('0xc9'))}}),this[_0x5bd4('0x3e')][_0x5bd4('0x24')][_0x5bd4('0x102')]['on'](_0x5bd4('0x94'),(_0x5a2dc9,[,_0x271d55])=>{[_0x5bd4('0x7e'),_0x5bd4('0x8b'),_0x5bd4('0xc9')][_0x5bd4('0xa6')](_0x271d55)&&(_0x5a2dc9[_0x5bd4('0x11a')]=!0x0,_0x5a2dc9[_0x5bd4('0x37')]());},{'priority':_0x5bd4('0x123')}),this[_0x5bd4('0x3e')][_0x5bd4('0x97')][_0x5bd4('0x6d')](_0x5bd4('0x2f'))[_0x5bd4('0x128')](_0x1ab17f=>{_0x1ab17f['on'](_0x5bd4('0x117'),(_0x2d6c2b,_0x143e26,_0x51fa6d)=>{if('\x20'!=_0x143e26['item'][_0x5bd4('0xa1')]||_0x143e26[_0x5bd4('0x108')][_0x5bd4('0x3d')][_0x5bd4('0x11d')]>0x1)return;if(!_0x51fa6d[_0x5bd4('0xd')][_0x5bd4('0xe1')](_0x143e26['item'],_0x2d6c2b[_0x5bd4('0x12')]))return;const _0x18b92c=_0x51fa6d[_0x5bd4('0xa8')],_0x4f06fd=_0x51fa6d[_0x5bd4('0xdf')][_0x5bd4('0x5c')](_0x143e26[_0x5bd4('0x3')]);_0x18b92c[_0x5bd4('0x8a')](_0x4f06fd,_0x18b92c[_0x5bd4('0x1e')](_0x5bd4('0xe')));});}),this['editor'][_0x5bd4('0x97')][_0x5bd4('0x6d')](_0x5bd4('0x2f'))[_0x5bd4('0x5b')]({'model':'revision'}),this[_0x5bd4('0x3e')][_0x5bd4('0xbf')][_0x5bd4('0x77')]['on'](_0x5bd4('0x6f'),function(_0x111319){const _0x332631=_0x111319[_0x5bd4('0xf3')][_0x5bd4('0x49')](_0x5bd4('0x104'));return(_0x53f9b0,_0x2f9a4a,_0x397d47)=>{const _0x4b4091=_0x2f9a4a['markerName'][_0x5bd4('0x28')](':')[0x1],_0x46e11b=_0x332631[_0x5bd4('0x4a')](_0x4b4091);if(!_0x46e11b)return null;const _0x54945c=_0x5bd4('0x128')==_0x46e11b[_0x5bd4('0x83')]?'split':_0x5bd4('0xe2');if(!_0x397d47[_0x5bd4('0xd')][_0x5bd4('0x126')](_0x2f9a4a[_0x5bd4('0x2')],_0x53f9b0['name']))return;const _0x2980d1=_0x2f9a4a[_0x5bd4('0x2')][_0x5bd4('0xf5')](),_0x105b02=_0x2f9a4a[_0x5bd4('0x2')][_0x5bd4('0xa0')],_0x337c78=_0x111319[_0x5bd4('0x24')][_0x5bd4('0x102')];let _0x430d15=null,_0x3b45c2=null,_0x1b23e1=!0x1,_0x4ed680=!0x1;for(const _0x5bacae of _0x2980d1){const _0x14b70b=_0x5bacae[_0x5bd4('0x108')];_0x1b23e1=_0x1b23e1||_0x337c78[_0x5bd4('0x114')](_0x14b70b);const _0x30c816=_0x397d47[_0x5bd4('0xdf')][_0x5bd4('0x3a')](_0x14b70b);if(_0x30c816&&_0x30c816[_0x5bd4('0x5f')](_0x5bd4('0x29')))return;'elementEnd'==_0x5bacae['type']&&(_0x337c78[_0x5bd4('0xda')](_0x14b70b)&&!_0x337c78['isLimit'](_0x14b70b)&&(_0x14b70b[_0x5bd4('0xd3')]||_0x105b02[_0x5bd4('0x1f')]?_0x430d15&&_0x430d15['parent']==_0x14b70b||(_0x430d15=_0x14b70b,_0x55f995(_0x5bacae[_0x5bd4('0xc6')]),_0x4ed680=!0x0):_0x3b45c2=_0x3b45c2||_0x5bacae[_0x5bd4('0xc6')]));}function _0x55f995(_0x3ffbd1){const _0x49293d=_0x397d47['writer'][_0x5bd4('0xf0')](_0x5bd4('0xe'),{'class':_0x5bd4('0x116')+_0x54945c}),_0x8640e0=_0x397d47['mapper'][_0x5bd4('0x15')](_0x3ffbd1);_0x46e11b['data'][_0x5bd4('0x11e')]&&_0x397d47['writer'][_0x5bd4('0x85')]('ck-suggestion-marker-'+_0x54945c+_0x5bd4('0x2c'),_0x49293d),_0x332631[_0x5bd4('0x10d')]==_0x46e11b&&_0x397d47[_0x5bd4('0xa8')][_0x5bd4('0x85')](_0x5bd4('0x111'),_0x49293d),_0x397d47[_0x5bd4('0xa8')][_0x5bd4('0x121')](_0x8640e0,_0x49293d),_0x397d47[_0x5bd4('0xdf')][_0x5bd4('0xfb')](_0x49293d,_0x2f9a4a[_0x5bd4('0xca')]);}_0x1b23e1||_0x4ed680||!_0x3b45c2||_0x55f995(_0x3b45c2);};}(this['editor']),{'priority':_0x5bd4('0xa5')}),this[_0x5bd4('0x3e')][_0x5bd4('0xbf')]['downcastDispatcher']['on'](_0x5bd4('0xcd'),(_0x3b35cf,_0x42e78d,_0xec81d4)=>{const _0x3bf531=_0xec81d4['mapper'][_0x5bd4('0xb9')](_0x42e78d[_0x5bd4('0xca')]);if(_0x3bf531)for(const _0x453dff of _0x3bf531)(_0x453dff[_0x5bd4('0xf7')](_0x5bd4('0x92'))||_0x453dff[_0x5bd4('0xf7')](_0x5bd4('0x5')))&&(_0xec81d4[_0x5bd4('0xdf')][_0x5bd4('0x35')](_0x453dff,_0x42e78d[_0x5bd4('0xca')]),_0xec81d4['writer'][_0x5bd4('0x87')](_0x453dff));},{'priority':_0x5bd4('0xa5')}),this[_0x5bd4('0x3e')][_0x5bd4('0xbf')]['downcastDispatcher']['on']('addMarker:revision',(_0x40426f,_0x244873,_0x403b5c)=>{const _0x18dc51=_0x244873[_0x5bd4('0xca')][_0x5bd4('0x28')](':')[0x1],_0x217fe0=this['_getChangeFromId'](_0x18dc51);if(!_0x217fe0)return null;const _0x374177=_0x5bd4('0x128')==_0x217fe0[_0x5bd4('0x83')]?'split':_0x5bd4('0xe2');if(_0x403b5c['consumable'][_0x5bd4('0x126')](_0x244873[_0x5bd4('0x2')],_0x40426f[_0x5bd4('0x12')]))for(const _0x2b36d4 of _0x244873[_0x5bd4('0x2')][_0x5bd4('0x124')]()){if(!_0x2b36d4['is'](_0x5bd4('0x50'),_0x5bd4('0xb0')))continue;const _0x13fdc3=_0x403b5c[_0x5bd4('0xa8')]['createUIElement'](_0x5bd4('0xe'),{'class':_0x5bd4('0x116')+_0x374177}),_0xdf4b0=_0x403b5c['mapper'][_0x5bd4('0x15')](this['editor']['model'][_0x5bd4('0x3f')](_0x2b36d4));_0x217fe0[_0x5bd4('0xa1')]['isSuggestion']&&_0x403b5c['writer'][_0x5bd4('0x85')](_0x5bd4('0x116')+_0x374177+_0x5bd4('0x2c'),_0x13fdc3),this['activeChange']==_0x217fe0&&_0x403b5c['writer'][_0x5bd4('0x85')](_0x5bd4('0x111'),_0x13fdc3),_0x403b5c[_0x5bd4('0xa8')][_0x5bd4('0x121')](_0xdf4b0,_0x13fdc3),_0x403b5c[_0x5bd4('0xdf')]['bindElementToMarker'](_0x13fdc3,_0x244873[_0x5bd4('0xca')]);}},{'priority':_0x5bd4('0xa5')}),this[_0x5bd4('0x3e')][_0x5bd4('0x24')][_0x5bd4('0xf2')]['on'](_0x5bd4('0x44'),()=>{this['editor'][_0x5bd4('0xbf')][_0x5bd4('0xa2')][_0x5bd4('0x44')](_0x3a71e8=>{for(const _0x13a031 of this[_0x5bd4('0x3e')][_0x5bd4('0x24')][_0x5bd4('0xf2')]['getRootNames']()){const _0x685d98=this[_0x5bd4('0x3e')][_0x5bd4('0x24')][_0x5bd4('0xf2')][_0x5bd4('0xfd')](_0x13a031),_0x498b30=this['editor'][_0x5bd4('0xbf')][_0x5bd4('0xa2')][_0x5bd4('0xf2')][_0x5bd4('0xfd')](_0x13a031);if(_0x498b30){const _0x53de4c=_0x685d98[_0x5bd4('0x59')](_0x5bd4('0x4e'));if(_0x3a71e8[_0x5bd4('0x67')]('data-change-id',_0x498b30),_0x3a71e8[_0x5bd4('0x109')]('ck-revision-history-root-add',_0x498b30),_0x3a71e8[_0x5bd4('0x109')]('ck-revision-history-root-remove',_0x498b30),_0x3a71e8[_0x5bd4('0x109')]('ck-revision-history-root--active',_0x498b30),_0x53de4c){const _0xd64ae2=this['_getChangeFromId'](_0x53de4c);if(!_0xd64ae2)return null;_0x3a71e8[_0x5bd4('0xb7')]('data-change-id',_0x53de4c,_0x498b30),_0x3a71e8[_0x5bd4('0x85')](_0x5bd4('0xc1')+_0xd64ae2[_0x5bd4('0x83')],_0x498b30),this['activeChange']==_0xd64ae2&&_0x3a71e8[_0x5bd4('0x85')]('ck-revision-history-root--active',_0x498b30);}}}});}),this['editor'][_0x5bd4('0x97')]['for'](_0x5bd4('0x5d'))[_0x5bd4('0x2a')]({'view':_0x5bd4('0x61'),'model':_0x51d90d=>_0x5bd4('0xeb')+_0x51d90d,'converterPriority':_0x5bd4('0x123')}),this[_0x5bd4('0x3e')][_0x5bd4('0x97')][_0x5bd4('0x6d')]('upcast')['dataToMarker']({'view':_0x5bd4('0xb4'),'model':_0x496b18=>'revision-suggestion:'+_0x496b18,'converterPriority':'highest'}),this[_0x5bd4('0x3e')]['conversion'][_0x5bd4('0x6d')](_0x5bd4('0x2f'))[_0x5bd4('0x5b')]({'model':_0x5bd4('0x4f'),'view':_0x2e0c19=>({'name':_0x5bd4('0x10e')+_0x2e0c19,'group':_0x5bd4('0x4f')}),'converterPriority':_0x5bd4('0x123')}),this[_0x5bd4('0x3e')][_0x5bd4('0x97')][_0x5bd4('0x6d')](_0x5bd4('0x81'))[_0x5bd4('0x11f')]({'model':_0x5bd4('0x4f'),'view':_0x19f877=>{const _0x28874c=_0x19f877[_0x5bd4('0xca')]['split'](':')[0x1];return _0x5bd4('0x34')!=_0x28874c&&'deletion'!=_0x28874c?null:{'classes':[_0x5bd4('0x4b'),_0x5bd4('0x42')+_0x28874c]};}}),this[_0x5bd4('0x3e')][_0x5bd4('0xbf')][_0x5bd4('0x77')]['on']('addMarker:revision-suggestion:deletion',Y(this['editor'],_0x5bd4('0xe2')),{'priority':'high'}),this[_0x5bd4('0x3e')][_0x5bd4('0xbf')]['downcastDispatcher']['on'](_0x5bd4('0xf8'),Y(this[_0x5bd4('0x3e')],_0x5bd4('0x28')),{'priority':_0x5bd4('0xa5')}),this[_0x5bd4('0x3e')][_0x5bd4('0xbf')]['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x1a9709,_0x5a1546,_0x34a025)=>{const _0x2b9b6f=_0x34a025[_0x5bd4('0xdf')][_0x5bd4('0xb9')](_0x5a1546[_0x5bd4('0xca')]);if(_0x2b9b6f)for(const _0x75c3e9 of _0x2b9b6f)_0x75c3e9['is']('uiElement')&&(_0x34a025[_0x5bd4('0xdf')][_0x5bd4('0x35')](_0x75c3e9,_0x5a1546[_0x5bd4('0xca')]),_0x34a025['writer'][_0x5bd4('0x87')](_0x75c3e9));},{'priority':_0x5bd4('0xa5')});}[_0x5bd4('0x4a')](_0x19565a){return this[_0x5bd4('0x68')][_0x5bd4('0x49')](_0x19565a);}[_0x5bd4('0x70')](_0x1ad841){return this[_0x5bd4('0x33')]&&this[_0x5bd4('0x33')]['destroy'](),this[_0x5bd4('0x33')]=new _0x5dc8aa(this['editor'][_0x5bd4('0xab')],_0x1ad841),this['_changeView'];}[_0x5bd4('0x84')](){this[_0x5bd4('0x3e')][_0x5bd4('0x24')]['document']['selection'][_0x5bd4('0x69')](_0x5bd4('0x129')),this['on']('change:activeView',(_0x4cccad,_0x14bc21,_0x16f66d,_0xd210f1)=>{_0xd210f1&&this['_balloon'][_0x5bd4('0x87')](_0xd210f1),_0x16f66d&&(this[_0x5bd4('0xcf')][_0x5bd4('0x128')]({'view':_0x16f66d,'stackId':_0x5bd4('0x115'),'position':{'target':()=>{const _0x3f05ca=this[_0x5bd4('0x3e')][_0x5bd4('0xbf')],_0x398605=this[_0x5bd4('0x4a')](_0x16f66d[_0x5bd4('0x8e')]);let _0x38e49d;if(_0x398605[_0x5bd4('0xa1')][_0x5bd4('0x9d')]){const _0x1a94b8=_0x3f05ca['view'][_0x5bd4('0x57')](_0x398605[_0x5bd4('0xfe')]);_0x38e49d=Array[_0x5bd4('0xf9')](_0x1a94b8[_0x5bd4('0xc2')]());}else{const _0x221e33=this['editor'][_0x5bd4('0x24')][_0x5bd4('0x91')]['get']('revision:'+_0x16f66d[_0x5bd4('0x8e')]);_0x38e49d=Array[_0x5bd4('0xf9')](_0x3f05ca['mapper'][_0x5bd4('0xb9')](_0x221e33[_0x5bd4('0x12')]))['map'](_0x20366c=>_0x3f05ca[_0x5bd4('0xa2')][_0x5bd4('0x45')][_0x5bd4('0xb')](_0x20366c))['map'](_0x1b95d7=>Array[_0x5bd4('0xf9')](_0x1b95d7[_0x5bd4('0xc2')]()))[_0x5bd4('0xe4')]();}if(!this[_0x5bd4('0xb1')])return _0x38e49d[0x0];return _0x38e49d[_0x5bd4('0xa9')](_0x20ee2b=>_0x20ee2b[_0x5bd4('0xc8')]-0x3<=this['_activeViewTarget']['y']&&_0x20ee2b[_0x5bd4('0xee')]+0x3>=this['_activeViewTarget']['y']&&_0x20ee2b[_0x5bd4('0x76')]-0x3<=this['_activeViewTarget']['x']&&_0x20ee2b[_0x5bd4('0x8d')]+0x3>=this[_0x5bd4('0xb1')]['x'])||_0x38e49d[0x0];}}}),this[_0x5bd4('0xcf')][_0x5bd4('0x26')](_0x5bd4('0x115')));}),this['on'](_0x5bd4('0xe0'),(_0x26f54c,_0x4ec6ce,_0x83d37d,_0x459043)=>{this['activeView']=_0x83d37d?this['_getViewForChange'](_0x83d37d):null,this[_0x5bd4('0x3e')][_0x5bd4('0x24')]['change'](()=>{const _0x1b85b6=this[_0x5bd4('0x3e')]['editing'];_0x459043&&(_0x459043[_0x5bd4('0xa1')][_0x5bd4('0x9d')]?_0x1b85b6['view'][_0x5bd4('0x44')](_0x10b4ad=>{_0x10b4ad['removeClass'](_0x5bd4('0xae'),_0x1b85b6[_0x5bd4('0xa2')][_0x5bd4('0xf2')]['getRoot'](_0x459043[_0x5bd4('0xfe')]));}):_0x1b85b6[_0x5bd4('0x2b')]('revision:'+_0x459043['id'])),_0x83d37d&&(_0x83d37d[_0x5bd4('0xa1')]['isOnRoot']?_0x1b85b6[_0x5bd4('0xa2')][_0x5bd4('0x44')](_0xa6d15c=>{_0xa6d15c['addClass'](_0x5bd4('0xae'),_0x1b85b6[_0x5bd4('0xa2')]['document'][_0x5bd4('0xfd')](_0x83d37d[_0x5bd4('0xfe')]));}):_0x1b85b6['reconvertMarker'](_0x5bd4('0x17')+_0x83d37d['id']));});}),this[_0x5bd4('0xd2')](this['editor'][_0x5bd4('0xbf')]['view'][_0x5bd4('0xf2')],_0x5bd4('0x4d'),(_0x17e385,_0x2cfbee)=>{if(this[_0x5bd4('0x10d')])return;const _0x386df6=this[_0x5bd4('0x52')](_0x2cfbee[_0x5bd4('0x38')]),_0x144fb7=this[_0x5bd4('0x68')][_0x5bd4('0x49')](_0x386df6);_0x144fb7?(this[_0x5bd4('0xb1')]={'x':_0x2cfbee[_0x5bd4('0xd9')]['x'],'y':_0x2cfbee[_0x5bd4('0xd9')]['y']},this['activeView']=this[_0x5bd4('0x70')](_0x144fb7)):(this[_0x5bd4('0xb1')]=null,this['activeView']=null);}),this[_0x5bd4('0xd2')](this[_0x5bd4('0x3e')]['editing']['view'][_0x5bd4('0xf2')],_0x5bd4('0xaa'),(_0x146f0e,_0x2ec241)=>{const _0x2d7b56=this['_findChangeIdFromDomTarget'](_0x2ec241[_0x5bd4('0x38')]),_0x525e77=this['_changeIdToChange'][_0x5bd4('0x49')](_0x2d7b56);_0x525e77?(this[_0x5bd4('0xb1')]={'x':_0x2ec241[_0x5bd4('0xd9')]['x'],'y':_0x2ec241[_0x5bd4('0xd9')]['y']},_0x525e77===this[_0x5bd4('0x10d')]?this[_0x5bd4('0xcf')]['updatePosition']():this['activeChange']=_0x525e77):(this[_0x5bd4('0xb1')]=null,this['activeChange']=null);});}[_0x5bd4('0x52')](_0x930649){do{const _0x2a95d8=_0x930649['getAttribute']('data-change-id');if(_0x2a95d8)return _0x2a95d8;_0x930649=_0x930649[_0x5bd4('0x3d')];}while(_0x930649);return null;}[_0x5bd4('0x2e')](){this[_0x5bd4('0x3e')][_0x5bd4('0x24')][_0x5bd4('0x44')](_0x370ed0=>{for(const _0x2a527a of this[_0x5bd4('0x3e')][_0x5bd4('0x24')]['markers'])_0x370ed0[_0x5bd4('0xbb')](_0x2a527a);});}}function Y(_0x3b0dd8,_0x1eadd7){return(_0x29ccdb,_0x2bac4e,_0x12c045)=>{if(!_0x12c045[_0x5bd4('0xd')][_0x5bd4('0x126')](_0x2bac4e[_0x5bd4('0x2')],_0x29ccdb[_0x5bd4('0x12')]))return;const _0x5363ef=_0x2bac4e[_0x5bd4('0x2')]['getWalker'](),_0x554a1c=_0x2bac4e['markerRange']['start'],_0xccaddd=_0x3b0dd8[_0x5bd4('0x24')][_0x5bd4('0x102')];let _0x305bc7=null,_0x17cd84=null,_0x105c83=!0x1,_0xd33a59=!0x1;for(const _0x4b8b4d of _0x5363ef){const _0xa1a1f7=_0x4b8b4d['item'];_0x105c83=_0x105c83||_0xccaddd[_0x5bd4('0x114')](_0xa1a1f7);const _0x46087f=_0x12c045[_0x5bd4('0xdf')]['toViewElement'](_0xa1a1f7);if(_0x46087f&&_0x46087f[_0x5bd4('0x5f')](_0x5bd4('0x29')))return;_0x5bd4('0x80')==_0x4b8b4d['type']&&(_0xccaddd[_0x5bd4('0xda')](_0xa1a1f7)&&!_0xccaddd[_0x5bd4('0x8f')](_0xa1a1f7)&&(_0xa1a1f7['nextSibling']||_0x554a1c[_0x5bd4('0x1f')]?_0x305bc7&&_0x305bc7[_0x5bd4('0x3d')]==_0xa1a1f7||(_0x305bc7=_0xa1a1f7,_0x37ed60(_0x4b8b4d[_0x5bd4('0xc6')]),_0xd33a59=!0x0):_0x17cd84=_0x17cd84||_0x4b8b4d[_0x5bd4('0xc6')]));}function _0x37ed60(_0x29c6a3){const _0x286cae=_0x12c045[_0x5bd4('0xdf')]['toViewPosition'](_0x29c6a3),_0x3b0e0c=_0x12c045[_0x5bd4('0xa8')][_0x5bd4('0xf0')]('span',{'class':_0x5bd4('0x42')+_0x1eadd7});_0x12c045[_0x5bd4('0xa8')][_0x5bd4('0x121')](_0x286cae,_0x3b0e0c),_0x12c045[_0x5bd4('0xdf')]['bindElementToMarker'](_0x3b0e0c,_0x2bac4e[_0x5bd4('0xca')]);}_0x105c83||_0xd33a59||!_0x17cd84||_0x37ed60(_0x17cd84);};}export class RestoreRevisionCommand extends _0x5b4a33{constructor(_0x3a4e0d){super(_0x3a4e0d);const _0x34b6ed=_0x3a4e0d[_0x5bd4('0xf3')][_0x5bd4('0x49')](w);this[_0x5bd4('0xe8')]=!0x1,this[_0x5bd4('0xd2')](_0x34b6ed,_0x5bd4('0x0'),()=>this[_0x5bd4('0x36')]()),this[_0x5bd4('0xd2')](_0x34b6ed,_0x5bd4('0x7c'),()=>this[_0x5bd4('0x36')]());}[_0x5bd4('0x14')](){const _0x34753c=this[_0x5bd4('0x3e')],_0x5c864d=_0x34753c[_0x5bd4('0xf3')]['get'](w),_0x2574cc=_0x5c864d[_0x5bd4('0xe6')]?_0x5c864d[_0x5bd4('0x30')][_0x5bd4('0x95')]:null;_0x34753c[_0x5bd4('0x18')][_0x5bd4('0x49')](_0x5bd4('0x3c'))[_0x5bd4('0xc4')](_0x2574cc);}['refresh'](){const {isReady:_0x439411,isEnabled:_0x3f5b62}=this[_0x5bd4('0x3e')]['plugins']['get'](w);this['isEnabled']=_0x439411&&_0x3f5b62;}}export class ShowChangeCommand extends _0x5b4a33{constructor(_0x3f17a6,{direction:_0x47980f}){super(_0x3f17a6);const _0x239829=_0x3f17a6['plugins']['get'](w);this['affectsData']=!0x1,this[_0x5bd4('0x8')]=_0x5bd4('0x74')===_0x47980f?0x1:-0x1,this[_0x5bd4('0xd2')](_0x239829,'change:isReady',()=>this[_0x5bd4('0x36')]()),this[_0x5bd4('0xd2')](_0x239829,_0x5bd4('0x7c'),()=>this[_0x5bd4('0x36')]());}[_0x5bd4('0x14')](){const _0x18e456=this[_0x5bd4('0x3e')],_0x4dcd47=_0x18e456['plugins'][_0x5bd4('0x49')](w),{isNavigationMode:_0x4b1359,currentChangeNumber:_0x49771e}=_0x4dcd47;let _0xd1dc78;if(_0x4dcd47['activeChange']=_0x4b1359?_0x4dcd47[_0x5bd4('0x30')][_0x5bd4('0x119')][_0x5bd4('0x49')](_0x49771e+this['_step']):_0x4dcd47['diff'][_0x5bd4('0x119')]['first'],_0x4dcd47['activeChange'][_0x5bd4('0xa1')][_0x5bd4('0x9d')])_0xd1dc78=_0x18e456['editing']['view']['getDomRoot'](_0x4dcd47[_0x5bd4('0x10d')][_0x5bd4('0xfe')]);else{const _0x5caa0d=_0x18e456[_0x5bd4('0x24')][_0x5bd4('0x91')][_0x5bd4('0x49')](_0x5bd4('0x17')+_0x4dcd47[_0x5bd4('0x10d')]['id']);_0xd1dc78=_0x222649(_0x18e456[_0x5bd4('0xbf')],_0x5caa0d);}_0x5214f0({'target':_0xd1dc78,'viewportOffset':0x28});}[_0x5bd4('0x36')](){const {isNavigationMode:_0x553c1f,currentChangeNumber:_0x55c9a8,numberOfChanges:_0x169386,isReady:_0x4582ec,isEnabled:_0x1f8117}=this[_0x5bd4('0x3e')][_0x5bd4('0xf3')]['get'](w);this[_0x5bd4('0x13')]=!!(_0x1f8117&&_0x4582ec&&_0x169386)&&(!_0x553c1f||(0x1===this['_step']?_0x55c9a8<_0x169386-0x1:_0x55c9a8>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xe6a2=['map','Show\x20more\x20items','function','isEnabled','Name\x20this\x20revision','listView','action','execute','items','change:isActionsDropdownOpen','find','panelPosition','name','ck-revision-history-sidebar__revision__actions','first','extendTemplate','_action','button','Compare\x20against\x20selected','class','threeVerticalDots','isVisible','bindTemplate','bind','Restore\x20this\x20revision','listenTo','locale','model','add','stopPropagation','ck-on','isActionsDropdownOpen','source'];(function(_0x295bd1,_0xe6a223){const _0x37c936=function(_0x27173d){while(--_0x27173d){_0x295bd1['push'](_0x295bd1['shift']());}};_0x37c936(++_0xe6a223);}(_0xe6a2,0x111));const _0x37c9=function(_0x295bd1,_0xe6a223){_0x295bd1=_0x295bd1-0x0;let _0x37c936=_0xe6a2[_0x295bd1];return _0x37c936;};import{Collection as _0x18c10f}from'ckeditor5/src/utils';import{icons as _0x3c98b3}from'ckeditor5/src/core';import{Model as _0x408338,addListToDropdown as _0x29ced8,createDropdown as _0x13b98e}from'ckeditor5/src/ui';import{getTranslation as _0xae44c1}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0xfbfd91,_0x53e8a3){const _0x592dac=_0xfbfd91[_0x37c9('0xd')],_0x53e3ac=_0xfbfd91[_0x37c9('0x11')],_0x302c2c=_0x13b98e(_0x53e3ac);_0x302c2c[_0x37c9('0x2')]='sw';const _0x328515=function(_0x1e4584,_0x22c7c5){const _0x5b43f8=function(_0x42c161,_0x934a62){const _0x4ee87a=_0x42c161[_0x37c9('0x11')],_0x2e3d73={'Compare\x20against\x20selected':_0xae44c1(_0x4ee87a,_0x37c9('0x9')),'Name\x20this\x20revision':_0xae44c1(_0x4ee87a,_0x37c9('0x1c')),'Restore\x20this\x20revision':_0xae44c1(_0x4ee87a,_0x37c9('0xf'))};return _0x934a62[_0x37c9('0x18')](_0x49870d=>{const _0x4c4c83=_0x2e3d73[_0x49870d[_0x37c9('0x3')]];return _0x4c4c83&&_0x4c4c83!==_0x49870d[_0x37c9('0x3')]&&(_0x49870d[_0x37c9('0x3')]=_0x4c4c83),_0x49870d;});}(_0x1e4584,_0x22c7c5),_0x4a55ed=new _0x18c10f();for(const _0x47b111 of _0x5b43f8){const _0x2be343={'type':_0x37c9('0x8'),'model':new _0x408338({'label':_0x47b111[_0x37c9('0x3')],'class':_0x47b111[_0x37c9('0xa')],'withText':!0x0,'_action':_0x47b111[_0x37c9('0x1e')]})};_0x2be343[_0x37c9('0x12')][_0x37c9('0xe')](_0x37c9('0x1b'))['to'](_0x1e4584,_0x37c9('0x16'),_0x27eeda=>_0x37c9('0x1a')!=typeof _0x47b111['isEnabled']||(!_0x27eeda||_0x47b111['isEnabled'](_0x1e4584))),_0x4a55ed[_0x37c9('0x13')](_0x2be343);}return _0x4a55ed;}(_0xfbfd91,_0x53e8a3);return _0xfbfd91['bind'](_0x37c9('0x16'))['to'](_0x302c2c,'isOpen'),_0x302c2c['buttonView']['set']({'label':_0xae44c1(_0x53e3ac,_0x37c9('0x19')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3c98b3[_0x37c9('0xb')]}),_0x302c2c[_0x37c9('0x6')]({'attributes':{'class':[_0x37c9('0x4'),_0x592dac['if'](_0x37c9('0x16'),_0x37c9('0x15'))]},'on':{'click':_0x592dac['to'](_0x2f3cec=>_0x2f3cec[_0x37c9('0x14')]())}}),_0x302c2c['on'](_0x37c9('0x1f'),_0x2b4787=>{_0xfbfd91['isReady']&&_0x37c9('0x1a')==typeof _0x2b4787['source'][_0x37c9('0x7')]&&_0x2b4787[_0x37c9('0x17')][_0x37c9('0x7')](_0xfbfd91);}),_0x29ced8(_0x302c2c,_0x328515),_0x302c2c[_0x37c9('0x10')](_0xfbfd91,_0x37c9('0x0'),(_0x33747e,_0x5ddccc,_0x5c0d21)=>{if(_0x5c0d21)for(const _0x734ac7 of _0x302c2c[_0x37c9('0x1d')][_0x37c9('0x20')]){const _0x1607db=_0x734ac7['children'][_0x37c9('0x5')],_0x2603d5=_0x53e8a3[_0x37c9('0x1')](_0x305796=>_0x305796['action']===_0x1607db[_0x37c9('0x7')])[_0x37c9('0xc')];_0x734ac7[_0x37c9('0xc')]=void 0x0===_0x2603d5||_0x2603d5(_0xfbfd91);}}),_0x302c2c;}
23
+ const _0x52c2=['buttonView','listView','locale','listenTo','items','change:isActionsDropdownOpen','map','ck-on','find','ck-revision-history-sidebar__revision__actions','Name\x20this\x20revision','set','Show\x20more\x20items','add','button','isOpen','class','name','extendTemplate','_action','isActionsDropdownOpen','children','Compare\x20against\x20selected','isEnabled','function','bind','source','action','panelPosition','isReady','model','Restore\x20this\x20revision'];(function(_0x5e85e5,_0x52c2e0){const _0x34b9f5=function(_0x558799){while(--_0x558799){_0x5e85e5['push'](_0x5e85e5['shift']());}};_0x34b9f5(++_0x52c2e0);}(_0x52c2,0x1f1));const _0x34b9=function(_0x5e85e5,_0x52c2e0){_0x5e85e5=_0x5e85e5-0x0;let _0x34b9f5=_0x52c2[_0x5e85e5];return _0x34b9f5;};import{Collection as _0x4d5eb6}from'ckeditor5/src/utils';import{icons as _0x597282}from'ckeditor5/src/core';import{Model as _0x341fb5,addListToDropdown as _0x394fb1,createDropdown as _0x1faf42}from'ckeditor5/src/ui';import{getTranslation as _0x110050}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x2fc1d4,_0x29bc98){const _0x225bc1=_0x2fc1d4['bindTemplate'],_0x21e3f4=_0x2fc1d4[_0x34b9('0x11')],_0x62c2cc=_0x1faf42(_0x21e3f4);_0x62c2cc[_0x34b9('0xb')]='sw';const _0x5b5410=function(_0x32306b,_0x16c691){const _0x141f78=function(_0x4b9c01,_0x4ed8a5){const _0x55b889=_0x4b9c01['locale'],_0x45ed72={'Compare\x20against\x20selected':_0x110050(_0x55b889,_0x34b9('0x5')),'Name\x20this\x20revision':_0x110050(_0x55b889,_0x34b9('0x19')),'Restore\x20this\x20revision':_0x110050(_0x55b889,_0x34b9('0xe'))};return _0x4ed8a5[_0x34b9('0x15')](_0x44df6b=>{const _0x5c5850=_0x45ed72[_0x44df6b['name']];return _0x5c5850&&_0x5c5850!==_0x44df6b[_0x34b9('0x0')]&&(_0x44df6b[_0x34b9('0x0')]=_0x5c5850),_0x44df6b;});}(_0x32306b,_0x16c691),_0x4984fb=new _0x4d5eb6();for(const _0x3e4e74 of _0x141f78){const _0x3b9b4d={'type':_0x34b9('0x1d'),'model':new _0x341fb5({'label':_0x3e4e74[_0x34b9('0x0')],'class':_0x3e4e74[_0x34b9('0x1f')],'withText':!0x0,'_action':_0x3e4e74[_0x34b9('0xa')]})};_0x3b9b4d[_0x34b9('0xd')][_0x34b9('0x8')](_0x34b9('0x6'))['to'](_0x32306b,_0x34b9('0x3'),_0x21e9bd=>'function'!=typeof _0x3e4e74[_0x34b9('0x6')]||(!_0x21e9bd||_0x3e4e74[_0x34b9('0x6')](_0x32306b))),_0x4984fb[_0x34b9('0x1c')](_0x3b9b4d);}return _0x4984fb;}(_0x2fc1d4,_0x29bc98);return _0x2fc1d4[_0x34b9('0x8')](_0x34b9('0x3'))['to'](_0x62c2cc,_0x34b9('0x1e')),_0x62c2cc[_0x34b9('0xf')][_0x34b9('0x1a')]({'label':_0x110050(_0x21e3f4,_0x34b9('0x1b')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x597282['threeVerticalDots']}),_0x62c2cc[_0x34b9('0x1')]({'attributes':{'class':[_0x34b9('0x18'),_0x225bc1['if'](_0x34b9('0x3'),_0x34b9('0x16'))]},'on':{'click':_0x225bc1['to'](_0x212b5e=>_0x212b5e['stopPropagation']())}}),_0x62c2cc['on']('execute',_0x5e7007=>{_0x2fc1d4[_0x34b9('0xc')]&&_0x34b9('0x7')==typeof _0x5e7007['source'][_0x34b9('0x2')]&&_0x5e7007[_0x34b9('0x9')][_0x34b9('0x2')](_0x2fc1d4);}),_0x394fb1(_0x62c2cc,_0x5b5410),_0x62c2cc[_0x34b9('0x12')](_0x2fc1d4,_0x34b9('0x14'),(_0x4c093f,_0x19b647,_0x343fd8)=>{if(_0x343fd8)for(const _0x1617a2 of _0x62c2cc[_0x34b9('0x10')][_0x34b9('0x13')]){const _0x235f9d=_0x1617a2[_0x34b9('0x4')]['first'],_0x36cd82=_0x29bc98[_0x34b9('0x17')](_0x35901b=>_0x35901b['action']===_0x235f9d['_action'])['isVisible'];_0x1617a2['isVisible']=void 0x0===_0x36cd82||_0x36cd82(_0x2fc1d4);}}),_0x62c2cc;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4b81=['ck-revision-history-sidebar__revision-author','ck-revision-history-sidebar__revision-author_creator','push','Revision\x20creator','ck-revision-history-sidebar__revision-author__name','name','span','set'];(function(_0x2b3bfd,_0x4b8195){const _0x14fc99=function(_0x400ac2){while(--_0x400ac2){_0x2b3bfd['push'](_0x2b3bfd['shift']());}};_0x14fc99(++_0x4b8195);}(_0x4b81,0x119));const _0x14fc=function(_0x2b3bfd,_0x4b8195){_0x2b3bfd=_0x2b3bfd-0x0;let _0x14fc99=_0x4b81[_0x2b3bfd];return _0x14fc99;};import{View as _0x354e3e,IconView as _0x2d5b2e}from'ckeditor5/src/ui';import{getTranslation as _0x543adb}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x294615 from'../../../theme/icons/user.svg';export default class ti extends _0x354e3e{constructor(_0x5db3af,_0x36b7ee,_0x13e4cc){super(_0x5db3af);const _0x3f83e4=new _0x2d5b2e();_0x3f83e4[_0x14fc('0x6')]({'content':_0x294615,'viewBox':'0\x200\x2011\x2010'});const _0x41b2ca=['ck',_0x14fc('0x7')];_0x13e4cc&&_0x41b2ca[_0x14fc('0x1')](_0x14fc('0x0'));const _0x154251=[{'tag':_0x14fc('0x5'),'attributes':{'class':['ck',_0x14fc('0x3')],'title':_0x543adb(_0x5db3af,_0x13e4cc?_0x14fc('0x2'):'Revision\x20author')},'children':[_0x3f83e4,_0x36b7ee[_0x14fc('0x4')]]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x41b2ca},'children':_0x154251});}}
23
+ const _0x47b8=['ck-revision-history-sidebar__revision-author__name','Revision\x20creator','ck-revision-history-sidebar__revision-author','set','push','span','ck-revision-history-sidebar__revision-author_creator','setTemplate'];(function(_0x330368,_0x47b837){const _0x478b5d=function(_0xc844c0){while(--_0xc844c0){_0x330368['push'](_0x330368['shift']());}};_0x478b5d(++_0x47b837);}(_0x47b8,0x13a));const _0x478b=function(_0x330368,_0x47b837){_0x330368=_0x330368-0x0;let _0x478b5d=_0x47b8[_0x330368];return _0x478b5d;};import{View as _0xbb46f7,IconView as _0x55024d}from'ckeditor5/src/ui';import{getTranslation as _0x11fa94}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x44ee82 from'../../../theme/icons/user.svg';export default class ti extends _0xbb46f7{constructor(_0x24f1c6,_0x1a1dda,_0xb16b48){super(_0x24f1c6);const _0x249041=new _0x55024d();_0x249041[_0x478b('0x1')]({'content':_0x44ee82,'viewBox':'0\x200\x2011\x2010'});const _0x2047ab=['ck',_0x478b('0x0')];_0xb16b48&&_0x2047ab[_0x478b('0x2')](_0x478b('0x4'));const _0x5a54c8=[{'tag':_0x478b('0x3'),'attributes':{'class':['ck',_0x478b('0x6')],'title':_0x11fa94(_0x24f1c6,_0xb16b48?_0x478b('0x7'):'Revision\x20author')},'children':[_0x249041,_0x1a1dda['name']]}];this[_0x478b('0x5')]({'tag':'li','attributes':{'class':_0x2047ab},'children':_0x5a54c8});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x6c5c=['ck-revision-history-sidebar__revision-name','Revision\x20name','extendTemplate','set','span'];(function(_0x18247e,_0x6c5c31){var _0x39d762=function(_0x249c0e){while(--_0x249c0e){_0x18247e['push'](_0x18247e['shift']());}};_0x39d762(++_0x6c5c31);}(_0x6c5c,0x6a));var _0x39d7=function(_0x18247e,_0x6c5c31){_0x18247e=_0x18247e-0x0;var _0x39d762=_0x6c5c[_0x18247e];return _0x39d762;};import{LabeledFieldView as _0x4e163d}from'ckeditor5/src/ui';import{getTranslation as _0x1ec3af}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x4e163d{constructor(_0x1bcbe1,_0x482607){super(_0x1bcbe1,_0x482607),this[_0x39d7('0x2')]({'label':_0x1ec3af(_0x1bcbe1,_0x39d7('0x0'))}),this[_0x39d7('0x1')]({'tag':_0x39d7('0x3'),'attributes':{'class':[_0x39d7('0x4')]}});}}
23
+ var _0x313e=['Revision\x20name','extendTemplate','ck-revision-history-sidebar__revision-name'];(function(_0x1dcb3d,_0x313e4b){var _0x3c0347=function(_0x1ad7d8){while(--_0x1ad7d8){_0x1dcb3d['push'](_0x1dcb3d['shift']());}};_0x3c0347(++_0x313e4b);}(_0x313e,0xe1));var _0x3c03=function(_0x1dcb3d,_0x313e4b){_0x1dcb3d=_0x1dcb3d-0x0;var _0x3c0347=_0x313e[_0x1dcb3d];return _0x3c0347;};import{LabeledFieldView as _0x9a4692}from'ckeditor5/src/ui';import{getTranslation as _0x20dcb0}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x9a4692{constructor(_0x4e2cbb,_0x237450){super(_0x4e2cbb,_0x237450),this['set']({'label':_0x20dcb0(_0x4e2cbb,_0x3c03('0x0'))}),this[_0x3c03('0x1')]({'tag':'span','attributes':{'class':[_0x3c03('0x2')]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x39bb=['srcElement','bindTemplate','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','span','highlight','unshift','ck-revision-history-sidebar__revision__date','.ck-thread__remove-confirm','set','length','setName','creator','revisionActionsView','closest','_revision','change','isConfirm','isReady','ck-revision-history-sidebar__actions_dropdown_open','deselect','bind','value','render','isHighlighted','ck-revision-history-sidebar__revision-wrapper','ck-revision-history-sidebar__revision-authors','isSelected','_createdAtFormatted','div','filter','ck-revision-history-sidebar__revision__controls-wrapper','ck-reset','isActionsDropdownOpen','createdAt','fieldView','authors','name','extendTemplate','220','map','from','revisionNameView','select','isEnabled','setTemplate','listenTo','ck-disabled','fire','unhighlight','placeholder','ck-revision-history-sidebar__revision'];(function(_0x10725a,_0x39bb33){const _0x3935a5=function(_0x30a15a){while(--_0x30a15a){_0x10725a['push'](_0x10725a['shift']());}};_0x3935a5(++_0x39bb33);}(_0x39bb,0xa9));const _0x3935=function(_0x10725a,_0x39bb33){_0x10725a=_0x10725a-0x0;let _0x3935a5=_0x39bb[_0x10725a];return _0x3935a5;};import{View as _0xe80de1,createLabeledInputText as _0x50035d}from'ckeditor5/src/ui';import{ConfirmMixin as _0x126668}from'ckeditor5-collaboration/src/collaboration-core';import _0x1696b3 from'./revisionnameview';import _0x5ab08e from'./revisionauthorview';import{dateToPrettyFormat as _0x258956}from'./utils';import{createActionsDropdownView as _0x46b5fa}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x126668(_0xe80de1){constructor(_0x5c7a53,_0x4cef07,_0x1f0791){super(_0x5c7a53);const _0xf339d5=this[_0x3935('0x24')],_0x1d649d=function(_0x5c9c80,_0x23c82a){const _0x38be3c=Array[_0x3935('0x18')](_0x23c82a[_0x3935('0x13')])[_0x3935('0xd')](_0x110dcc=>_0x110dcc!=_0x23c82a['creator']);return _0x23c82a[_0x3935('0x2e')]&&_0x38be3c[_0x3935('0x28')](_0x23c82a[_0x3935('0x2e')]),_0x38be3c[_0x3935('0x17')](_0x9d22dc=>new _0x5ab08e(_0x5c9c80,_0x9d22dc,_0x9d22dc==_0x23c82a[_0x3935('0x2e')]));}(_0x5c7a53,_0x4cef07);this['id']=_0x4cef07['id'],this[_0x3935('0x31')]=_0x4cef07,this['bind']('name',_0x3935('0x11'))['to'](_0x4cef07),this['bind'](_0x3935('0xb'))['to'](this,_0x3935('0x11'),_0x2ad7c3=>_0x2ad7c3?_0x258956(_0x5c7a53['uiLanguage'],_0x2ad7c3):void 0x0),this[_0x3935('0x2b')](_0x3935('0xa'),!0x1),this[_0x3935('0x2b')](_0x3935('0x7'),!0x1),this[_0x3935('0x2b')](_0x3935('0x10'),!0x1),this[_0x3935('0x2b')](_0x3935('0x1'),!0x1),this[_0x3935('0x2b')](_0x3935('0x1b'),!0x1),this[_0x3935('0x19')]=new _0x1696b3(_0x5c7a53,_0x50035d),this[_0x3935('0x19')][_0x3935('0x12')][_0x3935('0x15')]({'attributes':{'maxlength':_0x3935('0x16')}}),this['revisionNameView'][_0x3935('0x12')]['bind'](_0x3935('0x5'),_0x3935('0x21'))['to'](this,_0x3935('0x14'),_0x3935('0xb')),this[_0x3935('0x19')][_0x3935('0x4')](_0x3935('0x1b'))['to'](this,_0x3935('0xa'),this,'isEnabled',(_0x5e4a6a,_0x1799b5)=>_0x5e4a6a&&_0x1799b5),this['revisionActionsView']=_0x1f0791&&_0x1f0791[_0x3935('0x2c')]?_0x46b5fa(this,_0x1f0791):'',this[_0x3935('0x2f')]&&this[_0x3935('0x2f')]['bind'](_0x3935('0x1b'))['to'](this),this[_0x3935('0x1c')]({'tag':'div','attributes':{'class':['ck',_0x3935('0xf'),_0x3935('0x8'),_0xf339d5['if'](_0x3935('0x0'),_0x3935('0x25'))]},'children':[{'tag':_0x3935('0xc'),'attributes':{'class':['ck','ck-reset',_0x3935('0x22'),_0xf339d5['if']('isEnabled',_0x3935('0x1e'),_0x4a027e=>!_0x4a027e),_0xf339d5['if'](_0x3935('0xa'),'ck-revision-history-sidebar__revision_selected'),_0xf339d5['if'](_0x3935('0x7'),'ck-revision-history-sidebar__revision_highlighted'),_0xf339d5['if'](_0x3935('0x10'),_0x3935('0x2'))]},'children':[this[_0x3935('0x19')],{'tag':_0x3935('0x26'),'attributes':{'class':['ck',_0x3935('0x29')]},'children':[{'text':_0xf339d5['to'](_0x3935('0xb'))}]},{'tag':_0x3935('0xc'),'attributes':{'class':['ck',_0x3935('0xe')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x3935('0x9')]},'children':_0x1d649d}]},this[_0x3935('0x2f')]],'on':{'click':_0xf339d5['to'](_0x4db5a5=>{_0x4db5a5[_0x3935('0x23')][_0x3935('0x30')](_0x3935('0x2a'))||this[_0x3935('0x1')]&&this['isEnabled']&&this[_0x3935('0x1f')]('select',{'id':this['id']});})}}]});}['render'](){super[_0x3935('0x6')]();const _0x107f9a=this[_0x3935('0x19')][_0x3935('0x12')]['element'];this[_0x3935('0x1d')](_0x107f9a,_0x3935('0x32'),()=>{this[_0x3935('0x1f')](_0x3935('0x2d'),{'id':this['id'],'name':_0x107f9a['value']});});}[_0x3935('0x1a')](){this['isSelected']=!0x0;}[_0x3935('0x3')](){this['isSelected']=!0x1;}[_0x3935('0x27')](){this[_0x3935('0x7')]=!0x0;}[_0x3935('0x20')](){this[_0x3935('0x7')]=!0x1;}}
23
+ const _0x4e3f=['ck-revision-history-sidebar__revision_highlighted','select','deselect','creator','bind','placeholder','change','isEnabled','ck-revision-history-sidebar__revision__controls-wrapper','setName','value','setTemplate','fire','ck-revision-history-sidebar__revision_selected','isHighlighted','ck-revision-history-sidebar__actions_dropdown_open','bindTemplate','highlight','filter','isConfirm','220','ck-disabled','revisionActionsView','name','_createdAtFormatted','createdAt','fieldView','.ck-thread__remove-confirm','div','map','isSelected','from','render','ck-reset','isReady','closest','ck-revision-history-sidebar__revision','set','authors','isActionsDropdownOpen','revisionNameView','length','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','ck-revision-history-sidebar__revision-wrapper','unshift'];(function(_0x47cb2d,_0x4e3f90){const _0x266a7d=function(_0x153c10){while(--_0x153c10){_0x47cb2d['push'](_0x47cb2d['shift']());}};_0x266a7d(++_0x4e3f90);}(_0x4e3f,0x191));const _0x266a=function(_0x47cb2d,_0x4e3f90){_0x47cb2d=_0x47cb2d-0x0;let _0x266a7d=_0x4e3f[_0x47cb2d];return _0x266a7d;};import{View as _0xbac3ac,createLabeledInputText as _0x383e4d}from'ckeditor5/src/ui';import{ConfirmMixin as _0x4df562}from'ckeditor5-collaboration/src/collaboration-core';import _0x53edc6 from'./revisionnameview';import _0x2276ed from'./revisionauthorview';import{dateToPrettyFormat as _0x5f28f6}from'./utils';import{createActionsDropdownView as _0x40f7f3}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x4df562(_0xbac3ac){constructor(_0x19313b,_0x1e97ae,_0x3dc1ef){super(_0x19313b);const _0x1c9f52=this[_0x266a('0x14')],_0x29164f=function(_0x53e956,_0x2b8e9a){const _0x4dedc5=Array[_0x266a('0x23')](_0x2b8e9a[_0x266a('0x2a')])[_0x266a('0x16')](_0x3ad758=>_0x3ad758!=_0x2b8e9a[_0x266a('0x7')]);return _0x2b8e9a[_0x266a('0x7')]&&_0x4dedc5[_0x266a('0x3')](_0x2b8e9a[_0x266a('0x7')]),_0x4dedc5[_0x266a('0x21')](_0x5e8be3=>new _0x2276ed(_0x53e956,_0x5e8be3,_0x5e8be3==_0x2b8e9a[_0x266a('0x7')]));}(_0x19313b,_0x1e97ae);this['id']=_0x1e97ae['id'],this['_revision']=_0x1e97ae,this['bind'](_0x266a('0x1b'),_0x266a('0x1d'))['to'](_0x1e97ae),this['bind'](_0x266a('0x1c'))['to'](this,_0x266a('0x1d'),_0x1dc8a6=>_0x1dc8a6?_0x5f28f6(_0x19313b['uiLanguage'],_0x1dc8a6):void 0x0),this[_0x266a('0x29')](_0x266a('0x22'),!0x1),this['set'](_0x266a('0x12'),!0x1),this[_0x266a('0x29')](_0x266a('0x2b'),!0x1),this[_0x266a('0x29')](_0x266a('0x26'),!0x1),this[_0x266a('0x29')](_0x266a('0xb'),!0x1),this[_0x266a('0x2c')]=new _0x53edc6(_0x19313b,_0x383e4d),this[_0x266a('0x2c')]['fieldView']['extendTemplate']({'attributes':{'maxlength':_0x266a('0x18')}}),this[_0x266a('0x2c')][_0x266a('0x1e')][_0x266a('0x8')](_0x266a('0xe'),_0x266a('0x9'))['to'](this,'name',_0x266a('0x1c')),this[_0x266a('0x2c')][_0x266a('0x8')](_0x266a('0xb'))['to'](this,_0x266a('0x22'),this,_0x266a('0xb'),(_0x453250,_0xc3b619)=>_0x453250&&_0xc3b619),this['revisionActionsView']=_0x3dc1ef&&_0x3dc1ef[_0x266a('0x0')]?_0x40f7f3(this,_0x3dc1ef):'',this[_0x266a('0x1a')]&&this[_0x266a('0x1a')][_0x266a('0x8')](_0x266a('0xb'))['to'](this),this[_0x266a('0xf')]({'tag':_0x266a('0x20'),'attributes':{'class':['ck',_0x266a('0x25'),_0x266a('0x2'),_0x1c9f52['if'](_0x266a('0x17'),_0x266a('0x1'))]},'children':[{'tag':_0x266a('0x20'),'attributes':{'class':['ck',_0x266a('0x25'),_0x266a('0x28'),_0x1c9f52['if']('isEnabled',_0x266a('0x19'),_0x378247=>!_0x378247),_0x1c9f52['if']('isSelected',_0x266a('0x11')),_0x1c9f52['if'](_0x266a('0x12'),_0x266a('0x4')),_0x1c9f52['if'](_0x266a('0x2b'),_0x266a('0x13'))]},'children':[this[_0x266a('0x2c')],{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x1c9f52['to'](_0x266a('0x1c'))}]},{'tag':_0x266a('0x20'),'attributes':{'class':['ck',_0x266a('0xc')]},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x29164f}]},this[_0x266a('0x1a')]],'on':{'click':_0x1c9f52['to'](_0x48b687=>{_0x48b687['srcElement'][_0x266a('0x27')](_0x266a('0x1f'))||this['isReady']&&this[_0x266a('0xb')]&&this[_0x266a('0x10')](_0x266a('0x5'),{'id':this['id']});})}}]});}[_0x266a('0x24')](){super[_0x266a('0x24')]();const _0x4f54d9=this[_0x266a('0x2c')][_0x266a('0x1e')]['element'];this['listenTo'](_0x4f54d9,_0x266a('0xa'),()=>{this[_0x266a('0x10')](_0x266a('0xd'),{'id':this['id'],'name':_0x4f54d9[_0x266a('0xe')]});});}[_0x266a('0x5')](){this[_0x266a('0x22')]=!0x0;}[_0x266a('0x6')](){this[_0x266a('0x22')]=!0x1;}[_0x266a('0x15')](){this[_0x266a('0x12')]=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x41a3=['_isCollapsed','ck-revision-history-sidebar__subrevision-collapser','ck-revision-history-sidebar__subrevision-collapser__inner','isVisible','true','false','toggle','button','span','bindTemplate','set'];(function(_0x595fa9,_0x41a3de){const _0x493516=function(_0x539681){while(--_0x539681){_0x595fa9['push'](_0x595fa9['shift']());}};_0x493516(++_0x41a3de);}(_0x41a3,0x1db));const _0x4935=function(_0x595fa9,_0x41a3de){_0x595fa9=_0x595fa9-0x0;let _0x493516=_0x41a3[_0x595fa9];return _0x493516;};import{View as _0x48346e}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x48346e{constructor(_0x5f0abe){super(_0x5f0abe);const _0x56deb0=this[_0x4935('0x7')];this[_0x4935('0x8')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':_0x4935('0x6'),'attributes':{'class':['ck',_0x4935('0xa'),_0x56deb0['if'](_0x4935('0x1'),'ck-hidden',_0x4e335b=>!_0x4e335b),_0x56deb0['if']('_isCollapsed','ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x4935('0x5'),'aria-pressed':_0x56deb0['to'](_0x4935('0x9'),_0x34c0c1=>_0x34c0c1?_0x4935('0x3'):_0x4935('0x2'))},'children':[{'tag':'span','attributes':{'class':['ck',_0x4935('0x0')]}}],'on':{'click':_0x56deb0['to']('click')}});}[_0x4935('0x4')](){this[_0x4935('0x9')]=!this['_isCollapsed'];}}
23
+ const _0x20fd=['true','toggle','isVisible','set','click','ck-revision-history-sidebar__subrevision-collapser','span','ck-revision-history-sidebar__subrevision-collapser_collapsed','setTemplate','_isCollapsed','ck-revision-history-sidebar__subrevision-collapser__inner','bindTemplate','ck-hidden','false'];(function(_0xb90479,_0x20fd57){const _0x157658=function(_0x32cc0f){while(--_0x32cc0f){_0xb90479['push'](_0xb90479['shift']());}};_0x157658(++_0x20fd57);}(_0x20fd,0x94));const _0x1576=function(_0xb90479,_0x20fd57){_0xb90479=_0xb90479-0x0;let _0x157658=_0x20fd[_0xb90479];return _0x157658;};import{View as _0x4b1b2a}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x4b1b2a{constructor(_0x1a0f8c){super(_0x1a0f8c);const _0x2badd4=this[_0x1576('0x3')];this[_0x1576('0x9')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x1576('0x0')]({'tag':_0x1576('0xc'),'attributes':{'class':['ck',_0x1576('0xb'),_0x2badd4['if'](_0x1576('0x8'),_0x1576('0x4'),_0x33ba0=>!_0x33ba0),_0x2badd4['if'](_0x1576('0x1'),_0x1576('0xd'))],'role':'button','aria-pressed':_0x2badd4['to']('_isCollapsed',_0x23554f=>_0x23554f?_0x1576('0x5'):_0x1576('0x6'))},'children':[{'tag':_0x1576('0xc'),'attributes':{'class':['ck',_0x1576('0x2')]}}],'on':{'click':_0x2badd4['to'](_0x1576('0xa'))}});}[_0x1576('0x7')](){this[_0x1576('0x1')]=!this['_isCollapsed'];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xbf8e=['select','set','isSelected','bindTemplate','bind','ck-reset','deselect','setTemplate','createdAt','ck-revision-history-sidebar__revision-authors','_parentRevisionId','ck-revision-history-sidebar__subrevision','fire','_createdAtFormatted','span','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__revision__date','uiLanguage','div'];(function(_0x53bfa7,_0xbf8efe){const _0x1eab87=function(_0x480321){while(--_0x480321){_0x53bfa7['push'](_0x53bfa7['shift']());}};_0x1eab87(++_0xbf8efe);}(_0xbf8e,0x1c4));const _0x1eab=function(_0x53bfa7,_0xbf8efe){_0x53bfa7=_0x53bfa7-0x0;let _0x1eab87=_0xbf8e[_0x53bfa7];return _0x1eab87;};import{View as _0x2fe7af}from'ckeditor5/src/ui';import _0x16d51b from'./revisionauthorview';import{dateToPrettyFormat as _0x4e617e}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x2fe7af{constructor(_0x3f7307,_0x5e726d,_0x64e18b){super(_0x3f7307);const _0x18e93e=this[_0x1eab('0x7')];this['id']=_0x5e726d['id'],this[_0x1eab('0x8')](_0x1eab('0xc'))['to'](_0x5e726d),this[_0x1eab('0x5')]('isSelected',!0x1),this[_0x1eab('0x8')](_0x1eab('0x11'))['to'](this,_0x1eab('0xc'),_0x38384a=>_0x38384a?_0x4e617e(_0x3f7307[_0x1eab('0x2')],_0x38384a):void 0x0),this[_0x1eab('0xe')]=_0x64e18b,this[_0x1eab('0xb')]({'tag':_0x1eab('0x3'),'attributes':{'class':['ck',_0x1eab('0x9'),_0x1eab('0x0'),_0x1eab('0xf'),_0x18e93e['if'](_0x1eab('0x6'),'ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':_0x1eab('0x12'),'attributes':{'class':['ck',_0x1eab('0x1')]},'children':[{'text':_0x18e93e['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x1eab('0xd')]},'children':[new _0x16d51b(_0x3f7307,_0x5e726d['creator'],!0x0)]}],'on':{'click':_0x18e93e['to'](this[_0x1eab('0x4')][_0x1eab('0x8')](this))}});}[_0x1eab('0x4')](){this[_0x1eab('0x6')]=!0x0,this[_0x1eab('0x10')](_0x1eab('0x4'),{'parentId':this[_0x1eab('0xe')]});}[_0x1eab('0xa')](){this['isSelected']=!0x1;}}
23
+ const _0x1d25=['_createdAtFormatted','ck-revision-history-sidebar__revision__date','uiLanguage','span','creator','ck-revision-history-sidebar__revision-authors','createdAt','bindTemplate','select','fire','ck-revision-history-sidebar__subrevision','set','deselect','div','isSelected','ck-revision-history-sidebar__revision_selected','bind','_parentRevisionId'];(function(_0x1739ff,_0x1d2591){const _0x2a2105=function(_0x41fda4){while(--_0x41fda4){_0x1739ff['push'](_0x1739ff['shift']());}};_0x2a2105(++_0x1d2591);}(_0x1d25,0xc5));const _0x2a21=function(_0x1739ff,_0x1d2591){_0x1739ff=_0x1739ff-0x0;let _0x2a2105=_0x1d25[_0x1739ff];return _0x2a2105;};import{View as _0x277bcb}from'ckeditor5/src/ui';import _0x5e4e6c from'./revisionauthorview';import{dateToPrettyFormat as _0x5ec02c}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x277bcb{constructor(_0x38a57c,_0x22e981,_0x67112){super(_0x38a57c);const _0x2d9a3c=this[_0x2a21('0x8')];this['id']=_0x22e981['id'],this[_0x2a21('0x11')](_0x2a21('0x7'))['to'](_0x22e981),this[_0x2a21('0xc')](_0x2a21('0xf'),!0x1),this[_0x2a21('0x11')](_0x2a21('0x1'))['to'](this,_0x2a21('0x7'),_0x42608d=>_0x42608d?_0x5ec02c(_0x38a57c[_0x2a21('0x3')],_0x42608d):void 0x0),this[_0x2a21('0x0')]=_0x67112,this['setTemplate']({'tag':_0x2a21('0xe'),'attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2a21('0xb'),_0x2d9a3c['if'](_0x2a21('0xf'),_0x2a21('0x10'))]},'children':[{'tag':_0x2a21('0x4'),'attributes':{'class':['ck',_0x2a21('0x2')]},'children':[{'text':_0x2d9a3c['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x2a21('0x6')]},'children':[new _0x5e4e6c(_0x38a57c,_0x22e981[_0x2a21('0x5')],!0x0)]}],'on':{'click':_0x2d9a3c['to'](this[_0x2a21('0x9')]['bind'](this))}});}[_0x2a21('0x9')](){this[_0x2a21('0xf')]=!0x0,this[_0x2a21('0xa')]('select',{'parentId':this[_0x2a21('0x0')]});}[_0x2a21('0xd')](){this[_0x2a21('0xf')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5916=['numeric','long','toLocaleDateString'];(function(_0x15ba24,_0x5916ba){var _0x4048fd=function(_0x4b51ab){while(--_0x4b51ab){_0x15ba24['push'](_0x15ba24['shift']());}};_0x4048fd(++_0x5916ba);}(_0x5916,0xbf));var _0x4048=function(_0x15ba24,_0x5916ba){_0x15ba24=_0x15ba24-0x0;var _0x4048fd=_0x5916[_0x15ba24];return _0x4048fd;};export function dateToPrettyFormat(_0x57f80a,_0x4b60c5){return _0x4b60c5[_0x4048('0x0')](_0x57f80a,{'month':_0x4048('0x2'),'day':_0x4048('0x1')})+',\x20'+_0x4b60c5['toLocaleTimeString'](_0x57f80a,{'hour':_0x4048('0x1'),'minute':_0x4048('0x1')});}
23
+ var _0x4e5f=['toLocaleDateString','numeric','toLocaleTimeString'];(function(_0xc5f820,_0x4e5fb9){var _0x351f46=function(_0x5af536){while(--_0x5af536){_0xc5f820['push'](_0xc5f820['shift']());}};_0x351f46(++_0x4e5fb9);}(_0x4e5f,0x97));var _0x351f=function(_0xc5f820,_0x4e5fb9){_0xc5f820=_0xc5f820-0x0;var _0x351f46=_0x4e5f[_0xc5f820];return _0x351f46;};export function dateToPrettyFormat(_0x32a712,_0x432a40){return _0x432a40[_0x351f('0x2')](_0x32a712,{'month':'long','day':_0x351f('0x0')})+',\x20'+_0x432a40[_0x351f('0x1')](_0x32a712,{'hour':_0x351f('0x0'),'minute':_0x351f('0x0')});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb321=['ck-button-save','cancel','reset','focusFirst','220','form','arrowleft','_focusables','fieldView','stopPropagation','revisionNameInputView','trim','type','value','saveButtonView','locale','execute','render','revisionName','listenTo','_focusCycler','input','Save','Cancel','forEach','submit','cancelButtonView','keystrokes','_createButton','add','element','shift\x20+\x20tab','setTemplate','focusTracker','ck-button-cancel','arrowup','extendTemplate','set'];(function(_0x53c821,_0xb32131){const _0x327135=function(_0x17f5e8){while(--_0x17f5e8){_0x53c821['push'](_0x53c821['shift']());}};_0x327135(++_0xb32131);}(_0xb321,0x1c4));const _0x3271=function(_0x53c821,_0xb32131){_0x53c821=_0x53c821-0x0;let _0x327135=_0xb321[_0x53c821];return _0x327135;};import{icons as _0x16c07d}from'ckeditor5/src/core';import{ButtonView as _0x4944a2,FocusCycler as _0x8ece43,LabeledFieldView as _0x29b1b4,View as _0x293db5,ViewCollection as _0x40c290,createLabeledInputText as _0x95f85,injectCssTransitionDisabler as _0x50b6bf,submitHandler as _0x15c893}from'ckeditor5/src/ui';import{FocusTracker as _0x41fc06,KeystrokeHandler as _0x141b76}from'ckeditor5/src/utils';import{getTranslation as _0x3cfb99}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class wt extends _0x293db5{constructor(_0x1bfb6f){super(_0x1bfb6f),this['focusTracker']=new _0x41fc06(),this['keystrokes']=new _0x141b76(),this[_0x3271('0x3')]('revisionNameInputValue',''),this[_0x3271('0xe')]=this['_createRevisionNameInput'](),this['saveButtonView']=this[_0x3271('0x20')](_0x3cfb99(_0x1bfb6f,_0x3271('0x1a')),_0x16c07d['check'],_0x3271('0x4')),this[_0x3271('0x12')][_0x3271('0x10')]=_0x3271('0x1d'),this[_0x3271('0x1e')]=this[_0x3271('0x20')](_0x3cfb99(_0x1bfb6f,_0x3271('0x1b')),_0x16c07d[_0x3271('0x5')],_0x3271('0x0'),_0x3271('0x5')),this[_0x3271('0xb')]=new _0x40c290(),this['_focusCycler']=new _0x8ece43({'focusables':this[_0x3271('0xb')],'focusTracker':this['focusTracker'],'keystrokeHandler':this[_0x3271('0x1f')],'actions':{'focusPrevious':_0x3271('0x23'),'focusNext':'tab'}}),this[_0x3271('0x24')]({'tag':_0x3271('0x9'),'attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this[_0x3271('0xe')],this['saveButtonView'],this['cancelButtonView']]}),_0x50b6bf(this);}[_0x3271('0x15')](){super[_0x3271('0x15')](),_0x15c893({'view':this}),([this[_0x3271('0xe')],this[_0x3271('0x12')],this[_0x3271('0x1e')]][_0x3271('0x1c')](_0x47303e=>{this[_0x3271('0xb')][_0x3271('0x21')](_0x47303e),this[_0x3271('0x25')][_0x3271('0x21')](_0x47303e[_0x3271('0x22')]);}),this['keystrokes'][_0x3271('0x17')](this[_0x3271('0x22')]));const _0x566a78=_0x918b74=>_0x918b74[_0x3271('0xd')]();this[_0x3271('0x1f')][_0x3271('0x3')]('arrowright',_0x566a78),this['keystrokes']['set'](_0x3271('0xa'),_0x566a78),this['keystrokes']['set'](_0x3271('0x1'),_0x566a78),this['keystrokes']['set']('arrowdown',_0x566a78);}['focus'](){this[_0x3271('0x18')][_0x3271('0x7')]();}get[_0x3271('0x16')](){return this[_0x3271('0xe')][_0x3271('0xc')][_0x3271('0x22')][_0x3271('0x11')]['trim']();}set['revisionName'](_0xb30837){this[_0x3271('0xe')][_0x3271('0xc')][_0x3271('0x22')][_0x3271('0x11')]=_0xb30837[_0x3271('0xf')]();}[_0x3271('0x6')](){this[_0x3271('0xe')][_0x3271('0xc')][_0x3271('0x22')][_0x3271('0x11')]='';}['_createRevisionNameInput'](){const _0x37f5f0=new _0x29b1b4(this[_0x3271('0x13')],_0x95f85),_0x26c4e8=_0x37f5f0[_0x3271('0xc')];return _0x26c4e8[_0x3271('0x2')]({'attributes':{'maxlength':_0x3271('0x8')}}),_0x37f5f0['label']=_0x3cfb99(this[_0x3271('0x13')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x26c4e8['on'](_0x3271('0x19'),()=>{this['revisionNameInputValue']=_0x26c4e8[_0x3271('0x22')][_0x3271('0x11')][_0x3271('0xf')]();}),_0x37f5f0;}['_createButton'](_0x3eb95a,_0x416bab,_0x35090a,_0x59676f){const _0x4c0a58=new _0x4944a2(this[_0x3271('0x13')]);return _0x4c0a58[_0x3271('0x3')]({'label':_0x3eb95a,'icon':_0x416bab,'tooltip':!0x0}),_0x4c0a58[_0x3271('0x2')]({'attributes':{'class':_0x35090a}}),_0x59676f&&_0x4c0a58['delegate'](_0x3271('0x14'))['to'](this,_0x59676f),_0x4c0a58;}}
23
+ const _0x179c=['locale','ck-responsive-form','setTemplate','label','ck-button-save','extendTemplate','cancel','reset','input','forEach','listenTo','keystrokes','set','ck-button-cancel','render','form','revisionNameInputValue','shift\x20+\x20tab','execute','220','_createRevisionNameInput','_focusCycler','arrowup','stopPropagation','focusTracker','arrowright','element','revisionName','ck-revision-history-save-revision-form','trim','arrowleft','focusFirst','_createButton','_focusables','focus','value','cancelButtonView','Save','submit','saveButtonView','revisionNameInputView','delegate','fieldView','arrowdown','check','add'];(function(_0xaf9f2e,_0x179c40){const _0x1c9cc7=function(_0x367134){while(--_0x367134){_0xaf9f2e['push'](_0xaf9f2e['shift']());}};_0x1c9cc7(++_0x179c40);}(_0x179c,0x92));const _0x1c9c=function(_0xaf9f2e,_0x179c40){_0xaf9f2e=_0xaf9f2e-0x0;let _0x1c9cc7=_0x179c[_0xaf9f2e];return _0x1c9cc7;};import{icons as _0x51beaa}from'ckeditor5/src/core';import{ButtonView as _0x4452cf,FocusCycler as _0x56bc61,LabeledFieldView as _0x20db42,View as _0x1a3ebc,ViewCollection as _0x10e1e4,createLabeledInputText as _0x42de9e,injectCssTransitionDisabler as _0x3a6156,submitHandler as _0x4b173e}from'ckeditor5/src/ui';import{FocusTracker as _0x17a9ea,KeystrokeHandler as _0x45d9e9}from'ckeditor5/src/utils';import{getTranslation as _0x56eb39}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class wt extends _0x1a3ebc{constructor(_0x3cd628){super(_0x3cd628),this[_0x1c9c('0x10')]=new _0x17a9ea(),this['keystrokes']=new _0x45d9e9(),this[_0x1c9c('0x4')]('revisionNameInputValue',''),this[_0x1c9c('0x20')]=this['_createRevisionNameInput'](),this[_0x1c9c('0x1f')]=this['_createButton'](_0x56eb39(_0x3cd628,_0x1c9c('0x1d')),_0x51beaa[_0x1c9c('0x24')],_0x1c9c('0x2a')),this['saveButtonView']['type']=_0x1c9c('0x1e'),this['cancelButtonView']=this['_createButton'](_0x56eb39(_0x3cd628,'Cancel'),_0x51beaa[_0x1c9c('0x2c')],_0x1c9c('0x5'),_0x1c9c('0x2c')),this['_focusables']=new _0x10e1e4(),this[_0x1c9c('0xd')]=new _0x56bc61({'focusables':this[_0x1c9c('0x19')],'focusTracker':this[_0x1c9c('0x10')],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':_0x1c9c('0x9'),'focusNext':'tab'}}),this[_0x1c9c('0x28')]({'tag':_0x1c9c('0x7'),'attributes':{'class':['ck',_0x1c9c('0x14'),_0x1c9c('0x27')],'tabindex':'-1'},'children':[this[_0x1c9c('0x20')],this[_0x1c9c('0x1f')],this[_0x1c9c('0x1c')]]}),_0x3a6156(this);}['render'](){super[_0x1c9c('0x6')](),_0x4b173e({'view':this}),([this[_0x1c9c('0x20')],this[_0x1c9c('0x1f')],this[_0x1c9c('0x1c')]][_0x1c9c('0x1')](_0x1f59de=>{this['_focusables'][_0x1c9c('0x25')](_0x1f59de),this[_0x1c9c('0x10')][_0x1c9c('0x25')](_0x1f59de['element']);}),this[_0x1c9c('0x3')][_0x1c9c('0x2')](this[_0x1c9c('0x12')]));const _0x2d3715=_0x29276f=>_0x29276f[_0x1c9c('0xf')]();this[_0x1c9c('0x3')][_0x1c9c('0x4')](_0x1c9c('0x11'),_0x2d3715),this[_0x1c9c('0x3')][_0x1c9c('0x4')](_0x1c9c('0x16'),_0x2d3715),this[_0x1c9c('0x3')][_0x1c9c('0x4')](_0x1c9c('0xe'),_0x2d3715),this[_0x1c9c('0x3')][_0x1c9c('0x4')](_0x1c9c('0x23'),_0x2d3715);}[_0x1c9c('0x1a')](){this[_0x1c9c('0xd')][_0x1c9c('0x17')]();}get['revisionName'](){return this[_0x1c9c('0x20')][_0x1c9c('0x22')][_0x1c9c('0x12')]['value']['trim']();}set[_0x1c9c('0x13')](_0x10fa35){this['revisionNameInputView'][_0x1c9c('0x22')][_0x1c9c('0x12')][_0x1c9c('0x1b')]=_0x10fa35[_0x1c9c('0x15')]();}[_0x1c9c('0x2d')](){this[_0x1c9c('0x20')][_0x1c9c('0x22')][_0x1c9c('0x12')]['value']='';}[_0x1c9c('0xc')](){const _0x194d99=new _0x20db42(this[_0x1c9c('0x26')],_0x42de9e),_0x3fffa9=_0x194d99['fieldView'];return _0x3fffa9[_0x1c9c('0x2b')]({'attributes':{'maxlength':_0x1c9c('0xb')}}),_0x194d99[_0x1c9c('0x29')]=_0x56eb39(this[_0x1c9c('0x26')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x3fffa9['on'](_0x1c9c('0x0'),()=>{this[_0x1c9c('0x8')]=_0x3fffa9['element']['value'][_0x1c9c('0x15')]();}),_0x194d99;}[_0x1c9c('0x18')](_0x2d3b57,_0x12806d,_0x2dfc53,_0x18a5ba){const _0x518d95=new _0x4452cf(this['locale']);return _0x518d95[_0x1c9c('0x4')]({'label':_0x2d3b57,'icon':_0x12806d,'tooltip':!0x0}),_0x518d95[_0x1c9c('0x2b')]({'attributes':{'class':_0x2dfc53}}),_0x18a5ba&&_0x518d95[_0x1c9c('0x21')](_0x1c9c('0xa'))['to'](this,_0x18a5ba),_0x518d95;}}