@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230810.0 → 0.0.0-nightly-20230812.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 _0x16db=['domEvent','index','isAtStart','removeMarker:revision-suggestion','isReady','execute','toViewElement','elementToAttribute','schema','_findChangeIdFromDomTarget','hasClass','plugins','-new','ck-suggestion-marker-','getRevision','isObject','markers','elementStart','markersStart','dataToMarker','range','unbindElementFromMarkerName','newRevisionId','refresh','useFillerType','abs','first','attribute:vid','markerToHighlight','resolve','_getChangeFromId','createRangeIn','setAttribute','adapter','POSITIVE_INFINITY','set','getWalker','editor','dataDowncast','_getDiff','slice','element:pre','isRemoved','loadRevisionData','vid_start','detachRoot','removeMarker:revision','forward','_appendChild','left','userId','delete','data-change-id','restoreRevision','_markInsertions','_cleanUp','map','change:activeChange','suggestion','markerNameToElements','revision','top','getClientRects','collaboration.channelId','affectsData','changes','reconvertMarker','done','find','high','oldRevisionId','text','attributesAfter','hasAttribute','_processTape','forEach','test','isEqual','children','_step','viewItem','model','_refreshStartEndIndex','_getViewObj','attributes','nextSibling','_makeTape','highest','markerRange','startsWith','add','deletions','processor','isContent','locale','addRoot','getChild','nextPosition','destroy','addRevisionData','getIndex','markersEnd','get','comment','createAttributeElement','_removeUnsupportedChanges','removeClass','removeMarker','change:numberOfChanges','revision-viewer','_fixObsoleteTags','target','isInline','revisionHistoryLabel','insertions','createUIElement','config','isAdded','domConverter','data','nodeAfter','roots','_cleanMarkers','softBreak','attachChange','length','isAttached','startIndex','span','editingDowncast','toViewRange','attributesBefore','previousPosition','sort','then','isBlock','getAttribute','side','distance','getRoot','_activeViewTarget','default','has','ck-suggestion-marker','bottom','bind','consumable','mapViewToDom','addHighlight','parent','revision-suggestion','split','conversion','mapper','ck-revision-history-root--active','getRevisionData','revision-suggestion:','start','downcastDispatcher','_makeModelFromTape','revision:','view','right','isAfter','splice','isAddSuggestion','ck-suggestion-preview-marker-','parse','isSuggestion','toModel','item','_data','_removeRevisionMarkers','ck-revision-history-root-remove','addMarker:revision','repository','level','insert','_update','upcast','_getRevisionsRange','filter','_removeMissingPairs','getRootNames','compare','isCollapsed','activeView','_getViewForChange','revision-end','uiElement','flat','_initInteractions','ck-editor__editable__overlay','name','push','ck-revision-history-root-add','_markMismatchedRemovedTags','data-revision-','isBefore','observeMarkers','getDomRoot','_markMarkers','getAttributes','vid','insertion','rootName','marked','revisionHistoryAttachChange','consume','_balloon','getItems','string','bindElementToMarker','endIndex','pluginName','deletion','shift','ck-suggestion-marker-split','addRevision','vid_end','addMarker:revision-suggestion:deletion','isRemoveSuggestion','listenTo','isOnRoot','diffData','element','RevisionViewer','unshift','isIncorrect','_joinTapes','backward','return','document','maxOffset','modelRange','enableReadOnlyMode','code','isNavigationMode','getCustomProperty','addMarker:revision-suggestion:insertion','low','includes','merge','elementEnd','change:isEnabled','remove','change:isReady','isLimit','enqueueChange','concat','writer','_makeModelFromViewString','activeChange','change','createPositionFromPath','end','authors','requires','for','_setConversion','changeId','pairId','editing','next','all','markerToData','_changeIdToChange','RevisionsRepository','_setDistance','mousedown','_revisions','_changeView','_setChanges','diff','restoreRevisionCallback','ck-suggestion-marker--active','commands','addClass','WidgetToolbarRepository','isAtEnd','findIndex','type','from','keys','toViewPosition','markerName','createRange','createPositionBefore','_threeWayMerge','isEnabled','currentChangeNumber','_markSuggestions'];(function(_0x3eb463,_0x16db7c){const _0xafe059=function(_0x164c4f){while(--_0x164c4f){_0x3eb463['push'](_0x3eb463['shift']());}};_0xafe059(++_0x16db7c);}(_0x16db,0x16b));const _0xafe0=function(_0x3eb463,_0x16db7c){_0x3eb463=_0x3eb463-0x0;let _0xafe059=_0x16db[_0x3eb463];return _0xafe059;};import{Plugin as _0xe5bd2f,Command as _0x2b2918}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x1260c8}from'ckeditor5/src/utils';import{ContextualBalloon as _0x499dac}from'ckeditor5/src/ui';import{DocumentFragment as _0x1aa534,Element as _0x4f99d2,Text as _0x1c85de,ViewDocumentFragment as _0x2cf70f,ViewText as _0x11204e,ViewElement as _0xf195ed,ViewContainerElement as _0x2c533a,ViewAttributeElement as _0x1fde8c,ViewEmptyElement as _0x39993a,ViewRawElement as _0x14ad45,ViewUIElement as _0x3f8154}from'ckeditor5/src/engine';import{Users as _0x5e1b77,getMarkerDomElement as _0x20865c}from'ckeditor5-collaboration/src/collaboration-core';import _0x3ddc6a from'./ui/revisionviewer/changedetailsview';import _0x2b21c1 from'./revisionsrepository';import _0x5a441c from'./changeitem';import{default as _0x47daaf}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x18f1ff}from'lodash-es';const tt={'c':_0x2c533a,'a':_0x1fde8c,'e':_0x39993a,'r':_0x14ad45,'u':_0x3f8154};export default class d extends _0xe5bd2f{static get[_0xafe0('0x8f')](){return _0xafe0('0x9b');}static get[_0xafe0('0xba')](){return[_0x5e1b77,_0x499dac,_0x2b21c1];}constructor(_0x2552ef){super(_0x2552ef),this[_0xafe0('0x68')]=this[_0xafe0('0x102')][_0xafe0('0xe8')]['get'](_0xafe0('0xc4')),this[_0xafe0('0x100')](_0xafe0('0xb5'),null),this[_0xafe0('0x100')]('activeView',null),this[_0xafe0('0x45')]=null,this[_0xafe0('0x100')](_0xafe0('0xca'),null),this[_0xafe0('0x100')](_0xafe0('0xe1'),!0x1),this[_0xafe0('0x100')]('isEnabled',!0x0),this['on'](_0xafe0('0xad'),(_0x34ad60,_0x407984,_0x1a71bd)=>{this[_0xafe0('0xb5')]=null,this[_0xafe0('0x73')]=null,this[_0xafe0('0x102')][_0xafe0('0xbf')]['view']['change'](_0x4b9336=>{for(const _0x2b2502 of this[_0xafe0('0x102')]['editing'][_0xafe0('0x5a')][_0xafe0('0xa1')][_0xafe0('0x32')])_0x1a71bd?_0x4b9336[_0xafe0('0x23')]('ck-editor__editable__overlay',_0x2b2502):_0x4b9336[_0xafe0('0xce')](_0xafe0('0x79'),_0x2b2502);});}),this['bind'](_0xafe0('0xa6'))['to'](this,'activeChange',_0x3fc6e7=>null!==_0x3fc6e7),this['bind'](_0xafe0('0xdb'))['to'](this,'isReady',this,'diff',this,'activeChange',(_0x492945,_0x15e7bd,_0x2b36f1)=>_0x492945&&_0x2b36f1?_0x15e7bd[_0xafe0('0x11e')]['getIndex'](_0x2b36f1):0x0),this[_0xafe0('0x4a')]('numberOfChanges')['to'](this,_0xafe0('0xe1'),this,'diff',(_0x3cf8d5,_0x33d1d6)=>_0x3cf8d5?_0x33d1d6[_0xafe0('0x11e')][_0xafe0('0x36')]:0x0),this[_0xafe0('0xc8')]=null,this[_0xafe0('0xc3')]=new Map(),this[_0xafe0('0xfe')]=null,this[_0xafe0('0x8a')]=this[_0xafe0('0x102')][_0xafe0('0xe8')]['get'](_0x499dac);}['init'](){const _0x357ae7=this[_0xafe0('0x102')],_0x4693d1=new ShowChangeCommand(_0x357ae7,{'direction':_0xafe0('0x9f')}),_0x1eb0b8=new ShowChangeCommand(_0x357ae7,{'direction':_0xafe0('0x10c')});(_0x357ae7[_0xafe0('0xcd')][_0xafe0('0x13')]('showPreviousChange',_0x4693d1),_0x357ae7['commands']['add']('showNextChange',_0x1eb0b8),_0x357ae7[_0xafe0('0xcd')][_0xafe0('0x13')](_0xafe0('0x112'),new RestoreRevisionCommand(_0x357ae7)),this['on'](_0xafe0('0x25'),()=>{_0x4693d1[_0xafe0('0xf4')](),_0x1eb0b8[_0xafe0('0xf4')]();}),this[_0xafe0('0xbc')](),this[_0xafe0('0x78')](),_0x357ae7[_0xafe0('0xa4')](_0xafe0('0x26')),_0x357ae7[_0xafe0('0xe8')][_0xafe0('0x47')]('WidgetToolbarRepository'))&&_0x357ae7['plugins'][_0xafe0('0x1f')](_0xafe0('0xcf'))['forceDisabled'](_0xafe0('0x26'));}async[_0xafe0('0x54')](_0xa6dde8){await this[_0xafe0('0x108')](_0xa6dde8);const _0x2e08a4={};for(const _0x3b82f2 in _0xa6dde8[_0xafe0('0x99')]){if(_0xa6dde8['diffData'][_0x3b82f2]['attachChange']&&!_0xa6dde8[_0xafe0('0x99')][_0x3b82f2][_0xafe0('0x35')]['isAttached'])continue;const _0x571b60=this['_removeRevisionMarkers'](JSON['parse'](_0xa6dde8[_0xafe0('0x99')][_0x3b82f2][_0xafe0('0x2b')])),_0x3f21ae=this[_0xafe0('0x102')]['editing'][_0xafe0('0x5a')][_0xafe0('0xa1')],_0x2f67a6=new _0x2cf70f(_0x3f21ae,_0x571b60[_0xafe0('0x115')](_0x1d8def=>this[_0xafe0('0xc')](_0x1d8def)));this[_0xafe0('0x102')][_0xafe0('0x30')][_0xafe0('0x15')][_0xafe0('0xf5')](_0xafe0('0x87')),_0x2e08a4[_0x3b82f2]=this[_0xafe0('0x102')][_0xafe0('0x30')]['processor']['toData'](_0x2f67a6),this[_0xafe0('0x102')][_0xafe0('0x30')][_0xafe0('0x15')][_0xafe0('0xf5')](_0xafe0('0x46'));}return _0x2e08a4;}async['getRevisionRootsAttributes'](_0x15a6df){await this[_0xafe0('0x108')](_0x15a6df);const _0x3b9bc6={};for(const _0x5252ad in _0x15a6df[_0xafe0('0x99')])_0x15a6df[_0xafe0('0x99')][_0x5252ad][_0xafe0('0x35')]&&!_0x15a6df['diffData'][_0x5252ad][_0xafe0('0x35')][_0xafe0('0x37')]||(_0x3b9bc6[_0x5252ad]=_0x15a6df[_0xafe0('0x99')][_0x5252ad]['attributesAfter']||{});return _0x3b9bc6;}[_0xafe0('0x65')](_0x1571ee){return(_0x1571ee=_0x1571ee[_0xafe0('0x6e')](_0xcba178=>!_0xcba178[_0xafe0('0x7a')]||'revision-start'!==_0xcba178[_0xafe0('0x7a')]&&_0xafe0('0x75')!==_0xcba178[_0xafe0('0x7a')]))[_0xafe0('0x4')](_0x4f0500=>{_0xafe0('0x8c')!=typeof _0x4f0500&&(_0x4f0500['children']=this[_0xafe0('0x65')](_0x4f0500[_0xafe0('0x7')]),_0x4f0500['attributes']=_0x4f0500['attributes'][_0xafe0('0x6e')](_0x4275dc=>!_0x4275dc[0x0]['startsWith'](_0xafe0('0x7e'))));}),_0x1571ee;}async[_0xafe0('0x71')](_0x467cbe,_0x1cabb4,_0x4d91f3=!0x1){if(!this[_0xafe0('0xda')])return;const _0x35117f=this[_0xafe0('0xca')],_0x27f109=this[_0xafe0('0x68')],_0x1dfd91=_0xafe0('0x8c')==typeof _0x467cbe?_0x27f109['getRevision'](_0x467cbe):_0x467cbe,_0x46f9e0=_0xafe0('0x8c')==typeof _0x1cabb4?_0x27f109[_0xafe0('0xeb')](_0x1cabb4):_0x1cabb4,_0xfebce2=_0x1dfd91['id'],_0x265d97=_0x46f9e0?_0x46f9e0['id']:null;if(!_0x4d91f3&&this['diff']&&this['diff'][_0xafe0('0xf3')]===_0xfebce2&&this[_0xafe0('0xca')][_0xafe0('0x123')]===_0x265d97)return Promise[_0xafe0('0xfa')]();this['isReady']=!0x1,this[_0xafe0('0x73')]=null,this[_0xafe0('0xb5')]=null,this['diff']=new _0x47daaf(_0xfebce2,_0x265d97);const _0x4a3b75=this['_getRevisionsRange'](_0x1dfd91,_0x46f9e0,!0x0)[_0xafe0('0x115')](_0x2ddafe=>this[_0xafe0('0x108')](_0x2ddafe));return _0x4a3b75[_0xafe0('0x7b')](new Promise(_0xc0b36e=>{setTimeout(_0xc0b36e,0x14);})),Promise[_0xafe0('0xc1')](_0x4a3b75)[_0xafe0('0x3f')](()=>{if(!this[_0xafe0('0xda')])return;this['_cleanUp']();const _0x399197=this[_0xafe0('0x104')](_0xfebce2,_0x265d97);for(const _0xd50f56 of _0x399197[_0xafe0('0x11e')])this[_0xafe0('0xc3')]['set'](_0xd50f56['id'],_0xd50f56);this['editor'][_0xafe0('0xa')][_0xafe0('0xb1')]({'isUndoable':!0x1},_0x25676b=>{for(const _0x3118f3 of this[_0xafe0('0x102')][_0xafe0('0xa')]['document'][_0xafe0('0x70')]())_0x25676b[_0xafe0('0x10a')](_0x3118f3);for(const _0x3ae7ec of Object[_0xafe0('0xd4')](_0x399197[_0xafe0('0xa')])){const _0x111e9e=_0x25676b[_0xafe0('0x18')](_0x3ae7ec);for(const _0x46b031 of Object[_0xafe0('0xd4')](_0x399197['attributes'][_0x3ae7ec]))_0x25676b['setAttribute'](_0x46b031,_0x399197[_0xafe0('0xd')][_0x3ae7ec][_0x46b031],_0x111e9e);_0x25676b[_0xafe0('0x6a')](_0x399197['model'][_0x3ae7ec],_0x111e9e,0x0);}}),this['diff'][_0xafe0('0xc9')](this['_sortAndFilterDiffChanges'](_0x399197[_0xafe0('0x11e')])),this['isReady']=!0x0;})['catch'](_0x2a78e9=>{console['error'](_0x2a78e9),this[_0xafe0('0x114')](),_0x35117f&&(this[_0xafe0('0xca')]=_0x35117f),this[_0xafe0('0xe1')]=!0x0;});}[_0xafe0('0x1c')](_0x4d4cb2,_0x91020e){const _0x3fa0dc=this['repository']['createRevision'](_0x4d4cb2);return _0x3fa0dc['on']('_update',(_0x25254a,_0x5f00e0,_0x124366)=>_0x91020e(_0x5f00e0,_0x124366,_0x3fa0dc)),this[_0xafe0('0x68')][_0xafe0('0x93')](_0x3fa0dc),_0x3fa0dc;}[_0xafe0('0x108')](_0x2968a9){if(!_0x2968a9||_0x2968a9[_0xafe0('0x99')])return Promise[_0xafe0('0xfa')]();{const _0x202d08=this[_0xafe0('0x102')][_0xafe0('0x2d')][_0xafe0('0x1f')](_0xafe0('0x11c'));return this[_0xafe0('0xfe')][_0xafe0('0xeb')]({'channelId':_0x202d08,'revisionId':_0x2968a9['id']})[_0xafe0('0x3f')](_0x32f4c3=>{_0x2968a9[_0xafe0('0x6b')]({'diffData':_0x32f4c3['diffData']},!0x0);});}}[_0xafe0('0x114')](){this['activeChange']=null,this[_0xafe0('0x33')](),this['_changeView']&&this[_0xafe0('0xc8')][_0xafe0('0x1b')](),this[_0xafe0('0xc8')]=null,this[_0xafe0('0xc3')]['clear'](),this[_0xafe0('0x102')]['model']['enqueueChange']({'isUndoable':!0x1},_0x1bec07=>{for(const _0x3af571 of this[_0xafe0('0x102')][_0xafe0('0xa')][_0xafe0('0xa1')][_0xafe0('0x70')]())_0x1bec07['detachRoot'](_0x3af571);});}['_sortAndFilterDiffChanges'](_0x4520ca){const _0x45f2b7=[],_0x1b1ea0=new Map();for(const _0x190791 of this[_0xafe0('0x102')][_0xafe0('0xa')]['document'][_0xafe0('0x70')]()){const _0x3ae798=this[_0xafe0('0x102')][_0xafe0('0xbf')]['view'][_0xafe0('0x81')](_0x190791);if(!_0x3ae798)continue;const _0x1a74d7=_0x3ae798['getClientRects']()['item'](0x0);_0x1a74d7&&(_0x45f2b7['push'](_0x190791),_0x1b1ea0[_0xafe0('0x100')](_0x190791,_0x1a74d7));}return _0x45f2b7['sort']((_0x4e952e,_0x58ef0a)=>{const _0x2aa787=_0x1b1ea0[_0xafe0('0x1f')](_0x4e952e),_0x3d2cb8=_0x1b1ea0[_0xafe0('0x1f')](_0x58ef0a);return _0x2aa787['y']-_0x3d2cb8['y']||_0x2aa787['x']-_0x3d2cb8['x'];}),(_0x4520ca=_0x4520ca[_0xafe0('0x6e')](_0x1aa04f=>_0x45f2b7['includes'](_0x1aa04f[_0xafe0('0x86')])))[_0xafe0('0x3e')]((_0x3f993d,_0x26075d)=>_0x45f2b7['indexOf'](_0x3f993d[_0xafe0('0x86')])-_0x45f2b7['indexOf'](_0x26075d[_0xafe0('0x86')])),_0x4520ca;}[_0xafe0('0xf')](_0x2d2db8){const _0x19bb38=Array[_0xafe0('0xd3')](_0x2d2db8['markers'])[_0xafe0('0x6e')](([_0xdc1ff8,_0x5a1f1d])=>_0xdc1ff8[_0xafe0('0x12')](_0xafe0('0x59'))&&!_0x5a1f1d[_0xafe0('0x72')]),_0xbc2f8a=Array[_0xafe0('0xd3')](this[_0xafe0('0x102')][_0xafe0('0xa')][_0xafe0('0xfc')](_0x2d2db8)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x19bb38[_0xafe0('0x36')])for(const _0x40e802 of _0xbc2f8a){const [_0x27df6f,_0x5af203]=_0x19bb38[0x0],[,_0x40bc10,_0x5ac832]=_0x27df6f['split'](':');if(_0x5af203[_0xafe0('0xb8')]['isEqual'](_0x40e802[_0xafe0('0x1a')])&&_0x19bb38[_0xafe0('0x91')](),(_0x40e802[_0xafe0('0x3d')][_0xafe0('0x6')](_0x5af203[_0xafe0('0x56')])||_0x40e802[_0xafe0('0x3d')][_0xafe0('0x5c')](_0x5af203[_0xafe0('0x56')]))&&(_0xafe0('0x85')==_0x40bc10?_0x40e802['isAdded']={'userId':_0x5ac832}:_0xafe0('0x90')==_0x40bc10&&(_0x40e802[_0xafe0('0x107')]={'userId':_0x5ac832})),0x0==_0x19bb38['length'])break;}return _0xbc2f8a;}[_0xafe0('0xb')](_0x343e72){const _0x5485a9=new Map();for(let _0x49e354=0x0;_0x49e354<_0x343e72[_0xafe0('0x36')];_0x49e354++)_0xafe0('0x0')===_0x343e72[_0x49e354]['type']?(_0x343e72[_0x49e354][_0xafe0('0x63')][_0xafe0('0x38')]=_0x49e354,_0x343e72[_0x49e354][_0xafe0('0x63')][_0xafe0('0x8e')]=_0x49e354):(_0xafe0('0xee')===_0x343e72[_0x49e354][_0xafe0('0xd2')]?_0x343e72[_0x49e354]['item'][_0xafe0('0x38')]=_0x49e354:'elementEnd'===_0x343e72[_0x49e354]['type']&&(_0x343e72[_0x49e354][_0xafe0('0x63')]['endIndex']=_0x49e354),_0x5485a9[_0xafe0('0x100')](_0x343e72[_0x49e354]['id'],_0x49e354));for(const _0x505ae3 of _0x5485a9['values']())_0xafe0('0xee')===_0x343e72[_0x505ae3][_0xafe0('0xd2')]?_0x343e72[_0x505ae3][_0xafe0('0x63')][_0xafe0('0x8e')]=_0x5485a9[_0xafe0('0x1f')](_0x343e72[_0x505ae3]['pairId']):_0xafe0('0xac')===_0x343e72[_0x505ae3]['type']&&(_0x343e72[_0x505ae3][_0xafe0('0x63')]['startIndex']=_0x5485a9[_0xafe0('0x1f')](_0x343e72[_0x505ae3][_0xafe0('0xbe')]));}[_0xafe0('0x3')](_0x4f5249){for(let _0xb4323c=0x0;_0xb4323c<_0x4f5249[_0xafe0('0x36')];_0xb4323c++){if(_0xafe0('0xee')===_0x4f5249[_0xb4323c][_0xafe0('0xd2')])_0x4f5249[_0xb4323c]['item']['startIndex']=_0xb4323c;else{if(_0xafe0('0xac')===_0x4f5249[_0xb4323c][_0xafe0('0xd2')]){_0x4f5249[_0xb4323c]['item'][_0xafe0('0x8e')]=_0xb4323c;const _0x4d7b66=_0x4f5249[_0xb4323c][_0xafe0('0x63')][_0xafe0('0x38')];_0x4f5249[_0x4d7b66][_0xafe0('0xbe')]=_0x4f5249[_0xb4323c]['id'],_0x4f5249[_0xb4323c]['pairId']=_0x4f5249[_0x4d7b66]['id'];}else _0x4f5249[_0xb4323c]['item']['startIndex']=_0xb4323c,_0x4f5249[_0xb4323c][_0xafe0('0x63')][_0xafe0('0x8e')]=_0xb4323c,_0x4f5249[_0xb4323c][_0xafe0('0xbe')]=null;}_0x4f5249[_0xb4323c][_0xafe0('0xef')]||(_0x4f5249[_0xb4323c][_0xafe0('0xef')]=[],_0x4f5249[_0xb4323c]['markersEnd']=[]);}}[_0xafe0('0x113')](_0x345012,_0x57d346){const _0x501063=_0x345012[_0xafe0('0x6e')](_0x1b8c76=>!_0x1b8c76['isAdded']);for(let _0x59c58f=0x0;_0x59c58f<_0x57d346[_0xafe0('0x36')];_0x59c58f++)_0x57d346[_0x59c58f]['isAdded']&&(_0x501063[_0x59c58f][_0xafe0('0x2e')]=_0x57d346[_0x59c58f][_0xafe0('0x2e')]);}['_makeModelFromViewString'](_0x311e25){const _0x3f5d59=JSON[_0xafe0('0x60')](_0x311e25),_0x30284b=this[_0xafe0('0x102')][_0xafe0('0xbf')]['view'][_0xafe0('0xa1')],_0x3ee971=new _0x2cf70f(_0x30284b,_0x3f5d59['map'](_0x136f86=>this[_0xafe0('0xc')](_0x136f86)));return this['editor'][_0xafe0('0x30')][_0xafe0('0x62')](_0x3ee971);}[_0xafe0('0xc')](_0x31cd9a){const _0x3491aa=this[_0xafe0('0x102')][_0xafe0('0xbf')]['view']['document'];if('string'==typeof _0x31cd9a)return new _0x11204e(_0x3491aa,_0x31cd9a);{const _0x513aef=_0x31cd9a[_0xafe0('0x7')][_0xafe0('0x115')](_0x10c7c1=>this['_getViewObj'](_0x10c7c1));return new(tt[_0x31cd9a['type']]||_0xf195ed)(_0x3491aa,_0x31cd9a[_0xafe0('0x7a')],_0x31cd9a[_0xafe0('0xd')],_0x513aef);}}['_getDiff'](_0x1c1820,_0xefef10=null){const _0x3c8672=this[_0xafe0('0x68')][_0xafe0('0xeb')](_0x1c1820),_0x453406=_0xefef10?this['repository'][_0xafe0('0xeb')](_0xefef10):null,_0x39932f=this[_0xafe0('0x6d')](_0x3c8672,_0x453406),_0x1fde16=_0x39932f[_0x39932f[_0xafe0('0x36')]-0x1],_0x45048c=new Map(),_0x29ff28={'model':{},'attributes':{},'changes':[]},_0x20831c=new Set(),_0x35bed0=new Map();for(let _0x4748b6=_0x39932f[_0xafe0('0x36')]-0x1;_0x4748b6>=0x0;_0x4748b6--){const _0x3b80f0=_0x39932f[_0x4748b6];for(const _0x3b28cc of Object['keys'](_0x3b80f0['diffData']))if(_0x3b80f0[_0xafe0('0x99')][_0x3b28cc][_0xafe0('0x35')]){const _0x290d29=_0x3b80f0['diffData'][_0x3b28cc][_0xafe0('0x35')];_0x290d29[_0xafe0('0x37')]?(_0x20831c[_0xafe0('0x13')](_0x3b28cc),_0x35bed0[_0xafe0('0x47')](_0x3b28cc)&&_0x35bed0[_0xafe0('0x1f')](_0x3b28cc)[_0xafe0('0x10f')]==_0x290d29['userId']?_0x35bed0[_0xafe0('0x110')](_0x3b28cc):_0x35bed0[_0xafe0('0x100')](_0x3b28cc,_0x290d29)):_0x35bed0[_0xafe0('0x47')](_0x3b28cc)?(_0x20831c[_0xafe0('0x110')](_0x3b28cc),_0x35bed0[_0xafe0('0x110')](_0x3b28cc)):(_0x20831c[_0xafe0('0x13')](_0x3b28cc),_0x35bed0[_0xafe0('0x100')](_0x3b28cc,_0x290d29));}else _0x20831c[_0xafe0('0x13')](_0x3b28cc);}for(const _0x33bc8a of _0x20831c){const _0x21767c=_0x35bed0['has'](_0x33bc8a)&&!_0x35bed0['get'](_0x33bc8a)['isAttached'];let _0x451869=_0x21767c?_0x39932f['length']-0x1:0x0;const _0x247d38=_0x21767c?-0x1:0x1;for(;_0x39932f[_0x451869];){const _0x9939c2=_0x39932f[_0x451869];if(_0x9939c2[_0xafe0('0x99')][_0x33bc8a]){const _0x4481f5=_0x21767c?_0x9939c2[_0xafe0('0x99')][_0x33bc8a][_0xafe0('0x3c')]:_0x9939c2['diffData'][_0x33bc8a][_0xafe0('0x1')];_0x29ff28[_0xafe0('0xd')][_0x33bc8a]=_0x4481f5?_0x18f1ff(_0x4481f5):{};break;}_0x451869+=_0x247d38;}}for(const _0x1e8030 of _0x39932f){_0x1e8030[_0xafe0('0xa')]={};for(const _0x53cf64 of _0x1e8030[_0xafe0('0xb9')])_0x45048c[_0xafe0('0x100')](_0x53cf64['id'],_0x53cf64);for(const _0x5e8178 of _0x20831c){const _0x4e84ec=_0x1e8030[_0xafe0('0x99')][_0x5e8178]?_0x1e8030[_0xafe0('0x99')][_0x5e8178][_0xafe0('0x2b')]:'[]',_0x1006a8=_0x1e8030[_0xafe0('0x99')][_0x5e8178]?_0x1e8030['diffData'][_0x5e8178][_0xafe0('0x14')]:'[]';_0x1e8030[_0xafe0('0xa')][_0x5e8178]={'insertions':this['_makeModelFromViewString'](_0x4e84ec),'deletions':this[_0xafe0('0xb4')](_0x1006a8)};}}for(const _0x55c33a of _0x20831c){let _0xe3b5c=null,_0x54dbf9=0x0;const _0x2f5e74=new Map(Array[_0xafe0('0xd3')](_0x3c8672[_0xafe0('0xa')][_0x55c33a][_0xafe0('0x2b')]['markers'])['filter'](([_0xadbb46])=>!_0xadbb46[_0xafe0('0x12')]('revision:')));let _0x4dd3ca=0x0;for(const _0x38a0af of _0x39932f){const _0x5c4bf5=this[_0xafe0('0xf')](_0x38a0af['model'][_0x55c33a][_0xafe0('0x2b')]);_0x38a0af==_0x3c8672?(_0xe3b5c=_0x5c4bf5,_0x54dbf9=_0xe3b5c[_0xafe0('0x36')],_0xe3b5c['forEach'](_0x51beb3=>{_0x51beb3['id']=_0x4dd3ca++;}),this[_0xafe0('0x3')](_0xe3b5c)):this['_markInsertions'](_0xe3b5c,_0x5c4bf5);const _0x318e2f=_0xe3b5c[_0xafe0('0x6e')](_0x38c975=>!_0x38c975[_0xafe0('0x2e')])[_0xafe0('0x115')](_0xb4e1fc=>_0xb4e1fc['id']);let _0x162aaa=0x0;const _0xc67cd5=this[_0xafe0('0xf')](_0x38a0af[_0xafe0('0xa')][_0x55c33a]['deletions']);_0xc67cd5['forEach'](_0x5ea9f0=>{_0x5ea9f0[_0xafe0('0x107')]?_0x5ea9f0['id']=_0x54dbf9++:_0x5ea9f0['id']=_0x318e2f[_0x162aaa++];}),this[_0xafe0('0x3')](_0xc67cd5),this[_0xafe0('0xc5')](_0xe3b5c,_0xafe0('0x2e')),this[_0xafe0('0xc5')](_0xc67cd5,_0xafe0('0x107')),_0x38a0af==_0x3c8672&&this[_0xafe0('0x82')](_0xe3b5c,_0x2f5e74),_0xe3b5c=this[_0xafe0('0x9e')](_0xe3b5c,_0xc67cd5),this['_refreshStartEndIndex'](_0xe3b5c),this[_0xafe0('0xc5')](_0xe3b5c,_0xafe0('0x107'));}_0xe3b5c=_0xe3b5c['filter'](_0xa2fbce=>!(_0xa2fbce[_0xafe0('0x2e')]&&_0xa2fbce['isRemoved']));const _0x361658=new Map(_0x1fde16[_0xafe0('0xa')][_0x55c33a][_0xafe0('0x14')]['markers']),_0x4c57b9=new Set(_0x2f5e74[_0xafe0('0xd4')]());for(const _0x4f44ac of _0x361658['keys']())_0x4c57b9[_0xafe0('0x110')](_0x4f44ac);this[_0xafe0('0xdc')](_0xe3b5c,_0x4c57b9),this[_0xafe0('0x27')](_0xe3b5c),_0xe3b5c=this[_0xafe0('0x6f')](_0xe3b5c),_0xe3b5c=this[_0xafe0('0x7d')](_0xe3b5c),_0xe3b5c=this[_0xafe0('0x22')](_0xe3b5c);const {root:_0x1944de,changes:_0x16315b}=this[_0xafe0('0x58')](_0xe3b5c,_0x45048c,_0x55c33a);_0x29ff28[_0xafe0('0xa')][_0x55c33a]=_0x1944de;const _0x380594=_0x35bed0[_0xafe0('0x1f')](_0x55c33a);if(_0x380594){const _0x530bcc=_0x45048c['get'](_0x380594[_0xafe0('0x10f')]),_0x2828fa=new _0x5a441c({'author':_0x530bcc,'type':_0x380594[_0xafe0('0x37')]?_0xafe0('0x13'):_0xafe0('0xae'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x55c33a});_0x16315b[_0xafe0('0x9c')](_0x2828fa),_0x29ff28[_0xafe0('0xd')][_0x55c33a][_0xafe0('0x88')]=_0x2828fa['id'];}_0x29ff28[_0xafe0('0x11e')]=_0x29ff28[_0xafe0('0x11e')][_0xafe0('0xb2')](_0x16315b);}return _0x29ff28;}[_0xafe0('0x82')](_0x338b21,_0xb9b8c5){for(let _0x4c861b=0x0;_0x4c861b<_0x338b21[_0xafe0('0x36')];_0x4c861b++)for(const [_0x27a852,_0x2375f1]of _0xb9b8c5)_0x2375f1[_0xafe0('0x56')][_0xafe0('0x6')](_0x338b21[_0x4c861b][_0xafe0('0x3d')])&&_0x338b21[_0x4c861b][_0xafe0('0xef')][_0xafe0('0x7b')](_0x27a852),_0x2375f1[_0xafe0('0xb8')][_0xafe0('0x6')](_0x338b21[_0x4c861b][_0xafe0('0x1a')])&&_0x338b21[_0x4c861b][_0xafe0('0x1e')]['push'](_0x27a852);}[_0xafe0('0x9e')](_0x7d4e4b,_0x3e12f9){let _0x48fad5=[],_0xf970eb=0x0,_0x199277=0x0;for(;_0xf970eb<_0x7d4e4b[_0xafe0('0x36')]||_0x199277<_0x3e12f9[_0xafe0('0x36')];){const _0x53d863=_0x7d4e4b[_0xf970eb]||{},_0x19268f=_0x3e12f9[_0x199277]||{};if(_0x53d863['id']==_0x19268f['id'])_0xf970eb++,_0x199277++,_0x48fad5[_0xafe0('0x7b')](_0x53d863);else{if(_0x19268f[_0xafe0('0x107')]&&_0x53d863[_0xafe0('0x2e')]){const {commonTape:_0x37ba70,iEnd:_0x140f10,jEnd:_0x4d5fed}=this['_threeWayMerge'](_0x7d4e4b,_0xf970eb,_0x3e12f9,_0x199277);_0x48fad5=_0x48fad5[_0xafe0('0xb2')](_0x37ba70),_0xf970eb=_0x140f10,_0x199277=_0x4d5fed;}else _0x19268f[_0xafe0('0x107')]?(_0x199277++,_0x48fad5[_0xafe0('0x7b')](_0x19268f)):(_0xf970eb++,_0x48fad5['push'](_0x53d863));}}return _0x48fad5;}[_0xafe0('0xdc')](_0x476bac,_0x934a4e){const _0x4b752d=[];for(let _0x4c2e83=0x0;_0x4c2e83<_0x476bac['length'];_0x4c2e83++){for(let _0x128e39=0x0;_0x128e39<_0x476bac[_0x4c2e83][_0xafe0('0xef')][_0xafe0('0x36')];_0x128e39++){const _0x190eb5=_0x476bac[_0x4c2e83][_0xafe0('0xef')][_0x128e39];if(!_0x934a4e[_0xafe0('0x47')](_0x190eb5))continue;const {group:_0x25c685,type:_0x599d54,authorId:_0x5b231d}=_0xf8a7de(_0x190eb5);_0xafe0('0x4f')!=_0x25c685||_0xafe0('0x85')!=_0x599d54&&_0xafe0('0x90')!=_0x599d54||(_0x4b752d[_0xafe0('0x9c')]({'type':_0x599d54,'name':_0x190eb5,'userId':_0x5b231d}),_0x476bac[_0x4c2e83][_0xafe0('0xef')][_0xafe0('0x5d')](_0x128e39,0x1),_0x128e39--);}_0x1abdbe(_0x476bac[_0x4c2e83]);for(let _0x22c23a=0x0;_0x22c23a<_0x476bac[_0x4c2e83]['markersEnd'][_0xafe0('0x36')];_0x22c23a++){const _0xa9bb37=_0x476bac[_0x4c2e83][_0xafe0('0x1e')][_0x22c23a];if(!_0x934a4e['has'](_0xa9bb37))continue;const {group:_0xd42ce6,type:_0x9c1072}=_0xf8a7de(_0xa9bb37);if(_0xafe0('0x4f')!=_0xd42ce6||_0xafe0('0x85')!=_0x9c1072&&'deletion'!=_0x9c1072)continue;_0x476bac[_0x4c2e83][_0xafe0('0x1e')][_0xafe0('0x5d')](_0x22c23a,0x1),_0x22c23a--;const _0x1daa81=_0x4b752d[_0xafe0('0xd1')](_0x3873fe=>_0x3873fe[_0xafe0('0x7a')]==_0xa9bb37);_0x1daa81>-0x1&&_0x4b752d[_0xafe0('0x5d')](_0x1daa81,0x1);}}function _0xf8a7de(_0xb3cd82){const _0x4dc103=_0xb3cd82[_0xafe0('0x50')](':');return{'group':_0x4dc103[0x0],'type':_0x4dc103[0x1],'subType':_0x4dc103[_0xafe0('0x36')]>=0x5?_0x4dc103[0x2]:null,'id':_0x4dc103[_0xafe0('0x36')]<0x5?_0x4dc103[0x2]:_0x4dc103[0x3],'authorId':_0x4dc103[_0xafe0('0x36')]<0x5?_0x4dc103[0x3]:_0x4dc103[0x4],'markerCount':0x6==_0x4dc103[_0xafe0('0x36')]?_0x4dc103[0x5]:null};}function _0x1abdbe(_0x42da1c){for(let _0x2e47fb=0x0;_0x2e47fb<_0x4b752d['length'];_0x2e47fb++){if(_0x42da1c['isAdded']&&_0xafe0('0x85')==_0x4b752d[_0x2e47fb][_0xafe0('0xd2')])return _0x42da1c[_0xafe0('0x5e')]=_0x4b752d[_0x2e47fb],void delete _0x42da1c[_0xafe0('0x2e')];if(!_0x42da1c[_0xafe0('0x2e')]&&!_0x42da1c[_0xafe0('0x107')]&&_0xafe0('0x90')==_0x4b752d[_0x2e47fb][_0xafe0('0xd2')])return void(_0x42da1c['isRemoveSuggestion']=_0x4b752d[_0x2e47fb]);}}}[_0xafe0('0xc5')](_0x2a178e,_0x596910){let _0x22f8c9=0x0,_0x2d9cbc=!0x1;const _0x4167d4=new Map();for(const _0x2f2836 of _0x2a178e)_0x2f2836[_0x596910]?_0x2d9cbc&&(_0x22f8c9++,_0x2d9cbc=!0x1):(_0x22f8c9++,_0x2d9cbc=!0x0),_0x4167d4[_0xafe0('0x100')](_0x2f2836['id'],_0x22f8c9);for(let _0x4e691c=0x0;_0x4e691c<_0x2a178e[_0xafe0('0x36')];_0x4e691c++){if(_0xafe0('0x107')==_0x596910&&_0x2a178e[_0x4e691c][_0xafe0('0x2e')]||_0xafe0('0x2e')==_0x596910&&_0x2a178e[_0x4e691c][_0xafe0('0x107')])continue;if('text'==_0x2a178e[_0x4e691c]['type']){_0x2a178e[_0x4e691c][_0xafe0('0x43')]=0x0;continue;}const _0x38dab2=_0x4167d4[_0xafe0('0x1f')](_0x2a178e[_0x4e691c][_0xafe0('0xbe')]),_0x4d1ab4=_0x4167d4['get'](_0x2a178e[_0x4e691c]['id']);_0x2a178e[_0x4e691c][_0xafe0('0x43')]=_0x38dab2-_0x4d1ab4;}}[_0xafe0('0x6d')](_0x387e15,_0x58a47f,_0x5a19e4=!0x1){const _0xbd2462=[];let _0x5bc0ce=this[_0xafe0('0x68')][_0xafe0('0x1d')](_0x387e15),_0x57068f=this[_0xafe0('0x68')]['getIndex'](_0x58a47f);for(-0x1==_0x57068f&&(_0x57068f=this[_0xafe0('0x68')][_0xafe0('0xc7')][_0xafe0('0x36')],_0x5a19e4=!0x1);_0x5bc0ce<_0x57068f;)_0xbd2462[_0xafe0('0x7b')](this['repository'][_0xafe0('0xeb')](_0x5bc0ce)),_0x5bc0ce++;return _0x5a19e4&&_0xbd2462['push'](this[_0xafe0('0x68')]['getRevision'](_0x5bc0ce)),_0xbd2462;}[_0xafe0('0xd9')](_0xec1193,_0x3621be,_0x393f63,_0x49ab42){const _0x16aa87=this['editor'][_0xafe0('0xa')][_0xafe0('0xe5')];let _0x4849ca=_0x3621be;for(;_0xec1193[_0x4849ca]&&_0xec1193[_0x4849ca]['isAdded'];)_0x4849ca++;let _0x2356a4=_0x49ab42;for(;_0x393f63[_0x2356a4]&&_0x393f63[_0x2356a4]['isRemoved'];)_0x2356a4++;_0x37a319(_0xec1193,_0x3621be,_0x4849ca),_0x37a319(_0x393f63,_0x49ab42,_0x2356a4);const _0x42f185=_0x393f63[_0xafe0('0x105')](_0x49ab42,_0x2356a4)[_0xafe0('0xb2')](_0xec1193[_0xafe0('0x105')](_0x3621be,_0x4849ca));return _0x42f185['sort']((_0x167368,_0x370080)=>_0x167368[_0xafe0('0x42')]!=_0x370080['side']?_0x167368[_0xafe0('0x42')]-_0x370080[_0xafe0('0x42')]:_0x167368[_0xafe0('0x69')]!=_0x370080[_0xafe0('0x69')]?_0x167368[_0xafe0('0x69')]-_0x370080[_0xafe0('0x69')]:_0x167368[_0xafe0('0x43')]!=_0x370080[_0xafe0('0x43')]?_0x370080[_0xafe0('0x43')]-_0x167368[_0xafe0('0x43')]:!!_0x167368[_0xafe0('0x2e')]!=!!_0x370080[_0xafe0('0x2e')]?-0x1==_0x167368[_0xafe0('0x42')]||0x0==_0x167368['side']?_0x167368[_0xafe0('0x2e')]?-0x1:0x1:_0x167368['isAdded']?0x1:-0x1:_0x167368['index']-_0x370080[_0xafe0('0xde')]),{'commonTape':_0x42f185,'iEnd':_0x4849ca,'jEnd':_0x2356a4};function _0x37a319(_0x1b849a,_0xcb844c,_0x4eb006){let _0x24d2eb=-0x1,_0x484445=Number[_0xafe0('0xff')],_0x2e3690=!0x0;for(let _0x3cae16=_0xcb844c;_0x3cae16<_0x4eb006;_0x3cae16++)if(_0x16aa87[_0xafe0('0x29')](_0x1b849a[_0x3cae16][_0xafe0('0x63')])||(_0x2e3690=!0x1),_0x1b849a[_0x3cae16]['item'][_0xafe0('0x38')]<_0xcb844c&&(_0x24d2eb=_0x3cae16),_0x1b849a[_0x3cae16][_0xafe0('0x63')][_0xafe0('0x8e')]>=_0x4eb006){_0x484445=_0x3cae16;break;}_0x2e3690&&(_0x24d2eb=_0x4eb006-0x1);for(let _0x5d2b79=_0xcb844c;_0x5d2b79<_0x4eb006;_0x5d2b79++)_0x1b849a[_0x5d2b79][_0xafe0('0x42')]=_0x5d2b79<=_0x24d2eb?-0x1:_0x5d2b79<_0x484445?0x0:0x1,_0x1b849a[_0x5d2b79][_0xafe0('0xde')]=_0x5d2b79;let _0x2b519d=0x0;for(let _0x18ff33=_0xcb844c;_0x18ff33<=_0x24d2eb;_0x18ff33++)0x0==_0x1b849a[_0x18ff33][_0xafe0('0x43')]?_0x1b849a[_0x18ff33][_0xafe0('0x69')]=_0x2b519d:(_0x2b519d++,_0x1b849a[_0x18ff33][_0xafe0('0x69')]=_0x2b519d,_0x2b519d++);for(let _0x1755f5=_0xcb844c;_0x1755f5<_0x4eb006;_0x1755f5++)0x0==_0x1b849a[_0x1755f5][_0xafe0('0x42')]&&(_0x1b849a[_0x1755f5][_0xafe0('0x69')]=_0x2b519d);_0x2b519d=0x0;for(let _0x1857e7=_0x4eb006-0x1;_0x1857e7>=_0x484445;_0x1857e7--)0x0==_0x1b849a[_0x1857e7]['distance']?_0x1b849a[_0x1857e7][_0xafe0('0x69')]=_0x2b519d:(_0x2b519d--,_0x1b849a[_0x1857e7][_0xafe0('0x69')]=_0x2b519d,_0x2b519d--);}}['_fixObsoleteTags'](_0x7d6339){const _0x4bb153=new Map(),_0x5485a5=this[_0xafe0('0x102')][_0xafe0('0xa')][_0xafe0('0xe5')];for(let _0x127c53=0x1;_0x127c53<_0x7d6339[_0xafe0('0x36')];_0x127c53++){let _0x3c5607,_0x4f30f2,_0xc1f482;const _0x2cdd54=_0x7d6339[_0x127c53],_0x227de0=_0x7d6339[_0x127c53-0x1];if(_0xafe0('0x0')==_0x2cdd54[_0xafe0('0xd2')])continue;if(_0x2cdd54[_0xafe0('0xd2')]!=_0x227de0[_0xafe0('0xd2')])continue;if(!_0x5485a5[_0xafe0('0x40')](_0x227de0[_0xafe0('0x63')])||_0x5485a5[_0xafe0('0xb0')](_0x227de0[_0xafe0('0x63')]))continue;if(!_0x5485a5[_0xafe0('0x40')](_0x2cdd54['item'])||_0x5485a5[_0xafe0('0xb0')](_0x2cdd54[_0xafe0('0x63')]))continue;if((_0x7d6339[_0x127c53]['isAdded']||_0x7d6339[_0x127c53]['isAddSuggestion'])&&_0x7d6339[_0x127c53-0x1][_0xafe0('0x107')])_0x3c5607=_0x7d6339[_0x127c53],_0x4f30f2=_0x7d6339[_0x127c53-0x1],_0xc1f482=_0x127c53-0x1;else{if(!_0x7d6339[_0x127c53][_0xafe0('0x107')]||!_0x7d6339[_0x127c53-0x1][_0xafe0('0x2e')]&&!_0x7d6339[_0x127c53-0x1][_0xafe0('0x5e')])continue;_0x3c5607=_0x7d6339[_0x127c53-0x1],_0x4f30f2=_0x7d6339[_0x127c53],_0xc1f482=_0x127c53;}const _0x51432e=_0x3c5607['level']==_0x4f30f2[_0xafe0('0x69')],_0x3d48a9=Math[_0xafe0('0xf6')](_0x3c5607[_0xafe0('0x69')])<Math[_0xafe0('0xf6')](_0x4f30f2['level'])&&0x0==_0x4f30f2[_0xafe0('0x43')];(_0x51432e||_0x3d48a9)&&(_0x4bb153[_0xafe0('0x100')](_0x4f30f2['id'],_0x3c5607['id']),_0x7d6339['splice'](_0xc1f482,0x1),_0x127c53--,_0x3c5607[_0xafe0('0x2e')]=!0x1);}for(let _0x2fa19d=0x0;_0x2fa19d<_0x7d6339['length'];_0x2fa19d++)_0x4bb153[_0xafe0('0x47')](_0x7d6339[_0x2fa19d][_0xafe0('0xbe')])&&(_0x7d6339[_0x2fa19d][_0xafe0('0xbe')]=_0x4bb153[_0xafe0('0x1f')](_0x7d6339[_0x2fa19d][_0xafe0('0xbe')]));}[_0xafe0('0x6f')](_0x23cc9f){const _0x3212ec=new Set(_0x23cc9f[_0xafe0('0x115')](_0x36a9ef=>_0x36a9ef['id']));for(let _0x22c87f=0x0;_0x22c87f<_0x23cc9f[_0xafe0('0x36')];_0x22c87f++)_0x3212ec[_0xafe0('0x47')](_0x23cc9f[_0x22c87f]['pairId'])||0x0==_0x23cc9f[_0x22c87f]['distance']||(_0x23cc9f[_0x22c87f][_0xafe0('0x9d')]=!0x0);return _0x23cc9f[_0xafe0('0x6e')](_0x3d64ea=>!_0x3d64ea[_0xafe0('0x9d')]);}[_0xafe0('0x7d')](_0x2366f8){const _0x17d08f=new Set();for(let _0x2cbf33=0x0;_0x2cbf33<_0x2366f8[_0xafe0('0x36')];_0x2cbf33++){if(_0x17d08f[_0xafe0('0x47')](_0x2366f8[_0x2cbf33]['id'])&&_0x2366f8[_0x2cbf33][_0xafe0('0x107')]&&(_0x2366f8[_0x2cbf33]['isIncorrect']=!0x0),_0x2366f8[_0x2cbf33][_0xafe0('0x9d')])continue;if(0x0==_0x2366f8[_0x2cbf33][_0xafe0('0x43')])continue;if(_0xafe0('0xee')!=_0x2366f8[_0x2cbf33][_0xafe0('0xd2')])continue;if(null==_0x2366f8[_0x2cbf33][_0xafe0('0xbe')])continue;let _0x268cb5=_0x2cbf33+0x1,_0x4a847a=0x0;for(;_0x2366f8[_0x268cb5]['id']!=_0x2366f8[_0x2cbf33][_0xafe0('0xbe')];)_0xafe0('0xee')==_0x2366f8[_0x268cb5][_0xafe0('0xd2')]?_0x4a847a++:_0xafe0('0xac')==_0x2366f8[_0x268cb5]['type']&&_0x4a847a--,_0x268cb5++;if(0x0!=_0x4a847a){if(_0x2366f8[_0x2cbf33][_0xafe0('0x107')])_0x2366f8[_0x2cbf33]['isIncorrect']=!0x0;else for(;_0x268cb5!=_0x2cbf33;)_0x2366f8[_0x268cb5][_0xafe0('0x107')]&&0x0!=_0x2366f8[_0x268cb5][_0xafe0('0x43')]&&(_0x2366f8[_0x268cb5][_0xafe0('0x9d')]=!0x0,_0x17d08f['add'](_0x2366f8[_0x268cb5][_0xafe0('0xbe')])),_0x268cb5--;}}return _0x2366f8[_0xafe0('0x6e')](_0x16520f=>!_0x16520f[_0xafe0('0x9d')]);}[_0xafe0('0x22')](_0x383cbb){const _0x16ebdb=this['editor'][_0xafe0('0xa')][_0xafe0('0xe5')];for(let _0x4ef512=0x0;_0x4ef512<_0x383cbb[_0xafe0('0x36')];_0x4ef512++){if(!(_0x383cbb[_0x4ef512]['isAdded']||_0x383cbb[_0x4ef512]['isAddSuggestion']||_0x383cbb[_0x4ef512]['isRemoved']||_0x383cbb[_0x4ef512][_0xafe0('0x96')]))continue;if(0x0==_0x383cbb[_0x4ef512][_0xafe0('0x43')])continue;const _0x46ff5c=_0x383cbb[_0x4ef512][_0xafe0('0x63')];_0x16ebdb[_0xafe0('0x40')](_0x46ff5c)||_0x16ebdb[_0xafe0('0xb0')](_0x46ff5c)||(_0x383cbb[_0x4ef512]['isAdded']&&delete _0x383cbb[_0x4ef512]['isAdded'],_0x383cbb[_0x4ef512][_0xafe0('0x5e')]&&delete _0x383cbb[_0x4ef512][_0xafe0('0x5e')],_0x383cbb[_0x4ef512][_0xafe0('0x96')]&&delete _0x383cbb[_0x4ef512][_0xafe0('0x96')],_0x383cbb[_0x4ef512][_0xafe0('0x107')]&&(_0x383cbb[_0x4ef512][_0xafe0('0x9d')]=!0x0));}return _0x383cbb[_0xafe0('0x6e')](_0x562fbf=>!_0x562fbf[_0xafe0('0x9d')]);}[_0xafe0('0x58')](_0x1607c7,_0x4bf76f,_0x2a572f){const _0x4f2b4=new _0x1aa534(),_0x176f5c=[],_0x212d74=new Map(),_0x13192c=this[_0xafe0('0x102')][_0xafe0('0xa')],_0x1d9aac=_0x13192c[_0xafe0('0xe5')],_0x243c32=[_0x4f2b4],_0x3e5d7c={},_0xead95d={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5dcb69=null;const _0x4b7263=[0x0];for(let _0x33037d=0x0;_0x33037d<_0x1607c7[_0xafe0('0x36')];_0x33037d++){let _0x3184d2,_0x34e66d;if(_0xafe0('0xee')===_0x1607c7[_0x33037d]['type']){_0x3184d2=_0x13192c[_0xafe0('0xb7')](_0x4f2b4,_0x4b7263);const _0x989be0=new _0x4f99d2(_0x1607c7[_0x33037d][_0xafe0('0x63')]['name'],_0x1607c7[_0x33037d][_0xafe0('0x63')][_0xafe0('0x83')]());_0x243c32[0x0][_0xafe0('0x10d')](_0x989be0),_0x4b7263[_0xafe0('0x7b')](0x0),_0x243c32['unshift'](_0x989be0),_0x34e66d=_0x13192c[_0xafe0('0xb7')](_0x4f2b4,_0x4b7263),_0x5dcb69=null;}else{if('elementEnd'===_0x1607c7[_0x33037d][_0xafe0('0xd2')])_0x243c32[_0xafe0('0x91')](),_0x3184d2=_0x13192c['createPositionFromPath'](_0x4f2b4,_0x4b7263),_0x4b7263['pop'](),_0x4b7263[_0x4b7263[_0xafe0('0x36')]-0x1]++,_0x34e66d=_0x13192c['createPositionFromPath'](_0x4f2b4,_0x4b7263),_0x5dcb69=null;else{if(_0x3184d2=_0x13192c[_0xafe0('0xb7')](_0x4f2b4,_0x4b7263),_0x5dcb69&&_0xcb86a(_0x5dcb69,_0x1607c7[_0x33037d][_0xafe0('0x63')]))_0x5dcb69[_0xafe0('0x64')]+=_0x1607c7[_0x33037d][_0xafe0('0x63')][_0xafe0('0x30')];else{const _0x412594=new _0x1c85de(_0x1607c7[_0x33037d][_0xafe0('0x63')][_0xafe0('0x30')],_0x1607c7[_0x33037d][_0xafe0('0x63')][_0xafe0('0x83')]());_0x243c32[0x0]['_appendChild'](_0x412594),_0x5dcb69=_0x412594;}_0x4b7263[_0x4b7263['length']-0x1]+=_0x1607c7[_0x33037d][_0xafe0('0x63')]['offsetSize'],_0x34e66d=_0x13192c[_0xafe0('0xb7')](_0x4f2b4,_0x4b7263);}}for(const _0x128bdd of _0x1607c7[_0x33037d][_0xafe0('0xef')])_0x212d74[_0xafe0('0x100')](_0x128bdd,{'start':_0x3184d2,'end':null});_0x31b625(_0xafe0('0x96'),_0x33037d,_0x3184d2,_0x34e66d),_0x31b625(_0xafe0('0x5e'),_0x33037d,_0x3184d2,_0x34e66d),_0x31b625(_0xafe0('0x107'),_0x33037d,_0x3184d2,_0x34e66d),_0x31b625(_0xafe0('0x2e'),_0x33037d,_0x3184d2,_0x34e66d);for(const _0x228848 of _0x1607c7[_0x33037d][_0xafe0('0x1e')]){_0x212d74[_0xafe0('0x1f')](_0x228848)[_0xafe0('0xb8')]=_0x34e66d;}}for(const [_0x49daf9,_0x281971]of _0x212d74){const _0x1beada=this['editor'][_0xafe0('0xa')]['createRange'](_0x281971[_0xafe0('0x56')],_0x281971['end']);_0x4f2b4[_0xafe0('0xed')][_0xafe0('0x100')](_0x49daf9,_0x1beada);}return _0x176f5c[_0xafe0('0x3e')]((_0x5e08ae,_0xea9ed5)=>{const _0x1a944c=_0x4f2b4[_0xafe0('0xed')][_0xafe0('0x1f')]('revision:'+_0x5e08ae['id']),_0x303d6f=_0x4f2b4[_0xafe0('0xed')][_0xafe0('0x1f')](_0xafe0('0x59')+_0xea9ed5['id']);return _0x1a944c[_0xafe0('0x56')]['isBefore'](_0x303d6f[_0xafe0('0x56')])?-0x1:_0x1a944c[_0xafe0('0x56')][_0xafe0('0x5c')](_0x303d6f[_0xafe0('0x56')])?0x1:_0x1a944c['end'][_0xafe0('0x7f')](_0x303d6f[_0xafe0('0xb8')])?-0x1:_0x1a944c['end'][_0xafe0('0x5c')](_0x303d6f[_0xafe0('0xb8')])?0x1:_0xafe0('0x13')===_0x5e08ae['type']?-0x1:0x1;}),{'root':_0x4f2b4,'changes':_0x176f5c};function _0x31b625(_0x166712,_0xafe16c,_0x574706,_0x32c73e){const _0x40fde8=!!_0x1607c7[_0xafe16c][_0x166712],_0x48ca5f=_0x40fde8?_0x1607c7[_0xafe16c][_0x166712][_0xafe0('0x10f')]:null,_0x41a061=_0xafe16c===_0x1607c7[_0xafe0('0x36')]-0x1,_0x152306=_0xead95d[_0x166712][0x0],_0x5c293b=_0x1d9aac[_0xafe0('0xec')](_0x1607c7[_0xafe16c][_0xafe0('0x63')]);!_0x3e5d7c[_0x166712]&&_0x40fde8?_0x3e5d7c[_0x166712]={'start':_0x574706,'tapeItem':_0x1607c7[_0xafe16c],'userId':_0x48ca5f,'type':_0x166712}:_0x3e5d7c[_0x166712]&&!_0x40fde8?(_0x3e5d7c[_0x166712][_0xafe0('0xb8')]=_0x574706,_0x3438b1(_0x3e5d7c[_0x166712]),_0x3e5d7c[_0x166712]=null):_0x3e5d7c[_0x166712]&&_0x40fde8&&_0x3e5d7c[_0x166712][_0xafe0('0x10f')]!==_0x48ca5f&&(_0x3e5d7c[_0x166712][_0xafe0('0xb8')]=_0x574706,_0x152306&&_0x152306[_0xafe0('0x10f')]===_0x3e5d7c[_0x166712][_0xafe0('0x10f')]||_0x3438b1(_0x3e5d7c[_0x166712]),_0x3e5d7c[_0x166712]={'start':_0x574706,'tapeItem':_0x1607c7[_0xafe16c],'userId':_0x48ca5f,'type':_0x166712}),_0x3e5d7c[_0x166712]&&_0x5c293b&&('elementStart'!==_0x1607c7[_0xafe16c]['type']||_0x152306&&_0x152306[_0xafe0('0x10f')]===_0x48ca5f||_0xead95d[_0x166712]['unshift']({'userId':_0x48ca5f,'object':_0x1607c7[_0xafe16c][_0xafe0('0x63')],'change':_0x3e5d7c[_0x166712]}),_0xafe0('0xac')===_0x1607c7[_0xafe16c][_0xafe0('0xd2')]&&_0x152306&&_0x152306['object']===_0x1607c7[_0xafe16c][_0xafe0('0x63')]&&(_0xead95d[_0x166712][_0xafe0('0x91')](),_0x3e5d7c[_0x166712]=_0x152306['change'])),_0x3e5d7c[_0x166712]&&_0x41a061&&(_0x3e5d7c[_0x166712]['end']=_0x32c73e,_0x3438b1(_0x3e5d7c[_0x166712]),_0x3e5d7c[_0x166712]=null);}function _0x3438b1({start:_0xfbd38b,end:_0x15adda,tapeItem:_0x39b729,userId:_0x10d681,type:_0x3650de}){const _0x2ef899=_0x39b729[_0xafe0('0x63')],_0x5c8e9e=_0x13192c[_0xafe0('0xe5')][_0xafe0('0x40')](_0x2ef899)&&!_0x13192c[_0xafe0('0xe5')][_0xafe0('0xb0')](_0x2ef899),_0x41aacb=_0xfbd38b[_0xafe0('0x31')]==_0x15adda[_0xafe0('0x4e')]&&_0x15adda[_0xafe0('0xdf')];if(_0x5c8e9e&&_0x41aacb)return;const _0x182f4c=_0x13192c[_0xafe0('0xd7')](_0xfbd38b,_0x15adda),_0x450eab=_0x4bf76f[_0xafe0('0x1f')](_0x10d681),_0x54409a=new _0x5a441c({'author':_0x450eab,'type':_0xafe0('0x2e')==_0x3650de||'isAddSuggestion'==_0x3650de?_0xafe0('0x13'):_0xafe0('0xae'),'data':{'isSuggestion':_0xafe0('0x5e')==_0x3650de||_0xafe0('0x96')==_0x3650de},'createdAt':new Date(),'rootName':_0x2a572f});_0x176f5c[_0xafe0('0x7b')](_0x54409a),_0x4f2b4[_0xafe0('0xed')][_0xafe0('0x100')]('revision:'+_0x54409a['id'],_0x182f4c);}function _0xcb86a(_0x150436,_0x372398){const _0x5a1f13=_0x150436['getAttributes'](),_0x25aa76=_0x372398[_0xafe0('0x83')]();for(const _0x4bbfab of _0x5a1f13){if(_0x4bbfab[0x1]!==_0x372398['getAttribute'](_0x4bbfab[0x0]))return!0x1;_0x25aa76[_0xafe0('0xc0')]();}return _0x25aa76[_0xafe0('0xc0')]()[_0xafe0('0x120')];}}[_0xafe0('0xbc')](){this[_0xafe0('0x102')]['conversion'][_0xafe0('0xbb')]('upcast')[_0xafe0('0xf0')]({'view':_0xafe0('0x119')}),this[_0xafe0('0x102')]['conversion'][_0xafe0('0xbb')]('editingDowncast')[_0xafe0('0xf9')]({'model':_0xafe0('0x119'),'view':_0x167b6e=>{const _0x4caa67=_0x167b6e['markerName']['split'](':')[0x1],_0x3fead8=this[_0xafe0('0xfb')](_0x4caa67);if(!_0x3fead8)return null;const _0x4b3587='add'==_0x3fead8['type']?_0xafe0('0x85'):'deletion',_0x48384d=[_0xafe0('0x48'),_0xafe0('0xea')+_0x4b3587];return _0x3fead8['data'][_0xafe0('0x61')]&&_0x48384d['push'](_0xafe0('0xea')+_0x4b3587+_0xafe0('0xe9')),this[_0xafe0('0xb5')]==_0x3fead8&&_0x48384d[_0xafe0('0x7b')](_0xafe0('0xcc')),{'classes':_0x48384d,'attributes':{'data-change-id':_0x4caa67}};}}),this[_0xafe0('0x102')][_0xafe0('0x51')]['for']('upcast')[_0xafe0('0x13')](_0x46c19d=>{_0x46c19d['on'](_0xafe0('0x106'),(_0x419c5f,_0x461942,_0x799234)=>{const _0x178675=_0x461942[_0xafe0('0x9')][_0xafe0('0x19')](0x0);if(!_0x178675||!_0x178675['is']('element',_0xafe0('0xa5')))return;if(!_0x799234['consumable']['consume'](_0x178675,{'attributes':[_0xafe0('0x109'),_0xafe0('0x94')]}))return;const _0x2e76af=_0x461942[_0xafe0('0xa3')][_0xafe0('0x56')][_0xafe0('0x31')];_0x799234[_0xafe0('0xb3')]['setAttribute'](_0xafe0('0x109'),_0x178675[_0xafe0('0x41')](_0xafe0('0x109')),_0x2e76af),_0x799234[_0xafe0('0xb3')]['setAttribute'](_0xafe0('0x94'),_0x178675[_0xafe0('0x41')](_0xafe0('0x94')),_0x2e76af);},{'priority':'low'});}),this[_0xafe0('0x102')][_0xafe0('0x51')][_0xafe0('0xbb')]('upcast')[_0xafe0('0x13')](_0x17b723=>{_0x17b723['on'](_0xafe0('0x9a'),(_0x37fc55,_0x141304,_0x5da3e9)=>{if(!_0x5da3e9['consumable'][_0xafe0('0x89')](_0x141304[_0xafe0('0x9')],{'attributes':[_0xafe0('0x109'),_0xafe0('0x94')]}))return;if(_0x141304['modelRange'][_0xafe0('0x72')])return;const _0x31b99e=_0x141304['modelRange']['start'][_0xafe0('0x31')];_0x31b99e['hasAttribute'](_0xafe0('0x109'))||_0x31b99e[_0xafe0('0x2')](_0xafe0('0x84'))||(_0x5da3e9[_0xafe0('0xb3')][_0xafe0('0xfd')](_0xafe0('0x109'),_0x141304['viewItem'][_0xafe0('0x41')](_0xafe0('0x109')),_0x31b99e),_0x5da3e9[_0xafe0('0xb3')][_0xafe0('0xfd')](_0xafe0('0x94'),_0x141304[_0xafe0('0x9')][_0xafe0('0x41')](_0xafe0('0x94')),_0x31b99e));},{'priority':_0xafe0('0xa9')});}),this[_0xafe0('0x102')][_0xafe0('0x51')][_0xafe0('0xbb')](_0xafe0('0x6c'))[_0xafe0('0xe4')]({'view':{'name':_0xafe0('0x39'),'attributes':{'vid':!0x0}},'model':{'key':_0xafe0('0x84'),'value':_0x336ac3=>_0x336ac3['getAttribute'](_0xafe0('0x84'))}}),this[_0xafe0('0x102')][_0xafe0('0xa')][_0xafe0('0xe5')]['on']('checkAttribute',(_0x2469e6,[,_0xbb914d])=>{[_0xafe0('0x109'),_0xafe0('0x94'),_0xafe0('0x84')][_0xafe0('0xaa')](_0xbb914d)&&(_0x2469e6[_0xafe0('0xa0')]=!0x0,_0x2469e6['stop']());},{'priority':_0xafe0('0x10')}),this[_0xafe0('0x102')][_0xafe0('0x51')]['for'](_0xafe0('0x103'))[_0xafe0('0x13')](_0xc9f31=>{_0xc9f31['on'](_0xafe0('0xf8'),(_0x195e56,_0x826bb0,_0x56520b)=>{if('\x20'!=_0x826bb0[_0xafe0('0x63')][_0xafe0('0x30')]||_0x826bb0[_0xafe0('0x63')][_0xafe0('0x4e')][_0xafe0('0xa2')]>0x1)return;if(!_0x56520b[_0xafe0('0x4b')][_0xafe0('0x89')](_0x826bb0['item'],_0x195e56[_0xafe0('0x7a')]))return;const _0x54e102=_0x56520b['writer'],_0x56cfd2=_0x56520b['mapper'][_0xafe0('0x3b')](_0x826bb0[_0xafe0('0xf1')]);_0x54e102['wrap'](_0x56cfd2,_0x54e102[_0xafe0('0x21')](_0xafe0('0x39')));});}),this['editor'][_0xafe0('0x51')][_0xafe0('0xbb')](_0xafe0('0x103'))['markerToData']({'model':_0xafe0('0x119')}),this[_0xafe0('0x102')][_0xafe0('0xbf')][_0xafe0('0x57')]['on']('addMarker:revision',function(_0x5c67c1){const _0x35c9ff=_0x5c67c1[_0xafe0('0xe8')][_0xafe0('0x1f')](_0xafe0('0x9b'));return(_0x48bb18,_0x222cdc,_0x43e9b8)=>{const _0x426c9a=_0x222cdc['markerName'][_0xafe0('0x50')](':')[0x1],_0x278873=_0x35c9ff[_0xafe0('0xfb')](_0x426c9a);if(!_0x278873)return null;const _0x1fd3a5='add'==_0x278873[_0xafe0('0xd2')]?_0xafe0('0x50'):_0xafe0('0xab');if(!_0x43e9b8['consumable']['test'](_0x222cdc[_0xafe0('0x11')],_0x48bb18[_0xafe0('0x7a')]))return;const _0x3cf10c=_0x222cdc['markerRange'][_0xafe0('0x101')](),_0x103c54=_0x222cdc[_0xafe0('0x11')][_0xafe0('0x56')],_0x43bb94=_0x5c67c1[_0xafe0('0xa')][_0xafe0('0xe5')];let _0x450ce7=null,_0x2cd8a8=null,_0x4623d4=!0x1,_0x489afa=!0x1;for(const _0x42d45b of _0x3cf10c){const _0x3184ec=_0x42d45b['item'];_0x4623d4=_0x4623d4||_0x43bb94['isContent'](_0x3184ec);const _0x144d9f=_0x43e9b8[_0xafe0('0x52')][_0xafe0('0xe3')](_0x3184ec);if(_0x144d9f&&_0x144d9f[_0xafe0('0xa7')](_0xafe0('0x4d')))return;_0xafe0('0xac')==_0x42d45b[_0xafe0('0xd2')]&&(_0x43bb94[_0xafe0('0x40')](_0x3184ec)&&!_0x43bb94[_0xafe0('0xb0')](_0x3184ec)&&(_0x3184ec['nextSibling']||_0x103c54[_0xafe0('0xd0')]?_0x450ce7&&_0x450ce7[_0xafe0('0x4e')]==_0x3184ec||(_0x450ce7=_0x3184ec,_0x2b67b8(_0x42d45b['previousPosition']),_0x489afa=!0x0):_0x2cd8a8=_0x2cd8a8||_0x42d45b[_0xafe0('0x3d')]));}function _0x2b67b8(_0x202ff7){const _0xc1c10=_0x43e9b8[_0xafe0('0xb3')][_0xafe0('0x2c')](_0xafe0('0x39'),{'class':_0xafe0('0xea')+_0x1fd3a5}),_0x50fabc=_0x43e9b8[_0xafe0('0x52')]['toViewPosition'](_0x202ff7);_0x278873[_0xafe0('0x30')]['isSuggestion']&&_0x43e9b8['writer'][_0xafe0('0xce')]('ck-suggestion-marker-'+_0x1fd3a5+_0xafe0('0xe9'),_0xc1c10),_0x35c9ff['activeChange']==_0x278873&&_0x43e9b8[_0xafe0('0xb3')][_0xafe0('0xce')](_0xafe0('0xcc'),_0xc1c10),_0x43e9b8[_0xafe0('0xb3')][_0xafe0('0x6a')](_0x50fabc,_0xc1c10),_0x43e9b8[_0xafe0('0x52')][_0xafe0('0x8d')](_0xc1c10,_0x222cdc[_0xafe0('0xd6')]);}_0x4623d4||_0x489afa||!_0x2cd8a8||_0x2b67b8(_0x2cd8a8);};}(this[_0xafe0('0x102')]),{'priority':'high'}),this[_0xafe0('0x102')][_0xafe0('0xbf')][_0xafe0('0x57')]['on'](_0xafe0('0x10b'),(_0x476764,_0xffb2d,_0xd4d85e)=>{const _0x33c9cf=_0xd4d85e[_0xafe0('0x52')]['markerNameToElements'](_0xffb2d[_0xafe0('0xd6')]);if(_0x33c9cf)for(const _0x58082b of _0x33c9cf)(_0x58082b[_0xafe0('0xe7')](_0xafe0('0x92'))||_0x58082b[_0xafe0('0xe7')]('ck-suggestion-marker-merge'))&&(_0xd4d85e[_0xafe0('0x52')][_0xafe0('0xf2')](_0x58082b,_0xffb2d['markerName']),_0xd4d85e[_0xafe0('0xb3')][_0xafe0('0xae')](_0x58082b));},{'priority':_0xafe0('0x122')}),this[_0xafe0('0x102')][_0xafe0('0xbf')][_0xafe0('0x57')]['on'](_0xafe0('0x67'),(_0x1c4b99,_0x383618,_0x3dcfde)=>{const _0x68eb90=_0x383618['markerName']['split'](':')[0x1],_0x14d799=this[_0xafe0('0xfb')](_0x68eb90);if(!_0x14d799)return null;const _0x3b61e4='add'==_0x14d799['type']?_0xafe0('0x50'):_0xafe0('0xab');if(_0x3dcfde[_0xafe0('0x4b')][_0xafe0('0x5')](_0x383618['markerRange'],_0x1c4b99[_0xafe0('0x7a')]))for(const _0x160887 of _0x383618[_0xafe0('0x11')][_0xafe0('0x8b')]()){if(!_0x160887['is'](_0xafe0('0x9a'),_0xafe0('0x34')))continue;const _0x3aea4e=_0x3dcfde[_0xafe0('0xb3')][_0xafe0('0x2c')](_0xafe0('0x39'),{'class':'ck-suggestion-marker-'+_0x3b61e4}),_0x48c489=_0x3dcfde[_0xafe0('0x52')][_0xafe0('0xd5')](this[_0xafe0('0x102')]['model'][_0xafe0('0xd8')](_0x160887));_0x14d799[_0xafe0('0x30')][_0xafe0('0x61')]&&_0x3dcfde[_0xafe0('0xb3')][_0xafe0('0xce')](_0xafe0('0xea')+_0x3b61e4+_0xafe0('0xe9'),_0x3aea4e),this[_0xafe0('0xb5')]==_0x14d799&&_0x3dcfde[_0xafe0('0xb3')][_0xafe0('0xce')](_0xafe0('0xcc'),_0x3aea4e),_0x3dcfde['writer'][_0xafe0('0x6a')](_0x48c489,_0x3aea4e),_0x3dcfde[_0xafe0('0x52')][_0xafe0('0x8d')](_0x3aea4e,_0x383618[_0xafe0('0xd6')]);}},{'priority':_0xafe0('0x122')}),this['editor']['model'][_0xafe0('0xa1')]['on'](_0xafe0('0xb6'),()=>{this[_0xafe0('0x102')][_0xafe0('0xbf')][_0xafe0('0x5a')][_0xafe0('0xb6')](_0x5e3b4a=>{for(const _0x1db544 of this[_0xafe0('0x102')][_0xafe0('0xa')][_0xafe0('0xa1')][_0xafe0('0x70')]()){const _0x4ce524=this[_0xafe0('0x102')][_0xafe0('0xa')][_0xafe0('0xa1')]['getRoot'](_0x1db544),_0x181b94=this['editor'][_0xafe0('0xbf')][_0xafe0('0x5a')]['document']['getRoot'](_0x1db544);if(_0x181b94){const _0x1ba856=_0x4ce524[_0xafe0('0x41')](_0xafe0('0x88'));if(_0x5e3b4a['removeAttribute'](_0xafe0('0x111'),_0x181b94),_0x5e3b4a[_0xafe0('0x23')](_0xafe0('0x7c'),_0x181b94),_0x5e3b4a[_0xafe0('0x23')](_0xafe0('0x66'),_0x181b94),_0x5e3b4a['removeClass'](_0xafe0('0x53'),_0x181b94),_0x1ba856){const _0x130d8f=this['_getChangeFromId'](_0x1ba856);if(!_0x130d8f)return null;_0x5e3b4a[_0xafe0('0xfd')](_0xafe0('0x111'),_0x1ba856,_0x181b94),_0x5e3b4a[_0xafe0('0xce')]('ck-revision-history-root-'+_0x130d8f[_0xafe0('0xd2')],_0x181b94),this['activeChange']==_0x130d8f&&_0x5e3b4a[_0xafe0('0xce')](_0xafe0('0x53'),_0x181b94);}}}});}),this[_0xafe0('0x102')][_0xafe0('0x51')][_0xafe0('0xbb')](_0xafe0('0x6c'))['dataToMarker']({'view':_0xafe0('0x20'),'model':_0x23a9e1=>'revision-comment:'+_0x23a9e1,'converterPriority':_0xafe0('0x10')}),this[_0xafe0('0x102')][_0xafe0('0x51')][_0xafe0('0xbb')](_0xafe0('0x6c'))[_0xafe0('0xf0')]({'view':_0xafe0('0x117'),'model':_0x49ff82=>_0xafe0('0x55')+_0x49ff82,'converterPriority':'highest'}),this[_0xafe0('0x102')][_0xafe0('0x51')][_0xafe0('0xbb')]('dataDowncast')[_0xafe0('0xc2')]({'model':_0xafe0('0x4f'),'view':_0x5e013a=>({'name':'suggestion:'+_0x5e013a,'group':_0xafe0('0x4f')}),'converterPriority':'highest'}),this[_0xafe0('0x102')][_0xafe0('0x51')][_0xafe0('0xbb')](_0xafe0('0x3a'))[_0xafe0('0xf9')]({'model':_0xafe0('0x4f'),'view':_0x30cccc=>{const _0x4ab82d=_0x30cccc[_0xafe0('0xd6')][_0xafe0('0x50')](':')[0x1];return'insertion'!=_0x4ab82d&&_0xafe0('0x90')!=_0x4ab82d?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4ab82d]};}}),this[_0xafe0('0x102')]['editing'][_0xafe0('0x57')]['on'](_0xafe0('0x95'),et(this[_0xafe0('0x102')],_0xafe0('0xab')),{'priority':_0xafe0('0x122')}),this['editor'][_0xafe0('0xbf')]['downcastDispatcher']['on'](_0xafe0('0xa8'),et(this[_0xafe0('0x102')],'split'),{'priority':_0xafe0('0x122')}),this[_0xafe0('0x102')][_0xafe0('0xbf')][_0xafe0('0x57')]['on'](_0xafe0('0xe0'),(_0x52476c,_0x3ece25,_0x2e2cc2)=>{const _0x39e03e=_0x2e2cc2[_0xafe0('0x52')]['markerNameToElements'](_0x3ece25['markerName']);if(_0x39e03e)for(const _0x1006f6 of _0x39e03e)_0x1006f6['is'](_0xafe0('0x76'))&&(_0x2e2cc2[_0xafe0('0x52')][_0xafe0('0xf2')](_0x1006f6,_0x3ece25[_0xafe0('0xd6')]),_0x2e2cc2['writer'][_0xafe0('0xae')](_0x1006f6));},{'priority':'high'});}[_0xafe0('0xfb')](_0x1f6da9){return this[_0xafe0('0xc3')]['get'](_0x1f6da9);}[_0xafe0('0x74')](_0x59db9a){return this['_changeView']&&this[_0xafe0('0xc8')][_0xafe0('0x1b')](),this[_0xafe0('0xc8')]=new _0x3ddc6a(this[_0xafe0('0x102')][_0xafe0('0x17')],_0x59db9a),this[_0xafe0('0xc8')];}[_0xafe0('0x78')](){this[_0xafe0('0x102')][_0xafe0('0xa')][_0xafe0('0xa1')]['selection'][_0xafe0('0x80')](_0xafe0('0x119')),this['on']('change:activeView',(_0x301f76,_0x254416,_0x152298,_0x8273c9)=>{_0x8273c9&&this[_0xafe0('0x8a')]['remove'](_0x8273c9),_0x152298&&(this[_0xafe0('0x8a')][_0xafe0('0x13')]({'view':_0x152298,'stackId':_0xafe0('0x2a'),'position':{'target':()=>{const _0x25a5b3=this[_0xafe0('0x102')][_0xafe0('0xbf')],_0x40418f=this['_getChangeFromId'](_0x152298[_0xafe0('0xbd')]);let _0x41dcc6;if(_0x40418f['data'][_0xafe0('0x98')]){const _0x8b5fef=_0x25a5b3[_0xafe0('0x5a')][_0xafe0('0x81')](_0x40418f['rootName']);_0x41dcc6=Array['from'](_0x8b5fef[_0xafe0('0x11b')]());}else{const _0x5f7328=this['editor'][_0xafe0('0xa')][_0xafe0('0xed')][_0xafe0('0x1f')](_0xafe0('0x59')+_0x152298[_0xafe0('0xbd')]);_0x41dcc6=Array[_0xafe0('0xd3')](_0x25a5b3[_0xafe0('0x52')][_0xafe0('0x118')](_0x5f7328[_0xafe0('0x7a')]))[_0xafe0('0x115')](_0x579b23=>_0x25a5b3['view'][_0xafe0('0x2f')][_0xafe0('0x4c')](_0x579b23))['map'](_0x367c3e=>Array['from'](_0x367c3e['getClientRects']()))[_0xafe0('0x77')]();}if(!this['_activeViewTarget'])return _0x41dcc6[0x0];return _0x41dcc6[_0xafe0('0x121')](_0x34d9cd=>_0x34d9cd[_0xafe0('0x11a')]-0x3<=this[_0xafe0('0x45')]['y']&&_0x34d9cd[_0xafe0('0x49')]+0x3>=this['_activeViewTarget']['y']&&_0x34d9cd[_0xafe0('0x10e')]-0x3<=this[_0xafe0('0x45')]['x']&&_0x34d9cd[_0xafe0('0x5b')]+0x3>=this['_activeViewTarget']['x'])||_0x41dcc6[0x0];}}}),this[_0xafe0('0x8a')]['showStack']('revisionHistoryLabel'));}),this['on'](_0xafe0('0x116'),(_0x2d4f48,_0x3bfbdc,_0x5d0c5d,_0x5159c7)=>{this[_0xafe0('0x73')]=_0x5d0c5d?this[_0xafe0('0x74')](_0x5d0c5d):null,this[_0xafe0('0x102')]['model']['change'](()=>{const _0x5cd0fe=this['editor'][_0xafe0('0xbf')];_0x5159c7&&(_0x5159c7['data'][_0xafe0('0x98')]?_0x5cd0fe[_0xafe0('0x5a')][_0xafe0('0xb6')](_0x428db4=>{_0x428db4[_0xafe0('0x23')](_0xafe0('0x53'),_0x5cd0fe['view'][_0xafe0('0xa1')]['getRoot'](_0x5159c7[_0xafe0('0x86')]));}):_0x5cd0fe[_0xafe0('0x11f')](_0xafe0('0x59')+_0x5159c7['id'])),_0x5d0c5d&&(_0x5d0c5d['data']['isOnRoot']?_0x5cd0fe[_0xafe0('0x5a')][_0xafe0('0xb6')](_0x127a18=>{_0x127a18[_0xafe0('0xce')](_0xafe0('0x53'),_0x5cd0fe['view'][_0xafe0('0xa1')][_0xafe0('0x44')](_0x5d0c5d[_0xafe0('0x86')]));}):_0x5cd0fe[_0xafe0('0x11f')](_0xafe0('0x59')+_0x5d0c5d['id']));});}),this[_0xafe0('0x97')](this[_0xafe0('0x102')][_0xafe0('0xbf')][_0xafe0('0x5a')][_0xafe0('0xa1')],'mouseover',(_0x26254b,_0x335a7f)=>{if(this['activeChange'])return;const _0x234011=this[_0xafe0('0xe6')](_0x335a7f[_0xafe0('0x28')]),_0x5c6393=this['_changeIdToChange'][_0xafe0('0x1f')](_0x234011);_0x5c6393?(this[_0xafe0('0x45')]={'x':_0x335a7f[_0xafe0('0xdd')]['x'],'y':_0x335a7f['domEvent']['y']},this[_0xafe0('0x73')]=this[_0xafe0('0x74')](_0x5c6393)):(this[_0xafe0('0x45')]=null,this[_0xafe0('0x73')]=null);}),this[_0xafe0('0x97')](this['editor'][_0xafe0('0xbf')][_0xafe0('0x5a')][_0xafe0('0xa1')],_0xafe0('0xc6'),(_0x5215ae,_0x5cb2b2)=>{const _0x3587ed=this[_0xafe0('0xe6')](_0x5cb2b2['target']),_0x355466=this[_0xafe0('0xc3')][_0xafe0('0x1f')](_0x3587ed);_0x355466?(this[_0xafe0('0x45')]={'x':_0x5cb2b2[_0xafe0('0xdd')]['x'],'y':_0x5cb2b2[_0xafe0('0xdd')]['y']},_0x355466===this['activeChange']?this['_balloon']['updatePosition']():this[_0xafe0('0xb5')]=_0x355466):(this[_0xafe0('0x45')]=null,this[_0xafe0('0xb5')]=null);});}['_findChangeIdFromDomTarget'](_0x1d22d4){do{const _0x1cc9cf=_0x1d22d4[_0xafe0('0x41')](_0xafe0('0x111'));if(_0x1cc9cf)return _0x1cc9cf;_0x1d22d4=_0x1d22d4[_0xafe0('0x4e')];}while(_0x1d22d4);return null;}[_0xafe0('0x33')](){this['editor'][_0xafe0('0xa')][_0xafe0('0xb6')](_0x2bc7a2=>{for(const _0x146210 of this['editor'][_0xafe0('0xa')]['markers'])_0x2bc7a2[_0xafe0('0x24')](_0x146210);});}}function et(_0x3a2822,_0x109ed7){return(_0x4ad22c,_0x3f2cb9,_0x48041a)=>{if(!_0x48041a['consumable']['test'](_0x3f2cb9[_0xafe0('0x11')],_0x4ad22c[_0xafe0('0x7a')]))return;const _0x217ce9=_0x3f2cb9[_0xafe0('0x11')][_0xafe0('0x101')](),_0x5efad3=_0x3f2cb9[_0xafe0('0x11')][_0xafe0('0x56')],_0x555cbf=_0x3a2822[_0xafe0('0xa')]['schema'];let _0x4fe84b=null,_0x1f255a=null,_0x3754aa=!0x1,_0x48cb7d=!0x1;for(const _0x2eebf3 of _0x217ce9){const _0x5abe57=_0x2eebf3[_0xafe0('0x63')];_0x3754aa=_0x3754aa||_0x555cbf[_0xafe0('0x16')](_0x5abe57);const _0x41ac68=_0x48041a[_0xafe0('0x52')]['toViewElement'](_0x5abe57);if(_0x41ac68&&_0x41ac68['getCustomProperty'](_0xafe0('0x4d')))return;_0xafe0('0xac')==_0x2eebf3[_0xafe0('0xd2')]&&(_0x555cbf[_0xafe0('0x40')](_0x5abe57)&&!_0x555cbf[_0xafe0('0xb0')](_0x5abe57)&&(_0x5abe57[_0xafe0('0xe')]||_0x5efad3['isAtEnd']?_0x4fe84b&&_0x4fe84b[_0xafe0('0x4e')]==_0x5abe57||(_0x4fe84b=_0x5abe57,_0x59fb18(_0x2eebf3['previousPosition']),_0x48cb7d=!0x0):_0x1f255a=_0x1f255a||_0x2eebf3[_0xafe0('0x3d')]));}function _0x59fb18(_0x2be0e4){const _0x5ac6ec=_0x48041a[_0xafe0('0x52')]['toViewPosition'](_0x2be0e4),_0x24dec1=_0x48041a[_0xafe0('0xb3')]['createUIElement'](_0xafe0('0x39'),{'class':_0xafe0('0x5f')+_0x109ed7});_0x48041a[_0xafe0('0xb3')][_0xafe0('0x6a')](_0x5ac6ec,_0x24dec1),_0x48041a[_0xafe0('0x52')]['bindElementToMarker'](_0x24dec1,_0x3f2cb9[_0xafe0('0xd6')]);}_0x3754aa||_0x48cb7d||!_0x1f255a||_0x59fb18(_0x1f255a);};}export class RestoreRevisionCommand extends _0x2b2918{constructor(_0x2accce){super(_0x2accce);const _0x143264=_0x2accce[_0xafe0('0xe8')]['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x143264,_0xafe0('0xaf'),()=>this[_0xafe0('0xf4')]()),this['listenTo'](_0x143264,'change:isEnabled',()=>this[_0xafe0('0xf4')]());}[_0xafe0('0xe2')](){const _0x5f3c49=this[_0xafe0('0x102')],_0x1cb25d=_0x5f3c49[_0xafe0('0xe8')][_0xafe0('0x1f')](d),_0x28a00e=_0x1cb25d[_0xafe0('0xe1')]?_0x1cb25d[_0xafe0('0xca')][_0xafe0('0xf3')]:null;_0x5f3c49['config']['get']('revisionHistory')[_0xafe0('0xcb')](_0x28a00e);}[_0xafe0('0xf4')](){const {isReady:_0x1929af,isEnabled:_0x3461f7}=this[_0xafe0('0x102')][_0xafe0('0xe8')][_0xafe0('0x1f')](d);this[_0xafe0('0xda')]=_0x1929af&&_0x3461f7;}}export class ShowChangeCommand extends _0x2b2918{constructor(_0xa8d4d0,{direction:_0x51a1cb}){super(_0xa8d4d0);const _0x43b094=_0xa8d4d0[_0xafe0('0xe8')]['get'](d);this[_0xafe0('0x11d')]=!0x1,this[_0xafe0('0x8')]=_0xafe0('0x10c')===_0x51a1cb?0x1:-0x1,this['listenTo'](_0x43b094,_0xafe0('0xaf'),()=>this[_0xafe0('0xf4')]()),this[_0xafe0('0x97')](_0x43b094,_0xafe0('0xad'),()=>this[_0xafe0('0xf4')]()),this[_0xafe0('0x97')](_0x43b094,_0xafe0('0x116'),()=>this[_0xafe0('0xf4')]());}[_0xafe0('0xe2')](){const _0x151e26=this[_0xafe0('0x102')],_0x313701=_0x151e26['plugins']['get'](d),{isNavigationMode:_0x25760c,currentChangeNumber:_0x53dac4}=_0x313701;let _0x2974f5;if(_0x313701[_0xafe0('0xb5')]=_0x25760c?_0x313701[_0xafe0('0xca')]['changes']['get'](_0x53dac4+this[_0xafe0('0x8')]):_0x313701[_0xafe0('0xca')][_0xafe0('0x11e')][_0xafe0('0xf7')],_0x313701[_0xafe0('0xb5')][_0xafe0('0x30')][_0xafe0('0x98')])_0x2974f5=_0x151e26['editing'][_0xafe0('0x5a')]['getDomRoot'](_0x313701[_0xafe0('0xb5')]['rootName']);else{const _0x6effd3=_0x151e26[_0xafe0('0xa')][_0xafe0('0xed')]['get'](_0xafe0('0x59')+_0x313701[_0xafe0('0xb5')]['id']);_0x2974f5=_0x20865c(_0x151e26['editing'],_0x6effd3);}_0x1260c8({'target':_0x2974f5,'viewportOffset':0x28});}[_0xafe0('0xf4')](){const {isNavigationMode:_0x12645b,currentChangeNumber:_0x462c79,numberOfChanges:_0x385446,isReady:_0x4be042,isEnabled:_0x2fcff6}=this[_0xafe0('0x102')][_0xafe0('0xe8')][_0xafe0('0x1f')](d);this[_0xafe0('0xda')]=!!(_0x2fcff6&&_0x4be042&&_0x385446)&&(!_0x12645b||(0x1===this[_0xafe0('0x8')]?_0x462c79<_0x385446-0x1:_0x462c79>0x0));}}
23
+ const _0x247b=['flat','_markInsertions','isOnRoot','isAfter','isInline','pairId','offsetSize','vid_start','_changeView','restoreRevision','mousedown','addClass','_setChanges','elementEnd','from','ck-suggestion-marker--active','writer','addMarker:revision','getCustomProperty','checkAttribute','createPositionFromPath','config','split','data','ck-editor__editable__overlay','bindElementToMarker','isContent','suggestion:','addRoot','_removeUnsupportedChanges','values','markersEnd','vid_end','high','isAtEnd','item','isAdded','_step','upcast','slice','indexOf','attributes','execute','mapViewToDom','forEach','data-revision-','getAttribute','resolve','detachRoot','affectsData','change:isReady','clear','addRevision','getRootNames','parent','filter','changeId','plugins','forceDisabled','isCollapsed','unshift','_refreshStartEndIndex','modelRange','change:activeView','userId','markerNameToElements','_setConversion','getWalker','remove','_fixObsoleteTags','_removeRevisionMarkers','all','isBlock','_getViewForChange','isLimit','toViewElement','element','bind','map','markers','element:pre','changes','toViewPosition','-new','_getViewObj','insert','selection','consume','splice','_makeModelFromViewString','push','getRevisionData','viewItem','downcastDispatcher','getIndex','error','start','consumable','repository','nextSibling','ck-revision-history-root-','_findChangeIdFromDomTarget','wrap','conversion','model','document','keys','deletion','locale','default','mapper','maxOffset','_update','ck-suggestion-marker-merge','addHighlight','data-change-id','elementStart','markerToData','next','_processTape','revisionHistory','_joinTapes','observeMarkers','diff','object','name','concat','first','createUIElement','_initInteractions','markerToHighlight','_markSuggestions','ck-revision-history-root-remove','processor','delete','RevisionViewer','get','editingDowncast','getClientRects','change','elementToAttribute','ck-suggestion-preview-marker-','index','comment','ck-suggestion-marker-','requires','removeMarker:revision-suggestion','startIndex','WidgetToolbarRepository','revision-comment:','collaboration.channelId','markersStart','ck-revision-history-root-add','isBefore','listenTo','editor','_markMismatchedRemovedTags','span','_makeModelFromTape','attributesAfter','isRemoveSuggestion','_getChangeFromId','schema','type','updatePosition','_markMarkers','pop','useFillerType','hasClass','forward','_setDistance','highest','stop','insertions','enqueueChange','_activeViewTarget','distance','setAttribute','revision-suggestion:','mouseover','test','getRoot','editing','end','isSuggestion','diffData','restoreRevisionCallback','currentChangeNumber','createRevision','enableReadOnlyMode','authors','isAtStart','showNextChange','refresh','isEqual','removeClass','hasAttribute','createAttributeElement','newRevisionId','change:activeChange','isIncorrect','markerName','_balloon','activeChange','revisionHistoryLabel','level','roots','showStack','_cleanUp','set','isReady','_removeMissingPairs','_getRevisionsRange','revision','_makeTape','children','addMarker:revision-suggestion:insertion','parse','isEnabled','startsWith','getChild','right','markerRange','insertion','revision-viewer','init','_appendChild','ck-revision-history-root--active','createRange','sort','bottom','revision:','previousPosition','domConverter','ck-suggestion-preview-marker','_getDiff','isRemoved','rootName','POSITIVE_INFINITY','merge','abs','_changeIdToChange','getRevision','string','getDomRoot','adapter','destroy','text','toViewRange','activeView','_sortAndFilterDiffChanges','_cleanMarkers','pluginName','change:isEnabled','toData','add','oldRevisionId','ck-suggestion-marker','includes','attachChange','view','has','done','nodeAfter','findIndex','loadRevisionData','shift','deletions','endIndex','nextPosition','length','then','for','revision-suggestion','code','left','_data','reconvertMarker','isAddSuggestion','getItems','getAttributes','domEvent','revision-end','dataDowncast','_threeWayMerge','revisionHistoryAttachChange','dataToMarker','side','isAttached','commands'];(function(_0x47dcd7,_0x247b56){const _0x344a07=function(_0x1e1195){while(--_0x1e1195){_0x47dcd7['push'](_0x47dcd7['shift']());}};_0x344a07(++_0x247b56);}(_0x247b,0x192));const _0x344a=function(_0x47dcd7,_0x247b56){_0x47dcd7=_0x47dcd7-0x0;let _0x344a07=_0x247b[_0x47dcd7];return _0x344a07;};import{Plugin as _0x125709,Command as _0x25f1d2}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x273ccb}from'ckeditor5/src/utils';import{ContextualBalloon as _0x1d8589}from'ckeditor5/src/ui';import{DocumentFragment as _0x36fc70,Element as _0x526e46,Text as _0x5b86a7,ViewDocumentFragment as _0x4a90fe,ViewText as _0x59aa6b,ViewElement as _0x3bbedb,ViewContainerElement as _0x1f1c8b,ViewAttributeElement as _0x37172e,ViewEmptyElement as _0x17ed00,ViewRawElement as _0xdb0d64,ViewUIElement as _0xf2892d}from'ckeditor5/src/engine';import{Users as _0x1ab42c,getMarkerDomElement as _0x292d23}from'ckeditor5-collaboration/src/collaboration-core';import _0x365704 from'./ui/revisionviewer/changedetailsview';import _0x26e6fb from'./revisionsrepository';import _0x21e000 from'./changeitem';import{default as _0x303b71}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x230284}from'lodash-es';const tt={'c':_0x1f1c8b,'a':_0x37172e,'e':_0x17ed00,'r':_0xdb0d64,'u':_0xf2892d};export default class d extends _0x125709{static get[_0x344a('0x8c')](){return _0x344a('0x17');}static get[_0x344a('0x21')](){return[_0x1ab42c,_0x1d8589,_0x26e6fb];}constructor(_0x2d5cc4){super(_0x2d5cc4),this[_0x344a('0x114')]=this['editor']['plugins'][_0x344a('0x18')]('RevisionsRepository'),this[_0x344a('0x61')](_0x344a('0x5b'),null),this[_0x344a('0x61')](_0x344a('0x89'),null),this[_0x344a('0x3f')]=null,this[_0x344a('0x61')](_0x344a('0xb'),null),this[_0x344a('0x61')](_0x344a('0x62'),!0x1),this[_0x344a('0x61')](_0x344a('0x6a'),!0x0),this['on']('change:isEnabled',(_0x401697,_0x5c8ca9,_0x3921dc)=>{this['activeChange']=null,this['activeView']=null,this[_0x344a('0x2b')][_0x344a('0x46')][_0x344a('0x94')][_0x344a('0x1b')](_0x37f10a=>{for(const _0x35b550 of this[_0x344a('0x2b')][_0x344a('0x46')]['view'][_0x344a('0x11b')][_0x344a('0x5e')])_0x3921dc?_0x37f10a[_0x344a('0x53')]('ck-editor__editable__overlay',_0x35b550):_0x37f10a[_0x344a('0xbd')](_0x344a('0xca'),_0x35b550);});}),this[_0x344a('0xff')]('isNavigationMode')['to'](this,_0x344a('0x5b'),_0x51c162=>null!==_0x51c162),this[_0x344a('0xff')](_0x344a('0x4b'))['to'](this,_0x344a('0x62'),this,'diff',this,'activeChange',(_0x51e040,_0x123886,_0x41276e)=>_0x51e040&&_0x41276e?_0x123886['changes'][_0x344a('0x110')](_0x41276e):0x0),this[_0x344a('0xff')]('numberOfChanges')['to'](this,_0x344a('0x62'),this,_0x344a('0xb'),(_0x30d068,_0x16b763)=>_0x30d068?_0x16b763['changes'][_0x344a('0x9e')]:0x0),this[_0x344a('0xba')]=null,this[_0x344a('0x81')]=new Map(),this[_0x344a('0x85')]=null,this[_0x344a('0x5a')]=this[_0x344a('0x2b')][_0x344a('0xeb')]['get'](_0x1d8589);}[_0x344a('0x71')](){const _0x92320d=this[_0x344a('0x2b')],_0x437b9d=new ShowChangeCommand(_0x92320d,{'direction':'backward'}),_0x38490a=new ShowChangeCommand(_0x92320d,{'direction':_0x344a('0x39')});(_0x92320d[_0x344a('0xb1')][_0x344a('0x8f')]('showPreviousChange',_0x437b9d),_0x92320d['commands'][_0x344a('0x8f')](_0x344a('0x50'),_0x38490a),_0x92320d['commands'][_0x344a('0x8f')](_0x344a('0xbb'),new RestoreRevisionCommand(_0x92320d)),this['on']('change:numberOfChanges',()=>{_0x437b9d[_0x344a('0x51')](),_0x38490a[_0x344a('0x51')]();}),this[_0x344a('0xf4')](),this[_0x344a('0x11')](),_0x92320d[_0x344a('0x4d')](_0x344a('0x70')),_0x92320d['plugins'][_0x344a('0x95')](_0x344a('0x24')))&&_0x92320d['plugins'][_0x344a('0x18')]('WidgetToolbarRepository')[_0x344a('0xec')](_0x344a('0x70'));}async[_0x344a('0x10d')](_0x8a6b94){await this[_0x344a('0x99')](_0x8a6b94);const _0x31f9a1={};for(const _0x99e55d in _0x8a6b94[_0x344a('0x49')]){if(_0x8a6b94[_0x344a('0x49')][_0x99e55d][_0x344a('0x93')]&&!_0x8a6b94[_0x344a('0x49')][_0x99e55d][_0x344a('0x93')][_0x344a('0xb0')])continue;const _0x18ed0b=this['_removeRevisionMarkers'](JSON[_0x344a('0x69')](_0x8a6b94[_0x344a('0x49')][_0x99e55d][_0x344a('0x3d')])),_0x4352c9=this[_0x344a('0x2b')][_0x344a('0x46')][_0x344a('0x94')][_0x344a('0x11b')],_0x14d606=new _0x4a90fe(_0x4352c9,_0x18ed0b['map'](_0x2c7a51=>this[_0x344a('0x106')](_0x2c7a51)));this[_0x344a('0x2b')][_0x344a('0xc9')][_0x344a('0x15')][_0x344a('0x37')]('marked'),_0x31f9a1[_0x99e55d]=this[_0x344a('0x2b')][_0x344a('0xc9')]['processor'][_0x344a('0x8e')](_0x14d606),this['editor'][_0x344a('0xc9')][_0x344a('0x15')][_0x344a('0x37')](_0x344a('0x11f'));}return _0x31f9a1;}async['getRevisionRootsAttributes'](_0x4541da){await this[_0x344a('0x99')](_0x4541da);const _0x451268={};for(const _0x14c370 in _0x4541da['diffData'])_0x4541da[_0x344a('0x49')][_0x14c370][_0x344a('0x93')]&&!_0x4541da['diffData'][_0x14c370][_0x344a('0x93')][_0x344a('0xb0')]||(_0x451268[_0x14c370]=_0x4541da[_0x344a('0x49')][_0x14c370][_0x344a('0x2f')]||{});return _0x451268;}[_0x344a('0xf8')](_0xedfc9e){return(_0xedfc9e=_0xedfc9e[_0x344a('0xe9')](_0x4d0052=>!_0x4d0052['name']||'revision-start'!==_0x4d0052[_0x344a('0xd')]&&_0x344a('0xaa')!==_0x4d0052['name']))[_0x344a('0xde')](_0x129b64=>{_0x344a('0x83')!=typeof _0x129b64&&(_0x129b64['children']=this[_0x344a('0xf8')](_0x129b64[_0x344a('0x67')]),_0x129b64[_0x344a('0xdb')]=_0x129b64[_0x344a('0xdb')]['filter'](_0x3a15a0=>!_0x3a15a0[0x0]['startsWith'](_0x344a('0xdf'))));}),_0xedfc9e;}async['compare'](_0x18108e,_0x3e52e9,_0x3385d7=!0x1){if(!this['isEnabled'])return;const _0x3af6ce=this['diff'],_0x4abfc0=this['repository'],_0x597af8=_0x344a('0x83')==typeof _0x18108e?_0x4abfc0[_0x344a('0x82')](_0x18108e):_0x18108e,_0x5982ba=_0x344a('0x83')==typeof _0x3e52e9?_0x4abfc0['getRevision'](_0x3e52e9):_0x3e52e9,_0x3fcbd3=_0x597af8['id'],_0x41aa31=_0x5982ba?_0x5982ba['id']:null;if(!_0x3385d7&&this[_0x344a('0xb')]&&this[_0x344a('0xb')][_0x344a('0x56')]===_0x3fcbd3&&this[_0x344a('0xb')][_0x344a('0x90')]===_0x41aa31)return Promise[_0x344a('0xe1')]();this[_0x344a('0x62')]=!0x1,this[_0x344a('0x89')]=null,this['activeChange']=null,this['diff']=new _0x303b71(_0x3fcbd3,_0x41aa31);const _0x361e9f=this[_0x344a('0x64')](_0x597af8,_0x5982ba,!0x0)[_0x344a('0x100')](_0x2951d7=>this[_0x344a('0x99')](_0x2951d7));return _0x361e9f['push'](new Promise(_0x2326f1=>{setTimeout(_0x2326f1,0x14);})),Promise[_0x344a('0xf9')](_0x361e9f)[_0x344a('0x9f')](()=>{if(!this[_0x344a('0x6a')])return;this[_0x344a('0x60')]();const _0x4399a7=this[_0x344a('0x7b')](_0x3fcbd3,_0x41aa31);for(const _0x57b97e of _0x4399a7[_0x344a('0x103')])this['_changeIdToChange'][_0x344a('0x61')](_0x57b97e['id'],_0x57b97e);this[_0x344a('0x2b')]['model']['enqueueChange']({'isUndoable':!0x1},_0x310124=>{for(const _0x126e27 of this[_0x344a('0x2b')]['model'][_0x344a('0x11b')][_0x344a('0xe7')]())_0x310124[_0x344a('0xe2')](_0x126e27);for(const _0x43ec80 of Object['keys'](_0x4399a7['model'])){const _0x44f9c7=_0x310124[_0x344a('0xce')](_0x43ec80);for(const _0x1c1238 of Object[_0x344a('0x11c')](_0x4399a7['attributes'][_0x43ec80]))_0x310124['setAttribute'](_0x1c1238,_0x4399a7[_0x344a('0xdb')][_0x43ec80][_0x1c1238],_0x44f9c7);_0x310124['insert'](_0x4399a7[_0x344a('0x11a')][_0x43ec80],_0x44f9c7,0x0);}}),this[_0x344a('0xb')][_0x344a('0xbe')](this[_0x344a('0x8a')](_0x4399a7[_0x344a('0x103')])),this['isReady']=!0x0;})['catch'](_0x4cd741=>{console[_0x344a('0x111')](_0x4cd741),this[_0x344a('0x60')](),_0x3af6ce&&(this[_0x344a('0xb')]=_0x3af6ce),this[_0x344a('0x62')]=!0x0;});}['addRevisionData'](_0x5ac4d0,_0x3e2eee){const _0x4b66b0=this[_0x344a('0x114')][_0x344a('0x4c')](_0x5ac4d0);return _0x4b66b0['on'](_0x344a('0x0'),(_0x1b3b4e,_0x5a8a9c,_0x840392)=>_0x3e2eee(_0x5a8a9c,_0x840392,_0x4b66b0)),this[_0x344a('0x114')][_0x344a('0xe6')](_0x4b66b0),_0x4b66b0;}[_0x344a('0x99')](_0x29ec18){if(!_0x29ec18||_0x29ec18[_0x344a('0x49')])return Promise[_0x344a('0xe1')]();{const _0xa1cc0a=this[_0x344a('0x2b')][_0x344a('0xc7')]['get'](_0x344a('0x26'));return this[_0x344a('0x85')][_0x344a('0x82')]({'channelId':_0xa1cc0a,'revisionId':_0x29ec18['id']})[_0x344a('0x9f')](_0x6cc2a5=>{_0x29ec18[_0x344a('0x0')]({'diffData':_0x6cc2a5[_0x344a('0x49')]},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this[_0x344a('0x8b')](),this[_0x344a('0xba')]&&this[_0x344a('0xba')][_0x344a('0x86')](),this[_0x344a('0xba')]=null,this[_0x344a('0x81')][_0x344a('0xe5')](),this[_0x344a('0x2b')][_0x344a('0x11a')][_0x344a('0x3e')]({'isUndoable':!0x1},_0x3768ff=>{for(const _0x458d37 of this['editor'][_0x344a('0x11a')][_0x344a('0x11b')][_0x344a('0xe7')]())_0x3768ff[_0x344a('0xe2')](_0x458d37);});}[_0x344a('0x8a')](_0x51ebe4){const _0x46573a=[],_0x476240=new Map();for(const _0x2648d8 of this['editor'][_0x344a('0x11a')][_0x344a('0x11b')][_0x344a('0xe7')]()){const _0x1ed54e=this[_0x344a('0x2b')][_0x344a('0x46')]['view'][_0x344a('0x84')](_0x2648d8);if(!_0x1ed54e)continue;const _0x43531b=_0x1ed54e['getClientRects']()[_0x344a('0xd5')](0x0);_0x43531b&&(_0x46573a[_0x344a('0x10c')](_0x2648d8),_0x476240[_0x344a('0x61')](_0x2648d8,_0x43531b));}return _0x46573a['sort']((_0x50299b,_0x30691b)=>{const _0xbd70c8=_0x476240[_0x344a('0x18')](_0x50299b),_0x289d5b=_0x476240['get'](_0x30691b);return _0xbd70c8['y']-_0x289d5b['y']||_0xbd70c8['x']-_0x289d5b['x'];}),(_0x51ebe4=_0x51ebe4[_0x344a('0xe9')](_0x2e33c9=>_0x46573a[_0x344a('0x92')](_0x2e33c9['rootName'])))[_0x344a('0x75')]((_0x4b7811,_0x4fc134)=>_0x46573a[_0x344a('0xda')](_0x4b7811[_0x344a('0x7d')])-_0x46573a[_0x344a('0xda')](_0x4fc134['rootName'])),_0x51ebe4;}[_0x344a('0x66')](_0xffca05){const _0xbd2357=Array[_0x344a('0xc0')](_0xffca05[_0x344a('0x101')])[_0x344a('0xe9')](([_0xf9d2fb,_0x26d9ca])=>_0xf9d2fb[_0x344a('0x6b')](_0x344a('0x77'))&&!_0x26d9ca[_0x344a('0xed')]),_0x3ec77e=Array['from'](this['editor'][_0x344a('0x11a')]['createRangeIn'](_0xffca05)[_0x344a('0xf5')]({'singleCharacters':!0x0}));if(0x0!=_0xbd2357[_0x344a('0x9e')])for(const _0x2d4907 of _0x3ec77e){const [_0x59ec85,_0x55a1ce]=_0xbd2357[0x0],[,_0x4ef1d5,_0x17cd94]=_0x59ec85[_0x344a('0xc8')](':');if(_0x55a1ce[_0x344a('0x47')][_0x344a('0x52')](_0x2d4907['nextPosition'])&&_0xbd2357[_0x344a('0x9a')](),(_0x2d4907['previousPosition'][_0x344a('0x52')](_0x55a1ce[_0x344a('0x112')])||_0x2d4907['previousPosition'][_0x344a('0xb5')](_0x55a1ce[_0x344a('0x112')]))&&(_0x344a('0x6f')==_0x4ef1d5?_0x2d4907['isAdded']={'userId':_0x17cd94}:_0x344a('0x11d')==_0x4ef1d5&&(_0x2d4907[_0x344a('0x7c')]={'userId':_0x17cd94})),0x0==_0xbd2357['length'])break;}return _0x3ec77e;}['_refreshStartEndIndex'](_0x59b30a){const _0x16a621=new Map();for(let _0x5274fd=0x0;_0x5274fd<_0x59b30a[_0x344a('0x9e')];_0x5274fd++)'text'===_0x59b30a[_0x5274fd][_0x344a('0x33')]?(_0x59b30a[_0x5274fd][_0x344a('0xd5')][_0x344a('0x23')]=_0x5274fd,_0x59b30a[_0x5274fd][_0x344a('0xd5')][_0x344a('0x9c')]=_0x5274fd):('elementStart'===_0x59b30a[_0x5274fd]['type']?_0x59b30a[_0x5274fd][_0x344a('0xd5')][_0x344a('0x23')]=_0x5274fd:_0x344a('0xbf')===_0x59b30a[_0x5274fd]['type']&&(_0x59b30a[_0x5274fd][_0x344a('0xd5')][_0x344a('0x9c')]=_0x5274fd),_0x16a621[_0x344a('0x61')](_0x59b30a[_0x5274fd]['id'],_0x5274fd));for(const _0xb36314 of _0x16a621[_0x344a('0xd0')]())'elementStart'===_0x59b30a[_0xb36314][_0x344a('0x33')]?_0x59b30a[_0xb36314][_0x344a('0xd5')]['endIndex']=_0x16a621[_0x344a('0x18')](_0x59b30a[_0xb36314][_0x344a('0xb7')]):'elementEnd'===_0x59b30a[_0xb36314]['type']&&(_0x59b30a[_0xb36314][_0x344a('0xd5')][_0x344a('0x23')]=_0x16a621['get'](_0x59b30a[_0xb36314][_0x344a('0xb7')]));}[_0x344a('0x7')](_0x11685a){for(let _0x35a85b=0x0;_0x35a85b<_0x11685a['length'];_0x35a85b++){if(_0x344a('0x4')===_0x11685a[_0x35a85b]['type'])_0x11685a[_0x35a85b][_0x344a('0xd5')][_0x344a('0x23')]=_0x35a85b;else{if(_0x344a('0xbf')===_0x11685a[_0x35a85b][_0x344a('0x33')]){_0x11685a[_0x35a85b][_0x344a('0xd5')][_0x344a('0x9c')]=_0x35a85b;const _0x30e993=_0x11685a[_0x35a85b][_0x344a('0xd5')][_0x344a('0x23')];_0x11685a[_0x30e993][_0x344a('0xb7')]=_0x11685a[_0x35a85b]['id'],_0x11685a[_0x35a85b][_0x344a('0xb7')]=_0x11685a[_0x30e993]['id'];}else _0x11685a[_0x35a85b][_0x344a('0xd5')][_0x344a('0x23')]=_0x35a85b,_0x11685a[_0x35a85b][_0x344a('0xd5')][_0x344a('0x9c')]=_0x35a85b,_0x11685a[_0x35a85b][_0x344a('0xb7')]=null;}_0x11685a[_0x35a85b][_0x344a('0x27')]||(_0x11685a[_0x35a85b]['markersStart']=[],_0x11685a[_0x35a85b][_0x344a('0xd1')]=[]);}}[_0x344a('0xb3')](_0x1c0313,_0x491e6b){const _0x4a642b=_0x1c0313[_0x344a('0xe9')](_0x1c8ce8=>!_0x1c8ce8[_0x344a('0xd6')]);for(let _0x496e2d=0x0;_0x496e2d<_0x491e6b[_0x344a('0x9e')];_0x496e2d++)_0x491e6b[_0x496e2d][_0x344a('0xd6')]&&(_0x4a642b[_0x496e2d][_0x344a('0xd6')]=_0x491e6b[_0x496e2d][_0x344a('0xd6')]);}['_makeModelFromViewString'](_0x108bcb){const _0x336bb0=JSON[_0x344a('0x69')](_0x108bcb),_0x4ab74d=this['editor']['editing'][_0x344a('0x94')][_0x344a('0x11b')],_0x541cf6=new _0x4a90fe(_0x4ab74d,_0x336bb0[_0x344a('0x100')](_0xe00890=>this[_0x344a('0x106')](_0xe00890)));return this[_0x344a('0x2b')][_0x344a('0xc9')]['toModel'](_0x541cf6);}[_0x344a('0x106')](_0x3bbc73){const _0x2f5787=this[_0x344a('0x2b')]['editing'][_0x344a('0x94')]['document'];if(_0x344a('0x83')==typeof _0x3bbc73)return new _0x59aa6b(_0x2f5787,_0x3bbc73);{const _0x125df2=_0x3bbc73[_0x344a('0x67')]['map'](_0x54ddde=>this['_getViewObj'](_0x54ddde));return new(tt[_0x3bbc73[(_0x344a('0x33'))]]||_0x3bbedb)(_0x2f5787,_0x3bbc73['name'],_0x3bbc73[_0x344a('0xdb')],_0x125df2);}}[_0x344a('0x7b')](_0x238c3d,_0x2e4c82=null){const _0x5214fd=this['repository'][_0x344a('0x82')](_0x238c3d),_0x505031=_0x2e4c82?this[_0x344a('0x114')][_0x344a('0x82')](_0x2e4c82):null,_0x5621ea=this[_0x344a('0x64')](_0x5214fd,_0x505031),_0x20bc8c=_0x5621ea[_0x5621ea['length']-0x1],_0x361f05=new Map(),_0x9379cd={'model':{},'attributes':{},'changes':[]},_0x40a99=new Set(),_0x2843b4=new Map();for(let _0x32af75=_0x5621ea[_0x344a('0x9e')]-0x1;_0x32af75>=0x0;_0x32af75--){const _0xfef470=_0x5621ea[_0x32af75];for(const _0x2f628a of Object['keys'](_0xfef470[_0x344a('0x49')]))if(_0xfef470[_0x344a('0x49')][_0x2f628a]['attachChange']){const _0x1423ff=_0xfef470['diffData'][_0x2f628a]['attachChange'];_0x1423ff[_0x344a('0xb0')]?(_0x40a99[_0x344a('0x8f')](_0x2f628a),_0x2843b4[_0x344a('0x95')](_0x2f628a)&&_0x2843b4[_0x344a('0x18')](_0x2f628a)[_0x344a('0xf2')]==_0x1423ff[_0x344a('0xf2')]?_0x2843b4[_0x344a('0x16')](_0x2f628a):_0x2843b4[_0x344a('0x61')](_0x2f628a,_0x1423ff)):_0x2843b4[_0x344a('0x95')](_0x2f628a)?(_0x40a99[_0x344a('0x16')](_0x2f628a),_0x2843b4['delete'](_0x2f628a)):(_0x40a99[_0x344a('0x8f')](_0x2f628a),_0x2843b4['set'](_0x2f628a,_0x1423ff));}else _0x40a99['add'](_0x2f628a);}for(const _0x13a060 of _0x40a99){const _0x22d7b5=_0x2843b4[_0x344a('0x95')](_0x13a060)&&!_0x2843b4[_0x344a('0x18')](_0x13a060)[_0x344a('0xb0')];let _0x10d1cc=_0x22d7b5?_0x5621ea[_0x344a('0x9e')]-0x1:0x0;const _0x145a19=_0x22d7b5?-0x1:0x1;for(;_0x5621ea[_0x10d1cc];){const _0x40e556=_0x5621ea[_0x10d1cc];if(_0x40e556[_0x344a('0x49')][_0x13a060]){const _0xfe0c27=_0x22d7b5?_0x40e556[_0x344a('0x49')][_0x13a060]['attributesBefore']:_0x40e556[_0x344a('0x49')][_0x13a060][_0x344a('0x2f')];_0x9379cd[_0x344a('0xdb')][_0x13a060]=_0xfe0c27?_0x230284(_0xfe0c27):{};break;}_0x10d1cc+=_0x145a19;}}for(const _0x342150 of _0x5621ea){_0x342150[_0x344a('0x11a')]={};for(const _0x5e54a7 of _0x342150[_0x344a('0x4e')])_0x361f05[_0x344a('0x61')](_0x5e54a7['id'],_0x5e54a7);for(const _0x84e0af of _0x40a99){const _0x4a7854=_0x342150['diffData'][_0x84e0af]?_0x342150['diffData'][_0x84e0af][_0x344a('0x3d')]:'[]',_0x241c6c=_0x342150[_0x344a('0x49')][_0x84e0af]?_0x342150['diffData'][_0x84e0af][_0x344a('0x9b')]:'[]';_0x342150['model'][_0x84e0af]={'insertions':this[_0x344a('0x10b')](_0x4a7854),'deletions':this[_0x344a('0x10b')](_0x241c6c)};}}for(const _0x3e83e0 of _0x40a99){let _0x45f483=null,_0x1108eb=0x0;const _0x573708=new Map(Array[_0x344a('0xc0')](_0x5214fd[_0x344a('0x11a')][_0x3e83e0][_0x344a('0x3d')][_0x344a('0x101')])[_0x344a('0xe9')](([_0x1e1944])=>!_0x1e1944[_0x344a('0x6b')]('revision:')));let _0x5c2cec=0x0;for(const _0xf3eb2e of _0x5621ea){const _0x4155d7=this[_0x344a('0x66')](_0xf3eb2e[_0x344a('0x11a')][_0x3e83e0]['insertions']);_0xf3eb2e==_0x5214fd?(_0x45f483=_0x4155d7,_0x1108eb=_0x45f483[_0x344a('0x9e')],_0x45f483[_0x344a('0xde')](_0x296475=>{_0x296475['id']=_0x5c2cec++;}),this['_processTape'](_0x45f483)):this[_0x344a('0xb3')](_0x45f483,_0x4155d7);const _0x3f2b3b=_0x45f483[_0x344a('0xe9')](_0x362349=>!_0x362349[_0x344a('0xd6')])[_0x344a('0x100')](_0x474813=>_0x474813['id']);let _0x37200a=0x0;const _0x157fe9=this['_makeTape'](_0xf3eb2e[_0x344a('0x11a')][_0x3e83e0][_0x344a('0x9b')]);_0x157fe9[_0x344a('0xde')](_0x1281f9=>{_0x1281f9[_0x344a('0x7c')]?_0x1281f9['id']=_0x1108eb++:_0x1281f9['id']=_0x3f2b3b[_0x37200a++];}),this[_0x344a('0x7')](_0x157fe9),this[_0x344a('0x3a')](_0x45f483,_0x344a('0xd6')),this[_0x344a('0x3a')](_0x157fe9,_0x344a('0x7c')),_0xf3eb2e==_0x5214fd&&this['_markMarkers'](_0x45f483,_0x573708),_0x45f483=this[_0x344a('0x9')](_0x45f483,_0x157fe9),this[_0x344a('0xef')](_0x45f483),this[_0x344a('0x3a')](_0x45f483,_0x344a('0x7c'));}_0x45f483=_0x45f483[_0x344a('0xe9')](_0x2f50ff=>!(_0x2f50ff[_0x344a('0xd6')]&&_0x2f50ff[_0x344a('0x7c')]));const _0x4a0d6b=new Map(_0x20bc8c[_0x344a('0x11a')][_0x3e83e0][_0x344a('0x9b')]['markers']),_0x1c8379=new Set(_0x573708['keys']());for(const _0x3a922d of _0x4a0d6b[_0x344a('0x11c')]())_0x1c8379[_0x344a('0x16')](_0x3a922d);this[_0x344a('0x13')](_0x45f483,_0x1c8379),this['_fixObsoleteTags'](_0x45f483),_0x45f483=this[_0x344a('0x63')](_0x45f483),_0x45f483=this[_0x344a('0x2c')](_0x45f483),_0x45f483=this[_0x344a('0xcf')](_0x45f483);const {root:_0x4492e2,changes:_0x382199}=this[_0x344a('0x2e')](_0x45f483,_0x361f05,_0x3e83e0);_0x9379cd[_0x344a('0x11a')][_0x3e83e0]=_0x4492e2;const _0x24cc28=_0x2843b4[_0x344a('0x18')](_0x3e83e0);if(_0x24cc28){const _0x17fbae=_0x361f05[_0x344a('0x18')](_0x24cc28[_0x344a('0xf2')]),_0x10f016=new _0x21e000({'author':_0x17fbae,'type':_0x24cc28['isAttached']?_0x344a('0x8f'):_0x344a('0xf6'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3e83e0});_0x382199['unshift'](_0x10f016),_0x9379cd[_0x344a('0xdb')][_0x3e83e0]['revisionHistoryAttachChange']=_0x10f016['id'];}_0x9379cd[_0x344a('0x103')]=_0x9379cd[_0x344a('0x103')][_0x344a('0xe')](_0x382199);}return _0x9379cd;}[_0x344a('0x35')](_0x5e3de7,_0xb376a1){for(let _0x583cfd=0x0;_0x583cfd<_0x5e3de7[_0x344a('0x9e')];_0x583cfd++)for(const [_0x102761,_0x1b9337]of _0xb376a1)_0x1b9337[_0x344a('0x112')][_0x344a('0x52')](_0x5e3de7[_0x583cfd][_0x344a('0x78')])&&_0x5e3de7[_0x583cfd][_0x344a('0x27')][_0x344a('0x10c')](_0x102761),_0x1b9337[_0x344a('0x47')][_0x344a('0x52')](_0x5e3de7[_0x583cfd][_0x344a('0x9d')])&&_0x5e3de7[_0x583cfd][_0x344a('0xd1')][_0x344a('0x10c')](_0x102761);}[_0x344a('0x9')](_0x1e30af,_0x43e7f0){let _0x4b5f3b=[],_0x309a1a=0x0,_0x5a1957=0x0;for(;_0x309a1a<_0x1e30af[_0x344a('0x9e')]||_0x5a1957<_0x43e7f0[_0x344a('0x9e')];){const _0x584ceb=_0x1e30af[_0x309a1a]||{},_0x1dded4=_0x43e7f0[_0x5a1957]||{};if(_0x584ceb['id']==_0x1dded4['id'])_0x309a1a++,_0x5a1957++,_0x4b5f3b['push'](_0x584ceb);else{if(_0x1dded4[_0x344a('0x7c')]&&_0x584ceb[_0x344a('0xd6')]){const {commonTape:_0x1b1e5a,iEnd:_0x25eab9,jEnd:_0x427e59}=this[_0x344a('0xac')](_0x1e30af,_0x309a1a,_0x43e7f0,_0x5a1957);_0x4b5f3b=_0x4b5f3b[_0x344a('0xe')](_0x1b1e5a),_0x309a1a=_0x25eab9,_0x5a1957=_0x427e59;}else _0x1dded4[_0x344a('0x7c')]?(_0x5a1957++,_0x4b5f3b[_0x344a('0x10c')](_0x1dded4)):(_0x309a1a++,_0x4b5f3b[_0x344a('0x10c')](_0x584ceb));}}return _0x4b5f3b;}[_0x344a('0x13')](_0xde8af0,_0x485b6c){const _0x150208=[];for(let _0x3548cc=0x0;_0x3548cc<_0xde8af0[_0x344a('0x9e')];_0x3548cc++){for(let _0x18e5d7=0x0;_0x18e5d7<_0xde8af0[_0x3548cc][_0x344a('0x27')][_0x344a('0x9e')];_0x18e5d7++){const _0xc97ab6=_0xde8af0[_0x3548cc][_0x344a('0x27')][_0x18e5d7];if(!_0x485b6c[_0x344a('0x95')](_0xc97ab6))continue;const {group:_0x223069,type:_0x58185b,authorId:_0x1d81e5}=_0x4108d3(_0xc97ab6);_0x344a('0xa1')!=_0x223069||_0x344a('0x6f')!=_0x58185b&&_0x344a('0x11d')!=_0x58185b||(_0x150208['unshift']({'type':_0x58185b,'name':_0xc97ab6,'userId':_0x1d81e5}),_0xde8af0[_0x3548cc][_0x344a('0x27')][_0x344a('0x10a')](_0x18e5d7,0x1),_0x18e5d7--);}_0x46af70(_0xde8af0[_0x3548cc]);for(let _0x649abc=0x0;_0x649abc<_0xde8af0[_0x3548cc][_0x344a('0xd1')][_0x344a('0x9e')];_0x649abc++){const _0x4c5814=_0xde8af0[_0x3548cc][_0x344a('0xd1')][_0x649abc];if(!_0x485b6c['has'](_0x4c5814))continue;const {group:_0x4b351a,type:_0x2807c6}=_0x4108d3(_0x4c5814);if(_0x344a('0xa1')!=_0x4b351a||'insertion'!=_0x2807c6&&_0x344a('0x11d')!=_0x2807c6)continue;_0xde8af0[_0x3548cc][_0x344a('0xd1')][_0x344a('0x10a')](_0x649abc,0x1),_0x649abc--;const _0x4ca528=_0x150208[_0x344a('0x98')](_0x5a5fd9=>_0x5a5fd9[_0x344a('0xd')]==_0x4c5814);_0x4ca528>-0x1&&_0x150208[_0x344a('0x10a')](_0x4ca528,0x1);}}function _0x4108d3(_0x30a173){const _0x4b265b=_0x30a173[_0x344a('0xc8')](':');return{'group':_0x4b265b[0x0],'type':_0x4b265b[0x1],'subType':_0x4b265b[_0x344a('0x9e')]>=0x5?_0x4b265b[0x2]:null,'id':_0x4b265b[_0x344a('0x9e')]<0x5?_0x4b265b[0x2]:_0x4b265b[0x3],'authorId':_0x4b265b[_0x344a('0x9e')]<0x5?_0x4b265b[0x3]:_0x4b265b[0x4],'markerCount':0x6==_0x4b265b['length']?_0x4b265b[0x5]:null};}function _0x46af70(_0x1f837d){for(let _0x5002bc=0x0;_0x5002bc<_0x150208[_0x344a('0x9e')];_0x5002bc++){if(_0x1f837d[_0x344a('0xd6')]&&_0x344a('0x6f')==_0x150208[_0x5002bc][_0x344a('0x33')])return _0x1f837d[_0x344a('0xa6')]=_0x150208[_0x5002bc],void delete _0x1f837d[_0x344a('0xd6')];if(!_0x1f837d[_0x344a('0xd6')]&&!_0x1f837d[_0x344a('0x7c')]&&_0x344a('0x11d')==_0x150208[_0x5002bc][_0x344a('0x33')])return void(_0x1f837d[_0x344a('0x30')]=_0x150208[_0x5002bc]);}}}[_0x344a('0x3a')](_0x16fa86,_0x162c0e){let _0x17459b=0x0,_0x3cdb1b=!0x1;const _0x29a314=new Map();for(const _0x580175 of _0x16fa86)_0x580175[_0x162c0e]?_0x3cdb1b&&(_0x17459b++,_0x3cdb1b=!0x1):(_0x17459b++,_0x3cdb1b=!0x0),_0x29a314[_0x344a('0x61')](_0x580175['id'],_0x17459b);for(let _0x52d16e=0x0;_0x52d16e<_0x16fa86[_0x344a('0x9e')];_0x52d16e++){if(_0x344a('0x7c')==_0x162c0e&&_0x16fa86[_0x52d16e][_0x344a('0xd6')]||_0x344a('0xd6')==_0x162c0e&&_0x16fa86[_0x52d16e]['isRemoved'])continue;if(_0x344a('0x87')==_0x16fa86[_0x52d16e][_0x344a('0x33')]){_0x16fa86[_0x52d16e][_0x344a('0x40')]=0x0;continue;}const _0x340dbb=_0x29a314[_0x344a('0x18')](_0x16fa86[_0x52d16e][_0x344a('0xb7')]),_0x4e498b=_0x29a314[_0x344a('0x18')](_0x16fa86[_0x52d16e]['id']);_0x16fa86[_0x52d16e][_0x344a('0x40')]=_0x340dbb-_0x4e498b;}}['_getRevisionsRange'](_0x4ba85e,_0x565780,_0x4343e4=!0x1){const _0x58a7c3=[];let _0x12656c=this[_0x344a('0x114')][_0x344a('0x110')](_0x4ba85e),_0x5938f0=this[_0x344a('0x114')][_0x344a('0x110')](_0x565780);for(-0x1==_0x5938f0&&(_0x5938f0=this['repository']['_revisions'][_0x344a('0x9e')],_0x4343e4=!0x1);_0x12656c<_0x5938f0;)_0x58a7c3['push'](this[_0x344a('0x114')]['getRevision'](_0x12656c)),_0x12656c++;return _0x4343e4&&_0x58a7c3[_0x344a('0x10c')](this[_0x344a('0x114')][_0x344a('0x82')](_0x12656c)),_0x58a7c3;}[_0x344a('0xac')](_0x1733df,_0x489db2,_0x1056b5,_0x23a2e5){const _0x36f7a6=this[_0x344a('0x2b')][_0x344a('0x11a')][_0x344a('0x32')];let _0x623dad=_0x489db2;for(;_0x1733df[_0x623dad]&&_0x1733df[_0x623dad][_0x344a('0xd6')];)_0x623dad++;let _0x1d69ea=_0x23a2e5;for(;_0x1056b5[_0x1d69ea]&&_0x1056b5[_0x1d69ea][_0x344a('0x7c')];)_0x1d69ea++;_0x10fe1d(_0x1733df,_0x489db2,_0x623dad),_0x10fe1d(_0x1056b5,_0x23a2e5,_0x1d69ea);const _0x3f5186=_0x1056b5[_0x344a('0xd9')](_0x23a2e5,_0x1d69ea)[_0x344a('0xe')](_0x1733df[_0x344a('0xd9')](_0x489db2,_0x623dad));return _0x3f5186[_0x344a('0x75')]((_0x47445e,_0x2d34b4)=>_0x47445e['side']!=_0x2d34b4[_0x344a('0xaf')]?_0x47445e[_0x344a('0xaf')]-_0x2d34b4[_0x344a('0xaf')]:_0x47445e['level']!=_0x2d34b4[_0x344a('0x5d')]?_0x47445e[_0x344a('0x5d')]-_0x2d34b4[_0x344a('0x5d')]:_0x47445e[_0x344a('0x40')]!=_0x2d34b4[_0x344a('0x40')]?_0x2d34b4['distance']-_0x47445e[_0x344a('0x40')]:!!_0x47445e[_0x344a('0xd6')]!=!!_0x2d34b4['isAdded']?-0x1==_0x47445e[_0x344a('0xaf')]||0x0==_0x47445e[_0x344a('0xaf')]?_0x47445e[_0x344a('0xd6')]?-0x1:0x1:_0x47445e[_0x344a('0xd6')]?0x1:-0x1:_0x47445e[_0x344a('0x1e')]-_0x2d34b4['index']),{'commonTape':_0x3f5186,'iEnd':_0x623dad,'jEnd':_0x1d69ea};function _0x10fe1d(_0x2e27a9,_0x5c51e7,_0x4b0482){let _0x5144d4=-0x1,_0x16e8f3=Number[_0x344a('0x7e')],_0x1a265d=!0x0;for(let _0x3cf73a=_0x5c51e7;_0x3cf73a<_0x4b0482;_0x3cf73a++)if(_0x36f7a6[_0x344a('0xb6')](_0x2e27a9[_0x3cf73a]['item'])||(_0x1a265d=!0x1),_0x2e27a9[_0x3cf73a]['item']['startIndex']<_0x5c51e7&&(_0x5144d4=_0x3cf73a),_0x2e27a9[_0x3cf73a][_0x344a('0xd5')][_0x344a('0x9c')]>=_0x4b0482){_0x16e8f3=_0x3cf73a;break;}_0x1a265d&&(_0x5144d4=_0x4b0482-0x1);for(let _0x586cff=_0x5c51e7;_0x586cff<_0x4b0482;_0x586cff++)_0x2e27a9[_0x586cff][_0x344a('0xaf')]=_0x586cff<=_0x5144d4?-0x1:_0x586cff<_0x16e8f3?0x0:0x1,_0x2e27a9[_0x586cff]['index']=_0x586cff;let _0x517582=0x0;for(let _0x47e898=_0x5c51e7;_0x47e898<=_0x5144d4;_0x47e898++)0x0==_0x2e27a9[_0x47e898][_0x344a('0x40')]?_0x2e27a9[_0x47e898]['level']=_0x517582:(_0x517582++,_0x2e27a9[_0x47e898][_0x344a('0x5d')]=_0x517582,_0x517582++);for(let _0x41b4a2=_0x5c51e7;_0x41b4a2<_0x4b0482;_0x41b4a2++)0x0==_0x2e27a9[_0x41b4a2][_0x344a('0xaf')]&&(_0x2e27a9[_0x41b4a2][_0x344a('0x5d')]=_0x517582);_0x517582=0x0;for(let _0x4c0316=_0x4b0482-0x1;_0x4c0316>=_0x16e8f3;_0x4c0316--)0x0==_0x2e27a9[_0x4c0316][_0x344a('0x40')]?_0x2e27a9[_0x4c0316][_0x344a('0x5d')]=_0x517582:(_0x517582--,_0x2e27a9[_0x4c0316][_0x344a('0x5d')]=_0x517582,_0x517582--);}}[_0x344a('0xf7')](_0x164d56){const _0x1b6c08=new Map(),_0x2bf35d=this[_0x344a('0x2b')]['model'][_0x344a('0x32')];for(let _0x47a3b6=0x1;_0x47a3b6<_0x164d56[_0x344a('0x9e')];_0x47a3b6++){let _0x5a5331,_0x120ea9,_0x598648;const _0x36016b=_0x164d56[_0x47a3b6],_0x3b2840=_0x164d56[_0x47a3b6-0x1];if(_0x344a('0x87')==_0x36016b[_0x344a('0x33')])continue;if(_0x36016b[_0x344a('0x33')]!=_0x3b2840['type'])continue;if(!_0x2bf35d[_0x344a('0xfa')](_0x3b2840[_0x344a('0xd5')])||_0x2bf35d['isLimit'](_0x3b2840[_0x344a('0xd5')]))continue;if(!_0x2bf35d[_0x344a('0xfa')](_0x36016b[_0x344a('0xd5')])||_0x2bf35d[_0x344a('0xfc')](_0x36016b[_0x344a('0xd5')]))continue;if((_0x164d56[_0x47a3b6][_0x344a('0xd6')]||_0x164d56[_0x47a3b6][_0x344a('0xa6')])&&_0x164d56[_0x47a3b6-0x1][_0x344a('0x7c')])_0x5a5331=_0x164d56[_0x47a3b6],_0x120ea9=_0x164d56[_0x47a3b6-0x1],_0x598648=_0x47a3b6-0x1;else{if(!_0x164d56[_0x47a3b6][_0x344a('0x7c')]||!_0x164d56[_0x47a3b6-0x1][_0x344a('0xd6')]&&!_0x164d56[_0x47a3b6-0x1][_0x344a('0xa6')])continue;_0x5a5331=_0x164d56[_0x47a3b6-0x1],_0x120ea9=_0x164d56[_0x47a3b6],_0x598648=_0x47a3b6;}const _0x2a9abc=_0x5a5331['level']==_0x120ea9['level'],_0x220268=Math[_0x344a('0x80')](_0x5a5331['level'])<Math[_0x344a('0x80')](_0x120ea9[_0x344a('0x5d')])&&0x0==_0x120ea9['distance'];(_0x2a9abc||_0x220268)&&(_0x1b6c08[_0x344a('0x61')](_0x120ea9['id'],_0x5a5331['id']),_0x164d56[_0x344a('0x10a')](_0x598648,0x1),_0x47a3b6--,_0x5a5331[_0x344a('0xd6')]=!0x1);}for(let _0x4c1e0e=0x0;_0x4c1e0e<_0x164d56[_0x344a('0x9e')];_0x4c1e0e++)_0x1b6c08['has'](_0x164d56[_0x4c1e0e]['pairId'])&&(_0x164d56[_0x4c1e0e][_0x344a('0xb7')]=_0x1b6c08[_0x344a('0x18')](_0x164d56[_0x4c1e0e]['pairId']));}[_0x344a('0x63')](_0xb90187){const _0x474114=new Set(_0xb90187['map'](_0x4190cf=>_0x4190cf['id']));for(let _0x388d25=0x0;_0x388d25<_0xb90187[_0x344a('0x9e')];_0x388d25++)_0x474114[_0x344a('0x95')](_0xb90187[_0x388d25]['pairId'])||0x0==_0xb90187[_0x388d25][_0x344a('0x40')]||(_0xb90187[_0x388d25][_0x344a('0x58')]=!0x0);return _0xb90187[_0x344a('0xe9')](_0x232319=>!_0x232319[_0x344a('0x58')]);}[_0x344a('0x2c')](_0x3a044a){const _0xbf841=new Set();for(let _0x5e4be0=0x0;_0x5e4be0<_0x3a044a[_0x344a('0x9e')];_0x5e4be0++){if(_0xbf841[_0x344a('0x95')](_0x3a044a[_0x5e4be0]['id'])&&_0x3a044a[_0x5e4be0][_0x344a('0x7c')]&&(_0x3a044a[_0x5e4be0][_0x344a('0x58')]=!0x0),_0x3a044a[_0x5e4be0][_0x344a('0x58')])continue;if(0x0==_0x3a044a[_0x5e4be0][_0x344a('0x40')])continue;if(_0x344a('0x4')!=_0x3a044a[_0x5e4be0][_0x344a('0x33')])continue;if(null==_0x3a044a[_0x5e4be0]['pairId'])continue;let _0x2e43f2=_0x5e4be0+0x1,_0x10526a=0x0;for(;_0x3a044a[_0x2e43f2]['id']!=_0x3a044a[_0x5e4be0][_0x344a('0xb7')];)_0x344a('0x4')==_0x3a044a[_0x2e43f2]['type']?_0x10526a++:_0x344a('0xbf')==_0x3a044a[_0x2e43f2][_0x344a('0x33')]&&_0x10526a--,_0x2e43f2++;if(0x0!=_0x10526a){if(_0x3a044a[_0x5e4be0]['isRemoved'])_0x3a044a[_0x5e4be0][_0x344a('0x58')]=!0x0;else for(;_0x2e43f2!=_0x5e4be0;)_0x3a044a[_0x2e43f2][_0x344a('0x7c')]&&0x0!=_0x3a044a[_0x2e43f2]['distance']&&(_0x3a044a[_0x2e43f2][_0x344a('0x58')]=!0x0,_0xbf841[_0x344a('0x8f')](_0x3a044a[_0x2e43f2][_0x344a('0xb7')])),_0x2e43f2--;}}return _0x3a044a[_0x344a('0xe9')](_0x39cc47=>!_0x39cc47['isIncorrect']);}[_0x344a('0xcf')](_0x4555f0){const _0x21d260=this['editor'][_0x344a('0x11a')]['schema'];for(let _0x4e8569=0x0;_0x4e8569<_0x4555f0[_0x344a('0x9e')];_0x4e8569++){if(!(_0x4555f0[_0x4e8569][_0x344a('0xd6')]||_0x4555f0[_0x4e8569][_0x344a('0xa6')]||_0x4555f0[_0x4e8569][_0x344a('0x7c')]||_0x4555f0[_0x4e8569][_0x344a('0x30')]))continue;if(0x0==_0x4555f0[_0x4e8569]['distance'])continue;const _0xe5ff07=_0x4555f0[_0x4e8569][_0x344a('0xd5')];_0x21d260['isBlock'](_0xe5ff07)||_0x21d260[_0x344a('0xfc')](_0xe5ff07)||(_0x4555f0[_0x4e8569][_0x344a('0xd6')]&&delete _0x4555f0[_0x4e8569][_0x344a('0xd6')],_0x4555f0[_0x4e8569]['isAddSuggestion']&&delete _0x4555f0[_0x4e8569][_0x344a('0xa6')],_0x4555f0[_0x4e8569][_0x344a('0x30')]&&delete _0x4555f0[_0x4e8569][_0x344a('0x30')],_0x4555f0[_0x4e8569][_0x344a('0x7c')]&&(_0x4555f0[_0x4e8569][_0x344a('0x58')]=!0x0));}return _0x4555f0[_0x344a('0xe9')](_0x591868=>!_0x591868['isIncorrect']);}[_0x344a('0x2e')](_0x26d81c,_0x1b42c4,_0x1eeec3){const _0x20302f=new _0x36fc70(),_0x16dd30=[],_0x39b4f2=new Map(),_0x13f273=this['editor'][_0x344a('0x11a')],_0x43dca7=_0x13f273['schema'],_0x124b86=[_0x20302f],_0x23c92d={},_0x309db5={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x2f4ce6=null;const _0x2970f9=[0x0];for(let _0x207bec=0x0;_0x207bec<_0x26d81c[_0x344a('0x9e')];_0x207bec++){let _0x4737e5,_0x116267;if(_0x344a('0x4')===_0x26d81c[_0x207bec][_0x344a('0x33')]){_0x4737e5=_0x13f273[_0x344a('0xc6')](_0x20302f,_0x2970f9);const _0x248811=new _0x526e46(_0x26d81c[_0x207bec][_0x344a('0xd5')][_0x344a('0xd')],_0x26d81c[_0x207bec][_0x344a('0xd5')][_0x344a('0xa8')]());_0x124b86[0x0][_0x344a('0x72')](_0x248811),_0x2970f9['push'](0x0),_0x124b86[_0x344a('0xee')](_0x248811),_0x116267=_0x13f273[_0x344a('0xc6')](_0x20302f,_0x2970f9),_0x2f4ce6=null;}else{if(_0x344a('0xbf')===_0x26d81c[_0x207bec]['type'])_0x124b86['shift'](),_0x4737e5=_0x13f273[_0x344a('0xc6')](_0x20302f,_0x2970f9),_0x2970f9[_0x344a('0x36')](),_0x2970f9[_0x2970f9[_0x344a('0x9e')]-0x1]++,_0x116267=_0x13f273[_0x344a('0xc6')](_0x20302f,_0x2970f9),_0x2f4ce6=null;else{if(_0x4737e5=_0x13f273[_0x344a('0xc6')](_0x20302f,_0x2970f9),_0x2f4ce6&&_0x5ed225(_0x2f4ce6,_0x26d81c[_0x207bec][_0x344a('0xd5')]))_0x2f4ce6[_0x344a('0xa4')]+=_0x26d81c[_0x207bec]['item'][_0x344a('0xc9')];else{const _0x2d374c=new _0x5b86a7(_0x26d81c[_0x207bec][_0x344a('0xd5')][_0x344a('0xc9')],_0x26d81c[_0x207bec][_0x344a('0xd5')][_0x344a('0xa8')]());_0x124b86[0x0][_0x344a('0x72')](_0x2d374c),_0x2f4ce6=_0x2d374c;}_0x2970f9[_0x2970f9[_0x344a('0x9e')]-0x1]+=_0x26d81c[_0x207bec]['item'][_0x344a('0xb8')],_0x116267=_0x13f273['createPositionFromPath'](_0x20302f,_0x2970f9);}}for(const _0x3f463a of _0x26d81c[_0x207bec][_0x344a('0x27')])_0x39b4f2[_0x344a('0x61')](_0x3f463a,{'start':_0x4737e5,'end':null});_0x57f018('isRemoveSuggestion',_0x207bec,_0x4737e5,_0x116267),_0x57f018(_0x344a('0xa6'),_0x207bec,_0x4737e5,_0x116267),_0x57f018(_0x344a('0x7c'),_0x207bec,_0x4737e5,_0x116267),_0x57f018(_0x344a('0xd6'),_0x207bec,_0x4737e5,_0x116267);for(const _0x4b63af of _0x26d81c[_0x207bec][_0x344a('0xd1')]){_0x39b4f2[_0x344a('0x18')](_0x4b63af)[_0x344a('0x47')]=_0x116267;}}for(const [_0x305a60,_0x53a0df]of _0x39b4f2){const _0x1a4aab=this[_0x344a('0x2b')][_0x344a('0x11a')]['createRange'](_0x53a0df[_0x344a('0x112')],_0x53a0df[_0x344a('0x47')]);_0x20302f[_0x344a('0x101')][_0x344a('0x61')](_0x305a60,_0x1a4aab);}return _0x16dd30['sort']((_0x4b3bba,_0x56b339)=>{const _0x166365=_0x20302f['markers'][_0x344a('0x18')](_0x344a('0x77')+_0x4b3bba['id']),_0x4e8757=_0x20302f[_0x344a('0x101')]['get'](_0x344a('0x77')+_0x56b339['id']);return _0x166365['start'][_0x344a('0x29')](_0x4e8757[_0x344a('0x112')])?-0x1:_0x166365[_0x344a('0x112')][_0x344a('0xb5')](_0x4e8757[_0x344a('0x112')])?0x1:_0x166365['end'][_0x344a('0x29')](_0x4e8757['end'])?-0x1:_0x166365[_0x344a('0x47')][_0x344a('0xb5')](_0x4e8757[_0x344a('0x47')])?0x1:'add'===_0x4b3bba[_0x344a('0x33')]?-0x1:0x1;}),{'root':_0x20302f,'changes':_0x16dd30};function _0x57f018(_0x4a311d,_0x2cdebe,_0x160042,_0x370bd5){const _0x2ffda0=!!_0x26d81c[_0x2cdebe][_0x4a311d],_0x218786=_0x2ffda0?_0x26d81c[_0x2cdebe][_0x4a311d][_0x344a('0xf2')]:null,_0x2b8197=_0x2cdebe===_0x26d81c[_0x344a('0x9e')]-0x1,_0x37efda=_0x309db5[_0x4a311d][0x0],_0x3a5304=_0x43dca7['isObject'](_0x26d81c[_0x2cdebe][_0x344a('0xd5')]);!_0x23c92d[_0x4a311d]&&_0x2ffda0?_0x23c92d[_0x4a311d]={'start':_0x160042,'tapeItem':_0x26d81c[_0x2cdebe],'userId':_0x218786,'type':_0x4a311d}:_0x23c92d[_0x4a311d]&&!_0x2ffda0?(_0x23c92d[_0x4a311d][_0x344a('0x47')]=_0x160042,_0x4d8675(_0x23c92d[_0x4a311d]),_0x23c92d[_0x4a311d]=null):_0x23c92d[_0x4a311d]&&_0x2ffda0&&_0x23c92d[_0x4a311d][_0x344a('0xf2')]!==_0x218786&&(_0x23c92d[_0x4a311d][_0x344a('0x47')]=_0x160042,_0x37efda&&_0x37efda[_0x344a('0xf2')]===_0x23c92d[_0x4a311d][_0x344a('0xf2')]||_0x4d8675(_0x23c92d[_0x4a311d]),_0x23c92d[_0x4a311d]={'start':_0x160042,'tapeItem':_0x26d81c[_0x2cdebe],'userId':_0x218786,'type':_0x4a311d}),_0x23c92d[_0x4a311d]&&_0x3a5304&&(_0x344a('0x4')!==_0x26d81c[_0x2cdebe][_0x344a('0x33')]||_0x37efda&&_0x37efda[_0x344a('0xf2')]===_0x218786||_0x309db5[_0x4a311d][_0x344a('0xee')]({'userId':_0x218786,'object':_0x26d81c[_0x2cdebe][_0x344a('0xd5')],'change':_0x23c92d[_0x4a311d]}),'elementEnd'===_0x26d81c[_0x2cdebe][_0x344a('0x33')]&&_0x37efda&&_0x37efda[_0x344a('0xc')]===_0x26d81c[_0x2cdebe][_0x344a('0xd5')]&&(_0x309db5[_0x4a311d][_0x344a('0x9a')](),_0x23c92d[_0x4a311d]=_0x37efda['change'])),_0x23c92d[_0x4a311d]&&_0x2b8197&&(_0x23c92d[_0x4a311d][_0x344a('0x47')]=_0x370bd5,_0x4d8675(_0x23c92d[_0x4a311d]),_0x23c92d[_0x4a311d]=null);}function _0x4d8675({start:_0x399759,end:_0x31a088,tapeItem:_0x4e22cd,userId:_0x20f0c5,type:_0x599762}){const _0x10b4bb=_0x4e22cd[_0x344a('0xd5')],_0x1f2c78=_0x13f273['schema']['isBlock'](_0x10b4bb)&&!_0x13f273[_0x344a('0x32')][_0x344a('0xfc')](_0x10b4bb),_0x5f3326=_0x399759['nodeAfter']==_0x31a088[_0x344a('0xe8')]&&_0x31a088[_0x344a('0x4f')];if(_0x1f2c78&&_0x5f3326)return;const _0x176f66=_0x13f273[_0x344a('0x74')](_0x399759,_0x31a088),_0xba3001=_0x1b42c4[_0x344a('0x18')](_0x20f0c5),_0x4e113a=new _0x21e000({'author':_0xba3001,'type':'isAdded'==_0x599762||_0x344a('0xa6')==_0x599762?_0x344a('0x8f'):'remove','data':{'isSuggestion':_0x344a('0xa6')==_0x599762||_0x344a('0x30')==_0x599762},'createdAt':new Date(),'rootName':_0x1eeec3});_0x16dd30['push'](_0x4e113a),_0x20302f['markers'][_0x344a('0x61')]('revision:'+_0x4e113a['id'],_0x176f66);}function _0x5ed225(_0xf594cb,_0x16fe45){const _0x1e19e0=_0xf594cb[_0x344a('0xa8')](),_0x2f71c1=_0x16fe45['getAttributes']();for(const _0xb8fe76 of _0x1e19e0){if(_0xb8fe76[0x1]!==_0x16fe45[_0x344a('0xe0')](_0xb8fe76[0x0]))return!0x1;_0x2f71c1['next']();}return _0x2f71c1[_0x344a('0x6')]()[_0x344a('0x96')];}}[_0x344a('0xf4')](){this['editor'][_0x344a('0x119')][_0x344a('0xa0')](_0x344a('0xd8'))[_0x344a('0xae')]({'view':_0x344a('0x65')}),this['editor']['conversion'][_0x344a('0xa0')]('editingDowncast')['markerToHighlight']({'model':_0x344a('0x65'),'view':_0x330155=>{const _0x1ec82f=_0x330155['markerName'][_0x344a('0xc8')](':')[0x1],_0x2fd6bc=this[_0x344a('0x31')](_0x1ec82f);if(!_0x2fd6bc)return null;const _0x552746=_0x344a('0x8f')==_0x2fd6bc[_0x344a('0x33')]?_0x344a('0x6f'):_0x344a('0x11d'),_0x2c74cb=[_0x344a('0x91'),_0x344a('0x20')+_0x552746];return _0x2fd6bc[_0x344a('0xc9')][_0x344a('0x48')]&&_0x2c74cb[_0x344a('0x10c')](_0x344a('0x20')+_0x552746+_0x344a('0x105')),this[_0x344a('0x5b')]==_0x2fd6bc&&_0x2c74cb[_0x344a('0x10c')](_0x344a('0xc1')),{'classes':_0x2c74cb,'attributes':{'data-change-id':_0x1ec82f}};}}),this[_0x344a('0x2b')][_0x344a('0x119')][_0x344a('0xa0')](_0x344a('0xd8'))['add'](_0x59e634=>{_0x59e634['on'](_0x344a('0x102'),(_0xdad9ee,_0x286aa5,_0xad70bd)=>{const _0x46583c=_0x286aa5['viewItem'][_0x344a('0x6c')](0x0);if(!_0x46583c||!_0x46583c['is'](_0x344a('0xfe'),_0x344a('0xa2')))return;if(!_0xad70bd[_0x344a('0x113')][_0x344a('0x109')](_0x46583c,{'attributes':['vid_start',_0x344a('0xd2')]}))return;const _0x524489=_0x286aa5[_0x344a('0xf0')][_0x344a('0x112')][_0x344a('0x97')];_0xad70bd[_0x344a('0xc2')][_0x344a('0x41')](_0x344a('0xb9'),_0x46583c[_0x344a('0xe0')](_0x344a('0xb9')),_0x524489),_0xad70bd['writer'][_0x344a('0x41')](_0x344a('0xd2'),_0x46583c[_0x344a('0xe0')](_0x344a('0xd2')),_0x524489);},{'priority':'low'});}),this[_0x344a('0x2b')][_0x344a('0x119')][_0x344a('0xa0')](_0x344a('0xd8'))[_0x344a('0x8f')](_0xe1a0e0=>{_0xe1a0e0['on'](_0x344a('0xfe'),(_0x236330,_0x1a856c,_0x146891)=>{if(!_0x146891['consumable'][_0x344a('0x109')](_0x1a856c[_0x344a('0x10e')],{'attributes':['vid_start','vid_end']}))return;if(_0x1a856c['modelRange']['isCollapsed'])return;const _0x399535=_0x1a856c['modelRange'][_0x344a('0x112')][_0x344a('0x97')];_0x399535[_0x344a('0x54')](_0x344a('0xb9'))||_0x399535['hasAttribute']('vid')||(_0x146891['writer'][_0x344a('0x41')](_0x344a('0xb9'),_0x1a856c[_0x344a('0x10e')][_0x344a('0xe0')](_0x344a('0xb9')),_0x399535),_0x146891[_0x344a('0xc2')][_0x344a('0x41')](_0x344a('0xd2'),_0x1a856c['viewItem']['getAttribute'](_0x344a('0xd2')),_0x399535));},{'priority':'low'});}),this['editor']['conversion'][_0x344a('0xa0')](_0x344a('0xd8'))[_0x344a('0x1c')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xb5b9d8=>_0xb5b9d8[_0x344a('0xe0')]('vid')}}),this[_0x344a('0x2b')][_0x344a('0x11a')][_0x344a('0x32')]['on'](_0x344a('0xc5'),(_0x43f345,[,_0x569798])=>{[_0x344a('0xb9'),_0x344a('0xd2'),'vid'][_0x344a('0x92')](_0x569798)&&(_0x43f345['return']=!0x0,_0x43f345[_0x344a('0x3c')]());},{'priority':_0x344a('0x3b')}),this[_0x344a('0x2b')][_0x344a('0x119')][_0x344a('0xa0')](_0x344a('0xab'))['add'](_0x1e5413=>{_0x1e5413['on']('attribute:vid',(_0xe6d61b,_0x1f3f4d,_0x200621)=>{if('\x20'!=_0x1f3f4d['item']['data']||_0x1f3f4d[_0x344a('0xd5')]['parent'][_0x344a('0x121')]>0x1)return;if(!_0x200621['consumable']['consume'](_0x1f3f4d[_0x344a('0xd5')],_0xe6d61b[_0x344a('0xd')]))return;const _0x447d65=_0x200621[_0x344a('0xc2')],_0x903f9c=_0x200621[_0x344a('0x120')][_0x344a('0x88')](_0x1f3f4d['range']);_0x447d65[_0x344a('0x118')](_0x903f9c,_0x447d65[_0x344a('0x55')]('span'));});}),this[_0x344a('0x2b')]['conversion'][_0x344a('0xa0')]('dataDowncast')[_0x344a('0x5')]({'model':'revision'}),this[_0x344a('0x2b')]['editing'][_0x344a('0x10f')]['on'](_0x344a('0xc3'),function(_0x238178){const _0x5fe191=_0x238178[_0x344a('0xeb')][_0x344a('0x18')](_0x344a('0x17'));return(_0x2b5afb,_0x47e22d,_0xdacde)=>{const _0xb458ca=_0x47e22d[_0x344a('0x59')][_0x344a('0xc8')](':')[0x1],_0x444742=_0x5fe191[_0x344a('0x31')](_0xb458ca);if(!_0x444742)return null;const _0x10c68e=_0x344a('0x8f')==_0x444742[_0x344a('0x33')]?'split':_0x344a('0x7f');if(!_0xdacde[_0x344a('0x113')][_0x344a('0x44')](_0x47e22d[_0x344a('0x6e')],_0x2b5afb[_0x344a('0xd')]))return;const _0x21b7c1=_0x47e22d[_0x344a('0x6e')][_0x344a('0xf5')](),_0x58495c=_0x47e22d[_0x344a('0x6e')][_0x344a('0x112')],_0x2437d5=_0x238178['model'][_0x344a('0x32')];let _0x29383b=null,_0xa44044=null,_0x4cfcc7=!0x1,_0x413720=!0x1;for(const _0x17da0f of _0x21b7c1){const _0x2a78a1=_0x17da0f[_0x344a('0xd5')];_0x4cfcc7=_0x4cfcc7||_0x2437d5[_0x344a('0xcc')](_0x2a78a1);const _0x142d57=_0xdacde['mapper'][_0x344a('0xfd')](_0x2a78a1);if(_0x142d57&&_0x142d57[_0x344a('0xc4')](_0x344a('0x2')))return;_0x344a('0xbf')==_0x17da0f[_0x344a('0x33')]&&(_0x2437d5[_0x344a('0xfa')](_0x2a78a1)&&!_0x2437d5[_0x344a('0xfc')](_0x2a78a1)&&(_0x2a78a1[_0x344a('0x115')]||_0x58495c[_0x344a('0xd4')]?_0x29383b&&_0x29383b['parent']==_0x2a78a1||(_0x29383b=_0x2a78a1,_0x2176e2(_0x17da0f[_0x344a('0x78')]),_0x413720=!0x0):_0xa44044=_0xa44044||_0x17da0f['previousPosition']));}function _0x2176e2(_0x2fca25){const _0x314697=_0xdacde[_0x344a('0xc2')][_0x344a('0x10')]('span',{'class':_0x344a('0x20')+_0x10c68e}),_0x4ca59b=_0xdacde['mapper'][_0x344a('0x104')](_0x2fca25);_0x444742[_0x344a('0xc9')]['isSuggestion']&&_0xdacde[_0x344a('0xc2')][_0x344a('0xbd')](_0x344a('0x20')+_0x10c68e+_0x344a('0x105'),_0x314697),_0x5fe191[_0x344a('0x5b')]==_0x444742&&_0xdacde['writer'][_0x344a('0xbd')](_0x344a('0xc1'),_0x314697),_0xdacde['writer'][_0x344a('0x107')](_0x4ca59b,_0x314697),_0xdacde[_0x344a('0x120')][_0x344a('0xcb')](_0x314697,_0x47e22d[_0x344a('0x59')]);}_0x4cfcc7||_0x413720||!_0xa44044||_0x2176e2(_0xa44044);};}(this[_0x344a('0x2b')]),{'priority':_0x344a('0xd3')}),this['editor']['editing'][_0x344a('0x10f')]['on']('removeMarker:revision',(_0x27db82,_0x3c72d0,_0x3d48ce)=>{const _0x1fabc7=_0x3d48ce['mapper'][_0x344a('0xf3')](_0x3c72d0['markerName']);if(_0x1fabc7)for(const _0x3ebbb8 of _0x1fabc7)(_0x3ebbb8[_0x344a('0x38')]('ck-suggestion-marker-split')||_0x3ebbb8[_0x344a('0x38')](_0x344a('0x1')))&&(_0x3d48ce[_0x344a('0x120')]['unbindElementFromMarkerName'](_0x3ebbb8,_0x3c72d0[_0x344a('0x59')]),_0x3d48ce[_0x344a('0xc2')][_0x344a('0xf6')](_0x3ebbb8));},{'priority':'high'}),this[_0x344a('0x2b')]['editing'][_0x344a('0x10f')]['on'](_0x344a('0xc3'),(_0x30fde7,_0x31feb1,_0x3d7f09)=>{const _0x72a17f=_0x31feb1['markerName']['split'](':')[0x1],_0x4a20ca=this[_0x344a('0x31')](_0x72a17f);if(!_0x4a20ca)return null;const _0x1ad7b9=_0x344a('0x8f')==_0x4a20ca['type']?_0x344a('0xc8'):_0x344a('0x7f');if(_0x3d7f09[_0x344a('0x113')][_0x344a('0x44')](_0x31feb1[_0x344a('0x6e')],_0x30fde7[_0x344a('0xd')]))for(const _0x41592f of _0x31feb1[_0x344a('0x6e')][_0x344a('0xa7')]()){if(!_0x41592f['is'](_0x344a('0xfe'),'softBreak'))continue;const _0x27ed36=_0x3d7f09[_0x344a('0xc2')]['createUIElement']('span',{'class':_0x344a('0x20')+_0x1ad7b9}),_0x5b2b22=_0x3d7f09[_0x344a('0x120')][_0x344a('0x104')](this[_0x344a('0x2b')]['model']['createPositionBefore'](_0x41592f));_0x4a20ca[_0x344a('0xc9')][_0x344a('0x48')]&&_0x3d7f09['writer'][_0x344a('0xbd')](_0x344a('0x20')+_0x1ad7b9+_0x344a('0x105'),_0x27ed36),this['activeChange']==_0x4a20ca&&_0x3d7f09[_0x344a('0xc2')][_0x344a('0xbd')](_0x344a('0xc1'),_0x27ed36),_0x3d7f09[_0x344a('0xc2')][_0x344a('0x107')](_0x5b2b22,_0x27ed36),_0x3d7f09[_0x344a('0x120')]['bindElementToMarker'](_0x27ed36,_0x31feb1['markerName']);}},{'priority':_0x344a('0xd3')}),this[_0x344a('0x2b')]['model']['document']['on'](_0x344a('0x1b'),()=>{this[_0x344a('0x2b')][_0x344a('0x46')][_0x344a('0x94')][_0x344a('0x1b')](_0x3c8323=>{for(const _0x57d95c of this[_0x344a('0x2b')]['model'][_0x344a('0x11b')][_0x344a('0xe7')]()){const _0x5d489b=this[_0x344a('0x2b')][_0x344a('0x11a')]['document'][_0x344a('0x45')](_0x57d95c),_0x1e9592=this[_0x344a('0x2b')][_0x344a('0x46')][_0x344a('0x94')][_0x344a('0x11b')][_0x344a('0x45')](_0x57d95c);if(_0x1e9592){const _0x92d596=_0x5d489b[_0x344a('0xe0')](_0x344a('0xad'));if(_0x3c8323['removeAttribute'](_0x344a('0x3'),_0x1e9592),_0x3c8323[_0x344a('0x53')](_0x344a('0x28'),_0x1e9592),_0x3c8323[_0x344a('0x53')](_0x344a('0x14'),_0x1e9592),_0x3c8323[_0x344a('0x53')]('ck-revision-history-root--active',_0x1e9592),_0x92d596){const _0x4105bf=this[_0x344a('0x31')](_0x92d596);if(!_0x4105bf)return null;_0x3c8323[_0x344a('0x41')](_0x344a('0x3'),_0x92d596,_0x1e9592),_0x3c8323[_0x344a('0xbd')](_0x344a('0x116')+_0x4105bf[_0x344a('0x33')],_0x1e9592),this[_0x344a('0x5b')]==_0x4105bf&&_0x3c8323['addClass'](_0x344a('0x73'),_0x1e9592);}}}});}),this[_0x344a('0x2b')]['conversion'][_0x344a('0xa0')](_0x344a('0xd8'))[_0x344a('0xae')]({'view':_0x344a('0x1f'),'model':_0x2e4912=>_0x344a('0x25')+_0x2e4912,'converterPriority':_0x344a('0x3b')}),this[_0x344a('0x2b')][_0x344a('0x119')][_0x344a('0xa0')](_0x344a('0xd8'))[_0x344a('0xae')]({'view':'suggestion','model':_0x2eef29=>_0x344a('0x42')+_0x2eef29,'converterPriority':_0x344a('0x3b')}),this[_0x344a('0x2b')][_0x344a('0x119')][_0x344a('0xa0')]('dataDowncast')[_0x344a('0x5')]({'model':_0x344a('0xa1'),'view':_0x361249=>({'name':_0x344a('0xcd')+_0x361249,'group':_0x344a('0xa1')}),'converterPriority':_0x344a('0x3b')}),this['editor'][_0x344a('0x119')]['for'](_0x344a('0x19'))[_0x344a('0x12')]({'model':_0x344a('0xa1'),'view':_0x1cf9bb=>{const _0x34e7fa=_0x1cf9bb['markerName'][_0x344a('0xc8')](':')[0x1];return _0x344a('0x6f')!=_0x34e7fa&&_0x344a('0x11d')!=_0x34e7fa?null:{'classes':[_0x344a('0x7a'),_0x344a('0x1d')+_0x34e7fa]};}}),this[_0x344a('0x2b')][_0x344a('0x46')][_0x344a('0x10f')]['on']('addMarker:revision-suggestion:deletion',et(this[_0x344a('0x2b')],_0x344a('0x7f')),{'priority':_0x344a('0xd3')}),this[_0x344a('0x2b')][_0x344a('0x46')][_0x344a('0x10f')]['on'](_0x344a('0x68'),et(this['editor'],_0x344a('0xc8')),{'priority':_0x344a('0xd3')}),this[_0x344a('0x2b')][_0x344a('0x46')][_0x344a('0x10f')]['on'](_0x344a('0x22'),(_0x57ea2b,_0x2f1a66,_0x31b431)=>{const _0x118066=_0x31b431['mapper'][_0x344a('0xf3')](_0x2f1a66['markerName']);if(_0x118066)for(const _0x11f654 of _0x118066)_0x11f654['is']('uiElement')&&(_0x31b431[_0x344a('0x120')]['unbindElementFromMarkerName'](_0x11f654,_0x2f1a66[_0x344a('0x59')]),_0x31b431[_0x344a('0xc2')][_0x344a('0xf6')](_0x11f654));},{'priority':_0x344a('0xd3')});}[_0x344a('0x31')](_0x1d8c17){return this[_0x344a('0x81')]['get'](_0x1d8c17);}['_getViewForChange'](_0x2bec66){return this[_0x344a('0xba')]&&this[_0x344a('0xba')]['destroy'](),this[_0x344a('0xba')]=new _0x365704(this[_0x344a('0x2b')][_0x344a('0x11e')],_0x2bec66),this[_0x344a('0xba')];}[_0x344a('0x11')](){this[_0x344a('0x2b')][_0x344a('0x11a')][_0x344a('0x11b')][_0x344a('0x108')][_0x344a('0xa')]('revision'),this['on'](_0x344a('0xf1'),(_0x28110c,_0x1c1007,_0x22081f,_0x467e18)=>{_0x467e18&&this[_0x344a('0x5a')]['remove'](_0x467e18),_0x22081f&&(this[_0x344a('0x5a')][_0x344a('0x8f')]({'view':_0x22081f,'stackId':_0x344a('0x5c'),'position':{'target':()=>{const _0x4dd5e8=this['editor']['editing'],_0x4b480e=this[_0x344a('0x31')](_0x22081f['changeId']);let _0x1f6837;if(_0x4b480e[_0x344a('0xc9')]['isOnRoot']){const _0x56743c=_0x4dd5e8[_0x344a('0x94')][_0x344a('0x84')](_0x4b480e[_0x344a('0x7d')]);_0x1f6837=Array[_0x344a('0xc0')](_0x56743c[_0x344a('0x1a')]());}else{const _0xdf6d56=this[_0x344a('0x2b')][_0x344a('0x11a')][_0x344a('0x101')][_0x344a('0x18')](_0x344a('0x77')+_0x22081f[_0x344a('0xea')]);_0x1f6837=Array[_0x344a('0xc0')](_0x4dd5e8[_0x344a('0x120')][_0x344a('0xf3')](_0xdf6d56[_0x344a('0xd')]))[_0x344a('0x100')](_0x185403=>_0x4dd5e8[_0x344a('0x94')][_0x344a('0x79')][_0x344a('0xdd')](_0x185403))[_0x344a('0x100')](_0x395cea=>Array[_0x344a('0xc0')](_0x395cea[_0x344a('0x1a')]()))[_0x344a('0xb2')]();}if(!this[_0x344a('0x3f')])return _0x1f6837[0x0];return _0x1f6837['find'](_0x5bdfaf=>_0x5bdfaf['top']-0x3<=this[_0x344a('0x3f')]['y']&&_0x5bdfaf[_0x344a('0x76')]+0x3>=this[_0x344a('0x3f')]['y']&&_0x5bdfaf[_0x344a('0xa3')]-0x3<=this[_0x344a('0x3f')]['x']&&_0x5bdfaf[_0x344a('0x6d')]+0x3>=this[_0x344a('0x3f')]['x'])||_0x1f6837[0x0];}}}),this[_0x344a('0x5a')][_0x344a('0x5f')](_0x344a('0x5c')));}),this['on'](_0x344a('0x57'),(_0x1e126a,_0x32f929,_0x35fbf6,_0xecbdc4)=>{this[_0x344a('0x89')]=_0x35fbf6?this['_getViewForChange'](_0x35fbf6):null,this[_0x344a('0x2b')][_0x344a('0x11a')][_0x344a('0x1b')](()=>{const _0x46a5ba=this[_0x344a('0x2b')][_0x344a('0x46')];_0xecbdc4&&(_0xecbdc4[_0x344a('0xc9')][_0x344a('0xb4')]?_0x46a5ba[_0x344a('0x94')]['change'](_0x33ed33=>{_0x33ed33[_0x344a('0x53')]('ck-revision-history-root--active',_0x46a5ba[_0x344a('0x94')][_0x344a('0x11b')][_0x344a('0x45')](_0xecbdc4[_0x344a('0x7d')]));}):_0x46a5ba[_0x344a('0xa5')]('revision:'+_0xecbdc4['id'])),_0x35fbf6&&(_0x35fbf6[_0x344a('0xc9')][_0x344a('0xb4')]?_0x46a5ba['view'][_0x344a('0x1b')](_0x5985f3=>{_0x5985f3[_0x344a('0xbd')]('ck-revision-history-root--active',_0x46a5ba[_0x344a('0x94')][_0x344a('0x11b')][_0x344a('0x45')](_0x35fbf6[_0x344a('0x7d')]));}):_0x46a5ba[_0x344a('0xa5')](_0x344a('0x77')+_0x35fbf6['id']));});}),this[_0x344a('0x2a')](this[_0x344a('0x2b')][_0x344a('0x46')][_0x344a('0x94')][_0x344a('0x11b')],_0x344a('0x43'),(_0x527726,_0x2f0274)=>{if(this[_0x344a('0x5b')])return;const _0x376c49=this[_0x344a('0x117')](_0x2f0274['target']),_0x57a5c4=this[_0x344a('0x81')]['get'](_0x376c49);_0x57a5c4?(this[_0x344a('0x3f')]={'x':_0x2f0274[_0x344a('0xa9')]['x'],'y':_0x2f0274[_0x344a('0xa9')]['y']},this['activeView']=this[_0x344a('0xfb')](_0x57a5c4)):(this[_0x344a('0x3f')]=null,this[_0x344a('0x89')]=null);}),this['listenTo'](this[_0x344a('0x2b')][_0x344a('0x46')]['view'][_0x344a('0x11b')],_0x344a('0xbc'),(_0xac6a45,_0x1b8a90)=>{const _0x1ae012=this[_0x344a('0x117')](_0x1b8a90['target']),_0x5e185c=this['_changeIdToChange'][_0x344a('0x18')](_0x1ae012);_0x5e185c?(this[_0x344a('0x3f')]={'x':_0x1b8a90['domEvent']['x'],'y':_0x1b8a90[_0x344a('0xa9')]['y']},_0x5e185c===this[_0x344a('0x5b')]?this[_0x344a('0x5a')][_0x344a('0x34')]():this[_0x344a('0x5b')]=_0x5e185c):(this[_0x344a('0x3f')]=null,this[_0x344a('0x5b')]=null);});}[_0x344a('0x117')](_0x34f839){do{const _0x576164=_0x34f839[_0x344a('0xe0')](_0x344a('0x3'));if(_0x576164)return _0x576164;_0x34f839=_0x34f839[_0x344a('0xe8')];}while(_0x34f839);return null;}[_0x344a('0x8b')](){this[_0x344a('0x2b')][_0x344a('0x11a')]['change'](_0x4b99dd=>{for(const _0x39265e of this[_0x344a('0x2b')][_0x344a('0x11a')][_0x344a('0x101')])_0x4b99dd['removeMarker'](_0x39265e);});}}function et(_0x51816c,_0x32b729){return(_0x5dd146,_0x20909a,_0x27be8e)=>{if(!_0x27be8e['consumable'][_0x344a('0x44')](_0x20909a[_0x344a('0x6e')],_0x5dd146[_0x344a('0xd')]))return;const _0x1db6bc=_0x20909a['markerRange']['getWalker'](),_0x4c8d39=_0x20909a['markerRange'][_0x344a('0x112')],_0xfa4abd=_0x51816c[_0x344a('0x11a')][_0x344a('0x32')];let _0x370d79=null,_0xa81492=null,_0x2785d4=!0x1,_0x3760a9=!0x1;for(const _0x32a35e of _0x1db6bc){const _0xc6460d=_0x32a35e[_0x344a('0xd5')];_0x2785d4=_0x2785d4||_0xfa4abd[_0x344a('0xcc')](_0xc6460d);const _0xe68b1b=_0x27be8e[_0x344a('0x120')]['toViewElement'](_0xc6460d);if(_0xe68b1b&&_0xe68b1b[_0x344a('0xc4')](_0x344a('0x2')))return;_0x344a('0xbf')==_0x32a35e[_0x344a('0x33')]&&(_0xfa4abd['isBlock'](_0xc6460d)&&!_0xfa4abd[_0x344a('0xfc')](_0xc6460d)&&(_0xc6460d[_0x344a('0x115')]||_0x4c8d39['isAtEnd']?_0x370d79&&_0x370d79['parent']==_0xc6460d||(_0x370d79=_0xc6460d,_0x4bdf58(_0x32a35e['previousPosition']),_0x3760a9=!0x0):_0xa81492=_0xa81492||_0x32a35e[_0x344a('0x78')]));}function _0x4bdf58(_0x4c7148){const _0x39a108=_0x27be8e[_0x344a('0x120')][_0x344a('0x104')](_0x4c7148),_0x15d918=_0x27be8e[_0x344a('0xc2')][_0x344a('0x10')](_0x344a('0x2d'),{'class':'ck-suggestion-preview-marker-'+_0x32b729});_0x27be8e[_0x344a('0xc2')]['insert'](_0x39a108,_0x15d918),_0x27be8e[_0x344a('0x120')][_0x344a('0xcb')](_0x15d918,_0x20909a['markerName']);}_0x2785d4||_0x3760a9||!_0xa81492||_0x4bdf58(_0xa81492);};}export class RestoreRevisionCommand extends _0x25f1d2{constructor(_0x3138b3){super(_0x3138b3);const _0x183dfe=_0x3138b3[_0x344a('0xeb')][_0x344a('0x18')](d);this['affectsData']=!0x1,this['listenTo'](_0x183dfe,_0x344a('0xe4'),()=>this[_0x344a('0x51')]()),this[_0x344a('0x2a')](_0x183dfe,_0x344a('0x8d'),()=>this[_0x344a('0x51')]());}[_0x344a('0xdc')](){const _0x915209=this[_0x344a('0x2b')],_0x310895=_0x915209[_0x344a('0xeb')][_0x344a('0x18')](d),_0x3fdd12=_0x310895[_0x344a('0x62')]?_0x310895[_0x344a('0xb')][_0x344a('0x56')]:null;_0x915209[_0x344a('0xc7')][_0x344a('0x18')](_0x344a('0x8'))[_0x344a('0x4a')](_0x3fdd12);}[_0x344a('0x51')](){const {isReady:_0x14fb3d,isEnabled:_0x3c9a2a}=this[_0x344a('0x2b')]['plugins']['get'](d);this[_0x344a('0x6a')]=_0x14fb3d&&_0x3c9a2a;}}export class ShowChangeCommand extends _0x25f1d2{constructor(_0x5ba594,{direction:_0x5d0bc5}){super(_0x5ba594);const _0x46aba5=_0x5ba594[_0x344a('0xeb')]['get'](d);this[_0x344a('0xe3')]=!0x1,this[_0x344a('0xd7')]=_0x344a('0x39')===_0x5d0bc5?0x1:-0x1,this[_0x344a('0x2a')](_0x46aba5,'change:isReady',()=>this[_0x344a('0x51')]()),this[_0x344a('0x2a')](_0x46aba5,'change:isEnabled',()=>this[_0x344a('0x51')]()),this[_0x344a('0x2a')](_0x46aba5,_0x344a('0x57'),()=>this[_0x344a('0x51')]());}[_0x344a('0xdc')](){const _0x45f5ec=this[_0x344a('0x2b')],_0x124b42=_0x45f5ec['plugins']['get'](d),{isNavigationMode:_0x507039,currentChangeNumber:_0x6f380a}=_0x124b42;let _0x54705a;if(_0x124b42[_0x344a('0x5b')]=_0x507039?_0x124b42['diff']['changes'][_0x344a('0x18')](_0x6f380a+this[_0x344a('0xd7')]):_0x124b42['diff'][_0x344a('0x103')][_0x344a('0xf')],_0x124b42[_0x344a('0x5b')][_0x344a('0xc9')][_0x344a('0xb4')])_0x54705a=_0x45f5ec[_0x344a('0x46')][_0x344a('0x94')][_0x344a('0x84')](_0x124b42['activeChange'][_0x344a('0x7d')]);else{const _0xcbfd32=_0x45f5ec[_0x344a('0x11a')][_0x344a('0x101')][_0x344a('0x18')](_0x344a('0x77')+_0x124b42[_0x344a('0x5b')]['id']);_0x54705a=_0x292d23(_0x45f5ec[_0x344a('0x46')],_0xcbfd32);}_0x273ccb({'target':_0x54705a,'viewportOffset':0x28});}[_0x344a('0x51')](){const {isNavigationMode:_0x2309ec,currentChangeNumber:_0x3a905f,numberOfChanges:_0x2a4016,isReady:_0x4422da,isEnabled:_0x2f34d5}=this['editor'][_0x344a('0xeb')][_0x344a('0x18')](d);this[_0x344a('0x6a')]=!!(_0x2f34d5&&_0x4422da&&_0x2a4016)&&(!_0x2309ec||(0x1===this[_0x344a('0xd7')]?_0x3a905f<_0x2a4016-0x1:_0x3a905f>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2235=['locale','add','isOpen','buttonView','extendTemplate','Name\x20this\x20revision','execute','source','map','set','items','bindTemplate','panelPosition','ck-revision-history-sidebar__revision__actions','Compare\x20against\x20selected','change:isActionsDropdownOpen','find','isEnabled','isActionsDropdownOpen','Show\x20more\x20items','listView','ck-on','isVisible','isReady','name','children','class','model','function','stopPropagation','action','_action','bind','button','Restore\x20this\x20revision'];(function(_0x4faa5e,_0x223567){const _0x2f8882=function(_0x9297d2){while(--_0x9297d2){_0x4faa5e['push'](_0x4faa5e['shift']());}};_0x2f8882(++_0x223567);}(_0x2235,0x1b2));const _0x2f88=function(_0x4faa5e,_0x223567){_0x4faa5e=_0x4faa5e-0x0;let _0x2f8882=_0x2235[_0x4faa5e];return _0x2f8882;};import{Collection as _0x239f1b}from'ckeditor5/src/utils';import{icons as _0x23cd24}from'ckeditor5/src/core';import{Model as _0x3b411f,addListToDropdown as _0x34df33,createDropdown as _0x36cdb7}from'ckeditor5/src/ui';import{getTranslation as _0x3766f0}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0xc13bed,_0x2e28e4){const _0x2ffdb8=_0xc13bed[_0x2f88('0x20')],_0x4c4cc9=_0xc13bed[_0x2f88('0x15')],_0x2adf2f=_0x36cdb7(_0x4c4cc9);_0x2adf2f[_0x2f88('0x21')]='sw';const _0xabc241=function(_0x20ce7d,_0x4b2be2){const _0x14b47f=function(_0x3f7216,_0x4cb8c1){const _0x1028fb=_0x3f7216[_0x2f88('0x15')],_0x1092f3={'Compare\x20against\x20selected':_0x3766f0(_0x1028fb,_0x2f88('0x0')),'Name\x20this\x20revision':_0x3766f0(_0x1028fb,_0x2f88('0x1a')),'Restore\x20this\x20revision':_0x3766f0(_0x1028fb,_0x2f88('0x14'))};return _0x4cb8c1[_0x2f88('0x1d')](_0x3b2b7e=>{const _0x1cc55d=_0x1092f3[_0x3b2b7e['name']];return _0x1cc55d&&_0x1cc55d!==_0x3b2b7e[_0x2f88('0xa')]&&(_0x3b2b7e[_0x2f88('0xa')]=_0x1cc55d),_0x3b2b7e;});}(_0x20ce7d,_0x4b2be2),_0x362bb8=new _0x239f1b();for(const _0x1144ba of _0x14b47f){const _0x37e47c={'type':_0x2f88('0x13'),'model':new _0x3b411f({'label':_0x1144ba[_0x2f88('0xa')],'class':_0x1144ba[_0x2f88('0xc')],'withText':!0x0,'_action':_0x1144ba[_0x2f88('0x10')]})};_0x37e47c[_0x2f88('0xd')][_0x2f88('0x12')]('isEnabled')['to'](_0x20ce7d,_0x2f88('0x4'),_0x5eadfd=>'function'!=typeof _0x1144ba[_0x2f88('0x3')]||(!_0x5eadfd||_0x1144ba[_0x2f88('0x3')](_0x20ce7d))),_0x362bb8[_0x2f88('0x16')](_0x37e47c);}return _0x362bb8;}(_0xc13bed,_0x2e28e4);return _0xc13bed['bind'](_0x2f88('0x4'))['to'](_0x2adf2f,_0x2f88('0x17')),_0x2adf2f[_0x2f88('0x18')][_0x2f88('0x1e')]({'label':_0x3766f0(_0x4c4cc9,_0x2f88('0x5')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x23cd24['threeVerticalDots']}),_0x2adf2f[_0x2f88('0x19')]({'attributes':{'class':[_0x2f88('0x22'),_0x2ffdb8['if']('isActionsDropdownOpen',_0x2f88('0x7'))]},'on':{'click':_0x2ffdb8['to'](_0x3a67e4=>_0x3a67e4[_0x2f88('0xf')]())}}),_0x2adf2f['on'](_0x2f88('0x1b'),_0x86cca7=>{_0xc13bed[_0x2f88('0x9')]&&_0x2f88('0xe')==typeof _0x86cca7[_0x2f88('0x1c')]['_action']&&_0x86cca7[_0x2f88('0x1c')][_0x2f88('0x11')](_0xc13bed);}),_0x34df33(_0x2adf2f,_0xabc241),_0x2adf2f['listenTo'](_0xc13bed,_0x2f88('0x1'),(_0x2c75cd,_0x4ab91c,_0x3c38fd)=>{if(_0x3c38fd)for(const _0x3cab0d of _0x2adf2f[_0x2f88('0x6')][_0x2f88('0x1f')]){const _0x35f3ae=_0x3cab0d[_0x2f88('0xb')]['first'],_0x1ed586=_0x2e28e4[_0x2f88('0x2')](_0x176568=>_0x176568[_0x2f88('0x10')]===_0x35f3ae[_0x2f88('0x11')])[_0x2f88('0x8')];_0x3cab0d[_0x2f88('0x8')]=void 0x0===_0x1ed586||_0x1ed586(_0xc13bed);}}),_0x2adf2f;}
23
+ const _0x1ebe=['map','items','_action','listView','add','threeVerticalDots','Show\x20more\x20items','Restore\x20this\x20revision','Compare\x20against\x20selected','locale','isVisible','class','listenTo','name','children','bindTemplate','isOpen','Name\x20this\x20revision','ck-revision-history-sidebar__revision__actions','isEnabled','panelPosition','stopPropagation','buttonView','function','change:isActionsDropdownOpen','bind','action','source','extendTemplate','isActionsDropdownOpen'];(function(_0x27d576,_0x1ebe44){const _0x53fb82=function(_0x3573fc){while(--_0x3573fc){_0x27d576['push'](_0x27d576['shift']());}};_0x53fb82(++_0x1ebe44);}(_0x1ebe,0x10b));const _0x53fb=function(_0x27d576,_0x1ebe44){_0x27d576=_0x27d576-0x0;let _0x53fb82=_0x1ebe[_0x27d576];return _0x53fb82;};import{Collection as _0x106042}from'ckeditor5/src/utils';import{icons as _0x479c55}from'ckeditor5/src/core';import{Model as _0x5afa01,addListToDropdown as _0xbbd9b9,createDropdown as _0x598f43}from'ckeditor5/src/ui';import{getTranslation as _0x3403ce}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0xaa7202,_0x7767af){const _0x2a2aae=_0xaa7202[_0x53fb('0x12')],_0x25d557=_0xaa7202[_0x53fb('0xc')],_0x1b952d=_0x598f43(_0x25d557);_0x1b952d[_0x53fb('0x17')]='sw';const _0x5ce2e8=function(_0x5d8588,_0x320120){const _0x2cd2df=function(_0x43844b,_0x23f2de){const _0xf2ab7c=_0x43844b['locale'],_0x1e7b81={'Compare\x20against\x20selected':_0x3403ce(_0xf2ab7c,_0x53fb('0xb')),'Name\x20this\x20revision':_0x3403ce(_0xf2ab7c,_0x53fb('0x14')),'Restore\x20this\x20revision':_0x3403ce(_0xf2ab7c,_0x53fb('0xa'))};return _0x23f2de[_0x53fb('0x3')](_0x3e54d3=>{const _0x5bee51=_0x1e7b81[_0x3e54d3['name']];return _0x5bee51&&_0x5bee51!==_0x3e54d3['name']&&(_0x3e54d3[_0x53fb('0x10')]=_0x5bee51),_0x3e54d3;});}(_0x5d8588,_0x320120),_0x2a4fbd=new _0x106042();for(const _0x45daea of _0x2cd2df){const _0x4bda4c={'type':'button','model':new _0x5afa01({'label':_0x45daea['name'],'class':_0x45daea[_0x53fb('0xe')],'withText':!0x0,'_action':_0x45daea['action']})};_0x4bda4c['model'][_0x53fb('0x1c')](_0x53fb('0x16'))['to'](_0x5d8588,'isActionsDropdownOpen',_0x15da7b=>'function'!=typeof _0x45daea[_0x53fb('0x16')]||(!_0x15da7b||_0x45daea[_0x53fb('0x16')](_0x5d8588))),_0x2a4fbd[_0x53fb('0x7')](_0x4bda4c);}return _0x2a4fbd;}(_0xaa7202,_0x7767af);return _0xaa7202[_0x53fb('0x1c')](_0x53fb('0x2'))['to'](_0x1b952d,_0x53fb('0x13')),_0x1b952d[_0x53fb('0x19')]['set']({'label':_0x3403ce(_0x25d557,_0x53fb('0x9')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x479c55[_0x53fb('0x8')]}),_0x1b952d[_0x53fb('0x1')]({'attributes':{'class':[_0x53fb('0x15'),_0x2a2aae['if'](_0x53fb('0x2'),'ck-on')]},'on':{'click':_0x2a2aae['to'](_0x382d12=>_0x382d12[_0x53fb('0x18')]())}}),_0x1b952d['on']('execute',_0x5316bc=>{_0xaa7202['isReady']&&_0x53fb('0x1a')==typeof _0x5316bc[_0x53fb('0x0')]['_action']&&_0x5316bc[_0x53fb('0x0')][_0x53fb('0x5')](_0xaa7202);}),_0xbbd9b9(_0x1b952d,_0x5ce2e8),_0x1b952d[_0x53fb('0xf')](_0xaa7202,_0x53fb('0x1b'),(_0x72c252,_0x2bf25b,_0x2d2df2)=>{if(_0x2d2df2)for(const _0x358725 of _0x1b952d[_0x53fb('0x6')][_0x53fb('0x4')]){const _0xb46a37=_0x358725[_0x53fb('0x11')]['first'],_0x4f99f2=_0x7767af['find'](_0x357baf=>_0x357baf[_0x53fb('0x1d')]===_0xb46a37[_0x53fb('0x5')])[_0x53fb('0xd')];_0x358725['isVisible']=void 0x0===_0x4f99f2||_0x4f99f2(_0xaa7202);}}),_0x1b952d;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x12d9=['ck-revision-history-sidebar__revision-author__name','ck-revision-history-sidebar__revision-author_creator','ck-revision-history-sidebar__revision-author','Revision\x20creator','push','0\x200\x2011\x2010','setTemplate','span','name'];(function(_0x1d0b49,_0x12d907){const _0x44de0d=function(_0x1b02c9){while(--_0x1b02c9){_0x1d0b49['push'](_0x1d0b49['shift']());}};_0x44de0d(++_0x12d907);}(_0x12d9,0xde));const _0x44de=function(_0x1d0b49,_0x12d907){_0x1d0b49=_0x1d0b49-0x0;let _0x44de0d=_0x12d9[_0x1d0b49];return _0x44de0d;};import{View as _0x3d8ed7,IconView as _0x590ba7}from'ckeditor5/src/ui';import{getTranslation as _0x2969a1}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x1a5adb from'../../../theme/icons/user.svg';export default class ti extends _0x3d8ed7{constructor(_0x43f12b,_0x12d742,_0x178f7f){super(_0x43f12b);const _0x241d8d=new _0x590ba7();_0x241d8d['set']({'content':_0x1a5adb,'viewBox':_0x44de('0x8')});const _0x2ca317=['ck',_0x44de('0x5')];_0x178f7f&&_0x2ca317[_0x44de('0x7')](_0x44de('0x4'));const _0x149eae=[{'tag':_0x44de('0x1'),'attributes':{'class':['ck',_0x44de('0x3')],'title':_0x2969a1(_0x43f12b,_0x178f7f?_0x44de('0x6'):'Revision\x20author')},'children':[_0x241d8d,_0x12d742[_0x44de('0x2')]]}];this[_0x44de('0x0')]({'tag':'li','attributes':{'class':_0x2ca317},'children':_0x149eae});}}
23
+ const _0x48f0=['span','ck-revision-history-sidebar__revision-author','push','ck-revision-history-sidebar__revision-author__name','ck-revision-history-sidebar__revision-author_creator','setTemplate','name','set','Revision\x20creator','Revision\x20author'];(function(_0x8f426f,_0x48f00f){const _0x24fecb=function(_0x4ee58f){while(--_0x4ee58f){_0x8f426f['push'](_0x8f426f['shift']());}};_0x24fecb(++_0x48f00f);}(_0x48f0,0x89));const _0x24fe=function(_0x8f426f,_0x48f00f){_0x8f426f=_0x8f426f-0x0;let _0x24fecb=_0x48f0[_0x8f426f];return _0x24fecb;};import{View as _0x3479df,IconView as _0xf20a69}from'ckeditor5/src/ui';import{getTranslation as _0x548f63}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x1c1cf2 from'../../../theme/icons/user.svg';export default class ti extends _0x3479df{constructor(_0x422f3b,_0x48fcb4,_0x298795){super(_0x422f3b);const _0x3799ed=new _0xf20a69();_0x3799ed[_0x24fe('0x0')]({'content':_0x1c1cf2,'viewBox':'0\x200\x2011\x2010'});const _0x5ee352=['ck',_0x24fe('0x4')];_0x298795&&_0x5ee352[_0x24fe('0x5')](_0x24fe('0x7'));const _0x231fa1=[{'tag':_0x24fe('0x3'),'attributes':{'class':['ck',_0x24fe('0x6')],'title':_0x548f63(_0x422f3b,_0x298795?_0x24fe('0x1'):_0x24fe('0x2'))},'children':[_0x3799ed,_0x48fcb4[_0x24fe('0x9')]]}];this[_0x24fe('0x8')]({'tag':'li','attributes':{'class':_0x5ee352},'children':_0x231fa1});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x629e=['Revision\x20name','span','extendTemplate','set'];(function(_0x51781a,_0x629ed5){var _0x30cfbd=function(_0x24bda7){while(--_0x24bda7){_0x51781a['push'](_0x51781a['shift']());}};_0x30cfbd(++_0x629ed5);}(_0x629e,0x1ba));var _0x30cf=function(_0x51781a,_0x629ed5){_0x51781a=_0x51781a-0x0;var _0x30cfbd=_0x629e[_0x51781a];return _0x30cfbd;};import{LabeledFieldView as _0x3f1d5c}from'ckeditor5/src/ui';import{getTranslation as _0x114c89}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x3f1d5c{constructor(_0x8116b3,_0x4d9102){super(_0x8116b3,_0x4d9102),this[_0x30cf('0x1')]({'label':_0x114c89(_0x8116b3,_0x30cf('0x2'))}),this[_0x30cf('0x0')]({'tag':_0x30cf('0x3'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
23
+ var _0x2833=['set','span','ck-revision-history-sidebar__revision-name','Revision\x20name','extendTemplate'];(function(_0x36591e,_0x2833cf){var _0xa1e8b8=function(_0x892e96){while(--_0x892e96){_0x36591e['push'](_0x36591e['shift']());}};_0xa1e8b8(++_0x2833cf);}(_0x2833,0x148));var _0xa1e8=function(_0x36591e,_0x2833cf){_0x36591e=_0x36591e-0x0;var _0xa1e8b8=_0x2833[_0x36591e];return _0xa1e8b8;};import{LabeledFieldView as _0x103ca6}from'ckeditor5/src/ui';import{getTranslation as _0x83923}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x103ca6{constructor(_0xced30b,_0x337fde){super(_0xced30b,_0x337fde),this[_0xa1e8('0x2')]({'label':_0x83923(_0xced30b,_0xa1e8('0x0'))}),this[_0xa1e8('0x1')]({'tag':_0xa1e8('0x3'),'attributes':{'class':[_0xa1e8('0x4')]}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x575d=['filter','deselect','extendTemplate','fire','ck-revision-history-sidebar__revision__controls-wrapper','isEnabled','value','ck-reset','isHighlighted','220','ck-revision-history-sidebar__revision_highlighted','name','bind','select','span','ck-revision-history-sidebar__revision-authors','srcElement','creator','unhighlight','change','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','ck-revision-history-sidebar__revision__date','isReady','div','isActionsDropdownOpen','setTemplate','ck-revision-history-sidebar__revision_selected','_revision','ck-revision-history-sidebar__revision','setName','placeholder','listenTo','element','unshift','isConfirm','ck-disabled','revisionNameView','ck-revision-history-sidebar__revision-wrapper','closest','.ck-thread__remove-confirm','isSelected','length','render','uiLanguage','bindTemplate','_createdAtFormatted','set','createdAt','revisionActionsView','fieldView'];(function(_0x1f1eb7,_0x575d9c){const _0x3c6811=function(_0x35af5a){while(--_0x35af5a){_0x1f1eb7['push'](_0x1f1eb7['shift']());}};_0x3c6811(++_0x575d9c);}(_0x575d,0xe6));const _0x3c68=function(_0x1f1eb7,_0x575d9c){_0x1f1eb7=_0x1f1eb7-0x0;let _0x3c6811=_0x575d[_0x1f1eb7];return _0x3c6811;};import{View as _0x202d0d,createLabeledInputText as _0x46823d}from'ckeditor5/src/ui';import{ConfirmMixin as _0x249140}from'ckeditor5-collaboration/src/collaboration-core';import _0x121399 from'./revisionnameview';import _0xb85a0 from'./revisionauthorview';import{dateToPrettyFormat as _0x30b92f}from'./utils';import{createActionsDropdownView as _0x499dff}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x249140(_0x202d0d){constructor(_0x21a40f,_0x243ffe,_0x1f5ae5){super(_0x21a40f);const _0x3e0dde=this[_0x3c68('0xe')],_0x3bcbae=function(_0xbad4fe,_0xfc131b){const _0x46b3a3=Array['from'](_0xfc131b['authors'])[_0x3c68('0x14')](_0x50241e=>_0x50241e!=_0xfc131b[_0x3c68('0x25')]);return _0xfc131b[_0x3c68('0x25')]&&_0x46b3a3[_0x3c68('0x3')](_0xfc131b[_0x3c68('0x25')]),_0x46b3a3['map'](_0x51b7c9=>new _0xb85a0(_0xbad4fe,_0x51b7c9,_0x51b7c9==_0xfc131b[_0x3c68('0x25')]));}(_0x21a40f,_0x243ffe);this['id']=_0x243ffe['id'],this[_0x3c68('0x2f')]=_0x243ffe,this['bind'](_0x3c68('0x1f'),_0x3c68('0x11'))['to'](_0x243ffe),this[_0x3c68('0x20')]('_createdAtFormatted')['to'](this,_0x3c68('0x11'),_0x22a588=>_0x22a588?_0x30b92f(_0x21a40f[_0x3c68('0xd')],_0x22a588):void 0x0),this[_0x3c68('0x10')](_0x3c68('0xa'),!0x1),this[_0x3c68('0x10')](_0x3c68('0x1c'),!0x1),this[_0x3c68('0x10')](_0x3c68('0x2c'),!0x1),this[_0x3c68('0x10')](_0x3c68('0x2a'),!0x1),this[_0x3c68('0x10')](_0x3c68('0x19'),!0x1),this[_0x3c68('0x6')]=new _0x121399(_0x21a40f,_0x46823d),this[_0x3c68('0x6')][_0x3c68('0x13')][_0x3c68('0x16')]({'attributes':{'maxlength':_0x3c68('0x1d')}}),this[_0x3c68('0x6')][_0x3c68('0x13')]['bind'](_0x3c68('0x1a'),_0x3c68('0x0'))['to'](this,_0x3c68('0x1f'),_0x3c68('0xf')),this[_0x3c68('0x6')][_0x3c68('0x20')]('isEnabled')['to'](this,'isSelected',this,_0x3c68('0x19'),(_0x3a4223,_0x5f594f)=>_0x3a4223&&_0x5f594f),this[_0x3c68('0x12')]=_0x1f5ae5&&_0x1f5ae5[_0x3c68('0xb')]?_0x499dff(this,_0x1f5ae5):'',this[_0x3c68('0x12')]&&this[_0x3c68('0x12')][_0x3c68('0x20')]('isEnabled')['to'](this),this[_0x3c68('0x2d')]({'tag':_0x3c68('0x2b'),'attributes':{'class':['ck',_0x3c68('0x1b'),_0x3c68('0x7'),_0x3e0dde['if'](_0x3c68('0x4'),_0x3c68('0x28'))]},'children':[{'tag':_0x3c68('0x2b'),'attributes':{'class':['ck',_0x3c68('0x1b'),_0x3c68('0x30'),_0x3e0dde['if']('isEnabled',_0x3c68('0x5'),_0x902d7b=>!_0x902d7b),_0x3e0dde['if'](_0x3c68('0xa'),_0x3c68('0x2e')),_0x3e0dde['if']('isHighlighted',_0x3c68('0x1e')),_0x3e0dde['if']('isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this['revisionNameView'],{'tag':_0x3c68('0x22'),'attributes':{'class':['ck',_0x3c68('0x29')]},'children':[{'text':_0x3e0dde['to'](_0x3c68('0xf'))}]},{'tag':_0x3c68('0x2b'),'attributes':{'class':['ck',_0x3c68('0x18')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x3c68('0x23')]},'children':_0x3bcbae}]},this['revisionActionsView']],'on':{'click':_0x3e0dde['to'](_0x2ebd62=>{_0x2ebd62[_0x3c68('0x24')][_0x3c68('0x8')](_0x3c68('0x9'))||this[_0x3c68('0x2a')]&&this[_0x3c68('0x19')]&&this[_0x3c68('0x17')](_0x3c68('0x21'),{'id':this['id']});})}}]});}[_0x3c68('0xc')](){super[_0x3c68('0xc')]();const _0x1702d9=this[_0x3c68('0x6')]['fieldView'][_0x3c68('0x2')];this[_0x3c68('0x1')](_0x1702d9,_0x3c68('0x27'),()=>{this[_0x3c68('0x17')](_0x3c68('0x31'),{'id':this['id'],'name':_0x1702d9[_0x3c68('0x1a')]});});}['select'](){this['isSelected']=!0x0;}[_0x3c68('0x15')](){this[_0x3c68('0xa')]=!0x1;}['highlight'](){this[_0x3c68('0x1c')]=!0x0;}[_0x3c68('0x26')](){this['isHighlighted']=!0x1;}}
23
+ const _0x5b55=['authors','ck-revision-history-sidebar__revision-wrapper','ck-revision-history-sidebar__revision','setTemplate','deselect','creator','map','srcElement','ck-disabled','unshift','value','revisionNameView','bindTemplate','fieldView','isConfirm','isReady','createdAt','from','div','closest','_revision','isActionsDropdownOpen','extendTemplate','ck-revision-history-sidebar__actions_dropdown_open','revisionActionsView','change','ck-revision-history-sidebar__revision_selected','ck-reset','set','isEnabled','render','unhighlight','ck-revision-history-sidebar__revision__date','bind','isSelected','fire','name','isHighlighted','setName','placeholder','highlight','_createdAtFormatted','220','select','listenTo'];(function(_0x2c9275,_0x5b55d5){const _0x2df0b1=function(_0x1bb7c2){while(--_0x1bb7c2){_0x2c9275['push'](_0x2c9275['shift']());}};_0x2df0b1(++_0x5b55d5);}(_0x5b55,0x11f));const _0x2df0=function(_0x2c9275,_0x5b55d5){_0x2c9275=_0x2c9275-0x0;let _0x2df0b1=_0x5b55[_0x2c9275];return _0x2df0b1;};import{View as _0x1c1b48,createLabeledInputText as _0x3b26d2}from'ckeditor5/src/ui';import{ConfirmMixin as _0x3ae8f5}from'ckeditor5-collaboration/src/collaboration-core';import _0x16d591 from'./revisionnameview';import _0x2ec080 from'./revisionauthorview';import{dateToPrettyFormat as _0x5cca99}from'./utils';import{createActionsDropdownView as _0x54d728}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x3ae8f5(_0x1c1b48){constructor(_0x3e175d,_0x57922d,_0x515f15){super(_0x3e175d);const _0xcdbf07=this[_0x2df0('0x28')],_0x1d26cd=function(_0x315c46,_0x32e022){const _0x4329af=Array[_0x2df0('0x0')](_0x32e022[_0x2df0('0x1c')])['filter'](_0x258336=>_0x258336!=_0x32e022['creator']);return _0x32e022[_0x2df0('0x21')]&&_0x4329af[_0x2df0('0x25')](_0x32e022['creator']),_0x4329af[_0x2df0('0x22')](_0x372dce=>new _0x2ec080(_0x315c46,_0x372dce,_0x372dce==_0x32e022['creator']));}(_0x3e175d,_0x57922d);this['id']=_0x57922d['id'],this[_0x2df0('0x3')]=_0x57922d,this[_0x2df0('0x10')](_0x2df0('0x13'),_0x2df0('0x2c'))['to'](_0x57922d),this[_0x2df0('0x10')](_0x2df0('0x18'))['to'](this,'createdAt',_0x2b3251=>_0x2b3251?_0x5cca99(_0x3e175d['uiLanguage'],_0x2b3251):void 0x0),this[_0x2df0('0xb')](_0x2df0('0x11'),!0x1),this[_0x2df0('0xb')]('isHighlighted',!0x1),this[_0x2df0('0xb')](_0x2df0('0x4'),!0x1),this['set'](_0x2df0('0x2b'),!0x1),this[_0x2df0('0xb')]('isEnabled',!0x1),this['revisionNameView']=new _0x16d591(_0x3e175d,_0x3b26d2),this['revisionNameView'][_0x2df0('0x29')][_0x2df0('0x5')]({'attributes':{'maxlength':_0x2df0('0x19')}}),this[_0x2df0('0x27')][_0x2df0('0x29')][_0x2df0('0x10')]('value',_0x2df0('0x16'))['to'](this,_0x2df0('0x13'),_0x2df0('0x18')),this[_0x2df0('0x27')][_0x2df0('0x10')](_0x2df0('0xc'))['to'](this,_0x2df0('0x11'),this,_0x2df0('0xc'),(_0x850115,_0x2529e6)=>_0x850115&&_0x2529e6),this['revisionActionsView']=_0x515f15&&_0x515f15['length']?_0x54d728(this,_0x515f15):'',this[_0x2df0('0x7')]&&this['revisionActionsView'][_0x2df0('0x10')](_0x2df0('0xc'))['to'](this),this[_0x2df0('0x1f')]({'tag':_0x2df0('0x1'),'attributes':{'class':['ck',_0x2df0('0xa'),_0x2df0('0x1d'),_0xcdbf07['if'](_0x2df0('0x2a'),'ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck',_0x2df0('0xa'),_0x2df0('0x1e'),_0xcdbf07['if']('isEnabled',_0x2df0('0x24'),_0x128373=>!_0x128373),_0xcdbf07['if'](_0x2df0('0x11'),_0x2df0('0x9')),_0xcdbf07['if'](_0x2df0('0x14'),'ck-revision-history-sidebar__revision_highlighted'),_0xcdbf07['if'](_0x2df0('0x4'),_0x2df0('0x6'))]},'children':[this[_0x2df0('0x27')],{'tag':'span','attributes':{'class':['ck',_0x2df0('0xf')]},'children':[{'text':_0xcdbf07['to'](_0x2df0('0x18'))}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x1d26cd}]},this[_0x2df0('0x7')]],'on':{'click':_0xcdbf07['to'](_0x43b801=>{_0x43b801[_0x2df0('0x23')][_0x2df0('0x2')]('.ck-thread__remove-confirm')||this['isReady']&&this[_0x2df0('0xc')]&&this[_0x2df0('0x12')]('select',{'id':this['id']});})}}]});}['render'](){super[_0x2df0('0xd')]();const _0x36186e=this[_0x2df0('0x27')][_0x2df0('0x29')]['element'];this[_0x2df0('0x1b')](_0x36186e,_0x2df0('0x8'),()=>{this['fire'](_0x2df0('0x15'),{'id':this['id'],'name':_0x36186e[_0x2df0('0x26')]});});}[_0x2df0('0x1a')](){this['isSelected']=!0x0;}[_0x2df0('0x20')](){this[_0x2df0('0x11')]=!0x1;}[_0x2df0('0x17')](){this['isHighlighted']=!0x0;}[_0x2df0('0xe')](){this['isHighlighted']=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x248e=['setTemplate','set','isVisible','ck-revision-history-sidebar__subrevision-collapser','toggle','ck-hidden','_isCollapsed','false','button'];(function(_0x275a74,_0x248ea6){const _0x388d5e=function(_0x4b513b){while(--_0x4b513b){_0x275a74['push'](_0x275a74['shift']());}};_0x388d5e(++_0x248ea6);}(_0x248e,0x109));const _0x388d=function(_0x275a74,_0x248ea6){_0x275a74=_0x275a74-0x0;let _0x388d5e=_0x248e[_0x275a74];return _0x388d5e;};import{View as _0x2f9aa1}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x2f9aa1{constructor(_0x3b22ac){super(_0x3b22ac);const _0x23dd40=this['bindTemplate'];this[_0x388d('0x6')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x388d('0x5')]({'tag':'span','attributes':{'class':['ck',_0x388d('0x8'),_0x23dd40['if'](_0x388d('0x7'),_0x388d('0x1'),_0x2b4216=>!_0x2b4216),_0x23dd40['if'](_0x388d('0x2'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x388d('0x4'),'aria-pressed':_0x23dd40['to'](_0x388d('0x2'),_0x305c30=>_0x305c30?_0x388d('0x3'):'true')},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x23dd40['to']('click')}});}[_0x388d('0x0')](){this[_0x388d('0x2')]=!this[_0x388d('0x2')];}}
23
+ const _0x39cb=['bindTemplate','button','true','set','click','setTemplate','false','ck-revision-history-sidebar__subrevision-collapser','isVisible','ck-revision-history-sidebar__subrevision-collapser__inner','span','_isCollapsed'];(function(_0x572f54,_0x39cb15){const _0x527080=function(_0x15365a){while(--_0x15365a){_0x572f54['push'](_0x572f54['shift']());}};_0x527080(++_0x39cb15);}(_0x39cb,0x1d2));const _0x5270=function(_0x572f54,_0x39cb15){_0x572f54=_0x572f54-0x0;let _0x527080=_0x39cb[_0x572f54];return _0x527080;};import{View as _0x534068}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x534068{constructor(_0x4e42ea){super(_0x4e42ea);const _0xfa5fba=this[_0x5270('0x2')];this[_0x5270('0x5')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x5270('0x7')]({'tag':_0x5270('0x0'),'attributes':{'class':['ck',_0x5270('0x9'),_0xfa5fba['if'](_0x5270('0xa'),'ck-hidden',_0x4b4ef6=>!_0x4b4ef6),_0xfa5fba['if']('_isCollapsed','ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x5270('0x3'),'aria-pressed':_0xfa5fba['to'](_0x5270('0x1'),_0x26f20d=>_0x26f20d?_0x5270('0x8'):_0x5270('0x4'))},'children':[{'tag':_0x5270('0x0'),'attributes':{'class':['ck',_0x5270('0xb')]}}],'on':{'click':_0xfa5fba['to'](_0x5270('0x6'))}});}['toggle'](){this[_0x5270('0x1')]=!this[_0x5270('0x1')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x181e=['createdAt','ck-revision-history-sidebar__revision-authors','set','_parentRevisionId','bind','creator','select','_createdAtFormatted','bindTemplate','deselect','ck-reset','ck-revision-history-sidebar__subrevision','isSelected','div','span'];(function(_0x15c701,_0x181e1d){const _0x29c209=function(_0x31a029){while(--_0x31a029){_0x15c701['push'](_0x15c701['shift']());}};_0x29c209(++_0x181e1d);}(_0x181e,0xbf));const _0x29c2=function(_0x15c701,_0x181e1d){_0x15c701=_0x15c701-0x0;let _0x29c209=_0x181e[_0x15c701];return _0x29c209;};import{View as _0x510950}from'ckeditor5/src/ui';import _0x45aad8 from'./revisionauthorview';import{dateToPrettyFormat as _0x4741e3}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x510950{constructor(_0x4a2452,_0x4cc0e2,_0x2bd0ac){super(_0x4a2452);const _0x3fbe1c=this[_0x29c2('0xc')];this['id']=_0x4cc0e2['id'],this['bind'](_0x29c2('0x4'))['to'](_0x4cc0e2),this[_0x29c2('0x6')](_0x29c2('0x1'),!0x1),this[_0x29c2('0x8')](_0x29c2('0xb'))['to'](this,_0x29c2('0x4'),_0x424f36=>_0x424f36?_0x4741e3(_0x4a2452['uiLanguage'],_0x424f36):void 0x0),this[_0x29c2('0x7')]=_0x2bd0ac,this['setTemplate']({'tag':_0x29c2('0x2'),'attributes':{'class':['ck',_0x29c2('0xe'),'ck-revision-history-sidebar__revision',_0x29c2('0x0'),_0x3fbe1c['if']('isSelected','ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':_0x29c2('0x3'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x3fbe1c['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x29c2('0x5')]},'children':[new _0x45aad8(_0x4a2452,_0x4cc0e2[_0x29c2('0x9')],!0x0)]}],'on':{'click':_0x3fbe1c['to'](this[_0x29c2('0xa')][_0x29c2('0x8')](this))}});}[_0x29c2('0xa')](){this[_0x29c2('0x1')]=!0x0,this['fire'](_0x29c2('0xa'),{'parentId':this[_0x29c2('0x7')]});}[_0x29c2('0xd')](){this[_0x29c2('0x1')]=!0x1;}}
23
+ const _0xfa40=['ck-revision-history-sidebar__revision-authors','bind','div','createdAt','select','ck-reset','ck-revision-history-sidebar__subrevision','span','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision__date','bindTemplate','creator','set','_createdAtFormatted','setTemplate','fire','_parentRevisionId','deselect','uiLanguage','isSelected'];(function(_0xb3adcb,_0xfa4058){const _0x5383aa=function(_0x5734bf){while(--_0x5734bf){_0xb3adcb['push'](_0xb3adcb['shift']());}};_0x5383aa(++_0xfa4058);}(_0xfa40,0x93));const _0x5383=function(_0xb3adcb,_0xfa4058){_0xb3adcb=_0xb3adcb-0x0;let _0x5383aa=_0xfa40[_0xb3adcb];return _0x5383aa;};import{View as _0x51a7d3}from'ckeditor5/src/ui';import _0x424ca6 from'./revisionauthorview';import{dateToPrettyFormat as _0x4fcab8}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x51a7d3{constructor(_0x4d4b48,_0x32b9e4,_0x36a116){super(_0x4d4b48);const _0x454a38=this[_0x5383('0x3')];this['id']=_0x32b9e4['id'],this[_0x5383('0xe')](_0x5383('0x10'))['to'](_0x32b9e4),this[_0x5383('0x5')](_0x5383('0xc'),!0x1),this[_0x5383('0xe')](_0x5383('0x6'))['to'](this,_0x5383('0x10'),_0x50939c=>_0x50939c?_0x4fcab8(_0x4d4b48[_0x5383('0xb')],_0x50939c):void 0x0),this[_0x5383('0x9')]=_0x36a116,this[_0x5383('0x7')]({'tag':_0x5383('0xf'),'attributes':{'class':['ck',_0x5383('0x12'),'ck-revision-history-sidebar__revision',_0x5383('0x13'),_0x454a38['if']('isSelected',_0x5383('0x1'))]},'children':[{'tag':_0x5383('0x0'),'attributes':{'class':['ck',_0x5383('0x2')]},'children':[{'text':_0x454a38['to'](_0x5383('0x6'))}]},{'tag':'ul','attributes':{'class':['ck',_0x5383('0xd')]},'children':[new _0x424ca6(_0x4d4b48,_0x32b9e4[_0x5383('0x4')],!0x0)]}],'on':{'click':_0x454a38['to'](this[_0x5383('0x11')][_0x5383('0xe')](this))}});}[_0x5383('0x11')](){this[_0x5383('0xc')]=!0x0,this[_0x5383('0x8')]('select',{'parentId':this[_0x5383('0x9')]});}[_0x5383('0xa')](){this[_0x5383('0xc')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x40d1=['long','numeric','toLocaleTimeString','toLocaleDateString'];(function(_0x48b18d,_0x40d1ec){var _0x2dc923=function(_0x6590bd){while(--_0x6590bd){_0x48b18d['push'](_0x48b18d['shift']());}};_0x2dc923(++_0x40d1ec);}(_0x40d1,0x195));var _0x2dc9=function(_0x48b18d,_0x40d1ec){_0x48b18d=_0x48b18d-0x0;var _0x2dc923=_0x40d1[_0x48b18d];return _0x2dc923;};export function dateToPrettyFormat(_0x3969c8,_0x3b1d7b){return _0x3b1d7b[_0x2dc9('0x2')](_0x3969c8,{'month':_0x2dc9('0x3'),'day':_0x2dc9('0x0')})+',\x20'+_0x3b1d7b[_0x2dc9('0x1')](_0x3969c8,{'hour':_0x2dc9('0x0'),'minute':_0x2dc9('0x0')});}
23
+ var _0x4f0f=['toLocaleTimeString','long','toLocaleDateString','numeric'];(function(_0x229b02,_0x4f0f1f){var _0x77639a=function(_0xbdeaf4){while(--_0xbdeaf4){_0x229b02['push'](_0x229b02['shift']());}};_0x77639a(++_0x4f0f1f);}(_0x4f0f,0xf5));var _0x7763=function(_0x229b02,_0x4f0f1f){_0x229b02=_0x229b02-0x0;var _0x77639a=_0x4f0f[_0x229b02];return _0x77639a;};export function dateToPrettyFormat(_0x2ea7aa,_0x459e10){return _0x459e10[_0x7763('0x1')](_0x2ea7aa,{'month':_0x7763('0x0'),'day':_0x7763('0x2')})+',\x20'+_0x459e10[_0x7763('0x3')](_0x2ea7aa,{'hour':_0x7763('0x2'),'minute':_0x7763('0x2')});}